@builder.io/sdk-react-nextjs 0.7.4 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{USE_CLIENT_BUNDLE-6b3887b7.js → USE_CLIENT_BUNDLE-02851f5b.js} +2 -2
- package/lib/{node/USE_CLIENT_BUNDLE-539be307.cjs → browser/USE_CLIENT_BUNDLE-19024ae3.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-2c9d1a5d.js → browser/USE_SERVER_BUNDLE-0dbfec06.js} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-e5ab43ec.cjs → browser/USE_SERVER_BUNDLE-99af92f3.cjs} +1 -1
- package/lib/browser/{bundle-df55c296.cjs → bundle-cf866f2c.cjs} +13 -13
- package/lib/browser/{bundle-fc3e7377.js → bundle-ed21dd97.js} +79 -82
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{browser/USE_CLIENT_BUNDLE-f95a196a.cjs → edge/USE_CLIENT_BUNDLE-853614ad.cjs} +1 -1
- package/lib/{node/USE_CLIENT_BUNDLE-a5c6399c.js → edge/USE_CLIENT_BUNDLE-a1ac1e61.js} +2 -2
- package/lib/{node/USE_SERVER_BUNDLE-7f4ba7e9.cjs → edge/USE_SERVER_BUNDLE-949923da.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-21bf3ffc.js → edge/USE_SERVER_BUNDLE-f8e4c4d9.js} +1 -1
- package/lib/edge/{bundle-bef73246.js → bundle-48628d9c.js} +274 -277
- package/lib/edge/{bundle-38f08fa1.cjs → bundle-97130d9a.cjs} +13 -13
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-44225d7a.cjs → node/USE_CLIENT_BUNDLE-23b5881f.cjs} +1 -1
- package/lib/{edge/USE_CLIENT_BUNDLE-a32e462e.js → node/USE_CLIENT_BUNDLE-b63c2d8e.js} +2 -2
- package/lib/{browser/USE_SERVER_BUNDLE-b314d0f7.js → node/USE_SERVER_BUNDLE-643288fc.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-eed7792a.cjs → node/USE_SERVER_BUNDLE-d645bd91.cjs} +1 -1
- package/lib/node/{bundle-74479d5d.js → bundle-3ab5a1ab.js} +77 -80
- package/lib/node/{bundle-f7863fb3.cjs → bundle-3f7e723b.cjs} +8 -8
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +1 -1
- package/types/cjs/components/content/content.helpers.d.ts +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/esm/components/content/content.helpers.d.ts +1 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LRUCache as Qr } from "lru-cache";
|
|
2
2
|
import { jsx as C, Fragment as _, jsxs as ue } from "react/jsx-runtime";
|
|
3
3
|
import { createElement as ei } from "react";
|
|
4
|
-
import { I as ti, B as Wn, a as ni, b as ri, C as ii, E as oi, F as ai, c as si, d as li, S as ci, V as ui, e as fi } from "./USE_CLIENT_BUNDLE-
|
|
4
|
+
import { I as ti, B as Wn, a as ni, b as ri, C as ii, E as oi, F as ai, c as si, d as li, S as ci, V as ui, e as fi } from "./USE_CLIENT_BUNDLE-a1ac1e61.js";
|
|
5
5
|
import "next/navigation";
|
|
6
6
|
function pi(e) {
|
|
7
7
|
var t;
|
|
@@ -116,7 +116,7 @@ const fr = (e, t, n) => {
|
|
|
116
116
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
117
117
|
return r.slice(0, -1).reduce((i, a, s) => Object(i[a]) === i[a] ? i[a] : i[a] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
118
118
|
};
|
|
119
|
-
var P,
|
|
119
|
+
var P, bi = function(e) {
|
|
120
120
|
function t(o) {
|
|
121
121
|
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && qr.test(String.fromCharCode(o));
|
|
122
122
|
}
|
|
@@ -146,7 +146,7 @@ var P, wi = function(e) {
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
function a() {
|
|
149
|
-
this.line =
|
|
149
|
+
this.line = we, this.ab = f - ie;
|
|
150
150
|
}
|
|
151
151
|
function s(o, l) {
|
|
152
152
|
Ce = f, j.C && (Ct = new a()), I = o, d(), Q = l, Be = o.m;
|
|
@@ -162,9 +162,9 @@ var P, wi = function(e) {
|
|
|
162
162
|
if (o === 32)
|
|
163
163
|
++f;
|
|
164
164
|
else if (o === 13)
|
|
165
|
-
++f, o = g.charCodeAt(f), o === 10 && ++f, j.C && (++
|
|
165
|
+
++f, o = g.charCodeAt(f), o === 10 && ++f, j.C && (++we, ie = f);
|
|
166
166
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
167
|
-
++f, j.C && (++
|
|
167
|
+
++f, j.C && (++we, ie = f);
|
|
168
168
|
else if (8 < o && 14 > o)
|
|
169
169
|
++f;
|
|
170
170
|
else if (o === 47)
|
|
@@ -173,7 +173,7 @@ var P, wi = function(e) {
|
|
|
173
173
|
var l = j.va && j.C && new a(), c = f, p = g.indexOf("*/", f += 2);
|
|
174
174
|
if (p === -1 && r(f - 2, "Unterminated comment"), f = p + 2, j.C)
|
|
175
175
|
for (ot.lastIndex = c; (o = ot.exec(g)) && o.index < f; )
|
|
176
|
-
++
|
|
176
|
+
++we, ie = o.index + o[0].length;
|
|
177
177
|
j.va && j.va(!0, g.slice(c + 2, p), c, f, l, j.C && new a());
|
|
178
178
|
} else if (o === 47)
|
|
179
179
|
u();
|
|
@@ -187,10 +187,10 @@ var P, wi = function(e) {
|
|
|
187
187
|
break;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function E(o) {
|
|
191
191
|
switch (o) {
|
|
192
192
|
case 46:
|
|
193
|
-
o = g.charCodeAt(f + 1), 48 <= o && 57 >= o ?
|
|
193
|
+
o = g.charCodeAt(f + 1), 48 <= o && 57 >= o ? S(!0) : (++f, s(Mn));
|
|
194
194
|
return;
|
|
195
195
|
case 40:
|
|
196
196
|
return ++f, s(oe);
|
|
@@ -226,7 +226,7 @@ var P, wi = function(e) {
|
|
|
226
226
|
case 55:
|
|
227
227
|
case 56:
|
|
228
228
|
case 57:
|
|
229
|
-
return
|
|
229
|
+
return S(!1);
|
|
230
230
|
case 34:
|
|
231
231
|
case 39:
|
|
232
232
|
f++;
|
|
@@ -254,13 +254,13 @@ var P, wi = function(e) {
|
|
|
254
254
|
l += "\r";
|
|
255
255
|
break;
|
|
256
256
|
case 120:
|
|
257
|
-
l += String.fromCharCode(
|
|
257
|
+
l += String.fromCharCode(v(2));
|
|
258
258
|
break;
|
|
259
259
|
case 117:
|
|
260
|
-
l += String.fromCharCode(
|
|
260
|
+
l += String.fromCharCode(v(4));
|
|
261
261
|
break;
|
|
262
262
|
case 85:
|
|
263
|
-
l += String.fromCharCode(
|
|
263
|
+
l += String.fromCharCode(v(8));
|
|
264
264
|
break;
|
|
265
265
|
case 116:
|
|
266
266
|
l += " ";
|
|
@@ -280,7 +280,7 @@ var P, wi = function(e) {
|
|
|
280
280
|
case 13:
|
|
281
281
|
g.charCodeAt(f) === 10 && ++f;
|
|
282
282
|
case 10:
|
|
283
|
-
j.C && (ie = f, ++
|
|
283
|
+
j.C && (ie = f, ++we);
|
|
284
284
|
break;
|
|
285
285
|
default:
|
|
286
286
|
l += String.fromCharCode(c);
|
|
@@ -290,33 +290,33 @@ var P, wi = function(e) {
|
|
|
290
290
|
}
|
|
291
291
|
return;
|
|
292
292
|
case 47:
|
|
293
|
-
o = g.charCodeAt(f + 1), Be ? (++f, M()) : o === 61 ?
|
|
293
|
+
o = g.charCodeAt(f + 1), Be ? (++f, M()) : o === 61 ? w(Se, 2) : w(Bn, 1);
|
|
294
294
|
return;
|
|
295
295
|
case 37:
|
|
296
296
|
case 42:
|
|
297
|
-
g.charCodeAt(f + 1) === 61 ?
|
|
297
|
+
g.charCodeAt(f + 1) === 61 ? w(Se, 2) : w(Xr, 1);
|
|
298
298
|
return;
|
|
299
299
|
case 124:
|
|
300
300
|
case 38:
|
|
301
|
-
l = g.charCodeAt(f + 1), l === o ?
|
|
301
|
+
l = g.charCodeAt(f + 1), l === o ? w(o === 124 ? _n : Dn, 2) : l === 61 ? w(Se, 2) : w(o === 124 ? Dr : $r, 1);
|
|
302
302
|
return;
|
|
303
303
|
case 94:
|
|
304
|
-
g.charCodeAt(f + 1) === 61 ?
|
|
304
|
+
g.charCodeAt(f + 1) === 61 ? w(Se, 2) : w(Lr, 1);
|
|
305
305
|
return;
|
|
306
306
|
case 43:
|
|
307
307
|
case 45:
|
|
308
|
-
l = g.charCodeAt(f + 1), l === o ? l === 45 && g.charCodeAt(f + 2) === 62 && it.test(g.slice(ge, f)) ? (f += 3, u(), d(), k()) :
|
|
308
|
+
l = g.charCodeAt(f + 1), l === o ? l === 45 && g.charCodeAt(f + 2) === 62 && it.test(g.slice(ge, f)) ? (f += 3, u(), d(), k()) : w(_r, 2) : l === 61 ? w(Se, 2) : w(Gr, 1);
|
|
309
309
|
return;
|
|
310
310
|
case 60:
|
|
311
311
|
case 62:
|
|
312
|
-
l = g.charCodeAt(f + 1), c = 1, l === o ? (c = o === 62 && g.charCodeAt(f + 2) === 62 ? 3 : 2, g.charCodeAt(f + c) === 61 ?
|
|
312
|
+
l = g.charCodeAt(f + 1), c = 1, l === o ? (c = o === 62 && g.charCodeAt(f + 2) === 62 ? 3 : 2, g.charCodeAt(f + c) === 61 ? w(Se, c + 1) : w(Kr, c)) : l === 33 && o === 60 && g.charCodeAt(f + 2) === 45 && g.charCodeAt(f + 3) === 45 ? (f += 4, u(), d(), k()) : (l === 61 && (c = g.charCodeAt(f + 2) === 61 ? 3 : 2), w(Hr, c));
|
|
313
313
|
return;
|
|
314
314
|
case 61:
|
|
315
315
|
case 33:
|
|
316
|
-
g.charCodeAt(f + 1) === 61 ?
|
|
316
|
+
g.charCodeAt(f + 1) === 61 ? w(Wr, g.charCodeAt(f + 2) === 61 ? 3 : 2) : w(o === 61 ? Fn : Vn, 1);
|
|
317
317
|
return;
|
|
318
318
|
case 126:
|
|
319
|
-
return
|
|
319
|
+
return w(Vn, 1);
|
|
320
320
|
}
|
|
321
321
|
return !1;
|
|
322
322
|
}
|
|
@@ -327,13 +327,13 @@ var P, wi = function(e) {
|
|
|
327
327
|
return s(Tt);
|
|
328
328
|
if (o = g.charCodeAt(f), n(o) || o === 92)
|
|
329
329
|
return W();
|
|
330
|
-
if (
|
|
330
|
+
if (E(o) === !1) {
|
|
331
331
|
if (o = String.fromCharCode(o), o === "\\" || $n.test(o))
|
|
332
332
|
return W();
|
|
333
333
|
r(f, "Unexpected character '" + o + "'");
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function w(o, l) {
|
|
337
337
|
var c = g.slice(f, f + l);
|
|
338
338
|
f += l, s(o, c);
|
|
339
339
|
}
|
|
@@ -371,13 +371,13 @@ var P, wi = function(e) {
|
|
|
371
371
|
}
|
|
372
372
|
return f === c || l !== void 0 && f - c !== l ? null : p;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function S(o) {
|
|
375
375
|
var l = f, c = !1, p = g.charCodeAt(f) === 48;
|
|
376
376
|
o || O(10) !== null || r(l, "Invalid number"), g.charCodeAt(f) === 46 && (++f, O(10), c = !0), o = g.charCodeAt(f), (o === 69 || o === 101) && (o = g.charCodeAt(++f), o !== 43 && o !== 45 || ++f, O(10) === null && r(l, "Invalid number"), c = !0), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), o = g.slice(l, f);
|
|
377
377
|
var T;
|
|
378
378
|
c ? T = parseFloat(o) : p && o.length !== 1 ? /[89]/.test(o) || z ? r(l, "Invalid number") : T = parseInt(o, 8) : T = parseInt(o, 10), s(Ve, T);
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function v(o) {
|
|
381
381
|
return o = O(16, o), o === null && r(D, "Bad character escape sequence"), o;
|
|
382
382
|
}
|
|
383
383
|
function N() {
|
|
@@ -387,7 +387,7 @@ var P, wi = function(e) {
|
|
|
387
387
|
if (t(p))
|
|
388
388
|
Te && (o += g.charAt(f)), ++f;
|
|
389
389
|
else if (p === 92) {
|
|
390
|
-
Te || (o = g.slice(c, f)), Te = !0, g.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, p =
|
|
390
|
+
Te || (o = g.slice(c, f)), Te = !0, g.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, p = v(4);
|
|
391
391
|
var T = String.fromCharCode(p);
|
|
392
392
|
T || r(f - 1, "Invalid Unicode escape"), (l ? n(p) : t(p)) || r(f - 4, "Invalid Unicode escape"), o += T;
|
|
393
393
|
} else
|
|
@@ -407,7 +407,7 @@ var P, wi = function(e) {
|
|
|
407
407
|
if (z = o, f = D, j.C)
|
|
408
408
|
for (; f < ie; )
|
|
409
409
|
ie = g.lastIndexOf(`
|
|
410
|
-
`, ie - 2) + 1, --
|
|
410
|
+
`, ie - 2) + 1, --we;
|
|
411
411
|
d(), k();
|
|
412
412
|
}
|
|
413
413
|
function he() {
|
|
@@ -436,7 +436,7 @@ var P, wi = function(e) {
|
|
|
436
436
|
function Ze() {
|
|
437
437
|
return !j.fc && (I === Tt || I === Ie || it.test(g.slice(ge, D)));
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function be() {
|
|
440
440
|
B(ae) || Ze() || ne();
|
|
441
441
|
}
|
|
442
442
|
function F(o) {
|
|
@@ -456,7 +456,7 @@ var P, wi = function(e) {
|
|
|
456
456
|
case yn:
|
|
457
457
|
m();
|
|
458
458
|
var c = o === At;
|
|
459
|
-
B(ae) || Ze() ? l.label = null : I !== Ee ? ne() : (l.label = re(),
|
|
459
|
+
B(ae) || Ze() ? l.label = null : I !== Ee ? ne() : (l.label = re(), be());
|
|
460
460
|
for (var p = 0; p < V.length; ++p) {
|
|
461
461
|
var T = V[p];
|
|
462
462
|
if ((l.label === null || T.name === l.label.name) && (T.kind !== null && (c || T.kind === "loop") || l.label && c))
|
|
@@ -464,27 +464,27 @@ var P, wi = function(e) {
|
|
|
464
464
|
}
|
|
465
465
|
return p === V.length && r(l.start, "Unsyntactic " + o.l), A(l, c ? "BreakStatement" : "ContinueStatement");
|
|
466
466
|
case vn:
|
|
467
|
-
return m(),
|
|
468
|
-
case
|
|
469
|
-
return m(), V.push(Bt), l.body = ee(), V.pop(), F(Nt), l.test = Ne(),
|
|
467
|
+
return m(), be(), A(l, "DebuggerStatement");
|
|
468
|
+
case bn:
|
|
469
|
+
return m(), V.push(Bt), l.body = ee(), V.pop(), F(Nt), l.test = Ne(), be(), A(l, "DoWhileStatement");
|
|
470
470
|
case kn:
|
|
471
471
|
return m(), V.push(Bt), F(oe), I === ae ? gt(l, null) : I === Pt ? (o = U(), m(), dn(o, !0), A(o, "VariableDeclaration"), o.fa.length === 1 && B(nt) ? pn(l, o) : gt(l, o)) : (o = K(!1, !0), B(nt) ? (Qe(o), pn(l, o)) : gt(l, o));
|
|
472
472
|
case jt:
|
|
473
|
-
return m(),
|
|
473
|
+
return m(), bt(l, !0);
|
|
474
474
|
case Cn:
|
|
475
|
-
return m(), l.test = Ne(), l.da = ee(), l.alternate = B(
|
|
475
|
+
return m(), l.test = Ne(), l.da = ee(), l.alternate = B(wn) ? ee() : null, A(l, "IfStatement");
|
|
476
476
|
case En:
|
|
477
|
-
return Fe || j.Ib || r(D, "'return' outside of function"), m(), B(ae) || Ze() ? l.K = null : (l.K = K(),
|
|
477
|
+
return Fe || j.Ib || r(D, "'return' outside of function"), m(), B(ae) || Ze() ? l.K = null : (l.K = K(), be()), A(l, "ReturnStatement");
|
|
478
478
|
case Rt:
|
|
479
479
|
for (m(), l.Qb = Ne(), l.tb = [], F(_e), V.push(Zr); I !== Ie; )
|
|
480
480
|
I === Ot || I === xn ? (o = I === Ot, p && A(p, "SwitchCase"), l.tb.push(p = U()), p.da = [], m(), o ? p.test = K() : (c && r(Et, "Multiple default clauses"), c = !0, p.test = null), F(De)) : (p || ne(), p.da.push(ee()));
|
|
481
481
|
return p && A(p, "SwitchCase"), m(), V.pop(), A(l, "SwitchStatement");
|
|
482
482
|
case In:
|
|
483
|
-
return m(), it.test(g.slice(ge, D)) && r(ge, "Illegal newline after throw"), l.K = K(),
|
|
483
|
+
return m(), it.test(g.slice(ge, D)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), A(l, "ThrowStatement");
|
|
484
484
|
case Tn:
|
|
485
485
|
return m(), l.block = Me(), l.Ea = null, I === gn && (o = U(), m(), F(oe), o.Ua = re(), z && rt(o.Ua.name) && r(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), F(te), o.body = Me(), l.Ea = A(o, "CatchClause")), l.fb = B(Sn) ? Me() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), A(l, "TryStatement");
|
|
486
486
|
case Pt:
|
|
487
|
-
return m(), dn(l),
|
|
487
|
+
return m(), dn(l), be(), A(l, "VariableDeclaration");
|
|
488
488
|
case Nt:
|
|
489
489
|
return m(), l.test = Ne(), V.push(Bt), l.body = ee(), V.pop(), A(l, "WhileStatement");
|
|
490
490
|
case An:
|
|
@@ -502,7 +502,7 @@ var P, wi = function(e) {
|
|
|
502
502
|
kind: I.W ? "loop" : I === Rt ? "switch" : null
|
|
503
503
|
}), l.body = ee(), V.pop(), l.label = T, A(l, "LabeledStatement");
|
|
504
504
|
}
|
|
505
|
-
return l.la = T,
|
|
505
|
+
return l.la = T, be(), A(l, "ExpressionStatement");
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
function Ne() {
|
|
@@ -574,7 +574,7 @@ var P, wi = function(e) {
|
|
|
574
574
|
var c = me(o);
|
|
575
575
|
return c.object = o, c.Wa = re(!0), c.bb = !1, Ue(A(c, "MemberExpression"), l);
|
|
576
576
|
}
|
|
577
|
-
return B(Mt) ? (c = me(o), c.object = o, c.Wa = K(), c.bb = !0, F(Ut), Ue(A(c, "MemberExpression"), l)) : !l && B(oe) ? (c = me(o), c.callee = o, c.arguments =
|
|
577
|
+
return B(Mt) ? (c = me(o), c.object = o, c.Wa = K(), c.bb = !0, F(Ut), Ue(A(c, "MemberExpression"), l)) : !l && B(oe) ? (c = me(o), c.callee = o, c.arguments = wt(te, !1), Ue(A(c, "CallExpression"), l)) : o;
|
|
578
578
|
}
|
|
579
579
|
function et() {
|
|
580
580
|
switch (I) {
|
|
@@ -598,7 +598,7 @@ var P, wi = function(e) {
|
|
|
598
598
|
var c = K();
|
|
599
599
|
return c.start = l, c.end = Ce, j.C && (c.X.start = o, c.X.end = Ct), j.Xa && (c.j = [l, Ce]), F(te), c;
|
|
600
600
|
case Mt:
|
|
601
|
-
return o = U(), m(), o.elements =
|
|
601
|
+
return o = U(), m(), o.elements = wt(Ut, !0, !0), A(o, "ArrayExpression");
|
|
602
602
|
case _e:
|
|
603
603
|
for (o = U(), l = !0, c = !1, o.h = [], m(); !B(Ie); ) {
|
|
604
604
|
if (l)
|
|
@@ -612,7 +612,7 @@ var P, wi = function(e) {
|
|
|
612
612
|
p.value = K(!0);
|
|
613
613
|
var L = p.kind = "init";
|
|
614
614
|
} else
|
|
615
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ne() : (T = c = !0, L = p.kind = p.key.name, p.key = I === Ve || I === tt ? et() : re(!0), I !== oe && ne(), p.value =
|
|
615
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ne() : (T = c = !0, L = p.kind = p.key.name, p.key = I === Ve || I === tt ? et() : re(!0), I !== oe && ne(), p.value = bt(U(), !1));
|
|
616
616
|
if (p.key.type === "Identifier" && (z || c))
|
|
617
617
|
for (var X = 0; X < o.h.length; ++X) {
|
|
618
618
|
var Ae = o.h[X];
|
|
@@ -625,13 +625,13 @@ var P, wi = function(e) {
|
|
|
625
625
|
}
|
|
626
626
|
return A(o, "ObjectExpression");
|
|
627
627
|
case jt:
|
|
628
|
-
return o = U(), m(),
|
|
628
|
+
return o = U(), m(), bt(o, !1);
|
|
629
629
|
case On:
|
|
630
|
-
return o = U(), m(), o.callee = Ue(et(), !0), o.arguments = B(oe) ?
|
|
630
|
+
return o = U(), m(), o.callee = Ue(et(), !0), o.arguments = B(oe) ? wt(te, !1) : Fr, A(o, "NewExpression");
|
|
631
631
|
}
|
|
632
632
|
ne();
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function bt(o, l) {
|
|
635
635
|
I === Ee ? o.id = re() : l ? ne() : o.id = null, o.oa = [];
|
|
636
636
|
var c = !0;
|
|
637
637
|
for (F(oe); !B(te); )
|
|
@@ -646,7 +646,7 @@ var P, wi = function(e) {
|
|
|
646
646
|
}
|
|
647
647
|
return A(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
648
648
|
}
|
|
649
|
-
function
|
|
649
|
+
function wt(o, l, c) {
|
|
650
650
|
for (var p = [], T = !0; !B(o); ) {
|
|
651
651
|
if (T)
|
|
652
652
|
T = !1;
|
|
@@ -666,7 +666,7 @@ var P, wi = function(e) {
|
|
|
666
666
|
g = String(o), ke = g.length, j = l || {};
|
|
667
667
|
for (var c in hn)
|
|
668
668
|
Object.prototype.hasOwnProperty.call(j, c) || (j[c] = hn[c]);
|
|
669
|
-
for (St = j.sourceFile,
|
|
669
|
+
for (St = j.sourceFile, we = 1, f = ie = 0, Be = !0, d(), c = j.dc, Et = ge = f, j.C && (It = new a()), Fe = z = !1, V = [], k(), o = c || U(), l = !0, c || (o.body = []); I !== Tt; )
|
|
670
670
|
c = ee(), o.body.push(c), l && mt(c) && de(!0), l = !1;
|
|
671
671
|
return A(o, "Program");
|
|
672
672
|
};
|
|
@@ -681,7 +681,7 @@ var P, wi = function(e) {
|
|
|
681
681
|
dc: null,
|
|
682
682
|
sourceFile: null,
|
|
683
683
|
vb: null
|
|
684
|
-
}, f = 0, D = 0, Ce = 0, kt, Ct, I, Q, Be,
|
|
684
|
+
}, f = 0, D = 0, Ce = 0, kt, Ct, I, Q, Be, we, ie, Et = 0, ge = 0, It, Fe, V, z, Fr = [], Ve = {
|
|
685
685
|
type: "num"
|
|
686
686
|
}, mn = {
|
|
687
687
|
type: "regexp"
|
|
@@ -704,10 +704,10 @@ var P, wi = function(e) {
|
|
|
704
704
|
l: "debugger"
|
|
705
705
|
}, xn = {
|
|
706
706
|
l: "default"
|
|
707
|
-
},
|
|
707
|
+
}, bn = {
|
|
708
708
|
l: "do",
|
|
709
709
|
W: !0
|
|
710
|
-
},
|
|
710
|
+
}, wn = {
|
|
711
711
|
l: "else",
|
|
712
712
|
m: !0
|
|
713
713
|
}, Sn = {
|
|
@@ -761,8 +761,8 @@ var P, wi = function(e) {
|
|
|
761
761
|
continue: yn,
|
|
762
762
|
debugger: vn,
|
|
763
763
|
default: xn,
|
|
764
|
-
do:
|
|
765
|
-
else:
|
|
764
|
+
do: bn,
|
|
765
|
+
else: wn,
|
|
766
766
|
finally: Sn,
|
|
767
767
|
for: kn,
|
|
768
768
|
function: jt,
|
|
@@ -882,7 +882,7 @@ var P, wi = function(e) {
|
|
|
882
882
|
kind: "switch"
|
|
883
883
|
};
|
|
884
884
|
}, Lt = Lt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
885
|
-
|
|
885
|
+
bi(Lt.j || (Lt.j = {}));
|
|
886
886
|
function h(e, t) {
|
|
887
887
|
typeof e == "string" && (e = je(e, "code"));
|
|
888
888
|
var n = e.constructor;
|
|
@@ -899,7 +899,7 @@ function h(e, t) {
|
|
|
899
899
|
for (s in this)
|
|
900
900
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
901
901
|
this.N = Wt(this, this.ra, null), this.Na = this.N.object, this.ra = je(this.ba.join(`
|
|
902
|
-
`), "polyfills"), this.ba = void 0, ut(this.ra), a = new
|
|
902
|
+
`), "polyfills"), this.ba = void 0, ut(this.ra), a = new x(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = r, a = new x(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
903
903
|
}
|
|
904
904
|
var Hn = {
|
|
905
905
|
C: !0,
|
|
@@ -932,7 +932,7 @@ var Hn = {
|
|
|
932
932
|
VALUE_IN_DESCRIPTOR: !0
|
|
933
933
|
}, Oe = {
|
|
934
934
|
REGEXP_TIMEOUT: !0
|
|
935
|
-
}, Gn = [], le = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis,
|
|
935
|
+
}, Gn = [], le = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis, wi = ["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();", "};"];
|
|
936
936
|
function Jt(e) {
|
|
937
937
|
var t = e >>> 0;
|
|
938
938
|
return t === Number(e) ? t : NaN;
|
|
@@ -984,7 +984,7 @@ P.lb = function() {
|
|
|
984
984
|
n = null;
|
|
985
985
|
else {
|
|
986
986
|
this.ca.shift(), 0 <= n.interval && mr(this, n, n.interval);
|
|
987
|
-
var r = new
|
|
987
|
+
var r = new x(n.node, n.scope);
|
|
988
988
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
989
989
|
}
|
|
990
990
|
if (!n)
|
|
@@ -1026,7 +1026,7 @@ function Si(e, t) {
|
|
|
1026
1026
|
try {
|
|
1027
1027
|
return a(s);
|
|
1028
1028
|
} catch (u) {
|
|
1029
|
-
|
|
1029
|
+
b(e, e.Gb, u.message);
|
|
1030
1030
|
}
|
|
1031
1031
|
};
|
|
1032
1032
|
}(r[i][0]), e.g(t, r[i][1], e.i(n, !1), y);
|
|
@@ -1048,21 +1048,21 @@ function ki(e, t) {
|
|
|
1048
1048
|
s = s.split(/\s*,\s*/);
|
|
1049
1049
|
for (var u = 0; u < s.length; u++) {
|
|
1050
1050
|
var d = s[u];
|
|
1051
|
-
n.test(d) ||
|
|
1051
|
+
n.test(d) || b(e, e.T, "Invalid function argument: " + d);
|
|
1052
1052
|
}
|
|
1053
1053
|
s = s.join(", ");
|
|
1054
1054
|
}
|
|
1055
1055
|
try {
|
|
1056
|
-
var
|
|
1056
|
+
var E = je("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1057
1057
|
} catch (k) {
|
|
1058
|
-
|
|
1058
|
+
b(e, e.T, "Invalid code: " + k.message);
|
|
1059
1059
|
}
|
|
1060
|
-
return
|
|
1060
|
+
return E.body.length !== 1 && b(e, e.T, "Invalid code in function body"), Zt(e, E.body[0].la, e.N, "anonymous");
|
|
1061
1061
|
};
|
|
1062
1062
|
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() {
|
|
1063
1063
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, J), e.Z.H = "Function", r = function(i, a) {
|
|
1064
1064
|
var s = e.o[e.o.length - 1];
|
|
1065
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof R ? s.F = dr(e, a) :
|
|
1065
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof R ? s.F = dr(e, a) : b(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1066
1066
|
}, $(e, e.O, "apply", r), r = function(i) {
|
|
1067
1067
|
var a = e.o[e.o.length - 1];
|
|
1068
1068
|
a.U = this, a.B = i, a.F = [];
|
|
@@ -1077,7 +1077,7 @@ function ki(e, t) {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
function Ci(e, t) {
|
|
1079
1079
|
function n(i) {
|
|
1080
|
-
i != null ||
|
|
1080
|
+
i != null || b(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1081
1081
|
}
|
|
1082
1082
|
var r = function(i) {
|
|
1083
1083
|
if (i == null)
|
|
@@ -1093,11 +1093,11 @@ function Ci(e, t) {
|
|
|
1093
1093
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), y), r = function(i) {
|
|
1094
1094
|
return n(i), i instanceof R && (i = i.h), se(e, Object.keys(i));
|
|
1095
1095
|
}, e.g(e.v, "keys", e.i(r, !1), y), r = function(i) {
|
|
1096
|
-
return i === null ? e.s(null) : (i instanceof R ||
|
|
1096
|
+
return i === null ? e.s(null) : (i instanceof R || b(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1097
1097
|
}, 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(i, a, s) {
|
|
1098
|
-
return a = String(a), i instanceof R ||
|
|
1098
|
+
return a = String(a), i instanceof R || b(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof R || b(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || b(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a, Ye, s.h), i;
|
|
1099
1099
|
}, 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(i, a) {
|
|
1100
|
-
if (i instanceof R ||
|
|
1100
|
+
if (i instanceof R || b(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1101
1101
|
var s = Object.getOwnPropertyDescriptor(i.h, a), u = i.V[a];
|
|
1102
1102
|
return i = i.Y[a], a = e.s(e.M), u || i ? (e.g(a, "get", u), e.g(a, "set", i)) : (e.g(a, "value", s.value), e.g(a, "writable", s.writable)), e.g(a, "configurable", s.configurable), e.g(a, "enumerable", s.enumerable), a;
|
|
1103
1103
|
}
|
|
@@ -1124,7 +1124,7 @@ function Ei(e, t) {
|
|
|
1124
1124
|
var n = function(r) {
|
|
1125
1125
|
var i = fe(e) ? this : Re(e), a = arguments[0];
|
|
1126
1126
|
if (arguments.length === 1 && typeof a == "number")
|
|
1127
|
-
isNaN(Jt(a)) &&
|
|
1127
|
+
isNaN(Jt(a)) && b(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1128
1128
|
else {
|
|
1129
1129
|
for (a = 0; a < arguments.length; a++)
|
|
1130
1130
|
i.h[a] = arguments[a];
|
|
@@ -1151,7 +1151,7 @@ function Ii(e, t) {
|
|
|
1151
1151
|
try {
|
|
1152
1152
|
return String(this).localeCompare(r, i, a);
|
|
1153
1153
|
} catch (s) {
|
|
1154
|
-
|
|
1154
|
+
b(e, e.D, "localeCompare: " + s.message);
|
|
1155
1155
|
}
|
|
1156
1156
|
}, $(e, e.J, "localeCompare", n), n = function(r, i, a) {
|
|
1157
1157
|
var s = String(this);
|
|
@@ -1164,8 +1164,8 @@ function Ii(e, t) {
|
|
|
1164
1164
|
}, r, a), r !== Oe && a(se(e, r));
|
|
1165
1165
|
else {
|
|
1166
1166
|
var u = e.ha(), d = He(e, r, u, a);
|
|
1167
|
-
u.onmessage = function(
|
|
1168
|
-
clearTimeout(d), a(se(e,
|
|
1167
|
+
u.onmessage = function(E) {
|
|
1168
|
+
clearTimeout(d), a(se(e, E.data));
|
|
1169
1169
|
}, u.postMessage(["split", s, r, i]);
|
|
1170
1170
|
}
|
|
1171
1171
|
return;
|
|
@@ -1214,8 +1214,8 @@ function Ii(e, t) {
|
|
|
1214
1214
|
}, r, a), r !== Oe && a(r);
|
|
1215
1215
|
else {
|
|
1216
1216
|
var u = e.ha(), d = He(e, r, u, a);
|
|
1217
|
-
u.onmessage = function(
|
|
1218
|
-
clearTimeout(d), a(
|
|
1217
|
+
u.onmessage = function(E) {
|
|
1218
|
+
clearTimeout(d), a(E.data);
|
|
1219
1219
|
}, u.postMessage(["replace", s, r, i]);
|
|
1220
1220
|
}
|
|
1221
1221
|
return;
|
|
@@ -1238,32 +1238,32 @@ function Ai(e, t) {
|
|
|
1238
1238
|
try {
|
|
1239
1239
|
return Number(this).toExponential(r);
|
|
1240
1240
|
} catch (i) {
|
|
1241
|
-
|
|
1241
|
+
b(e, e.D, i.message);
|
|
1242
1242
|
}
|
|
1243
1243
|
}, $(e, e.aa, "toExponential", n), n = function(r) {
|
|
1244
1244
|
try {
|
|
1245
1245
|
return Number(this).toFixed(r);
|
|
1246
1246
|
} catch (i) {
|
|
1247
|
-
|
|
1247
|
+
b(e, e.D, i.message);
|
|
1248
1248
|
}
|
|
1249
1249
|
}, $(e, e.aa, "toFixed", n), n = function(r) {
|
|
1250
1250
|
try {
|
|
1251
1251
|
return Number(this).toPrecision(r);
|
|
1252
1252
|
} catch (i) {
|
|
1253
|
-
|
|
1253
|
+
b(e, e.D, i.message);
|
|
1254
1254
|
}
|
|
1255
1255
|
}, $(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1256
1256
|
try {
|
|
1257
1257
|
return Number(this).toString(r);
|
|
1258
1258
|
} catch (i) {
|
|
1259
|
-
|
|
1259
|
+
b(e, e.D, i.message);
|
|
1260
1260
|
}
|
|
1261
1261
|
}, $(e, e.aa, "toString", n), n = function(r, i) {
|
|
1262
1262
|
r = r ? e.R(r) : void 0, i = i ? e.R(i) : void 0;
|
|
1263
1263
|
try {
|
|
1264
1264
|
return Number(this).toLocaleString(r, i);
|
|
1265
1265
|
} catch (a) {
|
|
1266
|
-
|
|
1266
|
+
b(e, e.D, "toLocaleString: " + a.message);
|
|
1267
1267
|
}
|
|
1268
1268
|
}, $(e, e.aa, "toLocaleString", n);
|
|
1269
1269
|
}
|
|
@@ -1279,7 +1279,7 @@ function Oi(e, t) {
|
|
|
1279
1279
|
n = function(i) {
|
|
1280
1280
|
return function(a) {
|
|
1281
1281
|
var s = this.data;
|
|
1282
|
-
s instanceof Date ||
|
|
1282
|
+
s instanceof Date || b(e, e.j, i + " not called on a Date");
|
|
1283
1283
|
for (var u = [], d = 0; d < arguments.length; d++)
|
|
1284
1284
|
u[d] = e.R(arguments[d]);
|
|
1285
1285
|
return s[i].apply(s, u);
|
|
@@ -1295,19 +1295,19 @@ function ji(e, t) {
|
|
|
1295
1295
|
return r;
|
|
1296
1296
|
a = e.s(e.Ma);
|
|
1297
1297
|
}
|
|
1298
|
-
r = r === void 0 ? "" : String(r), i = i ? String(i) : "", /^[gmi]*$/.test(i) ||
|
|
1298
|
+
r = r === void 0 ? "" : String(r), i = i ? String(i) : "", /^[gmi]*$/.test(i) || b(e, e.T, "Invalid regexp flag: " + i);
|
|
1299
1299
|
try {
|
|
1300
1300
|
var s = new ve.RegExp(r, i);
|
|
1301
1301
|
} catch (u) {
|
|
1302
|
-
|
|
1302
|
+
b(e, e.T, u.message);
|
|
1303
1303
|
}
|
|
1304
1304
|
return zt(e, a, s), a;
|
|
1305
1305
|
};
|
|
1306
1306
|
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, J), e.g(e.I.h.prototype, "ignoreCase", void 0, J), e.g(e.I.h.prototype, "multiline", void 0, J), e.g(e.I.h.prototype, "source", "(?:)", J), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, i) {
|
|
1307
1307
|
function a(k) {
|
|
1308
1308
|
if (k) {
|
|
1309
|
-
var
|
|
1310
|
-
return e.g(
|
|
1309
|
+
var w = se(e, k);
|
|
1310
|
+
return e.g(w, "index", k.index), e.g(w, "input", k.input), w;
|
|
1311
1311
|
}
|
|
1312
1312
|
return null;
|
|
1313
1313
|
}
|
|
@@ -1319,9 +1319,9 @@ function ji(e, t) {
|
|
|
1319
1319
|
regexp: s
|
|
1320
1320
|
}, s, i), r !== Oe && (e.g(this, "lastIndex", s.lastIndex), i(a(r)));
|
|
1321
1321
|
else {
|
|
1322
|
-
var u = e.ha(), d = He(e, s, u, i),
|
|
1322
|
+
var u = e.ha(), d = He(e, s, u, i), E = this;
|
|
1323
1323
|
u.onmessage = function(k) {
|
|
1324
|
-
clearTimeout(d), e.g(
|
|
1324
|
+
clearTimeout(d), e.g(E, "lastIndex", k.data[1]), i(a(k.data[0]));
|
|
1325
1325
|
}, u.postMessage(["exec", s, s.lastIndex, r]);
|
|
1326
1326
|
}
|
|
1327
1327
|
else
|
|
@@ -1356,17 +1356,17 @@ function Ni(e, t) {
|
|
|
1356
1356
|
try {
|
|
1357
1357
|
var i = JSON.parse(String(r));
|
|
1358
1358
|
} catch (a) {
|
|
1359
|
-
|
|
1359
|
+
b(e, e.T, a.message);
|
|
1360
1360
|
}
|
|
1361
1361
|
return e.Ia(i);
|
|
1362
1362
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, i, a) {
|
|
1363
|
-
i && i.H === "Function" ?
|
|
1363
|
+
i && i.H === "Function" ? b(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = dr(e, i), i = i.filter(function(u) {
|
|
1364
1364
|
return typeof u == "string" || typeof u == "number";
|
|
1365
1365
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), r = e.R(r);
|
|
1366
1366
|
try {
|
|
1367
1367
|
var s = JSON.stringify(r, i, a);
|
|
1368
1368
|
} catch (u) {
|
|
1369
|
-
|
|
1369
|
+
b(e, e.j, u.message);
|
|
1370
1370
|
}
|
|
1371
1371
|
return s;
|
|
1372
1372
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
@@ -1405,7 +1405,7 @@ function $t(e, t, n) {
|
|
|
1405
1405
|
}
|
|
1406
1406
|
P.ha = function() {
|
|
1407
1407
|
var e = this.ha.Mb;
|
|
1408
|
-
return e || (e = new Blob([
|
|
1408
|
+
return e || (e = new Blob([wi.join(`
|
|
1409
1409
|
`)], {
|
|
1410
1410
|
type: "application/javascript"
|
|
1411
1411
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1417,7 +1417,7 @@ function $e(e, t, n, r, i) {
|
|
|
1417
1417
|
try {
|
|
1418
1418
|
return le.runInNewContext(t, n, a);
|
|
1419
1419
|
} catch {
|
|
1420
|
-
i(null),
|
|
1420
|
+
i(null), b(e, e.D, "RegExp Timeout: " + r);
|
|
1421
1421
|
}
|
|
1422
1422
|
return Oe;
|
|
1423
1423
|
}
|
|
@@ -1438,13 +1438,13 @@ function We(e, t, n) {
|
|
|
1438
1438
|
r = !!le;
|
|
1439
1439
|
} else
|
|
1440
1440
|
r = !1;
|
|
1441
|
-
r || (n(null),
|
|
1441
|
+
r || (n(null), b(e, e.D, "Regular expressions not supported: " + t));
|
|
1442
1442
|
}
|
|
1443
1443
|
function He(e, t, n, r) {
|
|
1444
1444
|
return setTimeout(function() {
|
|
1445
1445
|
n.terminate(), r(null);
|
|
1446
1446
|
try {
|
|
1447
|
-
|
|
1447
|
+
b(e, e.D, "RegExp Timeout: " + t);
|
|
1448
1448
|
} catch {
|
|
1449
1449
|
}
|
|
1450
1450
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
@@ -1566,7 +1566,7 @@ function ce(e, t) {
|
|
|
1566
1566
|
P.G = function(e, t) {
|
|
1567
1567
|
if (this.P)
|
|
1568
1568
|
throw Error("Getter not supported in that context");
|
|
1569
|
-
if (t = String(t), e != null ||
|
|
1569
|
+
if (t = String(t), e != null || b(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof R))
|
|
1570
1570
|
throw TypeError("Expecting native value or pseudo object");
|
|
1571
1571
|
if (t === "length") {
|
|
1572
1572
|
if (H(this, e, this.J))
|
|
@@ -1600,15 +1600,15 @@ function ft(e, t, n) {
|
|
|
1600
1600
|
P.g = function(e, t, n, r) {
|
|
1601
1601
|
if (this.Ka)
|
|
1602
1602
|
throw Error("Setter not supported in that context");
|
|
1603
|
-
if (t = String(t), e != null ||
|
|
1603
|
+
if (t = String(t), e != null || b(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof R))
|
|
1604
1604
|
throw TypeError("Expecting native value or pseudo object");
|
|
1605
|
-
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) &&
|
|
1605
|
+
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && b(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1606
1606
|
var i = !this.o || Qt(this).S;
|
|
1607
1607
|
if (e instanceof R) {
|
|
1608
1608
|
if (H(this, e, this.J)) {
|
|
1609
1609
|
var a = Xe(t);
|
|
1610
1610
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
1611
|
-
i &&
|
|
1611
|
+
i && b(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1612
1612
|
return;
|
|
1613
1613
|
}
|
|
1614
1614
|
}
|
|
@@ -1619,7 +1619,7 @@ P.g = function(e, t, n, r) {
|
|
|
1619
1619
|
return;
|
|
1620
1620
|
n = r.value;
|
|
1621
1621
|
}
|
|
1622
|
-
if (n = Jt(n), isNaN(n) &&
|
|
1622
|
+
if (n = Jt(n), isNaN(n) && b(this, this.ob, "Invalid array length"), n < a)
|
|
1623
1623
|
for (s in e.h) {
|
|
1624
1624
|
var s = Xe(s);
|
|
1625
1625
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
@@ -1632,7 +1632,7 @@ P.g = function(e, t, n, r) {
|
|
|
1632
1632
|
try {
|
|
1633
1633
|
Object.defineProperty(e.h, t, i);
|
|
1634
1634
|
} catch {
|
|
1635
|
-
|
|
1635
|
+
b(this, this.j, "Cannot redefine property: " + t);
|
|
1636
1636
|
}
|
|
1637
1637
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1638
1638
|
} else {
|
|
@@ -1646,18 +1646,18 @@ P.g = function(e, t, n, r) {
|
|
|
1646
1646
|
if (r.Y && r.Y[t])
|
|
1647
1647
|
return this.Ka = !0, r.Y[t];
|
|
1648
1648
|
if (r.V && r.V[t])
|
|
1649
|
-
i &&
|
|
1649
|
+
i && b(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1650
1650
|
else
|
|
1651
1651
|
try {
|
|
1652
1652
|
e.h[t] = n;
|
|
1653
1653
|
} catch {
|
|
1654
|
-
i &&
|
|
1654
|
+
i && b(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1655
1655
|
}
|
|
1656
1656
|
}
|
|
1657
1657
|
else
|
|
1658
|
-
i &&
|
|
1658
|
+
i && b(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1659
1659
|
} else
|
|
1660
|
-
i &&
|
|
1660
|
+
i && b(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1661
1661
|
};
|
|
1662
1662
|
P.g.ac = function() {
|
|
1663
1663
|
throw Error("Placeholder getter");
|
|
@@ -1699,7 +1699,7 @@ function tn(e, t) {
|
|
|
1699
1699
|
}
|
|
1700
1700
|
if (n === e.N && ft(e, n.object, t))
|
|
1701
1701
|
return e.G(n.object, t);
|
|
1702
|
-
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" ||
|
|
1702
|
+
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || b(e, e.pb, t + " is not defined");
|
|
1703
1703
|
}
|
|
1704
1704
|
function hr(e, t, n) {
|
|
1705
1705
|
for (var r = Qt(e), i = r.S; r && r !== e.N; ) {
|
|
@@ -1707,7 +1707,7 @@ function hr(e, t, n) {
|
|
|
1707
1707
|
try {
|
|
1708
1708
|
r.object.h[t] = n;
|
|
1709
1709
|
} catch {
|
|
1710
|
-
i &&
|
|
1710
|
+
i && b(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1711
1711
|
}
|
|
1712
1712
|
return;
|
|
1713
1713
|
}
|
|
@@ -1715,7 +1715,7 @@ function hr(e, t, n) {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
if (r === e.N && (!i || ft(e, r.object, t)))
|
|
1717
1717
|
return e.g(r.object, t, n);
|
|
1718
|
-
|
|
1718
|
+
b(e, e.pb, t + " is not defined");
|
|
1719
1719
|
}
|
|
1720
1720
|
function Je(e, t, n) {
|
|
1721
1721
|
if (t.jb)
|
|
@@ -1775,7 +1775,7 @@ function nn(e, t) {
|
|
|
1775
1775
|
function rn(e, t, n) {
|
|
1776
1776
|
return t[0] === Pe ? hr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1778
|
+
function b(e, t, n) {
|
|
1779
1779
|
throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t), $t(e, t, n)), ze(e, 4, t), pr) : n === void 0 ? t : n;
|
|
1780
1780
|
}
|
|
1781
1781
|
function ze(e, t, n, r) {
|
|
@@ -1864,8 +1864,8 @@ function Xn(e, t, n) {
|
|
|
1864
1864
|
} else {
|
|
1865
1865
|
try {
|
|
1866
1866
|
var d = je(String(a), "taskCode" + e.ic++);
|
|
1867
|
-
} catch (
|
|
1868
|
-
|
|
1867
|
+
} catch (E) {
|
|
1868
|
+
b(e, e.T, "Invalid code: " + E.message);
|
|
1869
1869
|
}
|
|
1870
1870
|
s.type = "EvalProgram_", s.body = d.body, r = r.node.arguments[0], ut(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, i.length = 0;
|
|
1871
1871
|
}
|
|
@@ -1888,14 +1888,14 @@ function qe(e, t, n) {
|
|
|
1888
1888
|
throw Error("Unexpected call to createGetter");
|
|
1889
1889
|
e.P = !1, n = Array.isArray(n) ? n[0] : n;
|
|
1890
1890
|
var r = e.ya();
|
|
1891
|
-
return r.type = "CallExpression", e = new
|
|
1891
|
+
return r.type = "CallExpression", e = new x(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1892
1892
|
}
|
|
1893
1893
|
function on(e, t, n, r) {
|
|
1894
1894
|
if (!e.Ka)
|
|
1895
1895
|
throw Error("Unexpected call to createSetter");
|
|
1896
1896
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1897
1897
|
var i = e.ya();
|
|
1898
|
-
return i.type = "CallExpression", e = new
|
|
1898
|
+
return i.type = "CallExpression", e = new x(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1899
1899
|
}
|
|
1900
1900
|
function Vt(e, t) {
|
|
1901
1901
|
return t == null ? e.Na : t instanceof R ? t : (e = e.s(ce(e, t)), e.data = t, e);
|
|
@@ -1909,7 +1909,7 @@ P.Yb = function() {
|
|
|
1909
1909
|
P.ec = function(e) {
|
|
1910
1910
|
this.o = e;
|
|
1911
1911
|
};
|
|
1912
|
-
function
|
|
1912
|
+
function x(e, t) {
|
|
1913
1913
|
this.node = e, this.scope = t;
|
|
1914
1914
|
}
|
|
1915
1915
|
function gr(e, t, n) {
|
|
@@ -1982,16 +1982,16 @@ h.prototype.stepArrayExpression = function(e, t, n) {
|
|
|
1982
1982
|
var r = t.A || 0;
|
|
1983
1983
|
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Re(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
1984
1984
|
if (n[r])
|
|
1985
|
-
return t.A = r, new
|
|
1985
|
+
return t.A = r, new x(n[r], t.scope);
|
|
1986
1986
|
r++;
|
|
1987
1987
|
}
|
|
1988
1988
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
1989
1989
|
};
|
|
1990
1990
|
h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
1991
1991
|
if (!t.ja)
|
|
1992
|
-
return t.ja = !0, t = new
|
|
1992
|
+
return t.ja = !0, t = new x(n.left, t.scope), t.sa = !0, t;
|
|
1993
1993
|
if (!t.Da)
|
|
1994
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = nn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, qe(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new
|
|
1994
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = nn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, qe(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new x(n.right, t.scope));
|
|
1995
1995
|
if (t.ta)
|
|
1996
1996
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1997
1997
|
else {
|
|
@@ -2043,9 +2043,9 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2043
2043
|
};
|
|
2044
2044
|
h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
2045
2045
|
if (!t.ja)
|
|
2046
|
-
return t.ja = !0, new
|
|
2046
|
+
return t.ja = !0, new x(n.left, t.scope);
|
|
2047
2047
|
if (!t.Da)
|
|
2048
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2048
|
+
return t.Da = !0, t.ma = t.value, new x(n.right, t.scope);
|
|
2049
2049
|
e.pop();
|
|
2050
2050
|
var r = t.ma;
|
|
2051
2051
|
switch (t = t.value, n.operator) {
|
|
@@ -2107,10 +2107,10 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2107
2107
|
n = r >>> t;
|
|
2108
2108
|
break;
|
|
2109
2109
|
case "in":
|
|
2110
|
-
t instanceof R ||
|
|
2110
|
+
t instanceof R || b(this, this.j, "'in' expects an object, not '" + t + "'"), n = ft(this, t, r);
|
|
2111
2111
|
break;
|
|
2112
2112
|
case "instanceof":
|
|
2113
|
-
H(this, t, this.O) ||
|
|
2113
|
+
H(this, t, this.O) || b(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof R ? H(this, r, t) : !1;
|
|
2114
2114
|
break;
|
|
2115
2115
|
default:
|
|
2116
2116
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2120,7 +2120,7 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2120
2120
|
h.prototype.stepBlockStatement = function(e, t, n) {
|
|
2121
2121
|
var r = t.A || 0;
|
|
2122
2122
|
if (n = n.body[r])
|
|
2123
|
-
return t.A = r + 1, new
|
|
2123
|
+
return t.A = r + 1, new x(n, t.scope);
|
|
2124
2124
|
e.pop();
|
|
2125
2125
|
};
|
|
2126
2126
|
h.prototype.stepBreakStatement = function(e, t, n) {
|
|
@@ -2130,7 +2130,7 @@ h.prototype.Hb = 0;
|
|
|
2130
2130
|
h.prototype.stepCallExpression = function(e, t, n) {
|
|
2131
2131
|
if (!t.ia) {
|
|
2132
2132
|
t.ia = 1;
|
|
2133
|
-
var r = new
|
|
2133
|
+
var r = new x(n.callee, t.scope);
|
|
2134
2134
|
return r.sa = !0, r;
|
|
2135
2135
|
}
|
|
2136
2136
|
if (t.ia === 1) {
|
|
@@ -2145,9 +2145,9 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2145
2145
|
}
|
|
2146
2146
|
if (i = t.U, !t.Qa) {
|
|
2147
2147
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2148
|
-
return new
|
|
2148
|
+
return new x(n.arguments[t.A++], t.scope);
|
|
2149
2149
|
if (n.type === "NewExpression") {
|
|
2150
|
-
if (i instanceof R && !i.Ab ||
|
|
2150
|
+
if (i instanceof R && !i.Ab || b(this, this.j, Y(this, n.callee) + " is not a constructor"), i === this.qa)
|
|
2151
2151
|
t.B = Re(this);
|
|
2152
2152
|
else {
|
|
2153
2153
|
var a = i.h.prototype;
|
|
@@ -2160,12 +2160,12 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2160
2160
|
if (t.eb)
|
|
2161
2161
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2162
2162
|
else {
|
|
2163
|
-
if (t.eb = !0, i instanceof R ||
|
|
2163
|
+
if (t.eb = !0, i instanceof R || b(this, this.j, Y(this, n.callee) + " is not a function"), e = i.node) {
|
|
2164
2164
|
for (n = Wt(this, e.body, i.Va), r = Re(this), i = 0; i < t.F.length; i++)
|
|
2165
2165
|
this.g(r, i, t.F[i]);
|
|
2166
2166
|
for (this.g(n.object, "arguments", r), i = 0; i < e.oa.length; i++)
|
|
2167
2167
|
this.g(n.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2168
|
-
return n.S || (t.B = Vt(this, t.B)), this.g(n.object, "this", t.B, Yt), t.value = void 0, new
|
|
2168
|
+
return n.S || (t.B = Vt(this, t.B)), this.g(n.object, "this", t.B, Yt), t.value = void 0, new x(e.body, n);
|
|
2169
2169
|
}
|
|
2170
2170
|
if (i.eval)
|
|
2171
2171
|
if (i = t.F[0], typeof i != "string")
|
|
@@ -2174,9 +2174,9 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2174
2174
|
try {
|
|
2175
2175
|
r = je(String(i), "eval" + this.Hb++);
|
|
2176
2176
|
} catch (u) {
|
|
2177
|
-
|
|
2177
|
+
b(this, this.T, "Invalid code: " + u.message);
|
|
2178
2178
|
}
|
|
2179
|
-
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body, ut(i, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Wt(this, r, n) : Je(this, r, n), this.value = void 0, new
|
|
2179
|
+
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body, ut(i, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Wt(this, r, n) : Je(this, r, n), this.value = void 0, new x(i, n);
|
|
2180
2180
|
}
|
|
2181
2181
|
else if (i.Ta)
|
|
2182
2182
|
t.scope.S || (t.B = Vt(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
@@ -2186,18 +2186,18 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2186
2186
|
t.value = u, s.za = !1;
|
|
2187
2187
|
}), this.za = !0, t.scope.S || (t.B = Vt(this, t.B)), i.Za.apply(t.B, r);
|
|
2188
2188
|
} else
|
|
2189
|
-
|
|
2189
|
+
b(this, this.j, Y(this, n.callee) + " is not callable");
|
|
2190
2190
|
}
|
|
2191
2191
|
};
|
|
2192
2192
|
h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
2193
2193
|
var r = t.na || 0;
|
|
2194
2194
|
if (r === 0)
|
|
2195
|
-
return t.na = 1, new
|
|
2195
|
+
return t.na = 1, new x(n.test, t.scope);
|
|
2196
2196
|
if (r === 1) {
|
|
2197
2197
|
if (t.na = 2, (r = !!t.value) && n.da)
|
|
2198
|
-
return new
|
|
2198
|
+
return new x(n.da, t.scope);
|
|
2199
2199
|
if (!r && n.alternate)
|
|
2200
|
-
return new
|
|
2200
|
+
return new x(n.alternate, t.scope);
|
|
2201
2201
|
this.value = void 0;
|
|
2202
2202
|
}
|
|
2203
2203
|
e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
@@ -2210,11 +2210,11 @@ h.prototype.stepDebuggerStatement = function(e) {
|
|
|
2210
2210
|
};
|
|
2211
2211
|
h.prototype.stepDoWhileStatement = function(e, t, n) {
|
|
2212
2212
|
if (n.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2213
|
-
return t.ga = !0, new
|
|
2213
|
+
return t.ga = !0, new x(n.test, t.scope);
|
|
2214
2214
|
if (!t.value)
|
|
2215
2215
|
e.pop();
|
|
2216
2216
|
else if (n.body)
|
|
2217
|
-
return t.ga = !1, t.W = !0, new
|
|
2217
|
+
return t.ga = !1, t.W = !0, new x(n.body, t.scope);
|
|
2218
2218
|
};
|
|
2219
2219
|
h.prototype.stepEmptyStatement = function(e) {
|
|
2220
2220
|
e.pop();
|
|
@@ -2222,19 +2222,19 @@ h.prototype.stepEmptyStatement = function(e) {
|
|
|
2222
2222
|
h.prototype.stepEvalProgram_ = function(e, t, n) {
|
|
2223
2223
|
var r = t.A || 0;
|
|
2224
2224
|
if (n = n.body[r])
|
|
2225
|
-
return t.A = r + 1, new
|
|
2225
|
+
return t.A = r + 1, new x(n, t.scope);
|
|
2226
2226
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2227
2227
|
};
|
|
2228
2228
|
h.prototype.stepExpressionStatement = function(e, t, n) {
|
|
2229
2229
|
if (!t.ka)
|
|
2230
|
-
return this.value = void 0, t.ka = !0, new
|
|
2230
|
+
return this.value = void 0, t.ka = !0, new x(n.la, t.scope);
|
|
2231
2231
|
e.pop(), this.value = t.value;
|
|
2232
2232
|
};
|
|
2233
2233
|
h.prototype.stepForInStatement = function(e, t, n) {
|
|
2234
2234
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2235
|
-
return t.scope.S &&
|
|
2235
|
+
return t.scope.S && b(this, this.T, "for-in loop variable declaration may not have an initializer"), new x(n.left, t.scope);
|
|
2236
2236
|
if (!t.Ca)
|
|
2237
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2237
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new x(n.right, t.scope);
|
|
2238
2238
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2239
2239
|
e:
|
|
2240
2240
|
for (; ; ) {
|
|
@@ -2264,31 +2264,31 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2264
2264
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2265
2265
|
t.pa = [Pe, e.fa[0].id.name];
|
|
2266
2266
|
else
|
|
2267
|
-
return t.pa = null, t = new
|
|
2267
|
+
return t.pa = null, t = new x(e, t.scope), t.sa = !0, t;
|
|
2268
2268
|
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = rn(this, t.pa, e)))
|
|
2269
2269
|
return on(this, r, t.pa, e);
|
|
2270
2270
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2271
|
-
return new
|
|
2271
|
+
return new x(n.body, t.scope);
|
|
2272
2272
|
};
|
|
2273
2273
|
h.prototype.stepForStatement = function(e, t, n) {
|
|
2274
2274
|
switch (t.na) {
|
|
2275
2275
|
default:
|
|
2276
2276
|
if (t.na = 1, n.ua)
|
|
2277
|
-
return new
|
|
2277
|
+
return new x(n.ua, t.scope);
|
|
2278
2278
|
break;
|
|
2279
2279
|
case 1:
|
|
2280
2280
|
if (t.na = 2, n.test)
|
|
2281
|
-
return new
|
|
2281
|
+
return new x(n.test, t.scope);
|
|
2282
2282
|
break;
|
|
2283
2283
|
case 2:
|
|
2284
2284
|
if (t.na = 3, n.test && !t.value)
|
|
2285
2285
|
e.pop();
|
|
2286
2286
|
else
|
|
2287
|
-
return t.W = !0, new
|
|
2287
|
+
return t.W = !0, new x(n.body, t.scope);
|
|
2288
2288
|
break;
|
|
2289
2289
|
case 3:
|
|
2290
2290
|
if (t.na = 1, n.update)
|
|
2291
|
-
return new
|
|
2291
|
+
return new x(n.update, t.scope);
|
|
2292
2292
|
}
|
|
2293
2293
|
};
|
|
2294
2294
|
h.prototype.stepFunctionDeclaration = function(e) {
|
|
@@ -2308,7 +2308,7 @@ h.prototype.stepIdentifier = function(e, t, n) {
|
|
|
2308
2308
|
};
|
|
2309
2309
|
h.prototype.stepIfStatement = h.prototype.stepConditionalExpression;
|
|
2310
2310
|
h.prototype.stepLabeledStatement = function(e, t, n) {
|
|
2311
|
-
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new
|
|
2311
|
+
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new x(n.body, t.scope), t.labels = e, t;
|
|
2312
2312
|
};
|
|
2313
2313
|
h.prototype.stepLiteral = function(e, t, n) {
|
|
2314
2314
|
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;
|
|
@@ -2317,22 +2317,22 @@ h.prototype.stepLogicalExpression = function(e, t, n) {
|
|
|
2317
2317
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
2318
2318
|
throw SyntaxError("Unknown logical operator: " + n.operator);
|
|
2319
2319
|
if (!t.ja)
|
|
2320
|
-
return t.ja = !0, new
|
|
2320
|
+
return t.ja = !0, new x(n.left, t.scope);
|
|
2321
2321
|
if (t.Da)
|
|
2322
2322
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2323
2323
|
else if (n.operator === "&&" && !t.value || n.operator === "||" && t.value)
|
|
2324
2324
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2325
2325
|
else
|
|
2326
|
-
return t.Da = !0, new
|
|
2326
|
+
return t.Da = !0, new x(n.right, t.scope);
|
|
2327
2327
|
};
|
|
2328
2328
|
h.prototype.stepMemberExpression = function(e, t, n) {
|
|
2329
2329
|
if (!t.Ca)
|
|
2330
|
-
return t.Ca = !0, new
|
|
2330
|
+
return t.Ca = !0, new x(n.object, t.scope);
|
|
2331
2331
|
if (n.bb)
|
|
2332
2332
|
if (t.Vb)
|
|
2333
2333
|
n = t.value;
|
|
2334
2334
|
else
|
|
2335
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2335
|
+
return t.u = t.value, t.Vb = !0, new x(n.Wa, t.scope);
|
|
2336
2336
|
else
|
|
2337
2337
|
t.u = t.value, n = n.Wa.name;
|
|
2338
2338
|
if (e.pop(), t.sa)
|
|
@@ -2359,7 +2359,7 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2359
2359
|
a = s.value;
|
|
2360
2360
|
else
|
|
2361
2361
|
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2362
|
-
return t.Pa = a, new
|
|
2362
|
+
return t.Pa = a, new x(i.value, t.scope);
|
|
2363
2363
|
}
|
|
2364
2364
|
for (s in t.Ja)
|
|
2365
2365
|
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, Ye, {
|
|
@@ -2372,35 +2372,35 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2372
2372
|
};
|
|
2373
2373
|
h.prototype.stepProgram = function(e, t, n) {
|
|
2374
2374
|
if (e = n.body.shift())
|
|
2375
|
-
return t.done = !1, new
|
|
2375
|
+
return t.done = !1, new x(e, t.scope);
|
|
2376
2376
|
t.done = !0;
|
|
2377
2377
|
};
|
|
2378
2378
|
h.prototype.stepReturnStatement = function(e, t, n) {
|
|
2379
2379
|
if (n.K && !t.ka)
|
|
2380
|
-
return t.ka = !0, new
|
|
2380
|
+
return t.ka = !0, new x(n.K, t.scope);
|
|
2381
2381
|
ze(this, 3, t.value);
|
|
2382
2382
|
};
|
|
2383
2383
|
h.prototype.stepSequenceExpression = function(e, t, n) {
|
|
2384
2384
|
var r = t.A || 0;
|
|
2385
2385
|
if (n = n.xb[r])
|
|
2386
|
-
return t.A = r + 1, new
|
|
2386
|
+
return t.A = r + 1, new x(n, t.scope);
|
|
2387
2387
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2388
2388
|
};
|
|
2389
2389
|
h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
2390
2390
|
if (!t.ga)
|
|
2391
|
-
return t.ga = 1, new
|
|
2391
|
+
return t.ga = 1, new x(n.Qb, t.scope);
|
|
2392
2392
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2393
2393
|
var r = t.gb || 0, i = n.tb[r];
|
|
2394
2394
|
if (t.Ha || !i || i.test)
|
|
2395
2395
|
if (i || t.Ha || t.cb === -1)
|
|
2396
2396
|
if (i) {
|
|
2397
2397
|
if (!t.Ha && !t.Fb && i.test)
|
|
2398
|
-
return t.Fb = !0, new
|
|
2398
|
+
return t.Fb = !0, new x(i.test, t.scope);
|
|
2399
2399
|
if (t.Ha || t.value === t.hc) {
|
|
2400
2400
|
t.Ha = !0;
|
|
2401
2401
|
var a = t.A || 0;
|
|
2402
2402
|
if (i.da[a])
|
|
2403
|
-
return t.Zb = !0, t.A = a + 1, new
|
|
2403
|
+
return t.Zb = !0, t.A = a + 1, new x(i.da[a], t.scope);
|
|
2404
2404
|
}
|
|
2405
2405
|
t.Fb = !1, t.A = 0, t.gb = r + 1;
|
|
2406
2406
|
} else {
|
|
@@ -2418,22 +2418,22 @@ h.prototype.stepThisExpression = function(e) {
|
|
|
2418
2418
|
};
|
|
2419
2419
|
h.prototype.stepThrowStatement = function(e, t, n) {
|
|
2420
2420
|
if (t.ka)
|
|
2421
|
-
|
|
2421
|
+
b(this, t.value);
|
|
2422
2422
|
else
|
|
2423
|
-
return t.ka = !0, new
|
|
2423
|
+
return t.ka = !0, new x(n.K, t.scope);
|
|
2424
2424
|
};
|
|
2425
2425
|
h.prototype.stepTryStatement = function(e, t, n) {
|
|
2426
2426
|
if (!t.Rb)
|
|
2427
|
-
return t.Rb = !0, new
|
|
2427
|
+
return t.Rb = !0, new x(n.block, t.scope);
|
|
2428
2428
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2429
|
-
return t.Tb = !0, e = en(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new
|
|
2429
|
+
return t.Tb = !0, e = en(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new x(n.Ea.body, e);
|
|
2430
2430
|
if (!t.Sb && n.fb)
|
|
2431
|
-
return t.Sb = !0, new
|
|
2431
|
+
return t.Sb = !0, new x(n.fb, t.scope);
|
|
2432
2432
|
e.pop(), t.ea && ze(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2433
2433
|
};
|
|
2434
2434
|
h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
2435
2435
|
if (!t.ka)
|
|
2436
|
-
return t.ka = !0, e = new
|
|
2436
|
+
return t.ka = !0, e = new x(n.K, t.scope), e.sa = n.operator === "delete", e;
|
|
2437
2437
|
e.pop();
|
|
2438
2438
|
var r = t.value;
|
|
2439
2439
|
switch (n.operator) {
|
|
@@ -2456,7 +2456,7 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2456
2456
|
try {
|
|
2457
2457
|
delete i.h[r];
|
|
2458
2458
|
} catch {
|
|
2459
|
-
t.scope.S ?
|
|
2459
|
+
t.scope.S ? b(this, this.j, "Cannot delete property '" + r + "' of '" + i + "'") : n = !1;
|
|
2460
2460
|
}
|
|
2461
2461
|
}
|
|
2462
2462
|
r = n;
|
|
@@ -2474,7 +2474,7 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2474
2474
|
};
|
|
2475
2475
|
h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
2476
2476
|
if (!t.ja)
|
|
2477
|
-
return t.ja = !0, e = new
|
|
2477
|
+
return t.ja = !0, e = new x(n.K, t.scope), e.sa = !0, e;
|
|
2478
2478
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2479
2479
|
var r = nn(this, t.Ga);
|
|
2480
2480
|
if (t.ma = r, this.P)
|
|
@@ -2499,13 +2499,13 @@ h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2499
2499
|
var r = t.A || 0, i = n[r];
|
|
2500
2500
|
for (t.Bb && i && (hr(this, i.id.name, t.value), t.Bb = !1, i = n[++r]); i; ) {
|
|
2501
2501
|
if (i.ua)
|
|
2502
|
-
return t.A = r, t.Bb = !0, t.Pa = i.id.name, new
|
|
2502
|
+
return t.A = r, t.Bb = !0, t.Pa = i.id.name, new x(i.ua, t.scope);
|
|
2503
2503
|
i = n[++r];
|
|
2504
2504
|
}
|
|
2505
2505
|
e.pop();
|
|
2506
2506
|
};
|
|
2507
2507
|
h.prototype.stepWithStatement = function(e, t, n) {
|
|
2508
|
-
return t.Ca ? (e.pop(), e = en(this, t.scope, t.value), new
|
|
2508
|
+
return t.Ca ? (e.pop(), e = en(this, t.scope, t.value), new x(n.body, e)) : (t.Ca = !0, new x(n.object, t.scope));
|
|
2509
2509
|
};
|
|
2510
2510
|
h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
|
|
2511
2511
|
ve.Interpreter = h;
|
|
@@ -2554,37 +2554,37 @@ const Bi = (e) => e.split(`
|
|
|
2554
2554
|
context: t,
|
|
2555
2555
|
event: n,
|
|
2556
2556
|
state: u
|
|
2557
|
-
}),
|
|
2558
|
-
const
|
|
2559
|
-
return `var ${
|
|
2557
|
+
}), E = d.map(([S]) => {
|
|
2558
|
+
const v = Jn(S);
|
|
2559
|
+
return `var ${S} = ${v} === undefined ? undefined : JSON.parse(${v});`;
|
|
2560
2560
|
}).join(`
|
|
2561
2561
|
`), k = Bi(s);
|
|
2562
2562
|
if (k === "") {
|
|
2563
2563
|
q.warn("Skipping evaluation of empty code block.");
|
|
2564
2564
|
return;
|
|
2565
2565
|
}
|
|
2566
|
-
const
|
|
2566
|
+
const w = `
|
|
2567
2567
|
function theFunction() {
|
|
2568
|
-
${
|
|
2568
|
+
${E}
|
|
2569
2569
|
|
|
2570
2570
|
${k}
|
|
2571
2571
|
}
|
|
2572
2572
|
theFunction();
|
|
2573
|
-
`, M = (
|
|
2574
|
-
const N = fr(u,
|
|
2573
|
+
`, M = (S, v) => {
|
|
2574
|
+
const N = fr(u, S, v);
|
|
2575
2575
|
a == null || a(N);
|
|
2576
|
-
}, O = function(
|
|
2576
|
+
}, O = function(S, v) {
|
|
2577
2577
|
d.forEach(([N, W]) => {
|
|
2578
2578
|
const m = JSON.stringify(W);
|
|
2579
|
-
|
|
2580
|
-
}),
|
|
2579
|
+
S.setProperty(v, Jn(N), m);
|
|
2580
|
+
}), S.setProperty(v, "setRootState", S.createNativeFunction(M));
|
|
2581
2581
|
};
|
|
2582
2582
|
try {
|
|
2583
|
-
const
|
|
2584
|
-
return
|
|
2585
|
-
} catch (
|
|
2583
|
+
const S = new h(w, O);
|
|
2584
|
+
return S.run(), S.pseudoToNative(S.value);
|
|
2585
|
+
} catch (S) {
|
|
2586
2586
|
q.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2587
|
-
e:
|
|
2587
|
+
e: S
|
|
2588
2588
|
});
|
|
2589
2589
|
return;
|
|
2590
2590
|
}
|
|
@@ -2642,14 +2642,14 @@ const _i = ({
|
|
|
2642
2642
|
}
|
|
2643
2643
|
};
|
|
2644
2644
|
for (const u in e.bindings) {
|
|
2645
|
-
const d = e.bindings[u],
|
|
2645
|
+
const d = e.bindings[u], E = an({
|
|
2646
2646
|
code: d,
|
|
2647
2647
|
localState: n,
|
|
2648
2648
|
rootState: r,
|
|
2649
2649
|
rootSetState: i,
|
|
2650
2650
|
context: t
|
|
2651
2651
|
});
|
|
2652
|
-
fr(s, u,
|
|
2652
|
+
fr(s, u, E);
|
|
2653
2653
|
}
|
|
2654
2654
|
return s;
|
|
2655
2655
|
};
|
|
@@ -2712,15 +2712,15 @@ const Di = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2712
2712
|
if (!Array.isArray(i))
|
|
2713
2713
|
return;
|
|
2714
2714
|
const a = n.collection.split(".").pop(), s = n.itemName || (a ? a + "Item" : "item");
|
|
2715
|
-
return i.map((d,
|
|
2715
|
+
return i.map((d, E) => ({
|
|
2716
2716
|
context: {
|
|
2717
2717
|
...t,
|
|
2718
2718
|
localState: {
|
|
2719
2719
|
...t.localState,
|
|
2720
|
-
$index:
|
|
2720
|
+
$index: E,
|
|
2721
2721
|
$item: d,
|
|
2722
2722
|
[s]: d,
|
|
2723
|
-
[`$${s}Index`]:
|
|
2723
|
+
[`$${s}Index`]: E
|
|
2724
2724
|
}
|
|
2725
2725
|
},
|
|
2726
2726
|
block: r
|
|
@@ -2798,7 +2798,7 @@ function sn(e) {
|
|
|
2798
2798
|
});
|
|
2799
2799
|
return pe(i.hide) ? !i.hide : pe(i.show) ? i.show : !0;
|
|
2800
2800
|
}, n = function() {
|
|
2801
|
-
var
|
|
2801
|
+
var v;
|
|
2802
2802
|
const i = ct({
|
|
2803
2803
|
block: e.block,
|
|
2804
2804
|
localState: e.context.localState,
|
|
@@ -2807,29 +2807,29 @@ function sn(e) {
|
|
|
2807
2807
|
context: e.context.context,
|
|
2808
2808
|
shouldEvaluateBindings: !0
|
|
2809
2809
|
}), a = i.responsiveStyles, s = e.context.content, u = vr(
|
|
2810
|
-
((
|
|
2811
|
-
), d = a == null ? void 0 : a.large,
|
|
2812
|
-
if (!
|
|
2810
|
+
((v = s == null ? void 0 : s.meta) == null ? void 0 : v.breakpoints) || {}
|
|
2811
|
+
), d = a == null ? void 0 : a.large, E = a == null ? void 0 : a.medium, k = a == null ? void 0 : a.small, w = i.id;
|
|
2812
|
+
if (!w)
|
|
2813
2813
|
return "";
|
|
2814
2814
|
const M = d ? Dt({
|
|
2815
|
-
className:
|
|
2815
|
+
className: w,
|
|
2816
2816
|
styles: d
|
|
2817
|
-
}) : "", O =
|
|
2818
|
-
className:
|
|
2819
|
-
styles:
|
|
2817
|
+
}) : "", O = E ? Dt({
|
|
2818
|
+
className: w,
|
|
2819
|
+
styles: E,
|
|
2820
2820
|
mediaQuery: zn(
|
|
2821
2821
|
"medium",
|
|
2822
2822
|
u
|
|
2823
2823
|
)
|
|
2824
|
-
}) : "",
|
|
2825
|
-
className:
|
|
2824
|
+
}) : "", S = k ? Dt({
|
|
2825
|
+
className: w,
|
|
2826
2826
|
styles: k,
|
|
2827
2827
|
mediaQuery: zn(
|
|
2828
2828
|
"small",
|
|
2829
2829
|
u
|
|
2830
2830
|
)
|
|
2831
2831
|
}) : "";
|
|
2832
|
-
return [M, O,
|
|
2832
|
+
return [M, O, S].join(" ");
|
|
2833
2833
|
};
|
|
2834
2834
|
return /* @__PURE__ */ C(_, { children: n() && t() ? /* @__PURE__ */ C(_, { children: /* @__PURE__ */ C(dt, { styles: n() }) }) : null });
|
|
2835
2835
|
}
|
|
@@ -2975,7 +2975,7 @@ function Qi(e) {
|
|
|
2975
2975
|
);
|
|
2976
2976
|
}
|
|
2977
2977
|
function ht(e) {
|
|
2978
|
-
var
|
|
2978
|
+
var E, k, w, M;
|
|
2979
2979
|
const t = function() {
|
|
2980
2980
|
return Li({
|
|
2981
2981
|
block: e.block,
|
|
@@ -2988,7 +2988,8 @@ function ht(e) {
|
|
|
2988
2988
|
context: e.context
|
|
2989
2989
|
});
|
|
2990
2990
|
}, r = function() {
|
|
2991
|
-
|
|
2991
|
+
var S;
|
|
2992
|
+
return (S = e.block.repeat) != null && S.collection ? e.block : ct({
|
|
2992
2993
|
block: e.block,
|
|
2993
2994
|
localState: e.context.localState,
|
|
2994
2995
|
rootState: e.context.rootState,
|
|
@@ -2999,19 +3000,20 @@ function ht(e) {
|
|
|
2999
3000
|
}, i = function() {
|
|
3000
3001
|
return e.block.tagName || "div";
|
|
3001
3002
|
}, a = function() {
|
|
3002
|
-
|
|
3003
|
+
var S, v;
|
|
3004
|
+
return "hide" in r() ? !r().hide : "show" in r() ? r().show : !((S = e.block.repeat) != null && S.collection && !((v = n()) != null && v.length));
|
|
3003
3005
|
}, s = function() {
|
|
3004
|
-
var
|
|
3005
|
-
return !((
|
|
3006
|
+
var v;
|
|
3007
|
+
return !((v = t()) != null && v.component) && !n() ? r().children ?? [] : [];
|
|
3006
3008
|
}, u = function() {
|
|
3007
|
-
var
|
|
3009
|
+
var S, v, N, W, m;
|
|
3008
3010
|
return {
|
|
3009
3011
|
blockChildren: r().children ?? [],
|
|
3010
|
-
componentRef: (
|
|
3012
|
+
componentRef: (S = t()) == null ? void 0 : S.component,
|
|
3011
3013
|
componentOptions: {
|
|
3012
3014
|
...pi(r()),
|
|
3013
3015
|
builderContext: e.context,
|
|
3014
|
-
...((
|
|
3016
|
+
...((v = t()) == null ? void 0 : v.name) === "Symbol" || ((N = t()) == null ? void 0 : N.name) === "Columns" ? {
|
|
3015
3017
|
builderComponents: e.registeredComponents
|
|
3016
3018
|
} : {}
|
|
3017
3019
|
},
|
|
@@ -3022,7 +3024,7 @@ function ht(e) {
|
|
|
3022
3024
|
isInteractive: !((m = t()) != null && m.isRSC)
|
|
3023
3025
|
};
|
|
3024
3026
|
}, d = e.context;
|
|
3025
|
-
return /* @__PURE__ */ C(_, { children: a() ? /* @__PURE__ */ C(_, { children: (
|
|
3027
|
+
return /* @__PURE__ */ C(_, { children: a() ? /* @__PURE__ */ C(_, { children: (E = t()) != null && E.noWrap ? /* @__PURE__ */ C(_, { children: /* @__PURE__ */ C(
|
|
3026
3028
|
qn,
|
|
3027
3029
|
{
|
|
3028
3030
|
componentRef: u().componentRef,
|
|
@@ -3044,14 +3046,14 @@ function ht(e) {
|
|
|
3044
3046
|
hasChildren: !1
|
|
3045
3047
|
}
|
|
3046
3048
|
) }) : null,
|
|
3047
|
-
!_t(i()) && n() ? /* @__PURE__ */ C(_, { children: (k = n()) == null ? void 0 : k.map((O,
|
|
3049
|
+
!_t(i()) && n() ? /* @__PURE__ */ C(_, { children: (k = n()) == null ? void 0 : k.map((O, S) => /* @__PURE__ */ C(
|
|
3048
3050
|
Qi,
|
|
3049
3051
|
{
|
|
3050
3052
|
repeatContext: O.context,
|
|
3051
3053
|
block: O.block,
|
|
3052
3054
|
registeredComponents: e.registeredComponents
|
|
3053
3055
|
},
|
|
3054
|
-
|
|
3056
|
+
S
|
|
3055
3057
|
)) }) : null,
|
|
3056
3058
|
!_t(i()) && !n() ? /* @__PURE__ */ C(_, { children: /* @__PURE__ */ ue(
|
|
3057
3059
|
Wn,
|
|
@@ -3074,7 +3076,7 @@ function ht(e) {
|
|
|
3074
3076
|
isInteractive: u().isInteractive
|
|
3075
3077
|
}
|
|
3076
3078
|
),
|
|
3077
|
-
(
|
|
3079
|
+
(w = s()) == null ? void 0 : w.map((O) => /* @__PURE__ */ C(
|
|
3078
3080
|
ht,
|
|
3079
3081
|
{
|
|
3080
3082
|
block: O,
|
|
@@ -3129,23 +3131,23 @@ function ln(e) {
|
|
|
3129
3131
|
}
|
|
3130
3132
|
function eo(e) {
|
|
3131
3133
|
var O;
|
|
3132
|
-
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", i = function(
|
|
3134
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", i = function(v) {
|
|
3133
3135
|
var N;
|
|
3134
|
-
return ((N = n[
|
|
3135
|
-
}, a = function(
|
|
3136
|
+
return ((N = n[v]) == null ? void 0 : N.width) || 100 / n.length;
|
|
3137
|
+
}, a = function(v) {
|
|
3136
3138
|
const N = t * (n.length - 1) / n.length;
|
|
3137
|
-
return `calc(${i(
|
|
3139
|
+
return `calc(${i(v)}% - ${N}px)`;
|
|
3138
3140
|
}, s = function({
|
|
3139
|
-
stackedStyle:
|
|
3141
|
+
stackedStyle: v,
|
|
3140
3142
|
desktopStyle: N
|
|
3141
3143
|
}) {
|
|
3142
|
-
return r === "tablet" ?
|
|
3144
|
+
return r === "tablet" ? v : N;
|
|
3143
3145
|
}, u = function({
|
|
3144
|
-
stackedStyle:
|
|
3146
|
+
stackedStyle: v,
|
|
3145
3147
|
desktopStyle: N
|
|
3146
3148
|
}) {
|
|
3147
|
-
return r === "never" ? N :
|
|
3148
|
-
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
3149
|
+
return r === "never" ? N : v;
|
|
3150
|
+
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", E = function() {
|
|
3149
3151
|
return {
|
|
3150
3152
|
"--flex-dir": d,
|
|
3151
3153
|
"--flex-dir-tablet": s({
|
|
@@ -3153,8 +3155,8 @@ function eo(e) {
|
|
|
3153
3155
|
desktopStyle: "row"
|
|
3154
3156
|
})
|
|
3155
3157
|
};
|
|
3156
|
-
}, k = function(
|
|
3157
|
-
const N =
|
|
3158
|
+
}, k = function(v) {
|
|
3159
|
+
const N = v === 0 ? 0 : t, W = a(v), m = `${N}px`, de = "100%", he = 0;
|
|
3158
3160
|
return {
|
|
3159
3161
|
width: W,
|
|
3160
3162
|
["marginLeft"]: m,
|
|
@@ -3175,14 +3177,14 @@ function eo(e) {
|
|
|
3175
3177
|
desktopStyle: m
|
|
3176
3178
|
})
|
|
3177
3179
|
};
|
|
3178
|
-
},
|
|
3180
|
+
}, w = function(v) {
|
|
3179
3181
|
var W, m;
|
|
3180
3182
|
return vr(
|
|
3181
3183
|
((m = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : m.breakpoints) || {}
|
|
3182
|
-
)[
|
|
3184
|
+
)[v].max;
|
|
3183
3185
|
}, M = function() {
|
|
3184
3186
|
return `
|
|
3185
|
-
@media (max-width: ${
|
|
3187
|
+
@media (max-width: ${w("medium")}px) {
|
|
3186
3188
|
.${e.builderBlock.id}-breakpoints {
|
|
3187
3189
|
flex-direction: var(--flex-dir-tablet);
|
|
3188
3190
|
align-items: stretch;
|
|
@@ -3194,7 +3196,7 @@ function eo(e) {
|
|
|
3194
3196
|
}
|
|
3195
3197
|
}
|
|
3196
3198
|
|
|
3197
|
-
@media (max-width: ${
|
|
3199
|
+
@media (max-width: ${w("small")}px) {
|
|
3198
3200
|
.${e.builderBlock.id}-breakpoints {
|
|
3199
3201
|
flex-direction: var(--flex-dir);
|
|
3200
3202
|
align-items: stretch;
|
|
@@ -3212,27 +3214,27 @@ function eo(e) {
|
|
|
3212
3214
|
"div",
|
|
3213
3215
|
{
|
|
3214
3216
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-0d69fe26`,
|
|
3215
|
-
style:
|
|
3217
|
+
style: E(),
|
|
3216
3218
|
children: [
|
|
3217
3219
|
/* @__PURE__ */ C(_, { children: /* @__PURE__ */ C(dt, { styles: M() }) }),
|
|
3218
|
-
(O = e.columns) == null ? void 0 : O.map((
|
|
3220
|
+
(O = e.columns) == null ? void 0 : O.map((S, v) => /* @__PURE__ */ ei(
|
|
3219
3221
|
"div",
|
|
3220
3222
|
{
|
|
3221
3223
|
className: "builder-column div-0d69fe26-2",
|
|
3222
|
-
style: k(
|
|
3223
|
-
key:
|
|
3224
|
+
style: k(v),
|
|
3225
|
+
key: v
|
|
3224
3226
|
},
|
|
3225
3227
|
/* @__PURE__ */ C(
|
|
3226
3228
|
ln,
|
|
3227
3229
|
{
|
|
3228
|
-
path: `component.options.columns.${
|
|
3230
|
+
path: `component.options.columns.${v}.blocks`,
|
|
3229
3231
|
parent: e.builderBlock.id,
|
|
3230
3232
|
styleProp: {
|
|
3231
3233
|
flexGrow: "1"
|
|
3232
3234
|
},
|
|
3233
3235
|
context: e.builderContext,
|
|
3234
3236
|
registeredComponents: e.builderComponents,
|
|
3235
|
-
blocks:
|
|
3237
|
+
blocks: S.blocks
|
|
3236
3238
|
}
|
|
3237
3239
|
)
|
|
3238
3240
|
))
|
|
@@ -3284,7 +3286,7 @@ const ro = (e) => {
|
|
|
3284
3286
|
return e;
|
|
3285
3287
|
const t = e.split(".");
|
|
3286
3288
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
3287
|
-
},
|
|
3289
|
+
}, br = ({
|
|
3288
3290
|
name: e,
|
|
3289
3291
|
canTrack: t
|
|
3290
3292
|
}) => {
|
|
@@ -3295,7 +3297,7 @@ const ro = (e) => {
|
|
|
3295
3297
|
q.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3296
3298
|
return;
|
|
3297
3299
|
}
|
|
3298
|
-
},
|
|
3300
|
+
}, wr = async (e) => br(e), io = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(pe).join("; "), oo = [["secure", ""], ["SameSite", "None"]], ao = ({
|
|
3299
3301
|
name: e,
|
|
3300
3302
|
value: t,
|
|
3301
3303
|
expires: n
|
|
@@ -3322,12 +3324,12 @@ const ro = (e) => {
|
|
|
3322
3324
|
}
|
|
3323
3325
|
}, so = "builder.tests", cn = (e) => `${so}.${e}`, lo = ({
|
|
3324
3326
|
contentId: e
|
|
3325
|
-
}) =>
|
|
3327
|
+
}) => wr({
|
|
3326
3328
|
name: cn(e),
|
|
3327
3329
|
canTrack: !0
|
|
3328
3330
|
}), co = ({
|
|
3329
3331
|
contentId: e
|
|
3330
|
-
}) =>
|
|
3332
|
+
}) => br({
|
|
3331
3333
|
name: cn(e),
|
|
3332
3334
|
canTrack: !0
|
|
3333
3335
|
}), uo = ({
|
|
@@ -3695,13 +3697,13 @@ const ro = (e) => {
|
|
|
3695
3697
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3696
3698
|
hideFromUI: !0
|
|
3697
3699
|
}]
|
|
3698
|
-
}, xo = ["text/javascript", "application/javascript", "application/ecmascript"], Ta = (e) => xo.includes(e.type),
|
|
3700
|
+
}, xo = ["text/javascript", "application/javascript", "application/ecmascript"], Ta = (e) => xo.includes(e.type), bo = {
|
|
3699
3701
|
name: "Fragment",
|
|
3700
3702
|
static: !0,
|
|
3701
3703
|
hidden: !0,
|
|
3702
3704
|
canHaveChildren: !0,
|
|
3703
3705
|
noWrap: !0
|
|
3704
|
-
},
|
|
3706
|
+
}, wo = {
|
|
3705
3707
|
name: "Image",
|
|
3706
3708
|
static: !0,
|
|
3707
3709
|
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",
|
|
@@ -3722,15 +3724,15 @@ const ro = (e) => {
|
|
|
3722
3724
|
onChange: (e) => {
|
|
3723
3725
|
e.delete("srcset"), e.delete("noWebp");
|
|
3724
3726
|
function n(s, u = 6e4) {
|
|
3725
|
-
return new Promise((d,
|
|
3727
|
+
return new Promise((d, E) => {
|
|
3726
3728
|
const k = document.createElement("img");
|
|
3727
|
-
let
|
|
3729
|
+
let w = !1;
|
|
3728
3730
|
k.onload = () => {
|
|
3729
|
-
|
|
3731
|
+
w = !0, d(k);
|
|
3730
3732
|
}, k.addEventListener("error", (M) => {
|
|
3731
|
-
console.warn("Image load failed", M.error),
|
|
3733
|
+
console.warn("Image load failed", M.error), E(M.error);
|
|
3732
3734
|
}), k.src = s, setTimeout(() => {
|
|
3733
|
-
|
|
3735
|
+
w || E(new Error("Image load timed out"));
|
|
3734
3736
|
}, u);
|
|
3735
3737
|
});
|
|
3736
3738
|
}
|
|
@@ -4014,10 +4016,10 @@ const To = {
|
|
|
4014
4016
|
...vo
|
|
4015
4017
|
}, {
|
|
4016
4018
|
component: ai,
|
|
4017
|
-
...
|
|
4019
|
+
...bo
|
|
4018
4020
|
}, {
|
|
4019
4021
|
component: si,
|
|
4020
|
-
...
|
|
4022
|
+
...wo
|
|
4021
4023
|
}, {
|
|
4022
4024
|
component: li,
|
|
4023
4025
|
...So
|
|
@@ -4237,13 +4239,13 @@ const Wo = "v3", tr = "builder.", Ho = "options.", Ko = (e) => {
|
|
|
4237
4239
|
apiKey: s,
|
|
4238
4240
|
includeRefs: u = !0,
|
|
4239
4241
|
enrich: d,
|
|
4240
|
-
locale:
|
|
4242
|
+
locale: E,
|
|
4241
4243
|
apiVersion: k = Wo,
|
|
4242
|
-
fields:
|
|
4244
|
+
fields: w,
|
|
4243
4245
|
omit: M,
|
|
4244
4246
|
offset: O,
|
|
4245
|
-
cacheSeconds:
|
|
4246
|
-
staleCacheSeconds:
|
|
4247
|
+
cacheSeconds: S,
|
|
4248
|
+
staleCacheSeconds: v,
|
|
4247
4249
|
sort: N,
|
|
4248
4250
|
includeUnpublished: W
|
|
4249
4251
|
} = e;
|
|
@@ -4252,8 +4254,8 @@ const Wo = "v3", tr = "builder.", Ho = "options.", Ko = (e) => {
|
|
|
4252
4254
|
if (!["v2", "v3"].includes(k))
|
|
4253
4255
|
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${k}'`);
|
|
4254
4256
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
4255
|
-
const m = new URL(`https://cdn.builder.io/api/${k}/content/${a}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${u}${
|
|
4256
|
-
if (m.searchParams.set("omit", M || "meta.componentsUsed"),
|
|
4257
|
+
const m = new URL(`https://cdn.builder.io/api/${k}/content/${a}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${u}${E ? `&locale=${E}` : ""}${d ? `&enrich=${d}` : ""}`);
|
|
4258
|
+
if (m.searchParams.set("omit", M || "meta.componentsUsed"), w && m.searchParams.set("fields", w), Number.isFinite(O) && O > -1 && m.searchParams.set("offset", String(Math.floor(O))), typeof W == "boolean" && m.searchParams.set("includeUnpublished", String(W)), S && nr(S) && m.searchParams.set("cacheSeconds", String(S)), v && nr(v) && m.searchParams.set("staleCacheSeconds", String(v)), N) {
|
|
4257
4259
|
const Z = lt({
|
|
4258
4260
|
sort: N
|
|
4259
4261
|
});
|
|
@@ -4340,7 +4342,7 @@ const Nr = "builderSessionId", qo = async ({
|
|
|
4340
4342
|
}) => {
|
|
4341
4343
|
if (!e)
|
|
4342
4344
|
return;
|
|
4343
|
-
const t = await
|
|
4345
|
+
const t = await wr({
|
|
4344
4346
|
name: Nr,
|
|
4345
4347
|
canTrack: e
|
|
4346
4348
|
});
|
|
@@ -4510,7 +4512,7 @@ const la = (e, t, n = !0) => {
|
|
|
4510
4512
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4511
4513
|
}
|
|
4512
4514
|
};
|
|
4513
|
-
}, ua = "0.7.
|
|
4515
|
+
}, ua = "0.7.5", or = {};
|
|
4514
4516
|
function fa(e, t) {
|
|
4515
4517
|
let n = or[e];
|
|
4516
4518
|
if (n || (n = or[e] = []), n.push(t), G()) {
|
|
@@ -4577,18 +4579,18 @@ const Ua = (e = {}) => {
|
|
|
4577
4579
|
if (r != null && r.type)
|
|
4578
4580
|
switch (r.type) {
|
|
4579
4581
|
case "builder.evaluate": {
|
|
4580
|
-
const s = r.data.text, u = r.data.arguments || [], d = r.data.id,
|
|
4581
|
-
let k,
|
|
4582
|
+
const s = r.data.text, u = r.data.arguments || [], d = r.data.id, E = new Function(s);
|
|
4583
|
+
let k, w = null;
|
|
4582
4584
|
try {
|
|
4583
|
-
k =
|
|
4585
|
+
k = E.apply(null, u);
|
|
4584
4586
|
} catch (M) {
|
|
4585
|
-
|
|
4587
|
+
w = M;
|
|
4586
4588
|
}
|
|
4587
|
-
|
|
4589
|
+
w ? (i = window.parent) == null || i.postMessage({
|
|
4588
4590
|
type: "builder.evaluateError",
|
|
4589
4591
|
data: {
|
|
4590
4592
|
id: d,
|
|
4591
|
-
error:
|
|
4593
|
+
error: w.message
|
|
4592
4594
|
}
|
|
4593
4595
|
}, "*") : k && typeof k.then == "function" ? k.then((M) => {
|
|
4594
4596
|
var O;
|
|
@@ -4676,22 +4678,17 @@ const ga = ({
|
|
|
4676
4678
|
locale: n
|
|
4677
4679
|
}) => {
|
|
4678
4680
|
var a, s, u;
|
|
4679
|
-
const r = {};
|
|
4680
|
-
(
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
...(u = e == null ? void 0 : e.data) == null ? void 0 : u.state,
|
|
4681
|
+
const r = {}, i = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
4682
|
+
return (u = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || u.forEach((d) => {
|
|
4683
|
+
d.name && d.defaultValue !== void 0 && (r[d.name] = d.defaultValue);
|
|
4684
|
+
}), {
|
|
4685
|
+
...r,
|
|
4686
|
+
...i,
|
|
4686
4687
|
...t,
|
|
4687
4688
|
...n ? {
|
|
4688
4689
|
locale: n
|
|
4689
4690
|
} : {}
|
|
4690
4691
|
};
|
|
4691
|
-
return {
|
|
4692
|
-
...r,
|
|
4693
|
-
...i
|
|
4694
|
-
};
|
|
4695
4692
|
}, ya = ({
|
|
4696
4693
|
content: e,
|
|
4697
4694
|
data: t
|
|
@@ -4704,7 +4701,7 @@ const ga = ({
|
|
|
4704
4701
|
meta: e == null ? void 0 : e.meta
|
|
4705
4702
|
} : void 0;
|
|
4706
4703
|
function sr(e) {
|
|
4707
|
-
var i, a, s, u, d,
|
|
4704
|
+
var i, a, s, u, d, E, k, w, M;
|
|
4708
4705
|
const t = Bo({
|
|
4709
4706
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4710
4707
|
variationId: (i = e.content) == null ? void 0 : i.testVariationId,
|
|
@@ -4720,11 +4717,11 @@ function sr(e) {
|
|
|
4720
4717
|
...er,
|
|
4721
4718
|
...e.customComponents || []
|
|
4722
4719
|
].reduce(
|
|
4723
|
-
(O, { component:
|
|
4720
|
+
(O, { component: S, ...v }) => ({
|
|
4724
4721
|
...O,
|
|
4725
|
-
[
|
|
4726
|
-
component:
|
|
4727
|
-
...Kt(
|
|
4722
|
+
[v.name]: {
|
|
4723
|
+
component: S,
|
|
4724
|
+
...Kt(v)
|
|
4728
4725
|
}
|
|
4729
4726
|
}),
|
|
4730
4727
|
{}
|
|
@@ -4753,9 +4750,9 @@ function sr(e) {
|
|
|
4753
4750
|
...er,
|
|
4754
4751
|
...e.customComponents || []
|
|
4755
4752
|
].reduce(
|
|
4756
|
-
(O, { component:
|
|
4753
|
+
(O, { component: S, ...v }) => ({
|
|
4757
4754
|
...O,
|
|
4758
|
-
[
|
|
4755
|
+
[v.name]: Kt(v)
|
|
4759
4756
|
}),
|
|
4760
4757
|
{}
|
|
4761
4758
|
),
|
|
@@ -4781,13 +4778,13 @@ function sr(e) {
|
|
|
4781
4778
|
{
|
|
4782
4779
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
4783
4780
|
cssCode: (d = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : d.cssCode,
|
|
4784
|
-
customFonts: (k = (
|
|
4781
|
+
customFonts: (k = (E = r.content) == null ? void 0 : E.data) == null ? void 0 : k.customFonts
|
|
4785
4782
|
}
|
|
4786
4783
|
) }),
|
|
4787
4784
|
/* @__PURE__ */ C(
|
|
4788
4785
|
ln,
|
|
4789
4786
|
{
|
|
4790
|
-
blocks: (M = (
|
|
4787
|
+
blocks: (M = (w = r.content) == null ? void 0 : w.data) == null ? void 0 : M.blocks,
|
|
4791
4788
|
context: r,
|
|
4792
4789
|
registeredComponents: n
|
|
4793
4790
|
}
|
|
@@ -4804,9 +4801,9 @@ function Br(e) {
|
|
|
4804
4801
|
}), n = function() {
|
|
4805
4802
|
var d;
|
|
4806
4803
|
return Uo(
|
|
4807
|
-
st(e.content).map((
|
|
4808
|
-
id:
|
|
4809
|
-
testRatio:
|
|
4804
|
+
st(e.content).map((E) => ({
|
|
4805
|
+
id: E.testVariationId,
|
|
4806
|
+
testRatio: E.testRatio
|
|
4810
4807
|
})),
|
|
4811
4808
|
((d = e.content) == null ? void 0 : d.id) || ""
|
|
4812
4809
|
);
|
|
@@ -4895,12 +4892,12 @@ const va = async ({
|
|
|
4895
4892
|
async function xa(e) {
|
|
4896
4893
|
var r, i, a, s;
|
|
4897
4894
|
const t = function() {
|
|
4898
|
-
var d,
|
|
4895
|
+
var d, E;
|
|
4899
4896
|
return [
|
|
4900
4897
|
e.attributes.className,
|
|
4901
4898
|
"builder-symbol",
|
|
4902
4899
|
(d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
|
|
4903
|
-
(
|
|
4900
|
+
(E = e.symbol) != null && E.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4904
4901
|
].filter(Boolean).join(" ");
|
|
4905
4902
|
}, n = ((r = e.symbol) == null ? void 0 : r.content) || await va({
|
|
4906
4903
|
symbol: e.symbol,
|