@builder.io/sdk-react 1.0.20 → 1.0.22
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 +22 -22
- package/lib/browser/blocks-exports.mjs +428 -432
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -0
- package/lib/browser/init.mjs +13 -0
- package/lib/browser/{server-entry-a562cf23.js → server-entry-3e30c656.js} +81 -82
- package/lib/browser/server-entry-8951c0c5.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-5705f416.cjs +32 -0
- package/lib/edge/{blocks-683aad9f.js → blocks-b1f5ec2b.js} +742 -747
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-9f6acf3e.js → button-2b710146.js} +2 -2
- package/lib/edge/{button-0d418bcf.cjs → button-3c20ccff.cjs} +1 -1
- package/lib/edge/{columns-b0785992.js → columns-38a397cd.js} +3 -3
- package/lib/edge/{columns-1613d62d.cjs → columns-761d98c4.cjs} +1 -1
- package/lib/edge/{content-variants-281298f6.cjs → content-variants-befe3587.cjs} +4 -4
- package/lib/edge/{content-variants-13f821c6.js → content-variants-f165fa88.js} +21 -21
- package/lib/edge/{form-0483aa64.cjs → form-b0d65d74.cjs} +1 -1
- package/lib/edge/{form-db27fc26.js → form-d0cfb830.js} +3 -3
- package/lib/edge/{get-class-prop-name-e3ba0522.cjs → get-class-prop-name-27f8a4f1.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-6bfc4756.js → get-class-prop-name-49d9b54f.js} +1 -1
- package/lib/edge/{img-43a8ffe0.js → img-e321016e.js} +1 -1
- package/lib/edge/{img-f01d904d.cjs → img-fcf6e57f.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -0
- package/lib/edge/init.mjs +13 -0
- package/lib/edge/{input-805a9ac6.js → input-27f575fe.js} +1 -1
- package/lib/edge/{input-e6483bd7.cjs → input-f0319ee6.cjs} +1 -1
- package/lib/edge/{select-4966723f.js → select-dd4c61db.js} +1 -1
- package/lib/edge/{select-e5d1e627.cjs → select-e31522ee.cjs} +1 -1
- package/lib/edge/{server-entry-c13e82bd.js → server-entry-253a0fa1.js} +80 -81
- package/lib/edge/server-entry-dd363108.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-3ef77ae1.cjs → slot-a2388031.cjs} +1 -1
- package/lib/edge/{slot-1b0351de.js → slot-fea27ccf.js} +3 -3
- package/lib/edge/{symbol-f1632f93.js → symbol-686edeb8.js} +2 -2
- package/lib/edge/{symbol-883d624f.cjs → symbol-ba2c6245.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +30 -70
- package/lib/node/blocks-exports.mjs +916 -1046
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +23 -22
- package/lib/node/init.cjs +1 -0
- package/lib/node/init.mjs +9 -0
- package/lib/node/node-runtime-6587ed2e.js +155 -0
- package/lib/node/node-runtime-fa43cf07.cjs +48 -0
- package/lib/node/{server-entry-8c712c9b.js → server-entry-14d7a1d0.js} +82 -82
- package/lib/node/server-entry-3abae5dd.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +6 -1
- package/types/components/block/animator.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/node-runtime/init.d.ts +10 -0
- package/types/functions/evaluate/node-runtime/node-runtime.d.ts +6 -0
- package/types/functions/get-content/types.d.ts +3 -3
- package/types/functions/is-previewing.d.ts +1 -1
- package/types/helpers/logger.d.ts +1 -0
- package/lib/browser/server-entry-a77461d4.cjs +0 -2
- package/lib/edge/blocks-523eb4f1.cjs +0 -32
- package/lib/edge/server-entry-83648311.cjs +0 -2
- package/lib/node/server-entry-bedf45f8.cjs +0 -2
|
@@ -1,25 +1,18 @@
|
|
|
1
1
|
var kn = Object.defineProperty;
|
|
2
2
|
var En = (e, t, n) => t in e ? kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
4
|
-
import { jsx as T, Fragment as
|
|
5
|
-
import { createContext as Cn, useState as
|
|
6
|
-
import { BuilderContext as
|
|
7
|
-
import { isEditing as Ut, isBrowser as Ft, getUserAttributes as On, logger as
|
|
8
|
-
import { getClassPropName as An } from "./get-class-prop-name-
|
|
3
|
+
var Mt = (e, t, n) => (En(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
+
import { jsx as T, Fragment as Z, jsxs as Dt } from "react/jsx-runtime";
|
|
5
|
+
import { createContext as Cn, useState as $r, useEffect as jn, useContext as Rr } from "react";
|
|
6
|
+
import { BuilderContext as Gr } from "./blocks-exports.mjs";
|
|
7
|
+
import { isEditing as Ut, isBrowser as Ft, getUserAttributes as On, logger as He, checkIsDefined as st, fastClone as Vr, TARGET as Xr } from "./server-entry-253a0fa1.js";
|
|
8
|
+
import { getClassPropName as An } from "./get-class-prop-name-49d9b54f.js";
|
|
9
9
|
import { DynamicRenderer as In } from "./dynamic-renderer-8b343325.js";
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Our built-in components frequently make use of the block, so we provide all of it under `builderBlock`
|
|
18
|
-
*/
|
|
19
|
-
builderBlock: e
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
const Jr = ({
|
|
10
|
+
const Hr = (e, t, n) => {
|
|
11
|
+
if (Object(e) !== e)
|
|
12
|
+
return e;
|
|
13
|
+
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
14
|
+
return r.slice(0, -1).reduce((o, s, a) => Object(o[s]) === o[s] ? o[s] : o[s] = Math.abs(Number(r[a + 1])) >> 0 === +r[a + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
15
|
+
}, Kr = ({
|
|
23
16
|
builder: e,
|
|
24
17
|
context: t,
|
|
25
18
|
event: n,
|
|
@@ -31,14 +24,26 @@ const Jr = ({
|
|
|
31
24
|
builder: e,
|
|
32
25
|
context: t,
|
|
33
26
|
event: n
|
|
34
|
-
}),
|
|
27
|
+
}), bn = () => ({
|
|
35
28
|
isEditing: Ut(),
|
|
36
29
|
isBrowser: Ft(),
|
|
37
30
|
isServer: !Ft(),
|
|
38
31
|
getUserAttributes: () => On()
|
|
39
|
-
}),
|
|
32
|
+
}), Tn = (e, {
|
|
40
33
|
isExpression: t = !0
|
|
41
|
-
}) => /* 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,
|
|
34
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, Nn = Cn({ registeredComponents: {} });
|
|
35
|
+
function Pn(e) {
|
|
36
|
+
var t;
|
|
37
|
+
return {
|
|
38
|
+
...(t = e.component) == null ? void 0 : t.options,
|
|
39
|
+
...e.options,
|
|
40
|
+
/**
|
|
41
|
+
* Our built-in components frequently make use of the block, so we provide all of it under `builderBlock`
|
|
42
|
+
*/
|
|
43
|
+
builderBlock: e
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
const Rn = ({
|
|
42
47
|
code: e,
|
|
43
48
|
builder: t,
|
|
44
49
|
context: n,
|
|
@@ -47,11 +52,11 @@ const Jr = ({
|
|
|
47
52
|
rootSetState: s,
|
|
48
53
|
rootState: a
|
|
49
54
|
}) => {
|
|
50
|
-
const f =
|
|
55
|
+
const f = Kr({
|
|
51
56
|
builder: t,
|
|
52
57
|
context: n,
|
|
53
58
|
event: r,
|
|
54
|
-
state:
|
|
59
|
+
state: Jr({
|
|
55
60
|
rootState: a,
|
|
56
61
|
localState: o,
|
|
57
62
|
rootSetState: s
|
|
@@ -59,7 +64,7 @@ const Jr = ({
|
|
|
59
64
|
});
|
|
60
65
|
return new Function(...f.map(([g]) => g), e)(...f.map(([, g]) => g));
|
|
61
66
|
};
|
|
62
|
-
function
|
|
67
|
+
function Jr({
|
|
63
68
|
rootState: e,
|
|
64
69
|
localState: t,
|
|
65
70
|
rootSetState: n
|
|
@@ -69,7 +74,7 @@ function Yr({
|
|
|
69
74
|
if (t && o in t)
|
|
70
75
|
return t[o];
|
|
71
76
|
const s = r[o];
|
|
72
|
-
return typeof s == "object" && s !== null ?
|
|
77
|
+
return typeof s == "object" && s !== null ? Jr({
|
|
73
78
|
rootState: s,
|
|
74
79
|
localState: void 0,
|
|
75
80
|
rootSetState: n ? (a) => {
|
|
@@ -84,25 +89,19 @@ function Yr({
|
|
|
84
89
|
}
|
|
85
90
|
});
|
|
86
91
|
}
|
|
87
|
-
const Zr = (e, t, n) => {
|
|
88
|
-
if (Object(e) !== e)
|
|
89
|
-
return e;
|
|
90
|
-
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
91
|
-
return r.slice(0, -1).reduce((o, s, a) => Object(o[s]) === o[s] ? o[s] : o[s] = Math.abs(Number(r[a + 1])) >> 0 === +r[a + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
92
|
-
};
|
|
93
92
|
var b, Mn = function(e) {
|
|
94
93
|
function t(i) {
|
|
95
94
|
return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Sn.test(String.fromCharCode(i));
|
|
96
95
|
}
|
|
97
96
|
function n(i) {
|
|
98
|
-
return 65 > i ? i === 36 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i &&
|
|
97
|
+
return 65 > i ? i === 36 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Pr.test(String.fromCharCode(i));
|
|
99
98
|
}
|
|
100
99
|
function r(i, l) {
|
|
101
100
|
for (var u = d, p = 1, x = 0; ; ) {
|
|
102
101
|
ot.lastIndex = x;
|
|
103
|
-
var
|
|
104
|
-
if (
|
|
105
|
-
++p, x =
|
|
102
|
+
var F = ot.exec(u);
|
|
103
|
+
if (F && F.index < i)
|
|
104
|
+
++p, x = F.index + F[0].length;
|
|
106
105
|
else
|
|
107
106
|
break;
|
|
108
107
|
}
|
|
@@ -120,35 +119,35 @@ var b, Mn = function(e) {
|
|
|
120
119
|
};
|
|
121
120
|
}
|
|
122
121
|
function s() {
|
|
123
|
-
this.line =
|
|
122
|
+
this.line = de, this.ab = c - re;
|
|
124
123
|
}
|
|
125
124
|
function a(i, l) {
|
|
126
|
-
|
|
125
|
+
me = c, j.C && (St = new s()), S = i, g(), J = l, Re = i.m;
|
|
127
126
|
}
|
|
128
127
|
function f() {
|
|
129
|
-
for (var i = c, l =
|
|
128
|
+
for (var i = c, l = j.va && j.C && new s(), u = d.charCodeAt(c += 2); c < ve && u !== 10 && u !== 13 && u !== 8232 && u !== 8233; )
|
|
130
129
|
++c, u = d.charCodeAt(c);
|
|
131
|
-
|
|
130
|
+
j.va && j.va(!1, d.slice(i + 2, c), i, c, l, j.C && new s());
|
|
132
131
|
}
|
|
133
132
|
function g() {
|
|
134
|
-
for (; c <
|
|
133
|
+
for (; c < ve; ) {
|
|
135
134
|
var i = d.charCodeAt(c);
|
|
136
135
|
if (i === 32)
|
|
137
136
|
++c;
|
|
138
137
|
else if (i === 13)
|
|
139
|
-
++c, i = d.charCodeAt(c), i === 10 && ++c,
|
|
138
|
+
++c, i = d.charCodeAt(c), i === 10 && ++c, j.C && (++de, re = c);
|
|
140
139
|
else if (i === 10 || i === 8232 || i === 8233)
|
|
141
|
-
++c,
|
|
140
|
+
++c, j.C && (++de, re = c);
|
|
142
141
|
else if (8 < i && 14 > i)
|
|
143
142
|
++c;
|
|
144
143
|
else if (i === 47)
|
|
145
144
|
if (i = d.charCodeAt(c + 1), i === 42) {
|
|
146
145
|
i = void 0;
|
|
147
|
-
var l =
|
|
148
|
-
if (p === -1 && r(c - 2, "Unterminated comment"), c = p + 2,
|
|
146
|
+
var l = j.va && j.C && new s(), u = c, p = d.indexOf("*/", c += 2);
|
|
147
|
+
if (p === -1 && r(c - 2, "Unterminated comment"), c = p + 2, j.C)
|
|
149
148
|
for (ot.lastIndex = u; (i = ot.exec(d)) && i.index < c; )
|
|
150
|
-
++
|
|
151
|
-
|
|
149
|
+
++de, re = i.index + i[0].length;
|
|
150
|
+
j.va && j.va(!0, d.slice(u + 2, p), u, c, l, j.C && new s());
|
|
152
151
|
} else if (i === 47)
|
|
153
152
|
f();
|
|
154
153
|
else
|
|
@@ -161,34 +160,34 @@ var b, Mn = function(e) {
|
|
|
161
160
|
break;
|
|
162
161
|
}
|
|
163
162
|
}
|
|
164
|
-
function
|
|
163
|
+
function O(i) {
|
|
165
164
|
switch (i) {
|
|
166
165
|
case 46:
|
|
167
|
-
i = d.charCodeAt(c + 1), 48 <= i && 57 >= i ? I(!0) : (++c, a(
|
|
166
|
+
i = d.charCodeAt(c + 1), 48 <= i && 57 >= i ? I(!0) : (++c, a(Cr));
|
|
168
167
|
return;
|
|
169
168
|
case 40:
|
|
170
|
-
return ++c, a(
|
|
169
|
+
return ++c, a(ne);
|
|
171
170
|
case 41:
|
|
172
|
-
return ++c, a(
|
|
171
|
+
return ++c, a(q);
|
|
173
172
|
case 59:
|
|
174
|
-
return ++c, a(
|
|
173
|
+
return ++c, a(oe);
|
|
175
174
|
case 44:
|
|
176
|
-
return ++c, a(
|
|
175
|
+
return ++c, a(pe);
|
|
177
176
|
case 91:
|
|
178
|
-
return ++c, a(bt);
|
|
179
|
-
case 93:
|
|
180
177
|
return ++c, a(Tt);
|
|
178
|
+
case 93:
|
|
179
|
+
return ++c, a(Nt);
|
|
181
180
|
case 123:
|
|
182
|
-
return ++c, a(
|
|
181
|
+
return ++c, a(De);
|
|
183
182
|
case 125:
|
|
184
|
-
return ++c, a(
|
|
183
|
+
return ++c, a(Se);
|
|
185
184
|
case 58:
|
|
186
|
-
return ++c, a(
|
|
185
|
+
return ++c, a(Ue);
|
|
187
186
|
case 63:
|
|
188
|
-
return ++c, a(
|
|
187
|
+
return ++c, a(jr);
|
|
189
188
|
case 48:
|
|
190
189
|
if (i = d.charCodeAt(c + 1), i === 120 || i === 88) {
|
|
191
|
-
c += 2, i =
|
|
190
|
+
c += 2, i = R(16), i === null && r(U + 2, "Expected hexadecimal number"), n(d.charCodeAt(c)) && r(c, "Identifier directly after number"), a(Be, i);
|
|
192
191
|
return;
|
|
193
192
|
}
|
|
194
193
|
case 49:
|
|
@@ -205,7 +204,7 @@ var b, Mn = function(e) {
|
|
|
205
204
|
case 39:
|
|
206
205
|
c++;
|
|
207
206
|
for (var l = ""; ; ) {
|
|
208
|
-
c >=
|
|
207
|
+
c >= ve && r(U, "Unterminated string constant");
|
|
209
208
|
var u = d.charCodeAt(c);
|
|
210
209
|
if (u === i) {
|
|
211
210
|
++c, a(et, l);
|
|
@@ -217,7 +216,7 @@ var b, Mn = function(e) {
|
|
|
217
216
|
for (p && (p = p[0]); p && 255 < parseInt(p, 8); )
|
|
218
217
|
p = p.slice(0, -1);
|
|
219
218
|
if (p === "0" && (p = null), ++c, p)
|
|
220
|
-
|
|
219
|
+
H && r(c - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(p, 8)), c += p.length - 1;
|
|
221
220
|
else
|
|
222
221
|
switch (u) {
|
|
223
222
|
case 110:
|
|
@@ -228,13 +227,13 @@ var b, Mn = function(e) {
|
|
|
228
227
|
l += "\r";
|
|
229
228
|
break;
|
|
230
229
|
case 120:
|
|
231
|
-
l += String.fromCharCode(
|
|
230
|
+
l += String.fromCharCode(D(2));
|
|
232
231
|
break;
|
|
233
232
|
case 117:
|
|
234
|
-
l += String.fromCharCode(
|
|
233
|
+
l += String.fromCharCode(D(4));
|
|
235
234
|
break;
|
|
236
235
|
case 85:
|
|
237
|
-
l += String.fromCharCode(
|
|
236
|
+
l += String.fromCharCode(D(8));
|
|
238
237
|
break;
|
|
239
238
|
case 116:
|
|
240
239
|
l += " ";
|
|
@@ -254,56 +253,56 @@ var b, Mn = function(e) {
|
|
|
254
253
|
case 13:
|
|
255
254
|
d.charCodeAt(c) === 10 && ++c;
|
|
256
255
|
case 10:
|
|
257
|
-
|
|
256
|
+
j.C && (re = c, ++de);
|
|
258
257
|
break;
|
|
259
258
|
default:
|
|
260
259
|
l += String.fromCharCode(u);
|
|
261
260
|
}
|
|
262
261
|
} else
|
|
263
|
-
u !== 13 && u !== 10 && u !== 8232 && u !== 8233 || r(
|
|
262
|
+
u !== 13 && u !== 10 && u !== 8232 && u !== 8233 || r(U, "Unterminated string constant"), l += String.fromCharCode(u), ++c;
|
|
264
263
|
}
|
|
265
264
|
return;
|
|
266
265
|
case 47:
|
|
267
|
-
i = d.charCodeAt(c + 1),
|
|
266
|
+
i = d.charCodeAt(c + 1), Re ? (++c, N()) : i === 61 ? w(ye, 2) : w(Or, 1);
|
|
268
267
|
return;
|
|
269
268
|
case 37:
|
|
270
269
|
case 42:
|
|
271
|
-
d.charCodeAt(c + 1) === 61 ? w(
|
|
270
|
+
d.charCodeAt(c + 1) === 61 ? w(ye, 2) : w(yn, 1);
|
|
272
271
|
return;
|
|
273
272
|
case 124:
|
|
274
273
|
case 38:
|
|
275
|
-
l = d.charCodeAt(c + 1), l === i ? w(i === 124 ?
|
|
274
|
+
l = d.charCodeAt(c + 1), l === i ? w(i === 124 ? br : Tr, 2) : l === 61 ? w(ye, 2) : w(i === 124 ? un : fn, 1);
|
|
276
275
|
return;
|
|
277
276
|
case 94:
|
|
278
|
-
d.charCodeAt(c + 1) === 61 ? w(
|
|
277
|
+
d.charCodeAt(c + 1) === 61 ? w(ye, 2) : w(cn, 1);
|
|
279
278
|
return;
|
|
280
279
|
case 43:
|
|
281
280
|
case 45:
|
|
282
|
-
l = d.charCodeAt(c + 1), l === i ? l === 45 && d.charCodeAt(c + 2) === 62 && nt.test(d.slice(
|
|
281
|
+
l = d.charCodeAt(c + 1), l === i ? l === 45 && d.charCodeAt(c + 2) === 62 && nt.test(d.slice(fe, c)) ? (c += 3, f(), g(), C()) : w(ln, 2) : l === 61 ? w(ye, 2) : w(dn, 1);
|
|
283
282
|
return;
|
|
284
283
|
case 60:
|
|
285
284
|
case 62:
|
|
286
|
-
l = d.charCodeAt(c + 1), u = 1, l === i ? (u = i === 62 && d.charCodeAt(c + 2) === 62 ? 3 : 2, d.charCodeAt(c + u) === 61 ? w(
|
|
285
|
+
l = d.charCodeAt(c + 1), u = 1, l === i ? (u = i === 62 && d.charCodeAt(c + 2) === 62 ? 3 : 2, d.charCodeAt(c + u) === 61 ? w(ye, u + 1) : w(gn, u)) : l === 33 && i === 60 && d.charCodeAt(c + 2) === 45 && d.charCodeAt(c + 3) === 45 ? (c += 4, f(), g(), C()) : (l === 61 && (u = d.charCodeAt(c + 2) === 61 ? 3 : 2), w(hn, u));
|
|
287
286
|
return;
|
|
288
287
|
case 61:
|
|
289
288
|
case 33:
|
|
290
|
-
d.charCodeAt(c + 1) === 61 ? w(pn, d.charCodeAt(c + 2) === 61 ? 3 : 2) : w(i === 61 ?
|
|
289
|
+
d.charCodeAt(c + 1) === 61 ? w(pn, d.charCodeAt(c + 2) === 61 ? 3 : 2) : w(i === 61 ? Ar : Ir, 1);
|
|
291
290
|
return;
|
|
292
291
|
case 126:
|
|
293
|
-
return w(
|
|
292
|
+
return w(Ir, 1);
|
|
294
293
|
}
|
|
295
294
|
return !1;
|
|
296
295
|
}
|
|
297
|
-
function
|
|
298
|
-
if (i ? c =
|
|
296
|
+
function C(i) {
|
|
297
|
+
if (i ? c = U + 1 : U = c, j.C && (wt = new s()), i)
|
|
299
298
|
return N();
|
|
300
|
-
if (c >=
|
|
301
|
-
return a(
|
|
299
|
+
if (c >= ve)
|
|
300
|
+
return a(Et);
|
|
302
301
|
if (i = d.charCodeAt(c), n(i) || i === 92)
|
|
303
|
-
return
|
|
304
|
-
if (
|
|
305
|
-
if (i = String.fromCharCode(i), i === "\\" ||
|
|
306
|
-
return
|
|
302
|
+
return z();
|
|
303
|
+
if (O(i) === !1) {
|
|
304
|
+
if (i = String.fromCharCode(i), i === "\\" || Pr.test(i))
|
|
305
|
+
return z();
|
|
307
306
|
r(c, "Unexpected character '" + i + "'");
|
|
308
307
|
}
|
|
309
308
|
}
|
|
@@ -313,7 +312,7 @@ var b, Mn = function(e) {
|
|
|
313
312
|
}
|
|
314
313
|
function N() {
|
|
315
314
|
for (var i, l, u = c; ; ) {
|
|
316
|
-
c >=
|
|
315
|
+
c >= ve && r(u, "Unterminated regexp");
|
|
317
316
|
var p = d.charAt(c);
|
|
318
317
|
if (nt.test(p) && r(u, "Unterminated regexp"), i)
|
|
319
318
|
i = !1;
|
|
@@ -328,16 +327,16 @@ var b, Mn = function(e) {
|
|
|
328
327
|
}
|
|
329
328
|
++c;
|
|
330
329
|
}
|
|
331
|
-
i = d.slice(u, c), ++c, (l =
|
|
330
|
+
i = d.slice(u, c), ++c, (l = K()) && !/^[gmi]*$/.test(l) && r(u, "Invalid regexp flag");
|
|
332
331
|
try {
|
|
333
332
|
var x = new RegExp(i, l);
|
|
334
|
-
} catch (
|
|
335
|
-
throw
|
|
333
|
+
} catch (F) {
|
|
334
|
+
throw F instanceof SyntaxError && r(u, F.message), F;
|
|
336
335
|
}
|
|
337
|
-
a(
|
|
336
|
+
a(ir, x);
|
|
338
337
|
}
|
|
339
|
-
function
|
|
340
|
-
for (var u = c, p = 0, x = l === void 0 ? 1 / 0 : l,
|
|
338
|
+
function R(i, l) {
|
|
339
|
+
for (var u = c, p = 0, x = l === void 0 ? 1 / 0 : l, F = 0; F < x; ++F) {
|
|
341
340
|
var G = d.charCodeAt(c);
|
|
342
341
|
if (G = 97 <= G ? G - 97 + 10 : 65 <= G ? G - 65 + 10 : 48 <= G && 57 >= G ? G - 48 : 1 / 0, G >= i)
|
|
343
342
|
break;
|
|
@@ -347,304 +346,304 @@ var b, Mn = function(e) {
|
|
|
347
346
|
}
|
|
348
347
|
function I(i) {
|
|
349
348
|
var l = c, u = !1, p = d.charCodeAt(c) === 48;
|
|
350
|
-
i ||
|
|
349
|
+
i || R(10) !== null || r(l, "Invalid number"), d.charCodeAt(c) === 46 && (++c, R(10), u = !0), i = d.charCodeAt(c), (i === 69 || i === 101) && (i = d.charCodeAt(++c), i !== 43 && i !== 45 || ++c, R(10) === null && r(l, "Invalid number"), u = !0), n(d.charCodeAt(c)) && r(c, "Identifier directly after number"), i = d.slice(l, c);
|
|
351
350
|
var x;
|
|
352
|
-
u ? x = parseFloat(i) : p && i.length !== 1 ? /[89]/.test(i) ||
|
|
351
|
+
u ? x = parseFloat(i) : p && i.length !== 1 ? /[89]/.test(i) || H ? r(l, "Invalid number") : x = parseInt(i, 8) : x = parseInt(i, 10), a(Be, x);
|
|
353
352
|
}
|
|
354
|
-
function
|
|
355
|
-
return i =
|
|
353
|
+
function D(i) {
|
|
354
|
+
return i = R(16, i), i === null && r(U, "Bad character escape sequence"), i;
|
|
356
355
|
}
|
|
357
|
-
function
|
|
358
|
-
|
|
356
|
+
function K() {
|
|
357
|
+
xe = !1;
|
|
359
358
|
for (var i, l = !0, u = c; ; ) {
|
|
360
359
|
var p = d.charCodeAt(c);
|
|
361
360
|
if (t(p))
|
|
362
|
-
|
|
361
|
+
xe && (i += d.charAt(c)), ++c;
|
|
363
362
|
else if (p === 92) {
|
|
364
|
-
|
|
363
|
+
xe || (i = d.slice(u, c)), xe = !0, d.charCodeAt(++c) !== 117 && r(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, p = D(4);
|
|
365
364
|
var x = String.fromCharCode(p);
|
|
366
365
|
x || r(c - 1, "Invalid Unicode escape"), (l ? n(p) : t(p)) || r(c - 4, "Invalid Unicode escape"), i += x;
|
|
367
366
|
} else
|
|
368
367
|
break;
|
|
369
368
|
l = !1;
|
|
370
369
|
}
|
|
371
|
-
return
|
|
370
|
+
return xe ? i : d.slice(u, c);
|
|
372
371
|
}
|
|
373
|
-
function
|
|
374
|
-
var i =
|
|
375
|
-
!
|
|
372
|
+
function z() {
|
|
373
|
+
var i = K(), l = we;
|
|
374
|
+
!xe && mn(i) && (l = an[i]), a(l, i);
|
|
376
375
|
}
|
|
377
|
-
function
|
|
378
|
-
|
|
376
|
+
function k() {
|
|
377
|
+
xt = U, fe = me, kt = St, C();
|
|
379
378
|
}
|
|
380
|
-
function
|
|
381
|
-
if (
|
|
382
|
-
for (; c <
|
|
383
|
-
|
|
384
|
-
`,
|
|
385
|
-
g(),
|
|
379
|
+
function Q(i) {
|
|
380
|
+
if (H = i, c = U, j.C)
|
|
381
|
+
for (; c < re; )
|
|
382
|
+
re = d.lastIndexOf(`
|
|
383
|
+
`, re - 2) + 1, --de;
|
|
384
|
+
g(), C();
|
|
386
385
|
}
|
|
387
|
-
function
|
|
388
|
-
this.type = null, this.start =
|
|
386
|
+
function Ie() {
|
|
387
|
+
this.type = null, this.start = U, this.end = null;
|
|
389
388
|
}
|
|
390
|
-
function
|
|
391
|
-
this.start =
|
|
389
|
+
function be() {
|
|
390
|
+
this.start = wt, this.end = null, mt && (this.source = mt);
|
|
392
391
|
}
|
|
393
|
-
function
|
|
394
|
-
var i = new
|
|
395
|
-
return
|
|
392
|
+
function _() {
|
|
393
|
+
var i = new Ie();
|
|
394
|
+
return j.C && (i.X = new be()), j.vb && (i.sourceFile = j.vb), j.Xa && (i.j = [U, 0]), i;
|
|
396
395
|
}
|
|
397
|
-
function
|
|
398
|
-
var l = new
|
|
399
|
-
return l.start = i.start,
|
|
396
|
+
function ce(i) {
|
|
397
|
+
var l = new Ie();
|
|
398
|
+
return l.start = i.start, j.C && (l.X = new be(), l.X.start = i.X.start), j.Xa && (l.j = [i.j[0], 0]), l;
|
|
400
399
|
}
|
|
401
|
-
function
|
|
402
|
-
return i.type = l, i.end =
|
|
400
|
+
function E(i, l) {
|
|
401
|
+
return i.type = l, i.end = fe, j.C && (i.X.end = kt), j.Xa && (i.j[1] = fe), i;
|
|
403
402
|
}
|
|
404
|
-
function
|
|
403
|
+
function ft(i) {
|
|
405
404
|
return i.type === "ExpressionStatement" && i.la.type === "Literal" && i.la.value === "use strict";
|
|
406
405
|
}
|
|
407
|
-
function
|
|
408
|
-
return S === i ? (
|
|
406
|
+
function P(i) {
|
|
407
|
+
return S === i ? (k(), !0) : !1;
|
|
409
408
|
}
|
|
410
409
|
function ze() {
|
|
411
|
-
return !
|
|
410
|
+
return !j.fc && (S === Et || S === Se || nt.test(d.slice(fe, U)));
|
|
412
411
|
}
|
|
413
|
-
function
|
|
414
|
-
|
|
412
|
+
function ge() {
|
|
413
|
+
P(oe) || ze() || ee();
|
|
415
414
|
}
|
|
416
415
|
function M(i) {
|
|
417
|
-
S === i ?
|
|
416
|
+
S === i ? k() : ee();
|
|
418
417
|
}
|
|
419
|
-
function
|
|
420
|
-
r(
|
|
418
|
+
function ee() {
|
|
419
|
+
r(U, "Unexpected token");
|
|
421
420
|
}
|
|
422
421
|
function Qe(i) {
|
|
423
|
-
i.type !== "Identifier" && i.type !== "MemberExpression" && r(i.start, "Assigning to rvalue"),
|
|
422
|
+
i.type !== "Identifier" && i.type !== "MemberExpression" && r(i.start, "Assigning to rvalue"), H && i.type === "Identifier" && rt(i.name) && r(i.start, "Assigning to " + i.name + " in strict mode");
|
|
424
423
|
}
|
|
425
|
-
function
|
|
426
|
-
(S ===
|
|
427
|
-
var i = S, l =
|
|
424
|
+
function Y() {
|
|
425
|
+
(S === Or || S === ye && J === "/=") && C(!0);
|
|
426
|
+
var i = S, l = _();
|
|
428
427
|
switch (i) {
|
|
429
|
-
case
|
|
430
|
-
case
|
|
431
|
-
|
|
432
|
-
var u = i ===
|
|
433
|
-
|
|
428
|
+
case Ct:
|
|
429
|
+
case ar:
|
|
430
|
+
k();
|
|
431
|
+
var u = i === Ct;
|
|
432
|
+
P(oe) || ze() ? l.label = null : S !== we ? ee() : (l.label = te(), ge());
|
|
434
433
|
for (var p = 0; p < B.length; ++p) {
|
|
435
434
|
var x = B[p];
|
|
436
435
|
if ((l.label === null || x.name === l.label.name) && (x.kind !== null && (u || x.kind === "loop") || l.label && u))
|
|
437
436
|
break;
|
|
438
437
|
}
|
|
439
|
-
return p === B.length && r(l.start, "Unsyntactic " + i.l),
|
|
438
|
+
return p === B.length && r(l.start, "Unsyntactic " + i.l), E(l, u ? "BreakStatement" : "ContinueStatement");
|
|
439
|
+
case lr:
|
|
440
|
+
return k(), ge(), E(l, "DebuggerStatement");
|
|
440
441
|
case cr:
|
|
441
|
-
return
|
|
442
|
-
case
|
|
443
|
-
return
|
|
442
|
+
return k(), B.push(Pt), l.body = Y(), B.pop(), M(bt), l.test = Te(), ge(), E(l, "DoWhileStatement");
|
|
443
|
+
case hr:
|
|
444
|
+
return k(), B.push(Pt), M(ne), S === oe ? pt(l, null) : S === It ? (i = _(), k(), nr(i, !0), E(i, "VariableDeclaration"), i.fa.length === 1 && P(tt) ? rr(l, i) : pt(l, i)) : (i = $(!1, !0), P(tt) ? (Qe(i), rr(l, i)) : pt(l, i));
|
|
445
|
+
case Ot:
|
|
446
|
+
return k(), yt(l, !0);
|
|
447
|
+
case gr:
|
|
448
|
+
return k(), l.test = Te(), l.da = Y(), l.alternate = P(fr) ? Y() : null, E(l, "IfStatement");
|
|
444
449
|
case dr:
|
|
445
|
-
return
|
|
446
|
-
case
|
|
447
|
-
|
|
450
|
+
return Me || j.Ib || r(U, "'return' outside of function"), k(), P(oe) || ze() ? l.K = null : (l.K = $(), ge()), E(l, "ReturnStatement");
|
|
451
|
+
case At:
|
|
452
|
+
for (k(), l.Qb = Te(), l.tb = [], M(De), B.push(xn); S !== Se; )
|
|
453
|
+
S === jt || S === ur ? (i = S === jt, p && E(p, "SwitchCase"), l.tb.push(p = _()), p.da = [], k(), i ? p.test = $() : (u && r(xt, "Multiple default clauses"), u = !0, p.test = null), M(Ue)) : (p || ee(), p.da.push(Y()));
|
|
454
|
+
return p && E(p, "SwitchCase"), k(), B.pop(), E(l, "SwitchStatement");
|
|
448
455
|
case yr:
|
|
449
|
-
return
|
|
456
|
+
return k(), nt.test(d.slice(fe, U)) && r(fe, "Illegal newline after throw"), l.K = $(), ge(), E(l, "ThrowStatement");
|
|
450
457
|
case vr:
|
|
451
|
-
return
|
|
452
|
-
case Ot:
|
|
453
|
-
for (O(), l.Qb = Ne(), l.tb = [], M(Ue), B.push(xn); S !== xe; )
|
|
454
|
-
S === Ct || S === fr ? (i = S === Ct, p && k(p, "SwitchCase"), l.tb.push(p = L()), p.da = [], O(), i ? p.test = $() : (u && r(St, "Multiple default clauses"), u = !0, p.test = null), M(Fe)) : (p || Q(), p.da.push(J()));
|
|
455
|
-
return p && k(p, "SwitchCase"), O(), B.pop(), k(l, "SwitchStatement");
|
|
456
|
-
case mr:
|
|
457
|
-
return O(), nt.test(d.slice(ue, D)) && r(ue, "Illegal newline after throw"), l.K = $(), he(), k(l, "ThrowStatement");
|
|
458
|
-
case wr:
|
|
459
|
-
return O(), l.block = Pe(), l.Ea = null, S === lr && (i = L(), O(), M(te), i.Ua = q(), X && rt(i.Ua.name) && r(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), M(Z), i.body = Pe(), l.Ea = k(i, "CatchClause")), l.fb = R(gr) ? Pe() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), k(l, "TryStatement");
|
|
460
|
-
case At:
|
|
461
|
-
return O(), ir(l), he(), k(l, "VariableDeclaration");
|
|
458
|
+
return k(), l.block = Ne(), l.Ea = null, S === sr && (i = _(), k(), M(ne), i.Ua = te(), H && rt(i.Ua.name) && r(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), M(q), i.body = Ne(), l.Ea = E(i, "CatchClause")), l.fb = P(pr) ? Ne() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
462
459
|
case It:
|
|
463
|
-
return
|
|
464
|
-
case
|
|
465
|
-
return
|
|
466
|
-
case
|
|
467
|
-
return
|
|
468
|
-
case
|
|
469
|
-
return
|
|
460
|
+
return k(), nr(l), ge(), E(l, "VariableDeclaration");
|
|
461
|
+
case bt:
|
|
462
|
+
return k(), l.test = Te(), B.push(Pt), l.body = Y(), B.pop(), E(l, "WhileStatement");
|
|
463
|
+
case mr:
|
|
464
|
+
return H && r(U, "'with' in strict mode"), k(), l.object = Te(), l.body = Y(), E(l, "WithStatement");
|
|
465
|
+
case De:
|
|
466
|
+
return Ne();
|
|
467
|
+
case oe:
|
|
468
|
+
return k(), E(l, "EmptyStatement");
|
|
470
469
|
default:
|
|
471
|
-
if (u =
|
|
470
|
+
if (u = J, x = $(), i === we && x.type === "Identifier" && P(Ue)) {
|
|
472
471
|
for (p = 0; p < B.length; ++p)
|
|
473
472
|
B[p].name === u && r(x.start, "Label '" + u + "' is already declared");
|
|
474
473
|
return B.push({
|
|
475
474
|
name: u,
|
|
476
|
-
kind: S.W ? "loop" : S ===
|
|
477
|
-
}), l.body =
|
|
475
|
+
kind: S.W ? "loop" : S === At ? "switch" : null
|
|
476
|
+
}), l.body = Y(), B.pop(), l.label = x, E(l, "LabeledStatement");
|
|
478
477
|
}
|
|
479
|
-
return l.la = x,
|
|
478
|
+
return l.la = x, ge(), E(l, "ExpressionStatement");
|
|
480
479
|
}
|
|
481
480
|
}
|
|
482
|
-
function
|
|
483
|
-
M(
|
|
481
|
+
function Te() {
|
|
482
|
+
M(ne);
|
|
484
483
|
var i = $();
|
|
485
|
-
return M(
|
|
486
|
-
}
|
|
487
|
-
function
|
|
488
|
-
var l =
|
|
489
|
-
for (l.body = [], M(
|
|
490
|
-
var x =
|
|
491
|
-
if (l.body.push(x), u && i &&
|
|
492
|
-
var
|
|
493
|
-
|
|
484
|
+
return M(q), i;
|
|
485
|
+
}
|
|
486
|
+
function Ne(i) {
|
|
487
|
+
var l = _(), u = !0, p = !1;
|
|
488
|
+
for (l.body = [], M(De); !P(Se); ) {
|
|
489
|
+
var x = Y();
|
|
490
|
+
if (l.body.push(x), u && i && ft(x)) {
|
|
491
|
+
var F = p;
|
|
492
|
+
Q(p = !0);
|
|
494
493
|
}
|
|
495
494
|
u = !1;
|
|
496
495
|
}
|
|
497
|
-
return p && !
|
|
496
|
+
return p && !F && Q(!1), E(l, "BlockStatement");
|
|
498
497
|
}
|
|
499
|
-
function
|
|
500
|
-
return i.ua = l, M(
|
|
498
|
+
function pt(i, l) {
|
|
499
|
+
return i.ua = l, M(oe), i.test = S === oe ? null : $(), M(oe), i.update = S === q ? null : $(), M(q), i.body = Y(), B.pop(), E(i, "ForStatement");
|
|
501
500
|
}
|
|
502
|
-
function
|
|
503
|
-
return i.left = l, i.right = $(), M(
|
|
501
|
+
function rr(i, l) {
|
|
502
|
+
return i.left = l, i.right = $(), M(q), i.body = Y(), B.pop(), E(i, "ForInStatement");
|
|
504
503
|
}
|
|
505
|
-
function
|
|
504
|
+
function nr(i, l) {
|
|
506
505
|
for (i.fa = [], i.kind = "var"; ; ) {
|
|
507
|
-
var u =
|
|
508
|
-
if (u.id =
|
|
506
|
+
var u = _();
|
|
507
|
+
if (u.id = te(), H && rt(u.id.name) && r(u.id.start, "Binding " + u.id.name + " in strict mode"), u.ua = P(Ar) ? $(!0, l) : null, i.fa.push(E(u, "VariableDeclarator")), !P(pe))
|
|
509
508
|
break;
|
|
510
509
|
}
|
|
511
510
|
}
|
|
512
511
|
function $(i, l) {
|
|
513
|
-
var u =
|
|
514
|
-
if (!i && S ===
|
|
515
|
-
for (i =
|
|
516
|
-
i.xb.push(
|
|
517
|
-
return
|
|
512
|
+
var u = ht(l);
|
|
513
|
+
if (!i && S === pe) {
|
|
514
|
+
for (i = ce(u), i.xb = [u]; P(pe); )
|
|
515
|
+
i.xb.push(ht(l));
|
|
516
|
+
return E(i, "SequenceExpression");
|
|
518
517
|
}
|
|
519
518
|
return u;
|
|
520
519
|
}
|
|
521
|
-
function
|
|
522
|
-
var l =
|
|
523
|
-
if (
|
|
524
|
-
var u =
|
|
525
|
-
u.test = l, u.da = $(!0), M(
|
|
520
|
+
function ht(i) {
|
|
521
|
+
var l = gt(dt(), -1, i);
|
|
522
|
+
if (P(jr)) {
|
|
523
|
+
var u = ce(l);
|
|
524
|
+
u.test = l, u.da = $(!0), M(Ue), u.alternate = $(!0, i), l = E(u, "ConditionalExpression");
|
|
526
525
|
}
|
|
527
|
-
return S.Cb ? (u =
|
|
526
|
+
return S.Cb ? (u = ce(l), u.operator = J, u.left = l, k(), u.right = ht(i), Qe(l), E(u, "AssignmentExpression")) : l;
|
|
528
527
|
}
|
|
529
|
-
function
|
|
528
|
+
function gt(i, l, u) {
|
|
530
529
|
var p = S.L;
|
|
531
530
|
if (p !== null && (!u || S !== tt) && p > l) {
|
|
532
|
-
var x =
|
|
533
|
-
return x.left = i, x.operator =
|
|
531
|
+
var x = ce(i);
|
|
532
|
+
return x.left = i, x.operator = J, i = S, k(), x.right = gt(dt(), p, u), p = E(x, i === br || i === Tr ? "LogicalExpression" : "BinaryExpression"), gt(p, l, u);
|
|
534
533
|
}
|
|
535
534
|
return i;
|
|
536
535
|
}
|
|
537
|
-
function
|
|
536
|
+
function dt() {
|
|
538
537
|
if (S.prefix) {
|
|
539
|
-
var i =
|
|
540
|
-
return i.operator =
|
|
538
|
+
var i = _(), l = S.$b;
|
|
539
|
+
return i.operator = J, Re = i.prefix = !0, k(), i.K = dt(), l ? Qe(i.K) : H && i.operator === "delete" && i.K.type === "Identifier" && r(i.start, "Deleting local variable in strict mode"), E(i, l ? "UpdateExpression" : "UnaryExpression");
|
|
541
540
|
}
|
|
542
|
-
for (l =
|
|
543
|
-
i =
|
|
541
|
+
for (l = Pe(qe()); S.cc && !ze(); )
|
|
542
|
+
i = ce(l), i.operator = J, i.prefix = !1, i.K = l, Qe(l), k(), l = E(i, "UpdateExpression");
|
|
544
543
|
return l;
|
|
545
544
|
}
|
|
546
|
-
function
|
|
547
|
-
if (
|
|
548
|
-
var u =
|
|
549
|
-
return u.object = i, u.Wa =
|
|
545
|
+
function Pe(i, l) {
|
|
546
|
+
if (P(Cr)) {
|
|
547
|
+
var u = ce(i);
|
|
548
|
+
return u.object = i, u.Wa = te(!0), u.bb = !1, Pe(E(u, "MemberExpression"), l);
|
|
550
549
|
}
|
|
551
|
-
return
|
|
550
|
+
return P(Tt) ? (u = ce(i), u.object = i, u.Wa = $(), u.bb = !0, M(Nt), Pe(E(u, "MemberExpression"), l)) : !l && P(ne) ? (u = ce(i), u.callee = i, u.arguments = vt(q, !1), Pe(E(u, "CallExpression"), l)) : i;
|
|
552
551
|
}
|
|
553
552
|
function qe() {
|
|
554
553
|
switch (S) {
|
|
555
|
-
case
|
|
556
|
-
var i =
|
|
557
|
-
return
|
|
558
|
-
case
|
|
559
|
-
return
|
|
560
|
-
case
|
|
554
|
+
case Sr:
|
|
555
|
+
var i = _();
|
|
556
|
+
return k(), E(i, "ThisExpression");
|
|
557
|
+
case we:
|
|
558
|
+
return te();
|
|
559
|
+
case Be:
|
|
561
560
|
case et:
|
|
562
|
-
case
|
|
563
|
-
return i =
|
|
561
|
+
case ir:
|
|
562
|
+
return i = _(), i.value = J, i.raw = d.slice(U, me), k(), E(i, "Literal");
|
|
563
|
+
case xr:
|
|
564
|
+
case kr:
|
|
564
565
|
case Er:
|
|
565
|
-
|
|
566
|
-
case
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
var l = D;
|
|
571
|
-
O();
|
|
566
|
+
return i = _(), i.value = S.$a, i.raw = S.l, k(), E(i, "Literal");
|
|
567
|
+
case ne:
|
|
568
|
+
i = wt;
|
|
569
|
+
var l = U;
|
|
570
|
+
k();
|
|
572
571
|
var u = $();
|
|
573
|
-
return u.start = l, u.end =
|
|
574
|
-
case
|
|
575
|
-
return i =
|
|
576
|
-
case
|
|
577
|
-
for (i =
|
|
572
|
+
return u.start = l, u.end = me, j.C && (u.X.start = i, u.X.end = St), j.Xa && (u.j = [l, me]), M(q), u;
|
|
573
|
+
case Tt:
|
|
574
|
+
return i = _(), k(), i.elements = vt(Nt, !0, !0), E(i, "ArrayExpression");
|
|
575
|
+
case De:
|
|
576
|
+
for (i = _(), l = !0, u = !1, i.h = [], k(); !P(Se); ) {
|
|
578
577
|
if (l)
|
|
579
578
|
l = !1;
|
|
580
|
-
else if (M(
|
|
579
|
+
else if (M(pe), j.sb && P(Se))
|
|
581
580
|
break;
|
|
582
581
|
var p = {
|
|
583
|
-
key: S ===
|
|
582
|
+
key: S === Be || S === et ? qe() : te(!0)
|
|
584
583
|
}, x = !1;
|
|
585
|
-
if (
|
|
584
|
+
if (P(Ue)) {
|
|
586
585
|
p.value = $(!0);
|
|
587
|
-
var
|
|
586
|
+
var F = p.kind = "init";
|
|
588
587
|
} else
|
|
589
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ?
|
|
590
|
-
if (p.key.type === "Identifier" && (
|
|
588
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ee() : (x = u = !0, F = p.kind = p.key.name, p.key = S === Be || S === et ? qe() : te(!0), S !== ne && ee(), p.value = yt(_(), !1));
|
|
589
|
+
if (p.key.type === "Identifier" && (H || u))
|
|
591
590
|
for (var G = 0; G < i.h.length; ++G) {
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
594
|
-
var
|
|
595
|
-
|
|
591
|
+
var ke = i.h[G];
|
|
592
|
+
if (ke.key.name === p.key.name) {
|
|
593
|
+
var Rt = F === ke.kind || x && ke.kind === "init" || F === "init" && (ke.kind === "get" || ke.kind === "set");
|
|
594
|
+
Rt && !H && F === "init" && ke.kind === "init" && (Rt = !1), Rt && r(p.key.start, "Redefinition of property");
|
|
596
595
|
}
|
|
597
596
|
}
|
|
598
597
|
i.h.push(p);
|
|
599
598
|
}
|
|
600
|
-
return
|
|
601
|
-
case
|
|
602
|
-
return i =
|
|
603
|
-
case
|
|
604
|
-
return i =
|
|
599
|
+
return E(i, "ObjectExpression");
|
|
600
|
+
case Ot:
|
|
601
|
+
return i = _(), k(), yt(i, !1);
|
|
602
|
+
case wr:
|
|
603
|
+
return i = _(), k(), i.callee = Pe(qe(), !0), i.arguments = P(ne) ? vt(q, !1) : sn, E(i, "NewExpression");
|
|
605
604
|
}
|
|
606
|
-
|
|
605
|
+
ee();
|
|
607
606
|
}
|
|
608
|
-
function
|
|
609
|
-
S ===
|
|
607
|
+
function yt(i, l) {
|
|
608
|
+
S === we ? i.id = te() : l ? ee() : i.id = null, i.oa = [];
|
|
610
609
|
var u = !0;
|
|
611
|
-
for (M(
|
|
612
|
-
u ? u = !1 : M(
|
|
613
|
-
u =
|
|
610
|
+
for (M(ne); !P(q); )
|
|
611
|
+
u ? u = !1 : M(pe), i.oa.push(te());
|
|
612
|
+
u = Me;
|
|
614
613
|
var p = B;
|
|
615
|
-
if (
|
|
614
|
+
if (Me = !0, B = [], i.body = Ne(!0), Me = u, B = p, H || i.body.body.length && ft(i.body.body[0])) {
|
|
616
615
|
for (u = i.id ? -1 : 0; u < i.oa.length; ++u)
|
|
617
|
-
if (p = 0 > u ? i.id : i.oa[u], (
|
|
616
|
+
if (p = 0 > u ? i.id : i.oa[u], (Nr(p.name) || rt(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= u)
|
|
618
617
|
for (var x = 0; x < u; ++x)
|
|
619
618
|
p.name === i.oa[x].name && r(p.start, "Argument name clash in strict mode");
|
|
620
619
|
}
|
|
621
|
-
return
|
|
620
|
+
return E(i, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
622
621
|
}
|
|
623
|
-
function
|
|
624
|
-
for (var p = [], x = !0; !
|
|
622
|
+
function vt(i, l, u) {
|
|
623
|
+
for (var p = [], x = !0; !P(i); ) {
|
|
625
624
|
if (x)
|
|
626
625
|
x = !1;
|
|
627
|
-
else if (M(
|
|
626
|
+
else if (M(pe), l && j.sb && P(i))
|
|
628
627
|
break;
|
|
629
|
-
p.push(u && S ===
|
|
628
|
+
p.push(u && S === pe ? null : $(!0));
|
|
630
629
|
}
|
|
631
630
|
return p;
|
|
632
631
|
}
|
|
633
|
-
function
|
|
634
|
-
var l =
|
|
635
|
-
return i &&
|
|
632
|
+
function te(i) {
|
|
633
|
+
var l = _();
|
|
634
|
+
return i && j.yb === "everywhere" && (i = !1), S === we ? (!i && (j.yb && vn(J) || H && Nr(J)) && d.slice(U, me).indexOf("\\") === -1 && r(U, "The keyword '" + J + "' is reserved"), l.name = J) : i && S.l ? l.name = S.l : ee(), Re = !1, k(), E(l, "Identifier");
|
|
636
635
|
}
|
|
637
636
|
e.version = "0.5.0";
|
|
638
|
-
var
|
|
637
|
+
var j, d = "", ve, mt;
|
|
639
638
|
e.parse = function(i, l) {
|
|
640
|
-
d = String(i),
|
|
641
|
-
for (var u in
|
|
642
|
-
Object.prototype.hasOwnProperty.call(
|
|
643
|
-
for (
|
|
644
|
-
u =
|
|
645
|
-
return
|
|
639
|
+
d = String(i), ve = d.length, j = l || {};
|
|
640
|
+
for (var u in or)
|
|
641
|
+
Object.prototype.hasOwnProperty.call(j, u) || (j[u] = or[u]);
|
|
642
|
+
for (mt = j.sourceFile, de = 1, c = re = 0, Re = !0, g(), u = j.dc, xt = fe = c, j.C && (kt = new s()), Me = H = !1, B = [], C(), i = u || _(), l = !0, u || (i.body = []); S !== Et; )
|
|
643
|
+
u = Y(), i.body.push(u), l && ft(u) && Q(!0), l = !1;
|
|
644
|
+
return E(i, "Program");
|
|
646
645
|
};
|
|
647
|
-
var
|
|
646
|
+
var or = {
|
|
648
647
|
fc: !1,
|
|
649
648
|
sb: !0,
|
|
650
649
|
yb: !1,
|
|
@@ -655,73 +654,73 @@ var b, Mn = function(e) {
|
|
|
655
654
|
dc: null,
|
|
656
655
|
sourceFile: null,
|
|
657
656
|
vb: null
|
|
658
|
-
}, c = 0,
|
|
657
|
+
}, c = 0, U = 0, me = 0, wt, St, S, J, Re, de, re, xt = 0, fe = 0, kt, Me, B, H, sn = [], Be = {
|
|
659
658
|
type: "num"
|
|
660
|
-
},
|
|
659
|
+
}, ir = {
|
|
661
660
|
type: "regexp"
|
|
662
661
|
}, et = {
|
|
663
662
|
type: "string"
|
|
664
|
-
},
|
|
663
|
+
}, we = {
|
|
665
664
|
type: "name"
|
|
666
|
-
}, kt = {
|
|
667
|
-
type: "eof"
|
|
668
665
|
}, Et = {
|
|
669
|
-
|
|
666
|
+
type: "eof"
|
|
670
667
|
}, Ct = {
|
|
668
|
+
l: "break"
|
|
669
|
+
}, jt = {
|
|
671
670
|
l: "case",
|
|
672
671
|
m: !0
|
|
673
|
-
},
|
|
672
|
+
}, sr = {
|
|
674
673
|
l: "catch"
|
|
675
|
-
},
|
|
674
|
+
}, ar = {
|
|
676
675
|
l: "continue"
|
|
677
|
-
},
|
|
676
|
+
}, lr = {
|
|
678
677
|
l: "debugger"
|
|
679
|
-
},
|
|
678
|
+
}, ur = {
|
|
680
679
|
l: "default"
|
|
681
|
-
},
|
|
680
|
+
}, cr = {
|
|
682
681
|
l: "do",
|
|
683
682
|
W: !0
|
|
684
|
-
},
|
|
683
|
+
}, fr = {
|
|
685
684
|
l: "else",
|
|
686
685
|
m: !0
|
|
687
|
-
},
|
|
686
|
+
}, pr = {
|
|
688
687
|
l: "finally"
|
|
689
|
-
},
|
|
688
|
+
}, hr = {
|
|
690
689
|
l: "for",
|
|
691
690
|
W: !0
|
|
692
|
-
},
|
|
691
|
+
}, Ot = {
|
|
693
692
|
l: "function"
|
|
694
|
-
},
|
|
693
|
+
}, gr = {
|
|
695
694
|
l: "if"
|
|
696
|
-
},
|
|
695
|
+
}, dr = {
|
|
697
696
|
l: "return",
|
|
698
697
|
m: !0
|
|
699
|
-
},
|
|
698
|
+
}, At = {
|
|
700
699
|
l: "switch"
|
|
701
|
-
},
|
|
700
|
+
}, yr = {
|
|
702
701
|
l: "throw",
|
|
703
702
|
m: !0
|
|
704
|
-
},
|
|
703
|
+
}, vr = {
|
|
705
704
|
l: "try"
|
|
706
|
-
}, At = {
|
|
707
|
-
l: "var"
|
|
708
705
|
}, It = {
|
|
706
|
+
l: "var"
|
|
707
|
+
}, bt = {
|
|
709
708
|
l: "while",
|
|
710
709
|
W: !0
|
|
711
|
-
},
|
|
710
|
+
}, mr = {
|
|
712
711
|
l: "with"
|
|
713
|
-
},
|
|
712
|
+
}, wr = {
|
|
714
713
|
l: "new",
|
|
715
714
|
m: !0
|
|
716
|
-
},
|
|
715
|
+
}, Sr = {
|
|
717
716
|
l: "this"
|
|
718
|
-
},
|
|
717
|
+
}, xr = {
|
|
719
718
|
l: "null",
|
|
720
719
|
$a: null
|
|
721
|
-
},
|
|
720
|
+
}, kr = {
|
|
722
721
|
l: "true",
|
|
723
722
|
$a: !0
|
|
724
|
-
},
|
|
723
|
+
}, Er = {
|
|
725
724
|
l: "false",
|
|
726
725
|
$a: !1
|
|
727
726
|
}, tt = {
|
|
@@ -729,36 +728,36 @@ var b, Mn = function(e) {
|
|
|
729
728
|
L: 7,
|
|
730
729
|
m: !0
|
|
731
730
|
}, an = {
|
|
732
|
-
break:
|
|
733
|
-
case:
|
|
734
|
-
catch:
|
|
735
|
-
continue:
|
|
736
|
-
debugger:
|
|
737
|
-
default:
|
|
738
|
-
do:
|
|
739
|
-
else:
|
|
740
|
-
finally:
|
|
741
|
-
for:
|
|
742
|
-
function:
|
|
743
|
-
if:
|
|
744
|
-
return:
|
|
745
|
-
switch:
|
|
746
|
-
throw:
|
|
747
|
-
try:
|
|
748
|
-
var:
|
|
749
|
-
while:
|
|
750
|
-
with:
|
|
751
|
-
null:
|
|
752
|
-
true:
|
|
753
|
-
false:
|
|
754
|
-
new:
|
|
731
|
+
break: Ct,
|
|
732
|
+
case: jt,
|
|
733
|
+
catch: sr,
|
|
734
|
+
continue: ar,
|
|
735
|
+
debugger: lr,
|
|
736
|
+
default: ur,
|
|
737
|
+
do: cr,
|
|
738
|
+
else: fr,
|
|
739
|
+
finally: pr,
|
|
740
|
+
for: hr,
|
|
741
|
+
function: Ot,
|
|
742
|
+
if: gr,
|
|
743
|
+
return: dr,
|
|
744
|
+
switch: At,
|
|
745
|
+
throw: yr,
|
|
746
|
+
try: vr,
|
|
747
|
+
var: It,
|
|
748
|
+
while: bt,
|
|
749
|
+
with: mr,
|
|
750
|
+
null: xr,
|
|
751
|
+
true: kr,
|
|
752
|
+
false: Er,
|
|
753
|
+
new: wr,
|
|
755
754
|
in: tt,
|
|
756
755
|
instanceof: {
|
|
757
756
|
l: "instanceof",
|
|
758
757
|
L: 7,
|
|
759
758
|
m: !0
|
|
760
759
|
},
|
|
761
|
-
this:
|
|
760
|
+
this: Sr,
|
|
762
761
|
typeof: {
|
|
763
762
|
l: "typeof",
|
|
764
763
|
prefix: !0,
|
|
@@ -774,55 +773,55 @@ var b, Mn = function(e) {
|
|
|
774
773
|
prefix: !0,
|
|
775
774
|
m: !0
|
|
776
775
|
}
|
|
777
|
-
},
|
|
776
|
+
}, Tt = {
|
|
778
777
|
type: "[",
|
|
779
778
|
m: !0
|
|
780
|
-
},
|
|
779
|
+
}, Nt = {
|
|
781
780
|
type: "]"
|
|
782
|
-
},
|
|
781
|
+
}, De = {
|
|
783
782
|
type: "{",
|
|
784
783
|
m: !0
|
|
785
|
-
},
|
|
784
|
+
}, Se = {
|
|
786
785
|
type: "}"
|
|
787
|
-
},
|
|
786
|
+
}, ne = {
|
|
788
787
|
type: "(",
|
|
789
788
|
m: !0
|
|
790
|
-
},
|
|
789
|
+
}, q = {
|
|
791
790
|
type: ")"
|
|
792
|
-
},
|
|
791
|
+
}, pe = {
|
|
793
792
|
type: ",",
|
|
794
793
|
m: !0
|
|
795
|
-
},
|
|
794
|
+
}, oe = {
|
|
796
795
|
type: ";",
|
|
797
796
|
m: !0
|
|
798
|
-
},
|
|
797
|
+
}, Ue = {
|
|
799
798
|
type: ":",
|
|
800
799
|
m: !0
|
|
801
|
-
},
|
|
800
|
+
}, Cr = {
|
|
802
801
|
type: "."
|
|
803
|
-
},
|
|
802
|
+
}, jr = {
|
|
804
803
|
type: "?",
|
|
805
804
|
m: !0
|
|
806
|
-
},
|
|
805
|
+
}, Or = {
|
|
807
806
|
L: 10,
|
|
808
807
|
m: !0
|
|
809
|
-
},
|
|
808
|
+
}, Ar = {
|
|
810
809
|
Cb: !0,
|
|
811
810
|
m: !0
|
|
812
|
-
},
|
|
811
|
+
}, ye = {
|
|
813
812
|
Cb: !0,
|
|
814
813
|
m: !0
|
|
815
814
|
}, ln = {
|
|
816
815
|
cc: !0,
|
|
817
816
|
prefix: !0,
|
|
818
817
|
$b: !0
|
|
819
|
-
},
|
|
818
|
+
}, Ir = {
|
|
820
819
|
prefix: !0,
|
|
821
820
|
m: !0
|
|
822
|
-
},
|
|
821
|
+
}, br = {
|
|
823
822
|
L: 1,
|
|
824
823
|
m: !0
|
|
825
|
-
},
|
|
824
|
+
}, Tr = {
|
|
826
825
|
L: 2,
|
|
827
826
|
m: !0
|
|
828
827
|
}, un = {
|
|
@@ -850,7 +849,7 @@ var b, Mn = function(e) {
|
|
|
850
849
|
}, yn = {
|
|
851
850
|
L: 10,
|
|
852
851
|
m: !0
|
|
853
|
-
}, vn = o("class enum extends super const export import"),
|
|
852
|
+
}, vn = o("class enum extends super const export import"), Nr = o("implements interface let package private protected public static yield"), rt = o("eval arguments"), mn = 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"), wn = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Pr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Sn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), nt = /[\n\r\u2028\u2029]/, ot = /\r\n|[\n\r\u2028\u2029]/g, xe, Pt = {
|
|
854
853
|
kind: "loop"
|
|
855
854
|
}, xn = {
|
|
856
855
|
kind: "switch"
|
|
@@ -858,7 +857,7 @@ var b, Mn = function(e) {
|
|
|
858
857
|
}, Lt = Lt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
859
858
|
Mn(Lt.j || (Lt.j = {}));
|
|
860
859
|
function h(e, t) {
|
|
861
|
-
typeof e == "string" && (e =
|
|
860
|
+
typeof e == "string" && (e = je(e, "code"));
|
|
862
861
|
var n = e.constructor;
|
|
863
862
|
this.ya = function() {
|
|
864
863
|
return new n({
|
|
@@ -872,10 +871,10 @@ function h(e, t) {
|
|
|
872
871
|
var s, a;
|
|
873
872
|
for (a in this)
|
|
874
873
|
typeof this[a] == "function" && (s = a.match(e)) && (this.rb[s[1]] = this[a].bind(this));
|
|
875
|
-
this.N = Wt(this, this.ra, null), this.Na = this.N.object, this.ra =
|
|
876
|
-
`), "polyfills"), this.ba = void 0,
|
|
874
|
+
this.N = Wt(this, this.ra, null), this.Na = this.N.object, this.ra = je(this.ba.join(`
|
|
875
|
+
`), "polyfills"), this.ba = void 0, lt(this.ra), s = new v(this.ra, this.N), s.done = !1, this.o = [s], this.Eb(), this.value = void 0, this.ra = r, s = new v(this.ra, this.N), s.done = !1, this.o.length = 0, this.o[0] = s;
|
|
877
876
|
}
|
|
878
|
-
var
|
|
877
|
+
var Mr = {
|
|
879
878
|
C: !0,
|
|
880
879
|
kc: 5
|
|
881
880
|
}, $t = {
|
|
@@ -886,41 +885,41 @@ var Dr = {
|
|
|
886
885
|
configurable: !0,
|
|
887
886
|
enumerable: !1,
|
|
888
887
|
writable: !0
|
|
889
|
-
},
|
|
888
|
+
}, X = {
|
|
890
889
|
configurable: !0,
|
|
891
890
|
enumerable: !1,
|
|
892
891
|
writable: !1
|
|
893
|
-
},
|
|
892
|
+
}, Fe = {
|
|
894
893
|
configurable: !1,
|
|
895
894
|
enumerable: !1,
|
|
896
895
|
writable: !1
|
|
897
|
-
},
|
|
896
|
+
}, Br = {
|
|
898
897
|
configurable: !1,
|
|
899
898
|
enumerable: !0,
|
|
900
899
|
writable: !0
|
|
901
|
-
},
|
|
900
|
+
}, Yr = {
|
|
902
901
|
STEP_ERROR: !0
|
|
903
|
-
},
|
|
902
|
+
}, Ae = {
|
|
904
903
|
SCOPE_REFERENCE: !0
|
|
905
904
|
}, Ke = {
|
|
906
905
|
VALUE_IN_DESCRIPTOR: !0
|
|
907
|
-
},
|
|
906
|
+
}, Ee = {
|
|
908
907
|
REGEXP_TIMEOUT: !0
|
|
909
|
-
},
|
|
908
|
+
}, Dr = [], ae = null, Ge = null, he = typeof globalThis == "undefined" ? void 0 : globalThis, Bn = ["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();", "};"];
|
|
910
909
|
function Gt(e) {
|
|
911
910
|
var t = e >>> 0;
|
|
912
911
|
return t === Number(e) ? t : NaN;
|
|
913
912
|
}
|
|
914
|
-
function
|
|
913
|
+
function Ve(e) {
|
|
915
914
|
var t = e >>> 0;
|
|
916
915
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
917
916
|
}
|
|
918
|
-
function
|
|
917
|
+
function lt(e, t, n) {
|
|
919
918
|
t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
|
|
920
919
|
for (var r in e)
|
|
921
920
|
if (r !== "loc" && e.hasOwnProperty(r)) {
|
|
922
921
|
var o = e[r];
|
|
923
|
-
o && typeof o == "object" &&
|
|
922
|
+
o && typeof o == "object" && lt(o, t, n);
|
|
924
923
|
}
|
|
925
924
|
}
|
|
926
925
|
h.prototype.REGEXP_MODE = 2;
|
|
@@ -931,17 +930,17 @@ b.P = !1;
|
|
|
931
930
|
b.Ka = !1;
|
|
932
931
|
b.Kb = 0;
|
|
933
932
|
b.ic = 0;
|
|
934
|
-
function
|
|
933
|
+
function je(e, t) {
|
|
935
934
|
var n = {}, r;
|
|
936
|
-
for (r in
|
|
937
|
-
n[r] =
|
|
938
|
-
return n.sourceFile = t,
|
|
935
|
+
for (r in Mr)
|
|
936
|
+
n[r] = Mr[r];
|
|
937
|
+
return n.sourceFile = t, he.j.parse(e, n);
|
|
939
938
|
}
|
|
940
939
|
b.Jb = function(e) {
|
|
941
940
|
var t = this.o[0];
|
|
942
941
|
if (!t || t.node.type !== "Program")
|
|
943
942
|
throw Error("Expecting original AST to start with a Program node");
|
|
944
|
-
if (typeof e == "string" && (e =
|
|
943
|
+
if (typeof e == "string" && (e = je(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
945
944
|
throw Error("Expecting new AST to start with a Program node");
|
|
946
945
|
Je(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
947
946
|
};
|
|
@@ -957,7 +956,7 @@ b.lb = function() {
|
|
|
957
956
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
958
957
|
n = null;
|
|
959
958
|
else {
|
|
960
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
959
|
+
this.ca.shift(), 0 <= n.interval && Qr(this, n, n.interval);
|
|
961
960
|
var r = new v(n.node, n.scope);
|
|
962
961
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
963
962
|
}
|
|
@@ -965,15 +964,15 @@ b.lb = function() {
|
|
|
965
964
|
break;
|
|
966
965
|
}
|
|
967
966
|
r = n.node;
|
|
968
|
-
var o =
|
|
969
|
-
|
|
967
|
+
var o = Ge;
|
|
968
|
+
Ge = this;
|
|
970
969
|
try {
|
|
971
970
|
var s = this.rb[r.type](e, n, r);
|
|
972
971
|
} catch (a) {
|
|
973
|
-
if (a !==
|
|
972
|
+
if (a !== Yr)
|
|
974
973
|
throw this.value !== a && (this.value = void 0), a;
|
|
975
974
|
} finally {
|
|
976
|
-
|
|
975
|
+
Ge = o;
|
|
977
976
|
}
|
|
978
977
|
if (s && e.push(s), this.P)
|
|
979
978
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -989,7 +988,7 @@ b.Eb = function() {
|
|
|
989
988
|
return this.za;
|
|
990
989
|
};
|
|
991
990
|
function Dn(e, t) {
|
|
992
|
-
e.g(t, "NaN", NaN,
|
|
991
|
+
e.g(t, "NaN", NaN, Fe), e.g(t, "Infinity", 1 / 0, Fe), e.g(t, "undefined", void 0, Fe), e.g(t, "window", t, $t), e.g(t, "this", t, Fe), e.g(t, "self", t), e.M = new A(null), e.Z = new A(e.M), Un(e, t), Fn(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Ln(e, t), _n(e, t), Wn(e, t), $n(e, t), Gn(e, t), Vn(e, t), Xn(e, t), Hn(e, t), Kn(e, t);
|
|
993
992
|
var n = e.i(function() {
|
|
994
993
|
throw EvalError("Can't happen");
|
|
995
994
|
}, !1);
|
|
@@ -1005,13 +1004,13 @@ function Dn(e, t) {
|
|
|
1005
1004
|
};
|
|
1006
1005
|
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), y);
|
|
1007
1006
|
n = function(s) {
|
|
1008
|
-
return
|
|
1007
|
+
return Ur(e, !1, arguments);
|
|
1009
1008
|
}, e.g(t, "setTimeout", e.i(n, !1), y), n = function(s) {
|
|
1010
|
-
return
|
|
1009
|
+
return Ur(e, !0, arguments);
|
|
1011
1010
|
}, e.g(t, "setInterval", e.i(n, !1), y), n = function(s) {
|
|
1012
|
-
|
|
1011
|
+
Fr(e, s);
|
|
1013
1012
|
}, e.g(t, "clearTimeout", e.i(n, !1), y), n = function(s) {
|
|
1014
|
-
|
|
1013
|
+
Fr(e, s);
|
|
1015
1014
|
}, e.g(t, "clearInterval", e.i(n, !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);
|
|
1016
1015
|
}
|
|
1017
1016
|
b.Wb = 0;
|
|
@@ -1027,27 +1026,27 @@ function Un(e, t) {
|
|
|
1027
1026
|
a = a.join(", ");
|
|
1028
1027
|
}
|
|
1029
1028
|
try {
|
|
1030
|
-
var
|
|
1031
|
-
} catch (
|
|
1032
|
-
m(e, e.T, "Invalid code: " +
|
|
1029
|
+
var O = je("(function(" + a + ") {" + s + "})", "function" + e.Wb++);
|
|
1030
|
+
} catch (C) {
|
|
1031
|
+
m(e, e.T, "Invalid code: " + C.message);
|
|
1033
1032
|
}
|
|
1034
|
-
return
|
|
1033
|
+
return O.body.length !== 1 && m(e, e.T, "Invalid code in function body"), Ht(e, O.body[0].la, e.N, "anonymous");
|
|
1035
1034
|
};
|
|
1036
1035
|
e.O = e.i(r, !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() {
|
|
1037
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0,
|
|
1036
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, X), e.Z.H = "Function", r = function(o, s) {
|
|
1038
1037
|
var a = e.o[e.o.length - 1];
|
|
1039
|
-
a.U = this, a.B = o, a.F = [], s != null && (s instanceof A ? a.F =
|
|
1040
|
-
},
|
|
1038
|
+
a.U = this, a.B = o, a.F = [], s != null && (s instanceof A ? a.F = Zr(e, s) : m(e, e.j, "CreateListFromArrayLike called on non-object")), a.eb = !1;
|
|
1039
|
+
}, L(e, e.O, "apply", r), r = function(o) {
|
|
1041
1040
|
var s = e.o[e.o.length - 1];
|
|
1042
1041
|
s.U = this, s.B = o, s.F = [];
|
|
1043
1042
|
for (var a = 1; a < arguments.length; a++)
|
|
1044
1043
|
s.F.push(arguments[a]);
|
|
1045
1044
|
s.eb = !1;
|
|
1046
|
-
},
|
|
1045
|
+
}, L(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
|
|
1047
1046
|
return String(this);
|
|
1048
|
-
},
|
|
1047
|
+
}, L(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), y), r = function() {
|
|
1049
1048
|
return this.valueOf();
|
|
1050
|
-
},
|
|
1049
|
+
}, L(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), y);
|
|
1051
1050
|
}
|
|
1052
1051
|
function Fn(e, t) {
|
|
1053
1052
|
function n(o) {
|
|
@@ -1055,17 +1054,17 @@ function Fn(e, t) {
|
|
|
1055
1054
|
}
|
|
1056
1055
|
var r = function(o) {
|
|
1057
1056
|
if (o == null)
|
|
1058
|
-
return
|
|
1057
|
+
return ue(e) ? this : e.s(e.M);
|
|
1059
1058
|
if (!(o instanceof A)) {
|
|
1060
|
-
var s = e.s(
|
|
1059
|
+
var s = e.s(le(e, o));
|
|
1061
1060
|
return s.data = o, s;
|
|
1062
1061
|
}
|
|
1063
1062
|
return o;
|
|
1064
1063
|
};
|
|
1065
1064
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, y), e.g(e.M, "constructor", e.v, y), e.g(t, "Object", e.v, y), r = function(o) {
|
|
1066
|
-
return n(o),
|
|
1065
|
+
return n(o), se(e, Object.getOwnPropertyNames(o instanceof A ? o.h : o));
|
|
1067
1066
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), y), r = function(o) {
|
|
1068
|
-
return n(o), o instanceof A && (o = o.h),
|
|
1067
|
+
return n(o), o instanceof A && (o = o.h), se(e, Object.keys(o));
|
|
1069
1068
|
}, e.g(e.v, "keys", e.i(r, !1), y), r = function(o) {
|
|
1070
1069
|
return o === null ? e.s(null) : (o instanceof A || m(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1071
1070
|
}, e.g(e.v, "create", e.i(r, !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;", "};", "})();", ""), r = function(o, s, a) {
|
|
@@ -1076,27 +1075,27 @@ function Fn(e, t) {
|
|
|
1076
1075
|
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;
|
|
1077
1076
|
}
|
|
1078
1077
|
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), y), r = function(o) {
|
|
1079
|
-
return n(o),
|
|
1078
|
+
return n(o), le(e, o);
|
|
1080
1079
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), y), r = function(o) {
|
|
1081
1080
|
return !!o && !o.preventExtensions;
|
|
1082
1081
|
}, e.g(e.v, "isExtensible", e.i(r, !1), y), r = function(o) {
|
|
1083
1082
|
return o instanceof A && (o.preventExtensions = !0), o;
|
|
1084
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), y),
|
|
1083
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), y), L(e, e.v, "toString", A.prototype.toString), L(e, e.v, "toLocaleString", A.prototype.toString), L(e, e.v, "valueOf", A.prototype.valueOf), r = function(o) {
|
|
1085
1084
|
return n(this), this instanceof A ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1086
|
-
},
|
|
1085
|
+
}, L(e, e.v, "hasOwnProperty", r), r = function(o) {
|
|
1087
1086
|
return n(this), this instanceof A ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1088
|
-
},
|
|
1087
|
+
}, L(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1089
1088
|
for (; ; ) {
|
|
1090
|
-
if (o =
|
|
1089
|
+
if (o = le(e, o), !o)
|
|
1091
1090
|
return !1;
|
|
1092
1091
|
if (o === this)
|
|
1093
1092
|
return !0;
|
|
1094
1093
|
}
|
|
1095
|
-
},
|
|
1094
|
+
}, L(e, e.v, "isPrototypeOf", r);
|
|
1096
1095
|
}
|
|
1097
1096
|
function Ln(e, t) {
|
|
1098
1097
|
var n = function(r) {
|
|
1099
|
-
var o =
|
|
1098
|
+
var o = ue(e) ? this : Oe(e), s = arguments[0];
|
|
1100
1099
|
if (arguments.length === 1 && typeof s == "number")
|
|
1101
1100
|
isNaN(Gt(s)) && m(e, e.ob, "Invalid array length: " + s), o.h.length = s;
|
|
1102
1101
|
else {
|
|
@@ -1116,10 +1115,10 @@ function Ln(e, t) {
|
|
|
1116
1115
|
}
|
|
1117
1116
|
function _n(e, t) {
|
|
1118
1117
|
var n = function(r) {
|
|
1119
|
-
return r = arguments.length ?
|
|
1118
|
+
return r = arguments.length ? he.String(r) : "", ue(e) ? (this.data = r, this) : r;
|
|
1120
1119
|
};
|
|
1121
1120
|
for (e.J = e.i(n, !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(" "), n = 0; n < t.length; n++)
|
|
1122
|
-
|
|
1121
|
+
L(e, e.J, t[n], String.prototype[t[n]]);
|
|
1123
1122
|
n = function(r, o, s) {
|
|
1124
1123
|
o = e.R(o), s = e.R(s);
|
|
1125
1124
|
try {
|
|
@@ -1127,126 +1126,126 @@ function _n(e, t) {
|
|
|
1127
1126
|
} catch (a) {
|
|
1128
1127
|
m(e, e.D, "localeCompare: " + a.message);
|
|
1129
1128
|
}
|
|
1130
|
-
},
|
|
1129
|
+
}, L(e, e.J, "localeCompare", n), n = function(r, o, s) {
|
|
1131
1130
|
var a = String(this);
|
|
1132
|
-
if (o = o ? Number(o) : void 0,
|
|
1133
|
-
if (
|
|
1134
|
-
r =
|
|
1131
|
+
if (o = o ? Number(o) : void 0, W(e, r, e.I) && (r = r.data, _e(e, r, s), e.REGEXP_MODE === 2)) {
|
|
1132
|
+
if (ae)
|
|
1133
|
+
r = Le(e, "string.split(separator, limit)", {
|
|
1135
1134
|
string: a,
|
|
1136
1135
|
separator: r,
|
|
1137
1136
|
limit: o
|
|
1138
|
-
}, r, s), r !==
|
|
1137
|
+
}, r, s), r !== Ee && s(se(e, r));
|
|
1139
1138
|
else {
|
|
1140
|
-
var f = e.ha(), g =
|
|
1141
|
-
f.onmessage = function(
|
|
1142
|
-
clearTimeout(g), s(
|
|
1139
|
+
var f = e.ha(), g = We(e, r, f, s);
|
|
1140
|
+
f.onmessage = function(O) {
|
|
1141
|
+
clearTimeout(g), s(se(e, O.data));
|
|
1143
1142
|
}, f.postMessage(["split", a, r, o]);
|
|
1144
1143
|
}
|
|
1145
1144
|
return;
|
|
1146
1145
|
}
|
|
1147
|
-
r = a.split(r, o), s(
|
|
1148
|
-
},
|
|
1146
|
+
r = a.split(r, o), s(se(e, r));
|
|
1147
|
+
}, $e(e, e.J, "split", n), n = function(r, o) {
|
|
1149
1148
|
var s = String(this);
|
|
1150
|
-
if (r =
|
|
1151
|
-
if (
|
|
1152
|
-
r =
|
|
1149
|
+
if (r = W(e, r, e.I) ? r.data : new RegExp(r), _e(e, r, o), e.REGEXP_MODE === 2)
|
|
1150
|
+
if (ae)
|
|
1151
|
+
r = Le(e, "string.match(regexp)", {
|
|
1153
1152
|
string: s,
|
|
1154
1153
|
regexp: r
|
|
1155
|
-
}, r, o), r !==
|
|
1154
|
+
}, r, o), r !== Ee && o(r && se(e, r));
|
|
1156
1155
|
else {
|
|
1157
|
-
var a = e.ha(), f =
|
|
1156
|
+
var a = e.ha(), f = We(e, r, a, o);
|
|
1158
1157
|
a.onmessage = function(g) {
|
|
1159
|
-
clearTimeout(f), o(g.data &&
|
|
1158
|
+
clearTimeout(f), o(g.data && se(e, g.data));
|
|
1160
1159
|
}, a.postMessage(["match", s, r]);
|
|
1161
1160
|
}
|
|
1162
1161
|
else
|
|
1163
|
-
r = s.match(r), o(r &&
|
|
1164
|
-
},
|
|
1162
|
+
r = s.match(r), o(r && se(e, r));
|
|
1163
|
+
}, $e(e, e.J, "match", n), n = function(r, o) {
|
|
1165
1164
|
var s = String(this);
|
|
1166
|
-
if (
|
|
1167
|
-
if (
|
|
1168
|
-
r =
|
|
1165
|
+
if (W(e, r, e.I) ? r = r.data : r = new RegExp(r), _e(e, r, o), e.REGEXP_MODE === 2)
|
|
1166
|
+
if (ae)
|
|
1167
|
+
r = Le(e, "string.search(regexp)", {
|
|
1169
1168
|
string: s,
|
|
1170
1169
|
regexp: r
|
|
1171
|
-
}, r, o), r !==
|
|
1170
|
+
}, r, o), r !== Ee && o(r);
|
|
1172
1171
|
else {
|
|
1173
|
-
var a = e.ha(), f =
|
|
1172
|
+
var a = e.ha(), f = We(e, r, a, o);
|
|
1174
1173
|
a.onmessage = function(g) {
|
|
1175
1174
|
clearTimeout(f), o(g.data);
|
|
1176
1175
|
}, a.postMessage(["search", s, r]);
|
|
1177
1176
|
}
|
|
1178
1177
|
else
|
|
1179
1178
|
o(s.search(r));
|
|
1180
|
-
},
|
|
1179
|
+
}, $e(e, e.J, "search", n), n = function(r, o, s) {
|
|
1181
1180
|
var a = String(this);
|
|
1182
|
-
if (o = String(o),
|
|
1183
|
-
if (
|
|
1184
|
-
r =
|
|
1181
|
+
if (o = String(o), W(e, r, e.I) && (r = r.data, _e(e, r, s), e.REGEXP_MODE === 2)) {
|
|
1182
|
+
if (ae)
|
|
1183
|
+
r = Le(e, "string.replace(substr, newSubstr)", {
|
|
1185
1184
|
string: a,
|
|
1186
1185
|
substr: r,
|
|
1187
1186
|
newSubstr: o
|
|
1188
|
-
}, r, s), r !==
|
|
1187
|
+
}, r, s), r !== Ee && s(r);
|
|
1189
1188
|
else {
|
|
1190
|
-
var f = e.ha(), g =
|
|
1191
|
-
f.onmessage = function(
|
|
1192
|
-
clearTimeout(g), s(
|
|
1189
|
+
var f = e.ha(), g = We(e, r, f, s);
|
|
1190
|
+
f.onmessage = function(O) {
|
|
1191
|
+
clearTimeout(g), s(O.data);
|
|
1193
1192
|
}, f.postMessage(["replace", a, r, o]);
|
|
1194
1193
|
}
|
|
1195
1194
|
return;
|
|
1196
1195
|
}
|
|
1197
1196
|
s(a.replace(r, o));
|
|
1198
|
-
},
|
|
1197
|
+
}, $e(e, e.J, "replace", n), 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;", "};", "})();", "");
|
|
1199
1198
|
}
|
|
1200
1199
|
function Wn(e, t) {
|
|
1201
1200
|
e.mb = e.i(function(n) {
|
|
1202
|
-
return n =
|
|
1201
|
+
return n = he.Boolean(n), ue(e) ? (this.data = n, this) : n;
|
|
1203
1202
|
}, !0), e.g(t, "Boolean", e.mb, y);
|
|
1204
1203
|
}
|
|
1205
1204
|
function $n(e, t) {
|
|
1206
1205
|
var n = function(r) {
|
|
1207
|
-
return r = arguments.length ?
|
|
1206
|
+
return r = arguments.length ? he.Number(r) : 0, ue(e) ? (this.data = r, this) : r;
|
|
1208
1207
|
};
|
|
1209
1208
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, y), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1210
|
-
e.g(e.aa, t[n], Number[t[n]],
|
|
1209
|
+
e.g(e.aa, t[n], Number[t[n]], Fe);
|
|
1211
1210
|
n = function(r) {
|
|
1212
1211
|
try {
|
|
1213
1212
|
return Number(this).toExponential(r);
|
|
1214
1213
|
} catch (o) {
|
|
1215
1214
|
m(e, e.D, o.message);
|
|
1216
1215
|
}
|
|
1217
|
-
},
|
|
1216
|
+
}, L(e, e.aa, "toExponential", n), n = function(r) {
|
|
1218
1217
|
try {
|
|
1219
1218
|
return Number(this).toFixed(r);
|
|
1220
1219
|
} catch (o) {
|
|
1221
1220
|
m(e, e.D, o.message);
|
|
1222
1221
|
}
|
|
1223
|
-
},
|
|
1222
|
+
}, L(e, e.aa, "toFixed", n), n = function(r) {
|
|
1224
1223
|
try {
|
|
1225
1224
|
return Number(this).toPrecision(r);
|
|
1226
1225
|
} catch (o) {
|
|
1227
1226
|
m(e, e.D, o.message);
|
|
1228
1227
|
}
|
|
1229
|
-
},
|
|
1228
|
+
}, L(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1230
1229
|
try {
|
|
1231
1230
|
return Number(this).toString(r);
|
|
1232
1231
|
} catch (o) {
|
|
1233
1232
|
m(e, e.D, o.message);
|
|
1234
1233
|
}
|
|
1235
|
-
},
|
|
1234
|
+
}, L(e, e.aa, "toString", n), n = function(r, o) {
|
|
1236
1235
|
r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
|
|
1237
1236
|
try {
|
|
1238
1237
|
return Number(this).toLocaleString(r, o);
|
|
1239
1238
|
} catch (s) {
|
|
1240
1239
|
m(e, e.D, "toLocaleString: " + s.message);
|
|
1241
1240
|
}
|
|
1242
|
-
},
|
|
1241
|
+
}, L(e, e.aa, "toLocaleString", n);
|
|
1243
1242
|
}
|
|
1244
1243
|
function Gn(e, t) {
|
|
1245
1244
|
var n = function(o, s) {
|
|
1246
|
-
if (!
|
|
1247
|
-
return
|
|
1245
|
+
if (!ue(e))
|
|
1246
|
+
return he.Date();
|
|
1248
1247
|
var a = [null].concat(Array.from(arguments));
|
|
1249
|
-
return this.data = new (Function.prototype.bind.apply(
|
|
1248
|
+
return this.data = new (Function.prototype.bind.apply(he.Date, a))(), this;
|
|
1250
1249
|
};
|
|
1251
1250
|
e.$ = e.i(n, !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(" ");
|
|
1252
1251
|
for (var r = 0; r < t.length; r++)
|
|
@@ -1258,69 +1257,69 @@ function Gn(e, t) {
|
|
|
1258
1257
|
f[g] = e.R(arguments[g]);
|
|
1259
1258
|
return a[o].apply(a, f);
|
|
1260
1259
|
};
|
|
1261
|
-
}(t[r]),
|
|
1260
|
+
}(t[r]), L(e, e.$, t[r], n);
|
|
1262
1261
|
}
|
|
1263
1262
|
function Vn(e, t) {
|
|
1264
1263
|
var n = function(r, o) {
|
|
1265
|
-
if (
|
|
1264
|
+
if (ue(e))
|
|
1266
1265
|
var s = this;
|
|
1267
1266
|
else {
|
|
1268
|
-
if (o === void 0 &&
|
|
1267
|
+
if (o === void 0 && W(e, r, e.I))
|
|
1269
1268
|
return r;
|
|
1270
1269
|
s = e.s(e.Ma);
|
|
1271
1270
|
}
|
|
1272
1271
|
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || m(e, e.T, "Invalid regexp flag: " + o);
|
|
1273
1272
|
try {
|
|
1274
|
-
var a = new
|
|
1273
|
+
var a = new he.RegExp(r, o);
|
|
1275
1274
|
} catch (f) {
|
|
1276
1275
|
m(e, e.T, f.message);
|
|
1277
1276
|
}
|
|
1278
1277
|
return Vt(e, s, a), s;
|
|
1279
1278
|
};
|
|
1280
|
-
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0,
|
|
1281
|
-
function s(
|
|
1282
|
-
if (
|
|
1283
|
-
var w =
|
|
1284
|
-
return e.g(w, "index",
|
|
1279
|
+
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, X), e.g(e.I.h.prototype, "ignoreCase", void 0, X), e.g(e.I.h.prototype, "multiline", void 0, X), e.g(e.I.h.prototype, "source", "(?:)", X), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1280
|
+
function s(C) {
|
|
1281
|
+
if (C) {
|
|
1282
|
+
var w = se(e, C);
|
|
1283
|
+
return e.g(w, "index", C.index), e.g(w, "input", C.input), w;
|
|
1285
1284
|
}
|
|
1286
1285
|
return null;
|
|
1287
1286
|
}
|
|
1288
1287
|
var a = this.data;
|
|
1289
|
-
if (r = String(r), a.lastIndex = Number(e.G(this, "lastIndex")),
|
|
1290
|
-
if (
|
|
1291
|
-
r =
|
|
1288
|
+
if (r = String(r), a.lastIndex = Number(e.G(this, "lastIndex")), _e(e, a, o), e.REGEXP_MODE === 2)
|
|
1289
|
+
if (ae)
|
|
1290
|
+
r = Le(e, "regexp.exec(string)", {
|
|
1292
1291
|
string: r,
|
|
1293
1292
|
regexp: a
|
|
1294
|
-
}, a, o), r !==
|
|
1293
|
+
}, a, o), r !== Ee && (e.g(this, "lastIndex", a.lastIndex), o(s(r)));
|
|
1295
1294
|
else {
|
|
1296
|
-
var f = e.ha(), g =
|
|
1297
|
-
f.onmessage = function(
|
|
1298
|
-
clearTimeout(g), e.g(
|
|
1295
|
+
var f = e.ha(), g = We(e, a, f, o), O = this;
|
|
1296
|
+
f.onmessage = function(C) {
|
|
1297
|
+
clearTimeout(g), e.g(O, "lastIndex", C.data[1]), o(s(C.data[0]));
|
|
1299
1298
|
}, f.postMessage(["exec", a, a.lastIndex, r]);
|
|
1300
1299
|
}
|
|
1301
1300
|
else
|
|
1302
1301
|
r = a.exec(r), e.g(this, "lastIndex", a.lastIndex), o(s(r));
|
|
1303
|
-
},
|
|
1302
|
+
}, $e(e, e.I, "exec", n);
|
|
1304
1303
|
}
|
|
1305
|
-
function
|
|
1304
|
+
function Xn(e, t) {
|
|
1306
1305
|
function n(r) {
|
|
1307
1306
|
var o = e.i(function(s) {
|
|
1308
|
-
var a =
|
|
1307
|
+
var a = ue(e) ? this : e.Aa(o);
|
|
1309
1308
|
return _t(e, a, s), a;
|
|
1310
1309
|
}, !0);
|
|
1311
1310
|
return e.g(o, "prototype", e.Aa(e.D), y), e.g(o.h.prototype, "name", r, y), e.g(t, r, o, y), o;
|
|
1312
1311
|
}
|
|
1313
1312
|
e.D = e.i(function(r) {
|
|
1314
|
-
var o =
|
|
1313
|
+
var o = ue(e) ? this : e.Aa(e.D);
|
|
1315
1314
|
return _t(e, o, r), o;
|
|
1316
1315
|
}, !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), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1317
1316
|
}
|
|
1318
|
-
function
|
|
1317
|
+
function Hn(e, t) {
|
|
1319
1318
|
var n = e.s(e.M);
|
|
1320
1319
|
e.g(t, "Math", n, y);
|
|
1321
1320
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1322
1321
|
for (t = 0; t < r.length; t++)
|
|
1323
|
-
e.g(n, r[t], Math[r[t]],
|
|
1322
|
+
e.g(n, r[t], Math[r[t]], X);
|
|
1324
1323
|
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++)
|
|
1325
1324
|
e.g(n, r[t], e.i(Math[r[t]], !1), y);
|
|
1326
1325
|
}
|
|
@@ -1334,7 +1333,7 @@ function Kn(e, t) {
|
|
|
1334
1333
|
}
|
|
1335
1334
|
return e.Ia(o);
|
|
1336
1335
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, s) {
|
|
1337
|
-
o && o.H === "Function" ? m(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o =
|
|
1336
|
+
o && o.H === "Function" ? m(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = Zr(e, o), o = o.filter(function(f) {
|
|
1338
1337
|
return typeof f == "string" || typeof f == "number";
|
|
1339
1338
|
})) : o = null, typeof s != "string" && typeof s != "number" && (s = void 0), r = e.R(r);
|
|
1340
1339
|
try {
|
|
@@ -1345,12 +1344,12 @@ function Kn(e, t) {
|
|
|
1345
1344
|
return a;
|
|
1346
1345
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
1347
1346
|
}
|
|
1348
|
-
function
|
|
1347
|
+
function W(e, t, n) {
|
|
1349
1348
|
if (t == null || !n)
|
|
1350
1349
|
return !1;
|
|
1351
1350
|
if (n = n.h.prototype, t === n)
|
|
1352
1351
|
return !0;
|
|
1353
|
-
for (t =
|
|
1352
|
+
for (t = le(e, t); t; ) {
|
|
1354
1353
|
if (t === n)
|
|
1355
1354
|
return !0;
|
|
1356
1355
|
t = t.xa;
|
|
@@ -1358,7 +1357,7 @@ function _(e, t, n) {
|
|
|
1358
1357
|
return !1;
|
|
1359
1358
|
}
|
|
1360
1359
|
function Vt(e, t, n) {
|
|
1361
|
-
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source,
|
|
1360
|
+
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source, X), e.g(t, "global", n.global, X), e.g(t, "ignoreCase", n.ignoreCase, X), e.g(t, "multiline", n.multiline, X);
|
|
1362
1361
|
}
|
|
1363
1362
|
function _t(e, t, n) {
|
|
1364
1363
|
n && e.g(t, "message", String(n), y), n = [];
|
|
@@ -1384,37 +1383,37 @@ b.ha = function() {
|
|
|
1384
1383
|
type: "application/javascript"
|
|
1385
1384
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1386
1385
|
};
|
|
1387
|
-
function
|
|
1386
|
+
function Le(e, t, n, r, o) {
|
|
1388
1387
|
var s = {
|
|
1389
1388
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1390
1389
|
};
|
|
1391
1390
|
try {
|
|
1392
|
-
return
|
|
1391
|
+
return ae.runInNewContext(t, n, s);
|
|
1393
1392
|
} catch {
|
|
1394
1393
|
o(null), m(e, e.D, "RegExp Timeout: " + r);
|
|
1395
1394
|
}
|
|
1396
|
-
return
|
|
1395
|
+
return Ee;
|
|
1397
1396
|
}
|
|
1398
|
-
function
|
|
1397
|
+
function _e(e, t, n) {
|
|
1399
1398
|
if (e.REGEXP_MODE === 0)
|
|
1400
1399
|
var r = !1;
|
|
1401
1400
|
else if (e.REGEXP_MODE === 1)
|
|
1402
1401
|
r = !0;
|
|
1403
|
-
else if (
|
|
1402
|
+
else if (ae)
|
|
1404
1403
|
r = !0;
|
|
1405
1404
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1406
1405
|
r = !0;
|
|
1407
1406
|
else if (typeof require == "function") {
|
|
1408
1407
|
try {
|
|
1409
|
-
|
|
1408
|
+
ae = require("vm");
|
|
1410
1409
|
} catch {
|
|
1411
1410
|
}
|
|
1412
|
-
r = !!
|
|
1411
|
+
r = !!ae;
|
|
1413
1412
|
} else
|
|
1414
1413
|
r = !1;
|
|
1415
1414
|
r || (n(null), m(e, e.D, "Regular expressions not supported: " + t));
|
|
1416
1415
|
}
|
|
1417
|
-
function
|
|
1416
|
+
function We(e, t, n, r) {
|
|
1418
1417
|
return setTimeout(function() {
|
|
1419
1418
|
n.terminate(), r(null);
|
|
1420
1419
|
try {
|
|
@@ -1429,9 +1428,9 @@ b.Aa = function(e) {
|
|
|
1429
1428
|
b.s = function(e) {
|
|
1430
1429
|
if (typeof e != "object")
|
|
1431
1430
|
throw Error("Non object prototype");
|
|
1432
|
-
return e = new A(e),
|
|
1431
|
+
return e = new A(e), W(this, e, this.D) && (e.H = "Error"), e;
|
|
1433
1432
|
};
|
|
1434
|
-
function
|
|
1433
|
+
function Oe(e) {
|
|
1435
1434
|
var t = e.s(e.La);
|
|
1436
1435
|
return e.g(t, "length", 0, {
|
|
1437
1436
|
configurable: !1,
|
|
@@ -1439,20 +1438,20 @@ function Ae(e) {
|
|
|
1439
1438
|
writable: !0
|
|
1440
1439
|
}), t.H = "Array", t;
|
|
1441
1440
|
}
|
|
1442
|
-
function
|
|
1441
|
+
function Xt(e, t, n) {
|
|
1443
1442
|
var r = e.s(e.Z);
|
|
1444
|
-
return n ? (n = e.s(e.M), e.g(r, "prototype", n, y), e.g(n, "constructor", r, y)) : r.Ab = !0, e.g(r, "length", t,
|
|
1443
|
+
return n ? (n = e.s(e.M), e.g(r, "prototype", n, y), e.g(n, "constructor", r, y)) : r.Ab = !0, e.g(r, "length", t, X), r.H = "Function", r;
|
|
1445
1444
|
}
|
|
1446
|
-
function
|
|
1447
|
-
var o =
|
|
1448
|
-
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "",
|
|
1445
|
+
function Ht(e, t, n, r) {
|
|
1446
|
+
var o = Xt(e, t.oa.length, !0);
|
|
1447
|
+
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", X), o;
|
|
1449
1448
|
}
|
|
1450
1449
|
b.i = function(e, t) {
|
|
1451
|
-
return t =
|
|
1450
|
+
return t = Xt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, X), t;
|
|
1452
1451
|
};
|
|
1453
1452
|
b.ub = function(e) {
|
|
1454
|
-
var t =
|
|
1455
|
-
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1453
|
+
var t = Xt(this, e.length, !0);
|
|
1454
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, X), t;
|
|
1456
1455
|
};
|
|
1457
1456
|
b.Ia = function(e) {
|
|
1458
1457
|
if (e instanceof A)
|
|
@@ -1475,7 +1474,7 @@ b.Ia = function(e) {
|
|
|
1475
1474
|
}, !!t);
|
|
1476
1475
|
}
|
|
1477
1476
|
if (Array.isArray(e)) {
|
|
1478
|
-
t =
|
|
1477
|
+
t = Oe(this);
|
|
1479
1478
|
for (var r = 0; r < e.length; r++)
|
|
1480
1479
|
r in e && this.g(t, r, this.Ia(e[r]));
|
|
1481
1480
|
return t;
|
|
@@ -1490,9 +1489,9 @@ b.R = function(e, t) {
|
|
|
1490
1489
|
return e;
|
|
1491
1490
|
if (!(e instanceof A))
|
|
1492
1491
|
throw Error("Object is not pseudo");
|
|
1493
|
-
if (
|
|
1492
|
+
if (W(this, e, this.I))
|
|
1494
1493
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
1495
|
-
if (
|
|
1494
|
+
if (W(this, e, this.$))
|
|
1496
1495
|
return new Date(e.data.valueOf());
|
|
1497
1496
|
t = t || {
|
|
1498
1497
|
hb: [],
|
|
@@ -1501,10 +1500,10 @@ b.R = function(e, t) {
|
|
|
1501
1500
|
var n = t.hb.indexOf(e);
|
|
1502
1501
|
if (n !== -1)
|
|
1503
1502
|
return t.Sa[n];
|
|
1504
|
-
if (t.hb.push(e),
|
|
1503
|
+
if (t.hb.push(e), W(this, e, this.qa)) {
|
|
1505
1504
|
n = [], t.Sa.push(n);
|
|
1506
1505
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1507
|
-
|
|
1506
|
+
ut(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
1508
1507
|
} else
|
|
1509
1508
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1510
1509
|
o = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
@@ -1515,18 +1514,18 @@ b.R = function(e, t) {
|
|
|
1515
1514
|
});
|
|
1516
1515
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1517
1516
|
};
|
|
1518
|
-
function
|
|
1519
|
-
for (var n =
|
|
1517
|
+
function se(e, t) {
|
|
1518
|
+
for (var n = Oe(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
|
|
1520
1519
|
e.g(n, r[o], t[r[o]]);
|
|
1521
1520
|
return n;
|
|
1522
1521
|
}
|
|
1523
|
-
function
|
|
1522
|
+
function Zr(e, t) {
|
|
1524
1523
|
var n = [], r;
|
|
1525
1524
|
for (r in t.h)
|
|
1526
1525
|
n[r] = e.G(t, r);
|
|
1527
1526
|
return n.length = Gt(e.G(t, "length")) || 0, n;
|
|
1528
1527
|
}
|
|
1529
|
-
function
|
|
1528
|
+
function le(e, t) {
|
|
1530
1529
|
switch (typeof t) {
|
|
1531
1530
|
case "number":
|
|
1532
1531
|
return e.aa.h.prototype;
|
|
@@ -1543,32 +1542,32 @@ b.G = function(e, t) {
|
|
|
1543
1542
|
if (t = String(t), e != null || m(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof A))
|
|
1544
1543
|
throw TypeError("Expecting native value or pseudo object");
|
|
1545
1544
|
if (t === "length") {
|
|
1546
|
-
if (
|
|
1545
|
+
if (W(this, e, this.J))
|
|
1547
1546
|
return String(e).length;
|
|
1548
|
-
} else if (64 > t.charCodeAt(0) &&
|
|
1549
|
-
var n =
|
|
1547
|
+
} else if (64 > t.charCodeAt(0) && W(this, e, this.J)) {
|
|
1548
|
+
var n = Ve(t);
|
|
1550
1549
|
if (!isNaN(n) && n < String(e).length)
|
|
1551
1550
|
return String(e)[n];
|
|
1552
1551
|
}
|
|
1553
1552
|
do
|
|
1554
1553
|
if (e.h && t in e.h)
|
|
1555
1554
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1556
|
-
while (e =
|
|
1555
|
+
while (e = le(this, e));
|
|
1557
1556
|
};
|
|
1558
|
-
function
|
|
1557
|
+
function ut(e, t, n) {
|
|
1559
1558
|
if (!(t instanceof A))
|
|
1560
1559
|
throw TypeError("Primitive data type has no properties");
|
|
1561
|
-
if (n = String(n), n === "length" &&
|
|
1560
|
+
if (n = String(n), n === "length" && W(e, t, e.J))
|
|
1562
1561
|
return !0;
|
|
1563
|
-
if (
|
|
1564
|
-
var r =
|
|
1562
|
+
if (W(e, t, e.J)) {
|
|
1563
|
+
var r = Ve(n);
|
|
1565
1564
|
if (!isNaN(r) && r < String(t).length)
|
|
1566
1565
|
return !0;
|
|
1567
1566
|
}
|
|
1568
1567
|
do
|
|
1569
1568
|
if (t.h && n in t.h)
|
|
1570
1569
|
return !0;
|
|
1571
|
-
while (t =
|
|
1570
|
+
while (t = le(e, t));
|
|
1572
1571
|
return !1;
|
|
1573
1572
|
}
|
|
1574
1573
|
b.g = function(e, t, n, r) {
|
|
@@ -1579,8 +1578,8 @@ b.g = function(e, t, n, r) {
|
|
|
1579
1578
|
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && m(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1580
1579
|
var o = !this.o || Kt(this).S;
|
|
1581
1580
|
if (e instanceof A) {
|
|
1582
|
-
if (
|
|
1583
|
-
var s =
|
|
1581
|
+
if (W(this, e, this.J)) {
|
|
1582
|
+
var s = Ve(t);
|
|
1584
1583
|
if (t === "length" || !isNaN(s) && s < String(e).length) {
|
|
1585
1584
|
o && m(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1586
1585
|
return;
|
|
@@ -1595,11 +1594,11 @@ b.g = function(e, t, n, r) {
|
|
|
1595
1594
|
}
|
|
1596
1595
|
if (n = Gt(n), isNaN(n) && m(this, this.ob, "Invalid array length"), n < s)
|
|
1597
1596
|
for (a in e.h) {
|
|
1598
|
-
var a =
|
|
1597
|
+
var a = Ve(a);
|
|
1599
1598
|
!isNaN(a) && n <= a && delete e.h[a];
|
|
1600
1599
|
}
|
|
1601
1600
|
} else
|
|
1602
|
-
isNaN(a =
|
|
1601
|
+
isNaN(a = Ve(t)) || (e.h.length = Math.max(s, a + 1));
|
|
1603
1602
|
if (!e.preventExtensions || t in e.h)
|
|
1604
1603
|
if (r) {
|
|
1605
1604
|
o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== Ke && (o.value = n, delete e.V[t], delete e.Y[t]);
|
|
@@ -1613,7 +1612,7 @@ b.g = function(e, t, n, r) {
|
|
|
1613
1612
|
if (n === Ke)
|
|
1614
1613
|
throw ReferenceError("Value not specified");
|
|
1615
1614
|
for (r = e; !(t in r.h); )
|
|
1616
|
-
if (r =
|
|
1615
|
+
if (r = le(this, r), !r) {
|
|
1617
1616
|
r = e;
|
|
1618
1617
|
break;
|
|
1619
1618
|
}
|
|
@@ -1639,10 +1638,10 @@ b.g.ac = function() {
|
|
|
1639
1638
|
b.g.bc = function() {
|
|
1640
1639
|
throw Error("Placeholder setter");
|
|
1641
1640
|
};
|
|
1642
|
-
function
|
|
1641
|
+
function L(e, t, n, r) {
|
|
1643
1642
|
e.g(t.h.prototype, n, e.i(r, !1), y);
|
|
1644
1643
|
}
|
|
1645
|
-
function
|
|
1644
|
+
function $e(e, t, n, r) {
|
|
1646
1645
|
e.g(t.h.prototype, n, e.ub(r), y);
|
|
1647
1646
|
}
|
|
1648
1647
|
function Kt(e) {
|
|
@@ -1658,12 +1657,12 @@ function Wt(e, t, n) {
|
|
|
1658
1657
|
var o = t.body && t.body[0];
|
|
1659
1658
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1660
1659
|
}
|
|
1661
|
-
return o = e.s(null), r = new
|
|
1660
|
+
return o = e.s(null), r = new qr(n, r, o), n || Dn(e, r.object), Je(e, t, r), r;
|
|
1662
1661
|
}
|
|
1663
1662
|
function Jt(e, t, n) {
|
|
1664
1663
|
if (!t)
|
|
1665
1664
|
throw Error("parentScope required");
|
|
1666
|
-
return e = n || e.s(null), new
|
|
1665
|
+
return e = n || e.s(null), new qr(t, t.S, e);
|
|
1667
1666
|
}
|
|
1668
1667
|
function Yt(e, t) {
|
|
1669
1668
|
for (var n = Kt(e); n && n !== e.N; ) {
|
|
@@ -1671,11 +1670,11 @@ function Yt(e, t) {
|
|
|
1671
1670
|
return n.object.h[t];
|
|
1672
1671
|
n = n.Va;
|
|
1673
1672
|
}
|
|
1674
|
-
if (n === e.N &&
|
|
1673
|
+
if (n === e.N && ut(e, n.object, t))
|
|
1675
1674
|
return e.G(n.object, t);
|
|
1676
1675
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || m(e, e.pb, t + " is not defined");
|
|
1677
1676
|
}
|
|
1678
|
-
function
|
|
1677
|
+
function zr(e, t, n) {
|
|
1679
1678
|
for (var r = Kt(e), o = r.S; r && r !== e.N; ) {
|
|
1680
1679
|
if (t in r.object.h) {
|
|
1681
1680
|
try {
|
|
@@ -1687,7 +1686,7 @@ function qr(e, t, n) {
|
|
|
1687
1686
|
}
|
|
1688
1687
|
r = r.Va;
|
|
1689
1688
|
}
|
|
1690
|
-
if (r === e.N && (!o ||
|
|
1689
|
+
if (r === e.N && (!o || ut(e, r.object, t)))
|
|
1691
1690
|
return e.g(r.object, t, n);
|
|
1692
1691
|
m(e, e.pb, t + " is not defined");
|
|
1693
1692
|
}
|
|
@@ -1737,20 +1736,20 @@ function Je(e, t, n) {
|
|
|
1737
1736
|
t.jb = r;
|
|
1738
1737
|
}
|
|
1739
1738
|
for (a in r)
|
|
1740
|
-
r[a] === !0 ? e.g(n.object, a, void 0,
|
|
1739
|
+
r[a] === !0 ? e.g(n.object, a, void 0, Br) : e.g(n.object, a, Ht(e, r[a], n), Br);
|
|
1741
1740
|
return r;
|
|
1742
1741
|
}
|
|
1743
|
-
function
|
|
1742
|
+
function ue(e) {
|
|
1744
1743
|
return e.o[e.o.length - 1].isConstructor;
|
|
1745
1744
|
}
|
|
1746
1745
|
function Zt(e, t) {
|
|
1747
|
-
return t[0] ===
|
|
1746
|
+
return t[0] === Ae ? Yt(e, t[1]) : e.G(t[0], t[1]);
|
|
1748
1747
|
}
|
|
1749
1748
|
function zt(e, t, n) {
|
|
1750
|
-
return t[0] ===
|
|
1749
|
+
return t[0] === Ae ? zr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1751
1750
|
}
|
|
1752
1751
|
function m(e, t, n) {
|
|
1753
|
-
throw e.N ? (n !== void 0 && t instanceof A && (t = e.Aa(t), _t(e, t, n)), Ye(e, 4, t),
|
|
1752
|
+
throw e.N ? (n !== void 0 && t instanceof A && (t = e.Aa(t), _t(e, t, n)), Ye(e, 4, t), Yr) : n === void 0 ? t : n;
|
|
1754
1753
|
}
|
|
1755
1754
|
function Ye(e, t, n, r) {
|
|
1756
1755
|
if (t === 0)
|
|
@@ -1788,7 +1787,7 @@ function Ye(e, t, n, r) {
|
|
|
1788
1787
|
} else if (t === 2 && (r ? s.labels && s.labels.indexOf(r) !== -1 : s.W))
|
|
1789
1788
|
return;
|
|
1790
1789
|
}
|
|
1791
|
-
throw
|
|
1790
|
+
throw W(e, n, e.D) ? (t = {
|
|
1792
1791
|
EvalError,
|
|
1793
1792
|
RangeError,
|
|
1794
1793
|
ReferenceError,
|
|
@@ -1828,7 +1827,7 @@ function V(e, t) {
|
|
|
1828
1827
|
}
|
|
1829
1828
|
return "???";
|
|
1830
1829
|
}
|
|
1831
|
-
function
|
|
1830
|
+
function Ur(e, t, n) {
|
|
1832
1831
|
var r = e.o[e.o.length - 1], o = Array.from(n), s = o.shift();
|
|
1833
1832
|
n = Math.max(Number(o.shift() || 0), 0);
|
|
1834
1833
|
var a = e.ya();
|
|
@@ -1837,20 +1836,20 @@ function Lr(e, t, n) {
|
|
|
1837
1836
|
a.type = "CallExpression", r = r.scope;
|
|
1838
1837
|
} else {
|
|
1839
1838
|
try {
|
|
1840
|
-
var g =
|
|
1841
|
-
} catch (
|
|
1842
|
-
m(e, e.T, "Invalid code: " +
|
|
1839
|
+
var g = je(String(s), "taskCode" + e.ic++);
|
|
1840
|
+
} catch (O) {
|
|
1841
|
+
m(e, e.T, "Invalid code: " + O.message);
|
|
1843
1842
|
}
|
|
1844
|
-
a.type = "EvalProgram_", a.body = g.body, r = r.node.arguments[0],
|
|
1843
|
+
a.type = "EvalProgram_", a.body = g.body, r = r.node.arguments[0], lt(a, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1845
1844
|
}
|
|
1846
|
-
return t = new Jn(f, o, r, a, t ? n : -1),
|
|
1845
|
+
return t = new Jn(f, o, r, a, t ? n : -1), Qr(e, t, n), t.Db;
|
|
1847
1846
|
}
|
|
1848
|
-
function
|
|
1847
|
+
function Qr(e, t, n) {
|
|
1849
1848
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
1850
1849
|
return r.time - o.time;
|
|
1851
1850
|
});
|
|
1852
1851
|
}
|
|
1853
|
-
function
|
|
1852
|
+
function Fr(e, t) {
|
|
1854
1853
|
for (var n = 0; n < e.ca.length; n++)
|
|
1855
1854
|
if (e.ca[n].Db == t) {
|
|
1856
1855
|
e.ca.splice(n, 1);
|
|
@@ -1871,8 +1870,8 @@ function Qt(e, t, n, r) {
|
|
|
1871
1870
|
var o = e.ya();
|
|
1872
1871
|
return o.type = "CallExpression", e = new v(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1873
1872
|
}
|
|
1874
|
-
function
|
|
1875
|
-
return t == null ? e.Na : t instanceof A ? t : (e = e.s(
|
|
1873
|
+
function Bt(e, t) {
|
|
1874
|
+
return t == null ? e.Na : t instanceof A ? t : (e = e.s(le(e, t)), e.data = t, e);
|
|
1876
1875
|
}
|
|
1877
1876
|
b.Xb = function() {
|
|
1878
1877
|
return this.N;
|
|
@@ -1886,7 +1885,7 @@ b.ec = function(e) {
|
|
|
1886
1885
|
function v(e, t) {
|
|
1887
1886
|
this.node = e, this.scope = t;
|
|
1888
1887
|
}
|
|
1889
|
-
function
|
|
1888
|
+
function qr(e, t, n) {
|
|
1890
1889
|
this.Va = e, this.S = t, this.object = n;
|
|
1891
1890
|
}
|
|
1892
1891
|
function A(e) {
|
|
@@ -1897,12 +1896,12 @@ b.xa = null;
|
|
|
1897
1896
|
b.H = "Object";
|
|
1898
1897
|
b.data = null;
|
|
1899
1898
|
b.toString = function() {
|
|
1900
|
-
if (!
|
|
1899
|
+
if (!Ge)
|
|
1901
1900
|
return "[object Interpreter.Object]";
|
|
1902
1901
|
if (!(this instanceof A))
|
|
1903
1902
|
return String(this);
|
|
1904
1903
|
if (this.H === "Array") {
|
|
1905
|
-
var e =
|
|
1904
|
+
var e = Dr;
|
|
1906
1905
|
e.push(this);
|
|
1907
1906
|
try {
|
|
1908
1907
|
var t = [], n = this.h.length, r = !1;
|
|
@@ -1918,7 +1917,7 @@ b.toString = function() {
|
|
|
1918
1917
|
return t.join(",");
|
|
1919
1918
|
}
|
|
1920
1919
|
if (this.H === "Error") {
|
|
1921
|
-
if (e =
|
|
1920
|
+
if (e = Dr, e.indexOf(this) !== -1)
|
|
1922
1921
|
return "[object Error]";
|
|
1923
1922
|
n = this;
|
|
1924
1923
|
do
|
|
@@ -1945,7 +1944,7 @@ b.toString = function() {
|
|
|
1945
1944
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1946
1945
|
};
|
|
1947
1946
|
b.valueOf = function() {
|
|
1948
|
-
return !
|
|
1947
|
+
return !Ge || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1949
1948
|
};
|
|
1950
1949
|
function Jn(e, t, n, r, o) {
|
|
1951
1950
|
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Yn, this.time = 0;
|
|
@@ -1954,7 +1953,7 @@ var Yn = 0;
|
|
|
1954
1953
|
h.prototype.stepArrayExpression = function(e, t, n) {
|
|
1955
1954
|
n = n.elements;
|
|
1956
1955
|
var r = t.A || 0;
|
|
1957
|
-
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa =
|
|
1956
|
+
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Oe(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
1958
1957
|
if (n[r])
|
|
1959
1958
|
return t.A = r, new v(n[r], t.scope);
|
|
1960
1959
|
r++;
|
|
@@ -2081,10 +2080,10 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2081
2080
|
n = r >>> t;
|
|
2082
2081
|
break;
|
|
2083
2082
|
case "in":
|
|
2084
|
-
t instanceof A || m(this, this.j, "'in' expects an object, not '" + t + "'"), n =
|
|
2083
|
+
t instanceof A || m(this, this.j, "'in' expects an object, not '" + t + "'"), n = ut(this, t, r);
|
|
2085
2084
|
break;
|
|
2086
2085
|
case "instanceof":
|
|
2087
|
-
|
|
2086
|
+
W(this, t, this.O) || m(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof A ? W(this, r, t) : !1;
|
|
2088
2087
|
break;
|
|
2089
2088
|
default:
|
|
2090
2089
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2111,7 +2110,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2111
2110
|
t.ia = 2;
|
|
2112
2111
|
var o = t.value;
|
|
2113
2112
|
if (Array.isArray(o)) {
|
|
2114
|
-
if (t.U = Zt(this, o), o[0] ===
|
|
2113
|
+
if (t.U = Zt(this, o), o[0] === Ae ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2115
2114
|
return t.ia = 1, Ze(this, o, t.value);
|
|
2116
2115
|
} else
|
|
2117
2116
|
t.U = o;
|
|
@@ -2122,7 +2121,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2122
2121
|
return new v(n.arguments[t.A++], t.scope);
|
|
2123
2122
|
if (n.type === "NewExpression") {
|
|
2124
2123
|
if (o instanceof A && !o.Ab || m(this, this.j, V(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2125
|
-
t.B =
|
|
2124
|
+
t.B = Oe(this);
|
|
2126
2125
|
else {
|
|
2127
2126
|
var s = o.h.prototype;
|
|
2128
2127
|
(typeof s != "object" || s === null) && (s = this.M), t.B = this.s(s);
|
|
@@ -2135,30 +2134,30 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2135
2134
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2136
2135
|
else {
|
|
2137
2136
|
if (t.eb = !0, o instanceof A || m(this, this.j, V(this, n.callee) + " is not a function"), e = o.node) {
|
|
2138
|
-
for (n = Wt(this, e.body, o.Va), r =
|
|
2137
|
+
for (n = Wt(this, e.body, o.Va), r = Oe(this), o = 0; o < t.F.length; o++)
|
|
2139
2138
|
this.g(r, o, t.F[o]);
|
|
2140
2139
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2141
2140
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2142
|
-
return n.S || (t.B =
|
|
2141
|
+
return n.S || (t.B = Bt(this, t.B)), this.g(n.object, "this", t.B, $t), t.value = void 0, new v(e.body, n);
|
|
2143
2142
|
}
|
|
2144
2143
|
if (o.eval)
|
|
2145
2144
|
if (o = t.F[0], typeof o != "string")
|
|
2146
2145
|
t.value = o;
|
|
2147
2146
|
else {
|
|
2148
2147
|
try {
|
|
2149
|
-
r =
|
|
2148
|
+
r = je(String(o), "eval" + this.Hb++);
|
|
2150
2149
|
} catch (f) {
|
|
2151
2150
|
m(this, this.T, "Invalid code: " + f.message);
|
|
2152
2151
|
}
|
|
2153
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body,
|
|
2152
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, lt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Wt(this, r, n) : Je(this, r, n), this.value = void 0, new v(o, n);
|
|
2154
2153
|
}
|
|
2155
2154
|
else if (o.Ta)
|
|
2156
|
-
t.scope.S || (t.B =
|
|
2155
|
+
t.scope.S || (t.B = Bt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2157
2156
|
else if (o.Za) {
|
|
2158
2157
|
var a = this;
|
|
2159
2158
|
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(f) {
|
|
2160
2159
|
t.value = f, a.za = !1;
|
|
2161
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2160
|
+
}), this.za = !0, t.scope.S || (t.B = Bt(this, t.B)), o.Za.apply(t.B, r);
|
|
2162
2161
|
} else
|
|
2163
2162
|
m(this, this.j, V(this, n.callee) + " is not callable");
|
|
2164
2163
|
}
|
|
@@ -2229,14 +2228,14 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2229
2228
|
break e;
|
|
2230
2229
|
}
|
|
2231
2230
|
}
|
|
2232
|
-
if (t.u =
|
|
2231
|
+
if (t.u = le(this, t.u), t.wa = null, t.u === null) {
|
|
2233
2232
|
e.pop();
|
|
2234
2233
|
return;
|
|
2235
2234
|
}
|
|
2236
2235
|
}
|
|
2237
2236
|
if (!t.wb)
|
|
2238
2237
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2239
|
-
t.pa = [
|
|
2238
|
+
t.pa = [Ae, e.fa[0].id.name];
|
|
2240
2239
|
else
|
|
2241
2240
|
return t.pa = null, t = new v(e, t.scope), t.sa = !0, t;
|
|
2242
2241
|
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = zt(this, t.pa, e)))
|
|
@@ -2269,11 +2268,11 @@ h.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2269
2268
|
e.pop();
|
|
2270
2269
|
};
|
|
2271
2270
|
h.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2272
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = Jt(this, e)), t.value =
|
|
2271
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = Jt(this, e)), t.value = Ht(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, $t);
|
|
2273
2272
|
};
|
|
2274
2273
|
h.prototype.stepIdentifier = function(e, t, n) {
|
|
2275
2274
|
if (e.pop(), t.sa)
|
|
2276
|
-
e[e.length - 1].value = [
|
|
2275
|
+
e[e.length - 1].value = [Ae, n.name];
|
|
2277
2276
|
else {
|
|
2278
2277
|
if (t = Yt(this, n.name), this.P)
|
|
2279
2278
|
return Ze(this, t, this.Na);
|
|
@@ -2426,7 +2425,7 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2426
2425
|
case "delete":
|
|
2427
2426
|
if (n = !0, Array.isArray(r)) {
|
|
2428
2427
|
var o = r[0];
|
|
2429
|
-
o ===
|
|
2428
|
+
o === Ae && (o = t.scope), r = String(r[1]);
|
|
2430
2429
|
try {
|
|
2431
2430
|
delete o.h[r];
|
|
2432
2431
|
} catch {
|
|
@@ -2471,7 +2470,7 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2471
2470
|
h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2472
2471
|
n = n.fa;
|
|
2473
2472
|
var r = t.A || 0, o = n[r];
|
|
2474
|
-
for (t.Bb && o && (
|
|
2473
|
+
for (t.Bb && o && (zr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2475
2474
|
if (o.ua)
|
|
2476
2475
|
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new v(o.ua, t.scope);
|
|
2477
2476
|
o = n[++r];
|
|
@@ -2482,7 +2481,7 @@ h.prototype.stepWithStatement = function(e, t, n) {
|
|
|
2482
2481
|
return t.Ca ? (e.pop(), e = Jt(this, t.scope, t.value), new v(n.body, e)) : (t.Ca = !0, new v(n.object, t.scope));
|
|
2483
2482
|
};
|
|
2484
2483
|
h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
|
|
2485
|
-
|
|
2484
|
+
he.Interpreter = h;
|
|
2486
2485
|
h.prototype.step = h.prototype.lb;
|
|
2487
2486
|
h.prototype.run = h.prototype.Eb;
|
|
2488
2487
|
h.prototype.appendCode = h.prototype.Jb;
|
|
@@ -2511,7 +2510,7 @@ const Zn = (e) => e.split(`
|
|
|
2511
2510
|
${f}
|
|
2512
2511
|
`;
|
|
2513
2512
|
}).filter(Boolean).join(`
|
|
2514
|
-
`),
|
|
2513
|
+
`), Lr = (e) => e + "JSON", zn = ({
|
|
2515
2514
|
builder: e,
|
|
2516
2515
|
context: t,
|
|
2517
2516
|
event: n,
|
|
@@ -2523,41 +2522,41 @@ const Zn = (e) => e.split(`
|
|
|
2523
2522
|
const f = {
|
|
2524
2523
|
...r,
|
|
2525
2524
|
...o
|
|
2526
|
-
}, g =
|
|
2525
|
+
}, g = Kr({
|
|
2527
2526
|
builder: e,
|
|
2528
2527
|
context: t,
|
|
2529
2528
|
event: n,
|
|
2530
2529
|
state: f
|
|
2531
|
-
}),
|
|
2532
|
-
const
|
|
2533
|
-
return `var ${I} = ${
|
|
2530
|
+
}), O = g.map(([I]) => {
|
|
2531
|
+
const D = Lr(I);
|
|
2532
|
+
return `var ${I} = ${D} === undefined ? undefined : JSON.parse(${D});`;
|
|
2534
2533
|
}).join(`
|
|
2535
|
-
`),
|
|
2536
|
-
if (
|
|
2537
|
-
|
|
2534
|
+
`), C = Zn(a);
|
|
2535
|
+
if (C === "") {
|
|
2536
|
+
He.warn("Skipping evaluation of empty code block.");
|
|
2538
2537
|
return;
|
|
2539
2538
|
}
|
|
2540
2539
|
const w = `
|
|
2541
2540
|
function theFunction() {
|
|
2542
|
-
${
|
|
2541
|
+
${O}
|
|
2543
2542
|
|
|
2544
|
-
${
|
|
2543
|
+
${C}
|
|
2545
2544
|
}
|
|
2546
2545
|
theFunction();
|
|
2547
|
-
`, N = (I,
|
|
2548
|
-
const
|
|
2549
|
-
s == null || s(
|
|
2550
|
-
},
|
|
2551
|
-
g.forEach(([
|
|
2552
|
-
const
|
|
2553
|
-
I.setProperty(
|
|
2554
|
-
}), I.setProperty(
|
|
2546
|
+
`, N = (I, D) => {
|
|
2547
|
+
const K = Hr(f, I, D);
|
|
2548
|
+
s == null || s(K);
|
|
2549
|
+
}, R = function(I, D) {
|
|
2550
|
+
g.forEach(([K, z]) => {
|
|
2551
|
+
const k = JSON.stringify(z);
|
|
2552
|
+
I.setProperty(D, Lr(K), k);
|
|
2553
|
+
}), I.setProperty(D, "setRootState", I.createNativeFunction(N));
|
|
2555
2554
|
};
|
|
2556
2555
|
try {
|
|
2557
|
-
const I = new h(w,
|
|
2556
|
+
const I = new h(w, R);
|
|
2558
2557
|
return I.run(), I.pseudoToNative(I.value);
|
|
2559
2558
|
} catch (I) {
|
|
2560
|
-
|
|
2559
|
+
He.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2561
2560
|
e: I
|
|
2562
2561
|
});
|
|
2563
2562
|
return;
|
|
@@ -2565,15 +2564,15 @@ theFunction();
|
|
|
2565
2564
|
};
|
|
2566
2565
|
function Qn() {
|
|
2567
2566
|
var e;
|
|
2568
|
-
return typeof process != "undefined" &&
|
|
2567
|
+
return typeof process != "undefined" && st((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2569
2568
|
}
|
|
2570
2569
|
const qn = () => {
|
|
2571
2570
|
var r;
|
|
2572
2571
|
if (!Qn())
|
|
2573
2572
|
return !1;
|
|
2574
2573
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2575
|
-
return e && t && !n ? (
|
|
2576
|
-
}, eo = (e) => Ft() || qn() ? Rn(e) : zn(e),
|
|
2574
|
+
return e && t && !n ? (He.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;
|
|
2575
|
+
}, eo = (e) => Ft() || qn() ? Rn(e) : zn(e), ie = class ie {
|
|
2577
2576
|
static getCacheKey(t) {
|
|
2578
2577
|
return JSON.stringify({
|
|
2579
2578
|
...t,
|
|
@@ -2583,16 +2582,16 @@ const qn = () => {
|
|
|
2583
2582
|
});
|
|
2584
2583
|
}
|
|
2585
2584
|
static getCachedValue(t) {
|
|
2586
|
-
return
|
|
2585
|
+
return ie.cache.get(t);
|
|
2587
2586
|
}
|
|
2588
2587
|
static setCachedValue(t, n) {
|
|
2589
|
-
|
|
2588
|
+
ie.cache.size > 20 && ie.cache.delete(ie.cache.keys().next().value), ie.cache.set(t, {
|
|
2590
2589
|
value: n
|
|
2591
2590
|
});
|
|
2592
2591
|
}
|
|
2593
2592
|
};
|
|
2594
|
-
|
|
2595
|
-
let
|
|
2593
|
+
Mt(ie, "cacheLimit", 20), Mt(ie, "cache", /* @__PURE__ */ new Map());
|
|
2594
|
+
let Ce = ie;
|
|
2596
2595
|
function qt({
|
|
2597
2596
|
code: e,
|
|
2598
2597
|
context: t,
|
|
@@ -2604,14 +2603,14 @@ function qt({
|
|
|
2604
2603
|
enableCache: f
|
|
2605
2604
|
}) {
|
|
2606
2605
|
if (e === "") {
|
|
2607
|
-
|
|
2606
|
+
He.warn("Skipping evaluation of empty code block.");
|
|
2608
2607
|
return;
|
|
2609
2608
|
}
|
|
2610
2609
|
const g = {
|
|
2611
|
-
code:
|
|
2610
|
+
code: Tn(e, {
|
|
2612
2611
|
isExpression: a
|
|
2613
2612
|
}),
|
|
2614
|
-
builder:
|
|
2613
|
+
builder: bn(),
|
|
2615
2614
|
context: t,
|
|
2616
2615
|
event: s,
|
|
2617
2616
|
rootSetState: o,
|
|
@@ -2619,19 +2618,19 @@ function qt({
|
|
|
2619
2618
|
localState: n
|
|
2620
2619
|
};
|
|
2621
2620
|
if (f) {
|
|
2622
|
-
const
|
|
2623
|
-
if (
|
|
2624
|
-
return
|
|
2621
|
+
const O = Ce.getCacheKey(g), C = Ce.getCachedValue(O);
|
|
2622
|
+
if (C)
|
|
2623
|
+
return C.value;
|
|
2625
2624
|
}
|
|
2626
2625
|
try {
|
|
2627
|
-
const
|
|
2626
|
+
const O = eo(g);
|
|
2628
2627
|
if (f) {
|
|
2629
|
-
const
|
|
2630
|
-
|
|
2628
|
+
const C = Ce.getCacheKey(g);
|
|
2629
|
+
Ce.setCachedValue(C, O);
|
|
2631
2630
|
}
|
|
2632
|
-
return
|
|
2633
|
-
} catch (
|
|
2634
|
-
|
|
2631
|
+
return O;
|
|
2632
|
+
} catch (O) {
|
|
2633
|
+
He.error("Failed code evaluation: " + O.message, {
|
|
2635
2634
|
code: e
|
|
2636
2635
|
});
|
|
2637
2636
|
return;
|
|
@@ -2646,7 +2645,7 @@ const to = ({
|
|
|
2646
2645
|
}) => {
|
|
2647
2646
|
if (!e.bindings)
|
|
2648
2647
|
return e;
|
|
2649
|
-
const s =
|
|
2648
|
+
const s = Vr(e), a = {
|
|
2650
2649
|
...s,
|
|
2651
2650
|
properties: {
|
|
2652
2651
|
...s.properties
|
|
@@ -2656,7 +2655,7 @@ const to = ({
|
|
|
2656
2655
|
}
|
|
2657
2656
|
};
|
|
2658
2657
|
for (const f in e.bindings) {
|
|
2659
|
-
const g = e.bindings[f],
|
|
2658
|
+
const g = e.bindings[f], O = qt({
|
|
2660
2659
|
code: g,
|
|
2661
2660
|
localState: n,
|
|
2662
2661
|
rootState: r,
|
|
@@ -2664,11 +2663,11 @@ const to = ({
|
|
|
2664
2663
|
context: t,
|
|
2665
2664
|
enableCache: !0
|
|
2666
2665
|
});
|
|
2667
|
-
|
|
2666
|
+
Hr(a, f, O);
|
|
2668
2667
|
}
|
|
2669
2668
|
return a;
|
|
2670
2669
|
};
|
|
2671
|
-
function
|
|
2670
|
+
function at({
|
|
2672
2671
|
block: e,
|
|
2673
2672
|
context: t,
|
|
2674
2673
|
shouldEvaluateBindings: n,
|
|
@@ -2691,13 +2690,13 @@ function ro(e, t, n = {}) {
|
|
|
2691
2690
|
f = n.leading === !1 ? 0 : Date.now(), a = null, s = e.apply(r, o), a || (r = o = null);
|
|
2692
2691
|
};
|
|
2693
2692
|
return function() {
|
|
2694
|
-
const
|
|
2695
|
-
!f && n.leading === !1 && (f =
|
|
2696
|
-
const
|
|
2697
|
-
return r = this, o = arguments,
|
|
2693
|
+
const O = Date.now();
|
|
2694
|
+
!f && n.leading === !1 && (f = O);
|
|
2695
|
+
const C = t - (O - f);
|
|
2696
|
+
return r = this, o = arguments, C <= 0 || C > t ? (a && (clearTimeout(a), a = null), f = O, s = e.apply(r, o), a || (r = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(g, C)), s;
|
|
2698
2697
|
};
|
|
2699
2698
|
}
|
|
2700
|
-
function
|
|
2699
|
+
function Xe(e, ...t) {
|
|
2701
2700
|
const n = Object(e);
|
|
2702
2701
|
for (let r = 1; r < arguments.length; r++) {
|
|
2703
2702
|
const o = arguments[r];
|
|
@@ -2714,18 +2713,15 @@ function no(e) {
|
|
|
2714
2713
|
case "pageLoad":
|
|
2715
2714
|
io(t);
|
|
2716
2715
|
break;
|
|
2717
|
-
case "hover":
|
|
2718
|
-
so(t);
|
|
2719
|
-
break;
|
|
2720
2716
|
case "scrollInView":
|
|
2721
|
-
|
|
2717
|
+
so(t);
|
|
2722
2718
|
break;
|
|
2723
2719
|
}
|
|
2724
2720
|
}
|
|
2725
|
-
function
|
|
2721
|
+
function en(e) {
|
|
2726
2722
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2727
2723
|
}
|
|
2728
|
-
function
|
|
2724
|
+
function tn(e, t) {
|
|
2729
2725
|
const n = oo(e), r = getComputedStyle(t), o = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, a = [o, s];
|
|
2730
2726
|
for (const f of a)
|
|
2731
2727
|
for (const g of n)
|
|
@@ -2741,12 +2737,12 @@ function oo(e) {
|
|
|
2741
2737
|
function io(e) {
|
|
2742
2738
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2743
2739
|
if (!t.length) {
|
|
2744
|
-
|
|
2740
|
+
en(e.elementId || e.id || "");
|
|
2745
2741
|
return;
|
|
2746
2742
|
}
|
|
2747
2743
|
Array.from(t).forEach((n) => {
|
|
2748
|
-
|
|
2749
|
-
n.style.transition = `all ${e.duration}s ${er(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
2744
|
+
tn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Xe(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2745
|
+
n.style.transition = `all ${e.duration}s ${er(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Xe(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2750
2746
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
2751
2747
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2752
2748
|
});
|
|
@@ -2755,51 +2751,31 @@ function io(e) {
|
|
|
2755
2751
|
function so(e) {
|
|
2756
2752
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2757
2753
|
if (!t.length) {
|
|
2758
|
-
|
|
2754
|
+
en(e.elementId || e.id || "");
|
|
2759
2755
|
return;
|
|
2760
2756
|
}
|
|
2761
2757
|
Array.from(t).forEach((n) => {
|
|
2762
|
-
|
|
2763
|
-
const r = e.steps[0].styles, o = e.steps[1].styles;
|
|
2764
|
-
function s() {
|
|
2765
|
-
ye(n.style, r);
|
|
2766
|
-
}
|
|
2767
|
-
function a() {
|
|
2768
|
-
ye(n.style, o);
|
|
2769
|
-
}
|
|
2770
|
-
s(), n.addEventListener("mouseenter", a), n.addEventListener("mouseleave", s), setTimeout(() => {
|
|
2771
|
-
n.style.transition = `all ${e.duration}s ${er(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
2772
|
-
});
|
|
2773
|
-
});
|
|
2774
|
-
}
|
|
2775
|
-
function ao(e) {
|
|
2776
|
-
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2777
|
-
if (!t.length) {
|
|
2778
|
-
tr(e.elementId || e.id || "");
|
|
2779
|
-
return;
|
|
2780
|
-
}
|
|
2781
|
-
Array.from(t).forEach((n) => {
|
|
2782
|
-
rr(e, n);
|
|
2758
|
+
tn(e, n);
|
|
2783
2759
|
let r = !1, o = !1;
|
|
2784
2760
|
function s() {
|
|
2785
2761
|
!r && f(n) ? (r = !0, o = !0, setTimeout(() => {
|
|
2786
|
-
|
|
2762
|
+
Xe(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
2787
2763
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
2788
2764
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
2789
|
-
})) : e.repeat && r && !o && !f(n) && (r = !1,
|
|
2765
|
+
})) : e.repeat && r && !o && !f(n) && (r = !1, Xe(n.style, e.steps[0].styles));
|
|
2790
2766
|
}
|
|
2791
2767
|
const a = ro(s, 200, {
|
|
2792
2768
|
leading: !1
|
|
2793
2769
|
});
|
|
2794
|
-
function f(
|
|
2795
|
-
const w =
|
|
2770
|
+
function f(C) {
|
|
2771
|
+
const w = C.getBoundingClientRect(), N = window.innerHeight, I = (e.thresholdPercent || 0) / 100 * N;
|
|
2796
2772
|
return w.bottom > I && w.top < N - I;
|
|
2797
2773
|
}
|
|
2798
2774
|
const g = e.steps[0].styles;
|
|
2799
|
-
function
|
|
2800
|
-
|
|
2775
|
+
function O() {
|
|
2776
|
+
Xe(n.style, g);
|
|
2801
2777
|
}
|
|
2802
|
-
|
|
2778
|
+
O(), setTimeout(() => {
|
|
2803
2779
|
n.style.transition = `all ${e.duration}s ${er(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
2804
2780
|
}), document.addEventListener("scroll", a, {
|
|
2805
2781
|
capture: !0,
|
|
@@ -2807,37 +2783,37 @@ function ao(e) {
|
|
|
2807
2783
|
}), s();
|
|
2808
2784
|
});
|
|
2809
2785
|
}
|
|
2810
|
-
const
|
|
2786
|
+
const ao = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), rn = (e) => Object.entries(e).map(([n, r]) => {
|
|
2811
2787
|
if (typeof r == "string")
|
|
2812
|
-
return `${
|
|
2813
|
-
}).filter(
|
|
2814
|
-
`),
|
|
2788
|
+
return `${ao(n)}: ${r};`;
|
|
2789
|
+
}).filter(st), lo = (e) => rn(e).join(`
|
|
2790
|
+
`), it = ({
|
|
2815
2791
|
mediaQuery: e,
|
|
2816
2792
|
className: t,
|
|
2817
2793
|
styles: n
|
|
2818
2794
|
}) => {
|
|
2819
2795
|
const r = `.${t} {
|
|
2820
|
-
${
|
|
2796
|
+
${lo(n)}
|
|
2821
2797
|
}`;
|
|
2822
2798
|
return e ? `${e} {
|
|
2823
2799
|
${r}
|
|
2824
2800
|
}` : r;
|
|
2825
2801
|
};
|
|
2826
|
-
function
|
|
2802
|
+
function uo({
|
|
2827
2803
|
style: e
|
|
2828
2804
|
}) {
|
|
2829
2805
|
return e;
|
|
2830
2806
|
}
|
|
2831
|
-
const
|
|
2807
|
+
const co = ({
|
|
2832
2808
|
block: e,
|
|
2833
2809
|
context: t
|
|
2834
|
-
}) =>
|
|
2810
|
+
}) => fo(uo({
|
|
2835
2811
|
style: e.style || {},
|
|
2836
2812
|
context: t,
|
|
2837
2813
|
block: e
|
|
2838
2814
|
}));
|
|
2839
|
-
function
|
|
2840
|
-
switch (
|
|
2815
|
+
function fo(e) {
|
|
2816
|
+
switch (Xr) {
|
|
2841
2817
|
case "svelte":
|
|
2842
2818
|
case "vue":
|
|
2843
2819
|
case "solid":
|
|
@@ -2849,13 +2825,13 @@ function po(e) {
|
|
|
2849
2825
|
return e;
|
|
2850
2826
|
}
|
|
2851
2827
|
}
|
|
2852
|
-
const
|
|
2828
|
+
const po = ({
|
|
2853
2829
|
block: e,
|
|
2854
2830
|
context: t,
|
|
2855
2831
|
registeredComponents: n
|
|
2856
2832
|
}) => {
|
|
2857
2833
|
var s;
|
|
2858
|
-
const r = (s =
|
|
2834
|
+
const r = (s = at({
|
|
2859
2835
|
block: e,
|
|
2860
2836
|
localState: t.localState,
|
|
2861
2837
|
rootState: t.rootState,
|
|
@@ -2871,7 +2847,7 @@ const ho = ({
|
|
|
2871
2847
|
console.warn(`
|
|
2872
2848
|
Could not find a registered component named "${r}".
|
|
2873
2849
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2874
|
-
},
|
|
2850
|
+
}, ho = ({
|
|
2875
2851
|
block: e,
|
|
2876
2852
|
context: t
|
|
2877
2853
|
}) => {
|
|
@@ -2892,15 +2868,15 @@ const ho = ({
|
|
|
2892
2868
|
if (!Array.isArray(o))
|
|
2893
2869
|
return;
|
|
2894
2870
|
const s = n.collection.split(".").pop(), a = n.itemName || (s ? s + "Item" : "item");
|
|
2895
|
-
return o.map((g,
|
|
2871
|
+
return o.map((g, O) => ({
|
|
2896
2872
|
context: {
|
|
2897
2873
|
...t,
|
|
2898
2874
|
localState: {
|
|
2899
2875
|
...t.localState,
|
|
2900
|
-
$index:
|
|
2876
|
+
$index: O,
|
|
2901
2877
|
$item: g,
|
|
2902
2878
|
[a]: g,
|
|
2903
|
-
[`$${a}Index`]:
|
|
2879
|
+
[`$${a}Index`]: O
|
|
2904
2880
|
}
|
|
2905
2881
|
},
|
|
2906
2882
|
block: r
|
|
@@ -2921,11 +2897,11 @@ const ho = ({
|
|
|
2921
2897
|
default: 991,
|
|
2922
2898
|
max: 1200
|
|
2923
2899
|
}
|
|
2924
|
-
},
|
|
2900
|
+
}, _r = (e, t = nn) => `@media (max-width: ${t[e].max}px)`, go = ({
|
|
2925
2901
|
small: e,
|
|
2926
2902
|
medium: t
|
|
2927
2903
|
}) => {
|
|
2928
|
-
const n =
|
|
2904
|
+
const n = Vr(nn);
|
|
2929
2905
|
if (!e || !t)
|
|
2930
2906
|
return n;
|
|
2931
2907
|
const r = Math.floor(e / 2);
|
|
@@ -2948,7 +2924,7 @@ const ho = ({
|
|
|
2948
2924
|
default: s + 1
|
|
2949
2925
|
}, n;
|
|
2950
2926
|
};
|
|
2951
|
-
function
|
|
2927
|
+
function yo(e) {
|
|
2952
2928
|
return /* @__PURE__ */ T(
|
|
2953
2929
|
"style",
|
|
2954
2930
|
{
|
|
@@ -2957,9 +2933,9 @@ function vo(e) {
|
|
|
2957
2933
|
}
|
|
2958
2934
|
);
|
|
2959
2935
|
}
|
|
2960
|
-
function
|
|
2936
|
+
function vo(e) {
|
|
2961
2937
|
function t() {
|
|
2962
|
-
const r =
|
|
2938
|
+
const r = at({
|
|
2963
2939
|
block: e.block,
|
|
2964
2940
|
localState: e.context.localState,
|
|
2965
2941
|
rootState: e.context.rootState,
|
|
@@ -2967,48 +2943,67 @@ function mo(e) {
|
|
|
2967
2943
|
context: e.context.context,
|
|
2968
2944
|
shouldEvaluateBindings: !0
|
|
2969
2945
|
});
|
|
2970
|
-
return
|
|
2946
|
+
return st(r.hide) ? !r.hide : st(r.show) ? r.show : !0;
|
|
2971
2947
|
}
|
|
2972
2948
|
function n() {
|
|
2973
|
-
var
|
|
2974
|
-
const r =
|
|
2949
|
+
var K, z, k;
|
|
2950
|
+
const r = at({
|
|
2975
2951
|
block: e.block,
|
|
2976
2952
|
localState: e.context.localState,
|
|
2977
2953
|
rootState: e.context.rootState,
|
|
2978
2954
|
rootSetState: e.context.rootSetState,
|
|
2979
2955
|
context: e.context.context,
|
|
2980
2956
|
shouldEvaluateBindings: !0
|
|
2981
|
-
}), o = r.responsiveStyles, s = e.context.content, a =
|
|
2982
|
-
((
|
|
2983
|
-
), f = o == null ? void 0 : o.large, g = o == null ? void 0 : o.medium,
|
|
2984
|
-
if (!
|
|
2957
|
+
}), o = r.responsiveStyles, s = e.context.content, a = go(
|
|
2958
|
+
((K = s == null ? void 0 : s.meta) == null ? void 0 : K.breakpoints) || {}
|
|
2959
|
+
), f = o == null ? void 0 : o.large, g = o == null ? void 0 : o.medium, O = o == null ? void 0 : o.small, C = r.id;
|
|
2960
|
+
if (!C)
|
|
2985
2961
|
return "";
|
|
2986
|
-
const w = f ?
|
|
2987
|
-
className:
|
|
2962
|
+
const w = f ? it({
|
|
2963
|
+
className: C,
|
|
2988
2964
|
styles: f
|
|
2989
|
-
}) : "", N = g ?
|
|
2990
|
-
className:
|
|
2965
|
+
}) : "", N = g ? it({
|
|
2966
|
+
className: C,
|
|
2991
2967
|
styles: g,
|
|
2992
|
-
mediaQuery:
|
|
2968
|
+
mediaQuery: _r(
|
|
2993
2969
|
"medium",
|
|
2994
2970
|
a
|
|
2995
2971
|
)
|
|
2996
|
-
}) : "",
|
|
2997
|
-
className:
|
|
2998
|
-
styles:
|
|
2999
|
-
mediaQuery:
|
|
2972
|
+
}) : "", R = O ? it({
|
|
2973
|
+
className: C,
|
|
2974
|
+
styles: O,
|
|
2975
|
+
mediaQuery: _r(
|
|
3000
2976
|
"small",
|
|
3001
2977
|
a
|
|
3002
2978
|
)
|
|
3003
|
-
}) : "";
|
|
3004
|
-
|
|
2979
|
+
}) : "", I = r.animations && r.animations.find((Q) => Q.trigger === "hover");
|
|
2980
|
+
let D = "";
|
|
2981
|
+
if (I) {
|
|
2982
|
+
const Q = ((k = (z = I.steps) == null ? void 0 : z[1]) == null ? void 0 : k.styles) || {};
|
|
2983
|
+
D = it({
|
|
2984
|
+
className: `${C}:hover`,
|
|
2985
|
+
styles: {
|
|
2986
|
+
...Q,
|
|
2987
|
+
transition: `all ${I.duration}s ${er(
|
|
2988
|
+
I.easing
|
|
2989
|
+
)}`,
|
|
2990
|
+
transitionDelay: I.delay ? `${I.delay}s` : "0s"
|
|
2991
|
+
}
|
|
2992
|
+
}) || "";
|
|
2993
|
+
}
|
|
2994
|
+
return [
|
|
2995
|
+
w,
|
|
2996
|
+
N,
|
|
2997
|
+
R,
|
|
2998
|
+
D
|
|
2999
|
+
].join(" ");
|
|
3005
3000
|
}
|
|
3006
|
-
return /* @__PURE__ */ T(
|
|
3001
|
+
return /* @__PURE__ */ T(Z, { children: n() && t() ? /* @__PURE__ */ T(Z, { children: /* @__PURE__ */ T(yo, { id: "builderio-block", styles: n() }) }) : null });
|
|
3007
3002
|
}
|
|
3008
|
-
function
|
|
3003
|
+
function mo(e) {
|
|
3009
3004
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
3010
3005
|
}
|
|
3011
|
-
const
|
|
3006
|
+
const wo = (e) => `on${mo(e)}`, So = (e, t) => (n) => qt({
|
|
3012
3007
|
code: e,
|
|
3013
3008
|
context: t.context,
|
|
3014
3009
|
localState: t.localState,
|
|
@@ -3025,9 +3020,9 @@ function on(e) {
|
|
|
3025
3020
|
if (!n.hasOwnProperty(o))
|
|
3026
3021
|
continue;
|
|
3027
3022
|
const s = n[o];
|
|
3028
|
-
let a =
|
|
3023
|
+
let a = wo(o);
|
|
3029
3024
|
if (e.stripPrefix)
|
|
3030
|
-
switch (
|
|
3025
|
+
switch (Xr) {
|
|
3031
3026
|
case "vue":
|
|
3032
3027
|
a = a.replace("v-on:", "");
|
|
3033
3028
|
break;
|
|
@@ -3035,45 +3030,45 @@ function on(e) {
|
|
|
3035
3030
|
a = a.replace("on:", "");
|
|
3036
3031
|
break;
|
|
3037
3032
|
}
|
|
3038
|
-
t[a] =
|
|
3033
|
+
t[a] = So(s, e);
|
|
3039
3034
|
}
|
|
3040
3035
|
return t;
|
|
3041
3036
|
}
|
|
3042
|
-
function
|
|
3037
|
+
function xo({
|
|
3043
3038
|
properties: e
|
|
3044
3039
|
}) {
|
|
3045
3040
|
return e;
|
|
3046
3041
|
}
|
|
3047
|
-
const
|
|
3042
|
+
const ko = (e) => ({
|
|
3048
3043
|
href: e.href
|
|
3049
3044
|
});
|
|
3050
|
-
function
|
|
3045
|
+
function tr({
|
|
3051
3046
|
block: e,
|
|
3052
3047
|
context: t
|
|
3053
3048
|
}) {
|
|
3054
3049
|
var r;
|
|
3055
3050
|
const n = {
|
|
3056
|
-
...
|
|
3051
|
+
...ko(e),
|
|
3057
3052
|
...e.properties,
|
|
3058
3053
|
"builder-id": e.id,
|
|
3059
|
-
style:
|
|
3054
|
+
style: co({
|
|
3060
3055
|
block: e,
|
|
3061
3056
|
context: t
|
|
3062
3057
|
}),
|
|
3063
3058
|
[An()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3064
3059
|
};
|
|
3065
|
-
return
|
|
3060
|
+
return xo({
|
|
3066
3061
|
properties: n,
|
|
3067
3062
|
context: t,
|
|
3068
3063
|
block: e
|
|
3069
3064
|
});
|
|
3070
3065
|
}
|
|
3071
|
-
function
|
|
3066
|
+
function Eo(e) {
|
|
3072
3067
|
return /* @__PURE__ */ T(
|
|
3073
3068
|
In,
|
|
3074
3069
|
{
|
|
3075
3070
|
TagName: e.Wrapper,
|
|
3076
|
-
attributes:
|
|
3071
|
+
attributes: tr({
|
|
3077
3072
|
block: e.block,
|
|
3078
3073
|
context: e.context
|
|
3079
3074
|
}),
|
|
@@ -3089,13 +3084,13 @@ function Co(e) {
|
|
|
3089
3084
|
}
|
|
3090
3085
|
);
|
|
3091
3086
|
}
|
|
3092
|
-
function
|
|
3087
|
+
function Co(e) {
|
|
3093
3088
|
return /* @__PURE__ */ T(
|
|
3094
3089
|
e.Wrapper,
|
|
3095
3090
|
{
|
|
3096
3091
|
...e.wrapperProps,
|
|
3097
3092
|
attributes: e.includeBlockProps ? {
|
|
3098
|
-
...
|
|
3093
|
+
...tr({
|
|
3099
3094
|
block: e.block,
|
|
3100
3095
|
context: e.context
|
|
3101
3096
|
}),
|
|
@@ -3111,7 +3106,7 @@ function jo(e) {
|
|
|
3111
3106
|
}
|
|
3112
3107
|
);
|
|
3113
3108
|
}
|
|
3114
|
-
const
|
|
3109
|
+
const jo = ({
|
|
3115
3110
|
componentOptions: e,
|
|
3116
3111
|
builderBlock: t,
|
|
3117
3112
|
context: n,
|
|
@@ -3127,7 +3122,7 @@ const Oo = ({
|
|
|
3127
3122
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
3128
3123
|
*/
|
|
3129
3124
|
...o ? {
|
|
3130
|
-
attributes:
|
|
3125
|
+
attributes: tr({
|
|
3131
3126
|
block: t,
|
|
3132
3127
|
context: a
|
|
3133
3128
|
})
|
|
@@ -3141,15 +3136,15 @@ const Oo = ({
|
|
|
3141
3136
|
includeBlockProps: o
|
|
3142
3137
|
} : f;
|
|
3143
3138
|
};
|
|
3144
|
-
function
|
|
3139
|
+
function Wr(e) {
|
|
3145
3140
|
var r;
|
|
3146
|
-
const [t, n] =
|
|
3147
|
-
() => e.isInteractive ?
|
|
3141
|
+
const [t, n] = $r(
|
|
3142
|
+
() => e.isInteractive ? Co : e.componentRef
|
|
3148
3143
|
);
|
|
3149
|
-
return /* @__PURE__ */ T(
|
|
3144
|
+
return /* @__PURE__ */ T(Z, { children: e.componentRef ? /* @__PURE__ */ T(Z, { children: /* @__PURE__ */ T(
|
|
3150
3145
|
t,
|
|
3151
3146
|
{
|
|
3152
|
-
...
|
|
3147
|
+
...jo({
|
|
3153
3148
|
componentOptions: e.componentOptions,
|
|
3154
3149
|
builderBlock: e.builderBlock,
|
|
3155
3150
|
context: e.context,
|
|
@@ -3160,7 +3155,7 @@ function Gr(e) {
|
|
|
3160
3155
|
contextValue: e.context
|
|
3161
3156
|
}),
|
|
3162
3157
|
children: (r = e.blockChildren) == null ? void 0 : r.map((o) => /* @__PURE__ */ T(
|
|
3163
|
-
|
|
3158
|
+
ct,
|
|
3164
3159
|
{
|
|
3165
3160
|
block: o,
|
|
3166
3161
|
context: e.context,
|
|
@@ -3172,10 +3167,10 @@ function Gr(e) {
|
|
|
3172
3167
|
}
|
|
3173
3168
|
) }) : null });
|
|
3174
3169
|
}
|
|
3175
|
-
function
|
|
3176
|
-
const [t, n] =
|
|
3177
|
-
return /* @__PURE__ */ T(
|
|
3178
|
-
|
|
3170
|
+
function Oo(e) {
|
|
3171
|
+
const [t, n] = $r(() => e.repeatContext);
|
|
3172
|
+
return /* @__PURE__ */ T(Gr.Provider, { value: t, children: /* @__PURE__ */ T(
|
|
3173
|
+
ct,
|
|
3179
3174
|
{
|
|
3180
3175
|
block: e.block,
|
|
3181
3176
|
context: t,
|
|
@@ -3184,24 +3179,24 @@ function Ao(e) {
|
|
|
3184
3179
|
}
|
|
3185
3180
|
) });
|
|
3186
3181
|
}
|
|
3187
|
-
function
|
|
3188
|
-
var g,
|
|
3182
|
+
function ct(e) {
|
|
3183
|
+
var g, O, C;
|
|
3189
3184
|
function t() {
|
|
3190
|
-
return
|
|
3185
|
+
return po({
|
|
3191
3186
|
block: e.block,
|
|
3192
3187
|
context: e.context,
|
|
3193
3188
|
registeredComponents: e.registeredComponents
|
|
3194
3189
|
});
|
|
3195
3190
|
}
|
|
3196
3191
|
function n() {
|
|
3197
|
-
return
|
|
3192
|
+
return ho({
|
|
3198
3193
|
block: e.block,
|
|
3199
3194
|
context: e.context
|
|
3200
3195
|
});
|
|
3201
3196
|
}
|
|
3202
3197
|
function r() {
|
|
3203
3198
|
var w;
|
|
3204
|
-
return (w = e.block.repeat) != null && w.collection ? e.block :
|
|
3199
|
+
return (w = e.block.repeat) != null && w.collection ? e.block : at({
|
|
3205
3200
|
block: e.block,
|
|
3206
3201
|
localState: e.context.localState,
|
|
3207
3202
|
rootState: e.context.rootState,
|
|
@@ -3215,28 +3210,28 @@ function ut(e) {
|
|
|
3215
3210
|
return e.block.tagName === "a" || ((N = r().properties) == null ? void 0 : N.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
3216
3211
|
}
|
|
3217
3212
|
function s() {
|
|
3218
|
-
var
|
|
3219
|
-
if ((
|
|
3213
|
+
var R, I;
|
|
3214
|
+
if ((R = e.block.repeat) != null && R.collection)
|
|
3220
3215
|
return !!((I = n == null ? void 0 : n()) != null && I.length);
|
|
3221
3216
|
const w = "hide" in r() ? r().hide : !1;
|
|
3222
3217
|
return ("show" in r() ? r().show : !0) && !w;
|
|
3223
3218
|
}
|
|
3224
3219
|
function a() {
|
|
3225
|
-
var N,
|
|
3226
|
-
return !((N = t == null ? void 0 : t()) != null && N.component) && !n() ? (
|
|
3220
|
+
var N, R;
|
|
3221
|
+
return !((N = t == null ? void 0 : t()) != null && N.component) && !n() ? (R = r().children) != null ? R : [] : [];
|
|
3227
3222
|
}
|
|
3228
3223
|
function f() {
|
|
3229
|
-
var w, N,
|
|
3224
|
+
var w, N, R, I, D, K, z, k, Q, Ie, be;
|
|
3230
3225
|
return {
|
|
3231
3226
|
blockChildren: (w = r().children) != null ? w : [],
|
|
3232
3227
|
componentRef: (N = t == null ? void 0 : t()) == null ? void 0 : N.component,
|
|
3233
3228
|
componentOptions: {
|
|
3234
|
-
...
|
|
3229
|
+
...Pn(r()),
|
|
3235
3230
|
builderContext: e.context,
|
|
3236
|
-
...((
|
|
3231
|
+
...((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Core:Button" || ((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Symbol" || ((D = t == null ? void 0 : t()) == null ? void 0 : D.name) === "Columns" || ((K = t == null ? void 0 : t()) == null ? void 0 : K.name) === "Form:Form" ? {
|
|
3237
3232
|
builderLinkComponent: e.linkComponent
|
|
3238
3233
|
} : {},
|
|
3239
|
-
...((
|
|
3234
|
+
...((z = t == null ? void 0 : t()) == null ? void 0 : z.name) === "Symbol" || ((k = t == null ? void 0 : t()) == null ? void 0 : k.name) === "Columns" || ((Q = t == null ? void 0 : t()) == null ? void 0 : Q.name) === "Form:Form" ? {
|
|
3240
3235
|
builderComponents: e.registeredComponents
|
|
3241
3236
|
} : {}
|
|
3242
3237
|
},
|
|
@@ -3244,22 +3239,22 @@ function ut(e) {
|
|
|
3244
3239
|
linkComponent: e.linkComponent,
|
|
3245
3240
|
registeredComponents: e.registeredComponents,
|
|
3246
3241
|
builderBlock: r(),
|
|
3247
|
-
includeBlockProps: ((
|
|
3248
|
-
isInteractive: !((
|
|
3242
|
+
includeBlockProps: ((Ie = t == null ? void 0 : t()) == null ? void 0 : Ie.noWrap) === !0,
|
|
3243
|
+
isInteractive: !((be = t == null ? void 0 : t()) != null && be.isRSC)
|
|
3249
3244
|
};
|
|
3250
3245
|
}
|
|
3251
3246
|
return jn(() => {
|
|
3252
3247
|
const w = r().id, N = r().animations;
|
|
3253
3248
|
N && w && no(
|
|
3254
|
-
N.
|
|
3255
|
-
...
|
|
3249
|
+
N.map((R) => ({
|
|
3250
|
+
...R,
|
|
3256
3251
|
elementId: w
|
|
3257
3252
|
}))
|
|
3258
3253
|
);
|
|
3259
|
-
}, []), /* @__PURE__ */ T(
|
|
3260
|
-
/* @__PURE__ */ T(
|
|
3261
|
-
(g = t == null ? void 0 : t()) != null && g.noWrap ? /* @__PURE__ */ T(
|
|
3262
|
-
|
|
3254
|
+
}, []), /* @__PURE__ */ T(Z, { children: s() ? /* @__PURE__ */ Dt(Z, { children: [
|
|
3255
|
+
/* @__PURE__ */ T(vo, { block: e.block, context: e.context }),
|
|
3256
|
+
(g = t == null ? void 0 : t()) != null && g.noWrap ? /* @__PURE__ */ T(Z, { children: /* @__PURE__ */ T(
|
|
3257
|
+
Wr,
|
|
3263
3258
|
{
|
|
3264
3259
|
componentRef: f().componentRef,
|
|
3265
3260
|
componentOptions: f().componentOptions,
|
|
@@ -3271,8 +3266,8 @@ function ut(e) {
|
|
|
3271
3266
|
includeBlockProps: f().includeBlockProps,
|
|
3272
3267
|
isInteractive: f().isInteractive
|
|
3273
3268
|
}
|
|
3274
|
-
) }) : /* @__PURE__ */ T(
|
|
3275
|
-
|
|
3269
|
+
) }) : /* @__PURE__ */ T(Z, { children: n() ? /* @__PURE__ */ T(Z, { children: (C = n()) == null ? void 0 : C.map((w, N) => /* @__PURE__ */ T(
|
|
3270
|
+
Oo,
|
|
3276
3271
|
{
|
|
3277
3272
|
repeatContext: w.context,
|
|
3278
3273
|
block: w.block,
|
|
@@ -3281,7 +3276,7 @@ function ut(e) {
|
|
|
3281
3276
|
},
|
|
3282
3277
|
N
|
|
3283
3278
|
)) }) : /* @__PURE__ */ Dt(
|
|
3284
|
-
|
|
3279
|
+
Eo,
|
|
3285
3280
|
{
|
|
3286
3281
|
Wrapper: o(),
|
|
3287
3282
|
block: r(),
|
|
@@ -3289,7 +3284,7 @@ function ut(e) {
|
|
|
3289
3284
|
linkComponent: e.linkComponent,
|
|
3290
3285
|
children: [
|
|
3291
3286
|
/* @__PURE__ */ T(
|
|
3292
|
-
|
|
3287
|
+
Wr,
|
|
3293
3288
|
{
|
|
3294
3289
|
componentRef: f().componentRef,
|
|
3295
3290
|
componentOptions: f().componentOptions,
|
|
@@ -3302,8 +3297,8 @@ function ut(e) {
|
|
|
3302
3297
|
isInteractive: f().isInteractive
|
|
3303
3298
|
}
|
|
3304
3299
|
),
|
|
3305
|
-
(
|
|
3306
|
-
|
|
3300
|
+
(O = a()) == null ? void 0 : O.map((w) => /* @__PURE__ */ T(
|
|
3301
|
+
ct,
|
|
3307
3302
|
{
|
|
3308
3303
|
block: w,
|
|
3309
3304
|
registeredComponents: e.registeredComponents,
|
|
@@ -3317,7 +3312,7 @@ function ut(e) {
|
|
|
3317
3312
|
) })
|
|
3318
3313
|
] }) : null });
|
|
3319
3314
|
}
|
|
3320
|
-
function
|
|
3315
|
+
function Ao(e) {
|
|
3321
3316
|
function t() {
|
|
3322
3317
|
var o;
|
|
3323
3318
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
@@ -3348,7 +3343,7 @@ function Io(e) {
|
|
|
3348
3343
|
"*"
|
|
3349
3344
|
));
|
|
3350
3345
|
}
|
|
3351
|
-
return /* @__PURE__ */ Dt(
|
|
3346
|
+
return /* @__PURE__ */ Dt(Z, { children: [
|
|
3352
3347
|
/* @__PURE__ */ T(
|
|
3353
3348
|
e.BlocksWrapper,
|
|
3354
3349
|
{
|
|
@@ -3370,11 +3365,11 @@ function Io(e) {
|
|
|
3370
3365
|
}` })
|
|
3371
3366
|
] });
|
|
3372
3367
|
}
|
|
3373
|
-
function
|
|
3368
|
+
function Io(e) {
|
|
3374
3369
|
var r, o, s;
|
|
3375
|
-
const t =
|
|
3370
|
+
const t = Rr(Gr), n = Rr(Nn);
|
|
3376
3371
|
return /* @__PURE__ */ T(
|
|
3377
|
-
|
|
3372
|
+
Ao,
|
|
3378
3373
|
{
|
|
3379
3374
|
blocks: e.blocks,
|
|
3380
3375
|
parent: e.parent,
|
|
@@ -3382,8 +3377,8 @@ function bo(e) {
|
|
|
3382
3377
|
styleProp: e.styleProp,
|
|
3383
3378
|
BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || t.BlocksWrapper,
|
|
3384
3379
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
3385
|
-
children: e.blocks ? /* @__PURE__ */ T(
|
|
3386
|
-
|
|
3380
|
+
children: e.blocks ? /* @__PURE__ */ T(Z, { children: (s = e.blocks) == null ? void 0 : s.map((a) => /* @__PURE__ */ T(
|
|
3381
|
+
ct,
|
|
3387
3382
|
{
|
|
3388
3383
|
block: a,
|
|
3389
3384
|
linkComponent: e.linkComponent,
|
|
@@ -3395,19 +3390,19 @@ function bo(e) {
|
|
|
3395
3390
|
}
|
|
3396
3391
|
);
|
|
3397
3392
|
}
|
|
3398
|
-
const
|
|
3393
|
+
const Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3399
3394
|
__proto__: null,
|
|
3400
|
-
default:
|
|
3395
|
+
default: Io
|
|
3401
3396
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3402
3397
|
export {
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3398
|
+
ct as Block,
|
|
3399
|
+
Io as Blocks,
|
|
3400
|
+
Nn as ComponentsContext,
|
|
3401
|
+
yo as InlinedStyles,
|
|
3402
|
+
Do as blocks,
|
|
3408
3403
|
qt as evaluate,
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3404
|
+
go as getSizesForBreakpoints,
|
|
3405
|
+
fo as mapStyleObjToStrIfNeeded,
|
|
3406
|
+
Hr as set,
|
|
3412
3407
|
io as triggerAnimation
|
|
3413
3408
|
};
|