@builder.io/sdk-react-nextjs 0.14.10 → 0.14.11
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/README.md +50 -38
- package/lib/browser/{USE_CLIENT_BUNDLE-23f56a7a.js → USE_CLIENT_BUNDLE-3b942ae2.js} +2 -2
- package/lib/{node/USE_CLIENT_BUNDLE-d7df2675.cjs → browser/USE_CLIENT_BUNDLE-4cb813ce.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-d7280e1d.js → browser/USE_SERVER_BUNDLE-0fe135ea.js} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-87f6dbbe.cjs → browser/USE_SERVER_BUNDLE-ec83933e.cjs} +1 -1
- package/lib/browser/{bundle-8b50c7b8.cjs → bundle-260ced55.cjs} +10 -10
- package/lib/browser/{bundle-53becb42.js → bundle-76453d46.js} +155 -131
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{node/USE_CLIENT_BUNDLE-1dd54b7e.js → edge/USE_CLIENT_BUNDLE-42619af6.js} +2 -2
- package/lib/{browser/USE_CLIENT_BUNDLE-eacd2786.cjs → edge/USE_CLIENT_BUNDLE-dfe5c354.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-3c851565.cjs → edge/USE_SERVER_BUNDLE-812e699d.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-df48fc17.js → edge/USE_SERVER_BUNDLE-ef053564.js} +1 -1
- package/lib/edge/{bundle-9f94b090.js → bundle-19c1b23d.js} +363 -339
- package/lib/edge/{bundle-3db41e4c.cjs → bundle-c186261f.cjs} +13 -13
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-fa4982fd.js → node/USE_CLIENT_BUNDLE-64c45aac.js} +2 -2
- package/lib/{edge/USE_CLIENT_BUNDLE-47f68f73.cjs → node/USE_CLIENT_BUNDLE-7dfe38c5.cjs} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-e0504825.cjs → node/USE_SERVER_BUNDLE-299ebfe7.cjs} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-e89c8b6f.js → node/USE_SERVER_BUNDLE-ed1c8346.js} +1 -1
- package/lib/node/{bundle-6a6e07b9.js → bundle-1a5c4f3c.js} +135 -111
- package/lib/node/{bundle-ece0becd.cjs → bundle-b5555d47.cjs} +9 -9
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +1 -1
- package/types/cjs/components/content-variants/helpers.d.ts +1 -1
- package/types/cjs/components/inlined-script.d.ts +1 -1
- package/types/cjs/components/inlined-styles.d.ts +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/esm/components/content-variants/helpers.d.ts +1 -1
- package/types/esm/components/inlined-script.d.ts +1 -1
- package/types/esm/components/inlined-styles.d.ts +1 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as A, Fragment as Z, jsxs as xe } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { LRUCache as no } from "lru-cache";
|
|
4
|
-
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-
|
|
4
|
+
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-42619af6.js";
|
|
5
5
|
import "next/navigation";
|
|
6
6
|
const yo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ga = (e) => typeof e == "string" && yo.has(e.toLowerCase()), he = "rsc", Yt = () => {
|
|
7
7
|
switch (he) {
|
|
@@ -80,7 +80,7 @@ const wo = () => {
|
|
|
80
80
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
81
81
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
82
82
|
};
|
|
83
|
-
},
|
|
83
|
+
}, dr = ({
|
|
84
84
|
builder: e,
|
|
85
85
|
context: t,
|
|
86
86
|
event: n,
|
|
@@ -108,19 +108,19 @@ const wo = () => {
|
|
|
108
108
|
rootSetState: i,
|
|
109
109
|
rootState: s
|
|
110
110
|
}) => {
|
|
111
|
-
const u =
|
|
111
|
+
const u = dr({
|
|
112
112
|
builder: t,
|
|
113
113
|
context: n,
|
|
114
114
|
event: r,
|
|
115
|
-
state:
|
|
115
|
+
state: pr({
|
|
116
116
|
rootState: s,
|
|
117
117
|
localState: o,
|
|
118
118
|
rootSetState: i
|
|
119
119
|
})
|
|
120
120
|
});
|
|
121
|
-
return new Function(...u.map(([
|
|
121
|
+
return new Function(...u.map(([p]) => p), e)(...u.map(([, p]) => p));
|
|
122
122
|
};
|
|
123
|
-
function
|
|
123
|
+
function pr({
|
|
124
124
|
rootState: e,
|
|
125
125
|
localState: t,
|
|
126
126
|
rootSetState: n
|
|
@@ -130,7 +130,7 @@ function dr({
|
|
|
130
130
|
if (t && o in t)
|
|
131
131
|
return t[o];
|
|
132
132
|
const i = r[o];
|
|
133
|
-
return typeof i == "object" && i !== null ?
|
|
133
|
+
return typeof i == "object" && i !== null ? pr({
|
|
134
134
|
rootState: i,
|
|
135
135
|
localState: void 0,
|
|
136
136
|
rootSetState: n ? (s) => {
|
|
@@ -159,16 +159,16 @@ var U, Io = function(e) {
|
|
|
159
159
|
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && $n.test(String.fromCharCode(a));
|
|
160
160
|
}
|
|
161
161
|
function r(a, l) {
|
|
162
|
-
for (var c = g,
|
|
162
|
+
for (var c = g, d = 1, I = 0; ; ) {
|
|
163
163
|
at.lastIndex = I;
|
|
164
164
|
var _ = at.exec(c);
|
|
165
165
|
if (_ && _.index < a)
|
|
166
|
-
++
|
|
166
|
+
++d, I = _.index + _[0].length;
|
|
167
167
|
else
|
|
168
168
|
break;
|
|
169
169
|
}
|
|
170
170
|
throw c = {
|
|
171
|
-
line:
|
|
171
|
+
line: d,
|
|
172
172
|
ab: a - I
|
|
173
173
|
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = a, l.X = c, l.o = f, l;
|
|
174
174
|
}
|
|
@@ -176,22 +176,22 @@ var U, Io = function(e) {
|
|
|
176
176
|
a = a.split(" ");
|
|
177
177
|
for (var l = /* @__PURE__ */ Object.create(null), c = 0; c < a.length; c++)
|
|
178
178
|
l[a[c]] = !0;
|
|
179
|
-
return function(
|
|
180
|
-
return l[
|
|
179
|
+
return function(d) {
|
|
180
|
+
return l[d] || !1;
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
183
|
function i() {
|
|
184
184
|
this.line = Se, this.ab = f - se;
|
|
185
185
|
}
|
|
186
186
|
function s(a, l) {
|
|
187
|
-
Ce = f, O.C && (It = new i()), E = a,
|
|
187
|
+
Ce = f, O.C && (It = new i()), E = a, p(), te = l, Me = a.m;
|
|
188
188
|
}
|
|
189
189
|
function u() {
|
|
190
190
|
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; )
|
|
191
191
|
++f, c = g.charCodeAt(f);
|
|
192
192
|
O.va && O.va(!1, g.slice(a + 2, f), a, f, l, O.C && new i());
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function p() {
|
|
195
195
|
for (; f < ke; ) {
|
|
196
196
|
var a = g.charCodeAt(f);
|
|
197
197
|
if (a === 32)
|
|
@@ -205,11 +205,11 @@ var U, Io = function(e) {
|
|
|
205
205
|
else if (a === 47)
|
|
206
206
|
if (a = g.charCodeAt(f + 1), a === 42) {
|
|
207
207
|
a = void 0;
|
|
208
|
-
var l = O.va && O.C && new i(), c = f,
|
|
209
|
-
if (
|
|
208
|
+
var l = O.va && O.C && new i(), c = f, d = g.indexOf("*/", f += 2);
|
|
209
|
+
if (d === -1 && r(f - 2, "Unterminated comment"), f = d + 2, O.C)
|
|
210
210
|
for (at.lastIndex = c; (a = at.exec(g)) && a.index < f; )
|
|
211
211
|
++Se, se = a.index + a[0].length;
|
|
212
|
-
O.va && O.va(!0, g.slice(c + 2,
|
|
212
|
+
O.va && O.va(!0, g.slice(c + 2, d), c, f, l, O.C && new i());
|
|
213
213
|
} else if (a === 47)
|
|
214
214
|
u();
|
|
215
215
|
else
|
|
@@ -222,7 +222,7 @@ var U, Io = function(e) {
|
|
|
222
222
|
break;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function b(a) {
|
|
226
226
|
switch (a) {
|
|
227
227
|
case 46:
|
|
228
228
|
a = g.charCodeAt(f + 1), 48 <= a && 57 >= a ? k(!0) : (++f, s(Bn));
|
|
@@ -236,9 +236,9 @@ var U, Io = function(e) {
|
|
|
236
236
|
case 44:
|
|
237
237
|
return ++f, s(ye);
|
|
238
238
|
case 91:
|
|
239
|
-
return ++f, s(Mt);
|
|
240
|
-
case 93:
|
|
241
239
|
return ++f, s(Ft);
|
|
240
|
+
case 93:
|
|
241
|
+
return ++f, s(Mt);
|
|
242
242
|
case 123:
|
|
243
243
|
return ++f, s(Le);
|
|
244
244
|
case 125:
|
|
@@ -246,7 +246,7 @@ var U, Io = function(e) {
|
|
|
246
246
|
case 58:
|
|
247
247
|
return ++f, s(_e);
|
|
248
248
|
case 63:
|
|
249
|
-
return ++f, s(
|
|
249
|
+
return ++f, s(Fn);
|
|
250
250
|
case 48:
|
|
251
251
|
if (a = g.charCodeAt(f + 1), a === 120 || a === 88) {
|
|
252
252
|
f += 2, a = R(16), a === null && r(D + 2, "Expected hexadecimal number"), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), s(De, a);
|
|
@@ -274,11 +274,11 @@ var U, Io = function(e) {
|
|
|
274
274
|
}
|
|
275
275
|
if (c === 92) {
|
|
276
276
|
c = g.charCodeAt(++f);
|
|
277
|
-
var
|
|
278
|
-
for (
|
|
279
|
-
|
|
280
|
-
if (
|
|
281
|
-
q && r(f - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(
|
|
277
|
+
var d = /^[0-7]+/.exec(g.slice(f, f + 3));
|
|
278
|
+
for (d && (d = d[0]); d && 255 < parseInt(d, 8); )
|
|
279
|
+
d = d.slice(0, -1);
|
|
280
|
+
if (d === "0" && (d = null), ++f, d)
|
|
281
|
+
q && r(f - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(d, 8)), f += d.length - 1;
|
|
282
282
|
else
|
|
283
283
|
switch (c) {
|
|
284
284
|
case 110:
|
|
@@ -325,7 +325,7 @@ var U, Io = function(e) {
|
|
|
325
325
|
}
|
|
326
326
|
return;
|
|
327
327
|
case 47:
|
|
328
|
-
a = g.charCodeAt(f + 1),
|
|
328
|
+
a = g.charCodeAt(f + 1), Me ? (++f, j()) : a === 61 ? m(we, 2) : m(Mn, 1);
|
|
329
329
|
return;
|
|
330
330
|
case 37:
|
|
331
331
|
case 42:
|
|
@@ -340,11 +340,11 @@ var U, Io = function(e) {
|
|
|
340
340
|
return;
|
|
341
341
|
case 43:
|
|
342
342
|
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(),
|
|
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(), x()) : m(Wr, 2) : l === 61 ? m(we, 2) : m(Jr, 1);
|
|
344
344
|
return;
|
|
345
345
|
case 60:
|
|
346
346
|
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(Yr, c)) : l === 33 && a === 60 && g.charCodeAt(f + 2) === 45 && g.charCodeAt(f + 3) === 45 ? (f += 4, u(),
|
|
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(Yr, c)) : l === 33 && a === 60 && g.charCodeAt(f + 2) === 45 && g.charCodeAt(f + 3) === 45 ? (f += 4, u(), p(), x()) : (l === 61 && (c = g.charCodeAt(f + 2) === 61 ? 3 : 2), m(Xr, c));
|
|
348
348
|
return;
|
|
349
349
|
case 61:
|
|
350
350
|
case 33:
|
|
@@ -362,7 +362,7 @@ var U, Io = function(e) {
|
|
|
362
362
|
return s(Ot);
|
|
363
363
|
if (a = g.charCodeAt(f), n(a) || a === 92)
|
|
364
364
|
return N();
|
|
365
|
-
if (
|
|
365
|
+
if (b(a) === !1) {
|
|
366
366
|
if (a = String.fromCharCode(a), a === "\\" || $n.test(a))
|
|
367
367
|
return N();
|
|
368
368
|
r(f, "Unexpected character '" + a + "'");
|
|
@@ -375,17 +375,17 @@ var U, Io = function(e) {
|
|
|
375
375
|
function j() {
|
|
376
376
|
for (var a, l, c = f; ; ) {
|
|
377
377
|
f >= ke && r(c, "Unterminated regexp");
|
|
378
|
-
var
|
|
379
|
-
if (it.test(
|
|
378
|
+
var d = g.charAt(f);
|
|
379
|
+
if (it.test(d) && r(c, "Unterminated regexp"), a)
|
|
380
380
|
a = !1;
|
|
381
381
|
else {
|
|
382
|
-
if (
|
|
382
|
+
if (d === "[")
|
|
383
383
|
l = !0;
|
|
384
|
-
else if (
|
|
384
|
+
else if (d === "]" && l)
|
|
385
385
|
l = !1;
|
|
386
|
-
else if (
|
|
386
|
+
else if (d === "/" && !l)
|
|
387
387
|
break;
|
|
388
|
-
a =
|
|
388
|
+
a = d === "\\";
|
|
389
389
|
}
|
|
390
390
|
++f;
|
|
391
391
|
}
|
|
@@ -398,19 +398,19 @@ var U, Io = function(e) {
|
|
|
398
398
|
s(gn, I);
|
|
399
399
|
}
|
|
400
400
|
function R(a, l) {
|
|
401
|
-
for (var c = f,
|
|
401
|
+
for (var c = f, d = 0, I = l === void 0 ? 1 / 0 : l, _ = 0; _ < I; ++_) {
|
|
402
402
|
var Y = g.charCodeAt(f);
|
|
403
403
|
if (Y = 97 <= Y ? Y - 97 + 10 : 65 <= Y ? Y - 65 + 10 : 48 <= Y && 57 >= Y ? Y - 48 : 1 / 0, Y >= a)
|
|
404
404
|
break;
|
|
405
|
-
++f,
|
|
405
|
+
++f, d = d * a + Y;
|
|
406
406
|
}
|
|
407
|
-
return f === c || l !== void 0 && f - c !== l ? null :
|
|
407
|
+
return f === c || l !== void 0 && f - c !== l ? null : d;
|
|
408
408
|
}
|
|
409
409
|
function k(a) {
|
|
410
|
-
var l = f, c = !1,
|
|
410
|
+
var l = f, c = !1, d = g.charCodeAt(f) === 48;
|
|
411
411
|
a || R(10) !== null || r(l, "Invalid number"), g.charCodeAt(f) === 46 && (++f, R(10), c = !0), a = g.charCodeAt(f), (a === 69 || a === 101) && (a = g.charCodeAt(++f), a !== 43 && a !== 45 || ++f, R(10) === null && r(l, "Invalid number"), c = !0), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), a = g.slice(l, f);
|
|
412
412
|
var I;
|
|
413
|
-
c ? I = parseFloat(a) :
|
|
413
|
+
c ? I = parseFloat(a) : d && a.length !== 1 ? /[89]/.test(a) || q ? r(l, "Invalid number") : I = parseInt(a, 8) : I = parseInt(a, 10), s(De, I);
|
|
414
414
|
}
|
|
415
415
|
function w(a) {
|
|
416
416
|
return a = R(16, a), a === null && r(D, "Bad character escape sequence"), a;
|
|
@@ -418,13 +418,13 @@ var U, Io = function(e) {
|
|
|
418
418
|
function B() {
|
|
419
419
|
Te = !1;
|
|
420
420
|
for (var a, l = !0, c = f; ; ) {
|
|
421
|
-
var
|
|
422
|
-
if (t(
|
|
421
|
+
var d = g.charCodeAt(f);
|
|
422
|
+
if (t(d))
|
|
423
423
|
Te && (a += g.charAt(f)), ++f;
|
|
424
|
-
else if (
|
|
425
|
-
Te || (a = g.slice(c, f)), Te = !0, g.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f,
|
|
426
|
-
var I = String.fromCharCode(
|
|
427
|
-
I || r(f - 1, "Invalid Unicode escape"), (l ? n(
|
|
424
|
+
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 = w(4);
|
|
426
|
+
var I = String.fromCharCode(d);
|
|
427
|
+
I || r(f - 1, "Invalid Unicode escape"), (l ? n(d) : t(d)) || r(f - 4, "Invalid Unicode escape"), a += I;
|
|
428
428
|
} else
|
|
429
429
|
break;
|
|
430
430
|
l = !1;
|
|
@@ -443,7 +443,7 @@ var U, Io = function(e) {
|
|
|
443
443
|
for (; f < se; )
|
|
444
444
|
se = g.lastIndexOf(`
|
|
445
445
|
`, se - 2) + 1, --Se;
|
|
446
|
-
|
|
446
|
+
p(), x();
|
|
447
447
|
}
|
|
448
448
|
function $() {
|
|
449
449
|
this.type = null, this.start = D, this.end = null;
|
|
@@ -465,16 +465,16 @@ var U, Io = function(e) {
|
|
|
465
465
|
function yt(a) {
|
|
466
466
|
return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function F(a) {
|
|
469
469
|
return E === a ? (C(), !0) : !1;
|
|
470
470
|
}
|
|
471
471
|
function Qe() {
|
|
472
472
|
return !O.fc && (E === Ot || E === Ie || it.test(g.slice(ge, D)));
|
|
473
473
|
}
|
|
474
474
|
function be() {
|
|
475
|
-
|
|
475
|
+
F(ce) || Qe() || ie();
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function M(a) {
|
|
478
478
|
E === a ? C() : ie();
|
|
479
479
|
}
|
|
480
480
|
function ie() {
|
|
@@ -484,40 +484,40 @@ var U, Io = function(e) {
|
|
|
484
484
|
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), q && a.type === "Identifier" && ot(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
485
485
|
}
|
|
486
486
|
function ne() {
|
|
487
|
-
(E ===
|
|
487
|
+
(E === Mn || E === we && te === "/=") && x(!0);
|
|
488
488
|
var a = E, l = L();
|
|
489
489
|
switch (a) {
|
|
490
490
|
case jt:
|
|
491
491
|
case vn:
|
|
492
492
|
C();
|
|
493
493
|
var c = a === jt;
|
|
494
|
-
|
|
495
|
-
for (var
|
|
496
|
-
var I = V[
|
|
494
|
+
F(ce) || Qe() ? l.label = null : E !== Ee ? ie() : (l.label = ae(), be());
|
|
495
|
+
for (var d = 0; d < V.length; ++d) {
|
|
496
|
+
var I = V[d];
|
|
497
497
|
if ((l.label === null || I.name === l.label.name) && (I.kind !== null && (c || I.kind === "loop") || l.label && c))
|
|
498
498
|
break;
|
|
499
499
|
}
|
|
500
|
-
return
|
|
500
|
+
return d === V.length && r(l.start, "Unsyntactic " + a.l), T(l, c ? "BreakStatement" : "ContinueStatement");
|
|
501
501
|
case bn:
|
|
502
502
|
return C(), be(), T(l, "DebuggerStatement");
|
|
503
503
|
case wn:
|
|
504
|
-
return C(), V.push(Vt), l.body = ne(), V.pop(),
|
|
504
|
+
return C(), V.push(Vt), l.body = ne(), V.pop(), M(Bt), l.test = Ue(), be(), T(l, "DoWhileStatement");
|
|
505
505
|
case Cn:
|
|
506
|
-
return C(), V.push(Vt),
|
|
506
|
+
return C(), V.push(Vt), M(le), E === ce ? vt(l, null) : E === Ut ? (a = L(), C(), hn(a, !0), T(a, "VariableDeclaration"), a.fa.length === 1 && F(rt) ? pn(l, a) : vt(l, a)) : (a = K(!1, !0), F(rt) ? (et(a), pn(l, a)) : vt(l, a));
|
|
507
507
|
case Pt:
|
|
508
508
|
return C(), xt(l, !0);
|
|
509
509
|
case En:
|
|
510
|
-
return C(), l.test = Ue(), l.da = ne(), l.alternate =
|
|
510
|
+
return C(), l.test = Ue(), l.da = ne(), l.alternate = F(xn) ? ne() : null, T(l, "IfStatement");
|
|
511
511
|
case In:
|
|
512
|
-
return Ve || O.Ib || r(D, "'return' outside of function"), C(),
|
|
512
|
+
return Ve || O.Ib || r(D, "'return' outside of function"), C(), F(ce) || Qe() ? l.K = null : (l.K = K(), be()), T(l, "ReturnStatement");
|
|
513
513
|
case Nt:
|
|
514
|
-
for (C(), l.Qb = Ue(), l.tb = [],
|
|
515
|
-
E === Rt || E === Sn ? (a = E === Rt,
|
|
516
|
-
return
|
|
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");
|
|
517
517
|
case Tn:
|
|
518
518
|
return C(), it.test(g.slice(ge, D)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), T(l, "ThrowStatement");
|
|
519
519
|
case An:
|
|
520
|
-
return C(), l.block = Be(), l.Ea = null, E === yn && (a = L(), C(),
|
|
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
521
|
case Ut:
|
|
522
522
|
return C(), hn(l), be(), T(l, "VariableDeclaration");
|
|
523
523
|
case Bt:
|
|
@@ -529,9 +529,9 @@ var U, Io = function(e) {
|
|
|
529
529
|
case ce:
|
|
530
530
|
return C(), T(l, "EmptyStatement");
|
|
531
531
|
default:
|
|
532
|
-
if (c = te, I = K(), a === Ee && I.type === "Identifier" &&
|
|
533
|
-
for (
|
|
534
|
-
V[
|
|
532
|
+
if (c = te, I = K(), a === Ee && I.type === "Identifier" && F(_e)) {
|
|
533
|
+
for (d = 0; d < V.length; ++d)
|
|
534
|
+
V[d].name === c && r(I.start, "Label '" + c + "' is already declared");
|
|
535
535
|
return V.push({
|
|
536
536
|
name: c,
|
|
537
537
|
kind: E.W ? "loop" : E === Nt ? "switch" : null
|
|
@@ -541,39 +541,39 @@ var U, Io = function(e) {
|
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
function Ue() {
|
|
544
|
-
|
|
544
|
+
M(le);
|
|
545
545
|
var a = K();
|
|
546
|
-
return
|
|
546
|
+
return M(re), a;
|
|
547
547
|
}
|
|
548
548
|
function Be(a) {
|
|
549
|
-
var l = L(), c = !0,
|
|
550
|
-
for (l.body = [],
|
|
549
|
+
var l = L(), c = !0, d = !1;
|
|
550
|
+
for (l.body = [], M(Le); !F(Ie); ) {
|
|
551
551
|
var I = ne();
|
|
552
552
|
if (l.body.push(I), c && a && yt(I)) {
|
|
553
|
-
var _ =
|
|
554
|
-
Q(
|
|
553
|
+
var _ = d;
|
|
554
|
+
Q(d = !0);
|
|
555
555
|
}
|
|
556
556
|
c = !1;
|
|
557
557
|
}
|
|
558
|
-
return
|
|
558
|
+
return d && !_ && Q(!1), T(l, "BlockStatement");
|
|
559
559
|
}
|
|
560
560
|
function vt(a, l) {
|
|
561
|
-
return a.ua = l,
|
|
561
|
+
return a.ua = l, M(ce), a.test = E === ce ? null : K(), M(ce), a.update = E === re ? null : K(), M(re), a.body = ne(), V.pop(), T(a, "ForStatement");
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
return a.left = l, a.right = K(),
|
|
563
|
+
function pn(a, l) {
|
|
564
|
+
return a.left = l, a.right = K(), M(re), a.body = ne(), V.pop(), T(a, "ForInStatement");
|
|
565
565
|
}
|
|
566
566
|
function hn(a, l) {
|
|
567
567
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
568
568
|
var c = L();
|
|
569
|
-
if (c.id = ae(), q && ot(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua =
|
|
569
|
+
if (c.id = ae(), q && ot(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = F(Vn) ? K(!0, l) : null, a.fa.push(T(c, "VariableDeclarator")), !F(ye))
|
|
570
570
|
break;
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
573
|
function K(a, l) {
|
|
574
574
|
var c = bt(l);
|
|
575
575
|
if (!a && E === ye) {
|
|
576
|
-
for (a = me(c), a.xb = [c];
|
|
576
|
+
for (a = me(c), a.xb = [c]; F(ye); )
|
|
577
577
|
a.xb.push(bt(l));
|
|
578
578
|
return T(a, "SequenceExpression");
|
|
579
579
|
}
|
|
@@ -581,35 +581,35 @@ var U, Io = function(e) {
|
|
|
581
581
|
}
|
|
582
582
|
function bt(a) {
|
|
583
583
|
var l = St(wt(), -1, a);
|
|
584
|
-
if (
|
|
584
|
+
if (F(Fn)) {
|
|
585
585
|
var c = me(l);
|
|
586
|
-
c.test = l, c.da = K(!0),
|
|
586
|
+
c.test = l, c.da = K(!0), M(_e), c.alternate = K(!0, a), l = T(c, "ConditionalExpression");
|
|
587
587
|
}
|
|
588
588
|
return E.Cb ? (c = me(l), c.operator = te, c.left = l, C(), c.right = bt(a), et(l), T(c, "AssignmentExpression")) : l;
|
|
589
589
|
}
|
|
590
590
|
function St(a, l, c) {
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
591
|
+
var d = E.L;
|
|
592
|
+
if (d !== null && (!c || E !== rt) && d > l) {
|
|
593
593
|
var I = me(a);
|
|
594
|
-
return I.left = a, I.operator = te, a = E, C(), I.right = St(wt(),
|
|
594
|
+
return I.left = a, I.operator = te, a = E, C(), I.right = St(wt(), d, c), d = T(I, a === Ln || a === _n ? "LogicalExpression" : "BinaryExpression"), St(d, l, c);
|
|
595
595
|
}
|
|
596
596
|
return a;
|
|
597
597
|
}
|
|
598
598
|
function wt() {
|
|
599
599
|
if (E.prefix) {
|
|
600
600
|
var a = L(), l = E.$b;
|
|
601
|
-
return a.operator = te,
|
|
601
|
+
return a.operator = te, Me = a.prefix = !0, C(), a.K = wt(), l ? et(a.K) : q && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), T(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
602
602
|
}
|
|
603
|
-
for (l =
|
|
603
|
+
for (l = Fe(tt()); E.cc && !Qe(); )
|
|
604
604
|
a = me(l), a.operator = te, a.prefix = !1, a.K = l, et(l), C(), l = T(a, "UpdateExpression");
|
|
605
605
|
return l;
|
|
606
606
|
}
|
|
607
|
-
function
|
|
608
|
-
if (
|
|
607
|
+
function Fe(a, l) {
|
|
608
|
+
if (F(Bn)) {
|
|
609
609
|
var c = me(a);
|
|
610
|
-
return c.object = a, c.Wa = ae(!0), c.bb = !1,
|
|
610
|
+
return c.object = a, c.Wa = ae(!0), c.bb = !1, Fe(T(c, "MemberExpression"), l);
|
|
611
611
|
}
|
|
612
|
-
return
|
|
612
|
+
return F(Ft) ? (c = me(a), c.object = a, c.Wa = K(), c.bb = !0, M(Mt), Fe(T(c, "MemberExpression"), l)) : !l && F(le) ? (c = me(a), c.callee = a, c.arguments = kt(re, !1), Fe(T(c, "CallExpression"), l)) : a;
|
|
613
613
|
}
|
|
614
614
|
function tt() {
|
|
615
615
|
switch (E) {
|
|
@@ -631,69 +631,69 @@ var U, Io = function(e) {
|
|
|
631
631
|
var l = D;
|
|
632
632
|
C();
|
|
633
633
|
var c = K();
|
|
634
|
-
return c.start = l, c.end = Ce, O.C && (c.X.start = a, c.X.end = It), O.Xa && (c.j = [l, Ce]),
|
|
635
|
-
case
|
|
636
|
-
return a = L(), C(), a.elements = kt(
|
|
634
|
+
return c.start = l, c.end = Ce, O.C && (c.X.start = a, c.X.end = It), O.Xa && (c.j = [l, Ce]), M(re), c;
|
|
635
|
+
case Ft:
|
|
636
|
+
return a = L(), C(), a.elements = kt(Mt, !0, !0), T(a, "ArrayExpression");
|
|
637
637
|
case Le:
|
|
638
|
-
for (a = L(), l = !0, c = !1, a.h = [], C(); !
|
|
638
|
+
for (a = L(), l = !0, c = !1, a.h = [], C(); !F(Ie); ) {
|
|
639
639
|
if (l)
|
|
640
640
|
l = !1;
|
|
641
|
-
else if (
|
|
641
|
+
else if (M(ye), O.sb && F(Ie))
|
|
642
642
|
break;
|
|
643
|
-
var
|
|
643
|
+
var d = {
|
|
644
644
|
key: E === De || E === nt ? tt() : ae(!0)
|
|
645
645
|
}, I = !1;
|
|
646
|
-
if (
|
|
647
|
-
|
|
648
|
-
var _ =
|
|
646
|
+
if (F(_e)) {
|
|
647
|
+
d.value = K(!0);
|
|
648
|
+
var _ = d.kind = "init";
|
|
649
649
|
} else
|
|
650
|
-
|
|
651
|
-
if (
|
|
650
|
+
d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ? ie() : (I = c = !0, _ = d.kind = d.key.name, d.key = E === De || E === nt ? tt() : ae(!0), E !== le && ie(), d.value = xt(L(), !1));
|
|
651
|
+
if (d.key.type === "Identifier" && (q || c))
|
|
652
652
|
for (var Y = 0; Y < a.h.length; ++Y) {
|
|
653
653
|
var Ae = a.h[Y];
|
|
654
|
-
if (Ae.key.name ===
|
|
654
|
+
if (Ae.key.name === d.key.name) {
|
|
655
655
|
var Dt = _ === Ae.kind || I && Ae.kind === "init" || _ === "init" && (Ae.kind === "get" || Ae.kind === "set");
|
|
656
|
-
Dt && !q && _ === "init" && Ae.kind === "init" && (Dt = !1), Dt && r(
|
|
656
|
+
Dt && !q && _ === "init" && Ae.kind === "init" && (Dt = !1), Dt && r(d.key.start, "Redefinition of property");
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
a.h.push(
|
|
659
|
+
a.h.push(d);
|
|
660
660
|
}
|
|
661
661
|
return T(a, "ObjectExpression");
|
|
662
662
|
case Pt:
|
|
663
663
|
return a = L(), C(), xt(a, !1);
|
|
664
664
|
case jn:
|
|
665
|
-
return a = L(), C(), a.callee =
|
|
665
|
+
return a = L(), C(), a.callee = Fe(tt(), !0), a.arguments = F(le) ? kt(re, !1) : Lr, T(a, "NewExpression");
|
|
666
666
|
}
|
|
667
667
|
ie();
|
|
668
668
|
}
|
|
669
669
|
function xt(a, l) {
|
|
670
670
|
E === Ee ? a.id = ae() : l ? ie() : a.id = null, a.oa = [];
|
|
671
671
|
var c = !0;
|
|
672
|
-
for (
|
|
673
|
-
c ? c = !1 :
|
|
672
|
+
for (M(le); !F(re); )
|
|
673
|
+
c ? c = !1 : M(ye), a.oa.push(ae());
|
|
674
674
|
c = Ve;
|
|
675
|
-
var
|
|
676
|
-
if (Ve = !0, V = [], a.body = Be(!0), Ve = c, V =
|
|
675
|
+
var d = V;
|
|
676
|
+
if (Ve = !0, V = [], a.body = Be(!0), Ve = c, V = d, q || a.body.body.length && yt(a.body.body[0])) {
|
|
677
677
|
for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
|
|
678
|
-
if (
|
|
678
|
+
if (d = 0 > c ? a.id : a.oa[c], (Wn(d.name) || ot(d.name)) && r(d.start, "Defining '" + d.name + "' in strict mode"), 0 <= c)
|
|
679
679
|
for (var I = 0; I < c; ++I)
|
|
680
|
-
|
|
680
|
+
d.name === a.oa[I].name && r(d.start, "Argument name clash in strict mode");
|
|
681
681
|
}
|
|
682
682
|
return T(a, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
683
683
|
}
|
|
684
684
|
function kt(a, l, c) {
|
|
685
|
-
for (var
|
|
685
|
+
for (var d = [], I = !0; !F(a); ) {
|
|
686
686
|
if (I)
|
|
687
687
|
I = !1;
|
|
688
|
-
else if (
|
|
688
|
+
else if (M(ye), l && O.sb && F(a))
|
|
689
689
|
break;
|
|
690
|
-
|
|
690
|
+
d.push(c && E === ye ? null : K(!0));
|
|
691
691
|
}
|
|
692
|
-
return
|
|
692
|
+
return d;
|
|
693
693
|
}
|
|
694
694
|
function ae(a) {
|
|
695
695
|
var l = L();
|
|
696
|
-
return a && O.yb === "everywhere" && (a = !1), E === Ee ? (!a && (O.yb && qr(te) || q && Wn(te)) && g.slice(D, Ce).indexOf("\\") === -1 && r(D, "The keyword '" + te + "' is reserved"), l.name = te) : a && E.l ? l.name = E.l : ie(),
|
|
696
|
+
return a && O.yb === "everywhere" && (a = !1), E === Ee ? (!a && (O.yb && qr(te) || q && Wn(te)) && g.slice(D, Ce).indexOf("\\") === -1 && r(D, "The keyword '" + te + "' is reserved"), l.name = te) : a && E.l ? l.name = E.l : ie(), Me = !1, C(), T(l, "Identifier");
|
|
697
697
|
}
|
|
698
698
|
e.version = "0.5.0";
|
|
699
699
|
var O, g = "", ke, Ct;
|
|
@@ -701,7 +701,7 @@ var U, Io = function(e) {
|
|
|
701
701
|
g = String(a), ke = g.length, O = l || {};
|
|
702
702
|
for (var c in mn)
|
|
703
703
|
Object.prototype.hasOwnProperty.call(O, c) || (O[c] = mn[c]);
|
|
704
|
-
for (Ct = O.sourceFile, Se = 1, f = se = 0,
|
|
704
|
+
for (Ct = O.sourceFile, Se = 1, f = se = 0, Me = !0, p(), c = O.dc, Tt = ge = f, O.C && (At = new i()), Ve = q = !1, V = [], x(), a = c || L(), l = !0, c || (a.body = []); E !== Ot; )
|
|
705
705
|
c = ne(), a.body.push(c), l && yt(c) && Q(!0), l = !1;
|
|
706
706
|
return T(a, "Program");
|
|
707
707
|
};
|
|
@@ -716,7 +716,7 @@ var U, Io = function(e) {
|
|
|
716
716
|
dc: null,
|
|
717
717
|
sourceFile: null,
|
|
718
718
|
vb: null
|
|
719
|
-
}, f = 0, D = 0, Ce = 0, Et, It, E, te,
|
|
719
|
+
}, f = 0, D = 0, Ce = 0, Et, It, E, te, Me, Se, se, Tt = 0, ge = 0, At, Ve, V, q, Lr = [], De = {
|
|
720
720
|
type: "num"
|
|
721
721
|
}, gn = {
|
|
722
722
|
type: "regexp"
|
|
@@ -835,10 +835,10 @@ var U, Io = function(e) {
|
|
|
835
835
|
prefix: !0,
|
|
836
836
|
m: !0
|
|
837
837
|
}
|
|
838
|
-
},
|
|
838
|
+
}, Ft = {
|
|
839
839
|
type: "[",
|
|
840
840
|
m: !0
|
|
841
|
-
},
|
|
841
|
+
}, Mt = {
|
|
842
842
|
type: "]"
|
|
843
843
|
}, Le = {
|
|
844
844
|
type: "{",
|
|
@@ -861,10 +861,10 @@ var U, Io = function(e) {
|
|
|
861
861
|
m: !0
|
|
862
862
|
}, Bn = {
|
|
863
863
|
type: "."
|
|
864
|
-
},
|
|
864
|
+
}, Fn = {
|
|
865
865
|
type: "?",
|
|
866
866
|
m: !0
|
|
867
|
-
},
|
|
867
|
+
}, Mn = {
|
|
868
868
|
L: 10,
|
|
869
869
|
m: !0
|
|
870
870
|
}, Vn = {
|
|
@@ -934,7 +934,7 @@ function h(e, t) {
|
|
|
934
934
|
for (s in this)
|
|
935
935
|
typeof this[s] == "function" && (i = s.match(e)) && (this.rb[i[1]] = this[s].bind(this));
|
|
936
936
|
this.N = Ht(this, this.ra, null), this.Na = this.N.object, this.ra = Re(this.ba.join(`
|
|
937
|
-
`), "polyfills"), this.ba = void 0,
|
|
937
|
+
`), "polyfills"), this.ba = void 0, dt(this.ra), i = new v(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new v(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
938
938
|
}
|
|
939
939
|
var Hn = {
|
|
940
940
|
C: !0,
|
|
@@ -976,12 +976,12 @@ function Ye(e) {
|
|
|
976
976
|
var t = e >>> 0;
|
|
977
977
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function dt(e, t, n) {
|
|
980
980
|
t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
|
|
981
981
|
for (var r in e)
|
|
982
982
|
if (r !== "loc" && e.hasOwnProperty(r)) {
|
|
983
983
|
var o = e[r];
|
|
984
|
-
o && typeof o == "object" &&
|
|
984
|
+
o && typeof o == "object" && dt(o, t, n);
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
987
|
h.prototype.REGEXP_MODE = 2;
|
|
@@ -1019,7 +1019,7 @@ U.lb = function() {
|
|
|
1019
1019
|
n = null;
|
|
1020
1020
|
else {
|
|
1021
1021
|
this.ca.shift(), 0 <= n.interval && vr(this, n, n.interval);
|
|
1022
|
-
var r = new
|
|
1022
|
+
var r = new v(n.node, n.scope);
|
|
1023
1023
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1024
1024
|
}
|
|
1025
1025
|
if (!n)
|
|
@@ -1050,7 +1050,7 @@ U.Eb = function() {
|
|
|
1050
1050
|
return this.za;
|
|
1051
1051
|
};
|
|
1052
1052
|
function Ao(e, t) {
|
|
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, zt), e.g(t, "this", t, We), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), Oo(e, t), jo(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Ro(e, t), Po(e, t), No(e, t), Uo(e, t), Bo(e, t),
|
|
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, zt), e.g(t, "this", t, We), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), Oo(e, t), jo(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Ro(e, t), Po(e, t), No(e, t), Uo(e, t), Bo(e, t), Fo(e, t), Mo(e, t), Vo(e, t), Do(e, t);
|
|
1054
1054
|
var n = e.i(function() {
|
|
1055
1055
|
throw EvalError("Can't happen");
|
|
1056
1056
|
}, !1);
|
|
@@ -1082,17 +1082,17 @@ function Oo(e, t) {
|
|
|
1082
1082
|
if (s) {
|
|
1083
1083
|
s = s.split(/\s*,\s*/);
|
|
1084
1084
|
for (var u = 0; u < s.length; u++) {
|
|
1085
|
-
var
|
|
1086
|
-
n.test(
|
|
1085
|
+
var p = s[u];
|
|
1086
|
+
n.test(p) || S(e, e.T, "Invalid function argument: " + p);
|
|
1087
1087
|
}
|
|
1088
1088
|
s = s.join(", ");
|
|
1089
1089
|
}
|
|
1090
1090
|
try {
|
|
1091
|
-
var
|
|
1091
|
+
var b = Re("(function(" + s + ") {" + i + "})", "function" + e.Wb++);
|
|
1092
1092
|
} catch (x) {
|
|
1093
1093
|
S(e, e.T, "Invalid code: " + x.message);
|
|
1094
1094
|
}
|
|
1095
|
-
return
|
|
1095
|
+
return b.body.length !== 1 && S(e, e.T, "Invalid code in function body"), en(e, b.body[0].la, e.N, "anonymous");
|
|
1096
1096
|
};
|
|
1097
1097
|
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
1098
|
}, 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) {
|
|
@@ -1116,9 +1116,9 @@ function jo(e, t) {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
var r = function(o) {
|
|
1118
1118
|
if (o == null)
|
|
1119
|
-
return
|
|
1119
|
+
return pe(e) ? this : e.s(e.M);
|
|
1120
1120
|
if (!(o instanceof P)) {
|
|
1121
|
-
var i = e.s(
|
|
1121
|
+
var i = e.s(de(e, o));
|
|
1122
1122
|
return i.data = o, i;
|
|
1123
1123
|
}
|
|
1124
1124
|
return o;
|
|
@@ -1137,7 +1137,7 @@ function jo(e, t) {
|
|
|
1137
1137
|
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
1138
|
}
|
|
1139
1139
|
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), y), r = function(o) {
|
|
1140
|
-
return n(o),
|
|
1140
|
+
return n(o), de(e, o);
|
|
1141
1141
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), y), r = function(o) {
|
|
1142
1142
|
return !!o && !o.preventExtensions;
|
|
1143
1143
|
}, e.g(e.v, "isExtensible", e.i(r, !1), y), r = function(o) {
|
|
@@ -1148,7 +1148,7 @@ function jo(e, t) {
|
|
|
1148
1148
|
return n(this), this instanceof P ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1149
1149
|
}, W(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1150
1150
|
for (; ; ) {
|
|
1151
|
-
if (o =
|
|
1151
|
+
if (o = de(e, o), !o)
|
|
1152
1152
|
return !1;
|
|
1153
1153
|
if (o === this)
|
|
1154
1154
|
return !0;
|
|
@@ -1157,7 +1157,7 @@ function jo(e, t) {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
function Ro(e, t) {
|
|
1159
1159
|
var n = function(r) {
|
|
1160
|
-
var o =
|
|
1160
|
+
var o = pe(e) ? this : Pe(e), i = arguments[0];
|
|
1161
1161
|
if (arguments.length === 1 && typeof i == "number")
|
|
1162
1162
|
isNaN(qt(i)) && S(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1163
1163
|
else {
|
|
@@ -1177,7 +1177,7 @@ function Ro(e, t) {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
function Po(e, t) {
|
|
1179
1179
|
var n = function(r) {
|
|
1180
|
-
return r = arguments.length ? ve.String(r) : "",
|
|
1180
|
+
return r = arguments.length ? ve.String(r) : "", pe(e) ? (this.data = r, this) : r;
|
|
1181
1181
|
};
|
|
1182
1182
|
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
1183
|
W(e, e.J, t[n], String.prototype[t[n]]);
|
|
@@ -1198,9 +1198,9 @@ function Po(e, t) {
|
|
|
1198
1198
|
limit: o
|
|
1199
1199
|
}, r, i), r !== je && i(ue(e, r));
|
|
1200
1200
|
else {
|
|
1201
|
-
var u = e.ha(),
|
|
1202
|
-
u.onmessage = function(
|
|
1203
|
-
clearTimeout(
|
|
1201
|
+
var u = e.ha(), p = Ke(e, r, u, i);
|
|
1202
|
+
u.onmessage = function(b) {
|
|
1203
|
+
clearTimeout(p), i(ue(e, b.data));
|
|
1204
1204
|
}, u.postMessage(["split", s, r, o]);
|
|
1205
1205
|
}
|
|
1206
1206
|
return;
|
|
@@ -1216,8 +1216,8 @@ function Po(e, t) {
|
|
|
1216
1216
|
}, r, o), r !== je && o(r && ue(e, r));
|
|
1217
1217
|
else {
|
|
1218
1218
|
var s = e.ha(), u = Ke(e, r, s, o);
|
|
1219
|
-
s.onmessage = function(
|
|
1220
|
-
clearTimeout(u), o(
|
|
1219
|
+
s.onmessage = function(p) {
|
|
1220
|
+
clearTimeout(u), o(p.data && ue(e, p.data));
|
|
1221
1221
|
}, s.postMessage(["match", i, r]);
|
|
1222
1222
|
}
|
|
1223
1223
|
else
|
|
@@ -1232,8 +1232,8 @@ function Po(e, t) {
|
|
|
1232
1232
|
}, r, o), r !== je && o(r);
|
|
1233
1233
|
else {
|
|
1234
1234
|
var s = e.ha(), u = Ke(e, r, s, o);
|
|
1235
|
-
s.onmessage = function(
|
|
1236
|
-
clearTimeout(u), o(
|
|
1235
|
+
s.onmessage = function(p) {
|
|
1236
|
+
clearTimeout(u), o(p.data);
|
|
1237
1237
|
}, s.postMessage(["search", i, r]);
|
|
1238
1238
|
}
|
|
1239
1239
|
else
|
|
@@ -1248,9 +1248,9 @@ function Po(e, t) {
|
|
|
1248
1248
|
newSubstr: o
|
|
1249
1249
|
}, r, i), r !== je && i(r);
|
|
1250
1250
|
else {
|
|
1251
|
-
var u = e.ha(),
|
|
1252
|
-
u.onmessage = function(
|
|
1253
|
-
clearTimeout(
|
|
1251
|
+
var u = e.ha(), p = Ke(e, r, u, i);
|
|
1252
|
+
u.onmessage = function(b) {
|
|
1253
|
+
clearTimeout(p), i(b.data);
|
|
1254
1254
|
}, u.postMessage(["replace", s, r, o]);
|
|
1255
1255
|
}
|
|
1256
1256
|
return;
|
|
@@ -1260,12 +1260,12 @@ function Po(e, t) {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
function No(e, t) {
|
|
1262
1262
|
e.mb = e.i(function(n) {
|
|
1263
|
-
return n = ve.Boolean(n),
|
|
1263
|
+
return n = ve.Boolean(n), pe(e) ? (this.data = n, this) : n;
|
|
1264
1264
|
}, !0), e.g(t, "Boolean", e.mb, y);
|
|
1265
1265
|
}
|
|
1266
1266
|
function Uo(e, t) {
|
|
1267
1267
|
var n = function(r) {
|
|
1268
|
-
return r = arguments.length ? ve.Number(r) : 0,
|
|
1268
|
+
return r = arguments.length ? ve.Number(r) : 0, pe(e) ? (this.data = r, this) : r;
|
|
1269
1269
|
};
|
|
1270
1270
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, y), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1271
1271
|
e.g(e.aa, t[n], Number[t[n]], We);
|
|
@@ -1304,7 +1304,7 @@ function Uo(e, t) {
|
|
|
1304
1304
|
}
|
|
1305
1305
|
function Bo(e, t) {
|
|
1306
1306
|
var n = function(o, i) {
|
|
1307
|
-
if (!
|
|
1307
|
+
if (!pe(e))
|
|
1308
1308
|
return ve.Date();
|
|
1309
1309
|
var s = [null].concat(Array.from(arguments));
|
|
1310
1310
|
return this.data = new (Function.prototype.bind.apply(ve.Date, s))(), this;
|
|
@@ -1315,15 +1315,15 @@ function Bo(e, t) {
|
|
|
1315
1315
|
return function(i) {
|
|
1316
1316
|
var s = this.data;
|
|
1317
1317
|
s instanceof Date || S(e, e.j, o + " not called on a Date");
|
|
1318
|
-
for (var u = [],
|
|
1319
|
-
u[
|
|
1318
|
+
for (var u = [], p = 0; p < arguments.length; p++)
|
|
1319
|
+
u[p] = e.R(arguments[p]);
|
|
1320
1320
|
return s[o].apply(s, u);
|
|
1321
1321
|
};
|
|
1322
1322
|
}(t[r]), W(e, e.$, t[r], n);
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function Fo(e, t) {
|
|
1325
1325
|
var n = function(r, o) {
|
|
1326
|
-
if (
|
|
1326
|
+
if (pe(e))
|
|
1327
1327
|
var i = this;
|
|
1328
1328
|
else {
|
|
1329
1329
|
if (o === void 0 && H(e, r, e.I))
|
|
@@ -1354,25 +1354,25 @@ function Mo(e, t) {
|
|
|
1354
1354
|
regexp: s
|
|
1355
1355
|
}, s, o), r !== je && (e.g(this, "lastIndex", s.lastIndex), o(i(r)));
|
|
1356
1356
|
else {
|
|
1357
|
-
var u = e.ha(),
|
|
1357
|
+
var u = e.ha(), p = Ke(e, s, u, o), b = this;
|
|
1358
1358
|
u.onmessage = function(x) {
|
|
1359
|
-
clearTimeout(
|
|
1359
|
+
clearTimeout(p), e.g(b, "lastIndex", x.data[1]), o(i(x.data[0]));
|
|
1360
1360
|
}, u.postMessage(["exec", s, s.lastIndex, r]);
|
|
1361
1361
|
}
|
|
1362
1362
|
else
|
|
1363
1363
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(i(r));
|
|
1364
1364
|
}, Ge(e, e.I, "exec", n);
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function Mo(e, t) {
|
|
1367
1367
|
function n(r) {
|
|
1368
1368
|
var o = e.i(function(i) {
|
|
1369
|
-
var s =
|
|
1369
|
+
var s = pe(e) ? this : e.Aa(o);
|
|
1370
1370
|
return $t(e, s, i), s;
|
|
1371
1371
|
}, !0);
|
|
1372
1372
|
return e.g(o, "prototype", e.Aa(e.D), y), e.g(o.h.prototype, "name", r, y), e.g(t, r, o, y), o;
|
|
1373
1373
|
}
|
|
1374
1374
|
e.D = e.i(function(r) {
|
|
1375
|
-
var o =
|
|
1375
|
+
var o = pe(e) ? this : e.Aa(e.D);
|
|
1376
1376
|
return $t(e, o, r), o;
|
|
1377
1377
|
}, !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
1378
|
}
|
|
@@ -1411,7 +1411,7 @@ function H(e, t, n) {
|
|
|
1411
1411
|
return !1;
|
|
1412
1412
|
if (n = n.h.prototype, t === n)
|
|
1413
1413
|
return !0;
|
|
1414
|
-
for (t =
|
|
1414
|
+
for (t = de(e, t); t; ) {
|
|
1415
1415
|
if (t === n)
|
|
1416
1416
|
return !0;
|
|
1417
1417
|
t = t.xa;
|
|
@@ -1565,7 +1565,7 @@ U.R = function(e, t) {
|
|
|
1565
1565
|
if (t.hb.push(e), H(this, e, this.qa)) {
|
|
1566
1566
|
n = [], t.Sa.push(n);
|
|
1567
1567
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1568
|
-
|
|
1568
|
+
pt(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
1569
1569
|
} else
|
|
1570
1570
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1571
1571
|
o = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
@@ -1587,7 +1587,7 @@ function gr(e, t) {
|
|
|
1587
1587
|
n[r] = e.G(t, r);
|
|
1588
1588
|
return n.length = qt(e.G(t, "length")) || 0, n;
|
|
1589
1589
|
}
|
|
1590
|
-
function
|
|
1590
|
+
function de(e, t) {
|
|
1591
1591
|
switch (typeof t) {
|
|
1592
1592
|
case "number":
|
|
1593
1593
|
return e.aa.h.prototype;
|
|
@@ -1614,9 +1614,9 @@ U.G = function(e, t) {
|
|
|
1614
1614
|
do
|
|
1615
1615
|
if (e.h && t in e.h)
|
|
1616
1616
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1617
|
-
while (e =
|
|
1617
|
+
while (e = de(this, e));
|
|
1618
1618
|
};
|
|
1619
|
-
function
|
|
1619
|
+
function pt(e, t, n) {
|
|
1620
1620
|
if (!(t instanceof P))
|
|
1621
1621
|
throw TypeError("Primitive data type has no properties");
|
|
1622
1622
|
if (n = String(n), n === "length" && H(e, t, e.J))
|
|
@@ -1629,7 +1629,7 @@ function dt(e, t, n) {
|
|
|
1629
1629
|
do
|
|
1630
1630
|
if (t.h && n in t.h)
|
|
1631
1631
|
return !0;
|
|
1632
|
-
while (t =
|
|
1632
|
+
while (t = de(e, t));
|
|
1633
1633
|
return !1;
|
|
1634
1634
|
}
|
|
1635
1635
|
U.g = function(e, t, n, r) {
|
|
@@ -1674,7 +1674,7 @@ U.g = function(e, t, n, r) {
|
|
|
1674
1674
|
if (n === Je)
|
|
1675
1675
|
throw ReferenceError("Value not specified");
|
|
1676
1676
|
for (r = e; !(t in r.h); )
|
|
1677
|
-
if (r =
|
|
1677
|
+
if (r = de(this, r), !r) {
|
|
1678
1678
|
r = e;
|
|
1679
1679
|
break;
|
|
1680
1680
|
}
|
|
@@ -1732,7 +1732,7 @@ function rn(e, t) {
|
|
|
1732
1732
|
return n.object.h[t];
|
|
1733
1733
|
n = n.Va;
|
|
1734
1734
|
}
|
|
1735
|
-
if (n === e.N &&
|
|
1735
|
+
if (n === e.N && pt(e, n.object, t))
|
|
1736
1736
|
return e.G(n.object, t);
|
|
1737
1737
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || S(e, e.pb, t + " is not defined");
|
|
1738
1738
|
}
|
|
@@ -1748,7 +1748,7 @@ function yr(e, t, n) {
|
|
|
1748
1748
|
}
|
|
1749
1749
|
r = r.Va;
|
|
1750
1750
|
}
|
|
1751
|
-
if (r === e.N && (!o ||
|
|
1751
|
+
if (r === e.N && (!o || pt(e, r.object, t)))
|
|
1752
1752
|
return e.g(r.object, t, n);
|
|
1753
1753
|
S(e, e.pb, t + " is not defined");
|
|
1754
1754
|
}
|
|
@@ -1785,13 +1785,13 @@ function ze(e, t, n) {
|
|
|
1785
1785
|
if (Array.isArray(u)) {
|
|
1786
1786
|
for (o = 0; o < u.length; o++)
|
|
1787
1787
|
if (u[o] && u[o].constructor === i) {
|
|
1788
|
-
var
|
|
1789
|
-
for (s in
|
|
1790
|
-
r[s] =
|
|
1788
|
+
var p = ze(e, u[o], n);
|
|
1789
|
+
for (s in p)
|
|
1790
|
+
r[s] = p[s];
|
|
1791
1791
|
}
|
|
1792
1792
|
} else if (u.constructor === i)
|
|
1793
|
-
for (s in
|
|
1794
|
-
r[s] =
|
|
1793
|
+
for (s in p = ze(e, u, n), p)
|
|
1794
|
+
r[s] = p[s];
|
|
1795
1795
|
}
|
|
1796
1796
|
}
|
|
1797
1797
|
}
|
|
@@ -1801,7 +1801,7 @@ function ze(e, t, n) {
|
|
|
1801
1801
|
r[s] === !0 ? e.g(n.object, s, void 0, Kn) : e.g(n.object, s, en(e, r[s], n), Kn);
|
|
1802
1802
|
return r;
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1804
|
+
function pe(e) {
|
|
1805
1805
|
return e.o[e.o.length - 1].isConstructor;
|
|
1806
1806
|
}
|
|
1807
1807
|
function on(e, t) {
|
|
@@ -1898,11 +1898,11 @@ function Xn(e, t, n) {
|
|
|
1898
1898
|
s.type = "CallExpression", r = r.scope;
|
|
1899
1899
|
} else {
|
|
1900
1900
|
try {
|
|
1901
|
-
var
|
|
1902
|
-
} catch (
|
|
1903
|
-
S(e, e.T, "Invalid code: " +
|
|
1901
|
+
var p = Re(String(i), "taskCode" + e.ic++);
|
|
1902
|
+
} catch (b) {
|
|
1903
|
+
S(e, e.T, "Invalid code: " + b.message);
|
|
1904
1904
|
}
|
|
1905
|
-
s.type = "EvalProgram_", s.body =
|
|
1905
|
+
s.type = "EvalProgram_", s.body = p.body, r = r.node.arguments[0], dt(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1906
1906
|
}
|
|
1907
1907
|
return t = new Lo(u, o, r, s, t ? n : -1), vr(e, t, n), t.Db;
|
|
1908
1908
|
}
|
|
@@ -1923,17 +1923,17 @@ function Ze(e, t, n) {
|
|
|
1923
1923
|
throw Error("Unexpected call to createGetter");
|
|
1924
1924
|
e.P = !1, n = Array.isArray(n) ? n[0] : n;
|
|
1925
1925
|
var r = e.ya();
|
|
1926
|
-
return r.type = "CallExpression", e = new
|
|
1926
|
+
return r.type = "CallExpression", e = new v(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1927
1927
|
}
|
|
1928
1928
|
function sn(e, t, n, r) {
|
|
1929
1929
|
if (!e.Ka)
|
|
1930
1930
|
throw Error("Unexpected call to createSetter");
|
|
1931
1931
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1932
1932
|
var o = e.ya();
|
|
1933
|
-
return o.type = "CallExpression", e = new
|
|
1933
|
+
return o.type = "CallExpression", e = new v(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1934
1934
|
}
|
|
1935
1935
|
function Lt(e, t) {
|
|
1936
|
-
return t == null ? e.Na : t instanceof P ? t : (e = e.s(
|
|
1936
|
+
return t == null ? e.Na : t instanceof P ? t : (e = e.s(de(e, t)), e.data = t, e);
|
|
1937
1937
|
}
|
|
1938
1938
|
U.Xb = function() {
|
|
1939
1939
|
return this.N;
|
|
@@ -1944,7 +1944,7 @@ U.Yb = function() {
|
|
|
1944
1944
|
U.ec = function(e) {
|
|
1945
1945
|
this.o = e;
|
|
1946
1946
|
};
|
|
1947
|
-
function
|
|
1947
|
+
function v(e, t) {
|
|
1948
1948
|
this.node = e, this.scope = t;
|
|
1949
1949
|
}
|
|
1950
1950
|
function br(e, t, n) {
|
|
@@ -2017,16 +2017,16 @@ h.prototype.stepArrayExpression = function(e, t, n) {
|
|
|
2017
2017
|
var r = t.A || 0;
|
|
2018
2018
|
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
2019
|
if (n[r])
|
|
2020
|
-
return t.A = r, new
|
|
2020
|
+
return t.A = r, new v(n[r], t.scope);
|
|
2021
2021
|
r++;
|
|
2022
2022
|
}
|
|
2023
2023
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
2024
2024
|
};
|
|
2025
2025
|
h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
2026
2026
|
if (!t.ja)
|
|
2027
|
-
return t.ja = !0, t = new
|
|
2027
|
+
return t.ja = !0, t = new v(n.left, t.scope), t.sa = !0, t;
|
|
2028
2028
|
if (!t.Da)
|
|
2029
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = on(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
|
|
2029
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = on(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 v(n.right, t.scope));
|
|
2030
2030
|
if (t.ta)
|
|
2031
2031
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2032
2032
|
else {
|
|
@@ -2078,9 +2078,9 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2078
2078
|
};
|
|
2079
2079
|
h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
2080
2080
|
if (!t.ja)
|
|
2081
|
-
return t.ja = !0, new
|
|
2081
|
+
return t.ja = !0, new v(n.left, t.scope);
|
|
2082
2082
|
if (!t.Da)
|
|
2083
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2083
|
+
return t.Da = !0, t.ma = t.value, new v(n.right, t.scope);
|
|
2084
2084
|
e.pop();
|
|
2085
2085
|
var r = t.ma;
|
|
2086
2086
|
switch (t = t.value, n.operator) {
|
|
@@ -2142,7 +2142,7 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2142
2142
|
n = r >>> t;
|
|
2143
2143
|
break;
|
|
2144
2144
|
case "in":
|
|
2145
|
-
t instanceof P || S(this, this.j, "'in' expects an object, not '" + t + "'"), n =
|
|
2145
|
+
t instanceof P || S(this, this.j, "'in' expects an object, not '" + t + "'"), n = pt(this, t, r);
|
|
2146
2146
|
break;
|
|
2147
2147
|
case "instanceof":
|
|
2148
2148
|
H(this, t, this.O) || S(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof P ? H(this, r, t) : !1;
|
|
@@ -2155,7 +2155,7 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2155
2155
|
h.prototype.stepBlockStatement = function(e, t, n) {
|
|
2156
2156
|
var r = t.A || 0;
|
|
2157
2157
|
if (n = n.body[r])
|
|
2158
|
-
return t.A = r + 1, new
|
|
2158
|
+
return t.A = r + 1, new v(n, t.scope);
|
|
2159
2159
|
e.pop();
|
|
2160
2160
|
};
|
|
2161
2161
|
h.prototype.stepBreakStatement = function(e, t, n) {
|
|
@@ -2165,7 +2165,7 @@ h.prototype.Hb = 0;
|
|
|
2165
2165
|
h.prototype.stepCallExpression = function(e, t, n) {
|
|
2166
2166
|
if (!t.ia) {
|
|
2167
2167
|
t.ia = 1;
|
|
2168
|
-
var r = new
|
|
2168
|
+
var r = new v(n.callee, t.scope);
|
|
2169
2169
|
return r.sa = !0, r;
|
|
2170
2170
|
}
|
|
2171
2171
|
if (t.ia === 1) {
|
|
@@ -2180,7 +2180,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2180
2180
|
}
|
|
2181
2181
|
if (o = t.U, !t.Qa) {
|
|
2182
2182
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2183
|
-
return new
|
|
2183
|
+
return new v(n.arguments[t.A++], t.scope);
|
|
2184
2184
|
if (n.type === "NewExpression") {
|
|
2185
2185
|
if (o instanceof P && !o.Ab || S(this, this.j, J(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2186
2186
|
t.B = Pe(this);
|
|
@@ -2200,7 +2200,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2200
2200
|
this.g(r, o, t.F[o]);
|
|
2201
2201
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2202
2202
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2203
|
-
return n.S || (t.B = Lt(this, t.B)), this.g(n.object, "this", t.B, zt), t.value = void 0, new
|
|
2203
|
+
return n.S || (t.B = Lt(this, t.B)), this.g(n.object, "this", t.B, zt), t.value = void 0, new v(e.body, n);
|
|
2204
2204
|
}
|
|
2205
2205
|
if (o.eval)
|
|
2206
2206
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2211,7 +2211,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2211
2211
|
} catch (u) {
|
|
2212
2212
|
S(this, this.T, "Invalid code: " + u.message);
|
|
2213
2213
|
}
|
|
2214
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body,
|
|
2214
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, dt(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 v(o, n);
|
|
2215
2215
|
}
|
|
2216
2216
|
else if (o.Ta)
|
|
2217
2217
|
t.scope.S || (t.B = Lt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
@@ -2227,12 +2227,12 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2227
2227
|
h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
2228
2228
|
var r = t.na || 0;
|
|
2229
2229
|
if (r === 0)
|
|
2230
|
-
return t.na = 1, new
|
|
2230
|
+
return t.na = 1, new v(n.test, t.scope);
|
|
2231
2231
|
if (r === 1) {
|
|
2232
2232
|
if (t.na = 2, (r = !!t.value) && n.da)
|
|
2233
|
-
return new
|
|
2233
|
+
return new v(n.da, t.scope);
|
|
2234
2234
|
if (!r && n.alternate)
|
|
2235
|
-
return new
|
|
2235
|
+
return new v(n.alternate, t.scope);
|
|
2236
2236
|
this.value = void 0;
|
|
2237
2237
|
}
|
|
2238
2238
|
e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
@@ -2245,11 +2245,11 @@ h.prototype.stepDebuggerStatement = function(e) {
|
|
|
2245
2245
|
};
|
|
2246
2246
|
h.prototype.stepDoWhileStatement = function(e, t, n) {
|
|
2247
2247
|
if (n.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2248
|
-
return t.ga = !0, new
|
|
2248
|
+
return t.ga = !0, new v(n.test, t.scope);
|
|
2249
2249
|
if (!t.value)
|
|
2250
2250
|
e.pop();
|
|
2251
2251
|
else if (n.body)
|
|
2252
|
-
return t.ga = !1, t.W = !0, new
|
|
2252
|
+
return t.ga = !1, t.W = !0, new v(n.body, t.scope);
|
|
2253
2253
|
};
|
|
2254
2254
|
h.prototype.stepEmptyStatement = function(e) {
|
|
2255
2255
|
e.pop();
|
|
@@ -2257,19 +2257,19 @@ h.prototype.stepEmptyStatement = function(e) {
|
|
|
2257
2257
|
h.prototype.stepEvalProgram_ = function(e, t, n) {
|
|
2258
2258
|
var r = t.A || 0;
|
|
2259
2259
|
if (n = n.body[r])
|
|
2260
|
-
return t.A = r + 1, new
|
|
2260
|
+
return t.A = r + 1, new v(n, t.scope);
|
|
2261
2261
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2262
2262
|
};
|
|
2263
2263
|
h.prototype.stepExpressionStatement = function(e, t, n) {
|
|
2264
2264
|
if (!t.ka)
|
|
2265
|
-
return this.value = void 0, t.ka = !0, new
|
|
2265
|
+
return this.value = void 0, t.ka = !0, new v(n.la, t.scope);
|
|
2266
2266
|
e.pop(), this.value = t.value;
|
|
2267
2267
|
};
|
|
2268
2268
|
h.prototype.stepForInStatement = function(e, t, n) {
|
|
2269
2269
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2270
|
-
return t.scope.S && S(this, this.T, "for-in loop variable declaration may not have an initializer"), new
|
|
2270
|
+
return t.scope.S && S(this, this.T, "for-in loop variable declaration may not have an initializer"), new v(n.left, t.scope);
|
|
2271
2271
|
if (!t.Ca)
|
|
2272
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2272
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new v(n.right, t.scope);
|
|
2273
2273
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2274
2274
|
e:
|
|
2275
2275
|
for (; ; ) {
|
|
@@ -2290,7 +2290,7 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2290
2290
|
break e;
|
|
2291
2291
|
}
|
|
2292
2292
|
}
|
|
2293
|
-
if (t.u =
|
|
2293
|
+
if (t.u = de(this, t.u), t.wa = null, t.u === null) {
|
|
2294
2294
|
e.pop();
|
|
2295
2295
|
return;
|
|
2296
2296
|
}
|
|
@@ -2299,31 +2299,31 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2299
2299
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2300
2300
|
t.pa = [Ne, e.fa[0].id.name];
|
|
2301
2301
|
else
|
|
2302
|
-
return t.pa = null, t = new
|
|
2302
|
+
return t.pa = null, t = new v(e, t.scope), t.sa = !0, t;
|
|
2303
2303
|
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = an(this, t.pa, e)))
|
|
2304
2304
|
return sn(this, r, t.pa, e);
|
|
2305
2305
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2306
|
-
return new
|
|
2306
|
+
return new v(n.body, t.scope);
|
|
2307
2307
|
};
|
|
2308
2308
|
h.prototype.stepForStatement = function(e, t, n) {
|
|
2309
2309
|
switch (t.na) {
|
|
2310
2310
|
default:
|
|
2311
2311
|
if (t.na = 1, n.ua)
|
|
2312
|
-
return new
|
|
2312
|
+
return new v(n.ua, t.scope);
|
|
2313
2313
|
break;
|
|
2314
2314
|
case 1:
|
|
2315
2315
|
if (t.na = 2, n.test)
|
|
2316
|
-
return new
|
|
2316
|
+
return new v(n.test, t.scope);
|
|
2317
2317
|
break;
|
|
2318
2318
|
case 2:
|
|
2319
2319
|
if (t.na = 3, n.test && !t.value)
|
|
2320
2320
|
e.pop();
|
|
2321
2321
|
else
|
|
2322
|
-
return t.W = !0, new
|
|
2322
|
+
return t.W = !0, new v(n.body, t.scope);
|
|
2323
2323
|
break;
|
|
2324
2324
|
case 3:
|
|
2325
2325
|
if (t.na = 1, n.update)
|
|
2326
|
-
return new
|
|
2326
|
+
return new v(n.update, t.scope);
|
|
2327
2327
|
}
|
|
2328
2328
|
};
|
|
2329
2329
|
h.prototype.stepFunctionDeclaration = function(e) {
|
|
@@ -2343,7 +2343,7 @@ h.prototype.stepIdentifier = function(e, t, n) {
|
|
|
2343
2343
|
};
|
|
2344
2344
|
h.prototype.stepIfStatement = h.prototype.stepConditionalExpression;
|
|
2345
2345
|
h.prototype.stepLabeledStatement = function(e, t, n) {
|
|
2346
|
-
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new
|
|
2346
|
+
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new v(n.body, t.scope), t.labels = e, t;
|
|
2347
2347
|
};
|
|
2348
2348
|
h.prototype.stepLiteral = function(e, t, n) {
|
|
2349
2349
|
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), Zt(this, n, t), t = n), e[e.length - 1].value = t;
|
|
@@ -2352,22 +2352,22 @@ h.prototype.stepLogicalExpression = function(e, t, n) {
|
|
|
2352
2352
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
2353
2353
|
throw SyntaxError("Unknown logical operator: " + n.operator);
|
|
2354
2354
|
if (!t.ja)
|
|
2355
|
-
return t.ja = !0, new
|
|
2355
|
+
return t.ja = !0, new v(n.left, t.scope);
|
|
2356
2356
|
if (t.Da)
|
|
2357
2357
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2358
2358
|
else if (n.operator === "&&" && !t.value || n.operator === "||" && t.value)
|
|
2359
2359
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2360
2360
|
else
|
|
2361
|
-
return t.Da = !0, new
|
|
2361
|
+
return t.Da = !0, new v(n.right, t.scope);
|
|
2362
2362
|
};
|
|
2363
2363
|
h.prototype.stepMemberExpression = function(e, t, n) {
|
|
2364
2364
|
if (!t.Ca)
|
|
2365
|
-
return t.Ca = !0, new
|
|
2365
|
+
return t.Ca = !0, new v(n.object, t.scope);
|
|
2366
2366
|
if (n.bb)
|
|
2367
2367
|
if (t.Vb)
|
|
2368
2368
|
n = t.value;
|
|
2369
2369
|
else
|
|
2370
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2370
|
+
return t.u = t.value, t.Vb = !0, new v(n.Wa, t.scope);
|
|
2371
2371
|
else
|
|
2372
2372
|
t.u = t.value, n = n.Wa.name;
|
|
2373
2373
|
if (e.pop(), t.sa)
|
|
@@ -2394,7 +2394,7 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2394
2394
|
i = s.value;
|
|
2395
2395
|
else
|
|
2396
2396
|
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2397
|
-
return t.Pa = i, new
|
|
2397
|
+
return t.Pa = i, new v(o.value, t.scope);
|
|
2398
2398
|
}
|
|
2399
2399
|
for (s in t.Ja)
|
|
2400
2400
|
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, Je, {
|
|
@@ -2407,35 +2407,35 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2407
2407
|
};
|
|
2408
2408
|
h.prototype.stepProgram = function(e, t, n) {
|
|
2409
2409
|
if (e = n.body.shift())
|
|
2410
|
-
return t.done = !1, new
|
|
2410
|
+
return t.done = !1, new v(e, t.scope);
|
|
2411
2411
|
t.done = !0;
|
|
2412
2412
|
};
|
|
2413
2413
|
h.prototype.stepReturnStatement = function(e, t, n) {
|
|
2414
2414
|
if (n.K && !t.ka)
|
|
2415
|
-
return t.ka = !0, new
|
|
2415
|
+
return t.ka = !0, new v(n.K, t.scope);
|
|
2416
2416
|
qe(this, 3, t.value);
|
|
2417
2417
|
};
|
|
2418
2418
|
h.prototype.stepSequenceExpression = function(e, t, n) {
|
|
2419
2419
|
var r = t.A || 0;
|
|
2420
2420
|
if (n = n.xb[r])
|
|
2421
|
-
return t.A = r + 1, new
|
|
2421
|
+
return t.A = r + 1, new v(n, t.scope);
|
|
2422
2422
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2423
2423
|
};
|
|
2424
2424
|
h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
2425
2425
|
if (!t.ga)
|
|
2426
|
-
return t.ga = 1, new
|
|
2426
|
+
return t.ga = 1, new v(n.Qb, t.scope);
|
|
2427
2427
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2428
2428
|
var r = t.gb || 0, o = n.tb[r];
|
|
2429
2429
|
if (t.Ha || !o || o.test)
|
|
2430
2430
|
if (o || t.Ha || t.cb === -1)
|
|
2431
2431
|
if (o) {
|
|
2432
2432
|
if (!t.Ha && !t.Fb && o.test)
|
|
2433
|
-
return t.Fb = !0, new
|
|
2433
|
+
return t.Fb = !0, new v(o.test, t.scope);
|
|
2434
2434
|
if (t.Ha || t.value === t.hc) {
|
|
2435
2435
|
t.Ha = !0;
|
|
2436
2436
|
var i = t.A || 0;
|
|
2437
2437
|
if (o.da[i])
|
|
2438
|
-
return t.Zb = !0, t.A = i + 1, new
|
|
2438
|
+
return t.Zb = !0, t.A = i + 1, new v(o.da[i], t.scope);
|
|
2439
2439
|
}
|
|
2440
2440
|
t.Fb = !1, t.A = 0, t.gb = r + 1;
|
|
2441
2441
|
} else {
|
|
@@ -2455,20 +2455,20 @@ h.prototype.stepThrowStatement = function(e, t, n) {
|
|
|
2455
2455
|
if (t.ka)
|
|
2456
2456
|
S(this, t.value);
|
|
2457
2457
|
else
|
|
2458
|
-
return t.ka = !0, new
|
|
2458
|
+
return t.ka = !0, new v(n.K, t.scope);
|
|
2459
2459
|
};
|
|
2460
2460
|
h.prototype.stepTryStatement = function(e, t, n) {
|
|
2461
2461
|
if (!t.Rb)
|
|
2462
|
-
return t.Rb = !0, new
|
|
2462
|
+
return t.Rb = !0, new v(n.block, t.scope);
|
|
2463
2463
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2464
|
-
return t.Tb = !0, e = nn(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new
|
|
2464
|
+
return t.Tb = !0, e = nn(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new v(n.Ea.body, e);
|
|
2465
2465
|
if (!t.Sb && n.fb)
|
|
2466
|
-
return t.Sb = !0, new
|
|
2466
|
+
return t.Sb = !0, new v(n.fb, t.scope);
|
|
2467
2467
|
e.pop(), t.ea && qe(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2468
2468
|
};
|
|
2469
2469
|
h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
2470
2470
|
if (!t.ka)
|
|
2471
|
-
return t.ka = !0, e = new
|
|
2471
|
+
return t.ka = !0, e = new v(n.K, t.scope), e.sa = n.operator === "delete", e;
|
|
2472
2472
|
e.pop();
|
|
2473
2473
|
var r = t.value;
|
|
2474
2474
|
switch (n.operator) {
|
|
@@ -2509,7 +2509,7 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2509
2509
|
};
|
|
2510
2510
|
h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
2511
2511
|
if (!t.ja)
|
|
2512
|
-
return t.ja = !0, e = new
|
|
2512
|
+
return t.ja = !0, e = new v(n.K, t.scope), e.sa = !0, e;
|
|
2513
2513
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2514
2514
|
var r = on(this, t.Ga);
|
|
2515
2515
|
if (t.ma = r, this.P)
|
|
@@ -2534,13 +2534,13 @@ h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2534
2534
|
var r = t.A || 0, o = n[r];
|
|
2535
2535
|
for (t.Bb && o && (yr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2536
2536
|
if (o.ua)
|
|
2537
|
-
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new
|
|
2537
|
+
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new v(o.ua, t.scope);
|
|
2538
2538
|
o = n[++r];
|
|
2539
2539
|
}
|
|
2540
2540
|
e.pop();
|
|
2541
2541
|
};
|
|
2542
2542
|
h.prototype.stepWithStatement = function(e, t, n) {
|
|
2543
|
-
return t.Ca ? (e.pop(), e = nn(this, t.scope, t.value), new
|
|
2543
|
+
return t.Ca ? (e.pop(), e = nn(this, t.scope, t.value), new v(n.body, e)) : (t.Ca = !0, new v(n.object, t.scope));
|
|
2544
2544
|
};
|
|
2545
2545
|
h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
|
|
2546
2546
|
ve.Interpreter = h;
|
|
@@ -2584,12 +2584,12 @@ const Wo = (e) => e.split(`
|
|
|
2584
2584
|
const u = {
|
|
2585
2585
|
...r,
|
|
2586
2586
|
...o
|
|
2587
|
-
},
|
|
2587
|
+
}, p = dr({
|
|
2588
2588
|
builder: e,
|
|
2589
2589
|
context: t,
|
|
2590
2590
|
event: n,
|
|
2591
2591
|
state: u
|
|
2592
|
-
}),
|
|
2592
|
+
}), b = p.map(([k]) => {
|
|
2593
2593
|
const w = Jn(k);
|
|
2594
2594
|
return `var ${k} = ${w} === undefined ? undefined : JSON.parse(${w});`;
|
|
2595
2595
|
}).join(`
|
|
@@ -2600,7 +2600,7 @@ const Wo = (e) => e.split(`
|
|
|
2600
2600
|
}
|
|
2601
2601
|
const m = `
|
|
2602
2602
|
function theFunction() {
|
|
2603
|
-
${
|
|
2603
|
+
${b}
|
|
2604
2604
|
|
|
2605
2605
|
${x}
|
|
2606
2606
|
}
|
|
@@ -2609,7 +2609,7 @@ theFunction();
|
|
|
2609
2609
|
const B = hr(u, k, w);
|
|
2610
2610
|
i == null || i(B);
|
|
2611
2611
|
}, R = function(k, w) {
|
|
2612
|
-
|
|
2612
|
+
p.forEach(([B, N]) => {
|
|
2613
2613
|
const C = JSON.stringify(N);
|
|
2614
2614
|
k.setProperty(w, Jn(B), C);
|
|
2615
2615
|
}), k.setProperty(w, "setRootState", k.createNativeFunction(j));
|
|
@@ -2669,7 +2669,7 @@ function cn({
|
|
|
2669
2669
|
X.warn("Skipping evaluation of empty code block.");
|
|
2670
2670
|
return;
|
|
2671
2671
|
}
|
|
2672
|
-
const
|
|
2672
|
+
const p = {
|
|
2673
2673
|
code: Co(e, {
|
|
2674
2674
|
isExpression: s
|
|
2675
2675
|
}),
|
|
@@ -2681,19 +2681,19 @@ function cn({
|
|
|
2681
2681
|
localState: n
|
|
2682
2682
|
};
|
|
2683
2683
|
if (u) {
|
|
2684
|
-
const
|
|
2684
|
+
const b = lt.getCacheKey(p), x = lt.getCachedValue(b);
|
|
2685
2685
|
if (x)
|
|
2686
2686
|
return x.value;
|
|
2687
2687
|
}
|
|
2688
2688
|
try {
|
|
2689
|
-
const
|
|
2689
|
+
const b = Go(p);
|
|
2690
2690
|
if (u) {
|
|
2691
|
-
const x = lt.getCacheKey(
|
|
2692
|
-
lt.setCachedValue(x,
|
|
2691
|
+
const x = lt.getCacheKey(p);
|
|
2692
|
+
lt.setCachedValue(x, b);
|
|
2693
2693
|
}
|
|
2694
|
-
return
|
|
2695
|
-
} catch (
|
|
2696
|
-
X.error("Failed code evaluation: " +
|
|
2694
|
+
return b;
|
|
2695
|
+
} catch (b) {
|
|
2696
|
+
X.error("Failed code evaluation: " + b.message, {
|
|
2697
2697
|
code: e
|
|
2698
2698
|
});
|
|
2699
2699
|
return;
|
|
@@ -2719,15 +2719,15 @@ const Xo = ({
|
|
|
2719
2719
|
}
|
|
2720
2720
|
};
|
|
2721
2721
|
for (const u in e.bindings) {
|
|
2722
|
-
const
|
|
2723
|
-
code:
|
|
2722
|
+
const p = e.bindings[u], b = cn({
|
|
2723
|
+
code: p,
|
|
2724
2724
|
localState: n,
|
|
2725
2725
|
rootState: r,
|
|
2726
2726
|
rootSetState: o,
|
|
2727
2727
|
context: t,
|
|
2728
2728
|
enableCache: !0
|
|
2729
2729
|
});
|
|
2730
|
-
hr(s, u,
|
|
2730
|
+
hr(s, u, b);
|
|
2731
2731
|
}
|
|
2732
2732
|
return s;
|
|
2733
2733
|
};
|
|
@@ -2833,15 +2833,15 @@ const Zo = ({
|
|
|
2833
2833
|
if (!Array.isArray(o))
|
|
2834
2834
|
return;
|
|
2835
2835
|
const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
|
|
2836
|
-
return o.map((
|
|
2836
|
+
return o.map((p, b) => ({
|
|
2837
2837
|
context: {
|
|
2838
2838
|
...t,
|
|
2839
2839
|
localState: {
|
|
2840
2840
|
...t.localState,
|
|
2841
|
-
$index:
|
|
2842
|
-
$item:
|
|
2843
|
-
[s]:
|
|
2844
|
-
[`$${s}Index`]:
|
|
2841
|
+
$index: b,
|
|
2842
|
+
$item: p,
|
|
2843
|
+
[s]: p,
|
|
2844
|
+
[`$${s}Index`]: b
|
|
2845
2845
|
}
|
|
2846
2846
|
},
|
|
2847
2847
|
block: r
|
|
@@ -2890,7 +2890,13 @@ const Zo = ({
|
|
|
2890
2890
|
}, n;
|
|
2891
2891
|
};
|
|
2892
2892
|
function mt(e) {
|
|
2893
|
-
return /* @__PURE__ */ A(
|
|
2893
|
+
return /* @__PURE__ */ A(
|
|
2894
|
+
"style",
|
|
2895
|
+
{
|
|
2896
|
+
dangerouslySetInnerHTML: { __html: e.styles },
|
|
2897
|
+
"data-id": e.id
|
|
2898
|
+
}
|
|
2899
|
+
);
|
|
2894
2900
|
}
|
|
2895
2901
|
function ei(e) {
|
|
2896
2902
|
const t = function() {
|
|
@@ -2914,15 +2920,15 @@ function ei(e) {
|
|
|
2914
2920
|
shouldEvaluateBindings: !0
|
|
2915
2921
|
}), i = o.responsiveStyles, s = e.context.content, u = kr(
|
|
2916
2922
|
((w = s == null ? void 0 : s.meta) == null ? void 0 : w.breakpoints) || {}
|
|
2917
|
-
),
|
|
2923
|
+
), p = i == null ? void 0 : i.large, b = i == null ? void 0 : i.medium, x = i == null ? void 0 : i.small, m = o.id;
|
|
2918
2924
|
if (!m)
|
|
2919
2925
|
return "";
|
|
2920
|
-
const j =
|
|
2926
|
+
const j = p ? _t({
|
|
2921
2927
|
className: m,
|
|
2922
|
-
styles:
|
|
2923
|
-
}) : "", R =
|
|
2928
|
+
styles: p
|
|
2929
|
+
}) : "", R = b ? _t({
|
|
2924
2930
|
className: m,
|
|
2925
|
-
styles:
|
|
2931
|
+
styles: b,
|
|
2926
2932
|
mediaQuery: zn(
|
|
2927
2933
|
"medium",
|
|
2928
2934
|
u
|
|
@@ -2937,7 +2943,7 @@ function ei(e) {
|
|
|
2937
2943
|
}) : "";
|
|
2938
2944
|
return [j, R, k].join(" ");
|
|
2939
2945
|
};
|
|
2940
|
-
return /* @__PURE__ */ A(Z, { children: n() && t() ? /* @__PURE__ */ A(Z, { children: /* @__PURE__ */ A(mt, { styles: n() }) }) : null });
|
|
2946
|
+
return /* @__PURE__ */ A(Z, { children: n() && t() ? /* @__PURE__ */ A(Z, { children: /* @__PURE__ */ A(mt, { id: "builderio-block", styles: n() }) }) : null });
|
|
2941
2947
|
}
|
|
2942
2948
|
function ti(e) {
|
|
2943
2949
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -3073,7 +3079,7 @@ function li(e) {
|
|
|
3073
3079
|
);
|
|
3074
3080
|
}
|
|
3075
3081
|
function gt(e) {
|
|
3076
|
-
var
|
|
3082
|
+
var p, b, x;
|
|
3077
3083
|
const t = function() {
|
|
3078
3084
|
return Zo({
|
|
3079
3085
|
block: e.block,
|
|
@@ -3132,7 +3138,7 @@ function gt(e) {
|
|
|
3132
3138
|
};
|
|
3133
3139
|
return /* @__PURE__ */ A(Z, { children: i() ? /* @__PURE__ */ xe(Z, { children: [
|
|
3134
3140
|
/* @__PURE__ */ A(ei, { block: e.block, context: e.context }),
|
|
3135
|
-
(
|
|
3141
|
+
(p = t()) != null && p.noWrap ? /* @__PURE__ */ A(Z, { children: /* @__PURE__ */ A(
|
|
3136
3142
|
qn,
|
|
3137
3143
|
{
|
|
3138
3144
|
componentRef: u().componentRef,
|
|
@@ -3176,7 +3182,7 @@ function gt(e) {
|
|
|
3176
3182
|
isInteractive: u().isInteractive
|
|
3177
3183
|
}
|
|
3178
3184
|
),
|
|
3179
|
-
(
|
|
3185
|
+
(b = s()) == null ? void 0 : b.map((m) => /* @__PURE__ */ A(
|
|
3180
3186
|
gt,
|
|
3181
3187
|
{
|
|
3182
3188
|
block: m,
|
|
@@ -3233,11 +3239,11 @@ function ci(e) {
|
|
|
3233
3239
|
desktopStyle: B
|
|
3234
3240
|
}) {
|
|
3235
3241
|
return r === "never" ? B : w;
|
|
3236
|
-
},
|
|
3242
|
+
}, p = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", b = function() {
|
|
3237
3243
|
return {
|
|
3238
|
-
"--flex-dir":
|
|
3244
|
+
"--flex-dir": p,
|
|
3239
3245
|
"--flex-dir-tablet": s({
|
|
3240
|
-
stackedStyle:
|
|
3246
|
+
stackedStyle: p,
|
|
3241
3247
|
desktopStyle: "row"
|
|
3242
3248
|
})
|
|
3243
3249
|
};
|
|
@@ -3304,10 +3310,10 @@ function ci(e) {
|
|
|
3304
3310
|
/* @__PURE__ */ xe(
|
|
3305
3311
|
"div",
|
|
3306
3312
|
{
|
|
3307
|
-
className: `builder-columns ${e.builderBlock.id}-breakpoints div-
|
|
3308
|
-
style:
|
|
3313
|
+
className: `builder-columns ${e.builderBlock.id}-breakpoints div-664216e4`,
|
|
3314
|
+
style: b(),
|
|
3309
3315
|
children: [
|
|
3310
|
-
/* @__PURE__ */ A(mt, { styles: j() }),
|
|
3316
|
+
/* @__PURE__ */ A(mt, { id: "builderio-columns", styles: j() }),
|
|
3311
3317
|
(R = e.columns) == null ? void 0 : R.map((k, w) => /* @__PURE__ */ A(
|
|
3312
3318
|
ao,
|
|
3313
3319
|
{
|
|
@@ -3340,7 +3346,7 @@ function ci(e) {
|
|
|
3340
3346
|
]
|
|
3341
3347
|
}
|
|
3342
3348
|
),
|
|
3343
|
-
/* @__PURE__ */ A("style", { children: `.div-
|
|
3349
|
+
/* @__PURE__ */ A("style", { children: `.div-664216e4 {
|
|
3344
3350
|
display: flex;
|
|
3345
3351
|
line-height: normal;
|
|
3346
3352
|
}` })
|
|
@@ -3376,7 +3382,7 @@ function Ya(e) {
|
|
|
3376
3382
|
}
|
|
3377
3383
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [fi(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3378
3384
|
}
|
|
3379
|
-
const
|
|
3385
|
+
const di = (e) => {
|
|
3380
3386
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3381
3387
|
return e;
|
|
3382
3388
|
const t = e.split(".");
|
|
@@ -3392,13 +3398,13 @@ const pi = (e) => {
|
|
|
3392
3398
|
X.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3393
3399
|
return;
|
|
3394
3400
|
}
|
|
3395
|
-
}, Er = async (e) => Cr(e),
|
|
3401
|
+
}, Er = async (e) => Cr(e), pi = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(oe).join("; "), hi = [["secure", ""], ["SameSite", "None"]], mi = ({
|
|
3396
3402
|
name: e,
|
|
3397
3403
|
value: t,
|
|
3398
3404
|
expires: n
|
|
3399
3405
|
}) => {
|
|
3400
|
-
const o = (G() ? location.protocol === "https:" : !0) ? hi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain",
|
|
3401
|
-
return
|
|
3406
|
+
const o = (G() ? location.protocol === "https:" : !0) ? hi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", di(window.location.hostname)], ...o];
|
|
3407
|
+
return pi(s);
|
|
3402
3408
|
}, Ir = async ({
|
|
3403
3409
|
name: e,
|
|
3404
3410
|
value: t,
|
|
@@ -3723,7 +3729,7 @@ const pi = (e) => {
|
|
|
3723
3729
|
});
|
|
3724
3730
|
}
|
|
3725
3731
|
const n = e.get("columns");
|
|
3726
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((u,
|
|
3732
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((u, p) => u + p.get("width"), 0) !== 100) && t();
|
|
3727
3733
|
}
|
|
3728
3734
|
}, {
|
|
3729
3735
|
name: "space",
|
|
@@ -3772,15 +3778,15 @@ const pi = (e) => {
|
|
|
3772
3778
|
onChange: (e) => {
|
|
3773
3779
|
e.delete("srcset"), e.delete("noWebp");
|
|
3774
3780
|
function n(s, u = 6e4) {
|
|
3775
|
-
return new Promise((
|
|
3781
|
+
return new Promise((p, b) => {
|
|
3776
3782
|
const x = document.createElement("img");
|
|
3777
3783
|
let m = !1;
|
|
3778
3784
|
x.onload = () => {
|
|
3779
|
-
m = !0,
|
|
3785
|
+
m = !0, p(x);
|
|
3780
3786
|
}, x.addEventListener("error", (j) => {
|
|
3781
|
-
console.warn("Image load failed", j.error),
|
|
3787
|
+
console.warn("Image load failed", j.error), b(j.error);
|
|
3782
3788
|
}), x.src = s, setTimeout(() => {
|
|
3783
|
-
m ||
|
|
3789
|
+
m || b(new Error("Image load timed out"));
|
|
3784
3790
|
}, u);
|
|
3785
3791
|
});
|
|
3786
3792
|
}
|
|
@@ -4039,7 +4045,7 @@ const Ni = {
|
|
|
4039
4045
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4040
4046
|
hideFromUI: !0
|
|
4041
4047
|
}]
|
|
4042
|
-
}, Bi = ["text/javascript", "application/javascript", "application/ecmascript"], Ja = (e) => Bi.includes(e.type),
|
|
4048
|
+
}, Bi = ["text/javascript", "application/javascript", "application/ecmascript"], Ja = (e) => Bi.includes(e.type), Fi = {
|
|
4043
4049
|
// friendlyName?
|
|
4044
4050
|
name: "Raw:Img",
|
|
4045
4051
|
hideFromInsertMenu: !0,
|
|
@@ -4053,7 +4059,7 @@ const Ni = {
|
|
|
4053
4059
|
}],
|
|
4054
4060
|
noWrap: !0,
|
|
4055
4061
|
static: !0
|
|
4056
|
-
},
|
|
4062
|
+
}, Mi = {
|
|
4057
4063
|
name: "Video",
|
|
4058
4064
|
canHaveChildren: !0,
|
|
4059
4065
|
defaultStyles: {
|
|
@@ -4142,10 +4148,10 @@ const Ni = {
|
|
|
4142
4148
|
...Ui
|
|
4143
4149
|
}, {
|
|
4144
4150
|
component: co,
|
|
4145
|
-
...
|
|
4151
|
+
...Fi
|
|
4146
4152
|
}, {
|
|
4147
4153
|
component: uo,
|
|
4148
|
-
...
|
|
4154
|
+
...Mi
|
|
4149
4155
|
}], Qn = () => [{
|
|
4150
4156
|
component: fo,
|
|
4151
4157
|
...ki
|
|
@@ -4299,7 +4305,7 @@ function Xt(e) {
|
|
|
4299
4305
|
"script",
|
|
4300
4306
|
{
|
|
4301
4307
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
4302
|
-
id: e.id
|
|
4308
|
+
"data-id": e.id
|
|
4303
4309
|
}
|
|
4304
4310
|
);
|
|
4305
4311
|
}
|
|
@@ -4357,7 +4363,7 @@ const ea = "v3", er = "builder.", ta = "options.", Nr = (e) => {
|
|
|
4357
4363
|
return {};
|
|
4358
4364
|
const e = new URLSearchParams(window.location.search);
|
|
4359
4365
|
return Nr(e);
|
|
4360
|
-
}, tr = (e) => typeof e == "number" && !isNaN(e) && e >= 0,
|
|
4366
|
+
}, tr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, dn = (e) => {
|
|
4361
4367
|
const {
|
|
4362
4368
|
limit: t = 30,
|
|
4363
4369
|
userAttributes: n,
|
|
@@ -4366,8 +4372,8 @@ const ea = "v3", er = "builder.", ta = "options.", Nr = (e) => {
|
|
|
4366
4372
|
apiKey: i,
|
|
4367
4373
|
enrich: s,
|
|
4368
4374
|
locale: u,
|
|
4369
|
-
apiVersion:
|
|
4370
|
-
fields:
|
|
4375
|
+
apiVersion: p = ea,
|
|
4376
|
+
fields: b,
|
|
4371
4377
|
omit: x,
|
|
4372
4378
|
offset: m,
|
|
4373
4379
|
cacheSeconds: j,
|
|
@@ -4377,10 +4383,10 @@ const ea = "v3", er = "builder.", ta = "options.", Nr = (e) => {
|
|
|
4377
4383
|
} = e;
|
|
4378
4384
|
if (!i)
|
|
4379
4385
|
throw new Error("Missing API key");
|
|
4380
|
-
if (!["v3"].includes(
|
|
4381
|
-
throw new Error(`Invalid apiVersion: expected 'v3', received '${
|
|
4382
|
-
const B = t !== 1, N = new URL(`https://cdn.builder.io/api/${
|
|
4383
|
-
if (N.searchParams.set("apiKey", i), N.searchParams.set("limit", String(t)), N.searchParams.set("noTraverse", String(B)), N.searchParams.set("includeRefs", String(!0)), u && N.searchParams.set("locale", u), s && N.searchParams.set("enrich", String(s)), N.searchParams.set("omit", x || "meta.componentsUsed"),
|
|
4386
|
+
if (!["v3"].includes(p))
|
|
4387
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);
|
|
4388
|
+
const B = t !== 1, N = new URL(`https://cdn.builder.io/api/${p}/content/${o}`);
|
|
4389
|
+
if (N.searchParams.set("apiKey", i), N.searchParams.set("limit", String(t)), N.searchParams.set("noTraverse", String(B)), N.searchParams.set("includeRefs", String(!0)), u && N.searchParams.set("locale", u), s && N.searchParams.set("enrich", String(s)), N.searchParams.set("omit", x || "meta.componentsUsed"), b && N.searchParams.set("fields", b), Number.isFinite(m) && m > -1 && N.searchParams.set("offset", String(Math.floor(m))), typeof w == "boolean" && N.searchParams.set("includeUnpublished", String(w)), j && tr(j) && N.searchParams.set("cacheSeconds", String(j)), R && tr(R) && N.searchParams.set("staleCacheSeconds", String(R)), k) {
|
|
4384
4390
|
const $ = ut({
|
|
4385
4391
|
sort: k
|
|
4386
4392
|
});
|
|
@@ -4410,9 +4416,9 @@ async function Ur(e) {
|
|
|
4410
4416
|
return t && t[0] || null;
|
|
4411
4417
|
}
|
|
4412
4418
|
const oa = async (e) => {
|
|
4413
|
-
const t =
|
|
4419
|
+
const t = dn(e);
|
|
4414
4420
|
return await (await (e.fetch ?? Qi)(t.href, e.fetchOptions)).json();
|
|
4415
|
-
}, ia = async (e, t, n =
|
|
4421
|
+
}, ia = async (e, t, n = dn(e)) => {
|
|
4416
4422
|
const r = Kt(e.canTrack);
|
|
4417
4423
|
if (n.search.includes("preview=")) {
|
|
4418
4424
|
const i = [];
|
|
@@ -4439,7 +4445,7 @@ const oa = async (e) => {
|
|
|
4439
4445
|
};
|
|
4440
4446
|
async function aa(e) {
|
|
4441
4447
|
try {
|
|
4442
|
-
const t =
|
|
4448
|
+
const t = dn(e), n = await oa(e);
|
|
4443
4449
|
return ra(n) ? ia(e, n) : (X.error("Error fetching data. ", {
|
|
4444
4450
|
url: t,
|
|
4445
4451
|
content: n,
|
|
@@ -4464,13 +4470,13 @@ function sa() {
|
|
|
4464
4470
|
function Br() {
|
|
4465
4471
|
return sa().replace(/-/g, "");
|
|
4466
4472
|
}
|
|
4467
|
-
const
|
|
4473
|
+
const Fr = "builderSessionId", la = async ({
|
|
4468
4474
|
canTrack: e
|
|
4469
4475
|
}) => {
|
|
4470
4476
|
if (!e)
|
|
4471
4477
|
return;
|
|
4472
4478
|
const t = await Er({
|
|
4473
|
-
name:
|
|
4479
|
+
name: Fr,
|
|
4474
4480
|
canTrack: e
|
|
4475
4481
|
});
|
|
4476
4482
|
if (oe(t))
|
|
@@ -4486,32 +4492,32 @@ const Mr = "builderSessionId", la = async ({
|
|
|
4486
4492
|
id: e,
|
|
4487
4493
|
canTrack: t
|
|
4488
4494
|
}) => Ir({
|
|
4489
|
-
name:
|
|
4495
|
+
name: Fr,
|
|
4490
4496
|
value: e,
|
|
4491
4497
|
canTrack: t
|
|
4492
|
-
}),
|
|
4498
|
+
}), Mr = () => G() && typeof localStorage < "u" ? localStorage : void 0, fa = ({
|
|
4493
4499
|
key: e,
|
|
4494
4500
|
canTrack: t
|
|
4495
4501
|
}) => {
|
|
4496
4502
|
var n;
|
|
4497
4503
|
try {
|
|
4498
|
-
return t ? (n =
|
|
4504
|
+
return t ? (n = Mr()) == null ? void 0 : n.getItem(e) : void 0;
|
|
4499
4505
|
} catch (r) {
|
|
4500
4506
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4501
4507
|
return;
|
|
4502
4508
|
}
|
|
4503
|
-
},
|
|
4509
|
+
}, da = ({
|
|
4504
4510
|
key: e,
|
|
4505
4511
|
canTrack: t,
|
|
4506
4512
|
value: n
|
|
4507
4513
|
}) => {
|
|
4508
4514
|
var r;
|
|
4509
4515
|
try {
|
|
4510
|
-
t && ((r =
|
|
4516
|
+
t && ((r = Mr()) == null || r.setItem(e, n));
|
|
4511
4517
|
} catch (o) {
|
|
4512
4518
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4513
4519
|
}
|
|
4514
|
-
}, Vr = "builderVisitorId",
|
|
4520
|
+
}, Vr = "builderVisitorId", pa = ({
|
|
4515
4521
|
canTrack: e
|
|
4516
4522
|
}) => {
|
|
4517
4523
|
if (!e)
|
|
@@ -4532,7 +4538,7 @@ const Mr = "builderSessionId", la = async ({
|
|
|
4532
4538
|
}, ha = () => Br(), ma = ({
|
|
4533
4539
|
id: e,
|
|
4534
4540
|
canTrack: t
|
|
4535
|
-
}) =>
|
|
4541
|
+
}) => da({
|
|
4536
4542
|
key: Vr,
|
|
4537
4543
|
value: e,
|
|
4538
4544
|
canTrack: t
|
|
@@ -4546,7 +4552,7 @@ const Mr = "builderSessionId", la = async ({
|
|
|
4546
4552
|
};
|
|
4547
4553
|
const t = await la({
|
|
4548
4554
|
canTrack: e
|
|
4549
|
-
}), n =
|
|
4555
|
+
}), n = pa({
|
|
4550
4556
|
canTrack: e
|
|
4551
4557
|
});
|
|
4552
4558
|
return {
|
|
@@ -4644,7 +4650,7 @@ function Dr(e, t) {
|
|
|
4644
4650
|
const n = new URL(t.origin), r = n.hostname;
|
|
4645
4651
|
return (e || wa).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
4646
4652
|
}
|
|
4647
|
-
const xa = "0.14.
|
|
4653
|
+
const xa = "0.14.11", or = {};
|
|
4648
4654
|
function ka(e, t) {
|
|
4649
4655
|
let n = or[e];
|
|
4650
4656
|
if (n || (n = or[e] = []), n.push(t), G()) {
|
|
@@ -4714,17 +4720,17 @@ const Ca = (e = {}) => {
|
|
|
4714
4720
|
if (o != null && o.type)
|
|
4715
4721
|
switch (o.type) {
|
|
4716
4722
|
case "builder.evaluate": {
|
|
4717
|
-
const u = o.data.text,
|
|
4723
|
+
const u = o.data.text, p = o.data.arguments || [], b = o.data.id, x = new Function(u);
|
|
4718
4724
|
let m, j = null;
|
|
4719
4725
|
try {
|
|
4720
|
-
m = x.apply(null,
|
|
4726
|
+
m = x.apply(null, p);
|
|
4721
4727
|
} catch (R) {
|
|
4722
4728
|
j = R;
|
|
4723
4729
|
}
|
|
4724
4730
|
j ? (i = window.parent) == null || i.postMessage({
|
|
4725
4731
|
type: "builder.evaluateError",
|
|
4726
4732
|
data: {
|
|
4727
|
-
id:
|
|
4733
|
+
id: b,
|
|
4728
4734
|
error: j.message
|
|
4729
4735
|
}
|
|
4730
4736
|
}, "*") : m && typeof m.then == "function" ? m.then((R) => {
|
|
@@ -4732,7 +4738,7 @@ const Ca = (e = {}) => {
|
|
|
4732
4738
|
(k = window.parent) == null || k.postMessage({
|
|
4733
4739
|
type: "builder.evaluateResult",
|
|
4734
4740
|
data: {
|
|
4735
|
-
id:
|
|
4741
|
+
id: b,
|
|
4736
4742
|
result: R
|
|
4737
4743
|
}
|
|
4738
4744
|
}, "*");
|
|
@@ -4740,7 +4746,7 @@ const Ca = (e = {}) => {
|
|
|
4740
4746
|
type: "builder.evaluateResult",
|
|
4741
4747
|
data: {
|
|
4742
4748
|
result: m,
|
|
4743
|
-
id:
|
|
4749
|
+
id: b
|
|
4744
4750
|
}
|
|
4745
4751
|
}, "*");
|
|
4746
4752
|
break;
|
|
@@ -4810,8 +4816,8 @@ function Ta(e) {
|
|
|
4810
4816
|
function Aa(e, t) {
|
|
4811
4817
|
const n = Oa(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
4812
4818
|
for (const u of s)
|
|
4813
|
-
for (const
|
|
4814
|
-
|
|
4819
|
+
for (const p of n)
|
|
4820
|
+
p in u || (u[p] = r[p]);
|
|
4815
4821
|
}
|
|
4816
4822
|
function Oa(e) {
|
|
4817
4823
|
const t = [];
|
|
@@ -4849,11 +4855,11 @@ font-weight: 400;
|
|
|
4849
4855
|
for (const s in e.files) {
|
|
4850
4856
|
if (!(String(Number(s)) === s))
|
|
4851
4857
|
continue;
|
|
4852
|
-
const
|
|
4853
|
-
|
|
4858
|
+
const p = e.files[s];
|
|
4859
|
+
p && p !== r && (o += `
|
|
4854
4860
|
@font-face {
|
|
4855
4861
|
font-family: "${t}";
|
|
4856
|
-
src: url('${
|
|
4862
|
+
src: url('${p}') format('woff2');
|
|
4857
4863
|
font-display: fallback;
|
|
4858
4864
|
font-weight: ${s};
|
|
4859
4865
|
}
|
|
@@ -4897,17 +4903,17 @@ ${Ra({
|
|
|
4897
4903
|
})}
|
|
4898
4904
|
${Ua(e.isNestedRender)}
|
|
4899
4905
|
`.trim();
|
|
4900
|
-
return /* @__PURE__ */ A(mt, { styles: t });
|
|
4906
|
+
return /* @__PURE__ */ A(mt, { id: "builderio-content", styles: t });
|
|
4901
4907
|
}
|
|
4902
|
-
const
|
|
4908
|
+
const Fa = ({
|
|
4903
4909
|
content: e,
|
|
4904
4910
|
data: t,
|
|
4905
4911
|
locale: n
|
|
4906
4912
|
}) => {
|
|
4907
4913
|
var i, s, u;
|
|
4908
4914
|
const r = {}, o = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
|
|
4909
|
-
return (u = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || u.forEach((
|
|
4910
|
-
|
|
4915
|
+
return (u = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || u.forEach((p) => {
|
|
4916
|
+
p.name && p.defaultValue !== void 0 && (r[p.name] = p.defaultValue);
|
|
4911
4917
|
}), {
|
|
4912
4918
|
...r,
|
|
4913
4919
|
...o,
|
|
@@ -4916,7 +4922,7 @@ const Ma = ({
|
|
|
4916
4922
|
locale: n
|
|
4917
4923
|
} : {}
|
|
4918
4924
|
};
|
|
4919
|
-
},
|
|
4925
|
+
}, Ma = ({
|
|
4920
4926
|
content: e,
|
|
4921
4927
|
data: t
|
|
4922
4928
|
}) => e ? {
|
|
@@ -4928,7 +4934,7 @@ const Ma = ({
|
|
|
4928
4934
|
meta: e == null ? void 0 : e.meta
|
|
4929
4935
|
} : void 0;
|
|
4930
4936
|
function sr(e) {
|
|
4931
|
-
var o, i, s, u,
|
|
4937
|
+
var o, i, s, u, p, b, x, m, j;
|
|
4932
4938
|
const t = Xi({
|
|
4933
4939
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4934
4940
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
@@ -4947,12 +4953,12 @@ function sr(e) {
|
|
|
4947
4953
|
}),
|
|
4948
4954
|
{}
|
|
4949
4955
|
), r = {
|
|
4950
|
-
content:
|
|
4956
|
+
content: Ma({
|
|
4951
4957
|
content: e.content,
|
|
4952
4958
|
data: e.data
|
|
4953
4959
|
}),
|
|
4954
4960
|
localState: void 0,
|
|
4955
|
-
rootState:
|
|
4961
|
+
rootState: Fa({
|
|
4956
4962
|
content: e.content,
|
|
4957
4963
|
data: e.data,
|
|
4958
4964
|
locale: e.locale
|
|
@@ -4993,14 +4999,20 @@ function sr(e) {
|
|
|
4993
4999
|
linkComponent: e.linkComponent,
|
|
4994
5000
|
trustedHosts: e.trustedHosts,
|
|
4995
5001
|
children: [
|
|
4996
|
-
e.isSsrAbTest ? /* @__PURE__ */ A(
|
|
5002
|
+
e.isSsrAbTest ? /* @__PURE__ */ A(
|
|
5003
|
+
Xt,
|
|
5004
|
+
{
|
|
5005
|
+
id: "builderio-variant-visibility",
|
|
5006
|
+
scriptStr: t
|
|
5007
|
+
}
|
|
5008
|
+
) : null,
|
|
4997
5009
|
/* @__PURE__ */ A(
|
|
4998
5010
|
Ba,
|
|
4999
5011
|
{
|
|
5000
5012
|
isNestedRender: e.isNestedRender,
|
|
5001
5013
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
5002
|
-
cssCode: (
|
|
5003
|
-
customFonts: (x = (
|
|
5014
|
+
cssCode: (p = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : p.cssCode,
|
|
5015
|
+
customFonts: (x = (b = r.content) == null ? void 0 : b.data) == null ? void 0 : x.customFonts
|
|
5004
5016
|
}
|
|
5005
5017
|
),
|
|
5006
5018
|
/* @__PURE__ */ A(
|
|
@@ -5017,47 +5029,59 @@ function sr(e) {
|
|
|
5017
5029
|
);
|
|
5018
5030
|
}
|
|
5019
5031
|
function Va(e) {
|
|
5020
|
-
var i
|
|
5032
|
+
var i;
|
|
5021
5033
|
const t = $i({
|
|
5022
5034
|
canTrack: Kt(e.canTrack),
|
|
5023
5035
|
content: e.content
|
|
5024
5036
|
}), n = function() {
|
|
5025
|
-
var
|
|
5037
|
+
var u;
|
|
5026
5038
|
return Gi(
|
|
5027
|
-
ct(e.content).map((
|
|
5028
|
-
id:
|
|
5029
|
-
testRatio:
|
|
5039
|
+
ct(e.content).map((p) => ({
|
|
5040
|
+
id: p.testVariationId,
|
|
5041
|
+
testRatio: p.testRatio
|
|
5030
5042
|
})),
|
|
5031
|
-
((
|
|
5043
|
+
((u = e.content) == null ? void 0 : u.id) || ""
|
|
5032
5044
|
);
|
|
5033
5045
|
}, r = function() {
|
|
5034
|
-
return ct(e.content).map((
|
|
5046
|
+
return ct(e.content).map((u) => `.variant-${u.testVariationId} { display: none; } `).join("");
|
|
5035
5047
|
}, o = function() {
|
|
5036
|
-
var
|
|
5048
|
+
var u;
|
|
5037
5049
|
return t ? {
|
|
5038
5050
|
...e.content,
|
|
5039
|
-
testVariationId: (
|
|
5051
|
+
testVariationId: (u = e.content) == null ? void 0 : u.id
|
|
5040
5052
|
} : wi({
|
|
5041
5053
|
item: e.content,
|
|
5042
5054
|
canTrack: Kt(e.canTrack)
|
|
5043
5055
|
});
|
|
5044
5056
|
};
|
|
5045
5057
|
return /* @__PURE__ */ xe(Z, { children: [
|
|
5046
|
-
!e.isNestedRender && he !== "reactNative" ? /* @__PURE__ */ A(
|
|
5058
|
+
!e.isNestedRender && he !== "reactNative" ? /* @__PURE__ */ A(
|
|
5059
|
+
Xt,
|
|
5060
|
+
{
|
|
5061
|
+
id: "builderio-init-variants-fns",
|
|
5062
|
+
scriptStr: Ki()
|
|
5063
|
+
}
|
|
5064
|
+
) : null,
|
|
5047
5065
|
t ? /* @__PURE__ */ xe(Z, { children: [
|
|
5048
5066
|
/* @__PURE__ */ A(
|
|
5049
5067
|
mt,
|
|
5050
5068
|
{
|
|
5051
|
-
id:
|
|
5069
|
+
id: "builderio-variants",
|
|
5052
5070
|
styles: r()
|
|
5053
5071
|
}
|
|
5054
5072
|
),
|
|
5055
|
-
/* @__PURE__ */ A(
|
|
5056
|
-
|
|
5073
|
+
/* @__PURE__ */ A(
|
|
5074
|
+
Xt,
|
|
5075
|
+
{
|
|
5076
|
+
id: "builderio-variants-visibility",
|
|
5077
|
+
scriptStr: n()
|
|
5078
|
+
}
|
|
5079
|
+
),
|
|
5080
|
+
(i = ct(e.content)) == null ? void 0 : i.map((s) => /* @__PURE__ */ A(
|
|
5057
5081
|
sr,
|
|
5058
5082
|
{
|
|
5059
5083
|
isNestedRender: e.isNestedRender,
|
|
5060
|
-
content:
|
|
5084
|
+
content: s,
|
|
5061
5085
|
showContent: !1,
|
|
5062
5086
|
model: e.model,
|
|
5063
5087
|
data: e.data,
|
|
@@ -5076,7 +5100,7 @@ function Va(e) {
|
|
|
5076
5100
|
contentWrapperProps: e.contentWrapperProps,
|
|
5077
5101
|
trustedHosts: e.trustedHosts
|
|
5078
5102
|
},
|
|
5079
|
-
|
|
5103
|
+
s.testVariationId
|
|
5080
5104
|
))
|
|
5081
5105
|
] }) : null,
|
|
5082
5106
|
/* @__PURE__ */ A(
|
|
@@ -5127,11 +5151,11 @@ const Da = async ({
|
|
|
5127
5151
|
async function La(e) {
|
|
5128
5152
|
var r, o, i, s, u;
|
|
5129
5153
|
const t = function() {
|
|
5130
|
-
var
|
|
5154
|
+
var b, x;
|
|
5131
5155
|
return [
|
|
5132
5156
|
e.attributes[Yt()],
|
|
5133
5157
|
"builder-symbol",
|
|
5134
|
-
(
|
|
5158
|
+
(b = e.symbol) != null && b.inline ? "builder-inline-symbol" : void 0,
|
|
5135
5159
|
(x = e.symbol) != null && x.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5136
5160
|
].filter(Boolean).join(" ");
|
|
5137
5161
|
}, n = ((r = e.symbol) == null ? void 0 : r.content) || await Da({
|