@builder.io/sdk-react 2.0.14 → 2.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +25 -25
- package/lib/browser/blocks-exports.mjs +274 -281
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +23 -22
- package/lib/browser/init.cjs +2 -2
- package/lib/browser/init.mjs +6 -1
- package/lib/browser/{server-entry-13acc156.js → server-entry-1db0d96b.js} +1 -1
- package/lib/{node/server-entry-d6f4f920.cjs → browser/server-entry-c1666709.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/browser/should-force-browser-runtime-in-node-00f3cfef.js +17 -0
- package/lib/browser/should-force-browser-runtime-in-node-f768fb5d.cjs +1 -0
- package/lib/edge/{accordion-87e3ac98.cjs → accordion-09162a27.cjs} +1 -1
- package/lib/edge/{accordion-1d87140d.js → accordion-7c1c7c56.js} +1 -1
- package/lib/edge/{blocks-91726dda.cjs → blocks-273f24cc.cjs} +1 -1
- package/lib/edge/{blocks-40966fa4.js → blocks-46c07b56.js} +3 -3
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-45918a0a.js → button-a923f8ff.js} +2 -2
- package/lib/edge/{button-79b579a5.cjs → button-f2daea13.cjs} +1 -1
- package/lib/edge/columns-0b8c2260.cjs +28 -0
- package/lib/edge/{columns-b55666de.js → columns-eee4f51c.js} +7 -6
- package/lib/edge/{content-variants-56933eef.js → content-variants-1368cab1.js} +14 -13
- package/lib/edge/content-variants-575b5dbf.cjs +134 -0
- package/lib/edge/{evaluate-41623a71.cjs → evaluate-4c9b2e86.cjs} +10 -10
- package/lib/edge/{evaluate-2b7026be.js → evaluate-93701356.js} +336 -344
- package/lib/edge/form-bd184008.cjs +1 -0
- package/lib/edge/{form-7e2f833c.js → form-d0eb0af4.js} +15 -14
- package/lib/edge/{get-class-prop-name-8c963ff3.js → get-class-prop-name-1c373615.js} +1 -1
- package/lib/edge/{get-class-prop-name-b1c9455b.cjs → get-class-prop-name-7cd1376f.cjs} +1 -1
- package/lib/edge/{img-f5173c7a.cjs → img-6c8139db.cjs} +1 -1
- package/lib/edge/{img-d0f2941c.js → img-6e16ade6.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +2 -2
- package/lib/edge/init.mjs +6 -1
- package/lib/edge/{input-71715eac.js → input-a7e9c157.js} +1 -1
- package/lib/edge/{input-d76e00ea.cjs → input-c78fef2b.cjs} +1 -1
- package/lib/edge/{select-09cb37c7.js → select-3cf593bd.js} +1 -1
- package/lib/edge/{select-8c281d1f.cjs → select-bd1e231b.cjs} +1 -1
- package/lib/edge/{server-entry-7556ee3d.js → server-entry-6b3ad048.js} +1 -1
- package/lib/edge/{server-entry-65199b3b.cjs → server-entry-d09af943.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/should-force-browser-runtime-in-node-2b14e4a8.cjs +1 -0
- package/lib/edge/should-force-browser-runtime-in-node-560bddfb.js +17 -0
- package/lib/edge/{slot-4350be16.js → slot-a5a9a30f.js} +7 -6
- package/lib/edge/slot-ab7fc875.cjs +1 -0
- package/lib/edge/{symbol-061ca26c.js → symbol-77d331c6.js} +2 -2
- package/lib/edge/{symbol-96f073c1.cjs → symbol-9de15518.cjs} +1 -1
- package/lib/edge/{tabs-081f284d.js → tabs-63d6ea85.js} +14 -13
- package/lib/edge/tabs-e6fa664e.cjs +1 -0
- package/lib/edge/{text-b277727f.js → text-4d508bbc.js} +9 -8
- package/lib/edge/text-ab5d2747.cjs +1 -0
- package/lib/node/blocks-exports.cjs +25 -25
- package/lib/node/blocks-exports.mjs +317 -325
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +12 -8
- package/lib/node/{server-entry-13acc156.js → server-entry-1db0d96b.js} +1 -1
- package/lib/{browser/server-entry-d6f4f920.cjs → node/server-entry-c1666709.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{node-runtime-1e74e14c.js → should-force-browser-runtime-in-node-1188ea7b.js} +48 -34
- package/lib/node/{node-runtime-9c4150c6.cjs → should-force-browser-runtime-in-node-37010e2f.cjs} +4 -4
- package/package.json +2 -4
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/should-force-browser-runtime-in-node.d.ts +3 -1
- package/types/server-index.d.ts +1 -0
- package/lib/edge/columns-bee45776.cjs +0 -28
- package/lib/edge/content-variants-c19f46ab.cjs +0 -134
- package/lib/edge/form-2724acae.cjs +0 -1
- package/lib/edge/slot-cae739f4.cjs +0 -1
- package/lib/edge/tabs-4806b2ae.cjs +0 -1
- package/lib/edge/text-3b4c1f89.cjs +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
var Zr = Object.defineProperty;
|
|
2
2
|
var zr = (e, t, n) => t in e ? Zr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
4
|
-
import { isEditing as Qr, isBrowser as At, getUserAttributes as qr, logger as
|
|
3
|
+
var Ct = (e, t, n) => (zr(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
+
import { isEditing as Qr, isBrowser as At, getUserAttributes as qr, logger as Or } from "./server-entry-6b3ad048.js";
|
|
5
|
+
import { shouldForceBrowserRuntimeInNode as en } from "./should-force-browser-runtime-in-node-560bddfb.js";
|
|
5
6
|
const tn = (e, t, n) => {
|
|
6
7
|
if (Object(e) !== e)
|
|
7
8
|
return e;
|
|
@@ -72,12 +73,12 @@ function Ir({
|
|
|
72
73
|
}
|
|
73
74
|
});
|
|
74
75
|
}
|
|
75
|
-
var
|
|
76
|
+
var C, sn = function(e) {
|
|
76
77
|
function t(o) {
|
|
77
78
|
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Yr.test(String.fromCharCode(o));
|
|
78
79
|
}
|
|
79
80
|
function n(o) {
|
|
80
|
-
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
81
|
+
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && wr.test(String.fromCharCode(o));
|
|
81
82
|
}
|
|
82
83
|
function r(o, a) {
|
|
83
84
|
for (var l = g, p = 1, E = 0; ; ) {
|
|
@@ -105,12 +106,12 @@ var O, sn = function(e) {
|
|
|
105
106
|
this.line = le, this.ab = c - K;
|
|
106
107
|
}
|
|
107
108
|
function u(o, a) {
|
|
108
|
-
he = c,
|
|
109
|
+
he = c, j.C && (pt = new s()), w = o, m(), V = a, Ie = o.m;
|
|
109
110
|
}
|
|
110
111
|
function h() {
|
|
111
|
-
for (var o = c, a =
|
|
112
|
+
for (var o = c, a = j.va && j.C && new s(), l = g.charCodeAt(c += 2); c < fe && l !== 10 && l !== 13 && l !== 8232 && l !== 8233; )
|
|
112
113
|
++c, l = g.charCodeAt(c);
|
|
113
|
-
|
|
114
|
+
j.va && j.va(!1, g.slice(o + 2, c), o, c, a, j.C && new s());
|
|
114
115
|
}
|
|
115
116
|
function m() {
|
|
116
117
|
for (; c < fe; ) {
|
|
@@ -118,19 +119,19 @@ var O, sn = function(e) {
|
|
|
118
119
|
if (o === 32)
|
|
119
120
|
++c;
|
|
120
121
|
else if (o === 13)
|
|
121
|
-
++c, o = g.charCodeAt(c), o === 10 && ++c,
|
|
122
|
+
++c, o = g.charCodeAt(c), o === 10 && ++c, j.C && (++le, K = c);
|
|
122
123
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
123
|
-
++c,
|
|
124
|
+
++c, j.C && (++le, K = c);
|
|
124
125
|
else if (8 < o && 14 > o)
|
|
125
126
|
++c;
|
|
126
127
|
else if (o === 47)
|
|
127
128
|
if (o = g.charCodeAt(c + 1), o === 42) {
|
|
128
129
|
o = void 0;
|
|
129
|
-
var a =
|
|
130
|
-
if (p === -1 && r(c - 2, "Unterminated comment"), c = p + 2,
|
|
130
|
+
var a = j.va && j.C && new s(), l = c, p = g.indexOf("*/", c += 2);
|
|
131
|
+
if (p === -1 && r(c - 2, "Unterminated comment"), c = p + 2, j.C)
|
|
131
132
|
for (qe.lastIndex = l; (o = qe.exec(g)) && o.index < c; )
|
|
132
133
|
++le, K = o.index + o[0].length;
|
|
133
|
-
|
|
134
|
+
j.va && j.va(!0, g.slice(l + 2, p), l, c, a, j.C && new s());
|
|
134
135
|
} else if (o === 47)
|
|
135
136
|
h();
|
|
136
137
|
else
|
|
@@ -146,7 +147,7 @@ var O, sn = function(e) {
|
|
|
146
147
|
function T(o) {
|
|
147
148
|
switch (o) {
|
|
148
149
|
case 46:
|
|
149
|
-
o = g.charCodeAt(c + 1), 48 <= o && 57 >= o ? pe(!0) : (++c, u(
|
|
150
|
+
o = g.charCodeAt(c + 1), 48 <= o && 57 >= o ? pe(!0) : (++c, u(pr));
|
|
150
151
|
return;
|
|
151
152
|
case 40:
|
|
152
153
|
return ++c, u(Z);
|
|
@@ -159,7 +160,7 @@ var O, sn = function(e) {
|
|
|
159
160
|
case 91:
|
|
160
161
|
return ++c, u(xt);
|
|
161
162
|
case 93:
|
|
162
|
-
return ++c, u(
|
|
163
|
+
return ++c, u(jt);
|
|
163
164
|
case 123:
|
|
164
165
|
return ++c, u(Me);
|
|
165
166
|
case 125:
|
|
@@ -167,7 +168,7 @@ var O, sn = function(e) {
|
|
|
167
168
|
case 58:
|
|
168
169
|
return ++c, u(Re);
|
|
169
170
|
case 63:
|
|
170
|
-
return ++c, u(
|
|
171
|
+
return ++c, u(fr);
|
|
171
172
|
case 48:
|
|
172
173
|
if (o = g.charCodeAt(c + 1), o === 120 || o === 88) {
|
|
173
174
|
c += 2, o = ae(16), o === null && r(R + 2, "Expected hexadecimal number"), n(g.charCodeAt(c)) && r(c, "Identifier directly after number"), u(Ne, o);
|
|
@@ -210,13 +211,13 @@ var O, sn = function(e) {
|
|
|
210
211
|
a += "\r";
|
|
211
212
|
break;
|
|
212
213
|
case 120:
|
|
213
|
-
a += String.fromCharCode(
|
|
214
|
+
a += String.fromCharCode(Se(2));
|
|
214
215
|
break;
|
|
215
216
|
case 117:
|
|
216
|
-
a += String.fromCharCode(
|
|
217
|
+
a += String.fromCharCode(Se(4));
|
|
217
218
|
break;
|
|
218
219
|
case 85:
|
|
219
|
-
a += String.fromCharCode(
|
|
220
|
+
a += String.fromCharCode(Se(8));
|
|
220
221
|
break;
|
|
221
222
|
case 116:
|
|
222
223
|
a += " ";
|
|
@@ -236,7 +237,7 @@ var O, sn = function(e) {
|
|
|
236
237
|
case 13:
|
|
237
238
|
g.charCodeAt(c) === 10 && ++c;
|
|
238
239
|
case 10:
|
|
239
|
-
|
|
240
|
+
j.C && (K = c, ++le);
|
|
240
241
|
break;
|
|
241
242
|
default:
|
|
242
243
|
a += String.fromCharCode(l);
|
|
@@ -246,7 +247,7 @@ var O, sn = function(e) {
|
|
|
246
247
|
}
|
|
247
248
|
return;
|
|
248
249
|
case 47:
|
|
249
|
-
o = g.charCodeAt(c + 1), Ie ? (++c, We()) : o === 61 ? A(ce, 2) : A(
|
|
250
|
+
o = g.charCodeAt(c + 1), Ie ? (++c, We()) : o === 61 ? A(ce, 2) : A(hr, 1);
|
|
250
251
|
return;
|
|
251
252
|
case 37:
|
|
252
253
|
case 42:
|
|
@@ -254,37 +255,37 @@ var O, sn = function(e) {
|
|
|
254
255
|
return;
|
|
255
256
|
case 124:
|
|
256
257
|
case 38:
|
|
257
|
-
a = g.charCodeAt(c + 1), a === o ? A(o === 124 ?
|
|
258
|
+
a = g.charCodeAt(c + 1), a === o ? A(o === 124 ? yr : dr, 2) : a === 61 ? A(ce, 2) : A(o === 124 ? Fr : _r, 1);
|
|
258
259
|
return;
|
|
259
260
|
case 94:
|
|
260
|
-
g.charCodeAt(c + 1) === 61 ? A(ce, 2) : A(
|
|
261
|
+
g.charCodeAt(c + 1) === 61 ? A(ce, 2) : A(Lr, 1);
|
|
261
262
|
return;
|
|
262
263
|
case 43:
|
|
263
264
|
case 45:
|
|
264
|
-
a = g.charCodeAt(c + 1), a === o ? a === 45 && g.charCodeAt(c + 2) === 62 && Qe.test(g.slice(ie, c)) ? (c += 3, h(), m(),
|
|
265
|
+
a = g.charCodeAt(c + 1), a === o ? a === 45 && g.charCodeAt(c + 2) === 62 && Qe.test(g.slice(ie, c)) ? (c += 3, h(), m(), O()) : A(Dr, 2) : a === 61 ? A(ce, 2) : A(Xr, 1);
|
|
265
266
|
return;
|
|
266
267
|
case 60:
|
|
267
268
|
case 62:
|
|
268
|
-
a = g.charCodeAt(c + 1), l = 1, a === o ? (l = o === 62 && g.charCodeAt(c + 2) === 62 ? 3 : 2, g.charCodeAt(c + l) === 61 ? A(ce, l + 1) : A(Vr, l)) : a === 33 && o === 60 && g.charCodeAt(c + 2) === 45 && g.charCodeAt(c + 3) === 45 ? (c += 4, h(), m(),
|
|
269
|
+
a = g.charCodeAt(c + 1), l = 1, a === o ? (l = o === 62 && g.charCodeAt(c + 2) === 62 ? 3 : 2, g.charCodeAt(c + l) === 61 ? A(ce, l + 1) : A(Vr, l)) : a === 33 && o === 60 && g.charCodeAt(c + 2) === 45 && g.charCodeAt(c + 3) === 45 ? (c += 4, h(), m(), O()) : (a === 61 && (l = g.charCodeAt(c + 2) === 61 ? 3 : 2), A(Gr, l));
|
|
269
270
|
return;
|
|
270
271
|
case 61:
|
|
271
272
|
case 33:
|
|
272
|
-
g.charCodeAt(c + 1) === 61 ? A(Br, g.charCodeAt(c + 2) === 61 ? 3 : 2) : A(o === 61 ?
|
|
273
|
+
g.charCodeAt(c + 1) === 61 ? A(Br, g.charCodeAt(c + 2) === 61 ? 3 : 2) : A(o === 61 ? gr : vr, 1);
|
|
273
274
|
return;
|
|
274
275
|
case 126:
|
|
275
|
-
return A(
|
|
276
|
+
return A(vr, 1);
|
|
276
277
|
}
|
|
277
278
|
return !1;
|
|
278
279
|
}
|
|
279
|
-
function
|
|
280
|
-
if (o ? c = R + 1 : R = c,
|
|
280
|
+
function O(o) {
|
|
281
|
+
if (o ? c = R + 1 : R = c, j.C && (ct = new s()), o)
|
|
281
282
|
return We();
|
|
282
283
|
if (c >= fe)
|
|
283
284
|
return u(gt);
|
|
284
285
|
if (o = g.charCodeAt(c), n(o) || o === 92)
|
|
285
286
|
return H();
|
|
286
287
|
if (T(o) === !1) {
|
|
287
|
-
if (o = String.fromCharCode(o), o === "\\" ||
|
|
288
|
+
if (o = String.fromCharCode(o), o === "\\" || wr.test(o))
|
|
288
289
|
return H();
|
|
289
290
|
r(c, "Unexpected character '" + o + "'");
|
|
290
291
|
}
|
|
@@ -316,14 +317,14 @@ var O, sn = function(e) {
|
|
|
316
317
|
} catch (P) {
|
|
317
318
|
throw P instanceof SyntaxError && r(l, P.message), P;
|
|
318
319
|
}
|
|
319
|
-
u(
|
|
320
|
+
u($t, E);
|
|
320
321
|
}
|
|
321
322
|
function ae(o, a) {
|
|
322
323
|
for (var l = c, p = 0, E = a === void 0 ? 1 / 0 : a, P = 0; P < E; ++P) {
|
|
323
|
-
var
|
|
324
|
-
if (
|
|
324
|
+
var L = g.charCodeAt(c);
|
|
325
|
+
if (L = 97 <= L ? L - 97 + 10 : 65 <= L ? L - 65 + 10 : 48 <= L && 57 >= L ? L - 48 : 1 / 0, L >= o)
|
|
325
326
|
break;
|
|
326
|
-
++c, p = p * o +
|
|
327
|
+
++c, p = p * o + L;
|
|
327
328
|
}
|
|
328
329
|
return c === l || a !== void 0 && c - l !== a ? null : p;
|
|
329
330
|
}
|
|
@@ -333,7 +334,7 @@ var O, sn = function(e) {
|
|
|
333
334
|
var E;
|
|
334
335
|
l ? E = parseFloat(o) : p && o.length !== 1 ? /[89]/.test(o) || G ? r(a, "Invalid number") : E = parseInt(o, 8) : E = parseInt(o, 10), u(Ne, E);
|
|
335
336
|
}
|
|
336
|
-
function
|
|
337
|
+
function Se(o) {
|
|
337
338
|
return o = ae(16, o), o === null && r(R, "Bad character escape sequence"), o;
|
|
338
339
|
}
|
|
339
340
|
function X() {
|
|
@@ -343,7 +344,7 @@ var O, sn = function(e) {
|
|
|
343
344
|
if (t(p))
|
|
344
345
|
ye && (o += g.charAt(c)), ++c;
|
|
345
346
|
else if (p === 92) {
|
|
346
|
-
ye || (o = g.slice(l, c)), ye = !0, g.charCodeAt(++c) !== 117 && r(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, p =
|
|
347
|
+
ye || (o = g.slice(l, c)), ye = !0, g.charCodeAt(++c) !== 117 && r(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, p = Se(4);
|
|
347
348
|
var E = String.fromCharCode(p);
|
|
348
349
|
E || r(c - 1, "Invalid Unicode escape"), (a ? n(p) : t(p)) || r(c - 4, "Invalid Unicode escape"), o += E;
|
|
349
350
|
} else
|
|
@@ -354,49 +355,49 @@ var O, sn = function(e) {
|
|
|
354
355
|
}
|
|
355
356
|
function H() {
|
|
356
357
|
var o = X(), a = ge;
|
|
357
|
-
!ye && $r(o) && (a =
|
|
358
|
+
!ye && $r(o) && (a = br[o]), u(a, o);
|
|
358
359
|
}
|
|
359
|
-
function
|
|
360
|
-
ft = R, ie = he, ht = pt,
|
|
360
|
+
function S() {
|
|
361
|
+
ft = R, ie = he, ht = pt, O();
|
|
361
362
|
}
|
|
362
363
|
function ke(o) {
|
|
363
|
-
if (G = o, c = R,
|
|
364
|
+
if (G = o, c = R, j.C)
|
|
364
365
|
for (; c < K; )
|
|
365
366
|
K = g.lastIndexOf(`
|
|
366
367
|
`, K - 2) + 1, --le;
|
|
367
|
-
m(),
|
|
368
|
+
m(), O();
|
|
368
369
|
}
|
|
369
370
|
function He() {
|
|
370
371
|
this.type = null, this.start = R, this.end = null;
|
|
371
372
|
}
|
|
372
|
-
function
|
|
373
|
+
function Vt() {
|
|
373
374
|
this.start = ct, this.end = null, lt && (this.source = lt);
|
|
374
375
|
}
|
|
375
|
-
function
|
|
376
|
+
function b() {
|
|
376
377
|
var o = new He();
|
|
377
|
-
return
|
|
378
|
+
return j.C && (o.X = new Vt()), j.vb && (o.sourceFile = j.vb), j.Xa && (o.j = [R, 0]), o;
|
|
378
379
|
}
|
|
379
380
|
function ne(o) {
|
|
380
381
|
var a = new He();
|
|
381
|
-
return a.start = o.start,
|
|
382
|
+
return a.start = o.start, j.C && (a.X = new Vt(), a.X.start = o.X.start), j.Xa && (a.j = [o.j[0], 0]), a;
|
|
382
383
|
}
|
|
383
384
|
function x(o, a) {
|
|
384
|
-
return o.type = a, o.end = ie,
|
|
385
|
+
return o.type = a, o.end = ie, j.C && (o.X.end = ht), j.Xa && (o.j[1] = ie), o;
|
|
385
386
|
}
|
|
386
387
|
function rt(o) {
|
|
387
388
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
388
389
|
}
|
|
389
390
|
function I(o) {
|
|
390
|
-
return w === o ? (
|
|
391
|
+
return w === o ? (S(), !0) : !1;
|
|
391
392
|
}
|
|
392
393
|
function $e() {
|
|
393
|
-
return !
|
|
394
|
+
return !j.fc && (w === gt || w === ve || Qe.test(g.slice(ie, R)));
|
|
394
395
|
}
|
|
395
396
|
function ue() {
|
|
396
397
|
I(z) || $e() || J();
|
|
397
398
|
}
|
|
398
399
|
function N(o) {
|
|
399
|
-
w === o ?
|
|
400
|
+
w === o ? S() : J();
|
|
400
401
|
}
|
|
401
402
|
function J() {
|
|
402
403
|
r(R, "Unexpected token");
|
|
@@ -405,12 +406,12 @@ var O, sn = function(e) {
|
|
|
405
406
|
o.type !== "Identifier" && o.type !== "MemberExpression" && r(o.start, "Assigning to rvalue"), G && o.type === "Identifier" && ze(o.name) && r(o.start, "Assigning to " + o.name + " in strict mode");
|
|
406
407
|
}
|
|
407
408
|
function W() {
|
|
408
|
-
(w ===
|
|
409
|
-
var o = w, a =
|
|
409
|
+
(w === hr || w === ce && V === "/=") && O(!0);
|
|
410
|
+
var o = w, a = b();
|
|
410
411
|
switch (o) {
|
|
411
412
|
case vt:
|
|
412
|
-
case
|
|
413
|
-
|
|
413
|
+
case Yt:
|
|
414
|
+
S();
|
|
414
415
|
var l = o === vt;
|
|
415
416
|
I(z) || $e() ? a.label = null : w !== ge ? J() : (a.label = Y(), ue());
|
|
416
417
|
for (var p = 0; p < M.length; ++p) {
|
|
@@ -419,36 +420,36 @@ var O, sn = function(e) {
|
|
|
419
420
|
break;
|
|
420
421
|
}
|
|
421
422
|
return p === M.length && r(a.start, "Unsyntactic " + o.l), x(a, l ? "BreakStatement" : "ContinueStatement");
|
|
422
|
-
case
|
|
423
|
-
return
|
|
424
|
-
case
|
|
425
|
-
return
|
|
426
|
-
case
|
|
427
|
-
return
|
|
423
|
+
case Kt:
|
|
424
|
+
return S(), ue(), x(a, "DebuggerStatement");
|
|
425
|
+
case zt:
|
|
426
|
+
return S(), M.push(St), a.body = W(), M.pop(), N(Et), a.test = Ce(), ue(), x(a, "DoWhileStatement");
|
|
427
|
+
case er:
|
|
428
|
+
return S(), M.push(St), N(Z), w === z ? nt(a, null) : w === wt ? (o = b(), S(), Wt(o, !0), x(o, "VariableDeclaration"), o.fa.length === 1 && I(Ze) ? Xt(a, o) : nt(a, o)) : (o = F(!1, !0), I(Ze) ? (Je(o), Xt(a, o)) : nt(a, o));
|
|
428
429
|
case dt:
|
|
429
|
-
return
|
|
430
|
+
return S(), at(a, !0);
|
|
431
|
+
case tr:
|
|
432
|
+
return S(), a.test = Ce(), a.da = W(), a.alternate = I(Qt) ? W() : null, x(a, "IfStatement");
|
|
430
433
|
case rr:
|
|
431
|
-
return j(
|
|
432
|
-
case nr:
|
|
433
|
-
return Te || S.Ib || r(R, "'return' outside of function"), j(), I(z) || $e() ? a.K = null : (a.K = F(), ue()), x(a, "ReturnStatement");
|
|
434
|
+
return Te || j.Ib || r(R, "'return' outside of function"), S(), I(z) || $e() ? a.K = null : (a.K = F(), ue()), x(a, "ReturnStatement");
|
|
434
435
|
case mt:
|
|
435
|
-
for (
|
|
436
|
-
w === yt || w ===
|
|
437
|
-
return p && x(p, "SwitchCase"),
|
|
436
|
+
for (S(), a.Qb = Ce(), a.tb = [], N(Me), M.push(Kr); w !== ve; )
|
|
437
|
+
w === yt || w === Zt ? (o = w === yt, p && x(p, "SwitchCase"), a.tb.push(p = b()), p.da = [], S(), o ? p.test = F() : (l && r(ft, "Multiple default clauses"), l = !0, p.test = null), N(Re)) : (p || J(), p.da.push(W()));
|
|
438
|
+
return p && x(p, "SwitchCase"), S(), M.pop(), x(a, "SwitchStatement");
|
|
439
|
+
case nr:
|
|
440
|
+
return S(), Qe.test(g.slice(ie, R)) && r(ie, "Illegal newline after throw"), a.K = F(), ue(), x(a, "ThrowStatement");
|
|
438
441
|
case ir:
|
|
439
|
-
return
|
|
440
|
-
case or:
|
|
441
|
-
return j(), a.block = Ce(), a.Ea = null, w === Yt && (o = U(), j(), N(Z), o.Ua = Y(), G && ze(o.Ua.name) && r(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), N($), o.body = Ce(), a.Ea = x(o, "CatchClause")), a.fb = I(er) ? Ce() : null, a.Ea || a.fb || r(a.start, "Missing catch or finally clause"), x(a, "TryStatement");
|
|
442
|
+
return S(), a.block = Oe(), a.Ea = null, w === Jt && (o = b(), S(), N(Z), o.Ua = Y(), G && ze(o.Ua.name) && r(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), N($), o.body = Oe(), a.Ea = x(o, "CatchClause")), a.fb = I(qt) ? Oe() : null, a.Ea || a.fb || r(a.start, "Missing catch or finally clause"), x(a, "TryStatement");
|
|
442
443
|
case wt:
|
|
443
|
-
return
|
|
444
|
+
return S(), Wt(a), ue(), x(a, "VariableDeclaration");
|
|
444
445
|
case Et:
|
|
445
|
-
return
|
|
446
|
-
case
|
|
447
|
-
return G && r(R, "'with' in strict mode"),
|
|
446
|
+
return S(), a.test = Ce(), M.push(St), a.body = W(), M.pop(), x(a, "WhileStatement");
|
|
447
|
+
case or:
|
|
448
|
+
return G && r(R, "'with' in strict mode"), S(), a.object = Ce(), a.body = W(), x(a, "WithStatement");
|
|
448
449
|
case Me:
|
|
449
|
-
return
|
|
450
|
+
return Oe();
|
|
450
451
|
case z:
|
|
451
|
-
return
|
|
452
|
+
return S(), x(a, "EmptyStatement");
|
|
452
453
|
default:
|
|
453
454
|
if (l = V, E = F(), o === ge && E.type === "Identifier" && I(Re)) {
|
|
454
455
|
for (p = 0; p < M.length; ++p)
|
|
@@ -461,13 +462,13 @@ var O, sn = function(e) {
|
|
|
461
462
|
return a.la = E, ue(), x(a, "ExpressionStatement");
|
|
462
463
|
}
|
|
463
464
|
}
|
|
464
|
-
function
|
|
465
|
+
function Ce() {
|
|
465
466
|
N(Z);
|
|
466
467
|
var o = F();
|
|
467
468
|
return N($), o;
|
|
468
469
|
}
|
|
469
|
-
function
|
|
470
|
-
var a =
|
|
470
|
+
function Oe(o) {
|
|
471
|
+
var a = b(), l = !0, p = !1;
|
|
471
472
|
for (a.body = [], N(Me); !I(ve); ) {
|
|
472
473
|
var E = W();
|
|
473
474
|
if (a.body.push(E), l && o && rt(E)) {
|
|
@@ -481,13 +482,13 @@ var O, sn = function(e) {
|
|
|
481
482
|
function nt(o, a) {
|
|
482
483
|
return o.ua = a, N(z), o.test = w === z ? null : F(), N(z), o.update = w === $ ? null : F(), N($), o.body = W(), M.pop(), x(o, "ForStatement");
|
|
483
484
|
}
|
|
484
|
-
function
|
|
485
|
+
function Xt(o, a) {
|
|
485
486
|
return o.left = a, o.right = F(), N($), o.body = W(), M.pop(), x(o, "ForInStatement");
|
|
486
487
|
}
|
|
487
|
-
function
|
|
488
|
+
function Wt(o, a) {
|
|
488
489
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
489
|
-
var l =
|
|
490
|
-
if (l.id = Y(), G && ze(l.id.name) && r(l.id.start, "Binding " + l.id.name + " in strict mode"), l.ua = I(
|
|
490
|
+
var l = b();
|
|
491
|
+
if (l.id = Y(), G && ze(l.id.name) && r(l.id.start, "Binding " + l.id.name + " in strict mode"), l.ua = I(gr) ? F(!0, a) : null, o.fa.push(x(l, "VariableDeclarator")), !I(oe))
|
|
491
492
|
break;
|
|
492
493
|
}
|
|
493
494
|
}
|
|
@@ -502,64 +503,64 @@ var O, sn = function(e) {
|
|
|
502
503
|
}
|
|
503
504
|
function it(o) {
|
|
504
505
|
var a = ot(st(), -1, o);
|
|
505
|
-
if (I(
|
|
506
|
+
if (I(fr)) {
|
|
506
507
|
var l = ne(a);
|
|
507
508
|
l.test = a, l.da = F(!0), N(Re), l.alternate = F(!0, o), a = x(l, "ConditionalExpression");
|
|
508
509
|
}
|
|
509
|
-
return w.Cb ? (l = ne(a), l.operator = V, l.left = a,
|
|
510
|
+
return w.Cb ? (l = ne(a), l.operator = V, l.left = a, S(), l.right = it(o), Je(a), x(l, "AssignmentExpression")) : a;
|
|
510
511
|
}
|
|
511
512
|
function ot(o, a, l) {
|
|
512
513
|
var p = w.L;
|
|
513
514
|
if (p !== null && (!l || w !== Ze) && p > a) {
|
|
514
515
|
var E = ne(o);
|
|
515
|
-
return E.left = o, E.operator = V, o = w,
|
|
516
|
+
return E.left = o, E.operator = V, o = w, S(), E.right = ot(st(), p, l), p = x(E, o === yr || o === dr ? "LogicalExpression" : "BinaryExpression"), ot(p, a, l);
|
|
516
517
|
}
|
|
517
518
|
return o;
|
|
518
519
|
}
|
|
519
520
|
function st() {
|
|
520
521
|
if (w.prefix) {
|
|
521
|
-
var o =
|
|
522
|
-
return o.operator = V, Ie = o.prefix = !0,
|
|
522
|
+
var o = b(), a = w.$b;
|
|
523
|
+
return o.operator = V, Ie = o.prefix = !0, S(), o.K = st(), a ? Je(o.K) : G && o.operator === "delete" && o.K.type === "Identifier" && r(o.start, "Deleting local variable in strict mode"), x(o, a ? "UpdateExpression" : "UnaryExpression");
|
|
523
524
|
}
|
|
524
525
|
for (a = Ae(Ye()); w.cc && !$e(); )
|
|
525
|
-
o = ne(a), o.operator = V, o.prefix = !1, o.K = a, Je(a),
|
|
526
|
+
o = ne(a), o.operator = V, o.prefix = !1, o.K = a, Je(a), S(), a = x(o, "UpdateExpression");
|
|
526
527
|
return a;
|
|
527
528
|
}
|
|
528
529
|
function Ae(o, a) {
|
|
529
|
-
if (I(
|
|
530
|
+
if (I(pr)) {
|
|
530
531
|
var l = ne(o);
|
|
531
532
|
return l.object = o, l.Wa = Y(!0), l.bb = !1, Ae(x(l, "MemberExpression"), a);
|
|
532
533
|
}
|
|
533
|
-
return I(xt) ? (l = ne(o), l.object = o, l.Wa = F(), l.bb = !0, N(
|
|
534
|
+
return I(xt) ? (l = ne(o), l.object = o, l.Wa = F(), l.bb = !0, N(jt), Ae(x(l, "MemberExpression"), a)) : !a && I(Z) ? (l = ne(o), l.callee = o, l.arguments = ut($, !1), Ae(x(l, "CallExpression"), a)) : o;
|
|
534
535
|
}
|
|
535
536
|
function Ye() {
|
|
536
537
|
switch (w) {
|
|
537
|
-
case
|
|
538
|
-
var o =
|
|
539
|
-
return
|
|
538
|
+
case ar:
|
|
539
|
+
var o = b();
|
|
540
|
+
return S(), x(o, "ThisExpression");
|
|
540
541
|
case ge:
|
|
541
542
|
return Y();
|
|
542
543
|
case Ne:
|
|
543
544
|
case Ke:
|
|
544
|
-
case
|
|
545
|
-
return o =
|
|
545
|
+
case $t:
|
|
546
|
+
return o = b(), o.value = V, o.raw = g.slice(R, he), S(), x(o, "Literal");
|
|
547
|
+
case ur:
|
|
546
548
|
case lr:
|
|
547
549
|
case cr:
|
|
548
|
-
|
|
549
|
-
return o = U(), o.value = w.$a, o.raw = w.l, j(), x(o, "Literal");
|
|
550
|
+
return o = b(), o.value = w.$a, o.raw = w.l, S(), x(o, "Literal");
|
|
550
551
|
case Z:
|
|
551
552
|
o = ct;
|
|
552
553
|
var a = R;
|
|
553
|
-
|
|
554
|
+
S();
|
|
554
555
|
var l = F();
|
|
555
|
-
return l.start = a, l.end = he,
|
|
556
|
+
return l.start = a, l.end = he, j.C && (l.X.start = o, l.X.end = pt), j.Xa && (l.j = [a, he]), N($), l;
|
|
556
557
|
case xt:
|
|
557
|
-
return o =
|
|
558
|
+
return o = b(), S(), o.elements = ut(jt, !0, !0), x(o, "ArrayExpression");
|
|
558
559
|
case Me:
|
|
559
|
-
for (o =
|
|
560
|
+
for (o = b(), a = !0, l = !1, o.h = [], S(); !I(ve); ) {
|
|
560
561
|
if (a)
|
|
561
562
|
a = !1;
|
|
562
|
-
else if (N(oe),
|
|
563
|
+
else if (N(oe), j.sb && I(ve))
|
|
563
564
|
break;
|
|
564
565
|
var p = {
|
|
565
566
|
key: w === Ne || w === Ke ? Ye() : Y(!0)
|
|
@@ -568,10 +569,10 @@ var O, sn = function(e) {
|
|
|
568
569
|
p.value = F(!0);
|
|
569
570
|
var P = p.kind = "init";
|
|
570
571
|
} else
|
|
571
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? J() : (E = l = !0, P = p.kind = p.key.name, p.key = w === Ne || w === Ke ? Ye() : Y(!0), w !== Z && J(), p.value = at(
|
|
572
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? J() : (E = l = !0, P = p.kind = p.key.name, p.key = w === Ne || w === Ke ? Ye() : Y(!0), w !== Z && J(), p.value = at(b(), !1));
|
|
572
573
|
if (p.key.type === "Identifier" && (G || l))
|
|
573
|
-
for (var
|
|
574
|
-
var de = o.h[
|
|
574
|
+
for (var L = 0; L < o.h.length; ++L) {
|
|
575
|
+
var de = o.h[L];
|
|
575
576
|
if (de.key.name === p.key.name) {
|
|
576
577
|
var kt = P === de.kind || E && de.kind === "init" || P === "init" && (de.kind === "get" || de.kind === "set");
|
|
577
578
|
kt && !G && P === "init" && de.kind === "init" && (kt = !1), kt && r(p.key.start, "Redefinition of property");
|
|
@@ -581,9 +582,9 @@ var O, sn = function(e) {
|
|
|
581
582
|
}
|
|
582
583
|
return x(o, "ObjectExpression");
|
|
583
584
|
case dt:
|
|
584
|
-
return o =
|
|
585
|
-
case
|
|
586
|
-
return o =
|
|
585
|
+
return o = b(), S(), at(o, !1);
|
|
586
|
+
case sr:
|
|
587
|
+
return o = b(), S(), o.callee = Ae(Ye(), !0), o.arguments = I(Z) ? ut($, !1) : Ur, x(o, "NewExpression");
|
|
587
588
|
}
|
|
588
589
|
J();
|
|
589
590
|
}
|
|
@@ -594,9 +595,9 @@ var O, sn = function(e) {
|
|
|
594
595
|
l ? l = !1 : N(oe), o.oa.push(Y());
|
|
595
596
|
l = Te;
|
|
596
597
|
var p = M;
|
|
597
|
-
if (Te = !0, M = [], o.body =
|
|
598
|
+
if (Te = !0, M = [], o.body = Oe(!0), Te = l, M = p, G || o.body.body.length && rt(o.body.body[0])) {
|
|
598
599
|
for (l = o.id ? -1 : 0; l < o.oa.length; ++l)
|
|
599
|
-
if (p = 0 > l ? o.id : o.oa[l], (
|
|
600
|
+
if (p = 0 > l ? o.id : o.oa[l], (mr(p.name) || ze(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= l)
|
|
600
601
|
for (var E = 0; E < l; ++E)
|
|
601
602
|
p.name === o.oa[E].name && r(p.start, "Argument name clash in strict mode");
|
|
602
603
|
}
|
|
@@ -606,27 +607,27 @@ var O, sn = function(e) {
|
|
|
606
607
|
for (var p = [], E = !0; !I(o); ) {
|
|
607
608
|
if (E)
|
|
608
609
|
E = !1;
|
|
609
|
-
else if (N(oe), a &&
|
|
610
|
+
else if (N(oe), a && j.sb && I(o))
|
|
610
611
|
break;
|
|
611
612
|
p.push(l && w === oe ? null : F(!0));
|
|
612
613
|
}
|
|
613
614
|
return p;
|
|
614
615
|
}
|
|
615
616
|
function Y(o) {
|
|
616
|
-
var a =
|
|
617
|
-
return o &&
|
|
617
|
+
var a = b();
|
|
618
|
+
return o && j.yb === "everywhere" && (o = !1), w === ge ? (!o && (j.yb && Hr(V) || G && mr(V)) && g.slice(R, he).indexOf("\\") === -1 && r(R, "The keyword '" + V + "' is reserved"), a.name = V) : o && w.l ? a.name = w.l : J(), Ie = !1, S(), x(a, "Identifier");
|
|
618
619
|
}
|
|
619
620
|
e.version = "0.5.0";
|
|
620
|
-
var
|
|
621
|
+
var j, g = "", fe, lt;
|
|
621
622
|
e.parse = function(o, a) {
|
|
622
|
-
g = String(o), fe = g.length,
|
|
623
|
-
for (var l in
|
|
624
|
-
Object.prototype.hasOwnProperty.call(
|
|
625
|
-
for (lt =
|
|
623
|
+
g = String(o), fe = g.length, j = a || {};
|
|
624
|
+
for (var l in Ht)
|
|
625
|
+
Object.prototype.hasOwnProperty.call(j, l) || (j[l] = Ht[l]);
|
|
626
|
+
for (lt = j.sourceFile, le = 1, c = K = 0, Ie = !0, m(), l = j.dc, ft = ie = c, j.C && (ht = new s()), Te = G = !1, M = [], O(), o = l || b(), a = !0, l || (o.body = []); w !== gt; )
|
|
626
627
|
l = W(), o.body.push(l), a && rt(l) && ke(!0), a = !1;
|
|
627
628
|
return x(o, "Program");
|
|
628
629
|
};
|
|
629
|
-
var
|
|
630
|
+
var Ht = {
|
|
630
631
|
fc: !1,
|
|
631
632
|
sb: !0,
|
|
632
633
|
yb: !1,
|
|
@@ -637,9 +638,9 @@ var O, sn = function(e) {
|
|
|
637
638
|
dc: null,
|
|
638
639
|
sourceFile: null,
|
|
639
640
|
vb: null
|
|
640
|
-
}, c = 0, R = 0, he = 0, ct, pt, w, V, Ie, le, K, ft = 0, ie = 0, ht, Te, M, G,
|
|
641
|
+
}, c = 0, R = 0, he = 0, ct, pt, w, V, Ie, le, K, ft = 0, ie = 0, ht, Te, M, G, Ur = [], Ne = {
|
|
641
642
|
type: "num"
|
|
642
|
-
},
|
|
643
|
+
}, $t = {
|
|
643
644
|
type: "regexp"
|
|
644
645
|
}, Ke = {
|
|
645
646
|
type: "string"
|
|
@@ -652,95 +653,95 @@ var O, sn = function(e) {
|
|
|
652
653
|
}, yt = {
|
|
653
654
|
l: "case",
|
|
654
655
|
m: !0
|
|
655
|
-
},
|
|
656
|
+
}, Jt = {
|
|
656
657
|
l: "catch"
|
|
657
|
-
},
|
|
658
|
+
}, Yt = {
|
|
658
659
|
l: "continue"
|
|
659
|
-
},
|
|
660
|
+
}, Kt = {
|
|
660
661
|
l: "debugger"
|
|
661
|
-
},
|
|
662
|
+
}, Zt = {
|
|
662
663
|
l: "default"
|
|
663
|
-
},
|
|
664
|
+
}, zt = {
|
|
664
665
|
l: "do",
|
|
665
666
|
W: !0
|
|
666
|
-
},
|
|
667
|
+
}, Qt = {
|
|
667
668
|
l: "else",
|
|
668
669
|
m: !0
|
|
669
|
-
},
|
|
670
|
+
}, qt = {
|
|
670
671
|
l: "finally"
|
|
671
|
-
},
|
|
672
|
+
}, er = {
|
|
672
673
|
l: "for",
|
|
673
674
|
W: !0
|
|
674
675
|
}, dt = {
|
|
675
676
|
l: "function"
|
|
676
|
-
},
|
|
677
|
+
}, tr = {
|
|
677
678
|
l: "if"
|
|
678
|
-
},
|
|
679
|
+
}, rr = {
|
|
679
680
|
l: "return",
|
|
680
681
|
m: !0
|
|
681
682
|
}, mt = {
|
|
682
683
|
l: "switch"
|
|
683
|
-
},
|
|
684
|
+
}, nr = {
|
|
684
685
|
l: "throw",
|
|
685
686
|
m: !0
|
|
686
|
-
},
|
|
687
|
+
}, ir = {
|
|
687
688
|
l: "try"
|
|
688
689
|
}, wt = {
|
|
689
690
|
l: "var"
|
|
690
691
|
}, Et = {
|
|
691
692
|
l: "while",
|
|
692
693
|
W: !0
|
|
693
|
-
},
|
|
694
|
+
}, or = {
|
|
694
695
|
l: "with"
|
|
695
|
-
},
|
|
696
|
+
}, sr = {
|
|
696
697
|
l: "new",
|
|
697
698
|
m: !0
|
|
698
|
-
},
|
|
699
|
+
}, ar = {
|
|
699
700
|
l: "this"
|
|
700
|
-
},
|
|
701
|
+
}, ur = {
|
|
701
702
|
l: "null",
|
|
702
703
|
$a: null
|
|
703
|
-
},
|
|
704
|
+
}, lr = {
|
|
704
705
|
l: "true",
|
|
705
706
|
$a: !0
|
|
706
|
-
},
|
|
707
|
+
}, cr = {
|
|
707
708
|
l: "false",
|
|
708
709
|
$a: !1
|
|
709
710
|
}, Ze = {
|
|
710
711
|
l: "in",
|
|
711
712
|
L: 7,
|
|
712
713
|
m: !0
|
|
713
|
-
},
|
|
714
|
+
}, br = {
|
|
714
715
|
break: vt,
|
|
715
716
|
case: yt,
|
|
716
|
-
catch:
|
|
717
|
-
continue:
|
|
718
|
-
debugger:
|
|
719
|
-
default:
|
|
720
|
-
do:
|
|
721
|
-
else:
|
|
722
|
-
finally:
|
|
723
|
-
for:
|
|
717
|
+
catch: Jt,
|
|
718
|
+
continue: Yt,
|
|
719
|
+
debugger: Kt,
|
|
720
|
+
default: Zt,
|
|
721
|
+
do: zt,
|
|
722
|
+
else: Qt,
|
|
723
|
+
finally: qt,
|
|
724
|
+
for: er,
|
|
724
725
|
function: dt,
|
|
725
|
-
if:
|
|
726
|
-
return:
|
|
726
|
+
if: tr,
|
|
727
|
+
return: rr,
|
|
727
728
|
switch: mt,
|
|
728
|
-
throw:
|
|
729
|
-
try:
|
|
729
|
+
throw: nr,
|
|
730
|
+
try: ir,
|
|
730
731
|
var: wt,
|
|
731
732
|
while: Et,
|
|
732
|
-
with:
|
|
733
|
-
null:
|
|
734
|
-
true:
|
|
735
|
-
false:
|
|
736
|
-
new:
|
|
733
|
+
with: or,
|
|
734
|
+
null: ur,
|
|
735
|
+
true: lr,
|
|
736
|
+
false: cr,
|
|
737
|
+
new: sr,
|
|
737
738
|
in: Ze,
|
|
738
739
|
instanceof: {
|
|
739
740
|
l: "instanceof",
|
|
740
741
|
L: 7,
|
|
741
742
|
m: !0
|
|
742
743
|
},
|
|
743
|
-
this:
|
|
744
|
+
this: ar,
|
|
744
745
|
typeof: {
|
|
745
746
|
l: "typeof",
|
|
746
747
|
prefix: !0,
|
|
@@ -759,7 +760,7 @@ var O, sn = function(e) {
|
|
|
759
760
|
}, xt = {
|
|
760
761
|
type: "[",
|
|
761
762
|
m: !0
|
|
762
|
-
},
|
|
763
|
+
}, jt = {
|
|
763
764
|
type: "]"
|
|
764
765
|
}, Me = {
|
|
765
766
|
type: "{",
|
|
@@ -780,15 +781,15 @@ var O, sn = function(e) {
|
|
|
780
781
|
}, Re = {
|
|
781
782
|
type: ":",
|
|
782
783
|
m: !0
|
|
783
|
-
},
|
|
784
|
+
}, pr = {
|
|
784
785
|
type: "."
|
|
785
|
-
},
|
|
786
|
+
}, fr = {
|
|
786
787
|
type: "?",
|
|
787
788
|
m: !0
|
|
788
|
-
},
|
|
789
|
+
}, hr = {
|
|
789
790
|
L: 10,
|
|
790
791
|
m: !0
|
|
791
|
-
},
|
|
792
|
+
}, gr = {
|
|
792
793
|
Cb: !0,
|
|
793
794
|
m: !0
|
|
794
795
|
}, ce = {
|
|
@@ -798,22 +799,22 @@ var O, sn = function(e) {
|
|
|
798
799
|
cc: !0,
|
|
799
800
|
prefix: !0,
|
|
800
801
|
$b: !0
|
|
801
|
-
},
|
|
802
|
+
}, vr = {
|
|
802
803
|
prefix: !0,
|
|
803
804
|
m: !0
|
|
804
|
-
},
|
|
805
|
+
}, yr = {
|
|
805
806
|
L: 1,
|
|
806
807
|
m: !0
|
|
807
|
-
},
|
|
808
|
+
}, dr = {
|
|
808
809
|
L: 2,
|
|
809
810
|
m: !0
|
|
810
811
|
}, Fr = {
|
|
811
812
|
L: 3,
|
|
812
813
|
m: !0
|
|
813
|
-
},
|
|
814
|
+
}, Lr = {
|
|
814
815
|
L: 4,
|
|
815
816
|
m: !0
|
|
816
|
-
},
|
|
817
|
+
}, _r = {
|
|
817
818
|
L: 5,
|
|
818
819
|
m: !0
|
|
819
820
|
}, Br = {
|
|
@@ -832,7 +833,7 @@ var O, sn = function(e) {
|
|
|
832
833
|
}, Wr = {
|
|
833
834
|
L: 10,
|
|
834
835
|
m: !0
|
|
835
|
-
}, Hr = i("class enum extends super const export import"),
|
|
836
|
+
}, Hr = i("class enum extends super const export import"), mr = i("implements interface let package private protected public static yield"), ze = i("eval arguments"), $r = i("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"), Jr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, wr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Yr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), Qe = /[\n\r\u2028\u2029]/, qe = /\r\n|[\n\r\u2028\u2029]/g, ye, St = {
|
|
836
837
|
kind: "loop"
|
|
837
838
|
}, Kr = {
|
|
838
839
|
kind: "switch"
|
|
@@ -857,10 +858,10 @@ function f(e, t) {
|
|
|
857
858
|
this.N = Nt(this, this.ra, null), this.Na = this.N.object, this.ra = Ee(this.ba.join(`
|
|
858
859
|
`), "polyfills"), this.ba = void 0, et(this.ra), s = new y(this.ra, this.N), s.done = !1, this.o = [s], this.Eb(), this.value = void 0, this.ra = r, s = new y(this.ra, this.N), s.done = !1, this.o.length = 0, this.o[0] = s;
|
|
859
860
|
}
|
|
860
|
-
var
|
|
861
|
+
var Er = {
|
|
861
862
|
C: !0,
|
|
862
863
|
kc: 5
|
|
863
|
-
},
|
|
864
|
+
}, Mt = {
|
|
864
865
|
configurable: !0,
|
|
865
866
|
enumerable: !0,
|
|
866
867
|
writable: !1
|
|
@@ -876,24 +877,24 @@ var xr = {
|
|
|
876
877
|
configurable: !1,
|
|
877
878
|
enumerable: !1,
|
|
878
879
|
writable: !1
|
|
879
|
-
},
|
|
880
|
+
}, xr = {
|
|
880
881
|
configurable: !1,
|
|
881
882
|
enumerable: !0,
|
|
882
883
|
writable: !0
|
|
883
884
|
}, Tr = {
|
|
884
885
|
STEP_ERROR: !0
|
|
885
|
-
},
|
|
886
|
+
}, je = {
|
|
886
887
|
SCOPE_REFERENCE: !0
|
|
887
888
|
}, Be = {
|
|
888
889
|
VALUE_IN_DESCRIPTOR: !0
|
|
889
890
|
}, me = {
|
|
890
891
|
REGEXP_TIMEOUT: !0
|
|
891
|
-
}, jr = [], ee = null,
|
|
892
|
-
function
|
|
892
|
+
}, jr = [], ee = null, Le = null, se = typeof globalThis == "undefined" ? void 0 : globalThis, an = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
|
|
893
|
+
function Rt(e) {
|
|
893
894
|
var t = e >>> 0;
|
|
894
895
|
return t === Number(e) ? t : NaN;
|
|
895
896
|
}
|
|
896
|
-
function
|
|
897
|
+
function _e(e) {
|
|
897
898
|
var t = e >>> 0;
|
|
898
899
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
899
900
|
}
|
|
@@ -908,18 +909,18 @@ function et(e, t, n) {
|
|
|
908
909
|
f.prototype.REGEXP_MODE = 2;
|
|
909
910
|
f.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
910
911
|
f.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
912
|
+
C = f.prototype;
|
|
913
|
+
C.P = !1;
|
|
914
|
+
C.Ka = !1;
|
|
915
|
+
C.Kb = 0;
|
|
916
|
+
C.ic = 0;
|
|
916
917
|
function Ee(e, t) {
|
|
917
918
|
var n = {}, r;
|
|
918
|
-
for (r in
|
|
919
|
-
n[r] =
|
|
919
|
+
for (r in Er)
|
|
920
|
+
n[r] = Er[r];
|
|
920
921
|
return n.sourceFile = t, se.j.parse(e, n);
|
|
921
922
|
}
|
|
922
|
-
|
|
923
|
+
C.Jb = function(e) {
|
|
923
924
|
var t = this.o[0];
|
|
924
925
|
if (!t || t.node.type !== "Program")
|
|
925
926
|
throw Error("Expecting original AST to start with a Program node");
|
|
@@ -927,7 +928,7 @@ O.Jb = function(e) {
|
|
|
927
928
|
throw Error("Expecting new AST to start with a Program node");
|
|
928
929
|
Ge(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
929
930
|
};
|
|
930
|
-
|
|
931
|
+
C.lb = function() {
|
|
931
932
|
var e = this.o, t;
|
|
932
933
|
do {
|
|
933
934
|
var n = e[e.length - 1];
|
|
@@ -947,15 +948,15 @@ O.lb = function() {
|
|
|
947
948
|
break;
|
|
948
949
|
}
|
|
949
950
|
r = n.node;
|
|
950
|
-
var i =
|
|
951
|
-
|
|
951
|
+
var i = Le;
|
|
952
|
+
Le = this;
|
|
952
953
|
try {
|
|
953
954
|
var s = this.rb[r.type](e, n, r);
|
|
954
955
|
} catch (u) {
|
|
955
956
|
if (u !== Tr)
|
|
956
957
|
throw this.value !== u && (this.value = void 0), u;
|
|
957
958
|
} finally {
|
|
958
|
-
|
|
959
|
+
Le = i;
|
|
959
960
|
}
|
|
960
961
|
if (s && e.push(s), this.P)
|
|
961
962
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -965,13 +966,13 @@ O.lb = function() {
|
|
|
965
966
|
} while (!r.end && t > Date.now());
|
|
966
967
|
return !0;
|
|
967
968
|
};
|
|
968
|
-
|
|
969
|
+
C.Eb = function() {
|
|
969
970
|
for (; !this.za && this.lb(); )
|
|
970
971
|
;
|
|
971
972
|
return this.za;
|
|
972
973
|
};
|
|
973
974
|
function un(e, t) {
|
|
974
|
-
e.g(t, "NaN", NaN, Pe), e.g(t, "Infinity", 1 / 0, Pe), e.g(t, "undefined", void 0, Pe), e.g(t, "window", t,
|
|
975
|
+
e.g(t, "NaN", NaN, Pe), e.g(t, "Infinity", 1 / 0, Pe), e.g(t, "undefined", void 0, Pe), e.g(t, "window", t, Mt), e.g(t, "this", t, Pe), e.g(t, "self", t), e.M = new k(null), e.Z = new k(e.M), ln(e, t), cn(e, t), t.xa = e.M, e.g(t, "constructor", e.v, v), pn(e, t), fn(e, t), hn(e, t), gn(e, t), vn(e, t), yn(e, t), dn(e, t), mn(e, t), wn(e, t);
|
|
975
976
|
var n = e.i(function() {
|
|
976
977
|
throw EvalError("Can't happen");
|
|
977
978
|
}, !1);
|
|
@@ -987,16 +988,16 @@ function un(e, t) {
|
|
|
987
988
|
};
|
|
988
989
|
}(r[i][0]), e.g(t, r[i][1], e.i(n, !1), v);
|
|
989
990
|
n = function(s) {
|
|
990
|
-
return
|
|
991
|
+
return Sr(e, !1, arguments);
|
|
991
992
|
}, e.g(t, "setTimeout", e.i(n, !1), v), n = function(s) {
|
|
992
|
-
return
|
|
993
|
+
return Sr(e, !0, arguments);
|
|
993
994
|
}, e.g(t, "setInterval", e.i(n, !1), v), n = function(s) {
|
|
994
|
-
|
|
995
|
+
kr(e, s);
|
|
995
996
|
}, e.g(t, "clearTimeout", e.i(n, !1), v), n = function(s) {
|
|
996
|
-
|
|
997
|
+
kr(e, s);
|
|
997
998
|
}, e.g(t, "clearInterval", e.i(n, !1), v), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
998
999
|
}
|
|
999
|
-
|
|
1000
|
+
C.Wb = 0;
|
|
1000
1001
|
function ln(e, t) {
|
|
1001
1002
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(i) {
|
|
1002
1003
|
var s = arguments.length ? String(arguments[arguments.length - 1]) : "", u = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
@@ -1010,26 +1011,26 @@ function ln(e, t) {
|
|
|
1010
1011
|
}
|
|
1011
1012
|
try {
|
|
1012
1013
|
var T = Ee("(function(" + u + ") {" + s + "})", "function" + e.Wb++);
|
|
1013
|
-
} catch (
|
|
1014
|
-
d(e, e.T, "Invalid code: " +
|
|
1014
|
+
} catch (O) {
|
|
1015
|
+
d(e, e.T, "Invalid code: " + O.message);
|
|
1015
1016
|
}
|
|
1016
|
-
return T.body.length !== 1 && d(e, e.T, "Invalid code in function body"),
|
|
1017
|
+
return T.body.length !== 1 && d(e, e.T, "Invalid code in function body"), bt(e, T.body[0].la, e.N, "anonymous");
|
|
1017
1018
|
};
|
|
1018
1019
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, v), e.g(e.O, "prototype", e.Z, v), e.g(e.Z, "constructor", e.O, v), e.Z.Ta = function() {
|
|
1019
1020
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, B), e.Z.H = "Function", r = function(i, s) {
|
|
1020
1021
|
var u = e.o[e.o.length - 1];
|
|
1021
1022
|
u.U = this, u.B = i, u.F = [], s != null && (s instanceof k ? u.F = Nr(e, s) : d(e, e.j, "CreateListFromArrayLike called on non-object")), u.eb = !1;
|
|
1022
|
-
},
|
|
1023
|
+
}, U(e, e.O, "apply", r), r = function(i) {
|
|
1023
1024
|
var s = e.o[e.o.length - 1];
|
|
1024
1025
|
s.U = this, s.B = i, s.F = [];
|
|
1025
1026
|
for (var u = 1; u < arguments.length; u++)
|
|
1026
1027
|
s.F.push(arguments[u]);
|
|
1027
1028
|
s.eb = !1;
|
|
1028
|
-
},
|
|
1029
|
+
}, U(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
|
|
1029
1030
|
return String(this);
|
|
1030
|
-
},
|
|
1031
|
+
}, U(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), v), r = function() {
|
|
1031
1032
|
return this.valueOf();
|
|
1032
|
-
},
|
|
1033
|
+
}, U(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), v);
|
|
1033
1034
|
}
|
|
1034
1035
|
function cn(e, t) {
|
|
1035
1036
|
function n(i) {
|
|
@@ -1063,24 +1064,24 @@ function cn(e, t) {
|
|
|
1063
1064
|
return !!i && !i.preventExtensions;
|
|
1064
1065
|
}, e.g(e.v, "isExtensible", e.i(r, !1), v), r = function(i) {
|
|
1065
1066
|
return i instanceof k && (i.preventExtensions = !0), i;
|
|
1066
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), v),
|
|
1067
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), v), U(e, e.v, "toString", k.prototype.toString), U(e, e.v, "toLocaleString", k.prototype.toString), U(e, e.v, "valueOf", k.prototype.valueOf), r = function(i) {
|
|
1067
1068
|
return n(this), this instanceof k ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1068
|
-
},
|
|
1069
|
+
}, U(e, e.v, "hasOwnProperty", r), r = function(i) {
|
|
1069
1070
|
return n(this), this instanceof k ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1070
|
-
},
|
|
1071
|
+
}, U(e, e.v, "propertyIsEnumerable", r), r = function(i) {
|
|
1071
1072
|
for (; ; ) {
|
|
1072
1073
|
if (i = te(e, i), !i)
|
|
1073
1074
|
return !1;
|
|
1074
1075
|
if (i === this)
|
|
1075
1076
|
return !0;
|
|
1076
1077
|
}
|
|
1077
|
-
},
|
|
1078
|
+
}, U(e, e.v, "isPrototypeOf", r);
|
|
1078
1079
|
}
|
|
1079
1080
|
function pn(e, t) {
|
|
1080
1081
|
var n = function(r) {
|
|
1081
1082
|
var i = re(e) ? this : xe(e), s = arguments[0];
|
|
1082
1083
|
if (arguments.length === 1 && typeof s == "number")
|
|
1083
|
-
isNaN(
|
|
1084
|
+
isNaN(Rt(s)) && d(e, e.ob, "Invalid array length: " + s), i.h.length = s;
|
|
1084
1085
|
else {
|
|
1085
1086
|
for (s = 0; s < arguments.length; s++)
|
|
1086
1087
|
i.h[s] = arguments[s];
|
|
@@ -1101,7 +1102,7 @@ function fn(e, t) {
|
|
|
1101
1102
|
return r = arguments.length ? se.String(r) : "", re(e) ? (this.data = r, this) : r;
|
|
1102
1103
|
};
|
|
1103
1104
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, v), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), v), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1104
|
-
|
|
1105
|
+
U(e, e.J, t[n], String.prototype[t[n]]);
|
|
1105
1106
|
n = function(r, i, s) {
|
|
1106
1107
|
i = e.R(i), s = e.R(s);
|
|
1107
1108
|
try {
|
|
@@ -1109,11 +1110,11 @@ function fn(e, t) {
|
|
|
1109
1110
|
} catch (u) {
|
|
1110
1111
|
d(e, e.D, "localeCompare: " + u.message);
|
|
1111
1112
|
}
|
|
1112
|
-
},
|
|
1113
|
+
}, U(e, e.J, "localeCompare", n), n = function(r, i, s) {
|
|
1113
1114
|
var u = String(this);
|
|
1114
|
-
if (i = i ? Number(i) : void 0, D(e, r, e.I) && (r = r.data,
|
|
1115
|
+
if (i = i ? Number(i) : void 0, D(e, r, e.I) && (r = r.data, be(e, r, s), e.REGEXP_MODE === 2)) {
|
|
1115
1116
|
if (ee)
|
|
1116
|
-
r =
|
|
1117
|
+
r = Ue(e, "string.split(separator, limit)", {
|
|
1117
1118
|
string: u,
|
|
1118
1119
|
separator: r,
|
|
1119
1120
|
limit: i
|
|
@@ -1129,9 +1130,9 @@ function fn(e, t) {
|
|
|
1129
1130
|
r = u.split(r, i), s(q(e, r));
|
|
1130
1131
|
}, Fe(e, e.J, "split", n), n = function(r, i) {
|
|
1131
1132
|
var s = String(this);
|
|
1132
|
-
if (r = D(e, r, e.I) ? r.data : new RegExp(r),
|
|
1133
|
+
if (r = D(e, r, e.I) ? r.data : new RegExp(r), be(e, r, i), e.REGEXP_MODE === 2)
|
|
1133
1134
|
if (ee)
|
|
1134
|
-
r =
|
|
1135
|
+
r = Ue(e, "string.match(regexp)", {
|
|
1135
1136
|
string: s,
|
|
1136
1137
|
regexp: r
|
|
1137
1138
|
}, r, i), r !== me && i(r && q(e, r));
|
|
@@ -1145,9 +1146,9 @@ function fn(e, t) {
|
|
|
1145
1146
|
r = s.match(r), i(r && q(e, r));
|
|
1146
1147
|
}, Fe(e, e.J, "match", n), n = function(r, i) {
|
|
1147
1148
|
var s = String(this);
|
|
1148
|
-
if (D(e, r, e.I) ? r = r.data : r = new RegExp(r),
|
|
1149
|
+
if (D(e, r, e.I) ? r = r.data : r = new RegExp(r), be(e, r, i), e.REGEXP_MODE === 2)
|
|
1149
1150
|
if (ee)
|
|
1150
|
-
r =
|
|
1151
|
+
r = Ue(e, "string.search(regexp)", {
|
|
1151
1152
|
string: s,
|
|
1152
1153
|
regexp: r
|
|
1153
1154
|
}, r, i), r !== me && i(r);
|
|
@@ -1161,9 +1162,9 @@ function fn(e, t) {
|
|
|
1161
1162
|
i(s.search(r));
|
|
1162
1163
|
}, Fe(e, e.J, "search", n), n = function(r, i, s) {
|
|
1163
1164
|
var u = String(this);
|
|
1164
|
-
if (i = String(i), D(e, r, e.I) && (r = r.data,
|
|
1165
|
+
if (i = String(i), D(e, r, e.I) && (r = r.data, be(e, r, s), e.REGEXP_MODE === 2)) {
|
|
1165
1166
|
if (ee)
|
|
1166
|
-
r =
|
|
1167
|
+
r = Ue(e, "string.replace(substr, newSubstr)", {
|
|
1167
1168
|
string: u,
|
|
1168
1169
|
substr: r,
|
|
1169
1170
|
newSubstr: i
|
|
@@ -1196,32 +1197,32 @@ function gn(e, t) {
|
|
|
1196
1197
|
} catch (i) {
|
|
1197
1198
|
d(e, e.D, i.message);
|
|
1198
1199
|
}
|
|
1199
|
-
},
|
|
1200
|
+
}, U(e, e.aa, "toExponential", n), n = function(r) {
|
|
1200
1201
|
try {
|
|
1201
1202
|
return Number(this).toFixed(r);
|
|
1202
1203
|
} catch (i) {
|
|
1203
1204
|
d(e, e.D, i.message);
|
|
1204
1205
|
}
|
|
1205
|
-
},
|
|
1206
|
+
}, U(e, e.aa, "toFixed", n), n = function(r) {
|
|
1206
1207
|
try {
|
|
1207
1208
|
return Number(this).toPrecision(r);
|
|
1208
1209
|
} catch (i) {
|
|
1209
1210
|
d(e, e.D, i.message);
|
|
1210
1211
|
}
|
|
1211
|
-
},
|
|
1212
|
+
}, U(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1212
1213
|
try {
|
|
1213
1214
|
return Number(this).toString(r);
|
|
1214
1215
|
} catch (i) {
|
|
1215
1216
|
d(e, e.D, i.message);
|
|
1216
1217
|
}
|
|
1217
|
-
},
|
|
1218
|
+
}, U(e, e.aa, "toString", n), n = function(r, i) {
|
|
1218
1219
|
r = r ? e.R(r) : void 0, i = i ? e.R(i) : void 0;
|
|
1219
1220
|
try {
|
|
1220
1221
|
return Number(this).toLocaleString(r, i);
|
|
1221
1222
|
} catch (s) {
|
|
1222
1223
|
d(e, e.D, "toLocaleString: " + s.message);
|
|
1223
1224
|
}
|
|
1224
|
-
},
|
|
1225
|
+
}, U(e, e.aa, "toLocaleString", n);
|
|
1225
1226
|
}
|
|
1226
1227
|
function vn(e, t) {
|
|
1227
1228
|
var n = function(i, s) {
|
|
@@ -1240,7 +1241,7 @@ function vn(e, t) {
|
|
|
1240
1241
|
h[m] = e.R(arguments[m]);
|
|
1241
1242
|
return u[i].apply(u, h);
|
|
1242
1243
|
};
|
|
1243
|
-
}(t[r]),
|
|
1244
|
+
}(t[r]), U(e, e.$, t[r], n);
|
|
1244
1245
|
}
|
|
1245
1246
|
function yn(e, t) {
|
|
1246
1247
|
var n = function(r, i) {
|
|
@@ -1257,27 +1258,27 @@ function yn(e, t) {
|
|
|
1257
1258
|
} catch (h) {
|
|
1258
1259
|
d(e, e.T, h.message);
|
|
1259
1260
|
}
|
|
1260
|
-
return
|
|
1261
|
+
return Pt(e, s, u), s;
|
|
1261
1262
|
};
|
|
1262
1263
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, v), e.g(e.I.h.prototype, "global", void 0, B), e.g(e.I.h.prototype, "ignoreCase", void 0, B), e.g(e.I.h.prototype, "multiline", void 0, B), e.g(e.I.h.prototype, "source", "(?:)", B), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, i) {
|
|
1263
|
-
function s(
|
|
1264
|
-
if (
|
|
1265
|
-
var A = q(e,
|
|
1266
|
-
return e.g(A, "index",
|
|
1264
|
+
function s(O) {
|
|
1265
|
+
if (O) {
|
|
1266
|
+
var A = q(e, O);
|
|
1267
|
+
return e.g(A, "index", O.index), e.g(A, "input", O.input), A;
|
|
1267
1268
|
}
|
|
1268
1269
|
return null;
|
|
1269
1270
|
}
|
|
1270
1271
|
var u = this.data;
|
|
1271
|
-
if (r = String(r), u.lastIndex = Number(e.G(this, "lastIndex")),
|
|
1272
|
+
if (r = String(r), u.lastIndex = Number(e.G(this, "lastIndex")), be(e, u, i), e.REGEXP_MODE === 2)
|
|
1272
1273
|
if (ee)
|
|
1273
|
-
r =
|
|
1274
|
+
r = Ue(e, "regexp.exec(string)", {
|
|
1274
1275
|
string: r,
|
|
1275
1276
|
regexp: u
|
|
1276
1277
|
}, u, i), r !== me && (e.g(this, "lastIndex", u.lastIndex), i(s(r)));
|
|
1277
1278
|
else {
|
|
1278
1279
|
var h = e.ha(), m = De(e, u, h, i), T = this;
|
|
1279
|
-
h.onmessage = function(
|
|
1280
|
-
clearTimeout(m), e.g(T, "lastIndex",
|
|
1280
|
+
h.onmessage = function(O) {
|
|
1281
|
+
clearTimeout(m), e.g(T, "lastIndex", O.data[1]), i(s(O.data[0]));
|
|
1281
1282
|
}, h.postMessage(["exec", u, u.lastIndex, r]);
|
|
1282
1283
|
}
|
|
1283
1284
|
else
|
|
@@ -1339,7 +1340,7 @@ function D(e, t, n) {
|
|
|
1339
1340
|
}
|
|
1340
1341
|
return !1;
|
|
1341
1342
|
}
|
|
1342
|
-
function
|
|
1343
|
+
function Pt(e, t, n) {
|
|
1343
1344
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, v), e.g(t, "source", n.source, B), e.g(t, "global", n.global, B), e.g(t, "ignoreCase", n.ignoreCase, B), e.g(t, "multiline", n.multiline, B);
|
|
1344
1345
|
}
|
|
1345
1346
|
function Tt(e, t, n) {
|
|
@@ -1359,14 +1360,14 @@ function Tt(e, t, n) {
|
|
|
1359
1360
|
}
|
|
1360
1361
|
e.g(t, "stack", s.trim(), v);
|
|
1361
1362
|
}
|
|
1362
|
-
|
|
1363
|
+
C.ha = function() {
|
|
1363
1364
|
var e = this.ha.Mb;
|
|
1364
1365
|
return e || (e = new Blob([an.join(`
|
|
1365
1366
|
`)], {
|
|
1366
1367
|
type: "application/javascript"
|
|
1367
1368
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1368
1369
|
};
|
|
1369
|
-
function
|
|
1370
|
+
function Ue(e, t, n, r, i) {
|
|
1370
1371
|
var s = {
|
|
1371
1372
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1372
1373
|
};
|
|
@@ -1377,7 +1378,7 @@ function be(e, t, n, r, i) {
|
|
|
1377
1378
|
}
|
|
1378
1379
|
return me;
|
|
1379
1380
|
}
|
|
1380
|
-
function
|
|
1381
|
+
function be(e, t, n) {
|
|
1381
1382
|
if (e.REGEXP_MODE === 0)
|
|
1382
1383
|
var r = !1;
|
|
1383
1384
|
else if (e.REGEXP_MODE === 1)
|
|
@@ -1405,10 +1406,10 @@ function De(e, t, n, r) {
|
|
|
1405
1406
|
}
|
|
1406
1407
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1407
1408
|
}
|
|
1408
|
-
|
|
1409
|
+
C.Aa = function(e) {
|
|
1409
1410
|
return this.s(e && e.h.prototype);
|
|
1410
1411
|
};
|
|
1411
|
-
|
|
1412
|
+
C.s = function(e) {
|
|
1412
1413
|
if (typeof e != "object")
|
|
1413
1414
|
throw Error("Non object prototype");
|
|
1414
1415
|
return e = new k(e), D(this, e, this.D) && (e.H = "Error"), e;
|
|
@@ -1425,25 +1426,25 @@ function Ut(e, t, n) {
|
|
|
1425
1426
|
var r = e.s(e.Z);
|
|
1426
1427
|
return n ? (n = e.s(e.M), e.g(r, "prototype", n, v), e.g(n, "constructor", r, v)) : r.Ab = !0, e.g(r, "length", t, B), r.H = "Function", r;
|
|
1427
1428
|
}
|
|
1428
|
-
function
|
|
1429
|
+
function bt(e, t, n, r) {
|
|
1429
1430
|
var i = Ut(e, t.oa.length, !0);
|
|
1430
1431
|
return i.Va = n, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : r || "", B), i;
|
|
1431
1432
|
}
|
|
1432
|
-
|
|
1433
|
+
C.i = function(e, t) {
|
|
1433
1434
|
return t = Ut(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, B), t;
|
|
1434
1435
|
};
|
|
1435
|
-
|
|
1436
|
+
C.ub = function(e) {
|
|
1436
1437
|
var t = Ut(this, e.length, !0);
|
|
1437
1438
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, B), t;
|
|
1438
1439
|
};
|
|
1439
|
-
|
|
1440
|
+
C.Ia = function(e) {
|
|
1440
1441
|
if (e instanceof k)
|
|
1441
1442
|
throw Error("Object is already pseudo");
|
|
1442
1443
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1443
1444
|
return e;
|
|
1444
1445
|
if (e instanceof RegExp) {
|
|
1445
1446
|
var t = this.s(this.Ma);
|
|
1446
|
-
return
|
|
1447
|
+
return Pt(this, t, e), t;
|
|
1447
1448
|
}
|
|
1448
1449
|
if (e instanceof Date)
|
|
1449
1450
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1467,7 +1468,7 @@ O.Ia = function(e) {
|
|
|
1467
1468
|
this.g(t, r, this.Ia(e[r]));
|
|
1468
1469
|
return t;
|
|
1469
1470
|
};
|
|
1470
|
-
|
|
1471
|
+
C.R = function(e, t) {
|
|
1471
1472
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1472
1473
|
return e;
|
|
1473
1474
|
if (!(e instanceof k))
|
|
@@ -1506,7 +1507,7 @@ function Nr(e, t) {
|
|
|
1506
1507
|
var n = [], r;
|
|
1507
1508
|
for (r in t.h)
|
|
1508
1509
|
n[r] = e.G(t, r);
|
|
1509
|
-
return n.length =
|
|
1510
|
+
return n.length = Rt(e.G(t, "length")) || 0, n;
|
|
1510
1511
|
}
|
|
1511
1512
|
function te(e, t) {
|
|
1512
1513
|
switch (typeof t) {
|
|
@@ -1519,7 +1520,7 @@ function te(e, t) {
|
|
|
1519
1520
|
}
|
|
1520
1521
|
return t ? t.xa : null;
|
|
1521
1522
|
}
|
|
1522
|
-
|
|
1523
|
+
C.G = function(e, t) {
|
|
1523
1524
|
if (this.P)
|
|
1524
1525
|
throw Error("Getter not supported in that context");
|
|
1525
1526
|
if (t = String(t), e != null || d(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof k))
|
|
@@ -1528,7 +1529,7 @@ O.G = function(e, t) {
|
|
|
1528
1529
|
if (D(this, e, this.J))
|
|
1529
1530
|
return String(e).length;
|
|
1530
1531
|
} else if (64 > t.charCodeAt(0) && D(this, e, this.J)) {
|
|
1531
|
-
var n =
|
|
1532
|
+
var n = _e(t);
|
|
1532
1533
|
if (!isNaN(n) && n < String(e).length)
|
|
1533
1534
|
return String(e)[n];
|
|
1534
1535
|
}
|
|
@@ -1543,7 +1544,7 @@ function tt(e, t, n) {
|
|
|
1543
1544
|
if (n = String(n), n === "length" && D(e, t, e.J))
|
|
1544
1545
|
return !0;
|
|
1545
1546
|
if (D(e, t, e.J)) {
|
|
1546
|
-
var r =
|
|
1547
|
+
var r = _e(n);
|
|
1547
1548
|
if (!isNaN(r) && r < String(t).length)
|
|
1548
1549
|
return !0;
|
|
1549
1550
|
}
|
|
@@ -1553,16 +1554,16 @@ function tt(e, t, n) {
|
|
|
1553
1554
|
while (t = te(e, t));
|
|
1554
1555
|
return !1;
|
|
1555
1556
|
}
|
|
1556
|
-
|
|
1557
|
+
C.g = function(e, t, n, r) {
|
|
1557
1558
|
if (this.Ka)
|
|
1558
1559
|
throw Error("Setter not supported in that context");
|
|
1559
1560
|
if (t = String(t), e != null || d(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof k))
|
|
1560
1561
|
throw TypeError("Expecting native value or pseudo object");
|
|
1561
1562
|
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && d(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1562
|
-
var i = !this.o ||
|
|
1563
|
+
var i = !this.o || Dt(this).S;
|
|
1563
1564
|
if (e instanceof k) {
|
|
1564
1565
|
if (D(this, e, this.J)) {
|
|
1565
|
-
var s =
|
|
1566
|
+
var s = _e(t);
|
|
1566
1567
|
if (t === "length" || !isNaN(s) && s < String(e).length) {
|
|
1567
1568
|
i && d(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1568
1569
|
return;
|
|
@@ -1575,13 +1576,13 @@ O.g = function(e, t, n, r) {
|
|
|
1575
1576
|
return;
|
|
1576
1577
|
n = r.value;
|
|
1577
1578
|
}
|
|
1578
|
-
if (n =
|
|
1579
|
+
if (n = Rt(n), isNaN(n) && d(this, this.ob, "Invalid array length"), n < s)
|
|
1579
1580
|
for (u in e.h) {
|
|
1580
|
-
var u =
|
|
1581
|
+
var u = _e(u);
|
|
1581
1582
|
!isNaN(u) && n <= u && delete e.h[u];
|
|
1582
1583
|
}
|
|
1583
1584
|
} else
|
|
1584
|
-
isNaN(u =
|
|
1585
|
+
isNaN(u = _e(t)) || (e.h.length = Math.max(s, u + 1));
|
|
1585
1586
|
if (!e.preventExtensions || t in e.h)
|
|
1586
1587
|
if (r) {
|
|
1587
1588
|
i = {}, "get" in r && r.get && (e.V[t] = r.get, i.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, i.set = this.g.bc), "configurable" in r && (i.configurable = r.configurable), "enumerable" in r && (i.enumerable = r.enumerable), "writable" in r && (i.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (i.value = r.value, delete e.V[t], delete e.Y[t]) : n !== Be && (i.value = n, delete e.V[t], delete e.Y[t]);
|
|
@@ -1615,19 +1616,19 @@ O.g = function(e, t, n, r) {
|
|
|
1615
1616
|
} else
|
|
1616
1617
|
i && d(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1617
1618
|
};
|
|
1618
|
-
|
|
1619
|
+
C.g.ac = function() {
|
|
1619
1620
|
throw Error("Placeholder getter");
|
|
1620
1621
|
};
|
|
1621
|
-
|
|
1622
|
+
C.g.bc = function() {
|
|
1622
1623
|
throw Error("Placeholder setter");
|
|
1623
1624
|
};
|
|
1624
|
-
function
|
|
1625
|
+
function U(e, t, n, r) {
|
|
1625
1626
|
e.g(t.h.prototype, n, e.i(r, !1), v);
|
|
1626
1627
|
}
|
|
1627
1628
|
function Fe(e, t, n, r) {
|
|
1628
1629
|
e.g(t.h.prototype, n, e.ub(r), v);
|
|
1629
1630
|
}
|
|
1630
|
-
function
|
|
1631
|
+
function Dt(e) {
|
|
1631
1632
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1632
1633
|
throw Error("No scope found");
|
|
1633
1634
|
return e;
|
|
@@ -1642,13 +1643,13 @@ function Nt(e, t, n) {
|
|
|
1642
1643
|
}
|
|
1643
1644
|
return i = e.s(null), r = new Pr(n, r, i), n || un(e, r.object), Ge(e, t, r), r;
|
|
1644
1645
|
}
|
|
1645
|
-
function
|
|
1646
|
+
function Ft(e, t, n) {
|
|
1646
1647
|
if (!t)
|
|
1647
1648
|
throw Error("parentScope required");
|
|
1648
1649
|
return e = n || e.s(null), new Pr(t, t.S, e);
|
|
1649
1650
|
}
|
|
1650
1651
|
function Lt(e, t) {
|
|
1651
|
-
for (var n =
|
|
1652
|
+
for (var n = Dt(e); n && n !== e.N; ) {
|
|
1652
1653
|
if (t in n.object.h)
|
|
1653
1654
|
return n.object.h[t];
|
|
1654
1655
|
n = n.Va;
|
|
@@ -1658,7 +1659,7 @@ function Lt(e, t) {
|
|
|
1658
1659
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || d(e, e.pb, t + " is not defined");
|
|
1659
1660
|
}
|
|
1660
1661
|
function Mr(e, t, n) {
|
|
1661
|
-
for (var r =
|
|
1662
|
+
for (var r = Dt(e), i = r.S; r && r !== e.N; ) {
|
|
1662
1663
|
if (t in r.object.h) {
|
|
1663
1664
|
try {
|
|
1664
1665
|
r.object.h[t] = n;
|
|
@@ -1719,17 +1720,17 @@ function Ge(e, t, n) {
|
|
|
1719
1720
|
t.jb = r;
|
|
1720
1721
|
}
|
|
1721
1722
|
for (u in r)
|
|
1722
|
-
r[u] === !0 ? e.g(n.object, u, void 0,
|
|
1723
|
+
r[u] === !0 ? e.g(n.object, u, void 0, xr) : e.g(n.object, u, bt(e, r[u], n), xr);
|
|
1723
1724
|
return r;
|
|
1724
1725
|
}
|
|
1725
1726
|
function re(e) {
|
|
1726
1727
|
return e.o[e.o.length - 1].isConstructor;
|
|
1727
1728
|
}
|
|
1728
|
-
function
|
|
1729
|
-
return t[0] ===
|
|
1729
|
+
function _t(e, t) {
|
|
1730
|
+
return t[0] === je ? Lt(e, t[1]) : e.G(t[0], t[1]);
|
|
1730
1731
|
}
|
|
1731
|
-
function
|
|
1732
|
-
return t[0] ===
|
|
1732
|
+
function Bt(e, t, n) {
|
|
1733
|
+
return t[0] === je ? Mr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1733
1734
|
}
|
|
1734
1735
|
function d(e, t, n) {
|
|
1735
1736
|
throw e.N ? (n !== void 0 && t instanceof k && (t = e.Aa(t), Tt(e, t, n)), Ve(e, 4, t), Tr) : n === void 0 ? t : n;
|
|
@@ -1779,38 +1780,38 @@ function Ve(e, t, n, r) {
|
|
|
1779
1780
|
URIError
|
|
1780
1781
|
}, r = String(e.G(n, "name")), i = e.G(n, "message").valueOf(), t = (t[r] || Error)(i), t.stack = String(e.G(n, "stack"))) : t = String(n), e.value = t, t;
|
|
1781
1782
|
}
|
|
1782
|
-
function
|
|
1783
|
+
function _(e, t) {
|
|
1783
1784
|
switch (t.type) {
|
|
1784
1785
|
case "ArrayExpression":
|
|
1785
1786
|
return "[...]";
|
|
1786
1787
|
case "BinaryExpression":
|
|
1787
1788
|
case "LogicalExpression":
|
|
1788
|
-
return
|
|
1789
|
+
return _(e, t.left) + " " + t.operator + " " + _(e, t.right);
|
|
1789
1790
|
case "CallExpression":
|
|
1790
|
-
return
|
|
1791
|
+
return _(e, t.callee) + "(...)";
|
|
1791
1792
|
case "ConditionalExpression":
|
|
1792
|
-
return
|
|
1793
|
+
return _(e, t.test) + " ? " + _(e, t.da) + " : " + _(e, t.alternate);
|
|
1793
1794
|
case "Identifier":
|
|
1794
1795
|
return t.name;
|
|
1795
1796
|
case "Literal":
|
|
1796
1797
|
return t.raw;
|
|
1797
1798
|
case "MemberExpression":
|
|
1798
|
-
var n =
|
|
1799
|
-
return e =
|
|
1799
|
+
var n = _(e, t.object);
|
|
1800
|
+
return e = _(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
|
|
1800
1801
|
case "NewExpression":
|
|
1801
|
-
return "new " +
|
|
1802
|
+
return "new " + _(e, t.callee) + "(...)";
|
|
1802
1803
|
case "ObjectExpression":
|
|
1803
1804
|
return "{...}";
|
|
1804
1805
|
case "ThisExpression":
|
|
1805
1806
|
return "this";
|
|
1806
1807
|
case "UnaryExpression":
|
|
1807
|
-
return t.operator + " " +
|
|
1808
|
+
return t.operator + " " + _(e, t.K);
|
|
1808
1809
|
case "UpdateExpression":
|
|
1809
|
-
return n =
|
|
1810
|
+
return n = _(e, t.K), t.prefix ? t.operator + n : n + t.operator;
|
|
1810
1811
|
}
|
|
1811
1812
|
return "???";
|
|
1812
1813
|
}
|
|
1813
|
-
function
|
|
1814
|
+
function Sr(e, t, n) {
|
|
1814
1815
|
var r = e.o[e.o.length - 1], i = Array.from(n), s = i.shift();
|
|
1815
1816
|
n = Math.max(Number(i.shift() || 0), 0);
|
|
1816
1817
|
var u = e.ya();
|
|
@@ -1832,7 +1833,7 @@ function Rr(e, t, n) {
|
|
|
1832
1833
|
return r.time - i.time;
|
|
1833
1834
|
});
|
|
1834
1835
|
}
|
|
1835
|
-
function
|
|
1836
|
+
function kr(e, t) {
|
|
1836
1837
|
for (var n = 0; n < e.ca.length; n++)
|
|
1837
1838
|
if (e.ca[n].Db == t) {
|
|
1838
1839
|
e.ca.splice(n, 1);
|
|
@@ -1846,23 +1847,23 @@ function Xe(e, t, n) {
|
|
|
1846
1847
|
var r = e.ya();
|
|
1847
1848
|
return r.type = "CallExpression", e = new y(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1848
1849
|
}
|
|
1849
|
-
function
|
|
1850
|
+
function Gt(e, t, n, r) {
|
|
1850
1851
|
if (!e.Ka)
|
|
1851
1852
|
throw Error("Unexpected call to createSetter");
|
|
1852
1853
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1853
1854
|
var i = e.ya();
|
|
1854
1855
|
return i.type = "CallExpression", e = new y(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1855
1856
|
}
|
|
1856
|
-
function
|
|
1857
|
+
function Ot(e, t) {
|
|
1857
1858
|
return t == null ? e.Na : t instanceof k ? t : (e = e.s(te(e, t)), e.data = t, e);
|
|
1858
1859
|
}
|
|
1859
|
-
|
|
1860
|
+
C.Xb = function() {
|
|
1860
1861
|
return this.N;
|
|
1861
1862
|
};
|
|
1862
|
-
|
|
1863
|
+
C.Yb = function() {
|
|
1863
1864
|
return this.o;
|
|
1864
1865
|
};
|
|
1865
|
-
|
|
1866
|
+
C.ec = function(e) {
|
|
1866
1867
|
this.o = e;
|
|
1867
1868
|
};
|
|
1868
1869
|
function y(e, t) {
|
|
@@ -1874,12 +1875,12 @@ function Pr(e, t, n) {
|
|
|
1874
1875
|
function k(e) {
|
|
1875
1876
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1876
1877
|
}
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
if (!
|
|
1878
|
+
C = k.prototype;
|
|
1879
|
+
C.xa = null;
|
|
1880
|
+
C.H = "Object";
|
|
1881
|
+
C.data = null;
|
|
1882
|
+
C.toString = function() {
|
|
1883
|
+
if (!Le)
|
|
1883
1884
|
return "[object Interpreter.Object]";
|
|
1884
1885
|
if (!(this instanceof k))
|
|
1885
1886
|
return String(this);
|
|
@@ -1926,8 +1927,8 @@ O.toString = function() {
|
|
|
1926
1927
|
}
|
|
1927
1928
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1928
1929
|
};
|
|
1929
|
-
|
|
1930
|
-
return !
|
|
1930
|
+
C.valueOf = function() {
|
|
1931
|
+
return !Le || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1931
1932
|
};
|
|
1932
1933
|
function En(e, t, n, r, i) {
|
|
1933
1934
|
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = i, this.Db = ++xn, this.time = 0;
|
|
@@ -1947,7 +1948,7 @@ f.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
1947
1948
|
if (!t.ja)
|
|
1948
1949
|
return t.ja = !0, t = new y(n.left, t.scope), t.sa = !0, t;
|
|
1949
1950
|
if (!t.Da)
|
|
1950
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e =
|
|
1951
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = _t(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Xe(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new y(n.right, t.scope));
|
|
1951
1952
|
if (t.ta)
|
|
1952
1953
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1953
1954
|
else {
|
|
@@ -1992,8 +1993,8 @@ f.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
1992
1993
|
default:
|
|
1993
1994
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
1994
1995
|
}
|
|
1995
|
-
if (n =
|
|
1996
|
-
return t.ta = !0, t.ib = r,
|
|
1996
|
+
if (n = Bt(this, t.Fa, r))
|
|
1997
|
+
return t.ta = !0, t.ib = r, Gt(this, n, t.Fa, r);
|
|
1997
1998
|
e.pop(), e[e.length - 1].value = r;
|
|
1998
1999
|
}
|
|
1999
2000
|
};
|
|
@@ -2093,7 +2094,7 @@ f.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2093
2094
|
t.ia = 2;
|
|
2094
2095
|
var i = t.value;
|
|
2095
2096
|
if (Array.isArray(i)) {
|
|
2096
|
-
if (t.U =
|
|
2097
|
+
if (t.U = _t(this, i), i[0] === je ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2097
2098
|
return t.ia = 1, Xe(this, i, t.value);
|
|
2098
2099
|
} else
|
|
2099
2100
|
t.U = i;
|
|
@@ -2103,7 +2104,7 @@ f.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2103
2104
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2104
2105
|
return new y(n.arguments[t.A++], t.scope);
|
|
2105
2106
|
if (n.type === "NewExpression") {
|
|
2106
|
-
if (i instanceof k && !i.Ab || d(this, this.j,
|
|
2107
|
+
if (i instanceof k && !i.Ab || d(this, this.j, _(this, n.callee) + " is not a constructor"), i === this.qa)
|
|
2107
2108
|
t.B = xe(this);
|
|
2108
2109
|
else {
|
|
2109
2110
|
var s = i.h.prototype;
|
|
@@ -2116,12 +2117,12 @@ f.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2116
2117
|
if (t.eb)
|
|
2117
2118
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2118
2119
|
else {
|
|
2119
|
-
if (t.eb = !0, i instanceof k || d(this, this.j,
|
|
2120
|
+
if (t.eb = !0, i instanceof k || d(this, this.j, _(this, n.callee) + " is not a function"), e = i.node) {
|
|
2120
2121
|
for (n = Nt(this, e.body, i.Va), r = xe(this), i = 0; i < t.F.length; i++)
|
|
2121
2122
|
this.g(r, i, t.F[i]);
|
|
2122
2123
|
for (this.g(n.object, "arguments", r), i = 0; i < e.oa.length; i++)
|
|
2123
2124
|
this.g(n.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2124
|
-
return n.S || (t.B =
|
|
2125
|
+
return n.S || (t.B = Ot(this, t.B)), this.g(n.object, "this", t.B, Mt), t.value = void 0, new y(e.body, n);
|
|
2125
2126
|
}
|
|
2126
2127
|
if (i.eval)
|
|
2127
2128
|
if (i = t.F[0], typeof i != "string")
|
|
@@ -2135,14 +2136,14 @@ f.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2135
2136
|
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body, et(i, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Nt(this, r, n) : Ge(this, r, n), this.value = void 0, new y(i, n);
|
|
2136
2137
|
}
|
|
2137
2138
|
else if (i.Ta)
|
|
2138
|
-
t.scope.S || (t.B =
|
|
2139
|
+
t.scope.S || (t.B = Ot(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
2139
2140
|
else if (i.Za) {
|
|
2140
2141
|
var u = this;
|
|
2141
2142
|
r = i.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(h) {
|
|
2142
2143
|
t.value = h, u.za = !1;
|
|
2143
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2144
|
+
}), this.za = !0, t.scope.S || (t.B = Ot(this, t.B)), i.Za.apply(t.B, r);
|
|
2144
2145
|
} else
|
|
2145
|
-
d(this, this.j,
|
|
2146
|
+
d(this, this.j, _(this, n.callee) + " is not callable");
|
|
2146
2147
|
}
|
|
2147
2148
|
};
|
|
2148
2149
|
f.prototype.stepConditionalExpression = function(e, t, n) {
|
|
@@ -2218,11 +2219,11 @@ f.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2218
2219
|
}
|
|
2219
2220
|
if (!t.wb)
|
|
2220
2221
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2221
|
-
t.pa = [
|
|
2222
|
+
t.pa = [je, e.fa[0].id.name];
|
|
2222
2223
|
else
|
|
2223
2224
|
return t.pa = null, t = new y(e, t.scope), t.sa = !0, t;
|
|
2224
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r =
|
|
2225
|
-
return
|
|
2225
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = Bt(this, t.pa, e)))
|
|
2226
|
+
return Gt(this, r, t.pa, e);
|
|
2226
2227
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2227
2228
|
return new y(n.body, t.scope);
|
|
2228
2229
|
};
|
|
@@ -2251,11 +2252,11 @@ f.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2251
2252
|
e.pop();
|
|
2252
2253
|
};
|
|
2253
2254
|
f.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2254
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e =
|
|
2255
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = Ft(this, e)), t.value = bt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Mt);
|
|
2255
2256
|
};
|
|
2256
2257
|
f.prototype.stepIdentifier = function(e, t, n) {
|
|
2257
2258
|
if (e.pop(), t.sa)
|
|
2258
|
-
e[e.length - 1].value = [
|
|
2259
|
+
e[e.length - 1].value = [je, n.name];
|
|
2259
2260
|
else {
|
|
2260
2261
|
if (t = Lt(this, n.name), this.P)
|
|
2261
2262
|
return Xe(this, t, this.Na);
|
|
@@ -2267,7 +2268,7 @@ f.prototype.stepLabeledStatement = function(e, t, n) {
|
|
|
2267
2268
|
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new y(n.body, t.scope), t.labels = e, t;
|
|
2268
2269
|
};
|
|
2269
2270
|
f.prototype.stepLiteral = function(e, t, n) {
|
|
2270
|
-
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma),
|
|
2271
|
+
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), Pt(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2271
2272
|
};
|
|
2272
2273
|
f.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2273
2274
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
@@ -2382,7 +2383,7 @@ f.prototype.stepTryStatement = function(e, t, n) {
|
|
|
2382
2383
|
if (!t.Rb)
|
|
2383
2384
|
return t.Rb = !0, new y(n.block, t.scope);
|
|
2384
2385
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2385
|
-
return t.Tb = !0, e =
|
|
2386
|
+
return t.Tb = !0, e = Ft(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new y(n.Ea.body, e);
|
|
2386
2387
|
if (!t.Sb && n.fb)
|
|
2387
2388
|
return t.Sb = !0, new y(n.fb, t.scope);
|
|
2388
2389
|
e.pop(), t.ea && Ve(this, t.ea.type, t.ea.value, t.ea.label);
|
|
@@ -2408,7 +2409,7 @@ f.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2408
2409
|
case "delete":
|
|
2409
2410
|
if (n = !0, Array.isArray(r)) {
|
|
2410
2411
|
var i = r[0];
|
|
2411
|
-
i ===
|
|
2412
|
+
i === je && (i = t.scope), r = String(r[1]);
|
|
2412
2413
|
try {
|
|
2413
2414
|
delete i.h[r];
|
|
2414
2415
|
} catch {
|
|
@@ -2432,7 +2433,7 @@ f.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2432
2433
|
if (!t.ja)
|
|
2433
2434
|
return t.ja = !0, e = new y(n.K, t.scope), e.sa = !0, e;
|
|
2434
2435
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2435
|
-
var r =
|
|
2436
|
+
var r = _t(this, t.Ga);
|
|
2436
2437
|
if (t.ma = r, this.P)
|
|
2437
2438
|
return t.Ba = !0, Xe(this, r, t.Ga);
|
|
2438
2439
|
}
|
|
@@ -2445,8 +2446,8 @@ f.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2445
2446
|
i = r - 1;
|
|
2446
2447
|
else
|
|
2447
2448
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2448
|
-
if (n = n.prefix ? i : r, r =
|
|
2449
|
-
return t.ta = !0, t.ib = n,
|
|
2449
|
+
if (n = n.prefix ? i : r, r = Bt(this, t.Ga, i))
|
|
2450
|
+
return t.ta = !0, t.ib = n, Gt(this, r, t.Ga, i);
|
|
2450
2451
|
e.pop(), e[e.length - 1].value = n;
|
|
2451
2452
|
}
|
|
2452
2453
|
};
|
|
@@ -2461,7 +2462,7 @@ f.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2461
2462
|
e.pop();
|
|
2462
2463
|
};
|
|
2463
2464
|
f.prototype.stepWithStatement = function(e, t, n) {
|
|
2464
|
-
return t.Ca ? (e.pop(), e =
|
|
2465
|
+
return t.Ca ? (e.pop(), e = Ft(this, t.scope, t.value), new y(n.body, e)) : (t.Ca = !0, new y(n.object, t.scope));
|
|
2465
2466
|
};
|
|
2466
2467
|
f.prototype.stepWhileStatement = f.prototype.stepDoWhileStatement;
|
|
2467
2468
|
se.Interpreter = f;
|
|
@@ -2480,7 +2481,7 @@ f.prototype.getGlobalScope = f.prototype.Xb;
|
|
|
2480
2481
|
f.prototype.getStateStack = f.prototype.Yb;
|
|
2481
2482
|
f.prototype.setStateStack = f.prototype.ec;
|
|
2482
2483
|
f.VALUE_IN_DESCRIPTOR = Be;
|
|
2483
|
-
const
|
|
2484
|
+
const jn = (e) => e.split(`
|
|
2484
2485
|
`).map((t) => {
|
|
2485
2486
|
const n = t.trim();
|
|
2486
2487
|
if (t.includes("__awaiter"))
|
|
@@ -2493,7 +2494,7 @@ const Sn = (e) => e.split(`
|
|
|
2493
2494
|
${h}
|
|
2494
2495
|
`;
|
|
2495
2496
|
}).filter(Boolean).join(`
|
|
2496
|
-
`), Cr = (e) => e + "JSON",
|
|
2497
|
+
`), Cr = (e) => e + "JSON", Sn = ({
|
|
2497
2498
|
builder: e,
|
|
2498
2499
|
context: t,
|
|
2499
2500
|
event: n,
|
|
@@ -2514,40 +2515,31 @@ const Sn = (e) => e.split(`
|
|
|
2514
2515
|
const H = Cr(X);
|
|
2515
2516
|
return `var ${X} = ${H} === undefined ? undefined : JSON.parse(${H});`;
|
|
2516
2517
|
}).join(`
|
|
2517
|
-
`),
|
|
2518
|
-
if (
|
|
2519
|
-
|
|
2518
|
+
`), O = jn(u);
|
|
2519
|
+
if (O === "") {
|
|
2520
|
+
Or.warn("Skipping evaluation of empty code block.");
|
|
2520
2521
|
return;
|
|
2521
2522
|
}
|
|
2522
2523
|
const A = `
|
|
2523
2524
|
function theFunction() {
|
|
2524
2525
|
${T}
|
|
2525
2526
|
|
|
2526
|
-
${
|
|
2527
|
+
${O}
|
|
2527
2528
|
}
|
|
2528
2529
|
theFunction();
|
|
2529
2530
|
`, We = (X, H) => {
|
|
2530
|
-
const
|
|
2531
|
-
s == null || s(
|
|
2531
|
+
const S = tn(h, X, H);
|
|
2532
|
+
s == null || s(S);
|
|
2532
2533
|
}, ae = function(X, H) {
|
|
2533
|
-
m.forEach(([
|
|
2534
|
+
m.forEach(([S, ke]) => {
|
|
2534
2535
|
const He = JSON.stringify(ke);
|
|
2535
|
-
X.setProperty(H, Cr(
|
|
2536
|
+
X.setProperty(H, Cr(S), He);
|
|
2536
2537
|
}), X.setProperty(H, "setRootState", X.createNativeFunction(We));
|
|
2537
2538
|
}, pe = new f(A, ae);
|
|
2538
2539
|
return pe.run(), pe.pseudoToNative(pe.value);
|
|
2539
|
-
}
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
return typeof process != "undefined" && en((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2543
|
-
}
|
|
2544
|
-
const On = () => {
|
|
2545
|
-
var r;
|
|
2546
|
-
if (!kn())
|
|
2547
|
-
return !1;
|
|
2548
|
-
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2549
|
-
return e && t && !n ? (Mt.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2550
|
-
}, Cn = (e) => At() || On() ? on(e) : jn(e), An = !0, Q = class Q {
|
|
2540
|
+
}, kn = (e) => At() || en({
|
|
2541
|
+
shouldLogWarning: !0
|
|
2542
|
+
}) ? on(e) : Sn(e), Cn = !0, Q = class Q {
|
|
2551
2543
|
static getCacheKey(t) {
|
|
2552
2544
|
return JSON.stringify({
|
|
2553
2545
|
...t,
|
|
@@ -2565,9 +2557,9 @@ const On = () => {
|
|
|
2565
2557
|
});
|
|
2566
2558
|
}
|
|
2567
2559
|
};
|
|
2568
|
-
|
|
2560
|
+
Ct(Q, "cacheLimit", 20), Ct(Q, "cache", /* @__PURE__ */ new Map());
|
|
2569
2561
|
let we = Q;
|
|
2570
|
-
function
|
|
2562
|
+
function Tn({
|
|
2571
2563
|
code: e,
|
|
2572
2564
|
context: t,
|
|
2573
2565
|
localState: n,
|
|
@@ -2590,26 +2582,26 @@ function Nn({
|
|
|
2590
2582
|
rootState: r,
|
|
2591
2583
|
localState: n
|
|
2592
2584
|
};
|
|
2593
|
-
if (h && !
|
|
2594
|
-
const T = we.getCacheKey(m),
|
|
2595
|
-
if (
|
|
2596
|
-
return
|
|
2585
|
+
if (h && !Cn) {
|
|
2586
|
+
const T = we.getCacheKey(m), O = we.getCachedValue(T);
|
|
2587
|
+
if (O)
|
|
2588
|
+
return O.value;
|
|
2597
2589
|
}
|
|
2598
2590
|
try {
|
|
2599
|
-
const T =
|
|
2591
|
+
const T = kn(m);
|
|
2600
2592
|
if (h) {
|
|
2601
|
-
const
|
|
2602
|
-
we.setCachedValue(
|
|
2593
|
+
const O = we.getCacheKey(m);
|
|
2594
|
+
we.setCachedValue(O, T);
|
|
2603
2595
|
}
|
|
2604
2596
|
return T;
|
|
2605
2597
|
} catch (T) {
|
|
2606
|
-
|
|
2598
|
+
Or.error("Failed code evaluation: " + T.message, {
|
|
2607
2599
|
code: e
|
|
2608
2600
|
});
|
|
2609
2601
|
return;
|
|
2610
2602
|
}
|
|
2611
2603
|
}
|
|
2612
2604
|
export {
|
|
2613
|
-
|
|
2605
|
+
Tn as evaluate,
|
|
2614
2606
|
tn as set
|
|
2615
2607
|
};
|