@builder.io/sdk-react-nextjs 0.14.15 → 0.14.17
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/{node/USE_CLIENT_BUNDLE-85565442.cjs → browser/USE_CLIENT_BUNDLE-f11159f6.cjs} +3 -3
- package/lib/browser/{USE_CLIENT_BUNDLE-619fca6f.js → USE_CLIENT_BUNDLE-f685a480.js} +15 -15
- package/lib/{edge/USE_SERVER_BUNDLE-b436e323.cjs → browser/USE_SERVER_BUNDLE-1ee4e92a.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-54c1fcea.js → browser/USE_SERVER_BUNDLE-fbe70d66.js} +1 -1
- package/lib/browser/{bundle-62dcf48b.js → bundle-974bbd75.js} +555 -540
- package/lib/browser/bundle-e5f3c905.cjs +169 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{browser/USE_CLIENT_BUNDLE-d44f1d9a.cjs → edge/USE_CLIENT_BUNDLE-22f09854.cjs} +3 -3
- package/lib/{node/USE_CLIENT_BUNDLE-c0730eab.js → edge/USE_CLIENT_BUNDLE-bf35f13e.js} +15 -15
- package/lib/{node/USE_SERVER_BUNDLE-81427dab.cjs → edge/USE_SERVER_BUNDLE-4035cf43.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-558179bb.js → edge/USE_SERVER_BUNDLE-6b33cfd7.js} +1 -1
- package/lib/edge/{bundle-67ad9183.js → bundle-0e4ba4de.js} +1027 -1012
- package/lib/edge/{bundle-fbc6c22e.cjs → bundle-15a88622.cjs} +29 -29
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-84dff6eb.js → node/USE_CLIENT_BUNDLE-8dadab11.js} +15 -15
- package/lib/{edge/USE_CLIENT_BUNDLE-97b90370.cjs → node/USE_CLIENT_BUNDLE-e62d9c72.cjs} +3 -3
- package/lib/{browser/USE_SERVER_BUNDLE-b4db53a9.js → node/USE_SERVER_BUNDLE-d7d118c1.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-72579b21.cjs → node/USE_SERVER_BUNDLE-d847a064.cjs} +1 -1
- package/lib/node/{bundle-3fe2b5da.cjs → bundle-39fe7680.cjs} +9 -9
- package/lib/node/{bundle-5f638f04.js → bundle-a8217ddb.js} +170 -155
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +1 -1
- package/types/cjs/components/block/animator.d.ts +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/is-previewing.d.ts +1 -1
- package/types/esm/components/block/animator.d.ts +1 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/is-previewing.d.ts +1 -1
- package/lib/browser/bundle-df3df109.cjs +0 -169
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as A, Fragment as
|
|
1
|
+
import { jsx as A, Fragment as Q, jsxs as xe } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { I as
|
|
4
|
-
import { LRUCache as
|
|
3
|
+
import { I as ro, B as oo, a as io, D as ao, C as so, E as lo, b as co, V as uo, c as fo, F as po, d as ho, S as mo, e as go } from "./USE_CLIENT_BUNDLE-bf35f13e.js";
|
|
4
|
+
import { LRUCache as yo } from "lru-cache";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
const
|
|
6
|
+
const vo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ga = (e) => typeof e == "string" && vo.has(e.toLowerCase()), he = "rsc", Yt = () => {
|
|
7
7
|
switch (he) {
|
|
8
8
|
case "react":
|
|
9
9
|
case "reactNative":
|
|
@@ -16,7 +16,7 @@ const yo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr",
|
|
|
16
16
|
return "class";
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
function
|
|
19
|
+
function bo(e) {
|
|
20
20
|
var t;
|
|
21
21
|
return {
|
|
22
22
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -27,7 +27,7 @@ function vo(e) {
|
|
|
27
27
|
builderBlock: e
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
const st = "[Builder.io]: ",
|
|
30
|
+
const st = "[Builder.io]: ", q = {
|
|
31
31
|
log: (...e) => console.log(st, ...e),
|
|
32
32
|
error: (...e) => console.error(st, ...e),
|
|
33
33
|
warn: (...e) => console.warn(st, ...e),
|
|
@@ -36,26 +36,27 @@ const st = "[Builder.io]: ", X = {
|
|
|
36
36
|
function G() {
|
|
37
37
|
return typeof window < "u" && typeof document < "u";
|
|
38
38
|
}
|
|
39
|
-
const
|
|
39
|
+
const So = (e) => {
|
|
40
40
|
const t = {};
|
|
41
41
|
return e.forEach((n, r) => {
|
|
42
42
|
t[r] = n;
|
|
43
43
|
}), t;
|
|
44
|
-
},
|
|
45
|
-
function
|
|
44
|
+
}, lr = (e) => e instanceof URLSearchParams ? So(e) : e, cr = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
45
|
+
function wo() {
|
|
46
46
|
return G() && window.self !== window.top;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return
|
|
48
|
+
function ur(e) {
|
|
49
|
+
return wo() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
50
|
+
cr(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
50
51
|
}
|
|
51
|
-
const
|
|
52
|
+
const xo = () => {
|
|
52
53
|
if (G()) {
|
|
53
54
|
const e = new URL(location.href);
|
|
54
55
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
55
56
|
} else
|
|
56
57
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
57
|
-
},
|
|
58
|
-
const e =
|
|
58
|
+
}, ko = () => typeof navigator == "object" && navigator.userAgent || "", fr = () => {
|
|
59
|
+
const e = ko(), t = {
|
|
59
60
|
Android() {
|
|
60
61
|
return e.match(/Android/i);
|
|
61
62
|
},
|
|
@@ -74,7 +75,7 @@ const wo = () => {
|
|
|
74
75
|
any() {
|
|
75
76
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || he === "reactNative";
|
|
76
77
|
}
|
|
77
|
-
}, n = e.match(/Tablet|iPad/i), r =
|
|
78
|
+
}, n = e.match(/Tablet|iPad/i), r = xo();
|
|
78
79
|
return {
|
|
79
80
|
urlPath: r == null ? void 0 : r.pathname,
|
|
80
81
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
@@ -92,14 +93,14 @@ const wo = () => {
|
|
|
92
93
|
builder: e,
|
|
93
94
|
context: t,
|
|
94
95
|
event: n
|
|
95
|
-
}),
|
|
96
|
-
isEditing:
|
|
96
|
+
}), Co = () => ({
|
|
97
|
+
isEditing: ur(),
|
|
97
98
|
isBrowser: G(),
|
|
98
99
|
isServer: !G(),
|
|
99
100
|
getUserAttributes: () => fr()
|
|
100
|
-
}),
|
|
101
|
+
}), Eo = (e, {
|
|
101
102
|
isExpression: t = !0
|
|
102
|
-
}) => /* 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,
|
|
103
|
+
}) => /* 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, Io = ({
|
|
103
104
|
code: e,
|
|
104
105
|
builder: t,
|
|
105
106
|
context: n,
|
|
@@ -151,19 +152,19 @@ const hr = (e, t, n) => {
|
|
|
151
152
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
152
153
|
return r.slice(0, -1).reduce((o, i, s) => Object(o[i]) === o[i] ? o[i] : o[i] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
153
154
|
};
|
|
154
|
-
var U,
|
|
155
|
+
var U, To = function(e) {
|
|
155
156
|
function t(a) {
|
|
156
|
-
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a &&
|
|
157
|
+
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && to.test(String.fromCharCode(a));
|
|
157
158
|
}
|
|
158
159
|
function n(a) {
|
|
159
|
-
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a &&
|
|
160
|
+
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Wn.test(String.fromCharCode(a));
|
|
160
161
|
}
|
|
161
162
|
function r(a, l) {
|
|
162
163
|
for (var c = g, d = 1, I = 0; ; ) {
|
|
163
164
|
at.lastIndex = I;
|
|
164
|
-
var
|
|
165
|
-
if (
|
|
166
|
-
++d, I =
|
|
165
|
+
var W = at.exec(c);
|
|
166
|
+
if (W && W.index < a)
|
|
167
|
+
++d, I = W.index + W[0].length;
|
|
167
168
|
else
|
|
168
169
|
break;
|
|
169
170
|
}
|
|
@@ -184,7 +185,7 @@ var U, Io = function(e) {
|
|
|
184
185
|
this.line = Se, this.ab = f - se;
|
|
185
186
|
}
|
|
186
187
|
function s(a, l) {
|
|
187
|
-
Ce = f, O.C && (
|
|
188
|
+
Ce = f, O.C && (Tt = new i()), E = a, p(), te = l, Me = a.m;
|
|
188
189
|
}
|
|
189
190
|
function u() {
|
|
190
191
|
for (var a = f, l = O.va && O.C && new i(), c = g.charCodeAt(f += 2); f < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
@@ -216,16 +217,16 @@ var U, Io = function(e) {
|
|
|
216
217
|
break;
|
|
217
218
|
else if (a === 160)
|
|
218
219
|
++f;
|
|
219
|
-
else if (5760 <= a &&
|
|
220
|
+
else if (5760 <= a && eo.test(String.fromCharCode(a)))
|
|
220
221
|
++f;
|
|
221
222
|
else
|
|
222
223
|
break;
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
|
-
function
|
|
226
|
+
function S(a) {
|
|
226
227
|
switch (a) {
|
|
227
228
|
case 46:
|
|
228
|
-
a = g.charCodeAt(f + 1), 48 <= a && 57 >= a ?
|
|
229
|
+
a = g.charCodeAt(f + 1), 48 <= a && 57 >= a ? C(!0) : (++f, s(Un));
|
|
229
230
|
return;
|
|
230
231
|
case 40:
|
|
231
232
|
return ++f, s(le);
|
|
@@ -236,9 +237,9 @@ var U, Io = function(e) {
|
|
|
236
237
|
case 44:
|
|
237
238
|
return ++f, s(ye);
|
|
238
239
|
case 91:
|
|
239
|
-
return ++f, s(Ft);
|
|
240
|
-
case 93:
|
|
241
240
|
return ++f, s(Mt);
|
|
241
|
+
case 93:
|
|
242
|
+
return ++f, s(Vt);
|
|
242
243
|
case 123:
|
|
243
244
|
return ++f, s(Le);
|
|
244
245
|
case 125:
|
|
@@ -246,10 +247,10 @@ var U, Io = function(e) {
|
|
|
246
247
|
case 58:
|
|
247
248
|
return ++f, s(_e);
|
|
248
249
|
case 63:
|
|
249
|
-
return ++f, s(
|
|
250
|
+
return ++f, s(Bn);
|
|
250
251
|
case 48:
|
|
251
252
|
if (a = g.charCodeAt(f + 1), a === 120 || a === 88) {
|
|
252
|
-
f += 2, a =
|
|
253
|
+
f += 2, a = P(16), a === null && r(L + 2, "Expected hexadecimal number"), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), s(De, a);
|
|
253
254
|
return;
|
|
254
255
|
}
|
|
255
256
|
case 49:
|
|
@@ -261,12 +262,12 @@ var U, Io = function(e) {
|
|
|
261
262
|
case 55:
|
|
262
263
|
case 56:
|
|
263
264
|
case 57:
|
|
264
|
-
return
|
|
265
|
+
return C(!1);
|
|
265
266
|
case 34:
|
|
266
267
|
case 39:
|
|
267
268
|
f++;
|
|
268
269
|
for (var l = ""; ; ) {
|
|
269
|
-
f >= ke && r(
|
|
270
|
+
f >= ke && r(L, "Unterminated string constant");
|
|
270
271
|
var c = g.charCodeAt(f);
|
|
271
272
|
if (c === a) {
|
|
272
273
|
++f, s(nt, l);
|
|
@@ -278,7 +279,7 @@ var U, Io = function(e) {
|
|
|
278
279
|
for (d && (d = d[0]); d && 255 < parseInt(d, 8); )
|
|
279
280
|
d = d.slice(0, -1);
|
|
280
281
|
if (d === "0" && (d = null), ++f, d)
|
|
281
|
-
|
|
282
|
+
Z && r(f - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(d, 8)), f += d.length - 1;
|
|
282
283
|
else
|
|
283
284
|
switch (c) {
|
|
284
285
|
case 110:
|
|
@@ -289,13 +290,13 @@ var U, Io = function(e) {
|
|
|
289
290
|
l += "\r";
|
|
290
291
|
break;
|
|
291
292
|
case 120:
|
|
292
|
-
l += String.fromCharCode(
|
|
293
|
+
l += String.fromCharCode(v(2));
|
|
293
294
|
break;
|
|
294
295
|
case 117:
|
|
295
|
-
l += String.fromCharCode(
|
|
296
|
+
l += String.fromCharCode(v(4));
|
|
296
297
|
break;
|
|
297
298
|
case 85:
|
|
298
|
-
l += String.fromCharCode(
|
|
299
|
+
l += String.fromCharCode(v(8));
|
|
299
300
|
break;
|
|
300
301
|
case 116:
|
|
301
302
|
l += " ";
|
|
@@ -321,50 +322,50 @@ var U, Io = function(e) {
|
|
|
321
322
|
l += String.fromCharCode(c);
|
|
322
323
|
}
|
|
323
324
|
} else
|
|
324
|
-
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(
|
|
325
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(L, "Unterminated string constant"), l += String.fromCharCode(c), ++f;
|
|
325
326
|
}
|
|
326
327
|
return;
|
|
327
328
|
case 47:
|
|
328
|
-
a = g.charCodeAt(f + 1), Me ? (++f,
|
|
329
|
+
a = g.charCodeAt(f + 1), Me ? (++f, R()) : a === 61 ? m(we, 2) : m(Fn, 1);
|
|
329
330
|
return;
|
|
330
331
|
case 37:
|
|
331
332
|
case 42:
|
|
332
|
-
g.charCodeAt(f + 1) === 61 ? m(we, 2) : m(
|
|
333
|
+
g.charCodeAt(f + 1) === 61 ? m(we, 2) : m(qr, 1);
|
|
333
334
|
return;
|
|
334
335
|
case 124:
|
|
335
336
|
case 38:
|
|
336
|
-
l = g.charCodeAt(f + 1), l === a ? m(a === 124 ?
|
|
337
|
+
l = g.charCodeAt(f + 1), l === a ? m(a === 124 ? Dn : Ln, 2) : l === 61 ? m(we, 2) : m(a === 124 ? Hr : Gr, 1);
|
|
337
338
|
return;
|
|
338
339
|
case 94:
|
|
339
|
-
g.charCodeAt(f + 1) === 61 ? m(we, 2) : m(
|
|
340
|
+
g.charCodeAt(f + 1) === 61 ? m(we, 2) : m(Kr, 1);
|
|
340
341
|
return;
|
|
341
342
|
case 43:
|
|
342
343
|
case 45:
|
|
343
|
-
l = g.charCodeAt(f + 1), l === a ? l === 45 && g.charCodeAt(f + 2) === 62 && it.test(g.slice(ge, f)) ? (f += 3, u(), p(),
|
|
344
|
+
l = g.charCodeAt(f + 1), l === a ? l === 45 && g.charCodeAt(f + 2) === 62 && it.test(g.slice(ge, f)) ? (f += 3, u(), p(), k()) : m($r, 2) : l === 61 ? m(we, 2) : m(zr, 1);
|
|
344
345
|
return;
|
|
345
346
|
case 60:
|
|
346
347
|
case 62:
|
|
347
|
-
l = g.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && g.charCodeAt(f + 2) === 62 ? 3 : 2, g.charCodeAt(f + c) === 61 ? m(we, c + 1) : m(
|
|
348
|
+
l = g.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && g.charCodeAt(f + 2) === 62 ? 3 : 2, g.charCodeAt(f + c) === 61 ? m(we, c + 1) : m(Jr, c)) : l === 33 && a === 60 && g.charCodeAt(f + 2) === 45 && g.charCodeAt(f + 3) === 45 ? (f += 4, u(), p(), k()) : (l === 61 && (c = g.charCodeAt(f + 2) === 61 ? 3 : 2), m(Yr, c));
|
|
348
349
|
return;
|
|
349
350
|
case 61:
|
|
350
351
|
case 33:
|
|
351
|
-
g.charCodeAt(f + 1) === 61 ? m(
|
|
352
|
+
g.charCodeAt(f + 1) === 61 ? m(Xr, g.charCodeAt(f + 2) === 61 ? 3 : 2) : m(a === 61 ? Mn : Vn, 1);
|
|
352
353
|
return;
|
|
353
354
|
case 126:
|
|
354
|
-
return m(
|
|
355
|
+
return m(Vn, 1);
|
|
355
356
|
}
|
|
356
357
|
return !1;
|
|
357
358
|
}
|
|
358
|
-
function
|
|
359
|
-
if (a ? f =
|
|
360
|
-
return
|
|
359
|
+
function k(a) {
|
|
360
|
+
if (a ? f = L + 1 : L = f, O.C && (It = new i()), a)
|
|
361
|
+
return R();
|
|
361
362
|
if (f >= ke)
|
|
362
|
-
return s(
|
|
363
|
+
return s(jt);
|
|
363
364
|
if (a = g.charCodeAt(f), n(a) || a === 92)
|
|
364
|
-
return
|
|
365
|
-
if (
|
|
366
|
-
if (a = String.fromCharCode(a), a === "\\" ||
|
|
367
|
-
return
|
|
365
|
+
return j();
|
|
366
|
+
if (S(a) === !1) {
|
|
367
|
+
if (a = String.fromCharCode(a), a === "\\" || Wn.test(a))
|
|
368
|
+
return j();
|
|
368
369
|
r(f, "Unexpected character '" + a + "'");
|
|
369
370
|
}
|
|
370
371
|
}
|
|
@@ -372,7 +373,7 @@ var U, Io = function(e) {
|
|
|
372
373
|
var c = g.slice(f, f + l);
|
|
373
374
|
f += l, s(a, c);
|
|
374
375
|
}
|
|
375
|
-
function
|
|
376
|
+
function R() {
|
|
376
377
|
for (var a, l, c = f; ; ) {
|
|
377
378
|
f >= ke && r(c, "Unterminated regexp");
|
|
378
379
|
var d = g.charAt(f);
|
|
@@ -392,13 +393,13 @@ var U, Io = function(e) {
|
|
|
392
393
|
a = g.slice(c, f), ++f, (l = B()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
393
394
|
try {
|
|
394
395
|
var I = new RegExp(a, l);
|
|
395
|
-
} catch (
|
|
396
|
-
throw
|
|
396
|
+
} catch (W) {
|
|
397
|
+
throw W instanceof SyntaxError && r(c, W.message), W;
|
|
397
398
|
}
|
|
398
|
-
s(
|
|
399
|
+
s(mn, I);
|
|
399
400
|
}
|
|
400
|
-
function
|
|
401
|
-
for (var c = f, d = 0, I = l === void 0 ? 1 / 0 : l,
|
|
401
|
+
function P(a, l) {
|
|
402
|
+
for (var c = f, d = 0, I = l === void 0 ? 1 / 0 : l, W = 0; W < I; ++W) {
|
|
402
403
|
var Y = g.charCodeAt(f);
|
|
403
404
|
if (Y = 97 <= Y ? Y - 97 + 10 : 65 <= Y ? Y - 65 + 10 : 48 <= Y && 57 >= Y ? Y - 48 : 1 / 0, Y >= a)
|
|
404
405
|
break;
|
|
@@ -406,14 +407,14 @@ var U, Io = function(e) {
|
|
|
406
407
|
}
|
|
407
408
|
return f === c || l !== void 0 && f - c !== l ? null : d;
|
|
408
409
|
}
|
|
409
|
-
function
|
|
410
|
+
function C(a) {
|
|
410
411
|
var l = f, c = !1, d = g.charCodeAt(f) === 48;
|
|
411
|
-
a ||
|
|
412
|
+
a || P(10) !== null || r(l, "Invalid number"), g.charCodeAt(f) === 46 && (++f, P(10), c = !0), a = g.charCodeAt(f), (a === 69 || a === 101) && (a = g.charCodeAt(++f), a !== 43 && a !== 45 || ++f, P(10) === null && r(l, "Invalid number"), c = !0), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), a = g.slice(l, f);
|
|
412
413
|
var I;
|
|
413
|
-
c ? I = parseFloat(a) : d && a.length !== 1 ? /[89]/.test(a) ||
|
|
414
|
+
c ? I = parseFloat(a) : d && a.length !== 1 ? /[89]/.test(a) || Z ? r(l, "Invalid number") : I = parseInt(a, 8) : I = parseInt(a, 10), s(De, I);
|
|
414
415
|
}
|
|
415
|
-
function
|
|
416
|
-
return a =
|
|
416
|
+
function v(a) {
|
|
417
|
+
return a = P(16, a), a === null && r(L, "Bad character escape sequence"), a;
|
|
417
418
|
}
|
|
418
419
|
function B() {
|
|
419
420
|
Te = !1;
|
|
@@ -422,7 +423,7 @@ var U, Io = function(e) {
|
|
|
422
423
|
if (t(d))
|
|
423
424
|
Te && (a += g.charAt(f)), ++f;
|
|
424
425
|
else if (d === 92) {
|
|
425
|
-
Te || (a = g.slice(c, f)), Te = !0, g.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, d =
|
|
426
|
+
Te || (a = g.slice(c, f)), Te = !0, g.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, d = v(4);
|
|
426
427
|
var I = String.fromCharCode(d);
|
|
427
428
|
I || r(f - 1, "Invalid Unicode escape"), (l ? n(d) : t(d)) || r(f - 4, "Invalid Unicode escape"), a += I;
|
|
428
429
|
} else
|
|
@@ -431,281 +432,281 @@ var U, Io = function(e) {
|
|
|
431
432
|
}
|
|
432
433
|
return Te ? a : g.slice(c, f);
|
|
433
434
|
}
|
|
434
|
-
function
|
|
435
|
+
function j() {
|
|
435
436
|
var a = B(), l = Ee;
|
|
436
|
-
!Te &&
|
|
437
|
+
!Te && Qr(a) && (l = Wr[a]), s(l, a);
|
|
437
438
|
}
|
|
438
|
-
function
|
|
439
|
-
|
|
439
|
+
function w() {
|
|
440
|
+
At = L, ge = Ce, Ot = Tt, k();
|
|
440
441
|
}
|
|
441
|
-
function
|
|
442
|
-
if (
|
|
442
|
+
function X(a) {
|
|
443
|
+
if (Z = a, f = L, O.C)
|
|
443
444
|
for (; f < se; )
|
|
444
445
|
se = g.lastIndexOf(`
|
|
445
446
|
`, se - 2) + 1, --Se;
|
|
446
|
-
p(),
|
|
447
|
+
p(), k();
|
|
447
448
|
}
|
|
448
|
-
function
|
|
449
|
-
this.type = null, this.start =
|
|
449
|
+
function M() {
|
|
450
|
+
this.type = null, this.start = L, this.end = null;
|
|
450
451
|
}
|
|
451
452
|
function ee() {
|
|
452
|
-
this.start =
|
|
453
|
+
this.start = It, this.end = null, Et && (this.source = Et);
|
|
453
454
|
}
|
|
454
|
-
function
|
|
455
|
-
var a = new
|
|
456
|
-
return O.C && (a.X = new ee()), O.vb && (a.sourceFile = O.vb), O.Xa && (a.j = [
|
|
455
|
+
function _() {
|
|
456
|
+
var a = new M();
|
|
457
|
+
return O.C && (a.X = new ee()), O.vb && (a.sourceFile = O.vb), O.Xa && (a.j = [L, 0]), a;
|
|
457
458
|
}
|
|
458
459
|
function me(a) {
|
|
459
|
-
var l = new
|
|
460
|
+
var l = new M();
|
|
460
461
|
return l.start = a.start, O.C && (l.X = new ee(), l.X.start = a.X.start), O.Xa && (l.j = [a.j[0], 0]), l;
|
|
461
462
|
}
|
|
462
463
|
function T(a, l) {
|
|
463
|
-
return a.type = l, a.end = ge, O.C && (a.X.end =
|
|
464
|
+
return a.type = l, a.end = ge, O.C && (a.X.end = Ot), O.Xa && (a.j[1] = ge), a;
|
|
464
465
|
}
|
|
465
|
-
function
|
|
466
|
+
function vt(a) {
|
|
466
467
|
return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
|
|
467
468
|
}
|
|
468
469
|
function F(a) {
|
|
469
|
-
return E === a ? (
|
|
470
|
+
return E === a ? (w(), !0) : !1;
|
|
470
471
|
}
|
|
471
472
|
function Qe() {
|
|
472
|
-
return !O.fc && (E ===
|
|
473
|
+
return !O.fc && (E === jt || E === Ie || it.test(g.slice(ge, L)));
|
|
473
474
|
}
|
|
474
475
|
function be() {
|
|
475
476
|
F(ce) || Qe() || ie();
|
|
476
477
|
}
|
|
477
|
-
function
|
|
478
|
-
E === a ?
|
|
478
|
+
function V(a) {
|
|
479
|
+
E === a ? w() : ie();
|
|
479
480
|
}
|
|
480
481
|
function ie() {
|
|
481
|
-
r(
|
|
482
|
+
r(L, "Unexpected token");
|
|
482
483
|
}
|
|
483
484
|
function et(a) {
|
|
484
|
-
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"),
|
|
485
|
+
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), Z && a.type === "Identifier" && ot(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
485
486
|
}
|
|
486
487
|
function ne() {
|
|
487
|
-
(E ===
|
|
488
|
-
var a = E, l =
|
|
488
|
+
(E === Fn || E === we && te === "/=") && k(!0);
|
|
489
|
+
var a = E, l = _();
|
|
489
490
|
switch (a) {
|
|
490
|
-
case
|
|
491
|
-
case
|
|
492
|
-
|
|
493
|
-
var c = a ===
|
|
491
|
+
case Rt:
|
|
492
|
+
case yn:
|
|
493
|
+
w();
|
|
494
|
+
var c = a === Rt;
|
|
494
495
|
F(ce) || Qe() ? l.label = null : E !== Ee ? ie() : (l.label = ae(), be());
|
|
495
|
-
for (var d = 0; d <
|
|
496
|
-
var I =
|
|
496
|
+
for (var d = 0; d < D.length; ++d) {
|
|
497
|
+
var I = D[d];
|
|
497
498
|
if ((l.label === null || I.name === l.label.name) && (I.kind !== null && (c || I.kind === "loop") || l.label && c))
|
|
498
499
|
break;
|
|
499
500
|
}
|
|
500
|
-
return d ===
|
|
501
|
-
case
|
|
502
|
-
return
|
|
503
|
-
case
|
|
504
|
-
return
|
|
501
|
+
return d === D.length && r(l.start, "Unsyntactic " + a.l), T(l, c ? "BreakStatement" : "ContinueStatement");
|
|
502
|
+
case vn:
|
|
503
|
+
return w(), be(), T(l, "DebuggerStatement");
|
|
504
|
+
case Sn:
|
|
505
|
+
return w(), D.push(Dt), l.body = ne(), D.pop(), V(Ft), l.test = Ue(), be(), T(l, "DoWhileStatement");
|
|
506
|
+
case kn:
|
|
507
|
+
return w(), D.push(Dt), V(le), E === ce ? bt(l, null) : E === Bt ? (a = _(), w(), pn(a, !0), T(a, "VariableDeclaration"), a.fa.length === 1 && F(rt) ? dn(l, a) : bt(l, a)) : (a = K(!1, !0), F(rt) ? (et(a), dn(l, a)) : bt(l, a));
|
|
508
|
+
case Nt:
|
|
509
|
+
return w(), kt(l, !0);
|
|
505
510
|
case Cn:
|
|
506
|
-
return
|
|
507
|
-
case Pt:
|
|
508
|
-
return C(), xt(l, !0);
|
|
511
|
+
return w(), l.test = Ue(), l.da = ne(), l.alternate = F(wn) ? ne() : null, T(l, "IfStatement");
|
|
509
512
|
case En:
|
|
510
|
-
return
|
|
513
|
+
return Ve || O.Ib || r(L, "'return' outside of function"), w(), F(ce) || Qe() ? l.K = null : (l.K = K(), be()), T(l, "ReturnStatement");
|
|
514
|
+
case Ut:
|
|
515
|
+
for (w(), l.Qb = Ue(), l.tb = [], V(Le), D.push(no); E !== Ie; )
|
|
516
|
+
E === Pt || E === bn ? (a = E === Pt, d && T(d, "SwitchCase"), l.tb.push(d = _()), d.da = [], w(), a ? d.test = K() : (c && r(At, "Multiple default clauses"), c = !0, d.test = null), V(_e)) : (d || ie(), d.da.push(ne()));
|
|
517
|
+
return d && T(d, "SwitchCase"), w(), D.pop(), T(l, "SwitchStatement");
|
|
511
518
|
case In:
|
|
512
|
-
return
|
|
513
|
-
case Nt:
|
|
514
|
-
for (C(), l.Qb = Ue(), l.tb = [], M(Le), V.push(to); E !== Ie; )
|
|
515
|
-
E === Rt || E === Sn ? (a = E === Rt, d && T(d, "SwitchCase"), l.tb.push(d = L()), d.da = [], C(), a ? d.test = K() : (c && r(Tt, "Multiple default clauses"), c = !0, d.test = null), M(_e)) : (d || ie(), d.da.push(ne()));
|
|
516
|
-
return d && T(d, "SwitchCase"), C(), V.pop(), T(l, "SwitchStatement");
|
|
519
|
+
return w(), it.test(g.slice(ge, L)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), T(l, "ThrowStatement");
|
|
517
520
|
case Tn:
|
|
518
|
-
return
|
|
519
|
-
case An:
|
|
520
|
-
return C(), l.block = Be(), l.Ea = null, E === yn && (a = L(), C(), M(le), a.Ua = ae(), q && ot(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), M(re), a.body = Be(), l.Ea = T(a, "CatchClause")), l.fb = F(kn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), T(l, "TryStatement");
|
|
521
|
-
case Ut:
|
|
522
|
-
return C(), hn(l), be(), T(l, "VariableDeclaration");
|
|
521
|
+
return w(), l.block = Be(), l.Ea = null, E === gn && (a = _(), w(), V(le), a.Ua = ae(), Z && ot(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), V(re), a.body = Be(), l.Ea = T(a, "CatchClause")), l.fb = F(xn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), T(l, "TryStatement");
|
|
523
522
|
case Bt:
|
|
524
|
-
return
|
|
525
|
-
case
|
|
526
|
-
return
|
|
523
|
+
return w(), pn(l), be(), T(l, "VariableDeclaration");
|
|
524
|
+
case Ft:
|
|
525
|
+
return w(), l.test = Ue(), D.push(Dt), l.body = ne(), D.pop(), T(l, "WhileStatement");
|
|
526
|
+
case An:
|
|
527
|
+
return Z && r(L, "'with' in strict mode"), w(), l.object = Ue(), l.body = ne(), T(l, "WithStatement");
|
|
527
528
|
case Le:
|
|
528
529
|
return Be();
|
|
529
530
|
case ce:
|
|
530
|
-
return
|
|
531
|
+
return w(), T(l, "EmptyStatement");
|
|
531
532
|
default:
|
|
532
533
|
if (c = te, I = K(), a === Ee && I.type === "Identifier" && F(_e)) {
|
|
533
|
-
for (d = 0; d <
|
|
534
|
-
|
|
535
|
-
return
|
|
534
|
+
for (d = 0; d < D.length; ++d)
|
|
535
|
+
D[d].name === c && r(I.start, "Label '" + c + "' is already declared");
|
|
536
|
+
return D.push({
|
|
536
537
|
name: c,
|
|
537
|
-
kind: E.W ? "loop" : E ===
|
|
538
|
-
}), l.body = ne(),
|
|
538
|
+
kind: E.W ? "loop" : E === Ut ? "switch" : null
|
|
539
|
+
}), l.body = ne(), D.pop(), l.label = I, T(l, "LabeledStatement");
|
|
539
540
|
}
|
|
540
541
|
return l.la = I, be(), T(l, "ExpressionStatement");
|
|
541
542
|
}
|
|
542
543
|
}
|
|
543
544
|
function Ue() {
|
|
544
|
-
|
|
545
|
+
V(le);
|
|
545
546
|
var a = K();
|
|
546
|
-
return
|
|
547
|
+
return V(re), a;
|
|
547
548
|
}
|
|
548
549
|
function Be(a) {
|
|
549
|
-
var l =
|
|
550
|
-
for (l.body = [],
|
|
550
|
+
var l = _(), c = !0, d = !1;
|
|
551
|
+
for (l.body = [], V(Le); !F(Ie); ) {
|
|
551
552
|
var I = ne();
|
|
552
|
-
if (l.body.push(I), c && a &&
|
|
553
|
-
var
|
|
554
|
-
|
|
553
|
+
if (l.body.push(I), c && a && vt(I)) {
|
|
554
|
+
var W = d;
|
|
555
|
+
X(d = !0);
|
|
555
556
|
}
|
|
556
557
|
c = !1;
|
|
557
558
|
}
|
|
558
|
-
return d && !
|
|
559
|
+
return d && !W && X(!1), T(l, "BlockStatement");
|
|
559
560
|
}
|
|
560
|
-
function
|
|
561
|
-
return a.ua = l,
|
|
561
|
+
function bt(a, l) {
|
|
562
|
+
return a.ua = l, V(ce), a.test = E === ce ? null : K(), V(ce), a.update = E === re ? null : K(), V(re), a.body = ne(), D.pop(), T(a, "ForStatement");
|
|
562
563
|
}
|
|
563
|
-
function
|
|
564
|
-
return a.left = l, a.right = K(),
|
|
564
|
+
function dn(a, l) {
|
|
565
|
+
return a.left = l, a.right = K(), V(re), a.body = ne(), D.pop(), T(a, "ForInStatement");
|
|
565
566
|
}
|
|
566
|
-
function
|
|
567
|
+
function pn(a, l) {
|
|
567
568
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
568
|
-
var c =
|
|
569
|
-
if (c.id = ae(),
|
|
569
|
+
var c = _();
|
|
570
|
+
if (c.id = ae(), Z && ot(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = F(Mn) ? K(!0, l) : null, a.fa.push(T(c, "VariableDeclarator")), !F(ye))
|
|
570
571
|
break;
|
|
571
572
|
}
|
|
572
573
|
}
|
|
573
574
|
function K(a, l) {
|
|
574
|
-
var c =
|
|
575
|
+
var c = St(l);
|
|
575
576
|
if (!a && E === ye) {
|
|
576
577
|
for (a = me(c), a.xb = [c]; F(ye); )
|
|
577
|
-
a.xb.push(
|
|
578
|
+
a.xb.push(St(l));
|
|
578
579
|
return T(a, "SequenceExpression");
|
|
579
580
|
}
|
|
580
581
|
return c;
|
|
581
582
|
}
|
|
582
|
-
function
|
|
583
|
-
var l =
|
|
584
|
-
if (F(
|
|
583
|
+
function St(a) {
|
|
584
|
+
var l = wt(xt(), -1, a);
|
|
585
|
+
if (F(Bn)) {
|
|
585
586
|
var c = me(l);
|
|
586
|
-
c.test = l, c.da = K(!0),
|
|
587
|
+
c.test = l, c.da = K(!0), V(_e), c.alternate = K(!0, a), l = T(c, "ConditionalExpression");
|
|
587
588
|
}
|
|
588
|
-
return E.Cb ? (c = me(l), c.operator = te, c.left = l,
|
|
589
|
+
return E.Cb ? (c = me(l), c.operator = te, c.left = l, w(), c.right = St(a), et(l), T(c, "AssignmentExpression")) : l;
|
|
589
590
|
}
|
|
590
|
-
function
|
|
591
|
+
function wt(a, l, c) {
|
|
591
592
|
var d = E.L;
|
|
592
593
|
if (d !== null && (!c || E !== rt) && d > l) {
|
|
593
594
|
var I = me(a);
|
|
594
|
-
return I.left = a, I.operator = te, a = E,
|
|
595
|
+
return I.left = a, I.operator = te, a = E, w(), I.right = wt(xt(), d, c), d = T(I, a === Dn || a === Ln ? "LogicalExpression" : "BinaryExpression"), wt(d, l, c);
|
|
595
596
|
}
|
|
596
597
|
return a;
|
|
597
598
|
}
|
|
598
|
-
function
|
|
599
|
+
function xt() {
|
|
599
600
|
if (E.prefix) {
|
|
600
|
-
var a =
|
|
601
|
-
return a.operator = te, Me = a.prefix = !0,
|
|
601
|
+
var a = _(), l = E.$b;
|
|
602
|
+
return a.operator = te, Me = a.prefix = !0, w(), a.K = xt(), l ? et(a.K) : Z && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), T(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
602
603
|
}
|
|
603
604
|
for (l = Fe(tt()); E.cc && !Qe(); )
|
|
604
|
-
a = me(l), a.operator = te, a.prefix = !1, a.K = l, et(l),
|
|
605
|
+
a = me(l), a.operator = te, a.prefix = !1, a.K = l, et(l), w(), l = T(a, "UpdateExpression");
|
|
605
606
|
return l;
|
|
606
607
|
}
|
|
607
608
|
function Fe(a, l) {
|
|
608
|
-
if (F(
|
|
609
|
+
if (F(Un)) {
|
|
609
610
|
var c = me(a);
|
|
610
611
|
return c.object = a, c.Wa = ae(!0), c.bb = !1, Fe(T(c, "MemberExpression"), l);
|
|
611
612
|
}
|
|
612
|
-
return F(
|
|
613
|
+
return F(Mt) ? (c = me(a), c.object = a, c.Wa = K(), c.bb = !0, V(Vt), Fe(T(c, "MemberExpression"), l)) : !l && F(le) ? (c = me(a), c.callee = a, c.arguments = Ct(re, !1), Fe(T(c, "CallExpression"), l)) : a;
|
|
613
614
|
}
|
|
614
615
|
function tt() {
|
|
615
616
|
switch (E) {
|
|
616
|
-
case
|
|
617
|
-
var a =
|
|
618
|
-
return
|
|
617
|
+
case jn:
|
|
618
|
+
var a = _();
|
|
619
|
+
return w(), T(a, "ThisExpression");
|
|
619
620
|
case Ee:
|
|
620
621
|
return ae();
|
|
621
622
|
case De:
|
|
622
623
|
case nt:
|
|
623
|
-
case
|
|
624
|
-
return a =
|
|
624
|
+
case mn:
|
|
625
|
+
return a = _(), a.value = te, a.raw = g.slice(L, Ce), w(), T(a, "Literal");
|
|
626
|
+
case Rn:
|
|
625
627
|
case Pn:
|
|
626
628
|
case Nn:
|
|
627
|
-
|
|
628
|
-
return a = L(), a.value = E.$a, a.raw = E.l, C(), T(a, "Literal");
|
|
629
|
+
return a = _(), a.value = E.$a, a.raw = E.l, w(), T(a, "Literal");
|
|
629
630
|
case le:
|
|
630
|
-
a =
|
|
631
|
-
var l =
|
|
632
|
-
|
|
631
|
+
a = It;
|
|
632
|
+
var l = L;
|
|
633
|
+
w();
|
|
633
634
|
var c = K();
|
|
634
|
-
return c.start = l, c.end = Ce, O.C && (c.X.start = a, c.X.end =
|
|
635
|
-
case
|
|
636
|
-
return a =
|
|
635
|
+
return c.start = l, c.end = Ce, O.C && (c.X.start = a, c.X.end = Tt), O.Xa && (c.j = [l, Ce]), V(re), c;
|
|
636
|
+
case Mt:
|
|
637
|
+
return a = _(), w(), a.elements = Ct(Vt, !0, !0), T(a, "ArrayExpression");
|
|
637
638
|
case Le:
|
|
638
|
-
for (a =
|
|
639
|
+
for (a = _(), l = !0, c = !1, a.h = [], w(); !F(Ie); ) {
|
|
639
640
|
if (l)
|
|
640
641
|
l = !1;
|
|
641
|
-
else if (
|
|
642
|
+
else if (V(ye), O.sb && F(Ie))
|
|
642
643
|
break;
|
|
643
644
|
var d = {
|
|
644
645
|
key: E === De || E === nt ? tt() : ae(!0)
|
|
645
646
|
}, I = !1;
|
|
646
647
|
if (F(_e)) {
|
|
647
648
|
d.value = K(!0);
|
|
648
|
-
var
|
|
649
|
+
var W = d.kind = "init";
|
|
649
650
|
} else
|
|
650
|
-
d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ? ie() : (I = c = !0,
|
|
651
|
-
if (d.key.type === "Identifier" && (
|
|
651
|
+
d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ? ie() : (I = c = !0, W = d.kind = d.key.name, d.key = E === De || E === nt ? tt() : ae(!0), E !== le && ie(), d.value = kt(_(), !1));
|
|
652
|
+
if (d.key.type === "Identifier" && (Z || c))
|
|
652
653
|
for (var Y = 0; Y < a.h.length; ++Y) {
|
|
653
654
|
var Ae = a.h[Y];
|
|
654
655
|
if (Ae.key.name === d.key.name) {
|
|
655
|
-
var
|
|
656
|
-
|
|
656
|
+
var Lt = W === Ae.kind || I && Ae.kind === "init" || W === "init" && (Ae.kind === "get" || Ae.kind === "set");
|
|
657
|
+
Lt && !Z && W === "init" && Ae.kind === "init" && (Lt = !1), Lt && r(d.key.start, "Redefinition of property");
|
|
657
658
|
}
|
|
658
659
|
}
|
|
659
660
|
a.h.push(d);
|
|
660
661
|
}
|
|
661
662
|
return T(a, "ObjectExpression");
|
|
662
|
-
case
|
|
663
|
-
return a =
|
|
664
|
-
case
|
|
665
|
-
return a =
|
|
663
|
+
case Nt:
|
|
664
|
+
return a = _(), w(), kt(a, !1);
|
|
665
|
+
case On:
|
|
666
|
+
return a = _(), w(), a.callee = Fe(tt(), !0), a.arguments = F(le) ? Ct(re, !1) : _r, T(a, "NewExpression");
|
|
666
667
|
}
|
|
667
668
|
ie();
|
|
668
669
|
}
|
|
669
|
-
function
|
|
670
|
+
function kt(a, l) {
|
|
670
671
|
E === Ee ? a.id = ae() : l ? ie() : a.id = null, a.oa = [];
|
|
671
672
|
var c = !0;
|
|
672
|
-
for (
|
|
673
|
-
c ? c = !1 :
|
|
673
|
+
for (V(le); !F(re); )
|
|
674
|
+
c ? c = !1 : V(ye), a.oa.push(ae());
|
|
674
675
|
c = Ve;
|
|
675
|
-
var d =
|
|
676
|
-
if (Ve = !0,
|
|
676
|
+
var d = D;
|
|
677
|
+
if (Ve = !0, D = [], a.body = Be(!0), Ve = c, D = d, Z || a.body.body.length && vt(a.body.body[0])) {
|
|
677
678
|
for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
|
|
678
|
-
if (d = 0 > c ? a.id : a.oa[c], (
|
|
679
|
+
if (d = 0 > c ? a.id : a.oa[c], (_n(d.name) || ot(d.name)) && r(d.start, "Defining '" + d.name + "' in strict mode"), 0 <= c)
|
|
679
680
|
for (var I = 0; I < c; ++I)
|
|
680
681
|
d.name === a.oa[I].name && r(d.start, "Argument name clash in strict mode");
|
|
681
682
|
}
|
|
682
683
|
return T(a, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
683
684
|
}
|
|
684
|
-
function
|
|
685
|
+
function Ct(a, l, c) {
|
|
685
686
|
for (var d = [], I = !0; !F(a); ) {
|
|
686
687
|
if (I)
|
|
687
688
|
I = !1;
|
|
688
|
-
else if (
|
|
689
|
+
else if (V(ye), l && O.sb && F(a))
|
|
689
690
|
break;
|
|
690
691
|
d.push(c && E === ye ? null : K(!0));
|
|
691
692
|
}
|
|
692
693
|
return d;
|
|
693
694
|
}
|
|
694
695
|
function ae(a) {
|
|
695
|
-
var l =
|
|
696
|
-
return a && O.yb === "everywhere" && (a = !1), E === Ee ? (!a && (O.yb &&
|
|
696
|
+
var l = _();
|
|
697
|
+
return a && O.yb === "everywhere" && (a = !1), E === Ee ? (!a && (O.yb && Zr(te) || Z && _n(te)) && g.slice(L, Ce).indexOf("\\") === -1 && r(L, "The keyword '" + te + "' is reserved"), l.name = te) : a && E.l ? l.name = E.l : ie(), Me = !1, w(), T(l, "Identifier");
|
|
697
698
|
}
|
|
698
699
|
e.version = "0.5.0";
|
|
699
|
-
var O, g = "", ke,
|
|
700
|
+
var O, g = "", ke, Et;
|
|
700
701
|
e.parse = function(a, l) {
|
|
701
702
|
g = String(a), ke = g.length, O = l || {};
|
|
702
|
-
for (var c in
|
|
703
|
-
Object.prototype.hasOwnProperty.call(O, c) || (O[c] =
|
|
704
|
-
for (
|
|
705
|
-
c = ne(), a.body.push(c), l &&
|
|
703
|
+
for (var c in hn)
|
|
704
|
+
Object.prototype.hasOwnProperty.call(O, c) || (O[c] = hn[c]);
|
|
705
|
+
for (Et = O.sourceFile, Se = 1, f = se = 0, Me = !0, p(), c = O.dc, At = ge = f, O.C && (Ot = new i()), Ve = Z = !1, D = [], k(), a = c || _(), l = !0, c || (a.body = []); E !== jt; )
|
|
706
|
+
c = ne(), a.body.push(c), l && vt(c) && X(!0), l = !1;
|
|
706
707
|
return T(a, "Program");
|
|
707
708
|
};
|
|
708
|
-
var
|
|
709
|
+
var hn = {
|
|
709
710
|
fc: !1,
|
|
710
711
|
sb: !0,
|
|
711
712
|
yb: !1,
|
|
@@ -716,110 +717,110 @@ var U, Io = function(e) {
|
|
|
716
717
|
dc: null,
|
|
717
718
|
sourceFile: null,
|
|
718
719
|
vb: null
|
|
719
|
-
}, f = 0,
|
|
720
|
+
}, f = 0, L = 0, Ce = 0, It, Tt, E, te, Me, Se, se, At = 0, ge = 0, Ot, Ve, D, Z, _r = [], De = {
|
|
720
721
|
type: "num"
|
|
721
|
-
},
|
|
722
|
+
}, mn = {
|
|
722
723
|
type: "regexp"
|
|
723
724
|
}, nt = {
|
|
724
725
|
type: "string"
|
|
725
726
|
}, Ee = {
|
|
726
727
|
type: "name"
|
|
727
|
-
}, Ot = {
|
|
728
|
-
type: "eof"
|
|
729
728
|
}, jt = {
|
|
730
|
-
|
|
729
|
+
type: "eof"
|
|
731
730
|
}, Rt = {
|
|
731
|
+
l: "break"
|
|
732
|
+
}, Pt = {
|
|
732
733
|
l: "case",
|
|
733
734
|
m: !0
|
|
734
|
-
},
|
|
735
|
+
}, gn = {
|
|
735
736
|
l: "catch"
|
|
736
|
-
},
|
|
737
|
+
}, yn = {
|
|
737
738
|
l: "continue"
|
|
738
|
-
},
|
|
739
|
+
}, vn = {
|
|
739
740
|
l: "debugger"
|
|
740
|
-
},
|
|
741
|
+
}, bn = {
|
|
741
742
|
l: "default"
|
|
742
|
-
},
|
|
743
|
+
}, Sn = {
|
|
743
744
|
l: "do",
|
|
744
745
|
W: !0
|
|
745
|
-
},
|
|
746
|
+
}, wn = {
|
|
746
747
|
l: "else",
|
|
747
748
|
m: !0
|
|
748
|
-
},
|
|
749
|
+
}, xn = {
|
|
749
750
|
l: "finally"
|
|
750
|
-
},
|
|
751
|
+
}, kn = {
|
|
751
752
|
l: "for",
|
|
752
753
|
W: !0
|
|
753
|
-
},
|
|
754
|
+
}, Nt = {
|
|
754
755
|
l: "function"
|
|
755
|
-
},
|
|
756
|
+
}, Cn = {
|
|
756
757
|
l: "if"
|
|
757
|
-
},
|
|
758
|
+
}, En = {
|
|
758
759
|
l: "return",
|
|
759
760
|
m: !0
|
|
760
|
-
},
|
|
761
|
+
}, Ut = {
|
|
761
762
|
l: "switch"
|
|
762
|
-
},
|
|
763
|
+
}, In = {
|
|
763
764
|
l: "throw",
|
|
764
765
|
m: !0
|
|
765
|
-
},
|
|
766
|
+
}, Tn = {
|
|
766
767
|
l: "try"
|
|
767
|
-
}, Ut = {
|
|
768
|
-
l: "var"
|
|
769
768
|
}, Bt = {
|
|
769
|
+
l: "var"
|
|
770
|
+
}, Ft = {
|
|
770
771
|
l: "while",
|
|
771
772
|
W: !0
|
|
772
|
-
},
|
|
773
|
+
}, An = {
|
|
773
774
|
l: "with"
|
|
774
|
-
},
|
|
775
|
+
}, On = {
|
|
775
776
|
l: "new",
|
|
776
777
|
m: !0
|
|
777
|
-
},
|
|
778
|
+
}, jn = {
|
|
778
779
|
l: "this"
|
|
779
|
-
},
|
|
780
|
+
}, Rn = {
|
|
780
781
|
l: "null",
|
|
781
782
|
$a: null
|
|
782
|
-
},
|
|
783
|
+
}, Pn = {
|
|
783
784
|
l: "true",
|
|
784
785
|
$a: !0
|
|
785
|
-
},
|
|
786
|
+
}, Nn = {
|
|
786
787
|
l: "false",
|
|
787
788
|
$a: !1
|
|
788
789
|
}, rt = {
|
|
789
790
|
l: "in",
|
|
790
791
|
L: 7,
|
|
791
792
|
m: !0
|
|
792
|
-
},
|
|
793
|
-
break:
|
|
794
|
-
case:
|
|
795
|
-
catch:
|
|
796
|
-
continue:
|
|
797
|
-
debugger:
|
|
798
|
-
default:
|
|
799
|
-
do:
|
|
800
|
-
else:
|
|
801
|
-
finally:
|
|
802
|
-
for:
|
|
803
|
-
function:
|
|
804
|
-
if:
|
|
805
|
-
return:
|
|
806
|
-
switch:
|
|
807
|
-
throw:
|
|
808
|
-
try:
|
|
809
|
-
var:
|
|
810
|
-
while:
|
|
811
|
-
with:
|
|
812
|
-
null:
|
|
813
|
-
true:
|
|
814
|
-
false:
|
|
815
|
-
new:
|
|
793
|
+
}, Wr = {
|
|
794
|
+
break: Rt,
|
|
795
|
+
case: Pt,
|
|
796
|
+
catch: gn,
|
|
797
|
+
continue: yn,
|
|
798
|
+
debugger: vn,
|
|
799
|
+
default: bn,
|
|
800
|
+
do: Sn,
|
|
801
|
+
else: wn,
|
|
802
|
+
finally: xn,
|
|
803
|
+
for: kn,
|
|
804
|
+
function: Nt,
|
|
805
|
+
if: Cn,
|
|
806
|
+
return: En,
|
|
807
|
+
switch: Ut,
|
|
808
|
+
throw: In,
|
|
809
|
+
try: Tn,
|
|
810
|
+
var: Bt,
|
|
811
|
+
while: Ft,
|
|
812
|
+
with: An,
|
|
813
|
+
null: Rn,
|
|
814
|
+
true: Pn,
|
|
815
|
+
false: Nn,
|
|
816
|
+
new: On,
|
|
816
817
|
in: rt,
|
|
817
818
|
instanceof: {
|
|
818
819
|
l: "instanceof",
|
|
819
820
|
L: 7,
|
|
820
821
|
m: !0
|
|
821
822
|
},
|
|
822
|
-
this:
|
|
823
|
+
this: jn,
|
|
823
824
|
typeof: {
|
|
824
825
|
l: "typeof",
|
|
825
826
|
prefix: !0,
|
|
@@ -835,10 +836,10 @@ var U, Io = function(e) {
|
|
|
835
836
|
prefix: !0,
|
|
836
837
|
m: !0
|
|
837
838
|
}
|
|
838
|
-
},
|
|
839
|
+
}, Mt = {
|
|
839
840
|
type: "[",
|
|
840
841
|
m: !0
|
|
841
|
-
},
|
|
842
|
+
}, Vt = {
|
|
842
843
|
type: "]"
|
|
843
844
|
}, Le = {
|
|
844
845
|
type: "{",
|
|
@@ -859,65 +860,65 @@ var U, Io = function(e) {
|
|
|
859
860
|
}, _e = {
|
|
860
861
|
type: ":",
|
|
861
862
|
m: !0
|
|
862
|
-
},
|
|
863
|
+
}, Un = {
|
|
863
864
|
type: "."
|
|
864
|
-
},
|
|
865
|
+
}, Bn = {
|
|
865
866
|
type: "?",
|
|
866
867
|
m: !0
|
|
867
|
-
},
|
|
868
|
+
}, Fn = {
|
|
868
869
|
L: 10,
|
|
869
870
|
m: !0
|
|
870
|
-
},
|
|
871
|
+
}, Mn = {
|
|
871
872
|
Cb: !0,
|
|
872
873
|
m: !0
|
|
873
874
|
}, we = {
|
|
874
875
|
Cb: !0,
|
|
875
876
|
m: !0
|
|
876
|
-
},
|
|
877
|
+
}, $r = {
|
|
877
878
|
cc: !0,
|
|
878
879
|
prefix: !0,
|
|
879
880
|
$b: !0
|
|
880
|
-
},
|
|
881
|
+
}, Vn = {
|
|
881
882
|
prefix: !0,
|
|
882
883
|
m: !0
|
|
883
|
-
},
|
|
884
|
+
}, Dn = {
|
|
884
885
|
L: 1,
|
|
885
886
|
m: !0
|
|
886
|
-
},
|
|
887
|
+
}, Ln = {
|
|
887
888
|
L: 2,
|
|
888
889
|
m: !0
|
|
889
|
-
},
|
|
890
|
+
}, Hr = {
|
|
890
891
|
L: 3,
|
|
891
892
|
m: !0
|
|
892
|
-
},
|
|
893
|
+
}, Kr = {
|
|
893
894
|
L: 4,
|
|
894
895
|
m: !0
|
|
895
|
-
},
|
|
896
|
+
}, Gr = {
|
|
896
897
|
L: 5,
|
|
897
898
|
m: !0
|
|
898
|
-
},
|
|
899
|
+
}, Xr = {
|
|
899
900
|
L: 6,
|
|
900
901
|
m: !0
|
|
901
|
-
},
|
|
902
|
+
}, Yr = {
|
|
902
903
|
L: 7,
|
|
903
904
|
m: !0
|
|
904
|
-
},
|
|
905
|
+
}, Jr = {
|
|
905
906
|
L: 8,
|
|
906
907
|
m: !0
|
|
907
|
-
},
|
|
908
|
+
}, zr = {
|
|
908
909
|
L: 9,
|
|
909
910
|
prefix: !0,
|
|
910
911
|
m: !0
|
|
911
|
-
},
|
|
912
|
+
}, qr = {
|
|
912
913
|
L: 10,
|
|
913
914
|
m: !0
|
|
914
|
-
},
|
|
915
|
+
}, Zr = o("class enum extends super const export import"), _n = o("implements interface let package private protected public static yield"), ot = o("eval arguments"), Qr = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), eo = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Wn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), to = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), it = /[\n\r\u2028\u2029]/, at = /\r\n|[\n\r\u2028\u2029]/g, Te, Dt = {
|
|
915
916
|
kind: "loop"
|
|
916
|
-
},
|
|
917
|
+
}, no = {
|
|
917
918
|
kind: "switch"
|
|
918
919
|
};
|
|
919
920
|
}, Wt = Wt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
920
|
-
|
|
921
|
+
To(Wt.j || (Wt.j = {}));
|
|
921
922
|
function h(e, t) {
|
|
922
923
|
typeof e == "string" && (e = Re(e, "code"));
|
|
923
924
|
var n = e.constructor;
|
|
@@ -934,12 +935,12 @@ function h(e, t) {
|
|
|
934
935
|
for (s in this)
|
|
935
936
|
typeof this[s] == "function" && (i = s.match(e)) && (this.rb[i[1]] = this[s].bind(this));
|
|
936
937
|
this.N = Ht(this, this.ra, null), this.Na = this.N.object, this.ra = Re(this.ba.join(`
|
|
937
|
-
`), "polyfills"), this.ba = void 0,
|
|
938
|
+
`), "polyfills"), this.ba = void 0, pt(this.ra), i = new b(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new b(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
938
939
|
}
|
|
939
|
-
var
|
|
940
|
+
var $n = {
|
|
940
941
|
C: !0,
|
|
941
942
|
kc: 5
|
|
942
|
-
},
|
|
943
|
+
}, Jt = {
|
|
943
944
|
configurable: !0,
|
|
944
945
|
enumerable: !0,
|
|
945
946
|
writable: !1
|
|
@@ -955,7 +956,7 @@ var Hn = {
|
|
|
955
956
|
configurable: !1,
|
|
956
957
|
enumerable: !1,
|
|
957
958
|
writable: !1
|
|
958
|
-
},
|
|
959
|
+
}, Hn = {
|
|
959
960
|
configurable: !1,
|
|
960
961
|
enumerable: !0,
|
|
961
962
|
writable: !0
|
|
@@ -967,8 +968,8 @@ var Hn = {
|
|
|
967
968
|
VALUE_IN_DESCRIPTOR: !0
|
|
968
969
|
}, je = {
|
|
969
970
|
REGEXP_TIMEOUT: !0
|
|
970
|
-
},
|
|
971
|
-
function
|
|
971
|
+
}, Kn = [], fe = null, Xe = null, ve = typeof globalThis > "u" ? void 0 : globalThis, Ao = ["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();", "};"];
|
|
972
|
+
function zt(e) {
|
|
972
973
|
var t = e >>> 0;
|
|
973
974
|
return t === Number(e) ? t : NaN;
|
|
974
975
|
}
|
|
@@ -976,12 +977,12 @@ function Ye(e) {
|
|
|
976
977
|
var t = e >>> 0;
|
|
977
978
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
978
979
|
}
|
|
979
|
-
function
|
|
980
|
+
function pt(e, t, n) {
|
|
980
981
|
t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
|
|
981
982
|
for (var r in e)
|
|
982
983
|
if (r !== "loc" && e.hasOwnProperty(r)) {
|
|
983
984
|
var o = e[r];
|
|
984
|
-
o && typeof o == "object" &&
|
|
985
|
+
o && typeof o == "object" && pt(o, t, n);
|
|
985
986
|
}
|
|
986
987
|
}
|
|
987
988
|
h.prototype.REGEXP_MODE = 2;
|
|
@@ -994,8 +995,8 @@ U.Kb = 0;
|
|
|
994
995
|
U.ic = 0;
|
|
995
996
|
function Re(e, t) {
|
|
996
997
|
var n = {}, r;
|
|
997
|
-
for (r in
|
|
998
|
-
n[r] =
|
|
998
|
+
for (r in $n)
|
|
999
|
+
n[r] = $n[r];
|
|
999
1000
|
return n.sourceFile = t, ve.j.parse(e, n);
|
|
1000
1001
|
}
|
|
1001
1002
|
U.Jb = function(e) {
|
|
@@ -1019,7 +1020,7 @@ U.lb = function() {
|
|
|
1019
1020
|
n = null;
|
|
1020
1021
|
else {
|
|
1021
1022
|
this.ca.shift(), 0 <= n.interval && vr(this, n, n.interval);
|
|
1022
|
-
var r = new
|
|
1023
|
+
var r = new b(n.node, n.scope);
|
|
1023
1024
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1024
1025
|
}
|
|
1025
1026
|
if (!n)
|
|
@@ -1049,8 +1050,8 @@ U.Eb = function() {
|
|
|
1049
1050
|
;
|
|
1050
1051
|
return this.za;
|
|
1051
1052
|
};
|
|
1052
|
-
function
|
|
1053
|
-
e.g(t, "NaN", NaN, We), e.g(t, "Infinity", 1 / 0, We), e.g(t, "undefined", void 0, We), e.g(t, "window", t,
|
|
1053
|
+
function Oo(e, t) {
|
|
1054
|
+
e.g(t, "NaN", NaN, We), e.g(t, "Infinity", 1 / 0, We), e.g(t, "undefined", void 0, We), e.g(t, "window", t, Jt), e.g(t, "this", t, We), e.g(t, "self", t), e.M = new N(null), e.Z = new N(e.M), jo(e, t), Ro(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Po(e, t), No(e, t), Uo(e, t), Bo(e, t), Fo(e, t), Mo(e, t), Vo(e, t), Do(e, t), Lo(e, t);
|
|
1054
1055
|
var n = e.i(function() {
|
|
1055
1056
|
throw EvalError("Can't happen");
|
|
1056
1057
|
}, !1);
|
|
@@ -1061,78 +1062,78 @@ function Ao(e, t) {
|
|
|
1061
1062
|
try {
|
|
1062
1063
|
return i(s);
|
|
1063
1064
|
} catch (u) {
|
|
1064
|
-
|
|
1065
|
+
x(e, e.Gb, u.message);
|
|
1065
1066
|
}
|
|
1066
1067
|
};
|
|
1067
1068
|
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), y);
|
|
1068
1069
|
n = function(i) {
|
|
1069
|
-
return
|
|
1070
|
+
return Gn(e, !1, arguments);
|
|
1070
1071
|
}, e.g(t, "setTimeout", e.i(n, !1), y), n = function(i) {
|
|
1071
|
-
return
|
|
1072
|
+
return Gn(e, !0, arguments);
|
|
1072
1073
|
}, e.g(t, "setInterval", e.i(n, !1), y), n = function(i) {
|
|
1073
|
-
|
|
1074
|
+
Xn(e, i);
|
|
1074
1075
|
}, e.g(t, "clearTimeout", e.i(n, !1), y), n = function(i) {
|
|
1075
|
-
|
|
1076
|
+
Xn(e, i);
|
|
1076
1077
|
}, e.g(t, "clearInterval", e.i(n, !1), y), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
1077
1078
|
}
|
|
1078
1079
|
U.Wb = 0;
|
|
1079
|
-
function
|
|
1080
|
+
function jo(e, t) {
|
|
1080
1081
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1081
1082
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1082
1083
|
if (s) {
|
|
1083
1084
|
s = s.split(/\s*,\s*/);
|
|
1084
1085
|
for (var u = 0; u < s.length; u++) {
|
|
1085
1086
|
var p = s[u];
|
|
1086
|
-
n.test(p) ||
|
|
1087
|
+
n.test(p) || x(e, e.T, "Invalid function argument: " + p);
|
|
1087
1088
|
}
|
|
1088
1089
|
s = s.join(", ");
|
|
1089
1090
|
}
|
|
1090
1091
|
try {
|
|
1091
|
-
var
|
|
1092
|
-
} catch (
|
|
1093
|
-
|
|
1092
|
+
var S = Re("(function(" + s + ") {" + i + "})", "function" + e.Wb++);
|
|
1093
|
+
} catch (k) {
|
|
1094
|
+
x(e, e.T, "Invalid code: " + k.message);
|
|
1094
1095
|
}
|
|
1095
|
-
return
|
|
1096
|
+
return S.body.length !== 1 && x(e, e.T, "Invalid code in function body"), Qt(e, S.body[0].la, e.N, "anonymous");
|
|
1096
1097
|
};
|
|
1097
1098
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, y), e.g(e.O, "prototype", e.Z, y), e.g(e.Z, "constructor", e.O, y), e.Z.Ta = function() {
|
|
1098
1099
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, z), e.Z.H = "Function", r = function(o, i) {
|
|
1099
1100
|
var s = e.o[e.o.length - 1];
|
|
1100
|
-
s.U = this, s.B = o, s.F = [], i != null && (i instanceof
|
|
1101
|
-
},
|
|
1101
|
+
s.U = this, s.B = o, s.F = [], i != null && (i instanceof N ? s.F = gr(e, i) : x(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1102
|
+
}, $(e, e.O, "apply", r), r = function(o) {
|
|
1102
1103
|
var i = e.o[e.o.length - 1];
|
|
1103
1104
|
i.U = this, i.B = o, i.F = [];
|
|
1104
1105
|
for (var s = 1; s < arguments.length; s++)
|
|
1105
1106
|
i.F.push(arguments[s]);
|
|
1106
1107
|
i.eb = !1;
|
|
1107
|
-
},
|
|
1108
|
+
}, $(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
|
|
1108
1109
|
return String(this);
|
|
1109
|
-
},
|
|
1110
|
+
}, $(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), y), r = function() {
|
|
1110
1111
|
return this.valueOf();
|
|
1111
|
-
},
|
|
1112
|
+
}, $(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), y);
|
|
1112
1113
|
}
|
|
1113
|
-
function
|
|
1114
|
+
function Ro(e, t) {
|
|
1114
1115
|
function n(o) {
|
|
1115
|
-
o != null ||
|
|
1116
|
+
o != null || x(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1116
1117
|
}
|
|
1117
1118
|
var r = function(o) {
|
|
1118
1119
|
if (o == null)
|
|
1119
1120
|
return pe(e) ? this : e.s(e.M);
|
|
1120
|
-
if (!(o instanceof
|
|
1121
|
+
if (!(o instanceof N)) {
|
|
1121
1122
|
var i = e.s(de(e, o));
|
|
1122
1123
|
return i.data = o, i;
|
|
1123
1124
|
}
|
|
1124
1125
|
return o;
|
|
1125
1126
|
};
|
|
1126
1127
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, y), e.g(e.M, "constructor", e.v, y), e.g(t, "Object", e.v, y), r = function(o) {
|
|
1127
|
-
return n(o), ue(e, Object.getOwnPropertyNames(o instanceof
|
|
1128
|
+
return n(o), ue(e, Object.getOwnPropertyNames(o instanceof N ? o.h : o));
|
|
1128
1129
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), y), r = function(o) {
|
|
1129
|
-
return n(o), o instanceof
|
|
1130
|
+
return n(o), o instanceof N && (o = o.h), ue(e, Object.keys(o));
|
|
1130
1131
|
}, e.g(e.v, "keys", e.i(r, !1), y), r = function(o) {
|
|
1131
|
-
return o === null ? e.s(null) : (o instanceof
|
|
1132
|
+
return o === null ? e.s(null) : (o instanceof N || x(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1132
1133
|
}, e.g(e.v, "create", e.i(r, !1), y), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, i, s) {
|
|
1133
|
-
return i = String(i), o instanceof
|
|
1134
|
+
return i = String(i), o instanceof N || x(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof N || x(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || x(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, Je, s.h), o;
|
|
1134
1135
|
}, e.g(e.v, "defineProperty", e.i(r, !1), y), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, i) {
|
|
1135
|
-
if (o instanceof
|
|
1136
|
+
if (o instanceof N || x(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
|
|
1136
1137
|
var s = Object.getOwnPropertyDescriptor(o.h, i), u = o.V[i];
|
|
1137
1138
|
return o = o.Y[i], i = e.s(e.M), u || o ? (e.g(i, "get", u), e.g(i, "set", o)) : (e.g(i, "value", s.value), e.g(i, "writable", s.writable)), e.g(i, "configurable", s.configurable), e.g(i, "enumerable", s.enumerable), i;
|
|
1138
1139
|
}
|
|
@@ -1141,25 +1142,25 @@ function jo(e, t) {
|
|
|
1141
1142
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), y), r = function(o) {
|
|
1142
1143
|
return !!o && !o.preventExtensions;
|
|
1143
1144
|
}, e.g(e.v, "isExtensible", e.i(r, !1), y), r = function(o) {
|
|
1144
|
-
return o instanceof
|
|
1145
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), y),
|
|
1146
|
-
return n(this), this instanceof
|
|
1147
|
-
},
|
|
1148
|
-
return n(this), this instanceof
|
|
1149
|
-
},
|
|
1145
|
+
return o instanceof N && (o.preventExtensions = !0), o;
|
|
1146
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), y), $(e, e.v, "toString", N.prototype.toString), $(e, e.v, "toLocaleString", N.prototype.toString), $(e, e.v, "valueOf", N.prototype.valueOf), r = function(o) {
|
|
1147
|
+
return n(this), this instanceof N ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1148
|
+
}, $(e, e.v, "hasOwnProperty", r), r = function(o) {
|
|
1149
|
+
return n(this), this instanceof N ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1150
|
+
}, $(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1150
1151
|
for (; ; ) {
|
|
1151
1152
|
if (o = de(e, o), !o)
|
|
1152
1153
|
return !1;
|
|
1153
1154
|
if (o === this)
|
|
1154
1155
|
return !0;
|
|
1155
1156
|
}
|
|
1156
|
-
},
|
|
1157
|
+
}, $(e, e.v, "isPrototypeOf", r);
|
|
1157
1158
|
}
|
|
1158
|
-
function
|
|
1159
|
+
function Po(e, t) {
|
|
1159
1160
|
var n = function(r) {
|
|
1160
1161
|
var o = pe(e) ? this : Pe(e), i = arguments[0];
|
|
1161
1162
|
if (arguments.length === 1 && typeof i == "number")
|
|
1162
|
-
isNaN(
|
|
1163
|
+
isNaN(zt(i)) && x(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1163
1164
|
else {
|
|
1164
1165
|
for (i = 0; i < arguments.length; i++)
|
|
1165
1166
|
o.h[i] = arguments[i];
|
|
@@ -1175,20 +1176,20 @@ function Ro(e, t) {
|
|
|
1175
1176
|
writable: !0
|
|
1176
1177
|
}), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
|
|
1177
1178
|
}
|
|
1178
|
-
function
|
|
1179
|
+
function No(e, t) {
|
|
1179
1180
|
var n = function(r) {
|
|
1180
1181
|
return r = arguments.length ? ve.String(r) : "", pe(e) ? (this.data = r, this) : r;
|
|
1181
1182
|
};
|
|
1182
1183
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, y), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), y), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1183
|
-
|
|
1184
|
+
$(e, e.J, t[n], String.prototype[t[n]]);
|
|
1184
1185
|
n = function(r, o, i) {
|
|
1185
1186
|
o = e.R(o), i = e.R(i);
|
|
1186
1187
|
try {
|
|
1187
1188
|
return String(this).localeCompare(r, o, i);
|
|
1188
1189
|
} catch (s) {
|
|
1189
|
-
|
|
1190
|
+
x(e, e.D, "localeCompare: " + s.message);
|
|
1190
1191
|
}
|
|
1191
|
-
},
|
|
1192
|
+
}, $(e, e.J, "localeCompare", n), n = function(r, o, i) {
|
|
1192
1193
|
var s = String(this);
|
|
1193
1194
|
if (o = o ? Number(o) : void 0, H(e, r, e.I) && (r = r.data, He(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1194
1195
|
if (fe)
|
|
@@ -1199,8 +1200,8 @@ function Po(e, t) {
|
|
|
1199
1200
|
}, r, i), r !== je && i(ue(e, r));
|
|
1200
1201
|
else {
|
|
1201
1202
|
var u = e.ha(), p = Ke(e, r, u, i);
|
|
1202
|
-
u.onmessage = function(
|
|
1203
|
-
clearTimeout(p), i(ue(e,
|
|
1203
|
+
u.onmessage = function(S) {
|
|
1204
|
+
clearTimeout(p), i(ue(e, S.data));
|
|
1204
1205
|
}, u.postMessage(["split", s, r, o]);
|
|
1205
1206
|
}
|
|
1206
1207
|
return;
|
|
@@ -1249,8 +1250,8 @@ function Po(e, t) {
|
|
|
1249
1250
|
}, r, i), r !== je && i(r);
|
|
1250
1251
|
else {
|
|
1251
1252
|
var u = e.ha(), p = Ke(e, r, u, i);
|
|
1252
|
-
u.onmessage = function(
|
|
1253
|
-
clearTimeout(p), i(
|
|
1253
|
+
u.onmessage = function(S) {
|
|
1254
|
+
clearTimeout(p), i(S.data);
|
|
1254
1255
|
}, u.postMessage(["replace", s, r, o]);
|
|
1255
1256
|
}
|
|
1256
1257
|
return;
|
|
@@ -1258,12 +1259,12 @@ function Po(e, t) {
|
|
|
1258
1259
|
i(s.replace(r, o));
|
|
1259
1260
|
}, Ge(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1260
1261
|
}
|
|
1261
|
-
function
|
|
1262
|
+
function Uo(e, t) {
|
|
1262
1263
|
e.mb = e.i(function(n) {
|
|
1263
1264
|
return n = ve.Boolean(n), pe(e) ? (this.data = n, this) : n;
|
|
1264
1265
|
}, !0), e.g(t, "Boolean", e.mb, y);
|
|
1265
1266
|
}
|
|
1266
|
-
function
|
|
1267
|
+
function Bo(e, t) {
|
|
1267
1268
|
var n = function(r) {
|
|
1268
1269
|
return r = arguments.length ? ve.Number(r) : 0, pe(e) ? (this.data = r, this) : r;
|
|
1269
1270
|
};
|
|
@@ -1273,36 +1274,36 @@ function Uo(e, t) {
|
|
|
1273
1274
|
try {
|
|
1274
1275
|
return Number(this).toExponential(r);
|
|
1275
1276
|
} catch (o) {
|
|
1276
|
-
|
|
1277
|
+
x(e, e.D, o.message);
|
|
1277
1278
|
}
|
|
1278
|
-
},
|
|
1279
|
+
}, $(e, e.aa, "toExponential", n), n = function(r) {
|
|
1279
1280
|
try {
|
|
1280
1281
|
return Number(this).toFixed(r);
|
|
1281
1282
|
} catch (o) {
|
|
1282
|
-
|
|
1283
|
+
x(e, e.D, o.message);
|
|
1283
1284
|
}
|
|
1284
|
-
},
|
|
1285
|
+
}, $(e, e.aa, "toFixed", n), n = function(r) {
|
|
1285
1286
|
try {
|
|
1286
1287
|
return Number(this).toPrecision(r);
|
|
1287
1288
|
} catch (o) {
|
|
1288
|
-
|
|
1289
|
+
x(e, e.D, o.message);
|
|
1289
1290
|
}
|
|
1290
|
-
},
|
|
1291
|
+
}, $(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1291
1292
|
try {
|
|
1292
1293
|
return Number(this).toString(r);
|
|
1293
1294
|
} catch (o) {
|
|
1294
|
-
|
|
1295
|
+
x(e, e.D, o.message);
|
|
1295
1296
|
}
|
|
1296
|
-
},
|
|
1297
|
+
}, $(e, e.aa, "toString", n), n = function(r, o) {
|
|
1297
1298
|
r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
|
|
1298
1299
|
try {
|
|
1299
1300
|
return Number(this).toLocaleString(r, o);
|
|
1300
1301
|
} catch (i) {
|
|
1301
|
-
|
|
1302
|
+
x(e, e.D, "toLocaleString: " + i.message);
|
|
1302
1303
|
}
|
|
1303
|
-
},
|
|
1304
|
+
}, $(e, e.aa, "toLocaleString", n);
|
|
1304
1305
|
}
|
|
1305
|
-
function
|
|
1306
|
+
function Fo(e, t) {
|
|
1306
1307
|
var n = function(o, i) {
|
|
1307
1308
|
if (!pe(e))
|
|
1308
1309
|
return ve.Date();
|
|
@@ -1314,14 +1315,14 @@ function Bo(e, t) {
|
|
|
1314
1315
|
n = function(o) {
|
|
1315
1316
|
return function(i) {
|
|
1316
1317
|
var s = this.data;
|
|
1317
|
-
s instanceof Date ||
|
|
1318
|
+
s instanceof Date || x(e, e.j, o + " not called on a Date");
|
|
1318
1319
|
for (var u = [], p = 0; p < arguments.length; p++)
|
|
1319
1320
|
u[p] = e.R(arguments[p]);
|
|
1320
1321
|
return s[o].apply(s, u);
|
|
1321
1322
|
};
|
|
1322
|
-
}(t[r]),
|
|
1323
|
+
}(t[r]), $(e, e.$, t[r], n);
|
|
1323
1324
|
}
|
|
1324
|
-
function
|
|
1325
|
+
function Mo(e, t) {
|
|
1325
1326
|
var n = function(r, o) {
|
|
1326
1327
|
if (pe(e))
|
|
1327
1328
|
var i = this;
|
|
@@ -1330,19 +1331,19 @@ function Fo(e, t) {
|
|
|
1330
1331
|
return r;
|
|
1331
1332
|
i = e.s(e.Ma);
|
|
1332
1333
|
}
|
|
1333
|
-
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) ||
|
|
1334
|
+
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || x(e, e.T, "Invalid regexp flag: " + o);
|
|
1334
1335
|
try {
|
|
1335
1336
|
var s = new ve.RegExp(r, o);
|
|
1336
1337
|
} catch (u) {
|
|
1337
|
-
|
|
1338
|
+
x(e, e.T, u.message);
|
|
1338
1339
|
}
|
|
1339
|
-
return
|
|
1340
|
+
return qt(e, i, s), i;
|
|
1340
1341
|
};
|
|
1341
1342
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, z), e.g(e.I.h.prototype, "ignoreCase", void 0, z), e.g(e.I.h.prototype, "multiline", void 0, z), e.g(e.I.h.prototype, "source", "(?:)", z), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1342
|
-
function i(
|
|
1343
|
-
if (
|
|
1344
|
-
var m = ue(e,
|
|
1345
|
-
return e.g(m, "index",
|
|
1343
|
+
function i(k) {
|
|
1344
|
+
if (k) {
|
|
1345
|
+
var m = ue(e, k);
|
|
1346
|
+
return e.g(m, "index", k.index), e.g(m, "input", k.input), m;
|
|
1346
1347
|
}
|
|
1347
1348
|
return null;
|
|
1348
1349
|
}
|
|
@@ -1354,16 +1355,16 @@ function Fo(e, t) {
|
|
|
1354
1355
|
regexp: s
|
|
1355
1356
|
}, s, o), r !== je && (e.g(this, "lastIndex", s.lastIndex), o(i(r)));
|
|
1356
1357
|
else {
|
|
1357
|
-
var u = e.ha(), p = Ke(e, s, u, o),
|
|
1358
|
-
u.onmessage = function(
|
|
1359
|
-
clearTimeout(p), e.g(
|
|
1358
|
+
var u = e.ha(), p = Ke(e, s, u, o), S = this;
|
|
1359
|
+
u.onmessage = function(k) {
|
|
1360
|
+
clearTimeout(p), e.g(S, "lastIndex", k.data[1]), o(i(k.data[0]));
|
|
1360
1361
|
}, u.postMessage(["exec", s, s.lastIndex, r]);
|
|
1361
1362
|
}
|
|
1362
1363
|
else
|
|
1363
1364
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(i(r));
|
|
1364
1365
|
}, Ge(e, e.I, "exec", n);
|
|
1365
1366
|
}
|
|
1366
|
-
function
|
|
1367
|
+
function Vo(e, t) {
|
|
1367
1368
|
function n(r) {
|
|
1368
1369
|
var o = e.i(function(i) {
|
|
1369
1370
|
var s = pe(e) ? this : e.Aa(o);
|
|
@@ -1376,7 +1377,7 @@ function Mo(e, t) {
|
|
|
1376
1377
|
return $t(e, o, r), o;
|
|
1377
1378
|
}, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1378
1379
|
}
|
|
1379
|
-
function
|
|
1380
|
+
function Do(e, t) {
|
|
1380
1381
|
var n = e.s(e.M);
|
|
1381
1382
|
e.g(t, "Math", n, y);
|
|
1382
1383
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1385,23 +1386,23 @@ function Vo(e, t) {
|
|
|
1385
1386
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1386
1387
|
e.g(n, r[t], e.i(Math[r[t]], !1), y);
|
|
1387
1388
|
}
|
|
1388
|
-
function
|
|
1389
|
+
function Lo(e, t) {
|
|
1389
1390
|
var n = e.s(e.M);
|
|
1390
1391
|
e.g(t, "JSON", n, y), t = function(r) {
|
|
1391
1392
|
try {
|
|
1392
1393
|
var o = JSON.parse(String(r));
|
|
1393
1394
|
} catch (i) {
|
|
1394
|
-
|
|
1395
|
+
x(e, e.T, i.message);
|
|
1395
1396
|
}
|
|
1396
1397
|
return e.Ia(o);
|
|
1397
1398
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
|
|
1398
|
-
o && o.H === "Function" ?
|
|
1399
|
+
o && o.H === "Function" ? x(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = gr(e, o), o = o.filter(function(u) {
|
|
1399
1400
|
return typeof u == "string" || typeof u == "number";
|
|
1400
1401
|
})) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
|
|
1401
1402
|
try {
|
|
1402
1403
|
var s = JSON.stringify(r, o, i);
|
|
1403
1404
|
} catch (u) {
|
|
1404
|
-
|
|
1405
|
+
x(e, e.j, u.message);
|
|
1405
1406
|
}
|
|
1406
1407
|
return s;
|
|
1407
1408
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
@@ -1418,7 +1419,7 @@ function H(e, t, n) {
|
|
|
1418
1419
|
}
|
|
1419
1420
|
return !1;
|
|
1420
1421
|
}
|
|
1421
|
-
function
|
|
1422
|
+
function qt(e, t, n) {
|
|
1422
1423
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source, z), e.g(t, "global", n.global, z), e.g(t, "ignoreCase", n.ignoreCase, z), e.g(t, "multiline", n.multiline, z);
|
|
1423
1424
|
}
|
|
1424
1425
|
function $t(e, t, n) {
|
|
@@ -1440,7 +1441,7 @@ function $t(e, t, n) {
|
|
|
1440
1441
|
}
|
|
1441
1442
|
U.ha = function() {
|
|
1442
1443
|
var e = this.ha.Mb;
|
|
1443
|
-
return e || (e = new Blob([
|
|
1444
|
+
return e || (e = new Blob([Ao.join(`
|
|
1444
1445
|
`)], {
|
|
1445
1446
|
type: "application/javascript"
|
|
1446
1447
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1452,7 +1453,7 @@ function $e(e, t, n, r, o) {
|
|
|
1452
1453
|
try {
|
|
1453
1454
|
return fe.runInNewContext(t, n, i);
|
|
1454
1455
|
} catch {
|
|
1455
|
-
o(null),
|
|
1456
|
+
o(null), x(e, e.D, "RegExp Timeout: " + r);
|
|
1456
1457
|
}
|
|
1457
1458
|
return je;
|
|
1458
1459
|
}
|
|
@@ -1473,13 +1474,13 @@ function He(e, t, n) {
|
|
|
1473
1474
|
r = !!fe;
|
|
1474
1475
|
} else
|
|
1475
1476
|
r = !1;
|
|
1476
|
-
r || (n(null),
|
|
1477
|
+
r || (n(null), x(e, e.D, "Regular expressions not supported: " + t));
|
|
1477
1478
|
}
|
|
1478
1479
|
function Ke(e, t, n, r) {
|
|
1479
1480
|
return setTimeout(function() {
|
|
1480
1481
|
n.terminate(), r(null);
|
|
1481
1482
|
try {
|
|
1482
|
-
|
|
1483
|
+
x(e, e.D, "RegExp Timeout: " + t);
|
|
1483
1484
|
} catch {
|
|
1484
1485
|
}
|
|
1485
1486
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
@@ -1490,7 +1491,7 @@ U.Aa = function(e) {
|
|
|
1490
1491
|
U.s = function(e) {
|
|
1491
1492
|
if (typeof e != "object")
|
|
1492
1493
|
throw Error("Non object prototype");
|
|
1493
|
-
return e = new
|
|
1494
|
+
return e = new N(e), H(this, e, this.D) && (e.H = "Error"), e;
|
|
1494
1495
|
};
|
|
1495
1496
|
function Pe(e) {
|
|
1496
1497
|
var t = e.s(e.La);
|
|
@@ -1500,29 +1501,29 @@ function Pe(e) {
|
|
|
1500
1501
|
writable: !0
|
|
1501
1502
|
}), t.H = "Array", t;
|
|
1502
1503
|
}
|
|
1503
|
-
function
|
|
1504
|
+
function Zt(e, t, n) {
|
|
1504
1505
|
var r = e.s(e.Z);
|
|
1505
1506
|
return n ? (n = e.s(e.M), e.g(r, "prototype", n, y), e.g(n, "constructor", r, y)) : r.Ab = !0, e.g(r, "length", t, z), r.H = "Function", r;
|
|
1506
1507
|
}
|
|
1507
|
-
function
|
|
1508
|
-
var o =
|
|
1508
|
+
function Qt(e, t, n, r) {
|
|
1509
|
+
var o = Zt(e, t.oa.length, !0);
|
|
1509
1510
|
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", z), o;
|
|
1510
1511
|
}
|
|
1511
1512
|
U.i = function(e, t) {
|
|
1512
|
-
return t =
|
|
1513
|
+
return t = Zt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, z), t;
|
|
1513
1514
|
};
|
|
1514
1515
|
U.ub = function(e) {
|
|
1515
|
-
var t =
|
|
1516
|
+
var t = Zt(this, e.length, !0);
|
|
1516
1517
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, z), t;
|
|
1517
1518
|
};
|
|
1518
1519
|
U.Ia = function(e) {
|
|
1519
|
-
if (e instanceof
|
|
1520
|
+
if (e instanceof N)
|
|
1520
1521
|
throw Error("Object is already pseudo");
|
|
1521
1522
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1522
1523
|
return e;
|
|
1523
1524
|
if (e instanceof RegExp) {
|
|
1524
1525
|
var t = this.s(this.Ma);
|
|
1525
|
-
return
|
|
1526
|
+
return qt(this, t, e), t;
|
|
1526
1527
|
}
|
|
1527
1528
|
if (e instanceof Date)
|
|
1528
1529
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1549,7 +1550,7 @@ U.Ia = function(e) {
|
|
|
1549
1550
|
U.R = function(e, t) {
|
|
1550
1551
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1551
1552
|
return e;
|
|
1552
|
-
if (!(e instanceof
|
|
1553
|
+
if (!(e instanceof N))
|
|
1553
1554
|
throw Error("Object is not pseudo");
|
|
1554
1555
|
if (H(this, e, this.I))
|
|
1555
1556
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
@@ -1565,7 +1566,7 @@ U.R = function(e, t) {
|
|
|
1565
1566
|
if (t.hb.push(e), H(this, e, this.qa)) {
|
|
1566
1567
|
n = [], t.Sa.push(n);
|
|
1567
1568
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1568
|
-
|
|
1569
|
+
ht(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
1569
1570
|
} else
|
|
1570
1571
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1571
1572
|
o = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
@@ -1585,7 +1586,7 @@ function gr(e, t) {
|
|
|
1585
1586
|
var n = [], r;
|
|
1586
1587
|
for (r in t.h)
|
|
1587
1588
|
n[r] = e.G(t, r);
|
|
1588
|
-
return n.length =
|
|
1589
|
+
return n.length = zt(e.G(t, "length")) || 0, n;
|
|
1589
1590
|
}
|
|
1590
1591
|
function de(e, t) {
|
|
1591
1592
|
switch (typeof t) {
|
|
@@ -1601,7 +1602,7 @@ function de(e, t) {
|
|
|
1601
1602
|
U.G = function(e, t) {
|
|
1602
1603
|
if (this.P)
|
|
1603
1604
|
throw Error("Getter not supported in that context");
|
|
1604
|
-
if (t = String(t), e != null ||
|
|
1605
|
+
if (t = String(t), e != null || x(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof N))
|
|
1605
1606
|
throw TypeError("Expecting native value or pseudo object");
|
|
1606
1607
|
if (t === "length") {
|
|
1607
1608
|
if (H(this, e, this.J))
|
|
@@ -1616,8 +1617,8 @@ U.G = function(e, t) {
|
|
|
1616
1617
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1617
1618
|
while (e = de(this, e));
|
|
1618
1619
|
};
|
|
1619
|
-
function
|
|
1620
|
-
if (!(t instanceof
|
|
1620
|
+
function ht(e, t, n) {
|
|
1621
|
+
if (!(t instanceof N))
|
|
1621
1622
|
throw TypeError("Primitive data type has no properties");
|
|
1622
1623
|
if (n = String(n), n === "length" && H(e, t, e.J))
|
|
1623
1624
|
return !0;
|
|
@@ -1635,15 +1636,15 @@ function pt(e, t, n) {
|
|
|
1635
1636
|
U.g = function(e, t, n, r) {
|
|
1636
1637
|
if (this.Ka)
|
|
1637
1638
|
throw Error("Setter not supported in that context");
|
|
1638
|
-
if (t = String(t), e != null ||
|
|
1639
|
+
if (t = String(t), e != null || x(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof N))
|
|
1639
1640
|
throw TypeError("Expecting native value or pseudo object");
|
|
1640
|
-
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) &&
|
|
1641
|
-
var o = !this.o ||
|
|
1642
|
-
if (e instanceof
|
|
1641
|
+
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && x(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1642
|
+
var o = !this.o || en(this).S;
|
|
1643
|
+
if (e instanceof N) {
|
|
1643
1644
|
if (H(this, e, this.J)) {
|
|
1644
1645
|
var i = Ye(t);
|
|
1645
1646
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1646
|
-
o &&
|
|
1647
|
+
o && x(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1647
1648
|
return;
|
|
1648
1649
|
}
|
|
1649
1650
|
}
|
|
@@ -1654,7 +1655,7 @@ U.g = function(e, t, n, r) {
|
|
|
1654
1655
|
return;
|
|
1655
1656
|
n = r.value;
|
|
1656
1657
|
}
|
|
1657
|
-
if (n =
|
|
1658
|
+
if (n = zt(n), isNaN(n) && x(this, this.ob, "Invalid array length"), n < i)
|
|
1658
1659
|
for (s in e.h) {
|
|
1659
1660
|
var s = Ye(s);
|
|
1660
1661
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
@@ -1667,7 +1668,7 @@ U.g = function(e, t, n, r) {
|
|
|
1667
1668
|
try {
|
|
1668
1669
|
Object.defineProperty(e.h, t, o);
|
|
1669
1670
|
} catch {
|
|
1670
|
-
|
|
1671
|
+
x(this, this.j, "Cannot redefine property: " + t);
|
|
1671
1672
|
}
|
|
1672
1673
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1673
1674
|
} else {
|
|
@@ -1681,18 +1682,18 @@ U.g = function(e, t, n, r) {
|
|
|
1681
1682
|
if (r.Y && r.Y[t])
|
|
1682
1683
|
return this.Ka = !0, r.Y[t];
|
|
1683
1684
|
if (r.V && r.V[t])
|
|
1684
|
-
o &&
|
|
1685
|
+
o && x(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1685
1686
|
else
|
|
1686
1687
|
try {
|
|
1687
1688
|
e.h[t] = n;
|
|
1688
1689
|
} catch {
|
|
1689
|
-
o &&
|
|
1690
|
+
o && x(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1690
1691
|
}
|
|
1691
1692
|
}
|
|
1692
1693
|
else
|
|
1693
|
-
o &&
|
|
1694
|
+
o && x(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1694
1695
|
} else
|
|
1695
|
-
o &&
|
|
1696
|
+
o && x(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1696
1697
|
};
|
|
1697
1698
|
U.g.ac = function() {
|
|
1698
1699
|
throw Error("Placeholder getter");
|
|
@@ -1700,13 +1701,13 @@ U.g.ac = function() {
|
|
|
1700
1701
|
U.g.bc = function() {
|
|
1701
1702
|
throw Error("Placeholder setter");
|
|
1702
1703
|
};
|
|
1703
|
-
function
|
|
1704
|
+
function $(e, t, n, r) {
|
|
1704
1705
|
e.g(t.h.prototype, n, e.i(r, !1), y);
|
|
1705
1706
|
}
|
|
1706
1707
|
function Ge(e, t, n, r) {
|
|
1707
1708
|
e.g(t.h.prototype, n, e.ub(r), y);
|
|
1708
1709
|
}
|
|
1709
|
-
function
|
|
1710
|
+
function en(e) {
|
|
1710
1711
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1711
1712
|
throw Error("No scope found");
|
|
1712
1713
|
return e;
|
|
@@ -1719,38 +1720,38 @@ function Ht(e, t, n) {
|
|
|
1719
1720
|
var o = t.body && t.body[0];
|
|
1720
1721
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1721
1722
|
}
|
|
1722
|
-
return o = e.s(null), r = new br(n, r, o), n ||
|
|
1723
|
+
return o = e.s(null), r = new br(n, r, o), n || Oo(e, r.object), ze(e, t, r), r;
|
|
1723
1724
|
}
|
|
1724
|
-
function
|
|
1725
|
+
function tn(e, t, n) {
|
|
1725
1726
|
if (!t)
|
|
1726
1727
|
throw Error("parentScope required");
|
|
1727
1728
|
return e = n || e.s(null), new br(t, t.S, e);
|
|
1728
1729
|
}
|
|
1729
|
-
function
|
|
1730
|
-
for (var n =
|
|
1730
|
+
function nn(e, t) {
|
|
1731
|
+
for (var n = en(e); n && n !== e.N; ) {
|
|
1731
1732
|
if (t in n.object.h)
|
|
1732
1733
|
return n.object.h[t];
|
|
1733
1734
|
n = n.Va;
|
|
1734
1735
|
}
|
|
1735
|
-
if (n === e.N &&
|
|
1736
|
+
if (n === e.N && ht(e, n.object, t))
|
|
1736
1737
|
return e.G(n.object, t);
|
|
1737
|
-
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" ||
|
|
1738
|
+
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || x(e, e.pb, t + " is not defined");
|
|
1738
1739
|
}
|
|
1739
1740
|
function yr(e, t, n) {
|
|
1740
|
-
for (var r =
|
|
1741
|
+
for (var r = en(e), o = r.S; r && r !== e.N; ) {
|
|
1741
1742
|
if (t in r.object.h) {
|
|
1742
1743
|
try {
|
|
1743
1744
|
r.object.h[t] = n;
|
|
1744
1745
|
} catch {
|
|
1745
|
-
o &&
|
|
1746
|
+
o && x(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1746
1747
|
}
|
|
1747
1748
|
return;
|
|
1748
1749
|
}
|
|
1749
1750
|
r = r.Va;
|
|
1750
1751
|
}
|
|
1751
|
-
if (r === e.N && (!o ||
|
|
1752
|
+
if (r === e.N && (!o || ht(e, r.object, t)))
|
|
1752
1753
|
return e.g(r.object, t, n);
|
|
1753
|
-
|
|
1754
|
+
x(e, e.pb, t + " is not defined");
|
|
1754
1755
|
}
|
|
1755
1756
|
function ze(e, t, n) {
|
|
1756
1757
|
if (t.jb)
|
|
@@ -1798,20 +1799,20 @@ function ze(e, t, n) {
|
|
|
1798
1799
|
t.jb = r;
|
|
1799
1800
|
}
|
|
1800
1801
|
for (s in r)
|
|
1801
|
-
r[s] === !0 ? e.g(n.object, s, void 0,
|
|
1802
|
+
r[s] === !0 ? e.g(n.object, s, void 0, Hn) : e.g(n.object, s, Qt(e, r[s], n), Hn);
|
|
1802
1803
|
return r;
|
|
1803
1804
|
}
|
|
1804
1805
|
function pe(e) {
|
|
1805
1806
|
return e.o[e.o.length - 1].isConstructor;
|
|
1806
1807
|
}
|
|
1807
|
-
function
|
|
1808
|
-
return t[0] === Ne ?
|
|
1808
|
+
function rn(e, t) {
|
|
1809
|
+
return t[0] === Ne ? nn(e, t[1]) : e.G(t[0], t[1]);
|
|
1809
1810
|
}
|
|
1810
|
-
function
|
|
1811
|
+
function on(e, t, n) {
|
|
1811
1812
|
return t[0] === Ne ? yr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1812
1813
|
}
|
|
1813
|
-
function
|
|
1814
|
-
throw e.N ? (n !== void 0 && t instanceof
|
|
1814
|
+
function x(e, t, n) {
|
|
1815
|
+
throw e.N ? (n !== void 0 && t instanceof N && (t = e.Aa(t), $t(e, t, n)), qe(e, 4, t), mr) : n === void 0 ? t : n;
|
|
1815
1816
|
}
|
|
1816
1817
|
function qe(e, t, n, r) {
|
|
1817
1818
|
if (t === 0)
|
|
@@ -1889,29 +1890,29 @@ function J(e, t) {
|
|
|
1889
1890
|
}
|
|
1890
1891
|
return "???";
|
|
1891
1892
|
}
|
|
1892
|
-
function
|
|
1893
|
+
function Gn(e, t, n) {
|
|
1893
1894
|
var r = e.o[e.o.length - 1], o = Array.from(n), i = o.shift();
|
|
1894
1895
|
n = Math.max(Number(o.shift() || 0), 0);
|
|
1895
1896
|
var s = e.ya();
|
|
1896
|
-
if (i instanceof
|
|
1897
|
+
if (i instanceof N && i.H === "Function") {
|
|
1897
1898
|
var u = i;
|
|
1898
1899
|
s.type = "CallExpression", r = r.scope;
|
|
1899
1900
|
} else {
|
|
1900
1901
|
try {
|
|
1901
1902
|
var p = Re(String(i), "taskCode" + e.ic++);
|
|
1902
|
-
} catch (
|
|
1903
|
-
|
|
1903
|
+
} catch (S) {
|
|
1904
|
+
x(e, e.T, "Invalid code: " + S.message);
|
|
1904
1905
|
}
|
|
1905
|
-
s.type = "EvalProgram_", s.body = p.body, r = r.node.arguments[0],
|
|
1906
|
+
s.type = "EvalProgram_", s.body = p.body, r = r.node.arguments[0], pt(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1906
1907
|
}
|
|
1907
|
-
return t = new
|
|
1908
|
+
return t = new _o(u, o, r, s, t ? n : -1), vr(e, t, n), t.Db;
|
|
1908
1909
|
}
|
|
1909
1910
|
function vr(e, t, n) {
|
|
1910
1911
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
1911
1912
|
return r.time - o.time;
|
|
1912
1913
|
});
|
|
1913
1914
|
}
|
|
1914
|
-
function
|
|
1915
|
+
function Xn(e, t) {
|
|
1915
1916
|
for (var n = 0; n < e.ca.length; n++)
|
|
1916
1917
|
if (e.ca[n].Db == t) {
|
|
1917
1918
|
e.ca.splice(n, 1);
|
|
@@ -1923,17 +1924,17 @@ function Ze(e, t, n) {
|
|
|
1923
1924
|
throw Error("Unexpected call to createGetter");
|
|
1924
1925
|
e.P = !1, n = Array.isArray(n) ? n[0] : n;
|
|
1925
1926
|
var r = e.ya();
|
|
1926
|
-
return r.type = "CallExpression", e = new
|
|
1927
|
+
return r.type = "CallExpression", e = new b(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1927
1928
|
}
|
|
1928
|
-
function
|
|
1929
|
+
function an(e, t, n, r) {
|
|
1929
1930
|
if (!e.Ka)
|
|
1930
1931
|
throw Error("Unexpected call to createSetter");
|
|
1931
1932
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1932
1933
|
var o = e.ya();
|
|
1933
|
-
return o.type = "CallExpression", e = new
|
|
1934
|
+
return o.type = "CallExpression", e = new b(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1934
1935
|
}
|
|
1935
|
-
function
|
|
1936
|
-
return t == null ? e.Na : t instanceof
|
|
1936
|
+
function _t(e, t) {
|
|
1937
|
+
return t == null ? e.Na : t instanceof N ? t : (e = e.s(de(e, t)), e.data = t, e);
|
|
1937
1938
|
}
|
|
1938
1939
|
U.Xb = function() {
|
|
1939
1940
|
return this.N;
|
|
@@ -1944,33 +1945,33 @@ U.Yb = function() {
|
|
|
1944
1945
|
U.ec = function(e) {
|
|
1945
1946
|
this.o = e;
|
|
1946
1947
|
};
|
|
1947
|
-
function
|
|
1948
|
+
function b(e, t) {
|
|
1948
1949
|
this.node = e, this.scope = t;
|
|
1949
1950
|
}
|
|
1950
1951
|
function br(e, t, n) {
|
|
1951
1952
|
this.Va = e, this.S = t, this.object = n;
|
|
1952
1953
|
}
|
|
1953
|
-
function
|
|
1954
|
+
function N(e) {
|
|
1954
1955
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1955
1956
|
}
|
|
1956
|
-
U =
|
|
1957
|
+
U = N.prototype;
|
|
1957
1958
|
U.xa = null;
|
|
1958
1959
|
U.H = "Object";
|
|
1959
1960
|
U.data = null;
|
|
1960
1961
|
U.toString = function() {
|
|
1961
1962
|
if (!Xe)
|
|
1962
1963
|
return "[object Interpreter.Object]";
|
|
1963
|
-
if (!(this instanceof
|
|
1964
|
+
if (!(this instanceof N))
|
|
1964
1965
|
return String(this);
|
|
1965
1966
|
if (this.H === "Array") {
|
|
1966
|
-
var e =
|
|
1967
|
+
var e = Kn;
|
|
1967
1968
|
e.push(this);
|
|
1968
1969
|
try {
|
|
1969
1970
|
var t = [], n = this.h.length, r = !1;
|
|
1970
1971
|
1024 < n && (n = 1e3, r = !0);
|
|
1971
1972
|
for (var o = 0; o < n; o++) {
|
|
1972
1973
|
var i = this.h[o];
|
|
1973
|
-
t[o] = i instanceof
|
|
1974
|
+
t[o] = i instanceof N && e.indexOf(i) !== -1 ? "..." : i;
|
|
1974
1975
|
}
|
|
1975
1976
|
r && t.push("...");
|
|
1976
1977
|
} finally {
|
|
@@ -1979,7 +1980,7 @@ U.toString = function() {
|
|
|
1979
1980
|
return t.join(",");
|
|
1980
1981
|
}
|
|
1981
1982
|
if (this.H === "Error") {
|
|
1982
|
-
if (e =
|
|
1983
|
+
if (e = Kn, e.indexOf(this) !== -1)
|
|
1983
1984
|
return "[object Error]";
|
|
1984
1985
|
n = this;
|
|
1985
1986
|
do
|
|
@@ -2008,25 +2009,25 @@ U.toString = function() {
|
|
|
2008
2009
|
U.valueOf = function() {
|
|
2009
2010
|
return !Xe || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2010
2011
|
};
|
|
2011
|
-
function
|
|
2012
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++
|
|
2012
|
+
function _o(e, t, n, r, o) {
|
|
2013
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Wo, this.time = 0;
|
|
2013
2014
|
}
|
|
2014
|
-
var
|
|
2015
|
+
var Wo = 0;
|
|
2015
2016
|
h.prototype.stepArrayExpression = function(e, t, n) {
|
|
2016
2017
|
n = n.elements;
|
|
2017
2018
|
var r = t.A || 0;
|
|
2018
2019
|
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Pe(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
2019
2020
|
if (n[r])
|
|
2020
|
-
return t.A = r, new
|
|
2021
|
+
return t.A = r, new b(n[r], t.scope);
|
|
2021
2022
|
r++;
|
|
2022
2023
|
}
|
|
2023
2024
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
2024
2025
|
};
|
|
2025
2026
|
h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
2026
2027
|
if (!t.ja)
|
|
2027
|
-
return t.ja = !0, t = new
|
|
2028
|
+
return t.ja = !0, t = new b(n.left, t.scope), t.sa = !0, t;
|
|
2028
2029
|
if (!t.Da)
|
|
2029
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e =
|
|
2030
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = rn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Ze(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new b(n.right, t.scope));
|
|
2030
2031
|
if (t.ta)
|
|
2031
2032
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2032
2033
|
else {
|
|
@@ -2071,16 +2072,16 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2071
2072
|
default:
|
|
2072
2073
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
2073
2074
|
}
|
|
2074
|
-
if (n =
|
|
2075
|
-
return t.ta = !0, t.ib = r,
|
|
2075
|
+
if (n = on(this, t.Fa, r))
|
|
2076
|
+
return t.ta = !0, t.ib = r, an(this, n, t.Fa, r);
|
|
2076
2077
|
e.pop(), e[e.length - 1].value = r;
|
|
2077
2078
|
}
|
|
2078
2079
|
};
|
|
2079
2080
|
h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
2080
2081
|
if (!t.ja)
|
|
2081
|
-
return t.ja = !0, new
|
|
2082
|
+
return t.ja = !0, new b(n.left, t.scope);
|
|
2082
2083
|
if (!t.Da)
|
|
2083
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2084
|
+
return t.Da = !0, t.ma = t.value, new b(n.right, t.scope);
|
|
2084
2085
|
e.pop();
|
|
2085
2086
|
var r = t.ma;
|
|
2086
2087
|
switch (t = t.value, n.operator) {
|
|
@@ -2142,10 +2143,10 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2142
2143
|
n = r >>> t;
|
|
2143
2144
|
break;
|
|
2144
2145
|
case "in":
|
|
2145
|
-
t instanceof
|
|
2146
|
+
t instanceof N || x(this, this.j, "'in' expects an object, not '" + t + "'"), n = ht(this, t, r);
|
|
2146
2147
|
break;
|
|
2147
2148
|
case "instanceof":
|
|
2148
|
-
H(this, t, this.O) ||
|
|
2149
|
+
H(this, t, this.O) || x(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof N ? H(this, r, t) : !1;
|
|
2149
2150
|
break;
|
|
2150
2151
|
default:
|
|
2151
2152
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2155,7 +2156,7 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2155
2156
|
h.prototype.stepBlockStatement = function(e, t, n) {
|
|
2156
2157
|
var r = t.A || 0;
|
|
2157
2158
|
if (n = n.body[r])
|
|
2158
|
-
return t.A = r + 1, new
|
|
2159
|
+
return t.A = r + 1, new b(n, t.scope);
|
|
2159
2160
|
e.pop();
|
|
2160
2161
|
};
|
|
2161
2162
|
h.prototype.stepBreakStatement = function(e, t, n) {
|
|
@@ -2165,14 +2166,14 @@ h.prototype.Hb = 0;
|
|
|
2165
2166
|
h.prototype.stepCallExpression = function(e, t, n) {
|
|
2166
2167
|
if (!t.ia) {
|
|
2167
2168
|
t.ia = 1;
|
|
2168
|
-
var r = new
|
|
2169
|
+
var r = new b(n.callee, t.scope);
|
|
2169
2170
|
return r.sa = !0, r;
|
|
2170
2171
|
}
|
|
2171
2172
|
if (t.ia === 1) {
|
|
2172
2173
|
t.ia = 2;
|
|
2173
2174
|
var o = t.value;
|
|
2174
2175
|
if (Array.isArray(o)) {
|
|
2175
|
-
if (t.U =
|
|
2176
|
+
if (t.U = rn(this, o), o[0] === Ne ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2176
2177
|
return t.ia = 1, Ze(this, o, t.value);
|
|
2177
2178
|
} else
|
|
2178
2179
|
t.U = o;
|
|
@@ -2180,9 +2181,9 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2180
2181
|
}
|
|
2181
2182
|
if (o = t.U, !t.Qa) {
|
|
2182
2183
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2183
|
-
return new
|
|
2184
|
+
return new b(n.arguments[t.A++], t.scope);
|
|
2184
2185
|
if (n.type === "NewExpression") {
|
|
2185
|
-
if (o instanceof
|
|
2186
|
+
if (o instanceof N && !o.Ab || x(this, this.j, J(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2186
2187
|
t.B = Pe(this);
|
|
2187
2188
|
else {
|
|
2188
2189
|
var i = o.h.prototype;
|
|
@@ -2195,12 +2196,12 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2195
2196
|
if (t.eb)
|
|
2196
2197
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2197
2198
|
else {
|
|
2198
|
-
if (t.eb = !0, o instanceof
|
|
2199
|
+
if (t.eb = !0, o instanceof N || x(this, this.j, J(this, n.callee) + " is not a function"), e = o.node) {
|
|
2199
2200
|
for (n = Ht(this, e.body, o.Va), r = Pe(this), o = 0; o < t.F.length; o++)
|
|
2200
2201
|
this.g(r, o, t.F[o]);
|
|
2201
2202
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2202
2203
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2203
|
-
return n.S || (t.B =
|
|
2204
|
+
return n.S || (t.B = _t(this, t.B)), this.g(n.object, "this", t.B, Jt), t.value = void 0, new b(e.body, n);
|
|
2204
2205
|
}
|
|
2205
2206
|
if (o.eval)
|
|
2206
2207
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2209,30 +2210,30 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2209
2210
|
try {
|
|
2210
2211
|
r = Re(String(o), "eval" + this.Hb++);
|
|
2211
2212
|
} catch (u) {
|
|
2212
|
-
|
|
2213
|
+
x(this, this.T, "Invalid code: " + u.message);
|
|
2213
2214
|
}
|
|
2214
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body,
|
|
2215
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, pt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Ht(this, r, n) : ze(this, r, n), this.value = void 0, new b(o, n);
|
|
2215
2216
|
}
|
|
2216
2217
|
else if (o.Ta)
|
|
2217
|
-
t.scope.S || (t.B =
|
|
2218
|
+
t.scope.S || (t.B = _t(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2218
2219
|
else if (o.Za) {
|
|
2219
2220
|
var s = this;
|
|
2220
2221
|
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
|
|
2221
2222
|
t.value = u, s.za = !1;
|
|
2222
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2223
|
+
}), this.za = !0, t.scope.S || (t.B = _t(this, t.B)), o.Za.apply(t.B, r);
|
|
2223
2224
|
} else
|
|
2224
|
-
|
|
2225
|
+
x(this, this.j, J(this, n.callee) + " is not callable");
|
|
2225
2226
|
}
|
|
2226
2227
|
};
|
|
2227
2228
|
h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
2228
2229
|
var r = t.na || 0;
|
|
2229
2230
|
if (r === 0)
|
|
2230
|
-
return t.na = 1, new
|
|
2231
|
+
return t.na = 1, new b(n.test, t.scope);
|
|
2231
2232
|
if (r === 1) {
|
|
2232
2233
|
if (t.na = 2, (r = !!t.value) && n.da)
|
|
2233
|
-
return new
|
|
2234
|
+
return new b(n.da, t.scope);
|
|
2234
2235
|
if (!r && n.alternate)
|
|
2235
|
-
return new
|
|
2236
|
+
return new b(n.alternate, t.scope);
|
|
2236
2237
|
this.value = void 0;
|
|
2237
2238
|
}
|
|
2238
2239
|
e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
@@ -2245,11 +2246,11 @@ h.prototype.stepDebuggerStatement = function(e) {
|
|
|
2245
2246
|
};
|
|
2246
2247
|
h.prototype.stepDoWhileStatement = function(e, t, n) {
|
|
2247
2248
|
if (n.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2248
|
-
return t.ga = !0, new
|
|
2249
|
+
return t.ga = !0, new b(n.test, t.scope);
|
|
2249
2250
|
if (!t.value)
|
|
2250
2251
|
e.pop();
|
|
2251
2252
|
else if (n.body)
|
|
2252
|
-
return t.ga = !1, t.W = !0, new
|
|
2253
|
+
return t.ga = !1, t.W = !0, new b(n.body, t.scope);
|
|
2253
2254
|
};
|
|
2254
2255
|
h.prototype.stepEmptyStatement = function(e) {
|
|
2255
2256
|
e.pop();
|
|
@@ -2257,23 +2258,23 @@ h.prototype.stepEmptyStatement = function(e) {
|
|
|
2257
2258
|
h.prototype.stepEvalProgram_ = function(e, t, n) {
|
|
2258
2259
|
var r = t.A || 0;
|
|
2259
2260
|
if (n = n.body[r])
|
|
2260
|
-
return t.A = r + 1, new
|
|
2261
|
+
return t.A = r + 1, new b(n, t.scope);
|
|
2261
2262
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2262
2263
|
};
|
|
2263
2264
|
h.prototype.stepExpressionStatement = function(e, t, n) {
|
|
2264
2265
|
if (!t.ka)
|
|
2265
|
-
return this.value = void 0, t.ka = !0, new
|
|
2266
|
+
return this.value = void 0, t.ka = !0, new b(n.la, t.scope);
|
|
2266
2267
|
e.pop(), this.value = t.value;
|
|
2267
2268
|
};
|
|
2268
2269
|
h.prototype.stepForInStatement = function(e, t, n) {
|
|
2269
2270
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2270
|
-
return t.scope.S &&
|
|
2271
|
+
return t.scope.S && x(this, this.T, "for-in loop variable declaration may not have an initializer"), new b(n.left, t.scope);
|
|
2271
2272
|
if (!t.Ca)
|
|
2272
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2273
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new b(n.right, t.scope);
|
|
2273
2274
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2274
2275
|
e:
|
|
2275
2276
|
for (; ; ) {
|
|
2276
|
-
if (t.u instanceof
|
|
2277
|
+
if (t.u instanceof N)
|
|
2277
2278
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2278
2279
|
var r = t.wa.shift();
|
|
2279
2280
|
if (r === void 0)
|
|
@@ -2299,75 +2300,75 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2299
2300
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2300
2301
|
t.pa = [Ne, e.fa[0].id.name];
|
|
2301
2302
|
else
|
|
2302
|
-
return t.pa = null, t = new
|
|
2303
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r =
|
|
2304
|
-
return
|
|
2303
|
+
return t.pa = null, t = new b(e, t.scope), t.sa = !0, t;
|
|
2304
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = on(this, t.pa, e)))
|
|
2305
|
+
return an(this, r, t.pa, e);
|
|
2305
2306
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2306
|
-
return new
|
|
2307
|
+
return new b(n.body, t.scope);
|
|
2307
2308
|
};
|
|
2308
2309
|
h.prototype.stepForStatement = function(e, t, n) {
|
|
2309
2310
|
switch (t.na) {
|
|
2310
2311
|
default:
|
|
2311
2312
|
if (t.na = 1, n.ua)
|
|
2312
|
-
return new
|
|
2313
|
+
return new b(n.ua, t.scope);
|
|
2313
2314
|
break;
|
|
2314
2315
|
case 1:
|
|
2315
2316
|
if (t.na = 2, n.test)
|
|
2316
|
-
return new
|
|
2317
|
+
return new b(n.test, t.scope);
|
|
2317
2318
|
break;
|
|
2318
2319
|
case 2:
|
|
2319
2320
|
if (t.na = 3, n.test && !t.value)
|
|
2320
2321
|
e.pop();
|
|
2321
2322
|
else
|
|
2322
|
-
return t.W = !0, new
|
|
2323
|
+
return t.W = !0, new b(n.body, t.scope);
|
|
2323
2324
|
break;
|
|
2324
2325
|
case 3:
|
|
2325
2326
|
if (t.na = 1, n.update)
|
|
2326
|
-
return new
|
|
2327
|
+
return new b(n.update, t.scope);
|
|
2327
2328
|
}
|
|
2328
2329
|
};
|
|
2329
2330
|
h.prototype.stepFunctionDeclaration = function(e) {
|
|
2330
2331
|
e.pop();
|
|
2331
2332
|
};
|
|
2332
2333
|
h.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2333
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e =
|
|
2334
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = tn(this, e)), t.value = Qt(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Jt);
|
|
2334
2335
|
};
|
|
2335
2336
|
h.prototype.stepIdentifier = function(e, t, n) {
|
|
2336
2337
|
if (e.pop(), t.sa)
|
|
2337
2338
|
e[e.length - 1].value = [Ne, n.name];
|
|
2338
2339
|
else {
|
|
2339
|
-
if (t =
|
|
2340
|
+
if (t = nn(this, n.name), this.P)
|
|
2340
2341
|
return Ze(this, t, this.Na);
|
|
2341
2342
|
e[e.length - 1].value = t;
|
|
2342
2343
|
}
|
|
2343
2344
|
};
|
|
2344
2345
|
h.prototype.stepIfStatement = h.prototype.stepConditionalExpression;
|
|
2345
2346
|
h.prototype.stepLabeledStatement = function(e, t, n) {
|
|
2346
|
-
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new
|
|
2347
|
+
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new b(n.body, t.scope), t.labels = e, t;
|
|
2347
2348
|
};
|
|
2348
2349
|
h.prototype.stepLiteral = function(e, t, n) {
|
|
2349
|
-
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma),
|
|
2350
|
+
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), qt(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2350
2351
|
};
|
|
2351
2352
|
h.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2352
2353
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
2353
2354
|
throw SyntaxError("Unknown logical operator: " + n.operator);
|
|
2354
2355
|
if (!t.ja)
|
|
2355
|
-
return t.ja = !0, new
|
|
2356
|
+
return t.ja = !0, new b(n.left, t.scope);
|
|
2356
2357
|
if (t.Da)
|
|
2357
2358
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2358
2359
|
else if (n.operator === "&&" && !t.value || n.operator === "||" && t.value)
|
|
2359
2360
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2360
2361
|
else
|
|
2361
|
-
return t.Da = !0, new
|
|
2362
|
+
return t.Da = !0, new b(n.right, t.scope);
|
|
2362
2363
|
};
|
|
2363
2364
|
h.prototype.stepMemberExpression = function(e, t, n) {
|
|
2364
2365
|
if (!t.Ca)
|
|
2365
|
-
return t.Ca = !0, new
|
|
2366
|
+
return t.Ca = !0, new b(n.object, t.scope);
|
|
2366
2367
|
if (n.bb)
|
|
2367
2368
|
if (t.Vb)
|
|
2368
2369
|
n = t.value;
|
|
2369
2370
|
else
|
|
2370
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2371
|
+
return t.u = t.value, t.Vb = !0, new b(n.Wa, t.scope);
|
|
2371
2372
|
else
|
|
2372
2373
|
t.u = t.value, n = n.Wa.name;
|
|
2373
2374
|
if (e.pop(), t.sa)
|
|
@@ -2394,7 +2395,7 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2394
2395
|
i = s.value;
|
|
2395
2396
|
else
|
|
2396
2397
|
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2397
|
-
return t.Pa = i, new
|
|
2398
|
+
return t.Pa = i, new b(o.value, t.scope);
|
|
2398
2399
|
}
|
|
2399
2400
|
for (s in t.Ja)
|
|
2400
2401
|
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, Je, {
|
|
@@ -2407,35 +2408,35 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2407
2408
|
};
|
|
2408
2409
|
h.prototype.stepProgram = function(e, t, n) {
|
|
2409
2410
|
if (e = n.body.shift())
|
|
2410
|
-
return t.done = !1, new
|
|
2411
|
+
return t.done = !1, new b(e, t.scope);
|
|
2411
2412
|
t.done = !0;
|
|
2412
2413
|
};
|
|
2413
2414
|
h.prototype.stepReturnStatement = function(e, t, n) {
|
|
2414
2415
|
if (n.K && !t.ka)
|
|
2415
|
-
return t.ka = !0, new
|
|
2416
|
+
return t.ka = !0, new b(n.K, t.scope);
|
|
2416
2417
|
qe(this, 3, t.value);
|
|
2417
2418
|
};
|
|
2418
2419
|
h.prototype.stepSequenceExpression = function(e, t, n) {
|
|
2419
2420
|
var r = t.A || 0;
|
|
2420
2421
|
if (n = n.xb[r])
|
|
2421
|
-
return t.A = r + 1, new
|
|
2422
|
+
return t.A = r + 1, new b(n, t.scope);
|
|
2422
2423
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2423
2424
|
};
|
|
2424
2425
|
h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
2425
2426
|
if (!t.ga)
|
|
2426
|
-
return t.ga = 1, new
|
|
2427
|
+
return t.ga = 1, new b(n.Qb, t.scope);
|
|
2427
2428
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2428
2429
|
var r = t.gb || 0, o = n.tb[r];
|
|
2429
2430
|
if (t.Ha || !o || o.test)
|
|
2430
2431
|
if (o || t.Ha || t.cb === -1)
|
|
2431
2432
|
if (o) {
|
|
2432
2433
|
if (!t.Ha && !t.Fb && o.test)
|
|
2433
|
-
return t.Fb = !0, new
|
|
2434
|
+
return t.Fb = !0, new b(o.test, t.scope);
|
|
2434
2435
|
if (t.Ha || t.value === t.hc) {
|
|
2435
2436
|
t.Ha = !0;
|
|
2436
2437
|
var i = t.A || 0;
|
|
2437
2438
|
if (o.da[i])
|
|
2438
|
-
return t.Zb = !0, t.A = i + 1, new
|
|
2439
|
+
return t.Zb = !0, t.A = i + 1, new b(o.da[i], t.scope);
|
|
2439
2440
|
}
|
|
2440
2441
|
t.Fb = !1, t.A = 0, t.gb = r + 1;
|
|
2441
2442
|
} else {
|
|
@@ -2449,26 +2450,26 @@ h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2449
2450
|
}
|
|
2450
2451
|
};
|
|
2451
2452
|
h.prototype.stepThisExpression = function(e) {
|
|
2452
|
-
e.pop(), e[e.length - 1].value =
|
|
2453
|
+
e.pop(), e[e.length - 1].value = nn(this, "this");
|
|
2453
2454
|
};
|
|
2454
2455
|
h.prototype.stepThrowStatement = function(e, t, n) {
|
|
2455
2456
|
if (t.ka)
|
|
2456
|
-
|
|
2457
|
+
x(this, t.value);
|
|
2457
2458
|
else
|
|
2458
|
-
return t.ka = !0, new
|
|
2459
|
+
return t.ka = !0, new b(n.K, t.scope);
|
|
2459
2460
|
};
|
|
2460
2461
|
h.prototype.stepTryStatement = function(e, t, n) {
|
|
2461
2462
|
if (!t.Rb)
|
|
2462
|
-
return t.Rb = !0, new
|
|
2463
|
+
return t.Rb = !0, new b(n.block, t.scope);
|
|
2463
2464
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2464
|
-
return t.Tb = !0, e =
|
|
2465
|
+
return t.Tb = !0, e = tn(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new b(n.Ea.body, e);
|
|
2465
2466
|
if (!t.Sb && n.fb)
|
|
2466
|
-
return t.Sb = !0, new
|
|
2467
|
+
return t.Sb = !0, new b(n.fb, t.scope);
|
|
2467
2468
|
e.pop(), t.ea && qe(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2468
2469
|
};
|
|
2469
2470
|
h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
2470
2471
|
if (!t.ka)
|
|
2471
|
-
return t.ka = !0, e = new
|
|
2472
|
+
return t.ka = !0, e = new b(n.K, t.scope), e.sa = n.operator === "delete", e;
|
|
2472
2473
|
e.pop();
|
|
2473
2474
|
var r = t.value;
|
|
2474
2475
|
switch (n.operator) {
|
|
@@ -2491,7 +2492,7 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2491
2492
|
try {
|
|
2492
2493
|
delete o.h[r];
|
|
2493
2494
|
} catch {
|
|
2494
|
-
t.scope.S ?
|
|
2495
|
+
t.scope.S ? x(this, this.j, "Cannot delete property '" + r + "' of '" + o + "'") : n = !1;
|
|
2495
2496
|
}
|
|
2496
2497
|
}
|
|
2497
2498
|
r = n;
|
|
@@ -2509,9 +2510,9 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2509
2510
|
};
|
|
2510
2511
|
h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
2511
2512
|
if (!t.ja)
|
|
2512
|
-
return t.ja = !0, e = new
|
|
2513
|
+
return t.ja = !0, e = new b(n.K, t.scope), e.sa = !0, e;
|
|
2513
2514
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2514
|
-
var r =
|
|
2515
|
+
var r = rn(this, t.Ga);
|
|
2515
2516
|
if (t.ma = r, this.P)
|
|
2516
2517
|
return t.Ba = !0, Ze(this, r, t.Ga);
|
|
2517
2518
|
}
|
|
@@ -2524,8 +2525,8 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2524
2525
|
o = r - 1;
|
|
2525
2526
|
else
|
|
2526
2527
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2527
|
-
if (n = n.prefix ? o : r, r =
|
|
2528
|
-
return t.ta = !0, t.ib = n,
|
|
2528
|
+
if (n = n.prefix ? o : r, r = on(this, t.Ga, o))
|
|
2529
|
+
return t.ta = !0, t.ib = n, an(this, r, t.Ga, o);
|
|
2529
2530
|
e.pop(), e[e.length - 1].value = n;
|
|
2530
2531
|
}
|
|
2531
2532
|
};
|
|
@@ -2534,13 +2535,13 @@ h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2534
2535
|
var r = t.A || 0, o = n[r];
|
|
2535
2536
|
for (t.Bb && o && (yr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2536
2537
|
if (o.ua)
|
|
2537
|
-
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new
|
|
2538
|
+
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new b(o.ua, t.scope);
|
|
2538
2539
|
o = n[++r];
|
|
2539
2540
|
}
|
|
2540
2541
|
e.pop();
|
|
2541
2542
|
};
|
|
2542
2543
|
h.prototype.stepWithStatement = function(e, t, n) {
|
|
2543
|
-
return t.Ca ? (e.pop(), e =
|
|
2544
|
+
return t.Ca ? (e.pop(), e = tn(this, t.scope, t.value), new b(n.body, e)) : (t.Ca = !0, new b(n.object, t.scope));
|
|
2544
2545
|
};
|
|
2545
2546
|
h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
|
|
2546
2547
|
ve.Interpreter = h;
|
|
@@ -2559,7 +2560,7 @@ h.prototype.getGlobalScope = h.prototype.Xb;
|
|
|
2559
2560
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2560
2561
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2561
2562
|
h.VALUE_IN_DESCRIPTOR = Je;
|
|
2562
|
-
const
|
|
2563
|
+
const $o = (e) => e.split(`
|
|
2563
2564
|
`).map((t) => {
|
|
2564
2565
|
const n = t.trim();
|
|
2565
2566
|
if (t.includes("__awaiter"))
|
|
@@ -2572,7 +2573,7 @@ const Wo = (e) => e.split(`
|
|
|
2572
2573
|
${u}
|
|
2573
2574
|
`;
|
|
2574
2575
|
}).filter(Boolean).join(`
|
|
2575
|
-
`),
|
|
2576
|
+
`), Yn = (e) => e + "JSON", Ho = ({
|
|
2576
2577
|
builder: e,
|
|
2577
2578
|
context: t,
|
|
2578
2579
|
event: n,
|
|
@@ -2589,52 +2590,52 @@ const Wo = (e) => e.split(`
|
|
|
2589
2590
|
context: t,
|
|
2590
2591
|
event: n,
|
|
2591
2592
|
state: u
|
|
2592
|
-
}),
|
|
2593
|
-
const
|
|
2594
|
-
return `var ${
|
|
2593
|
+
}), S = p.map(([C]) => {
|
|
2594
|
+
const v = Yn(C);
|
|
2595
|
+
return `var ${C} = ${v} === undefined ? undefined : JSON.parse(${v});`;
|
|
2595
2596
|
}).join(`
|
|
2596
|
-
`),
|
|
2597
|
-
if (
|
|
2598
|
-
|
|
2597
|
+
`), k = $o(s);
|
|
2598
|
+
if (k === "") {
|
|
2599
|
+
q.warn("Skipping evaluation of empty code block.");
|
|
2599
2600
|
return;
|
|
2600
2601
|
}
|
|
2601
2602
|
const m = `
|
|
2602
2603
|
function theFunction() {
|
|
2603
|
-
${
|
|
2604
|
+
${S}
|
|
2604
2605
|
|
|
2605
|
-
${
|
|
2606
|
+
${k}
|
|
2606
2607
|
}
|
|
2607
2608
|
theFunction();
|
|
2608
|
-
`,
|
|
2609
|
-
const B = hr(u,
|
|
2609
|
+
`, R = (C, v) => {
|
|
2610
|
+
const B = hr(u, C, v);
|
|
2610
2611
|
i == null || i(B);
|
|
2611
|
-
},
|
|
2612
|
-
p.forEach(([B,
|
|
2613
|
-
const
|
|
2614
|
-
|
|
2615
|
-
}),
|
|
2612
|
+
}, P = function(C, v) {
|
|
2613
|
+
p.forEach(([B, j]) => {
|
|
2614
|
+
const w = JSON.stringify(j);
|
|
2615
|
+
C.setProperty(v, Yn(B), w);
|
|
2616
|
+
}), C.setProperty(v, "setRootState", C.createNativeFunction(R));
|
|
2616
2617
|
};
|
|
2617
2618
|
try {
|
|
2618
|
-
const
|
|
2619
|
-
return
|
|
2620
|
-
} catch (
|
|
2621
|
-
|
|
2622
|
-
e:
|
|
2619
|
+
const C = new h(m, P);
|
|
2620
|
+
return C.run(), C.pseudoToNative(C.value);
|
|
2621
|
+
} catch (C) {
|
|
2622
|
+
q.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2623
|
+
e: C
|
|
2623
2624
|
});
|
|
2624
2625
|
return;
|
|
2625
2626
|
}
|
|
2626
2627
|
}, oe = (e) => e != null;
|
|
2627
|
-
function
|
|
2628
|
+
function Ko() {
|
|
2628
2629
|
var e;
|
|
2629
2630
|
return typeof process < "u" && oe((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2630
2631
|
}
|
|
2631
|
-
const
|
|
2632
|
+
const Go = () => {
|
|
2632
2633
|
var r;
|
|
2633
|
-
if (!
|
|
2634
|
+
if (!Ko())
|
|
2634
2635
|
return !1;
|
|
2635
2636
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2636
|
-
return e && t && !n ? (
|
|
2637
|
-
},
|
|
2637
|
+
return e && t && !n ? (q.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2638
|
+
}, Xo = (e) => G() || Go() ? Io(e) : Ho(e), sn = class Oe {
|
|
2638
2639
|
static getCacheKey(t) {
|
|
2639
2640
|
return JSON.stringify({
|
|
2640
2641
|
...t,
|
|
@@ -2652,10 +2653,10 @@ const Ko = () => {
|
|
|
2652
2653
|
});
|
|
2653
2654
|
}
|
|
2654
2655
|
};
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
let lt =
|
|
2658
|
-
function
|
|
2656
|
+
sn.cacheLimit = 20;
|
|
2657
|
+
sn.cache = /* @__PURE__ */ new Map();
|
|
2658
|
+
let lt = sn;
|
|
2659
|
+
function ln({
|
|
2659
2660
|
code: e,
|
|
2660
2661
|
context: t,
|
|
2661
2662
|
localState: n,
|
|
@@ -2665,15 +2666,13 @@ function cn({
|
|
|
2665
2666
|
isExpression: s = !0,
|
|
2666
2667
|
enableCache: u
|
|
2667
2668
|
}) {
|
|
2668
|
-
if (e === "")
|
|
2669
|
-
X.warn("Skipping evaluation of empty code block.");
|
|
2669
|
+
if (e === "")
|
|
2670
2670
|
return;
|
|
2671
|
-
}
|
|
2672
2671
|
const p = {
|
|
2673
|
-
code:
|
|
2672
|
+
code: Eo(e, {
|
|
2674
2673
|
isExpression: s
|
|
2675
2674
|
}),
|
|
2676
|
-
builder:
|
|
2675
|
+
builder: Co(),
|
|
2677
2676
|
context: t,
|
|
2678
2677
|
event: i,
|
|
2679
2678
|
rootSetState: o,
|
|
@@ -2681,26 +2680,26 @@ function cn({
|
|
|
2681
2680
|
localState: n
|
|
2682
2681
|
};
|
|
2683
2682
|
if (u) {
|
|
2684
|
-
const
|
|
2685
|
-
if (
|
|
2686
|
-
return
|
|
2683
|
+
const S = lt.getCacheKey(p), k = lt.getCachedValue(S);
|
|
2684
|
+
if (k)
|
|
2685
|
+
return k.value;
|
|
2687
2686
|
}
|
|
2688
2687
|
try {
|
|
2689
|
-
const
|
|
2688
|
+
const S = Xo(p);
|
|
2690
2689
|
if (u) {
|
|
2691
|
-
const
|
|
2692
|
-
lt.setCachedValue(
|
|
2690
|
+
const k = lt.getCacheKey(p);
|
|
2691
|
+
lt.setCachedValue(k, S);
|
|
2693
2692
|
}
|
|
2694
|
-
return
|
|
2695
|
-
} catch (
|
|
2696
|
-
|
|
2693
|
+
return S;
|
|
2694
|
+
} catch (S) {
|
|
2695
|
+
q.error("Failed code evaluation: " + S.message, {
|
|
2697
2696
|
code: e
|
|
2698
2697
|
});
|
|
2699
2698
|
return;
|
|
2700
2699
|
}
|
|
2701
2700
|
}
|
|
2702
|
-
const
|
|
2703
|
-
const
|
|
2701
|
+
const mt = (e) => JSON.parse(JSON.stringify(e));
|
|
2702
|
+
const Yo = ({
|
|
2704
2703
|
block: e,
|
|
2705
2704
|
context: t,
|
|
2706
2705
|
localState: n,
|
|
@@ -2709,7 +2708,7 @@ const Xo = ({
|
|
|
2709
2708
|
}) => {
|
|
2710
2709
|
if (!e.bindings)
|
|
2711
2710
|
return e;
|
|
2712
|
-
const i =
|
|
2711
|
+
const i = mt(e), s = {
|
|
2713
2712
|
...i,
|
|
2714
2713
|
properties: {
|
|
2715
2714
|
...i.properties
|
|
@@ -2719,7 +2718,7 @@ const Xo = ({
|
|
|
2719
2718
|
}
|
|
2720
2719
|
};
|
|
2721
2720
|
for (const u in e.bindings) {
|
|
2722
|
-
const p = e.bindings[u],
|
|
2721
|
+
const p = e.bindings[u], S = ln({
|
|
2723
2722
|
code: p,
|
|
2724
2723
|
localState: n,
|
|
2725
2724
|
rootState: r,
|
|
@@ -2727,11 +2726,11 @@ const Xo = ({
|
|
|
2727
2726
|
context: t,
|
|
2728
2727
|
enableCache: !0
|
|
2729
2728
|
});
|
|
2730
|
-
hr(s, u,
|
|
2729
|
+
hr(s, u, S);
|
|
2731
2730
|
}
|
|
2732
2731
|
return s;
|
|
2733
2732
|
};
|
|
2734
|
-
function
|
|
2733
|
+
function dt({
|
|
2735
2734
|
block: e,
|
|
2736
2735
|
context: t,
|
|
2737
2736
|
shouldEvaluateBindings: n,
|
|
@@ -2740,7 +2739,7 @@ function ft({
|
|
|
2740
2739
|
rootSetState: i
|
|
2741
2740
|
}) {
|
|
2742
2741
|
const s = e;
|
|
2743
|
-
return n ?
|
|
2742
|
+
return n ? Yo({
|
|
2744
2743
|
block: s,
|
|
2745
2744
|
localState: r,
|
|
2746
2745
|
rootState: o,
|
|
@@ -2748,31 +2747,31 @@ function ft({
|
|
|
2748
2747
|
context: t
|
|
2749
2748
|
}) : s;
|
|
2750
2749
|
}
|
|
2751
|
-
const
|
|
2750
|
+
const Jo = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Sr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2752
2751
|
if (typeof r == "string")
|
|
2753
|
-
return `${
|
|
2754
|
-
}).filter(oe),
|
|
2755
|
-
`),
|
|
2752
|
+
return `${Jo(n)}: ${r};`;
|
|
2753
|
+
}).filter(oe), zo = (e) => Sr(e).join(`
|
|
2754
|
+
`), ct = ({
|
|
2756
2755
|
mediaQuery: e,
|
|
2757
2756
|
className: t,
|
|
2758
2757
|
styles: n
|
|
2759
2758
|
}) => {
|
|
2760
2759
|
const r = `.${t} {
|
|
2761
|
-
${
|
|
2760
|
+
${zo(n)}
|
|
2762
2761
|
}`;
|
|
2763
2762
|
return e ? `${e} {
|
|
2764
2763
|
${r}
|
|
2765
2764
|
}` : r;
|
|
2766
2765
|
};
|
|
2767
|
-
function
|
|
2766
|
+
function qo({
|
|
2768
2767
|
style: e
|
|
2769
2768
|
}) {
|
|
2770
2769
|
return e;
|
|
2771
2770
|
}
|
|
2772
|
-
const
|
|
2771
|
+
const Zo = ({
|
|
2773
2772
|
block: e,
|
|
2774
2773
|
context: t
|
|
2775
|
-
}) => wr(
|
|
2774
|
+
}) => wr(qo({
|
|
2776
2775
|
style: e.style || {},
|
|
2777
2776
|
context: t,
|
|
2778
2777
|
block: e
|
|
@@ -2790,13 +2789,13 @@ function wr(e) {
|
|
|
2790
2789
|
return e;
|
|
2791
2790
|
}
|
|
2792
2791
|
}
|
|
2793
|
-
const
|
|
2792
|
+
const Qo = ({
|
|
2794
2793
|
block: e,
|
|
2795
2794
|
context: t,
|
|
2796
2795
|
registeredComponents: n
|
|
2797
2796
|
}) => {
|
|
2798
2797
|
var i;
|
|
2799
|
-
const r = (i =
|
|
2798
|
+
const r = (i = dt({
|
|
2800
2799
|
block: e,
|
|
2801
2800
|
localState: t.localState,
|
|
2802
2801
|
rootState: t.rootState,
|
|
@@ -2812,7 +2811,7 @@ const Zo = ({
|
|
|
2812
2811
|
console.warn(`
|
|
2813
2812
|
Could not find a registered component named "${r}".
|
|
2814
2813
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2815
|
-
},
|
|
2814
|
+
}, ei = ({
|
|
2816
2815
|
block: e,
|
|
2817
2816
|
context: t
|
|
2818
2817
|
}) => {
|
|
@@ -2822,7 +2821,7 @@ const Zo = ({
|
|
|
2822
2821
|
} = e;
|
|
2823
2822
|
if (!(n != null && n.collection))
|
|
2824
2823
|
return;
|
|
2825
|
-
const o =
|
|
2824
|
+
const o = ln({
|
|
2826
2825
|
code: n.collection,
|
|
2827
2826
|
localState: t.localState,
|
|
2828
2827
|
rootState: t.rootState,
|
|
@@ -2833,15 +2832,15 @@ const Zo = ({
|
|
|
2833
2832
|
if (!Array.isArray(o))
|
|
2834
2833
|
return;
|
|
2835
2834
|
const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
|
|
2836
|
-
return o.map((p,
|
|
2835
|
+
return o.map((p, S) => ({
|
|
2837
2836
|
context: {
|
|
2838
2837
|
...t,
|
|
2839
2838
|
localState: {
|
|
2840
2839
|
...t.localState,
|
|
2841
|
-
$index:
|
|
2840
|
+
$index: S,
|
|
2842
2841
|
$item: p,
|
|
2843
2842
|
[s]: p,
|
|
2844
|
-
[`$${s}Index`]:
|
|
2843
|
+
[`$${s}Index`]: S
|
|
2845
2844
|
}
|
|
2846
2845
|
},
|
|
2847
2846
|
block: r
|
|
@@ -2862,11 +2861,11 @@ const Zo = ({
|
|
|
2862
2861
|
default: 991,
|
|
2863
2862
|
max: 1200
|
|
2864
2863
|
}
|
|
2865
|
-
},
|
|
2864
|
+
}, Jn = (e, t = xr) => `@media (max-width: ${t[e].max}px)`, kr = ({
|
|
2866
2865
|
small: e,
|
|
2867
2866
|
medium: t
|
|
2868
2867
|
}) => {
|
|
2869
|
-
const n =
|
|
2868
|
+
const n = mt(xr);
|
|
2870
2869
|
if (!e || !t)
|
|
2871
2870
|
return n;
|
|
2872
2871
|
const r = Math.floor(e / 2);
|
|
@@ -2889,7 +2888,7 @@ const Zo = ({
|
|
|
2889
2888
|
default: i + 1
|
|
2890
2889
|
}, n;
|
|
2891
2890
|
};
|
|
2892
|
-
function
|
|
2891
|
+
function gt(e) {
|
|
2893
2892
|
return /* @__PURE__ */ A(
|
|
2894
2893
|
"style",
|
|
2895
2894
|
{
|
|
@@ -2898,9 +2897,50 @@ function mt(e) {
|
|
|
2898
2897
|
}
|
|
2899
2898
|
);
|
|
2900
2899
|
}
|
|
2901
|
-
function
|
|
2900
|
+
function zn(e, ...t) {
|
|
2901
|
+
const n = Object(e);
|
|
2902
|
+
for (let r = 1; r < arguments.length; r++) {
|
|
2903
|
+
const o = arguments[r];
|
|
2904
|
+
if (o != null)
|
|
2905
|
+
for (const i in o)
|
|
2906
|
+
Object.prototype.hasOwnProperty.call(o, i) && (n[i] = o[i]);
|
|
2907
|
+
}
|
|
2908
|
+
return n;
|
|
2909
|
+
}
|
|
2910
|
+
const Cr = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
2911
|
+
function ti(e) {
|
|
2912
|
+
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2913
|
+
}
|
|
2914
|
+
function ni(e, t) {
|
|
2915
|
+
const n = ri(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
2916
|
+
for (const u of s)
|
|
2917
|
+
for (const p of n)
|
|
2918
|
+
p in u || (u[p] = r[p]);
|
|
2919
|
+
}
|
|
2920
|
+
function ri(e) {
|
|
2921
|
+
const t = [];
|
|
2922
|
+
for (const n of e.steps)
|
|
2923
|
+
for (const r in n.styles)
|
|
2924
|
+
t.indexOf(r) === -1 && t.push(r);
|
|
2925
|
+
return t;
|
|
2926
|
+
}
|
|
2927
|
+
function Xa(e) {
|
|
2928
|
+
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2929
|
+
if (!t.length) {
|
|
2930
|
+
ti(e.elementId || e.id || "");
|
|
2931
|
+
return;
|
|
2932
|
+
}
|
|
2933
|
+
Array.from(t).forEach((n) => {
|
|
2934
|
+
ni(e, n), n.style.transition = "none", n.style.transitionDelay = "0", zn(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2935
|
+
n.style.transition = `all ${e.duration}s ${Cr(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), zn(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2936
|
+
n.style.transition = "", n.style.transitionDelay = "";
|
|
2937
|
+
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2938
|
+
});
|
|
2939
|
+
});
|
|
2940
|
+
}
|
|
2941
|
+
function oi(e) {
|
|
2902
2942
|
const t = function() {
|
|
2903
|
-
const o =
|
|
2943
|
+
const o = dt({
|
|
2904
2944
|
block: e.block,
|
|
2905
2945
|
localState: e.context.localState,
|
|
2906
2946
|
rootState: e.context.rootState,
|
|
@@ -2910,8 +2950,8 @@ function ei(e) {
|
|
|
2910
2950
|
});
|
|
2911
2951
|
return oe(o.hide) ? !o.hide : oe(o.show) ? o.show : !0;
|
|
2912
2952
|
}, n = function() {
|
|
2913
|
-
var w;
|
|
2914
|
-
const o =
|
|
2953
|
+
var j, w, X;
|
|
2954
|
+
const o = dt({
|
|
2915
2955
|
block: e.block,
|
|
2916
2956
|
localState: e.context.localState,
|
|
2917
2957
|
rootState: e.context.rootState,
|
|
@@ -2919,36 +2959,55 @@ function ei(e) {
|
|
|
2919
2959
|
context: e.context.context,
|
|
2920
2960
|
shouldEvaluateBindings: !0
|
|
2921
2961
|
}), i = o.responsiveStyles, s = e.context.content, u = kr(
|
|
2922
|
-
((
|
|
2923
|
-
), p = i == null ? void 0 : i.large,
|
|
2962
|
+
((j = s == null ? void 0 : s.meta) == null ? void 0 : j.breakpoints) || {}
|
|
2963
|
+
), p = i == null ? void 0 : i.large, S = i == null ? void 0 : i.medium, k = i == null ? void 0 : i.small, m = o.id;
|
|
2924
2964
|
if (!m)
|
|
2925
2965
|
return "";
|
|
2926
|
-
const
|
|
2966
|
+
const R = p ? ct({
|
|
2927
2967
|
className: m,
|
|
2928
2968
|
styles: p
|
|
2929
|
-
}) : "",
|
|
2969
|
+
}) : "", P = S ? ct({
|
|
2930
2970
|
className: m,
|
|
2931
|
-
styles:
|
|
2932
|
-
mediaQuery:
|
|
2971
|
+
styles: S,
|
|
2972
|
+
mediaQuery: Jn(
|
|
2933
2973
|
"medium",
|
|
2934
2974
|
u
|
|
2935
2975
|
)
|
|
2936
|
-
}) : "",
|
|
2976
|
+
}) : "", C = k ? ct({
|
|
2937
2977
|
className: m,
|
|
2938
|
-
styles:
|
|
2939
|
-
mediaQuery:
|
|
2978
|
+
styles: k,
|
|
2979
|
+
mediaQuery: Jn(
|
|
2940
2980
|
"small",
|
|
2941
2981
|
u
|
|
2942
2982
|
)
|
|
2943
|
-
}) : "";
|
|
2944
|
-
|
|
2983
|
+
}) : "", v = o.animations && o.animations.find((M) => M.trigger === "hover");
|
|
2984
|
+
let B = "";
|
|
2985
|
+
if (v) {
|
|
2986
|
+
const M = ((X = (w = v.steps) == null ? void 0 : w[1]) == null ? void 0 : X.styles) || {};
|
|
2987
|
+
B = ct({
|
|
2988
|
+
className: `${m}:hover`,
|
|
2989
|
+
styles: {
|
|
2990
|
+
...M,
|
|
2991
|
+
transition: `all ${v.duration}s ${Cr(
|
|
2992
|
+
v.easing
|
|
2993
|
+
)}`,
|
|
2994
|
+
transitionDelay: v.delay ? `${v.delay}s` : "0s"
|
|
2995
|
+
}
|
|
2996
|
+
}) || "";
|
|
2997
|
+
}
|
|
2998
|
+
return [
|
|
2999
|
+
R,
|
|
3000
|
+
P,
|
|
3001
|
+
C,
|
|
3002
|
+
B
|
|
3003
|
+
].join(" ");
|
|
2945
3004
|
};
|
|
2946
|
-
return /* @__PURE__ */ A(
|
|
3005
|
+
return /* @__PURE__ */ A(Q, { children: n() && t() ? /* @__PURE__ */ A(Q, { children: /* @__PURE__ */ A(gt, { id: "builderio-block", styles: n() }) }) : null });
|
|
2947
3006
|
}
|
|
2948
|
-
function
|
|
3007
|
+
function ii(e) {
|
|
2949
3008
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2950
3009
|
}
|
|
2951
|
-
const
|
|
3010
|
+
const ai = (e) => `on${ii(e)}`, si = (e, t) => (n) => ln({
|
|
2952
3011
|
code: e,
|
|
2953
3012
|
context: t.context,
|
|
2954
3013
|
localState: t.localState,
|
|
@@ -2958,13 +3017,13 @@ const ni = (e) => `on${ti(e)}`, ri = (e, t) => (n) => cn({
|
|
|
2958
3017
|
isExpression: !1,
|
|
2959
3018
|
enableCache: !0
|
|
2960
3019
|
});
|
|
2961
|
-
function
|
|
3020
|
+
function Ya(e) {
|
|
2962
3021
|
const t = {}, n = e.block.actions ?? {};
|
|
2963
3022
|
for (const r in n) {
|
|
2964
3023
|
if (!n.hasOwnProperty(r))
|
|
2965
3024
|
continue;
|
|
2966
3025
|
const o = n[r];
|
|
2967
|
-
let i =
|
|
3026
|
+
let i = ai(r);
|
|
2968
3027
|
if (e.stripPrefix)
|
|
2969
3028
|
switch (he) {
|
|
2970
3029
|
case "vue":
|
|
@@ -2974,40 +3033,40 @@ function Xa(e) {
|
|
|
2974
3033
|
i = i.replace("on:", "");
|
|
2975
3034
|
break;
|
|
2976
3035
|
}
|
|
2977
|
-
t[i] =
|
|
3036
|
+
t[i] = si(o, e);
|
|
2978
3037
|
}
|
|
2979
3038
|
return t;
|
|
2980
3039
|
}
|
|
2981
|
-
function
|
|
3040
|
+
function li({
|
|
2982
3041
|
properties: e
|
|
2983
3042
|
}) {
|
|
2984
3043
|
return e;
|
|
2985
3044
|
}
|
|
2986
|
-
const
|
|
3045
|
+
const ci = (e) => ({
|
|
2987
3046
|
href: e.href
|
|
2988
3047
|
});
|
|
2989
|
-
function
|
|
3048
|
+
function ui({
|
|
2990
3049
|
block: e,
|
|
2991
3050
|
context: t
|
|
2992
3051
|
}) {
|
|
2993
3052
|
var r;
|
|
2994
3053
|
const n = {
|
|
2995
|
-
...
|
|
3054
|
+
...ci(e),
|
|
2996
3055
|
...e.properties,
|
|
2997
3056
|
"builder-id": e.id,
|
|
2998
|
-
style:
|
|
3057
|
+
style: Zo({
|
|
2999
3058
|
block: e,
|
|
3000
3059
|
context: t
|
|
3001
3060
|
}),
|
|
3002
3061
|
[Yt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3003
3062
|
};
|
|
3004
|
-
return
|
|
3063
|
+
return li({
|
|
3005
3064
|
properties: n,
|
|
3006
3065
|
context: t,
|
|
3007
3066
|
block: e
|
|
3008
3067
|
});
|
|
3009
3068
|
}
|
|
3010
|
-
const
|
|
3069
|
+
const fi = ({
|
|
3011
3070
|
componentOptions: e,
|
|
3012
3071
|
builderBlock: t,
|
|
3013
3072
|
context: n,
|
|
@@ -3023,7 +3082,7 @@ const si = ({
|
|
|
3023
3082
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
3024
3083
|
*/
|
|
3025
3084
|
...o ? {
|
|
3026
|
-
attributes:
|
|
3085
|
+
attributes: ui({
|
|
3027
3086
|
block: t,
|
|
3028
3087
|
context: s
|
|
3029
3088
|
})
|
|
@@ -3039,11 +3098,11 @@ const si = ({
|
|
|
3039
3098
|
};
|
|
3040
3099
|
function qn(e) {
|
|
3041
3100
|
var n;
|
|
3042
|
-
const t = e.isInteractive ?
|
|
3043
|
-
return /* @__PURE__ */ A(
|
|
3101
|
+
const t = e.isInteractive ? ro : e.componentRef;
|
|
3102
|
+
return /* @__PURE__ */ A(Q, { children: e.componentRef ? /* @__PURE__ */ A(Q, { children: /* @__PURE__ */ A(
|
|
3044
3103
|
t,
|
|
3045
3104
|
{
|
|
3046
|
-
...
|
|
3105
|
+
...fi({
|
|
3047
3106
|
componentOptions: e.componentOptions,
|
|
3048
3107
|
builderBlock: e.builderBlock,
|
|
3049
3108
|
context: e.context,
|
|
@@ -3054,7 +3113,7 @@ function qn(e) {
|
|
|
3054
3113
|
contextValue: e.context
|
|
3055
3114
|
}),
|
|
3056
3115
|
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */ A(
|
|
3057
|
-
|
|
3116
|
+
yt,
|
|
3058
3117
|
{
|
|
3059
3118
|
block: r,
|
|
3060
3119
|
context: e.context,
|
|
@@ -3066,10 +3125,10 @@ function qn(e) {
|
|
|
3066
3125
|
}
|
|
3067
3126
|
) }) : null });
|
|
3068
3127
|
}
|
|
3069
|
-
function
|
|
3128
|
+
function di(e) {
|
|
3070
3129
|
const t = e.repeatContext;
|
|
3071
3130
|
return /* @__PURE__ */ A(
|
|
3072
|
-
|
|
3131
|
+
yt,
|
|
3073
3132
|
{
|
|
3074
3133
|
block: e.block,
|
|
3075
3134
|
context: t,
|
|
@@ -3078,22 +3137,22 @@ function li(e) {
|
|
|
3078
3137
|
}
|
|
3079
3138
|
);
|
|
3080
3139
|
}
|
|
3081
|
-
function
|
|
3082
|
-
var p,
|
|
3140
|
+
function yt(e) {
|
|
3141
|
+
var p, S, k;
|
|
3083
3142
|
const t = function() {
|
|
3084
|
-
return
|
|
3143
|
+
return Qo({
|
|
3085
3144
|
block: e.block,
|
|
3086
3145
|
context: e.context,
|
|
3087
3146
|
registeredComponents: e.registeredComponents
|
|
3088
3147
|
});
|
|
3089
3148
|
}, n = function() {
|
|
3090
|
-
return
|
|
3149
|
+
return ei({
|
|
3091
3150
|
block: e.block,
|
|
3092
3151
|
context: e.context
|
|
3093
3152
|
});
|
|
3094
3153
|
}, r = function() {
|
|
3095
|
-
var
|
|
3096
|
-
return (
|
|
3154
|
+
var R;
|
|
3155
|
+
return (R = e.block.repeat) != null && R.collection ? e.block : dt({
|
|
3097
3156
|
block: e.block,
|
|
3098
3157
|
localState: e.context.localState,
|
|
3099
3158
|
rootState: e.context.rootState,
|
|
@@ -3102,29 +3161,29 @@ function gt(e) {
|
|
|
3102
3161
|
shouldEvaluateBindings: !0
|
|
3103
3162
|
});
|
|
3104
3163
|
}, o = function() {
|
|
3105
|
-
var
|
|
3106
|
-
return e.block.tagName === "a" || ((
|
|
3164
|
+
var P;
|
|
3165
|
+
return e.block.tagName === "a" || ((P = r().properties) == null ? void 0 : P.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
3107
3166
|
}, i = function() {
|
|
3108
|
-
var
|
|
3109
|
-
if ((
|
|
3110
|
-
return !!((
|
|
3111
|
-
const
|
|
3112
|
-
return ("show" in r() ? r().show : !0) && !
|
|
3167
|
+
var C, v;
|
|
3168
|
+
if ((C = e.block.repeat) != null && C.collection)
|
|
3169
|
+
return !!((v = n()) != null && v.length);
|
|
3170
|
+
const R = "hide" in r() ? r().hide : !1;
|
|
3171
|
+
return ("show" in r() ? r().show : !0) && !R;
|
|
3113
3172
|
}, s = function() {
|
|
3114
|
-
var
|
|
3115
|
-
return !((
|
|
3173
|
+
var P;
|
|
3174
|
+
return !((P = t()) != null && P.component) && !n() ? r().children ?? [] : [];
|
|
3116
3175
|
}, u = function() {
|
|
3117
|
-
var
|
|
3176
|
+
var R, P, C, v, B, j, w, X, M, ee;
|
|
3118
3177
|
return {
|
|
3119
3178
|
blockChildren: r().children ?? [],
|
|
3120
|
-
componentRef: (
|
|
3179
|
+
componentRef: (R = t()) == null ? void 0 : R.component,
|
|
3121
3180
|
componentOptions: {
|
|
3122
|
-
...
|
|
3181
|
+
...bo(r()),
|
|
3123
3182
|
builderContext: e.context,
|
|
3124
|
-
...((
|
|
3183
|
+
...((P = t()) == null ? void 0 : P.name) === "Core:Button" || ((C = t()) == null ? void 0 : C.name) === "Symbol" || ((v = t()) == null ? void 0 : v.name) === "Columns" || ((B = t()) == null ? void 0 : B.name) === "Form:Form" ? {
|
|
3125
3184
|
builderLinkComponent: e.linkComponent
|
|
3126
3185
|
} : {},
|
|
3127
|
-
...((
|
|
3186
|
+
...((j = t()) == null ? void 0 : j.name) === "Symbol" || ((w = t()) == null ? void 0 : w.name) === "Columns" || ((X = t()) == null ? void 0 : X.name) === "Form:Form" ? {
|
|
3128
3187
|
builderComponents: e.registeredComponents
|
|
3129
3188
|
} : {}
|
|
3130
3189
|
},
|
|
@@ -3132,13 +3191,13 @@ function gt(e) {
|
|
|
3132
3191
|
linkComponent: e.linkComponent,
|
|
3133
3192
|
registeredComponents: e.registeredComponents,
|
|
3134
3193
|
builderBlock: r(),
|
|
3135
|
-
includeBlockProps: ((
|
|
3194
|
+
includeBlockProps: ((M = t()) == null ? void 0 : M.noWrap) === !0,
|
|
3136
3195
|
isInteractive: !((ee = t()) != null && ee.isRSC)
|
|
3137
3196
|
};
|
|
3138
3197
|
};
|
|
3139
|
-
return /* @__PURE__ */ A(
|
|
3140
|
-
/* @__PURE__ */ A(
|
|
3141
|
-
(p = t()) != null && p.noWrap ? /* @__PURE__ */ A(
|
|
3198
|
+
return /* @__PURE__ */ A(Q, { children: i() ? /* @__PURE__ */ xe(Q, { children: [
|
|
3199
|
+
/* @__PURE__ */ A(oi, { block: e.block, context: e.context }),
|
|
3200
|
+
(p = t()) != null && p.noWrap ? /* @__PURE__ */ A(Q, { children: /* @__PURE__ */ A(
|
|
3142
3201
|
qn,
|
|
3143
3202
|
{
|
|
3144
3203
|
componentRef: u().componentRef,
|
|
@@ -3151,17 +3210,17 @@ function gt(e) {
|
|
|
3151
3210
|
includeBlockProps: u().includeBlockProps,
|
|
3152
3211
|
isInteractive: u().isInteractive
|
|
3153
3212
|
}
|
|
3154
|
-
) }) : /* @__PURE__ */ A(
|
|
3155
|
-
|
|
3213
|
+
) }) : /* @__PURE__ */ A(Q, { children: n() ? /* @__PURE__ */ A(Q, { children: (k = n()) == null ? void 0 : k.map((m, R) => /* @__PURE__ */ A(
|
|
3214
|
+
di,
|
|
3156
3215
|
{
|
|
3157
3216
|
repeatContext: m.context,
|
|
3158
3217
|
block: m.block,
|
|
3159
3218
|
registeredComponents: e.registeredComponents,
|
|
3160
3219
|
linkComponent: e.linkComponent
|
|
3161
3220
|
},
|
|
3162
|
-
|
|
3221
|
+
R
|
|
3163
3222
|
)) }) : /* @__PURE__ */ xe(
|
|
3164
|
-
|
|
3223
|
+
oo,
|
|
3165
3224
|
{
|
|
3166
3225
|
Wrapper: o(),
|
|
3167
3226
|
block: r(),
|
|
@@ -3182,8 +3241,8 @@ function gt(e) {
|
|
|
3182
3241
|
isInteractive: u().isInteractive
|
|
3183
3242
|
}
|
|
3184
3243
|
),
|
|
3185
|
-
(
|
|
3186
|
-
|
|
3244
|
+
(S = s()) == null ? void 0 : S.map((m) => /* @__PURE__ */ A(
|
|
3245
|
+
yt,
|
|
3187
3246
|
{
|
|
3188
3247
|
block: m,
|
|
3189
3248
|
registeredComponents: e.registeredComponents,
|
|
@@ -3197,10 +3256,10 @@ function gt(e) {
|
|
|
3197
3256
|
) })
|
|
3198
3257
|
] }) : null });
|
|
3199
3258
|
}
|
|
3200
|
-
function
|
|
3259
|
+
function cn(e) {
|
|
3201
3260
|
var t, n, r;
|
|
3202
3261
|
return /* @__PURE__ */ A(
|
|
3203
|
-
|
|
3262
|
+
io,
|
|
3204
3263
|
{
|
|
3205
3264
|
blocks: e.blocks,
|
|
3206
3265
|
parent: e.parent,
|
|
@@ -3208,8 +3267,8 @@ function un(e) {
|
|
|
3208
3267
|
styleProp: e.styleProp,
|
|
3209
3268
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
3210
3269
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
3211
|
-
children: e.blocks ? /* @__PURE__ */ A(
|
|
3212
|
-
|
|
3270
|
+
children: e.blocks ? /* @__PURE__ */ A(Q, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ A(
|
|
3271
|
+
yt,
|
|
3213
3272
|
{
|
|
3214
3273
|
block: o,
|
|
3215
3274
|
linkComponent: e.linkComponent,
|
|
@@ -3221,25 +3280,25 @@ function un(e) {
|
|
|
3221
3280
|
}
|
|
3222
3281
|
);
|
|
3223
3282
|
}
|
|
3224
|
-
function
|
|
3225
|
-
var
|
|
3226
|
-
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(
|
|
3283
|
+
function pi(e) {
|
|
3284
|
+
var P;
|
|
3285
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(v) {
|
|
3227
3286
|
var B;
|
|
3228
|
-
return ((B = n[
|
|
3229
|
-
}, i = function(
|
|
3287
|
+
return ((B = n[v]) == null ? void 0 : B.width) || 100 / n.length;
|
|
3288
|
+
}, i = function(v) {
|
|
3230
3289
|
const B = t * (n.length - 1) / n.length;
|
|
3231
|
-
return `calc(${o(
|
|
3290
|
+
return `calc(${o(v)}% - ${B}px)`;
|
|
3232
3291
|
}, s = function({
|
|
3233
|
-
stackedStyle:
|
|
3292
|
+
stackedStyle: v,
|
|
3234
3293
|
desktopStyle: B
|
|
3235
3294
|
}) {
|
|
3236
|
-
return r === "tablet" ?
|
|
3295
|
+
return r === "tablet" ? v : B;
|
|
3237
3296
|
}, u = function({
|
|
3238
|
-
stackedStyle:
|
|
3297
|
+
stackedStyle: v,
|
|
3239
3298
|
desktopStyle: B
|
|
3240
3299
|
}) {
|
|
3241
|
-
return r === "never" ? B :
|
|
3242
|
-
}, p = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
3300
|
+
return r === "never" ? B : v;
|
|
3301
|
+
}, p = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", S = function() {
|
|
3243
3302
|
return {
|
|
3244
3303
|
"--flex-dir": p,
|
|
3245
3304
|
"--flex-dir-tablet": s({
|
|
@@ -3247,39 +3306,39 @@ function ci(e) {
|
|
|
3247
3306
|
desktopStyle: "row"
|
|
3248
3307
|
})
|
|
3249
3308
|
};
|
|
3250
|
-
},
|
|
3251
|
-
const B =
|
|
3309
|
+
}, k = function(v) {
|
|
3310
|
+
const B = v === 0 ? 0 : t, j = i(v), w = `${B}px`, X = "100%", M = 0;
|
|
3252
3311
|
return {
|
|
3253
3312
|
...{
|
|
3254
3313
|
display: "flex",
|
|
3255
3314
|
flexDirection: "column",
|
|
3256
3315
|
alignItems: "stretch"
|
|
3257
3316
|
},
|
|
3258
|
-
width:
|
|
3259
|
-
["marginLeft"]:
|
|
3317
|
+
width: j,
|
|
3318
|
+
["marginLeft"]: w,
|
|
3260
3319
|
"--column-width-mobile": u({
|
|
3261
|
-
stackedStyle:
|
|
3262
|
-
desktopStyle:
|
|
3320
|
+
stackedStyle: X,
|
|
3321
|
+
desktopStyle: j
|
|
3263
3322
|
}),
|
|
3264
3323
|
"--column-margin-left-mobile": u({
|
|
3265
|
-
stackedStyle:
|
|
3266
|
-
desktopStyle:
|
|
3324
|
+
stackedStyle: M,
|
|
3325
|
+
desktopStyle: w
|
|
3267
3326
|
}),
|
|
3268
3327
|
"--column-width-tablet": s({
|
|
3269
|
-
stackedStyle:
|
|
3270
|
-
desktopStyle:
|
|
3328
|
+
stackedStyle: X,
|
|
3329
|
+
desktopStyle: j
|
|
3271
3330
|
}),
|
|
3272
3331
|
"--column-margin-left-tablet": s({
|
|
3273
|
-
stackedStyle:
|
|
3274
|
-
desktopStyle:
|
|
3332
|
+
stackedStyle: M,
|
|
3333
|
+
desktopStyle: w
|
|
3275
3334
|
})
|
|
3276
3335
|
};
|
|
3277
|
-
}, m = function(
|
|
3278
|
-
var
|
|
3336
|
+
}, m = function(v) {
|
|
3337
|
+
var j, w;
|
|
3279
3338
|
return kr(
|
|
3280
|
-
((
|
|
3281
|
-
)[
|
|
3282
|
-
},
|
|
3339
|
+
((w = (j = e.builderContext.content) == null ? void 0 : j.meta) == null ? void 0 : w.breakpoints) || {}
|
|
3340
|
+
)[v].max;
|
|
3341
|
+
}, R = function() {
|
|
3283
3342
|
return `
|
|
3284
3343
|
@media (max-width: ${m("medium")}px) {
|
|
3285
3344
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -3306,30 +3365,30 @@ function ci(e) {
|
|
|
3306
3365
|
},
|
|
3307
3366
|
`;
|
|
3308
3367
|
};
|
|
3309
|
-
return /* @__PURE__ */ xe(
|
|
3368
|
+
return /* @__PURE__ */ xe(Q, { children: [
|
|
3310
3369
|
/* @__PURE__ */ xe(
|
|
3311
3370
|
"div",
|
|
3312
3371
|
{
|
|
3313
3372
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-664216e4`,
|
|
3314
|
-
style:
|
|
3373
|
+
style: S(),
|
|
3315
3374
|
children: [
|
|
3316
|
-
/* @__PURE__ */ A(
|
|
3317
|
-
(
|
|
3318
|
-
|
|
3375
|
+
/* @__PURE__ */ A(gt, { id: "builderio-columns", styles: R() }),
|
|
3376
|
+
(P = e.columns) == null ? void 0 : P.map((C, v) => /* @__PURE__ */ A(
|
|
3377
|
+
ao,
|
|
3319
3378
|
{
|
|
3320
|
-
TagName:
|
|
3379
|
+
TagName: C.link ? e.builderLinkComponent || "a" : "div",
|
|
3321
3380
|
actionAttributes: {},
|
|
3322
3381
|
attributes: {
|
|
3323
|
-
...
|
|
3324
|
-
href:
|
|
3382
|
+
...C.link ? {
|
|
3383
|
+
href: C.link
|
|
3325
3384
|
} : {},
|
|
3326
3385
|
[Yt()]: "builder-column",
|
|
3327
|
-
style: wr(
|
|
3386
|
+
style: wr(k(v))
|
|
3328
3387
|
},
|
|
3329
3388
|
children: /* @__PURE__ */ A(
|
|
3330
|
-
|
|
3389
|
+
cn,
|
|
3331
3390
|
{
|
|
3332
|
-
path: `component.options.columns.${
|
|
3391
|
+
path: `component.options.columns.${v}.blocks`,
|
|
3333
3392
|
parent: e.builderBlock.id,
|
|
3334
3393
|
styleProp: {
|
|
3335
3394
|
flexGrow: "1"
|
|
@@ -3337,11 +3396,11 @@ function ci(e) {
|
|
|
3337
3396
|
context: e.builderContext,
|
|
3338
3397
|
registeredComponents: e.builderComponents,
|
|
3339
3398
|
linkComponent: e.builderLinkComponent,
|
|
3340
|
-
blocks:
|
|
3399
|
+
blocks: C.blocks
|
|
3341
3400
|
}
|
|
3342
3401
|
)
|
|
3343
3402
|
},
|
|
3344
|
-
|
|
3403
|
+
v
|
|
3345
3404
|
))
|
|
3346
3405
|
]
|
|
3347
3406
|
}
|
|
@@ -3355,11 +3414,11 @@ function ci(e) {
|
|
|
3355
3414
|
function Zn(e) {
|
|
3356
3415
|
return e.replace(/http(s)?:/, "");
|
|
3357
3416
|
}
|
|
3358
|
-
function
|
|
3417
|
+
function hi(e = "", t, n) {
|
|
3359
3418
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3360
3419
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
3361
3420
|
}
|
|
3362
|
-
function
|
|
3421
|
+
function mi(e, t) {
|
|
3363
3422
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3364
3423
|
return e;
|
|
3365
3424
|
if (t === "master")
|
|
@@ -3371,23 +3430,23 @@ function fi(e, t) {
|
|
|
3371
3430
|
}
|
|
3372
3431
|
return null;
|
|
3373
3432
|
}
|
|
3374
|
-
function
|
|
3433
|
+
function Ja(e) {
|
|
3375
3434
|
if (!e)
|
|
3376
3435
|
return e;
|
|
3377
3436
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3378
3437
|
if (e.match(/builder\.io/)) {
|
|
3379
3438
|
let n = e;
|
|
3380
3439
|
const r = Number(e.split("?width=")[1]);
|
|
3381
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
3440
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${hi(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
3382
3441
|
}
|
|
3383
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3442
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [mi(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3384
3443
|
}
|
|
3385
|
-
const
|
|
3444
|
+
const gi = (e) => {
|
|
3386
3445
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3387
3446
|
return e;
|
|
3388
3447
|
const t = e.split(".");
|
|
3389
3448
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
3390
|
-
},
|
|
3449
|
+
}, Er = ({
|
|
3391
3450
|
name: e,
|
|
3392
3451
|
canTrack: t
|
|
3393
3452
|
}) => {
|
|
@@ -3395,17 +3454,17 @@ const di = (e) => {
|
|
|
3395
3454
|
try {
|
|
3396
3455
|
return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
3397
3456
|
} catch (r) {
|
|
3398
|
-
|
|
3457
|
+
q.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3399
3458
|
return;
|
|
3400
3459
|
}
|
|
3401
|
-
},
|
|
3460
|
+
}, Ir = async (e) => Er(e), yi = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(oe).join("; "), vi = [["secure", ""], ["SameSite", "None"]], bi = ({
|
|
3402
3461
|
name: e,
|
|
3403
3462
|
value: t,
|
|
3404
3463
|
expires: n
|
|
3405
3464
|
}) => {
|
|
3406
|
-
const o = (G() ? location.protocol === "https:" : !0) ?
|
|
3407
|
-
return
|
|
3408
|
-
},
|
|
3465
|
+
const o = (G() ? location.protocol === "https:" : !0) ? vi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", gi(window.location.hostname)], ...o];
|
|
3466
|
+
return yi(s);
|
|
3467
|
+
}, Tr = async ({
|
|
3409
3468
|
name: e,
|
|
3410
3469
|
value: t,
|
|
3411
3470
|
expires: n,
|
|
@@ -3414,33 +3473,33 @@ const di = (e) => {
|
|
|
3414
3473
|
try {
|
|
3415
3474
|
if (!r)
|
|
3416
3475
|
return;
|
|
3417
|
-
const o =
|
|
3476
|
+
const o = bi({
|
|
3418
3477
|
name: e,
|
|
3419
3478
|
value: t,
|
|
3420
3479
|
expires: n
|
|
3421
3480
|
});
|
|
3422
3481
|
document.cookie = o;
|
|
3423
3482
|
} catch (o) {
|
|
3424
|
-
|
|
3483
|
+
q.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3425
3484
|
}
|
|
3426
|
-
},
|
|
3485
|
+
}, Si = "builder.tests", un = (e) => `${Si}.${e}`, wi = ({
|
|
3427
3486
|
contentId: e
|
|
3428
|
-
}) =>
|
|
3429
|
-
name:
|
|
3487
|
+
}) => Ir({
|
|
3488
|
+
name: un(e),
|
|
3430
3489
|
canTrack: !0
|
|
3431
|
-
}),
|
|
3490
|
+
}), xi = ({
|
|
3432
3491
|
contentId: e
|
|
3433
|
-
}) =>
|
|
3434
|
-
name:
|
|
3492
|
+
}) => Er({
|
|
3493
|
+
name: un(e),
|
|
3435
3494
|
canTrack: !0
|
|
3436
|
-
}),
|
|
3495
|
+
}), ki = ({
|
|
3437
3496
|
contentId: e,
|
|
3438
3497
|
value: t
|
|
3439
|
-
}) =>
|
|
3440
|
-
name:
|
|
3498
|
+
}) => Tr({
|
|
3499
|
+
name: un(e),
|
|
3441
3500
|
value: t,
|
|
3442
3501
|
canTrack: !0
|
|
3443
|
-
}),
|
|
3502
|
+
}), Ar = (e) => oe(e.id) && oe(e.variations) && Object.keys(e.variations).length > 0, Ci = ({
|
|
3444
3503
|
id: e,
|
|
3445
3504
|
variations: t
|
|
3446
3505
|
}) => {
|
|
@@ -3453,15 +3512,15 @@ const di = (e) => {
|
|
|
3453
3512
|
return i;
|
|
3454
3513
|
}
|
|
3455
3514
|
return e;
|
|
3456
|
-
},
|
|
3457
|
-
const t =
|
|
3458
|
-
return
|
|
3515
|
+
}, Or = (e) => {
|
|
3516
|
+
const t = Ci(e);
|
|
3517
|
+
return ki({
|
|
3459
3518
|
contentId: e.id,
|
|
3460
3519
|
value: t
|
|
3461
3520
|
}).catch((n) => {
|
|
3462
|
-
|
|
3521
|
+
q.error("could not store A/B test variation: ", n);
|
|
3463
3522
|
}), t;
|
|
3464
|
-
},
|
|
3523
|
+
}, jr = ({
|
|
3465
3524
|
item: e,
|
|
3466
3525
|
testGroupId: t
|
|
3467
3526
|
}) => {
|
|
@@ -3475,7 +3534,7 @@ const di = (e) => {
|
|
|
3475
3534
|
testVariationId: n.id,
|
|
3476
3535
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3477
3536
|
};
|
|
3478
|
-
},
|
|
3537
|
+
}, Ei = ({
|
|
3479
3538
|
item: e,
|
|
3480
3539
|
canTrack: t
|
|
3481
3540
|
}) => {
|
|
@@ -3483,14 +3542,14 @@ const di = (e) => {
|
|
|
3483
3542
|
return e;
|
|
3484
3543
|
if (!e)
|
|
3485
3544
|
return;
|
|
3486
|
-
if (!
|
|
3545
|
+
if (!Ar(e))
|
|
3487
3546
|
return e;
|
|
3488
|
-
const n =
|
|
3547
|
+
const n = xi({
|
|
3489
3548
|
contentId: e.id
|
|
3490
|
-
}) ||
|
|
3549
|
+
}) || Or({
|
|
3491
3550
|
variations: e.variations,
|
|
3492
3551
|
id: e.id
|
|
3493
|
-
}), r =
|
|
3552
|
+
}), r = jr({
|
|
3494
3553
|
item: e,
|
|
3495
3554
|
testGroupId: n
|
|
3496
3555
|
});
|
|
@@ -3498,18 +3557,18 @@ const di = (e) => {
|
|
|
3498
3557
|
...e,
|
|
3499
3558
|
...r
|
|
3500
3559
|
};
|
|
3501
|
-
},
|
|
3560
|
+
}, Ii = async ({
|
|
3502
3561
|
item: e,
|
|
3503
3562
|
canTrack: t
|
|
3504
3563
|
}) => {
|
|
3505
|
-
if (!t || !
|
|
3564
|
+
if (!t || !Ar(e))
|
|
3506
3565
|
return e;
|
|
3507
|
-
const r = await
|
|
3566
|
+
const r = await wi({
|
|
3508
3567
|
contentId: e.id
|
|
3509
|
-
}) ||
|
|
3568
|
+
}) || Or({
|
|
3510
3569
|
variations: e.variations,
|
|
3511
3570
|
id: e.id
|
|
3512
|
-
}), o =
|
|
3571
|
+
}), o = jr({
|
|
3513
3572
|
item: e,
|
|
3514
3573
|
testGroupId: r
|
|
3515
3574
|
});
|
|
@@ -3517,7 +3576,7 @@ const di = (e) => {
|
|
|
3517
3576
|
...e,
|
|
3518
3577
|
...o
|
|
3519
3578
|
};
|
|
3520
|
-
}, Kt = (e) => oe(e) ? e : !0,
|
|
3579
|
+
}, Kt = (e) => oe(e) ? e : !0, Ti = {
|
|
3521
3580
|
name: "Core:Button",
|
|
3522
3581
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3523
3582
|
defaultStyles: {
|
|
@@ -3550,7 +3609,7 @@ const di = (e) => {
|
|
|
3550
3609
|
}],
|
|
3551
3610
|
static: !0,
|
|
3552
3611
|
noWrap: !0
|
|
3553
|
-
},
|
|
3612
|
+
}, Ai = {
|
|
3554
3613
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3555
3614
|
name: "Columns",
|
|
3556
3615
|
isRSC: !0,
|
|
@@ -3751,13 +3810,13 @@ const di = (e) => {
|
|
|
3751
3810
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3752
3811
|
advanced: !0
|
|
3753
3812
|
}]
|
|
3754
|
-
},
|
|
3813
|
+
}, Oi = {
|
|
3755
3814
|
name: "Fragment",
|
|
3756
3815
|
static: !0,
|
|
3757
3816
|
hidden: !0,
|
|
3758
3817
|
canHaveChildren: !0,
|
|
3759
3818
|
noWrap: !0
|
|
3760
|
-
},
|
|
3819
|
+
}, ji = {
|
|
3761
3820
|
name: "Image",
|
|
3762
3821
|
static: !0,
|
|
3763
3822
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -3778,15 +3837,15 @@ const di = (e) => {
|
|
|
3778
3837
|
onChange: (e) => {
|
|
3779
3838
|
e.delete("srcset"), e.delete("noWebp");
|
|
3780
3839
|
function n(s, u = 6e4) {
|
|
3781
|
-
return new Promise((p,
|
|
3782
|
-
const
|
|
3840
|
+
return new Promise((p, S) => {
|
|
3841
|
+
const k = document.createElement("img");
|
|
3783
3842
|
let m = !1;
|
|
3784
|
-
|
|
3785
|
-
m = !0, p(
|
|
3786
|
-
},
|
|
3787
|
-
console.warn("Image load failed",
|
|
3788
|
-
}),
|
|
3789
|
-
m ||
|
|
3843
|
+
k.onload = () => {
|
|
3844
|
+
m = !0, p(k);
|
|
3845
|
+
}, k.addEventListener("error", (R) => {
|
|
3846
|
+
console.warn("Image load failed", R.error), S(R.error);
|
|
3847
|
+
}), k.src = s, setTimeout(() => {
|
|
3848
|
+
m || S(new Error("Image load timed out"));
|
|
3790
3849
|
}, u);
|
|
3791
3850
|
});
|
|
3792
3851
|
}
|
|
@@ -3857,7 +3916,7 @@ const di = (e) => {
|
|
|
3857
3916
|
advanced: !0,
|
|
3858
3917
|
defaultValue: 0.7041
|
|
3859
3918
|
}]
|
|
3860
|
-
},
|
|
3919
|
+
}, Ri = {
|
|
3861
3920
|
name: "Core:Section",
|
|
3862
3921
|
static: !0,
|
|
3863
3922
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3896,7 +3955,7 @@ const di = (e) => {
|
|
|
3896
3955
|
}
|
|
3897
3956
|
}
|
|
3898
3957
|
}]
|
|
3899
|
-
},
|
|
3958
|
+
}, Pi = {
|
|
3900
3959
|
name: "Slot",
|
|
3901
3960
|
isRSC: !0,
|
|
3902
3961
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3910,7 +3969,7 @@ const di = (e) => {
|
|
|
3910
3969
|
defaultValue: "children"
|
|
3911
3970
|
}]
|
|
3912
3971
|
};
|
|
3913
|
-
function
|
|
3972
|
+
function Ni(e) {
|
|
3914
3973
|
var t, n, r;
|
|
3915
3974
|
return /* @__PURE__ */ A(
|
|
3916
3975
|
"div",
|
|
@@ -3922,7 +3981,7 @@ function Oi(e) {
|
|
|
3922
3981
|
"builder-slot": e.name
|
|
3923
3982
|
},
|
|
3924
3983
|
children: /* @__PURE__ */ A(
|
|
3925
|
-
|
|
3984
|
+
cn,
|
|
3926
3985
|
{
|
|
3927
3986
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
3928
3987
|
path: `symbol.data.${e.name}`,
|
|
@@ -3933,7 +3992,7 @@ function Oi(e) {
|
|
|
3933
3992
|
}
|
|
3934
3993
|
);
|
|
3935
3994
|
}
|
|
3936
|
-
const
|
|
3995
|
+
const Ui = {
|
|
3937
3996
|
name: "Symbol",
|
|
3938
3997
|
noWrap: !0,
|
|
3939
3998
|
static: !0,
|
|
@@ -3966,7 +4025,7 @@ const ji = {
|
|
|
3966
4025
|
hideFromUI: !0,
|
|
3967
4026
|
type: "boolean"
|
|
3968
4027
|
}]
|
|
3969
|
-
},
|
|
4028
|
+
}, Bi = {
|
|
3970
4029
|
name: "Text",
|
|
3971
4030
|
static: !0,
|
|
3972
4031
|
isRSC: !0,
|
|
@@ -3985,7 +4044,7 @@ const ji = {
|
|
|
3985
4044
|
textAlign: "center"
|
|
3986
4045
|
}
|
|
3987
4046
|
};
|
|
3988
|
-
function
|
|
4047
|
+
function Fi(e) {
|
|
3989
4048
|
var t;
|
|
3990
4049
|
return /* @__PURE__ */ A(
|
|
3991
4050
|
"div",
|
|
@@ -3998,7 +4057,7 @@ function Pi(e) {
|
|
|
3998
4057
|
}
|
|
3999
4058
|
);
|
|
4000
4059
|
}
|
|
4001
|
-
const
|
|
4060
|
+
const Mi = {
|
|
4002
4061
|
name: "Custom Code",
|
|
4003
4062
|
static: !0,
|
|
4004
4063
|
requiredPermissions: ["editCode"],
|
|
@@ -4020,7 +4079,7 @@ const Ni = {
|
|
|
4020
4079
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
4021
4080
|
advanced: !0
|
|
4022
4081
|
}]
|
|
4023
|
-
},
|
|
4082
|
+
}, Vi = {
|
|
4024
4083
|
name: "Embed",
|
|
4025
4084
|
static: !0,
|
|
4026
4085
|
inputs: [{
|
|
@@ -4045,7 +4104,7 @@ const Ni = {
|
|
|
4045
4104
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4046
4105
|
hideFromUI: !0
|
|
4047
4106
|
}]
|
|
4048
|
-
},
|
|
4107
|
+
}, Di = ["text/javascript", "application/javascript", "application/ecmascript"], za = (e) => Di.includes(e.type), Li = {
|
|
4049
4108
|
// friendlyName?
|
|
4050
4109
|
name: "Raw:Img",
|
|
4051
4110
|
hideFromInsertMenu: !0,
|
|
@@ -4059,7 +4118,7 @@ const Ni = {
|
|
|
4059
4118
|
}],
|
|
4060
4119
|
noWrap: !0,
|
|
4061
4120
|
static: !0
|
|
4062
|
-
},
|
|
4121
|
+
}, _i = {
|
|
4063
4122
|
name: "Video",
|
|
4064
4123
|
canHaveChildren: !0,
|
|
4065
4124
|
defaultStyles: {
|
|
@@ -4140,58 +4199,58 @@ const Ni = {
|
|
|
4140
4199
|
defaultValue: !0,
|
|
4141
4200
|
advanced: !0
|
|
4142
4201
|
}]
|
|
4143
|
-
},
|
|
4144
|
-
component: ao,
|
|
4145
|
-
...Ni
|
|
4146
|
-
}, {
|
|
4202
|
+
}, Wi = () => [{
|
|
4147
4203
|
component: so,
|
|
4148
|
-
...
|
|
4204
|
+
...Mi
|
|
4149
4205
|
}, {
|
|
4150
4206
|
component: lo,
|
|
4151
|
-
...
|
|
4207
|
+
...Vi
|
|
4152
4208
|
}, {
|
|
4153
4209
|
component: co,
|
|
4154
|
-
...
|
|
4155
|
-
}], Qn = () => [{
|
|
4156
|
-
component: uo,
|
|
4157
|
-
...ki
|
|
4158
|
-
}, {
|
|
4159
|
-
component: ci,
|
|
4160
|
-
...Ci
|
|
4210
|
+
...Li
|
|
4161
4211
|
}, {
|
|
4212
|
+
component: uo,
|
|
4213
|
+
..._i
|
|
4214
|
+
}], Qn = () => [{
|
|
4162
4215
|
component: fo,
|
|
4163
|
-
...
|
|
4216
|
+
...Ti
|
|
4217
|
+
}, {
|
|
4218
|
+
component: pi,
|
|
4219
|
+
...Ai
|
|
4164
4220
|
}, {
|
|
4165
4221
|
component: po,
|
|
4166
|
-
...
|
|
4222
|
+
...Oi
|
|
4167
4223
|
}, {
|
|
4168
4224
|
component: ho,
|
|
4169
|
-
...
|
|
4225
|
+
...ji
|
|
4170
4226
|
}, {
|
|
4171
|
-
component:
|
|
4172
|
-
...
|
|
4227
|
+
component: mo,
|
|
4228
|
+
...Ri
|
|
4229
|
+
}, {
|
|
4230
|
+
component: Ni,
|
|
4231
|
+
...Pi
|
|
4173
4232
|
}, {
|
|
4174
4233
|
component: La,
|
|
4175
|
-
...
|
|
4234
|
+
...Ui
|
|
4176
4235
|
}, {
|
|
4177
|
-
component:
|
|
4178
|
-
...
|
|
4179
|
-
}, ...
|
|
4236
|
+
component: Fi,
|
|
4237
|
+
...Bi
|
|
4238
|
+
}, ...Wi()], qa = (e) => ({
|
|
4180
4239
|
type: "builder.registerComponent",
|
|
4181
4240
|
data: Gt(e)
|
|
4182
|
-
}),
|
|
4241
|
+
}), $i = (e) => {
|
|
4183
4242
|
const t = e.toString().trim();
|
|
4184
4243
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
4185
|
-
},
|
|
4244
|
+
}, Hi = (e) => typeof e == "function" ? $i(e) : mt(e), Gt = ({
|
|
4186
4245
|
inputs: e,
|
|
4187
4246
|
...t
|
|
4188
4247
|
}) => ({
|
|
4189
|
-
...
|
|
4248
|
+
...mt(t),
|
|
4190
4249
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
|
|
4191
4250
|
...r,
|
|
4192
|
-
[o]:
|
|
4251
|
+
[o]: Hi(i)
|
|
4193
4252
|
}), {}))
|
|
4194
|
-
}),
|
|
4253
|
+
}), Ki = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4195
4254
|
function getAndSetVariantId() {
|
|
4196
4255
|
function setCookie(name, value, days) {
|
|
4197
4256
|
let expires = '';
|
|
@@ -4247,7 +4306,7 @@ const Ni = {
|
|
|
4247
4306
|
}).join('');
|
|
4248
4307
|
styleEl.innerHTML = newStyleStr;
|
|
4249
4308
|
}
|
|
4250
|
-
}`,
|
|
4309
|
+
}`, Gi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4251
4310
|
if (!navigator.cookieEnabled) {
|
|
4252
4311
|
return;
|
|
4253
4312
|
}
|
|
@@ -4281,24 +4340,24 @@ const Ni = {
|
|
|
4281
4340
|
thisScriptEl?.remove();
|
|
4282
4341
|
}
|
|
4283
4342
|
return;
|
|
4284
|
-
}`,
|
|
4343
|
+
}`, Rr = "builderIoAbTest", Pr = "builderIoRenderContent", ut = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4285
4344
|
...t,
|
|
4286
4345
|
testVariationId: t.id,
|
|
4287
4346
|
id: e == null ? void 0 : e.id
|
|
4288
|
-
})),
|
|
4347
|
+
})), Xi = ({
|
|
4289
4348
|
canTrack: e,
|
|
4290
4349
|
content: t
|
|
4291
|
-
}) => !(!(
|
|
4292
|
-
window.${
|
|
4293
|
-
window.${
|
|
4294
|
-
`,
|
|
4295
|
-
window.${
|
|
4296
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4297
|
-
)`,
|
|
4350
|
+
}) => !(!(ut(t).length > 0) || !e || G()), Yi = (e) => e === "react" || e === "reactNative", Nr = Yi(he), Ji = () => `
|
|
4351
|
+
window.${Rr} = ${Ki}
|
|
4352
|
+
window.${Pr} = ${Gi}
|
|
4353
|
+
`, zi = (e, t) => `
|
|
4354
|
+
window.${Rr}(
|
|
4355
|
+
"${t}",${JSON.stringify(e)}, ${Nr}
|
|
4356
|
+
)`, qi = ({
|
|
4298
4357
|
contentId: e,
|
|
4299
4358
|
variationId: t
|
|
4300
|
-
}) => `window.${
|
|
4301
|
-
"${t}", "${e}", ${
|
|
4359
|
+
}) => `window.${Pr}(
|
|
4360
|
+
"${t}", "${e}", ${Nr}
|
|
4302
4361
|
)`;
|
|
4303
4362
|
function Xt(e) {
|
|
4304
4363
|
return /* @__PURE__ */ A(
|
|
@@ -4309,61 +4368,61 @@ function Xt(e) {
|
|
|
4309
4368
|
}
|
|
4310
4369
|
);
|
|
4311
4370
|
}
|
|
4312
|
-
const
|
|
4371
|
+
const Zi = (e) => {
|
|
4313
4372
|
const t = e.get("preview"), n = e.get("overrides." + t);
|
|
4314
|
-
return n ||
|
|
4373
|
+
return n || q.warn("No previewed ID found in search params."), n;
|
|
4315
4374
|
};
|
|
4316
|
-
function
|
|
4317
|
-
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new
|
|
4375
|
+
function Qi() {
|
|
4376
|
+
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new yo({
|
|
4318
4377
|
max: 500,
|
|
4319
4378
|
// how long to live in ms
|
|
4320
4379
|
ttl: 1e3 * 60 * 5
|
|
4321
4380
|
}));
|
|
4322
4381
|
}
|
|
4323
|
-
function
|
|
4324
|
-
|
|
4325
|
-
const t =
|
|
4382
|
+
function ea(e) {
|
|
4383
|
+
Qi();
|
|
4384
|
+
const t = Zi(e);
|
|
4326
4385
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
4327
4386
|
}
|
|
4328
|
-
function
|
|
4387
|
+
function ta() {
|
|
4329
4388
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
4330
4389
|
}
|
|
4331
|
-
function
|
|
4332
|
-
const e =
|
|
4390
|
+
function na() {
|
|
4391
|
+
const e = ta().fetch;
|
|
4333
4392
|
if (typeof e > "u")
|
|
4334
4393
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
4335
4394
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
4336
4395
|
return e;
|
|
4337
4396
|
}
|
|
4338
|
-
const
|
|
4339
|
-
function
|
|
4397
|
+
const ra = na();
|
|
4398
|
+
function ft(e, t = null, n = ".") {
|
|
4340
4399
|
return Object.keys(e).reduce((r, o) => {
|
|
4341
4400
|
const i = e[o], s = [t, o].filter(Boolean).join(n);
|
|
4342
4401
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
4343
4402
|
...r,
|
|
4344
|
-
...
|
|
4403
|
+
...ft(i, s, n)
|
|
4345
4404
|
} : {
|
|
4346
4405
|
...r,
|
|
4347
4406
|
[s]: i
|
|
4348
4407
|
};
|
|
4349
4408
|
}, {});
|
|
4350
4409
|
}
|
|
4351
|
-
const
|
|
4410
|
+
const oa = "v3", er = "builder.", ia = "options.", Ur = (e) => {
|
|
4352
4411
|
if (!e)
|
|
4353
4412
|
return {};
|
|
4354
|
-
const t =
|
|
4413
|
+
const t = lr(e), n = {};
|
|
4355
4414
|
return Object.keys(t).forEach((r) => {
|
|
4356
4415
|
if (r.startsWith(er)) {
|
|
4357
|
-
const o = r.replace(er, "").replace(
|
|
4416
|
+
const o = r.replace(er, "").replace(ia, "");
|
|
4358
4417
|
n[o] = t[r];
|
|
4359
4418
|
}
|
|
4360
4419
|
}), n;
|
|
4361
|
-
},
|
|
4420
|
+
}, aa = () => {
|
|
4362
4421
|
if (!G())
|
|
4363
4422
|
return {};
|
|
4364
4423
|
const e = new URLSearchParams(window.location.search);
|
|
4365
|
-
return
|
|
4366
|
-
}, tr = (e) => typeof e == "number" && !isNaN(e) && e >= 0,
|
|
4424
|
+
return Ur(e);
|
|
4425
|
+
}, tr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, fn = (e) => {
|
|
4367
4426
|
const {
|
|
4368
4427
|
limit: t = 30,
|
|
4369
4428
|
userAttributes: n,
|
|
@@ -4372,58 +4431,58 @@ const ea = "v3", er = "builder.", ta = "options.", Nr = (e) => {
|
|
|
4372
4431
|
apiKey: i,
|
|
4373
4432
|
enrich: s,
|
|
4374
4433
|
locale: u,
|
|
4375
|
-
apiVersion: p =
|
|
4376
|
-
fields:
|
|
4377
|
-
omit:
|
|
4434
|
+
apiVersion: p = oa,
|
|
4435
|
+
fields: S,
|
|
4436
|
+
omit: k,
|
|
4378
4437
|
offset: m,
|
|
4379
|
-
cacheSeconds:
|
|
4380
|
-
staleCacheSeconds:
|
|
4381
|
-
sort:
|
|
4382
|
-
includeUnpublished:
|
|
4438
|
+
cacheSeconds: R,
|
|
4439
|
+
staleCacheSeconds: P,
|
|
4440
|
+
sort: C,
|
|
4441
|
+
includeUnpublished: v
|
|
4383
4442
|
} = e;
|
|
4384
4443
|
if (!i)
|
|
4385
4444
|
throw new Error("Missing API key");
|
|
4386
4445
|
if (!["v3"].includes(p))
|
|
4387
4446
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);
|
|
4388
|
-
const B = t !== 1,
|
|
4389
|
-
if (
|
|
4390
|
-
const
|
|
4391
|
-
sort:
|
|
4447
|
+
const B = t !== 1, j = new URL(`https://cdn.builder.io/api/${p}/content/${o}`);
|
|
4448
|
+
if (j.searchParams.set("apiKey", i), j.searchParams.set("limit", String(t)), j.searchParams.set("noTraverse", String(B)), j.searchParams.set("includeRefs", String(!0)), u && j.searchParams.set("locale", u), s && j.searchParams.set("enrich", String(s)), j.searchParams.set("omit", k || "meta.componentsUsed"), S && j.searchParams.set("fields", S), Number.isFinite(m) && m > -1 && j.searchParams.set("offset", String(Math.floor(m))), typeof v == "boolean" && j.searchParams.set("includeUnpublished", String(v)), R && tr(R) && j.searchParams.set("cacheSeconds", String(R)), P && tr(P) && j.searchParams.set("staleCacheSeconds", String(P)), C) {
|
|
4449
|
+
const M = ft({
|
|
4450
|
+
sort: C
|
|
4392
4451
|
});
|
|
4393
|
-
for (const ee in
|
|
4394
|
-
|
|
4452
|
+
for (const ee in M)
|
|
4453
|
+
j.searchParams.set(ee, JSON.stringify(M[ee]));
|
|
4395
4454
|
}
|
|
4396
|
-
const
|
|
4397
|
-
...
|
|
4398
|
-
...
|
|
4399
|
-
},
|
|
4400
|
-
for (const
|
|
4401
|
-
|
|
4402
|
-
if (n &&
|
|
4403
|
-
const
|
|
4455
|
+
const w = {
|
|
4456
|
+
...aa(),
|
|
4457
|
+
...lr(e.options || {})
|
|
4458
|
+
}, X = ft(w);
|
|
4459
|
+
for (const M in X)
|
|
4460
|
+
j.searchParams.set(M, String(X[M]));
|
|
4461
|
+
if (n && j.searchParams.set("userAttributes", JSON.stringify(n)), r) {
|
|
4462
|
+
const M = ft({
|
|
4404
4463
|
query: r
|
|
4405
4464
|
});
|
|
4406
|
-
for (const ee in
|
|
4407
|
-
|
|
4465
|
+
for (const ee in M)
|
|
4466
|
+
j.searchParams.set(ee, JSON.stringify(M[ee]));
|
|
4408
4467
|
}
|
|
4409
|
-
return
|
|
4410
|
-
},
|
|
4411
|
-
async function
|
|
4412
|
-
const t = await
|
|
4468
|
+
return j;
|
|
4469
|
+
}, sa = (e) => "results" in e;
|
|
4470
|
+
async function Br(e) {
|
|
4471
|
+
const t = await ua({
|
|
4413
4472
|
...e,
|
|
4414
4473
|
limit: 1
|
|
4415
4474
|
});
|
|
4416
4475
|
return t && t[0] || null;
|
|
4417
4476
|
}
|
|
4418
|
-
const
|
|
4419
|
-
const t =
|
|
4420
|
-
return await (await (e.fetch ??
|
|
4421
|
-
},
|
|
4477
|
+
const la = async (e) => {
|
|
4478
|
+
const t = fn(e);
|
|
4479
|
+
return await (await (e.fetch ?? ra)(t.href, e.fetchOptions)).json();
|
|
4480
|
+
}, ca = async (e, t, n = fn(e)) => {
|
|
4422
4481
|
const r = Kt(e.canTrack);
|
|
4423
4482
|
if (n.search.includes("preview=")) {
|
|
4424
4483
|
const i = [];
|
|
4425
4484
|
for (const s of t.results) {
|
|
4426
|
-
const u =
|
|
4485
|
+
const u = ea(n.searchParams);
|
|
4427
4486
|
i.push(u || s);
|
|
4428
4487
|
}
|
|
4429
4488
|
t.results = i;
|
|
@@ -4433,116 +4492,114 @@ const oa = async (e) => {
|
|
|
4433
4492
|
try {
|
|
4434
4493
|
const i = [];
|
|
4435
4494
|
for (const s of t.results)
|
|
4436
|
-
i.push(await
|
|
4495
|
+
i.push(await Ii({
|
|
4437
4496
|
item: s,
|
|
4438
4497
|
canTrack: r
|
|
4439
4498
|
}));
|
|
4440
4499
|
t.results = i;
|
|
4441
4500
|
} catch (i) {
|
|
4442
|
-
|
|
4501
|
+
q.error("Could not process A/B tests. ", i);
|
|
4443
4502
|
}
|
|
4444
4503
|
return t.results;
|
|
4445
4504
|
};
|
|
4446
|
-
async function
|
|
4505
|
+
async function ua(e) {
|
|
4447
4506
|
try {
|
|
4448
|
-
const t =
|
|
4449
|
-
return
|
|
4507
|
+
const t = fn(e), n = await la(e);
|
|
4508
|
+
return sa(n) ? ca(e, n) : (q.error("Error fetching data. ", {
|
|
4450
4509
|
url: t,
|
|
4451
4510
|
content: n,
|
|
4452
4511
|
options: e
|
|
4453
4512
|
}), null);
|
|
4454
4513
|
} catch (t) {
|
|
4455
|
-
return
|
|
4514
|
+
return q.error("Error fetching data. ", t), null;
|
|
4456
4515
|
}
|
|
4457
4516
|
}
|
|
4458
|
-
function
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
const t = ur(e || window.location.search);
|
|
4462
|
-
return Jt(t) ? !1 : t.indexOf("builder.preview=") !== -1;
|
|
4517
|
+
function Za(e) {
|
|
4518
|
+
const t = e || (G() ? window.location.search : void 0);
|
|
4519
|
+
return t ? cr(t).indexOf("builder.preview=") !== -1 : !1;
|
|
4463
4520
|
}
|
|
4464
|
-
function
|
|
4521
|
+
function fa() {
|
|
4465
4522
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
4466
4523
|
const t = Math.random() * 16 | 0;
|
|
4467
4524
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4468
4525
|
});
|
|
4469
4526
|
}
|
|
4470
|
-
function
|
|
4471
|
-
return
|
|
4527
|
+
function Fr() {
|
|
4528
|
+
return fa().replace(/-/g, "");
|
|
4472
4529
|
}
|
|
4473
|
-
const
|
|
4530
|
+
const Mr = "builderSessionId", da = async ({
|
|
4474
4531
|
canTrack: e
|
|
4475
4532
|
}) => {
|
|
4476
4533
|
if (!e)
|
|
4477
4534
|
return;
|
|
4478
|
-
const t = await
|
|
4479
|
-
name:
|
|
4535
|
+
const t = await Ir({
|
|
4536
|
+
name: Mr,
|
|
4480
4537
|
canTrack: e
|
|
4481
4538
|
});
|
|
4482
4539
|
if (oe(t))
|
|
4483
4540
|
return t;
|
|
4484
4541
|
{
|
|
4485
|
-
const n =
|
|
4486
|
-
return
|
|
4542
|
+
const n = pa();
|
|
4543
|
+
return ha({
|
|
4487
4544
|
id: n,
|
|
4488
4545
|
canTrack: e
|
|
4489
4546
|
}), n;
|
|
4490
4547
|
}
|
|
4491
|
-
},
|
|
4548
|
+
}, pa = () => Fr(), ha = ({
|
|
4492
4549
|
id: e,
|
|
4493
4550
|
canTrack: t
|
|
4494
|
-
}) =>
|
|
4495
|
-
name:
|
|
4551
|
+
}) => Tr({
|
|
4552
|
+
name: Mr,
|
|
4496
4553
|
value: e,
|
|
4497
4554
|
canTrack: t
|
|
4498
|
-
}),
|
|
4555
|
+
}), Vr = () => G() && typeof localStorage < "u" ? localStorage : void 0, ma = ({
|
|
4499
4556
|
key: e,
|
|
4500
4557
|
canTrack: t
|
|
4501
4558
|
}) => {
|
|
4502
4559
|
var n;
|
|
4503
4560
|
try {
|
|
4504
|
-
return t ? (n =
|
|
4561
|
+
return t ? (n = Vr()) == null ? void 0 : n.getItem(e) : void 0;
|
|
4505
4562
|
} catch (r) {
|
|
4506
4563
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4507
4564
|
return;
|
|
4508
4565
|
}
|
|
4509
|
-
},
|
|
4566
|
+
}, ga = ({
|
|
4510
4567
|
key: e,
|
|
4511
4568
|
canTrack: t,
|
|
4512
4569
|
value: n
|
|
4513
4570
|
}) => {
|
|
4514
4571
|
var r;
|
|
4515
4572
|
try {
|
|
4516
|
-
t && ((r =
|
|
4573
|
+
t && ((r = Vr()) == null || r.setItem(e, n));
|
|
4517
4574
|
} catch (o) {
|
|
4518
4575
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4519
4576
|
}
|
|
4520
|
-
},
|
|
4577
|
+
}, Dr = "builderVisitorId", ya = ({
|
|
4521
4578
|
canTrack: e
|
|
4522
4579
|
}) => {
|
|
4523
4580
|
if (!e)
|
|
4524
4581
|
return;
|
|
4525
|
-
const t =
|
|
4526
|
-
key:
|
|
4582
|
+
const t = ma({
|
|
4583
|
+
key: Dr,
|
|
4527
4584
|
canTrack: e
|
|
4528
4585
|
});
|
|
4529
4586
|
if (oe(t))
|
|
4530
4587
|
return t;
|
|
4531
4588
|
{
|
|
4532
|
-
const n =
|
|
4533
|
-
return
|
|
4589
|
+
const n = va();
|
|
4590
|
+
return ba({
|
|
4534
4591
|
id: n,
|
|
4535
4592
|
canTrack: e
|
|
4536
4593
|
}), n;
|
|
4537
4594
|
}
|
|
4538
|
-
},
|
|
4595
|
+
}, va = () => Fr(), ba = ({
|
|
4539
4596
|
id: e,
|
|
4540
4597
|
canTrack: t
|
|
4541
|
-
}) =>
|
|
4542
|
-
key:
|
|
4598
|
+
}) => ga({
|
|
4599
|
+
key: Dr,
|
|
4543
4600
|
value: e,
|
|
4544
4601
|
canTrack: t
|
|
4545
|
-
}),
|
|
4602
|
+
}), Sa = async ({
|
|
4546
4603
|
canTrack: e
|
|
4547
4604
|
}) => {
|
|
4548
4605
|
if (!e)
|
|
@@ -4550,16 +4607,16 @@ const Fr = "builderSessionId", la = async ({
|
|
|
4550
4607
|
visitorId: void 0,
|
|
4551
4608
|
sessionId: void 0
|
|
4552
4609
|
};
|
|
4553
|
-
const t = await
|
|
4610
|
+
const t = await da({
|
|
4554
4611
|
canTrack: e
|
|
4555
|
-
}), n =
|
|
4612
|
+
}), n = ya({
|
|
4556
4613
|
canTrack: e
|
|
4557
4614
|
});
|
|
4558
4615
|
return {
|
|
4559
4616
|
sessionId: t,
|
|
4560
4617
|
visitorId: n
|
|
4561
4618
|
};
|
|
4562
|
-
},
|
|
4619
|
+
}, wa = async ({
|
|
4563
4620
|
type: e,
|
|
4564
4621
|
canTrack: t,
|
|
4565
4622
|
apiKey: n,
|
|
@@ -4573,23 +4630,23 @@ const Fr = "builderSessionId", la = async ({
|
|
|
4573
4630
|
url: location.href,
|
|
4574
4631
|
...r
|
|
4575
4632
|
},
|
|
4576
|
-
...await
|
|
4633
|
+
...await Sa({
|
|
4577
4634
|
canTrack: t
|
|
4578
4635
|
}),
|
|
4579
4636
|
userAttributes: fr(),
|
|
4580
4637
|
ownerId: n
|
|
4581
4638
|
}
|
|
4582
4639
|
});
|
|
4583
|
-
async function
|
|
4640
|
+
async function xa(e) {
|
|
4584
4641
|
if (!e.apiKey) {
|
|
4585
|
-
|
|
4642
|
+
q.error("Missing API key for track call. Please provide your API key.");
|
|
4586
4643
|
return;
|
|
4587
4644
|
}
|
|
4588
|
-
if (e.canTrack && !
|
|
4645
|
+
if (e.canTrack && !ur() && (G() || he === "reactNative"))
|
|
4589
4646
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
4590
4647
|
method: "POST",
|
|
4591
4648
|
body: JSON.stringify({
|
|
4592
|
-
events: [await
|
|
4649
|
+
events: [await wa(e)]
|
|
4593
4650
|
}),
|
|
4594
4651
|
headers: {
|
|
4595
4652
|
"content-type": "application/json"
|
|
@@ -4599,14 +4656,14 @@ async function va(e) {
|
|
|
4599
4656
|
console.error("Failed to track: ", t);
|
|
4600
4657
|
});
|
|
4601
4658
|
}
|
|
4602
|
-
const
|
|
4659
|
+
const Qa = (e) => xa({
|
|
4603
4660
|
...e,
|
|
4604
4661
|
canTrack: !0
|
|
4605
4662
|
});
|
|
4606
4663
|
function nr(e) {
|
|
4607
4664
|
return Math.round(e * 1e3) / 1e3;
|
|
4608
4665
|
}
|
|
4609
|
-
const
|
|
4666
|
+
const ka = (e, t, n = !0) => {
|
|
4610
4667
|
if (!(e instanceof HTMLElement))
|
|
4611
4668
|
return null;
|
|
4612
4669
|
let r = n ? e : e.parentElement;
|
|
@@ -4617,7 +4674,7 @@ const ba = (e, t, n = !0) => {
|
|
|
4617
4674
|
return r;
|
|
4618
4675
|
} while (r = r.parentElement);
|
|
4619
4676
|
return null;
|
|
4620
|
-
},
|
|
4677
|
+
}, Ca = (e) => ka(e, (t) => {
|
|
4621
4678
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4622
4679
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4623
4680
|
}), rr = ({
|
|
@@ -4629,8 +4686,8 @@ const ba = (e, t, n = !0) => {
|
|
|
4629
4686
|
x: i,
|
|
4630
4687
|
y: s
|
|
4631
4688
|
};
|
|
4632
|
-
},
|
|
4633
|
-
const t = e.target, n = t &&
|
|
4689
|
+
}, es = (e) => {
|
|
4690
|
+
const t = e.target, n = t && Ca(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4634
4691
|
return {
|
|
4635
4692
|
targetBuilderElement: r || void 0,
|
|
4636
4693
|
metadata: {
|
|
@@ -4645,13 +4702,13 @@ const ba = (e, t, n = !0) => {
|
|
|
4645
4702
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4646
4703
|
}
|
|
4647
4704
|
};
|
|
4648
|
-
},
|
|
4649
|
-
function
|
|
4705
|
+
}, Ea = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4706
|
+
function Lr(e, t) {
|
|
4650
4707
|
const n = new URL(t.origin), r = n.hostname;
|
|
4651
|
-
return (e ||
|
|
4708
|
+
return (e || Ea).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
4652
4709
|
}
|
|
4653
|
-
const
|
|
4654
|
-
function
|
|
4710
|
+
const Ia = "0.14.17", or = {};
|
|
4711
|
+
function Ta(e, t) {
|
|
4655
4712
|
let n = or[e];
|
|
4656
4713
|
if (n || (n = or[e] = []), n.push(t), G()) {
|
|
4657
4714
|
const r = {
|
|
@@ -4668,8 +4725,8 @@ function ka(e, t) {
|
|
|
4668
4725
|
}
|
|
4669
4726
|
}
|
|
4670
4727
|
}
|
|
4671
|
-
const
|
|
4672
|
-
|
|
4728
|
+
const ts = () => {
|
|
4729
|
+
Ta("insertMenu", {
|
|
4673
4730
|
name: "_default",
|
|
4674
4731
|
default: !0,
|
|
4675
4732
|
items: [{
|
|
@@ -4692,13 +4749,13 @@ const es = () => {
|
|
|
4692
4749
|
});
|
|
4693
4750
|
};
|
|
4694
4751
|
let ir = !1;
|
|
4695
|
-
const
|
|
4752
|
+
const Aa = (e = {}) => {
|
|
4696
4753
|
var t, n;
|
|
4697
4754
|
ir || (ir = !0, G() && ((t = window.parent) == null || t.postMessage({
|
|
4698
4755
|
type: "builder.sdkInfo",
|
|
4699
4756
|
data: {
|
|
4700
4757
|
target: he,
|
|
4701
|
-
version:
|
|
4758
|
+
version: Ia,
|
|
4702
4759
|
supportsPatchUpdates: !1,
|
|
4703
4760
|
// Supports builder-model="..." attribute which is needed to
|
|
4704
4761
|
// scope our '+ add block' button styling
|
|
@@ -4712,7 +4769,7 @@ const Ca = (e = {}) => {
|
|
|
4712
4769
|
}
|
|
4713
4770
|
}, "*"), window.addEventListener("message", (r) => {
|
|
4714
4771
|
var i, s;
|
|
4715
|
-
if (!
|
|
4772
|
+
if (!Lr(e.trustedHosts, r))
|
|
4716
4773
|
return;
|
|
4717
4774
|
const {
|
|
4718
4775
|
data: o
|
|
@@ -4720,45 +4777,45 @@ const Ca = (e = {}) => {
|
|
|
4720
4777
|
if (o != null && o.type)
|
|
4721
4778
|
switch (o.type) {
|
|
4722
4779
|
case "builder.evaluate": {
|
|
4723
|
-
const u = o.data.text, p = o.data.arguments || [],
|
|
4724
|
-
let m,
|
|
4780
|
+
const u = o.data.text, p = o.data.arguments || [], S = o.data.id, k = new Function(u);
|
|
4781
|
+
let m, R = null;
|
|
4725
4782
|
try {
|
|
4726
|
-
m =
|
|
4727
|
-
} catch (
|
|
4728
|
-
|
|
4783
|
+
m = k.apply(null, p);
|
|
4784
|
+
} catch (P) {
|
|
4785
|
+
R = P;
|
|
4729
4786
|
}
|
|
4730
|
-
|
|
4787
|
+
R ? (i = window.parent) == null || i.postMessage({
|
|
4731
4788
|
type: "builder.evaluateError",
|
|
4732
4789
|
data: {
|
|
4733
|
-
id:
|
|
4734
|
-
error:
|
|
4790
|
+
id: S,
|
|
4791
|
+
error: R.message
|
|
4735
4792
|
}
|
|
4736
|
-
}, "*") : m && typeof m.then == "function" ? m.then((
|
|
4737
|
-
var
|
|
4738
|
-
(
|
|
4793
|
+
}, "*") : m && typeof m.then == "function" ? m.then((P) => {
|
|
4794
|
+
var C;
|
|
4795
|
+
(C = window.parent) == null || C.postMessage({
|
|
4739
4796
|
type: "builder.evaluateResult",
|
|
4740
4797
|
data: {
|
|
4741
|
-
id:
|
|
4742
|
-
result:
|
|
4798
|
+
id: S,
|
|
4799
|
+
result: P
|
|
4743
4800
|
}
|
|
4744
4801
|
}, "*");
|
|
4745
4802
|
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
4746
4803
|
type: "builder.evaluateResult",
|
|
4747
4804
|
data: {
|
|
4748
4805
|
result: m,
|
|
4749
|
-
id:
|
|
4806
|
+
id: S
|
|
4750
4807
|
}
|
|
4751
4808
|
}, "*");
|
|
4752
4809
|
break;
|
|
4753
4810
|
}
|
|
4754
4811
|
}
|
|
4755
4812
|
})));
|
|
4756
|
-
},
|
|
4813
|
+
}, Oa = ({
|
|
4757
4814
|
model: e,
|
|
4758
4815
|
trustedHosts: t,
|
|
4759
4816
|
callbacks: n
|
|
4760
4817
|
}) => (r) => {
|
|
4761
|
-
if (!
|
|
4818
|
+
if (!Lr(t, r))
|
|
4762
4819
|
return;
|
|
4763
4820
|
const {
|
|
4764
4821
|
data: o
|
|
@@ -4779,12 +4836,12 @@ const Ca = (e = {}) => {
|
|
|
4779
4836
|
break;
|
|
4780
4837
|
}
|
|
4781
4838
|
}
|
|
4782
|
-
},
|
|
4839
|
+
}, ns = (e, t, n) => {
|
|
4783
4840
|
if (!G)
|
|
4784
|
-
return
|
|
4841
|
+
return q.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
4785
4842
|
};
|
|
4786
|
-
|
|
4787
|
-
const r =
|
|
4843
|
+
Aa();
|
|
4844
|
+
const r = Oa({
|
|
4788
4845
|
callbacks: {
|
|
4789
4846
|
contentUpdate: t,
|
|
4790
4847
|
animation: () => {
|
|
@@ -4798,49 +4855,7 @@ const Ca = (e = {}) => {
|
|
|
4798
4855
|
return window.addEventListener("message", r), () => {
|
|
4799
4856
|
window.removeEventListener("message", r);
|
|
4800
4857
|
};
|
|
4801
|
-
}
|
|
4802
|
-
function ar(e, ...t) {
|
|
4803
|
-
const n = Object(e);
|
|
4804
|
-
for (let r = 1; r < arguments.length; r++) {
|
|
4805
|
-
const o = arguments[r];
|
|
4806
|
-
if (o != null)
|
|
4807
|
-
for (const i in o)
|
|
4808
|
-
Object.prototype.hasOwnProperty.call(o, i) && (n[i] = o[i]);
|
|
4809
|
-
}
|
|
4810
|
-
return n;
|
|
4811
|
-
}
|
|
4812
|
-
const Ia = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
4813
|
-
function Ta(e) {
|
|
4814
|
-
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
4815
|
-
}
|
|
4816
|
-
function Aa(e, t) {
|
|
4817
|
-
const n = Oa(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
4818
|
-
for (const u of s)
|
|
4819
|
-
for (const p of n)
|
|
4820
|
-
p in u || (u[p] = r[p]);
|
|
4821
|
-
}
|
|
4822
|
-
function Oa(e) {
|
|
4823
|
-
const t = [];
|
|
4824
|
-
for (const n of e.steps)
|
|
4825
|
-
for (const r in n.styles)
|
|
4826
|
-
t.indexOf(r) === -1 && t.push(r);
|
|
4827
|
-
return t;
|
|
4828
|
-
}
|
|
4829
|
-
function ns(e) {
|
|
4830
|
-
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
4831
|
-
if (!t.length) {
|
|
4832
|
-
Ta(e.elementId || e.id || "");
|
|
4833
|
-
return;
|
|
4834
|
-
}
|
|
4835
|
-
Array.from(t).forEach((n) => {
|
|
4836
|
-
Aa(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ar(n.style, e.steps[0].styles), setTimeout(() => {
|
|
4837
|
-
n.style.transition = `all ${e.duration}s ${Ia(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ar(n.style, e.steps[1].styles), setTimeout(() => {
|
|
4838
|
-
n.style.transition = "", n.style.transitionDelay = "";
|
|
4839
|
-
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
4840
|
-
});
|
|
4841
|
-
});
|
|
4842
|
-
}
|
|
4843
|
-
const ja = (e) => {
|
|
4858
|
+
}, ja = (e) => {
|
|
4844
4859
|
var i;
|
|
4845
4860
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
4846
4861
|
let o = "";
|
|
@@ -4903,7 +4918,7 @@ ${Ra({
|
|
|
4903
4918
|
})}
|
|
4904
4919
|
${Ua(e.isNestedRender)}
|
|
4905
4920
|
`.trim();
|
|
4906
|
-
return /* @__PURE__ */ A(
|
|
4921
|
+
return /* @__PURE__ */ A(gt, { id: "builderio-content", styles: t });
|
|
4907
4922
|
}
|
|
4908
4923
|
const Fa = ({
|
|
4909
4924
|
content: e,
|
|
@@ -4933,9 +4948,9 @@ const Fa = ({
|
|
|
4933
4948
|
},
|
|
4934
4949
|
meta: e == null ? void 0 : e.meta
|
|
4935
4950
|
} : void 0;
|
|
4936
|
-
function
|
|
4937
|
-
var o, i, s, u, p,
|
|
4938
|
-
const t =
|
|
4951
|
+
function ar(e) {
|
|
4952
|
+
var o, i, s, u, p, S, k, m, R;
|
|
4953
|
+
const t = qi({
|
|
4939
4954
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4940
4955
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
4941
4956
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4944,11 +4959,11 @@ function sr(e) {
|
|
|
4944
4959
|
...Qn(),
|
|
4945
4960
|
...e.customComponents || []
|
|
4946
4961
|
].reduce(
|
|
4947
|
-
(
|
|
4948
|
-
...
|
|
4949
|
-
[
|
|
4950
|
-
component:
|
|
4951
|
-
...Gt(
|
|
4962
|
+
(P, { component: C, ...v }) => ({
|
|
4963
|
+
...P,
|
|
4964
|
+
[v.name]: {
|
|
4965
|
+
component: C,
|
|
4966
|
+
...Gt(v)
|
|
4952
4967
|
}
|
|
4953
4968
|
}),
|
|
4954
4969
|
{}
|
|
@@ -4971,9 +4986,9 @@ function sr(e) {
|
|
|
4971
4986
|
...Qn(),
|
|
4972
4987
|
...e.customComponents || []
|
|
4973
4988
|
].reduce(
|
|
4974
|
-
(
|
|
4975
|
-
...
|
|
4976
|
-
[
|
|
4989
|
+
(P, { component: C, ...v }) => ({
|
|
4990
|
+
...P,
|
|
4991
|
+
[v.name]: Gt(v)
|
|
4977
4992
|
}),
|
|
4978
4993
|
{}
|
|
4979
4994
|
),
|
|
@@ -4982,7 +4997,7 @@ function sr(e) {
|
|
|
4982
4997
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
4983
4998
|
};
|
|
4984
4999
|
return /* @__PURE__ */ xe(
|
|
4985
|
-
|
|
5000
|
+
go,
|
|
4986
5001
|
{
|
|
4987
5002
|
content: e.content,
|
|
4988
5003
|
data: e.data,
|
|
@@ -5012,13 +5027,13 @@ function sr(e) {
|
|
|
5012
5027
|
isNestedRender: e.isNestedRender,
|
|
5013
5028
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
5014
5029
|
cssCode: (p = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : p.cssCode,
|
|
5015
|
-
customFonts: (
|
|
5030
|
+
customFonts: (k = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : k.customFonts
|
|
5016
5031
|
}
|
|
5017
5032
|
),
|
|
5018
5033
|
/* @__PURE__ */ A(
|
|
5019
|
-
|
|
5034
|
+
cn,
|
|
5020
5035
|
{
|
|
5021
|
-
blocks: (
|
|
5036
|
+
blocks: (R = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : R.blocks,
|
|
5022
5037
|
context: r,
|
|
5023
5038
|
registeredComponents: n,
|
|
5024
5039
|
linkComponent: e.linkComponent
|
|
@@ -5030,41 +5045,41 @@ function sr(e) {
|
|
|
5030
5045
|
}
|
|
5031
5046
|
function Va(e) {
|
|
5032
5047
|
var i;
|
|
5033
|
-
const t =
|
|
5048
|
+
const t = Xi({
|
|
5034
5049
|
canTrack: Kt(e.canTrack),
|
|
5035
5050
|
content: e.content
|
|
5036
5051
|
}), n = function() {
|
|
5037
5052
|
var u;
|
|
5038
|
-
return
|
|
5039
|
-
|
|
5053
|
+
return zi(
|
|
5054
|
+
ut(e.content).map((p) => ({
|
|
5040
5055
|
id: p.testVariationId,
|
|
5041
5056
|
testRatio: p.testRatio
|
|
5042
5057
|
})),
|
|
5043
5058
|
((u = e.content) == null ? void 0 : u.id) || ""
|
|
5044
5059
|
);
|
|
5045
5060
|
}, r = function() {
|
|
5046
|
-
return
|
|
5061
|
+
return ut(e.content).map((u) => `.variant-${u.testVariationId} { display: none; } `).join("");
|
|
5047
5062
|
}, o = function() {
|
|
5048
5063
|
var u;
|
|
5049
5064
|
return t ? {
|
|
5050
5065
|
...e.content,
|
|
5051
5066
|
testVariationId: (u = e.content) == null ? void 0 : u.id
|
|
5052
|
-
} :
|
|
5067
|
+
} : Ei({
|
|
5053
5068
|
item: e.content,
|
|
5054
5069
|
canTrack: Kt(e.canTrack)
|
|
5055
5070
|
});
|
|
5056
5071
|
};
|
|
5057
|
-
return /* @__PURE__ */ xe(
|
|
5072
|
+
return /* @__PURE__ */ xe(Q, { children: [
|
|
5058
5073
|
!e.isNestedRender && he !== "reactNative" ? /* @__PURE__ */ A(
|
|
5059
5074
|
Xt,
|
|
5060
5075
|
{
|
|
5061
5076
|
id: "builderio-init-variants-fns",
|
|
5062
|
-
scriptStr:
|
|
5077
|
+
scriptStr: Ji()
|
|
5063
5078
|
}
|
|
5064
5079
|
) : null,
|
|
5065
|
-
t ? /* @__PURE__ */ xe(
|
|
5080
|
+
t ? /* @__PURE__ */ xe(Q, { children: [
|
|
5066
5081
|
/* @__PURE__ */ A(
|
|
5067
|
-
|
|
5082
|
+
gt,
|
|
5068
5083
|
{
|
|
5069
5084
|
id: "builderio-variants",
|
|
5070
5085
|
styles: r()
|
|
@@ -5077,8 +5092,8 @@ function Va(e) {
|
|
|
5077
5092
|
scriptStr: n()
|
|
5078
5093
|
}
|
|
5079
5094
|
),
|
|
5080
|
-
(i =
|
|
5081
|
-
|
|
5095
|
+
(i = ut(e.content)) == null ? void 0 : i.map((s) => /* @__PURE__ */ A(
|
|
5096
|
+
ar,
|
|
5082
5097
|
{
|
|
5083
5098
|
isNestedRender: e.isNestedRender,
|
|
5084
5099
|
content: s,
|
|
@@ -5104,7 +5119,7 @@ function Va(e) {
|
|
|
5104
5119
|
))
|
|
5105
5120
|
] }) : null,
|
|
5106
5121
|
/* @__PURE__ */ A(
|
|
5107
|
-
|
|
5122
|
+
ar,
|
|
5108
5123
|
{
|
|
5109
5124
|
isNestedRender: e.isNestedRender,
|
|
5110
5125
|
content: o(),
|
|
@@ -5135,7 +5150,7 @@ const Da = async ({
|
|
|
5135
5150
|
}) => {
|
|
5136
5151
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5137
5152
|
(e != null && e.apiKey))
|
|
5138
|
-
return
|
|
5153
|
+
return Br({
|
|
5139
5154
|
model: t.model,
|
|
5140
5155
|
apiKey: e.apiKey,
|
|
5141
5156
|
apiVersion: e.apiVersion,
|
|
@@ -5145,18 +5160,18 @@ const Da = async ({
|
|
|
5145
5160
|
}
|
|
5146
5161
|
}
|
|
5147
5162
|
}).catch((n) => {
|
|
5148
|
-
|
|
5163
|
+
q.error("Could not fetch symbol content: ", n);
|
|
5149
5164
|
});
|
|
5150
5165
|
};
|
|
5151
5166
|
async function La(e) {
|
|
5152
5167
|
var r, o, i, s, u;
|
|
5153
5168
|
const t = function() {
|
|
5154
|
-
var
|
|
5169
|
+
var S, k;
|
|
5155
5170
|
return [
|
|
5156
5171
|
e.attributes[Yt()],
|
|
5157
5172
|
"builder-symbol",
|
|
5158
|
-
(
|
|
5159
|
-
(
|
|
5173
|
+
(S = e.symbol) != null && S.inline ? "builder-inline-symbol" : void 0,
|
|
5174
|
+
(k = e.symbol) != null && k.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5160
5175
|
].filter(Boolean).join(" ");
|
|
5161
5176
|
}, n = ((r = e.symbol) == null ? void 0 : r.content) || await Da({
|
|
5162
5177
|
symbol: e.symbol,
|
|
@@ -5186,13 +5201,13 @@ async function La(e) {
|
|
|
5186
5201
|
}
|
|
5187
5202
|
) });
|
|
5188
5203
|
}
|
|
5189
|
-
const
|
|
5204
|
+
const sr = {};
|
|
5190
5205
|
function rs(e) {
|
|
5191
5206
|
if (G()) {
|
|
5192
|
-
Object.assign(
|
|
5207
|
+
Object.assign(sr, e);
|
|
5193
5208
|
const t = {
|
|
5194
5209
|
type: "builder.settingsChange",
|
|
5195
|
-
data:
|
|
5210
|
+
data: sr
|
|
5196
5211
|
};
|
|
5197
5212
|
parent.postMessage(t, "*");
|
|
5198
5213
|
}
|
|
@@ -5209,49 +5224,49 @@ const os = async (e) => {
|
|
|
5209
5224
|
urlPath: t
|
|
5210
5225
|
} : {}
|
|
5211
5226
|
},
|
|
5212
|
-
options:
|
|
5227
|
+
options: Ur(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
5213
5228
|
};
|
|
5214
5229
|
return {
|
|
5215
5230
|
apiKey: n.apiKey,
|
|
5216
5231
|
model: n.model,
|
|
5217
|
-
content: await
|
|
5232
|
+
content: await Br(n)
|
|
5218
5233
|
};
|
|
5219
5234
|
};
|
|
5220
5235
|
export {
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5236
|
+
Qa as A,
|
|
5237
|
+
cn as B,
|
|
5238
|
+
pi as C,
|
|
5239
|
+
ns as D,
|
|
5225
5240
|
os as E,
|
|
5226
|
-
|
|
5227
|
-
|
|
5241
|
+
ca as F,
|
|
5242
|
+
ua as G,
|
|
5228
5243
|
La as S,
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5244
|
+
Fi as T,
|
|
5245
|
+
xa as _,
|
|
5246
|
+
ui as a,
|
|
5247
|
+
Ya as b,
|
|
5248
|
+
ur as c,
|
|
5249
|
+
Ja as d,
|
|
5250
|
+
za as e,
|
|
5236
5251
|
G as f,
|
|
5237
5252
|
Yt as g,
|
|
5238
5253
|
Kt as h,
|
|
5239
5254
|
Ga as i,
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5255
|
+
Za as j,
|
|
5256
|
+
Oa as k,
|
|
5257
|
+
q as l,
|
|
5258
|
+
ln as m,
|
|
5259
|
+
es as n,
|
|
5260
|
+
ra as o,
|
|
5261
|
+
mt as p,
|
|
5262
|
+
qa as q,
|
|
5263
|
+
ts as r,
|
|
5264
|
+
Aa as s,
|
|
5265
|
+
Xa as t,
|
|
5266
|
+
Br as u,
|
|
5267
|
+
Qi as v,
|
|
5253
5268
|
Va as w,
|
|
5254
|
-
|
|
5269
|
+
Ta as x,
|
|
5255
5270
|
rs as y,
|
|
5256
|
-
|
|
5271
|
+
Ur as z
|
|
5257
5272
|
};
|