@builder.io/sdk-react 4.0.6 → 4.0.7
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 +29 -29
- package/lib/browser/blocks-exports.mjs +330 -327
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-5449a575.cjs → server-entry-4c650ff5.cjs} +1 -1
- package/lib/browser/{server-entry-79285592.js → server-entry-e70c12ff.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-87ad8263.js → accordion-742ca147.js} +1 -1
- package/lib/edge/{accordion-f7e030d5.cjs → accordion-c97e6506.cjs} +1 -1
- package/lib/edge/{blocks-a066bb29.js → blocks-2a015bd6.js} +995 -990
- package/lib/edge/blocks-70894a53.cjs +30 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-45c9b994.cjs → button-6a072716.cjs} +1 -1
- package/lib/edge/{button-1d265b68.js → button-deecd9b5.js} +2 -2
- package/lib/edge/{columns-2282e71d.cjs → columns-02352a9f.cjs} +1 -1
- package/lib/edge/{columns-6f323a60.js → columns-0e9b2bf4.js} +3 -3
- package/lib/edge/{content-variants-ea56e041.cjs → content-variants-41781d1f.cjs} +1 -1
- package/lib/edge/{content-variants-ddc4462d.js → content-variants-6948115a.js} +13 -16
- package/lib/edge/{custom-code-27f3a9d0.js → custom-code-73f76f76.js} +1 -1
- package/lib/edge/{custom-code-046c9e54.cjs → custom-code-77f98605.cjs} +1 -1
- package/lib/edge/{embed-962809ed.js → embed-26470ea1.js} +1 -1
- package/lib/edge/{embed-a90e1ebf.cjs → embed-9aaf87f9.cjs} +1 -1
- package/lib/edge/{form-2112cb80.cjs → form-0213200e.cjs} +1 -1
- package/lib/edge/{form-4fc6f70a.js → form-652ef8a9.js} +3 -3
- package/lib/edge/{get-class-prop-name-03e66a61.js → get-class-prop-name-1a003fac.js} +1 -1
- package/lib/edge/{get-class-prop-name-77a0b81b.cjs → get-class-prop-name-8647a440.cjs} +1 -1
- package/lib/edge/{image-1729f079.js → image-acc1c00c.js} +29 -27
- package/lib/edge/image-e38bd9e0.cjs +17 -0
- package/lib/edge/{img-95c678b5.js → img-2d35513d.js} +1 -1
- package/lib/edge/{img-5850d9d8.cjs → img-f0b9e982.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-7d147e6f.js → input-cdd96bc7.js} +1 -1
- package/lib/edge/{input-3937aa23.cjs → input-e61cf32f.cjs} +1 -1
- package/lib/edge/{personalization-container-aff166ba.cjs → personalization-container-4f73fbdf.cjs} +1 -1
- package/lib/edge/{personalization-container-d687ea13.js → personalization-container-e1f03976.js} +4 -4
- package/lib/edge/{select-bfca657e.js → select-de96bdc0.js} +1 -1
- package/lib/edge/{select-5bdfe568.cjs → select-f1165866.cjs} +1 -1
- package/lib/edge/{server-entry-e8854034.cjs → server-entry-10ca8502.cjs} +1 -1
- package/lib/edge/{server-entry-1d157602.js → server-entry-637ed5ff.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-a4c97369.cjs → slot-3ecf31d9.cjs} +1 -1
- package/lib/edge/{slot-acb2aa8e.js → slot-72846242.js} +3 -3
- package/lib/edge/{symbol-33b65252.cjs → symbol-49ed2192.cjs} +1 -1
- package/lib/edge/{symbol-cc7e6b66.js → symbol-61a3651b.js} +2 -2
- package/lib/edge/{tabs-900d88a9.cjs → tabs-788974d9.cjs} +1 -1
- package/lib/edge/{tabs-9cbb5615.js → tabs-ea0258b8.js} +3 -3
- package/lib/node/blocks-exports.cjs +29 -29
- package/lib/node/blocks-exports.mjs +323 -320
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/{server-entry-ee54171f.js → server-entry-7167da7c.js} +1 -1
- package/lib/node/{server-entry-0dcb0303.cjs → server-entry-e76904a8.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-b773f3ba.js → setIvm-72c91afa.js} +1 -1
- package/lib/node/{setIvm-d479356f.cjs → setIvm-e89d1a08.cjs} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-bdb5bf58.js → should-force-browser-runtime-in-node-09a401d5.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-364ee049.cjs → should-force-browser-runtime-in-node-b3e23348.cjs} +1 -1
- package/package.json +1 -1
- package/types/components/block/block.helpers.d.ts +1 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/blocks-31199191.cjs +0 -30
- package/lib/edge/image-a6fbd15b.cjs +0 -17
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
import { jsx as T, Fragment as J, jsxs as Ut } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as
|
|
3
|
-
import { BuilderContext as
|
|
4
|
-
import { isEditing as Lt, isBrowser as Ft, getUserAttributes as
|
|
5
|
-
import { getClassPropName as
|
|
6
|
-
import { DynamicRenderer as
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
return
|
|
10
|
-
},
|
|
2
|
+
import { createContext as Cn, useEffect as ye, useState as He, useRef as On, useContext as Mr } from "react";
|
|
3
|
+
import { BuilderContext as Xr } from "./blocks-exports.mjs";
|
|
4
|
+
import { isEditing as Lt, isBrowser as Ft, getUserAttributes as jn, checkIsDefined as it, logger as Hr, TARGET as at, isPreviewing as An } from "./server-entry-637ed5ff.js";
|
|
5
|
+
import { getClassPropName as In } from "./get-class-prop-name-1a003fac.js";
|
|
6
|
+
import { DynamicRenderer as Tn } from "./dynamic-renderer-8b343325.js";
|
|
7
|
+
const Pn = Cn({ registeredComponents: {} }), bn = (e, t, r) => {
|
|
8
|
+
const n = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, s) => o != null ? o[s] : o, e);
|
|
9
|
+
return n === void 0 || n === e ? r : n;
|
|
10
|
+
}, Jr = ({
|
|
11
11
|
builder: e,
|
|
12
12
|
context: t,
|
|
13
|
-
event:
|
|
14
|
-
state:
|
|
13
|
+
event: r,
|
|
14
|
+
state: n
|
|
15
15
|
}) => Object.entries({
|
|
16
|
-
state:
|
|
16
|
+
state: n,
|
|
17
17
|
Builder: e,
|
|
18
18
|
// legacy
|
|
19
19
|
builder: e,
|
|
20
20
|
context: t,
|
|
21
|
-
event:
|
|
22
|
-
}),
|
|
21
|
+
event: r
|
|
22
|
+
}), Nn = () => ({
|
|
23
23
|
isEditing: Lt(),
|
|
24
24
|
isBrowser: Ft(),
|
|
25
25
|
isServer: !Ft(),
|
|
26
|
-
getUserAttributes: () =>
|
|
27
|
-
}),
|
|
26
|
+
getUserAttributes: () => jn()
|
|
27
|
+
}), Rn = (e, {
|
|
28
28
|
isExpression: t = !0
|
|
29
29
|
}) => /* 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;
|
|
30
30
|
function Xt({
|
|
31
31
|
rootState: e,
|
|
32
32
|
localState: t,
|
|
33
|
-
rootSetState:
|
|
33
|
+
rootSetState: r
|
|
34
34
|
}) {
|
|
35
35
|
return new Proxy(e, {
|
|
36
|
-
get: (
|
|
36
|
+
get: (n, o) => {
|
|
37
37
|
if (t && o in t)
|
|
38
38
|
return t[o];
|
|
39
|
-
const s =
|
|
39
|
+
const s = n[o];
|
|
40
40
|
return typeof s == "object" && s !== null ? Xt({
|
|
41
41
|
rootState: s,
|
|
42
42
|
localState: void 0,
|
|
43
|
-
rootSetState:
|
|
44
|
-
|
|
43
|
+
rootSetState: r ? (a) => {
|
|
44
|
+
n[o] = a, r(n);
|
|
45
45
|
} : void 0
|
|
46
46
|
}) : s;
|
|
47
47
|
},
|
|
48
|
-
set: (
|
|
48
|
+
set: (n, o, s) => {
|
|
49
49
|
if (t && o in t)
|
|
50
50
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
51
|
-
return
|
|
51
|
+
return n[o] = s, r == null || r(n), !0;
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
const
|
|
55
|
+
const Bn = ({
|
|
56
56
|
code: e,
|
|
57
57
|
builder: t,
|
|
58
|
-
context:
|
|
59
|
-
event:
|
|
58
|
+
context: r,
|
|
59
|
+
event: n,
|
|
60
60
|
localState: o,
|
|
61
61
|
rootSetState: s,
|
|
62
62
|
rootState: a
|
|
63
63
|
}) => {
|
|
64
|
-
const f =
|
|
64
|
+
const f = Jr({
|
|
65
65
|
builder: t,
|
|
66
|
-
context:
|
|
67
|
-
event:
|
|
66
|
+
context: r,
|
|
67
|
+
event: n,
|
|
68
68
|
state: Xt({
|
|
69
69
|
rootState: a,
|
|
70
70
|
localState: o,
|
|
@@ -73,14 +73,14 @@ const Rn = ({
|
|
|
73
73
|
});
|
|
74
74
|
return new Function(...f.map(([d]) => d), e)(...f.map(([, d]) => d));
|
|
75
75
|
};
|
|
76
|
-
var b,
|
|
76
|
+
var b, Mn = function(e) {
|
|
77
77
|
function t(i) {
|
|
78
|
-
return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i &&
|
|
78
|
+
return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && En.test(String.fromCharCode(i));
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function r(i) {
|
|
81
81
|
return 65 > i ? i === 36 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Br.test(String.fromCharCode(i));
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function n(i, l) {
|
|
84
84
|
for (var u = g, p = 1, E = 0; ; ) {
|
|
85
85
|
ot.lastIndex = E;
|
|
86
86
|
var L = ot.exec(u);
|
|
@@ -106,15 +106,15 @@ var b, Bn = function(e) {
|
|
|
106
106
|
this.line = de, this.ab = c - re;
|
|
107
107
|
}
|
|
108
108
|
function a(i, l) {
|
|
109
|
-
|
|
109
|
+
ve = c, C.C && (Et = new s()), S = i, d(), Y = l, Ne = i.m;
|
|
110
110
|
}
|
|
111
111
|
function f() {
|
|
112
|
-
for (var i = c, l = C.va && C.C && new s(), u = g.charCodeAt(c += 2); c <
|
|
112
|
+
for (var i = c, l = C.va && C.C && new s(), u = g.charCodeAt(c += 2); c < me && u !== 10 && u !== 13 && u !== 8232 && u !== 8233; )
|
|
113
113
|
++c, u = g.charCodeAt(c);
|
|
114
114
|
C.va && C.va(!1, g.slice(i + 2, c), i, c, l, C.C && new s());
|
|
115
115
|
}
|
|
116
116
|
function d() {
|
|
117
|
-
for (; c <
|
|
117
|
+
for (; c < me; ) {
|
|
118
118
|
var i = g.charCodeAt(c);
|
|
119
119
|
if (i === 32)
|
|
120
120
|
++c;
|
|
@@ -128,7 +128,7 @@ var b, Bn = function(e) {
|
|
|
128
128
|
if (i = g.charCodeAt(c + 1), i === 42) {
|
|
129
129
|
i = void 0;
|
|
130
130
|
var l = C.va && C.C && new s(), u = c, p = g.indexOf("*/", c += 2);
|
|
131
|
-
if (p === -1 &&
|
|
131
|
+
if (p === -1 && n(c - 2, "Unterminated comment"), c = p + 2, C.C)
|
|
132
132
|
for (ot.lastIndex = u; (i = ot.exec(g)) && i.index < c; )
|
|
133
133
|
++de, re = i.index + i[0].length;
|
|
134
134
|
C.va && C.va(!0, g.slice(u + 2, p), u, c, l, C.C && new s());
|
|
@@ -138,7 +138,7 @@ var b, Bn = function(e) {
|
|
|
138
138
|
break;
|
|
139
139
|
else if (i === 160)
|
|
140
140
|
++c;
|
|
141
|
-
else if (5760 <= i &&
|
|
141
|
+
else if (5760 <= i && Sn.test(String.fromCharCode(i)))
|
|
142
142
|
++c;
|
|
143
143
|
else
|
|
144
144
|
break;
|
|
@@ -164,14 +164,14 @@ var b, Bn = function(e) {
|
|
|
164
164
|
case 123:
|
|
165
165
|
return ++c, a(Me);
|
|
166
166
|
case 125:
|
|
167
|
-
return ++c, a(
|
|
167
|
+
return ++c, a(xe);
|
|
168
168
|
case 58:
|
|
169
169
|
return ++c, a(De);
|
|
170
170
|
case 63:
|
|
171
171
|
return ++c, a(Ar);
|
|
172
172
|
case 48:
|
|
173
173
|
if (i = g.charCodeAt(c + 1), i === 120 || i === 88) {
|
|
174
|
-
c += 2, i = V(16), i === null &&
|
|
174
|
+
c += 2, i = V(16), i === null && n(U + 2, "Expected hexadecimal number"), r(g.charCodeAt(c)) && n(c, "Identifier directly after number"), a(Be, i);
|
|
175
175
|
return;
|
|
176
176
|
}
|
|
177
177
|
case 49:
|
|
@@ -188,7 +188,7 @@ var b, Bn = function(e) {
|
|
|
188
188
|
case 39:
|
|
189
189
|
c++;
|
|
190
190
|
for (var l = ""; ; ) {
|
|
191
|
-
c >=
|
|
191
|
+
c >= me && n(U, "Unterminated string constant");
|
|
192
192
|
var u = g.charCodeAt(c);
|
|
193
193
|
if (u === i) {
|
|
194
194
|
++c, a(et, l);
|
|
@@ -200,7 +200,7 @@ var b, Bn = function(e) {
|
|
|
200
200
|
for (p && (p = p[0]); p && 255 < parseInt(p, 8); )
|
|
201
201
|
p = p.slice(0, -1);
|
|
202
202
|
if (p === "0" && (p = null), ++c, p)
|
|
203
|
-
|
|
203
|
+
z && n(c - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(p, 8)), c += p.length - 1;
|
|
204
204
|
else
|
|
205
205
|
switch (u) {
|
|
206
206
|
case 110:
|
|
@@ -243,7 +243,7 @@ var b, Bn = function(e) {
|
|
|
243
243
|
l += String.fromCharCode(u);
|
|
244
244
|
}
|
|
245
245
|
} else
|
|
246
|
-
u !== 13 && u !== 10 && u !== 8232 && u !== 8233 ||
|
|
246
|
+
u !== 13 && u !== 10 && u !== 8232 && u !== 8233 || n(U, "Unterminated string constant"), l += String.fromCharCode(u), ++c;
|
|
247
247
|
}
|
|
248
248
|
return;
|
|
249
249
|
case 47:
|
|
@@ -251,26 +251,26 @@ var b, Bn = function(e) {
|
|
|
251
251
|
return;
|
|
252
252
|
case 37:
|
|
253
253
|
case 42:
|
|
254
|
-
g.charCodeAt(c + 1) === 61 ? A(ge, 2) : A(
|
|
254
|
+
g.charCodeAt(c + 1) === 61 ? A(ge, 2) : A(vn, 1);
|
|
255
255
|
return;
|
|
256
256
|
case 124:
|
|
257
257
|
case 38:
|
|
258
|
-
l = g.charCodeAt(c + 1), l === i ? A(i === 124 ? br : Nr, 2) : l === 61 ? A(ge, 2) : A(i === 124 ?
|
|
258
|
+
l = g.charCodeAt(c + 1), l === i ? A(i === 124 ? br : Nr, 2) : l === 61 ? A(ge, 2) : A(i === 124 ? fn : hn, 1);
|
|
259
259
|
return;
|
|
260
260
|
case 94:
|
|
261
|
-
g.charCodeAt(c + 1) === 61 ? A(ge, 2) : A(
|
|
261
|
+
g.charCodeAt(c + 1) === 61 ? A(ge, 2) : A(pn, 1);
|
|
262
262
|
return;
|
|
263
263
|
case 43:
|
|
264
264
|
case 45:
|
|
265
|
-
l = g.charCodeAt(c + 1), l === i ? l === 45 && g.charCodeAt(c + 2) === 62 && nt.test(g.slice(ce, c)) ? (c += 3, f(), d(), I()) : A(
|
|
265
|
+
l = g.charCodeAt(c + 1), l === i ? l === 45 && g.charCodeAt(c + 2) === 62 && nt.test(g.slice(ce, c)) ? (c += 3, f(), d(), I()) : A(cn, 2) : l === 61 ? A(ge, 2) : A(mn, 1);
|
|
266
266
|
return;
|
|
267
267
|
case 60:
|
|
268
268
|
case 62:
|
|
269
|
-
l = g.charCodeAt(c + 1), u = 1, l === i ? (u = i === 62 && g.charCodeAt(c + 2) === 62 ? 3 : 2, g.charCodeAt(c + u) === 61 ? A(ge, u + 1) : A(
|
|
269
|
+
l = g.charCodeAt(c + 1), u = 1, l === i ? (u = i === 62 && g.charCodeAt(c + 2) === 62 ? 3 : 2, g.charCodeAt(c + u) === 61 ? A(ge, u + 1) : A(yn, u)) : l === 33 && i === 60 && g.charCodeAt(c + 2) === 45 && g.charCodeAt(c + 3) === 45 ? (c += 4, f(), d(), I()) : (l === 61 && (u = g.charCodeAt(c + 2) === 61 ? 3 : 2), A(gn, u));
|
|
270
270
|
return;
|
|
271
271
|
case 61:
|
|
272
272
|
case 33:
|
|
273
|
-
g.charCodeAt(c + 1) === 61 ? A(
|
|
273
|
+
g.charCodeAt(c + 1) === 61 ? A(dn, g.charCodeAt(c + 2) === 61 ? 3 : 2) : A(i === 61 ? Tr : Pr, 1);
|
|
274
274
|
return;
|
|
275
275
|
case 126:
|
|
276
276
|
return A(Pr, 1);
|
|
@@ -280,14 +280,14 @@ var b, Bn = function(e) {
|
|
|
280
280
|
function I(i) {
|
|
281
281
|
if (i ? c = U + 1 : U = c, C.C && (St = new s()), i)
|
|
282
282
|
return W();
|
|
283
|
-
if (c >=
|
|
283
|
+
if (c >= me)
|
|
284
284
|
return a(Ot);
|
|
285
|
-
if (i = g.charCodeAt(c),
|
|
285
|
+
if (i = g.charCodeAt(c), r(i) || i === 92)
|
|
286
286
|
return _();
|
|
287
287
|
if (v(i) === !1) {
|
|
288
288
|
if (i = String.fromCharCode(i), i === "\\" || Br.test(i))
|
|
289
289
|
return _();
|
|
290
|
-
|
|
290
|
+
n(c, "Unexpected character '" + i + "'");
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
function A(i, l) {
|
|
@@ -296,9 +296,9 @@ var b, Bn = function(e) {
|
|
|
296
296
|
}
|
|
297
297
|
function W() {
|
|
298
298
|
for (var i, l, u = c; ; ) {
|
|
299
|
-
c >=
|
|
299
|
+
c >= me && n(u, "Unterminated regexp");
|
|
300
300
|
var p = g.charAt(c);
|
|
301
|
-
if (nt.test(p) &&
|
|
301
|
+
if (nt.test(p) && n(u, "Unterminated regexp"), i)
|
|
302
302
|
i = !1;
|
|
303
303
|
else {
|
|
304
304
|
if (p === "[")
|
|
@@ -311,11 +311,11 @@ var b, Bn = function(e) {
|
|
|
311
311
|
}
|
|
312
312
|
++c;
|
|
313
313
|
}
|
|
314
|
-
i = g.slice(u, c), ++c, (l = R()) && !/^[gmi]*$/.test(l) &&
|
|
314
|
+
i = g.slice(u, c), ++c, (l = R()) && !/^[gmi]*$/.test(l) && n(u, "Invalid regexp flag");
|
|
315
315
|
try {
|
|
316
316
|
var E = new RegExp(i, l);
|
|
317
317
|
} catch (L) {
|
|
318
|
-
throw L instanceof SyntaxError &&
|
|
318
|
+
throw L instanceof SyntaxError && n(u, L.message), L;
|
|
319
319
|
}
|
|
320
320
|
a(ar, E);
|
|
321
321
|
}
|
|
@@ -330,38 +330,38 @@ var b, Bn = function(e) {
|
|
|
330
330
|
}
|
|
331
331
|
function P(i) {
|
|
332
332
|
var l = c, u = !1, p = g.charCodeAt(c) === 48;
|
|
333
|
-
i || V(10) !== null ||
|
|
333
|
+
i || V(10) !== null || n(l, "Invalid number"), g.charCodeAt(c) === 46 && (++c, V(10), u = !0), i = g.charCodeAt(c), (i === 69 || i === 101) && (i = g.charCodeAt(++c), i !== 43 && i !== 45 || ++c, V(10) === null && n(l, "Invalid number"), u = !0), r(g.charCodeAt(c)) && n(c, "Identifier directly after number"), i = g.slice(l, c);
|
|
334
334
|
var E;
|
|
335
|
-
u ? E = parseFloat(i) : p && i.length !== 1 ? /[89]/.test(i) ||
|
|
335
|
+
u ? E = parseFloat(i) : p && i.length !== 1 ? /[89]/.test(i) || z ? n(l, "Invalid number") : E = parseInt(i, 8) : E = parseInt(i, 10), a(Be, E);
|
|
336
336
|
}
|
|
337
337
|
function O(i) {
|
|
338
|
-
return i = V(16, i), i === null &&
|
|
338
|
+
return i = V(16, i), i === null && n(U, "Bad character escape sequence"), i;
|
|
339
339
|
}
|
|
340
340
|
function R() {
|
|
341
|
-
|
|
341
|
+
Se = !1;
|
|
342
342
|
for (var i, l = !0, u = c; ; ) {
|
|
343
343
|
var p = g.charCodeAt(c);
|
|
344
344
|
if (t(p))
|
|
345
|
-
|
|
345
|
+
Se && (i += g.charAt(c)), ++c;
|
|
346
346
|
else if (p === 92) {
|
|
347
|
-
|
|
347
|
+
Se || (i = g.slice(u, c)), Se = !0, g.charCodeAt(++c) !== 117 && n(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, p = O(4);
|
|
348
348
|
var E = String.fromCharCode(p);
|
|
349
|
-
E ||
|
|
349
|
+
E || n(c - 1, "Invalid Unicode escape"), (l ? r(p) : t(p)) || n(c - 4, "Invalid Unicode escape"), i += E;
|
|
350
350
|
} else
|
|
351
351
|
break;
|
|
352
352
|
l = !1;
|
|
353
353
|
}
|
|
354
|
-
return
|
|
354
|
+
return Se ? i : g.slice(u, c);
|
|
355
355
|
}
|
|
356
356
|
function _() {
|
|
357
|
-
var i = R(), l =
|
|
358
|
-
!
|
|
357
|
+
var i = R(), l = we;
|
|
358
|
+
!Se && xn(i) && (l = un[i]), a(l, i);
|
|
359
359
|
}
|
|
360
360
|
function k() {
|
|
361
|
-
kt = U, ce =
|
|
361
|
+
kt = U, ce = ve, Ct = Et, I();
|
|
362
362
|
}
|
|
363
363
|
function ue(i) {
|
|
364
|
-
if (
|
|
364
|
+
if (z = i, c = U, C.C)
|
|
365
365
|
for (; c < re; )
|
|
366
366
|
re = g.lastIndexOf(`
|
|
367
367
|
`, re - 2) + 1, --de;
|
|
@@ -391,7 +391,7 @@ var b, Bn = function(e) {
|
|
|
391
391
|
return S === i ? (k(), !0) : !1;
|
|
392
392
|
}
|
|
393
393
|
function Ze() {
|
|
394
|
-
return !C.fc && (S === Ot || S ===
|
|
394
|
+
return !C.fc && (S === Ot || S === xe || nt.test(g.slice(ce, U)));
|
|
395
395
|
}
|
|
396
396
|
function he() {
|
|
397
397
|
N(oe) || Ze() || ee();
|
|
@@ -400,10 +400,10 @@ var b, Bn = function(e) {
|
|
|
400
400
|
S === i ? k() : ee();
|
|
401
401
|
}
|
|
402
402
|
function ee() {
|
|
403
|
-
|
|
403
|
+
n(U, "Unexpected token");
|
|
404
404
|
}
|
|
405
405
|
function Qe(i) {
|
|
406
|
-
i.type !== "Identifier" && i.type !== "MemberExpression" &&
|
|
406
|
+
i.type !== "Identifier" && i.type !== "MemberExpression" && n(i.start, "Assigning to rvalue"), z && i.type === "Identifier" && rt(i.name) && n(i.start, "Assigning to " + i.name + " in strict mode");
|
|
407
407
|
}
|
|
408
408
|
function Q() {
|
|
409
409
|
(S === Ir || S === ge && Y === "/=") && I(!0);
|
|
@@ -413,13 +413,13 @@ var b, Bn = function(e) {
|
|
|
413
413
|
case ur:
|
|
414
414
|
k();
|
|
415
415
|
var u = i === jt;
|
|
416
|
-
N(oe) || Ze() ? l.label = null : S !==
|
|
416
|
+
N(oe) || Ze() ? l.label = null : S !== we ? ee() : (l.label = te(), he());
|
|
417
417
|
for (var p = 0; p < D.length; ++p) {
|
|
418
418
|
var E = D[p];
|
|
419
419
|
if ((l.label === null || E.name === l.label.name) && (E.kind !== null && (u || E.kind === "loop") || l.label && u))
|
|
420
420
|
break;
|
|
421
421
|
}
|
|
422
|
-
return p === D.length &&
|
|
422
|
+
return p === D.length && n(l.start, "Unsyntactic " + i.l), x(l, u ? "BreakStatement" : "ContinueStatement");
|
|
423
423
|
case cr:
|
|
424
424
|
return k(), he(), x(l, "DebuggerStatement");
|
|
425
425
|
case pr:
|
|
@@ -431,29 +431,29 @@ var b, Bn = function(e) {
|
|
|
431
431
|
case yr:
|
|
432
432
|
return k(), l.test = Te(), l.da = Q(), l.alternate = N(hr) ? Q() : null, x(l, "IfStatement");
|
|
433
433
|
case mr:
|
|
434
|
-
return Re || C.Ib ||
|
|
434
|
+
return Re || C.Ib || n(U, "'return' outside of function"), k(), N(oe) || Ze() ? l.K = null : (l.K = $(), he()), x(l, "ReturnStatement");
|
|
435
435
|
case Tt:
|
|
436
|
-
for (k(), l.Qb = Te(), l.tb = [], M(Me), D.push(
|
|
437
|
-
S === At || S === fr ? (i = S === At, p && x(p, "SwitchCase"), l.tb.push(p = B()), p.da = [], k(), i ? p.test = $() : (u &&
|
|
436
|
+
for (k(), l.Qb = Te(), l.tb = [], M(Me), D.push(kn); S !== xe; )
|
|
437
|
+
S === At || S === fr ? (i = S === At, p && x(p, "SwitchCase"), l.tb.push(p = B()), p.da = [], k(), i ? p.test = $() : (u && n(kt, "Multiple default clauses"), u = !0, p.test = null), M(De)) : (p || ee(), p.da.push(Q()));
|
|
438
438
|
return p && x(p, "SwitchCase"), k(), D.pop(), x(l, "SwitchStatement");
|
|
439
439
|
case vr:
|
|
440
|
-
return k(), nt.test(g.slice(ce, U)) &&
|
|
440
|
+
return k(), nt.test(g.slice(ce, U)) && n(ce, "Illegal newline after throw"), l.K = $(), he(), x(l, "ThrowStatement");
|
|
441
441
|
case wr:
|
|
442
|
-
return k(), l.block = Pe(), l.Ea = null, S === lr && (i = B(), k(), M(ne), i.Ua = te(),
|
|
442
|
+
return k(), l.block = Pe(), l.Ea = null, S === lr && (i = B(), k(), M(ne), i.Ua = te(), z && rt(i.Ua.name) && n(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), M(q), i.body = Pe(), l.Ea = x(i, "CatchClause")), l.fb = N(dr) ? Pe() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), x(l, "TryStatement");
|
|
443
443
|
case Pt:
|
|
444
444
|
return k(), ir(l), he(), x(l, "VariableDeclaration");
|
|
445
445
|
case bt:
|
|
446
446
|
return k(), l.test = Te(), D.push(Bt), l.body = Q(), D.pop(), x(l, "WhileStatement");
|
|
447
447
|
case xr:
|
|
448
|
-
return
|
|
448
|
+
return z && n(U, "'with' in strict mode"), k(), l.object = Te(), l.body = Q(), x(l, "WithStatement");
|
|
449
449
|
case Me:
|
|
450
450
|
return Pe();
|
|
451
451
|
case oe:
|
|
452
452
|
return k(), x(l, "EmptyStatement");
|
|
453
453
|
default:
|
|
454
|
-
if (u = Y, E = $(), i ===
|
|
454
|
+
if (u = Y, E = $(), i === we && E.type === "Identifier" && N(De)) {
|
|
455
455
|
for (p = 0; p < D.length; ++p)
|
|
456
|
-
D[p].name === u &&
|
|
456
|
+
D[p].name === u && n(E.start, "Label '" + u + "' is already declared");
|
|
457
457
|
return D.push({
|
|
458
458
|
name: u,
|
|
459
459
|
kind: S.W ? "loop" : S === Tt ? "switch" : null
|
|
@@ -469,7 +469,7 @@ var b, Bn = function(e) {
|
|
|
469
469
|
}
|
|
470
470
|
function Pe(i) {
|
|
471
471
|
var l = B(), u = !0, p = !1;
|
|
472
|
-
for (l.body = [], M(Me); !N(
|
|
472
|
+
for (l.body = [], M(Me); !N(xe); ) {
|
|
473
473
|
var E = Q();
|
|
474
474
|
if (l.body.push(E), u && i && ht(E)) {
|
|
475
475
|
var L = p;
|
|
@@ -488,7 +488,7 @@ var b, Bn = function(e) {
|
|
|
488
488
|
function ir(i, l) {
|
|
489
489
|
for (i.fa = [], i.kind = "var"; ; ) {
|
|
490
490
|
var u = B();
|
|
491
|
-
if (u.id = te(),
|
|
491
|
+
if (u.id = te(), z && rt(u.id.name) && n(u.id.start, "Binding " + u.id.name + " in strict mode"), u.ua = N(Tr) ? $(!0, l) : null, i.fa.push(x(u, "VariableDeclarator")), !N(fe))
|
|
492
492
|
break;
|
|
493
493
|
}
|
|
494
494
|
}
|
|
@@ -520,7 +520,7 @@ var b, Bn = function(e) {
|
|
|
520
520
|
function mt() {
|
|
521
521
|
if (S.prefix) {
|
|
522
522
|
var i = B(), l = S.$b;
|
|
523
|
-
return i.operator = Y, Ne = i.prefix = !0, k(), i.K = mt(), l ? Qe(i.K) :
|
|
523
|
+
return i.operator = Y, Ne = i.prefix = !0, k(), i.K = mt(), l ? Qe(i.K) : z && i.operator === "delete" && i.K.type === "Identifier" && n(i.start, "Deleting local variable in strict mode"), x(i, l ? "UpdateExpression" : "UnaryExpression");
|
|
524
524
|
}
|
|
525
525
|
for (l = be(qe()); S.cc && !Ze(); )
|
|
526
526
|
i = Z(l), i.operator = Y, i.prefix = !1, i.K = l, Qe(l), k(), l = x(i, "UpdateExpression");
|
|
@@ -538,12 +538,12 @@ var b, Bn = function(e) {
|
|
|
538
538
|
case Er:
|
|
539
539
|
var i = B();
|
|
540
540
|
return k(), x(i, "ThisExpression");
|
|
541
|
-
case
|
|
541
|
+
case we:
|
|
542
542
|
return te();
|
|
543
543
|
case Be:
|
|
544
544
|
case et:
|
|
545
545
|
case ar:
|
|
546
|
-
return i = B(), i.value = Y, i.raw = g.slice(U,
|
|
546
|
+
return i = B(), i.value = Y, i.raw = g.slice(U, ve), k(), x(i, "Literal");
|
|
547
547
|
case kr:
|
|
548
548
|
case Cr:
|
|
549
549
|
case Or:
|
|
@@ -553,14 +553,14 @@ var b, Bn = function(e) {
|
|
|
553
553
|
var l = U;
|
|
554
554
|
k();
|
|
555
555
|
var u = $();
|
|
556
|
-
return u.start = l, u.end =
|
|
556
|
+
return u.start = l, u.end = ve, C.C && (u.X.start = i, u.X.end = Et), C.Xa && (u.j = [l, ve]), M(q), u;
|
|
557
557
|
case Nt:
|
|
558
558
|
return i = B(), k(), i.elements = wt(Rt, !0, !0), x(i, "ArrayExpression");
|
|
559
559
|
case Me:
|
|
560
|
-
for (i = B(), l = !0, u = !1, i.h = [], k(); !N(
|
|
560
|
+
for (i = B(), l = !0, u = !1, i.h = [], k(); !N(xe); ) {
|
|
561
561
|
if (l)
|
|
562
562
|
l = !1;
|
|
563
|
-
else if (M(fe), C.sb && N(
|
|
563
|
+
else if (M(fe), C.sb && N(xe))
|
|
564
564
|
break;
|
|
565
565
|
var p = {
|
|
566
566
|
key: S === Be || S === et ? qe() : te(!0)
|
|
@@ -570,12 +570,12 @@ var b, Bn = function(e) {
|
|
|
570
570
|
var L = p.kind = "init";
|
|
571
571
|
} else
|
|
572
572
|
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ee() : (E = u = !0, L = p.kind = p.key.name, p.key = S === Be || S === et ? qe() : te(!0), S !== ne && ee(), p.value = vt(B(), !1));
|
|
573
|
-
if (p.key.type === "Identifier" && (
|
|
573
|
+
if (p.key.type === "Identifier" && (z || u))
|
|
574
574
|
for (var X = 0; X < i.h.length; ++X) {
|
|
575
|
-
var
|
|
576
|
-
if (
|
|
577
|
-
var Mt = L ===
|
|
578
|
-
Mt && !
|
|
575
|
+
var Ee = i.h[X];
|
|
576
|
+
if (Ee.key.name === p.key.name) {
|
|
577
|
+
var Mt = L === Ee.kind || E && Ee.kind === "init" || L === "init" && (Ee.kind === "get" || Ee.kind === "set");
|
|
578
|
+
Mt && !z && L === "init" && Ee.kind === "init" && (Mt = !1), Mt && n(p.key.start, "Redefinition of property");
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
i.h.push(p);
|
|
@@ -584,22 +584,22 @@ var b, Bn = function(e) {
|
|
|
584
584
|
case It:
|
|
585
585
|
return i = B(), k(), vt(i, !1);
|
|
586
586
|
case Sr:
|
|
587
|
-
return i = B(), k(), i.callee = be(qe(), !0), i.arguments = N(ne) ? wt(q, !1) :
|
|
587
|
+
return i = B(), k(), i.callee = be(qe(), !0), i.arguments = N(ne) ? wt(q, !1) : ln, x(i, "NewExpression");
|
|
588
588
|
}
|
|
589
589
|
ee();
|
|
590
590
|
}
|
|
591
591
|
function vt(i, l) {
|
|
592
|
-
S ===
|
|
592
|
+
S === we ? i.id = te() : l ? ee() : i.id = null, i.oa = [];
|
|
593
593
|
var u = !0;
|
|
594
594
|
for (M(ne); !N(q); )
|
|
595
595
|
u ? u = !1 : M(fe), i.oa.push(te());
|
|
596
596
|
u = Re;
|
|
597
597
|
var p = D;
|
|
598
|
-
if (Re = !0, D = [], i.body = Pe(!0), Re = u, D = p,
|
|
598
|
+
if (Re = !0, D = [], i.body = Pe(!0), Re = u, D = p, z || i.body.body.length && ht(i.body.body[0])) {
|
|
599
599
|
for (u = i.id ? -1 : 0; u < i.oa.length; ++u)
|
|
600
|
-
if (p = 0 > u ? i.id : i.oa[u], (Rr(p.name) || rt(p.name)) &&
|
|
600
|
+
if (p = 0 > u ? i.id : i.oa[u], (Rr(p.name) || rt(p.name)) && n(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= u)
|
|
601
601
|
for (var E = 0; E < u; ++E)
|
|
602
|
-
p.name === i.oa[E].name &&
|
|
602
|
+
p.name === i.oa[E].name && n(p.start, "Argument name clash in strict mode");
|
|
603
603
|
}
|
|
604
604
|
return x(i, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
605
605
|
}
|
|
@@ -615,15 +615,15 @@ var b, Bn = function(e) {
|
|
|
615
615
|
}
|
|
616
616
|
function te(i) {
|
|
617
617
|
var l = B();
|
|
618
|
-
return i && C.yb === "everywhere" && (i = !1), S ===
|
|
618
|
+
return i && C.yb === "everywhere" && (i = !1), S === we ? (!i && (C.yb && wn(Y) || z && Rr(Y)) && g.slice(U, ve).indexOf("\\") === -1 && n(U, "The keyword '" + Y + "' is reserved"), l.name = Y) : i && S.l ? l.name = S.l : ee(), Ne = !1, k(), x(l, "Identifier");
|
|
619
619
|
}
|
|
620
620
|
e.version = "0.5.0";
|
|
621
|
-
var C, g = "",
|
|
621
|
+
var C, g = "", me, xt;
|
|
622
622
|
e.parse = function(i, l) {
|
|
623
|
-
g = String(i),
|
|
623
|
+
g = String(i), me = g.length, C = l || {};
|
|
624
624
|
for (var u in sr)
|
|
625
625
|
Object.prototype.hasOwnProperty.call(C, u) || (C[u] = sr[u]);
|
|
626
|
-
for (xt = C.sourceFile, de = 1, c = re = 0, Ne = !0, d(), u = C.dc, kt = ce = c, C.C && (Ct = new s()), Re =
|
|
626
|
+
for (xt = C.sourceFile, de = 1, c = re = 0, Ne = !0, d(), u = C.dc, kt = ce = c, C.C && (Ct = new s()), Re = z = !1, D = [], I(), i = u || B(), l = !0, u || (i.body = []); S !== Ot; )
|
|
627
627
|
u = Q(), i.body.push(u), l && ht(u) && ue(!0), l = !1;
|
|
628
628
|
return x(i, "Program");
|
|
629
629
|
};
|
|
@@ -638,13 +638,13 @@ var b, Bn = function(e) {
|
|
|
638
638
|
dc: null,
|
|
639
639
|
sourceFile: null,
|
|
640
640
|
vb: null
|
|
641
|
-
}, c = 0, U = 0,
|
|
641
|
+
}, c = 0, U = 0, ve = 0, St, Et, S, Y, Ne, de, re, kt = 0, ce = 0, Ct, Re, D, z, ln = [], Be = {
|
|
642
642
|
type: "num"
|
|
643
643
|
}, ar = {
|
|
644
644
|
type: "regexp"
|
|
645
645
|
}, et = {
|
|
646
646
|
type: "string"
|
|
647
|
-
},
|
|
647
|
+
}, we = {
|
|
648
648
|
type: "name"
|
|
649
649
|
}, Ot = {
|
|
650
650
|
type: "eof"
|
|
@@ -711,7 +711,7 @@ var b, Bn = function(e) {
|
|
|
711
711
|
l: "in",
|
|
712
712
|
L: 7,
|
|
713
713
|
m: !0
|
|
714
|
-
},
|
|
714
|
+
}, un = {
|
|
715
715
|
break: jt,
|
|
716
716
|
case: At,
|
|
717
717
|
catch: lr,
|
|
@@ -765,7 +765,7 @@ var b, Bn = function(e) {
|
|
|
765
765
|
}, Me = {
|
|
766
766
|
type: "{",
|
|
767
767
|
m: !0
|
|
768
|
-
},
|
|
768
|
+
}, xe = {
|
|
769
769
|
type: "}"
|
|
770
770
|
}, ne = {
|
|
771
771
|
type: "(",
|
|
@@ -795,7 +795,7 @@ var b, Bn = function(e) {
|
|
|
795
795
|
}, ge = {
|
|
796
796
|
Cb: !0,
|
|
797
797
|
m: !0
|
|
798
|
-
},
|
|
798
|
+
}, cn = {
|
|
799
799
|
cc: !0,
|
|
800
800
|
prefix: !0,
|
|
801
801
|
$b: !0
|
|
@@ -808,55 +808,55 @@ var b, Bn = function(e) {
|
|
|
808
808
|
}, Nr = {
|
|
809
809
|
L: 2,
|
|
810
810
|
m: !0
|
|
811
|
-
},
|
|
811
|
+
}, fn = {
|
|
812
812
|
L: 3,
|
|
813
813
|
m: !0
|
|
814
|
-
},
|
|
814
|
+
}, pn = {
|
|
815
815
|
L: 4,
|
|
816
816
|
m: !0
|
|
817
|
-
},
|
|
817
|
+
}, hn = {
|
|
818
818
|
L: 5,
|
|
819
819
|
m: !0
|
|
820
|
-
},
|
|
820
|
+
}, dn = {
|
|
821
821
|
L: 6,
|
|
822
822
|
m: !0
|
|
823
|
-
},
|
|
823
|
+
}, gn = {
|
|
824
824
|
L: 7,
|
|
825
825
|
m: !0
|
|
826
|
-
},
|
|
826
|
+
}, yn = {
|
|
827
827
|
L: 8,
|
|
828
828
|
m: !0
|
|
829
|
-
},
|
|
829
|
+
}, mn = {
|
|
830
830
|
L: 9,
|
|
831
831
|
prefix: !0,
|
|
832
832
|
m: !0
|
|
833
|
-
},
|
|
833
|
+
}, vn = {
|
|
834
834
|
L: 10,
|
|
835
835
|
m: !0
|
|
836
|
-
},
|
|
836
|
+
}, wn = o("class enum extends super const export import"), Rr = o("implements interface let package private protected public static yield"), rt = o("eval arguments"), xn = o("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"), Sn = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Br = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), En = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), nt = /[\n\r\u2028\u2029]/, ot = /\r\n|[\n\r\u2028\u2029]/g, Se, Bt = {
|
|
837
837
|
kind: "loop"
|
|
838
|
-
},
|
|
838
|
+
}, kn = {
|
|
839
839
|
kind: "switch"
|
|
840
840
|
};
|
|
841
841
|
}, Wt = Wt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
842
|
-
|
|
842
|
+
Mn(Wt.j || (Wt.j = {}));
|
|
843
843
|
function h(e, t) {
|
|
844
844
|
typeof e == "string" && (e = Ce(e, "code"));
|
|
845
|
-
var
|
|
845
|
+
var r = e.constructor;
|
|
846
846
|
this.ya = function() {
|
|
847
|
-
return new
|
|
847
|
+
return new r({
|
|
848
848
|
options: {}
|
|
849
849
|
});
|
|
850
850
|
};
|
|
851
|
-
var
|
|
851
|
+
var n = this.ya(), o;
|
|
852
852
|
for (o in e)
|
|
853
|
-
|
|
854
|
-
this.ra =
|
|
853
|
+
n[o] = o === "body" ? e[o].slice() : e[o];
|
|
854
|
+
this.ra = n, this.ca = [], this.qb = t, this.za = !1, this.ba = [], this.Ya = 0, this.rb = /* @__PURE__ */ Object.create(null), e = /^step([A-Z]\w*)$/;
|
|
855
855
|
var s, a;
|
|
856
856
|
for (a in this)
|
|
857
857
|
typeof this[a] == "function" && (s = a.match(e)) && (this.rb[s[1]] = this[a].bind(this));
|
|
858
858
|
this.N = $t(this, this.ra, null), this.Na = this.N.object, this.ra = Ce(this.ba.join(`
|
|
859
|
-
`), "polyfills"), this.ba = void 0, lt(this.ra), s = new m(this.ra, this.N), s.done = !1, this.o = [s], this.Eb(), this.value = void 0, this.ra =
|
|
859
|
+
`), "polyfills"), this.ba = void 0, lt(this.ra), s = new m(this.ra, this.N), s.done = !1, this.o = [s], this.Eb(), this.value = void 0, this.ra = n, s = new m(this.ra, this.N), s.done = !1, this.o.length = 0, this.o[0] = s;
|
|
860
860
|
}
|
|
861
861
|
var Dr = {
|
|
862
862
|
C: !0,
|
|
@@ -869,7 +869,7 @@ var Dr = {
|
|
|
869
869
|
configurable: !0,
|
|
870
870
|
enumerable: !1,
|
|
871
871
|
writable: !0
|
|
872
|
-
},
|
|
872
|
+
}, K = {
|
|
873
873
|
configurable: !0,
|
|
874
874
|
enumerable: !1,
|
|
875
875
|
writable: !1
|
|
@@ -881,15 +881,15 @@ var Dr = {
|
|
|
881
881
|
configurable: !1,
|
|
882
882
|
enumerable: !0,
|
|
883
883
|
writable: !0
|
|
884
|
-
},
|
|
884
|
+
}, Kr = {
|
|
885
885
|
STEP_ERROR: !0
|
|
886
886
|
}, je = {
|
|
887
887
|
SCOPE_REFERENCE: !0
|
|
888
888
|
}, Je = {
|
|
889
889
|
VALUE_IN_DESCRIPTOR: !0
|
|
890
|
-
},
|
|
890
|
+
}, ke = {
|
|
891
891
|
REGEXP_TIMEOUT: !0
|
|
892
|
-
}, Ur = [], se = null, $e = null, pe = typeof globalThis == "undefined" ? void 0 : globalThis,
|
|
892
|
+
}, Ur = [], se = null, $e = null, pe = typeof globalThis == "undefined" ? void 0 : globalThis, Dn = ["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
893
|
function Jt(e) {
|
|
894
894
|
var t = e >>> 0;
|
|
895
895
|
return t === Number(e) ? t : NaN;
|
|
@@ -898,12 +898,12 @@ function Ve(e) {
|
|
|
898
898
|
var t = e >>> 0;
|
|
899
899
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
900
900
|
}
|
|
901
|
-
function lt(e, t,
|
|
902
|
-
t ? e.start = t : delete e.start,
|
|
903
|
-
for (var
|
|
904
|
-
if (
|
|
905
|
-
var o = e[
|
|
906
|
-
o && typeof o == "object" && lt(o, t,
|
|
901
|
+
function lt(e, t, r) {
|
|
902
|
+
t ? e.start = t : delete e.start, r ? e.end = r : delete e.end;
|
|
903
|
+
for (var n in e)
|
|
904
|
+
if (n !== "loc" && e.hasOwnProperty(n)) {
|
|
905
|
+
var o = e[n];
|
|
906
|
+
o && typeof o == "object" && lt(o, t, r);
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
909
|
h.prototype.REGEXP_MODE = 2;
|
|
@@ -915,10 +915,10 @@ b.Ka = !1;
|
|
|
915
915
|
b.Kb = 0;
|
|
916
916
|
b.ic = 0;
|
|
917
917
|
function Ce(e, t) {
|
|
918
|
-
var
|
|
919
|
-
for (
|
|
920
|
-
n
|
|
921
|
-
return
|
|
918
|
+
var r = {}, n;
|
|
919
|
+
for (n in Dr)
|
|
920
|
+
r[n] = Dr[n];
|
|
921
|
+
return r.sourceFile = t, pe.j.parse(e, r);
|
|
922
922
|
}
|
|
923
923
|
b.Jb = function(e) {
|
|
924
924
|
var t = this.o[0];
|
|
@@ -926,34 +926,34 @@ b.Jb = function(e) {
|
|
|
926
926
|
throw Error("Expecting original AST to start with a Program node");
|
|
927
927
|
if (typeof e == "string" && (e = Ce(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
928
928
|
throw Error("Expecting new AST to start with a Program node");
|
|
929
|
-
|
|
929
|
+
Ke(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
|
b.lb = function() {
|
|
932
932
|
var e = this.o, t;
|
|
933
933
|
do {
|
|
934
|
-
var
|
|
934
|
+
var r = e[e.length - 1];
|
|
935
935
|
if (this.za)
|
|
936
936
|
break;
|
|
937
|
-
if (!
|
|
937
|
+
if (!r || r.node.type === "Program" && r.done) {
|
|
938
938
|
if (!this.ca.length)
|
|
939
939
|
return !1;
|
|
940
|
-
if (
|
|
941
|
-
|
|
940
|
+
if (r = this.ca[0], !r || r.time > Date.now())
|
|
941
|
+
r = null;
|
|
942
942
|
else {
|
|
943
|
-
this.ca.shift(), 0 <=
|
|
944
|
-
var
|
|
945
|
-
|
|
943
|
+
this.ca.shift(), 0 <= r.interval && Zr(this, r, r.interval);
|
|
944
|
+
var n = new m(r.node, r.scope);
|
|
945
|
+
r.zb && (n.ia = 2, n.B = this.Na, n.U = r.zb, n.Qa = !0, n.F = r.Lb), r = n;
|
|
946
946
|
}
|
|
947
|
-
if (!
|
|
947
|
+
if (!r)
|
|
948
948
|
break;
|
|
949
949
|
}
|
|
950
|
-
|
|
950
|
+
n = r.node;
|
|
951
951
|
var o = $e;
|
|
952
952
|
$e = this;
|
|
953
953
|
try {
|
|
954
|
-
var s = this.rb[
|
|
954
|
+
var s = this.rb[n.type](e, r, n);
|
|
955
955
|
} catch (a) {
|
|
956
|
-
if (a !==
|
|
956
|
+
if (a !== Kr)
|
|
957
957
|
throw this.value !== a && (this.value = void 0), a;
|
|
958
958
|
} finally {
|
|
959
959
|
$e = o;
|
|
@@ -962,8 +962,8 @@ b.lb = function() {
|
|
|
962
962
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
963
963
|
if (this.Ka)
|
|
964
964
|
throw this.value = void 0, Error("Setter not supported in this context");
|
|
965
|
-
t ||
|
|
966
|
-
} while (!
|
|
965
|
+
t || n.end || (t = Date.now() + this.POLYFILL_TIMEOUT);
|
|
966
|
+
} while (!n.end && t > Date.now());
|
|
967
967
|
return !0;
|
|
968
968
|
};
|
|
969
969
|
b.Eb = function() {
|
|
@@ -971,14 +971,14 @@ b.Eb = function() {
|
|
|
971
971
|
;
|
|
972
972
|
return this.za;
|
|
973
973
|
};
|
|
974
|
-
function
|
|
975
|
-
e.g(t, "NaN", NaN, Ue), e.g(t, "Infinity", 1 / 0, Ue), e.g(t, "undefined", void 0, Ue), e.g(t, "window", t, Ht), e.g(t, "this", t, Ue), e.g(t, "self", t), e.M = new j(null), e.Z = new j(e.M),
|
|
976
|
-
var
|
|
974
|
+
function _n(e, t) {
|
|
975
|
+
e.g(t, "NaN", NaN, Ue), e.g(t, "Infinity", 1 / 0, Ue), e.g(t, "undefined", void 0, Ue), e.g(t, "window", t, Ht), e.g(t, "this", t, Ue), e.g(t, "self", t), e.M = new j(null), e.Z = new j(e.M), Un(e, t), Ln(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Fn(e, t), Wn(e, t), Gn(e, t), $n(e, t), Vn(e, t), Xn(e, t), Hn(e, t), Jn(e, t), Kn(e, t);
|
|
976
|
+
var r = e.i(function() {
|
|
977
977
|
throw EvalError("Can't happen");
|
|
978
978
|
}, !1);
|
|
979
|
-
|
|
980
|
-
for (var
|
|
981
|
-
|
|
979
|
+
r.eval = !0, e.g(t, "eval", r, y), e.g(t, "parseInt", e.i(parseInt, !1), y), e.g(t, "parseFloat", e.i(parseFloat, !1), y), e.g(t, "isNaN", e.i(isNaN, !1), y), e.g(t, "isFinite", e.i(isFinite, !1), y);
|
|
980
|
+
for (var n = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], o = 0; o < n.length; o++)
|
|
981
|
+
r = function(s) {
|
|
982
982
|
return function(a) {
|
|
983
983
|
try {
|
|
984
984
|
return s(a);
|
|
@@ -986,26 +986,26 @@ function Dn(e, t) {
|
|
|
986
986
|
w(e, e.Gb, f.message);
|
|
987
987
|
}
|
|
988
988
|
};
|
|
989
|
-
}(
|
|
990
|
-
|
|
989
|
+
}(n[o][0]), e.g(t, n[o][1], e.i(r, !1), y);
|
|
990
|
+
r = function(s) {
|
|
991
991
|
return Lr(e, !1, arguments);
|
|
992
|
-
}, e.g(t, "setTimeout", e.i(
|
|
992
|
+
}, e.g(t, "setTimeout", e.i(r, !1), y), r = function(s) {
|
|
993
993
|
return Lr(e, !0, arguments);
|
|
994
|
-
}, e.g(t, "setInterval", e.i(
|
|
994
|
+
}, e.g(t, "setInterval", e.i(r, !1), y), r = function(s) {
|
|
995
995
|
Fr(e, s);
|
|
996
|
-
}, e.g(t, "clearTimeout", e.i(
|
|
996
|
+
}, e.g(t, "clearTimeout", e.i(r, !1), y), r = function(s) {
|
|
997
997
|
Fr(e, s);
|
|
998
|
-
}, e.g(t, "clearInterval", e.i(
|
|
998
|
+
}, e.g(t, "clearInterval", e.i(r, !1), y), 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
|
b.Wb = 0;
|
|
1001
|
-
function
|
|
1002
|
-
var
|
|
1001
|
+
function Un(e, t) {
|
|
1002
|
+
var r = /^[A-Za-z_$][\w$]*$/, n = function(o) {
|
|
1003
1003
|
var s = arguments.length ? String(arguments[arguments.length - 1]) : "", a = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1004
1004
|
if (a) {
|
|
1005
1005
|
a = a.split(/\s*,\s*/);
|
|
1006
1006
|
for (var f = 0; f < a.length; f++) {
|
|
1007
1007
|
var d = a[f];
|
|
1008
|
-
|
|
1008
|
+
r.test(d) || w(e, e.T, "Invalid function argument: " + d);
|
|
1009
1009
|
}
|
|
1010
1010
|
a = a.join(", ");
|
|
1011
1011
|
}
|
|
@@ -1016,27 +1016,27 @@ function _n(e, t) {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
return v.body.length !== 1 && w(e, e.T, "Invalid code in function body"), Yt(e, v.body[0].la, e.N, "anonymous");
|
|
1018
1018
|
};
|
|
1019
|
-
e.O = e.i(
|
|
1020
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0,
|
|
1019
|
+
e.O = e.i(n, !0), e.g(t, "Function", e.O, y), e.g(e.O, "prototype", e.Z, y), e.g(e.Z, "constructor", e.O, y), e.Z.Ta = function() {
|
|
1020
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, K), e.Z.H = "Function", n = function(o, s) {
|
|
1021
1021
|
var a = e.o[e.o.length - 1];
|
|
1022
1022
|
a.U = this, a.B = o, a.F = [], s != null && (s instanceof j ? a.F = zr(e, s) : w(e, e.j, "CreateListFromArrayLike called on non-object")), a.eb = !1;
|
|
1023
|
-
}, F(e, e.O, "apply",
|
|
1023
|
+
}, F(e, e.O, "apply", n), n = function(o) {
|
|
1024
1024
|
var s = e.o[e.o.length - 1];
|
|
1025
1025
|
s.U = this, s.B = o, s.F = [];
|
|
1026
1026
|
for (var a = 1; a < arguments.length; a++)
|
|
1027
1027
|
s.F.push(arguments[a]);
|
|
1028
1028
|
s.eb = !1;
|
|
1029
|
-
}, F(e, e.O, "call",
|
|
1029
|
+
}, F(e, e.O, "call", n), 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;", "}", "});", ""), n = function() {
|
|
1030
1030
|
return String(this);
|
|
1031
|
-
}, F(e, e.O, "toString",
|
|
1031
|
+
}, F(e, e.O, "toString", n), e.g(e.O, "toString", e.i(n, !1), y), n = function() {
|
|
1032
1032
|
return this.valueOf();
|
|
1033
|
-
}, F(e, e.O, "valueOf",
|
|
1033
|
+
}, F(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1), y);
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1036
|
-
function
|
|
1035
|
+
function Ln(e, t) {
|
|
1036
|
+
function r(o) {
|
|
1037
1037
|
o != null || w(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1038
1038
|
}
|
|
1039
|
-
var
|
|
1039
|
+
var n = function(o) {
|
|
1040
1040
|
if (o == null)
|
|
1041
1041
|
return le(e) ? this : e.s(e.M);
|
|
1042
1042
|
if (!(o instanceof j)) {
|
|
@@ -1045,40 +1045,40 @@ function Un(e, t) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
return o;
|
|
1047
1047
|
};
|
|
1048
|
-
e.v = e.i(
|
|
1049
|
-
return
|
|
1050
|
-
}, e.g(e.v, "getOwnPropertyNames", e.i(
|
|
1051
|
-
return
|
|
1052
|
-
}, e.g(e.v, "keys", e.i(
|
|
1048
|
+
e.v = e.i(n, !0), e.g(e.v, "prototype", e.M, y), e.g(e.M, "constructor", e.v, y), e.g(t, "Object", e.v, y), n = function(o) {
|
|
1049
|
+
return r(o), ie(e, Object.getOwnPropertyNames(o instanceof j ? o.h : o));
|
|
1050
|
+
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1), y), n = function(o) {
|
|
1051
|
+
return r(o), o instanceof j && (o = o.h), ie(e, Object.keys(o));
|
|
1052
|
+
}, e.g(e.v, "keys", e.i(n, !1), y), n = function(o) {
|
|
1053
1053
|
return o === null ? e.s(null) : (o instanceof j || w(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1054
|
-
}, e.g(e.v, "create", e.i(
|
|
1054
|
+
}, e.g(e.v, "create", e.i(n, !1), y), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), n = function(o, s, a) {
|
|
1055
1055
|
return s = String(s), o instanceof j || w(e, e.j, "Object.defineProperty called on non-object: " + o), a instanceof j || w(e, e.j, "Property description must be an object"), !o.preventExtensions || s in o.h || w(e, e.j, "Can't define property '" + s + "', object is not extensible"), e.g(o, s, Je, a.h), o;
|
|
1056
|
-
}, e.g(e.v, "defineProperty", e.i(
|
|
1056
|
+
}, e.g(e.v, "defineProperty", e.i(n, !1), y), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), n = function(o, s) {
|
|
1057
1057
|
if (o instanceof j || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), s = String(s), s in o.h) {
|
|
1058
1058
|
var a = Object.getOwnPropertyDescriptor(o.h, s), f = o.V[s];
|
|
1059
1059
|
return o = o.Y[s], s = e.s(e.M), f || o ? (e.g(s, "get", f), e.g(s, "set", o)) : (e.g(s, "value", a.value), e.g(s, "writable", a.writable)), e.g(s, "configurable", a.configurable), e.g(s, "enumerable", a.enumerable), s;
|
|
1060
1060
|
}
|
|
1061
|
-
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(
|
|
1062
|
-
return
|
|
1063
|
-
}, e.g(e.v, "getPrototypeOf", e.i(
|
|
1061
|
+
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(n, !1), y), n = function(o) {
|
|
1062
|
+
return r(o), ae(e, o);
|
|
1063
|
+
}, e.g(e.v, "getPrototypeOf", e.i(n, !1), y), n = function(o) {
|
|
1064
1064
|
return !!o && !o.preventExtensions;
|
|
1065
|
-
}, e.g(e.v, "isExtensible", e.i(
|
|
1065
|
+
}, e.g(e.v, "isExtensible", e.i(n, !1), y), n = function(o) {
|
|
1066
1066
|
return o instanceof j && (o.preventExtensions = !0), o;
|
|
1067
|
-
}, e.g(e.v, "preventExtensions", e.i(
|
|
1068
|
-
return
|
|
1069
|
-
}, F(e, e.v, "hasOwnProperty",
|
|
1070
|
-
return
|
|
1071
|
-
}, F(e, e.v, "propertyIsEnumerable",
|
|
1067
|
+
}, e.g(e.v, "preventExtensions", e.i(n, !1), y), F(e, e.v, "toString", j.prototype.toString), F(e, e.v, "toLocaleString", j.prototype.toString), F(e, e.v, "valueOf", j.prototype.valueOf), n = function(o) {
|
|
1068
|
+
return r(this), this instanceof j ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1069
|
+
}, F(e, e.v, "hasOwnProperty", n), n = function(o) {
|
|
1070
|
+
return r(this), this instanceof j ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1071
|
+
}, F(e, e.v, "propertyIsEnumerable", n), n = function(o) {
|
|
1072
1072
|
for (; ; ) {
|
|
1073
1073
|
if (o = ae(e, o), !o)
|
|
1074
1074
|
return !1;
|
|
1075
1075
|
if (o === this)
|
|
1076
1076
|
return !0;
|
|
1077
1077
|
}
|
|
1078
|
-
}, F(e, e.v, "isPrototypeOf",
|
|
1078
|
+
}, F(e, e.v, "isPrototypeOf", n);
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1081
|
-
var
|
|
1080
|
+
function Fn(e, t) {
|
|
1081
|
+
var r = function(n) {
|
|
1082
1082
|
var o = le(e) ? this : Oe(e), s = arguments[0];
|
|
1083
1083
|
if (arguments.length === 1 && typeof s == "number")
|
|
1084
1084
|
isNaN(Jt(s)) && w(e, e.ob, "Invalid array length: " + s), o.h.length = s;
|
|
@@ -1089,151 +1089,151 @@ function Ln(e, t) {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
return o;
|
|
1091
1091
|
};
|
|
1092
|
-
e.qa = e.i(
|
|
1093
|
-
return
|
|
1094
|
-
}, e.g(e.qa, "isArray", e.i(
|
|
1092
|
+
e.qa = e.i(r, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, y), r = function(n) {
|
|
1093
|
+
return n && n.H === "Array";
|
|
1094
|
+
}, e.g(e.qa, "isArray", e.i(r, !1), y), e.g(e.La, "length", 0, {
|
|
1095
1095
|
configurable: !1,
|
|
1096
1096
|
enumerable: !1,
|
|
1097
1097
|
writable: !0
|
|
1098
1098
|
}), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1101
|
-
var
|
|
1102
|
-
return
|
|
1100
|
+
function Wn(e, t) {
|
|
1101
|
+
var r = function(n) {
|
|
1102
|
+
return n = arguments.length ? pe.String(n) : "", le(e) ? (this.data = n, this) : n;
|
|
1103
1103
|
};
|
|
1104
|
-
for (e.J = e.i(
|
|
1105
|
-
F(e, e.J, t[
|
|
1106
|
-
|
|
1104
|
+
for (e.J = e.i(r, !0), e.g(t, "String", e.J, y), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), y), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), r = 0; r < t.length; r++)
|
|
1105
|
+
F(e, e.J, t[r], String.prototype[t[r]]);
|
|
1106
|
+
r = function(n, o, s) {
|
|
1107
1107
|
o = e.R(o), s = e.R(s);
|
|
1108
1108
|
try {
|
|
1109
|
-
return String(this).localeCompare(
|
|
1109
|
+
return String(this).localeCompare(n, o, s);
|
|
1110
1110
|
} catch (a) {
|
|
1111
1111
|
w(e, e.D, "localeCompare: " + a.message);
|
|
1112
1112
|
}
|
|
1113
|
-
}, F(e, e.J, "localeCompare",
|
|
1113
|
+
}, F(e, e.J, "localeCompare", r), r = function(n, o, s) {
|
|
1114
1114
|
var a = String(this);
|
|
1115
|
-
if (o = o ? Number(o) : void 0, G(e,
|
|
1115
|
+
if (o = o ? Number(o) : void 0, G(e, n, e.I) && (n = n.data, Fe(e, n, s), e.REGEXP_MODE === 2)) {
|
|
1116
1116
|
if (se)
|
|
1117
|
-
|
|
1117
|
+
n = Le(e, "string.split(separator, limit)", {
|
|
1118
1118
|
string: a,
|
|
1119
|
-
separator:
|
|
1119
|
+
separator: n,
|
|
1120
1120
|
limit: o
|
|
1121
|
-
},
|
|
1121
|
+
}, n, s), n !== ke && s(ie(e, n));
|
|
1122
1122
|
else {
|
|
1123
|
-
var f = e.ha(), d = We(e,
|
|
1123
|
+
var f = e.ha(), d = We(e, n, f, s);
|
|
1124
1124
|
f.onmessage = function(v) {
|
|
1125
1125
|
clearTimeout(d), s(ie(e, v.data));
|
|
1126
|
-
}, f.postMessage(["split", a,
|
|
1126
|
+
}, f.postMessage(["split", a, n, o]);
|
|
1127
1127
|
}
|
|
1128
1128
|
return;
|
|
1129
1129
|
}
|
|
1130
|
-
|
|
1131
|
-
}, Ge(e, e.J, "split",
|
|
1130
|
+
n = a.split(n, o), s(ie(e, n));
|
|
1131
|
+
}, Ge(e, e.J, "split", r), r = function(n, o) {
|
|
1132
1132
|
var s = String(this);
|
|
1133
|
-
if (
|
|
1133
|
+
if (n = G(e, n, e.I) ? n.data : new RegExp(n), Fe(e, n, o), e.REGEXP_MODE === 2)
|
|
1134
1134
|
if (se)
|
|
1135
|
-
|
|
1135
|
+
n = Le(e, "string.match(regexp)", {
|
|
1136
1136
|
string: s,
|
|
1137
|
-
regexp:
|
|
1138
|
-
},
|
|
1137
|
+
regexp: n
|
|
1138
|
+
}, n, o), n !== ke && o(n && ie(e, n));
|
|
1139
1139
|
else {
|
|
1140
|
-
var a = e.ha(), f = We(e,
|
|
1140
|
+
var a = e.ha(), f = We(e, n, a, o);
|
|
1141
1141
|
a.onmessage = function(d) {
|
|
1142
1142
|
clearTimeout(f), o(d.data && ie(e, d.data));
|
|
1143
|
-
}, a.postMessage(["match", s,
|
|
1143
|
+
}, a.postMessage(["match", s, n]);
|
|
1144
1144
|
}
|
|
1145
1145
|
else
|
|
1146
|
-
|
|
1147
|
-
}, Ge(e, e.J, "match",
|
|
1146
|
+
n = s.match(n), o(n && ie(e, n));
|
|
1147
|
+
}, Ge(e, e.J, "match", r), r = function(n, o) {
|
|
1148
1148
|
var s = String(this);
|
|
1149
|
-
if (G(e,
|
|
1149
|
+
if (G(e, n, e.I) ? n = n.data : n = new RegExp(n), Fe(e, n, o), e.REGEXP_MODE === 2)
|
|
1150
1150
|
if (se)
|
|
1151
|
-
|
|
1151
|
+
n = Le(e, "string.search(regexp)", {
|
|
1152
1152
|
string: s,
|
|
1153
|
-
regexp:
|
|
1154
|
-
},
|
|
1153
|
+
regexp: n
|
|
1154
|
+
}, n, o), n !== ke && o(n);
|
|
1155
1155
|
else {
|
|
1156
|
-
var a = e.ha(), f = We(e,
|
|
1156
|
+
var a = e.ha(), f = We(e, n, a, o);
|
|
1157
1157
|
a.onmessage = function(d) {
|
|
1158
1158
|
clearTimeout(f), o(d.data);
|
|
1159
|
-
}, a.postMessage(["search", s,
|
|
1159
|
+
}, a.postMessage(["search", s, n]);
|
|
1160
1160
|
}
|
|
1161
1161
|
else
|
|
1162
|
-
o(s.search(
|
|
1163
|
-
}, Ge(e, e.J, "search",
|
|
1162
|
+
o(s.search(n));
|
|
1163
|
+
}, Ge(e, e.J, "search", r), r = function(n, o, s) {
|
|
1164
1164
|
var a = String(this);
|
|
1165
|
-
if (o = String(o), G(e,
|
|
1165
|
+
if (o = String(o), G(e, n, e.I) && (n = n.data, Fe(e, n, s), e.REGEXP_MODE === 2)) {
|
|
1166
1166
|
if (se)
|
|
1167
|
-
|
|
1167
|
+
n = Le(e, "string.replace(substr, newSubstr)", {
|
|
1168
1168
|
string: a,
|
|
1169
|
-
substr:
|
|
1169
|
+
substr: n,
|
|
1170
1170
|
newSubstr: o
|
|
1171
|
-
},
|
|
1171
|
+
}, n, s), n !== ke && s(n);
|
|
1172
1172
|
else {
|
|
1173
|
-
var f = e.ha(), d = We(e,
|
|
1173
|
+
var f = e.ha(), d = We(e, n, f, s);
|
|
1174
1174
|
f.onmessage = function(v) {
|
|
1175
1175
|
clearTimeout(d), s(v.data);
|
|
1176
|
-
}, f.postMessage(["replace", a,
|
|
1176
|
+
}, f.postMessage(["replace", a, n, o]);
|
|
1177
1177
|
}
|
|
1178
1178
|
return;
|
|
1179
1179
|
}
|
|
1180
|
-
s(a.replace(
|
|
1181
|
-
}, Ge(e, e.J, "replace",
|
|
1180
|
+
s(a.replace(n, o));
|
|
1181
|
+
}, Ge(e, e.J, "replace", r), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1184
|
-
e.mb = e.i(function(
|
|
1185
|
-
return
|
|
1183
|
+
function Gn(e, t) {
|
|
1184
|
+
e.mb = e.i(function(r) {
|
|
1185
|
+
return r = pe.Boolean(r), le(e) ? (this.data = r, this) : r;
|
|
1186
1186
|
}, !0), e.g(t, "Boolean", e.mb, y);
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1189
|
-
var
|
|
1190
|
-
return
|
|
1188
|
+
function $n(e, t) {
|
|
1189
|
+
var r = function(n) {
|
|
1190
|
+
return n = arguments.length ? pe.Number(n) : 0, le(e) ? (this.data = n, this) : n;
|
|
1191
1191
|
};
|
|
1192
|
-
for (e.aa = e.i(
|
|
1193
|
-
e.g(e.aa, t[
|
|
1194
|
-
|
|
1192
|
+
for (e.aa = e.i(r, !0), e.g(t, "Number", e.aa, y), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], r = 0; r < t.length; r++)
|
|
1193
|
+
e.g(e.aa, t[r], Number[t[r]], Ue);
|
|
1194
|
+
r = function(n) {
|
|
1195
1195
|
try {
|
|
1196
|
-
return Number(this).toExponential(
|
|
1196
|
+
return Number(this).toExponential(n);
|
|
1197
1197
|
} catch (o) {
|
|
1198
1198
|
w(e, e.D, o.message);
|
|
1199
1199
|
}
|
|
1200
|
-
}, F(e, e.aa, "toExponential",
|
|
1200
|
+
}, F(e, e.aa, "toExponential", r), r = function(n) {
|
|
1201
1201
|
try {
|
|
1202
|
-
return Number(this).toFixed(
|
|
1202
|
+
return Number(this).toFixed(n);
|
|
1203
1203
|
} catch (o) {
|
|
1204
1204
|
w(e, e.D, o.message);
|
|
1205
1205
|
}
|
|
1206
|
-
}, F(e, e.aa, "toFixed",
|
|
1206
|
+
}, F(e, e.aa, "toFixed", r), r = function(n) {
|
|
1207
1207
|
try {
|
|
1208
|
-
return Number(this).toPrecision(
|
|
1208
|
+
return Number(this).toPrecision(n);
|
|
1209
1209
|
} catch (o) {
|
|
1210
1210
|
w(e, e.D, o.message);
|
|
1211
1211
|
}
|
|
1212
|
-
}, F(e, e.aa, "toPrecision",
|
|
1212
|
+
}, F(e, e.aa, "toPrecision", r), r = function(n) {
|
|
1213
1213
|
try {
|
|
1214
|
-
return Number(this).toString(
|
|
1214
|
+
return Number(this).toString(n);
|
|
1215
1215
|
} catch (o) {
|
|
1216
1216
|
w(e, e.D, o.message);
|
|
1217
1217
|
}
|
|
1218
|
-
}, F(e, e.aa, "toString",
|
|
1219
|
-
|
|
1218
|
+
}, F(e, e.aa, "toString", r), r = function(n, o) {
|
|
1219
|
+
n = n ? e.R(n) : void 0, o = o ? e.R(o) : void 0;
|
|
1220
1220
|
try {
|
|
1221
|
-
return Number(this).toLocaleString(
|
|
1221
|
+
return Number(this).toLocaleString(n, o);
|
|
1222
1222
|
} catch (s) {
|
|
1223
1223
|
w(e, e.D, "toLocaleString: " + s.message);
|
|
1224
1224
|
}
|
|
1225
|
-
}, F(e, e.aa, "toLocaleString",
|
|
1225
|
+
}, F(e, e.aa, "toLocaleString", r);
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1228
|
-
var
|
|
1227
|
+
function Vn(e, t) {
|
|
1228
|
+
var r = function(o, s) {
|
|
1229
1229
|
if (!le(e))
|
|
1230
1230
|
return pe.Date();
|
|
1231
1231
|
var a = [null].concat(Array.from(arguments));
|
|
1232
1232
|
return this.data = new (Function.prototype.bind.apply(pe.Date, a))(), this;
|
|
1233
1233
|
};
|
|
1234
|
-
e.$ = e.i(
|
|
1235
|
-
for (var
|
|
1236
|
-
|
|
1234
|
+
e.$ = e.i(r, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, y), e.g(e.$, "now", e.i(Date.now, !1), y), e.g(e.$, "parse", e.i(Date.parse, !1), y), e.g(e.$, "UTC", e.i(Date.UTC, !1), y), t = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
|
|
1235
|
+
for (var n = 0; n < t.length; n++)
|
|
1236
|
+
r = function(o) {
|
|
1237
1237
|
return function(s) {
|
|
1238
1238
|
var a = this.data;
|
|
1239
1239
|
a instanceof Date || w(e, e.j, o + " not called on a Date");
|
|
@@ -1241,26 +1241,26 @@ function $n(e, t) {
|
|
|
1241
1241
|
f[d] = e.R(arguments[d]);
|
|
1242
1242
|
return a[o].apply(a, f);
|
|
1243
1243
|
};
|
|
1244
|
-
}(t[
|
|
1244
|
+
}(t[n]), F(e, e.$, t[n], r);
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1247
|
-
var
|
|
1246
|
+
function Xn(e, t) {
|
|
1247
|
+
var r = function(n, o) {
|
|
1248
1248
|
if (le(e))
|
|
1249
1249
|
var s = this;
|
|
1250
1250
|
else {
|
|
1251
|
-
if (o === void 0 && G(e,
|
|
1252
|
-
return
|
|
1251
|
+
if (o === void 0 && G(e, n, e.I))
|
|
1252
|
+
return n;
|
|
1253
1253
|
s = e.s(e.Ma);
|
|
1254
1254
|
}
|
|
1255
|
-
|
|
1255
|
+
n = n === void 0 ? "" : String(n), o = o ? String(o) : "", /^[gmi]*$/.test(o) || w(e, e.T, "Invalid regexp flag: " + o);
|
|
1256
1256
|
try {
|
|
1257
|
-
var a = new pe.RegExp(
|
|
1257
|
+
var a = new pe.RegExp(n, o);
|
|
1258
1258
|
} catch (f) {
|
|
1259
1259
|
w(e, e.T, f.message);
|
|
1260
1260
|
}
|
|
1261
|
-
return
|
|
1261
|
+
return Kt(e, s, a), s;
|
|
1262
1262
|
};
|
|
1263
|
-
e.I = e.i(
|
|
1263
|
+
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, K), e.g(e.I.h.prototype, "ignoreCase", void 0, K), e.g(e.I.h.prototype, "multiline", void 0, K), e.g(e.I.h.prototype, "source", "(?:)", K), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), r = function(n, o) {
|
|
1264
1264
|
function s(I) {
|
|
1265
1265
|
if (I) {
|
|
1266
1266
|
var A = ie(e, I);
|
|
@@ -1269,92 +1269,92 @@ function Vn(e, t) {
|
|
|
1269
1269
|
return null;
|
|
1270
1270
|
}
|
|
1271
1271
|
var a = this.data;
|
|
1272
|
-
if (
|
|
1272
|
+
if (n = String(n), a.lastIndex = Number(e.G(this, "lastIndex")), Fe(e, a, o), e.REGEXP_MODE === 2)
|
|
1273
1273
|
if (se)
|
|
1274
|
-
|
|
1275
|
-
string:
|
|
1274
|
+
n = Le(e, "regexp.exec(string)", {
|
|
1275
|
+
string: n,
|
|
1276
1276
|
regexp: a
|
|
1277
|
-
}, a, o),
|
|
1277
|
+
}, a, o), n !== ke && (e.g(this, "lastIndex", a.lastIndex), o(s(n)));
|
|
1278
1278
|
else {
|
|
1279
1279
|
var f = e.ha(), d = We(e, a, f, o), v = this;
|
|
1280
1280
|
f.onmessage = function(I) {
|
|
1281
1281
|
clearTimeout(d), e.g(v, "lastIndex", I.data[1]), o(s(I.data[0]));
|
|
1282
|
-
}, f.postMessage(["exec", a, a.lastIndex,
|
|
1282
|
+
}, f.postMessage(["exec", a, a.lastIndex, n]);
|
|
1283
1283
|
}
|
|
1284
1284
|
else
|
|
1285
|
-
|
|
1286
|
-
}, Ge(e, e.I, "exec",
|
|
1285
|
+
n = a.exec(n), e.g(this, "lastIndex", a.lastIndex), o(s(n));
|
|
1286
|
+
}, Ge(e, e.I, "exec", r);
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1289
|
-
function n
|
|
1288
|
+
function Hn(e, t) {
|
|
1289
|
+
function r(n) {
|
|
1290
1290
|
var o = e.i(function(s) {
|
|
1291
1291
|
var a = le(e) ? this : e.Aa(o);
|
|
1292
1292
|
return Gt(e, a, s), a;
|
|
1293
1293
|
}, !0);
|
|
1294
|
-
return e.g(o, "prototype", e.Aa(e.D), y), e.g(o.h.prototype, "name",
|
|
1294
|
+
return e.g(o, "prototype", e.Aa(e.D), y), e.g(o.h.prototype, "name", n, y), e.g(t, n, o, y), o;
|
|
1295
1295
|
}
|
|
1296
|
-
e.D = e.i(function(
|
|
1296
|
+
e.D = e.i(function(n) {
|
|
1297
1297
|
var o = le(e) ? this : e.Aa(e.D);
|
|
1298
|
-
return Gt(e, o,
|
|
1299
|
-
}, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y),
|
|
1300
|
-
}
|
|
1301
|
-
function Hn(e, t) {
|
|
1302
|
-
var n = e.s(e.M);
|
|
1303
|
-
e.g(t, "Math", n, y);
|
|
1304
|
-
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1305
|
-
for (t = 0; t < r.length; t++)
|
|
1306
|
-
e.g(n, r[t], Math[r[t]], z);
|
|
1307
|
-
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1308
|
-
e.g(n, r[t], e.i(Math[r[t]], !1), y);
|
|
1298
|
+
return Gt(e, o, n), o;
|
|
1299
|
+
}, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), r("EvalError"), e.ob = r("RangeError"), e.pb = r("ReferenceError"), e.T = r("SyntaxError"), e.j = r("TypeError"), e.Gb = r("URIError");
|
|
1309
1300
|
}
|
|
1310
1301
|
function Jn(e, t) {
|
|
1311
|
-
var
|
|
1312
|
-
e.g(t, "
|
|
1302
|
+
var r = e.s(e.M);
|
|
1303
|
+
e.g(t, "Math", r, y);
|
|
1304
|
+
var n = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1305
|
+
for (t = 0; t < n.length; t++)
|
|
1306
|
+
e.g(r, n[t], Math[n[t]], K);
|
|
1307
|
+
for (n = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < n.length; t++)
|
|
1308
|
+
e.g(r, n[t], e.i(Math[n[t]], !1), y);
|
|
1309
|
+
}
|
|
1310
|
+
function Kn(e, t) {
|
|
1311
|
+
var r = e.s(e.M);
|
|
1312
|
+
e.g(t, "JSON", r, y), t = function(n) {
|
|
1313
1313
|
try {
|
|
1314
|
-
var o = JSON.parse(String(
|
|
1314
|
+
var o = JSON.parse(String(n));
|
|
1315
1315
|
} catch (s) {
|
|
1316
1316
|
w(e, e.T, s.message);
|
|
1317
1317
|
}
|
|
1318
1318
|
return e.Ia(o);
|
|
1319
|
-
}, e.g(
|
|
1319
|
+
}, e.g(r, "parse", e.i(t, !1)), t = function(n, o, s) {
|
|
1320
1320
|
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = zr(e, o), o = o.filter(function(f) {
|
|
1321
1321
|
return typeof f == "string" || typeof f == "number";
|
|
1322
|
-
})) : o = null, typeof s != "string" && typeof s != "number" && (s = void 0),
|
|
1322
|
+
})) : o = null, typeof s != "string" && typeof s != "number" && (s = void 0), n = e.R(n);
|
|
1323
1323
|
try {
|
|
1324
|
-
var a = JSON.stringify(
|
|
1324
|
+
var a = JSON.stringify(n, o, s);
|
|
1325
1325
|
} catch (f) {
|
|
1326
1326
|
w(e, e.j, f.message);
|
|
1327
1327
|
}
|
|
1328
1328
|
return a;
|
|
1329
|
-
}, e.g(
|
|
1329
|
+
}, e.g(r, "stringify", e.i(t, !1));
|
|
1330
1330
|
}
|
|
1331
|
-
function G(e, t,
|
|
1332
|
-
if (t == null || !
|
|
1331
|
+
function G(e, t, r) {
|
|
1332
|
+
if (t == null || !r)
|
|
1333
1333
|
return !1;
|
|
1334
|
-
if (
|
|
1334
|
+
if (r = r.h.prototype, t === r)
|
|
1335
1335
|
return !0;
|
|
1336
1336
|
for (t = ae(e, t); t; ) {
|
|
1337
|
-
if (t ===
|
|
1337
|
+
if (t === r)
|
|
1338
1338
|
return !0;
|
|
1339
1339
|
t = t.xa;
|
|
1340
1340
|
}
|
|
1341
1341
|
return !1;
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1344
|
-
t.data = new RegExp(
|
|
1343
|
+
function Kt(e, t, r) {
|
|
1344
|
+
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex, y), e.g(t, "source", r.source, K), e.g(t, "global", r.global, K), e.g(t, "ignoreCase", r.ignoreCase, K), e.g(t, "multiline", r.multiline, K);
|
|
1345
1345
|
}
|
|
1346
|
-
function Gt(e, t,
|
|
1347
|
-
|
|
1348
|
-
for (var
|
|
1349
|
-
var o = e.o[
|
|
1350
|
-
s.type === "CallExpression" && (o = o.U) &&
|
|
1346
|
+
function Gt(e, t, r) {
|
|
1347
|
+
r && e.g(t, "message", String(r), y), r = [];
|
|
1348
|
+
for (var n = e.o.length - 1; 0 <= n; n--) {
|
|
1349
|
+
var o = e.o[n], s = o.node;
|
|
1350
|
+
s.type === "CallExpression" && (o = o.U) && r.length && (r[r.length - 1].Ob = e.G(o, "name")), !s.X || r.length && s.type !== "CallExpression" || r.push({
|
|
1351
1351
|
Nb: s.X
|
|
1352
1352
|
});
|
|
1353
1353
|
}
|
|
1354
|
-
for (
|
|
1355
|
-
`,
|
|
1356
|
-
var a = n
|
|
1357
|
-
o = n
|
|
1354
|
+
for (n = String(e.G(t, "name")), s = String(e.G(t, "message")), s = n + ": " + s + `
|
|
1355
|
+
`, n = 0; n < r.length; n++) {
|
|
1356
|
+
var a = r[n].Nb;
|
|
1357
|
+
o = r[n].Ob, a = a.source + ":" + a.start.line + ":" + a.start.ab, s = o ? s + (" at " + o + " (" + a + `)
|
|
1358
1358
|
`) : s + (" at " + a + `
|
|
1359
1359
|
`);
|
|
1360
1360
|
}
|
|
@@ -1362,44 +1362,44 @@ function Gt(e, t, n) {
|
|
|
1362
1362
|
}
|
|
1363
1363
|
b.ha = function() {
|
|
1364
1364
|
var e = this.ha.Mb;
|
|
1365
|
-
return e || (e = new Blob([
|
|
1365
|
+
return e || (e = new Blob([Dn.join(`
|
|
1366
1366
|
`)], {
|
|
1367
1367
|
type: "application/javascript"
|
|
1368
1368
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1369
1369
|
};
|
|
1370
|
-
function Le(e, t,
|
|
1370
|
+
function Le(e, t, r, n, o) {
|
|
1371
1371
|
var s = {
|
|
1372
1372
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1373
1373
|
};
|
|
1374
1374
|
try {
|
|
1375
|
-
return se.runInNewContext(t,
|
|
1375
|
+
return se.runInNewContext(t, r, s);
|
|
1376
1376
|
} catch {
|
|
1377
|
-
o(null), w(e, e.D, "RegExp Timeout: " +
|
|
1377
|
+
o(null), w(e, e.D, "RegExp Timeout: " + n);
|
|
1378
1378
|
}
|
|
1379
|
-
return
|
|
1379
|
+
return ke;
|
|
1380
1380
|
}
|
|
1381
|
-
function Fe(e, t,
|
|
1381
|
+
function Fe(e, t, r) {
|
|
1382
1382
|
if (e.REGEXP_MODE === 0)
|
|
1383
|
-
var
|
|
1383
|
+
var n = !1;
|
|
1384
1384
|
else if (e.REGEXP_MODE === 1)
|
|
1385
|
-
|
|
1385
|
+
n = !0;
|
|
1386
1386
|
else if (se)
|
|
1387
|
-
|
|
1387
|
+
n = !0;
|
|
1388
1388
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1389
|
-
|
|
1389
|
+
n = !0;
|
|
1390
1390
|
else if (typeof require == "function") {
|
|
1391
1391
|
try {
|
|
1392
1392
|
se = require("vm");
|
|
1393
1393
|
} catch {
|
|
1394
1394
|
}
|
|
1395
|
-
|
|
1395
|
+
n = !!se;
|
|
1396
1396
|
} else
|
|
1397
|
-
|
|
1398
|
-
|
|
1397
|
+
n = !1;
|
|
1398
|
+
n || (r(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
1399
1399
|
}
|
|
1400
|
-
function We(e, t,
|
|
1400
|
+
function We(e, t, r, n) {
|
|
1401
1401
|
return setTimeout(function() {
|
|
1402
|
-
|
|
1402
|
+
r.terminate(), n(null);
|
|
1403
1403
|
try {
|
|
1404
1404
|
w(e, e.D, "RegExp Timeout: " + t);
|
|
1405
1405
|
} catch {
|
|
@@ -1422,20 +1422,20 @@ function Oe(e) {
|
|
|
1422
1422
|
writable: !0
|
|
1423
1423
|
}), t.H = "Array", t;
|
|
1424
1424
|
}
|
|
1425
|
-
function
|
|
1426
|
-
var
|
|
1427
|
-
return
|
|
1425
|
+
function zt(e, t, r) {
|
|
1426
|
+
var n = e.s(e.Z);
|
|
1427
|
+
return r ? (r = e.s(e.M), e.g(n, "prototype", r, y), e.g(r, "constructor", n, y)) : n.Ab = !0, e.g(n, "length", t, K), n.H = "Function", n;
|
|
1428
1428
|
}
|
|
1429
|
-
function Yt(e, t,
|
|
1430
|
-
var o =
|
|
1431
|
-
return o.Va =
|
|
1429
|
+
function Yt(e, t, r, n) {
|
|
1430
|
+
var o = zt(e, t.oa.length, !0);
|
|
1431
|
+
return o.Va = r, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : n || "", K), o;
|
|
1432
1432
|
}
|
|
1433
1433
|
b.i = function(e, t) {
|
|
1434
|
-
return t =
|
|
1434
|
+
return t = zt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, K), t;
|
|
1435
1435
|
};
|
|
1436
1436
|
b.ub = function(e) {
|
|
1437
|
-
var t =
|
|
1438
|
-
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1437
|
+
var t = zt(this, e.length, !0);
|
|
1438
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, K), t;
|
|
1439
1439
|
};
|
|
1440
1440
|
b.Ia = function(e) {
|
|
1441
1441
|
if (e instanceof j)
|
|
@@ -1444,28 +1444,28 @@ b.Ia = function(e) {
|
|
|
1444
1444
|
return e;
|
|
1445
1445
|
if (e instanceof RegExp) {
|
|
1446
1446
|
var t = this.s(this.Ma);
|
|
1447
|
-
return
|
|
1447
|
+
return Kt(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;
|
|
1451
1451
|
if (typeof e == "function") {
|
|
1452
|
-
var
|
|
1452
|
+
var r = this;
|
|
1453
1453
|
return t = Object.getOwnPropertyDescriptor(e, "prototype"), this.i(function() {
|
|
1454
1454
|
var o = Array.prototype.slice.call(arguments).map(function(s) {
|
|
1455
|
-
return
|
|
1455
|
+
return r.R(s);
|
|
1456
1456
|
});
|
|
1457
|
-
return o = e.apply(
|
|
1457
|
+
return o = e.apply(r, o), r.Ia(o);
|
|
1458
1458
|
}, !!t);
|
|
1459
1459
|
}
|
|
1460
1460
|
if (Array.isArray(e)) {
|
|
1461
1461
|
t = Oe(this);
|
|
1462
|
-
for (var
|
|
1463
|
-
|
|
1462
|
+
for (var n = 0; n < e.length; n++)
|
|
1463
|
+
n in e && this.g(t, n, this.Ia(e[n]));
|
|
1464
1464
|
return t;
|
|
1465
1465
|
}
|
|
1466
1466
|
t = this.s(this.M);
|
|
1467
|
-
for (
|
|
1468
|
-
this.g(t,
|
|
1467
|
+
for (n in e)
|
|
1468
|
+
this.g(t, n, this.Ia(e[n]));
|
|
1469
1469
|
return t;
|
|
1470
1470
|
};
|
|
1471
1471
|
b.R = function(e, t) {
|
|
@@ -1481,33 +1481,33 @@ b.R = function(e, t) {
|
|
|
1481
1481
|
hb: [],
|
|
1482
1482
|
Sa: []
|
|
1483
1483
|
};
|
|
1484
|
-
var
|
|
1485
|
-
if (
|
|
1486
|
-
return t.Sa[
|
|
1484
|
+
var r = t.hb.indexOf(e);
|
|
1485
|
+
if (r !== -1)
|
|
1486
|
+
return t.Sa[r];
|
|
1487
1487
|
if (t.hb.push(e), G(this, e, this.qa)) {
|
|
1488
|
-
|
|
1489
|
-
for (var
|
|
1490
|
-
ut(this, e, o) && (
|
|
1488
|
+
r = [], t.Sa.push(r);
|
|
1489
|
+
for (var n = this.G(e, "length"), o = 0; o < n; o++)
|
|
1490
|
+
ut(this, e, o) && (r[o] = this.R(this.G(e, o), t));
|
|
1491
1491
|
} else
|
|
1492
|
-
for (
|
|
1493
|
-
o = this.R(e.h[
|
|
1492
|
+
for (n in r = {}, t.Sa.push(r), e.h)
|
|
1493
|
+
o = this.R(e.h[n], t), Object.defineProperty(r, n, {
|
|
1494
1494
|
value: o,
|
|
1495
1495
|
writable: !0,
|
|
1496
1496
|
enumerable: !0,
|
|
1497
1497
|
configurable: !0
|
|
1498
1498
|
});
|
|
1499
|
-
return t.hb.pop(), t.Sa.pop(),
|
|
1499
|
+
return t.hb.pop(), t.Sa.pop(), r;
|
|
1500
1500
|
};
|
|
1501
1501
|
function ie(e, t) {
|
|
1502
|
-
for (var
|
|
1503
|
-
e.g(
|
|
1504
|
-
return
|
|
1502
|
+
for (var r = Oe(e), n = Object.getOwnPropertyNames(t), o = 0; o < n.length; o++)
|
|
1503
|
+
e.g(r, n[o], t[n[o]]);
|
|
1504
|
+
return r;
|
|
1505
1505
|
}
|
|
1506
1506
|
function zr(e, t) {
|
|
1507
|
-
var
|
|
1508
|
-
for (
|
|
1509
|
-
n
|
|
1510
|
-
return
|
|
1507
|
+
var r = [], n;
|
|
1508
|
+
for (n in t.h)
|
|
1509
|
+
r[n] = e.G(t, n);
|
|
1510
|
+
return r.length = Jt(e.G(t, "length")) || 0, r;
|
|
1511
1511
|
}
|
|
1512
1512
|
function ae(e, t) {
|
|
1513
1513
|
switch (typeof t) {
|
|
@@ -1529,37 +1529,37 @@ b.G = function(e, t) {
|
|
|
1529
1529
|
if (G(this, e, this.J))
|
|
1530
1530
|
return String(e).length;
|
|
1531
1531
|
} else if (64 > t.charCodeAt(0) && G(this, e, this.J)) {
|
|
1532
|
-
var
|
|
1533
|
-
if (!isNaN(
|
|
1534
|
-
return String(e)[
|
|
1532
|
+
var r = Ve(t);
|
|
1533
|
+
if (!isNaN(r) && r < String(e).length)
|
|
1534
|
+
return String(e)[r];
|
|
1535
1535
|
}
|
|
1536
1536
|
do
|
|
1537
1537
|
if (e.h && t in e.h)
|
|
1538
|
-
return (
|
|
1538
|
+
return (r = e.V[t]) ? (this.P = !0, r) : e.h[t];
|
|
1539
1539
|
while (e = ae(this, e));
|
|
1540
1540
|
};
|
|
1541
|
-
function ut(e, t,
|
|
1541
|
+
function ut(e, t, r) {
|
|
1542
1542
|
if (!(t instanceof j))
|
|
1543
1543
|
throw TypeError("Primitive data type has no properties");
|
|
1544
|
-
if (
|
|
1544
|
+
if (r = String(r), r === "length" && G(e, t, e.J))
|
|
1545
1545
|
return !0;
|
|
1546
1546
|
if (G(e, t, e.J)) {
|
|
1547
|
-
var
|
|
1548
|
-
if (!isNaN(
|
|
1547
|
+
var n = Ve(r);
|
|
1548
|
+
if (!isNaN(n) && n < String(t).length)
|
|
1549
1549
|
return !0;
|
|
1550
1550
|
}
|
|
1551
1551
|
do
|
|
1552
|
-
if (t.h &&
|
|
1552
|
+
if (t.h && r in t.h)
|
|
1553
1553
|
return !0;
|
|
1554
1554
|
while (t = ae(e, t));
|
|
1555
1555
|
return !1;
|
|
1556
1556
|
}
|
|
1557
|
-
b.g = function(e, t,
|
|
1557
|
+
b.g = function(e, t, r, n) {
|
|
1558
1558
|
if (this.Ka)
|
|
1559
1559
|
throw Error("Setter not supported in that context");
|
|
1560
1560
|
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof j))
|
|
1561
1561
|
throw TypeError("Expecting native value or pseudo object");
|
|
1562
|
-
|
|
1562
|
+
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) && w(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1563
1563
|
var o = !this.o || Zt(this).S;
|
|
1564
1564
|
if (e instanceof j) {
|
|
1565
1565
|
if (G(this, e, this.J)) {
|
|
@@ -1571,42 +1571,42 @@ b.g = function(e, t, n, r) {
|
|
|
1571
1571
|
}
|
|
1572
1572
|
if (e.H === "Array")
|
|
1573
1573
|
if (s = e.h.length, t === "length") {
|
|
1574
|
-
if (
|
|
1575
|
-
if (!("value" in
|
|
1574
|
+
if (n) {
|
|
1575
|
+
if (!("value" in n))
|
|
1576
1576
|
return;
|
|
1577
|
-
|
|
1577
|
+
r = n.value;
|
|
1578
1578
|
}
|
|
1579
|
-
if (
|
|
1579
|
+
if (r = Jt(r), isNaN(r) && w(this, this.ob, "Invalid array length"), r < s)
|
|
1580
1580
|
for (a in e.h) {
|
|
1581
1581
|
var a = Ve(a);
|
|
1582
|
-
!isNaN(a) &&
|
|
1582
|
+
!isNaN(a) && r <= a && delete e.h[a];
|
|
1583
1583
|
}
|
|
1584
1584
|
} else
|
|
1585
1585
|
isNaN(a = Ve(t)) || (e.h.length = Math.max(s, a + 1));
|
|
1586
1586
|
if (!e.preventExtensions || t in e.h)
|
|
1587
|
-
if (
|
|
1588
|
-
o = {}, "get" in
|
|
1587
|
+
if (n) {
|
|
1588
|
+
o = {}, "get" in n && n.get && (e.V[t] = n.get, o.get = this.g.ac), "set" in n && n.set && (e.Y[t] = n.set, o.set = this.g.bc), "configurable" in n && (o.configurable = n.configurable), "enumerable" in n && (o.enumerable = n.enumerable), "writable" in n && (o.writable = n.writable, delete e.V[t], delete e.Y[t]), "value" in n ? (o.value = n.value, delete e.V[t], delete e.Y[t]) : r !== Je && (o.value = r, delete e.V[t], delete e.Y[t]);
|
|
1589
1589
|
try {
|
|
1590
1590
|
Object.defineProperty(e.h, t, o);
|
|
1591
1591
|
} catch {
|
|
1592
1592
|
w(this, this.j, "Cannot redefine property: " + t);
|
|
1593
1593
|
}
|
|
1594
|
-
"get" in
|
|
1594
|
+
"get" in n && !n.get && delete e.V[t], "set" in n && !n.set && delete e.Y[t];
|
|
1595
1595
|
} else {
|
|
1596
|
-
if (
|
|
1596
|
+
if (r === Je)
|
|
1597
1597
|
throw ReferenceError("Value not specified");
|
|
1598
|
-
for (
|
|
1599
|
-
if (
|
|
1600
|
-
|
|
1598
|
+
for (n = e; !(t in n.h); )
|
|
1599
|
+
if (n = ae(this, n), !n) {
|
|
1600
|
+
n = e;
|
|
1601
1601
|
break;
|
|
1602
1602
|
}
|
|
1603
|
-
if (
|
|
1604
|
-
return this.Ka = !0,
|
|
1605
|
-
if (
|
|
1603
|
+
if (n.Y && n.Y[t])
|
|
1604
|
+
return this.Ka = !0, n.Y[t];
|
|
1605
|
+
if (n.V && n.V[t])
|
|
1606
1606
|
o && w(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1607
1607
|
else
|
|
1608
1608
|
try {
|
|
1609
|
-
e.h[t] =
|
|
1609
|
+
e.h[t] = r;
|
|
1610
1610
|
} catch {
|
|
1611
1611
|
o && w(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1612
1612
|
}
|
|
@@ -1622,69 +1622,69 @@ b.g.ac = function() {
|
|
|
1622
1622
|
b.g.bc = function() {
|
|
1623
1623
|
throw Error("Placeholder setter");
|
|
1624
1624
|
};
|
|
1625
|
-
function F(e, t,
|
|
1626
|
-
e.g(t.h.prototype,
|
|
1625
|
+
function F(e, t, r, n) {
|
|
1626
|
+
e.g(t.h.prototype, r, e.i(n, !1), y);
|
|
1627
1627
|
}
|
|
1628
|
-
function Ge(e, t,
|
|
1629
|
-
e.g(t.h.prototype,
|
|
1628
|
+
function Ge(e, t, r, n) {
|
|
1629
|
+
e.g(t.h.prototype, r, e.ub(n), y);
|
|
1630
1630
|
}
|
|
1631
1631
|
function Zt(e) {
|
|
1632
1632
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1633
1633
|
throw Error("No scope found");
|
|
1634
1634
|
return e;
|
|
1635
1635
|
}
|
|
1636
|
-
function $t(e, t,
|
|
1637
|
-
var
|
|
1638
|
-
if (
|
|
1639
|
-
|
|
1636
|
+
function $t(e, t, r) {
|
|
1637
|
+
var n = !1;
|
|
1638
|
+
if (r && r.S)
|
|
1639
|
+
n = !0;
|
|
1640
1640
|
else {
|
|
1641
1641
|
var o = t.body && t.body[0];
|
|
1642
|
-
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (
|
|
1642
|
+
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (n = !0);
|
|
1643
1643
|
}
|
|
1644
|
-
return o = e.s(null),
|
|
1644
|
+
return o = e.s(null), n = new Qr(r, n, o), r || _n(e, n.object), Ke(e, t, n), n;
|
|
1645
1645
|
}
|
|
1646
|
-
function Qt(e, t,
|
|
1646
|
+
function Qt(e, t, r) {
|
|
1647
1647
|
if (!t)
|
|
1648
1648
|
throw Error("parentScope required");
|
|
1649
|
-
return e =
|
|
1649
|
+
return e = r || e.s(null), new Qr(t, t.S, e);
|
|
1650
1650
|
}
|
|
1651
1651
|
function qt(e, t) {
|
|
1652
|
-
for (var
|
|
1653
|
-
if (t in
|
|
1654
|
-
return
|
|
1655
|
-
|
|
1652
|
+
for (var r = Zt(e); r && r !== e.N; ) {
|
|
1653
|
+
if (t in r.object.h)
|
|
1654
|
+
return r.object.h[t];
|
|
1655
|
+
r = r.Va;
|
|
1656
1656
|
}
|
|
1657
|
-
if (
|
|
1658
|
-
return e.G(
|
|
1659
|
-
|
|
1657
|
+
if (r === e.N && ut(e, r.object, t))
|
|
1658
|
+
return e.G(r.object, t);
|
|
1659
|
+
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1662
|
-
for (var
|
|
1663
|
-
if (t in
|
|
1661
|
+
function Yr(e, t, r) {
|
|
1662
|
+
for (var n = Zt(e), o = n.S; n && n !== e.N; ) {
|
|
1663
|
+
if (t in n.object.h) {
|
|
1664
1664
|
try {
|
|
1665
|
-
|
|
1665
|
+
n.object.h[t] = r;
|
|
1666
1666
|
} catch {
|
|
1667
1667
|
o && w(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1668
1668
|
}
|
|
1669
1669
|
return;
|
|
1670
1670
|
}
|
|
1671
|
-
|
|
1671
|
+
n = n.Va;
|
|
1672
1672
|
}
|
|
1673
|
-
if (
|
|
1674
|
-
return e.g(
|
|
1673
|
+
if (n === e.N && (!o || ut(e, n.object, t)))
|
|
1674
|
+
return e.g(n.object, t, r);
|
|
1675
1675
|
w(e, e.pb, t + " is not defined");
|
|
1676
1676
|
}
|
|
1677
|
-
function
|
|
1677
|
+
function Ke(e, t, r) {
|
|
1678
1678
|
if (t.jb)
|
|
1679
|
-
var
|
|
1679
|
+
var n = t.jb;
|
|
1680
1680
|
else {
|
|
1681
|
-
switch (
|
|
1681
|
+
switch (n = /* @__PURE__ */ Object.create(null), t.type) {
|
|
1682
1682
|
case "VariableDeclaration":
|
|
1683
1683
|
for (var o = 0; o < t.fa.length; o++)
|
|
1684
|
-
|
|
1684
|
+
n[t.fa[o].id.name] = !0;
|
|
1685
1685
|
break;
|
|
1686
1686
|
case "FunctionDeclaration":
|
|
1687
|
-
|
|
1687
|
+
n[t.id.name] = t;
|
|
1688
1688
|
break;
|
|
1689
1689
|
case "BlockStatement":
|
|
1690
1690
|
case "CatchClause":
|
|
@@ -1707,21 +1707,21 @@ function ze(e, t, n) {
|
|
|
1707
1707
|
if (Array.isArray(f)) {
|
|
1708
1708
|
for (o = 0; o < f.length; o++)
|
|
1709
1709
|
if (f[o] && f[o].constructor === s) {
|
|
1710
|
-
var d =
|
|
1710
|
+
var d = Ke(e, f[o], r);
|
|
1711
1711
|
for (a in d)
|
|
1712
|
-
|
|
1712
|
+
n[a] = d[a];
|
|
1713
1713
|
}
|
|
1714
1714
|
} else if (f.constructor === s)
|
|
1715
|
-
for (a in d =
|
|
1716
|
-
|
|
1715
|
+
for (a in d = Ke(e, f, r), d)
|
|
1716
|
+
n[a] = d[a];
|
|
1717
1717
|
}
|
|
1718
1718
|
}
|
|
1719
1719
|
}
|
|
1720
|
-
t.jb =
|
|
1720
|
+
t.jb = n;
|
|
1721
1721
|
}
|
|
1722
|
-
for (a in
|
|
1723
|
-
|
|
1724
|
-
return
|
|
1722
|
+
for (a in n)
|
|
1723
|
+
n[a] === !0 ? e.g(r.object, a, void 0, _r) : e.g(r.object, a, Yt(e, n[a], r), _r);
|
|
1724
|
+
return n;
|
|
1725
1725
|
}
|
|
1726
1726
|
function le(e) {
|
|
1727
1727
|
return e.o[e.o.length - 1].isConstructor;
|
|
@@ -1729,13 +1729,13 @@ function le(e) {
|
|
|
1729
1729
|
function er(e, t) {
|
|
1730
1730
|
return t[0] === je ? qt(e, t[1]) : e.G(t[0], t[1]);
|
|
1731
1731
|
}
|
|
1732
|
-
function tr(e, t,
|
|
1733
|
-
return t[0] === je ?
|
|
1732
|
+
function tr(e, t, r) {
|
|
1733
|
+
return t[0] === je ? Yr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1734
1734
|
}
|
|
1735
|
-
function w(e, t,
|
|
1736
|
-
throw e.N ? (
|
|
1735
|
+
function w(e, t, r) {
|
|
1736
|
+
throw e.N ? (r !== void 0 && t instanceof j && (t = e.Aa(t), Gt(e, t, r)), ze(e, 4, t), Kr) : r === void 0 ? t : r;
|
|
1737
1737
|
}
|
|
1738
|
-
function
|
|
1738
|
+
function ze(e, t, r, n) {
|
|
1739
1739
|
if (t === 0)
|
|
1740
1740
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
1741
1741
|
var o = e.o;
|
|
@@ -1746,14 +1746,14 @@ function Ke(e, t, n, r) {
|
|
|
1746
1746
|
case "TryStatement":
|
|
1747
1747
|
s.ea = {
|
|
1748
1748
|
type: t,
|
|
1749
|
-
value:
|
|
1750
|
-
label:
|
|
1749
|
+
value: r,
|
|
1750
|
+
label: n
|
|
1751
1751
|
};
|
|
1752
1752
|
return;
|
|
1753
1753
|
case "CallExpression":
|
|
1754
1754
|
case "NewExpression":
|
|
1755
1755
|
if (t === 3) {
|
|
1756
|
-
s.value =
|
|
1756
|
+
s.value = r;
|
|
1757
1757
|
return;
|
|
1758
1758
|
}
|
|
1759
1759
|
if (t !== 4)
|
|
@@ -1764,21 +1764,21 @@ function Ke(e, t, n, r) {
|
|
|
1764
1764
|
break e;
|
|
1765
1765
|
}
|
|
1766
1766
|
if (t === 1) {
|
|
1767
|
-
if (
|
|
1767
|
+
if (n ? s.labels && s.labels.indexOf(n) !== -1 : s.W || s.Zb) {
|
|
1768
1768
|
o.pop();
|
|
1769
1769
|
return;
|
|
1770
1770
|
}
|
|
1771
|
-
} else if (t === 2 && (
|
|
1771
|
+
} else if (t === 2 && (n ? s.labels && s.labels.indexOf(n) !== -1 : s.W))
|
|
1772
1772
|
return;
|
|
1773
1773
|
}
|
|
1774
|
-
throw G(e,
|
|
1774
|
+
throw G(e, r, e.D) ? (t = {
|
|
1775
1775
|
EvalError,
|
|
1776
1776
|
RangeError,
|
|
1777
1777
|
ReferenceError,
|
|
1778
1778
|
SyntaxError,
|
|
1779
1779
|
TypeError,
|
|
1780
1780
|
URIError
|
|
1781
|
-
},
|
|
1781
|
+
}, n = String(e.G(r, "name")), o = e.G(r, "message").valueOf(), t = (t[n] || Error)(o), t.stack = String(e.G(r, "stack"))) : t = String(r), e.value = t, t;
|
|
1782
1782
|
}
|
|
1783
1783
|
function H(e, t) {
|
|
1784
1784
|
switch (t.type) {
|
|
@@ -1796,8 +1796,8 @@ function H(e, t) {
|
|
|
1796
1796
|
case "Literal":
|
|
1797
1797
|
return t.raw;
|
|
1798
1798
|
case "MemberExpression":
|
|
1799
|
-
var
|
|
1800
|
-
return e = H(e, t.Wa), t.bb ?
|
|
1799
|
+
var r = H(e, t.object);
|
|
1800
|
+
return e = H(e, t.Wa), t.bb ? r + "[" + e + "]" : r + "." + e;
|
|
1801
1801
|
case "NewExpression":
|
|
1802
1802
|
return "new " + H(e, t.callee) + "(...)";
|
|
1803
1803
|
case "ObjectExpression":
|
|
@@ -1807,52 +1807,52 @@ function H(e, t) {
|
|
|
1807
1807
|
case "UnaryExpression":
|
|
1808
1808
|
return t.operator + " " + H(e, t.K);
|
|
1809
1809
|
case "UpdateExpression":
|
|
1810
|
-
return
|
|
1810
|
+
return r = H(e, t.K), t.prefix ? t.operator + r : r + t.operator;
|
|
1811
1811
|
}
|
|
1812
1812
|
return "???";
|
|
1813
1813
|
}
|
|
1814
|
-
function Lr(e, t,
|
|
1815
|
-
var
|
|
1816
|
-
|
|
1814
|
+
function Lr(e, t, r) {
|
|
1815
|
+
var n = e.o[e.o.length - 1], o = Array.from(r), s = o.shift();
|
|
1816
|
+
r = Math.max(Number(o.shift() || 0), 0);
|
|
1817
1817
|
var a = e.ya();
|
|
1818
1818
|
if (s instanceof j && s.H === "Function") {
|
|
1819
1819
|
var f = s;
|
|
1820
|
-
a.type = "CallExpression",
|
|
1820
|
+
a.type = "CallExpression", n = n.scope;
|
|
1821
1821
|
} else {
|
|
1822
1822
|
try {
|
|
1823
1823
|
var d = Ce(String(s), "taskCode" + e.ic++);
|
|
1824
1824
|
} catch (v) {
|
|
1825
1825
|
w(e, e.T, "Invalid code: " + v.message);
|
|
1826
1826
|
}
|
|
1827
|
-
a.type = "EvalProgram_", a.body = d.body,
|
|
1827
|
+
a.type = "EvalProgram_", a.body = d.body, n = n.node.arguments[0], lt(a, n ? n.start : void 0, n ? n.end : void 0), n = e.N, o.length = 0;
|
|
1828
1828
|
}
|
|
1829
|
-
return t = new zn(f, o,
|
|
1829
|
+
return t = new zn(f, o, n, a, t ? r : -1), Zr(e, t, r), t.Db;
|
|
1830
1830
|
}
|
|
1831
|
-
function
|
|
1832
|
-
t.time = Date.now() +
|
|
1833
|
-
return
|
|
1831
|
+
function Zr(e, t, r) {
|
|
1832
|
+
t.time = Date.now() + r, e.ca.push(t), e.ca.sort(function(n, o) {
|
|
1833
|
+
return n.time - o.time;
|
|
1834
1834
|
});
|
|
1835
1835
|
}
|
|
1836
1836
|
function Fr(e, t) {
|
|
1837
|
-
for (var
|
|
1838
|
-
if (e.ca[
|
|
1839
|
-
e.ca.splice(
|
|
1837
|
+
for (var r = 0; r < e.ca.length; r++)
|
|
1838
|
+
if (e.ca[r].Db == t) {
|
|
1839
|
+
e.ca.splice(r, 1);
|
|
1840
1840
|
break;
|
|
1841
1841
|
}
|
|
1842
1842
|
}
|
|
1843
|
-
function Ye(e, t,
|
|
1843
|
+
function Ye(e, t, r) {
|
|
1844
1844
|
if (!e.P)
|
|
1845
1845
|
throw Error("Unexpected call to createGetter");
|
|
1846
|
-
e.P = !1,
|
|
1847
|
-
var
|
|
1848
|
-
return
|
|
1846
|
+
e.P = !1, r = Array.isArray(r) ? r[0] : r;
|
|
1847
|
+
var n = e.ya();
|
|
1848
|
+
return n.type = "CallExpression", e = new m(n, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1849
1849
|
}
|
|
1850
|
-
function rr(e, t,
|
|
1850
|
+
function rr(e, t, r, n) {
|
|
1851
1851
|
if (!e.Ka)
|
|
1852
1852
|
throw Error("Unexpected call to createSetter");
|
|
1853
|
-
e.Ka = !1,
|
|
1853
|
+
e.Ka = !1, r = Array.isArray(r) ? r[0] : e.Na;
|
|
1854
1854
|
var o = e.ya();
|
|
1855
|
-
return o.type = "CallExpression", e = new m(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B =
|
|
1855
|
+
return o.type = "CallExpression", e = new m(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [n], e;
|
|
1856
1856
|
}
|
|
1857
1857
|
function Dt(e, t) {
|
|
1858
1858
|
return t == null ? e.Na : t instanceof j ? t : (e = e.s(ae(e, t)), e.data = t, e);
|
|
@@ -1869,8 +1869,8 @@ b.ec = function(e) {
|
|
|
1869
1869
|
function m(e, t) {
|
|
1870
1870
|
this.node = e, this.scope = t;
|
|
1871
1871
|
}
|
|
1872
|
-
function
|
|
1873
|
-
this.Va = e, this.S = t, this.object =
|
|
1872
|
+
function Qr(e, t, r) {
|
|
1873
|
+
this.Va = e, this.S = t, this.object = r;
|
|
1874
1874
|
}
|
|
1875
1875
|
function j(e) {
|
|
1876
1876
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
@@ -1888,13 +1888,13 @@ b.toString = function() {
|
|
|
1888
1888
|
var e = Ur;
|
|
1889
1889
|
e.push(this);
|
|
1890
1890
|
try {
|
|
1891
|
-
var t = [],
|
|
1892
|
-
1024 <
|
|
1893
|
-
for (var o = 0; o <
|
|
1891
|
+
var t = [], r = this.h.length, n = !1;
|
|
1892
|
+
1024 < r && (r = 1e3, n = !0);
|
|
1893
|
+
for (var o = 0; o < r; o++) {
|
|
1894
1894
|
var s = this.h[o];
|
|
1895
1895
|
t[o] = s instanceof j && e.indexOf(s) !== -1 ? "..." : s;
|
|
1896
1896
|
}
|
|
1897
|
-
|
|
1897
|
+
n && t.push("...");
|
|
1898
1898
|
} finally {
|
|
1899
1899
|
e.pop();
|
|
1900
1900
|
}
|
|
@@ -1903,192 +1903,192 @@ b.toString = function() {
|
|
|
1903
1903
|
if (this.H === "Error") {
|
|
1904
1904
|
if (e = Ur, e.indexOf(this) !== -1)
|
|
1905
1905
|
return "[object Error]";
|
|
1906
|
-
|
|
1906
|
+
r = this;
|
|
1907
1907
|
do
|
|
1908
|
-
if ("name" in
|
|
1909
|
-
t =
|
|
1908
|
+
if ("name" in r.h) {
|
|
1909
|
+
t = r.h.name;
|
|
1910
1910
|
break;
|
|
1911
1911
|
}
|
|
1912
|
-
while (
|
|
1913
|
-
|
|
1912
|
+
while (r = r.xa);
|
|
1913
|
+
r = this;
|
|
1914
1914
|
do
|
|
1915
|
-
if ("message" in
|
|
1916
|
-
|
|
1915
|
+
if ("message" in r.h) {
|
|
1916
|
+
n = r.h.message;
|
|
1917
1917
|
break;
|
|
1918
1918
|
}
|
|
1919
|
-
while (
|
|
1919
|
+
while (r = r.xa);
|
|
1920
1920
|
e.push(this);
|
|
1921
1921
|
try {
|
|
1922
|
-
t = t && String(t),
|
|
1922
|
+
t = t && String(t), n = n && String(n);
|
|
1923
1923
|
} finally {
|
|
1924
1924
|
e.pop();
|
|
1925
1925
|
}
|
|
1926
|
-
return
|
|
1926
|
+
return n ? t + ": " + n : String(t);
|
|
1927
1927
|
}
|
|
1928
1928
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1929
1929
|
};
|
|
1930
1930
|
b.valueOf = function() {
|
|
1931
1931
|
return !$e || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1932
1932
|
};
|
|
1933
|
-
function zn(e, t,
|
|
1934
|
-
this.zb = e, this.Lb = t, this.scope =
|
|
1935
|
-
}
|
|
1936
|
-
var
|
|
1937
|
-
h.prototype.stepArrayExpression = function(e, t,
|
|
1938
|
-
|
|
1939
|
-
var
|
|
1940
|
-
for (t.Oa ? (this.g(t.Oa,
|
|
1941
|
-
if (n
|
|
1942
|
-
return t.A =
|
|
1943
|
-
|
|
1933
|
+
function zn(e, t, r, n, o) {
|
|
1934
|
+
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = o, this.Db = ++Yn, this.time = 0;
|
|
1935
|
+
}
|
|
1936
|
+
var Yn = 0;
|
|
1937
|
+
h.prototype.stepArrayExpression = function(e, t, r) {
|
|
1938
|
+
r = r.elements;
|
|
1939
|
+
var n = t.A || 0;
|
|
1940
|
+
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa = Oe(this), t.Oa.h.length = r.length); n < r.length; ) {
|
|
1941
|
+
if (r[n])
|
|
1942
|
+
return t.A = n, new m(r[n], t.scope);
|
|
1943
|
+
n++;
|
|
1944
1944
|
}
|
|
1945
1945
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
1946
1946
|
};
|
|
1947
|
-
h.prototype.stepAssignmentExpression = function(e, t,
|
|
1947
|
+
h.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
1948
1948
|
if (!t.ja)
|
|
1949
|
-
return t.ja = !0, t = new m(
|
|
1949
|
+
return t.ja = !0, t = new m(r.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 &&
|
|
1951
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e = er(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Ye(this, e, t.Fa)) : (t.Da = !0, r.operator === "=" && r.left.type === "Identifier" && (t.Pa = r.left.name), new m(r.right, t.scope));
|
|
1952
1952
|
if (t.ta)
|
|
1953
1953
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1954
1954
|
else {
|
|
1955
|
-
var
|
|
1956
|
-
switch (
|
|
1955
|
+
var n = t.ma, o = t.value;
|
|
1956
|
+
switch (r.operator) {
|
|
1957
1957
|
case "=":
|
|
1958
|
-
|
|
1958
|
+
n = o;
|
|
1959
1959
|
break;
|
|
1960
1960
|
case "+=":
|
|
1961
|
-
|
|
1961
|
+
n += o;
|
|
1962
1962
|
break;
|
|
1963
1963
|
case "-=":
|
|
1964
|
-
|
|
1964
|
+
n -= o;
|
|
1965
1965
|
break;
|
|
1966
1966
|
case "*=":
|
|
1967
|
-
|
|
1967
|
+
n *= o;
|
|
1968
1968
|
break;
|
|
1969
1969
|
case "/=":
|
|
1970
|
-
|
|
1970
|
+
n /= o;
|
|
1971
1971
|
break;
|
|
1972
1972
|
case "%=":
|
|
1973
|
-
|
|
1973
|
+
n %= o;
|
|
1974
1974
|
break;
|
|
1975
1975
|
case "<<=":
|
|
1976
|
-
|
|
1976
|
+
n <<= o;
|
|
1977
1977
|
break;
|
|
1978
1978
|
case ">>=":
|
|
1979
|
-
|
|
1979
|
+
n >>= o;
|
|
1980
1980
|
break;
|
|
1981
1981
|
case ">>>=":
|
|
1982
|
-
|
|
1982
|
+
n >>>= o;
|
|
1983
1983
|
break;
|
|
1984
1984
|
case "&=":
|
|
1985
|
-
|
|
1985
|
+
n &= o;
|
|
1986
1986
|
break;
|
|
1987
1987
|
case "^=":
|
|
1988
|
-
|
|
1988
|
+
n ^= o;
|
|
1989
1989
|
break;
|
|
1990
1990
|
case "|=":
|
|
1991
|
-
|
|
1991
|
+
n |= o;
|
|
1992
1992
|
break;
|
|
1993
1993
|
default:
|
|
1994
|
-
throw SyntaxError("Unknown assignment expression: " +
|
|
1994
|
+
throw SyntaxError("Unknown assignment expression: " + r.operator);
|
|
1995
1995
|
}
|
|
1996
|
-
if (
|
|
1997
|
-
return t.ta = !0, t.ib =
|
|
1998
|
-
e.pop(), e[e.length - 1].value =
|
|
1996
|
+
if (r = tr(this, t.Fa, n))
|
|
1997
|
+
return t.ta = !0, t.ib = n, rr(this, r, t.Fa, n);
|
|
1998
|
+
e.pop(), e[e.length - 1].value = n;
|
|
1999
1999
|
}
|
|
2000
2000
|
};
|
|
2001
|
-
h.prototype.stepBinaryExpression = function(e, t,
|
|
2001
|
+
h.prototype.stepBinaryExpression = function(e, t, r) {
|
|
2002
2002
|
if (!t.ja)
|
|
2003
|
-
return t.ja = !0, new m(
|
|
2003
|
+
return t.ja = !0, new m(r.left, t.scope);
|
|
2004
2004
|
if (!t.Da)
|
|
2005
|
-
return t.Da = !0, t.ma = t.value, new m(
|
|
2005
|
+
return t.Da = !0, t.ma = t.value, new m(r.right, t.scope);
|
|
2006
2006
|
e.pop();
|
|
2007
|
-
var
|
|
2008
|
-
switch (t = t.value,
|
|
2007
|
+
var n = t.ma;
|
|
2008
|
+
switch (t = t.value, r.operator) {
|
|
2009
2009
|
case "==":
|
|
2010
|
-
|
|
2010
|
+
r = n == t;
|
|
2011
2011
|
break;
|
|
2012
2012
|
case "!=":
|
|
2013
|
-
|
|
2013
|
+
r = n != t;
|
|
2014
2014
|
break;
|
|
2015
2015
|
case "===":
|
|
2016
|
-
|
|
2016
|
+
r = n === t;
|
|
2017
2017
|
break;
|
|
2018
2018
|
case "!==":
|
|
2019
|
-
|
|
2019
|
+
r = n !== t;
|
|
2020
2020
|
break;
|
|
2021
2021
|
case ">":
|
|
2022
|
-
|
|
2022
|
+
r = n > t;
|
|
2023
2023
|
break;
|
|
2024
2024
|
case ">=":
|
|
2025
|
-
|
|
2025
|
+
r = n >= t;
|
|
2026
2026
|
break;
|
|
2027
2027
|
case "<":
|
|
2028
|
-
|
|
2028
|
+
r = n < t;
|
|
2029
2029
|
break;
|
|
2030
2030
|
case "<=":
|
|
2031
|
-
|
|
2031
|
+
r = n <= t;
|
|
2032
2032
|
break;
|
|
2033
2033
|
case "+":
|
|
2034
|
-
|
|
2034
|
+
r = n + t;
|
|
2035
2035
|
break;
|
|
2036
2036
|
case "-":
|
|
2037
|
-
|
|
2037
|
+
r = n - t;
|
|
2038
2038
|
break;
|
|
2039
2039
|
case "*":
|
|
2040
|
-
|
|
2040
|
+
r = n * t;
|
|
2041
2041
|
break;
|
|
2042
2042
|
case "/":
|
|
2043
|
-
|
|
2043
|
+
r = n / t;
|
|
2044
2044
|
break;
|
|
2045
2045
|
case "%":
|
|
2046
|
-
|
|
2046
|
+
r = n % t;
|
|
2047
2047
|
break;
|
|
2048
2048
|
case "&":
|
|
2049
|
-
|
|
2049
|
+
r = n & t;
|
|
2050
2050
|
break;
|
|
2051
2051
|
case "|":
|
|
2052
|
-
|
|
2052
|
+
r = n | t;
|
|
2053
2053
|
break;
|
|
2054
2054
|
case "^":
|
|
2055
|
-
|
|
2055
|
+
r = n ^ t;
|
|
2056
2056
|
break;
|
|
2057
2057
|
case "<<":
|
|
2058
|
-
|
|
2058
|
+
r = n << t;
|
|
2059
2059
|
break;
|
|
2060
2060
|
case ">>":
|
|
2061
|
-
|
|
2061
|
+
r = n >> t;
|
|
2062
2062
|
break;
|
|
2063
2063
|
case ">>>":
|
|
2064
|
-
|
|
2064
|
+
r = n >>> t;
|
|
2065
2065
|
break;
|
|
2066
2066
|
case "in":
|
|
2067
|
-
t instanceof j || w(this, this.j, "'in' expects an object, not '" + t + "'"),
|
|
2067
|
+
t instanceof j || w(this, this.j, "'in' expects an object, not '" + t + "'"), r = ut(this, t, n);
|
|
2068
2068
|
break;
|
|
2069
2069
|
case "instanceof":
|
|
2070
|
-
G(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"),
|
|
2070
|
+
G(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), r = n instanceof j ? G(this, n, t) : !1;
|
|
2071
2071
|
break;
|
|
2072
2072
|
default:
|
|
2073
|
-
throw SyntaxError("Unknown binary operator: " +
|
|
2073
|
+
throw SyntaxError("Unknown binary operator: " + r.operator);
|
|
2074
2074
|
}
|
|
2075
|
-
e[e.length - 1].value =
|
|
2075
|
+
e[e.length - 1].value = r;
|
|
2076
2076
|
};
|
|
2077
|
-
h.prototype.stepBlockStatement = function(e, t,
|
|
2078
|
-
var
|
|
2079
|
-
if (
|
|
2080
|
-
return t.A =
|
|
2077
|
+
h.prototype.stepBlockStatement = function(e, t, r) {
|
|
2078
|
+
var n = t.A || 0;
|
|
2079
|
+
if (r = r.body[n])
|
|
2080
|
+
return t.A = n + 1, new m(r, t.scope);
|
|
2081
2081
|
e.pop();
|
|
2082
2082
|
};
|
|
2083
|
-
h.prototype.stepBreakStatement = function(e, t,
|
|
2084
|
-
|
|
2083
|
+
h.prototype.stepBreakStatement = function(e, t, r) {
|
|
2084
|
+
ze(this, 1, void 0, r.label && r.label.name);
|
|
2085
2085
|
};
|
|
2086
2086
|
h.prototype.Hb = 0;
|
|
2087
|
-
h.prototype.stepCallExpression = function(e, t,
|
|
2087
|
+
h.prototype.stepCallExpression = function(e, t, r) {
|
|
2088
2088
|
if (!t.ia) {
|
|
2089
2089
|
t.ia = 1;
|
|
2090
|
-
var
|
|
2091
|
-
return
|
|
2090
|
+
var n = new m(r.callee, t.scope);
|
|
2091
|
+
return n.sa = !0, n;
|
|
2092
2092
|
}
|
|
2093
2093
|
if (t.ia === 1) {
|
|
2094
2094
|
t.ia = 2;
|
|
@@ -2101,10 +2101,10 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2101
2101
|
t.F = [], t.A = 0;
|
|
2102
2102
|
}
|
|
2103
2103
|
if (o = t.U, !t.Qa) {
|
|
2104
|
-
if (t.A !== 0 && t.F.push(t.value),
|
|
2105
|
-
return new m(
|
|
2106
|
-
if (
|
|
2107
|
-
if (o instanceof j && !o.Ab || w(this, this.j, H(this,
|
|
2104
|
+
if (t.A !== 0 && t.F.push(t.value), r.arguments[t.A])
|
|
2105
|
+
return new m(r.arguments[t.A++], t.scope);
|
|
2106
|
+
if (r.type === "NewExpression") {
|
|
2107
|
+
if (o instanceof j && !o.Ab || w(this, this.j, H(this, r.callee) + " is not a constructor"), o === this.qa)
|
|
2108
2108
|
t.B = Oe(this);
|
|
2109
2109
|
else {
|
|
2110
2110
|
var s = o.h.prototype;
|
|
@@ -2117,98 +2117,98 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2117
2117
|
if (t.eb)
|
|
2118
2118
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2119
2119
|
else {
|
|
2120
|
-
if (t.eb = !0, o instanceof j || w(this, this.j, H(this,
|
|
2121
|
-
for (
|
|
2122
|
-
this.g(
|
|
2123
|
-
for (this.g(
|
|
2124
|
-
this.g(
|
|
2125
|
-
return
|
|
2120
|
+
if (t.eb = !0, o instanceof j || w(this, this.j, H(this, r.callee) + " is not a function"), e = o.node) {
|
|
2121
|
+
for (r = $t(this, e.body, o.Va), n = Oe(this), o = 0; o < t.F.length; o++)
|
|
2122
|
+
this.g(n, o, t.F[o]);
|
|
2123
|
+
for (this.g(r.object, "arguments", n), o = 0; o < e.oa.length; o++)
|
|
2124
|
+
this.g(r.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2125
|
+
return r.S || (t.B = Dt(this, t.B)), this.g(r.object, "this", t.B, Ht), t.value = void 0, new m(e.body, r);
|
|
2126
2126
|
}
|
|
2127
2127
|
if (o.eval)
|
|
2128
2128
|
if (o = t.F[0], typeof o != "string")
|
|
2129
2129
|
t.value = o;
|
|
2130
2130
|
else {
|
|
2131
2131
|
try {
|
|
2132
|
-
|
|
2132
|
+
n = Ce(String(o), "eval" + this.Hb++);
|
|
2133
2133
|
} catch (f) {
|
|
2134
2134
|
w(this, this.T, "Invalid code: " + f.message);
|
|
2135
2135
|
}
|
|
2136
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body =
|
|
2136
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = n.body, lt(o, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r = $t(this, n, r) : Ke(this, n, r), this.value = void 0, new m(o, r);
|
|
2137
2137
|
}
|
|
2138
2138
|
else if (o.Ta)
|
|
2139
2139
|
t.scope.S || (t.B = Dt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2140
2140
|
else if (o.Za) {
|
|
2141
2141
|
var a = this;
|
|
2142
|
-
|
|
2142
|
+
n = o.Za.length - 1, n = t.F.concat(Array(n)).slice(0, n), n.push(function(f) {
|
|
2143
2143
|
t.value = f, a.za = !1;
|
|
2144
|
-
}), this.za = !0, t.scope.S || (t.B = Dt(this, t.B)), o.Za.apply(t.B,
|
|
2144
|
+
}), this.za = !0, t.scope.S || (t.B = Dt(this, t.B)), o.Za.apply(t.B, n);
|
|
2145
2145
|
} else
|
|
2146
|
-
w(this, this.j, H(this,
|
|
2146
|
+
w(this, this.j, H(this, r.callee) + " is not callable");
|
|
2147
2147
|
}
|
|
2148
2148
|
};
|
|
2149
|
-
h.prototype.stepConditionalExpression = function(e, t,
|
|
2150
|
-
var
|
|
2151
|
-
if (
|
|
2152
|
-
return t.na = 1, new m(
|
|
2153
|
-
if (
|
|
2154
|
-
if (t.na = 2, (
|
|
2155
|
-
return new m(
|
|
2156
|
-
if (!
|
|
2157
|
-
return new m(
|
|
2149
|
+
h.prototype.stepConditionalExpression = function(e, t, r) {
|
|
2150
|
+
var n = t.na || 0;
|
|
2151
|
+
if (n === 0)
|
|
2152
|
+
return t.na = 1, new m(r.test, t.scope);
|
|
2153
|
+
if (n === 1) {
|
|
2154
|
+
if (t.na = 2, (n = !!t.value) && r.da)
|
|
2155
|
+
return new m(r.da, t.scope);
|
|
2156
|
+
if (!n && r.alternate)
|
|
2157
|
+
return new m(r.alternate, t.scope);
|
|
2158
2158
|
this.value = void 0;
|
|
2159
2159
|
}
|
|
2160
|
-
e.pop(),
|
|
2160
|
+
e.pop(), r.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
2161
2161
|
};
|
|
2162
|
-
h.prototype.stepContinueStatement = function(e, t,
|
|
2163
|
-
|
|
2162
|
+
h.prototype.stepContinueStatement = function(e, t, r) {
|
|
2163
|
+
ze(this, 2, void 0, r.label && r.label.name);
|
|
2164
2164
|
};
|
|
2165
2165
|
h.prototype.stepDebuggerStatement = function(e) {
|
|
2166
2166
|
e.pop();
|
|
2167
2167
|
};
|
|
2168
|
-
h.prototype.stepDoWhileStatement = function(e, t,
|
|
2169
|
-
if (
|
|
2170
|
-
return t.ga = !0, new m(
|
|
2168
|
+
h.prototype.stepDoWhileStatement = function(e, t, r) {
|
|
2169
|
+
if (r.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2170
|
+
return t.ga = !0, new m(r.test, t.scope);
|
|
2171
2171
|
if (!t.value)
|
|
2172
2172
|
e.pop();
|
|
2173
|
-
else if (
|
|
2174
|
-
return t.ga = !1, t.W = !0, new m(
|
|
2173
|
+
else if (r.body)
|
|
2174
|
+
return t.ga = !1, t.W = !0, new m(r.body, t.scope);
|
|
2175
2175
|
};
|
|
2176
2176
|
h.prototype.stepEmptyStatement = function(e) {
|
|
2177
2177
|
e.pop();
|
|
2178
2178
|
};
|
|
2179
|
-
h.prototype.stepEvalProgram_ = function(e, t,
|
|
2180
|
-
var
|
|
2181
|
-
if (
|
|
2182
|
-
return t.A =
|
|
2179
|
+
h.prototype.stepEvalProgram_ = function(e, t, r) {
|
|
2180
|
+
var n = t.A || 0;
|
|
2181
|
+
if (r = r.body[n])
|
|
2182
|
+
return t.A = n + 1, new m(r, t.scope);
|
|
2183
2183
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2184
2184
|
};
|
|
2185
|
-
h.prototype.stepExpressionStatement = function(e, t,
|
|
2185
|
+
h.prototype.stepExpressionStatement = function(e, t, r) {
|
|
2186
2186
|
if (!t.ka)
|
|
2187
|
-
return this.value = void 0, t.ka = !0, new m(
|
|
2187
|
+
return this.value = void 0, t.ka = !0, new m(r.la, t.scope);
|
|
2188
2188
|
e.pop(), this.value = t.value;
|
|
2189
2189
|
};
|
|
2190
|
-
h.prototype.stepForInStatement = function(e, t,
|
|
2191
|
-
if (!t.Ub && (t.Ub = !0,
|
|
2192
|
-
return t.scope.S && w(this, this.T, "for-in loop variable declaration may not have an initializer"), new m(
|
|
2190
|
+
h.prototype.stepForInStatement = function(e, t, r) {
|
|
2191
|
+
if (!t.Ub && (t.Ub = !0, r.left.fa && r.left.fa[0].ua))
|
|
2192
|
+
return t.scope.S && w(this, this.T, "for-in loop variable declaration may not have an initializer"), new m(r.left, t.scope);
|
|
2193
2193
|
if (!t.Ca)
|
|
2194
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new m(
|
|
2194
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new m(r.right, t.scope);
|
|
2195
2195
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2196
2196
|
e:
|
|
2197
2197
|
for (; ; ) {
|
|
2198
2198
|
if (t.u instanceof j)
|
|
2199
2199
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2200
|
-
var
|
|
2201
|
-
if (
|
|
2200
|
+
var n = t.wa.shift();
|
|
2201
|
+
if (n === void 0)
|
|
2202
2202
|
break;
|
|
2203
|
-
if (Object.prototype.hasOwnProperty.call(t.u.h,
|
|
2204
|
-
t.Ra =
|
|
2203
|
+
if (Object.prototype.hasOwnProperty.call(t.u.h, n) && !t.kb[n] && (t.kb[n] = !0, Object.prototype.propertyIsEnumerable.call(t.u.h, n))) {
|
|
2204
|
+
t.Ra = n;
|
|
2205
2205
|
break e;
|
|
2206
2206
|
}
|
|
2207
2207
|
}
|
|
2208
2208
|
else if (t.u !== null && t.u !== void 0) {
|
|
2209
|
-
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u));
|
|
2210
|
-
if (t.kb[
|
|
2211
|
-
t.Ra =
|
|
2209
|
+
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u)); n = t.wa.shift(), n !== void 0; )
|
|
2210
|
+
if (t.kb[n] = !0, Object.prototype.propertyIsEnumerable.call(t.u, n)) {
|
|
2211
|
+
t.Ra = n;
|
|
2212
2212
|
break e;
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
@@ -2218,94 +2218,94 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2218
2218
|
}
|
|
2219
2219
|
}
|
|
2220
2220
|
if (!t.wb)
|
|
2221
|
-
if (t.wb = !0, e =
|
|
2221
|
+
if (t.wb = !0, e = r.left, e.type === "VariableDeclaration")
|
|
2222
2222
|
t.pa = [je, e.fa[0].id.name];
|
|
2223
2223
|
else
|
|
2224
2224
|
return t.pa = null, t = new m(e, t.scope), t.sa = !0, t;
|
|
2225
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra,
|
|
2226
|
-
return rr(this,
|
|
2227
|
-
if (t.Ra = void 0, t.wb = !1, t.ta = !1,
|
|
2228
|
-
return new m(
|
|
2225
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n = tr(this, t.pa, e)))
|
|
2226
|
+
return rr(this, n, t.pa, e);
|
|
2227
|
+
if (t.Ra = void 0, t.wb = !1, t.ta = !1, r.body)
|
|
2228
|
+
return new m(r.body, t.scope);
|
|
2229
2229
|
};
|
|
2230
|
-
h.prototype.stepForStatement = function(e, t,
|
|
2230
|
+
h.prototype.stepForStatement = function(e, t, r) {
|
|
2231
2231
|
switch (t.na) {
|
|
2232
2232
|
default:
|
|
2233
|
-
if (t.na = 1,
|
|
2234
|
-
return new m(
|
|
2233
|
+
if (t.na = 1, r.ua)
|
|
2234
|
+
return new m(r.ua, t.scope);
|
|
2235
2235
|
break;
|
|
2236
2236
|
case 1:
|
|
2237
|
-
if (t.na = 2,
|
|
2238
|
-
return new m(
|
|
2237
|
+
if (t.na = 2, r.test)
|
|
2238
|
+
return new m(r.test, t.scope);
|
|
2239
2239
|
break;
|
|
2240
2240
|
case 2:
|
|
2241
|
-
if (t.na = 3,
|
|
2241
|
+
if (t.na = 3, r.test && !t.value)
|
|
2242
2242
|
e.pop();
|
|
2243
2243
|
else
|
|
2244
|
-
return t.W = !0, new m(
|
|
2244
|
+
return t.W = !0, new m(r.body, t.scope);
|
|
2245
2245
|
break;
|
|
2246
2246
|
case 3:
|
|
2247
|
-
if (t.na = 1,
|
|
2248
|
-
return new m(
|
|
2247
|
+
if (t.na = 1, r.update)
|
|
2248
|
+
return new m(r.update, t.scope);
|
|
2249
2249
|
}
|
|
2250
2250
|
};
|
|
2251
2251
|
h.prototype.stepFunctionDeclaration = function(e) {
|
|
2252
2252
|
e.pop();
|
|
2253
2253
|
};
|
|
2254
|
-
h.prototype.stepFunctionExpression = function(e, t,
|
|
2255
|
-
e.pop(), t = e[e.length - 1], e = t.scope,
|
|
2254
|
+
h.prototype.stepFunctionExpression = function(e, t, r) {
|
|
2255
|
+
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e = Qt(this, e)), t.value = Yt(this, r, e, t.Pa), r.id && this.g(e.object, r.id.name, t.value, Ht);
|
|
2256
2256
|
};
|
|
2257
|
-
h.prototype.stepIdentifier = function(e, t,
|
|
2257
|
+
h.prototype.stepIdentifier = function(e, t, r) {
|
|
2258
2258
|
if (e.pop(), t.sa)
|
|
2259
|
-
e[e.length - 1].value = [je,
|
|
2259
|
+
e[e.length - 1].value = [je, r.name];
|
|
2260
2260
|
else {
|
|
2261
|
-
if (t = qt(this,
|
|
2261
|
+
if (t = qt(this, r.name), this.P)
|
|
2262
2262
|
return Ye(this, t, this.Na);
|
|
2263
2263
|
e[e.length - 1].value = t;
|
|
2264
2264
|
}
|
|
2265
2265
|
};
|
|
2266
2266
|
h.prototype.stepIfStatement = h.prototype.stepConditionalExpression;
|
|
2267
|
-
h.prototype.stepLabeledStatement = function(e, t,
|
|
2268
|
-
return e.pop(), e = t.labels || [], e.push(
|
|
2267
|
+
h.prototype.stepLabeledStatement = function(e, t, r) {
|
|
2268
|
+
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new m(r.body, t.scope), t.labels = e, t;
|
|
2269
2269
|
};
|
|
2270
|
-
h.prototype.stepLiteral = function(e, t,
|
|
2271
|
-
e.pop(), t =
|
|
2270
|
+
h.prototype.stepLiteral = function(e, t, r) {
|
|
2271
|
+
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma), Kt(this, r, t), t = r), e[e.length - 1].value = t;
|
|
2272
2272
|
};
|
|
2273
|
-
h.prototype.stepLogicalExpression = function(e, t,
|
|
2274
|
-
if (
|
|
2275
|
-
throw SyntaxError("Unknown logical operator: " +
|
|
2273
|
+
h.prototype.stepLogicalExpression = function(e, t, r) {
|
|
2274
|
+
if (r.operator !== "&&" && r.operator !== "||")
|
|
2275
|
+
throw SyntaxError("Unknown logical operator: " + r.operator);
|
|
2276
2276
|
if (!t.ja)
|
|
2277
|
-
return t.ja = !0, new m(
|
|
2277
|
+
return t.ja = !0, new m(r.left, t.scope);
|
|
2278
2278
|
if (t.Da)
|
|
2279
2279
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2280
|
-
else if (
|
|
2280
|
+
else if (r.operator === "&&" && !t.value || r.operator === "||" && t.value)
|
|
2281
2281
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2282
2282
|
else
|
|
2283
|
-
return t.Da = !0, new m(
|
|
2283
|
+
return t.Da = !0, new m(r.right, t.scope);
|
|
2284
2284
|
};
|
|
2285
|
-
h.prototype.stepMemberExpression = function(e, t,
|
|
2285
|
+
h.prototype.stepMemberExpression = function(e, t, r) {
|
|
2286
2286
|
if (!t.Ca)
|
|
2287
|
-
return t.Ca = !0, new m(
|
|
2288
|
-
if (
|
|
2287
|
+
return t.Ca = !0, new m(r.object, t.scope);
|
|
2288
|
+
if (r.bb)
|
|
2289
2289
|
if (t.Vb)
|
|
2290
|
-
|
|
2290
|
+
r = t.value;
|
|
2291
2291
|
else
|
|
2292
|
-
return t.u = t.value, t.Vb = !0, new m(
|
|
2292
|
+
return t.u = t.value, t.Vb = !0, new m(r.Wa, t.scope);
|
|
2293
2293
|
else
|
|
2294
|
-
t.u = t.value,
|
|
2294
|
+
t.u = t.value, r = r.Wa.name;
|
|
2295
2295
|
if (e.pop(), t.sa)
|
|
2296
|
-
e[e.length - 1].value = [t.u,
|
|
2296
|
+
e[e.length - 1].value = [t.u, r];
|
|
2297
2297
|
else {
|
|
2298
|
-
if (
|
|
2299
|
-
return Ye(this,
|
|
2300
|
-
e[e.length - 1].value =
|
|
2298
|
+
if (r = this.G(t.u, r), this.P)
|
|
2299
|
+
return Ye(this, r, t.u);
|
|
2300
|
+
e[e.length - 1].value = r;
|
|
2301
2301
|
}
|
|
2302
2302
|
};
|
|
2303
2303
|
h.prototype.stepNewExpression = h.prototype.stepCallExpression;
|
|
2304
|
-
h.prototype.stepObjectExpression = function(e, t,
|
|
2305
|
-
var
|
|
2304
|
+
h.prototype.stepObjectExpression = function(e, t, r) {
|
|
2305
|
+
var n = t.A || 0, o = r.h[n];
|
|
2306
2306
|
if (t.u) {
|
|
2307
2307
|
var s = t.Pa;
|
|
2308
|
-
t.Ja[s] || (t.Ja[s] = {}), t.Ja[s][o.kind] = t.value, t.A = ++
|
|
2308
|
+
t.Ja[s] || (t.Ja[s] = {}), t.Ja[s][o.kind] = t.value, t.A = ++n, o = r.h[n];
|
|
2309
2309
|
} else
|
|
2310
2310
|
t.u = this.s(this.M), t.Ja = /* @__PURE__ */ Object.create(null);
|
|
2311
2311
|
if (o) {
|
|
@@ -2319,35 +2319,35 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2319
2319
|
return t.Pa = s, new m(o.value, t.scope);
|
|
2320
2320
|
}
|
|
2321
2321
|
for (a in t.Ja)
|
|
2322
|
-
|
|
2322
|
+
r = t.Ja[a], "get" in r || "set" in r ? this.g(t.u, a, Je, {
|
|
2323
2323
|
configurable: !0,
|
|
2324
2324
|
enumerable: !0,
|
|
2325
|
-
get:
|
|
2326
|
-
set:
|
|
2327
|
-
}) : this.g(t.u, a,
|
|
2325
|
+
get: r.get,
|
|
2326
|
+
set: r.set
|
|
2327
|
+
}) : this.g(t.u, a, r.init);
|
|
2328
2328
|
e.pop(), e[e.length - 1].value = t.u;
|
|
2329
2329
|
};
|
|
2330
|
-
h.prototype.stepProgram = function(e, t,
|
|
2331
|
-
if (e =
|
|
2330
|
+
h.prototype.stepProgram = function(e, t, r) {
|
|
2331
|
+
if (e = r.body.shift())
|
|
2332
2332
|
return t.done = !1, new m(e, t.scope);
|
|
2333
2333
|
t.done = !0;
|
|
2334
2334
|
};
|
|
2335
|
-
h.prototype.stepReturnStatement = function(e, t,
|
|
2336
|
-
if (
|
|
2337
|
-
return t.ka = !0, new m(
|
|
2338
|
-
|
|
2335
|
+
h.prototype.stepReturnStatement = function(e, t, r) {
|
|
2336
|
+
if (r.K && !t.ka)
|
|
2337
|
+
return t.ka = !0, new m(r.K, t.scope);
|
|
2338
|
+
ze(this, 3, t.value);
|
|
2339
2339
|
};
|
|
2340
|
-
h.prototype.stepSequenceExpression = function(e, t,
|
|
2341
|
-
var
|
|
2342
|
-
if (
|
|
2343
|
-
return t.A =
|
|
2340
|
+
h.prototype.stepSequenceExpression = function(e, t, r) {
|
|
2341
|
+
var n = t.A || 0;
|
|
2342
|
+
if (r = r.xb[n])
|
|
2343
|
+
return t.A = n + 1, new m(r, t.scope);
|
|
2344
2344
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2345
2345
|
};
|
|
2346
|
-
h.prototype.stepSwitchStatement = function(e, t,
|
|
2346
|
+
h.prototype.stepSwitchStatement = function(e, t, r) {
|
|
2347
2347
|
if (!t.ga)
|
|
2348
|
-
return t.ga = 1, new m(
|
|
2348
|
+
return t.ga = 1, new m(r.Qb, t.scope);
|
|
2349
2349
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2350
|
-
var
|
|
2350
|
+
var n = t.gb || 0, o = r.tb[n];
|
|
2351
2351
|
if (t.Ha || !o || o.test)
|
|
2352
2352
|
if (o || t.Ha || t.cb === -1)
|
|
2353
2353
|
if (o) {
|
|
@@ -2359,7 +2359,7 @@ h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2359
2359
|
if (o.da[s])
|
|
2360
2360
|
return t.Zb = !0, t.A = s + 1, new m(o.da[s], t.scope);
|
|
2361
2361
|
}
|
|
2362
|
-
t.Fb = !1, t.A = 0, t.gb =
|
|
2362
|
+
t.Fb = !1, t.A = 0, t.gb = n + 1;
|
|
2363
2363
|
} else {
|
|
2364
2364
|
e.pop();
|
|
2365
2365
|
break;
|
|
@@ -2367,102 +2367,102 @@ h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2367
2367
|
else
|
|
2368
2368
|
t.Ha = !0, t.gb = t.cb;
|
|
2369
2369
|
else
|
|
2370
|
-
t.cb =
|
|
2370
|
+
t.cb = n, t.gb = n + 1;
|
|
2371
2371
|
}
|
|
2372
2372
|
};
|
|
2373
2373
|
h.prototype.stepThisExpression = function(e) {
|
|
2374
2374
|
e.pop(), e[e.length - 1].value = qt(this, "this");
|
|
2375
2375
|
};
|
|
2376
|
-
h.prototype.stepThrowStatement = function(e, t,
|
|
2376
|
+
h.prototype.stepThrowStatement = function(e, t, r) {
|
|
2377
2377
|
if (t.ka)
|
|
2378
2378
|
w(this, t.value);
|
|
2379
2379
|
else
|
|
2380
|
-
return t.ka = !0, new m(
|
|
2380
|
+
return t.ka = !0, new m(r.K, t.scope);
|
|
2381
2381
|
};
|
|
2382
|
-
h.prototype.stepTryStatement = function(e, t,
|
|
2382
|
+
h.prototype.stepTryStatement = function(e, t, r) {
|
|
2383
2383
|
if (!t.Rb)
|
|
2384
|
-
return t.Rb = !0, new m(
|
|
2385
|
-
if (t.ea && t.ea.type === 4 && !t.Tb &&
|
|
2386
|
-
return t.Tb = !0, e = Qt(this, t.scope), this.g(e.object,
|
|
2387
|
-
if (!t.Sb &&
|
|
2388
|
-
return t.Sb = !0, new m(
|
|
2389
|
-
e.pop(), t.ea &&
|
|
2384
|
+
return t.Rb = !0, new m(r.block, t.scope);
|
|
2385
|
+
if (t.ea && t.ea.type === 4 && !t.Tb && r.Ea)
|
|
2386
|
+
return t.Tb = !0, e = Qt(this, t.scope), this.g(e.object, r.Ea.Ua.name, t.ea.value), t.ea = void 0, new m(r.Ea.body, e);
|
|
2387
|
+
if (!t.Sb && r.fb)
|
|
2388
|
+
return t.Sb = !0, new m(r.fb, t.scope);
|
|
2389
|
+
e.pop(), t.ea && ze(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2390
2390
|
};
|
|
2391
|
-
h.prototype.stepUnaryExpression = function(e, t,
|
|
2391
|
+
h.prototype.stepUnaryExpression = function(e, t, r) {
|
|
2392
2392
|
if (!t.ka)
|
|
2393
|
-
return t.ka = !0, e = new m(
|
|
2393
|
+
return t.ka = !0, e = new m(r.K, t.scope), e.sa = r.operator === "delete", e;
|
|
2394
2394
|
e.pop();
|
|
2395
|
-
var
|
|
2396
|
-
switch (
|
|
2395
|
+
var n = t.value;
|
|
2396
|
+
switch (r.operator) {
|
|
2397
2397
|
case "-":
|
|
2398
|
-
|
|
2398
|
+
n = -n;
|
|
2399
2399
|
break;
|
|
2400
2400
|
case "+":
|
|
2401
|
-
|
|
2401
|
+
n = +n;
|
|
2402
2402
|
break;
|
|
2403
2403
|
case "!":
|
|
2404
|
-
|
|
2404
|
+
n = !n;
|
|
2405
2405
|
break;
|
|
2406
2406
|
case "~":
|
|
2407
|
-
|
|
2407
|
+
n = ~n;
|
|
2408
2408
|
break;
|
|
2409
2409
|
case "delete":
|
|
2410
|
-
if (
|
|
2411
|
-
var o =
|
|
2412
|
-
o === je && (o = t.scope),
|
|
2410
|
+
if (r = !0, Array.isArray(n)) {
|
|
2411
|
+
var o = n[0];
|
|
2412
|
+
o === je && (o = t.scope), n = String(n[1]);
|
|
2413
2413
|
try {
|
|
2414
|
-
delete o.h[
|
|
2414
|
+
delete o.h[n];
|
|
2415
2415
|
} catch {
|
|
2416
|
-
t.scope.S ? w(this, this.j, "Cannot delete property '" +
|
|
2416
|
+
t.scope.S ? w(this, this.j, "Cannot delete property '" + n + "' of '" + o + "'") : r = !1;
|
|
2417
2417
|
}
|
|
2418
2418
|
}
|
|
2419
|
-
|
|
2419
|
+
n = r;
|
|
2420
2420
|
break;
|
|
2421
2421
|
case "typeof":
|
|
2422
|
-
|
|
2422
|
+
n = n && n.H === "Function" ? "function" : typeof n;
|
|
2423
2423
|
break;
|
|
2424
2424
|
case "void":
|
|
2425
|
-
|
|
2425
|
+
n = void 0;
|
|
2426
2426
|
break;
|
|
2427
2427
|
default:
|
|
2428
|
-
throw SyntaxError("Unknown unary operator: " +
|
|
2428
|
+
throw SyntaxError("Unknown unary operator: " + r.operator);
|
|
2429
2429
|
}
|
|
2430
|
-
e[e.length - 1].value =
|
|
2430
|
+
e[e.length - 1].value = n;
|
|
2431
2431
|
};
|
|
2432
|
-
h.prototype.stepUpdateExpression = function(e, t,
|
|
2432
|
+
h.prototype.stepUpdateExpression = function(e, t, r) {
|
|
2433
2433
|
if (!t.ja)
|
|
2434
|
-
return t.ja = !0, e = new m(
|
|
2434
|
+
return t.ja = !0, e = new m(r.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
|
|
2437
|
-
if (t.ma =
|
|
2438
|
-
return t.Ba = !0, Ye(this,
|
|
2436
|
+
var n = er(this, t.Ga);
|
|
2437
|
+
if (t.ma = n, this.P)
|
|
2438
|
+
return t.Ba = !0, Ye(this, n, t.Ga);
|
|
2439
2439
|
}
|
|
2440
2440
|
if (t.ta)
|
|
2441
2441
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2442
2442
|
else {
|
|
2443
|
-
if (
|
|
2444
|
-
var o =
|
|
2445
|
-
else if (
|
|
2446
|
-
o =
|
|
2443
|
+
if (n = Number(t.ma), r.operator === "++")
|
|
2444
|
+
var o = n + 1;
|
|
2445
|
+
else if (r.operator === "--")
|
|
2446
|
+
o = n - 1;
|
|
2447
2447
|
else
|
|
2448
|
-
throw SyntaxError("Unknown update expression: " +
|
|
2449
|
-
if (
|
|
2450
|
-
return t.ta = !0, t.ib =
|
|
2451
|
-
e.pop(), e[e.length - 1].value =
|
|
2448
|
+
throw SyntaxError("Unknown update expression: " + r.operator);
|
|
2449
|
+
if (r = r.prefix ? o : n, n = tr(this, t.Ga, o))
|
|
2450
|
+
return t.ta = !0, t.ib = r, rr(this, n, t.Ga, o);
|
|
2451
|
+
e.pop(), e[e.length - 1].value = r;
|
|
2452
2452
|
}
|
|
2453
2453
|
};
|
|
2454
|
-
h.prototype.stepVariableDeclaration = function(e, t,
|
|
2455
|
-
|
|
2456
|
-
var
|
|
2457
|
-
for (t.Bb && o && (
|
|
2454
|
+
h.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
2455
|
+
r = r.fa;
|
|
2456
|
+
var n = t.A || 0, o = r[n];
|
|
2457
|
+
for (t.Bb && o && (Yr(this, o.id.name, t.value), t.Bb = !1, o = r[++n]); o; ) {
|
|
2458
2458
|
if (o.ua)
|
|
2459
|
-
return t.A =
|
|
2460
|
-
o =
|
|
2459
|
+
return t.A = n, t.Bb = !0, t.Pa = o.id.name, new m(o.ua, t.scope);
|
|
2460
|
+
o = r[++n];
|
|
2461
2461
|
}
|
|
2462
2462
|
e.pop();
|
|
2463
2463
|
};
|
|
2464
|
-
h.prototype.stepWithStatement = function(e, t,
|
|
2465
|
-
return t.Ca ? (e.pop(), e = Qt(this, t.scope, t.value), new m(
|
|
2464
|
+
h.prototype.stepWithStatement = function(e, t, r) {
|
|
2465
|
+
return t.Ca ? (e.pop(), e = Qt(this, t.scope, t.value), new m(r.body, e)) : (t.Ca = !0, new m(r.object, t.scope));
|
|
2466
2466
|
};
|
|
2467
2467
|
h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
|
|
2468
2468
|
pe.Interpreter = h;
|
|
@@ -2481,15 +2481,15 @@ h.prototype.getGlobalScope = h.prototype.Xb;
|
|
|
2481
2481
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2482
2482
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2483
2483
|
h.VALUE_IN_DESCRIPTOR = Je;
|
|
2484
|
-
function
|
|
2484
|
+
function Zn() {
|
|
2485
2485
|
const e = h.prototype.getProperty, t = h.prototype.setProperty;
|
|
2486
|
-
function
|
|
2486
|
+
function r(a, f) {
|
|
2487
2487
|
if (a == null || !a._connected)
|
|
2488
2488
|
return e.call(this, a, f);
|
|
2489
2489
|
const d = a._connected[f];
|
|
2490
2490
|
return Array.isArray(d) ? this.nativeToPseudo(d) : typeof d == "object" ? this.createConnectedObject(d) : d;
|
|
2491
2491
|
}
|
|
2492
|
-
function
|
|
2492
|
+
function n(a, f, d, v) {
|
|
2493
2493
|
if (a == null || !a._connected)
|
|
2494
2494
|
return t.call(this, a, f, d, v);
|
|
2495
2495
|
a._connected[f] = this.pseudoToNative(d);
|
|
@@ -2498,41 +2498,41 @@ function Yn() {
|
|
|
2498
2498
|
for (const a of Object.keys(h.prototype))
|
|
2499
2499
|
h.prototype[a] === e && o.push(a), h.prototype[a] === t && s.push(a);
|
|
2500
2500
|
for (const a of o)
|
|
2501
|
-
h.prototype[a] = n;
|
|
2502
|
-
for (const a of s)
|
|
2503
2501
|
h.prototype[a] = r;
|
|
2502
|
+
for (const a of s)
|
|
2503
|
+
h.prototype[a] = n;
|
|
2504
2504
|
h.prototype.createConnectedObject = function(a) {
|
|
2505
2505
|
const f = this.createObject(this.OBJECT);
|
|
2506
2506
|
return f._connected = a, f;
|
|
2507
2507
|
};
|
|
2508
2508
|
}
|
|
2509
|
-
|
|
2510
|
-
const
|
|
2509
|
+
Zn();
|
|
2510
|
+
const Qn = (e) => e.replace(/^.*?function main\(\)/, `
|
|
2511
2511
|
var __awaiter = function (e, t, n, r) {return r()},
|
|
2512
2512
|
__generator = function (e, t) { return t() };
|
|
2513
|
-
function main()`).replace(/\?\./g, "."), Wr = (e) => e + "JSON",
|
|
2513
|
+
function main()`).replace(/\?\./g, "."), Wr = (e) => e + "JSON", qn = ({
|
|
2514
2514
|
builder: e,
|
|
2515
2515
|
context: t,
|
|
2516
|
-
event:
|
|
2517
|
-
rootState:
|
|
2516
|
+
event: r,
|
|
2517
|
+
rootState: n,
|
|
2518
2518
|
localState: o,
|
|
2519
2519
|
rootSetState: s,
|
|
2520
2520
|
code: a
|
|
2521
2521
|
}) => {
|
|
2522
2522
|
const f = Xt({
|
|
2523
|
-
rootState:
|
|
2523
|
+
rootState: n,
|
|
2524
2524
|
localState: o,
|
|
2525
2525
|
rootSetState: s
|
|
2526
|
-
}), d =
|
|
2526
|
+
}), d = Jr({
|
|
2527
2527
|
builder: e,
|
|
2528
2528
|
context: t,
|
|
2529
|
-
event:
|
|
2529
|
+
event: r,
|
|
2530
2530
|
state: f
|
|
2531
2531
|
}), v = d.map(([O]) => {
|
|
2532
2532
|
const R = Wr(O);
|
|
2533
2533
|
return O === "state" ? "" : `var ${O} = ${R} === undefined ? undefined : JSON.parse(${R});`;
|
|
2534
2534
|
}).join(`
|
|
2535
|
-
`), I =
|
|
2535
|
+
`), I = Qn(a);
|
|
2536
2536
|
if (I === "")
|
|
2537
2537
|
return;
|
|
2538
2538
|
const A = `
|
|
@@ -2554,72 +2554,72 @@ theFunction();
|
|
|
2554
2554
|
}, V = new h(A, W);
|
|
2555
2555
|
return V.run(), V.pseudoToNative(V.value);
|
|
2556
2556
|
};
|
|
2557
|
-
function
|
|
2557
|
+
function eo() {
|
|
2558
2558
|
var e;
|
|
2559
2559
|
return typeof process != "undefined" && it((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2560
2560
|
}
|
|
2561
|
-
const
|
|
2561
|
+
const to = ({
|
|
2562
2562
|
shouldLogWarning: e
|
|
2563
2563
|
}) => {
|
|
2564
2564
|
var o;
|
|
2565
|
-
if (!
|
|
2565
|
+
if (!eo())
|
|
2566
2566
|
return !1;
|
|
2567
|
-
const t = process.arch === "arm64",
|
|
2568
|
-
return t &&
|
|
2569
|
-
},
|
|
2567
|
+
const t = process.arch === "arm64", r = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
2568
|
+
return t && r && !n ? (e && Hr.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;
|
|
2569
|
+
}, ro = (e) => Ft() || to({
|
|
2570
2570
|
shouldLogWarning: !0
|
|
2571
|
-
}) ?
|
|
2572
|
-
var t,
|
|
2573
|
-
return ((
|
|
2571
|
+
}) ? Bn(e) : qn(e), no = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, oo = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, io = (e) => {
|
|
2572
|
+
var t, r, n, o, s, a;
|
|
2573
|
+
return ((n = (r = (t = no.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : r.getPath) == null ? void 0 : n.slice(1)) || ((a = (s = (o = oo.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : s.getPath) == null ? void 0 : a.slice(1));
|
|
2574
2574
|
};
|
|
2575
2575
|
function ct({
|
|
2576
2576
|
code: e,
|
|
2577
2577
|
context: t,
|
|
2578
|
-
localState:
|
|
2579
|
-
rootState:
|
|
2578
|
+
localState: r,
|
|
2579
|
+
rootState: n,
|
|
2580
2580
|
rootSetState: o,
|
|
2581
2581
|
event: s,
|
|
2582
2582
|
isExpression: a = !0
|
|
2583
2583
|
}) {
|
|
2584
2584
|
if (e.trim() === "")
|
|
2585
2585
|
return;
|
|
2586
|
-
const f =
|
|
2586
|
+
const f = io(e.trim());
|
|
2587
2587
|
if (f)
|
|
2588
|
-
return
|
|
2589
|
-
...
|
|
2590
|
-
...
|
|
2588
|
+
return bn({
|
|
2589
|
+
...n,
|
|
2590
|
+
...r
|
|
2591
2591
|
}, f);
|
|
2592
2592
|
const d = {
|
|
2593
|
-
code:
|
|
2593
|
+
code: Rn(e, {
|
|
2594
2594
|
isExpression: a
|
|
2595
2595
|
}),
|
|
2596
|
-
builder:
|
|
2596
|
+
builder: Nn(),
|
|
2597
2597
|
context: t,
|
|
2598
2598
|
event: s,
|
|
2599
2599
|
rootSetState: o,
|
|
2600
|
-
rootState:
|
|
2601
|
-
localState:
|
|
2600
|
+
rootState: n,
|
|
2601
|
+
localState: r
|
|
2602
2602
|
};
|
|
2603
2603
|
try {
|
|
2604
|
-
return
|
|
2604
|
+
return ro(d);
|
|
2605
2605
|
} catch (v) {
|
|
2606
|
-
|
|
2606
|
+
Hr.error("Failed code evaluation: " + v.message, {
|
|
2607
2607
|
code: e
|
|
2608
2608
|
});
|
|
2609
2609
|
return;
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
2612
|
-
function
|
|
2613
|
-
var
|
|
2612
|
+
function so(e, t) {
|
|
2613
|
+
var r;
|
|
2614
2614
|
return {
|
|
2615
|
-
...(
|
|
2615
|
+
...(r = e.component) == null ? void 0 : r.options,
|
|
2616
2616
|
...e.options,
|
|
2617
|
-
...
|
|
2617
|
+
...ao(e, t)
|
|
2618
2618
|
};
|
|
2619
2619
|
}
|
|
2620
|
-
const
|
|
2621
|
-
var
|
|
2622
|
-
if (((
|
|
2620
|
+
const ao = (e, t) => {
|
|
2621
|
+
var r, n;
|
|
2622
|
+
if (((r = e.component) == null ? void 0 : r.name) === "Text" && ((n = e.component.options) != null && n.text) && typeof e.component.options.text == "string")
|
|
2623
2623
|
return {
|
|
2624
2624
|
...e.component.options,
|
|
2625
2625
|
text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, s) => ct({
|
|
@@ -2631,16 +2631,16 @@ const so = (e, t) => {
|
|
|
2631
2631
|
}))
|
|
2632
2632
|
};
|
|
2633
2633
|
};
|
|
2634
|
-
function
|
|
2635
|
-
const
|
|
2636
|
-
for (const
|
|
2637
|
-
delete n
|
|
2638
|
-
return
|
|
2634
|
+
function lo(e, ...t) {
|
|
2635
|
+
const r = Object.assign({}, e);
|
|
2636
|
+
for (const n of t)
|
|
2637
|
+
delete r[n];
|
|
2638
|
+
return r;
|
|
2639
2639
|
}
|
|
2640
|
-
function st(e, t,
|
|
2640
|
+
function st(e, t, r = null, n = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
2641
2641
|
if (e == null || typeof e != "object") {
|
|
2642
2642
|
t(e, (s) => {
|
|
2643
|
-
|
|
2643
|
+
r !== null && n !== null && (r[n] = s);
|
|
2644
2644
|
});
|
|
2645
2645
|
return;
|
|
2646
2646
|
}
|
|
@@ -2654,51 +2654,51 @@ function st(e, t, n = null, r = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
|
2654
2654
|
}), st(a, t, e, s, o);
|
|
2655
2655
|
}));
|
|
2656
2656
|
}
|
|
2657
|
-
function
|
|
2657
|
+
function qr(e) {
|
|
2658
2658
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
2659
2659
|
}
|
|
2660
|
-
function
|
|
2660
|
+
function uo(e) {
|
|
2661
2661
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
2662
2662
|
return !1;
|
|
2663
2663
|
let t = !1;
|
|
2664
|
-
return st(e, (
|
|
2665
|
-
if (
|
|
2664
|
+
return st(e, (r) => {
|
|
2665
|
+
if (qr(r)) {
|
|
2666
2666
|
t = !0;
|
|
2667
2667
|
return;
|
|
2668
2668
|
}
|
|
2669
2669
|
}), t;
|
|
2670
2670
|
}
|
|
2671
|
-
function
|
|
2672
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (st(e, (
|
|
2671
|
+
function co(e, t) {
|
|
2672
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (st(e, (r, n) => {
|
|
2673
2673
|
var o;
|
|
2674
|
-
|
|
2674
|
+
qr(r) && n((o = r[t]) != null ? o : void 0);
|
|
2675
2675
|
}), e);
|
|
2676
2676
|
}
|
|
2677
|
-
function
|
|
2678
|
-
var
|
|
2679
|
-
return (
|
|
2677
|
+
function fo(e, t) {
|
|
2678
|
+
var r, n;
|
|
2679
|
+
return (r = e.component) != null && r.options && uo((n = e.component) == null ? void 0 : n.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = co(e.component.options, t != null ? t : "Default")), e;
|
|
2680
2680
|
}
|
|
2681
|
-
const
|
|
2681
|
+
const en = (e) => JSON.parse(JSON.stringify(e)), po = (e, t, r) => {
|
|
2682
2682
|
if (Object(e) !== e)
|
|
2683
2683
|
return e;
|
|
2684
|
-
const
|
|
2685
|
-
return
|
|
2684
|
+
const n = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
2685
|
+
return n.slice(0, -1).reduce((o, s, a) => Object(o[s]) === o[s] ? o[s] : o[s] = Math.abs(Number(n[a + 1])) >> 0 === +n[a + 1] ? [] : {}, e)[n[n.length - 1]] = r, e;
|
|
2686
2686
|
};
|
|
2687
2687
|
function Vt(e) {
|
|
2688
2688
|
if (e === null || typeof e != "object")
|
|
2689
2689
|
return e;
|
|
2690
2690
|
if (Array.isArray(e))
|
|
2691
|
-
return e.map((
|
|
2691
|
+
return e.map((r) => Vt(r));
|
|
2692
2692
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
2693
2693
|
return e;
|
|
2694
2694
|
const t = {};
|
|
2695
|
-
for (const
|
|
2696
|
-
|
|
2695
|
+
for (const r in e)
|
|
2696
|
+
r !== "meta" && Object.prototype.hasOwnProperty.call(e, r) && (t[r] = Vt(e[r]));
|
|
2697
2697
|
return t;
|
|
2698
2698
|
}
|
|
2699
|
-
const
|
|
2700
|
-
if (
|
|
2701
|
-
const t =
|
|
2699
|
+
const ho = ["svelte", "vue", "angular", "qwik", "solid"].includes(at), go = (e) => {
|
|
2700
|
+
if (ho) {
|
|
2701
|
+
const t = en(e);
|
|
2702
2702
|
return {
|
|
2703
2703
|
...t,
|
|
2704
2704
|
properties: {
|
|
@@ -2709,7 +2709,7 @@ const po = ["svelte", "vue", "angular", "qwik", "solid"].includes(at), ho = (e)
|
|
|
2709
2709
|
}
|
|
2710
2710
|
};
|
|
2711
2711
|
} else {
|
|
2712
|
-
const t = Vt(
|
|
2712
|
+
const t = Vt(lo(e, "children", "meta"));
|
|
2713
2713
|
return {
|
|
2714
2714
|
...t,
|
|
2715
2715
|
properties: {
|
|
@@ -2722,125 +2722,125 @@ const po = ["svelte", "vue", "angular", "qwik", "solid"].includes(at), ho = (e)
|
|
|
2722
2722
|
meta: e.meta
|
|
2723
2723
|
};
|
|
2724
2724
|
}
|
|
2725
|
-
},
|
|
2725
|
+
}, yo = ({
|
|
2726
2726
|
block: e,
|
|
2727
2727
|
context: t,
|
|
2728
|
-
localState:
|
|
2729
|
-
rootState:
|
|
2728
|
+
localState: r,
|
|
2729
|
+
rootState: n,
|
|
2730
2730
|
rootSetState: o
|
|
2731
2731
|
}) => {
|
|
2732
2732
|
if (!e.bindings)
|
|
2733
2733
|
return e;
|
|
2734
|
-
const s =
|
|
2734
|
+
const s = go(e);
|
|
2735
2735
|
for (const a in e.bindings) {
|
|
2736
2736
|
const f = e.bindings[a], d = ct({
|
|
2737
2737
|
code: f,
|
|
2738
|
-
localState:
|
|
2739
|
-
rootState:
|
|
2738
|
+
localState: r,
|
|
2739
|
+
rootState: n,
|
|
2740
2740
|
rootSetState: o,
|
|
2741
2741
|
context: t
|
|
2742
2742
|
});
|
|
2743
|
-
|
|
2743
|
+
po(s, a, d);
|
|
2744
2744
|
}
|
|
2745
2745
|
return s;
|
|
2746
2746
|
};
|
|
2747
|
-
function
|
|
2747
|
+
function mo({
|
|
2748
2748
|
block: e,
|
|
2749
2749
|
context: t,
|
|
2750
|
-
localState:
|
|
2751
|
-
rootState:
|
|
2750
|
+
localState: r,
|
|
2751
|
+
rootState: n,
|
|
2752
2752
|
rootSetState: o
|
|
2753
2753
|
}) {
|
|
2754
|
-
let s =
|
|
2755
|
-
return s = s,
|
|
2754
|
+
let s = fo(e, n.locale);
|
|
2755
|
+
return s = s, yo({
|
|
2756
2756
|
block: s,
|
|
2757
|
-
localState:
|
|
2758
|
-
rootState:
|
|
2757
|
+
localState: r,
|
|
2758
|
+
rootState: n,
|
|
2759
2759
|
rootSetState: o,
|
|
2760
2760
|
context: t
|
|
2761
2761
|
});
|
|
2762
2762
|
}
|
|
2763
2763
|
const ft = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
2764
|
-
function
|
|
2765
|
-
let
|
|
2764
|
+
function vo(e, t, r = {}) {
|
|
2765
|
+
let n, o, s, a = null, f = 0;
|
|
2766
2766
|
const d = function() {
|
|
2767
|
-
f =
|
|
2767
|
+
f = r.leading === !1 ? 0 : Date.now(), a = null, s = e.apply(n, o), a || (n = o = null);
|
|
2768
2768
|
};
|
|
2769
2769
|
return function() {
|
|
2770
2770
|
const v = Date.now();
|
|
2771
|
-
!f &&
|
|
2771
|
+
!f && r.leading === !1 && (f = v);
|
|
2772
2772
|
const I = t - (v - f);
|
|
2773
|
-
return
|
|
2773
|
+
return n = this, o = arguments, I <= 0 || I > t ? (a && (clearTimeout(a), a = null), f = v, s = e.apply(n, o), a || (n = o = null)) : !a && r.trailing !== !1 && (a = setTimeout(d, I)), s;
|
|
2774
2774
|
};
|
|
2775
2775
|
}
|
|
2776
2776
|
function Xe(e, ...t) {
|
|
2777
|
-
const
|
|
2778
|
-
for (let
|
|
2779
|
-
const o = arguments[
|
|
2777
|
+
const r = Object(e);
|
|
2778
|
+
for (let n = 1; n < arguments.length; n++) {
|
|
2779
|
+
const o = arguments[n];
|
|
2780
2780
|
if (o != null)
|
|
2781
2781
|
for (const s in o)
|
|
2782
|
-
Object.prototype.hasOwnProperty.call(o, s) && (
|
|
2782
|
+
Object.prototype.hasOwnProperty.call(o, s) && (r[s] = o[s]);
|
|
2783
2783
|
}
|
|
2784
|
-
return
|
|
2784
|
+
return r;
|
|
2785
2785
|
}
|
|
2786
|
-
function
|
|
2786
|
+
function wo(e) {
|
|
2787
2787
|
for (const t of e)
|
|
2788
2788
|
switch (t.trigger) {
|
|
2789
2789
|
case "pageLoad":
|
|
2790
|
-
|
|
2790
|
+
So(t);
|
|
2791
2791
|
break;
|
|
2792
2792
|
case "scrollInView":
|
|
2793
|
-
|
|
2793
|
+
Eo(t);
|
|
2794
2794
|
break;
|
|
2795
2795
|
}
|
|
2796
2796
|
}
|
|
2797
|
-
function
|
|
2797
|
+
function tn(e) {
|
|
2798
2798
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2799
2799
|
}
|
|
2800
|
-
function
|
|
2801
|
-
const
|
|
2800
|
+
function rn(e, t) {
|
|
2801
|
+
const r = xo(e), n = getComputedStyle(t), o = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, a = [o, s];
|
|
2802
2802
|
for (const f of a)
|
|
2803
|
-
for (const d of
|
|
2804
|
-
d in f || (f[d] =
|
|
2803
|
+
for (const d of r)
|
|
2804
|
+
d in f || (f[d] = n[d]);
|
|
2805
2805
|
}
|
|
2806
|
-
function
|
|
2806
|
+
function xo(e) {
|
|
2807
2807
|
const t = [];
|
|
2808
|
-
for (const
|
|
2809
|
-
for (const
|
|
2810
|
-
t.indexOf(
|
|
2808
|
+
for (const r of e.steps)
|
|
2809
|
+
for (const n in r.styles)
|
|
2810
|
+
t.indexOf(n) === -1 && t.push(n);
|
|
2811
2811
|
return t;
|
|
2812
2812
|
}
|
|
2813
|
-
function
|
|
2813
|
+
function So(e) {
|
|
2814
2814
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2815
2815
|
if (!t.length) {
|
|
2816
|
-
|
|
2816
|
+
tn(e.elementId || e.id || "");
|
|
2817
2817
|
return;
|
|
2818
2818
|
}
|
|
2819
|
-
Array.from(t).forEach((
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2819
|
+
Array.from(t).forEach((r) => {
|
|
2820
|
+
rn(e, r), r.style.transition = "none", r.style.transitionDelay = "0", Xe(r.style, e.steps[0].styles), setTimeout(() => {
|
|
2821
|
+
r.style.transition = `all ${e.duration}s ${ft(e.easing)}`, e.delay && (r.style.transitionDelay = e.delay + "s"), Xe(r.style, e.steps[1].styles), setTimeout(() => {
|
|
2822
|
+
r.style.transition = "", r.style.transitionDelay = "";
|
|
2823
2823
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2824
2824
|
});
|
|
2825
2825
|
});
|
|
2826
2826
|
}
|
|
2827
|
-
function
|
|
2827
|
+
function Eo(e) {
|
|
2828
2828
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2829
2829
|
if (!t.length) {
|
|
2830
|
-
|
|
2830
|
+
tn(e.elementId || e.id || "");
|
|
2831
2831
|
return;
|
|
2832
2832
|
}
|
|
2833
|
-
Array.from(t).forEach((
|
|
2834
|
-
|
|
2835
|
-
let
|
|
2833
|
+
Array.from(t).forEach((r) => {
|
|
2834
|
+
rn(e, r);
|
|
2835
|
+
let n = !1, o = !1;
|
|
2836
2836
|
function s() {
|
|
2837
|
-
!
|
|
2838
|
-
Xe(
|
|
2839
|
-
o = !1, e.repeat || (
|
|
2837
|
+
!n && f(r) ? (n = !0, o = !0, setTimeout(() => {
|
|
2838
|
+
Xe(r.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
2839
|
+
o = !1, e.repeat || (r.style.transition = "", r.style.transitionDelay = "");
|
|
2840
2840
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
2841
|
-
})) : e.repeat &&
|
|
2841
|
+
})) : e.repeat && n && !o && !f(r) && (n = !1, Xe(r.style, e.steps[0].styles));
|
|
2842
2842
|
}
|
|
2843
|
-
const a =
|
|
2843
|
+
const a = vo(s, 200, {
|
|
2844
2844
|
leading: !1
|
|
2845
2845
|
});
|
|
2846
2846
|
function f(I) {
|
|
@@ -2849,52 +2849,52 @@ function So(e) {
|
|
|
2849
2849
|
}
|
|
2850
2850
|
const d = e.steps[0].styles;
|
|
2851
2851
|
function v() {
|
|
2852
|
-
Xe(
|
|
2852
|
+
Xe(r.style, d);
|
|
2853
2853
|
}
|
|
2854
2854
|
v(), setTimeout(() => {
|
|
2855
|
-
|
|
2855
|
+
r.style.transition = `all ${e.duration}s ${ft(e.easing)}`, e.delay && (r.style.transitionDelay = e.delay + "s");
|
|
2856
2856
|
}), document.addEventListener("scroll", a, {
|
|
2857
2857
|
capture: !0,
|
|
2858
2858
|
passive: !0
|
|
2859
2859
|
}), s();
|
|
2860
2860
|
});
|
|
2861
2861
|
}
|
|
2862
|
-
const
|
|
2863
|
-
if (typeof
|
|
2864
|
-
return `${ft(
|
|
2865
|
-
}).filter(it),
|
|
2862
|
+
const nn = (e) => Object.entries(e).map(([r, n]) => {
|
|
2863
|
+
if (typeof n == "string")
|
|
2864
|
+
return `${ft(r)}: ${n};`;
|
|
2865
|
+
}).filter(it), ko = (e) => nn(e).join(`
|
|
2866
2866
|
`), _e = ({
|
|
2867
2867
|
mediaQuery: e,
|
|
2868
2868
|
className: t,
|
|
2869
|
-
styles:
|
|
2869
|
+
styles: r
|
|
2870
2870
|
}) => {
|
|
2871
|
-
const
|
|
2872
|
-
${
|
|
2871
|
+
const n = `.${t} {
|
|
2872
|
+
${ko(r)}
|
|
2873
2873
|
}`;
|
|
2874
2874
|
return e ? `${e} {
|
|
2875
|
-
${
|
|
2876
|
-
}` :
|
|
2875
|
+
${n}
|
|
2876
|
+
}` : n;
|
|
2877
2877
|
};
|
|
2878
|
-
function
|
|
2878
|
+
function Co({
|
|
2879
2879
|
style: e
|
|
2880
2880
|
}) {
|
|
2881
2881
|
return e;
|
|
2882
2882
|
}
|
|
2883
|
-
const
|
|
2883
|
+
const Oo = ({
|
|
2884
2884
|
block: e,
|
|
2885
2885
|
context: t
|
|
2886
|
-
}) =>
|
|
2886
|
+
}) => jo(Co({
|
|
2887
2887
|
style: e.style || {},
|
|
2888
2888
|
context: t,
|
|
2889
2889
|
block: e
|
|
2890
2890
|
}));
|
|
2891
|
-
function
|
|
2891
|
+
function jo(e) {
|
|
2892
2892
|
switch (at) {
|
|
2893
2893
|
case "svelte":
|
|
2894
2894
|
case "vue":
|
|
2895
2895
|
case "solid":
|
|
2896
2896
|
case "angular":
|
|
2897
|
-
return
|
|
2897
|
+
return nn(e).join(" ");
|
|
2898
2898
|
case "qwik":
|
|
2899
2899
|
case "reactNative":
|
|
2900
2900
|
case "react":
|
|
@@ -2902,35 +2902,35 @@ function Oo(e) {
|
|
|
2902
2902
|
return e;
|
|
2903
2903
|
}
|
|
2904
2904
|
}
|
|
2905
|
-
const
|
|
2905
|
+
const on = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Ao = ({
|
|
2906
2906
|
block: e,
|
|
2907
2907
|
registeredComponents: t,
|
|
2908
|
-
model:
|
|
2908
|
+
model: r
|
|
2909
2909
|
}) => {
|
|
2910
2910
|
var s;
|
|
2911
|
-
const
|
|
2912
|
-
if (!
|
|
2911
|
+
const n = (s = e.component) == null ? void 0 : s.name;
|
|
2912
|
+
if (!n)
|
|
2913
2913
|
return null;
|
|
2914
|
-
const o = t[
|
|
2915
|
-
if (!o ||
|
|
2914
|
+
const o = t[n];
|
|
2915
|
+
if (!o || on(o, r)) {
|
|
2916
2916
|
console.warn(`
|
|
2917
|
-
Could not find a registered component named "${
|
|
2917
|
+
Could not find a registered component named "${n}".
|
|
2918
2918
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2919
2919
|
return;
|
|
2920
2920
|
} else
|
|
2921
2921
|
return o;
|
|
2922
|
-
},
|
|
2922
|
+
}, Io = ({
|
|
2923
2923
|
block: e,
|
|
2924
2924
|
context: t
|
|
2925
2925
|
}) => {
|
|
2926
2926
|
const {
|
|
2927
|
-
repeat:
|
|
2928
|
-
...
|
|
2927
|
+
repeat: r,
|
|
2928
|
+
...n
|
|
2929
2929
|
} = e;
|
|
2930
|
-
if (!(
|
|
2930
|
+
if (!(r != null && r.collection))
|
|
2931
2931
|
return;
|
|
2932
2932
|
const o = ct({
|
|
2933
|
-
code:
|
|
2933
|
+
code: r.collection,
|
|
2934
2934
|
localState: t.localState,
|
|
2935
2935
|
rootState: t.rootState,
|
|
2936
2936
|
rootSetState: t.rootSetState,
|
|
@@ -2938,7 +2938,7 @@ const nn = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
2938
2938
|
});
|
|
2939
2939
|
if (!Array.isArray(o))
|
|
2940
2940
|
return;
|
|
2941
|
-
const s =
|
|
2941
|
+
const s = r.collection.split(".").pop(), a = r.itemName || (s ? s + "Item" : "item");
|
|
2942
2942
|
return o.map((d, v) => ({
|
|
2943
2943
|
context: {
|
|
2944
2944
|
...t,
|
|
@@ -2950,29 +2950,29 @@ const nn = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
2950
2950
|
[`$${a}Index`]: v
|
|
2951
2951
|
}
|
|
2952
2952
|
},
|
|
2953
|
-
block:
|
|
2953
|
+
block: n
|
|
2954
2954
|
}));
|
|
2955
|
-
},
|
|
2956
|
-
var n;
|
|
2957
|
-
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
2958
|
-
builderLinkComponent: t
|
|
2959
|
-
} : {};
|
|
2960
|
-
}, To = (e, t, n) => {
|
|
2955
|
+
}, To = (e, t) => {
|
|
2961
2956
|
var r;
|
|
2962
|
-
return (r = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && r.
|
|
2963
|
-
|
|
2957
|
+
return (r = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && r.builderLinkComponent ? {
|
|
2958
|
+
builderLinkComponent: t
|
|
2964
2959
|
} : {};
|
|
2965
|
-
}, Po = (e, t) => {
|
|
2960
|
+
}, Po = (e, t, r) => {
|
|
2966
2961
|
var n;
|
|
2967
|
-
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.
|
|
2968
|
-
|
|
2962
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
2963
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([s, a]) => !on(a, r)))
|
|
2969
2964
|
} : {};
|
|
2970
2965
|
}, bo = (e, t) => {
|
|
2971
|
-
var
|
|
2972
|
-
return (
|
|
2966
|
+
var r;
|
|
2967
|
+
return (r = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && r.builderBlock ? {
|
|
2968
|
+
builderBlock: t
|
|
2969
|
+
} : {};
|
|
2970
|
+
}, No = (e, t) => {
|
|
2971
|
+
var r;
|
|
2972
|
+
return (r = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && r.builderContext ? {
|
|
2973
2973
|
builderContext: t
|
|
2974
2974
|
} : {};
|
|
2975
|
-
},
|
|
2975
|
+
}, Gr = (e) => e.toString(), sn = {
|
|
2976
2976
|
xsmall: {
|
|
2977
2977
|
min: 0,
|
|
2978
2978
|
default: 160,
|
|
@@ -2993,28 +2993,28 @@ const nn = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
2993
2993
|
default: 991,
|
|
2994
2994
|
max: 1200
|
|
2995
2995
|
}
|
|
2996
|
-
}, _t = (e, t =
|
|
2997
|
-
const t =
|
|
2996
|
+
}, _t = (e, t = sn) => `@media (max-width: ${t[e].max}px)`, Ro = (e) => {
|
|
2997
|
+
const t = en(sn);
|
|
2998
2998
|
if (!e)
|
|
2999
2999
|
return t;
|
|
3000
3000
|
const {
|
|
3001
|
-
xsmall:
|
|
3002
|
-
small:
|
|
3001
|
+
xsmall: r,
|
|
3002
|
+
small: n,
|
|
3003
3003
|
medium: o
|
|
3004
3004
|
} = e;
|
|
3005
|
-
if (
|
|
3006
|
-
const d = Math.floor(
|
|
3005
|
+
if (r) {
|
|
3006
|
+
const d = Math.floor(r / 2);
|
|
3007
3007
|
t.xsmall = {
|
|
3008
|
-
max:
|
|
3008
|
+
max: r,
|
|
3009
3009
|
min: d,
|
|
3010
3010
|
default: d + 1
|
|
3011
3011
|
};
|
|
3012
3012
|
}
|
|
3013
|
-
if (!
|
|
3013
|
+
if (!n || !o)
|
|
3014
3014
|
return t;
|
|
3015
|
-
const s =
|
|
3015
|
+
const s = r ? t.xsmall.max + 1 : Math.floor(n / 2);
|
|
3016
3016
|
t.small = {
|
|
3017
|
-
max:
|
|
3017
|
+
max: n,
|
|
3018
3018
|
min: s,
|
|
3019
3019
|
default: s + 1
|
|
3020
3020
|
};
|
|
@@ -3032,7 +3032,7 @@ const nn = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3032
3032
|
default: f + 1
|
|
3033
3033
|
}, t;
|
|
3034
3034
|
};
|
|
3035
|
-
function
|
|
3035
|
+
function Bo(e) {
|
|
3036
3036
|
return /* @__PURE__ */ T(
|
|
3037
3037
|
"style",
|
|
3038
3038
|
{
|
|
@@ -3042,16 +3042,16 @@ function Ro(e) {
|
|
|
3042
3042
|
}
|
|
3043
3043
|
);
|
|
3044
3044
|
}
|
|
3045
|
-
function
|
|
3045
|
+
function Mo(e) {
|
|
3046
3046
|
function t() {
|
|
3047
|
-
const
|
|
3048
|
-
return it(
|
|
3047
|
+
const n = e.block;
|
|
3048
|
+
return it(n.hide) ? !n.hide : it(n.show) ? n.show : !0;
|
|
3049
3049
|
}
|
|
3050
|
-
function
|
|
3050
|
+
function r() {
|
|
3051
3051
|
var ue, Ae, Ie, B, Z;
|
|
3052
|
-
const
|
|
3052
|
+
const n = e.block, o = n.responsiveStyles, s = e.context.content, a = Ro(
|
|
3053
3053
|
((ue = s == null ? void 0 : s.meta) == null ? void 0 : ue.breakpoints) || {}
|
|
3054
|
-
), f = !!((Ie = (Ae = s == null ? void 0 : s.meta) == null ? void 0 : Ae.breakpoints) != null && Ie.xsmall), d = o == null ? void 0 : o.large, v = o == null ? void 0 : o.medium, I = o == null ? void 0 : o.small, A = o == null ? void 0 : o.xsmall, W =
|
|
3054
|
+
), f = !!((Ie = (Ae = s == null ? void 0 : s.meta) == null ? void 0 : Ae.breakpoints) != null && Ie.xsmall), d = o == null ? void 0 : o.large, v = o == null ? void 0 : o.medium, I = o == null ? void 0 : o.small, A = o == null ? void 0 : o.xsmall, W = n.id;
|
|
3055
3055
|
if (!W)
|
|
3056
3056
|
return "";
|
|
3057
3057
|
const V = d ? _e({
|
|
@@ -3078,7 +3078,7 @@ function Bo(e) {
|
|
|
3078
3078
|
"xsmall",
|
|
3079
3079
|
a
|
|
3080
3080
|
)
|
|
3081
|
-
}) : "", _ =
|
|
3081
|
+
}) : "", _ = n.animations && n.animations.find((x) => x.trigger === "hover");
|
|
3082
3082
|
let k = "";
|
|
3083
3083
|
if (_) {
|
|
3084
3084
|
const x = ((Z = (B = _.steps) == null ? void 0 : B[1]) == null ? void 0 : Z.styles) || {};
|
|
@@ -3101,35 +3101,35 @@ function Bo(e) {
|
|
|
3101
3101
|
k
|
|
3102
3102
|
].join(" ");
|
|
3103
3103
|
}
|
|
3104
|
-
return /* @__PURE__ */ T(J, { children:
|
|
3105
|
-
|
|
3104
|
+
return /* @__PURE__ */ T(J, { children: r() && t() ? /* @__PURE__ */ T(J, { children: /* @__PURE__ */ T(
|
|
3105
|
+
Bo,
|
|
3106
3106
|
{
|
|
3107
3107
|
id: "builderio-block",
|
|
3108
|
-
styles:
|
|
3108
|
+
styles: r(),
|
|
3109
3109
|
nonce: e.context.nonce
|
|
3110
3110
|
}
|
|
3111
3111
|
) }) : null });
|
|
3112
3112
|
}
|
|
3113
|
-
function
|
|
3113
|
+
function Do(e) {
|
|
3114
3114
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
3115
3115
|
}
|
|
3116
|
-
const
|
|
3116
|
+
const _o = (e) => `on${Do(e)}`, Uo = (e, t) => (r) => ct({
|
|
3117
3117
|
code: e,
|
|
3118
3118
|
context: t.context,
|
|
3119
3119
|
localState: t.localState,
|
|
3120
3120
|
rootState: t.rootState,
|
|
3121
3121
|
rootSetState: t.rootSetState,
|
|
3122
|
-
event:
|
|
3122
|
+
event: r,
|
|
3123
3123
|
isExpression: !1
|
|
3124
3124
|
});
|
|
3125
|
-
function
|
|
3126
|
-
var
|
|
3127
|
-
const t = {},
|
|
3128
|
-
for (const o in
|
|
3129
|
-
if (!
|
|
3125
|
+
function an(e) {
|
|
3126
|
+
var n;
|
|
3127
|
+
const t = {}, r = (n = e.block.actions) != null ? n : {};
|
|
3128
|
+
for (const o in r) {
|
|
3129
|
+
if (!r.hasOwnProperty(o))
|
|
3130
3130
|
continue;
|
|
3131
|
-
const s =
|
|
3132
|
-
let a =
|
|
3131
|
+
const s = r[o];
|
|
3132
|
+
let a = _o(o);
|
|
3133
3133
|
if (e.stripPrefix)
|
|
3134
3134
|
switch (at) {
|
|
3135
3135
|
case "vue":
|
|
@@ -3139,49 +3139,49 @@ function sn(e) {
|
|
|
3139
3139
|
a = a.replace("on:", "");
|
|
3140
3140
|
break;
|
|
3141
3141
|
}
|
|
3142
|
-
t[a] =
|
|
3142
|
+
t[a] = Uo(s, e);
|
|
3143
3143
|
}
|
|
3144
3144
|
return t;
|
|
3145
3145
|
}
|
|
3146
|
-
function
|
|
3146
|
+
function Lo({
|
|
3147
3147
|
properties: e
|
|
3148
3148
|
}) {
|
|
3149
3149
|
return e;
|
|
3150
3150
|
}
|
|
3151
|
-
const
|
|
3151
|
+
const Fo = (e) => ({
|
|
3152
3152
|
href: e.href
|
|
3153
3153
|
});
|
|
3154
3154
|
function nr({
|
|
3155
3155
|
block: e,
|
|
3156
3156
|
context: t
|
|
3157
3157
|
}) {
|
|
3158
|
-
var
|
|
3159
|
-
const
|
|
3160
|
-
...
|
|
3158
|
+
var n;
|
|
3159
|
+
const r = {
|
|
3160
|
+
...Fo(e),
|
|
3161
3161
|
...e.properties,
|
|
3162
3162
|
"builder-id": e.id,
|
|
3163
|
-
style:
|
|
3163
|
+
style: Oo({
|
|
3164
3164
|
block: e,
|
|
3165
3165
|
context: t
|
|
3166
3166
|
}),
|
|
3167
|
-
[
|
|
3167
|
+
[In()]: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
|
|
3168
3168
|
};
|
|
3169
|
-
return
|
|
3170
|
-
properties:
|
|
3169
|
+
return Lo({
|
|
3170
|
+
properties: r,
|
|
3171
3171
|
context: t,
|
|
3172
3172
|
block: e
|
|
3173
3173
|
});
|
|
3174
3174
|
}
|
|
3175
|
-
function
|
|
3175
|
+
function Wo(e) {
|
|
3176
3176
|
return /* @__PURE__ */ T(
|
|
3177
|
-
|
|
3177
|
+
Tn,
|
|
3178
3178
|
{
|
|
3179
3179
|
TagName: e.Wrapper,
|
|
3180
3180
|
attributes: nr({
|
|
3181
3181
|
block: e.block,
|
|
3182
3182
|
context: e.context
|
|
3183
3183
|
}),
|
|
3184
|
-
actionAttributes:
|
|
3184
|
+
actionAttributes: an({
|
|
3185
3185
|
block: e.block,
|
|
3186
3186
|
rootState: e.context.rootState,
|
|
3187
3187
|
rootSetState: e.context.rootSetState,
|
|
@@ -3193,18 +3193,18 @@ function Fo(e) {
|
|
|
3193
3193
|
}
|
|
3194
3194
|
);
|
|
3195
3195
|
}
|
|
3196
|
-
function
|
|
3197
|
-
return
|
|
3196
|
+
function Go(e) {
|
|
3197
|
+
return ye(() => {
|
|
3198
3198
|
}, []), /* @__PURE__ */ T(J, { children: e.children });
|
|
3199
3199
|
}
|
|
3200
|
-
function
|
|
3200
|
+
function $o(e) {
|
|
3201
3201
|
function t() {
|
|
3202
3202
|
return e.includeBlockProps ? {
|
|
3203
3203
|
...nr({
|
|
3204
3204
|
block: e.block,
|
|
3205
3205
|
context: e.context
|
|
3206
3206
|
}),
|
|
3207
|
-
...
|
|
3207
|
+
...an({
|
|
3208
3208
|
block: e.block,
|
|
3209
3209
|
rootState: e.context.rootState,
|
|
3210
3210
|
rootSetState: e.context.rootSetState,
|
|
@@ -3213,8 +3213,11 @@ function Go(e) {
|
|
|
3213
3213
|
})
|
|
3214
3214
|
} : {};
|
|
3215
3215
|
}
|
|
3216
|
+
function r() {
|
|
3217
|
+
return e.wrapperProps;
|
|
3218
|
+
}
|
|
3216
3219
|
return /* @__PURE__ */ T(J, { children: e.Wrapper.load ? /* @__PURE__ */ T(J, { children: /* @__PURE__ */ T(
|
|
3217
|
-
|
|
3220
|
+
Go,
|
|
3218
3221
|
{
|
|
3219
3222
|
load: e.Wrapper.load,
|
|
3220
3223
|
fallback: e.Wrapper.fallback,
|
|
@@ -3222,13 +3225,13 @@ function Go(e) {
|
|
|
3222
3225
|
attributes: t(),
|
|
3223
3226
|
children: e.children
|
|
3224
3227
|
}
|
|
3225
|
-
) }) : /* @__PURE__ */ T(e.Wrapper, { ...
|
|
3228
|
+
) }) : /* @__PURE__ */ T(e.Wrapper, { ...r(), attributes: t(), children: e.children }) });
|
|
3226
3229
|
}
|
|
3227
|
-
const
|
|
3230
|
+
const Vo = ({
|
|
3228
3231
|
componentOptions: e,
|
|
3229
3232
|
builderBlock: t,
|
|
3230
|
-
context:
|
|
3231
|
-
componentRef:
|
|
3233
|
+
context: r,
|
|
3234
|
+
componentRef: n,
|
|
3232
3235
|
includeBlockProps: o,
|
|
3233
3236
|
isInteractive: s,
|
|
3234
3237
|
contextValue: a
|
|
@@ -3247,24 +3250,24 @@ const $o = ({
|
|
|
3247
3250
|
} : {}
|
|
3248
3251
|
};
|
|
3249
3252
|
return s ? {
|
|
3250
|
-
Wrapper:
|
|
3253
|
+
Wrapper: n,
|
|
3251
3254
|
block: t,
|
|
3252
|
-
context:
|
|
3255
|
+
context: r,
|
|
3253
3256
|
wrapperProps: e,
|
|
3254
3257
|
includeBlockProps: o
|
|
3255
3258
|
} : f;
|
|
3256
3259
|
};
|
|
3257
|
-
function
|
|
3258
|
-
var
|
|
3260
|
+
function $r(e) {
|
|
3261
|
+
var n;
|
|
3259
3262
|
He(() => !1);
|
|
3260
|
-
const [t,
|
|
3261
|
-
() => e.isInteractive ?
|
|
3263
|
+
const [t, r] = He(
|
|
3264
|
+
() => e.isInteractive ? $o : e.componentRef
|
|
3262
3265
|
);
|
|
3263
|
-
return
|
|
3266
|
+
return ye(() => {
|
|
3264
3267
|
}, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ T(J, { children: e.componentRef ? /* @__PURE__ */ T(J, { children: /* @__PURE__ */ T(
|
|
3265
3268
|
t,
|
|
3266
3269
|
{
|
|
3267
|
-
|
|
3270
|
+
...Vo({
|
|
3268
3271
|
componentOptions: e.componentOptions,
|
|
3269
3272
|
builderBlock: e.builderBlock,
|
|
3270
3273
|
context: e.context,
|
|
@@ -3274,7 +3277,7 @@ function Gr(e) {
|
|
|
3274
3277
|
isInteractive: e.isInteractive,
|
|
3275
3278
|
contextValue: e.context
|
|
3276
3279
|
}),
|
|
3277
|
-
children: (
|
|
3280
|
+
children: (n = e.blockChildren) == null ? void 0 : n.map((o) => /* @__PURE__ */ T(
|
|
3278
3281
|
pt,
|
|
3279
3282
|
{
|
|
3280
3283
|
block: o,
|
|
@@ -3287,9 +3290,11 @@ function Gr(e) {
|
|
|
3287
3290
|
}
|
|
3288
3291
|
) }) : null });
|
|
3289
3292
|
}
|
|
3290
|
-
function
|
|
3291
|
-
const [t,
|
|
3292
|
-
return
|
|
3293
|
+
function Vr(e) {
|
|
3294
|
+
const [t, r] = He(() => e.repeatContext);
|
|
3295
|
+
return ye(() => {
|
|
3296
|
+
r(e.repeatContext);
|
|
3297
|
+
}, [e.repeatContext]), /* @__PURE__ */ T(Xr.Provider, { value: t, children: /* @__PURE__ */ T(
|
|
3293
3298
|
pt,
|
|
3294
3299
|
{
|
|
3295
3300
|
block: e.block,
|
|
@@ -3302,30 +3307,30 @@ function $r(e) {
|
|
|
3302
3307
|
function pt(e) {
|
|
3303
3308
|
var I, A, W, V;
|
|
3304
3309
|
function t() {
|
|
3305
|
-
return
|
|
3310
|
+
return Io({
|
|
3306
3311
|
block: e.block,
|
|
3307
3312
|
context: e.context
|
|
3308
3313
|
});
|
|
3309
3314
|
}
|
|
3310
|
-
const [
|
|
3315
|
+
const [r, n] = He(() => ({
|
|
3311
3316
|
value: null,
|
|
3312
3317
|
update: !1
|
|
3313
3318
|
}));
|
|
3314
3319
|
function o() {
|
|
3315
3320
|
var O;
|
|
3316
|
-
if (
|
|
3317
|
-
return
|
|
3318
|
-
const P = (O = e.block.repeat) != null && O.collection ? e.block :
|
|
3321
|
+
if (r.value && !r.update && !An())
|
|
3322
|
+
return r.value;
|
|
3323
|
+
const P = (O = e.block.repeat) != null && O.collection ? e.block : mo({
|
|
3319
3324
|
block: e.block,
|
|
3320
3325
|
localState: e.context.localState,
|
|
3321
3326
|
rootState: e.context.rootState,
|
|
3322
3327
|
rootSetState: e.context.rootSetState,
|
|
3323
3328
|
context: e.context.context
|
|
3324
3329
|
});
|
|
3325
|
-
return
|
|
3330
|
+
return r.value = P, r.update = !1, P;
|
|
3326
3331
|
}
|
|
3327
3332
|
function s() {
|
|
3328
|
-
return
|
|
3333
|
+
return Ao({
|
|
3329
3334
|
block: o(),
|
|
3330
3335
|
registeredComponents: e.registeredComponents,
|
|
3331
3336
|
model: e.context.model
|
|
@@ -3352,11 +3357,11 @@ function pt(e) {
|
|
|
3352
3357
|
blockChildren: (P = o().children) != null ? P : [],
|
|
3353
3358
|
componentRef: (O = s == null ? void 0 : s()) == null ? void 0 : O.component,
|
|
3354
3359
|
componentOptions: {
|
|
3355
|
-
...
|
|
3356
|
-
...
|
|
3357
|
-
...
|
|
3358
|
-
...
|
|
3359
|
-
...
|
|
3360
|
+
...so(o(), e.context),
|
|
3361
|
+
...bo(s(), o()),
|
|
3362
|
+
...No(s(), e.context),
|
|
3363
|
+
...To(s(), e.linkComponent),
|
|
3364
|
+
...Po(
|
|
3360
3365
|
s(),
|
|
3361
3366
|
e.registeredComponents,
|
|
3362
3367
|
e.context.model
|
|
@@ -3370,29 +3375,29 @@ function pt(e) {
|
|
|
3370
3375
|
isInteractive: !((_ = s == null ? void 0 : s()) != null && _.isRSC && at === "rsc")
|
|
3371
3376
|
};
|
|
3372
3377
|
}
|
|
3373
|
-
return
|
|
3378
|
+
return ye(() => {
|
|
3374
3379
|
const P = o().id, O = o().animations;
|
|
3375
|
-
O && P &&
|
|
3380
|
+
O && P && wo(
|
|
3376
3381
|
O.map((R) => ({
|
|
3377
3382
|
...R,
|
|
3378
3383
|
elementId: P
|
|
3379
3384
|
}))
|
|
3380
3385
|
);
|
|
3381
|
-
}, []),
|
|
3382
|
-
|
|
3386
|
+
}, []), ye(() => {
|
|
3387
|
+
r.update = !0;
|
|
3383
3388
|
}), /* @__PURE__ */ T(J, { children: f() ? /* @__PURE__ */ Ut(J, { children: [
|
|
3384
|
-
/* @__PURE__ */ T(
|
|
3389
|
+
/* @__PURE__ */ T(Mo, { block: o(), context: e.context }),
|
|
3385
3390
|
(I = s == null ? void 0 : s()) != null && I.noWrap ? t() ? /* @__PURE__ */ T(J, { children: (V = t()) == null ? void 0 : V.map((P, O) => /* @__PURE__ */ T(
|
|
3386
|
-
|
|
3391
|
+
Vr,
|
|
3387
3392
|
{
|
|
3388
3393
|
repeatContext: P.context,
|
|
3389
3394
|
block: P.block,
|
|
3390
3395
|
registeredComponents: e.registeredComponents,
|
|
3391
3396
|
linkComponent: e.linkComponent
|
|
3392
3397
|
},
|
|
3393
|
-
O
|
|
3398
|
+
Gr(O)
|
|
3394
3399
|
)) }) : /* @__PURE__ */ T(
|
|
3395
|
-
|
|
3400
|
+
$r,
|
|
3396
3401
|
{
|
|
3397
3402
|
componentRef: v().componentRef,
|
|
3398
3403
|
componentOptions: v().componentOptions,
|
|
@@ -3405,23 +3410,23 @@ function pt(e) {
|
|
|
3405
3410
|
isInteractive: v().isInteractive
|
|
3406
3411
|
}
|
|
3407
3412
|
) : /* @__PURE__ */ T(J, { children: t() ? /* @__PURE__ */ T(J, { children: (W = t()) == null ? void 0 : W.map((P, O) => /* @__PURE__ */ T(
|
|
3408
|
-
|
|
3413
|
+
Vr,
|
|
3409
3414
|
{
|
|
3410
3415
|
repeatContext: P.context,
|
|
3411
3416
|
block: P.block,
|
|
3412
3417
|
registeredComponents: e.registeredComponents,
|
|
3413
3418
|
linkComponent: e.linkComponent
|
|
3414
3419
|
},
|
|
3415
|
-
O
|
|
3420
|
+
Gr(O)
|
|
3416
3421
|
)) }) : /* @__PURE__ */ Ut(
|
|
3417
|
-
|
|
3422
|
+
Wo,
|
|
3418
3423
|
{
|
|
3419
3424
|
Wrapper: a(),
|
|
3420
3425
|
block: o(),
|
|
3421
3426
|
context: e.context,
|
|
3422
3427
|
children: [
|
|
3423
3428
|
/* @__PURE__ */ T(
|
|
3424
|
-
|
|
3429
|
+
$r,
|
|
3425
3430
|
{
|
|
3426
3431
|
componentRef: v().componentRef,
|
|
3427
3432
|
componentOptions: v().componentOptions,
|
|
@@ -3449,10 +3454,10 @@ function pt(e) {
|
|
|
3449
3454
|
) })
|
|
3450
3455
|
] }) : null });
|
|
3451
3456
|
}
|
|
3452
|
-
function
|
|
3453
|
-
const t =
|
|
3457
|
+
function Xo(e) {
|
|
3458
|
+
const t = On(null);
|
|
3454
3459
|
He(() => !1);
|
|
3455
|
-
function
|
|
3460
|
+
function r() {
|
|
3456
3461
|
var a;
|
|
3457
3462
|
return [
|
|
3458
3463
|
"builder-blocks",
|
|
@@ -3460,7 +3465,7 @@ function Vo(e) {
|
|
|
3460
3465
|
e.classNameProp
|
|
3461
3466
|
].filter(Boolean).join(" ");
|
|
3462
3467
|
}
|
|
3463
|
-
function
|
|
3468
|
+
function n() {
|
|
3464
3469
|
if (!e.path)
|
|
3465
3470
|
return;
|
|
3466
3471
|
const a = "this.", f = "component.options.";
|
|
@@ -3473,7 +3478,7 @@ function Vo(e) {
|
|
|
3473
3478
|
type: "builder.clickEmptyBlocks",
|
|
3474
3479
|
data: {
|
|
3475
3480
|
parentElementId: e.parent,
|
|
3476
|
-
dataPath:
|
|
3481
|
+
dataPath: n()
|
|
3477
3482
|
}
|
|
3478
3483
|
},
|
|
3479
3484
|
"*"
|
|
@@ -3486,21 +3491,21 @@ function Vo(e) {
|
|
|
3486
3491
|
type: "builder.hoverEmptyBlocks",
|
|
3487
3492
|
data: {
|
|
3488
3493
|
parentElementId: e.parent,
|
|
3489
|
-
dataPath:
|
|
3494
|
+
dataPath: n()
|
|
3490
3495
|
}
|
|
3491
3496
|
},
|
|
3492
3497
|
"*"
|
|
3493
3498
|
));
|
|
3494
3499
|
}
|
|
3495
|
-
return
|
|
3496
|
-
}, []),
|
|
3500
|
+
return ye(() => {
|
|
3501
|
+
}, []), ye(() => {
|
|
3497
3502
|
}, [e.blocks]), /* @__PURE__ */ Ut(J, { children: [
|
|
3498
3503
|
/* @__PURE__ */ T(
|
|
3499
3504
|
e.BlocksWrapper,
|
|
3500
3505
|
{
|
|
3501
3506
|
ref: t,
|
|
3502
|
-
className:
|
|
3503
|
-
"builder-path":
|
|
3507
|
+
className: r() + " props-blocks-wrapper-14802cff",
|
|
3508
|
+
"builder-path": n(),
|
|
3504
3509
|
"builder-parent-id": e.parent,
|
|
3505
3510
|
style: e.styleProp,
|
|
3506
3511
|
onClick: (a) => o(),
|
|
@@ -3517,18 +3522,18 @@ function Vo(e) {
|
|
|
3517
3522
|
}` })
|
|
3518
3523
|
] });
|
|
3519
3524
|
}
|
|
3520
|
-
function
|
|
3521
|
-
var
|
|
3522
|
-
const t = Mr(
|
|
3525
|
+
function Ho(e) {
|
|
3526
|
+
var n, o, s;
|
|
3527
|
+
const t = Mr(Xr), r = Mr(Pn);
|
|
3523
3528
|
return /* @__PURE__ */ T(
|
|
3524
|
-
|
|
3529
|
+
Xo,
|
|
3525
3530
|
{
|
|
3526
3531
|
blocks: e.blocks,
|
|
3527
3532
|
parent: e.parent,
|
|
3528
3533
|
path: e.path,
|
|
3529
3534
|
styleProp: e.styleProp,
|
|
3530
3535
|
classNameProp: e.className,
|
|
3531
|
-
BlocksWrapper: ((
|
|
3536
|
+
BlocksWrapper: ((n = e.context) == null ? void 0 : n.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
3532
3537
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
3533
3538
|
children: e.blocks ? /* @__PURE__ */ T(J, { children: (s = e.blocks) == null ? void 0 : s.map((a) => /* @__PURE__ */ T(
|
|
3534
3539
|
pt,
|
|
@@ -3536,27 +3541,27 @@ function Xo(e) {
|
|
|
3536
3541
|
block: a,
|
|
3537
3542
|
linkComponent: e.linkComponent,
|
|
3538
3543
|
context: e.context || t,
|
|
3539
|
-
registeredComponents: e.registeredComponents || (
|
|
3544
|
+
registeredComponents: e.registeredComponents || (r == null ? void 0 : r.registeredComponents)
|
|
3540
3545
|
},
|
|
3541
3546
|
a.id
|
|
3542
3547
|
)) }) : null
|
|
3543
3548
|
}
|
|
3544
3549
|
);
|
|
3545
3550
|
}
|
|
3546
|
-
const
|
|
3551
|
+
const qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3547
3552
|
__proto__: null,
|
|
3548
|
-
default:
|
|
3553
|
+
default: Ho
|
|
3549
3554
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3550
3555
|
export {
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3556
|
+
Ho as Blocks,
|
|
3557
|
+
Pn as ComponentsContext,
|
|
3558
|
+
Bo as InlinedStyles,
|
|
3559
|
+
qo as blocks,
|
|
3555
3560
|
ct as evaluate,
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3561
|
+
en as fastClone,
|
|
3562
|
+
bn as get,
|
|
3563
|
+
Ro as getSizesForBreakpoints,
|
|
3564
|
+
jo as mapStyleObjToStrIfNeeded,
|
|
3565
|
+
po as set,
|
|
3566
|
+
So as triggerAnimation
|
|
3562
3567
|
};
|