@builder.io/sdk-react-nextjs 0.14.7 → 0.14.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/{USE_CLIENT_BUNDLE-9a694813.cjs → USE_CLIENT_BUNDLE-2046b4f7.cjs} +1 -1
- package/lib/{node/USE_CLIENT_BUNDLE-04e65a8b.js → browser/USE_CLIENT_BUNDLE-78517750.js} +2 -2
- package/lib/{edge/USE_SERVER_BUNDLE-536a078a.js → browser/USE_SERVER_BUNDLE-29f23050.js} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-0165e9c2.cjs → browser/USE_SERVER_BUNDLE-d3d0c3a5.cjs} +1 -1
- package/lib/browser/{bundle-187b6567.js → bundle-d78727c9.js} +92 -88
- package/lib/browser/{bundle-f2d9f409.cjs → bundle-eca4b0ba.cjs} +12 -11
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{browser/USE_CLIENT_BUNDLE-f0eac1bb.js → edge/USE_CLIENT_BUNDLE-01cf3cc1.js} +2 -2
- package/lib/{node/USE_CLIENT_BUNDLE-4e14ccee.cjs → edge/USE_CLIENT_BUNDLE-23418377.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-dee3041b.js → edge/USE_SERVER_BUNDLE-2cb317bc.js} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-6f53d199.cjs → edge/USE_SERVER_BUNDLE-7cb08770.cjs} +1 -1
- package/lib/edge/{bundle-f84983cc.cjs → bundle-07c68bbe.cjs} +19 -18
- package/lib/edge/{bundle-d26182eb.js → bundle-7da386a2.js} +199 -195
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-7cf0df22.js → node/USE_CLIENT_BUNDLE-690f58c3.js} +2 -2
- package/lib/{edge/USE_CLIENT_BUNDLE-bda05805.cjs → node/USE_CLIENT_BUNDLE-f9317c5f.cjs} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-280036e3.js → node/USE_SERVER_BUNDLE-649f2942.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-ea761ee7.cjs → node/USE_SERVER_BUNDLE-e8d80664.cjs} +1 -1
- package/lib/node/{bundle-29f6bee7.js → bundle-001f0cdc.js} +45 -41
- package/lib/node/{bundle-b303d0db.cjs → bundle-77f045ce.cjs} +8 -7
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +1 -1
- package/types/cjs/components/content/components/enable-editor.d.ts +1 -1
- package/types/cjs/components/content/components/styles.d.ts +1 -0
- package/types/cjs/components/content/components/styles.helpers.d.ts +1 -0
- package/types/cjs/components/content/contentProps.types.d.ts +6 -1
- package/types/cjs/components/content-variants/content-variants.d.ts +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/esm/components/content/components/enable-editor.d.ts +1 -1
- package/types/esm/components/content/components/styles.d.ts +1 -0
- package/types/esm/components/content/components/styles.helpers.d.ts +1 -0
- package/types/esm/components/content/contentProps.types.d.ts +6 -1
- package/types/esm/components/content-variants/content-variants.d.ts +1 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as A, Fragment as Z, jsxs as xe } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { LRUCache as no } from "lru-cache";
|
|
4
|
-
import { I as ro, B as oo, a as io, D as ao, C as so, E as lo, b as co, V as uo, c as fo, F as po, d as ho, S as mo, e as go } from "./USE_CLIENT_BUNDLE-
|
|
4
|
+
import { I as ro, B as oo, a as io, D as ao, C as so, E as lo, b as co, V as uo, c as fo, F as po, d as ho, S as mo, e as go } from "./USE_CLIENT_BUNDLE-01cf3cc1.js";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
const yo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]),
|
|
6
|
+
const yo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ga = (e) => typeof e == "string" && yo.has(e.toLowerCase()), he = "rsc", Yt = () => {
|
|
7
7
|
switch (he) {
|
|
8
8
|
case "react":
|
|
9
9
|
case "reactNative":
|
|
@@ -45,7 +45,7 @@ const bo = (e) => {
|
|
|
45
45
|
function So() {
|
|
46
46
|
return G() && window.self !== window.top;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Jt(e) {
|
|
49
49
|
return So() && ur(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
50
50
|
}
|
|
51
51
|
const wo = () => {
|
|
@@ -93,7 +93,7 @@ const wo = () => {
|
|
|
93
93
|
context: t,
|
|
94
94
|
event: n
|
|
95
95
|
}), ko = () => ({
|
|
96
|
-
isEditing:
|
|
96
|
+
isEditing: Jt(),
|
|
97
97
|
isBrowser: G(),
|
|
98
98
|
isServer: !G(),
|
|
99
99
|
getUserAttributes: () => fr()
|
|
@@ -151,7 +151,7 @@ const hr = (e, t, n) => {
|
|
|
151
151
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
152
152
|
return r.slice(0, -1).reduce((o, i, s) => Object(o[i]) === o[i] ? o[i] : o[i] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
153
153
|
};
|
|
154
|
-
var
|
|
154
|
+
var U, Io = function(e) {
|
|
155
155
|
function t(a) {
|
|
156
156
|
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && eo.test(String.fromCharCode(a));
|
|
157
157
|
}
|
|
@@ -225,7 +225,7 @@ var B, Io = function(e) {
|
|
|
225
225
|
function v(a) {
|
|
226
226
|
switch (a) {
|
|
227
227
|
case 46:
|
|
228
|
-
a = g.charCodeAt(f + 1), 48 <= a && 57 >= a ? k(!0) : (++f, s(
|
|
228
|
+
a = g.charCodeAt(f + 1), 48 <= a && 57 >= a ? k(!0) : (++f, s(Bn));
|
|
229
229
|
return;
|
|
230
230
|
case 40:
|
|
231
231
|
return ++f, s(le);
|
|
@@ -340,11 +340,11 @@ var B, Io = function(e) {
|
|
|
340
340
|
return;
|
|
341
341
|
case 43:
|
|
342
342
|
case 45:
|
|
343
|
-
l = g.charCodeAt(f + 1), l === a ? l === 45 && g.charCodeAt(f + 2) === 62 && it.test(g.slice(ge, f)) ? (f += 3, u(), d(), x()) : m(Wr, 2) : l === 61 ? m(we, 2) : m(
|
|
343
|
+
l = g.charCodeAt(f + 1), l === a ? l === 45 && g.charCodeAt(f + 2) === 62 && it.test(g.slice(ge, f)) ? (f += 3, u(), d(), x()) : m(Wr, 2) : l === 61 ? m(we, 2) : m(Jr, 1);
|
|
344
344
|
return;
|
|
345
345
|
case 60:
|
|
346
346
|
case 62:
|
|
347
|
-
l = g.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && g.charCodeAt(f + 2) === 62 ? 3 : 2, g.charCodeAt(f + c) === 61 ? m(we, c + 1) : m(
|
|
347
|
+
l = g.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && g.charCodeAt(f + 2) === 62 ? 3 : 2, g.charCodeAt(f + c) === 61 ? m(we, c + 1) : m(Yr, c)) : l === 33 && a === 60 && g.charCodeAt(f + 2) === 45 && g.charCodeAt(f + 3) === 45 ? (f += 4, u(), d(), x()) : (l === 61 && (c = g.charCodeAt(f + 2) === 61 ? 3 : 2), m(Xr, c));
|
|
348
348
|
return;
|
|
349
349
|
case 61:
|
|
350
350
|
case 33:
|
|
@@ -389,7 +389,7 @@ var B, Io = function(e) {
|
|
|
389
389
|
}
|
|
390
390
|
++f;
|
|
391
391
|
}
|
|
392
|
-
a = g.slice(c, f), ++f, (l =
|
|
392
|
+
a = g.slice(c, f), ++f, (l = B()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
393
393
|
try {
|
|
394
394
|
var I = new RegExp(a, l);
|
|
395
395
|
} catch (_) {
|
|
@@ -399,10 +399,10 @@ var B, Io = function(e) {
|
|
|
399
399
|
}
|
|
400
400
|
function R(a, l) {
|
|
401
401
|
for (var c = f, p = 0, I = l === void 0 ? 1 / 0 : l, _ = 0; _ < I; ++_) {
|
|
402
|
-
var
|
|
403
|
-
if (
|
|
402
|
+
var Y = g.charCodeAt(f);
|
|
403
|
+
if (Y = 97 <= Y ? Y - 97 + 10 : 65 <= Y ? Y - 65 + 10 : 48 <= Y && 57 >= Y ? Y - 48 : 1 / 0, Y >= a)
|
|
404
404
|
break;
|
|
405
|
-
++f, p = p * a +
|
|
405
|
+
++f, p = p * a + Y;
|
|
406
406
|
}
|
|
407
407
|
return f === c || l !== void 0 && f - c !== l ? null : p;
|
|
408
408
|
}
|
|
@@ -415,7 +415,7 @@ var B, Io = function(e) {
|
|
|
415
415
|
function w(a) {
|
|
416
416
|
return a = R(16, a), a === null && r(D, "Bad character escape sequence"), a;
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function B() {
|
|
419
419
|
Te = !1;
|
|
420
420
|
for (var a, l = !0, c = f; ; ) {
|
|
421
421
|
var p = g.charCodeAt(f);
|
|
@@ -432,7 +432,7 @@ var B, Io = function(e) {
|
|
|
432
432
|
return Te ? a : g.slice(c, f);
|
|
433
433
|
}
|
|
434
434
|
function N() {
|
|
435
|
-
var a =
|
|
435
|
+
var a = B(), l = Ee;
|
|
436
436
|
!Te && Zr(a) && (l = _r[a]), s(l, a);
|
|
437
437
|
}
|
|
438
438
|
function C() {
|
|
@@ -501,31 +501,31 @@ var B, Io = function(e) {
|
|
|
501
501
|
case bn:
|
|
502
502
|
return C(), be(), T(l, "DebuggerStatement");
|
|
503
503
|
case wn:
|
|
504
|
-
return C(), V.push(Vt), l.body = ne(), V.pop(), F(
|
|
504
|
+
return C(), V.push(Vt), l.body = ne(), V.pop(), F(Bt), l.test = Ue(), be(), T(l, "DoWhileStatement");
|
|
505
505
|
case Cn:
|
|
506
|
-
return C(), V.push(Vt), F(le), E === ce ? vt(l, null) : E ===
|
|
506
|
+
return C(), V.push(Vt), F(le), E === ce ? vt(l, null) : E === Ut ? (a = L(), C(), hn(a, !0), T(a, "VariableDeclaration"), a.fa.length === 1 && M(rt) ? dn(l, a) : vt(l, a)) : (a = K(!1, !0), M(rt) ? (et(a), dn(l, a)) : vt(l, a));
|
|
507
507
|
case Pt:
|
|
508
508
|
return C(), xt(l, !0);
|
|
509
509
|
case En:
|
|
510
|
-
return C(), l.test =
|
|
510
|
+
return C(), l.test = Ue(), l.da = ne(), l.alternate = M(xn) ? ne() : null, T(l, "IfStatement");
|
|
511
511
|
case In:
|
|
512
512
|
return Ve || O.Ib || r(D, "'return' outside of function"), C(), M(ce) || Qe() ? l.K = null : (l.K = K(), be()), T(l, "ReturnStatement");
|
|
513
513
|
case Nt:
|
|
514
|
-
for (C(), l.Qb =
|
|
514
|
+
for (C(), l.Qb = Ue(), l.tb = [], F(Le), V.push(to); E !== Ie; )
|
|
515
515
|
E === Rt || E === Sn ? (a = E === Rt, p && T(p, "SwitchCase"), l.tb.push(p = L()), p.da = [], C(), a ? p.test = K() : (c && r(Tt, "Multiple default clauses"), c = !0, p.test = null), F(_e)) : (p || ie(), p.da.push(ne()));
|
|
516
516
|
return p && T(p, "SwitchCase"), C(), V.pop(), T(l, "SwitchStatement");
|
|
517
517
|
case Tn:
|
|
518
518
|
return C(), it.test(g.slice(ge, D)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), T(l, "ThrowStatement");
|
|
519
519
|
case An:
|
|
520
|
-
return C(), l.block =
|
|
521
|
-
case Bt:
|
|
522
|
-
return C(), hn(l), be(), T(l, "VariableDeclaration");
|
|
520
|
+
return C(), l.block = Be(), l.Ea = null, E === yn && (a = L(), C(), F(le), a.Ua = ae(), q && ot(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), F(re), a.body = Be(), l.Ea = T(a, "CatchClause")), l.fb = M(kn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), T(l, "TryStatement");
|
|
523
521
|
case Ut:
|
|
524
|
-
return C(),
|
|
522
|
+
return C(), hn(l), be(), T(l, "VariableDeclaration");
|
|
523
|
+
case Bt:
|
|
524
|
+
return C(), l.test = Ue(), V.push(Vt), l.body = ne(), V.pop(), T(l, "WhileStatement");
|
|
525
525
|
case On:
|
|
526
|
-
return q && r(D, "'with' in strict mode"), C(), l.object =
|
|
526
|
+
return q && r(D, "'with' in strict mode"), C(), l.object = Ue(), l.body = ne(), T(l, "WithStatement");
|
|
527
527
|
case Le:
|
|
528
|
-
return
|
|
528
|
+
return Be();
|
|
529
529
|
case ce:
|
|
530
530
|
return C(), T(l, "EmptyStatement");
|
|
531
531
|
default:
|
|
@@ -540,12 +540,12 @@ var B, Io = function(e) {
|
|
|
540
540
|
return l.la = I, be(), T(l, "ExpressionStatement");
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function Ue() {
|
|
544
544
|
F(le);
|
|
545
545
|
var a = K();
|
|
546
546
|
return F(re), a;
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Be(a) {
|
|
549
549
|
var l = L(), c = !0, p = !1;
|
|
550
550
|
for (l.body = [], F(Le); !M(Ie); ) {
|
|
551
551
|
var I = ne();
|
|
@@ -605,7 +605,7 @@ var B, Io = function(e) {
|
|
|
605
605
|
return l;
|
|
606
606
|
}
|
|
607
607
|
function Me(a, l) {
|
|
608
|
-
if (M(
|
|
608
|
+
if (M(Bn)) {
|
|
609
609
|
var c = me(a);
|
|
610
610
|
return c.object = a, c.Wa = ae(!0), c.bb = !1, Me(T(c, "MemberExpression"), l);
|
|
611
611
|
}
|
|
@@ -624,7 +624,7 @@ var B, Io = function(e) {
|
|
|
624
624
|
return a = L(), a.value = te, a.raw = g.slice(D, Ce), C(), T(a, "Literal");
|
|
625
625
|
case Pn:
|
|
626
626
|
case Nn:
|
|
627
|
-
case
|
|
627
|
+
case Un:
|
|
628
628
|
return a = L(), a.value = E.$a, a.raw = E.l, C(), T(a, "Literal");
|
|
629
629
|
case le:
|
|
630
630
|
a = Et;
|
|
@@ -649,8 +649,8 @@ var B, Io = function(e) {
|
|
|
649
649
|
} else
|
|
650
650
|
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ie() : (I = c = !0, _ = p.kind = p.key.name, p.key = E === De || E === nt ? tt() : ae(!0), E !== le && ie(), p.value = xt(L(), !1));
|
|
651
651
|
if (p.key.type === "Identifier" && (q || c))
|
|
652
|
-
for (var
|
|
653
|
-
var Ae = a.h[
|
|
652
|
+
for (var Y = 0; Y < a.h.length; ++Y) {
|
|
653
|
+
var Ae = a.h[Y];
|
|
654
654
|
if (Ae.key.name === p.key.name) {
|
|
655
655
|
var Dt = _ === Ae.kind || I && Ae.kind === "init" || _ === "init" && (Ae.kind === "get" || Ae.kind === "set");
|
|
656
656
|
Dt && !q && _ === "init" && Ae.kind === "init" && (Dt = !1), Dt && r(p.key.start, "Redefinition of property");
|
|
@@ -673,7 +673,7 @@ var B, Io = function(e) {
|
|
|
673
673
|
c ? c = !1 : F(ye), a.oa.push(ae());
|
|
674
674
|
c = Ve;
|
|
675
675
|
var p = V;
|
|
676
|
-
if (Ve = !0, V = [], a.body =
|
|
676
|
+
if (Ve = !0, V = [], a.body = Be(!0), Ve = c, V = p, q || a.body.body.length && yt(a.body.body[0])) {
|
|
677
677
|
for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
|
|
678
678
|
if (p = 0 > c ? a.id : a.oa[c], (Wn(p.name) || ot(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= c)
|
|
679
679
|
for (var I = 0; I < c; ++I)
|
|
@@ -764,9 +764,9 @@ var B, Io = function(e) {
|
|
|
764
764
|
m: !0
|
|
765
765
|
}, An = {
|
|
766
766
|
l: "try"
|
|
767
|
-
}, Bt = {
|
|
768
|
-
l: "var"
|
|
769
767
|
}, Ut = {
|
|
768
|
+
l: "var"
|
|
769
|
+
}, Bt = {
|
|
770
770
|
l: "while",
|
|
771
771
|
W: !0
|
|
772
772
|
}, On = {
|
|
@@ -782,7 +782,7 @@ var B, Io = function(e) {
|
|
|
782
782
|
}, Nn = {
|
|
783
783
|
l: "true",
|
|
784
784
|
$a: !0
|
|
785
|
-
},
|
|
785
|
+
}, Un = {
|
|
786
786
|
l: "false",
|
|
787
787
|
$a: !1
|
|
788
788
|
}, rt = {
|
|
@@ -806,12 +806,12 @@ var B, Io = function(e) {
|
|
|
806
806
|
switch: Nt,
|
|
807
807
|
throw: Tn,
|
|
808
808
|
try: An,
|
|
809
|
-
var:
|
|
810
|
-
while:
|
|
809
|
+
var: Ut,
|
|
810
|
+
while: Bt,
|
|
811
811
|
with: On,
|
|
812
812
|
null: Pn,
|
|
813
813
|
true: Nn,
|
|
814
|
-
false:
|
|
814
|
+
false: Un,
|
|
815
815
|
new: jn,
|
|
816
816
|
in: rt,
|
|
817
817
|
instanceof: {
|
|
@@ -859,7 +859,7 @@ var B, Io = function(e) {
|
|
|
859
859
|
}, _e = {
|
|
860
860
|
type: ":",
|
|
861
861
|
m: !0
|
|
862
|
-
},
|
|
862
|
+
}, Bn = {
|
|
863
863
|
type: "."
|
|
864
864
|
}, Mn = {
|
|
865
865
|
type: "?",
|
|
@@ -901,10 +901,10 @@ var B, Io = function(e) {
|
|
|
901
901
|
}, Xr = {
|
|
902
902
|
L: 7,
|
|
903
903
|
m: !0
|
|
904
|
-
},
|
|
904
|
+
}, Yr = {
|
|
905
905
|
L: 8,
|
|
906
906
|
m: !0
|
|
907
|
-
},
|
|
907
|
+
}, Jr = {
|
|
908
908
|
L: 9,
|
|
909
909
|
prefix: !0,
|
|
910
910
|
m: !0
|
|
@@ -963,7 +963,7 @@ var Hn = {
|
|
|
963
963
|
STEP_ERROR: !0
|
|
964
964
|
}, Ne = {
|
|
965
965
|
SCOPE_REFERENCE: !0
|
|
966
|
-
},
|
|
966
|
+
}, Je = {
|
|
967
967
|
VALUE_IN_DESCRIPTOR: !0
|
|
968
968
|
}, je = {
|
|
969
969
|
REGEXP_TIMEOUT: !0
|
|
@@ -972,7 +972,7 @@ function qt(e) {
|
|
|
972
972
|
var t = e >>> 0;
|
|
973
973
|
return t === Number(e) ? t : NaN;
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function Ye(e) {
|
|
976
976
|
var t = e >>> 0;
|
|
977
977
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
978
978
|
}
|
|
@@ -987,18 +987,18 @@ function pt(e, t, n) {
|
|
|
987
987
|
h.prototype.REGEXP_MODE = 2;
|
|
988
988
|
h.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
989
989
|
h.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
990
|
+
U = h.prototype;
|
|
991
|
+
U.P = !1;
|
|
992
|
+
U.Ka = !1;
|
|
993
|
+
U.Kb = 0;
|
|
994
|
+
U.ic = 0;
|
|
995
995
|
function Re(e, t) {
|
|
996
996
|
var n = {}, r;
|
|
997
997
|
for (r in Hn)
|
|
998
998
|
n[r] = Hn[r];
|
|
999
999
|
return n.sourceFile = t, ve.j.parse(e, n);
|
|
1000
1000
|
}
|
|
1001
|
-
|
|
1001
|
+
U.Jb = function(e) {
|
|
1002
1002
|
var t = this.o[0];
|
|
1003
1003
|
if (!t || t.node.type !== "Program")
|
|
1004
1004
|
throw Error("Expecting original AST to start with a Program node");
|
|
@@ -1006,7 +1006,7 @@ B.Jb = function(e) {
|
|
|
1006
1006
|
throw Error("Expecting new AST to start with a Program node");
|
|
1007
1007
|
ze(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
1008
1008
|
};
|
|
1009
|
-
|
|
1009
|
+
U.lb = function() {
|
|
1010
1010
|
var e = this.o, t;
|
|
1011
1011
|
do {
|
|
1012
1012
|
var n = e[e.length - 1];
|
|
@@ -1044,13 +1044,13 @@ B.lb = function() {
|
|
|
1044
1044
|
} while (!r.end && t > Date.now());
|
|
1045
1045
|
return !0;
|
|
1046
1046
|
};
|
|
1047
|
-
|
|
1047
|
+
U.Eb = function() {
|
|
1048
1048
|
for (; !this.za && this.lb(); )
|
|
1049
1049
|
;
|
|
1050
1050
|
return this.za;
|
|
1051
1051
|
};
|
|
1052
1052
|
function Ao(e, t) {
|
|
1053
|
-
e.g(t, "NaN", NaN, We), e.g(t, "Infinity", 1 / 0, We), e.g(t, "undefined", void 0, We), e.g(t, "window", t, zt), e.g(t, "this", t, We), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), Oo(e, t), jo(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Ro(e, t), Po(e, t), No(e, t),
|
|
1053
|
+
e.g(t, "NaN", NaN, We), e.g(t, "Infinity", 1 / 0, We), e.g(t, "undefined", void 0, We), e.g(t, "window", t, zt), e.g(t, "this", t, We), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), Oo(e, t), jo(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Ro(e, t), Po(e, t), No(e, t), Uo(e, t), Bo(e, t), Mo(e, t), Fo(e, t), Vo(e, t), Do(e, t);
|
|
1054
1054
|
var n = e.i(function() {
|
|
1055
1055
|
throw EvalError("Can't happen");
|
|
1056
1056
|
}, !1);
|
|
@@ -1070,12 +1070,12 @@ function Ao(e, t) {
|
|
|
1070
1070
|
}, e.g(t, "setTimeout", e.i(n, !1), y), n = function(i) {
|
|
1071
1071
|
return Xn(e, !0, arguments);
|
|
1072
1072
|
}, e.g(t, "setInterval", e.i(n, !1), y), n = function(i) {
|
|
1073
|
-
|
|
1073
|
+
Yn(e, i);
|
|
1074
1074
|
}, e.g(t, "clearTimeout", e.i(n, !1), y), n = function(i) {
|
|
1075
|
-
|
|
1075
|
+
Yn(e, i);
|
|
1076
1076
|
}, e.g(t, "clearInterval", e.i(n, !1), y), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
1077
1077
|
}
|
|
1078
|
-
|
|
1078
|
+
U.Wb = 0;
|
|
1079
1079
|
function Oo(e, t) {
|
|
1080
1080
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1081
1081
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
@@ -1130,7 +1130,7 @@ function jo(e, t) {
|
|
|
1130
1130
|
}, e.g(e.v, "keys", e.i(r, !1), y), r = function(o) {
|
|
1131
1131
|
return o === null ? e.s(null) : (o instanceof P || S(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1132
1132
|
}, e.g(e.v, "create", e.i(r, !1), y), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, i, s) {
|
|
1133
|
-
return i = String(i), o instanceof P || S(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof P || S(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || S(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i,
|
|
1133
|
+
return i = String(i), o instanceof P || S(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof P || S(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || S(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, Je, s.h), o;
|
|
1134
1134
|
}, e.g(e.v, "defineProperty", e.i(r, !1), y), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, i) {
|
|
1135
1135
|
if (o instanceof P || S(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
|
|
1136
1136
|
var s = Object.getOwnPropertyDescriptor(o.h, i), u = o.V[i];
|
|
@@ -1263,7 +1263,7 @@ function No(e, t) {
|
|
|
1263
1263
|
return n = ve.Boolean(n), de(e) ? (this.data = n, this) : n;
|
|
1264
1264
|
}, !0), e.g(t, "Boolean", e.mb, y);
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function Uo(e, t) {
|
|
1267
1267
|
var n = function(r) {
|
|
1268
1268
|
return r = arguments.length ? ve.Number(r) : 0, de(e) ? (this.data = r, this) : r;
|
|
1269
1269
|
};
|
|
@@ -1302,7 +1302,7 @@ function Bo(e, t) {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
}, W(e, e.aa, "toLocaleString", n);
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1305
|
+
function Bo(e, t) {
|
|
1306
1306
|
var n = function(o, i) {
|
|
1307
1307
|
if (!de(e))
|
|
1308
1308
|
return ve.Date();
|
|
@@ -1438,7 +1438,7 @@ function $t(e, t, n) {
|
|
|
1438
1438
|
}
|
|
1439
1439
|
e.g(t, "stack", i.trim(), y);
|
|
1440
1440
|
}
|
|
1441
|
-
|
|
1441
|
+
U.ha = function() {
|
|
1442
1442
|
var e = this.ha.Mb;
|
|
1443
1443
|
return e || (e = new Blob([To.join(`
|
|
1444
1444
|
`)], {
|
|
@@ -1484,10 +1484,10 @@ function Ke(e, t, n, r) {
|
|
|
1484
1484
|
}
|
|
1485
1485
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1486
1486
|
}
|
|
1487
|
-
|
|
1487
|
+
U.Aa = function(e) {
|
|
1488
1488
|
return this.s(e && e.h.prototype);
|
|
1489
1489
|
};
|
|
1490
|
-
|
|
1490
|
+
U.s = function(e) {
|
|
1491
1491
|
if (typeof e != "object")
|
|
1492
1492
|
throw Error("Non object prototype");
|
|
1493
1493
|
return e = new P(e), H(this, e, this.D) && (e.H = "Error"), e;
|
|
@@ -1508,14 +1508,14 @@ function en(e, t, n, r) {
|
|
|
1508
1508
|
var o = Qt(e, t.oa.length, !0);
|
|
1509
1509
|
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", z), o;
|
|
1510
1510
|
}
|
|
1511
|
-
|
|
1511
|
+
U.i = function(e, t) {
|
|
1512
1512
|
return t = Qt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, z), t;
|
|
1513
1513
|
};
|
|
1514
|
-
|
|
1514
|
+
U.ub = function(e) {
|
|
1515
1515
|
var t = Qt(this, e.length, !0);
|
|
1516
1516
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, z), t;
|
|
1517
1517
|
};
|
|
1518
|
-
|
|
1518
|
+
U.Ia = function(e) {
|
|
1519
1519
|
if (e instanceof P)
|
|
1520
1520
|
throw Error("Object is already pseudo");
|
|
1521
1521
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
@@ -1546,7 +1546,7 @@ B.Ia = function(e) {
|
|
|
1546
1546
|
this.g(t, r, this.Ia(e[r]));
|
|
1547
1547
|
return t;
|
|
1548
1548
|
};
|
|
1549
|
-
|
|
1549
|
+
U.R = function(e, t) {
|
|
1550
1550
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1551
1551
|
return e;
|
|
1552
1552
|
if (!(e instanceof P))
|
|
@@ -1598,7 +1598,7 @@ function pe(e, t) {
|
|
|
1598
1598
|
}
|
|
1599
1599
|
return t ? t.xa : null;
|
|
1600
1600
|
}
|
|
1601
|
-
|
|
1601
|
+
U.G = function(e, t) {
|
|
1602
1602
|
if (this.P)
|
|
1603
1603
|
throw Error("Getter not supported in that context");
|
|
1604
1604
|
if (t = String(t), e != null || S(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
|
|
@@ -1607,7 +1607,7 @@ B.G = function(e, t) {
|
|
|
1607
1607
|
if (H(this, e, this.J))
|
|
1608
1608
|
return String(e).length;
|
|
1609
1609
|
} else if (64 > t.charCodeAt(0) && H(this, e, this.J)) {
|
|
1610
|
-
var n =
|
|
1610
|
+
var n = Ye(t);
|
|
1611
1611
|
if (!isNaN(n) && n < String(e).length)
|
|
1612
1612
|
return String(e)[n];
|
|
1613
1613
|
}
|
|
@@ -1622,7 +1622,7 @@ function dt(e, t, n) {
|
|
|
1622
1622
|
if (n = String(n), n === "length" && H(e, t, e.J))
|
|
1623
1623
|
return !0;
|
|
1624
1624
|
if (H(e, t, e.J)) {
|
|
1625
|
-
var r =
|
|
1625
|
+
var r = Ye(n);
|
|
1626
1626
|
if (!isNaN(r) && r < String(t).length)
|
|
1627
1627
|
return !0;
|
|
1628
1628
|
}
|
|
@@ -1632,7 +1632,7 @@ function dt(e, t, n) {
|
|
|
1632
1632
|
while (t = pe(e, t));
|
|
1633
1633
|
return !1;
|
|
1634
1634
|
}
|
|
1635
|
-
|
|
1635
|
+
U.g = function(e, t, n, r) {
|
|
1636
1636
|
if (this.Ka)
|
|
1637
1637
|
throw Error("Setter not supported in that context");
|
|
1638
1638
|
if (t = String(t), e != null || S(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
|
|
@@ -1641,7 +1641,7 @@ B.g = function(e, t, n, r) {
|
|
|
1641
1641
|
var o = !this.o || tn(this).S;
|
|
1642
1642
|
if (e instanceof P) {
|
|
1643
1643
|
if (H(this, e, this.J)) {
|
|
1644
|
-
var i =
|
|
1644
|
+
var i = Ye(t);
|
|
1645
1645
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1646
1646
|
o && S(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1647
1647
|
return;
|
|
@@ -1656,14 +1656,14 @@ B.g = function(e, t, n, r) {
|
|
|
1656
1656
|
}
|
|
1657
1657
|
if (n = qt(n), isNaN(n) && S(this, this.ob, "Invalid array length"), n < i)
|
|
1658
1658
|
for (s in e.h) {
|
|
1659
|
-
var s =
|
|
1659
|
+
var s = Ye(s);
|
|
1660
1660
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
1661
1661
|
}
|
|
1662
1662
|
} else
|
|
1663
|
-
isNaN(s =
|
|
1663
|
+
isNaN(s = Ye(t)) || (e.h.length = Math.max(i, s + 1));
|
|
1664
1664
|
if (!e.preventExtensions || t in e.h)
|
|
1665
1665
|
if (r) {
|
|
1666
|
-
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 !==
|
|
1666
|
+
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 !== Je && (o.value = n, delete e.V[t], delete e.Y[t]);
|
|
1667
1667
|
try {
|
|
1668
1668
|
Object.defineProperty(e.h, t, o);
|
|
1669
1669
|
} catch {
|
|
@@ -1671,7 +1671,7 @@ B.g = function(e, t, n, r) {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1673
1673
|
} else {
|
|
1674
|
-
if (n ===
|
|
1674
|
+
if (n === Je)
|
|
1675
1675
|
throw ReferenceError("Value not specified");
|
|
1676
1676
|
for (r = e; !(t in r.h); )
|
|
1677
1677
|
if (r = pe(this, r), !r) {
|
|
@@ -1694,10 +1694,10 @@ B.g = function(e, t, n, r) {
|
|
|
1694
1694
|
} else
|
|
1695
1695
|
o && S(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1696
1696
|
};
|
|
1697
|
-
|
|
1697
|
+
U.g.ac = function() {
|
|
1698
1698
|
throw Error("Placeholder getter");
|
|
1699
1699
|
};
|
|
1700
|
-
|
|
1700
|
+
U.g.bc = function() {
|
|
1701
1701
|
throw Error("Placeholder setter");
|
|
1702
1702
|
};
|
|
1703
1703
|
function W(e, t, n, r) {
|
|
@@ -1858,34 +1858,34 @@ function qe(e, t, n, r) {
|
|
|
1858
1858
|
URIError
|
|
1859
1859
|
}, r = String(e.G(n, "name")), o = e.G(n, "message").valueOf(), t = (t[r] || Error)(o), t.stack = String(e.G(n, "stack"))) : t = String(n), e.value = t, t;
|
|
1860
1860
|
}
|
|
1861
|
-
function
|
|
1861
|
+
function J(e, t) {
|
|
1862
1862
|
switch (t.type) {
|
|
1863
1863
|
case "ArrayExpression":
|
|
1864
1864
|
return "[...]";
|
|
1865
1865
|
case "BinaryExpression":
|
|
1866
1866
|
case "LogicalExpression":
|
|
1867
|
-
return
|
|
1867
|
+
return J(e, t.left) + " " + t.operator + " " + J(e, t.right);
|
|
1868
1868
|
case "CallExpression":
|
|
1869
|
-
return
|
|
1869
|
+
return J(e, t.callee) + "(...)";
|
|
1870
1870
|
case "ConditionalExpression":
|
|
1871
|
-
return
|
|
1871
|
+
return J(e, t.test) + " ? " + J(e, t.da) + " : " + J(e, t.alternate);
|
|
1872
1872
|
case "Identifier":
|
|
1873
1873
|
return t.name;
|
|
1874
1874
|
case "Literal":
|
|
1875
1875
|
return t.raw;
|
|
1876
1876
|
case "MemberExpression":
|
|
1877
|
-
var n =
|
|
1878
|
-
return e =
|
|
1877
|
+
var n = J(e, t.object);
|
|
1878
|
+
return e = J(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
|
|
1879
1879
|
case "NewExpression":
|
|
1880
|
-
return "new " +
|
|
1880
|
+
return "new " + J(e, t.callee) + "(...)";
|
|
1881
1881
|
case "ObjectExpression":
|
|
1882
1882
|
return "{...}";
|
|
1883
1883
|
case "ThisExpression":
|
|
1884
1884
|
return "this";
|
|
1885
1885
|
case "UnaryExpression":
|
|
1886
|
-
return t.operator + " " +
|
|
1886
|
+
return t.operator + " " + J(e, t.K);
|
|
1887
1887
|
case "UpdateExpression":
|
|
1888
|
-
return n =
|
|
1888
|
+
return n = J(e, t.K), t.prefix ? t.operator + n : n + t.operator;
|
|
1889
1889
|
}
|
|
1890
1890
|
return "???";
|
|
1891
1891
|
}
|
|
@@ -1911,7 +1911,7 @@ function vr(e, t, n) {
|
|
|
1911
1911
|
return r.time - o.time;
|
|
1912
1912
|
});
|
|
1913
1913
|
}
|
|
1914
|
-
function
|
|
1914
|
+
function Yn(e, t) {
|
|
1915
1915
|
for (var n = 0; n < e.ca.length; n++)
|
|
1916
1916
|
if (e.ca[n].Db == t) {
|
|
1917
1917
|
e.ca.splice(n, 1);
|
|
@@ -1935,13 +1935,13 @@ function sn(e, t, n, r) {
|
|
|
1935
1935
|
function Lt(e, t) {
|
|
1936
1936
|
return t == null ? e.Na : t instanceof P ? t : (e = e.s(pe(e, t)), e.data = t, e);
|
|
1937
1937
|
}
|
|
1938
|
-
|
|
1938
|
+
U.Xb = function() {
|
|
1939
1939
|
return this.N;
|
|
1940
1940
|
};
|
|
1941
|
-
|
|
1941
|
+
U.Yb = function() {
|
|
1942
1942
|
return this.o;
|
|
1943
1943
|
};
|
|
1944
|
-
|
|
1944
|
+
U.ec = function(e) {
|
|
1945
1945
|
this.o = e;
|
|
1946
1946
|
};
|
|
1947
1947
|
function b(e, t) {
|
|
@@ -1953,11 +1953,11 @@ function br(e, t, n) {
|
|
|
1953
1953
|
function P(e) {
|
|
1954
1954
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1955
1955
|
}
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1956
|
+
U = P.prototype;
|
|
1957
|
+
U.xa = null;
|
|
1958
|
+
U.H = "Object";
|
|
1959
|
+
U.data = null;
|
|
1960
|
+
U.toString = function() {
|
|
1961
1961
|
if (!Xe)
|
|
1962
1962
|
return "[object Interpreter.Object]";
|
|
1963
1963
|
if (!(this instanceof P))
|
|
@@ -2005,7 +2005,7 @@ B.toString = function() {
|
|
|
2005
2005
|
}
|
|
2006
2006
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
2007
2007
|
};
|
|
2008
|
-
|
|
2008
|
+
U.valueOf = function() {
|
|
2009
2009
|
return !Xe || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2010
2010
|
};
|
|
2011
2011
|
function Lo(e, t, n, r, o) {
|
|
@@ -2182,7 +2182,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2182
2182
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2183
2183
|
return new b(n.arguments[t.A++], t.scope);
|
|
2184
2184
|
if (n.type === "NewExpression") {
|
|
2185
|
-
if (o instanceof P && !o.Ab || S(this, this.j,
|
|
2185
|
+
if (o instanceof P && !o.Ab || S(this, this.j, J(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2186
2186
|
t.B = Pe(this);
|
|
2187
2187
|
else {
|
|
2188
2188
|
var i = o.h.prototype;
|
|
@@ -2195,7 +2195,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2195
2195
|
if (t.eb)
|
|
2196
2196
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2197
2197
|
else {
|
|
2198
|
-
if (t.eb = !0, o instanceof P || S(this, this.j,
|
|
2198
|
+
if (t.eb = !0, o instanceof P || S(this, this.j, J(this, n.callee) + " is not a function"), e = o.node) {
|
|
2199
2199
|
for (n = Ht(this, e.body, o.Va), r = Pe(this), o = 0; o < t.F.length; o++)
|
|
2200
2200
|
this.g(r, o, t.F[o]);
|
|
2201
2201
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
@@ -2221,7 +2221,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2221
2221
|
t.value = u, s.za = !1;
|
|
2222
2222
|
}), this.za = !0, t.scope.S || (t.B = Lt(this, t.B)), o.Za.apply(t.B, r);
|
|
2223
2223
|
} else
|
|
2224
|
-
S(this, this.j,
|
|
2224
|
+
S(this, this.j, J(this, n.callee) + " is not callable");
|
|
2225
2225
|
}
|
|
2226
2226
|
};
|
|
2227
2227
|
h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
@@ -2397,7 +2397,7 @@ h.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2397
2397
|
return t.Pa = i, new b(o.value, t.scope);
|
|
2398
2398
|
}
|
|
2399
2399
|
for (s in t.Ja)
|
|
2400
|
-
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s,
|
|
2400
|
+
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, Je, {
|
|
2401
2401
|
configurable: !0,
|
|
2402
2402
|
enumerable: !0,
|
|
2403
2403
|
get: n.get,
|
|
@@ -2558,7 +2558,7 @@ h.prototype.pseudoToNative = h.prototype.R;
|
|
|
2558
2558
|
h.prototype.getGlobalScope = h.prototype.Xb;
|
|
2559
2559
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2560
2560
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2561
|
-
h.VALUE_IN_DESCRIPTOR =
|
|
2561
|
+
h.VALUE_IN_DESCRIPTOR = Je;
|
|
2562
2562
|
const Wo = (e) => e.split(`
|
|
2563
2563
|
`).map((t) => {
|
|
2564
2564
|
const n = t.trim();
|
|
@@ -2572,7 +2572,7 @@ const Wo = (e) => e.split(`
|
|
|
2572
2572
|
${u}
|
|
2573
2573
|
`;
|
|
2574
2574
|
}).filter(Boolean).join(`
|
|
2575
|
-
`),
|
|
2575
|
+
`), Jn = (e) => e + "JSON", $o = ({
|
|
2576
2576
|
builder: e,
|
|
2577
2577
|
context: t,
|
|
2578
2578
|
event: n,
|
|
@@ -2590,7 +2590,7 @@ const Wo = (e) => e.split(`
|
|
|
2590
2590
|
event: n,
|
|
2591
2591
|
state: u
|
|
2592
2592
|
}), v = d.map(([k]) => {
|
|
2593
|
-
const w =
|
|
2593
|
+
const w = Jn(k);
|
|
2594
2594
|
return `var ${k} = ${w} === undefined ? undefined : JSON.parse(${w});`;
|
|
2595
2595
|
}).join(`
|
|
2596
2596
|
`), x = Wo(s);
|
|
@@ -2606,12 +2606,12 @@ function theFunction() {
|
|
|
2606
2606
|
}
|
|
2607
2607
|
theFunction();
|
|
2608
2608
|
`, j = (k, w) => {
|
|
2609
|
-
const
|
|
2610
|
-
i == null || i(
|
|
2609
|
+
const B = hr(u, k, w);
|
|
2610
|
+
i == null || i(B);
|
|
2611
2611
|
}, R = function(k, w) {
|
|
2612
|
-
d.forEach(([
|
|
2612
|
+
d.forEach(([B, N]) => {
|
|
2613
2613
|
const C = JSON.stringify(N);
|
|
2614
|
-
k.setProperty(w,
|
|
2614
|
+
k.setProperty(w, Jn(B), C);
|
|
2615
2615
|
}), k.setProperty(w, "setRootState", k.createNativeFunction(j));
|
|
2616
2616
|
};
|
|
2617
2617
|
try {
|
|
@@ -2748,17 +2748,17 @@ function ft({
|
|
|
2748
2748
|
context: t
|
|
2749
2749
|
}) : s;
|
|
2750
2750
|
}
|
|
2751
|
-
const
|
|
2751
|
+
const Yo = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Sr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2752
2752
|
if (typeof r == "string")
|
|
2753
|
-
return `${
|
|
2754
|
-
}).filter(oe),
|
|
2753
|
+
return `${Yo(n)}: ${r};`;
|
|
2754
|
+
}).filter(oe), Jo = (e) => Sr(e).join(`
|
|
2755
2755
|
`), _t = ({
|
|
2756
2756
|
mediaQuery: e,
|
|
2757
2757
|
className: t,
|
|
2758
2758
|
styles: n
|
|
2759
2759
|
}) => {
|
|
2760
2760
|
const r = `.${t} {
|
|
2761
|
-
${
|
|
2761
|
+
${Jo(n)}
|
|
2762
2762
|
}`;
|
|
2763
2763
|
return e ? `${e} {
|
|
2764
2764
|
${r}
|
|
@@ -2952,7 +2952,7 @@ const ni = (e) => `on${ti(e)}`, ri = (e, t) => (n) => cn({
|
|
|
2952
2952
|
isExpression: !1,
|
|
2953
2953
|
enableCache: !0
|
|
2954
2954
|
});
|
|
2955
|
-
function
|
|
2955
|
+
function Xa(e) {
|
|
2956
2956
|
const t = {}, n = e.block.actions ?? {};
|
|
2957
2957
|
for (const r in n) {
|
|
2958
2958
|
if (!n.hasOwnProperty(r))
|
|
@@ -2993,7 +2993,7 @@ function ai({
|
|
|
2993
2993
|
block: e,
|
|
2994
2994
|
context: t
|
|
2995
2995
|
}),
|
|
2996
|
-
[
|
|
2996
|
+
[Yt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
2997
2997
|
};
|
|
2998
2998
|
return oi({
|
|
2999
2999
|
properties: n,
|
|
@@ -3108,14 +3108,14 @@ function gt(e) {
|
|
|
3108
3108
|
var R;
|
|
3109
3109
|
return !((R = t()) != null && R.component) && !n() ? r().children ?? [] : [];
|
|
3110
3110
|
}, u = function() {
|
|
3111
|
-
var j, R, k, w,
|
|
3111
|
+
var j, R, k, w, B, N, C, Q, $, ee;
|
|
3112
3112
|
return {
|
|
3113
3113
|
blockChildren: r().children ?? [],
|
|
3114
3114
|
componentRef: (j = t()) == null ? void 0 : j.component,
|
|
3115
3115
|
componentOptions: {
|
|
3116
3116
|
...vo(r()),
|
|
3117
3117
|
builderContext: e.context,
|
|
3118
|
-
...((R = t()) == null ? void 0 : R.name) === "Core:Button" || ((k = t()) == null ? void 0 : k.name) === "Symbol" || ((w = t()) == null ? void 0 : w.name) === "Columns" || ((
|
|
3118
|
+
...((R = t()) == null ? void 0 : R.name) === "Core:Button" || ((k = t()) == null ? void 0 : k.name) === "Symbol" || ((w = t()) == null ? void 0 : w.name) === "Columns" || ((B = t()) == null ? void 0 : B.name) === "Form:Form" ? {
|
|
3119
3119
|
builderLinkComponent: e.linkComponent
|
|
3120
3120
|
} : {},
|
|
3121
3121
|
...((N = t()) == null ? void 0 : N.name) === "Symbol" || ((C = t()) == null ? void 0 : C.name) === "Columns" || ((Q = t()) == null ? void 0 : Q.name) === "Form:Form" ? {
|
|
@@ -3218,21 +3218,21 @@ function un(e) {
|
|
|
3218
3218
|
function ci(e) {
|
|
3219
3219
|
var R;
|
|
3220
3220
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(w) {
|
|
3221
|
-
var
|
|
3222
|
-
return ((
|
|
3221
|
+
var B;
|
|
3222
|
+
return ((B = n[w]) == null ? void 0 : B.width) || 100 / n.length;
|
|
3223
3223
|
}, i = function(w) {
|
|
3224
|
-
const
|
|
3225
|
-
return `calc(${o(w)}% - ${
|
|
3224
|
+
const B = t * (n.length - 1) / n.length;
|
|
3225
|
+
return `calc(${o(w)}% - ${B}px)`;
|
|
3226
3226
|
}, s = function({
|
|
3227
3227
|
stackedStyle: w,
|
|
3228
|
-
desktopStyle:
|
|
3228
|
+
desktopStyle: B
|
|
3229
3229
|
}) {
|
|
3230
|
-
return r === "tablet" ? w :
|
|
3230
|
+
return r === "tablet" ? w : B;
|
|
3231
3231
|
}, u = function({
|
|
3232
3232
|
stackedStyle: w,
|
|
3233
|
-
desktopStyle:
|
|
3233
|
+
desktopStyle: B
|
|
3234
3234
|
}) {
|
|
3235
|
-
return r === "never" ?
|
|
3235
|
+
return r === "never" ? B : w;
|
|
3236
3236
|
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", v = function() {
|
|
3237
3237
|
return {
|
|
3238
3238
|
"--flex-dir": d,
|
|
@@ -3242,7 +3242,7 @@ function ci(e) {
|
|
|
3242
3242
|
})
|
|
3243
3243
|
};
|
|
3244
3244
|
}, x = function(w) {
|
|
3245
|
-
const
|
|
3245
|
+
const B = w === 0 ? 0 : t, N = i(w), C = `${B}px`, Q = "100%", $ = 0;
|
|
3246
3246
|
return {
|
|
3247
3247
|
...{
|
|
3248
3248
|
display: "flex",
|
|
@@ -3317,7 +3317,7 @@ function ci(e) {
|
|
|
3317
3317
|
...k.link ? {
|
|
3318
3318
|
href: k.link
|
|
3319
3319
|
} : {},
|
|
3320
|
-
[
|
|
3320
|
+
[Yt()]: "builder-column",
|
|
3321
3321
|
style: wr(x(w))
|
|
3322
3322
|
},
|
|
3323
3323
|
children: /* @__PURE__ */ A(
|
|
@@ -3365,7 +3365,7 @@ function fi(e, t) {
|
|
|
3365
3365
|
}
|
|
3366
3366
|
return null;
|
|
3367
3367
|
}
|
|
3368
|
-
function
|
|
3368
|
+
function Ya(e) {
|
|
3369
3369
|
if (!e)
|
|
3370
3370
|
return e;
|
|
3371
3371
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -4014,7 +4014,7 @@ const Ni = {
|
|
|
4014
4014
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
4015
4015
|
advanced: !0
|
|
4016
4016
|
}]
|
|
4017
|
-
},
|
|
4017
|
+
}, Ui = {
|
|
4018
4018
|
name: "Embed",
|
|
4019
4019
|
static: !0,
|
|
4020
4020
|
inputs: [{
|
|
@@ -4039,7 +4039,7 @@ const Ni = {
|
|
|
4039
4039
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4040
4040
|
hideFromUI: !0
|
|
4041
4041
|
}]
|
|
4042
|
-
},
|
|
4042
|
+
}, Bi = ["text/javascript", "application/javascript", "application/ecmascript"], Ja = (e) => Bi.includes(e.type), Mi = {
|
|
4043
4043
|
// friendlyName?
|
|
4044
4044
|
name: "Raw:Img",
|
|
4045
4045
|
hideFromInsertMenu: !0,
|
|
@@ -4139,7 +4139,7 @@ const Ni = {
|
|
|
4139
4139
|
...Ni
|
|
4140
4140
|
}, {
|
|
4141
4141
|
component: lo,
|
|
4142
|
-
...
|
|
4142
|
+
...Ui
|
|
4143
4143
|
}, {
|
|
4144
4144
|
component: co,
|
|
4145
4145
|
...Mi
|
|
@@ -4165,12 +4165,12 @@ const Ni = {
|
|
|
4165
4165
|
component: Oi,
|
|
4166
4166
|
...Ai
|
|
4167
4167
|
}, {
|
|
4168
|
-
component:
|
|
4168
|
+
component: La,
|
|
4169
4169
|
...ji
|
|
4170
4170
|
}, {
|
|
4171
4171
|
component: Pi,
|
|
4172
4172
|
...Ri
|
|
4173
|
-
}, ...Vi()],
|
|
4173
|
+
}, ...Vi()], za = (e) => ({
|
|
4174
4174
|
type: "builder.registerComponent",
|
|
4175
4175
|
data: Gt(e)
|
|
4176
4176
|
}), Di = (e) => {
|
|
@@ -4303,11 +4303,11 @@ function Xt(e) {
|
|
|
4303
4303
|
}
|
|
4304
4304
|
);
|
|
4305
4305
|
}
|
|
4306
|
-
const
|
|
4306
|
+
const Yi = (e) => {
|
|
4307
4307
|
const t = e.get("preview"), n = e.get("overrides." + t);
|
|
4308
4308
|
return n || X.warn("No previewed ID found in search params."), n;
|
|
4309
4309
|
};
|
|
4310
|
-
function
|
|
4310
|
+
function Ji() {
|
|
4311
4311
|
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new no({
|
|
4312
4312
|
max: 500,
|
|
4313
4313
|
// how long to live in ms
|
|
@@ -4315,8 +4315,8 @@ function Yi() {
|
|
|
4315
4315
|
}));
|
|
4316
4316
|
}
|
|
4317
4317
|
function zi(e) {
|
|
4318
|
-
|
|
4319
|
-
const t =
|
|
4318
|
+
Ji();
|
|
4319
|
+
const t = Yi(e);
|
|
4320
4320
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
4321
4321
|
}
|
|
4322
4322
|
function qi() {
|
|
@@ -4379,8 +4379,8 @@ const ea = "v3", er = "builder.", ta = "options.", Nr = (e) => {
|
|
|
4379
4379
|
throw new Error("Missing API key");
|
|
4380
4380
|
if (!["v3"].includes(d))
|
|
4381
4381
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${d}'`);
|
|
4382
|
-
const
|
|
4383
|
-
if (N.searchParams.set("apiKey", i), N.searchParams.set("limit", String(t)), N.searchParams.set("noTraverse", String(
|
|
4382
|
+
const B = t !== 1, N = new URL(`https://cdn.builder.io/api/${d}/content/${o}`);
|
|
4383
|
+
if (N.searchParams.set("apiKey", i), N.searchParams.set("limit", String(t)), N.searchParams.set("noTraverse", String(B)), N.searchParams.set("includeRefs", String(!0)), u && N.searchParams.set("locale", u), s && N.searchParams.set("enrich", String(s)), N.searchParams.set("omit", x || "meta.componentsUsed"), v && N.searchParams.set("fields", v), Number.isFinite(m) && m > -1 && N.searchParams.set("offset", String(Math.floor(m))), typeof w == "boolean" && N.searchParams.set("includeUnpublished", String(w)), j && tr(j) && N.searchParams.set("cacheSeconds", String(j)), R && tr(R) && N.searchParams.set("staleCacheSeconds", String(R)), k) {
|
|
4384
4384
|
const $ = ut({
|
|
4385
4385
|
sort: k
|
|
4386
4386
|
});
|
|
@@ -4402,7 +4402,7 @@ const ea = "v3", er = "builder.", ta = "options.", Nr = (e) => {
|
|
|
4402
4402
|
}
|
|
4403
4403
|
return N;
|
|
4404
4404
|
}, ra = (e) => "results" in e;
|
|
4405
|
-
async function
|
|
4405
|
+
async function Ur(e) {
|
|
4406
4406
|
const t = await aa({
|
|
4407
4407
|
...e,
|
|
4408
4408
|
limit: 1
|
|
@@ -4449,11 +4449,11 @@ async function aa(e) {
|
|
|
4449
4449
|
return X.error("Error fetching data. ", t), null;
|
|
4450
4450
|
}
|
|
4451
4451
|
}
|
|
4452
|
-
function
|
|
4452
|
+
function qa(e) {
|
|
4453
4453
|
if (!G())
|
|
4454
4454
|
return !1;
|
|
4455
4455
|
const t = ur(e || window.location.search);
|
|
4456
|
-
return
|
|
4456
|
+
return Jt(t) ? !1 : t.indexOf("builder.preview=") !== -1;
|
|
4457
4457
|
}
|
|
4458
4458
|
function sa() {
|
|
4459
4459
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
@@ -4461,7 +4461,7 @@ function sa() {
|
|
|
4461
4461
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4462
4462
|
});
|
|
4463
4463
|
}
|
|
4464
|
-
function
|
|
4464
|
+
function Br() {
|
|
4465
4465
|
return sa().replace(/-/g, "");
|
|
4466
4466
|
}
|
|
4467
4467
|
const Mr = "builderSessionId", la = async ({
|
|
@@ -4482,7 +4482,7 @@ const Mr = "builderSessionId", la = async ({
|
|
|
4482
4482
|
canTrack: e
|
|
4483
4483
|
}), n;
|
|
4484
4484
|
}
|
|
4485
|
-
}, ca = () =>
|
|
4485
|
+
}, ca = () => Br(), ua = ({
|
|
4486
4486
|
id: e,
|
|
4487
4487
|
canTrack: t
|
|
4488
4488
|
}) => Ir({
|
|
@@ -4529,7 +4529,7 @@ const Mr = "builderSessionId", la = async ({
|
|
|
4529
4529
|
canTrack: e
|
|
4530
4530
|
}), n;
|
|
4531
4531
|
}
|
|
4532
|
-
}, ha = () =>
|
|
4532
|
+
}, ha = () => Br(), ma = ({
|
|
4533
4533
|
id: e,
|
|
4534
4534
|
canTrack: t
|
|
4535
4535
|
}) => pa({
|
|
@@ -4579,7 +4579,7 @@ async function va(e) {
|
|
|
4579
4579
|
X.error("Missing API key for track call. Please provide your API key.");
|
|
4580
4580
|
return;
|
|
4581
4581
|
}
|
|
4582
|
-
if (e.canTrack && !
|
|
4582
|
+
if (e.canTrack && !Jt() && (G() || he === "reactNative"))
|
|
4583
4583
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
4584
4584
|
method: "POST",
|
|
4585
4585
|
body: JSON.stringify({
|
|
@@ -4593,7 +4593,7 @@ async function va(e) {
|
|
|
4593
4593
|
console.error("Failed to track: ", t);
|
|
4594
4594
|
});
|
|
4595
4595
|
}
|
|
4596
|
-
const
|
|
4596
|
+
const Za = (e) => va({
|
|
4597
4597
|
...e,
|
|
4598
4598
|
canTrack: !0
|
|
4599
4599
|
});
|
|
@@ -4623,7 +4623,7 @@ const ba = (e, t, n = !0) => {
|
|
|
4623
4623
|
x: i,
|
|
4624
4624
|
y: s
|
|
4625
4625
|
};
|
|
4626
|
-
},
|
|
4626
|
+
}, Qa = (e) => {
|
|
4627
4627
|
const t = e.target, n = t && Sa(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4628
4628
|
return {
|
|
4629
4629
|
targetBuilderElement: r || void 0,
|
|
@@ -4644,7 +4644,7 @@ function Dr(e, t) {
|
|
|
4644
4644
|
const n = new URL(t.origin), r = n.hostname;
|
|
4645
4645
|
return (e || wa).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
4646
4646
|
}
|
|
4647
|
-
const xa = "0.14.
|
|
4647
|
+
const xa = "0.14.8", or = {};
|
|
4648
4648
|
function ka(e, t) {
|
|
4649
4649
|
let n = or[e];
|
|
4650
4650
|
if (n || (n = or[e] = []), n.push(t), G()) {
|
|
@@ -4662,7 +4662,7 @@ function ka(e, t) {
|
|
|
4662
4662
|
}
|
|
4663
4663
|
}
|
|
4664
4664
|
}
|
|
4665
|
-
const
|
|
4665
|
+
const es = () => {
|
|
4666
4666
|
ka("insertMenu", {
|
|
4667
4667
|
name: "_default",
|
|
4668
4668
|
default: !0,
|
|
@@ -4773,7 +4773,7 @@ const Ca = (e = {}) => {
|
|
|
4773
4773
|
break;
|
|
4774
4774
|
}
|
|
4775
4775
|
}
|
|
4776
|
-
},
|
|
4776
|
+
}, ts = (e, t, n) => {
|
|
4777
4777
|
if (!G)
|
|
4778
4778
|
return X.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
4779
4779
|
};
|
|
@@ -4820,7 +4820,7 @@ function Oa(e) {
|
|
|
4820
4820
|
t.indexOf(r) === -1 && t.push(r);
|
|
4821
4821
|
return t;
|
|
4822
4822
|
}
|
|
4823
|
-
function
|
|
4823
|
+
function ns(e) {
|
|
4824
4824
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
4825
4825
|
if (!t.length) {
|
|
4826
4826
|
Ta(e.elementId || e.id || "");
|
|
@@ -4868,17 +4868,7 @@ font-weight: ${s};
|
|
|
4868
4868
|
}, Pa = ({
|
|
4869
4869
|
cssCode: e,
|
|
4870
4870
|
contentId: t
|
|
4871
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : ""
|
|
4872
|
-
function Na(e) {
|
|
4873
|
-
const t = `
|
|
4874
|
-
${Pa({
|
|
4875
|
-
cssCode: e.cssCode,
|
|
4876
|
-
contentId: e.contentId
|
|
4877
|
-
})}
|
|
4878
|
-
${Ra({
|
|
4879
|
-
customFonts: e.customFonts
|
|
4880
|
-
})}
|
|
4881
|
-
|
|
4871
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Na = `
|
|
4882
4872
|
.builder-button {
|
|
4883
4873
|
all: unset;
|
|
4884
4874
|
}
|
|
@@ -4895,10 +4885,21 @@ ${Ra({
|
|
|
4895
4885
|
text-align: inherit;
|
|
4896
4886
|
font-family: inherit;
|
|
4897
4887
|
}
|
|
4888
|
+
`, Ua = (e) => e ? "" : Na;
|
|
4889
|
+
function Ba(e) {
|
|
4890
|
+
const t = `
|
|
4891
|
+
${Pa({
|
|
4892
|
+
cssCode: e.cssCode,
|
|
4893
|
+
contentId: e.contentId
|
|
4894
|
+
})}
|
|
4895
|
+
${Ra({
|
|
4896
|
+
customFonts: e.customFonts
|
|
4897
|
+
})}
|
|
4898
|
+
${Ua(e.isNestedRender)}
|
|
4898
4899
|
`.trim();
|
|
4899
4900
|
return /* @__PURE__ */ A(mt, { styles: t });
|
|
4900
4901
|
}
|
|
4901
|
-
const
|
|
4902
|
+
const Ma = ({
|
|
4902
4903
|
content: e,
|
|
4903
4904
|
data: t,
|
|
4904
4905
|
locale: n
|
|
@@ -4915,7 +4916,7 @@ const Ba = ({
|
|
|
4915
4916
|
locale: n
|
|
4916
4917
|
} : {}
|
|
4917
4918
|
};
|
|
4918
|
-
},
|
|
4919
|
+
}, Fa = ({
|
|
4919
4920
|
content: e,
|
|
4920
4921
|
data: t
|
|
4921
4922
|
}) => e ? {
|
|
@@ -4946,12 +4947,12 @@ function sr(e) {
|
|
|
4946
4947
|
}),
|
|
4947
4948
|
{}
|
|
4948
4949
|
), r = {
|
|
4949
|
-
content:
|
|
4950
|
+
content: Fa({
|
|
4950
4951
|
content: e.content,
|
|
4951
4952
|
data: e.data
|
|
4952
4953
|
}),
|
|
4953
4954
|
localState: void 0,
|
|
4954
|
-
rootState:
|
|
4955
|
+
rootState: Ma({
|
|
4955
4956
|
content: e.content,
|
|
4956
4957
|
data: e.data,
|
|
4957
4958
|
locale: e.locale
|
|
@@ -4994,8 +4995,9 @@ function sr(e) {
|
|
|
4994
4995
|
children: [
|
|
4995
4996
|
e.isSsrAbTest ? /* @__PURE__ */ A(Xt, { scriptStr: t }) : null,
|
|
4996
4997
|
/* @__PURE__ */ A(
|
|
4997
|
-
|
|
4998
|
+
Ba,
|
|
4998
4999
|
{
|
|
5000
|
+
isNestedRender: e.isNestedRender,
|
|
4999
5001
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
5000
5002
|
cssCode: (d = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : d.cssCode,
|
|
5001
5003
|
customFonts: (x = (v = r.content) == null ? void 0 : v.data) == null ? void 0 : x.customFonts
|
|
@@ -5014,7 +5016,7 @@ function sr(e) {
|
|
|
5014
5016
|
}
|
|
5015
5017
|
);
|
|
5016
5018
|
}
|
|
5017
|
-
function
|
|
5019
|
+
function Va(e) {
|
|
5018
5020
|
var i, s;
|
|
5019
5021
|
const t = $i({
|
|
5020
5022
|
canTrack: Kt(e.canTrack),
|
|
@@ -5041,7 +5043,7 @@ function Ma(e) {
|
|
|
5041
5043
|
});
|
|
5042
5044
|
};
|
|
5043
5045
|
return /* @__PURE__ */ xe(Z, { children: [
|
|
5044
|
-
!e.
|
|
5046
|
+
!e.isNestedRender && he !== "reactNative" ? /* @__PURE__ */ A(Xt, { scriptStr: Ki() }) : null,
|
|
5045
5047
|
t ? /* @__PURE__ */ xe(Z, { children: [
|
|
5046
5048
|
/* @__PURE__ */ A(
|
|
5047
5049
|
mt,
|
|
@@ -5054,6 +5056,7 @@ function Ma(e) {
|
|
|
5054
5056
|
(s = ct(e.content)) == null ? void 0 : s.map((u) => /* @__PURE__ */ A(
|
|
5055
5057
|
sr,
|
|
5056
5058
|
{
|
|
5059
|
+
isNestedRender: e.isNestedRender,
|
|
5057
5060
|
content: u,
|
|
5058
5061
|
showContent: !1,
|
|
5059
5062
|
model: e.model,
|
|
@@ -5079,6 +5082,7 @@ function Ma(e) {
|
|
|
5079
5082
|
/* @__PURE__ */ A(
|
|
5080
5083
|
sr,
|
|
5081
5084
|
{
|
|
5085
|
+
isNestedRender: e.isNestedRender,
|
|
5082
5086
|
content: o(),
|
|
5083
5087
|
showContent: !0,
|
|
5084
5088
|
model: e.model,
|
|
@@ -5101,13 +5105,13 @@ function Ma(e) {
|
|
|
5101
5105
|
)
|
|
5102
5106
|
] });
|
|
5103
5107
|
}
|
|
5104
|
-
const
|
|
5108
|
+
const Da = async ({
|
|
5105
5109
|
builderContextValue: e,
|
|
5106
5110
|
symbol: t
|
|
5107
5111
|
}) => {
|
|
5108
5112
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5109
5113
|
(e != null && e.apiKey))
|
|
5110
|
-
return
|
|
5114
|
+
return Ur({
|
|
5111
5115
|
model: t.model,
|
|
5112
5116
|
apiKey: e.apiKey,
|
|
5113
5117
|
apiVersion: e.apiVersion,
|
|
@@ -5120,24 +5124,24 @@ const Fa = async ({
|
|
|
5120
5124
|
X.error("Could not fetch symbol content: ", n);
|
|
5121
5125
|
});
|
|
5122
5126
|
};
|
|
5123
|
-
async function
|
|
5127
|
+
async function La(e) {
|
|
5124
5128
|
var r, o, i, s, u;
|
|
5125
5129
|
const t = function() {
|
|
5126
5130
|
var v, x;
|
|
5127
5131
|
return [
|
|
5128
|
-
e.attributes[
|
|
5132
|
+
e.attributes[Yt()],
|
|
5129
5133
|
"builder-symbol",
|
|
5130
5134
|
(v = e.symbol) != null && v.inline ? "builder-inline-symbol" : void 0,
|
|
5131
5135
|
(x = e.symbol) != null && x.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5132
5136
|
].filter(Boolean).join(" ");
|
|
5133
|
-
}, n = ((r = e.symbol) == null ? void 0 : r.content) || await
|
|
5137
|
+
}, n = ((r = e.symbol) == null ? void 0 : r.content) || await Da({
|
|
5134
5138
|
symbol: e.symbol,
|
|
5135
5139
|
builderContextValue: e.builderContext
|
|
5136
5140
|
});
|
|
5137
5141
|
return /* @__PURE__ */ A("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ A(
|
|
5138
|
-
|
|
5142
|
+
Va,
|
|
5139
5143
|
{
|
|
5140
|
-
|
|
5144
|
+
isNestedRender: !0,
|
|
5141
5145
|
apiVersion: e.builderContext.apiVersion,
|
|
5142
5146
|
apiKey: e.builderContext.apiKey,
|
|
5143
5147
|
context: {
|
|
@@ -5159,7 +5163,7 @@ async function Va(e) {
|
|
|
5159
5163
|
) });
|
|
5160
5164
|
}
|
|
5161
5165
|
const lr = {};
|
|
5162
|
-
function
|
|
5166
|
+
function rs(e) {
|
|
5163
5167
|
if (G()) {
|
|
5164
5168
|
Object.assign(lr, e);
|
|
5165
5169
|
const t = {
|
|
@@ -5169,7 +5173,7 @@ function ts(e) {
|
|
|
5169
5173
|
parent.postMessage(t, "*");
|
|
5170
5174
|
}
|
|
5171
5175
|
}
|
|
5172
|
-
const
|
|
5176
|
+
const os = async (e) => {
|
|
5173
5177
|
var r, o, i;
|
|
5174
5178
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
5175
5179
|
...e,
|
|
@@ -5186,44 +5190,44 @@ const ns = async (e) => {
|
|
|
5186
5190
|
return {
|
|
5187
5191
|
apiKey: n.apiKey,
|
|
5188
5192
|
model: n.model,
|
|
5189
|
-
content: await
|
|
5193
|
+
content: await Ur(n)
|
|
5190
5194
|
};
|
|
5191
5195
|
};
|
|
5192
5196
|
export {
|
|
5193
|
-
|
|
5197
|
+
Za as A,
|
|
5194
5198
|
un as B,
|
|
5195
5199
|
ci as C,
|
|
5196
|
-
|
|
5197
|
-
|
|
5200
|
+
ts as D,
|
|
5201
|
+
os as E,
|
|
5198
5202
|
ia as F,
|
|
5199
5203
|
aa as G,
|
|
5200
|
-
|
|
5204
|
+
La as S,
|
|
5201
5205
|
Pi as T,
|
|
5202
5206
|
va as _,
|
|
5203
5207
|
ai as a,
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
+
Xa as b,
|
|
5209
|
+
Jt as c,
|
|
5210
|
+
Ya as d,
|
|
5211
|
+
Ja as e,
|
|
5208
5212
|
G as f,
|
|
5209
|
-
|
|
5213
|
+
Yt as g,
|
|
5210
5214
|
Kt as h,
|
|
5211
|
-
|
|
5212
|
-
|
|
5215
|
+
Ga as i,
|
|
5216
|
+
qa as j,
|
|
5213
5217
|
Ea as k,
|
|
5214
5218
|
X as l,
|
|
5215
5219
|
cn as m,
|
|
5216
|
-
|
|
5220
|
+
Qa as n,
|
|
5217
5221
|
ht as o,
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5222
|
+
za as p,
|
|
5223
|
+
Ur as q,
|
|
5224
|
+
es as r,
|
|
5221
5225
|
Ca as s,
|
|
5222
|
-
|
|
5226
|
+
ns as t,
|
|
5223
5227
|
Qi as u,
|
|
5224
|
-
|
|
5225
|
-
|
|
5228
|
+
Ji as v,
|
|
5229
|
+
Va as w,
|
|
5226
5230
|
ka as x,
|
|
5227
|
-
|
|
5231
|
+
rs as y,
|
|
5228
5232
|
Nr as z
|
|
5229
5233
|
};
|