x-runtime-lib 0.6.12 → 0.6.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Bo = Object.defineProperty;
|
|
2
2
|
var Vo = (n, a, c) => a in n ? Bo(n, a, { enumerable: !0, configurable: !0, writable: !0, value: c }) : n[a] = c;
|
|
3
3
|
var or = (n, a, c) => Vo(n, typeof a != "symbol" ? a + "" : a, c);
|
|
4
|
-
import { computed as R, provide as
|
|
4
|
+
import { computed as R, provide as xe, inject as Re, readonly as Cr, onBeforeMount as Go, onUnmounted as ot, defineComponent as ne, useTemplateRef as hi, onMounted as yi, watch as Pe, nextTick as mi, createElementBlock as Se, openBlock as G, normalizeStyle as kr, ref as Ot, watchEffect as vi, createBlock as ee, h as K, resolveComponent as ae, withCtx as te, renderSlot as Ar, unref as Be, createVNode as Q, createSlots as lr, renderList as Wo, isRef as Yo, createCommentVNode as zo } from "vue";
|
|
5
5
|
import { eventBus as Ve, waitUtil as bi, messageInfo as Xo, messageSuccess as Ho, messageWarning as Jo, messageError as Ko, openConfirmDlg as qo, openPromptDlg as Zo, useViewStack as Qo } from "x-essential-lib";
|
|
6
|
-
import { u as ea, r as
|
|
6
|
+
import { u as ea, r as gi, i as ta, a as ra, b as na, c as ia, d as oa, e as aa, f as sa, g as ua, h as _i } from "./echarts-i9kva4al.js";
|
|
7
7
|
import { useI18n as Ei } from "vue-i18n";
|
|
8
8
|
var xi = typeof global == "object" && global && global.Object === Object && global, la = typeof self == "object" && self && self.Object === Object && self, ce = xi || la || Function("return this")(), Ge = ce.Symbol, Ri = Object.prototype, ca = Ri.hasOwnProperty, fa = Ri.toString, tt = Ge ? Ge.toStringTag : void 0;
|
|
9
9
|
function pa(n) {
|
|
@@ -32,12 +32,12 @@ function kt(n) {
|
|
|
32
32
|
var a = typeof n;
|
|
33
33
|
return n != null && (a == "object" || a == "function");
|
|
34
34
|
}
|
|
35
|
-
var ba = "[object AsyncFunction]",
|
|
35
|
+
var ba = "[object AsyncFunction]", ga = "[object Function]", _a = "[object GeneratorFunction]", Ea = "[object Proxy]";
|
|
36
36
|
function Si(n) {
|
|
37
37
|
if (!kt(n))
|
|
38
38
|
return !1;
|
|
39
39
|
var a = at(n);
|
|
40
|
-
return a ==
|
|
40
|
+
return a == ga || a == _a || a == ba || a == Ea;
|
|
41
41
|
}
|
|
42
42
|
var ar = ce["__core-js_shared__"], Nn = function() {
|
|
43
43
|
var n = /[^.]+$/.exec(ar && ar.keys && ar.keys.IE_PROTO || "");
|
|
@@ -150,8 +150,8 @@ var wi = Object.prototype, Ha = wi.hasOwnProperty, Ja = wi.propertyIsEnumerable,
|
|
|
150
150
|
function qa() {
|
|
151
151
|
return !1;
|
|
152
152
|
}
|
|
153
|
-
var Pi = typeof exports == "object" && exports && !exports.nodeType && exports, kn = Pi && typeof module == "object" && module && !module.nodeType && module, Za = kn && kn.exports === Pi, An = Za ? ce.Buffer : void 0, Qa = An ? An.isBuffer : void 0, Ci = Qa || qa, es = "[object Arguments]", ts = "[object Array]", rs = "[object Boolean]", ns = "[object Date]", is = "[object Error]", os = "[object Function]", as = "[object Map]", ss = "[object Number]", us = "[object Object]", ls = "[object RegExp]", cs = "[object Set]", fs = "[object String]", ps = "[object WeakMap]", ds = "[object ArrayBuffer]", hs = "[object DataView]", ys = "[object Float32Array]", ms = "[object Float64Array]", vs = "[object Int8Array]", bs = "[object Int16Array]",
|
|
154
|
-
j[ys] = j[ms] = j[vs] = j[bs] = j[
|
|
153
|
+
var Pi = typeof exports == "object" && exports && !exports.nodeType && exports, kn = Pi && typeof module == "object" && module && !module.nodeType && module, Za = kn && kn.exports === Pi, An = Za ? ce.Buffer : void 0, Qa = An ? An.isBuffer : void 0, Ci = Qa || qa, es = "[object Arguments]", ts = "[object Array]", rs = "[object Boolean]", ns = "[object Date]", is = "[object Error]", os = "[object Function]", as = "[object Map]", ss = "[object Number]", us = "[object Object]", ls = "[object RegExp]", cs = "[object Set]", fs = "[object String]", ps = "[object WeakMap]", ds = "[object ArrayBuffer]", hs = "[object DataView]", ys = "[object Float32Array]", ms = "[object Float64Array]", vs = "[object Int8Array]", bs = "[object Int16Array]", gs = "[object Int32Array]", _s = "[object Uint8Array]", Es = "[object Uint8ClampedArray]", xs = "[object Uint16Array]", Rs = "[object Uint32Array]", j = {};
|
|
154
|
+
j[ys] = j[ms] = j[vs] = j[bs] = j[gs] = j[_s] = j[Es] = j[xs] = j[Rs] = !0;
|
|
155
155
|
j[es] = j[ts] = j[ds] = j[rs] = j[hs] = j[ns] = j[is] = j[os] = j[as] = j[ss] = j[us] = j[ls] = j[cs] = j[fs] = j[ps] = !1;
|
|
156
156
|
function Ss(n) {
|
|
157
157
|
return st(n) && Oi(n.length) && !!j[at(n)];
|
|
@@ -169,12 +169,12 @@ var ki = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
169
169
|
}
|
|
170
170
|
}(), In = We && We.isTypedArray, Os = In ? Lr(In) : Ss, Ns = Object.prototype, ws = Ns.hasOwnProperty;
|
|
171
171
|
function Ps(n, a) {
|
|
172
|
-
var c = Ir(n), h = !c && Ka(n), v = !c && !h && Ci(n),
|
|
172
|
+
var c = Ir(n), h = !c && Ka(n), v = !c && !h && Ci(n), _ = !c && !h && !v && Os(n), y = c || h || v || _, T = y ? za(n.length, String) : [], S = T.length;
|
|
173
173
|
for (var r in n)
|
|
174
174
|
ws.call(n, r) && !(y && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
175
175
|
(r == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
176
176
|
v && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
177
|
-
|
|
177
|
+
_ && (r == "buffer" || r == "byteLength" || r == "byteOffset") || // Skip index properties.
|
|
178
178
|
Ua(r, S))) && T.push(r);
|
|
179
179
|
return T;
|
|
180
180
|
}
|
|
@@ -361,26 +361,26 @@ function hu(n, a) {
|
|
|
361
361
|
return n.slice();
|
|
362
362
|
}
|
|
363
363
|
function yu(n, a) {
|
|
364
|
-
for (var c = -1, h = n == null ? 0 : n.length, v = 0,
|
|
364
|
+
for (var c = -1, h = n == null ? 0 : n.length, v = 0, _ = []; ++c < h; ) {
|
|
365
365
|
var y = n[c];
|
|
366
|
-
a(y, c, n) && (
|
|
366
|
+
a(y, c, n) && (_[v++] = y);
|
|
367
367
|
}
|
|
368
|
-
return
|
|
368
|
+
return _;
|
|
369
369
|
}
|
|
370
370
|
function mu() {
|
|
371
371
|
return [];
|
|
372
372
|
}
|
|
373
|
-
var vu = Object.prototype, bu = vu.propertyIsEnumerable, Mn = Object.getOwnPropertySymbols,
|
|
373
|
+
var vu = Object.prototype, bu = vu.propertyIsEnumerable, Mn = Object.getOwnPropertySymbols, gu = Mn ? function(n) {
|
|
374
374
|
return n == null ? [] : (n = Object(n), yu(Mn(n), function(a) {
|
|
375
375
|
return bu.call(n, a);
|
|
376
376
|
}));
|
|
377
377
|
} : mu;
|
|
378
|
-
function
|
|
378
|
+
function _u(n, a, c) {
|
|
379
379
|
var h = a(n);
|
|
380
380
|
return Ir(n) ? h : ou(h, c(n));
|
|
381
381
|
}
|
|
382
382
|
function Eu(n) {
|
|
383
|
-
return
|
|
383
|
+
return _u(n, Ls, gu);
|
|
384
384
|
}
|
|
385
385
|
var fr = Ie(ce, "DataView"), pr = Ie(ce, "Promise"), dr = Ie(ce, "Set"), Fn = "[object Map]", xu = "[object Object]", Un = "[object Promise]", jn = "[object Set]", $n = "[object WeakMap]", Bn = "[object DataView]", Ru = Ae(fr), Su = Ae(it), Tu = Ae(pr), Ou = Ae(dr), Nu = Ae(cr), ye = at;
|
|
386
386
|
(fr && ye(new fr(new ArrayBuffer(1))) != Bn || it && ye(new it()) != Fn || pr && ye(pr.resolve()) != Un || dr && ye(new dr()) != jn || cr && ye(new cr()) != $n) && (ye = function(n) {
|
|
@@ -472,10 +472,10 @@ var Yn = We && We.isMap, ol = Yn ? Lr(Yn) : il, al = "[object Set]";
|
|
|
472
472
|
function sl(n) {
|
|
473
473
|
return st(n) && ye(n) == al;
|
|
474
474
|
}
|
|
475
|
-
var zn = We && We.isSet, ul = zn ? Lr(zn) : sl, Li = "[object Arguments]", ll = "[object Array]", cl = "[object Boolean]", fl = "[object Date]", pl = "[object Error]", Di = "[object Function]", dl = "[object GeneratorFunction]", hl = "[object Map]", yl = "[object Number]", Mi = "[object Object]", ml = "[object RegExp]", vl = "[object Set]", bl = "[object String]",
|
|
476
|
-
U[Li] = U[ll] = U[El] = U[xl] = U[cl] = U[fl] = U[Rl] = U[Sl] = U[Tl] = U[Ol] = U[Nl] = U[hl] = U[yl] = U[Mi] = U[ml] = U[vl] = U[bl] = U[
|
|
477
|
-
U[pl] = U[Di] = U[
|
|
478
|
-
function Rt(n, a, c, h, v,
|
|
475
|
+
var zn = We && We.isSet, ul = zn ? Lr(zn) : sl, Li = "[object Arguments]", ll = "[object Array]", cl = "[object Boolean]", fl = "[object Date]", pl = "[object Error]", Di = "[object Function]", dl = "[object GeneratorFunction]", hl = "[object Map]", yl = "[object Number]", Mi = "[object Object]", ml = "[object RegExp]", vl = "[object Set]", bl = "[object String]", gl = "[object Symbol]", _l = "[object WeakMap]", El = "[object ArrayBuffer]", xl = "[object DataView]", Rl = "[object Float32Array]", Sl = "[object Float64Array]", Tl = "[object Int8Array]", Ol = "[object Int16Array]", Nl = "[object Int32Array]", wl = "[object Uint8Array]", Pl = "[object Uint8ClampedArray]", Cl = "[object Uint16Array]", kl = "[object Uint32Array]", U = {};
|
|
476
|
+
U[Li] = U[ll] = U[El] = U[xl] = U[cl] = U[fl] = U[Rl] = U[Sl] = U[Tl] = U[Ol] = U[Nl] = U[hl] = U[yl] = U[Mi] = U[ml] = U[vl] = U[bl] = U[gl] = U[wl] = U[Pl] = U[Cl] = U[kl] = !0;
|
|
477
|
+
U[pl] = U[Di] = U[_l] = !1;
|
|
478
|
+
function Rt(n, a, c, h, v, _) {
|
|
479
479
|
var y;
|
|
480
480
|
if (y !== void 0)
|
|
481
481
|
return y;
|
|
@@ -496,18 +496,18 @@ function Rt(n, a, c, h, v, g) {
|
|
|
496
496
|
y = tl(n, S);
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
|
|
500
|
-
var t =
|
|
499
|
+
_ || (_ = new ze());
|
|
500
|
+
var t = _.get(n);
|
|
501
501
|
if (t)
|
|
502
502
|
return t;
|
|
503
|
-
|
|
504
|
-
y.add(Rt(
|
|
505
|
-
}) : ol(n) && n.forEach(function(
|
|
506
|
-
y.set(
|
|
503
|
+
_.set(n, y), ul(n) ? n.forEach(function(s) {
|
|
504
|
+
y.add(Rt(s, a, c, s, n, _));
|
|
505
|
+
}) : ol(n) && n.forEach(function(s, u) {
|
|
506
|
+
y.set(u, Rt(s, a, c, u, n, _));
|
|
507
507
|
});
|
|
508
508
|
var e = Eu, i = T ? void 0 : e(n);
|
|
509
|
-
return Da(i || n, function(
|
|
510
|
-
i && (
|
|
509
|
+
return Da(i || n, function(s, u) {
|
|
510
|
+
i && (u = s, s = n[u]), Va(y, u, Rt(s, a, c, u, n, _));
|
|
511
511
|
}), y;
|
|
512
512
|
}
|
|
513
513
|
var Al = 1, Il = 4;
|
|
@@ -539,17 +539,17 @@ function Ui(n) {
|
|
|
539
539
|
}
|
|
540
540
|
function ji(n) {
|
|
541
541
|
const a = R(() => {
|
|
542
|
-
var
|
|
543
|
-
return (
|
|
542
|
+
var _;
|
|
543
|
+
return (_ = n.node.title) == null ? void 0 : _.show;
|
|
544
544
|
}), c = R(() => {
|
|
545
|
-
var
|
|
546
|
-
return (
|
|
545
|
+
var _;
|
|
546
|
+
return (_ = n.node.title) == null ? void 0 : _.text;
|
|
547
547
|
}), h = R(() => {
|
|
548
|
-
var
|
|
549
|
-
return (
|
|
548
|
+
var _;
|
|
549
|
+
return (_ = n.node.title) == null ? void 0 : _.subtext;
|
|
550
550
|
});
|
|
551
|
-
function v(
|
|
552
|
-
|
|
551
|
+
function v(_) {
|
|
552
|
+
_.title = {
|
|
553
553
|
show: a.value,
|
|
554
554
|
text: c.value,
|
|
555
555
|
subtext: h.value
|
|
@@ -571,7 +571,7 @@ function $i(n) {
|
|
|
571
571
|
var y;
|
|
572
572
|
return (y = n.node.xAxis) == null ? void 0 : y.data;
|
|
573
573
|
});
|
|
574
|
-
function
|
|
574
|
+
function _(y) {
|
|
575
575
|
y.xAxis = {
|
|
576
576
|
show: a.value,
|
|
577
577
|
position: c.value,
|
|
@@ -579,7 +579,7 @@ function $i(n) {
|
|
|
579
579
|
data: v.value
|
|
580
580
|
};
|
|
581
581
|
}
|
|
582
|
-
return { show: a, position: c, type: h, data: v, applyXAxis:
|
|
582
|
+
return { show: a, position: c, type: h, data: v, applyXAxis: _ };
|
|
583
583
|
}
|
|
584
584
|
function Bi(n) {
|
|
585
585
|
const a = R(() => {
|
|
@@ -595,7 +595,7 @@ function Bi(n) {
|
|
|
595
595
|
var y;
|
|
596
596
|
return (y = n.node.yAxis) == null ? void 0 : y.data;
|
|
597
597
|
});
|
|
598
|
-
function
|
|
598
|
+
function _(y) {
|
|
599
599
|
y.yAxis = {
|
|
600
600
|
show: a.value,
|
|
601
601
|
position: c.value,
|
|
@@ -603,21 +603,21 @@ function Bi(n) {
|
|
|
603
603
|
data: v.value
|
|
604
604
|
};
|
|
605
605
|
}
|
|
606
|
-
return { show: a, position: c, type: h, data: v, applyYAxis:
|
|
606
|
+
return { show: a, position: c, type: h, data: v, applyYAxis: _ };
|
|
607
607
|
}
|
|
608
608
|
function Ll(n) {
|
|
609
609
|
const a = R(() => {
|
|
610
|
-
var
|
|
611
|
-
return (
|
|
610
|
+
var _;
|
|
611
|
+
return (_ = n.node.border) == null ? void 0 : _.style;
|
|
612
612
|
}), c = R(() => {
|
|
613
|
-
var
|
|
614
|
-
return (
|
|
613
|
+
var _;
|
|
614
|
+
return (_ = n.node.border) == null ? void 0 : _.width;
|
|
615
615
|
}), h = R(() => {
|
|
616
|
-
var
|
|
617
|
-
return (
|
|
616
|
+
var _;
|
|
617
|
+
return (_ = n.node.border) == null ? void 0 : _.color;
|
|
618
618
|
});
|
|
619
|
-
function v(
|
|
620
|
-
a.value && (
|
|
619
|
+
function v(_) {
|
|
620
|
+
a.value && (_.borderStyle = a.value), c.value && (_.borderWidth = c.value), h.value && (_.borderColor = h.value);
|
|
621
621
|
}
|
|
622
622
|
return { borderStyle: a, borderWidth: c, borderColor: h, applyBorder: v };
|
|
623
623
|
}
|
|
@@ -635,10 +635,10 @@ function Dl(n) {
|
|
|
635
635
|
var y;
|
|
636
636
|
return (y = n.node.margin) == null ? void 0 : y.right;
|
|
637
637
|
});
|
|
638
|
-
function
|
|
638
|
+
function _(y) {
|
|
639
639
|
a.value && (y.marginTop = a.value), c.value && (y.marginLeft = c.value), h.value && (y.marginBottom = h.value), v.value && (y.marginRight = v.value);
|
|
640
640
|
}
|
|
641
|
-
return { marginTop: a, marginLeft: c, marginBottom: h, marginRight: v, applyMargin:
|
|
641
|
+
return { marginTop: a, marginLeft: c, marginBottom: h, marginRight: v, applyMargin: _ };
|
|
642
642
|
}
|
|
643
643
|
function Ml(n) {
|
|
644
644
|
const a = R(() => {
|
|
@@ -654,10 +654,10 @@ function Ml(n) {
|
|
|
654
654
|
var y;
|
|
655
655
|
return (y = n.node.padding) == null ? void 0 : y.right;
|
|
656
656
|
});
|
|
657
|
-
function
|
|
657
|
+
function _(y) {
|
|
658
658
|
a.value && (y.paddingTop = a.value), c.value && (y.paddingLeft = c.value), h.value && (y.paddingBottom = h.value), v.value && (y.paddingRight = v.value);
|
|
659
659
|
}
|
|
660
|
-
return { paddingTop: a, paddingLeft: c, paddingBottom: h, paddingRight: v, applyPadding:
|
|
660
|
+
return { paddingTop: a, paddingLeft: c, paddingBottom: h, paddingRight: v, applyPadding: _ };
|
|
661
661
|
}
|
|
662
662
|
const Xn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
663
663
|
function Vi(n) {
|
|
@@ -719,21 +719,21 @@ function Jn(n, a) {
|
|
|
719
719
|
return;
|
|
720
720
|
h[v.key] = Hn(v);
|
|
721
721
|
} else
|
|
722
|
-
v.array ? h[v.key] = Hn(v) : v.children.forEach((
|
|
723
|
-
h[v.key] || (h[v.key] = {}), c(h[v.key],
|
|
722
|
+
v.array ? h[v.key] = Hn(v) : v.children.forEach((_) => {
|
|
723
|
+
h[v.key] || (h[v.key] = {}), c(h[v.key], _);
|
|
724
724
|
});
|
|
725
725
|
}
|
|
726
726
|
a.forEach((h) => c(n, h));
|
|
727
727
|
}
|
|
728
728
|
function Ul(n, a, c, h, v) {
|
|
729
|
-
const
|
|
729
|
+
const _ = `type=${n} subtype=${a} version=${c} ref=${h} keyOrRefid=${v}`, y = Fl(n, a);
|
|
730
730
|
if (!y) {
|
|
731
|
-
console.error(`spawnNode prop tag not found, ${
|
|
731
|
+
console.error(`spawnNode prop tag not found, ${_}`);
|
|
732
732
|
return;
|
|
733
733
|
}
|
|
734
734
|
const T = jr[c];
|
|
735
735
|
if (!T) {
|
|
736
|
-
console.error(`spawnNode pkg not found version, ${
|
|
736
|
+
console.error(`spawnNode pkg not found version, ${_}`);
|
|
737
737
|
return;
|
|
738
738
|
}
|
|
739
739
|
const S = {
|
|
@@ -745,39 +745,39 @@ function Ul(n, a, c, h, v) {
|
|
|
745
745
|
if (h) {
|
|
746
746
|
const t = T.refKey, e = v;
|
|
747
747
|
if (!T.elements.has(t)) {
|
|
748
|
-
console.error(`spawnNode [ref] element not found in pkg, ${
|
|
748
|
+
console.error(`spawnNode [ref] element not found in pkg, ${_}`);
|
|
749
749
|
return;
|
|
750
750
|
}
|
|
751
751
|
const i = ke[t];
|
|
752
752
|
if (!i) {
|
|
753
|
-
console.error(`spawnNode [ref] element not found in global, ${
|
|
753
|
+
console.error(`spawnNode [ref] element not found in global, ${_}`);
|
|
754
754
|
return;
|
|
755
755
|
}
|
|
756
|
-
const
|
|
757
|
-
if (!
|
|
758
|
-
console.error(`spawnNode [ref] props not found, ${
|
|
756
|
+
const s = i.props[y];
|
|
757
|
+
if (!s) {
|
|
758
|
+
console.error(`spawnNode [ref] props not found, ${_}`);
|
|
759
759
|
return;
|
|
760
760
|
}
|
|
761
|
-
Jn(S,
|
|
761
|
+
Jn(S, s), S.basic.id = r, S.basic.key = t, S.ref = {
|
|
762
762
|
id: e
|
|
763
763
|
};
|
|
764
764
|
} else {
|
|
765
765
|
const t = v;
|
|
766
766
|
if (!T.elements.has(t)) {
|
|
767
|
-
console.error(`spawnNode [key] element not found in pkg, ${
|
|
767
|
+
console.error(`spawnNode [key] element not found in pkg, ${_}`);
|
|
768
768
|
return;
|
|
769
769
|
}
|
|
770
770
|
const e = ke[t];
|
|
771
771
|
if (!e) {
|
|
772
|
-
console.error(`spawnNode [key] element not found in global, ${
|
|
772
|
+
console.error(`spawnNode [key] element not found in global, ${_}`);
|
|
773
773
|
return;
|
|
774
774
|
}
|
|
775
775
|
const i = e.props[y];
|
|
776
776
|
if (!i) {
|
|
777
|
-
console.error(`spawnNode [key] props not found, ${
|
|
777
|
+
console.error(`spawnNode [key] props not found, ${_}`);
|
|
778
778
|
return;
|
|
779
779
|
}
|
|
780
|
-
Jn(S, i), S.basic.id = r, S.basic.key = t, e.slots.some((
|
|
780
|
+
Jn(S, i), S.basic.id = r, S.basic.key = t, e.slots.some((s) => s.key === "default") && (S.children = []);
|
|
781
781
|
}
|
|
782
782
|
return S;
|
|
783
783
|
}
|
|
@@ -787,9 +787,9 @@ function bp(n, a) {
|
|
|
787
787
|
return h;
|
|
788
788
|
if (h.children)
|
|
789
789
|
for (let v = 0; v < h.children.length; v++) {
|
|
790
|
-
const
|
|
791
|
-
if (
|
|
792
|
-
return
|
|
790
|
+
const _ = c(h.children[v]);
|
|
791
|
+
if (_)
|
|
792
|
+
return _;
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
795
|
for (let h = 0; h < n.length; h++) {
|
|
@@ -801,65 +801,65 @@ function bp(n, a) {
|
|
|
801
801
|
function jl(n) {
|
|
802
802
|
function a(h) {
|
|
803
803
|
var v;
|
|
804
|
-
h.basic.id = Vi(16), (v = h.children) == null || v.forEach((
|
|
804
|
+
h.basic.id = Vi(16), (v = h.children) == null || v.forEach((_) => a(_));
|
|
805
805
|
}
|
|
806
806
|
const c = le(n);
|
|
807
807
|
return a(c), c;
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function gp(n) {
|
|
810
810
|
const a = [];
|
|
811
811
|
return n.forEach((c) => {
|
|
812
812
|
a.push(jl(c));
|
|
813
813
|
}), a;
|
|
814
814
|
}
|
|
815
815
|
const Gi = "runtimeEnv", Wi = "runtimeMode", Yi = "runtimeDevice", zi = "runtimeDark", Xi = "runtimeType", Hi = "runtimeData", Ji = "runtimeDepends", Ki = "runtimeSandbox";
|
|
816
|
-
function
|
|
817
|
-
|
|
816
|
+
function _p(n) {
|
|
817
|
+
xe(Gi, n);
|
|
818
818
|
}
|
|
819
819
|
function qi() {
|
|
820
|
-
return
|
|
820
|
+
return Re(Gi);
|
|
821
821
|
}
|
|
822
822
|
function Ep(n) {
|
|
823
|
-
|
|
823
|
+
xe(Wi, n);
|
|
824
824
|
}
|
|
825
825
|
function se() {
|
|
826
|
-
return
|
|
826
|
+
return Re(Wi);
|
|
827
827
|
}
|
|
828
828
|
function xp(n) {
|
|
829
|
-
|
|
829
|
+
xe(Yi, Cr(n));
|
|
830
830
|
}
|
|
831
831
|
function Lt() {
|
|
832
|
-
return
|
|
832
|
+
return Re(Yi);
|
|
833
833
|
}
|
|
834
834
|
function Rp(n) {
|
|
835
|
-
|
|
835
|
+
xe(zi, Cr(n));
|
|
836
836
|
}
|
|
837
|
-
function
|
|
838
|
-
return
|
|
837
|
+
function ve() {
|
|
838
|
+
return Re(zi);
|
|
839
839
|
}
|
|
840
840
|
function Sp(n) {
|
|
841
|
-
|
|
841
|
+
xe(Xi, n);
|
|
842
842
|
}
|
|
843
843
|
function ut() {
|
|
844
|
-
return
|
|
844
|
+
return Re(Xi);
|
|
845
845
|
}
|
|
846
846
|
function Tp(n) {
|
|
847
|
-
|
|
847
|
+
xe(Hi, n);
|
|
848
848
|
}
|
|
849
849
|
function lt() {
|
|
850
|
-
return
|
|
850
|
+
return Re(Hi);
|
|
851
851
|
}
|
|
852
852
|
function Op(n) {
|
|
853
|
-
|
|
853
|
+
xe(Ji, Cr(n));
|
|
854
854
|
}
|
|
855
855
|
function Zi() {
|
|
856
|
-
return
|
|
856
|
+
return Re(Ji);
|
|
857
857
|
}
|
|
858
858
|
function Qi(n) {
|
|
859
|
-
|
|
859
|
+
xe(Ki, n);
|
|
860
860
|
}
|
|
861
861
|
function $l() {
|
|
862
|
-
return
|
|
862
|
+
return Re(Ki);
|
|
863
863
|
}
|
|
864
864
|
function Dt(n, a, c) {
|
|
865
865
|
const h = R(() => {
|
|
@@ -868,7 +868,7 @@ function Dt(n, a, c) {
|
|
|
868
868
|
}), v = R(() => {
|
|
869
869
|
var t;
|
|
870
870
|
return (t = c.node.size) == null ? void 0 : t.minWidth;
|
|
871
|
-
}),
|
|
871
|
+
}), _ = R(() => {
|
|
872
872
|
var t;
|
|
873
873
|
return (t = c.node.size) == null ? void 0 : t.maxWidth;
|
|
874
874
|
}), y = R(() => {
|
|
@@ -897,9 +897,9 @@ function Dt(n, a, c) {
|
|
|
897
897
|
return (e = c.node.size) == null ? void 0 : e.maxHeight;
|
|
898
898
|
});
|
|
899
899
|
function r(t) {
|
|
900
|
-
h.value && (t.width = h.value), v.value && (t.minWidth = v.value),
|
|
900
|
+
h.value && (t.width = h.value), v.value && (t.minWidth = v.value), _.value && (t.maxWidth = _.value), y.value && (t.height = y.value), T.value && (t.minHeight = T.value), S.value && (t.maxHeight = S.value);
|
|
901
901
|
}
|
|
902
|
-
return { width: h, minWidth: v, maxWidth:
|
|
902
|
+
return { width: h, minWidth: v, maxWidth: _, height: y, minHeight: T, maxHeight: S, applySize: r };
|
|
903
903
|
}
|
|
904
904
|
function Bl(n, a) {
|
|
905
905
|
const c = R(() => n.node.basic.id), h = R(() => `callMethod@${c.value}`);
|
|
@@ -939,10 +939,10 @@ const Vl = ["#dd6b66", "#759aa0", "#e69d87", "#8dc1a9", "#ea7e53", "#eedd78", "#
|
|
|
939
939
|
visualMap: hc,
|
|
940
940
|
dataZoom: yc,
|
|
941
941
|
markPoint: mc
|
|
942
|
-
}, bc = ["#dd6b66", "#759aa0", "#e69d87", "#8dc1a9", "#ea7e53", "#eedd78", "#73a373", "#73b9bc", "#7289ab", "#91ca8c", "#f49f42"],
|
|
942
|
+
}, bc = ["#dd6b66", "#759aa0", "#e69d87", "#8dc1a9", "#ea7e53", "#eedd78", "#73a373", "#73b9bc", "#7289ab", "#91ca8c", "#f49f42"], gc = "#f5f5f5", _c = {}, Ec = { textStyle: { color: "#464646" }, subtextStyle: { color: "#6e7079" } }, xc = { itemStyle: { borderWidth: 1 }, lineStyle: { width: 2 }, symbolSize: 4, symbol: "circle", smooth: !1 }, Rc = { itemStyle: { borderWidth: 1 }, lineStyle: { width: 2 }, symbolSize: 4, symbol: "circle", smooth: !1 }, Sc = { itemStyle: { barBorderWidth: 0, barBorderColor: "#ccc" } }, Tc = { itemStyle: { borderWidth: 0, borderColor: "#ccc" } }, Oc = { itemStyle: { borderWidth: 0, borderColor: "#ccc" } }, Nc = { itemStyle: { borderWidth: 0, borderColor: "#ccc" } }, wc = { itemStyle: { borderWidth: 0, borderColor: "#ccc" } }, Pc = { itemStyle: { borderWidth: 0, borderColor: "#ccc" } }, Cc = { itemStyle: { borderWidth: 0, borderColor: "#ccc" } }, kc = { itemStyle: { borderWidth: 0, borderColor: "#ccc" } }, Ac = { itemStyle: { color: "#eb5454", color0: "#47b262", borderColor: "#eb5454", borderColor0: "#47b262", borderWidth: 1 } }, Ic = { itemStyle: { borderWidth: 0, borderColor: "#ccc" }, lineStyle: { width: 1, color: "#aaa" }, symbolSize: 4, symbol: "circle", smooth: !1, color: ["#dd6b66", "#759aa0", "#e69d87", "#8dc1a9", "#ea7e53", "#eedd78", "#73a373", "#73b9bc", "#7289ab", "#91ca8c", "#f49f42"], label: { color: "#eee" } }, Lc = { itemStyle: { areaColor: "#eee", borderColor: "#444", borderWidth: 0.5 }, label: { color: "#000" }, emphasis: { itemStyle: { areaColor: "rgba(255,215,0,0.8)", borderColor: "#444", borderWidth: 1 }, label: { color: "rgb(100,0,0)" } } }, Dc = { itemStyle: { areaColor: "#eee", borderColor: "#444", borderWidth: 0.5 }, label: { color: "#000" }, emphasis: { itemStyle: { areaColor: "rgba(255,215,0,0.8)", borderColor: "#444", borderWidth: 1 }, label: { color: "rgb(100,0,0)" } } }, Mc = { axisLine: { show: !0, lineStyle: { color: "#6e7079" } }, axisTick: { show: !0, lineStyle: { color: "#6e7079" } }, axisLabel: { show: !0, color: "#6e7079" }, splitLine: { show: !0, lineStyle: { color: ["#e0e6f1"] } }, splitArea: { show: !1, areaStyle: { color: ["#eeeeee"] } } }, Fc = { axisLine: { show: !0, lineStyle: { color: "#6e7079" } }, axisTick: { show: !0, lineStyle: { color: "#6e7079" } }, axisLabel: { show: !0, color: "#6e7079" }, splitLine: { show: !0, lineStyle: { color: ["#e0e6f1"] } }, splitArea: { show: !1, areaStyle: { color: ["#eeeeee"] } } }, Uc = { axisLine: { show: !0, lineStyle: { color: "#6e7079" } }, axisTick: { show: !0, lineStyle: { color: "#6e7079" } }, axisLabel: { show: !0, color: "#6e7079" }, splitLine: { show: !0, lineStyle: { color: ["#e0e6f1"] } }, splitArea: { show: !1, areaStyle: { color: ["#eeeeee"] } } }, jc = { axisLine: { show: !0, lineStyle: { color: "#6e7079" } }, axisTick: { show: !0, lineStyle: { color: "#6e7079" } }, axisLabel: { show: !0, color: "#6e7079" }, splitLine: { show: !0, lineStyle: { color: ["#e0e6f1"] } }, splitArea: { show: !1, areaStyle: { color: ["#eeeeee"] } } }, $c = { iconStyle: { borderColor: "#999" }, emphasis: { iconStyle: { borderColor: "#666" } } }, Bc = { textStyle: { color: "#333333" } }, Vc = { axisPointer: { lineStyle: { color: "#cccccc", width: "1" }, crossStyle: { color: "#cccccc", width: "1" } } }, Gc = { lineStyle: { color: "#eeeeee", width: "2" }, itemStyle: { color: "#dd6b66", borderWidth: 1 }, controlStyle: { color: "#eeeeee", borderColor: "#eeeeee", borderWidth: "1" }, checkpointStyle: { color: "#e43c59", borderColor: "#c23531" }, label: { color: "#eeeeee" }, emphasis: { itemStyle: { color: "#a9334c" }, controlStyle: { color: "#eeeeee", borderColor: "#eeeeee", borderWidth: "1" }, label: { color: "#eeeeee" } } }, Wc = { color: ["#bf444c", "#d88273", "#f6efa6"] }, Yc = { backgroundColor: "rgba(47,69,84,0)", dataBackgroundColor: "rgba(255,255,255,0.3)", fillerColor: "rgba(167,183,204,0.4)", handleColor: "#a7b7cc", handleSize: "100%", textStyle: { color: "#eeeeee" } }, zc = { label: { color: "#eee" }, emphasis: { label: { color: "#eee" } } }, Xc = {
|
|
943
943
|
color: bc,
|
|
944
|
-
backgroundColor:
|
|
945
|
-
textStyle:
|
|
944
|
+
backgroundColor: gc,
|
|
945
|
+
textStyle: _c,
|
|
946
946
|
title: Ec,
|
|
947
947
|
line: xc,
|
|
948
948
|
radar: Rc,
|
|
@@ -980,8 +980,8 @@ ea([
|
|
|
980
980
|
sa,
|
|
981
981
|
ua
|
|
982
982
|
]);
|
|
983
|
-
|
|
984
|
-
|
|
983
|
+
gi("dark", vc);
|
|
984
|
+
gi("light", Xc);
|
|
985
985
|
const Hc = /* @__PURE__ */ ne({
|
|
986
986
|
__name: "index",
|
|
987
987
|
props: {
|
|
@@ -989,20 +989,20 @@ const Hc = /* @__PURE__ */ ne({
|
|
|
989
989
|
outer: { type: Boolean }
|
|
990
990
|
},
|
|
991
991
|
setup(n) {
|
|
992
|
-
const a = n, c = se(), h = Lt(), v =
|
|
992
|
+
const a = n, c = se(), h = Lt(), v = ve(), _ = ut(), y = lt(), { width: T, minWidth: S, maxWidth: r, height: t, minHeight: e, maxHeight: i, applySize: s } = Dt(c, h, a), { applyTitle: u } = ji(a), { applyXAxis: l } = $i(a), { applyYAxis: o } = Bi(a), { applyLegend: p } = Fi(a), { applySeries: m } = Ui(a), b = R(() => {
|
|
993
993
|
const P = {}, q = y.value.type;
|
|
994
|
-
return
|
|
994
|
+
return _ === "page" ? q === "common" ? s(P) : console.assert(!1) : _ === "comp" && q === "common" ? s(P) : console.assert(!1), P;
|
|
995
995
|
}), O = hi("chart");
|
|
996
996
|
let E;
|
|
997
997
|
const N = () => {
|
|
998
|
-
E == null || E.dispose(), E =
|
|
998
|
+
E == null || E.dispose(), E = _i.init(O.value, v.value ? "dark" : "light");
|
|
999
999
|
const P = {};
|
|
1000
1000
|
E.setOption(P);
|
|
1001
1001
|
}, w = () => {
|
|
1002
1002
|
E == null || E.resize();
|
|
1003
1003
|
}, I = () => {
|
|
1004
1004
|
const P = {};
|
|
1005
|
-
|
|
1005
|
+
u(P), l(P), o(P), p(P), m(P), E == null || E.setOption(P, !0);
|
|
1006
1006
|
};
|
|
1007
1007
|
return yi(async () => {
|
|
1008
1008
|
window.addEventListener("resize", w, !1), await bi(() => !!O.value), N(), I();
|
|
@@ -1018,7 +1018,7 @@ const Hc = /* @__PURE__ */ ne({
|
|
|
1018
1018
|
I();
|
|
1019
1019
|
},
|
|
1020
1020
|
{ deep: !0 }
|
|
1021
|
-
), (P, q) => (G(),
|
|
1021
|
+
), (P, q) => (G(), Se("div", {
|
|
1022
1022
|
ref: "chart",
|
|
1023
1023
|
style: kr(b.value)
|
|
1024
1024
|
}, null, 4));
|
|
@@ -1030,20 +1030,20 @@ const Hc = /* @__PURE__ */ ne({
|
|
|
1030
1030
|
outer: { type: Boolean }
|
|
1031
1031
|
},
|
|
1032
1032
|
setup(n) {
|
|
1033
|
-
const a = n, c = se(), h = Lt(), v =
|
|
1033
|
+
const a = n, c = se(), h = Lt(), v = ve(), _ = ut(), y = lt(), { width: T, minWidth: S, maxWidth: r, height: t, minHeight: e, maxHeight: i, applySize: s } = Dt(c, h, a), { applyTitle: u } = ji(a), { applyXAxis: l } = $i(a), { applyYAxis: o } = Bi(a), { applyLegend: p } = Fi(a), { applySeries: m } = Ui(a), b = R(() => {
|
|
1034
1034
|
const P = {}, q = y.value.type;
|
|
1035
|
-
return
|
|
1035
|
+
return _ === "page" ? q === "common" ? s(P) : console.assert(!1) : _ === "comp" && q === "common" ? s(P) : console.assert(!1), P;
|
|
1036
1036
|
}), O = hi("chart");
|
|
1037
1037
|
let E;
|
|
1038
1038
|
const N = () => {
|
|
1039
|
-
E == null || E.dispose(), E =
|
|
1039
|
+
E == null || E.dispose(), E = _i.init(O.value, v.value ? "dark" : "light");
|
|
1040
1040
|
const P = {};
|
|
1041
1041
|
E.setOption(P);
|
|
1042
1042
|
}, w = () => {
|
|
1043
1043
|
E == null || E.resize();
|
|
1044
1044
|
}, I = () => {
|
|
1045
1045
|
const P = {};
|
|
1046
|
-
|
|
1046
|
+
u(P), l(P), o(P), p(P), m(P), E == null || E.setOption(P, !0);
|
|
1047
1047
|
};
|
|
1048
1048
|
return yi(async () => {
|
|
1049
1049
|
window.addEventListener("resize", w, !1), await bi(() => !!O.value), N(), I();
|
|
@@ -1059,7 +1059,7 @@ const Hc = /* @__PURE__ */ ne({
|
|
|
1059
1059
|
I();
|
|
1060
1060
|
},
|
|
1061
1061
|
{ deep: !0 }
|
|
1062
|
-
), (P, q) => (G(),
|
|
1062
|
+
), (P, q) => (G(), Se("div", {
|
|
1063
1063
|
ref: "chart",
|
|
1064
1064
|
style: kr(b.value)
|
|
1065
1065
|
}, null, 4));
|
|
@@ -1119,17 +1119,17 @@ function rf() {
|
|
|
1119
1119
|
this.newNode = function() {
|
|
1120
1120
|
return new i({ options: {} });
|
|
1121
1121
|
};
|
|
1122
|
-
var
|
|
1123
|
-
for (var
|
|
1124
|
-
u
|
|
1125
|
-
this.ast =
|
|
1122
|
+
var s = this.newNode();
|
|
1123
|
+
for (var u in t)
|
|
1124
|
+
s[u] = u === "body" ? t[u].slice() : t[u];
|
|
1125
|
+
this.ast = s, this.tasks = [], this.initFunc_ = e, this.paused_ = !1, this.polyfills_ = [], this.functionCounter_ = 0, this.stepFunctions_ = /* @__PURE__ */ Object.create(null);
|
|
1126
1126
|
var l = /^step([A-Z]\w*)$/, o;
|
|
1127
1127
|
for (var p in this)
|
|
1128
1128
|
typeof this[p] == "function" && (o = p.match(l)) && (this.stepFunctions_[o[1]] = this[p].bind(this));
|
|
1129
1129
|
this.globalScope = this.createScope(this.ast, null), this.globalObject = this.globalScope.object, this.ast = this.parse_(this.polyfills_.join(`
|
|
1130
1130
|
`), "polyfills"), this.polyfills_ = void 0, r.stripLocations_(this.ast, void 0, void 0);
|
|
1131
1131
|
var m = new r.State(this.ast, this.globalScope);
|
|
1132
|
-
m.done = !1, this.stateStack = [m], this.run(), this.value = void 0, this.ast =
|
|
1132
|
+
m.done = !1, this.stateStack = [m], this.run(), this.value = void 0, this.ast = s, m = new r.State(this.ast, this.globalScope), m.done = !1, this.stateStack.length = 0, this.stateStack[0] = m;
|
|
1133
1133
|
};
|
|
1134
1134
|
r.Completion = {
|
|
1135
1135
|
NORMAL: 0,
|
|
@@ -1210,20 +1210,20 @@ function rf() {
|
|
|
1210
1210
|
return String(e) === String(t) && e !== 4294967295 ? e : NaN;
|
|
1211
1211
|
}, r.stripLocations_ = function(t, e, i) {
|
|
1212
1212
|
e ? t.start = e : delete t.start, i ? t.end = i : delete t.end;
|
|
1213
|
-
for (var
|
|
1214
|
-
if (t[
|
|
1215
|
-
var
|
|
1216
|
-
|
|
1213
|
+
for (var s in t)
|
|
1214
|
+
if (t[s] !== t.loc && t.hasOwnProperty(s)) {
|
|
1215
|
+
var u = t[s];
|
|
1216
|
+
u && typeof u == "object" && r.stripLocations_(
|
|
1217
1217
|
/** @type {!Object} */
|
|
1218
|
-
|
|
1218
|
+
u,
|
|
1219
1219
|
e,
|
|
1220
1220
|
i
|
|
1221
1221
|
);
|
|
1222
1222
|
}
|
|
1223
1223
|
}, r.prototype.REGEXP_MODE = 2, r.prototype.REGEXP_THREAD_TIMEOUT = 1e3, r.prototype.POLYFILL_TIMEOUT = 1e3, r.prototype.getterStep_ = !1, r.prototype.setterStep_ = !1, r.prototype.appendCodeNumber_ = 0, r.prototype.taskCodeNumber_ = 0, r.prototype.parse_ = function(t, e) {
|
|
1224
1224
|
var i = {};
|
|
1225
|
-
for (var
|
|
1226
|
-
i[
|
|
1225
|
+
for (var s in r.PARSE_OPTIONS)
|
|
1226
|
+
i[s] = r.PARSE_OPTIONS[s];
|
|
1227
1227
|
return i.sourceFile = e, r.nativeGlobal.acorn.parse(t, i);
|
|
1228
1228
|
}, r.prototype.appendCode = function(t) {
|
|
1229
1229
|
var e = this.stateStack[0];
|
|
@@ -1244,22 +1244,22 @@ function rf() {
|
|
|
1244
1244
|
if (i = this.nextTask_(), !i)
|
|
1245
1245
|
return !0;
|
|
1246
1246
|
}
|
|
1247
|
-
var
|
|
1247
|
+
var s = i.node, u = r.currentInterpreter_;
|
|
1248
1248
|
r.currentInterpreter_ = this;
|
|
1249
1249
|
try {
|
|
1250
|
-
var l = this.stepFunctions_[
|
|
1250
|
+
var l = this.stepFunctions_[s.type](t, i, s);
|
|
1251
1251
|
} catch (o) {
|
|
1252
1252
|
if (o !== r.STEP_ERROR)
|
|
1253
1253
|
throw this.value !== o && (this.value = void 0), o;
|
|
1254
1254
|
} finally {
|
|
1255
|
-
r.currentInterpreter_ =
|
|
1255
|
+
r.currentInterpreter_ = u;
|
|
1256
1256
|
}
|
|
1257
1257
|
if (l && t.push(l), this.getterStep_)
|
|
1258
1258
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
1259
1259
|
if (this.setterStep_)
|
|
1260
1260
|
throw this.value = void 0, Error("Setter not supported in this context");
|
|
1261
|
-
!e && !
|
|
1262
|
-
} while (!
|
|
1261
|
+
!e && !s.end && (e = Date.now() + this.POLYFILL_TIMEOUT);
|
|
1262
|
+
} while (!s.end && e > Date.now());
|
|
1263
1263
|
return !0;
|
|
1264
1264
|
}, r.prototype.run = function() {
|
|
1265
1265
|
for (; !this.paused_ && this.step(); )
|
|
@@ -1305,16 +1305,16 @@ function rf() {
|
|
|
1305
1305
|
this.OBJECT,
|
|
1306
1306
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1307
1307
|
), this.initArray(t), this.initString(t), this.initBoolean(t), this.initNumber(t), this.initDate(t), this.initRegExp(t), this.initError(t), this.initMath(t), this.initJSON(t);
|
|
1308
|
-
var e = this, i,
|
|
1308
|
+
var e = this, i, s = this.createNativeFunction(
|
|
1309
1309
|
function(o) {
|
|
1310
1310
|
throw EvalError("Can't happen");
|
|
1311
1311
|
},
|
|
1312
1312
|
!1
|
|
1313
1313
|
);
|
|
1314
|
-
|
|
1314
|
+
s.eval = !0, this.setProperty(
|
|
1315
1315
|
t,
|
|
1316
1316
|
"eval",
|
|
1317
|
-
|
|
1317
|
+
s,
|
|
1318
1318
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1319
1319
|
), this.setProperty(
|
|
1320
1320
|
t,
|
|
@@ -1337,14 +1337,14 @@ function rf() {
|
|
|
1337
1337
|
this.createNativeFunction(isFinite, !1),
|
|
1338
1338
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1339
1339
|
);
|
|
1340
|
-
for (var
|
|
1340
|
+
for (var u = [
|
|
1341
1341
|
[escape, "escape"],
|
|
1342
1342
|
[unescape, "unescape"],
|
|
1343
1343
|
[decodeURI, "decodeURI"],
|
|
1344
1344
|
[decodeURIComponent, "decodeURIComponent"],
|
|
1345
1345
|
[encodeURI, "encodeURI"],
|
|
1346
1346
|
[encodeURIComponent, "encodeURIComponent"]
|
|
1347
|
-
], l = 0; l <
|
|
1347
|
+
], l = 0; l < u.length; l++)
|
|
1348
1348
|
i = /* @__PURE__ */ function(o) {
|
|
1349
1349
|
return function(p) {
|
|
1350
1350
|
try {
|
|
@@ -1353,9 +1353,9 @@ function rf() {
|
|
|
1353
1353
|
e.throwException(e.URI_ERROR, m.message);
|
|
1354
1354
|
}
|
|
1355
1355
|
};
|
|
1356
|
-
}(
|
|
1356
|
+
}(u[l][0]), this.setProperty(
|
|
1357
1357
|
t,
|
|
1358
|
-
|
|
1358
|
+
u[l][1],
|
|
1359
1359
|
this.createNativeFunction(i, !1),
|
|
1360
1360
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1361
1361
|
);
|
|
@@ -1389,7 +1389,7 @@ function rf() {
|
|
|
1389
1389
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1390
1390
|
), this.OBJECT = this.OBJECT, this.OBJECT_PROTO = this.OBJECT_PROTO, this.FUNCTION = this.FUNCTION, this.FUNCTION_PROTO = this.FUNCTION_PROTO, this.ARRAY = this.ARRAY, this.ARRAY_PROTO = this.ARRAY_PROTO, this.REGEXP = this.REGEXP, this.REGEXP_PROTO = this.REGEXP_PROTO, this.DATE = this.DATE, this.DATE_PROTO = this.DATE_PROTO, this.initFunc_ && this.initFunc_(this, t);
|
|
1391
1391
|
}, r.prototype.functionCodeNumber_ = 0, r.prototype.initFunction = function(t) {
|
|
1392
|
-
var e = this, i,
|
|
1392
|
+
var e = this, i, s = /^[A-Za-z_$][\w$]*$/;
|
|
1393
1393
|
i = function(l) {
|
|
1394
1394
|
if (arguments.length)
|
|
1395
1395
|
var o = String(arguments[arguments.length - 1]);
|
|
@@ -1399,7 +1399,7 @@ function rf() {
|
|
|
1399
1399
|
if (p) {
|
|
1400
1400
|
for (var m = p.split(/\s*,\s*/), b = 0; b < m.length; b++) {
|
|
1401
1401
|
var O = m[b];
|
|
1402
|
-
|
|
1402
|
+
s.test(O) || e.throwException(
|
|
1403
1403
|
e.SYNTAX_ERROR,
|
|
1404
1404
|
"Invalid function argument: " + O
|
|
1405
1405
|
);
|
|
@@ -1546,14 +1546,14 @@ function rf() {
|
|
|
1546
1546
|
this.OBJECT,
|
|
1547
1547
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1548
1548
|
);
|
|
1549
|
-
var
|
|
1550
|
-
|
|
1549
|
+
var s = function(u) {
|
|
1550
|
+
u == null && e.throwException(
|
|
1551
1551
|
e.TYPE_ERROR,
|
|
1552
|
-
"Cannot convert '" +
|
|
1552
|
+
"Cannot convert '" + u + "' to object"
|
|
1553
1553
|
);
|
|
1554
1554
|
};
|
|
1555
1555
|
i = function(l) {
|
|
1556
|
-
|
|
1556
|
+
s(l);
|
|
1557
1557
|
var o = l instanceof r.Object ? l.properties : l;
|
|
1558
1558
|
return e.nativeToPseudo(Object.getOwnPropertyNames(o));
|
|
1559
1559
|
}, this.setProperty(
|
|
@@ -1562,7 +1562,7 @@ function rf() {
|
|
|
1562
1562
|
this.createNativeFunction(i, !1),
|
|
1563
1563
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1564
1564
|
), i = function(l) {
|
|
1565
|
-
return
|
|
1565
|
+
return s(l), l instanceof r.Object && (l = l.properties), e.nativeToPseudo(Object.keys(l));
|
|
1566
1566
|
}, this.setProperty(
|
|
1567
1567
|
this.OBJECT,
|
|
1568
1568
|
"keys",
|
|
@@ -1670,7 +1670,7 @@ function rf() {
|
|
|
1670
1670
|
this.createNativeFunction(i, !1),
|
|
1671
1671
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1672
1672
|
), i = function(l) {
|
|
1673
|
-
return
|
|
1673
|
+
return s(l), e.getPrototype(l);
|
|
1674
1674
|
}, this.setProperty(
|
|
1675
1675
|
this.OBJECT,
|
|
1676
1676
|
"getPrototypeOf",
|
|
@@ -1703,9 +1703,9 @@ function rf() {
|
|
|
1703
1703
|
"valueOf",
|
|
1704
1704
|
r.Object.prototype.valueOf
|
|
1705
1705
|
), i = function(l) {
|
|
1706
|
-
return
|
|
1706
|
+
return s(this), this instanceof r.Object ? String(l) in this.properties : this.hasOwnProperty(l);
|
|
1707
1707
|
}, this.setNativeFunctionPrototype(this.OBJECT, "hasOwnProperty", i), i = function(l) {
|
|
1708
|
-
return
|
|
1708
|
+
return s(this), this instanceof r.Object ? Object.prototype.propertyIsEnumerable.call(this.properties, l) : this.propertyIsEnumerable(l);
|
|
1709
1709
|
}, this.setNativeFunctionPrototype(this.OBJECT, "propertyIsEnumerable", i), i = function(l) {
|
|
1710
1710
|
for (; ; ) {
|
|
1711
1711
|
if (l = e.getPrototype(l), !l)
|
|
@@ -1716,7 +1716,7 @@ function rf() {
|
|
|
1716
1716
|
}, this.setNativeFunctionPrototype(this.OBJECT, "isPrototypeOf", i);
|
|
1717
1717
|
}, r.prototype.initArray = function(t) {
|
|
1718
1718
|
var e = this, i;
|
|
1719
|
-
i = function(
|
|
1719
|
+
i = function(u) {
|
|
1720
1720
|
if (e.calledWithNew())
|
|
1721
1721
|
var l = this;
|
|
1722
1722
|
else
|
|
@@ -1738,8 +1738,8 @@ function rf() {
|
|
|
1738
1738
|
"Array",
|
|
1739
1739
|
this.ARRAY,
|
|
1740
1740
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1741
|
-
), i = function(
|
|
1742
|
-
return
|
|
1741
|
+
), i = function(u) {
|
|
1742
|
+
return u && u.class === "Array";
|
|
1743
1743
|
}, this.setProperty(
|
|
1744
1744
|
this.ARRAY,
|
|
1745
1745
|
"isArray",
|
|
@@ -2204,7 +2204,7 @@ function rf() {
|
|
|
2204
2204
|
this.createNativeFunction(String.fromCharCode, !1),
|
|
2205
2205
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2206
2206
|
);
|
|
2207
|
-
for (var
|
|
2207
|
+
for (var s = [
|
|
2208
2208
|
"charAt",
|
|
2209
2209
|
"charCodeAt",
|
|
2210
2210
|
"concat",
|
|
@@ -2218,11 +2218,11 @@ function rf() {
|
|
|
2218
2218
|
"toLowerCase",
|
|
2219
2219
|
"toUpperCase",
|
|
2220
2220
|
"trim"
|
|
2221
|
-
],
|
|
2221
|
+
], u = 0; u < s.length; u++)
|
|
2222
2222
|
this.setNativeFunctionPrototype(
|
|
2223
2223
|
this.STRING,
|
|
2224
|
-
u
|
|
2225
|
-
String.prototype[u
|
|
2224
|
+
s[u],
|
|
2225
|
+
String.prototype[s[u]]
|
|
2226
2226
|
);
|
|
2227
2227
|
i = function(o, p, m) {
|
|
2228
2228
|
p = e.pseudoToNative(p), m = e.pseudoToNative(m);
|
|
@@ -2365,8 +2365,8 @@ function rf() {
|
|
|
2365
2365
|
);
|
|
2366
2366
|
}, r.prototype.initBoolean = function(t) {
|
|
2367
2367
|
var e = this, i;
|
|
2368
|
-
i = function(
|
|
2369
|
-
return
|
|
2368
|
+
i = function(u) {
|
|
2369
|
+
return u = r.nativeGlobal.Boolean(u), e.calledWithNew() ? (this.data = u, this) : u;
|
|
2370
2370
|
}, this.BOOLEAN = this.createNativeFunction(i, !0), this.setProperty(
|
|
2371
2371
|
t,
|
|
2372
2372
|
"Boolean",
|
|
@@ -2383,17 +2383,17 @@ function rf() {
|
|
|
2383
2383
|
this.NUMBER,
|
|
2384
2384
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2385
2385
|
);
|
|
2386
|
-
for (var
|
|
2386
|
+
for (var s = [
|
|
2387
2387
|
"MAX_VALUE",
|
|
2388
2388
|
"MIN_VALUE",
|
|
2389
2389
|
"NaN",
|
|
2390
2390
|
"NEGATIVE_INFINITY",
|
|
2391
2391
|
"POSITIVE_INFINITY"
|
|
2392
|
-
],
|
|
2392
|
+
], u = 0; u < s.length; u++)
|
|
2393
2393
|
this.setProperty(
|
|
2394
2394
|
this.NUMBER,
|
|
2395
|
-
u
|
|
2396
|
-
Number[u
|
|
2395
|
+
s[u],
|
|
2396
|
+
Number[s[u]],
|
|
2397
2397
|
r.NONCONFIGURABLE_READONLY_NONENUMERABLE_DESCRIPTOR
|
|
2398
2398
|
);
|
|
2399
2399
|
i = function(o) {
|
|
@@ -2467,7 +2467,7 @@ function rf() {
|
|
|
2467
2467
|
this.createNativeFunction(Date.UTC, !1),
|
|
2468
2468
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2469
2469
|
);
|
|
2470
|
-
for (var
|
|
2470
|
+
for (var s = [
|
|
2471
2471
|
"getDate",
|
|
2472
2472
|
"getDay",
|
|
2473
2473
|
"getFullYear",
|
|
@@ -2511,7 +2511,7 @@ function rf() {
|
|
|
2511
2511
|
"toLocaleTimeString",
|
|
2512
2512
|
"toTimeString",
|
|
2513
2513
|
"toUTCString"
|
|
2514
|
-
],
|
|
2514
|
+
], u = 0; u < s.length; u++)
|
|
2515
2515
|
i = /* @__PURE__ */ function(l) {
|
|
2516
2516
|
return function(o) {
|
|
2517
2517
|
var p = this.data;
|
|
@@ -2523,7 +2523,7 @@ function rf() {
|
|
|
2523
2523
|
m[b] = e.pseudoToNative(arguments[b]);
|
|
2524
2524
|
return p[l].apply(p, m);
|
|
2525
2525
|
};
|
|
2526
|
-
}(u
|
|
2526
|
+
}(s[u]), this.setNativeFunctionPrototype(this.DATE, s[u], i);
|
|
2527
2527
|
i = function() {
|
|
2528
2528
|
try {
|
|
2529
2529
|
return this.data.toISOString();
|
|
@@ -2536,20 +2536,20 @@ function rf() {
|
|
|
2536
2536
|
}, this.setNativeFunctionPrototype(this.DATE, "toISOString", i);
|
|
2537
2537
|
}, r.prototype.initRegExp = function(t) {
|
|
2538
2538
|
var e = this, i;
|
|
2539
|
-
i = function(
|
|
2539
|
+
i = function(u, l) {
|
|
2540
2540
|
if (e.calledWithNew())
|
|
2541
2541
|
var o = this;
|
|
2542
2542
|
else {
|
|
2543
|
-
if (l === void 0 && e.isa(
|
|
2544
|
-
return
|
|
2543
|
+
if (l === void 0 && e.isa(u, e.REGEXP))
|
|
2544
|
+
return u;
|
|
2545
2545
|
var o = e.createObjectProto(e.REGEXP_PROTO);
|
|
2546
2546
|
}
|
|
2547
|
-
|
|
2547
|
+
u = u === void 0 ? "" : String(u), l = l ? String(l) : "", /^[gmi]*$/.test(l) || e.throwException(
|
|
2548
2548
|
e.SYNTAX_ERROR,
|
|
2549
2549
|
"Invalid regexp flag: " + l
|
|
2550
2550
|
);
|
|
2551
2551
|
try {
|
|
2552
|
-
var p = new r.nativeGlobal.RegExp(
|
|
2552
|
+
var p = new r.nativeGlobal.RegExp(u, l);
|
|
2553
2553
|
} catch (m) {
|
|
2554
2554
|
e.throwException(e.SYNTAX_ERROR, m.message);
|
|
2555
2555
|
}
|
|
@@ -2588,12 +2588,12 @@ function rf() {
|
|
|
2588
2588
|
"}",
|
|
2589
2589
|
"});"
|
|
2590
2590
|
/* POLYFILL END */
|
|
2591
|
-
), i = function(
|
|
2591
|
+
), i = function(u, l) {
|
|
2592
2592
|
var o = this.data;
|
|
2593
|
-
if (
|
|
2593
|
+
if (u = String(u), o.lastIndex = Number(e.getProperty(this, "lastIndex")), e.maybeThrowRegExp(o, l), e.REGEXP_MODE === 2) {
|
|
2594
2594
|
if (r.vm) {
|
|
2595
2595
|
var p = {
|
|
2596
|
-
string:
|
|
2596
|
+
string: u,
|
|
2597
2597
|
regexp: o
|
|
2598
2598
|
}, m = "regexp.exec(string)", N = e.vmCall(m, p, o, l);
|
|
2599
2599
|
N !== r.REGEXP_TIMEOUT && (e.setProperty(this, "lastIndex", o.lastIndex), l(e.matchToPseudo_(N)));
|
|
@@ -2601,11 +2601,11 @@ function rf() {
|
|
|
2601
2601
|
var b = e.createWorker(), O = e.regExpTimeout(o, b, l), E = this;
|
|
2602
2602
|
b.onmessage = function(w) {
|
|
2603
2603
|
clearTimeout(O), e.setProperty(E, "lastIndex", w.data[1]), l(e.matchToPseudo_(w.data[0]));
|
|
2604
|
-
}, b.postMessage(["exec", o, o.lastIndex,
|
|
2604
|
+
}, b.postMessage(["exec", o, o.lastIndex, u]);
|
|
2605
2605
|
}
|
|
2606
2606
|
return;
|
|
2607
2607
|
}
|
|
2608
|
-
var N = o.exec(
|
|
2608
|
+
var N = o.exec(u);
|
|
2609
2609
|
e.setProperty(this, "lastIndex", o.lastIndex), l(e.matchToPseudo_(N));
|
|
2610
2610
|
}, this.setAsyncFunctionPrototype(this.REGEXP, "exec", i);
|
|
2611
2611
|
}, r.prototype.matchToPseudo_ = function(t) {
|
|
@@ -2614,20 +2614,20 @@ function rf() {
|
|
|
2614
2614
|
/** @type {!Array<?>} */
|
|
2615
2615
|
Object.getOwnPropertyNames(t)
|
|
2616
2616
|
), i = 0; i < e.length; i++) {
|
|
2617
|
-
var
|
|
2618
|
-
isNaN(Number(
|
|
2617
|
+
var s = e[i];
|
|
2618
|
+
isNaN(Number(s)) && s !== "length" && s !== "input" && s !== "index" && delete t[s];
|
|
2619
2619
|
}
|
|
2620
2620
|
return this.nativeToPseudo(t);
|
|
2621
2621
|
}
|
|
2622
2622
|
return null;
|
|
2623
2623
|
}, r.prototype.initError = function(t) {
|
|
2624
2624
|
var e = this;
|
|
2625
|
-
this.ERROR = this.createNativeFunction(function(
|
|
2625
|
+
this.ERROR = this.createNativeFunction(function(u) {
|
|
2626
2626
|
if (e.calledWithNew())
|
|
2627
2627
|
var l = this;
|
|
2628
2628
|
else
|
|
2629
2629
|
var l = e.createObject(e.ERROR);
|
|
2630
|
-
return e.populateError(l,
|
|
2630
|
+
return e.populateError(l, u), l;
|
|
2631
2631
|
}, !0), this.setProperty(
|
|
2632
2632
|
t,
|
|
2633
2633
|
"Error",
|
|
@@ -2644,33 +2644,33 @@ function rf() {
|
|
|
2644
2644
|
"Error",
|
|
2645
2645
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2646
2646
|
);
|
|
2647
|
-
var i = function(
|
|
2648
|
-
var
|
|
2647
|
+
var i = function(s) {
|
|
2648
|
+
var u = e.createNativeFunction(
|
|
2649
2649
|
function(l) {
|
|
2650
2650
|
if (e.calledWithNew())
|
|
2651
2651
|
var o = this;
|
|
2652
2652
|
else
|
|
2653
|
-
var o = e.createObject(
|
|
2653
|
+
var o = e.createObject(u);
|
|
2654
2654
|
return e.populateError(o, l), o;
|
|
2655
2655
|
},
|
|
2656
2656
|
!0
|
|
2657
2657
|
);
|
|
2658
2658
|
return e.setProperty(
|
|
2659
|
-
|
|
2659
|
+
u,
|
|
2660
2660
|
"prototype",
|
|
2661
2661
|
e.createObject(e.ERROR),
|
|
2662
2662
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2663
2663
|
), e.setProperty(
|
|
2664
|
-
|
|
2664
|
+
u.properties.prototype,
|
|
2665
2665
|
"name",
|
|
2666
|
-
|
|
2666
|
+
s,
|
|
2667
2667
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2668
2668
|
), e.setProperty(
|
|
2669
2669
|
t,
|
|
2670
|
-
u,
|
|
2671
2670
|
s,
|
|
2671
|
+
u,
|
|
2672
2672
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2673
|
-
),
|
|
2673
|
+
), u;
|
|
2674
2674
|
};
|
|
2675
2675
|
this.EVAL_ERROR = i("EvalError"), this.RANGE_ERROR = i("RangeError"), this.REFERENCE_ERROR = i("ReferenceError"), this.SYNTAX_ERROR = i("SyntaxError"), this.TYPE_ERROR = i("TypeError"), this.URI_ERROR = i("URIError");
|
|
2676
2676
|
}, r.prototype.initMath = function(t) {
|
|
@@ -2690,14 +2690,14 @@ function rf() {
|
|
|
2690
2690
|
"PI",
|
|
2691
2691
|
"SQRT1_2",
|
|
2692
2692
|
"SQRT2"
|
|
2693
|
-
],
|
|
2693
|
+
], s = 0; s < i.length; s++)
|
|
2694
2694
|
this.setProperty(
|
|
2695
2695
|
e,
|
|
2696
|
-
i[
|
|
2697
|
-
Math[i[
|
|
2696
|
+
i[s],
|
|
2697
|
+
Math[i[s]],
|
|
2698
2698
|
r.READONLY_NONENUMERABLE_DESCRIPTOR
|
|
2699
2699
|
);
|
|
2700
|
-
for (var
|
|
2700
|
+
for (var u = [
|
|
2701
2701
|
"abs",
|
|
2702
2702
|
"acos",
|
|
2703
2703
|
"asin",
|
|
@@ -2716,19 +2716,19 @@ function rf() {
|
|
|
2716
2716
|
"sin",
|
|
2717
2717
|
"sqrt",
|
|
2718
2718
|
"tan"
|
|
2719
|
-
],
|
|
2719
|
+
], s = 0; s < u.length; s++)
|
|
2720
2720
|
this.setProperty(
|
|
2721
2721
|
e,
|
|
2722
|
-
s
|
|
2723
|
-
this.createNativeFunction(Math[s
|
|
2722
|
+
u[s],
|
|
2723
|
+
this.createNativeFunction(Math[u[s]], !1),
|
|
2724
2724
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2725
2725
|
);
|
|
2726
2726
|
}, r.prototype.initJSON = function(t) {
|
|
2727
|
-
var e, i = this,
|
|
2727
|
+
var e, i = this, s = i.createObjectProto(this.OBJECT_PROTO);
|
|
2728
2728
|
this.setProperty(
|
|
2729
2729
|
t,
|
|
2730
2730
|
"JSON",
|
|
2731
|
-
|
|
2731
|
+
s,
|
|
2732
2732
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2733
2733
|
), e = function(l) {
|
|
2734
2734
|
try {
|
|
@@ -2737,7 +2737,7 @@ function rf() {
|
|
|
2737
2737
|
i.throwException(i.SYNTAX_ERROR, p.message);
|
|
2738
2738
|
}
|
|
2739
2739
|
return i.nativeToPseudo(o);
|
|
2740
|
-
}, this.setProperty(
|
|
2740
|
+
}, this.setProperty(s, "parse", this.createNativeFunction(e, !1)), e = function(l, o, p) {
|
|
2741
2741
|
o && o.class === "Function" ? i.throwException(
|
|
2742
2742
|
i.TYPE_ERROR,
|
|
2743
2743
|
"Function replacer on JSON.stringify not supported"
|
|
@@ -2752,7 +2752,7 @@ function rf() {
|
|
|
2752
2752
|
}
|
|
2753
2753
|
return b;
|
|
2754
2754
|
}, this.setProperty(
|
|
2755
|
-
|
|
2755
|
+
s,
|
|
2756
2756
|
"stringify",
|
|
2757
2757
|
this.createNativeFunction(e, !1)
|
|
2758
2758
|
);
|
|
@@ -2802,17 +2802,17 @@ function rf() {
|
|
|
2802
2802
|
String(e),
|
|
2803
2803
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2804
2804
|
);
|
|
2805
|
-
for (var i = [],
|
|
2806
|
-
var
|
|
2805
|
+
for (var i = [], s = this.stateStack.length - 1; s >= 0; s--) {
|
|
2806
|
+
var u = this.stateStack[s], l = u.node;
|
|
2807
2807
|
if (l.type === "CallExpression") {
|
|
2808
|
-
var o =
|
|
2808
|
+
var o = u.func_;
|
|
2809
2809
|
o && i.length && (i[i.length - 1].datumName = this.getProperty(o, "name"));
|
|
2810
2810
|
}
|
|
2811
2811
|
l.loc && (!i.length || l.type === "CallExpression") && i.push({ datumLoc: l.loc });
|
|
2812
2812
|
}
|
|
2813
2813
|
for (var p = String(this.getProperty(t, "name")), m = String(this.getProperty(t, "message")), b = p + ": " + m + `
|
|
2814
|
-
`,
|
|
2815
|
-
var O = i[
|
|
2814
|
+
`, s = 0; s < i.length; s++) {
|
|
2815
|
+
var O = i[s].datumLoc, E = i[s].datumName, N = O.source + ":" + O.start.line + ":" + O.start.column;
|
|
2816
2816
|
E ? b += " at " + E + " (" + N + `)
|
|
2817
2817
|
` : b += " at " + N + `
|
|
2818
2818
|
`;
|
|
@@ -2830,12 +2830,12 @@ function rf() {
|
|
|
2830
2830
|
`)],
|
|
2831
2831
|
{ type: "application/javascript" }
|
|
2832
2832
|
), this.createWorker.blob_ = t), new Worker(URL.createObjectURL(t));
|
|
2833
|
-
}, r.prototype.vmCall = function(t, e, i,
|
|
2834
|
-
var
|
|
2833
|
+
}, r.prototype.vmCall = function(t, e, i, s) {
|
|
2834
|
+
var u = { timeout: this.REGEXP_THREAD_TIMEOUT };
|
|
2835
2835
|
try {
|
|
2836
|
-
return r.vm.runInNewContext(t, e,
|
|
2836
|
+
return r.vm.runInNewContext(t, e, u);
|
|
2837
2837
|
} catch {
|
|
2838
|
-
|
|
2838
|
+
s(null), this.throwException(this.ERROR, "RegExp Timeout: " + i);
|
|
2839
2839
|
}
|
|
2840
2840
|
return r.REGEXP_TIMEOUT;
|
|
2841
2841
|
}, r.prototype.maybeThrowRegExp = function(t, e) {
|
|
@@ -2860,12 +2860,12 @@ function rf() {
|
|
|
2860
2860
|
}
|
|
2861
2861
|
i || (e(null), this.throwException(this.ERROR, "Regular expressions not supported: " + t));
|
|
2862
2862
|
}, r.prototype.regExpTimeout = function(t, e, i) {
|
|
2863
|
-
var
|
|
2863
|
+
var s = this;
|
|
2864
2864
|
return setTimeout(function() {
|
|
2865
2865
|
e.terminate(), i(null);
|
|
2866
2866
|
try {
|
|
2867
|
-
|
|
2868
|
-
|
|
2867
|
+
s.throwException(
|
|
2868
|
+
s.ERROR,
|
|
2869
2869
|
"RegExp Timeout: " + t
|
|
2870
2870
|
);
|
|
2871
2871
|
} catch {
|
|
@@ -2889,14 +2889,14 @@ function rf() {
|
|
|
2889
2889
|
}, r.prototype.createFunctionBase_ = function(t, e) {
|
|
2890
2890
|
var i = this.createObjectProto(this.FUNCTION_PROTO);
|
|
2891
2891
|
if (e) {
|
|
2892
|
-
var
|
|
2892
|
+
var s = this.createObjectProto(this.OBJECT_PROTO);
|
|
2893
2893
|
this.setProperty(
|
|
2894
2894
|
i,
|
|
2895
2895
|
"prototype",
|
|
2896
|
-
|
|
2896
|
+
s,
|
|
2897
2897
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2898
2898
|
), this.setProperty(
|
|
2899
|
-
|
|
2899
|
+
s,
|
|
2900
2900
|
"constructor",
|
|
2901
2901
|
i,
|
|
2902
2902
|
r.NONENUMERABLE_DESCRIPTOR
|
|
@@ -2910,15 +2910,15 @@ function rf() {
|
|
|
2910
2910
|
r.READONLY_NONENUMERABLE_DESCRIPTOR
|
|
2911
2911
|
), i.class = "Function", i;
|
|
2912
2912
|
}, r.prototype.createFunction = function(t, e, i) {
|
|
2913
|
-
var
|
|
2914
|
-
|
|
2915
|
-
var
|
|
2913
|
+
var s = this.createFunctionBase_(t.params.length, !0);
|
|
2914
|
+
s.parentScope = e, s.node = t;
|
|
2915
|
+
var u = t.id ? String(t.id.name) : i || "";
|
|
2916
2916
|
return this.setProperty(
|
|
2917
|
-
u,
|
|
2918
|
-
"name",
|
|
2919
2917
|
s,
|
|
2918
|
+
"name",
|
|
2919
|
+
u,
|
|
2920
2920
|
r.READONLY_NONENUMERABLE_DESCRIPTOR
|
|
2921
|
-
),
|
|
2921
|
+
), s;
|
|
2922
2922
|
}, r.prototype.createNativeFunction = function(t, e) {
|
|
2923
2923
|
var i = this.createFunctionBase_(t.length, e);
|
|
2924
2924
|
return i.nativeFunc = t, t.id = this.functionCounter_++, this.setProperty(
|
|
@@ -2943,12 +2943,12 @@ function rf() {
|
|
|
2943
2943
|
var i = e || {
|
|
2944
2944
|
pseudo: [],
|
|
2945
2945
|
native: []
|
|
2946
|
-
},
|
|
2947
|
-
if (
|
|
2948
|
-
return i.pseudo[
|
|
2946
|
+
}, s = i.native.indexOf(t);
|
|
2947
|
+
if (s !== -1)
|
|
2948
|
+
return i.pseudo[s];
|
|
2949
2949
|
if (i.native.push(t), t instanceof RegExp) {
|
|
2950
|
-
var
|
|
2951
|
-
return this.populateRegExp(
|
|
2950
|
+
var u = this.createObjectProto(this.REGEXP_PROTO);
|
|
2951
|
+
return this.populateRegExp(u, t), i.pseudo.push(u), u;
|
|
2952
2952
|
}
|
|
2953
2953
|
if (t instanceof Date) {
|
|
2954
2954
|
var l = this.createObjectProto(this.DATE_PROTO);
|
|
@@ -2983,12 +2983,12 @@ function rf() {
|
|
|
2983
2983
|
var i = e || {
|
|
2984
2984
|
pseudo: [],
|
|
2985
2985
|
native: []
|
|
2986
|
-
},
|
|
2987
|
-
if (
|
|
2988
|
-
return i.native[
|
|
2986
|
+
}, s = i.pseudo.indexOf(t);
|
|
2987
|
+
if (s !== -1)
|
|
2988
|
+
return i.native[s];
|
|
2989
2989
|
if (i.pseudo.push(t), this.isa(t, this.REGEXP)) {
|
|
2990
|
-
var
|
|
2991
|
-
return
|
|
2990
|
+
var u = new RegExp(t.data.source, t.data.flags);
|
|
2991
|
+
return u.lastIndex = t.data.lastIndex, i.native.push(u), u;
|
|
2992
2992
|
}
|
|
2993
2993
|
if (this.isa(t, this.DATE)) {
|
|
2994
2994
|
var l = new Date(t.data.valueOf());
|
|
@@ -3041,8 +3041,8 @@ function rf() {
|
|
|
3041
3041
|
}
|
|
3042
3042
|
do
|
|
3043
3043
|
if (t.properties && e in t.properties) {
|
|
3044
|
-
var
|
|
3045
|
-
return
|
|
3044
|
+
var s = t.getter[e];
|
|
3045
|
+
return s ? (this.getterStep_ = !0, s) : t.properties[e];
|
|
3046
3046
|
}
|
|
3047
3047
|
while (t = this.getPrototype(t));
|
|
3048
3048
|
}, r.prototype.hasProperty = function(t, e) {
|
|
@@ -3060,7 +3060,7 @@ function rf() {
|
|
|
3060
3060
|
return !0;
|
|
3061
3061
|
while (t = this.getPrototype(t));
|
|
3062
3062
|
return !1;
|
|
3063
|
-
}, r.prototype.setProperty = function(t, e, i,
|
|
3063
|
+
}, r.prototype.setProperty = function(t, e, i, s) {
|
|
3064
3064
|
if (this.setterStep_)
|
|
3065
3065
|
throw Error("Setter not supported in that context");
|
|
3066
3066
|
if (e = String(e), t == null && this.throwException(
|
|
@@ -3068,26 +3068,26 @@ function rf() {
|
|
|
3068
3068
|
"Cannot set property '" + e + "' of " + t
|
|
3069
3069
|
), typeof t == "object" && !(t instanceof r.Object))
|
|
3070
3070
|
throw TypeError("Expecting native value or pseudo object");
|
|
3071
|
-
|
|
3072
|
-
var
|
|
3071
|
+
s && ("get" in s || "set" in s) && ("value" in s || "writable" in s) && this.throwException(this.TYPE_ERROR, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
3072
|
+
var u = !this.stateStack || this.getScope().strict;
|
|
3073
3073
|
if (!(t instanceof r.Object)) {
|
|
3074
|
-
|
|
3074
|
+
u && this.throwException(this.TYPE_ERROR, "Can't create property '" + e + "' on '" + t + "'");
|
|
3075
3075
|
return;
|
|
3076
3076
|
}
|
|
3077
3077
|
if (this.isa(t, this.STRING)) {
|
|
3078
3078
|
var l = r.legalArrayIndex(e);
|
|
3079
3079
|
if (e === "length" || !isNaN(l) && l < String(t).length) {
|
|
3080
|
-
|
|
3080
|
+
u && this.throwException(this.TYPE_ERROR, "Cannot assign to read only property '" + e + "' of String '" + t.data + "'");
|
|
3081
3081
|
return;
|
|
3082
3082
|
}
|
|
3083
3083
|
}
|
|
3084
3084
|
if (t.class === "Array") {
|
|
3085
3085
|
var o = t.properties.length, p;
|
|
3086
3086
|
if (e === "length") {
|
|
3087
|
-
if (
|
|
3088
|
-
if (!("value" in
|
|
3087
|
+
if (s) {
|
|
3088
|
+
if (!("value" in s))
|
|
3089
3089
|
return;
|
|
3090
|
-
i =
|
|
3090
|
+
i = s.value;
|
|
3091
3091
|
}
|
|
3092
3092
|
if (i = r.legalArrayLength(i), isNaN(i) && this.throwException(this.RANGE_ERROR, "Invalid array length"), i < o)
|
|
3093
3093
|
for (p in t.properties)
|
|
@@ -3095,18 +3095,18 @@ function rf() {
|
|
|
3095
3095
|
} else isNaN(p = r.legalArrayIndex(e)) || (t.properties.length = Math.max(o, p + 1));
|
|
3096
3096
|
}
|
|
3097
3097
|
if (t.preventExtensions && !(e in t.properties)) {
|
|
3098
|
-
|
|
3098
|
+
u && this.throwException(this.TYPE_ERROR, "Can't add property '" + e + "', object is not extensible");
|
|
3099
3099
|
return;
|
|
3100
3100
|
}
|
|
3101
|
-
if (
|
|
3101
|
+
if (s) {
|
|
3102
3102
|
var m = {};
|
|
3103
|
-
"get" in
|
|
3103
|
+
"get" in s && s.get && (t.getter[e] = s.get, m.get = this.setProperty.placeholderGet_), "set" in s && s.set && (t.setter[e] = s.set, m.set = this.setProperty.placeholderSet_), "configurable" in s && (m.configurable = s.configurable), "enumerable" in s && (m.enumerable = s.enumerable), "writable" in s && (m.writable = s.writable, delete t.getter[e], delete t.setter[e]), "value" in s ? (m.value = s.value, delete t.getter[e], delete t.setter[e]) : i !== r.VALUE_IN_DESCRIPTOR && (m.value = i, delete t.getter[e], delete t.setter[e]);
|
|
3104
3104
|
try {
|
|
3105
3105
|
Object.defineProperty(t.properties, e, m);
|
|
3106
3106
|
} catch {
|
|
3107
3107
|
this.throwException(this.TYPE_ERROR, "Cannot redefine property: " + e);
|
|
3108
3108
|
}
|
|
3109
|
-
"get" in
|
|
3109
|
+
"get" in s && !s.get && delete t.getter[e], "set" in s && !s.set && delete t.setter[e];
|
|
3110
3110
|
} else {
|
|
3111
3111
|
if (i === r.VALUE_IN_DESCRIPTOR)
|
|
3112
3112
|
throw ReferenceError("Value not specified");
|
|
@@ -3118,12 +3118,12 @@ function rf() {
|
|
|
3118
3118
|
if (b.setter && b.setter[e])
|
|
3119
3119
|
return this.setterStep_ = !0, b.setter[e];
|
|
3120
3120
|
if (b.getter && b.getter[e])
|
|
3121
|
-
|
|
3121
|
+
u && this.throwException(this.TYPE_ERROR, "Cannot set property '" + e + "' of object '" + t + "' which only has a getter");
|
|
3122
3122
|
else
|
|
3123
3123
|
try {
|
|
3124
3124
|
t.properties[e] = i;
|
|
3125
3125
|
} catch {
|
|
3126
|
-
|
|
3126
|
+
u && this.throwException(this.TYPE_ERROR, "Cannot assign to read only property '" + e + "' of object '" + t + "'");
|
|
3127
3127
|
}
|
|
3128
3128
|
}
|
|
3129
3129
|
}, r.prototype.setProperty.placeholderGet_ = function() {
|
|
@@ -3154,10 +3154,10 @@ function rf() {
|
|
|
3154
3154
|
if (e && e.strict)
|
|
3155
3155
|
i = !0;
|
|
3156
3156
|
else {
|
|
3157
|
-
var
|
|
3158
|
-
|
|
3157
|
+
var s = t.body && t.body[0];
|
|
3158
|
+
s && s.expression && s.expression.type === "Literal" && s.expression.value === "use strict" && (i = !0);
|
|
3159
3159
|
}
|
|
3160
|
-
var
|
|
3160
|
+
var u = this.createObjectProto(null), l = new r.Scope(e, i, u);
|
|
3161
3161
|
return e || this.initGlobal(l.object), this.populateScope_(t, l), l;
|
|
3162
3162
|
}, r.prototype.createSpecialScope = function(t, e) {
|
|
3163
3163
|
if (!t)
|
|
@@ -3175,12 +3175,12 @@ function rf() {
|
|
|
3175
3175
|
var i = this.stateStack[this.stateStack.length - 1].node;
|
|
3176
3176
|
i.type === "UnaryExpression" && i.operator === "typeof" || this.throwException(this.REFERENCE_ERROR, t + " is not defined");
|
|
3177
3177
|
}, r.prototype.setValueToScope = function(t, e) {
|
|
3178
|
-
for (var i = this.getScope(),
|
|
3178
|
+
for (var i = this.getScope(), s = i.strict; i && i !== this.globalScope; ) {
|
|
3179
3179
|
if (t in i.object.properties) {
|
|
3180
3180
|
try {
|
|
3181
3181
|
i.object.properties[t] = e;
|
|
3182
3182
|
} catch {
|
|
3183
|
-
|
|
3183
|
+
s && this.throwException(
|
|
3184
3184
|
this.TYPE_ERROR,
|
|
3185
3185
|
"Cannot assign to read only variable '" + t + "'"
|
|
3186
3186
|
);
|
|
@@ -3189,7 +3189,7 @@ function rf() {
|
|
|
3189
3189
|
}
|
|
3190
3190
|
i = i.parentScope;
|
|
3191
3191
|
}
|
|
3192
|
-
if (i === this.globalScope && (!
|
|
3192
|
+
if (i === this.globalScope && (!s || this.hasProperty(i.object, t)))
|
|
3193
3193
|
return this.setProperty(i.object, t, e);
|
|
3194
3194
|
this.throwException(this.REFERENCE_ERROR, t + " is not defined");
|
|
3195
3195
|
}, r.prototype.populateScope_ = function(t, e) {
|
|
@@ -3199,8 +3199,8 @@ function rf() {
|
|
|
3199
3199
|
else {
|
|
3200
3200
|
switch (i = /* @__PURE__ */ Object.create(null), t.type) {
|
|
3201
3201
|
case "VariableDeclaration":
|
|
3202
|
-
for (var
|
|
3203
|
-
i[t.declarations[
|
|
3202
|
+
for (var s = 0; s < t.declarations.length; s++)
|
|
3203
|
+
i[t.declarations[s].id.name] = !0;
|
|
3204
3204
|
break;
|
|
3205
3205
|
case "FunctionDeclaration":
|
|
3206
3206
|
i[t.id.name] = t;
|
|
@@ -3218,20 +3218,20 @@ function rf() {
|
|
|
3218
3218
|
case "TryStatement":
|
|
3219
3219
|
case "WithStatement":
|
|
3220
3220
|
case "WhileStatement":
|
|
3221
|
-
var
|
|
3221
|
+
var u = t.constructor;
|
|
3222
3222
|
for (var l in t)
|
|
3223
3223
|
if (t[l] !== t.loc) {
|
|
3224
3224
|
var o = t[l];
|
|
3225
3225
|
if (o && typeof o == "object") {
|
|
3226
3226
|
var p;
|
|
3227
3227
|
if (Array.isArray(o)) {
|
|
3228
|
-
for (var
|
|
3229
|
-
if (o[
|
|
3230
|
-
p = this.populateScope_(o[
|
|
3228
|
+
for (var s = 0; s < o.length; s++)
|
|
3229
|
+
if (o[s] && o[s].constructor === u) {
|
|
3230
|
+
p = this.populateScope_(o[s], e);
|
|
3231
3231
|
for (var l in p)
|
|
3232
3232
|
i[l] = p[l];
|
|
3233
3233
|
}
|
|
3234
|
-
} else if (o.constructor ===
|
|
3234
|
+
} else if (o.constructor === u) {
|
|
3235
3235
|
p = this.populateScope_(o, e);
|
|
3236
3236
|
for (var l in p)
|
|
3237
3237
|
i[l] = p[l];
|
|
@@ -3273,16 +3273,16 @@ function rf() {
|
|
|
3273
3273
|
}, r.prototype.unwind = function(t, e, i) {
|
|
3274
3274
|
if (t === r.Completion.NORMAL)
|
|
3275
3275
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
3276
|
-
e: for (var
|
|
3277
|
-
var
|
|
3278
|
-
switch (
|
|
3276
|
+
e: for (var s = this.stateStack; s.length > 0; s.pop()) {
|
|
3277
|
+
var u = s[s.length - 1];
|
|
3278
|
+
switch (u.node.type) {
|
|
3279
3279
|
case "TryStatement":
|
|
3280
|
-
|
|
3280
|
+
u.cv = { type: t, value: e, label: i };
|
|
3281
3281
|
return;
|
|
3282
3282
|
case "CallExpression":
|
|
3283
3283
|
case "NewExpression":
|
|
3284
3284
|
if (t === r.Completion.RETURN) {
|
|
3285
|
-
|
|
3285
|
+
u.value = e;
|
|
3286
3286
|
return;
|
|
3287
3287
|
} else if (t === r.Completion.BREAK || t === r.Completion.CONTINUE)
|
|
3288
3288
|
throw Error("Unsyntactic break/continue not rejected by Acorn");
|
|
@@ -3290,15 +3290,15 @@ function rf() {
|
|
|
3290
3290
|
case "Program":
|
|
3291
3291
|
if (t === r.Completion.RETURN)
|
|
3292
3292
|
return;
|
|
3293
|
-
|
|
3293
|
+
u.done = !0;
|
|
3294
3294
|
break e;
|
|
3295
3295
|
}
|
|
3296
3296
|
if (t === r.Completion.BREAK) {
|
|
3297
|
-
if (i ?
|
|
3298
|
-
|
|
3297
|
+
if (i ? u.labels && u.labels.indexOf(i) !== -1 : u.isLoop || u.isSwitch) {
|
|
3298
|
+
s.pop();
|
|
3299
3299
|
return;
|
|
3300
3300
|
}
|
|
3301
|
-
} else if (t === r.Completion.CONTINUE && (i ?
|
|
3301
|
+
} else if (t === r.Completion.CONTINUE && (i ? u.labels && u.labels.indexOf(i) !== -1 : u.isLoop))
|
|
3302
3302
|
return;
|
|
3303
3303
|
}
|
|
3304
3304
|
var l;
|
|
@@ -3342,35 +3342,35 @@ function rf() {
|
|
|
3342
3342
|
case "UnaryExpression":
|
|
3343
3343
|
return t.operator + " " + this.nodeSummary(t.argument);
|
|
3344
3344
|
case "UpdateExpression":
|
|
3345
|
-
var
|
|
3346
|
-
return t.prefix ? t.operator +
|
|
3345
|
+
var s = this.nodeSummary(t.argument);
|
|
3346
|
+
return t.prefix ? t.operator + s : s + t.operator;
|
|
3347
3347
|
}
|
|
3348
3348
|
return "???";
|
|
3349
3349
|
}, r.prototype.createTask_ = function(t, e) {
|
|
3350
|
-
var i = this.stateStack[this.stateStack.length - 1],
|
|
3351
|
-
if (
|
|
3352
|
-
m =
|
|
3350
|
+
var i = this.stateStack[this.stateStack.length - 1], s = Array.from(e), u = s.shift(), l = Math.max(Number(s.shift() || 0), 0), o = this.newNode(), p, m, b;
|
|
3351
|
+
if (u instanceof r.Object && u.class === "Function")
|
|
3352
|
+
m = u, o.type = "CallExpression", p = i.scope;
|
|
3353
3353
|
else {
|
|
3354
3354
|
try {
|
|
3355
|
-
b = this.parse_(String(
|
|
3355
|
+
b = this.parse_(String(u), "taskCode" + this.taskCodeNumber_++);
|
|
3356
3356
|
} catch (I) {
|
|
3357
3357
|
this.throwException(this.SYNTAX_ERROR, "Invalid code: " + I.message);
|
|
3358
3358
|
}
|
|
3359
3359
|
o.type = "EvalProgram_", o.body = b.body;
|
|
3360
3360
|
var O = i.node.arguments[0], E = O ? O.start : void 0, N = O ? O.end : void 0;
|
|
3361
|
-
r.stripLocations_(o, E, N), p = this.globalScope,
|
|
3361
|
+
r.stripLocations_(o, E, N), p = this.globalScope, s.length = 0;
|
|
3362
3362
|
}
|
|
3363
3363
|
var w = new r.Task(
|
|
3364
3364
|
m,
|
|
3365
|
-
|
|
3365
|
+
s,
|
|
3366
3366
|
p,
|
|
3367
3367
|
o,
|
|
3368
3368
|
t ? l : -1
|
|
3369
3369
|
);
|
|
3370
3370
|
return this.scheduleTask_(w, l), w.pid;
|
|
3371
3371
|
}, r.prototype.scheduleTask_ = function(t, e) {
|
|
3372
|
-
t.time = Date.now() + e, this.tasks.push(t), this.tasks.sort(function(i,
|
|
3373
|
-
return i.time -
|
|
3372
|
+
t.time = Date.now() + e, this.tasks.push(t), this.tasks.sort(function(i, s) {
|
|
3373
|
+
return i.time - s.time;
|
|
3374
3374
|
});
|
|
3375
3375
|
}, r.prototype.deleteTask_ = function(t) {
|
|
3376
3376
|
for (var e = 0; e < this.tasks.length; e++)
|
|
@@ -3389,24 +3389,24 @@ function rf() {
|
|
|
3389
3389
|
if (!this.getterStep_)
|
|
3390
3390
|
throw Error("Unexpected call to createGetter");
|
|
3391
3391
|
this.getterStep_ = !1;
|
|
3392
|
-
var i = Array.isArray(e) ? e[0] : e,
|
|
3393
|
-
|
|
3394
|
-
var
|
|
3395
|
-
|
|
3392
|
+
var i = Array.isArray(e) ? e[0] : e, s = this.newNode();
|
|
3393
|
+
s.type = "CallExpression";
|
|
3394
|
+
var u = new r.State(
|
|
3395
|
+
s,
|
|
3396
3396
|
this.stateStack[this.stateStack.length - 1].scope
|
|
3397
3397
|
);
|
|
3398
|
-
return
|
|
3398
|
+
return u.doneCallee_ = 2, u.funcThis_ = i, u.func_ = t, u.doneArgs_ = !0, u.arguments_ = [], u;
|
|
3399
3399
|
}, r.prototype.createSetter_ = function(t, e, i) {
|
|
3400
3400
|
if (!this.setterStep_)
|
|
3401
3401
|
throw Error("Unexpected call to createSetter");
|
|
3402
3402
|
this.setterStep_ = !1;
|
|
3403
|
-
var
|
|
3404
|
-
|
|
3403
|
+
var s = Array.isArray(e) ? e[0] : this.globalObject, u = this.newNode();
|
|
3404
|
+
u.type = "CallExpression";
|
|
3405
3405
|
var l = new r.State(
|
|
3406
|
-
|
|
3406
|
+
u,
|
|
3407
3407
|
this.stateStack[this.stateStack.length - 1].scope
|
|
3408
3408
|
);
|
|
3409
|
-
return l.doneCallee_ = 2, l.funcThis_ =
|
|
3409
|
+
return l.doneCallee_ = 2, l.funcThis_ = s, l.func_ = t, l.doneArgs_ = !0, l.arguments_ = [i], l;
|
|
3410
3410
|
}, r.prototype.boxThis_ = function(t) {
|
|
3411
3411
|
if (t == null)
|
|
3412
3412
|
return this.globalObject;
|
|
@@ -3438,13 +3438,13 @@ function rf() {
|
|
|
3438
3438
|
var t = r.toStringCycles_;
|
|
3439
3439
|
t.push(this);
|
|
3440
3440
|
try {
|
|
3441
|
-
var e = [], i = this.properties.length,
|
|
3442
|
-
i > 1024 && (i = 1e3,
|
|
3443
|
-
for (var
|
|
3444
|
-
var l = this.properties[
|
|
3445
|
-
e[
|
|
3441
|
+
var e = [], i = this.properties.length, s = !1;
|
|
3442
|
+
i > 1024 && (i = 1e3, s = !0);
|
|
3443
|
+
for (var u = 0; u < i; u++) {
|
|
3444
|
+
var l = this.properties[u];
|
|
3445
|
+
e[u] = l instanceof r.Object && t.indexOf(l) !== -1 ? "..." : l;
|
|
3446
3446
|
}
|
|
3447
|
-
|
|
3447
|
+
s && e.push("...");
|
|
3448
3448
|
} finally {
|
|
3449
3449
|
t.pop();
|
|
3450
3450
|
}
|
|
@@ -3482,30 +3482,30 @@ function rf() {
|
|
|
3482
3482
|
/** @type {(boolean|number|string)} */
|
|
3483
3483
|
this.data
|
|
3484
3484
|
) : this;
|
|
3485
|
-
}, r.Task = function(t, e, i,
|
|
3486
|
-
this.functionRef = t, this.argsArray = e, this.scope = i, this.node =
|
|
3485
|
+
}, r.Task = function(t, e, i, s, u) {
|
|
3486
|
+
this.functionRef = t, this.argsArray = e, this.scope = i, this.node = s, this.interval = u, this.pid = ++r.Task.pid, this.time = 0;
|
|
3487
3487
|
}, r.Task.pid = 0, r.prototype.stepArrayExpression = function(t, e, i) {
|
|
3488
|
-
var
|
|
3489
|
-
for (e.array_ ? (this.setProperty(e.array_,
|
|
3490
|
-
if (u
|
|
3491
|
-
return e.n_ =
|
|
3492
|
-
|
|
3488
|
+
var s = i.elements, u = e.n_ || 0;
|
|
3489
|
+
for (e.array_ ? (this.setProperty(e.array_, u, e.value), u++) : (e.array_ = this.createArray(), e.array_.properties.length = s.length); u < s.length; ) {
|
|
3490
|
+
if (s[u])
|
|
3491
|
+
return e.n_ = u, new r.State(s[u], e.scope);
|
|
3492
|
+
u++;
|
|
3493
3493
|
}
|
|
3494
3494
|
t.pop(), t[t.length - 1].value = e.array_;
|
|
3495
3495
|
}, r.prototype.stepAssignmentExpression = function(t, e, i) {
|
|
3496
3496
|
if (!e.doneLeft_) {
|
|
3497
3497
|
e.doneLeft_ = !0;
|
|
3498
|
-
var
|
|
3499
|
-
return
|
|
3498
|
+
var s = new r.State(i.left, e.scope);
|
|
3499
|
+
return s.components = !0, s;
|
|
3500
3500
|
}
|
|
3501
3501
|
if (!e.doneRight_) {
|
|
3502
3502
|
if (e.leftReference_ || (e.leftReference_ = e.value), e.doneGetter_ && (e.leftValue_ = e.value), !e.doneGetter_ && i.operator !== "=") {
|
|
3503
|
-
var
|
|
3504
|
-
if (e.leftValue_ =
|
|
3503
|
+
var u = this.getValue(e.leftReference_);
|
|
3504
|
+
if (e.leftValue_ = u, this.getterStep_) {
|
|
3505
3505
|
e.doneGetter_ = !0;
|
|
3506
3506
|
var l = (
|
|
3507
3507
|
/** @type {!Interpreter.Object} */
|
|
3508
|
-
|
|
3508
|
+
u
|
|
3509
3509
|
);
|
|
3510
3510
|
return this.createGetter_(l, e.leftReference_);
|
|
3511
3511
|
}
|
|
@@ -3567,121 +3567,121 @@ function rf() {
|
|
|
3567
3567
|
if (!e.doneRight_)
|
|
3568
3568
|
return e.doneRight_ = !0, e.leftValue_ = e.value, new r.State(i.right, e.scope);
|
|
3569
3569
|
t.pop();
|
|
3570
|
-
var
|
|
3570
|
+
var s = e.leftValue_, u = e.value, l;
|
|
3571
3571
|
switch (i.operator) {
|
|
3572
3572
|
case "==":
|
|
3573
|
-
l =
|
|
3573
|
+
l = s == u;
|
|
3574
3574
|
break;
|
|
3575
3575
|
case "!=":
|
|
3576
|
-
l =
|
|
3576
|
+
l = s != u;
|
|
3577
3577
|
break;
|
|
3578
3578
|
case "===":
|
|
3579
|
-
l =
|
|
3579
|
+
l = s === u;
|
|
3580
3580
|
break;
|
|
3581
3581
|
case "!==":
|
|
3582
|
-
l =
|
|
3582
|
+
l = s !== u;
|
|
3583
3583
|
break;
|
|
3584
3584
|
case ">":
|
|
3585
|
-
l =
|
|
3585
|
+
l = s > u;
|
|
3586
3586
|
break;
|
|
3587
3587
|
case ">=":
|
|
3588
|
-
l =
|
|
3588
|
+
l = s >= u;
|
|
3589
3589
|
break;
|
|
3590
3590
|
case "<":
|
|
3591
|
-
l =
|
|
3591
|
+
l = s < u;
|
|
3592
3592
|
break;
|
|
3593
3593
|
case "<=":
|
|
3594
|
-
l =
|
|
3594
|
+
l = s <= u;
|
|
3595
3595
|
break;
|
|
3596
3596
|
case "+":
|
|
3597
|
-
l =
|
|
3597
|
+
l = s + u;
|
|
3598
3598
|
break;
|
|
3599
3599
|
case "-":
|
|
3600
|
-
l =
|
|
3600
|
+
l = s - u;
|
|
3601
3601
|
break;
|
|
3602
3602
|
case "*":
|
|
3603
|
-
l =
|
|
3603
|
+
l = s * u;
|
|
3604
3604
|
break;
|
|
3605
3605
|
case "/":
|
|
3606
|
-
l =
|
|
3606
|
+
l = s / u;
|
|
3607
3607
|
break;
|
|
3608
3608
|
case "%":
|
|
3609
|
-
l =
|
|
3609
|
+
l = s % u;
|
|
3610
3610
|
break;
|
|
3611
3611
|
case "&":
|
|
3612
|
-
l =
|
|
3612
|
+
l = s & u;
|
|
3613
3613
|
break;
|
|
3614
3614
|
case "|":
|
|
3615
|
-
l =
|
|
3615
|
+
l = s | u;
|
|
3616
3616
|
break;
|
|
3617
3617
|
case "^":
|
|
3618
|
-
l =
|
|
3618
|
+
l = s ^ u;
|
|
3619
3619
|
break;
|
|
3620
3620
|
case "<<":
|
|
3621
|
-
l =
|
|
3621
|
+
l = s << u;
|
|
3622
3622
|
break;
|
|
3623
3623
|
case ">>":
|
|
3624
|
-
l =
|
|
3624
|
+
l = s >> u;
|
|
3625
3625
|
break;
|
|
3626
3626
|
case ">>>":
|
|
3627
|
-
l =
|
|
3627
|
+
l = s >>> u;
|
|
3628
3628
|
break;
|
|
3629
3629
|
case "in":
|
|
3630
|
-
|
|
3630
|
+
u instanceof r.Object || this.throwException(
|
|
3631
3631
|
this.TYPE_ERROR,
|
|
3632
|
-
"'in' expects an object, not '" +
|
|
3633
|
-
), l = this.hasProperty(
|
|
3632
|
+
"'in' expects an object, not '" + u + "'"
|
|
3633
|
+
), l = this.hasProperty(u, s);
|
|
3634
3634
|
break;
|
|
3635
3635
|
case "instanceof":
|
|
3636
|
-
this.isa(
|
|
3636
|
+
this.isa(u, this.FUNCTION) || this.throwException(
|
|
3637
3637
|
this.TYPE_ERROR,
|
|
3638
|
-
"'instanceof' expects an object, not '" +
|
|
3639
|
-
), l =
|
|
3638
|
+
"'instanceof' expects an object, not '" + u + "'"
|
|
3639
|
+
), l = s instanceof r.Object ? this.isa(s, u) : !1;
|
|
3640
3640
|
break;
|
|
3641
3641
|
default:
|
|
3642
3642
|
throw SyntaxError("Unknown binary operator: " + i.operator);
|
|
3643
3643
|
}
|
|
3644
3644
|
t[t.length - 1].value = l;
|
|
3645
3645
|
}, r.prototype.stepBlockStatement = function(t, e, i) {
|
|
3646
|
-
var
|
|
3647
|
-
if (
|
|
3648
|
-
return e.n_ =
|
|
3646
|
+
var s = e.n_ || 0, u = i.body[s];
|
|
3647
|
+
if (u)
|
|
3648
|
+
return e.n_ = s + 1, new r.State(u, e.scope);
|
|
3649
3649
|
t.pop();
|
|
3650
3650
|
}, r.prototype.stepBreakStatement = function(t, e, i) {
|
|
3651
|
-
var
|
|
3652
|
-
this.unwind(r.Completion.BREAK, void 0,
|
|
3651
|
+
var s = i.label && i.label.name;
|
|
3652
|
+
this.unwind(r.Completion.BREAK, void 0, s);
|
|
3653
3653
|
}, r.prototype.evalCodeNumber_ = 0, r.prototype.stepCallExpression = function(t, e, i) {
|
|
3654
3654
|
if (!e.doneCallee_) {
|
|
3655
3655
|
e.doneCallee_ = 1;
|
|
3656
|
-
var
|
|
3657
|
-
return
|
|
3656
|
+
var s = new r.State(i.callee, e.scope);
|
|
3657
|
+
return s.components = !0, s;
|
|
3658
3658
|
}
|
|
3659
3659
|
if (e.doneCallee_ === 1) {
|
|
3660
3660
|
e.doneCallee_ = 2;
|
|
3661
|
-
var
|
|
3662
|
-
if (Array.isArray(
|
|
3663
|
-
if (e.func_ = this.getValue(
|
|
3661
|
+
var u = e.value;
|
|
3662
|
+
if (Array.isArray(u)) {
|
|
3663
|
+
if (e.func_ = this.getValue(u), u[0] === r.SCOPE_REFERENCE ? e.directEval_ = u[1] === "eval" : e.funcThis_ = u[0], u = e.func_, this.getterStep_)
|
|
3664
3664
|
return e.doneCallee_ = 1, this.createGetter_(
|
|
3665
3665
|
/** @type {!Interpreter.Object} */
|
|
3666
|
-
|
|
3666
|
+
u,
|
|
3667
3667
|
e.value
|
|
3668
3668
|
);
|
|
3669
3669
|
} else
|
|
3670
|
-
e.func_ =
|
|
3670
|
+
e.func_ = u;
|
|
3671
3671
|
e.arguments_ = [], e.n_ = 0;
|
|
3672
3672
|
}
|
|
3673
|
-
var
|
|
3673
|
+
var u = e.func_;
|
|
3674
3674
|
if (!e.doneArgs_) {
|
|
3675
3675
|
if (e.n_ !== 0 && e.arguments_.push(e.value), i.arguments[e.n_])
|
|
3676
3676
|
return new r.State(i.arguments[e.n_++], e.scope);
|
|
3677
3677
|
if (i.type === "NewExpression") {
|
|
3678
|
-
if ((!(
|
|
3678
|
+
if ((!(u instanceof r.Object) || u.illegalConstructor) && this.throwException(
|
|
3679
3679
|
this.TYPE_ERROR,
|
|
3680
3680
|
this.nodeSummary(i.callee) + " is not a constructor"
|
|
3681
|
-
),
|
|
3681
|
+
), u === this.ARRAY)
|
|
3682
3682
|
e.funcThis_ = this.createArray();
|
|
3683
3683
|
else {
|
|
3684
|
-
var l =
|
|
3684
|
+
var l = u.properties.prototype;
|
|
3685
3685
|
(typeof l != "object" || l === null) && (l = this.OBJECT_PROTO), e.funcThis_ = this.createObjectProto(l);
|
|
3686
3686
|
}
|
|
3687
3687
|
e.isConstructor = !0;
|
|
@@ -3691,13 +3691,13 @@ function rf() {
|
|
|
3691
3691
|
if (e.doneExec_)
|
|
3692
3692
|
t.pop(), e.isConstructor && typeof e.value != "object" ? t[t.length - 1].value = e.funcThis_ : t[t.length - 1].value = e.value;
|
|
3693
3693
|
else {
|
|
3694
|
-
e.doneExec_ = !0,
|
|
3694
|
+
e.doneExec_ = !0, u instanceof r.Object || this.throwException(
|
|
3695
3695
|
this.TYPE_ERROR,
|
|
3696
3696
|
this.nodeSummary(i.callee) + " is not a function"
|
|
3697
3697
|
);
|
|
3698
|
-
var o =
|
|
3698
|
+
var o = u.node;
|
|
3699
3699
|
if (o) {
|
|
3700
|
-
for (var p = this.createScope(o.body,
|
|
3700
|
+
for (var p = this.createScope(o.body, u.parentScope), m = this.createArray(), b = 0; b < e.arguments_.length; b++)
|
|
3701
3701
|
this.setProperty(m, b, e.arguments_[b]);
|
|
3702
3702
|
this.setProperty(p.object, "arguments", m);
|
|
3703
3703
|
for (var b = 0; b < o.params.length; b++) {
|
|
@@ -3710,7 +3710,7 @@ function rf() {
|
|
|
3710
3710
|
e.funcThis_,
|
|
3711
3711
|
r.READONLY_DESCRIPTOR
|
|
3712
3712
|
), e.value = void 0, new r.State(o.body, p);
|
|
3713
|
-
} else if (
|
|
3713
|
+
} else if (u.eval) {
|
|
3714
3714
|
var N = e.arguments_[0];
|
|
3715
3715
|
if (typeof N != "string")
|
|
3716
3716
|
e.value = N;
|
|
@@ -3728,15 +3728,15 @@ function rf() {
|
|
|
3728
3728
|
var p = e.directEval_ ? e.scope : this.globalScope;
|
|
3729
3729
|
return p.strict ? p = this.createScope(w, p) : this.populateScope_(w, p), this.value = void 0, new r.State(I, p);
|
|
3730
3730
|
}
|
|
3731
|
-
} else if (
|
|
3732
|
-
e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), e.value =
|
|
3733
|
-
else if (
|
|
3731
|
+
} else if (u.nativeFunc)
|
|
3732
|
+
e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), e.value = u.nativeFunc.apply(e.funcThis_, e.arguments_);
|
|
3733
|
+
else if (u.asyncFunc) {
|
|
3734
3734
|
var P = this, q = function(Te) {
|
|
3735
3735
|
e.value = Te, P.paused_ = !1;
|
|
3736
|
-
}, ie =
|
|
3736
|
+
}, ie = u.asyncFunc.length - 1, Le = e.arguments_.concat(
|
|
3737
3737
|
new Array(ie)
|
|
3738
3738
|
).slice(0, ie);
|
|
3739
|
-
Le.push(q), this.paused_ = !0, e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)),
|
|
3739
|
+
Le.push(q), this.paused_ = !0, e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), u.asyncFunc.apply(e.funcThis_, Le);
|
|
3740
3740
|
return;
|
|
3741
3741
|
} else
|
|
3742
3742
|
this.throwException(
|
|
@@ -3745,22 +3745,22 @@ function rf() {
|
|
|
3745
3745
|
);
|
|
3746
3746
|
}
|
|
3747
3747
|
}, r.prototype.stepConditionalExpression = function(t, e, i) {
|
|
3748
|
-
var
|
|
3749
|
-
if (
|
|
3748
|
+
var s = e.mode_ || 0;
|
|
3749
|
+
if (s === 0)
|
|
3750
3750
|
return e.mode_ = 1, new r.State(i.test, e.scope);
|
|
3751
|
-
if (
|
|
3751
|
+
if (s === 1) {
|
|
3752
3752
|
e.mode_ = 2;
|
|
3753
|
-
var
|
|
3754
|
-
if (
|
|
3753
|
+
var u = !!e.value;
|
|
3754
|
+
if (u && i.consequent)
|
|
3755
3755
|
return new r.State(i.consequent, e.scope);
|
|
3756
|
-
if (!
|
|
3756
|
+
if (!u && i.alternate)
|
|
3757
3757
|
return new r.State(i.alternate, e.scope);
|
|
3758
3758
|
this.value = void 0;
|
|
3759
3759
|
}
|
|
3760
3760
|
t.pop(), i.type === "ConditionalExpression" && (t[t.length - 1].value = e.value);
|
|
3761
3761
|
}, r.prototype.stepContinueStatement = function(t, e, i) {
|
|
3762
|
-
var
|
|
3763
|
-
this.unwind(r.Completion.CONTINUE, void 0,
|
|
3762
|
+
var s = i.label && i.label.name;
|
|
3763
|
+
this.unwind(r.Completion.CONTINUE, void 0, s);
|
|
3764
3764
|
}, r.prototype.stepDebuggerStatement = function(t, e, i) {
|
|
3765
3765
|
t.pop();
|
|
3766
3766
|
}, r.prototype.stepDoWhileStatement = function(t, e, i) {
|
|
@@ -3773,9 +3773,9 @@ function rf() {
|
|
|
3773
3773
|
}, r.prototype.stepEmptyStatement = function(t, e, i) {
|
|
3774
3774
|
t.pop();
|
|
3775
3775
|
}, r.prototype.stepEvalProgram_ = function(t, e, i) {
|
|
3776
|
-
var
|
|
3777
|
-
if (
|
|
3778
|
-
return e.n_ =
|
|
3776
|
+
var s = e.n_ || 0, u = i.body[s];
|
|
3777
|
+
if (u)
|
|
3778
|
+
return e.n_ = s + 1, new r.State(u, e.scope);
|
|
3779
3779
|
t.pop(), t[t.length - 1].value = this.value;
|
|
3780
3780
|
}, r.prototype.stepExpressionStatement = function(t, e, i) {
|
|
3781
3781
|
if (!e.done_)
|
|
@@ -3793,30 +3793,30 @@ function rf() {
|
|
|
3793
3793
|
e: for (; ; ) {
|
|
3794
3794
|
if (e.object_ instanceof r.Object)
|
|
3795
3795
|
for (e.props_ || (e.props_ = Object.getOwnPropertyNames(e.object_.properties)); ; ) {
|
|
3796
|
-
var
|
|
3797
|
-
if (
|
|
3796
|
+
var s = e.props_.shift();
|
|
3797
|
+
if (s === void 0)
|
|
3798
3798
|
break;
|
|
3799
3799
|
if (Object.prototype.hasOwnProperty.call(
|
|
3800
3800
|
e.object_.properties,
|
|
3801
|
-
|
|
3802
|
-
) && !e.visited_[
|
|
3801
|
+
s
|
|
3802
|
+
) && !e.visited_[s] && (e.visited_[s] = !0, !!Object.prototype.propertyIsEnumerable.call(
|
|
3803
3803
|
e.object_.properties,
|
|
3804
|
-
|
|
3804
|
+
s
|
|
3805
3805
|
))) {
|
|
3806
|
-
e.name_ =
|
|
3806
|
+
e.name_ = s;
|
|
3807
3807
|
break e;
|
|
3808
3808
|
}
|
|
3809
3809
|
}
|
|
3810
3810
|
else if (e.object_ !== null && e.object_ !== void 0)
|
|
3811
3811
|
for (e.props_ || (e.props_ = Object.getOwnPropertyNames(e.object_)); ; ) {
|
|
3812
|
-
var
|
|
3813
|
-
if (
|
|
3812
|
+
var s = e.props_.shift();
|
|
3813
|
+
if (s === void 0)
|
|
3814
3814
|
break;
|
|
3815
|
-
if (e.visited_[
|
|
3815
|
+
if (e.visited_[s] = !0, !!Object.prototype.propertyIsEnumerable.call(
|
|
3816
3816
|
e.object_,
|
|
3817
|
-
|
|
3817
|
+
s
|
|
3818
3818
|
)) {
|
|
3819
|
-
e.name_ =
|
|
3819
|
+
e.name_ = s;
|
|
3820
3820
|
break e;
|
|
3821
3821
|
}
|
|
3822
3822
|
}
|
|
@@ -3827,12 +3827,12 @@ function rf() {
|
|
|
3827
3827
|
}
|
|
3828
3828
|
if (!e.doneVariable_) {
|
|
3829
3829
|
e.doneVariable_ = !0;
|
|
3830
|
-
var
|
|
3831
|
-
if (
|
|
3832
|
-
e.variable_ = [r.SCOPE_REFERENCE,
|
|
3830
|
+
var u = i.left;
|
|
3831
|
+
if (u.type === "VariableDeclaration")
|
|
3832
|
+
e.variable_ = [r.SCOPE_REFERENCE, u.declarations[0].id.name];
|
|
3833
3833
|
else {
|
|
3834
3834
|
e.variable_ = null;
|
|
3835
|
-
var l = new r.State(
|
|
3835
|
+
var l = new r.State(u, e.scope);
|
|
3836
3836
|
return l.components = !0, l;
|
|
3837
3837
|
}
|
|
3838
3838
|
}
|
|
@@ -3869,9 +3869,9 @@ function rf() {
|
|
|
3869
3869
|
t.pop();
|
|
3870
3870
|
}, r.prototype.stepFunctionExpression = function(t, e, i) {
|
|
3871
3871
|
t.pop(), e = t[t.length - 1];
|
|
3872
|
-
var
|
|
3873
|
-
i.id && (
|
|
3874
|
-
|
|
3872
|
+
var s = e.scope;
|
|
3873
|
+
i.id && (s = this.createSpecialScope(s)), e.value = this.createFunction(i, s, e.destinationName), i.id && this.setProperty(
|
|
3874
|
+
s.object,
|
|
3875
3875
|
i.id.name,
|
|
3876
3876
|
e.value,
|
|
3877
3877
|
r.READONLY_DESCRIPTOR
|
|
@@ -3881,29 +3881,29 @@ function rf() {
|
|
|
3881
3881
|
t[t.length - 1].value = [r.SCOPE_REFERENCE, i.name];
|
|
3882
3882
|
return;
|
|
3883
3883
|
}
|
|
3884
|
-
var
|
|
3884
|
+
var s = this.getValueFromScope(i.name);
|
|
3885
3885
|
if (this.getterStep_) {
|
|
3886
|
-
var
|
|
3886
|
+
var u = (
|
|
3887
3887
|
/** @type {!Interpreter.Object} */
|
|
3888
|
-
|
|
3888
|
+
s
|
|
3889
3889
|
);
|
|
3890
|
-
return this.createGetter_(
|
|
3890
|
+
return this.createGetter_(u, this.globalObject);
|
|
3891
3891
|
}
|
|
3892
|
-
t[t.length - 1].value =
|
|
3892
|
+
t[t.length - 1].value = s;
|
|
3893
3893
|
}, r.prototype.stepIfStatement = r.prototype.stepConditionalExpression, r.prototype.stepLabeledStatement = function(t, e, i) {
|
|
3894
3894
|
t.pop();
|
|
3895
|
-
var
|
|
3896
|
-
|
|
3897
|
-
var
|
|
3898
|
-
return
|
|
3895
|
+
var s = e.labels || [];
|
|
3896
|
+
s.push(i.label.name);
|
|
3897
|
+
var u = new r.State(i.body, e.scope);
|
|
3898
|
+
return u.labels = s, u;
|
|
3899
3899
|
}, r.prototype.stepLiteral = function(t, e, i) {
|
|
3900
3900
|
t.pop();
|
|
3901
|
-
var
|
|
3902
|
-
if (
|
|
3903
|
-
var
|
|
3904
|
-
this.populateRegExp(
|
|
3901
|
+
var s = i.value;
|
|
3902
|
+
if (s instanceof RegExp) {
|
|
3903
|
+
var u = this.createObjectProto(this.REGEXP_PROTO);
|
|
3904
|
+
this.populateRegExp(u, s), s = u;
|
|
3905
3905
|
}
|
|
3906
|
-
t[t.length - 1].value =
|
|
3906
|
+
t[t.length - 1].value = s;
|
|
3907
3907
|
}, r.prototype.stepLogicalExpression = function(t, e, i) {
|
|
3908
3908
|
if (i.operator !== "&&" && i.operator !== "||")
|
|
3909
3909
|
throw SyntaxError("Unknown logical operator: " + i.operator);
|
|
@@ -3918,43 +3918,43 @@ function rf() {
|
|
|
3918
3918
|
}, r.prototype.stepMemberExpression = function(t, e, i) {
|
|
3919
3919
|
if (!e.doneObject_)
|
|
3920
3920
|
return e.doneObject_ = !0, new r.State(i.object, e.scope);
|
|
3921
|
-
var
|
|
3921
|
+
var s;
|
|
3922
3922
|
if (!i.computed)
|
|
3923
|
-
e.object_ = e.value,
|
|
3923
|
+
e.object_ = e.value, s = i.property.name;
|
|
3924
3924
|
else if (e.doneProperty_)
|
|
3925
|
-
|
|
3925
|
+
s = e.value;
|
|
3926
3926
|
else
|
|
3927
3927
|
return e.object_ = e.value, e.doneProperty_ = !0, new r.State(i.property, e.scope);
|
|
3928
3928
|
if (t.pop(), e.components)
|
|
3929
|
-
t[t.length - 1].value = [e.object_,
|
|
3929
|
+
t[t.length - 1].value = [e.object_, s];
|
|
3930
3930
|
else {
|
|
3931
|
-
var
|
|
3931
|
+
var u = this.getProperty(e.object_, s);
|
|
3932
3932
|
if (this.getterStep_) {
|
|
3933
3933
|
var l = (
|
|
3934
3934
|
/** @type {!Interpreter.Object} */
|
|
3935
|
-
|
|
3935
|
+
u
|
|
3936
3936
|
);
|
|
3937
3937
|
return this.createGetter_(l, e.object_);
|
|
3938
3938
|
}
|
|
3939
|
-
t[t.length - 1].value =
|
|
3939
|
+
t[t.length - 1].value = u;
|
|
3940
3940
|
}
|
|
3941
3941
|
}, r.prototype.stepNewExpression = r.prototype.stepCallExpression, r.prototype.stepObjectExpression = function(t, e, i) {
|
|
3942
|
-
var
|
|
3942
|
+
var s = e.n_ || 0, u = i.properties[s];
|
|
3943
3943
|
if (!e.object_)
|
|
3944
3944
|
e.object_ = this.createObjectProto(this.OBJECT_PROTO), e.properties_ = /* @__PURE__ */ Object.create(null);
|
|
3945
3945
|
else {
|
|
3946
3946
|
var l = e.destinationName;
|
|
3947
|
-
e.properties_[l] || (e.properties_[l] = {}), e.properties_[l][
|
|
3947
|
+
e.properties_[l] || (e.properties_[l] = {}), e.properties_[l][u.kind] = e.value, e.n_ = ++s, u = i.properties[s];
|
|
3948
3948
|
}
|
|
3949
|
-
if (
|
|
3950
|
-
var o =
|
|
3949
|
+
if (u) {
|
|
3950
|
+
var o = u.key;
|
|
3951
3951
|
if (o.type === "Identifier")
|
|
3952
3952
|
var l = o.name;
|
|
3953
3953
|
else if (o.type === "Literal")
|
|
3954
3954
|
var l = o.value;
|
|
3955
3955
|
else
|
|
3956
3956
|
throw SyntaxError("Unknown object structure: " + o.type);
|
|
3957
|
-
return e.destinationName = l, new r.State(
|
|
3957
|
+
return e.destinationName = l, new r.State(u.value, e.scope);
|
|
3958
3958
|
}
|
|
3959
3959
|
for (var o in e.properties_) {
|
|
3960
3960
|
var p = e.properties_[o];
|
|
@@ -3976,42 +3976,42 @@ function rf() {
|
|
|
3976
3976
|
}
|
|
3977
3977
|
t.pop(), t[t.length - 1].value = e.object_;
|
|
3978
3978
|
}, r.prototype.stepProgram = function(t, e, i) {
|
|
3979
|
-
var
|
|
3980
|
-
if (
|
|
3981
|
-
return e.done = !1, new r.State(
|
|
3979
|
+
var s = i.body.shift();
|
|
3980
|
+
if (s)
|
|
3981
|
+
return e.done = !1, new r.State(s, e.scope);
|
|
3982
3982
|
e.done = !0;
|
|
3983
3983
|
}, r.prototype.stepReturnStatement = function(t, e, i) {
|
|
3984
3984
|
if (i.argument && !e.done_)
|
|
3985
3985
|
return e.done_ = !0, new r.State(i.argument, e.scope);
|
|
3986
3986
|
this.unwind(r.Completion.RETURN, e.value, void 0);
|
|
3987
3987
|
}, r.prototype.stepSequenceExpression = function(t, e, i) {
|
|
3988
|
-
var
|
|
3989
|
-
if (
|
|
3990
|
-
return e.n_ =
|
|
3988
|
+
var s = e.n_ || 0, u = i.expressions[s];
|
|
3989
|
+
if (u)
|
|
3990
|
+
return e.n_ = s + 1, new r.State(u, e.scope);
|
|
3991
3991
|
t.pop(), t[t.length - 1].value = e.value;
|
|
3992
3992
|
}, r.prototype.stepSwitchStatement = function(t, e, i) {
|
|
3993
3993
|
if (!e.test_)
|
|
3994
3994
|
return e.test_ = 1, new r.State(i.discriminant, e.scope);
|
|
3995
3995
|
for (e.test_ === 1 && (e.test_ = 2, e.switchValue_ = e.value, e.defaultCase_ = -1); ; ) {
|
|
3996
|
-
var
|
|
3997
|
-
if (!e.matched_ &&
|
|
3998
|
-
e.defaultCase_ =
|
|
3996
|
+
var s = e.index_ || 0, u = i.cases[s];
|
|
3997
|
+
if (!e.matched_ && u && !u.test) {
|
|
3998
|
+
e.defaultCase_ = s, e.index_ = s + 1;
|
|
3999
3999
|
continue;
|
|
4000
4000
|
}
|
|
4001
|
-
if (!
|
|
4001
|
+
if (!u && !e.matched_ && e.defaultCase_ !== -1) {
|
|
4002
4002
|
e.matched_ = !0, e.index_ = e.defaultCase_;
|
|
4003
4003
|
continue;
|
|
4004
4004
|
}
|
|
4005
|
-
if (
|
|
4006
|
-
if (!e.matched_ && !e.tested_ &&
|
|
4007
|
-
return e.tested_ = !0, new r.State(
|
|
4005
|
+
if (u) {
|
|
4006
|
+
if (!e.matched_ && !e.tested_ && u.test)
|
|
4007
|
+
return e.tested_ = !0, new r.State(u.test, e.scope);
|
|
4008
4008
|
if (e.matched_ || e.value === e.switchValue_) {
|
|
4009
4009
|
e.matched_ = !0;
|
|
4010
4010
|
var l = e.n_ || 0;
|
|
4011
|
-
if (
|
|
4012
|
-
return e.isSwitch = !0, e.n_ = l + 1, new r.State(
|
|
4011
|
+
if (u.consequent[l])
|
|
4012
|
+
return e.isSwitch = !0, e.n_ = l + 1, new r.State(u.consequent[l], e.scope);
|
|
4013
4013
|
}
|
|
4014
|
-
e.tested_ = !1, e.n_ = 0, e.index_ =
|
|
4014
|
+
e.tested_ = !1, e.n_ = 0, e.index_ = s + 1;
|
|
4015
4015
|
} else {
|
|
4016
4016
|
t.pop();
|
|
4017
4017
|
return;
|
|
@@ -4029,8 +4029,8 @@ function rf() {
|
|
|
4029
4029
|
return e.doneBlock_ = !0, new r.State(i.block, e.scope);
|
|
4030
4030
|
if (e.cv && e.cv.type === r.Completion.THROW && !e.doneHandler_ && i.handler) {
|
|
4031
4031
|
e.doneHandler_ = !0;
|
|
4032
|
-
var
|
|
4033
|
-
return this.setProperty(
|
|
4032
|
+
var s = this.createSpecialScope(e.scope);
|
|
4033
|
+
return this.setProperty(s.object, i.handler.param.name, e.cv.value), e.cv = void 0, new r.State(i.handler.body, s);
|
|
4034
4034
|
}
|
|
4035
4035
|
if (!e.doneFinalizer_ && i.finalizer)
|
|
4036
4036
|
return e.doneFinalizer_ = !0, new r.State(i.finalizer, e.scope);
|
|
@@ -4038,63 +4038,63 @@ function rf() {
|
|
|
4038
4038
|
}, r.prototype.stepUnaryExpression = function(t, e, i) {
|
|
4039
4039
|
if (!e.done_) {
|
|
4040
4040
|
e.done_ = !0;
|
|
4041
|
-
var
|
|
4042
|
-
return
|
|
4041
|
+
var s = new r.State(i.argument, e.scope);
|
|
4042
|
+
return s.components = i.operator === "delete", s;
|
|
4043
4043
|
}
|
|
4044
4044
|
t.pop();
|
|
4045
|
-
var
|
|
4045
|
+
var u = e.value;
|
|
4046
4046
|
switch (i.operator) {
|
|
4047
4047
|
case "-":
|
|
4048
|
-
|
|
4048
|
+
u = -u;
|
|
4049
4049
|
break;
|
|
4050
4050
|
case "+":
|
|
4051
|
-
|
|
4051
|
+
u = +u;
|
|
4052
4052
|
break;
|
|
4053
4053
|
case "!":
|
|
4054
|
-
|
|
4054
|
+
u = !u;
|
|
4055
4055
|
break;
|
|
4056
4056
|
case "~":
|
|
4057
|
-
|
|
4057
|
+
u = ~u;
|
|
4058
4058
|
break;
|
|
4059
4059
|
case "delete":
|
|
4060
4060
|
var l = !0;
|
|
4061
|
-
if (Array.isArray(
|
|
4062
|
-
var o =
|
|
4061
|
+
if (Array.isArray(u)) {
|
|
4062
|
+
var o = u[0];
|
|
4063
4063
|
o === r.SCOPE_REFERENCE && (o = e.scope);
|
|
4064
|
-
var p = String(
|
|
4064
|
+
var p = String(u[1]);
|
|
4065
4065
|
try {
|
|
4066
4066
|
delete o.properties[p];
|
|
4067
4067
|
} catch {
|
|
4068
4068
|
e.scope.strict ? this.throwException(this.TYPE_ERROR, "Cannot delete property '" + p + "' of '" + o + "'") : l = !1;
|
|
4069
4069
|
}
|
|
4070
4070
|
}
|
|
4071
|
-
|
|
4071
|
+
u = l;
|
|
4072
4072
|
break;
|
|
4073
4073
|
case "typeof":
|
|
4074
|
-
|
|
4074
|
+
u = u && u.class === "Function" ? "function" : typeof u;
|
|
4075
4075
|
break;
|
|
4076
4076
|
case "void":
|
|
4077
|
-
|
|
4077
|
+
u = void 0;
|
|
4078
4078
|
break;
|
|
4079
4079
|
default:
|
|
4080
4080
|
throw SyntaxError("Unknown unary operator: " + i.operator);
|
|
4081
4081
|
}
|
|
4082
|
-
t[t.length - 1].value =
|
|
4082
|
+
t[t.length - 1].value = u;
|
|
4083
4083
|
}, r.prototype.stepUpdateExpression = function(t, e, i) {
|
|
4084
4084
|
if (!e.doneLeft_) {
|
|
4085
4085
|
e.doneLeft_ = !0;
|
|
4086
|
-
var
|
|
4087
|
-
return
|
|
4086
|
+
var s = new r.State(i.argument, e.scope);
|
|
4087
|
+
return s.components = !0, s;
|
|
4088
4088
|
}
|
|
4089
4089
|
if (e.leftSide_ || (e.leftSide_ = e.value), e.doneGetter_ && (e.leftValue_ = e.value), !e.doneGetter_) {
|
|
4090
4090
|
var l = this.getValue(e.leftSide_);
|
|
4091
4091
|
if (e.leftValue_ = l, this.getterStep_) {
|
|
4092
4092
|
e.doneGetter_ = !0;
|
|
4093
|
-
var
|
|
4093
|
+
var u = (
|
|
4094
4094
|
/** @type {!Interpreter.Object} */
|
|
4095
4095
|
l
|
|
4096
4096
|
);
|
|
4097
|
-
return this.createGetter_(
|
|
4097
|
+
return this.createGetter_(u, e.leftSide_);
|
|
4098
4098
|
}
|
|
4099
4099
|
}
|
|
4100
4100
|
if (e.doneSetter_) {
|
|
@@ -4113,19 +4113,19 @@ function rf() {
|
|
|
4113
4113
|
return e.doneSetter_ = !0, e.setterValue_ = p, this.createSetter_(m, e.leftSide_, o);
|
|
4114
4114
|
t.pop(), t[t.length - 1].value = p;
|
|
4115
4115
|
}, r.prototype.stepVariableDeclaration = function(t, e, i) {
|
|
4116
|
-
var
|
|
4117
|
-
for (e.init_ && l && (this.setValueToScope(l.id.name, e.value), e.init_ = !1, l =
|
|
4116
|
+
var s = i.declarations, u = e.n_ || 0, l = s[u];
|
|
4117
|
+
for (e.init_ && l && (this.setValueToScope(l.id.name, e.value), e.init_ = !1, l = s[++u]); l; ) {
|
|
4118
4118
|
if (l.init)
|
|
4119
|
-
return e.n_ =
|
|
4120
|
-
l =
|
|
4119
|
+
return e.n_ = u, e.init_ = !0, e.destinationName = l.id.name, new r.State(l.init, e.scope);
|
|
4120
|
+
l = s[++u];
|
|
4121
4121
|
}
|
|
4122
4122
|
t.pop();
|
|
4123
4123
|
}, r.prototype.stepWithStatement = function(t, e, i) {
|
|
4124
4124
|
if (!e.doneObject_)
|
|
4125
4125
|
return e.doneObject_ = !0, new r.State(i.object, e.scope);
|
|
4126
4126
|
t.pop();
|
|
4127
|
-
var
|
|
4128
|
-
return new r.State(i.body,
|
|
4127
|
+
var s = this.createSpecialScope(e.scope, e.value);
|
|
4128
|
+
return new r.State(i.body, s);
|
|
4129
4129
|
}, r.prototype.stepWhileStatement = r.prototype.stepDoWhileStatement, r.nativeGlobal.Interpreter = r, r.prototype.step = r.prototype.step, r.prototype.run = r.prototype.run, r.prototype.getStatus = r.prototype.getStatus, r.prototype.appendCode = r.prototype.appendCode, r.prototype.createObject = r.prototype.createObject, r.prototype.createObjectProto = r.prototype.createObjectProto, r.prototype.createNativeFunction = r.prototype.createNativeFunction, r.prototype.createAsyncFunction = r.prototype.createAsyncFunction, r.prototype.getProperty = r.prototype.getProperty, r.prototype.setProperty = r.prototype.setProperty, r.prototype.nativeToPseudo = r.prototype.nativeToPseudo, r.prototype.pseudoToNative = r.prototype.pseudoToNative, r.prototype.getGlobalScope = r.prototype.getGlobalScope, r.prototype.setGlobalScope = r.prototype.setGlobalScope, r.prototype.getStateStack = r.prototype.getStateStack, r.prototype.setStateStack = r.prototype.setStateStack, r.Status = r.Status, r.VALUE_IN_DESCRIPTOR = r.VALUE_IN_DESCRIPTOR, y.exports = {
|
|
4130
4130
|
Interpreter: r
|
|
4131
4131
|
};
|
|
@@ -4144,9 +4144,9 @@ function rf() {
|
|
|
4144
4144
|
S.version = "0.5.0";
|
|
4145
4145
|
var r, t = "", e, i;
|
|
4146
4146
|
S.parse = function(f, d) {
|
|
4147
|
-
return t = String(f), e = t.length,
|
|
4147
|
+
return t = String(f), e = t.length, u(d), _o(), Io(r.program);
|
|
4148
4148
|
};
|
|
4149
|
-
var
|
|
4149
|
+
var s = {
|
|
4150
4150
|
// JS-Interpreter change:
|
|
4151
4151
|
// `ecmaVersion` option has been removed along with all cases where
|
|
4152
4152
|
// it is checked. In this version of Acorn it was limited to 3 or 5,
|
|
@@ -4204,28 +4204,28 @@ function rf() {
|
|
|
4204
4204
|
// `locations` is on or off.
|
|
4205
4205
|
directSourceFile: null
|
|
4206
4206
|
};
|
|
4207
|
-
function
|
|
4207
|
+
function u(f) {
|
|
4208
4208
|
r = f || {};
|
|
4209
|
-
for (var d in
|
|
4210
|
-
Object.prototype.hasOwnProperty.call(r, d) || (r[d] =
|
|
4209
|
+
for (var d in s)
|
|
4210
|
+
Object.prototype.hasOwnProperty.call(r, d) || (r[d] = s[d]);
|
|
4211
4211
|
i = r.sourceFile;
|
|
4212
4212
|
}
|
|
4213
4213
|
var l = function(f, d) {
|
|
4214
|
-
for (var
|
|
4214
|
+
for (var g = 1, x = 0; ; ) {
|
|
4215
4215
|
yt.lastIndex = x;
|
|
4216
4216
|
var A = yt.exec(f);
|
|
4217
4217
|
if (A && A.index < d)
|
|
4218
|
-
++
|
|
4218
|
+
++g, x = A.index + A[0].length;
|
|
4219
4219
|
else
|
|
4220
4220
|
break;
|
|
4221
4221
|
}
|
|
4222
|
-
return { line:
|
|
4222
|
+
return { line: g, column: d - x };
|
|
4223
4223
|
}, o = 0, p = 0, m = 0, b, O, E, N, w, I, P, q = 0, ie = 0, Le, Te, V, Z;
|
|
4224
4224
|
function D(f, d) {
|
|
4225
|
-
var
|
|
4226
|
-
d += " (" +
|
|
4225
|
+
var g = l(t, f);
|
|
4226
|
+
d += " (" + g.line + ":" + g.column + ")";
|
|
4227
4227
|
var x = new SyntaxError(d);
|
|
4228
|
-
throw x.pos = f, x.loc =
|
|
4228
|
+
throw x.pos = f, x.loc = g, x.raisedAt = o, x;
|
|
4229
4229
|
}
|
|
4230
4230
|
var no = [], ct = { type: "num" }, $r = { type: "regexp" }, Ft = { type: "string" }, De = { type: "name" }, Ut = { type: "eof" }, jt = { keyword: "break" }, $t = { keyword: "case", beforeExpr: !0 }, Br = { keyword: "catch" }, Vr = { keyword: "continue" }, Gr = { keyword: "debugger" }, Wr = { keyword: "default" }, Yr = { keyword: "do", isLoop: !0 }, zr = { keyword: "else", beforeExpr: !0 }, Xr = { keyword: "finally" }, Hr = { keyword: "for", isLoop: !0 }, Bt = { keyword: "function" }, Jr = { keyword: "if" }, Kr = { keyword: "return", beforeExpr: !0 }, Vt = { keyword: "switch" }, qr = { keyword: "throw", beforeExpr: !0 }, Zr = { keyword: "try" }, Gt = { keyword: "var" }, Wt = { keyword: "while", isLoop: !0 }, Qr = { keyword: "with" }, en = { keyword: "new", beforeExpr: !0 }, tn = { keyword: "this" }, rn = { keyword: "null", atomValue: null }, nn = { keyword: "true", atomValue: !0 }, on = { keyword: "false", atomValue: !1 }, ft = { keyword: "in", binop: 7, beforeExpr: !0 }, io = {
|
|
4231
4231
|
break: jt,
|
|
@@ -4257,38 +4257,38 @@ function rf() {
|
|
|
4257
4257
|
typeof: { keyword: "typeof", prefix: !0, beforeExpr: !0 },
|
|
4258
4258
|
void: { keyword: "void", prefix: !0, beforeExpr: !0 },
|
|
4259
4259
|
delete: { keyword: "delete", prefix: !0, beforeExpr: !0 }
|
|
4260
|
-
}, Yt = { type: "[", beforeExpr: !0 }, zt = { type: "]" }, Xe = { type: "{", beforeExpr: !0 }, Me = { type: "}" }, fe = { type: "(", beforeExpr: !0 }, ue = { type: ")" },
|
|
4260
|
+
}, Yt = { type: "[", beforeExpr: !0 }, zt = { type: "]" }, Xe = { type: "{", beforeExpr: !0 }, Me = { type: "}" }, fe = { type: "(", beforeExpr: !0 }, ue = { type: ")" }, be = { type: ",", beforeExpr: !0 }, pe = { type: ";", beforeExpr: !0 }, He = { type: ":", beforeExpr: !0 }, an = { type: "." }, sn = { type: "?", beforeExpr: !0 }, un = { binop: 10, beforeExpr: !0 }, ln = { isAssign: !0, beforeExpr: !0 }, Oe = { isAssign: !0, beforeExpr: !0 }, oo = { postfix: !0, prefix: !0, isUpdate: !0 }, cn = { prefix: !0, beforeExpr: !0 }, fn = { binop: 1, beforeExpr: !0 }, pn = { binop: 2, beforeExpr: !0 }, ao = { binop: 3, beforeExpr: !0 }, so = { binop: 4, beforeExpr: !0 }, uo = { binop: 5, beforeExpr: !0 }, lo = { binop: 6, beforeExpr: !0 }, co = { binop: 7, beforeExpr: !0 }, fo = { binop: 8, beforeExpr: !0 }, po = { binop: 9, prefix: !0, beforeExpr: !0 }, ho = { binop: 10, beforeExpr: !0 };
|
|
4261
4261
|
function pt(f) {
|
|
4262
|
-
for (var d = f.split(" "),
|
|
4263
|
-
|
|
4262
|
+
for (var d = f.split(" "), g = /* @__PURE__ */ Object.create(null), x = 0; x < d.length; x++)
|
|
4263
|
+
g[d[x]] = !0;
|
|
4264
4264
|
return function(A) {
|
|
4265
|
-
return
|
|
4265
|
+
return g[A] || !1;
|
|
4266
4266
|
};
|
|
4267
4267
|
}
|
|
4268
|
-
var yo = pt("class enum extends super const export import"), dn = pt("implements interface let package private protected public static yield"), dt = pt("eval arguments"), mo = pt("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), vo = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, hn = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", bo = "̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_", yn = new RegExp("[" + hn + "]"),
|
|
4268
|
+
var yo = pt("class enum extends super const export import"), dn = pt("implements interface let package private protected public static yield"), dt = pt("eval arguments"), mo = pt("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), vo = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, hn = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", bo = "̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_", yn = new RegExp("[" + hn + "]"), go = new RegExp("[" + hn + bo + "]"), ht = /[\n\r\u2028\u2029]/, yt = /\r\n|[\n\r\u2028\u2029]/g, mt = function(f) {
|
|
4269
4269
|
return f < 65 ? f === 36 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 && yn.test(String.fromCharCode(f));
|
|
4270
4270
|
}, mn = function(f) {
|
|
4271
|
-
return f < 48 ? f === 36 : f < 58 ? !0 : f < 65 ? !1 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 &&
|
|
4271
|
+
return f < 48 ? f === 36 : f < 58 ? !0 : f < 65 ? !1 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 && go.test(String.fromCharCode(f));
|
|
4272
4272
|
};
|
|
4273
4273
|
function Ne() {
|
|
4274
4274
|
this.line = I, this.column = o - P;
|
|
4275
4275
|
}
|
|
4276
|
-
function
|
|
4276
|
+
function _o() {
|
|
4277
4277
|
I = 1, o = P = 0, w = !0, Je();
|
|
4278
4278
|
}
|
|
4279
4279
|
function Y(f, d) {
|
|
4280
4280
|
m = o, r.locations && (O = new Ne()), E = f, Je(), N = d, w = f.beforeExpr;
|
|
4281
4281
|
}
|
|
4282
4282
|
function Eo() {
|
|
4283
|
-
var f = r.onComment && r.locations && new Ne(), d = o,
|
|
4284
|
-
if (
|
|
4283
|
+
var f = r.onComment && r.locations && new Ne(), d = o, g = t.indexOf("*/", o += 2);
|
|
4284
|
+
if (g === -1 && D(o - 2, "Unterminated comment"), o = g + 2, r.locations) {
|
|
4285
4285
|
yt.lastIndex = d;
|
|
4286
4286
|
for (var x; (x = yt.exec(t)) && x.index < o; )
|
|
4287
4287
|
++I, P = x.index + x[0].length;
|
|
4288
4288
|
}
|
|
4289
4289
|
r.onComment && r.onComment(
|
|
4290
4290
|
!0,
|
|
4291
|
-
t.slice(d + 2,
|
|
4291
|
+
t.slice(d + 2, g),
|
|
4292
4292
|
d,
|
|
4293
4293
|
o,
|
|
4294
4294
|
f,
|
|
@@ -4296,8 +4296,8 @@ function rf() {
|
|
|
4296
4296
|
);
|
|
4297
4297
|
}
|
|
4298
4298
|
function Xt() {
|
|
4299
|
-
for (var f = o, d = r.onComment && r.locations && new Ne(),
|
|
4300
|
-
++o,
|
|
4299
|
+
for (var f = o, d = r.onComment && r.locations && new Ne(), g = t.charCodeAt(o += 2); o < e && g !== 10 && g !== 13 && g !== 8232 && g !== 8233; )
|
|
4300
|
+
++o, g = t.charCodeAt(o);
|
|
4301
4301
|
r.onComment && r.onComment(
|
|
4302
4302
|
!1,
|
|
4303
4303
|
t.slice(f + 2, o),
|
|
@@ -4366,16 +4366,16 @@ function rf() {
|
|
|
4366
4366
|
} else d === 61 ? z(Oe, 2) : z(po, 1);
|
|
4367
4367
|
}
|
|
4368
4368
|
function wo(f) {
|
|
4369
|
-
var d = t.charCodeAt(o + 1),
|
|
4369
|
+
var d = t.charCodeAt(o + 1), g = 1;
|
|
4370
4370
|
if (d === f) {
|
|
4371
|
-
|
|
4371
|
+
g = f === 62 && t.charCodeAt(o + 2) === 62 ? 3 : 2, t.charCodeAt(o + g) === 61 ? z(Oe, g + 1) : z(fo, g);
|
|
4372
4372
|
return;
|
|
4373
4373
|
}
|
|
4374
4374
|
if (d === 33 && f === 60 && t.charCodeAt(o + 2) === 45 && t.charCodeAt(o + 3) === 45) {
|
|
4375
4375
|
o += 4, Xt(), Je(), Fe();
|
|
4376
4376
|
return;
|
|
4377
4377
|
}
|
|
4378
|
-
d === 61 && (
|
|
4378
|
+
d === 61 && (g = t.charCodeAt(o + 2) === 61 ? 3 : 2), z(co, g);
|
|
4379
4379
|
}
|
|
4380
4380
|
function Po(f) {
|
|
4381
4381
|
var d = t.charCodeAt(o + 1);
|
|
@@ -4395,7 +4395,7 @@ function rf() {
|
|
|
4395
4395
|
case 59:
|
|
4396
4396
|
return ++o, Y(pe);
|
|
4397
4397
|
case 44:
|
|
4398
|
-
return ++o, Y(
|
|
4398
|
+
return ++o, Y(be);
|
|
4399
4399
|
case 91:
|
|
4400
4400
|
return ++o, Y(Yt);
|
|
4401
4401
|
case 93:
|
|
@@ -4461,24 +4461,24 @@ function rf() {
|
|
|
4461
4461
|
if (o >= e) return Y(Ut);
|
|
4462
4462
|
var d = t.charCodeAt(o);
|
|
4463
4463
|
if (mt(d) || d === 92)
|
|
4464
|
-
return
|
|
4465
|
-
var
|
|
4466
|
-
if (
|
|
4464
|
+
return _n();
|
|
4465
|
+
var g = Co(d);
|
|
4466
|
+
if (g === !1) {
|
|
4467
4467
|
var x = String.fromCharCode(d);
|
|
4468
4468
|
if (x === "\\" || yn.test(x))
|
|
4469
|
-
return
|
|
4469
|
+
return _n();
|
|
4470
4470
|
D(o, "Unexpected character '" + x + "'");
|
|
4471
4471
|
}
|
|
4472
4472
|
}
|
|
4473
4473
|
function z(f, d) {
|
|
4474
|
-
var
|
|
4475
|
-
o += d, Y(f,
|
|
4474
|
+
var g = t.slice(o, o + d);
|
|
4475
|
+
o += d, Y(f, g);
|
|
4476
4476
|
}
|
|
4477
4477
|
function vn() {
|
|
4478
|
-
for (var f, d,
|
|
4479
|
-
o >= e && D(
|
|
4478
|
+
for (var f, d, g = o; ; ) {
|
|
4479
|
+
o >= e && D(g, "Unterminated regexp");
|
|
4480
4480
|
var x = t.charAt(o);
|
|
4481
|
-
if (ht.test(x) && D(
|
|
4481
|
+
if (ht.test(x) && D(g, "Unterminated regexp"), f)
|
|
4482
4482
|
f = !1;
|
|
4483
4483
|
else {
|
|
4484
4484
|
if (x === "[")
|
|
@@ -4491,24 +4491,24 @@ function rf() {
|
|
|
4491
4491
|
}
|
|
4492
4492
|
++o;
|
|
4493
4493
|
}
|
|
4494
|
-
var A = t.slice(
|
|
4494
|
+
var A = t.slice(g, o);
|
|
4495
4495
|
++o;
|
|
4496
|
-
var C =
|
|
4497
|
-
C && !/^[gmi]*$/.test(C) && D(
|
|
4496
|
+
var C = gn();
|
|
4497
|
+
C && !/^[gmi]*$/.test(C) && D(g, "Invalid regexp flag");
|
|
4498
4498
|
try {
|
|
4499
4499
|
var L = new RegExp(A, C);
|
|
4500
4500
|
} catch ($) {
|
|
4501
|
-
throw $ instanceof SyntaxError && D(
|
|
4501
|
+
throw $ instanceof SyntaxError && D(g, $.message), $;
|
|
4502
4502
|
}
|
|
4503
4503
|
Y($r, L);
|
|
4504
4504
|
}
|
|
4505
4505
|
function Ke(f, d) {
|
|
4506
|
-
for (var
|
|
4506
|
+
for (var g = o, x = 0, A = d === void 0 ? 1 / 0 : d, C = 0; C < A; ++C) {
|
|
4507
4507
|
var L = t.charCodeAt(o), $;
|
|
4508
4508
|
if (L >= 97 ? $ = L - 97 + 10 : L >= 65 ? $ = L - 65 + 10 : L >= 48 && L <= 57 ? $ = L - 48 : $ = 1 / 0, $ >= f) break;
|
|
4509
4509
|
++o, x = x * f + $;
|
|
4510
4510
|
}
|
|
4511
|
-
return o ===
|
|
4511
|
+
return o === g || d !== void 0 && o - g !== d ? null : x;
|
|
4512
4512
|
}
|
|
4513
4513
|
function ko() {
|
|
4514
4514
|
o += 2;
|
|
@@ -4516,31 +4516,31 @@ function rf() {
|
|
|
4516
4516
|
f === null && D(p + 2, "Expected hexadecimal number"), mt(t.charCodeAt(o)) && D(o, "Identifier directly after number"), Y(ct, f);
|
|
4517
4517
|
}
|
|
4518
4518
|
function bn(f) {
|
|
4519
|
-
var d = o,
|
|
4520
|
-
!f && Ke(10) === null && D(d, "Invalid number"), t.charCodeAt(o) === 46 && (++o, Ke(10),
|
|
4519
|
+
var d = o, g = !1, x = t.charCodeAt(o) === 48;
|
|
4520
|
+
!f && Ke(10) === null && D(d, "Invalid number"), t.charCodeAt(o) === 46 && (++o, Ke(10), g = !0);
|
|
4521
4521
|
var A = t.charCodeAt(o);
|
|
4522
|
-
(A === 69 || A === 101) && (A = t.charCodeAt(++o), (A === 43 || A === 45) && ++o, Ke(10) === null && D(d, "Invalid number"),
|
|
4522
|
+
(A === 69 || A === 101) && (A = t.charCodeAt(++o), (A === 43 || A === 45) && ++o, Ke(10) === null && D(d, "Invalid number"), g = !0), mt(t.charCodeAt(o)) && D(o, "Identifier directly after number");
|
|
4523
4523
|
var C = t.slice(d, o), L;
|
|
4524
|
-
|
|
4524
|
+
g ? L = parseFloat(C) : !x || C.length === 1 ? L = parseInt(C, 10) : /[89]/.test(C) || Z ? D(d, "Invalid number") : L = parseInt(C, 8), Y(ct, L);
|
|
4525
4525
|
}
|
|
4526
4526
|
function Ao(f) {
|
|
4527
4527
|
o++;
|
|
4528
4528
|
for (var d = ""; ; ) {
|
|
4529
4529
|
o >= e && D(p, "Unterminated string constant");
|
|
4530
|
-
var
|
|
4531
|
-
if (
|
|
4530
|
+
var g = t.charCodeAt(o);
|
|
4531
|
+
if (g === f) {
|
|
4532
4532
|
++o, Y(Ft, d);
|
|
4533
4533
|
return;
|
|
4534
4534
|
}
|
|
4535
|
-
if (
|
|
4536
|
-
|
|
4535
|
+
if (g === 92) {
|
|
4536
|
+
g = t.charCodeAt(++o);
|
|
4537
4537
|
var x = /^[0-7]+/.exec(t.slice(o, o + 3));
|
|
4538
4538
|
for (x && (x = x[0]); x && parseInt(x, 8) > 255; )
|
|
4539
4539
|
x = x.slice(0, -1);
|
|
4540
4540
|
if (x === "0" && (x = null), ++o, x)
|
|
4541
4541
|
Z && D(o - 2, "Octal literal in strict mode"), d += String.fromCharCode(parseInt(x, 8)), o += x.length - 1;
|
|
4542
4542
|
else
|
|
4543
|
-
switch (
|
|
4543
|
+
switch (g) {
|
|
4544
4544
|
case 110:
|
|
4545
4545
|
d += `
|
|
4546
4546
|
`;
|
|
@@ -4588,11 +4588,11 @@ function rf() {
|
|
|
4588
4588
|
r.locations && (P = o, ++I);
|
|
4589
4589
|
break;
|
|
4590
4590
|
default:
|
|
4591
|
-
d += String.fromCharCode(
|
|
4591
|
+
d += String.fromCharCode(g);
|
|
4592
4592
|
break;
|
|
4593
4593
|
}
|
|
4594
4594
|
} else
|
|
4595
|
-
(
|
|
4595
|
+
(g === 13 || g === 10 || g === 8232 || g === 8233) && D(p, "Unterminated string constant"), d += String.fromCharCode(g), ++o;
|
|
4596
4596
|
}
|
|
4597
4597
|
}
|
|
4598
4598
|
function vt(f) {
|
|
@@ -4601,24 +4601,24 @@ function rf() {
|
|
|
4601
4601
|
d;
|
|
4602
4602
|
}
|
|
4603
4603
|
var Ue;
|
|
4604
|
-
function
|
|
4604
|
+
function gn() {
|
|
4605
4605
|
Ue = !1;
|
|
4606
|
-
for (var f, d = !0,
|
|
4606
|
+
for (var f, d = !0, g = o; ; ) {
|
|
4607
4607
|
var x = t.charCodeAt(o);
|
|
4608
4608
|
if (mn(x))
|
|
4609
4609
|
Ue && (f += t.charAt(o)), ++o;
|
|
4610
4610
|
else if (x === 92) {
|
|
4611
|
-
Ue || (f = t.slice(
|
|
4611
|
+
Ue || (f = t.slice(g, o)), Ue = !0, t.charCodeAt(++o) !== 117 && D(o, "Expecting Unicode escape sequence \\uXXXX"), ++o;
|
|
4612
4612
|
var A = vt(4), C = String.fromCharCode(A);
|
|
4613
4613
|
C || D(o - 1, "Invalid Unicode escape"), (d ? mt(A) : mn(A)) || D(o - 4, "Invalid Unicode escape"), f += C;
|
|
4614
4614
|
} else
|
|
4615
4615
|
break;
|
|
4616
4616
|
d = !1;
|
|
4617
4617
|
}
|
|
4618
|
-
return Ue ? f : t.slice(
|
|
4618
|
+
return Ue ? f : t.slice(g, o);
|
|
4619
4619
|
}
|
|
4620
|
-
function
|
|
4621
|
-
var f =
|
|
4620
|
+
function _n() {
|
|
4621
|
+
var f = gn(), d = De;
|
|
4622
4622
|
!Ue && mo(f) && (d = io[f]), Y(d, f);
|
|
4623
4623
|
}
|
|
4624
4624
|
function M() {
|
|
@@ -4641,7 +4641,7 @@ function rf() {
|
|
|
4641
4641
|
var f = new En();
|
|
4642
4642
|
return r.locations && (f.loc = new xn()), r.directSourceFile && (f.sourceFile = r.directSourceFile), r.ranges && (f.range = [p, 0]), f;
|
|
4643
4643
|
}
|
|
4644
|
-
function
|
|
4644
|
+
function ge(f) {
|
|
4645
4645
|
var d = new En();
|
|
4646
4646
|
return d.start = f.start, r.locations && (d.loc = new xn(), d.loc.start = f.loc.start), r.ranges && (d.range = [f.range[0], 0]), d;
|
|
4647
4647
|
}
|
|
@@ -4666,15 +4666,15 @@ function rf() {
|
|
|
4666
4666
|
function de() {
|
|
4667
4667
|
D(p, "Unexpected token");
|
|
4668
4668
|
}
|
|
4669
|
-
function
|
|
4669
|
+
function gt(f) {
|
|
4670
4670
|
f.type !== "Identifier" && f.type !== "MemberExpression" && D(f.start, "Assigning to rvalue"), Z && f.type === "Identifier" && dt(f.name) && D(f.start, "Assigning to " + f.name + " in strict mode");
|
|
4671
4671
|
}
|
|
4672
4672
|
function Io(f) {
|
|
4673
4673
|
q = ie = o, r.locations && (Le = new Ne()), Te = Z = !1, V = [], Fe();
|
|
4674
|
-
var d = f || X(),
|
|
4674
|
+
var d = f || X(), g = !0;
|
|
4675
4675
|
for (f || (d.body = []); E !== Ut; ) {
|
|
4676
4676
|
var x = oe();
|
|
4677
|
-
d.body.push(x),
|
|
4677
|
+
d.body.push(x), g && Jt(x) && Ht(!0), g = !1;
|
|
4678
4678
|
}
|
|
4679
4679
|
return k(d, "Program");
|
|
4680
4680
|
}
|
|
@@ -4686,14 +4686,14 @@ function rf() {
|
|
|
4686
4686
|
case jt:
|
|
4687
4687
|
case Vr:
|
|
4688
4688
|
M();
|
|
4689
|
-
var
|
|
4689
|
+
var g = f === jt;
|
|
4690
4690
|
B(pe) || bt() ? d.label = null : E !== De ? de() : (d.label = _e(), we());
|
|
4691
4691
|
for (var x = 0; x < V.length; ++x) {
|
|
4692
4692
|
var A = V[x];
|
|
4693
|
-
if ((d.label === null || A.name === d.label.name) && (A.kind !== null && (
|
|
4693
|
+
if ((d.label === null || A.name === d.label.name) && (A.kind !== null && (g || A.kind === "loop") || d.label && g))
|
|
4694
4694
|
break;
|
|
4695
4695
|
}
|
|
4696
|
-
return x === V.length && D(d.start, "Unsyntactic " + f.keyword), k(d,
|
|
4696
|
+
return x === V.length && D(d.start, "Unsyntactic " + f.keyword), k(d, g ? "BreakStatement" : "ContinueStatement");
|
|
4697
4697
|
case Gr:
|
|
4698
4698
|
return M(), we(), k(d, "DebuggerStatement");
|
|
4699
4699
|
case Yr:
|
|
@@ -4712,7 +4712,7 @@ function rf() {
|
|
|
4712
4712
|
return M(), Sn(C, !0), k(C, "VariableDeclaration"), C.declarations.length === 1 && B(ft) ? Rn(d, C) : qt(d, C);
|
|
4713
4713
|
}
|
|
4714
4714
|
var C = H(!1, !0);
|
|
4715
|
-
return B(ft) ? (
|
|
4715
|
+
return B(ft) ? (gt(C), Rn(d, C)) : qt(d, C);
|
|
4716
4716
|
case Bt:
|
|
4717
4717
|
return M(), rr(d, !0);
|
|
4718
4718
|
case Jr:
|
|
@@ -4752,14 +4752,14 @@ function rf() {
|
|
|
4752
4752
|
// next token is a colon and the expression was a simple
|
|
4753
4753
|
// Identifier node, we switch to interpreting it as a label.
|
|
4754
4754
|
default:
|
|
4755
|
-
var ir = N,
|
|
4756
|
-
if (f === De &&
|
|
4755
|
+
var ir = N, _t = H();
|
|
4756
|
+
if (f === De && _t.type === "Identifier" && B(He)) {
|
|
4757
4757
|
for (var x = 0; x < V.length; ++x)
|
|
4758
|
-
V[x].name === ir && D(
|
|
4758
|
+
V[x].name === ir && D(_t.start, "Label '" + ir + "' is already declared");
|
|
4759
4759
|
var $o = E.isLoop ? "loop" : E === Vt ? "switch" : null;
|
|
4760
|
-
return V.push({ name: ir, kind: $o }), d.body = oe(), V.pop(), d.label =
|
|
4760
|
+
return V.push({ name: ir, kind: $o }), d.body = oe(), V.pop(), d.label = _t, k(d, "LabeledStatement");
|
|
4761
4761
|
} else
|
|
4762
|
-
return d.expression =
|
|
4762
|
+
return d.expression = _t, we(), k(d, "ExpressionStatement");
|
|
4763
4763
|
}
|
|
4764
4764
|
}
|
|
4765
4765
|
function qe() {
|
|
@@ -4768,10 +4768,10 @@ function rf() {
|
|
|
4768
4768
|
return W(ue), f;
|
|
4769
4769
|
}
|
|
4770
4770
|
function Ze(f) {
|
|
4771
|
-
var d = X(),
|
|
4771
|
+
var d = X(), g = !0, x = !1, A;
|
|
4772
4772
|
for (d.body = [], W(Xe); !B(Me); ) {
|
|
4773
4773
|
var C = oe();
|
|
4774
|
-
d.body.push(C),
|
|
4774
|
+
d.body.push(C), g && f && Jt(C) && (A = x, Ht(x = !0)), g = !1;
|
|
4775
4775
|
}
|
|
4776
4776
|
return x && !A && Ht(!1), k(d, "BlockStatement");
|
|
4777
4777
|
}
|
|
@@ -4783,67 +4783,67 @@ function rf() {
|
|
|
4783
4783
|
}
|
|
4784
4784
|
function Sn(f, d) {
|
|
4785
4785
|
for (f.declarations = [], f.kind = "var"; ; ) {
|
|
4786
|
-
var
|
|
4787
|
-
if (
|
|
4786
|
+
var g = X();
|
|
4787
|
+
if (g.id = _e(), Z && dt(g.id.name) && D(g.id.start, "Binding " + g.id.name + " in strict mode"), g.init = B(ln) ? H(!0, d) : null, f.declarations.push(k(g, "VariableDeclarator")), !B(be)) break;
|
|
4788
4788
|
}
|
|
4789
4789
|
}
|
|
4790
4790
|
function H(f, d) {
|
|
4791
|
-
var
|
|
4792
|
-
if (!f && E ===
|
|
4793
|
-
var x =
|
|
4794
|
-
for (x.expressions = [
|
|
4791
|
+
var g = Zt(d);
|
|
4792
|
+
if (!f && E === be) {
|
|
4793
|
+
var x = ge(g);
|
|
4794
|
+
for (x.expressions = [g]; B(be); ) x.expressions.push(Zt(d));
|
|
4795
4795
|
return k(x, "SequenceExpression");
|
|
4796
4796
|
}
|
|
4797
|
-
return
|
|
4797
|
+
return g;
|
|
4798
4798
|
}
|
|
4799
4799
|
function Zt(f) {
|
|
4800
4800
|
var d = Do(f);
|
|
4801
4801
|
if (E.isAssign) {
|
|
4802
|
-
var
|
|
4803
|
-
return
|
|
4802
|
+
var g = ge(d);
|
|
4803
|
+
return g.operator = N, g.left = d, M(), g.right = Zt(f), gt(d), k(g, "AssignmentExpression");
|
|
4804
4804
|
}
|
|
4805
4805
|
return d;
|
|
4806
4806
|
}
|
|
4807
4807
|
function Do(f) {
|
|
4808
4808
|
var d = Mo(f);
|
|
4809
4809
|
if (B(sn)) {
|
|
4810
|
-
var
|
|
4811
|
-
return
|
|
4810
|
+
var g = ge(d);
|
|
4811
|
+
return g.test = d, g.consequent = H(!0), W(He), g.alternate = H(!0, f), k(g, "ConditionalExpression");
|
|
4812
4812
|
}
|
|
4813
4813
|
return d;
|
|
4814
4814
|
}
|
|
4815
4815
|
function Mo(f) {
|
|
4816
4816
|
return Qt(er(), -1, f);
|
|
4817
4817
|
}
|
|
4818
|
-
function Qt(f, d,
|
|
4818
|
+
function Qt(f, d, g) {
|
|
4819
4819
|
var x = E.binop;
|
|
4820
|
-
if (x !== null && (!
|
|
4821
|
-
var A =
|
|
4820
|
+
if (x !== null && (!g || E !== ft) && x > d) {
|
|
4821
|
+
var A = ge(f);
|
|
4822
4822
|
A.left = f, A.operator = N;
|
|
4823
4823
|
var C = E;
|
|
4824
|
-
M(), A.right = Qt(er(), x,
|
|
4824
|
+
M(), A.right = Qt(er(), x, g);
|
|
4825
4825
|
var L = k(A, C === fn || C === pn ? "LogicalExpression" : "BinaryExpression");
|
|
4826
|
-
return Qt(L, d,
|
|
4826
|
+
return Qt(L, d, g);
|
|
4827
4827
|
}
|
|
4828
4828
|
return f;
|
|
4829
4829
|
}
|
|
4830
4830
|
function er() {
|
|
4831
4831
|
if (E.prefix) {
|
|
4832
4832
|
var f = X(), d = E.isUpdate;
|
|
4833
|
-
return f.operator = N, f.prefix = !0, w = !0, M(), f.argument = er(), d ?
|
|
4833
|
+
return f.operator = N, f.prefix = !0, w = !0, M(), f.argument = er(), d ? gt(f.argument) : Z && f.operator === "delete" && f.argument.type === "Identifier" && D(f.start, "Deleting local variable in strict mode"), k(f, d ? "UpdateExpression" : "UnaryExpression");
|
|
4834
4834
|
}
|
|
4835
|
-
for (var
|
|
4836
|
-
var f =
|
|
4837
|
-
f.operator = N, f.prefix = !1, f.argument =
|
|
4835
|
+
for (var g = Fo(); E.postfix && !bt(); ) {
|
|
4836
|
+
var f = ge(g);
|
|
4837
|
+
f.operator = N, f.prefix = !1, f.argument = g, gt(g), M(), g = k(f, "UpdateExpression");
|
|
4838
4838
|
}
|
|
4839
|
-
return
|
|
4839
|
+
return g;
|
|
4840
4840
|
}
|
|
4841
4841
|
function Fo() {
|
|
4842
4842
|
return Qe(tr());
|
|
4843
4843
|
}
|
|
4844
4844
|
function Qe(f, d) {
|
|
4845
|
-
var
|
|
4846
|
-
return B(an) ? (
|
|
4845
|
+
var g;
|
|
4846
|
+
return B(an) ? (g = ge(f), g.object = f, g.property = _e(!0), g.computed = !1, Qe(k(g, "MemberExpression"), d)) : B(Yt) ? (g = ge(f), g.object = f, g.property = H(), g.computed = !0, W(zt), Qe(k(g, "MemberExpression"), d)) : !d && B(fe) ? (g = ge(f), g.callee = f, g.arguments = nr(ue, !1), Qe(k(g, "CallExpression"), d)) : f;
|
|
4847
4847
|
}
|
|
4848
4848
|
function tr() {
|
|
4849
4849
|
var f;
|
|
@@ -4861,10 +4861,10 @@ function rf() {
|
|
|
4861
4861
|
case on:
|
|
4862
4862
|
return f = X(), f.value = E.atomValue, f.raw = E.keyword, M(), k(f, "Literal");
|
|
4863
4863
|
case fe:
|
|
4864
|
-
var d = b,
|
|
4864
|
+
var d = b, g = p;
|
|
4865
4865
|
M();
|
|
4866
4866
|
var x = H();
|
|
4867
|
-
return x.start =
|
|
4867
|
+
return x.start = g, x.end = m, r.locations && (x.loc.start = d, x.loc.end = O), r.ranges && (x.range = [g, m]), W(ue), x;
|
|
4868
4868
|
case Yt:
|
|
4869
4869
|
return f = X(), M(), f.elements = nr(zt, !0, !0), k(f, "ArrayExpression");
|
|
4870
4870
|
case Xe:
|
|
@@ -4881,14 +4881,14 @@ function rf() {
|
|
|
4881
4881
|
return M(), f.callee = Qe(tr(), !0), f.arguments = B(fe) ? nr(ue, !1) : no, k(f, "NewExpression");
|
|
4882
4882
|
}
|
|
4883
4883
|
function jo() {
|
|
4884
|
-
var f = X(), d = !0,
|
|
4884
|
+
var f = X(), d = !0, g = !1;
|
|
4885
4885
|
for (f.properties = [], M(); !B(Me); ) {
|
|
4886
4886
|
if (d)
|
|
4887
4887
|
d = !1;
|
|
4888
|
-
else if (W(
|
|
4888
|
+
else if (W(be), r.allowTrailingCommas && B(Me))
|
|
4889
4889
|
break;
|
|
4890
4890
|
var x = { key: Tn() }, A = !1, C;
|
|
4891
|
-
if (B(He) ? (x.value = H(!0), C = x.kind = "init") : x.key.type === "Identifier" && (x.key.name === "get" || x.key.name === "set") ? (A =
|
|
4891
|
+
if (B(He) ? (x.value = H(!0), C = x.kind = "init") : x.key.type === "Identifier" && (x.key.name === "get" || x.key.name === "set") ? (A = g = !0, C = x.kind = x.key.name, x.key = Tn(), E !== fe && de(), x.value = rr(X(), !1)) : de(), x.key.type === "Identifier" && (Z || g))
|
|
4892
4892
|
for (var L = 0; L < f.properties.length; ++L) {
|
|
4893
4893
|
var $ = f.properties[L];
|
|
4894
4894
|
if ($.key.name === x.key.name) {
|
|
@@ -4905,9 +4905,9 @@ function rf() {
|
|
|
4905
4905
|
}
|
|
4906
4906
|
function rr(f, d) {
|
|
4907
4907
|
E === De ? f.id = _e() : d ? de() : f.id = null, f.params = [];
|
|
4908
|
-
var
|
|
4908
|
+
var g = !0;
|
|
4909
4909
|
for (W(fe); !B(ue); )
|
|
4910
|
-
|
|
4910
|
+
g ? g = !1 : W(be), f.params.push(_e());
|
|
4911
4911
|
var x = Te, A = V;
|
|
4912
4912
|
if (Te = !0, V = [], f.body = Ze(!0), Te = x, V = A, Z || f.body.body.length && Jt(f.body.body[0]))
|
|
4913
4913
|
for (var C = f.id ? -1 : 0; C < f.params.length; ++C) {
|
|
@@ -4918,13 +4918,13 @@ function rf() {
|
|
|
4918
4918
|
}
|
|
4919
4919
|
return k(f, d ? "FunctionDeclaration" : "FunctionExpression");
|
|
4920
4920
|
}
|
|
4921
|
-
function nr(f, d,
|
|
4921
|
+
function nr(f, d, g) {
|
|
4922
4922
|
for (var x = [], A = !0; !B(f); ) {
|
|
4923
4923
|
if (A)
|
|
4924
4924
|
A = !1;
|
|
4925
|
-
else if (W(
|
|
4925
|
+
else if (W(be), d && r.allowTrailingCommas && B(f))
|
|
4926
4926
|
break;
|
|
4927
|
-
x.push(
|
|
4927
|
+
x.push(g && E === be ? null : H(!0));
|
|
4928
4928
|
}
|
|
4929
4929
|
return x;
|
|
4930
4930
|
}
|
|
@@ -4968,12 +4968,12 @@ function rf() {
|
|
|
4968
4968
|
}, v.o = (y, T) => Object.prototype.hasOwnProperty.call(y, T), v.r = (y) => {
|
|
4969
4969
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(y, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(y, "__esModule", { value: !0 });
|
|
4970
4970
|
};
|
|
4971
|
-
var
|
|
4971
|
+
var _ = {};
|
|
4972
4972
|
return (() => {
|
|
4973
4973
|
/*!*******************************!*\
|
|
4974
4974
|
!*** ./src/js-interpreter.js ***!
|
|
4975
4975
|
\*******************************/
|
|
4976
|
-
v.r(
|
|
4976
|
+
v.r(_), v.d(_, {
|
|
4977
4977
|
/* harmony export */
|
|
4978
4978
|
default: () => S
|
|
4979
4979
|
/* harmony export */
|
|
@@ -4987,7 +4987,7 @@ function rf() {
|
|
|
4987
4987
|
/*! ../original-repo/interpreter */
|
|
4988
4988
|
"./original-repo/interpreter.js"
|
|
4989
4989
|
), S = T;
|
|
4990
|
-
})(),
|
|
4990
|
+
})(), _ = _.default, _;
|
|
4991
4991
|
})()
|
|
4992
4992
|
));
|
|
4993
4993
|
}(St)), St.exports;
|
|
@@ -5008,7 +5008,7 @@ function af(n, a) {
|
|
|
5008
5008
|
const r = n.pseudoToNative(T), t = n.pseudoToNative(S);
|
|
5009
5009
|
r === "info" ? Xo(t) : r === "success" ? Ho(t) : r === "warning" ? Jo(t) : r === "error" && Ko(t);
|
|
5010
5010
|
}
|
|
5011
|
-
function
|
|
5011
|
+
function _(T, S) {
|
|
5012
5012
|
const r = n.pseudoToNative(T), t = n.pseudoToNative(S);
|
|
5013
5013
|
setTimeout(() => {
|
|
5014
5014
|
n.appendCode(`__timeoutCallbackV1__(${r})`), n.run();
|
|
@@ -5035,7 +5035,7 @@ function af(n, a) {
|
|
|
5035
5035
|
), n.setProperty(
|
|
5036
5036
|
a,
|
|
5037
5037
|
"__timeoutV1__",
|
|
5038
|
-
n.createNativeFunction(
|
|
5038
|
+
n.createNativeFunction(_)
|
|
5039
5039
|
), n.setProperty(
|
|
5040
5040
|
a,
|
|
5041
5041
|
"__delayV1__",
|
|
@@ -5049,7 +5049,7 @@ class sf {
|
|
|
5049
5049
|
this.context = a, this.nodes = {};
|
|
5050
5050
|
const c = (h) => {
|
|
5051
5051
|
var v;
|
|
5052
|
-
this.nodes[h.basic.id] = h, (v = h.children) == null || v.forEach((
|
|
5052
|
+
this.nodes[h.basic.id] = h, (v = h.children) == null || v.forEach((_) => c(_));
|
|
5053
5053
|
};
|
|
5054
5054
|
this.context.data.view.nodes.forEach((h) => c(h));
|
|
5055
5055
|
}
|
|
@@ -5058,17 +5058,17 @@ class sf {
|
|
|
5058
5058
|
}
|
|
5059
5059
|
addNode(a, c, h) {
|
|
5060
5060
|
const v = `parent=${a} ref=${c} keyOrRefid=${h}`;
|
|
5061
|
-
let
|
|
5061
|
+
let _;
|
|
5062
5062
|
if (a) {
|
|
5063
5063
|
const T = this.getNode(a);
|
|
5064
5064
|
if (!T)
|
|
5065
5065
|
return console.error(`NodeMgr/addNode parent not found, ${v}`), "";
|
|
5066
5066
|
if (!T.children)
|
|
5067
5067
|
return console.error(`NodeMgr/addNode parent no children, ${v}`), "";
|
|
5068
|
-
|
|
5068
|
+
_ = T.children;
|
|
5069
5069
|
} else
|
|
5070
|
-
|
|
5071
|
-
if (!
|
|
5070
|
+
_ = this.context.data.view.nodes;
|
|
5071
|
+
if (!_)
|
|
5072
5072
|
return "";
|
|
5073
5073
|
const y = Ul(
|
|
5074
5074
|
this.context.type,
|
|
@@ -5077,7 +5077,7 @@ class sf {
|
|
|
5077
5077
|
c,
|
|
5078
5078
|
h
|
|
5079
5079
|
);
|
|
5080
|
-
return y ? (
|
|
5080
|
+
return y ? (_.push(y), this.nodes[y.basic.id] = y, y.basic.id) : (console.error(`NodeMgr/addNode spawn node failed, ${v}`), "");
|
|
5081
5081
|
}
|
|
5082
5082
|
deleteNode(a) {
|
|
5083
5083
|
this.getNode(a);
|
|
@@ -5085,22 +5085,22 @@ class sf {
|
|
|
5085
5085
|
}
|
|
5086
5086
|
function uf(n, a, c) {
|
|
5087
5087
|
const h = new sf(n);
|
|
5088
|
-
function v(e, i,
|
|
5089
|
-
const
|
|
5088
|
+
function v(e, i, s) {
|
|
5089
|
+
const u = a.pseudoToNative(e), l = a.pseudoToNative(i), o = a.pseudoToNative(s), p = h.addNode(u, l, o);
|
|
5090
5090
|
return a.nativeToPseudo(p);
|
|
5091
5091
|
}
|
|
5092
|
-
function
|
|
5092
|
+
function _(e) {
|
|
5093
5093
|
const i = a.pseudoToNative(e);
|
|
5094
5094
|
h.deleteNode(i);
|
|
5095
5095
|
}
|
|
5096
5096
|
function y(e, i) {
|
|
5097
|
-
const
|
|
5097
|
+
const s = a.pseudoToNative(e), u = a.pseudoToNative(i), l = `id=${s} keys=${u}`;
|
|
5098
5098
|
let o;
|
|
5099
|
-
if (
|
|
5099
|
+
if (s === "globality" ? o = n.data.view : o = h.getNode(s), !o) {
|
|
5100
5100
|
console.error(`getNodePropV1 node not found, ${l}`);
|
|
5101
5101
|
return;
|
|
5102
5102
|
}
|
|
5103
|
-
const p =
|
|
5103
|
+
const p = u.split("."), m = p.length;
|
|
5104
5104
|
for (let b = 0; b < m; b++) {
|
|
5105
5105
|
const O = p[b];
|
|
5106
5106
|
if (b === m - 1)
|
|
@@ -5112,10 +5112,10 @@ function uf(n, a, c) {
|
|
|
5112
5112
|
o = o[O];
|
|
5113
5113
|
}
|
|
5114
5114
|
}
|
|
5115
|
-
function T(e, i,
|
|
5116
|
-
const
|
|
5115
|
+
function T(e, i, s) {
|
|
5116
|
+
const u = a.pseudoToNative(e), l = a.pseudoToNative(i), o = a.pseudoToNative(s), p = `id=${u} keys=${l} value=${o}`;
|
|
5117
5117
|
let m;
|
|
5118
|
-
if (
|
|
5118
|
+
if (u === "globality" ? m = n.data.view : m = h.getNode(u), !m) {
|
|
5119
5119
|
console.error(`setNodePropV1 node not found, ${p}`);
|
|
5120
5120
|
return;
|
|
5121
5121
|
}
|
|
@@ -5133,20 +5133,20 @@ function uf(n, a, c) {
|
|
|
5133
5133
|
}
|
|
5134
5134
|
}
|
|
5135
5135
|
}
|
|
5136
|
-
function S(e, i,
|
|
5137
|
-
const l = a.pseudoToNative(e), o = a.pseudoToNative(i), p = a.pseudoToNative(
|
|
5138
|
-
Ve.emit(`callMethod@${l}`, { name: o, inputs: p, result: m }),
|
|
5136
|
+
function S(e, i, s, u) {
|
|
5137
|
+
const l = a.pseudoToNative(e), o = a.pseudoToNative(i), p = a.pseudoToNative(s), m = { outputs: [] };
|
|
5138
|
+
Ve.emit(`callMethod@${l}`, { name: o, inputs: p, result: m }), u(a.nativeToPseudo(m.outputs)), a.run();
|
|
5139
5139
|
}
|
|
5140
|
-
function r(e, i,
|
|
5141
|
-
const
|
|
5142
|
-
qo({ title:
|
|
5143
|
-
|
|
5140
|
+
function r(e, i, s) {
|
|
5141
|
+
const u = a.pseudoToNative(e), l = a.pseudoToNative(i);
|
|
5142
|
+
qo({ title: u, text: l }).then((o) => {
|
|
5143
|
+
s(a.nativeToPseudo(o)), a.run();
|
|
5144
5144
|
});
|
|
5145
5145
|
}
|
|
5146
|
-
function t(e, i,
|
|
5147
|
-
const l = a.pseudoToNative(e), o = a.pseudoToNative(i), p = a.pseudoToNative(
|
|
5146
|
+
function t(e, i, s, u) {
|
|
5147
|
+
const l = a.pseudoToNative(e), o = a.pseudoToNative(i), p = a.pseudoToNative(s);
|
|
5148
5148
|
Zo({ title: l, label: o, value: p }).then((m) => {
|
|
5149
|
-
|
|
5149
|
+
u(a.nativeToPseudo(m)), a.run();
|
|
5150
5150
|
});
|
|
5151
5151
|
}
|
|
5152
5152
|
a.setProperty(
|
|
@@ -5156,7 +5156,7 @@ function uf(n, a, c) {
|
|
|
5156
5156
|
), a.setProperty(
|
|
5157
5157
|
c,
|
|
5158
5158
|
"__deleteNodeV1__",
|
|
5159
|
-
a.createNativeFunction(
|
|
5159
|
+
a.createNativeFunction(_)
|
|
5160
5160
|
), a.setProperty(
|
|
5161
5161
|
c,
|
|
5162
5162
|
"__getNodePropV1__",
|
|
@@ -5329,7 +5329,7 @@ const yf = /* @__PURE__ */ ne({
|
|
|
5329
5329
|
outer: { type: Boolean }
|
|
5330
5330
|
},
|
|
5331
5331
|
setup(n) {
|
|
5332
|
-
const { t: a } = Ei(), c = n, h = qi(), v = se(),
|
|
5332
|
+
const { t: a } = Ei(), c = n, h = qi(), v = se(), _ = Lt(), y = ut(), T = lt(), S = Zi(), r = Ot(-1), t = Ot(), e = {};
|
|
5333
5333
|
Qi(e), vi(() => {
|
|
5334
5334
|
const b = S.value[c.refContext.refid];
|
|
5335
5335
|
if (!b) {
|
|
@@ -5344,11 +5344,11 @@ const yf = /* @__PURE__ */ ne({
|
|
|
5344
5344
|
}), ot(() => {
|
|
5345
5345
|
e.interpreter && ($e(e.interpreter), e.interpreter = void 0);
|
|
5346
5346
|
});
|
|
5347
|
-
const { applySize: i } = Dt(v,
|
|
5347
|
+
const { applySize: i } = Dt(v, _, c), s = R(() => {
|
|
5348
5348
|
const b = {}, O = T.value.type;
|
|
5349
5349
|
return y === "page" ? O === "common" ? i(b) : console.assert(!1) : y === "comp" && O === "common" ? i(b) : console.assert(!1), b;
|
|
5350
5350
|
});
|
|
5351
|
-
function
|
|
5351
|
+
function u(b) {
|
|
5352
5352
|
const O = jr[T.value.version].refKey, E = ke[O];
|
|
5353
5353
|
return E ? K(E.comp, {
|
|
5354
5354
|
refContext: {
|
|
@@ -5370,7 +5370,7 @@ const yf = /* @__PURE__ */ ne({
|
|
|
5370
5370
|
})), K(O.comp, { node: b }, { default: () => E });
|
|
5371
5371
|
}
|
|
5372
5372
|
function o(b) {
|
|
5373
|
-
return b.ref ?
|
|
5373
|
+
return b.ref ? u(b) : l(b);
|
|
5374
5374
|
}
|
|
5375
5375
|
function p() {
|
|
5376
5376
|
let b = c.refContext.parent;
|
|
@@ -5391,7 +5391,7 @@ const yf = /* @__PURE__ */ ne({
|
|
|
5391
5391
|
const O = [];
|
|
5392
5392
|
return t.value.view.nodes.forEach((E) => {
|
|
5393
5393
|
O.push(o(E));
|
|
5394
|
-
}), K("div", { id: c.id, style:
|
|
5394
|
+
}), K("div", { id: c.id, style: s.value }, O);
|
|
5395
5395
|
} else
|
|
5396
5396
|
return console.assert(!1, `invalid subtype=${b}`), K("div", { id: c.id }, `invalid subtype=${b}`);
|
|
5397
5397
|
};
|
|
@@ -5404,7 +5404,7 @@ const yf = /* @__PURE__ */ ne({
|
|
|
5404
5404
|
state: {}
|
|
5405
5405
|
},
|
|
5406
5406
|
setup(n) {
|
|
5407
|
-
const { t: a } = Ei(), c = n, h = qi(), v = se(),
|
|
5407
|
+
const { t: a } = Ei(), c = n, h = qi(), v = se(), _ = ut(), y = lt(), T = Zi(), S = Ot(-1), r = Ot(), t = {};
|
|
5408
5408
|
Qi(t), vi(() => {
|
|
5409
5409
|
const p = T.value[c.refContext.refid];
|
|
5410
5410
|
if (!p) {
|
|
@@ -5415,7 +5415,7 @@ const yf = /* @__PURE__ */ ne({
|
|
|
5415
5415
|
return;
|
|
5416
5416
|
S.value = p.dataSeq, r.value = le(p.data), t.interpreter && $e(t.interpreter);
|
|
5417
5417
|
const m = r.value, b = m.code.script;
|
|
5418
|
-
b && (t.interpreter = eo({ env: h, type:
|
|
5418
|
+
b && (t.interpreter = eo({ env: h, type: _, data: m }, b));
|
|
5419
5419
|
}), ot(() => {
|
|
5420
5420
|
t.interpreter && ($e(t.interpreter), t.interpreter = void 0);
|
|
5421
5421
|
});
|
|
@@ -5439,18 +5439,18 @@ const yf = /* @__PURE__ */ ne({
|
|
|
5439
5439
|
node: p
|
|
5440
5440
|
}) : (console.assert(!1, `ref element not found key=${m}`), K("div", `ref element not found key=${m}`));
|
|
5441
5441
|
}
|
|
5442
|
-
function
|
|
5442
|
+
function s(p) {
|
|
5443
5443
|
var O;
|
|
5444
5444
|
const m = ke[p.basic.key];
|
|
5445
5445
|
if (!m)
|
|
5446
5446
|
return console.assert(!1, `element not found key=${p.basic.key}`), K("div", `element not found key=${p.basic.key}`);
|
|
5447
5447
|
const b = [];
|
|
5448
5448
|
return m.slots.some((E) => E.key === "default") && ((O = p.children) == null || O.forEach((E) => {
|
|
5449
|
-
b.push(
|
|
5449
|
+
b.push(u(E));
|
|
5450
5450
|
})), K(m.comp, { node: p }, { default: () => b });
|
|
5451
5451
|
}
|
|
5452
|
-
function
|
|
5453
|
-
return p.ref ? i(p) :
|
|
5452
|
+
function u(p) {
|
|
5453
|
+
return p.ref ? i(p) : s(p);
|
|
5454
5454
|
}
|
|
5455
5455
|
function l() {
|
|
5456
5456
|
let p = c.refContext.parent;
|
|
@@ -5470,7 +5470,7 @@ const yf = /* @__PURE__ */ ne({
|
|
|
5470
5470
|
if (p === "common") {
|
|
5471
5471
|
const m = [];
|
|
5472
5472
|
return r.value.view.nodes.forEach((b) => {
|
|
5473
|
-
m.push(
|
|
5473
|
+
m.push(u(b));
|
|
5474
5474
|
}), m;
|
|
5475
5475
|
} else
|
|
5476
5476
|
return console.assert(!1, `invalid subtype=${p}`), K("div", `invalid subtype=${p}`);
|
|
@@ -5484,7 +5484,7 @@ const yf = /* @__PURE__ */ ne({
|
|
|
5484
5484
|
outer: { type: Boolean }
|
|
5485
5485
|
},
|
|
5486
5486
|
setup(n) {
|
|
5487
|
-
const a = n, c = se(), h =
|
|
5487
|
+
const a = n, c = se(), h = ve(), v = $l(), _ = R(() => {
|
|
5488
5488
|
var i;
|
|
5489
5489
|
return (i = a.node.settings) == null ? void 0 : i.text;
|
|
5490
5490
|
}), y = R(() => {
|
|
@@ -5505,13 +5505,13 @@ const yf = /* @__PURE__ */ ne({
|
|
|
5505
5505
|
const i = v.interpreter;
|
|
5506
5506
|
if (!i)
|
|
5507
5507
|
return;
|
|
5508
|
-
const
|
|
5509
|
-
i.appendCode(`__triggerEvent__('${
|
|
5508
|
+
const s = i.nativeToPseudo(a.node.basic.id);
|
|
5509
|
+
i.appendCode(`__triggerEvent__('${s}', 'click');`), i.run();
|
|
5510
5510
|
};
|
|
5511
|
-
return (i,
|
|
5512
|
-
const
|
|
5513
|
-
return G(), ee(
|
|
5514
|
-
text:
|
|
5511
|
+
return (i, s) => {
|
|
5512
|
+
const u = ae("v-btn");
|
|
5513
|
+
return G(), ee(u, {
|
|
5514
|
+
text: _.value,
|
|
5515
5515
|
disabled: y.value,
|
|
5516
5516
|
variant: T.value,
|
|
5517
5517
|
density: S.value,
|
|
@@ -5536,22 +5536,22 @@ function bf(n, a) {
|
|
|
5536
5536
|
_: 3
|
|
5537
5537
|
});
|
|
5538
5538
|
}
|
|
5539
|
-
const
|
|
5539
|
+
const gf = /* @__PURE__ */ Mt(vf, [["render", bf]]), _f = {};
|
|
5540
5540
|
function Ef(n, a) {
|
|
5541
5541
|
const c = ae("v-chip");
|
|
5542
5542
|
return G(), ee(c);
|
|
5543
5543
|
}
|
|
5544
|
-
const xf = /* @__PURE__ */ Mt(
|
|
5544
|
+
const xf = /* @__PURE__ */ Mt(_f, [["render", Ef]]), Rf = { key: 0 }, Sf = /* @__PURE__ */ ne({
|
|
5545
5545
|
__name: "index",
|
|
5546
5546
|
props: {
|
|
5547
5547
|
node: {},
|
|
5548
5548
|
outer: { type: Boolean }
|
|
5549
5549
|
},
|
|
5550
5550
|
setup(n) {
|
|
5551
|
-
const a = n, c = se(), h =
|
|
5551
|
+
const a = n, c = se(), h = ve(), v = R(() => {
|
|
5552
5552
|
var e;
|
|
5553
5553
|
return (e = a.node.settings) == null ? void 0 : e.value;
|
|
5554
|
-
}),
|
|
5554
|
+
}), _ = R(() => {
|
|
5555
5555
|
var e;
|
|
5556
5556
|
return (e = a.node.settings) == null ? void 0 : e.label;
|
|
5557
5557
|
}), y = R(() => {
|
|
@@ -5568,21 +5568,21 @@ const xf = /* @__PURE__ */ Mt(gf, [["render", Ef]]), Rf = { key: 0 }, Sf = /* @_
|
|
|
5568
5568
|
return c !== "runtime" ? !0 : (e = a.node.settings) == null ? void 0 : e.readonly;
|
|
5569
5569
|
}), t = R(() => h.value ? "dark" : "light");
|
|
5570
5570
|
return (e, i) => {
|
|
5571
|
-
const
|
|
5572
|
-
return Be(c) === "editor" ? (G(),
|
|
5573
|
-
Q(
|
|
5571
|
+
const s = ae("v-combobox");
|
|
5572
|
+
return Be(c) === "editor" ? (G(), Se("div", Rf, [
|
|
5573
|
+
Q(s, {
|
|
5574
5574
|
"model-value": v.value,
|
|
5575
|
-
label:
|
|
5575
|
+
label: _.value,
|
|
5576
5576
|
placeholder: y.value,
|
|
5577
5577
|
"hide-details": T.value,
|
|
5578
5578
|
"single-line": S.value,
|
|
5579
5579
|
readonly: r.value,
|
|
5580
5580
|
theme: t.value
|
|
5581
5581
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"])
|
|
5582
|
-
])) : (G(), ee(
|
|
5582
|
+
])) : (G(), ee(s, {
|
|
5583
5583
|
key: 1,
|
|
5584
5584
|
"model-value": v.value,
|
|
5585
|
-
label:
|
|
5585
|
+
label: _.value,
|
|
5586
5586
|
placeholder: y.value,
|
|
5587
5587
|
"hide-details": T.value,
|
|
5588
5588
|
"single-line": S.value,
|
|
@@ -5598,14 +5598,17 @@ const xf = /* @__PURE__ */ Mt(gf, [["render", Ef]]), Rf = { key: 0 }, Sf = /* @_
|
|
|
5598
5598
|
outer: { type: Boolean }
|
|
5599
5599
|
},
|
|
5600
5600
|
setup(n) {
|
|
5601
|
-
const a = n, c = se(), h = Lt(), v = ut(),
|
|
5602
|
-
|
|
5603
|
-
return v
|
|
5601
|
+
const a = n, c = se(), h = Lt(), v = ve(), _ = ut(), y = lt(), { applySize: T } = Dt(c, h, a), { applyMargin: S } = Dl(a), { applyPadding: r } = Ml(a), { applyBorder: t } = Ll(a), e = R(() => {
|
|
5602
|
+
var s, u, l, o;
|
|
5603
|
+
return v.value ? (u = (s = a.node.settings) == null ? void 0 : s.backgroundColor) == null ? void 0 : u.dark : (o = (l = a.node.settings) == null ? void 0 : l.backgroundColor) == null ? void 0 : o.light;
|
|
5604
|
+
}), i = R(() => {
|
|
5605
|
+
const s = {}, u = y.value.type;
|
|
5606
|
+
return _ === "page" ? u === "common" ? (T(s), S(s), r(s), t(s), e.value && (s.backgroundColor = e.value)) : console.assert(!1) : _ === "comp" && u === "common" ? (T(s), S(s), r(s), t(s), e.value && (s.backgroundColor = e.value)) : console.assert(!1), s;
|
|
5604
5607
|
});
|
|
5605
|
-
return (
|
|
5606
|
-
style: kr(
|
|
5608
|
+
return (s, u) => (G(), Se("div", {
|
|
5609
|
+
style: kr(i.value)
|
|
5607
5610
|
}, [
|
|
5608
|
-
Ar(
|
|
5611
|
+
Ar(s.$slots, "default")
|
|
5609
5612
|
], 4));
|
|
5610
5613
|
}
|
|
5611
5614
|
}), Of = /* @__PURE__ */ ne({
|
|
@@ -5615,13 +5618,13 @@ const xf = /* @__PURE__ */ Mt(gf, [["render", Ef]]), Rf = { key: 0 }, Sf = /* @_
|
|
|
5615
5618
|
outer: { type: Boolean }
|
|
5616
5619
|
},
|
|
5617
5620
|
setup(n) {
|
|
5618
|
-
const a = n, c =
|
|
5621
|
+
const a = n, c = ve(), h = R(() => {
|
|
5619
5622
|
var l;
|
|
5620
5623
|
return (l = a.node.size) == null ? void 0 : l.width;
|
|
5621
5624
|
}), v = R(() => {
|
|
5622
5625
|
var l;
|
|
5623
5626
|
return (l = a.node.size) == null ? void 0 : l.height;
|
|
5624
|
-
}),
|
|
5627
|
+
}), _ = R(() => {
|
|
5625
5628
|
var l;
|
|
5626
5629
|
return (l = a.node.settings) == null ? void 0 : l.headers;
|
|
5627
5630
|
}), y = R(() => {
|
|
@@ -5645,7 +5648,7 @@ const xf = /* @__PURE__ */ Mt(gf, [["render", Ef]]), Rf = { key: 0 }, Sf = /* @_
|
|
|
5645
5648
|
}), i = R(() => {
|
|
5646
5649
|
var l;
|
|
5647
5650
|
return (l = a.node.settings) == null ? void 0 : l.multiSort;
|
|
5648
|
-
}),
|
|
5651
|
+
}), s = R(() => c.value ? "dark" : "light"), u = R(() => {
|
|
5649
5652
|
var p;
|
|
5650
5653
|
const l = [];
|
|
5651
5654
|
return (((p = a.node.slots) == null ? void 0 : p.items) ?? []).forEach((m) => {
|
|
@@ -5657,7 +5660,7 @@ const xf = /* @__PURE__ */ Mt(gf, [["render", Ef]]), Rf = { key: 0 }, Sf = /* @_
|
|
|
5657
5660
|
return G(), ee(p, {
|
|
5658
5661
|
width: h.value,
|
|
5659
5662
|
height: v.value,
|
|
5660
|
-
headers:
|
|
5663
|
+
headers: _.value,
|
|
5661
5664
|
items: y.value,
|
|
5662
5665
|
density: T.value,
|
|
5663
5666
|
hover: S.value,
|
|
@@ -5665,9 +5668,9 @@ const xf = /* @__PURE__ */ Mt(gf, [["render", Ef]]), Rf = { key: 0 }, Sf = /* @_
|
|
|
5665
5668
|
"fixed-footer": t.value,
|
|
5666
5669
|
loading: e.value,
|
|
5667
5670
|
"multi-sort": i.value,
|
|
5668
|
-
theme:
|
|
5671
|
+
theme: s.value
|
|
5669
5672
|
}, lr({ _: 2 }, [
|
|
5670
|
-
Wo(
|
|
5673
|
+
Wo(u.value, (m) => ({
|
|
5671
5674
|
name: `item.${m.column}`,
|
|
5672
5675
|
fn: te(({ value: b }) => [
|
|
5673
5676
|
Q(he, {
|
|
@@ -5700,7 +5703,7 @@ const xf = /* @__PURE__ */ Mt(gf, [["render", Ef]]), Rf = { key: 0 }, Sf = /* @_
|
|
|
5700
5703
|
"onUpdate:modelValue": T[0] || (T[0] = (r) => Yo(v) ? v.value = r : null)
|
|
5701
5704
|
}, {
|
|
5702
5705
|
activator: te(() => [
|
|
5703
|
-
Be(c) === "editor" ? (G(),
|
|
5706
|
+
Be(c) === "editor" ? (G(), Se("div", {
|
|
5704
5707
|
key: 0,
|
|
5705
5708
|
id: `__node__@${h.value}`
|
|
5706
5709
|
}, null, 8, Nf)) : zo("", !0)
|
|
@@ -5719,10 +5722,10 @@ const xf = /* @__PURE__ */ Mt(gf, [["render", Ef]]), Rf = { key: 0 }, Sf = /* @_
|
|
|
5719
5722
|
outer: { type: Boolean }
|
|
5720
5723
|
},
|
|
5721
5724
|
setup(n) {
|
|
5722
|
-
const a = n, c = se(), h =
|
|
5725
|
+
const a = n, c = se(), h = ve(), v = R(() => {
|
|
5723
5726
|
var e;
|
|
5724
5727
|
return (e = a.node.settings) == null ? void 0 : e.value;
|
|
5725
|
-
}),
|
|
5728
|
+
}), _ = R(() => {
|
|
5726
5729
|
var e;
|
|
5727
5730
|
return (e = a.node.settings) == null ? void 0 : e.label;
|
|
5728
5731
|
}), y = R(() => {
|
|
@@ -5739,21 +5742,21 @@ const xf = /* @__PURE__ */ Mt(gf, [["render", Ef]]), Rf = { key: 0 }, Sf = /* @_
|
|
|
5739
5742
|
return c !== "runtime" ? !0 : (e = a.node.settings) == null ? void 0 : e.readonly;
|
|
5740
5743
|
}), t = R(() => h.value ? "dark" : "light");
|
|
5741
5744
|
return (e, i) => {
|
|
5742
|
-
const
|
|
5743
|
-
return Be(c) === "editor" ? (G(),
|
|
5744
|
-
Q(
|
|
5745
|
+
const s = ae("v-number-input");
|
|
5746
|
+
return Be(c) === "editor" ? (G(), Se("div", Pf, [
|
|
5747
|
+
Q(s, {
|
|
5745
5748
|
"model-value": v.value,
|
|
5746
|
-
label:
|
|
5749
|
+
label: _.value,
|
|
5747
5750
|
placeholder: y.value,
|
|
5748
5751
|
"hide-details": T.value,
|
|
5749
5752
|
"single-line": S.value,
|
|
5750
5753
|
readonly: r.value,
|
|
5751
5754
|
theme: t.value
|
|
5752
5755
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"])
|
|
5753
|
-
])) : (G(), ee(
|
|
5756
|
+
])) : (G(), ee(s, {
|
|
5754
5757
|
key: 1,
|
|
5755
5758
|
"model-value": v.value,
|
|
5756
|
-
label:
|
|
5759
|
+
label: _.value,
|
|
5757
5760
|
placeholder: y.value,
|
|
5758
5761
|
"hide-details": T.value,
|
|
5759
5762
|
"single-line": S.value,
|
|
@@ -5774,10 +5777,10 @@ const If = /* @__PURE__ */ Mt(kf, [["render", Af]]), Lf = { key: 0 }, Df = /* @_
|
|
|
5774
5777
|
outer: { type: Boolean }
|
|
5775
5778
|
},
|
|
5776
5779
|
setup(n) {
|
|
5777
|
-
const a = n, c = se(), h =
|
|
5780
|
+
const a = n, c = se(), h = ve(), v = R(() => {
|
|
5778
5781
|
var e;
|
|
5779
5782
|
return (e = a.node.settings) == null ? void 0 : e.value;
|
|
5780
|
-
}),
|
|
5783
|
+
}), _ = R(() => {
|
|
5781
5784
|
var e;
|
|
5782
5785
|
return (e = a.node.settings) == null ? void 0 : e.label;
|
|
5783
5786
|
}), y = R(() => {
|
|
@@ -5794,21 +5797,21 @@ const If = /* @__PURE__ */ Mt(kf, [["render", Af]]), Lf = { key: 0 }, Df = /* @_
|
|
|
5794
5797
|
return c !== "runtime" ? !0 : (e = a.node.settings) == null ? void 0 : e.readonly;
|
|
5795
5798
|
}), t = R(() => h.value ? "dark" : "light");
|
|
5796
5799
|
return (e, i) => {
|
|
5797
|
-
const
|
|
5798
|
-
return Be(c) === "editor" ? (G(),
|
|
5799
|
-
Q(
|
|
5800
|
+
const s = ae("v-select");
|
|
5801
|
+
return Be(c) === "editor" ? (G(), Se("div", Lf, [
|
|
5802
|
+
Q(s, {
|
|
5800
5803
|
"model-value": v.value,
|
|
5801
|
-
label:
|
|
5804
|
+
label: _.value,
|
|
5802
5805
|
placeholder: y.value,
|
|
5803
5806
|
"hide-details": T.value,
|
|
5804
5807
|
"single-line": S.value,
|
|
5805
5808
|
readonly: r.value,
|
|
5806
5809
|
theme: t.value
|
|
5807
5810
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"])
|
|
5808
|
-
])) : (G(), ee(
|
|
5811
|
+
])) : (G(), ee(s, {
|
|
5809
5812
|
key: 1,
|
|
5810
5813
|
"model-value": v.value,
|
|
5811
|
-
label:
|
|
5814
|
+
label: _.value,
|
|
5812
5815
|
placeholder: y.value,
|
|
5813
5816
|
"hide-details": T.value,
|
|
5814
5817
|
"single-line": S.value,
|
|
@@ -5829,40 +5832,40 @@ const Uf = /* @__PURE__ */ Mt(Mf, [["render", Ff]]), jf = { key: 0 }, $f = /* @_
|
|
|
5829
5832
|
outer: { type: Boolean }
|
|
5830
5833
|
},
|
|
5831
5834
|
setup(n) {
|
|
5832
|
-
const a = n, c = se(), h =
|
|
5833
|
-
var
|
|
5834
|
-
return (
|
|
5835
|
-
}),
|
|
5836
|
-
var
|
|
5837
|
-
return (
|
|
5835
|
+
const a = n, c = se(), h = ve(), v = R(() => {
|
|
5836
|
+
var u;
|
|
5837
|
+
return (u = a.node.settings) == null ? void 0 : u.label;
|
|
5838
|
+
}), _ = R(() => {
|
|
5839
|
+
var u;
|
|
5840
|
+
return (u = a.node.settings) == null ? void 0 : u.placeholder;
|
|
5838
5841
|
}), y = R(() => {
|
|
5839
|
-
var
|
|
5840
|
-
return (
|
|
5842
|
+
var u;
|
|
5843
|
+
return (u = a.node.settings) == null ? void 0 : u.hideDetails;
|
|
5841
5844
|
}), T = R(() => {
|
|
5842
|
-
var
|
|
5843
|
-
return (
|
|
5845
|
+
var u;
|
|
5846
|
+
return (u = a.node.settings) == null ? void 0 : u.singleLine;
|
|
5844
5847
|
}), S = R(() => {
|
|
5845
|
-
var
|
|
5846
|
-
return c !== "runtime" ? !0 : (
|
|
5848
|
+
var u;
|
|
5849
|
+
return c !== "runtime" ? !0 : (u = a.node.settings) == null ? void 0 : u.readonly;
|
|
5847
5850
|
}), r = R(() => h.value ? "dark" : "light"), t = R(() => {
|
|
5848
|
-
var
|
|
5849
|
-
return (
|
|
5851
|
+
var u;
|
|
5852
|
+
return (u = a.node.slots) == null ? void 0 : u.append;
|
|
5850
5853
|
}), e = R(() => {
|
|
5851
|
-
var
|
|
5852
|
-
return (
|
|
5854
|
+
var u;
|
|
5855
|
+
return (u = a.node.slots) == null ? void 0 : u.appendInner;
|
|
5853
5856
|
}), i = R(() => {
|
|
5854
|
-
var
|
|
5855
|
-
return (
|
|
5856
|
-
}),
|
|
5857
|
-
var
|
|
5858
|
-
return (
|
|
5857
|
+
var u;
|
|
5858
|
+
return (u = a.node.slots) == null ? void 0 : u.prepend;
|
|
5859
|
+
}), s = R(() => {
|
|
5860
|
+
var u;
|
|
5861
|
+
return (u = a.node.slots) == null ? void 0 : u.prependInner;
|
|
5859
5862
|
});
|
|
5860
|
-
return (
|
|
5863
|
+
return (u, l) => {
|
|
5861
5864
|
const o = ae("v-text-field");
|
|
5862
|
-
return Be(c) === "editor" ? (G(),
|
|
5865
|
+
return Be(c) === "editor" ? (G(), Se("div", jf, [
|
|
5863
5866
|
Q(o, {
|
|
5864
5867
|
label: v.value,
|
|
5865
|
-
placeholder:
|
|
5868
|
+
placeholder: _.value,
|
|
5866
5869
|
"hide-details": y.value,
|
|
5867
5870
|
"single-line": T.value,
|
|
5868
5871
|
readonly: S.value,
|
|
@@ -5898,11 +5901,11 @@ const Uf = /* @__PURE__ */ Mt(Mf, [["render", Ff]]), jf = { key: 0 }, $f = /* @_
|
|
|
5898
5901
|
]),
|
|
5899
5902
|
key: "2"
|
|
5900
5903
|
} : void 0,
|
|
5901
|
-
|
|
5904
|
+
s.value ? {
|
|
5902
5905
|
name: "prepend-inner",
|
|
5903
5906
|
fn: te(() => [
|
|
5904
5907
|
Q(he, {
|
|
5905
|
-
"ref-context": { refid:
|
|
5908
|
+
"ref-context": { refid: s.value },
|
|
5906
5909
|
state: {}
|
|
5907
5910
|
}, null, 8, ["ref-context"])
|
|
5908
5911
|
]),
|
|
@@ -5912,7 +5915,7 @@ const Uf = /* @__PURE__ */ Mt(Mf, [["render", Ff]]), jf = { key: 0 }, $f = /* @_
|
|
|
5912
5915
|
])) : (G(), ee(o, {
|
|
5913
5916
|
key: 1,
|
|
5914
5917
|
label: v.value,
|
|
5915
|
-
placeholder:
|
|
5918
|
+
placeholder: _.value,
|
|
5916
5919
|
"hide-details": y.value,
|
|
5917
5920
|
"single-line": T.value,
|
|
5918
5921
|
readonly: S.value,
|
|
@@ -5948,11 +5951,11 @@ const Uf = /* @__PURE__ */ Mt(Mf, [["render", Ff]]), jf = { key: 0 }, $f = /* @_
|
|
|
5948
5951
|
]),
|
|
5949
5952
|
key: "2"
|
|
5950
5953
|
} : void 0,
|
|
5951
|
-
|
|
5954
|
+
s.value ? {
|
|
5952
5955
|
name: "prepend-inner",
|
|
5953
5956
|
fn: te(() => [
|
|
5954
5957
|
Q(he, {
|
|
5955
|
-
"ref-context": { refid:
|
|
5958
|
+
"ref-context": { refid: s.value },
|
|
5956
5959
|
state: {}
|
|
5957
5960
|
}, null, 8, ["ref-context"])
|
|
5958
5961
|
]),
|
|
@@ -5961,7 +5964,7 @@ const Uf = /* @__PURE__ */ Mt(Mf, [["render", Ff]]), jf = { key: 0 }, $f = /* @_
|
|
|
5961
5964
|
]), 1032, ["label", "placeholder", "hide-details", "single-line", "readonly", "theme"]));
|
|
5962
5965
|
};
|
|
5963
5966
|
}
|
|
5964
|
-
}), hr = "bar_chart_v1", yr = "btn_v1", mr = "card_v1", vr = "chip_v1", br = "combobox_v1",
|
|
5967
|
+
}), hr = "bar_chart_v1", yr = "btn_v1", mr = "card_v1", vr = "chip_v1", br = "combobox_v1", gr = "container_v1", _r = "data_table_v1", Er = "dialog_v1", xr = "globality_v1", Rr = "line_chart_v1", Sr = "number_input_v1", Tr = "rating_v1", Tt = "ref_v1", Or = "select_v1", Nr = "text_area_v1", wr = "text_field_v1", F = {
|
|
5965
5968
|
key: "basic",
|
|
5966
5969
|
name: "x-runtime-lib.basic",
|
|
5967
5970
|
children: [
|
|
@@ -6234,7 +6237,7 @@ const Uf = /* @__PURE__ */ Mt(Mf, [["render", Ff]]), jf = { key: 0 }, $f = /* @_
|
|
|
6234
6237
|
default: ""
|
|
6235
6238
|
}
|
|
6236
6239
|
]
|
|
6237
|
-
},
|
|
6240
|
+
}, Ee = {
|
|
6238
6241
|
key: "size",
|
|
6239
6242
|
name: "x-runtime-lib.size",
|
|
6240
6243
|
children: [
|
|
@@ -6478,8 +6481,8 @@ const ei = {
|
|
|
6478
6481
|
events: [],
|
|
6479
6482
|
methods: [],
|
|
6480
6483
|
props: {
|
|
6481
|
-
pageCommon: [F,
|
|
6482
|
-
compCommon: [F,
|
|
6484
|
+
pageCommon: [F, Ee, wt, Pr, Ct, Nt, ei],
|
|
6485
|
+
compCommon: [F, Ee, wt, Pr, Ct, Nt, ei]
|
|
6483
6486
|
}
|
|
6484
6487
|
}, Xf = le(Pt);
|
|
6485
6488
|
Xf.children[3].defaultArray = [
|
|
@@ -6528,8 +6531,8 @@ const ti = {
|
|
|
6528
6531
|
events: [],
|
|
6529
6532
|
methods: [],
|
|
6530
6533
|
props: {
|
|
6531
|
-
pageCommon: [F,
|
|
6532
|
-
compCommon: [F,
|
|
6534
|
+
pageCommon: [F, Ee, wt, Pt, Ct, Nt, ti],
|
|
6535
|
+
compCommon: [F, Ee, wt, Pt, Ct, Nt, ti]
|
|
6533
6536
|
}
|
|
6534
6537
|
}, ri = {
|
|
6535
6538
|
key: "globalSettings",
|
|
@@ -6538,8 +6541,20 @@ const ti = {
|
|
|
6538
6541
|
{
|
|
6539
6542
|
key: "backgroundColor",
|
|
6540
6543
|
name: "x-runtime-lib.backgroundColor",
|
|
6541
|
-
|
|
6542
|
-
|
|
6544
|
+
children: [
|
|
6545
|
+
{
|
|
6546
|
+
key: "light",
|
|
6547
|
+
name: "x-runtime-lib.light",
|
|
6548
|
+
ui: "colorPicker",
|
|
6549
|
+
default: "#00000000"
|
|
6550
|
+
},
|
|
6551
|
+
{
|
|
6552
|
+
key: "dark",
|
|
6553
|
+
name: "x-runtime-lib.dark",
|
|
6554
|
+
ui: "colorPicker",
|
|
6555
|
+
default: "#00000000"
|
|
6556
|
+
}
|
|
6557
|
+
]
|
|
6543
6558
|
}
|
|
6544
6559
|
]
|
|
6545
6560
|
}, Jf = {
|
|
@@ -6608,8 +6623,8 @@ const ti = {
|
|
|
6608
6623
|
events: [],
|
|
6609
6624
|
methods: [],
|
|
6610
6625
|
props: {
|
|
6611
|
-
pageCommon: [F,
|
|
6612
|
-
compCommon: [F,
|
|
6626
|
+
pageCommon: [F, Ee, ni],
|
|
6627
|
+
compCommon: [F, Ee, ni]
|
|
6613
6628
|
}
|
|
6614
6629
|
}, ii = {
|
|
6615
6630
|
key: "settings",
|
|
@@ -6668,7 +6683,7 @@ const ti = {
|
|
|
6668
6683
|
}, Zf = {
|
|
6669
6684
|
key: mr,
|
|
6670
6685
|
name: "x-runtime-lib.card",
|
|
6671
|
-
comp:
|
|
6686
|
+
comp: gf,
|
|
6672
6687
|
slots: [
|
|
6673
6688
|
{
|
|
6674
6689
|
key: "default",
|
|
@@ -6747,9 +6762,28 @@ const ti = {
|
|
|
6747
6762
|
}, ai = {
|
|
6748
6763
|
key: "settings",
|
|
6749
6764
|
name: "x-runtime-lib.settings",
|
|
6750
|
-
children: [
|
|
6765
|
+
children: [
|
|
6766
|
+
{
|
|
6767
|
+
key: "backgroundColor",
|
|
6768
|
+
name: "x-runtime-lib.backgroundColor",
|
|
6769
|
+
children: [
|
|
6770
|
+
{
|
|
6771
|
+
key: "light",
|
|
6772
|
+
name: "x-runtime-lib.light",
|
|
6773
|
+
ui: "colorPicker",
|
|
6774
|
+
default: "#00000000"
|
|
6775
|
+
},
|
|
6776
|
+
{
|
|
6777
|
+
key: "dark",
|
|
6778
|
+
name: "x-runtime-lib.dark",
|
|
6779
|
+
ui: "colorPicker",
|
|
6780
|
+
default: "#00000000"
|
|
6781
|
+
}
|
|
6782
|
+
]
|
|
6783
|
+
}
|
|
6784
|
+
]
|
|
6751
6785
|
}, tp = {
|
|
6752
|
-
key:
|
|
6786
|
+
key: gr,
|
|
6753
6787
|
name: "x-runtime-lib.container",
|
|
6754
6788
|
comp: Tf,
|
|
6755
6789
|
slots: [
|
|
@@ -6767,8 +6801,8 @@ const ti = {
|
|
|
6767
6801
|
],
|
|
6768
6802
|
methods: [],
|
|
6769
6803
|
props: {
|
|
6770
|
-
pageCommon: [F,
|
|
6771
|
-
compCommon: [F,
|
|
6804
|
+
pageCommon: [F, Ee, qn, Zn, Qn, ai],
|
|
6805
|
+
compCommon: [F, Ee, qn, Zn, Qn, ai]
|
|
6772
6806
|
}
|
|
6773
6807
|
}, si = {
|
|
6774
6808
|
key: "size",
|
|
@@ -6923,7 +6957,7 @@ const ti = {
|
|
|
6923
6957
|
}
|
|
6924
6958
|
]
|
|
6925
6959
|
}, rp = {
|
|
6926
|
-
key:
|
|
6960
|
+
key: _r,
|
|
6927
6961
|
name: "x-runtime-lib.dataTable",
|
|
6928
6962
|
comp: Of,
|
|
6929
6963
|
slots: [],
|
|
@@ -7195,8 +7229,8 @@ const ti = {
|
|
|
7195
7229
|
mr,
|
|
7196
7230
|
vr,
|
|
7197
7231
|
br,
|
|
7198
|
-
_r,
|
|
7199
7232
|
gr,
|
|
7233
|
+
_r,
|
|
7200
7234
|
Er,
|
|
7201
7235
|
xr,
|
|
7202
7236
|
Rr,
|
|
@@ -7215,7 +7249,7 @@ const ti = {
|
|
|
7215
7249
|
yr,
|
|
7216
7250
|
mr,
|
|
7217
7251
|
vr,
|
|
7218
|
-
|
|
7252
|
+
gr,
|
|
7219
7253
|
Er,
|
|
7220
7254
|
Tt
|
|
7221
7255
|
]
|
|
@@ -7234,7 +7268,7 @@ const ti = {
|
|
|
7234
7268
|
{
|
|
7235
7269
|
key: "dataAndDisplay",
|
|
7236
7270
|
name: "x-runtime-lib.dataAndDisplay",
|
|
7237
|
-
items: [
|
|
7271
|
+
items: [_r, hr, Rr]
|
|
7238
7272
|
},
|
|
7239
7273
|
{
|
|
7240
7274
|
key: "feedback",
|
|
@@ -7275,9 +7309,9 @@ J(sp);
|
|
|
7275
7309
|
J(up);
|
|
7276
7310
|
const fp = (n, a, c) => {
|
|
7277
7311
|
const h = n[a];
|
|
7278
|
-
return h ? typeof h == "function" ? h() : Promise.resolve(h) : new Promise((v,
|
|
7312
|
+
return h ? typeof h == "function" ? h() : Promise.resolve(h) : new Promise((v, _) => {
|
|
7279
7313
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
7280
|
-
|
|
7314
|
+
_.bind(
|
|
7281
7315
|
null,
|
|
7282
7316
|
new Error(
|
|
7283
7317
|
"Unknown variable dynamic import: " + a + (a.split("/").length !== c ? ". Note that variables only represent file names one level deep." : "")
|
|
@@ -7287,16 +7321,16 @@ const fp = (n, a, c) => {
|
|
|
7287
7321
|
});
|
|
7288
7322
|
};
|
|
7289
7323
|
async function Np(n) {
|
|
7290
|
-
return (await fp(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-
|
|
7324
|
+
return (await fp(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-ghwtx5bb.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-o6ob6egv.js") }), `./locales/${n}/index.ts`, 4)).default;
|
|
7291
7325
|
}
|
|
7292
7326
|
function wp(n, a, c, h, v) {
|
|
7293
|
-
let
|
|
7327
|
+
let _ = n;
|
|
7294
7328
|
for (let T = 0; T < a.length; T++)
|
|
7295
|
-
if (
|
|
7329
|
+
if (_ = _.children[a[T]], !_) {
|
|
7296
7330
|
console.assert(!1, `unpkg context failed parentKeys=${a}`);
|
|
7297
7331
|
return;
|
|
7298
7332
|
}
|
|
7299
|
-
let y =
|
|
7333
|
+
let y = _.children[c];
|
|
7300
7334
|
y ? y.dataSeq !== h && (y = {
|
|
7301
7335
|
dataSeq: h,
|
|
7302
7336
|
data: le(v),
|
|
@@ -7305,7 +7339,7 @@ function wp(n, a, c, h, v) {
|
|
|
7305
7339
|
dataSeq: h,
|
|
7306
7340
|
data: le(v),
|
|
7307
7341
|
children: {}
|
|
7308
|
-
},
|
|
7342
|
+
}, _.children[c] = y);
|
|
7309
7343
|
}
|
|
7310
7344
|
const Pp = [
|
|
7311
7345
|
"string",
|
|
@@ -7316,7 +7350,7 @@ const Pp = [
|
|
|
7316
7350
|
];
|
|
7317
7351
|
export {
|
|
7318
7352
|
jl as duplicateNode,
|
|
7319
|
-
|
|
7353
|
+
gp as duplicateNodes,
|
|
7320
7354
|
ke as elements,
|
|
7321
7355
|
wp as ensureContext,
|
|
7322
7356
|
Pp as fieldTypes,
|
|
@@ -7325,7 +7359,7 @@ export {
|
|
|
7325
7359
|
Hn as getPropDefault,
|
|
7326
7360
|
Fl as getPropTag,
|
|
7327
7361
|
Jn as initProps,
|
|
7328
|
-
|
|
7362
|
+
ve as injectDark,
|
|
7329
7363
|
lt as injectData,
|
|
7330
7364
|
Zi as injectDepends,
|
|
7331
7365
|
Lt as injectDevice,
|
|
@@ -7344,7 +7378,7 @@ export {
|
|
|
7344
7378
|
Tp as provideData,
|
|
7345
7379
|
Op as provideDepends,
|
|
7346
7380
|
xp as provideDevice,
|
|
7347
|
-
|
|
7381
|
+
_p as provideEnv,
|
|
7348
7382
|
Ep as provideMode,
|
|
7349
7383
|
Qi as provideSandbox,
|
|
7350
7384
|
Sp as provideType,
|