@builder.io/sdk-react 1.0.22 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +1 -1
- package/lib/browser/blocks-exports.mjs +49 -51
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-3e30c656.js → server-entry-4ca9f249.js} +1 -1
- package/lib/browser/{server-entry-8951c0c5.cjs → server-entry-f69e2b2a.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{blocks-5705f416.cjs → blocks-5539f58f.cjs} +8 -8
- package/lib/edge/{blocks-b1f5ec2b.js → blocks-93608689.js} +68 -70
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-3c20ccff.cjs → button-7e98d8f3.cjs} +1 -1
- package/lib/edge/{button-2b710146.js → button-8816ab35.js} +2 -2
- package/lib/edge/{columns-761d98c4.cjs → columns-8db639b5.cjs} +1 -1
- package/lib/edge/{columns-38a397cd.js → columns-d065e3c4.js} +3 -3
- package/lib/edge/{content-variants-befe3587.cjs → content-variants-44d061f2.cjs} +1 -1
- package/lib/edge/{content-variants-f165fa88.js → content-variants-f416bff5.js} +8 -8
- package/lib/edge/{form-b0d65d74.cjs → form-44ceed15.cjs} +1 -1
- package/lib/edge/{form-d0cfb830.js → form-8526db32.js} +3 -3
- package/lib/edge/{get-class-prop-name-27f8a4f1.cjs → get-class-prop-name-7b951501.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-49d9b54f.js → get-class-prop-name-e85bf7a3.js} +1 -1
- package/lib/edge/{img-e321016e.js → img-5ef224a8.js} +1 -1
- package/lib/edge/{img-fcf6e57f.cjs → img-a5802e2b.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-27f575fe.js → input-3f85283b.js} +1 -1
- package/lib/edge/{input-f0319ee6.cjs → input-f1aa0191.cjs} +1 -1
- package/lib/edge/{select-dd4c61db.js → select-4fe889b6.js} +1 -1
- package/lib/edge/{select-e31522ee.cjs → select-d4c018c0.cjs} +1 -1
- package/lib/edge/{server-entry-dd363108.cjs → server-entry-c4b7844d.cjs} +1 -1
- package/lib/edge/{server-entry-253a0fa1.js → server-entry-e1e18fd2.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-a2388031.cjs → slot-2a11e808.cjs} +1 -1
- package/lib/edge/{slot-fea27ccf.js → slot-97599025.js} +3 -3
- package/lib/edge/{symbol-686edeb8.js → symbol-a90a41a3.js} +2 -2
- package/lib/edge/{symbol-ba2c6245.cjs → symbol-dbb5c95e.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +1 -1
- package/lib/node/blocks-exports.mjs +53 -55
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-fa43cf07.cjs → node-runtime-11a8cdfe.cjs} +1 -1
- package/lib/node/{node-runtime-6587ed2e.js → node-runtime-8062cfb8.js} +1 -1
- package/lib/node/{server-entry-14d7a1d0.js → server-entry-3e54c767.js} +1 -1
- package/lib/node/{server-entry-3abae5dd.cjs → server-entry-461bfaf9.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
|
@@ -4,8 +4,8 @@ var Mt = (e, t, n) => (En(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
|
4
4
|
import { jsx as T, Fragment as Z, jsxs as Dt } from "react/jsx-runtime";
|
|
5
5
|
import { createContext as Cn, useState as $r, useEffect as jn, useContext as Rr } from "react";
|
|
6
6
|
import { BuilderContext as Gr } from "./blocks-exports.mjs";
|
|
7
|
-
import { isEditing as Ut, isBrowser as Ft, getUserAttributes as On, logger as
|
|
8
|
-
import { getClassPropName as An } from "./get-class-prop-name-
|
|
7
|
+
import { isEditing as Ut, isBrowser as Ft, getUserAttributes as On, logger as it, checkIsDefined as st, fastClone as Vr, TARGET as Xr } from "./server-entry-e1e18fd2.js";
|
|
8
|
+
import { getClassPropName as An } from "./get-class-prop-name-e85bf7a3.js";
|
|
9
9
|
import { DynamicRenderer as In } from "./dynamic-renderer-8b343325.js";
|
|
10
10
|
const Hr = (e, t, n) => {
|
|
11
11
|
if (Object(e) !== e)
|
|
@@ -98,8 +98,8 @@ var b, Mn = function(e) {
|
|
|
98
98
|
}
|
|
99
99
|
function r(i, l) {
|
|
100
100
|
for (var u = d, p = 1, x = 0; ; ) {
|
|
101
|
-
|
|
102
|
-
var F =
|
|
101
|
+
nt.lastIndex = x;
|
|
102
|
+
var F = nt.exec(u);
|
|
103
103
|
if (F && F.index < i)
|
|
104
104
|
++p, x = F.index + F[0].length;
|
|
105
105
|
else
|
|
@@ -145,7 +145,7 @@ var b, Mn = function(e) {
|
|
|
145
145
|
i = void 0;
|
|
146
146
|
var l = j.va && j.C && new s(), u = c, p = d.indexOf("*/", c += 2);
|
|
147
147
|
if (p === -1 && r(c - 2, "Unterminated comment"), c = p + 2, j.C)
|
|
148
|
-
for (
|
|
148
|
+
for (nt.lastIndex = u; (i = nt.exec(d)) && i.index < c; )
|
|
149
149
|
++de, re = i.index + i[0].length;
|
|
150
150
|
j.va && j.va(!0, d.slice(u + 2, p), u, c, l, j.C && new s());
|
|
151
151
|
} else if (i === 47)
|
|
@@ -207,7 +207,7 @@ var b, Mn = function(e) {
|
|
|
207
207
|
c >= ve && r(U, "Unterminated string constant");
|
|
208
208
|
var u = d.charCodeAt(c);
|
|
209
209
|
if (u === i) {
|
|
210
|
-
++c, a(
|
|
210
|
+
++c, a(qe, l);
|
|
211
211
|
break;
|
|
212
212
|
}
|
|
213
213
|
if (u === 92) {
|
|
@@ -278,7 +278,7 @@ var b, Mn = function(e) {
|
|
|
278
278
|
return;
|
|
279
279
|
case 43:
|
|
280
280
|
case 45:
|
|
281
|
-
l = d.charCodeAt(c + 1), l === i ? l === 45 && d.charCodeAt(c + 2) === 62 &&
|
|
281
|
+
l = d.charCodeAt(c + 1), l === i ? l === 45 && d.charCodeAt(c + 2) === 62 && rt.test(d.slice(fe, c)) ? (c += 3, f(), g(), C()) : w(ln, 2) : l === 61 ? w(ye, 2) : w(dn, 1);
|
|
282
282
|
return;
|
|
283
283
|
case 60:
|
|
284
284
|
case 62:
|
|
@@ -314,7 +314,7 @@ var b, Mn = function(e) {
|
|
|
314
314
|
for (var i, l, u = c; ; ) {
|
|
315
315
|
c >= ve && r(u, "Unterminated regexp");
|
|
316
316
|
var p = d.charAt(c);
|
|
317
|
-
if (
|
|
317
|
+
if (rt.test(p) && r(u, "Unterminated regexp"), i)
|
|
318
318
|
i = !1;
|
|
319
319
|
else {
|
|
320
320
|
if (p === "[")
|
|
@@ -406,11 +406,11 @@ var b, Mn = function(e) {
|
|
|
406
406
|
function P(i) {
|
|
407
407
|
return S === i ? (k(), !0) : !1;
|
|
408
408
|
}
|
|
409
|
-
function
|
|
410
|
-
return !j.fc && (S === Et || S === Se ||
|
|
409
|
+
function Ze() {
|
|
410
|
+
return !j.fc && (S === Et || S === Se || rt.test(d.slice(fe, U)));
|
|
411
411
|
}
|
|
412
412
|
function ge() {
|
|
413
|
-
P(oe) ||
|
|
413
|
+
P(oe) || Ze() || ee();
|
|
414
414
|
}
|
|
415
415
|
function M(i) {
|
|
416
416
|
S === i ? k() : ee();
|
|
@@ -418,8 +418,8 @@ var b, Mn = function(e) {
|
|
|
418
418
|
function ee() {
|
|
419
419
|
r(U, "Unexpected token");
|
|
420
420
|
}
|
|
421
|
-
function
|
|
422
|
-
i.type !== "Identifier" && i.type !== "MemberExpression" && r(i.start, "Assigning to rvalue"), H && i.type === "Identifier" &&
|
|
421
|
+
function ze(i) {
|
|
422
|
+
i.type !== "Identifier" && i.type !== "MemberExpression" && r(i.start, "Assigning to rvalue"), H && i.type === "Identifier" && tt(i.name) && r(i.start, "Assigning to " + i.name + " in strict mode");
|
|
423
423
|
}
|
|
424
424
|
function Y() {
|
|
425
425
|
(S === Or || S === ye && J === "/=") && C(!0);
|
|
@@ -429,7 +429,7 @@ var b, Mn = function(e) {
|
|
|
429
429
|
case ar:
|
|
430
430
|
k();
|
|
431
431
|
var u = i === Ct;
|
|
432
|
-
P(oe) ||
|
|
432
|
+
P(oe) || Ze() ? l.label = null : S !== we ? ee() : (l.label = te(), ge());
|
|
433
433
|
for (var p = 0; p < B.length; ++p) {
|
|
434
434
|
var x = B[p];
|
|
435
435
|
if ((l.label === null || x.name === l.label.name) && (x.kind !== null && (u || x.kind === "loop") || l.label && u))
|
|
@@ -441,21 +441,21 @@ var b, Mn = function(e) {
|
|
|
441
441
|
case cr:
|
|
442
442
|
return k(), B.push(Pt), l.body = Y(), B.pop(), M(bt), l.test = Te(), ge(), E(l, "DoWhileStatement");
|
|
443
443
|
case hr:
|
|
444
|
-
return k(), B.push(Pt), M(ne), S === oe ? pt(l, null) : S === It ? (i = _(), k(), nr(i, !0), E(i, "VariableDeclaration"), i.fa.length === 1 && P(
|
|
444
|
+
return k(), B.push(Pt), M(ne), S === oe ? pt(l, null) : S === It ? (i = _(), k(), nr(i, !0), E(i, "VariableDeclaration"), i.fa.length === 1 && P(et) ? rr(l, i) : pt(l, i)) : (i = $(!1, !0), P(et) ? (ze(i), rr(l, i)) : pt(l, i));
|
|
445
445
|
case Ot:
|
|
446
446
|
return k(), yt(l, !0);
|
|
447
447
|
case gr:
|
|
448
448
|
return k(), l.test = Te(), l.da = Y(), l.alternate = P(fr) ? Y() : null, E(l, "IfStatement");
|
|
449
449
|
case dr:
|
|
450
|
-
return Me || j.Ib || r(U, "'return' outside of function"), k(), P(oe) ||
|
|
450
|
+
return Me || j.Ib || r(U, "'return' outside of function"), k(), P(oe) || Ze() ? l.K = null : (l.K = $(), ge()), E(l, "ReturnStatement");
|
|
451
451
|
case At:
|
|
452
452
|
for (k(), l.Qb = Te(), l.tb = [], M(De), B.push(xn); S !== Se; )
|
|
453
453
|
S === jt || S === ur ? (i = S === jt, p && E(p, "SwitchCase"), l.tb.push(p = _()), p.da = [], k(), i ? p.test = $() : (u && r(xt, "Multiple default clauses"), u = !0, p.test = null), M(Ue)) : (p || ee(), p.da.push(Y()));
|
|
454
454
|
return p && E(p, "SwitchCase"), k(), B.pop(), E(l, "SwitchStatement");
|
|
455
455
|
case yr:
|
|
456
|
-
return k(),
|
|
456
|
+
return k(), rt.test(d.slice(fe, U)) && r(fe, "Illegal newline after throw"), l.K = $(), ge(), E(l, "ThrowStatement");
|
|
457
457
|
case vr:
|
|
458
|
-
return k(), l.block = Ne(), l.Ea = null, S === sr && (i = _(), k(), M(ne), i.Ua = te(), H &&
|
|
458
|
+
return k(), l.block = Ne(), l.Ea = null, S === sr && (i = _(), k(), M(ne), i.Ua = te(), H && tt(i.Ua.name) && r(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), M(q), i.body = Ne(), l.Ea = E(i, "CatchClause")), l.fb = P(pr) ? Ne() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
459
459
|
case It:
|
|
460
460
|
return k(), nr(l), ge(), E(l, "VariableDeclaration");
|
|
461
461
|
case bt:
|
|
@@ -504,7 +504,7 @@ var b, Mn = function(e) {
|
|
|
504
504
|
function nr(i, l) {
|
|
505
505
|
for (i.fa = [], i.kind = "var"; ; ) {
|
|
506
506
|
var u = _();
|
|
507
|
-
if (u.id = te(), H &&
|
|
507
|
+
if (u.id = te(), H && tt(u.id.name) && r(u.id.start, "Binding " + u.id.name + " in strict mode"), u.ua = P(Ar) ? $(!0, l) : null, i.fa.push(E(u, "VariableDeclarator")), !P(pe))
|
|
508
508
|
break;
|
|
509
509
|
}
|
|
510
510
|
}
|
|
@@ -523,11 +523,11 @@ var b, Mn = function(e) {
|
|
|
523
523
|
var u = ce(l);
|
|
524
524
|
u.test = l, u.da = $(!0), M(Ue), u.alternate = $(!0, i), l = E(u, "ConditionalExpression");
|
|
525
525
|
}
|
|
526
|
-
return S.Cb ? (u = ce(l), u.operator = J, u.left = l, k(), u.right = ht(i),
|
|
526
|
+
return S.Cb ? (u = ce(l), u.operator = J, u.left = l, k(), u.right = ht(i), ze(l), E(u, "AssignmentExpression")) : l;
|
|
527
527
|
}
|
|
528
528
|
function gt(i, l, u) {
|
|
529
529
|
var p = S.L;
|
|
530
|
-
if (p !== null && (!u || S !==
|
|
530
|
+
if (p !== null && (!u || S !== et) && p > l) {
|
|
531
531
|
var x = ce(i);
|
|
532
532
|
return x.left = i, x.operator = J, i = S, k(), x.right = gt(dt(), p, u), p = E(x, i === br || i === Tr ? "LogicalExpression" : "BinaryExpression"), gt(p, l, u);
|
|
533
533
|
}
|
|
@@ -536,10 +536,10 @@ var b, Mn = function(e) {
|
|
|
536
536
|
function dt() {
|
|
537
537
|
if (S.prefix) {
|
|
538
538
|
var i = _(), l = S.$b;
|
|
539
|
-
return i.operator = J, Re = i.prefix = !0, k(), i.K = dt(), l ?
|
|
539
|
+
return i.operator = J, Re = i.prefix = !0, k(), i.K = dt(), l ? ze(i.K) : H && i.operator === "delete" && i.K.type === "Identifier" && r(i.start, "Deleting local variable in strict mode"), E(i, l ? "UpdateExpression" : "UnaryExpression");
|
|
540
540
|
}
|
|
541
|
-
for (l = Pe(
|
|
542
|
-
i = ce(l), i.operator = J, i.prefix = !1, i.K = l,
|
|
541
|
+
for (l = Pe(Qe()); S.cc && !Ze(); )
|
|
542
|
+
i = ce(l), i.operator = J, i.prefix = !1, i.K = l, ze(l), k(), l = E(i, "UpdateExpression");
|
|
543
543
|
return l;
|
|
544
544
|
}
|
|
545
545
|
function Pe(i, l) {
|
|
@@ -549,7 +549,7 @@ var b, Mn = function(e) {
|
|
|
549
549
|
}
|
|
550
550
|
return P(Tt) ? (u = ce(i), u.object = i, u.Wa = $(), u.bb = !0, M(Nt), Pe(E(u, "MemberExpression"), l)) : !l && P(ne) ? (u = ce(i), u.callee = i, u.arguments = vt(q, !1), Pe(E(u, "CallExpression"), l)) : i;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Qe() {
|
|
553
553
|
switch (S) {
|
|
554
554
|
case Sr:
|
|
555
555
|
var i = _();
|
|
@@ -557,7 +557,7 @@ var b, Mn = function(e) {
|
|
|
557
557
|
case we:
|
|
558
558
|
return te();
|
|
559
559
|
case Be:
|
|
560
|
-
case
|
|
560
|
+
case qe:
|
|
561
561
|
case ir:
|
|
562
562
|
return i = _(), i.value = J, i.raw = d.slice(U, me), k(), E(i, "Literal");
|
|
563
563
|
case xr:
|
|
@@ -579,13 +579,13 @@ var b, Mn = function(e) {
|
|
|
579
579
|
else if (M(pe), j.sb && P(Se))
|
|
580
580
|
break;
|
|
581
581
|
var p = {
|
|
582
|
-
key: S === Be || S ===
|
|
582
|
+
key: S === Be || S === qe ? Qe() : te(!0)
|
|
583
583
|
}, x = !1;
|
|
584
584
|
if (P(Ue)) {
|
|
585
585
|
p.value = $(!0);
|
|
586
586
|
var F = p.kind = "init";
|
|
587
587
|
} else
|
|
588
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ee() : (x = u = !0, F = p.kind = p.key.name, p.key = S === Be || S ===
|
|
588
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ee() : (x = u = !0, F = p.kind = p.key.name, p.key = S === Be || S === qe ? Qe() : te(!0), S !== ne && ee(), p.value = yt(_(), !1));
|
|
589
589
|
if (p.key.type === "Identifier" && (H || u))
|
|
590
590
|
for (var G = 0; G < i.h.length; ++G) {
|
|
591
591
|
var ke = i.h[G];
|
|
@@ -600,7 +600,7 @@ var b, Mn = function(e) {
|
|
|
600
600
|
case Ot:
|
|
601
601
|
return i = _(), k(), yt(i, !1);
|
|
602
602
|
case wr:
|
|
603
|
-
return i = _(), k(), i.callee = Pe(
|
|
603
|
+
return i = _(), k(), i.callee = Pe(Qe(), !0), i.arguments = P(ne) ? vt(q, !1) : sn, E(i, "NewExpression");
|
|
604
604
|
}
|
|
605
605
|
ee();
|
|
606
606
|
}
|
|
@@ -613,7 +613,7 @@ var b, Mn = function(e) {
|
|
|
613
613
|
var p = B;
|
|
614
614
|
if (Me = !0, B = [], i.body = Ne(!0), Me = u, B = p, H || i.body.body.length && ft(i.body.body[0])) {
|
|
615
615
|
for (u = i.id ? -1 : 0; u < i.oa.length; ++u)
|
|
616
|
-
if (p = 0 > u ? i.id : i.oa[u], (Nr(p.name) ||
|
|
616
|
+
if (p = 0 > u ? i.id : i.oa[u], (Nr(p.name) || tt(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= u)
|
|
617
617
|
for (var x = 0; x < u; ++x)
|
|
618
618
|
p.name === i.oa[x].name && r(p.start, "Argument name clash in strict mode");
|
|
619
619
|
}
|
|
@@ -658,7 +658,7 @@ var b, Mn = function(e) {
|
|
|
658
658
|
type: "num"
|
|
659
659
|
}, ir = {
|
|
660
660
|
type: "regexp"
|
|
661
|
-
},
|
|
661
|
+
}, qe = {
|
|
662
662
|
type: "string"
|
|
663
663
|
}, we = {
|
|
664
664
|
type: "name"
|
|
@@ -723,7 +723,7 @@ var b, Mn = function(e) {
|
|
|
723
723
|
}, Er = {
|
|
724
724
|
l: "false",
|
|
725
725
|
$a: !1
|
|
726
|
-
},
|
|
726
|
+
}, et = {
|
|
727
727
|
l: "in",
|
|
728
728
|
L: 7,
|
|
729
729
|
m: !0
|
|
@@ -751,7 +751,7 @@ var b, Mn = function(e) {
|
|
|
751
751
|
true: kr,
|
|
752
752
|
false: Er,
|
|
753
753
|
new: wr,
|
|
754
|
-
in:
|
|
754
|
+
in: et,
|
|
755
755
|
instanceof: {
|
|
756
756
|
l: "instanceof",
|
|
757
757
|
L: 7,
|
|
@@ -849,7 +849,7 @@ var b, Mn = function(e) {
|
|
|
849
849
|
}, yn = {
|
|
850
850
|
L: 10,
|
|
851
851
|
m: !0
|
|
852
|
-
}, vn = o("class enum extends super const export import"), Nr = o("implements interface let package private protected public static yield"),
|
|
852
|
+
}, vn = o("class enum extends super const export import"), Nr = o("implements interface let package private protected public static yield"), tt = o("eval arguments"), mn = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), wn = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Pr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Sn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), rt = /[\n\r\u2028\u2029]/, nt = /\r\n|[\n\r\u2028\u2029]/g, xe, Pt = {
|
|
853
853
|
kind: "loop"
|
|
854
854
|
}, xn = {
|
|
855
855
|
kind: "switch"
|
|
@@ -901,7 +901,7 @@ var Mr = {
|
|
|
901
901
|
STEP_ERROR: !0
|
|
902
902
|
}, Ae = {
|
|
903
903
|
SCOPE_REFERENCE: !0
|
|
904
|
-
},
|
|
904
|
+
}, He = {
|
|
905
905
|
VALUE_IN_DESCRIPTOR: !0
|
|
906
906
|
}, Ee = {
|
|
907
907
|
REGEXP_TIMEOUT: !0
|
|
@@ -942,7 +942,7 @@ b.Jb = function(e) {
|
|
|
942
942
|
throw Error("Expecting original AST to start with a Program node");
|
|
943
943
|
if (typeof e == "string" && (e = je(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
944
944
|
throw Error("Expecting new AST to start with a Program node");
|
|
945
|
-
|
|
945
|
+
Ke(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
946
946
|
};
|
|
947
947
|
b.lb = function() {
|
|
948
948
|
var e = this.o, t;
|
|
@@ -1068,7 +1068,7 @@ function Fn(e, t) {
|
|
|
1068
1068
|
}, e.g(e.v, "keys", e.i(r, !1), y), r = function(o) {
|
|
1069
1069
|
return o === null ? e.s(null) : (o instanceof A || m(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1070
1070
|
}, e.g(e.v, "create", e.i(r, !1), y), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, s, a) {
|
|
1071
|
-
return s = String(s), o instanceof A || m(e, e.j, "Object.defineProperty called on non-object: " + o), a instanceof A || m(e, e.j, "Property description must be an object"), !o.preventExtensions || s in o.h || m(e, e.j, "Can't define property '" + s + "', object is not extensible"), e.g(o, s,
|
|
1071
|
+
return s = String(s), o instanceof A || m(e, e.j, "Object.defineProperty called on non-object: " + o), a instanceof A || m(e, e.j, "Property description must be an object"), !o.preventExtensions || s in o.h || m(e, e.j, "Can't define property '" + s + "', object is not extensible"), e.g(o, s, He, a.h), o;
|
|
1072
1072
|
}, e.g(e.v, "defineProperty", e.i(r, !1), y), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, s) {
|
|
1073
1073
|
if (o instanceof A || m(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), s = String(s), s in o.h) {
|
|
1074
1074
|
var a = Object.getOwnPropertyDescriptor(o.h, s), f = o.V[s];
|
|
@@ -1601,7 +1601,7 @@ b.g = function(e, t, n, r) {
|
|
|
1601
1601
|
isNaN(a = Ve(t)) || (e.h.length = Math.max(s, a + 1));
|
|
1602
1602
|
if (!e.preventExtensions || t in e.h)
|
|
1603
1603
|
if (r) {
|
|
1604
|
-
o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !==
|
|
1604
|
+
o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== He && (o.value = n, delete e.V[t], delete e.Y[t]);
|
|
1605
1605
|
try {
|
|
1606
1606
|
Object.defineProperty(e.h, t, o);
|
|
1607
1607
|
} catch {
|
|
@@ -1609,7 +1609,7 @@ b.g = function(e, t, n, r) {
|
|
|
1609
1609
|
}
|
|
1610
1610
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1611
1611
|
} else {
|
|
1612
|
-
if (n ===
|
|
1612
|
+
if (n === He)
|
|
1613
1613
|
throw ReferenceError("Value not specified");
|
|
1614
1614
|
for (r = e; !(t in r.h); )
|
|
1615
1615
|
if (r = le(this, r), !r) {
|
|
@@ -1657,7 +1657,7 @@ function Wt(e, t, n) {
|
|
|
1657
1657
|
var o = t.body && t.body[0];
|
|
1658
1658
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1659
1659
|
}
|
|
1660
|
-
return o = e.s(null), r = new qr(n, r, o), n || Dn(e, r.object),
|
|
1660
|
+
return o = e.s(null), r = new qr(n, r, o), n || Dn(e, r.object), Ke(e, t, r), r;
|
|
1661
1661
|
}
|
|
1662
1662
|
function Jt(e, t, n) {
|
|
1663
1663
|
if (!t)
|
|
@@ -1690,7 +1690,7 @@ function zr(e, t, n) {
|
|
|
1690
1690
|
return e.g(r.object, t, n);
|
|
1691
1691
|
m(e, e.pb, t + " is not defined");
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1693
|
+
function Ke(e, t, n) {
|
|
1694
1694
|
if (t.jb)
|
|
1695
1695
|
var r = t.jb;
|
|
1696
1696
|
else {
|
|
@@ -1723,12 +1723,12 @@ function Je(e, t, n) {
|
|
|
1723
1723
|
if (Array.isArray(f)) {
|
|
1724
1724
|
for (o = 0; o < f.length; o++)
|
|
1725
1725
|
if (f[o] && f[o].constructor === s) {
|
|
1726
|
-
var g =
|
|
1726
|
+
var g = Ke(e, f[o], n);
|
|
1727
1727
|
for (a in g)
|
|
1728
1728
|
r[a] = g[a];
|
|
1729
1729
|
}
|
|
1730
1730
|
} else if (f.constructor === s)
|
|
1731
|
-
for (a in g =
|
|
1731
|
+
for (a in g = Ke(e, f, n), g)
|
|
1732
1732
|
r[a] = g[a];
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
@@ -1749,9 +1749,9 @@ function zt(e, t, n) {
|
|
|
1749
1749
|
return t[0] === Ae ? zr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1750
1750
|
}
|
|
1751
1751
|
function m(e, t, n) {
|
|
1752
|
-
throw e.N ? (n !== void 0 && t instanceof A && (t = e.Aa(t), _t(e, t, n)),
|
|
1752
|
+
throw e.N ? (n !== void 0 && t instanceof A && (t = e.Aa(t), _t(e, t, n)), Je(e, 4, t), Yr) : n === void 0 ? t : n;
|
|
1753
1753
|
}
|
|
1754
|
-
function
|
|
1754
|
+
function Je(e, t, n, r) {
|
|
1755
1755
|
if (t === 0)
|
|
1756
1756
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
1757
1757
|
var o = e.o;
|
|
@@ -1856,7 +1856,7 @@ function Fr(e, t) {
|
|
|
1856
1856
|
break;
|
|
1857
1857
|
}
|
|
1858
1858
|
}
|
|
1859
|
-
function
|
|
1859
|
+
function Ye(e, t, n) {
|
|
1860
1860
|
if (!e.P)
|
|
1861
1861
|
throw Error("Unexpected call to createGetter");
|
|
1862
1862
|
e.P = !1, n = Array.isArray(n) ? n[0] : n;
|
|
@@ -1964,7 +1964,7 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
1964
1964
|
if (!t.ja)
|
|
1965
1965
|
return t.ja = !0, t = new v(n.left, t.scope), t.sa = !0, t;
|
|
1966
1966
|
if (!t.Da)
|
|
1967
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = Zt(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0,
|
|
1967
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = Zt(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, Ye(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new v(n.right, t.scope));
|
|
1968
1968
|
if (t.ta)
|
|
1969
1969
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1970
1970
|
else {
|
|
@@ -2097,7 +2097,7 @@ h.prototype.stepBlockStatement = function(e, t, n) {
|
|
|
2097
2097
|
e.pop();
|
|
2098
2098
|
};
|
|
2099
2099
|
h.prototype.stepBreakStatement = function(e, t, n) {
|
|
2100
|
-
|
|
2100
|
+
Je(this, 1, void 0, n.label && n.label.name);
|
|
2101
2101
|
};
|
|
2102
2102
|
h.prototype.Hb = 0;
|
|
2103
2103
|
h.prototype.stepCallExpression = function(e, t, n) {
|
|
@@ -2111,7 +2111,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2111
2111
|
var o = t.value;
|
|
2112
2112
|
if (Array.isArray(o)) {
|
|
2113
2113
|
if (t.U = Zt(this, o), o[0] === Ae ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2114
|
-
return t.ia = 1,
|
|
2114
|
+
return t.ia = 1, Ye(this, o, t.value);
|
|
2115
2115
|
} else
|
|
2116
2116
|
t.U = o;
|
|
2117
2117
|
t.F = [], t.A = 0;
|
|
@@ -2149,7 +2149,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2149
2149
|
} catch (f) {
|
|
2150
2150
|
m(this, this.T, "Invalid code: " + f.message);
|
|
2151
2151
|
}
|
|
2152
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, lt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Wt(this, r, n) :
|
|
2152
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, lt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Wt(this, r, n) : Ke(this, r, n), this.value = void 0, new v(o, n);
|
|
2153
2153
|
}
|
|
2154
2154
|
else if (o.Ta)
|
|
2155
2155
|
t.scope.S || (t.B = Bt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
@@ -2176,7 +2176,7 @@ h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
|
2176
2176
|
e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
2177
2177
|
};
|
|
2178
2178
|
h.prototype.stepContinueStatement = function(e, t, n) {
|
|
2179
|
-
|
|
2179
|
+
Je(this, 2, void 0, n.label && n.label.name);
|
|
2180
2180
|
};
|
|
2181
2181
|
h.prototype.stepDebuggerStatement = function(e) {
|
|
2182
2182
|
e.pop();
|
|
@@ -2275,7 +2275,7 @@ h.prototype.stepIdentifier = function(e, t, n) {
|
|
|
2275
2275
|
e[e.length - 1].value = [Ae, n.name];
|
|
2276
2276
|
else {
|
|
2277
2277
|
if (t = Yt(this, n.name), this.P)
|
|
2278
|
-
return
|
|
2278
|
+
return Ye(this, t, this.Na);
|
|
2279
2279
|
e[e.length - 1].value = t;
|
|
2280
2280
|
}
|
|
2281
2281
|
};
|
|
@@ -2312,7 +2312,7 @@ h.prototype.stepMemberExpression = function(e, t, n) {
|
|
|
2312
2312
|
e[e.length - 1].value = [t.u, n];
|
|
2313
2313
|
else {
|
|
2314
2314
|
if (n = this.G(t.u, n), this.P)
|
|
2315
|
-
return
|
|
2315
|
+
return Ye(this, n, t.u);
|
|
2316
2316
|
e[e.length - 1].value = n;
|
|
2317
2317
|
}
|
|
2318
2318
|
};
|
|
@@ -2335,7 +2335,7 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2335
2335
|
return t.Pa = s, new v(o.value, t.scope);
|
|
2336
2336
|
}
|
|
2337
2337
|
for (a in t.Ja)
|
|
2338
|
-
n = t.Ja[a], "get" in n || "set" in n ? this.g(t.u, a,
|
|
2338
|
+
n = t.Ja[a], "get" in n || "set" in n ? this.g(t.u, a, He, {
|
|
2339
2339
|
configurable: !0,
|
|
2340
2340
|
enumerable: !0,
|
|
2341
2341
|
get: n.get,
|
|
@@ -2351,7 +2351,7 @@ h.prototype.stepProgram = function(e, t, n) {
|
|
|
2351
2351
|
h.prototype.stepReturnStatement = function(e, t, n) {
|
|
2352
2352
|
if (n.K && !t.ka)
|
|
2353
2353
|
return t.ka = !0, new v(n.K, t.scope);
|
|
2354
|
-
|
|
2354
|
+
Je(this, 3, t.value);
|
|
2355
2355
|
};
|
|
2356
2356
|
h.prototype.stepSequenceExpression = function(e, t, n) {
|
|
2357
2357
|
var r = t.A || 0;
|
|
@@ -2402,7 +2402,7 @@ h.prototype.stepTryStatement = function(e, t, n) {
|
|
|
2402
2402
|
return t.Tb = !0, e = Jt(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new v(n.Ea.body, e);
|
|
2403
2403
|
if (!t.Sb && n.fb)
|
|
2404
2404
|
return t.Sb = !0, new v(n.fb, t.scope);
|
|
2405
|
-
e.pop(), t.ea &&
|
|
2405
|
+
e.pop(), t.ea && Je(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2406
2406
|
};
|
|
2407
2407
|
h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
2408
2408
|
if (!t.ka)
|
|
@@ -2451,7 +2451,7 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2451
2451
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2452
2452
|
var r = Zt(this, t.Ga);
|
|
2453
2453
|
if (t.ma = r, this.P)
|
|
2454
|
-
return t.Ba = !0,
|
|
2454
|
+
return t.Ba = !0, Ye(this, r, t.Ga);
|
|
2455
2455
|
}
|
|
2456
2456
|
if (t.ta)
|
|
2457
2457
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
@@ -2496,7 +2496,7 @@ h.prototype.pseudoToNative = h.prototype.R;
|
|
|
2496
2496
|
h.prototype.getGlobalScope = h.prototype.Xb;
|
|
2497
2497
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2498
2498
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2499
|
-
h.VALUE_IN_DESCRIPTOR =
|
|
2499
|
+
h.VALUE_IN_DESCRIPTOR = He;
|
|
2500
2500
|
const Zn = (e) => e.split(`
|
|
2501
2501
|
`).map((t) => {
|
|
2502
2502
|
const n = t.trim();
|
|
@@ -2533,7 +2533,7 @@ const Zn = (e) => e.split(`
|
|
|
2533
2533
|
}).join(`
|
|
2534
2534
|
`), C = Zn(a);
|
|
2535
2535
|
if (C === "") {
|
|
2536
|
-
|
|
2536
|
+
it.warn("Skipping evaluation of empty code block.");
|
|
2537
2537
|
return;
|
|
2538
2538
|
}
|
|
2539
2539
|
const w = `
|
|
@@ -2556,7 +2556,7 @@ theFunction();
|
|
|
2556
2556
|
const I = new h(w, R);
|
|
2557
2557
|
return I.run(), I.pseudoToNative(I.value);
|
|
2558
2558
|
} catch (I) {
|
|
2559
|
-
|
|
2559
|
+
it.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2560
2560
|
e: I
|
|
2561
2561
|
});
|
|
2562
2562
|
return;
|
|
@@ -2571,7 +2571,7 @@ const qn = () => {
|
|
|
2571
2571
|
if (!Qn())
|
|
2572
2572
|
return !1;
|
|
2573
2573
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2574
|
-
return e && t && !n ? (
|
|
2574
|
+
return e && t && !n ? (it.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2575
2575
|
}, eo = (e) => Ft() || qn() ? Rn(e) : zn(e), ie = class ie {
|
|
2576
2576
|
static getCacheKey(t) {
|
|
2577
2577
|
return JSON.stringify({
|
|
@@ -2602,10 +2602,8 @@ function qt({
|
|
|
2602
2602
|
isExpression: a = !0,
|
|
2603
2603
|
enableCache: f
|
|
2604
2604
|
}) {
|
|
2605
|
-
if (e === "")
|
|
2606
|
-
He.warn("Skipping evaluation of empty code block.");
|
|
2605
|
+
if (e === "")
|
|
2607
2606
|
return;
|
|
2608
|
-
}
|
|
2609
2607
|
const g = {
|
|
2610
2608
|
code: Tn(e, {
|
|
2611
2609
|
isExpression: a
|
|
@@ -2630,7 +2628,7 @@ function qt({
|
|
|
2630
2628
|
}
|
|
2631
2629
|
return O;
|
|
2632
2630
|
} catch (O) {
|
|
2633
|
-
|
|
2631
|
+
it.error("Failed code evaluation: " + O.message, {
|
|
2634
2632
|
code: e
|
|
2635
2633
|
});
|
|
2636
2634
|
return;
|
|
@@ -2787,7 +2785,7 @@ const ao = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase
|
|
|
2787
2785
|
if (typeof r == "string")
|
|
2788
2786
|
return `${ao(n)}: ${r};`;
|
|
2789
2787
|
}).filter(st), lo = (e) => rn(e).join(`
|
|
2790
|
-
`),
|
|
2788
|
+
`), ot = ({
|
|
2791
2789
|
mediaQuery: e,
|
|
2792
2790
|
className: t,
|
|
2793
2791
|
styles: n
|
|
@@ -2959,17 +2957,17 @@ function vo(e) {
|
|
|
2959
2957
|
), f = o == null ? void 0 : o.large, g = o == null ? void 0 : o.medium, O = o == null ? void 0 : o.small, C = r.id;
|
|
2960
2958
|
if (!C)
|
|
2961
2959
|
return "";
|
|
2962
|
-
const w = f ?
|
|
2960
|
+
const w = f ? ot({
|
|
2963
2961
|
className: C,
|
|
2964
2962
|
styles: f
|
|
2965
|
-
}) : "", N = g ?
|
|
2963
|
+
}) : "", N = g ? ot({
|
|
2966
2964
|
className: C,
|
|
2967
2965
|
styles: g,
|
|
2968
2966
|
mediaQuery: _r(
|
|
2969
2967
|
"medium",
|
|
2970
2968
|
a
|
|
2971
2969
|
)
|
|
2972
|
-
}) : "", R = O ?
|
|
2970
|
+
}) : "", R = O ? ot({
|
|
2973
2971
|
className: C,
|
|
2974
2972
|
styles: O,
|
|
2975
2973
|
mediaQuery: _r(
|
|
@@ -2980,7 +2978,7 @@ function vo(e) {
|
|
|
2980
2978
|
let D = "";
|
|
2981
2979
|
if (I) {
|
|
2982
2980
|
const Q = ((k = (z = I.steps) == null ? void 0 : z[1]) == null ? void 0 : k.styles) || {};
|
|
2983
|
-
D =
|
|
2981
|
+
D = ot({
|
|
2984
2982
|
className: `${C}:hover`,
|
|
2985
2983
|
styles: {
|
|
2986
2984
|
...Q,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");require("./server-entry-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");require("./server-entry-c4b7844d.cjs");const t=e.lazy(()=>Promise.resolve().then(()=>require("./button-7e98d8f3.cjs"))),r=e.lazy(()=>Promise.resolve().then(()=>require("./columns-8db639b5.cjs"))),n=e.lazy(()=>Promise.resolve().then(()=>require("./fragment-b6e3a326.cjs"))),s=e.lazy(()=>Promise.resolve().then(()=>require("./image-ee3dd857.cjs"))),i=e.lazy(()=>Promise.resolve().then(()=>require("./section-d655ea14.cjs"))),l=e.lazy(()=>Promise.resolve().then(()=>require("./symbol-dbb5c95e.cjs"))),c=e.lazy(()=>Promise.resolve().then(()=>require("./text-e6dbb721.cjs"))),a=e.lazy(()=>Promise.resolve().then(()=>require("./video-e20dcbbc.cjs"))),u=e.lazy(()=>Promise.resolve().then(()=>require("./blocks-5539f58f.cjs")).then(o=>o.blocks)),m=e.lazy(()=>Promise.resolve().then(()=>require("./content-variants-44d061f2.cjs"))),y=e.createContext({content:null,context:{},localState:void 0,rootSetState(){},rootState:{},apiKey:null,apiVersion:void 0,componentInfos:{},inheritedStyles:{},BlocksWrapper:"div",BlocksWrapperProps:{}});exports.Blocks=u;exports.BuilderContext=y;exports.Button=t;exports.Columns=r;exports.Content=m;exports.Fragment=n;exports.Image=s;exports.Section=i;exports.Symbol=l;exports.Text=c;exports.Video=a;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { lazy as t, createContext as n } from "react";
|
|
3
|
-
import "./server-entry-
|
|
4
|
-
const i = t(() => import("./button-
|
|
3
|
+
import "./server-entry-e1e18fd2.js";
|
|
4
|
+
const i = t(() => import("./button-8816ab35.js")), r = t(() => import("./columns-d065e3c4.js")), a = t(() => import("./fragment-1492bc7f.js")), c = t(() => import("./image-0008c792.js")), m = t(() => import("./section-d83e2dd3.js")), p = t(() => import("./symbol-a90a41a3.js")), l = t(() => import("./text-5915f038.js")), u = t(() => import("./video-58c2cc8d.js")), d = t(() => import("./blocks-93608689.js").then((o) => o.blocks)), x = t(() => import("./content-variants-f416bff5.js")), S = n({
|
|
5
5
|
content: null,
|
|
6
6
|
context: {},
|
|
7
7
|
localState: void 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),i=require("./dynamic-renderer-b29b45ca.cjs"),t=require("./get-class-prop-name-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),i=require("./dynamic-renderer-b29b45ca.cjs"),t=require("./get-class-prop-name-7b951501.cjs");require("./server-entry-c4b7844d.cjs");function r(e){return n.jsx(i.DynamicRenderer,{attributes:{...e.attributes,[t.getClassPropName()]:`${e.link?"":"builder-button"} ${e.attributes[t.getClassPropName()]||""}`,...e.link?{href:e.link,target:e.openLinkInNewTab?"_blank":void 0,role:"link"}:{role:"button"}},TagName:e.link?e.builderLinkComponent||"a":"button",actionAttributes:{},children:e.text})}exports.default=r;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { DynamicRenderer as i } from "./dynamic-renderer-8b343325.js";
|
|
3
|
-
import { getClassPropName as e } from "./get-class-prop-name-
|
|
4
|
-
import "./server-entry-
|
|
3
|
+
import { getClassPropName as e } from "./get-class-prop-name-e85bf7a3.js";
|
|
4
|
+
import "./server-entry-e1e18fd2.js";
|
|
5
5
|
function u(t) {
|
|
6
6
|
return /* @__PURE__ */ n(
|
|
7
7
|
i,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("react"),a=require("./blocks-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),s=require("react"),a=require("./blocks-5539f58f.cjs"),w=require("./dynamic-renderer-b29b45ca.cjs"),$=require("./get-class-prop-name-7b951501.cjs");require("./blocks-exports.cjs");require("./server-entry-c4b7844d.cjs");function j(e){var f;const[u,p]=s.useState(()=>typeof e.space=="number"?e.space||0:20),[o,B]=s.useState(()=>e.columns||[]),[d,q]=s.useState(()=>e.stackColumnsAt||"tablet");function S(t){var n;return((n=o[t])==null?void 0:n.width)||100/o.length}function y(t){const n=u*(o.length-1)/o.length;return`calc(${S(t)}% - ${n}px)`}function c({stackedStyle:t,desktopStyle:n}){return d==="tablet"?t:n}function m({stackedStyle:t,desktopStyle:n}){return d==="never"?n:t}const[b,z]=s.useState(()=>e.stackColumnsAt==="never"?"row":e.reverseColumnsWhenStacked?"column-reverse":"column");function x(){return{"--flex-dir":b,"--flex-dir-tablet":c({stackedStyle:b,desktopStyle:"row"})}}function C(t){const n=t===0?0:u,l=y(t),r=`${n}px`,g="100%",h=0;return{...{display:"flex",flexDirection:"column",alignItems:"stretch"},width:l,["marginLeft"]:r,"--column-width-mobile":m({stackedStyle:g,desktopStyle:l}),"--column-margin-left-mobile":m({stackedStyle:h,desktopStyle:r}),"--column-width-tablet":c({stackedStyle:g,desktopStyle:l}),"--column-margin-left-tablet":c({stackedStyle:h,desktopStyle:r})}}function k(t){var l,r;return a.getSizesForBreakpoints(((r=(l=e.builderContext.content)==null?void 0:l.meta)==null?void 0:r.breakpoints)||{})[t].max}function v(){return`
|
|
2
2
|
@media (max-width: ${k("medium")}px) {
|
|
3
3
|
.${e.builderBlock.id}-breakpoints {
|
|
4
4
|
flex-direction: var(--flex-dir-tablet);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as g, Fragment as v, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useState as s } from "react";
|
|
3
|
-
import { InlinedStyles as w, mapStyleObjToStrIfNeeded as $, Blocks as B, getSizesForBreakpoints as z } from "./blocks-
|
|
3
|
+
import { InlinedStyles as w, mapStyleObjToStrIfNeeded as $, Blocks as B, getSizesForBreakpoints as z } from "./blocks-93608689.js";
|
|
4
4
|
import { DynamicRenderer as L } from "./dynamic-renderer-8b343325.js";
|
|
5
|
-
import { getClassPropName as W } from "./get-class-prop-name-
|
|
5
|
+
import { getClassPropName as W } from "./get-class-prop-name-e85bf7a3.js";
|
|
6
6
|
import "./blocks-exports.mjs";
|
|
7
|
-
import "./server-entry-
|
|
7
|
+
import "./server-entry-e1e18fd2.js";
|
|
8
8
|
function R(t) {
|
|
9
9
|
var f;
|
|
10
10
|
const [c, A] = s(
|