@oomol-lab/open-flow 0.1.0-alpha.0
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/LICENSE +201 -0
- package/NOTICE +47 -0
- package/README.md +18 -0
- package/dist/browser/_virtual_open-flow-twemoji-DJwKsM_w.js +5067 -0
- package/dist/browser/addNodeOptions-DqoIueCR.js +33746 -0
- package/dist/browser/assets/font-00b26ac825e20950.woff2 +0 -0
- package/dist/browser/assets/font-036d4e95149b69ff.woff2 +0 -0
- package/dist/browser/assets/font-07d8e303ce4fc12b.ttf +0 -0
- package/dist/browser/assets/font-08ce98e51b04d589.ttf +0 -0
- package/dist/browser/assets/font-0cdd387c9590a1a9.woff2 +0 -0
- package/dist/browser/assets/font-0d85ae7cc30f2379.ttf +0 -0
- package/dist/browser/assets/font-0f60d1b897938ec9.woff2 +0 -0
- package/dist/browser/assets/font-11e4dc8a6471ff6d.woff +0 -0
- package/dist/browser/assets/font-138ac28d1663b303.ttf +0 -0
- package/dist/browser/assets/font-1ae6bd7475590e97.woff +0 -0
- package/dist/browser/assets/font-1c67f068fea8bb09.ttf +0 -0
- package/dist/browser/assets/font-1e6f9579e90e2cac.ttf +0 -0
- package/dist/browser/assets/font-1ece03f79f95277d.ttf +0 -0
- package/dist/browser/assets/font-2014c523c3210bcc.woff +0 -0
- package/dist/browser/assets/font-30da91e84c893f87.woff +0 -0
- package/dist/browser/assets/font-3398dd02302557a7.woff +0 -0
- package/dist/browser/assets/font-3931dd81faed86ba.ttf +0 -0
- package/dist/browser/assets/font-500e04d54f0d5166.ttf +0 -0
- package/dist/browser/assets/font-51814d270d06ff02.woff2 +0 -0
- package/dist/browser/assets/font-5d53e70ad607c235.woff2 +0 -0
- package/dist/browser/assets/font-5e28753be717dac9.woff +0 -0
- package/dist/browser/assets/font-68534840bcfdd2bf.ttf +0 -0
- package/dist/browser/assets/font-68e8c73ef42afd3c.woff2 +0 -0
- package/dist/browser/assets/font-6ab6b62e9b62dae2.woff +0 -0
- package/dist/browser/assets/font-6b47c40166b6dbe2.woff2 +0 -0
- package/dist/browser/assets/font-70ee1f64a20f2048.ttf +0 -0
- package/dist/browser/assets/font-71d517d67827787c.woff2 +0 -0
- package/dist/browser/assets/font-73d591271b160496.woff2 +0 -0
- package/dist/browser/assets/font-74444efd593c005e.woff2 +0 -0
- package/dist/browser/assets/font-7af58c5ec8f132a2.woff2 +0 -0
- package/dist/browser/assets/font-850c0af5c2238497.woff +0 -0
- package/dist/browser/assets/font-8a8d244581371912.woff +0 -0
- package/dist/browser/assets/font-9163df9c7122432e.ttf +0 -0
- package/dist/browser/assets/font-91ee67500cc0129a.woff +0 -0
- package/dist/browser/assets/font-95b6d2f1a50173bf.ttf +0 -0
- package/dist/browser/assets/font-97479ca6cce906ab.woff2 +0 -0
- package/dist/browser/assets/font-99cd42a3c072d918.woff2 +0 -0
- package/dist/browser/assets/font-99f9c6750b489c94.woff +0 -0
- package/dist/browser/assets/font-9be7ceb88004ab8a.woff +0 -0
- package/dist/browser/assets/font-a4af7d414440a1c1.woff2 +0 -0
- package/dist/browser/assets/font-a6b2099fb555c60e.ttf +0 -0
- package/dist/browser/assets/font-a6f7ec0d846ac7ad.woff +0 -0
- package/dist/browser/assets/font-c2342cd8b869e017.woff2 +0 -0
- package/dist/browser/assets/font-c6368d87e8a1a3a5.woff +0 -0
- package/dist/browser/assets/font-c647367d1dd4e162.ttf +0 -0
- package/dist/browser/assets/font-c76c5d696297d51b.woff +0 -0
- package/dist/browser/assets/font-c943cc986384f59e.woff +0 -0
- package/dist/browser/assets/font-d0332f52868370fd.ttf +0 -0
- package/dist/browser/assets/font-d04c54219f9eaec6.woff2 +0 -0
- package/dist/browser/assets/font-d96cdf2b3bdd4d64.woff +0 -0
- package/dist/browser/assets/font-dc47344dbb6cb5b6.woff2 +0 -0
- package/dist/browser/assets/font-de7701e42cf1f4cf.woff2 +0 -0
- package/dist/browser/assets/font-e14fed02b1aba7ce.woff +0 -0
- package/dist/browser/assets/font-e99ae51144bf1232.woff2 +0 -0
- package/dist/browser/assets/font-ece03cfd83e22c21.woff +0 -0
- package/dist/browser/assets/font-ed0b74372feefcbb.ttf +0 -0
- package/dist/browser/assets/font-f01f3e87d9c6a61c.ttf +0 -0
- package/dist/browser/assets/font-f1d6ef86f3b11a52.woff +0 -0
- package/dist/browser/assets/font-f36ea897e19f4a2e.ttf +0 -0
- package/dist/browser/assets/font-f9377ab0271cda59.ttf +0 -0
- package/dist/browser/carbon-nMY84Amv.js +53 -0
- package/dist/browser/composite-7VwgfnXx.js +6088 -0
- package/dist/browser/createResourceDialog-ByuJWdSL.js +439 -0
- package/dist/browser/dist-7oZK9QXZ.js +50088 -0
- package/dist/browser/dist-B9OV3YTx.js +881 -0
- package/dist/browser/dist-BLk5M0uK.js +1816 -0
- package/dist/browser/dist-BbyiRq3c.js +3285 -0
- package/dist/browser/dist-CIq6ue3I.js +6646 -0
- package/dist/browser/dist-CLZJNoWB.js +89 -0
- package/dist/browser/dist-CvcmLAMW.js +1620 -0
- package/dist/browser/dist-DL0SDskM.js +2327 -0
- package/dist/browser/dist-Djd02JSy.js +1247 -0
- package/dist/browser/dist-aWSZx4q1.js +850 -0
- package/dist/browser/dist-n-z5HtaO.js +4 -0
- package/dist/browser/dist-o4dBuwiG.js +320 -0
- package/dist/browser/dist-zyY--HOV.js +1543 -0
- package/dist/browser/esm-DXw7EADW.js +218 -0
- package/dist/browser/favicon.svg +7 -0
- package/dist/browser/flowWorkspace-DwVMpcar.js +22092 -0
- package/dist/browser/lib-S4ccuMeT.js +7857 -0
- package/dist/browser/licenses.md +4973 -0
- package/dist/browser/markdownContent-ZZFfSRqO.js +44545 -0
- package/dist/browser/project-change.d.ts +311 -0
- package/dist/browser/project-change.js +259 -0
- package/dist/browser/project-notifications.d.ts +12 -0
- package/dist/browser/rolldown-runtime-CEFd7nDs.js +30 -0
- package/dist/browser/workbench-contract.d.ts +28 -0
- package/dist/browser/workbench.css +2 -0
- package/dist/browser/workbench.css.d.ts +1 -0
- package/dist/browser/workbench.d.ts +14 -0
- package/dist/browser/workbench.js +3364 -0
- package/dist/common/connector-action.d.ts +20 -0
- package/dist/common/connector-action.js +106 -0
- package/dist/common/connector-proxy.d.ts +14 -0
- package/dist/common/connector-proxy.js +0 -0
- package/dist/common/control-api-conformance.d.ts +13 -0
- package/dist/common/control-api-conformance.js +518 -0
- package/dist/common/control-api-errors.d.ts +121 -0
- package/dist/common/control-api.d.ts +349 -0
- package/dist/common/control-api.js +884 -0
- package/dist/common/cron-trigger.d.ts +21 -0
- package/dist/common/cron-trigger.js +834 -0
- package/dist/common/engine-contract.d.ts +7 -0
- package/dist/common/favicon.svg +7 -0
- package/dist/common/integration-trigger.d.ts +111 -0
- package/dist/common/integration-trigger.js +290 -0
- package/dist/common/licenses.md +27 -0
- package/dist/common/poll-trigger.d.ts +69 -0
- package/dist/common/poll-trigger.js +155 -0
- package/dist/common/project-encoding.d.ts +11 -0
- package/dist/common/project-encoding.js +242 -0
- package/dist/common/project-notifications.d.ts +12 -0
- package/dist/common/project-semantics.d.ts +55 -0
- package/dist/common/project-semantics.js +8687 -0
- package/dist/common/provider-triggers.d.ts +6 -0
- package/dist/common/provider-triggers.js +4614 -0
- package/dist/common/run-events.d.ts +9 -0
- package/dist/common/run-events.js +192 -0
- package/dist/common/run-lifecycle.d.ts +69 -0
- package/dist/common/run-lifecycle.js +169 -0
- package/dist/common/runtime-contract.d.ts +53 -0
- package/dist/common/runtime-contract.js +151 -0
- package/dist/common/scheduler.d.ts +99 -0
- package/dist/common/scheduler.js +379 -0
- package/dist/common/webhook-trigger.d.ts +22 -0
- package/dist/common/webhook-trigger.js +270 -0
- package/dist/index.d.ts +66 -0
- package/package.json +102 -0
|
@@ -0,0 +1,1543 @@
|
|
|
1
|
+
import { r as e } from "./rolldown-runtime-CEFd7nDs.js";
|
|
2
|
+
//#region ../../node_modules/@lezer/common/dist/index.js
|
|
3
|
+
var t = 1024, n = 0, r = class {
|
|
4
|
+
constructor(e, t) {
|
|
5
|
+
this.from = e, this.to = t;
|
|
6
|
+
}
|
|
7
|
+
}, i = class {
|
|
8
|
+
constructor(e = {}) {
|
|
9
|
+
this.id = n++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => {
|
|
10
|
+
throw Error("This node type doesn't define a deserialize function");
|
|
11
|
+
}), this.combine = e.combine || null;
|
|
12
|
+
}
|
|
13
|
+
add(e) {
|
|
14
|
+
if (this.perNode) throw RangeError("Can't add per-node props to node types");
|
|
15
|
+
return typeof e != "function" && (e = s.match(e)), (t) => {
|
|
16
|
+
let n = e(t);
|
|
17
|
+
return n === void 0 ? null : [this, n];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
i.closedBy = new i({ deserialize: (e) => e.split(" ") }), i.openedBy = new i({ deserialize: (e) => e.split(" ") }), i.group = new i({ deserialize: (e) => e.split(" ") }), i.isolate = new i({ deserialize: (e) => {
|
|
22
|
+
if (e && e != "rtl" && e != "ltr" && e != "auto") throw RangeError("Invalid value for isolate: " + e);
|
|
23
|
+
return e || "auto";
|
|
24
|
+
} }), i.contextHash = new i({ perNode: !0 }), i.lookAhead = new i({ perNode: !0 }), i.mounted = new i({ perNode: !0 });
|
|
25
|
+
var a = class {
|
|
26
|
+
constructor(e, t, n, r = !1) {
|
|
27
|
+
this.tree = e, this.overlay = t, this.parser = n, this.bracketed = r;
|
|
28
|
+
}
|
|
29
|
+
static get(e) {
|
|
30
|
+
return e && e.props && e.props[i.mounted.id];
|
|
31
|
+
}
|
|
32
|
+
}, o = Object.create(null), s = class e {
|
|
33
|
+
constructor(e, t, n, r = 0) {
|
|
34
|
+
this.name = e, this.props = t, this.id = n, this.flags = r;
|
|
35
|
+
}
|
|
36
|
+
static define(t) {
|
|
37
|
+
let n = t.props && t.props.length ? Object.create(null) : o, r = !!t.top | (t.skipped ? 2 : 0) | (t.error ? 4 : 0) | (t.name == null ? 8 : 0), i = new e(t.name || "", n, t.id, r);
|
|
38
|
+
if (t.props) {
|
|
39
|
+
for (let e of t.props) if (Array.isArray(e) || (e = e(i)), e) {
|
|
40
|
+
if (e[0].perNode) throw RangeError("Can't store a per-node prop on a node type");
|
|
41
|
+
n[e[0].id] = e[1];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return i;
|
|
45
|
+
}
|
|
46
|
+
prop(e) {
|
|
47
|
+
return this.props[e.id];
|
|
48
|
+
}
|
|
49
|
+
get isTop() {
|
|
50
|
+
return (this.flags & 1) > 0;
|
|
51
|
+
}
|
|
52
|
+
get isSkipped() {
|
|
53
|
+
return (this.flags & 2) > 0;
|
|
54
|
+
}
|
|
55
|
+
get isError() {
|
|
56
|
+
return (this.flags & 4) > 0;
|
|
57
|
+
}
|
|
58
|
+
get isAnonymous() {
|
|
59
|
+
return (this.flags & 8) > 0;
|
|
60
|
+
}
|
|
61
|
+
is(e) {
|
|
62
|
+
if (typeof e == "string") {
|
|
63
|
+
if (this.name == e) return !0;
|
|
64
|
+
let t = this.prop(i.group);
|
|
65
|
+
return t ? t.indexOf(e) > -1 : !1;
|
|
66
|
+
}
|
|
67
|
+
return this.id == e;
|
|
68
|
+
}
|
|
69
|
+
static match(e) {
|
|
70
|
+
let t = Object.create(null);
|
|
71
|
+
for (let n in e) for (let r of n.split(" ")) t[r] = e[n];
|
|
72
|
+
return (e) => {
|
|
73
|
+
for (let n = e.prop(i.group), r = -1; r < (n ? n.length : 0); r++) {
|
|
74
|
+
let i = t[r < 0 ? e.name : n[r]];
|
|
75
|
+
if (i) return i;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
s.none = new s("", Object.create(null), 0, 8);
|
|
81
|
+
var c = class e {
|
|
82
|
+
constructor(e) {
|
|
83
|
+
this.types = e;
|
|
84
|
+
for (let t = 0; t < e.length; t++) if (e[t].id != t) throw RangeError("Node type ids should correspond to array positions when creating a node set");
|
|
85
|
+
}
|
|
86
|
+
extend(...t) {
|
|
87
|
+
let n = [];
|
|
88
|
+
for (let e of this.types) {
|
|
89
|
+
let r = null;
|
|
90
|
+
for (let n of t) {
|
|
91
|
+
let t = n(e);
|
|
92
|
+
if (t) {
|
|
93
|
+
r ||= Object.assign({}, e.props);
|
|
94
|
+
let n = t[1], i = t[0];
|
|
95
|
+
i.combine && i.id in r && (n = i.combine(r[i.id], n)), r[i.id] = n;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
n.push(r ? new s(e.name, r, e.id, e.flags) : e);
|
|
99
|
+
}
|
|
100
|
+
return new e(n);
|
|
101
|
+
}
|
|
102
|
+
}, l = /* @__PURE__ */ new WeakMap(), u = /* @__PURE__ */ new WeakMap(), d;
|
|
103
|
+
(function(e) {
|
|
104
|
+
e[e.ExcludeBuffers = 1] = "ExcludeBuffers", e[e.IncludeAnonymous = 2] = "IncludeAnonymous", e[e.IgnoreMounts = 4] = "IgnoreMounts", e[e.IgnoreOverlays = 8] = "IgnoreOverlays", e[e.EnterBracketed = 16] = "EnterBracketed";
|
|
105
|
+
})(d ||= {});
|
|
106
|
+
var f = class e {
|
|
107
|
+
constructor(e, t, n, r, i) {
|
|
108
|
+
if (this.type = e, this.children = t, this.positions = n, this.length = r, this.props = null, i && i.length) {
|
|
109
|
+
this.props = Object.create(null);
|
|
110
|
+
for (let [e, t] of i) this.props[typeof e == "number" ? e : e.id] = t;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
toString() {
|
|
114
|
+
let e = a.get(this);
|
|
115
|
+
if (e && !e.overlay) return e.tree.toString();
|
|
116
|
+
let t = "";
|
|
117
|
+
for (let e of this.children) {
|
|
118
|
+
let n = e.toString();
|
|
119
|
+
n && (t && (t += ","), t += n);
|
|
120
|
+
}
|
|
121
|
+
return this.type.name ? (/\W/.test(this.type.name) && !this.type.isError ? JSON.stringify(this.type.name) : this.type.name) + (t.length ? "(" + t + ")" : "") : t;
|
|
122
|
+
}
|
|
123
|
+
cursor(e = 0) {
|
|
124
|
+
return new E(this.topNode, e);
|
|
125
|
+
}
|
|
126
|
+
cursorAt(e, t = 0, n = 0) {
|
|
127
|
+
let r = new E(l.get(this) || this.topNode);
|
|
128
|
+
return r.moveTo(e, t), l.set(this, r._tree), r;
|
|
129
|
+
}
|
|
130
|
+
get topNode() {
|
|
131
|
+
return new v(this, 0, 0, null);
|
|
132
|
+
}
|
|
133
|
+
resolve(e, t = 0) {
|
|
134
|
+
let n = g(l.get(this) || this.topNode, e, t, !1);
|
|
135
|
+
return l.set(this, n), n;
|
|
136
|
+
}
|
|
137
|
+
resolveInner(e, t = 0) {
|
|
138
|
+
let n = g(u.get(this) || this.topNode, e, t, !0);
|
|
139
|
+
return u.set(this, n), n;
|
|
140
|
+
}
|
|
141
|
+
resolveStack(e, t = 0) {
|
|
142
|
+
return T(this, e, t);
|
|
143
|
+
}
|
|
144
|
+
iterate(e) {
|
|
145
|
+
let { enter: t, leave: n, from: r = 0, to: i = this.length } = e, a = e.mode || 0, o = (a & d.IncludeAnonymous) > 0;
|
|
146
|
+
for (let e = this.cursor(a | d.IncludeAnonymous);;) {
|
|
147
|
+
let a = !1;
|
|
148
|
+
if (e.from <= i && e.to >= r && (!o && e.type.isAnonymous || t(e) !== !1)) {
|
|
149
|
+
if (e.firstChild()) continue;
|
|
150
|
+
a = !0;
|
|
151
|
+
}
|
|
152
|
+
for (; a && n && (o || !e.type.isAnonymous) && n(e), !e.nextSibling();) {
|
|
153
|
+
if (!e.parent()) return;
|
|
154
|
+
a = !0;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
prop(e) {
|
|
159
|
+
return e.perNode ? this.props ? this.props[e.id] : void 0 : this.type.prop(e);
|
|
160
|
+
}
|
|
161
|
+
get propValues() {
|
|
162
|
+
let e = [];
|
|
163
|
+
if (this.props) for (let t in this.props) e.push([+t, this.props[t]]);
|
|
164
|
+
return e;
|
|
165
|
+
}
|
|
166
|
+
balance(t = {}) {
|
|
167
|
+
return this.children.length <= 8 ? this : j(s.none, this.children, this.positions, 0, this.children.length, 0, this.length, (t, n, r) => new e(this.type, t, n, r, this.propValues), t.makeTree || ((t, n, r) => new e(s.none, t, n, r)));
|
|
168
|
+
}
|
|
169
|
+
static build(e) {
|
|
170
|
+
return O(e);
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
f.empty = new f(s.none, [], [], 0);
|
|
174
|
+
var p = class e {
|
|
175
|
+
constructor(e, t) {
|
|
176
|
+
this.buffer = e, this.index = t;
|
|
177
|
+
}
|
|
178
|
+
get id() {
|
|
179
|
+
return this.buffer[this.index - 4];
|
|
180
|
+
}
|
|
181
|
+
get start() {
|
|
182
|
+
return this.buffer[this.index - 3];
|
|
183
|
+
}
|
|
184
|
+
get end() {
|
|
185
|
+
return this.buffer[this.index - 2];
|
|
186
|
+
}
|
|
187
|
+
get size() {
|
|
188
|
+
return this.buffer[this.index - 1];
|
|
189
|
+
}
|
|
190
|
+
get pos() {
|
|
191
|
+
return this.index;
|
|
192
|
+
}
|
|
193
|
+
next() {
|
|
194
|
+
this.index -= 4;
|
|
195
|
+
}
|
|
196
|
+
fork() {
|
|
197
|
+
return new e(this.buffer, this.index);
|
|
198
|
+
}
|
|
199
|
+
}, m = class e {
|
|
200
|
+
constructor(e, t, n) {
|
|
201
|
+
this.buffer = e, this.length = t, this.set = n;
|
|
202
|
+
}
|
|
203
|
+
get type() {
|
|
204
|
+
return s.none;
|
|
205
|
+
}
|
|
206
|
+
toString() {
|
|
207
|
+
let e = [];
|
|
208
|
+
for (let t = 0; t < this.buffer.length;) e.push(this.childString(t)), t = this.buffer[t + 3];
|
|
209
|
+
return e.join(",");
|
|
210
|
+
}
|
|
211
|
+
childString(e) {
|
|
212
|
+
let t = this.buffer[e], n = this.buffer[e + 3], r = this.set.types[t], i = r.name;
|
|
213
|
+
if (/\W/.test(i) && !r.isError && (i = JSON.stringify(i)), e += 4, n == e) return i;
|
|
214
|
+
let a = [];
|
|
215
|
+
for (; e < n;) a.push(this.childString(e)), e = this.buffer[e + 3];
|
|
216
|
+
return i + "(" + a.join(",") + ")";
|
|
217
|
+
}
|
|
218
|
+
findChild(e, t, n, r, i) {
|
|
219
|
+
let { buffer: a } = this, o = -1;
|
|
220
|
+
for (let s = e; s != t && !(h(i, r, a[s + 1], a[s + 2]) && (o = s, n > 0)); s = a[s + 3]);
|
|
221
|
+
return o;
|
|
222
|
+
}
|
|
223
|
+
slice(t, n, r) {
|
|
224
|
+
let i = this.buffer, a = new Uint16Array(n - t), o = 0;
|
|
225
|
+
for (let e = t, s = 0; e < n;) {
|
|
226
|
+
a[s++] = i[e++], a[s++] = i[e++] - r;
|
|
227
|
+
let n = a[s++] = i[e++] - r;
|
|
228
|
+
a[s++] = i[e++] - t, o = Math.max(o, n);
|
|
229
|
+
}
|
|
230
|
+
return new e(a, o, this.set);
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
function h(e, t, n, r) {
|
|
234
|
+
switch (e) {
|
|
235
|
+
case -2: return n < t;
|
|
236
|
+
case -1: return r >= t && n < t;
|
|
237
|
+
case 0: return n < t && r > t;
|
|
238
|
+
case 1: return n <= t && r > t;
|
|
239
|
+
case 2: return r > t;
|
|
240
|
+
case 4: return !0;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
function g(e, t, n, r) {
|
|
244
|
+
for (; e.from == e.to || (n < 1 ? e.from >= t : e.from > t) || (n > -1 ? e.to <= t : e.to < t);) {
|
|
245
|
+
let t = !r && e instanceof v && e.index < 0 ? null : e.parent;
|
|
246
|
+
if (!t) return e;
|
|
247
|
+
e = t;
|
|
248
|
+
}
|
|
249
|
+
let i = r ? 0 : d.IgnoreOverlays;
|
|
250
|
+
if (r) for (let r = e, a = r.parent; a; r = a, a = r.parent) r instanceof v && r.index < 0 && a.enter(t, n, i)?.from != r.from && (e = a);
|
|
251
|
+
for (;;) {
|
|
252
|
+
let r = e.enter(t, n, i);
|
|
253
|
+
if (!r) return e;
|
|
254
|
+
e = r;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
var _ = class {
|
|
258
|
+
cursor(e = 0) {
|
|
259
|
+
return new E(this, e);
|
|
260
|
+
}
|
|
261
|
+
getChild(e, t = null, n = null) {
|
|
262
|
+
let r = y(this, e, t, n);
|
|
263
|
+
return r.length ? r[0] : null;
|
|
264
|
+
}
|
|
265
|
+
getChildren(e, t = null, n = null) {
|
|
266
|
+
return y(this, e, t, n);
|
|
267
|
+
}
|
|
268
|
+
resolve(e, t = 0) {
|
|
269
|
+
return g(this, e, t, !1);
|
|
270
|
+
}
|
|
271
|
+
resolveInner(e, t = 0) {
|
|
272
|
+
return g(this, e, t, !0);
|
|
273
|
+
}
|
|
274
|
+
matchContext(e) {
|
|
275
|
+
return b(this.parent, e);
|
|
276
|
+
}
|
|
277
|
+
enterUnfinishedNodesBefore(e) {
|
|
278
|
+
let t = this.childBefore(e), n = this;
|
|
279
|
+
for (; t;) {
|
|
280
|
+
let e = t.lastChild;
|
|
281
|
+
if (!e || e.to != t.to) break;
|
|
282
|
+
e.type.isError && e.from == e.to ? (n = t, t = e.prevSibling) : t = e;
|
|
283
|
+
}
|
|
284
|
+
return n;
|
|
285
|
+
}
|
|
286
|
+
get node() {
|
|
287
|
+
return this;
|
|
288
|
+
}
|
|
289
|
+
get next() {
|
|
290
|
+
return this.parent;
|
|
291
|
+
}
|
|
292
|
+
}, v = class e extends _ {
|
|
293
|
+
constructor(e, t, n, r) {
|
|
294
|
+
super(), this._tree = e, this.from = t, this.index = n, this._parent = r;
|
|
295
|
+
}
|
|
296
|
+
get type() {
|
|
297
|
+
return this._tree.type;
|
|
298
|
+
}
|
|
299
|
+
get name() {
|
|
300
|
+
return this._tree.type.name;
|
|
301
|
+
}
|
|
302
|
+
get to() {
|
|
303
|
+
return this.from + this._tree.length;
|
|
304
|
+
}
|
|
305
|
+
nextChild(t, n, r, i, o = 0) {
|
|
306
|
+
for (let s = this;;) {
|
|
307
|
+
for (let { children: c, positions: l } = s._tree, u = n > 0 ? c.length : -1; t != u; t += n) {
|
|
308
|
+
let u = c[t], p = l[t] + s.from, g;
|
|
309
|
+
if (!(!(o & d.EnterBracketed && u instanceof f && (g = a.get(u)) && !g.overlay && g.bracketed && r >= p && r <= p + u.length) && !h(i, r, p, p + u.length))) {
|
|
310
|
+
if (u instanceof m) {
|
|
311
|
+
if (o & d.ExcludeBuffers) continue;
|
|
312
|
+
let e = u.findChild(0, u.buffer.length, n, r - p, i);
|
|
313
|
+
if (e > -1) return new S(new x(s, u, t, p), null, e);
|
|
314
|
+
} else if (o & d.IncludeAnonymous || !u.type.isAnonymous || D(u)) {
|
|
315
|
+
let c;
|
|
316
|
+
if (!(o & d.IgnoreMounts) && (c = a.get(u)) && !c.overlay) return new e(c.tree, p, t, s);
|
|
317
|
+
let l = new e(u, p, t, s);
|
|
318
|
+
return o & d.IncludeAnonymous || !l.type.isAnonymous ? l : l.nextChild(n < 0 ? u.children.length - 1 : 0, n, r, i, o);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
if (o & d.IncludeAnonymous || !s.type.isAnonymous || (t = s.index >= 0 ? s.index + n : n < 0 ? -1 : s._parent._tree.children.length, s = s._parent, !s)) return null;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
get firstChild() {
|
|
326
|
+
return this.nextChild(0, 1, 0, 4);
|
|
327
|
+
}
|
|
328
|
+
get lastChild() {
|
|
329
|
+
return this.nextChild(this._tree.children.length - 1, -1, 0, 4);
|
|
330
|
+
}
|
|
331
|
+
childAfter(e) {
|
|
332
|
+
return this.nextChild(0, 1, e, 2);
|
|
333
|
+
}
|
|
334
|
+
childBefore(e) {
|
|
335
|
+
return this.nextChild(this._tree.children.length - 1, -1, e, -2);
|
|
336
|
+
}
|
|
337
|
+
prop(e) {
|
|
338
|
+
return this._tree.prop(e);
|
|
339
|
+
}
|
|
340
|
+
enter(t, n, r = 0) {
|
|
341
|
+
let i;
|
|
342
|
+
if (!(r & d.IgnoreOverlays) && (i = a.get(this._tree)) && i.overlay) {
|
|
343
|
+
let a = t - this.from, o = r & d.EnterBracketed && i.bracketed;
|
|
344
|
+
for (let { from: t, to: r } of i.overlay) if ((n > 0 || o ? t <= a : t < a) && (n < 0 || o ? r >= a : r > a)) return new e(i.tree, i.overlay[0].from + this.from, -1, this);
|
|
345
|
+
}
|
|
346
|
+
return this.nextChild(0, 1, t, n, r);
|
|
347
|
+
}
|
|
348
|
+
nextSignificantParent() {
|
|
349
|
+
let e = this;
|
|
350
|
+
for (; e.type.isAnonymous && e._parent;) e = e._parent;
|
|
351
|
+
return e;
|
|
352
|
+
}
|
|
353
|
+
get parent() {
|
|
354
|
+
return this._parent ? this._parent.nextSignificantParent() : null;
|
|
355
|
+
}
|
|
356
|
+
get nextSibling() {
|
|
357
|
+
return this._parent && this.index >= 0 ? this._parent.nextChild(this.index + 1, 1, 0, 4) : null;
|
|
358
|
+
}
|
|
359
|
+
get prevSibling() {
|
|
360
|
+
return this._parent && this.index >= 0 ? this._parent.nextChild(this.index - 1, -1, 0, 4) : null;
|
|
361
|
+
}
|
|
362
|
+
get tree() {
|
|
363
|
+
return this._tree;
|
|
364
|
+
}
|
|
365
|
+
toTree() {
|
|
366
|
+
return this._tree;
|
|
367
|
+
}
|
|
368
|
+
toString() {
|
|
369
|
+
return this._tree.toString();
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
function y(e, t, n, r) {
|
|
373
|
+
let i = e.cursor(), a = [];
|
|
374
|
+
if (!i.firstChild()) return a;
|
|
375
|
+
if (n != null) {
|
|
376
|
+
for (let e = !1; !e;) if (e = i.type.is(n), !i.nextSibling()) return a;
|
|
377
|
+
}
|
|
378
|
+
for (;;) {
|
|
379
|
+
if (r != null && i.type.is(r)) return a;
|
|
380
|
+
if (i.type.is(t) && a.push(i.node), !i.nextSibling()) return r == null ? a : [];
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
function b(e, t, n = t.length - 1) {
|
|
384
|
+
for (let r = e; n >= 0; r = r.parent) {
|
|
385
|
+
if (!r) return !1;
|
|
386
|
+
if (!r.type.isAnonymous) {
|
|
387
|
+
if (t[n] && t[n] != r.name) return !1;
|
|
388
|
+
n--;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
return !0;
|
|
392
|
+
}
|
|
393
|
+
var x = class {
|
|
394
|
+
constructor(e, t, n, r) {
|
|
395
|
+
this.parent = e, this.buffer = t, this.index = n, this.start = r;
|
|
396
|
+
}
|
|
397
|
+
}, S = class e extends _ {
|
|
398
|
+
get name() {
|
|
399
|
+
return this.type.name;
|
|
400
|
+
}
|
|
401
|
+
get from() {
|
|
402
|
+
return this.context.start + this.context.buffer.buffer[this.index + 1];
|
|
403
|
+
}
|
|
404
|
+
get to() {
|
|
405
|
+
return this.context.start + this.context.buffer.buffer[this.index + 2];
|
|
406
|
+
}
|
|
407
|
+
constructor(e, t, n) {
|
|
408
|
+
super(), this.context = e, this._parent = t, this.index = n, this.type = e.buffer.set.types[e.buffer.buffer[n]];
|
|
409
|
+
}
|
|
410
|
+
child(t, n, r) {
|
|
411
|
+
let { buffer: i } = this.context, a = i.findChild(this.index + 4, i.buffer[this.index + 3], t, n - this.context.start, r);
|
|
412
|
+
return a < 0 ? null : new e(this.context, this, a);
|
|
413
|
+
}
|
|
414
|
+
get firstChild() {
|
|
415
|
+
return this.child(1, 0, 4);
|
|
416
|
+
}
|
|
417
|
+
get lastChild() {
|
|
418
|
+
return this.child(-1, 0, 4);
|
|
419
|
+
}
|
|
420
|
+
childAfter(e) {
|
|
421
|
+
return this.child(1, e, 2);
|
|
422
|
+
}
|
|
423
|
+
childBefore(e) {
|
|
424
|
+
return this.child(-1, e, -2);
|
|
425
|
+
}
|
|
426
|
+
prop(e) {
|
|
427
|
+
return this.type.prop(e);
|
|
428
|
+
}
|
|
429
|
+
enter(t, n, r = 0) {
|
|
430
|
+
if (r & d.ExcludeBuffers) return null;
|
|
431
|
+
let { buffer: i } = this.context, a = i.findChild(this.index + 4, i.buffer[this.index + 3], n > 0 ? 1 : -1, t - this.context.start, n);
|
|
432
|
+
return a < 0 ? null : new e(this.context, this, a);
|
|
433
|
+
}
|
|
434
|
+
get parent() {
|
|
435
|
+
return this._parent || this.context.parent.nextSignificantParent();
|
|
436
|
+
}
|
|
437
|
+
externalSibling(e) {
|
|
438
|
+
return this._parent ? null : this.context.parent.nextChild(this.context.index + e, e, 0, 4);
|
|
439
|
+
}
|
|
440
|
+
get nextSibling() {
|
|
441
|
+
let { buffer: t } = this.context, n = t.buffer[this.index + 3];
|
|
442
|
+
return n < (this._parent ? t.buffer[this._parent.index + 3] : t.buffer.length) ? new e(this.context, this._parent, n) : this.externalSibling(1);
|
|
443
|
+
}
|
|
444
|
+
get prevSibling() {
|
|
445
|
+
let { buffer: t } = this.context, n = this._parent ? this._parent.index + 4 : 0;
|
|
446
|
+
return this.index == n ? this.externalSibling(-1) : new e(this.context, this._parent, t.findChild(n, this.index, -1, 0, 4));
|
|
447
|
+
}
|
|
448
|
+
get tree() {
|
|
449
|
+
return null;
|
|
450
|
+
}
|
|
451
|
+
toTree() {
|
|
452
|
+
let e = [], t = [], { buffer: n } = this.context, r = this.index + 4, i = n.buffer[this.index + 3];
|
|
453
|
+
if (i > r) {
|
|
454
|
+
let a = n.buffer[this.index + 1];
|
|
455
|
+
e.push(n.slice(r, i, a)), t.push(0);
|
|
456
|
+
}
|
|
457
|
+
return new f(this.type, e, t, this.to - this.from);
|
|
458
|
+
}
|
|
459
|
+
toString() {
|
|
460
|
+
return this.context.buffer.childString(this.index);
|
|
461
|
+
}
|
|
462
|
+
};
|
|
463
|
+
function C(e) {
|
|
464
|
+
if (!e.length) return null;
|
|
465
|
+
let t = 0, n = e[0];
|
|
466
|
+
for (let r = 1; r < e.length; r++) {
|
|
467
|
+
let i = e[r];
|
|
468
|
+
(i.from > n.from || i.to < n.to) && (n = i, t = r);
|
|
469
|
+
}
|
|
470
|
+
let r = n instanceof v && n.index < 0 ? null : n.parent, i = e.slice();
|
|
471
|
+
return r ? i[t] = r : i.splice(t, 1), new w(i, n);
|
|
472
|
+
}
|
|
473
|
+
var w = class {
|
|
474
|
+
constructor(e, t) {
|
|
475
|
+
this.heads = e, this.node = t;
|
|
476
|
+
}
|
|
477
|
+
get next() {
|
|
478
|
+
return C(this.heads);
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
function T(e, t, n) {
|
|
482
|
+
let r = e.resolveInner(t, n), i = null;
|
|
483
|
+
for (let e = r instanceof v ? r : r.context.parent; e; e = e.parent) if (e.index < 0) {
|
|
484
|
+
let a = e.parent;
|
|
485
|
+
(i ||= [r]).push(a.resolve(t, n)), e = a;
|
|
486
|
+
} else {
|
|
487
|
+
let o = a.get(e.tree);
|
|
488
|
+
if (o && o.overlay && o.overlay[0].from <= t && o.overlay[o.overlay.length - 1].to >= t) {
|
|
489
|
+
let a = new v(o.tree, o.overlay[0].from + e.from, -1, e);
|
|
490
|
+
(i ||= [r]).push(g(a, t, n, !1));
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
return i ? C(i) : r;
|
|
494
|
+
}
|
|
495
|
+
var E = class {
|
|
496
|
+
get name() {
|
|
497
|
+
return this.type.name;
|
|
498
|
+
}
|
|
499
|
+
constructor(e, t = 0) {
|
|
500
|
+
if (this.buffer = null, this.stack = [], this.index = 0, this.bufferNode = null, this.mode = t & ~d.EnterBracketed, e instanceof v) this.yieldNode(e);
|
|
501
|
+
else {
|
|
502
|
+
this._tree = e.context.parent, this.buffer = e.context;
|
|
503
|
+
for (let t = e._parent; t; t = t._parent) this.stack.unshift(t.index);
|
|
504
|
+
this.bufferNode = e, this.yieldBuf(e.index);
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
yieldNode(e) {
|
|
508
|
+
return e ? (this._tree = e, this.type = e.type, this.from = e.from, this.to = e.to, !0) : !1;
|
|
509
|
+
}
|
|
510
|
+
yieldBuf(e, t) {
|
|
511
|
+
this.index = e;
|
|
512
|
+
let { start: n, buffer: r } = this.buffer;
|
|
513
|
+
return this.type = t || r.set.types[r.buffer[e]], this.from = n + r.buffer[e + 1], this.to = n + r.buffer[e + 2], !0;
|
|
514
|
+
}
|
|
515
|
+
yield(e) {
|
|
516
|
+
return e ? e instanceof v ? (this.buffer = null, this.yieldNode(e)) : (this.buffer = e.context, this.yieldBuf(e.index, e.type)) : !1;
|
|
517
|
+
}
|
|
518
|
+
toString() {
|
|
519
|
+
return this.buffer ? this.buffer.buffer.childString(this.index) : this._tree.toString();
|
|
520
|
+
}
|
|
521
|
+
enterChild(e, t, n) {
|
|
522
|
+
if (!this.buffer) return this.yield(this._tree.nextChild(e < 0 ? this._tree._tree.children.length - 1 : 0, e, t, n, this.mode));
|
|
523
|
+
let { buffer: r } = this.buffer, i = r.findChild(this.index + 4, r.buffer[this.index + 3], e, t - this.buffer.start, n);
|
|
524
|
+
return i < 0 ? !1 : (this.stack.push(this.index), this.yieldBuf(i));
|
|
525
|
+
}
|
|
526
|
+
firstChild() {
|
|
527
|
+
return this.enterChild(1, 0, 4);
|
|
528
|
+
}
|
|
529
|
+
lastChild() {
|
|
530
|
+
return this.enterChild(-1, 0, 4);
|
|
531
|
+
}
|
|
532
|
+
childAfter(e) {
|
|
533
|
+
return this.enterChild(1, e, 2);
|
|
534
|
+
}
|
|
535
|
+
childBefore(e) {
|
|
536
|
+
return this.enterChild(-1, e, -2);
|
|
537
|
+
}
|
|
538
|
+
enter(e, t, n = this.mode) {
|
|
539
|
+
return this.buffer ? n & d.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, n));
|
|
540
|
+
}
|
|
541
|
+
parent() {
|
|
542
|
+
if (!this.buffer) return this.yieldNode(this.mode & d.IncludeAnonymous ? this._tree._parent : this._tree.parent);
|
|
543
|
+
if (this.stack.length) return this.yieldBuf(this.stack.pop());
|
|
544
|
+
let e = this.mode & d.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
|
|
545
|
+
return this.buffer = null, this.yieldNode(e);
|
|
546
|
+
}
|
|
547
|
+
sibling(e) {
|
|
548
|
+
if (!this.buffer) return this._tree._parent ? this.yield(this._tree.index < 0 ? null : this._tree._parent.nextChild(this._tree.index + e, e, 0, 4, this.mode)) : !1;
|
|
549
|
+
let { buffer: t } = this.buffer, n = this.stack.length - 1;
|
|
550
|
+
if (e < 0) {
|
|
551
|
+
let e = n < 0 ? 0 : this.stack[n] + 4;
|
|
552
|
+
if (this.index != e) return this.yieldBuf(t.findChild(e, this.index, -1, 0, 4));
|
|
553
|
+
} else {
|
|
554
|
+
let e = t.buffer[this.index + 3];
|
|
555
|
+
if (e < (n < 0 ? t.buffer.length : t.buffer[this.stack[n] + 3])) return this.yieldBuf(e);
|
|
556
|
+
}
|
|
557
|
+
return n < 0 && this.yield(this.buffer.parent.nextChild(this.buffer.index + e, e, 0, 4, this.mode));
|
|
558
|
+
}
|
|
559
|
+
nextSibling() {
|
|
560
|
+
return this.sibling(1);
|
|
561
|
+
}
|
|
562
|
+
prevSibling() {
|
|
563
|
+
return this.sibling(-1);
|
|
564
|
+
}
|
|
565
|
+
atLastNode(e) {
|
|
566
|
+
let t, n, { buffer: r } = this;
|
|
567
|
+
if (r) {
|
|
568
|
+
if (e > 0) {
|
|
569
|
+
if (this.index < r.buffer.buffer.length) return !1;
|
|
570
|
+
} else for (let e = 0; e < this.index; e++) if (r.buffer.buffer[e + 3] < this.index) return !1;
|
|
571
|
+
({index: t, parent: n} = r);
|
|
572
|
+
} else ({index: t, _parent: n} = this._tree);
|
|
573
|
+
for (; n; {index: t, _parent: n} = n) if (t > -1) for (let r = t + e, i = e < 0 ? -1 : n._tree.children.length; r != i; r += e) {
|
|
574
|
+
let e = n._tree.children[r];
|
|
575
|
+
if (this.mode & d.IncludeAnonymous || e instanceof m || !e.type.isAnonymous || D(e)) return !1;
|
|
576
|
+
}
|
|
577
|
+
return !0;
|
|
578
|
+
}
|
|
579
|
+
move(e, t) {
|
|
580
|
+
if (t && this.enterChild(e, 0, 4)) return !0;
|
|
581
|
+
for (;;) {
|
|
582
|
+
if (this.sibling(e)) return !0;
|
|
583
|
+
if (this.atLastNode(e) || !this.parent()) return !1;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
next(e = !0) {
|
|
587
|
+
return this.move(1, e);
|
|
588
|
+
}
|
|
589
|
+
prev(e = !0) {
|
|
590
|
+
return this.move(-1, e);
|
|
591
|
+
}
|
|
592
|
+
moveTo(e, t = 0) {
|
|
593
|
+
for (; (this.from == this.to || (t < 1 ? this.from >= e : this.from > e) || (t > -1 ? this.to <= e : this.to < e)) && this.parent(););
|
|
594
|
+
for (; this.enterChild(1, e, t););
|
|
595
|
+
return this;
|
|
596
|
+
}
|
|
597
|
+
get node() {
|
|
598
|
+
if (!this.buffer) return this._tree;
|
|
599
|
+
let e = this.bufferNode, t = null, n = 0;
|
|
600
|
+
if (e && e.context == this.buffer) scan: for (let r = this.index, i = this.stack.length; i >= 0;) {
|
|
601
|
+
for (let a = e; a; a = a._parent) if (a.index == r) {
|
|
602
|
+
if (r == this.index) return a;
|
|
603
|
+
t = a, n = i + 1;
|
|
604
|
+
break scan;
|
|
605
|
+
}
|
|
606
|
+
r = this.stack[--i];
|
|
607
|
+
}
|
|
608
|
+
for (let e = n; e < this.stack.length; e++) t = new S(this.buffer, t, this.stack[e]);
|
|
609
|
+
return this.bufferNode = new S(this.buffer, t, this.index);
|
|
610
|
+
}
|
|
611
|
+
get tree() {
|
|
612
|
+
return this.buffer ? null : this._tree._tree;
|
|
613
|
+
}
|
|
614
|
+
iterate(e, t) {
|
|
615
|
+
for (let n = 0;;) {
|
|
616
|
+
let r = !1;
|
|
617
|
+
if (this.type.isAnonymous || e(this) !== !1) {
|
|
618
|
+
if (this.firstChild()) {
|
|
619
|
+
n++;
|
|
620
|
+
continue;
|
|
621
|
+
}
|
|
622
|
+
this.type.isAnonymous || (r = !0);
|
|
623
|
+
}
|
|
624
|
+
for (;;) {
|
|
625
|
+
if (r && t && t(this), r = this.type.isAnonymous, !n) return;
|
|
626
|
+
if (this.nextSibling()) break;
|
|
627
|
+
this.parent(), n--, r = !0;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
matchContext(e) {
|
|
632
|
+
if (!this.buffer) return b(this.node.parent, e);
|
|
633
|
+
let { buffer: t } = this.buffer, { types: n } = t.set;
|
|
634
|
+
for (let r = e.length - 1, i = this.stack.length - 1; r >= 0; i--) {
|
|
635
|
+
if (i < 0) return b(this._tree, e, r);
|
|
636
|
+
let a = n[t.buffer[this.stack[i]]];
|
|
637
|
+
if (!a.isAnonymous) {
|
|
638
|
+
if (e[r] && e[r] != a.name) return !1;
|
|
639
|
+
r--;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
return !0;
|
|
643
|
+
}
|
|
644
|
+
};
|
|
645
|
+
function D(e) {
|
|
646
|
+
return e.children.some((e) => e instanceof m || !e.type.isAnonymous || D(e));
|
|
647
|
+
}
|
|
648
|
+
function O(e) {
|
|
649
|
+
let { buffer: n, nodeSet: r, maxBufferLength: a = t, reused: o = [], minRepeatType: s = r.types.length } = e, c = Array.isArray(n) ? new p(n, n.length) : n, l = r.types, u = 0, d = 0;
|
|
650
|
+
function h(e, t, n, i, f, p) {
|
|
651
|
+
let { id: S, start: C, end: w, size: T } = c, E = d, D = u;
|
|
652
|
+
if (T < 0) {
|
|
653
|
+
if (c.next(), T == -1) {
|
|
654
|
+
let t = o[S];
|
|
655
|
+
n.push(t), i.push(C - e);
|
|
656
|
+
return;
|
|
657
|
+
}
|
|
658
|
+
if (T == -3) {
|
|
659
|
+
u = S;
|
|
660
|
+
return;
|
|
661
|
+
}
|
|
662
|
+
if (T == -4) {
|
|
663
|
+
d = S;
|
|
664
|
+
return;
|
|
665
|
+
}
|
|
666
|
+
throw RangeError(`Unrecognized record size: ${T}`);
|
|
667
|
+
}
|
|
668
|
+
let O = l[S], k, A, M = C - e;
|
|
669
|
+
if (w - C <= a && (A = b(c.pos - t, f))) {
|
|
670
|
+
let t = new Uint16Array(A.size - A.skip), n = c.pos - A.size, i = t.length;
|
|
671
|
+
for (; c.pos > n;) i = x(A.start, t, i);
|
|
672
|
+
k = new m(t, w - A.start, r), M = A.start - e;
|
|
673
|
+
} else {
|
|
674
|
+
let e = c.pos - T;
|
|
675
|
+
c.next();
|
|
676
|
+
let t = [], n = [], r = S >= s ? S : -1, i = 0, o = w;
|
|
677
|
+
for (; c.pos > e;) r >= 0 && c.id == r && c.size >= 0 ? (c.end <= o - a && (v(t, n, C, i, c.end, o, r, E, D), i = t.length, o = c.end), c.next()) : p > 2500 ? g(C, e, t, n) : h(C, e, t, n, r, p + 1);
|
|
678
|
+
if (r >= 0 && i > 0 && i < t.length && v(t, n, C, i, C, o, r, E, D), t.reverse(), n.reverse(), r > -1 && i > 0) {
|
|
679
|
+
let e = _(O, D);
|
|
680
|
+
k = j(O, t, n, 0, t.length, 0, w - C, e, e);
|
|
681
|
+
} else k = y(O, t, n, w - C, E - w, D);
|
|
682
|
+
}
|
|
683
|
+
n.push(k), i.push(M);
|
|
684
|
+
}
|
|
685
|
+
function g(e, t, n, i) {
|
|
686
|
+
let o = [], s = 0, l = -1;
|
|
687
|
+
for (; c.pos > t;) {
|
|
688
|
+
let { id: e, start: t, end: n, size: r } = c;
|
|
689
|
+
if (r > 4) c.next();
|
|
690
|
+
else if (l > -1 && t < l) break;
|
|
691
|
+
else l < 0 && (l = n - a), o.push(e, t, n), s++, c.next();
|
|
692
|
+
}
|
|
693
|
+
if (s) {
|
|
694
|
+
let t = new Uint16Array(s * 4), a = o[o.length - 2];
|
|
695
|
+
for (let e = o.length - 3, n = 0; e >= 0; e -= 3) t[n++] = o[e], t[n++] = o[e + 1] - a, t[n++] = o[e + 2] - a, t[n++] = n;
|
|
696
|
+
n.push(new m(t, o[2] - a, r)), i.push(a - e);
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
function _(e, t) {
|
|
700
|
+
return (n, r, a) => {
|
|
701
|
+
let o = 0, s = n.length - 1, c, l;
|
|
702
|
+
if (s >= 0 && (c = n[s]) instanceof f) {
|
|
703
|
+
if (!s && c.type == e && c.length == a) return c;
|
|
704
|
+
(l = c.prop(i.lookAhead)) && (o = r[s] + c.length + l);
|
|
705
|
+
}
|
|
706
|
+
return y(e, n, r, a, o, t);
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
function v(e, t, n, i, a, o, s, c, l) {
|
|
710
|
+
let u = [], d = [];
|
|
711
|
+
for (; e.length > i;) u.push(e.pop()), d.push(t.pop() + n - a);
|
|
712
|
+
e.push(y(r.types[s], u, d, o - a, c - o, l)), t.push(a - n);
|
|
713
|
+
}
|
|
714
|
+
function y(e, t, n, r, a, o, s) {
|
|
715
|
+
if (o) {
|
|
716
|
+
let e = [i.contextHash, o];
|
|
717
|
+
s = s ? [e].concat(s) : [e];
|
|
718
|
+
}
|
|
719
|
+
if (a > 25) {
|
|
720
|
+
let e = [i.lookAhead, a];
|
|
721
|
+
s = s ? [e].concat(s) : [e];
|
|
722
|
+
}
|
|
723
|
+
return new f(e, t, n, r, s);
|
|
724
|
+
}
|
|
725
|
+
function b(e, t) {
|
|
726
|
+
let n = c.fork(), r = 0, i = 0, o = 0, l = n.end - a, u = {
|
|
727
|
+
size: 0,
|
|
728
|
+
start: 0,
|
|
729
|
+
skip: 0
|
|
730
|
+
};
|
|
731
|
+
scan: for (let a = n.pos - e; n.pos > a;) {
|
|
732
|
+
let e = n.size;
|
|
733
|
+
if (n.id == t && e >= 0) {
|
|
734
|
+
u.size = r, u.start = i, u.skip = o, o += 4, r += 4, n.next();
|
|
735
|
+
continue;
|
|
736
|
+
}
|
|
737
|
+
let c = n.pos - e;
|
|
738
|
+
if (e < 0 || c < a || n.start < l) break;
|
|
739
|
+
let d = n.id >= s ? 4 : 0, f = n.start;
|
|
740
|
+
for (n.next(); n.pos > c;) {
|
|
741
|
+
if (n.size < 0) {
|
|
742
|
+
if (n.size == -3 || n.size == -4) d += 4;
|
|
743
|
+
else break scan;
|
|
744
|
+
} else n.id >= s && (d += 4);
|
|
745
|
+
n.next();
|
|
746
|
+
}
|
|
747
|
+
i = f, r += e, o += d;
|
|
748
|
+
}
|
|
749
|
+
return (t < 0 || r == e) && (u.size = r, u.start = i, u.skip = o), u.size > 4 ? u : void 0;
|
|
750
|
+
}
|
|
751
|
+
function x(e, t, n) {
|
|
752
|
+
let { id: r, start: i, end: a, size: o } = c;
|
|
753
|
+
if (c.next(), o >= 0 && r < s) {
|
|
754
|
+
let s = n;
|
|
755
|
+
if (o > 4) {
|
|
756
|
+
let r = c.pos - (o - 4);
|
|
757
|
+
for (; c.pos > r;) n = x(e, t, n);
|
|
758
|
+
}
|
|
759
|
+
t[--n] = s, t[--n] = a - e, t[--n] = i - e, t[--n] = r;
|
|
760
|
+
} else o == -3 ? u = r : o == -4 && (d = r);
|
|
761
|
+
return n;
|
|
762
|
+
}
|
|
763
|
+
let S = [], C = [];
|
|
764
|
+
for (; c.pos > 0;) h(e.start || 0, e.bufferStart || 0, S, C, -1, 0);
|
|
765
|
+
let w = e.length ?? (S.length ? C[0] + S[0].length : 0);
|
|
766
|
+
return new f(l[e.topID], S.reverse(), C.reverse(), w);
|
|
767
|
+
}
|
|
768
|
+
var k = /* @__PURE__ */ new WeakMap();
|
|
769
|
+
function A(e, t) {
|
|
770
|
+
if (!e.isAnonymous || t instanceof m || t.type != e) return 1;
|
|
771
|
+
let n = k.get(t);
|
|
772
|
+
if (n == null) {
|
|
773
|
+
n = 1;
|
|
774
|
+
for (let r of t.children) {
|
|
775
|
+
if (r.type != e || !(r instanceof f)) {
|
|
776
|
+
n = 1;
|
|
777
|
+
break;
|
|
778
|
+
}
|
|
779
|
+
n += A(e, r);
|
|
780
|
+
}
|
|
781
|
+
k.set(t, n);
|
|
782
|
+
}
|
|
783
|
+
return n;
|
|
784
|
+
}
|
|
785
|
+
function j(e, t, n, r, i, a, o, s, c) {
|
|
786
|
+
let l = 0;
|
|
787
|
+
for (let n = r; n < i; n++) l += A(e, t[n]);
|
|
788
|
+
let u = Math.ceil(l * 1.5 / 8), d = [], f = [];
|
|
789
|
+
function p(t, n, r, i, o) {
|
|
790
|
+
for (let s = r; s < i;) {
|
|
791
|
+
let r = s, l = n[s], m = A(e, t[s]);
|
|
792
|
+
for (s++; s < i; s++) {
|
|
793
|
+
let n = A(e, t[s]);
|
|
794
|
+
if (m + n >= u) break;
|
|
795
|
+
m += n;
|
|
796
|
+
}
|
|
797
|
+
if (s == r + 1) {
|
|
798
|
+
if (m > u) {
|
|
799
|
+
let e = t[r];
|
|
800
|
+
p(e.children, e.positions, 0, e.children.length, n[r] + o);
|
|
801
|
+
continue;
|
|
802
|
+
}
|
|
803
|
+
d.push(t[r]);
|
|
804
|
+
} else {
|
|
805
|
+
let i = n[s - 1] + t[s - 1].length - l;
|
|
806
|
+
d.push(j(e, t, n, r, s, l, i, null, c));
|
|
807
|
+
}
|
|
808
|
+
f.push(l + o - a);
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
return p(t, n, r, i, 0), (s || c)(d, f, o);
|
|
812
|
+
}
|
|
813
|
+
var M = class {
|
|
814
|
+
constructor() {
|
|
815
|
+
this.map = /* @__PURE__ */ new WeakMap();
|
|
816
|
+
}
|
|
817
|
+
setBuffer(e, t, n) {
|
|
818
|
+
let r = this.map.get(e);
|
|
819
|
+
r || this.map.set(e, r = /* @__PURE__ */ new Map()), r.set(t, n);
|
|
820
|
+
}
|
|
821
|
+
getBuffer(e, t) {
|
|
822
|
+
let n = this.map.get(e);
|
|
823
|
+
return n && n.get(t);
|
|
824
|
+
}
|
|
825
|
+
set(e, t) {
|
|
826
|
+
e instanceof S ? this.setBuffer(e.context.buffer, e.index, t) : e instanceof v && this.map.set(e.tree, t);
|
|
827
|
+
}
|
|
828
|
+
get(e) {
|
|
829
|
+
return e instanceof S ? this.getBuffer(e.context.buffer, e.index) : e instanceof v ? this.map.get(e.tree) : void 0;
|
|
830
|
+
}
|
|
831
|
+
cursorSet(e, t) {
|
|
832
|
+
e.buffer ? this.setBuffer(e.buffer.buffer, e.index, t) : this.map.set(e.tree, t);
|
|
833
|
+
}
|
|
834
|
+
cursorGet(e) {
|
|
835
|
+
return e.buffer ? this.getBuffer(e.buffer.buffer, e.index) : this.map.get(e.tree);
|
|
836
|
+
}
|
|
837
|
+
}, N = class e {
|
|
838
|
+
constructor(e, t, n, r, i = !1, a = !1) {
|
|
839
|
+
this.from = e, this.to = t, this.tree = n, this.offset = r, this.open = !!i | (a ? 2 : 0);
|
|
840
|
+
}
|
|
841
|
+
get openStart() {
|
|
842
|
+
return (this.open & 1) > 0;
|
|
843
|
+
}
|
|
844
|
+
get openEnd() {
|
|
845
|
+
return (this.open & 2) > 0;
|
|
846
|
+
}
|
|
847
|
+
static addTree(t, n = [], r = !1) {
|
|
848
|
+
let i = [new e(0, t.length, t, 0, !1, r)];
|
|
849
|
+
for (let e of n) e.to > t.length && i.push(e);
|
|
850
|
+
return i;
|
|
851
|
+
}
|
|
852
|
+
static applyChanges(t, n, r = 128) {
|
|
853
|
+
if (!n.length) return t;
|
|
854
|
+
let i = [], a = 1, o = t.length ? t[0] : null;
|
|
855
|
+
for (let s = 0, c = 0, l = 0;; s++) {
|
|
856
|
+
let u = s < n.length ? n[s] : null, d = u ? u.fromA : 1e9;
|
|
857
|
+
if (d - c >= r) for (; o && o.from < d;) {
|
|
858
|
+
let n = o;
|
|
859
|
+
if (c >= n.from || d <= n.to || l) {
|
|
860
|
+
let t = Math.max(n.from, c) - l, r = Math.min(n.to, d) - l;
|
|
861
|
+
n = t >= r ? null : new e(t, r, n.tree, n.offset + l, s > 0, !!u);
|
|
862
|
+
}
|
|
863
|
+
if (n && i.push(n), o.to > d) break;
|
|
864
|
+
o = a < t.length ? t[a++] : null;
|
|
865
|
+
}
|
|
866
|
+
if (!u) break;
|
|
867
|
+
c = u.toA, l = u.toA - u.toB;
|
|
868
|
+
}
|
|
869
|
+
return i;
|
|
870
|
+
}
|
|
871
|
+
}, ee = class {
|
|
872
|
+
startParse(e, t, n) {
|
|
873
|
+
return typeof e == "string" && (e = new te(e)), n = n ? n.length ? n.map((e) => new r(e.from, e.to)) : [new r(0, 0)] : [new r(0, e.length)], this.createParse(e, t || [], n);
|
|
874
|
+
}
|
|
875
|
+
parse(e, t, n) {
|
|
876
|
+
let r = this.startParse(e, t, n);
|
|
877
|
+
for (;;) {
|
|
878
|
+
let e = r.advance();
|
|
879
|
+
if (e) return e;
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
}, te = class {
|
|
883
|
+
constructor(e) {
|
|
884
|
+
this.string = e;
|
|
885
|
+
}
|
|
886
|
+
get length() {
|
|
887
|
+
return this.string.length;
|
|
888
|
+
}
|
|
889
|
+
chunk(e) {
|
|
890
|
+
return this.string.slice(e);
|
|
891
|
+
}
|
|
892
|
+
get lineChunks() {
|
|
893
|
+
return !1;
|
|
894
|
+
}
|
|
895
|
+
read(e, t) {
|
|
896
|
+
return this.string.slice(e, t);
|
|
897
|
+
}
|
|
898
|
+
};
|
|
899
|
+
function ne(e) {
|
|
900
|
+
return (t, n, r, i) => new oe(t, e, n, r, i);
|
|
901
|
+
}
|
|
902
|
+
var re = class {
|
|
903
|
+
constructor(e, t, n, r, i, a) {
|
|
904
|
+
this.parser = e, this.parse = t, this.overlay = n, this.bracketed = r, this.target = i, this.from = a;
|
|
905
|
+
}
|
|
906
|
+
};
|
|
907
|
+
function ie(e) {
|
|
908
|
+
if (!e.length || e.some((e) => e.from >= e.to)) throw RangeError("Invalid inner parse ranges given: " + JSON.stringify(e));
|
|
909
|
+
}
|
|
910
|
+
var ae = class {
|
|
911
|
+
constructor(e, t, n, r, i, a, o, s) {
|
|
912
|
+
this.parser = e, this.predicate = t, this.mounts = n, this.index = r, this.start = i, this.bracketed = a, this.target = o, this.prev = s, this.depth = 0, this.ranges = [];
|
|
913
|
+
}
|
|
914
|
+
}, P = new i({ perNode: !0 }), oe = class {
|
|
915
|
+
constructor(e, t, n, r, i) {
|
|
916
|
+
this.nest = t, this.input = n, this.fragments = r, this.ranges = i, this.inner = [], this.innerDone = 0, this.baseTree = null, this.stoppedAt = null, this.baseParse = e;
|
|
917
|
+
}
|
|
918
|
+
advance() {
|
|
919
|
+
if (this.baseParse) {
|
|
920
|
+
let e = this.baseParse.advance();
|
|
921
|
+
if (!e) return null;
|
|
922
|
+
if (this.baseParse = null, this.baseTree = e, this.startInner(), this.stoppedAt != null) for (let e of this.inner) e.parse.stopAt(this.stoppedAt);
|
|
923
|
+
}
|
|
924
|
+
if (this.innerDone == this.inner.length) {
|
|
925
|
+
let e = this.baseTree;
|
|
926
|
+
return this.stoppedAt != null && (e = new f(e.type, e.children, e.positions, e.length, e.propValues.concat([[P, this.stoppedAt]]))), e;
|
|
927
|
+
}
|
|
928
|
+
let e = this.inner[this.innerDone], t = e.parse.advance();
|
|
929
|
+
if (t) {
|
|
930
|
+
this.innerDone++;
|
|
931
|
+
let n = Object.assign(Object.create(null), e.target.props);
|
|
932
|
+
n[i.mounted.id] = new a(t, e.overlay, e.parser, e.bracketed), e.target.props = n;
|
|
933
|
+
}
|
|
934
|
+
return null;
|
|
935
|
+
}
|
|
936
|
+
get parsedPos() {
|
|
937
|
+
if (this.baseParse) return 0;
|
|
938
|
+
let e = this.input.length;
|
|
939
|
+
for (let t = this.innerDone; t < this.inner.length; t++) this.inner[t].from < e && (e = Math.min(e, this.inner[t].parse.parsedPos));
|
|
940
|
+
return e;
|
|
941
|
+
}
|
|
942
|
+
stopAt(e) {
|
|
943
|
+
if (this.stoppedAt = e, this.baseParse) this.baseParse.stopAt(e);
|
|
944
|
+
else for (let t = this.innerDone; t < this.inner.length; t++) this.inner[t].parse.stopAt(e);
|
|
945
|
+
}
|
|
946
|
+
startInner() {
|
|
947
|
+
let e = new de(this.fragments), t = null, n = null, i = new E(new v(this.baseTree, this.ranges[0].from, 0, null), d.IncludeAnonymous | d.IgnoreMounts);
|
|
948
|
+
scan: for (let a, o;;) {
|
|
949
|
+
let s = !0, c;
|
|
950
|
+
if (this.stoppedAt != null && i.from >= this.stoppedAt) s = !1;
|
|
951
|
+
else if (e.hasNode(i)) {
|
|
952
|
+
if (t) {
|
|
953
|
+
let e = t.mounts.find((e) => e.frag.from <= i.from && e.frag.to >= i.to && e.mount.overlay);
|
|
954
|
+
if (e) for (let n of e.mount.overlay) {
|
|
955
|
+
let r = n.from + e.pos, a = n.to + e.pos;
|
|
956
|
+
r >= i.from && a <= i.to && !t.ranges.some((e) => e.from < a && e.to > r) && t.ranges.push({
|
|
957
|
+
from: r,
|
|
958
|
+
to: a
|
|
959
|
+
});
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
s = !1;
|
|
963
|
+
} else if (n && (o = se(n.ranges, i.from, i.to))) s = o != 2;
|
|
964
|
+
else if (!i.type.isAnonymous && (a = this.nest(i, this.input)) && (i.from < i.to || !a.overlay)) {
|
|
965
|
+
i.tree || (le(i), t && t.depth++, n && n.depth++);
|
|
966
|
+
let o = e.findMounts(i.from, a.parser);
|
|
967
|
+
if (typeof a.overlay == "function") t = new ae(a.parser, a.overlay, o, this.inner.length, i.from, !!a.bracketed, i.tree, t);
|
|
968
|
+
else {
|
|
969
|
+
let e = fe(this.ranges, a.overlay || (i.from < i.to ? [new r(i.from, i.to)] : []));
|
|
970
|
+
e.length && ie(e), (e.length || !a.overlay) && this.inner.push(new re(a.parser, e.length ? a.parser.startParse(this.input, me(o, e), e) : a.parser.startParse(""), a.overlay ? a.overlay.map((e) => new r(e.from - i.from, e.to - i.from)) : null, !!a.bracketed, i.tree, e.length ? e[0].from : i.from)), a.overlay ? e.length && (n = {
|
|
971
|
+
ranges: e,
|
|
972
|
+
depth: 0,
|
|
973
|
+
prev: n
|
|
974
|
+
}) : s = !1;
|
|
975
|
+
}
|
|
976
|
+
} else if (t && (c = t.predicate(i)) && (c === !0 && (c = new r(i.from, i.to)), c.from < c.to)) {
|
|
977
|
+
let e = t.ranges.length - 1;
|
|
978
|
+
e >= 0 && t.ranges[e].to == c.from ? t.ranges[e] = {
|
|
979
|
+
from: t.ranges[e].from,
|
|
980
|
+
to: c.to
|
|
981
|
+
} : t.ranges.push(c);
|
|
982
|
+
}
|
|
983
|
+
if (s && i.firstChild()) t && t.depth++, n && n.depth++;
|
|
984
|
+
else for (; !i.nextSibling();) {
|
|
985
|
+
if (!i.parent()) break scan;
|
|
986
|
+
if (t && !--t.depth) {
|
|
987
|
+
let e = fe(this.ranges, t.ranges);
|
|
988
|
+
e.length && (ie(e), this.inner.splice(t.index, 0, new re(t.parser, t.parser.startParse(this.input, me(t.mounts, e), e), t.ranges.map((e) => new r(e.from - t.start, e.to - t.start)), t.bracketed, t.target, e[0].from))), t = t.prev;
|
|
989
|
+
}
|
|
990
|
+
n && !--n.depth && (n = n.prev);
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
};
|
|
995
|
+
function se(e, t, n) {
|
|
996
|
+
for (let r of e) {
|
|
997
|
+
if (r.from >= n) break;
|
|
998
|
+
if (r.to > t) return r.from <= t && r.to >= n ? 2 : 1;
|
|
999
|
+
}
|
|
1000
|
+
return 0;
|
|
1001
|
+
}
|
|
1002
|
+
function ce(e, t, n, r, i, a) {
|
|
1003
|
+
if (t < n) {
|
|
1004
|
+
let o = e.buffer[t + 1];
|
|
1005
|
+
r.push(e.slice(t, n, o)), i.push(o - a);
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
function le(e) {
|
|
1009
|
+
let { node: t } = e, n = [], r = t.context.buffer;
|
|
1010
|
+
do
|
|
1011
|
+
n.push(e.index), e.parent();
|
|
1012
|
+
while (!e.tree);
|
|
1013
|
+
let i = e.tree, a = i.children.indexOf(r), o = i.children[a], c = o.buffer, l = [a];
|
|
1014
|
+
function u(e, r, i, a, s, d) {
|
|
1015
|
+
let p = n[d], m = [], h = [];
|
|
1016
|
+
ce(o, e, p, m, h, a);
|
|
1017
|
+
let g = c[p + 1], _ = c[p + 2];
|
|
1018
|
+
l.push(m.length);
|
|
1019
|
+
let v = d ? u(p + 4, c[p + 3], o.set.types[c[p]], g, _ - g, d - 1) : t.toTree();
|
|
1020
|
+
return m.push(v), h.push(g - a), ce(o, c[p + 3], r, m, h, a), new f(i, m, h, s);
|
|
1021
|
+
}
|
|
1022
|
+
i.children[a] = u(0, c.length, s.none, 0, o.length, n.length - 1);
|
|
1023
|
+
for (let t of l) {
|
|
1024
|
+
let n = e.tree.children[t], r = e.tree.positions[t];
|
|
1025
|
+
e.yield(new v(n, r + e.from, t, e._tree));
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
var ue = class {
|
|
1029
|
+
constructor(e, t) {
|
|
1030
|
+
this.offset = t, this.done = !1, this.cursor = e.cursor(d.IncludeAnonymous | d.IgnoreMounts);
|
|
1031
|
+
}
|
|
1032
|
+
moveTo(e) {
|
|
1033
|
+
let { cursor: t } = this, n = e - this.offset;
|
|
1034
|
+
for (; !this.done && t.from < n;) if (!(t.to >= e && t.enter(n, 1, d.IgnoreOverlays | d.ExcludeBuffers))) {
|
|
1035
|
+
if (t.to <= e) t.next(!1) || (this.done = !0);
|
|
1036
|
+
else break;
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
hasNode(e) {
|
|
1040
|
+
if (this.moveTo(e.from), !this.done && this.cursor.from + this.offset == e.from && this.cursor.tree) for (let t = this.cursor.tree;;) {
|
|
1041
|
+
if (t == e.tree) return !0;
|
|
1042
|
+
if (t.children.length && t.positions[0] == 0 && t.children[0] instanceof f) t = t.children[0];
|
|
1043
|
+
else break;
|
|
1044
|
+
}
|
|
1045
|
+
return !1;
|
|
1046
|
+
}
|
|
1047
|
+
}, de = class {
|
|
1048
|
+
constructor(e) {
|
|
1049
|
+
if (this.fragments = e, this.curTo = 0, this.fragI = 0, e.length) {
|
|
1050
|
+
let t = this.curFrag = e[0];
|
|
1051
|
+
this.curTo = t.tree.prop(P) ?? t.to, this.inner = new ue(t.tree, -t.offset);
|
|
1052
|
+
} else this.curFrag = this.inner = null;
|
|
1053
|
+
}
|
|
1054
|
+
hasNode(e) {
|
|
1055
|
+
for (; this.curFrag && e.from >= this.curTo;) this.nextFrag();
|
|
1056
|
+
return this.curFrag && this.curFrag.from <= e.from && this.curTo >= e.to && this.inner.hasNode(e);
|
|
1057
|
+
}
|
|
1058
|
+
nextFrag() {
|
|
1059
|
+
if (this.fragI++, this.fragI == this.fragments.length) this.curFrag = this.inner = null;
|
|
1060
|
+
else {
|
|
1061
|
+
let e = this.curFrag = this.fragments[this.fragI];
|
|
1062
|
+
this.curTo = e.tree.prop(P) ?? e.to, this.inner = new ue(e.tree, -e.offset);
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
findMounts(e, t) {
|
|
1066
|
+
let n = [];
|
|
1067
|
+
if (this.inner) {
|
|
1068
|
+
this.inner.cursor.moveTo(e, 1);
|
|
1069
|
+
for (let e = this.inner.cursor.node; e; e = e.parent) {
|
|
1070
|
+
let r = e.tree?.prop(i.mounted);
|
|
1071
|
+
if (r && r.parser == t) for (let t = this.fragI; t < this.fragments.length; t++) {
|
|
1072
|
+
let i = this.fragments[t];
|
|
1073
|
+
if (i.from >= e.to) break;
|
|
1074
|
+
i.tree == this.curFrag.tree && n.push({
|
|
1075
|
+
frag: i,
|
|
1076
|
+
pos: e.from - i.offset,
|
|
1077
|
+
mount: r
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
return n;
|
|
1083
|
+
}
|
|
1084
|
+
};
|
|
1085
|
+
function fe(e, t) {
|
|
1086
|
+
let n = null, i = t;
|
|
1087
|
+
for (let a = 1, o = 0; a < e.length; a++) {
|
|
1088
|
+
let s = e[a - 1].to, c = e[a].from;
|
|
1089
|
+
for (; o < i.length; o++) {
|
|
1090
|
+
let e = i[o];
|
|
1091
|
+
if (e.from >= c) break;
|
|
1092
|
+
e.to <= s || (n || (i = n = t.slice()), e.from < s ? (n[o] = new r(e.from, s), e.to > c && n.splice(o + 1, 0, new r(c, e.to))) : e.to > c ? n[o--] = new r(c, e.to) : n.splice(o--, 1));
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
return i;
|
|
1096
|
+
}
|
|
1097
|
+
function pe(e, t, n, i) {
|
|
1098
|
+
let a = 0, o = 0, s = !1, c = !1, l = -1e9, u = [];
|
|
1099
|
+
for (;;) {
|
|
1100
|
+
let d = a == e.length ? 1e9 : s ? e[a].to : e[a].from, f = o == t.length ? 1e9 : c ? t[o].to : t[o].from;
|
|
1101
|
+
if (s != c) {
|
|
1102
|
+
let e = Math.max(l, n), t = Math.min(d, f, i);
|
|
1103
|
+
e < t && u.push(new r(e, t));
|
|
1104
|
+
}
|
|
1105
|
+
if (l = Math.min(d, f), l == 1e9) break;
|
|
1106
|
+
d == l && (s ? (s = !1, a++) : s = !0), f == l && (c ? (c = !1, o++) : c = !0);
|
|
1107
|
+
}
|
|
1108
|
+
return u;
|
|
1109
|
+
}
|
|
1110
|
+
function me(e, t) {
|
|
1111
|
+
let n = [];
|
|
1112
|
+
for (let { pos: i, mount: a, frag: o } of e) {
|
|
1113
|
+
let e = i + (a.overlay ? a.overlay[0].from : 0), s = e + a.tree.length, c = Math.max(o.from, e), l = Math.min(o.to, s);
|
|
1114
|
+
if (a.overlay) {
|
|
1115
|
+
let s = pe(t, a.overlay.map((e) => new r(e.from + i, e.to + i)), c, l);
|
|
1116
|
+
for (let t = 0, r = c;; t++) {
|
|
1117
|
+
let i = t == s.length, c = i ? l : s[t].from;
|
|
1118
|
+
if (c > r && n.push(new N(r, c, a.tree, -e, o.from >= r || o.openStart, o.to <= c || o.openEnd)), i) break;
|
|
1119
|
+
r = s[t].to;
|
|
1120
|
+
}
|
|
1121
|
+
} else n.push(new N(c, l, a.tree, -e, o.from >= e || o.openStart, o.to <= s || o.openEnd));
|
|
1122
|
+
}
|
|
1123
|
+
return n;
|
|
1124
|
+
}
|
|
1125
|
+
//#endregion
|
|
1126
|
+
//#region ../../node_modules/@lezer/highlight/dist/index.js
|
|
1127
|
+
var he = /* @__PURE__ */ e({
|
|
1128
|
+
Tag: () => F,
|
|
1129
|
+
classHighlighter: () => Oe,
|
|
1130
|
+
getStyleTags: () => Te,
|
|
1131
|
+
highlightCode: () => Ce,
|
|
1132
|
+
highlightTree: () => z,
|
|
1133
|
+
styleTags: () => I,
|
|
1134
|
+
tagHighlighter: () => R,
|
|
1135
|
+
tags: () => $
|
|
1136
|
+
}), ge = 0, F = class e {
|
|
1137
|
+
constructor(e, t, n, r) {
|
|
1138
|
+
this.name = e, this.set = t, this.base = n, this.modified = r, this.id = ge++;
|
|
1139
|
+
}
|
|
1140
|
+
toString() {
|
|
1141
|
+
let { name: e } = this;
|
|
1142
|
+
for (let t of this.modified) t.name && (e = `${t.name}(${e})`);
|
|
1143
|
+
return e;
|
|
1144
|
+
}
|
|
1145
|
+
static define(t, n) {
|
|
1146
|
+
let r = typeof t == "string" ? t : "?";
|
|
1147
|
+
if (t instanceof e && (n = t), n?.base) throw Error("Can not derive from a modified tag");
|
|
1148
|
+
let i = new e(r, [], null, []);
|
|
1149
|
+
if (i.set.push(i), n) for (let e of n.set) i.set.push(e);
|
|
1150
|
+
return i;
|
|
1151
|
+
}
|
|
1152
|
+
static defineModifier(e) {
|
|
1153
|
+
let t = new ve(e);
|
|
1154
|
+
return (e) => e.modified.indexOf(t) > -1 ? e : ve.get(e.base || e, e.modified.concat(t).sort((e, t) => e.id - t.id));
|
|
1155
|
+
}
|
|
1156
|
+
}, _e = 0, ve = class e {
|
|
1157
|
+
constructor(e) {
|
|
1158
|
+
this.name = e, this.instances = [], this.id = _e++;
|
|
1159
|
+
}
|
|
1160
|
+
static get(t, n) {
|
|
1161
|
+
if (!n.length) return t;
|
|
1162
|
+
let r = n[0].instances.find((e) => e.base == t && ye(n, e.modified));
|
|
1163
|
+
if (r) return r;
|
|
1164
|
+
let i = [], a = new F(t.name, i, t, n);
|
|
1165
|
+
for (let e of n) e.instances.push(a);
|
|
1166
|
+
let o = be(n);
|
|
1167
|
+
for (let n of t.set) if (!n.modified.length) for (let t of o) i.push(e.get(n, t));
|
|
1168
|
+
return a;
|
|
1169
|
+
}
|
|
1170
|
+
};
|
|
1171
|
+
function ye(e, t) {
|
|
1172
|
+
return e.length == t.length && e.every((e, n) => e == t[n]);
|
|
1173
|
+
}
|
|
1174
|
+
function be(e) {
|
|
1175
|
+
let t = [[]];
|
|
1176
|
+
for (let n = 0; n < e.length; n++) for (let r = 0, i = t.length; r < i; r++) t.push(t[r].concat(e[n]));
|
|
1177
|
+
return t.sort((e, t) => t.length - e.length);
|
|
1178
|
+
}
|
|
1179
|
+
function I(e) {
|
|
1180
|
+
let t = Object.create(null);
|
|
1181
|
+
for (let n in e) {
|
|
1182
|
+
let r = e[n];
|
|
1183
|
+
Array.isArray(r) || (r = [r]);
|
|
1184
|
+
for (let e of n.split(" ")) if (e) {
|
|
1185
|
+
let n = [], i = 2, a = e;
|
|
1186
|
+
for (let t = 0;;) {
|
|
1187
|
+
if (a == "..." && t > 0 && t + 3 == e.length) {
|
|
1188
|
+
i = 1;
|
|
1189
|
+
break;
|
|
1190
|
+
}
|
|
1191
|
+
let r = /^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(a);
|
|
1192
|
+
if (!r) throw RangeError("Invalid path: " + e);
|
|
1193
|
+
if (n.push(r[0] == "*" ? "" : r[0][0] == "\"" ? JSON.parse(r[0]) : r[0]), t += r[0].length, t == e.length) break;
|
|
1194
|
+
let o = e[t++];
|
|
1195
|
+
if (t == e.length && o == "!") {
|
|
1196
|
+
i = 0;
|
|
1197
|
+
break;
|
|
1198
|
+
}
|
|
1199
|
+
if (o != "/") throw RangeError("Invalid path: " + e);
|
|
1200
|
+
a = e.slice(t);
|
|
1201
|
+
}
|
|
1202
|
+
let o = n.length - 1, s = n[o];
|
|
1203
|
+
if (!s) throw RangeError("Invalid path: " + e);
|
|
1204
|
+
t[s] = new L(r, i, o > 0 ? n.slice(0, o) : null).sort(t[s]);
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
return xe.add(t);
|
|
1208
|
+
}
|
|
1209
|
+
var xe = new i({ combine(e, t) {
|
|
1210
|
+
let n, r, i;
|
|
1211
|
+
for (; e || t;) {
|
|
1212
|
+
if (!e || t && e.depth >= t.depth ? (i = t, t = t.next) : (i = e, e = e.next), n && n.mode == i.mode && !i.context && !n.context) continue;
|
|
1213
|
+
let a = new L(i.tags, i.mode, i.context);
|
|
1214
|
+
n ? n.next = a : r = a, n = a;
|
|
1215
|
+
}
|
|
1216
|
+
return r;
|
|
1217
|
+
} }), L = class {
|
|
1218
|
+
constructor(e, t, n, r) {
|
|
1219
|
+
this.tags = e, this.mode = t, this.context = n, this.next = r;
|
|
1220
|
+
}
|
|
1221
|
+
get opaque() {
|
|
1222
|
+
return this.mode == 0;
|
|
1223
|
+
}
|
|
1224
|
+
get inherit() {
|
|
1225
|
+
return this.mode == 1;
|
|
1226
|
+
}
|
|
1227
|
+
sort(e) {
|
|
1228
|
+
return !e || e.depth < this.depth ? (this.next = e, this) : (e.next = this.sort(e.next), e);
|
|
1229
|
+
}
|
|
1230
|
+
get depth() {
|
|
1231
|
+
return this.context ? this.context.length : 0;
|
|
1232
|
+
}
|
|
1233
|
+
};
|
|
1234
|
+
L.empty = new L([], 2, null);
|
|
1235
|
+
function R(e, t) {
|
|
1236
|
+
let n = Object.create(null);
|
|
1237
|
+
for (let t of e) if (!Array.isArray(t.tag)) n[t.tag.id] = t.class;
|
|
1238
|
+
else for (let e of t.tag) n[e.id] = t.class;
|
|
1239
|
+
let { scope: r, all: i = null } = t || {};
|
|
1240
|
+
return {
|
|
1241
|
+
style: (e) => {
|
|
1242
|
+
let t = i;
|
|
1243
|
+
for (let r of e) for (let e of r.set) {
|
|
1244
|
+
let r = n[e.id];
|
|
1245
|
+
if (r) {
|
|
1246
|
+
t = t ? t + " " + r : r;
|
|
1247
|
+
break;
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
return t;
|
|
1251
|
+
},
|
|
1252
|
+
scope: r
|
|
1253
|
+
};
|
|
1254
|
+
}
|
|
1255
|
+
function Se(e, t) {
|
|
1256
|
+
let n = null;
|
|
1257
|
+
for (let r of e) {
|
|
1258
|
+
let e = r.style(t);
|
|
1259
|
+
e && (n = n ? n + " " + e : e);
|
|
1260
|
+
}
|
|
1261
|
+
return n;
|
|
1262
|
+
}
|
|
1263
|
+
function z(e, t, n, r = 0, i = e.length) {
|
|
1264
|
+
let a = new we(r, Array.isArray(t) ? t : [t], n);
|
|
1265
|
+
a.highlightRange(e.cursor(), r, i, "", a.highlighters), a.flush(i);
|
|
1266
|
+
}
|
|
1267
|
+
function Ce(e, t, n, r, i, a = 0, o = e.length) {
|
|
1268
|
+
let s = a;
|
|
1269
|
+
function c(t, n) {
|
|
1270
|
+
if (!(t <= s)) {
|
|
1271
|
+
for (let a = e.slice(s, t), o = 0;;) {
|
|
1272
|
+
let e = a.indexOf("\n", o), t = e < 0 ? a.length : e;
|
|
1273
|
+
if (t > o && r(a.slice(o, t), n), e < 0) break;
|
|
1274
|
+
i(), o = e + 1;
|
|
1275
|
+
}
|
|
1276
|
+
s = t;
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
z(t, n, (e, t, n) => {
|
|
1280
|
+
c(e, ""), c(t, n);
|
|
1281
|
+
}, a, o), c(o, "");
|
|
1282
|
+
}
|
|
1283
|
+
var we = class {
|
|
1284
|
+
constructor(e, t, n) {
|
|
1285
|
+
this.at = e, this.highlighters = t, this.span = n, this.class = "";
|
|
1286
|
+
}
|
|
1287
|
+
startSpan(e, t) {
|
|
1288
|
+
t != this.class && (this.flush(e), e > this.at && (this.at = e), this.class = t);
|
|
1289
|
+
}
|
|
1290
|
+
flush(e) {
|
|
1291
|
+
e > this.at && this.class && this.span(this.at, e, this.class);
|
|
1292
|
+
}
|
|
1293
|
+
highlightRange(e, t, n, r, a) {
|
|
1294
|
+
let { type: o, from: s, to: c } = e;
|
|
1295
|
+
if (s >= n || c <= t) return;
|
|
1296
|
+
o.isTop && (a = this.highlighters.filter((e) => !e.scope || e.scope(o)));
|
|
1297
|
+
let l = r, u = Te(e) || L.empty, d = Se(a, u.tags);
|
|
1298
|
+
if (d && (l && (l += " "), l += d, u.mode == 1 && (r += (r ? " " : "") + d)), this.startSpan(Math.max(t, s), l), u.opaque) return;
|
|
1299
|
+
let f = e.tree && e.tree.prop(i.mounted);
|
|
1300
|
+
if (f && f.overlay) {
|
|
1301
|
+
let i = e.node.enter(f.overlay[0].from + s, 1), o = this.highlighters.filter((e) => !e.scope || e.scope(f.tree.type)), u = e.firstChild();
|
|
1302
|
+
for (let d = 0, p = s;; d++) {
|
|
1303
|
+
let m = d < f.overlay.length ? f.overlay[d] : null, h = m ? m.from + s : c, g = Math.max(t, p), _ = Math.min(n, h);
|
|
1304
|
+
if (g < _ && u) for (; e.from < _ && (this.highlightRange(e, g, _, r, a), this.startSpan(Math.min(_, e.to), l), !(e.to >= h || !e.nextSibling())););
|
|
1305
|
+
if (!m || h > n) break;
|
|
1306
|
+
p = m.to + s, p > t && (this.highlightRange(i.cursor(), Math.max(t, m.from + s), Math.min(n, p), "", o), this.startSpan(Math.min(n, p), l));
|
|
1307
|
+
}
|
|
1308
|
+
u && e.parent();
|
|
1309
|
+
} else if (e.firstChild()) {
|
|
1310
|
+
f && (r = "");
|
|
1311
|
+
do
|
|
1312
|
+
if (!(e.to <= t)) {
|
|
1313
|
+
if (e.from >= n) break;
|
|
1314
|
+
this.highlightRange(e, t, n, r, a), this.startSpan(Math.min(n, e.to), l);
|
|
1315
|
+
}
|
|
1316
|
+
while (e.nextSibling());
|
|
1317
|
+
e.parent();
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
};
|
|
1321
|
+
function Te(e) {
|
|
1322
|
+
let t = e.type.prop(xe);
|
|
1323
|
+
for (; t && t.context && !e.matchContext(t.context);) t = t.next;
|
|
1324
|
+
return t || null;
|
|
1325
|
+
}
|
|
1326
|
+
var B = F.define, V = B(), H = B(), Ee = B(H), De = B(H), U = B(), W = B(U), G = B(U), K = B(), q = B(K), J = B(), Y = B(), X = B(), Z = B(X), Q = B(), $ = {
|
|
1327
|
+
comment: V,
|
|
1328
|
+
lineComment: B(V),
|
|
1329
|
+
blockComment: B(V),
|
|
1330
|
+
docComment: B(V),
|
|
1331
|
+
name: H,
|
|
1332
|
+
variableName: B(H),
|
|
1333
|
+
typeName: Ee,
|
|
1334
|
+
tagName: B(Ee),
|
|
1335
|
+
propertyName: De,
|
|
1336
|
+
attributeName: B(De),
|
|
1337
|
+
className: B(H),
|
|
1338
|
+
labelName: B(H),
|
|
1339
|
+
namespace: B(H),
|
|
1340
|
+
macroName: B(H),
|
|
1341
|
+
literal: U,
|
|
1342
|
+
string: W,
|
|
1343
|
+
docString: B(W),
|
|
1344
|
+
character: B(W),
|
|
1345
|
+
attributeValue: B(W),
|
|
1346
|
+
number: G,
|
|
1347
|
+
integer: B(G),
|
|
1348
|
+
float: B(G),
|
|
1349
|
+
bool: B(U),
|
|
1350
|
+
regexp: B(U),
|
|
1351
|
+
escape: B(U),
|
|
1352
|
+
color: B(U),
|
|
1353
|
+
url: B(U),
|
|
1354
|
+
keyword: J,
|
|
1355
|
+
self: B(J),
|
|
1356
|
+
null: B(J),
|
|
1357
|
+
atom: B(J),
|
|
1358
|
+
unit: B(J),
|
|
1359
|
+
modifier: B(J),
|
|
1360
|
+
operatorKeyword: B(J),
|
|
1361
|
+
controlKeyword: B(J),
|
|
1362
|
+
definitionKeyword: B(J),
|
|
1363
|
+
moduleKeyword: B(J),
|
|
1364
|
+
operator: Y,
|
|
1365
|
+
derefOperator: B(Y),
|
|
1366
|
+
arithmeticOperator: B(Y),
|
|
1367
|
+
logicOperator: B(Y),
|
|
1368
|
+
bitwiseOperator: B(Y),
|
|
1369
|
+
compareOperator: B(Y),
|
|
1370
|
+
updateOperator: B(Y),
|
|
1371
|
+
definitionOperator: B(Y),
|
|
1372
|
+
typeOperator: B(Y),
|
|
1373
|
+
controlOperator: B(Y),
|
|
1374
|
+
punctuation: X,
|
|
1375
|
+
separator: B(X),
|
|
1376
|
+
bracket: Z,
|
|
1377
|
+
angleBracket: B(Z),
|
|
1378
|
+
squareBracket: B(Z),
|
|
1379
|
+
paren: B(Z),
|
|
1380
|
+
brace: B(Z),
|
|
1381
|
+
content: K,
|
|
1382
|
+
heading: q,
|
|
1383
|
+
heading1: B(q),
|
|
1384
|
+
heading2: B(q),
|
|
1385
|
+
heading3: B(q),
|
|
1386
|
+
heading4: B(q),
|
|
1387
|
+
heading5: B(q),
|
|
1388
|
+
heading6: B(q),
|
|
1389
|
+
contentSeparator: B(K),
|
|
1390
|
+
list: B(K),
|
|
1391
|
+
quote: B(K),
|
|
1392
|
+
emphasis: B(K),
|
|
1393
|
+
strong: B(K),
|
|
1394
|
+
link: B(K),
|
|
1395
|
+
monospace: B(K),
|
|
1396
|
+
strikethrough: B(K),
|
|
1397
|
+
inserted: B(),
|
|
1398
|
+
deleted: B(),
|
|
1399
|
+
changed: B(),
|
|
1400
|
+
invalid: B(),
|
|
1401
|
+
meta: Q,
|
|
1402
|
+
documentMeta: B(Q),
|
|
1403
|
+
annotation: B(Q),
|
|
1404
|
+
processingInstruction: B(Q),
|
|
1405
|
+
definition: F.defineModifier("definition"),
|
|
1406
|
+
constant: F.defineModifier("constant"),
|
|
1407
|
+
function: F.defineModifier("function"),
|
|
1408
|
+
standard: F.defineModifier("standard"),
|
|
1409
|
+
local: F.defineModifier("local"),
|
|
1410
|
+
special: F.defineModifier("special")
|
|
1411
|
+
};
|
|
1412
|
+
for (let e in $) {
|
|
1413
|
+
let t = $[e];
|
|
1414
|
+
t instanceof F && (t.name = e);
|
|
1415
|
+
}
|
|
1416
|
+
var Oe = R([
|
|
1417
|
+
{
|
|
1418
|
+
tag: $.link,
|
|
1419
|
+
class: "tok-link"
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
tag: $.heading,
|
|
1423
|
+
class: "tok-heading"
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
tag: $.emphasis,
|
|
1427
|
+
class: "tok-emphasis"
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
tag: $.strong,
|
|
1431
|
+
class: "tok-strong"
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
tag: $.keyword,
|
|
1435
|
+
class: "tok-keyword"
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
tag: $.atom,
|
|
1439
|
+
class: "tok-atom"
|
|
1440
|
+
},
|
|
1441
|
+
{
|
|
1442
|
+
tag: $.bool,
|
|
1443
|
+
class: "tok-bool"
|
|
1444
|
+
},
|
|
1445
|
+
{
|
|
1446
|
+
tag: $.url,
|
|
1447
|
+
class: "tok-url"
|
|
1448
|
+
},
|
|
1449
|
+
{
|
|
1450
|
+
tag: $.labelName,
|
|
1451
|
+
class: "tok-labelName"
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
tag: $.inserted,
|
|
1455
|
+
class: "tok-inserted"
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
tag: $.deleted,
|
|
1459
|
+
class: "tok-deleted"
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
tag: $.literal,
|
|
1463
|
+
class: "tok-literal"
|
|
1464
|
+
},
|
|
1465
|
+
{
|
|
1466
|
+
tag: $.string,
|
|
1467
|
+
class: "tok-string"
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
tag: $.number,
|
|
1471
|
+
class: "tok-number"
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
tag: [
|
|
1475
|
+
$.regexp,
|
|
1476
|
+
$.escape,
|
|
1477
|
+
$.special($.string)
|
|
1478
|
+
],
|
|
1479
|
+
class: "tok-string2"
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
tag: $.variableName,
|
|
1483
|
+
class: "tok-variableName"
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
tag: $.local($.variableName),
|
|
1487
|
+
class: "tok-variableName tok-local"
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
tag: $.definition($.variableName),
|
|
1491
|
+
class: "tok-variableName tok-definition"
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
tag: $.special($.variableName),
|
|
1495
|
+
class: "tok-variableName2"
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
tag: $.definition($.propertyName),
|
|
1499
|
+
class: "tok-propertyName tok-definition"
|
|
1500
|
+
},
|
|
1501
|
+
{
|
|
1502
|
+
tag: $.typeName,
|
|
1503
|
+
class: "tok-typeName"
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
tag: $.namespace,
|
|
1507
|
+
class: "tok-namespace"
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
tag: $.className,
|
|
1511
|
+
class: "tok-className"
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
tag: $.macroName,
|
|
1515
|
+
class: "tok-macroName"
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
tag: $.propertyName,
|
|
1519
|
+
class: "tok-propertyName"
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
tag: $.operator,
|
|
1523
|
+
class: "tok-operator"
|
|
1524
|
+
},
|
|
1525
|
+
{
|
|
1526
|
+
tag: $.comment,
|
|
1527
|
+
class: "tok-comment"
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
tag: $.meta,
|
|
1531
|
+
class: "tok-meta"
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
tag: $.invalid,
|
|
1535
|
+
class: "tok-invalid"
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
tag: $.punctuation,
|
|
1539
|
+
class: "tok-punctuation"
|
|
1540
|
+
}
|
|
1541
|
+
]);
|
|
1542
|
+
//#endregion
|
|
1543
|
+
export { R as a, d as c, s as d, M as f, ne as g, N as h, I as i, i as l, f as m, he as n, $ as o, ee as p, z as r, t as s, F as t, c as u };
|