@builder.io/sdk-react-nextjs 0.14.20 → 0.14.24
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/{node/USE_CLIENT_BUNDLE-8d2c6823.cjs → browser/USE_CLIENT_BUNDLE-4f10369a.cjs} +2 -2
- package/lib/browser/{USE_CLIENT_BUNDLE-b0af90c6.js → USE_CLIENT_BUNDLE-f9d01f92.js} +21 -21
- package/lib/{edge/USE_SERVER_BUNDLE-c879ad04.js → browser/USE_SERVER_BUNDLE-4e9478d4.js} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-9e66cbc6.cjs → browser/USE_SERVER_BUNDLE-76397f77.cjs} +1 -1
- package/lib/browser/{bundle-12d2c3ee.cjs → bundle-35974522.cjs} +14 -14
- package/lib/browser/{bundle-83df769b.js → bundle-ca09c73c.js} +358 -351
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{browser/USE_CLIENT_BUNDLE-eb52194d.cjs → edge/USE_CLIENT_BUNDLE-d7a952fe.cjs} +2 -2
- package/lib/{node/USE_CLIENT_BUNDLE-68277019.js → edge/USE_CLIENT_BUNDLE-edb4fc98.js} +21 -21
- package/lib/{node/USE_SERVER_BUNDLE-84ab22ef.js → edge/USE_SERVER_BUNDLE-8a6ee05a.js} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-a4d10e9b.cjs → edge/USE_SERVER_BUNDLE-e3d2232b.cjs} +1 -1
- package/lib/edge/{bundle-8a8fdc14.cjs → bundle-2bd976c9.cjs} +26 -26
- package/lib/edge/{bundle-73367f5c.js → bundle-bdc1f5be.js} +648 -641
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-47285217.cjs → node/USE_CLIENT_BUNDLE-2a3a1484.cjs} +2 -2
- package/lib/{edge/USE_CLIENT_BUNDLE-2d9b453e.js → node/USE_CLIENT_BUNDLE-af2f5052.js} +21 -21
- package/lib/{browser/USE_SERVER_BUNDLE-719f53b1.cjs → node/USE_SERVER_BUNDLE-290676c5.cjs} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-d83b7d23.js → node/USE_SERVER_BUNDLE-55adca17.js} +1 -1
- package/lib/node/{bundle-832f5a95.cjs → bundle-10b57ad3.cjs} +6 -6
- package/lib/node/{bundle-08369562.js → bundle-9b0c3f03.js} +93 -86
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +3 -3
- package/types/cjs/blocks/accordion/accordion.d.ts +4 -0
- package/types/cjs/blocks/accordion/accordion.types.d.ts +12 -0
- package/types/cjs/blocks/accordion/component-info.d.ts +2 -0
- package/types/cjs/blocks/accordion/helpers.d.ts +1 -0
- package/types/cjs/blocks/accordion/index.d.ts +1 -0
- package/types/cjs/components/block/animator.d.ts +0 -1
- package/types/cjs/components/content-variants/content-variants.types.d.ts +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/camel-to-kebab-case.d.ts +1 -1
- package/types/cjs/helpers/flatten.d.ts +10 -0
- package/types/esm/blocks/accordion/accordion.d.ts +4 -0
- package/types/esm/blocks/accordion/accordion.types.d.ts +12 -0
- package/types/esm/blocks/accordion/component-info.d.ts +2 -0
- package/types/esm/blocks/accordion/helpers.d.ts +1 -0
- package/types/esm/blocks/accordion/index.d.ts +1 -0
- package/types/esm/components/block/animator.d.ts +0 -1
- package/types/esm/components/content-variants/content-variants.types.d.ts +1 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/camel-to-kebab-case.d.ts +1 -1
- package/types/esm/helpers/flatten.d.ts +10 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as I, Fragment as ee, jsxs as xe } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { LRUCache as
|
|
4
|
-
import { I as
|
|
3
|
+
import { LRUCache as oo } from "lru-cache";
|
|
4
|
+
import { I as io, B as ao, a as so, D as lo, C as co, E as uo, b as fo, V as po, c as ho, F as mo, d as go, S as yo, e as vo } from "./USE_CLIENT_BUNDLE-edb4fc98.js";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
const
|
|
6
|
+
const bo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ja = (e) => typeof e == "string" && bo.has(e.toLowerCase()), me = "rsc", Yt = () => {
|
|
7
7
|
switch (me) {
|
|
8
8
|
case "react":
|
|
9
9
|
case "reactNative":
|
|
@@ -17,7 +17,7 @@ const vo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr",
|
|
|
17
17
|
return "class";
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
function
|
|
20
|
+
function So(e) {
|
|
21
21
|
var t;
|
|
22
22
|
return {
|
|
23
23
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -37,27 +37,27 @@ const lt = "[Builder.io]: ", Z = {
|
|
|
37
37
|
function G() {
|
|
38
38
|
return typeof window < "u" && typeof document < "u";
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const wo = (e) => {
|
|
41
41
|
const t = {};
|
|
42
42
|
return e.forEach((n, r) => {
|
|
43
43
|
t[r] = n;
|
|
44
44
|
}), t;
|
|
45
|
-
},
|
|
46
|
-
function
|
|
45
|
+
}, cr = (e) => e instanceof URLSearchParams ? wo(e) : e, ur = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
46
|
+
function xo() {
|
|
47
47
|
return G() && window.self !== window.top;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
return
|
|
51
|
-
|
|
49
|
+
function fr(e) {
|
|
50
|
+
return xo() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
51
|
+
ur(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
52
52
|
}
|
|
53
|
-
const
|
|
53
|
+
const ko = () => {
|
|
54
54
|
if (G()) {
|
|
55
55
|
const e = new URL(location.href);
|
|
56
56
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
57
57
|
} else
|
|
58
58
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
59
|
-
},
|
|
60
|
-
const e =
|
|
59
|
+
}, Co = () => typeof navigator == "object" && navigator.userAgent || "", dr = () => {
|
|
60
|
+
const e = Co(), t = {
|
|
61
61
|
Android() {
|
|
62
62
|
return e.match(/Android/i);
|
|
63
63
|
},
|
|
@@ -76,13 +76,13 @@ const xo = () => {
|
|
|
76
76
|
any() {
|
|
77
77
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || me === "reactNative";
|
|
78
78
|
}
|
|
79
|
-
}, n = e.match(/Tablet|iPad/i), r =
|
|
79
|
+
}, n = e.match(/Tablet|iPad/i), r = ko();
|
|
80
80
|
return {
|
|
81
81
|
urlPath: r == null ? void 0 : r.pathname,
|
|
82
82
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
83
83
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
84
84
|
};
|
|
85
|
-
},
|
|
85
|
+
}, pr = ({
|
|
86
86
|
builder: e,
|
|
87
87
|
context: t,
|
|
88
88
|
event: n,
|
|
@@ -94,14 +94,14 @@ const xo = () => {
|
|
|
94
94
|
builder: e,
|
|
95
95
|
context: t,
|
|
96
96
|
event: n
|
|
97
|
-
}),
|
|
98
|
-
isEditing:
|
|
97
|
+
}), Eo = () => ({
|
|
98
|
+
isEditing: fr(),
|
|
99
99
|
isBrowser: G(),
|
|
100
100
|
isServer: !G(),
|
|
101
|
-
getUserAttributes: () =>
|
|
102
|
-
}),
|
|
101
|
+
getUserAttributes: () => dr()
|
|
102
|
+
}), Io = (e, {
|
|
103
103
|
isExpression: t = !0
|
|
104
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
104
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, To = ({
|
|
105
105
|
code: e,
|
|
106
106
|
builder: t,
|
|
107
107
|
context: n,
|
|
@@ -110,11 +110,11 @@ const xo = () => {
|
|
|
110
110
|
rootSetState: i,
|
|
111
111
|
rootState: s
|
|
112
112
|
}) => {
|
|
113
|
-
const u =
|
|
113
|
+
const u = pr({
|
|
114
114
|
builder: t,
|
|
115
115
|
context: n,
|
|
116
116
|
event: r,
|
|
117
|
-
state:
|
|
117
|
+
state: hr({
|
|
118
118
|
rootState: s,
|
|
119
119
|
localState: o,
|
|
120
120
|
rootSetState: i
|
|
@@ -122,7 +122,7 @@ const xo = () => {
|
|
|
122
122
|
});
|
|
123
123
|
return new Function(...u.map(([p]) => p), e)(...u.map(([, p]) => p));
|
|
124
124
|
};
|
|
125
|
-
function
|
|
125
|
+
function hr({
|
|
126
126
|
rootState: e,
|
|
127
127
|
localState: t,
|
|
128
128
|
rootSetState: n
|
|
@@ -132,7 +132,7 @@ function pr({
|
|
|
132
132
|
if (t && o in t)
|
|
133
133
|
return t[o];
|
|
134
134
|
const i = r[o];
|
|
135
|
-
return typeof i == "object" && i !== null ?
|
|
135
|
+
return typeof i == "object" && i !== null ? hr({
|
|
136
136
|
rootState: i,
|
|
137
137
|
localState: void 0,
|
|
138
138
|
rootSetState: n ? (s) => {
|
|
@@ -147,25 +147,25 @@ function pr({
|
|
|
147
147
|
}
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
|
-
const
|
|
150
|
+
const mr = (e, t, n) => {
|
|
151
151
|
if (Object(e) !== e)
|
|
152
152
|
return e;
|
|
153
153
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
154
154
|
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;
|
|
155
155
|
};
|
|
156
|
-
var B,
|
|
156
|
+
var B, Ao = function(e) {
|
|
157
157
|
function t(a) {
|
|
158
|
-
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a &&
|
|
158
|
+
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && no.test(String.fromCharCode(a));
|
|
159
159
|
}
|
|
160
160
|
function n(a) {
|
|
161
|
-
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a &&
|
|
161
|
+
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && $n.test(String.fromCharCode(a));
|
|
162
162
|
}
|
|
163
163
|
function r(a, l) {
|
|
164
164
|
for (var c = y, d = 1, C = 0; ; ) {
|
|
165
165
|
st.lastIndex = C;
|
|
166
|
-
var
|
|
167
|
-
if (
|
|
168
|
-
++d, C =
|
|
166
|
+
var _ = st.exec(c);
|
|
167
|
+
if (_ && _.index < a)
|
|
168
|
+
++d, C = _.index + _[0].length;
|
|
169
169
|
else
|
|
170
170
|
break;
|
|
171
171
|
}
|
|
@@ -186,7 +186,7 @@ var B, To = function(e) {
|
|
|
186
186
|
this.line = Se, this.ab = f - le;
|
|
187
187
|
}
|
|
188
188
|
function s(a, l) {
|
|
189
|
-
Ce = f, A.C && (
|
|
189
|
+
Ce = f, A.C && (It = new i()), k = a, p(), te = l, Fe = a.m;
|
|
190
190
|
}
|
|
191
191
|
function u() {
|
|
192
192
|
for (var a = f, l = A.va && A.C && new i(), c = y.charCodeAt(f += 2); f < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
@@ -218,7 +218,7 @@ var B, To = function(e) {
|
|
|
218
218
|
break;
|
|
219
219
|
else if (a === 160)
|
|
220
220
|
++f;
|
|
221
|
-
else if (5760 <= a &&
|
|
221
|
+
else if (5760 <= a && to.test(String.fromCharCode(a)))
|
|
222
222
|
++f;
|
|
223
223
|
else
|
|
224
224
|
break;
|
|
@@ -227,7 +227,7 @@ var B, To = function(e) {
|
|
|
227
227
|
function b(a) {
|
|
228
228
|
switch (a) {
|
|
229
229
|
case 46:
|
|
230
|
-
a = y.charCodeAt(f + 1), 48 <= a && 57 >= a ? j(!0) : (++f, s(
|
|
230
|
+
a = y.charCodeAt(f + 1), 48 <= a && 57 >= a ? j(!0) : (++f, s(Un));
|
|
231
231
|
return;
|
|
232
232
|
case 40:
|
|
233
233
|
return ++f, s(ce);
|
|
@@ -240,18 +240,18 @@ var B, To = function(e) {
|
|
|
240
240
|
case 91:
|
|
241
241
|
return ++f, s(Mt);
|
|
242
242
|
case 93:
|
|
243
|
-
return ++f, s(
|
|
243
|
+
return ++f, s(Ft);
|
|
244
244
|
case 123:
|
|
245
245
|
return ++f, s(Le);
|
|
246
246
|
case 125:
|
|
247
247
|
return ++f, s(Ie);
|
|
248
248
|
case 58:
|
|
249
|
-
return ++f, s(
|
|
249
|
+
return ++f, s(We);
|
|
250
250
|
case 63:
|
|
251
|
-
return ++f, s(
|
|
251
|
+
return ++f, s(Mn);
|
|
252
252
|
case 48:
|
|
253
253
|
if (a = y.charCodeAt(f + 1), a === 120 || a === 88) {
|
|
254
|
-
f += 2, a = N(16), a === null && r(
|
|
254
|
+
f += 2, a = N(16), a === null && r(W + 2, "Expected hexadecimal number"), n(y.charCodeAt(f)) && r(f, "Identifier directly after number"), s(De, a);
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
257
|
case 49:
|
|
@@ -268,7 +268,7 @@ var B, To = function(e) {
|
|
|
268
268
|
case 39:
|
|
269
269
|
f++;
|
|
270
270
|
for (var l = ""; ; ) {
|
|
271
|
-
f >= ke && r(
|
|
271
|
+
f >= ke && r(W, "Unterminated string constant");
|
|
272
272
|
var c = y.charCodeAt(f);
|
|
273
273
|
if (c === a) {
|
|
274
274
|
++f, s(rt, l);
|
|
@@ -323,49 +323,49 @@ var B, To = function(e) {
|
|
|
323
323
|
l += String.fromCharCode(c);
|
|
324
324
|
}
|
|
325
325
|
} else
|
|
326
|
-
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(
|
|
326
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(W, "Unterminated string constant"), l += String.fromCharCode(c), ++f;
|
|
327
327
|
}
|
|
328
328
|
return;
|
|
329
329
|
case 47:
|
|
330
|
-
a = y.charCodeAt(f + 1),
|
|
330
|
+
a = y.charCodeAt(f + 1), Fe ? (++f, O()) : a === 61 ? m(we, 2) : m(Fn, 1);
|
|
331
331
|
return;
|
|
332
332
|
case 37:
|
|
333
333
|
case 42:
|
|
334
|
-
y.charCodeAt(f + 1) === 61 ? m(we, 2) : m(
|
|
334
|
+
y.charCodeAt(f + 1) === 61 ? m(we, 2) : m(Zr, 1);
|
|
335
335
|
return;
|
|
336
336
|
case 124:
|
|
337
337
|
case 38:
|
|
338
|
-
l = y.charCodeAt(f + 1), l === a ? m(a === 124 ?
|
|
338
|
+
l = y.charCodeAt(f + 1), l === a ? m(a === 124 ? Ln : Wn, 2) : l === 61 ? m(we, 2) : m(a === 124 ? Kr : Xr, 1);
|
|
339
339
|
return;
|
|
340
340
|
case 94:
|
|
341
|
-
y.charCodeAt(f + 1) === 61 ? m(we, 2) : m(
|
|
341
|
+
y.charCodeAt(f + 1) === 61 ? m(we, 2) : m(Gr, 1);
|
|
342
342
|
return;
|
|
343
343
|
case 43:
|
|
344
344
|
case 45:
|
|
345
|
-
l = y.charCodeAt(f + 1), l === a ? l === 45 && y.charCodeAt(f + 2) === 62 && at.test(y.slice(ge, f)) ? (f += 3, u(), p(), x()) : m(
|
|
345
|
+
l = y.charCodeAt(f + 1), l === a ? l === 45 && y.charCodeAt(f + 2) === 62 && at.test(y.slice(ge, f)) ? (f += 3, u(), p(), x()) : m(Hr, 2) : l === 61 ? m(we, 2) : m(qr, 1);
|
|
346
346
|
return;
|
|
347
347
|
case 60:
|
|
348
348
|
case 62:
|
|
349
|
-
l = y.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && y.charCodeAt(f + 2) === 62 ? 3 : 2, y.charCodeAt(f + c) === 61 ? m(we, c + 1) : m(
|
|
349
|
+
l = y.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && y.charCodeAt(f + 2) === 62 ? 3 : 2, y.charCodeAt(f + c) === 61 ? m(we, c + 1) : m(zr, c)) : l === 33 && a === 60 && y.charCodeAt(f + 2) === 45 && y.charCodeAt(f + 3) === 45 ? (f += 4, u(), p(), x()) : (l === 61 && (c = y.charCodeAt(f + 2) === 61 ? 3 : 2), m(Jr, c));
|
|
350
350
|
return;
|
|
351
351
|
case 61:
|
|
352
352
|
case 33:
|
|
353
|
-
y.charCodeAt(f + 1) === 61 ? m(
|
|
353
|
+
y.charCodeAt(f + 1) === 61 ? m(Yr, y.charCodeAt(f + 2) === 61 ? 3 : 2) : m(a === 61 ? Vn : Dn, 1);
|
|
354
354
|
return;
|
|
355
355
|
case 126:
|
|
356
|
-
return m(
|
|
356
|
+
return m(Dn, 1);
|
|
357
357
|
}
|
|
358
358
|
return !1;
|
|
359
359
|
}
|
|
360
360
|
function x(a) {
|
|
361
|
-
if (a ? f =
|
|
361
|
+
if (a ? f = W + 1 : W = f, A.C && (Et = new i()), a)
|
|
362
362
|
return O();
|
|
363
363
|
if (f >= ke)
|
|
364
|
-
return s(
|
|
364
|
+
return s(Ot);
|
|
365
365
|
if (a = y.charCodeAt(f), n(a) || a === 92)
|
|
366
366
|
return T();
|
|
367
367
|
if (b(a) === !1) {
|
|
368
|
-
if (a = String.fromCharCode(a), a === "\\" ||
|
|
368
|
+
if (a = String.fromCharCode(a), a === "\\" || $n.test(a))
|
|
369
369
|
return T();
|
|
370
370
|
r(f, "Unexpected character '" + a + "'");
|
|
371
371
|
}
|
|
@@ -394,13 +394,13 @@ var B, To = function(e) {
|
|
|
394
394
|
a = y.slice(c, f), ++f, (l = Y()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
395
395
|
try {
|
|
396
396
|
var C = new RegExp(a, l);
|
|
397
|
-
} catch (
|
|
398
|
-
throw
|
|
397
|
+
} catch (_) {
|
|
398
|
+
throw _ instanceof SyntaxError && r(c, _.message), _;
|
|
399
399
|
}
|
|
400
|
-
s(
|
|
400
|
+
s(gn, C);
|
|
401
401
|
}
|
|
402
402
|
function N(a, l) {
|
|
403
|
-
for (var c = f, d = 0, C = l === void 0 ? 1 / 0 : l,
|
|
403
|
+
for (var c = f, d = 0, C = l === void 0 ? 1 / 0 : l, _ = 0; _ < C; ++_) {
|
|
404
404
|
var J = y.charCodeAt(f);
|
|
405
405
|
if (J = 97 <= J ? J - 97 + 10 : 65 <= J ? J - 65 + 10 : 48 <= J && 57 >= J ? J - 48 : 1 / 0, J >= a)
|
|
406
406
|
break;
|
|
@@ -415,7 +415,7 @@ var B, To = function(e) {
|
|
|
415
415
|
c ? C = parseFloat(a) : d && a.length !== 1 ? /[89]/.test(a) || Q ? r(l, "Invalid number") : C = parseInt(a, 8) : C = parseInt(a, 10), s(De, C);
|
|
416
416
|
}
|
|
417
417
|
function R(a) {
|
|
418
|
-
return a = N(16, a), a === null && r(
|
|
418
|
+
return a = N(16, a), a === null && r(W, "Bad character escape sequence"), a;
|
|
419
419
|
}
|
|
420
420
|
function Y() {
|
|
421
421
|
Te = !1;
|
|
@@ -435,52 +435,52 @@ var B, To = function(e) {
|
|
|
435
435
|
}
|
|
436
436
|
function T() {
|
|
437
437
|
var a = Y(), l = Ee;
|
|
438
|
-
!Te &&
|
|
438
|
+
!Te && eo(a) && (l = $r[a]), s(l, a);
|
|
439
439
|
}
|
|
440
440
|
function g() {
|
|
441
|
-
|
|
441
|
+
Tt = W, ge = Ce, At = It, x();
|
|
442
442
|
}
|
|
443
443
|
function U(a) {
|
|
444
|
-
if (Q = a, f =
|
|
444
|
+
if (Q = a, f = W, A.C)
|
|
445
445
|
for (; f < le; )
|
|
446
446
|
le = y.lastIndexOf(`
|
|
447
447
|
`, le - 2) + 1, --Se;
|
|
448
448
|
p(), x();
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
this.type = null, this.start =
|
|
450
|
+
function F() {
|
|
451
|
+
this.type = null, this.start = W, this.end = null;
|
|
452
452
|
}
|
|
453
453
|
function X() {
|
|
454
|
-
this.start =
|
|
454
|
+
this.start = Et, this.end = null, Ct && (this.source = Ct);
|
|
455
455
|
}
|
|
456
456
|
function V() {
|
|
457
|
-
var a = new
|
|
458
|
-
return A.C && (a.X = new X()), A.vb && (a.sourceFile = A.vb), A.Xa && (a.j = [
|
|
457
|
+
var a = new F();
|
|
458
|
+
return A.C && (a.X = new X()), A.vb && (a.sourceFile = A.vb), A.Xa && (a.j = [W, 0]), a;
|
|
459
459
|
}
|
|
460
460
|
function ne(a) {
|
|
461
|
-
var l = new
|
|
461
|
+
var l = new F();
|
|
462
462
|
return l.start = a.start, A.C && (l.X = new X(), l.X.start = a.X.start), A.Xa && (l.j = [a.j[0], 0]), l;
|
|
463
463
|
}
|
|
464
464
|
function E(a, l) {
|
|
465
|
-
return a.type = l, a.end = ge, A.C && (a.X.end =
|
|
465
|
+
return a.type = l, a.end = ge, A.C && (a.X.end = At), A.Xa && (a.j[1] = ge), a;
|
|
466
466
|
}
|
|
467
467
|
function Qe(a) {
|
|
468
468
|
return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function M(a) {
|
|
471
471
|
return k === a ? (g(), !0) : !1;
|
|
472
472
|
}
|
|
473
473
|
function et() {
|
|
474
|
-
return !A.fc && (k ===
|
|
474
|
+
return !A.fc && (k === Ot || k === Ie || at.test(y.slice(ge, W)));
|
|
475
475
|
}
|
|
476
476
|
function be() {
|
|
477
|
-
|
|
477
|
+
M(ue) || et() || ae();
|
|
478
478
|
}
|
|
479
479
|
function D(a) {
|
|
480
480
|
k === a ? g() : ae();
|
|
481
481
|
}
|
|
482
482
|
function ae() {
|
|
483
|
-
r(
|
|
483
|
+
r(W, "Unexpected token");
|
|
484
484
|
}
|
|
485
485
|
function tt(a) {
|
|
486
486
|
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), Q && a.type === "Identifier" && it(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
@@ -489,54 +489,54 @@ var B, To = function(e) {
|
|
|
489
489
|
(k === Fn || k === we && te === "/=") && x(!0);
|
|
490
490
|
var a = k, l = V();
|
|
491
491
|
switch (a) {
|
|
492
|
-
case
|
|
493
|
-
case
|
|
492
|
+
case jt:
|
|
493
|
+
case vn:
|
|
494
494
|
g();
|
|
495
|
-
var c = a ===
|
|
496
|
-
|
|
495
|
+
var c = a === jt;
|
|
496
|
+
M(ue) || et() ? l.label = null : k !== Ee ? ae() : (l.label = se(), be());
|
|
497
497
|
for (var d = 0; d < L.length; ++d) {
|
|
498
498
|
var C = L[d];
|
|
499
499
|
if ((l.label === null || C.name === l.label.name) && (C.kind !== null && (c || C.kind === "loop") || l.label && c))
|
|
500
500
|
break;
|
|
501
501
|
}
|
|
502
502
|
return d === L.length && r(l.start, "Unsyntactic " + a.l), E(l, c ? "BreakStatement" : "ContinueStatement");
|
|
503
|
-
case
|
|
503
|
+
case bn:
|
|
504
504
|
return g(), be(), E(l, "DebuggerStatement");
|
|
505
|
-
case
|
|
506
|
-
return g(), L.push(
|
|
507
|
-
case kn:
|
|
508
|
-
return g(), L.push(Dt), D(ce), k === ue ? bt(l, null) : k === Ut ? (a = V(), g(), pn(a, !0), E(a, "VariableDeclaration"), a.fa.length === 1 && F(ot) ? dn(l, a) : bt(l, a)) : (a = K(!1, !0), F(ot) ? (tt(a), dn(l, a)) : bt(l, a));
|
|
509
|
-
case Nt:
|
|
510
|
-
return g(), kt(l, !0);
|
|
505
|
+
case wn:
|
|
506
|
+
return g(), L.push(Vt), l.body = re(), L.pop(), D(Ut), l.test = Be(), be(), E(l, "DoWhileStatement");
|
|
511
507
|
case Cn:
|
|
512
|
-
return g(),
|
|
508
|
+
return g(), L.push(Vt), D(ce), k === ue ? vt(l, null) : k === Bt ? (a = V(), g(), hn(a, !0), E(a, "VariableDeclaration"), a.fa.length === 1 && M(ot) ? pn(l, a) : vt(l, a)) : (a = K(!1, !0), M(ot) ? (tt(a), pn(l, a)) : vt(l, a));
|
|
509
|
+
case Pt:
|
|
510
|
+
return g(), xt(l, !0);
|
|
513
511
|
case En:
|
|
514
|
-
return
|
|
515
|
-
case Bt:
|
|
516
|
-
for (g(), l.Qb = Be(), l.tb = [], D(Le), L.push(no); k !== Ie; )
|
|
517
|
-
k === Pt || k === bn ? (a = k === Pt, d && E(d, "SwitchCase"), l.tb.push(d = V()), d.da = [], g(), a ? d.test = K() : (c && r(At, "Multiple default clauses"), c = !0, d.test = null), D(_e)) : (d || ae(), d.da.push(re()));
|
|
518
|
-
return d && E(d, "SwitchCase"), g(), L.pop(), E(l, "SwitchStatement");
|
|
512
|
+
return g(), l.test = Be(), l.da = re(), l.alternate = M(xn) ? re() : null, E(l, "IfStatement");
|
|
519
513
|
case In:
|
|
520
|
-
return
|
|
514
|
+
return Ve || A.Ib || r(W, "'return' outside of function"), g(), M(ue) || et() ? l.K = null : (l.K = K(), be()), E(l, "ReturnStatement");
|
|
515
|
+
case Nt:
|
|
516
|
+
for (g(), l.Qb = Be(), l.tb = [], D(Le), L.push(ro); k !== Ie; )
|
|
517
|
+
k === Rt || k === Sn ? (a = k === Rt, d && E(d, "SwitchCase"), l.tb.push(d = V()), d.da = [], g(), a ? d.test = K() : (c && r(Tt, "Multiple default clauses"), c = !0, d.test = null), D(We)) : (d || ae(), d.da.push(re()));
|
|
518
|
+
return d && E(d, "SwitchCase"), g(), L.pop(), E(l, "SwitchStatement");
|
|
521
519
|
case Tn:
|
|
522
|
-
return g(),
|
|
523
|
-
case Ut:
|
|
524
|
-
return g(), pn(l), be(), E(l, "VariableDeclaration");
|
|
525
|
-
case Ft:
|
|
526
|
-
return g(), l.test = Be(), L.push(Dt), l.body = re(), L.pop(), E(l, "WhileStatement");
|
|
520
|
+
return g(), at.test(y.slice(ge, W)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), E(l, "ThrowStatement");
|
|
527
521
|
case An:
|
|
528
|
-
return Q && r(
|
|
522
|
+
return g(), l.block = Ue(), l.Ea = null, k === yn && (a = V(), g(), D(ce), a.Ua = se(), Q && it(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), D(oe), a.body = Ue(), l.Ea = E(a, "CatchClause")), l.fb = M(kn) ? Ue() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
523
|
+
case Bt:
|
|
524
|
+
return g(), hn(l), be(), E(l, "VariableDeclaration");
|
|
525
|
+
case Ut:
|
|
526
|
+
return g(), l.test = Be(), L.push(Vt), l.body = re(), L.pop(), E(l, "WhileStatement");
|
|
527
|
+
case On:
|
|
528
|
+
return Q && r(W, "'with' in strict mode"), g(), l.object = Be(), l.body = re(), E(l, "WithStatement");
|
|
529
529
|
case Le:
|
|
530
530
|
return Ue();
|
|
531
531
|
case ue:
|
|
532
532
|
return g(), E(l, "EmptyStatement");
|
|
533
533
|
default:
|
|
534
|
-
if (c = te, C = K(), a === Ee && C.type === "Identifier" &&
|
|
534
|
+
if (c = te, C = K(), a === Ee && C.type === "Identifier" && M(We)) {
|
|
535
535
|
for (d = 0; d < L.length; ++d)
|
|
536
536
|
L[d].name === c && r(C.start, "Label '" + c + "' is already declared");
|
|
537
537
|
return L.push({
|
|
538
538
|
name: c,
|
|
539
|
-
kind: k.W ? "loop" : k ===
|
|
539
|
+
kind: k.W ? "loop" : k === Nt ? "switch" : null
|
|
540
540
|
}), l.body = re(), L.pop(), l.label = C, E(l, "LabeledStatement");
|
|
541
541
|
}
|
|
542
542
|
return l.la = C, be(), E(l, "ExpressionStatement");
|
|
@@ -549,129 +549,129 @@ var B, To = function(e) {
|
|
|
549
549
|
}
|
|
550
550
|
function Ue(a) {
|
|
551
551
|
var l = V(), c = !0, d = !1;
|
|
552
|
-
for (l.body = [], D(Le); !
|
|
552
|
+
for (l.body = [], D(Le); !M(Ie); ) {
|
|
553
553
|
var C = re();
|
|
554
554
|
if (l.body.push(C), c && a && Qe(C)) {
|
|
555
|
-
var
|
|
555
|
+
var _ = d;
|
|
556
556
|
U(d = !0);
|
|
557
557
|
}
|
|
558
558
|
c = !1;
|
|
559
559
|
}
|
|
560
|
-
return d && !
|
|
560
|
+
return d && !_ && U(!1), E(l, "BlockStatement");
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function vt(a, l) {
|
|
563
563
|
return a.ua = l, D(ue), a.test = k === ue ? null : K(), D(ue), a.update = k === oe ? null : K(), D(oe), a.body = re(), L.pop(), E(a, "ForStatement");
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function pn(a, l) {
|
|
566
566
|
return a.left = l, a.right = K(), D(oe), a.body = re(), L.pop(), E(a, "ForInStatement");
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function hn(a, l) {
|
|
569
569
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
570
570
|
var c = V();
|
|
571
|
-
if (c.id = se(), Q && it(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua =
|
|
571
|
+
if (c.id = se(), Q && it(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = M(Vn) ? K(!0, l) : null, a.fa.push(E(c, "VariableDeclarator")), !M(ye))
|
|
572
572
|
break;
|
|
573
573
|
}
|
|
574
574
|
}
|
|
575
575
|
function K(a, l) {
|
|
576
|
-
var c =
|
|
576
|
+
var c = bt(l);
|
|
577
577
|
if (!a && k === ye) {
|
|
578
|
-
for (a = ne(c), a.xb = [c];
|
|
579
|
-
a.xb.push(
|
|
578
|
+
for (a = ne(c), a.xb = [c]; M(ye); )
|
|
579
|
+
a.xb.push(bt(l));
|
|
580
580
|
return E(a, "SequenceExpression");
|
|
581
581
|
}
|
|
582
582
|
return c;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
585
|
-
var l = wt(
|
|
586
|
-
if (
|
|
584
|
+
function bt(a) {
|
|
585
|
+
var l = St(wt(), -1, a);
|
|
586
|
+
if (M(Mn)) {
|
|
587
587
|
var c = ne(l);
|
|
588
|
-
c.test = l, c.da = K(!0), D(
|
|
588
|
+
c.test = l, c.da = K(!0), D(We), c.alternate = K(!0, a), l = E(c, "ConditionalExpression");
|
|
589
589
|
}
|
|
590
|
-
return k.Cb ? (c = ne(l), c.operator = te, c.left = l, g(), c.right =
|
|
590
|
+
return k.Cb ? (c = ne(l), c.operator = te, c.left = l, g(), c.right = bt(a), tt(l), E(c, "AssignmentExpression")) : l;
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function St(a, l, c) {
|
|
593
593
|
var d = k.L;
|
|
594
594
|
if (d !== null && (!c || k !== ot) && d > l) {
|
|
595
595
|
var C = ne(a);
|
|
596
|
-
return C.left = a, C.operator = te, a = k, g(), C.right = wt(
|
|
596
|
+
return C.left = a, C.operator = te, a = k, g(), C.right = St(wt(), d, c), d = E(C, a === Ln || a === Wn ? "LogicalExpression" : "BinaryExpression"), St(d, l, c);
|
|
597
597
|
}
|
|
598
598
|
return a;
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function wt() {
|
|
601
601
|
if (k.prefix) {
|
|
602
602
|
var a = V(), l = k.$b;
|
|
603
|
-
return a.operator = te,
|
|
603
|
+
return a.operator = te, Fe = a.prefix = !0, g(), a.K = wt(), l ? tt(a.K) : Q && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), E(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
604
604
|
}
|
|
605
|
-
for (l =
|
|
605
|
+
for (l = Me(nt()); k.cc && !et(); )
|
|
606
606
|
a = ne(l), a.operator = te, a.prefix = !1, a.K = l, tt(l), g(), l = E(a, "UpdateExpression");
|
|
607
607
|
return l;
|
|
608
608
|
}
|
|
609
|
-
function
|
|
610
|
-
if (
|
|
609
|
+
function Me(a, l) {
|
|
610
|
+
if (M(Un)) {
|
|
611
611
|
var c = ne(a);
|
|
612
|
-
return c.object = a, c.Wa = se(!0), c.bb = !1,
|
|
612
|
+
return c.object = a, c.Wa = se(!0), c.bb = !1, Me(E(c, "MemberExpression"), l);
|
|
613
613
|
}
|
|
614
|
-
return
|
|
614
|
+
return M(Mt) ? (c = ne(a), c.object = a, c.Wa = K(), c.bb = !0, D(Ft), Me(E(c, "MemberExpression"), l)) : !l && M(ce) ? (c = ne(a), c.callee = a, c.arguments = kt(oe, !1), Me(E(c, "CallExpression"), l)) : a;
|
|
615
615
|
}
|
|
616
616
|
function nt() {
|
|
617
617
|
switch (k) {
|
|
618
|
-
case
|
|
618
|
+
case Rn:
|
|
619
619
|
var a = V();
|
|
620
620
|
return g(), E(a, "ThisExpression");
|
|
621
621
|
case Ee:
|
|
622
622
|
return se();
|
|
623
623
|
case De:
|
|
624
624
|
case rt:
|
|
625
|
-
case
|
|
626
|
-
return a = V(), a.value = te, a.raw = y.slice(
|
|
627
|
-
case Rn:
|
|
625
|
+
case gn:
|
|
626
|
+
return a = V(), a.value = te, a.raw = y.slice(W, Ce), g(), E(a, "Literal");
|
|
628
627
|
case Pn:
|
|
629
628
|
case Nn:
|
|
629
|
+
case Bn:
|
|
630
630
|
return a = V(), a.value = k.$a, a.raw = k.l, g(), E(a, "Literal");
|
|
631
631
|
case ce:
|
|
632
|
-
a =
|
|
633
|
-
var l =
|
|
632
|
+
a = Et;
|
|
633
|
+
var l = W;
|
|
634
634
|
g();
|
|
635
635
|
var c = K();
|
|
636
|
-
return c.start = l, c.end = Ce, A.C && (c.X.start = a, c.X.end =
|
|
636
|
+
return c.start = l, c.end = Ce, A.C && (c.X.start = a, c.X.end = It), A.Xa && (c.j = [l, Ce]), D(oe), c;
|
|
637
637
|
case Mt:
|
|
638
|
-
return a = V(), g(), a.elements =
|
|
638
|
+
return a = V(), g(), a.elements = kt(Ft, !0, !0), E(a, "ArrayExpression");
|
|
639
639
|
case Le:
|
|
640
|
-
for (a = V(), l = !0, c = !1, a.h = [], g(); !
|
|
640
|
+
for (a = V(), l = !0, c = !1, a.h = [], g(); !M(Ie); ) {
|
|
641
641
|
if (l)
|
|
642
642
|
l = !1;
|
|
643
|
-
else if (D(ye), A.sb &&
|
|
643
|
+
else if (D(ye), A.sb && M(Ie))
|
|
644
644
|
break;
|
|
645
645
|
var d = {
|
|
646
646
|
key: k === De || k === rt ? nt() : se(!0)
|
|
647
647
|
}, C = !1;
|
|
648
|
-
if (
|
|
648
|
+
if (M(We)) {
|
|
649
649
|
d.value = K(!0);
|
|
650
|
-
var
|
|
650
|
+
var _ = d.kind = "init";
|
|
651
651
|
} else
|
|
652
|
-
d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ? ae() : (C = c = !0,
|
|
652
|
+
d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ? ae() : (C = c = !0, _ = d.kind = d.key.name, d.key = k === De || k === rt ? nt() : se(!0), k !== ce && ae(), d.value = xt(V(), !1));
|
|
653
653
|
if (d.key.type === "Identifier" && (Q || c))
|
|
654
654
|
for (var J = 0; J < a.h.length; ++J) {
|
|
655
655
|
var Ae = a.h[J];
|
|
656
656
|
if (Ae.key.name === d.key.name) {
|
|
657
|
-
var
|
|
658
|
-
|
|
657
|
+
var Dt = _ === Ae.kind || C && Ae.kind === "init" || _ === "init" && (Ae.kind === "get" || Ae.kind === "set");
|
|
658
|
+
Dt && !Q && _ === "init" && Ae.kind === "init" && (Dt = !1), Dt && r(d.key.start, "Redefinition of property");
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
a.h.push(d);
|
|
662
662
|
}
|
|
663
663
|
return E(a, "ObjectExpression");
|
|
664
|
-
case
|
|
665
|
-
return a = V(), g(),
|
|
666
|
-
case
|
|
667
|
-
return a = V(), g(), a.callee =
|
|
664
|
+
case Pt:
|
|
665
|
+
return a = V(), g(), xt(a, !1);
|
|
666
|
+
case jn:
|
|
667
|
+
return a = V(), g(), a.callee = Me(nt(), !0), a.arguments = M(ce) ? kt(oe, !1) : _r, E(a, "NewExpression");
|
|
668
668
|
}
|
|
669
669
|
ae();
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function xt(a, l) {
|
|
672
672
|
k === Ee ? a.id = se() : l ? ae() : a.id = null, a.oa = [];
|
|
673
673
|
var c = !0;
|
|
674
|
-
for (D(ce); !
|
|
674
|
+
for (D(ce); !M(oe); )
|
|
675
675
|
c ? c = !1 : D(ye), a.oa.push(se());
|
|
676
676
|
c = Ve;
|
|
677
677
|
var d = L;
|
|
@@ -683,11 +683,11 @@ var B, To = function(e) {
|
|
|
683
683
|
}
|
|
684
684
|
return E(a, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
685
685
|
}
|
|
686
|
-
function
|
|
687
|
-
for (var d = [], C = !0; !
|
|
686
|
+
function kt(a, l, c) {
|
|
687
|
+
for (var d = [], C = !0; !M(a); ) {
|
|
688
688
|
if (C)
|
|
689
689
|
C = !1;
|
|
690
|
-
else if (D(ye), l && A.sb &&
|
|
690
|
+
else if (D(ye), l && A.sb && M(a))
|
|
691
691
|
break;
|
|
692
692
|
d.push(c && k === ye ? null : K(!0));
|
|
693
693
|
}
|
|
@@ -695,19 +695,19 @@ var B, To = function(e) {
|
|
|
695
695
|
}
|
|
696
696
|
function se(a) {
|
|
697
697
|
var l = V();
|
|
698
|
-
return a && A.yb === "everywhere" && (a = !1), k === Ee ? (!a && (A.yb &&
|
|
698
|
+
return a && A.yb === "everywhere" && (a = !1), k === Ee ? (!a && (A.yb && Qr(te) || Q && _n(te)) && y.slice(W, Ce).indexOf("\\") === -1 && r(W, "The keyword '" + te + "' is reserved"), l.name = te) : a && k.l ? l.name = k.l : ae(), Fe = !1, g(), E(l, "Identifier");
|
|
699
699
|
}
|
|
700
700
|
e.version = "0.5.0";
|
|
701
|
-
var A, y = "", ke,
|
|
701
|
+
var A, y = "", ke, Ct;
|
|
702
702
|
e.parse = function(a, l) {
|
|
703
703
|
y = String(a), ke = y.length, A = l || {};
|
|
704
|
-
for (var c in
|
|
705
|
-
Object.prototype.hasOwnProperty.call(A, c) || (A[c] =
|
|
706
|
-
for (
|
|
704
|
+
for (var c in mn)
|
|
705
|
+
Object.prototype.hasOwnProperty.call(A, c) || (A[c] = mn[c]);
|
|
706
|
+
for (Ct = A.sourceFile, Se = 1, f = le = 0, Fe = !0, p(), c = A.dc, Tt = ge = f, A.C && (At = new i()), Ve = Q = !1, L = [], x(), a = c || V(), l = !0, c || (a.body = []); k !== Ot; )
|
|
707
707
|
c = re(), a.body.push(c), l && Qe(c) && U(!0), l = !1;
|
|
708
708
|
return E(a, "Program");
|
|
709
709
|
};
|
|
710
|
-
var
|
|
710
|
+
var mn = {
|
|
711
711
|
fc: !1,
|
|
712
712
|
sb: !0,
|
|
713
713
|
yb: !1,
|
|
@@ -718,110 +718,110 @@ var B, To = function(e) {
|
|
|
718
718
|
dc: null,
|
|
719
719
|
sourceFile: null,
|
|
720
720
|
vb: null
|
|
721
|
-
}, f = 0,
|
|
721
|
+
}, f = 0, W = 0, Ce = 0, Et, It, k, te, Fe, Se, le, Tt = 0, ge = 0, At, Ve, L, Q, _r = [], De = {
|
|
722
722
|
type: "num"
|
|
723
|
-
},
|
|
723
|
+
}, gn = {
|
|
724
724
|
type: "regexp"
|
|
725
725
|
}, rt = {
|
|
726
726
|
type: "string"
|
|
727
727
|
}, Ee = {
|
|
728
728
|
type: "name"
|
|
729
|
-
},
|
|
729
|
+
}, Ot = {
|
|
730
730
|
type: "eof"
|
|
731
|
-
},
|
|
731
|
+
}, jt = {
|
|
732
732
|
l: "break"
|
|
733
|
-
},
|
|
733
|
+
}, Rt = {
|
|
734
734
|
l: "case",
|
|
735
735
|
m: !0
|
|
736
|
-
}, gn = {
|
|
737
|
-
l: "catch"
|
|
738
736
|
}, yn = {
|
|
739
|
-
l: "
|
|
737
|
+
l: "catch"
|
|
740
738
|
}, vn = {
|
|
741
|
-
l: "
|
|
739
|
+
l: "continue"
|
|
742
740
|
}, bn = {
|
|
743
|
-
l: "
|
|
741
|
+
l: "debugger"
|
|
744
742
|
}, Sn = {
|
|
743
|
+
l: "default"
|
|
744
|
+
}, wn = {
|
|
745
745
|
l: "do",
|
|
746
746
|
W: !0
|
|
747
|
-
},
|
|
747
|
+
}, xn = {
|
|
748
748
|
l: "else",
|
|
749
749
|
m: !0
|
|
750
|
-
}, xn = {
|
|
751
|
-
l: "finally"
|
|
752
750
|
}, kn = {
|
|
751
|
+
l: "finally"
|
|
752
|
+
}, Cn = {
|
|
753
753
|
l: "for",
|
|
754
754
|
W: !0
|
|
755
|
-
},
|
|
755
|
+
}, Pt = {
|
|
756
756
|
l: "function"
|
|
757
|
-
}, Cn = {
|
|
758
|
-
l: "if"
|
|
759
757
|
}, En = {
|
|
758
|
+
l: "if"
|
|
759
|
+
}, In = {
|
|
760
760
|
l: "return",
|
|
761
761
|
m: !0
|
|
762
|
-
},
|
|
762
|
+
}, Nt = {
|
|
763
763
|
l: "switch"
|
|
764
|
-
},
|
|
764
|
+
}, Tn = {
|
|
765
765
|
l: "throw",
|
|
766
766
|
m: !0
|
|
767
|
-
},
|
|
767
|
+
}, An = {
|
|
768
768
|
l: "try"
|
|
769
|
-
},
|
|
769
|
+
}, Bt = {
|
|
770
770
|
l: "var"
|
|
771
|
-
},
|
|
771
|
+
}, Ut = {
|
|
772
772
|
l: "while",
|
|
773
773
|
W: !0
|
|
774
|
-
}, An = {
|
|
775
|
-
l: "with"
|
|
776
774
|
}, On = {
|
|
775
|
+
l: "with"
|
|
776
|
+
}, jn = {
|
|
777
777
|
l: "new",
|
|
778
778
|
m: !0
|
|
779
|
-
}, jn = {
|
|
780
|
-
l: "this"
|
|
781
779
|
}, Rn = {
|
|
780
|
+
l: "this"
|
|
781
|
+
}, Pn = {
|
|
782
782
|
l: "null",
|
|
783
783
|
$a: null
|
|
784
|
-
},
|
|
784
|
+
}, Nn = {
|
|
785
785
|
l: "true",
|
|
786
786
|
$a: !0
|
|
787
|
-
},
|
|
787
|
+
}, Bn = {
|
|
788
788
|
l: "false",
|
|
789
789
|
$a: !1
|
|
790
790
|
}, ot = {
|
|
791
791
|
l: "in",
|
|
792
792
|
L: 7,
|
|
793
793
|
m: !0
|
|
794
|
-
},
|
|
795
|
-
break:
|
|
796
|
-
case:
|
|
797
|
-
catch:
|
|
798
|
-
continue:
|
|
799
|
-
debugger:
|
|
800
|
-
default:
|
|
801
|
-
do:
|
|
802
|
-
else:
|
|
803
|
-
finally:
|
|
804
|
-
for:
|
|
805
|
-
function:
|
|
806
|
-
if:
|
|
807
|
-
return:
|
|
808
|
-
switch:
|
|
809
|
-
throw:
|
|
810
|
-
try:
|
|
811
|
-
var:
|
|
812
|
-
while:
|
|
813
|
-
with:
|
|
814
|
-
null:
|
|
815
|
-
true:
|
|
816
|
-
false:
|
|
817
|
-
new:
|
|
794
|
+
}, $r = {
|
|
795
|
+
break: jt,
|
|
796
|
+
case: Rt,
|
|
797
|
+
catch: yn,
|
|
798
|
+
continue: vn,
|
|
799
|
+
debugger: bn,
|
|
800
|
+
default: Sn,
|
|
801
|
+
do: wn,
|
|
802
|
+
else: xn,
|
|
803
|
+
finally: kn,
|
|
804
|
+
for: Cn,
|
|
805
|
+
function: Pt,
|
|
806
|
+
if: En,
|
|
807
|
+
return: In,
|
|
808
|
+
switch: Nt,
|
|
809
|
+
throw: Tn,
|
|
810
|
+
try: An,
|
|
811
|
+
var: Bt,
|
|
812
|
+
while: Ut,
|
|
813
|
+
with: On,
|
|
814
|
+
null: Pn,
|
|
815
|
+
true: Nn,
|
|
816
|
+
false: Bn,
|
|
817
|
+
new: jn,
|
|
818
818
|
in: ot,
|
|
819
819
|
instanceof: {
|
|
820
820
|
l: "instanceof",
|
|
821
821
|
L: 7,
|
|
822
822
|
m: !0
|
|
823
823
|
},
|
|
824
|
-
this:
|
|
824
|
+
this: Rn,
|
|
825
825
|
typeof: {
|
|
826
826
|
l: "typeof",
|
|
827
827
|
prefix: !0,
|
|
@@ -840,7 +840,7 @@ var B, To = function(e) {
|
|
|
840
840
|
}, Mt = {
|
|
841
841
|
type: "[",
|
|
842
842
|
m: !0
|
|
843
|
-
},
|
|
843
|
+
}, Ft = {
|
|
844
844
|
type: "]"
|
|
845
845
|
}, Le = {
|
|
846
846
|
type: "{",
|
|
@@ -858,68 +858,68 @@ var B, To = function(e) {
|
|
|
858
858
|
}, ue = {
|
|
859
859
|
type: ";",
|
|
860
860
|
m: !0
|
|
861
|
-
},
|
|
861
|
+
}, We = {
|
|
862
862
|
type: ":",
|
|
863
863
|
m: !0
|
|
864
|
-
}, Bn = {
|
|
865
|
-
type: "."
|
|
866
864
|
}, Un = {
|
|
865
|
+
type: "."
|
|
866
|
+
}, Mn = {
|
|
867
867
|
type: "?",
|
|
868
868
|
m: !0
|
|
869
869
|
}, Fn = {
|
|
870
870
|
L: 10,
|
|
871
871
|
m: !0
|
|
872
|
-
},
|
|
872
|
+
}, Vn = {
|
|
873
873
|
Cb: !0,
|
|
874
874
|
m: !0
|
|
875
875
|
}, we = {
|
|
876
876
|
Cb: !0,
|
|
877
877
|
m: !0
|
|
878
|
-
},
|
|
878
|
+
}, Hr = {
|
|
879
879
|
cc: !0,
|
|
880
880
|
prefix: !0,
|
|
881
881
|
$b: !0
|
|
882
|
-
},
|
|
882
|
+
}, Dn = {
|
|
883
883
|
prefix: !0,
|
|
884
884
|
m: !0
|
|
885
|
-
},
|
|
885
|
+
}, Ln = {
|
|
886
886
|
L: 1,
|
|
887
887
|
m: !0
|
|
888
|
-
},
|
|
888
|
+
}, Wn = {
|
|
889
889
|
L: 2,
|
|
890
890
|
m: !0
|
|
891
|
-
},
|
|
891
|
+
}, Kr = {
|
|
892
892
|
L: 3,
|
|
893
893
|
m: !0
|
|
894
|
-
},
|
|
894
|
+
}, Gr = {
|
|
895
895
|
L: 4,
|
|
896
896
|
m: !0
|
|
897
|
-
},
|
|
897
|
+
}, Xr = {
|
|
898
898
|
L: 5,
|
|
899
899
|
m: !0
|
|
900
|
-
},
|
|
900
|
+
}, Yr = {
|
|
901
901
|
L: 6,
|
|
902
902
|
m: !0
|
|
903
|
-
},
|
|
903
|
+
}, Jr = {
|
|
904
904
|
L: 7,
|
|
905
905
|
m: !0
|
|
906
|
-
},
|
|
906
|
+
}, zr = {
|
|
907
907
|
L: 8,
|
|
908
908
|
m: !0
|
|
909
|
-
},
|
|
909
|
+
}, qr = {
|
|
910
910
|
L: 9,
|
|
911
911
|
prefix: !0,
|
|
912
912
|
m: !0
|
|
913
|
-
},
|
|
913
|
+
}, Zr = {
|
|
914
914
|
L: 10,
|
|
915
915
|
m: !0
|
|
916
|
-
},
|
|
916
|
+
}, Qr = o("class enum extends super const export import"), _n = o("implements interface let package private protected public static yield"), it = o("eval arguments"), eo = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), to = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, $n = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), no = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), at = /[\n\r\u2028\u2029]/, st = /\r\n|[\n\r\u2028\u2029]/g, Te, Vt = {
|
|
917
917
|
kind: "loop"
|
|
918
|
-
},
|
|
918
|
+
}, ro = {
|
|
919
919
|
kind: "switch"
|
|
920
920
|
};
|
|
921
921
|
}, Wt = Wt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
922
|
-
|
|
922
|
+
Ao(Wt.j || (Wt.j = {}));
|
|
923
923
|
function h(e, t) {
|
|
924
924
|
typeof e == "string" && (e = Re(e, "code"));
|
|
925
925
|
var n = e.constructor;
|
|
@@ -935,10 +935,10 @@ function h(e, t) {
|
|
|
935
935
|
var i, s;
|
|
936
936
|
for (s in this)
|
|
937
937
|
typeof this[s] == "function" && (i = s.match(e)) && (this.rb[i[1]] = this[s].bind(this));
|
|
938
|
-
this.N =
|
|
939
|
-
`), "polyfills"), this.ba = void 0,
|
|
938
|
+
this.N = $t(this, this.ra, null), this.Na = this.N.object, this.ra = Re(this.ba.join(`
|
|
939
|
+
`), "polyfills"), this.ba = void 0, pt(this.ra), i = new S(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new S(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
940
940
|
}
|
|
941
|
-
var
|
|
941
|
+
var Hn = {
|
|
942
942
|
C: !0,
|
|
943
943
|
kc: 5
|
|
944
944
|
}, Jt = {
|
|
@@ -953,15 +953,15 @@ var $n = {
|
|
|
953
953
|
configurable: !0,
|
|
954
954
|
enumerable: !1,
|
|
955
955
|
writable: !1
|
|
956
|
-
},
|
|
956
|
+
}, _e = {
|
|
957
957
|
configurable: !1,
|
|
958
958
|
enumerable: !1,
|
|
959
959
|
writable: !1
|
|
960
|
-
},
|
|
960
|
+
}, Kn = {
|
|
961
961
|
configurable: !1,
|
|
962
962
|
enumerable: !0,
|
|
963
963
|
writable: !0
|
|
964
|
-
},
|
|
964
|
+
}, gr = {
|
|
965
965
|
STEP_ERROR: !0
|
|
966
966
|
}, Ne = {
|
|
967
967
|
SCOPE_REFERENCE: !0
|
|
@@ -969,7 +969,7 @@ var $n = {
|
|
|
969
969
|
VALUE_IN_DESCRIPTOR: !0
|
|
970
970
|
}, je = {
|
|
971
971
|
REGEXP_TIMEOUT: !0
|
|
972
|
-
},
|
|
972
|
+
}, Gn = [], de = null, Xe = null, ve = typeof globalThis > "u" ? void 0 : globalThis, Oo = ["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();", "};"];
|
|
973
973
|
function zt(e) {
|
|
974
974
|
var t = e >>> 0;
|
|
975
975
|
return t === Number(e) ? t : NaN;
|
|
@@ -978,12 +978,12 @@ function Ye(e) {
|
|
|
978
978
|
var t = e >>> 0;
|
|
979
979
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function pt(e, t, n) {
|
|
982
982
|
t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
|
|
983
983
|
for (var r in e)
|
|
984
984
|
if (r !== "loc" && e.hasOwnProperty(r)) {
|
|
985
985
|
var o = e[r];
|
|
986
|
-
o && typeof o == "object" &&
|
|
986
|
+
o && typeof o == "object" && pt(o, t, n);
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
989
|
h.prototype.REGEXP_MODE = 2;
|
|
@@ -996,8 +996,8 @@ B.Kb = 0;
|
|
|
996
996
|
B.ic = 0;
|
|
997
997
|
function Re(e, t) {
|
|
998
998
|
var n = {}, r;
|
|
999
|
-
for (r in
|
|
1000
|
-
n[r] =
|
|
999
|
+
for (r in Hn)
|
|
1000
|
+
n[r] = Hn[r];
|
|
1001
1001
|
return n.sourceFile = t, ve.j.parse(e, n);
|
|
1002
1002
|
}
|
|
1003
1003
|
B.Jb = function(e) {
|
|
@@ -1020,7 +1020,7 @@ B.lb = function() {
|
|
|
1020
1020
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
1021
1021
|
n = null;
|
|
1022
1022
|
else {
|
|
1023
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
1023
|
+
this.ca.shift(), 0 <= n.interval && br(this, n, n.interval);
|
|
1024
1024
|
var r = new S(n.node, n.scope);
|
|
1025
1025
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1026
1026
|
}
|
|
@@ -1033,7 +1033,7 @@ B.lb = function() {
|
|
|
1033
1033
|
try {
|
|
1034
1034
|
var i = this.rb[r.type](e, n, r);
|
|
1035
1035
|
} catch (s) {
|
|
1036
|
-
if (s !==
|
|
1036
|
+
if (s !== gr)
|
|
1037
1037
|
throw this.value !== s && (this.value = void 0), s;
|
|
1038
1038
|
} finally {
|
|
1039
1039
|
Xe = o;
|
|
@@ -1051,8 +1051,8 @@ B.Eb = function() {
|
|
|
1051
1051
|
;
|
|
1052
1052
|
return this.za;
|
|
1053
1053
|
};
|
|
1054
|
-
function
|
|
1055
|
-
e.g(t, "NaN", NaN,
|
|
1054
|
+
function jo(e, t) {
|
|
1055
|
+
e.g(t, "NaN", NaN, _e), e.g(t, "Infinity", 1 / 0, _e), e.g(t, "undefined", void 0, _e), e.g(t, "window", t, Jt), e.g(t, "this", t, _e), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), Ro(e, t), Po(e, t), t.xa = e.M, e.g(t, "constructor", e.v, v), No(e, t), Bo(e, t), Uo(e, t), Mo(e, t), Fo(e, t), Vo(e, t), Do(e, t), Lo(e, t), Wo(e, t);
|
|
1056
1056
|
var n = e.i(function() {
|
|
1057
1057
|
throw EvalError("Can't happen");
|
|
1058
1058
|
}, !1);
|
|
@@ -1068,17 +1068,17 @@ function Oo(e, t) {
|
|
|
1068
1068
|
};
|
|
1069
1069
|
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), v);
|
|
1070
1070
|
n = function(i) {
|
|
1071
|
-
return
|
|
1071
|
+
return Xn(e, !1, arguments);
|
|
1072
1072
|
}, e.g(t, "setTimeout", e.i(n, !1), v), n = function(i) {
|
|
1073
|
-
return
|
|
1073
|
+
return Xn(e, !0, arguments);
|
|
1074
1074
|
}, e.g(t, "setInterval", e.i(n, !1), v), n = function(i) {
|
|
1075
|
-
|
|
1075
|
+
Yn(e, i);
|
|
1076
1076
|
}, e.g(t, "clearTimeout", e.i(n, !1), v), n = function(i) {
|
|
1077
|
-
|
|
1077
|
+
Yn(e, i);
|
|
1078
1078
|
}, e.g(t, "clearInterval", e.i(n, !1), v), 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);
|
|
1079
1079
|
}
|
|
1080
1080
|
B.Wb = 0;
|
|
1081
|
-
function
|
|
1081
|
+
function Ro(e, t) {
|
|
1082
1082
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1083
1083
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1084
1084
|
if (s) {
|
|
@@ -1099,7 +1099,7 @@ function jo(e, t) {
|
|
|
1099
1099
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, v), e.g(e.O, "prototype", e.Z, v), e.g(e.Z, "constructor", e.O, v), e.Z.Ta = function() {
|
|
1100
1100
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, q), e.Z.H = "Function", r = function(o, i) {
|
|
1101
1101
|
var s = e.o[e.o.length - 1];
|
|
1102
|
-
s.U = this, s.B = o, s.F = [], i != null && (i instanceof P ? s.F =
|
|
1102
|
+
s.U = this, s.B = o, s.F = [], i != null && (i instanceof P ? s.F = yr(e, i) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1103
1103
|
}, $(e, e.O, "apply", r), r = function(o) {
|
|
1104
1104
|
var i = e.o[e.o.length - 1];
|
|
1105
1105
|
i.U = this, i.B = o, i.F = [];
|
|
@@ -1112,7 +1112,7 @@ function jo(e, t) {
|
|
|
1112
1112
|
return this.valueOf();
|
|
1113
1113
|
}, $(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), v);
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function Po(e, t) {
|
|
1116
1116
|
function n(o) {
|
|
1117
1117
|
o != null || w(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1118
1118
|
}
|
|
@@ -1157,7 +1157,7 @@ function Ro(e, t) {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
}, $(e, e.v, "isPrototypeOf", r);
|
|
1159
1159
|
}
|
|
1160
|
-
function
|
|
1160
|
+
function No(e, t) {
|
|
1161
1161
|
var n = function(r) {
|
|
1162
1162
|
var o = he(e) ? this : Pe(e), i = arguments[0];
|
|
1163
1163
|
if (arguments.length === 1 && typeof i == "number")
|
|
@@ -1177,7 +1177,7 @@ function Po(e, t) {
|
|
|
1177
1177
|
writable: !0
|
|
1178
1178
|
}), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1180
|
+
function Bo(e, t) {
|
|
1181
1181
|
var n = function(r) {
|
|
1182
1182
|
return r = arguments.length ? ve.String(r) : "", he(e) ? (this.data = r, this) : r;
|
|
1183
1183
|
};
|
|
@@ -1260,17 +1260,17 @@ function No(e, t) {
|
|
|
1260
1260
|
i(s.replace(r, o));
|
|
1261
1261
|
}, Ge(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;", "};", "})();", "");
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1263
|
+
function Uo(e, t) {
|
|
1264
1264
|
e.mb = e.i(function(n) {
|
|
1265
1265
|
return n = ve.Boolean(n), he(e) ? (this.data = n, this) : n;
|
|
1266
1266
|
}, !0), e.g(t, "Boolean", e.mb, v);
|
|
1267
1267
|
}
|
|
1268
|
-
function
|
|
1268
|
+
function Mo(e, t) {
|
|
1269
1269
|
var n = function(r) {
|
|
1270
1270
|
return r = arguments.length ? ve.Number(r) : 0, he(e) ? (this.data = r, this) : r;
|
|
1271
1271
|
};
|
|
1272
1272
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, v), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1273
|
-
e.g(e.aa, t[n], Number[t[n]],
|
|
1273
|
+
e.g(e.aa, t[n], Number[t[n]], _e);
|
|
1274
1274
|
n = function(r) {
|
|
1275
1275
|
try {
|
|
1276
1276
|
return Number(this).toExponential(r);
|
|
@@ -1323,7 +1323,7 @@ function Fo(e, t) {
|
|
|
1323
1323
|
};
|
|
1324
1324
|
}(t[r]), $(e, e.$, t[r], n);
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1326
|
+
function Vo(e, t) {
|
|
1327
1327
|
var n = function(r, o) {
|
|
1328
1328
|
if (he(e))
|
|
1329
1329
|
var i = this;
|
|
@@ -1365,20 +1365,20 @@ function Mo(e, t) {
|
|
|
1365
1365
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(i(r));
|
|
1366
1366
|
}, Ge(e, e.I, "exec", n);
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function Do(e, t) {
|
|
1369
1369
|
function n(r) {
|
|
1370
1370
|
var o = e.i(function(i) {
|
|
1371
1371
|
var s = he(e) ? this : e.Aa(o);
|
|
1372
|
-
return
|
|
1372
|
+
return _t(e, s, i), s;
|
|
1373
1373
|
}, !0);
|
|
1374
1374
|
return e.g(o, "prototype", e.Aa(e.D), v), e.g(o.h.prototype, "name", r, v), e.g(t, r, o, v), o;
|
|
1375
1375
|
}
|
|
1376
1376
|
e.D = e.i(function(r) {
|
|
1377
1377
|
var o = he(e) ? this : e.Aa(e.D);
|
|
1378
|
-
return
|
|
1378
|
+
return _t(e, o, r), o;
|
|
1379
1379
|
}, !0), e.g(t, "Error", e.D, v), e.g(e.D.h.prototype, "message", "", v), e.g(e.D.h.prototype, "name", "Error", v), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1381
|
+
function Lo(e, t) {
|
|
1382
1382
|
var n = e.s(e.M);
|
|
1383
1383
|
e.g(t, "Math", n, v);
|
|
1384
1384
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1387,7 +1387,7 @@ function Do(e, t) {
|
|
|
1387
1387
|
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++)
|
|
1388
1388
|
e.g(n, r[t], e.i(Math[r[t]], !1), v);
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1390
|
+
function Wo(e, t) {
|
|
1391
1391
|
var n = e.s(e.M);
|
|
1392
1392
|
e.g(t, "JSON", n, v), t = function(r) {
|
|
1393
1393
|
try {
|
|
@@ -1397,7 +1397,7 @@ function Lo(e, t) {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
return e.Ia(o);
|
|
1399
1399
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
|
|
1400
|
-
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o =
|
|
1400
|
+
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = yr(e, o), o = o.filter(function(u) {
|
|
1401
1401
|
return typeof u == "string" || typeof u == "number";
|
|
1402
1402
|
})) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
|
|
1403
1403
|
try {
|
|
@@ -1423,7 +1423,7 @@ function H(e, t, n) {
|
|
|
1423
1423
|
function qt(e, t, n) {
|
|
1424
1424
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, v), e.g(t, "source", n.source, q), e.g(t, "global", n.global, q), e.g(t, "ignoreCase", n.ignoreCase, q), e.g(t, "multiline", n.multiline, q);
|
|
1425
1425
|
}
|
|
1426
|
-
function
|
|
1426
|
+
function _t(e, t, n) {
|
|
1427
1427
|
n && e.g(t, "message", String(n), v), n = [];
|
|
1428
1428
|
for (var r = e.o.length - 1; 0 <= r; r--) {
|
|
1429
1429
|
var o = e.o[r], i = o.node;
|
|
@@ -1442,7 +1442,7 @@ function $t(e, t, n) {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
B.ha = function() {
|
|
1444
1444
|
var e = this.ha.Mb;
|
|
1445
|
-
return e || (e = new Blob([
|
|
1445
|
+
return e || (e = new Blob([Oo.join(`
|
|
1446
1446
|
`)], {
|
|
1447
1447
|
type: "application/javascript"
|
|
1448
1448
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1567,7 +1567,7 @@ B.R = function(e, t) {
|
|
|
1567
1567
|
if (t.hb.push(e), H(this, e, this.qa)) {
|
|
1568
1568
|
n = [], t.Sa.push(n);
|
|
1569
1569
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1570
|
-
|
|
1570
|
+
ht(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
1571
1571
|
} else
|
|
1572
1572
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1573
1573
|
o = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
@@ -1583,7 +1583,7 @@ function fe(e, t) {
|
|
|
1583
1583
|
e.g(n, r[o], t[r[o]]);
|
|
1584
1584
|
return n;
|
|
1585
1585
|
}
|
|
1586
|
-
function
|
|
1586
|
+
function yr(e, t) {
|
|
1587
1587
|
var n = [], r;
|
|
1588
1588
|
for (r in t.h)
|
|
1589
1589
|
n[r] = e.G(t, r);
|
|
@@ -1618,7 +1618,7 @@ B.G = function(e, t) {
|
|
|
1618
1618
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1619
1619
|
while (e = pe(this, e));
|
|
1620
1620
|
};
|
|
1621
|
-
function
|
|
1621
|
+
function ht(e, t, n) {
|
|
1622
1622
|
if (!(t instanceof P))
|
|
1623
1623
|
throw TypeError("Primitive data type has no properties");
|
|
1624
1624
|
if (n = String(n), n === "length" && H(e, t, e.J))
|
|
@@ -1713,7 +1713,7 @@ function en(e) {
|
|
|
1713
1713
|
throw Error("No scope found");
|
|
1714
1714
|
return e;
|
|
1715
1715
|
}
|
|
1716
|
-
function
|
|
1716
|
+
function $t(e, t, n) {
|
|
1717
1717
|
var r = !1;
|
|
1718
1718
|
if (n && n.S)
|
|
1719
1719
|
r = !0;
|
|
@@ -1721,12 +1721,12 @@ function Ht(e, t, n) {
|
|
|
1721
1721
|
var o = t.body && t.body[0];
|
|
1722
1722
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1723
1723
|
}
|
|
1724
|
-
return o = e.s(null), r = new
|
|
1724
|
+
return o = e.s(null), r = new Sr(n, r, o), n || jo(e, r.object), ze(e, t, r), r;
|
|
1725
1725
|
}
|
|
1726
1726
|
function tn(e, t, n) {
|
|
1727
1727
|
if (!t)
|
|
1728
1728
|
throw Error("parentScope required");
|
|
1729
|
-
return e = n || e.s(null), new
|
|
1729
|
+
return e = n || e.s(null), new Sr(t, t.S, e);
|
|
1730
1730
|
}
|
|
1731
1731
|
function nn(e, t) {
|
|
1732
1732
|
for (var n = en(e); n && n !== e.N; ) {
|
|
@@ -1734,11 +1734,11 @@ function nn(e, t) {
|
|
|
1734
1734
|
return n.object.h[t];
|
|
1735
1735
|
n = n.Va;
|
|
1736
1736
|
}
|
|
1737
|
-
if (n === e.N &&
|
|
1737
|
+
if (n === e.N && ht(e, n.object, t))
|
|
1738
1738
|
return e.G(n.object, t);
|
|
1739
1739
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1740
1740
|
}
|
|
1741
|
-
function
|
|
1741
|
+
function vr(e, t, n) {
|
|
1742
1742
|
for (var r = en(e), o = r.S; r && r !== e.N; ) {
|
|
1743
1743
|
if (t in r.object.h) {
|
|
1744
1744
|
try {
|
|
@@ -1750,7 +1750,7 @@ function yr(e, t, n) {
|
|
|
1750
1750
|
}
|
|
1751
1751
|
r = r.Va;
|
|
1752
1752
|
}
|
|
1753
|
-
if (r === e.N && (!o ||
|
|
1753
|
+
if (r === e.N && (!o || ht(e, r.object, t)))
|
|
1754
1754
|
return e.g(r.object, t, n);
|
|
1755
1755
|
w(e, e.pb, t + " is not defined");
|
|
1756
1756
|
}
|
|
@@ -1800,7 +1800,7 @@ function ze(e, t, n) {
|
|
|
1800
1800
|
t.jb = r;
|
|
1801
1801
|
}
|
|
1802
1802
|
for (s in r)
|
|
1803
|
-
r[s] === !0 ? e.g(n.object, s, void 0,
|
|
1803
|
+
r[s] === !0 ? e.g(n.object, s, void 0, Kn) : e.g(n.object, s, Qt(e, r[s], n), Kn);
|
|
1804
1804
|
return r;
|
|
1805
1805
|
}
|
|
1806
1806
|
function he(e) {
|
|
@@ -1810,10 +1810,10 @@ function rn(e, t) {
|
|
|
1810
1810
|
return t[0] === Ne ? nn(e, t[1]) : e.G(t[0], t[1]);
|
|
1811
1811
|
}
|
|
1812
1812
|
function on(e, t, n) {
|
|
1813
|
-
return t[0] === Ne ?
|
|
1813
|
+
return t[0] === Ne ? vr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1814
1814
|
}
|
|
1815
1815
|
function w(e, t, n) {
|
|
1816
|
-
throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t),
|
|
1816
|
+
throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t), _t(e, t, n)), qe(e, 4, t), gr) : n === void 0 ? t : n;
|
|
1817
1817
|
}
|
|
1818
1818
|
function qe(e, t, n, r) {
|
|
1819
1819
|
if (t === 0)
|
|
@@ -1891,7 +1891,7 @@ function z(e, t) {
|
|
|
1891
1891
|
}
|
|
1892
1892
|
return "???";
|
|
1893
1893
|
}
|
|
1894
|
-
function
|
|
1894
|
+
function Xn(e, t, n) {
|
|
1895
1895
|
var r = e.o[e.o.length - 1], o = Array.from(n), i = o.shift();
|
|
1896
1896
|
n = Math.max(Number(o.shift() || 0), 0);
|
|
1897
1897
|
var s = e.ya();
|
|
@@ -1904,16 +1904,16 @@ function Gn(e, t, n) {
|
|
|
1904
1904
|
} catch (b) {
|
|
1905
1905
|
w(e, e.T, "Invalid code: " + b.message);
|
|
1906
1906
|
}
|
|
1907
|
-
s.type = "EvalProgram_", s.body = p.body, r = r.node.arguments[0],
|
|
1907
|
+
s.type = "EvalProgram_", s.body = p.body, r = r.node.arguments[0], pt(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1908
1908
|
}
|
|
1909
|
-
return t = new _o(u, o, r, s, t ? n : -1),
|
|
1909
|
+
return t = new _o(u, o, r, s, t ? n : -1), br(e, t, n), t.Db;
|
|
1910
1910
|
}
|
|
1911
|
-
function
|
|
1911
|
+
function br(e, t, n) {
|
|
1912
1912
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
1913
1913
|
return r.time - o.time;
|
|
1914
1914
|
});
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1916
|
+
function Yn(e, t) {
|
|
1917
1917
|
for (var n = 0; n < e.ca.length; n++)
|
|
1918
1918
|
if (e.ca[n].Db == t) {
|
|
1919
1919
|
e.ca.splice(n, 1);
|
|
@@ -1934,7 +1934,7 @@ function an(e, t, n, r) {
|
|
|
1934
1934
|
var o = e.ya();
|
|
1935
1935
|
return o.type = "CallExpression", e = new S(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1936
1936
|
}
|
|
1937
|
-
function
|
|
1937
|
+
function Lt(e, t) {
|
|
1938
1938
|
return t == null ? e.Na : t instanceof P ? t : (e = e.s(pe(e, t)), e.data = t, e);
|
|
1939
1939
|
}
|
|
1940
1940
|
B.Xb = function() {
|
|
@@ -1949,7 +1949,7 @@ B.ec = function(e) {
|
|
|
1949
1949
|
function S(e, t) {
|
|
1950
1950
|
this.node = e, this.scope = t;
|
|
1951
1951
|
}
|
|
1952
|
-
function
|
|
1952
|
+
function Sr(e, t, n) {
|
|
1953
1953
|
this.Va = e, this.S = t, this.object = n;
|
|
1954
1954
|
}
|
|
1955
1955
|
function P(e) {
|
|
@@ -1965,7 +1965,7 @@ B.toString = function() {
|
|
|
1965
1965
|
if (!(this instanceof P))
|
|
1966
1966
|
return String(this);
|
|
1967
1967
|
if (this.H === "Array") {
|
|
1968
|
-
var e =
|
|
1968
|
+
var e = Gn;
|
|
1969
1969
|
e.push(this);
|
|
1970
1970
|
try {
|
|
1971
1971
|
var t = [], n = this.h.length, r = !1;
|
|
@@ -1981,7 +1981,7 @@ B.toString = function() {
|
|
|
1981
1981
|
return t.join(",");
|
|
1982
1982
|
}
|
|
1983
1983
|
if (this.H === "Error") {
|
|
1984
|
-
if (e =
|
|
1984
|
+
if (e = Gn, e.indexOf(this) !== -1)
|
|
1985
1985
|
return "[object Error]";
|
|
1986
1986
|
n = this;
|
|
1987
1987
|
do
|
|
@@ -2011,9 +2011,9 @@ B.valueOf = function() {
|
|
|
2011
2011
|
return !Xe || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2012
2012
|
};
|
|
2013
2013
|
function _o(e, t, n, r, o) {
|
|
2014
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db =
|
|
2014
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++$o, this.time = 0;
|
|
2015
2015
|
}
|
|
2016
|
-
var
|
|
2016
|
+
var $o = 0;
|
|
2017
2017
|
h.prototype.stepArrayExpression = function(e, t, n) {
|
|
2018
2018
|
n = n.elements;
|
|
2019
2019
|
var r = t.A || 0;
|
|
@@ -2144,7 +2144,7 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2144
2144
|
n = r >>> t;
|
|
2145
2145
|
break;
|
|
2146
2146
|
case "in":
|
|
2147
|
-
t instanceof P || w(this, this.j, "'in' expects an object, not '" + t + "'"), n =
|
|
2147
|
+
t instanceof P || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = ht(this, t, r);
|
|
2148
2148
|
break;
|
|
2149
2149
|
case "instanceof":
|
|
2150
2150
|
H(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof P ? H(this, r, t) : !1;
|
|
@@ -2198,11 +2198,11 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2198
2198
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2199
2199
|
else {
|
|
2200
2200
|
if (t.eb = !0, o instanceof P || w(this, this.j, z(this, n.callee) + " is not a function"), e = o.node) {
|
|
2201
|
-
for (n =
|
|
2201
|
+
for (n = $t(this, e.body, o.Va), r = Pe(this), o = 0; o < t.F.length; o++)
|
|
2202
2202
|
this.g(r, o, t.F[o]);
|
|
2203
2203
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2204
2204
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2205
|
-
return n.S || (t.B =
|
|
2205
|
+
return n.S || (t.B = Lt(this, t.B)), this.g(n.object, "this", t.B, Jt), t.value = void 0, new S(e.body, n);
|
|
2206
2206
|
}
|
|
2207
2207
|
if (o.eval)
|
|
2208
2208
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2213,15 +2213,15 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2213
2213
|
} catch (u) {
|
|
2214
2214
|
w(this, this.T, "Invalid code: " + u.message);
|
|
2215
2215
|
}
|
|
2216
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body,
|
|
2216
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, pt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = $t(this, r, n) : ze(this, r, n), this.value = void 0, new S(o, n);
|
|
2217
2217
|
}
|
|
2218
2218
|
else if (o.Ta)
|
|
2219
|
-
t.scope.S || (t.B =
|
|
2219
|
+
t.scope.S || (t.B = Lt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2220
2220
|
else if (o.Za) {
|
|
2221
2221
|
var s = this;
|
|
2222
2222
|
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
|
|
2223
2223
|
t.value = u, s.za = !1;
|
|
2224
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2224
|
+
}), this.za = !0, t.scope.S || (t.B = Lt(this, t.B)), o.Za.apply(t.B, r);
|
|
2225
2225
|
} else
|
|
2226
2226
|
w(this, this.j, z(this, n.callee) + " is not callable");
|
|
2227
2227
|
}
|
|
@@ -2534,7 +2534,7 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2534
2534
|
h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2535
2535
|
n = n.fa;
|
|
2536
2536
|
var r = t.A || 0, o = n[r];
|
|
2537
|
-
for (t.Bb && o && (
|
|
2537
|
+
for (t.Bb && o && (vr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2538
2538
|
if (o.ua)
|
|
2539
2539
|
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new S(o.ua, t.scope);
|
|
2540
2540
|
o = n[++r];
|
|
@@ -2561,7 +2561,7 @@ h.prototype.getGlobalScope = h.prototype.Xb;
|
|
|
2561
2561
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2562
2562
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2563
2563
|
h.VALUE_IN_DESCRIPTOR = Je;
|
|
2564
|
-
const
|
|
2564
|
+
const Ho = (e) => e.split(`
|
|
2565
2565
|
`).map((t) => {
|
|
2566
2566
|
const n = t.trim();
|
|
2567
2567
|
if (t.includes("__awaiter"))
|
|
@@ -2574,7 +2574,7 @@ const $o = (e) => e.split(`
|
|
|
2574
2574
|
${u}
|
|
2575
2575
|
`;
|
|
2576
2576
|
}).filter(Boolean).join(`
|
|
2577
|
-
`),
|
|
2577
|
+
`), Jn = (e) => e + "JSON", Ko = ({
|
|
2578
2578
|
builder: e,
|
|
2579
2579
|
context: t,
|
|
2580
2580
|
event: n,
|
|
@@ -2586,16 +2586,16 @@ const $o = (e) => e.split(`
|
|
|
2586
2586
|
const u = {
|
|
2587
2587
|
...r,
|
|
2588
2588
|
...o
|
|
2589
|
-
}, p =
|
|
2589
|
+
}, p = pr({
|
|
2590
2590
|
builder: e,
|
|
2591
2591
|
context: t,
|
|
2592
2592
|
event: n,
|
|
2593
2593
|
state: u
|
|
2594
2594
|
}), b = p.map(([j]) => {
|
|
2595
|
-
const R =
|
|
2595
|
+
const R = Jn(j);
|
|
2596
2596
|
return `var ${j} = ${R} === undefined ? undefined : JSON.parse(${R});`;
|
|
2597
2597
|
}).join(`
|
|
2598
|
-
`), x =
|
|
2598
|
+
`), x = Ho(s);
|
|
2599
2599
|
if (x === "") {
|
|
2600
2600
|
Z.warn("Skipping evaluation of empty code block.");
|
|
2601
2601
|
return;
|
|
@@ -2608,12 +2608,12 @@ function theFunction() {
|
|
|
2608
2608
|
}
|
|
2609
2609
|
theFunction();
|
|
2610
2610
|
`, O = (j, R) => {
|
|
2611
|
-
const Y =
|
|
2611
|
+
const Y = mr(u, j, R);
|
|
2612
2612
|
i == null || i(Y);
|
|
2613
2613
|
}, N = function(j, R) {
|
|
2614
2614
|
p.forEach(([Y, T]) => {
|
|
2615
2615
|
const g = JSON.stringify(T);
|
|
2616
|
-
j.setProperty(R,
|
|
2616
|
+
j.setProperty(R, Jn(Y), g);
|
|
2617
2617
|
}), j.setProperty(R, "setRootState", j.createNativeFunction(O));
|
|
2618
2618
|
};
|
|
2619
2619
|
try {
|
|
@@ -2626,17 +2626,17 @@ theFunction();
|
|
|
2626
2626
|
return;
|
|
2627
2627
|
}
|
|
2628
2628
|
}, ie = (e) => e != null;
|
|
2629
|
-
function
|
|
2629
|
+
function Go() {
|
|
2630
2630
|
var e;
|
|
2631
2631
|
return typeof process < "u" && ie((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2632
2632
|
}
|
|
2633
|
-
const
|
|
2633
|
+
const Xo = () => {
|
|
2634
2634
|
var r;
|
|
2635
|
-
if (!
|
|
2635
|
+
if (!Go())
|
|
2636
2636
|
return !1;
|
|
2637
2637
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2638
2638
|
return e && t && !n ? (Z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2639
|
-
},
|
|
2639
|
+
}, Yo = (e) => G() || Xo() ? To(e) : Ko(e), sn = class Oe {
|
|
2640
2640
|
static getCacheKey(t) {
|
|
2641
2641
|
return JSON.stringify({
|
|
2642
2642
|
...t,
|
|
@@ -2670,10 +2670,10 @@ function ln({
|
|
|
2670
2670
|
if (e === "")
|
|
2671
2671
|
return;
|
|
2672
2672
|
const p = {
|
|
2673
|
-
code:
|
|
2673
|
+
code: Io(e, {
|
|
2674
2674
|
isExpression: s
|
|
2675
2675
|
}),
|
|
2676
|
-
builder:
|
|
2676
|
+
builder: Eo(),
|
|
2677
2677
|
context: t,
|
|
2678
2678
|
event: i,
|
|
2679
2679
|
rootSetState: o,
|
|
@@ -2686,7 +2686,7 @@ function ln({
|
|
|
2686
2686
|
return x.value;
|
|
2687
2687
|
}
|
|
2688
2688
|
try {
|
|
2689
|
-
const b =
|
|
2689
|
+
const b = Yo(p);
|
|
2690
2690
|
if (u) {
|
|
2691
2691
|
const x = ct.getCacheKey(p);
|
|
2692
2692
|
ct.setCachedValue(x, b);
|
|
@@ -2699,8 +2699,8 @@ function ln({
|
|
|
2699
2699
|
return;
|
|
2700
2700
|
}
|
|
2701
2701
|
}
|
|
2702
|
-
const
|
|
2703
|
-
const
|
|
2702
|
+
const mt = (e) => JSON.parse(JSON.stringify(e));
|
|
2703
|
+
const Jo = ({
|
|
2704
2704
|
block: e,
|
|
2705
2705
|
context: t,
|
|
2706
2706
|
localState: n,
|
|
@@ -2709,7 +2709,7 @@ const Yo = ({
|
|
|
2709
2709
|
}) => {
|
|
2710
2710
|
if (!e.bindings)
|
|
2711
2711
|
return e;
|
|
2712
|
-
const i =
|
|
2712
|
+
const i = mt(e), s = {
|
|
2713
2713
|
...i,
|
|
2714
2714
|
properties: {
|
|
2715
2715
|
...i.properties
|
|
@@ -2727,11 +2727,11 @@ const Yo = ({
|
|
|
2727
2727
|
context: t,
|
|
2728
2728
|
enableCache: !0
|
|
2729
2729
|
});
|
|
2730
|
-
|
|
2730
|
+
mr(s, u, b);
|
|
2731
2731
|
}
|
|
2732
2732
|
return s;
|
|
2733
2733
|
};
|
|
2734
|
-
function
|
|
2734
|
+
function dt({
|
|
2735
2735
|
block: e,
|
|
2736
2736
|
context: t,
|
|
2737
2737
|
shouldEvaluateBindings: n,
|
|
@@ -2740,7 +2740,7 @@ function pt({
|
|
|
2740
2740
|
rootSetState: i
|
|
2741
2741
|
}) {
|
|
2742
2742
|
const s = e;
|
|
2743
|
-
return n ?
|
|
2743
|
+
return n ? Jo({
|
|
2744
2744
|
block: s,
|
|
2745
2745
|
localState: r,
|
|
2746
2746
|
rootState: o,
|
|
@@ -2748,10 +2748,10 @@ function pt({
|
|
|
2748
2748
|
context: t
|
|
2749
2749
|
}) : s;
|
|
2750
2750
|
}
|
|
2751
|
-
const
|
|
2751
|
+
const cn = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", wr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2752
2752
|
if (typeof r == "string")
|
|
2753
|
-
return `${
|
|
2754
|
-
}).filter(ie), zo = (e) =>
|
|
2753
|
+
return `${cn(n)}: ${r};`;
|
|
2754
|
+
}).filter(ie), zo = (e) => wr(e).join(`
|
|
2755
2755
|
`), ut = ({
|
|
2756
2756
|
mediaQuery: e,
|
|
2757
2757
|
className: t,
|
|
@@ -2772,18 +2772,18 @@ function qo({
|
|
|
2772
2772
|
const Zo = ({
|
|
2773
2773
|
block: e,
|
|
2774
2774
|
context: t
|
|
2775
|
-
}) =>
|
|
2775
|
+
}) => xr(qo({
|
|
2776
2776
|
style: e.style || {},
|
|
2777
2777
|
context: t,
|
|
2778
2778
|
block: e
|
|
2779
2779
|
}));
|
|
2780
|
-
function
|
|
2780
|
+
function xr(e) {
|
|
2781
2781
|
switch (me) {
|
|
2782
2782
|
case "svelte":
|
|
2783
2783
|
case "vue":
|
|
2784
2784
|
case "solid":
|
|
2785
2785
|
case "angular":
|
|
2786
|
-
return
|
|
2786
|
+
return wr(e).join(" ");
|
|
2787
2787
|
case "qwik":
|
|
2788
2788
|
case "reactNative":
|
|
2789
2789
|
case "react":
|
|
@@ -2797,7 +2797,7 @@ const Qo = ({
|
|
|
2797
2797
|
registeredComponents: n
|
|
2798
2798
|
}) => {
|
|
2799
2799
|
var i;
|
|
2800
|
-
const r = (i =
|
|
2800
|
+
const r = (i = dt({
|
|
2801
2801
|
block: e,
|
|
2802
2802
|
localState: t.localState,
|
|
2803
2803
|
rootState: t.rootState,
|
|
@@ -2847,7 +2847,7 @@ const Qo = ({
|
|
|
2847
2847
|
},
|
|
2848
2848
|
block: r
|
|
2849
2849
|
}));
|
|
2850
|
-
}, ti = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)), ni = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e.name)),
|
|
2850
|
+
}, ti = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), ni = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), kr = {
|
|
2851
2851
|
small: {
|
|
2852
2852
|
min: 320,
|
|
2853
2853
|
default: 321,
|
|
@@ -2863,11 +2863,11 @@ const Qo = ({
|
|
|
2863
2863
|
default: 991,
|
|
2864
2864
|
max: 1200
|
|
2865
2865
|
}
|
|
2866
|
-
},
|
|
2866
|
+
}, zn = (e, t = kr) => `@media (max-width: ${t[e].max}px)`, Cr = ({
|
|
2867
2867
|
small: e,
|
|
2868
2868
|
medium: t
|
|
2869
2869
|
}) => {
|
|
2870
|
-
const n =
|
|
2870
|
+
const n = mt(kr);
|
|
2871
2871
|
if (!e || !t)
|
|
2872
2872
|
return n;
|
|
2873
2873
|
const r = Math.floor(e / 2);
|
|
@@ -2890,7 +2890,7 @@ const Qo = ({
|
|
|
2890
2890
|
default: i + 1
|
|
2891
2891
|
}, n;
|
|
2892
2892
|
};
|
|
2893
|
-
function
|
|
2893
|
+
function gt(e) {
|
|
2894
2894
|
return /* @__PURE__ */ I(
|
|
2895
2895
|
"style",
|
|
2896
2896
|
{
|
|
@@ -2899,50 +2899,9 @@ function yt(e) {
|
|
|
2899
2899
|
}
|
|
2900
2900
|
);
|
|
2901
2901
|
}
|
|
2902
|
-
function zn(e, ...t) {
|
|
2903
|
-
const n = Object(e);
|
|
2904
|
-
for (let r = 1; r < arguments.length; r++) {
|
|
2905
|
-
const o = arguments[r];
|
|
2906
|
-
if (o != null)
|
|
2907
|
-
for (const i in o)
|
|
2908
|
-
Object.prototype.hasOwnProperty.call(o, i) && (n[i] = o[i]);
|
|
2909
|
-
}
|
|
2910
|
-
return n;
|
|
2911
|
-
}
|
|
2912
|
-
const Cr = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
2913
2902
|
function ri(e) {
|
|
2914
|
-
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2915
|
-
}
|
|
2916
|
-
function oi(e, t) {
|
|
2917
|
-
const n = ii(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
2918
|
-
for (const u of s)
|
|
2919
|
-
for (const p of n)
|
|
2920
|
-
p in u || (u[p] = r[p]);
|
|
2921
|
-
}
|
|
2922
|
-
function ii(e) {
|
|
2923
|
-
const t = [];
|
|
2924
|
-
for (const n of e.steps)
|
|
2925
|
-
for (const r in n.styles)
|
|
2926
|
-
t.indexOf(r) === -1 && t.push(r);
|
|
2927
|
-
return t;
|
|
2928
|
-
}
|
|
2929
|
-
function za(e) {
|
|
2930
|
-
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2931
|
-
if (!t.length) {
|
|
2932
|
-
ri(e.elementId || e.id || "");
|
|
2933
|
-
return;
|
|
2934
|
-
}
|
|
2935
|
-
Array.from(t).forEach((n) => {
|
|
2936
|
-
oi(e, n), n.style.transition = "none", n.style.transitionDelay = "0", zn(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2937
|
-
n.style.transition = `all ${e.duration}s ${Cr(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), zn(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2938
|
-
n.style.transition = "", n.style.transitionDelay = "";
|
|
2939
|
-
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2940
|
-
});
|
|
2941
|
-
});
|
|
2942
|
-
}
|
|
2943
|
-
function ai(e) {
|
|
2944
2903
|
const t = function() {
|
|
2945
|
-
const o =
|
|
2904
|
+
const o = dt({
|
|
2946
2905
|
block: e.block,
|
|
2947
2906
|
localState: e.context.localState,
|
|
2948
2907
|
rootState: e.context.rootState,
|
|
@@ -2953,14 +2912,14 @@ function ai(e) {
|
|
|
2953
2912
|
return ie(o.hide) ? !o.hide : ie(o.show) ? o.show : !0;
|
|
2954
2913
|
}, n = function() {
|
|
2955
2914
|
var T, g, U;
|
|
2956
|
-
const o =
|
|
2915
|
+
const o = dt({
|
|
2957
2916
|
block: e.block,
|
|
2958
2917
|
localState: e.context.localState,
|
|
2959
2918
|
rootState: e.context.rootState,
|
|
2960
2919
|
rootSetState: e.context.rootSetState,
|
|
2961
2920
|
context: e.context.context,
|
|
2962
2921
|
shouldEvaluateBindings: !0
|
|
2963
|
-
}), i = o.responsiveStyles, s = e.context.content, u =
|
|
2922
|
+
}), i = o.responsiveStyles, s = e.context.content, u = Cr(
|
|
2964
2923
|
((T = s == null ? void 0 : s.meta) == null ? void 0 : T.breakpoints) || {}
|
|
2965
2924
|
), p = i == null ? void 0 : i.large, b = i == null ? void 0 : i.medium, x = i == null ? void 0 : i.small, m = o.id;
|
|
2966
2925
|
if (!m)
|
|
@@ -2971,26 +2930,26 @@ function ai(e) {
|
|
|
2971
2930
|
}) : "", N = b ? ut({
|
|
2972
2931
|
className: m,
|
|
2973
2932
|
styles: b,
|
|
2974
|
-
mediaQuery:
|
|
2933
|
+
mediaQuery: zn(
|
|
2975
2934
|
"medium",
|
|
2976
2935
|
u
|
|
2977
2936
|
)
|
|
2978
2937
|
}) : "", j = x ? ut({
|
|
2979
2938
|
className: m,
|
|
2980
2939
|
styles: x,
|
|
2981
|
-
mediaQuery:
|
|
2940
|
+
mediaQuery: zn(
|
|
2982
2941
|
"small",
|
|
2983
2942
|
u
|
|
2984
2943
|
)
|
|
2985
|
-
}) : "", R = o.animations && o.animations.find((
|
|
2944
|
+
}) : "", R = o.animations && o.animations.find((F) => F.trigger === "hover");
|
|
2986
2945
|
let Y = "";
|
|
2987
2946
|
if (R) {
|
|
2988
|
-
const
|
|
2947
|
+
const F = ((U = (g = R.steps) == null ? void 0 : g[1]) == null ? void 0 : U.styles) || {};
|
|
2989
2948
|
Y = ut({
|
|
2990
2949
|
className: `${m}:hover`,
|
|
2991
2950
|
styles: {
|
|
2992
|
-
...
|
|
2993
|
-
transition: `all ${R.duration}s ${
|
|
2951
|
+
...F,
|
|
2952
|
+
transition: `all ${R.duration}s ${cn(
|
|
2994
2953
|
R.easing
|
|
2995
2954
|
)}`,
|
|
2996
2955
|
transitionDelay: R.delay ? `${R.delay}s` : "0s"
|
|
@@ -3004,12 +2963,12 @@ function ai(e) {
|
|
|
3004
2963
|
Y
|
|
3005
2964
|
].join(" ");
|
|
3006
2965
|
};
|
|
3007
|
-
return /* @__PURE__ */ I(ee, { children: n() && t() ? /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(
|
|
2966
|
+
return /* @__PURE__ */ I(ee, { children: n() && t() ? /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(gt, { id: "builderio-block", styles: n() }) }) : null });
|
|
3008
2967
|
}
|
|
3009
|
-
function
|
|
2968
|
+
function oi(e) {
|
|
3010
2969
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
3011
2970
|
}
|
|
3012
|
-
const
|
|
2971
|
+
const ii = (e) => `on${oi(e)}`, ai = (e, t) => (n) => ln({
|
|
3013
2972
|
code: e,
|
|
3014
2973
|
context: t.context,
|
|
3015
2974
|
localState: t.localState,
|
|
@@ -3019,13 +2978,13 @@ const li = (e) => `on${si(e)}`, ci = (e, t) => (n) => ln({
|
|
|
3019
2978
|
isExpression: !1,
|
|
3020
2979
|
enableCache: !0
|
|
3021
2980
|
});
|
|
3022
|
-
function
|
|
2981
|
+
function za(e) {
|
|
3023
2982
|
const t = {}, n = e.block.actions ?? {};
|
|
3024
2983
|
for (const r in n) {
|
|
3025
2984
|
if (!n.hasOwnProperty(r))
|
|
3026
2985
|
continue;
|
|
3027
2986
|
const o = n[r];
|
|
3028
|
-
let i =
|
|
2987
|
+
let i = ii(r);
|
|
3029
2988
|
if (e.stripPrefix)
|
|
3030
2989
|
switch (me) {
|
|
3031
2990
|
case "vue":
|
|
@@ -3035,25 +2994,25 @@ function qa(e) {
|
|
|
3035
2994
|
i = i.replace("on:", "");
|
|
3036
2995
|
break;
|
|
3037
2996
|
}
|
|
3038
|
-
t[i] =
|
|
2997
|
+
t[i] = ai(o, e);
|
|
3039
2998
|
}
|
|
3040
2999
|
return t;
|
|
3041
3000
|
}
|
|
3042
|
-
function
|
|
3001
|
+
function si({
|
|
3043
3002
|
properties: e
|
|
3044
3003
|
}) {
|
|
3045
3004
|
return e;
|
|
3046
3005
|
}
|
|
3047
|
-
const
|
|
3006
|
+
const li = (e) => ({
|
|
3048
3007
|
href: e.href
|
|
3049
3008
|
});
|
|
3050
|
-
function
|
|
3009
|
+
function ci({
|
|
3051
3010
|
block: e,
|
|
3052
3011
|
context: t
|
|
3053
3012
|
}) {
|
|
3054
3013
|
var r;
|
|
3055
3014
|
const n = {
|
|
3056
|
-
...
|
|
3015
|
+
...li(e),
|
|
3057
3016
|
...e.properties,
|
|
3058
3017
|
"builder-id": e.id,
|
|
3059
3018
|
style: Zo({
|
|
@@ -3062,13 +3021,13 @@ function di({
|
|
|
3062
3021
|
}),
|
|
3063
3022
|
[Yt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3064
3023
|
};
|
|
3065
|
-
return
|
|
3024
|
+
return si({
|
|
3066
3025
|
properties: n,
|
|
3067
3026
|
context: t,
|
|
3068
3027
|
block: e
|
|
3069
3028
|
});
|
|
3070
3029
|
}
|
|
3071
|
-
const
|
|
3030
|
+
const ui = ({
|
|
3072
3031
|
componentOptions: e,
|
|
3073
3032
|
builderBlock: t,
|
|
3074
3033
|
context: n,
|
|
@@ -3084,7 +3043,7 @@ const pi = ({
|
|
|
3084
3043
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
3085
3044
|
*/
|
|
3086
3045
|
...o ? {
|
|
3087
|
-
attributes:
|
|
3046
|
+
attributes: ci({
|
|
3088
3047
|
block: t,
|
|
3089
3048
|
context: s
|
|
3090
3049
|
})
|
|
@@ -3100,11 +3059,11 @@ const pi = ({
|
|
|
3100
3059
|
};
|
|
3101
3060
|
function qn(e) {
|
|
3102
3061
|
var n;
|
|
3103
|
-
const t = e.isInteractive ?
|
|
3062
|
+
const t = e.isInteractive ? io : e.componentRef;
|
|
3104
3063
|
return /* @__PURE__ */ I(ee, { children: e.componentRef ? /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(
|
|
3105
3064
|
t,
|
|
3106
3065
|
{
|
|
3107
|
-
...
|
|
3066
|
+
...ui({
|
|
3108
3067
|
componentOptions: e.componentOptions,
|
|
3109
3068
|
builderBlock: e.builderBlock,
|
|
3110
3069
|
context: e.context,
|
|
@@ -3115,7 +3074,7 @@ function qn(e) {
|
|
|
3115
3074
|
contextValue: e.context
|
|
3116
3075
|
}),
|
|
3117
3076
|
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */ I(
|
|
3118
|
-
|
|
3077
|
+
yt,
|
|
3119
3078
|
{
|
|
3120
3079
|
block: r,
|
|
3121
3080
|
context: e.context,
|
|
@@ -3127,10 +3086,10 @@ function qn(e) {
|
|
|
3127
3086
|
}
|
|
3128
3087
|
) }) : null });
|
|
3129
3088
|
}
|
|
3130
|
-
function
|
|
3089
|
+
function fi(e) {
|
|
3131
3090
|
const t = e.repeatContext;
|
|
3132
3091
|
return /* @__PURE__ */ I(
|
|
3133
|
-
|
|
3092
|
+
yt,
|
|
3134
3093
|
{
|
|
3135
3094
|
block: e.block,
|
|
3136
3095
|
context: t,
|
|
@@ -3139,7 +3098,7 @@ function hi(e) {
|
|
|
3139
3098
|
}
|
|
3140
3099
|
);
|
|
3141
3100
|
}
|
|
3142
|
-
function
|
|
3101
|
+
function yt(e) {
|
|
3143
3102
|
var p, b, x;
|
|
3144
3103
|
const t = function() {
|
|
3145
3104
|
return Qo({
|
|
@@ -3154,7 +3113,7 @@ function vt(e) {
|
|
|
3154
3113
|
});
|
|
3155
3114
|
}, r = function() {
|
|
3156
3115
|
var O;
|
|
3157
|
-
return (O = e.block.repeat) != null && O.collection ? e.block :
|
|
3116
|
+
return (O = e.block.repeat) != null && O.collection ? e.block : dt({
|
|
3158
3117
|
block: e.block,
|
|
3159
3118
|
localState: e.context.localState,
|
|
3160
3119
|
rootState: e.context.rootState,
|
|
@@ -3180,7 +3139,7 @@ function vt(e) {
|
|
|
3180
3139
|
blockChildren: r().children ?? [],
|
|
3181
3140
|
componentRef: (O = t()) == null ? void 0 : O.component,
|
|
3182
3141
|
componentOptions: {
|
|
3183
|
-
...
|
|
3142
|
+
...So(r()),
|
|
3184
3143
|
builderContext: e.context,
|
|
3185
3144
|
...ti(t()) ? {
|
|
3186
3145
|
builderLinkComponent: e.linkComponent
|
|
@@ -3198,7 +3157,7 @@ function vt(e) {
|
|
|
3198
3157
|
};
|
|
3199
3158
|
};
|
|
3200
3159
|
return /* @__PURE__ */ I(ee, { children: i() ? /* @__PURE__ */ xe(ee, { children: [
|
|
3201
|
-
/* @__PURE__ */ I(
|
|
3160
|
+
/* @__PURE__ */ I(ri, { block: e.block, context: e.context }),
|
|
3202
3161
|
(p = t()) != null && p.noWrap ? /* @__PURE__ */ I(ee, { children: /* @__PURE__ */ I(
|
|
3203
3162
|
qn,
|
|
3204
3163
|
{
|
|
@@ -3213,7 +3172,7 @@ function vt(e) {
|
|
|
3213
3172
|
isInteractive: u().isInteractive
|
|
3214
3173
|
}
|
|
3215
3174
|
) }) : /* @__PURE__ */ I(ee, { children: n() ? /* @__PURE__ */ I(ee, { children: (x = n()) == null ? void 0 : x.map((m, O) => /* @__PURE__ */ I(
|
|
3216
|
-
|
|
3175
|
+
fi,
|
|
3217
3176
|
{
|
|
3218
3177
|
repeatContext: m.context,
|
|
3219
3178
|
block: m.block,
|
|
@@ -3222,7 +3181,7 @@ function vt(e) {
|
|
|
3222
3181
|
},
|
|
3223
3182
|
O
|
|
3224
3183
|
)) }) : /* @__PURE__ */ xe(
|
|
3225
|
-
|
|
3184
|
+
ao,
|
|
3226
3185
|
{
|
|
3227
3186
|
Wrapper: o(),
|
|
3228
3187
|
block: r(),
|
|
@@ -3244,7 +3203,7 @@ function vt(e) {
|
|
|
3244
3203
|
}
|
|
3245
3204
|
),
|
|
3246
3205
|
(b = s()) == null ? void 0 : b.map((m) => /* @__PURE__ */ I(
|
|
3247
|
-
|
|
3206
|
+
yt,
|
|
3248
3207
|
{
|
|
3249
3208
|
block: m,
|
|
3250
3209
|
registeredComponents: e.registeredComponents,
|
|
@@ -3258,10 +3217,10 @@ function vt(e) {
|
|
|
3258
3217
|
) })
|
|
3259
3218
|
] }) : null });
|
|
3260
3219
|
}
|
|
3261
|
-
function
|
|
3220
|
+
function un(e) {
|
|
3262
3221
|
var t, n, r;
|
|
3263
3222
|
return /* @__PURE__ */ I(
|
|
3264
|
-
|
|
3223
|
+
so,
|
|
3265
3224
|
{
|
|
3266
3225
|
blocks: e.blocks,
|
|
3267
3226
|
parent: e.parent,
|
|
@@ -3270,7 +3229,7 @@ function cn(e) {
|
|
|
3270
3229
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
3271
3230
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
3272
3231
|
children: e.blocks ? /* @__PURE__ */ I(ee, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ I(
|
|
3273
|
-
|
|
3232
|
+
yt,
|
|
3274
3233
|
{
|
|
3275
3234
|
block: o,
|
|
3276
3235
|
linkComponent: e.linkComponent,
|
|
@@ -3282,8 +3241,8 @@ function cn(e) {
|
|
|
3282
3241
|
}
|
|
3283
3242
|
);
|
|
3284
3243
|
}
|
|
3285
|
-
const
|
|
3286
|
-
function
|
|
3244
|
+
const di = (e) => `builder-columns ${e}-breakpoints`;
|
|
3245
|
+
function pi(e) {
|
|
3287
3246
|
var R, Y;
|
|
3288
3247
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(g) {
|
|
3289
3248
|
return g.link ? e.builderLinkComponent || "a" : "div";
|
|
@@ -3312,18 +3271,18 @@ function gi(e) {
|
|
|
3312
3271
|
})
|
|
3313
3272
|
};
|
|
3314
3273
|
}, m = function(g) {
|
|
3315
|
-
const U = g === 0 ? 0 : t,
|
|
3274
|
+
const U = g === 0 ? 0 : t, F = s(g), X = `${U}px`, V = "100%", ne = 0;
|
|
3316
3275
|
return {
|
|
3317
3276
|
...{
|
|
3318
3277
|
display: "flex",
|
|
3319
3278
|
flexDirection: "column",
|
|
3320
3279
|
alignItems: "stretch"
|
|
3321
3280
|
},
|
|
3322
|
-
width:
|
|
3281
|
+
width: F,
|
|
3323
3282
|
["marginLeft"]: X,
|
|
3324
3283
|
"--column-width-mobile": p({
|
|
3325
3284
|
stackedStyle: V,
|
|
3326
|
-
desktopStyle:
|
|
3285
|
+
desktopStyle: F
|
|
3327
3286
|
}),
|
|
3328
3287
|
"--column-margin-left-mobile": p({
|
|
3329
3288
|
stackedStyle: ne,
|
|
@@ -3331,7 +3290,7 @@ function gi(e) {
|
|
|
3331
3290
|
}),
|
|
3332
3291
|
"--column-width-tablet": u({
|
|
3333
3292
|
stackedStyle: V,
|
|
3334
|
-
desktopStyle:
|
|
3293
|
+
desktopStyle: F
|
|
3335
3294
|
}),
|
|
3336
3295
|
"--column-margin-left-tablet": u({
|
|
3337
3296
|
stackedStyle: ne,
|
|
@@ -3339,9 +3298,9 @@ function gi(e) {
|
|
|
3339
3298
|
})
|
|
3340
3299
|
};
|
|
3341
3300
|
}, O = function(g) {
|
|
3342
|
-
var
|
|
3343
|
-
return
|
|
3344
|
-
((X = (
|
|
3301
|
+
var F, X;
|
|
3302
|
+
return Cr(
|
|
3303
|
+
((X = (F = e.builderContext.content) == null ? void 0 : F.meta) == null ? void 0 : X.breakpoints) || {}
|
|
3345
3304
|
)[g].max;
|
|
3346
3305
|
}, N = function() {
|
|
3347
3306
|
return `
|
|
@@ -3375,25 +3334,25 @@ function gi(e) {
|
|
|
3375
3334
|
href: g.link
|
|
3376
3335
|
} : {},
|
|
3377
3336
|
[Yt()]: "builder-column",
|
|
3378
|
-
style:
|
|
3337
|
+
style: xr(m(U))
|
|
3379
3338
|
};
|
|
3380
3339
|
};
|
|
3381
3340
|
return /* @__PURE__ */ xe(ee, { children: [
|
|
3382
3341
|
/* @__PURE__ */ xe(
|
|
3383
3342
|
"div",
|
|
3384
3343
|
{
|
|
3385
|
-
className:
|
|
3344
|
+
className: di((R = e.builderBlock) == null ? void 0 : R.id) + " div-eeca3604",
|
|
3386
3345
|
style: x(),
|
|
3387
3346
|
children: [
|
|
3388
|
-
/* @__PURE__ */ I(
|
|
3347
|
+
/* @__PURE__ */ I(gt, { id: "builderio-columns", styles: N() }),
|
|
3389
3348
|
(Y = e.columns) == null ? void 0 : Y.map((T, g) => /* @__PURE__ */ I(
|
|
3390
|
-
|
|
3349
|
+
lo,
|
|
3391
3350
|
{
|
|
3392
3351
|
TagName: o(T),
|
|
3393
3352
|
actionAttributes: {},
|
|
3394
3353
|
attributes: j(T, g),
|
|
3395
3354
|
children: /* @__PURE__ */ I(
|
|
3396
|
-
|
|
3355
|
+
un,
|
|
3397
3356
|
{
|
|
3398
3357
|
path: `component.options.columns.${g}.blocks`,
|
|
3399
3358
|
parent: e.builderBlock.id,
|
|
@@ -3412,7 +3371,7 @@ function gi(e) {
|
|
|
3412
3371
|
]
|
|
3413
3372
|
}
|
|
3414
3373
|
),
|
|
3415
|
-
/* @__PURE__ */ I("style", { children: `.div-
|
|
3374
|
+
/* @__PURE__ */ I("style", { children: `.div-eeca3604 {
|
|
3416
3375
|
display: flex;
|
|
3417
3376
|
line-height: normal;
|
|
3418
3377
|
}` })
|
|
@@ -3421,11 +3380,11 @@ function gi(e) {
|
|
|
3421
3380
|
function Zn(e) {
|
|
3422
3381
|
return e.replace(/http(s)?:/, "");
|
|
3423
3382
|
}
|
|
3424
|
-
function
|
|
3383
|
+
function hi(e = "", t, n) {
|
|
3425
3384
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3426
3385
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
3427
3386
|
}
|
|
3428
|
-
function
|
|
3387
|
+
function mi(e, t) {
|
|
3429
3388
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3430
3389
|
return e;
|
|
3431
3390
|
if (t === "master")
|
|
@@ -3437,18 +3396,18 @@ function vi(e, t) {
|
|
|
3437
3396
|
}
|
|
3438
3397
|
return null;
|
|
3439
3398
|
}
|
|
3440
|
-
function
|
|
3399
|
+
function qa(e) {
|
|
3441
3400
|
if (!e)
|
|
3442
3401
|
return e;
|
|
3443
3402
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3444
3403
|
if (e.match(/builder\.io/)) {
|
|
3445
3404
|
let n = e;
|
|
3446
3405
|
const r = Number(e.split("?width=")[1]);
|
|
3447
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
3406
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${hi(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
3448
3407
|
}
|
|
3449
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3408
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [mi(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3450
3409
|
}
|
|
3451
|
-
const
|
|
3410
|
+
const gi = (e) => {
|
|
3452
3411
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3453
3412
|
return e;
|
|
3454
3413
|
const t = e.split(".");
|
|
@@ -3464,13 +3423,13 @@ const bi = (e) => {
|
|
|
3464
3423
|
Z.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3465
3424
|
return;
|
|
3466
3425
|
}
|
|
3467
|
-
}, Ir = async (e) => Er(e),
|
|
3426
|
+
}, Ir = async (e) => Er(e), yi = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(ie).join("; "), vi = [["secure", ""], ["SameSite", "None"]], bi = ({
|
|
3468
3427
|
name: e,
|
|
3469
3428
|
value: t,
|
|
3470
3429
|
expires: n
|
|
3471
3430
|
}) => {
|
|
3472
|
-
const o = (G() ? location.protocol === "https:" : !0) ?
|
|
3473
|
-
return
|
|
3431
|
+
const o = (G() ? location.protocol === "https:" : !0) ? vi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", gi(window.location.hostname)], ...o];
|
|
3432
|
+
return yi(s);
|
|
3474
3433
|
}, Tr = async ({
|
|
3475
3434
|
name: e,
|
|
3476
3435
|
value: t,
|
|
@@ -3480,7 +3439,7 @@ const bi = (e) => {
|
|
|
3480
3439
|
try {
|
|
3481
3440
|
if (!r)
|
|
3482
3441
|
return;
|
|
3483
|
-
const o =
|
|
3442
|
+
const o = bi({
|
|
3484
3443
|
name: e,
|
|
3485
3444
|
value: t,
|
|
3486
3445
|
expires: n
|
|
@@ -3489,24 +3448,24 @@ const bi = (e) => {
|
|
|
3489
3448
|
} catch (o) {
|
|
3490
3449
|
Z.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3491
3450
|
}
|
|
3492
|
-
},
|
|
3451
|
+
}, Si = "builder.tests", fn = (e) => `${Si}.${e}`, wi = ({
|
|
3493
3452
|
contentId: e
|
|
3494
3453
|
}) => Ir({
|
|
3495
|
-
name:
|
|
3454
|
+
name: fn(e),
|
|
3496
3455
|
canTrack: !0
|
|
3497
|
-
}),
|
|
3456
|
+
}), xi = ({
|
|
3498
3457
|
contentId: e
|
|
3499
3458
|
}) => Er({
|
|
3500
|
-
name:
|
|
3459
|
+
name: fn(e),
|
|
3501
3460
|
canTrack: !0
|
|
3502
|
-
}),
|
|
3461
|
+
}), ki = ({
|
|
3503
3462
|
contentId: e,
|
|
3504
3463
|
value: t
|
|
3505
3464
|
}) => Tr({
|
|
3506
|
-
name:
|
|
3465
|
+
name: fn(e),
|
|
3507
3466
|
value: t,
|
|
3508
3467
|
canTrack: !0
|
|
3509
|
-
}), Ar = (e) => ie(e.id) && ie(e.variations) && Object.keys(e.variations).length > 0,
|
|
3468
|
+
}), Ar = (e) => ie(e.id) && ie(e.variations) && Object.keys(e.variations).length > 0, Ci = ({
|
|
3510
3469
|
id: e,
|
|
3511
3470
|
variations: t
|
|
3512
3471
|
}) => {
|
|
@@ -3520,8 +3479,8 @@ const bi = (e) => {
|
|
|
3520
3479
|
}
|
|
3521
3480
|
return e;
|
|
3522
3481
|
}, Or = (e) => {
|
|
3523
|
-
const t =
|
|
3524
|
-
return
|
|
3482
|
+
const t = Ci(e);
|
|
3483
|
+
return ki({
|
|
3525
3484
|
contentId: e.id,
|
|
3526
3485
|
value: t
|
|
3527
3486
|
}).catch((n) => {
|
|
@@ -3541,7 +3500,7 @@ const bi = (e) => {
|
|
|
3541
3500
|
testVariationId: n.id,
|
|
3542
3501
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3543
3502
|
};
|
|
3544
|
-
},
|
|
3503
|
+
}, Ei = ({
|
|
3545
3504
|
item: e,
|
|
3546
3505
|
canTrack: t
|
|
3547
3506
|
}) => {
|
|
@@ -3551,7 +3510,7 @@ const bi = (e) => {
|
|
|
3551
3510
|
return;
|
|
3552
3511
|
if (!Ar(e))
|
|
3553
3512
|
return e;
|
|
3554
|
-
const n =
|
|
3513
|
+
const n = xi({
|
|
3555
3514
|
contentId: e.id
|
|
3556
3515
|
}) || Or({
|
|
3557
3516
|
variations: e.variations,
|
|
@@ -3564,13 +3523,13 @@ const bi = (e) => {
|
|
|
3564
3523
|
...e,
|
|
3565
3524
|
...r
|
|
3566
3525
|
};
|
|
3567
|
-
},
|
|
3526
|
+
}, Ii = async ({
|
|
3568
3527
|
item: e,
|
|
3569
3528
|
canTrack: t
|
|
3570
3529
|
}) => {
|
|
3571
3530
|
if (!t || !Ar(e))
|
|
3572
3531
|
return e;
|
|
3573
|
-
const r = await
|
|
3532
|
+
const r = await wi({
|
|
3574
3533
|
contentId: e.id
|
|
3575
3534
|
}) || Or({
|
|
3576
3535
|
variations: e.variations,
|
|
@@ -3583,7 +3542,7 @@ const bi = (e) => {
|
|
|
3583
3542
|
...e,
|
|
3584
3543
|
...o
|
|
3585
3544
|
};
|
|
3586
|
-
},
|
|
3545
|
+
}, Ht = (e) => ie(e) ? e : !0, Ti = {
|
|
3587
3546
|
name: "Core:Button",
|
|
3588
3547
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3589
3548
|
defaultStyles: {
|
|
@@ -3616,7 +3575,7 @@ const bi = (e) => {
|
|
|
3616
3575
|
}],
|
|
3617
3576
|
static: !0,
|
|
3618
3577
|
noWrap: !0
|
|
3619
|
-
},
|
|
3578
|
+
}, Ai = {
|
|
3620
3579
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3621
3580
|
name: "Columns",
|
|
3622
3581
|
isRSC: !0,
|
|
@@ -3817,13 +3776,13 @@ const bi = (e) => {
|
|
|
3817
3776
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3818
3777
|
advanced: !0
|
|
3819
3778
|
}]
|
|
3820
|
-
},
|
|
3779
|
+
}, Oi = {
|
|
3821
3780
|
name: "Fragment",
|
|
3822
3781
|
static: !0,
|
|
3823
3782
|
hidden: !0,
|
|
3824
3783
|
canHaveChildren: !0,
|
|
3825
3784
|
noWrap: !0
|
|
3826
|
-
},
|
|
3785
|
+
}, ji = {
|
|
3827
3786
|
name: "Image",
|
|
3828
3787
|
static: !0,
|
|
3829
3788
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -3923,7 +3882,7 @@ const bi = (e) => {
|
|
|
3923
3882
|
advanced: !0,
|
|
3924
3883
|
defaultValue: 0.7041
|
|
3925
3884
|
}]
|
|
3926
|
-
},
|
|
3885
|
+
}, Ri = {
|
|
3927
3886
|
name: "Core:Section",
|
|
3928
3887
|
static: !0,
|
|
3929
3888
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3962,7 +3921,7 @@ const bi = (e) => {
|
|
|
3962
3921
|
}
|
|
3963
3922
|
}
|
|
3964
3923
|
}]
|
|
3965
|
-
},
|
|
3924
|
+
}, Pi = {
|
|
3966
3925
|
name: "Slot",
|
|
3967
3926
|
isRSC: !0,
|
|
3968
3927
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3976,7 +3935,7 @@ const bi = (e) => {
|
|
|
3976
3935
|
defaultValue: "children"
|
|
3977
3936
|
}]
|
|
3978
3937
|
};
|
|
3979
|
-
function
|
|
3938
|
+
function Ni(e) {
|
|
3980
3939
|
var t, n, r;
|
|
3981
3940
|
return /* @__PURE__ */ I(
|
|
3982
3941
|
"div",
|
|
@@ -3988,7 +3947,7 @@ function Fi(e) {
|
|
|
3988
3947
|
"builder-slot": e.name
|
|
3989
3948
|
},
|
|
3990
3949
|
children: /* @__PURE__ */ I(
|
|
3991
|
-
|
|
3950
|
+
un,
|
|
3992
3951
|
{
|
|
3993
3952
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
3994
3953
|
path: `symbol.data.${e.name}`,
|
|
@@ -3999,7 +3958,7 @@ function Fi(e) {
|
|
|
3999
3958
|
}
|
|
4000
3959
|
);
|
|
4001
3960
|
}
|
|
4002
|
-
const
|
|
3961
|
+
const Bi = {
|
|
4003
3962
|
name: "Symbol",
|
|
4004
3963
|
noWrap: !0,
|
|
4005
3964
|
static: !0,
|
|
@@ -4032,7 +3991,7 @@ const Mi = {
|
|
|
4032
3991
|
hideFromUI: !0,
|
|
4033
3992
|
type: "boolean"
|
|
4034
3993
|
}]
|
|
4035
|
-
},
|
|
3994
|
+
}, Ui = {
|
|
4036
3995
|
name: "Text",
|
|
4037
3996
|
static: !0,
|
|
4038
3997
|
isRSC: !0,
|
|
@@ -4051,7 +4010,7 @@ const Mi = {
|
|
|
4051
4010
|
textAlign: "center"
|
|
4052
4011
|
}
|
|
4053
4012
|
};
|
|
4054
|
-
function
|
|
4013
|
+
function Mi(e) {
|
|
4055
4014
|
var t;
|
|
4056
4015
|
return /* @__PURE__ */ I(
|
|
4057
4016
|
"div",
|
|
@@ -4064,7 +4023,7 @@ function Di(e) {
|
|
|
4064
4023
|
}
|
|
4065
4024
|
);
|
|
4066
4025
|
}
|
|
4067
|
-
const
|
|
4026
|
+
const Fi = {
|
|
4068
4027
|
name: "Custom Code",
|
|
4069
4028
|
static: !0,
|
|
4070
4029
|
requiredPermissions: ["editCode"],
|
|
@@ -4086,7 +4045,7 @@ const Li = {
|
|
|
4086
4045
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
4087
4046
|
advanced: !0
|
|
4088
4047
|
}]
|
|
4089
|
-
},
|
|
4048
|
+
}, Vi = {
|
|
4090
4049
|
name: "Embed",
|
|
4091
4050
|
static: !0,
|
|
4092
4051
|
inputs: [{
|
|
@@ -4111,7 +4070,7 @@ const Li = {
|
|
|
4111
4070
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4112
4071
|
hideFromUI: !0
|
|
4113
4072
|
}]
|
|
4114
|
-
},
|
|
4073
|
+
}, Di = ["text/javascript", "application/javascript", "application/ecmascript"], Za = (e) => Di.includes(e.type), Li = {
|
|
4115
4074
|
// friendlyName?
|
|
4116
4075
|
name: "Raw:Img",
|
|
4117
4076
|
hideFromInsertMenu: !0,
|
|
@@ -4125,7 +4084,7 @@ const Li = {
|
|
|
4125
4084
|
}],
|
|
4126
4085
|
noWrap: !0,
|
|
4127
4086
|
static: !0
|
|
4128
|
-
},
|
|
4087
|
+
}, Wi = {
|
|
4129
4088
|
name: "Video",
|
|
4130
4089
|
canHaveChildren: !0,
|
|
4131
4090
|
defaultStyles: {
|
|
@@ -4206,58 +4165,58 @@ const Li = {
|
|
|
4206
4165
|
defaultValue: !0,
|
|
4207
4166
|
advanced: !0
|
|
4208
4167
|
}]
|
|
4209
|
-
},
|
|
4210
|
-
component: lo,
|
|
4211
|
-
...Li
|
|
4212
|
-
}, {
|
|
4168
|
+
}, _i = () => [{
|
|
4213
4169
|
component: co,
|
|
4214
|
-
...
|
|
4170
|
+
...Fi
|
|
4215
4171
|
}, {
|
|
4216
4172
|
component: uo,
|
|
4217
|
-
|
|
4173
|
+
...Vi
|
|
4218
4174
|
}, {
|
|
4219
4175
|
component: fo,
|
|
4220
|
-
...
|
|
4221
|
-
}], Qn = () => [{
|
|
4222
|
-
component: po,
|
|
4223
|
-
...ji
|
|
4224
|
-
}, {
|
|
4225
|
-
component: gi,
|
|
4226
|
-
...Ri
|
|
4176
|
+
...Li
|
|
4227
4177
|
}, {
|
|
4178
|
+
component: po,
|
|
4179
|
+
...Wi
|
|
4180
|
+
}], Qn = () => [{
|
|
4228
4181
|
component: ho,
|
|
4229
|
-
...
|
|
4182
|
+
...Ti
|
|
4183
|
+
}, {
|
|
4184
|
+
component: pi,
|
|
4185
|
+
...Ai
|
|
4230
4186
|
}, {
|
|
4231
4187
|
component: mo,
|
|
4232
|
-
...
|
|
4188
|
+
...Oi
|
|
4233
4189
|
}, {
|
|
4234
4190
|
component: go,
|
|
4235
|
-
...
|
|
4191
|
+
...ji
|
|
4236
4192
|
}, {
|
|
4237
|
-
component:
|
|
4238
|
-
...
|
|
4193
|
+
component: yo,
|
|
4194
|
+
...Ri
|
|
4195
|
+
}, {
|
|
4196
|
+
component: Ni,
|
|
4197
|
+
...Pi
|
|
4239
4198
|
}, {
|
|
4240
4199
|
component: $a,
|
|
4241
|
-
...
|
|
4200
|
+
...Bi
|
|
4242
4201
|
}, {
|
|
4243
|
-
component:
|
|
4244
|
-
...
|
|
4245
|
-
}, ...
|
|
4202
|
+
component: Mi,
|
|
4203
|
+
...Ui
|
|
4204
|
+
}, ..._i()], Qa = (e) => ({
|
|
4246
4205
|
type: "builder.registerComponent",
|
|
4247
|
-
data:
|
|
4248
|
-
}),
|
|
4206
|
+
data: Kt(e)
|
|
4207
|
+
}), $i = (e) => {
|
|
4249
4208
|
const t = e.toString().trim();
|
|
4250
4209
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
4251
|
-
},
|
|
4210
|
+
}, Hi = (e) => typeof e == "function" ? $i(e) : mt(e), Kt = ({
|
|
4252
4211
|
inputs: e,
|
|
4253
4212
|
...t
|
|
4254
4213
|
}) => ({
|
|
4255
|
-
...
|
|
4214
|
+
...mt(t),
|
|
4256
4215
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
|
|
4257
4216
|
...r,
|
|
4258
|
-
[o]:
|
|
4217
|
+
[o]: Hi(i)
|
|
4259
4218
|
}), {}))
|
|
4260
|
-
}),
|
|
4219
|
+
}), Ki = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4261
4220
|
function getAndSetVariantId() {
|
|
4262
4221
|
function setCookie(name, value, days) {
|
|
4263
4222
|
let expires = '';
|
|
@@ -4313,7 +4272,7 @@ const Li = {
|
|
|
4313
4272
|
}).join('');
|
|
4314
4273
|
styleEl.innerHTML = newStyleStr;
|
|
4315
4274
|
}
|
|
4316
|
-
}`,
|
|
4275
|
+
}`, Gi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4317
4276
|
if (!navigator.cookieEnabled) {
|
|
4318
4277
|
return;
|
|
4319
4278
|
}
|
|
@@ -4351,22 +4310,22 @@ const Li = {
|
|
|
4351
4310
|
...t,
|
|
4352
4311
|
testVariationId: t.id,
|
|
4353
4312
|
id: e == null ? void 0 : e.id
|
|
4354
|
-
})),
|
|
4313
|
+
})), Xi = ({
|
|
4355
4314
|
canTrack: e,
|
|
4356
4315
|
content: t
|
|
4357
|
-
}) => !(!(ft(t).length > 0) || !e || G()),
|
|
4358
|
-
window.${Rr} = ${
|
|
4359
|
-
window.${Pr} = ${
|
|
4360
|
-
`,
|
|
4316
|
+
}) => !(!(ft(t).length > 0) || !e || G()), Yi = (e) => e === "react" || e === "reactNative", Nr = Yi(me), Ji = () => `
|
|
4317
|
+
window.${Rr} = ${Ki}
|
|
4318
|
+
window.${Pr} = ${Gi}
|
|
4319
|
+
`, zi = (e, t) => `
|
|
4361
4320
|
window.${Rr}(
|
|
4362
4321
|
"${t}",${JSON.stringify(e)}, ${Nr}
|
|
4363
|
-
)`,
|
|
4322
|
+
)`, qi = ({
|
|
4364
4323
|
contentId: e,
|
|
4365
4324
|
variationId: t
|
|
4366
4325
|
}) => `window.${Pr}(
|
|
4367
4326
|
"${t}", "${e}", ${Nr}
|
|
4368
4327
|
)`;
|
|
4369
|
-
function
|
|
4328
|
+
function Gt(e) {
|
|
4370
4329
|
return /* @__PURE__ */ I(
|
|
4371
4330
|
"script",
|
|
4372
4331
|
{
|
|
@@ -4375,61 +4334,68 @@ function Xt(e) {
|
|
|
4375
4334
|
}
|
|
4376
4335
|
);
|
|
4377
4336
|
}
|
|
4378
|
-
const
|
|
4337
|
+
const Zi = (e) => {
|
|
4379
4338
|
const t = e.get("preview"), n = e.get("overrides." + t);
|
|
4380
4339
|
return n || Z.warn("No previewed ID found in search params."), n;
|
|
4381
4340
|
};
|
|
4382
|
-
function
|
|
4383
|
-
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new
|
|
4341
|
+
function Qi() {
|
|
4342
|
+
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new oo({
|
|
4384
4343
|
max: 500,
|
|
4385
4344
|
// how long to live in ms
|
|
4386
4345
|
ttl: 1e3 * 60 * 5
|
|
4387
4346
|
}));
|
|
4388
4347
|
}
|
|
4389
|
-
function
|
|
4390
|
-
|
|
4391
|
-
const t =
|
|
4348
|
+
function ea(e) {
|
|
4349
|
+
Qi();
|
|
4350
|
+
const t = Zi(e);
|
|
4392
4351
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
4393
4352
|
}
|
|
4394
|
-
function
|
|
4353
|
+
function ta() {
|
|
4395
4354
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
4396
4355
|
}
|
|
4397
|
-
function
|
|
4398
|
-
const e =
|
|
4356
|
+
function na() {
|
|
4357
|
+
const e = ta().fetch;
|
|
4399
4358
|
if (typeof e > "u")
|
|
4400
4359
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
4401
4360
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
4402
4361
|
return e;
|
|
4403
4362
|
}
|
|
4404
|
-
const
|
|
4405
|
-
function
|
|
4363
|
+
const ra = na();
|
|
4364
|
+
function Xt(e, t = null, n = ".") {
|
|
4406
4365
|
return Object.keys(e).reduce((r, o) => {
|
|
4407
4366
|
const i = e[o], s = [t, o].filter(Boolean).join(n);
|
|
4408
4367
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
4409
4368
|
...r,
|
|
4410
|
-
...
|
|
4369
|
+
...Xt(i, s, n)
|
|
4411
4370
|
} : {
|
|
4412
4371
|
...r,
|
|
4413
4372
|
[s]: i
|
|
4414
4373
|
};
|
|
4415
4374
|
}, {});
|
|
4416
4375
|
}
|
|
4417
|
-
|
|
4376
|
+
function Br(e, t, n = {}) {
|
|
4377
|
+
for (const r in e) {
|
|
4378
|
+
const o = e[r], i = t ? t + "." + r : r;
|
|
4379
|
+
o && typeof o == "object" && !Array.isArray(o) && !Object.keys(o).find((s) => s.startsWith("$")) ? Br(o, i, n) : n[i] = o;
|
|
4380
|
+
}
|
|
4381
|
+
return n;
|
|
4382
|
+
}
|
|
4383
|
+
const oa = "v3", er = "builder.", ia = "options.", Ur = (e) => {
|
|
4418
4384
|
if (!e)
|
|
4419
4385
|
return {};
|
|
4420
|
-
const t =
|
|
4386
|
+
const t = cr(e), n = {};
|
|
4421
4387
|
return Object.keys(t).forEach((r) => {
|
|
4422
4388
|
if (r.startsWith(er)) {
|
|
4423
|
-
const o = r.replace(er, "").replace(
|
|
4389
|
+
const o = r.replace(er, "").replace(ia, "");
|
|
4424
4390
|
n[o] = t[r];
|
|
4425
4391
|
}
|
|
4426
4392
|
}), n;
|
|
4427
|
-
},
|
|
4393
|
+
}, aa = () => {
|
|
4428
4394
|
if (!G())
|
|
4429
4395
|
return {};
|
|
4430
4396
|
const e = new URLSearchParams(window.location.search);
|
|
4431
|
-
return
|
|
4432
|
-
}, tr = (e) => typeof e == "number" && !isNaN(e) && e >= 0,
|
|
4397
|
+
return Ur(e);
|
|
4398
|
+
}, tr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, dn = (e) => {
|
|
4433
4399
|
const {
|
|
4434
4400
|
limit: t = 30,
|
|
4435
4401
|
userAttributes: n,
|
|
@@ -4438,7 +4404,7 @@ const sa = "v3", er = "builder.", la = "options.", Br = (e) => {
|
|
|
4438
4404
|
apiKey: i,
|
|
4439
4405
|
enrich: s,
|
|
4440
4406
|
locale: u,
|
|
4441
|
-
apiVersion: p =
|
|
4407
|
+
apiVersion: p = oa,
|
|
4442
4408
|
fields: b,
|
|
4443
4409
|
omit: x,
|
|
4444
4410
|
offset: m,
|
|
@@ -4453,43 +4419,43 @@ const sa = "v3", er = "builder.", la = "options.", Br = (e) => {
|
|
|
4453
4419
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);
|
|
4454
4420
|
const Y = t !== 1, T = new URL(`https://cdn.builder.io/api/${p}/content/${o}`);
|
|
4455
4421
|
if (T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(Y)), T.searchParams.set("includeRefs", String(!0)), u && T.searchParams.set("locale", u), s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", x || "meta.componentsUsed"), b && T.searchParams.set("fields", b), Number.isFinite(m) && m > -1 && T.searchParams.set("offset", String(Math.floor(m))), typeof R == "boolean" && T.searchParams.set("includeUnpublished", String(R)), O && tr(O) && T.searchParams.set("cacheSeconds", String(O)), N && tr(N) && T.searchParams.set("staleCacheSeconds", String(N)), j) {
|
|
4456
|
-
const
|
|
4422
|
+
const F = Xt({
|
|
4457
4423
|
sort: j
|
|
4458
4424
|
});
|
|
4459
|
-
for (const X in
|
|
4460
|
-
T.searchParams.set(X, JSON.stringify(
|
|
4425
|
+
for (const X in F)
|
|
4426
|
+
T.searchParams.set(X, JSON.stringify(F[X]));
|
|
4461
4427
|
}
|
|
4462
4428
|
const g = {
|
|
4463
|
-
...
|
|
4464
|
-
...
|
|
4465
|
-
}, U =
|
|
4466
|
-
for (const
|
|
4467
|
-
T.searchParams.set(
|
|
4429
|
+
...aa(),
|
|
4430
|
+
...cr(e.options || {})
|
|
4431
|
+
}, U = Xt(g);
|
|
4432
|
+
for (const F in U)
|
|
4433
|
+
T.searchParams.set(F, String(U[F]));
|
|
4468
4434
|
if (n && T.searchParams.set("userAttributes", JSON.stringify(n)), r) {
|
|
4469
|
-
const
|
|
4435
|
+
const F = Br({
|
|
4470
4436
|
query: r
|
|
4471
4437
|
});
|
|
4472
|
-
for (const X in
|
|
4473
|
-
T.searchParams.set(X, JSON.stringify(
|
|
4438
|
+
for (const X in F)
|
|
4439
|
+
T.searchParams.set(X, JSON.stringify(F[X]));
|
|
4474
4440
|
}
|
|
4475
4441
|
return T;
|
|
4476
|
-
},
|
|
4477
|
-
async function
|
|
4478
|
-
const t = await
|
|
4442
|
+
}, sa = (e) => "results" in e;
|
|
4443
|
+
async function Mr(e) {
|
|
4444
|
+
const t = await ua({
|
|
4479
4445
|
...e,
|
|
4480
4446
|
limit: 1
|
|
4481
4447
|
});
|
|
4482
4448
|
return t && t[0] || null;
|
|
4483
4449
|
}
|
|
4484
|
-
const
|
|
4485
|
-
const t =
|
|
4486
|
-
return await (await (e.fetch ??
|
|
4487
|
-
},
|
|
4488
|
-
const r =
|
|
4450
|
+
const la = async (e) => {
|
|
4451
|
+
const t = dn(e);
|
|
4452
|
+
return await (await (e.fetch ?? ra)(t.href, e.fetchOptions)).json();
|
|
4453
|
+
}, ca = async (e, t, n = dn(e)) => {
|
|
4454
|
+
const r = Ht(e.canTrack);
|
|
4489
4455
|
if (n.search.includes("preview=")) {
|
|
4490
4456
|
const i = [];
|
|
4491
4457
|
for (const s of t.results) {
|
|
4492
|
-
const u =
|
|
4458
|
+
const u = ea(n.searchParams);
|
|
4493
4459
|
i.push(u || s);
|
|
4494
4460
|
}
|
|
4495
4461
|
t.results = i;
|
|
@@ -4499,7 +4465,7 @@ const fa = async (e) => {
|
|
|
4499
4465
|
try {
|
|
4500
4466
|
const i = [];
|
|
4501
4467
|
for (const s of t.results)
|
|
4502
|
-
i.push(await
|
|
4468
|
+
i.push(await Ii({
|
|
4503
4469
|
item: s,
|
|
4504
4470
|
canTrack: r
|
|
4505
4471
|
}));
|
|
@@ -4509,10 +4475,10 @@ const fa = async (e) => {
|
|
|
4509
4475
|
}
|
|
4510
4476
|
return t.results;
|
|
4511
4477
|
};
|
|
4512
|
-
async function
|
|
4478
|
+
async function ua(e) {
|
|
4513
4479
|
try {
|
|
4514
|
-
const t =
|
|
4515
|
-
return
|
|
4480
|
+
const t = dn(e), n = await la(e);
|
|
4481
|
+
return sa(n) ? ca(e, n) : (Z.error("Error fetching data. ", {
|
|
4516
4482
|
url: t,
|
|
4517
4483
|
content: n,
|
|
4518
4484
|
options: e
|
|
@@ -4521,92 +4487,92 @@ async function pa(e) {
|
|
|
4521
4487
|
return Z.error("Error fetching data. ", t), null;
|
|
4522
4488
|
}
|
|
4523
4489
|
}
|
|
4524
|
-
function
|
|
4490
|
+
function es(e) {
|
|
4525
4491
|
const t = e || (G() ? window.location.search : void 0);
|
|
4526
|
-
return t ?
|
|
4492
|
+
return t ? ur(t).indexOf("builder.preview=") !== -1 : !1;
|
|
4527
4493
|
}
|
|
4528
|
-
function
|
|
4494
|
+
function fa() {
|
|
4529
4495
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
4530
4496
|
const t = Math.random() * 16 | 0;
|
|
4531
4497
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4532
4498
|
});
|
|
4533
4499
|
}
|
|
4534
4500
|
function Fr() {
|
|
4535
|
-
return
|
|
4501
|
+
return fa().replace(/-/g, "");
|
|
4536
4502
|
}
|
|
4537
|
-
const
|
|
4503
|
+
const Vr = "builderSessionId", da = async ({
|
|
4538
4504
|
canTrack: e
|
|
4539
4505
|
}) => {
|
|
4540
4506
|
if (!e)
|
|
4541
4507
|
return;
|
|
4542
4508
|
const t = await Ir({
|
|
4543
|
-
name:
|
|
4509
|
+
name: Vr,
|
|
4544
4510
|
canTrack: e
|
|
4545
4511
|
});
|
|
4546
4512
|
if (ie(t))
|
|
4547
4513
|
return t;
|
|
4548
4514
|
{
|
|
4549
|
-
const n =
|
|
4550
|
-
return
|
|
4515
|
+
const n = pa();
|
|
4516
|
+
return ha({
|
|
4551
4517
|
id: n,
|
|
4552
4518
|
canTrack: e
|
|
4553
4519
|
}), n;
|
|
4554
4520
|
}
|
|
4555
|
-
},
|
|
4521
|
+
}, pa = () => Fr(), ha = ({
|
|
4556
4522
|
id: e,
|
|
4557
4523
|
canTrack: t
|
|
4558
4524
|
}) => Tr({
|
|
4559
|
-
name:
|
|
4525
|
+
name: Vr,
|
|
4560
4526
|
value: e,
|
|
4561
4527
|
canTrack: t
|
|
4562
|
-
}),
|
|
4528
|
+
}), Dr = () => G() && typeof localStorage < "u" ? localStorage : void 0, ma = ({
|
|
4563
4529
|
key: e,
|
|
4564
4530
|
canTrack: t
|
|
4565
4531
|
}) => {
|
|
4566
4532
|
var n;
|
|
4567
4533
|
try {
|
|
4568
|
-
return t ? (n =
|
|
4534
|
+
return t ? (n = Dr()) == null ? void 0 : n.getItem(e) : void 0;
|
|
4569
4535
|
} catch (r) {
|
|
4570
4536
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4571
4537
|
return;
|
|
4572
4538
|
}
|
|
4573
|
-
},
|
|
4539
|
+
}, ga = ({
|
|
4574
4540
|
key: e,
|
|
4575
4541
|
canTrack: t,
|
|
4576
4542
|
value: n
|
|
4577
4543
|
}) => {
|
|
4578
4544
|
var r;
|
|
4579
4545
|
try {
|
|
4580
|
-
t && ((r =
|
|
4546
|
+
t && ((r = Dr()) == null || r.setItem(e, n));
|
|
4581
4547
|
} catch (o) {
|
|
4582
4548
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4583
4549
|
}
|
|
4584
|
-
},
|
|
4550
|
+
}, Lr = "builderVisitorId", ya = ({
|
|
4585
4551
|
canTrack: e
|
|
4586
4552
|
}) => {
|
|
4587
4553
|
if (!e)
|
|
4588
4554
|
return;
|
|
4589
|
-
const t =
|
|
4590
|
-
key:
|
|
4555
|
+
const t = ma({
|
|
4556
|
+
key: Lr,
|
|
4591
4557
|
canTrack: e
|
|
4592
4558
|
});
|
|
4593
4559
|
if (ie(t))
|
|
4594
4560
|
return t;
|
|
4595
4561
|
{
|
|
4596
|
-
const n =
|
|
4597
|
-
return
|
|
4562
|
+
const n = va();
|
|
4563
|
+
return ba({
|
|
4598
4564
|
id: n,
|
|
4599
4565
|
canTrack: e
|
|
4600
4566
|
}), n;
|
|
4601
4567
|
}
|
|
4602
|
-
},
|
|
4568
|
+
}, va = () => Fr(), ba = ({
|
|
4603
4569
|
id: e,
|
|
4604
4570
|
canTrack: t
|
|
4605
|
-
}) =>
|
|
4606
|
-
key:
|
|
4571
|
+
}) => ga({
|
|
4572
|
+
key: Lr,
|
|
4607
4573
|
value: e,
|
|
4608
4574
|
canTrack: t
|
|
4609
|
-
}),
|
|
4575
|
+
}), Sa = async ({
|
|
4610
4576
|
canTrack: e
|
|
4611
4577
|
}) => {
|
|
4612
4578
|
if (!e)
|
|
@@ -4614,16 +4580,16 @@ const Mr = "builderSessionId", ma = async ({
|
|
|
4614
4580
|
visitorId: void 0,
|
|
4615
4581
|
sessionId: void 0
|
|
4616
4582
|
};
|
|
4617
|
-
const t = await
|
|
4583
|
+
const t = await da({
|
|
4618
4584
|
canTrack: e
|
|
4619
|
-
}), n =
|
|
4585
|
+
}), n = ya({
|
|
4620
4586
|
canTrack: e
|
|
4621
4587
|
});
|
|
4622
4588
|
return {
|
|
4623
4589
|
sessionId: t,
|
|
4624
4590
|
visitorId: n
|
|
4625
4591
|
};
|
|
4626
|
-
},
|
|
4592
|
+
}, wa = async ({
|
|
4627
4593
|
type: e,
|
|
4628
4594
|
canTrack: t,
|
|
4629
4595
|
apiKey: n,
|
|
@@ -4637,23 +4603,23 @@ const Mr = "builderSessionId", ma = async ({
|
|
|
4637
4603
|
url: location.href,
|
|
4638
4604
|
...r
|
|
4639
4605
|
},
|
|
4640
|
-
...await
|
|
4606
|
+
...await Sa({
|
|
4641
4607
|
canTrack: t
|
|
4642
4608
|
}),
|
|
4643
|
-
userAttributes:
|
|
4609
|
+
userAttributes: dr(),
|
|
4644
4610
|
ownerId: n
|
|
4645
4611
|
}
|
|
4646
4612
|
});
|
|
4647
|
-
async function
|
|
4613
|
+
async function xa(e) {
|
|
4648
4614
|
if (!e.apiKey) {
|
|
4649
4615
|
Z.error("Missing API key for track call. Please provide your API key.");
|
|
4650
4616
|
return;
|
|
4651
4617
|
}
|
|
4652
|
-
if (e.canTrack && !
|
|
4618
|
+
if (e.canTrack && !fr() && (G() || me === "reactNative"))
|
|
4653
4619
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
4654
4620
|
method: "POST",
|
|
4655
4621
|
body: JSON.stringify({
|
|
4656
|
-
events: [await
|
|
4622
|
+
events: [await wa(e)]
|
|
4657
4623
|
}),
|
|
4658
4624
|
headers: {
|
|
4659
4625
|
"content-type": "application/json"
|
|
@@ -4663,14 +4629,14 @@ async function Ea(e) {
|
|
|
4663
4629
|
console.error("Failed to track: ", t);
|
|
4664
4630
|
});
|
|
4665
4631
|
}
|
|
4666
|
-
const
|
|
4632
|
+
const ts = (e) => xa({
|
|
4667
4633
|
...e,
|
|
4668
4634
|
canTrack: !0
|
|
4669
4635
|
});
|
|
4670
4636
|
function nr(e) {
|
|
4671
4637
|
return Math.round(e * 1e3) / 1e3;
|
|
4672
4638
|
}
|
|
4673
|
-
const
|
|
4639
|
+
const ka = (e, t, n = !0) => {
|
|
4674
4640
|
if (!(e instanceof HTMLElement))
|
|
4675
4641
|
return null;
|
|
4676
4642
|
let r = n ? e : e.parentElement;
|
|
@@ -4681,7 +4647,7 @@ const Ia = (e, t, n = !0) => {
|
|
|
4681
4647
|
return r;
|
|
4682
4648
|
} while (r = r.parentElement);
|
|
4683
4649
|
return null;
|
|
4684
|
-
},
|
|
4650
|
+
}, Ca = (e) => ka(e, (t) => {
|
|
4685
4651
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4686
4652
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4687
4653
|
}), rr = ({
|
|
@@ -4693,8 +4659,8 @@ const Ia = (e, t, n = !0) => {
|
|
|
4693
4659
|
x: i,
|
|
4694
4660
|
y: s
|
|
4695
4661
|
};
|
|
4696
|
-
},
|
|
4697
|
-
const t = e.target, n = t &&
|
|
4662
|
+
}, ns = (e) => {
|
|
4663
|
+
const t = e.target, n = t && Ca(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4698
4664
|
return {
|
|
4699
4665
|
targetBuilderElement: r || void 0,
|
|
4700
4666
|
metadata: {
|
|
@@ -4709,13 +4675,13 @@ const Ia = (e, t, n = !0) => {
|
|
|
4709
4675
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4710
4676
|
}
|
|
4711
4677
|
};
|
|
4712
|
-
},
|
|
4713
|
-
function
|
|
4678
|
+
}, Ea = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4679
|
+
function Wr(e, t) {
|
|
4714
4680
|
const n = new URL(t.origin), r = n.hostname;
|
|
4715
|
-
return (e ||
|
|
4681
|
+
return (e || Ea).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
4716
4682
|
}
|
|
4717
|
-
const
|
|
4718
|
-
function
|
|
4683
|
+
const Ia = "0.14.24", or = {};
|
|
4684
|
+
function Ta(e, t) {
|
|
4719
4685
|
let n = or[e];
|
|
4720
4686
|
if (n || (n = or[e] = []), n.push(t), G()) {
|
|
4721
4687
|
const r = {
|
|
@@ -4732,8 +4698,8 @@ function ja(e, t) {
|
|
|
4732
4698
|
}
|
|
4733
4699
|
}
|
|
4734
4700
|
}
|
|
4735
|
-
const
|
|
4736
|
-
|
|
4701
|
+
const rs = () => {
|
|
4702
|
+
Ta("insertMenu", {
|
|
4737
4703
|
name: "_default",
|
|
4738
4704
|
default: !0,
|
|
4739
4705
|
items: [{
|
|
@@ -4756,13 +4722,13 @@ const os = () => {
|
|
|
4756
4722
|
});
|
|
4757
4723
|
};
|
|
4758
4724
|
let ir = !1;
|
|
4759
|
-
const
|
|
4725
|
+
const Aa = (e = {}) => {
|
|
4760
4726
|
var t, n;
|
|
4761
4727
|
ir || (ir = !0, G() && ((t = window.parent) == null || t.postMessage({
|
|
4762
4728
|
type: "builder.sdkInfo",
|
|
4763
4729
|
data: {
|
|
4764
4730
|
target: me,
|
|
4765
|
-
version:
|
|
4731
|
+
version: Ia,
|
|
4766
4732
|
supportsPatchUpdates: !1,
|
|
4767
4733
|
// Supports builder-model="..." attribute which is needed to
|
|
4768
4734
|
// scope our '+ add block' button styling
|
|
@@ -4776,7 +4742,7 @@ const Ra = (e = {}) => {
|
|
|
4776
4742
|
}
|
|
4777
4743
|
}, "*"), window.addEventListener("message", (r) => {
|
|
4778
4744
|
var i, s;
|
|
4779
|
-
if (!
|
|
4745
|
+
if (!Wr(e.trustedHosts, r))
|
|
4780
4746
|
return;
|
|
4781
4747
|
const {
|
|
4782
4748
|
data: o
|
|
@@ -4817,12 +4783,12 @@ const Ra = (e = {}) => {
|
|
|
4817
4783
|
}
|
|
4818
4784
|
}
|
|
4819
4785
|
})));
|
|
4820
|
-
},
|
|
4786
|
+
}, Oa = ({
|
|
4821
4787
|
model: e,
|
|
4822
4788
|
trustedHosts: t,
|
|
4823
4789
|
callbacks: n
|
|
4824
4790
|
}) => (r) => {
|
|
4825
|
-
if (!
|
|
4791
|
+
if (!Wr(t, r))
|
|
4826
4792
|
return;
|
|
4827
4793
|
const {
|
|
4828
4794
|
data: o
|
|
@@ -4843,12 +4809,12 @@ const Ra = (e = {}) => {
|
|
|
4843
4809
|
break;
|
|
4844
4810
|
}
|
|
4845
4811
|
}
|
|
4846
|
-
},
|
|
4812
|
+
}, os = (e, t, n) => {
|
|
4847
4813
|
if (!G)
|
|
4848
4814
|
return Z.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
4849
4815
|
};
|
|
4850
|
-
|
|
4851
|
-
const r =
|
|
4816
|
+
Aa();
|
|
4817
|
+
const r = Oa({
|
|
4852
4818
|
callbacks: {
|
|
4853
4819
|
contentUpdate: t,
|
|
4854
4820
|
animation: () => {
|
|
@@ -4862,7 +4828,48 @@ const Ra = (e = {}) => {
|
|
|
4862
4828
|
return window.addEventListener("message", r), () => {
|
|
4863
4829
|
window.removeEventListener("message", r);
|
|
4864
4830
|
};
|
|
4865
|
-
}
|
|
4831
|
+
};
|
|
4832
|
+
function ar(e, ...t) {
|
|
4833
|
+
const n = Object(e);
|
|
4834
|
+
for (let r = 1; r < arguments.length; r++) {
|
|
4835
|
+
const o = arguments[r];
|
|
4836
|
+
if (o != null)
|
|
4837
|
+
for (const i in o)
|
|
4838
|
+
Object.prototype.hasOwnProperty.call(o, i) && (n[i] = o[i]);
|
|
4839
|
+
}
|
|
4840
|
+
return n;
|
|
4841
|
+
}
|
|
4842
|
+
function ja(e) {
|
|
4843
|
+
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
4844
|
+
}
|
|
4845
|
+
function Ra(e, t) {
|
|
4846
|
+
const n = Pa(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
4847
|
+
for (const u of s)
|
|
4848
|
+
for (const p of n)
|
|
4849
|
+
p in u || (u[p] = r[p]);
|
|
4850
|
+
}
|
|
4851
|
+
function Pa(e) {
|
|
4852
|
+
const t = [];
|
|
4853
|
+
for (const n of e.steps)
|
|
4854
|
+
for (const r in n.styles)
|
|
4855
|
+
t.indexOf(r) === -1 && t.push(r);
|
|
4856
|
+
return t;
|
|
4857
|
+
}
|
|
4858
|
+
function is(e) {
|
|
4859
|
+
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
4860
|
+
if (!t.length) {
|
|
4861
|
+
ja(e.elementId || e.id || "");
|
|
4862
|
+
return;
|
|
4863
|
+
}
|
|
4864
|
+
Array.from(t).forEach((n) => {
|
|
4865
|
+
Ra(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ar(n.style, e.steps[0].styles), setTimeout(() => {
|
|
4866
|
+
n.style.transition = `all ${e.duration}s ${cn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ar(n.style, e.steps[1].styles), setTimeout(() => {
|
|
4867
|
+
n.style.transition = "", n.style.transitionDelay = "";
|
|
4868
|
+
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
4869
|
+
});
|
|
4870
|
+
});
|
|
4871
|
+
}
|
|
4872
|
+
const Na = (e) => {
|
|
4866
4873
|
var i;
|
|
4867
4874
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
4868
4875
|
let o = "";
|
|
@@ -4896,7 +4903,7 @@ font-weight: ${s};
|
|
|
4896
4903
|
}, Ua = ({
|
|
4897
4904
|
cssCode: e,
|
|
4898
4905
|
contentId: t
|
|
4899
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4906
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ma = `
|
|
4900
4907
|
.builder-button {
|
|
4901
4908
|
all: unset;
|
|
4902
4909
|
}
|
|
@@ -4913,7 +4920,7 @@ font-weight: ${s};
|
|
|
4913
4920
|
text-align: inherit;
|
|
4914
4921
|
font-family: inherit;
|
|
4915
4922
|
}
|
|
4916
|
-
`,
|
|
4923
|
+
`, Fa = (e) => e ? "" : Ma, as = (e) => `variant-${e}`;
|
|
4917
4924
|
function Va(e) {
|
|
4918
4925
|
const t = `
|
|
4919
4926
|
${Ua({
|
|
@@ -4923,9 +4930,9 @@ ${Ua({
|
|
|
4923
4930
|
${Ba({
|
|
4924
4931
|
customFonts: e.customFonts
|
|
4925
4932
|
})}
|
|
4926
|
-
${
|
|
4933
|
+
${Fa(e.isNestedRender)}
|
|
4927
4934
|
`.trim();
|
|
4928
|
-
return /* @__PURE__ */ I(
|
|
4935
|
+
return /* @__PURE__ */ I(gt, { id: "builderio-content", styles: t });
|
|
4929
4936
|
}
|
|
4930
4937
|
const Da = ({
|
|
4931
4938
|
content: e,
|
|
@@ -4955,9 +4962,9 @@ const Da = ({
|
|
|
4955
4962
|
},
|
|
4956
4963
|
meta: e == null ? void 0 : e.meta
|
|
4957
4964
|
} : void 0;
|
|
4958
|
-
function
|
|
4965
|
+
function sr(e) {
|
|
4959
4966
|
var o, i, s, u, p, b, x, m, O;
|
|
4960
|
-
const t =
|
|
4967
|
+
const t = qi({
|
|
4961
4968
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4962
4969
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
4963
4970
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4970,7 +4977,7 @@ function ar(e) {
|
|
|
4970
4977
|
...N,
|
|
4971
4978
|
[R.name]: {
|
|
4972
4979
|
component: j,
|
|
4973
|
-
...
|
|
4980
|
+
...Kt(R)
|
|
4974
4981
|
}
|
|
4975
4982
|
}),
|
|
4976
4983
|
{}
|
|
@@ -4995,7 +5002,7 @@ function ar(e) {
|
|
|
4995
5002
|
].reduce(
|
|
4996
5003
|
(N, { component: j, ...R }) => ({
|
|
4997
5004
|
...N,
|
|
4998
|
-
[R.name]:
|
|
5005
|
+
[R.name]: Kt(R)
|
|
4999
5006
|
}),
|
|
5000
5007
|
{}
|
|
5001
5008
|
),
|
|
@@ -5004,7 +5011,7 @@ function ar(e) {
|
|
|
5004
5011
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
5005
5012
|
};
|
|
5006
5013
|
return /* @__PURE__ */ xe(
|
|
5007
|
-
|
|
5014
|
+
vo,
|
|
5008
5015
|
{
|
|
5009
5016
|
content: e.content,
|
|
5010
5017
|
data: e.data,
|
|
@@ -5022,7 +5029,7 @@ function ar(e) {
|
|
|
5022
5029
|
trustedHosts: e.trustedHosts,
|
|
5023
5030
|
children: [
|
|
5024
5031
|
e.isSsrAbTest ? /* @__PURE__ */ I(
|
|
5025
|
-
|
|
5032
|
+
Gt,
|
|
5026
5033
|
{
|
|
5027
5034
|
id: "builderio-variant-visibility",
|
|
5028
5035
|
scriptStr: t
|
|
@@ -5038,7 +5045,7 @@ function ar(e) {
|
|
|
5038
5045
|
}
|
|
5039
5046
|
),
|
|
5040
5047
|
/* @__PURE__ */ I(
|
|
5041
|
-
|
|
5048
|
+
un,
|
|
5042
5049
|
{
|
|
5043
5050
|
blocks: (O = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : O.blocks,
|
|
5044
5051
|
context: r,
|
|
@@ -5050,14 +5057,14 @@ function ar(e) {
|
|
|
5050
5057
|
}
|
|
5051
5058
|
);
|
|
5052
5059
|
}
|
|
5053
|
-
function
|
|
5060
|
+
function Wa(e) {
|
|
5054
5061
|
var i;
|
|
5055
|
-
const t =
|
|
5056
|
-
canTrack:
|
|
5062
|
+
const t = Xi({
|
|
5063
|
+
canTrack: Ht(e.canTrack),
|
|
5057
5064
|
content: e.content
|
|
5058
5065
|
}), n = function() {
|
|
5059
5066
|
var u;
|
|
5060
|
-
return
|
|
5067
|
+
return zi(
|
|
5061
5068
|
ft(e.content).map((p) => ({
|
|
5062
5069
|
id: p.testVariationId,
|
|
5063
5070
|
testRatio: p.testRatio
|
|
@@ -5071,36 +5078,36 @@ function _a(e) {
|
|
|
5071
5078
|
return t ? {
|
|
5072
5079
|
...e.content,
|
|
5073
5080
|
testVariationId: (u = e.content) == null ? void 0 : u.id
|
|
5074
|
-
} :
|
|
5081
|
+
} : Ei({
|
|
5075
5082
|
item: e.content,
|
|
5076
|
-
canTrack:
|
|
5083
|
+
canTrack: Ht(e.canTrack)
|
|
5077
5084
|
});
|
|
5078
5085
|
};
|
|
5079
5086
|
return /* @__PURE__ */ xe(ee, { children: [
|
|
5080
5087
|
!e.isNestedRender && me !== "reactNative" ? /* @__PURE__ */ I(
|
|
5081
|
-
|
|
5088
|
+
Gt,
|
|
5082
5089
|
{
|
|
5083
5090
|
id: "builderio-init-variants-fns",
|
|
5084
|
-
scriptStr:
|
|
5091
|
+
scriptStr: Ji()
|
|
5085
5092
|
}
|
|
5086
5093
|
) : null,
|
|
5087
5094
|
t ? /* @__PURE__ */ xe(ee, { children: [
|
|
5088
5095
|
/* @__PURE__ */ I(
|
|
5089
|
-
|
|
5096
|
+
gt,
|
|
5090
5097
|
{
|
|
5091
5098
|
id: "builderio-variants",
|
|
5092
5099
|
styles: r()
|
|
5093
5100
|
}
|
|
5094
5101
|
),
|
|
5095
5102
|
/* @__PURE__ */ I(
|
|
5096
|
-
|
|
5103
|
+
Gt,
|
|
5097
5104
|
{
|
|
5098
5105
|
id: "builderio-variants-visibility",
|
|
5099
5106
|
scriptStr: n()
|
|
5100
5107
|
}
|
|
5101
5108
|
),
|
|
5102
5109
|
(i = ft(e.content)) == null ? void 0 : i.map((s) => /* @__PURE__ */ I(
|
|
5103
|
-
|
|
5110
|
+
sr,
|
|
5104
5111
|
{
|
|
5105
5112
|
isNestedRender: e.isNestedRender,
|
|
5106
5113
|
content: s,
|
|
@@ -5126,7 +5133,7 @@ function _a(e) {
|
|
|
5126
5133
|
))
|
|
5127
5134
|
] }) : null,
|
|
5128
5135
|
/* @__PURE__ */ I(
|
|
5129
|
-
|
|
5136
|
+
sr,
|
|
5130
5137
|
{
|
|
5131
5138
|
isNestedRender: e.isNestedRender,
|
|
5132
5139
|
content: o(),
|
|
@@ -5151,13 +5158,13 @@ function _a(e) {
|
|
|
5151
5158
|
)
|
|
5152
5159
|
] });
|
|
5153
5160
|
}
|
|
5154
|
-
const
|
|
5161
|
+
const _a = async ({
|
|
5155
5162
|
builderContextValue: e,
|
|
5156
5163
|
symbol: t
|
|
5157
5164
|
}) => {
|
|
5158
5165
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5159
5166
|
(e != null && e.apiKey))
|
|
5160
|
-
return
|
|
5167
|
+
return Mr({
|
|
5161
5168
|
model: t.model,
|
|
5162
5169
|
apiKey: e.apiKey,
|
|
5163
5170
|
apiVersion: e.apiVersion,
|
|
@@ -5184,12 +5191,12 @@ async function $a(e) {
|
|
|
5184
5191
|
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
5185
5192
|
(O = e.symbol) != null && O.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5186
5193
|
].filter(Boolean).join(" ");
|
|
5187
|
-
}, o = ((i = e.symbol) == null ? void 0 : i.content) || await
|
|
5194
|
+
}, o = ((i = e.symbol) == null ? void 0 : i.content) || await _a({
|
|
5188
5195
|
symbol: e.symbol,
|
|
5189
5196
|
builderContextValue: e.builderContext
|
|
5190
5197
|
});
|
|
5191
5198
|
return /* @__PURE__ */ I("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ I(
|
|
5192
|
-
|
|
5199
|
+
Wa,
|
|
5193
5200
|
{
|
|
5194
5201
|
isNestedRender: !0,
|
|
5195
5202
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5212,13 +5219,13 @@ async function $a(e) {
|
|
|
5212
5219
|
}
|
|
5213
5220
|
) });
|
|
5214
5221
|
}
|
|
5215
|
-
const
|
|
5222
|
+
const lr = {};
|
|
5216
5223
|
function ss(e) {
|
|
5217
5224
|
if (G()) {
|
|
5218
|
-
Object.assign(
|
|
5225
|
+
Object.assign(lr, e);
|
|
5219
5226
|
const t = {
|
|
5220
5227
|
type: "builder.settingsChange",
|
|
5221
|
-
data:
|
|
5228
|
+
data: lr
|
|
5222
5229
|
};
|
|
5223
5230
|
parent.postMessage(t, "*");
|
|
5224
5231
|
}
|
|
@@ -5235,50 +5242,50 @@ const ls = async (e) => {
|
|
|
5235
5242
|
urlPath: t
|
|
5236
5243
|
} : {}
|
|
5237
5244
|
},
|
|
5238
|
-
options:
|
|
5245
|
+
options: Ur(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
5239
5246
|
};
|
|
5240
5247
|
return {
|
|
5241
5248
|
apiKey: n.apiKey,
|
|
5242
5249
|
model: n.model,
|
|
5243
|
-
content: await
|
|
5250
|
+
content: await Mr(n)
|
|
5244
5251
|
};
|
|
5245
5252
|
};
|
|
5246
5253
|
export {
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5254
|
+
Ur as A,
|
|
5255
|
+
un as B,
|
|
5256
|
+
pi as C,
|
|
5257
|
+
ts as D,
|
|
5258
|
+
os as E,
|
|
5252
5259
|
ls as F,
|
|
5253
|
-
|
|
5254
|
-
|
|
5260
|
+
ca as G,
|
|
5261
|
+
ua as H,
|
|
5255
5262
|
$a as S,
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
+
Mi as T,
|
|
5264
|
+
xa as _,
|
|
5265
|
+
ci as a,
|
|
5266
|
+
za as b,
|
|
5267
|
+
fr as c,
|
|
5268
|
+
qa as d,
|
|
5269
|
+
Za as e,
|
|
5263
5270
|
G as f,
|
|
5264
5271
|
Yt as g,
|
|
5265
|
-
|
|
5272
|
+
Ht as h,
|
|
5266
5273
|
Ja as i,
|
|
5267
|
-
|
|
5274
|
+
es as j,
|
|
5268
5275
|
as as k,
|
|
5269
5276
|
Z as l,
|
|
5270
|
-
|
|
5277
|
+
Oa as m,
|
|
5271
5278
|
ln as n,
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5279
|
+
ns as o,
|
|
5280
|
+
ra as p,
|
|
5281
|
+
mt as q,
|
|
5282
|
+
rs as r,
|
|
5283
|
+
Aa as s,
|
|
5284
|
+
is as t,
|
|
5285
|
+
Qa as u,
|
|
5286
|
+
Mr as v,
|
|
5287
|
+
Qi as w,
|
|
5288
|
+
Wa as x,
|
|
5289
|
+
Ta as y,
|
|
5283
5290
|
ss as z
|
|
5284
5291
|
};
|