@guihz/trading-vue-editor-tes 0.1.60 → 0.1.62
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/lib/assets/{parserTccWorker-CZR3XWhO.js → parserTccWorker-DNjcb8Nl.js} +925 -914
- package/lib/assets/{scriptsRunWorker-66u9BfVS.js → scriptsRunWorker-DvjQUdYy.js} +2817 -2805
- package/lib/components/editor/v5/parseScript/parseToJs.d.ts +2 -1
- package/lib/components/editor/v6/parseScript/parseToJs.d.ts +2 -1
- package/lib/trading-vue-editor.es.packages.js +2 -2
- package/lib/trading-vue-editor.umd.packages.mjs +21 -21
- package/package.json +1 -1
|
@@ -488,7 +488,7 @@ var aR = v4((HT, j2) => {
|
|
|
488
488
|
}, 0);
|
|
489
489
|
} }]) && y(a.prototype, d), Object.defineProperty(a, "prototype", { writable: !1 }), h;
|
|
490
490
|
}();
|
|
491
|
-
function
|
|
491
|
+
function R(h, a) {
|
|
492
492
|
if (typeof a != "function" && a !== null)
|
|
493
493
|
throw new TypeError("Super expression must either be null or a function");
|
|
494
494
|
h.prototype = Object.create(a && a.prototype, { constructor: { value: h, writable: !0, configurable: !0 } }), Object.defineProperty(h, "prototype", { writable: !1 }), a && S(h, a);
|
|
@@ -596,7 +596,7 @@ var aR = v4((HT, j2) => {
|
|
|
596
596
|
return u.opnds.length === 1 ? u.opnds[0] : u;
|
|
597
597
|
} }]), h;
|
|
598
598
|
}(), R0 = function(h) {
|
|
599
|
-
|
|
599
|
+
R(d, h);
|
|
600
600
|
var a = L(d);
|
|
601
601
|
function d(u, O) {
|
|
602
602
|
var M;
|
|
@@ -637,8 +637,8 @@ var aR = v4((HT, j2) => {
|
|
|
637
637
|
if (A.length === 0)
|
|
638
638
|
return J.NONE;
|
|
639
639
|
var v = null;
|
|
640
|
-
return A.map(function(
|
|
641
|
-
v = v === null ?
|
|
640
|
+
return A.map(function(W) {
|
|
641
|
+
v = v === null ? W : J.andContext(v, W);
|
|
642
642
|
}), v;
|
|
643
643
|
} }, { key: "toString", value: function() {
|
|
644
644
|
var u = this.opnds.map(function(O) {
|
|
@@ -647,7 +647,7 @@ var aR = v4((HT, j2) => {
|
|
|
647
647
|
return (u.length > 3 ? u.slice(3) : u).join("&&");
|
|
648
648
|
} }]), d;
|
|
649
649
|
}(J), l0 = function(h) {
|
|
650
|
-
|
|
650
|
+
R(d, h);
|
|
651
651
|
var a = L(d);
|
|
652
652
|
function d(u, O) {
|
|
653
653
|
var M;
|
|
@@ -660,8 +660,8 @@ var aR = v4((HT, j2) => {
|
|
|
660
660
|
}) : A.add(O);
|
|
661
661
|
var c = y0(A);
|
|
662
662
|
if (c.length > 0) {
|
|
663
|
-
var l = c.sort(function(v,
|
|
664
|
-
return v.compareTo(
|
|
663
|
+
var l = c.sort(function(v, W) {
|
|
664
|
+
return v.compareTo(W);
|
|
665
665
|
}), g = l[l.length - 1];
|
|
666
666
|
A.add(g);
|
|
667
667
|
}
|
|
@@ -1143,10 +1143,10 @@ var aR = v4((HT, j2) => {
|
|
|
1143
1143
|
c = Reflect.construct(l, arguments, g);
|
|
1144
1144
|
} else
|
|
1145
1145
|
c = l.apply(this, arguments);
|
|
1146
|
-
return function(v,
|
|
1147
|
-
if (
|
|
1148
|
-
return
|
|
1149
|
-
if (
|
|
1146
|
+
return function(v, W) {
|
|
1147
|
+
if (W && (I0(W) === "object" || typeof W == "function"))
|
|
1148
|
+
return W;
|
|
1149
|
+
if (W !== void 0)
|
|
1150
1150
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1151
1151
|
return function(w) {
|
|
1152
1152
|
if (w === void 0)
|
|
@@ -1156,11 +1156,11 @@ var aR = v4((HT, j2) => {
|
|
|
1156
1156
|
}(this, c);
|
|
1157
1157
|
});
|
|
1158
1158
|
function A(c, l, g, v) {
|
|
1159
|
-
var
|
|
1159
|
+
var W;
|
|
1160
1160
|
return function(w, b0) {
|
|
1161
1161
|
if (!(w instanceof b0))
|
|
1162
1162
|
throw new TypeError("Cannot call a class as a function");
|
|
1163
|
-
}(this, A), (
|
|
1163
|
+
}(this, A), (W = M.call(this, c)).ruleIndex = l, W.precedence = g, W.followState = v, W.serializationType = n0.RULE, W.isEpsilon = !0, W;
|
|
1164
1164
|
}
|
|
1165
1165
|
return a = A, (d = [{ key: "matches", value: function(c, l, g) {
|
|
1166
1166
|
return !1;
|
|
@@ -1225,10 +1225,10 @@ var aR = v4((HT, j2) => {
|
|
|
1225
1225
|
c = Reflect.construct(l, arguments, g);
|
|
1226
1226
|
} else
|
|
1227
1227
|
c = l.apply(this, arguments);
|
|
1228
|
-
return function(v,
|
|
1229
|
-
if (
|
|
1230
|
-
return
|
|
1231
|
-
if (
|
|
1228
|
+
return function(v, W) {
|
|
1229
|
+
if (W && (ke(W) === "object" || typeof W == "function"))
|
|
1230
|
+
return W;
|
|
1231
|
+
if (W !== void 0)
|
|
1232
1232
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1233
1233
|
return function(w) {
|
|
1234
1234
|
if (w === void 0)
|
|
@@ -1239,8 +1239,8 @@ var aR = v4((HT, j2) => {
|
|
|
1239
1239
|
});
|
|
1240
1240
|
function A(c, l) {
|
|
1241
1241
|
var g;
|
|
1242
|
-
return function(v,
|
|
1243
|
-
if (!(v instanceof
|
|
1242
|
+
return function(v, W) {
|
|
1243
|
+
if (!(v instanceof W))
|
|
1244
1244
|
throw new TypeError("Cannot call a class as a function");
|
|
1245
1245
|
}(this, A), (g = M.call(this, c)).serializationType = n0.SET, l != null ? g.label = l : (g.label = new O0(), g.label.addOne(t.INVALID_TYPE)), g;
|
|
1246
1246
|
}
|
|
@@ -1322,10 +1322,10 @@ var aR = v4((HT, j2) => {
|
|
|
1322
1322
|
c = Reflect.construct(l, arguments, g);
|
|
1323
1323
|
} else
|
|
1324
1324
|
c = l.apply(this, arguments);
|
|
1325
|
-
return function(v,
|
|
1326
|
-
if (
|
|
1327
|
-
return
|
|
1328
|
-
if (
|
|
1325
|
+
return function(v, W) {
|
|
1326
|
+
if (W && (U(W) === "object" || typeof W == "function"))
|
|
1327
|
+
return W;
|
|
1328
|
+
if (W !== void 0)
|
|
1329
1329
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1330
1330
|
return function(w) {
|
|
1331
1331
|
if (w === void 0)
|
|
@@ -1336,8 +1336,8 @@ var aR = v4((HT, j2) => {
|
|
|
1336
1336
|
});
|
|
1337
1337
|
function A(c, l) {
|
|
1338
1338
|
var g;
|
|
1339
|
-
return function(v,
|
|
1340
|
-
if (!(v instanceof
|
|
1339
|
+
return function(v, W) {
|
|
1340
|
+
if (!(v instanceof W))
|
|
1341
1341
|
throw new TypeError("Cannot call a class as a function");
|
|
1342
1342
|
}(this, A), (g = M.call(this, c, l)).serializationType = n0.NOT_SET, g;
|
|
1343
1343
|
}
|
|
@@ -1406,10 +1406,10 @@ var aR = v4((HT, j2) => {
|
|
|
1406
1406
|
c = Reflect.construct(l, arguments, g);
|
|
1407
1407
|
} else
|
|
1408
1408
|
c = l.apply(this, arguments);
|
|
1409
|
-
return function(v,
|
|
1410
|
-
if (
|
|
1411
|
-
return
|
|
1412
|
-
if (
|
|
1409
|
+
return function(v, W) {
|
|
1410
|
+
if (W && (C1(W) === "object" || typeof W == "function"))
|
|
1411
|
+
return W;
|
|
1412
|
+
if (W !== void 0)
|
|
1413
1413
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1414
1414
|
return function(w) {
|
|
1415
1415
|
if (w === void 0)
|
|
@@ -1477,10 +1477,10 @@ var aR = v4((HT, j2) => {
|
|
|
1477
1477
|
return v;
|
|
1478
1478
|
if (v !== void 0)
|
|
1479
1479
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1480
|
-
return function(
|
|
1481
|
-
if (
|
|
1480
|
+
return function(W) {
|
|
1481
|
+
if (W === void 0)
|
|
1482
1482
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1483
|
-
return
|
|
1483
|
+
return W;
|
|
1484
1484
|
}(g);
|
|
1485
1485
|
}(this, A);
|
|
1486
1486
|
});
|
|
@@ -1583,10 +1583,10 @@ var aR = v4((HT, j2) => {
|
|
|
1583
1583
|
return v;
|
|
1584
1584
|
if (v !== void 0)
|
|
1585
1585
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1586
|
-
return function(
|
|
1587
|
-
if (
|
|
1586
|
+
return function(W) {
|
|
1587
|
+
if (W === void 0)
|
|
1588
1588
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1589
|
-
return
|
|
1589
|
+
return W;
|
|
1590
1590
|
}(g);
|
|
1591
1591
|
}(this, A);
|
|
1592
1592
|
});
|
|
@@ -1626,10 +1626,10 @@ var aR = v4((HT, j2) => {
|
|
|
1626
1626
|
return v;
|
|
1627
1627
|
if (v !== void 0)
|
|
1628
1628
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1629
|
-
return function(
|
|
1630
|
-
if (
|
|
1629
|
+
return function(W) {
|
|
1630
|
+
if (W === void 0)
|
|
1631
1631
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1632
|
-
return
|
|
1632
|
+
return W;
|
|
1633
1633
|
}(g);
|
|
1634
1634
|
}(this, A);
|
|
1635
1635
|
});
|
|
@@ -1705,10 +1705,10 @@ var aR = v4((HT, j2) => {
|
|
|
1705
1705
|
c = Reflect.construct(l, arguments, g);
|
|
1706
1706
|
} else
|
|
1707
1707
|
c = l.apply(this, arguments);
|
|
1708
|
-
return function(v,
|
|
1709
|
-
if (
|
|
1710
|
-
return
|
|
1711
|
-
if (
|
|
1708
|
+
return function(v, W) {
|
|
1709
|
+
if (W && (V(W) === "object" || typeof W == "function"))
|
|
1710
|
+
return W;
|
|
1711
|
+
if (W !== void 0)
|
|
1712
1712
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1713
1713
|
return function(w) {
|
|
1714
1714
|
if (w === void 0)
|
|
@@ -1773,10 +1773,10 @@ var aR = v4((HT, j2) => {
|
|
|
1773
1773
|
return v;
|
|
1774
1774
|
if (v !== void 0)
|
|
1775
1775
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1776
|
-
return function(
|
|
1777
|
-
if (
|
|
1776
|
+
return function(W) {
|
|
1777
|
+
if (W === void 0)
|
|
1778
1778
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1779
|
-
return
|
|
1779
|
+
return W;
|
|
1780
1780
|
}(g);
|
|
1781
1781
|
}(this, A);
|
|
1782
1782
|
});
|
|
@@ -1834,10 +1834,10 @@ var aR = v4((HT, j2) => {
|
|
|
1834
1834
|
return v;
|
|
1835
1835
|
if (v !== void 0)
|
|
1836
1836
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1837
|
-
return function(
|
|
1838
|
-
if (
|
|
1837
|
+
return function(W) {
|
|
1838
|
+
if (W === void 0)
|
|
1839
1839
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1840
|
-
return
|
|
1840
|
+
return W;
|
|
1841
1841
|
}(g);
|
|
1842
1842
|
}(this, A);
|
|
1843
1843
|
});
|
|
@@ -1960,10 +1960,10 @@ var aR = v4((HT, j2) => {
|
|
|
1960
1960
|
c = Reflect.construct(l, arguments, g);
|
|
1961
1961
|
} else
|
|
1962
1962
|
c = l.apply(this, arguments);
|
|
1963
|
-
return function(v,
|
|
1964
|
-
if (
|
|
1965
|
-
return
|
|
1966
|
-
if (
|
|
1963
|
+
return function(v, W) {
|
|
1964
|
+
if (W && (Pr(W) === "object" || typeof W == "function"))
|
|
1965
|
+
return W;
|
|
1966
|
+
if (W !== void 0)
|
|
1967
1967
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1968
1968
|
return function(w) {
|
|
1969
1969
|
if (w === void 0)
|
|
@@ -1974,8 +1974,8 @@ var aR = v4((HT, j2) => {
|
|
|
1974
1974
|
});
|
|
1975
1975
|
function A(c, l) {
|
|
1976
1976
|
var g;
|
|
1977
|
-
return function(v,
|
|
1978
|
-
if (!(v instanceof
|
|
1977
|
+
return function(v, W) {
|
|
1978
|
+
if (!(v instanceof W))
|
|
1979
1979
|
throw new TypeError("Cannot call a class as a function");
|
|
1980
1980
|
}(this, A), (g = M.call(this)).parentCtx = c || null, g.invokingState = l || -1, g;
|
|
1981
1981
|
}
|
|
@@ -2012,8 +2012,8 @@ var aR = v4((HT, j2) => {
|
|
|
2012
2012
|
if (c === null)
|
|
2013
2013
|
g.isEmpty() || (v += g.invokingState);
|
|
2014
2014
|
else {
|
|
2015
|
-
var
|
|
2016
|
-
v +=
|
|
2015
|
+
var W = g.ruleIndex;
|
|
2016
|
+
v += W >= 0 && W < c.length ? c[W] : "" + W;
|
|
2017
2017
|
}
|
|
2018
2018
|
g.parentCtx === null || c === null && g.parentCtx.isEmpty() || (v += " "), g = g.parentCtx;
|
|
2019
2019
|
}
|
|
@@ -2145,8 +2145,8 @@ var aR = v4((HT, j2) => {
|
|
|
2145
2145
|
})(this, A);
|
|
2146
2146
|
var v = new f();
|
|
2147
2147
|
v.update(c, l);
|
|
2148
|
-
var
|
|
2149
|
-
return (g = M.call(this,
|
|
2148
|
+
var W = v.finish();
|
|
2149
|
+
return (g = M.call(this, W)).parents = c, g.returnStates = l, z0(g, x0(g));
|
|
2150
2150
|
}
|
|
2151
2151
|
return a = A, (d = [{ key: "isEmpty", value: function() {
|
|
2152
2152
|
return this.returnStates[0] === g1.EMPTY_RETURN_STATE;
|
|
@@ -2225,7 +2225,7 @@ var aR = v4((HT, j2) => {
|
|
|
2225
2225
|
l = Reflect.construct(g, arguments, v);
|
|
2226
2226
|
} else
|
|
2227
2227
|
l = g.apply(this, arguments);
|
|
2228
|
-
return function(
|
|
2228
|
+
return function(W, w) {
|
|
2229
2229
|
if (w && (o1(w) === "object" || typeof w == "function"))
|
|
2230
2230
|
return w;
|
|
2231
2231
|
if (w !== void 0)
|
|
@@ -2234,7 +2234,7 @@ var aR = v4((HT, j2) => {
|
|
|
2234
2234
|
if (b0 === void 0)
|
|
2235
2235
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2236
2236
|
return b0;
|
|
2237
|
-
}(
|
|
2237
|
+
}(W);
|
|
2238
2238
|
}(this, l);
|
|
2239
2239
|
});
|
|
2240
2240
|
function c(l, g) {
|
|
@@ -2243,8 +2243,8 @@ var aR = v4((HT, j2) => {
|
|
|
2243
2243
|
if (!(b0 instanceof D0))
|
|
2244
2244
|
throw new TypeError("Cannot call a class as a function");
|
|
2245
2245
|
})(this, c);
|
|
2246
|
-
var
|
|
2247
|
-
return l !== null ? w.update(l, g) : w.update(1),
|
|
2246
|
+
var W, w = new f();
|
|
2247
|
+
return l !== null ? w.update(l, g) : w.update(1), W = w.finish(), (v = A.call(this, W)).parentCtx = l, v.returnState = g, v;
|
|
2248
2248
|
}
|
|
2249
2249
|
return a = c, u = [{ key: "create", value: function(l, g) {
|
|
2250
2250
|
return g === g1.EMPTY_RETURN_STATE && l === null ? g1.EMPTY : new c(l, g);
|
|
@@ -2320,10 +2320,10 @@ var aR = v4((HT, j2) => {
|
|
|
2320
2320
|
c = Reflect.construct(l, arguments, g);
|
|
2321
2321
|
} else
|
|
2322
2322
|
c = l.apply(this, arguments);
|
|
2323
|
-
return function(v,
|
|
2324
|
-
if (
|
|
2325
|
-
return
|
|
2326
|
-
if (
|
|
2323
|
+
return function(v, W) {
|
|
2324
|
+
if (W && (Oe(W) === "object" || typeof W == "function"))
|
|
2325
|
+
return W;
|
|
2326
|
+
if (W !== void 0)
|
|
2327
2327
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
2328
2328
|
return function(w) {
|
|
2329
2329
|
if (w === void 0)
|
|
@@ -2512,8 +2512,8 @@ var aR = v4((HT, j2) => {
|
|
|
2512
2512
|
return O;
|
|
2513
2513
|
if (v === M.parentCtx)
|
|
2514
2514
|
return M;
|
|
2515
|
-
var
|
|
2516
|
-
return c !== null && c.set(O, M,
|
|
2515
|
+
var W = S1.create(v, O.returnState);
|
|
2516
|
+
return c !== null && c.set(O, M, W), W;
|
|
2517
2517
|
}
|
|
2518
2518
|
var w = null;
|
|
2519
2519
|
if ((O === M || O.parentCtx !== null && O.parentCtx === M.parentCtx) && (w = O.parentCtx), w !== null) {
|
|
@@ -2539,27 +2539,27 @@ var aR = v4((HT, j2) => {
|
|
|
2539
2539
|
if (l !== null || (l = c.get(M, O)) !== null)
|
|
2540
2540
|
return g1.trace_atn_sim && console.log("mergeArrays a=" + O + ",b=" + M + " -> previous"), l;
|
|
2541
2541
|
}
|
|
2542
|
-
for (var g = 0, v = 0,
|
|
2542
|
+
for (var g = 0, v = 0, W = 0, w = new Array(O.returnStates.length + M.returnStates.length).fill(0), b0 = new Array(O.returnStates.length + M.returnStates.length).fill(null); g < O.returnStates.length && v < M.returnStates.length; ) {
|
|
2543
2543
|
var D0 = O.parents[g], B0 = M.parents[v];
|
|
2544
2544
|
if (O.returnStates[g] === M.returnStates[v]) {
|
|
2545
2545
|
var i1 = O.returnStates[g];
|
|
2546
|
-
i1 === g1.EMPTY_RETURN_STATE && D0 === null && B0 === null || D0 !== null && B0 !== null && D0 === B0 ? (b0[
|
|
2546
|
+
i1 === g1.EMPTY_RETURN_STATE && D0 === null && B0 === null || D0 !== null && B0 !== null && D0 === B0 ? (b0[W] = D0, w[W] = i1) : (b0[W] = vs(D0, B0, A, c), w[W] = i1), g += 1, v += 1;
|
|
2547
2547
|
} else
|
|
2548
|
-
O.returnStates[g] < M.returnStates[v] ? (b0[
|
|
2549
|
-
|
|
2548
|
+
O.returnStates[g] < M.returnStates[v] ? (b0[W] = D0, w[W] = O.returnStates[g], g += 1) : (b0[W] = B0, w[W] = M.returnStates[v], v += 1);
|
|
2549
|
+
W += 1;
|
|
2550
2550
|
}
|
|
2551
2551
|
if (g < O.returnStates.length)
|
|
2552
2552
|
for (var T1 = g; T1 < O.returnStates.length; T1++)
|
|
2553
|
-
b0[
|
|
2553
|
+
b0[W] = O.parents[T1], w[W] = O.returnStates[T1], W += 1;
|
|
2554
2554
|
else
|
|
2555
2555
|
for (var p1 = v; p1 < M.returnStates.length; p1++)
|
|
2556
|
-
b0[
|
|
2557
|
-
if (
|
|
2558
|
-
if (
|
|
2556
|
+
b0[W] = M.parents[p1], w[W] = M.returnStates[p1], W += 1;
|
|
2557
|
+
if (W < b0.length) {
|
|
2558
|
+
if (W === 1) {
|
|
2559
2559
|
var He = S1.create(b0[0], w[0]);
|
|
2560
2560
|
return c !== null && c.set(O, M, He), He;
|
|
2561
2561
|
}
|
|
2562
|
-
b0 = b0.slice(0,
|
|
2562
|
+
b0 = b0.slice(0, W), w = w.slice(0, W);
|
|
2563
2563
|
}
|
|
2564
2564
|
var De = new L0(b0, w);
|
|
2565
2565
|
return De.equals(O) ? (c !== null && c.set(O, M, O), g1.trace_atn_sim && console.log("mergeArrays a=" + O + ",b=" + M + " -> a"), O) : De.equals(M) ? (c !== null && c.set(O, M, M), g1.trace_atn_sim && console.log("mergeArrays a=" + O + ",b=" + M + " -> b"), M) : (function(At) {
|
|
@@ -2676,9 +2676,9 @@ var aR = v4((HT, j2) => {
|
|
|
2676
2676
|
var A = new O0(), c = (M = M || null) !== null ? Ws(u.atn, M) : null;
|
|
2677
2677
|
return this._LOOK(u, O, c, A, new q(), new gn(), !0, !0), A;
|
|
2678
2678
|
} }, { key: "_LOOK", value: function(u, O, M, A, c, l, g, v) {
|
|
2679
|
-
var
|
|
2680
|
-
if (!c.has(
|
|
2681
|
-
if (c.add(
|
|
2679
|
+
var W = new F0({ state: u, alt: 0, context: M }, null);
|
|
2680
|
+
if (!c.has(W)) {
|
|
2681
|
+
if (c.add(W), u === O) {
|
|
2682
2682
|
if (M === null)
|
|
2683
2683
|
return void A.addOne(t.EPSILON);
|
|
2684
2684
|
if (M.isEmpty() && v)
|
|
@@ -2837,10 +2837,10 @@ var aR = v4((HT, j2) => {
|
|
|
2837
2837
|
return v;
|
|
2838
2838
|
if (v !== void 0)
|
|
2839
2839
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
2840
|
-
return function(
|
|
2841
|
-
if (
|
|
2840
|
+
return function(W) {
|
|
2841
|
+
if (W === void 0)
|
|
2842
2842
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2843
|
-
return
|
|
2843
|
+
return W;
|
|
2844
2844
|
}(g);
|
|
2845
2845
|
}(this, A);
|
|
2846
2846
|
});
|
|
@@ -3680,10 +3680,10 @@ var aR = v4((HT, j2) => {
|
|
|
3680
3680
|
c = Reflect.construct(l, arguments, g);
|
|
3681
3681
|
} else
|
|
3682
3682
|
c = l.apply(this, arguments);
|
|
3683
|
-
return function(v,
|
|
3684
|
-
if (
|
|
3685
|
-
return
|
|
3686
|
-
if (
|
|
3683
|
+
return function(v, W) {
|
|
3684
|
+
if (W && (Ns(W) === "object" || typeof W == "function"))
|
|
3685
|
+
return W;
|
|
3686
|
+
if (W !== void 0)
|
|
3687
3687
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
3688
3688
|
return function(w) {
|
|
3689
3689
|
if (w === void 0)
|
|
@@ -3694,8 +3694,8 @@ var aR = v4((HT, j2) => {
|
|
|
3694
3694
|
});
|
|
3695
3695
|
function A(c, l) {
|
|
3696
3696
|
var g;
|
|
3697
|
-
return function(v,
|
|
3698
|
-
if (!(v instanceof
|
|
3697
|
+
return function(v, W) {
|
|
3698
|
+
if (!(v instanceof W))
|
|
3699
3699
|
throw new TypeError("Cannot call a class as a function");
|
|
3700
3700
|
}(this, A), (g = M.call(this, c)).label_ = l, g.label = g.makeLabel(), g.serializationType = n0.ATOM, g;
|
|
3701
3701
|
}
|
|
@@ -3767,10 +3767,10 @@ var aR = v4((HT, j2) => {
|
|
|
3767
3767
|
c = Reflect.construct(l, arguments, g);
|
|
3768
3768
|
} else
|
|
3769
3769
|
c = l.apply(this, arguments);
|
|
3770
|
-
return function(v,
|
|
3771
|
-
if (
|
|
3772
|
-
return
|
|
3773
|
-
if (
|
|
3770
|
+
return function(v, W) {
|
|
3771
|
+
if (W && (Ss(W) === "object" || typeof W == "function"))
|
|
3772
|
+
return W;
|
|
3773
|
+
if (W !== void 0)
|
|
3774
3774
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
3775
3775
|
return function(w) {
|
|
3776
3776
|
if (w === void 0)
|
|
@@ -3781,8 +3781,8 @@ var aR = v4((HT, j2) => {
|
|
|
3781
3781
|
});
|
|
3782
3782
|
function A(c, l, g) {
|
|
3783
3783
|
var v;
|
|
3784
|
-
return function(
|
|
3785
|
-
if (!(
|
|
3784
|
+
return function(W, w) {
|
|
3785
|
+
if (!(W instanceof w))
|
|
3786
3786
|
throw new TypeError("Cannot call a class as a function");
|
|
3787
3787
|
}(this, A), (v = M.call(this, c)).serializationType = n0.RANGE, v.start = l, v.stop = g, v.label = v.makeLabel(), v;
|
|
3788
3788
|
}
|
|
@@ -3854,10 +3854,10 @@ var aR = v4((HT, j2) => {
|
|
|
3854
3854
|
c = Reflect.construct(l, arguments, g);
|
|
3855
3855
|
} else
|
|
3856
3856
|
c = l.apply(this, arguments);
|
|
3857
|
-
return function(v,
|
|
3858
|
-
if (
|
|
3859
|
-
return
|
|
3860
|
-
if (
|
|
3857
|
+
return function(v, W) {
|
|
3858
|
+
if (W && (Cs(W) === "object" || typeof W == "function"))
|
|
3859
|
+
return W;
|
|
3860
|
+
if (W !== void 0)
|
|
3861
3861
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
3862
3862
|
return function(w) {
|
|
3863
3863
|
if (w === void 0)
|
|
@@ -3867,11 +3867,11 @@ var aR = v4((HT, j2) => {
|
|
|
3867
3867
|
}(this, c);
|
|
3868
3868
|
});
|
|
3869
3869
|
function A(c, l, g, v) {
|
|
3870
|
-
var
|
|
3870
|
+
var W;
|
|
3871
3871
|
return function(w, b0) {
|
|
3872
3872
|
if (!(w instanceof b0))
|
|
3873
3873
|
throw new TypeError("Cannot call a class as a function");
|
|
3874
|
-
}(this, A), (
|
|
3874
|
+
}(this, A), (W = M.call(this, c)).serializationType = n0.ACTION, W.ruleIndex = l, W.actionIndex = g === void 0 ? -1 : g, W.isCtxDependent = v !== void 0 && v, W.isEpsilon = !0, W;
|
|
3875
3875
|
}
|
|
3876
3876
|
return a = A, (d = [{ key: "matches", value: function(c, l, g) {
|
|
3877
3877
|
return !1;
|
|
@@ -3938,10 +3938,10 @@ var aR = v4((HT, j2) => {
|
|
|
3938
3938
|
c = Reflect.construct(l, arguments, g);
|
|
3939
3939
|
} else
|
|
3940
3940
|
c = l.apply(this, arguments);
|
|
3941
|
-
return function(v,
|
|
3942
|
-
if (
|
|
3943
|
-
return
|
|
3944
|
-
if (
|
|
3941
|
+
return function(v, W) {
|
|
3942
|
+
if (W && (ks(W) === "object" || typeof W == "function"))
|
|
3943
|
+
return W;
|
|
3944
|
+
if (W !== void 0)
|
|
3945
3945
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
3946
3946
|
return function(w) {
|
|
3947
3947
|
if (w === void 0)
|
|
@@ -3952,8 +3952,8 @@ var aR = v4((HT, j2) => {
|
|
|
3952
3952
|
});
|
|
3953
3953
|
function A(c, l) {
|
|
3954
3954
|
var g;
|
|
3955
|
-
return function(v,
|
|
3956
|
-
if (!(v instanceof
|
|
3955
|
+
return function(v, W) {
|
|
3956
|
+
if (!(v instanceof W))
|
|
3957
3957
|
throw new TypeError("Cannot call a class as a function");
|
|
3958
3958
|
}(this, A), (g = M.call(this, c)).serializationType = n0.EPSILON, g.isEpsilon = !0, g.outermostPrecedenceReturn = l, g;
|
|
3959
3959
|
}
|
|
@@ -4022,10 +4022,10 @@ var aR = v4((HT, j2) => {
|
|
|
4022
4022
|
c = Reflect.construct(l, arguments, g);
|
|
4023
4023
|
} else
|
|
4024
4024
|
c = l.apply(this, arguments);
|
|
4025
|
-
return function(v,
|
|
4026
|
-
if (
|
|
4027
|
-
return
|
|
4028
|
-
if (
|
|
4025
|
+
return function(v, W) {
|
|
4026
|
+
if (W && (ws(W) === "object" || typeof W == "function"))
|
|
4027
|
+
return W;
|
|
4028
|
+
if (W !== void 0)
|
|
4029
4029
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4030
4030
|
return function(w) {
|
|
4031
4031
|
if (w === void 0)
|
|
@@ -4036,8 +4036,8 @@ var aR = v4((HT, j2) => {
|
|
|
4036
4036
|
});
|
|
4037
4037
|
function A(c, l, g) {
|
|
4038
4038
|
var v;
|
|
4039
|
-
return function(
|
|
4040
|
-
if (!(
|
|
4039
|
+
return function(W, w) {
|
|
4040
|
+
if (!(W instanceof w))
|
|
4041
4041
|
throw new TypeError("Cannot call a class as a function");
|
|
4042
4042
|
}(this, A), (v = M.call(this)).ruleIndex = c === void 0 ? -1 : c, v.predIndex = l === void 0 ? -1 : l, v.isCtxDependent = g !== void 0 && g, v;
|
|
4043
4043
|
}
|
|
@@ -4112,10 +4112,10 @@ var aR = v4((HT, j2) => {
|
|
|
4112
4112
|
c = Reflect.construct(l, arguments, g);
|
|
4113
4113
|
} else
|
|
4114
4114
|
c = l.apply(this, arguments);
|
|
4115
|
-
return function(v,
|
|
4116
|
-
if (
|
|
4117
|
-
return
|
|
4118
|
-
if (
|
|
4115
|
+
return function(v, W) {
|
|
4116
|
+
if (W && (Bs(W) === "object" || typeof W == "function"))
|
|
4117
|
+
return W;
|
|
4118
|
+
if (W !== void 0)
|
|
4119
4119
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4120
4120
|
return function(w) {
|
|
4121
4121
|
if (w === void 0)
|
|
@@ -4125,11 +4125,11 @@ var aR = v4((HT, j2) => {
|
|
|
4125
4125
|
}(this, c);
|
|
4126
4126
|
});
|
|
4127
4127
|
function A(c, l, g, v) {
|
|
4128
|
-
var
|
|
4128
|
+
var W;
|
|
4129
4129
|
return function(w, b0) {
|
|
4130
4130
|
if (!(w instanceof b0))
|
|
4131
4131
|
throw new TypeError("Cannot call a class as a function");
|
|
4132
|
-
}(this, A), (
|
|
4132
|
+
}(this, A), (W = M.call(this, c)).serializationType = n0.PREDICATE, W.ruleIndex = l, W.predIndex = g, W.isCtxDependent = v, W.isEpsilon = !0, W;
|
|
4133
4133
|
}
|
|
4134
4134
|
return a = A, (d = [{ key: "matches", value: function(c, l, g) {
|
|
4135
4135
|
return !1;
|
|
@@ -4198,10 +4198,10 @@ var aR = v4((HT, j2) => {
|
|
|
4198
4198
|
c = Reflect.construct(l, arguments, g);
|
|
4199
4199
|
} else
|
|
4200
4200
|
c = l.apply(this, arguments);
|
|
4201
|
-
return function(v,
|
|
4202
|
-
if (
|
|
4203
|
-
return
|
|
4204
|
-
if (
|
|
4201
|
+
return function(v, W) {
|
|
4202
|
+
if (W && (Ds(W) === "object" || typeof W == "function"))
|
|
4203
|
+
return W;
|
|
4204
|
+
if (W !== void 0)
|
|
4205
4205
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4206
4206
|
return function(w) {
|
|
4207
4207
|
if (w === void 0)
|
|
@@ -4291,10 +4291,10 @@ var aR = v4((HT, j2) => {
|
|
|
4291
4291
|
c = Reflect.construct(l, arguments, g);
|
|
4292
4292
|
} else
|
|
4293
4293
|
c = l.apply(this, arguments);
|
|
4294
|
-
return function(v,
|
|
4295
|
-
if (
|
|
4296
|
-
return
|
|
4297
|
-
if (
|
|
4294
|
+
return function(v, W) {
|
|
4295
|
+
if (W && (Is(W) === "object" || typeof W == "function"))
|
|
4296
|
+
return W;
|
|
4297
|
+
if (W !== void 0)
|
|
4298
4298
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4299
4299
|
return function(w) {
|
|
4300
4300
|
if (w === void 0)
|
|
@@ -4305,8 +4305,8 @@ var aR = v4((HT, j2) => {
|
|
|
4305
4305
|
});
|
|
4306
4306
|
function A(c, l) {
|
|
4307
4307
|
var g;
|
|
4308
|
-
return function(v,
|
|
4309
|
-
if (!(v instanceof
|
|
4308
|
+
return function(v, W) {
|
|
4309
|
+
if (!(v instanceof W))
|
|
4310
4310
|
throw new TypeError("Cannot call a class as a function");
|
|
4311
4311
|
}(this, A), (g = M.call(this, c)).serializationType = n0.PRECEDENCE, g.precedence = l, g.isEpsilon = !0, g;
|
|
4312
4312
|
}
|
|
@@ -4454,10 +4454,10 @@ var aR = v4((HT, j2) => {
|
|
|
4454
4454
|
c = Reflect.construct(l, arguments, g);
|
|
4455
4455
|
} else
|
|
4456
4456
|
c = l.apply(this, arguments);
|
|
4457
|
-
return function(v,
|
|
4458
|
-
if (
|
|
4459
|
-
return
|
|
4460
|
-
if (
|
|
4457
|
+
return function(v, W) {
|
|
4458
|
+
if (W && (Ps(W) === "object" || typeof W == "function"))
|
|
4459
|
+
return W;
|
|
4460
|
+
if (W !== void 0)
|
|
4461
4461
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4462
4462
|
return function(w) {
|
|
4463
4463
|
if (w === void 0)
|
|
@@ -4538,10 +4538,10 @@ var aR = v4((HT, j2) => {
|
|
|
4538
4538
|
c = Reflect.construct(l, arguments, g);
|
|
4539
4539
|
} else
|
|
4540
4540
|
c = l.apply(this, arguments);
|
|
4541
|
-
return function(v,
|
|
4542
|
-
if (
|
|
4543
|
-
return
|
|
4544
|
-
if (
|
|
4541
|
+
return function(v, W) {
|
|
4542
|
+
if (W && (Fs(W) === "object" || typeof W == "function"))
|
|
4543
|
+
return W;
|
|
4544
|
+
if (W !== void 0)
|
|
4545
4545
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4546
4546
|
return function(w) {
|
|
4547
4547
|
if (w === void 0)
|
|
@@ -4626,10 +4626,10 @@ var aR = v4((HT, j2) => {
|
|
|
4626
4626
|
c = Reflect.construct(l, arguments, g);
|
|
4627
4627
|
} else
|
|
4628
4628
|
c = l.apply(this, arguments);
|
|
4629
|
-
return function(v,
|
|
4630
|
-
if (
|
|
4631
|
-
return
|
|
4632
|
-
if (
|
|
4629
|
+
return function(v, W) {
|
|
4630
|
+
if (W && (Xs(W) === "object" || typeof W == "function"))
|
|
4631
|
+
return W;
|
|
4632
|
+
if (W !== void 0)
|
|
4633
4633
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4634
4634
|
return function(w) {
|
|
4635
4635
|
if (w === void 0)
|
|
@@ -4640,8 +4640,8 @@ var aR = v4((HT, j2) => {
|
|
|
4640
4640
|
});
|
|
4641
4641
|
function A(c, l) {
|
|
4642
4642
|
var g;
|
|
4643
|
-
return function(v,
|
|
4644
|
-
if (!(v instanceof
|
|
4643
|
+
return function(v, W) {
|
|
4644
|
+
if (!(v instanceof W))
|
|
4645
4645
|
throw new TypeError("Cannot call a class as a function");
|
|
4646
4646
|
}(this, A), (g = M.call(this, 1)).ruleIndex = c, g.actionIndex = l, g.isPositionDependent = !0, g;
|
|
4647
4647
|
}
|
|
@@ -4712,10 +4712,10 @@ var aR = v4((HT, j2) => {
|
|
|
4712
4712
|
c = Reflect.construct(l, arguments, g);
|
|
4713
4713
|
} else
|
|
4714
4714
|
c = l.apply(this, arguments);
|
|
4715
|
-
return function(v,
|
|
4716
|
-
if (
|
|
4717
|
-
return
|
|
4718
|
-
if (
|
|
4715
|
+
return function(v, W) {
|
|
4716
|
+
if (W && ($s(W) === "object" || typeof W == "function"))
|
|
4717
|
+
return W;
|
|
4718
|
+
if (W !== void 0)
|
|
4719
4719
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4720
4720
|
return function(w) {
|
|
4721
4721
|
if (w === void 0)
|
|
@@ -4796,10 +4796,10 @@ var aR = v4((HT, j2) => {
|
|
|
4796
4796
|
c = Reflect.construct(l, arguments, g);
|
|
4797
4797
|
} else
|
|
4798
4798
|
c = l.apply(this, arguments);
|
|
4799
|
-
return function(v,
|
|
4800
|
-
if (
|
|
4801
|
-
return
|
|
4802
|
-
if (
|
|
4799
|
+
return function(v, W) {
|
|
4800
|
+
if (W && (Us(W) === "object" || typeof W == "function"))
|
|
4801
|
+
return W;
|
|
4802
|
+
if (W !== void 0)
|
|
4803
4803
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4804
4804
|
return function(w) {
|
|
4805
4805
|
if (w === void 0)
|
|
@@ -4884,10 +4884,10 @@ var aR = v4((HT, j2) => {
|
|
|
4884
4884
|
c = Reflect.construct(l, arguments, g);
|
|
4885
4885
|
} else
|
|
4886
4886
|
c = l.apply(this, arguments);
|
|
4887
|
-
return function(v,
|
|
4888
|
-
if (
|
|
4889
|
-
return
|
|
4890
|
-
if (
|
|
4887
|
+
return function(v, W) {
|
|
4888
|
+
if (W && (Hs(W) === "object" || typeof W == "function"))
|
|
4889
|
+
return W;
|
|
4890
|
+
if (W !== void 0)
|
|
4891
4891
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4892
4892
|
return function(w) {
|
|
4893
4893
|
if (w === void 0)
|
|
@@ -4972,10 +4972,10 @@ var aR = v4((HT, j2) => {
|
|
|
4972
4972
|
c = Reflect.construct(l, arguments, g);
|
|
4973
4973
|
} else
|
|
4974
4974
|
c = l.apply(this, arguments);
|
|
4975
|
-
return function(v,
|
|
4976
|
-
if (
|
|
4977
|
-
return
|
|
4978
|
-
if (
|
|
4975
|
+
return function(v, W) {
|
|
4976
|
+
if (W && (Vs(W) === "object" || typeof W == "function"))
|
|
4977
|
+
return W;
|
|
4978
|
+
if (W !== void 0)
|
|
4979
4979
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
4980
4980
|
return function(w) {
|
|
4981
4981
|
if (w === void 0)
|
|
@@ -5056,10 +5056,10 @@ var aR = v4((HT, j2) => {
|
|
|
5056
5056
|
c = Reflect.construct(l, arguments, g);
|
|
5057
5057
|
} else
|
|
5058
5058
|
c = l.apply(this, arguments);
|
|
5059
|
-
return function(v,
|
|
5060
|
-
if (
|
|
5061
|
-
return
|
|
5062
|
-
if (
|
|
5059
|
+
return function(v, W) {
|
|
5060
|
+
if (W && (js(W) === "object" || typeof W == "function"))
|
|
5061
|
+
return W;
|
|
5062
|
+
if (W !== void 0)
|
|
5063
5063
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
5064
5064
|
return function(w) {
|
|
5065
5065
|
if (w === void 0)
|
|
@@ -5151,7 +5151,7 @@ var aR = v4((HT, j2) => {
|
|
|
5151
5151
|
var u = this.readInt(), O = this.readInt();
|
|
5152
5152
|
return new Ue(u, O);
|
|
5153
5153
|
} }, { key: "readStates", value: function(u, O) {
|
|
5154
|
-
for (var M, A, c, l = [], g = [], v = this.readInt(),
|
|
5154
|
+
for (var M, A, c, l = [], g = [], v = this.readInt(), W = 0; W < v; W++) {
|
|
5155
5155
|
var w = this.readInt();
|
|
5156
5156
|
if (w !== g0.INVALID_TYPE) {
|
|
5157
5157
|
var b0 = this.readInt();
|
|
@@ -5203,15 +5203,15 @@ var aR = v4((HT, j2) => {
|
|
|
5203
5203
|
var g = this.readInt();
|
|
5204
5204
|
this.readInt() !== 0 && l.addOne(-1);
|
|
5205
5205
|
for (var v = 0; v < g; v++) {
|
|
5206
|
-
var
|
|
5207
|
-
l.addRange(
|
|
5206
|
+
var W = M(), w = M();
|
|
5207
|
+
l.addRange(W, w);
|
|
5208
5208
|
}
|
|
5209
5209
|
}
|
|
5210
5210
|
} }, { key: "readEdges", value: function(u, O) {
|
|
5211
5211
|
var M, A, c, l, g, v = this.readInt();
|
|
5212
5212
|
for (M = 0; M < v; M++) {
|
|
5213
|
-
var
|
|
5214
|
-
l = this.edgeFactory(u, b0,
|
|
5213
|
+
var W = this.readInt(), w = this.readInt(), b0 = this.readInt(), D0 = this.readInt(), B0 = this.readInt(), i1 = this.readInt();
|
|
5214
|
+
l = this.edgeFactory(u, b0, W, w, D0, B0, i1, O), u.states[W].addTransition(l);
|
|
5215
5215
|
}
|
|
5216
5216
|
for (M = 0; M < u.states.length; M++)
|
|
5217
5217
|
for (c = u.states[M], A = 0; A < c.transitions.length; A++) {
|
|
@@ -5274,8 +5274,8 @@ var aR = v4((HT, j2) => {
|
|
|
5274
5274
|
v = u.ruleToStopState[O];
|
|
5275
5275
|
for (M = 0; M < u.states.length; M++) {
|
|
5276
5276
|
A = u.states[M];
|
|
5277
|
-
for (var
|
|
5278
|
-
var w = A.transitions[
|
|
5277
|
+
for (var W = 0; W < A.transitions.length; W++) {
|
|
5278
|
+
var w = A.transitions[W];
|
|
5279
5279
|
w !== g && w.target === v && (w.target = l);
|
|
5280
5280
|
}
|
|
5281
5281
|
}
|
|
@@ -5323,28 +5323,28 @@ var aR = v4((HT, j2) => {
|
|
|
5323
5323
|
} }, { key: "readInt32", value: function() {
|
|
5324
5324
|
return this.readInt() | this.readInt() << 16;
|
|
5325
5325
|
} }, { key: "edgeFactory", value: function(u, O, M, A, c, l, g, v) {
|
|
5326
|
-
var
|
|
5326
|
+
var W = u.states[A];
|
|
5327
5327
|
switch (O) {
|
|
5328
5328
|
case n0.EPSILON:
|
|
5329
|
-
return new ra(
|
|
5329
|
+
return new ra(W);
|
|
5330
5330
|
case n0.RANGE:
|
|
5331
|
-
return new nA(
|
|
5331
|
+
return new nA(W, g !== 0 ? t.EOF : c, l);
|
|
5332
5332
|
case n0.RULE:
|
|
5333
|
-
return new d1(u.states[c], l, g,
|
|
5333
|
+
return new d1(u.states[c], l, g, W);
|
|
5334
5334
|
case n0.PREDICATE:
|
|
5335
|
-
return new yh(
|
|
5335
|
+
return new yh(W, c, l, g !== 0);
|
|
5336
5336
|
case n0.PRECEDENCE:
|
|
5337
|
-
return new pA(
|
|
5337
|
+
return new pA(W, c);
|
|
5338
5338
|
case n0.ATOM:
|
|
5339
|
-
return new Gu(
|
|
5339
|
+
return new Gu(W, g !== 0 ? t.EOF : c);
|
|
5340
5340
|
case n0.ACTION:
|
|
5341
|
-
return new mh(
|
|
5341
|
+
return new mh(W, c, l, g !== 0);
|
|
5342
5342
|
case n0.SET:
|
|
5343
|
-
return new Or(
|
|
5343
|
+
return new Or(W, v[c]);
|
|
5344
5344
|
case n0.NOT_SET:
|
|
5345
|
-
return new Te(
|
|
5345
|
+
return new Te(W, v[c]);
|
|
5346
5346
|
case n0.WILDCARD:
|
|
5347
|
-
return new at(
|
|
5347
|
+
return new at(W);
|
|
5348
5348
|
default:
|
|
5349
5349
|
throw "The specified transition type: " + O + " is not valid.";
|
|
5350
5350
|
}
|
|
@@ -5506,10 +5506,10 @@ var aR = v4((HT, j2) => {
|
|
|
5506
5506
|
c = Reflect.construct(l, arguments, g);
|
|
5507
5507
|
} else
|
|
5508
5508
|
c = l.apply(this, arguments);
|
|
5509
|
-
return function(v,
|
|
5510
|
-
if (
|
|
5511
|
-
return
|
|
5512
|
-
if (
|
|
5509
|
+
return function(v, W) {
|
|
5510
|
+
if (W && (Gs(W) === "object" || typeof W == "function"))
|
|
5511
|
+
return W;
|
|
5512
|
+
if (W !== void 0)
|
|
5513
5513
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
5514
5514
|
return function(w) {
|
|
5515
5515
|
if (w === void 0)
|
|
@@ -5524,8 +5524,8 @@ var aR = v4((HT, j2) => {
|
|
|
5524
5524
|
throw new TypeError("Cannot call a class as a function");
|
|
5525
5525
|
}(this, A), M.call(this);
|
|
5526
5526
|
}
|
|
5527
|
-
return a = A, (d = [{ key: "syntaxError", value: function(c, l, g, v,
|
|
5528
|
-
console.error("line " + g + ":" + v + " " +
|
|
5527
|
+
return a = A, (d = [{ key: "syntaxError", value: function(c, l, g, v, W, w) {
|
|
5528
|
+
console.error("line " + g + ":" + v + " " + W);
|
|
5529
5529
|
} }]) && WA(a.prototype, d), Object.defineProperty(a, "prototype", { writable: !1 }), A;
|
|
5530
5530
|
}(pa);
|
|
5531
5531
|
function Ks(h) {
|
|
@@ -5611,21 +5611,21 @@ var aR = v4((HT, j2) => {
|
|
|
5611
5611
|
throw "delegates";
|
|
5612
5612
|
return l.delegates = c, Eh(l, Rh(l));
|
|
5613
5613
|
}
|
|
5614
|
-
return a = A, d = [{ key: "syntaxError", value: function(c, l, g, v,
|
|
5614
|
+
return a = A, d = [{ key: "syntaxError", value: function(c, l, g, v, W, w) {
|
|
5615
5615
|
this.delegates.map(function(b0) {
|
|
5616
|
-
return b0.syntaxError(c, l, g, v,
|
|
5616
|
+
return b0.syntaxError(c, l, g, v, W, w);
|
|
5617
5617
|
});
|
|
5618
|
-
} }, { key: "reportAmbiguity", value: function(c, l, g, v,
|
|
5618
|
+
} }, { key: "reportAmbiguity", value: function(c, l, g, v, W, w, b0) {
|
|
5619
5619
|
this.delegates.map(function(D0) {
|
|
5620
|
-
return D0.reportAmbiguity(c, l, g, v,
|
|
5620
|
+
return D0.reportAmbiguity(c, l, g, v, W, w, b0);
|
|
5621
5621
|
});
|
|
5622
|
-
} }, { key: "reportAttemptingFullContext", value: function(c, l, g, v,
|
|
5622
|
+
} }, { key: "reportAttemptingFullContext", value: function(c, l, g, v, W, w) {
|
|
5623
5623
|
this.delegates.map(function(b0) {
|
|
5624
|
-
return b0.reportAttemptingFullContext(c, l, g, v,
|
|
5624
|
+
return b0.reportAttemptingFullContext(c, l, g, v, W, w);
|
|
5625
5625
|
});
|
|
5626
|
-
} }, { key: "reportContextSensitivity", value: function(c, l, g, v,
|
|
5626
|
+
} }, { key: "reportContextSensitivity", value: function(c, l, g, v, W, w) {
|
|
5627
5627
|
this.delegates.map(function(b0) {
|
|
5628
|
-
return b0.reportContextSensitivity(c, l, g, v,
|
|
5628
|
+
return b0.reportContextSensitivity(c, l, g, v, W, w);
|
|
5629
5629
|
});
|
|
5630
5630
|
} }], d && vA(a.prototype, d), Object.defineProperty(a, "prototype", { writable: !1 }), A;
|
|
5631
5631
|
}(pa);
|
|
@@ -5782,10 +5782,10 @@ var aR = v4((HT, j2) => {
|
|
|
5782
5782
|
c = Reflect.construct(l, arguments, g);
|
|
5783
5783
|
} else
|
|
5784
5784
|
c = l.apply(this, arguments);
|
|
5785
|
-
return function(v,
|
|
5786
|
-
if (
|
|
5787
|
-
return
|
|
5788
|
-
if (
|
|
5785
|
+
return function(v, W) {
|
|
5786
|
+
if (W && (Ys(W) === "object" || typeof W == "function"))
|
|
5787
|
+
return W;
|
|
5788
|
+
if (W !== void 0)
|
|
5789
5789
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
5790
5790
|
return function(w) {
|
|
5791
5791
|
if (w === void 0)
|
|
@@ -5794,12 +5794,12 @@ var aR = v4((HT, j2) => {
|
|
|
5794
5794
|
}(v);
|
|
5795
5795
|
}(this, c);
|
|
5796
5796
|
});
|
|
5797
|
-
function A(c, l, g, v,
|
|
5797
|
+
function A(c, l, g, v, W) {
|
|
5798
5798
|
var w;
|
|
5799
5799
|
return function(b0, D0) {
|
|
5800
5800
|
if (!(b0 instanceof D0))
|
|
5801
5801
|
throw new TypeError("Cannot call a class as a function");
|
|
5802
|
-
}(this, A), (w = M.call(this)).source = c !== void 0 ? c : A.EMPTY_SOURCE, w.type = l !== void 0 ? l : null, w.channel = g !== void 0 ? g : t.DEFAULT_CHANNEL, w.start = v !== void 0 ? v : -1, w.stop =
|
|
5802
|
+
}(this, A), (w = M.call(this)).source = c !== void 0 ? c : A.EMPTY_SOURCE, w.type = l !== void 0 ? l : null, w.channel = g !== void 0 ? g : t.DEFAULT_CHANNEL, w.start = v !== void 0 ? v : -1, w.stop = W !== void 0 ? W : -1, w.tokenIndex = -1, w.source[0] !== null ? (w.line = c[0].line, w.column = c[0].column) : w.column = -1, w;
|
|
5803
5803
|
}
|
|
5804
5804
|
return a = A, (d = [{ key: "clone", value: function() {
|
|
5805
5805
|
var c = new A(this.source, this.type, this.channel, this.start, this.stop);
|
|
@@ -5905,9 +5905,9 @@ var aR = v4((HT, j2) => {
|
|
|
5905
5905
|
var A;
|
|
5906
5906
|
return Th(this, O), (A = u.call(this)).copyText = M !== void 0 && M, A;
|
|
5907
5907
|
}
|
|
5908
|
-
return vh(O, [{ key: "create", value: function(M, A, c, l, g, v,
|
|
5908
|
+
return vh(O, [{ key: "create", value: function(M, A, c, l, g, v, W, w) {
|
|
5909
5909
|
var b0 = new la(M, A, l, g, v);
|
|
5910
|
-
return b0.line =
|
|
5910
|
+
return b0.line = W, b0.column = w, c !== null ? b0.text = c : this.copyText && M[1] !== null && (b0.text = M[1].getText(g, v)), b0;
|
|
5911
5911
|
} }, { key: "createThin", value: function(M, A) {
|
|
5912
5912
|
var c = new la(null, M);
|
|
5913
5913
|
return c.text = A, c;
|
|
@@ -6008,10 +6008,10 @@ var aR = v4((HT, j2) => {
|
|
|
6008
6008
|
c = Reflect.construct(l, arguments, g);
|
|
6009
6009
|
} else
|
|
6010
6010
|
c = l.apply(this, arguments);
|
|
6011
|
-
return function(v,
|
|
6012
|
-
if (
|
|
6013
|
-
return
|
|
6014
|
-
if (
|
|
6011
|
+
return function(v, W) {
|
|
6012
|
+
if (W && (Qs(W) === "object" || typeof W == "function"))
|
|
6013
|
+
return W;
|
|
6014
|
+
if (W !== void 0)
|
|
6015
6015
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
6016
6016
|
return xh(v);
|
|
6017
6017
|
}(this, c);
|
|
@@ -6088,10 +6088,10 @@ var aR = v4((HT, j2) => {
|
|
|
6088
6088
|
c = Reflect.construct(l, arguments, g);
|
|
6089
6089
|
} else
|
|
6090
6090
|
c = l.apply(this, arguments);
|
|
6091
|
-
return function(v,
|
|
6092
|
-
if (
|
|
6093
|
-
return
|
|
6094
|
-
if (
|
|
6091
|
+
return function(v, W) {
|
|
6092
|
+
if (W && (Zs(W) === "object" || typeof W == "function"))
|
|
6093
|
+
return W;
|
|
6094
|
+
if (W !== void 0)
|
|
6095
6095
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
6096
6096
|
return function(w) {
|
|
6097
6097
|
if (w === void 0)
|
|
@@ -6101,11 +6101,11 @@ var aR = v4((HT, j2) => {
|
|
|
6101
6101
|
}(this, c);
|
|
6102
6102
|
});
|
|
6103
6103
|
function A(c, l, g, v) {
|
|
6104
|
-
var
|
|
6104
|
+
var W;
|
|
6105
6105
|
return function(w, b0) {
|
|
6106
6106
|
if (!(w instanceof b0))
|
|
6107
6107
|
throw new TypeError("Cannot call a class as a function");
|
|
6108
|
-
}(this, A), (
|
|
6108
|
+
}(this, A), (W = M.call(this, { message: "", recognizer: c, input: l, ctx: null })).startIndex = g, W.deadEndConfigs = v, W;
|
|
6109
6109
|
}
|
|
6110
6110
|
return a = A, (d = [{ key: "toString", value: function() {
|
|
6111
6111
|
var c = "";
|
|
@@ -6176,10 +6176,10 @@ var aR = v4((HT, j2) => {
|
|
|
6176
6176
|
c = Reflect.construct(l, arguments, g);
|
|
6177
6177
|
} else
|
|
6178
6178
|
c = l.apply(this, arguments);
|
|
6179
|
-
return function(v,
|
|
6180
|
-
if (
|
|
6181
|
-
return
|
|
6182
|
-
if (
|
|
6179
|
+
return function(v, W) {
|
|
6180
|
+
if (W && (eo(W) === "object" || typeof W == "function"))
|
|
6181
|
+
return W;
|
|
6182
|
+
if (W !== void 0)
|
|
6183
6183
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
6184
6184
|
return Nh(v);
|
|
6185
6185
|
}(this, c);
|
|
@@ -6252,8 +6252,8 @@ var aR = v4((HT, j2) => {
|
|
|
6252
6252
|
c.push(l), l = this.nextToken();
|
|
6253
6253
|
return c;
|
|
6254
6254
|
} }, { key: "notifyListeners", value: function(c) {
|
|
6255
|
-
var l = this._tokenStartCharIndex, g = this._input.index, v = this._input.getText(l, g),
|
|
6256
|
-
this.getErrorListenerDispatch().syntaxError(this, null, this._tokenStartLine, this._tokenStartColumn,
|
|
6255
|
+
var l = this._tokenStartCharIndex, g = this._input.index, v = this._input.getText(l, g), W = "token recognition error at: '" + this.getErrorDisplay(v) + "'";
|
|
6256
|
+
this.getErrorListenerDispatch().syntaxError(this, null, this._tokenStartLine, this._tokenStartColumn, W, c);
|
|
6257
6257
|
} }, { key: "getErrorDisplay", value: function(c) {
|
|
6258
6258
|
for (var l = [], g = 0; g < c.length; g++)
|
|
6259
6259
|
l.push(c[g]);
|
|
@@ -6529,10 +6529,10 @@ var aR = v4((HT, j2) => {
|
|
|
6529
6529
|
return v;
|
|
6530
6530
|
if (v !== void 0)
|
|
6531
6531
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
6532
|
-
return function(
|
|
6533
|
-
if (
|
|
6532
|
+
return function(W) {
|
|
6533
|
+
if (W === void 0)
|
|
6534
6534
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6535
|
-
return
|
|
6535
|
+
return W;
|
|
6536
6536
|
}(g);
|
|
6537
6537
|
}(this, A);
|
|
6538
6538
|
});
|
|
@@ -6633,8 +6633,8 @@ var aR = v4((HT, j2) => {
|
|
|
6633
6633
|
});
|
|
6634
6634
|
function A(c, l) {
|
|
6635
6635
|
var g;
|
|
6636
|
-
(function(
|
|
6637
|
-
if (!(
|
|
6636
|
+
(function(W, w) {
|
|
6637
|
+
if (!(W instanceof w))
|
|
6638
6638
|
throw new TypeError("Cannot call a class as a function");
|
|
6639
6639
|
})(this, A), g = M.call(this, c, l);
|
|
6640
6640
|
var v = c.lexerActionExecutor || null;
|
|
@@ -6707,10 +6707,10 @@ var aR = v4((HT, j2) => {
|
|
|
6707
6707
|
c = Reflect.construct(l, arguments, g);
|
|
6708
6708
|
} else
|
|
6709
6709
|
c = l.apply(this, arguments);
|
|
6710
|
-
return function(v,
|
|
6711
|
-
if (
|
|
6712
|
-
return
|
|
6713
|
-
if (
|
|
6710
|
+
return function(v, W) {
|
|
6711
|
+
if (W && (ro(W) === "object" || typeof W == "function"))
|
|
6712
|
+
return W;
|
|
6713
|
+
if (W !== void 0)
|
|
6714
6714
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
6715
6715
|
return function(w) {
|
|
6716
6716
|
if (w === void 0)
|
|
@@ -6721,8 +6721,8 @@ var aR = v4((HT, j2) => {
|
|
|
6721
6721
|
});
|
|
6722
6722
|
function A(c, l) {
|
|
6723
6723
|
var g;
|
|
6724
|
-
return function(v,
|
|
6725
|
-
if (!(v instanceof
|
|
6724
|
+
return function(v, W) {
|
|
6725
|
+
if (!(v instanceof W))
|
|
6726
6726
|
throw new TypeError("Cannot call a class as a function");
|
|
6727
6727
|
}(this, A), (g = M.call(this, l.actionType)).offset = c, g.action = l, g.isPositionDependent = !0, g;
|
|
6728
6728
|
}
|
|
@@ -6779,8 +6779,8 @@ var aR = v4((HT, j2) => {
|
|
|
6779
6779
|
for (var g = 0; g < this.lexerActions.length; g++) {
|
|
6780
6780
|
var v = this.lexerActions[g];
|
|
6781
6781
|
if (v instanceof xl) {
|
|
6782
|
-
var
|
|
6783
|
-
M.seek(A +
|
|
6782
|
+
var W = v.offset;
|
|
6783
|
+
M.seek(A + W), v = v.action, c = A + W !== l;
|
|
6784
6784
|
} else
|
|
6785
6785
|
v.isPositionDependent && (M.seek(l), c = !1);
|
|
6786
6786
|
v.execute(O);
|
|
@@ -6919,8 +6919,8 @@ var aR = v4((HT, j2) => {
|
|
|
6919
6919
|
l.hasSemanticContext = !1;
|
|
6920
6920
|
var v = this.addDFAState(l);
|
|
6921
6921
|
g || (this.decisionToDFA[this.mode].s0 = v);
|
|
6922
|
-
var
|
|
6923
|
-
return O.debug && console.log("DFA after matchATN: " + this.decisionToDFA[c].toLexerString()),
|
|
6922
|
+
var W = this.execATN(M, v);
|
|
6923
|
+
return O.debug && console.log("DFA after matchATN: " + this.decisionToDFA[c].toLexerString()), W;
|
|
6924
6924
|
} }, { key: "execATN", value: function(M, A) {
|
|
6925
6925
|
O.debug && console.log("start state closure=" + A.configs), A.isAcceptState && this.captureSimState(this.prevAccept, M, A);
|
|
6926
6926
|
for (var c = M.LA(1), l = A; ; ) {
|
|
@@ -6949,17 +6949,17 @@ var aR = v4((HT, j2) => {
|
|
|
6949
6949
|
throw new ql(this.recog, A, this.startIndex, c);
|
|
6950
6950
|
} }, { key: "getReachableConfigSet", value: function(M, A, c, l) {
|
|
6951
6951
|
for (var g = Ue.INVALID_ALT_NUMBER, v = 0; v < A.items.length; v++) {
|
|
6952
|
-
var
|
|
6953
|
-
if (!w || !
|
|
6952
|
+
var W = A.items[v], w = W.alt === g;
|
|
6953
|
+
if (!w || !W.passedThroughNonGreedyDecision) {
|
|
6954
6954
|
O.debug && console.log(`testing %s at %s
|
|
6955
|
-
`, this.getTokenName(l),
|
|
6956
|
-
for (var b0 = 0; b0 <
|
|
6957
|
-
var D0 =
|
|
6955
|
+
`, this.getTokenName(l), W.toString(this.recog, !0));
|
|
6956
|
+
for (var b0 = 0; b0 < W.state.transitions.length; b0++) {
|
|
6957
|
+
var D0 = W.state.transitions[b0], B0 = this.getReachableTarget(D0, l);
|
|
6958
6958
|
if (B0 !== null) {
|
|
6959
|
-
var i1 =
|
|
6959
|
+
var i1 = W.lexerActionExecutor;
|
|
6960
6960
|
i1 !== null && (i1 = i1.fixOffsetBeforeMatch(M.index - this.startIndex));
|
|
6961
|
-
var T1 = l === t.EOF, p1 = new mr({ state: B0, lexerActionExecutor: i1 },
|
|
6962
|
-
this.closure(M, p1, c, w, !0, T1) && (g =
|
|
6961
|
+
var T1 = l === t.EOF, p1 = new mr({ state: B0, lexerActionExecutor: i1 }, W);
|
|
6962
|
+
this.closure(M, p1, c, w, !0, T1) && (g = W.alt);
|
|
6963
6963
|
}
|
|
6964
6964
|
}
|
|
6965
6965
|
}
|
|
@@ -6971,12 +6971,12 @@ var aR = v4((HT, j2) => {
|
|
|
6971
6971
|
return M.matches(A, 0, wt.MAX_CHAR_VALUE) ? M.target : null;
|
|
6972
6972
|
} }, { key: "computeStartState", value: function(M, A) {
|
|
6973
6973
|
for (var c = g1.EMPTY, l = new Sh(), g = 0; g < A.transitions.length; g++) {
|
|
6974
|
-
var v = A.transitions[g].target,
|
|
6975
|
-
this.closure(M,
|
|
6974
|
+
var v = A.transitions[g].target, W = new mr({ state: v, alt: g + 1, context: c }, null);
|
|
6975
|
+
this.closure(M, W, l, !1, !1, !1);
|
|
6976
6976
|
}
|
|
6977
6977
|
return l;
|
|
6978
6978
|
} }, { key: "closure", value: function(M, A, c, l, g, v) {
|
|
6979
|
-
var
|
|
6979
|
+
var W = null;
|
|
6980
6980
|
if (O.debug && console.log("closure(" + A.toString(this.recog, !0) + ")"), A.state instanceof K1) {
|
|
6981
6981
|
if (O.debug && (this.recog !== null ? console.log(`closure at %s rule stop %s
|
|
6982
6982
|
`, this.recog.ruleNames[A.state.ruleIndex], A) : console.log(`closure at rule stop %s
|
|
@@ -6989,7 +6989,7 @@ var aR = v4((HT, j2) => {
|
|
|
6989
6989
|
for (var w = 0; w < A.context.length; w++)
|
|
6990
6990
|
if (A.context.getReturnState(w) !== g1.EMPTY_RETURN_STATE) {
|
|
6991
6991
|
var b0 = A.context.getParent(w), D0 = this.atn.states[A.context.getReturnState(w)];
|
|
6992
|
-
|
|
6992
|
+
W = new mr({ state: D0, context: b0 }, A), l = this.closure(M, W, c, l, g, v);
|
|
6993
6993
|
}
|
|
6994
6994
|
}
|
|
6995
6995
|
return l;
|
|
@@ -6997,39 +6997,39 @@ var aR = v4((HT, j2) => {
|
|
|
6997
6997
|
A.state.epsilonOnlyTransitions || l && A.passedThroughNonGreedyDecision || c.add(A);
|
|
6998
6998
|
for (var B0 = 0; B0 < A.state.transitions.length; B0++) {
|
|
6999
6999
|
var i1 = A.state.transitions[B0];
|
|
7000
|
-
(
|
|
7000
|
+
(W = this.getEpsilonTarget(M, A, i1, c, g, v)) !== null && (l = this.closure(M, W, c, l, g, v));
|
|
7001
7001
|
}
|
|
7002
7002
|
return l;
|
|
7003
7003
|
} }, { key: "getEpsilonTarget", value: function(M, A, c, l, g, v) {
|
|
7004
|
-
var
|
|
7004
|
+
var W = null;
|
|
7005
7005
|
if (c.serializationType === n0.RULE) {
|
|
7006
7006
|
var w = S1.create(A.context, c.followState.stateNumber);
|
|
7007
|
-
|
|
7007
|
+
W = new mr({ state: c.target, context: w }, A);
|
|
7008
7008
|
} else {
|
|
7009
7009
|
if (c.serializationType === n0.PRECEDENCE)
|
|
7010
7010
|
throw "Precedence predicates are not supported in lexers.";
|
|
7011
7011
|
if (c.serializationType === n0.PREDICATE)
|
|
7012
|
-
O.debug && console.log("EVAL rule " + c.ruleIndex + ":" + c.predIndex), l.hasSemanticContext = !0, this.evaluatePredicate(M, c.ruleIndex, c.predIndex, g) && (
|
|
7012
|
+
O.debug && console.log("EVAL rule " + c.ruleIndex + ":" + c.predIndex), l.hasSemanticContext = !0, this.evaluatePredicate(M, c.ruleIndex, c.predIndex, g) && (W = new mr({ state: c.target }, A));
|
|
7013
7013
|
else if (c.serializationType === n0.ACTION)
|
|
7014
7014
|
if (A.context === null || A.context.hasEmptyPath()) {
|
|
7015
7015
|
var b0 = XA.append(A.lexerActionExecutor, this.atn.lexerActions[c.actionIndex]);
|
|
7016
|
-
|
|
7016
|
+
W = new mr({ state: c.target, lexerActionExecutor: b0 }, A);
|
|
7017
7017
|
} else
|
|
7018
|
-
|
|
7018
|
+
W = new mr({ state: c.target }, A);
|
|
7019
7019
|
else
|
|
7020
|
-
c.serializationType === n0.EPSILON ?
|
|
7020
|
+
c.serializationType === n0.EPSILON ? W = new mr({ state: c.target }, A) : c.serializationType !== n0.ATOM && c.serializationType !== n0.RANGE && c.serializationType !== n0.SET || v && c.matches(t.EOF, 0, wt.MAX_CHAR_VALUE) && (W = new mr({ state: c.target }, A));
|
|
7021
7021
|
}
|
|
7022
|
-
return
|
|
7022
|
+
return W;
|
|
7023
7023
|
} }, { key: "evaluatePredicate", value: function(M, A, c, l) {
|
|
7024
7024
|
if (this.recog === null)
|
|
7025
7025
|
return !0;
|
|
7026
7026
|
if (!l)
|
|
7027
7027
|
return this.recog.sempred(null, A, c);
|
|
7028
|
-
var g = this.column, v = this.line,
|
|
7028
|
+
var g = this.column, v = this.line, W = M.index, w = M.mark();
|
|
7029
7029
|
try {
|
|
7030
7030
|
return this.consume(M), this.recog.sempred(null, A, c);
|
|
7031
7031
|
} finally {
|
|
7032
|
-
this.column = g, this.line = v, M.seek(
|
|
7032
|
+
this.column = g, this.line = v, M.seek(W), M.release(w);
|
|
7033
7033
|
}
|
|
7034
7034
|
} }, { key: "captureSimState", value: function(M, A, c) {
|
|
7035
7035
|
M.index = A.index, M.line = this.line, M.column = this.column, M.dfaState = c;
|
|
@@ -7049,9 +7049,9 @@ var aR = v4((HT, j2) => {
|
|
|
7049
7049
|
}
|
|
7050
7050
|
}
|
|
7051
7051
|
c !== null && (A.isAcceptState = !0, A.lexerActionExecutor = c.lexerActionExecutor, A.prediction = this.atn.ruleToTokenType[c.state.ruleIndex]);
|
|
7052
|
-
var v = this.decisionToDFA[this.mode],
|
|
7053
|
-
if (
|
|
7054
|
-
return
|
|
7052
|
+
var v = this.decisionToDFA[this.mode], W = v.states.get(A);
|
|
7053
|
+
if (W !== null)
|
|
7054
|
+
return W;
|
|
7055
7055
|
var w = A;
|
|
7056
7056
|
return w.stateNumber = v.states.length, M.setReadonly(!0), w.configs = M, v.states.add(w), w;
|
|
7057
7057
|
} }, { key: "getDFA", value: function(M) {
|
|
@@ -7278,19 +7278,19 @@ var aR = v4((HT, j2) => {
|
|
|
7278
7278
|
return v;
|
|
7279
7279
|
if (v !== void 0)
|
|
7280
7280
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
7281
|
-
return function(
|
|
7282
|
-
if (
|
|
7281
|
+
return function(W) {
|
|
7282
|
+
if (W === void 0)
|
|
7283
7283
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7284
|
-
return
|
|
7284
|
+
return W;
|
|
7285
7285
|
}(g);
|
|
7286
7286
|
}(this, A);
|
|
7287
7287
|
});
|
|
7288
|
-
function M(A, c, l, g, v,
|
|
7288
|
+
function M(A, c, l, g, v, W) {
|
|
7289
7289
|
var w;
|
|
7290
7290
|
return function(b0, D0) {
|
|
7291
7291
|
if (!(b0 instanceof D0))
|
|
7292
7292
|
throw new TypeError("Cannot call a class as a function");
|
|
7293
|
-
}(this, M),
|
|
7293
|
+
}(this, M), W = W || A._ctx, g = g || A.getCurrentToken(), l = l || A.getCurrentToken(), c = c || A.getInputStream(), (w = O.call(this, { message: "", recognizer: A, input: c, ctx: W })).deadEndConfigs = v, w.startToken = l, w.offendingToken = g, w;
|
|
7294
7294
|
}
|
|
7295
7295
|
return a = M, Object.defineProperty(a, "prototype", { writable: !1 }), a;
|
|
7296
7296
|
}(Gi);
|
|
@@ -7394,10 +7394,10 @@ var aR = v4((HT, j2) => {
|
|
|
7394
7394
|
c = Reflect.construct(l, arguments, g);
|
|
7395
7395
|
} else
|
|
7396
7396
|
c = l.apply(this, arguments);
|
|
7397
|
-
return function(v,
|
|
7398
|
-
if (
|
|
7399
|
-
return
|
|
7400
|
-
if (
|
|
7397
|
+
return function(v, W) {
|
|
7398
|
+
if (W && (oo(W) === "object" || typeof W == "function"))
|
|
7399
|
+
return W;
|
|
7400
|
+
if (W !== void 0)
|
|
7401
7401
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
7402
7402
|
return function(w) {
|
|
7403
7403
|
if (w === void 0)
|
|
@@ -7407,18 +7407,18 @@ var aR = v4((HT, j2) => {
|
|
|
7407
7407
|
}(this, c);
|
|
7408
7408
|
});
|
|
7409
7409
|
function A(c, l, g, v) {
|
|
7410
|
-
var
|
|
7410
|
+
var W;
|
|
7411
7411
|
return function(w, b0) {
|
|
7412
7412
|
if (!(w instanceof b0))
|
|
7413
7413
|
throw new TypeError("Cannot call a class as a function");
|
|
7414
|
-
}(this, A), (
|
|
7414
|
+
}(this, A), (W = M.call(this, l, v)).parser = c, W.decisionToDFA = g, W.predictionMode = dt.LL, W._input = null, W._startIndex = 0, W._outerContext = null, W._dfa = null, W.mergeCache = null, W.debug = !1, W.debug_closure = !1, W.debug_add = !1, W.trace_atn_sim = !1, W.dfa_debug = !1, W.retry_debug = !1, W;
|
|
7415
7415
|
}
|
|
7416
7416
|
return a = A, d = [{ key: "reset", value: function() {
|
|
7417
7417
|
} }, { key: "adaptivePredict", value: function(c, l, g) {
|
|
7418
7418
|
(this.debug || this.trace_atn_sim) && console.log("adaptivePredict decision " + l + " exec LA(1)==" + this.getLookaheadName(c) + " line " + c.LT(1).line + ":" + c.LT(1).column), this._input = c, this._startIndex = c.index, this._outerContext = g;
|
|
7419
7419
|
var v = this.decisionToDFA[l];
|
|
7420
7420
|
this._dfa = v;
|
|
7421
|
-
var
|
|
7421
|
+
var W = c.mark(), w = c.index;
|
|
7422
7422
|
try {
|
|
7423
7423
|
var b0;
|
|
7424
7424
|
if ((b0 = v.precedenceDfa ? v.getPrecedenceStartState(this.parser.getPrecedence()) : v.s0) === null) {
|
|
@@ -7429,9 +7429,9 @@ var aR = v4((HT, j2) => {
|
|
|
7429
7429
|
var B0 = this.execATN(v, b0, c, w, g);
|
|
7430
7430
|
return this.debug && console.log("DFA after predictATN: " + v.toString(this.parser.literalNames, this.parser.symbolicNames)), B0;
|
|
7431
7431
|
} finally {
|
|
7432
|
-
this._dfa = null, this.mergeCache = null, c.seek(w), c.release(
|
|
7432
|
+
this._dfa = null, this.mergeCache = null, c.seek(w), c.release(W);
|
|
7433
7433
|
}
|
|
7434
|
-
} }, { key: "execATN", value: function(c, l, g, v,
|
|
7434
|
+
} }, { key: "execATN", value: function(c, l, g, v, W) {
|
|
7435
7435
|
var w;
|
|
7436
7436
|
(this.debug || this.trace_atn_sim) && console.log("execATN decision " + c.decision + ", DFA state " + l + ", LA(1)==" + this.getLookaheadName(g) + " line " + g.LT(1).line + ":" + g.LT(1).column);
|
|
7437
7437
|
var b0 = l;
|
|
@@ -7439,8 +7439,8 @@ var aR = v4((HT, j2) => {
|
|
|
7439
7439
|
for (var D0 = g.LA(1); ; ) {
|
|
7440
7440
|
var B0 = this.getExistingTargetState(b0, D0);
|
|
7441
7441
|
if (B0 === null && (B0 = this.computeTargetState(c, b0, D0)), B0 === Ar.ERROR) {
|
|
7442
|
-
var i1 = this.noViableAlt(g,
|
|
7443
|
-
if (g.seek(v), (w = this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(b0.configs,
|
|
7442
|
+
var i1 = this.noViableAlt(g, W, b0.configs, v);
|
|
7443
|
+
if (g.seek(v), (w = this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(b0.configs, W)) !== Ue.INVALID_ALT_NUMBER)
|
|
7444
7444
|
return w;
|
|
7445
7445
|
throw i1;
|
|
7446
7446
|
}
|
|
@@ -7449,22 +7449,22 @@ var aR = v4((HT, j2) => {
|
|
|
7449
7449
|
if (B0.predicates !== null) {
|
|
7450
7450
|
this.debug && console.log("DFA state has preds in DFA sim LL failover");
|
|
7451
7451
|
var p1 = g.index;
|
|
7452
|
-
if (p1 !== v && g.seek(v), (T1 = this.evalSemanticContext(B0.predicates,
|
|
7452
|
+
if (p1 !== v && g.seek(v), (T1 = this.evalSemanticContext(B0.predicates, W, !0)).length === 1)
|
|
7453
7453
|
return this.debug && console.log("Full LL avoided"), T1.minValue();
|
|
7454
7454
|
p1 !== v && g.seek(p1);
|
|
7455
7455
|
}
|
|
7456
|
-
this.dfa_debug && console.log("ctx sensitive state " +
|
|
7457
|
-
var He = this.computeStartState(c.atnStartState,
|
|
7458
|
-
return this.reportAttemptingFullContext(c, T1, B0.configs, v, g.index), this.execATNWithFullContext(c, B0, He, g, v,
|
|
7456
|
+
this.dfa_debug && console.log("ctx sensitive state " + W + " in " + B0);
|
|
7457
|
+
var He = this.computeStartState(c.atnStartState, W, !0);
|
|
7458
|
+
return this.reportAttemptingFullContext(c, T1, B0.configs, v, g.index), this.execATNWithFullContext(c, B0, He, g, v, W);
|
|
7459
7459
|
}
|
|
7460
7460
|
if (B0.isAcceptState) {
|
|
7461
7461
|
if (B0.predicates === null)
|
|
7462
7462
|
return B0.prediction;
|
|
7463
7463
|
var De = g.index;
|
|
7464
7464
|
g.seek(v);
|
|
7465
|
-
var At = this.evalSemanticContext(B0.predicates,
|
|
7465
|
+
var At = this.evalSemanticContext(B0.predicates, W, !0);
|
|
7466
7466
|
if (At.length === 0)
|
|
7467
|
-
throw this.noViableAlt(g,
|
|
7467
|
+
throw this.noViableAlt(g, W, B0.configs, v);
|
|
7468
7468
|
return At.length === 1 || this.reportAmbiguity(c, B0, v, De, !1, At, B0.configs), At.minValue();
|
|
7469
7469
|
}
|
|
7470
7470
|
b0 = B0, D0 !== t.EOF && (g.consume(), D0 = g.LA(1));
|
|
@@ -7476,23 +7476,23 @@ var aR = v4((HT, j2) => {
|
|
|
7476
7476
|
var v = this.computeReachSet(l.configs, g, !1);
|
|
7477
7477
|
if (v === null)
|
|
7478
7478
|
return this.addDFAEdge(c, l, g, Ar.ERROR), Ar.ERROR;
|
|
7479
|
-
var
|
|
7479
|
+
var W = new Ki(null, v), w = this.getUniqueAlt(v);
|
|
7480
7480
|
if (this.debug) {
|
|
7481
7481
|
var b0 = dt.getConflictingAltSubsets(v);
|
|
7482
7482
|
console.log("SLL altSubSets=" + x(b0) + ", configs=" + v + ", predict=" + w + ", allSubsetsConflict=" + dt.allSubsetsConflict(b0) + ", conflictingAlts=" + this.getConflictingAlts(v));
|
|
7483
7483
|
}
|
|
7484
|
-
return w !== Ue.INVALID_ALT_NUMBER ? (
|
|
7484
|
+
return w !== Ue.INVALID_ALT_NUMBER ? (W.isAcceptState = !0, W.configs.uniqueAlt = w, W.prediction = w) : dt.hasSLLConflictTerminatingPrediction(this.predictionMode, v) && (W.configs.conflictingAlts = this.getConflictingAlts(v), W.requiresFullContext = !0, W.isAcceptState = !0, W.prediction = W.configs.conflictingAlts.minValue()), W.isAcceptState && W.configs.hasSemanticContext && (this.predicateDFAState(W, this.atn.getDecisionState(c.decision)), W.predicates !== null && (W.prediction = Ue.INVALID_ALT_NUMBER)), this.addDFAEdge(c, l, g, W);
|
|
7485
7485
|
} }, { key: "predicateDFAState", value: function(c, l) {
|
|
7486
|
-
var g = l.transitions.length, v = this.getConflictingAltsOrUniqueAlt(c.configs),
|
|
7487
|
-
|
|
7488
|
-
} }, { key: "execATNWithFullContext", value: function(c, l, g, v,
|
|
7486
|
+
var g = l.transitions.length, v = this.getConflictingAltsOrUniqueAlt(c.configs), W = this.getPredsForAmbigAlts(v, c.configs, g);
|
|
7487
|
+
W !== null ? (c.predicates = this.getPredicatePredictions(v, W), c.prediction = Ue.INVALID_ALT_NUMBER) : c.prediction = v.minValue();
|
|
7488
|
+
} }, { key: "execATNWithFullContext", value: function(c, l, g, v, W, w) {
|
|
7489
7489
|
(this.debug || this.trace_atn_sim) && console.log("execATNWithFullContext " + g);
|
|
7490
7490
|
var b0, D0 = !1, B0 = g;
|
|
7491
|
-
v.seek(
|
|
7491
|
+
v.seek(W);
|
|
7492
7492
|
for (var i1 = v.LA(1), T1 = -1; ; ) {
|
|
7493
7493
|
if ((b0 = this.computeReachSet(B0, i1, !0)) === null) {
|
|
7494
|
-
var p1 = this.noViableAlt(v, w, B0,
|
|
7495
|
-
v.seek(
|
|
7494
|
+
var p1 = this.noViableAlt(v, w, B0, W);
|
|
7495
|
+
v.seek(W);
|
|
7496
7496
|
var He = this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(B0, w);
|
|
7497
7497
|
if (He !== Ue.INVALID_ALT_NUMBER)
|
|
7498
7498
|
return He;
|
|
@@ -7512,13 +7512,13 @@ var aR = v4((HT, j2) => {
|
|
|
7512
7512
|
}
|
|
7513
7513
|
B0 = b0, i1 !== t.EOF && (v.consume(), i1 = v.LA(1));
|
|
7514
7514
|
}
|
|
7515
|
-
return b0.uniqueAlt !== Ue.INVALID_ALT_NUMBER ? (this.reportContextSensitivity(c, T1, b0,
|
|
7515
|
+
return b0.uniqueAlt !== Ue.INVALID_ALT_NUMBER ? (this.reportContextSensitivity(c, T1, b0, W, v.index), T1) : (this.reportAmbiguity(c, l, W, v.index, D0, null, b0), T1);
|
|
7516
7516
|
} }, { key: "computeReachSet", value: function(c, l, g) {
|
|
7517
7517
|
this.debug && console.log("in computeReachSet, starting closure: " + c), this.mergeCache === null && (this.mergeCache = new GA());
|
|
7518
|
-
for (var v = new En(g),
|
|
7518
|
+
for (var v = new En(g), W = null, w = 0; w < c.items.length; w++) {
|
|
7519
7519
|
var b0 = c.items[w];
|
|
7520
7520
|
if (this.debug && console.log("testing " + this.getTokenName(l) + " at " + b0), b0.state instanceof K1)
|
|
7521
|
-
(g || l === t.EOF) && (
|
|
7521
|
+
(g || l === t.EOF) && (W === null && (W = []), W.push(b0), this.debug_add && console.log("added " + b0 + " to skippedStopStates"));
|
|
7522
7522
|
else
|
|
7523
7523
|
for (var D0 = 0; D0 < b0.state.transitions.length; D0++) {
|
|
7524
7524
|
var B0 = b0.state.transitions[D0], i1 = this.getReachableTarget(B0, l);
|
|
@@ -7529,39 +7529,39 @@ var aR = v4((HT, j2) => {
|
|
|
7529
7529
|
}
|
|
7530
7530
|
}
|
|
7531
7531
|
var p1 = null;
|
|
7532
|
-
if (
|
|
7532
|
+
if (W === null && l !== t.EOF && (v.items.length === 1 || this.getUniqueAlt(v) !== Ue.INVALID_ALT_NUMBER) && (p1 = v), p1 === null) {
|
|
7533
7533
|
p1 = new En(g);
|
|
7534
7534
|
for (var He = new q(), De = l === t.EOF, At = 0; At < v.items.length; At++)
|
|
7535
7535
|
this.closure(v.items[At], p1, He, !1, g, De);
|
|
7536
7536
|
}
|
|
7537
|
-
if (l === t.EOF && (p1 = this.removeAllConfigsNotInRuleStopState(p1, p1 === v)), !(
|
|
7538
|
-
for (var Rn = 0; Rn <
|
|
7539
|
-
p1.add(
|
|
7537
|
+
if (l === t.EOF && (p1 = this.removeAllConfigsNotInRuleStopState(p1, p1 === v)), !(W === null || g && dt.hasConfigInRuleStopState(p1)))
|
|
7538
|
+
for (var Rn = 0; Rn < W.length; Rn++)
|
|
7539
|
+
p1.add(W[Rn], this.mergeCache);
|
|
7540
7540
|
return this.trace_atn_sim && console.log("computeReachSet " + c + " -> " + p1), p1.items.length === 0 ? null : p1;
|
|
7541
7541
|
} }, { key: "removeAllConfigsNotInRuleStopState", value: function(c, l) {
|
|
7542
7542
|
if (dt.allConfigsInRuleStopStates(c))
|
|
7543
7543
|
return c;
|
|
7544
7544
|
for (var g = new En(c.fullCtx), v = 0; v < c.items.length; v++) {
|
|
7545
|
-
var
|
|
7546
|
-
if (
|
|
7547
|
-
g.add(
|
|
7548
|
-
else if (l &&
|
|
7549
|
-
var w = this.atn.ruleToStopState[
|
|
7550
|
-
g.add(new F0({ state: w },
|
|
7545
|
+
var W = c.items[v];
|
|
7546
|
+
if (W.state instanceof K1)
|
|
7547
|
+
g.add(W, this.mergeCache);
|
|
7548
|
+
else if (l && W.state.epsilonOnlyTransitions && this.atn.nextTokens(W.state).contains(t.EPSILON)) {
|
|
7549
|
+
var w = this.atn.ruleToStopState[W.state.ruleIndex];
|
|
7550
|
+
g.add(new F0({ state: w }, W), this.mergeCache);
|
|
7551
7551
|
}
|
|
7552
7552
|
}
|
|
7553
7553
|
return g;
|
|
7554
7554
|
} }, { key: "computeStartState", value: function(c, l, g) {
|
|
7555
|
-
var v = Ws(this.atn, l),
|
|
7555
|
+
var v = Ws(this.atn, l), W = new En(g);
|
|
7556
7556
|
this.trace_atn_sim && console.log("computeStartState from ATN state " + c + " initialContext=" + v.toString(this.parser));
|
|
7557
7557
|
for (var w = 0; w < c.transitions.length; w++) {
|
|
7558
7558
|
var b0 = c.transitions[w].target, D0 = new F0({ state: b0, alt: w + 1, context: v }, null), B0 = new q();
|
|
7559
|
-
this.closure(D0,
|
|
7559
|
+
this.closure(D0, W, B0, !0, g, !1);
|
|
7560
7560
|
}
|
|
7561
|
-
return
|
|
7561
|
+
return W;
|
|
7562
7562
|
} }, { key: "applyPrecedenceFilter", value: function(c) {
|
|
7563
|
-
for (var l, g = [], v = new En(c.fullCtx),
|
|
7564
|
-
if ((l = c.items[
|
|
7563
|
+
for (var l, g = [], v = new En(c.fullCtx), W = 0; W < c.items.length; W++)
|
|
7564
|
+
if ((l = c.items[W]).alt === 1) {
|
|
7565
7565
|
var w = l.semanticContext.evalPrecedence(this.parser, this._outerContext);
|
|
7566
7566
|
w !== null && (g[l.state.stateNumber] = l.context, w !== l.semanticContext ? v.add(new F0({ semanticContext: w }, l), this.mergeCache) : v.add(l, this.mergeCache));
|
|
7567
7567
|
}
|
|
@@ -7578,8 +7578,8 @@ var aR = v4((HT, j2) => {
|
|
|
7578
7578
|
} }, { key: "getReachableTarget", value: function(c, l) {
|
|
7579
7579
|
return c.matches(l, 0, this.atn.maxTokenType) ? c.target : null;
|
|
7580
7580
|
} }, { key: "getPredsForAmbigAlts", value: function(c, l, g) {
|
|
7581
|
-
for (var v = [],
|
|
7582
|
-
var w = l.items[
|
|
7581
|
+
for (var v = [], W = 0; W < l.items.length; W++) {
|
|
7582
|
+
var w = l.items[W];
|
|
7583
7583
|
c.has(w.alt) && (v[w.alt] = J.orContext(v[w.alt] || null, w.semanticContext));
|
|
7584
7584
|
}
|
|
7585
7585
|
for (var b0 = 0, D0 = 1; D0 < g + 1; D0++) {
|
|
@@ -7588,14 +7588,14 @@ var aR = v4((HT, j2) => {
|
|
|
7588
7588
|
}
|
|
7589
7589
|
return b0 === 0 && (v = null), this.debug && console.log("getPredsForAmbigAlts result " + x(v)), v;
|
|
7590
7590
|
} }, { key: "getPredicatePredictions", value: function(c, l) {
|
|
7591
|
-
for (var g = [], v = !1,
|
|
7592
|
-
var w = l[
|
|
7593
|
-
c !== null && c.has(
|
|
7591
|
+
for (var g = [], v = !1, W = 1; W < l.length; W++) {
|
|
7592
|
+
var w = l[W];
|
|
7593
|
+
c !== null && c.has(W) && g.push(new Fh(w, W)), w !== J.NONE && (v = !0);
|
|
7594
7594
|
}
|
|
7595
7595
|
return v ? g : null;
|
|
7596
7596
|
} }, { key: "getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule", value: function(c, l) {
|
|
7597
|
-
var g = this.splitAccordingToSemanticValidity(c, l), v = g[0],
|
|
7598
|
-
return w !== Ue.INVALID_ALT_NUMBER ||
|
|
7597
|
+
var g = this.splitAccordingToSemanticValidity(c, l), v = g[0], W = g[1], w = this.getAltThatFinishedDecisionEntryRule(v);
|
|
7598
|
+
return w !== Ue.INVALID_ALT_NUMBER || W.items.length > 0 && (w = this.getAltThatFinishedDecisionEntryRule(W)) !== Ue.INVALID_ALT_NUMBER ? w : Ue.INVALID_ALT_NUMBER;
|
|
7599
7599
|
} }, { key: "getAltThatFinishedDecisionEntryRule", value: function(c) {
|
|
7600
7600
|
for (var l = [], g = 0; g < c.items.length; g++) {
|
|
7601
7601
|
var v = c.items[g];
|
|
@@ -7603,14 +7603,14 @@ var aR = v4((HT, j2) => {
|
|
|
7603
7603
|
}
|
|
7604
7604
|
return l.length === 0 ? Ue.INVALID_ALT_NUMBER : Math.min.apply(null, l);
|
|
7605
7605
|
} }, { key: "splitAccordingToSemanticValidity", value: function(c, l) {
|
|
7606
|
-
for (var g = new En(c.fullCtx), v = new En(c.fullCtx),
|
|
7607
|
-
var w = c.items[
|
|
7606
|
+
for (var g = new En(c.fullCtx), v = new En(c.fullCtx), W = 0; W < c.items.length; W++) {
|
|
7607
|
+
var w = c.items[W];
|
|
7608
7608
|
w.semanticContext !== J.NONE ? w.semanticContext.evaluate(this.parser, l) ? g.add(w) : v.add(w) : g.add(w);
|
|
7609
7609
|
}
|
|
7610
7610
|
return [g, v];
|
|
7611
7611
|
} }, { key: "evalSemanticContext", value: function(c, l, g) {
|
|
7612
|
-
for (var v = new gn(),
|
|
7613
|
-
var w = c[
|
|
7612
|
+
for (var v = new gn(), W = 0; W < c.length; W++) {
|
|
7613
|
+
var w = c[W];
|
|
7614
7614
|
if (w.pred !== J.NONE) {
|
|
7615
7615
|
var b0 = w.pred.evaluate(this.parser, l);
|
|
7616
7616
|
if ((this.debug || this.dfa_debug) && console.log("eval pred " + w + "=" + b0), b0 && ((this.debug || this.dfa_debug) && console.log("PREDICT " + w.alt), v.add(w.alt), !g))
|
|
@@ -7619,35 +7619,35 @@ var aR = v4((HT, j2) => {
|
|
|
7619
7619
|
break;
|
|
7620
7620
|
}
|
|
7621
7621
|
return v;
|
|
7622
|
-
} }, { key: "closure", value: function(c, l, g, v,
|
|
7623
|
-
this.closureCheckingStopState(c, l, g, v,
|
|
7624
|
-
} }, { key: "closureCheckingStopState", value: function(c, l, g, v,
|
|
7622
|
+
} }, { key: "closure", value: function(c, l, g, v, W, w) {
|
|
7623
|
+
this.closureCheckingStopState(c, l, g, v, W, 0, w);
|
|
7624
|
+
} }, { key: "closureCheckingStopState", value: function(c, l, g, v, W, w, b0) {
|
|
7625
7625
|
if ((this.trace_atn_sim || this.debug_closure) && console.log("closure(" + c.toString(this.parser, !0) + ")"), c.state instanceof K1) {
|
|
7626
7626
|
if (!c.context.isEmpty()) {
|
|
7627
7627
|
for (var D0 = 0; D0 < c.context.length; D0++)
|
|
7628
7628
|
if (c.context.getReturnState(D0) !== g1.EMPTY_RETURN_STATE) {
|
|
7629
7629
|
var B0 = this.atn.states[c.context.getReturnState(D0)], i1 = c.context.getParent(D0), T1 = { state: B0, alt: c.alt, context: i1, semanticContext: c.semanticContext }, p1 = new F0(T1, null);
|
|
7630
|
-
p1.reachesIntoOuterContext = c.reachesIntoOuterContext, this.closureCheckingStopState(p1, l, g, v,
|
|
7630
|
+
p1.reachesIntoOuterContext = c.reachesIntoOuterContext, this.closureCheckingStopState(p1, l, g, v, W, w - 1, b0);
|
|
7631
7631
|
} else {
|
|
7632
|
-
if (
|
|
7632
|
+
if (W) {
|
|
7633
7633
|
l.add(new F0({ state: c.state, context: g1.EMPTY }, c), this.mergeCache);
|
|
7634
7634
|
continue;
|
|
7635
7635
|
}
|
|
7636
|
-
this.debug && console.log("FALLING off rule " + this.getRuleName(c.state.ruleIndex)), this.closure_(c, l, g, v,
|
|
7636
|
+
this.debug && console.log("FALLING off rule " + this.getRuleName(c.state.ruleIndex)), this.closure_(c, l, g, v, W, w, b0);
|
|
7637
7637
|
}
|
|
7638
7638
|
return;
|
|
7639
7639
|
}
|
|
7640
|
-
if (
|
|
7640
|
+
if (W)
|
|
7641
7641
|
return void l.add(c, this.mergeCache);
|
|
7642
7642
|
this.debug && console.log("FALLING off rule " + this.getRuleName(c.state.ruleIndex));
|
|
7643
7643
|
}
|
|
7644
|
-
this.closure_(c, l, g, v,
|
|
7645
|
-
} }, { key: "closure_", value: function(c, l, g, v,
|
|
7644
|
+
this.closure_(c, l, g, v, W, w, b0);
|
|
7645
|
+
} }, { key: "closure_", value: function(c, l, g, v, W, w, b0) {
|
|
7646
7646
|
var D0 = c.state;
|
|
7647
7647
|
D0.epsilonOnlyTransitions || l.add(c, this.mergeCache);
|
|
7648
7648
|
for (var B0 = 0; B0 < D0.transitions.length; B0++)
|
|
7649
7649
|
if (B0 !== 0 || !this.canDropLoopEntryEdgeInLeftRecursiveRule(c)) {
|
|
7650
|
-
var i1 = D0.transitions[B0], T1 = v && !(i1 instanceof mh), p1 = this.getEpsilonTarget(c, i1, T1, w === 0,
|
|
7650
|
+
var i1 = D0.transitions[B0], T1 = v && !(i1 instanceof mh), p1 = this.getEpsilonTarget(c, i1, T1, w === 0, W, b0);
|
|
7651
7651
|
if (p1 !== null) {
|
|
7652
7652
|
var He = w;
|
|
7653
7653
|
if (c.state instanceof K1) {
|
|
@@ -7659,7 +7659,7 @@ var aR = v4((HT, j2) => {
|
|
|
7659
7659
|
continue;
|
|
7660
7660
|
i1 instanceof d1 && He >= 0 && (He += 1);
|
|
7661
7661
|
}
|
|
7662
|
-
this.closureCheckingStopState(p1, l, g, T1,
|
|
7662
|
+
this.closureCheckingStopState(p1, l, g, T1, W, He, b0);
|
|
7663
7663
|
}
|
|
7664
7664
|
}
|
|
7665
7665
|
} }, { key: "canDropLoopEntryEdgeInLeftRecursiveRule", value: function(c) {
|
|
@@ -7669,7 +7669,7 @@ var aR = v4((HT, j2) => {
|
|
|
7669
7669
|
for (var g = c.context.length, v = 0; v < g; v++)
|
|
7670
7670
|
if (this.atn.states[c.context.getReturnState(v)].ruleIndex !== l.ruleIndex)
|
|
7671
7671
|
return !1;
|
|
7672
|
-
for (var
|
|
7672
|
+
for (var W = l.transitions[0].target.endState.stateNumber, w = this.atn.states[W], b0 = 0; b0 < g; b0++) {
|
|
7673
7673
|
var D0 = c.context.getReturnState(b0), B0 = this.atn.states[D0];
|
|
7674
7674
|
if (B0.transitions.length !== 1 || !B0.transitions[0].isEpsilon)
|
|
7675
7675
|
return !1;
|
|
@@ -7680,14 +7680,14 @@ var aR = v4((HT, j2) => {
|
|
|
7680
7680
|
return !0;
|
|
7681
7681
|
} }, { key: "getRuleName", value: function(c) {
|
|
7682
7682
|
return this.parser !== null && c >= 0 ? this.parser.ruleNames[c] : "<rule " + c + ">";
|
|
7683
|
-
} }, { key: "getEpsilonTarget", value: function(c, l, g, v,
|
|
7683
|
+
} }, { key: "getEpsilonTarget", value: function(c, l, g, v, W, w) {
|
|
7684
7684
|
switch (l.serializationType) {
|
|
7685
7685
|
case n0.RULE:
|
|
7686
7686
|
return this.ruleTransition(c, l);
|
|
7687
7687
|
case n0.PRECEDENCE:
|
|
7688
|
-
return this.precedenceTransition(c, l, g, v,
|
|
7688
|
+
return this.precedenceTransition(c, l, g, v, W);
|
|
7689
7689
|
case n0.PREDICATE:
|
|
7690
|
-
return this.predTransition(c, l, g, v,
|
|
7690
|
+
return this.predTransition(c, l, g, v, W);
|
|
7691
7691
|
case n0.ACTION:
|
|
7692
7692
|
return this.actionTransition(c, l);
|
|
7693
7693
|
case n0.EPSILON:
|
|
@@ -7705,11 +7705,11 @@ var aR = v4((HT, j2) => {
|
|
|
7705
7705
|
console.log("ACTION edge " + l.ruleIndex + ":" + g);
|
|
7706
7706
|
}
|
|
7707
7707
|
return new F0({ state: l.target }, c);
|
|
7708
|
-
} }, { key: "precedenceTransition", value: function(c, l, g, v,
|
|
7708
|
+
} }, { key: "precedenceTransition", value: function(c, l, g, v, W) {
|
|
7709
7709
|
this.debug && (console.log("PRED (collectPredicates=" + g + ") " + l.precedence + ">=_p, ctx dependent=true"), this.parser !== null && console.log("context surrounding pred is " + x(this.parser.getRuleInvocationStack())));
|
|
7710
7710
|
var w = null;
|
|
7711
7711
|
if (g && v)
|
|
7712
|
-
if (
|
|
7712
|
+
if (W) {
|
|
7713
7713
|
var b0 = this._input.index;
|
|
7714
7714
|
this._input.seek(this._startIndex);
|
|
7715
7715
|
var D0 = l.getPredicate().evaluate(this.parser, this._outerContext);
|
|
@@ -7721,11 +7721,11 @@ var aR = v4((HT, j2) => {
|
|
|
7721
7721
|
else
|
|
7722
7722
|
w = new F0({ state: l.target }, c);
|
|
7723
7723
|
return this.debug && console.log("config from pred transition=" + w), w;
|
|
7724
|
-
} }, { key: "predTransition", value: function(c, l, g, v,
|
|
7724
|
+
} }, { key: "predTransition", value: function(c, l, g, v, W) {
|
|
7725
7725
|
this.debug && (console.log("PRED (collectPredicates=" + g + ") " + l.ruleIndex + ":" + l.predIndex + ", ctx dependent=" + l.isCtxDependent), this.parser !== null && console.log("context surrounding pred is " + x(this.parser.getRuleInvocationStack())));
|
|
7726
7726
|
var w = null;
|
|
7727
7727
|
if (g && (l.isCtxDependent && v || !l.isCtxDependent))
|
|
7728
|
-
if (
|
|
7728
|
+
if (W) {
|
|
7729
7729
|
var b0 = this._input.index;
|
|
7730
7730
|
this._input.seek(this._startIndex);
|
|
7731
7731
|
var D0 = l.getPredicate().evaluate(this.parser, this._outerContext);
|
|
@@ -7761,12 +7761,12 @@ var aR = v4((HT, j2) => {
|
|
|
7761
7761
|
} }, { key: "dumpDeadEndConfigs", value: function(c) {
|
|
7762
7762
|
console.log("dead end configs: ");
|
|
7763
7763
|
for (var l = c.getDeadEndConfigs(), g = 0; g < l.length; g++) {
|
|
7764
|
-
var v = l[g],
|
|
7764
|
+
var v = l[g], W = "no edges";
|
|
7765
7765
|
if (v.state.transitions.length > 0) {
|
|
7766
7766
|
var w = v.state.transitions[0];
|
|
7767
|
-
w instanceof Gu ?
|
|
7767
|
+
w instanceof Gu ? W = "Atom " + this.getTokenName(w.label) : w instanceof Or && (W = (w instanceof Te ? "~" : "") + "Set " + w.set);
|
|
7768
7768
|
}
|
|
7769
|
-
console.error(v.toString(this.parser, !0) + ":" +
|
|
7769
|
+
console.error(v.toString(this.parser, !0) + ":" + W);
|
|
7770
7770
|
}
|
|
7771
7771
|
} }, { key: "noViableAlt", value: function(c, l, g, v) {
|
|
7772
7772
|
return new b2(this.parser, c, c.get(v), c.LT(1), g, l);
|
|
@@ -7785,9 +7785,9 @@ var aR = v4((HT, j2) => {
|
|
|
7785
7785
|
if (v = this.addDFAState(c, v), l === null || g < -1 || g > this.atn.maxTokenType)
|
|
7786
7786
|
return v;
|
|
7787
7787
|
if (l.edges === null && (l.edges = []), l.edges[g + 1] = v, this.debug) {
|
|
7788
|
-
var
|
|
7788
|
+
var W = this.parser === null ? null : this.parser.literalNames, w = this.parser === null ? null : this.parser.symbolicNames;
|
|
7789
7789
|
console.log(`DFA=
|
|
7790
|
-
` + c.toString(
|
|
7790
|
+
` + c.toString(W, w));
|
|
7791
7791
|
}
|
|
7792
7792
|
return v;
|
|
7793
7793
|
} }, { key: "addDFAState", value: function(c, l) {
|
|
@@ -7795,24 +7795,24 @@ var aR = v4((HT, j2) => {
|
|
|
7795
7795
|
return l;
|
|
7796
7796
|
var g = c.states.get(l);
|
|
7797
7797
|
return g !== null ? (this.trace_atn_sim && console.log("addDFAState " + l + " exists"), g) : (l.stateNumber = c.states.length, l.configs.readOnly || (l.configs.optimizeConfigs(this), l.configs.setReadonly(!0)), this.trace_atn_sim && console.log("addDFAState new " + l), c.states.add(l), this.debug && console.log("adding new DFA state: " + l), l);
|
|
7798
|
-
} }, { key: "reportAttemptingFullContext", value: function(c, l, g, v,
|
|
7798
|
+
} }, { key: "reportAttemptingFullContext", value: function(c, l, g, v, W) {
|
|
7799
7799
|
if (this.debug || this.retry_debug) {
|
|
7800
|
-
var w = new Z0(v,
|
|
7800
|
+
var w = new Z0(v, W + 1);
|
|
7801
7801
|
console.log("reportAttemptingFullContext decision=" + c.decision + ":" + g + ", input=" + this.parser.getTokenStream().getText(w));
|
|
7802
7802
|
}
|
|
7803
|
-
this.parser !== null && this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser, c, v,
|
|
7804
|
-
} }, { key: "reportContextSensitivity", value: function(c, l, g, v,
|
|
7803
|
+
this.parser !== null && this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser, c, v, W, l, g);
|
|
7804
|
+
} }, { key: "reportContextSensitivity", value: function(c, l, g, v, W) {
|
|
7805
7805
|
if (this.debug || this.retry_debug) {
|
|
7806
|
-
var w = new Z0(v,
|
|
7806
|
+
var w = new Z0(v, W + 1);
|
|
7807
7807
|
console.log("reportContextSensitivity decision=" + c.decision + ":" + g + ", input=" + this.parser.getTokenStream().getText(w));
|
|
7808
7808
|
}
|
|
7809
|
-
this.parser !== null && this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser, c, v,
|
|
7810
|
-
} }, { key: "reportAmbiguity", value: function(c, l, g, v,
|
|
7809
|
+
this.parser !== null && this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser, c, v, W, l, g);
|
|
7810
|
+
} }, { key: "reportAmbiguity", value: function(c, l, g, v, W, w, b0) {
|
|
7811
7811
|
if (this.debug || this.retry_debug) {
|
|
7812
7812
|
var D0 = new Z0(g, v + 1);
|
|
7813
7813
|
console.log("reportAmbiguity " + w + ":" + b0 + ", input=" + this.parser.getTokenStream().getText(D0));
|
|
7814
7814
|
}
|
|
7815
|
-
this.parser !== null && this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser, c, g, v,
|
|
7815
|
+
this.parser !== null && this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser, c, g, v, W, w, b0);
|
|
7816
7816
|
} }], d && KA(a.prototype, d), Object.defineProperty(a, "prototype", { writable: !1 }), A;
|
|
7817
7817
|
}(Ar);
|
|
7818
7818
|
function _a(h) {
|
|
@@ -7972,10 +7972,10 @@ var aR = v4((HT, j2) => {
|
|
|
7972
7972
|
c = Reflect.construct(l, arguments, g);
|
|
7973
7973
|
} else
|
|
7974
7974
|
c = l.apply(this, arguments);
|
|
7975
|
-
return function(v,
|
|
7976
|
-
if (
|
|
7977
|
-
return
|
|
7978
|
-
if (
|
|
7975
|
+
return function(v, W) {
|
|
7976
|
+
if (W && (ao(W) === "object" || typeof W == "function"))
|
|
7977
|
+
return W;
|
|
7978
|
+
if (W !== void 0)
|
|
7979
7979
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
7980
7980
|
return function(w) {
|
|
7981
7981
|
if (w === void 0)
|
|
@@ -8245,10 +8245,10 @@ var aR = v4((HT, j2) => {
|
|
|
8245
8245
|
return v;
|
|
8246
8246
|
if (v !== void 0)
|
|
8247
8247
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
8248
|
-
return function(
|
|
8249
|
-
if (
|
|
8248
|
+
return function(W) {
|
|
8249
|
+
if (W === void 0)
|
|
8250
8250
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8251
|
-
return
|
|
8251
|
+
return W;
|
|
8252
8252
|
}(g);
|
|
8253
8253
|
}(this, A);
|
|
8254
8254
|
});
|
|
@@ -8307,17 +8307,17 @@ var aR = v4((HT, j2) => {
|
|
|
8307
8307
|
return v;
|
|
8308
8308
|
if (v !== void 0)
|
|
8309
8309
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
8310
|
-
return function(
|
|
8311
|
-
if (
|
|
8310
|
+
return function(W) {
|
|
8311
|
+
if (W === void 0)
|
|
8312
8312
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8313
|
-
return
|
|
8313
|
+
return W;
|
|
8314
8314
|
}(g);
|
|
8315
8315
|
}(this, A);
|
|
8316
8316
|
});
|
|
8317
8317
|
function M(A, c, l) {
|
|
8318
8318
|
var g;
|
|
8319
|
-
(function(
|
|
8320
|
-
if (!(
|
|
8319
|
+
(function(W, w) {
|
|
8320
|
+
if (!(W instanceof w))
|
|
8321
8321
|
throw new TypeError("Cannot call a class as a function");
|
|
8322
8322
|
})(this, M), g = O.call(this, { message: c4(c, l || null), recognizer: A, input: A.getInputStream(), ctx: A._ctx });
|
|
8323
8323
|
var v = A._interp.atn.states[A.state].transitions[0];
|
|
@@ -8387,10 +8387,10 @@ var aR = v4((HT, j2) => {
|
|
|
8387
8387
|
c = Reflect.construct(l, arguments, g);
|
|
8388
8388
|
} else
|
|
8389
8389
|
c = l.apply(this, arguments);
|
|
8390
|
-
return function(v,
|
|
8391
|
-
if (
|
|
8392
|
-
return
|
|
8393
|
-
if (
|
|
8390
|
+
return function(v, W) {
|
|
8391
|
+
if (W && (co(W) === "object" || typeof W == "function"))
|
|
8392
|
+
return W;
|
|
8393
|
+
if (W !== void 0)
|
|
8394
8394
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
8395
8395
|
return function(w) {
|
|
8396
8396
|
if (w === void 0)
|
|
@@ -8406,22 +8406,22 @@ var aR = v4((HT, j2) => {
|
|
|
8406
8406
|
throw new TypeError("Cannot call a class as a function");
|
|
8407
8407
|
}(this, A), c = c || !0, (l = M.call(this)).exactOnly = c, l;
|
|
8408
8408
|
}
|
|
8409
|
-
return a = A, d = [{ key: "reportAmbiguity", value: function(c, l, g, v,
|
|
8410
|
-
if (!this.exactOnly ||
|
|
8409
|
+
return a = A, d = [{ key: "reportAmbiguity", value: function(c, l, g, v, W, w, b0) {
|
|
8410
|
+
if (!this.exactOnly || W) {
|
|
8411
8411
|
var D0 = "reportAmbiguity d=" + this.getDecisionDescription(c, l) + ": ambigAlts=" + this.getConflictingAlts(w, b0) + ", input='" + c.getTokenStream().getText(new Z0(g, v)) + "'";
|
|
8412
8412
|
c.notifyErrorListeners(D0);
|
|
8413
8413
|
}
|
|
8414
|
-
} }, { key: "reportAttemptingFullContext", value: function(c, l, g, v,
|
|
8414
|
+
} }, { key: "reportAttemptingFullContext", value: function(c, l, g, v, W, w) {
|
|
8415
8415
|
var b0 = "reportAttemptingFullContext d=" + this.getDecisionDescription(c, l) + ", input='" + c.getTokenStream().getText(new Z0(g, v)) + "'";
|
|
8416
8416
|
c.notifyErrorListeners(b0);
|
|
8417
|
-
} }, { key: "reportContextSensitivity", value: function(c, l, g, v,
|
|
8417
|
+
} }, { key: "reportContextSensitivity", value: function(c, l, g, v, W, w) {
|
|
8418
8418
|
var b0 = "reportContextSensitivity d=" + this.getDecisionDescription(c, l) + ", input='" + c.getTokenStream().getText(new Z0(g, v)) + "'";
|
|
8419
8419
|
c.notifyErrorListeners(b0);
|
|
8420
8420
|
} }, { key: "getDecisionDescription", value: function(c, l) {
|
|
8421
|
-
var g = l.decision, v = l.atnStartState.ruleIndex,
|
|
8422
|
-
if (v < 0 || v >=
|
|
8421
|
+
var g = l.decision, v = l.atnStartState.ruleIndex, W = c.ruleNames;
|
|
8422
|
+
if (v < 0 || v >= W.length)
|
|
8423
8423
|
return "" + g;
|
|
8424
|
-
var w =
|
|
8424
|
+
var w = W[v] || null;
|
|
8425
8425
|
return w === null || w.length === 0 ? "" + g : "".concat(g, " (").concat(w, ")");
|
|
8426
8426
|
} }, { key: "getConflictingAlts", value: function(c, l) {
|
|
8427
8427
|
if (c !== null)
|
|
@@ -8606,10 +8606,10 @@ var aR = v4((HT, j2) => {
|
|
|
8606
8606
|
c = Reflect.construct(l, arguments, g);
|
|
8607
8607
|
} else
|
|
8608
8608
|
c = l.apply(this, arguments);
|
|
8609
|
-
return function(v,
|
|
8610
|
-
if (
|
|
8611
|
-
return
|
|
8612
|
-
if (
|
|
8609
|
+
return function(v, W) {
|
|
8610
|
+
if (W && (po(W) === "object" || typeof W == "function"))
|
|
8611
|
+
return W;
|
|
8612
|
+
if (W !== void 0)
|
|
8613
8613
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
8614
8614
|
return function(w) {
|
|
8615
8615
|
if (w === void 0)
|
|
@@ -8660,17 +8660,17 @@ var aR = v4((HT, j2) => {
|
|
|
8660
8660
|
case g0.PLUS_LOOP_BACK:
|
|
8661
8661
|
case g0.STAR_LOOP_BACK:
|
|
8662
8662
|
this.reportUnwantedToken(c);
|
|
8663
|
-
var
|
|
8664
|
-
|
|
8665
|
-
var w =
|
|
8663
|
+
var W = new O0();
|
|
8664
|
+
W.addSet(c.getExpectedTokens());
|
|
8665
|
+
var w = W.addSet(this.getErrorRecoverySet(c));
|
|
8666
8666
|
this.consumeUntil(c, w);
|
|
8667
8667
|
}
|
|
8668
8668
|
}
|
|
8669
8669
|
} }, { key: "reportNoViableAlternative", value: function(c, l) {
|
|
8670
8670
|
var g, v = c.getTokenStream();
|
|
8671
8671
|
g = v !== null ? l.startToken.type === t.EOF ? "<EOF>" : v.getText(new Z0(l.startToken.tokenIndex, l.offendingToken.tokenIndex)) : "<unknown input>";
|
|
8672
|
-
var
|
|
8673
|
-
c.notifyErrorListeners(
|
|
8672
|
+
var W = "no viable alternative at input " + this.escapeWSAndQuote(g);
|
|
8673
|
+
c.notifyErrorListeners(W, l.offendingToken, l);
|
|
8674
8674
|
} }, { key: "reportInputMismatch", value: function(c, l) {
|
|
8675
8675
|
var g = "mismatched input " + this.getTokenErrorDisplay(l.offendingToken) + " expecting " + l.getExpectedTokens().toString(c.literalNames, c.symbolicNames);
|
|
8676
8676
|
c.notifyErrorListeners(g, l.offendingToken, l);
|
|
@@ -8710,8 +8710,8 @@ var aR = v4((HT, j2) => {
|
|
|
8710
8710
|
} }, { key: "getMissingSymbol", value: function(c) {
|
|
8711
8711
|
var l, g = c.getCurrentToken(), v = this.getExpectedTokens(c).first();
|
|
8712
8712
|
l = v === t.EOF ? "<missing EOF>" : "<missing " + c.literalNames[v] + ">";
|
|
8713
|
-
var
|
|
8714
|
-
return
|
|
8713
|
+
var W = g, w = c.getTokenStream().LT(-1);
|
|
8714
|
+
return W.type === t.EOF && w !== null && (W = w), c.getTokenFactory().create(W.source, v, l, t.DEFAULT_CHANNEL, -1, -1, W.line, W.column);
|
|
8715
8715
|
} }, { key: "getExpectedTokens", value: function(c) {
|
|
8716
8716
|
return c.getExpectedTokens();
|
|
8717
8717
|
} }, { key: "getTokenErrorDisplay", value: function(c) {
|
|
@@ -8723,7 +8723,7 @@ var aR = v4((HT, j2) => {
|
|
|
8723
8723
|
return "'" + (c = (c = (c = c.replace(/\n/g, "\\n")).replace(/\r/g, "\\r")).replace(/\t/g, "\\t")) + "'";
|
|
8724
8724
|
} }, { key: "getErrorRecoverySet", value: function(c) {
|
|
8725
8725
|
for (var l = c._interp.atn, g = c._ctx, v = new O0(); g !== null && g.invokingState >= 0; ) {
|
|
8726
|
-
var
|
|
8726
|
+
var W = l.states[g.invokingState].transitions[0], w = l.nextTokens(W.followState);
|
|
8727
8727
|
v.addSet(w), g = g.parentCtx;
|
|
8728
8728
|
}
|
|
8729
8729
|
return v.removeOne(t.EPSILON), v;
|
|
@@ -8806,10 +8806,10 @@ var aR = v4((HT, j2) => {
|
|
|
8806
8806
|
c = Reflect.construct(l, arguments, g);
|
|
8807
8807
|
} else
|
|
8808
8808
|
c = l.apply(this, arguments);
|
|
8809
|
-
return function(v,
|
|
8810
|
-
if (
|
|
8811
|
-
return
|
|
8812
|
-
if (
|
|
8809
|
+
return function(v, W) {
|
|
8810
|
+
if (W && (uo(W) === "object" || typeof W == "function"))
|
|
8811
|
+
return W;
|
|
8812
|
+
if (W !== void 0)
|
|
8813
8813
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
8814
8814
|
return function(w) {
|
|
8815
8815
|
if (w === void 0)
|
|
@@ -8959,10 +8959,10 @@ var aR = v4((HT, j2) => {
|
|
|
8959
8959
|
return v;
|
|
8960
8960
|
if (v !== void 0)
|
|
8961
8961
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
8962
|
-
return function(
|
|
8963
|
-
if (
|
|
8962
|
+
return function(W) {
|
|
8963
|
+
if (W === void 0)
|
|
8964
8964
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
8965
|
-
return
|
|
8965
|
+
return W;
|
|
8966
8966
|
}(g);
|
|
8967
8967
|
}(this, A);
|
|
8968
8968
|
});
|
|
@@ -9033,10 +9033,10 @@ var aR = v4((HT, j2) => {
|
|
|
9033
9033
|
c = Reflect.construct(l, arguments, g);
|
|
9034
9034
|
} else
|
|
9035
9035
|
c = l.apply(this, arguments);
|
|
9036
|
-
return function(v,
|
|
9037
|
-
if (
|
|
9038
|
-
return
|
|
9039
|
-
if (
|
|
9036
|
+
return function(v, W) {
|
|
9037
|
+
if (W && (lo(W) === "object" || typeof W == "function"))
|
|
9038
|
+
return W;
|
|
9039
|
+
if (W !== void 0)
|
|
9040
9040
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
9041
9041
|
return function(w) {
|
|
9042
9042
|
if (w === void 0)
|
|
@@ -9052,15 +9052,15 @@ var aR = v4((HT, j2) => {
|
|
|
9052
9052
|
throw new TypeError("Cannot call a class as a function");
|
|
9053
9053
|
}(this, A), !Qh)
|
|
9054
9054
|
throw new Error("FileStream is only available when running in Node!");
|
|
9055
|
-
var
|
|
9056
|
-
return (v = M.call(this,
|
|
9055
|
+
var W = Jh.readFileSync(c, l || "utf-8");
|
|
9056
|
+
return (v = M.call(this, W, g)).fileName = c, v;
|
|
9057
9057
|
}
|
|
9058
9058
|
return a = A, d = [{ key: "fromPath", value: function(c, l, g) {
|
|
9059
9059
|
if (!Qh)
|
|
9060
9060
|
throw new Error("FileStream is only available when running in Node!");
|
|
9061
|
-
Jh.readFile(c, l, function(v,
|
|
9061
|
+
Jh.readFile(c, l, function(v, W) {
|
|
9062
9062
|
var w = null;
|
|
9063
|
-
|
|
9063
|
+
W !== null && (w = new Na(W, !0)), g(v, w);
|
|
9064
9064
|
});
|
|
9065
9065
|
} }], d && f4(a, d), Object.defineProperty(a, "prototype", { writable: !1 }), A;
|
|
9066
9066
|
}(Sa);
|
|
@@ -9170,10 +9170,10 @@ var aR = v4((HT, j2) => {
|
|
|
9170
9170
|
c = Reflect.construct(l, arguments, g);
|
|
9171
9171
|
} else
|
|
9172
9172
|
c = l.apply(this, arguments);
|
|
9173
|
-
return function(v,
|
|
9174
|
-
if (
|
|
9175
|
-
return
|
|
9176
|
-
if (
|
|
9173
|
+
return function(v, W) {
|
|
9174
|
+
if (W && (bo(W) === "object" || typeof W == "function"))
|
|
9175
|
+
return W;
|
|
9176
|
+
if (W !== void 0)
|
|
9177
9177
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
9178
9178
|
return function(w) {
|
|
9179
9179
|
if (w === void 0)
|
|
@@ -9222,8 +9222,8 @@ var aR = v4((HT, j2) => {
|
|
|
9222
9222
|
this.lazyInit();
|
|
9223
9223
|
var v = [];
|
|
9224
9224
|
l >= this.tokens.length && (l = this.tokens.length - 1);
|
|
9225
|
-
for (var
|
|
9226
|
-
var w = this.tokens[
|
|
9225
|
+
for (var W = c; W < l; W++) {
|
|
9226
|
+
var w = this.tokens[W];
|
|
9227
9227
|
if (w.type === t.EOF)
|
|
9228
9228
|
break;
|
|
9229
9229
|
(g === null || g.contains(w.type)) && v.push(w);
|
|
@@ -9264,19 +9264,19 @@ var aR = v4((HT, j2) => {
|
|
|
9264
9264
|
} }, { key: "getHiddenTokensToRight", value: function(c, l) {
|
|
9265
9265
|
if (l === void 0 && (l = -1), this.lazyInit(), c < 0 || c >= this.tokens.length)
|
|
9266
9266
|
throw c + " not in 0.." + this.tokens.length - 1;
|
|
9267
|
-
var g = this.nextTokenOnChannel(c + 1, wt.DEFAULT_TOKEN_CHANNEL), v = c + 1,
|
|
9268
|
-
return this.filterForChannel(v,
|
|
9267
|
+
var g = this.nextTokenOnChannel(c + 1, wt.DEFAULT_TOKEN_CHANNEL), v = c + 1, W = g === -1 ? this.tokens.length - 1 : g;
|
|
9268
|
+
return this.filterForChannel(v, W, l);
|
|
9269
9269
|
} }, { key: "getHiddenTokensToLeft", value: function(c, l) {
|
|
9270
9270
|
if (l === void 0 && (l = -1), this.lazyInit(), c < 0 || c >= this.tokens.length)
|
|
9271
9271
|
throw c + " not in 0.." + this.tokens.length - 1;
|
|
9272
9272
|
var g = this.previousTokenOnChannel(c - 1, wt.DEFAULT_TOKEN_CHANNEL);
|
|
9273
9273
|
if (g === c - 1)
|
|
9274
9274
|
return null;
|
|
9275
|
-
var v = g + 1,
|
|
9276
|
-
return this.filterForChannel(v,
|
|
9275
|
+
var v = g + 1, W = c - 1;
|
|
9276
|
+
return this.filterForChannel(v, W, l);
|
|
9277
9277
|
} }, { key: "filterForChannel", value: function(c, l, g) {
|
|
9278
|
-
for (var v = [],
|
|
9279
|
-
var w = this.tokens[
|
|
9278
|
+
for (var v = [], W = c; W < l + 1; W++) {
|
|
9279
|
+
var w = this.tokens[W];
|
|
9280
9280
|
g === -1 ? w.channel !== wt.DEFAULT_TOKEN_CHANNEL && v.push(w) : w.channel === g && v.push(w);
|
|
9281
9281
|
}
|
|
9282
9282
|
return v.length === 0 ? null : v;
|
|
@@ -9290,8 +9290,8 @@ var aR = v4((HT, j2) => {
|
|
|
9290
9290
|
if (g instanceof t && (g = g.tokenIndex), l === null || g === null || l < 0 || g < 0)
|
|
9291
9291
|
return "";
|
|
9292
9292
|
g >= this.tokens.length && (g = this.tokens.length - 1);
|
|
9293
|
-
for (var v = "",
|
|
9294
|
-
var w = this.tokens[
|
|
9293
|
+
for (var v = "", W = l; W < g + 1; W++) {
|
|
9294
|
+
var w = this.tokens[W];
|
|
9295
9295
|
if (w.type === t.EOF)
|
|
9296
9296
|
break;
|
|
9297
9297
|
v += w.text;
|
|
@@ -9369,10 +9369,10 @@ var aR = v4((HT, j2) => {
|
|
|
9369
9369
|
c = Reflect.construct(l, arguments, g);
|
|
9370
9370
|
} else
|
|
9371
9371
|
c = l.apply(this, arguments);
|
|
9372
|
-
return function(v,
|
|
9373
|
-
if (
|
|
9374
|
-
return
|
|
9375
|
-
if (
|
|
9372
|
+
return function(v, W) {
|
|
9373
|
+
if (W && (Mo(W) === "object" || typeof W == "function"))
|
|
9374
|
+
return W;
|
|
9375
|
+
if (W !== void 0)
|
|
9376
9376
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
9377
9377
|
return function(w) {
|
|
9378
9378
|
if (w === void 0)
|
|
@@ -9383,8 +9383,8 @@ var aR = v4((HT, j2) => {
|
|
|
9383
9383
|
});
|
|
9384
9384
|
function A(c, l) {
|
|
9385
9385
|
var g;
|
|
9386
|
-
return function(v,
|
|
9387
|
-
if (!(v instanceof
|
|
9386
|
+
return function(v, W) {
|
|
9387
|
+
if (!(v instanceof W))
|
|
9388
9388
|
throw new TypeError("Cannot call a class as a function");
|
|
9389
9389
|
}(this, A), (g = M.call(this, c)).channel = l === void 0 ? t.DEFAULT_CHANNEL : l, g;
|
|
9390
9390
|
}
|
|
@@ -9474,10 +9474,10 @@ var aR = v4((HT, j2) => {
|
|
|
9474
9474
|
c = Reflect.construct(l, arguments, g);
|
|
9475
9475
|
} else
|
|
9476
9476
|
c = l.apply(this, arguments);
|
|
9477
|
-
return function(v,
|
|
9478
|
-
if (
|
|
9479
|
-
return
|
|
9480
|
-
if (
|
|
9477
|
+
return function(v, W) {
|
|
9478
|
+
if (W && (ho(W) === "object" || typeof W == "function"))
|
|
9479
|
+
return W;
|
|
9480
|
+
if (W !== void 0)
|
|
9481
9481
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
9482
9482
|
return function(w) {
|
|
9483
9483
|
if (w === void 0)
|
|
@@ -9560,10 +9560,10 @@ var aR = v4((HT, j2) => {
|
|
|
9560
9560
|
c = Reflect.construct(l, arguments, g);
|
|
9561
9561
|
} else
|
|
9562
9562
|
c = l.apply(this, arguments);
|
|
9563
|
-
return function(v,
|
|
9564
|
-
if (
|
|
9565
|
-
return
|
|
9566
|
-
if (
|
|
9563
|
+
return function(v, W) {
|
|
9564
|
+
if (W && (zo(W) === "object" || typeof W == "function"))
|
|
9565
|
+
return W;
|
|
9566
|
+
if (W !== void 0)
|
|
9567
9567
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
9568
9568
|
return function(w) {
|
|
9569
9569
|
if (w === void 0)
|
|
@@ -9642,8 +9642,8 @@ var aR = v4((HT, j2) => {
|
|
|
9642
9642
|
return this._input.LT(1);
|
|
9643
9643
|
} }, { key: "notifyErrorListeners", value: function(c, l, g) {
|
|
9644
9644
|
g = g || null, (l = l || null) === null && (l = this.getCurrentToken()), this._syntaxErrors += 1;
|
|
9645
|
-
var v = l.line,
|
|
9646
|
-
this.getErrorListenerDispatch().syntaxError(this, l, v,
|
|
9645
|
+
var v = l.line, W = l.column;
|
|
9646
|
+
this.getErrorListenerDispatch().syntaxError(this, l, v, W, c, g);
|
|
9647
9647
|
} }, { key: "consume", value: function() {
|
|
9648
9648
|
var c = this.getCurrentToken();
|
|
9649
9649
|
c.type !== t.EOF && this.getInputStream().consume();
|
|
@@ -9687,18 +9687,18 @@ var aR = v4((HT, j2) => {
|
|
|
9687
9687
|
} }, { key: "inContext", value: function(c) {
|
|
9688
9688
|
return !1;
|
|
9689
9689
|
} }, { key: "isExpectedToken", value: function(c) {
|
|
9690
|
-
var l = this._interp.atn, g = this._ctx, v = l.states[this.state],
|
|
9691
|
-
if (
|
|
9690
|
+
var l = this._interp.atn, g = this._ctx, v = l.states[this.state], W = l.nextTokens(v);
|
|
9691
|
+
if (W.contains(c))
|
|
9692
9692
|
return !0;
|
|
9693
|
-
if (!
|
|
9693
|
+
if (!W.contains(t.EPSILON))
|
|
9694
9694
|
return !1;
|
|
9695
|
-
for (; g !== null && g.invokingState >= 0 &&
|
|
9695
|
+
for (; g !== null && g.invokingState >= 0 && W.contains(t.EPSILON); ) {
|
|
9696
9696
|
var w = l.states[g.invokingState].transitions[0];
|
|
9697
|
-
if ((
|
|
9697
|
+
if ((W = l.nextTokens(w.followState)).contains(c))
|
|
9698
9698
|
return !0;
|
|
9699
9699
|
g = g.parentCtx;
|
|
9700
9700
|
}
|
|
9701
|
-
return !(!
|
|
9701
|
+
return !(!W.contains(t.EPSILON) || c !== t.EOF);
|
|
9702
9702
|
} }, { key: "getExpectedTokens", value: function() {
|
|
9703
9703
|
return this._interp.atn.getExpectedTokens(this.state, this._ctx);
|
|
9704
9704
|
} }, { key: "getExpectedTokensWithinCurrentRule", value: function() {
|
|
@@ -9787,10 +9787,10 @@ var aR = v4((HT, j2) => {
|
|
|
9787
9787
|
c = Reflect.construct(l, arguments, g);
|
|
9788
9788
|
} else
|
|
9789
9789
|
c = l.apply(this, arguments);
|
|
9790
|
-
return function(v,
|
|
9791
|
-
if (
|
|
9792
|
-
return
|
|
9793
|
-
if (
|
|
9790
|
+
return function(v, W) {
|
|
9791
|
+
if (W && (fo(W) === "object" || typeof W == "function"))
|
|
9792
|
+
return W;
|
|
9793
|
+
if (W !== void 0)
|
|
9794
9794
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
9795
9795
|
return function(w) {
|
|
9796
9796
|
if (w === void 0)
|
|
@@ -9888,10 +9888,10 @@ var aR = v4((HT, j2) => {
|
|
|
9888
9888
|
c = Reflect.construct(l, arguments, g);
|
|
9889
9889
|
} else
|
|
9890
9890
|
c = l.apply(this, arguments);
|
|
9891
|
-
return function(v,
|
|
9892
|
-
if (
|
|
9893
|
-
return
|
|
9894
|
-
if (
|
|
9891
|
+
return function(v, W) {
|
|
9892
|
+
if (W && (Oo(W) === "object" || typeof W == "function"))
|
|
9893
|
+
return W;
|
|
9894
|
+
if (W !== void 0)
|
|
9895
9895
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
9896
9896
|
return function(w) {
|
|
9897
9897
|
if (w === void 0)
|
|
@@ -9971,10 +9971,10 @@ var aR = v4((HT, j2) => {
|
|
|
9971
9971
|
c = Reflect.construct(l, arguments, g);
|
|
9972
9972
|
} else
|
|
9973
9973
|
c = l.apply(this, arguments);
|
|
9974
|
-
return function(v,
|
|
9975
|
-
if (
|
|
9976
|
-
return
|
|
9977
|
-
if (
|
|
9974
|
+
return function(v, W) {
|
|
9975
|
+
if (W && (Ao(W) === "object" || typeof W == "function"))
|
|
9976
|
+
return W;
|
|
9977
|
+
if (W !== void 0)
|
|
9978
9978
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
9979
9979
|
return function(w) {
|
|
9980
9980
|
if (w === void 0)
|
|
@@ -9985,8 +9985,8 @@ var aR = v4((HT, j2) => {
|
|
|
9985
9985
|
});
|
|
9986
9986
|
function A(c, l) {
|
|
9987
9987
|
var g;
|
|
9988
|
-
return function(v,
|
|
9989
|
-
if (!(v instanceof
|
|
9988
|
+
return function(v, W) {
|
|
9989
|
+
if (!(v instanceof W))
|
|
9990
9990
|
throw new TypeError("Cannot call a class as a function");
|
|
9991
9991
|
}(this, A), (g = M.call(this, c, l)).children = null, g.start = null, g.stop = null, g.exception = null, g;
|
|
9992
9992
|
}
|
|
@@ -10229,8 +10229,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10229
10229
|
for (var c = [], l = this.reduceToSingleOperationPerIndex(O), g = M; g <= A && g < this.tokens.size; ) {
|
|
10230
10230
|
var v = l.get(g);
|
|
10231
10231
|
l.delete(g);
|
|
10232
|
-
var
|
|
10233
|
-
v == null ? (
|
|
10232
|
+
var W = this.tokens.get(g);
|
|
10233
|
+
v == null ? (W.type !== t.EOF && c.push(String(W.text)), g++) : g = v.execute(c);
|
|
10234
10234
|
}
|
|
10235
10235
|
if (A === this.tokens.size - 1) {
|
|
10236
10236
|
var w, b0 = _o(l.values());
|
|
@@ -10268,9 +10268,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10268
10268
|
if (v.index >= M.index && v.lastIndex <= M.lastIndex)
|
|
10269
10269
|
a[v.instructionIndex] = void 0;
|
|
10270
10270
|
else {
|
|
10271
|
-
var
|
|
10272
|
-
if (v.text != null || M.text != null ||
|
|
10273
|
-
if (!
|
|
10271
|
+
var W = v.lastIndex < M.index || v.index > M.lastIndex;
|
|
10272
|
+
if (v.text != null || M.text != null || W) {
|
|
10273
|
+
if (!W)
|
|
10274
10274
|
throw new Error("replace op boundaries of ".concat(M, " overlap with previous ").concat(v));
|
|
10275
10275
|
} else
|
|
10276
10276
|
a[v.instructionIndex] = void 0, M.index = Math.min(v.index, M.index), M.lastIndex = Math.max(v.lastIndex, M.lastIndex);
|
|
@@ -22194,7 +22194,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
22194
22194
|
population: G[5] | 0
|
|
22195
22195
|
};
|
|
22196
22196
|
}
|
|
22197
|
-
function
|
|
22197
|
+
function R(Q) {
|
|
22198
22198
|
Q && this._set(q(Q));
|
|
22199
22199
|
}
|
|
22200
22200
|
function S(Q, G) {
|
|
@@ -22209,7 +22209,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
22209
22209
|
n0 = Math.floor((I0 + Y0) / 2), G[n0] <= Q ? I0 = n0 : Y0 = n0;
|
|
22210
22210
|
return Y0;
|
|
22211
22211
|
}
|
|
22212
|
-
|
|
22212
|
+
R.prototype = {
|
|
22213
22213
|
_set: function(Q) {
|
|
22214
22214
|
this.name = Q.name, this.abbrs = Q.abbrs, this.untils = Q.untils, this.offsets = Q.offsets, this.population = Q.population;
|
|
22215
22215
|
},
|
|
@@ -22321,7 +22321,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
22321
22321
|
function n1(Q, G) {
|
|
22322
22322
|
Q = K0(Q);
|
|
22323
22323
|
var r0 = n[Q], n0;
|
|
22324
|
-
return r0 instanceof
|
|
22324
|
+
return r0 instanceof R ? r0 : typeof r0 == "string" ? (r0 = new R(r0), n[Q] = r0, r0) : i[Q] && G !== n1 && (n0 = n1(i[Q], n1)) ? (r0 = n[Q] = new R(), r0._set(n0), r0.name = o[Q], r0) : null;
|
|
22325
22325
|
}
|
|
22326
22326
|
function F0() {
|
|
22327
22327
|
var Q, G = [];
|
|
@@ -22378,7 +22378,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
22378
22378
|
var G = Array.prototype.slice.call(arguments, 0, -1), r0 = arguments[arguments.length - 1], n0 = e.utc.apply(null, G), I0;
|
|
22379
22379
|
return !e.isMoment(Q) && w0(n0) && (I0 = n1(r0)) && n0.add(I0.parse(n0), "minutes"), n0.tz(r0), n0;
|
|
22380
22380
|
}
|
|
22381
|
-
b1.version = t, b1.dataVersion = "", b1._zones = n, b1._links = i, b1._names = o, b1._countries = s, b1.add = C0, b1.link = U1, b1.load = O0, b1.zone = n1, b1.zoneExists = A0, b1.guess = y0, b1.names = F0, b1.Zone =
|
|
22381
|
+
b1.version = t, b1.dataVersion = "", b1._zones = n, b1._links = i, b1._names = o, b1._countries = s, b1.add = C0, b1.link = U1, b1.load = O0, b1.zone = n1, b1.zoneExists = A0, b1.guess = y0, b1.names = F0, b1.Zone = R, b1.unpack = q, b1.unpackBase60 = x, b1.needsOffset = w0, b1.moveInvalidForward = !0, b1.moveAmbiguousForward = !1, b1.countries = ve, b1.zonesForCountry = M0;
|
|
22382
22382
|
var G1 = e.fn;
|
|
22383
22383
|
e.tz = b1, e.defaultZone = null, e.updateOffset = function(Q, G) {
|
|
22384
22384
|
var r0 = e.defaultZone, n0;
|
|
@@ -25580,14 +25580,14 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
25580
25580
|
_setFunc(e, t, n) {
|
|
25581
25581
|
const i = [], s = [], { desc: o, paramsDesc: p, returnsDesc: b, params: f, hasMemberIndex: _ } = e;
|
|
25582
25582
|
for (const z of f) {
|
|
25583
|
-
const { type: q, name:
|
|
25583
|
+
const { type: q, name: R, defaultValue: S } = z;
|
|
25584
25584
|
i.push({
|
|
25585
|
-
name:
|
|
25586
|
-
desc: p?.[
|
|
25585
|
+
name: R,
|
|
25586
|
+
desc: p?.[R],
|
|
25587
25587
|
required: !S,
|
|
25588
25588
|
allowedTypeIDs: this._getAllowTypes(q),
|
|
25589
25589
|
displayType: q
|
|
25590
|
-
}), s.push(`${q === s0.UNDETERMINED ? "" : `${q} `}${
|
|
25590
|
+
}), s.push(`${q === s0.UNDETERMINED ? "" : `${q} `}${R}`);
|
|
25591
25591
|
}
|
|
25592
25592
|
const { returnedTypes: m = [] } = e, E = e.name, x = m.length > 1 || m.isBrackethesized ? `[${m.join(", ")}]` : m.toString(), T = {
|
|
25593
25593
|
name: E,
|
|
@@ -25700,7 +25700,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
25700
25700
|
_overloadsFuncGetTypes(e, t, n, i, s) {
|
|
25701
25701
|
let o = [], p = [], b = [], f = 0, _ = 0;
|
|
25702
25702
|
for (const [x, T] of e.entries()) {
|
|
25703
|
-
const { args: y, returnedTypes: z, name: q } = T,
|
|
25703
|
+
const { args: y, returnedTypes: z, name: q } = T, R = i || t.params[0] || t[y[0].name], { errMsg: S, warnMsg: L, matchCount: C } = this._overloadsCheckArgs(t, y, q, n, R);
|
|
25704
25704
|
if (C > _ && (f = x, _ = C), x === 0)
|
|
25705
25705
|
p = S, b = L, S.length || (o = z);
|
|
25706
25706
|
else if (S.length)
|
|
@@ -25923,8 +25923,8 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
25923
25923
|
for (const y of m) {
|
|
25924
25924
|
const z = this._removePrefix(y);
|
|
25925
25925
|
if (z === T || z === s0.FLOAT && T === s0.INT) {
|
|
25926
|
-
const q = this._getPrefix(e.type),
|
|
25927
|
-
if (ns.indexOf(q) >= ns.indexOf(
|
|
25926
|
+
const q = this._getPrefix(e.type), R = this._getPrefix(m[0]);
|
|
25927
|
+
if (ns.indexOf(q) >= ns.indexOf(R))
|
|
25928
25928
|
return;
|
|
25929
25929
|
if (z === s0.COLOR || z === s0.STRING)
|
|
25930
25930
|
return;
|
|
@@ -26010,9 +26010,9 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
26010
26010
|
if (T++, x += z.length <= 1 ? `; ${z[0]}` : `; [${z.join(", ")}]`, z.length !== E.length)
|
|
26011
26011
|
y = T;
|
|
26012
26012
|
else
|
|
26013
|
-
for (const [q,
|
|
26014
|
-
if (this._compareType(z[q],
|
|
26015
|
-
(z[q].includes(s0.FLOAT) && !
|
|
26013
|
+
for (const [q, R] of E.entries())
|
|
26014
|
+
if (this._compareType(z[q], R, !0))
|
|
26015
|
+
(z[q].includes(s0.FLOAT) && !R.includes(s0.FLOAT) || E[q] === `${s0.NA}`) && (E[q] = z[q]);
|
|
26016
26016
|
else {
|
|
26017
26017
|
y = T;
|
|
26018
26018
|
break;
|
|
@@ -26189,7 +26189,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
26189
26189
|
m || (this._count += 1);
|
|
26190
26190
|
const x = `$$count${this._count}`, T = `$forTo${this._blockCount}`, y = `$$toCount${p.start.tokenIndex}`, z = `_$sign${p.start.tokenIndex}`;
|
|
26191
26191
|
t || (this._dependsObj[T] = /* @__PURE__ */ new Map());
|
|
26192
|
-
const q = this._parserSingleExpression(b),
|
|
26192
|
+
const q = this._parserSingleExpression(b), R = this._parserSingleExpression(f), S = _ ? this._parserSingleExpression(_) : "", L = this._parserBlockLine(i, t, !1, !0);
|
|
26193
26193
|
Vr.includes(s) && (s = `$${s}`);
|
|
26194
26194
|
const C = `var ${E} = Date.now()`;
|
|
26195
26195
|
let K = `for (var ${s}=${q};(${this._prefixNameVar}.compareDataHandle(${s}) - ${y}) * ${z} >= 0; ${s}-=(${S || "1"}) * ${z}){
|
|
@@ -26201,7 +26201,7 @@ Arguments: ` + Array.prototype.slice.call(n).join("") + `
|
|
|
26201
26201
|
}`;
|
|
26202
26202
|
return K = `${C};
|
|
26203
26203
|
${m ? "" : `var ${x} = 0`};
|
|
26204
|
-
const ${y} = ${
|
|
26204
|
+
const ${y} = ${f?.type?.endsWith(" int") || !S || f?.type?.endsWith(" int") ? `Math.round(${R})` : R};
|
|
26205
26205
|
const ${z} = (${q})>${y} ? 1 : -1;
|
|
26206
26206
|
${K}`, t || this._codesCol[this._blockCount].push({
|
|
26207
26207
|
code: K,
|
|
@@ -26582,19 +26582,19 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
26582
26582
|
delete e.params;
|
|
26583
26583
|
const f = [], _ = [];
|
|
26584
26584
|
let m = [];
|
|
26585
|
-
const E = this._argChangeMap.get(o), x = o.replace(`${this._prefixNameFunc}.`, ""), T = (q,
|
|
26586
|
-
df.includes(x) &&
|
|
26585
|
+
const E = this._argChangeMap.get(o), x = o.replace(`${this._prefixNameFunc}.`, ""), T = (q, R) => {
|
|
26586
|
+
df.includes(x) && R === "length" && (q.type.startsWith(s0.SERIES) || q.type === s0.UNDETERMINED) && f.push("isSeriesLen: true");
|
|
26587
26587
|
const S = p && q.index === 0 && !q.hasMethod || E?.includes(q.index);
|
|
26588
26588
|
if (this._isInFunc && (q.arg || q.isArg) && this._currentFuncName) {
|
|
26589
26589
|
const C = this._argChangeMap.get(this._currentFuncName) || [];
|
|
26590
26590
|
S && !C.includes(q.index) && (C.push(q.index), this._argChangeMap.set(this._currentFuncName, C));
|
|
26591
26591
|
}
|
|
26592
|
-
s ? this._dependsObj[n] = /* @__PURE__ */ new Map() : i &&
|
|
26592
|
+
s ? this._dependsObj[n] = /* @__PURE__ */ new Map() : i && R === "expression" && (this._isExperssion = !0, this._dependsObj[`$arg_${R}${n}`] = /* @__PURE__ */ new Map());
|
|
26593
26593
|
let L = q.ruleType === j0.Brackethesized ? this._parserBrackethesized(q) : this._parserSingleExpression(q, S);
|
|
26594
|
-
if (
|
|
26594
|
+
if (R && !["arg0, arg1, ...", "number0, number1, ..."].includes(R)) {
|
|
26595
26595
|
q.isSourceType && f.push(`sourceTypeName: "${q.name}"`);
|
|
26596
|
-
const C = this._requestParamsHandle(i,
|
|
26597
|
-
L = C?.code || L, C?.paramsExpr && m.push(C?.paramsExpr), Vr.includes(
|
|
26596
|
+
const C = this._requestParamsHandle(i, R, n, s, L, o);
|
|
26597
|
+
L = C?.code || L, C?.paramsExpr && m.push(C?.paramsExpr), Vr.includes(R) && (R = `$${R}`), Vr.includes(L) && (L = `$${L}`), f.push(`${R}: ${L}`);
|
|
26598
26598
|
} else
|
|
26599
26599
|
_.push(L);
|
|
26600
26600
|
}, y = [];
|
|
@@ -27053,7 +27053,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
27053
27053
|
O0 += p();
|
|
27054
27054
|
return O0;
|
|
27055
27055
|
}
|
|
27056
|
-
function
|
|
27056
|
+
function R(M0) {
|
|
27057
27057
|
zp(M0, e, i.tokline, i.tokcol, i.tokpos);
|
|
27058
27058
|
}
|
|
27059
27059
|
function S(M0) {
|
|
@@ -27084,15 +27084,15 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
27084
27084
|
}
|
|
27085
27085
|
return oe === "n" ? (b1 = !0, !0) : ag.test(oe);
|
|
27086
27086
|
});
|
|
27087
|
-
if (M0 && (Q1 = M0 + Q1), cp = Q1, mO.test(Q1) && I1.has_directive("use strict") &&
|
|
27087
|
+
if (M0 && (Q1 = M0 + Q1), cp = Q1, mO.test(Q1) && I1.has_directive("use strict") && R("Legacy octal literals are not allowed in strict mode"), G1 && (Q1.endsWith("_") ? R("Numeric separators are not allowed at the end of numeric literals") : Q1.includes("__") && R("Only one underscore is allowed as numeric separator"), Q1 = Q1.replace(/_/g, "")), Q1.endsWith("n")) {
|
|
27088
27088
|
const oe = Q1.slice(0, -1), K1 = AO.test(oe), Q = Nz(oe, K1);
|
|
27089
27089
|
if (!g0 && lg.test(Q1) && !isNaN(Q))
|
|
27090
27090
|
return y("big_int", oe);
|
|
27091
|
-
|
|
27091
|
+
R("Invalid or unexpected token");
|
|
27092
27092
|
}
|
|
27093
27093
|
var zt = Nz(Q1);
|
|
27094
27094
|
if (isNaN(zt))
|
|
27095
|
-
|
|
27095
|
+
R("Invalid syntax: " + Q1);
|
|
27096
27096
|
else
|
|
27097
27097
|
return y("num", zt);
|
|
27098
27098
|
}
|
|
@@ -27119,10 +27119,10 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
27119
27119
|
return String.fromCharCode(K(2, O0));
|
|
27120
27120
|
case 117:
|
|
27121
27121
|
if (s() == "{") {
|
|
27122
|
-
for (p(!0), s() === "}" &&
|
|
27122
|
+
for (p(!0), s() === "}" && R("Expecting hex-character between {}"); s() == "0"; )
|
|
27123
27123
|
p(!0);
|
|
27124
27124
|
var g0, b1 = m("}", !0) - i.pos;
|
|
27125
|
-
return (b1 > 6 || (g0 = K(b1, O0)) > 1114111) &&
|
|
27125
|
+
return (b1 > 6 || (g0 = K(b1, O0)) > 1114111) && R("Unicode reference out of bounds"), p(!0), dg(g0);
|
|
27126
27126
|
}
|
|
27127
27127
|
return String.fromCharCode(K(4, O0));
|
|
27128
27128
|
case 10:
|
|
@@ -27132,18 +27132,18 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
27132
27132
|
`)
|
|
27133
27133
|
return p(!0, M0), "";
|
|
27134
27134
|
}
|
|
27135
|
-
return L(w0) ? (A0 && O0 && (w0 === "0" && !L(s()) ||
|
|
27135
|
+
return L(w0) ? (A0 && O0 && (w0 === "0" && !L(s()) || R("Octal escape sequences are not allowed in template strings")), $(w0, O0)) : w0;
|
|
27136
27136
|
}
|
|
27137
27137
|
function $(M0, O0) {
|
|
27138
27138
|
var A0 = s();
|
|
27139
|
-
return A0 >= "0" && A0 <= "7" && (M0 += p(!0), M0[0] <= "3" && (A0 = s()) >= "0" && A0 <= "7" && (M0 += p(!0))), M0 === "0" ? "\0" : (M0.length > 0 && I1.has_directive("use strict") && O0 &&
|
|
27139
|
+
return A0 >= "0" && A0 <= "7" && (M0 += p(!0), M0[0] <= "3" && (A0 = s()) >= "0" && A0 <= "7" && (M0 += p(!0))), M0 === "0" ? "\0" : (M0.length > 0 && I1.has_directive("use strict") && O0 && R("Legacy octal escape sequences are not allowed in strict mode"), String.fromCharCode(parseInt(M0, 8)));
|
|
27140
27140
|
}
|
|
27141
27141
|
function K(M0, O0) {
|
|
27142
27142
|
for (var A0 = 0; M0 > 0; --M0) {
|
|
27143
27143
|
if (!O0 && isNaN(parseInt(s(), 16)))
|
|
27144
27144
|
return parseInt(A0, 16) || "";
|
|
27145
27145
|
var w0 = p(!0);
|
|
27146
|
-
isNaN(parseInt(w0, 16)) &&
|
|
27146
|
+
isNaN(parseInt(w0, 16)) && R("Invalid hex-character pattern in string"), A0 += w0;
|
|
27147
27147
|
}
|
|
27148
27148
|
return parseInt(A0, 16);
|
|
27149
27149
|
}
|
|
@@ -27155,7 +27155,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
27155
27155
|
w0 = C(!0, !0);
|
|
27156
27156
|
else if (w0 == "\r" || w0 == `
|
|
27157
27157
|
`)
|
|
27158
|
-
|
|
27158
|
+
R("Unterminated string constant");
|
|
27159
27159
|
else if (w0 == O0)
|
|
27160
27160
|
break;
|
|
27161
27161
|
A0.push(w0);
|
|
@@ -27191,17 +27191,17 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
27191
27191
|
`), i.regex_allowed = M0, I1;
|
|
27192
27192
|
}), l0 = Z0("Unterminated identifier name", function() {
|
|
27193
27193
|
var M0 = [], O0, A0 = !1, w0 = function() {
|
|
27194
|
-
return A0 = !0, p(), s() !== "u" &&
|
|
27194
|
+
return A0 = !0, p(), s() !== "u" && R("Expecting UnicodeEscapeSequence -- uXXXX or u{XXXX}"), C(!1, !0);
|
|
27195
27195
|
};
|
|
27196
27196
|
if ((O0 = s()) === "\\")
|
|
27197
|
-
O0 = w0(), mb(O0) ||
|
|
27197
|
+
O0 = w0(), mb(O0) || R("First identifier char is an invalid identifier char");
|
|
27198
27198
|
else if (mb(O0))
|
|
27199
27199
|
p();
|
|
27200
27200
|
else
|
|
27201
27201
|
return "";
|
|
27202
27202
|
for (M0.push(O0); (O0 = s()) != null; ) {
|
|
27203
27203
|
if ((O0 = s()) === "\\")
|
|
27204
|
-
O0 = w0(), hp(O0) ||
|
|
27204
|
+
O0 = w0(), hp(O0) || R("Invalid escaped identifier char");
|
|
27205
27205
|
else {
|
|
27206
27206
|
if (!hp(O0))
|
|
27207
27207
|
break;
|
|
@@ -27210,11 +27210,11 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
27210
27210
|
M0.push(O0);
|
|
27211
27211
|
}
|
|
27212
27212
|
const g0 = M0.join("");
|
|
27213
|
-
return Qa.has(g0) && A0 &&
|
|
27213
|
+
return Qa.has(g0) && A0 && R("Escaped characters are not allowed in keywords"), g0;
|
|
27214
27214
|
}), y0 = Z0("Unterminated regular expression", function(M0) {
|
|
27215
27215
|
for (var O0 = !1, A0, w0 = !1; A0 = p(!0); )
|
|
27216
27216
|
if (Ab.has(A0))
|
|
27217
|
-
|
|
27217
|
+
R("Unexpected line terminator");
|
|
27218
27218
|
else if (O0)
|
|
27219
27219
|
/^[\u0000-\u007F]$/.test(A0) ? M0 += "\\" + A0 : M0 += A0, O0 = !1;
|
|
27220
27220
|
else if (A0 == "[")
|
|
@@ -27266,7 +27266,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
27266
27266
|
return O0(A0);
|
|
27267
27267
|
} catch (w0) {
|
|
27268
27268
|
if (w0 === _b)
|
|
27269
|
-
|
|
27269
|
+
R(M0);
|
|
27270
27270
|
else
|
|
27271
27271
|
throw w0;
|
|
27272
27272
|
}
|
|
@@ -27331,7 +27331,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
27331
27331
|
return U1();
|
|
27332
27332
|
break;
|
|
27333
27333
|
}
|
|
27334
|
-
|
|
27334
|
+
R("Unexpected character '" + O0 + "'");
|
|
27335
27335
|
}
|
|
27336
27336
|
return I1.next = p, I1.peek = s, I1.context = function(M0) {
|
|
27337
27337
|
return M0 && (i = M0), i;
|
|
@@ -27462,7 +27462,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
27462
27462
|
function q() {
|
|
27463
27463
|
return n.in_async === n.in_function || n.in_function === 0 && n.input.has_directive("use strict");
|
|
27464
27464
|
}
|
|
27465
|
-
function
|
|
27465
|
+
function R(k) {
|
|
27466
27466
|
i("punc", ";") ? o() : !k && !T() && _();
|
|
27467
27467
|
}
|
|
27468
27468
|
function S() {
|
|
@@ -27502,7 +27502,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
27502
27502
|
if (n.token.value == "import" && !Ut(s(), "punc", "(") && !Ut(s(), "punc", ".")) {
|
|
27503
27503
|
o();
|
|
27504
27504
|
var q1 = we();
|
|
27505
|
-
return
|
|
27505
|
+
return R(), q1;
|
|
27506
27506
|
}
|
|
27507
27507
|
return Ut(s(), "punc", ":") ? K() : X();
|
|
27508
27508
|
case "punc":
|
|
@@ -27528,13 +27528,13 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
27528
27528
|
case "continue":
|
|
27529
27529
|
return o(), a0(Ci);
|
|
27530
27530
|
case "debugger":
|
|
27531
|
-
return o(),
|
|
27531
|
+
return o(), R(), new ai();
|
|
27532
27532
|
case "do":
|
|
27533
27533
|
o();
|
|
27534
27534
|
var fe = kt(k);
|
|
27535
27535
|
m("keyword", "while");
|
|
27536
27536
|
var xe = S();
|
|
27537
|
-
return
|
|
27537
|
+
return R(!0), new xr({
|
|
27538
27538
|
body: fe,
|
|
27539
27539
|
condition: xe
|
|
27540
27540
|
});
|
|
@@ -27556,7 +27556,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
27556
27556
|
case "return":
|
|
27557
27557
|
n.in_function == 0 && !e.bare_returns && b("'return' outside of function"), o();
|
|
27558
27558
|
var Ye = null;
|
|
27559
|
-
return i("punc", ";") ? o() : T() || (Ye = P1(!0),
|
|
27559
|
+
return i("punc", ";") ? o() : T() || (Ye = P1(!0), R()), new Ie({
|
|
27560
27560
|
value: Ye
|
|
27561
27561
|
});
|
|
27562
27562
|
case "switch":
|
|
@@ -27567,7 +27567,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
27567
27567
|
case "throw":
|
|
27568
27568
|
o(), x(n.token) && b("Illegal newline after 'throw'");
|
|
27569
27569
|
var Ye = P1(!0);
|
|
27570
|
-
return
|
|
27570
|
+
return R(), new ec({
|
|
27571
27571
|
value: Ye
|
|
27572
27572
|
});
|
|
27573
27573
|
case "try":
|
|
@@ -27575,15 +27575,15 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
27575
27575
|
case "var":
|
|
27576
27576
|
o();
|
|
27577
27577
|
var q1 = Q1();
|
|
27578
|
-
return
|
|
27578
|
+
return R(), q1;
|
|
27579
27579
|
case "let":
|
|
27580
27580
|
o();
|
|
27581
27581
|
var q1 = zt();
|
|
27582
|
-
return
|
|
27582
|
+
return R(), q1;
|
|
27583
27583
|
case "const":
|
|
27584
27584
|
o();
|
|
27585
27585
|
var q1 = oe();
|
|
27586
|
-
return
|
|
27586
|
+
return R(), q1;
|
|
27587
27587
|
case "with":
|
|
27588
27588
|
return n.input.has_directive("use strict") && b("Strict mode may not include a with statement"), o(), new zn({
|
|
27589
27589
|
expression: S(),
|
|
@@ -27593,7 +27593,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
27593
27593
|
if (!Ut(s(), "punc", "(")) {
|
|
27594
27594
|
o();
|
|
27595
27595
|
var q1 = V0();
|
|
27596
|
-
return i("punc", ";") &&
|
|
27596
|
+
return i("punc", ";") && R(), q1;
|
|
27597
27597
|
}
|
|
27598
27598
|
}
|
|
27599
27599
|
}
|
|
@@ -27613,11 +27613,11 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
27613
27613
|
}), new Ct({ body: V, label: k });
|
|
27614
27614
|
}
|
|
27615
27615
|
function X(k) {
|
|
27616
|
-
return new s1({ body: (k = P1(!0),
|
|
27616
|
+
return new s1({ body: (k = P1(!0), R(), k) });
|
|
27617
27617
|
}
|
|
27618
27618
|
function a0(k) {
|
|
27619
27619
|
var V = null, Y;
|
|
27620
|
-
T() || (V = et(GM, !0)), V != null ? (Y = n.labels.find((h0) => h0.name === V.name), Y || b("Undefined label " + V.name), V.thedef = Y) : n.in_loop == 0 && b(k.TYPE + " not inside a loop or switch"),
|
|
27620
|
+
T() || (V = et(GM, !0)), V != null ? (Y = n.labels.find((h0) => h0.name === V.name), Y || b("Undefined label " + V.name), V.thedef = Y) : n.in_loop == 0 && b(k.TYPE + " not inside a loop or switch"), R();
|
|
27621
27621
|
var u0 = new k({ label: V });
|
|
27622
27622
|
return Y && Y.references.push(u0), u0;
|
|
27623
27623
|
}
|
|
@@ -28457,7 +28457,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
28457
28457
|
end: p()
|
|
28458
28458
|
});
|
|
28459
28459
|
var h0, U0, $0;
|
|
28460
|
-
return i("punc", "{") || V && (i("keyword", "class") || i("keyword", "function")) && Ut(s(), "punc") ? (U0 = P1(!1),
|
|
28460
|
+
return i("punc", "{") || V && (i("keyword", "class") || i("keyword", "function")) && Ut(s(), "punc") ? (U0 = P1(!1), R()) : (h0 = $(V)) instanceof Pe && V ? _(h0.start) : h0 instanceof Pe || h0 instanceof Ne || h0 instanceof In ? $0 = h0 : h0 instanceof vr || h0 instanceof be ? U0 = h0 : h0 instanceof s1 ? U0 = h0.body : _(h0.start), new st({
|
|
28461
28461
|
start: k,
|
|
28462
28462
|
is_default: V,
|
|
28463
28463
|
exported_value: U0,
|
|
@@ -30676,14 +30676,14 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
30676
30676
|
},
|
|
30677
30677
|
MethodDefinition: function(y) {
|
|
30678
30678
|
const z = y.key.type === "PrivateIdentifier", q = y.computed ? p(y.key) : new mt({ name: y.key.name || y.key.value });
|
|
30679
|
-
var
|
|
30679
|
+
var R = {
|
|
30680
30680
|
start: i(y),
|
|
30681
30681
|
end: s(y),
|
|
30682
30682
|
key: q,
|
|
30683
30683
|
value: p(y.value),
|
|
30684
30684
|
static: y.static
|
|
30685
30685
|
};
|
|
30686
|
-
return y.kind == "get" ? new (z ? ar : Fn)(
|
|
30686
|
+
return y.kind == "get" ? new (z ? ar : Fn)(R) : y.kind == "set" ? new (z ? Lr : cr)(R) : (R.is_generator = y.value.generator, R.async = y.value.async, new (z ? Nr : ft)(R));
|
|
30687
30687
|
},
|
|
30688
30688
|
FieldDefinition: function(y) {
|
|
30689
30689
|
let z;
|
|
@@ -30805,8 +30805,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
30805
30805
|
},
|
|
30806
30806
|
ImportDeclaration: function(y) {
|
|
30807
30807
|
var z = null, q = null;
|
|
30808
|
-
return y.specifiers.forEach(function(
|
|
30809
|
-
|
|
30808
|
+
return y.specifiers.forEach(function(R) {
|
|
30809
|
+
R.type === "ImportSpecifier" || R.type === "ImportNamespaceSpecifier" ? (q || (q = []), q.push(p(R))) : R.type === "ImportDefaultSpecifier" && (z = p(R));
|
|
30810
30810
|
}), new Nn({
|
|
30811
30811
|
start: i(y),
|
|
30812
30812
|
end: s(y),
|
|
@@ -30878,13 +30878,13 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
30878
30878
|
var z = y.value, q = {
|
|
30879
30879
|
start: i(y),
|
|
30880
30880
|
end: s(y)
|
|
30881
|
-
},
|
|
30882
|
-
if (
|
|
30881
|
+
}, R = y.regex;
|
|
30882
|
+
if (R && R.pattern)
|
|
30883
30883
|
return q.value = {
|
|
30884
|
-
source:
|
|
30885
|
-
flags:
|
|
30884
|
+
source: R.pattern,
|
|
30885
|
+
flags: R.flags
|
|
30886
30886
|
}, new Yt(q);
|
|
30887
|
-
if (
|
|
30887
|
+
if (R) {
|
|
30888
30888
|
const L = y.raw || z, C = L.match(/^\/(.*)\/(\w*)$/);
|
|
30889
30889
|
if (!C)
|
|
30890
30890
|
throw new Error("Invalid regex source " + L);
|
|
@@ -31357,8 +31357,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
31357
31357
|
quasi: m(z.template_string)
|
|
31358
31358
|
};
|
|
31359
31359
|
}), f(xt, function(z) {
|
|
31360
|
-
for (var q = [],
|
|
31361
|
-
S % 2 !== 0 ?
|
|
31360
|
+
for (var q = [], R = [], S = 0; S < z.segments.length; S++)
|
|
31361
|
+
S % 2 !== 0 ? R.push(m(z.segments[S])) : q.push({
|
|
31362
31362
|
type: "TemplateElement",
|
|
31363
31363
|
value: {
|
|
31364
31364
|
raw: z.segments[S].raw,
|
|
@@ -31369,7 +31369,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
31369
31369
|
return {
|
|
31370
31370
|
type: "TemplateLiteral",
|
|
31371
31371
|
quasis: q,
|
|
31372
|
-
expressions:
|
|
31372
|
+
expressions: R
|
|
31373
31373
|
};
|
|
31374
31374
|
}), f(Ne, function(z) {
|
|
31375
31375
|
return {
|
|
@@ -31381,12 +31381,12 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
31381
31381
|
body: T("BlockStatement", z)
|
|
31382
31382
|
};
|
|
31383
31383
|
}), f(be, function(z, q) {
|
|
31384
|
-
var
|
|
31384
|
+
var R = q.is_generator !== void 0 ? q.is_generator : z.is_generator;
|
|
31385
31385
|
return {
|
|
31386
31386
|
type: "FunctionExpression",
|
|
31387
31387
|
id: m(z.name),
|
|
31388
31388
|
params: z.argnames.map(m),
|
|
31389
|
-
generator:
|
|
31389
|
+
generator: R,
|
|
31390
31390
|
async: z.async,
|
|
31391
31391
|
body: T("BlockStatement", z)
|
|
31392
31392
|
};
|
|
@@ -31455,20 +31455,20 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
31455
31455
|
const n = (y) => {
|
|
31456
31456
|
const z = [];
|
|
31457
31457
|
if (y)
|
|
31458
|
-
for (const { key: q, value:
|
|
31458
|
+
for (const { key: q, value: R } of y.properties) {
|
|
31459
31459
|
const S = Qp(q) ? { type: "Identifier", name: q } : { type: "Literal", value: q, raw: JSON.stringify(q) };
|
|
31460
31460
|
z.push({
|
|
31461
31461
|
type: "ImportAttribute",
|
|
31462
31462
|
key: S,
|
|
31463
|
-
value: m(
|
|
31463
|
+
value: m(R)
|
|
31464
31464
|
});
|
|
31465
31465
|
}
|
|
31466
31466
|
return z;
|
|
31467
31467
|
};
|
|
31468
31468
|
f(st, function(z) {
|
|
31469
31469
|
if (z.exported_names) {
|
|
31470
|
-
var q = z.exported_names[0],
|
|
31471
|
-
if (
|
|
31470
|
+
var q = z.exported_names[0], R = q.name;
|
|
31471
|
+
if (R.name === "*" && !R.quote) {
|
|
31472
31472
|
var S = q.foreign_name, L = S.name === "*" && !S.quote ? null : m(S);
|
|
31473
31473
|
return {
|
|
31474
31474
|
type: "ExportAllDeclaration",
|
|
@@ -31501,8 +31501,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
31501
31501
|
type: "ImportDefaultSpecifier",
|
|
31502
31502
|
local: m(z.imported_name)
|
|
31503
31503
|
}), z.imported_names) {
|
|
31504
|
-
var
|
|
31505
|
-
|
|
31504
|
+
var R = z.imported_names[0].foreign_name;
|
|
31505
|
+
R.name === "*" && !R.quote ? q.push({
|
|
31506
31506
|
type: "ImportNamespaceSpecifier",
|
|
31507
31507
|
local: m(z.imported_names[0].name)
|
|
31508
31508
|
}) : z.imported_names.forEach(function(S) {
|
|
@@ -31597,14 +31597,14 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
31597
31597
|
properties: z.properties.map(m)
|
|
31598
31598
|
};
|
|
31599
31599
|
}), f(Fe, function(z, q) {
|
|
31600
|
-
var
|
|
31600
|
+
var R = z.key instanceof S0 ? m(z.key) : {
|
|
31601
31601
|
type: "Identifier",
|
|
31602
31602
|
value: z.key
|
|
31603
31603
|
};
|
|
31604
|
-
typeof z.key == "number" && (
|
|
31604
|
+
typeof z.key == "number" && (R = {
|
|
31605
31605
|
type: "Literal",
|
|
31606
31606
|
value: Number(z.key)
|
|
31607
|
-
}), typeof z.key == "string" && (
|
|
31607
|
+
}), typeof z.key == "string" && (R = {
|
|
31608
31608
|
type: "Identifier",
|
|
31609
31609
|
name: z.key
|
|
31610
31610
|
});
|
|
@@ -31630,7 +31630,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
31630
31630
|
static: z.static
|
|
31631
31631
|
} : z instanceof Kt ? {
|
|
31632
31632
|
type: "PropertyDefinition",
|
|
31633
|
-
key:
|
|
31633
|
+
key: R,
|
|
31634
31634
|
value: m(z.value),
|
|
31635
31635
|
computed: C,
|
|
31636
31636
|
static: z.static
|
|
@@ -31645,7 +31645,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
31645
31645
|
type: "Property",
|
|
31646
31646
|
computed: C,
|
|
31647
31647
|
kind: S,
|
|
31648
|
-
key:
|
|
31648
|
+
key: R,
|
|
31649
31649
|
value: m(z.value)
|
|
31650
31650
|
};
|
|
31651
31651
|
}), f(ft, function(z, q) {
|
|
@@ -31659,14 +31659,14 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
31659
31659
|
key: m(z.key),
|
|
31660
31660
|
value: m(z.value)
|
|
31661
31661
|
};
|
|
31662
|
-
const
|
|
31662
|
+
const R = z instanceof Nr ? {
|
|
31663
31663
|
type: "PrivateIdentifier",
|
|
31664
31664
|
name: z.key.name
|
|
31665
31665
|
} : m(z.key);
|
|
31666
31666
|
return {
|
|
31667
31667
|
type: "MethodDefinition",
|
|
31668
31668
|
kind: z.key === "constructor" ? "constructor" : "method",
|
|
31669
|
-
key:
|
|
31669
|
+
key: R,
|
|
31670
31670
|
value: m(z.value),
|
|
31671
31671
|
computed: !(z.key instanceof D1) || z.key instanceof N0,
|
|
31672
31672
|
static: z.static
|
|
@@ -31705,18 +31705,18 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
31705
31705
|
type: "Literal",
|
|
31706
31706
|
value: z.name
|
|
31707
31707
|
};
|
|
31708
|
-
var
|
|
31708
|
+
var R = z.definition();
|
|
31709
31709
|
return {
|
|
31710
31710
|
type: "Identifier",
|
|
31711
|
-
name:
|
|
31711
|
+
name: R ? R.mangled_name || R.name : z.name
|
|
31712
31712
|
};
|
|
31713
31713
|
}), f(Yt, function(z) {
|
|
31714
|
-
const q = z.value.source,
|
|
31714
|
+
const q = z.value.source, R = z.value.flags;
|
|
31715
31715
|
return {
|
|
31716
31716
|
type: "Literal",
|
|
31717
31717
|
value: null,
|
|
31718
31718
|
raw: z.print_to_string(),
|
|
31719
|
-
regex: { pattern: q, flags:
|
|
31719
|
+
regex: { pattern: q, flags: R }
|
|
31720
31720
|
};
|
|
31721
31721
|
}), f(V1, function(z) {
|
|
31722
31722
|
var q = z.value;
|
|
@@ -31737,13 +31737,13 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
31737
31737
|
return null;
|
|
31738
31738
|
}), nt.DEFMETHOD("to_mozilla_ast", A1.prototype.to_mozilla_ast), c1.DEFMETHOD("to_mozilla_ast", be.prototype.to_mozilla_ast);
|
|
31739
31739
|
function i(y) {
|
|
31740
|
-
var z = y.loc, q = z && z.start,
|
|
31740
|
+
var z = y.loc, q = z && z.start, R = y.range;
|
|
31741
31741
|
return new $b(
|
|
31742
31742
|
"",
|
|
31743
31743
|
"",
|
|
31744
31744
|
q && q.line || 0,
|
|
31745
31745
|
q && q.column || 0,
|
|
31746
|
-
|
|
31746
|
+
R ? R[0] : y.start,
|
|
31747
31747
|
!1,
|
|
31748
31748
|
[],
|
|
31749
31749
|
[],
|
|
@@ -31751,13 +31751,13 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
31751
31751
|
);
|
|
31752
31752
|
}
|
|
31753
31753
|
function s(y) {
|
|
31754
|
-
var z = y.loc, q = z && z.end,
|
|
31754
|
+
var z = y.loc, q = z && z.end, R = y.range;
|
|
31755
31755
|
return new $b(
|
|
31756
31756
|
"",
|
|
31757
31757
|
"",
|
|
31758
31758
|
q && q.line || 0,
|
|
31759
31759
|
q && q.column || 0,
|
|
31760
|
-
|
|
31760
|
+
R ? R[0] : y.end,
|
|
31761
31761
|
!1,
|
|
31762
31762
|
[],
|
|
31763
31763
|
[],
|
|
@@ -31777,10 +31777,10 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
31777
31777
|
return o = z, q;
|
|
31778
31778
|
};
|
|
31779
31779
|
function b(y, z) {
|
|
31780
|
-
var q = y.start,
|
|
31781
|
-
return q &&
|
|
31780
|
+
var q = y.start, R = y.end;
|
|
31781
|
+
return q && R && (q.pos != null && R.endpos != null && (z.range = [q.pos, R.endpos]), q.line && (z.loc = {
|
|
31782
31782
|
start: { line: q.line, column: q.col },
|
|
31783
|
-
end:
|
|
31783
|
+
end: R.endline ? { line: R.endline, column: R.endcol } : null
|
|
31784
31784
|
}, q.file && (z.loc.source = q.file))), z;
|
|
31785
31785
|
}
|
|
31786
31786
|
function f(y, z) {
|
|
@@ -32022,7 +32022,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32022
32022
|
function T(G) {
|
|
32023
32023
|
return " ".repeat(r.indent_start + i - G * r.indent_level);
|
|
32024
32024
|
}
|
|
32025
|
-
var y = !1, z = !1, q = !1,
|
|
32025
|
+
var y = !1, z = !1, q = !1, R = 0, S = !1, L = !1, C = -1, $ = "", K, X, a0 = r.source_map && [], J = a0 ? function() {
|
|
32026
32026
|
a0.forEach(function(G) {
|
|
32027
32027
|
try {
|
|
32028
32028
|
let { name: r0, token: n0 } = G;
|
|
@@ -32038,10 +32038,10 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32038
32038
|
}
|
|
32039
32039
|
}), a0 = [];
|
|
32040
32040
|
} : un, R0 = r.max_line_len ? function() {
|
|
32041
|
-
if (s > r.max_line_len &&
|
|
32041
|
+
if (s > r.max_line_len && R) {
|
|
32042
32042
|
b.insertAt(`
|
|
32043
|
-
`,
|
|
32044
|
-
const r0 = b.length() -
|
|
32043
|
+
`, R);
|
|
32044
|
+
const r0 = b.length() - R - 1;
|
|
32045
32045
|
if (a0) {
|
|
32046
32046
|
var G = r0 - s;
|
|
32047
32047
|
a0.forEach(function(n0) {
|
|
@@ -32050,7 +32050,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32050
32050
|
}
|
|
32051
32051
|
o++, p++, s = r0;
|
|
32052
32052
|
}
|
|
32053
|
-
|
|
32053
|
+
R && (R = 0, J());
|
|
32054
32054
|
} : un, l0 = J1("( [ + * / - , . `");
|
|
32055
32055
|
function y0(G) {
|
|
32056
32056
|
G = String(G);
|
|
@@ -32065,7 +32065,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32065
32065
|
name: X,
|
|
32066
32066
|
line: o,
|
|
32067
32067
|
col: s
|
|
32068
|
-
}), K = !1,
|
|
32068
|
+
}), K = !1, R || J()), b.append(G), y = G[G.length - 1] == "(", p += G.length;
|
|
32069
32069
|
var I0 = G.split(/\r?\n/), Y0 = I0.length - 1;
|
|
32070
32070
|
o += Y0, s += I0[0].length, Y0 > 0 && (R0(), s = I0[Y0].length), $ = G;
|
|
32071
32071
|
}
|
|
@@ -32093,7 +32093,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32093
32093
|
` && (b.insertAt(`
|
|
32094
32094
|
`, C), p++, o++), C++;
|
|
32095
32095
|
} : r.max_line_len ? function() {
|
|
32096
|
-
R0(),
|
|
32096
|
+
R0(), R = b.length();
|
|
32097
32097
|
} : un, U1 = r.beautify ? function() {
|
|
32098
32098
|
y0(";");
|
|
32099
32099
|
} : function() {
|
|
@@ -32131,7 +32131,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32131
32131
|
K = G, X = r0;
|
|
32132
32132
|
} : un;
|
|
32133
32133
|
function G1() {
|
|
32134
|
-
return
|
|
32134
|
+
return R && R0(), b.toString();
|
|
32135
32135
|
}
|
|
32136
32136
|
function Q1(G) {
|
|
32137
32137
|
return r.preserve_annotations || (G = G.replace(Iz, " ")), /^\s*$/.test(G) ? "" : G.replace(/(<\s*\/\s*)(script)/i, "<\\/$2");
|
|
@@ -32294,19 +32294,19 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32294
32294
|
z.DEFMETHOD("_codegen", q);
|
|
32295
32295
|
}
|
|
32296
32296
|
S0.DEFMETHOD("print", function(z, q) {
|
|
32297
|
-
var
|
|
32298
|
-
|
|
32297
|
+
var R = this, S = R._codegen;
|
|
32298
|
+
R instanceof O1 ? z.active_scope = R : !z.use_asm && R instanceof Pt && R.value == "use asm" && (z.use_asm = z.active_scope);
|
|
32299
32299
|
function L() {
|
|
32300
|
-
z.prepend_comments(
|
|
32300
|
+
z.prepend_comments(R), R.add_source_map(z), S(R, z), z.append_comments(R);
|
|
32301
32301
|
}
|
|
32302
|
-
z.push_node(
|
|
32302
|
+
z.push_node(R), q || R.needs_parens(z) ? z.with_parens(L) : L(), z.pop_node(), R === z.use_asm && (z.use_asm = null);
|
|
32303
32303
|
}), S0.DEFMETHOD("_print", S0.prototype.print), S0.DEFMETHOD("print_to_string", function(z) {
|
|
32304
32304
|
var q = YM(z);
|
|
32305
32305
|
return this.print(q), q.get();
|
|
32306
32306
|
});
|
|
32307
32307
|
function e(z, q) {
|
|
32308
|
-
Array.isArray(z) ? z.forEach(function(
|
|
32309
|
-
e(
|
|
32308
|
+
Array.isArray(z) ? z.forEach(function(R) {
|
|
32309
|
+
e(R, q);
|
|
32310
32310
|
}) : z.DEFMETHOD("needs_parens", q);
|
|
32311
32311
|
}
|
|
32312
32312
|
e(S0, H1), e(be, function(z) {
|
|
@@ -32347,15 +32347,15 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32347
32347
|
if (q instanceof r1 && q.expression === this || q instanceof me || q instanceof f1 && q.expression === this)
|
|
32348
32348
|
return !0;
|
|
32349
32349
|
if (q instanceof f0) {
|
|
32350
|
-
const
|
|
32351
|
-
if (S === "??" && (
|
|
32350
|
+
const R = q.operator, S = this.operator;
|
|
32351
|
+
if (S === "??" && (R === "||" || R === "&&") || R === "??" && (S === "||" || S === "&&"))
|
|
32352
32352
|
return !0;
|
|
32353
|
-
const L = Wn[
|
|
32354
|
-
if (L > C || L == C && (this === q.right ||
|
|
32353
|
+
const L = Wn[R], C = Wn[S];
|
|
32354
|
+
if (L > C || L == C && (this === q.right || R == "**"))
|
|
32355
32355
|
return !0;
|
|
32356
32356
|
}
|
|
32357
32357
|
if (q instanceof Qn) {
|
|
32358
|
-
const
|
|
32358
|
+
const R = this.operator, S = Wn.in, L = Wn[R];
|
|
32359
32359
|
if (S > L || S == L && this === q.value)
|
|
32360
32360
|
return !0;
|
|
32361
32361
|
}
|
|
@@ -32364,8 +32364,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32364
32364
|
if (q instanceof r1 && q.expression === this || q instanceof me || q instanceof f1 && q.expression === this)
|
|
32365
32365
|
return !0;
|
|
32366
32366
|
if (q instanceof f0) {
|
|
32367
|
-
const
|
|
32368
|
-
if (S > L || S == L && (this === q.right ||
|
|
32367
|
+
const R = q.operator, S = Wn[R], L = Wn.in;
|
|
32368
|
+
if (S > L || S == L && (this === q.right || R == "**"))
|
|
32369
32369
|
return !0;
|
|
32370
32370
|
}
|
|
32371
32371
|
if (q instanceof Qn && this === q.value)
|
|
@@ -32380,15 +32380,15 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32380
32380
|
}), e(f1, function(z) {
|
|
32381
32381
|
var q = z.parent();
|
|
32382
32382
|
if (q instanceof Dt && q.expression === this)
|
|
32383
|
-
return bt(this, (
|
|
32384
|
-
if (
|
|
32383
|
+
return bt(this, (R) => {
|
|
32384
|
+
if (R instanceof O1)
|
|
32385
32385
|
return !0;
|
|
32386
|
-
if (
|
|
32386
|
+
if (R instanceof r1)
|
|
32387
32387
|
return Jt;
|
|
32388
32388
|
});
|
|
32389
32389
|
}), e(r1, function(z) {
|
|
32390
|
-
var q = z.parent(),
|
|
32391
|
-
return q instanceof Dt && q.expression === this || q instanceof st && q.is_default && this.expression instanceof be ? !0 : this.expression instanceof be && q instanceof f1 && q.expression === this && (
|
|
32390
|
+
var q = z.parent(), R;
|
|
32391
|
+
return q instanceof Dt && q.expression === this || q instanceof st && q.is_default && this.expression instanceof be ? !0 : this.expression instanceof be && q instanceof f1 && q.expression === this && (R = z.parent(1)) instanceof L1 && R.left === q;
|
|
32392
32392
|
}), e(Dt, function(z) {
|
|
32393
32393
|
var q = z.parent();
|
|
32394
32394
|
if (this.args.length === 0 && (q instanceof f1 || q instanceof r1 && q.expression === this || q instanceof Pn && q.prefix === this))
|
|
@@ -32396,15 +32396,15 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32396
32396
|
}), e(m1, function(z) {
|
|
32397
32397
|
var q = z.parent();
|
|
32398
32398
|
if (q instanceof f1 && q.expression === this) {
|
|
32399
|
-
var
|
|
32400
|
-
if (
|
|
32399
|
+
var R = this.getValue();
|
|
32400
|
+
if (R < 0 || /^0/.test(x(R)))
|
|
32401
32401
|
return !0;
|
|
32402
32402
|
}
|
|
32403
32403
|
}), e(hr, function(z) {
|
|
32404
32404
|
var q = z.parent();
|
|
32405
32405
|
if (q instanceof f1 && q.expression === this) {
|
|
32406
|
-
var
|
|
32407
|
-
if (
|
|
32406
|
+
var R = this.getValue();
|
|
32407
|
+
if (R.startsWith("-"))
|
|
32408
32408
|
return !0;
|
|
32409
32409
|
}
|
|
32410
32410
|
}), e([L1, W1], function(z) {
|
|
@@ -32417,18 +32417,18 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32417
32417
|
q.print("..."), z.expression.print(q);
|
|
32418
32418
|
}), r(de, function(z, q) {
|
|
32419
32419
|
q.print(z.is_array ? "[" : "{");
|
|
32420
|
-
var
|
|
32420
|
+
var R = z.names.length;
|
|
32421
32421
|
z.names.forEach(function(S, L) {
|
|
32422
|
-
L > 0 && q.comma(), S.print(q), L ==
|
|
32422
|
+
L > 0 && q.comma(), S.print(q), L == R - 1 && S instanceof Ln && q.comma();
|
|
32423
32423
|
}), q.print(z.is_array ? "]" : "}");
|
|
32424
32424
|
}), r(ai, function(z, q) {
|
|
32425
32425
|
q.print("debugger"), q.semicolon();
|
|
32426
32426
|
});
|
|
32427
|
-
function t(z, q,
|
|
32427
|
+
function t(z, q, R, S) {
|
|
32428
32428
|
var L = z.length - 1;
|
|
32429
|
-
|
|
32430
|
-
|
|
32431
|
-
}),
|
|
32429
|
+
R.in_directive = S, z.forEach(function(C, $) {
|
|
32430
|
+
R.in_directive === !0 && !(C instanceof Pt || C instanceof te || C instanceof s1 && C.body instanceof w1) && (R.in_directive = !1), C instanceof te || (R.indent(), C.print(R), $ == L && q || (R.newline(), q && R.newline())), R.in_directive === !0 && C instanceof s1 && C.body instanceof w1 && (R.in_directive = !1);
|
|
32431
|
+
}), R.in_directive = !1;
|
|
32432
32432
|
}
|
|
32433
32433
|
cs.DEFMETHOD("_do_print_body", function(z) {
|
|
32434
32434
|
m(this.body, z);
|
|
@@ -32446,9 +32446,9 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32446
32446
|
q.append_comments(z, !0);
|
|
32447
32447
|
}), q.add_mapping(z.end), q.print("}");
|
|
32448
32448
|
}
|
|
32449
|
-
function i(z, q,
|
|
32449
|
+
function i(z, q, R) {
|
|
32450
32450
|
z.body.length > 0 ? q.with_block(function() {
|
|
32451
|
-
t(z.body, !1, q,
|
|
32451
|
+
t(z.body, !1, q, R), q.add_mapping(z.end);
|
|
32452
32452
|
}) : n(z, q);
|
|
32453
32453
|
}
|
|
32454
32454
|
r(A1, function(z, q) {
|
|
@@ -32476,29 +32476,29 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32476
32476
|
z.expression.print(q);
|
|
32477
32477
|
}), q.space(), z._do_print_body(q);
|
|
32478
32478
|
}), c1.DEFMETHOD("_do_print", function(z, q) {
|
|
32479
|
-
var
|
|
32480
|
-
q || (
|
|
32481
|
-
|
|
32479
|
+
var R = this;
|
|
32480
|
+
q || (R.async && (z.print("async"), z.space()), z.print("function"), R.is_generator && z.star(), R.name && z.space()), R.name instanceof D1 ? R.name.print(z) : q && R.name instanceof S0 && z.with_square(function() {
|
|
32481
|
+
R.name.print(z);
|
|
32482
32482
|
}), z.with_parens(function() {
|
|
32483
|
-
|
|
32483
|
+
R.argnames.forEach(function(S, L) {
|
|
32484
32484
|
L && z.comma(), S.print(z);
|
|
32485
32485
|
});
|
|
32486
|
-
}), z.space(), i(
|
|
32486
|
+
}), z.space(), i(R, z, !0);
|
|
32487
32487
|
}), r(c1, function(z, q) {
|
|
32488
32488
|
z._do_print(q), q.gc_scope(z);
|
|
32489
32489
|
}), r(Pn, function(z, q) {
|
|
32490
|
-
var
|
|
32490
|
+
var R = z.prefix, S = R instanceof c1 || R instanceof f0 || R instanceof W1 || R instanceof k1 || R instanceof me || R instanceof ye && R.expression instanceof ne;
|
|
32491
32491
|
S && q.print("("), z.prefix.print(q), S && q.print(")"), z.template_string.print(q);
|
|
32492
32492
|
}), r(xt, function(z, q) {
|
|
32493
|
-
var
|
|
32493
|
+
var R = q.parent() instanceof Pn;
|
|
32494
32494
|
q.print("`");
|
|
32495
32495
|
for (var S = 0; S < z.segments.length; S++)
|
|
32496
|
-
z.segments[S] instanceof Wr ?
|
|
32496
|
+
z.segments[S] instanceof Wr ? R ? q.print(z.segments[S].raw) : q.print_template_string_chars(z.segments[S].value) : (q.print("${"), z.segments[S].print(q), q.print("}"));
|
|
32497
32497
|
q.print("`");
|
|
32498
32498
|
}), r(Wr, function(z, q) {
|
|
32499
32499
|
q.print_template_string_chars(z.value);
|
|
32500
32500
|
}), Ee.DEFMETHOD("_do_print", function(z) {
|
|
32501
|
-
var q = this,
|
|
32501
|
+
var q = this, R = z.parent(), S = R instanceof f0 && !(R instanceof L1) || R instanceof me || R instanceof r1 && q === R.expression;
|
|
32502
32502
|
S && z.print("("), q.async && (z.print("async"), z.space()), q.argnames.length === 1 && q.argnames[0] instanceof D1 ? q.argnames[0].print(z) : z.with_parens(function() {
|
|
32503
32503
|
q.argnames.forEach(function(C, $) {
|
|
32504
32504
|
$ && z.comma(), C.print(z);
|
|
@@ -32514,8 +32514,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32514
32514
|
}), Vt.DEFMETHOD("_do_print", function(z, q) {
|
|
32515
32515
|
if (z.print(q), this.value) {
|
|
32516
32516
|
z.space();
|
|
32517
|
-
const
|
|
32518
|
-
|
|
32517
|
+
const R = this.value.start.comments_before;
|
|
32518
|
+
R && R.length && !z.printed_comments.has(R) ? (z.print("("), this.value.print(z), z.print(")")) : this.value.print(z);
|
|
32519
32519
|
}
|
|
32520
32520
|
z.semicolon();
|
|
32521
32521
|
}), r(Ie, function(z, q) {
|
|
@@ -32523,11 +32523,11 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32523
32523
|
}), r(ec, function(z, q) {
|
|
32524
32524
|
z._do_print(q, "throw");
|
|
32525
32525
|
}), r(On, function(z, q) {
|
|
32526
|
-
var
|
|
32527
|
-
q.print("yield" +
|
|
32526
|
+
var R = z.is_star ? "*" : "";
|
|
32527
|
+
q.print("yield" + R), z.expression && (q.space(), z.expression.print(q));
|
|
32528
32528
|
}), r(fn, function(z, q) {
|
|
32529
32529
|
q.print("await"), q.space();
|
|
32530
|
-
var
|
|
32530
|
+
var R = z.expression, S = !(R instanceof r1 || R instanceof N0 || R instanceof f1 || R instanceof me || R instanceof V1 || R instanceof fn || R instanceof ne);
|
|
32531
32531
|
S && q.print("("), z.expression.print(q), S && q.print(")");
|
|
32532
32532
|
}), nr.DEFMETHOD("_do_print", function(z, q) {
|
|
32533
32533
|
z.print(q), this.label && (z.space(), this.label.print(z)), z.semicolon();
|
|
@@ -32537,20 +32537,20 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32537
32537
|
z._do_print(q, "continue");
|
|
32538
32538
|
});
|
|
32539
32539
|
function s(z, q) {
|
|
32540
|
-
var
|
|
32541
|
-
if (q.option("braces") || q.option("ie8") &&
|
|
32542
|
-
return T(
|
|
32543
|
-
if (!
|
|
32540
|
+
var R = z.body;
|
|
32541
|
+
if (q.option("braces") || q.option("ie8") && R instanceof xr)
|
|
32542
|
+
return T(R, q);
|
|
32543
|
+
if (!R)
|
|
32544
32544
|
return q.force_semicolon();
|
|
32545
32545
|
for (; ; )
|
|
32546
|
-
if (
|
|
32547
|
-
if (!
|
|
32546
|
+
if (R instanceof Z1) {
|
|
32547
|
+
if (!R.alternative) {
|
|
32548
32548
|
T(z.body, q);
|
|
32549
32549
|
return;
|
|
32550
32550
|
}
|
|
32551
|
-
|
|
32552
|
-
} else if (
|
|
32553
|
-
|
|
32551
|
+
R = R.alternative;
|
|
32552
|
+
} else if (R instanceof cs)
|
|
32553
|
+
R = R.body;
|
|
32554
32554
|
else
|
|
32555
32555
|
break;
|
|
32556
32556
|
m(z.body, q);
|
|
@@ -32563,10 +32563,10 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32563
32563
|
q.print("switch"), q.space(), q.with_parens(function() {
|
|
32564
32564
|
z.expression.print(q);
|
|
32565
32565
|
}), q.space();
|
|
32566
|
-
var
|
|
32567
|
-
|
|
32566
|
+
var R = z.body.length - 1;
|
|
32567
|
+
R < 0 ? n(z, q) : q.with_block(function() {
|
|
32568
32568
|
z.body.forEach(function(S, L) {
|
|
32569
|
-
q.indent(!0), S.print(q), L <
|
|
32569
|
+
q.indent(!0), S.print(q), L < R && S.body.length > 0 && q.newline();
|
|
32570
32570
|
});
|
|
32571
32571
|
});
|
|
32572
32572
|
}), ui.DEFMETHOD("_do_print_body", function(z) {
|
|
@@ -32591,7 +32591,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32591
32591
|
z.print(q), z.space(), this.definitions.forEach(function(C, $) {
|
|
32592
32592
|
$ && z.comma(), C.print(z);
|
|
32593
32593
|
});
|
|
32594
|
-
var
|
|
32594
|
+
var R = z.parent(), S = R instanceof rt || R instanceof Lt, L = !S || R && R.init !== this;
|
|
32595
32595
|
L && z.semicolon();
|
|
32596
32596
|
}), r(sr, function(z, q) {
|
|
32597
32597
|
z._do_print(q, "let");
|
|
@@ -32600,20 +32600,20 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32600
32600
|
}), r(or, function(z, q) {
|
|
32601
32601
|
z._do_print(q, "const");
|
|
32602
32602
|
}), r(Nn, function(z, q) {
|
|
32603
|
-
q.print("import"), q.space(), z.imported_name && z.imported_name.print(q), z.imported_name && z.imported_names && (q.print(","), q.space()), z.imported_names && (z.imported_names.length === 1 && z.imported_names[0].foreign_name.name === "*" && !z.imported_names[0].foreign_name.quote ? z.imported_names[0].print(q) : (q.print("{"), z.imported_names.forEach(function(
|
|
32604
|
-
q.space(),
|
|
32603
|
+
q.print("import"), q.space(), z.imported_name && z.imported_name.print(q), z.imported_name && z.imported_names && (q.print(","), q.space()), z.imported_names && (z.imported_names.length === 1 && z.imported_names[0].foreign_name.name === "*" && !z.imported_names[0].foreign_name.quote ? z.imported_names[0].print(q) : (q.print("{"), z.imported_names.forEach(function(R, S) {
|
|
32604
|
+
q.space(), R.print(q), S < z.imported_names.length - 1 && q.print(",");
|
|
32605
32605
|
}), q.space(), q.print("}"))), (z.imported_name || z.imported_names) && (q.space(), q.print("from"), q.space()), z.module_name.print(q), z.assert_clause && (q.print("assert"), z.assert_clause.print(q)), q.semicolon();
|
|
32606
32606
|
}), r(li, function(z, q) {
|
|
32607
32607
|
q.print("import.meta");
|
|
32608
32608
|
}), r(er, function(z, q) {
|
|
32609
|
-
var
|
|
32609
|
+
var R = q.parent() instanceof Nn, S = z.name.definition(), L = z.foreign_name, C = (S && S.mangled_name || z.name.name) !== L.name;
|
|
32610
32610
|
!C && L.name === "*" && L.quote != z.name.quote && (C = !0);
|
|
32611
32611
|
var $ = L.quote == null;
|
|
32612
|
-
C ? (
|
|
32612
|
+
C ? (R ? $ ? q.print(L.name) : q.print_string(L.name, L.quote) : z.name.quote == null ? z.name.print(q) : q.print_string(z.name.name, z.name.quote), q.space(), q.print("as"), q.space(), R ? z.name.print(q) : $ ? q.print(L.name) : q.print_string(L.name, L.quote)) : z.name.quote == null ? z.name.print(q) : q.print_string(z.name.name, z.name.quote);
|
|
32613
32613
|
}), r(st, function(z, q) {
|
|
32614
32614
|
if (q.print("export"), q.space(), z.is_default && (q.print("default"), q.space()), z.exported_names)
|
|
32615
|
-
z.exported_names.length === 1 && z.exported_names[0].name.name === "*" && !z.exported_names[0].name.quote ? z.exported_names[0].print(q) : (q.print("{"), z.exported_names.forEach(function(
|
|
32616
|
-
q.space(),
|
|
32615
|
+
z.exported_names.length === 1 && z.exported_names[0].name.name === "*" && !z.exported_names[0].name.quote ? z.exported_names[0].print(q) : (q.print("{"), z.exported_names.forEach(function(R, S) {
|
|
32616
|
+
q.space(), R.print(q), S < z.exported_names.length - 1 && q.print(",");
|
|
32617
32617
|
}), q.space(), q.print("}"));
|
|
32618
32618
|
else if (z.exported_value)
|
|
32619
32619
|
z.exported_value.print(q);
|
|
@@ -32621,9 +32621,9 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32621
32621
|
return;
|
|
32622
32622
|
z.module_name && (q.space(), q.print("from"), q.space(), z.module_name.print(q)), z.assert_clause && (q.print("assert"), z.assert_clause.print(q)), (z.exported_value && !(z.exported_value instanceof Ne || z.exported_value instanceof be || z.exported_value instanceof $1) || z.module_name || z.exported_names) && q.semicolon();
|
|
32623
32623
|
});
|
|
32624
|
-
function o(z, q,
|
|
32624
|
+
function o(z, q, R) {
|
|
32625
32625
|
var S = !1;
|
|
32626
|
-
|
|
32626
|
+
R && (S = bt(z, (L) => {
|
|
32627
32627
|
if (L instanceof O1 && !(L instanceof Ee))
|
|
32628
32628
|
return !0;
|
|
32629
32629
|
if (L instanceof f0 && L.operator == "in" || L instanceof Qn)
|
|
@@ -32633,34 +32633,34 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32633
32633
|
r(le, function(z, q) {
|
|
32634
32634
|
if (z.name.print(q), z.value) {
|
|
32635
32635
|
q.space(), q.print("="), q.space();
|
|
32636
|
-
var
|
|
32636
|
+
var R = q.parent(1), S = R instanceof rt || R instanceof Lt;
|
|
32637
32637
|
o(z.value, q, S);
|
|
32638
32638
|
}
|
|
32639
32639
|
}), r(r1, function(z, q) {
|
|
32640
32640
|
z.expression.print(q), !(z instanceof Dt && z.args.length === 0) && ((z.expression instanceof r1 || z.expression instanceof c1) && q.add_mapping(z.start), z.optional && q.print("?."), q.with_parens(function() {
|
|
32641
|
-
z.args.forEach(function(
|
|
32642
|
-
S && q.comma(),
|
|
32641
|
+
z.args.forEach(function(R, S) {
|
|
32642
|
+
S && q.comma(), R.print(q);
|
|
32643
32643
|
});
|
|
32644
32644
|
}));
|
|
32645
32645
|
}), r(Dt, function(z, q) {
|
|
32646
32646
|
q.print("new"), q.space(), r1.prototype._codegen(z, q);
|
|
32647
32647
|
}), k1.DEFMETHOD("_do_print", function(z) {
|
|
32648
|
-
this.expressions.forEach(function(q,
|
|
32649
|
-
|
|
32648
|
+
this.expressions.forEach(function(q, R) {
|
|
32649
|
+
R > 0 && (z.comma(), z.should_break() && (z.newline(), z.indent())), q.print(z);
|
|
32650
32650
|
});
|
|
32651
32651
|
}), r(k1, function(z, q) {
|
|
32652
32652
|
z._do_print(q);
|
|
32653
32653
|
}), r(ye, function(z, q) {
|
|
32654
|
-
var
|
|
32655
|
-
|
|
32654
|
+
var R = z.expression;
|
|
32655
|
+
R.print(q);
|
|
32656
32656
|
var S = z.property, L = Li.has(S) ? q.option("ie8") : !Lz(
|
|
32657
32657
|
S,
|
|
32658
32658
|
q.option("ecma") >= 2015 && !q.option("safari10")
|
|
32659
32659
|
);
|
|
32660
|
-
z.optional && q.print("?."), L ? (q.print("["), q.add_mapping(z.end), q.print_string(S), q.print("]")) : (
|
|
32660
|
+
z.optional && q.print("?."), L ? (q.print("["), q.add_mapping(z.end), q.print_string(S), q.print("]")) : (R instanceof m1 && R.getValue() >= 0 && (/[xa-f.)]/i.test(q.last()) || q.print(".")), z.optional || q.print("."), q.add_mapping(z.end), q.print_name(S));
|
|
32661
32661
|
}), r($n, function(z, q) {
|
|
32662
|
-
var
|
|
32663
|
-
|
|
32662
|
+
var R = z.expression;
|
|
32663
|
+
R.print(q);
|
|
32664
32664
|
var S = z.property;
|
|
32665
32665
|
z.optional && q.print("?"), q.print(".#"), q.add_mapping(z.end), q.print_name(S);
|
|
32666
32666
|
}), r(it, function(z, q) {
|
|
@@ -32668,32 +32668,32 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32668
32668
|
}), r(Qe, function(z, q) {
|
|
32669
32669
|
z.expression.print(q);
|
|
32670
32670
|
}), r(l1, function(z, q) {
|
|
32671
|
-
var
|
|
32672
|
-
|
|
32671
|
+
var R = z.operator;
|
|
32672
|
+
R === "--" && q.last().endsWith("!") && q.print(" "), q.print(R), (/^[a-z]/i.test(R) || /[+-]$/.test(R) && z.expression instanceof l1 && /^[+-]/.test(z.expression.operator)) && q.space(), z.expression.print(q);
|
|
32673
32673
|
}), r(_i, function(z, q) {
|
|
32674
32674
|
z.expression.print(q), q.print(z.operator);
|
|
32675
32675
|
}), r(f0, function(z, q) {
|
|
32676
|
-
var
|
|
32677
|
-
z.left.print(q),
|
|
32676
|
+
var R = z.operator;
|
|
32677
|
+
z.left.print(q), R[0] == ">" && q.last().endsWith("--") ? q.print(" ") : q.space(), q.print(R), q.space(), z.right.print(q);
|
|
32678
32678
|
}), r(W1, function(z, q) {
|
|
32679
32679
|
z.condition.print(q), q.space(), q.print("?"), q.space(), z.consequent.print(q), q.space(), q.colon(), z.alternative.print(q);
|
|
32680
32680
|
}), r(j1, function(z, q) {
|
|
32681
32681
|
q.with_square(function() {
|
|
32682
|
-
var
|
|
32683
|
-
S > 0 && q.space(),
|
|
32682
|
+
var R = z.elements, S = R.length;
|
|
32683
|
+
S > 0 && q.space(), R.forEach(function(L, C) {
|
|
32684
32684
|
C && q.comma(), L.print(q), C === S - 1 && L instanceof Ln && q.comma();
|
|
32685
32685
|
}), S > 0 && q.space();
|
|
32686
32686
|
});
|
|
32687
32687
|
}), r(ne, function(z, q) {
|
|
32688
32688
|
z.properties.length > 0 ? q.with_block(function() {
|
|
32689
|
-
z.properties.forEach(function(
|
|
32690
|
-
S && (q.print(","), q.newline()), q.indent(),
|
|
32689
|
+
z.properties.forEach(function(R, S) {
|
|
32690
|
+
S && (q.print(","), q.newline()), q.indent(), R.print(q);
|
|
32691
32691
|
}), q.newline();
|
|
32692
32692
|
}) : n(z, q);
|
|
32693
32693
|
}), r($1, function(z, q) {
|
|
32694
32694
|
if (q.print("class"), q.space(), z.name && (z.name.print(q), q.space()), z.extends) {
|
|
32695
|
-
var
|
|
32696
|
-
q.print("extends"),
|
|
32695
|
+
var R = !(z.extends instanceof N0) && !(z.extends instanceof f1) && !(z.extends instanceof vr) && !(z.extends instanceof be);
|
|
32696
|
+
q.print("extends"), R ? q.print("(") : q.space(), z.extends.print(q), R ? q.print(")") : q.space();
|
|
32697
32697
|
}
|
|
32698
32698
|
z.properties.length > 0 ? q.with_block(function() {
|
|
32699
32699
|
z.properties.forEach(function(S, L) {
|
|
@@ -32703,32 +32703,32 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32703
32703
|
}), r(Po, function(z, q) {
|
|
32704
32704
|
q.print("new.target");
|
|
32705
32705
|
});
|
|
32706
|
-
function p(z, q,
|
|
32707
|
-
if (
|
|
32708
|
-
return
|
|
32706
|
+
function p(z, q, R) {
|
|
32707
|
+
if (R.option("quote_keys"))
|
|
32708
|
+
return R.print_string(z), !1;
|
|
32709
32709
|
if ("" + +z == z && z >= 0)
|
|
32710
|
-
return
|
|
32711
|
-
var S = Li.has(z) ?
|
|
32712
|
-
return S || q &&
|
|
32710
|
+
return R.option("keep_numbers") ? (R.print(z), !1) : (R.print(x(z)), !1);
|
|
32711
|
+
var S = Li.has(z) ? R.option("ie8") : R.option("ecma") < 2015 || R.option("safari10") ? !Qp(z) : !Lz(z, !0);
|
|
32712
|
+
return S || q && R.option("keep_quoted_props") ? (R.print_string(z, q), !1) : (R.print_name(z), !0);
|
|
32713
32713
|
}
|
|
32714
32714
|
r(ge, function(z, q) {
|
|
32715
|
-
function
|
|
32715
|
+
function R(L) {
|
|
32716
32716
|
var C = L.definition();
|
|
32717
32717
|
return C ? C.mangled_name || C.name : L.name;
|
|
32718
32718
|
}
|
|
32719
32719
|
const S = q.option("shorthand") && !(z.key instanceof S0);
|
|
32720
|
-
S && z.value instanceof D1 &&
|
|
32720
|
+
S && z.value instanceof D1 && R(z.value) === z.key && !Li.has(z.key) ? p(z.key, z.quote, q) || (q.colon(), z.value.print(q)) : S && z.value instanceof vn && z.value.left instanceof D1 && R(z.value.left) === z.key ? (p(z.key, z.quote, q) || (q.colon(), z.value.left.print(q)), q.space(), q.print("="), q.space(), z.value.right.print(q)) : (z.key instanceof S0 ? q.with_square(function() {
|
|
32721
32721
|
z.key.print(q);
|
|
32722
32722
|
}) : p(z.key, z.quote, q), q.colon(), z.value.print(q));
|
|
32723
32723
|
}), r(Sr, (z, q) => {
|
|
32724
32724
|
z.static && (q.print("static"), q.space()), q.print("#"), p(z.key.name, z.quote, q), z.value && (q.print("="), z.value.print(q)), q.semicolon();
|
|
32725
32725
|
}), r(Kt, (z, q) => {
|
|
32726
32726
|
z.static && (q.print("static"), q.space()), z.key instanceof Mi ? p(z.key.name, z.quote, q) : (q.print("["), z.key.print(q), q.print("]")), z.value && (q.print("="), z.value.print(q)), q.semicolon();
|
|
32727
|
-
}), Fe.DEFMETHOD("_print_getter_setter", function(z, q,
|
|
32727
|
+
}), Fe.DEFMETHOD("_print_getter_setter", function(z, q, R) {
|
|
32728
32728
|
var S = this;
|
|
32729
|
-
S.static && (
|
|
32730
|
-
S.key.print(
|
|
32731
|
-
}), S.value._do_print(
|
|
32729
|
+
S.static && (R.print("static"), R.space()), z && (R.print(z), R.space()), S.key instanceof mt ? (q && R.print("#"), p(S.key.name, S.quote, R), S.key.add_source_map(R)) : R.with_square(function() {
|
|
32730
|
+
S.key.print(R);
|
|
32731
|
+
}), S.value._do_print(R, !0);
|
|
32732
32732
|
}), r(cr, function(z, q) {
|
|
32733
32733
|
z._print_getter_setter("set", !1, q);
|
|
32734
32734
|
}), r(Fn, function(z, q) {
|
|
@@ -32738,15 +32738,15 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32738
32738
|
}), r(ar, function(z, q) {
|
|
32739
32739
|
z._print_getter_setter("get", !0, q);
|
|
32740
32740
|
}), r(Nr, function(z, q) {
|
|
32741
|
-
var
|
|
32742
|
-
z.is_generator && z.async ?
|
|
32741
|
+
var R;
|
|
32742
|
+
z.is_generator && z.async ? R = "async*" : z.is_generator ? R = "*" : z.async && (R = "async"), z._print_getter_setter(R, !0, q);
|
|
32743
32743
|
}), r(Qn, function(z, q) {
|
|
32744
32744
|
z.key.print(q), q.space(), q.print("in"), q.space(), z.value.print(q);
|
|
32745
32745
|
}), r(tc, function(z, q) {
|
|
32746
32746
|
q.print("#" + z.name);
|
|
32747
32747
|
}), r(ft, function(z, q) {
|
|
32748
|
-
var
|
|
32749
|
-
z.is_generator && z.async ?
|
|
32748
|
+
var R;
|
|
32749
|
+
z.is_generator && z.async ? R = "async*" : z.is_generator ? R = "*" : z.async && (R = "async"), z._print_getter_setter(R, !1, q);
|
|
32750
32750
|
}), r(Nt, function(z, q) {
|
|
32751
32751
|
q.print("static"), q.space(), i(z, q);
|
|
32752
32752
|
}), D1.DEFMETHOD("_do_print", function(z) {
|
|
@@ -32769,8 +32769,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32769
32769
|
});
|
|
32770
32770
|
const b = /(<\s*\/\s*script)/i, f = /^\s*script/i, _ = (z, q) => q.replace("/", "\\/");
|
|
32771
32771
|
r(Yt, function(z, q) {
|
|
32772
|
-
let { source:
|
|
32773
|
-
|
|
32772
|
+
let { source: R, flags: S } = z.getValue();
|
|
32773
|
+
R = Jp(R), S = S ? sg(S) : "", R = R.replace(b, _), f.test(R) && q.last().endsWith("<") && q.print(" "), q.print(q.to_utf8(`/${R}/${S}`, !1, !0));
|
|
32774
32774
|
const L = q.parent();
|
|
32775
32775
|
L instanceof f0 && /^\w/.test(L.operator) && L.left === z && q.print(" ");
|
|
32776
32776
|
});
|
|
@@ -32778,15 +32778,15 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32778
32778
|
q.option("braces") ? T(z, q) : !z || z instanceof te ? q.force_semicolon() : z instanceof sr || z instanceof or || z instanceof $1 ? T(z, q) : z.print(q);
|
|
32779
32779
|
}
|
|
32780
32780
|
function E(z) {
|
|
32781
|
-
for (var q = z[0],
|
|
32782
|
-
z[S].length <
|
|
32781
|
+
for (var q = z[0], R = q.length, S = 1; S < z.length; ++S)
|
|
32782
|
+
z[S].length < R && (q = z[S], R = q.length);
|
|
32783
32783
|
return q;
|
|
32784
32784
|
}
|
|
32785
32785
|
function x(z) {
|
|
32786
|
-
var q = z.toString(10).replace(/^0\./, ".").replace("e+", "e"),
|
|
32787
|
-
Math.floor(z) === z && (z < 0 ?
|
|
32786
|
+
var q = z.toString(10).replace(/^0\./, ".").replace("e+", "e"), R = [q];
|
|
32787
|
+
Math.floor(z) === z && (z < 0 ? R.push("-0x" + (-z).toString(16).toLowerCase()) : R.push("0x" + z.toString(16).toLowerCase()));
|
|
32788
32788
|
var S, L, C;
|
|
32789
|
-
return (S = /^\.0+/.exec(q)) ? (L = S[0].length, C = q.slice(L),
|
|
32789
|
+
return (S = /^\.0+/.exec(q)) ? (L = S[0].length, C = q.slice(L), R.push(C + "e-" + (C.length + L - 1))) : (S = /0+$/.exec(q)) ? (L = S[0].length, R.push(q.slice(0, -L) + "e" + L)) : (S = /^(\d)\.(\d+)e(-?\d+)$/.exec(q)) && R.push(S[1] + S[2] + "e" + (S[3] - S[2].length)), E(R);
|
|
32790
32790
|
}
|
|
32791
32791
|
function T(z, q) {
|
|
32792
32792
|
!z || z instanceof te ? q.print("{}") : z instanceof A1 ? z.print(q) : q.with_block(function() {
|
|
@@ -32794,8 +32794,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
32794
32794
|
});
|
|
32795
32795
|
}
|
|
32796
32796
|
function y(z, q) {
|
|
32797
|
-
z.forEach(function(
|
|
32798
|
-
|
|
32797
|
+
z.forEach(function(R) {
|
|
32798
|
+
R.DEFMETHOD("add_source_map", q);
|
|
32799
32799
|
});
|
|
32800
32800
|
}
|
|
32801
32801
|
y([
|
|
@@ -33064,17 +33064,17 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
33064
33064
|
else if (m instanceof tu)
|
|
33065
33065
|
b((m.scope = s.parent_scope).def_function(m, s), 1);
|
|
33066
33066
|
else if (m instanceof bi || m instanceof Fo || m instanceof ki || m instanceof Xn) {
|
|
33067
|
-
var
|
|
33068
|
-
if (m instanceof ri ?
|
|
33067
|
+
var R;
|
|
33068
|
+
if (m instanceof ri ? R = n.def_variable(m, null) : R = s.def_variable(m, m.TYPE == "SymbolVar" ? null : void 0), R.orig.every((L) => L === m ? !0 : m instanceof ri ? L instanceof Mr : !(L instanceof Fo || L instanceof ki)) || zp(
|
|
33069
33069
|
`"${m.name}" is redeclared`,
|
|
33070
33070
|
m.start.file,
|
|
33071
33071
|
m.start.line,
|
|
33072
33072
|
m.start.col,
|
|
33073
33073
|
m.start.pos
|
|
33074
|
-
), m instanceof lt || b(
|
|
33074
|
+
), m instanceof lt || b(R, 2), s !== n) {
|
|
33075
33075
|
m.mark_enclosed();
|
|
33076
|
-
var
|
|
33077
|
-
m.thedef !==
|
|
33076
|
+
var R = n.find_variable(m);
|
|
33077
|
+
m.thedef !== R && (m.thedef = R, m.reference());
|
|
33078
33078
|
}
|
|
33079
33079
|
} else if (m instanceof GM) {
|
|
33080
33080
|
var S = i.get(m.name);
|
|
@@ -34950,9 +34950,9 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
34950
34950
|
r.top_retain(T) && s.set(T.id, T);
|
|
34951
34951
|
});
|
|
34952
34952
|
var p = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Set(), _ = this, m = new Mt(function(T, y) {
|
|
34953
|
-
if (T instanceof c1 && T.uses_arguments && !m.has_directive("use strict") && T.argnames.forEach(function(
|
|
34954
|
-
if (
|
|
34955
|
-
var S =
|
|
34953
|
+
if (T instanceof c1 && T.uses_arguments && !m.has_directive("use strict") && T.argnames.forEach(function(R) {
|
|
34954
|
+
if (R instanceof ut) {
|
|
34955
|
+
var S = R.definition();
|
|
34956
34956
|
s.set(S.id, S);
|
|
34957
34957
|
}
|
|
34958
34958
|
}), T === e)
|
|
@@ -34963,9 +34963,9 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
34963
34963
|
}
|
|
34964
34964
|
const q = _ === e;
|
|
34965
34965
|
if (T instanceof lt && q && I2(p, T.definition().id, T), T instanceof Pe && q) {
|
|
34966
|
-
const
|
|
34966
|
+
const R = m.parent() instanceof st;
|
|
34967
34967
|
return T.definitions.forEach(function(S) {
|
|
34968
|
-
if (S.name instanceof bi && I2(p, S.name.definition().id, S), (
|
|
34968
|
+
if (S.name instanceof bi && I2(p, S.name.definition().id, S), (R || !n) && bt(S.name, (C) => {
|
|
34969
34969
|
if (C instanceof ut) {
|
|
34970
34970
|
const $ = C.definition();
|
|
34971
34971
|
$.global && s.set($.id, $);
|
|
@@ -34988,14 +34988,14 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
34988
34988
|
});
|
|
34989
34989
|
var E = new Qt(
|
|
34990
34990
|
function(y, z, q) {
|
|
34991
|
-
var
|
|
34991
|
+
var R = E.parent();
|
|
34992
34992
|
if (n) {
|
|
34993
34993
|
const C0 = i(y);
|
|
34994
34994
|
if (C0 instanceof N0) {
|
|
34995
34995
|
var L = C0.definition(), S = s.has(L.id);
|
|
34996
34996
|
if (y instanceof L1) {
|
|
34997
34997
|
if (!S || o.has(L.id) && o.get(L.id) !== y)
|
|
34998
|
-
return zs(
|
|
34998
|
+
return zs(R, y, y.right.transform(E));
|
|
34999
34999
|
} else if (!S)
|
|
35000
35000
|
return q ? qe.skip : D(m1, y, { value: 0 });
|
|
35001
35001
|
}
|
|
@@ -35020,8 +35020,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
35020
35020
|
if (!(C0.global && !t || s.has(C0.id)))
|
|
35021
35021
|
return C0.eliminated++, q ? qe.skip : D(te, y);
|
|
35022
35022
|
}
|
|
35023
|
-
if (y instanceof Pe && !(
|
|
35024
|
-
var a0 = !(
|
|
35023
|
+
if (y instanceof Pe && !(R instanceof Lt && R.init === y)) {
|
|
35024
|
+
var a0 = !(R instanceof _e) && !(y instanceof pt), J = [], R0 = [], l0 = [], y0 = [];
|
|
35025
35025
|
switch (y.definitions.forEach(function(C0) {
|
|
35026
35026
|
C0.value && (C0.value = C0.value.transform(E));
|
|
35027
35027
|
var n1 = C0.name instanceof de, F0 = n1 ? new Yo(null, { name: "<destructure>" }) : C0.name.definition();
|
|
@@ -35104,8 +35104,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
35104
35104
|
if (T instanceof $1)
|
|
35105
35105
|
return y(), !0;
|
|
35106
35106
|
if (T instanceof O1 && !(T instanceof Nt)) {
|
|
35107
|
-
var
|
|
35108
|
-
return _ = T, y(), _ =
|
|
35107
|
+
var R = _;
|
|
35108
|
+
return _ = T, y(), _ = R, !0;
|
|
35109
35109
|
}
|
|
35110
35110
|
}
|
|
35111
35111
|
});
|
|
@@ -35300,8 +35300,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
35300
35300
|
}
|
|
35301
35301
|
}));
|
|
35302
35302
|
for (const { def: f, defun: _, fname_def: m } of i) {
|
|
35303
|
-
const E = p.get(_), x = (q,
|
|
35304
|
-
let L =
|
|
35303
|
+
const E = p.get(_), x = (q, R = 0, S = !1) => {
|
|
35304
|
+
let L = R;
|
|
35305
35305
|
for (; L = s.indexOf(q, L), L !== -1; )
|
|
35306
35306
|
if (L >= E.start && L < E.end) {
|
|
35307
35307
|
L = E.end;
|
|
@@ -35455,7 +35455,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
35455
35455
|
const t = e.find_scope(), n = t.get_defun_scope(), { in_loop: i, in_try: s } = b();
|
|
35456
35456
|
var o, p = 10;
|
|
35457
35457
|
do
|
|
35458
|
-
o = !1, _(r), e.option("dead_code") && E(r, e), e.option("if_return") && m(r, e), e.sequences_limit > 0 && (T(r, e), z(r, e)), e.option("join_vars") &&
|
|
35458
|
+
o = !1, _(r), e.option("dead_code") && E(r, e), e.option("if_return") && m(r, e), e.sequences_limit > 0 && (T(r, e), z(r, e)), e.option("join_vars") && R(r), e.option("collapse_vars") && f(r, e);
|
|
35459
35459
|
while (o && p-- > 0);
|
|
35460
35460
|
function b() {
|
|
35461
35461
|
var S = e.self(), L = 0, C = !1, $ = !1;
|
|
@@ -36043,7 +36043,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
36043
36043
|
}
|
|
36044
36044
|
}
|
|
36045
36045
|
}
|
|
36046
|
-
function
|
|
36046
|
+
function R(S) {
|
|
36047
36047
|
for (var L, C = 0, $ = -1, K = S.length; C < K; C++) {
|
|
36048
36048
|
var X = S[C], a0 = S[$];
|
|
36049
36049
|
if (X instanceof Pe)
|
|
@@ -36274,7 +36274,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
36274
36274
|
}
|
|
36275
36275
|
return !0;
|
|
36276
36276
|
}
|
|
36277
|
-
function
|
|
36277
|
+
function R(X, a0) {
|
|
36278
36278
|
for (var J = n.body.length, R0 = 0; R0 < J; R0++) {
|
|
36279
36279
|
var l0 = n.body[R0];
|
|
36280
36280
|
if (l0 instanceof pt) {
|
|
@@ -36303,7 +36303,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
36303
36303
|
return !1;
|
|
36304
36304
|
while (!(f instanceof O1));
|
|
36305
36305
|
var a0 = !(f instanceof _e) || e.toplevel.vars, J = e.option("inline");
|
|
36306
|
-
return !
|
|
36306
|
+
return !R(X, J >= 3 && a0) || !q(X, J >= 2 && a0) ? !1 : !_ || _.length == 0 || !vO(n, _);
|
|
36307
36307
|
}
|
|
36308
36308
|
function L(X, a0, J, R0) {
|
|
36309
36309
|
var l0 = J.definition();
|
|
@@ -36734,16 +36734,16 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
36734
36734
|
q.definitions.forEach(function(C) {
|
|
36735
36735
|
o.set(C.name.name, C), ++p;
|
|
36736
36736
|
});
|
|
36737
|
-
var
|
|
36737
|
+
var R = q.to_assignments(r), S = f.parent();
|
|
36738
36738
|
if (S instanceof Lt && S.init === q) {
|
|
36739
|
-
if (
|
|
36739
|
+
if (R == null) {
|
|
36740
36740
|
var L = q.definitions[0].name;
|
|
36741
36741
|
return D(N0, L, L);
|
|
36742
36742
|
}
|
|
36743
|
-
return
|
|
36743
|
+
return R;
|
|
36744
36744
|
}
|
|
36745
|
-
return S instanceof rt && S.init === q ?
|
|
36746
|
-
body:
|
|
36745
|
+
return S instanceof rt && S.init === q ? R : R ? D(s1, q, {
|
|
36746
|
+
body: R
|
|
36747
36747
|
}) : D(te, q);
|
|
36748
36748
|
}
|
|
36749
36749
|
if (q instanceof O1)
|
|
@@ -36754,8 +36754,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
36754
36754
|
if (e = e.transform(f), p > 0) {
|
|
36755
36755
|
var _ = [];
|
|
36756
36756
|
const z = e instanceof c1, q = z ? e.args_as_names() : null;
|
|
36757
|
-
if (o.forEach((
|
|
36758
|
-
z && q.some((L) => L.name ===
|
|
36757
|
+
if (o.forEach((R, S) => {
|
|
36758
|
+
z && q.some((L) => L.name === R.name.name) ? o.delete(S) : (R = R.clone(), R.value = null, _.push(R), o.set(S, R));
|
|
36759
36759
|
}), _.length > 0) {
|
|
36760
36760
|
for (var m = 0; m < e.body.length; ) {
|
|
36761
36761
|
if (e.body[m] instanceof s1) {
|
|
@@ -37091,7 +37091,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
37091
37091
|
let L = o.length - 1;
|
|
37092
37092
|
for (; L >= 0; L--) {
|
|
37093
37093
|
let C = o[L].body;
|
|
37094
|
-
if (
|
|
37094
|
+
if (R(C[C.length - 1], e) && C.pop(), !S(o[L]))
|
|
37095
37095
|
break;
|
|
37096
37096
|
}
|
|
37097
37097
|
if (L++, !x || o.indexOf(x) >= L)
|
|
@@ -37174,7 +37174,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
37174
37174
|
let L = o[0] === x ? o[1] : o[0], C = x.expression && z(x.expression);
|
|
37175
37175
|
if (Tn(o[0])) {
|
|
37176
37176
|
let a0 = o[0];
|
|
37177
|
-
return
|
|
37177
|
+
return R(a0.body[a0.body.length - 1], e) && a0.body.pop(), D(Z1, r, {
|
|
37178
37178
|
condition: D(f0, r, {
|
|
37179
37179
|
operator: "===",
|
|
37180
37180
|
left: r.expression,
|
|
@@ -37238,14 +37238,14 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
37238
37238
|
let C = !1, $ = new Mt((K) => {
|
|
37239
37239
|
if (C || K instanceof c1 || K instanceof s1)
|
|
37240
37240
|
return !0;
|
|
37241
|
-
if (!
|
|
37241
|
+
if (!R(K, $))
|
|
37242
37242
|
return;
|
|
37243
37243
|
let X = $.parent();
|
|
37244
37244
|
X instanceof ui && X.body[X.body.length - 1] === K || (C = !0);
|
|
37245
37245
|
});
|
|
37246
37246
|
return L.walk($), C;
|
|
37247
37247
|
}
|
|
37248
|
-
function
|
|
37248
|
+
function R(L, C) {
|
|
37249
37249
|
return L instanceof xn && C.loopcontrol_target(L) === r;
|
|
37250
37250
|
}
|
|
37251
37251
|
function S(L) {
|
|
@@ -37446,14 +37446,14 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
37446
37446
|
right: T[0]
|
|
37447
37447
|
});
|
|
37448
37448
|
if (x == "") {
|
|
37449
|
-
var
|
|
37450
|
-
return T[0].is_string(e) || T[1].is_string(e) ?
|
|
37449
|
+
var R;
|
|
37450
|
+
return T[0].is_string(e) || T[1].is_string(e) ? R = T.shift() : R = D(w1, r, { value: "" }), T.reduce(function(y0, K0) {
|
|
37451
37451
|
return D(f0, K0, {
|
|
37452
37452
|
operator: "+",
|
|
37453
37453
|
left: y0,
|
|
37454
37454
|
right: K0
|
|
37455
37455
|
});
|
|
37456
|
-
},
|
|
37456
|
+
}, R).optimize(e);
|
|
37457
37457
|
}
|
|
37458
37458
|
var _ = r.clone();
|
|
37459
37459
|
return _.expression = _.expression.clone(), _.expression.expression = _.expression.expression.clone(), _.expression.expression.elements = T, ln(e, r, _);
|
|
@@ -37894,10 +37894,10 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
37894
37894
|
return y.segments[0].value = String(q) + y.segments[0].value, y;
|
|
37895
37895
|
}
|
|
37896
37896
|
if (r.left instanceof xt && r.right instanceof xt) {
|
|
37897
|
-
var q = r.left,
|
|
37898
|
-
|
|
37897
|
+
var q = r.left, R = q.segments, y = r.right;
|
|
37898
|
+
R[R.length - 1].value += y.segments[0].value;
|
|
37899
37899
|
for (var S = 1; S < y.segments.length; S++)
|
|
37900
|
-
|
|
37900
|
+
R.push(y.segments[S]);
|
|
37901
37901
|
return q;
|
|
37902
37902
|
}
|
|
37903
37903
|
case "*":
|
|
@@ -38288,13 +38288,13 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
38288
38288
|
return y instanceof hi || _ && y instanceof V1 && !y.getValue() || y instanceof l1 && y.operator == "!" && y.expression instanceof V1 && y.expression.getValue();
|
|
38289
38289
|
}
|
|
38290
38290
|
function T() {
|
|
38291
|
-
for (var y = o.args, z = p.args, q = 0,
|
|
38291
|
+
for (var y = o.args, z = p.args, q = 0, R = y.length; q < R; q++) {
|
|
38292
38292
|
if (y[q] instanceof B1)
|
|
38293
38293
|
return;
|
|
38294
38294
|
if (!y[q].equivalent_to(z[q])) {
|
|
38295
38295
|
if (z[q] instanceof B1)
|
|
38296
38296
|
return;
|
|
38297
|
-
for (var S = q + 1; S <
|
|
38297
|
+
for (var S = q + 1; S < R; S++)
|
|
38298
38298
|
if (y[S] instanceof B1 || !y[S].equivalent_to(z[S]))
|
|
38299
38299
|
return;
|
|
38300
38300
|
return q;
|
|
@@ -38407,22 +38407,22 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
38407
38407
|
z && (t = r.expression = z.expression, n = r.property = z.property);
|
|
38408
38408
|
}
|
|
38409
38409
|
if (e.option("properties") && e.option("side_effects") && n instanceof m1 && t instanceof j1) {
|
|
38410
|
-
var b = n.getValue(), q = t.elements,
|
|
38410
|
+
var b = n.getValue(), q = t.elements, R = q[b];
|
|
38411
38411
|
e:
|
|
38412
|
-
if (IO(
|
|
38412
|
+
if (IO(R, e)) {
|
|
38413
38413
|
for (var S = !0, L = [], C = q.length; --C > b; ) {
|
|
38414
38414
|
var s = q[C].drop_side_effect_free(e);
|
|
38415
38415
|
s && (L.unshift(s), S && s.has_side_effects(e) && (S = !1));
|
|
38416
38416
|
}
|
|
38417
|
-
if (
|
|
38417
|
+
if (R instanceof B1)
|
|
38418
38418
|
break e;
|
|
38419
|
-
for (
|
|
38419
|
+
for (R = R instanceof Ln ? D(Le, R) : R, S || L.unshift(R); --C >= 0; ) {
|
|
38420
38420
|
var s = q[C];
|
|
38421
38421
|
if (s instanceof B1)
|
|
38422
38422
|
break e;
|
|
38423
38423
|
s = s.drop_side_effect_free(e), s ? L.unshift(s) : b--;
|
|
38424
38424
|
}
|
|
38425
|
-
return S ? (L.push(
|
|
38425
|
+
return S ? (L.push(R), v1(r, L).optimize(e)) : D(it, r, {
|
|
38426
38426
|
expression: D(j1, t, {
|
|
38427
38427
|
elements: L
|
|
38428
38428
|
}),
|
|
@@ -38755,7 +38755,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
38755
38755
|
} while (L0 > 0);
|
|
38756
38756
|
return j;
|
|
38757
38757
|
}
|
|
38758
|
-
const q = /^[\w+.-]+:\/\//,
|
|
38758
|
+
const q = /^[\w+.-]+:\/\//, R = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/, S = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
|
|
38759
38759
|
function L(H) {
|
|
38760
38760
|
return q.test(H);
|
|
38761
38761
|
}
|
|
@@ -38772,7 +38772,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
38772
38772
|
return /^[.?#]/.test(H);
|
|
38773
38773
|
}
|
|
38774
38774
|
function a0(H) {
|
|
38775
|
-
const j =
|
|
38775
|
+
const j = R.exec(H);
|
|
38776
38776
|
return R0(j[1], j[2] || "", j[3], j[4] || "", j[5] || "/", j[6] || "", j[7] || "");
|
|
38777
38777
|
}
|
|
38778
38778
|
function J(H) {
|
|
@@ -39381,11 +39381,11 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
39381
39381
|
function o(m, E, x, T, y, z) {
|
|
39382
39382
|
let q = { line: E, column: x };
|
|
39383
39383
|
if (e) {
|
|
39384
|
-
var
|
|
39384
|
+
var R = e.originalPositionFor({
|
|
39385
39385
|
line: T,
|
|
39386
39386
|
column: y
|
|
39387
39387
|
});
|
|
39388
|
-
if (
|
|
39388
|
+
if (R.source === null) {
|
|
39389
39389
|
t.addMapping({
|
|
39390
39390
|
generated: q,
|
|
39391
39391
|
original: null,
|
|
@@ -39394,7 +39394,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
39394
39394
|
});
|
|
39395
39395
|
return;
|
|
39396
39396
|
}
|
|
39397
|
-
m =
|
|
39397
|
+
m = R.source, T = R.line, y = R.column, z = R.name || z;
|
|
39398
39398
|
}
|
|
39399
39399
|
t.addMapping({
|
|
39400
39400
|
generated: q,
|
|
@@ -48289,7 +48289,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
48289
48289
|
} else
|
|
48290
48290
|
L instanceof it ? T || ls(L.property, q) : L instanceof r1 && L.expression.print_to_string() == "Object.defineProperty" ? ls(L.args[1], q) : L instanceof f0 && L.operator === "in" ? ls(L.left, q) : L instanceof w1 && Gt(L, Fa) && q(L.value);
|
|
48291
48291
|
})), r.transform(new Qt(function(L) {
|
|
48292
|
-
L instanceof Sr || L instanceof Nr || L instanceof ar || L instanceof Lr || L instanceof $n || (L instanceof ge ? typeof L.key == "string" && (!T || !L.quote) && (L.key =
|
|
48292
|
+
L instanceof Sr || L instanceof Nr || L instanceof ar || L instanceof Lr || L instanceof $n || (L instanceof ge ? typeof L.key == "string" && (!T || !L.quote) && (L.key = R(L.key)) : L instanceof Fe ? (!T || !L.quote) && (L.key.name = R(L.key.name)) : L instanceof ye ? (!T || !L.quote) && (L.property = R(L.property)) : !T && L instanceof it ? L.property = S(L.property) : L instanceof r1 && L.expression.print_to_string() == "Object.defineProperty" ? L.args[1] = S(L.args[1]) : L instanceof f0 && L.operator === "in" ? L.left = S(L.left) : L instanceof w1 && Gt(L, Fa) && (vz(L, Fa), L.value = R(L.value)));
|
|
48293
48293
|
}));
|
|
48294
48294
|
function y(L) {
|
|
48295
48295
|
return x.has(L) || s.has(L) ? !1 : e.only_cache ? p.has(L) : !/^-?[0-9]+(\.[0-9]+)?(e[+-][0-9]+)?$/.test(L);
|
|
@@ -48300,7 +48300,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
48300
48300
|
function q(L) {
|
|
48301
48301
|
y(L) && E.add(L), z(L) || x.add(L);
|
|
48302
48302
|
}
|
|
48303
|
-
function
|
|
48303
|
+
function R(L) {
|
|
48304
48304
|
if (!z(L))
|
|
48305
48305
|
return L;
|
|
48306
48306
|
var C = p.get(L);
|
|
@@ -48323,7 +48323,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
48323
48323
|
var $ = C.expressions.length - 1;
|
|
48324
48324
|
C.expressions[$] = S(C.expressions[$]);
|
|
48325
48325
|
} else
|
|
48326
|
-
C instanceof w1 ? (vz(C, Fa), C.value =
|
|
48326
|
+
C instanceof w1 ? (vz(C, Fa), C.value = R(C.value)) : C instanceof W1 && (C.consequent = S(C.consequent), C.alternative = S(C.alternative));
|
|
48327
48327
|
return C;
|
|
48328
48328
|
}));
|
|
48329
48329
|
}
|
|
@@ -60465,14 +60465,14 @@ Input files:
|
|
|
60465
60465
|
_setFunc(e, t, n, i) {
|
|
60466
60466
|
const s = [], o = [], { desc: p, paramsDesc: b, returnsDesc: f, params: _, hasMemberIndex: m } = e;
|
|
60467
60467
|
for (const q of _) {
|
|
60468
|
-
const { type:
|
|
60468
|
+
const { type: R, name: S, defaultValue: L } = q;
|
|
60469
60469
|
s.push({
|
|
60470
60470
|
name: S,
|
|
60471
60471
|
desc: b?.[S],
|
|
60472
60472
|
required: !L,
|
|
60473
|
-
allowedTypeIDs: this._getAllowTypes(
|
|
60474
|
-
displayType:
|
|
60475
|
-
}), o.push(`${
|
|
60473
|
+
allowedTypeIDs: this._getAllowTypes(R),
|
|
60474
|
+
displayType: R
|
|
60475
|
+
}), o.push(`${R === Z.UNDETERMINED ? "" : `${R} `}${S}`);
|
|
60476
60476
|
}
|
|
60477
60477
|
const { returnedTypes: E = [] } = e, x = e.name, T = E.length > 1 || E.isBrackethesized ? `[${E.join(", ")}]` : E.toString(), y = {
|
|
60478
60478
|
name: x,
|
|
@@ -60587,17 +60587,17 @@ Input files:
|
|
|
60587
60587
|
_overloadsFuncGetTypes(e, t, n, i, s) {
|
|
60588
60588
|
let o = [], p = [], b = [], f = 0, _ = 0;
|
|
60589
60589
|
for (const [x, T] of e.entries()) {
|
|
60590
|
-
const { args: y, returnedTypes: z, name: q } = T,
|
|
60590
|
+
const { args: y, returnedTypes: z, name: q } = T, R = i || t.params[0] || t[y[0].name], { errMsg: S, warnMsg: L, matchCount: C } = this._overloadsCheckArgs(t, y, q, n, R);
|
|
60591
60591
|
if (C > _ && (f = x, _ = C), x === 0)
|
|
60592
|
-
p = S, b = L, S.length || (o = z.map(($) => $ === `${Z.ARRAY}<>` ? `${
|
|
60592
|
+
p = S, b = L, S.length || (o = z.map(($) => $ === `${Z.ARRAY}<>` ? `${R.type}[]` : $));
|
|
60593
60593
|
else if (S.length)
|
|
60594
60594
|
(p[0]?.isLenErr && !S[0]?.isLenErr || p.length > S.length) && (p = S, b = L, f = x);
|
|
60595
60595
|
else if (!o.length)
|
|
60596
|
-
o = z.map(($) => $ === `${Z.ARRAY}<>` ? `${
|
|
60596
|
+
o = z.map(($) => $ === `${Z.ARRAY}<>` ? `${R.type}[]` : $), p = S, b = L, f = x;
|
|
60597
60597
|
else
|
|
60598
60598
|
for (const [$, K] of o.entries()) {
|
|
60599
60599
|
const X = z[$];
|
|
60600
|
-
this._priorityComparison(K, z[$]) || (X === `${Z.ARRAY}<>` ? o[$] = `${
|
|
60600
|
+
this._priorityComparison(K, z[$]) || (X === `${Z.ARRAY}<>` ? o[$] = `${R.type}[]` : o[$] = X, p = S, b = L, f = $);
|
|
60601
60601
|
}
|
|
60602
60602
|
}
|
|
60603
60603
|
for (const x of p)
|
|
@@ -60673,12 +60673,12 @@ Input files:
|
|
|
60673
60673
|
if (["arg0, arg1, ...", "number0, number1, ..."].includes(T.name) && p.length > x + 1) {
|
|
60674
60674
|
const z = p.slice(x + 1);
|
|
60675
60675
|
let q = p[x];
|
|
60676
|
-
for (const
|
|
60677
|
-
q.type === `${Z.NA}` && (q =
|
|
60678
|
-
const S =
|
|
60676
|
+
for (const R of z) {
|
|
60677
|
+
q.type === `${Z.NA}` && (q = R);
|
|
60678
|
+
const S = R.type !== `${Z.NA}` ? this._checkArg(R, T, n, q, R.ctx, !0, m) : "";
|
|
60679
60679
|
S && _.push({
|
|
60680
60680
|
msg: S,
|
|
60681
|
-
ctx:
|
|
60681
|
+
ctx: R.ctx
|
|
60682
60682
|
});
|
|
60683
60683
|
}
|
|
60684
60684
|
}
|
|
@@ -60801,16 +60801,16 @@ Input files:
|
|
|
60801
60801
|
case "any array type":
|
|
60802
60802
|
if (this._isArrayType(m)) {
|
|
60803
60803
|
if (T === "id2") {
|
|
60804
|
-
const
|
|
60805
|
-
if (!
|
|
60804
|
+
const R = this._getArrayType(i?.type);
|
|
60805
|
+
if (!R)
|
|
60806
60806
|
return;
|
|
60807
60807
|
const S = this._getArrayType(m) || "";
|
|
60808
|
-
if (
|
|
60808
|
+
if (R !== S)
|
|
60809
60809
|
return B(a1.typeMismatch, {
|
|
60810
60810
|
operator: n,
|
|
60811
60811
|
index: T,
|
|
60812
60812
|
typeE: S,
|
|
60813
|
-
typeR:
|
|
60813
|
+
typeR: R
|
|
60814
60814
|
});
|
|
60815
60815
|
}
|
|
60816
60816
|
} else
|
|
@@ -60850,14 +60850,14 @@ Input files:
|
|
|
60850
60850
|
default:
|
|
60851
60851
|
const q = this._removePrefix(e.type);
|
|
60852
60852
|
if (e.arg && e.arg.isArg && !o) {
|
|
60853
|
-
const
|
|
60854
|
-
if (
|
|
60855
|
-
e.type =
|
|
60853
|
+
const R = E.find((S) => S.endsWith(q));
|
|
60854
|
+
if (R) {
|
|
60855
|
+
e.type = R, e.arg.type = R;
|
|
60856
60856
|
return;
|
|
60857
60857
|
}
|
|
60858
60858
|
}
|
|
60859
|
-
for (const
|
|
60860
|
-
const S = this._removePrefix(
|
|
60859
|
+
for (const R of E) {
|
|
60860
|
+
const S = this._removePrefix(R);
|
|
60861
60861
|
if (S === q || S === Z.FLOAT && q === Z.INT) {
|
|
60862
60862
|
const L = this._getPrefix(e.type), C = this._getPrefix(E[0]);
|
|
60863
60863
|
if (ss.indexOf(L) >= ss.indexOf(C))
|
|
@@ -60944,9 +60944,9 @@ Input files:
|
|
|
60944
60944
|
if (T++, x += z.length <= 1 ? `; ${z[0]}` : `; [${z.join(", ")}]`, z.length !== E.length)
|
|
60945
60945
|
y = T;
|
|
60946
60946
|
else
|
|
60947
|
-
for (const [q,
|
|
60948
|
-
if (this._compareType(z[q],
|
|
60949
|
-
(z[q].includes(Z.FLOAT) && !
|
|
60947
|
+
for (const [q, R] of E.entries())
|
|
60948
|
+
if (this._compareType(z[q], R, !0))
|
|
60949
|
+
(z[q].includes(Z.FLOAT) && !R.includes(Z.FLOAT) || E[q] === `${Z.NA}`) && (E[q] = z[q]);
|
|
60950
60950
|
else {
|
|
60951
60951
|
y = T;
|
|
60952
60952
|
break;
|
|
@@ -61125,7 +61125,7 @@ Input files:
|
|
|
61125
61125
|
m || (this._count += 1);
|
|
61126
61126
|
const x = `$$count${this._count}`, T = `$forTo${this._blockCount}`, y = `$$toCount${p.start.tokenIndex}`, z = `_$sign${p.start.tokenIndex}`;
|
|
61127
61127
|
t || (this._dependsObj[T] = /* @__PURE__ */ new Map());
|
|
61128
|
-
const q = this._parserSingleExpression(b),
|
|
61128
|
+
const q = this._parserSingleExpression(b), R = this._parserSingleExpression(f), S = _ ? this._parserSingleExpression(_) : "", L = this._parserBlockLine(i, t, !1, !0);
|
|
61129
61129
|
Gr.includes(s) && (s = `$${s}`);
|
|
61130
61130
|
const C = `var ${E} = Date.now()`;
|
|
61131
61131
|
let K = `for (let ${s}=${q};(${this._prefixNameVar}.compareDataHandle(${s}) - ${y}) * ${z} >= 0; ${s}-=(${S || "1"}) * ${z}){
|
|
@@ -61137,7 +61137,7 @@ Input files:
|
|
|
61137
61137
|
}`;
|
|
61138
61138
|
return K = `${C};
|
|
61139
61139
|
${m ? "" : `var ${x} = 0`};
|
|
61140
|
-
const ${y} = ${
|
|
61140
|
+
const ${y} = ${f?.type?.endsWith(" int") || !S || f?.type?.endsWith(" int") ? `Math.round(${R})` : R};
|
|
61141
61141
|
const ${z} = (${q})>${y} ? 1 : -1;
|
|
61142
61142
|
${K}`, t || this._codesCol[this._blockCount].push({
|
|
61143
61143
|
code: K,
|
|
@@ -61525,26 +61525,26 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
61525
61525
|
delete e.params;
|
|
61526
61526
|
const f = [], _ = [];
|
|
61527
61527
|
let m = [];
|
|
61528
|
-
const E = this._argChangeMap.get(o), x = o.replace(`${this._prefixNameFunc}.`, ""), T = (
|
|
61529
|
-
id.includes(x) && S === "length" && (
|
|
61530
|
-
const L = p &&
|
|
61531
|
-
if (this._isInFunc && (
|
|
61528
|
+
const E = this._argChangeMap.get(o), x = o.replace(`${this._prefixNameFunc}.`, ""), T = (R, S) => {
|
|
61529
|
+
id.includes(x) && S === "length" && (R.type.startsWith(Z.SERIES) || R.type === Z.UNDETERMINED) && f.push("isSeriesLen: true");
|
|
61530
|
+
const L = p && R.index === 0 && !R.hasMethod || E?.includes(R.index);
|
|
61531
|
+
if (this._isInFunc && (R.arg || R.isArg) && this._currentFuncName) {
|
|
61532
61532
|
const $ = this._argChangeMap.get(this._currentFuncName) || [];
|
|
61533
|
-
L && !$.includes(
|
|
61533
|
+
L && !$.includes(R.index) && ($.push(R.index), this._argChangeMap.set(this._currentFuncName, $));
|
|
61534
61534
|
}
|
|
61535
61535
|
s ? this._dependsObj[n] = /* @__PURE__ */ new Map() : i && S === "expression" && (this._isExperssion = !0, this._dependsObj[`$arg_${S}${n}`] = /* @__PURE__ */ new Map());
|
|
61536
|
-
let C =
|
|
61536
|
+
let C = R.ruleType === X0.Brackethesized ? this._parserBrackethesized(R) : this._parserSingleExpression(R, L);
|
|
61537
61537
|
if (S && !["arg0, arg1, ...", "number0, number1, ..."].includes(S)) {
|
|
61538
|
-
|
|
61538
|
+
R.isSourceType && f.push(`sourceTypeName: "${R.name}"`);
|
|
61539
61539
|
const $ = this._requestParamsHandle(i, S, n, s, C, o);
|
|
61540
61540
|
C = $?.code || C, $?.paramsExpr && m.push($?.paramsExpr), Gr.includes(S) && (S = `$${S}`), Gr.includes(C) && (C = `$${C}`), f.push(`${S}: ${C}`);
|
|
61541
61541
|
} else
|
|
61542
61542
|
_.push(C);
|
|
61543
61543
|
}, y = [];
|
|
61544
|
-
for (const
|
|
61545
|
-
y.push(`'${
|
|
61546
|
-
for (const
|
|
61547
|
-
T(e[
|
|
61544
|
+
for (const R of b)
|
|
61545
|
+
y.push(`'${R.originName}'`), T(R, R.originName);
|
|
61546
|
+
for (const R of Object.keys(e))
|
|
61547
|
+
T(e[R], R);
|
|
61548
61548
|
i && this._isInFunc && f.push("paramsExpr: $paramsExpr"), t && f.push(t);
|
|
61549
61549
|
const z = ["label.new", "line.new", "box.new"].includes(o.replace(`${this._prefixNameFunc}.`, "")) ? `, [${y.join(",")}]` : "", q = m.length ? `, [${this._isInFunc ? "...$paramsExpr || [], " : ""}${m.join(", ")}]` : "";
|
|
61550
61550
|
return _.length ? `({${f.join(", ")}}, [${_.join(", ")}], ${n}${q}${z})` : f.length ? `({${f.join(", ")}}, ${n}${q}${z})` : `(${n}${q})`;
|
|
@@ -77078,8 +77078,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
77078
77078
|
let _ = -1;
|
|
77079
77079
|
const m = s.reduce((E, x, T) => {
|
|
77080
77080
|
if (E) {
|
|
77081
|
-
const y = x.args.params || [], z = { ...E }, q = this._getMethodTypes([z], [o[T]]) || [],
|
|
77082
|
-
if (this._types.has(
|
|
77081
|
+
const y = x.args.params || [], z = { ...E }, q = this._getMethodTypes([z], [o[T]]) || [], R = q[0];
|
|
77082
|
+
if (this._types.has(R)) {
|
|
77083
77083
|
if (x.name.includes(".")) {
|
|
77084
77084
|
const L = x.name.split("."), C = L.pop(), $ = L.join("."), K = this._getMethodFiledType(q, $, e), X = this._getOriginMethodName(K, C);
|
|
77085
77085
|
return this._buildinFunctions.has(X) ? x.name = X : x.name = C, z.ctx = o[T], y.unshift({
|
|
@@ -77092,11 +77092,11 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
77092
77092
|
_ = T, E.isType = !0;
|
|
77093
77093
|
return E;
|
|
77094
77094
|
}
|
|
77095
|
-
|
|
77096
|
-
const S = `${this._getMethodTypeName(
|
|
77095
|
+
R || this._errorHandle(B(_0.undeterminedTypeMethodErr, { name: E.name }), o[T]);
|
|
77096
|
+
const S = `${this._getMethodTypeName(R)}.${x.name}`;
|
|
77097
77097
|
this._buildinFunctions.has(S) && (x.name = S), y.unshift({
|
|
77098
77098
|
ruleType: T0.MethodExpression,
|
|
77099
|
-
type:
|
|
77099
|
+
type: R,
|
|
77100
77100
|
exprs: [z],
|
|
77101
77101
|
ctx: o[T]
|
|
77102
77102
|
}), x.args.params = y;
|
|
@@ -77534,11 +77534,11 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
77534
77534
|
}
|
|
77535
77535
|
for (const b of o) {
|
|
77536
77536
|
const f = `${t}.${b.name}`, _ = this._types.get(f) || [];
|
|
77537
|
-
_.push({ ...this._importTypeUpdate(b, o, t), name: f, isImport: !0, libraryInfoId: n }), this._types.set(f, _);
|
|
77537
|
+
_.push({ ...this._importTypeUpdate(b, o, t), name: f, isImport: !0, libraryInfoId: n }), this._types.set(f, _), this._addVarToMap(f, f, b.pos, !1, !1);
|
|
77538
77538
|
}
|
|
77539
77539
|
for (const b of p) {
|
|
77540
77540
|
const f = `${t}.${b.name}`, _ = this._enums.get(f) || [];
|
|
77541
|
-
_.push({ ...b, name: f, isImport: !0, libraryInfoId: n }), this._enums.set(f, _);
|
|
77541
|
+
_.push({ ...b, name: f, isImport: !0, libraryInfoId: n }), this._enums.set(f, _), this._addEnumToMap(f, f, b.pos);
|
|
77542
77542
|
}
|
|
77543
77543
|
}
|
|
77544
77544
|
_importTypeUpdate(e, t, n) {
|
|
@@ -78550,8 +78550,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
78550
78550
|
}
|
|
78551
78551
|
_setFunc(e, t, n, i) {
|
|
78552
78552
|
const s = [], o = [], { desc: p, paramsDesc: b, returnsDesc: f, params: _, hasMemberIndex: m } = e;
|
|
78553
|
-
for (const
|
|
78554
|
-
const { type: S, name: L, defaultValue: C } =
|
|
78553
|
+
for (const R of _) {
|
|
78554
|
+
const { type: S, name: L, defaultValue: C } = R;
|
|
78555
78555
|
s.push({
|
|
78556
78556
|
name: L,
|
|
78557
78557
|
desc: b?.[L],
|
|
@@ -78574,22 +78574,22 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
78574
78574
|
};
|
|
78575
78575
|
let z = x;
|
|
78576
78576
|
if (e.ruleType === T0.ArrowMethod) {
|
|
78577
|
-
const
|
|
78578
|
-
z = `${this._getMethodTypeName(
|
|
78577
|
+
const R = _[0].type;
|
|
78578
|
+
z = `${this._getMethodTypeName(R)}.${x}`;
|
|
78579
78579
|
}
|
|
78580
78580
|
if (this._buildinFunctions.has(z)) {
|
|
78581
|
-
const
|
|
78581
|
+
const R = this._buildinFunctions.get(z);
|
|
78582
78582
|
y.realName = x;
|
|
78583
|
-
let S =
|
|
78584
|
-
S = S !== void 0 ? S + 1 : 0, y.index = S, e.index = S,
|
|
78583
|
+
let S = R?.[R.length - 1].index;
|
|
78584
|
+
S = S !== void 0 ? S + 1 : 0, y.index = S, e.index = S, R?.push(y);
|
|
78585
78585
|
return;
|
|
78586
78586
|
}
|
|
78587
78587
|
let q = this._functions.get(x);
|
|
78588
78588
|
if (q) {
|
|
78589
|
-
const
|
|
78590
|
-
y.index =
|
|
78589
|
+
const R = q.length;
|
|
78590
|
+
y.index = R, e.index = R, this._verifyFuncRepeat(q, y, n), q.push(y), this._overloadsFuncs.push({
|
|
78591
78591
|
name: x,
|
|
78592
|
-
index:
|
|
78592
|
+
index: R,
|
|
78593
78593
|
line: t.lineNumber,
|
|
78594
78594
|
startColumn: t.column + 1,
|
|
78595
78595
|
endColumn: t.column + x.length
|
|
@@ -78597,15 +78597,15 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
78597
78597
|
} else
|
|
78598
78598
|
q = [y];
|
|
78599
78599
|
if (e.isExport) {
|
|
78600
|
-
const { line:
|
|
78601
|
-
i >
|
|
78600
|
+
const { line: R = 0 } = this._endExport;
|
|
78601
|
+
i > R && (this._endExport = { line: i, name: x, index: y.index }), this._exportFunctions.push(y);
|
|
78602
78602
|
}
|
|
78603
78603
|
this._functions.set(x, q);
|
|
78604
78604
|
}
|
|
78605
78605
|
_setMethod(e, t) {
|
|
78606
78606
|
const { name: n, returnedTypes: i, params: s, desc: o, paramsDesc: p, returnsDesc: b } = e, f = s[0].type, _ = [], m = [];
|
|
78607
|
-
for (const
|
|
78608
|
-
const { type: S, name: L, defaultValue: C } =
|
|
78607
|
+
for (const R of s.slice(1)) {
|
|
78608
|
+
const { type: S, name: L, defaultValue: C } = R;
|
|
78609
78609
|
_.push({
|
|
78610
78610
|
name: L,
|
|
78611
78611
|
desc: p?.[L],
|
|
@@ -78632,16 +78632,16 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
78632
78632
|
hasRequest: this._hasRequest
|
|
78633
78633
|
};
|
|
78634
78634
|
if (this._buildinMethods.has(T)) {
|
|
78635
|
-
const
|
|
78636
|
-
let S =
|
|
78637
|
-
S = S !== void 0 ? S + 1 : 0, y.index = S, e.index = S,
|
|
78635
|
+
const R = this._buildinMethods.get(T);
|
|
78636
|
+
let S = R?.[R.length - 1].index;
|
|
78637
|
+
S = S !== void 0 ? S + 1 : 0, y.index = S, e.index = S, R?.push(y);
|
|
78638
78638
|
return;
|
|
78639
78639
|
}
|
|
78640
78640
|
let z = this._methods.get(T), q = this._functions.get(n);
|
|
78641
78641
|
if (q) {
|
|
78642
|
-
const
|
|
78643
|
-
let L =
|
|
78644
|
-
|
|
78642
|
+
const R = q.filter((C) => (C.methodName = T, !C.isImport)).length, S = z?.filter((C) => !C.isImport)?.length || 0;
|
|
78643
|
+
let L = R;
|
|
78644
|
+
R > S && (L = R - 1), y.index = L, e.index = L;
|
|
78645
78645
|
}
|
|
78646
78646
|
z ? z.push(y) : z = [y], e.isExport && this._exportMethods.push(y), this._methods.set(T, z);
|
|
78647
78647
|
}
|
|
@@ -78776,8 +78776,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
78776
78776
|
const q = this._verifyName(T);
|
|
78777
78777
|
if (q?.type) {
|
|
78778
78778
|
if (x = q.type, y = "", q.title?.startsWith("built-in variable")) {
|
|
78779
|
-
const
|
|
78780
|
-
t = this._expandMethodHandle(
|
|
78779
|
+
const R = this._getOriginMethodName(x, _);
|
|
78780
|
+
t = this._expandMethodHandle(R, n, i, { ...q, isBuiltInVar: !0 }, b, s);
|
|
78781
78781
|
}
|
|
78782
78782
|
} else
|
|
78783
78783
|
this._buildinTypes.get(T) && (y = B(_0.methodNotExistErr, { name: T, methodName: _ }));
|
|
@@ -78864,13 +78864,13 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
78864
78864
|
_overloadsFuncGetTypes(e, t, n, i, s) {
|
|
78865
78865
|
let o = [], p = [], b = [], f = 0, _ = 0;
|
|
78866
78866
|
for (const [x, T] of e.entries()) {
|
|
78867
|
-
const { args: y, returnedTypes: z, name: q, thisType:
|
|
78868
|
-
if ($ > _ && (f = x, _ = $), S && !this._checkMethodThisType(
|
|
78867
|
+
const { args: y, returnedTypes: z, name: q, thisType: R } = T, S = i || t.params[0] || t[y[0].name], { errMsg: L, warnMsg: C, matchCount: $ } = this._overloadsCheckArgs(t, y, q, n, S);
|
|
78868
|
+
if ($ > _ && (f = x, _ = $), S && !this._checkMethodThisType(R, S.type) && L.unshift({
|
|
78869
78869
|
msg: B(_0.typeMismatch, {
|
|
78870
78870
|
operator: q,
|
|
78871
78871
|
index: S.name || "id",
|
|
78872
78872
|
typeE: S.type,
|
|
78873
|
-
typeR:
|
|
78873
|
+
typeR: R[0]
|
|
78874
78874
|
}),
|
|
78875
78875
|
ctx: n
|
|
78876
78876
|
}), x === 0)
|
|
@@ -78897,8 +78897,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
78897
78897
|
startColumn: m.start.column + 1,
|
|
78898
78898
|
endColumn: m.start.column + E.length
|
|
78899
78899
|
}), s) {
|
|
78900
|
-
const x = e[f], { thisType: T, name: y, index: z, isUser: q, title:
|
|
78901
|
-
if (this._hasMemberIndexVerify(x, n, s),
|
|
78900
|
+
const x = e[f], { thisType: T, name: y, index: z, isUser: q, title: R, realName: S } = x;
|
|
78901
|
+
if (this._hasMemberIndexVerify(x, n, s), R?.startsWith("built-in") && (s.isBuiltIn = !0), s.index = z || f, T) {
|
|
78902
78902
|
const L = this._functions.get(y);
|
|
78903
78903
|
L && (s.selfArg = L[0].args?.[0], s.selfArg.isBuiltInVar = i?.isBuiltInVar, s.selfArg.isBuiltInConst = i?.isBuiltInConst);
|
|
78904
78904
|
} else
|
|
@@ -78961,10 +78961,10 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
78961
78961
|
}
|
|
78962
78962
|
if (["arg0, arg1, ...", "number0, number1, ..."].includes(y.name) && p.length > T + 1) {
|
|
78963
78963
|
const q = p.slice(T + 1);
|
|
78964
|
-
let
|
|
78964
|
+
let R = p[T];
|
|
78965
78965
|
for (const S of q) {
|
|
78966
|
-
|
|
78967
|
-
const L = S.type !== `${P.SIMPLE} ${P.NA}` ? this._checkArg(S, y, n,
|
|
78966
|
+
R.type === `${P.SIMPLE} ${P.NA}` && (R = S);
|
|
78967
|
+
const L = S.type !== `${P.SIMPLE} ${P.NA}` ? this._checkArg(S, y, n, R, S.ctx, !0, m) : "";
|
|
78968
78968
|
L && _.push({
|
|
78969
78969
|
msg: L,
|
|
78970
78970
|
ctx: S.ctx
|
|
@@ -79031,16 +79031,16 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
79031
79031
|
this._errorHandle(q, z.ctx), m = !0;
|
|
79032
79032
|
else if (n.startsWith("request.") && y.name === "expression")
|
|
79033
79033
|
if (z.ruleType === T0.Brackethesized)
|
|
79034
|
-
E = z.exprs.map((
|
|
79034
|
+
E = z.exprs.map((R) => this._typeReplace(s, R.type));
|
|
79035
79035
|
else if ((z.types || z.returnedTypes)?.length)
|
|
79036
|
-
E = (z.types || z.returnedTypes).map((
|
|
79036
|
+
E = (z.types || z.returnedTypes).map((R) => this._typeReplace(s, R)), (z.types || z.returnedTypes)?.isBrackethesized && Object.assign(E, { isBrackethesized: !0 });
|
|
79037
79037
|
else {
|
|
79038
|
-
const
|
|
79039
|
-
E.push(
|
|
79038
|
+
const R = this._typeReplace(s, z.type);
|
|
79039
|
+
E.push(R);
|
|
79040
79040
|
}
|
|
79041
79041
|
else if (n === "input.enum" && y.name === "defval") {
|
|
79042
|
-
const
|
|
79043
|
-
E.push(`${P.INPUT} ${
|
|
79042
|
+
const R = this._removePrefix(z.type);
|
|
79043
|
+
E.push(`${P.INPUT} ${R}`);
|
|
79044
79044
|
}
|
|
79045
79045
|
delete p[y.name];
|
|
79046
79046
|
}
|
|
@@ -79217,13 +79217,13 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
79217
79217
|
const q = this._getMapType(i?.type);
|
|
79218
79218
|
if (!q)
|
|
79219
79219
|
return;
|
|
79220
|
-
const
|
|
79221
|
-
if (!m.endsWith(q[
|
|
79220
|
+
const R = T === "key" ? 0 : 1;
|
|
79221
|
+
if (!m.endsWith(q[R]) && !(m.endsWith(P.INT) && q[R] === P.FLOAT))
|
|
79222
79222
|
return B(_0.typeMismatch, {
|
|
79223
79223
|
operator: n,
|
|
79224
79224
|
index: T,
|
|
79225
79225
|
typeE: m,
|
|
79226
|
-
typeR: this._typeAddSeries(q[
|
|
79226
|
+
typeR: this._typeAddSeries(q[R])
|
|
79227
79227
|
});
|
|
79228
79228
|
break;
|
|
79229
79229
|
case "<arg_expr_type>":
|
|
@@ -79411,17 +79411,17 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
79411
79411
|
return [P.UNDETERMINED];
|
|
79412
79412
|
if (!f.filter((L) => L && L.length).length)
|
|
79413
79413
|
return [P.UNDETERMINED];
|
|
79414
|
-
let z = f[0] || [], q = z.length <= 1 ? z[0] : `[${z.join(", ")}]`,
|
|
79414
|
+
let z = f[0] || [], q = z.length <= 1 ? z[0] : `[${z.join(", ")}]`, R = 0, S = 0;
|
|
79415
79415
|
for (const L of f.slice(1))
|
|
79416
79416
|
if (L)
|
|
79417
|
-
if (
|
|
79418
|
-
S =
|
|
79417
|
+
if (R++, q += L.length <= 1 ? `; ${L[0]}` : `; [${L.join(", ")}]`, L.length !== z.length)
|
|
79418
|
+
S = R;
|
|
79419
79419
|
else
|
|
79420
79420
|
for (const [C, $] of z.entries())
|
|
79421
79421
|
if (this._compareType(L[C], $, !0))
|
|
79422
79422
|
(L[C].includes(P.FLOAT) && !$.includes(P.FLOAT) || z[C] === `${P.SIMPLE} ${P.NA}`) && (z[C] = L[C]);
|
|
79423
79423
|
else {
|
|
79424
|
-
S =
|
|
79424
|
+
S = R;
|
|
79425
79425
|
break;
|
|
79426
79426
|
}
|
|
79427
79427
|
if (S) {
|
|
@@ -79472,6 +79472,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
79472
79472
|
_exportEles;
|
|
79473
79473
|
_scriptType;
|
|
79474
79474
|
_tmpVarNames = [];
|
|
79475
|
+
_importCodes = {};
|
|
79475
79476
|
constructor(e, t, n) {
|
|
79476
79477
|
this._argChangeMap = /* @__PURE__ */ new Map(), this._nameMap = /* @__PURE__ */ new Map(), this._prefixNameVar = `${e}_var`, this._prefixNameFunc = `${e}_func`, this._prefixNameConst = `${e}_const`, this._userTypes = [], this._isInFunc = !1, this._varlist = [{}], this._memberIndexList = [{}], this._blockCount = 0, this._inputCount = 0, this._count = 0, this._codesCol = [[]], this._dependsObj = {}, this._enums = /* @__PURE__ */ new Map(), this._preRunMembers = [], this._preRunMembersFuncs = [], this._libTitle = n, this._exportEles = [], this._scriptType = t;
|
|
79477
79478
|
}
|
|
@@ -79515,15 +79516,13 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
79515
79516
|
};
|
|
79516
79517
|
}
|
|
79517
79518
|
parserlib(e = []) {
|
|
79518
|
-
for (const b of e)
|
|
79519
|
-
if (
|
|
79520
|
-
|
|
79521
|
-
|
|
79522
|
-
|
|
79523
|
-
|
|
79524
|
-
|
|
79525
|
-
this._parserStmt(b);
|
|
79526
|
-
}
|
|
79519
|
+
for (const b of e)
|
|
79520
|
+
if (b)
|
|
79521
|
+
if (Array.isArray(b))
|
|
79522
|
+
for (const f of b)
|
|
79523
|
+
this._parserStmt(f);
|
|
79524
|
+
else
|
|
79525
|
+
this._parserStmt(b);
|
|
79527
79526
|
const t = this._codesCol[0].map((b, f) => ({ ...b, index: f })), n = t.filter((b) => b.isExport), i = {
|
|
79528
79527
|
currentCodes: [],
|
|
79529
79528
|
hasInput: !1,
|
|
@@ -79549,6 +79548,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
79549
79548
|
let p = o.join(`;
|
|
79550
79549
|
`).replace(/;+/g, ";");
|
|
79551
79550
|
return p = `const $name = (function () {
|
|
79551
|
+
${Object.values(this._importCodes).join(`
|
|
79552
|
+
`)}
|
|
79552
79553
|
${p}
|
|
79553
79554
|
return {
|
|
79554
79555
|
${this._exportEles.map((b) => `${b.key}: ${b.name}`).join(", ")}
|
|
@@ -79604,7 +79605,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
79604
79605
|
n = this._parserAgainAssign(e);
|
|
79605
79606
|
break;
|
|
79606
79607
|
case T0.ImportElement:
|
|
79607
|
-
|
|
79608
|
+
const p = e.name || e.libraryName;
|
|
79609
|
+
n = e.code || "", this._importCodes[p] = n;
|
|
79608
79610
|
break;
|
|
79609
79611
|
case T0.TypeStatement:
|
|
79610
79612
|
n = this._parserTypeStatement(e);
|
|
@@ -79720,10 +79722,10 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
79720
79722
|
m || (this._count += 1);
|
|
79721
79723
|
const x = `$$count${this._count}`, T = `$forTo${this._blockCount}`, y = `$$toCount${p.start.tokenIndex}`, z = `_$sign${p.start.tokenIndex}`, q = `_$step${p.start.tokenIndex}`;
|
|
79722
79724
|
t || (this._dependsObj[T] = /* @__PURE__ */ new Map());
|
|
79723
|
-
const
|
|
79725
|
+
const R = this._parserSingleExpression(b), S = this._parserSingleExpression(f), L = _ ? this._parserSingleExpression(_) : "", C = this._parserBlockLine(i, t, !1, !0);
|
|
79724
79726
|
cn.includes(s) && (s = `$${s}`);
|
|
79725
79727
|
const $ = `var ${E} = Date.now()`;
|
|
79726
|
-
let X = `for (let ${s}=${
|
|
79728
|
+
let X = `for (let ${s}=${R};${s} * ${z} >= ${y}; ${s}-=${q}){
|
|
79727
79729
|
if (Date.now() - ${E} > 500) {
|
|
79728
79730
|
throw new Error('${_0.loopRuntimeErr}')
|
|
79729
79731
|
}
|
|
@@ -79732,8 +79734,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
79732
79734
|
}`;
|
|
79733
79735
|
return X = `${$};
|
|
79734
79736
|
${m ? "" : `var ${x} = 0`};
|
|
79735
|
-
let ${y} = ${S};
|
|
79736
|
-
const ${z} = (${
|
|
79737
|
+
let ${y} = ${f?.type?.endsWith(" int") || !L || f?.type?.endsWith(" int") ? `Math.round(${S})` : S};
|
|
79738
|
+
const ${z} = (${R})>${y} ? 1 : -1;
|
|
79737
79739
|
${y} = ${y}*${z};
|
|
79738
79740
|
const ${q} = (${L || "1"}) * ${z}
|
|
79739
79741
|
${X}`, t || this._codesCol[this._blockCount].push({
|
|
@@ -80266,26 +80268,26 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
80266
80268
|
delete e.params;
|
|
80267
80269
|
const f = [], _ = [];
|
|
80268
80270
|
let m = [], E;
|
|
80269
|
-
const x = this._argChangeMap.get(o), T = (
|
|
80270
|
-
o.startsWith(`${this._prefixNameFunc}.ta.`) && S === "length" && (
|
|
80271
|
-
const L = p &&
|
|
80272
|
-
if (this._isInFunc && (
|
|
80271
|
+
const x = this._argChangeMap.get(o), T = (R, S) => {
|
|
80272
|
+
o.startsWith(`${this._prefixNameFunc}.ta.`) && S === "length" && (R.type.startsWith(P.SERIES) || R.type === P.UNDETERMINED) && f.push("isSeriesLen: true");
|
|
80273
|
+
const L = p && R.index === 0 && !R.hasMethod || x?.includes(R.index);
|
|
80274
|
+
if (this._isInFunc && (R.arg || R.isArg) && this._currentFuncName) {
|
|
80273
80275
|
const $ = this._argChangeMap.get(this._currentFuncName) || [];
|
|
80274
|
-
L && !$.includes(
|
|
80276
|
+
L && !$.includes(R.index) && ($.push(R.index), this._argChangeMap.set(this._currentFuncName, $));
|
|
80275
80277
|
}
|
|
80276
80278
|
s ? this._dependsObj[n] = /* @__PURE__ */ new Map() : i && S === "expression" && (this._isExperssion = !0, this._dependsObj[`$arg_${S}${n}`] = /* @__PURE__ */ new Map());
|
|
80277
|
-
let C =
|
|
80279
|
+
let C = R.ruleType === T0.Brackethesized ? this._parserBrackethesized(R) : this._parserSingleExpression(R, L);
|
|
80278
80280
|
if (S && !["arg0, arg1, ...", "number0, number1, ..."].includes(S)) {
|
|
80279
|
-
|
|
80281
|
+
R.isSourceType ? f.push(`sourceTypeName: "${R.name}"`) : S === "defval" && o === `${this._prefixNameFunc}.input.enum` && (E = this._enums.get(R.enumName));
|
|
80280
80282
|
const $ = this._requestParamsHandle(i, S, n, s, C, o);
|
|
80281
80283
|
C = $?.code || C, $?.paramsExpr && m.push($?.paramsExpr), cn.includes(S) && (S = `$${S}`), cn.includes(C) && (C = `$${C}`), f.push(`${S}: ${C}`);
|
|
80282
80284
|
} else
|
|
80283
80285
|
_.push(C);
|
|
80284
80286
|
}, y = [];
|
|
80285
|
-
for (const
|
|
80286
|
-
y.push(`'${
|
|
80287
|
-
for (const
|
|
80288
|
-
T(e[
|
|
80287
|
+
for (const R of b)
|
|
80288
|
+
y.push(`'${R.originName}'`), T(R, R.originName);
|
|
80289
|
+
for (const R of Object.keys(e))
|
|
80290
|
+
T(e[R], R);
|
|
80289
80291
|
i && this._isInFunc && f.push("paramsExpr: $paramsExpr"), t && f.push(t), E && f.unshift(`options: [${E.join(", ")}]`);
|
|
80290
80292
|
const z = ["label.new", "line.new", "box.new"].includes(o.replace(`${this._prefixNameFunc}.`, "")) ? `, [${y.join(",")}]` : "", q = m.length ? `, [${this._isInFunc ? "...$paramsExpr || [], " : ""}${m.join(", ")}]` : "";
|
|
80291
80293
|
return _.length ? `({${f.join(", ")}}, [${_.join(", ")}], ${n}${q}${z})` : f.length ? `({${f.join(", ")}}, ${n}${q}${z})` : `(${n}${q})`;
|
|
@@ -80400,10 +80402,10 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
80400
80402
|
let T = e ? "" : x.preParser(m);
|
|
80401
80403
|
const y = {};
|
|
80402
80404
|
if (e && !i.some((z) => z.type === Ve.Error)) {
|
|
80403
|
-
const { code: z = "", hasLeftVisibleBarTime: q, hasRightVisibleBarTime:
|
|
80405
|
+
const { code: z = "", hasLeftVisibleBarTime: q, hasRightVisibleBarTime: R, hasAlert: S } = x.parser(m) || {};
|
|
80404
80406
|
Object.assign(y, {
|
|
80405
80407
|
hasLeftVisibleBarTime: q,
|
|
80406
|
-
hasRightVisibleBarTime:
|
|
80408
|
+
hasRightVisibleBarTime: R,
|
|
80407
80409
|
hasAlert: S,
|
|
80408
80410
|
strategyAlertMsg: b
|
|
80409
80411
|
}), T = x.preParseCode, E = (await Qo(z, { compress: !0, mangle: !0 })).code || "";
|
|
@@ -80478,7 +80480,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
80478
80480
|
async function xE(r, e, t, n) {
|
|
80479
80481
|
const { ast: i, comments: s } = vd(r + `
|
|
80480
80482
|
|
|
80481
|
-
`), { commentFilters: o } = Yp(s), p = new Rd(n, o, t), b = await p.visit(i), { name: f, index: _ } = p.endExport, m = b.findIndex((q) => q.name === f && q.index === _), E = b.slice(0, m + 1), T = new Wd("_$", Mn.library, e).parserlib(E);
|
|
80483
|
+
`), { commentFilters: o } = Yp(s), p = new Rd(n, o, t), b = await p.visit(i), { name: f, index: _ } = p.endExport, m = b.findIndex((q) => q.name === f && q.index === _), E = m === -1 ? b : b.slice(0, m + 1), T = new Wd("_$", Mn.library, e).parserlib(E);
|
|
80482
80484
|
let y = T?.code || "";
|
|
80483
80485
|
const z = await Qo(y, { compress: !0, mangle: !0 });
|
|
80484
80486
|
return {
|
|
@@ -95502,13 +95504,13 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
95502
95504
|
const q = {
|
|
95503
95505
|
lineNumber: b.start.line,
|
|
95504
95506
|
column: b.start.column
|
|
95505
|
-
},
|
|
95507
|
+
}, R = {
|
|
95506
95508
|
ruleType: E0.DeclareAssign,
|
|
95507
95509
|
nameList: { prefix: m, type: E, name: x, pos: q, desc: z, ruleType: E0.VarSingle },
|
|
95508
95510
|
value: T,
|
|
95509
95511
|
isExport: !0
|
|
95510
95512
|
}, S = i.line - 1, { line: L = 0 } = this._endExport;
|
|
95511
|
-
return S > L && (this._endExport = { line: S, name:
|
|
95513
|
+
return S > L && (this._endExport = { line: S, name: R.name }), this._repeatVarJudge(x, b, q), this._variablesHandle(R, e), this._addExportPos(s.symbol, "variables"), R;
|
|
95512
95514
|
};
|
|
95513
95515
|
visitVarBlockStmt = (e) => {
|
|
95514
95516
|
const { children: t } = e;
|
|
@@ -95818,8 +95820,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
95818
95820
|
let _ = -1;
|
|
95819
95821
|
const m = s.reduce((E, x, T) => {
|
|
95820
95822
|
if (E) {
|
|
95821
|
-
const y = x.args.params || [], z = { ...E }, q = this._getMethodTypes([z], [o[T]]) || [],
|
|
95822
|
-
if (this._types.has(
|
|
95823
|
+
const y = x.args.params || [], z = { ...E }, q = this._getMethodTypes([z], [o[T]]) || [], R = q[0];
|
|
95824
|
+
if (this._types.has(R)) {
|
|
95823
95825
|
if (x.name.includes(".")) {
|
|
95824
95826
|
const L = x.name.split("."), C = L.pop(), $ = L.join("."), K = this._getMethodFiledType(q, $, e), X = this._getOriginMethodName(K, C);
|
|
95825
95827
|
return this._buildinFunctions.has(X) ? x.name = X : x.name = C, z.ctx = o[T], y.unshift({
|
|
@@ -95832,11 +95834,11 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
95832
95834
|
_ = T, E.isType = !0;
|
|
95833
95835
|
return E;
|
|
95834
95836
|
}
|
|
95835
|
-
|
|
95836
|
-
const S = `${this._getMethodTypeName(
|
|
95837
|
+
R || this._errorHandle(B(d0.undeterminedTypeMethodErr, { name: E.name }), o[T]);
|
|
95838
|
+
const S = `${this._getMethodTypeName(R)}.${x.name}`;
|
|
95837
95839
|
this._buildinFunctions.has(S) && (x.name = S), y.unshift({
|
|
95838
95840
|
ruleType: E0.MethodExpression,
|
|
95839
|
-
type:
|
|
95841
|
+
type: R,
|
|
95840
95842
|
exprs: [z],
|
|
95841
95843
|
ctx: o[T]
|
|
95842
95844
|
}), x.args.params = y;
|
|
@@ -96246,7 +96248,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
96246
96248
|
if (m.error)
|
|
96247
96249
|
return this._errorHandle(m.error, t);
|
|
96248
96250
|
const { codeStr: E, description: x } = m;
|
|
96249
|
-
this._importLibs.set(f, { ...e, libraryId: f, startLine: i.line, endLine: n.line, ctx: void 0, desc: x }), this._importDataHandle(m, _, e.username.substring(1)), sn.includes(_) && (_ = `$${_}`), e.code = E
|
|
96251
|
+
this._importLibs.set(f, { ...e, libraryId: f, startLine: i.line, endLine: n.line, ctx: void 0, desc: x }), this._importDataHandle(m, _, e.username.substring(1)), sn.includes(_) && (_ = `$${_}`), e.code = E;
|
|
96250
96252
|
} else
|
|
96251
96253
|
this._errorHandle(B(d0.importNotExitErr, { libraryName: o }), t);
|
|
96252
96254
|
}
|
|
@@ -96262,7 +96264,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
96262
96264
|
}
|
|
96263
96265
|
for (const f of o) {
|
|
96264
96266
|
const _ = `${t}.${f.name}`, m = this._types.get(_) || [];
|
|
96265
|
-
m.push({ ...this._importTypeUpdate(f, o, t), name: _, isImport: !0, libraryInfoId: n }), this._types.set(_, m);
|
|
96267
|
+
m.push({ ...this._importTypeUpdate(f, o, t), name: _, isImport: !0, libraryInfoId: n }), this._types.set(_, m), this._addVarToMap(_, _, f.pos, !1, !1);
|
|
96266
96268
|
}
|
|
96267
96269
|
for (const f of p) {
|
|
96268
96270
|
const _ = `${t}.${f.name}`, m = this._variables.get(_) || [];
|
|
@@ -96270,7 +96272,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
96270
96272
|
}
|
|
96271
96273
|
for (const f of b) {
|
|
96272
96274
|
const _ = `${t}.${f.name}`, m = this._enums.get(_) || [];
|
|
96273
|
-
m.push({ ...f, name: _, isImport: !0, libraryInfoId: n }), this._enums.set(_, m);
|
|
96275
|
+
m.push({ ...f, name: _, isImport: !0, libraryInfoId: n }), this._enums.set(_, m), this._addEnumToMap(_, _, f.pos);
|
|
96274
96276
|
}
|
|
96275
96277
|
}
|
|
96276
96278
|
_importTypeUpdate(e, t, n) {
|
|
@@ -97282,8 +97284,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
97282
97284
|
}
|
|
97283
97285
|
_setFunc(e, t, n, i) {
|
|
97284
97286
|
const s = [], o = [], { desc: p, paramsDesc: b, returnsDesc: f, params: _, hasMemberIndex: m } = e;
|
|
97285
|
-
for (const
|
|
97286
|
-
const { type: S, name: L, defaultValue: C } =
|
|
97287
|
+
for (const R of _) {
|
|
97288
|
+
const { type: S, name: L, defaultValue: C } = R;
|
|
97287
97289
|
s.push({
|
|
97288
97290
|
name: L,
|
|
97289
97291
|
desc: b?.[L],
|
|
@@ -97306,22 +97308,22 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
97306
97308
|
};
|
|
97307
97309
|
let z = x;
|
|
97308
97310
|
if (e.ruleType === E0.ArrowMethod) {
|
|
97309
|
-
const
|
|
97310
|
-
z = `${this._getMethodTypeName(
|
|
97311
|
+
const R = _[0].type;
|
|
97312
|
+
z = `${this._getMethodTypeName(R)}.${x}`;
|
|
97311
97313
|
}
|
|
97312
97314
|
if (this._buildinFunctions.has(z)) {
|
|
97313
|
-
const
|
|
97315
|
+
const R = this._buildinFunctions.get(z);
|
|
97314
97316
|
y.realName = x;
|
|
97315
|
-
let S =
|
|
97316
|
-
S = S !== void 0 ? S + 1 : 0, y.index = S, e.index = S,
|
|
97317
|
+
let S = R?.[R.length - 1].index;
|
|
97318
|
+
S = S !== void 0 ? S + 1 : 0, y.index = S, e.index = S, R?.push(y);
|
|
97317
97319
|
return;
|
|
97318
97320
|
}
|
|
97319
97321
|
let q = this._functions.get(x);
|
|
97320
97322
|
if (q) {
|
|
97321
|
-
const
|
|
97322
|
-
y.index =
|
|
97323
|
+
const R = q.length;
|
|
97324
|
+
y.index = R, e.index = R, this._verifyFuncRepeat(q, y, n), q.push(y), this._overloadsFuncs.push({
|
|
97323
97325
|
name: x,
|
|
97324
|
-
index:
|
|
97326
|
+
index: R,
|
|
97325
97327
|
line: t.lineNumber,
|
|
97326
97328
|
startColumn: t.column + 1,
|
|
97327
97329
|
endColumn: t.column + x.length
|
|
@@ -97329,15 +97331,15 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
97329
97331
|
} else
|
|
97330
97332
|
q = [y];
|
|
97331
97333
|
if (e.isExport) {
|
|
97332
|
-
const { line:
|
|
97333
|
-
i >
|
|
97334
|
+
const { line: R = 0 } = this._endExport;
|
|
97335
|
+
i > R && (this._endExport = { line: i, name: x, index: y.index }), this._exportFunctions.push(y);
|
|
97334
97336
|
}
|
|
97335
97337
|
this._functions.set(x, q);
|
|
97336
97338
|
}
|
|
97337
97339
|
_setMethod(e, t) {
|
|
97338
97340
|
const { name: n, returnedTypes: i, params: s, desc: o, paramsDesc: p, returnsDesc: b } = e, f = s[0].type, _ = [], m = [];
|
|
97339
|
-
for (const
|
|
97340
|
-
const { type: S, name: L, defaultValue: C } =
|
|
97341
|
+
for (const R of s.slice(1)) {
|
|
97342
|
+
const { type: S, name: L, defaultValue: C } = R;
|
|
97341
97343
|
_.push({
|
|
97342
97344
|
name: L,
|
|
97343
97345
|
desc: p?.[L],
|
|
@@ -97364,16 +97366,16 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
97364
97366
|
hasRequest: this._hasRequest
|
|
97365
97367
|
};
|
|
97366
97368
|
if (this._buildinMethods.has(T)) {
|
|
97367
|
-
const
|
|
97368
|
-
let S =
|
|
97369
|
-
S = S !== void 0 ? S + 1 : 0, y.index = S, e.index = S,
|
|
97369
|
+
const R = this._buildinMethods.get(T);
|
|
97370
|
+
let S = R?.[R.length - 1].index;
|
|
97371
|
+
S = S !== void 0 ? S + 1 : 0, y.index = S, e.index = S, R?.push(y);
|
|
97370
97372
|
return;
|
|
97371
97373
|
}
|
|
97372
97374
|
let z = this._methods.get(T), q = this._functions.get(n);
|
|
97373
97375
|
if (q) {
|
|
97374
|
-
const
|
|
97375
|
-
let L =
|
|
97376
|
-
|
|
97376
|
+
const R = q.filter((C) => (C.methodName = T, !C.isImport)).length, S = z?.filter((C) => !C.isImport)?.length || 0;
|
|
97377
|
+
let L = R;
|
|
97378
|
+
R > S && (L = R - 1), y.index = L, e.index = L;
|
|
97377
97379
|
}
|
|
97378
97380
|
z ? z.push(y) : z = [y], e.isExport && this._exportMethods.push(y), this._methods.set(T, z);
|
|
97379
97381
|
}
|
|
@@ -97508,8 +97510,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
97508
97510
|
const q = this._verifyName(T);
|
|
97509
97511
|
if (q?.type) {
|
|
97510
97512
|
if (x = q.type, y = "", q.title?.startsWith("built-in variable")) {
|
|
97511
|
-
const
|
|
97512
|
-
t = this._expandMethodHandle(
|
|
97513
|
+
const R = this._getOriginMethodName(x, _);
|
|
97514
|
+
t = this._expandMethodHandle(R, n, i, { ...q, isBuiltInVar: !0 }, b, s);
|
|
97513
97515
|
}
|
|
97514
97516
|
} else
|
|
97515
97517
|
this._buildinTypes.get(T) && (y = B(d0.methodNotExistErr, { name: T, methodName: _ }));
|
|
@@ -97596,13 +97598,13 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
97596
97598
|
_overloadsFuncGetTypes(e, t, n, i, s) {
|
|
97597
97599
|
let o = [], p = [], b = [], f = 0, _ = 0;
|
|
97598
97600
|
for (const [x, T] of e.entries()) {
|
|
97599
|
-
const { args: y, returnedTypes: z, name: q, thisType:
|
|
97600
|
-
if ($ > _ && (f = x, _ = $), S && !this._checkMethodThisType(
|
|
97601
|
+
const { args: y, returnedTypes: z, name: q, thisType: R } = T, S = i || t.params[0] || t[y[0].name], { errMsg: L, warnMsg: C, matchCount: $ } = this._overloadsCheckArgs(t, y, q, n, S);
|
|
97602
|
+
if ($ > _ && (f = x, _ = $), S && !this._checkMethodThisType(R, S.type) && L.unshift({
|
|
97601
97603
|
msg: B(d0.typeMismatch, {
|
|
97602
97604
|
operator: q,
|
|
97603
97605
|
index: S.name || "id",
|
|
97604
97606
|
typeE: S.type,
|
|
97605
|
-
typeR:
|
|
97607
|
+
typeR: R[0]
|
|
97606
97608
|
}),
|
|
97607
97609
|
ctx: n
|
|
97608
97610
|
}), x === 0)
|
|
@@ -97629,8 +97631,8 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
97629
97631
|
startColumn: m.start.column + 1,
|
|
97630
97632
|
endColumn: m.start.column + E.length
|
|
97631
97633
|
}), s) {
|
|
97632
|
-
const x = e[f], { thisType: T, name: y, index: z, isUser: q, title:
|
|
97633
|
-
if (this._hasMemberIndexVerify(x, n, s),
|
|
97634
|
+
const x = e[f], { thisType: T, name: y, index: z, isUser: q, title: R, realName: S } = x;
|
|
97635
|
+
if (this._hasMemberIndexVerify(x, n, s), R?.startsWith("built-in") && (s.isBuiltIn = !0), s.index = z || f, T) {
|
|
97634
97636
|
const L = this._functions.get(y);
|
|
97635
97637
|
L && (s.selfArg = L[0].args?.[0], s.selfArg.isBuiltInVar = i?.isBuiltInVar, s.selfArg.isBuiltInConst = i?.isBuiltInConst);
|
|
97636
97638
|
} else
|
|
@@ -97693,10 +97695,10 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
97693
97695
|
}
|
|
97694
97696
|
if (["arg0, arg1, ...", "number0, number1, ..."].includes(y.name) && p.length > T + 1) {
|
|
97695
97697
|
const q = p.slice(T + 1);
|
|
97696
|
-
let
|
|
97698
|
+
let R = p[T];
|
|
97697
97699
|
for (const S of q) {
|
|
97698
|
-
|
|
97699
|
-
const L = S.type !== `${F.SIMPLE} ${F.NA}` ? this._checkArg(S, y, n,
|
|
97700
|
+
R.type === `${F.SIMPLE} ${F.NA}` && (R = S);
|
|
97701
|
+
const L = S.type !== `${F.SIMPLE} ${F.NA}` ? this._checkArg(S, y, n, R, S.ctx, !0, m) : "";
|
|
97700
97702
|
L && _.push({
|
|
97701
97703
|
msg: L,
|
|
97702
97704
|
ctx: S.ctx
|
|
@@ -97763,16 +97765,16 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
97763
97765
|
this._errorHandle(q, z.ctx), m = !0;
|
|
97764
97766
|
else if (n.startsWith("request.") && y.name === "expression")
|
|
97765
97767
|
if (z.ruleType === E0.Brackethesized)
|
|
97766
|
-
E = z.exprs.map((
|
|
97768
|
+
E = z.exprs.map((R) => this._typeReplace(s, R.type));
|
|
97767
97769
|
else if ((z.types || z.returnedTypes)?.length)
|
|
97768
|
-
E = (z.types || z.returnedTypes).map((
|
|
97770
|
+
E = (z.types || z.returnedTypes).map((R) => this._typeReplace(s, R)), (z.types || z.returnedTypes)?.isBrackethesized && Object.assign(E, { isBrackethesized: !0 });
|
|
97769
97771
|
else {
|
|
97770
|
-
const
|
|
97771
|
-
E.push(
|
|
97772
|
+
const R = this._typeReplace(s, z.type);
|
|
97773
|
+
E.push(R);
|
|
97772
97774
|
}
|
|
97773
97775
|
else if (n === "input.enum" && y.name === "defval") {
|
|
97774
|
-
const
|
|
97775
|
-
E.push(`${F.INPUT} ${
|
|
97776
|
+
const R = this._removePrefix(z.type);
|
|
97777
|
+
E.push(`${F.INPUT} ${R}`);
|
|
97776
97778
|
}
|
|
97777
97779
|
delete p[y.name];
|
|
97778
97780
|
}
|
|
@@ -97958,13 +97960,13 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
97958
97960
|
const q = this._getMapType(i?.type);
|
|
97959
97961
|
if (!q)
|
|
97960
97962
|
return;
|
|
97961
|
-
const
|
|
97962
|
-
if (!m.endsWith(q[
|
|
97963
|
+
const R = T === "key" ? 0 : 1;
|
|
97964
|
+
if (!m.endsWith(q[R]) && !(m.endsWith(F.INT) && q[R] === F.FLOAT))
|
|
97963
97965
|
return B(d0.typeMismatch, {
|
|
97964
97966
|
operator: n,
|
|
97965
97967
|
index: T,
|
|
97966
97968
|
typeE: m,
|
|
97967
|
-
typeR: this._typeAddSeries(q[
|
|
97969
|
+
typeR: this._typeAddSeries(q[R])
|
|
97968
97970
|
});
|
|
97969
97971
|
break;
|
|
97970
97972
|
case "<arg_expr_type>":
|
|
@@ -98153,17 +98155,17 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
98153
98155
|
return [F.UNDETERMINED];
|
|
98154
98156
|
if (!f.filter((L) => L && L.length).length)
|
|
98155
98157
|
return [F.UNDETERMINED];
|
|
98156
|
-
let z = f[0] || [], q = z.length <= 1 ? z[0] : `[${z.join(", ")}]`,
|
|
98158
|
+
let z = f[0] || [], q = z.length <= 1 ? z[0] : `[${z.join(", ")}]`, R = 0, S = 0;
|
|
98157
98159
|
for (const L of f.slice(1))
|
|
98158
98160
|
if (L)
|
|
98159
|
-
if (
|
|
98160
|
-
S =
|
|
98161
|
+
if (R++, q += L.length <= 1 ? `; ${L[0]}` : `; [${L.join(", ")}]`, L.length !== z.length)
|
|
98162
|
+
S = R;
|
|
98161
98163
|
else
|
|
98162
98164
|
for (const [C, $] of z.entries())
|
|
98163
98165
|
if (this._compareType(L[C], $))
|
|
98164
98166
|
(L[C].includes(F.FLOAT) && !$.includes(F.FLOAT) || z[C] === `${F.SIMPLE} ${F.NA}`) && (z[C] = L[C]);
|
|
98165
98167
|
else {
|
|
98166
|
-
S =
|
|
98168
|
+
S = R;
|
|
98167
98169
|
break;
|
|
98168
98170
|
}
|
|
98169
98171
|
if (S) {
|
|
@@ -98221,6 +98223,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
98221
98223
|
_exportEles;
|
|
98222
98224
|
_scriptType;
|
|
98223
98225
|
_tmpVarNames = [];
|
|
98226
|
+
_importCodes = {};
|
|
98224
98227
|
constructor(e, t, n) {
|
|
98225
98228
|
this._argChangeMap = /* @__PURE__ */ new Map(), this._nameMap = /* @__PURE__ */ new Map(), this._prefixNameVar = `${e}_var`, this._prefixNameFunc = `${e}_func`, this._prefixNameConst = `${e}_const`, this._userTypes = [], this._isInFunc = !1, this._varlist = [{}], this._memberIndexList = [{}], this._blockCount = 0, this._inputCount = 0, this._count = 0, this._codesCol = [[]], this._dependsObj = {}, this._enums = /* @__PURE__ */ new Map(), this._preRunMembers = [], this._libTitle = n, this._exportEles = [], this._scriptType = t;
|
|
98226
98229
|
}
|
|
@@ -98264,15 +98267,13 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
98264
98267
|
};
|
|
98265
98268
|
}
|
|
98266
98269
|
parserlib(e = []) {
|
|
98267
|
-
for (const b of e)
|
|
98268
|
-
if (
|
|
98269
|
-
|
|
98270
|
-
|
|
98271
|
-
|
|
98272
|
-
|
|
98273
|
-
|
|
98274
|
-
this._parserStmt(b);
|
|
98275
|
-
}
|
|
98270
|
+
for (const b of e)
|
|
98271
|
+
if (b)
|
|
98272
|
+
if (Array.isArray(b))
|
|
98273
|
+
for (const f of b)
|
|
98274
|
+
this._parserStmt(f);
|
|
98275
|
+
else
|
|
98276
|
+
this._parserStmt(b);
|
|
98276
98277
|
const t = this._codesCol[0].map((b, f) => ({ ...b, index: f })), n = t.filter((b) => b.isExport), i = {
|
|
98277
98278
|
currentCodes: [],
|
|
98278
98279
|
hasInput: !1,
|
|
@@ -98297,12 +98298,14 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
98297
98298
|
o.push(...i.memberCodes);
|
|
98298
98299
|
let p = o.join(`;
|
|
98299
98300
|
`).replace(/;+/g, ";");
|
|
98300
|
-
return p = `const $
|
|
98301
|
+
return p = `const $import_${this._libTitle} = function (_$_var, _$_const, _$_func) {
|
|
98302
|
+
${Object.values(this._importCodes).join(`
|
|
98303
|
+
`)}
|
|
98301
98304
|
${p}
|
|
98302
98305
|
return {
|
|
98303
98306
|
${this._exportEles.map((b) => `${b.key}: ${b.name}`).join(", ")}
|
|
98304
98307
|
}
|
|
98305
|
-
}
|
|
98308
|
+
}`, {
|
|
98306
98309
|
code: p,
|
|
98307
98310
|
hasLeftVisibleBarTime: this._hasLeftVisibleBarTime,
|
|
98308
98311
|
hasRightVisibleBarTime: this._hasRightVisibleBarTime,
|
|
@@ -98353,7 +98356,11 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
98353
98356
|
n = this._parserAgainAssign(e);
|
|
98354
98357
|
break;
|
|
98355
98358
|
case E0.ImportElement:
|
|
98356
|
-
|
|
98359
|
+
const o = e.name || e.libraryName;
|
|
98360
|
+
n = e.code || "", n = `${n.replace(`$import_${e.libraryName}`, `$import_${o}`)};
|
|
98361
|
+
const ${o} = $import_${o}(_$_var, _$_const, _$_func);
|
|
98362
|
+
${this._prefixNameFunc}.setImportLibrary($import_${o}, "${o}")
|
|
98363
|
+
`, this._importCodes[o] = n;
|
|
98357
98364
|
break;
|
|
98358
98365
|
case E0.TypeStatement:
|
|
98359
98366
|
n = this._parserTypeStatement(e);
|
|
@@ -98466,10 +98473,14 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
98466
98473
|
m || (this._count += 1);
|
|
98467
98474
|
const x = `$$count${this._count}`, T = `$forTo${this._blockCount}`, y = `$$toCount${p.start.tokenIndex}`, z = `_$sign${p.start.tokenIndex}`;
|
|
98468
98475
|
t || (this._dependsObj[T] = /* @__PURE__ */ new Map());
|
|
98469
|
-
const q = this._parserSingleExpression(b)
|
|
98476
|
+
const q = this._parserSingleExpression(b);
|
|
98477
|
+
let R = this._parserSingleExpression(f);
|
|
98478
|
+
const S = _ ? this._parserSingleExpression(_) : "";
|
|
98479
|
+
R = f?.type?.endsWith(" int") || !S || f?.type?.endsWith(" int") ? `Math.round(${R})` : R;
|
|
98480
|
+
const L = this._parserBlockLine(i, t, !1, !0);
|
|
98470
98481
|
sn.includes(s) && (s = `$${s}`);
|
|
98471
98482
|
const C = `var ${E} = Date.now()`;
|
|
98472
|
-
let K = `for (let ${s}=${q};(${this._prefixNameVar}.compareDataHandle(${s}) - ${
|
|
98483
|
+
let K = `for (let ${s}=${q};(${this._prefixNameVar}.compareDataHandle(${s}) - ${R}) * ${z} >= 0; ${s}-=(${S || "1"}) * ${z}){
|
|
98473
98484
|
if (Date.now() - ${E} > 500) {
|
|
98474
98485
|
throw new Error('${d0.loopRuntimeErr}')
|
|
98475
98486
|
}
|
|
@@ -98478,7 +98489,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
98478
98489
|
}`;
|
|
98479
98490
|
return K = `${C};
|
|
98480
98491
|
${m ? "" : `var ${x} = 0`};
|
|
98481
|
-
|
|
98492
|
+
let ${y} = ${R};
|
|
98482
98493
|
const ${z} = (${q})>${y} ? 1 : -1;
|
|
98483
98494
|
${K}`, t || this._codesCol[this._blockCount].push({
|
|
98484
98495
|
code: K,
|
|
@@ -99009,26 +99020,26 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
99009
99020
|
delete e.params;
|
|
99010
99021
|
const f = [], _ = [];
|
|
99011
99022
|
let m = [], E;
|
|
99012
|
-
const x = this._argChangeMap.get(o), T = (
|
|
99013
|
-
o.startsWith(`${this._prefixNameFunc}.ta.`) && S === "length" && (
|
|
99014
|
-
const L = p &&
|
|
99015
|
-
if (this._isInFunc && (
|
|
99023
|
+
const x = this._argChangeMap.get(o), T = (R, S) => {
|
|
99024
|
+
o.startsWith(`${this._prefixNameFunc}.ta.`) && S === "length" && (R.type.startsWith(F.SERIES) || R.type === F.UNDETERMINED) && f.push("isSeriesLen: true");
|
|
99025
|
+
const L = p && R.index === 0 && !R.hasMethod || x?.includes(R.index);
|
|
99026
|
+
if (this._isInFunc && (R.arg || R.isArg) && this._currentFuncName) {
|
|
99016
99027
|
const $ = this._argChangeMap.get(this._currentFuncName) || [];
|
|
99017
|
-
L && !$.includes(
|
|
99028
|
+
L && !$.includes(R.index) && ($.push(R.index), this._argChangeMap.set(this._currentFuncName, $));
|
|
99018
99029
|
}
|
|
99019
99030
|
s ? this._dependsObj[n] = /* @__PURE__ */ new Map() : i && S === "expression" && (this._isExperssion = !0, this._dependsObj[`$arg_${S}${n}`] = /* @__PURE__ */ new Map());
|
|
99020
|
-
let C =
|
|
99031
|
+
let C = R.ruleType === E0.Brackethesized ? this._parserBrackethesized(R) : this._parserSingleExpression(R, L);
|
|
99021
99032
|
if (S && !["arg0, arg1, ...", "number0, number1, ..."].includes(S)) {
|
|
99022
|
-
|
|
99033
|
+
R.isSourceType ? f.push(`sourceTypeName: "${R.name}"`) : S === "defval" && o === `${this._prefixNameFunc}.input.enum` && (E = this._enums.get(R.enumName));
|
|
99023
99034
|
const $ = this._requestParamsHandle(i, S, n, s, C, o);
|
|
99024
99035
|
C = $?.code || C, $?.paramsExpr && m.push($?.paramsExpr), sn.includes(S) && (S = `$${S}`), sn.includes(C) && (C = `$${C}`), f.push(`${S}: ${C}`);
|
|
99025
99036
|
} else
|
|
99026
99037
|
_.push(C);
|
|
99027
99038
|
}, y = [];
|
|
99028
|
-
for (const
|
|
99029
|
-
y.push(`'${
|
|
99030
|
-
for (const
|
|
99031
|
-
T(e[
|
|
99039
|
+
for (const R of b)
|
|
99040
|
+
y.push(`'${R.originName}'`), T(R, R.originName);
|
|
99041
|
+
for (const R of Object.keys(e))
|
|
99042
|
+
T(e[R], R);
|
|
99032
99043
|
i && this._isInFunc && f.push("paramsExpr: $paramsExpr"), t && f.push(t), E && f.unshift(`options: [${E.join(", ")}]`);
|
|
99033
99044
|
const z = ["label.new", "line.new", "box.new"].includes(o.replace(`${this._prefixNameFunc}.`, "")) ? `, [${y.join(",")}]` : "", q = m.length ? `, [${this._isInFunc ? "...$paramsExpr || [], " : ""}${m.join(", ")}]` : "";
|
|
99034
99045
|
return _.length ? `({${f.join(", ")}}, [${_.join(", ")}], ${n}${q}${z})` : f.length ? `({${f.join(", ")}}, ${n}${q}${z})` : `(${n}${q})`;
|
|
@@ -99143,10 +99154,10 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
99143
99154
|
let T = e ? "" : x.preParser(m);
|
|
99144
99155
|
const y = {};
|
|
99145
99156
|
if (e && !i.some((z) => z.type === Bt.Error)) {
|
|
99146
|
-
const { code: z = "", hasLeftVisibleBarTime: q, hasRightVisibleBarTime:
|
|
99157
|
+
const { code: z = "", hasLeftVisibleBarTime: q, hasRightVisibleBarTime: R, hasAlert: S } = x.parser(m) || {};
|
|
99147
99158
|
Object.assign(y, {
|
|
99148
99159
|
hasLeftVisibleBarTime: q,
|
|
99149
|
-
hasRightVisibleBarTime:
|
|
99160
|
+
hasRightVisibleBarTime: R,
|
|
99150
99161
|
hasAlert: S,
|
|
99151
99162
|
strategyAlertMsg: b
|
|
99152
99163
|
}), T = x.preParseCode, E = (await Qo(z, { compress: !0, mangle: !0 })).code || "";
|
|
@@ -99221,7 +99232,7 @@ ${this._prefixNameVar}.setCacheData("m${b}_" + ${f}, ${m})
|
|
|
99221
99232
|
async function rR(r, e, t, n) {
|
|
99222
99233
|
const { ast: i, comments: s } = Jd(r + `
|
|
99223
99234
|
|
|
99224
|
-
`), { commentFilters: o } = Yp(s), p = new Kd(n, o, t), b = await p.visit(i), { name: f, index: _ } = p.endExport, m = b.findIndex((q) => q.name === f && q.index === _), E = b.slice(0, m + 1), T = new Yd("_$", bn.library, e).parserlib(E);
|
|
99235
|
+
`), { commentFilters: o } = Yp(s), p = new Kd(n, o, t), b = await p.visit(i), { name: f, index: _ } = p.endExport, m = b.findIndex((q) => q.name === f && q.index === _), E = m === -1 ? b : b.slice(0, m + 1), T = new Yd("_$", bn.library, e).parserlib(E);
|
|
99225
99236
|
let y = T?.code || "";
|
|
99226
99237
|
const z = await Qo(y, { compress: !0, mangle: !0 });
|
|
99227
99238
|
return {
|