x-runtime-lib 0.4.4 → 0.4.6
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/i18n/index.d.ts +1 -1
- package/dist/i18n-en-qjkol4ql.js +35 -0
- package/dist/i18n-zhHans-chbmhnb3.js +35 -0
- package/dist/index.js +283 -283
- package/package.json +1 -1
- package/dist/en-kzjkkzqt.js +0 -18
- package/dist/zhHans-gscwf2xh.js +0 -18
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var wi = Object.defineProperty;
|
|
2
2
|
var Ci = (n, s, p) => s in n ? wi(n, s, { enumerable: !0, configurable: !0, writable: !0, value: p }) : n[s] = p;
|
|
3
3
|
var wt = (n, s, p) => Ci(n, typeof s != "symbol" ? s + "" : s, p);
|
|
4
|
-
import { provide as ae, inject as oe, readonly as $e, isReactive as an, defineComponent as on, resolveComponent as
|
|
4
|
+
import { provide as ae, inject as oe, readonly as $e, isReactive as an, defineComponent as on, resolveComponent as xi, openBlock as un, createBlock as sn, unref as Ai, computed as le, ref as Cr, watchEffect as Ii, watch as ki, onBeforeUnmount as Di, h as Le } from "vue";
|
|
5
5
|
import { useI18n as Fi } from "vue-i18n";
|
|
6
6
|
import { openConfirmDlg as Li, openPromptDlg as Ui, eventBus as Mi } from "x-essential-lib";
|
|
7
7
|
const ji = /* @__PURE__ */ new Set([
|
|
@@ -22,12 +22,12 @@ const ji = /* @__PURE__ */ new Set([
|
|
|
22
22
|
groups: Bi
|
|
23
23
|
}, cn = {
|
|
24
24
|
v1: $i
|
|
25
|
-
},
|
|
25
|
+
}, xr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
26
26
|
function fn(n) {
|
|
27
27
|
let s = "";
|
|
28
28
|
for (let p = 0; p < n; p++) {
|
|
29
|
-
const y = Math.floor(Math.random() *
|
|
30
|
-
s +=
|
|
29
|
+
const y = Math.floor(Math.random() * xr.length);
|
|
30
|
+
s += xr[y];
|
|
31
31
|
}
|
|
32
32
|
return s;
|
|
33
33
|
}
|
|
@@ -68,16 +68,16 @@ function Ji(n) {
|
|
|
68
68
|
var y = !0;
|
|
69
69
|
} catch {
|
|
70
70
|
}
|
|
71
|
-
var
|
|
72
|
-
return y && (s ? n[Ue] = p : delete n[Ue]),
|
|
71
|
+
var _ = zi.call(n);
|
|
72
|
+
return y && (s ? n[Ue] = p : delete n[Ue]), _;
|
|
73
73
|
}
|
|
74
74
|
var Hi = Object.prototype, Ki = Hi.toString;
|
|
75
75
|
function qi(n) {
|
|
76
76
|
return Ki.call(n);
|
|
77
77
|
}
|
|
78
|
-
var Zi = "[object Null]", Qi = "[object Undefined]",
|
|
78
|
+
var Zi = "[object Null]", Qi = "[object Undefined]", Ar = Re ? Re.toStringTag : void 0;
|
|
79
79
|
function Ge(n) {
|
|
80
|
-
return n == null ? n === void 0 ? Qi : Zi :
|
|
80
|
+
return n == null ? n === void 0 ? Qi : Zi : Ar && Ar in Object(n) ? Ji(n) : qi(n);
|
|
81
81
|
}
|
|
82
82
|
function Ve(n) {
|
|
83
83
|
return n != null && typeof n == "object";
|
|
@@ -94,8 +94,8 @@ function hn(n) {
|
|
|
94
94
|
var s = Ge(n);
|
|
95
95
|
return s == ta || s == ra || s == ea || s == na;
|
|
96
96
|
}
|
|
97
|
-
var
|
|
98
|
-
var n = /[^.]+$/.exec(
|
|
97
|
+
var xt = K["__core-js_shared__"], Ir = function() {
|
|
98
|
+
var n = /[^.]+$/.exec(xt && xt.keys && xt.keys.IE_PROTO || "");
|
|
99
99
|
return n ? "Symbol(src)_1." + n : "";
|
|
100
100
|
}();
|
|
101
101
|
function ia(n) {
|
|
@@ -157,15 +157,15 @@ var Dr = function() {
|
|
|
157
157
|
} catch {
|
|
158
158
|
}
|
|
159
159
|
}();
|
|
160
|
-
function
|
|
160
|
+
function _a(n, s) {
|
|
161
161
|
for (var p = -1, y = n == null ? 0 : n.length; ++p < y && s(n[p], p, n) !== !1; )
|
|
162
162
|
;
|
|
163
163
|
return n;
|
|
164
164
|
}
|
|
165
|
-
var
|
|
165
|
+
var ga = 9007199254740991, ba = /^(?:0|[1-9]\d*)$/;
|
|
166
166
|
function ma(n, s) {
|
|
167
167
|
var p = typeof n;
|
|
168
|
-
return s = s ??
|
|
168
|
+
return s = s ?? ga, !!s && (p == "number" || p != "symbol" && ba.test(n)) && n > -1 && n % 1 == 0 && n < s;
|
|
169
169
|
}
|
|
170
170
|
function dn(n, s, p) {
|
|
171
171
|
s == "__proto__" && Dr ? Dr(n, s, {
|
|
@@ -184,11 +184,11 @@ function yn(n, s, p) {
|
|
|
184
184
|
(!(Oa.call(n, s) && vn(y, p)) || p === void 0 && !(s in n)) && dn(n, s, p);
|
|
185
185
|
}
|
|
186
186
|
function nt(n, s, p, y) {
|
|
187
|
-
var
|
|
187
|
+
var _ = !p;
|
|
188
188
|
p || (p = {});
|
|
189
189
|
for (var R = -1, m = s.length; ++R < m; ) {
|
|
190
190
|
var N = s[R], T = void 0;
|
|
191
|
-
T === void 0 && (T = n[N]),
|
|
191
|
+
T === void 0 && (T = n[N]), _ ? dn(p, N, T) : yn(p, N, T);
|
|
192
192
|
}
|
|
193
193
|
return p;
|
|
194
194
|
}
|
|
@@ -196,7 +196,7 @@ var Na = 9007199254740991;
|
|
|
196
196
|
function En(n) {
|
|
197
197
|
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= Na;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function _n(n) {
|
|
200
200
|
return n != null && En(n.length) && !hn(n);
|
|
201
201
|
}
|
|
202
202
|
var Ta = Object.prototype;
|
|
@@ -213,15 +213,15 @@ var Pa = "[object Arguments]";
|
|
|
213
213
|
function Fr(n) {
|
|
214
214
|
return Ve(n) && Ge(n) == Pa;
|
|
215
215
|
}
|
|
216
|
-
var
|
|
216
|
+
var gn = Object.prototype, wa = gn.hasOwnProperty, Ca = gn.propertyIsEnumerable, xa = Fr(/* @__PURE__ */ function() {
|
|
217
217
|
return arguments;
|
|
218
218
|
}()) ? Fr : function(n) {
|
|
219
219
|
return Ve(n) && wa.call(n, "callee") && !Ca.call(n, "callee");
|
|
220
220
|
};
|
|
221
|
-
function
|
|
221
|
+
function Aa() {
|
|
222
222
|
return !1;
|
|
223
223
|
}
|
|
224
|
-
var bn = typeof exports == "object" && exports && !exports.nodeType && exports, Lr = bn && typeof module == "object" && module && !module.nodeType && module, Ia = Lr && Lr.exports === bn, Ur = Ia ? K.Buffer : void 0, ka = Ur ? Ur.isBuffer : void 0, mn = ka ||
|
|
224
|
+
var bn = typeof exports == "object" && exports && !exports.nodeType && exports, Lr = bn && typeof module == "object" && module && !module.nodeType && module, Ia = Lr && Lr.exports === bn, Ur = Ia ? K.Buffer : void 0, ka = Ur ? Ur.isBuffer : void 0, mn = ka || Aa, Da = "[object Arguments]", Fa = "[object Array]", La = "[object Boolean]", Ua = "[object Date]", Ma = "[object Error]", ja = "[object Function]", Ba = "[object Map]", $a = "[object Number]", Ga = "[object Object]", Va = "[object RegExp]", Ya = "[object Set]", Xa = "[object String]", Wa = "[object WeakMap]", za = "[object ArrayBuffer]", Ja = "[object DataView]", Ha = "[object Float32Array]", Ka = "[object Float64Array]", qa = "[object Int8Array]", Za = "[object Int16Array]", Qa = "[object Int32Array]", eo = "[object Uint8Array]", to = "[object Uint8ClampedArray]", ro = "[object Uint16Array]", no = "[object Uint32Array]", L = {};
|
|
225
225
|
L[Ha] = L[Ka] = L[qa] = L[Za] = L[Qa] = L[eo] = L[to] = L[ro] = L[no] = !0;
|
|
226
226
|
L[Da] = L[Fa] = L[za] = L[La] = L[Ja] = L[Ua] = L[Ma] = L[ja] = L[Ba] = L[$a] = L[Ga] = L[Va] = L[Ya] = L[Xa] = L[Wa] = !1;
|
|
227
227
|
function io(n) {
|
|
@@ -232,19 +232,19 @@ function jt(n) {
|
|
|
232
232
|
return n(s);
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
-
var Rn = typeof exports == "object" && exports && !exports.nodeType && exports, Me = Rn && typeof module == "object" && module && !module.nodeType && module, ao = Me && Me.exports === Rn,
|
|
235
|
+
var Rn = typeof exports == "object" && exports && !exports.nodeType && exports, Me = Rn && typeof module == "object" && module && !module.nodeType && module, ao = Me && Me.exports === Rn, At = ao && ln.process, Oe = function() {
|
|
236
236
|
try {
|
|
237
237
|
var n = Me && Me.require && Me.require("util").types;
|
|
238
|
-
return n ||
|
|
238
|
+
return n || At && At.binding && At.binding("util");
|
|
239
239
|
} catch {
|
|
240
240
|
}
|
|
241
241
|
}(), Mr = Oe && Oe.isTypedArray, oo = Mr ? jt(Mr) : io, uo = Object.prototype, so = uo.hasOwnProperty;
|
|
242
242
|
function On(n, s) {
|
|
243
|
-
var p = Ut(n), y = !p &&
|
|
243
|
+
var p = Ut(n), y = !p && xa(n), _ = !p && !y && mn(n), R = !p && !y && !_ && oo(n), m = p || y || _ || R, N = m ? Sa(n.length, String) : [], T = N.length;
|
|
244
244
|
for (var r in n)
|
|
245
245
|
(s || so.call(n, r)) && !(m && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
246
246
|
(r == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
247
|
-
|
|
247
|
+
_ && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
248
248
|
R && (r == "buffer" || r == "byteLength" || r == "byteOffset") || // Skip index properties.
|
|
249
249
|
ma(r, T))) && N.push(r);
|
|
250
250
|
return N;
|
|
@@ -264,7 +264,7 @@ function po(n) {
|
|
|
264
264
|
return s;
|
|
265
265
|
}
|
|
266
266
|
function Bt(n) {
|
|
267
|
-
return
|
|
267
|
+
return _n(n) ? On(n) : po(n);
|
|
268
268
|
}
|
|
269
269
|
function ho(n) {
|
|
270
270
|
var s = [];
|
|
@@ -283,13 +283,13 @@ function Eo(n) {
|
|
|
283
283
|
return p;
|
|
284
284
|
}
|
|
285
285
|
function $t(n) {
|
|
286
|
-
return
|
|
286
|
+
return _n(n) ? On(n, !0) : Eo(n);
|
|
287
287
|
}
|
|
288
288
|
var je = de(Object, "create");
|
|
289
|
-
function
|
|
289
|
+
function _o() {
|
|
290
290
|
this.__data__ = je ? je(null) : {}, this.size = 0;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function go(n) {
|
|
293
293
|
var s = this.has(n) && delete this.__data__[n];
|
|
294
294
|
return this.size -= s ? 1 : 0, s;
|
|
295
295
|
}
|
|
@@ -319,8 +319,8 @@ function pe(n) {
|
|
|
319
319
|
this.set(y[0], y[1]);
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
|
-
pe.prototype.clear =
|
|
323
|
-
pe.prototype.delete =
|
|
322
|
+
pe.prototype.clear = _o;
|
|
323
|
+
pe.prototype.delete = go;
|
|
324
324
|
pe.prototype.get = Oo;
|
|
325
325
|
pe.prototype.has = So;
|
|
326
326
|
pe.prototype.set = wo;
|
|
@@ -333,13 +333,13 @@ function it(n, s) {
|
|
|
333
333
|
return p;
|
|
334
334
|
return -1;
|
|
335
335
|
}
|
|
336
|
-
var
|
|
336
|
+
var xo = Array.prototype, Ao = xo.splice;
|
|
337
337
|
function Io(n) {
|
|
338
338
|
var s = this.__data__, p = it(s, n);
|
|
339
339
|
if (p < 0)
|
|
340
340
|
return !1;
|
|
341
341
|
var y = s.length - 1;
|
|
342
|
-
return p == y ? s.pop() :
|
|
342
|
+
return p == y ? s.pop() : Ao.call(s, p, 1), --this.size, !0;
|
|
343
343
|
}
|
|
344
344
|
function ko(n) {
|
|
345
345
|
var s = this.__data__, p = it(s, n);
|
|
@@ -407,8 +407,8 @@ Te.prototype.get = jo;
|
|
|
407
407
|
Te.prototype.has = Bo;
|
|
408
408
|
Te.prototype.set = $o;
|
|
409
409
|
function Tn(n, s) {
|
|
410
|
-
for (var p = -1, y = s.length,
|
|
411
|
-
n[
|
|
410
|
+
for (var p = -1, y = s.length, _ = n.length; ++p < y; )
|
|
411
|
+
n[_ + p] = s[p];
|
|
412
412
|
return n;
|
|
413
413
|
}
|
|
414
414
|
var Sn = Nn(Object.getPrototypeOf, Object);
|
|
@@ -459,9 +459,9 @@ function qo(n, s) {
|
|
|
459
459
|
return n.copy(y), y;
|
|
460
460
|
}
|
|
461
461
|
function Zo(n, s) {
|
|
462
|
-
for (var p = -1, y = n == null ? 0 : n.length,
|
|
462
|
+
for (var p = -1, y = n == null ? 0 : n.length, _ = 0, R = []; ++p < y; ) {
|
|
463
463
|
var m = n[p];
|
|
464
|
-
s(m, p, n) && (R[
|
|
464
|
+
s(m, p, n) && (R[_++] = m);
|
|
465
465
|
}
|
|
466
466
|
return R;
|
|
467
467
|
}
|
|
@@ -484,15 +484,15 @@ var ru = Object.getOwnPropertySymbols, Cn = ru ? function(n) {
|
|
|
484
484
|
function nu(n, s) {
|
|
485
485
|
return nt(n, Cn(n), s);
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function xn(n, s, p) {
|
|
488
488
|
var y = s(n);
|
|
489
489
|
return Ut(n) ? y : Tn(y, p(n));
|
|
490
490
|
}
|
|
491
491
|
function iu(n) {
|
|
492
|
-
return
|
|
492
|
+
return xn(n, Bt, Gt);
|
|
493
493
|
}
|
|
494
494
|
function au(n) {
|
|
495
|
-
return
|
|
495
|
+
return xn(n, $t, Cn);
|
|
496
496
|
}
|
|
497
497
|
var kt = de(K, "DataView"), Dt = de(K, "Promise"), Ft = de(K, "Set"), Vr = "[object Map]", ou = "[object Object]", Yr = "[object Promise]", Xr = "[object Set]", Wr = "[object WeakMap]", zr = "[object DataView]", uu = he(kt), su = he(Be), cu = he(Dt), fu = he(Ft), lu = he(It), ee = Ge;
|
|
498
498
|
(kt && ee(new kt(new ArrayBuffer(1))) != zr || Be && ee(new Be()) != Vr || Dt && ee(Dt.resolve()) != Yr || Ft && ee(new Ft()) != Xr || It && ee(new It()) != Wr) && (ee = function(n) {
|
|
@@ -532,14 +532,14 @@ function Eu(n) {
|
|
|
532
532
|
return s.lastIndex = n.lastIndex, s;
|
|
533
533
|
}
|
|
534
534
|
var Hr = Re ? Re.prototype : void 0, Kr = Hr ? Hr.valueOf : void 0;
|
|
535
|
-
function
|
|
535
|
+
function _u(n) {
|
|
536
536
|
return Kr ? Object(Kr.call(n)) : {};
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function gu(n, s) {
|
|
539
539
|
var p = s ? Vt(n.buffer) : n.buffer;
|
|
540
540
|
return new n.constructor(p, n.byteOffset, n.length);
|
|
541
541
|
}
|
|
542
|
-
var bu = "[object Boolean]", mu = "[object Date]", Ru = "[object Map]", Ou = "[object Number]", Nu = "[object RegExp]", Tu = "[object Set]", Su = "[object String]", Pu = "[object Symbol]", wu = "[object ArrayBuffer]", Cu = "[object DataView]",
|
|
542
|
+
var bu = "[object Boolean]", mu = "[object Date]", Ru = "[object Map]", Ou = "[object Number]", Nu = "[object RegExp]", Tu = "[object Set]", Su = "[object String]", Pu = "[object Symbol]", wu = "[object ArrayBuffer]", Cu = "[object DataView]", xu = "[object Float32Array]", Au = "[object Float64Array]", Iu = "[object Int8Array]", ku = "[object Int16Array]", Du = "[object Int32Array]", Fu = "[object Uint8Array]", Lu = "[object Uint8ClampedArray]", Uu = "[object Uint16Array]", Mu = "[object Uint32Array]";
|
|
543
543
|
function ju(n, s, p) {
|
|
544
544
|
var y = n.constructor;
|
|
545
545
|
switch (s) {
|
|
@@ -550,8 +550,8 @@ function ju(n, s, p) {
|
|
|
550
550
|
return new y(+n);
|
|
551
551
|
case Cu:
|
|
552
552
|
return vu(n, p);
|
|
553
|
-
case Au:
|
|
554
553
|
case xu:
|
|
554
|
+
case Au:
|
|
555
555
|
case Iu:
|
|
556
556
|
case ku:
|
|
557
557
|
case Du:
|
|
@@ -559,7 +559,7 @@ function ju(n, s, p) {
|
|
|
559
559
|
case Lu:
|
|
560
560
|
case Uu:
|
|
561
561
|
case Mu:
|
|
562
|
-
return
|
|
562
|
+
return gu(n, p);
|
|
563
563
|
case Ru:
|
|
564
564
|
return new y();
|
|
565
565
|
case Ou:
|
|
@@ -570,7 +570,7 @@ function ju(n, s, p) {
|
|
|
570
570
|
case Tu:
|
|
571
571
|
return new y();
|
|
572
572
|
case Pu:
|
|
573
|
-
return
|
|
573
|
+
return _u(n);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
576
|
function Bu(n) {
|
|
@@ -584,10 +584,10 @@ var qr = Oe && Oe.isMap, Vu = qr ? jt(qr) : Gu, Yu = "[object Set]";
|
|
|
584
584
|
function Xu(n) {
|
|
585
585
|
return Ve(n) && ee(n) == Yu;
|
|
586
586
|
}
|
|
587
|
-
var Zr = Oe && Oe.isSet, Wu = Zr ? jt(Zr) : Xu, zu = 1, Ju = 2, Hu = 4,
|
|
588
|
-
F[
|
|
587
|
+
var Zr = Oe && Oe.isSet, Wu = Zr ? jt(Zr) : Xu, zu = 1, Ju = 2, Hu = 4, An = "[object Arguments]", Ku = "[object Array]", qu = "[object Boolean]", Zu = "[object Date]", Qu = "[object Error]", In = "[object Function]", es = "[object GeneratorFunction]", ts = "[object Map]", rs = "[object Number]", kn = "[object Object]", ns = "[object RegExp]", is = "[object Set]", as = "[object String]", os = "[object Symbol]", us = "[object WeakMap]", ss = "[object ArrayBuffer]", cs = "[object DataView]", fs = "[object Float32Array]", ls = "[object Float64Array]", ps = "[object Int8Array]", hs = "[object Int16Array]", ds = "[object Int32Array]", vs = "[object Uint8Array]", ys = "[object Uint8ClampedArray]", Es = "[object Uint16Array]", _s = "[object Uint32Array]", F = {};
|
|
588
|
+
F[An] = F[Ku] = F[ss] = F[cs] = F[qu] = F[Zu] = F[fs] = F[ls] = F[ps] = F[hs] = F[ds] = F[ts] = F[rs] = F[kn] = F[ns] = F[is] = F[as] = F[os] = F[vs] = F[ys] = F[Es] = F[_s] = !0;
|
|
589
589
|
F[Qu] = F[In] = F[us] = !1;
|
|
590
|
-
function rt(n, s, p, y,
|
|
590
|
+
function rt(n, s, p, y, _, R) {
|
|
591
591
|
var m, N = s & zu, T = s & Ju, r = s & Hu;
|
|
592
592
|
if (m !== void 0)
|
|
593
593
|
return m;
|
|
@@ -601,12 +601,12 @@ function rt(n, s, p, y, g, R) {
|
|
|
601
601
|
var e = ee(n), i = e == In || e == es;
|
|
602
602
|
if (mn(n))
|
|
603
603
|
return qo(n, N);
|
|
604
|
-
if (e == kn || e ==
|
|
604
|
+
if (e == kn || e == An || i && !_) {
|
|
605
605
|
if (m = T || i ? {} : Bu(n), !N)
|
|
606
606
|
return T ? nu(n, Ho(m, n)) : tu(n, Jo(m, n));
|
|
607
607
|
} else {
|
|
608
608
|
if (!F[e])
|
|
609
|
-
return
|
|
609
|
+
return _ ? n : {};
|
|
610
610
|
m = ju(n, e, N);
|
|
611
611
|
}
|
|
612
612
|
}
|
|
@@ -620,13 +620,13 @@ function rt(n, s, p, y, g, R) {
|
|
|
620
620
|
m.set(l, rt(a, s, p, l, n, R));
|
|
621
621
|
});
|
|
622
622
|
var u = r ? T ? au : iu : T ? $t : Bt, c = t ? void 0 : u(n);
|
|
623
|
-
return
|
|
623
|
+
return _a(c || n, function(a, l) {
|
|
624
624
|
c && (l = a, a = n[l]), yn(m, l, rt(a, s, p, l, n, R));
|
|
625
625
|
}), m;
|
|
626
626
|
}
|
|
627
|
-
var
|
|
627
|
+
var gs = 1, bs = 4;
|
|
628
628
|
function Lt(n) {
|
|
629
|
-
return rt(n,
|
|
629
|
+
return rt(n, gs | bs);
|
|
630
630
|
}
|
|
631
631
|
function ms(n, s) {
|
|
632
632
|
if (n === "page") {
|
|
@@ -655,14 +655,14 @@ function Qr(n) {
|
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
function en(n, s) {
|
|
658
|
-
function p(y,
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
}) : y[
|
|
658
|
+
function p(y, _) {
|
|
659
|
+
_.static || (_.children ? _.array ? y[_.key] = Qr(_) : _.children.forEach((R) => {
|
|
660
|
+
_.keyFlag ? p(y, R) : (y[_.key] = {}, p(y[_.key], R));
|
|
661
|
+
}) : y[_.key] = Qr(_));
|
|
662
662
|
}
|
|
663
663
|
s.forEach((y) => p(n, y));
|
|
664
664
|
}
|
|
665
|
-
function Rs(n, s, p, y,
|
|
665
|
+
function Rs(n, s, p, y, _) {
|
|
666
666
|
const R = ms(n, s);
|
|
667
667
|
if (!R) {
|
|
668
668
|
console.error("invalid prop tag");
|
|
@@ -677,38 +677,38 @@ function Rs(n, s, p, y, g) {
|
|
|
677
677
|
if (y) {
|
|
678
678
|
const r = m.refKey;
|
|
679
679
|
if (!m.elements.has(r)) {
|
|
680
|
-
console.error(`[ref] element not found in pkg key=${
|
|
680
|
+
console.error(`[ref] element not found in pkg key=${_}`);
|
|
681
681
|
return;
|
|
682
682
|
}
|
|
683
683
|
const t = Ne[r];
|
|
684
684
|
if (!t) {
|
|
685
|
-
console.error(`[ref] element not found in global key=${
|
|
685
|
+
console.error(`[ref] element not found in global key=${_}`);
|
|
686
686
|
return;
|
|
687
687
|
}
|
|
688
688
|
const e = t.props[R];
|
|
689
689
|
if (!e) {
|
|
690
|
-
console.error(`[ref] props not found key=${
|
|
690
|
+
console.error(`[ref] props not found key=${_} tag=${R}`);
|
|
691
691
|
return;
|
|
692
692
|
}
|
|
693
693
|
en(N, e), N.id = T, N.ref = {
|
|
694
|
-
id:
|
|
694
|
+
id: _
|
|
695
695
|
};
|
|
696
696
|
} else {
|
|
697
|
-
if (!m.elements.has(
|
|
698
|
-
console.error(`[key] element not found in pkg key=${
|
|
697
|
+
if (!m.elements.has(_)) {
|
|
698
|
+
console.error(`[key] element not found in pkg key=${_}`);
|
|
699
699
|
return;
|
|
700
700
|
}
|
|
701
|
-
const r = Ne[
|
|
701
|
+
const r = Ne[_];
|
|
702
702
|
if (!r) {
|
|
703
|
-
console.error(`[key] element not found in global key=${
|
|
703
|
+
console.error(`[key] element not found in global key=${_}`);
|
|
704
704
|
return;
|
|
705
705
|
}
|
|
706
706
|
const t = r.props[R];
|
|
707
707
|
if (!t) {
|
|
708
|
-
console.error(`[key] props not found key=${
|
|
708
|
+
console.error(`[key] props not found key=${_} tag=${R}`);
|
|
709
709
|
return;
|
|
710
710
|
}
|
|
711
|
-
en(N, t), N.id = T, N.key =
|
|
711
|
+
en(N, t), N.id = T, N.key = _, r.leaf || (N.children = []);
|
|
712
712
|
}
|
|
713
713
|
return N;
|
|
714
714
|
}
|
|
@@ -717,22 +717,22 @@ function cc(n, s) {
|
|
|
717
717
|
if (y.id === s)
|
|
718
718
|
return y;
|
|
719
719
|
if (y.children)
|
|
720
|
-
for (let
|
|
721
|
-
const R = p(y.children[
|
|
720
|
+
for (let _ = 0; _ < y.children.length; _++) {
|
|
721
|
+
const R = p(y.children[_]);
|
|
722
722
|
if (R)
|
|
723
723
|
return R;
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
726
|
for (let y = 0; y < n.length; y++) {
|
|
727
|
-
const
|
|
728
|
-
if (
|
|
729
|
-
return
|
|
727
|
+
const _ = p(n[y]);
|
|
728
|
+
if (_)
|
|
729
|
+
return _;
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
732
|
function fc(n) {
|
|
733
733
|
function s(y) {
|
|
734
|
-
var
|
|
735
|
-
y.id = fn(16), (
|
|
734
|
+
var _;
|
|
735
|
+
y.id = fn(16), (_ = y.children) == null || _.forEach((R) => s(R));
|
|
736
736
|
}
|
|
737
737
|
const p = Lt(n);
|
|
738
738
|
return s(p), p;
|
|
@@ -782,20 +782,20 @@ function Cs() {
|
|
|
782
782
|
const n = oe(Bn);
|
|
783
783
|
return console.assert(an(n)), n;
|
|
784
784
|
}
|
|
785
|
-
function
|
|
785
|
+
function xs(n) {
|
|
786
786
|
ae($n, $e(n));
|
|
787
787
|
}
|
|
788
|
-
function
|
|
788
|
+
function _c() {
|
|
789
789
|
return oe($n);
|
|
790
790
|
}
|
|
791
|
-
const
|
|
791
|
+
const As = /* @__PURE__ */ on({
|
|
792
792
|
__name: "index",
|
|
793
793
|
setup(n) {
|
|
794
794
|
const s = Ss();
|
|
795
795
|
return (p, y) => {
|
|
796
|
-
const
|
|
797
|
-
return un(), sn(
|
|
798
|
-
theme:
|
|
796
|
+
const _ = xi("v-btn");
|
|
797
|
+
return un(), sn(_, {
|
|
798
|
+
theme: Ai(s) ? "dark" : "light"
|
|
799
799
|
}, null, 8, ["theme"]);
|
|
800
800
|
};
|
|
801
801
|
}
|
|
@@ -806,11 +806,11 @@ const xs = /* @__PURE__ */ on({
|
|
|
806
806
|
], tn = {
|
|
807
807
|
key: "settings",
|
|
808
808
|
keyFlag: !0,
|
|
809
|
-
name: "settings",
|
|
809
|
+
name: "x-runtime-lib.settings",
|
|
810
810
|
children: [
|
|
811
811
|
{
|
|
812
812
|
key: "density",
|
|
813
|
-
name: "density",
|
|
813
|
+
name: "x-runtime-lib.density",
|
|
814
814
|
ui: "select",
|
|
815
815
|
items: Is,
|
|
816
816
|
default: "default"
|
|
@@ -818,13 +818,13 @@ const xs = /* @__PURE__ */ on({
|
|
|
818
818
|
]
|
|
819
819
|
}, ks = {
|
|
820
820
|
key: "btn_v1",
|
|
821
|
-
name: "button",
|
|
822
|
-
comp:
|
|
821
|
+
name: "x-runtime-lib.button",
|
|
822
|
+
comp: As,
|
|
823
823
|
leaf: !0,
|
|
824
824
|
events: [
|
|
825
825
|
{
|
|
826
826
|
key: "click",
|
|
827
|
-
name: "click"
|
|
827
|
+
name: "x-runtime-lib.click"
|
|
828
828
|
}
|
|
829
829
|
],
|
|
830
830
|
methods: [],
|
|
@@ -834,46 +834,46 @@ const xs = /* @__PURE__ */ on({
|
|
|
834
834
|
}
|
|
835
835
|
}, rn = {
|
|
836
836
|
key: "globalSettings",
|
|
837
|
-
name: "globalSettings",
|
|
837
|
+
name: "x-runtime-lib.globalSettings",
|
|
838
838
|
children: [
|
|
839
839
|
{
|
|
840
840
|
key: "backgroundColor",
|
|
841
|
-
name: "backgroundColor",
|
|
841
|
+
name: "x-runtime-lib.backgroundColor",
|
|
842
842
|
ui: "colorPicker",
|
|
843
843
|
default: "#00000000"
|
|
844
844
|
}
|
|
845
845
|
]
|
|
846
846
|
}, Ds = {
|
|
847
847
|
key: "globality_v1",
|
|
848
|
-
name: "globality",
|
|
848
|
+
name: "x-runtime-lib.globality",
|
|
849
849
|
comp: "",
|
|
850
850
|
leaf: !1,
|
|
851
851
|
events: [
|
|
852
852
|
{
|
|
853
853
|
key: "startup",
|
|
854
|
-
name: "startup"
|
|
854
|
+
name: "x-runtime-lib.startup"
|
|
855
855
|
},
|
|
856
856
|
{
|
|
857
857
|
key: "screenSizeInitOrChange",
|
|
858
|
-
name: "screenSizeInitOrChange",
|
|
858
|
+
name: "x-runtime-lib.screenSizeInitOrChange",
|
|
859
859
|
params: [
|
|
860
860
|
{
|
|
861
861
|
key: "newScreenSize",
|
|
862
|
-
name: "newScreenSize"
|
|
862
|
+
name: "x-runtime-lib.newScreenSize"
|
|
863
863
|
},
|
|
864
864
|
{
|
|
865
865
|
key: "oldScreenSize",
|
|
866
|
-
name: "oldScreenSize"
|
|
866
|
+
name: "x-runtime-lib.oldScreenSize"
|
|
867
867
|
}
|
|
868
868
|
]
|
|
869
869
|
},
|
|
870
870
|
{
|
|
871
871
|
key: "darkModeInitOrChange",
|
|
872
|
-
name: "darkModeInitOrChange",
|
|
872
|
+
name: "x-runtime-lib.darkModeInitOrChange",
|
|
873
873
|
params: [
|
|
874
874
|
{
|
|
875
875
|
key: "isDarkMode",
|
|
876
|
-
name: "isDarkMode"
|
|
876
|
+
name: "x-runtime-lib.isDarkMode"
|
|
877
877
|
}
|
|
878
878
|
]
|
|
879
879
|
}
|
|
@@ -886,7 +886,7 @@ const xs = /* @__PURE__ */ on({
|
|
|
886
886
|
internal: !0
|
|
887
887
|
};
|
|
888
888
|
function Fs(n) {
|
|
889
|
-
const s = Ns(), p = Ts(), y = le(() => n.node.width),
|
|
889
|
+
const s = Ns(), p = Ts(), y = le(() => n.node.width), _ = le(() => n.node.minWidth), R = le(() => n.node.maxWidth), m = le(() => {
|
|
890
890
|
if (n.outer && s === "editor") {
|
|
891
891
|
const t = Ct(n.node.height);
|
|
892
892
|
if (t)
|
|
@@ -909,9 +909,9 @@ function Fs(n) {
|
|
|
909
909
|
return n.node.maxHeight;
|
|
910
910
|
});
|
|
911
911
|
function r(t) {
|
|
912
|
-
y.value && (t.width = y.value),
|
|
912
|
+
y.value && (t.width = y.value), _.value && (t.minWidth = _.value), R.value && (t.maxWidth = R.value), m.value && (t.height = m.value), N.value && (t.minHeight = N.value), T.value && (t.maxHeight = T.value);
|
|
913
913
|
}
|
|
914
|
-
return { width: y, minWidth:
|
|
914
|
+
return { width: y, minWidth: _, maxWidth: R, height: m, minHeight: N, maxHeight: T, applySize: r };
|
|
915
915
|
}
|
|
916
916
|
var Ls = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
917
917
|
function Us(n) {
|
|
@@ -927,8 +927,8 @@ function Ms(n) {
|
|
|
927
927
|
p.prototype = s.prototype;
|
|
928
928
|
} else p = {};
|
|
929
929
|
return Object.defineProperty(p, "__esModule", { value: !0 }), Object.keys(n).forEach(function(y) {
|
|
930
|
-
var
|
|
931
|
-
Object.defineProperty(p, y,
|
|
930
|
+
var _ = Object.getOwnPropertyDescriptor(n, y);
|
|
931
|
+
Object.defineProperty(p, y, _.get ? _ : {
|
|
932
932
|
enumerable: !0,
|
|
933
933
|
get: function() {
|
|
934
934
|
return n[y];
|
|
@@ -942,8 +942,8 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
942
942
|
default: js
|
|
943
943
|
}, Symbol.toStringTag, { value: "Module" })), $s = /* @__PURE__ */ Ms(Bs);
|
|
944
944
|
(function(n, s) {
|
|
945
|
-
(function(y,
|
|
946
|
-
n.exports =
|
|
945
|
+
(function(y, _) {
|
|
946
|
+
n.exports = _();
|
|
947
947
|
})(Ls, () => (
|
|
948
948
|
/******/
|
|
949
949
|
(() => {
|
|
@@ -1244,8 +1244,8 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1244
1244
|
var a = "";
|
|
1245
1245
|
var l = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1246
1246
|
if (l) {
|
|
1247
|
-
for (var v = l.split(/\s*,\s*/),
|
|
1248
|
-
var O = v[
|
|
1247
|
+
for (var v = l.split(/\s*,\s*/), g = 0; g < v.length; g++) {
|
|
1248
|
+
var O = v[g];
|
|
1249
1249
|
o.test(O) || e.throwException(
|
|
1250
1250
|
e.SYNTAX_ERROR,
|
|
1251
1251
|
"Invalid function argument: " + O
|
|
@@ -1491,8 +1491,8 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1491
1491
|
e.TYPE_ERROR,
|
|
1492
1492
|
"Object.getOwnPropertyDescriptor called on non-object: " + c
|
|
1493
1493
|
), a = String(a), a in c.properties) {
|
|
1494
|
-
var l = Object.getOwnPropertyDescriptor(c.properties, a), v = c.getter[a],
|
|
1495
|
-
return v ||
|
|
1494
|
+
var l = Object.getOwnPropertyDescriptor(c.properties, a), v = c.getter[a], g = c.setter[a], O = e.createObjectProto(e.OBJECT_PROTO);
|
|
1495
|
+
return v || g ? (e.setProperty(O, "get", v), e.setProperty(O, "set", g)) : (e.setProperty(
|
|
1496
1496
|
O,
|
|
1497
1497
|
"value",
|
|
1498
1498
|
/** @type {!Interpreter.Value} */
|
|
@@ -2081,18 +2081,18 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2081
2081
|
/** @type {?} */
|
|
2082
2082
|
v
|
|
2083
2083
|
);
|
|
2084
|
-
} catch (
|
|
2084
|
+
} catch (g) {
|
|
2085
2085
|
e.throwException(
|
|
2086
2086
|
e.ERROR,
|
|
2087
|
-
"localeCompare: " +
|
|
2087
|
+
"localeCompare: " + g.message
|
|
2088
2088
|
);
|
|
2089
2089
|
}
|
|
2090
2090
|
}, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a, l, v) {
|
|
2091
|
-
var
|
|
2091
|
+
var g = String(this);
|
|
2092
2092
|
if (l = l ? Number(l) : void 0, e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, v), e.REGEXP_MODE === 2)) {
|
|
2093
2093
|
if (r.vm) {
|
|
2094
2094
|
var O = {
|
|
2095
|
-
string:
|
|
2095
|
+
string: g,
|
|
2096
2096
|
separator: a,
|
|
2097
2097
|
limit: l
|
|
2098
2098
|
}, b = "string.split(separator, limit)", D = e.vmCall(b, O, a, v);
|
|
@@ -2105,20 +2105,20 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2105
2105
|
);
|
|
2106
2106
|
P.onmessage = function(X) {
|
|
2107
2107
|
clearTimeout(I), v(e.nativeToPseudo(X.data));
|
|
2108
|
-
}, P.postMessage(["split",
|
|
2108
|
+
}, P.postMessage(["split", g, a, l]);
|
|
2109
2109
|
}
|
|
2110
2110
|
return;
|
|
2111
2111
|
}
|
|
2112
|
-
var D =
|
|
2112
|
+
var D = g.split(a, l);
|
|
2113
2113
|
v(e.nativeToPseudo(D));
|
|
2114
2114
|
}, this.setAsyncFunctionPrototype(this.STRING, "split", i), i = function(a, l) {
|
|
2115
2115
|
var v = String(this);
|
|
2116
2116
|
if (a = e.isa(a, e.REGEXP) ? a.data : new RegExp(a), e.maybeThrowRegExp(a, l), e.REGEXP_MODE === 2) {
|
|
2117
2117
|
if (r.vm) {
|
|
2118
|
-
var
|
|
2118
|
+
var g = {
|
|
2119
2119
|
string: v,
|
|
2120
2120
|
regexp: a
|
|
2121
|
-
}, O = "string.match(regexp)", I = e.vmCall(O,
|
|
2121
|
+
}, O = "string.match(regexp)", I = e.vmCall(O, g, a, l);
|
|
2122
2122
|
I !== r.REGEXP_TIMEOUT && l(I && e.matchToPseudo_(I));
|
|
2123
2123
|
} else {
|
|
2124
2124
|
var b = e.createWorker(), P = e.regExpTimeout(a, b, l);
|
|
@@ -2134,10 +2134,10 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2134
2134
|
var v = String(this);
|
|
2135
2135
|
if (e.isa(a, e.REGEXP) ? a = a.data : a = new RegExp(a), e.maybeThrowRegExp(a, l), e.REGEXP_MODE === 2) {
|
|
2136
2136
|
if (r.vm) {
|
|
2137
|
-
var
|
|
2137
|
+
var g = {
|
|
2138
2138
|
string: v,
|
|
2139
2139
|
regexp: a
|
|
2140
|
-
}, O = "string.search(regexp)", b = e.vmCall(O,
|
|
2140
|
+
}, O = "string.search(regexp)", b = e.vmCall(O, g, a, l);
|
|
2141
2141
|
b !== r.REGEXP_TIMEOUT && l(b);
|
|
2142
2142
|
} else {
|
|
2143
2143
|
var P = e.createWorker(), I = e.regExpTimeout(a, P, l);
|
|
@@ -2149,11 +2149,11 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2149
2149
|
}
|
|
2150
2150
|
l(v.search(a));
|
|
2151
2151
|
}, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a, l, v) {
|
|
2152
|
-
var
|
|
2152
|
+
var g = String(this);
|
|
2153
2153
|
if (l = String(l), e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, v), e.REGEXP_MODE === 2)) {
|
|
2154
2154
|
if (r.vm) {
|
|
2155
2155
|
var O = {
|
|
2156
|
-
string:
|
|
2156
|
+
string: g,
|
|
2157
2157
|
substr: a,
|
|
2158
2158
|
newSubstr: l
|
|
2159
2159
|
}, b = "string.replace(substr, newSubstr)", P = e.vmCall(b, O, a, v);
|
|
@@ -2166,11 +2166,11 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2166
2166
|
);
|
|
2167
2167
|
I.onmessage = function(X) {
|
|
2168
2168
|
clearTimeout(D), v(X.data);
|
|
2169
|
-
}, I.postMessage(["replace",
|
|
2169
|
+
}, I.postMessage(["replace", g, a, l]);
|
|
2170
2170
|
}
|
|
2171
2171
|
return;
|
|
2172
2172
|
}
|
|
2173
|
-
v(
|
|
2173
|
+
v(g.replace(a, l));
|
|
2174
2174
|
}, this.setAsyncFunctionPrototype(this.STRING, "replace", i), this.polyfills_.push(
|
|
2175
2175
|
/* POLYFILL START */
|
|
2176
2176
|
"(function() {",
|
|
@@ -2366,8 +2366,8 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2366
2366
|
e.TYPE_ERROR,
|
|
2367
2367
|
c + " not called on a Date"
|
|
2368
2368
|
);
|
|
2369
|
-
for (var v = [],
|
|
2370
|
-
v[
|
|
2369
|
+
for (var v = [], g = 0; g < arguments.length; g++)
|
|
2370
|
+
v[g] = e.pseudoToNative(arguments[g]);
|
|
2371
2371
|
return l[c].apply(l, v);
|
|
2372
2372
|
};
|
|
2373
2373
|
}(o[u]), this.setNativeFunctionPrototype(this.DATE, o[u], i);
|
|
@@ -2445,10 +2445,10 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2445
2445
|
}, v = "regexp.exec(string)", P = e.vmCall(v, l, a, c);
|
|
2446
2446
|
P !== r.REGEXP_TIMEOUT && (e.setProperty(this, "lastIndex", a.lastIndex), c(e.matchToPseudo_(P)));
|
|
2447
2447
|
} else {
|
|
2448
|
-
var
|
|
2449
|
-
|
|
2448
|
+
var g = e.createWorker(), O = e.regExpTimeout(a, g, c), b = this;
|
|
2449
|
+
g.onmessage = function(I) {
|
|
2450
2450
|
clearTimeout(O), e.setProperty(b, "lastIndex", I.data[1]), c(e.matchToPseudo_(I.data[0]));
|
|
2451
|
-
},
|
|
2451
|
+
}, g.postMessage(["exec", a, a.lastIndex, u]);
|
|
2452
2452
|
}
|
|
2453
2453
|
return;
|
|
2454
2454
|
}
|
|
@@ -2593,11 +2593,11 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2593
2593
|
})) : a = null, typeof l != "string" && typeof l != "number" && (l = void 0);
|
|
2594
2594
|
var v = i.pseudoToNative(c);
|
|
2595
2595
|
try {
|
|
2596
|
-
var
|
|
2596
|
+
var g = JSON.stringify(v, a, l);
|
|
2597
2597
|
} catch (O) {
|
|
2598
2598
|
i.throwException(i.TYPE_ERROR, O.message);
|
|
2599
2599
|
}
|
|
2600
|
-
return
|
|
2600
|
+
return g;
|
|
2601
2601
|
}, this.setProperty(
|
|
2602
2602
|
o,
|
|
2603
2603
|
"stringify",
|
|
@@ -2657,17 +2657,17 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2657
2657
|
}
|
|
2658
2658
|
c.loc && (!i.length || c.type === "CallExpression") && i.push({ datumLoc: c.loc });
|
|
2659
2659
|
}
|
|
2660
|
-
for (var l = String(this.getProperty(t, "name")), v = String(this.getProperty(t, "message")),
|
|
2660
|
+
for (var l = String(this.getProperty(t, "name")), v = String(this.getProperty(t, "message")), g = l + ": " + v + `
|
|
2661
2661
|
`, o = 0; o < i.length; o++) {
|
|
2662
2662
|
var O = i[o].datumLoc, b = i[o].datumName, P = O.source + ":" + O.start.line + ":" + O.start.column;
|
|
2663
|
-
b ?
|
|
2664
|
-
` :
|
|
2663
|
+
b ? g += " at " + b + " (" + P + `)
|
|
2664
|
+
` : g += " at " + P + `
|
|
2665
2665
|
`;
|
|
2666
2666
|
}
|
|
2667
2667
|
this.setProperty(
|
|
2668
2668
|
t,
|
|
2669
2669
|
"stack",
|
|
2670
|
-
|
|
2670
|
+
g.trim(),
|
|
2671
2671
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2672
2672
|
);
|
|
2673
2673
|
}, r.prototype.createWorker = function() {
|
|
@@ -2807,8 +2807,8 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2807
2807
|
return a.pseudoToNative(D);
|
|
2808
2808
|
}), I = t.apply(a, P);
|
|
2809
2809
|
return a.nativeToPseudo(I);
|
|
2810
|
-
}, v = Object.getOwnPropertyDescriptor(t, "prototype"),
|
|
2811
|
-
return i.pseudo.push(
|
|
2810
|
+
}, v = Object.getOwnPropertyDescriptor(t, "prototype"), g = this.createNativeFunction(l, !!v);
|
|
2811
|
+
return i.pseudo.push(g), g;
|
|
2812
2812
|
}
|
|
2813
2813
|
var O;
|
|
2814
2814
|
Array.isArray(t) ? O = this.createArray() : O = this.createObjectProto(this.OBJECT_PROTO), i.pseudo.push(O);
|
|
@@ -2950,14 +2950,14 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2950
2950
|
} else {
|
|
2951
2951
|
if (i === r.VALUE_IN_DESCRIPTOR)
|
|
2952
2952
|
throw ReferenceError("Value not specified");
|
|
2953
|
-
for (var
|
|
2954
|
-
if (
|
|
2955
|
-
|
|
2953
|
+
for (var g = t; !(e in g.properties); )
|
|
2954
|
+
if (g = this.getPrototype(g), !g) {
|
|
2955
|
+
g = t;
|
|
2956
2956
|
break;
|
|
2957
2957
|
}
|
|
2958
|
-
if (
|
|
2959
|
-
return this.setterStep_ = !0,
|
|
2960
|
-
if (
|
|
2958
|
+
if (g.setter && g.setter[e])
|
|
2959
|
+
return this.setterStep_ = !0, g.setter[e];
|
|
2960
|
+
if (g.getter && g.getter[e])
|
|
2961
2961
|
u && this.throwException(this.TYPE_ERROR, "Cannot set property '" + e + "' of object '" + t + "' which only has a getter");
|
|
2962
2962
|
else
|
|
2963
2963
|
try {
|
|
@@ -3150,8 +3150,8 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3150
3150
|
SyntaxError,
|
|
3151
3151
|
TypeError,
|
|
3152
3152
|
URIError
|
|
3153
|
-
}, l = String(this.getProperty(e, "name")), v = this.getProperty(e, "message").valueOf(),
|
|
3154
|
-
c =
|
|
3153
|
+
}, l = String(this.getProperty(e, "name")), v = this.getProperty(e, "message").valueOf(), g = a[l] || Error;
|
|
3154
|
+
c = g(v), c.stack = String(this.getProperty(e, "stack"));
|
|
3155
3155
|
} else
|
|
3156
3156
|
c = String(e);
|
|
3157
3157
|
throw this.value = c, c;
|
|
@@ -3187,16 +3187,16 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3187
3187
|
}
|
|
3188
3188
|
return "???";
|
|
3189
3189
|
}, r.prototype.createTask_ = function(t, e) {
|
|
3190
|
-
var i = this.stateStack[this.stateStack.length - 1], o = Array.from(e), u = o.shift(), c = Math.max(Number(o.shift() || 0), 0), a = this.newNode(), l, v,
|
|
3190
|
+
var i = this.stateStack[this.stateStack.length - 1], o = Array.from(e), u = o.shift(), c = Math.max(Number(o.shift() || 0), 0), a = this.newNode(), l, v, g;
|
|
3191
3191
|
if (u instanceof r.Object && u.class === "Function")
|
|
3192
3192
|
v = u, a.type = "CallExpression", l = i.scope;
|
|
3193
3193
|
else {
|
|
3194
3194
|
try {
|
|
3195
|
-
|
|
3195
|
+
g = this.parse_(String(u), "taskCode" + this.taskCodeNumber_++);
|
|
3196
3196
|
} catch (D) {
|
|
3197
3197
|
this.throwException(this.SYNTAX_ERROR, "Invalid code: " + D.message);
|
|
3198
3198
|
}
|
|
3199
|
-
a.type = "EvalProgram_", a.body =
|
|
3199
|
+
a.type = "EvalProgram_", a.body = g.body;
|
|
3200
3200
|
var O = i.node.arguments[0], b = O ? O.start : void 0, P = O ? O.end : void 0;
|
|
3201
3201
|
r.stripLocations_(a, b, P), l = this.globalScope, o.length = 0;
|
|
3202
3202
|
}
|
|
@@ -3537,11 +3537,11 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3537
3537
|
);
|
|
3538
3538
|
var a = u.node;
|
|
3539
3539
|
if (a) {
|
|
3540
|
-
for (var l = this.createScope(a.body, u.parentScope), v = this.createArray(),
|
|
3541
|
-
this.setProperty(v,
|
|
3540
|
+
for (var l = this.createScope(a.body, u.parentScope), v = this.createArray(), g = 0; g < e.arguments_.length; g++)
|
|
3541
|
+
this.setProperty(v, g, e.arguments_[g]);
|
|
3542
3542
|
this.setProperty(l.object, "arguments", v);
|
|
3543
|
-
for (var
|
|
3544
|
-
var O = a.params[
|
|
3543
|
+
for (var g = 0; g < a.params.length; g++) {
|
|
3544
|
+
var O = a.params[g].name, b = e.arguments_.length > g ? e.arguments_[g] : void 0;
|
|
3545
3545
|
this.setProperty(l.object, O, b);
|
|
3546
3546
|
}
|
|
3547
3547
|
return l.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), this.setProperty(
|
|
@@ -4060,8 +4060,8 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4060
4060
|
break;
|
|
4061
4061
|
}
|
|
4062
4062
|
return { line: d, column: h - E };
|
|
4063
|
-
}, a = 0, l = 0, v = 0,
|
|
4064
|
-
function
|
|
4063
|
+
}, a = 0, l = 0, v = 0, g, O, b, P, I, D, X, Pe = 0, z = 0, ve, ue, j, W;
|
|
4064
|
+
function A(f, h) {
|
|
4065
4065
|
var d = c(t, f);
|
|
4066
4066
|
h += " (" + d.line + ":" + d.column + ")";
|
|
4067
4067
|
var E = new SyntaxError(h);
|
|
@@ -4105,23 +4105,23 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4105
4105
|
return d[C] || !1;
|
|
4106
4106
|
};
|
|
4107
4107
|
}
|
|
4108
|
-
var ri = ze("class enum extends super const export import"), yr = ze("implements interface let package private protected public static yield"), Je = ze("eval arguments"), ni = ze("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"), ii = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Er = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ai = "̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_",
|
|
4109
|
-
return f < 65 ? f === 36 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 &&
|
|
4110
|
-
},
|
|
4108
|
+
var ri = ze("class enum extends super const export import"), yr = ze("implements interface let package private protected public static yield"), Je = ze("eval arguments"), ni = ze("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"), ii = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Er = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ai = "̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_", _r = new RegExp("[" + Er + "]"), oi = new RegExp("[" + Er + ai + "]"), He = /[\n\r\u2028\u2029]/, Ke = /\r\n|[\n\r\u2028\u2029]/g, qe = function(f) {
|
|
4109
|
+
return f < 65 ? f === 36 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 && _r.test(String.fromCharCode(f));
|
|
4110
|
+
}, gr = function(f) {
|
|
4111
4111
|
return f < 48 ? f === 36 : f < 58 ? !0 : f < 65 ? !1 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 && oi.test(String.fromCharCode(f));
|
|
4112
4112
|
};
|
|
4113
4113
|
function ce() {
|
|
4114
4114
|
this.line = D, this.column = a - X;
|
|
4115
4115
|
}
|
|
4116
4116
|
function ui() {
|
|
4117
|
-
D = 1, a = X = 0, I = !0,
|
|
4117
|
+
D = 1, a = X = 0, I = !0, xe();
|
|
4118
4118
|
}
|
|
4119
4119
|
function $(f, h) {
|
|
4120
|
-
v = a, r.locations && (O = new ce()), b = f,
|
|
4120
|
+
v = a, r.locations && (O = new ce()), b = f, xe(), P = h, I = f.beforeExpr;
|
|
4121
4121
|
}
|
|
4122
4122
|
function si() {
|
|
4123
4123
|
var f = r.onComment && r.locations && new ce(), h = a, d = t.indexOf("*/", a += 2);
|
|
4124
|
-
if (d === -1 &&
|
|
4124
|
+
if (d === -1 && A(a - 2, "Unterminated comment"), a = d + 2, r.locations) {
|
|
4125
4125
|
Ke.lastIndex = h;
|
|
4126
4126
|
for (var E; (E = Ke.exec(t)) && E.index < a; )
|
|
4127
4127
|
++D, X = E.index + E[0].length;
|
|
@@ -4147,7 +4147,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4147
4147
|
r.locations && new ce()
|
|
4148
4148
|
);
|
|
4149
4149
|
}
|
|
4150
|
-
function
|
|
4150
|
+
function xe() {
|
|
4151
4151
|
for (; a < e; ) {
|
|
4152
4152
|
var f = t.charCodeAt(a);
|
|
4153
4153
|
if (f === 32)
|
|
@@ -4199,7 +4199,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4199
4199
|
var h = t.charCodeAt(a + 1);
|
|
4200
4200
|
if (h === f) {
|
|
4201
4201
|
if (h === 45 && t.charCodeAt(a + 2) === 62 && He.test(t.slice(z, a))) {
|
|
4202
|
-
a += 3, yt(),
|
|
4202
|
+
a += 3, yt(), xe(), _e();
|
|
4203
4203
|
return;
|
|
4204
4204
|
}
|
|
4205
4205
|
G(zn, 2);
|
|
@@ -4212,7 +4212,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4212
4212
|
return;
|
|
4213
4213
|
}
|
|
4214
4214
|
if (h === 33 && f === 60 && t.charCodeAt(a + 2) === 45 && t.charCodeAt(a + 3) === 45) {
|
|
4215
|
-
a += 4, yt(),
|
|
4215
|
+
a += 4, yt(), xe(), _e();
|
|
4216
4216
|
return;
|
|
4217
4217
|
}
|
|
4218
4218
|
h === 61 && (d = t.charCodeAt(a + 2) === 61 ? 3 : 2), G(Zn, d);
|
|
@@ -4247,7 +4247,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4247
4247
|
return ++a, $(fr);
|
|
4248
4248
|
case 48:
|
|
4249
4249
|
var h = t.charCodeAt(a + 1);
|
|
4250
|
-
if (h === 120 || h === 88) return
|
|
4250
|
+
if (h === 120 || h === 88) return _i();
|
|
4251
4251
|
case 49:
|
|
4252
4252
|
case 50:
|
|
4253
4253
|
case 51:
|
|
@@ -4260,7 +4260,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4260
4260
|
return mr(!1);
|
|
4261
4261
|
case 34:
|
|
4262
4262
|
case 39:
|
|
4263
|
-
return
|
|
4263
|
+
return gi(f);
|
|
4264
4264
|
case 47:
|
|
4265
4265
|
return fi();
|
|
4266
4266
|
case 37:
|
|
@@ -4285,8 +4285,8 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4285
4285
|
}
|
|
4286
4286
|
return !1;
|
|
4287
4287
|
}
|
|
4288
|
-
function
|
|
4289
|
-
if (f ? a = l + 1 : l = a, r.locations && (
|
|
4288
|
+
function _e(f) {
|
|
4289
|
+
if (f ? a = l + 1 : l = a, r.locations && (g = new ce()), f) return br();
|
|
4290
4290
|
if (a >= e) return $(ut);
|
|
4291
4291
|
var h = t.charCodeAt(a);
|
|
4292
4292
|
if (qe(h) || h === 92)
|
|
@@ -4294,9 +4294,9 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4294
4294
|
var d = Ei(h);
|
|
4295
4295
|
if (d === !1) {
|
|
4296
4296
|
var E = String.fromCharCode(h);
|
|
4297
|
-
if (E === "\\" ||
|
|
4297
|
+
if (E === "\\" || _r.test(E))
|
|
4298
4298
|
return Or();
|
|
4299
|
-
|
|
4299
|
+
A(a, "Unexpected character '" + E + "'");
|
|
4300
4300
|
}
|
|
4301
4301
|
}
|
|
4302
4302
|
function G(f, h) {
|
|
@@ -4305,9 +4305,9 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4305
4305
|
}
|
|
4306
4306
|
function br() {
|
|
4307
4307
|
for (var f, h, d = a; ; ) {
|
|
4308
|
-
a >= e &&
|
|
4308
|
+
a >= e && A(d, "Unterminated regexp");
|
|
4309
4309
|
var E = t.charAt(a);
|
|
4310
|
-
if (He.test(E) &&
|
|
4310
|
+
if (He.test(E) && A(d, "Unterminated regexp"), f)
|
|
4311
4311
|
f = !1;
|
|
4312
4312
|
else {
|
|
4313
4313
|
if (E === "[")
|
|
@@ -4323,39 +4323,39 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4323
4323
|
var C = t.slice(d, a);
|
|
4324
4324
|
++a;
|
|
4325
4325
|
var S = Rr();
|
|
4326
|
-
S && !/^[gmi]*$/.test(S) &&
|
|
4326
|
+
S && !/^[gmi]*$/.test(S) && A(d, "Invalid regexp flag");
|
|
4327
4327
|
try {
|
|
4328
|
-
var
|
|
4328
|
+
var x = new RegExp(C, S);
|
|
4329
4329
|
} catch (U) {
|
|
4330
|
-
throw U instanceof SyntaxError &&
|
|
4330
|
+
throw U instanceof SyntaxError && A(d, U.message), U;
|
|
4331
4331
|
}
|
|
4332
|
-
$(Yt,
|
|
4332
|
+
$(Yt, x);
|
|
4333
4333
|
}
|
|
4334
|
-
function
|
|
4334
|
+
function Ae(f, h) {
|
|
4335
4335
|
for (var d = a, E = 0, C = h === void 0 ? 1 / 0 : h, S = 0; S < C; ++S) {
|
|
4336
|
-
var
|
|
4337
|
-
if (
|
|
4336
|
+
var x = t.charCodeAt(a), U;
|
|
4337
|
+
if (x >= 97 ? U = x - 97 + 10 : x >= 65 ? U = x - 65 + 10 : x >= 48 && x <= 57 ? U = x - 48 : U = 1 / 0, U >= f) break;
|
|
4338
4338
|
++a, E = E * f + U;
|
|
4339
4339
|
}
|
|
4340
4340
|
return a === d || h !== void 0 && a - d !== h ? null : E;
|
|
4341
4341
|
}
|
|
4342
|
-
function
|
|
4342
|
+
function _i() {
|
|
4343
4343
|
a += 2;
|
|
4344
|
-
var f =
|
|
4345
|
-
f === null &&
|
|
4344
|
+
var f = Ae(16);
|
|
4345
|
+
f === null && A(l + 2, "Expected hexadecimal number"), qe(t.charCodeAt(a)) && A(a, "Identifier directly after number"), $(Xe, f);
|
|
4346
4346
|
}
|
|
4347
4347
|
function mr(f) {
|
|
4348
4348
|
var h = a, d = !1, E = t.charCodeAt(a) === 48;
|
|
4349
|
-
!f &&
|
|
4349
|
+
!f && Ae(10) === null && A(h, "Invalid number"), t.charCodeAt(a) === 46 && (++a, Ae(10), d = !0);
|
|
4350
4350
|
var C = t.charCodeAt(a);
|
|
4351
|
-
(C === 69 || C === 101) && (C = t.charCodeAt(++a), (C === 43 || C === 45) && ++a,
|
|
4352
|
-
var S = t.slice(h, a),
|
|
4353
|
-
d ?
|
|
4351
|
+
(C === 69 || C === 101) && (C = t.charCodeAt(++a), (C === 43 || C === 45) && ++a, Ae(10) === null && A(h, "Invalid number"), d = !0), qe(t.charCodeAt(a)) && A(a, "Identifier directly after number");
|
|
4352
|
+
var S = t.slice(h, a), x;
|
|
4353
|
+
d ? x = parseFloat(S) : !E || S.length === 1 ? x = parseInt(S, 10) : /[89]/.test(S) || W ? A(h, "Invalid number") : x = parseInt(S, 8), $(Xe, x);
|
|
4354
4354
|
}
|
|
4355
|
-
function
|
|
4355
|
+
function gi(f) {
|
|
4356
4356
|
a++;
|
|
4357
4357
|
for (var h = ""; ; ) {
|
|
4358
|
-
a >= e &&
|
|
4358
|
+
a >= e && A(l, "Unterminated string constant");
|
|
4359
4359
|
var d = t.charCodeAt(a);
|
|
4360
4360
|
if (d === f) {
|
|
4361
4361
|
++a, $(ot, h);
|
|
@@ -4367,7 +4367,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4367
4367
|
for (E && (E = E[0]); E && parseInt(E, 8) > 255; )
|
|
4368
4368
|
E = E.slice(0, -1);
|
|
4369
4369
|
if (E === "0" && (E = null), ++a, E)
|
|
4370
|
-
W &&
|
|
4370
|
+
W && A(a - 2, "Octal literal in strict mode"), h += String.fromCharCode(parseInt(E, 8)), a += E.length - 1;
|
|
4371
4371
|
else
|
|
4372
4372
|
switch (d) {
|
|
4373
4373
|
case 110:
|
|
@@ -4411,50 +4411,50 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4411
4411
|
break;
|
|
4412
4412
|
}
|
|
4413
4413
|
} else
|
|
4414
|
-
(d === 13 || d === 10 || d === 8232 || d === 8233) &&
|
|
4414
|
+
(d === 13 || d === 10 || d === 8232 || d === 8233) && A(l, "Unterminated string constant"), h += String.fromCharCode(d), ++a;
|
|
4415
4415
|
}
|
|
4416
4416
|
}
|
|
4417
4417
|
function Ze(f) {
|
|
4418
|
-
var h =
|
|
4419
|
-
return h === null &&
|
|
4418
|
+
var h = Ae(16, f);
|
|
4419
|
+
return h === null && A(l, "Bad character escape sequence"), /** @type {number} */
|
|
4420
4420
|
h;
|
|
4421
4421
|
}
|
|
4422
|
-
var
|
|
4422
|
+
var ge;
|
|
4423
4423
|
function Rr() {
|
|
4424
|
-
|
|
4424
|
+
ge = !1;
|
|
4425
4425
|
for (var f, h = !0, d = a; ; ) {
|
|
4426
4426
|
var E = t.charCodeAt(a);
|
|
4427
|
-
if (
|
|
4428
|
-
|
|
4427
|
+
if (gr(E))
|
|
4428
|
+
ge && (f += t.charAt(a)), ++a;
|
|
4429
4429
|
else if (E === 92) {
|
|
4430
|
-
|
|
4430
|
+
ge || (f = t.slice(d, a)), ge = !0, t.charCodeAt(++a) !== 117 && A(a, "Expecting Unicode escape sequence \\uXXXX"), ++a;
|
|
4431
4431
|
var C = Ze(4), S = String.fromCharCode(C);
|
|
4432
|
-
S ||
|
|
4432
|
+
S || A(a - 1, "Invalid Unicode escape"), (h ? qe(C) : gr(C)) || A(a - 4, "Invalid Unicode escape"), f += S;
|
|
4433
4433
|
} else
|
|
4434
4434
|
break;
|
|
4435
4435
|
h = !1;
|
|
4436
4436
|
}
|
|
4437
|
-
return
|
|
4437
|
+
return ge ? f : t.slice(d, a);
|
|
4438
4438
|
}
|
|
4439
4439
|
function Or() {
|
|
4440
4440
|
var f = Rr(), h = ye;
|
|
4441
|
-
!
|
|
4441
|
+
!ge && ni(f) && (h = Wn[f]), $(h, f);
|
|
4442
4442
|
}
|
|
4443
4443
|
function k() {
|
|
4444
|
-
Pe = l, z = v, ve = O,
|
|
4444
|
+
Pe = l, z = v, ve = O, _e();
|
|
4445
4445
|
}
|
|
4446
4446
|
function Et(f) {
|
|
4447
4447
|
if (W = f, a = l, r.locations)
|
|
4448
4448
|
for (; a < X; )
|
|
4449
4449
|
X = t.lastIndexOf(`
|
|
4450
4450
|
`, X - 2) + 1, --D;
|
|
4451
|
-
|
|
4451
|
+
xe(), _e();
|
|
4452
4452
|
}
|
|
4453
4453
|
function Nr() {
|
|
4454
4454
|
this.type = null, this.start = l, this.end = null;
|
|
4455
4455
|
}
|
|
4456
4456
|
function Tr() {
|
|
4457
|
-
this.start =
|
|
4457
|
+
this.start = g, this.end = null, i && (this.source = i);
|
|
4458
4458
|
}
|
|
4459
4459
|
function V() {
|
|
4460
4460
|
var f = new Nr();
|
|
@@ -4467,7 +4467,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4467
4467
|
function w(f, h) {
|
|
4468
4468
|
return f.type = h, f.end = z, r.locations && (f.loc.end = ve), r.ranges && (f.range[1] = z), f;
|
|
4469
4469
|
}
|
|
4470
|
-
function
|
|
4470
|
+
function _t(f) {
|
|
4471
4471
|
return f.type === "ExpressionStatement" && f.expression.type === "Literal" && f.expression.value === "use strict";
|
|
4472
4472
|
}
|
|
4473
4473
|
function M(f) {
|
|
@@ -4483,23 +4483,23 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4483
4483
|
b === f ? k() : Q();
|
|
4484
4484
|
}
|
|
4485
4485
|
function Q() {
|
|
4486
|
-
|
|
4486
|
+
A(l, "Unexpected token");
|
|
4487
4487
|
}
|
|
4488
4488
|
function et(f) {
|
|
4489
|
-
f.type !== "Identifier" && f.type !== "MemberExpression" &&
|
|
4489
|
+
f.type !== "Identifier" && f.type !== "MemberExpression" && A(f.start, "Assigning to rvalue"), W && f.type === "Identifier" && Je(f.name) && A(f.start, "Assigning to " + f.name + " in strict mode");
|
|
4490
4490
|
}
|
|
4491
4491
|
function bi(f) {
|
|
4492
|
-
Pe = z = a, r.locations && (ve = new ce()), ue = W = !1, j = [],
|
|
4492
|
+
Pe = z = a, r.locations && (ve = new ce()), ue = W = !1, j = [], _e();
|
|
4493
4493
|
var h = f || V(), d = !0;
|
|
4494
4494
|
for (f || (h.body = []); b !== ut; ) {
|
|
4495
4495
|
var E = J();
|
|
4496
|
-
h.body.push(E), d &&
|
|
4496
|
+
h.body.push(E), d && _t(E) && Et(!0), d = !1;
|
|
4497
4497
|
}
|
|
4498
4498
|
return w(h, "Program");
|
|
4499
4499
|
}
|
|
4500
|
-
var
|
|
4500
|
+
var gt = { kind: "loop" }, mi = { kind: "switch" };
|
|
4501
4501
|
function J() {
|
|
4502
|
-
(b === lr || b === se && P === "/=") &&
|
|
4502
|
+
(b === lr || b === se && P === "/=") && _e(!0);
|
|
4503
4503
|
var f = b, h = V();
|
|
4504
4504
|
switch (f) {
|
|
4505
4505
|
case st:
|
|
@@ -4512,13 +4512,13 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4512
4512
|
if ((h.label === null || C.name === h.label.name) && (C.kind !== null && (d || C.kind === "loop") || h.label && d))
|
|
4513
4513
|
break;
|
|
4514
4514
|
}
|
|
4515
|
-
return E === j.length &&
|
|
4515
|
+
return E === j.length && A(h.start, "Unsyntactic " + f.keyword), w(h, d ? "BreakStatement" : "ContinueStatement");
|
|
4516
4516
|
case zt:
|
|
4517
4517
|
return k(), fe(), w(h, "DebuggerStatement");
|
|
4518
4518
|
case Ht:
|
|
4519
|
-
return k(), j.push(
|
|
4519
|
+
return k(), j.push(gt), h.body = J(), j.pop(), B(ht), h.test = Ie(), fe(), w(h, "DoWhileStatement");
|
|
4520
4520
|
case Zt:
|
|
4521
|
-
if (k(), j.push(
|
|
4521
|
+
if (k(), j.push(gt), B(q), b === Z) return bt(h, null);
|
|
4522
4522
|
if (b === pt) {
|
|
4523
4523
|
var S = V();
|
|
4524
4524
|
return k(), Pr(S, !0), w(S, "VariableDeclaration"), S.declarations.length === 1 && M(We) ? Sr(h, S) : bt(h, S);
|
|
@@ -4530,30 +4530,30 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4530
4530
|
case Qt:
|
|
4531
4531
|
return k(), h.test = Ie(), h.consequent = J(), h.alternate = M(Kt) ? J() : null, w(h, "IfStatement");
|
|
4532
4532
|
case er:
|
|
4533
|
-
return !ue && !r.allowReturnOutsideFunction &&
|
|
4533
|
+
return !ue && !r.allowReturnOutsideFunction && A(l, "'return' outside of function"), k(), M(Z) || Qe() ? h.argument = null : (h.argument = Y(), fe()), w(h, "ReturnStatement");
|
|
4534
4534
|
case lt:
|
|
4535
4535
|
k(), h.discriminant = Ie(), h.cases = [], B(we), j.push(mi);
|
|
4536
|
-
for (var
|
|
4536
|
+
for (var x, U; b !== Ee; )
|
|
4537
4537
|
if (b === ct || b === Jt) {
|
|
4538
4538
|
var Fe = b === ct;
|
|
4539
|
-
|
|
4539
|
+
x && w(x, "SwitchCase"), h.cases.push(x = V()), x.consequent = [], k(), Fe ? x.test = Y() : (U && A(Pe, "Multiple default clauses"), U = !0, x.test = null), B(Ce);
|
|
4540
4540
|
} else
|
|
4541
|
-
|
|
4542
|
-
return
|
|
4541
|
+
x || Q(), x.consequent.push(J());
|
|
4542
|
+
return x && w(x, "SwitchCase"), k(), j.pop(), w(h, "SwitchStatement");
|
|
4543
4543
|
case tr:
|
|
4544
|
-
return k(), He.test(t.slice(z, l)) &&
|
|
4544
|
+
return k(), He.test(t.slice(z, l)) && A(z, "Illegal newline after throw"), h.argument = Y(), fe(), w(h, "ThrowStatement");
|
|
4545
4545
|
case rr:
|
|
4546
4546
|
if (k(), h.block = ke(), h.handler = null, b === Xt) {
|
|
4547
4547
|
var be = V();
|
|
4548
|
-
k(), B(q), be.param = ie(), W && Je(be.param.name) &&
|
|
4548
|
+
k(), B(q), be.param = ie(), W && Je(be.param.name) && A(be.param.start, "Binding " + be.param.name + " in strict mode"), B(H), be.body = ke(), h.handler = w(be, "CatchClause");
|
|
4549
4549
|
}
|
|
4550
|
-
return h.finalizer = M(qt) ? ke() : null, !h.handler && !h.finalizer &&
|
|
4550
|
+
return h.finalizer = M(qt) ? ke() : null, !h.handler && !h.finalizer && A(h.start, "Missing catch or finally clause"), w(h, "TryStatement");
|
|
4551
4551
|
case pt:
|
|
4552
4552
|
return k(), Pr(h), fe(), w(h, "VariableDeclaration");
|
|
4553
4553
|
case ht:
|
|
4554
|
-
return k(), h.test = Ie(), j.push(
|
|
4554
|
+
return k(), h.test = Ie(), j.push(gt), h.body = J(), j.pop(), w(h, "WhileStatement");
|
|
4555
4555
|
case nr:
|
|
4556
|
-
return W &&
|
|
4556
|
+
return W && A(l, "'with' in strict mode"), k(), h.object = Ie(), h.body = J(), w(h, "WithStatement");
|
|
4557
4557
|
case we:
|
|
4558
4558
|
return ke();
|
|
4559
4559
|
case Z:
|
|
@@ -4562,7 +4562,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4562
4562
|
var Pt = P, tt = Y();
|
|
4563
4563
|
if (f === ye && tt.type === "Identifier" && M(Ce)) {
|
|
4564
4564
|
for (var E = 0; E < j.length; ++E)
|
|
4565
|
-
j[E].name === Pt &&
|
|
4565
|
+
j[E].name === Pt && A(tt.start, "Label '" + Pt + "' is already declared");
|
|
4566
4566
|
var Pi = b.isLoop ? "loop" : b === lt ? "switch" : null;
|
|
4567
4567
|
return j.push({ name: Pt, kind: Pi }), h.body = J(), j.pop(), h.label = tt, w(h, "LabeledStatement");
|
|
4568
4568
|
} else
|
|
@@ -4578,7 +4578,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4578
4578
|
var h = V(), d = !0, E = !1, C;
|
|
4579
4579
|
for (h.body = [], B(we); !M(Ee); ) {
|
|
4580
4580
|
var S = J();
|
|
4581
|
-
h.body.push(S), d && f &&
|
|
4581
|
+
h.body.push(S), d && f && _t(S) && (C = E, Et(E = !0)), d = !1;
|
|
4582
4582
|
}
|
|
4583
4583
|
return E && !C && Et(!1), w(h, "BlockStatement");
|
|
4584
4584
|
}
|
|
@@ -4591,7 +4591,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4591
4591
|
function Pr(f, h) {
|
|
4592
4592
|
for (f.declarations = [], f.kind = "var"; ; ) {
|
|
4593
4593
|
var d = V();
|
|
4594
|
-
if (d.id = ie(), W && Je(d.id.name) &&
|
|
4594
|
+
if (d.id = ie(), W && Je(d.id.name) && A(d.id.start, "Binding " + d.id.name + " in strict mode"), d.init = M(pr) ? Y(!0, h) : null, f.declarations.push(w(d, "VariableDeclarator")), !M(re)) break;
|
|
4595
4595
|
}
|
|
4596
4596
|
}
|
|
4597
4597
|
function Y(f, h) {
|
|
@@ -4629,15 +4629,15 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4629
4629
|
C.left = f, C.operator = P;
|
|
4630
4630
|
var S = b;
|
|
4631
4631
|
k(), C.right = Rt(Ot(), E, d);
|
|
4632
|
-
var
|
|
4633
|
-
return Rt(
|
|
4632
|
+
var x = w(C, S === dr || S === vr ? "LogicalExpression" : "BinaryExpression");
|
|
4633
|
+
return Rt(x, h, d);
|
|
4634
4634
|
}
|
|
4635
4635
|
return f;
|
|
4636
4636
|
}
|
|
4637
4637
|
function Ot() {
|
|
4638
4638
|
if (b.prefix) {
|
|
4639
4639
|
var f = V(), h = b.isUpdate;
|
|
4640
|
-
return f.operator = P, f.prefix = !0, I = !0, k(), f.argument = Ot(), h ? et(f.argument) : W && f.operator === "delete" && f.argument.type === "Identifier" &&
|
|
4640
|
+
return f.operator = P, f.prefix = !0, I = !0, k(), f.argument = Ot(), h ? et(f.argument) : W && f.operator === "delete" && f.argument.type === "Identifier" && A(f.start, "Deleting local variable in strict mode"), w(f, h ? "UpdateExpression" : "UnaryExpression");
|
|
4641
4641
|
}
|
|
4642
4642
|
for (var d = Ni(); b.postfix && !Qe(); ) {
|
|
4643
4643
|
var f = ne(d);
|
|
@@ -4668,7 +4668,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4668
4668
|
case sr:
|
|
4669
4669
|
return f = V(), f.value = b.atomValue, f.raw = b.keyword, k(), w(f, "Literal");
|
|
4670
4670
|
case q:
|
|
4671
|
-
var h =
|
|
4671
|
+
var h = g, d = l;
|
|
4672
4672
|
k();
|
|
4673
4673
|
var E = Y();
|
|
4674
4674
|
return E.start = d, E.end = v, r.locations && (E.loc.start = h, E.loc.end = O), r.ranges && (E.range = [d, v]), B(H), E;
|
|
@@ -4696,11 +4696,11 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4696
4696
|
break;
|
|
4697
4697
|
var E = { key: wr() }, C = !1, S;
|
|
4698
4698
|
if (M(Ce) ? (E.value = Y(!0), S = E.kind = "init") : E.key.type === "Identifier" && (E.key.name === "get" || E.key.name === "set") ? (C = d = !0, S = E.kind = E.key.name, E.key = wr(), b !== q && Q(), E.value = Tt(V(), !1)) : Q(), E.key.type === "Identifier" && (W || d))
|
|
4699
|
-
for (var
|
|
4700
|
-
var U = f.properties[
|
|
4699
|
+
for (var x = 0; x < f.properties.length; ++x) {
|
|
4700
|
+
var U = f.properties[x];
|
|
4701
4701
|
if (U.key.name === E.key.name) {
|
|
4702
4702
|
var Fe = S === U.kind || C && U.kind === "init" || S === "init" && (U.kind === "get" || U.kind === "set");
|
|
4703
|
-
Fe && !W && S === "init" && U.kind === "init" && (Fe = !1), Fe &&
|
|
4703
|
+
Fe && !W && S === "init" && U.kind === "init" && (Fe = !1), Fe && A(E.key.start, "Redefinition of property");
|
|
4704
4704
|
}
|
|
4705
4705
|
}
|
|
4706
4706
|
f.properties.push(E);
|
|
@@ -4716,12 +4716,12 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4716
4716
|
for (B(q); !M(H); )
|
|
4717
4717
|
d ? d = !1 : B(re), f.params.push(ie());
|
|
4718
4718
|
var E = ue, C = j;
|
|
4719
|
-
if (ue = !0, j = [], f.body = ke(!0), ue = E, j = C, W || f.body.body.length &&
|
|
4719
|
+
if (ue = !0, j = [], f.body = ke(!0), ue = E, j = C, W || f.body.body.length && _t(f.body.body[0]))
|
|
4720
4720
|
for (var S = f.id ? -1 : 0; S < f.params.length; ++S) {
|
|
4721
|
-
var
|
|
4722
|
-
if ((yr(
|
|
4721
|
+
var x = S < 0 ? f.id : f.params[S];
|
|
4722
|
+
if ((yr(x.name) || Je(x.name)) && A(x.start, "Defining '" + x.name + "' in strict mode"), S >= 0)
|
|
4723
4723
|
for (var U = 0; U < S; ++U)
|
|
4724
|
-
|
|
4724
|
+
x.name === f.params[U].name && A(x.start, "Argument name clash in strict mode");
|
|
4725
4725
|
}
|
|
4726
4726
|
return w(f, h ? "FunctionDeclaration" : "FunctionExpression");
|
|
4727
4727
|
}
|
|
@@ -4737,7 +4737,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4737
4737
|
}
|
|
4738
4738
|
function ie(f) {
|
|
4739
4739
|
var h = V();
|
|
4740
|
-
return f && r.forbidReserved === "everywhere" && (f = !1), b === ye ? (!f && (r.forbidReserved && ri(P) || W && yr(P)) && t.slice(l, v).indexOf("\\") === -1 &&
|
|
4740
|
+
return f && r.forbidReserved === "everywhere" && (f = !1), b === ye ? (!f && (r.forbidReserved && ri(P) || W && yr(P)) && t.slice(l, v).indexOf("\\") === -1 && A(l, "The keyword '" + P + "' is reserved"), h.name = P) : f && b.keyword ? h.name = b.keyword : Q(), I = !1, k(), w(h, "Identifier");
|
|
4741
4741
|
}
|
|
4742
4742
|
});
|
|
4743
4743
|
}
|
|
@@ -4754,7 +4754,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4754
4754
|
)
|
|
4755
4755
|
/******/
|
|
4756
4756
|
}, y = {};
|
|
4757
|
-
function
|
|
4757
|
+
function _(m) {
|
|
4758
4758
|
var N = y[m];
|
|
4759
4759
|
if (N !== void 0)
|
|
4760
4760
|
return N.exports;
|
|
@@ -4767,12 +4767,12 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4767
4767
|
exports: {}
|
|
4768
4768
|
/******/
|
|
4769
4769
|
};
|
|
4770
|
-
return p[m].call(T.exports, T, T.exports,
|
|
4770
|
+
return p[m].call(T.exports, T, T.exports, _), T.exports;
|
|
4771
4771
|
}
|
|
4772
|
-
|
|
4772
|
+
_.d = (m, N) => {
|
|
4773
4773
|
for (var T in N)
|
|
4774
|
-
|
|
4775
|
-
},
|
|
4774
|
+
_.o(N, T) && !_.o(m, T) && Object.defineProperty(m, T, { enumerable: !0, get: N[T] });
|
|
4775
|
+
}, _.o = (m, N) => Object.prototype.hasOwnProperty.call(m, N), _.r = (m) => {
|
|
4776
4776
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(m, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(m, "__esModule", { value: !0 });
|
|
4777
4777
|
};
|
|
4778
4778
|
var R = {};
|
|
@@ -4780,17 +4780,17 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4780
4780
|
/*!*******************************!*\
|
|
4781
4781
|
!*** ./src/js-interpreter.js ***!
|
|
4782
4782
|
\*******************************/
|
|
4783
|
-
|
|
4783
|
+
_.r(R), _.d(R, {
|
|
4784
4784
|
/* harmony export */
|
|
4785
4785
|
default: () => T
|
|
4786
4786
|
/* harmony export */
|
|
4787
4787
|
});
|
|
4788
|
-
const m =
|
|
4788
|
+
const m = _(
|
|
4789
4789
|
/*! ../original-repo/acorn */
|
|
4790
4790
|
"./original-repo/acorn.js"
|
|
4791
4791
|
);
|
|
4792
4792
|
globalThis.acorn = m;
|
|
4793
|
-
const { Interpreter: N } =
|
|
4793
|
+
const { Interpreter: N } = _(
|
|
4794
4794
|
/*! ../original-repo/interpreter */
|
|
4795
4795
|
"./original-repo/interpreter.js"
|
|
4796
4796
|
), T = N;
|
|
@@ -4802,8 +4802,8 @@ var Gs = Gn.exports;
|
|
|
4802
4802
|
const Vs = /* @__PURE__ */ Us(Gs);
|
|
4803
4803
|
function Ys(n, s) {
|
|
4804
4804
|
function p(y) {
|
|
4805
|
-
const
|
|
4806
|
-
console.log(
|
|
4805
|
+
const _ = n.pseudoToNative(y);
|
|
4806
|
+
console.log(_);
|
|
4807
4807
|
}
|
|
4808
4808
|
n.setProperty(
|
|
4809
4809
|
s,
|
|
@@ -4817,17 +4817,17 @@ class Xs {
|
|
|
4817
4817
|
wt(this, "nodes");
|
|
4818
4818
|
this.context = s, this.nodes = {};
|
|
4819
4819
|
const p = this;
|
|
4820
|
-
function y(
|
|
4820
|
+
function y(_) {
|
|
4821
4821
|
var R;
|
|
4822
|
-
p.nodes[
|
|
4822
|
+
p.nodes[_.id] = _, (R = _.children) == null || R.forEach((m) => y(m));
|
|
4823
4823
|
}
|
|
4824
|
-
this.context.data.view.nodes.forEach((
|
|
4824
|
+
this.context.data.view.nodes.forEach((_) => y(_));
|
|
4825
4825
|
}
|
|
4826
4826
|
getNode(s) {
|
|
4827
4827
|
return this.nodes[s];
|
|
4828
4828
|
}
|
|
4829
4829
|
addNode(s, p, y) {
|
|
4830
|
-
let
|
|
4830
|
+
let _;
|
|
4831
4831
|
if (s) {
|
|
4832
4832
|
const m = this.getNode(s);
|
|
4833
4833
|
if (!m)
|
|
@@ -4838,10 +4838,10 @@ class Xs {
|
|
|
4838
4838
|
return console.error(
|
|
4839
4839
|
`NodeMgr/addNode parent no children, parent=${s} ref=${p} key=${y}`
|
|
4840
4840
|
), "";
|
|
4841
|
-
|
|
4841
|
+
_ = m.children;
|
|
4842
4842
|
} else
|
|
4843
|
-
|
|
4844
|
-
if (!
|
|
4843
|
+
_ = this.context.data.view.nodes;
|
|
4844
|
+
if (!_)
|
|
4845
4845
|
return "";
|
|
4846
4846
|
const R = Rs(
|
|
4847
4847
|
this.context.type,
|
|
@@ -4850,7 +4850,7 @@ class Xs {
|
|
|
4850
4850
|
p,
|
|
4851
4851
|
y
|
|
4852
4852
|
);
|
|
4853
|
-
return R ? (
|
|
4853
|
+
return R ? (_.push(R), this.nodes[R.id] = R, R.id) : (console.error(
|
|
4854
4854
|
"NodeMgr/addNode spawn node failed, parent=${parent} ref=${ref} key=${key}"
|
|
4855
4855
|
), "");
|
|
4856
4856
|
}
|
|
@@ -4860,7 +4860,7 @@ class Xs {
|
|
|
4860
4860
|
}
|
|
4861
4861
|
function Ws(n, s, p) {
|
|
4862
4862
|
const y = new Xs(n);
|
|
4863
|
-
function
|
|
4863
|
+
function _(t, e, i) {
|
|
4864
4864
|
const o = s.pseudoToNative(t), u = s.pseudoToNative(e), c = s.pseudoToNative(i), a = y.addNode(o, u, c);
|
|
4865
4865
|
return s.nativeToPseudo(a);
|
|
4866
4866
|
}
|
|
@@ -4896,9 +4896,9 @@ function Ws(n, s, p) {
|
|
|
4896
4896
|
return;
|
|
4897
4897
|
}
|
|
4898
4898
|
const l = u.split("."), v = l.length;
|
|
4899
|
-
for (let
|
|
4900
|
-
const O = l[
|
|
4901
|
-
if (
|
|
4899
|
+
for (let g = 0; g < v; g++) {
|
|
4900
|
+
const O = l[g];
|
|
4901
|
+
if (g === v - 1)
|
|
4902
4902
|
a[O] = c;
|
|
4903
4903
|
else if (a = a[O], !a) {
|
|
4904
4904
|
console.error(
|
|
@@ -4923,7 +4923,7 @@ function Ws(n, s, p) {
|
|
|
4923
4923
|
s.setProperty(
|
|
4924
4924
|
p,
|
|
4925
4925
|
"__addNodeV1__",
|
|
4926
|
-
s.createNativeFunction(
|
|
4926
|
+
s.createNativeFunction(_)
|
|
4927
4927
|
), s.setProperty(
|
|
4928
4928
|
p,
|
|
4929
4929
|
"__deleteNodeV1__",
|
|
@@ -5030,8 +5030,8 @@ function __triggerEvent__(id, event, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p1
|
|
|
5030
5030
|
function qs(n, s) {
|
|
5031
5031
|
const p = new Vs(
|
|
5032
5032
|
Ks,
|
|
5033
|
-
(y,
|
|
5034
|
-
zs(n, y,
|
|
5033
|
+
(y, _) => {
|
|
5034
|
+
zs(n, y, _);
|
|
5035
5035
|
}
|
|
5036
5036
|
);
|
|
5037
5037
|
return p.appendCode(s), p.appendCode(`
|
|
@@ -5051,16 +5051,16 @@ const Zs = /* @__PURE__ */ on({
|
|
|
5051
5051
|
outer: { type: Boolean }
|
|
5052
5052
|
},
|
|
5053
5053
|
setup(n) {
|
|
5054
|
-
const { t: s } = Fi(), p = n, y = Os(),
|
|
5054
|
+
const { t: s } = Fi(), p = n, y = Os(), _ = Ps(), R = ws(), m = Cs(), N = Cr();
|
|
5055
5055
|
Ii(() => {
|
|
5056
5056
|
N.value = m[p.refContext.refid];
|
|
5057
5057
|
});
|
|
5058
5058
|
const T = Cr();
|
|
5059
|
-
|
|
5059
|
+
xs(T), ki(N, (a) => {
|
|
5060
5060
|
a || Mi.emit("compNotAvail", p.refContext.refid), T.value && (nn(T.value), T.value = void 0), a && (T.value = qs(
|
|
5061
5061
|
{
|
|
5062
5062
|
env: y,
|
|
5063
|
-
type:
|
|
5063
|
+
type: _,
|
|
5064
5064
|
data: a.data
|
|
5065
5065
|
},
|
|
5066
5066
|
a.data.code.script
|
|
@@ -5094,20 +5094,20 @@ const Zs = /* @__PURE__ */ on({
|
|
|
5094
5094
|
}
|
|
5095
5095
|
function o(a) {
|
|
5096
5096
|
const l = cn[R.version].refKey, v = Ne[l];
|
|
5097
|
-
let
|
|
5098
|
-
return v ?
|
|
5097
|
+
let g;
|
|
5098
|
+
return v ? g = Le(v.comp, {
|
|
5099
5099
|
refContext: {
|
|
5100
5100
|
parent: p.refContext,
|
|
5101
5101
|
refid: a.ref.id
|
|
5102
5102
|
},
|
|
5103
5103
|
node: a
|
|
5104
|
-
}) : console.assert(!1),
|
|
5104
|
+
}) : console.assert(!1), g;
|
|
5105
5105
|
}
|
|
5106
5106
|
function u(a) {
|
|
5107
|
-
var
|
|
5107
|
+
var g;
|
|
5108
5108
|
let l;
|
|
5109
5109
|
const v = Ne[a.key];
|
|
5110
|
-
return v ? ((
|
|
5110
|
+
return v ? ((g = a.children) == null || g.forEach((O) => {
|
|
5111
5111
|
i(O);
|
|
5112
5112
|
}), l = Le(v.comp, { node: a })) : console.assert(!1, `invalid element config key=${a.key}`), l;
|
|
5113
5113
|
}
|
|
@@ -5118,8 +5118,8 @@ const Zs = /* @__PURE__ */ on({
|
|
|
5118
5118
|
else if (N.value) {
|
|
5119
5119
|
const l = N.value.data.type;
|
|
5120
5120
|
l === "common" ? N.value.data.view.nodes.forEach((v) => {
|
|
5121
|
-
const
|
|
5122
|
-
a.push(
|
|
5121
|
+
const g = i(v);
|
|
5122
|
+
a.push(g);
|
|
5123
5123
|
}) : console.assert(!1, `invalid data type dataType=${l}`);
|
|
5124
5124
|
} else
|
|
5125
5125
|
a.push(Le("div", s("compNotAvail")));
|
|
@@ -5179,57 +5179,57 @@ const Zs = /* @__PURE__ */ on({
|
|
|
5179
5179
|
}
|
|
5180
5180
|
], Yn = {
|
|
5181
5181
|
key: "ref",
|
|
5182
|
-
name: "ref",
|
|
5182
|
+
name: "x-runtime-lib.ref",
|
|
5183
5183
|
children: [
|
|
5184
5184
|
{
|
|
5185
5185
|
key: "id",
|
|
5186
|
-
name: "id",
|
|
5186
|
+
name: "x-runtime-lib.id",
|
|
5187
5187
|
ui: "compSelect"
|
|
5188
5188
|
},
|
|
5189
5189
|
{
|
|
5190
5190
|
key: "name",
|
|
5191
|
-
name: "name",
|
|
5191
|
+
name: "x-runtime-lib.name",
|
|
5192
5192
|
ui: "strInput",
|
|
5193
5193
|
static: !0
|
|
5194
5194
|
},
|
|
5195
5195
|
{
|
|
5196
5196
|
key: "width",
|
|
5197
|
-
name: "width",
|
|
5197
|
+
name: "x-runtime-lib.width",
|
|
5198
5198
|
ui: "multiTypes",
|
|
5199
5199
|
types: me,
|
|
5200
5200
|
default: ""
|
|
5201
5201
|
},
|
|
5202
5202
|
{
|
|
5203
5203
|
key: "minWidth",
|
|
5204
|
-
name: "minWidth",
|
|
5204
|
+
name: "x-runtime-lib.minWidth",
|
|
5205
5205
|
ui: "multiTypes",
|
|
5206
5206
|
types: me,
|
|
5207
5207
|
default: ""
|
|
5208
5208
|
},
|
|
5209
5209
|
{
|
|
5210
5210
|
key: "maxWidth",
|
|
5211
|
-
name: "maxWidth",
|
|
5211
|
+
name: "x-runtime-lib.maxWidth",
|
|
5212
5212
|
ui: "multiTypes",
|
|
5213
5213
|
types: me,
|
|
5214
5214
|
default: ""
|
|
5215
5215
|
},
|
|
5216
5216
|
{
|
|
5217
5217
|
key: "height",
|
|
5218
|
-
name: "height",
|
|
5218
|
+
name: "x-runtime-lib.height",
|
|
5219
5219
|
ui: "multiTypes",
|
|
5220
5220
|
types: me,
|
|
5221
5221
|
default: ""
|
|
5222
5222
|
},
|
|
5223
5223
|
{
|
|
5224
5224
|
key: "minHeight",
|
|
5225
|
-
name: "minHeight",
|
|
5225
|
+
name: "x-runtime-lib.minHeight",
|
|
5226
5226
|
ui: "multiTypes",
|
|
5227
5227
|
types: me,
|
|
5228
5228
|
default: ""
|
|
5229
5229
|
},
|
|
5230
5230
|
{
|
|
5231
5231
|
key: "maxHeight",
|
|
5232
|
-
name: "maxHeight",
|
|
5232
|
+
name: "x-runtime-lib.maxHeight",
|
|
5233
5233
|
ui: "multiTypes",
|
|
5234
5234
|
types: me,
|
|
5235
5235
|
default: ""
|
|
@@ -5237,7 +5237,7 @@ const Zs = /* @__PURE__ */ on({
|
|
|
5237
5237
|
]
|
|
5238
5238
|
}, Qs = [Vn, Yn], ec = [Vn, Yn], tc = {
|
|
5239
5239
|
key: "ref_v1",
|
|
5240
|
-
name: "ref",
|
|
5240
|
+
name: "x-runtime-lib.ref",
|
|
5241
5241
|
comp: Zs,
|
|
5242
5242
|
leaf: !0,
|
|
5243
5243
|
events: [],
|
|
@@ -5267,7 +5267,7 @@ for (const n in Ne) {
|
|
|
5267
5267
|
}
|
|
5268
5268
|
const nc = (n, s, p) => {
|
|
5269
5269
|
const y = n[s];
|
|
5270
|
-
return y ? typeof y == "function" ? y() : Promise.resolve(y) : new Promise((
|
|
5270
|
+
return y ? typeof y == "function" ? y() : Promise.resolve(y) : new Promise((_, R) => {
|
|
5271
5271
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
5272
5272
|
R.bind(
|
|
5273
5273
|
null,
|
|
@@ -5278,8 +5278,8 @@ const nc = (n, s, p) => {
|
|
|
5278
5278
|
);
|
|
5279
5279
|
});
|
|
5280
5280
|
};
|
|
5281
|
-
async function
|
|
5282
|
-
return (await nc(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./en-
|
|
5281
|
+
async function gc(n) {
|
|
5282
|
+
return (await nc(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-qjkol4ql.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-chbmhnb3.js") }), `./locales/${n}/index.ts`, 4)).default;
|
|
5283
5283
|
}
|
|
5284
5284
|
export {
|
|
5285
5285
|
fc as duplicateNode,
|
|
@@ -5294,13 +5294,13 @@ export {
|
|
|
5294
5294
|
Cs as injectDepends,
|
|
5295
5295
|
Ts as injectDevice,
|
|
5296
5296
|
Os as injectEnv,
|
|
5297
|
-
|
|
5297
|
+
_c as injectInterpreter,
|
|
5298
5298
|
Ns as injectMode,
|
|
5299
5299
|
Ps as injectType,
|
|
5300
5300
|
Gi as isEmptyStr,
|
|
5301
5301
|
Yi as isPercentStr,
|
|
5302
5302
|
Vi as isPixelStr,
|
|
5303
|
-
|
|
5303
|
+
gc as loadLocaleMessageRuntime,
|
|
5304
5304
|
Ct as parsePercentStr,
|
|
5305
5305
|
sc as parsePixelStr,
|
|
5306
5306
|
cn as pkgs,
|
|
@@ -5309,7 +5309,7 @@ export {
|
|
|
5309
5309
|
Ec as provideDepends,
|
|
5310
5310
|
hc as provideDevice,
|
|
5311
5311
|
lc as provideEnv,
|
|
5312
|
-
|
|
5312
|
+
xs as provideInterpreter,
|
|
5313
5313
|
pc as provideMode,
|
|
5314
5314
|
vc as provideType,
|
|
5315
5315
|
Rs as spawnNode,
|