@builder.io/sdk-react 0.8.1 → 0.9.0
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/index.cjs +28 -28
- package/lib/browser/index.mjs +415 -389
- package/lib/edge/index.cjs +20 -20
- package/lib/edge/index.mjs +963 -937
- package/lib/node/index.cjs +10 -10
- package/lib/node/index.mjs +195 -169
- package/package.json +1 -1
- package/types/components/blocks/blocks-wrapper.d.ts +8 -0
- package/types/components/blocks/blocks.d.ts +1 -1
- package/types/components/content/components/enable-editor.d.ts +1 -1
- package/types/components/content-variants/content-variants.types.d.ts +16 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/context/types.d.ts +2 -1
- package/types/functions/transform-block-properties.d.ts +5 -1
- package/types/types/enforced-partials.d.ts +7 -2
- package/types/functions/get-react-native-block-styles.d.ts +0 -7
- package/types/functions/sanitize-react-native-block-styles.d.ts +0 -3
package/lib/edge/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as Z, Fragment as P, jsx as p } from "react/jsx-runtime";
|
|
3
|
-
import { createContext as cr, useState as
|
|
4
|
-
import { i as Ee, j as Ie, k as
|
|
5
|
-
import { _ as
|
|
3
|
+
import { createContext as cr, useState as L, useContext as Hn, createElement as ur, useRef as qt, useEffect as ee } from "react";
|
|
4
|
+
import { i as Ee, j as Ie, k as $r, l as Fe, m as Zt, n as Kt, T as nt, r as Hr, o as ht, p as Kn, a as Kr, c as Gr, b as dr, q as zr, u as Gn, v as zn, w as Xr } from "./server-entry-0aebe4be.js";
|
|
5
|
+
import { _ as Fo, h as Uo, f as _o, g as Do, e as Wo, d as Vo, s as Lo, t as $o } from "./server-entry-0aebe4be.js";
|
|
6
6
|
function Yr(e) {
|
|
7
7
|
return /* @__PURE__ */ Z(P, { children: [
|
|
8
8
|
e.link ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
@@ -28,7 +28,7 @@ function Yr(e) {
|
|
|
28
28
|
}` })
|
|
29
29
|
] });
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const Qt = cr({
|
|
32
32
|
content: null,
|
|
33
33
|
context: {},
|
|
34
34
|
localState: void 0,
|
|
@@ -38,7 +38,9 @@ const Zt = cr({
|
|
|
38
38
|
apiKey: null,
|
|
39
39
|
apiVersion: void 0,
|
|
40
40
|
componentInfos: {},
|
|
41
|
-
inheritedStyles: {}
|
|
41
|
+
inheritedStyles: {},
|
|
42
|
+
BlocksWrapper: "div",
|
|
43
|
+
BlocksWrapperProps: {}
|
|
42
44
|
}), fr = cr({ registeredComponents: {} });
|
|
43
45
|
function Jr(e) {
|
|
44
46
|
var t;
|
|
@@ -67,7 +69,7 @@ const hr = ({
|
|
|
67
69
|
isEditing: Ee(),
|
|
68
70
|
isBrowser: Ie(),
|
|
69
71
|
isServer: !Ie(),
|
|
70
|
-
getUserAttributes: () =>
|
|
72
|
+
getUserAttributes: () => $r()
|
|
71
73
|
}), Zr = (e, {
|
|
72
74
|
isExpression: t = !0
|
|
73
75
|
}) => /* 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, Qr = ({
|
|
@@ -105,25 +107,25 @@ const pr = (e, t, r) => {
|
|
|
105
107
|
const n = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
106
108
|
return n.slice(0, -1).reduce((i, a, s) => Object(i[a]) === i[a] ? i[a] : i[a] = Math.abs(Number(n[s + 1])) >> 0 === +n[s + 1] ? [] : {}, e)[n[n.length - 1]] = r, e;
|
|
107
109
|
};
|
|
108
|
-
var
|
|
110
|
+
var F, ti = function(e) {
|
|
109
111
|
function t(o) {
|
|
110
|
-
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
112
|
+
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Vr.test(String.fromCharCode(o));
|
|
111
113
|
}
|
|
112
114
|
function r(o) {
|
|
113
|
-
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
115
|
+
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && $n.test(String.fromCharCode(o));
|
|
114
116
|
}
|
|
115
117
|
function n(o, l) {
|
|
116
|
-
for (var c = x, h = 1,
|
|
117
|
-
|
|
118
|
-
var Y =
|
|
118
|
+
for (var c = x, h = 1, A = 0; ; ) {
|
|
119
|
+
dt.lastIndex = A;
|
|
120
|
+
var Y = dt.exec(c);
|
|
119
121
|
if (Y && Y.index < o)
|
|
120
|
-
++h,
|
|
122
|
+
++h, A = Y.index + Y[0].length;
|
|
121
123
|
else
|
|
122
124
|
break;
|
|
123
125
|
}
|
|
124
126
|
throw c = {
|
|
125
127
|
line: h,
|
|
126
|
-
ab: o -
|
|
128
|
+
ab: o - A
|
|
127
129
|
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = o, l.X = c, l.o = d, l;
|
|
128
130
|
}
|
|
129
131
|
function i(o) {
|
|
@@ -135,42 +137,42 @@ var B, ti = function(e) {
|
|
|
135
137
|
};
|
|
136
138
|
}
|
|
137
139
|
function a() {
|
|
138
|
-
this.line = ke, this.ab = d -
|
|
140
|
+
this.line = ke, this.ab = d - fe;
|
|
139
141
|
}
|
|
140
142
|
function s(o, l) {
|
|
141
|
-
|
|
143
|
+
Re = d, R.C && (Tt = new a()), j = o, f(), le = l, Ve = o.m;
|
|
142
144
|
}
|
|
143
145
|
function u() {
|
|
144
|
-
for (var o = d, l =
|
|
146
|
+
for (var o = d, l = R.va && R.C && new a(), c = x.charCodeAt(d += 2); d < Ae && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
145
147
|
++d, c = x.charCodeAt(d);
|
|
146
|
-
|
|
148
|
+
R.va && R.va(!1, x.slice(o + 2, d), o, d, l, R.C && new a());
|
|
147
149
|
}
|
|
148
150
|
function f() {
|
|
149
|
-
for (; d <
|
|
151
|
+
for (; d < Ae; ) {
|
|
150
152
|
var o = x.charCodeAt(d);
|
|
151
153
|
if (o === 32)
|
|
152
154
|
++d;
|
|
153
155
|
else if (o === 13)
|
|
154
|
-
++d, o = x.charCodeAt(d), o === 10 && ++d,
|
|
156
|
+
++d, o = x.charCodeAt(d), o === 10 && ++d, R.C && (++ke, fe = d);
|
|
155
157
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
156
|
-
++d,
|
|
158
|
+
++d, R.C && (++ke, fe = d);
|
|
157
159
|
else if (8 < o && 14 > o)
|
|
158
160
|
++d;
|
|
159
161
|
else if (o === 47)
|
|
160
162
|
if (o = x.charCodeAt(d + 1), o === 42) {
|
|
161
163
|
o = void 0;
|
|
162
|
-
var l =
|
|
163
|
-
if (h === -1 && n(d - 2, "Unterminated comment"), d = h + 2,
|
|
164
|
-
for (
|
|
165
|
-
++ke,
|
|
166
|
-
|
|
164
|
+
var l = R.va && R.C && new a(), c = d, h = x.indexOf("*/", d += 2);
|
|
165
|
+
if (h === -1 && n(d - 2, "Unterminated comment"), d = h + 2, R.C)
|
|
166
|
+
for (dt.lastIndex = c; (o = dt.exec(x)) && o.index < d; )
|
|
167
|
+
++ke, fe = o.index + o[0].length;
|
|
168
|
+
R.va && R.va(!0, x.slice(c + 2, h), c, d, l, R.C && new a());
|
|
167
169
|
} else if (o === 47)
|
|
168
170
|
u();
|
|
169
171
|
else
|
|
170
172
|
break;
|
|
171
173
|
else if (o === 160)
|
|
172
174
|
++d;
|
|
173
|
-
else if (5760 <= o &&
|
|
175
|
+
else if (5760 <= o && Wr.test(String.fromCharCode(o)))
|
|
174
176
|
++d;
|
|
175
177
|
else
|
|
176
178
|
break;
|
|
@@ -179,31 +181,31 @@ var B, ti = function(e) {
|
|
|
179
181
|
function g(o) {
|
|
180
182
|
switch (o) {
|
|
181
183
|
case 46:
|
|
182
|
-
o = x.charCodeAt(d + 1), 48 <= o && 57 >= o ? E(!0) : (++d, s(
|
|
184
|
+
o = x.charCodeAt(d + 1), 48 <= o && 57 >= o ? E(!0) : (++d, s(Bn));
|
|
183
185
|
return;
|
|
184
186
|
case 40:
|
|
185
|
-
return ++d, s(
|
|
187
|
+
return ++d, s(he);
|
|
186
188
|
case 41:
|
|
187
|
-
return ++d, s(
|
|
189
|
+
return ++d, s(ue);
|
|
188
190
|
case 59:
|
|
189
|
-
return ++d, s(
|
|
191
|
+
return ++d, s(pe);
|
|
190
192
|
case 44:
|
|
191
|
-
return ++d, s(
|
|
193
|
+
return ++d, s(xe);
|
|
192
194
|
case 91:
|
|
193
195
|
return ++d, s(Ut);
|
|
194
196
|
case 93:
|
|
195
|
-
return ++d, s(
|
|
197
|
+
return ++d, s(_t);
|
|
196
198
|
case 123:
|
|
197
|
-
return ++d, s(
|
|
199
|
+
return ++d, s(He);
|
|
198
200
|
case 125:
|
|
199
|
-
return ++d, s(
|
|
201
|
+
return ++d, s(Pe);
|
|
200
202
|
case 58:
|
|
201
|
-
return ++d, s(
|
|
203
|
+
return ++d, s(Ke);
|
|
202
204
|
case 63:
|
|
203
|
-
return ++d, s(
|
|
205
|
+
return ++d, s(Fn);
|
|
204
206
|
case 48:
|
|
205
207
|
if (o = x.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
206
|
-
d += 2, o =
|
|
208
|
+
d += 2, o = $(16), o === null && n(X + 2, "Expected hexadecimal number"), r(x.charCodeAt(d)) && n(d, "Identifier directly after number"), s($e, o);
|
|
207
209
|
return;
|
|
208
210
|
}
|
|
209
211
|
case 49:
|
|
@@ -220,10 +222,10 @@ var B, ti = function(e) {
|
|
|
220
222
|
case 39:
|
|
221
223
|
d++;
|
|
222
224
|
for (var l = ""; ; ) {
|
|
223
|
-
d >=
|
|
225
|
+
d >= Ae && n(X, "Unterminated string constant");
|
|
224
226
|
var c = x.charCodeAt(d);
|
|
225
227
|
if (c === o) {
|
|
226
|
-
++d, s(
|
|
228
|
+
++d, s(st, l);
|
|
227
229
|
break;
|
|
228
230
|
}
|
|
229
231
|
if (c === 92) {
|
|
@@ -269,7 +271,7 @@ var B, ti = function(e) {
|
|
|
269
271
|
case 13:
|
|
270
272
|
x.charCodeAt(d) === 10 && ++d;
|
|
271
273
|
case 10:
|
|
272
|
-
|
|
274
|
+
R.C && (fe = d, ++ke);
|
|
273
275
|
break;
|
|
274
276
|
default:
|
|
275
277
|
l += String.fromCharCode(c);
|
|
@@ -279,58 +281,58 @@ var B, ti = function(e) {
|
|
|
279
281
|
}
|
|
280
282
|
return;
|
|
281
283
|
case 47:
|
|
282
|
-
o = x.charCodeAt(d + 1), Ve ? (++d,
|
|
284
|
+
o = x.charCodeAt(d + 1), Ve ? (++d, U()) : o === 61 ? S(Ce, 2) : S(Un, 1);
|
|
283
285
|
return;
|
|
284
286
|
case 37:
|
|
285
287
|
case 42:
|
|
286
|
-
x.charCodeAt(d + 1) === 61 ?
|
|
288
|
+
x.charCodeAt(d + 1) === 61 ? S(Ce, 2) : S(Ur, 1);
|
|
287
289
|
return;
|
|
288
290
|
case 124:
|
|
289
291
|
case 38:
|
|
290
|
-
l = x.charCodeAt(d + 1), l === o ?
|
|
292
|
+
l = x.charCodeAt(d + 1), l === o ? S(o === 124 ? Wn : Vn, 2) : l === 61 ? S(Ce, 2) : S(o === 124 ? Rr : Pr, 1);
|
|
291
293
|
return;
|
|
292
294
|
case 94:
|
|
293
|
-
x.charCodeAt(d + 1) === 61 ?
|
|
295
|
+
x.charCodeAt(d + 1) === 61 ? S(Ce, 2) : S(Or, 1);
|
|
294
296
|
return;
|
|
295
297
|
case 43:
|
|
296
298
|
case 45:
|
|
297
|
-
l = x.charCodeAt(d + 1), l === o ? l === 45 && x.charCodeAt(d + 2) === 62 &&
|
|
299
|
+
l = x.charCodeAt(d + 1), l === o ? l === 45 && x.charCodeAt(d + 2) === 62 && ut.test(x.slice(be, d)) ? (d += 3, u(), f(), v()) : S(Ar, 2) : l === 61 ? S(Ce, 2) : S(Fr, 1);
|
|
298
300
|
return;
|
|
299
301
|
case 60:
|
|
300
302
|
case 62:
|
|
301
|
-
l = x.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && x.charCodeAt(d + 2) === 62 ? 3 : 2, x.charCodeAt(d + c) === 61 ?
|
|
303
|
+
l = x.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && x.charCodeAt(d + 2) === 62 ? 3 : 2, x.charCodeAt(d + c) === 61 ? S(Ce, c + 1) : S(Br, c)) : l === 33 && o === 60 && x.charCodeAt(d + 2) === 45 && x.charCodeAt(d + 3) === 45 ? (d += 4, u(), f(), v()) : (l === 61 && (c = x.charCodeAt(d + 2) === 61 ? 3 : 2), S(Mr, c));
|
|
302
304
|
return;
|
|
303
305
|
case 61:
|
|
304
306
|
case 33:
|
|
305
|
-
x.charCodeAt(d + 1) === 61 ?
|
|
307
|
+
x.charCodeAt(d + 1) === 61 ? S(Nr, x.charCodeAt(d + 2) === 61 ? 3 : 2) : S(o === 61 ? _n : Dn, 1);
|
|
306
308
|
return;
|
|
307
309
|
case 126:
|
|
308
|
-
return
|
|
310
|
+
return S(Dn, 1);
|
|
309
311
|
}
|
|
310
312
|
return !1;
|
|
311
313
|
}
|
|
312
314
|
function v(o) {
|
|
313
|
-
if (o ? d = X + 1 : X = d,
|
|
314
|
-
return
|
|
315
|
-
if (d >=
|
|
316
|
-
return s(
|
|
315
|
+
if (o ? d = X + 1 : X = d, R.C && (It = new a()), o)
|
|
316
|
+
return U();
|
|
317
|
+
if (d >= Ae)
|
|
318
|
+
return s(Rt);
|
|
317
319
|
if (o = x.charCodeAt(d), r(o) || o === 92)
|
|
318
|
-
return
|
|
320
|
+
return G();
|
|
319
321
|
if (g(o) === !1) {
|
|
320
|
-
if (o = String.fromCharCode(o), o === "\\" ||
|
|
321
|
-
return
|
|
322
|
+
if (o = String.fromCharCode(o), o === "\\" || $n.test(o))
|
|
323
|
+
return G();
|
|
322
324
|
n(d, "Unexpected character '" + o + "'");
|
|
323
325
|
}
|
|
324
326
|
}
|
|
325
|
-
function
|
|
327
|
+
function S(o, l) {
|
|
326
328
|
var c = x.slice(d, d + l);
|
|
327
329
|
d += l, s(o, c);
|
|
328
330
|
}
|
|
329
|
-
function
|
|
331
|
+
function U() {
|
|
330
332
|
for (var o, l, c = d; ; ) {
|
|
331
|
-
d >=
|
|
333
|
+
d >= Ae && n(c, "Unterminated regexp");
|
|
332
334
|
var h = x.charAt(d);
|
|
333
|
-
if (
|
|
335
|
+
if (ut.test(h) && n(c, "Unterminated regexp"), o)
|
|
334
336
|
o = !1;
|
|
335
337
|
else {
|
|
336
338
|
if (h === "[")
|
|
@@ -343,16 +345,16 @@ var B, ti = function(e) {
|
|
|
343
345
|
}
|
|
344
346
|
++d;
|
|
345
347
|
}
|
|
346
|
-
o = x.slice(c, d), ++d, (l =
|
|
348
|
+
o = x.slice(c, d), ++d, (l = W()) && !/^[gmi]*$/.test(l) && n(c, "Invalid regexp flag");
|
|
347
349
|
try {
|
|
348
|
-
var
|
|
350
|
+
var A = new RegExp(o, l);
|
|
349
351
|
} catch (Y) {
|
|
350
352
|
throw Y instanceof SyntaxError && n(c, Y.message), Y;
|
|
351
353
|
}
|
|
352
|
-
s(gn,
|
|
354
|
+
s(gn, A);
|
|
353
355
|
}
|
|
354
|
-
function
|
|
355
|
-
for (var c = d, h = 0,
|
|
356
|
+
function $(o, l) {
|
|
357
|
+
for (var c = d, h = 0, A = l === void 0 ? 1 / 0 : l, Y = 0; Y < A; ++Y) {
|
|
356
358
|
var ne = x.charCodeAt(d);
|
|
357
359
|
if (ne = 97 <= ne ? ne - 97 + 10 : 65 <= ne ? ne - 65 + 10 : 48 <= ne && 57 >= ne ? ne - 48 : 1 / 0, ne >= o)
|
|
358
360
|
break;
|
|
@@ -362,302 +364,302 @@ var B, ti = function(e) {
|
|
|
362
364
|
}
|
|
363
365
|
function E(o) {
|
|
364
366
|
var l = d, c = !1, h = x.charCodeAt(d) === 48;
|
|
365
|
-
o ||
|
|
366
|
-
var
|
|
367
|
-
c ?
|
|
367
|
+
o || $(10) !== null || n(l, "Invalid number"), x.charCodeAt(d) === 46 && (++d, $(10), c = !0), o = x.charCodeAt(d), (o === 69 || o === 101) && (o = x.charCodeAt(++d), o !== 43 && o !== 45 || ++d, $(10) === null && n(l, "Invalid number"), c = !0), r(x.charCodeAt(d)) && n(d, "Identifier directly after number"), o = x.slice(l, d);
|
|
368
|
+
var A;
|
|
369
|
+
c ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || oe ? n(l, "Invalid number") : A = parseInt(o, 8) : A = parseInt(o, 10), s($e, A);
|
|
368
370
|
}
|
|
369
371
|
function N(o) {
|
|
370
|
-
return o =
|
|
372
|
+
return o = $(16, o), o === null && n(X, "Bad character escape sequence"), o;
|
|
371
373
|
}
|
|
372
|
-
function
|
|
373
|
-
|
|
374
|
+
function W() {
|
|
375
|
+
Ne = !1;
|
|
374
376
|
for (var o, l = !0, c = d; ; ) {
|
|
375
377
|
var h = x.charCodeAt(d);
|
|
376
378
|
if (t(h))
|
|
377
|
-
|
|
379
|
+
Ne && (o += x.charAt(d)), ++d;
|
|
378
380
|
else if (h === 92) {
|
|
379
|
-
|
|
380
|
-
var
|
|
381
|
-
|
|
381
|
+
Ne || (o = x.slice(c, d)), Ne = !0, x.charCodeAt(++d) !== 117 && n(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = N(4);
|
|
382
|
+
var A = String.fromCharCode(h);
|
|
383
|
+
A || n(d - 1, "Invalid Unicode escape"), (l ? r(h) : t(h)) || n(d - 4, "Invalid Unicode escape"), o += A;
|
|
382
384
|
} else
|
|
383
385
|
break;
|
|
384
386
|
l = !1;
|
|
385
387
|
}
|
|
386
|
-
return
|
|
388
|
+
return Ne ? o : x.slice(c, d);
|
|
387
389
|
}
|
|
388
|
-
function
|
|
389
|
-
var o =
|
|
390
|
-
!
|
|
390
|
+
function G() {
|
|
391
|
+
var o = W(), l = Oe;
|
|
392
|
+
!Ne && Dr(o) && (l = jr[o]), s(l, o);
|
|
391
393
|
}
|
|
392
|
-
function
|
|
393
|
-
|
|
394
|
+
function b() {
|
|
395
|
+
jt = X, be = Re, At = Tt, v();
|
|
394
396
|
}
|
|
395
|
-
function
|
|
396
|
-
if (oe = o, d = X,
|
|
397
|
-
for (; d <
|
|
398
|
-
|
|
399
|
-
`,
|
|
397
|
+
function V(o) {
|
|
398
|
+
if (oe = o, d = X, R.C)
|
|
399
|
+
for (; d < fe; )
|
|
400
|
+
fe = x.lastIndexOf(`
|
|
401
|
+
`, fe - 2) + 1, --ke;
|
|
400
402
|
f(), v();
|
|
401
403
|
}
|
|
402
404
|
function ae() {
|
|
403
405
|
this.type = null, this.start = X, this.end = null;
|
|
404
406
|
}
|
|
405
407
|
function se() {
|
|
406
|
-
this.start =
|
|
408
|
+
this.start = It, this.end = null, Et && (this.source = Et);
|
|
407
409
|
}
|
|
408
|
-
function
|
|
410
|
+
function H() {
|
|
409
411
|
var o = new ae();
|
|
410
|
-
return
|
|
412
|
+
return R.C && (o.X = new se()), R.vb && (o.sourceFile = R.vb), R.Xa && (o.j = [X, 0]), o;
|
|
411
413
|
}
|
|
412
414
|
function te(o) {
|
|
413
415
|
var l = new ae();
|
|
414
|
-
return l.start = o.start,
|
|
416
|
+
return l.start = o.start, R.C && (l.X = new se(), l.X.start = o.X.start), R.Xa && (l.j = [o.j[0], 0]), l;
|
|
415
417
|
}
|
|
416
|
-
function
|
|
417
|
-
return o.type = l, o.end =
|
|
418
|
+
function T(o, l) {
|
|
419
|
+
return o.type = l, o.end = be, R.C && (o.X.end = At), R.Xa && (o.j[1] = be), o;
|
|
418
420
|
}
|
|
419
421
|
function Te(o) {
|
|
420
422
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
421
423
|
}
|
|
422
424
|
function D(o) {
|
|
423
|
-
return
|
|
425
|
+
return j === o ? (b(), !0) : !1;
|
|
424
426
|
}
|
|
425
|
-
function
|
|
426
|
-
return !
|
|
427
|
+
function we() {
|
|
428
|
+
return !R.fc && (j === Rt || j === Pe || ut.test(x.slice(be, X)));
|
|
427
429
|
}
|
|
428
|
-
function
|
|
429
|
-
D(
|
|
430
|
+
function ce() {
|
|
431
|
+
D(pe) || we() || I();
|
|
430
432
|
}
|
|
431
|
-
function
|
|
432
|
-
|
|
433
|
+
function y(o) {
|
|
434
|
+
j === o ? b() : I();
|
|
433
435
|
}
|
|
434
|
-
function
|
|
436
|
+
function I() {
|
|
435
437
|
n(X, "Unexpected token");
|
|
436
438
|
}
|
|
437
|
-
function
|
|
438
|
-
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"), oe && o.type === "Identifier" &&
|
|
439
|
+
function B(o) {
|
|
440
|
+
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"), oe && o.type === "Identifier" && ct(o.name) && n(o.start, "Assigning to " + o.name + " in strict mode");
|
|
439
441
|
}
|
|
440
|
-
function
|
|
441
|
-
(
|
|
442
|
-
var o =
|
|
442
|
+
function O() {
|
|
443
|
+
(j === Un || j === Ce && le === "/=") && v(!0);
|
|
444
|
+
var o = j, l = H();
|
|
443
445
|
switch (o) {
|
|
444
|
-
case
|
|
446
|
+
case Ot:
|
|
445
447
|
case yn:
|
|
446
|
-
|
|
447
|
-
var c = o ===
|
|
448
|
-
D(
|
|
448
|
+
b();
|
|
449
|
+
var c = o === Ot;
|
|
450
|
+
D(pe) || we() ? l.label = null : j !== Oe ? I() : (l.label = de(), ce());
|
|
449
451
|
for (var h = 0; h < z.length; ++h) {
|
|
450
|
-
var
|
|
451
|
-
if ((l.label === null ||
|
|
452
|
+
var A = z[h];
|
|
453
|
+
if ((l.label === null || A.name === l.label.name) && (A.kind !== null && (c || A.kind === "loop") || l.label && c))
|
|
452
454
|
break;
|
|
453
455
|
}
|
|
454
|
-
return h === z.length && n(l.start, "Unsyntactic " + o.l),
|
|
455
|
-
case
|
|
456
|
-
return
|
|
456
|
+
return h === z.length && n(l.start, "Unsyntactic " + o.l), T(l, c ? "BreakStatement" : "ContinueStatement");
|
|
457
|
+
case bn:
|
|
458
|
+
return b(), ce(), T(l, "DebuggerStatement");
|
|
457
459
|
case Sn:
|
|
458
|
-
return
|
|
460
|
+
return b(), z.push(Dt), l.body = O(), z.pop(), y(Ft), l.test = _(), ce(), T(l, "DoWhileStatement");
|
|
459
461
|
case Cn:
|
|
460
|
-
return
|
|
461
|
-
case
|
|
462
|
-
return
|
|
462
|
+
return b(), z.push(Dt), y(he), j === pe ? je(l, null) : j === Bt ? (o = H(), b(), pn(o, !0), T(o, "VariableDeclaration"), o.fa.length === 1 && D(lt) ? ot(l, o) : je(l, o)) : (o = Q(!1, !0), D(lt) ? (B(o), ot(l, o)) : je(l, o));
|
|
463
|
+
case Nt:
|
|
464
|
+
return b(), kt(l, !0);
|
|
463
465
|
case En:
|
|
464
|
-
return
|
|
466
|
+
return b(), l.test = _(), l.da = O(), l.alternate = D(wn) ? O() : null, T(l, "IfStatement");
|
|
465
467
|
case In:
|
|
466
|
-
return Le ||
|
|
467
|
-
case
|
|
468
|
-
for (
|
|
469
|
-
|
|
470
|
-
return h &&
|
|
468
|
+
return Le || R.Ib || n(X, "'return' outside of function"), b(), D(pe) || we() ? l.K = null : (l.K = Q(), ce()), T(l, "ReturnStatement");
|
|
469
|
+
case Mt:
|
|
470
|
+
for (b(), l.Qb = _(), l.tb = [], y(He), z.push(Lr); j !== Pe; )
|
|
471
|
+
j === Pt || j === xn ? (o = j === Pt, h && T(h, "SwitchCase"), l.tb.push(h = H()), h.da = [], b(), o ? h.test = Q() : (c && n(jt, "Multiple default clauses"), c = !0, h.test = null), y(Ke)) : (h || I(), h.da.push(O()));
|
|
472
|
+
return h && T(h, "SwitchCase"), b(), z.pop(), T(l, "SwitchStatement");
|
|
471
473
|
case Tn:
|
|
472
|
-
return
|
|
474
|
+
return b(), ut.test(x.slice(be, X)) && n(be, "Illegal newline after throw"), l.K = Q(), ce(), T(l, "ThrowStatement");
|
|
473
475
|
case jn:
|
|
474
|
-
return
|
|
475
|
-
case
|
|
476
|
-
return
|
|
476
|
+
return b(), l.block = K(), l.Ea = null, j === vn && (o = H(), b(), y(he), o.Ua = de(), oe && ct(o.Ua.name) && n(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), y(ue), o.body = K(), l.Ea = T(o, "CatchClause")), l.fb = D(kn) ? K() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), T(l, "TryStatement");
|
|
477
|
+
case Bt:
|
|
478
|
+
return b(), pn(l), ce(), T(l, "VariableDeclaration");
|
|
477
479
|
case Ft:
|
|
478
|
-
return
|
|
480
|
+
return b(), l.test = _(), z.push(Dt), l.body = O(), z.pop(), T(l, "WhileStatement");
|
|
479
481
|
case An:
|
|
480
|
-
return oe && n(X, "'with' in strict mode"),
|
|
481
|
-
case
|
|
482
|
-
return
|
|
483
|
-
case
|
|
484
|
-
return
|
|
482
|
+
return oe && n(X, "'with' in strict mode"), b(), l.object = _(), l.body = O(), T(l, "WithStatement");
|
|
483
|
+
case He:
|
|
484
|
+
return K();
|
|
485
|
+
case pe:
|
|
486
|
+
return b(), T(l, "EmptyStatement");
|
|
485
487
|
default:
|
|
486
|
-
if (c = le,
|
|
488
|
+
if (c = le, A = Q(), o === Oe && A.type === "Identifier" && D(Ke)) {
|
|
487
489
|
for (h = 0; h < z.length; ++h)
|
|
488
|
-
z[h].name === c && n(
|
|
490
|
+
z[h].name === c && n(A.start, "Label '" + c + "' is already declared");
|
|
489
491
|
return z.push({
|
|
490
492
|
name: c,
|
|
491
|
-
kind:
|
|
492
|
-
}), l.body =
|
|
493
|
+
kind: j.W ? "loop" : j === Mt ? "switch" : null
|
|
494
|
+
}), l.body = O(), z.pop(), l.label = A, T(l, "LabeledStatement");
|
|
493
495
|
}
|
|
494
|
-
return l.la =
|
|
496
|
+
return l.la = A, ce(), T(l, "ExpressionStatement");
|
|
495
497
|
}
|
|
496
498
|
}
|
|
497
|
-
function
|
|
498
|
-
|
|
499
|
+
function _() {
|
|
500
|
+
y(he);
|
|
499
501
|
var o = Q();
|
|
500
|
-
return
|
|
502
|
+
return y(ue), o;
|
|
501
503
|
}
|
|
502
|
-
function
|
|
503
|
-
var l =
|
|
504
|
-
for (l.body = [],
|
|
505
|
-
var
|
|
506
|
-
if (l.body.push(
|
|
504
|
+
function K(o) {
|
|
505
|
+
var l = H(), c = !0, h = !1;
|
|
506
|
+
for (l.body = [], y(He); !D(Pe); ) {
|
|
507
|
+
var A = O();
|
|
508
|
+
if (l.body.push(A), c && o && Te(A)) {
|
|
507
509
|
var Y = h;
|
|
508
|
-
|
|
510
|
+
V(h = !0);
|
|
509
511
|
}
|
|
510
512
|
c = !1;
|
|
511
513
|
}
|
|
512
|
-
return h && !Y &&
|
|
514
|
+
return h && !Y && V(!1), T(l, "BlockStatement");
|
|
513
515
|
}
|
|
514
|
-
function
|
|
515
|
-
return o.ua = l,
|
|
516
|
+
function je(o, l) {
|
|
517
|
+
return o.ua = l, y(pe), o.test = j === pe ? null : Q(), y(pe), o.update = j === ue ? null : Q(), y(ue), o.body = O(), z.pop(), T(o, "ForStatement");
|
|
516
518
|
}
|
|
517
|
-
function
|
|
518
|
-
return o.left = l, o.right = Q(),
|
|
519
|
+
function ot(o, l) {
|
|
520
|
+
return o.left = l, o.right = Q(), y(ue), o.body = O(), z.pop(), T(o, "ForInStatement");
|
|
519
521
|
}
|
|
520
522
|
function pn(o, l) {
|
|
521
523
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
522
|
-
var c =
|
|
523
|
-
if (c.id =
|
|
524
|
+
var c = H();
|
|
525
|
+
if (c.id = de(), oe && ct(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = D(_n) ? Q(!0, l) : null, o.fa.push(T(c, "VariableDeclarator")), !D(xe))
|
|
524
526
|
break;
|
|
525
527
|
}
|
|
526
528
|
}
|
|
527
529
|
function Q(o, l) {
|
|
528
530
|
var c = xt(l);
|
|
529
|
-
if (!o &&
|
|
530
|
-
for (o = te(c), o.xb = [c]; D(
|
|
531
|
+
if (!o && j === xe) {
|
|
532
|
+
for (o = te(c), o.xb = [c]; D(xe); )
|
|
531
533
|
o.xb.push(xt(l));
|
|
532
|
-
return
|
|
534
|
+
return T(o, "SequenceExpression");
|
|
533
535
|
}
|
|
534
536
|
return c;
|
|
535
537
|
}
|
|
536
538
|
function xt(o) {
|
|
537
|
-
var l =
|
|
538
|
-
if (D(
|
|
539
|
+
var l = St(wt(), -1, o);
|
|
540
|
+
if (D(Fn)) {
|
|
539
541
|
var c = te(l);
|
|
540
|
-
c.test = l, c.da = Q(!0),
|
|
542
|
+
c.test = l, c.da = Q(!0), y(Ke), c.alternate = Q(!0, o), l = T(c, "ConditionalExpression");
|
|
541
543
|
}
|
|
542
|
-
return
|
|
544
|
+
return j.Cb ? (c = te(l), c.operator = le, c.left = l, b(), c.right = xt(o), B(l), T(c, "AssignmentExpression")) : l;
|
|
543
545
|
}
|
|
544
|
-
function
|
|
545
|
-
var h =
|
|
546
|
-
if (h !== null && (!c ||
|
|
547
|
-
var
|
|
548
|
-
return
|
|
546
|
+
function St(o, l, c) {
|
|
547
|
+
var h = j.L;
|
|
548
|
+
if (h !== null && (!c || j !== lt) && h > l) {
|
|
549
|
+
var A = te(o);
|
|
550
|
+
return A.left = o, A.operator = le, o = j, b(), A.right = St(wt(), h, c), h = T(A, o === Wn || o === Vn ? "LogicalExpression" : "BinaryExpression"), St(h, l, c);
|
|
549
551
|
}
|
|
550
552
|
return o;
|
|
551
553
|
}
|
|
552
|
-
function
|
|
553
|
-
if (
|
|
554
|
-
var o =
|
|
555
|
-
return o.operator = le, Ve = o.prefix = !0,
|
|
554
|
+
function wt() {
|
|
555
|
+
if (j.prefix) {
|
|
556
|
+
var o = H(), l = j.$b;
|
|
557
|
+
return o.operator = le, Ve = o.prefix = !0, b(), o.K = wt(), l ? B(o.K) : oe && o.operator === "delete" && o.K.type === "Identifier" && n(o.start, "Deleting local variable in strict mode"), T(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
556
558
|
}
|
|
557
|
-
for (l =
|
|
558
|
-
o = te(l), o.operator = le, o.prefix = !1, o.K = l,
|
|
559
|
+
for (l = We(at()); j.cc && !we(); )
|
|
560
|
+
o = te(l), o.operator = le, o.prefix = !1, o.K = l, B(l), b(), l = T(o, "UpdateExpression");
|
|
559
561
|
return l;
|
|
560
562
|
}
|
|
561
|
-
function
|
|
562
|
-
if (D(
|
|
563
|
+
function We(o, l) {
|
|
564
|
+
if (D(Bn)) {
|
|
563
565
|
var c = te(o);
|
|
564
|
-
return c.object = o, c.Wa =
|
|
566
|
+
return c.object = o, c.Wa = de(!0), c.bb = !1, We(T(c, "MemberExpression"), l);
|
|
565
567
|
}
|
|
566
|
-
return D(Ut) ? (c = te(o), c.object = o, c.Wa = Q(), c.bb = !0,
|
|
568
|
+
return D(Ut) ? (c = te(o), c.object = o, c.Wa = Q(), c.bb = !0, y(_t), We(T(c, "MemberExpression"), l)) : !l && D(he) ? (c = te(o), c.callee = o, c.arguments = Ct(ue, !1), We(T(c, "CallExpression"), l)) : o;
|
|
567
569
|
}
|
|
568
|
-
function
|
|
569
|
-
switch (
|
|
570
|
+
function at() {
|
|
571
|
+
switch (j) {
|
|
570
572
|
case On:
|
|
571
|
-
var o =
|
|
572
|
-
return
|
|
573
|
-
case
|
|
574
|
-
return
|
|
573
|
+
var o = H();
|
|
574
|
+
return b(), T(o, "ThisExpression");
|
|
575
|
+
case Oe:
|
|
576
|
+
return de();
|
|
575
577
|
case $e:
|
|
576
|
-
case
|
|
578
|
+
case st:
|
|
577
579
|
case gn:
|
|
578
|
-
return o =
|
|
580
|
+
return o = H(), o.value = le, o.raw = x.slice(X, Re), b(), T(o, "Literal");
|
|
579
581
|
case Pn:
|
|
580
582
|
case Nn:
|
|
581
583
|
case Mn:
|
|
582
|
-
return o =
|
|
583
|
-
case
|
|
584
|
-
o =
|
|
584
|
+
return o = H(), o.value = j.$a, o.raw = j.l, b(), T(o, "Literal");
|
|
585
|
+
case he:
|
|
586
|
+
o = It;
|
|
585
587
|
var l = X;
|
|
586
|
-
|
|
588
|
+
b();
|
|
587
589
|
var c = Q();
|
|
588
|
-
return c.start = l, c.end =
|
|
590
|
+
return c.start = l, c.end = Re, R.C && (c.X.start = o, c.X.end = Tt), R.Xa && (c.j = [l, Re]), y(ue), c;
|
|
589
591
|
case Ut:
|
|
590
|
-
return o =
|
|
591
|
-
case
|
|
592
|
-
for (o =
|
|
592
|
+
return o = H(), b(), o.elements = Ct(_t, !0, !0), T(o, "ArrayExpression");
|
|
593
|
+
case He:
|
|
594
|
+
for (o = H(), l = !0, c = !1, o.h = [], b(); !D(Pe); ) {
|
|
593
595
|
if (l)
|
|
594
596
|
l = !1;
|
|
595
|
-
else if (
|
|
597
|
+
else if (y(xe), R.sb && D(Pe))
|
|
596
598
|
break;
|
|
597
599
|
var h = {
|
|
598
|
-
key:
|
|
599
|
-
},
|
|
600
|
-
if (D(
|
|
600
|
+
key: j === $e || j === st ? at() : de(!0)
|
|
601
|
+
}, A = !1;
|
|
602
|
+
if (D(Ke)) {
|
|
601
603
|
h.value = Q(!0);
|
|
602
604
|
var Y = h.kind = "init";
|
|
603
605
|
} else
|
|
604
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ?
|
|
606
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? I() : (A = c = !0, Y = h.kind = h.key.name, h.key = j === $e || j === st ? at() : de(!0), j !== he && I(), h.value = kt(H(), !1));
|
|
605
607
|
if (h.key.type === "Identifier" && (oe || c))
|
|
606
608
|
for (var ne = 0; ne < o.h.length; ++ne) {
|
|
607
|
-
var
|
|
608
|
-
if (
|
|
609
|
-
var
|
|
610
|
-
|
|
609
|
+
var Me = o.h[ne];
|
|
610
|
+
if (Me.key.name === h.key.name) {
|
|
611
|
+
var Wt = Y === Me.kind || A && Me.kind === "init" || Y === "init" && (Me.kind === "get" || Me.kind === "set");
|
|
612
|
+
Wt && !oe && Y === "init" && Me.kind === "init" && (Wt = !1), Wt && n(h.key.start, "Redefinition of property");
|
|
611
613
|
}
|
|
612
614
|
}
|
|
613
615
|
o.h.push(h);
|
|
614
616
|
}
|
|
615
|
-
return
|
|
616
|
-
case
|
|
617
|
-
return o =
|
|
617
|
+
return T(o, "ObjectExpression");
|
|
618
|
+
case Nt:
|
|
619
|
+
return o = H(), b(), kt(o, !1);
|
|
618
620
|
case Rn:
|
|
619
|
-
return o =
|
|
621
|
+
return o = H(), b(), o.callee = We(at(), !0), o.arguments = D(he) ? Ct(ue, !1) : Tr, T(o, "NewExpression");
|
|
620
622
|
}
|
|
621
|
-
|
|
623
|
+
I();
|
|
622
624
|
}
|
|
623
|
-
function
|
|
624
|
-
|
|
625
|
+
function kt(o, l) {
|
|
626
|
+
j === Oe ? o.id = de() : l ? I() : o.id = null, o.oa = [];
|
|
625
627
|
var c = !0;
|
|
626
|
-
for (
|
|
627
|
-
c ? c = !1 :
|
|
628
|
+
for (y(he); !D(ue); )
|
|
629
|
+
c ? c = !1 : y(xe), o.oa.push(de());
|
|
628
630
|
c = Le;
|
|
629
631
|
var h = z;
|
|
630
|
-
if (Le = !0, z = [], o.body =
|
|
632
|
+
if (Le = !0, z = [], o.body = K(!0), Le = c, z = h, oe || o.body.body.length && Te(o.body.body[0])) {
|
|
631
633
|
for (c = o.id ? -1 : 0; c < o.oa.length; ++c)
|
|
632
|
-
if (h = 0 > c ? o.id : o.oa[c], (
|
|
633
|
-
for (var
|
|
634
|
-
h.name === o.oa[
|
|
634
|
+
if (h = 0 > c ? o.id : o.oa[c], (Ln(h.name) || ct(h.name)) && n(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
635
|
+
for (var A = 0; A < c; ++A)
|
|
636
|
+
h.name === o.oa[A].name && n(h.start, "Argument name clash in strict mode");
|
|
635
637
|
}
|
|
636
|
-
return
|
|
638
|
+
return T(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
637
639
|
}
|
|
638
|
-
function
|
|
639
|
-
for (var h = [],
|
|
640
|
-
if (
|
|
641
|
-
|
|
642
|
-
else if (
|
|
640
|
+
function Ct(o, l, c) {
|
|
641
|
+
for (var h = [], A = !0; !D(o); ) {
|
|
642
|
+
if (A)
|
|
643
|
+
A = !1;
|
|
644
|
+
else if (y(xe), l && R.sb && D(o))
|
|
643
645
|
break;
|
|
644
|
-
h.push(c &&
|
|
646
|
+
h.push(c && j === xe ? null : Q(!0));
|
|
645
647
|
}
|
|
646
648
|
return h;
|
|
647
649
|
}
|
|
648
|
-
function
|
|
649
|
-
var l =
|
|
650
|
-
return o &&
|
|
650
|
+
function de(o) {
|
|
651
|
+
var l = H();
|
|
652
|
+
return o && R.yb === "everywhere" && (o = !1), j === Oe ? (!o && (R.yb && _r(le) || oe && Ln(le)) && x.slice(X, Re).indexOf("\\") === -1 && n(X, "The keyword '" + le + "' is reserved"), l.name = le) : o && j.l ? l.name = j.l : I(), Ve = !1, b(), T(l, "Identifier");
|
|
651
653
|
}
|
|
652
654
|
e.version = "0.5.0";
|
|
653
|
-
var
|
|
655
|
+
var R, x = "", Ae, Et;
|
|
654
656
|
e.parse = function(o, l) {
|
|
655
|
-
x = String(o),
|
|
657
|
+
x = String(o), Ae = x.length, R = l || {};
|
|
656
658
|
for (var c in mn)
|
|
657
|
-
Object.prototype.hasOwnProperty.call(
|
|
658
|
-
for (
|
|
659
|
-
c =
|
|
660
|
-
return
|
|
659
|
+
Object.prototype.hasOwnProperty.call(R, c) || (R[c] = mn[c]);
|
|
660
|
+
for (Et = R.sourceFile, ke = 1, d = fe = 0, Ve = !0, f(), c = R.dc, jt = be = d, R.C && (At = new a()), Le = oe = !1, z = [], v(), o = c || H(), l = !0, c || (o.body = []); j !== Rt; )
|
|
661
|
+
c = O(), o.body.push(c), l && Te(c) && V(!0), l = !1;
|
|
662
|
+
return T(o, "Program");
|
|
661
663
|
};
|
|
662
664
|
var mn = {
|
|
663
665
|
fc: !1,
|
|
@@ -670,28 +672,28 @@ var B, ti = function(e) {
|
|
|
670
672
|
dc: null,
|
|
671
673
|
sourceFile: null,
|
|
672
674
|
vb: null
|
|
673
|
-
}, d = 0, X = 0,
|
|
675
|
+
}, d = 0, X = 0, Re = 0, It, Tt, j, le, Ve, ke, fe, jt = 0, be = 0, At, Le, z, oe, Tr = [], $e = {
|
|
674
676
|
type: "num"
|
|
675
677
|
}, gn = {
|
|
676
678
|
type: "regexp"
|
|
677
|
-
},
|
|
679
|
+
}, st = {
|
|
678
680
|
type: "string"
|
|
679
|
-
},
|
|
681
|
+
}, Oe = {
|
|
680
682
|
type: "name"
|
|
681
|
-
}, At = {
|
|
682
|
-
type: "eof"
|
|
683
683
|
}, Rt = {
|
|
684
|
-
|
|
684
|
+
type: "eof"
|
|
685
685
|
}, Ot = {
|
|
686
|
+
l: "break"
|
|
687
|
+
}, Pt = {
|
|
686
688
|
l: "case",
|
|
687
689
|
m: !0
|
|
688
690
|
}, vn = {
|
|
689
691
|
l: "catch"
|
|
690
692
|
}, yn = {
|
|
691
693
|
l: "continue"
|
|
692
|
-
}, xn = {
|
|
693
|
-
l: "debugger"
|
|
694
694
|
}, bn = {
|
|
695
|
+
l: "debugger"
|
|
696
|
+
}, xn = {
|
|
695
697
|
l: "default"
|
|
696
698
|
}, Sn = {
|
|
697
699
|
l: "do",
|
|
@@ -704,21 +706,21 @@ var B, ti = function(e) {
|
|
|
704
706
|
}, Cn = {
|
|
705
707
|
l: "for",
|
|
706
708
|
W: !0
|
|
707
|
-
},
|
|
709
|
+
}, Nt = {
|
|
708
710
|
l: "function"
|
|
709
711
|
}, En = {
|
|
710
712
|
l: "if"
|
|
711
713
|
}, In = {
|
|
712
714
|
l: "return",
|
|
713
715
|
m: !0
|
|
714
|
-
},
|
|
716
|
+
}, Mt = {
|
|
715
717
|
l: "switch"
|
|
716
718
|
}, Tn = {
|
|
717
719
|
l: "throw",
|
|
718
720
|
m: !0
|
|
719
721
|
}, jn = {
|
|
720
722
|
l: "try"
|
|
721
|
-
},
|
|
723
|
+
}, Bt = {
|
|
722
724
|
l: "var"
|
|
723
725
|
}, Ft = {
|
|
724
726
|
l: "while",
|
|
@@ -739,35 +741,35 @@ var B, ti = function(e) {
|
|
|
739
741
|
}, Mn = {
|
|
740
742
|
l: "false",
|
|
741
743
|
$a: !1
|
|
742
|
-
},
|
|
744
|
+
}, lt = {
|
|
743
745
|
l: "in",
|
|
744
746
|
L: 7,
|
|
745
747
|
m: !0
|
|
746
748
|
}, jr = {
|
|
747
|
-
break:
|
|
748
|
-
case:
|
|
749
|
+
break: Ot,
|
|
750
|
+
case: Pt,
|
|
749
751
|
catch: vn,
|
|
750
752
|
continue: yn,
|
|
751
|
-
debugger:
|
|
752
|
-
default:
|
|
753
|
+
debugger: bn,
|
|
754
|
+
default: xn,
|
|
753
755
|
do: Sn,
|
|
754
756
|
else: wn,
|
|
755
757
|
finally: kn,
|
|
756
758
|
for: Cn,
|
|
757
|
-
function:
|
|
759
|
+
function: Nt,
|
|
758
760
|
if: En,
|
|
759
761
|
return: In,
|
|
760
|
-
switch:
|
|
762
|
+
switch: Mt,
|
|
761
763
|
throw: Tn,
|
|
762
764
|
try: jn,
|
|
763
|
-
var:
|
|
765
|
+
var: Bt,
|
|
764
766
|
while: Ft,
|
|
765
767
|
with: An,
|
|
766
768
|
null: Pn,
|
|
767
769
|
true: Nn,
|
|
768
770
|
false: Mn,
|
|
769
771
|
new: Rn,
|
|
770
|
-
in:
|
|
772
|
+
in: lt,
|
|
771
773
|
instanceof: {
|
|
772
774
|
l: "instanceof",
|
|
773
775
|
L: 7,
|
|
@@ -792,33 +794,33 @@ var B, ti = function(e) {
|
|
|
792
794
|
}, Ut = {
|
|
793
795
|
type: "[",
|
|
794
796
|
m: !0
|
|
795
|
-
},
|
|
797
|
+
}, _t = {
|
|
796
798
|
type: "]"
|
|
797
|
-
},
|
|
799
|
+
}, He = {
|
|
798
800
|
type: "{",
|
|
799
801
|
m: !0
|
|
800
|
-
},
|
|
802
|
+
}, Pe = {
|
|
801
803
|
type: "}"
|
|
802
|
-
},
|
|
804
|
+
}, he = {
|
|
803
805
|
type: "(",
|
|
804
806
|
m: !0
|
|
805
|
-
},
|
|
807
|
+
}, ue = {
|
|
806
808
|
type: ")"
|
|
807
|
-
},
|
|
809
|
+
}, xe = {
|
|
808
810
|
type: ",",
|
|
809
811
|
m: !0
|
|
810
|
-
},
|
|
812
|
+
}, pe = {
|
|
811
813
|
type: ";",
|
|
812
814
|
m: !0
|
|
813
|
-
},
|
|
815
|
+
}, Ke = {
|
|
814
816
|
type: ":",
|
|
815
817
|
m: !0
|
|
816
|
-
},
|
|
818
|
+
}, Bn = {
|
|
817
819
|
type: "."
|
|
818
|
-
},
|
|
820
|
+
}, Fn = {
|
|
819
821
|
type: "?",
|
|
820
822
|
m: !0
|
|
821
|
-
},
|
|
823
|
+
}, Un = {
|
|
822
824
|
L: 10,
|
|
823
825
|
m: !0
|
|
824
826
|
}, _n = {
|
|
@@ -834,10 +836,10 @@ var B, ti = function(e) {
|
|
|
834
836
|
}, Dn = {
|
|
835
837
|
prefix: !0,
|
|
836
838
|
m: !0
|
|
837
|
-
},
|
|
839
|
+
}, Wn = {
|
|
838
840
|
L: 1,
|
|
839
841
|
m: !0
|
|
840
|
-
},
|
|
842
|
+
}, Vn = {
|
|
841
843
|
L: 2,
|
|
842
844
|
m: !0
|
|
843
845
|
}, Rr = {
|
|
@@ -855,23 +857,23 @@ var B, ti = function(e) {
|
|
|
855
857
|
}, Mr = {
|
|
856
858
|
L: 7,
|
|
857
859
|
m: !0
|
|
858
|
-
},
|
|
860
|
+
}, Br = {
|
|
859
861
|
L: 8,
|
|
860
862
|
m: !0
|
|
861
|
-
},
|
|
863
|
+
}, Fr = {
|
|
862
864
|
L: 9,
|
|
863
865
|
prefix: !0,
|
|
864
866
|
m: !0
|
|
865
|
-
},
|
|
867
|
+
}, Ur = {
|
|
866
868
|
L: 10,
|
|
867
869
|
m: !0
|
|
868
|
-
}, _r = i("class enum extends super const export import"),
|
|
870
|
+
}, _r = i("class enum extends super const export import"), Ln = i("implements interface let package private protected public static yield"), ct = i("eval arguments"), Dr = i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Wr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, $n = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Vr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ut = /[\n\r\u2028\u2029]/, dt = /\r\n|[\n\r\u2028\u2029]/g, Ne, Dt = {
|
|
869
871
|
kind: "loop"
|
|
870
|
-
},
|
|
872
|
+
}, Lr = {
|
|
871
873
|
kind: "switch"
|
|
872
874
|
};
|
|
873
|
-
},
|
|
874
|
-
ti(
|
|
875
|
+
}, Gt = Gt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
876
|
+
ti(Gt.j || (Gt.j = {}));
|
|
875
877
|
function m(e, t) {
|
|
876
878
|
typeof e == "string" && (e = Ue(e, "code"));
|
|
877
879
|
var r = e.constructor;
|
|
@@ -887,17 +889,17 @@ function m(e, t) {
|
|
|
887
889
|
var a, s;
|
|
888
890
|
for (s in this)
|
|
889
891
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
890
|
-
this.N =
|
|
891
|
-
`), "polyfills"), this.ba = void 0,
|
|
892
|
+
this.N = Xt(this, this.ra, null), this.Na = this.N.object, this.ra = Ue(this.ba.join(`
|
|
893
|
+
`), "polyfills"), this.ba = void 0, gt(this.ra), a = new k(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = n, a = new k(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
892
894
|
}
|
|
893
895
|
var Xn = {
|
|
894
896
|
C: !0,
|
|
895
897
|
kc: 5
|
|
896
|
-
},
|
|
898
|
+
}, en = {
|
|
897
899
|
configurable: !0,
|
|
898
900
|
enumerable: !0,
|
|
899
901
|
writable: !1
|
|
900
|
-
},
|
|
902
|
+
}, w = {
|
|
901
903
|
configurable: !0,
|
|
902
904
|
enumerable: !1,
|
|
903
905
|
writable: !0
|
|
@@ -905,7 +907,7 @@ var Xn = {
|
|
|
905
907
|
configurable: !0,
|
|
906
908
|
enumerable: !1,
|
|
907
909
|
writable: !1
|
|
908
|
-
},
|
|
910
|
+
}, Ge = {
|
|
909
911
|
configurable: !1,
|
|
910
912
|
enumerable: !1,
|
|
911
913
|
writable: !1
|
|
@@ -915,52 +917,52 @@ var Xn = {
|
|
|
915
917
|
writable: !0
|
|
916
918
|
}, mr = {
|
|
917
919
|
STEP_ERROR: !0
|
|
918
|
-
},
|
|
920
|
+
}, De = {
|
|
919
921
|
SCOPE_REFERENCE: !0
|
|
920
|
-
},
|
|
922
|
+
}, Qe = {
|
|
921
923
|
VALUE_IN_DESCRIPTOR: !0
|
|
922
|
-
},
|
|
924
|
+
}, Be = {
|
|
923
925
|
REGEXP_TIMEOUT: !0
|
|
924
|
-
}, Jn = [],
|
|
925
|
-
function
|
|
926
|
+
}, Jn = [], ge = null, qe = null, Se = typeof globalThis > "u" ? void 0 : globalThis, ni = ["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();", "};"];
|
|
927
|
+
function tn(e) {
|
|
926
928
|
var t = e >>> 0;
|
|
927
929
|
return t === Number(e) ? t : NaN;
|
|
928
930
|
}
|
|
929
|
-
function
|
|
931
|
+
function Ze(e) {
|
|
930
932
|
var t = e >>> 0;
|
|
931
933
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
932
934
|
}
|
|
933
|
-
function
|
|
935
|
+
function gt(e, t, r) {
|
|
934
936
|
t ? e.start = t : delete e.start, r ? e.end = r : delete e.end;
|
|
935
937
|
for (var n in e)
|
|
936
938
|
if (n !== "loc" && e.hasOwnProperty(n)) {
|
|
937
939
|
var i = e[n];
|
|
938
|
-
i && typeof i == "object" &&
|
|
940
|
+
i && typeof i == "object" && gt(i, t, r);
|
|
939
941
|
}
|
|
940
942
|
}
|
|
941
943
|
m.prototype.REGEXP_MODE = 2;
|
|
942
944
|
m.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
943
945
|
m.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
946
|
+
F = m.prototype;
|
|
947
|
+
F.P = !1;
|
|
948
|
+
F.Ka = !1;
|
|
949
|
+
F.Kb = 0;
|
|
950
|
+
F.ic = 0;
|
|
949
951
|
function Ue(e, t) {
|
|
950
952
|
var r = {}, n;
|
|
951
953
|
for (n in Xn)
|
|
952
954
|
r[n] = Xn[n];
|
|
953
955
|
return r.sourceFile = t, Se.j.parse(e, r);
|
|
954
956
|
}
|
|
955
|
-
|
|
957
|
+
F.Jb = function(e) {
|
|
956
958
|
var t = this.o[0];
|
|
957
959
|
if (!t || t.node.type !== "Program")
|
|
958
960
|
throw Error("Expecting original AST to start with a Program node");
|
|
959
961
|
if (typeof e == "string" && (e = Ue(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
960
962
|
throw Error("Expecting new AST to start with a Program node");
|
|
961
|
-
|
|
963
|
+
et(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
962
964
|
};
|
|
963
|
-
|
|
965
|
+
F.lb = function() {
|
|
964
966
|
var e = this.o, t;
|
|
965
967
|
do {
|
|
966
968
|
var r = e[e.length - 1];
|
|
@@ -973,22 +975,22 @@ B.lb = function() {
|
|
|
973
975
|
r = null;
|
|
974
976
|
else {
|
|
975
977
|
this.ca.shift(), 0 <= r.interval && yr(this, r, r.interval);
|
|
976
|
-
var n = new
|
|
978
|
+
var n = new k(r.node, r.scope);
|
|
977
979
|
r.zb && (n.ia = 2, n.B = this.Na, n.U = r.zb, n.Qa = !0, n.F = r.Lb), r = n;
|
|
978
980
|
}
|
|
979
981
|
if (!r)
|
|
980
982
|
break;
|
|
981
983
|
}
|
|
982
984
|
n = r.node;
|
|
983
|
-
var i =
|
|
984
|
-
|
|
985
|
+
var i = qe;
|
|
986
|
+
qe = this;
|
|
985
987
|
try {
|
|
986
988
|
var a = this.rb[n.type](e, r, n);
|
|
987
989
|
} catch (s) {
|
|
988
990
|
if (s !== mr)
|
|
989
991
|
throw this.value !== s && (this.value = void 0), s;
|
|
990
992
|
} finally {
|
|
991
|
-
|
|
993
|
+
qe = i;
|
|
992
994
|
}
|
|
993
995
|
if (a && e.push(a), this.P)
|
|
994
996
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -998,38 +1000,38 @@ B.lb = function() {
|
|
|
998
1000
|
} while (!n.end && t > Date.now());
|
|
999
1001
|
return !0;
|
|
1000
1002
|
};
|
|
1001
|
-
|
|
1003
|
+
F.Eb = function() {
|
|
1002
1004
|
for (; !this.za && this.lb(); )
|
|
1003
1005
|
;
|
|
1004
1006
|
return this.za;
|
|
1005
1007
|
};
|
|
1006
1008
|
function ri(e, t) {
|
|
1007
|
-
e.g(t, "NaN", NaN,
|
|
1009
|
+
e.g(t, "NaN", NaN, Ge), e.g(t, "Infinity", 1 / 0, Ge), e.g(t, "undefined", void 0, Ge), e.g(t, "window", t, en), e.g(t, "this", t, Ge), e.g(t, "self", t), e.M = new M(null), e.Z = new M(e.M), ii(e, t), oi(e, t), t.xa = e.M, e.g(t, "constructor", e.v, w), ai(e, t), si(e, t), li(e, t), ci(e, t), ui(e, t), di(e, t), fi(e, t), hi(e, t), pi(e, t);
|
|
1008
1010
|
var r = e.i(function() {
|
|
1009
1011
|
throw EvalError("Can't happen");
|
|
1010
1012
|
}, !1);
|
|
1011
|
-
r.eval = !0, e.g(t, "eval", r,
|
|
1013
|
+
r.eval = !0, e.g(t, "eval", r, w), e.g(t, "parseInt", e.i(parseInt, !1), w), e.g(t, "parseFloat", e.i(parseFloat, !1), w), e.g(t, "isNaN", e.i(isNaN, !1), w), e.g(t, "isFinite", e.i(isFinite, !1), w);
|
|
1012
1014
|
for (var n = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], i = 0; i < n.length; i++)
|
|
1013
1015
|
r = function(a) {
|
|
1014
1016
|
return function(s) {
|
|
1015
1017
|
try {
|
|
1016
1018
|
return a(s);
|
|
1017
1019
|
} catch (u) {
|
|
1018
|
-
|
|
1020
|
+
C(e, e.Gb, u.message);
|
|
1019
1021
|
}
|
|
1020
1022
|
};
|
|
1021
|
-
}(n[i][0]), e.g(t, n[i][1], e.i(r, !1),
|
|
1023
|
+
}(n[i][0]), e.g(t, n[i][1], e.i(r, !1), w);
|
|
1022
1024
|
r = function(a) {
|
|
1023
1025
|
return qn(e, !1, arguments);
|
|
1024
|
-
}, e.g(t, "setTimeout", e.i(r, !1),
|
|
1026
|
+
}, e.g(t, "setTimeout", e.i(r, !1), w), r = function(a) {
|
|
1025
1027
|
return qn(e, !0, arguments);
|
|
1026
|
-
}, e.g(t, "setInterval", e.i(r, !1),
|
|
1028
|
+
}, e.g(t, "setInterval", e.i(r, !1), w), r = function(a) {
|
|
1027
1029
|
Zn(e, a);
|
|
1028
|
-
}, e.g(t, "clearTimeout", e.i(r, !1),
|
|
1030
|
+
}, e.g(t, "clearTimeout", e.i(r, !1), w), r = function(a) {
|
|
1029
1031
|
Zn(e, a);
|
|
1030
|
-
}, e.g(t, "clearInterval", e.i(r, !1),
|
|
1032
|
+
}, e.g(t, "clearInterval", e.i(r, !1), w), 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);
|
|
1031
1033
|
}
|
|
1032
|
-
|
|
1034
|
+
F.Wb = 0;
|
|
1033
1035
|
function ii(e, t) {
|
|
1034
1036
|
var r = /^[A-Za-z_$][\w$]*$/, n = function(i) {
|
|
1035
1037
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
@@ -1037,21 +1039,21 @@ function ii(e, t) {
|
|
|
1037
1039
|
s = s.split(/\s*,\s*/);
|
|
1038
1040
|
for (var u = 0; u < s.length; u++) {
|
|
1039
1041
|
var f = s[u];
|
|
1040
|
-
r.test(f) ||
|
|
1042
|
+
r.test(f) || C(e, e.T, "Invalid function argument: " + f);
|
|
1041
1043
|
}
|
|
1042
1044
|
s = s.join(", ");
|
|
1043
1045
|
}
|
|
1044
1046
|
try {
|
|
1045
1047
|
var g = Ue("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1046
1048
|
} catch (v) {
|
|
1047
|
-
|
|
1049
|
+
C(e, e.T, "Invalid code: " + v.message);
|
|
1048
1050
|
}
|
|
1049
|
-
return g.body.length !== 1 &&
|
|
1051
|
+
return g.body.length !== 1 && C(e, e.T, "Invalid code in function body"), on(e, g.body[0].la, e.N, "anonymous");
|
|
1050
1052
|
};
|
|
1051
|
-
e.O = e.i(n, !0), e.g(t, "Function", e.O,
|
|
1053
|
+
e.O = e.i(n, !0), e.g(t, "Function", e.O, w), e.g(e.O, "prototype", e.Z, w), e.g(e.Z, "constructor", e.O, w), e.Z.Ta = function() {
|
|
1052
1054
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ie), e.Z.H = "Function", n = function(i, a) {
|
|
1053
1055
|
var s = e.o[e.o.length - 1];
|
|
1054
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof
|
|
1056
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof M ? s.F = gr(e, a) : C(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1055
1057
|
}, J(e, e.O, "apply", n), n = function(i) {
|
|
1056
1058
|
var a = e.o[e.o.length - 1];
|
|
1057
1059
|
a.U = this, a.B = i, a.F = [];
|
|
@@ -1060,49 +1062,49 @@ function ii(e, t) {
|
|
|
1060
1062
|
a.eb = !1;
|
|
1061
1063
|
}, J(e, e.O, "call", n), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), n = function() {
|
|
1062
1064
|
return String(this);
|
|
1063
|
-
}, J(e, e.O, "toString", n), e.g(e.O, "toString", e.i(n, !1),
|
|
1065
|
+
}, J(e, e.O, "toString", n), e.g(e.O, "toString", e.i(n, !1), w), n = function() {
|
|
1064
1066
|
return this.valueOf();
|
|
1065
|
-
}, J(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1),
|
|
1067
|
+
}, J(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1), w);
|
|
1066
1068
|
}
|
|
1067
1069
|
function oi(e, t) {
|
|
1068
1070
|
function r(i) {
|
|
1069
|
-
i != null ||
|
|
1071
|
+
i != null || C(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1070
1072
|
}
|
|
1071
1073
|
var n = function(i) {
|
|
1072
1074
|
if (i == null)
|
|
1073
|
-
return
|
|
1074
|
-
if (!(i instanceof
|
|
1075
|
-
var a = e.s(
|
|
1075
|
+
return ye(e) ? this : e.s(e.M);
|
|
1076
|
+
if (!(i instanceof M)) {
|
|
1077
|
+
var a = e.s(ve(e, i));
|
|
1076
1078
|
return a.data = i, a;
|
|
1077
1079
|
}
|
|
1078
1080
|
return i;
|
|
1079
1081
|
};
|
|
1080
|
-
e.v = e.i(n, !0), e.g(e.v, "prototype", e.M,
|
|
1081
|
-
return r(i),
|
|
1082
|
-
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1),
|
|
1083
|
-
return r(i), i instanceof
|
|
1084
|
-
}, e.g(e.v, "keys", e.i(n, !1),
|
|
1085
|
-
return i === null ? e.s(null) : (i instanceof
|
|
1086
|
-
}, e.g(e.v, "create", e.i(n, !1),
|
|
1087
|
-
return a = String(a), i instanceof
|
|
1088
|
-
}, e.g(e.v, "defineProperty", e.i(n, !1),
|
|
1089
|
-
if (i instanceof
|
|
1082
|
+
e.v = e.i(n, !0), e.g(e.v, "prototype", e.M, w), e.g(e.M, "constructor", e.v, w), e.g(t, "Object", e.v, w), n = function(i) {
|
|
1083
|
+
return r(i), me(e, Object.getOwnPropertyNames(i instanceof M ? i.h : i));
|
|
1084
|
+
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1), w), n = function(i) {
|
|
1085
|
+
return r(i), i instanceof M && (i = i.h), me(e, Object.keys(i));
|
|
1086
|
+
}, e.g(e.v, "keys", e.i(n, !1), w), n = function(i) {
|
|
1087
|
+
return i === null ? e.s(null) : (i instanceof M || C(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1088
|
+
}, e.g(e.v, "create", e.i(n, !1), w), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), n = function(i, a, s) {
|
|
1089
|
+
return a = String(a), i instanceof M || C(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof M || C(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || C(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a, Qe, s.h), i;
|
|
1090
|
+
}, e.g(e.v, "defineProperty", e.i(n, !1), w), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), n = function(i, a) {
|
|
1091
|
+
if (i instanceof M || C(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1090
1092
|
var s = Object.getOwnPropertyDescriptor(i.h, a), u = i.V[a];
|
|
1091
1093
|
return i = i.Y[a], a = e.s(e.M), u || i ? (e.g(a, "get", u), e.g(a, "set", i)) : (e.g(a, "value", s.value), e.g(a, "writable", s.writable)), e.g(a, "configurable", s.configurable), e.g(a, "enumerable", s.enumerable), a;
|
|
1092
1094
|
}
|
|
1093
|
-
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(n, !1),
|
|
1094
|
-
return r(i),
|
|
1095
|
-
}, e.g(e.v, "getPrototypeOf", e.i(n, !1),
|
|
1095
|
+
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(n, !1), w), n = function(i) {
|
|
1096
|
+
return r(i), ve(e, i);
|
|
1097
|
+
}, e.g(e.v, "getPrototypeOf", e.i(n, !1), w), n = function(i) {
|
|
1096
1098
|
return !!i && !i.preventExtensions;
|
|
1097
|
-
}, e.g(e.v, "isExtensible", e.i(n, !1),
|
|
1098
|
-
return i instanceof
|
|
1099
|
-
}, e.g(e.v, "preventExtensions", e.i(n, !1),
|
|
1100
|
-
return r(this), this instanceof
|
|
1099
|
+
}, e.g(e.v, "isExtensible", e.i(n, !1), w), n = function(i) {
|
|
1100
|
+
return i instanceof M && (i.preventExtensions = !0), i;
|
|
1101
|
+
}, e.g(e.v, "preventExtensions", e.i(n, !1), w), J(e, e.v, "toString", M.prototype.toString), J(e, e.v, "toLocaleString", M.prototype.toString), J(e, e.v, "valueOf", M.prototype.valueOf), n = function(i) {
|
|
1102
|
+
return r(this), this instanceof M ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1101
1103
|
}, J(e, e.v, "hasOwnProperty", n), n = function(i) {
|
|
1102
|
-
return r(this), this instanceof
|
|
1104
|
+
return r(this), this instanceof M ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1103
1105
|
}, J(e, e.v, "propertyIsEnumerable", n), n = function(i) {
|
|
1104
1106
|
for (; ; ) {
|
|
1105
|
-
if (i =
|
|
1107
|
+
if (i = ve(e, i), !i)
|
|
1106
1108
|
return !1;
|
|
1107
1109
|
if (i === this)
|
|
1108
1110
|
return !0;
|
|
@@ -1111,9 +1113,9 @@ function oi(e, t) {
|
|
|
1111
1113
|
}
|
|
1112
1114
|
function ai(e, t) {
|
|
1113
1115
|
var r = function(n) {
|
|
1114
|
-
var i =
|
|
1116
|
+
var i = ye(e) ? this : _e(e), a = arguments[0];
|
|
1115
1117
|
if (arguments.length === 1 && typeof a == "number")
|
|
1116
|
-
isNaN(
|
|
1118
|
+
isNaN(tn(a)) && C(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1117
1119
|
else {
|
|
1118
1120
|
for (a = 0; a < arguments.length; a++)
|
|
1119
1121
|
i.h[a] = arguments[a];
|
|
@@ -1121,9 +1123,9 @@ function ai(e, t) {
|
|
|
1121
1123
|
}
|
|
1122
1124
|
return i;
|
|
1123
1125
|
};
|
|
1124
|
-
e.qa = e.i(r, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa,
|
|
1126
|
+
e.qa = e.i(r, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, w), r = function(n) {
|
|
1125
1127
|
return n && n.H === "Array";
|
|
1126
|
-
}, e.g(e.qa, "isArray", e.i(r, !1),
|
|
1128
|
+
}, e.g(e.qa, "isArray", e.i(r, !1), w), e.g(e.La, "length", 0, {
|
|
1127
1129
|
configurable: !1,
|
|
1128
1130
|
enumerable: !1,
|
|
1129
1131
|
writable: !0
|
|
@@ -1131,78 +1133,78 @@ function ai(e, t) {
|
|
|
1131
1133
|
}
|
|
1132
1134
|
function si(e, t) {
|
|
1133
1135
|
var r = function(n) {
|
|
1134
|
-
return n = arguments.length ? Se.String(n) : "",
|
|
1136
|
+
return n = arguments.length ? Se.String(n) : "", ye(e) ? (this.data = n, this) : n;
|
|
1135
1137
|
};
|
|
1136
|
-
for (e.J = e.i(r, !0), e.g(t, "String", e.J,
|
|
1138
|
+
for (e.J = e.i(r, !0), e.g(t, "String", e.J, w), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), w), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), r = 0; r < t.length; r++)
|
|
1137
1139
|
J(e, e.J, t[r], String.prototype[t[r]]);
|
|
1138
1140
|
r = function(n, i, a) {
|
|
1139
1141
|
i = e.R(i), a = e.R(a);
|
|
1140
1142
|
try {
|
|
1141
1143
|
return String(this).localeCompare(n, i, a);
|
|
1142
1144
|
} catch (s) {
|
|
1143
|
-
|
|
1145
|
+
C(e, e.D, "localeCompare: " + s.message);
|
|
1144
1146
|
}
|
|
1145
1147
|
}, J(e, e.J, "localeCompare", r), r = function(n, i, a) {
|
|
1146
1148
|
var s = String(this);
|
|
1147
|
-
if (i = i ? Number(i) : void 0, q(e, n, e.I) && (n = n.data,
|
|
1148
|
-
if (
|
|
1149
|
-
n =
|
|
1149
|
+
if (i = i ? Number(i) : void 0, q(e, n, e.I) && (n = n.data, Xe(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1150
|
+
if (ge)
|
|
1151
|
+
n = ze(e, "string.split(separator, limit)", {
|
|
1150
1152
|
string: s,
|
|
1151
1153
|
separator: n,
|
|
1152
1154
|
limit: i
|
|
1153
|
-
}, n, a), n !==
|
|
1155
|
+
}, n, a), n !== Be && a(me(e, n));
|
|
1154
1156
|
else {
|
|
1155
|
-
var u = e.ha(), f =
|
|
1157
|
+
var u = e.ha(), f = Ye(e, n, u, a);
|
|
1156
1158
|
u.onmessage = function(g) {
|
|
1157
|
-
clearTimeout(f), a(
|
|
1159
|
+
clearTimeout(f), a(me(e, g.data));
|
|
1158
1160
|
}, u.postMessage(["split", s, n, i]);
|
|
1159
1161
|
}
|
|
1160
1162
|
return;
|
|
1161
1163
|
}
|
|
1162
|
-
n = s.split(n, i), a(
|
|
1163
|
-
},
|
|
1164
|
+
n = s.split(n, i), a(me(e, n));
|
|
1165
|
+
}, Je(e, e.J, "split", r), r = function(n, i) {
|
|
1164
1166
|
var a = String(this);
|
|
1165
|
-
if (n = q(e, n, e.I) ? n.data : new RegExp(n),
|
|
1166
|
-
if (
|
|
1167
|
-
n =
|
|
1167
|
+
if (n = q(e, n, e.I) ? n.data : new RegExp(n), Xe(e, n, i), e.REGEXP_MODE === 2)
|
|
1168
|
+
if (ge)
|
|
1169
|
+
n = ze(e, "string.match(regexp)", {
|
|
1168
1170
|
string: a,
|
|
1169
1171
|
regexp: n
|
|
1170
|
-
}, n, i), n !==
|
|
1172
|
+
}, n, i), n !== Be && i(n && me(e, n));
|
|
1171
1173
|
else {
|
|
1172
|
-
var s = e.ha(), u =
|
|
1174
|
+
var s = e.ha(), u = Ye(e, n, s, i);
|
|
1173
1175
|
s.onmessage = function(f) {
|
|
1174
|
-
clearTimeout(u), i(f.data &&
|
|
1176
|
+
clearTimeout(u), i(f.data && me(e, f.data));
|
|
1175
1177
|
}, s.postMessage(["match", a, n]);
|
|
1176
1178
|
}
|
|
1177
1179
|
else
|
|
1178
|
-
n = a.match(n), i(n &&
|
|
1179
|
-
},
|
|
1180
|
+
n = a.match(n), i(n && me(e, n));
|
|
1181
|
+
}, Je(e, e.J, "match", r), r = function(n, i) {
|
|
1180
1182
|
var a = String(this);
|
|
1181
|
-
if (q(e, n, e.I) ? n = n.data : n = new RegExp(n),
|
|
1182
|
-
if (
|
|
1183
|
-
n =
|
|
1183
|
+
if (q(e, n, e.I) ? n = n.data : n = new RegExp(n), Xe(e, n, i), e.REGEXP_MODE === 2)
|
|
1184
|
+
if (ge)
|
|
1185
|
+
n = ze(e, "string.search(regexp)", {
|
|
1184
1186
|
string: a,
|
|
1185
1187
|
regexp: n
|
|
1186
|
-
}, n, i), n !==
|
|
1188
|
+
}, n, i), n !== Be && i(n);
|
|
1187
1189
|
else {
|
|
1188
|
-
var s = e.ha(), u =
|
|
1190
|
+
var s = e.ha(), u = Ye(e, n, s, i);
|
|
1189
1191
|
s.onmessage = function(f) {
|
|
1190
1192
|
clearTimeout(u), i(f.data);
|
|
1191
1193
|
}, s.postMessage(["search", a, n]);
|
|
1192
1194
|
}
|
|
1193
1195
|
else
|
|
1194
1196
|
i(a.search(n));
|
|
1195
|
-
},
|
|
1197
|
+
}, Je(e, e.J, "search", r), r = function(n, i, a) {
|
|
1196
1198
|
var s = String(this);
|
|
1197
|
-
if (i = String(i), q(e, n, e.I) && (n = n.data,
|
|
1198
|
-
if (
|
|
1199
|
-
n =
|
|
1199
|
+
if (i = String(i), q(e, n, e.I) && (n = n.data, Xe(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1200
|
+
if (ge)
|
|
1201
|
+
n = ze(e, "string.replace(substr, newSubstr)", {
|
|
1200
1202
|
string: s,
|
|
1201
1203
|
substr: n,
|
|
1202
1204
|
newSubstr: i
|
|
1203
|
-
}, n, a), n !==
|
|
1205
|
+
}, n, a), n !== Be && a(n);
|
|
1204
1206
|
else {
|
|
1205
|
-
var u = e.ha(), f =
|
|
1207
|
+
var u = e.ha(), f = Ye(e, n, u, a);
|
|
1206
1208
|
u.onmessage = function(g) {
|
|
1207
1209
|
clearTimeout(f), a(g.data);
|
|
1208
1210
|
}, u.postMessage(["replace", s, n, i]);
|
|
@@ -1210,65 +1212,65 @@ function si(e, t) {
|
|
|
1210
1212
|
return;
|
|
1211
1213
|
}
|
|
1212
1214
|
a(s.replace(n, i));
|
|
1213
|
-
},
|
|
1215
|
+
}, Je(e, e.J, "replace", r), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1214
1216
|
}
|
|
1215
1217
|
function li(e, t) {
|
|
1216
1218
|
e.mb = e.i(function(r) {
|
|
1217
|
-
return r = Se.Boolean(r),
|
|
1218
|
-
}, !0), e.g(t, "Boolean", e.mb,
|
|
1219
|
+
return r = Se.Boolean(r), ye(e) ? (this.data = r, this) : r;
|
|
1220
|
+
}, !0), e.g(t, "Boolean", e.mb, w);
|
|
1219
1221
|
}
|
|
1220
1222
|
function ci(e, t) {
|
|
1221
1223
|
var r = function(n) {
|
|
1222
|
-
return n = arguments.length ? Se.Number(n) : 0,
|
|
1224
|
+
return n = arguments.length ? Se.Number(n) : 0, ye(e) ? (this.data = n, this) : n;
|
|
1223
1225
|
};
|
|
1224
|
-
for (e.aa = e.i(r, !0), e.g(t, "Number", e.aa,
|
|
1225
|
-
e.g(e.aa, t[r], Number[t[r]],
|
|
1226
|
+
for (e.aa = e.i(r, !0), e.g(t, "Number", e.aa, w), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], r = 0; r < t.length; r++)
|
|
1227
|
+
e.g(e.aa, t[r], Number[t[r]], Ge);
|
|
1226
1228
|
r = function(n) {
|
|
1227
1229
|
try {
|
|
1228
1230
|
return Number(this).toExponential(n);
|
|
1229
1231
|
} catch (i) {
|
|
1230
|
-
|
|
1232
|
+
C(e, e.D, i.message);
|
|
1231
1233
|
}
|
|
1232
1234
|
}, J(e, e.aa, "toExponential", r), r = function(n) {
|
|
1233
1235
|
try {
|
|
1234
1236
|
return Number(this).toFixed(n);
|
|
1235
1237
|
} catch (i) {
|
|
1236
|
-
|
|
1238
|
+
C(e, e.D, i.message);
|
|
1237
1239
|
}
|
|
1238
1240
|
}, J(e, e.aa, "toFixed", r), r = function(n) {
|
|
1239
1241
|
try {
|
|
1240
1242
|
return Number(this).toPrecision(n);
|
|
1241
1243
|
} catch (i) {
|
|
1242
|
-
|
|
1244
|
+
C(e, e.D, i.message);
|
|
1243
1245
|
}
|
|
1244
1246
|
}, J(e, e.aa, "toPrecision", r), r = function(n) {
|
|
1245
1247
|
try {
|
|
1246
1248
|
return Number(this).toString(n);
|
|
1247
1249
|
} catch (i) {
|
|
1248
|
-
|
|
1250
|
+
C(e, e.D, i.message);
|
|
1249
1251
|
}
|
|
1250
1252
|
}, J(e, e.aa, "toString", r), r = function(n, i) {
|
|
1251
1253
|
n = n ? e.R(n) : void 0, i = i ? e.R(i) : void 0;
|
|
1252
1254
|
try {
|
|
1253
1255
|
return Number(this).toLocaleString(n, i);
|
|
1254
1256
|
} catch (a) {
|
|
1255
|
-
|
|
1257
|
+
C(e, e.D, "toLocaleString: " + a.message);
|
|
1256
1258
|
}
|
|
1257
1259
|
}, J(e, e.aa, "toLocaleString", r);
|
|
1258
1260
|
}
|
|
1259
1261
|
function ui(e, t) {
|
|
1260
1262
|
var r = function(i, a) {
|
|
1261
|
-
if (!
|
|
1263
|
+
if (!ye(e))
|
|
1262
1264
|
return Se.Date();
|
|
1263
1265
|
var s = [null].concat(Array.from(arguments));
|
|
1264
1266
|
return this.data = new (Function.prototype.bind.apply(Se.Date, s))(), this;
|
|
1265
1267
|
};
|
|
1266
|
-
e.$ = e.i(r, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$,
|
|
1268
|
+
e.$ = e.i(r, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, w), e.g(e.$, "now", e.i(Date.now, !1), w), e.g(e.$, "parse", e.i(Date.parse, !1), w), e.g(e.$, "UTC", e.i(Date.UTC, !1), w), 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(" ");
|
|
1267
1269
|
for (var n = 0; n < t.length; n++)
|
|
1268
1270
|
r = function(i) {
|
|
1269
1271
|
return function(a) {
|
|
1270
1272
|
var s = this.data;
|
|
1271
|
-
s instanceof Date ||
|
|
1273
|
+
s instanceof Date || C(e, e.j, i + " not called on a Date");
|
|
1272
1274
|
for (var u = [], f = 0; f < arguments.length; f++)
|
|
1273
1275
|
u[f] = e.R(arguments[f]);
|
|
1274
1276
|
return s[i].apply(s, u);
|
|
@@ -1277,85 +1279,85 @@ function ui(e, t) {
|
|
|
1277
1279
|
}
|
|
1278
1280
|
function di(e, t) {
|
|
1279
1281
|
var r = function(n, i) {
|
|
1280
|
-
if (
|
|
1282
|
+
if (ye(e))
|
|
1281
1283
|
var a = this;
|
|
1282
1284
|
else {
|
|
1283
1285
|
if (i === void 0 && q(e, n, e.I))
|
|
1284
1286
|
return n;
|
|
1285
1287
|
a = e.s(e.Ma);
|
|
1286
1288
|
}
|
|
1287
|
-
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) ||
|
|
1289
|
+
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) || C(e, e.T, "Invalid regexp flag: " + i);
|
|
1288
1290
|
try {
|
|
1289
1291
|
var s = new Se.RegExp(n, i);
|
|
1290
1292
|
} catch (u) {
|
|
1291
|
-
|
|
1293
|
+
C(e, e.T, u.message);
|
|
1292
1294
|
}
|
|
1293
|
-
return
|
|
1295
|
+
return nn(e, a, s), a;
|
|
1294
1296
|
};
|
|
1295
|
-
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I,
|
|
1297
|
+
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, w), e.g(e.I.h.prototype, "global", void 0, ie), e.g(e.I.h.prototype, "ignoreCase", void 0, ie), e.g(e.I.h.prototype, "multiline", void 0, ie), e.g(e.I.h.prototype, "source", "(?:)", ie), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), r = function(n, i) {
|
|
1296
1298
|
function a(v) {
|
|
1297
1299
|
if (v) {
|
|
1298
|
-
var
|
|
1299
|
-
return e.g(
|
|
1300
|
+
var S = me(e, v);
|
|
1301
|
+
return e.g(S, "index", v.index), e.g(S, "input", v.input), S;
|
|
1300
1302
|
}
|
|
1301
1303
|
return null;
|
|
1302
1304
|
}
|
|
1303
1305
|
var s = this.data;
|
|
1304
|
-
if (n = String(n), s.lastIndex = Number(e.G(this, "lastIndex")),
|
|
1305
|
-
if (
|
|
1306
|
-
n =
|
|
1306
|
+
if (n = String(n), s.lastIndex = Number(e.G(this, "lastIndex")), Xe(e, s, i), e.REGEXP_MODE === 2)
|
|
1307
|
+
if (ge)
|
|
1308
|
+
n = ze(e, "regexp.exec(string)", {
|
|
1307
1309
|
string: n,
|
|
1308
1310
|
regexp: s
|
|
1309
|
-
}, s, i), n !==
|
|
1311
|
+
}, s, i), n !== Be && (e.g(this, "lastIndex", s.lastIndex), i(a(n)));
|
|
1310
1312
|
else {
|
|
1311
|
-
var u = e.ha(), f =
|
|
1313
|
+
var u = e.ha(), f = Ye(e, s, u, i), g = this;
|
|
1312
1314
|
u.onmessage = function(v) {
|
|
1313
1315
|
clearTimeout(f), e.g(g, "lastIndex", v.data[1]), i(a(v.data[0]));
|
|
1314
1316
|
}, u.postMessage(["exec", s, s.lastIndex, n]);
|
|
1315
1317
|
}
|
|
1316
1318
|
else
|
|
1317
1319
|
n = s.exec(n), e.g(this, "lastIndex", s.lastIndex), i(a(n));
|
|
1318
|
-
},
|
|
1320
|
+
}, Je(e, e.I, "exec", r);
|
|
1319
1321
|
}
|
|
1320
1322
|
function fi(e, t) {
|
|
1321
1323
|
function r(n) {
|
|
1322
1324
|
var i = e.i(function(a) {
|
|
1323
|
-
var s =
|
|
1324
|
-
return
|
|
1325
|
+
var s = ye(e) ? this : e.Aa(i);
|
|
1326
|
+
return zt(e, s, a), s;
|
|
1325
1327
|
}, !0);
|
|
1326
|
-
return e.g(i, "prototype", e.Aa(e.D),
|
|
1328
|
+
return e.g(i, "prototype", e.Aa(e.D), w), e.g(i.h.prototype, "name", n, w), e.g(t, n, i, w), i;
|
|
1327
1329
|
}
|
|
1328
1330
|
e.D = e.i(function(n) {
|
|
1329
|
-
var i =
|
|
1330
|
-
return
|
|
1331
|
-
}, !0), e.g(t, "Error", e.D,
|
|
1331
|
+
var i = ye(e) ? this : e.Aa(e.D);
|
|
1332
|
+
return zt(e, i, n), i;
|
|
1333
|
+
}, !0), e.g(t, "Error", e.D, w), e.g(e.D.h.prototype, "message", "", w), e.g(e.D.h.prototype, "name", "Error", w), r("EvalError"), e.ob = r("RangeError"), e.pb = r("ReferenceError"), e.T = r("SyntaxError"), e.j = r("TypeError"), e.Gb = r("URIError");
|
|
1332
1334
|
}
|
|
1333
1335
|
function hi(e, t) {
|
|
1334
1336
|
var r = e.s(e.M);
|
|
1335
|
-
e.g(t, "Math", r,
|
|
1337
|
+
e.g(t, "Math", r, w);
|
|
1336
1338
|
var n = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1337
1339
|
for (t = 0; t < n.length; t++)
|
|
1338
1340
|
e.g(r, n[t], Math[n[t]], ie);
|
|
1339
1341
|
for (n = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < n.length; t++)
|
|
1340
|
-
e.g(r, n[t], e.i(Math[n[t]], !1),
|
|
1342
|
+
e.g(r, n[t], e.i(Math[n[t]], !1), w);
|
|
1341
1343
|
}
|
|
1342
1344
|
function pi(e, t) {
|
|
1343
1345
|
var r = e.s(e.M);
|
|
1344
|
-
e.g(t, "JSON", r,
|
|
1346
|
+
e.g(t, "JSON", r, w), t = function(n) {
|
|
1345
1347
|
try {
|
|
1346
1348
|
var i = JSON.parse(String(n));
|
|
1347
1349
|
} catch (a) {
|
|
1348
|
-
|
|
1350
|
+
C(e, e.T, a.message);
|
|
1349
1351
|
}
|
|
1350
1352
|
return e.Ia(i);
|
|
1351
1353
|
}, e.g(r, "parse", e.i(t, !1)), t = function(n, i, a) {
|
|
1352
|
-
i && i.H === "Function" ?
|
|
1354
|
+
i && i.H === "Function" ? C(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = gr(e, i), i = i.filter(function(u) {
|
|
1353
1355
|
return typeof u == "string" || typeof u == "number";
|
|
1354
1356
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), n = e.R(n);
|
|
1355
1357
|
try {
|
|
1356
1358
|
var s = JSON.stringify(n, i, a);
|
|
1357
1359
|
} catch (u) {
|
|
1358
|
-
|
|
1360
|
+
C(e, e.j, u.message);
|
|
1359
1361
|
}
|
|
1360
1362
|
return s;
|
|
1361
1363
|
}, e.g(r, "stringify", e.i(t, !1));
|
|
@@ -1365,18 +1367,18 @@ function q(e, t, r) {
|
|
|
1365
1367
|
return !1;
|
|
1366
1368
|
if (r = r.h.prototype, t === r)
|
|
1367
1369
|
return !0;
|
|
1368
|
-
for (t =
|
|
1370
|
+
for (t = ve(e, t); t; ) {
|
|
1369
1371
|
if (t === r)
|
|
1370
1372
|
return !0;
|
|
1371
1373
|
t = t.xa;
|
|
1372
1374
|
}
|
|
1373
1375
|
return !1;
|
|
1374
1376
|
}
|
|
1375
|
-
function
|
|
1376
|
-
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex,
|
|
1377
|
+
function nn(e, t, r) {
|
|
1378
|
+
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex, w), e.g(t, "source", r.source, ie), e.g(t, "global", r.global, ie), e.g(t, "ignoreCase", r.ignoreCase, ie), e.g(t, "multiline", r.multiline, ie);
|
|
1377
1379
|
}
|
|
1378
|
-
function
|
|
1379
|
-
r && e.g(t, "message", String(r),
|
|
1380
|
+
function zt(e, t, r) {
|
|
1381
|
+
r && e.g(t, "message", String(r), w), r = [];
|
|
1380
1382
|
for (var n = e.o.length - 1; 0 <= n; n--) {
|
|
1381
1383
|
var i = e.o[n], a = i.node;
|
|
1382
1384
|
a.type === "CallExpression" && (i = i.U) && r.length && (r[r.length - 1].Ob = e.G(i, "name")), !a.X || r.length && a.type !== "CallExpression" || r.push({
|
|
@@ -1390,63 +1392,63 @@ function Gt(e, t, r) {
|
|
|
1390
1392
|
`) : a + (" at " + s + `
|
|
1391
1393
|
`);
|
|
1392
1394
|
}
|
|
1393
|
-
e.g(t, "stack", a.trim(),
|
|
1395
|
+
e.g(t, "stack", a.trim(), w);
|
|
1394
1396
|
}
|
|
1395
|
-
|
|
1397
|
+
F.ha = function() {
|
|
1396
1398
|
var e = this.ha.Mb;
|
|
1397
1399
|
return e || (e = new Blob([ni.join(`
|
|
1398
1400
|
`)], {
|
|
1399
1401
|
type: "application/javascript"
|
|
1400
1402
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1401
1403
|
};
|
|
1402
|
-
function
|
|
1404
|
+
function ze(e, t, r, n, i) {
|
|
1403
1405
|
var a = {
|
|
1404
1406
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1405
1407
|
};
|
|
1406
1408
|
try {
|
|
1407
|
-
return
|
|
1409
|
+
return ge.runInNewContext(t, r, a);
|
|
1408
1410
|
} catch {
|
|
1409
|
-
i(null),
|
|
1411
|
+
i(null), C(e, e.D, "RegExp Timeout: " + n);
|
|
1410
1412
|
}
|
|
1411
|
-
return
|
|
1413
|
+
return Be;
|
|
1412
1414
|
}
|
|
1413
|
-
function
|
|
1415
|
+
function Xe(e, t, r) {
|
|
1414
1416
|
if (e.REGEXP_MODE === 0)
|
|
1415
1417
|
var n = !1;
|
|
1416
1418
|
else if (e.REGEXP_MODE === 1)
|
|
1417
1419
|
n = !0;
|
|
1418
|
-
else if (
|
|
1420
|
+
else if (ge)
|
|
1419
1421
|
n = !0;
|
|
1420
1422
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1421
1423
|
n = !0;
|
|
1422
1424
|
else if (typeof require == "function") {
|
|
1423
1425
|
try {
|
|
1424
|
-
|
|
1426
|
+
ge = require("vm");
|
|
1425
1427
|
} catch {
|
|
1426
1428
|
}
|
|
1427
|
-
n = !!
|
|
1429
|
+
n = !!ge;
|
|
1428
1430
|
} else
|
|
1429
1431
|
n = !1;
|
|
1430
|
-
n || (r(null),
|
|
1432
|
+
n || (r(null), C(e, e.D, "Regular expressions not supported: " + t));
|
|
1431
1433
|
}
|
|
1432
|
-
function
|
|
1434
|
+
function Ye(e, t, r, n) {
|
|
1433
1435
|
return setTimeout(function() {
|
|
1434
1436
|
r.terminate(), n(null);
|
|
1435
1437
|
try {
|
|
1436
|
-
|
|
1438
|
+
C(e, e.D, "RegExp Timeout: " + t);
|
|
1437
1439
|
} catch {
|
|
1438
1440
|
}
|
|
1439
1441
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1440
1442
|
}
|
|
1441
|
-
|
|
1443
|
+
F.Aa = function(e) {
|
|
1442
1444
|
return this.s(e && e.h.prototype);
|
|
1443
1445
|
};
|
|
1444
|
-
|
|
1446
|
+
F.s = function(e) {
|
|
1445
1447
|
if (typeof e != "object")
|
|
1446
1448
|
throw Error("Non object prototype");
|
|
1447
|
-
return e = new
|
|
1449
|
+
return e = new M(e), q(this, e, this.D) && (e.H = "Error"), e;
|
|
1448
1450
|
};
|
|
1449
|
-
function
|
|
1451
|
+
function _e(e) {
|
|
1450
1452
|
var t = e.s(e.La);
|
|
1451
1453
|
return e.g(t, "length", 0, {
|
|
1452
1454
|
configurable: !1,
|
|
@@ -1454,29 +1456,29 @@ function Be(e) {
|
|
|
1454
1456
|
writable: !0
|
|
1455
1457
|
}), t.H = "Array", t;
|
|
1456
1458
|
}
|
|
1457
|
-
function
|
|
1459
|
+
function rn(e, t, r) {
|
|
1458
1460
|
var n = e.s(e.Z);
|
|
1459
|
-
return r ? (r = e.s(e.M), e.g(n, "prototype", r,
|
|
1461
|
+
return r ? (r = e.s(e.M), e.g(n, "prototype", r, w), e.g(r, "constructor", n, w)) : n.Ab = !0, e.g(n, "length", t, ie), n.H = "Function", n;
|
|
1460
1462
|
}
|
|
1461
|
-
function
|
|
1462
|
-
var i =
|
|
1463
|
+
function on(e, t, r, n) {
|
|
1464
|
+
var i = rn(e, t.oa.length, !0);
|
|
1463
1465
|
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "", ie), i;
|
|
1464
1466
|
}
|
|
1465
|
-
|
|
1466
|
-
return t =
|
|
1467
|
+
F.i = function(e, t) {
|
|
1468
|
+
return t = rn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, ie), t;
|
|
1467
1469
|
};
|
|
1468
|
-
|
|
1469
|
-
var t =
|
|
1470
|
+
F.ub = function(e) {
|
|
1471
|
+
var t = rn(this, e.length, !0);
|
|
1470
1472
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, ie), t;
|
|
1471
1473
|
};
|
|
1472
|
-
|
|
1473
|
-
if (e instanceof
|
|
1474
|
+
F.Ia = function(e) {
|
|
1475
|
+
if (e instanceof M)
|
|
1474
1476
|
throw Error("Object is already pseudo");
|
|
1475
1477
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1476
1478
|
return e;
|
|
1477
1479
|
if (e instanceof RegExp) {
|
|
1478
1480
|
var t = this.s(this.Ma);
|
|
1479
|
-
return
|
|
1481
|
+
return nn(this, t, e), t;
|
|
1480
1482
|
}
|
|
1481
1483
|
if (e instanceof Date)
|
|
1482
1484
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1490,7 +1492,7 @@ B.Ia = function(e) {
|
|
|
1490
1492
|
}, !!t);
|
|
1491
1493
|
}
|
|
1492
1494
|
if (Array.isArray(e)) {
|
|
1493
|
-
t =
|
|
1495
|
+
t = _e(this);
|
|
1494
1496
|
for (var n = 0; n < e.length; n++)
|
|
1495
1497
|
n in e && this.g(t, n, this.Ia(e[n]));
|
|
1496
1498
|
return t;
|
|
@@ -1500,10 +1502,10 @@ B.Ia = function(e) {
|
|
|
1500
1502
|
this.g(t, n, this.Ia(e[n]));
|
|
1501
1503
|
return t;
|
|
1502
1504
|
};
|
|
1503
|
-
|
|
1505
|
+
F.R = function(e, t) {
|
|
1504
1506
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1505
1507
|
return e;
|
|
1506
|
-
if (!(e instanceof
|
|
1508
|
+
if (!(e instanceof M))
|
|
1507
1509
|
throw Error("Object is not pseudo");
|
|
1508
1510
|
if (q(this, e, this.I))
|
|
1509
1511
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
@@ -1519,7 +1521,7 @@ B.R = function(e, t) {
|
|
|
1519
1521
|
if (t.hb.push(e), q(this, e, this.qa)) {
|
|
1520
1522
|
r = [], t.Sa.push(r);
|
|
1521
1523
|
for (var n = this.G(e, "length"), i = 0; i < n; i++)
|
|
1522
|
-
|
|
1524
|
+
vt(this, e, i) && (r[i] = this.R(this.G(e, i), t));
|
|
1523
1525
|
} else
|
|
1524
1526
|
for (n in r = {}, t.Sa.push(r), e.h)
|
|
1525
1527
|
i = this.R(e.h[n], t), Object.defineProperty(r, n, {
|
|
@@ -1530,8 +1532,8 @@ B.R = function(e, t) {
|
|
|
1530
1532
|
});
|
|
1531
1533
|
return t.hb.pop(), t.Sa.pop(), r;
|
|
1532
1534
|
};
|
|
1533
|
-
function
|
|
1534
|
-
for (var r =
|
|
1535
|
+
function me(e, t) {
|
|
1536
|
+
for (var r = _e(e), n = Object.getOwnPropertyNames(t), i = 0; i < n.length; i++)
|
|
1535
1537
|
e.g(r, n[i], t[n[i]]);
|
|
1536
1538
|
return r;
|
|
1537
1539
|
}
|
|
@@ -1539,9 +1541,9 @@ function gr(e, t) {
|
|
|
1539
1541
|
var r = [], n;
|
|
1540
1542
|
for (n in t.h)
|
|
1541
1543
|
r[n] = e.G(t, n);
|
|
1542
|
-
return r.length =
|
|
1544
|
+
return r.length = tn(e.G(t, "length")) || 0, r;
|
|
1543
1545
|
}
|
|
1544
|
-
function
|
|
1546
|
+
function ve(e, t) {
|
|
1545
1547
|
switch (typeof t) {
|
|
1546
1548
|
case "number":
|
|
1547
1549
|
return e.aa.h.prototype;
|
|
@@ -1552,52 +1554,52 @@ function ge(e, t) {
|
|
|
1552
1554
|
}
|
|
1553
1555
|
return t ? t.xa : null;
|
|
1554
1556
|
}
|
|
1555
|
-
|
|
1557
|
+
F.G = function(e, t) {
|
|
1556
1558
|
if (this.P)
|
|
1557
1559
|
throw Error("Getter not supported in that context");
|
|
1558
|
-
if (t = String(t), e != null ||
|
|
1560
|
+
if (t = String(t), e != null || C(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof M))
|
|
1559
1561
|
throw TypeError("Expecting native value or pseudo object");
|
|
1560
1562
|
if (t === "length") {
|
|
1561
1563
|
if (q(this, e, this.J))
|
|
1562
1564
|
return String(e).length;
|
|
1563
1565
|
} else if (64 > t.charCodeAt(0) && q(this, e, this.J)) {
|
|
1564
|
-
var r =
|
|
1566
|
+
var r = Ze(t);
|
|
1565
1567
|
if (!isNaN(r) && r < String(e).length)
|
|
1566
1568
|
return String(e)[r];
|
|
1567
1569
|
}
|
|
1568
1570
|
do
|
|
1569
1571
|
if (e.h && t in e.h)
|
|
1570
1572
|
return (r = e.V[t]) ? (this.P = !0, r) : e.h[t];
|
|
1571
|
-
while (e =
|
|
1573
|
+
while (e = ve(this, e));
|
|
1572
1574
|
};
|
|
1573
|
-
function
|
|
1574
|
-
if (!(t instanceof
|
|
1575
|
+
function vt(e, t, r) {
|
|
1576
|
+
if (!(t instanceof M))
|
|
1575
1577
|
throw TypeError("Primitive data type has no properties");
|
|
1576
1578
|
if (r = String(r), r === "length" && q(e, t, e.J))
|
|
1577
1579
|
return !0;
|
|
1578
1580
|
if (q(e, t, e.J)) {
|
|
1579
|
-
var n =
|
|
1581
|
+
var n = Ze(r);
|
|
1580
1582
|
if (!isNaN(n) && n < String(t).length)
|
|
1581
1583
|
return !0;
|
|
1582
1584
|
}
|
|
1583
1585
|
do
|
|
1584
1586
|
if (t.h && r in t.h)
|
|
1585
1587
|
return !0;
|
|
1586
|
-
while (t =
|
|
1588
|
+
while (t = ve(e, t));
|
|
1587
1589
|
return !1;
|
|
1588
1590
|
}
|
|
1589
|
-
|
|
1591
|
+
F.g = function(e, t, r, n) {
|
|
1590
1592
|
if (this.Ka)
|
|
1591
1593
|
throw Error("Setter not supported in that context");
|
|
1592
|
-
if (t = String(t), e != null ||
|
|
1594
|
+
if (t = String(t), e != null || C(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof M))
|
|
1593
1595
|
throw TypeError("Expecting native value or pseudo object");
|
|
1594
|
-
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) &&
|
|
1595
|
-
var i = !this.o ||
|
|
1596
|
-
if (e instanceof
|
|
1596
|
+
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) && C(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1597
|
+
var i = !this.o || an(this).S;
|
|
1598
|
+
if (e instanceof M) {
|
|
1597
1599
|
if (q(this, e, this.J)) {
|
|
1598
|
-
var a =
|
|
1600
|
+
var a = Ze(t);
|
|
1599
1601
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
1600
|
-
i &&
|
|
1602
|
+
i && C(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1601
1603
|
return;
|
|
1602
1604
|
}
|
|
1603
1605
|
}
|
|
@@ -1608,64 +1610,64 @@ B.g = function(e, t, r, n) {
|
|
|
1608
1610
|
return;
|
|
1609
1611
|
r = n.value;
|
|
1610
1612
|
}
|
|
1611
|
-
if (r =
|
|
1613
|
+
if (r = tn(r), isNaN(r) && C(this, this.ob, "Invalid array length"), r < a)
|
|
1612
1614
|
for (s in e.h) {
|
|
1613
|
-
var s =
|
|
1615
|
+
var s = Ze(s);
|
|
1614
1616
|
!isNaN(s) && r <= s && delete e.h[s];
|
|
1615
1617
|
}
|
|
1616
1618
|
} else
|
|
1617
|
-
isNaN(s =
|
|
1619
|
+
isNaN(s = Ze(t)) || (e.h.length = Math.max(a, s + 1));
|
|
1618
1620
|
if (!e.preventExtensions || t in e.h)
|
|
1619
1621
|
if (n) {
|
|
1620
|
-
i = {}, "get" in n && n.get && (e.V[t] = n.get, i.get = this.g.ac), "set" in n && n.set && (e.Y[t] = n.set, i.set = this.g.bc), "configurable" in n && (i.configurable = n.configurable), "enumerable" in n && (i.enumerable = n.enumerable), "writable" in n && (i.writable = n.writable, delete e.V[t], delete e.Y[t]), "value" in n ? (i.value = n.value, delete e.V[t], delete e.Y[t]) : r !==
|
|
1622
|
+
i = {}, "get" in n && n.get && (e.V[t] = n.get, i.get = this.g.ac), "set" in n && n.set && (e.Y[t] = n.set, i.set = this.g.bc), "configurable" in n && (i.configurable = n.configurable), "enumerable" in n && (i.enumerable = n.enumerable), "writable" in n && (i.writable = n.writable, delete e.V[t], delete e.Y[t]), "value" in n ? (i.value = n.value, delete e.V[t], delete e.Y[t]) : r !== Qe && (i.value = r, delete e.V[t], delete e.Y[t]);
|
|
1621
1623
|
try {
|
|
1622
1624
|
Object.defineProperty(e.h, t, i);
|
|
1623
1625
|
} catch {
|
|
1624
|
-
|
|
1626
|
+
C(this, this.j, "Cannot redefine property: " + t);
|
|
1625
1627
|
}
|
|
1626
1628
|
"get" in n && !n.get && delete e.V[t], "set" in n && !n.set && delete e.Y[t];
|
|
1627
1629
|
} else {
|
|
1628
|
-
if (r ===
|
|
1630
|
+
if (r === Qe)
|
|
1629
1631
|
throw ReferenceError("Value not specified");
|
|
1630
1632
|
for (n = e; !(t in n.h); )
|
|
1631
|
-
if (n =
|
|
1633
|
+
if (n = ve(this, n), !n) {
|
|
1632
1634
|
n = e;
|
|
1633
1635
|
break;
|
|
1634
1636
|
}
|
|
1635
1637
|
if (n.Y && n.Y[t])
|
|
1636
1638
|
return this.Ka = !0, n.Y[t];
|
|
1637
1639
|
if (n.V && n.V[t])
|
|
1638
|
-
i &&
|
|
1640
|
+
i && C(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1639
1641
|
else
|
|
1640
1642
|
try {
|
|
1641
1643
|
e.h[t] = r;
|
|
1642
1644
|
} catch {
|
|
1643
|
-
i &&
|
|
1645
|
+
i && C(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1644
1646
|
}
|
|
1645
1647
|
}
|
|
1646
1648
|
else
|
|
1647
|
-
i &&
|
|
1649
|
+
i && C(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1648
1650
|
} else
|
|
1649
|
-
i &&
|
|
1651
|
+
i && C(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1650
1652
|
};
|
|
1651
|
-
|
|
1653
|
+
F.g.ac = function() {
|
|
1652
1654
|
throw Error("Placeholder getter");
|
|
1653
1655
|
};
|
|
1654
|
-
|
|
1656
|
+
F.g.bc = function() {
|
|
1655
1657
|
throw Error("Placeholder setter");
|
|
1656
1658
|
};
|
|
1657
1659
|
function J(e, t, r, n) {
|
|
1658
|
-
e.g(t.h.prototype, r, e.i(n, !1),
|
|
1660
|
+
e.g(t.h.prototype, r, e.i(n, !1), w);
|
|
1659
1661
|
}
|
|
1660
|
-
function
|
|
1661
|
-
e.g(t.h.prototype, r, e.ub(n),
|
|
1662
|
+
function Je(e, t, r, n) {
|
|
1663
|
+
e.g(t.h.prototype, r, e.ub(n), w);
|
|
1662
1664
|
}
|
|
1663
|
-
function
|
|
1665
|
+
function an(e) {
|
|
1664
1666
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1665
1667
|
throw Error("No scope found");
|
|
1666
1668
|
return e;
|
|
1667
1669
|
}
|
|
1668
|
-
function
|
|
1670
|
+
function Xt(e, t, r) {
|
|
1669
1671
|
var n = !1;
|
|
1670
1672
|
if (r && r.S)
|
|
1671
1673
|
n = !0;
|
|
@@ -1673,40 +1675,40 @@ function zt(e, t, r) {
|
|
|
1673
1675
|
var i = t.body && t.body[0];
|
|
1674
1676
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (n = !0);
|
|
1675
1677
|
}
|
|
1676
|
-
return i = e.s(null), n = new
|
|
1678
|
+
return i = e.s(null), n = new br(r, n, i), r || ri(e, n.object), et(e, t, n), n;
|
|
1677
1679
|
}
|
|
1678
|
-
function
|
|
1680
|
+
function sn(e, t, r) {
|
|
1679
1681
|
if (!t)
|
|
1680
1682
|
throw Error("parentScope required");
|
|
1681
|
-
return e = r || e.s(null), new
|
|
1683
|
+
return e = r || e.s(null), new br(t, t.S, e);
|
|
1682
1684
|
}
|
|
1683
|
-
function
|
|
1684
|
-
for (var r =
|
|
1685
|
+
function ln(e, t) {
|
|
1686
|
+
for (var r = an(e); r && r !== e.N; ) {
|
|
1685
1687
|
if (t in r.object.h)
|
|
1686
1688
|
return r.object.h[t];
|
|
1687
1689
|
r = r.Va;
|
|
1688
1690
|
}
|
|
1689
|
-
if (r === e.N &&
|
|
1691
|
+
if (r === e.N && vt(e, r.object, t))
|
|
1690
1692
|
return e.G(r.object, t);
|
|
1691
|
-
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" ||
|
|
1693
|
+
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || C(e, e.pb, t + " is not defined");
|
|
1692
1694
|
}
|
|
1693
1695
|
function vr(e, t, r) {
|
|
1694
|
-
for (var n =
|
|
1696
|
+
for (var n = an(e), i = n.S; n && n !== e.N; ) {
|
|
1695
1697
|
if (t in n.object.h) {
|
|
1696
1698
|
try {
|
|
1697
1699
|
n.object.h[t] = r;
|
|
1698
1700
|
} catch {
|
|
1699
|
-
i &&
|
|
1701
|
+
i && C(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1700
1702
|
}
|
|
1701
1703
|
return;
|
|
1702
1704
|
}
|
|
1703
1705
|
n = n.Va;
|
|
1704
1706
|
}
|
|
1705
|
-
if (n === e.N && (!i ||
|
|
1707
|
+
if (n === e.N && (!i || vt(e, n.object, t)))
|
|
1706
1708
|
return e.g(n.object, t, r);
|
|
1707
|
-
|
|
1709
|
+
C(e, e.pb, t + " is not defined");
|
|
1708
1710
|
}
|
|
1709
|
-
function
|
|
1711
|
+
function et(e, t, r) {
|
|
1710
1712
|
if (t.jb)
|
|
1711
1713
|
var n = t.jb;
|
|
1712
1714
|
else {
|
|
@@ -1739,12 +1741,12 @@ function Qe(e, t, r) {
|
|
|
1739
1741
|
if (Array.isArray(u)) {
|
|
1740
1742
|
for (i = 0; i < u.length; i++)
|
|
1741
1743
|
if (u[i] && u[i].constructor === a) {
|
|
1742
|
-
var f =
|
|
1744
|
+
var f = et(e, u[i], r);
|
|
1743
1745
|
for (s in f)
|
|
1744
1746
|
n[s] = f[s];
|
|
1745
1747
|
}
|
|
1746
1748
|
} else if (u.constructor === a)
|
|
1747
|
-
for (s in f =
|
|
1749
|
+
for (s in f = et(e, u, r), f)
|
|
1748
1750
|
n[s] = f[s];
|
|
1749
1751
|
}
|
|
1750
1752
|
}
|
|
@@ -1752,22 +1754,22 @@ function Qe(e, t, r) {
|
|
|
1752
1754
|
t.jb = n;
|
|
1753
1755
|
}
|
|
1754
1756
|
for (s in n)
|
|
1755
|
-
n[s] === !0 ? e.g(r.object, s, void 0, Yn) : e.g(r.object, s,
|
|
1757
|
+
n[s] === !0 ? e.g(r.object, s, void 0, Yn) : e.g(r.object, s, on(e, n[s], r), Yn);
|
|
1756
1758
|
return n;
|
|
1757
1759
|
}
|
|
1758
|
-
function
|
|
1760
|
+
function ye(e) {
|
|
1759
1761
|
return e.o[e.o.length - 1].isConstructor;
|
|
1760
1762
|
}
|
|
1761
|
-
function
|
|
1762
|
-
return t[0] ===
|
|
1763
|
+
function cn(e, t) {
|
|
1764
|
+
return t[0] === De ? ln(e, t[1]) : e.G(t[0], t[1]);
|
|
1763
1765
|
}
|
|
1764
|
-
function
|
|
1765
|
-
return t[0] ===
|
|
1766
|
+
function un(e, t, r) {
|
|
1767
|
+
return t[0] === De ? vr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1766
1768
|
}
|
|
1767
|
-
function
|
|
1768
|
-
throw e.N ? (r !== void 0 && t instanceof
|
|
1769
|
+
function C(e, t, r) {
|
|
1770
|
+
throw e.N ? (r !== void 0 && t instanceof M && (t = e.Aa(t), zt(e, t, r)), rt(e, 4, t), mr) : r === void 0 ? t : r;
|
|
1769
1771
|
}
|
|
1770
|
-
function
|
|
1772
|
+
function rt(e, t, r, n) {
|
|
1771
1773
|
if (t === 0)
|
|
1772
1774
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
1773
1775
|
var i = e.o;
|
|
@@ -1847,16 +1849,16 @@ function qn(e, t, r) {
|
|
|
1847
1849
|
var n = e.o[e.o.length - 1], i = Array.from(r), a = i.shift();
|
|
1848
1850
|
r = Math.max(Number(i.shift() || 0), 0);
|
|
1849
1851
|
var s = e.ya();
|
|
1850
|
-
if (a instanceof
|
|
1852
|
+
if (a instanceof M && a.H === "Function") {
|
|
1851
1853
|
var u = a;
|
|
1852
1854
|
s.type = "CallExpression", n = n.scope;
|
|
1853
1855
|
} else {
|
|
1854
1856
|
try {
|
|
1855
1857
|
var f = Ue(String(a), "taskCode" + e.ic++);
|
|
1856
1858
|
} catch (g) {
|
|
1857
|
-
|
|
1859
|
+
C(e, e.T, "Invalid code: " + g.message);
|
|
1858
1860
|
}
|
|
1859
|
-
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0],
|
|
1861
|
+
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0], gt(s, n ? n.start : void 0, n ? n.end : void 0), n = e.N, i.length = 0;
|
|
1860
1862
|
}
|
|
1861
1863
|
return t = new mi(u, i, n, s, t ? r : -1), yr(e, t, r), t.Db;
|
|
1862
1864
|
}
|
|
@@ -1872,49 +1874,49 @@ function Zn(e, t) {
|
|
|
1872
1874
|
break;
|
|
1873
1875
|
}
|
|
1874
1876
|
}
|
|
1875
|
-
function
|
|
1877
|
+
function it(e, t, r) {
|
|
1876
1878
|
if (!e.P)
|
|
1877
1879
|
throw Error("Unexpected call to createGetter");
|
|
1878
1880
|
e.P = !1, r = Array.isArray(r) ? r[0] : r;
|
|
1879
1881
|
var n = e.ya();
|
|
1880
|
-
return n.type = "CallExpression", e = new
|
|
1882
|
+
return n.type = "CallExpression", e = new k(n, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1881
1883
|
}
|
|
1882
|
-
function
|
|
1884
|
+
function dn(e, t, r, n) {
|
|
1883
1885
|
if (!e.Ka)
|
|
1884
1886
|
throw Error("Unexpected call to createSetter");
|
|
1885
1887
|
e.Ka = !1, r = Array.isArray(r) ? r[0] : e.Na;
|
|
1886
1888
|
var i = e.ya();
|
|
1887
|
-
return i.type = "CallExpression", e = new
|
|
1889
|
+
return i.type = "CallExpression", e = new k(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [n], e;
|
|
1888
1890
|
}
|
|
1889
1891
|
function Vt(e, t) {
|
|
1890
|
-
return t == null ? e.Na : t instanceof
|
|
1892
|
+
return t == null ? e.Na : t instanceof M ? t : (e = e.s(ve(e, t)), e.data = t, e);
|
|
1891
1893
|
}
|
|
1892
|
-
|
|
1894
|
+
F.Xb = function() {
|
|
1893
1895
|
return this.N;
|
|
1894
1896
|
};
|
|
1895
|
-
|
|
1897
|
+
F.Yb = function() {
|
|
1896
1898
|
return this.o;
|
|
1897
1899
|
};
|
|
1898
|
-
|
|
1900
|
+
F.ec = function(e) {
|
|
1899
1901
|
this.o = e;
|
|
1900
1902
|
};
|
|
1901
|
-
function
|
|
1903
|
+
function k(e, t) {
|
|
1902
1904
|
this.node = e, this.scope = t;
|
|
1903
1905
|
}
|
|
1904
|
-
function
|
|
1906
|
+
function br(e, t, r) {
|
|
1905
1907
|
this.Va = e, this.S = t, this.object = r;
|
|
1906
1908
|
}
|
|
1907
|
-
function
|
|
1909
|
+
function M(e) {
|
|
1908
1910
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1909
1911
|
}
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
if (!
|
|
1912
|
+
F = M.prototype;
|
|
1913
|
+
F.xa = null;
|
|
1914
|
+
F.H = "Object";
|
|
1915
|
+
F.data = null;
|
|
1916
|
+
F.toString = function() {
|
|
1917
|
+
if (!qe)
|
|
1916
1918
|
return "[object Interpreter.Object]";
|
|
1917
|
-
if (!(this instanceof
|
|
1919
|
+
if (!(this instanceof M))
|
|
1918
1920
|
return String(this);
|
|
1919
1921
|
if (this.H === "Array") {
|
|
1920
1922
|
var e = Jn;
|
|
@@ -1924,7 +1926,7 @@ B.toString = function() {
|
|
|
1924
1926
|
1024 < r && (r = 1e3, n = !0);
|
|
1925
1927
|
for (var i = 0; i < r; i++) {
|
|
1926
1928
|
var a = this.h[i];
|
|
1927
|
-
t[i] = a instanceof
|
|
1929
|
+
t[i] = a instanceof M && e.indexOf(a) !== -1 ? "..." : a;
|
|
1928
1930
|
}
|
|
1929
1931
|
n && t.push("...");
|
|
1930
1932
|
} finally {
|
|
@@ -1959,8 +1961,8 @@ B.toString = function() {
|
|
|
1959
1961
|
}
|
|
1960
1962
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1961
1963
|
};
|
|
1962
|
-
|
|
1963
|
-
return !
|
|
1964
|
+
F.valueOf = function() {
|
|
1965
|
+
return !qe || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1964
1966
|
};
|
|
1965
1967
|
function mi(e, t, r, n, i) {
|
|
1966
1968
|
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++gi, this.time = 0;
|
|
@@ -1969,18 +1971,18 @@ var gi = 0;
|
|
|
1969
1971
|
m.prototype.stepArrayExpression = function(e, t, r) {
|
|
1970
1972
|
r = r.elements;
|
|
1971
1973
|
var n = t.A || 0;
|
|
1972
|
-
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa =
|
|
1974
|
+
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa = _e(this), t.Oa.h.length = r.length); n < r.length; ) {
|
|
1973
1975
|
if (r[n])
|
|
1974
|
-
return t.A = n, new
|
|
1976
|
+
return t.A = n, new k(r[n], t.scope);
|
|
1975
1977
|
n++;
|
|
1976
1978
|
}
|
|
1977
1979
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
1978
1980
|
};
|
|
1979
1981
|
m.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
1980
1982
|
if (!t.ja)
|
|
1981
|
-
return t.ja = !0, t = new
|
|
1983
|
+
return t.ja = !0, t = new k(r.left, t.scope), t.sa = !0, t;
|
|
1982
1984
|
if (!t.Da)
|
|
1983
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e =
|
|
1985
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e = cn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, it(this, e, t.Fa)) : (t.Da = !0, r.operator === "=" && r.left.type === "Identifier" && (t.Pa = r.left.name), new k(r.right, t.scope));
|
|
1984
1986
|
if (t.ta)
|
|
1985
1987
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1986
1988
|
else {
|
|
@@ -2025,16 +2027,16 @@ m.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
|
2025
2027
|
default:
|
|
2026
2028
|
throw SyntaxError("Unknown assignment expression: " + r.operator);
|
|
2027
2029
|
}
|
|
2028
|
-
if (r =
|
|
2029
|
-
return t.ta = !0, t.ib = n,
|
|
2030
|
+
if (r = un(this, t.Fa, n))
|
|
2031
|
+
return t.ta = !0, t.ib = n, dn(this, r, t.Fa, n);
|
|
2030
2032
|
e.pop(), e[e.length - 1].value = n;
|
|
2031
2033
|
}
|
|
2032
2034
|
};
|
|
2033
2035
|
m.prototype.stepBinaryExpression = function(e, t, r) {
|
|
2034
2036
|
if (!t.ja)
|
|
2035
|
-
return t.ja = !0, new
|
|
2037
|
+
return t.ja = !0, new k(r.left, t.scope);
|
|
2036
2038
|
if (!t.Da)
|
|
2037
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2039
|
+
return t.Da = !0, t.ma = t.value, new k(r.right, t.scope);
|
|
2038
2040
|
e.pop();
|
|
2039
2041
|
var n = t.ma;
|
|
2040
2042
|
switch (t = t.value, r.operator) {
|
|
@@ -2096,10 +2098,10 @@ m.prototype.stepBinaryExpression = function(e, t, r) {
|
|
|
2096
2098
|
r = n >>> t;
|
|
2097
2099
|
break;
|
|
2098
2100
|
case "in":
|
|
2099
|
-
t instanceof
|
|
2101
|
+
t instanceof M || C(this, this.j, "'in' expects an object, not '" + t + "'"), r = vt(this, t, n);
|
|
2100
2102
|
break;
|
|
2101
2103
|
case "instanceof":
|
|
2102
|
-
q(this, t, this.O) ||
|
|
2104
|
+
q(this, t, this.O) || C(this, this.j, "'instanceof' expects an object, not '" + t + "'"), r = n instanceof M ? q(this, n, t) : !1;
|
|
2103
2105
|
break;
|
|
2104
2106
|
default:
|
|
2105
2107
|
throw SyntaxError("Unknown binary operator: " + r.operator);
|
|
@@ -2109,35 +2111,35 @@ m.prototype.stepBinaryExpression = function(e, t, r) {
|
|
|
2109
2111
|
m.prototype.stepBlockStatement = function(e, t, r) {
|
|
2110
2112
|
var n = t.A || 0;
|
|
2111
2113
|
if (r = r.body[n])
|
|
2112
|
-
return t.A = n + 1, new
|
|
2114
|
+
return t.A = n + 1, new k(r, t.scope);
|
|
2113
2115
|
e.pop();
|
|
2114
2116
|
};
|
|
2115
2117
|
m.prototype.stepBreakStatement = function(e, t, r) {
|
|
2116
|
-
|
|
2118
|
+
rt(this, 1, void 0, r.label && r.label.name);
|
|
2117
2119
|
};
|
|
2118
2120
|
m.prototype.Hb = 0;
|
|
2119
2121
|
m.prototype.stepCallExpression = function(e, t, r) {
|
|
2120
2122
|
if (!t.ia) {
|
|
2121
2123
|
t.ia = 1;
|
|
2122
|
-
var n = new
|
|
2124
|
+
var n = new k(r.callee, t.scope);
|
|
2123
2125
|
return n.sa = !0, n;
|
|
2124
2126
|
}
|
|
2125
2127
|
if (t.ia === 1) {
|
|
2126
2128
|
t.ia = 2;
|
|
2127
2129
|
var i = t.value;
|
|
2128
2130
|
if (Array.isArray(i)) {
|
|
2129
|
-
if (t.U =
|
|
2130
|
-
return t.ia = 1,
|
|
2131
|
+
if (t.U = cn(this, i), i[0] === De ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2132
|
+
return t.ia = 1, it(this, i, t.value);
|
|
2131
2133
|
} else
|
|
2132
2134
|
t.U = i;
|
|
2133
2135
|
t.F = [], t.A = 0;
|
|
2134
2136
|
}
|
|
2135
2137
|
if (i = t.U, !t.Qa) {
|
|
2136
2138
|
if (t.A !== 0 && t.F.push(t.value), r.arguments[t.A])
|
|
2137
|
-
return new
|
|
2139
|
+
return new k(r.arguments[t.A++], t.scope);
|
|
2138
2140
|
if (r.type === "NewExpression") {
|
|
2139
|
-
if (i instanceof
|
|
2140
|
-
t.B =
|
|
2141
|
+
if (i instanceof M && !i.Ab || C(this, this.j, re(this, r.callee) + " is not a constructor"), i === this.qa)
|
|
2142
|
+
t.B = _e(this);
|
|
2141
2143
|
else {
|
|
2142
2144
|
var a = i.h.prototype;
|
|
2143
2145
|
(typeof a != "object" || a === null) && (a = this.M), t.B = this.s(a);
|
|
@@ -2149,12 +2151,12 @@ m.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2149
2151
|
if (t.eb)
|
|
2150
2152
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2151
2153
|
else {
|
|
2152
|
-
if (t.eb = !0, i instanceof
|
|
2153
|
-
for (r =
|
|
2154
|
+
if (t.eb = !0, i instanceof M || C(this, this.j, re(this, r.callee) + " is not a function"), e = i.node) {
|
|
2155
|
+
for (r = Xt(this, e.body, i.Va), n = _e(this), i = 0; i < t.F.length; i++)
|
|
2154
2156
|
this.g(n, i, t.F[i]);
|
|
2155
2157
|
for (this.g(r.object, "arguments", n), i = 0; i < e.oa.length; i++)
|
|
2156
2158
|
this.g(r.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2157
|
-
return r.S || (t.B = Vt(this, t.B)), this.g(r.object, "this", t.B,
|
|
2159
|
+
return r.S || (t.B = Vt(this, t.B)), this.g(r.object, "this", t.B, en), t.value = void 0, new k(e.body, r);
|
|
2158
2160
|
}
|
|
2159
2161
|
if (i.eval)
|
|
2160
2162
|
if (i = t.F[0], typeof i != "string")
|
|
@@ -2163,9 +2165,9 @@ m.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2163
2165
|
try {
|
|
2164
2166
|
n = Ue(String(i), "eval" + this.Hb++);
|
|
2165
2167
|
} catch (u) {
|
|
2166
|
-
|
|
2168
|
+
C(this, this.T, "Invalid code: " + u.message);
|
|
2167
2169
|
}
|
|
2168
|
-
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body,
|
|
2170
|
+
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body, gt(i, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r = Xt(this, n, r) : et(this, n, r), this.value = void 0, new k(i, r);
|
|
2169
2171
|
}
|
|
2170
2172
|
else if (i.Ta)
|
|
2171
2173
|
t.scope.S || (t.B = Vt(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
@@ -2175,35 +2177,35 @@ m.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2175
2177
|
t.value = u, s.za = !1;
|
|
2176
2178
|
}), this.za = !0, t.scope.S || (t.B = Vt(this, t.B)), i.Za.apply(t.B, n);
|
|
2177
2179
|
} else
|
|
2178
|
-
|
|
2180
|
+
C(this, this.j, re(this, r.callee) + " is not callable");
|
|
2179
2181
|
}
|
|
2180
2182
|
};
|
|
2181
2183
|
m.prototype.stepConditionalExpression = function(e, t, r) {
|
|
2182
2184
|
var n = t.na || 0;
|
|
2183
2185
|
if (n === 0)
|
|
2184
|
-
return t.na = 1, new
|
|
2186
|
+
return t.na = 1, new k(r.test, t.scope);
|
|
2185
2187
|
if (n === 1) {
|
|
2186
2188
|
if (t.na = 2, (n = !!t.value) && r.da)
|
|
2187
|
-
return new
|
|
2189
|
+
return new k(r.da, t.scope);
|
|
2188
2190
|
if (!n && r.alternate)
|
|
2189
|
-
return new
|
|
2191
|
+
return new k(r.alternate, t.scope);
|
|
2190
2192
|
this.value = void 0;
|
|
2191
2193
|
}
|
|
2192
2194
|
e.pop(), r.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
2193
2195
|
};
|
|
2194
2196
|
m.prototype.stepContinueStatement = function(e, t, r) {
|
|
2195
|
-
|
|
2197
|
+
rt(this, 2, void 0, r.label && r.label.name);
|
|
2196
2198
|
};
|
|
2197
2199
|
m.prototype.stepDebuggerStatement = function(e) {
|
|
2198
2200
|
e.pop();
|
|
2199
2201
|
};
|
|
2200
2202
|
m.prototype.stepDoWhileStatement = function(e, t, r) {
|
|
2201
2203
|
if (r.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2202
|
-
return t.ga = !0, new
|
|
2204
|
+
return t.ga = !0, new k(r.test, t.scope);
|
|
2203
2205
|
if (!t.value)
|
|
2204
2206
|
e.pop();
|
|
2205
2207
|
else if (r.body)
|
|
2206
|
-
return t.ga = !1, t.W = !0, new
|
|
2208
|
+
return t.ga = !1, t.W = !0, new k(r.body, t.scope);
|
|
2207
2209
|
};
|
|
2208
2210
|
m.prototype.stepEmptyStatement = function(e) {
|
|
2209
2211
|
e.pop();
|
|
@@ -2211,23 +2213,23 @@ m.prototype.stepEmptyStatement = function(e) {
|
|
|
2211
2213
|
m.prototype.stepEvalProgram_ = function(e, t, r) {
|
|
2212
2214
|
var n = t.A || 0;
|
|
2213
2215
|
if (r = r.body[n])
|
|
2214
|
-
return t.A = n + 1, new
|
|
2216
|
+
return t.A = n + 1, new k(r, t.scope);
|
|
2215
2217
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2216
2218
|
};
|
|
2217
2219
|
m.prototype.stepExpressionStatement = function(e, t, r) {
|
|
2218
2220
|
if (!t.ka)
|
|
2219
|
-
return this.value = void 0, t.ka = !0, new
|
|
2221
|
+
return this.value = void 0, t.ka = !0, new k(r.la, t.scope);
|
|
2220
2222
|
e.pop(), this.value = t.value;
|
|
2221
2223
|
};
|
|
2222
2224
|
m.prototype.stepForInStatement = function(e, t, r) {
|
|
2223
2225
|
if (!t.Ub && (t.Ub = !0, r.left.fa && r.left.fa[0].ua))
|
|
2224
|
-
return t.scope.S &&
|
|
2226
|
+
return t.scope.S && C(this, this.T, "for-in loop variable declaration may not have an initializer"), new k(r.left, t.scope);
|
|
2225
2227
|
if (!t.Ca)
|
|
2226
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2228
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new k(r.right, t.scope);
|
|
2227
2229
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2228
2230
|
e:
|
|
2229
2231
|
for (; ; ) {
|
|
2230
|
-
if (t.u instanceof
|
|
2232
|
+
if (t.u instanceof M)
|
|
2231
2233
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2232
2234
|
var n = t.wa.shift();
|
|
2233
2235
|
if (n === void 0)
|
|
@@ -2244,91 +2246,91 @@ m.prototype.stepForInStatement = function(e, t, r) {
|
|
|
2244
2246
|
break e;
|
|
2245
2247
|
}
|
|
2246
2248
|
}
|
|
2247
|
-
if (t.u =
|
|
2249
|
+
if (t.u = ve(this, t.u), t.wa = null, t.u === null) {
|
|
2248
2250
|
e.pop();
|
|
2249
2251
|
return;
|
|
2250
2252
|
}
|
|
2251
2253
|
}
|
|
2252
2254
|
if (!t.wb)
|
|
2253
2255
|
if (t.wb = !0, e = r.left, e.type === "VariableDeclaration")
|
|
2254
|
-
t.pa = [
|
|
2256
|
+
t.pa = [De, e.fa[0].id.name];
|
|
2255
2257
|
else
|
|
2256
|
-
return t.pa = null, t = new
|
|
2257
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n =
|
|
2258
|
-
return
|
|
2258
|
+
return t.pa = null, t = new k(e, t.scope), t.sa = !0, t;
|
|
2259
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n = un(this, t.pa, e)))
|
|
2260
|
+
return dn(this, n, t.pa, e);
|
|
2259
2261
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, r.body)
|
|
2260
|
-
return new
|
|
2262
|
+
return new k(r.body, t.scope);
|
|
2261
2263
|
};
|
|
2262
2264
|
m.prototype.stepForStatement = function(e, t, r) {
|
|
2263
2265
|
switch (t.na) {
|
|
2264
2266
|
default:
|
|
2265
2267
|
if (t.na = 1, r.ua)
|
|
2266
|
-
return new
|
|
2268
|
+
return new k(r.ua, t.scope);
|
|
2267
2269
|
break;
|
|
2268
2270
|
case 1:
|
|
2269
2271
|
if (t.na = 2, r.test)
|
|
2270
|
-
return new
|
|
2272
|
+
return new k(r.test, t.scope);
|
|
2271
2273
|
break;
|
|
2272
2274
|
case 2:
|
|
2273
2275
|
if (t.na = 3, r.test && !t.value)
|
|
2274
2276
|
e.pop();
|
|
2275
2277
|
else
|
|
2276
|
-
return t.W = !0, new
|
|
2278
|
+
return t.W = !0, new k(r.body, t.scope);
|
|
2277
2279
|
break;
|
|
2278
2280
|
case 3:
|
|
2279
2281
|
if (t.na = 1, r.update)
|
|
2280
|
-
return new
|
|
2282
|
+
return new k(r.update, t.scope);
|
|
2281
2283
|
}
|
|
2282
2284
|
};
|
|
2283
2285
|
m.prototype.stepFunctionDeclaration = function(e) {
|
|
2284
2286
|
e.pop();
|
|
2285
2287
|
};
|
|
2286
2288
|
m.prototype.stepFunctionExpression = function(e, t, r) {
|
|
2287
|
-
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e =
|
|
2289
|
+
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e = sn(this, e)), t.value = on(this, r, e, t.Pa), r.id && this.g(e.object, r.id.name, t.value, en);
|
|
2288
2290
|
};
|
|
2289
2291
|
m.prototype.stepIdentifier = function(e, t, r) {
|
|
2290
2292
|
if (e.pop(), t.sa)
|
|
2291
|
-
e[e.length - 1].value = [
|
|
2293
|
+
e[e.length - 1].value = [De, r.name];
|
|
2292
2294
|
else {
|
|
2293
|
-
if (t =
|
|
2294
|
-
return
|
|
2295
|
+
if (t = ln(this, r.name), this.P)
|
|
2296
|
+
return it(this, t, this.Na);
|
|
2295
2297
|
e[e.length - 1].value = t;
|
|
2296
2298
|
}
|
|
2297
2299
|
};
|
|
2298
2300
|
m.prototype.stepIfStatement = m.prototype.stepConditionalExpression;
|
|
2299
2301
|
m.prototype.stepLabeledStatement = function(e, t, r) {
|
|
2300
|
-
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new
|
|
2302
|
+
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new k(r.body, t.scope), t.labels = e, t;
|
|
2301
2303
|
};
|
|
2302
2304
|
m.prototype.stepLiteral = function(e, t, r) {
|
|
2303
|
-
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma),
|
|
2305
|
+
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma), nn(this, r, t), t = r), e[e.length - 1].value = t;
|
|
2304
2306
|
};
|
|
2305
2307
|
m.prototype.stepLogicalExpression = function(e, t, r) {
|
|
2306
2308
|
if (r.operator !== "&&" && r.operator !== "||")
|
|
2307
2309
|
throw SyntaxError("Unknown logical operator: " + r.operator);
|
|
2308
2310
|
if (!t.ja)
|
|
2309
|
-
return t.ja = !0, new
|
|
2311
|
+
return t.ja = !0, new k(r.left, t.scope);
|
|
2310
2312
|
if (t.Da)
|
|
2311
2313
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2312
2314
|
else if (r.operator === "&&" && !t.value || r.operator === "||" && t.value)
|
|
2313
2315
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2314
2316
|
else
|
|
2315
|
-
return t.Da = !0, new
|
|
2317
|
+
return t.Da = !0, new k(r.right, t.scope);
|
|
2316
2318
|
};
|
|
2317
2319
|
m.prototype.stepMemberExpression = function(e, t, r) {
|
|
2318
2320
|
if (!t.Ca)
|
|
2319
|
-
return t.Ca = !0, new
|
|
2321
|
+
return t.Ca = !0, new k(r.object, t.scope);
|
|
2320
2322
|
if (r.bb)
|
|
2321
2323
|
if (t.Vb)
|
|
2322
2324
|
r = t.value;
|
|
2323
2325
|
else
|
|
2324
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2326
|
+
return t.u = t.value, t.Vb = !0, new k(r.Wa, t.scope);
|
|
2325
2327
|
else
|
|
2326
2328
|
t.u = t.value, r = r.Wa.name;
|
|
2327
2329
|
if (e.pop(), t.sa)
|
|
2328
2330
|
e[e.length - 1].value = [t.u, r];
|
|
2329
2331
|
else {
|
|
2330
2332
|
if (r = this.G(t.u, r), this.P)
|
|
2331
|
-
return
|
|
2333
|
+
return it(this, r, t.u);
|
|
2332
2334
|
e[e.length - 1].value = r;
|
|
2333
2335
|
}
|
|
2334
2336
|
};
|
|
@@ -2348,10 +2350,10 @@ m.prototype.stepObjectExpression = function(e, t, r) {
|
|
|
2348
2350
|
a = s.value;
|
|
2349
2351
|
else
|
|
2350
2352
|
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2351
|
-
return t.Pa = a, new
|
|
2353
|
+
return t.Pa = a, new k(i.value, t.scope);
|
|
2352
2354
|
}
|
|
2353
2355
|
for (s in t.Ja)
|
|
2354
|
-
r = t.Ja[s], "get" in r || "set" in r ? this.g(t.u, s,
|
|
2356
|
+
r = t.Ja[s], "get" in r || "set" in r ? this.g(t.u, s, Qe, {
|
|
2355
2357
|
configurable: !0,
|
|
2356
2358
|
enumerable: !0,
|
|
2357
2359
|
get: r.get,
|
|
@@ -2361,35 +2363,35 @@ m.prototype.stepObjectExpression = function(e, t, r) {
|
|
|
2361
2363
|
};
|
|
2362
2364
|
m.prototype.stepProgram = function(e, t, r) {
|
|
2363
2365
|
if (e = r.body.shift())
|
|
2364
|
-
return t.done = !1, new
|
|
2366
|
+
return t.done = !1, new k(e, t.scope);
|
|
2365
2367
|
t.done = !0;
|
|
2366
2368
|
};
|
|
2367
2369
|
m.prototype.stepReturnStatement = function(e, t, r) {
|
|
2368
2370
|
if (r.K && !t.ka)
|
|
2369
|
-
return t.ka = !0, new
|
|
2370
|
-
|
|
2371
|
+
return t.ka = !0, new k(r.K, t.scope);
|
|
2372
|
+
rt(this, 3, t.value);
|
|
2371
2373
|
};
|
|
2372
2374
|
m.prototype.stepSequenceExpression = function(e, t, r) {
|
|
2373
2375
|
var n = t.A || 0;
|
|
2374
2376
|
if (r = r.xb[n])
|
|
2375
|
-
return t.A = n + 1, new
|
|
2377
|
+
return t.A = n + 1, new k(r, t.scope);
|
|
2376
2378
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2377
2379
|
};
|
|
2378
2380
|
m.prototype.stepSwitchStatement = function(e, t, r) {
|
|
2379
2381
|
if (!t.ga)
|
|
2380
|
-
return t.ga = 1, new
|
|
2382
|
+
return t.ga = 1, new k(r.Qb, t.scope);
|
|
2381
2383
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2382
2384
|
var n = t.gb || 0, i = r.tb[n];
|
|
2383
2385
|
if (t.Ha || !i || i.test)
|
|
2384
2386
|
if (i || t.Ha || t.cb === -1)
|
|
2385
2387
|
if (i) {
|
|
2386
2388
|
if (!t.Ha && !t.Fb && i.test)
|
|
2387
|
-
return t.Fb = !0, new
|
|
2389
|
+
return t.Fb = !0, new k(i.test, t.scope);
|
|
2388
2390
|
if (t.Ha || t.value === t.hc) {
|
|
2389
2391
|
t.Ha = !0;
|
|
2390
2392
|
var a = t.A || 0;
|
|
2391
2393
|
if (i.da[a])
|
|
2392
|
-
return t.Zb = !0, t.A = a + 1, new
|
|
2394
|
+
return t.Zb = !0, t.A = a + 1, new k(i.da[a], t.scope);
|
|
2393
2395
|
}
|
|
2394
2396
|
t.Fb = !1, t.A = 0, t.gb = n + 1;
|
|
2395
2397
|
} else {
|
|
@@ -2403,26 +2405,26 @@ m.prototype.stepSwitchStatement = function(e, t, r) {
|
|
|
2403
2405
|
}
|
|
2404
2406
|
};
|
|
2405
2407
|
m.prototype.stepThisExpression = function(e) {
|
|
2406
|
-
e.pop(), e[e.length - 1].value =
|
|
2408
|
+
e.pop(), e[e.length - 1].value = ln(this, "this");
|
|
2407
2409
|
};
|
|
2408
2410
|
m.prototype.stepThrowStatement = function(e, t, r) {
|
|
2409
2411
|
if (t.ka)
|
|
2410
|
-
|
|
2412
|
+
C(this, t.value);
|
|
2411
2413
|
else
|
|
2412
|
-
return t.ka = !0, new
|
|
2414
|
+
return t.ka = !0, new k(r.K, t.scope);
|
|
2413
2415
|
};
|
|
2414
2416
|
m.prototype.stepTryStatement = function(e, t, r) {
|
|
2415
2417
|
if (!t.Rb)
|
|
2416
|
-
return t.Rb = !0, new
|
|
2418
|
+
return t.Rb = !0, new k(r.block, t.scope);
|
|
2417
2419
|
if (t.ea && t.ea.type === 4 && !t.Tb && r.Ea)
|
|
2418
|
-
return t.Tb = !0, e =
|
|
2420
|
+
return t.Tb = !0, e = sn(this, t.scope), this.g(e.object, r.Ea.Ua.name, t.ea.value), t.ea = void 0, new k(r.Ea.body, e);
|
|
2419
2421
|
if (!t.Sb && r.fb)
|
|
2420
|
-
return t.Sb = !0, new
|
|
2421
|
-
e.pop(), t.ea &&
|
|
2422
|
+
return t.Sb = !0, new k(r.fb, t.scope);
|
|
2423
|
+
e.pop(), t.ea && rt(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2422
2424
|
};
|
|
2423
2425
|
m.prototype.stepUnaryExpression = function(e, t, r) {
|
|
2424
2426
|
if (!t.ka)
|
|
2425
|
-
return t.ka = !0, e = new
|
|
2427
|
+
return t.ka = !0, e = new k(r.K, t.scope), e.sa = r.operator === "delete", e;
|
|
2426
2428
|
e.pop();
|
|
2427
2429
|
var n = t.value;
|
|
2428
2430
|
switch (r.operator) {
|
|
@@ -2441,11 +2443,11 @@ m.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2441
2443
|
case "delete":
|
|
2442
2444
|
if (r = !0, Array.isArray(n)) {
|
|
2443
2445
|
var i = n[0];
|
|
2444
|
-
i ===
|
|
2446
|
+
i === De && (i = t.scope), n = String(n[1]);
|
|
2445
2447
|
try {
|
|
2446
2448
|
delete i.h[n];
|
|
2447
2449
|
} catch {
|
|
2448
|
-
t.scope.S ?
|
|
2450
|
+
t.scope.S ? C(this, this.j, "Cannot delete property '" + n + "' of '" + i + "'") : r = !1;
|
|
2449
2451
|
}
|
|
2450
2452
|
}
|
|
2451
2453
|
n = r;
|
|
@@ -2463,11 +2465,11 @@ m.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2463
2465
|
};
|
|
2464
2466
|
m.prototype.stepUpdateExpression = function(e, t, r) {
|
|
2465
2467
|
if (!t.ja)
|
|
2466
|
-
return t.ja = !0, e = new
|
|
2468
|
+
return t.ja = !0, e = new k(r.K, t.scope), e.sa = !0, e;
|
|
2467
2469
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2468
|
-
var n =
|
|
2470
|
+
var n = cn(this, t.Ga);
|
|
2469
2471
|
if (t.ma = n, this.P)
|
|
2470
|
-
return t.Ba = !0,
|
|
2472
|
+
return t.Ba = !0, it(this, n, t.Ga);
|
|
2471
2473
|
}
|
|
2472
2474
|
if (t.ta)
|
|
2473
2475
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
@@ -2478,8 +2480,8 @@ m.prototype.stepUpdateExpression = function(e, t, r) {
|
|
|
2478
2480
|
i = n - 1;
|
|
2479
2481
|
else
|
|
2480
2482
|
throw SyntaxError("Unknown update expression: " + r.operator);
|
|
2481
|
-
if (r = r.prefix ? i : n, n =
|
|
2482
|
-
return t.ta = !0, t.ib = r,
|
|
2483
|
+
if (r = r.prefix ? i : n, n = un(this, t.Ga, i))
|
|
2484
|
+
return t.ta = !0, t.ib = r, dn(this, n, t.Ga, i);
|
|
2483
2485
|
e.pop(), e[e.length - 1].value = r;
|
|
2484
2486
|
}
|
|
2485
2487
|
};
|
|
@@ -2488,13 +2490,13 @@ m.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
|
2488
2490
|
var n = t.A || 0, i = r[n];
|
|
2489
2491
|
for (t.Bb && i && (vr(this, i.id.name, t.value), t.Bb = !1, i = r[++n]); i; ) {
|
|
2490
2492
|
if (i.ua)
|
|
2491
|
-
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new
|
|
2493
|
+
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new k(i.ua, t.scope);
|
|
2492
2494
|
i = r[++n];
|
|
2493
2495
|
}
|
|
2494
2496
|
e.pop();
|
|
2495
2497
|
};
|
|
2496
2498
|
m.prototype.stepWithStatement = function(e, t, r) {
|
|
2497
|
-
return t.Ca ? (e.pop(), e =
|
|
2499
|
+
return t.Ca ? (e.pop(), e = sn(this, t.scope, t.value), new k(r.body, e)) : (t.Ca = !0, new k(r.object, t.scope));
|
|
2498
2500
|
};
|
|
2499
2501
|
m.prototype.stepWhileStatement = m.prototype.stepDoWhileStatement;
|
|
2500
2502
|
Se.Interpreter = m;
|
|
@@ -2512,7 +2514,7 @@ m.prototype.pseudoToNative = m.prototype.R;
|
|
|
2512
2514
|
m.prototype.getGlobalScope = m.prototype.Xb;
|
|
2513
2515
|
m.prototype.getStateStack = m.prototype.Yb;
|
|
2514
2516
|
m.prototype.setStateStack = m.prototype.ec;
|
|
2515
|
-
m.VALUE_IN_DESCRIPTOR =
|
|
2517
|
+
m.VALUE_IN_DESCRIPTOR = Qe;
|
|
2516
2518
|
const vi = (e) => e.split(`
|
|
2517
2519
|
`).map((t) => {
|
|
2518
2520
|
const r = t.trim();
|
|
@@ -2552,24 +2554,24 @@ const vi = (e) => e.split(`
|
|
|
2552
2554
|
Fe.warn("Skipping evaluation of empty code block.");
|
|
2553
2555
|
return;
|
|
2554
2556
|
}
|
|
2555
|
-
const
|
|
2557
|
+
const S = `
|
|
2556
2558
|
function theFunction() {
|
|
2557
2559
|
${g}
|
|
2558
2560
|
|
|
2559
2561
|
${v}
|
|
2560
2562
|
}
|
|
2561
2563
|
theFunction();
|
|
2562
|
-
`,
|
|
2563
|
-
const
|
|
2564
|
-
a == null || a(
|
|
2565
|
-
},
|
|
2566
|
-
f.forEach(([
|
|
2567
|
-
const
|
|
2568
|
-
E.setProperty(N, Qn(
|
|
2569
|
-
}), E.setProperty(N, "setRootState", E.createNativeFunction(
|
|
2564
|
+
`, U = (E, N) => {
|
|
2565
|
+
const W = pr(u, E, N);
|
|
2566
|
+
a == null || a(W);
|
|
2567
|
+
}, $ = function(E, N) {
|
|
2568
|
+
f.forEach(([W, G]) => {
|
|
2569
|
+
const b = JSON.stringify(G);
|
|
2570
|
+
E.setProperty(N, Qn(W), b);
|
|
2571
|
+
}), E.setProperty(N, "setRootState", E.createNativeFunction(U));
|
|
2570
2572
|
};
|
|
2571
2573
|
try {
|
|
2572
|
-
const E = new m(
|
|
2574
|
+
const E = new m(S, $);
|
|
2573
2575
|
return E.run(), E.pseudoToNative(E.value);
|
|
2574
2576
|
} catch (E) {
|
|
2575
2577
|
Fe.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
@@ -2577,8 +2579,8 @@ theFunction();
|
|
|
2577
2579
|
});
|
|
2578
2580
|
return;
|
|
2579
2581
|
}
|
|
2580
|
-
},
|
|
2581
|
-
function
|
|
2582
|
+
}, bi = (e) => Ie() ? Qr(e) : yi(e);
|
|
2583
|
+
function tt({
|
|
2582
2584
|
code: e,
|
|
2583
2585
|
context: t,
|
|
2584
2586
|
localState: r,
|
|
@@ -2603,7 +2605,7 @@ function et({
|
|
|
2603
2605
|
localState: r
|
|
2604
2606
|
};
|
|
2605
2607
|
try {
|
|
2606
|
-
return
|
|
2608
|
+
return bi(u);
|
|
2607
2609
|
} catch (f) {
|
|
2608
2610
|
Fe.error("Failed code evaluation: " + f.message, {
|
|
2609
2611
|
code: e
|
|
@@ -2611,7 +2613,7 @@ function et({
|
|
|
2611
2613
|
return;
|
|
2612
2614
|
}
|
|
2613
2615
|
}
|
|
2614
|
-
const
|
|
2616
|
+
const xi = ({
|
|
2615
2617
|
block: e,
|
|
2616
2618
|
context: t,
|
|
2617
2619
|
localState: r,
|
|
@@ -2620,7 +2622,7 @@ const bi = ({
|
|
|
2620
2622
|
}) => {
|
|
2621
2623
|
if (!e.bindings)
|
|
2622
2624
|
return e;
|
|
2623
|
-
const a =
|
|
2625
|
+
const a = Zt(e), s = {
|
|
2624
2626
|
...a,
|
|
2625
2627
|
properties: {
|
|
2626
2628
|
...a.properties
|
|
@@ -2630,7 +2632,7 @@ const bi = ({
|
|
|
2630
2632
|
}
|
|
2631
2633
|
};
|
|
2632
2634
|
for (const u in e.bindings) {
|
|
2633
|
-
const f = e.bindings[u], g =
|
|
2635
|
+
const f = e.bindings[u], g = tt({
|
|
2634
2636
|
code: f,
|
|
2635
2637
|
localState: r,
|
|
2636
2638
|
rootState: n,
|
|
@@ -2641,7 +2643,7 @@ const bi = ({
|
|
|
2641
2643
|
}
|
|
2642
2644
|
return s;
|
|
2643
2645
|
};
|
|
2644
|
-
function
|
|
2646
|
+
function pt({
|
|
2645
2647
|
block: e,
|
|
2646
2648
|
context: t,
|
|
2647
2649
|
shouldEvaluateBindings: r,
|
|
@@ -2650,7 +2652,7 @@ function ft({
|
|
|
2650
2652
|
rootSetState: a
|
|
2651
2653
|
}) {
|
|
2652
2654
|
const s = e;
|
|
2653
|
-
return r ?
|
|
2655
|
+
return r ? xi({
|
|
2654
2656
|
block: s,
|
|
2655
2657
|
localState: n,
|
|
2656
2658
|
rootState: i,
|
|
@@ -2664,7 +2666,7 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2664
2666
|
registeredComponents: r
|
|
2665
2667
|
}) => {
|
|
2666
2668
|
var a;
|
|
2667
|
-
const n = (a =
|
|
2669
|
+
const n = (a = pt({
|
|
2668
2670
|
block: e,
|
|
2669
2671
|
localState: t.localState,
|
|
2670
2672
|
rootState: t.rootState,
|
|
@@ -2690,7 +2692,7 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2690
2692
|
} = e;
|
|
2691
2693
|
if (!(r != null && r.collection))
|
|
2692
2694
|
return;
|
|
2693
|
-
const i =
|
|
2695
|
+
const i = tt({
|
|
2694
2696
|
code: r.collection,
|
|
2695
2697
|
localState: t.localState,
|
|
2696
2698
|
rootState: t.rootState,
|
|
@@ -2713,7 +2715,7 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2713
2715
|
},
|
|
2714
2716
|
block: n
|
|
2715
2717
|
}));
|
|
2716
|
-
},
|
|
2718
|
+
}, xr = {
|
|
2717
2719
|
small: {
|
|
2718
2720
|
min: 320,
|
|
2719
2721
|
default: 321,
|
|
@@ -2729,11 +2731,11 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2729
2731
|
default: 991,
|
|
2730
2732
|
max: 1200
|
|
2731
2733
|
}
|
|
2732
|
-
}, er = (e, t =
|
|
2734
|
+
}, er = (e, t = xr) => `@media (max-width: ${t[e].max}px)`, Sr = ({
|
|
2733
2735
|
small: e,
|
|
2734
2736
|
medium: t
|
|
2735
2737
|
}) => {
|
|
2736
|
-
const r =
|
|
2738
|
+
const r = Zt(xr);
|
|
2737
2739
|
if (!e || !t)
|
|
2738
2740
|
return r;
|
|
2739
2741
|
const n = Math.floor(e / 2);
|
|
@@ -2758,7 +2760,7 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2758
2760
|
}, Ci = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), wr = (e) => Object.entries(e).map(([r, n]) => {
|
|
2759
2761
|
if (typeof n == "string")
|
|
2760
2762
|
return `${Ci(r)}: ${n};`;
|
|
2761
|
-
}).filter(
|
|
2763
|
+
}).filter(Kt), Ei = (e) => wr(e).join(`
|
|
2762
2764
|
`), $t = ({
|
|
2763
2765
|
mediaQuery: e,
|
|
2764
2766
|
className: t,
|
|
@@ -2771,12 +2773,12 @@ const Si = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2771
2773
|
${n}
|
|
2772
2774
|
}` : n;
|
|
2773
2775
|
};
|
|
2774
|
-
function
|
|
2776
|
+
function yt(e) {
|
|
2775
2777
|
return /* @__PURE__ */ p("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2776
2778
|
}
|
|
2777
|
-
function
|
|
2779
|
+
function fn(e) {
|
|
2778
2780
|
function t() {
|
|
2779
|
-
const n =
|
|
2781
|
+
const n = pt({
|
|
2780
2782
|
block: e.block,
|
|
2781
2783
|
localState: e.context.localState,
|
|
2782
2784
|
rootState: e.context.rootState,
|
|
@@ -2784,11 +2786,11 @@ function dn(e) {
|
|
|
2784
2786
|
context: e.context.context,
|
|
2785
2787
|
shouldEvaluateBindings: !0
|
|
2786
2788
|
});
|
|
2787
|
-
return
|
|
2789
|
+
return Kt(n.hide) ? !n.hide : Kt(n.show) ? n.show : !0;
|
|
2788
2790
|
}
|
|
2789
2791
|
function r() {
|
|
2790
2792
|
var E;
|
|
2791
|
-
const n =
|
|
2793
|
+
const n = pt({
|
|
2792
2794
|
block: e.block,
|
|
2793
2795
|
localState: e.context.localState,
|
|
2794
2796
|
rootState: e.context.rootState,
|
|
@@ -2800,17 +2802,17 @@ function dn(e) {
|
|
|
2800
2802
|
), u = i == null ? void 0 : i.large, f = i == null ? void 0 : i.medium, g = i == null ? void 0 : i.small, v = n.id;
|
|
2801
2803
|
if (!v)
|
|
2802
2804
|
return "";
|
|
2803
|
-
const
|
|
2805
|
+
const S = u ? $t({
|
|
2804
2806
|
className: v,
|
|
2805
2807
|
styles: u
|
|
2806
|
-
}) : "",
|
|
2808
|
+
}) : "", U = f ? $t({
|
|
2807
2809
|
className: v,
|
|
2808
2810
|
styles: f,
|
|
2809
2811
|
mediaQuery: er(
|
|
2810
2812
|
"medium",
|
|
2811
2813
|
s
|
|
2812
2814
|
)
|
|
2813
|
-
}) : "",
|
|
2815
|
+
}) : "", $ = g ? $t({
|
|
2814
2816
|
className: v,
|
|
2815
2817
|
styles: g,
|
|
2816
2818
|
mediaQuery: er(
|
|
@@ -2818,14 +2820,14 @@ function dn(e) {
|
|
|
2818
2820
|
s
|
|
2819
2821
|
)
|
|
2820
2822
|
}) : "";
|
|
2821
|
-
return [
|
|
2823
|
+
return [S, U, $].join(" ");
|
|
2822
2824
|
}
|
|
2823
|
-
return /* @__PURE__ */ p(P, { children: r() && t() ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
2825
|
+
return /* @__PURE__ */ p(P, { children: r() && t() ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(yt, { styles: r() }) }) : null });
|
|
2824
2826
|
}
|
|
2825
2827
|
function Ii(e) {
|
|
2826
2828
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2827
2829
|
}
|
|
2828
|
-
const Ti = (e) => `on${Ii(e)}`, ji = (e, t) => (r) =>
|
|
2830
|
+
const Ti = (e) => `on${Ii(e)}`, ji = (e, t) => (r) => tt({
|
|
2829
2831
|
code: e,
|
|
2830
2832
|
context: t.context,
|
|
2831
2833
|
localState: t.localState,
|
|
@@ -2834,7 +2836,7 @@ const Ti = (e) => `on${Ii(e)}`, ji = (e, t) => (r) => et({
|
|
|
2834
2836
|
event: r,
|
|
2835
2837
|
isExpression: !1
|
|
2836
2838
|
});
|
|
2837
|
-
function
|
|
2839
|
+
function Yt(e) {
|
|
2838
2840
|
const t = {}, r = e.block.actions ?? {};
|
|
2839
2841
|
for (const n in r) {
|
|
2840
2842
|
if (!r.hasOwnProperty(n))
|
|
@@ -2842,7 +2844,7 @@ function Xt(e) {
|
|
|
2842
2844
|
const i = r[n];
|
|
2843
2845
|
let a = Ti(n);
|
|
2844
2846
|
if (e.stripPrefix)
|
|
2845
|
-
switch (
|
|
2847
|
+
switch (nt) {
|
|
2846
2848
|
case "vue2":
|
|
2847
2849
|
case "vue3":
|
|
2848
2850
|
a = a.replace("v-on:", "");
|
|
@@ -2855,13 +2857,15 @@ function Xt(e) {
|
|
|
2855
2857
|
}
|
|
2856
2858
|
return t;
|
|
2857
2859
|
}
|
|
2858
|
-
function Ai(
|
|
2860
|
+
function Ai({
|
|
2861
|
+
properties: e
|
|
2862
|
+
}) {
|
|
2859
2863
|
return e.className = e.class, delete e.class, e;
|
|
2860
2864
|
}
|
|
2861
2865
|
const Ri = (e) => ({
|
|
2862
2866
|
href: e.href
|
|
2863
2867
|
});
|
|
2864
|
-
function
|
|
2868
|
+
function mt({
|
|
2865
2869
|
block: e,
|
|
2866
2870
|
context: t
|
|
2867
2871
|
}) {
|
|
@@ -2873,10 +2877,14 @@ function ht({
|
|
|
2873
2877
|
style: e.style ? Oi(e.style) : void 0,
|
|
2874
2878
|
class: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
|
|
2875
2879
|
};
|
|
2876
|
-
return Ai(
|
|
2880
|
+
return Ai({
|
|
2881
|
+
properties: r,
|
|
2882
|
+
context: t,
|
|
2883
|
+
block: e
|
|
2884
|
+
});
|
|
2877
2885
|
}
|
|
2878
2886
|
function Oi(e) {
|
|
2879
|
-
switch (
|
|
2887
|
+
switch (nt) {
|
|
2880
2888
|
case "svelte":
|
|
2881
2889
|
case "vue2":
|
|
2882
2890
|
case "vue3":
|
|
@@ -2895,11 +2903,11 @@ function tr(e) {
|
|
|
2895
2903
|
e.hasChildren ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ Z(
|
|
2896
2904
|
e.Wrapper,
|
|
2897
2905
|
{
|
|
2898
|
-
...
|
|
2906
|
+
...mt({
|
|
2899
2907
|
block: e.block,
|
|
2900
2908
|
context: e.context
|
|
2901
2909
|
}),
|
|
2902
|
-
...
|
|
2910
|
+
...Yt({
|
|
2903
2911
|
block: e.block,
|
|
2904
2912
|
rootState: e.context.rootState,
|
|
2905
2913
|
rootSetState: e.context.rootSetState,
|
|
@@ -2916,11 +2924,11 @@ function tr(e) {
|
|
|
2916
2924
|
) }) : /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
2917
2925
|
e.Wrapper,
|
|
2918
2926
|
{
|
|
2919
|
-
...
|
|
2927
|
+
...mt({
|
|
2920
2928
|
block: e.block,
|
|
2921
2929
|
context: e.context
|
|
2922
2930
|
}),
|
|
2923
|
-
...
|
|
2931
|
+
...Yt({
|
|
2924
2932
|
block: e.block,
|
|
2925
2933
|
rootState: e.context.rootState,
|
|
2926
2934
|
rootSetState: e.context.rootSetState,
|
|
@@ -2939,11 +2947,11 @@ function Pi(e) {
|
|
|
2939
2947
|
{
|
|
2940
2948
|
...e.wrapperProps,
|
|
2941
2949
|
attributes: {
|
|
2942
|
-
...
|
|
2950
|
+
...mt({
|
|
2943
2951
|
block: e.block,
|
|
2944
2952
|
context: e.context
|
|
2945
2953
|
}),
|
|
2946
|
-
...
|
|
2954
|
+
...Yt({
|
|
2947
2955
|
block: e.block,
|
|
2948
2956
|
rootState: e.context.rootState,
|
|
2949
2957
|
rootSetState: e.context.rootSetState,
|
|
@@ -2975,7 +2983,7 @@ const Ni = ({
|
|
|
2975
2983
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
2976
2984
|
*/
|
|
2977
2985
|
...i ? {
|
|
2978
|
-
attributes:
|
|
2986
|
+
attributes: mt({
|
|
2979
2987
|
block: t,
|
|
2980
2988
|
context: s
|
|
2981
2989
|
})
|
|
@@ -2983,7 +2991,7 @@ const Ni = ({
|
|
|
2983
2991
|
};
|
|
2984
2992
|
function nr(e) {
|
|
2985
2993
|
var n, i;
|
|
2986
|
-
const [t, r] =
|
|
2994
|
+
const [t, r] = L(
|
|
2987
2995
|
() => e.isInteractive ? Pi : e.componentRef
|
|
2988
2996
|
);
|
|
2989
2997
|
return /* @__PURE__ */ p(P, { children: e.componentRef ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ Z(
|
|
@@ -3000,7 +3008,7 @@ function nr(e) {
|
|
|
3000
3008
|
}),
|
|
3001
3009
|
children: [
|
|
3002
3010
|
(n = e.blockChildren) == null ? void 0 : n.map((a) => /* @__PURE__ */ p(
|
|
3003
|
-
|
|
3011
|
+
bt,
|
|
3004
3012
|
{
|
|
3005
3013
|
block: a,
|
|
3006
3014
|
context: e.context,
|
|
@@ -3009,7 +3017,7 @@ function nr(e) {
|
|
|
3009
3017
|
"block-" + a.id
|
|
3010
3018
|
)),
|
|
3011
3019
|
(i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ p(
|
|
3012
|
-
|
|
3020
|
+
fn,
|
|
3013
3021
|
{
|
|
3014
3022
|
block: a,
|
|
3015
3023
|
context: e.context
|
|
@@ -3021,9 +3029,9 @@ function nr(e) {
|
|
|
3021
3029
|
) }) : null });
|
|
3022
3030
|
}
|
|
3023
3031
|
function Mi(e) {
|
|
3024
|
-
const [t, r] =
|
|
3025
|
-
return /* @__PURE__ */ p(
|
|
3026
|
-
|
|
3032
|
+
const [t, r] = L(() => e.repeatContext);
|
|
3033
|
+
return /* @__PURE__ */ p(Qt.Provider, { value: t, children: /* @__PURE__ */ p(
|
|
3034
|
+
bt,
|
|
3027
3035
|
{
|
|
3028
3036
|
block: e.block,
|
|
3029
3037
|
context: t,
|
|
@@ -3031,8 +3039,8 @@ function Mi(e) {
|
|
|
3031
3039
|
}
|
|
3032
3040
|
) });
|
|
3033
3041
|
}
|
|
3034
|
-
function
|
|
3035
|
-
var v,
|
|
3042
|
+
function bt(e) {
|
|
3043
|
+
var v, S, U, $;
|
|
3036
3044
|
function t() {
|
|
3037
3045
|
return wi({
|
|
3038
3046
|
block: e.block,
|
|
@@ -3048,7 +3056,7 @@ function vt(e) {
|
|
|
3048
3056
|
}
|
|
3049
3057
|
function n() {
|
|
3050
3058
|
var E;
|
|
3051
|
-
return (E = e.block.repeat) != null && E.collection ? e.block :
|
|
3059
|
+
return (E = e.block.repeat) != null && E.collection ? e.block : pt({
|
|
3052
3060
|
block: e.block,
|
|
3053
3061
|
localState: e.context.localState,
|
|
3054
3062
|
rootState: e.context.rootState,
|
|
@@ -3061,9 +3069,9 @@ function vt(e) {
|
|
|
3061
3069
|
return e.block.tagName || "div";
|
|
3062
3070
|
}
|
|
3063
3071
|
function a() {
|
|
3064
|
-
var
|
|
3065
|
-
if ((
|
|
3066
|
-
return !!((
|
|
3072
|
+
var W, G;
|
|
3073
|
+
if ((W = e.block.repeat) != null && W.collection)
|
|
3074
|
+
return !!((G = r == null ? void 0 : r()) != null && G.length);
|
|
3067
3075
|
const E = "hide" in n() ? n().hide : !1;
|
|
3068
3076
|
return ("show" in n() ? n().show : !0) && !E;
|
|
3069
3077
|
}
|
|
@@ -3072,25 +3080,25 @@ function vt(e) {
|
|
|
3072
3080
|
return !((N = t == null ? void 0 : t()) != null && N.component) && !r() ? n().children ?? [] : [];
|
|
3073
3081
|
}
|
|
3074
3082
|
function u() {
|
|
3075
|
-
var E, N,
|
|
3083
|
+
var E, N, W, G, b;
|
|
3076
3084
|
return {
|
|
3077
3085
|
blockChildren: n().children ?? [],
|
|
3078
3086
|
componentRef: (E = t == null ? void 0 : t()) == null ? void 0 : E.component,
|
|
3079
3087
|
componentOptions: {
|
|
3080
3088
|
...Jr(n()),
|
|
3081
3089
|
builderContext: e.context,
|
|
3082
|
-
...((N = t == null ? void 0 : t()) == null ? void 0 : N.name) === "Symbol" || ((
|
|
3090
|
+
...((N = t == null ? void 0 : t()) == null ? void 0 : N.name) === "Symbol" || ((W = t == null ? void 0 : t()) == null ? void 0 : W.name) === "Columns" ? {
|
|
3083
3091
|
builderComponents: e.registeredComponents
|
|
3084
3092
|
} : {}
|
|
3085
3093
|
},
|
|
3086
3094
|
context: f,
|
|
3087
3095
|
registeredComponents: e.registeredComponents,
|
|
3088
3096
|
builderBlock: n(),
|
|
3089
|
-
includeBlockProps: ((
|
|
3090
|
-
isInteractive: !((
|
|
3097
|
+
includeBlockProps: ((G = t == null ? void 0 : t()) == null ? void 0 : G.noWrap) === !0,
|
|
3098
|
+
isInteractive: !((b = t == null ? void 0 : t()) != null && b.isRSC)
|
|
3091
3099
|
};
|
|
3092
3100
|
}
|
|
3093
|
-
const [f, g] =
|
|
3101
|
+
const [f, g] = L(() => e.context);
|
|
3094
3102
|
return /* @__PURE__ */ p(P, { children: a() ? /* @__PURE__ */ p(P, { children: (v = t == null ? void 0 : t()) != null && v.noWrap ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
3095
3103
|
nr,
|
|
3096
3104
|
{
|
|
@@ -3113,7 +3121,7 @@ function vt(e) {
|
|
|
3113
3121
|
hasChildren: !1
|
|
3114
3122
|
}
|
|
3115
3123
|
) }) : null,
|
|
3116
|
-
!Lt(i()) && r() ? /* @__PURE__ */ p(P, { children: (
|
|
3124
|
+
!Lt(i()) && r() ? /* @__PURE__ */ p(P, { children: (S = r()) == null ? void 0 : S.map((E, N) => /* @__PURE__ */ p(
|
|
3117
3125
|
Mi,
|
|
3118
3126
|
{
|
|
3119
3127
|
repeatContext: E.context,
|
|
@@ -3143,8 +3151,8 @@ function vt(e) {
|
|
|
3143
3151
|
isInteractive: u().isInteractive
|
|
3144
3152
|
}
|
|
3145
3153
|
),
|
|
3146
|
-
(
|
|
3147
|
-
|
|
3154
|
+
(U = s()) == null ? void 0 : U.map((E) => /* @__PURE__ */ p(
|
|
3155
|
+
bt,
|
|
3148
3156
|
{
|
|
3149
3157
|
block: E,
|
|
3150
3158
|
context: f,
|
|
@@ -3152,8 +3160,8 @@ function vt(e) {
|
|
|
3152
3160
|
},
|
|
3153
3161
|
"block-" + E.id
|
|
3154
3162
|
)),
|
|
3155
|
-
(
|
|
3156
|
-
|
|
3163
|
+
($ = s()) == null ? void 0 : $.map((E) => /* @__PURE__ */ p(
|
|
3164
|
+
fn,
|
|
3157
3165
|
{
|
|
3158
3166
|
block: E,
|
|
3159
3167
|
context: f
|
|
@@ -3165,7 +3173,7 @@ function vt(e) {
|
|
|
3165
3173
|
) }) : null
|
|
3166
3174
|
] }) }) : null });
|
|
3167
3175
|
}
|
|
3168
|
-
function
|
|
3176
|
+
function Bi(e) {
|
|
3169
3177
|
function t() {
|
|
3170
3178
|
var i;
|
|
3171
3179
|
return "builder-blocks" + ((i = e.blocks) != null && i.length ? "" : " no-blocks");
|
|
@@ -3198,103 +3206,106 @@ function Fi(e) {
|
|
|
3198
3206
|
}
|
|
3199
3207
|
return /* @__PURE__ */ Z(P, { children: [
|
|
3200
3208
|
/* @__PURE__ */ p(
|
|
3201
|
-
|
|
3209
|
+
e.BlocksWrapper,
|
|
3202
3210
|
{
|
|
3203
|
-
className: t() + "
|
|
3211
|
+
className: t() + " props-blocks-wrapper-4f2c12d8",
|
|
3204
3212
|
"builder-path": e.path,
|
|
3205
3213
|
"builder-parent-id": e.parent,
|
|
3206
3214
|
style: e.styleProp,
|
|
3207
3215
|
onClick: (i) => r(),
|
|
3208
3216
|
onMouseEnter: (i) => n(),
|
|
3209
3217
|
onKeyPress: (i) => r(),
|
|
3218
|
+
...e.BlocksWrapperProps,
|
|
3210
3219
|
children: e.children
|
|
3211
3220
|
}
|
|
3212
3221
|
),
|
|
3213
|
-
/* @__PURE__ */ p("style", { children: `.
|
|
3222
|
+
/* @__PURE__ */ p("style", { children: `.props-blocks-wrapper-4f2c12d8 {
|
|
3214
3223
|
display: flex;
|
|
3215
3224
|
flex-direction: column;
|
|
3216
3225
|
align-items: stretch;
|
|
3217
3226
|
}` })
|
|
3218
3227
|
] });
|
|
3219
3228
|
}
|
|
3220
|
-
function
|
|
3221
|
-
var n, i;
|
|
3222
|
-
const t = Hn(
|
|
3229
|
+
function hn(e) {
|
|
3230
|
+
var n, i, a, s;
|
|
3231
|
+
const t = Hn(Qt), r = Hn(fr);
|
|
3223
3232
|
return /* @__PURE__ */ Z(
|
|
3224
|
-
|
|
3233
|
+
Bi,
|
|
3225
3234
|
{
|
|
3226
3235
|
blocks: e.blocks,
|
|
3227
3236
|
parent: e.parent,
|
|
3228
3237
|
path: e.path,
|
|
3229
3238
|
styleProp: e.styleProp,
|
|
3239
|
+
BlocksWrapper: (n = e.context) == null ? void 0 : n.BlocksWrapper,
|
|
3240
|
+
BlocksWrapperProps: (i = e.context) == null ? void 0 : i.BlocksWrapperProps,
|
|
3230
3241
|
children: [
|
|
3231
|
-
e.blocks ? /* @__PURE__ */ p(P, { children: (
|
|
3232
|
-
|
|
3242
|
+
e.blocks ? /* @__PURE__ */ p(P, { children: (a = e.blocks) == null ? void 0 : a.map((u) => /* @__PURE__ */ p(
|
|
3243
|
+
bt,
|
|
3233
3244
|
{
|
|
3234
|
-
block:
|
|
3245
|
+
block: u,
|
|
3235
3246
|
context: e.context || t,
|
|
3236
3247
|
registeredComponents: e.registeredComponents || r.registeredComponents
|
|
3237
3248
|
},
|
|
3238
|
-
"render-block-" +
|
|
3249
|
+
"render-block-" + u.id
|
|
3239
3250
|
)) }) : null,
|
|
3240
|
-
e.blocks ? /* @__PURE__ */ p(P, { children: (
|
|
3241
|
-
|
|
3251
|
+
e.blocks ? /* @__PURE__ */ p(P, { children: (s = e.blocks) == null ? void 0 : s.map((u) => /* @__PURE__ */ p(
|
|
3252
|
+
fn,
|
|
3242
3253
|
{
|
|
3243
|
-
block:
|
|
3254
|
+
block: u,
|
|
3244
3255
|
context: e.context || t
|
|
3245
3256
|
},
|
|
3246
|
-
"block-style-" +
|
|
3257
|
+
"block-style-" + u.id
|
|
3247
3258
|
)) }) : null
|
|
3248
3259
|
]
|
|
3249
3260
|
}
|
|
3250
3261
|
);
|
|
3251
3262
|
}
|
|
3252
|
-
function
|
|
3253
|
-
var
|
|
3254
|
-
const [t, r] =
|
|
3263
|
+
function Fi(e) {
|
|
3264
|
+
var G;
|
|
3265
|
+
const [t, r] = L(
|
|
3255
3266
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
3256
|
-
), [n, i] =
|
|
3267
|
+
), [n, i] = L(() => e.columns || []), [a, s] = L(
|
|
3257
3268
|
() => e.stackColumnsAt || "tablet"
|
|
3258
3269
|
);
|
|
3259
|
-
function u(
|
|
3260
|
-
var
|
|
3261
|
-
return ((
|
|
3270
|
+
function u(b) {
|
|
3271
|
+
var V;
|
|
3272
|
+
return ((V = n[b]) == null ? void 0 : V.width) || 100 / n.length;
|
|
3262
3273
|
}
|
|
3263
|
-
function f(
|
|
3264
|
-
const
|
|
3265
|
-
return `calc(${u(
|
|
3274
|
+
function f(b) {
|
|
3275
|
+
const V = t * (n.length - 1) / n.length;
|
|
3276
|
+
return `calc(${u(b)}% - ${V}px)`;
|
|
3266
3277
|
}
|
|
3267
3278
|
function g({
|
|
3268
|
-
stackedStyle:
|
|
3269
|
-
desktopStyle:
|
|
3279
|
+
stackedStyle: b,
|
|
3280
|
+
desktopStyle: V
|
|
3270
3281
|
}) {
|
|
3271
|
-
return a === "tablet" ?
|
|
3282
|
+
return a === "tablet" ? b : V;
|
|
3272
3283
|
}
|
|
3273
3284
|
function v({
|
|
3274
|
-
stackedStyle:
|
|
3275
|
-
desktopStyle:
|
|
3285
|
+
stackedStyle: b,
|
|
3286
|
+
desktopStyle: V
|
|
3276
3287
|
}) {
|
|
3277
|
-
return a === "never" ?
|
|
3288
|
+
return a === "never" ? V : b;
|
|
3278
3289
|
}
|
|
3279
|
-
const [
|
|
3290
|
+
const [S, U] = L(
|
|
3280
3291
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
3281
3292
|
);
|
|
3282
|
-
function
|
|
3293
|
+
function $() {
|
|
3283
3294
|
return {
|
|
3284
|
-
"--flex-dir":
|
|
3295
|
+
"--flex-dir": S,
|
|
3285
3296
|
"--flex-dir-tablet": g({
|
|
3286
|
-
stackedStyle:
|
|
3297
|
+
stackedStyle: S,
|
|
3287
3298
|
desktopStyle: "row"
|
|
3288
3299
|
})
|
|
3289
3300
|
};
|
|
3290
3301
|
}
|
|
3291
|
-
function E(
|
|
3292
|
-
const
|
|
3302
|
+
function E(b) {
|
|
3303
|
+
const V = b === 0 ? 0 : t, ae = f(b), se = `${V}px`, H = "100%", te = 0;
|
|
3293
3304
|
return {
|
|
3294
3305
|
width: ae,
|
|
3295
3306
|
["marginLeft"]: se,
|
|
3296
3307
|
"--column-width-mobile": v({
|
|
3297
|
-
stackedStyle:
|
|
3308
|
+
stackedStyle: H,
|
|
3298
3309
|
desktopStyle: ae
|
|
3299
3310
|
}),
|
|
3300
3311
|
"--column-margin-left-mobile": v({
|
|
@@ -3302,7 +3313,7 @@ function Ui(e) {
|
|
|
3302
3313
|
desktopStyle: se
|
|
3303
3314
|
}),
|
|
3304
3315
|
"--column-width-tablet": g({
|
|
3305
|
-
stackedStyle:
|
|
3316
|
+
stackedStyle: H,
|
|
3306
3317
|
desktopStyle: ae
|
|
3307
3318
|
}),
|
|
3308
3319
|
"--column-margin-left-tablet": g({
|
|
@@ -3311,13 +3322,13 @@ function Ui(e) {
|
|
|
3311
3322
|
})
|
|
3312
3323
|
};
|
|
3313
3324
|
}
|
|
3314
|
-
function N(
|
|
3325
|
+
function N(b) {
|
|
3315
3326
|
var ae, se;
|
|
3316
3327
|
return Sr(
|
|
3317
3328
|
((se = (ae = e.builderContext.content) == null ? void 0 : ae.meta) == null ? void 0 : se.breakpoints) || {}
|
|
3318
|
-
)[
|
|
3329
|
+
)[b].max;
|
|
3319
3330
|
}
|
|
3320
|
-
function
|
|
3331
|
+
function W() {
|
|
3321
3332
|
return `
|
|
3322
3333
|
@media (max-width: ${N("medium")}px) {
|
|
3323
3334
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -3349,27 +3360,27 @@ function Ui(e) {
|
|
|
3349
3360
|
"div",
|
|
3350
3361
|
{
|
|
3351
3362
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-53636e90`,
|
|
3352
|
-
style:
|
|
3363
|
+
style: $(),
|
|
3353
3364
|
children: [
|
|
3354
|
-
/* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
3355
|
-
(
|
|
3365
|
+
/* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(yt, { styles: W() }) }),
|
|
3366
|
+
(G = e.columns) == null ? void 0 : G.map((b, V) => /* @__PURE__ */ ur(
|
|
3356
3367
|
"div",
|
|
3357
3368
|
{
|
|
3358
3369
|
className: "builder-column div-53636e90-2",
|
|
3359
|
-
style: E(
|
|
3360
|
-
key:
|
|
3370
|
+
style: E(V),
|
|
3371
|
+
key: V
|
|
3361
3372
|
},
|
|
3362
3373
|
/* @__PURE__ */ p(
|
|
3363
|
-
|
|
3374
|
+
hn,
|
|
3364
3375
|
{
|
|
3365
|
-
path: `component.options.columns.${
|
|
3376
|
+
path: `component.options.columns.${V}.blocks`,
|
|
3366
3377
|
parent: e.builderBlock.id,
|
|
3367
3378
|
styleProp: {
|
|
3368
3379
|
flexGrow: "1"
|
|
3369
3380
|
},
|
|
3370
3381
|
context: e.builderContext,
|
|
3371
3382
|
registeredComponents: e.builderComponents,
|
|
3372
|
-
blocks:
|
|
3383
|
+
blocks: b.blocks
|
|
3373
3384
|
}
|
|
3374
3385
|
)
|
|
3375
3386
|
))
|
|
@@ -3386,7 +3397,7 @@ function Ui(e) {
|
|
|
3386
3397
|
}` })
|
|
3387
3398
|
] });
|
|
3388
3399
|
}
|
|
3389
|
-
function
|
|
3400
|
+
function Ui(e) {
|
|
3390
3401
|
return /* @__PURE__ */ p("span", { children: e.children });
|
|
3391
3402
|
}
|
|
3392
3403
|
function rr(e) {
|
|
@@ -3408,7 +3419,7 @@ function Di(e, t) {
|
|
|
3408
3419
|
}
|
|
3409
3420
|
return null;
|
|
3410
3421
|
}
|
|
3411
|
-
function
|
|
3422
|
+
function Ht(e) {
|
|
3412
3423
|
if (!e)
|
|
3413
3424
|
return e;
|
|
3414
3425
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -3419,7 +3430,7 @@ function Wt(e) {
|
|
|
3419
3430
|
}
|
|
3420
3431
|
return e.match(/cdn\.shopify\.com/) ? t.map((r) => [Di(e, `${r}x${r}`), r]).filter(([r]) => !!r).map(([r, n]) => `${r} ${n}w`).concat([e]).join(", ") : e;
|
|
3421
3432
|
}
|
|
3422
|
-
function
|
|
3433
|
+
function Wi(e) {
|
|
3423
3434
|
var i, a, s, u;
|
|
3424
3435
|
function t() {
|
|
3425
3436
|
var v;
|
|
@@ -3430,10 +3441,10 @@ function Vi(e) {
|
|
|
3430
3441
|
return e.srcset;
|
|
3431
3442
|
if (e.srcset && ((v = e.image) != null && v.includes("builder.io/api/v1/image"))) {
|
|
3432
3443
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3433
|
-
return console.debug("Removed given srcset"),
|
|
3444
|
+
return console.debug("Removed given srcset"), Ht(g);
|
|
3434
3445
|
} else if (e.image && !e.srcset)
|
|
3435
|
-
return
|
|
3436
|
-
return
|
|
3446
|
+
return Ht(g);
|
|
3447
|
+
return Ht(g);
|
|
3437
3448
|
}
|
|
3438
3449
|
function r() {
|
|
3439
3450
|
var f;
|
|
@@ -3502,7 +3513,7 @@ function Vi(e) {
|
|
|
3502
3513
|
}` })
|
|
3503
3514
|
] });
|
|
3504
3515
|
}
|
|
3505
|
-
function
|
|
3516
|
+
function Vi(e) {
|
|
3506
3517
|
return /* @__PURE__ */ p(
|
|
3507
3518
|
"section",
|
|
3508
3519
|
{
|
|
@@ -3523,7 +3534,7 @@ function Li(e) {
|
|
|
3523
3534
|
}
|
|
3524
3535
|
);
|
|
3525
3536
|
}
|
|
3526
|
-
const
|
|
3537
|
+
const Li = {
|
|
3527
3538
|
name: "Core:Button",
|
|
3528
3539
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3529
3540
|
defaultStyles: {
|
|
@@ -3556,7 +3567,7 @@ const $i = {
|
|
|
3556
3567
|
}],
|
|
3557
3568
|
static: !0,
|
|
3558
3569
|
noWrap: !0
|
|
3559
|
-
},
|
|
3570
|
+
}, $i = {
|
|
3560
3571
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3561
3572
|
name: "Columns",
|
|
3562
3573
|
isRSC: !0,
|
|
@@ -3781,7 +3792,7 @@ const $i = {
|
|
|
3781
3792
|
}]
|
|
3782
3793
|
};
|
|
3783
3794
|
function Ki(e) {
|
|
3784
|
-
const t =
|
|
3795
|
+
const t = qt(null), [r, n] = L(() => []), [i, a] = L(() => []);
|
|
3785
3796
|
return ee(() => {
|
|
3786
3797
|
var u;
|
|
3787
3798
|
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window > "u")
|
|
@@ -3845,22 +3856,22 @@ const Gi = {
|
|
|
3845
3856
|
}]
|
|
3846
3857
|
}, zi = ["text/javascript", "application/javascript", "application/ecmascript"], Xi = (e) => zi.includes(e.type);
|
|
3847
3858
|
function Yi(e) {
|
|
3848
|
-
const t =
|
|
3859
|
+
const t = qt(null), [r, n] = L(() => []), [i, a] = L(() => []), [s, u] = L(() => !1);
|
|
3849
3860
|
function f() {
|
|
3850
3861
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3851
3862
|
return;
|
|
3852
3863
|
const g = t.current.getElementsByTagName("script");
|
|
3853
3864
|
for (let v = 0; v < g.length; v++) {
|
|
3854
|
-
const
|
|
3855
|
-
if (
|
|
3856
|
-
r.push(
|
|
3857
|
-
const
|
|
3858
|
-
|
|
3859
|
-
} else if (Xi(
|
|
3865
|
+
const S = g[v];
|
|
3866
|
+
if (S.src && !r.includes(S.src)) {
|
|
3867
|
+
r.push(S.src);
|
|
3868
|
+
const U = document.createElement("script");
|
|
3869
|
+
U.async = !0, U.src = S.src, document.head.appendChild(U);
|
|
3870
|
+
} else if (Xi(S) && !i.includes(S.innerText))
|
|
3860
3871
|
try {
|
|
3861
|
-
i.push(
|
|
3862
|
-
} catch (
|
|
3863
|
-
console.warn("`Embed`: Error running script:",
|
|
3872
|
+
i.push(S.innerText), new Function(S.innerText)();
|
|
3873
|
+
} catch (U) {
|
|
3874
|
+
console.warn("`Embed`: Error running script:", U);
|
|
3864
3875
|
}
|
|
3865
3876
|
}
|
|
3866
3877
|
}
|
|
@@ -3904,13 +3915,13 @@ const Ji = {
|
|
|
3904
3915
|
function r(s, u = 6e4) {
|
|
3905
3916
|
return new Promise((f, g) => {
|
|
3906
3917
|
const v = document.createElement("img");
|
|
3907
|
-
let
|
|
3918
|
+
let S = !1;
|
|
3908
3919
|
v.onload = () => {
|
|
3909
|
-
|
|
3910
|
-
}, v.addEventListener("error", (
|
|
3911
|
-
console.warn("Image load failed",
|
|
3920
|
+
S = !0, f(v);
|
|
3921
|
+
}, v.addEventListener("error", (U) => {
|
|
3922
|
+
console.warn("Image load failed", U.error), g(U.error);
|
|
3912
3923
|
}), v.src = s, setTimeout(() => {
|
|
3913
|
-
|
|
3924
|
+
S || g(new Error("Image load timed out"));
|
|
3914
3925
|
}, u);
|
|
3915
3926
|
});
|
|
3916
3927
|
}
|
|
@@ -4300,10 +4311,10 @@ function oo(e) {
|
|
|
4300
4311
|
}
|
|
4301
4312
|
const ir = () => [{
|
|
4302
4313
|
component: Yr,
|
|
4303
|
-
|
|
4314
|
+
...Li
|
|
4304
4315
|
}, {
|
|
4305
|
-
component:
|
|
4306
|
-
|
|
4316
|
+
component: Fi,
|
|
4317
|
+
...$i
|
|
4307
4318
|
}, {
|
|
4308
4319
|
component: Ki,
|
|
4309
4320
|
...Hi
|
|
@@ -4311,16 +4322,16 @@ const ir = () => [{
|
|
|
4311
4322
|
component: Yi,
|
|
4312
4323
|
...Gi
|
|
4313
4324
|
}, {
|
|
4314
|
-
component:
|
|
4325
|
+
component: Ui,
|
|
4315
4326
|
...Ji
|
|
4316
4327
|
}, {
|
|
4317
|
-
component:
|
|
4328
|
+
component: Wi,
|
|
4318
4329
|
...qi
|
|
4319
4330
|
}, {
|
|
4320
4331
|
component: Qi,
|
|
4321
4332
|
...Zi
|
|
4322
4333
|
}, {
|
|
4323
|
-
component:
|
|
4334
|
+
component: Vi,
|
|
4324
4335
|
...eo
|
|
4325
4336
|
}, {
|
|
4326
4337
|
component: jo,
|
|
@@ -4421,14 +4432,14 @@ const ir = () => [{
|
|
|
4421
4432
|
thisScriptEl?.remove();
|
|
4422
4433
|
}
|
|
4423
4434
|
return;
|
|
4424
|
-
}`, kr = "builderIoAbTest", Cr = "builderIoRenderContent",
|
|
4435
|
+
}`, kr = "builderIoAbTest", Cr = "builderIoRenderContent", ft = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4425
4436
|
...t,
|
|
4426
4437
|
testVariationId: t.id,
|
|
4427
4438
|
id: e == null ? void 0 : e.id
|
|
4428
4439
|
})), lo = ({
|
|
4429
4440
|
canTrack: e,
|
|
4430
4441
|
content: t
|
|
4431
|
-
}) => !(!(
|
|
4442
|
+
}) => !(!(ft(t).length > 0) || !e || Ie()), co = (e) => e === "react" || e === "reactNative", Er = co(nt), uo = () => `
|
|
4432
4443
|
window.${kr} = ${ao}
|
|
4433
4444
|
window.${Cr} = ${so}
|
|
4434
4445
|
`, fo = (e, t) => `
|
|
@@ -4440,7 +4451,7 @@ const ir = () => [{
|
|
|
4440
4451
|
}) => `window.${Cr}(
|
|
4441
4452
|
"${t}", "${e}", ${Er}
|
|
4442
4453
|
)`;
|
|
4443
|
-
function
|
|
4454
|
+
function Jt(e) {
|
|
4444
4455
|
return /* @__PURE__ */ p(
|
|
4445
4456
|
"script",
|
|
4446
4457
|
{
|
|
@@ -4491,7 +4502,7 @@ const po = (e, t, r = !0) => {
|
|
|
4491
4502
|
builderElementIndex: r && n ? [].slice.call(document.getElementsByClassName(n)).indexOf(r) : void 0
|
|
4492
4503
|
}
|
|
4493
4504
|
};
|
|
4494
|
-
}, vo = "0.
|
|
4505
|
+
}, vo = "0.9.0", yo = () => {
|
|
4495
4506
|
Hr("insertMenu", {
|
|
4496
4507
|
name: "_default",
|
|
4497
4508
|
default: !0,
|
|
@@ -4515,12 +4526,12 @@ const po = (e, t, r = !0) => {
|
|
|
4515
4526
|
});
|
|
4516
4527
|
};
|
|
4517
4528
|
let sr = !1;
|
|
4518
|
-
const
|
|
4529
|
+
const bo = (e = {}) => {
|
|
4519
4530
|
var t, r;
|
|
4520
4531
|
sr || (sr = !0, Ie() && ((t = window.parent) == null || t.postMessage({
|
|
4521
4532
|
type: "builder.sdkInfo",
|
|
4522
4533
|
data: {
|
|
4523
|
-
target:
|
|
4534
|
+
target: nt,
|
|
4524
4535
|
version: vo,
|
|
4525
4536
|
supportsPatchUpdates: !1,
|
|
4526
4537
|
// Supports builder-model="..." attribute which is needed to
|
|
@@ -4541,25 +4552,25 @@ const xo = (e = {}) => {
|
|
|
4541
4552
|
switch (n.type) {
|
|
4542
4553
|
case "builder.evaluate": {
|
|
4543
4554
|
const s = n.data.text, u = n.data.arguments || [], f = n.data.id, g = new Function(s);
|
|
4544
|
-
let v,
|
|
4555
|
+
let v, S = null;
|
|
4545
4556
|
try {
|
|
4546
4557
|
v = g.apply(null, u);
|
|
4547
|
-
} catch (
|
|
4548
|
-
|
|
4558
|
+
} catch (U) {
|
|
4559
|
+
S = U;
|
|
4549
4560
|
}
|
|
4550
|
-
|
|
4561
|
+
S ? (i = window.parent) == null || i.postMessage({
|
|
4551
4562
|
type: "builder.evaluateError",
|
|
4552
4563
|
data: {
|
|
4553
4564
|
id: f,
|
|
4554
|
-
error:
|
|
4565
|
+
error: S.message
|
|
4555
4566
|
}
|
|
4556
|
-
}, "*") : v && typeof v.then == "function" ? v.then((
|
|
4557
|
-
var
|
|
4558
|
-
(
|
|
4567
|
+
}, "*") : v && typeof v.then == "function" ? v.then((U) => {
|
|
4568
|
+
var $;
|
|
4569
|
+
($ = window.parent) == null || $.postMessage({
|
|
4559
4570
|
type: "builder.evaluateResult",
|
|
4560
4571
|
data: {
|
|
4561
4572
|
id: f,
|
|
4562
|
-
result:
|
|
4573
|
+
result: U
|
|
4563
4574
|
}
|
|
4564
4575
|
}, "*");
|
|
4565
4576
|
}).catch(console.error) : (a = window.parent) == null || a.postMessage({
|
|
@@ -4574,89 +4585,91 @@ const xo = (e = {}) => {
|
|
|
4574
4585
|
}
|
|
4575
4586
|
})));
|
|
4576
4587
|
};
|
|
4577
|
-
function
|
|
4578
|
-
var
|
|
4579
|
-
const t =
|
|
4580
|
-
function i(
|
|
4581
|
-
var
|
|
4582
|
-
const
|
|
4588
|
+
function xo(e) {
|
|
4589
|
+
var H, te, T, Te, D, we, ce;
|
|
4590
|
+
const t = qt(null), [r, n] = L(() => 0);
|
|
4591
|
+
function i(y) {
|
|
4592
|
+
var B, O, _, K, je;
|
|
4593
|
+
const I = {
|
|
4583
4594
|
...e.builderContextSignal.content,
|
|
4584
|
-
...
|
|
4595
|
+
...y,
|
|
4585
4596
|
data: {
|
|
4586
|
-
...(
|
|
4587
|
-
...
|
|
4597
|
+
...(B = e.builderContextSignal.content) == null ? void 0 : B.data,
|
|
4598
|
+
...y == null ? void 0 : y.data
|
|
4588
4599
|
},
|
|
4589
4600
|
meta: {
|
|
4590
|
-
...(
|
|
4591
|
-
...
|
|
4592
|
-
breakpoints: ((
|
|
4601
|
+
...(O = e.builderContextSignal.content) == null ? void 0 : O.meta,
|
|
4602
|
+
...y == null ? void 0 : y.meta,
|
|
4603
|
+
breakpoints: ((_ = y == null ? void 0 : y.meta) == null ? void 0 : _.breakpoints) || ((je = (K = e.builderContextSignal.content) == null ? void 0 : K.meta) == null ? void 0 : je.breakpoints)
|
|
4593
4604
|
}
|
|
4594
4605
|
};
|
|
4595
|
-
e.setBuilderContextSignal((
|
|
4596
|
-
...
|
|
4597
|
-
content:
|
|
4606
|
+
e.setBuilderContextSignal((ot) => ({
|
|
4607
|
+
...ot,
|
|
4608
|
+
content: I
|
|
4598
4609
|
}));
|
|
4599
4610
|
}
|
|
4600
|
-
|
|
4601
|
-
const [a, s] =
|
|
4611
|
+
L(() => 0);
|
|
4612
|
+
const [a, s] = L(
|
|
4602
4613
|
() => !1
|
|
4614
|
+
), [u, f] = L(
|
|
4615
|
+
() => e.contentWrapper || "div"
|
|
4603
4616
|
);
|
|
4604
|
-
function
|
|
4605
|
-
var
|
|
4606
|
-
const { data:
|
|
4607
|
-
if (
|
|
4608
|
-
switch (
|
|
4617
|
+
function g(y) {
|
|
4618
|
+
var B;
|
|
4619
|
+
const { data: I } = y;
|
|
4620
|
+
if (I)
|
|
4621
|
+
switch (I.type) {
|
|
4609
4622
|
case "builder.configureSdk": {
|
|
4610
|
-
const
|
|
4611
|
-
if (!
|
|
4623
|
+
const O = I.data, { breakpoints: _, contentId: K } = O;
|
|
4624
|
+
if (!K || K !== ((B = e.builderContextSignal.content) == null ? void 0 : B.id))
|
|
4612
4625
|
return;
|
|
4613
|
-
|
|
4626
|
+
_ && i({
|
|
4614
4627
|
meta: {
|
|
4615
|
-
breakpoints:
|
|
4628
|
+
breakpoints: _
|
|
4616
4629
|
}
|
|
4617
4630
|
}), n(r + 1);
|
|
4618
4631
|
break;
|
|
4619
4632
|
}
|
|
4620
4633
|
case "builder.contentUpdate": {
|
|
4621
|
-
const
|
|
4622
|
-
|
|
4634
|
+
const O = I.data, _ = O.key || O.alias || O.entry || O.modelName, K = O.data;
|
|
4635
|
+
_ === e.model && (i(K), n(r + 1));
|
|
4623
4636
|
break;
|
|
4624
4637
|
}
|
|
4625
4638
|
}
|
|
4626
4639
|
}
|
|
4627
|
-
function
|
|
4628
|
-
var
|
|
4629
|
-
const
|
|
4630
|
-
|
|
4631
|
-
code:
|
|
4640
|
+
function v() {
|
|
4641
|
+
var I, B;
|
|
4642
|
+
const y = (B = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : B.jsCode;
|
|
4643
|
+
y && tt({
|
|
4644
|
+
code: y,
|
|
4632
4645
|
context: e.context || {},
|
|
4633
4646
|
localState: void 0,
|
|
4634
4647
|
rootState: e.builderContextSignal.rootState,
|
|
4635
4648
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4636
4649
|
});
|
|
4637
4650
|
}
|
|
4638
|
-
const [
|
|
4639
|
-
function
|
|
4640
|
-
var
|
|
4651
|
+
const [S, U] = L(() => ({})), [$, E] = L(() => !1);
|
|
4652
|
+
function N(y) {
|
|
4653
|
+
var I, B;
|
|
4641
4654
|
if (e.builderContextSignal.content) {
|
|
4642
|
-
const
|
|
4655
|
+
const O = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, _ = (B = e.builderContextSignal.content) == null ? void 0 : B.id;
|
|
4643
4656
|
Kn({
|
|
4644
4657
|
type: "click",
|
|
4645
|
-
canTrack:
|
|
4646
|
-
contentId:
|
|
4658
|
+
canTrack: ht(e.canTrack),
|
|
4659
|
+
contentId: _,
|
|
4647
4660
|
apiKey: e.apiKey,
|
|
4648
|
-
variationId:
|
|
4649
|
-
...go(
|
|
4650
|
-
unique:
|
|
4661
|
+
variationId: O !== _ ? O : void 0,
|
|
4662
|
+
...go(y),
|
|
4663
|
+
unique: !$
|
|
4651
4664
|
});
|
|
4652
4665
|
}
|
|
4653
|
-
|
|
4666
|
+
$ || E(!0);
|
|
4654
4667
|
}
|
|
4655
|
-
function
|
|
4656
|
-
return
|
|
4668
|
+
function W(y) {
|
|
4669
|
+
return y.replace(
|
|
4657
4670
|
/{{([^}]+)}}/g,
|
|
4658
|
-
(
|
|
4659
|
-
code:
|
|
4671
|
+
(I, B) => tt({
|
|
4672
|
+
code: B,
|
|
4660
4673
|
context: e.context || {},
|
|
4661
4674
|
localState: void 0,
|
|
4662
4675
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4664,38 +4677,38 @@ function bo(e) {
|
|
|
4664
4677
|
})
|
|
4665
4678
|
);
|
|
4666
4679
|
}
|
|
4667
|
-
function
|
|
4668
|
-
zr(
|
|
4669
|
-
var
|
|
4670
|
-
const
|
|
4680
|
+
function G({ url: y, key: I }) {
|
|
4681
|
+
zr(y).then((B) => B.json()).then((B) => {
|
|
4682
|
+
var _, K;
|
|
4683
|
+
const O = {
|
|
4671
4684
|
...e.builderContextSignal.rootState,
|
|
4672
|
-
[
|
|
4685
|
+
[I]: B
|
|
4673
4686
|
};
|
|
4674
|
-
(
|
|
4675
|
-
}).catch((
|
|
4676
|
-
console.error("error fetching dynamic data",
|
|
4687
|
+
(K = (_ = e.builderContextSignal).rootSetState) == null || K.call(_, O), S[I] = !0;
|
|
4688
|
+
}).catch((B) => {
|
|
4689
|
+
console.error("error fetching dynamic data", y, B);
|
|
4677
4690
|
});
|
|
4678
4691
|
}
|
|
4679
|
-
function
|
|
4680
|
-
var
|
|
4681
|
-
const
|
|
4682
|
-
Object.entries(
|
|
4683
|
-
if (
|
|
4684
|
-
const
|
|
4685
|
-
|
|
4686
|
-
url:
|
|
4687
|
-
key:
|
|
4692
|
+
function b() {
|
|
4693
|
+
var I, B;
|
|
4694
|
+
const y = ((B = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : B.httpRequests) ?? {};
|
|
4695
|
+
Object.entries(y).forEach(([O, _]) => {
|
|
4696
|
+
if (_ && (!S[O] || Ee())) {
|
|
4697
|
+
const K = W(_);
|
|
4698
|
+
G({
|
|
4699
|
+
url: K,
|
|
4700
|
+
key: O
|
|
4688
4701
|
});
|
|
4689
4702
|
}
|
|
4690
4703
|
});
|
|
4691
4704
|
}
|
|
4692
|
-
function
|
|
4705
|
+
function V() {
|
|
4693
4706
|
Ee() && window.dispatchEvent(
|
|
4694
4707
|
new CustomEvent(
|
|
4695
4708
|
"builder:component:stateChange",
|
|
4696
4709
|
{
|
|
4697
4710
|
detail: {
|
|
4698
|
-
state:
|
|
4711
|
+
state: Zt(e.builderContextSignal.rootState),
|
|
4699
4712
|
ref: {
|
|
4700
4713
|
name: e.model
|
|
4701
4714
|
}
|
|
@@ -4704,8 +4717,8 @@ function bo(e) {
|
|
|
4704
4717
|
)
|
|
4705
4718
|
);
|
|
4706
4719
|
}
|
|
4707
|
-
function y
|
|
4708
|
-
n(r + 1), window.addEventListener("message",
|
|
4720
|
+
function ae(y) {
|
|
4721
|
+
n(r + 1), window.addEventListener("message", g), yo(), bo({
|
|
4709
4722
|
...e.locale ? {
|
|
4710
4723
|
locale: e.locale
|
|
4711
4724
|
} : {},
|
|
@@ -4717,62 +4730,62 @@ function bo(e) {
|
|
|
4717
4730
|
} : {}
|
|
4718
4731
|
}), Object.values(
|
|
4719
4732
|
e.builderContextSignal.componentInfos
|
|
4720
|
-
).forEach((
|
|
4721
|
-
var
|
|
4722
|
-
const
|
|
4723
|
-
(
|
|
4733
|
+
).forEach((I) => {
|
|
4734
|
+
var O;
|
|
4735
|
+
const B = Gr(I);
|
|
4736
|
+
(O = window.parent) == null || O.postMessage(B, "*");
|
|
4724
4737
|
}), window.addEventListener(
|
|
4725
4738
|
"builder:component:stateChangeListenerActivated",
|
|
4726
|
-
|
|
4739
|
+
V
|
|
4727
4740
|
);
|
|
4728
4741
|
}
|
|
4729
|
-
function
|
|
4730
|
-
const
|
|
4731
|
-
`builder.preview.${
|
|
4732
|
-
),
|
|
4733
|
-
|
|
4742
|
+
function se(y) {
|
|
4743
|
+
const I = new URL(location.href).searchParams, B = I.get("builder.preview"), O = I.get(
|
|
4744
|
+
`builder.preview.${B}`
|
|
4745
|
+
), _ = I.get("apiKey") || I.get("builder.space");
|
|
4746
|
+
B === e.model && _ === e.apiKey && (!e.content || O === e.content.id) && dr({
|
|
4734
4747
|
model: e.model,
|
|
4735
4748
|
apiKey: e.apiKey,
|
|
4736
4749
|
apiVersion: e.builderContextSignal.apiVersion
|
|
4737
|
-
}).then((
|
|
4738
|
-
|
|
4750
|
+
}).then((K) => {
|
|
4751
|
+
K && i(K);
|
|
4739
4752
|
});
|
|
4740
4753
|
}
|
|
4741
4754
|
return ee(() => {
|
|
4742
|
-
var
|
|
4743
|
-
return (
|
|
4755
|
+
var y;
|
|
4756
|
+
return (y = t.current) == null || y.addEventListener(
|
|
4744
4757
|
"initeditingbldr",
|
|
4745
|
-
|
|
4758
|
+
ae
|
|
4746
4759
|
), () => {
|
|
4747
|
-
var
|
|
4748
|
-
return (
|
|
4760
|
+
var I;
|
|
4761
|
+
return (I = t.current) == null ? void 0 : I.removeEventListener(
|
|
4749
4762
|
"initeditingbldr",
|
|
4750
|
-
|
|
4763
|
+
ae
|
|
4751
4764
|
);
|
|
4752
4765
|
};
|
|
4753
4766
|
}, []), ee(() => {
|
|
4754
|
-
var
|
|
4755
|
-
return (
|
|
4767
|
+
var y;
|
|
4768
|
+
return (y = t.current) == null || y.addEventListener(
|
|
4756
4769
|
"initpreviewingbldr",
|
|
4757
|
-
|
|
4770
|
+
se
|
|
4758
4771
|
), () => {
|
|
4759
|
-
var
|
|
4760
|
-
return (
|
|
4772
|
+
var I;
|
|
4773
|
+
return (I = t.current) == null ? void 0 : I.removeEventListener(
|
|
4761
4774
|
"initpreviewingbldr",
|
|
4762
|
-
|
|
4775
|
+
se
|
|
4763
4776
|
);
|
|
4764
4777
|
};
|
|
4765
4778
|
}, []), ee(() => {
|
|
4766
|
-
var
|
|
4779
|
+
var y, I;
|
|
4767
4780
|
if (Ie()) {
|
|
4768
|
-
if (Ee() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content &&
|
|
4769
|
-
const
|
|
4781
|
+
if (Ee() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && ht(e.canTrack)) {
|
|
4782
|
+
const O = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, _ = (I = e.builderContextSignal.content) == null ? void 0 : I.id, K = e.apiKey;
|
|
4770
4783
|
Kn({
|
|
4771
4784
|
type: "impression",
|
|
4772
4785
|
canTrack: !0,
|
|
4773
|
-
contentId:
|
|
4774
|
-
apiKey:
|
|
4775
|
-
variationId:
|
|
4786
|
+
contentId: _,
|
|
4787
|
+
apiKey: K,
|
|
4788
|
+
variationId: O !== _ ? O : void 0
|
|
4776
4789
|
});
|
|
4777
4790
|
}
|
|
4778
4791
|
Kr() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
@@ -4780,37 +4793,38 @@ function bo(e) {
|
|
|
4780
4793
|
}, []), ee(() => {
|
|
4781
4794
|
e.apiKey || Fe.error(
|
|
4782
4795
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4783
|
-
),
|
|
4796
|
+
), v(), b(), V();
|
|
4784
4797
|
}, []), ee(() => {
|
|
4785
4798
|
e.content && i(e.content);
|
|
4786
4799
|
}, [e.content]), ee(() => {
|
|
4787
4800
|
}, [a]), ee(() => {
|
|
4788
|
-
|
|
4801
|
+
v();
|
|
4789
4802
|
}, [
|
|
4790
|
-
(
|
|
4803
|
+
(te = (H = e.builderContextSignal.content) == null ? void 0 : H.data) == null ? void 0 : te.jsCode,
|
|
4791
4804
|
e.builderContextSignal.rootState
|
|
4792
4805
|
]), ee(() => {
|
|
4793
|
-
|
|
4794
|
-
}, [(
|
|
4795
|
-
|
|
4806
|
+
b();
|
|
4807
|
+
}, [(Te = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : Te.httpRequests]), ee(() => {
|
|
4808
|
+
V();
|
|
4796
4809
|
}, [e.builderContextSignal.rootState]), ee(() => () => {
|
|
4797
|
-
Ie() && (window.removeEventListener("message",
|
|
4810
|
+
Ie() && (window.removeEventListener("message", g), window.removeEventListener(
|
|
4798
4811
|
"builder:component:stateChangeListenerActivated",
|
|
4799
|
-
|
|
4812
|
+
V
|
|
4800
4813
|
));
|
|
4801
|
-
}, []), /* @__PURE__ */ p(
|
|
4802
|
-
|
|
4814
|
+
}, []), /* @__PURE__ */ p(Qt.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ ur(
|
|
4815
|
+
u,
|
|
4803
4816
|
{
|
|
4804
4817
|
key: r,
|
|
4805
4818
|
ref: t,
|
|
4806
|
-
onClick: (
|
|
4807
|
-
"builder-content-id": (
|
|
4819
|
+
onClick: (y) => N(y),
|
|
4820
|
+
"builder-content-id": (D = e.builderContextSignal.content) == null ? void 0 : D.id,
|
|
4808
4821
|
"builder-model": e.model,
|
|
4809
4822
|
...e.showContent ? {} : {
|
|
4810
4823
|
hidden: !0,
|
|
4811
4824
|
"aria-hidden": !0
|
|
4812
4825
|
},
|
|
4813
|
-
|
|
4826
|
+
...e.contentWrapperProps,
|
|
4827
|
+
className: `variant-${((we = e.content) == null ? void 0 : we.testVariationId) || ((ce = e.content) == null ? void 0 : ce.id)}`
|
|
4814
4828
|
},
|
|
4815
4829
|
e.children
|
|
4816
4830
|
) }) : null });
|
|
@@ -4851,7 +4865,7 @@ font-weight: ${s};
|
|
|
4851
4865
|
contentId: t
|
|
4852
4866
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4853
4867
|
function Co(e) {
|
|
4854
|
-
const [t, r] =
|
|
4868
|
+
const [t, r] = L(
|
|
4855
4869
|
() => `
|
|
4856
4870
|
${ko({
|
|
4857
4871
|
cssCode: e.cssCode,
|
|
@@ -4875,7 +4889,7 @@ ${wo({
|
|
|
4875
4889
|
}
|
|
4876
4890
|
`.trim()
|
|
4877
4891
|
);
|
|
4878
|
-
return /* @__PURE__ */ p(
|
|
4892
|
+
return /* @__PURE__ */ p(yt, { styles: t });
|
|
4879
4893
|
}
|
|
4880
4894
|
const Eo = ({
|
|
4881
4895
|
content: e,
|
|
@@ -4906,25 +4920,25 @@ const Eo = ({
|
|
|
4906
4920
|
meta: e == null ? void 0 : e.meta
|
|
4907
4921
|
} : void 0;
|
|
4908
4922
|
function lr(e) {
|
|
4909
|
-
var f, g, v,
|
|
4910
|
-
const [t, r] =
|
|
4923
|
+
var f, g, v, S, U, $, E;
|
|
4924
|
+
const [t, r] = L(
|
|
4911
4925
|
() => {
|
|
4912
|
-
var N,
|
|
4926
|
+
var N, W;
|
|
4913
4927
|
return ho({
|
|
4914
4928
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4915
4929
|
variationId: (N = e.content) == null ? void 0 : N.testVariationId,
|
|
4916
4930
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4917
|
-
contentId: (
|
|
4931
|
+
contentId: (W = e.content) == null ? void 0 : W.id
|
|
4918
4932
|
});
|
|
4919
4933
|
}
|
|
4920
4934
|
);
|
|
4921
4935
|
function n(N) {
|
|
4922
|
-
u((
|
|
4923
|
-
...
|
|
4936
|
+
u((W) => ({
|
|
4937
|
+
...W,
|
|
4924
4938
|
rootState: N
|
|
4925
4939
|
}));
|
|
4926
4940
|
}
|
|
4927
|
-
const [i, a] =
|
|
4941
|
+
const [i, a] = L(
|
|
4928
4942
|
() => [
|
|
4929
4943
|
...ir(),
|
|
4930
4944
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
@@ -4935,16 +4949,16 @@ function lr(e) {
|
|
|
4935
4949
|
...Gn,
|
|
4936
4950
|
...e.customComponents || []
|
|
4937
4951
|
].reduce(
|
|
4938
|
-
(N, { component:
|
|
4952
|
+
(N, { component: W, ...G }) => ({
|
|
4939
4953
|
...N,
|
|
4940
|
-
[
|
|
4941
|
-
component:
|
|
4942
|
-
...zn(
|
|
4954
|
+
[G.name]: {
|
|
4955
|
+
component: W,
|
|
4956
|
+
...zn(G)
|
|
4943
4957
|
}
|
|
4944
4958
|
}),
|
|
4945
4959
|
{}
|
|
4946
4960
|
)
|
|
4947
|
-
), [s, u] =
|
|
4961
|
+
), [s, u] = L(() => ({
|
|
4948
4962
|
content: Io({
|
|
4949
4963
|
content: e.content,
|
|
4950
4964
|
data: e.data
|
|
@@ -4969,13 +4983,15 @@ function lr(e) {
|
|
|
4969
4983
|
...Gn,
|
|
4970
4984
|
...e.customComponents || []
|
|
4971
4985
|
].reduce(
|
|
4972
|
-
(N, { component:
|
|
4986
|
+
(N, { component: W, ...G }) => ({
|
|
4973
4987
|
...N,
|
|
4974
|
-
[
|
|
4988
|
+
[G.name]: zn(G)
|
|
4975
4989
|
}),
|
|
4976
4990
|
{}
|
|
4977
4991
|
),
|
|
4978
|
-
inheritedStyles: {}
|
|
4992
|
+
inheritedStyles: {},
|
|
4993
|
+
BlocksWrapper: e.blocksWrapper || "div",
|
|
4994
|
+
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
4979
4995
|
}));
|
|
4980
4996
|
return /* @__PURE__ */ p(
|
|
4981
4997
|
fr.Provider,
|
|
@@ -4984,7 +5000,7 @@ function lr(e) {
|
|
|
4984
5000
|
registeredComponents: i
|
|
4985
5001
|
},
|
|
4986
5002
|
children: /* @__PURE__ */ Z(
|
|
4987
|
-
|
|
5003
|
+
xo,
|
|
4988
5004
|
{
|
|
4989
5005
|
content: e.content,
|
|
4990
5006
|
model: e.model,
|
|
@@ -4996,21 +5012,23 @@ function lr(e) {
|
|
|
4996
5012
|
enrich: e.enrich,
|
|
4997
5013
|
showContent: e.showContent,
|
|
4998
5014
|
builderContextSignal: s,
|
|
5015
|
+
contentWrapper: e.contentWrapper,
|
|
5016
|
+
contentWrapperProps: e.contentWrapperProps,
|
|
4999
5017
|
setBuilderContextSignal: u,
|
|
5000
5018
|
children: [
|
|
5001
|
-
e.isSsrAbTest ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
5019
|
+
e.isSsrAbTest ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(Jt, { scriptStr: t }) }) : null,
|
|
5002
5020
|
/* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
5003
5021
|
Co,
|
|
5004
5022
|
{
|
|
5005
5023
|
contentId: (f = s.content) == null ? void 0 : f.id,
|
|
5006
5024
|
cssCode: (v = (g = s.content) == null ? void 0 : g.data) == null ? void 0 : v.cssCode,
|
|
5007
|
-
customFonts: (
|
|
5025
|
+
customFonts: (U = (S = s.content) == null ? void 0 : S.data) == null ? void 0 : U.customFonts
|
|
5008
5026
|
}
|
|
5009
5027
|
) }),
|
|
5010
5028
|
/* @__PURE__ */ p(
|
|
5011
|
-
|
|
5029
|
+
hn,
|
|
5012
5030
|
{
|
|
5013
|
-
blocks: (E = (
|
|
5031
|
+
blocks: (E = ($ = s.content) == null ? void 0 : $.data) == null ? void 0 : E.blocks,
|
|
5014
5032
|
context: s,
|
|
5015
5033
|
registeredComponents: i
|
|
5016
5034
|
}
|
|
@@ -5023,16 +5041,16 @@ function lr(e) {
|
|
|
5023
5041
|
}
|
|
5024
5042
|
function Ir(e) {
|
|
5025
5043
|
var s, u;
|
|
5026
|
-
const [t, r] =
|
|
5044
|
+
const [t, r] = L(
|
|
5027
5045
|
() => lo({
|
|
5028
|
-
canTrack:
|
|
5046
|
+
canTrack: ht(e.canTrack),
|
|
5029
5047
|
content: e.content
|
|
5030
5048
|
})
|
|
5031
5049
|
);
|
|
5032
5050
|
function n() {
|
|
5033
5051
|
var f;
|
|
5034
5052
|
return fo(
|
|
5035
|
-
|
|
5053
|
+
ft(e.content).map((g) => ({
|
|
5036
5054
|
id: g.testVariationId,
|
|
5037
5055
|
testRatio: g.testRatio
|
|
5038
5056
|
})),
|
|
@@ -5040,7 +5058,7 @@ function Ir(e) {
|
|
|
5040
5058
|
);
|
|
5041
5059
|
}
|
|
5042
5060
|
function i() {
|
|
5043
|
-
return
|
|
5061
|
+
return ft(e.content).map((f) => `.variant-${f.testVariationId} { display: none; } `).join("");
|
|
5044
5062
|
}
|
|
5045
5063
|
function a() {
|
|
5046
5064
|
var f;
|
|
@@ -5049,22 +5067,22 @@ function Ir(e) {
|
|
|
5049
5067
|
testVariationId: (f = e.content) == null ? void 0 : f.id
|
|
5050
5068
|
} : Xr({
|
|
5051
5069
|
item: e.content,
|
|
5052
|
-
canTrack:
|
|
5070
|
+
canTrack: ht(e.canTrack)
|
|
5053
5071
|
});
|
|
5054
5072
|
}
|
|
5055
5073
|
return ee(() => {
|
|
5056
5074
|
}, []), /* @__PURE__ */ Z(P, { children: [
|
|
5057
|
-
!e.__isNestedRender &&
|
|
5075
|
+
!e.__isNestedRender && nt !== "reactNative" ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(Jt, { scriptStr: uo() }) }) : null,
|
|
5058
5076
|
t ? /* @__PURE__ */ Z(P, { children: [
|
|
5059
5077
|
/* @__PURE__ */ p(
|
|
5060
|
-
|
|
5078
|
+
yt,
|
|
5061
5079
|
{
|
|
5062
5080
|
id: `variants-styles-${(s = e.content) == null ? void 0 : s.id}`,
|
|
5063
5081
|
styles: i()
|
|
5064
5082
|
}
|
|
5065
5083
|
),
|
|
5066
|
-
/* @__PURE__ */ p(
|
|
5067
|
-
(u =
|
|
5084
|
+
/* @__PURE__ */ p(Jt, { scriptStr: n() }),
|
|
5085
|
+
(u = ft(e.content)) == null ? void 0 : u.map((f) => /* @__PURE__ */ p(
|
|
5068
5086
|
lr,
|
|
5069
5087
|
{
|
|
5070
5088
|
content: f,
|
|
@@ -5079,7 +5097,11 @@ function Ir(e) {
|
|
|
5079
5097
|
locale: e.locale,
|
|
5080
5098
|
includeRefs: e.includeRefs,
|
|
5081
5099
|
enrich: e.enrich,
|
|
5082
|
-
isSsrAbTest: t
|
|
5100
|
+
isSsrAbTest: t,
|
|
5101
|
+
blocksWrapper: e.blocksWrapper,
|
|
5102
|
+
blocksWrapperProps: e.blocksWrapperProps,
|
|
5103
|
+
contentWrapper: e.contentWrapper,
|
|
5104
|
+
contentWrapperProps: e.contentWrapperProps
|
|
5083
5105
|
},
|
|
5084
5106
|
f.testVariationId
|
|
5085
5107
|
))
|
|
@@ -5099,7 +5121,11 @@ function Ir(e) {
|
|
|
5099
5121
|
locale: e.locale,
|
|
5100
5122
|
includeRefs: e.includeRefs,
|
|
5101
5123
|
enrich: e.enrich,
|
|
5102
|
-
isSsrAbTest: t
|
|
5124
|
+
isSsrAbTest: t,
|
|
5125
|
+
blocksWrapper: e.blocksWrapper,
|
|
5126
|
+
blocksWrapperProps: e.blocksWrapperProps,
|
|
5127
|
+
contentWrapper: e.contentWrapper,
|
|
5128
|
+
contentWrapperProps: e.contentWrapperProps
|
|
5103
5129
|
}
|
|
5104
5130
|
)
|
|
5105
5131
|
] });
|
|
@@ -5134,7 +5160,7 @@ function jo(e) {
|
|
|
5134
5160
|
(g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5135
5161
|
].filter(Boolean).join(" ");
|
|
5136
5162
|
}
|
|
5137
|
-
const [r, n] =
|
|
5163
|
+
const [r, n] = L(() => {
|
|
5138
5164
|
var f;
|
|
5139
5165
|
return (f = e.symbol) == null ? void 0 : f.content;
|
|
5140
5166
|
});
|
|
@@ -5167,31 +5193,31 @@ function jo(e) {
|
|
|
5167
5193
|
}
|
|
5168
5194
|
) });
|
|
5169
5195
|
}
|
|
5170
|
-
const Po =
|
|
5196
|
+
const Po = hn, No = Ir;
|
|
5171
5197
|
export {
|
|
5172
|
-
|
|
5198
|
+
hn as Blocks,
|
|
5173
5199
|
Yr as Button,
|
|
5174
|
-
|
|
5200
|
+
Fi as Columns,
|
|
5175
5201
|
Ir as Content,
|
|
5176
|
-
|
|
5177
|
-
|
|
5202
|
+
Ui as Fragment,
|
|
5203
|
+
Wi as Image,
|
|
5178
5204
|
Po as RenderBlocks,
|
|
5179
5205
|
No as RenderContent,
|
|
5180
|
-
|
|
5206
|
+
Vi as Section,
|
|
5181
5207
|
jo as Symbol,
|
|
5182
5208
|
ro as Text,
|
|
5183
5209
|
oo as Video,
|
|
5184
|
-
|
|
5210
|
+
Fo as _processContentResult,
|
|
5185
5211
|
Gr as createRegisterComponentMessage,
|
|
5186
|
-
|
|
5212
|
+
Uo as fetchBuilderProps,
|
|
5187
5213
|
_o as fetchEntries,
|
|
5188
5214
|
dr as fetchOneEntry,
|
|
5189
5215
|
Do as getAllContent,
|
|
5190
|
-
|
|
5191
|
-
|
|
5216
|
+
Wo as getBuilderSearchParams,
|
|
5217
|
+
Vo as getContent,
|
|
5192
5218
|
Ee as isEditing,
|
|
5193
5219
|
Kr as isPreviewing,
|
|
5194
5220
|
Hr as register,
|
|
5195
|
-
|
|
5196
|
-
|
|
5221
|
+
Lo as setEditorSettings,
|
|
5222
|
+
$o as track
|
|
5197
5223
|
};
|