@builder.io/sdk-react 2.0.16 → 2.0.19
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 +23 -23
- package/lib/browser/blocks-exports.mjs +347 -324
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +22 -23
- package/lib/browser/{server-entry-1db0d96b.js → server-entry-12189812.js} +1 -2
- package/lib/browser/{server-entry-c1666709.cjs → server-entry-c8020f19.cjs} +2 -2
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-7c1c7c56.js → accordion-634b0466.js} +1 -1
- package/lib/edge/{accordion-09162a27.cjs → accordion-eaf2e50a.cjs} +1 -1
- package/lib/edge/{blocks-46c07b56.js → blocks-51761337.js} +91 -78
- package/lib/edge/blocks-b8c9a72a.cjs +12 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-a923f8ff.js → button-6d2144c3.js} +2 -2
- package/lib/edge/{button-f2daea13.cjs → button-a0aad19e.cjs} +1 -1
- package/lib/edge/{columns-eee4f51c.js → columns-030a6892.js} +6 -7
- package/lib/edge/columns-44d76a14.cjs +28 -0
- package/lib/edge/content-variants-3eef022e.cjs +134 -0
- package/lib/edge/{content-variants-1368cab1.js → content-variants-46a433c2.js} +13 -14
- package/lib/edge/{evaluate-4c9b2e86.cjs → evaluate-29260bf8.cjs} +10 -10
- package/lib/edge/{evaluate-93701356.js → evaluate-6febb3ef.js} +331 -318
- package/lib/edge/form-59059e97.cjs +1 -0
- package/lib/edge/{form-d0eb0af4.js → form-855a28fc.js} +14 -15
- package/lib/edge/{get-class-prop-name-7cd1376f.cjs → get-class-prop-name-6320e936.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-1c373615.js → get-class-prop-name-a6353748.js} +1 -1
- package/lib/edge/{img-6c8139db.cjs → img-1f88586f.cjs} +1 -1
- package/lib/edge/{img-6e16ade6.js → img-56b4a196.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-c78fef2b.cjs → input-35f6fbdd.cjs} +1 -1
- package/lib/edge/{input-a7e9c157.js → input-7873f170.js} +1 -1
- package/lib/edge/{select-3cf593bd.js → select-eb16d7cc.js} +1 -1
- package/lib/edge/{select-bd1e231b.cjs → select-f03c5ba6.cjs} +1 -1
- package/lib/edge/{server-entry-6b3ad048.js → server-entry-77a5a1a0.js} +1 -2
- package/lib/edge/{server-entry-d09af943.cjs → server-entry-dbe27fb2.cjs} +2 -2
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/slot-93865012.cjs +1 -0
- package/lib/edge/{slot-a5a9a30f.js → slot-c9a7a451.js} +6 -7
- package/lib/edge/{symbol-77d331c6.js → symbol-6657c638.js} +2 -2
- package/lib/edge/{symbol-9de15518.cjs → symbol-b6b36212.cjs} +1 -1
- package/lib/edge/tabs-020fedaa.cjs +1 -0
- package/lib/edge/{tabs-63d6ea85.js → tabs-44484f49.js} +13 -14
- package/lib/edge/text-562c8568.cjs +1 -0
- package/lib/edge/{text-4d508bbc.js → text-e00e3cdc.js} +8 -9
- package/lib/node/blocks-exports.cjs +20 -20
- package/lib/node/blocks-exports.mjs +262 -250
- 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 +2 -2
- package/lib/node/{server-entry-c1666709.cjs → server-entry-82ab17f2.cjs} +1 -1
- package/lib/node/{server-entry-1db0d96b.js → server-entry-902ea0c4.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-1188ea7b.js → should-force-browser-runtime-in-node-0b0cefdf.js} +7 -7
- package/lib/node/{should-force-browser-runtime-in-node-37010e2f.cjs → should-force-browser-runtime-in-node-f20178fa.cjs} +5 -5
- package/package.json +1 -1
- package/types/components/awaiter.d.ts +14 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/context/component-reference-types.d.ts +4 -0
- package/types/context/types.d.ts +2 -1
- package/lib/browser/init.cjs +0 -8
- package/lib/browser/init.mjs +0 -64
- package/lib/browser/should-force-browser-runtime-in-node-00f3cfef.js +0 -17
- package/lib/browser/should-force-browser-runtime-in-node-f768fb5d.cjs +0 -1
- package/lib/edge/blocks-273f24cc.cjs +0 -12
- package/lib/edge/columns-0b8c2260.cjs +0 -28
- package/lib/edge/content-variants-575b5dbf.cjs +0 -134
- package/lib/edge/form-bd184008.cjs +0 -1
- package/lib/edge/init.cjs +0 -8
- package/lib/edge/init.mjs +0 -64
- package/lib/edge/should-force-browser-runtime-in-node-2b14e4a8.cjs +0 -1
- package/lib/edge/should-force-browser-runtime-in-node-560bddfb.js +0 -17
- package/lib/edge/slot-ab7fc875.cjs +0 -1
- package/lib/edge/tabs-e6fa664e.cjs +0 -1
- package/lib/edge/text-ab5d2747.cjs +0 -1
|
@@ -1,14 +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
|
|
5
|
-
|
|
6
|
-
const tn = (e, t, n) => {
|
|
7
|
-
if (Object(e) !== e)
|
|
8
|
-
return e;
|
|
9
|
-
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
10
|
-
return r.slice(0, -1).reduce((i, s, u) => Object(i[s]) === i[s] ? i[s] : i[s] = Math.abs(Number(r[u + 1])) >> 0 === +r[u + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
11
|
-
}, Ar = ({
|
|
3
|
+
var Ot = (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 Mt, checkIsDefined as en } from "./server-entry-77a5a1a0.js";
|
|
5
|
+
const Ar = ({
|
|
12
6
|
builder: e,
|
|
13
7
|
context: t,
|
|
14
8
|
event: n,
|
|
@@ -20,14 +14,14 @@ const tn = (e, t, n) => {
|
|
|
20
14
|
builder: e,
|
|
21
15
|
context: t,
|
|
22
16
|
event: n
|
|
23
|
-
}),
|
|
17
|
+
}), tn = () => ({
|
|
24
18
|
isEditing: Qr(),
|
|
25
19
|
isBrowser: At(),
|
|
26
20
|
isServer: !At(),
|
|
27
21
|
getUserAttributes: () => qr()
|
|
28
|
-
}),
|
|
22
|
+
}), rn = (e, {
|
|
29
23
|
isExpression: t = !0
|
|
30
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
24
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, nn = ({
|
|
31
25
|
code: e,
|
|
32
26
|
builder: t,
|
|
33
27
|
context: n,
|
|
@@ -73,12 +67,18 @@ function Ir({
|
|
|
73
67
|
}
|
|
74
68
|
});
|
|
75
69
|
}
|
|
76
|
-
|
|
70
|
+
const on = (e, t, n) => {
|
|
71
|
+
if (Object(e) !== e)
|
|
72
|
+
return e;
|
|
73
|
+
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
74
|
+
return r.slice(0, -1).reduce((i, s, u) => Object(i[s]) === i[s] ? i[s] : i[s] = Math.abs(Number(r[u + 1])) >> 0 === +r[u + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
75
|
+
};
|
|
76
|
+
var O, sn = function(e) {
|
|
77
77
|
function t(o) {
|
|
78
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));
|
|
79
79
|
}
|
|
80
80
|
function n(o) {
|
|
81
|
-
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 && Er.test(String.fromCharCode(o));
|
|
82
82
|
}
|
|
83
83
|
function r(o, a) {
|
|
84
84
|
for (var l = g, p = 1, E = 0; ; ) {
|
|
@@ -106,12 +106,12 @@ var C, sn = function(e) {
|
|
|
106
106
|
this.line = le, this.ab = c - K;
|
|
107
107
|
}
|
|
108
108
|
function u(o, a) {
|
|
109
|
-
he = c,
|
|
109
|
+
he = c, S.C && (pt = new s()), w = o, m(), V = a, Ie = o.m;
|
|
110
110
|
}
|
|
111
111
|
function h() {
|
|
112
|
-
for (var o = c, a =
|
|
112
|
+
for (var o = c, a = S.va && S.C && new s(), l = g.charCodeAt(c += 2); c < fe && l !== 10 && l !== 13 && l !== 8232 && l !== 8233; )
|
|
113
113
|
++c, l = g.charCodeAt(c);
|
|
114
|
-
|
|
114
|
+
S.va && S.va(!1, g.slice(o + 2, c), o, c, a, S.C && new s());
|
|
115
115
|
}
|
|
116
116
|
function m() {
|
|
117
117
|
for (; c < fe; ) {
|
|
@@ -119,19 +119,19 @@ var C, sn = function(e) {
|
|
|
119
119
|
if (o === 32)
|
|
120
120
|
++c;
|
|
121
121
|
else if (o === 13)
|
|
122
|
-
++c, o = g.charCodeAt(c), o === 10 && ++c,
|
|
122
|
+
++c, o = g.charCodeAt(c), o === 10 && ++c, S.C && (++le, K = c);
|
|
123
123
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
124
|
-
++c,
|
|
124
|
+
++c, S.C && (++le, K = c);
|
|
125
125
|
else if (8 < o && 14 > o)
|
|
126
126
|
++c;
|
|
127
127
|
else if (o === 47)
|
|
128
128
|
if (o = g.charCodeAt(c + 1), o === 42) {
|
|
129
129
|
o = void 0;
|
|
130
|
-
var a =
|
|
131
|
-
if (p === -1 && r(c - 2, "Unterminated comment"), c = p + 2,
|
|
130
|
+
var a = S.va && S.C && new s(), l = c, p = g.indexOf("*/", c += 2);
|
|
131
|
+
if (p === -1 && r(c - 2, "Unterminated comment"), c = p + 2, S.C)
|
|
132
132
|
for (qe.lastIndex = l; (o = qe.exec(g)) && o.index < c; )
|
|
133
133
|
++le, K = o.index + o[0].length;
|
|
134
|
-
|
|
134
|
+
S.va && S.va(!0, g.slice(l + 2, p), l, c, a, S.C && new s());
|
|
135
135
|
} else if (o === 47)
|
|
136
136
|
h();
|
|
137
137
|
else
|
|
@@ -147,7 +147,7 @@ var C, sn = function(e) {
|
|
|
147
147
|
function T(o) {
|
|
148
148
|
switch (o) {
|
|
149
149
|
case 46:
|
|
150
|
-
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(fr));
|
|
151
151
|
return;
|
|
152
152
|
case 40:
|
|
153
153
|
return ++c, u(Z);
|
|
@@ -160,7 +160,7 @@ var C, sn = function(e) {
|
|
|
160
160
|
case 91:
|
|
161
161
|
return ++c, u(xt);
|
|
162
162
|
case 93:
|
|
163
|
-
return ++c, u(
|
|
163
|
+
return ++c, u(St);
|
|
164
164
|
case 123:
|
|
165
165
|
return ++c, u(Me);
|
|
166
166
|
case 125:
|
|
@@ -168,7 +168,7 @@ var C, sn = function(e) {
|
|
|
168
168
|
case 58:
|
|
169
169
|
return ++c, u(Re);
|
|
170
170
|
case 63:
|
|
171
|
-
return ++c, u(
|
|
171
|
+
return ++c, u(hr);
|
|
172
172
|
case 48:
|
|
173
173
|
if (o = g.charCodeAt(c + 1), o === 120 || o === 88) {
|
|
174
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);
|
|
@@ -211,13 +211,13 @@ var C, sn = function(e) {
|
|
|
211
211
|
a += "\r";
|
|
212
212
|
break;
|
|
213
213
|
case 120:
|
|
214
|
-
a += String.fromCharCode(
|
|
214
|
+
a += String.fromCharCode(je(2));
|
|
215
215
|
break;
|
|
216
216
|
case 117:
|
|
217
|
-
a += String.fromCharCode(
|
|
217
|
+
a += String.fromCharCode(je(4));
|
|
218
218
|
break;
|
|
219
219
|
case 85:
|
|
220
|
-
a += String.fromCharCode(
|
|
220
|
+
a += String.fromCharCode(je(8));
|
|
221
221
|
break;
|
|
222
222
|
case 116:
|
|
223
223
|
a += " ";
|
|
@@ -237,7 +237,7 @@ var C, sn = function(e) {
|
|
|
237
237
|
case 13:
|
|
238
238
|
g.charCodeAt(c) === 10 && ++c;
|
|
239
239
|
case 10:
|
|
240
|
-
|
|
240
|
+
S.C && (K = c, ++le);
|
|
241
241
|
break;
|
|
242
242
|
default:
|
|
243
243
|
a += String.fromCharCode(l);
|
|
@@ -247,7 +247,7 @@ var C, sn = function(e) {
|
|
|
247
247
|
}
|
|
248
248
|
return;
|
|
249
249
|
case 47:
|
|
250
|
-
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(gr, 1);
|
|
251
251
|
return;
|
|
252
252
|
case 37:
|
|
253
253
|
case 42:
|
|
@@ -255,37 +255,37 @@ var C, sn = function(e) {
|
|
|
255
255
|
return;
|
|
256
256
|
case 124:
|
|
257
257
|
case 38:
|
|
258
|
-
a = g.charCodeAt(c + 1), a === o ? A(o === 124 ?
|
|
258
|
+
a = g.charCodeAt(c + 1), a === o ? A(o === 124 ? dr : mr, 2) : a === 61 ? A(ce, 2) : A(o === 124 ? Fr : _r, 1);
|
|
259
259
|
return;
|
|
260
260
|
case 94:
|
|
261
261
|
g.charCodeAt(c + 1) === 61 ? A(ce, 2) : A(Lr, 1);
|
|
262
262
|
return;
|
|
263
263
|
case 43:
|
|
264
264
|
case 45:
|
|
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(),
|
|
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(), C()) : A(Dr, 2) : a === 61 ? A(ce, 2) : A(Xr, 1);
|
|
266
266
|
return;
|
|
267
267
|
case 60:
|
|
268
268
|
case 62:
|
|
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(),
|
|
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(), C()) : (a === 61 && (l = g.charCodeAt(c + 2) === 61 ? 3 : 2), A(Gr, l));
|
|
270
270
|
return;
|
|
271
271
|
case 61:
|
|
272
272
|
case 33:
|
|
273
|
-
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 ? vr : yr, 1);
|
|
274
274
|
return;
|
|
275
275
|
case 126:
|
|
276
|
-
return A(
|
|
276
|
+
return A(yr, 1);
|
|
277
277
|
}
|
|
278
278
|
return !1;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
if (o ? c = R + 1 : R = c,
|
|
280
|
+
function C(o) {
|
|
281
|
+
if (o ? c = R + 1 : R = c, S.C && (ct = new s()), o)
|
|
282
282
|
return We();
|
|
283
283
|
if (c >= fe)
|
|
284
284
|
return u(gt);
|
|
285
285
|
if (o = g.charCodeAt(c), n(o) || o === 92)
|
|
286
286
|
return H();
|
|
287
287
|
if (T(o) === !1) {
|
|
288
|
-
if (o = String.fromCharCode(o), o === "\\" ||
|
|
288
|
+
if (o = String.fromCharCode(o), o === "\\" || Er.test(o))
|
|
289
289
|
return H();
|
|
290
290
|
r(c, "Unexpected character '" + o + "'");
|
|
291
291
|
}
|
|
@@ -317,7 +317,7 @@ var C, sn = function(e) {
|
|
|
317
317
|
} catch (P) {
|
|
318
318
|
throw P instanceof SyntaxError && r(l, P.message), P;
|
|
319
319
|
}
|
|
320
|
-
u(
|
|
320
|
+
u(Jt, E);
|
|
321
321
|
}
|
|
322
322
|
function ae(o, a) {
|
|
323
323
|
for (var l = c, p = 0, E = a === void 0 ? 1 / 0 : a, P = 0; P < E; ++P) {
|
|
@@ -334,7 +334,7 @@ var C, sn = function(e) {
|
|
|
334
334
|
var E;
|
|
335
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);
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function je(o) {
|
|
338
338
|
return o = ae(16, o), o === null && r(R, "Bad character escape sequence"), o;
|
|
339
339
|
}
|
|
340
340
|
function X() {
|
|
@@ -344,7 +344,7 @@ var C, sn = function(e) {
|
|
|
344
344
|
if (t(p))
|
|
345
345
|
ye && (o += g.charAt(c)), ++c;
|
|
346
346
|
else if (p === 92) {
|
|
347
|
-
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 = je(4);
|
|
348
348
|
var E = String.fromCharCode(p);
|
|
349
349
|
E || r(c - 1, "Invalid Unicode escape"), (a ? n(p) : t(p)) || r(c - 4, "Invalid Unicode escape"), o += E;
|
|
350
350
|
} else
|
|
@@ -355,49 +355,49 @@ var C, sn = function(e) {
|
|
|
355
355
|
}
|
|
356
356
|
function H() {
|
|
357
357
|
var o = X(), a = ge;
|
|
358
|
-
!ye && $r(o) && (a =
|
|
358
|
+
!ye && $r(o) && (a = Ur[o]), u(a, o);
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
ft = R, ie = he, ht = pt,
|
|
360
|
+
function j() {
|
|
361
|
+
ft = R, ie = he, ht = pt, C();
|
|
362
362
|
}
|
|
363
363
|
function ke(o) {
|
|
364
|
-
if (G = o, c = R,
|
|
364
|
+
if (G = o, c = R, S.C)
|
|
365
365
|
for (; c < K; )
|
|
366
366
|
K = g.lastIndexOf(`
|
|
367
367
|
`, K - 2) + 1, --le;
|
|
368
|
-
m(),
|
|
368
|
+
m(), C();
|
|
369
369
|
}
|
|
370
370
|
function He() {
|
|
371
371
|
this.type = null, this.start = R, this.end = null;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Xt() {
|
|
374
374
|
this.start = ct, this.end = null, lt && (this.source = lt);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function U() {
|
|
377
377
|
var o = new He();
|
|
378
|
-
return
|
|
378
|
+
return S.C && (o.X = new Xt()), S.vb && (o.sourceFile = S.vb), S.Xa && (o.j = [R, 0]), o;
|
|
379
379
|
}
|
|
380
380
|
function ne(o) {
|
|
381
381
|
var a = new He();
|
|
382
|
-
return a.start = o.start,
|
|
382
|
+
return a.start = o.start, S.C && (a.X = new Xt(), a.X.start = o.X.start), S.Xa && (a.j = [o.j[0], 0]), a;
|
|
383
383
|
}
|
|
384
384
|
function x(o, a) {
|
|
385
|
-
return o.type = a, o.end = ie,
|
|
385
|
+
return o.type = a, o.end = ie, S.C && (o.X.end = ht), S.Xa && (o.j[1] = ie), o;
|
|
386
386
|
}
|
|
387
387
|
function rt(o) {
|
|
388
388
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
389
389
|
}
|
|
390
390
|
function I(o) {
|
|
391
|
-
return w === o ? (
|
|
391
|
+
return w === o ? (j(), !0) : !1;
|
|
392
392
|
}
|
|
393
393
|
function $e() {
|
|
394
|
-
return !
|
|
394
|
+
return !S.fc && (w === gt || w === ve || Qe.test(g.slice(ie, R)));
|
|
395
395
|
}
|
|
396
396
|
function ue() {
|
|
397
397
|
I(z) || $e() || J();
|
|
398
398
|
}
|
|
399
399
|
function N(o) {
|
|
400
|
-
w === o ?
|
|
400
|
+
w === o ? j() : J();
|
|
401
401
|
}
|
|
402
402
|
function J() {
|
|
403
403
|
r(R, "Unexpected token");
|
|
@@ -406,12 +406,12 @@ var C, sn = function(e) {
|
|
|
406
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");
|
|
407
407
|
}
|
|
408
408
|
function W() {
|
|
409
|
-
(w ===
|
|
410
|
-
var o = w, a =
|
|
409
|
+
(w === gr || w === ce && V === "/=") && C(!0);
|
|
410
|
+
var o = w, a = U();
|
|
411
411
|
switch (o) {
|
|
412
412
|
case vt:
|
|
413
|
-
case
|
|
414
|
-
|
|
413
|
+
case Kt:
|
|
414
|
+
j();
|
|
415
415
|
var l = o === vt;
|
|
416
416
|
I(z) || $e() ? a.label = null : w !== ge ? J() : (a.label = Y(), ue());
|
|
417
417
|
for (var p = 0; p < M.length; ++p) {
|
|
@@ -420,36 +420,36 @@ var C, sn = function(e) {
|
|
|
420
420
|
break;
|
|
421
421
|
}
|
|
422
422
|
return p === M.length && r(a.start, "Unsyntactic " + o.l), x(a, l ? "BreakStatement" : "ContinueStatement");
|
|
423
|
-
case
|
|
424
|
-
return
|
|
425
|
-
case
|
|
426
|
-
return
|
|
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));
|
|
429
|
-
case dt:
|
|
430
|
-
return S(), at(a, !0);
|
|
423
|
+
case Zt:
|
|
424
|
+
return j(), ue(), x(a, "DebuggerStatement");
|
|
425
|
+
case Qt:
|
|
426
|
+
return j(), M.push(jt), a.body = W(), M.pop(), N(Et), a.test = Oe(), ue(), x(a, "DoWhileStatement");
|
|
431
427
|
case tr:
|
|
432
|
-
return
|
|
428
|
+
return j(), M.push(jt), N(Z), w === z ? nt(a, null) : w === wt ? (o = U(), j(), Ht(o, !0), x(o, "VariableDeclaration"), o.fa.length === 1 && I(Ze) ? Wt(a, o) : nt(a, o)) : (o = F(!1, !0), I(Ze) ? (Je(o), Wt(a, o)) : nt(a, o));
|
|
429
|
+
case dt:
|
|
430
|
+
return j(), at(a, !0);
|
|
433
431
|
case rr:
|
|
434
|
-
return
|
|
435
|
-
case mt:
|
|
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");
|
|
432
|
+
return j(), a.test = Oe(), a.da = W(), a.alternate = I(qt) ? W() : null, x(a, "IfStatement");
|
|
439
433
|
case nr:
|
|
440
|
-
return S(),
|
|
434
|
+
return Te || S.Ib || r(R, "'return' outside of function"), j(), I(z) || $e() ? a.K = null : (a.K = F(), ue()), x(a, "ReturnStatement");
|
|
435
|
+
case mt:
|
|
436
|
+
for (j(), a.Qb = Oe(), 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 = U()), p.da = [], j(), 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"), j(), M.pop(), x(a, "SwitchStatement");
|
|
441
439
|
case ir:
|
|
442
|
-
return
|
|
440
|
+
return j(), Qe.test(g.slice(ie, R)) && r(ie, "Illegal newline after throw"), a.K = F(), ue(), x(a, "ThrowStatement");
|
|
441
|
+
case or:
|
|
442
|
+
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");
|
|
443
443
|
case wt:
|
|
444
|
-
return
|
|
444
|
+
return j(), Ht(a), ue(), x(a, "VariableDeclaration");
|
|
445
445
|
case Et:
|
|
446
|
-
return
|
|
447
|
-
case
|
|
448
|
-
return G && r(R, "'with' in strict mode"),
|
|
446
|
+
return j(), a.test = Oe(), M.push(jt), a.body = W(), M.pop(), x(a, "WhileStatement");
|
|
447
|
+
case sr:
|
|
448
|
+
return G && r(R, "'with' in strict mode"), j(), a.object = Oe(), a.body = W(), x(a, "WithStatement");
|
|
449
449
|
case Me:
|
|
450
|
-
return
|
|
450
|
+
return Ce();
|
|
451
451
|
case z:
|
|
452
|
-
return
|
|
452
|
+
return j(), x(a, "EmptyStatement");
|
|
453
453
|
default:
|
|
454
454
|
if (l = V, E = F(), o === ge && E.type === "Identifier" && I(Re)) {
|
|
455
455
|
for (p = 0; p < M.length; ++p)
|
|
@@ -462,13 +462,13 @@ var C, sn = function(e) {
|
|
|
462
462
|
return a.la = E, ue(), x(a, "ExpressionStatement");
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function Oe() {
|
|
466
466
|
N(Z);
|
|
467
467
|
var o = F();
|
|
468
468
|
return N($), o;
|
|
469
469
|
}
|
|
470
|
-
function
|
|
471
|
-
var a =
|
|
470
|
+
function Ce(o) {
|
|
471
|
+
var a = U(), l = !0, p = !1;
|
|
472
472
|
for (a.body = [], N(Me); !I(ve); ) {
|
|
473
473
|
var E = W();
|
|
474
474
|
if (a.body.push(E), l && o && rt(E)) {
|
|
@@ -482,13 +482,13 @@ var C, sn = function(e) {
|
|
|
482
482
|
function nt(o, a) {
|
|
483
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");
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function Wt(o, a) {
|
|
486
486
|
return o.left = a, o.right = F(), N($), o.body = W(), M.pop(), x(o, "ForInStatement");
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function Ht(o, a) {
|
|
489
489
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
490
|
-
var l =
|
|
491
|
-
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 = U();
|
|
491
|
+
if (l.id = Y(), G && ze(l.id.name) && r(l.id.start, "Binding " + l.id.name + " in strict mode"), l.ua = I(vr) ? F(!0, a) : null, o.fa.push(x(l, "VariableDeclarator")), !I(oe))
|
|
492
492
|
break;
|
|
493
493
|
}
|
|
494
494
|
}
|
|
@@ -503,64 +503,64 @@ var C, sn = function(e) {
|
|
|
503
503
|
}
|
|
504
504
|
function it(o) {
|
|
505
505
|
var a = ot(st(), -1, o);
|
|
506
|
-
if (I(
|
|
506
|
+
if (I(hr)) {
|
|
507
507
|
var l = ne(a);
|
|
508
508
|
l.test = a, l.da = F(!0), N(Re), l.alternate = F(!0, o), a = x(l, "ConditionalExpression");
|
|
509
509
|
}
|
|
510
|
-
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, j(), l.right = it(o), Je(a), x(l, "AssignmentExpression")) : a;
|
|
511
511
|
}
|
|
512
512
|
function ot(o, a, l) {
|
|
513
513
|
var p = w.L;
|
|
514
514
|
if (p !== null && (!l || w !== Ze) && p > a) {
|
|
515
515
|
var E = ne(o);
|
|
516
|
-
return E.left = o, E.operator = V, o = w,
|
|
516
|
+
return E.left = o, E.operator = V, o = w, j(), E.right = ot(st(), p, l), p = x(E, o === dr || o === mr ? "LogicalExpression" : "BinaryExpression"), ot(p, a, l);
|
|
517
517
|
}
|
|
518
518
|
return o;
|
|
519
519
|
}
|
|
520
520
|
function st() {
|
|
521
521
|
if (w.prefix) {
|
|
522
|
-
var o =
|
|
523
|
-
return o.operator = V, Ie = o.prefix = !0,
|
|
522
|
+
var o = U(), a = w.$b;
|
|
523
|
+
return o.operator = V, Ie = o.prefix = !0, j(), 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");
|
|
524
524
|
}
|
|
525
525
|
for (a = Ae(Ye()); w.cc && !$e(); )
|
|
526
|
-
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), j(), a = x(o, "UpdateExpression");
|
|
527
527
|
return a;
|
|
528
528
|
}
|
|
529
529
|
function Ae(o, a) {
|
|
530
|
-
if (I(
|
|
530
|
+
if (I(fr)) {
|
|
531
531
|
var l = ne(o);
|
|
532
532
|
return l.object = o, l.Wa = Y(!0), l.bb = !1, Ae(x(l, "MemberExpression"), a);
|
|
533
533
|
}
|
|
534
|
-
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(St), Ae(x(l, "MemberExpression"), a)) : !a && I(Z) ? (l = ne(o), l.callee = o, l.arguments = ut($, !1), Ae(x(l, "CallExpression"), a)) : o;
|
|
535
535
|
}
|
|
536
536
|
function Ye() {
|
|
537
537
|
switch (w) {
|
|
538
|
-
case
|
|
539
|
-
var o =
|
|
540
|
-
return
|
|
538
|
+
case ur:
|
|
539
|
+
var o = U();
|
|
540
|
+
return j(), x(o, "ThisExpression");
|
|
541
541
|
case ge:
|
|
542
542
|
return Y();
|
|
543
543
|
case Ne:
|
|
544
544
|
case Ke:
|
|
545
|
-
case
|
|
546
|
-
return o =
|
|
547
|
-
case ur:
|
|
545
|
+
case Jt:
|
|
546
|
+
return o = U(), o.value = V, o.raw = g.slice(R, he), j(), x(o, "Literal");
|
|
548
547
|
case lr:
|
|
549
548
|
case cr:
|
|
550
|
-
|
|
549
|
+
case pr:
|
|
550
|
+
return o = U(), o.value = w.$a, o.raw = w.l, j(), x(o, "Literal");
|
|
551
551
|
case Z:
|
|
552
552
|
o = ct;
|
|
553
553
|
var a = R;
|
|
554
|
-
|
|
554
|
+
j();
|
|
555
555
|
var l = F();
|
|
556
|
-
return l.start = a, l.end = he,
|
|
556
|
+
return l.start = a, l.end = he, S.C && (l.X.start = o, l.X.end = pt), S.Xa && (l.j = [a, he]), N($), l;
|
|
557
557
|
case xt:
|
|
558
|
-
return o =
|
|
558
|
+
return o = U(), j(), o.elements = ut(St, !0, !0), x(o, "ArrayExpression");
|
|
559
559
|
case Me:
|
|
560
|
-
for (o =
|
|
560
|
+
for (o = U(), a = !0, l = !1, o.h = [], j(); !I(ve); ) {
|
|
561
561
|
if (a)
|
|
562
562
|
a = !1;
|
|
563
|
-
else if (N(oe),
|
|
563
|
+
else if (N(oe), S.sb && I(ve))
|
|
564
564
|
break;
|
|
565
565
|
var p = {
|
|
566
566
|
key: w === Ne || w === Ke ? Ye() : Y(!0)
|
|
@@ -569,7 +569,7 @@ var C, sn = function(e) {
|
|
|
569
569
|
p.value = F(!0);
|
|
570
570
|
var P = p.kind = "init";
|
|
571
571
|
} else
|
|
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(
|
|
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(U(), !1));
|
|
573
573
|
if (p.key.type === "Identifier" && (G || l))
|
|
574
574
|
for (var L = 0; L < o.h.length; ++L) {
|
|
575
575
|
var de = o.h[L];
|
|
@@ -582,9 +582,9 @@ var C, sn = function(e) {
|
|
|
582
582
|
}
|
|
583
583
|
return x(o, "ObjectExpression");
|
|
584
584
|
case dt:
|
|
585
|
-
return o =
|
|
586
|
-
case
|
|
587
|
-
return o =
|
|
585
|
+
return o = U(), j(), at(o, !1);
|
|
586
|
+
case ar:
|
|
587
|
+
return o = U(), j(), o.callee = Ae(Ye(), !0), o.arguments = I(Z) ? ut($, !1) : br, x(o, "NewExpression");
|
|
588
588
|
}
|
|
589
589
|
J();
|
|
590
590
|
}
|
|
@@ -595,9 +595,9 @@ var C, sn = function(e) {
|
|
|
595
595
|
l ? l = !1 : N(oe), o.oa.push(Y());
|
|
596
596
|
l = Te;
|
|
597
597
|
var p = M;
|
|
598
|
-
if (Te = !0, M = [], o.body =
|
|
598
|
+
if (Te = !0, M = [], o.body = Ce(!0), Te = l, M = p, G || o.body.body.length && rt(o.body.body[0])) {
|
|
599
599
|
for (l = o.id ? -1 : 0; l < o.oa.length; ++l)
|
|
600
|
-
if (p = 0 > l ? o.id : o.oa[l], (
|
|
600
|
+
if (p = 0 > l ? o.id : o.oa[l], (wr(p.name) || ze(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= l)
|
|
601
601
|
for (var E = 0; E < l; ++E)
|
|
602
602
|
p.name === o.oa[E].name && r(p.start, "Argument name clash in strict mode");
|
|
603
603
|
}
|
|
@@ -607,27 +607,27 @@ var C, sn = function(e) {
|
|
|
607
607
|
for (var p = [], E = !0; !I(o); ) {
|
|
608
608
|
if (E)
|
|
609
609
|
E = !1;
|
|
610
|
-
else if (N(oe), a &&
|
|
610
|
+
else if (N(oe), a && S.sb && I(o))
|
|
611
611
|
break;
|
|
612
612
|
p.push(l && w === oe ? null : F(!0));
|
|
613
613
|
}
|
|
614
614
|
return p;
|
|
615
615
|
}
|
|
616
616
|
function Y(o) {
|
|
617
|
-
var a =
|
|
618
|
-
return o &&
|
|
617
|
+
var a = U();
|
|
618
|
+
return o && S.yb === "everywhere" && (o = !1), w === ge ? (!o && (S.yb && Hr(V) || G && wr(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, j(), x(a, "Identifier");
|
|
619
619
|
}
|
|
620
620
|
e.version = "0.5.0";
|
|
621
|
-
var
|
|
621
|
+
var S, g = "", fe, lt;
|
|
622
622
|
e.parse = function(o, a) {
|
|
623
|
-
g = String(o), fe = g.length,
|
|
624
|
-
for (var l in
|
|
625
|
-
Object.prototype.hasOwnProperty.call(
|
|
626
|
-
for (lt =
|
|
623
|
+
g = String(o), fe = g.length, S = a || {};
|
|
624
|
+
for (var l in $t)
|
|
625
|
+
Object.prototype.hasOwnProperty.call(S, l) || (S[l] = $t[l]);
|
|
626
|
+
for (lt = S.sourceFile, le = 1, c = K = 0, Ie = !0, m(), l = S.dc, ft = ie = c, S.C && (ht = new s()), Te = G = !1, M = [], C(), o = l || U(), a = !0, l || (o.body = []); w !== gt; )
|
|
627
627
|
l = W(), o.body.push(l), a && rt(l) && ke(!0), a = !1;
|
|
628
628
|
return x(o, "Program");
|
|
629
629
|
};
|
|
630
|
-
var
|
|
630
|
+
var $t = {
|
|
631
631
|
fc: !1,
|
|
632
632
|
sb: !0,
|
|
633
633
|
yb: !1,
|
|
@@ -638,9 +638,9 @@ var C, sn = function(e) {
|
|
|
638
638
|
dc: null,
|
|
639
639
|
sourceFile: null,
|
|
640
640
|
vb: null
|
|
641
|
-
}, 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, br = [], Ne = {
|
|
642
642
|
type: "num"
|
|
643
|
-
},
|
|
643
|
+
}, Jt = {
|
|
644
644
|
type: "regexp"
|
|
645
645
|
}, Ke = {
|
|
646
646
|
type: "string"
|
|
@@ -653,95 +653,95 @@ var C, sn = function(e) {
|
|
|
653
653
|
}, yt = {
|
|
654
654
|
l: "case",
|
|
655
655
|
m: !0
|
|
656
|
-
}, Jt = {
|
|
657
|
-
l: "catch"
|
|
658
656
|
}, Yt = {
|
|
659
|
-
l: "
|
|
657
|
+
l: "catch"
|
|
660
658
|
}, Kt = {
|
|
661
|
-
l: "
|
|
659
|
+
l: "continue"
|
|
662
660
|
}, Zt = {
|
|
663
|
-
l: "
|
|
661
|
+
l: "debugger"
|
|
664
662
|
}, zt = {
|
|
663
|
+
l: "default"
|
|
664
|
+
}, Qt = {
|
|
665
665
|
l: "do",
|
|
666
666
|
W: !0
|
|
667
|
-
},
|
|
667
|
+
}, qt = {
|
|
668
668
|
l: "else",
|
|
669
669
|
m: !0
|
|
670
|
-
}, qt = {
|
|
671
|
-
l: "finally"
|
|
672
670
|
}, er = {
|
|
671
|
+
l: "finally"
|
|
672
|
+
}, tr = {
|
|
673
673
|
l: "for",
|
|
674
674
|
W: !0
|
|
675
675
|
}, dt = {
|
|
676
676
|
l: "function"
|
|
677
|
-
}, tr = {
|
|
678
|
-
l: "if"
|
|
679
677
|
}, rr = {
|
|
678
|
+
l: "if"
|
|
679
|
+
}, nr = {
|
|
680
680
|
l: "return",
|
|
681
681
|
m: !0
|
|
682
682
|
}, mt = {
|
|
683
683
|
l: "switch"
|
|
684
|
-
},
|
|
684
|
+
}, ir = {
|
|
685
685
|
l: "throw",
|
|
686
686
|
m: !0
|
|
687
|
-
},
|
|
687
|
+
}, or = {
|
|
688
688
|
l: "try"
|
|
689
689
|
}, wt = {
|
|
690
690
|
l: "var"
|
|
691
691
|
}, Et = {
|
|
692
692
|
l: "while",
|
|
693
693
|
W: !0
|
|
694
|
-
}, or = {
|
|
695
|
-
l: "with"
|
|
696
694
|
}, sr = {
|
|
695
|
+
l: "with"
|
|
696
|
+
}, ar = {
|
|
697
697
|
l: "new",
|
|
698
698
|
m: !0
|
|
699
|
-
}, ar = {
|
|
700
|
-
l: "this"
|
|
701
699
|
}, ur = {
|
|
700
|
+
l: "this"
|
|
701
|
+
}, lr = {
|
|
702
702
|
l: "null",
|
|
703
703
|
$a: null
|
|
704
|
-
},
|
|
704
|
+
}, cr = {
|
|
705
705
|
l: "true",
|
|
706
706
|
$a: !0
|
|
707
|
-
},
|
|
707
|
+
}, pr = {
|
|
708
708
|
l: "false",
|
|
709
709
|
$a: !1
|
|
710
710
|
}, Ze = {
|
|
711
711
|
l: "in",
|
|
712
712
|
L: 7,
|
|
713
713
|
m: !0
|
|
714
|
-
},
|
|
714
|
+
}, Ur = {
|
|
715
715
|
break: vt,
|
|
716
716
|
case: yt,
|
|
717
|
-
catch:
|
|
718
|
-
continue:
|
|
719
|
-
debugger:
|
|
720
|
-
default:
|
|
721
|
-
do:
|
|
722
|
-
else:
|
|
723
|
-
finally:
|
|
724
|
-
for:
|
|
717
|
+
catch: Yt,
|
|
718
|
+
continue: Kt,
|
|
719
|
+
debugger: Zt,
|
|
720
|
+
default: zt,
|
|
721
|
+
do: Qt,
|
|
722
|
+
else: qt,
|
|
723
|
+
finally: er,
|
|
724
|
+
for: tr,
|
|
725
725
|
function: dt,
|
|
726
|
-
if:
|
|
727
|
-
return:
|
|
726
|
+
if: rr,
|
|
727
|
+
return: nr,
|
|
728
728
|
switch: mt,
|
|
729
|
-
throw:
|
|
730
|
-
try:
|
|
729
|
+
throw: ir,
|
|
730
|
+
try: or,
|
|
731
731
|
var: wt,
|
|
732
732
|
while: Et,
|
|
733
|
-
with:
|
|
734
|
-
null:
|
|
735
|
-
true:
|
|
736
|
-
false:
|
|
737
|
-
new:
|
|
733
|
+
with: sr,
|
|
734
|
+
null: lr,
|
|
735
|
+
true: cr,
|
|
736
|
+
false: pr,
|
|
737
|
+
new: ar,
|
|
738
738
|
in: Ze,
|
|
739
739
|
instanceof: {
|
|
740
740
|
l: "instanceof",
|
|
741
741
|
L: 7,
|
|
742
742
|
m: !0
|
|
743
743
|
},
|
|
744
|
-
this:
|
|
744
|
+
this: ur,
|
|
745
745
|
typeof: {
|
|
746
746
|
l: "typeof",
|
|
747
747
|
prefix: !0,
|
|
@@ -760,7 +760,7 @@ var C, sn = function(e) {
|
|
|
760
760
|
}, xt = {
|
|
761
761
|
type: "[",
|
|
762
762
|
m: !0
|
|
763
|
-
},
|
|
763
|
+
}, St = {
|
|
764
764
|
type: "]"
|
|
765
765
|
}, Me = {
|
|
766
766
|
type: "{",
|
|
@@ -781,15 +781,15 @@ var C, sn = function(e) {
|
|
|
781
781
|
}, Re = {
|
|
782
782
|
type: ":",
|
|
783
783
|
m: !0
|
|
784
|
-
}, pr = {
|
|
785
|
-
type: "."
|
|
786
784
|
}, fr = {
|
|
785
|
+
type: "."
|
|
786
|
+
}, hr = {
|
|
787
787
|
type: "?",
|
|
788
788
|
m: !0
|
|
789
|
-
},
|
|
789
|
+
}, gr = {
|
|
790
790
|
L: 10,
|
|
791
791
|
m: !0
|
|
792
|
-
},
|
|
792
|
+
}, vr = {
|
|
793
793
|
Cb: !0,
|
|
794
794
|
m: !0
|
|
795
795
|
}, ce = {
|
|
@@ -799,13 +799,13 @@ var C, sn = function(e) {
|
|
|
799
799
|
cc: !0,
|
|
800
800
|
prefix: !0,
|
|
801
801
|
$b: !0
|
|
802
|
-
},
|
|
802
|
+
}, yr = {
|
|
803
803
|
prefix: !0,
|
|
804
804
|
m: !0
|
|
805
|
-
},
|
|
805
|
+
}, dr = {
|
|
806
806
|
L: 1,
|
|
807
807
|
m: !0
|
|
808
|
-
},
|
|
808
|
+
}, mr = {
|
|
809
809
|
L: 2,
|
|
810
810
|
m: !0
|
|
811
811
|
}, Fr = {
|
|
@@ -833,7 +833,7 @@ var C, sn = function(e) {
|
|
|
833
833
|
}, Wr = {
|
|
834
834
|
L: 10,
|
|
835
835
|
m: !0
|
|
836
|
-
}, Hr = i("class enum extends super const export import"),
|
|
836
|
+
}, Hr = i("class enum extends super const export import"), wr = 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]/, Er = 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, jt = {
|
|
837
837
|
kind: "loop"
|
|
838
838
|
}, Kr = {
|
|
839
839
|
kind: "switch"
|
|
@@ -858,10 +858,10 @@ function f(e, t) {
|
|
|
858
858
|
this.N = Nt(this, this.ra, null), this.Na = this.N.object, this.ra = Ee(this.ba.join(`
|
|
859
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;
|
|
860
860
|
}
|
|
861
|
-
var
|
|
861
|
+
var xr = {
|
|
862
862
|
C: !0,
|
|
863
863
|
kc: 5
|
|
864
|
-
},
|
|
864
|
+
}, Rt = {
|
|
865
865
|
configurable: !0,
|
|
866
866
|
enumerable: !0,
|
|
867
867
|
writable: !1
|
|
@@ -877,20 +877,20 @@ var Er = {
|
|
|
877
877
|
configurable: !1,
|
|
878
878
|
enumerable: !1,
|
|
879
879
|
writable: !1
|
|
880
|
-
},
|
|
880
|
+
}, Sr = {
|
|
881
881
|
configurable: !1,
|
|
882
882
|
enumerable: !0,
|
|
883
883
|
writable: !0
|
|
884
884
|
}, Tr = {
|
|
885
885
|
STEP_ERROR: !0
|
|
886
|
-
},
|
|
886
|
+
}, Se = {
|
|
887
887
|
SCOPE_REFERENCE: !0
|
|
888
888
|
}, Be = {
|
|
889
889
|
VALUE_IN_DESCRIPTOR: !0
|
|
890
890
|
}, me = {
|
|
891
891
|
REGEXP_TIMEOUT: !0
|
|
892
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
|
|
893
|
+
function Pt(e) {
|
|
894
894
|
var t = e >>> 0;
|
|
895
895
|
return t === Number(e) ? t : NaN;
|
|
896
896
|
}
|
|
@@ -909,18 +909,18 @@ function et(e, t, n) {
|
|
|
909
909
|
f.prototype.REGEXP_MODE = 2;
|
|
910
910
|
f.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
911
911
|
f.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
912
|
+
O = f.prototype;
|
|
913
|
+
O.P = !1;
|
|
914
|
+
O.Ka = !1;
|
|
915
|
+
O.Kb = 0;
|
|
916
|
+
O.ic = 0;
|
|
917
917
|
function Ee(e, t) {
|
|
918
918
|
var n = {}, r;
|
|
919
|
-
for (r in
|
|
920
|
-
n[r] =
|
|
919
|
+
for (r in xr)
|
|
920
|
+
n[r] = xr[r];
|
|
921
921
|
return n.sourceFile = t, se.j.parse(e, n);
|
|
922
922
|
}
|
|
923
|
-
|
|
923
|
+
O.Jb = function(e) {
|
|
924
924
|
var t = this.o[0];
|
|
925
925
|
if (!t || t.node.type !== "Program")
|
|
926
926
|
throw Error("Expecting original AST to start with a Program node");
|
|
@@ -928,7 +928,7 @@ C.Jb = function(e) {
|
|
|
928
928
|
throw Error("Expecting new AST to start with a Program node");
|
|
929
929
|
Ge(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
930
930
|
};
|
|
931
|
-
|
|
931
|
+
O.lb = function() {
|
|
932
932
|
var e = this.o, t;
|
|
933
933
|
do {
|
|
934
934
|
var n = e[e.length - 1];
|
|
@@ -966,13 +966,13 @@ C.lb = function() {
|
|
|
966
966
|
} while (!r.end && t > Date.now());
|
|
967
967
|
return !0;
|
|
968
968
|
};
|
|
969
|
-
|
|
969
|
+
O.Eb = function() {
|
|
970
970
|
for (; !this.za && this.lb(); )
|
|
971
971
|
;
|
|
972
972
|
return this.za;
|
|
973
973
|
};
|
|
974
974
|
function un(e, 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,
|
|
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, Rt), 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);
|
|
976
976
|
var n = e.i(function() {
|
|
977
977
|
throw EvalError("Can't happen");
|
|
978
978
|
}, !1);
|
|
@@ -988,16 +988,16 @@ function un(e, t) {
|
|
|
988
988
|
};
|
|
989
989
|
}(r[i][0]), e.g(t, r[i][1], e.i(n, !1), v);
|
|
990
990
|
n = function(s) {
|
|
991
|
-
return
|
|
991
|
+
return kr(e, !1, arguments);
|
|
992
992
|
}, e.g(t, "setTimeout", e.i(n, !1), v), n = function(s) {
|
|
993
|
-
return
|
|
993
|
+
return kr(e, !0, arguments);
|
|
994
994
|
}, e.g(t, "setInterval", e.i(n, !1), v), n = function(s) {
|
|
995
|
-
|
|
995
|
+
Or(e, s);
|
|
996
996
|
}, e.g(t, "clearTimeout", e.i(n, !1), v), n = function(s) {
|
|
997
|
-
|
|
997
|
+
Or(e, s);
|
|
998
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);
|
|
999
999
|
}
|
|
1000
|
-
|
|
1000
|
+
O.Wb = 0;
|
|
1001
1001
|
function ln(e, t) {
|
|
1002
1002
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(i) {
|
|
1003
1003
|
var s = arguments.length ? String(arguments[arguments.length - 1]) : "", u = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
@@ -1011,26 +1011,26 @@ function ln(e, t) {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
try {
|
|
1013
1013
|
var T = Ee("(function(" + u + ") {" + s + "})", "function" + e.Wb++);
|
|
1014
|
-
} catch (
|
|
1015
|
-
d(e, e.T, "Invalid code: " +
|
|
1014
|
+
} catch (C) {
|
|
1015
|
+
d(e, e.T, "Invalid code: " + C.message);
|
|
1016
1016
|
}
|
|
1017
|
-
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"), Dt(e, T.body[0].la, e.N, "anonymous");
|
|
1018
1018
|
};
|
|
1019
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() {
|
|
1020
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) {
|
|
1021
1021
|
var u = e.o[e.o.length - 1];
|
|
1022
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;
|
|
1023
|
-
},
|
|
1023
|
+
}, b(e, e.O, "apply", r), r = function(i) {
|
|
1024
1024
|
var s = e.o[e.o.length - 1];
|
|
1025
1025
|
s.U = this, s.B = i, s.F = [];
|
|
1026
1026
|
for (var u = 1; u < arguments.length; u++)
|
|
1027
1027
|
s.F.push(arguments[u]);
|
|
1028
1028
|
s.eb = !1;
|
|
1029
|
-
},
|
|
1029
|
+
}, b(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() {
|
|
1030
1030
|
return String(this);
|
|
1031
|
-
},
|
|
1031
|
+
}, b(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), v), r = function() {
|
|
1032
1032
|
return this.valueOf();
|
|
1033
|
-
},
|
|
1033
|
+
}, b(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), v);
|
|
1034
1034
|
}
|
|
1035
1035
|
function cn(e, t) {
|
|
1036
1036
|
function n(i) {
|
|
@@ -1064,24 +1064,24 @@ function cn(e, t) {
|
|
|
1064
1064
|
return !!i && !i.preventExtensions;
|
|
1065
1065
|
}, e.g(e.v, "isExtensible", e.i(r, !1), v), r = function(i) {
|
|
1066
1066
|
return i instanceof k && (i.preventExtensions = !0), i;
|
|
1067
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), v),
|
|
1067
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), v), b(e, e.v, "toString", k.prototype.toString), b(e, e.v, "toLocaleString", k.prototype.toString), b(e, e.v, "valueOf", k.prototype.valueOf), r = function(i) {
|
|
1068
1068
|
return n(this), this instanceof k ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1069
|
-
},
|
|
1069
|
+
}, b(e, e.v, "hasOwnProperty", r), r = function(i) {
|
|
1070
1070
|
return n(this), this instanceof k ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1071
|
-
},
|
|
1071
|
+
}, b(e, e.v, "propertyIsEnumerable", r), r = function(i) {
|
|
1072
1072
|
for (; ; ) {
|
|
1073
1073
|
if (i = te(e, i), !i)
|
|
1074
1074
|
return !1;
|
|
1075
1075
|
if (i === this)
|
|
1076
1076
|
return !0;
|
|
1077
1077
|
}
|
|
1078
|
-
},
|
|
1078
|
+
}, b(e, e.v, "isPrototypeOf", r);
|
|
1079
1079
|
}
|
|
1080
1080
|
function pn(e, t) {
|
|
1081
1081
|
var n = function(r) {
|
|
1082
1082
|
var i = re(e) ? this : xe(e), s = arguments[0];
|
|
1083
1083
|
if (arguments.length === 1 && typeof s == "number")
|
|
1084
|
-
isNaN(
|
|
1084
|
+
isNaN(Pt(s)) && d(e, e.ob, "Invalid array length: " + s), i.h.length = s;
|
|
1085
1085
|
else {
|
|
1086
1086
|
for (s = 0; s < arguments.length; s++)
|
|
1087
1087
|
i.h[s] = arguments[s];
|
|
@@ -1102,7 +1102,7 @@ function fn(e, t) {
|
|
|
1102
1102
|
return r = arguments.length ? se.String(r) : "", re(e) ? (this.data = r, this) : r;
|
|
1103
1103
|
};
|
|
1104
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++)
|
|
1105
|
-
|
|
1105
|
+
b(e, e.J, t[n], String.prototype[t[n]]);
|
|
1106
1106
|
n = function(r, i, s) {
|
|
1107
1107
|
i = e.R(i), s = e.R(s);
|
|
1108
1108
|
try {
|
|
@@ -1110,11 +1110,11 @@ function fn(e, t) {
|
|
|
1110
1110
|
} catch (u) {
|
|
1111
1111
|
d(e, e.D, "localeCompare: " + u.message);
|
|
1112
1112
|
}
|
|
1113
|
-
},
|
|
1113
|
+
}, b(e, e.J, "localeCompare", n), n = function(r, i, s) {
|
|
1114
1114
|
var u = String(this);
|
|
1115
|
-
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, Ue(e, r, s), e.REGEXP_MODE === 2)) {
|
|
1116
1116
|
if (ee)
|
|
1117
|
-
r =
|
|
1117
|
+
r = be(e, "string.split(separator, limit)", {
|
|
1118
1118
|
string: u,
|
|
1119
1119
|
separator: r,
|
|
1120
1120
|
limit: i
|
|
@@ -1130,9 +1130,9 @@ function fn(e, t) {
|
|
|
1130
1130
|
r = u.split(r, i), s(q(e, r));
|
|
1131
1131
|
}, Fe(e, e.J, "split", n), n = function(r, i) {
|
|
1132
1132
|
var s = String(this);
|
|
1133
|
-
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), Ue(e, r, i), e.REGEXP_MODE === 2)
|
|
1134
1134
|
if (ee)
|
|
1135
|
-
r =
|
|
1135
|
+
r = be(e, "string.match(regexp)", {
|
|
1136
1136
|
string: s,
|
|
1137
1137
|
regexp: r
|
|
1138
1138
|
}, r, i), r !== me && i(r && q(e, r));
|
|
@@ -1146,9 +1146,9 @@ function fn(e, t) {
|
|
|
1146
1146
|
r = s.match(r), i(r && q(e, r));
|
|
1147
1147
|
}, Fe(e, e.J, "match", n), n = function(r, i) {
|
|
1148
1148
|
var s = String(this);
|
|
1149
|
-
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), Ue(e, r, i), e.REGEXP_MODE === 2)
|
|
1150
1150
|
if (ee)
|
|
1151
|
-
r =
|
|
1151
|
+
r = be(e, "string.search(regexp)", {
|
|
1152
1152
|
string: s,
|
|
1153
1153
|
regexp: r
|
|
1154
1154
|
}, r, i), r !== me && i(r);
|
|
@@ -1162,9 +1162,9 @@ function fn(e, t) {
|
|
|
1162
1162
|
i(s.search(r));
|
|
1163
1163
|
}, Fe(e, e.J, "search", n), n = function(r, i, s) {
|
|
1164
1164
|
var u = String(this);
|
|
1165
|
-
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, Ue(e, r, s), e.REGEXP_MODE === 2)) {
|
|
1166
1166
|
if (ee)
|
|
1167
|
-
r =
|
|
1167
|
+
r = be(e, "string.replace(substr, newSubstr)", {
|
|
1168
1168
|
string: u,
|
|
1169
1169
|
substr: r,
|
|
1170
1170
|
newSubstr: i
|
|
@@ -1197,32 +1197,32 @@ function gn(e, t) {
|
|
|
1197
1197
|
} catch (i) {
|
|
1198
1198
|
d(e, e.D, i.message);
|
|
1199
1199
|
}
|
|
1200
|
-
},
|
|
1200
|
+
}, b(e, e.aa, "toExponential", n), n = function(r) {
|
|
1201
1201
|
try {
|
|
1202
1202
|
return Number(this).toFixed(r);
|
|
1203
1203
|
} catch (i) {
|
|
1204
1204
|
d(e, e.D, i.message);
|
|
1205
1205
|
}
|
|
1206
|
-
},
|
|
1206
|
+
}, b(e, e.aa, "toFixed", n), n = function(r) {
|
|
1207
1207
|
try {
|
|
1208
1208
|
return Number(this).toPrecision(r);
|
|
1209
1209
|
} catch (i) {
|
|
1210
1210
|
d(e, e.D, i.message);
|
|
1211
1211
|
}
|
|
1212
|
-
},
|
|
1212
|
+
}, b(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1213
1213
|
try {
|
|
1214
1214
|
return Number(this).toString(r);
|
|
1215
1215
|
} catch (i) {
|
|
1216
1216
|
d(e, e.D, i.message);
|
|
1217
1217
|
}
|
|
1218
|
-
},
|
|
1218
|
+
}, b(e, e.aa, "toString", n), n = function(r, i) {
|
|
1219
1219
|
r = r ? e.R(r) : void 0, i = i ? e.R(i) : void 0;
|
|
1220
1220
|
try {
|
|
1221
1221
|
return Number(this).toLocaleString(r, i);
|
|
1222
1222
|
} catch (s) {
|
|
1223
1223
|
d(e, e.D, "toLocaleString: " + s.message);
|
|
1224
1224
|
}
|
|
1225
|
-
},
|
|
1225
|
+
}, b(e, e.aa, "toLocaleString", n);
|
|
1226
1226
|
}
|
|
1227
1227
|
function vn(e, t) {
|
|
1228
1228
|
var n = function(i, s) {
|
|
@@ -1241,7 +1241,7 @@ function vn(e, t) {
|
|
|
1241
1241
|
h[m] = e.R(arguments[m]);
|
|
1242
1242
|
return u[i].apply(u, h);
|
|
1243
1243
|
};
|
|
1244
|
-
}(t[r]),
|
|
1244
|
+
}(t[r]), b(e, e.$, t[r], n);
|
|
1245
1245
|
}
|
|
1246
1246
|
function yn(e, t) {
|
|
1247
1247
|
var n = function(r, i) {
|
|
@@ -1258,27 +1258,27 @@ function yn(e, t) {
|
|
|
1258
1258
|
} catch (h) {
|
|
1259
1259
|
d(e, e.T, h.message);
|
|
1260
1260
|
}
|
|
1261
|
-
return
|
|
1261
|
+
return bt(e, s, u), s;
|
|
1262
1262
|
};
|
|
1263
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) {
|
|
1264
|
-
function s(
|
|
1265
|
-
if (
|
|
1266
|
-
var A = q(e,
|
|
1267
|
-
return e.g(A, "index",
|
|
1264
|
+
function s(C) {
|
|
1265
|
+
if (C) {
|
|
1266
|
+
var A = q(e, C);
|
|
1267
|
+
return e.g(A, "index", C.index), e.g(A, "input", C.input), A;
|
|
1268
1268
|
}
|
|
1269
1269
|
return null;
|
|
1270
1270
|
}
|
|
1271
1271
|
var u = this.data;
|
|
1272
|
-
if (r = String(r), u.lastIndex = Number(e.G(this, "lastIndex")),
|
|
1272
|
+
if (r = String(r), u.lastIndex = Number(e.G(this, "lastIndex")), Ue(e, u, i), e.REGEXP_MODE === 2)
|
|
1273
1273
|
if (ee)
|
|
1274
|
-
r =
|
|
1274
|
+
r = be(e, "regexp.exec(string)", {
|
|
1275
1275
|
string: r,
|
|
1276
1276
|
regexp: u
|
|
1277
1277
|
}, u, i), r !== me && (e.g(this, "lastIndex", u.lastIndex), i(s(r)));
|
|
1278
1278
|
else {
|
|
1279
1279
|
var h = e.ha(), m = De(e, u, h, i), T = this;
|
|
1280
|
-
h.onmessage = function(
|
|
1281
|
-
clearTimeout(m), e.g(T, "lastIndex",
|
|
1280
|
+
h.onmessage = function(C) {
|
|
1281
|
+
clearTimeout(m), e.g(T, "lastIndex", C.data[1]), i(s(C.data[0]));
|
|
1282
1282
|
}, h.postMessage(["exec", u, u.lastIndex, r]);
|
|
1283
1283
|
}
|
|
1284
1284
|
else
|
|
@@ -1340,7 +1340,7 @@ function D(e, t, n) {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
return !1;
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function bt(e, t, n) {
|
|
1344
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);
|
|
1345
1345
|
}
|
|
1346
1346
|
function Tt(e, t, n) {
|
|
@@ -1360,14 +1360,14 @@ function Tt(e, t, n) {
|
|
|
1360
1360
|
}
|
|
1361
1361
|
e.g(t, "stack", s.trim(), v);
|
|
1362
1362
|
}
|
|
1363
|
-
|
|
1363
|
+
O.ha = function() {
|
|
1364
1364
|
var e = this.ha.Mb;
|
|
1365
1365
|
return e || (e = new Blob([an.join(`
|
|
1366
1366
|
`)], {
|
|
1367
1367
|
type: "application/javascript"
|
|
1368
1368
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1369
1369
|
};
|
|
1370
|
-
function
|
|
1370
|
+
function be(e, t, n, r, i) {
|
|
1371
1371
|
var s = {
|
|
1372
1372
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1373
1373
|
};
|
|
@@ -1378,7 +1378,7 @@ function Ue(e, t, n, r, i) {
|
|
|
1378
1378
|
}
|
|
1379
1379
|
return me;
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function Ue(e, t, n) {
|
|
1382
1382
|
if (e.REGEXP_MODE === 0)
|
|
1383
1383
|
var r = !1;
|
|
1384
1384
|
else if (e.REGEXP_MODE === 1)
|
|
@@ -1406,10 +1406,10 @@ function De(e, t, n, r) {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1408
1408
|
}
|
|
1409
|
-
|
|
1409
|
+
O.Aa = function(e) {
|
|
1410
1410
|
return this.s(e && e.h.prototype);
|
|
1411
1411
|
};
|
|
1412
|
-
|
|
1412
|
+
O.s = function(e) {
|
|
1413
1413
|
if (typeof e != "object")
|
|
1414
1414
|
throw Error("Non object prototype");
|
|
1415
1415
|
return e = new k(e), D(this, e, this.D) && (e.H = "Error"), e;
|
|
@@ -1426,25 +1426,25 @@ function Ut(e, t, n) {
|
|
|
1426
1426
|
var r = e.s(e.Z);
|
|
1427
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;
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function Dt(e, t, n, r) {
|
|
1430
1430
|
var i = Ut(e, t.oa.length, !0);
|
|
1431
1431
|
return i.Va = n, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : r || "", B), i;
|
|
1432
1432
|
}
|
|
1433
|
-
|
|
1433
|
+
O.i = function(e, t) {
|
|
1434
1434
|
return t = Ut(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, B), t;
|
|
1435
1435
|
};
|
|
1436
|
-
|
|
1436
|
+
O.ub = function(e) {
|
|
1437
1437
|
var t = Ut(this, e.length, !0);
|
|
1438
1438
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, B), t;
|
|
1439
1439
|
};
|
|
1440
|
-
|
|
1440
|
+
O.Ia = function(e) {
|
|
1441
1441
|
if (e instanceof k)
|
|
1442
1442
|
throw Error("Object is already pseudo");
|
|
1443
1443
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1444
1444
|
return e;
|
|
1445
1445
|
if (e instanceof RegExp) {
|
|
1446
1446
|
var t = this.s(this.Ma);
|
|
1447
|
-
return
|
|
1447
|
+
return bt(this, t, e), t;
|
|
1448
1448
|
}
|
|
1449
1449
|
if (e instanceof Date)
|
|
1450
1450
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1468,7 +1468,7 @@ C.Ia = function(e) {
|
|
|
1468
1468
|
this.g(t, r, this.Ia(e[r]));
|
|
1469
1469
|
return t;
|
|
1470
1470
|
};
|
|
1471
|
-
|
|
1471
|
+
O.R = function(e, t) {
|
|
1472
1472
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1473
1473
|
return e;
|
|
1474
1474
|
if (!(e instanceof k))
|
|
@@ -1507,7 +1507,7 @@ function Nr(e, t) {
|
|
|
1507
1507
|
var n = [], r;
|
|
1508
1508
|
for (r in t.h)
|
|
1509
1509
|
n[r] = e.G(t, r);
|
|
1510
|
-
return n.length =
|
|
1510
|
+
return n.length = Pt(e.G(t, "length")) || 0, n;
|
|
1511
1511
|
}
|
|
1512
1512
|
function te(e, t) {
|
|
1513
1513
|
switch (typeof t) {
|
|
@@ -1520,7 +1520,7 @@ function te(e, t) {
|
|
|
1520
1520
|
}
|
|
1521
1521
|
return t ? t.xa : null;
|
|
1522
1522
|
}
|
|
1523
|
-
|
|
1523
|
+
O.G = function(e, t) {
|
|
1524
1524
|
if (this.P)
|
|
1525
1525
|
throw Error("Getter not supported in that context");
|
|
1526
1526
|
if (t = String(t), e != null || d(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof k))
|
|
@@ -1554,13 +1554,13 @@ function tt(e, t, n) {
|
|
|
1554
1554
|
while (t = te(e, t));
|
|
1555
1555
|
return !1;
|
|
1556
1556
|
}
|
|
1557
|
-
|
|
1557
|
+
O.g = function(e, t, n, r) {
|
|
1558
1558
|
if (this.Ka)
|
|
1559
1559
|
throw Error("Setter not supported in that context");
|
|
1560
1560
|
if (t = String(t), e != null || d(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof k))
|
|
1561
1561
|
throw TypeError("Expecting native value or pseudo object");
|
|
1562
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");
|
|
1563
|
-
var i = !this.o ||
|
|
1563
|
+
var i = !this.o || Ft(this).S;
|
|
1564
1564
|
if (e instanceof k) {
|
|
1565
1565
|
if (D(this, e, this.J)) {
|
|
1566
1566
|
var s = _e(t);
|
|
@@ -1576,7 +1576,7 @@ C.g = function(e, t, n, r) {
|
|
|
1576
1576
|
return;
|
|
1577
1577
|
n = r.value;
|
|
1578
1578
|
}
|
|
1579
|
-
if (n =
|
|
1579
|
+
if (n = Pt(n), isNaN(n) && d(this, this.ob, "Invalid array length"), n < s)
|
|
1580
1580
|
for (u in e.h) {
|
|
1581
1581
|
var u = _e(u);
|
|
1582
1582
|
!isNaN(u) && n <= u && delete e.h[u];
|
|
@@ -1616,19 +1616,19 @@ C.g = function(e, t, n, r) {
|
|
|
1616
1616
|
} else
|
|
1617
1617
|
i && d(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1618
1618
|
};
|
|
1619
|
-
|
|
1619
|
+
O.g.ac = function() {
|
|
1620
1620
|
throw Error("Placeholder getter");
|
|
1621
1621
|
};
|
|
1622
|
-
|
|
1622
|
+
O.g.bc = function() {
|
|
1623
1623
|
throw Error("Placeholder setter");
|
|
1624
1624
|
};
|
|
1625
|
-
function
|
|
1625
|
+
function b(e, t, n, r) {
|
|
1626
1626
|
e.g(t.h.prototype, n, e.i(r, !1), v);
|
|
1627
1627
|
}
|
|
1628
1628
|
function Fe(e, t, n, r) {
|
|
1629
1629
|
e.g(t.h.prototype, n, e.ub(r), v);
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1631
|
+
function Ft(e) {
|
|
1632
1632
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1633
1633
|
throw Error("No scope found");
|
|
1634
1634
|
return e;
|
|
@@ -1643,13 +1643,13 @@ function Nt(e, t, n) {
|
|
|
1643
1643
|
}
|
|
1644
1644
|
return i = e.s(null), r = new Pr(n, r, i), n || un(e, r.object), Ge(e, t, r), r;
|
|
1645
1645
|
}
|
|
1646
|
-
function
|
|
1646
|
+
function Lt(e, t, n) {
|
|
1647
1647
|
if (!t)
|
|
1648
1648
|
throw Error("parentScope required");
|
|
1649
1649
|
return e = n || e.s(null), new Pr(t, t.S, e);
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1652
|
-
for (var n =
|
|
1651
|
+
function _t(e, t) {
|
|
1652
|
+
for (var n = Ft(e); n && n !== e.N; ) {
|
|
1653
1653
|
if (t in n.object.h)
|
|
1654
1654
|
return n.object.h[t];
|
|
1655
1655
|
n = n.Va;
|
|
@@ -1659,7 +1659,7 @@ function Lt(e, t) {
|
|
|
1659
1659
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || d(e, e.pb, t + " is not defined");
|
|
1660
1660
|
}
|
|
1661
1661
|
function Mr(e, t, n) {
|
|
1662
|
-
for (var r =
|
|
1662
|
+
for (var r = Ft(e), i = r.S; r && r !== e.N; ) {
|
|
1663
1663
|
if (t in r.object.h) {
|
|
1664
1664
|
try {
|
|
1665
1665
|
r.object.h[t] = n;
|
|
@@ -1720,17 +1720,17 @@ function Ge(e, t, n) {
|
|
|
1720
1720
|
t.jb = r;
|
|
1721
1721
|
}
|
|
1722
1722
|
for (u in r)
|
|
1723
|
-
r[u] === !0 ? e.g(n.object, u, void 0,
|
|
1723
|
+
r[u] === !0 ? e.g(n.object, u, void 0, Sr) : e.g(n.object, u, Dt(e, r[u], n), Sr);
|
|
1724
1724
|
return r;
|
|
1725
1725
|
}
|
|
1726
1726
|
function re(e) {
|
|
1727
1727
|
return e.o[e.o.length - 1].isConstructor;
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1730
|
-
return t[0] ===
|
|
1729
|
+
function Bt(e, t) {
|
|
1730
|
+
return t[0] === Se ? _t(e, t[1]) : e.G(t[0], t[1]);
|
|
1731
1731
|
}
|
|
1732
|
-
function
|
|
1733
|
-
return t[0] ===
|
|
1732
|
+
function Gt(e, t, n) {
|
|
1733
|
+
return t[0] === Se ? Mr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1734
1734
|
}
|
|
1735
1735
|
function d(e, t, n) {
|
|
1736
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;
|
|
@@ -1811,7 +1811,7 @@ function _(e, t) {
|
|
|
1811
1811
|
}
|
|
1812
1812
|
return "???";
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1814
|
+
function kr(e, t, n) {
|
|
1815
1815
|
var r = e.o[e.o.length - 1], i = Array.from(n), s = i.shift();
|
|
1816
1816
|
n = Math.max(Number(i.shift() || 0), 0);
|
|
1817
1817
|
var u = e.ya();
|
|
@@ -1833,7 +1833,7 @@ function Rr(e, t, n) {
|
|
|
1833
1833
|
return r.time - i.time;
|
|
1834
1834
|
});
|
|
1835
1835
|
}
|
|
1836
|
-
function
|
|
1836
|
+
function Or(e, t) {
|
|
1837
1837
|
for (var n = 0; n < e.ca.length; n++)
|
|
1838
1838
|
if (e.ca[n].Db == t) {
|
|
1839
1839
|
e.ca.splice(n, 1);
|
|
@@ -1847,23 +1847,23 @@ function Xe(e, t, n) {
|
|
|
1847
1847
|
var r = e.ya();
|
|
1848
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;
|
|
1849
1849
|
}
|
|
1850
|
-
function
|
|
1850
|
+
function Vt(e, t, n, r) {
|
|
1851
1851
|
if (!e.Ka)
|
|
1852
1852
|
throw Error("Unexpected call to createSetter");
|
|
1853
1853
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1854
1854
|
var i = e.ya();
|
|
1855
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;
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function Ct(e, t) {
|
|
1858
1858
|
return t == null ? e.Na : t instanceof k ? t : (e = e.s(te(e, t)), e.data = t, e);
|
|
1859
1859
|
}
|
|
1860
|
-
|
|
1860
|
+
O.Xb = function() {
|
|
1861
1861
|
return this.N;
|
|
1862
1862
|
};
|
|
1863
|
-
|
|
1863
|
+
O.Yb = function() {
|
|
1864
1864
|
return this.o;
|
|
1865
1865
|
};
|
|
1866
|
-
|
|
1866
|
+
O.ec = function(e) {
|
|
1867
1867
|
this.o = e;
|
|
1868
1868
|
};
|
|
1869
1869
|
function y(e, t) {
|
|
@@ -1875,11 +1875,11 @@ function Pr(e, t, n) {
|
|
|
1875
1875
|
function k(e) {
|
|
1876
1876
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1877
1877
|
}
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1878
|
+
O = k.prototype;
|
|
1879
|
+
O.xa = null;
|
|
1880
|
+
O.H = "Object";
|
|
1881
|
+
O.data = null;
|
|
1882
|
+
O.toString = function() {
|
|
1883
1883
|
if (!Le)
|
|
1884
1884
|
return "[object Interpreter.Object]";
|
|
1885
1885
|
if (!(this instanceof k))
|
|
@@ -1927,7 +1927,7 @@ C.toString = function() {
|
|
|
1927
1927
|
}
|
|
1928
1928
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1929
1929
|
};
|
|
1930
|
-
|
|
1930
|
+
O.valueOf = function() {
|
|
1931
1931
|
return !Le || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1932
1932
|
};
|
|
1933
1933
|
function En(e, t, n, r, i) {
|
|
@@ -1948,7 +1948,7 @@ f.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
1948
1948
|
if (!t.ja)
|
|
1949
1949
|
return t.ja = !0, t = new y(n.left, t.scope), t.sa = !0, t;
|
|
1950
1950
|
if (!t.Da)
|
|
1951
|
-
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 = Bt(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));
|
|
1952
1952
|
if (t.ta)
|
|
1953
1953
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1954
1954
|
else {
|
|
@@ -1993,8 +1993,8 @@ f.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
1993
1993
|
default:
|
|
1994
1994
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
1995
1995
|
}
|
|
1996
|
-
if (n =
|
|
1997
|
-
return t.ta = !0, t.ib = r,
|
|
1996
|
+
if (n = Gt(this, t.Fa, r))
|
|
1997
|
+
return t.ta = !0, t.ib = r, Vt(this, n, t.Fa, r);
|
|
1998
1998
|
e.pop(), e[e.length - 1].value = r;
|
|
1999
1999
|
}
|
|
2000
2000
|
};
|
|
@@ -2094,7 +2094,7 @@ f.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2094
2094
|
t.ia = 2;
|
|
2095
2095
|
var i = t.value;
|
|
2096
2096
|
if (Array.isArray(i)) {
|
|
2097
|
-
if (t.U =
|
|
2097
|
+
if (t.U = Bt(this, i), i[0] === Se ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2098
2098
|
return t.ia = 1, Xe(this, i, t.value);
|
|
2099
2099
|
} else
|
|
2100
2100
|
t.U = i;
|
|
@@ -2122,7 +2122,7 @@ f.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2122
2122
|
this.g(r, i, t.F[i]);
|
|
2123
2123
|
for (this.g(n.object, "arguments", r), i = 0; i < e.oa.length; i++)
|
|
2124
2124
|
this.g(n.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2125
|
-
return n.S || (t.B =
|
|
2125
|
+
return n.S || (t.B = Ct(this, t.B)), this.g(n.object, "this", t.B, Rt), t.value = void 0, new y(e.body, n);
|
|
2126
2126
|
}
|
|
2127
2127
|
if (i.eval)
|
|
2128
2128
|
if (i = t.F[0], typeof i != "string")
|
|
@@ -2136,12 +2136,12 @@ f.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2136
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);
|
|
2137
2137
|
}
|
|
2138
2138
|
else if (i.Ta)
|
|
2139
|
-
t.scope.S || (t.B =
|
|
2139
|
+
t.scope.S || (t.B = Ct(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
2140
2140
|
else if (i.Za) {
|
|
2141
2141
|
var u = this;
|
|
2142
2142
|
r = i.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(h) {
|
|
2143
2143
|
t.value = h, u.za = !1;
|
|
2144
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2144
|
+
}), this.za = !0, t.scope.S || (t.B = Ct(this, t.B)), i.Za.apply(t.B, r);
|
|
2145
2145
|
} else
|
|
2146
2146
|
d(this, this.j, _(this, n.callee) + " is not callable");
|
|
2147
2147
|
}
|
|
@@ -2219,11 +2219,11 @@ f.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2219
2219
|
}
|
|
2220
2220
|
if (!t.wb)
|
|
2221
2221
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2222
|
-
t.pa = [
|
|
2222
|
+
t.pa = [Se, e.fa[0].id.name];
|
|
2223
2223
|
else
|
|
2224
2224
|
return t.pa = null, t = new y(e, t.scope), t.sa = !0, t;
|
|
2225
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r =
|
|
2226
|
-
return
|
|
2225
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = Gt(this, t.pa, e)))
|
|
2226
|
+
return Vt(this, r, t.pa, e);
|
|
2227
2227
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2228
2228
|
return new y(n.body, t.scope);
|
|
2229
2229
|
};
|
|
@@ -2252,13 +2252,13 @@ f.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2252
2252
|
e.pop();
|
|
2253
2253
|
};
|
|
2254
2254
|
f.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2255
|
-
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 = Lt(this, e)), t.value = Dt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Rt);
|
|
2256
2256
|
};
|
|
2257
2257
|
f.prototype.stepIdentifier = function(e, t, n) {
|
|
2258
2258
|
if (e.pop(), t.sa)
|
|
2259
|
-
e[e.length - 1].value = [
|
|
2259
|
+
e[e.length - 1].value = [Se, n.name];
|
|
2260
2260
|
else {
|
|
2261
|
-
if (t =
|
|
2261
|
+
if (t = _t(this, n.name), this.P)
|
|
2262
2262
|
return Xe(this, t, this.Na);
|
|
2263
2263
|
e[e.length - 1].value = t;
|
|
2264
2264
|
}
|
|
@@ -2268,7 +2268,7 @@ f.prototype.stepLabeledStatement = function(e, t, n) {
|
|
|
2268
2268
|
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new y(n.body, t.scope), t.labels = e, t;
|
|
2269
2269
|
};
|
|
2270
2270
|
f.prototype.stepLiteral = function(e, t, n) {
|
|
2271
|
-
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), bt(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2272
2272
|
};
|
|
2273
2273
|
f.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2274
2274
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
@@ -2371,7 +2371,7 @@ f.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2371
2371
|
}
|
|
2372
2372
|
};
|
|
2373
2373
|
f.prototype.stepThisExpression = function(e) {
|
|
2374
|
-
e.pop(), e[e.length - 1].value =
|
|
2374
|
+
e.pop(), e[e.length - 1].value = _t(this, "this");
|
|
2375
2375
|
};
|
|
2376
2376
|
f.prototype.stepThrowStatement = function(e, t, n) {
|
|
2377
2377
|
if (t.ka)
|
|
@@ -2383,7 +2383,7 @@ f.prototype.stepTryStatement = function(e, t, n) {
|
|
|
2383
2383
|
if (!t.Rb)
|
|
2384
2384
|
return t.Rb = !0, new y(n.block, t.scope);
|
|
2385
2385
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2386
|
-
return t.Tb = !0, e =
|
|
2386
|
+
return t.Tb = !0, e = Lt(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new y(n.Ea.body, e);
|
|
2387
2387
|
if (!t.Sb && n.fb)
|
|
2388
2388
|
return t.Sb = !0, new y(n.fb, t.scope);
|
|
2389
2389
|
e.pop(), t.ea && Ve(this, t.ea.type, t.ea.value, t.ea.label);
|
|
@@ -2409,7 +2409,7 @@ f.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2409
2409
|
case "delete":
|
|
2410
2410
|
if (n = !0, Array.isArray(r)) {
|
|
2411
2411
|
var i = r[0];
|
|
2412
|
-
i ===
|
|
2412
|
+
i === Se && (i = t.scope), r = String(r[1]);
|
|
2413
2413
|
try {
|
|
2414
2414
|
delete i.h[r];
|
|
2415
2415
|
} catch {
|
|
@@ -2433,7 +2433,7 @@ f.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2433
2433
|
if (!t.ja)
|
|
2434
2434
|
return t.ja = !0, e = new y(n.K, t.scope), e.sa = !0, e;
|
|
2435
2435
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2436
|
-
var r =
|
|
2436
|
+
var r = Bt(this, t.Ga);
|
|
2437
2437
|
if (t.ma = r, this.P)
|
|
2438
2438
|
return t.Ba = !0, Xe(this, r, t.Ga);
|
|
2439
2439
|
}
|
|
@@ -2446,8 +2446,8 @@ f.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2446
2446
|
i = r - 1;
|
|
2447
2447
|
else
|
|
2448
2448
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2449
|
-
if (n = n.prefix ? i : r, r =
|
|
2450
|
-
return t.ta = !0, t.ib = n,
|
|
2449
|
+
if (n = n.prefix ? i : r, r = Gt(this, t.Ga, i))
|
|
2450
|
+
return t.ta = !0, t.ib = n, Vt(this, r, t.Ga, i);
|
|
2451
2451
|
e.pop(), e[e.length - 1].value = n;
|
|
2452
2452
|
}
|
|
2453
2453
|
};
|
|
@@ -2462,7 +2462,7 @@ f.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2462
2462
|
e.pop();
|
|
2463
2463
|
};
|
|
2464
2464
|
f.prototype.stepWithStatement = function(e, t, n) {
|
|
2465
|
-
return t.Ca ? (e.pop(), e =
|
|
2465
|
+
return t.Ca ? (e.pop(), e = Lt(this, t.scope, t.value), new y(n.body, e)) : (t.Ca = !0, new y(n.object, t.scope));
|
|
2466
2466
|
};
|
|
2467
2467
|
f.prototype.stepWhileStatement = f.prototype.stepDoWhileStatement;
|
|
2468
2468
|
se.Interpreter = f;
|
|
@@ -2481,7 +2481,7 @@ f.prototype.getGlobalScope = f.prototype.Xb;
|
|
|
2481
2481
|
f.prototype.getStateStack = f.prototype.Yb;
|
|
2482
2482
|
f.prototype.setStateStack = f.prototype.ec;
|
|
2483
2483
|
f.VALUE_IN_DESCRIPTOR = Be;
|
|
2484
|
-
const
|
|
2484
|
+
const Sn = (e) => e.split(`
|
|
2485
2485
|
`).map((t) => {
|
|
2486
2486
|
const n = t.trim();
|
|
2487
2487
|
if (t.includes("__awaiter"))
|
|
@@ -2494,7 +2494,7 @@ const jn = (e) => e.split(`
|
|
|
2494
2494
|
${h}
|
|
2495
2495
|
`;
|
|
2496
2496
|
}).filter(Boolean).join(`
|
|
2497
|
-
`), Cr = (e) => e + "JSON",
|
|
2497
|
+
`), Cr = (e) => e + "JSON", jn = ({
|
|
2498
2498
|
builder: e,
|
|
2499
2499
|
context: t,
|
|
2500
2500
|
event: n,
|
|
@@ -2515,31 +2515,44 @@ const jn = (e) => e.split(`
|
|
|
2515
2515
|
const H = Cr(X);
|
|
2516
2516
|
return `var ${X} = ${H} === undefined ? undefined : JSON.parse(${H});`;
|
|
2517
2517
|
}).join(`
|
|
2518
|
-
`),
|
|
2519
|
-
if (
|
|
2520
|
-
|
|
2518
|
+
`), C = Sn(u);
|
|
2519
|
+
if (C === "") {
|
|
2520
|
+
Mt.warn("Skipping evaluation of empty code block.");
|
|
2521
2521
|
return;
|
|
2522
2522
|
}
|
|
2523
2523
|
const A = `
|
|
2524
2524
|
function theFunction() {
|
|
2525
2525
|
${T}
|
|
2526
2526
|
|
|
2527
|
-
${
|
|
2527
|
+
${C}
|
|
2528
2528
|
}
|
|
2529
2529
|
theFunction();
|
|
2530
2530
|
`, We = (X, H) => {
|
|
2531
|
-
const
|
|
2532
|
-
s == null || s(
|
|
2531
|
+
const j = on(h, X, H);
|
|
2532
|
+
s == null || s(j);
|
|
2533
2533
|
}, ae = function(X, H) {
|
|
2534
|
-
m.forEach(([
|
|
2534
|
+
m.forEach(([j, ke]) => {
|
|
2535
2535
|
const He = JSON.stringify(ke);
|
|
2536
|
-
X.setProperty(H, Cr(
|
|
2536
|
+
X.setProperty(H, Cr(j), He);
|
|
2537
2537
|
}), X.setProperty(H, "setRootState", X.createNativeFunction(We));
|
|
2538
2538
|
}, pe = new f(A, ae);
|
|
2539
2539
|
return pe.run(), pe.pseudoToNative(pe.value);
|
|
2540
|
-
}
|
|
2540
|
+
};
|
|
2541
|
+
function kn() {
|
|
2542
|
+
var e;
|
|
2543
|
+
return typeof process != "undefined" && en((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2544
|
+
}
|
|
2545
|
+
const On = ({
|
|
2546
|
+
shouldLogWarning: e
|
|
2547
|
+
}) => {
|
|
2548
|
+
var i;
|
|
2549
|
+
if (!kn())
|
|
2550
|
+
return !1;
|
|
2551
|
+
const t = process.arch === "arm64", n = process.version.startsWith("v20"), r = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
2552
|
+
return t && n && !r ? (e && 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;
|
|
2553
|
+
}, Cn = (e) => At() || On({
|
|
2541
2554
|
shouldLogWarning: !0
|
|
2542
|
-
}) ?
|
|
2555
|
+
}) ? nn(e) : jn(e), An = !0, Q = class Q {
|
|
2543
2556
|
static getCacheKey(t) {
|
|
2544
2557
|
return JSON.stringify({
|
|
2545
2558
|
...t,
|
|
@@ -2557,9 +2570,9 @@ theFunction();
|
|
|
2557
2570
|
});
|
|
2558
2571
|
}
|
|
2559
2572
|
};
|
|
2560
|
-
|
|
2573
|
+
Ot(Q, "cacheLimit", 20), Ot(Q, "cache", /* @__PURE__ */ new Map());
|
|
2561
2574
|
let we = Q;
|
|
2562
|
-
function
|
|
2575
|
+
function Nn({
|
|
2563
2576
|
code: e,
|
|
2564
2577
|
context: t,
|
|
2565
2578
|
localState: n,
|
|
@@ -2572,36 +2585,36 @@ function Tn({
|
|
|
2572
2585
|
if (e === "")
|
|
2573
2586
|
return;
|
|
2574
2587
|
const m = {
|
|
2575
|
-
code:
|
|
2588
|
+
code: rn(e, {
|
|
2576
2589
|
isExpression: u
|
|
2577
2590
|
}),
|
|
2578
|
-
builder:
|
|
2591
|
+
builder: tn(),
|
|
2579
2592
|
context: t,
|
|
2580
2593
|
event: s,
|
|
2581
2594
|
rootSetState: i,
|
|
2582
2595
|
rootState: r,
|
|
2583
2596
|
localState: n
|
|
2584
2597
|
};
|
|
2585
|
-
if (h && !
|
|
2586
|
-
const T = we.getCacheKey(m),
|
|
2587
|
-
if (
|
|
2588
|
-
return
|
|
2598
|
+
if (h && !An) {
|
|
2599
|
+
const T = we.getCacheKey(m), C = we.getCachedValue(T);
|
|
2600
|
+
if (C)
|
|
2601
|
+
return C.value;
|
|
2589
2602
|
}
|
|
2590
2603
|
try {
|
|
2591
|
-
const T =
|
|
2604
|
+
const T = Cn(m);
|
|
2592
2605
|
if (h) {
|
|
2593
|
-
const
|
|
2594
|
-
we.setCachedValue(
|
|
2606
|
+
const C = we.getCacheKey(m);
|
|
2607
|
+
we.setCachedValue(C, T);
|
|
2595
2608
|
}
|
|
2596
2609
|
return T;
|
|
2597
2610
|
} catch (T) {
|
|
2598
|
-
|
|
2611
|
+
Mt.error("Failed code evaluation: " + T.message, {
|
|
2599
2612
|
code: e
|
|
2600
2613
|
});
|
|
2601
2614
|
return;
|
|
2602
2615
|
}
|
|
2603
2616
|
}
|
|
2604
2617
|
export {
|
|
2605
|
-
|
|
2606
|
-
|
|
2618
|
+
Nn as evaluate,
|
|
2619
|
+
on as set
|
|
2607
2620
|
};
|