@builder.io/sdk-react-nextjs 0.16.2 → 0.16.4
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 +26 -26
- package/lib/browser/blocks-exports.mjs +198 -177
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/server-entry-15a258a6.cjs +2 -0
- package/lib/browser/{server-entry-242f596f.js → server-entry-3336d7c2.js} +152 -158
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-exports.cjs +35 -35
- package/lib/edge/blocks-exports.mjs +228 -206
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/server-entry-15a258a6.cjs +2 -0
- package/lib/{node/server-entry-fbf4e3a9.js → edge/server-entry-3336d7c2.js} +152 -158
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +15 -15
- package/lib/node/blocks-exports.mjs +128 -107
- 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-e1243cd6.cjs → node-runtime-7537779c.cjs} +2 -2
- package/lib/node/{node-runtime-42e494ca.js → node-runtime-adcc8fa1.js} +3 -2
- package/lib/node/server-entry-15a258a6.cjs +2 -0
- package/lib/{edge/server-entry-242f596f.js → node/server-entry-3336d7c2.js} +152 -158
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/cjs/blocks/image/image.types.d.ts +2 -0
- package/types/cjs/blocks/symbol/symbol.types.d.ts +1 -0
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/register-component.d.ts +2 -2
- package/types/esm/blocks/image/image.types.d.ts +2 -0
- package/types/esm/blocks/symbol/symbol.types.d.ts +1 -0
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/register-component.d.ts +2 -2
- package/lib/browser/server-entry-494604dc.cjs +0 -2
- package/lib/edge/server-entry-494604dc.cjs +0 -2
- package/lib/node/server-entry-db7b41aa.cjs +0 -2
|
@@ -3,15 +3,15 @@ var Vr = Object.defineProperty;
|
|
|
3
3
|
var _r = (e, t, n) => t in e ? Vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
4
|
var Kt = (e, t, n) => (_r(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
5
|
import { jsx as y, Fragment as K, jsxs as se } from "react/jsx-runtime";
|
|
6
|
-
import { TARGET as it, isEditing as Ce, isBrowser as De, getUserAttributes as $r, logger as ot, checkIsDefined as yt,
|
|
7
|
-
import {
|
|
6
|
+
import { TARGET as it, isEditing as Ce, isBrowser as De, getUserAttributes as $r, logger as ot, checkIsDefined as yt, init as Hr, getDefaultCanTrack as vt, _track as Gn, isPreviewing as Kr, createEditorListener as Gr, fetch as zr, registerInsertMenu as Yr, setupBrowserForEditing as Xr, createRegisterComponentMessage as Jr, fetchOneEntry as lr, serializeComponentInfo as zn, handleABTestingSync as qr } from "./server-entry-3336d7c2.js";
|
|
7
|
+
import { useEffect as te, useRef as Zt, useState as ye, createContext as Zr } from "react";
|
|
8
8
|
import { useRouter as Qr } from "next/navigation";
|
|
9
9
|
import "lru-cache";
|
|
10
10
|
const ei = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ti = (e) => typeof e == "string" && ei.has(e.toLowerCase());
|
|
11
|
-
function
|
|
11
|
+
function Qt(e) {
|
|
12
12
|
return /* @__PURE__ */ y(K, { children: ti(e.TagName) ? /* @__PURE__ */ y(K, { children: /* @__PURE__ */ y(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ y(K, { children: typeof e.TagName == "string" ? /* @__PURE__ */ y(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ y(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const tt = () => {
|
|
15
15
|
switch (it) {
|
|
16
16
|
case "react":
|
|
17
17
|
case "reactNative":
|
|
@@ -29,7 +29,7 @@ function ni(e) {
|
|
|
29
29
|
function t() {
|
|
30
30
|
return {
|
|
31
31
|
...e.attributes,
|
|
32
|
-
[
|
|
32
|
+
[tt()]: `${e.link ? "" : "builder-button"} ${e.attributes[tt()] || ""}`,
|
|
33
33
|
...e.link ? {
|
|
34
34
|
href: e.link,
|
|
35
35
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -40,7 +40,7 @@ function ni(e) {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
return /* @__PURE__ */ y(
|
|
43
|
-
|
|
43
|
+
Qt,
|
|
44
44
|
{
|
|
45
45
|
attributes: t(),
|
|
46
46
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -160,7 +160,7 @@ var F, si = function(e) {
|
|
|
160
160
|
this.line = Te, this.ab = d - fe;
|
|
161
161
|
}
|
|
162
162
|
function s(o, l) {
|
|
163
|
-
Re = d, R.C && (Ot = new a()), T = o, f(), ae = l,
|
|
163
|
+
Re = d, R.C && (Ot = new a()), T = o, f(), ae = l, $e = o.m;
|
|
164
164
|
}
|
|
165
165
|
function c() {
|
|
166
166
|
for (var o = d, l = R.va && R.C && new a(), u = S.charCodeAt(d += 2); d < je && u !== 10 && u !== 13 && u !== 8232 && u !== 8233; )
|
|
@@ -216,16 +216,16 @@ var F, si = function(e) {
|
|
|
216
216
|
case 93:
|
|
217
217
|
return ++d, s(_t);
|
|
218
218
|
case 123:
|
|
219
|
-
return ++d, s(
|
|
219
|
+
return ++d, s(Ge);
|
|
220
220
|
case 125:
|
|
221
221
|
return ++d, s(Pe);
|
|
222
222
|
case 58:
|
|
223
|
-
return ++d, s(
|
|
223
|
+
return ++d, s(ze);
|
|
224
224
|
case 63:
|
|
225
225
|
return ++d, s(Wn);
|
|
226
226
|
case 48:
|
|
227
227
|
if (o = S.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
228
|
-
d += 2, o = D(16), o === null && r(z + 2, "Expected hexadecimal number"), n(S.charCodeAt(d)) && r(d, "Identifier directly after number"), s(
|
|
228
|
+
d += 2, o = D(16), o === null && r(z + 2, "Expected hexadecimal number"), n(S.charCodeAt(d)) && r(d, "Identifier directly after number"), s(Ke, o);
|
|
229
229
|
return;
|
|
230
230
|
}
|
|
231
231
|
case 49:
|
|
@@ -254,7 +254,7 @@ var F, si = function(e) {
|
|
|
254
254
|
for (h && (h = h[0]); h && 255 < parseInt(h, 8); )
|
|
255
255
|
h = h.slice(0, -1);
|
|
256
256
|
if (h === "0" && (h = null), ++d, h)
|
|
257
|
-
|
|
257
|
+
ie && r(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(h, 8)), d += h.length - 1;
|
|
258
258
|
else
|
|
259
259
|
switch (u) {
|
|
260
260
|
case 110:
|
|
@@ -301,7 +301,7 @@ var F, si = function(e) {
|
|
|
301
301
|
}
|
|
302
302
|
return;
|
|
303
303
|
case 47:
|
|
304
|
-
o = S.charCodeAt(d + 1),
|
|
304
|
+
o = S.charCodeAt(d + 1), $e ? (++d, j()) : o === 61 ? m(Ae, 2) : m(Un, 1);
|
|
305
305
|
return;
|
|
306
306
|
case 37:
|
|
307
307
|
case 42:
|
|
@@ -386,7 +386,7 @@ var F, si = function(e) {
|
|
|
386
386
|
var l = d, u = !1, h = S.charCodeAt(d) === 48;
|
|
387
387
|
o || D(10) !== null || r(l, "Invalid number"), S.charCodeAt(d) === 46 && (++d, D(10), u = !0), o = S.charCodeAt(d), (o === 69 || o === 101) && (o = S.charCodeAt(++d), o !== 43 && o !== 45 || ++d, D(10) === null && r(l, "Invalid number"), u = !0), n(S.charCodeAt(d)) && r(d, "Identifier directly after number"), o = S.slice(l, d);
|
|
388
388
|
var A;
|
|
389
|
-
u ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) ||
|
|
389
|
+
u ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || ie ? r(l, "Invalid number") : A = parseInt(o, 8) : A = parseInt(o, 10), s(Ke, A);
|
|
390
390
|
}
|
|
391
391
|
function P(o) {
|
|
392
392
|
return o = D(16, o), o === null && r(z, "Bad character escape sequence"), o;
|
|
@@ -415,7 +415,7 @@ var F, si = function(e) {
|
|
|
415
415
|
Pt = z, Se = Re, Nt = Ot, b();
|
|
416
416
|
}
|
|
417
417
|
function U(o) {
|
|
418
|
-
if (
|
|
418
|
+
if (ie = o, d = z, R.C)
|
|
419
419
|
for (; d < fe; )
|
|
420
420
|
fe = S.lastIndexOf(`
|
|
421
421
|
`, fe - 2) + 1, --Te;
|
|
@@ -457,7 +457,7 @@ var F, si = function(e) {
|
|
|
457
457
|
r(z, "Unexpected token");
|
|
458
458
|
}
|
|
459
459
|
function W(o) {
|
|
460
|
-
o.type !== "Identifier" && o.type !== "MemberExpression" && r(o.start, "Assigning to rvalue"),
|
|
460
|
+
o.type !== "Identifier" && o.type !== "MemberExpression" && r(o.start, "Assigning to rvalue"), ie && o.type === "Identifier" && ft(o.name) && r(o.start, "Assigning to " + o.name + " in strict mode");
|
|
461
461
|
}
|
|
462
462
|
function M() {
|
|
463
463
|
(T === Un || T === Ae && ae === "/=") && b(!0);
|
|
@@ -485,27 +485,27 @@ var F, si = function(e) {
|
|
|
485
485
|
case Tn:
|
|
486
486
|
return v(), l.test = J(), l.da = M(), l.alternate = L(wn) ? M() : null, E(l, "IfStatement");
|
|
487
487
|
case An:
|
|
488
|
-
return
|
|
488
|
+
return He || R.Ib || r(z, "'return' outside of function"), v(), L(pe) || Ie() ? l.K = null : (l.K = Z(), I()), E(l, "ReturnStatement");
|
|
489
489
|
case Wt:
|
|
490
|
-
for (v(), l.Qb = J(), l.tb = [], x(
|
|
491
|
-
T === Ft || T === kn ? (o = T === Ft, h && E(h, "SwitchCase"), l.tb.push(h = $()), h.da = [], v(), o ? h.test = Z() : (u && r(Pt, "Multiple default clauses"), u = !0, h.test = null), x(
|
|
490
|
+
for (v(), l.Qb = J(), l.tb = [], x(Ge), H.push(Lr); T !== Pe; )
|
|
491
|
+
T === Ft || T === kn ? (o = T === Ft, h && E(h, "SwitchCase"), l.tb.push(h = $()), h.da = [], v(), o ? h.test = Z() : (u && r(Pt, "Multiple default clauses"), u = !0, h.test = null), x(ze)) : (h || B(), h.da.push(M()));
|
|
492
492
|
return h && E(h, "SwitchCase"), v(), H.pop(), E(l, "SwitchStatement");
|
|
493
493
|
case jn:
|
|
494
494
|
return v(), ht.test(S.slice(Se, z)) && r(Se, "Illegal newline after throw"), l.K = Z(), I(), E(l, "ThrowStatement");
|
|
495
495
|
case Rn:
|
|
496
|
-
return v(), l.block = le(), l.Ea = null, T === bn && (o = $(), v(), x(he), o.Ua = de(),
|
|
496
|
+
return v(), l.block = le(), l.Ea = null, T === bn && (o = $(), v(), x(he), o.Ua = de(), ie && ft(o.Ua.name) && r(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), x(ue), o.body = le(), l.Ea = E(o, "CatchClause")), l.fb = L(En) ? le() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
497
497
|
case Ut:
|
|
498
498
|
return v(), gn(l), I(), E(l, "VariableDeclaration");
|
|
499
499
|
case Lt:
|
|
500
500
|
return v(), l.test = J(), H.push($t), l.body = M(), H.pop(), E(l, "WhileStatement");
|
|
501
501
|
case On:
|
|
502
|
-
return
|
|
503
|
-
case
|
|
502
|
+
return ie && r(z, "'with' in strict mode"), v(), l.object = J(), l.body = M(), E(l, "WithStatement");
|
|
503
|
+
case Ge:
|
|
504
504
|
return le();
|
|
505
505
|
case pe:
|
|
506
506
|
return v(), E(l, "EmptyStatement");
|
|
507
507
|
default:
|
|
508
|
-
if (u = ae, A = Z(), o === Oe && A.type === "Identifier" && L(
|
|
508
|
+
if (u = ae, A = Z(), o === Oe && A.type === "Identifier" && L(ze)) {
|
|
509
509
|
for (h = 0; h < H.length; ++h)
|
|
510
510
|
H[h].name === u && r(A.start, "Label '" + u + "' is already declared");
|
|
511
511
|
return H.push({
|
|
@@ -523,7 +523,7 @@ var F, si = function(e) {
|
|
|
523
523
|
}
|
|
524
524
|
function le(o) {
|
|
525
525
|
var l = $(), u = !0, h = !1;
|
|
526
|
-
for (l.body = [], x(
|
|
526
|
+
for (l.body = [], x(Ge); !L(Pe); ) {
|
|
527
527
|
var A = M();
|
|
528
528
|
if (l.body.push(A), u && o && Ee(A)) {
|
|
529
529
|
var Y = h;
|
|
@@ -542,7 +542,7 @@ var F, si = function(e) {
|
|
|
542
542
|
function gn(o, l) {
|
|
543
543
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
544
544
|
var u = $();
|
|
545
|
-
if (u.id = de(),
|
|
545
|
+
if (u.id = de(), ie && ft(u.id.name) && r(u.id.start, "Binding " + u.id.name + " in strict mode"), u.ua = L(Ln) ? Z(!0, l) : null, o.fa.push(E(u, "VariableDeclarator")), !L(ke))
|
|
546
546
|
break;
|
|
547
547
|
}
|
|
548
548
|
}
|
|
@@ -559,7 +559,7 @@ var F, si = function(e) {
|
|
|
559
559
|
var l = Et(It(), -1, o);
|
|
560
560
|
if (L(Wn)) {
|
|
561
561
|
var u = Q(l);
|
|
562
|
-
u.test = l, u.da = Z(!0), x(
|
|
562
|
+
u.test = l, u.da = Z(!0), x(ze), u.alternate = Z(!0, o), l = E(u, "ConditionalExpression");
|
|
563
563
|
}
|
|
564
564
|
return T.Cb ? (u = Q(l), u.operator = ae, u.left = l, v(), u.right = wt(o), W(l), E(u, "AssignmentExpression")) : l;
|
|
565
565
|
}
|
|
@@ -574,18 +574,18 @@ var F, si = function(e) {
|
|
|
574
574
|
function It() {
|
|
575
575
|
if (T.prefix) {
|
|
576
576
|
var o = $(), l = T.$b;
|
|
577
|
-
return o.operator = ae,
|
|
577
|
+
return o.operator = ae, $e = o.prefix = !0, v(), o.K = It(), l ? W(o.K) : ie && o.operator === "delete" && o.K.type === "Identifier" && r(o.start, "Deleting local variable in strict mode"), E(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
578
578
|
}
|
|
579
|
-
for (l =
|
|
579
|
+
for (l = _e(ct()); T.cc && !Ie(); )
|
|
580
580
|
o = Q(l), o.operator = ae, o.prefix = !1, o.K = l, W(l), v(), l = E(o, "UpdateExpression");
|
|
581
581
|
return l;
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function _e(o, l) {
|
|
584
584
|
if (L(Dn)) {
|
|
585
585
|
var u = Q(o);
|
|
586
|
-
return u.object = o, u.Wa = de(!0), u.bb = !1,
|
|
586
|
+
return u.object = o, u.Wa = de(!0), u.bb = !1, _e(E(u, "MemberExpression"), l);
|
|
587
587
|
}
|
|
588
|
-
return L(Vt) ? (u = Q(o), u.object = o, u.Wa = Z(), u.bb = !0, x(_t),
|
|
588
|
+
return L(Vt) ? (u = Q(o), u.object = o, u.Wa = Z(), u.bb = !0, x(_t), _e(E(u, "MemberExpression"), l)) : !l && L(he) ? (u = Q(o), u.callee = o, u.arguments = At(ue, !1), _e(E(u, "CallExpression"), l)) : o;
|
|
589
589
|
}
|
|
590
590
|
function ct() {
|
|
591
591
|
switch (T) {
|
|
@@ -594,7 +594,7 @@ var F, si = function(e) {
|
|
|
594
594
|
return v(), E(o, "ThisExpression");
|
|
595
595
|
case Oe:
|
|
596
596
|
return de();
|
|
597
|
-
case
|
|
597
|
+
case Ke:
|
|
598
598
|
case ut:
|
|
599
599
|
case vn:
|
|
600
600
|
return o = $(), o.value = ae, o.raw = S.slice(z, Re), v(), E(o, "Literal");
|
|
@@ -610,26 +610,26 @@ var F, si = function(e) {
|
|
|
610
610
|
return u.start = l, u.end = Re, R.C && (u.X.start = o, u.X.end = Ot), R.Xa && (u.j = [l, Re]), x(ue), u;
|
|
611
611
|
case Vt:
|
|
612
612
|
return o = $(), v(), o.elements = At(_t, !0, !0), E(o, "ArrayExpression");
|
|
613
|
-
case
|
|
613
|
+
case Ge:
|
|
614
614
|
for (o = $(), l = !0, u = !1, o.h = [], v(); !L(Pe); ) {
|
|
615
615
|
if (l)
|
|
616
616
|
l = !1;
|
|
617
617
|
else if (x(ke), R.sb && L(Pe))
|
|
618
618
|
break;
|
|
619
619
|
var h = {
|
|
620
|
-
key: T ===
|
|
620
|
+
key: T === Ke || T === ut ? ct() : de(!0)
|
|
621
621
|
}, A = !1;
|
|
622
|
-
if (L(
|
|
622
|
+
if (L(ze)) {
|
|
623
623
|
h.value = Z(!0);
|
|
624
624
|
var Y = h.kind = "init";
|
|
625
625
|
} else
|
|
626
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? B() : (A = u = !0, Y = h.kind = h.key.name, h.key = T ===
|
|
627
|
-
if (h.key.type === "Identifier" && (
|
|
626
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? B() : (A = u = !0, Y = h.kind = h.key.name, h.key = T === Ke || T === ut ? ct() : de(!0), T !== he && B(), h.value = Tt($(), !1));
|
|
627
|
+
if (h.key.type === "Identifier" && (ie || u))
|
|
628
628
|
for (var ee = 0; ee < o.h.length; ++ee) {
|
|
629
629
|
var Be = o.h[ee];
|
|
630
630
|
if (Be.key.name === h.key.name) {
|
|
631
631
|
var Ht = Y === Be.kind || A && Be.kind === "init" || Y === "init" && (Be.kind === "get" || Be.kind === "set");
|
|
632
|
-
Ht && !
|
|
632
|
+
Ht && !ie && Y === "init" && Be.kind === "init" && (Ht = !1), Ht && r(h.key.start, "Redefinition of property");
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
635
|
o.h.push(h);
|
|
@@ -638,7 +638,7 @@ var F, si = function(e) {
|
|
|
638
638
|
case Dt:
|
|
639
639
|
return o = $(), v(), Tt(o, !1);
|
|
640
640
|
case Pn:
|
|
641
|
-
return o = $(), v(), o.callee =
|
|
641
|
+
return o = $(), v(), o.callee = _e(ct(), !0), o.arguments = L(he) ? At(ue, !1) : Er, E(o, "NewExpression");
|
|
642
642
|
}
|
|
643
643
|
B();
|
|
644
644
|
}
|
|
@@ -647,9 +647,9 @@ var F, si = function(e) {
|
|
|
647
647
|
var u = !0;
|
|
648
648
|
for (x(he); !L(ue); )
|
|
649
649
|
u ? u = !1 : x(ke), o.oa.push(de());
|
|
650
|
-
u =
|
|
650
|
+
u = He;
|
|
651
651
|
var h = H;
|
|
652
|
-
if (
|
|
652
|
+
if (He = !0, H = [], o.body = le(!0), He = u, H = h, ie || o.body.body.length && Ee(o.body.body[0])) {
|
|
653
653
|
for (u = o.id ? -1 : 0; u < o.oa.length; ++u)
|
|
654
654
|
if (h = 0 > u ? o.id : o.oa[u], (Hn(h.name) || ft(h.name)) && r(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= u)
|
|
655
655
|
for (var A = 0; A < u; ++A)
|
|
@@ -669,7 +669,7 @@ var F, si = function(e) {
|
|
|
669
669
|
}
|
|
670
670
|
function de(o) {
|
|
671
671
|
var l = $();
|
|
672
|
-
return o && R.yb === "everywhere" && (o = !1), T === Oe ? (!o && (R.yb && Fr(ae) ||
|
|
672
|
+
return o && R.yb === "everywhere" && (o = !1), T === Oe ? (!o && (R.yb && Fr(ae) || ie && Hn(ae)) && S.slice(z, Re).indexOf("\\") === -1 && r(z, "The keyword '" + ae + "' is reserved"), l.name = ae) : o && T.l ? l.name = T.l : B(), $e = !1, v(), E(l, "Identifier");
|
|
673
673
|
}
|
|
674
674
|
e.version = "0.5.0";
|
|
675
675
|
var R, S = "", je, jt;
|
|
@@ -677,7 +677,7 @@ var F, si = function(e) {
|
|
|
677
677
|
S = String(o), je = S.length, R = l || {};
|
|
678
678
|
for (var u in yn)
|
|
679
679
|
Object.prototype.hasOwnProperty.call(R, u) || (R[u] = yn[u]);
|
|
680
|
-
for (jt = R.sourceFile, Te = 1, d = fe = 0,
|
|
680
|
+
for (jt = R.sourceFile, Te = 1, d = fe = 0, $e = !0, f(), u = R.dc, Pt = Se = d, R.C && (Nt = new a()), He = ie = !1, H = [], b(), o = u || $(), l = !0, u || (o.body = []); T !== Bt; )
|
|
681
681
|
u = M(), o.body.push(u), l && Ee(u) && U(!0), l = !1;
|
|
682
682
|
return E(o, "Program");
|
|
683
683
|
};
|
|
@@ -692,7 +692,7 @@ var F, si = function(e) {
|
|
|
692
692
|
dc: null,
|
|
693
693
|
sourceFile: null,
|
|
694
694
|
vb: null
|
|
695
|
-
}, d = 0, z = 0, Re = 0, Rt, Ot, T, ae,
|
|
695
|
+
}, d = 0, z = 0, Re = 0, Rt, Ot, T, ae, $e, Te, fe, Pt = 0, Se = 0, Nt, He, H, ie, Er = [], Ke = {
|
|
696
696
|
type: "num"
|
|
697
697
|
}, vn = {
|
|
698
698
|
type: "regexp"
|
|
@@ -816,7 +816,7 @@ var F, si = function(e) {
|
|
|
816
816
|
m: !0
|
|
817
817
|
}, _t = {
|
|
818
818
|
type: "]"
|
|
819
|
-
},
|
|
819
|
+
}, Ge = {
|
|
820
820
|
type: "{",
|
|
821
821
|
m: !0
|
|
822
822
|
}, Pe = {
|
|
@@ -832,7 +832,7 @@ var F, si = function(e) {
|
|
|
832
832
|
}, pe = {
|
|
833
833
|
type: ";",
|
|
834
834
|
m: !0
|
|
835
|
-
},
|
|
835
|
+
}, ze = {
|
|
836
836
|
type: ":",
|
|
837
837
|
m: !0
|
|
838
838
|
}, Dn = {
|
|
@@ -915,7 +915,7 @@ function p(e, t) {
|
|
|
915
915
|
var Yn = {
|
|
916
916
|
C: !0,
|
|
917
917
|
kc: 5
|
|
918
|
-
},
|
|
918
|
+
}, en = {
|
|
919
919
|
configurable: !0,
|
|
920
920
|
enumerable: !0,
|
|
921
921
|
writable: !1
|
|
@@ -923,11 +923,11 @@ var Yn = {
|
|
|
923
923
|
configurable: !0,
|
|
924
924
|
enumerable: !1,
|
|
925
925
|
writable: !0
|
|
926
|
-
},
|
|
926
|
+
}, re = {
|
|
927
927
|
configurable: !0,
|
|
928
928
|
enumerable: !1,
|
|
929
929
|
writable: !1
|
|
930
|
-
},
|
|
930
|
+
}, Ye = {
|
|
931
931
|
configurable: !1,
|
|
932
932
|
enumerable: !1,
|
|
933
933
|
writable: !1
|
|
@@ -937,18 +937,18 @@ var Yn = {
|
|
|
937
937
|
writable: !0
|
|
938
938
|
}, fr = {
|
|
939
939
|
STEP_ERROR: !0
|
|
940
|
-
},
|
|
940
|
+
}, Ve = {
|
|
941
941
|
SCOPE_REFERENCE: !0
|
|
942
|
-
},
|
|
942
|
+
}, nt = {
|
|
943
943
|
VALUE_IN_DESCRIPTOR: !0
|
|
944
944
|
}, Me = {
|
|
945
945
|
REGEXP_TIMEOUT: !0
|
|
946
|
-
}, Jn = [], ve = null,
|
|
947
|
-
function
|
|
946
|
+
}, Jn = [], ve = null, Qe = null, we = typeof globalThis == "undefined" ? void 0 : globalThis, li = ["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();", "};"];
|
|
947
|
+
function tn(e) {
|
|
948
948
|
var t = e >>> 0;
|
|
949
949
|
return t === Number(e) ? t : NaN;
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function et(e) {
|
|
952
952
|
var t = e >>> 0;
|
|
953
953
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
954
954
|
}
|
|
@@ -980,7 +980,7 @@ F.Jb = function(e) {
|
|
|
980
980
|
throw Error("Expecting original AST to start with a Program node");
|
|
981
981
|
if (typeof e == "string" && (e = We(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
982
982
|
throw Error("Expecting new AST to start with a Program node");
|
|
983
|
-
|
|
983
|
+
rt(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
984
984
|
};
|
|
985
985
|
F.lb = function() {
|
|
986
986
|
var e = this.o, t;
|
|
@@ -1002,15 +1002,15 @@ F.lb = function() {
|
|
|
1002
1002
|
break;
|
|
1003
1003
|
}
|
|
1004
1004
|
r = n.node;
|
|
1005
|
-
var i =
|
|
1006
|
-
|
|
1005
|
+
var i = Qe;
|
|
1006
|
+
Qe = this;
|
|
1007
1007
|
try {
|
|
1008
1008
|
var a = this.rb[r.type](e, n, r);
|
|
1009
1009
|
} catch (s) {
|
|
1010
1010
|
if (s !== fr)
|
|
1011
1011
|
throw this.value !== s && (this.value = void 0), s;
|
|
1012
1012
|
} finally {
|
|
1013
|
-
|
|
1013
|
+
Qe = i;
|
|
1014
1014
|
}
|
|
1015
1015
|
if (a && e.push(a), this.P)
|
|
1016
1016
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -1026,7 +1026,7 @@ F.Eb = function() {
|
|
|
1026
1026
|
return this.za;
|
|
1027
1027
|
};
|
|
1028
1028
|
function ci(e, t) {
|
|
1029
|
-
e.g(t, "NaN", NaN,
|
|
1029
|
+
e.g(t, "NaN", NaN, Ye), e.g(t, "Infinity", 1 / 0, Ye), e.g(t, "undefined", void 0, Ye), e.g(t, "window", t, en), e.g(t, "this", t, Ye), e.g(t, "self", t), e.M = new N(null), e.Z = new N(e.M), ui(e, t), di(e, t), t.xa = e.M, e.g(t, "constructor", e.v, k), fi(e, t), hi(e, t), pi(e, t), mi(e, t), gi(e, t), yi(e, t), vi(e, t), bi(e, t), xi(e, t);
|
|
1030
1030
|
var n = e.i(function() {
|
|
1031
1031
|
throw EvalError("Can't happen");
|
|
1032
1032
|
}, !1);
|
|
@@ -1068,10 +1068,10 @@ function ui(e, t) {
|
|
|
1068
1068
|
} catch (b) {
|
|
1069
1069
|
w(e, e.T, "Invalid code: " + b.message);
|
|
1070
1070
|
}
|
|
1071
|
-
return g.body.length !== 1 && w(e, e.T, "Invalid code in function body"),
|
|
1071
|
+
return g.body.length !== 1 && w(e, e.T, "Invalid code in function body"), on(e, g.body[0].la, e.N, "anonymous");
|
|
1072
1072
|
};
|
|
1073
1073
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, k), e.g(e.O, "prototype", e.Z, k), e.g(e.Z, "constructor", e.O, k), e.Z.Ta = function() {
|
|
1074
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0,
|
|
1074
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, re), e.Z.H = "Function", r = function(i, a) {
|
|
1075
1075
|
var s = e.o[e.o.length - 1];
|
|
1076
1076
|
s.U = this, s.B = i, s.F = [], a != null && (a instanceof N ? s.F = hr(e, a) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1077
1077
|
}, X(e, e.O, "apply", r), r = function(i) {
|
|
@@ -1106,7 +1106,7 @@ function di(e, t) {
|
|
|
1106
1106
|
}, e.g(e.v, "keys", e.i(r, !1), k), r = function(i) {
|
|
1107
1107
|
return i === null ? e.s(null) : (i instanceof N || w(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1108
1108
|
}, e.g(e.v, "create", e.i(r, !1), k), 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) {
|
|
1109
|
-
return a = String(a), i instanceof N || w(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof N || w(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || w(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a,
|
|
1109
|
+
return a = String(a), i instanceof N || w(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof N || w(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || w(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a, nt, s.h), i;
|
|
1110
1110
|
}, e.g(e.v, "defineProperty", e.i(r, !1), k), 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) {
|
|
1111
1111
|
if (i instanceof N || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1112
1112
|
var s = Object.getOwnPropertyDescriptor(i.h, a), c = i.V[a];
|
|
@@ -1135,7 +1135,7 @@ function fi(e, t) {
|
|
|
1135
1135
|
var n = function(r) {
|
|
1136
1136
|
var i = xe(e) ? this : Ue(e), a = arguments[0];
|
|
1137
1137
|
if (arguments.length === 1 && typeof a == "number")
|
|
1138
|
-
isNaN(
|
|
1138
|
+
isNaN(tn(a)) && w(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1139
1139
|
else {
|
|
1140
1140
|
for (a = 0; a < arguments.length; a++)
|
|
1141
1141
|
i.h[a] = arguments[a];
|
|
@@ -1166,15 +1166,15 @@ function hi(e, t) {
|
|
|
1166
1166
|
}
|
|
1167
1167
|
}, X(e, e.J, "localeCompare", n), n = function(r, i, a) {
|
|
1168
1168
|
var s = String(this);
|
|
1169
|
-
if (i = i ? Number(i) : void 0, q(e, r, e.I) && (r = r.data,
|
|
1169
|
+
if (i = i ? Number(i) : void 0, q(e, r, e.I) && (r = r.data, Je(e, r, a), e.REGEXP_MODE === 2)) {
|
|
1170
1170
|
if (ve)
|
|
1171
|
-
r =
|
|
1171
|
+
r = Xe(e, "string.split(separator, limit)", {
|
|
1172
1172
|
string: s,
|
|
1173
1173
|
separator: r,
|
|
1174
1174
|
limit: i
|
|
1175
1175
|
}, r, a), r !== Me && a(ge(e, r));
|
|
1176
1176
|
else {
|
|
1177
|
-
var c = e.ha(), f =
|
|
1177
|
+
var c = e.ha(), f = qe(e, r, c, a);
|
|
1178
1178
|
c.onmessage = function(g) {
|
|
1179
1179
|
clearTimeout(f), a(ge(e, g.data));
|
|
1180
1180
|
}, c.postMessage(["split", s, r, i]);
|
|
@@ -1182,49 +1182,49 @@ function hi(e, t) {
|
|
|
1182
1182
|
return;
|
|
1183
1183
|
}
|
|
1184
1184
|
r = s.split(r, i), a(ge(e, r));
|
|
1185
|
-
},
|
|
1185
|
+
}, Ze(e, e.J, "split", n), n = function(r, i) {
|
|
1186
1186
|
var a = String(this);
|
|
1187
|
-
if (r = q(e, r, e.I) ? r.data : new RegExp(r),
|
|
1187
|
+
if (r = q(e, r, e.I) ? r.data : new RegExp(r), Je(e, r, i), e.REGEXP_MODE === 2)
|
|
1188
1188
|
if (ve)
|
|
1189
|
-
r =
|
|
1189
|
+
r = Xe(e, "string.match(regexp)", {
|
|
1190
1190
|
string: a,
|
|
1191
1191
|
regexp: r
|
|
1192
1192
|
}, r, i), r !== Me && i(r && ge(e, r));
|
|
1193
1193
|
else {
|
|
1194
|
-
var s = e.ha(), c =
|
|
1194
|
+
var s = e.ha(), c = qe(e, r, s, i);
|
|
1195
1195
|
s.onmessage = function(f) {
|
|
1196
1196
|
clearTimeout(c), i(f.data && ge(e, f.data));
|
|
1197
1197
|
}, s.postMessage(["match", a, r]);
|
|
1198
1198
|
}
|
|
1199
1199
|
else
|
|
1200
1200
|
r = a.match(r), i(r && ge(e, r));
|
|
1201
|
-
},
|
|
1201
|
+
}, Ze(e, e.J, "match", n), n = function(r, i) {
|
|
1202
1202
|
var a = String(this);
|
|
1203
|
-
if (q(e, r, e.I) ? r = r.data : r = new RegExp(r),
|
|
1203
|
+
if (q(e, r, e.I) ? r = r.data : r = new RegExp(r), Je(e, r, i), e.REGEXP_MODE === 2)
|
|
1204
1204
|
if (ve)
|
|
1205
|
-
r =
|
|
1205
|
+
r = Xe(e, "string.search(regexp)", {
|
|
1206
1206
|
string: a,
|
|
1207
1207
|
regexp: r
|
|
1208
1208
|
}, r, i), r !== Me && i(r);
|
|
1209
1209
|
else {
|
|
1210
|
-
var s = e.ha(), c =
|
|
1210
|
+
var s = e.ha(), c = qe(e, r, s, i);
|
|
1211
1211
|
s.onmessage = function(f) {
|
|
1212
1212
|
clearTimeout(c), i(f.data);
|
|
1213
1213
|
}, s.postMessage(["search", a, r]);
|
|
1214
1214
|
}
|
|
1215
1215
|
else
|
|
1216
1216
|
i(a.search(r));
|
|
1217
|
-
},
|
|
1217
|
+
}, Ze(e, e.J, "search", n), n = function(r, i, a) {
|
|
1218
1218
|
var s = String(this);
|
|
1219
|
-
if (i = String(i), q(e, r, e.I) && (r = r.data,
|
|
1219
|
+
if (i = String(i), q(e, r, e.I) && (r = r.data, Je(e, r, a), e.REGEXP_MODE === 2)) {
|
|
1220
1220
|
if (ve)
|
|
1221
|
-
r =
|
|
1221
|
+
r = Xe(e, "string.replace(substr, newSubstr)", {
|
|
1222
1222
|
string: s,
|
|
1223
1223
|
substr: r,
|
|
1224
1224
|
newSubstr: i
|
|
1225
1225
|
}, r, a), r !== Me && a(r);
|
|
1226
1226
|
else {
|
|
1227
|
-
var c = e.ha(), f =
|
|
1227
|
+
var c = e.ha(), f = qe(e, r, c, a);
|
|
1228
1228
|
c.onmessage = function(g) {
|
|
1229
1229
|
clearTimeout(f), a(g.data);
|
|
1230
1230
|
}, c.postMessage(["replace", s, r, i]);
|
|
@@ -1232,7 +1232,7 @@ function hi(e, t) {
|
|
|
1232
1232
|
return;
|
|
1233
1233
|
}
|
|
1234
1234
|
a(s.replace(r, i));
|
|
1235
|
-
},
|
|
1235
|
+
}, Ze(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1236
1236
|
}
|
|
1237
1237
|
function pi(e, t) {
|
|
1238
1238
|
e.mb = e.i(function(n) {
|
|
@@ -1244,7 +1244,7 @@ function mi(e, t) {
|
|
|
1244
1244
|
return r = arguments.length ? we.Number(r) : 0, xe(e) ? (this.data = r, this) : r;
|
|
1245
1245
|
};
|
|
1246
1246
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, k), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1247
|
-
e.g(e.aa, t[n], Number[t[n]],
|
|
1247
|
+
e.g(e.aa, t[n], Number[t[n]], Ye);
|
|
1248
1248
|
n = function(r) {
|
|
1249
1249
|
try {
|
|
1250
1250
|
return Number(this).toExponential(r);
|
|
@@ -1312,9 +1312,9 @@ function yi(e, t) {
|
|
|
1312
1312
|
} catch (c) {
|
|
1313
1313
|
w(e, e.T, c.message);
|
|
1314
1314
|
}
|
|
1315
|
-
return
|
|
1315
|
+
return nn(e, a, s), a;
|
|
1316
1316
|
};
|
|
1317
|
-
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, k), e.g(e.I.h.prototype, "global", void 0,
|
|
1317
|
+
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, k), e.g(e.I.h.prototype, "global", void 0, re), e.g(e.I.h.prototype, "ignoreCase", void 0, re), e.g(e.I.h.prototype, "multiline", void 0, re), e.g(e.I.h.prototype, "source", "(?:)", re), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, i) {
|
|
1318
1318
|
function a(b) {
|
|
1319
1319
|
if (b) {
|
|
1320
1320
|
var m = ge(e, b);
|
|
@@ -1323,21 +1323,21 @@ function yi(e, t) {
|
|
|
1323
1323
|
return null;
|
|
1324
1324
|
}
|
|
1325
1325
|
var s = this.data;
|
|
1326
|
-
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")),
|
|
1326
|
+
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")), Je(e, s, i), e.REGEXP_MODE === 2)
|
|
1327
1327
|
if (ve)
|
|
1328
|
-
r =
|
|
1328
|
+
r = Xe(e, "regexp.exec(string)", {
|
|
1329
1329
|
string: r,
|
|
1330
1330
|
regexp: s
|
|
1331
1331
|
}, s, i), r !== Me && (e.g(this, "lastIndex", s.lastIndex), i(a(r)));
|
|
1332
1332
|
else {
|
|
1333
|
-
var c = e.ha(), f =
|
|
1333
|
+
var c = e.ha(), f = qe(e, s, c, i), g = this;
|
|
1334
1334
|
c.onmessage = function(b) {
|
|
1335
1335
|
clearTimeout(f), e.g(g, "lastIndex", b.data[1]), i(a(b.data[0]));
|
|
1336
1336
|
}, c.postMessage(["exec", s, s.lastIndex, r]);
|
|
1337
1337
|
}
|
|
1338
1338
|
else
|
|
1339
1339
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), i(a(r));
|
|
1340
|
-
},
|
|
1340
|
+
}, Ze(e, e.I, "exec", n);
|
|
1341
1341
|
}
|
|
1342
1342
|
function vi(e, t) {
|
|
1343
1343
|
function n(r) {
|
|
@@ -1357,7 +1357,7 @@ function bi(e, t) {
|
|
|
1357
1357
|
e.g(t, "Math", n, k);
|
|
1358
1358
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1359
1359
|
for (t = 0; t < r.length; t++)
|
|
1360
|
-
e.g(n, r[t], Math[r[t]],
|
|
1360
|
+
e.g(n, r[t], Math[r[t]], re);
|
|
1361
1361
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1362
1362
|
e.g(n, r[t], e.i(Math[r[t]], !1), k);
|
|
1363
1363
|
}
|
|
@@ -1394,8 +1394,8 @@ function q(e, t, n) {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
return !1;
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1398
|
-
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, k), e.g(t, "source", n.source,
|
|
1397
|
+
function nn(e, t, n) {
|
|
1398
|
+
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, k), e.g(t, "source", n.source, re), e.g(t, "global", n.global, re), e.g(t, "ignoreCase", n.ignoreCase, re), e.g(t, "multiline", n.multiline, re);
|
|
1399
1399
|
}
|
|
1400
1400
|
function Xt(e, t, n) {
|
|
1401
1401
|
n && e.g(t, "message", String(n), k), n = [];
|
|
@@ -1421,7 +1421,7 @@ F.ha = function() {
|
|
|
1421
1421
|
type: "application/javascript"
|
|
1422
1422
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1423
1423
|
};
|
|
1424
|
-
function
|
|
1424
|
+
function Xe(e, t, n, r, i) {
|
|
1425
1425
|
var a = {
|
|
1426
1426
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1427
1427
|
};
|
|
@@ -1432,7 +1432,7 @@ function Ye(e, t, n, r, i) {
|
|
|
1432
1432
|
}
|
|
1433
1433
|
return Me;
|
|
1434
1434
|
}
|
|
1435
|
-
function
|
|
1435
|
+
function Je(e, t, n) {
|
|
1436
1436
|
if (e.REGEXP_MODE === 0)
|
|
1437
1437
|
var r = !1;
|
|
1438
1438
|
else if (e.REGEXP_MODE === 1)
|
|
@@ -1451,7 +1451,7 @@ function Xe(e, t, n) {
|
|
|
1451
1451
|
r = !1;
|
|
1452
1452
|
r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function qe(e, t, n, r) {
|
|
1455
1455
|
return setTimeout(function() {
|
|
1456
1456
|
n.terminate(), r(null);
|
|
1457
1457
|
try {
|
|
@@ -1476,20 +1476,20 @@ function Ue(e) {
|
|
|
1476
1476
|
writable: !0
|
|
1477
1477
|
}), t.H = "Array", t;
|
|
1478
1478
|
}
|
|
1479
|
-
function
|
|
1479
|
+
function rn(e, t, n) {
|
|
1480
1480
|
var r = e.s(e.Z);
|
|
1481
|
-
return n ? (n = e.s(e.M), e.g(r, "prototype", n, k), e.g(n, "constructor", r, k)) : r.Ab = !0, e.g(r, "length", t,
|
|
1481
|
+
return n ? (n = e.s(e.M), e.g(r, "prototype", n, k), e.g(n, "constructor", r, k)) : r.Ab = !0, e.g(r, "length", t, re), r.H = "Function", r;
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1484
|
-
var i =
|
|
1485
|
-
return i.Va = n, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : r || "",
|
|
1483
|
+
function on(e, t, n, r) {
|
|
1484
|
+
var i = rn(e, t.oa.length, !0);
|
|
1485
|
+
return i.Va = n, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : r || "", re), i;
|
|
1486
1486
|
}
|
|
1487
1487
|
F.i = function(e, t) {
|
|
1488
|
-
return t =
|
|
1488
|
+
return t = rn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, re), t;
|
|
1489
1489
|
};
|
|
1490
1490
|
F.ub = function(e) {
|
|
1491
|
-
var t =
|
|
1492
|
-
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1491
|
+
var t = rn(this, e.length, !0);
|
|
1492
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, re), t;
|
|
1493
1493
|
};
|
|
1494
1494
|
F.Ia = function(e) {
|
|
1495
1495
|
if (e instanceof N)
|
|
@@ -1498,7 +1498,7 @@ F.Ia = function(e) {
|
|
|
1498
1498
|
return e;
|
|
1499
1499
|
if (e instanceof RegExp) {
|
|
1500
1500
|
var t = this.s(this.Ma);
|
|
1501
|
-
return
|
|
1501
|
+
return nn(this, t, e), t;
|
|
1502
1502
|
}
|
|
1503
1503
|
if (e instanceof Date)
|
|
1504
1504
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1561,7 +1561,7 @@ function hr(e, t) {
|
|
|
1561
1561
|
var n = [], r;
|
|
1562
1562
|
for (r in t.h)
|
|
1563
1563
|
n[r] = e.G(t, r);
|
|
1564
|
-
return n.length =
|
|
1564
|
+
return n.length = tn(e.G(t, "length")) || 0, n;
|
|
1565
1565
|
}
|
|
1566
1566
|
function be(e, t) {
|
|
1567
1567
|
switch (typeof t) {
|
|
@@ -1583,7 +1583,7 @@ F.G = function(e, t) {
|
|
|
1583
1583
|
if (q(this, e, this.J))
|
|
1584
1584
|
return String(e).length;
|
|
1585
1585
|
} else if (64 > t.charCodeAt(0) && q(this, e, this.J)) {
|
|
1586
|
-
var n =
|
|
1586
|
+
var n = et(t);
|
|
1587
1587
|
if (!isNaN(n) && n < String(e).length)
|
|
1588
1588
|
return String(e)[n];
|
|
1589
1589
|
}
|
|
@@ -1598,7 +1598,7 @@ function St(e, t, n) {
|
|
|
1598
1598
|
if (n = String(n), n === "length" && q(e, t, e.J))
|
|
1599
1599
|
return !0;
|
|
1600
1600
|
if (q(e, t, e.J)) {
|
|
1601
|
-
var r =
|
|
1601
|
+
var r = et(n);
|
|
1602
1602
|
if (!isNaN(r) && r < String(t).length)
|
|
1603
1603
|
return !0;
|
|
1604
1604
|
}
|
|
@@ -1614,10 +1614,10 @@ F.g = function(e, t, n, r) {
|
|
|
1614
1614
|
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof N))
|
|
1615
1615
|
throw TypeError("Expecting native value or pseudo object");
|
|
1616
1616
|
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && w(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1617
|
-
var i = !this.o ||
|
|
1617
|
+
var i = !this.o || an(this).S;
|
|
1618
1618
|
if (e instanceof N) {
|
|
1619
1619
|
if (q(this, e, this.J)) {
|
|
1620
|
-
var a =
|
|
1620
|
+
var a = et(t);
|
|
1621
1621
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
1622
1622
|
i && w(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1623
1623
|
return;
|
|
@@ -1630,16 +1630,16 @@ F.g = function(e, t, n, r) {
|
|
|
1630
1630
|
return;
|
|
1631
1631
|
n = r.value;
|
|
1632
1632
|
}
|
|
1633
|
-
if (n =
|
|
1633
|
+
if (n = tn(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < a)
|
|
1634
1634
|
for (s in e.h) {
|
|
1635
|
-
var s =
|
|
1635
|
+
var s = et(s);
|
|
1636
1636
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
1637
1637
|
}
|
|
1638
1638
|
} else
|
|
1639
|
-
isNaN(s =
|
|
1639
|
+
isNaN(s = et(t)) || (e.h.length = Math.max(a, s + 1));
|
|
1640
1640
|
if (!e.preventExtensions || t in e.h)
|
|
1641
1641
|
if (r) {
|
|
1642
|
-
i = {}, "get" in r && r.get && (e.V[t] = r.get, i.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, i.set = this.g.bc), "configurable" in r && (i.configurable = r.configurable), "enumerable" in r && (i.enumerable = r.enumerable), "writable" in r && (i.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (i.value = r.value, delete e.V[t], delete e.Y[t]) : n !==
|
|
1642
|
+
i = {}, "get" in r && r.get && (e.V[t] = r.get, i.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, i.set = this.g.bc), "configurable" in r && (i.configurable = r.configurable), "enumerable" in r && (i.enumerable = r.enumerable), "writable" in r && (i.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (i.value = r.value, delete e.V[t], delete e.Y[t]) : n !== nt && (i.value = n, delete e.V[t], delete e.Y[t]);
|
|
1643
1643
|
try {
|
|
1644
1644
|
Object.defineProperty(e.h, t, i);
|
|
1645
1645
|
} catch {
|
|
@@ -1647,7 +1647,7 @@ F.g = function(e, t, n, r) {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1649
1649
|
} else {
|
|
1650
|
-
if (n ===
|
|
1650
|
+
if (n === nt)
|
|
1651
1651
|
throw ReferenceError("Value not specified");
|
|
1652
1652
|
for (r = e; !(t in r.h); )
|
|
1653
1653
|
if (r = be(this, r), !r) {
|
|
@@ -1679,10 +1679,10 @@ F.g.bc = function() {
|
|
|
1679
1679
|
function X(e, t, n, r) {
|
|
1680
1680
|
e.g(t.h.prototype, n, e.i(r, !1), k);
|
|
1681
1681
|
}
|
|
1682
|
-
function
|
|
1682
|
+
function Ze(e, t, n, r) {
|
|
1683
1683
|
e.g(t.h.prototype, n, e.ub(r), k);
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1685
|
+
function an(e) {
|
|
1686
1686
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1687
1687
|
throw Error("No scope found");
|
|
1688
1688
|
return e;
|
|
@@ -1695,15 +1695,15 @@ function Jt(e, t, n) {
|
|
|
1695
1695
|
var i = t.body && t.body[0];
|
|
1696
1696
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (r = !0);
|
|
1697
1697
|
}
|
|
1698
|
-
return i = e.s(null), r = new gr(n, r, i), n || ci(e, r.object),
|
|
1698
|
+
return i = e.s(null), r = new gr(n, r, i), n || ci(e, r.object), rt(e, t, r), r;
|
|
1699
1699
|
}
|
|
1700
|
-
function
|
|
1700
|
+
function sn(e, t, n) {
|
|
1701
1701
|
if (!t)
|
|
1702
1702
|
throw Error("parentScope required");
|
|
1703
1703
|
return e = n || e.s(null), new gr(t, t.S, e);
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1706
|
-
for (var n =
|
|
1705
|
+
function ln(e, t) {
|
|
1706
|
+
for (var n = an(e); n && n !== e.N; ) {
|
|
1707
1707
|
if (t in n.object.h)
|
|
1708
1708
|
return n.object.h[t];
|
|
1709
1709
|
n = n.Va;
|
|
@@ -1713,7 +1713,7 @@ function cn(e, t) {
|
|
|
1713
1713
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1714
1714
|
}
|
|
1715
1715
|
function pr(e, t, n) {
|
|
1716
|
-
for (var r =
|
|
1716
|
+
for (var r = an(e), i = r.S; r && r !== e.N; ) {
|
|
1717
1717
|
if (t in r.object.h) {
|
|
1718
1718
|
try {
|
|
1719
1719
|
r.object.h[t] = n;
|
|
@@ -1728,7 +1728,7 @@ function pr(e, t, n) {
|
|
|
1728
1728
|
return e.g(r.object, t, n);
|
|
1729
1729
|
w(e, e.pb, t + " is not defined");
|
|
1730
1730
|
}
|
|
1731
|
-
function
|
|
1731
|
+
function rt(e, t, n) {
|
|
1732
1732
|
if (t.jb)
|
|
1733
1733
|
var r = t.jb;
|
|
1734
1734
|
else {
|
|
@@ -1761,12 +1761,12 @@ function nt(e, t, n) {
|
|
|
1761
1761
|
if (Array.isArray(c)) {
|
|
1762
1762
|
for (i = 0; i < c.length; i++)
|
|
1763
1763
|
if (c[i] && c[i].constructor === a) {
|
|
1764
|
-
var f =
|
|
1764
|
+
var f = rt(e, c[i], n);
|
|
1765
1765
|
for (s in f)
|
|
1766
1766
|
r[s] = f[s];
|
|
1767
1767
|
}
|
|
1768
1768
|
} else if (c.constructor === a)
|
|
1769
|
-
for (s in f =
|
|
1769
|
+
for (s in f = rt(e, c, n), f)
|
|
1770
1770
|
r[s] = f[s];
|
|
1771
1771
|
}
|
|
1772
1772
|
}
|
|
@@ -1774,17 +1774,17 @@ function nt(e, t, n) {
|
|
|
1774
1774
|
t.jb = r;
|
|
1775
1775
|
}
|
|
1776
1776
|
for (s in r)
|
|
1777
|
-
r[s] === !0 ? e.g(n.object, s, void 0, Xn) : e.g(n.object, s,
|
|
1777
|
+
r[s] === !0 ? e.g(n.object, s, void 0, Xn) : e.g(n.object, s, on(e, r[s], n), Xn);
|
|
1778
1778
|
return r;
|
|
1779
1779
|
}
|
|
1780
1780
|
function xe(e) {
|
|
1781
1781
|
return e.o[e.o.length - 1].isConstructor;
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1784
|
-
return t[0] ===
|
|
1783
|
+
function cn(e, t) {
|
|
1784
|
+
return t[0] === Ve ? ln(e, t[1]) : e.G(t[0], t[1]);
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1787
|
-
return t[0] ===
|
|
1786
|
+
function un(e, t, n) {
|
|
1787
|
+
return t[0] === Ve ? pr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1788
1788
|
}
|
|
1789
1789
|
function w(e, t, n) {
|
|
1790
1790
|
throw e.N ? (n !== void 0 && t instanceof N && (t = e.Aa(t), Xt(e, t, n)), at(e, 4, t), fr) : n === void 0 ? t : n;
|
|
@@ -1834,34 +1834,34 @@ function at(e, t, n, r) {
|
|
|
1834
1834
|
URIError
|
|
1835
1835
|
}, r = String(e.G(n, "name")), i = e.G(n, "message").valueOf(), t = (t[r] || Error)(i), t.stack = String(e.G(n, "stack"))) : t = String(n), e.value = t, t;
|
|
1836
1836
|
}
|
|
1837
|
-
function
|
|
1837
|
+
function ne(e, t) {
|
|
1838
1838
|
switch (t.type) {
|
|
1839
1839
|
case "ArrayExpression":
|
|
1840
1840
|
return "[...]";
|
|
1841
1841
|
case "BinaryExpression":
|
|
1842
1842
|
case "LogicalExpression":
|
|
1843
|
-
return
|
|
1843
|
+
return ne(e, t.left) + " " + t.operator + " " + ne(e, t.right);
|
|
1844
1844
|
case "CallExpression":
|
|
1845
|
-
return
|
|
1845
|
+
return ne(e, t.callee) + "(...)";
|
|
1846
1846
|
case "ConditionalExpression":
|
|
1847
|
-
return
|
|
1847
|
+
return ne(e, t.test) + " ? " + ne(e, t.da) + " : " + ne(e, t.alternate);
|
|
1848
1848
|
case "Identifier":
|
|
1849
1849
|
return t.name;
|
|
1850
1850
|
case "Literal":
|
|
1851
1851
|
return t.raw;
|
|
1852
1852
|
case "MemberExpression":
|
|
1853
|
-
var n =
|
|
1854
|
-
return e =
|
|
1853
|
+
var n = ne(e, t.object);
|
|
1854
|
+
return e = ne(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
|
|
1855
1855
|
case "NewExpression":
|
|
1856
|
-
return "new " +
|
|
1856
|
+
return "new " + ne(e, t.callee) + "(...)";
|
|
1857
1857
|
case "ObjectExpression":
|
|
1858
1858
|
return "{...}";
|
|
1859
1859
|
case "ThisExpression":
|
|
1860
1860
|
return "this";
|
|
1861
1861
|
case "UnaryExpression":
|
|
1862
|
-
return t.operator + " " +
|
|
1862
|
+
return t.operator + " " + ne(e, t.K);
|
|
1863
1863
|
case "UpdateExpression":
|
|
1864
|
-
return n =
|
|
1864
|
+
return n = ne(e, t.K), t.prefix ? t.operator + n : n + t.operator;
|
|
1865
1865
|
}
|
|
1866
1866
|
return "???";
|
|
1867
1867
|
}
|
|
@@ -1901,7 +1901,7 @@ function st(e, t, n) {
|
|
|
1901
1901
|
var r = e.ya();
|
|
1902
1902
|
return r.type = "CallExpression", e = new C(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1903
1903
|
}
|
|
1904
|
-
function
|
|
1904
|
+
function dn(e, t, n, r) {
|
|
1905
1905
|
if (!e.Ka)
|
|
1906
1906
|
throw Error("Unexpected call to createSetter");
|
|
1907
1907
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
@@ -1934,7 +1934,7 @@ F.xa = null;
|
|
|
1934
1934
|
F.H = "Object";
|
|
1935
1935
|
F.data = null;
|
|
1936
1936
|
F.toString = function() {
|
|
1937
|
-
if (!
|
|
1937
|
+
if (!Qe)
|
|
1938
1938
|
return "[object Interpreter.Object]";
|
|
1939
1939
|
if (!(this instanceof N))
|
|
1940
1940
|
return String(this);
|
|
@@ -1982,7 +1982,7 @@ F.toString = function() {
|
|
|
1982
1982
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1983
1983
|
};
|
|
1984
1984
|
F.valueOf = function() {
|
|
1985
|
-
return !
|
|
1985
|
+
return !Qe || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1986
1986
|
};
|
|
1987
1987
|
function Si(e, t, n, r, i) {
|
|
1988
1988
|
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = i, this.Db = ++ki, this.time = 0;
|
|
@@ -2002,7 +2002,7 @@ p.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2002
2002
|
if (!t.ja)
|
|
2003
2003
|
return t.ja = !0, t = new C(n.left, t.scope), t.sa = !0, t;
|
|
2004
2004
|
if (!t.Da)
|
|
2005
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e =
|
|
2005
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = cn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, st(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new C(n.right, t.scope));
|
|
2006
2006
|
if (t.ta)
|
|
2007
2007
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2008
2008
|
else {
|
|
@@ -2047,8 +2047,8 @@ p.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2047
2047
|
default:
|
|
2048
2048
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
2049
2049
|
}
|
|
2050
|
-
if (n =
|
|
2051
|
-
return t.ta = !0, t.ib = r,
|
|
2050
|
+
if (n = un(this, t.Fa, r))
|
|
2051
|
+
return t.ta = !0, t.ib = r, dn(this, n, t.Fa, r);
|
|
2052
2052
|
e.pop(), e[e.length - 1].value = r;
|
|
2053
2053
|
}
|
|
2054
2054
|
};
|
|
@@ -2148,7 +2148,7 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2148
2148
|
t.ia = 2;
|
|
2149
2149
|
var i = t.value;
|
|
2150
2150
|
if (Array.isArray(i)) {
|
|
2151
|
-
if (t.U =
|
|
2151
|
+
if (t.U = cn(this, i), i[0] === Ve ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2152
2152
|
return t.ia = 1, st(this, i, t.value);
|
|
2153
2153
|
} else
|
|
2154
2154
|
t.U = i;
|
|
@@ -2158,7 +2158,7 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2158
2158
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2159
2159
|
return new C(n.arguments[t.A++], t.scope);
|
|
2160
2160
|
if (n.type === "NewExpression") {
|
|
2161
|
-
if (i instanceof N && !i.Ab || w(this, this.j,
|
|
2161
|
+
if (i instanceof N && !i.Ab || w(this, this.j, ne(this, n.callee) + " is not a constructor"), i === this.qa)
|
|
2162
2162
|
t.B = Ue(this);
|
|
2163
2163
|
else {
|
|
2164
2164
|
var a = i.h.prototype;
|
|
@@ -2171,12 +2171,12 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2171
2171
|
if (t.eb)
|
|
2172
2172
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2173
2173
|
else {
|
|
2174
|
-
if (t.eb = !0, i instanceof N || w(this, this.j,
|
|
2174
|
+
if (t.eb = !0, i instanceof N || w(this, this.j, ne(this, n.callee) + " is not a function"), e = i.node) {
|
|
2175
2175
|
for (n = Jt(this, e.body, i.Va), r = Ue(this), i = 0; i < t.F.length; i++)
|
|
2176
2176
|
this.g(r, i, t.F[i]);
|
|
2177
2177
|
for (this.g(n.object, "arguments", r), i = 0; i < e.oa.length; i++)
|
|
2178
2178
|
this.g(n.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2179
|
-
return n.S || (t.B = Gt(this, t.B)), this.g(n.object, "this", t.B,
|
|
2179
|
+
return n.S || (t.B = Gt(this, t.B)), this.g(n.object, "this", t.B, en), t.value = void 0, new C(e.body, n);
|
|
2180
2180
|
}
|
|
2181
2181
|
if (i.eval)
|
|
2182
2182
|
if (i = t.F[0], typeof i != "string")
|
|
@@ -2187,7 +2187,7 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2187
2187
|
} catch (c) {
|
|
2188
2188
|
w(this, this.T, "Invalid code: " + c.message);
|
|
2189
2189
|
}
|
|
2190
|
-
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body, xt(i, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Jt(this, r, n) :
|
|
2190
|
+
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body, xt(i, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Jt(this, r, n) : rt(this, r, n), this.value = void 0, new C(i, n);
|
|
2191
2191
|
}
|
|
2192
2192
|
else if (i.Ta)
|
|
2193
2193
|
t.scope.S || (t.B = Gt(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
@@ -2197,7 +2197,7 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2197
2197
|
t.value = c, s.za = !1;
|
|
2198
2198
|
}), this.za = !0, t.scope.S || (t.B = Gt(this, t.B)), i.Za.apply(t.B, r);
|
|
2199
2199
|
} else
|
|
2200
|
-
w(this, this.j,
|
|
2200
|
+
w(this, this.j, ne(this, n.callee) + " is not callable");
|
|
2201
2201
|
}
|
|
2202
2202
|
};
|
|
2203
2203
|
p.prototype.stepConditionalExpression = function(e, t, n) {
|
|
@@ -2273,11 +2273,11 @@ p.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2273
2273
|
}
|
|
2274
2274
|
if (!t.wb)
|
|
2275
2275
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2276
|
-
t.pa = [
|
|
2276
|
+
t.pa = [Ve, e.fa[0].id.name];
|
|
2277
2277
|
else
|
|
2278
2278
|
return t.pa = null, t = new C(e, t.scope), t.sa = !0, t;
|
|
2279
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r =
|
|
2280
|
-
return
|
|
2279
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = un(this, t.pa, e)))
|
|
2280
|
+
return dn(this, r, t.pa, e);
|
|
2281
2281
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2282
2282
|
return new C(n.body, t.scope);
|
|
2283
2283
|
};
|
|
@@ -2306,13 +2306,13 @@ p.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2306
2306
|
e.pop();
|
|
2307
2307
|
};
|
|
2308
2308
|
p.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2309
|
-
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e =
|
|
2309
|
+
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = sn(this, e)), t.value = on(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, en);
|
|
2310
2310
|
};
|
|
2311
2311
|
p.prototype.stepIdentifier = function(e, t, n) {
|
|
2312
2312
|
if (e.pop(), t.sa)
|
|
2313
|
-
e[e.length - 1].value = [
|
|
2313
|
+
e[e.length - 1].value = [Ve, n.name];
|
|
2314
2314
|
else {
|
|
2315
|
-
if (t =
|
|
2315
|
+
if (t = ln(this, n.name), this.P)
|
|
2316
2316
|
return st(this, t, this.Na);
|
|
2317
2317
|
e[e.length - 1].value = t;
|
|
2318
2318
|
}
|
|
@@ -2322,7 +2322,7 @@ p.prototype.stepLabeledStatement = function(e, t, n) {
|
|
|
2322
2322
|
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new C(n.body, t.scope), t.labels = e, t;
|
|
2323
2323
|
};
|
|
2324
2324
|
p.prototype.stepLiteral = function(e, t, n) {
|
|
2325
|
-
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma),
|
|
2325
|
+
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), nn(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2326
2326
|
};
|
|
2327
2327
|
p.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2328
2328
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
@@ -2373,7 +2373,7 @@ p.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2373
2373
|
return t.Pa = a, new C(i.value, t.scope);
|
|
2374
2374
|
}
|
|
2375
2375
|
for (s in t.Ja)
|
|
2376
|
-
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s,
|
|
2376
|
+
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, nt, {
|
|
2377
2377
|
configurable: !0,
|
|
2378
2378
|
enumerable: !0,
|
|
2379
2379
|
get: n.get,
|
|
@@ -2425,7 +2425,7 @@ p.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2425
2425
|
}
|
|
2426
2426
|
};
|
|
2427
2427
|
p.prototype.stepThisExpression = function(e) {
|
|
2428
|
-
e.pop(), e[e.length - 1].value =
|
|
2428
|
+
e.pop(), e[e.length - 1].value = ln(this, "this");
|
|
2429
2429
|
};
|
|
2430
2430
|
p.prototype.stepThrowStatement = function(e, t, n) {
|
|
2431
2431
|
if (t.ka)
|
|
@@ -2437,7 +2437,7 @@ p.prototype.stepTryStatement = function(e, t, n) {
|
|
|
2437
2437
|
if (!t.Rb)
|
|
2438
2438
|
return t.Rb = !0, new C(n.block, t.scope);
|
|
2439
2439
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2440
|
-
return t.Tb = !0, e =
|
|
2440
|
+
return t.Tb = !0, e = sn(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new C(n.Ea.body, e);
|
|
2441
2441
|
if (!t.Sb && n.fb)
|
|
2442
2442
|
return t.Sb = !0, new C(n.fb, t.scope);
|
|
2443
2443
|
e.pop(), t.ea && at(this, t.ea.type, t.ea.value, t.ea.label);
|
|
@@ -2463,7 +2463,7 @@ p.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2463
2463
|
case "delete":
|
|
2464
2464
|
if (n = !0, Array.isArray(r)) {
|
|
2465
2465
|
var i = r[0];
|
|
2466
|
-
i ===
|
|
2466
|
+
i === Ve && (i = t.scope), r = String(r[1]);
|
|
2467
2467
|
try {
|
|
2468
2468
|
delete i.h[r];
|
|
2469
2469
|
} catch {
|
|
@@ -2487,7 +2487,7 @@ p.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2487
2487
|
if (!t.ja)
|
|
2488
2488
|
return t.ja = !0, e = new C(n.K, t.scope), e.sa = !0, e;
|
|
2489
2489
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2490
|
-
var r =
|
|
2490
|
+
var r = cn(this, t.Ga);
|
|
2491
2491
|
if (t.ma = r, this.P)
|
|
2492
2492
|
return t.Ba = !0, st(this, r, t.Ga);
|
|
2493
2493
|
}
|
|
@@ -2500,8 +2500,8 @@ p.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2500
2500
|
i = r - 1;
|
|
2501
2501
|
else
|
|
2502
2502
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2503
|
-
if (n = n.prefix ? i : r, r =
|
|
2504
|
-
return t.ta = !0, t.ib = n,
|
|
2503
|
+
if (n = n.prefix ? i : r, r = un(this, t.Ga, i))
|
|
2504
|
+
return t.ta = !0, t.ib = n, dn(this, r, t.Ga, i);
|
|
2505
2505
|
e.pop(), e[e.length - 1].value = n;
|
|
2506
2506
|
}
|
|
2507
2507
|
};
|
|
@@ -2516,7 +2516,7 @@ p.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
|
2516
2516
|
e.pop();
|
|
2517
2517
|
};
|
|
2518
2518
|
p.prototype.stepWithStatement = function(e, t, n) {
|
|
2519
|
-
return t.Ca ? (e.pop(), e =
|
|
2519
|
+
return t.Ca ? (e.pop(), e = sn(this, t.scope, t.value), new C(n.body, e)) : (t.Ca = !0, new C(n.object, t.scope));
|
|
2520
2520
|
};
|
|
2521
2521
|
p.prototype.stepWhileStatement = p.prototype.stepDoWhileStatement;
|
|
2522
2522
|
we.Interpreter = p;
|
|
@@ -2534,7 +2534,7 @@ p.prototype.pseudoToNative = p.prototype.R;
|
|
|
2534
2534
|
p.prototype.getGlobalScope = p.prototype.Xb;
|
|
2535
2535
|
p.prototype.getStateStack = p.prototype.Yb;
|
|
2536
2536
|
p.prototype.setStateStack = p.prototype.ec;
|
|
2537
|
-
p.VALUE_IN_DESCRIPTOR =
|
|
2537
|
+
p.VALUE_IN_DESCRIPTOR = nt;
|
|
2538
2538
|
const Ci = (e) => e.split(`
|
|
2539
2539
|
`).map((t) => {
|
|
2540
2540
|
const n = t.trim();
|
|
@@ -2622,7 +2622,7 @@ const Ii = () => {
|
|
|
2622
2622
|
};
|
|
2623
2623
|
Kt(me, "cacheLimit", 20), Kt(me, "cache", /* @__PURE__ */ new Map());
|
|
2624
2624
|
let Fe = me;
|
|
2625
|
-
function
|
|
2625
|
+
function Le({
|
|
2626
2626
|
code: e,
|
|
2627
2627
|
context: t,
|
|
2628
2628
|
localState: n,
|
|
@@ -2664,6 +2664,7 @@ function rt({
|
|
|
2664
2664
|
return;
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
|
+
const fn = (e) => JSON.parse(JSON.stringify(e));
|
|
2667
2668
|
const Ai = ({
|
|
2668
2669
|
block: e,
|
|
2669
2670
|
context: t,
|
|
@@ -2673,7 +2674,7 @@ const Ai = ({
|
|
|
2673
2674
|
}) => {
|
|
2674
2675
|
if (!e.bindings)
|
|
2675
2676
|
return e;
|
|
2676
|
-
const a =
|
|
2677
|
+
const a = fn(e), s = {
|
|
2677
2678
|
...a,
|
|
2678
2679
|
properties: {
|
|
2679
2680
|
...a.properties
|
|
@@ -2683,7 +2684,7 @@ const Ai = ({
|
|
|
2683
2684
|
}
|
|
2684
2685
|
};
|
|
2685
2686
|
for (const c in e.bindings) {
|
|
2686
|
-
const f = e.bindings[c], g =
|
|
2687
|
+
const f = e.bindings[c], g = Le({
|
|
2687
2688
|
code: f,
|
|
2688
2689
|
localState: n,
|
|
2689
2690
|
rootState: r,
|
|
@@ -2787,7 +2788,7 @@ const Pi = ({
|
|
|
2787
2788
|
} = e;
|
|
2788
2789
|
if (!(n != null && n.collection))
|
|
2789
2790
|
return;
|
|
2790
|
-
const i =
|
|
2791
|
+
const i = Le({
|
|
2791
2792
|
code: n.collection,
|
|
2792
2793
|
localState: t.localState,
|
|
2793
2794
|
rootState: t.rootState,
|
|
@@ -2851,7 +2852,7 @@ const Pi = ({
|
|
|
2851
2852
|
small: e,
|
|
2852
2853
|
medium: t
|
|
2853
2854
|
}) => {
|
|
2854
|
-
const n =
|
|
2855
|
+
const n = fn(br);
|
|
2855
2856
|
if (!e || !t)
|
|
2856
2857
|
return n;
|
|
2857
2858
|
const r = Math.floor(e / 2);
|
|
@@ -2960,7 +2961,7 @@ function Wi(e) {
|
|
|
2960
2961
|
function Ui(e) {
|
|
2961
2962
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2962
2963
|
}
|
|
2963
|
-
const Li = (e) => `on${Ui(e)}`, Vi = (e, t) => (n) =>
|
|
2964
|
+
const Li = (e) => `on${Ui(e)}`, Vi = (e, t) => (n) => Le({
|
|
2964
2965
|
code: e,
|
|
2965
2966
|
context: t.context,
|
|
2966
2967
|
localState: t.localState,
|
|
@@ -3012,7 +3013,7 @@ function pn({
|
|
|
3012
3013
|
block: e,
|
|
3013
3014
|
context: t
|
|
3014
3015
|
}),
|
|
3015
|
-
[
|
|
3016
|
+
[tt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3016
3017
|
};
|
|
3017
3018
|
return _i({
|
|
3018
3019
|
properties: n,
|
|
@@ -3022,7 +3023,7 @@ function pn({
|
|
|
3022
3023
|
}
|
|
3023
3024
|
function Hi(e) {
|
|
3024
3025
|
return /* @__PURE__ */ y(
|
|
3025
|
-
|
|
3026
|
+
Qt,
|
|
3026
3027
|
{
|
|
3027
3028
|
TagName: e.Wrapper,
|
|
3028
3029
|
attributes: pn({
|
|
@@ -3387,6 +3388,7 @@ function Ji(e) {
|
|
|
3387
3388
|
((oe = (G = e.builderContext.content) == null ? void 0 : G.meta) == null ? void 0 : oe.breakpoints) || {}
|
|
3388
3389
|
)[v].max;
|
|
3389
3390
|
}, D = function() {
|
|
3391
|
+
const v = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
3390
3392
|
return `
|
|
3391
3393
|
@media (max-width: ${j("medium")}px) {
|
|
3392
3394
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -3394,7 +3396,7 @@ function Ji(e) {
|
|
|
3394
3396
|
align-items: stretch;
|
|
3395
3397
|
}
|
|
3396
3398
|
|
|
3397
|
-
|
|
3399
|
+
${v} {
|
|
3398
3400
|
width: var(--column-width-tablet) !important;
|
|
3399
3401
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
3400
3402
|
}
|
|
@@ -3406,7 +3408,7 @@ function Ji(e) {
|
|
|
3406
3408
|
align-items: stretch;
|
|
3407
3409
|
}
|
|
3408
3410
|
|
|
3409
|
-
|
|
3411
|
+
${v} {
|
|
3410
3412
|
width: var(--column-width-mobile) !important;
|
|
3411
3413
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
3412
3414
|
}
|
|
@@ -3417,7 +3419,7 @@ function Ji(e) {
|
|
|
3417
3419
|
...v.link ? {
|
|
3418
3420
|
href: v.link
|
|
3419
3421
|
} : {},
|
|
3420
|
-
[
|
|
3422
|
+
[tt()]: "builder-column",
|
|
3421
3423
|
style: vr(m(U))
|
|
3422
3424
|
};
|
|
3423
3425
|
};
|
|
@@ -3425,7 +3427,7 @@ function Ji(e) {
|
|
|
3425
3427
|
/* @__PURE__ */ se(
|
|
3426
3428
|
"div",
|
|
3427
3429
|
{
|
|
3428
|
-
className: Xi((P = e.builderBlock) == null ? void 0 : P.id) + " div-
|
|
3430
|
+
className: Xi((P = e.builderBlock) == null ? void 0 : P.id) + " div-2cd13691",
|
|
3429
3431
|
style: b(),
|
|
3430
3432
|
children: [
|
|
3431
3433
|
/* @__PURE__ */ y(
|
|
@@ -3437,7 +3439,7 @@ function Ji(e) {
|
|
|
3437
3439
|
}
|
|
3438
3440
|
),
|
|
3439
3441
|
(_ = e.columns) == null ? void 0 : _.map((O, v) => /* @__PURE__ */ y(
|
|
3440
|
-
|
|
3442
|
+
Qt,
|
|
3441
3443
|
{
|
|
3442
3444
|
TagName: i(O),
|
|
3443
3445
|
actionAttributes: {},
|
|
@@ -3462,7 +3464,7 @@ function Ji(e) {
|
|
|
3462
3464
|
]
|
|
3463
3465
|
}
|
|
3464
3466
|
),
|
|
3465
|
-
/* @__PURE__ */ y("style", { children: `.div-
|
|
3467
|
+
/* @__PURE__ */ y("style", { children: `.div-2cd13691 {
|
|
3466
3468
|
display: flex;
|
|
3467
3469
|
line-height: normal;
|
|
3468
3470
|
}` })
|
|
@@ -3533,7 +3535,8 @@ function eo(e) {
|
|
|
3533
3535
|
};
|
|
3534
3536
|
return e.aspectRatio ? b : void 0;
|
|
3535
3537
|
}
|
|
3536
|
-
return
|
|
3538
|
+
return te(() => {
|
|
3539
|
+
}, []), /* @__PURE__ */ se(K, { children: [
|
|
3537
3540
|
/* @__PURE__ */ se(K, { children: [
|
|
3538
3541
|
/* @__PURE__ */ se("picture", { children: [
|
|
3539
3542
|
n() ? /* @__PURE__ */ y("source", { type: "image/webp", srcSet: n() }) : null,
|
|
@@ -3549,7 +3552,7 @@ function eo(e) {
|
|
|
3549
3552
|
objectFit: e.backgroundSize || "cover",
|
|
3550
3553
|
...r()
|
|
3551
3554
|
},
|
|
3552
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
3555
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-2d6925f2",
|
|
3553
3556
|
src: e.image,
|
|
3554
3557
|
srcSet: t(),
|
|
3555
3558
|
sizes: e.sizes
|
|
@@ -3559,23 +3562,23 @@ function eo(e) {
|
|
|
3559
3562
|
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ y(
|
|
3560
3563
|
"div",
|
|
3561
3564
|
{
|
|
3562
|
-
className: "builder-image-sizer div-
|
|
3565
|
+
className: "builder-image-sizer div-2d6925f2",
|
|
3563
3566
|
style: {
|
|
3564
3567
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
3565
3568
|
}
|
|
3566
3569
|
}
|
|
3567
3570
|
) : null,
|
|
3568
3571
|
(c = (s = e.builderBlock) == null ? void 0 : s.children) != null && c.length && e.fitContent ? /* @__PURE__ */ y(K, { children: e.children }) : null,
|
|
3569
|
-
!e.fitContent && ((g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length) ? /* @__PURE__ */ y("div", { className: "div-
|
|
3572
|
+
!e.fitContent && ((g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length) ? /* @__PURE__ */ y("div", { className: "div-2d6925f2-2", children: e.children }) : null
|
|
3570
3573
|
] }),
|
|
3571
|
-
/* @__PURE__ */ y("style", { children: `.img-
|
|
3574
|
+
/* @__PURE__ */ y("style", { children: `.img-2d6925f2 {
|
|
3572
3575
|
opacity: 1;
|
|
3573
3576
|
transition: opacity 0.2s ease-in-out;
|
|
3574
|
-
}.div-
|
|
3577
|
+
}.div-2d6925f2 {
|
|
3575
3578
|
width: 100%;
|
|
3576
3579
|
pointer-events: none;
|
|
3577
3580
|
font-size: 0;
|
|
3578
|
-
}.div-
|
|
3581
|
+
}.div-2d6925f2-2 {
|
|
3579
3582
|
display: flex;
|
|
3580
3583
|
flex-direction: column;
|
|
3581
3584
|
align-items: stretch;
|
|
@@ -4085,7 +4088,8 @@ const co = {
|
|
|
4085
4088
|
}
|
|
4086
4089
|
}, uo = {
|
|
4087
4090
|
shouldReceiveBuilderProps: {
|
|
4088
|
-
builderBlock: !1
|
|
4091
|
+
builderBlock: !1,
|
|
4092
|
+
builderContext: !0
|
|
4089
4093
|
},
|
|
4090
4094
|
name: "Text",
|
|
4091
4095
|
static: !0,
|
|
@@ -4106,12 +4110,30 @@ const co = {
|
|
|
4106
4110
|
}
|
|
4107
4111
|
};
|
|
4108
4112
|
function fo(e) {
|
|
4109
|
-
var t;
|
|
4110
4113
|
return /* @__PURE__ */ y(
|
|
4111
4114
|
"div",
|
|
4112
4115
|
{
|
|
4113
4116
|
className: "builder-text",
|
|
4114
|
-
dangerouslySetInnerHTML: { __html: (
|
|
4117
|
+
dangerouslySetInnerHTML: { __html: function() {
|
|
4118
|
+
var f;
|
|
4119
|
+
const r = e.builderContext, {
|
|
4120
|
+
context: i,
|
|
4121
|
+
localState: a,
|
|
4122
|
+
rootState: s,
|
|
4123
|
+
rootSetState: c
|
|
4124
|
+
} = r;
|
|
4125
|
+
return String(((f = e.text) == null ? void 0 : f.toString()) || "").replace(
|
|
4126
|
+
/{{([^}]+)}}/g,
|
|
4127
|
+
(g, b) => Le({
|
|
4128
|
+
code: b,
|
|
4129
|
+
context: i,
|
|
4130
|
+
localState: a,
|
|
4131
|
+
rootState: s,
|
|
4132
|
+
rootSetState: c,
|
|
4133
|
+
enableCache: !1
|
|
4134
|
+
})
|
|
4135
|
+
);
|
|
4136
|
+
}() },
|
|
4115
4137
|
style: {
|
|
4116
4138
|
outline: "none"
|
|
4117
4139
|
}
|
|
@@ -4142,8 +4164,8 @@ const ho = {
|
|
|
4142
4164
|
}]
|
|
4143
4165
|
};
|
|
4144
4166
|
function po(e) {
|
|
4145
|
-
const t =
|
|
4146
|
-
return
|
|
4167
|
+
const t = Zt(null), [n, r] = ye(() => []), [i, a] = ye(() => []);
|
|
4168
|
+
return te(() => {
|
|
4147
4169
|
var c;
|
|
4148
4170
|
if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
4149
4171
|
return;
|
|
@@ -4196,7 +4218,7 @@ const mo = {
|
|
|
4196
4218
|
}]
|
|
4197
4219
|
}, go = ["text/javascript", "application/javascript", "application/ecmascript"], yo = (e) => go.includes(e.type);
|
|
4198
4220
|
function vo(e) {
|
|
4199
|
-
const t =
|
|
4221
|
+
const t = Zt(null), [n, r] = ye(() => []), [i, a] = ye(() => []), [s, c] = ye(() => !1);
|
|
4200
4222
|
function f() {
|
|
4201
4223
|
if (!t.current || !t.current.getElementsByTagName)
|
|
4202
4224
|
return;
|
|
@@ -4215,7 +4237,7 @@ function vo(e) {
|
|
|
4215
4237
|
}
|
|
4216
4238
|
}
|
|
4217
4239
|
}
|
|
4218
|
-
return
|
|
4240
|
+
return te(() => {
|
|
4219
4241
|
t.current && !s && (c(!0), f());
|
|
4220
4242
|
}, [t.current, s]), /* @__PURE__ */ y(
|
|
4221
4243
|
"div",
|
|
@@ -4755,7 +4777,7 @@ font-weight: ${c};
|
|
|
4755
4777
|
`, Ho = (e) => e ? "" : $o, Ko = (e) => `variant-${e}`;
|
|
4756
4778
|
function Go(e) {
|
|
4757
4779
|
var oe, $, Q, E, Ee, L, Ie;
|
|
4758
|
-
const t =
|
|
4780
|
+
const t = Zt(null);
|
|
4759
4781
|
function n(I) {
|
|
4760
4782
|
var B, W;
|
|
4761
4783
|
const x = {
|
|
@@ -4821,7 +4843,7 @@ function Go(e) {
|
|
|
4821
4843
|
function f() {
|
|
4822
4844
|
var x, B;
|
|
4823
4845
|
const I = (B = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : B.jsCode;
|
|
4824
|
-
I &&
|
|
4846
|
+
I && Le({
|
|
4825
4847
|
code: I,
|
|
4826
4848
|
context: e.context || {},
|
|
4827
4849
|
localState: void 0,
|
|
@@ -4860,7 +4882,7 @@ function Go(e) {
|
|
|
4860
4882
|
const le = J.replace(
|
|
4861
4883
|
/{{([^}]+)}}/g,
|
|
4862
4884
|
(ce, lt) => String(
|
|
4863
|
-
|
|
4885
|
+
Le({
|
|
4864
4886
|
code: lt,
|
|
4865
4887
|
context: e.context || {},
|
|
4866
4888
|
localState: void 0,
|
|
@@ -4887,7 +4909,7 @@ function Go(e) {
|
|
|
4887
4909
|
"builder:component:stateChange",
|
|
4888
4910
|
{
|
|
4889
4911
|
detail: {
|
|
4890
|
-
state:
|
|
4912
|
+
state: fn(e.builderContextSignal.rootState),
|
|
4891
4913
|
ref: {
|
|
4892
4914
|
name: e.model
|
|
4893
4915
|
}
|
|
@@ -4931,7 +4953,7 @@ function Go(e) {
|
|
|
4931
4953
|
});
|
|
4932
4954
|
}
|
|
4933
4955
|
const G = Qr();
|
|
4934
|
-
return
|
|
4956
|
+
return te(() => {
|
|
4935
4957
|
var I;
|
|
4936
4958
|
return (I = t.current) == null || I.addEventListener(
|
|
4937
4959
|
"initeditingbldr",
|
|
@@ -4943,7 +4965,7 @@ function Go(e) {
|
|
|
4943
4965
|
v
|
|
4944
4966
|
);
|
|
4945
4967
|
};
|
|
4946
|
-
}, []),
|
|
4968
|
+
}, []), te(() => {
|
|
4947
4969
|
var I;
|
|
4948
4970
|
return (I = t.current) == null || I.addEventListener(
|
|
4949
4971
|
"initpreviewingbldr",
|
|
@@ -4955,7 +4977,7 @@ function Go(e) {
|
|
|
4955
4977
|
U
|
|
4956
4978
|
);
|
|
4957
4979
|
};
|
|
4958
|
-
}, []),
|
|
4980
|
+
}, []), te(() => {
|
|
4959
4981
|
var I, x;
|
|
4960
4982
|
if (De()) {
|
|
4961
4983
|
if (Ce() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && vt(e.canTrack)) {
|
|
@@ -4970,24 +4992,24 @@ function Go(e) {
|
|
|
4970
4992
|
}
|
|
4971
4993
|
Kr() && Ce();
|
|
4972
4994
|
}
|
|
4973
|
-
}, []),
|
|
4995
|
+
}, []), te(() => {
|
|
4974
4996
|
e.apiKey || ot.error(
|
|
4975
4997
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4976
4998
|
), f(), _(), O();
|
|
4977
|
-
}, []),
|
|
4978
|
-
}, [e.content]),
|
|
4999
|
+
}, []), te(() => {
|
|
5000
|
+
}, [e.content]), te(() => {
|
|
4979
5001
|
f();
|
|
4980
|
-
}, [($ = (oe = e.builderContextSignal.content) == null ? void 0 : oe.data) == null ? void 0 : $.jsCode]),
|
|
5002
|
+
}, [($ = (oe = e.builderContextSignal.content) == null ? void 0 : oe.data) == null ? void 0 : $.jsCode]), te(() => {
|
|
4981
5003
|
_();
|
|
4982
|
-
}, [(E = (Q = e.builderContextSignal.content) == null ? void 0 : Q.data) == null ? void 0 : E.httpRequests]),
|
|
5004
|
+
}, [(E = (Q = e.builderContextSignal.content) == null ? void 0 : Q.data) == null ? void 0 : E.httpRequests]), te(() => {
|
|
4983
5005
|
O();
|
|
4984
|
-
}, [e.builderContextSignal.rootState]),
|
|
5006
|
+
}, [e.builderContextSignal.rootState]), te(() => {
|
|
4985
5007
|
e.data && n(e.data);
|
|
4986
|
-
}, [e.data]),
|
|
5008
|
+
}, [e.data]), te(() => {
|
|
4987
5009
|
e.locale && n({
|
|
4988
5010
|
locale: e.locale
|
|
4989
5011
|
});
|
|
4990
|
-
}, [e.locale]),
|
|
5012
|
+
}, [e.locale]), te(() => () => {
|
|
4991
5013
|
De() && (window.removeEventListener("message", c), window.removeEventListener(
|
|
4992
5014
|
"builder:component:stateChangeListenerActivated",
|
|
4993
5015
|
O
|
|
@@ -5289,7 +5311,7 @@ async function Zo(e) {
|
|
|
5289
5311
|
}, r = function() {
|
|
5290
5312
|
var m, j;
|
|
5291
5313
|
return [
|
|
5292
|
-
e.attributes[
|
|
5314
|
+
e.attributes[tt()],
|
|
5293
5315
|
"builder-symbol",
|
|
5294
5316
|
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
5295
5317
|
(j = e.symbol) != null && j.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|