@builder.io/sdk-react-nextjs 0.16.6 → 0.16.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +30 -30
- package/lib/browser/blocks-exports.mjs +653 -620
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +2 -2
- package/lib/browser/init.cjs +2 -2
- package/lib/browser/init.mjs +20 -20
- package/lib/browser/server-entry-ed0910dd.cjs +2 -0
- package/lib/{node/server-entry-226d18cc.js → browser/server-entry-ff1eb217.js} +357 -355
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-exports.cjs +43 -43
- package/lib/edge/blocks-exports.mjs +1069 -1036
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +2 -2
- package/lib/edge/init.cjs +2 -2
- package/lib/edge/init.mjs +20 -20
- package/lib/edge/server-entry-ed0910dd.cjs +2 -0
- package/lib/{browser/server-entry-226d18cc.js → edge/server-entry-ff1eb217.js} +357 -355
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +29 -29
- package/lib/node/blocks-exports.mjs +684 -651
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-f354effa.cjs → node-runtime-3b9a05b3.cjs} +4 -4
- package/lib/node/{node-runtime-f79fed3b.js → node-runtime-606c2607.js} +3 -3
- package/lib/node/server-entry-ed0910dd.cjs +2 -0
- package/lib/{edge/server-entry-226d18cc.js → node/server-entry-ff1eb217.js} +357 -355
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +3 -3
- package/types/cjs/blocks/slot/slot.d.ts +2 -2
- package/types/cjs/components/block/block.helpers.d.ts +1 -2
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/evaluate/node-runtime/init.d.ts +1 -0
- package/types/cjs/functions/get-processed-block.d.ts +1 -0
- package/types/esm/blocks/slot/slot.d.ts +2 -2
- package/types/esm/components/block/block.helpers.d.ts +1 -2
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/evaluate/node-runtime/init.d.ts +1 -0
- package/types/esm/functions/get-processed-block.d.ts +1 -0
- package/lib/browser/server-entry-0418e1e6.cjs +0 -2
- package/lib/edge/server-entry-0418e1e6.cjs +0 -2
- package/lib/node/server-entry-0418e1e6.cjs +0 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var Kt = (e, t, n) => (
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { TARGET as
|
|
7
|
-
import { useEffect as te, useRef as Zt, useState as ye, createContext as Zr } from "react";
|
|
8
|
-
import { useRouter as Qr } from "next/navigation";
|
|
2
|
+
var $r = Object.defineProperty;
|
|
3
|
+
var Hr = (e, t, n) => t in e ? $r(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var Kt = (e, t, n) => (Hr(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as m, Fragment as K, jsxs as se } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as je, isEditing as Ce, isBrowser as We, getUserAttributes as Kr, logger as ot, checkIsDefined as yt, isPreviewing as cr, init as Gr, getDefaultCanTrack as vt, _track as Gn, createEditorListener as zr, fetch as Yr, registerInsertMenu as Xr, setupBrowserForEditing as Jr, createRegisterComponentMessage as qr, fetchOneEntry as ur, serializeIncludingFunctions as zn, handleABTestingSync as Zr } from "./server-entry-ff1eb217.js";
|
|
9
7
|
import "lru-cache";
|
|
10
|
-
|
|
8
|
+
import { useRef as bt, useEffect as Q, useState as ye, createContext as Qr } from "react";
|
|
9
|
+
import { useRouter as ei } from "next/navigation";
|
|
10
|
+
const ti = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ni = (e) => typeof e == "string" && ti.has(e.toLowerCase());
|
|
11
11
|
function Qt(e) {
|
|
12
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ m(K, { children: ni(e.TagName) ? /* @__PURE__ */ m(K, { children: /* @__PURE__ */ m(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ m(K, { children: typeof e.TagName == "string" ? /* @__PURE__ */ m(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ m(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
13
13
|
}
|
|
14
14
|
const nt = () => {
|
|
15
|
-
switch (
|
|
15
|
+
switch (je) {
|
|
16
16
|
case "react":
|
|
17
17
|
case "reactNative":
|
|
18
18
|
case "rsc":
|
|
@@ -25,7 +25,7 @@ const nt = () => {
|
|
|
25
25
|
return "class";
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
function
|
|
28
|
+
function ri(e) {
|
|
29
29
|
function t() {
|
|
30
30
|
return {
|
|
31
31
|
...e.attributes,
|
|
@@ -39,7 +39,7 @@ function ni(e) {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ m(
|
|
43
43
|
Qt,
|
|
44
44
|
{
|
|
45
45
|
attributes: t(),
|
|
@@ -49,14 +49,20 @@ function ni(e) {
|
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function ii(e) {
|
|
53
53
|
var t;
|
|
54
54
|
return {
|
|
55
55
|
...(t = e.component) == null ? void 0 : t.options,
|
|
56
56
|
...e.options
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
function oi(e, ...t) {
|
|
60
|
+
const n = Object.assign({}, e);
|
|
61
|
+
for (const r of t)
|
|
62
|
+
delete n[r];
|
|
63
|
+
return n;
|
|
64
|
+
}
|
|
65
|
+
const dr = ({
|
|
60
66
|
builder: e,
|
|
61
67
|
context: t,
|
|
62
68
|
event: n,
|
|
@@ -68,14 +74,14 @@ const cr = ({
|
|
|
68
74
|
builder: e,
|
|
69
75
|
context: t,
|
|
70
76
|
event: n
|
|
71
|
-
}),
|
|
77
|
+
}), ai = () => ({
|
|
72
78
|
isEditing: Ce(),
|
|
73
|
-
isBrowser:
|
|
74
|
-
isServer: !
|
|
75
|
-
getUserAttributes: () =>
|
|
76
|
-
}),
|
|
79
|
+
isBrowser: We(),
|
|
80
|
+
isServer: !We(),
|
|
81
|
+
getUserAttributes: () => Kr()
|
|
82
|
+
}), si = (e, {
|
|
77
83
|
isExpression: t = !0
|
|
78
|
-
}) => /* 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,
|
|
84
|
+
}) => /* 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, li = ({
|
|
79
85
|
code: e,
|
|
80
86
|
builder: t,
|
|
81
87
|
context: n,
|
|
@@ -84,19 +90,19 @@ const cr = ({
|
|
|
84
90
|
rootSetState: a,
|
|
85
91
|
rootState: s
|
|
86
92
|
}) => {
|
|
87
|
-
const
|
|
93
|
+
const u = dr({
|
|
88
94
|
builder: t,
|
|
89
95
|
context: n,
|
|
90
96
|
event: r,
|
|
91
|
-
state:
|
|
97
|
+
state: fr({
|
|
92
98
|
rootState: s,
|
|
93
99
|
localState: i,
|
|
94
100
|
rootSetState: a
|
|
95
101
|
})
|
|
96
102
|
});
|
|
97
|
-
return new Function(...
|
|
103
|
+
return new Function(...u.map(([f]) => f), e)(...u.map(([, f]) => f));
|
|
98
104
|
};
|
|
99
|
-
function
|
|
105
|
+
function fr({
|
|
100
106
|
rootState: e,
|
|
101
107
|
localState: t,
|
|
102
108
|
rootSetState: n
|
|
@@ -106,7 +112,7 @@ function ur({
|
|
|
106
112
|
if (t && i in t)
|
|
107
113
|
return t[i];
|
|
108
114
|
const a = r[i];
|
|
109
|
-
return typeof a == "object" && a !== null ?
|
|
115
|
+
return typeof a == "object" && a !== null ? fr({
|
|
110
116
|
rootState: a,
|
|
111
117
|
localState: void 0,
|
|
112
118
|
rootSetState: n ? (s) => {
|
|
@@ -121,37 +127,37 @@ function ur({
|
|
|
121
127
|
}
|
|
122
128
|
});
|
|
123
129
|
}
|
|
124
|
-
const
|
|
130
|
+
const hr = (e, t, n) => {
|
|
125
131
|
if (Object(e) !== e)
|
|
126
132
|
return e;
|
|
127
133
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
128
134
|
return r.slice(0, -1).reduce((i, a, s) => Object(i[a]) === i[a] ? i[a] : i[a] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
129
135
|
};
|
|
130
|
-
var
|
|
136
|
+
var U, ci = function(e) {
|
|
131
137
|
function t(o) {
|
|
132
|
-
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
138
|
+
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Vr.test(String.fromCharCode(o));
|
|
133
139
|
}
|
|
134
140
|
function n(o) {
|
|
135
141
|
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Kn.test(String.fromCharCode(o));
|
|
136
142
|
}
|
|
137
143
|
function r(o, l) {
|
|
138
|
-
for (var
|
|
139
|
-
pt.lastIndex =
|
|
140
|
-
var Y = pt.exec(
|
|
144
|
+
for (var c = S, h = 1, R = 0; ; ) {
|
|
145
|
+
pt.lastIndex = R;
|
|
146
|
+
var Y = pt.exec(c);
|
|
141
147
|
if (Y && Y.index < o)
|
|
142
|
-
++h,
|
|
148
|
+
++h, R = Y.index + Y[0].length;
|
|
143
149
|
else
|
|
144
150
|
break;
|
|
145
151
|
}
|
|
146
|
-
throw
|
|
152
|
+
throw c = {
|
|
147
153
|
line: h,
|
|
148
|
-
ab: o -
|
|
149
|
-
}, l += " (" +
|
|
154
|
+
ab: o - R
|
|
155
|
+
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = o, l.X = c, l.o = d, l;
|
|
150
156
|
}
|
|
151
157
|
function i(o) {
|
|
152
158
|
o = o.split(" ");
|
|
153
|
-
for (var l = /* @__PURE__ */ Object.create(null),
|
|
154
|
-
l[o[
|
|
159
|
+
for (var l = /* @__PURE__ */ Object.create(null), c = 0; c < o.length; c++)
|
|
160
|
+
l[o[c]] = !0;
|
|
155
161
|
return function(h) {
|
|
156
162
|
return l[h] || !1;
|
|
157
163
|
};
|
|
@@ -160,39 +166,39 @@ var F, si = function(e) {
|
|
|
160
166
|
this.line = Te, this.ab = d - fe;
|
|
161
167
|
}
|
|
162
168
|
function s(o, l) {
|
|
163
|
-
|
|
169
|
+
Oe = d, O.C && (Ot = new a()), j = o, f(), ae = l, He = o.m;
|
|
164
170
|
}
|
|
165
|
-
function
|
|
166
|
-
for (var o = d, l =
|
|
167
|
-
++d,
|
|
168
|
-
|
|
171
|
+
function u() {
|
|
172
|
+
for (var o = d, l = O.va && O.C && new a(), c = S.charCodeAt(d += 2); d < Re && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
173
|
+
++d, c = S.charCodeAt(d);
|
|
174
|
+
O.va && O.va(!1, S.slice(o + 2, d), o, d, l, O.C && new a());
|
|
169
175
|
}
|
|
170
176
|
function f() {
|
|
171
|
-
for (; d <
|
|
177
|
+
for (; d < Re; ) {
|
|
172
178
|
var o = S.charCodeAt(d);
|
|
173
179
|
if (o === 32)
|
|
174
180
|
++d;
|
|
175
181
|
else if (o === 13)
|
|
176
|
-
++d, o = S.charCodeAt(d), o === 10 && ++d,
|
|
182
|
+
++d, o = S.charCodeAt(d), o === 10 && ++d, O.C && (++Te, fe = d);
|
|
177
183
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
178
|
-
++d,
|
|
184
|
+
++d, O.C && (++Te, fe = d);
|
|
179
185
|
else if (8 < o && 14 > o)
|
|
180
186
|
++d;
|
|
181
187
|
else if (o === 47)
|
|
182
188
|
if (o = S.charCodeAt(d + 1), o === 42) {
|
|
183
189
|
o = void 0;
|
|
184
|
-
var l =
|
|
185
|
-
if (h === -1 && r(d - 2, "Unterminated comment"), d = h + 2,
|
|
186
|
-
for (pt.lastIndex =
|
|
190
|
+
var l = O.va && O.C && new a(), c = d, h = S.indexOf("*/", d += 2);
|
|
191
|
+
if (h === -1 && r(d - 2, "Unterminated comment"), d = h + 2, O.C)
|
|
192
|
+
for (pt.lastIndex = c; (o = pt.exec(S)) && o.index < d; )
|
|
187
193
|
++Te, fe = o.index + o[0].length;
|
|
188
|
-
|
|
194
|
+
O.va && O.va(!0, S.slice(c + 2, h), c, d, l, O.C && new a());
|
|
189
195
|
} else if (o === 47)
|
|
190
|
-
|
|
196
|
+
u();
|
|
191
197
|
else
|
|
192
198
|
break;
|
|
193
199
|
else if (o === 160)
|
|
194
200
|
++d;
|
|
195
|
-
else if (5760 <= o &&
|
|
201
|
+
else if (5760 <= o && Lr.test(String.fromCharCode(o)))
|
|
196
202
|
++d;
|
|
197
203
|
else
|
|
198
204
|
break;
|
|
@@ -201,7 +207,7 @@ var F, si = function(e) {
|
|
|
201
207
|
function g(o) {
|
|
202
208
|
switch (o) {
|
|
203
209
|
case 46:
|
|
204
|
-
o = S.charCodeAt(d + 1), 48 <= o && 57 >= o ?
|
|
210
|
+
o = S.charCodeAt(d + 1), 48 <= o && 57 >= o ? W(!0) : (++d, s(Fn));
|
|
205
211
|
return;
|
|
206
212
|
case 40:
|
|
207
213
|
return ++d, s(he);
|
|
@@ -218,14 +224,14 @@ var F, si = function(e) {
|
|
|
218
224
|
case 123:
|
|
219
225
|
return ++d, s(ze);
|
|
220
226
|
case 125:
|
|
221
|
-
return ++d, s(
|
|
227
|
+
return ++d, s(Ne);
|
|
222
228
|
case 58:
|
|
223
229
|
return ++d, s(Ye);
|
|
224
230
|
case 63:
|
|
225
231
|
return ++d, s(Wn);
|
|
226
232
|
case 48:
|
|
227
233
|
if (o = S.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
228
|
-
d += 2, o =
|
|
234
|
+
d += 2, o = N(16), o === null && r(z + 2, "Expected hexadecimal number"), n(S.charCodeAt(d)) && r(d, "Identifier directly after number"), s(Ge, o);
|
|
229
235
|
return;
|
|
230
236
|
}
|
|
231
237
|
case 49:
|
|
@@ -237,26 +243,26 @@ var F, si = function(e) {
|
|
|
237
243
|
case 55:
|
|
238
244
|
case 56:
|
|
239
245
|
case 57:
|
|
240
|
-
return
|
|
246
|
+
return W(!1);
|
|
241
247
|
case 34:
|
|
242
248
|
case 39:
|
|
243
249
|
d++;
|
|
244
250
|
for (var l = ""; ; ) {
|
|
245
|
-
d >=
|
|
246
|
-
var
|
|
247
|
-
if (
|
|
251
|
+
d >= Re && r(z, "Unterminated string constant");
|
|
252
|
+
var c = S.charCodeAt(d);
|
|
253
|
+
if (c === o) {
|
|
248
254
|
++d, s(ut, l);
|
|
249
255
|
break;
|
|
250
256
|
}
|
|
251
|
-
if (
|
|
252
|
-
|
|
257
|
+
if (c === 92) {
|
|
258
|
+
c = S.charCodeAt(++d);
|
|
253
259
|
var h = /^[0-7]+/.exec(S.slice(d, d + 3));
|
|
254
260
|
for (h && (h = h[0]); h && 255 < parseInt(h, 8); )
|
|
255
261
|
h = h.slice(0, -1);
|
|
256
262
|
if (h === "0" && (h = null), ++d, h)
|
|
257
263
|
ie && r(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(h, 8)), d += h.length - 1;
|
|
258
264
|
else
|
|
259
|
-
switch (
|
|
265
|
+
switch (c) {
|
|
260
266
|
case 110:
|
|
261
267
|
l += `
|
|
262
268
|
`;
|
|
@@ -265,13 +271,13 @@ var F, si = function(e) {
|
|
|
265
271
|
l += "\r";
|
|
266
272
|
break;
|
|
267
273
|
case 120:
|
|
268
|
-
l += String.fromCharCode(
|
|
274
|
+
l += String.fromCharCode(E(2));
|
|
269
275
|
break;
|
|
270
276
|
case 117:
|
|
271
|
-
l += String.fromCharCode(
|
|
277
|
+
l += String.fromCharCode(E(4));
|
|
272
278
|
break;
|
|
273
279
|
case 85:
|
|
274
|
-
l += String.fromCharCode(
|
|
280
|
+
l += String.fromCharCode(E(8));
|
|
275
281
|
break;
|
|
276
282
|
case 116:
|
|
277
283
|
l += " ";
|
|
@@ -291,68 +297,68 @@ var F, si = function(e) {
|
|
|
291
297
|
case 13:
|
|
292
298
|
S.charCodeAt(d) === 10 && ++d;
|
|
293
299
|
case 10:
|
|
294
|
-
|
|
300
|
+
O.C && (fe = d, ++Te);
|
|
295
301
|
break;
|
|
296
302
|
default:
|
|
297
|
-
l += String.fromCharCode(
|
|
303
|
+
l += String.fromCharCode(c);
|
|
298
304
|
}
|
|
299
305
|
} else
|
|
300
|
-
|
|
306
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(z, "Unterminated string constant"), l += String.fromCharCode(c), ++d;
|
|
301
307
|
}
|
|
302
308
|
return;
|
|
303
309
|
case 47:
|
|
304
|
-
o = S.charCodeAt(d + 1), He ? (++d,
|
|
310
|
+
o = S.charCodeAt(d + 1), He ? (++d, F()) : o === 61 ? v(Ae, 2) : v(Un, 1);
|
|
305
311
|
return;
|
|
306
312
|
case 37:
|
|
307
313
|
case 42:
|
|
308
|
-
S.charCodeAt(d + 1) === 61 ?
|
|
314
|
+
S.charCodeAt(d + 1) === 61 ? v(Ae, 2) : v(Fr, 1);
|
|
309
315
|
return;
|
|
310
316
|
case 124:
|
|
311
317
|
case 38:
|
|
312
|
-
l = S.charCodeAt(d + 1), l === o ?
|
|
318
|
+
l = S.charCodeAt(d + 1), l === o ? v(o === 124 ? _n : $n, 2) : l === 61 ? v(Ae, 2) : v(o === 124 ? Rr : Pr, 1);
|
|
313
319
|
return;
|
|
314
320
|
case 94:
|
|
315
|
-
S.charCodeAt(d + 1) === 61 ?
|
|
321
|
+
S.charCodeAt(d + 1) === 61 ? v(Ae, 2) : v(Or, 1);
|
|
316
322
|
return;
|
|
317
323
|
case 43:
|
|
318
324
|
case 45:
|
|
319
|
-
l = S.charCodeAt(d + 1), l === o ? l === 45 && S.charCodeAt(d + 2) === 62 && ht.test(S.slice(Se, d)) ? (d += 3,
|
|
325
|
+
l = S.charCodeAt(d + 1), l === o ? l === 45 && S.charCodeAt(d + 2) === 62 && ht.test(S.slice(Se, d)) ? (d += 3, u(), f(), b()) : v(jr, 2) : l === 61 ? v(Ae, 2) : v(Dr, 1);
|
|
320
326
|
return;
|
|
321
327
|
case 60:
|
|
322
328
|
case 62:
|
|
323
|
-
l = S.charCodeAt(d + 1),
|
|
329
|
+
l = S.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && S.charCodeAt(d + 2) === 62 ? 3 : 2, S.charCodeAt(d + c) === 61 ? v(Ae, c + 1) : v(Mr, c)) : l === 33 && o === 60 && S.charCodeAt(d + 2) === 45 && S.charCodeAt(d + 3) === 45 ? (d += 4, u(), f(), b()) : (l === 61 && (c = S.charCodeAt(d + 2) === 61 ? 3 : 2), v(Br, c));
|
|
324
330
|
return;
|
|
325
331
|
case 61:
|
|
326
332
|
case 33:
|
|
327
|
-
S.charCodeAt(d + 1) === 61 ?
|
|
333
|
+
S.charCodeAt(d + 1) === 61 ? v(Nr, S.charCodeAt(d + 2) === 61 ? 3 : 2) : v(o === 61 ? Ln : Vn, 1);
|
|
328
334
|
return;
|
|
329
335
|
case 126:
|
|
330
|
-
return
|
|
336
|
+
return v(Vn, 1);
|
|
331
337
|
}
|
|
332
338
|
return !1;
|
|
333
339
|
}
|
|
334
340
|
function b(o) {
|
|
335
|
-
if (o ? d = z + 1 : z = d,
|
|
336
|
-
return
|
|
337
|
-
if (d >=
|
|
341
|
+
if (o ? d = z + 1 : z = d, O.C && (Rt = new a()), o)
|
|
342
|
+
return F();
|
|
343
|
+
if (d >= Re)
|
|
338
344
|
return s(Bt);
|
|
339
345
|
if (o = S.charCodeAt(d), n(o) || o === 92)
|
|
340
|
-
return
|
|
346
|
+
return I();
|
|
341
347
|
if (g(o) === !1) {
|
|
342
348
|
if (o = String.fromCharCode(o), o === "\\" || Kn.test(o))
|
|
343
|
-
return
|
|
349
|
+
return I();
|
|
344
350
|
r(d, "Unexpected character '" + o + "'");
|
|
345
351
|
}
|
|
346
352
|
}
|
|
347
|
-
function
|
|
348
|
-
var
|
|
349
|
-
d += l, s(o,
|
|
353
|
+
function v(o, l) {
|
|
354
|
+
var c = S.slice(d, d + l);
|
|
355
|
+
d += l, s(o, c);
|
|
350
356
|
}
|
|
351
|
-
function
|
|
352
|
-
for (var o, l,
|
|
353
|
-
d >=
|
|
357
|
+
function F() {
|
|
358
|
+
for (var o, l, c = d; ; ) {
|
|
359
|
+
d >= Re && r(c, "Unterminated regexp");
|
|
354
360
|
var h = S.charAt(d);
|
|
355
|
-
if (ht.test(h) && r(
|
|
361
|
+
if (ht.test(h) && r(c, "Unterminated regexp"), o)
|
|
356
362
|
o = !1;
|
|
357
363
|
else {
|
|
358
364
|
if (h === "[")
|
|
@@ -365,57 +371,57 @@ var F, si = function(e) {
|
|
|
365
371
|
}
|
|
366
372
|
++d;
|
|
367
373
|
}
|
|
368
|
-
o = S.slice(
|
|
374
|
+
o = S.slice(c, d), ++d, (l = M()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
369
375
|
try {
|
|
370
|
-
var
|
|
376
|
+
var R = new RegExp(o, l);
|
|
371
377
|
} catch (Y) {
|
|
372
|
-
throw Y instanceof SyntaxError && r(
|
|
378
|
+
throw Y instanceof SyntaxError && r(c, Y.message), Y;
|
|
373
379
|
}
|
|
374
|
-
s(vn,
|
|
380
|
+
s(vn, R);
|
|
375
381
|
}
|
|
376
|
-
function
|
|
377
|
-
for (var
|
|
378
|
-
var
|
|
379
|
-
if (
|
|
382
|
+
function N(o, l) {
|
|
383
|
+
for (var c = d, h = 0, R = l === void 0 ? 1 / 0 : l, Y = 0; Y < R; ++Y) {
|
|
384
|
+
var te = S.charCodeAt(d);
|
|
385
|
+
if (te = 97 <= te ? te - 97 + 10 : 65 <= te ? te - 65 + 10 : 48 <= te && 57 >= te ? te - 48 : 1 / 0, te >= o)
|
|
380
386
|
break;
|
|
381
|
-
++d, h = h * o +
|
|
387
|
+
++d, h = h * o + te;
|
|
382
388
|
}
|
|
383
|
-
return d ===
|
|
389
|
+
return d === c || l !== void 0 && d - c !== l ? null : h;
|
|
384
390
|
}
|
|
385
|
-
function
|
|
386
|
-
var l = d,
|
|
387
|
-
o ||
|
|
388
|
-
var
|
|
389
|
-
|
|
391
|
+
function W(o) {
|
|
392
|
+
var l = d, c = !1, h = S.charCodeAt(d) === 48;
|
|
393
|
+
o || N(10) !== null || r(l, "Invalid number"), S.charCodeAt(d) === 46 && (++d, N(10), c = !0), o = S.charCodeAt(d), (o === 69 || o === 101) && (o = S.charCodeAt(++d), o !== 43 && o !== 45 || ++d, N(10) === null && r(l, "Invalid number"), c = !0), n(S.charCodeAt(d)) && r(d, "Identifier directly after number"), o = S.slice(l, d);
|
|
394
|
+
var R;
|
|
395
|
+
c ? R = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || ie ? r(l, "Invalid number") : R = parseInt(o, 8) : R = parseInt(o, 10), s(Ge, R);
|
|
390
396
|
}
|
|
391
|
-
function
|
|
392
|
-
return o =
|
|
397
|
+
function E(o) {
|
|
398
|
+
return o = N(16, o), o === null && r(z, "Bad character escape sequence"), o;
|
|
393
399
|
}
|
|
394
|
-
function
|
|
395
|
-
|
|
396
|
-
for (var o, l = !0,
|
|
400
|
+
function M() {
|
|
401
|
+
Be = !1;
|
|
402
|
+
for (var o, l = !0, c = d; ; ) {
|
|
397
403
|
var h = S.charCodeAt(d);
|
|
398
404
|
if (t(h))
|
|
399
|
-
|
|
405
|
+
Be && (o += S.charAt(d)), ++d;
|
|
400
406
|
else if (h === 92) {
|
|
401
|
-
|
|
402
|
-
var
|
|
403
|
-
|
|
407
|
+
Be || (o = S.slice(c, d)), Be = !0, S.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = E(4);
|
|
408
|
+
var R = String.fromCharCode(h);
|
|
409
|
+
R || r(d - 1, "Invalid Unicode escape"), (l ? n(h) : t(h)) || r(d - 4, "Invalid Unicode escape"), o += R;
|
|
404
410
|
} else
|
|
405
411
|
break;
|
|
406
412
|
l = !1;
|
|
407
413
|
}
|
|
408
|
-
return
|
|
414
|
+
return Be ? o : S.slice(c, d);
|
|
409
415
|
}
|
|
410
|
-
function
|
|
411
|
-
var o =
|
|
412
|
-
!
|
|
416
|
+
function I() {
|
|
417
|
+
var o = M(), l = Pe;
|
|
418
|
+
!Be && Ur(o) && (l = Ar[o]), s(l, o);
|
|
413
419
|
}
|
|
414
|
-
function
|
|
415
|
-
Pt = z, Se =
|
|
420
|
+
function y() {
|
|
421
|
+
Pt = z, Se = Oe, Nt = Ot, b();
|
|
416
422
|
}
|
|
417
|
-
function
|
|
418
|
-
if (ie = o, d = z,
|
|
423
|
+
function V(o) {
|
|
424
|
+
if (ie = o, d = z, O.C)
|
|
419
425
|
for (; d < fe; )
|
|
420
426
|
fe = S.lastIndexOf(`
|
|
421
427
|
`, fe - 2) + 1, --Te;
|
|
@@ -429,91 +435,91 @@ var F, si = function(e) {
|
|
|
429
435
|
}
|
|
430
436
|
function $() {
|
|
431
437
|
var o = new G();
|
|
432
|
-
return
|
|
438
|
+
return O.C && (o.X = new oe()), O.vb && (o.sourceFile = O.vb), O.Xa && (o.j = [z, 0]), o;
|
|
433
439
|
}
|
|
434
|
-
function
|
|
440
|
+
function ee(o) {
|
|
435
441
|
var l = new G();
|
|
436
|
-
return l.start = o.start,
|
|
442
|
+
return l.start = o.start, O.C && (l.X = new oe(), l.X.start = o.X.start), O.Xa && (l.j = [o.j[0], 0]), l;
|
|
437
443
|
}
|
|
438
|
-
function
|
|
439
|
-
return o.type = l, o.end = Se,
|
|
444
|
+
function T(o, l) {
|
|
445
|
+
return o.type = l, o.end = Se, O.C && (o.X.end = Nt), O.Xa && (o.j[1] = Se), o;
|
|
440
446
|
}
|
|
441
447
|
function Ee(o) {
|
|
442
448
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
443
449
|
}
|
|
444
|
-
function
|
|
445
|
-
return
|
|
450
|
+
function _(o) {
|
|
451
|
+
return j === o ? (y(), !0) : !1;
|
|
446
452
|
}
|
|
447
453
|
function Ie() {
|
|
448
|
-
return !
|
|
454
|
+
return !O.fc && (j === Bt || j === Ne || ht.test(S.slice(Se, z)));
|
|
449
455
|
}
|
|
450
|
-
function
|
|
451
|
-
|
|
456
|
+
function A() {
|
|
457
|
+
_(pe) || Ie() || B();
|
|
452
458
|
}
|
|
453
459
|
function x(o) {
|
|
454
|
-
|
|
460
|
+
j === o ? y() : B();
|
|
455
461
|
}
|
|
456
462
|
function B() {
|
|
457
463
|
r(z, "Unexpected token");
|
|
458
464
|
}
|
|
459
|
-
function
|
|
465
|
+
function L(o) {
|
|
460
466
|
o.type !== "Identifier" && o.type !== "MemberExpression" && r(o.start, "Assigning to rvalue"), ie && o.type === "Identifier" && ft(o.name) && r(o.start, "Assigning to " + o.name + " in strict mode");
|
|
461
467
|
}
|
|
462
|
-
function
|
|
463
|
-
(
|
|
464
|
-
var o =
|
|
468
|
+
function D() {
|
|
469
|
+
(j === Un || j === Ae && ae === "/=") && b(!0);
|
|
470
|
+
var o = j, l = $();
|
|
465
471
|
switch (o) {
|
|
466
472
|
case Mt:
|
|
467
473
|
case xn:
|
|
468
|
-
|
|
469
|
-
var
|
|
470
|
-
|
|
474
|
+
y();
|
|
475
|
+
var c = o === Mt;
|
|
476
|
+
_(pe) || Ie() ? l.label = null : j !== Pe ? B() : (l.label = de(), A());
|
|
471
477
|
for (var h = 0; h < H.length; ++h) {
|
|
472
|
-
var
|
|
473
|
-
if ((l.label === null ||
|
|
478
|
+
var R = H[h];
|
|
479
|
+
if ((l.label === null || R.name === l.label.name) && (R.kind !== null && (c || R.kind === "loop") || l.label && c))
|
|
474
480
|
break;
|
|
475
481
|
}
|
|
476
|
-
return h === H.length && r(l.start, "Unsyntactic " + o.l),
|
|
482
|
+
return h === H.length && r(l.start, "Unsyntactic " + o.l), T(l, c ? "BreakStatement" : "ContinueStatement");
|
|
477
483
|
case Sn:
|
|
478
|
-
return
|
|
484
|
+
return y(), A(), T(l, "DebuggerStatement");
|
|
479
485
|
case Cn:
|
|
480
|
-
return
|
|
486
|
+
return y(), H.push($t), l.body = D(), H.pop(), x(Lt), l.test = J(), A(), T(l, "DoWhileStatement");
|
|
481
487
|
case In:
|
|
482
|
-
return
|
|
483
|
-
case
|
|
484
|
-
return
|
|
488
|
+
return y(), H.push($t), x(he), j === pe ? ce(l, null) : j === Ut ? (o = $(), y(), gn(o, !0), T(o, "VariableDeclaration"), o.fa.length === 1 && _(dt) ? lt(l, o) : ce(l, o)) : (o = Z(!1, !0), _(dt) ? (L(o), lt(l, o)) : ce(l, o));
|
|
489
|
+
case Ft:
|
|
490
|
+
return y(), Tt(l, !0);
|
|
485
491
|
case Tn:
|
|
486
|
-
return
|
|
492
|
+
return y(), l.test = J(), l.da = D(), l.alternate = _(wn) ? D() : null, T(l, "IfStatement");
|
|
487
493
|
case An:
|
|
488
|
-
return Ke ||
|
|
494
|
+
return Ke || O.Ib || r(z, "'return' outside of function"), y(), _(pe) || Ie() ? l.K = null : (l.K = Z(), A()), T(l, "ReturnStatement");
|
|
489
495
|
case Wt:
|
|
490
|
-
for (
|
|
491
|
-
|
|
492
|
-
return h &&
|
|
496
|
+
for (y(), l.Qb = J(), l.tb = [], x(ze), H.push(_r); j !== Ne; )
|
|
497
|
+
j === Dt || j === kn ? (o = j === Dt, h && T(h, "SwitchCase"), l.tb.push(h = $()), h.da = [], y(), o ? h.test = Z() : (c && r(Pt, "Multiple default clauses"), c = !0, h.test = null), x(Ye)) : (h || B(), h.da.push(D()));
|
|
498
|
+
return h && T(h, "SwitchCase"), y(), H.pop(), T(l, "SwitchStatement");
|
|
493
499
|
case jn:
|
|
494
|
-
return
|
|
500
|
+
return y(), ht.test(S.slice(Se, z)) && r(Se, "Illegal newline after throw"), l.K = Z(), A(), T(l, "ThrowStatement");
|
|
495
501
|
case Rn:
|
|
496
|
-
return
|
|
502
|
+
return y(), l.block = le(), l.Ea = null, j === bn && (o = $(), y(), x(he), o.Ua = de(), ie && ft(o.Ua.name) && r(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), x(ue), o.body = le(), l.Ea = T(o, "CatchClause")), l.fb = _(En) ? le() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), T(l, "TryStatement");
|
|
497
503
|
case Ut:
|
|
498
|
-
return
|
|
504
|
+
return y(), gn(l), A(), T(l, "VariableDeclaration");
|
|
499
505
|
case Lt:
|
|
500
|
-
return
|
|
506
|
+
return y(), l.test = J(), H.push($t), l.body = D(), H.pop(), T(l, "WhileStatement");
|
|
501
507
|
case On:
|
|
502
|
-
return ie && r(z, "'with' in strict mode"),
|
|
508
|
+
return ie && r(z, "'with' in strict mode"), y(), l.object = J(), l.body = D(), T(l, "WithStatement");
|
|
503
509
|
case ze:
|
|
504
510
|
return le();
|
|
505
511
|
case pe:
|
|
506
|
-
return
|
|
512
|
+
return y(), T(l, "EmptyStatement");
|
|
507
513
|
default:
|
|
508
|
-
if (
|
|
514
|
+
if (c = ae, R = Z(), o === Pe && R.type === "Identifier" && _(Ye)) {
|
|
509
515
|
for (h = 0; h < H.length; ++h)
|
|
510
|
-
H[h].name ===
|
|
516
|
+
H[h].name === c && r(R.start, "Label '" + c + "' is already declared");
|
|
511
517
|
return H.push({
|
|
512
|
-
name:
|
|
513
|
-
kind:
|
|
514
|
-
}), l.body =
|
|
518
|
+
name: c,
|
|
519
|
+
kind: j.W ? "loop" : j === Wt ? "switch" : null
|
|
520
|
+
}), l.body = D(), H.pop(), l.label = R, T(l, "LabeledStatement");
|
|
515
521
|
}
|
|
516
|
-
return l.la =
|
|
522
|
+
return l.la = R, A(), T(l, "ExpressionStatement");
|
|
517
523
|
}
|
|
518
524
|
}
|
|
519
525
|
function J() {
|
|
@@ -522,164 +528,164 @@ var F, si = function(e) {
|
|
|
522
528
|
return x(ue), o;
|
|
523
529
|
}
|
|
524
530
|
function le(o) {
|
|
525
|
-
var l = $(),
|
|
526
|
-
for (l.body = [], x(ze); !
|
|
527
|
-
var
|
|
528
|
-
if (l.body.push(
|
|
531
|
+
var l = $(), c = !0, h = !1;
|
|
532
|
+
for (l.body = [], x(ze); !_(Ne); ) {
|
|
533
|
+
var R = D();
|
|
534
|
+
if (l.body.push(R), c && o && Ee(R)) {
|
|
529
535
|
var Y = h;
|
|
530
|
-
|
|
536
|
+
V(h = !0);
|
|
531
537
|
}
|
|
532
|
-
|
|
538
|
+
c = !1;
|
|
533
539
|
}
|
|
534
|
-
return h && !Y &&
|
|
540
|
+
return h && !Y && V(!1), T(l, "BlockStatement");
|
|
535
541
|
}
|
|
536
542
|
function ce(o, l) {
|
|
537
|
-
return o.ua = l, x(pe), o.test =
|
|
543
|
+
return o.ua = l, x(pe), o.test = j === pe ? null : Z(), x(pe), o.update = j === ue ? null : Z(), x(ue), o.body = D(), H.pop(), T(o, "ForStatement");
|
|
538
544
|
}
|
|
539
545
|
function lt(o, l) {
|
|
540
|
-
return o.left = l, o.right = Z(), x(ue), o.body =
|
|
546
|
+
return o.left = l, o.right = Z(), x(ue), o.body = D(), H.pop(), T(o, "ForInStatement");
|
|
541
547
|
}
|
|
542
548
|
function gn(o, l) {
|
|
543
549
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
544
|
-
var
|
|
545
|
-
if (
|
|
550
|
+
var c = $();
|
|
551
|
+
if (c.id = de(), ie && ft(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = _(Ln) ? Z(!0, l) : null, o.fa.push(T(c, "VariableDeclarator")), !_(ke))
|
|
546
552
|
break;
|
|
547
553
|
}
|
|
548
554
|
}
|
|
549
555
|
function Z(o, l) {
|
|
550
|
-
var
|
|
551
|
-
if (!o &&
|
|
552
|
-
for (o =
|
|
556
|
+
var c = wt(l);
|
|
557
|
+
if (!o && j === ke) {
|
|
558
|
+
for (o = ee(c), o.xb = [c]; _(ke); )
|
|
553
559
|
o.xb.push(wt(l));
|
|
554
|
-
return
|
|
560
|
+
return T(o, "SequenceExpression");
|
|
555
561
|
}
|
|
556
|
-
return
|
|
562
|
+
return c;
|
|
557
563
|
}
|
|
558
564
|
function wt(o) {
|
|
559
565
|
var l = Et(It(), -1, o);
|
|
560
|
-
if (
|
|
561
|
-
var
|
|
562
|
-
|
|
566
|
+
if (_(Wn)) {
|
|
567
|
+
var c = ee(l);
|
|
568
|
+
c.test = l, c.da = Z(!0), x(Ye), c.alternate = Z(!0, o), l = T(c, "ConditionalExpression");
|
|
563
569
|
}
|
|
564
|
-
return
|
|
570
|
+
return j.Cb ? (c = ee(l), c.operator = ae, c.left = l, y(), c.right = wt(o), L(l), T(c, "AssignmentExpression")) : l;
|
|
565
571
|
}
|
|
566
|
-
function Et(o, l,
|
|
567
|
-
var h =
|
|
568
|
-
if (h !== null && (!
|
|
569
|
-
var
|
|
570
|
-
return
|
|
572
|
+
function Et(o, l, c) {
|
|
573
|
+
var h = j.L;
|
|
574
|
+
if (h !== null && (!c || j !== dt) && h > l) {
|
|
575
|
+
var R = ee(o);
|
|
576
|
+
return R.left = o, R.operator = ae, o = j, y(), R.right = Et(It(), h, c), h = T(R, o === _n || o === $n ? "LogicalExpression" : "BinaryExpression"), Et(h, l, c);
|
|
571
577
|
}
|
|
572
578
|
return o;
|
|
573
579
|
}
|
|
574
580
|
function It() {
|
|
575
|
-
if (
|
|
576
|
-
var o = $(), l =
|
|
577
|
-
return o.operator = ae, He = o.prefix = !0,
|
|
581
|
+
if (j.prefix) {
|
|
582
|
+
var o = $(), l = j.$b;
|
|
583
|
+
return o.operator = ae, He = o.prefix = !0, y(), o.K = It(), l ? L(o.K) : ie && o.operator === "delete" && o.K.type === "Identifier" && r(o.start, "Deleting local variable in strict mode"), T(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
578
584
|
}
|
|
579
|
-
for (l = $e(ct());
|
|
580
|
-
o =
|
|
585
|
+
for (l = $e(ct()); j.cc && !Ie(); )
|
|
586
|
+
o = ee(l), o.operator = ae, o.prefix = !1, o.K = l, L(l), y(), l = T(o, "UpdateExpression");
|
|
581
587
|
return l;
|
|
582
588
|
}
|
|
583
589
|
function $e(o, l) {
|
|
584
|
-
if (
|
|
585
|
-
var
|
|
586
|
-
return
|
|
590
|
+
if (_(Fn)) {
|
|
591
|
+
var c = ee(o);
|
|
592
|
+
return c.object = o, c.Wa = de(!0), c.bb = !1, $e(T(c, "MemberExpression"), l);
|
|
587
593
|
}
|
|
588
|
-
return
|
|
594
|
+
return _(Vt) ? (c = ee(o), c.object = o, c.Wa = Z(), c.bb = !0, x(_t), $e(T(c, "MemberExpression"), l)) : !l && _(he) ? (c = ee(o), c.callee = o, c.arguments = At(ue, !1), $e(T(c, "CallExpression"), l)) : o;
|
|
589
595
|
}
|
|
590
596
|
function ct() {
|
|
591
|
-
switch (
|
|
597
|
+
switch (j) {
|
|
592
598
|
case Nn:
|
|
593
599
|
var o = $();
|
|
594
|
-
return
|
|
595
|
-
case
|
|
600
|
+
return y(), T(o, "ThisExpression");
|
|
601
|
+
case Pe:
|
|
596
602
|
return de();
|
|
597
603
|
case Ge:
|
|
598
604
|
case ut:
|
|
599
605
|
case vn:
|
|
600
|
-
return o = $(), o.value = ae, o.raw = S.slice(z,
|
|
606
|
+
return o = $(), o.value = ae, o.raw = S.slice(z, Oe), y(), T(o, "Literal");
|
|
601
607
|
case Bn:
|
|
602
608
|
case Mn:
|
|
603
|
-
case
|
|
604
|
-
return o = $(), o.value =
|
|
609
|
+
case Dn:
|
|
610
|
+
return o = $(), o.value = j.$a, o.raw = j.l, y(), T(o, "Literal");
|
|
605
611
|
case he:
|
|
606
612
|
o = Rt;
|
|
607
613
|
var l = z;
|
|
608
|
-
|
|
609
|
-
var
|
|
610
|
-
return
|
|
614
|
+
y();
|
|
615
|
+
var c = Z();
|
|
616
|
+
return c.start = l, c.end = Oe, O.C && (c.X.start = o, c.X.end = Ot), O.Xa && (c.j = [l, Oe]), x(ue), c;
|
|
611
617
|
case Vt:
|
|
612
|
-
return o = $(),
|
|
618
|
+
return o = $(), y(), o.elements = At(_t, !0, !0), T(o, "ArrayExpression");
|
|
613
619
|
case ze:
|
|
614
|
-
for (o = $(), l = !0,
|
|
620
|
+
for (o = $(), l = !0, c = !1, o.h = [], y(); !_(Ne); ) {
|
|
615
621
|
if (l)
|
|
616
622
|
l = !1;
|
|
617
|
-
else if (x(ke),
|
|
623
|
+
else if (x(ke), O.sb && _(Ne))
|
|
618
624
|
break;
|
|
619
625
|
var h = {
|
|
620
|
-
key:
|
|
621
|
-
},
|
|
622
|
-
if (
|
|
626
|
+
key: j === Ge || j === ut ? ct() : de(!0)
|
|
627
|
+
}, R = !1;
|
|
628
|
+
if (_(Ye)) {
|
|
623
629
|
h.value = Z(!0);
|
|
624
630
|
var Y = h.kind = "init";
|
|
625
631
|
} else
|
|
626
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? B() : (
|
|
627
|
-
if (h.key.type === "Identifier" && (ie ||
|
|
628
|
-
for (var
|
|
629
|
-
var
|
|
630
|
-
if (
|
|
631
|
-
var Ht = Y ===
|
|
632
|
-
Ht && !ie && Y === "init" &&
|
|
632
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? B() : (R = c = !0, Y = h.kind = h.key.name, h.key = j === Ge || j === ut ? ct() : de(!0), j !== he && B(), h.value = Tt($(), !1));
|
|
633
|
+
if (h.key.type === "Identifier" && (ie || c))
|
|
634
|
+
for (var te = 0; te < o.h.length; ++te) {
|
|
635
|
+
var Me = o.h[te];
|
|
636
|
+
if (Me.key.name === h.key.name) {
|
|
637
|
+
var Ht = Y === Me.kind || R && Me.kind === "init" || Y === "init" && (Me.kind === "get" || Me.kind === "set");
|
|
638
|
+
Ht && !ie && Y === "init" && Me.kind === "init" && (Ht = !1), Ht && r(h.key.start, "Redefinition of property");
|
|
633
639
|
}
|
|
634
640
|
}
|
|
635
641
|
o.h.push(h);
|
|
636
642
|
}
|
|
637
|
-
return
|
|
638
|
-
case
|
|
639
|
-
return o = $(),
|
|
643
|
+
return T(o, "ObjectExpression");
|
|
644
|
+
case Ft:
|
|
645
|
+
return o = $(), y(), Tt(o, !1);
|
|
640
646
|
case Pn:
|
|
641
|
-
return o = $(),
|
|
647
|
+
return o = $(), y(), o.callee = $e(ct(), !0), o.arguments = _(he) ? At(ue, !1) : Tr, T(o, "NewExpression");
|
|
642
648
|
}
|
|
643
649
|
B();
|
|
644
650
|
}
|
|
645
651
|
function Tt(o, l) {
|
|
646
|
-
|
|
647
|
-
var
|
|
648
|
-
for (x(he); !
|
|
649
|
-
|
|
650
|
-
|
|
652
|
+
j === Pe ? o.id = de() : l ? B() : o.id = null, o.oa = [];
|
|
653
|
+
var c = !0;
|
|
654
|
+
for (x(he); !_(ue); )
|
|
655
|
+
c ? c = !1 : x(ke), o.oa.push(de());
|
|
656
|
+
c = Ke;
|
|
651
657
|
var h = H;
|
|
652
|
-
if (Ke = !0, H = [], o.body = le(!0), Ke =
|
|
653
|
-
for (
|
|
654
|
-
if (h = 0 >
|
|
655
|
-
for (var
|
|
656
|
-
h.name === o.oa[
|
|
658
|
+
if (Ke = !0, H = [], o.body = le(!0), Ke = c, H = h, ie || o.body.body.length && Ee(o.body.body[0])) {
|
|
659
|
+
for (c = o.id ? -1 : 0; c < o.oa.length; ++c)
|
|
660
|
+
if (h = 0 > c ? o.id : o.oa[c], (Hn(h.name) || ft(h.name)) && r(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
661
|
+
for (var R = 0; R < c; ++R)
|
|
662
|
+
h.name === o.oa[R].name && r(h.start, "Argument name clash in strict mode");
|
|
657
663
|
}
|
|
658
|
-
return
|
|
664
|
+
return T(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
659
665
|
}
|
|
660
|
-
function At(o, l,
|
|
661
|
-
for (var h = [],
|
|
662
|
-
if (
|
|
663
|
-
|
|
664
|
-
else if (x(ke), l &&
|
|
666
|
+
function At(o, l, c) {
|
|
667
|
+
for (var h = [], R = !0; !_(o); ) {
|
|
668
|
+
if (R)
|
|
669
|
+
R = !1;
|
|
670
|
+
else if (x(ke), l && O.sb && _(o))
|
|
665
671
|
break;
|
|
666
|
-
h.push(
|
|
672
|
+
h.push(c && j === ke ? null : Z(!0));
|
|
667
673
|
}
|
|
668
674
|
return h;
|
|
669
675
|
}
|
|
670
676
|
function de(o) {
|
|
671
677
|
var l = $();
|
|
672
|
-
return o &&
|
|
678
|
+
return o && O.yb === "everywhere" && (o = !1), j === Pe ? (!o && (O.yb && Wr(ae) || ie && Hn(ae)) && S.slice(z, Oe).indexOf("\\") === -1 && r(z, "The keyword '" + ae + "' is reserved"), l.name = ae) : o && j.l ? l.name = j.l : B(), He = !1, y(), T(l, "Identifier");
|
|
673
679
|
}
|
|
674
680
|
e.version = "0.5.0";
|
|
675
|
-
var
|
|
681
|
+
var O, S = "", Re, jt;
|
|
676
682
|
e.parse = function(o, l) {
|
|
677
|
-
S = String(o),
|
|
678
|
-
for (var
|
|
679
|
-
Object.prototype.hasOwnProperty.call(
|
|
680
|
-
for (jt =
|
|
681
|
-
|
|
682
|
-
return
|
|
683
|
+
S = String(o), Re = S.length, O = l || {};
|
|
684
|
+
for (var c in yn)
|
|
685
|
+
Object.prototype.hasOwnProperty.call(O, c) || (O[c] = yn[c]);
|
|
686
|
+
for (jt = O.sourceFile, Te = 1, d = fe = 0, He = !0, f(), c = O.dc, Pt = Se = d, O.C && (Nt = new a()), Ke = ie = !1, H = [], b(), o = c || $(), l = !0, c || (o.body = []); j !== Bt; )
|
|
687
|
+
c = D(), o.body.push(c), l && Ee(c) && V(!0), l = !1;
|
|
688
|
+
return T(o, "Program");
|
|
683
689
|
};
|
|
684
690
|
var yn = {
|
|
685
691
|
fc: !1,
|
|
@@ -692,19 +698,19 @@ var F, si = function(e) {
|
|
|
692
698
|
dc: null,
|
|
693
699
|
sourceFile: null,
|
|
694
700
|
vb: null
|
|
695
|
-
}, d = 0, z = 0,
|
|
701
|
+
}, d = 0, z = 0, Oe = 0, Rt, Ot, j, ae, He, Te, fe, Pt = 0, Se = 0, Nt, Ke, H, ie, Tr = [], Ge = {
|
|
696
702
|
type: "num"
|
|
697
703
|
}, vn = {
|
|
698
704
|
type: "regexp"
|
|
699
705
|
}, ut = {
|
|
700
706
|
type: "string"
|
|
701
|
-
},
|
|
707
|
+
}, Pe = {
|
|
702
708
|
type: "name"
|
|
703
709
|
}, Bt = {
|
|
704
710
|
type: "eof"
|
|
705
711
|
}, Mt = {
|
|
706
712
|
l: "break"
|
|
707
|
-
},
|
|
713
|
+
}, Dt = {
|
|
708
714
|
l: "case",
|
|
709
715
|
m: !0
|
|
710
716
|
}, bn = {
|
|
@@ -726,7 +732,7 @@ var F, si = function(e) {
|
|
|
726
732
|
}, In = {
|
|
727
733
|
l: "for",
|
|
728
734
|
W: !0
|
|
729
|
-
},
|
|
735
|
+
}, Ft = {
|
|
730
736
|
l: "function"
|
|
731
737
|
}, Tn = {
|
|
732
738
|
l: "if"
|
|
@@ -758,16 +764,16 @@ var F, si = function(e) {
|
|
|
758
764
|
}, Mn = {
|
|
759
765
|
l: "true",
|
|
760
766
|
$a: !0
|
|
761
|
-
},
|
|
767
|
+
}, Dn = {
|
|
762
768
|
l: "false",
|
|
763
769
|
$a: !1
|
|
764
770
|
}, dt = {
|
|
765
771
|
l: "in",
|
|
766
772
|
L: 7,
|
|
767
773
|
m: !0
|
|
768
|
-
},
|
|
774
|
+
}, Ar = {
|
|
769
775
|
break: Mt,
|
|
770
|
-
case:
|
|
776
|
+
case: Dt,
|
|
771
777
|
catch: bn,
|
|
772
778
|
continue: xn,
|
|
773
779
|
debugger: Sn,
|
|
@@ -776,7 +782,7 @@ var F, si = function(e) {
|
|
|
776
782
|
else: wn,
|
|
777
783
|
finally: En,
|
|
778
784
|
for: In,
|
|
779
|
-
function:
|
|
785
|
+
function: Ft,
|
|
780
786
|
if: Tn,
|
|
781
787
|
return: An,
|
|
782
788
|
switch: Wt,
|
|
@@ -787,7 +793,7 @@ var F, si = function(e) {
|
|
|
787
793
|
with: On,
|
|
788
794
|
null: Bn,
|
|
789
795
|
true: Mn,
|
|
790
|
-
false:
|
|
796
|
+
false: Dn,
|
|
791
797
|
new: Pn,
|
|
792
798
|
in: dt,
|
|
793
799
|
instanceof: {
|
|
@@ -819,7 +825,7 @@ var F, si = function(e) {
|
|
|
819
825
|
}, ze = {
|
|
820
826
|
type: "{",
|
|
821
827
|
m: !0
|
|
822
|
-
},
|
|
828
|
+
}, Ne = {
|
|
823
829
|
type: "}"
|
|
824
830
|
}, he = {
|
|
825
831
|
type: "(",
|
|
@@ -835,7 +841,7 @@ var F, si = function(e) {
|
|
|
835
841
|
}, Ye = {
|
|
836
842
|
type: ":",
|
|
837
843
|
m: !0
|
|
838
|
-
},
|
|
844
|
+
}, Fn = {
|
|
839
845
|
type: "."
|
|
840
846
|
}, Wn = {
|
|
841
847
|
type: "?",
|
|
@@ -849,7 +855,7 @@ var F, si = function(e) {
|
|
|
849
855
|
}, Ae = {
|
|
850
856
|
Cb: !0,
|
|
851
857
|
m: !0
|
|
852
|
-
},
|
|
858
|
+
}, jr = {
|
|
853
859
|
cc: !0,
|
|
854
860
|
prefix: !0,
|
|
855
861
|
$b: !0
|
|
@@ -862,40 +868,40 @@ var F, si = function(e) {
|
|
|
862
868
|
}, $n = {
|
|
863
869
|
L: 2,
|
|
864
870
|
m: !0
|
|
865
|
-
},
|
|
871
|
+
}, Rr = {
|
|
866
872
|
L: 3,
|
|
867
873
|
m: !0
|
|
868
|
-
},
|
|
874
|
+
}, Or = {
|
|
869
875
|
L: 4,
|
|
870
876
|
m: !0
|
|
871
|
-
},
|
|
877
|
+
}, Pr = {
|
|
872
878
|
L: 5,
|
|
873
879
|
m: !0
|
|
874
|
-
},
|
|
880
|
+
}, Nr = {
|
|
875
881
|
L: 6,
|
|
876
882
|
m: !0
|
|
877
|
-
},
|
|
883
|
+
}, Br = {
|
|
878
884
|
L: 7,
|
|
879
885
|
m: !0
|
|
880
|
-
},
|
|
886
|
+
}, Mr = {
|
|
881
887
|
L: 8,
|
|
882
888
|
m: !0
|
|
883
|
-
},
|
|
889
|
+
}, Dr = {
|
|
884
890
|
L: 9,
|
|
885
891
|
prefix: !0,
|
|
886
892
|
m: !0
|
|
887
|
-
},
|
|
893
|
+
}, Fr = {
|
|
888
894
|
L: 10,
|
|
889
895
|
m: !0
|
|
890
|
-
},
|
|
896
|
+
}, Wr = i("class enum extends super const export import"), Hn = i("implements interface let package private protected public static yield"), ft = i("eval arguments"), Ur = i("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"), Lr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Kn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Vr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ht = /[\n\r\u2028\u2029]/, pt = /\r\n|[\n\r\u2028\u2029]/g, Be, $t = {
|
|
891
897
|
kind: "loop"
|
|
892
|
-
},
|
|
898
|
+
}, _r = {
|
|
893
899
|
kind: "switch"
|
|
894
900
|
};
|
|
895
901
|
}, Yt = Yt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
896
|
-
|
|
902
|
+
ci(Yt.j || (Yt.j = {}));
|
|
897
903
|
function p(e, t) {
|
|
898
|
-
typeof e == "string" && (e =
|
|
904
|
+
typeof e == "string" && (e = Ue(e, "code"));
|
|
899
905
|
var n = e.constructor;
|
|
900
906
|
this.ya = function() {
|
|
901
907
|
return new n({
|
|
@@ -909,7 +915,7 @@ function p(e, t) {
|
|
|
909
915
|
var a, s;
|
|
910
916
|
for (s in this)
|
|
911
917
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
912
|
-
this.N = Jt(this, this.ra, null), this.Na = this.N.object, this.ra =
|
|
918
|
+
this.N = Jt(this, this.ra, null), this.Na = this.N.object, this.ra = Ue(this.ba.join(`
|
|
913
919
|
`), "polyfills"), this.ba = void 0, xt(this.ra), a = new C(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = r, a = new C(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
914
920
|
}
|
|
915
921
|
var Yn = {
|
|
@@ -935,15 +941,15 @@ var Yn = {
|
|
|
935
941
|
configurable: !1,
|
|
936
942
|
enumerable: !0,
|
|
937
943
|
writable: !0
|
|
938
|
-
},
|
|
944
|
+
}, pr = {
|
|
939
945
|
STEP_ERROR: !0
|
|
940
946
|
}, _e = {
|
|
941
947
|
SCOPE_REFERENCE: !0
|
|
942
948
|
}, rt = {
|
|
943
949
|
VALUE_IN_DESCRIPTOR: !0
|
|
944
|
-
},
|
|
950
|
+
}, De = {
|
|
945
951
|
REGEXP_TIMEOUT: !0
|
|
946
|
-
}, Jn = [], ve = null, et = null, we = typeof globalThis == "undefined" ? void 0 : globalThis,
|
|
952
|
+
}, Jn = [], ve = null, et = null, we = typeof globalThis == "undefined" ? void 0 : globalThis, ui = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
|
|
947
953
|
function tn(e) {
|
|
948
954
|
var t = e >>> 0;
|
|
949
955
|
return t === Number(e) ? t : NaN;
|
|
@@ -963,26 +969,26 @@ function xt(e, t, n) {
|
|
|
963
969
|
p.prototype.REGEXP_MODE = 2;
|
|
964
970
|
p.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
965
971
|
p.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
function
|
|
972
|
+
U = p.prototype;
|
|
973
|
+
U.P = !1;
|
|
974
|
+
U.Ka = !1;
|
|
975
|
+
U.Kb = 0;
|
|
976
|
+
U.ic = 0;
|
|
977
|
+
function Ue(e, t) {
|
|
972
978
|
var n = {}, r;
|
|
973
979
|
for (r in Yn)
|
|
974
980
|
n[r] = Yn[r];
|
|
975
981
|
return n.sourceFile = t, we.j.parse(e, n);
|
|
976
982
|
}
|
|
977
|
-
|
|
983
|
+
U.Jb = function(e) {
|
|
978
984
|
var t = this.o[0];
|
|
979
985
|
if (!t || t.node.type !== "Program")
|
|
980
986
|
throw Error("Expecting original AST to start with a Program node");
|
|
981
|
-
if (typeof e == "string" && (e =
|
|
987
|
+
if (typeof e == "string" && (e = Ue(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
982
988
|
throw Error("Expecting new AST to start with a Program node");
|
|
983
989
|
it(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
984
990
|
};
|
|
985
|
-
|
|
991
|
+
U.lb = function() {
|
|
986
992
|
var e = this.o, t;
|
|
987
993
|
do {
|
|
988
994
|
var n = e[e.length - 1];
|
|
@@ -994,7 +1000,7 @@ F.lb = function() {
|
|
|
994
1000
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
995
1001
|
n = null;
|
|
996
1002
|
else {
|
|
997
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
1003
|
+
this.ca.shift(), 0 <= n.interval && yr(this, n, n.interval);
|
|
998
1004
|
var r = new C(n.node, n.scope);
|
|
999
1005
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1000
1006
|
}
|
|
@@ -1007,7 +1013,7 @@ F.lb = function() {
|
|
|
1007
1013
|
try {
|
|
1008
1014
|
var a = this.rb[r.type](e, n, r);
|
|
1009
1015
|
} catch (s) {
|
|
1010
|
-
if (s !==
|
|
1016
|
+
if (s !== pr)
|
|
1011
1017
|
throw this.value !== s && (this.value = void 0), s;
|
|
1012
1018
|
} finally {
|
|
1013
1019
|
et = i;
|
|
@@ -1020,13 +1026,13 @@ F.lb = function() {
|
|
|
1020
1026
|
} while (!r.end && t > Date.now());
|
|
1021
1027
|
return !0;
|
|
1022
1028
|
};
|
|
1023
|
-
|
|
1029
|
+
U.Eb = function() {
|
|
1024
1030
|
for (; !this.za && this.lb(); )
|
|
1025
1031
|
;
|
|
1026
1032
|
return this.za;
|
|
1027
1033
|
};
|
|
1028
|
-
function
|
|
1029
|
-
e.g(t, "NaN", NaN, Xe), e.g(t, "Infinity", 1 / 0, Xe), e.g(t, "undefined", void 0, Xe), e.g(t, "window", t, en), e.g(t, "this", t, Xe), e.g(t, "self", t), e.M = new
|
|
1034
|
+
function di(e, t) {
|
|
1035
|
+
e.g(t, "NaN", NaN, Xe), e.g(t, "Infinity", 1 / 0, Xe), e.g(t, "undefined", void 0, Xe), e.g(t, "window", t, en), e.g(t, "this", t, Xe), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), fi(e, t), hi(e, t), t.xa = e.M, e.g(t, "constructor", e.v, k), pi(e, t), mi(e, t), gi(e, t), yi(e, t), vi(e, t), bi(e, t), xi(e, t), Si(e, t), ki(e, t);
|
|
1030
1036
|
var n = e.i(function() {
|
|
1031
1037
|
throw EvalError("Can't happen");
|
|
1032
1038
|
}, !1);
|
|
@@ -1036,8 +1042,8 @@ function ci(e, t) {
|
|
|
1036
1042
|
return function(s) {
|
|
1037
1043
|
try {
|
|
1038
1044
|
return a(s);
|
|
1039
|
-
} catch (
|
|
1040
|
-
w(e, e.Gb,
|
|
1045
|
+
} catch (u) {
|
|
1046
|
+
w(e, e.Gb, u.message);
|
|
1041
1047
|
}
|
|
1042
1048
|
};
|
|
1043
1049
|
}(r[i][0]), e.g(t, r[i][1], e.i(n, !1), k);
|
|
@@ -1051,20 +1057,20 @@ function ci(e, t) {
|
|
|
1051
1057
|
Zn(e, a);
|
|
1052
1058
|
}, e.g(t, "clearInterval", e.i(n, !1), k), 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);
|
|
1053
1059
|
}
|
|
1054
|
-
|
|
1055
|
-
function
|
|
1060
|
+
U.Wb = 0;
|
|
1061
|
+
function fi(e, t) {
|
|
1056
1062
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(i) {
|
|
1057
1063
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1058
1064
|
if (s) {
|
|
1059
1065
|
s = s.split(/\s*,\s*/);
|
|
1060
|
-
for (var
|
|
1061
|
-
var f = s[
|
|
1066
|
+
for (var u = 0; u < s.length; u++) {
|
|
1067
|
+
var f = s[u];
|
|
1062
1068
|
n.test(f) || w(e, e.T, "Invalid function argument: " + f);
|
|
1063
1069
|
}
|
|
1064
1070
|
s = s.join(", ");
|
|
1065
1071
|
}
|
|
1066
1072
|
try {
|
|
1067
|
-
var g =
|
|
1073
|
+
var g = Ue("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1068
1074
|
} catch (b) {
|
|
1069
1075
|
w(e, e.T, "Invalid code: " + b.message);
|
|
1070
1076
|
}
|
|
@@ -1073,7 +1079,7 @@ function ui(e, t) {
|
|
|
1073
1079
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, k), e.g(e.O, "prototype", e.Z, k), e.g(e.Z, "constructor", e.O, k), e.Z.Ta = function() {
|
|
1074
1080
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, re), e.Z.H = "Function", r = function(i, a) {
|
|
1075
1081
|
var s = e.o[e.o.length - 1];
|
|
1076
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof
|
|
1082
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof P ? s.F = mr(e, a) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1077
1083
|
}, X(e, e.O, "apply", r), r = function(i) {
|
|
1078
1084
|
var a = e.o[e.o.length - 1];
|
|
1079
1085
|
a.U = this, a.B = i, a.F = [];
|
|
@@ -1086,42 +1092,42 @@ function ui(e, t) {
|
|
|
1086
1092
|
return this.valueOf();
|
|
1087
1093
|
}, X(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), k);
|
|
1088
1094
|
}
|
|
1089
|
-
function
|
|
1095
|
+
function hi(e, t) {
|
|
1090
1096
|
function n(i) {
|
|
1091
1097
|
i != null || w(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1092
1098
|
}
|
|
1093
1099
|
var r = function(i) {
|
|
1094
1100
|
if (i == null)
|
|
1095
1101
|
return xe(e) ? this : e.s(e.M);
|
|
1096
|
-
if (!(i instanceof
|
|
1102
|
+
if (!(i instanceof P)) {
|
|
1097
1103
|
var a = e.s(be(e, i));
|
|
1098
1104
|
return a.data = i, a;
|
|
1099
1105
|
}
|
|
1100
1106
|
return i;
|
|
1101
1107
|
};
|
|
1102
1108
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, k), e.g(e.M, "constructor", e.v, k), e.g(t, "Object", e.v, k), r = function(i) {
|
|
1103
|
-
return n(i), ge(e, Object.getOwnPropertyNames(i instanceof
|
|
1109
|
+
return n(i), ge(e, Object.getOwnPropertyNames(i instanceof P ? i.h : i));
|
|
1104
1110
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), k), r = function(i) {
|
|
1105
|
-
return n(i), i instanceof
|
|
1111
|
+
return n(i), i instanceof P && (i = i.h), ge(e, Object.keys(i));
|
|
1106
1112
|
}, e.g(e.v, "keys", e.i(r, !1), k), r = function(i) {
|
|
1107
|
-
return i === null ? e.s(null) : (i instanceof
|
|
1113
|
+
return i === null ? e.s(null) : (i instanceof P || w(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1108
1114
|
}, e.g(e.v, "create", e.i(r, !1), k), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(i, a, s) {
|
|
1109
|
-
return a = String(a), i instanceof
|
|
1115
|
+
return a = String(a), i instanceof P || w(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof P || w(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || w(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a, rt, s.h), i;
|
|
1110
1116
|
}, e.g(e.v, "defineProperty", e.i(r, !1), k), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(i, a) {
|
|
1111
|
-
if (i instanceof
|
|
1112
|
-
var s = Object.getOwnPropertyDescriptor(i.h, a),
|
|
1113
|
-
return i = i.Y[a], a = e.s(e.M),
|
|
1117
|
+
if (i instanceof P || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1118
|
+
var s = Object.getOwnPropertyDescriptor(i.h, a), u = i.V[a];
|
|
1119
|
+
return i = i.Y[a], a = e.s(e.M), u || i ? (e.g(a, "get", u), e.g(a, "set", i)) : (e.g(a, "value", s.value), e.g(a, "writable", s.writable)), e.g(a, "configurable", s.configurable), e.g(a, "enumerable", s.enumerable), a;
|
|
1114
1120
|
}
|
|
1115
1121
|
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), k), r = function(i) {
|
|
1116
1122
|
return n(i), be(e, i);
|
|
1117
1123
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), k), r = function(i) {
|
|
1118
1124
|
return !!i && !i.preventExtensions;
|
|
1119
1125
|
}, e.g(e.v, "isExtensible", e.i(r, !1), k), r = function(i) {
|
|
1120
|
-
return i instanceof
|
|
1121
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), k), X(e, e.v, "toString",
|
|
1122
|
-
return n(this), this instanceof
|
|
1126
|
+
return i instanceof P && (i.preventExtensions = !0), i;
|
|
1127
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), k), X(e, e.v, "toString", P.prototype.toString), X(e, e.v, "toLocaleString", P.prototype.toString), X(e, e.v, "valueOf", P.prototype.valueOf), r = function(i) {
|
|
1128
|
+
return n(this), this instanceof P ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1123
1129
|
}, X(e, e.v, "hasOwnProperty", r), r = function(i) {
|
|
1124
|
-
return n(this), this instanceof
|
|
1130
|
+
return n(this), this instanceof P ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1125
1131
|
}, X(e, e.v, "propertyIsEnumerable", r), r = function(i) {
|
|
1126
1132
|
for (; ; ) {
|
|
1127
1133
|
if (i = be(e, i), !i)
|
|
@@ -1131,9 +1137,9 @@ function di(e, t) {
|
|
|
1131
1137
|
}
|
|
1132
1138
|
}, X(e, e.v, "isPrototypeOf", r);
|
|
1133
1139
|
}
|
|
1134
|
-
function
|
|
1140
|
+
function pi(e, t) {
|
|
1135
1141
|
var n = function(r) {
|
|
1136
|
-
var i = xe(e) ? this :
|
|
1142
|
+
var i = xe(e) ? this : Le(e), a = arguments[0];
|
|
1137
1143
|
if (arguments.length === 1 && typeof a == "number")
|
|
1138
1144
|
isNaN(tn(a)) && w(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1139
1145
|
else {
|
|
@@ -1151,7 +1157,7 @@ function fi(e, t) {
|
|
|
1151
1157
|
writable: !0
|
|
1152
1158
|
}), 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(',');", "}", ");", "})();", "");
|
|
1153
1159
|
}
|
|
1154
|
-
function
|
|
1160
|
+
function mi(e, t) {
|
|
1155
1161
|
var n = function(r) {
|
|
1156
1162
|
return r = arguments.length ? we.String(r) : "", xe(e) ? (this.data = r, this) : r;
|
|
1157
1163
|
};
|
|
@@ -1172,12 +1178,12 @@ function hi(e, t) {
|
|
|
1172
1178
|
string: s,
|
|
1173
1179
|
separator: r,
|
|
1174
1180
|
limit: i
|
|
1175
|
-
}, r, a), r !==
|
|
1181
|
+
}, r, a), r !== De && a(ge(e, r));
|
|
1176
1182
|
else {
|
|
1177
|
-
var
|
|
1178
|
-
|
|
1183
|
+
var u = e.ha(), f = Ze(e, r, u, a);
|
|
1184
|
+
u.onmessage = function(g) {
|
|
1179
1185
|
clearTimeout(f), a(ge(e, g.data));
|
|
1180
|
-
},
|
|
1186
|
+
}, u.postMessage(["split", s, r, i]);
|
|
1181
1187
|
}
|
|
1182
1188
|
return;
|
|
1183
1189
|
}
|
|
@@ -1189,11 +1195,11 @@ function hi(e, t) {
|
|
|
1189
1195
|
r = Je(e, "string.match(regexp)", {
|
|
1190
1196
|
string: a,
|
|
1191
1197
|
regexp: r
|
|
1192
|
-
}, r, i), r !==
|
|
1198
|
+
}, r, i), r !== De && i(r && ge(e, r));
|
|
1193
1199
|
else {
|
|
1194
|
-
var s = e.ha(),
|
|
1200
|
+
var s = e.ha(), u = Ze(e, r, s, i);
|
|
1195
1201
|
s.onmessage = function(f) {
|
|
1196
|
-
clearTimeout(
|
|
1202
|
+
clearTimeout(u), i(f.data && ge(e, f.data));
|
|
1197
1203
|
}, s.postMessage(["match", a, r]);
|
|
1198
1204
|
}
|
|
1199
1205
|
else
|
|
@@ -1205,11 +1211,11 @@ function hi(e, t) {
|
|
|
1205
1211
|
r = Je(e, "string.search(regexp)", {
|
|
1206
1212
|
string: a,
|
|
1207
1213
|
regexp: r
|
|
1208
|
-
}, r, i), r !==
|
|
1214
|
+
}, r, i), r !== De && i(r);
|
|
1209
1215
|
else {
|
|
1210
|
-
var s = e.ha(),
|
|
1216
|
+
var s = e.ha(), u = Ze(e, r, s, i);
|
|
1211
1217
|
s.onmessage = function(f) {
|
|
1212
|
-
clearTimeout(
|
|
1218
|
+
clearTimeout(u), i(f.data);
|
|
1213
1219
|
}, s.postMessage(["search", a, r]);
|
|
1214
1220
|
}
|
|
1215
1221
|
else
|
|
@@ -1222,24 +1228,24 @@ function hi(e, t) {
|
|
|
1222
1228
|
string: s,
|
|
1223
1229
|
substr: r,
|
|
1224
1230
|
newSubstr: i
|
|
1225
|
-
}, r, a), r !==
|
|
1231
|
+
}, r, a), r !== De && a(r);
|
|
1226
1232
|
else {
|
|
1227
|
-
var
|
|
1228
|
-
|
|
1233
|
+
var u = e.ha(), f = Ze(e, r, u, a);
|
|
1234
|
+
u.onmessage = function(g) {
|
|
1229
1235
|
clearTimeout(f), a(g.data);
|
|
1230
|
-
},
|
|
1236
|
+
}, u.postMessage(["replace", s, r, i]);
|
|
1231
1237
|
}
|
|
1232
1238
|
return;
|
|
1233
1239
|
}
|
|
1234
1240
|
a(s.replace(r, i));
|
|
1235
1241
|
}, Qe(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1236
1242
|
}
|
|
1237
|
-
function
|
|
1243
|
+
function gi(e, t) {
|
|
1238
1244
|
e.mb = e.i(function(n) {
|
|
1239
1245
|
return n = we.Boolean(n), xe(e) ? (this.data = n, this) : n;
|
|
1240
1246
|
}, !0), e.g(t, "Boolean", e.mb, k);
|
|
1241
1247
|
}
|
|
1242
|
-
function
|
|
1248
|
+
function yi(e, t) {
|
|
1243
1249
|
var n = function(r) {
|
|
1244
1250
|
return r = arguments.length ? we.Number(r) : 0, xe(e) ? (this.data = r, this) : r;
|
|
1245
1251
|
};
|
|
@@ -1278,7 +1284,7 @@ function mi(e, t) {
|
|
|
1278
1284
|
}
|
|
1279
1285
|
}, X(e, e.aa, "toLocaleString", n);
|
|
1280
1286
|
}
|
|
1281
|
-
function
|
|
1287
|
+
function vi(e, t) {
|
|
1282
1288
|
var n = function(i, a) {
|
|
1283
1289
|
if (!xe(e))
|
|
1284
1290
|
return we.Date();
|
|
@@ -1291,13 +1297,13 @@ function gi(e, t) {
|
|
|
1291
1297
|
return function(a) {
|
|
1292
1298
|
var s = this.data;
|
|
1293
1299
|
s instanceof Date || w(e, e.j, i + " not called on a Date");
|
|
1294
|
-
for (var
|
|
1295
|
-
|
|
1296
|
-
return s[i].apply(s,
|
|
1300
|
+
for (var u = [], f = 0; f < arguments.length; f++)
|
|
1301
|
+
u[f] = e.R(arguments[f]);
|
|
1302
|
+
return s[i].apply(s, u);
|
|
1297
1303
|
};
|
|
1298
1304
|
}(t[r]), X(e, e.$, t[r], n);
|
|
1299
1305
|
}
|
|
1300
|
-
function
|
|
1306
|
+
function bi(e, t) {
|
|
1301
1307
|
var n = function(r, i) {
|
|
1302
1308
|
if (xe(e))
|
|
1303
1309
|
var a = this;
|
|
@@ -1309,16 +1315,16 @@ function yi(e, t) {
|
|
|
1309
1315
|
r = r === void 0 ? "" : String(r), i = i ? String(i) : "", /^[gmi]*$/.test(i) || w(e, e.T, "Invalid regexp flag: " + i);
|
|
1310
1316
|
try {
|
|
1311
1317
|
var s = new we.RegExp(r, i);
|
|
1312
|
-
} catch (
|
|
1313
|
-
w(e, e.T,
|
|
1318
|
+
} catch (u) {
|
|
1319
|
+
w(e, e.T, u.message);
|
|
1314
1320
|
}
|
|
1315
1321
|
return nn(e, a, s), a;
|
|
1316
1322
|
};
|
|
1317
1323
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, k), e.g(e.I.h.prototype, "global", void 0, re), e.g(e.I.h.prototype, "ignoreCase", void 0, re), e.g(e.I.h.prototype, "multiline", void 0, re), e.g(e.I.h.prototype, "source", "(?:)", re), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, i) {
|
|
1318
1324
|
function a(b) {
|
|
1319
1325
|
if (b) {
|
|
1320
|
-
var
|
|
1321
|
-
return e.g(
|
|
1326
|
+
var v = ge(e, b);
|
|
1327
|
+
return e.g(v, "index", b.index), e.g(v, "input", b.input), v;
|
|
1322
1328
|
}
|
|
1323
1329
|
return null;
|
|
1324
1330
|
}
|
|
@@ -1328,18 +1334,18 @@ function yi(e, t) {
|
|
|
1328
1334
|
r = Je(e, "regexp.exec(string)", {
|
|
1329
1335
|
string: r,
|
|
1330
1336
|
regexp: s
|
|
1331
|
-
}, s, i), r !==
|
|
1337
|
+
}, s, i), r !== De && (e.g(this, "lastIndex", s.lastIndex), i(a(r)));
|
|
1332
1338
|
else {
|
|
1333
|
-
var
|
|
1334
|
-
|
|
1339
|
+
var u = e.ha(), f = Ze(e, s, u, i), g = this;
|
|
1340
|
+
u.onmessage = function(b) {
|
|
1335
1341
|
clearTimeout(f), e.g(g, "lastIndex", b.data[1]), i(a(b.data[0]));
|
|
1336
|
-
},
|
|
1342
|
+
}, u.postMessage(["exec", s, s.lastIndex, r]);
|
|
1337
1343
|
}
|
|
1338
1344
|
else
|
|
1339
1345
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), i(a(r));
|
|
1340
1346
|
}, Qe(e, e.I, "exec", n);
|
|
1341
1347
|
}
|
|
1342
|
-
function
|
|
1348
|
+
function xi(e, t) {
|
|
1343
1349
|
function n(r) {
|
|
1344
1350
|
var i = e.i(function(a) {
|
|
1345
1351
|
var s = xe(e) ? this : e.Aa(i);
|
|
@@ -1352,7 +1358,7 @@ function vi(e, t) {
|
|
|
1352
1358
|
return Xt(e, i, r), i;
|
|
1353
1359
|
}, !0), e.g(t, "Error", e.D, k), e.g(e.D.h.prototype, "message", "", k), e.g(e.D.h.prototype, "name", "Error", k), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1354
1360
|
}
|
|
1355
|
-
function
|
|
1361
|
+
function Si(e, t) {
|
|
1356
1362
|
var n = e.s(e.M);
|
|
1357
1363
|
e.g(t, "Math", n, k);
|
|
1358
1364
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1361,7 +1367,7 @@ function bi(e, t) {
|
|
|
1361
1367
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1362
1368
|
e.g(n, r[t], e.i(Math[r[t]], !1), k);
|
|
1363
1369
|
}
|
|
1364
|
-
function
|
|
1370
|
+
function ki(e, t) {
|
|
1365
1371
|
var n = e.s(e.M);
|
|
1366
1372
|
e.g(t, "JSON", n, k), t = function(r) {
|
|
1367
1373
|
try {
|
|
@@ -1371,13 +1377,13 @@ function xi(e, t) {
|
|
|
1371
1377
|
}
|
|
1372
1378
|
return e.Ia(i);
|
|
1373
1379
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, i, a) {
|
|
1374
|
-
i && i.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i =
|
|
1375
|
-
return typeof
|
|
1380
|
+
i && i.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = mr(e, i), i = i.filter(function(u) {
|
|
1381
|
+
return typeof u == "string" || typeof u == "number";
|
|
1376
1382
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), r = e.R(r);
|
|
1377
1383
|
try {
|
|
1378
1384
|
var s = JSON.stringify(r, i, a);
|
|
1379
|
-
} catch (
|
|
1380
|
-
w(e, e.j,
|
|
1385
|
+
} catch (u) {
|
|
1386
|
+
w(e, e.j, u.message);
|
|
1381
1387
|
}
|
|
1382
1388
|
return s;
|
|
1383
1389
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
@@ -1414,9 +1420,9 @@ function Xt(e, t, n) {
|
|
|
1414
1420
|
}
|
|
1415
1421
|
e.g(t, "stack", a.trim(), k);
|
|
1416
1422
|
}
|
|
1417
|
-
|
|
1423
|
+
U.ha = function() {
|
|
1418
1424
|
var e = this.ha.Mb;
|
|
1419
|
-
return e || (e = new Blob([
|
|
1425
|
+
return e || (e = new Blob([ui.join(`
|
|
1420
1426
|
`)], {
|
|
1421
1427
|
type: "application/javascript"
|
|
1422
1428
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1430,7 +1436,7 @@ function Je(e, t, n, r, i) {
|
|
|
1430
1436
|
} catch {
|
|
1431
1437
|
i(null), w(e, e.D, "RegExp Timeout: " + r);
|
|
1432
1438
|
}
|
|
1433
|
-
return
|
|
1439
|
+
return De;
|
|
1434
1440
|
}
|
|
1435
1441
|
function qe(e, t, n) {
|
|
1436
1442
|
if (e.REGEXP_MODE === 0)
|
|
@@ -1460,15 +1466,15 @@ function Ze(e, t, n, r) {
|
|
|
1460
1466
|
}
|
|
1461
1467
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1462
1468
|
}
|
|
1463
|
-
|
|
1469
|
+
U.Aa = function(e) {
|
|
1464
1470
|
return this.s(e && e.h.prototype);
|
|
1465
1471
|
};
|
|
1466
|
-
|
|
1472
|
+
U.s = function(e) {
|
|
1467
1473
|
if (typeof e != "object")
|
|
1468
1474
|
throw Error("Non object prototype");
|
|
1469
|
-
return e = new
|
|
1475
|
+
return e = new P(e), q(this, e, this.D) && (e.H = "Error"), e;
|
|
1470
1476
|
};
|
|
1471
|
-
function
|
|
1477
|
+
function Le(e) {
|
|
1472
1478
|
var t = e.s(e.La);
|
|
1473
1479
|
return e.g(t, "length", 0, {
|
|
1474
1480
|
configurable: !1,
|
|
@@ -1484,15 +1490,15 @@ function on(e, t, n, r) {
|
|
|
1484
1490
|
var i = rn(e, t.oa.length, !0);
|
|
1485
1491
|
return i.Va = n, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : r || "", re), i;
|
|
1486
1492
|
}
|
|
1487
|
-
|
|
1493
|
+
U.i = function(e, t) {
|
|
1488
1494
|
return t = rn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, re), t;
|
|
1489
1495
|
};
|
|
1490
|
-
|
|
1496
|
+
U.ub = function(e) {
|
|
1491
1497
|
var t = rn(this, e.length, !0);
|
|
1492
1498
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, re), t;
|
|
1493
1499
|
};
|
|
1494
|
-
|
|
1495
|
-
if (e instanceof
|
|
1500
|
+
U.Ia = function(e) {
|
|
1501
|
+
if (e instanceof P)
|
|
1496
1502
|
throw Error("Object is already pseudo");
|
|
1497
1503
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1498
1504
|
return e;
|
|
@@ -1512,7 +1518,7 @@ F.Ia = function(e) {
|
|
|
1512
1518
|
}, !!t);
|
|
1513
1519
|
}
|
|
1514
1520
|
if (Array.isArray(e)) {
|
|
1515
|
-
t =
|
|
1521
|
+
t = Le(this);
|
|
1516
1522
|
for (var r = 0; r < e.length; r++)
|
|
1517
1523
|
r in e && this.g(t, r, this.Ia(e[r]));
|
|
1518
1524
|
return t;
|
|
@@ -1522,10 +1528,10 @@ F.Ia = function(e) {
|
|
|
1522
1528
|
this.g(t, r, this.Ia(e[r]));
|
|
1523
1529
|
return t;
|
|
1524
1530
|
};
|
|
1525
|
-
|
|
1531
|
+
U.R = function(e, t) {
|
|
1526
1532
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1527
1533
|
return e;
|
|
1528
|
-
if (!(e instanceof
|
|
1534
|
+
if (!(e instanceof P))
|
|
1529
1535
|
throw Error("Object is not pseudo");
|
|
1530
1536
|
if (q(this, e, this.I))
|
|
1531
1537
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
@@ -1553,11 +1559,11 @@ F.R = function(e, t) {
|
|
|
1553
1559
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1554
1560
|
};
|
|
1555
1561
|
function ge(e, t) {
|
|
1556
|
-
for (var n =
|
|
1562
|
+
for (var n = Le(e), r = Object.getOwnPropertyNames(t), i = 0; i < r.length; i++)
|
|
1557
1563
|
e.g(n, r[i], t[r[i]]);
|
|
1558
1564
|
return n;
|
|
1559
1565
|
}
|
|
1560
|
-
function
|
|
1566
|
+
function mr(e, t) {
|
|
1561
1567
|
var n = [], r;
|
|
1562
1568
|
for (r in t.h)
|
|
1563
1569
|
n[r] = e.G(t, r);
|
|
@@ -1574,10 +1580,10 @@ function be(e, t) {
|
|
|
1574
1580
|
}
|
|
1575
1581
|
return t ? t.xa : null;
|
|
1576
1582
|
}
|
|
1577
|
-
|
|
1583
|
+
U.G = function(e, t) {
|
|
1578
1584
|
if (this.P)
|
|
1579
1585
|
throw Error("Getter not supported in that context");
|
|
1580
|
-
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof
|
|
1586
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
|
|
1581
1587
|
throw TypeError("Expecting native value or pseudo object");
|
|
1582
1588
|
if (t === "length") {
|
|
1583
1589
|
if (q(this, e, this.J))
|
|
@@ -1593,7 +1599,7 @@ F.G = function(e, t) {
|
|
|
1593
1599
|
while (e = be(this, e));
|
|
1594
1600
|
};
|
|
1595
1601
|
function St(e, t, n) {
|
|
1596
|
-
if (!(t instanceof
|
|
1602
|
+
if (!(t instanceof P))
|
|
1597
1603
|
throw TypeError("Primitive data type has no properties");
|
|
1598
1604
|
if (n = String(n), n === "length" && q(e, t, e.J))
|
|
1599
1605
|
return !0;
|
|
@@ -1608,14 +1614,14 @@ function St(e, t, n) {
|
|
|
1608
1614
|
while (t = be(e, t));
|
|
1609
1615
|
return !1;
|
|
1610
1616
|
}
|
|
1611
|
-
|
|
1617
|
+
U.g = function(e, t, n, r) {
|
|
1612
1618
|
if (this.Ka)
|
|
1613
1619
|
throw Error("Setter not supported in that context");
|
|
1614
|
-
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof
|
|
1620
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
|
|
1615
1621
|
throw TypeError("Expecting native value or pseudo object");
|
|
1616
1622
|
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && w(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1617
1623
|
var i = !this.o || an(this).S;
|
|
1618
|
-
if (e instanceof
|
|
1624
|
+
if (e instanceof P) {
|
|
1619
1625
|
if (q(this, e, this.J)) {
|
|
1620
1626
|
var a = tt(t);
|
|
1621
1627
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
@@ -1670,10 +1676,10 @@ F.g = function(e, t, n, r) {
|
|
|
1670
1676
|
} else
|
|
1671
1677
|
i && w(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1672
1678
|
};
|
|
1673
|
-
|
|
1679
|
+
U.g.ac = function() {
|
|
1674
1680
|
throw Error("Placeholder getter");
|
|
1675
1681
|
};
|
|
1676
|
-
|
|
1682
|
+
U.g.bc = function() {
|
|
1677
1683
|
throw Error("Placeholder setter");
|
|
1678
1684
|
};
|
|
1679
1685
|
function X(e, t, n, r) {
|
|
@@ -1695,12 +1701,12 @@ function Jt(e, t, n) {
|
|
|
1695
1701
|
var i = t.body && t.body[0];
|
|
1696
1702
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (r = !0);
|
|
1697
1703
|
}
|
|
1698
|
-
return i = e.s(null), r = new
|
|
1704
|
+
return i = e.s(null), r = new vr(n, r, i), n || di(e, r.object), it(e, t, r), r;
|
|
1699
1705
|
}
|
|
1700
1706
|
function sn(e, t, n) {
|
|
1701
1707
|
if (!t)
|
|
1702
1708
|
throw Error("parentScope required");
|
|
1703
|
-
return e = n || e.s(null), new
|
|
1709
|
+
return e = n || e.s(null), new vr(t, t.S, e);
|
|
1704
1710
|
}
|
|
1705
1711
|
function ln(e, t) {
|
|
1706
1712
|
for (var n = an(e); n && n !== e.N; ) {
|
|
@@ -1712,7 +1718,7 @@ function ln(e, t) {
|
|
|
1712
1718
|
return e.G(n.object, t);
|
|
1713
1719
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1714
1720
|
}
|
|
1715
|
-
function
|
|
1721
|
+
function gr(e, t, n) {
|
|
1716
1722
|
for (var r = an(e), i = r.S; r && r !== e.N; ) {
|
|
1717
1723
|
if (t in r.object.h) {
|
|
1718
1724
|
try {
|
|
@@ -1756,17 +1762,17 @@ function it(e, t, n) {
|
|
|
1756
1762
|
var a = t.constructor, s;
|
|
1757
1763
|
for (s in t)
|
|
1758
1764
|
if (s !== "loc") {
|
|
1759
|
-
var
|
|
1760
|
-
if (
|
|
1761
|
-
if (Array.isArray(
|
|
1762
|
-
for (i = 0; i <
|
|
1763
|
-
if (
|
|
1764
|
-
var f = it(e,
|
|
1765
|
+
var u = t[s];
|
|
1766
|
+
if (u && typeof u == "object") {
|
|
1767
|
+
if (Array.isArray(u)) {
|
|
1768
|
+
for (i = 0; i < u.length; i++)
|
|
1769
|
+
if (u[i] && u[i].constructor === a) {
|
|
1770
|
+
var f = it(e, u[i], n);
|
|
1765
1771
|
for (s in f)
|
|
1766
1772
|
r[s] = f[s];
|
|
1767
1773
|
}
|
|
1768
|
-
} else if (
|
|
1769
|
-
for (s in f = it(e,
|
|
1774
|
+
} else if (u.constructor === a)
|
|
1775
|
+
for (s in f = it(e, u, n), f)
|
|
1770
1776
|
r[s] = f[s];
|
|
1771
1777
|
}
|
|
1772
1778
|
}
|
|
@@ -1784,10 +1790,10 @@ function cn(e, t) {
|
|
|
1784
1790
|
return t[0] === _e ? ln(e, t[1]) : e.G(t[0], t[1]);
|
|
1785
1791
|
}
|
|
1786
1792
|
function un(e, t, n) {
|
|
1787
|
-
return t[0] === _e ?
|
|
1793
|
+
return t[0] === _e ? gr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1788
1794
|
}
|
|
1789
1795
|
function w(e, t, n) {
|
|
1790
|
-
throw e.N ? (n !== void 0 && t instanceof
|
|
1796
|
+
throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t), Xt(e, t, n)), at(e, 4, t), pr) : n === void 0 ? t : n;
|
|
1791
1797
|
}
|
|
1792
1798
|
function at(e, t, n, r) {
|
|
1793
1799
|
if (t === 0)
|
|
@@ -1869,20 +1875,20 @@ function qn(e, t, n) {
|
|
|
1869
1875
|
var r = e.o[e.o.length - 1], i = Array.from(n), a = i.shift();
|
|
1870
1876
|
n = Math.max(Number(i.shift() || 0), 0);
|
|
1871
1877
|
var s = e.ya();
|
|
1872
|
-
if (a instanceof
|
|
1873
|
-
var
|
|
1878
|
+
if (a instanceof P && a.H === "Function") {
|
|
1879
|
+
var u = a;
|
|
1874
1880
|
s.type = "CallExpression", r = r.scope;
|
|
1875
1881
|
} else {
|
|
1876
1882
|
try {
|
|
1877
|
-
var f =
|
|
1883
|
+
var f = Ue(String(a), "taskCode" + e.ic++);
|
|
1878
1884
|
} catch (g) {
|
|
1879
1885
|
w(e, e.T, "Invalid code: " + g.message);
|
|
1880
1886
|
}
|
|
1881
1887
|
s.type = "EvalProgram_", s.body = f.body, r = r.node.arguments[0], xt(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, i.length = 0;
|
|
1882
1888
|
}
|
|
1883
|
-
return t = new
|
|
1889
|
+
return t = new Ci(u, i, r, s, t ? n : -1), yr(e, t, n), t.Db;
|
|
1884
1890
|
}
|
|
1885
|
-
function
|
|
1891
|
+
function yr(e, t, n) {
|
|
1886
1892
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, i) {
|
|
1887
1893
|
return r.time - i.time;
|
|
1888
1894
|
});
|
|
@@ -1909,34 +1915,34 @@ function dn(e, t, n, r) {
|
|
|
1909
1915
|
return i.type = "CallExpression", e = new C(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1910
1916
|
}
|
|
1911
1917
|
function Gt(e, t) {
|
|
1912
|
-
return t == null ? e.Na : t instanceof
|
|
1918
|
+
return t == null ? e.Na : t instanceof P ? t : (e = e.s(be(e, t)), e.data = t, e);
|
|
1913
1919
|
}
|
|
1914
|
-
|
|
1920
|
+
U.Xb = function() {
|
|
1915
1921
|
return this.N;
|
|
1916
1922
|
};
|
|
1917
|
-
|
|
1923
|
+
U.Yb = function() {
|
|
1918
1924
|
return this.o;
|
|
1919
1925
|
};
|
|
1920
|
-
|
|
1926
|
+
U.ec = function(e) {
|
|
1921
1927
|
this.o = e;
|
|
1922
1928
|
};
|
|
1923
1929
|
function C(e, t) {
|
|
1924
1930
|
this.node = e, this.scope = t;
|
|
1925
1931
|
}
|
|
1926
|
-
function
|
|
1932
|
+
function vr(e, t, n) {
|
|
1927
1933
|
this.Va = e, this.S = t, this.object = n;
|
|
1928
1934
|
}
|
|
1929
|
-
function
|
|
1935
|
+
function P(e) {
|
|
1930
1936
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1931
1937
|
}
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1938
|
+
U = P.prototype;
|
|
1939
|
+
U.xa = null;
|
|
1940
|
+
U.H = "Object";
|
|
1941
|
+
U.data = null;
|
|
1942
|
+
U.toString = function() {
|
|
1937
1943
|
if (!et)
|
|
1938
1944
|
return "[object Interpreter.Object]";
|
|
1939
|
-
if (!(this instanceof
|
|
1945
|
+
if (!(this instanceof P))
|
|
1940
1946
|
return String(this);
|
|
1941
1947
|
if (this.H === "Array") {
|
|
1942
1948
|
var e = Jn;
|
|
@@ -1946,7 +1952,7 @@ F.toString = function() {
|
|
|
1946
1952
|
1024 < n && (n = 1e3, r = !0);
|
|
1947
1953
|
for (var i = 0; i < n; i++) {
|
|
1948
1954
|
var a = this.h[i];
|
|
1949
|
-
t[i] = a instanceof
|
|
1955
|
+
t[i] = a instanceof P && e.indexOf(a) !== -1 ? "..." : a;
|
|
1950
1956
|
}
|
|
1951
1957
|
r && t.push("...");
|
|
1952
1958
|
} finally {
|
|
@@ -1981,17 +1987,17 @@ F.toString = function() {
|
|
|
1981
1987
|
}
|
|
1982
1988
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1983
1989
|
};
|
|
1984
|
-
|
|
1990
|
+
U.valueOf = function() {
|
|
1985
1991
|
return !et || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1986
1992
|
};
|
|
1987
|
-
function
|
|
1988
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = i, this.Db = ++
|
|
1993
|
+
function Ci(e, t, n, r, i) {
|
|
1994
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = i, this.Db = ++wi, this.time = 0;
|
|
1989
1995
|
}
|
|
1990
|
-
var
|
|
1996
|
+
var wi = 0;
|
|
1991
1997
|
p.prototype.stepArrayExpression = function(e, t, n) {
|
|
1992
1998
|
n = n.elements;
|
|
1993
1999
|
var r = t.A || 0;
|
|
1994
|
-
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa =
|
|
2000
|
+
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Le(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
1995
2001
|
if (n[r])
|
|
1996
2002
|
return t.A = r, new C(n[r], t.scope);
|
|
1997
2003
|
r++;
|
|
@@ -2118,10 +2124,10 @@ p.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2118
2124
|
n = r >>> t;
|
|
2119
2125
|
break;
|
|
2120
2126
|
case "in":
|
|
2121
|
-
t instanceof
|
|
2127
|
+
t instanceof P || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = St(this, t, r);
|
|
2122
2128
|
break;
|
|
2123
2129
|
case "instanceof":
|
|
2124
|
-
q(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof
|
|
2130
|
+
q(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof P ? q(this, r, t) : !1;
|
|
2125
2131
|
break;
|
|
2126
2132
|
default:
|
|
2127
2133
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2158,8 +2164,8 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2158
2164
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2159
2165
|
return new C(n.arguments[t.A++], t.scope);
|
|
2160
2166
|
if (n.type === "NewExpression") {
|
|
2161
|
-
if (i instanceof
|
|
2162
|
-
t.B =
|
|
2167
|
+
if (i instanceof P && !i.Ab || w(this, this.j, ne(this, n.callee) + " is not a constructor"), i === this.qa)
|
|
2168
|
+
t.B = Le(this);
|
|
2163
2169
|
else {
|
|
2164
2170
|
var a = i.h.prototype;
|
|
2165
2171
|
(typeof a != "object" || a === null) && (a = this.M), t.B = this.s(a);
|
|
@@ -2171,8 +2177,8 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2171
2177
|
if (t.eb)
|
|
2172
2178
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2173
2179
|
else {
|
|
2174
|
-
if (t.eb = !0, i instanceof
|
|
2175
|
-
for (n = Jt(this, e.body, i.Va), r =
|
|
2180
|
+
if (t.eb = !0, i instanceof P || w(this, this.j, ne(this, n.callee) + " is not a function"), e = i.node) {
|
|
2181
|
+
for (n = Jt(this, e.body, i.Va), r = Le(this), i = 0; i < t.F.length; i++)
|
|
2176
2182
|
this.g(r, i, t.F[i]);
|
|
2177
2183
|
for (this.g(n.object, "arguments", r), i = 0; i < e.oa.length; i++)
|
|
2178
2184
|
this.g(n.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
@@ -2183,9 +2189,9 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2183
2189
|
t.value = i;
|
|
2184
2190
|
else {
|
|
2185
2191
|
try {
|
|
2186
|
-
r =
|
|
2187
|
-
} catch (
|
|
2188
|
-
w(this, this.T, "Invalid code: " +
|
|
2192
|
+
r = Ue(String(i), "eval" + this.Hb++);
|
|
2193
|
+
} catch (u) {
|
|
2194
|
+
w(this, this.T, "Invalid code: " + u.message);
|
|
2189
2195
|
}
|
|
2190
2196
|
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body, xt(i, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Jt(this, r, n) : it(this, r, n), this.value = void 0, new C(i, n);
|
|
2191
2197
|
}
|
|
@@ -2193,8 +2199,8 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2193
2199
|
t.scope.S || (t.B = Gt(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
2194
2200
|
else if (i.Za) {
|
|
2195
2201
|
var s = this;
|
|
2196
|
-
r = i.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(
|
|
2197
|
-
t.value =
|
|
2202
|
+
r = i.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
|
|
2203
|
+
t.value = u, s.za = !1;
|
|
2198
2204
|
}), this.za = !0, t.scope.S || (t.B = Gt(this, t.B)), i.Za.apply(t.B, r);
|
|
2199
2205
|
} else
|
|
2200
2206
|
w(this, this.j, ne(this, n.callee) + " is not callable");
|
|
@@ -2249,7 +2255,7 @@ p.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2249
2255
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2250
2256
|
e:
|
|
2251
2257
|
for (; ; ) {
|
|
2252
|
-
if (t.u instanceof
|
|
2258
|
+
if (t.u instanceof P)
|
|
2253
2259
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2254
2260
|
var r = t.wa.shift();
|
|
2255
2261
|
if (r === void 0)
|
|
@@ -2508,7 +2514,7 @@ p.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2508
2514
|
p.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2509
2515
|
n = n.fa;
|
|
2510
2516
|
var r = t.A || 0, i = n[r];
|
|
2511
|
-
for (t.Bb && i && (
|
|
2517
|
+
for (t.Bb && i && (gr(this, i.id.name, t.value), t.Bb = !1, i = n[++r]); i; ) {
|
|
2512
2518
|
if (i.ua)
|
|
2513
2519
|
return t.A = r, t.Bb = !0, t.Pa = i.id.name, new C(i.ua, t.scope);
|
|
2514
2520
|
i = n[++r];
|
|
@@ -2535,20 +2541,20 @@ p.prototype.getGlobalScope = p.prototype.Xb;
|
|
|
2535
2541
|
p.prototype.getStateStack = p.prototype.Yb;
|
|
2536
2542
|
p.prototype.setStateStack = p.prototype.ec;
|
|
2537
2543
|
p.VALUE_IN_DESCRIPTOR = rt;
|
|
2538
|
-
const
|
|
2544
|
+
const Ei = (e) => e.split(`
|
|
2539
2545
|
`).map((t) => {
|
|
2540
2546
|
const n = t.trim();
|
|
2541
2547
|
if (t.includes("__awaiter"))
|
|
2542
2548
|
return;
|
|
2543
2549
|
if (!n.startsWith("state."))
|
|
2544
2550
|
return t;
|
|
2545
|
-
const [i, a] = n.split("="),
|
|
2551
|
+
const [i, a] = n.split("="), u = `setRootState('${i.replace("state.", "").trim()}', ${a.trim()})`;
|
|
2546
2552
|
return `
|
|
2547
2553
|
${t}
|
|
2548
|
-
${
|
|
2554
|
+
${u}
|
|
2549
2555
|
`;
|
|
2550
2556
|
}).filter(Boolean).join(`
|
|
2551
|
-
`), Qn = (e) => e + "JSON",
|
|
2557
|
+
`), Qn = (e) => e + "JSON", Ii = ({
|
|
2552
2558
|
builder: e,
|
|
2553
2559
|
context: t,
|
|
2554
2560
|
event: n,
|
|
@@ -2557,52 +2563,52 @@ const Ci = (e) => e.split(`
|
|
|
2557
2563
|
rootSetState: a,
|
|
2558
2564
|
code: s
|
|
2559
2565
|
}) => {
|
|
2560
|
-
const
|
|
2566
|
+
const u = {
|
|
2561
2567
|
...r,
|
|
2562
2568
|
...i
|
|
2563
|
-
}, f =
|
|
2569
|
+
}, f = dr({
|
|
2564
2570
|
builder: e,
|
|
2565
2571
|
context: t,
|
|
2566
2572
|
event: n,
|
|
2567
|
-
state:
|
|
2568
|
-
}), g = f.map(([
|
|
2569
|
-
const
|
|
2570
|
-
return `var ${
|
|
2573
|
+
state: u
|
|
2574
|
+
}), g = f.map(([M]) => {
|
|
2575
|
+
const I = Qn(M);
|
|
2576
|
+
return `var ${M} = ${I} === undefined ? undefined : JSON.parse(${I});`;
|
|
2571
2577
|
}).join(`
|
|
2572
|
-
`), b =
|
|
2578
|
+
`), b = Ei(s);
|
|
2573
2579
|
if (b === "") {
|
|
2574
2580
|
ot.warn("Skipping evaluation of empty code block.");
|
|
2575
2581
|
return;
|
|
2576
2582
|
}
|
|
2577
|
-
const
|
|
2583
|
+
const v = `
|
|
2578
2584
|
function theFunction() {
|
|
2579
2585
|
${g}
|
|
2580
2586
|
|
|
2581
2587
|
${b}
|
|
2582
2588
|
}
|
|
2583
2589
|
theFunction();
|
|
2584
|
-
`,
|
|
2585
|
-
const
|
|
2586
|
-
a == null || a(
|
|
2587
|
-
},
|
|
2588
|
-
f.forEach(([
|
|
2589
|
-
const G = JSON.stringify(
|
|
2590
|
-
|
|
2591
|
-
}),
|
|
2592
|
-
},
|
|
2593
|
-
return
|
|
2590
|
+
`, F = (M, I) => {
|
|
2591
|
+
const y = hr(u, M, I);
|
|
2592
|
+
a == null || a(y);
|
|
2593
|
+
}, N = function(M, I) {
|
|
2594
|
+
f.forEach(([y, V]) => {
|
|
2595
|
+
const G = JSON.stringify(V);
|
|
2596
|
+
M.setProperty(I, Qn(y), G);
|
|
2597
|
+
}), M.setProperty(I, "setRootState", M.createNativeFunction(F));
|
|
2598
|
+
}, W = new p(v, N);
|
|
2599
|
+
return W.run(), W.pseudoToNative(W.value);
|
|
2594
2600
|
};
|
|
2595
|
-
function
|
|
2601
|
+
function Ti() {
|
|
2596
2602
|
var e;
|
|
2597
2603
|
return typeof process != "undefined" && yt((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2598
2604
|
}
|
|
2599
|
-
const
|
|
2605
|
+
const Ai = () => {
|
|
2600
2606
|
var r;
|
|
2601
|
-
if (!
|
|
2607
|
+
if (!Ti())
|
|
2602
2608
|
return !1;
|
|
2603
2609
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2604
2610
|
return e && t && !n ? (ot.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;
|
|
2605
|
-
},
|
|
2611
|
+
}, ji = (e) => We() || Ai() ? li(e) : Ii(e), Ri = !0, me = class me {
|
|
2606
2612
|
static getCacheKey(t) {
|
|
2607
2613
|
return JSON.stringify({
|
|
2608
2614
|
...t,
|
|
@@ -2622,7 +2628,7 @@ const Ii = () => {
|
|
|
2622
2628
|
};
|
|
2623
2629
|
Kt(me, "cacheLimit", 20), Kt(me, "cache", /* @__PURE__ */ new Map());
|
|
2624
2630
|
let Fe = me;
|
|
2625
|
-
function
|
|
2631
|
+
function Ve({
|
|
2626
2632
|
code: e,
|
|
2627
2633
|
context: t,
|
|
2628
2634
|
localState: n,
|
|
@@ -2630,29 +2636,29 @@ function Le({
|
|
|
2630
2636
|
rootSetState: i,
|
|
2631
2637
|
event: a,
|
|
2632
2638
|
isExpression: s = !0,
|
|
2633
|
-
enableCache:
|
|
2639
|
+
enableCache: u
|
|
2634
2640
|
}) {
|
|
2635
2641
|
if (e === "")
|
|
2636
2642
|
return;
|
|
2637
2643
|
const f = {
|
|
2638
|
-
code:
|
|
2644
|
+
code: si(e, {
|
|
2639
2645
|
isExpression: s
|
|
2640
2646
|
}),
|
|
2641
|
-
builder:
|
|
2647
|
+
builder: ai(),
|
|
2642
2648
|
context: t,
|
|
2643
2649
|
event: a,
|
|
2644
2650
|
rootSetState: i,
|
|
2645
2651
|
rootState: r,
|
|
2646
2652
|
localState: n
|
|
2647
2653
|
};
|
|
2648
|
-
if (
|
|
2654
|
+
if (u && !Ri) {
|
|
2649
2655
|
const g = Fe.getCacheKey(f), b = Fe.getCachedValue(g);
|
|
2650
2656
|
if (b)
|
|
2651
2657
|
return b.value;
|
|
2652
2658
|
}
|
|
2653
2659
|
try {
|
|
2654
|
-
const g =
|
|
2655
|
-
if (
|
|
2660
|
+
const g = ji(f);
|
|
2661
|
+
if (u) {
|
|
2656
2662
|
const b = Fe.getCacheKey(f);
|
|
2657
2663
|
Fe.setCachedValue(b, g);
|
|
2658
2664
|
}
|
|
@@ -2665,7 +2671,45 @@ function Le({
|
|
|
2665
2671
|
}
|
|
2666
2672
|
}
|
|
2667
2673
|
const fn = (e) => JSON.parse(JSON.stringify(e));
|
|
2668
|
-
|
|
2674
|
+
function qt(e) {
|
|
2675
|
+
if (e === null || typeof e != "object")
|
|
2676
|
+
return e;
|
|
2677
|
+
if (Array.isArray(e))
|
|
2678
|
+
return e.map((n) => qt(n));
|
|
2679
|
+
if (e["@type"] === "@builder.io/sdk:Element")
|
|
2680
|
+
return e;
|
|
2681
|
+
const t = {};
|
|
2682
|
+
for (const n in e)
|
|
2683
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = qt(e[n]));
|
|
2684
|
+
return t;
|
|
2685
|
+
}
|
|
2686
|
+
const Oi = ["svelte", "vue", "angular", "qwik", "solid"].includes(je), Pi = (e) => {
|
|
2687
|
+
if (Oi) {
|
|
2688
|
+
const t = fn(e);
|
|
2689
|
+
return {
|
|
2690
|
+
...t,
|
|
2691
|
+
properties: {
|
|
2692
|
+
...t.properties
|
|
2693
|
+
},
|
|
2694
|
+
actions: {
|
|
2695
|
+
...t.actions
|
|
2696
|
+
}
|
|
2697
|
+
};
|
|
2698
|
+
} else {
|
|
2699
|
+
const t = qt(oi(e, "children", "meta"));
|
|
2700
|
+
return {
|
|
2701
|
+
...t,
|
|
2702
|
+
properties: {
|
|
2703
|
+
...t.properties
|
|
2704
|
+
},
|
|
2705
|
+
actions: {
|
|
2706
|
+
...t.actions
|
|
2707
|
+
},
|
|
2708
|
+
children: e.children,
|
|
2709
|
+
meta: e.meta
|
|
2710
|
+
};
|
|
2711
|
+
}
|
|
2712
|
+
}, Ni = ({
|
|
2669
2713
|
block: e,
|
|
2670
2714
|
context: t,
|
|
2671
2715
|
localState: n,
|
|
@@ -2674,29 +2718,21 @@ const Ai = ({
|
|
|
2674
2718
|
}) => {
|
|
2675
2719
|
if (!e.bindings)
|
|
2676
2720
|
return e;
|
|
2677
|
-
const a =
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
},
|
|
2682
|
-
actions: {
|
|
2683
|
-
...a.actions
|
|
2684
|
-
}
|
|
2685
|
-
};
|
|
2686
|
-
for (const c in e.bindings) {
|
|
2687
|
-
const f = e.bindings[c], g = Le({
|
|
2688
|
-
code: f,
|
|
2721
|
+
const a = Pi(e);
|
|
2722
|
+
for (const s in e.bindings) {
|
|
2723
|
+
const u = e.bindings[s], f = Ve({
|
|
2724
|
+
code: u,
|
|
2689
2725
|
localState: n,
|
|
2690
2726
|
rootState: r,
|
|
2691
2727
|
rootSetState: i,
|
|
2692
2728
|
context: t,
|
|
2693
2729
|
enableCache: !0
|
|
2694
2730
|
});
|
|
2695
|
-
|
|
2731
|
+
hr(a, s, f);
|
|
2696
2732
|
}
|
|
2697
|
-
return
|
|
2733
|
+
return a;
|
|
2698
2734
|
};
|
|
2699
|
-
function
|
|
2735
|
+
function Bi({
|
|
2700
2736
|
block: e,
|
|
2701
2737
|
context: t,
|
|
2702
2738
|
shouldEvaluateBindings: n,
|
|
@@ -2705,7 +2741,7 @@ function bt({
|
|
|
2705
2741
|
rootSetState: a
|
|
2706
2742
|
}) {
|
|
2707
2743
|
const s = e;
|
|
2708
|
-
return n ?
|
|
2744
|
+
return n ? Ni({
|
|
2709
2745
|
block: s,
|
|
2710
2746
|
localState: r,
|
|
2711
2747
|
rootState: i,
|
|
@@ -2713,42 +2749,42 @@ function bt({
|
|
|
2713
2749
|
context: t
|
|
2714
2750
|
}) : s;
|
|
2715
2751
|
}
|
|
2716
|
-
const hn = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "",
|
|
2752
|
+
const hn = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", br = (e) => Object.entries(e).map(([n, r]) => {
|
|
2717
2753
|
if (typeof r == "string")
|
|
2718
2754
|
return `${hn(n)}: ${r};`;
|
|
2719
|
-
}).filter(yt),
|
|
2755
|
+
}).filter(yt), Mi = (e) => br(e).join(`
|
|
2720
2756
|
`), mt = ({
|
|
2721
2757
|
mediaQuery: e,
|
|
2722
2758
|
className: t,
|
|
2723
2759
|
styles: n
|
|
2724
2760
|
}) => {
|
|
2725
2761
|
const r = `.${t} {
|
|
2726
|
-
${
|
|
2762
|
+
${Mi(n)}
|
|
2727
2763
|
}`;
|
|
2728
2764
|
return e ? `${e} {
|
|
2729
2765
|
${r}
|
|
2730
2766
|
}` : r;
|
|
2731
2767
|
};
|
|
2732
|
-
function
|
|
2768
|
+
function Di({
|
|
2733
2769
|
style: e
|
|
2734
2770
|
}) {
|
|
2735
2771
|
return e;
|
|
2736
2772
|
}
|
|
2737
|
-
const
|
|
2773
|
+
const Fi = ({
|
|
2738
2774
|
block: e,
|
|
2739
2775
|
context: t
|
|
2740
|
-
}) =>
|
|
2776
|
+
}) => xr(Di({
|
|
2741
2777
|
style: e.style || {},
|
|
2742
2778
|
context: t,
|
|
2743
2779
|
block: e
|
|
2744
2780
|
}));
|
|
2745
|
-
function
|
|
2746
|
-
switch (
|
|
2781
|
+
function xr(e) {
|
|
2782
|
+
switch (je) {
|
|
2747
2783
|
case "svelte":
|
|
2748
2784
|
case "vue":
|
|
2749
2785
|
case "solid":
|
|
2750
2786
|
case "angular":
|
|
2751
|
-
return
|
|
2787
|
+
return br(e).join(" ");
|
|
2752
2788
|
case "qwik":
|
|
2753
2789
|
case "reactNative":
|
|
2754
2790
|
case "react":
|
|
@@ -2756,29 +2792,21 @@ function vr(e) {
|
|
|
2756
2792
|
return e;
|
|
2757
2793
|
}
|
|
2758
2794
|
}
|
|
2759
|
-
const
|
|
2795
|
+
const Wi = ({
|
|
2760
2796
|
block: e,
|
|
2761
|
-
|
|
2762
|
-
registeredComponents: n
|
|
2797
|
+
registeredComponents: t
|
|
2763
2798
|
}) => {
|
|
2764
|
-
var
|
|
2765
|
-
const
|
|
2766
|
-
|
|
2767
|
-
localState: t.localState,
|
|
2768
|
-
rootState: t.rootState,
|
|
2769
|
-
rootSetState: t.rootSetState,
|
|
2770
|
-
context: t.context,
|
|
2771
|
-
shouldEvaluateBindings: !1
|
|
2772
|
-
}).component) == null ? void 0 : a.name;
|
|
2773
|
-
if (!r)
|
|
2799
|
+
var i;
|
|
2800
|
+
const n = (i = e.component) == null ? void 0 : i.name;
|
|
2801
|
+
if (!n)
|
|
2774
2802
|
return null;
|
|
2775
|
-
const
|
|
2776
|
-
if (
|
|
2777
|
-
return
|
|
2803
|
+
const r = t[n];
|
|
2804
|
+
if (r)
|
|
2805
|
+
return r;
|
|
2778
2806
|
console.warn(`
|
|
2779
|
-
Could not find a registered component named "${
|
|
2807
|
+
Could not find a registered component named "${n}".
|
|
2780
2808
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2781
|
-
},
|
|
2809
|
+
}, Ui = ({
|
|
2782
2810
|
block: e,
|
|
2783
2811
|
context: t
|
|
2784
2812
|
}) => {
|
|
@@ -2788,7 +2816,7 @@ const Pi = ({
|
|
|
2788
2816
|
} = e;
|
|
2789
2817
|
if (!(n != null && n.collection))
|
|
2790
2818
|
return;
|
|
2791
|
-
const i =
|
|
2819
|
+
const i = Ve({
|
|
2792
2820
|
code: n.collection,
|
|
2793
2821
|
localState: t.localState,
|
|
2794
2822
|
rootState: t.rootState,
|
|
@@ -2812,27 +2840,27 @@ const Pi = ({
|
|
|
2812
2840
|
},
|
|
2813
2841
|
block: r
|
|
2814
2842
|
}));
|
|
2815
|
-
},
|
|
2843
|
+
}, Li = (e, t) => {
|
|
2816
2844
|
var n;
|
|
2817
2845
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
2818
2846
|
builderLinkComponent: t
|
|
2819
2847
|
} : {};
|
|
2820
|
-
},
|
|
2848
|
+
}, Vi = (e, t) => {
|
|
2821
2849
|
var n;
|
|
2822
2850
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
2823
2851
|
builderComponents: t
|
|
2824
2852
|
} : {};
|
|
2825
|
-
},
|
|
2853
|
+
}, _i = (e, t) => {
|
|
2826
2854
|
var n;
|
|
2827
2855
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
2828
2856
|
builderBlock: t
|
|
2829
2857
|
} : {};
|
|
2830
|
-
},
|
|
2858
|
+
}, $i = (e, t) => {
|
|
2831
2859
|
var n;
|
|
2832
2860
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
2833
2861
|
builderContext: t
|
|
2834
2862
|
} : {};
|
|
2835
|
-
},
|
|
2863
|
+
}, Sr = {
|
|
2836
2864
|
small: {
|
|
2837
2865
|
min: 320,
|
|
2838
2866
|
default: 321,
|
|
@@ -2848,11 +2876,11 @@ const Pi = ({
|
|
|
2848
2876
|
default: 991,
|
|
2849
2877
|
max: 1200
|
|
2850
2878
|
}
|
|
2851
|
-
}, er = (e, t =
|
|
2879
|
+
}, er = (e, t = Sr) => `@media (max-width: ${t[e].max}px)`, kr = ({
|
|
2852
2880
|
small: e,
|
|
2853
2881
|
medium: t
|
|
2854
2882
|
}) => {
|
|
2855
|
-
const n = fn(
|
|
2883
|
+
const n = fn(Sr);
|
|
2856
2884
|
if (!e || !t)
|
|
2857
2885
|
return n;
|
|
2858
2886
|
const r = Math.floor(e / 2);
|
|
@@ -2876,7 +2904,7 @@ const Pi = ({
|
|
|
2876
2904
|
}, n;
|
|
2877
2905
|
};
|
|
2878
2906
|
function kt(e) {
|
|
2879
|
-
return /* @__PURE__ */
|
|
2907
|
+
return /* @__PURE__ */ m(
|
|
2880
2908
|
"style",
|
|
2881
2909
|
{
|
|
2882
2910
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -2885,71 +2913,57 @@ function kt(e) {
|
|
|
2885
2913
|
}
|
|
2886
2914
|
);
|
|
2887
2915
|
}
|
|
2888
|
-
function
|
|
2916
|
+
function Hi(e) {
|
|
2889
2917
|
const t = function() {
|
|
2890
|
-
const i =
|
|
2891
|
-
block: e.block,
|
|
2892
|
-
localState: e.context.localState,
|
|
2893
|
-
rootState: e.context.rootState,
|
|
2894
|
-
rootSetState: e.context.rootSetState,
|
|
2895
|
-
context: e.context.context,
|
|
2896
|
-
shouldEvaluateBindings: !0
|
|
2897
|
-
});
|
|
2918
|
+
const i = e.block;
|
|
2898
2919
|
return yt(i.hide) ? !i.hide : yt(i.show) ? i.show : !0;
|
|
2899
2920
|
}, n = function() {
|
|
2900
|
-
var
|
|
2901
|
-
const i =
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
rootSetState: e.context.rootSetState,
|
|
2906
|
-
context: e.context.context,
|
|
2907
|
-
shouldEvaluateBindings: !0
|
|
2908
|
-
}), a = i.responsiveStyles, s = e.context.content, c = xr(
|
|
2909
|
-
((O = s == null ? void 0 : s.meta) == null ? void 0 : O.breakpoints) || {}
|
|
2910
|
-
), f = a == null ? void 0 : a.large, g = a == null ? void 0 : a.medium, b = a == null ? void 0 : a.small, m = i.id;
|
|
2911
|
-
if (!m)
|
|
2921
|
+
var I, y, V;
|
|
2922
|
+
const i = e.block, a = i.responsiveStyles, s = e.context.content, u = kr(
|
|
2923
|
+
((I = s == null ? void 0 : s.meta) == null ? void 0 : I.breakpoints) || {}
|
|
2924
|
+
), f = a == null ? void 0 : a.large, g = a == null ? void 0 : a.medium, b = a == null ? void 0 : a.small, v = i.id;
|
|
2925
|
+
if (!v)
|
|
2912
2926
|
return "";
|
|
2913
|
-
const
|
|
2914
|
-
className:
|
|
2927
|
+
const F = f ? mt({
|
|
2928
|
+
className: v,
|
|
2915
2929
|
styles: f
|
|
2916
|
-
}) : "",
|
|
2917
|
-
className:
|
|
2930
|
+
}) : "", N = g ? mt({
|
|
2931
|
+
className: v,
|
|
2918
2932
|
styles: g,
|
|
2919
2933
|
mediaQuery: er(
|
|
2920
2934
|
"medium",
|
|
2921
|
-
|
|
2935
|
+
u
|
|
2922
2936
|
)
|
|
2923
|
-
}) : "",
|
|
2924
|
-
className:
|
|
2937
|
+
}) : "", W = b ? mt({
|
|
2938
|
+
className: v,
|
|
2925
2939
|
styles: b,
|
|
2926
2940
|
mediaQuery: er(
|
|
2927
2941
|
"small",
|
|
2928
|
-
|
|
2942
|
+
u
|
|
2929
2943
|
)
|
|
2930
|
-
}) : "",
|
|
2931
|
-
let
|
|
2932
|
-
if (
|
|
2933
|
-
const G = ((
|
|
2934
|
-
|
|
2935
|
-
className: `${
|
|
2944
|
+
}) : "", E = i.animations && i.animations.find((G) => G.trigger === "hover");
|
|
2945
|
+
let M = "";
|
|
2946
|
+
if (E) {
|
|
2947
|
+
const G = ((V = (y = E.steps) == null ? void 0 : y[1]) == null ? void 0 : V.styles) || {};
|
|
2948
|
+
M = mt({
|
|
2949
|
+
className: `${v}:hover`,
|
|
2936
2950
|
styles: {
|
|
2937
2951
|
...G,
|
|
2938
|
-
transition: `all ${
|
|
2939
|
-
|
|
2952
|
+
transition: `all ${E.duration}s ${hn(
|
|
2953
|
+
E.easing
|
|
2940
2954
|
)}`,
|
|
2941
|
-
transitionDelay:
|
|
2955
|
+
transitionDelay: E.delay ? `${E.delay}s` : "0s"
|
|
2942
2956
|
}
|
|
2943
2957
|
}) || "";
|
|
2944
2958
|
}
|
|
2945
2959
|
return [
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2960
|
+
F,
|
|
2961
|
+
N,
|
|
2962
|
+
W,
|
|
2963
|
+
M
|
|
2950
2964
|
].join(" ");
|
|
2951
2965
|
};
|
|
2952
|
-
return /* @__PURE__ */
|
|
2966
|
+
return /* @__PURE__ */ m(K, { children: n() && t() ? /* @__PURE__ */ m(K, { children: /* @__PURE__ */ m(
|
|
2953
2967
|
kt,
|
|
2954
2968
|
{
|
|
2955
2969
|
id: "builderio-block",
|
|
@@ -2958,10 +2972,10 @@ function Wi(e) {
|
|
|
2958
2972
|
}
|
|
2959
2973
|
) }) : null });
|
|
2960
2974
|
}
|
|
2961
|
-
function
|
|
2975
|
+
function Ki(e) {
|
|
2962
2976
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2963
2977
|
}
|
|
2964
|
-
const
|
|
2978
|
+
const Gi = (e) => `on${Ki(e)}`, zi = (e, t) => (n) => Ve({
|
|
2965
2979
|
code: e,
|
|
2966
2980
|
context: t.context,
|
|
2967
2981
|
localState: t.localState,
|
|
@@ -2971,16 +2985,16 @@ const Li = (e) => `on${Ui(e)}`, Vi = (e, t) => (n) => Le({
|
|
|
2971
2985
|
isExpression: !1,
|
|
2972
2986
|
enableCache: !0
|
|
2973
2987
|
});
|
|
2974
|
-
function
|
|
2988
|
+
function Cr(e) {
|
|
2975
2989
|
var r;
|
|
2976
2990
|
const t = {}, n = (r = e.block.actions) != null ? r : {};
|
|
2977
2991
|
for (const i in n) {
|
|
2978
2992
|
if (!n.hasOwnProperty(i))
|
|
2979
2993
|
continue;
|
|
2980
2994
|
const a = n[i];
|
|
2981
|
-
let s =
|
|
2995
|
+
let s = Gi(i);
|
|
2982
2996
|
if (e.stripPrefix)
|
|
2983
|
-
switch (
|
|
2997
|
+
switch (je) {
|
|
2984
2998
|
case "vue":
|
|
2985
2999
|
s = s.replace("v-on:", "");
|
|
2986
3000
|
break;
|
|
@@ -2988,16 +3002,16 @@ function Sr(e) {
|
|
|
2988
3002
|
s = s.replace("on:", "");
|
|
2989
3003
|
break;
|
|
2990
3004
|
}
|
|
2991
|
-
t[s] =
|
|
3005
|
+
t[s] = zi(a, e);
|
|
2992
3006
|
}
|
|
2993
3007
|
return t;
|
|
2994
3008
|
}
|
|
2995
|
-
function
|
|
3009
|
+
function Yi({
|
|
2996
3010
|
properties: e
|
|
2997
3011
|
}) {
|
|
2998
3012
|
return e;
|
|
2999
3013
|
}
|
|
3000
|
-
const
|
|
3014
|
+
const Xi = (e) => ({
|
|
3001
3015
|
href: e.href
|
|
3002
3016
|
});
|
|
3003
3017
|
function pn({
|
|
@@ -3006,23 +3020,23 @@ function pn({
|
|
|
3006
3020
|
}) {
|
|
3007
3021
|
var r;
|
|
3008
3022
|
const n = {
|
|
3009
|
-
|
|
3023
|
+
...Xi(e),
|
|
3010
3024
|
...e.properties,
|
|
3011
3025
|
"builder-id": e.id,
|
|
3012
|
-
style:
|
|
3026
|
+
style: Fi({
|
|
3013
3027
|
block: e,
|
|
3014
3028
|
context: t
|
|
3015
3029
|
}),
|
|
3016
3030
|
[nt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3017
3031
|
};
|
|
3018
|
-
return
|
|
3032
|
+
return Yi({
|
|
3019
3033
|
properties: n,
|
|
3020
3034
|
context: t,
|
|
3021
3035
|
block: e
|
|
3022
3036
|
});
|
|
3023
3037
|
}
|
|
3024
|
-
function
|
|
3025
|
-
return /* @__PURE__ */
|
|
3038
|
+
function Ji(e) {
|
|
3039
|
+
return /* @__PURE__ */ m(
|
|
3026
3040
|
Qt,
|
|
3027
3041
|
{
|
|
3028
3042
|
TagName: e.Wrapper,
|
|
@@ -3030,7 +3044,7 @@ function Hi(e) {
|
|
|
3030
3044
|
block: e.block,
|
|
3031
3045
|
context: e.context
|
|
3032
3046
|
}),
|
|
3033
|
-
actionAttributes:
|
|
3047
|
+
actionAttributes: Cr({
|
|
3034
3048
|
block: e.block,
|
|
3035
3049
|
rootState: e.context.rootState,
|
|
3036
3050
|
rootSetState: e.context.rootSetState,
|
|
@@ -3042,14 +3056,14 @@ function Hi(e) {
|
|
|
3042
3056
|
}
|
|
3043
3057
|
);
|
|
3044
3058
|
}
|
|
3045
|
-
function
|
|
3059
|
+
function qi(e) {
|
|
3046
3060
|
function t() {
|
|
3047
3061
|
return e.includeBlockProps ? {
|
|
3048
3062
|
...pn({
|
|
3049
3063
|
block: e.block,
|
|
3050
3064
|
context: e.context
|
|
3051
3065
|
}),
|
|
3052
|
-
...
|
|
3066
|
+
...Cr({
|
|
3053
3067
|
block: e.block,
|
|
3054
3068
|
rootState: e.context.rootState,
|
|
3055
3069
|
rootSetState: e.context.rootSetState,
|
|
@@ -3058,9 +3072,9 @@ function Ki(e) {
|
|
|
3058
3072
|
})
|
|
3059
3073
|
} : {};
|
|
3060
3074
|
}
|
|
3061
|
-
return /* @__PURE__ */
|
|
3075
|
+
return /* @__PURE__ */ m(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
3062
3076
|
}
|
|
3063
|
-
const
|
|
3077
|
+
const Zi = ({
|
|
3064
3078
|
componentOptions: e,
|
|
3065
3079
|
builderBlock: t,
|
|
3066
3080
|
context: n,
|
|
@@ -3069,7 +3083,7 @@ const Gi = ({
|
|
|
3069
3083
|
isInteractive: a,
|
|
3070
3084
|
contextValue: s
|
|
3071
3085
|
}) => {
|
|
3072
|
-
const
|
|
3086
|
+
const u = {
|
|
3073
3087
|
...e,
|
|
3074
3088
|
/**
|
|
3075
3089
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -3088,15 +3102,15 @@ const Gi = ({
|
|
|
3088
3102
|
context: n,
|
|
3089
3103
|
wrapperProps: e,
|
|
3090
3104
|
includeBlockProps: i
|
|
3091
|
-
} :
|
|
3105
|
+
} : u;
|
|
3092
3106
|
};
|
|
3093
3107
|
function tr(e) {
|
|
3094
3108
|
var n;
|
|
3095
|
-
const t = e.isInteractive ?
|
|
3096
|
-
return /* @__PURE__ */
|
|
3109
|
+
const t = e.isInteractive ? qi : e.componentRef;
|
|
3110
|
+
return /* @__PURE__ */ m(K, { children: e.componentRef ? /* @__PURE__ */ m(K, { children: /* @__PURE__ */ m(
|
|
3097
3111
|
t,
|
|
3098
3112
|
{
|
|
3099
|
-
...
|
|
3113
|
+
...Zi({
|
|
3100
3114
|
componentOptions: e.componentOptions,
|
|
3101
3115
|
builderBlock: e.builderBlock,
|
|
3102
3116
|
context: e.context,
|
|
@@ -3106,7 +3120,7 @@ function tr(e) {
|
|
|
3106
3120
|
isInteractive: e.isInteractive,
|
|
3107
3121
|
contextValue: e.context
|
|
3108
3122
|
}),
|
|
3109
|
-
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */
|
|
3123
|
+
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */ m(
|
|
3110
3124
|
Ct,
|
|
3111
3125
|
{
|
|
3112
3126
|
block: r,
|
|
@@ -3119,9 +3133,9 @@ function tr(e) {
|
|
|
3119
3133
|
}
|
|
3120
3134
|
) }) : null });
|
|
3121
3135
|
}
|
|
3122
|
-
function
|
|
3136
|
+
function nr(e) {
|
|
3123
3137
|
const t = e.repeatContext;
|
|
3124
|
-
return /* @__PURE__ */
|
|
3138
|
+
return /* @__PURE__ */ m(
|
|
3125
3139
|
Ct,
|
|
3126
3140
|
{
|
|
3127
3141
|
block: e.block,
|
|
@@ -3132,21 +3146,20 @@ function zi(e) {
|
|
|
3132
3146
|
);
|
|
3133
3147
|
}
|
|
3134
3148
|
function Ct(e) {
|
|
3135
|
-
var
|
|
3149
|
+
var g, b, v, F;
|
|
3136
3150
|
const t = function() {
|
|
3137
|
-
return
|
|
3138
|
-
block: e.block,
|
|
3139
|
-
context: e.context,
|
|
3140
|
-
registeredComponents: e.registeredComponents
|
|
3141
|
-
});
|
|
3142
|
-
}, n = function() {
|
|
3143
|
-
return Ni({
|
|
3151
|
+
return Ui({
|
|
3144
3152
|
block: e.block,
|
|
3145
3153
|
context: e.context
|
|
3146
3154
|
});
|
|
3155
|
+
}, n = {
|
|
3156
|
+
value: null,
|
|
3157
|
+
update: !1
|
|
3147
3158
|
}, r = function() {
|
|
3148
|
-
var
|
|
3149
|
-
|
|
3159
|
+
var E;
|
|
3160
|
+
if (n.value && !n.update && !cr())
|
|
3161
|
+
return n.value;
|
|
3162
|
+
const W = (E = e.block.repeat) != null && E.collection ? e.block : Bi({
|
|
3150
3163
|
block: e.block,
|
|
3151
3164
|
localState: e.context.localState,
|
|
3152
3165
|
rootState: e.context.rootState,
|
|
@@ -3154,30 +3167,36 @@ function Ct(e) {
|
|
|
3154
3167
|
context: e.context.context,
|
|
3155
3168
|
shouldEvaluateBindings: !0
|
|
3156
3169
|
});
|
|
3170
|
+
return n.value = W, n.update = !1, W;
|
|
3157
3171
|
}, i = function() {
|
|
3158
|
-
|
|
3159
|
-
|
|
3172
|
+
return Wi({
|
|
3173
|
+
block: r(),
|
|
3174
|
+
registeredComponents: e.registeredComponents
|
|
3175
|
+
});
|
|
3160
3176
|
}, a = function() {
|
|
3161
|
-
var
|
|
3162
|
-
|
|
3163
|
-
return !!((P = n()) != null && P.length);
|
|
3164
|
-
const j = "hide" in r() ? r().hide : !1;
|
|
3165
|
-
return ("show" in r() ? r().show : !0) && !j;
|
|
3177
|
+
var E;
|
|
3178
|
+
return e.block.tagName === "a" || ((E = r().properties) == null ? void 0 : E.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
3166
3179
|
}, s = function() {
|
|
3167
|
-
var
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3180
|
+
var M, I;
|
|
3181
|
+
if ((M = e.block.repeat) != null && M.collection)
|
|
3182
|
+
return !!((I = t()) != null && I.length);
|
|
3183
|
+
const W = "hide" in r() ? r().hide : !1;
|
|
3184
|
+
return ("show" in r() ? r().show : !0) && !W;
|
|
3185
|
+
}, u = function() {
|
|
3186
|
+
var E, M;
|
|
3187
|
+
return !((E = i()) != null && E.component) && !t() ? (M = r().children) != null ? M : [] : [];
|
|
3188
|
+
}, f = function() {
|
|
3189
|
+
var W, E, M, I;
|
|
3171
3190
|
return {
|
|
3172
|
-
blockChildren: (
|
|
3173
|
-
componentRef: (
|
|
3191
|
+
blockChildren: (W = r().children) != null ? W : [],
|
|
3192
|
+
componentRef: (E = i()) == null ? void 0 : E.component,
|
|
3174
3193
|
componentOptions: {
|
|
3175
|
-
...
|
|
3176
|
-
...
|
|
3177
|
-
|
|
3178
|
-
...
|
|
3179
|
-
...
|
|
3180
|
-
|
|
3194
|
+
...ii(r()),
|
|
3195
|
+
..._i(i(), r()),
|
|
3196
|
+
...$i(i(), e.context),
|
|
3197
|
+
...Li(i(), e.linkComponent),
|
|
3198
|
+
...Vi(
|
|
3199
|
+
i(),
|
|
3181
3200
|
e.registeredComponents
|
|
3182
3201
|
)
|
|
3183
3202
|
},
|
|
@@ -3185,78 +3204,88 @@ function Ct(e) {
|
|
|
3185
3204
|
linkComponent: e.linkComponent,
|
|
3186
3205
|
registeredComponents: e.registeredComponents,
|
|
3187
3206
|
builderBlock: r(),
|
|
3188
|
-
includeBlockProps: ((
|
|
3189
|
-
isInteractive: !((
|
|
3207
|
+
includeBlockProps: ((M = i()) == null ? void 0 : M.noWrap) === !0,
|
|
3208
|
+
isInteractive: !((I = i()) != null && I.isRSC && je === "rsc")
|
|
3190
3209
|
};
|
|
3191
3210
|
};
|
|
3192
|
-
return /* @__PURE__ */
|
|
3193
|
-
/* @__PURE__ */
|
|
3194
|
-
(
|
|
3211
|
+
return /* @__PURE__ */ m(K, { children: s() ? /* @__PURE__ */ se(K, { children: [
|
|
3212
|
+
/* @__PURE__ */ m(Hi, { block: r(), context: e.context }),
|
|
3213
|
+
(g = i()) != null && g.noWrap ? t() ? /* @__PURE__ */ m(K, { children: (F = t()) == null ? void 0 : F.map((N, W) => /* @__PURE__ */ m(
|
|
3214
|
+
nr,
|
|
3215
|
+
{
|
|
3216
|
+
repeatContext: N.context,
|
|
3217
|
+
block: N.block,
|
|
3218
|
+
registeredComponents: e.registeredComponents,
|
|
3219
|
+
linkComponent: e.linkComponent
|
|
3220
|
+
},
|
|
3221
|
+
W
|
|
3222
|
+
)) }) : /* @__PURE__ */ m(
|
|
3195
3223
|
tr,
|
|
3196
3224
|
{
|
|
3197
|
-
componentRef:
|
|
3198
|
-
componentOptions:
|
|
3199
|
-
blockChildren:
|
|
3200
|
-
context:
|
|
3201
|
-
registeredComponents:
|
|
3202
|
-
linkComponent:
|
|
3203
|
-
builderBlock:
|
|
3204
|
-
includeBlockProps:
|
|
3205
|
-
isInteractive:
|
|
3225
|
+
componentRef: f().componentRef,
|
|
3226
|
+
componentOptions: f().componentOptions,
|
|
3227
|
+
blockChildren: f().blockChildren,
|
|
3228
|
+
context: f().context,
|
|
3229
|
+
registeredComponents: f().registeredComponents,
|
|
3230
|
+
linkComponent: f().linkComponent,
|
|
3231
|
+
builderBlock: f().builderBlock,
|
|
3232
|
+
includeBlockProps: f().includeBlockProps,
|
|
3233
|
+
isInteractive: f().isInteractive
|
|
3206
3234
|
}
|
|
3207
|
-
)
|
|
3208
|
-
|
|
3235
|
+
) : /* @__PURE__ */ m(K, { children: t() ? /* @__PURE__ */ m(K, { children: (v = t()) == null ? void 0 : v.map((N, W) => /* @__PURE__ */ m(
|
|
3236
|
+
nr,
|
|
3209
3237
|
{
|
|
3210
|
-
repeatContext:
|
|
3211
|
-
block:
|
|
3238
|
+
repeatContext: N.context,
|
|
3239
|
+
block: N.block,
|
|
3212
3240
|
registeredComponents: e.registeredComponents,
|
|
3213
3241
|
linkComponent: e.linkComponent
|
|
3214
3242
|
},
|
|
3215
|
-
|
|
3243
|
+
W
|
|
3216
3244
|
)) }) : /* @__PURE__ */ se(
|
|
3217
|
-
|
|
3245
|
+
Ji,
|
|
3218
3246
|
{
|
|
3219
|
-
Wrapper:
|
|
3247
|
+
Wrapper: a(),
|
|
3220
3248
|
block: r(),
|
|
3221
3249
|
context: e.context,
|
|
3222
3250
|
children: [
|
|
3223
|
-
/* @__PURE__ */
|
|
3251
|
+
/* @__PURE__ */ m(
|
|
3224
3252
|
tr,
|
|
3225
3253
|
{
|
|
3226
|
-
componentRef:
|
|
3227
|
-
componentOptions:
|
|
3228
|
-
blockChildren:
|
|
3229
|
-
context:
|
|
3230
|
-
registeredComponents:
|
|
3231
|
-
linkComponent:
|
|
3232
|
-
builderBlock:
|
|
3233
|
-
includeBlockProps:
|
|
3234
|
-
isInteractive:
|
|
3254
|
+
componentRef: f().componentRef,
|
|
3255
|
+
componentOptions: f().componentOptions,
|
|
3256
|
+
blockChildren: f().blockChildren,
|
|
3257
|
+
context: f().context,
|
|
3258
|
+
registeredComponents: f().registeredComponents,
|
|
3259
|
+
linkComponent: f().linkComponent,
|
|
3260
|
+
builderBlock: f().builderBlock,
|
|
3261
|
+
includeBlockProps: f().includeBlockProps,
|
|
3262
|
+
isInteractive: f().isInteractive
|
|
3235
3263
|
}
|
|
3236
3264
|
),
|
|
3237
|
-
(
|
|
3265
|
+
(b = u()) == null ? void 0 : b.map((N) => /* @__PURE__ */ m(
|
|
3238
3266
|
Ct,
|
|
3239
3267
|
{
|
|
3240
|
-
block:
|
|
3268
|
+
block: N,
|
|
3241
3269
|
registeredComponents: e.registeredComponents,
|
|
3242
3270
|
linkComponent: e.linkComponent,
|
|
3243
3271
|
context: e.context
|
|
3244
3272
|
},
|
|
3245
|
-
|
|
3273
|
+
N.id
|
|
3246
3274
|
))
|
|
3247
3275
|
]
|
|
3248
3276
|
}
|
|
3249
3277
|
) })
|
|
3250
3278
|
] }) : null });
|
|
3251
3279
|
}
|
|
3252
|
-
function
|
|
3253
|
-
|
|
3254
|
-
var i;
|
|
3255
|
-
return "builder-blocks" + ((i = e.blocks) != null && i.length ? "" : " no-blocks");
|
|
3256
|
-
}
|
|
3280
|
+
function Qi(e) {
|
|
3281
|
+
const t = bt(null);
|
|
3257
3282
|
function n() {
|
|
3258
|
-
var
|
|
3259
|
-
|
|
3283
|
+
var a;
|
|
3284
|
+
return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
|
|
3285
|
+
}
|
|
3286
|
+
function r() {
|
|
3287
|
+
var a, s;
|
|
3288
|
+
Ce() && !((a = e.blocks) != null && a.length) && ((s = window.parent) == null || s.postMessage(
|
|
3260
3289
|
{
|
|
3261
3290
|
type: "builder.clickEmptyBlocks",
|
|
3262
3291
|
data: {
|
|
@@ -3267,9 +3296,9 @@ function Yi(e) {
|
|
|
3267
3296
|
"*"
|
|
3268
3297
|
));
|
|
3269
3298
|
}
|
|
3270
|
-
function
|
|
3271
|
-
var
|
|
3272
|
-
Ce() && !((
|
|
3299
|
+
function i() {
|
|
3300
|
+
var a, s;
|
|
3301
|
+
Ce() && !((a = e.blocks) != null && a.length) && ((s = window.parent) == null || s.postMessage(
|
|
3273
3302
|
{
|
|
3274
3303
|
type: "builder.hoverEmptyBlocks",
|
|
3275
3304
|
data: {
|
|
@@ -3280,22 +3309,24 @@ function Yi(e) {
|
|
|
3280
3309
|
"*"
|
|
3281
3310
|
));
|
|
3282
3311
|
}
|
|
3283
|
-
return
|
|
3284
|
-
|
|
3312
|
+
return Q(() => {
|
|
3313
|
+
}, []), /* @__PURE__ */ se(K, { children: [
|
|
3314
|
+
/* @__PURE__ */ m(
|
|
3285
3315
|
e.BlocksWrapper,
|
|
3286
3316
|
{
|
|
3287
|
-
|
|
3317
|
+
ref: t,
|
|
3318
|
+
className: n() + " props-blocks-wrapper-51ef31b4",
|
|
3288
3319
|
"builder-path": e.path,
|
|
3289
3320
|
"builder-parent-id": e.parent,
|
|
3290
3321
|
style: e.styleProp,
|
|
3291
|
-
onClick: (
|
|
3292
|
-
onMouseEnter: (
|
|
3293
|
-
onKeyPress: (
|
|
3322
|
+
onClick: (a) => r(),
|
|
3323
|
+
onMouseEnter: (a) => i(),
|
|
3324
|
+
onKeyPress: (a) => r(),
|
|
3294
3325
|
...e.BlocksWrapperProps,
|
|
3295
3326
|
children: e.children
|
|
3296
3327
|
}
|
|
3297
3328
|
),
|
|
3298
|
-
/* @__PURE__ */
|
|
3329
|
+
/* @__PURE__ */ m("style", { children: `.props-blocks-wrapper-51ef31b4 {
|
|
3299
3330
|
display: flex;
|
|
3300
3331
|
flex-direction: column;
|
|
3301
3332
|
align-items: stretch;
|
|
@@ -3304,8 +3335,8 @@ function Yi(e) {
|
|
|
3304
3335
|
}
|
|
3305
3336
|
function mn(e) {
|
|
3306
3337
|
var t, n, r;
|
|
3307
|
-
return /* @__PURE__ */
|
|
3308
|
-
|
|
3338
|
+
return /* @__PURE__ */ m(
|
|
3339
|
+
Qi,
|
|
3309
3340
|
{
|
|
3310
3341
|
blocks: e.blocks,
|
|
3311
3342
|
parent: e.parent,
|
|
@@ -3313,7 +3344,7 @@ function mn(e) {
|
|
|
3313
3344
|
styleProp: e.styleProp,
|
|
3314
3345
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
3315
3346
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
3316
|
-
children: e.blocks ? /* @__PURE__ */
|
|
3347
|
+
children: e.blocks ? /* @__PURE__ */ m(K, { children: (r = e.blocks) == null ? void 0 : r.map((i) => /* @__PURE__ */ m(
|
|
3317
3348
|
Ct,
|
|
3318
3349
|
{
|
|
3319
3350
|
block: i,
|
|
@@ -3326,37 +3357,37 @@ function mn(e) {
|
|
|
3326
3357
|
}
|
|
3327
3358
|
);
|
|
3328
3359
|
}
|
|
3329
|
-
const
|
|
3330
|
-
function
|
|
3331
|
-
var
|
|
3332
|
-
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", i = function(
|
|
3333
|
-
return
|
|
3334
|
-
}, a = function(
|
|
3335
|
-
var
|
|
3336
|
-
return ((
|
|
3337
|
-
}, s = function(
|
|
3338
|
-
const
|
|
3339
|
-
return `calc(${
|
|
3340
|
-
},
|
|
3341
|
-
stackedStyle:
|
|
3342
|
-
desktopStyle:
|
|
3360
|
+
const eo = (e) => `builder-columns ${e}-breakpoints`;
|
|
3361
|
+
function to(e) {
|
|
3362
|
+
var E, M;
|
|
3363
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", i = function(y) {
|
|
3364
|
+
return y.link ? e.builderLinkComponent || "a" : "div";
|
|
3365
|
+
}, a = function(y) {
|
|
3366
|
+
var V;
|
|
3367
|
+
return ((V = n[y]) == null ? void 0 : V.width) || 100 / n.length;
|
|
3368
|
+
}, s = function(y) {
|
|
3369
|
+
const V = a(y), G = t * (n.length - 1) * (V / 100);
|
|
3370
|
+
return `calc(${V}% - ${G}px)`;
|
|
3371
|
+
}, u = function({
|
|
3372
|
+
stackedStyle: y,
|
|
3373
|
+
desktopStyle: V
|
|
3343
3374
|
}) {
|
|
3344
|
-
return r === "tablet" ?
|
|
3375
|
+
return r === "tablet" ? y : V;
|
|
3345
3376
|
}, f = function({
|
|
3346
|
-
stackedStyle:
|
|
3347
|
-
desktopStyle:
|
|
3377
|
+
stackedStyle: y,
|
|
3378
|
+
desktopStyle: V
|
|
3348
3379
|
}) {
|
|
3349
|
-
return r === "never" ?
|
|
3380
|
+
return r === "never" ? V : y;
|
|
3350
3381
|
}, g = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", b = function() {
|
|
3351
3382
|
return {
|
|
3352
3383
|
"--flex-dir": g,
|
|
3353
|
-
"--flex-dir-tablet":
|
|
3384
|
+
"--flex-dir-tablet": u({
|
|
3354
3385
|
stackedStyle: g,
|
|
3355
3386
|
desktopStyle: "row"
|
|
3356
3387
|
})
|
|
3357
3388
|
};
|
|
3358
|
-
},
|
|
3359
|
-
const
|
|
3389
|
+
}, v = function(y) {
|
|
3390
|
+
const V = y === 0 ? 0 : t, G = s(y), oe = `${V}px`, $ = "100%", ee = 0;
|
|
3360
3391
|
return {
|
|
3361
3392
|
...{
|
|
3362
3393
|
display: "flex",
|
|
@@ -3370,84 +3401,84 @@ function Ji(e) {
|
|
|
3370
3401
|
desktopStyle: G
|
|
3371
3402
|
}),
|
|
3372
3403
|
"--column-margin-left-mobile": f({
|
|
3373
|
-
stackedStyle:
|
|
3404
|
+
stackedStyle: ee,
|
|
3374
3405
|
desktopStyle: oe
|
|
3375
3406
|
}),
|
|
3376
|
-
"--column-width-tablet":
|
|
3407
|
+
"--column-width-tablet": u({
|
|
3377
3408
|
stackedStyle: $,
|
|
3378
3409
|
desktopStyle: G
|
|
3379
3410
|
}),
|
|
3380
|
-
"--column-margin-left-tablet":
|
|
3381
|
-
stackedStyle:
|
|
3411
|
+
"--column-margin-left-tablet": u({
|
|
3412
|
+
stackedStyle: ee,
|
|
3382
3413
|
desktopStyle: oe
|
|
3383
3414
|
})
|
|
3384
3415
|
};
|
|
3385
|
-
},
|
|
3416
|
+
}, F = function(y) {
|
|
3386
3417
|
var G, oe;
|
|
3387
|
-
return
|
|
3418
|
+
return kr(
|
|
3388
3419
|
((oe = (G = e.builderContext.content) == null ? void 0 : G.meta) == null ? void 0 : oe.breakpoints) || {}
|
|
3389
|
-
)[
|
|
3390
|
-
},
|
|
3391
|
-
const
|
|
3420
|
+
)[y].max;
|
|
3421
|
+
}, N = function() {
|
|
3422
|
+
const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
3392
3423
|
return `
|
|
3393
|
-
@media (max-width: ${
|
|
3424
|
+
@media (max-width: ${F("medium")}px) {
|
|
3394
3425
|
.${e.builderBlock.id}-breakpoints {
|
|
3395
3426
|
flex-direction: var(--flex-dir-tablet);
|
|
3396
3427
|
align-items: stretch;
|
|
3397
3428
|
}
|
|
3398
3429
|
|
|
3399
|
-
${
|
|
3430
|
+
${y} {
|
|
3400
3431
|
width: var(--column-width-tablet) !important;
|
|
3401
3432
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
3402
3433
|
}
|
|
3403
3434
|
}
|
|
3404
3435
|
|
|
3405
|
-
@media (max-width: ${
|
|
3436
|
+
@media (max-width: ${F("small")}px) {
|
|
3406
3437
|
.${e.builderBlock.id}-breakpoints {
|
|
3407
3438
|
flex-direction: var(--flex-dir);
|
|
3408
3439
|
align-items: stretch;
|
|
3409
3440
|
}
|
|
3410
3441
|
|
|
3411
|
-
${
|
|
3442
|
+
${y} {
|
|
3412
3443
|
width: var(--column-width-mobile) !important;
|
|
3413
3444
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
3414
3445
|
}
|
|
3415
3446
|
},
|
|
3416
3447
|
`;
|
|
3417
|
-
},
|
|
3448
|
+
}, W = function(y, V) {
|
|
3418
3449
|
return {
|
|
3419
|
-
...
|
|
3420
|
-
href:
|
|
3450
|
+
...y.link ? {
|
|
3451
|
+
href: y.link
|
|
3421
3452
|
} : {},
|
|
3422
3453
|
[nt()]: "builder-column",
|
|
3423
|
-
style:
|
|
3454
|
+
style: xr(v(V))
|
|
3424
3455
|
};
|
|
3425
3456
|
};
|
|
3426
3457
|
return /* @__PURE__ */ se(K, { children: [
|
|
3427
3458
|
/* @__PURE__ */ se(
|
|
3428
3459
|
"div",
|
|
3429
3460
|
{
|
|
3430
|
-
className:
|
|
3461
|
+
className: eo((E = e.builderBlock) == null ? void 0 : E.id) + " div-2cd13691",
|
|
3431
3462
|
style: b(),
|
|
3432
3463
|
children: [
|
|
3433
|
-
/* @__PURE__ */
|
|
3464
|
+
/* @__PURE__ */ m(
|
|
3434
3465
|
kt,
|
|
3435
3466
|
{
|
|
3436
3467
|
id: "builderio-columns",
|
|
3437
|
-
styles:
|
|
3468
|
+
styles: N(),
|
|
3438
3469
|
nonce: e.builderContext.nonce
|
|
3439
3470
|
}
|
|
3440
3471
|
),
|
|
3441
|
-
(
|
|
3472
|
+
(M = e.columns) == null ? void 0 : M.map((I, y) => /* @__PURE__ */ m(
|
|
3442
3473
|
Qt,
|
|
3443
3474
|
{
|
|
3444
|
-
TagName: i(
|
|
3475
|
+
TagName: i(I),
|
|
3445
3476
|
actionAttributes: {},
|
|
3446
|
-
attributes:
|
|
3447
|
-
children: /* @__PURE__ */
|
|
3477
|
+
attributes: W(I, y),
|
|
3478
|
+
children: /* @__PURE__ */ m(
|
|
3448
3479
|
mn,
|
|
3449
3480
|
{
|
|
3450
|
-
path: `component.options.columns.${
|
|
3481
|
+
path: `component.options.columns.${y}.blocks`,
|
|
3451
3482
|
parent: e.builderBlock.id,
|
|
3452
3483
|
styleProp: {
|
|
3453
3484
|
flexGrow: "1"
|
|
@@ -3455,40 +3486,40 @@ function Ji(e) {
|
|
|
3455
3486
|
context: e.builderContext,
|
|
3456
3487
|
registeredComponents: e.builderComponents,
|
|
3457
3488
|
linkComponent: e.builderLinkComponent,
|
|
3458
|
-
blocks:
|
|
3489
|
+
blocks: I.blocks
|
|
3459
3490
|
}
|
|
3460
3491
|
)
|
|
3461
3492
|
},
|
|
3462
|
-
|
|
3493
|
+
y
|
|
3463
3494
|
))
|
|
3464
3495
|
]
|
|
3465
3496
|
}
|
|
3466
3497
|
),
|
|
3467
|
-
/* @__PURE__ */
|
|
3498
|
+
/* @__PURE__ */ m("style", { children: `.div-2cd13691 {
|
|
3468
3499
|
display: flex;
|
|
3469
3500
|
line-height: normal;
|
|
3470
3501
|
}` })
|
|
3471
3502
|
] });
|
|
3472
3503
|
}
|
|
3473
|
-
function
|
|
3474
|
-
return /* @__PURE__ */
|
|
3504
|
+
function no(e) {
|
|
3505
|
+
return /* @__PURE__ */ m("span", { children: e.children });
|
|
3475
3506
|
}
|
|
3476
|
-
function
|
|
3507
|
+
function rr(e) {
|
|
3477
3508
|
return e.replace(/http(s)?:/, "");
|
|
3478
3509
|
}
|
|
3479
|
-
function
|
|
3510
|
+
function ro(e = "", t, n) {
|
|
3480
3511
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3481
3512
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + i + t + "=" + encodeURIComponent(n);
|
|
3482
3513
|
}
|
|
3483
|
-
function
|
|
3514
|
+
function io(e, t) {
|
|
3484
3515
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3485
3516
|
return e;
|
|
3486
3517
|
if (t === "master")
|
|
3487
|
-
return
|
|
3518
|
+
return rr(e);
|
|
3488
3519
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
3489
3520
|
if (n) {
|
|
3490
3521
|
const r = e.split(n[0]), i = n[3], a = t.match("x") ? t : `${t}x`;
|
|
3491
|
-
return
|
|
3522
|
+
return rr(`${r[0]}_${a}${i}`);
|
|
3492
3523
|
}
|
|
3493
3524
|
return null;
|
|
3494
3525
|
}
|
|
@@ -3499,26 +3530,26 @@ function zt(e) {
|
|
|
3499
3530
|
if (e.match(/builder\.io/)) {
|
|
3500
3531
|
let n = e;
|
|
3501
3532
|
const r = Number(e.split("?width=")[1]);
|
|
3502
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((i) => i !== r).map((i) => `${
|
|
3533
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((i) => i !== r).map((i) => `${ro(e, "width", i)} ${i}w`).concat([n]).join(", ");
|
|
3503
3534
|
}
|
|
3504
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3535
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [io(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3505
3536
|
}
|
|
3506
|
-
function
|
|
3507
|
-
var i, a, s,
|
|
3537
|
+
function oo(e) {
|
|
3538
|
+
var i, a, s, u, f, g;
|
|
3508
3539
|
function t() {
|
|
3509
|
-
var
|
|
3510
|
-
const
|
|
3511
|
-
if (!
|
|
3540
|
+
var F;
|
|
3541
|
+
const v = e.image || e.src;
|
|
3542
|
+
if (!v || // We can auto add srcset for cdn.builder.io and shopify
|
|
3512
3543
|
// images, otherwise you can supply this prop manually
|
|
3513
|
-
!(
|
|
3544
|
+
!(v.match(/builder\.io/) || v.match(/cdn\.shopify\.com/)))
|
|
3514
3545
|
return e.srcset;
|
|
3515
3546
|
if (!e.noWebp) {
|
|
3516
|
-
if (e.srcset && ((
|
|
3547
|
+
if (e.srcset && ((F = e.image) != null && F.includes("builder.io/api/v1/image"))) {
|
|
3517
3548
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3518
|
-
return console.debug("Removed given srcset"), zt(
|
|
3549
|
+
return console.debug("Removed given srcset"), zt(v);
|
|
3519
3550
|
} else if (e.image && !e.srcset)
|
|
3520
|
-
return zt(
|
|
3521
|
-
return zt(
|
|
3551
|
+
return zt(v);
|
|
3552
|
+
return zt(v);
|
|
3522
3553
|
}
|
|
3523
3554
|
}
|
|
3524
3555
|
function n() {
|
|
@@ -3535,12 +3566,12 @@ function eo(e) {
|
|
|
3535
3566
|
};
|
|
3536
3567
|
return e.aspectRatio ? b : void 0;
|
|
3537
3568
|
}
|
|
3538
|
-
return
|
|
3569
|
+
return Q(() => {
|
|
3539
3570
|
}, []), /* @__PURE__ */ se(K, { children: [
|
|
3540
3571
|
/* @__PURE__ */ se(K, { children: [
|
|
3541
3572
|
/* @__PURE__ */ se("picture", { children: [
|
|
3542
|
-
n() ? /* @__PURE__ */
|
|
3543
|
-
/* @__PURE__ */
|
|
3573
|
+
n() ? /* @__PURE__ */ m("source", { type: "image/webp", srcSet: n() }) : null,
|
|
3574
|
+
/* @__PURE__ */ m(
|
|
3544
3575
|
"img",
|
|
3545
3576
|
{
|
|
3546
3577
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -3559,7 +3590,7 @@ function eo(e) {
|
|
|
3559
3590
|
}
|
|
3560
3591
|
)
|
|
3561
3592
|
] }),
|
|
3562
|
-
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */
|
|
3593
|
+
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ m(
|
|
3563
3594
|
"div",
|
|
3564
3595
|
{
|
|
3565
3596
|
className: "builder-image-sizer div-2d6925f2",
|
|
@@ -3568,10 +3599,10 @@ function eo(e) {
|
|
|
3568
3599
|
}
|
|
3569
3600
|
}
|
|
3570
3601
|
) : null,
|
|
3571
|
-
(
|
|
3572
|
-
!e.fitContent && ((g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length) ? /* @__PURE__ */
|
|
3602
|
+
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ m(K, { children: e.children }) : null,
|
|
3603
|
+
!e.fitContent && ((g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length) ? /* @__PURE__ */ m("div", { className: "div-2d6925f2-2", children: e.children }) : null
|
|
3573
3604
|
] }),
|
|
3574
|
-
/* @__PURE__ */
|
|
3605
|
+
/* @__PURE__ */ m("style", { children: `.img-2d6925f2 {
|
|
3575
3606
|
opacity: 1;
|
|
3576
3607
|
transition: opacity 0.2s ease-in-out;
|
|
3577
3608
|
}.div-2d6925f2 {
|
|
@@ -3590,8 +3621,8 @@ function eo(e) {
|
|
|
3590
3621
|
}` })
|
|
3591
3622
|
] });
|
|
3592
3623
|
}
|
|
3593
|
-
function
|
|
3594
|
-
return /* @__PURE__ */
|
|
3624
|
+
function ao(e) {
|
|
3625
|
+
return /* @__PURE__ */ m(
|
|
3595
3626
|
"section",
|
|
3596
3627
|
{
|
|
3597
3628
|
...e.attributes,
|
|
@@ -3611,7 +3642,7 @@ function to(e) {
|
|
|
3611
3642
|
}
|
|
3612
3643
|
);
|
|
3613
3644
|
}
|
|
3614
|
-
const
|
|
3645
|
+
const so = {
|
|
3615
3646
|
name: "Core:Button",
|
|
3616
3647
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3617
3648
|
defaultStyles: {
|
|
@@ -3647,7 +3678,7 @@ const no = {
|
|
|
3647
3678
|
shouldReceiveBuilderProps: {
|
|
3648
3679
|
builderLinkComponent: !0
|
|
3649
3680
|
}
|
|
3650
|
-
},
|
|
3681
|
+
}, lo = {
|
|
3651
3682
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3652
3683
|
name: "Columns",
|
|
3653
3684
|
isRSC: !0,
|
|
@@ -3826,7 +3857,7 @@ const no = {
|
|
|
3826
3857
|
});
|
|
3827
3858
|
}
|
|
3828
3859
|
const n = e.get("columns");
|
|
3829
|
-
Array.isArray(n) && n.find((i) => i.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((
|
|
3860
|
+
Array.isArray(n) && n.find((i) => i.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((u, f) => u + f.get("width"), 0) !== 100) && t();
|
|
3830
3861
|
}
|
|
3831
3862
|
}, {
|
|
3832
3863
|
name: "space",
|
|
@@ -3854,13 +3885,13 @@ const no = {
|
|
|
3854
3885
|
builderComponents: !0,
|
|
3855
3886
|
builderLinkComponent: !0
|
|
3856
3887
|
}
|
|
3857
|
-
},
|
|
3888
|
+
}, co = {
|
|
3858
3889
|
name: "Fragment",
|
|
3859
3890
|
static: !0,
|
|
3860
3891
|
hidden: !0,
|
|
3861
3892
|
canHaveChildren: !0,
|
|
3862
3893
|
noWrap: !0
|
|
3863
|
-
},
|
|
3894
|
+
}, uo = {
|
|
3864
3895
|
name: "Image",
|
|
3865
3896
|
static: !0,
|
|
3866
3897
|
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",
|
|
@@ -3880,17 +3911,17 @@ const no = {
|
|
|
3880
3911
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
3881
3912
|
onChange: (e) => {
|
|
3882
3913
|
e.delete("srcset"), e.delete("noWebp");
|
|
3883
|
-
function n(s,
|
|
3914
|
+
function n(s, u = 6e4) {
|
|
3884
3915
|
return new Promise((f, g) => {
|
|
3885
3916
|
const b = document.createElement("img");
|
|
3886
|
-
let
|
|
3917
|
+
let v = !1;
|
|
3887
3918
|
b.onload = () => {
|
|
3888
|
-
|
|
3889
|
-
}, b.addEventListener("error", (
|
|
3890
|
-
console.warn("Image load failed",
|
|
3919
|
+
v = !0, f(b);
|
|
3920
|
+
}, b.addEventListener("error", (F) => {
|
|
3921
|
+
console.warn("Image load failed", F.error), g(F.error);
|
|
3891
3922
|
}), b.src = s, setTimeout(() => {
|
|
3892
|
-
|
|
3893
|
-
},
|
|
3923
|
+
v || g(new Error("Image load timed out"));
|
|
3924
|
+
}, u);
|
|
3894
3925
|
});
|
|
3895
3926
|
}
|
|
3896
3927
|
function r(s) {
|
|
@@ -3901,8 +3932,8 @@ const no = {
|
|
|
3901
3932
|
s.type.includes("svg") && e.set("noWebp", !0);
|
|
3902
3933
|
}), i && (!a || a === 0.7041))
|
|
3903
3934
|
return n(i).then((s) => {
|
|
3904
|
-
const
|
|
3905
|
-
e.get("image") === i && (!
|
|
3935
|
+
const u = e.get("aspectRatio");
|
|
3936
|
+
e.get("image") === i && (!u || u === 0.7041) && s.width && s.height && (e.set("aspectRatio", r(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
|
|
3906
3937
|
});
|
|
3907
3938
|
}
|
|
3908
3939
|
}, {
|
|
@@ -3968,7 +3999,7 @@ const no = {
|
|
|
3968
3999
|
shouldReceiveBuilderProps: {
|
|
3969
4000
|
builderBlock: !0
|
|
3970
4001
|
}
|
|
3971
|
-
},
|
|
4002
|
+
}, fo = {
|
|
3972
4003
|
name: "Core:Section",
|
|
3973
4004
|
static: !0,
|
|
3974
4005
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -4007,7 +4038,7 @@ const no = {
|
|
|
4007
4038
|
}
|
|
4008
4039
|
}
|
|
4009
4040
|
}]
|
|
4010
|
-
},
|
|
4041
|
+
}, ho = {
|
|
4011
4042
|
name: "Slot",
|
|
4012
4043
|
isRSC: !0,
|
|
4013
4044
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -4021,12 +4052,13 @@ const no = {
|
|
|
4021
4052
|
defaultValue: "children"
|
|
4022
4053
|
}],
|
|
4023
4054
|
shouldReceiveBuilderProps: {
|
|
4024
|
-
builderContext: !0
|
|
4055
|
+
builderContext: !0,
|
|
4056
|
+
builderComponents: !0
|
|
4025
4057
|
}
|
|
4026
4058
|
};
|
|
4027
|
-
function
|
|
4059
|
+
function po(e) {
|
|
4028
4060
|
var t, n, r;
|
|
4029
|
-
return /* @__PURE__ */
|
|
4061
|
+
return /* @__PURE__ */ m(
|
|
4030
4062
|
"div",
|
|
4031
4063
|
{
|
|
4032
4064
|
style: {
|
|
@@ -4035,19 +4067,20 @@ function lo(e) {
|
|
|
4035
4067
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
4036
4068
|
"builder-slot": e.name
|
|
4037
4069
|
},
|
|
4038
|
-
children: /* @__PURE__ */
|
|
4070
|
+
children: /* @__PURE__ */ m(
|
|
4039
4071
|
mn,
|
|
4040
4072
|
{
|
|
4041
4073
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
4042
4074
|
path: `symbol.data.${e.name}`,
|
|
4043
4075
|
context: e.builderContext,
|
|
4076
|
+
registeredComponents: e.builderComponents,
|
|
4044
4077
|
blocks: (r = e.builderContext.rootState) == null ? void 0 : r[e.name]
|
|
4045
4078
|
}
|
|
4046
4079
|
)
|
|
4047
4080
|
}
|
|
4048
4081
|
);
|
|
4049
4082
|
}
|
|
4050
|
-
const
|
|
4083
|
+
const mo = {
|
|
4051
4084
|
name: "Symbol",
|
|
4052
4085
|
noWrap: !0,
|
|
4053
4086
|
static: !0,
|
|
@@ -4086,7 +4119,7 @@ const co = {
|
|
|
4086
4119
|
builderComponents: !0,
|
|
4087
4120
|
builderLinkComponent: !0
|
|
4088
4121
|
}
|
|
4089
|
-
},
|
|
4122
|
+
}, go = {
|
|
4090
4123
|
shouldReceiveBuilderProps: {
|
|
4091
4124
|
builderBlock: !1,
|
|
4092
4125
|
builderContext: !0
|
|
@@ -4109,8 +4142,8 @@ const co = {
|
|
|
4109
4142
|
textAlign: "center"
|
|
4110
4143
|
}
|
|
4111
4144
|
};
|
|
4112
|
-
function
|
|
4113
|
-
return /* @__PURE__ */
|
|
4145
|
+
function yo(e) {
|
|
4146
|
+
return /* @__PURE__ */ m(
|
|
4114
4147
|
"div",
|
|
4115
4148
|
{
|
|
4116
4149
|
className: "builder-text",
|
|
@@ -4120,16 +4153,16 @@ function fo(e) {
|
|
|
4120
4153
|
context: i,
|
|
4121
4154
|
localState: a,
|
|
4122
4155
|
rootState: s,
|
|
4123
|
-
rootSetState:
|
|
4156
|
+
rootSetState: u
|
|
4124
4157
|
} = r;
|
|
4125
4158
|
return String(((f = e.text) == null ? void 0 : f.toString()) || "").replace(
|
|
4126
4159
|
/{{([^}]+)}}/g,
|
|
4127
|
-
(g, b) =>
|
|
4160
|
+
(g, b) => Ve({
|
|
4128
4161
|
code: b,
|
|
4129
4162
|
context: i,
|
|
4130
4163
|
localState: a,
|
|
4131
4164
|
rootState: s,
|
|
4132
|
-
rootSetState:
|
|
4165
|
+
rootSetState: u,
|
|
4133
4166
|
enableCache: !1
|
|
4134
4167
|
})
|
|
4135
4168
|
);
|
|
@@ -4140,7 +4173,7 @@ function fo(e) {
|
|
|
4140
4173
|
}
|
|
4141
4174
|
);
|
|
4142
4175
|
}
|
|
4143
|
-
const
|
|
4176
|
+
const vo = {
|
|
4144
4177
|
name: "Custom Code",
|
|
4145
4178
|
static: !0,
|
|
4146
4179
|
requiredPermissions: ["editCode"],
|
|
@@ -4163,11 +4196,11 @@ const ho = {
|
|
|
4163
4196
|
advanced: !0
|
|
4164
4197
|
}]
|
|
4165
4198
|
};
|
|
4166
|
-
function
|
|
4167
|
-
const t =
|
|
4168
|
-
return
|
|
4169
|
-
var
|
|
4170
|
-
if (!((
|
|
4199
|
+
function bo(e) {
|
|
4200
|
+
const t = bt(null), [n, r] = ye(() => []), [i, a] = ye(() => []);
|
|
4201
|
+
return Q(() => {
|
|
4202
|
+
var u;
|
|
4203
|
+
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window == "undefined")
|
|
4171
4204
|
return;
|
|
4172
4205
|
const s = t.current.getElementsByTagName("script");
|
|
4173
4206
|
for (let f = 0; f < s.length; f++) {
|
|
@@ -4192,7 +4225,7 @@ function po(e) {
|
|
|
4192
4225
|
}
|
|
4193
4226
|
}
|
|
4194
4227
|
}
|
|
4195
|
-
}, []), /* @__PURE__ */
|
|
4228
|
+
}, []), /* @__PURE__ */ m(
|
|
4196
4229
|
"div",
|
|
4197
4230
|
{
|
|
4198
4231
|
ref: t,
|
|
@@ -4201,7 +4234,7 @@ function po(e) {
|
|
|
4201
4234
|
}
|
|
4202
4235
|
);
|
|
4203
4236
|
}
|
|
4204
|
-
const
|
|
4237
|
+
const xo = {
|
|
4205
4238
|
name: "Embed",
|
|
4206
4239
|
static: !0,
|
|
4207
4240
|
inputs: [{
|
|
@@ -4216,30 +4249,30 @@ const mo = {
|
|
|
4216
4249
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4217
4250
|
hideFromUI: !0
|
|
4218
4251
|
}]
|
|
4219
|
-
},
|
|
4220
|
-
function
|
|
4221
|
-
const t =
|
|
4252
|
+
}, So = ["text/javascript", "application/javascript", "application/ecmascript"], ko = (e) => So.includes(e.type);
|
|
4253
|
+
function Co(e) {
|
|
4254
|
+
const t = bt(null), [n, r] = ye(() => []), [i, a] = ye(() => []), [s, u] = ye(() => !1);
|
|
4222
4255
|
function f() {
|
|
4223
4256
|
if (!t.current || !t.current.getElementsByTagName)
|
|
4224
4257
|
return;
|
|
4225
4258
|
const g = t.current.getElementsByTagName("script");
|
|
4226
4259
|
for (let b = 0; b < g.length; b++) {
|
|
4227
|
-
const
|
|
4228
|
-
if (
|
|
4229
|
-
n.push(
|
|
4230
|
-
const
|
|
4231
|
-
|
|
4232
|
-
} else if (
|
|
4260
|
+
const v = g[b];
|
|
4261
|
+
if (v.src && !n.includes(v.src)) {
|
|
4262
|
+
n.push(v.src);
|
|
4263
|
+
const F = document.createElement("script");
|
|
4264
|
+
F.async = !0, F.src = v.src, document.head.appendChild(F);
|
|
4265
|
+
} else if (ko(v) && !i.includes(v.innerText))
|
|
4233
4266
|
try {
|
|
4234
|
-
i.push(
|
|
4235
|
-
} catch (
|
|
4236
|
-
console.warn("`Embed`: Error running script:",
|
|
4267
|
+
i.push(v.innerText), new Function(v.innerText)();
|
|
4268
|
+
} catch (F) {
|
|
4269
|
+
console.warn("`Embed`: Error running script:", F);
|
|
4237
4270
|
}
|
|
4238
4271
|
}
|
|
4239
4272
|
}
|
|
4240
|
-
return
|
|
4241
|
-
t.current && !s && (
|
|
4242
|
-
}, [t.current, s]), /* @__PURE__ */
|
|
4273
|
+
return Q(() => {
|
|
4274
|
+
t.current && !s && (u(!0), f());
|
|
4275
|
+
}, [t.current, s]), /* @__PURE__ */ m(
|
|
4243
4276
|
"div",
|
|
4244
4277
|
{
|
|
4245
4278
|
className: "builder-embed",
|
|
@@ -4248,7 +4281,7 @@ function vo(e) {
|
|
|
4248
4281
|
}
|
|
4249
4282
|
);
|
|
4250
4283
|
}
|
|
4251
|
-
const
|
|
4284
|
+
const wo = {
|
|
4252
4285
|
// friendlyName?
|
|
4253
4286
|
name: "Raw:Img",
|
|
4254
4287
|
hideFromInsertMenu: !0,
|
|
@@ -4263,8 +4296,8 @@ const bo = {
|
|
|
4263
4296
|
noWrap: !0,
|
|
4264
4297
|
static: !0
|
|
4265
4298
|
};
|
|
4266
|
-
function
|
|
4267
|
-
return /* @__PURE__ */
|
|
4299
|
+
function Eo(e) {
|
|
4300
|
+
return /* @__PURE__ */ m(
|
|
4268
4301
|
"img",
|
|
4269
4302
|
{
|
|
4270
4303
|
style: {
|
|
@@ -4278,7 +4311,7 @@ function xo(e) {
|
|
|
4278
4311
|
Ce() && e.imgSrc || "default-key"
|
|
4279
4312
|
);
|
|
4280
4313
|
}
|
|
4281
|
-
const
|
|
4314
|
+
const Io = {
|
|
4282
4315
|
name: "Video",
|
|
4283
4316
|
canHaveChildren: !0,
|
|
4284
4317
|
defaultStyles: {
|
|
@@ -4363,8 +4396,8 @@ const So = {
|
|
|
4363
4396
|
builderBlock: !0
|
|
4364
4397
|
}
|
|
4365
4398
|
};
|
|
4366
|
-
function
|
|
4367
|
-
var r, i, a, s,
|
|
4399
|
+
function To(e) {
|
|
4400
|
+
var r, i, a, s, u, f, g;
|
|
4368
4401
|
function t() {
|
|
4369
4402
|
return {
|
|
4370
4403
|
...e.autoPlay === !0 ? {
|
|
@@ -4396,7 +4429,7 @@ function ko(e) {
|
|
|
4396
4429
|
position: "relative"
|
|
4397
4430
|
},
|
|
4398
4431
|
children: [
|
|
4399
|
-
/* @__PURE__ */
|
|
4432
|
+
/* @__PURE__ */ m(
|
|
4400
4433
|
"video",
|
|
4401
4434
|
{
|
|
4402
4435
|
className: "builder-video",
|
|
@@ -4418,10 +4451,10 @@ function ko(e) {
|
|
|
4418
4451
|
},
|
|
4419
4452
|
src: e.video || "no-src",
|
|
4420
4453
|
poster: e.posterImage,
|
|
4421
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
4454
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ m("source", { type: "video/mp4", src: e.video })
|
|
4422
4455
|
}
|
|
4423
4456
|
),
|
|
4424
|
-
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */
|
|
4457
|
+
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */ m(
|
|
4425
4458
|
"div",
|
|
4426
4459
|
{
|
|
4427
4460
|
style: {
|
|
@@ -4432,7 +4465,7 @@ function ko(e) {
|
|
|
4432
4465
|
}
|
|
4433
4466
|
}
|
|
4434
4467
|
) : null,
|
|
4435
|
-
(
|
|
4468
|
+
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ m(
|
|
4436
4469
|
"div",
|
|
4437
4470
|
{
|
|
4438
4471
|
style: {
|
|
@@ -4443,7 +4476,7 @@ function ko(e) {
|
|
|
4443
4476
|
children: e.children
|
|
4444
4477
|
}
|
|
4445
4478
|
) : null,
|
|
4446
|
-
(g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length && !e.fitContent ? /* @__PURE__ */
|
|
4479
|
+
(g = (f = e.builderBlock) == null ? void 0 : f.children) != null && g.length && !e.fitContent ? /* @__PURE__ */ m(
|
|
4447
4480
|
"div",
|
|
4448
4481
|
{
|
|
4449
4482
|
style: {
|
|
@@ -4464,43 +4497,43 @@ function ko(e) {
|
|
|
4464
4497
|
}
|
|
4465
4498
|
);
|
|
4466
4499
|
}
|
|
4467
|
-
const
|
|
4468
|
-
component:
|
|
4469
|
-
...
|
|
4500
|
+
const Ao = () => [{
|
|
4501
|
+
component: bo,
|
|
4502
|
+
...vo
|
|
4470
4503
|
}, {
|
|
4471
|
-
component:
|
|
4472
|
-
...
|
|
4504
|
+
component: Co,
|
|
4505
|
+
...xo
|
|
4473
4506
|
}, {
|
|
4474
|
-
component:
|
|
4475
|
-
...
|
|
4507
|
+
component: Eo,
|
|
4508
|
+
...wo
|
|
4476
4509
|
}, {
|
|
4477
|
-
component:
|
|
4478
|
-
...
|
|
4479
|
-
}],
|
|
4480
|
-
component:
|
|
4481
|
-
...
|
|
4510
|
+
component: To,
|
|
4511
|
+
...Io
|
|
4512
|
+
}], ir = () => [{
|
|
4513
|
+
component: ri,
|
|
4514
|
+
...so
|
|
4482
4515
|
}, {
|
|
4483
|
-
component:
|
|
4484
|
-
...
|
|
4516
|
+
component: to,
|
|
4517
|
+
...lo
|
|
4485
4518
|
}, {
|
|
4486
|
-
component:
|
|
4487
|
-
...
|
|
4519
|
+
component: no,
|
|
4520
|
+
...co
|
|
4488
4521
|
}, {
|
|
4489
|
-
component:
|
|
4490
|
-
...
|
|
4522
|
+
component: oo,
|
|
4523
|
+
...uo
|
|
4491
4524
|
}, {
|
|
4492
|
-
component:
|
|
4493
|
-
...
|
|
4525
|
+
component: ao,
|
|
4526
|
+
...fo
|
|
4494
4527
|
}, {
|
|
4495
|
-
component:
|
|
4496
|
-
...
|
|
4528
|
+
component: po,
|
|
4529
|
+
...ho
|
|
4497
4530
|
}, {
|
|
4498
|
-
component:
|
|
4499
|
-
...
|
|
4531
|
+
component: ra,
|
|
4532
|
+
...mo
|
|
4500
4533
|
}, {
|
|
4501
|
-
component:
|
|
4502
|
-
...
|
|
4503
|
-
}, ...
|
|
4534
|
+
component: yo,
|
|
4535
|
+
...go
|
|
4536
|
+
}, ...Ao()], jo = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4504
4537
|
function getAndSetVariantId() {
|
|
4505
4538
|
function setCookie(name, value, days) {
|
|
4506
4539
|
let expires = '';
|
|
@@ -4556,7 +4589,7 @@ const Co = () => [{
|
|
|
4556
4589
|
}).join('');
|
|
4557
4590
|
styleEl.innerHTML = newStyleStr;
|
|
4558
4591
|
}
|
|
4559
|
-
}`,
|
|
4592
|
+
}`, Ro = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4560
4593
|
if (!navigator.cookieEnabled) {
|
|
4561
4594
|
return;
|
|
4562
4595
|
}
|
|
@@ -4590,27 +4623,27 @@ const Co = () => [{
|
|
|
4590
4623
|
thisScriptEl?.remove();
|
|
4591
4624
|
}
|
|
4592
4625
|
return;
|
|
4593
|
-
}`,
|
|
4626
|
+
}`, wr = "builderIoAbTest", Er = "builderIoRenderContent", gt = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4594
4627
|
...t,
|
|
4595
4628
|
testVariationId: t.id,
|
|
4596
4629
|
id: e == null ? void 0 : e.id
|
|
4597
|
-
})),
|
|
4630
|
+
})), Oo = ({
|
|
4598
4631
|
canTrack: e,
|
|
4599
4632
|
content: t
|
|
4600
|
-
}) => !(!(gt(t).length > 0) || !e ||
|
|
4601
|
-
window.${
|
|
4602
|
-
window.${
|
|
4603
|
-
`,
|
|
4604
|
-
window.${
|
|
4605
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4606
|
-
)`,
|
|
4633
|
+
}) => !(!(gt(t).length > 0) || !e || We()), Po = (e) => e === "react" || e === "reactNative", Ir = Po(je), No = () => `
|
|
4634
|
+
window.${wr} = ${jo}
|
|
4635
|
+
window.${Er} = ${Ro}
|
|
4636
|
+
`, Bo = (e, t) => `
|
|
4637
|
+
window.${wr}(
|
|
4638
|
+
"${t}",${JSON.stringify(e)}, ${Ir}
|
|
4639
|
+
)`, Mo = ({
|
|
4607
4640
|
contentId: e,
|
|
4608
4641
|
variationId: t
|
|
4609
|
-
}) => `window.${
|
|
4610
|
-
"${t}", "${e}", ${
|
|
4642
|
+
}) => `window.${Er}(
|
|
4643
|
+
"${t}", "${e}", ${Ir}
|
|
4611
4644
|
)`;
|
|
4612
|
-
function
|
|
4613
|
-
return /* @__PURE__ */
|
|
4645
|
+
function Zt(e) {
|
|
4646
|
+
return /* @__PURE__ */ m(
|
|
4614
4647
|
"script",
|
|
4615
4648
|
{
|
|
4616
4649
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -4619,7 +4652,7 @@ function qt(e) {
|
|
|
4619
4652
|
}
|
|
4620
4653
|
);
|
|
4621
4654
|
}
|
|
4622
|
-
const
|
|
4655
|
+
const Do = Qr({
|
|
4623
4656
|
content: null,
|
|
4624
4657
|
context: {},
|
|
4625
4658
|
localState: void 0,
|
|
@@ -4634,10 +4667,10 @@ const Oo = Zr({
|
|
|
4634
4667
|
BlocksWrapperProps: {},
|
|
4635
4668
|
nonce: ""
|
|
4636
4669
|
});
|
|
4637
|
-
function
|
|
4670
|
+
function or(e) {
|
|
4638
4671
|
return Math.round(e * 1e3) / 1e3;
|
|
4639
4672
|
}
|
|
4640
|
-
const
|
|
4673
|
+
const Fo = (e, t, n = !0) => {
|
|
4641
4674
|
if (!(e instanceof HTMLElement))
|
|
4642
4675
|
return null;
|
|
4643
4676
|
let r = n ? e : e.parentElement;
|
|
@@ -4648,28 +4681,28 @@ const Po = (e, t, n = !0) => {
|
|
|
4648
4681
|
return r;
|
|
4649
4682
|
} while (r = r.parentElement);
|
|
4650
4683
|
return null;
|
|
4651
|
-
},
|
|
4684
|
+
}, Wo = (e) => Fo(e, (t) => {
|
|
4652
4685
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4653
4686
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4654
|
-
}),
|
|
4687
|
+
}), ar = ({
|
|
4655
4688
|
event: e,
|
|
4656
4689
|
target: t
|
|
4657
4690
|
}) => {
|
|
4658
|
-
const n = t.getBoundingClientRect(), r = e.clientX - n.left, i = e.clientY - n.top, a =
|
|
4691
|
+
const n = t.getBoundingClientRect(), r = e.clientX - n.left, i = e.clientY - n.top, a = or(r / n.width), s = or(i / n.height);
|
|
4659
4692
|
return {
|
|
4660
4693
|
x: a,
|
|
4661
4694
|
y: s
|
|
4662
4695
|
};
|
|
4663
|
-
},
|
|
4664
|
-
const t = e.target, n = t &&
|
|
4696
|
+
}, Uo = (e) => {
|
|
4697
|
+
const t = e.target, n = t && Wo(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4665
4698
|
return {
|
|
4666
4699
|
targetBuilderElement: r || void 0,
|
|
4667
4700
|
metadata: {
|
|
4668
|
-
targetOffset: t ?
|
|
4701
|
+
targetOffset: t ? ar({
|
|
4669
4702
|
event: e,
|
|
4670
4703
|
target: t
|
|
4671
4704
|
}) : void 0,
|
|
4672
|
-
builderTargetOffset: n ?
|
|
4705
|
+
builderTargetOffset: n ? ar({
|
|
4673
4706
|
event: e,
|
|
4674
4707
|
target: n
|
|
4675
4708
|
}) : void 0,
|
|
@@ -4677,13 +4710,13 @@ const Po = (e, t, n = !0) => {
|
|
|
4677
4710
|
}
|
|
4678
4711
|
};
|
|
4679
4712
|
};
|
|
4680
|
-
async function
|
|
4713
|
+
async function Lo({
|
|
4681
4714
|
key: e,
|
|
4682
4715
|
value: t
|
|
4683
4716
|
}) {
|
|
4684
|
-
return
|
|
4717
|
+
return Gr(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
|
|
4685
4718
|
}
|
|
4686
|
-
function
|
|
4719
|
+
function sr(e, ...t) {
|
|
4687
4720
|
const n = Object(e);
|
|
4688
4721
|
for (let r = 1; r < arguments.length; r++) {
|
|
4689
4722
|
const i = arguments[r];
|
|
@@ -4693,37 +4726,37 @@ function ar(e, ...t) {
|
|
|
4693
4726
|
}
|
|
4694
4727
|
return n;
|
|
4695
4728
|
}
|
|
4696
|
-
function
|
|
4729
|
+
function Vo(e) {
|
|
4697
4730
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
4698
4731
|
}
|
|
4699
|
-
function
|
|
4700
|
-
const n =
|
|
4701
|
-
for (const
|
|
4732
|
+
function _o(e, t) {
|
|
4733
|
+
const n = $o(e), r = getComputedStyle(t), i = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, s = [i, a];
|
|
4734
|
+
for (const u of s)
|
|
4702
4735
|
for (const f of n)
|
|
4703
|
-
f in
|
|
4736
|
+
f in u || (u[f] = r[f]);
|
|
4704
4737
|
}
|
|
4705
|
-
function
|
|
4738
|
+
function $o(e) {
|
|
4706
4739
|
const t = [];
|
|
4707
4740
|
for (const n of e.steps)
|
|
4708
4741
|
for (const r in n.styles)
|
|
4709
4742
|
t.indexOf(r) === -1 && t.push(r);
|
|
4710
4743
|
return t;
|
|
4711
4744
|
}
|
|
4712
|
-
function
|
|
4745
|
+
function Ho(e) {
|
|
4713
4746
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
4714
4747
|
if (!t.length) {
|
|
4715
|
-
|
|
4748
|
+
Vo(e.elementId || e.id || "");
|
|
4716
4749
|
return;
|
|
4717
4750
|
}
|
|
4718
4751
|
Array.from(t).forEach((n) => {
|
|
4719
|
-
|
|
4720
|
-
n.style.transition = `all ${e.duration}s ${hn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
4752
|
+
_o(e, n), n.style.transition = "none", n.style.transitionDelay = "0", sr(n.style, e.steps[0].styles), setTimeout(() => {
|
|
4753
|
+
n.style.transition = `all ${e.duration}s ${hn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), sr(n.style, e.steps[1].styles), setTimeout(() => {
|
|
4721
4754
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
4722
4755
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
4723
4756
|
});
|
|
4724
4757
|
});
|
|
4725
4758
|
}
|
|
4726
|
-
const
|
|
4759
|
+
const Ko = (e) => {
|
|
4727
4760
|
var a, s;
|
|
4728
4761
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = (s = e.fileUrl) != null ? s : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
4729
4762
|
let i = "";
|
|
@@ -4735,29 +4768,29 @@ font-display: fallback;
|
|
|
4735
4768
|
font-weight: 400;
|
|
4736
4769
|
}
|
|
4737
4770
|
`.trim()), e.files)
|
|
4738
|
-
for (const
|
|
4739
|
-
if (!(String(Number(
|
|
4771
|
+
for (const u in e.files) {
|
|
4772
|
+
if (!(String(Number(u)) === u))
|
|
4740
4773
|
continue;
|
|
4741
|
-
const g = e.files[
|
|
4774
|
+
const g = e.files[u];
|
|
4742
4775
|
g && g !== r && (i += `
|
|
4743
4776
|
@font-face {
|
|
4744
4777
|
font-family: "${t}";
|
|
4745
4778
|
src: url('${g}') format('woff2');
|
|
4746
4779
|
font-display: fallback;
|
|
4747
|
-
font-weight: ${
|
|
4780
|
+
font-weight: ${u};
|
|
4748
4781
|
}
|
|
4749
4782
|
`.trim());
|
|
4750
4783
|
}
|
|
4751
4784
|
return i;
|
|
4752
|
-
},
|
|
4785
|
+
}, Go = ({
|
|
4753
4786
|
customFonts: e
|
|
4754
4787
|
}) => {
|
|
4755
4788
|
var t;
|
|
4756
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4757
|
-
},
|
|
4789
|
+
return ((t = e == null ? void 0 : e.map((n) => Ko(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4790
|
+
}, zo = ({
|
|
4758
4791
|
cssCode: e,
|
|
4759
4792
|
contentId: t
|
|
4760
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4793
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Yo = `
|
|
4761
4794
|
.builder-button {
|
|
4762
4795
|
all: unset;
|
|
4763
4796
|
}
|
|
@@ -4774,34 +4807,34 @@ font-weight: ${c};
|
|
|
4774
4807
|
text-align: inherit;
|
|
4775
4808
|
font-family: inherit;
|
|
4776
4809
|
}
|
|
4777
|
-
`,
|
|
4778
|
-
function
|
|
4779
|
-
var oe, $,
|
|
4780
|
-
const t =
|
|
4781
|
-
function n(
|
|
4782
|
-
var B,
|
|
4810
|
+
`, Xo = (e) => e ? "" : Yo, Jo = (e) => `variant-${e}`;
|
|
4811
|
+
function qo(e) {
|
|
4812
|
+
var oe, $, ee, T, Ee, _, Ie;
|
|
4813
|
+
const t = bt(null);
|
|
4814
|
+
function n(A) {
|
|
4815
|
+
var B, L;
|
|
4783
4816
|
const x = {
|
|
4784
4817
|
...e.builderContextSignal.rootState,
|
|
4785
|
-
...
|
|
4818
|
+
...A
|
|
4786
4819
|
};
|
|
4787
|
-
e.builderContextSignal.rootSetState ? (
|
|
4820
|
+
e.builderContextSignal.rootSetState ? (L = (B = e.builderContextSignal).rootSetState) == null || L.call(B, x) : e.builderContextSignal.rootState = x;
|
|
4788
4821
|
}
|
|
4789
|
-
function r(
|
|
4790
|
-
var B,
|
|
4822
|
+
function r(A) {
|
|
4823
|
+
var B, L, D, J, le;
|
|
4791
4824
|
const x = {
|
|
4792
4825
|
...e.builderContextSignal.content,
|
|
4793
|
-
...
|
|
4826
|
+
...A,
|
|
4794
4827
|
data: {
|
|
4795
4828
|
...(B = e.builderContextSignal.content) == null ? void 0 : B.data,
|
|
4796
|
-
...
|
|
4829
|
+
...A == null ? void 0 : A.data
|
|
4797
4830
|
},
|
|
4798
4831
|
meta: {
|
|
4799
|
-
...(
|
|
4800
|
-
...
|
|
4801
|
-
breakpoints: ((
|
|
4832
|
+
...(L = e.builderContextSignal.content) == null ? void 0 : L.meta,
|
|
4833
|
+
...A == null ? void 0 : A.meta,
|
|
4834
|
+
breakpoints: ((D = A == null ? void 0 : A.meta) == null ? void 0 : D.breakpoints) || ((le = (J = e.builderContextSignal.content) == null ? void 0 : J.meta) == null ? void 0 : le.breakpoints)
|
|
4802
4835
|
}
|
|
4803
4836
|
};
|
|
4804
|
-
|
|
4837
|
+
Lo({
|
|
4805
4838
|
value: x,
|
|
4806
4839
|
key: x.id
|
|
4807
4840
|
}).then(() => {
|
|
@@ -4817,34 +4850,34 @@ function Go(e) {
|
|
|
4817
4850
|
const [a, s] = ye(
|
|
4818
4851
|
() => e.contentWrapper || "div"
|
|
4819
4852
|
);
|
|
4820
|
-
function
|
|
4821
|
-
return
|
|
4853
|
+
function u(A) {
|
|
4854
|
+
return zr({
|
|
4822
4855
|
model: e.model,
|
|
4823
4856
|
trustedHosts: e.trustedHosts,
|
|
4824
4857
|
callbacks: {
|
|
4825
4858
|
configureSdk: (x) => {
|
|
4826
|
-
var
|
|
4827
|
-
const { breakpoints: B, contentId:
|
|
4828
|
-
!
|
|
4859
|
+
var D;
|
|
4860
|
+
const { breakpoints: B, contentId: L } = x;
|
|
4861
|
+
!L || L !== ((D = e.builderContextSignal.content) == null ? void 0 : D.id) || B && r({
|
|
4829
4862
|
meta: {
|
|
4830
4863
|
breakpoints: B
|
|
4831
4864
|
}
|
|
4832
4865
|
});
|
|
4833
4866
|
},
|
|
4834
4867
|
animation: (x) => {
|
|
4835
|
-
|
|
4868
|
+
Ho(x);
|
|
4836
4869
|
},
|
|
4837
4870
|
contentUpdate: (x) => {
|
|
4838
4871
|
r(x);
|
|
4839
4872
|
}
|
|
4840
4873
|
}
|
|
4841
|
-
})(
|
|
4874
|
+
})(A);
|
|
4842
4875
|
}
|
|
4843
4876
|
function f() {
|
|
4844
4877
|
var x, B;
|
|
4845
|
-
const
|
|
4846
|
-
|
|
4847
|
-
code:
|
|
4878
|
+
const A = (B = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : B.jsCode;
|
|
4879
|
+
A && Ve({
|
|
4880
|
+
code: A,
|
|
4848
4881
|
context: e.context || {},
|
|
4849
4882
|
localState: void 0,
|
|
4850
4883
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4855,34 +4888,34 @@ function Go(e) {
|
|
|
4855
4888
|
enableCache: !1
|
|
4856
4889
|
});
|
|
4857
4890
|
}
|
|
4858
|
-
const [g, b] = ye(() => ({})), [
|
|
4859
|
-
function
|
|
4891
|
+
const [g, b] = ye(() => ({})), [v, F] = ye(() => ({})), [N, W] = ye(() => !1);
|
|
4892
|
+
function E(A) {
|
|
4860
4893
|
var x, B;
|
|
4861
4894
|
if (e.builderContextSignal.content) {
|
|
4862
|
-
const
|
|
4895
|
+
const L = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, D = (B = e.builderContextSignal.content) == null ? void 0 : B.id;
|
|
4863
4896
|
Gn({
|
|
4864
4897
|
type: "click",
|
|
4865
4898
|
canTrack: vt(e.canTrack),
|
|
4866
|
-
contentId:
|
|
4899
|
+
contentId: D,
|
|
4867
4900
|
apiKey: e.apiKey,
|
|
4868
|
-
variationId:
|
|
4869
|
-
...
|
|
4870
|
-
unique: !
|
|
4901
|
+
variationId: L !== D ? L : void 0,
|
|
4902
|
+
...Uo(A),
|
|
4903
|
+
unique: !N
|
|
4871
4904
|
});
|
|
4872
4905
|
}
|
|
4873
|
-
|
|
4906
|
+
N || W(!0);
|
|
4874
4907
|
}
|
|
4875
|
-
function
|
|
4876
|
-
var x, B,
|
|
4877
|
-
const
|
|
4878
|
-
Object.entries(
|
|
4879
|
-
if (!J ||
|
|
4908
|
+
function M() {
|
|
4909
|
+
var x, B, L;
|
|
4910
|
+
const A = (L = (B = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : B.httpRequests) != null ? L : {};
|
|
4911
|
+
Object.entries(A).forEach(([D, J]) => {
|
|
4912
|
+
if (!J || v[D] || g[D] && !Ce())
|
|
4880
4913
|
return;
|
|
4881
|
-
|
|
4914
|
+
v[D] = !0;
|
|
4882
4915
|
const le = J.replace(
|
|
4883
4916
|
/{{([^}]+)}}/g,
|
|
4884
4917
|
(ce, lt) => String(
|
|
4885
|
-
|
|
4918
|
+
Ve({
|
|
4886
4919
|
code: lt,
|
|
4887
4920
|
context: e.context || {},
|
|
4888
4921
|
localState: void 0,
|
|
@@ -4892,18 +4925,18 @@ function Go(e) {
|
|
|
4892
4925
|
})
|
|
4893
4926
|
)
|
|
4894
4927
|
);
|
|
4895
|
-
|
|
4928
|
+
Yr(le).then((ce) => ce.json()).then((ce) => {
|
|
4896
4929
|
n({
|
|
4897
|
-
[
|
|
4898
|
-
}), g[
|
|
4930
|
+
[D]: ce
|
|
4931
|
+
}), g[D] = !0;
|
|
4899
4932
|
}).catch((ce) => {
|
|
4900
4933
|
console.error("error fetching dynamic data", J, ce);
|
|
4901
4934
|
}).finally(() => {
|
|
4902
|
-
|
|
4935
|
+
v[D] = !1;
|
|
4903
4936
|
});
|
|
4904
4937
|
});
|
|
4905
4938
|
}
|
|
4906
|
-
function
|
|
4939
|
+
function I() {
|
|
4907
4940
|
Ce() && window.dispatchEvent(
|
|
4908
4941
|
new CustomEvent(
|
|
4909
4942
|
"builder:component:stateChange",
|
|
@@ -4918,8 +4951,8 @@ function Go(e) {
|
|
|
4918
4951
|
)
|
|
4919
4952
|
);
|
|
4920
4953
|
}
|
|
4921
|
-
function
|
|
4922
|
-
window.addEventListener("message",
|
|
4954
|
+
function y(A) {
|
|
4955
|
+
window.addEventListener("message", u), Xr(), Jr({
|
|
4923
4956
|
...e.locale ? {
|
|
4924
4957
|
locale: e.locale
|
|
4925
4958
|
} : {},
|
|
@@ -4932,19 +4965,19 @@ function Go(e) {
|
|
|
4932
4965
|
}), Object.values(
|
|
4933
4966
|
e.builderContextSignal.componentInfos
|
|
4934
4967
|
).forEach((x) => {
|
|
4935
|
-
var
|
|
4936
|
-
const B =
|
|
4937
|
-
(
|
|
4968
|
+
var L;
|
|
4969
|
+
const B = qr(x);
|
|
4970
|
+
(L = window.parent) == null || L.postMessage(B, "*");
|
|
4938
4971
|
}), window.addEventListener(
|
|
4939
4972
|
"builder:component:stateChangeListenerActivated",
|
|
4940
|
-
|
|
4973
|
+
I
|
|
4941
4974
|
);
|
|
4942
4975
|
}
|
|
4943
|
-
function
|
|
4944
|
-
const x = new URL(location.href).searchParams, B = x.get("builder.preview"),
|
|
4976
|
+
function V(A) {
|
|
4977
|
+
const x = new URL(location.href).searchParams, B = x.get("builder.preview"), L = x.get(
|
|
4945
4978
|
`builder.overrides.${B}`
|
|
4946
|
-
),
|
|
4947
|
-
B === e.model &&
|
|
4979
|
+
), D = x.get("apiKey") || x.get("builder.space");
|
|
4980
|
+
B === e.model && D === e.apiKey && (!e.content || L === e.content.id) && ur({
|
|
4948
4981
|
model: e.model,
|
|
4949
4982
|
apiKey: e.apiKey,
|
|
4950
4983
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -4952,96 +4985,96 @@ function Go(e) {
|
|
|
4952
4985
|
J && r(J);
|
|
4953
4986
|
});
|
|
4954
4987
|
}
|
|
4955
|
-
const G =
|
|
4956
|
-
return
|
|
4957
|
-
var
|
|
4958
|
-
return (
|
|
4988
|
+
const G = ei();
|
|
4989
|
+
return Q(() => {
|
|
4990
|
+
var A;
|
|
4991
|
+
return (A = t.current) == null || A.addEventListener(
|
|
4959
4992
|
"initeditingbldr",
|
|
4960
|
-
|
|
4993
|
+
y
|
|
4961
4994
|
), () => {
|
|
4962
4995
|
var x;
|
|
4963
4996
|
return (x = t.current) == null ? void 0 : x.removeEventListener(
|
|
4964
4997
|
"initeditingbldr",
|
|
4965
|
-
|
|
4998
|
+
y
|
|
4966
4999
|
);
|
|
4967
5000
|
};
|
|
4968
|
-
}, []),
|
|
4969
|
-
var
|
|
4970
|
-
return (
|
|
5001
|
+
}, []), Q(() => {
|
|
5002
|
+
var A;
|
|
5003
|
+
return (A = t.current) == null || A.addEventListener(
|
|
4971
5004
|
"initpreviewingbldr",
|
|
4972
|
-
|
|
5005
|
+
V
|
|
4973
5006
|
), () => {
|
|
4974
5007
|
var x;
|
|
4975
5008
|
return (x = t.current) == null ? void 0 : x.removeEventListener(
|
|
4976
5009
|
"initpreviewingbldr",
|
|
4977
|
-
|
|
5010
|
+
V
|
|
4978
5011
|
);
|
|
4979
5012
|
};
|
|
4980
|
-
}, []),
|
|
4981
|
-
var
|
|
4982
|
-
if (
|
|
5013
|
+
}, []), Q(() => {
|
|
5014
|
+
var A, x;
|
|
5015
|
+
if (We()) {
|
|
4983
5016
|
if (Ce() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && vt(e.canTrack)) {
|
|
4984
|
-
const
|
|
5017
|
+
const L = (A = e.builderContextSignal.content) == null ? void 0 : A.testVariationId, D = (x = e.builderContextSignal.content) == null ? void 0 : x.id, J = e.apiKey;
|
|
4985
5018
|
Gn({
|
|
4986
5019
|
type: "impression",
|
|
4987
5020
|
canTrack: !0,
|
|
4988
|
-
contentId:
|
|
5021
|
+
contentId: D,
|
|
4989
5022
|
apiKey: J,
|
|
4990
|
-
variationId:
|
|
5023
|
+
variationId: L !== D ? L : void 0
|
|
4991
5024
|
});
|
|
4992
5025
|
}
|
|
4993
|
-
|
|
5026
|
+
cr() && Ce();
|
|
4994
5027
|
}
|
|
4995
|
-
}, []),
|
|
5028
|
+
}, []), Q(() => {
|
|
4996
5029
|
e.apiKey || ot.error(
|
|
4997
5030
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4998
|
-
), f(),
|
|
4999
|
-
}, []),
|
|
5000
|
-
}, [e.content]),
|
|
5031
|
+
), f(), M(), I();
|
|
5032
|
+
}, []), Q(() => {
|
|
5033
|
+
}, [e.content]), Q(() => {
|
|
5001
5034
|
f();
|
|
5002
|
-
}, [($ = (oe = e.builderContextSignal.content) == null ? void 0 : oe.data) == null ? void 0 : $.jsCode]),
|
|
5003
|
-
|
|
5004
|
-
}, [(
|
|
5005
|
-
|
|
5006
|
-
}, [e.builderContextSignal.rootState]),
|
|
5035
|
+
}, [($ = (oe = e.builderContextSignal.content) == null ? void 0 : oe.data) == null ? void 0 : $.jsCode]), Q(() => {
|
|
5036
|
+
M();
|
|
5037
|
+
}, [(T = (ee = e.builderContextSignal.content) == null ? void 0 : ee.data) == null ? void 0 : T.httpRequests]), Q(() => {
|
|
5038
|
+
I();
|
|
5039
|
+
}, [e.builderContextSignal.rootState]), Q(() => {
|
|
5007
5040
|
e.data && n(e.data);
|
|
5008
|
-
}, [e.data]),
|
|
5041
|
+
}, [e.data]), Q(() => {
|
|
5009
5042
|
e.locale && n({
|
|
5010
5043
|
locale: e.locale
|
|
5011
5044
|
});
|
|
5012
|
-
}, [e.locale]),
|
|
5013
|
-
|
|
5045
|
+
}, [e.locale]), Q(() => () => {
|
|
5046
|
+
We() && (window.removeEventListener("message", u), window.removeEventListener(
|
|
5014
5047
|
"builder:component:stateChangeListenerActivated",
|
|
5015
|
-
|
|
5048
|
+
I
|
|
5016
5049
|
));
|
|
5017
|
-
}, []), /* @__PURE__ */
|
|
5050
|
+
}, []), /* @__PURE__ */ m(Do.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ m(
|
|
5018
5051
|
a,
|
|
5019
5052
|
{
|
|
5020
5053
|
ref: t,
|
|
5021
|
-
onClick: (
|
|
5054
|
+
onClick: (A) => E(A),
|
|
5022
5055
|
"builder-content-id": (Ee = e.builderContextSignal.content) == null ? void 0 : Ee.id,
|
|
5023
5056
|
"builder-model": e.model,
|
|
5024
5057
|
...i(),
|
|
5025
5058
|
...e.contentWrapperProps,
|
|
5026
|
-
className:
|
|
5027
|
-
((
|
|
5059
|
+
className: Jo(
|
|
5060
|
+
((_ = e.content) == null ? void 0 : _.testVariationId) || ((Ie = e.content) == null ? void 0 : Ie.id)
|
|
5028
5061
|
),
|
|
5029
5062
|
children: e.children
|
|
5030
5063
|
}
|
|
5031
5064
|
) : null });
|
|
5032
5065
|
}
|
|
5033
|
-
function
|
|
5066
|
+
function Zo(e) {
|
|
5034
5067
|
const t = `
|
|
5035
|
-
${
|
|
5068
|
+
${zo({
|
|
5036
5069
|
cssCode: e.cssCode,
|
|
5037
5070
|
contentId: e.contentId
|
|
5038
5071
|
})}
|
|
5039
|
-
${
|
|
5072
|
+
${Go({
|
|
5040
5073
|
customFonts: e.customFonts
|
|
5041
5074
|
})}
|
|
5042
|
-
${
|
|
5075
|
+
${Xo(e.isNestedRender)}
|
|
5043
5076
|
`.trim();
|
|
5044
|
-
return /* @__PURE__ */
|
|
5077
|
+
return /* @__PURE__ */ m(
|
|
5045
5078
|
kt,
|
|
5046
5079
|
{
|
|
5047
5080
|
id: "builderio-content",
|
|
@@ -5050,14 +5083,14 @@ ${Ho(e.isNestedRender)}
|
|
|
5050
5083
|
}
|
|
5051
5084
|
);
|
|
5052
5085
|
}
|
|
5053
|
-
const
|
|
5086
|
+
const Qo = ({
|
|
5054
5087
|
content: e,
|
|
5055
5088
|
data: t,
|
|
5056
5089
|
locale: n
|
|
5057
5090
|
}) => {
|
|
5058
|
-
var a, s,
|
|
5091
|
+
var a, s, u;
|
|
5059
5092
|
const r = {}, i = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
5060
|
-
return (
|
|
5093
|
+
return (u = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || u.forEach((f) => {
|
|
5061
5094
|
f.name && f.defaultValue !== void 0 && (r[f.name] = f.defaultValue);
|
|
5062
5095
|
}), {
|
|
5063
5096
|
...r,
|
|
@@ -5067,7 +5100,7 @@ const Yo = ({
|
|
|
5067
5100
|
locale: n
|
|
5068
5101
|
} : {}
|
|
5069
5102
|
};
|
|
5070
|
-
},
|
|
5103
|
+
}, ea = ({
|
|
5071
5104
|
content: e,
|
|
5072
5105
|
data: t
|
|
5073
5106
|
}) => e ? {
|
|
@@ -5078,32 +5111,32 @@ const Yo = ({
|
|
|
5078
5111
|
},
|
|
5079
5112
|
meta: e == null ? void 0 : e.meta
|
|
5080
5113
|
} : void 0;
|
|
5081
|
-
function
|
|
5082
|
-
var i, a, s,
|
|
5083
|
-
const t =
|
|
5114
|
+
function lr(e) {
|
|
5115
|
+
var i, a, s, u, f, g, b, v, F, N, W;
|
|
5116
|
+
const t = Mo({
|
|
5084
5117
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5085
5118
|
variationId: (i = e.content) == null ? void 0 : i.testVariationId,
|
|
5086
5119
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5087
5120
|
contentId: (a = e.content) == null ? void 0 : a.id
|
|
5088
5121
|
}), n = [
|
|
5089
|
-
...
|
|
5090
|
-
...((s = e.customComponents) == null ? void 0 : s.filter(({ models:
|
|
5122
|
+
...ir(),
|
|
5123
|
+
...((s = e.customComponents) == null ? void 0 : s.filter(({ models: E }) => !(E != null && E.length) || !e.model ? !0 : E.includes(e.model))) || []
|
|
5091
5124
|
].reduce(
|
|
5092
|
-
(
|
|
5093
|
-
...
|
|
5094
|
-
[
|
|
5095
|
-
component:
|
|
5096
|
-
...zn(
|
|
5125
|
+
(E, { component: M, ...I }) => ({
|
|
5126
|
+
...E,
|
|
5127
|
+
[I.name]: {
|
|
5128
|
+
component: M,
|
|
5129
|
+
...zn(I)
|
|
5097
5130
|
}
|
|
5098
5131
|
}),
|
|
5099
5132
|
{}
|
|
5100
5133
|
), r = {
|
|
5101
|
-
content:
|
|
5134
|
+
content: ea({
|
|
5102
5135
|
content: e.content,
|
|
5103
5136
|
data: e.data
|
|
5104
5137
|
}),
|
|
5105
5138
|
localState: void 0,
|
|
5106
|
-
rootState:
|
|
5139
|
+
rootState: Qo({
|
|
5107
5140
|
content: e.content,
|
|
5108
5141
|
data: e.data,
|
|
5109
5142
|
locale: e.locale
|
|
@@ -5114,12 +5147,12 @@ function sr(e) {
|
|
|
5114
5147
|
apiKey: e.apiKey,
|
|
5115
5148
|
apiVersion: e.apiVersion,
|
|
5116
5149
|
componentInfos: [
|
|
5117
|
-
...
|
|
5118
|
-
...((
|
|
5150
|
+
...ir(),
|
|
5151
|
+
...((u = e.customComponents) == null ? void 0 : u.filter(({ models: E }) => !(E != null && E.length) || !e.model ? !0 : E.includes(e.model))) || []
|
|
5119
5152
|
].reduce(
|
|
5120
|
-
(
|
|
5121
|
-
...
|
|
5122
|
-
[
|
|
5153
|
+
(E, { component: M, ...I }) => ({
|
|
5154
|
+
...E,
|
|
5155
|
+
[I.name]: zn(I)
|
|
5123
5156
|
}),
|
|
5124
5157
|
{}
|
|
5125
5158
|
),
|
|
@@ -5129,7 +5162,7 @@ function sr(e) {
|
|
|
5129
5162
|
nonce: e.nonce || ""
|
|
5130
5163
|
};
|
|
5131
5164
|
return /* @__PURE__ */ se(
|
|
5132
|
-
|
|
5165
|
+
qo,
|
|
5133
5166
|
{
|
|
5134
5167
|
nonce: e.nonce,
|
|
5135
5168
|
content: e.content,
|
|
@@ -5146,28 +5179,28 @@ function sr(e) {
|
|
|
5146
5179
|
contentWrapperProps: e.contentWrapperProps,
|
|
5147
5180
|
trustedHosts: e.trustedHosts,
|
|
5148
5181
|
children: [
|
|
5149
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
5150
|
-
|
|
5182
|
+
e.isSsrAbTest ? /* @__PURE__ */ m(
|
|
5183
|
+
Zt,
|
|
5151
5184
|
{
|
|
5152
5185
|
id: "builderio-variant-visibility",
|
|
5153
5186
|
scriptStr: t,
|
|
5154
5187
|
nonce: e.nonce || ""
|
|
5155
5188
|
}
|
|
5156
5189
|
) : null,
|
|
5157
|
-
/* @__PURE__ */
|
|
5158
|
-
|
|
5190
|
+
/* @__PURE__ */ m(
|
|
5191
|
+
Zo,
|
|
5159
5192
|
{
|
|
5160
5193
|
nonce: e.nonce || "",
|
|
5161
5194
|
isNestedRender: e.isNestedRender,
|
|
5162
5195
|
contentId: (f = r.content) == null ? void 0 : f.id,
|
|
5163
5196
|
cssCode: (b = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : b.cssCode,
|
|
5164
|
-
customFonts: (
|
|
5197
|
+
customFonts: (F = (v = r.content) == null ? void 0 : v.data) == null ? void 0 : F.customFonts
|
|
5165
5198
|
}
|
|
5166
5199
|
),
|
|
5167
|
-
/* @__PURE__ */
|
|
5200
|
+
/* @__PURE__ */ m(
|
|
5168
5201
|
mn,
|
|
5169
5202
|
{
|
|
5170
|
-
blocks: (
|
|
5203
|
+
blocks: (W = (N = r.content) == null ? void 0 : N.data) == null ? void 0 : W.blocks,
|
|
5171
5204
|
context: r,
|
|
5172
5205
|
registeredComponents: n,
|
|
5173
5206
|
linkComponent: e.linkComponent
|
|
@@ -5177,43 +5210,43 @@ function sr(e) {
|
|
|
5177
5210
|
}
|
|
5178
5211
|
);
|
|
5179
5212
|
}
|
|
5180
|
-
function
|
|
5213
|
+
function ta(e) {
|
|
5181
5214
|
var a;
|
|
5182
|
-
const t =
|
|
5215
|
+
const t = Oo({
|
|
5183
5216
|
canTrack: vt(e.canTrack),
|
|
5184
5217
|
content: e.content
|
|
5185
5218
|
}), n = function() {
|
|
5186
|
-
var
|
|
5187
|
-
return
|
|
5219
|
+
var u;
|
|
5220
|
+
return Bo(
|
|
5188
5221
|
gt(e.content).map((f) => ({
|
|
5189
5222
|
id: f.testVariationId,
|
|
5190
5223
|
testRatio: f.testRatio
|
|
5191
5224
|
})),
|
|
5192
|
-
((
|
|
5225
|
+
((u = e.content) == null ? void 0 : u.id) || ""
|
|
5193
5226
|
);
|
|
5194
5227
|
}, r = function() {
|
|
5195
|
-
return gt(e.content).map((
|
|
5228
|
+
return gt(e.content).map((u) => `.variant-${u.testVariationId} { display: none; } `).join("");
|
|
5196
5229
|
}, i = function() {
|
|
5197
|
-
var
|
|
5230
|
+
var u;
|
|
5198
5231
|
return t ? {
|
|
5199
5232
|
...e.content,
|
|
5200
|
-
testVariationId: (
|
|
5201
|
-
} :
|
|
5233
|
+
testVariationId: (u = e.content) == null ? void 0 : u.id
|
|
5234
|
+
} : Zr({
|
|
5202
5235
|
item: e.content,
|
|
5203
5236
|
canTrack: vt(e.canTrack)
|
|
5204
5237
|
});
|
|
5205
5238
|
};
|
|
5206
5239
|
return /* @__PURE__ */ se(K, { children: [
|
|
5207
|
-
!e.isNestedRender &&
|
|
5208
|
-
|
|
5240
|
+
!e.isNestedRender && je !== "reactNative" ? /* @__PURE__ */ m(
|
|
5241
|
+
Zt,
|
|
5209
5242
|
{
|
|
5210
5243
|
id: "builderio-init-variants-fns",
|
|
5211
|
-
scriptStr:
|
|
5244
|
+
scriptStr: No(),
|
|
5212
5245
|
nonce: e.nonce || ""
|
|
5213
5246
|
}
|
|
5214
5247
|
) : null,
|
|
5215
5248
|
t ? /* @__PURE__ */ se(K, { children: [
|
|
5216
|
-
/* @__PURE__ */
|
|
5249
|
+
/* @__PURE__ */ m(
|
|
5217
5250
|
kt,
|
|
5218
5251
|
{
|
|
5219
5252
|
id: "builderio-variants",
|
|
@@ -5221,16 +5254,16 @@ function Jo(e) {
|
|
|
5221
5254
|
nonce: e.nonce || ""
|
|
5222
5255
|
}
|
|
5223
5256
|
),
|
|
5224
|
-
/* @__PURE__ */
|
|
5225
|
-
|
|
5257
|
+
/* @__PURE__ */ m(
|
|
5258
|
+
Zt,
|
|
5226
5259
|
{
|
|
5227
5260
|
id: "builderio-variants-visibility",
|
|
5228
5261
|
scriptStr: n(),
|
|
5229
5262
|
nonce: e.nonce || ""
|
|
5230
5263
|
}
|
|
5231
5264
|
),
|
|
5232
|
-
(a = gt(e.content)) == null ? void 0 : a.map((s) => /* @__PURE__ */
|
|
5233
|
-
|
|
5265
|
+
(a = gt(e.content)) == null ? void 0 : a.map((s) => /* @__PURE__ */ m(
|
|
5266
|
+
lr,
|
|
5234
5267
|
{
|
|
5235
5268
|
isNestedRender: e.isNestedRender,
|
|
5236
5269
|
nonce: e.nonce,
|
|
@@ -5256,8 +5289,8 @@ function Jo(e) {
|
|
|
5256
5289
|
s.testVariationId
|
|
5257
5290
|
))
|
|
5258
5291
|
] }) : null,
|
|
5259
|
-
/* @__PURE__ */
|
|
5260
|
-
|
|
5292
|
+
/* @__PURE__ */ m(
|
|
5293
|
+
lr,
|
|
5261
5294
|
{
|
|
5262
5295
|
nonce: e.nonce,
|
|
5263
5296
|
isNestedRender: e.isNestedRender,
|
|
@@ -5283,13 +5316,13 @@ function Jo(e) {
|
|
|
5283
5316
|
)
|
|
5284
5317
|
] });
|
|
5285
5318
|
}
|
|
5286
|
-
const
|
|
5319
|
+
const na = async ({
|
|
5287
5320
|
builderContextValue: e,
|
|
5288
5321
|
symbol: t
|
|
5289
5322
|
}) => {
|
|
5290
5323
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5291
5324
|
(e != null && e.apiKey))
|
|
5292
|
-
return
|
|
5325
|
+
return ur({
|
|
5293
5326
|
model: t.model,
|
|
5294
5327
|
apiKey: e.apiKey,
|
|
5295
5328
|
apiVersion: e.apiVersion,
|
|
@@ -5302,26 +5335,26 @@ const qo = async ({
|
|
|
5302
5335
|
ot.error("Could not fetch symbol content: ", n);
|
|
5303
5336
|
});
|
|
5304
5337
|
};
|
|
5305
|
-
async function
|
|
5306
|
-
var a, s,
|
|
5338
|
+
async function ra(e) {
|
|
5339
|
+
var a, s, u, f, g;
|
|
5307
5340
|
const t = function() {
|
|
5308
5341
|
return "div";
|
|
5309
5342
|
}, n = function() {
|
|
5310
5343
|
return "div";
|
|
5311
5344
|
}, r = function() {
|
|
5312
|
-
var
|
|
5345
|
+
var v, F;
|
|
5313
5346
|
return [
|
|
5314
5347
|
e.attributes[nt()],
|
|
5315
5348
|
"builder-symbol",
|
|
5316
|
-
(
|
|
5317
|
-
(
|
|
5349
|
+
(v = e.symbol) != null && v.inline ? "builder-inline-symbol" : void 0,
|
|
5350
|
+
(F = e.symbol) != null && F.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5318
5351
|
].filter(Boolean).join(" ");
|
|
5319
|
-
}, i = ((a = e.symbol) == null ? void 0 : a.content) || await
|
|
5352
|
+
}, i = ((a = e.symbol) == null ? void 0 : a.content) || await na({
|
|
5320
5353
|
symbol: e.symbol,
|
|
5321
5354
|
builderContextValue: e.builderContext
|
|
5322
5355
|
});
|
|
5323
|
-
return /* @__PURE__ */
|
|
5324
|
-
|
|
5356
|
+
return /* @__PURE__ */ m("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ m(
|
|
5357
|
+
ta,
|
|
5325
5358
|
{
|
|
5326
5359
|
nonce: e.builderContext.nonce,
|
|
5327
5360
|
isNestedRender: !0,
|
|
@@ -5333,7 +5366,7 @@ async function Zo(e) {
|
|
|
5333
5366
|
},
|
|
5334
5367
|
customComponents: Object.values(e.builderComponents),
|
|
5335
5368
|
data: {
|
|
5336
|
-
...(
|
|
5369
|
+
...(u = e.symbol) == null ? void 0 : u.data,
|
|
5337
5370
|
...e.builderContext.localState,
|
|
5338
5371
|
...(f = i == null ? void 0 : i.data) == null ? void 0 : f.state
|
|
5339
5372
|
},
|
|
@@ -5348,14 +5381,14 @@ async function Zo(e) {
|
|
|
5348
5381
|
}
|
|
5349
5382
|
export {
|
|
5350
5383
|
mn as Blocks,
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5384
|
+
Do as BuilderContext,
|
|
5385
|
+
ri as Button,
|
|
5386
|
+
to as Columns,
|
|
5387
|
+
ta as Content,
|
|
5388
|
+
no as Fragment,
|
|
5389
|
+
oo as Image,
|
|
5390
|
+
ao as Section,
|
|
5391
|
+
ra as Symbol,
|
|
5392
|
+
yo as Text,
|
|
5393
|
+
To as Video
|
|
5361
5394
|
};
|