@oomol-lab/open-flow 0.1.0-alpha.9 → 0.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/browser/createResourceDialog-BkZns-oZ.js +504 -0
- package/dist/browser/diagnostics-giPSzyMo.js +9346 -0
- package/dist/browser/{dist-DhsGR_K3.js → dist-3Mj8q8Pr.js} +27 -27
- package/dist/browser/{dist-n9WmBm5w.js → dist-BKuSVKCC.js} +1 -1
- package/dist/browser/{dist-DQVavPcf.js → dist-BMqL-qR5.js} +469 -903
- package/dist/browser/{dist-D5mdziGP.js → dist-BN4ZCyOB.js} +9 -9
- package/dist/browser/{dist-CVtP-E2c.js → dist-BpopSHwP.js} +1 -1
- package/dist/browser/{dist-B0Q2Mn0n.js → dist-CJpzJrLM.js} +191 -191
- package/dist/browser/{dist-DXgEYMFx.js → dist-CPuF50D9.js} +196 -196
- package/dist/browser/{dist-CUkceEvN.js → dist-CUSrALSX.js} +113 -113
- package/dist/browser/dist-CeSZ2xSM.js +444 -0
- package/dist/browser/{dist-Bc9TvHYl.js → dist-DUzA0Ukh.js} +20 -20
- package/dist/browser/{dist-DWzdGVm9.js → dist-DWADUsVB.js} +74 -74
- package/dist/browser/{esm-YIGXG-Js.js → esm-B_PbUobB.js} +13 -13
- package/dist/browser/flow-authoring-node.d.ts +4 -2
- package/dist/browser/flow-authoring.d.ts +2 -1
- package/dist/browser/flow-authoring.js +400 -100
- package/dist/browser/flow-change.d.ts +9 -4
- package/dist/browser/flow-change.js +49 -46
- package/dist/browser/{flowRunInputEditorStore-DXOyyY7o.js → flowRunInputEditorStore-BeyUSWpO.js} +1644 -908
- package/dist/browser/{flowWorkspace-D7-rBA1-.js → flowWorkspace-DAMLVMcF.js} +18416 -16444
- package/dist/browser/getPseudoElementBounds-ESJExRFX.js +7642 -0
- package/dist/browser/languages-DgJehE1g.js +62 -0
- package/dist/browser/lib-C5Ipyfps.js +7856 -0
- package/dist/browser/licenses.md +119 -1
- package/dist/browser/main-DmjVyuWr.js +76 -0
- package/dist/browser/{markdownContent-ColGUxHy.js → markdownContent-DdlIRN3_.js} +4811 -4795
- package/dist/browser/theme.css +63 -0
- package/dist/browser/theme.css.d.ts +1 -0
- package/dist/browser/typeScriptSession-mPCiA9sV.js +2579 -0
- package/dist/browser/workbench-contract.d.ts +2 -1
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +46 -1
- package/dist/browser/workbench.js +1132 -1474
- package/dist/browser/workbenchSelect-B2s1HV-Y.js +1374 -0
- package/dist/common/connector-action.d.ts +6 -0
- package/dist/common/connector-action.js +37 -29
- package/dist/common/control-api-conformance.js +80 -29
- package/dist/common/control-api-errors.d.ts +24 -0
- package/dist/common/control-api.d.ts +54 -7
- package/dist/common/control-api.js +226 -95
- package/dist/common/flow-encoding.d.ts +2 -2
- package/dist/common/flow-encoding.js +4 -1
- package/dist/common/flow-semantics.d.ts +3 -0
- package/dist/common/flow-semantics.js +939 -851
- package/dist/common/integration-trigger.d.ts +1 -0
- package/dist/common/licenses.md +1 -25
- package/dist/common/localization.d.ts +21 -0
- package/dist/common/localization.js +62 -0
- package/dist/common/provider-triggers.js +4 -1
- package/dist/common/scheduler.d.ts +5 -5
- package/dist/common/scheduler.js +250 -236
- package/package.json +10 -1
- package/dist/browser/addNodeOptions-DRndy4EK.js +0 -6910
- package/dist/browser/createLucideIcon-CqjqCezK.js +0 -5537
- package/dist/browser/createResourceDialog-A64dDFCG.js +0 -467
- package/dist/browser/field-CKGQHCIi.js +0 -312
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as e } from "./rolldown-runtime-CEFd7nDs.js";
|
|
2
|
-
import { a as t,
|
|
2
|
+
import { a as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, o as l, s as u, u as d } from "./dist-BpopSHwP.js";
|
|
3
3
|
import { b as ee, d as f, l as te, m as ne, o as p, p as m, s as h, u as re, y as ie } from "./dist-Mecbzdl2.js";
|
|
4
|
-
import {
|
|
4
|
+
import { S as ae, a as g, h as oe, i as se, k as ce, n as _, o as le, r as v, t as y } from "./dist-BKuSVKCC.js";
|
|
5
5
|
//#region ../../node_modules/.bun/@codemirror+language@6.12.4/node_modules/@codemirror/language/dist/index.js
|
|
6
6
|
var ue = /* @__PURE__ */ e({
|
|
7
7
|
DocInput: () => _e,
|
|
@@ -58,11 +58,11 @@ var ue = /* @__PURE__ */ e({
|
|
|
58
58
|
unfoldAll: () => Ye,
|
|
59
59
|
unfoldCode: () => qe,
|
|
60
60
|
unfoldEffect: () => B
|
|
61
|
-
}), b = /*@__PURE__*/ new
|
|
61
|
+
}), b = /*@__PURE__*/ new d();
|
|
62
62
|
function x(e) {
|
|
63
63
|
return h.define({ combine: e ? (t) => t.concat(e) : void 0 });
|
|
64
64
|
}
|
|
65
|
-
var S = /*@__PURE__*/ new
|
|
65
|
+
var S = /*@__PURE__*/ new d(), C = class {
|
|
66
66
|
constructor(e, t, n = [], r = "") {
|
|
67
67
|
this.data = e, this.name = r, p.prototype.hasOwnProperty("tree") || Object.defineProperty(p.prototype, "tree", { get() {
|
|
68
68
|
return w(this);
|
|
@@ -98,7 +98,7 @@ var S = /*@__PURE__*/ new o(), C = class {
|
|
|
98
98
|
});
|
|
99
99
|
return;
|
|
100
100
|
}
|
|
101
|
-
let i = e.prop(
|
|
101
|
+
let i = e.prop(d.mounted);
|
|
102
102
|
if (i) {
|
|
103
103
|
if (i.tree.prop(b) == this.data) {
|
|
104
104
|
if (i.overlay) for (let e of i.overlay) n.push({
|
|
@@ -118,7 +118,7 @@ var S = /*@__PURE__*/ new o(), C = class {
|
|
|
118
118
|
}
|
|
119
119
|
for (let n = 0; n < e.children.length; n++) {
|
|
120
120
|
let i = e.children[n];
|
|
121
|
-
i instanceof
|
|
121
|
+
i instanceof a && r(i, e.positions[n] + t);
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
124
|
return r(w(e), 0), n;
|
|
@@ -128,10 +128,10 @@ var S = /*@__PURE__*/ new o(), C = class {
|
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
130
|
C.setState = /*@__PURE__*/ m.define();
|
|
131
|
-
function de(e, t,
|
|
132
|
-
let
|
|
133
|
-
if (!
|
|
134
|
-
return
|
|
131
|
+
function de(e, t, n) {
|
|
132
|
+
let r = e.facet(k), i = w(e).topNode;
|
|
133
|
+
if (!r || r.allowsNesting) for (let e = i; e; e = e.enter(t, n, s.ExcludeBuffers | s.EnterBracketed)) e.type.isTop && (i = e);
|
|
134
|
+
return i;
|
|
135
135
|
}
|
|
136
136
|
var fe = class e extends C {
|
|
137
137
|
constructor(e, t, n) {
|
|
@@ -150,7 +150,7 @@ var fe = class e extends C {
|
|
|
150
150
|
};
|
|
151
151
|
function w(e) {
|
|
152
152
|
let t = e.field(C.state, !1);
|
|
153
|
-
return t ? t.tree :
|
|
153
|
+
return t ? t.tree : a.empty;
|
|
154
154
|
}
|
|
155
155
|
function pe(e, t, n = 50) {
|
|
156
156
|
let r = e.field(C.state, !1)?.context;
|
|
@@ -198,13 +198,13 @@ var _e = class {
|
|
|
198
198
|
this.parser = e, this.state = t, this.fragments = n, this.tree = r, this.treeLen = i, this.viewport = a, this.skipped = o, this.scheduleOn = s, this.parse = null, this.tempSkipped = [];
|
|
199
199
|
}
|
|
200
200
|
static create(t, n, r) {
|
|
201
|
-
return new e(t, n, [],
|
|
201
|
+
return new e(t, n, [], a.empty, 0, r, [], null);
|
|
202
202
|
}
|
|
203
203
|
startParse() {
|
|
204
204
|
return this.parser.startParse(new _e(this.state.doc), this.fragments);
|
|
205
205
|
}
|
|
206
206
|
work(e, t) {
|
|
207
|
-
return t != null && t >= this.state.doc.length && (t = void 0), this.tree !=
|
|
207
|
+
return t != null && t >= this.state.doc.length && (t = void 0), this.tree != a.empty && this.isDone(t ?? this.state.doc.length) ? (this.takeTree(), !0) : this.withContext(() => {
|
|
208
208
|
if (typeof e == "number") {
|
|
209
209
|
let t = Date.now() + e;
|
|
210
210
|
e = () => Date.now() > t;
|
|
@@ -239,7 +239,7 @@ var _e = class {
|
|
|
239
239
|
return e;
|
|
240
240
|
}
|
|
241
241
|
changes(t, n) {
|
|
242
|
-
let { fragments: r, tree:
|
|
242
|
+
let { fragments: r, tree: o, treeLen: s, viewport: c, skipped: l } = this;
|
|
243
243
|
if (this.takeTree(), !t.empty) {
|
|
244
244
|
let e = [];
|
|
245
245
|
if (t.iterChangedRanges((t, n, r, i) => e.push({
|
|
@@ -247,7 +247,7 @@ var _e = class {
|
|
|
247
247
|
toA: n,
|
|
248
248
|
fromB: r,
|
|
249
249
|
toB: i
|
|
250
|
-
})), r = i.applyChanges(r, e),
|
|
250
|
+
})), r = i.applyChanges(r, e), o = a.empty, s = 0, c = {
|
|
251
251
|
from: t.mapPos(c.from, -1),
|
|
252
252
|
to: t.mapPos(c.to, 1)
|
|
253
253
|
}, this.skipped.length) {
|
|
@@ -261,7 +261,7 @@ var _e = class {
|
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
return new e(this.parser, n, r,
|
|
264
|
+
return new e(this.parser, n, r, o, s, c, l, this.scheduleOn);
|
|
265
265
|
}
|
|
266
266
|
updateViewport(e) {
|
|
267
267
|
if (this.viewport.from == e.from && this.viewport.to == e.to) return !1;
|
|
@@ -283,18 +283,18 @@ var _e = class {
|
|
|
283
283
|
});
|
|
284
284
|
}
|
|
285
285
|
static getSkippingParser(e) {
|
|
286
|
-
return new class extends
|
|
286
|
+
return new class extends c {
|
|
287
287
|
createParse(t, n, i) {
|
|
288
|
-
let
|
|
288
|
+
let o = i[0].from, s = i[i.length - 1].to;
|
|
289
289
|
return {
|
|
290
|
-
parsedPos:
|
|
290
|
+
parsedPos: o,
|
|
291
291
|
advance() {
|
|
292
292
|
let t = T;
|
|
293
293
|
if (t) {
|
|
294
294
|
for (let e of i) t.tempSkipped.push(e);
|
|
295
295
|
e && (t.scheduleOn = t.scheduleOn ? Promise.all([t.scheduleOn, e]) : e);
|
|
296
296
|
}
|
|
297
|
-
return this.parsedPos =
|
|
297
|
+
return this.parsedPos = s, new a(r.none, [], [], s - o);
|
|
298
298
|
},
|
|
299
299
|
stoppedAt: null,
|
|
300
300
|
stopAt() {}
|
|
@@ -376,7 +376,7 @@ var O = typeof navigator < "u" && navigator.scheduling?.isInputPending ? () => n
|
|
|
376
376
|
this.chunkBudget -= Date.now() - t, (s || this.chunkBudget <= 0) && (i.context.takeTree(), this.view.dispatch({ effects: C.setState.of(new D(i.context)) })), this.chunkBudget > 0 && !(s && !o) && this.scheduleWork(), this.checkAsyncSchedule(i.context);
|
|
377
377
|
}
|
|
378
378
|
checkAsyncSchedule(e) {
|
|
379
|
-
e.scheduleOn &&= (this.workScheduled++, e.scheduleOn.then(() => this.scheduleWork()).catch((e) =>
|
|
379
|
+
e.scheduleOn &&= (this.workScheduled++, e.scheduleOn.then(() => this.scheduleWork()).catch((e) => ae(this.view.state, e)).then(() => this.workScheduled--), null);
|
|
380
380
|
}
|
|
381
381
|
destroy() {
|
|
382
382
|
this.working && this.working();
|
|
@@ -521,7 +521,7 @@ var P = class {
|
|
|
521
521
|
get simulatedBreak() {
|
|
522
522
|
return this.options.simulateBreak || null;
|
|
523
523
|
}
|
|
524
|
-
}, F = /*@__PURE__*/ new
|
|
524
|
+
}, F = /*@__PURE__*/ new d();
|
|
525
525
|
function Te(e, t, n) {
|
|
526
526
|
let r = t.resolveStack(n), i = t.resolveInner(n, -1).resolve(n, 0).enterUnfinishedNodesBefore(n);
|
|
527
527
|
if (i != r.node) {
|
|
@@ -548,7 +548,7 @@ function Oe(e) {
|
|
|
548
548
|
let t = e.type.prop(F);
|
|
549
549
|
if (t) return t;
|
|
550
550
|
let n = e.firstChild, r;
|
|
551
|
-
if (n && (r = n.type.prop(
|
|
551
|
+
if (n && (r = n.type.prop(d.closedBy))) {
|
|
552
552
|
let t = e.lastChild, n = t && r.indexOf(t.name) > -1;
|
|
553
553
|
return (e) => Pe(e, !0, 1, void 0, n && !De(e) ? t.from : void 0);
|
|
554
554
|
}
|
|
@@ -653,7 +653,7 @@ function Re() {
|
|
|
653
653
|
}] : e;
|
|
654
654
|
});
|
|
655
655
|
}
|
|
656
|
-
var I = /*@__PURE__*/ h.define(), L = /*@__PURE__*/ new
|
|
656
|
+
var I = /*@__PURE__*/ h.define(), L = /*@__PURE__*/ new d();
|
|
657
657
|
function ze(e) {
|
|
658
658
|
let t = e.firstChild, n = e.lastChild;
|
|
659
659
|
return t && t.to < n.from ? {
|
|
@@ -864,11 +864,11 @@ function et(e, t) {
|
|
|
864
864
|
let a = document.createElement("span");
|
|
865
865
|
return a.textContent = r.placeholderText, a.setAttribute("aria-label", n.phrase("folded code")), a.title = n.phrase("unfold"), a.className = "cm-foldPlaceholder", a.onclick = i, a;
|
|
866
866
|
}
|
|
867
|
-
var tt = /*@__PURE__*/ y.replace({ widget: /*@__PURE__*/ new class extends
|
|
867
|
+
var tt = /*@__PURE__*/ y.replace({ widget: /*@__PURE__*/ new class extends le {
|
|
868
868
|
toDOM(e) {
|
|
869
869
|
return et(e, null);
|
|
870
870
|
}
|
|
871
|
-
}() }), nt = class extends
|
|
871
|
+
}() }), nt = class extends le {
|
|
872
872
|
constructor(e) {
|
|
873
873
|
super(), this.value = e;
|
|
874
874
|
}
|
|
@@ -884,7 +884,7 @@ var tt = /*@__PURE__*/ y.replace({ widget: /*@__PURE__*/ new class extends ce {
|
|
|
884
884
|
markerDOM: null,
|
|
885
885
|
domEventHandlers: {},
|
|
886
886
|
foldingChanged: () => !1
|
|
887
|
-
}, J = class extends
|
|
887
|
+
}, J = class extends se {
|
|
888
888
|
constructor(e, t) {
|
|
889
889
|
super(), this.config = e, this.open = t;
|
|
890
890
|
}
|
|
@@ -919,7 +919,7 @@ function it(e = {}) {
|
|
|
919
919
|
}), { domEventHandlers: a } = t;
|
|
920
920
|
return [
|
|
921
921
|
i,
|
|
922
|
-
|
|
922
|
+
oe({
|
|
923
923
|
class: "cm-foldGutter",
|
|
924
924
|
markers(e) {
|
|
925
925
|
return e.plugin(i)?.markers || re.empty;
|
|
@@ -956,18 +956,18 @@ var at = /*@__PURE__*/ v.baseTheme({
|
|
|
956
956
|
cursor: "pointer"
|
|
957
957
|
}
|
|
958
958
|
}), Y = class e {
|
|
959
|
-
constructor(e,
|
|
959
|
+
constructor(e, t) {
|
|
960
960
|
this.specs = e;
|
|
961
|
-
let
|
|
962
|
-
function
|
|
963
|
-
let t =
|
|
964
|
-
return (
|
|
961
|
+
let n;
|
|
962
|
+
function r(e) {
|
|
963
|
+
let t = ce.newName();
|
|
964
|
+
return (n ||= Object.create(null))["." + t] = e, t;
|
|
965
965
|
}
|
|
966
|
-
let
|
|
967
|
-
this.scope =
|
|
966
|
+
let i = typeof t.all == "string" ? t.all : t.all ? r(t.all) : void 0, a = t.scope;
|
|
967
|
+
this.scope = a instanceof C ? (e) => e.prop(b) == a.data : a ? (e) => e == a : void 0, this.style = l(e.map((e) => ({
|
|
968
968
|
tag: e.tag,
|
|
969
|
-
class: e.class ||
|
|
970
|
-
})), { all:
|
|
969
|
+
class: e.class || r(Object.assign({}, e, { tag: null }))
|
|
970
|
+
})), { all: i }).style, this.module = n ? new ce(n) : null, this.themeType = t.themeType;
|
|
971
971
|
}
|
|
972
972
|
static define(t, n) {
|
|
973
973
|
return new e(t, n || {});
|
|
@@ -1004,97 +1004,97 @@ var ut = class {
|
|
|
1004
1004
|
buildDeco(e, t) {
|
|
1005
1005
|
if (!t || !this.tree.length) return y.none;
|
|
1006
1006
|
let n = new f();
|
|
1007
|
-
for (let { from: r, to: i } of e.visibleRanges)
|
|
1007
|
+
for (let { from: r, to: i } of e.visibleRanges) o(this.tree, t, (e, t, r) => {
|
|
1008
1008
|
n.add(e, t, this.markCache[r] || (this.markCache[r] = y.mark({ class: r })));
|
|
1009
1009
|
}, r, i);
|
|
1010
1010
|
return n.finish();
|
|
1011
1011
|
}
|
|
1012
1012
|
}, dt = /*@__PURE__*/ te.high(/*@__PURE__*/ g.fromClass(ut, { decorations: (e) => e.decorations })), ft = /*@__PURE__*/ Y.define([
|
|
1013
1013
|
{
|
|
1014
|
-
tag:
|
|
1014
|
+
tag: u.meta,
|
|
1015
1015
|
color: "#404740"
|
|
1016
1016
|
},
|
|
1017
1017
|
{
|
|
1018
|
-
tag:
|
|
1018
|
+
tag: u.link,
|
|
1019
1019
|
textDecoration: "underline"
|
|
1020
1020
|
},
|
|
1021
1021
|
{
|
|
1022
|
-
tag:
|
|
1022
|
+
tag: u.heading,
|
|
1023
1023
|
textDecoration: "underline",
|
|
1024
1024
|
fontWeight: "bold"
|
|
1025
1025
|
},
|
|
1026
1026
|
{
|
|
1027
|
-
tag:
|
|
1027
|
+
tag: u.emphasis,
|
|
1028
1028
|
fontStyle: "italic"
|
|
1029
1029
|
},
|
|
1030
1030
|
{
|
|
1031
|
-
tag:
|
|
1031
|
+
tag: u.strong,
|
|
1032
1032
|
fontWeight: "bold"
|
|
1033
1033
|
},
|
|
1034
1034
|
{
|
|
1035
|
-
tag:
|
|
1035
|
+
tag: u.strikethrough,
|
|
1036
1036
|
textDecoration: "line-through"
|
|
1037
1037
|
},
|
|
1038
1038
|
{
|
|
1039
|
-
tag:
|
|
1039
|
+
tag: u.keyword,
|
|
1040
1040
|
color: "#708"
|
|
1041
1041
|
},
|
|
1042
1042
|
{
|
|
1043
1043
|
tag: [
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1044
|
+
u.atom,
|
|
1045
|
+
u.bool,
|
|
1046
|
+
u.url,
|
|
1047
|
+
u.contentSeparator,
|
|
1048
|
+
u.labelName
|
|
1049
1049
|
],
|
|
1050
1050
|
color: "#219"
|
|
1051
1051
|
},
|
|
1052
1052
|
{
|
|
1053
|
-
tag: [
|
|
1053
|
+
tag: [u.literal, u.inserted],
|
|
1054
1054
|
color: "#164"
|
|
1055
1055
|
},
|
|
1056
1056
|
{
|
|
1057
|
-
tag: [
|
|
1057
|
+
tag: [u.string, u.deleted],
|
|
1058
1058
|
color: "#a11"
|
|
1059
1059
|
},
|
|
1060
1060
|
{
|
|
1061
1061
|
tag: [
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
/*@__PURE__*/
|
|
1062
|
+
u.regexp,
|
|
1063
|
+
u.escape,
|
|
1064
|
+
/*@__PURE__*/ u.special(u.string)
|
|
1065
1065
|
],
|
|
1066
1066
|
color: "#e40"
|
|
1067
1067
|
},
|
|
1068
1068
|
{
|
|
1069
|
-
tag: /*@__PURE__*/
|
|
1069
|
+
tag: /*@__PURE__*/ u.definition(u.variableName),
|
|
1070
1070
|
color: "#00f"
|
|
1071
1071
|
},
|
|
1072
1072
|
{
|
|
1073
|
-
tag: /*@__PURE__*/
|
|
1073
|
+
tag: /*@__PURE__*/ u.local(u.variableName),
|
|
1074
1074
|
color: "#30a"
|
|
1075
1075
|
},
|
|
1076
1076
|
{
|
|
1077
|
-
tag: [
|
|
1077
|
+
tag: [u.typeName, u.namespace],
|
|
1078
1078
|
color: "#085"
|
|
1079
1079
|
},
|
|
1080
1080
|
{
|
|
1081
|
-
tag:
|
|
1081
|
+
tag: u.className,
|
|
1082
1082
|
color: "#167"
|
|
1083
1083
|
},
|
|
1084
1084
|
{
|
|
1085
|
-
tag: [/*@__PURE__*/
|
|
1085
|
+
tag: [/*@__PURE__*/ u.special(u.variableName), u.macroName],
|
|
1086
1086
|
color: "#256"
|
|
1087
1087
|
},
|
|
1088
1088
|
{
|
|
1089
|
-
tag: /*@__PURE__*/
|
|
1089
|
+
tag: /*@__PURE__*/ u.definition(u.propertyName),
|
|
1090
1090
|
color: "#00c"
|
|
1091
1091
|
},
|
|
1092
1092
|
{
|
|
1093
|
-
tag:
|
|
1093
|
+
tag: u.comment,
|
|
1094
1094
|
color: "#940"
|
|
1095
1095
|
},
|
|
1096
1096
|
{
|
|
1097
|
-
tag:
|
|
1097
|
+
tag: u.invalid,
|
|
1098
1098
|
color: "#f00"
|
|
1099
1099
|
}
|
|
1100
1100
|
]), pt = /*@__PURE__*/ v.baseTheme({
|
|
@@ -1132,9 +1132,9 @@ var xt = [/* @__PURE__ */ g.fromClass(class {
|
|
|
1132
1132
|
function St(e = {}) {
|
|
1133
1133
|
return [gt.of(e), xt];
|
|
1134
1134
|
}
|
|
1135
|
-
var Ct = /*@__PURE__*/ new
|
|
1135
|
+
var Ct = /*@__PURE__*/ new d();
|
|
1136
1136
|
function wt(e, t, n) {
|
|
1137
|
-
let r = e.prop(t < 0 ?
|
|
1137
|
+
let r = e.prop(t < 0 ? d.openedBy : d.closedBy);
|
|
1138
1138
|
if (r) return r;
|
|
1139
1139
|
if (e.name.length == 1) {
|
|
1140
1140
|
let r = n.indexOf(e.name);
|
|
@@ -1321,12 +1321,12 @@ function jt(e) {
|
|
|
1321
1321
|
}
|
|
1322
1322
|
var Mt = /*@__PURE__*/ new WeakMap(), Nt = class e extends C {
|
|
1323
1323
|
constructor(e) {
|
|
1324
|
-
let t = x(e.languageData), n = At(e), r, i = new class extends
|
|
1324
|
+
let t = x(e.languageData), n = At(e), r, i = new class extends c {
|
|
1325
1325
|
createParse(e, t, n) {
|
|
1326
1326
|
return new Lt(r, e, t, n);
|
|
1327
1327
|
}
|
|
1328
1328
|
}();
|
|
1329
|
-
super(t, i, [], e.name), this.topNode =
|
|
1329
|
+
super(t, i, [], e.name), this.topNode = qt(t, this), r = this, this.streamParser = n, this.stateAfter = new d({ perNode: !0 }), this.tokenTable = e.tokenTable ? new Wt(n.tokenTable) : Gt;
|
|
1330
1330
|
}
|
|
1331
1331
|
static define(t) {
|
|
1332
1332
|
return new e(t);
|
|
@@ -1353,13 +1353,13 @@ var Mt = /*@__PURE__*/ new WeakMap(), Nt = class e extends C {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
};
|
|
1355
1355
|
function Pt(e, t, n, r, i) {
|
|
1356
|
-
let
|
|
1357
|
-
if (
|
|
1358
|
-
state: e.streamParser.copyState(
|
|
1356
|
+
let o = n >= r && n + t.length <= i && t.prop(e.stateAfter);
|
|
1357
|
+
if (o) return {
|
|
1358
|
+
state: e.streamParser.copyState(o),
|
|
1359
1359
|
pos: n + t.length
|
|
1360
1360
|
};
|
|
1361
|
-
for (let
|
|
1362
|
-
let
|
|
1361
|
+
for (let o = t.children.length - 1; o >= 0; o--) {
|
|
1362
|
+
let s = t.children[o], c = n + t.positions[o], l = s instanceof a && c < i && Pt(e, s, c, r, i);
|
|
1363
1363
|
if (l) return l;
|
|
1364
1364
|
}
|
|
1365
1365
|
return null;
|
|
@@ -1367,11 +1367,11 @@ function Pt(e, t, n, r, i) {
|
|
|
1367
1367
|
function Ft(e, t, n, r, i) {
|
|
1368
1368
|
if (i && n <= 0 && r >= t.length) return t;
|
|
1369
1369
|
!i && n == 0 && t.type == e.topNode && (i = !0);
|
|
1370
|
-
for (let
|
|
1371
|
-
let
|
|
1372
|
-
if (
|
|
1373
|
-
if (!(l = Ft(e, c, n -
|
|
1374
|
-
return i ? new
|
|
1370
|
+
for (let o = t.children.length - 1; o >= 0; o--) {
|
|
1371
|
+
let s = t.positions[o], c = t.children[o], l;
|
|
1372
|
+
if (s < r && c instanceof a) {
|
|
1373
|
+
if (!(l = Ft(e, c, n - s, r - s, i))) break;
|
|
1374
|
+
return i ? new a(t.type, t.children.slice(0, o).concat(l), t.positions.slice(0, o + 1), s + l.length) : l;
|
|
1375
1375
|
}
|
|
1376
1376
|
}
|
|
1377
1377
|
return null;
|
|
@@ -1386,7 +1386,7 @@ function It(e, t, n, r, i) {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
return {
|
|
1388
1388
|
state: e.streamParser.startState(i ? j(i) : 4),
|
|
1389
|
-
tree:
|
|
1389
|
+
tree: a.empty
|
|
1390
1390
|
};
|
|
1391
1391
|
}
|
|
1392
1392
|
var Lt = class {
|
|
@@ -1459,7 +1459,7 @@ var Lt = class {
|
|
|
1459
1459
|
this.parsedPos = n, this.moveRangeIndex(), this.parsedPos < this.to && this.parsedPos++;
|
|
1460
1460
|
}
|
|
1461
1461
|
finishChunk() {
|
|
1462
|
-
let e =
|
|
1462
|
+
let e = a.build({
|
|
1463
1463
|
buffer: this.chunk,
|
|
1464
1464
|
start: this.chunkStart,
|
|
1465
1465
|
length: this.parsedPos - this.chunkStart,
|
|
@@ -1468,10 +1468,10 @@ var Lt = class {
|
|
|
1468
1468
|
maxBufferLength: 512,
|
|
1469
1469
|
reused: this.chunkReused
|
|
1470
1470
|
});
|
|
1471
|
-
e = new
|
|
1471
|
+
e = new a(e.type, e.children, e.positions, e.length, [[this.lang.stateAfter, this.lang.streamParser.copyState(this.state)]]), this.chunks.push(e), this.chunkPos.push(this.chunkStart - this.ranges[0].from), this.chunk = [], this.chunkReused = void 0, this.chunkStart = this.parsedPos;
|
|
1472
1472
|
}
|
|
1473
1473
|
finish() {
|
|
1474
|
-
return new
|
|
1474
|
+
return new a(this.lang.topNode, this.chunks, this.chunkPos, this.parsedPos - this.ranges[0].from).balance();
|
|
1475
1475
|
}
|
|
1476
1476
|
};
|
|
1477
1477
|
function Rt(e, t, n) {
|
|
@@ -1482,7 +1482,7 @@ function Rt(e, t, n) {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
throw Error("Stream parser failed to advance stream.");
|
|
1484
1484
|
}
|
|
1485
|
-
var zt = /*@__PURE__*/ Object.create(null), Q = [r.none], Bt = /*@__PURE__*/ new
|
|
1485
|
+
var zt = /*@__PURE__*/ Object.create(null), Q = [r.none], Bt = /*@__PURE__*/ new n(Q), Vt = [], Ht = /*@__PURE__*/ Object.create(null), Ut = /*@__PURE__*/ Object.create(null);
|
|
1486
1486
|
for (let [e, t] of [
|
|
1487
1487
|
["variable", "variableName"],
|
|
1488
1488
|
["variable-2", "variableName.special"],
|
|
@@ -1496,39 +1496,39 @@ for (let [e, t] of [
|
|
|
1496
1496
|
["error", "invalid"],
|
|
1497
1497
|
["header", "heading"],
|
|
1498
1498
|
["property", "propertyName"]
|
|
1499
|
-
]) Ut[e] = /*@__PURE__*/
|
|
1499
|
+
]) Ut[e] = /*@__PURE__*/ Kt(zt, t);
|
|
1500
1500
|
var Wt = class {
|
|
1501
1501
|
constructor(e) {
|
|
1502
1502
|
this.extra = e, this.table = Object.assign(Object.create(null), Ut);
|
|
1503
1503
|
}
|
|
1504
1504
|
resolve(e) {
|
|
1505
|
-
return e ? this.table[e] || (this.table[e] =
|
|
1505
|
+
return e ? this.table[e] || (this.table[e] = Kt(this.extra, e)) : 0;
|
|
1506
1506
|
}
|
|
1507
1507
|
}, Gt = /*@__PURE__*/ new Wt(zt);
|
|
1508
|
-
function
|
|
1508
|
+
function $(e, t) {
|
|
1509
1509
|
Vt.indexOf(e) > -1 || (Vt.push(e), console.warn(t));
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1512
|
-
let
|
|
1513
|
-
for (let
|
|
1514
|
-
let
|
|
1515
|
-
for (let
|
|
1516
|
-
let
|
|
1517
|
-
|
|
1511
|
+
function Kt(e, n) {
|
|
1512
|
+
let i = [];
|
|
1513
|
+
for (let t of n.split(" ")) {
|
|
1514
|
+
let n = [];
|
|
1515
|
+
for (let r of t.split(".")) {
|
|
1516
|
+
let t = e[r] || u[r];
|
|
1517
|
+
t ? typeof t == "function" ? n.length ? n = n.map(t) : $(r, `Modifier ${r} used at start of tag`) : n.length ? $(r, `Tag ${r} used as modifier`) : n = Array.isArray(t) ? t : [t] : $(r, `Unknown highlighting tag ${r}`);
|
|
1518
1518
|
}
|
|
1519
|
-
for (let e of
|
|
1519
|
+
for (let e of n) i.push(e);
|
|
1520
1520
|
}
|
|
1521
|
-
if (!
|
|
1522
|
-
let
|
|
1521
|
+
if (!i.length) return 0;
|
|
1522
|
+
let a = n.replace(/ /g, "_"), o = a + " " + i.map((e) => e.id), s = Ht[o];
|
|
1523
1523
|
if (s) return s.id;
|
|
1524
|
-
let
|
|
1524
|
+
let c = Ht[o] = r.define({
|
|
1525
1525
|
id: Q.length,
|
|
1526
|
-
name:
|
|
1527
|
-
props: [
|
|
1526
|
+
name: a,
|
|
1527
|
+
props: [t({ [a]: i })]
|
|
1528
1528
|
});
|
|
1529
|
-
return Q.push(
|
|
1529
|
+
return Q.push(c), c.id;
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1531
|
+
function qt(e, t) {
|
|
1532
1532
|
let n = r.define({
|
|
1533
1533
|
id: Q.length,
|
|
1534
1534
|
name: "Document",
|
|
@@ -1537,31 +1537,31 @@ function Jt(e, t) {
|
|
|
1537
1537
|
});
|
|
1538
1538
|
return Q.push(n), n;
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function Jt(e) {
|
|
1541
1541
|
return e.length <= 4096 && /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/.test(e);
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1544
|
-
for (let t = e.iter(); !t.next().done;) if (
|
|
1543
|
+
function Yt(e) {
|
|
1544
|
+
for (let t = e.iter(); !t.next().done;) if (Jt(t.value)) return !0;
|
|
1545
1545
|
return !1;
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function Xt(e) {
|
|
1548
1548
|
let t = !1;
|
|
1549
1549
|
return e.iterChanges((e, n, r, i, a) => {
|
|
1550
|
-
!t &&
|
|
1550
|
+
!t && Yt(a) && (t = !0);
|
|
1551
1551
|
}), t;
|
|
1552
1552
|
}
|
|
1553
|
-
var
|
|
1553
|
+
var Zt = /*@__PURE__*/ h.define({ combine: (e) => e.some((e) => e) });
|
|
1554
1554
|
function Qt(e = {}) {
|
|
1555
1555
|
let t = [$t];
|
|
1556
|
-
return e.alwaysIsolate && t.push(
|
|
1556
|
+
return e.alwaysIsolate && t.push(Zt.of(!0)), t;
|
|
1557
1557
|
}
|
|
1558
1558
|
var $t = /*@__PURE__*/ g.fromClass(class {
|
|
1559
1559
|
constructor(e) {
|
|
1560
|
-
this.always = e.state.facet(
|
|
1560
|
+
this.always = e.state.facet(Zt) || e.textDirection != _.LTR || e.state.facet(v.perLineTextDirection), this.hasRTL = !this.always && Yt(e.state.doc), this.tree = w(e.state), this.decorations = this.always || this.hasRTL ? en(e, this.tree, this.always) : y.none;
|
|
1561
1561
|
}
|
|
1562
1562
|
update(e) {
|
|
1563
|
-
let t = e.state.facet(
|
|
1564
|
-
if (!t && !this.hasRTL &&
|
|
1563
|
+
let t = e.state.facet(Zt) || e.view.textDirection != _.LTR || e.state.facet(v.perLineTextDirection);
|
|
1564
|
+
if (!t && !this.hasRTL && Xt(e.changes) && (this.hasRTL = !0), !t && !this.hasRTL) return;
|
|
1565
1565
|
let n = w(e.state);
|
|
1566
1566
|
(t != this.always || n != this.tree || e.docChanged || e.viewportChanged) && (this.tree = n, this.always = t, this.decorations = en(e.view, n, t));
|
|
1567
1567
|
}
|
|
@@ -1576,7 +1576,7 @@ function en(e, t, n) {
|
|
|
1576
1576
|
n || (i = tn(i, e.state.doc));
|
|
1577
1577
|
for (let { from: e, to: n } of i) t.iterate({
|
|
1578
1578
|
enter: (e) => {
|
|
1579
|
-
let t = e.type.prop(
|
|
1579
|
+
let t = e.type.prop(d.isolate);
|
|
1580
1580
|
t && r.add(e.from, e.to, nn[t]);
|
|
1581
1581
|
},
|
|
1582
1582
|
from: e,
|
|
@@ -1588,7 +1588,7 @@ function tn(e, t) {
|
|
|
1588
1588
|
let n = t.iter(), r = 0, i = [], a = null;
|
|
1589
1589
|
for (let { from: t, to: o } of e) if (!(a && a.to > t && (t = a.to, t >= o))) for (r + n.value.length < t && (n.next(t - (r + n.value.length)), r = t);;) {
|
|
1590
1590
|
let e = r, t = r + n.value.length;
|
|
1591
|
-
if (!n.lineBreak &&
|
|
1591
|
+
if (!n.lineBreak && Jt(n.value) && (a && a.to > e - 10 ? a.to = Math.min(o, t) : i.push(a = {
|
|
1592
1592
|
from: e,
|
|
1593
1593
|
to: Math.min(o, t)
|
|
1594
1594
|
})), t >= o) break;
|
|
@@ -1617,4 +1617,4 @@ var nn = {
|
|
|
1617
1617
|
})
|
|
1618
1618
|
};
|
|
1619
1619
|
//#endregion
|
|
1620
|
-
export {
|
|
1620
|
+
export { Z as A, lt as C, A as D, M as E, ct as M, w as N, k as O, N as S, Re as T, ze as _, Se as a, I as b, St as c, ft as d, x as f, it as g, Fe as h, C as i, S as j, b as k, Ct as l, ue as m, P as n, xe as o, Ne as p, fe as r, E as s, Y as t, Ie as u, Qe as v, F as w, j as x, L as y };
|