@guihz/trading-vue-editor-tes 0.0.142 → 0.0.144
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/assets/{scriptsRunWorker-BZF14FNK.js → scriptsRunWorker-gOaiI2Kb.js} +1 -1
- package/lib/components/editor/index.d.ts +1 -0
- package/lib/components/editor/utils/initEditor.d.ts +1 -0
- package/lib/trading-vue-editor.js +174 -165
- package/lib/trading-vue-editor.umd.cjs +27 -27
- package/package.json +1 -1
@@ -84,10 +84,10 @@ function nb() {
|
|
84
84
|
xe.unshift("Warning: " + S), Function.prototype.apply.call(console[g], console, xe);
|
85
85
|
}
|
86
86
|
}
|
87
|
-
var I = !1, M = !1,
|
87
|
+
var I = !1, M = !1, z = !1, R = !1, J = !1, ye;
|
88
88
|
ye = Symbol.for("react.module.reference");
|
89
89
|
function ie(g) {
|
90
|
-
return !!(typeof g == "string" || typeof g == "function" || g === o || g === l || J || g === c || g === b || g === h || R || g === B || I || M ||
|
90
|
+
return !!(typeof g == "string" || typeof g == "function" || g === o || g === l || J || g === c || g === b || g === h || R || g === B || I || M || z || typeof g == "object" && g !== null && (g.$$typeof === P || g.$$typeof === T || g.$$typeof === m || g.$$typeof === _ || g.$$typeof === f || // This needs to include all possible module reference object
|
91
91
|
// types supported by any Flight configuration anywhere since
|
92
92
|
// we don't know which Flight build this will end up being used
|
93
93
|
// with.
|
@@ -1068,35 +1068,35 @@ function Ap(a, n) {
|
|
1068
1068
|
return a.Uri.parse(n);
|
1069
1069
|
}
|
1070
1070
|
function ax({ original: a, modified: n, language: r, originalLanguage: o, modifiedLanguage: c, originalModelPath: l, modifiedModelPath: m, keepCurrentOriginalModel: _ = !1, keepCurrentModifiedModel: f = !1, theme: b = "light", loading: h = "Loading...", options: T = {}, height: P = "100%", width: B = "100%", className: O, wrapperProps: N = {}, beforeMount: $ = $r, onMount: G = $r }) {
|
1071
|
-
let [j, F] = lt(!1), [I, M] = lt(!0),
|
1071
|
+
let [j, F] = lt(!1), [I, M] = lt(!0), z = Me(null), R = Me(null), J = Me(null), ye = Me(G), ie = Me($), ht = Me(!1);
|
1072
1072
|
kp(() => {
|
1073
1073
|
let X = Ri.init();
|
1074
|
-
return X.then((_e) => (R.current = _e) && M(!1)).catch((_e) => (_e == null ? void 0 : _e.type) !== "cancelation" && console.error("Monaco initialization: error:", _e)), () =>
|
1074
|
+
return X.then((_e) => (R.current = _e) && M(!1)).catch((_e) => (_e == null ? void 0 : _e.type) !== "cancelation" && console.error("Monaco initialization: error:", _e)), () => z.current ? Be() : X.cancel();
|
1075
1075
|
}), bt(() => {
|
1076
|
-
if (
|
1077
|
-
let X =
|
1076
|
+
if (z.current && R.current) {
|
1077
|
+
let X = z.current.getOriginalEditor(), _e = ir(R.current, a || "", o || r || "text", l || "");
|
1078
1078
|
_e !== X.getModel() && X.setModel(_e);
|
1079
1079
|
}
|
1080
1080
|
}, [l], j), bt(() => {
|
1081
|
-
if (
|
1082
|
-
let X =
|
1081
|
+
if (z.current && R.current) {
|
1082
|
+
let X = z.current.getModifiedEditor(), _e = ir(R.current, n || "", c || r || "text", m || "");
|
1083
1083
|
_e !== X.getModel() && X.setModel(_e);
|
1084
1084
|
}
|
1085
1085
|
}, [m], j), bt(() => {
|
1086
|
-
let X =
|
1086
|
+
let X = z.current.getModifiedEditor();
|
1087
1087
|
X.getOption(R.current.editor.EditorOption.readOnly) ? X.setValue(n || "") : n !== X.getValue() && (X.executeEdits("", [{ range: X.getModel().getFullModelRange(), text: n || "", forceMoveMarkers: !0 }]), X.pushUndoStop());
|
1088
1088
|
}, [n], j), bt(() => {
|
1089
1089
|
var X, _e;
|
1090
|
-
(_e = (X =
|
1090
|
+
(_e = (X = z.current) == null ? void 0 : X.getModel()) == null || _e.original.setValue(a || "");
|
1091
1091
|
}, [a], j), bt(() => {
|
1092
|
-
let { original: X, modified: _e } =
|
1092
|
+
let { original: X, modified: _e } = z.current.getModel();
|
1093
1093
|
R.current.editor.setModelLanguage(X, o || r || "text"), R.current.editor.setModelLanguage(_e, c || r || "text");
|
1094
1094
|
}, [r, o, c], j), bt(() => {
|
1095
1095
|
var X;
|
1096
1096
|
(X = R.current) == null || X.editor.setTheme(b);
|
1097
1097
|
}, [b], j), bt(() => {
|
1098
1098
|
var X;
|
1099
|
-
(X =
|
1099
|
+
(X = z.current) == null || X.updateOptions(T);
|
1100
1100
|
}, [T], j);
|
1101
1101
|
let Nt = lr(() => {
|
1102
1102
|
var qe;
|
@@ -1104,20 +1104,20 @@ function ax({ original: a, modified: n, language: r, originalLanguage: o, modifi
|
|
1104
1104
|
return;
|
1105
1105
|
ie.current(R.current);
|
1106
1106
|
let X = ir(R.current, a || "", o || r || "text", l || ""), _e = ir(R.current, n || "", c || r || "text", m || "");
|
1107
|
-
(qe =
|
1107
|
+
(qe = z.current) == null || qe.setModel({ original: X, modified: _e });
|
1108
1108
|
}, [r, n, c, a, o, l, m]), Re = lr(() => {
|
1109
1109
|
var X;
|
1110
|
-
!ht.current && J.current && (
|
1110
|
+
!ht.current && J.current && (z.current = R.current.editor.createDiffEditor(J.current, { automaticLayout: !0, ...T }), Nt(), (X = R.current) == null || X.editor.setTheme(b), F(!0), ht.current = !0);
|
1111
1111
|
}, [T, b, Nt]);
|
1112
1112
|
Qe(() => {
|
1113
|
-
j && ye.current(
|
1113
|
+
j && ye.current(z.current, R.current);
|
1114
1114
|
}, [j]), Qe(() => {
|
1115
1115
|
!I && !j && Re();
|
1116
1116
|
}, [I, j, Re]);
|
1117
1117
|
function Be() {
|
1118
1118
|
var _e, qe, Ne, ct;
|
1119
|
-
let X = (_e =
|
1120
|
-
_ || ((qe = X == null ? void 0 : X.original) == null || qe.dispose()), f || ((Ne = X == null ? void 0 : X.modified) == null || Ne.dispose()), (ct =
|
1119
|
+
let X = (_e = z.current) == null ? void 0 : _e.getModel();
|
1120
|
+
_ || ((qe = X == null ? void 0 : X.original) == null || qe.dispose()), f || ((Ne = X == null ? void 0 : X.modified) == null || Ne.dispose()), (ct = z.current) == null || ct.dispose();
|
1121
1121
|
}
|
1122
1122
|
return ls.createElement(Ip, { width: B, height: P, isEditorReady: j, loading: h, _ref: J, className: O, wrapperProps: N });
|
1123
1123
|
}
|
@@ -1130,7 +1130,7 @@ function ox(a) {
|
|
1130
1130
|
}
|
1131
1131
|
var lx = ox, ja = /* @__PURE__ */ new Map();
|
1132
1132
|
function cx({ defaultValue: a, defaultLanguage: n, defaultPath: r, value: o, language: c, path: l, theme: m = "light", line: _, loading: f = "Loading...", options: b = {}, overrideServices: h = {}, saveViewState: T = !0, keepCurrentModel: P = !1, width: B = "100%", height: O = "100%", className: N, wrapperProps: $ = {}, beforeMount: G = $r, onMount: j = $r, onChange: F, onValidate: I = $r }) {
|
1133
|
-
let [M,
|
1133
|
+
let [M, z] = lt(!1), [R, J] = lt(!0), ye = Me(null), ie = Me(null), ht = Me(null), Nt = Me(j), Re = Me(G), Be = Me(), X = Me(o), _e = lx(l), qe = Me(!1), Ne = Me(!1);
|
1134
1134
|
kp(() => {
|
1135
1135
|
let ee = Ri.init();
|
1136
1136
|
return ee.then((fe) => (ye.current = fe) && J(!1)).catch((fe) => (fe == null ? void 0 : fe.type) !== "cancelation" && console.error("Monaco initialization: error:", fe)), () => ie.current ? wt() : ee.cancel();
|
@@ -1159,7 +1159,7 @@ function cx({ defaultValue: a, defaultLanguage: n, defaultPath: r, value: o, lan
|
|
1159
1159
|
if (!(!ht.current || !ye.current) && !qe.current) {
|
1160
1160
|
Re.current(ye.current);
|
1161
1161
|
let fe = l || r, Pe = ir(ye.current, o || a || "", n || c || "", fe || "");
|
1162
|
-
ie.current = (ee = ye.current) == null ? void 0 : ee.editor.create(ht.current, { model: Pe, automaticLayout: !0, ...b }, h), T && ie.current.restoreViewState(ja.get(fe)), ye.current.editor.setTheme(m), _ !== void 0 && ie.current.revealLine(_),
|
1162
|
+
ie.current = (ee = ye.current) == null ? void 0 : ee.editor.create(ht.current, { model: Pe, automaticLayout: !0, ...b }, h), T && ie.current.restoreViewState(ja.get(fe)), ye.current.editor.setTheme(m), _ !== void 0 && ie.current.revealLine(_), z(!0), qe.current = !0;
|
1163
1163
|
}
|
1164
1164
|
}, [a, n, r, o, c, l, b, h, T, m, _]);
|
1165
1165
|
Qe(() => {
|
@@ -61584,7 +61584,7 @@ var Za = { exports: {} };
|
|
61584
61584
|
Za.exports;
|
61585
61585
|
(function(a, n) {
|
61586
61586
|
(function() {
|
61587
|
-
var r, o = "4.17.21", c = 200, l = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", m = "Expected a function", _ = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", b = 500, h = "__lodash_placeholder__", T = 1, P = 2, B = 4, O = 1, N = 2, $ = 1, G = 2, j = 4, F = 8, I = 16, M = 32,
|
61587
|
+
var r, o = "4.17.21", c = 200, l = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", m = "Expected a function", _ = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", b = 500, h = "__lodash_placeholder__", T = 1, P = 2, B = 4, O = 1, N = 2, $ = 1, G = 2, j = 4, F = 8, I = 16, M = 32, z = 64, R = 128, J = 256, ye = 512, ie = 30, ht = "...", Nt = 800, Re = 16, Be = 1, X = 2, _e = 3, qe = 1 / 0, Ne = 9007199254740991, ct = 17976931348623157e292, wt = NaN, ee = 4294967295, fe = ee - 1, Pe = ee >>> 1, St = [
|
61588
61588
|
["ary", R],
|
61589
61589
|
["bind", $],
|
61590
61590
|
["bindKey", G],
|
@@ -61592,7 +61592,7 @@ Za.exports;
|
|
61592
61592
|
["curryRight", I],
|
61593
61593
|
["flip", ye],
|
61594
61594
|
["partial", M],
|
61595
|
-
["partialRight",
|
61595
|
+
["partialRight", z],
|
61596
61596
|
["rearg", J]
|
61597
61597
|
], Ke = "[object Arguments]", Ue = "[object Array]", cr = "[object AsyncFunction]", Ut = "[object Boolean]", Yt = "[object Date]", Os = "[object DOMException]", Fs = "[object Error]", vs = "[object Function]", Xr = "[object GeneratorFunction]", pt = "[object Map]", $t = "[object Number]", Rs = "[object Null]", vt = "[object Object]", pr = "[object Promise]", Bs = "[object Proxy]", Ts = "[object RegExp]", dt = "[object Set]", Vt = "[object String]", Ks = "[object Symbol]", on = "[object Undefined]", cs = "[object WeakMap]", Yr = "[object WeakSet]", Lt = "[object ArrayBuffer]", ps = "[object DataView]", Us = "[object Float32Array]", $s = "[object Float64Array]", Ds = "[object Int8Array]", dr = "[object Int16Array]", mr = "[object Int32Array]", ur = "[object Uint8Array]", yr = "[object Uint8ClampedArray]", _r = "[object Uint16Array]", fr = "[object Uint32Array]", ln = /\b__p \+= '';/g, gr = /\b(__p \+=) '' \+/g, Vr = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Qt = /&(?:amp|lt|gt|quot|#39);/g, Hs = /[&<>"']/g, br = RegExp(Qt.source), Qr = RegExp(Hs.source), cn = /<%-([\s\S]+?)%>/g, Zr = /<%([\s\S]+?)%>/g, Jr = /<%=([\s\S]+?)%>/g, ea = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ta = /^\w*$/, pn = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, xr = /[\\^$.*+?()[\]{}|]/g, sa = RegExp(xr.source), hr = /^\s+/, dn = /\s/, mn = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, un = /\{\n\/\* \[wrapped with (.+)\] \*/, g = /,? & /, S = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, K = /[()=,{}\[\]\/\s]/, Z = /\\(\\)?/g, ue = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, xe = /\w*$/, pe = /^[-+]0x[0-9a-f]+$/i, le = /^0b[01]+$/i, je = /^\[object .+?Constructor\]$/, ke = /^0o[0-7]+$/i, Ce = /^(?:0|[1-9]\d*)$/, tt = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Mt = /($^)/, ra = /['\n\r\u2028\u2029\\]/g, st = "\\ud800-\\udfff", jp = "\\u0300-\\u036f", Wp = "\\ufe20-\\ufe2f", Gp = "\\u20d0-\\u20ff", Gi = jp + Wp + Gp, Xi = "\\u2700-\\u27bf", Yi = "a-z\\xdf-\\xf6\\xf8-\\xff", Xp = "\\xac\\xb1\\xd7\\xf7", Yp = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Vp = "\\u2000-\\u206f", Qp = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Vi = "A-Z\\xc0-\\xd6\\xd8-\\xde", Qi = "\\ufe0e\\ufe0f", Zi = Xp + Yp + Vp + Qp, yn = "['’]", Zp = "[" + st + "]", Ji = "[" + Zi + "]", aa = "[" + Gi + "]", eo = "\\d+", Jp = "[" + Xi + "]", to = "[" + Yi + "]", so = "[^" + st + Zi + eo + Xi + Yi + Vi + "]", _n = "\\ud83c[\\udffb-\\udfff]", ed = "(?:" + aa + "|" + _n + ")", ro = "[^" + st + "]", fn = "(?:\\ud83c[\\udde6-\\uddff]){2}", gn = "[\\ud800-\\udbff][\\udc00-\\udfff]", js = "[" + Vi + "]", ao = "\\u200d", no = "(?:" + to + "|" + so + ")", td = "(?:" + js + "|" + so + ")", io = "(?:" + yn + "(?:d|ll|m|re|s|t|ve))?", oo = "(?:" + yn + "(?:D|LL|M|RE|S|T|VE))?", lo = ed + "?", co = "[" + Qi + "]?", sd = "(?:" + ao + "(?:" + [ro, fn, gn].join("|") + ")" + co + lo + ")*", rd = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", ad = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", po = co + lo + sd, nd = "(?:" + [Jp, fn, gn].join("|") + ")" + po, id = "(?:" + [ro + aa + "?", aa, fn, gn, Zp].join("|") + ")", od = RegExp(yn, "g"), ld = RegExp(aa, "g"), bn = RegExp(_n + "(?=" + _n + ")|" + id + po, "g"), cd = RegExp([
|
61598
61598
|
js + "?" + to + "+" + io + "(?=" + [Ji, js, "$"].join("|") + ")",
|
@@ -62228,14 +62228,14 @@ Za.exports;
|
|
62228
62228
|
return e;
|
62229
62229
|
}
|
62230
62230
|
function um() {
|
62231
|
-
var e = this.__wrapped__.value(), t = this.__dir__, s = se(e), i = t < 0, p = s ? e.length : 0, u = Iu(0, p, this.__views__), y = u.start, x = u.end, v = x - y, q = i ? x : y - 1, C = this.__iteratees__,
|
62231
|
+
var e = this.__wrapped__.value(), t = this.__dir__, s = se(e), i = t < 0, p = s ? e.length : 0, u = Iu(0, p, this.__views__), y = u.start, x = u.end, v = x - y, q = i ? x : y - 1, C = this.__iteratees__, E = C.length, U = 0, W = Xe(v, this.__takeCount__);
|
62232
62232
|
if (!s || !i && p == v && W == v)
|
62233
62233
|
return ol(e, this.__actions__);
|
62234
62234
|
var V = [];
|
62235
62235
|
e:
|
62236
62236
|
for (; v-- && U < W; ) {
|
62237
62237
|
q += t;
|
62238
|
-
for (var ae = -1, Q = e[q]; ++ae <
|
62238
|
+
for (var ae = -1, Q = e[q]; ++ae < E; ) {
|
62239
62239
|
var ce = C[ae], me = ce.iteratee, ft = ce.type, et = me(Q);
|
62240
62240
|
if (ft == X)
|
62241
62241
|
Q = et;
|
@@ -62450,16 +62450,16 @@ Za.exports;
|
|
62450
62450
|
if (y = Au(e), !x)
|
62451
62451
|
return rt(e, y);
|
62452
62452
|
} else {
|
62453
|
-
var
|
62453
|
+
var E = Ye(e), U = E == vs || E == Xr;
|
62454
62454
|
if (xs(e))
|
62455
62455
|
return pl(e, x);
|
62456
|
-
if (
|
62456
|
+
if (E == vt || E == Ke || U && !p) {
|
62457
62457
|
if (y = v || U ? {} : Cl(e), !x)
|
62458
62458
|
return v ? fu(e, Rm(y, e)) : _u(e, Bo(y, e));
|
62459
62459
|
} else {
|
62460
|
-
if (!Te[
|
62460
|
+
if (!Te[E])
|
62461
62461
|
return p ? e : {};
|
62462
|
-
y = qu(e,
|
62462
|
+
y = qu(e, E, x);
|
62463
62463
|
}
|
62464
62464
|
}
|
62465
62465
|
u || (u = new Ot());
|
@@ -62507,14 +62507,14 @@ Za.exports;
|
|
62507
62507
|
s && (t = Ie(t, ut(s))), i ? (u = wn, y = !1) : t.length >= c && (u = wr, y = !1, t = new qs(t));
|
62508
62508
|
e:
|
62509
62509
|
for (; ++p < x; ) {
|
62510
|
-
var C = e[p],
|
62511
|
-
if (C = i || C !== 0 ? C : 0, y &&
|
62510
|
+
var C = e[p], E = s == null ? C : s(C);
|
62511
|
+
if (C = i || C !== 0 ? C : 0, y && E === E) {
|
62512
62512
|
for (var U = q; U--; )
|
62513
|
-
if (t[U] ===
|
62513
|
+
if (t[U] === E)
|
62514
62514
|
continue e;
|
62515
62515
|
v.push(C);
|
62516
62516
|
} else
|
62517
|
-
u(t,
|
62517
|
+
u(t, E, i) || v.push(C);
|
62518
62518
|
}
|
62519
62519
|
return v;
|
62520
62520
|
}
|
@@ -62596,10 +62596,10 @@ Za.exports;
|
|
62596
62596
|
y && t && (C = Ie(C, ut(t))), v = Xe(C.length, v), x[y] = !s && (t || p >= 120 && C.length >= 120) ? new qs(y && C) : r;
|
62597
62597
|
}
|
62598
62598
|
C = e[0];
|
62599
|
-
var
|
62599
|
+
var E = -1, U = x[0];
|
62600
62600
|
e:
|
62601
|
-
for (; ++
|
62602
|
-
var W = C[
|
62601
|
+
for (; ++E < p && q.length < v; ) {
|
62602
|
+
var W = C[E], V = t ? t(W) : W;
|
62603
62603
|
if (W = s || W !== 0 ? W : 0, !(U ? wr(U, V) : i(q, V, s))) {
|
62604
62604
|
for (y = u; --y; ) {
|
62605
62605
|
var ae = x[y];
|
@@ -62636,7 +62636,7 @@ Za.exports;
|
|
62636
62636
|
function Ym(e, t, s, i, p, u) {
|
62637
62637
|
var y = se(e), x = se(t), v = y ? Ue : Ye(e), q = x ? Ue : Ye(t);
|
62638
62638
|
v = v == Ke ? vt : v, q = q == Ke ? vt : q;
|
62639
|
-
var C = v == vt,
|
62639
|
+
var C = v == vt, E = q == vt, U = v == q;
|
62640
62640
|
if (U && xs(e)) {
|
62641
62641
|
if (!xs(t))
|
62642
62642
|
return !1;
|
@@ -62645,7 +62645,7 @@ Za.exports;
|
|
62645
62645
|
if (U && !C)
|
62646
62646
|
return u || (u = new Ot()), y || rr(e) ? kl(e, t, s, i, p, u) : vu(e, t, v, s, i, p, u);
|
62647
62647
|
if (!(s & O)) {
|
62648
|
-
var W = C && we.call(e, "__wrapped__"), V =
|
62648
|
+
var W = C && we.call(e, "__wrapped__"), V = E && we.call(t, "__wrapped__");
|
62649
62649
|
if (W || V) {
|
62650
62650
|
var ae = W ? e.value() : e, Q = V ? t.value() : t;
|
62651
62651
|
return u || (u = new Ot()), p(ae, Q, s, i, u);
|
@@ -62672,10 +62672,10 @@ Za.exports;
|
|
62672
62672
|
if (q === r && !(v in e))
|
62673
62673
|
return !1;
|
62674
62674
|
} else {
|
62675
|
-
var
|
62675
|
+
var E = new Ot();
|
62676
62676
|
if (i)
|
62677
|
-
var U = i(q, C, v, e, t,
|
62678
|
-
if (!(U === r ? zr(C, q, O | N, i,
|
62677
|
+
var U = i(q, C, v, e, t, E);
|
62678
|
+
if (!(U === r ? zr(C, q, O | N, i, E) : U))
|
62679
62679
|
return !1;
|
62680
62680
|
}
|
62681
62681
|
}
|
@@ -62752,12 +62752,12 @@ Za.exports;
|
|
62752
62752
|
Ln(e, s, q);
|
62753
62753
|
return;
|
62754
62754
|
}
|
62755
|
-
var C = u ? u(x, v, s + "", e, t, y) : r,
|
62756
|
-
if (
|
62755
|
+
var C = u ? u(x, v, s + "", e, t, y) : r, E = C === r;
|
62756
|
+
if (E) {
|
62757
62757
|
var U = se(v), W = !U && xs(v), V = !U && !W && rr(v);
|
62758
|
-
C = v, U || W || V ? se(x) ? C = x : Se(x) ? C = rt(x) : W ? (
|
62758
|
+
C = v, U || W || V ? se(x) ? C = x : Se(x) ? C = rt(x) : W ? (E = !1, C = pl(v, !0)) : V ? (E = !1, C = dl(v, !0)) : C = [] : Mr(v) || Ss(v) ? (C = x, Ss(x) ? C = oc(x) : (!Ae(x) || as(x)) && (C = Cl(v))) : E = !1;
|
62759
62759
|
}
|
62760
|
-
|
62760
|
+
E && (y.set(v, C), p(C, v, i, u, y), y.delete(v)), Ln(e, s, C);
|
62761
62761
|
}
|
62762
62762
|
function Jo(e, t) {
|
62763
62763
|
var s = e.length;
|
@@ -62902,11 +62902,11 @@ Za.exports;
|
|
62902
62902
|
return 0;
|
62903
62903
|
t = s(t);
|
62904
62904
|
for (var y = t !== t, x = t === null, v = _t(t), q = t === r; p < u; ) {
|
62905
|
-
var C = ba((p + u) / 2),
|
62905
|
+
var C = ba((p + u) / 2), E = s(e[C]), U = E !== r, W = E === null, V = E === E, ae = _t(E);
|
62906
62906
|
if (y)
|
62907
62907
|
var Q = i || V;
|
62908
62908
|
else
|
62909
|
-
q ? Q = V && (i || U) : x ? Q = V && U && (i || !W) : v ? Q = V && U && !W && (i || !ae) : W || ae ? Q = !1 : Q = i ?
|
62909
|
+
q ? Q = V && (i || U) : x ? Q = V && U && (i || !W) : v ? Q = V && U && !W && (i || !ae) : W || ae ? Q = !1 : Q = i ? E <= t : E < t;
|
62910
62910
|
Q ? p = C + 1 : u = C;
|
62911
62911
|
}
|
62912
62912
|
return Xe(u, fe);
|
@@ -62947,14 +62947,14 @@ Za.exports;
|
|
62947
62947
|
v = t ? [] : x;
|
62948
62948
|
e:
|
62949
62949
|
for (; ++i < u; ) {
|
62950
|
-
var C = e[i],
|
62951
|
-
if (C = s || C !== 0 ? C : 0, y &&
|
62950
|
+
var C = e[i], E = t ? t(C) : C;
|
62951
|
+
if (C = s || C !== 0 ? C : 0, y && E === E) {
|
62952
62952
|
for (var U = v.length; U--; )
|
62953
|
-
if (v[U] ===
|
62953
|
+
if (v[U] === E)
|
62954
62954
|
continue e;
|
62955
|
-
t && v.push(
|
62955
|
+
t && v.push(E), x.push(C);
|
62956
62956
|
} else
|
62957
|
-
p(v,
|
62957
|
+
p(v, E, s) || (v !== x && v.push(E), x.push(C));
|
62958
62958
|
}
|
62959
62959
|
return x;
|
62960
62960
|
}
|
@@ -63056,22 +63056,22 @@ Za.exports;
|
|
63056
63056
|
return e.index - t.index;
|
63057
63057
|
}
|
63058
63058
|
function ul(e, t, s, i) {
|
63059
|
-
for (var p = -1, u = e.length, y = s.length, x = -1, v = t.length, q = Fe(u - y, 0), C = D(v + q),
|
63059
|
+
for (var p = -1, u = e.length, y = s.length, x = -1, v = t.length, q = Fe(u - y, 0), C = D(v + q), E = !i; ++x < v; )
|
63060
63060
|
C[x] = t[x];
|
63061
63061
|
for (; ++p < y; )
|
63062
|
-
(
|
63062
|
+
(E || p < u) && (C[s[p]] = e[p]);
|
63063
63063
|
for (; q--; )
|
63064
63064
|
C[x++] = e[p++];
|
63065
63065
|
return C;
|
63066
63066
|
}
|
63067
63067
|
function yl(e, t, s, i) {
|
63068
|
-
for (var p = -1, u = e.length, y = -1, x = s.length, v = -1, q = t.length, C = Fe(u - x, 0),
|
63069
|
-
|
63068
|
+
for (var p = -1, u = e.length, y = -1, x = s.length, v = -1, q = t.length, C = Fe(u - x, 0), E = D(C + q), U = !i; ++p < C; )
|
63069
|
+
E[p] = e[p];
|
63070
63070
|
for (var W = p; ++v < q; )
|
63071
|
-
|
63071
|
+
E[W + v] = t[v];
|
63072
63072
|
for (; ++y < x; )
|
63073
|
-
(U || p < u) && (
|
63074
|
-
return
|
63073
|
+
(U || p < u) && (E[W + s[y]] = e[p++]);
|
63074
|
+
return E;
|
63075
63075
|
}
|
63076
63076
|
function rt(e, t) {
|
63077
63077
|
var s = -1, i = e.length;
|
@@ -63232,14 +63232,14 @@ Za.exports;
|
|
63232
63232
|
var q = arguments, C = q[0];
|
63233
63233
|
if (y && q.length == 1 && se(C))
|
63234
63234
|
return y.plant(C).value();
|
63235
|
-
for (var
|
63236
|
-
U = t[
|
63235
|
+
for (var E = 0, U = s ? t[E].apply(this, q) : C; ++E < s; )
|
63236
|
+
U = t[E].call(this, U);
|
63237
63237
|
return U;
|
63238
63238
|
};
|
63239
63239
|
});
|
63240
63240
|
}
|
63241
63241
|
function Ca(e, t, s, i, p, u, y, x, v, q) {
|
63242
|
-
var C = t & R,
|
63242
|
+
var C = t & R, E = t & $, U = t & G, W = t & (F | I), V = t & ye, ae = U ? r : Nr(e);
|
63243
63243
|
function Q() {
|
63244
63244
|
for (var ce = arguments.length, me = D(ce), ft = ce; ft--; )
|
63245
63245
|
me[ft] = arguments[ft];
|
@@ -63260,7 +63260,7 @@ Za.exports;
|
|
63260
63260
|
q - ce
|
63261
63261
|
);
|
63262
63262
|
}
|
63263
|
-
var Rt =
|
63263
|
+
var Rt = E ? s : this, is = U ? Rt[e] : e;
|
63264
63264
|
return ce = me.length, x ? me = Fu(me, x) : V && ce > 1 && me.reverse(), C && v < ce && (me.length = v), this && this !== We && this instanceof Q && (is = ae || Nr(is)), is.apply(Rt, me);
|
63265
63265
|
}
|
63266
63266
|
return Q;
|
@@ -63304,11 +63304,11 @@ Za.exports;
|
|
63304
63304
|
function xu(e, t, s, i) {
|
63305
63305
|
var p = t & $, u = Nr(e);
|
63306
63306
|
function y() {
|
63307
|
-
for (var x = -1, v = arguments.length, q = -1, C = i.length,
|
63308
|
-
|
63307
|
+
for (var x = -1, v = arguments.length, q = -1, C = i.length, E = D(C + v), U = this && this !== We && this instanceof y ? u : e; ++q < C; )
|
63308
|
+
E[q] = i[q];
|
63309
63309
|
for (; v--; )
|
63310
|
-
|
63311
|
-
return mt(U, p ? s : this,
|
63310
|
+
E[q++] = arguments[++x];
|
63311
|
+
return mt(U, p ? s : this, E);
|
63312
63312
|
}
|
63313
63313
|
return y;
|
63314
63314
|
}
|
@@ -63323,14 +63323,14 @@ Za.exports;
|
|
63323
63323
|
};
|
63324
63324
|
}
|
63325
63325
|
function vl(e, t, s, i, p, u, y, x, v, q) {
|
63326
|
-
var C = t & F,
|
63327
|
-
t |= C ? M :
|
63326
|
+
var C = t & F, E = C ? y : r, U = C ? r : y, W = C ? u : r, V = C ? r : u;
|
63327
|
+
t |= C ? M : z, t &= ~(C ? z : M), t & j || (t &= ~($ | G));
|
63328
63328
|
var ae = [
|
63329
63329
|
e,
|
63330
63330
|
t,
|
63331
63331
|
p,
|
63332
63332
|
W,
|
63333
|
-
|
63333
|
+
E,
|
63334
63334
|
V,
|
63335
63335
|
U,
|
63336
63336
|
x,
|
@@ -63363,8 +63363,8 @@ Za.exports;
|
|
63363
63363
|
if (!v && typeof e != "function")
|
63364
63364
|
throw new It(m);
|
63365
63365
|
var q = i ? i.length : 0;
|
63366
|
-
if (q || (t &= ~(M |
|
63367
|
-
var C = i,
|
63366
|
+
if (q || (t &= ~(M | z), i = p = r), y = y === r ? y : Fe(re(y), 0), x = x === r ? x : re(x), q -= p ? p.length : 0, t & z) {
|
63367
|
+
var C = i, E = p;
|
63368
63368
|
i = p = r;
|
63369
63369
|
}
|
63370
63370
|
var U = v ? r : si(e), W = [
|
@@ -63374,7 +63374,7 @@ Za.exports;
|
|
63374
63374
|
i,
|
63375
63375
|
p,
|
63376
63376
|
C,
|
63377
|
-
|
63377
|
+
E,
|
63378
63378
|
u,
|
63379
63379
|
y,
|
63380
63380
|
x
|
@@ -63402,11 +63402,11 @@ Za.exports;
|
|
63402
63402
|
var q = u.get(e), C = u.get(t);
|
63403
63403
|
if (q && C)
|
63404
63404
|
return q == t && C == e;
|
63405
|
-
var
|
63406
|
-
for (u.set(e, t), u.set(t, e); ++
|
63407
|
-
var V = e[
|
63405
|
+
var E = -1, U = !0, W = s & N ? new qs() : r;
|
63406
|
+
for (u.set(e, t), u.set(t, e); ++E < x; ) {
|
63407
|
+
var V = e[E], ae = t[E];
|
63408
63408
|
if (i)
|
63409
|
-
var Q = y ? i(ae, V,
|
63409
|
+
var Q = y ? i(ae, V, E, t, e, u) : i(V, ae, E, e, t, u);
|
63410
63410
|
if (Q !== r) {
|
63411
63411
|
if (Q)
|
63412
63412
|
continue;
|
@@ -63467,8 +63467,8 @@ Za.exports;
|
|
63467
63467
|
var y = s & O, x = ei(e), v = x.length, q = ei(t), C = q.length;
|
63468
63468
|
if (v != C && !y)
|
63469
63469
|
return !1;
|
63470
|
-
for (var
|
63471
|
-
var U = x[
|
63470
|
+
for (var E = v; E--; ) {
|
63471
|
+
var U = x[E];
|
63472
63472
|
if (!(y ? U in t : we.call(t, U)))
|
63473
63473
|
return !1;
|
63474
63474
|
}
|
@@ -63477,8 +63477,8 @@ Za.exports;
|
|
63477
63477
|
return W == t && V == e;
|
63478
63478
|
var ae = !0;
|
63479
63479
|
u.set(e, t), u.set(t, e);
|
63480
|
-
for (var Q = y; ++
|
63481
|
-
U = x[
|
63480
|
+
for (var Q = y; ++E < v; ) {
|
63481
|
+
U = x[E];
|
63482
63482
|
var ce = e[U], me = t[U];
|
63483
63483
|
if (i)
|
63484
63484
|
var ft = y ? i(me, ce, U, t, e, u) : i(ce, me, U, e, t, u);
|
@@ -64297,10 +64297,10 @@ Za.exports;
|
|
64297
64297
|
return i.placeholder = Zl.placeholder, i;
|
64298
64298
|
}
|
64299
64299
|
function Jl(e, t, s) {
|
64300
|
-
var i, p, u, y, x, v, q = 0, C = !1,
|
64300
|
+
var i, p, u, y, x, v, q = 0, C = !1, E = !1, U = !0;
|
64301
64301
|
if (typeof e != "function")
|
64302
64302
|
throw new It(m);
|
64303
|
-
t = zt(t) || 0, Ae(s) && (C = !!s.leading,
|
64303
|
+
t = zt(t) || 0, Ae(s) && (C = !!s.leading, E = "maxWait" in s, u = E ? Fe(zt(s.maxWait) || 0, t) : u, U = "trailing" in s ? !!s.trailing : U);
|
64304
64304
|
function W(Le) {
|
64305
64305
|
var Rt = i, is = p;
|
64306
64306
|
return i = p = r, q = Le, y = e.apply(is, Rt), y;
|
@@ -64310,11 +64310,11 @@ Za.exports;
|
|
64310
64310
|
}
|
64311
64311
|
function ae(Le) {
|
64312
64312
|
var Rt = Le - v, is = Le - q, bc = t - Rt;
|
64313
|
-
return
|
64313
|
+
return E ? Xe(bc, u - is) : bc;
|
64314
64314
|
}
|
64315
64315
|
function Q(Le) {
|
64316
64316
|
var Rt = Le - v, is = Le - q;
|
64317
|
-
return v === r || Rt >= t || Rt < 0 ||
|
64317
|
+
return v === r || Rt >= t || Rt < 0 || E && is >= u;
|
64318
64318
|
}
|
64319
64319
|
function ce() {
|
64320
64320
|
var Le = Fa();
|
@@ -64336,7 +64336,7 @@ Za.exports;
|
|
64336
64336
|
if (i = arguments, p = this, v = Le, Rt) {
|
64337
64337
|
if (x === r)
|
64338
64338
|
return V(v);
|
64339
|
-
if (
|
64339
|
+
if (E)
|
64340
64340
|
return cl(x), x = Lr(ce, t), W(v);
|
64341
64341
|
}
|
64342
64342
|
return x === r && (x = Lr(ce, t)), y;
|
@@ -64398,7 +64398,7 @@ Za.exports;
|
|
64398
64398
|
return ts(e, M, r, t, s);
|
64399
64399
|
}), ec = oe(function(e, t) {
|
64400
64400
|
var s = us(t, sr(ec));
|
64401
|
-
return ts(e,
|
64401
|
+
return ts(e, z, r, t, s);
|
64402
64402
|
}), I_ = ss(function(e, t) {
|
64403
64403
|
return ts(e, J, r, r, r, t);
|
64404
64404
|
});
|
@@ -64880,40 +64880,40 @@ Za.exports;
|
|
64880
64880
|
function ng(e, t, s) {
|
64881
64881
|
var i = d.templateSettings;
|
64882
64882
|
s && Je(e, t, s) && (t = r), e = he(e), t = $a({}, t, i, Dl);
|
64883
|
-
var p = $a({}, t.imports, i.imports, Dl), u = $e(p), y = qn(p, u), x, v, q = 0, C = t.interpolate || Mt,
|
64883
|
+
var p = $a({}, t.imports, i.imports, Dl), u = $e(p), y = qn(p, u), x, v, q = 0, C = t.interpolate || Mt, E = "__p += '", U = zn(
|
64884
64884
|
(t.escape || Mt).source + "|" + C.source + "|" + (C === Jr ? ue : Mt).source + "|" + (t.evaluate || Mt).source + "|$",
|
64885
64885
|
"g"
|
64886
64886
|
), W = "//# sourceURL=" + (we.call(t, "sourceURL") ? (t.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++ud + "]") + `
|
64887
64887
|
`;
|
64888
64888
|
e.replace(U, function(Q, ce, me, ft, et, gt) {
|
64889
|
-
return me || (me = ft),
|
64889
|
+
return me || (me = ft), E += e.slice(q, gt).replace(ra, Sd), ce && (x = !0, E += `' +
|
64890
64890
|
__e(` + ce + `) +
|
64891
|
-
'`), et && (v = !0,
|
64891
|
+
'`), et && (v = !0, E += `';
|
64892
64892
|
` + et + `;
|
64893
|
-
__p += '`), me && (
|
64893
|
+
__p += '`), me && (E += `' +
|
64894
64894
|
((__t = (` + me + `)) == null ? '' : __t) +
|
64895
64895
|
'`), q = gt + Q.length, Q;
|
64896
|
-
}),
|
64896
|
+
}), E += `';
|
64897
64897
|
`;
|
64898
64898
|
var V = we.call(t, "variable") && t.variable;
|
64899
64899
|
if (!V)
|
64900
|
-
|
64901
|
-
` +
|
64900
|
+
E = `with (obj) {
|
64901
|
+
` + E + `
|
64902
64902
|
}
|
64903
64903
|
`;
|
64904
64904
|
else if (K.test(V))
|
64905
64905
|
throw new te(_);
|
64906
|
-
|
64906
|
+
E = (v ? E.replace(ln, "") : E).replace(gr, "$1").replace(Vr, "$1;"), E = "function(" + (V || "obj") + `) {
|
64907
64907
|
` + (V ? "" : `obj || (obj = {});
|
64908
64908
|
`) + "var __t, __p = ''" + (x ? ", __e = _.escape" : "") + (v ? `, __j = Array.prototype.join;
|
64909
64909
|
function print() { __p += __j.call(arguments, '') }
|
64910
64910
|
` : `;
|
64911
|
-
`) +
|
64911
|
+
`) + E + `return __p
|
64912
64912
|
}`;
|
64913
64913
|
var ae = fc(function() {
|
64914
|
-
return ge(u, W + "return " +
|
64914
|
+
return ge(u, W + "return " + E).apply(r, y);
|
64915
64915
|
});
|
64916
|
-
if (ae.source =
|
64916
|
+
if (ae.source = E, ui(ae))
|
64917
64917
|
throw ae;
|
64918
64918
|
return ae;
|
64919
64919
|
}
|
@@ -64971,8 +64971,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
64971
64971
|
if (e.slice(x).search(p)) {
|
64972
64972
|
var q, C = v;
|
64973
64973
|
for (p.global || (p = zn(p.source, he(xe.exec(p)) + "g")), p.lastIndex = 0; q = p.exec(C); )
|
64974
|
-
var
|
64975
|
-
v = v.slice(0,
|
64974
|
+
var E = q.index;
|
64975
|
+
v = v.slice(0, E === r ? x : E);
|
64976
64976
|
}
|
64977
64977
|
} else if (e.indexOf(yt(p), x) != x) {
|
64978
64978
|
var U = v.lastIndexOf(p);
|
@@ -65056,8 +65056,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
65056
65056
|
e[x] = v, y && (e.prototype[x] = function() {
|
65057
65057
|
var q = this.__chain__;
|
65058
65058
|
if (u || q) {
|
65059
|
-
var C = e(this.__wrapped__),
|
65060
|
-
return
|
65059
|
+
var C = e(this.__wrapped__), E = C.__actions__ = rt(this.__actions__);
|
65060
|
+
return E.push({ func: v, args: arguments, thisArg: e }), C.__chain__ = q, C;
|
65061
65061
|
}
|
65062
65062
|
return v.apply(e, ms([this.value()], arguments));
|
65063
65063
|
});
|
@@ -65208,7 +65208,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
65208
65208
|
}, Ht(de.prototype, function(e, t) {
|
65209
65209
|
var s = /^(?:filter|find|map|reject)|While$/.test(t), i = /^(?:head|last)$/.test(t), p = d[i ? "take" + (t == "last" ? "Right" : "") : t], u = i || /^find/.test(t);
|
65210
65210
|
p && (d.prototype[t] = function() {
|
65211
|
-
var y = this.__wrapped__, x = i ? [1] : arguments, v = y instanceof de, q = x[0], C = v || se(y),
|
65211
|
+
var y = this.__wrapped__, x = i ? [1] : arguments, v = y instanceof de, q = x[0], C = v || se(y), E = function(ce) {
|
65212
65212
|
var me = p.apply(d, ms([ce], x));
|
65213
65213
|
return i && U ? me[0] : me;
|
65214
65214
|
};
|
@@ -65217,9 +65217,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
65217
65217
|
if (!u && C) {
|
65218
65218
|
y = ae ? y : new de(this);
|
65219
65219
|
var Q = e.apply(y, x);
|
65220
|
-
return Q.__actions__.push({ func: Pa, args: [
|
65220
|
+
return Q.__actions__.push({ func: Pa, args: [E], thisArg: r }), new kt(Q, U);
|
65221
65221
|
}
|
65222
|
-
return V && ae ? e.apply(this, x) : (Q = this.thru(
|
65222
|
+
return V && ae ? e.apply(this, x) : (Q = this.thru(E), V ? i ? Q.value()[0] : Q.value() : Q);
|
65223
65223
|
});
|
65224
65224
|
}), Dt(["pop", "push", "shift", "sort", "splice", "unshift"], function(e) {
|
65225
65225
|
var t = la[e], s = /^(?:push|sort|unshift)$/.test(e) ? "tap" : "thru", i = /^(?:pop|shift)$/.test(e);
|
@@ -66775,19 +66775,19 @@ ws.prototype = {
|
|
66775
66775
|
var $ = -1 / 0, G = 1 / 0;
|
66776
66776
|
function j() {
|
66777
66777
|
for (var I = Math.max($, -h); I <= Math.min(G, h); I += 2) {
|
66778
|
-
var M = void 0,
|
66779
|
-
|
66778
|
+
var M = void 0, z = O[I - 1], R = O[I + 1];
|
66779
|
+
z && (O[I - 1] = void 0);
|
66780
66780
|
var J = !1;
|
66781
66781
|
if (R) {
|
66782
66782
|
var ye = R.oldPos - I;
|
66783
66783
|
J = R && 0 <= ye && ye < f;
|
66784
66784
|
}
|
66785
|
-
var ie =
|
66785
|
+
var ie = z && z.oldPos + 1 < b;
|
66786
66786
|
if (!J && !ie) {
|
66787
66787
|
O[I] = void 0;
|
66788
66788
|
continue;
|
66789
66789
|
}
|
66790
|
-
if (!ie || J &&
|
66790
|
+
if (!ie || J && z.oldPos + 1 < R.oldPos ? M = m.addToPath(R, !0, void 0, 0) : M = m.addToPath(z, void 0, !0, 1), N = m.extractCommon(M, r, n, I), M.oldPos + 1 >= b && N + 1 >= f)
|
66791
66791
|
return _(Hx(m, M.lastComponent, r, n, m.useLongestToken));
|
66792
66792
|
O[I] = M, M.oldPos + 1 >= b && (G = Math.min(G, I - 1)), N + 1 >= f && ($ = Math.max($, I + 1));
|
66793
66793
|
}
|
@@ -67133,12 +67133,15 @@ class Vx {
|
|
67133
67133
|
(n = this._decorations) == null || n.dispose(), this._decorations = void 0;
|
67134
67134
|
}
|
67135
67135
|
setValue(n) {
|
67136
|
-
|
67137
|
-
this._editor.setValue(n), this._editor.setScrollTop(0), (r = this._editor) == null || r.focus();
|
67136
|
+
this._editor.setValue(n), this._editor.setScrollTop(0), this.focus();
|
67138
67137
|
}
|
67139
67138
|
setPosition(n) {
|
67140
|
-
var r, o
|
67141
|
-
(r = this._editor) == null || r.setPosition(n), (o = this._editor) == null || o.revealPositionInCenter(n),
|
67139
|
+
var r, o;
|
67140
|
+
(r = this._editor) == null || r.setPosition(n), (o = this._editor) == null || o.revealPositionInCenter(n), this.focus();
|
67141
|
+
}
|
67142
|
+
focus() {
|
67143
|
+
var n;
|
67144
|
+
(n = this._editor) == null || n.focus();
|
67142
67145
|
}
|
67143
67146
|
setOriginalScript(n) {
|
67144
67147
|
var r;
|
@@ -67303,10 +67306,10 @@ class Vx {
|
|
67303
67306
|
});
|
67304
67307
|
}
|
67305
67308
|
openFind() {
|
67306
|
-
this.
|
67309
|
+
this.focus(), this._editor.trigger("click", "actions.find", null);
|
67307
67310
|
}
|
67308
67311
|
gotoLine() {
|
67309
|
-
this.
|
67312
|
+
this.focus(), this._editor.trigger("click", "editor.action.gotoLine", null);
|
67310
67313
|
}
|
67311
67314
|
onChangeCursorPosition(n) {
|
67312
67315
|
this._changPositionListener && this._changPositionListener.dispose();
|
@@ -67553,7 +67556,7 @@ function nr(a, n, r) {
|
|
67553
67556
|
function oh() {
|
67554
67557
|
return new Array(4).fill(0).map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16)).join("-");
|
67555
67558
|
}
|
67556
|
-
const Fp = new Worker(new URL("" + new URL("assets/scriptsRunWorker-
|
67559
|
+
const Fp = new Worker(new URL("" + new URL("assets/scriptsRunWorker-gOaiI2Kb.js", import.meta.url).href, import.meta.url), { type: "module", name: "Run TccScript Server" });
|
67557
67560
|
Fp.onerror = (a) => {
|
67558
67561
|
console.error(a);
|
67559
67562
|
};
|
@@ -67590,7 +67593,9 @@ self.MonacoEnvironment = {
|
|
67590
67593
|
};
|
67591
67594
|
Ri.config({
|
67592
67595
|
paths: {
|
67593
|
-
vs: "https://cdn.staticfile.net/monaco-editor/0.45.0/min/vs"
|
67596
|
+
// vs: "https://cdn.staticfile.net/monaco-editor/0.45.0/min/vs",
|
67597
|
+
vs: "https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.45.0/min/vs"
|
67598
|
+
// vs: "https://unpkg.com/monaco-editor@0.45.0/min/vs",
|
67594
67599
|
},
|
67595
67600
|
"vs/nls": { availableLanguages: { "*": "zh-cn" } }
|
67596
67601
|
});
|
@@ -67598,49 +67603,53 @@ let up = {};
|
|
67598
67603
|
const dh = (a, n) => {
|
67599
67604
|
const { height: r, width: o, theme: c, options: l, hasDiff: m, readOnly: _, defaultValue: f, onChange: b, onLinkOpen: h, onDeclareConfigChange: T, onCursorPositionChange: P, onActionTrigger: B, onEditorDidMount: O } = a, N = Me(null), $ = Me(null);
|
67600
67605
|
hp(n, () => ({
|
67601
|
-
setOriginalScript(
|
67606
|
+
setOriginalScript(z) {
|
67602
67607
|
var R;
|
67603
|
-
(R = N.current) == null || R.setOriginalScript(
|
67608
|
+
(R = N.current) == null || R.setOriginalScript(z);
|
67604
67609
|
},
|
67605
|
-
setScript(
|
67610
|
+
setScript(z) {
|
67606
67611
|
var R;
|
67607
|
-
(R = N.current) == null || R.setValue(
|
67612
|
+
(R = N.current) == null || R.setValue(z);
|
67608
67613
|
},
|
67609
67614
|
gotoLine() {
|
67610
|
-
var
|
67611
|
-
(
|
67615
|
+
var z;
|
67616
|
+
(z = N.current) == null || z.gotoLine();
|
67612
67617
|
},
|
67613
67618
|
getEditorLayout() {
|
67614
|
-
var
|
67615
|
-
return (
|
67619
|
+
var z;
|
67620
|
+
return (z = N.current) == null ? void 0 : z.getEditorLayout();
|
67616
67621
|
},
|
67617
|
-
setPosition(
|
67622
|
+
setPosition(z, R) {
|
67618
67623
|
var J;
|
67619
|
-
(J = N.current) == null || J.setPosition({ column:
|
67624
|
+
(J = N.current) == null || J.setPosition({ column: z, lineNumber: R });
|
67620
67625
|
},
|
67621
|
-
setModelMarkers(
|
67626
|
+
setModelMarkers(z) {
|
67622
67627
|
var R;
|
67623
|
-
(R = N.current) == null || R.setModelMarkers(
|
67628
|
+
(R = N.current) == null || R.setModelMarkers(z);
|
67629
|
+
},
|
67630
|
+
focus() {
|
67631
|
+
var z;
|
67632
|
+
(z = N.current) == null || z.focus();
|
67624
67633
|
}
|
67625
67634
|
})), Qe(() => {
|
67626
|
-
var
|
67627
|
-
m ? (R = N.current) == null || R.addDiffDecorations() : (
|
67635
|
+
var z, R;
|
67636
|
+
m ? (R = N.current) == null || R.addDiffDecorations() : (z = N.current) == null || z.removeDiffDecorations();
|
67628
67637
|
}, [m]), Qe(() => {
|
67629
|
-
var
|
67630
|
-
(
|
67638
|
+
var z;
|
67639
|
+
(z = N.current) == null || z.updateActionTrigger(B);
|
67631
67640
|
}, [B]), Qe(() => {
|
67632
|
-
var
|
67633
|
-
h && ((
|
67641
|
+
var z;
|
67642
|
+
h && ((z = N.current) == null || z.addLinkOpenFunc(h));
|
67634
67643
|
}, [h]);
|
67635
|
-
function G(
|
67644
|
+
function G(z, R) {
|
67636
67645
|
var ye, ie;
|
67637
|
-
Kt.initBuiltinsTrees(), Ja.setEditor(
|
67638
|
-
const J =
|
67646
|
+
Kt.initBuiltinsTrees(), Ja.setEditor(z), N.current = new Vx(z, R, B), h && ((ye = N.current) == null || ye.addLinkOpenFunc(h)), m && ((ie = N.current) == null || ie.addDiffDecorations()), vx(z), requestAnimationFrame(M);
|
67647
|
+
const J = z.getValue();
|
67639
67648
|
N.current.onChangeCursorPosition(P), b && b(J), !_ && j(J), O && O();
|
67640
67649
|
}
|
67641
|
-
const j = lr(async (
|
67650
|
+
const j = lr(async (z) => {
|
67642
67651
|
var Ke;
|
67643
|
-
const R = Date.now(), { errors: J, functions: ye, methods: ie, types: ht, variables: Nt, overloadsFuncs: Re, imports: Be, preParserCode: X, enums: _e } = await lh(
|
67652
|
+
const R = Date.now(), { errors: J, functions: ye, methods: ie, types: ht, variables: Nt, overloadsFuncs: Re, imports: Be, preParserCode: X, enums: _e } = await lh(z), qe = new Map(Object.entries(ye)), Ne = new Map(Object.entries(ie)), ct = new Map(Object.entries(ht)), wt = new Map(Object.entries(Nt)), ee = new Map(Object.entries(Be)), fe = new Map(Object.entries(_e));
|
67644
67653
|
Ps.setUserDefined({
|
67645
67654
|
functions: qe,
|
67646
67655
|
methods: Ne,
|
@@ -67675,23 +67684,23 @@ const dh = (a, n) => {
|
|
67675
67684
|
const St = Date.now();
|
67676
67685
|
console.log((St - R) / 1e3);
|
67677
67686
|
}, [T, _]), F = Jg(() => Cc.debounce(j, 1500), [j]);
|
67678
|
-
function I(
|
67687
|
+
function I(z) {
|
67679
67688
|
var R;
|
67680
67689
|
if (_) {
|
67681
|
-
j(
|
67690
|
+
j(z || "");
|
67682
67691
|
return;
|
67683
67692
|
}
|
67684
|
-
Ja.clearInlayHints(), (R = N.current) == null || R.setModelMarkers([]),
|
67693
|
+
Ja.clearInlayHints(), (R = N.current) == null || R.setModelMarkers([]), z !== void 0 && (b && b(z), F(z));
|
67685
67694
|
}
|
67686
67695
|
const M = lr(() => {
|
67687
67696
|
var R, J;
|
67688
|
-
const
|
67689
|
-
(J = N.current) == null || J.setEditorLayout((
|
67697
|
+
const z = (R = $.current) == null ? void 0 : R.getBoundingClientRect();
|
67698
|
+
(J = N.current) == null || J.setEditorLayout((z == null ? void 0 : z.height) || 0, z == null ? void 0 : z.width);
|
67690
67699
|
}, []);
|
67691
67700
|
return Qe(() => {
|
67692
|
-
const
|
67701
|
+
const z = () => {
|
67693
67702
|
window.requestAnimationFrame(M);
|
67694
|
-
}, R = new ResizeObserver(
|
67703
|
+
}, R = new ResizeObserver(z);
|
67695
67704
|
return $.current && R.observe($.current), () => {
|
67696
67705
|
$.current && R.unobserve($.current), R.disconnect();
|
67697
67706
|
};
|
@@ -68033,8 +68042,8 @@ function Nh(a) {
|
|
68033
68042
|
if (b) {
|
68034
68043
|
let I = !1;
|
68035
68044
|
for (const M of b) {
|
68036
|
-
const { name:
|
68037
|
-
if (
|
68045
|
+
const { name: z, desc: R, displayType: J } = M;
|
68046
|
+
if (z.includes(a) || R != null && R.includes(a) || J != null && J.includes(a)) {
|
68038
68047
|
r.push(F), I = !0;
|
68039
68048
|
break;
|
68040
68049
|
}
|
@@ -68094,8 +68103,8 @@ function Nh(a) {
|
|
68094
68103
|
if ($) {
|
68095
68104
|
let I = !1;
|
68096
68105
|
for (const M of $) {
|
68097
|
-
const { desc:
|
68098
|
-
if (
|
68106
|
+
const { desc: z, examples: R } = M;
|
68107
|
+
if (z.join(`
|
68099
68108
|
`).includes(a)) {
|
68100
68109
|
r.push(F), I = !0;
|
68101
68110
|
break;
|
@@ -68112,8 +68121,8 @@ function Nh(a) {
|
|
68112
68121
|
if (G) {
|
68113
68122
|
let I = !1;
|
68114
68123
|
for (const M of G) {
|
68115
|
-
const { name:
|
68116
|
-
if (
|
68124
|
+
const { name: z, desc: R, type: J } = M;
|
68125
|
+
if (z.includes(a) || R != null && R.includes(a) || J != null && J.includes(a)) {
|
68117
68126
|
r.push(F), I = !0;
|
68118
68127
|
break;
|
68119
68128
|
}
|
@@ -68146,8 +68155,8 @@ const Sh = (a) => {
|
|
68146
68155
|
}, [r]);
|
68147
68156
|
const B = (F) => {
|
68148
68157
|
const I = r.replace(`${n == null ? void 0 : n.prefix}_`, ""), M = xt[n == null ? void 0 : n.key].get(I);
|
68149
|
-
f(F), M && zh(M, F).then((
|
68150
|
-
m(
|
68158
|
+
f(F), M && zh(M, F).then((z) => {
|
68159
|
+
m(z);
|
68151
68160
|
});
|
68152
68161
|
}, O = (F) => {
|
68153
68162
|
B(F);
|
@@ -68155,8 +68164,8 @@ const Sh = (a) => {
|
|
68155
68164
|
var I, M;
|
68156
68165
|
if (F.target.localName === "a" && F.target.hash && ((M = (I = F.target) == null ? void 0 : I.dataset) != null && M.name)) {
|
68157
68166
|
F.preventDefault();
|
68158
|
-
const { hash:
|
68159
|
-
o(
|
68167
|
+
const { hash: z } = F.target;
|
68168
|
+
o(z.replace("#", ""));
|
68160
68169
|
}
|
68161
68170
|
}, $ = () => {
|
68162
68171
|
h("Copied"), setTimeout(() => {
|
@@ -68178,9 +68187,9 @@ const Sh = (a) => {
|
|
68178
68187
|
__html: F.desc || ""
|
68179
68188
|
} })] }, I))] }), (l == null ? void 0 : l.examples) && L.jsxs(Gt, { children: [L.jsxs("div", { className: "manual-content-sub-title manual-content-example-header", children: [L.jsx("div", { children: L.jsx("span", { children: "example" }) }), L.jsx(Ci, { text: l.originalExample || "", onCopy: $, children: L.jsx("div", { "data-tooltip": b, className: "manual-content-btn manual-content-example-copy", children: L.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", fill: "none", children: L.jsx("path", { stroke: "currentColor", d: "M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z" }) }) }) })] }), L.jsx("pre", { className: "manual-content-example", children: L.jsx("code", { dangerouslySetInnerHTML: {
|
68180
68189
|
__html: l.examples
|
68181
|
-
} }) })] }), (l == null ? void 0 : l.detailedDesc) && l.detailedDesc.map((F, I) => L.jsxs(Gt, { children: [F.desc.map((M,
|
68190
|
+
} }) })] }), (l == null ? void 0 : l.detailedDesc) && l.detailedDesc.map((F, I) => L.jsxs(Gt, { children: [F.desc.map((M, z) => L.jsx("div", { className: "manual-content-text", dangerouslySetInnerHTML: {
|
68182
68191
|
__html: M
|
68183
|
-
} },
|
68192
|
+
} }, z)), L.jsxs("div", { className: "manual-content-sub-title manual-content-example-header", children: [L.jsx("div", { children: L.jsx("span", { children: "example" }) }), L.jsx(Ci, { text: F.originalExample || "", onCopy: $, children: L.jsx("div", { "data-tooltip": b, className: "manual-content-btn manual-content-example-copy", children: L.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", fill: "none", children: L.jsx("path", { stroke: "currentColor", d: "M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z" }) }) }) })] }), L.jsx("pre", { className: "manual-content-example", children: L.jsx("code", { dangerouslySetInnerHTML: {
|
68184
68193
|
__html: F.examples || ""
|
68185
68194
|
} }) })] }, I)), (l == null ? void 0 : l.returns) && L.jsxs(Gt, { children: [L.jsx("div", { className: "manual-content-sub-title", children: "returns" }), l.returns.map((F, I) => L.jsx("div", { className: "manual-content-text", dangerouslySetInnerHTML: {
|
68186
68195
|
__html: F
|
@@ -68203,13 +68212,13 @@ const Kh = ({ theme: a = "vs-dark", currentValue: n }) => {
|
|
68203
68212
|
Hr.setTheme(a);
|
68204
68213
|
}, [a]), Qe(() => {
|
68205
68214
|
if (n.value) {
|
68206
|
-
const [I] = n.value.split("_"), M = Kr.find((
|
68215
|
+
const [I] = n.value.split("_"), M = Kr.find((z) => I === z.prefix);
|
68207
68216
|
M && (_(n.index || 0), j(M, n.value));
|
68208
68217
|
}
|
68209
68218
|
}, [n]);
|
68210
68219
|
const N = (I, M) => {
|
68211
|
-
var
|
68212
|
-
I !== h && (M && o(M), _(0), T(I), (
|
68220
|
+
var z;
|
68221
|
+
I !== h && (M && o(M), _(0), T(I), (z = B.current) == null || z.scrollTo({ top: 0 }));
|
68213
68222
|
}, $ = (I) => {
|
68214
68223
|
if (I.target.value.trim() === "")
|
68215
68224
|
G();
|
@@ -68224,13 +68233,13 @@ const Kh = ({ theme: a = "vs-dark", currentValue: n }) => {
|
|
68224
68233
|
(M = (I = P.current) == null ? void 0 : I.querySelector(`a[data-href="${h}"]`)) == null || M.scrollIntoView(!0);
|
68225
68234
|
}, 10);
|
68226
68235
|
}, j = (I, M) => {
|
68227
|
-
var
|
68236
|
+
var z;
|
68228
68237
|
o(I), T(M), setTimeout(() => {
|
68229
68238
|
var R, J;
|
68230
68239
|
(J = (R = P.current) == null ? void 0 : R.querySelector(`a[data-href="${M}"]`)) == null || J.scrollIntoView(!0);
|
68231
|
-
}, 10), (
|
68240
|
+
}, 10), (z = B.current) == null || z.scrollTo({ top: 0 });
|
68232
68241
|
}, F = (I) => {
|
68233
|
-
const M = Kr.find((
|
68242
|
+
const M = Kr.find((z) => I.startsWith(z.prefix));
|
68234
68243
|
M && (_(0), j(M, I));
|
68235
68244
|
};
|
68236
68245
|
return L.jsxs("div", { className: `${a} manual-warpper`, children: [L.jsxs("div", { className: "manual-left", children: [L.jsxs("div", { className: "manual-search", children: [L.jsx("span", { className: "manual-search-icon", children: L.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", width: "18px", height: "18px", children: L.jsx("path", { fillRule: "evenodd", d: "M12.5 11h-.79l-.28-.27A6.47 6.47 0 0 0 13 6.5 6.5 6.5 0 1 0 6.5 13c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L17.49 16l-4.99-5zm-6 0C4.01 11 2 8.99 2 6.5S4.01 2 6.5 2 11 4.01 11 6.5 8.99 11 6.5 11z" }) }) }), L.jsx("input", { onChange: $, spellCheck: "false", value: f, className: "manual-search-input", autoComplete: "off", placeholder: "Search", type: "text" }), L.jsx("span", { onClick: G, className: `manual-search-clear ${f ? "" : "hide"}`, children: L.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 95.939 95.939", width: "9", height: "9", children: L.jsx("path", { d: "M62.82 47.97l32.53-32.534a2 2 0 0 0 0-2.828L83.332.586a2 2 0 0 0-2.827 0L47.97 33.12 15.435.587c-.75-.75-2.078-.75-2.828 0L.587 12.607a2 2 0 0 0 0 2.83L33.12 47.97.588 80.504a2 2 0 0 0 0 2.828l12.02 12.02a1.997 1.997 0 0 0 2.83 0L47.97 62.818l32.535 32.535a2 2 0 0 0 2.827 0l12.02-12.02c.78-.783.78-2.05 0-2.83L62.82 47.97z" }) }) })] }), L.jsx("div", { className: `manual-group-search-list manual-scroll ${f ? "" : "hide"}`, children: L.jsxs("div", { children: [c == null ? void 0 : c.labelList.map((I) => L.jsx("a", { onClick: (M) => {
|
@@ -68238,8 +68247,8 @@ const Kh = ({ theme: a = "vs-dark", currentValue: n }) => {
|
|
68238
68247
|
}, className: `manual-group-body-item ${I.key === h ? "manual-group-body-item-selected" : ""}`, "data-href": I.key, href: `#${I.key}`, children: I.label }, `search_${I.key}`)), L.jsx("div", { className: "manual-content-separator" }), c == null ? void 0 : c.contentList.map((I) => L.jsx("a", { onClick: (M) => {
|
68239
68248
|
M.preventDefault(), N(I.key, I.group);
|
68240
68249
|
}, className: `manual-group-body-item ${I.key === h ? "manual-group-body-item-selected" : ""}`, "data-href": I.key, href: `#${I.key}`, children: I.label }, `search_${I.key}`))] }) }), L.jsx("div", { className: `manual-group-list manual-scroll ${f ? "hide" : ""}`, ref: P, children: Kr.map((I) => {
|
68241
|
-
var M,
|
68242
|
-
return L.jsxs(Gt, { children: [L.jsx("div", { onClick: () => O(I), className: `manual-group-title ${I.key === (r == null ? void 0 : r.key) && !(r != null && r.isHidden) ? "active" : ""}`, children: I.title }), L.jsx("div", { className: `manual-group-body manual-scroll ${I.key !== (r == null ? void 0 : r.key) || r != null && r.isHidden ? "hide" : ""}`, children: (
|
68250
|
+
var M, z;
|
68251
|
+
return L.jsxs(Gt, { children: [L.jsx("div", { onClick: () => O(I), className: `manual-group-title ${I.key === (r == null ? void 0 : r.key) && !(r != null && r.isHidden) ? "active" : ""}`, children: I.title }), L.jsx("div", { className: `manual-group-body manual-scroll ${I.key !== (r == null ? void 0 : r.key) || r != null && r.isHidden ? "hide" : ""}`, children: (z = (M = Cp[I.key]) == null ? void 0 : M.sort().filter((R) => !qp.includes(R))) == null ? void 0 : z.map((R) => {
|
68243
68252
|
const J = `${I.prefix}_${R}`;
|
68244
68253
|
return L.jsx("a", { onClick: (ye) => {
|
68245
68254
|
ye.preventDefault(), N(J);
|