@builder.io/sdk-vue 3.0.1 → 3.0.3
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/{awaiter-mEQ0ZDTH.cjs → awaiter-BOE3oe-2.cjs} +1 -1
- package/lib/browser/{awaiter-W9NCtbGd.js → awaiter-fYJyWUKW.js} +1 -1
- package/lib/browser/{block-styles-iE_AMMov.cjs → block-styles-Ac2dTxc4.cjs} +1 -1
- package/lib/browser/{block-styles-YR66YUMW.js → block-styles-AkwFTcbO.js} +1 -1
- package/lib/browser/{block-wrapper-uCoTCnWV.cjs → block-wrapper-84VD_jLa.cjs} +1 -1
- package/lib/browser/{block-wrapper-zPfAxV1K.js → block-wrapper-fpDCjlfD.js} +3 -3
- package/lib/browser/blocks/text/text.vue.d.ts +1 -6
- package/lib/browser/{component-ref-KQElTQuz.cjs → component-ref-2i6kEvP5.cjs} +1 -1
- package/lib/browser/{component-ref-1sJWCSnM.js → component-ref-d8yXMilU.js} +3 -3
- package/lib/browser/components/block/components/component-ref/component-ref.vue.d.ts +2 -2
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/get-block-component-options.d.ts +2 -1
- package/lib/browser/functions/get-processed-block.d.ts +1 -6
- package/lib/browser/{get-block-properties-28x9iJbv.cjs → get-block-properties-YOz_GV3T.cjs} +1 -1
- package/lib/browser/{get-block-properties-6nHJC7Bl.js → get-block-properties-cnhoBeZq.js} +1 -1
- package/lib/browser/helpers/flatten.d.ts +6 -0
- package/lib/browser/{index-96lMP92Z.js → index-OUDodTH_.js} +809 -780
- package/lib/browser/index-Tmp8hGxZ.cjs +166 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-alcf4ekM.cjs → repeated-block-2vOYpXEb.cjs} +1 -1
- package/lib/browser/{repeated-block-zdJEPXeM.js → repeated-block-YC73mMjD.js} +2 -2
- package/lib/browser/server-index.d.ts +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/browser/types/builder-content.d.ts +1 -0
- package/lib/browser/types/input.d.ts +10 -0
- package/lib/edge/{awaiter-AmWo0klS.js → awaiter-45RAZ4vr.js} +1 -1
- package/lib/edge/{awaiter-b7-kYxAd.cjs → awaiter-7y9vIvgM.cjs} +1 -1
- package/lib/edge/{block-styles-ZxATOs5j.cjs → block-styles-4oT6_tNs.cjs} +1 -1
- package/lib/edge/{block-styles-p5UoOXs6.js → block-styles-S0GMFR-E.js} +1 -1
- package/lib/edge/{block-wrapper-7wzSncci.js → block-wrapper-u1TP9krq.js} +3 -3
- package/lib/edge/{block-wrapper-M-L3jacN.cjs → block-wrapper-z2zQZEH5.cjs} +1 -1
- package/lib/edge/blocks/text/text.vue.d.ts +1 -6
- package/lib/edge/{component-ref-fsAjiPgJ.js → component-ref-egpaOyfe.js} +3 -3
- package/lib/edge/{component-ref-ObIZSCWX.cjs → component-ref-fINDKyFv.cjs} +1 -1
- package/lib/edge/components/block/components/component-ref/component-ref.vue.d.ts +2 -2
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/get-block-component-options.d.ts +2 -1
- package/lib/edge/functions/get-processed-block.d.ts +1 -6
- package/lib/edge/{get-block-properties-BwEXZmo9.cjs → get-block-properties-7UcxpKgh.cjs} +1 -1
- package/lib/edge/{get-block-properties-pBTZazws.js → get-block-properties-O5TPRWRT.js} +1 -1
- package/lib/edge/helpers/flatten.d.ts +6 -0
- package/lib/edge/{index-8E5G8ahg.js → index-F3mzsZ0p.js} +887 -860
- package/lib/edge/index-gzbOXU-Q.cjs +184 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-kbuQgIKA.js → repeated-block-NSni9pku.js} +2 -2
- package/lib/{node/repeated-block-WDR29-D_.cjs → edge/repeated-block-Wu6fB8nR.cjs} +1 -1
- package/lib/edge/server-index.d.ts +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/edge/types/builder-content.d.ts +1 -0
- package/lib/edge/types/input.d.ts +10 -0
- package/lib/node/{awaiter-mRA2J5Tn.js → awaiter-Q1bT-TPr.js} +1 -1
- package/lib/node/{awaiter--VUu-0lf.cjs → awaiter-TAyS4fk5.cjs} +1 -1
- package/lib/node/{block-styles-m8QMKLNf.cjs → block-styles-A8-g46IJ.cjs} +1 -1
- package/lib/node/{block-styles-mnvxO4c9.js → block-styles-r18EdLf4.js} +1 -1
- package/lib/node/{block-wrapper-nmivaReB.cjs → block-wrapper-T0V1DNf3.cjs} +1 -1
- package/lib/node/{block-wrapper-TDtFNLpV.js → block-wrapper-XHFApIKd.js} +3 -3
- package/lib/node/blocks/text/text.vue.d.ts +1 -6
- package/lib/node/{component-ref-G822HD6s.cjs → component-ref-hUDJjksy.cjs} +1 -1
- package/lib/node/{component-ref-nu3ur2Zz.js → component-ref-s6TdgswK.js} +3 -3
- package/lib/node/components/block/components/component-ref/component-ref.vue.d.ts +2 -2
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/get-block-component-options.d.ts +2 -1
- package/lib/node/functions/get-processed-block.d.ts +1 -6
- package/lib/node/{get-block-properties-2BCkBOZG.js → get-block-properties-Eoo-6vv-.js} +1 -1
- package/lib/node/{get-block-properties-fBgYSGfR.cjs → get-block-properties-ZK8tFurn.cjs} +1 -1
- package/lib/node/helpers/flatten.d.ts +6 -0
- package/lib/node/{index-dZfvXbI_.js → index-Ys2hEVva.js} +655 -626
- package/lib/node/index-upwn_dSB.cjs +166 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/{edge/repeated-block-G7v60Rfo.cjs → node/repeated-block-5Nyck_fi.cjs} +1 -1
- package/lib/node/{repeated-block-XwjQQ8Do.js → repeated-block-9G20Z3_5.js} +2 -2
- package/lib/node/server-index.d.ts +1 -1
- package/lib/node/style.css +1 -1
- package/lib/node/types/builder-content.d.ts +1 -0
- package/lib/node/types/input.d.ts +10 -0
- package/package.json +1 -1
- package/lib/browser/index-vh-1AohY.cjs +0 -166
- package/lib/edge/index-8CRS7AwO.cjs +0 -184
- package/lib/node/index-SmPbrgmX.cjs +0 -166
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as B, openBlock as g, createElementBlock as T, Fragment as _, createBlock as V, resolveDynamicComponent as ut, mergeProps as G, toHandlers as pe, withCtx as Ie, renderSlot as de, resolveComponent as U, createTextVNode as Wo, toDisplayString as Nt, defineAsyncComponent as rt, createVNode as se, renderList as he, createCommentVNode as L, h as jr, createElementVNode as ft, normalizeStyle as Pe, normalizeClass as ht, markRaw as Lo } from "vue";
|
|
2
2
|
const Mo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ho = (e) => typeof e == "string" && Mo.has(e.toLowerCase());
|
|
3
3
|
function me(e = {}, t, n) {
|
|
4
4
|
const r = {};
|
|
@@ -10,7 +10,7 @@ function me(e = {}, t, n) {
|
|
|
10
10
|
}
|
|
11
11
|
return r;
|
|
12
12
|
}
|
|
13
|
-
const Ko =
|
|
13
|
+
const Ko = B({
|
|
14
14
|
name: "dynamic-renderer",
|
|
15
15
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
16
16
|
data() {
|
|
@@ -23,21 +23,21 @@ const Ko = j({
|
|
|
23
23
|
return n;
|
|
24
24
|
};
|
|
25
25
|
function zo(e, t, n, r, o, i) {
|
|
26
|
-
return e.isEmptyElement(e.TagName) ? (g(),
|
|
27
|
-
typeof e.TagName == "string" ? (g(),
|
|
28
|
-
default:
|
|
26
|
+
return e.isEmptyElement(e.TagName) ? (g(), V(ut(e.TagName), G({ key: 1 }, e.attributes, pe(e.actionAttributes)), null, 16)) : (g(), T(_, { key: 0 }, [
|
|
27
|
+
typeof e.TagName == "string" ? (g(), V(ut(e.TagName), G({ key: 0 }, e.attributes, pe(e.actionAttributes)), {
|
|
28
|
+
default: Ie(() => [
|
|
29
29
|
de(e.$slots, "default")
|
|
30
30
|
]),
|
|
31
31
|
_: 3
|
|
32
|
-
}, 16)) : (g(),
|
|
33
|
-
default:
|
|
32
|
+
}, 16)) : (g(), V(ut(e.TagName), G({ key: 1 }, e.attributes, pe(e.actionAttributes)), {
|
|
33
|
+
default: Ie(() => [
|
|
34
34
|
de(e.$slots, "default")
|
|
35
35
|
]),
|
|
36
36
|
_: 3
|
|
37
37
|
}, 16))
|
|
38
38
|
], 64));
|
|
39
39
|
}
|
|
40
|
-
const kn = /* @__PURE__ */ N(Ko, [["render", zo]]),
|
|
40
|
+
const kn = /* @__PURE__ */ N(Ko, [["render", zo]]), $u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41
41
|
__proto__: null,
|
|
42
42
|
default: kn
|
|
43
43
|
}, Symbol.toStringTag, { value: "Module" })), re = "vue", Ot = () => {
|
|
@@ -53,7 +53,7 @@ const kn = /* @__PURE__ */ N(Ko, [["render", zo]]), Iu = /* @__PURE__ */ Object.
|
|
|
53
53
|
case "angular":
|
|
54
54
|
return "class";
|
|
55
55
|
}
|
|
56
|
-
}, Go =
|
|
56
|
+
}, Go = B({
|
|
57
57
|
name: "builder-button",
|
|
58
58
|
components: { DynamicRenderer: kn },
|
|
59
59
|
props: [
|
|
@@ -83,13 +83,13 @@ const kn = /* @__PURE__ */ N(Ko, [["render", zo]]), Iu = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
function qo(e, t, n, r, o, i) {
|
|
86
|
-
const s =
|
|
87
|
-
return g(),
|
|
86
|
+
const s = U("DynamicRenderer");
|
|
87
|
+
return g(), V(s, {
|
|
88
88
|
attributes: e.attrs(),
|
|
89
89
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
90
90
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
91
91
|
}, {
|
|
92
|
-
default:
|
|
92
|
+
default: Ie(() => [
|
|
93
93
|
Wo(Nt(e.text), 1)
|
|
94
94
|
]),
|
|
95
95
|
_: 1
|
|
@@ -116,53 +116,39 @@ const _o = /* @__PURE__ */ N(Go, [["render", qo]]), Jo = Symbol(), fn = {
|
|
|
116
116
|
}, Xo = Symbol(), Nr = {
|
|
117
117
|
Components: { registeredComponents: {} },
|
|
118
118
|
key: Xo
|
|
119
|
-
}
|
|
120
|
-
function Yo(e) {
|
|
121
|
-
var t;
|
|
122
|
-
return {
|
|
123
|
-
...(t = e.component) == null ? void 0 : t.options,
|
|
124
|
-
...e.options
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
function Zo(e, ...t) {
|
|
128
|
-
const n = Object.assign({}, e);
|
|
129
|
-
for (const r of t)
|
|
130
|
-
delete n[r];
|
|
131
|
-
return n;
|
|
132
|
-
}
|
|
133
|
-
const $t = "[Builder.io]: ", ae = {
|
|
119
|
+
}, $t = "[Builder.io]: ", le = {
|
|
134
120
|
log: (...e) => console.log($t, ...e),
|
|
135
121
|
error: (...e) => console.error($t, ...e),
|
|
136
122
|
warn: (...e) => console.warn($t, ...e),
|
|
137
123
|
debug: (...e) => console.debug($t, ...e)
|
|
138
|
-
},
|
|
124
|
+
}, Dr = (e, t, n) => {
|
|
139
125
|
const r = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, i) => o != null ? o[i] : o, e);
|
|
140
126
|
return r === void 0 || r === e ? n : r;
|
|
141
127
|
};
|
|
142
|
-
function
|
|
128
|
+
function X() {
|
|
143
129
|
return typeof window < "u" && typeof document < "u";
|
|
144
130
|
}
|
|
145
|
-
const
|
|
131
|
+
const Yo = (e) => {
|
|
146
132
|
const t = {};
|
|
147
133
|
return e.forEach((n, r) => {
|
|
148
134
|
t[r] = n;
|
|
149
135
|
}), t;
|
|
150
|
-
},
|
|
151
|
-
function
|
|
152
|
-
return
|
|
136
|
+
}, Vr = (e) => e instanceof URLSearchParams ? Yo(e) : e, Ur = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
137
|
+
function Zo() {
|
|
138
|
+
return X() && window.self !== window.top;
|
|
153
139
|
}
|
|
154
140
|
function ie(e) {
|
|
155
|
-
return
|
|
156
|
-
|
|
141
|
+
return Zo() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
142
|
+
Ur(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
157
143
|
}
|
|
158
|
-
const
|
|
159
|
-
if (
|
|
144
|
+
const Qo = () => {
|
|
145
|
+
if (X()) {
|
|
160
146
|
const e = new URL(location.href);
|
|
161
147
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
162
148
|
} else
|
|
163
149
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
164
|
-
},
|
|
165
|
-
const e =
|
|
150
|
+
}, ei = () => typeof navigator == "object" && navigator.userAgent || "", Fr = () => {
|
|
151
|
+
const e = ei(), t = {
|
|
166
152
|
Android() {
|
|
167
153
|
return e.match(/Android/i);
|
|
168
154
|
},
|
|
@@ -181,7 +167,7 @@ const ti = () => {
|
|
|
181
167
|
any() {
|
|
182
168
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || re === "reactNative";
|
|
183
169
|
}
|
|
184
|
-
}, n = e.match(/Tablet|iPad/i), r =
|
|
170
|
+
}, n = e.match(/Tablet|iPad/i), r = Qo();
|
|
185
171
|
return {
|
|
186
172
|
urlPath: r == null ? void 0 : r.pathname,
|
|
187
173
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
@@ -199,12 +185,12 @@ const ti = () => {
|
|
|
199
185
|
builder: e,
|
|
200
186
|
context: t,
|
|
201
187
|
event: n
|
|
202
|
-
}),
|
|
188
|
+
}), ti = () => ({
|
|
203
189
|
isEditing: ie(),
|
|
204
|
-
isBrowser:
|
|
205
|
-
isServer: !
|
|
206
|
-
getUserAttributes: () =>
|
|
207
|
-
}),
|
|
190
|
+
isBrowser: X(),
|
|
191
|
+
isServer: !X(),
|
|
192
|
+
getUserAttributes: () => Fr()
|
|
193
|
+
}), ni = (e, {
|
|
208
194
|
isExpression: t = !0
|
|
209
195
|
}) => /* 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;
|
|
210
196
|
function Sn({
|
|
@@ -232,7 +218,7 @@ function Sn({
|
|
|
232
218
|
}
|
|
233
219
|
});
|
|
234
220
|
}
|
|
235
|
-
const
|
|
221
|
+
const ri = ({
|
|
236
222
|
code: e,
|
|
237
223
|
builder: t,
|
|
238
224
|
context: n,
|
|
@@ -253,9 +239,9 @@ const ii = ({
|
|
|
253
239
|
});
|
|
254
240
|
return new Function(...u.map(([p]) => p), e)(...u.map(([, p]) => p));
|
|
255
241
|
};
|
|
256
|
-
var
|
|
242
|
+
var j, oi = function(e) {
|
|
257
243
|
function t(a) {
|
|
258
|
-
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a &&
|
|
244
|
+
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Uo.test(String.fromCharCode(a));
|
|
259
245
|
}
|
|
260
246
|
function n(a) {
|
|
261
247
|
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && vr.test(String.fromCharCode(a));
|
|
@@ -283,25 +269,25 @@ var B, si = function(e) {
|
|
|
283
269
|
};
|
|
284
270
|
}
|
|
285
271
|
function i() {
|
|
286
|
-
this.line = Ne, this.ab = d -
|
|
272
|
+
this.line = Ne, this.ab = d - ke;
|
|
287
273
|
}
|
|
288
274
|
function s(a, l) {
|
|
289
|
-
|
|
275
|
+
Fe = d, A.C && (Gt = new i()), x = a, p(), ae = l, Ze = a.m;
|
|
290
276
|
}
|
|
291
277
|
function u() {
|
|
292
|
-
for (var a = d, l = A.va && A.C && new i(), c = k.charCodeAt(d += 2); d <
|
|
278
|
+
for (var a = d, l = A.va && A.C && new i(), c = k.charCodeAt(d += 2); d < Ue && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
293
279
|
++d, c = k.charCodeAt(d);
|
|
294
280
|
A.va && A.va(!1, k.slice(a + 2, d), a, d, l, A.C && new i());
|
|
295
281
|
}
|
|
296
282
|
function p() {
|
|
297
|
-
for (; d <
|
|
283
|
+
for (; d < Ue; ) {
|
|
298
284
|
var a = k.charCodeAt(d);
|
|
299
285
|
if (a === 32)
|
|
300
286
|
++d;
|
|
301
287
|
else if (a === 13)
|
|
302
|
-
++d, a = k.charCodeAt(d), a === 10 && ++d, A.C && (++Ne,
|
|
288
|
+
++d, a = k.charCodeAt(d), a === 10 && ++d, A.C && (++Ne, ke = d);
|
|
303
289
|
else if (a === 10 || a === 8232 || a === 8233)
|
|
304
|
-
++d, A.C && (++Ne,
|
|
290
|
+
++d, A.C && (++Ne, ke = d);
|
|
305
291
|
else if (8 < a && 14 > a)
|
|
306
292
|
++d;
|
|
307
293
|
else if (a === 47)
|
|
@@ -310,7 +296,7 @@ var B, si = function(e) {
|
|
|
310
296
|
var l = A.va && A.C && new i(), c = d, f = k.indexOf("*/", d += 2);
|
|
311
297
|
if (f === -1 && r(d - 2, "Unterminated comment"), d = f + 2, A.C)
|
|
312
298
|
for (At.lastIndex = c; (a = At.exec(k)) && a.index < d; )
|
|
313
|
-
++Ne,
|
|
299
|
+
++Ne, ke = a.index + a[0].length;
|
|
314
300
|
A.va && A.va(!0, k.slice(c + 2, f), c, d, l, A.C && new i());
|
|
315
301
|
} else if (a === 47)
|
|
316
302
|
u();
|
|
@@ -318,7 +304,7 @@ var B, si = function(e) {
|
|
|
318
304
|
break;
|
|
319
305
|
else if (a === 160)
|
|
320
306
|
++d;
|
|
321
|
-
else if (5760 <= a &&
|
|
307
|
+
else if (5760 <= a && Vo.test(String.fromCharCode(a)))
|
|
322
308
|
++d;
|
|
323
309
|
else
|
|
324
310
|
break;
|
|
@@ -327,16 +313,16 @@ var B, si = function(e) {
|
|
|
327
313
|
function m(a) {
|
|
328
314
|
switch (a) {
|
|
329
315
|
case 46:
|
|
330
|
-
a = k.charCodeAt(d + 1), 48 <= a && 57 >= a ?
|
|
316
|
+
a = k.charCodeAt(d + 1), 48 <= a && 57 >= a ? D(!0) : (++d, s(cr));
|
|
331
317
|
return;
|
|
332
318
|
case 40:
|
|
333
|
-
return ++d, s(
|
|
319
|
+
return ++d, s(Se);
|
|
334
320
|
case 41:
|
|
335
321
|
return ++d, s(fe);
|
|
336
322
|
case 59:
|
|
337
|
-
return ++d, s(
|
|
323
|
+
return ++d, s(Ce);
|
|
338
324
|
case 44:
|
|
339
|
-
return ++d, s(
|
|
325
|
+
return ++d, s($e);
|
|
340
326
|
case 91:
|
|
341
327
|
return ++d, s(nn);
|
|
342
328
|
case 93:
|
|
@@ -363,12 +349,12 @@ var B, si = function(e) {
|
|
|
363
349
|
case 55:
|
|
364
350
|
case 56:
|
|
365
351
|
case 57:
|
|
366
|
-
return
|
|
352
|
+
return D(!1);
|
|
367
353
|
case 34:
|
|
368
354
|
case 39:
|
|
369
355
|
d++;
|
|
370
356
|
for (var l = ""; ; ) {
|
|
371
|
-
d >=
|
|
357
|
+
d >= Ue && r(z, "Unterminated string constant");
|
|
372
358
|
var c = k.charCodeAt(d);
|
|
373
359
|
if (c === a) {
|
|
374
360
|
++d, s(Tt, l);
|
|
@@ -417,7 +403,7 @@ var B, si = function(e) {
|
|
|
417
403
|
case 13:
|
|
418
404
|
k.charCodeAt(d) === 10 && ++d;
|
|
419
405
|
case 10:
|
|
420
|
-
A.C && (
|
|
406
|
+
A.C && (ke = d, ++Ne);
|
|
421
407
|
break;
|
|
422
408
|
default:
|
|
423
409
|
l += String.fromCharCode(c);
|
|
@@ -427,26 +413,26 @@ var B, si = function(e) {
|
|
|
427
413
|
}
|
|
428
414
|
return;
|
|
429
415
|
case 47:
|
|
430
|
-
a = k.charCodeAt(d + 1), Ze ? (++d, y()) : a === 61 ? v(
|
|
416
|
+
a = k.charCodeAt(d + 1), Ze ? (++d, y()) : a === 61 ? v(De, 2) : v(dr, 1);
|
|
431
417
|
return;
|
|
432
418
|
case 37:
|
|
433
419
|
case 42:
|
|
434
|
-
k.charCodeAt(d + 1) === 61 ? v(
|
|
420
|
+
k.charCodeAt(d + 1) === 61 ? v(De, 2) : v(jo, 1);
|
|
435
421
|
return;
|
|
436
422
|
case 124:
|
|
437
423
|
case 38:
|
|
438
|
-
l = k.charCodeAt(d + 1), l === a ? v(a === 124 ? mr : gr, 2) : l === 61 ? v(
|
|
424
|
+
l = k.charCodeAt(d + 1), l === a ? v(a === 124 ? mr : gr, 2) : l === 61 ? v(De, 2) : v(a === 124 ? xo : Ao, 1);
|
|
439
425
|
return;
|
|
440
426
|
case 94:
|
|
441
|
-
k.charCodeAt(d + 1) === 61 ? v(
|
|
427
|
+
k.charCodeAt(d + 1) === 61 ? v(De, 2) : v(Ro, 1);
|
|
442
428
|
return;
|
|
443
429
|
case 43:
|
|
444
430
|
case 45:
|
|
445
|
-
l = k.charCodeAt(d + 1), l === a ? l === 45 && k.charCodeAt(d + 2) === 62 && Rt.test(k.slice(
|
|
431
|
+
l = k.charCodeAt(d + 1), l === a ? l === 45 && k.charCodeAt(d + 2) === 62 && Rt.test(k.slice(Ae, d)) ? (d += 3, u(), p(), b()) : v(Io, 2) : l === 61 ? v(De, 2) : v(Bo, 1);
|
|
446
432
|
return;
|
|
447
433
|
case 60:
|
|
448
434
|
case 62:
|
|
449
|
-
l = k.charCodeAt(d + 1), c = 1, l === a ? (c = a === 62 && k.charCodeAt(d + 2) === 62 ? 3 : 2, k.charCodeAt(d + c) === 61 ? v(
|
|
435
|
+
l = k.charCodeAt(d + 1), c = 1, l === a ? (c = a === 62 && k.charCodeAt(d + 2) === 62 ? 3 : 2, k.charCodeAt(d + c) === 61 ? v(De, c + 1) : v(Oo, c)) : l === 33 && a === 60 && k.charCodeAt(d + 2) === 45 && k.charCodeAt(d + 3) === 45 ? (d += 4, u(), p(), b()) : (l === 61 && (c = k.charCodeAt(d + 2) === 61 ? 3 : 2), v(Po, c));
|
|
450
436
|
return;
|
|
451
437
|
case 61:
|
|
452
438
|
case 33:
|
|
@@ -460,13 +446,13 @@ var B, si = function(e) {
|
|
|
460
446
|
function b(a) {
|
|
461
447
|
if (a ? d = z + 1 : z = d, A.C && (zt = new i()), a)
|
|
462
448
|
return y();
|
|
463
|
-
if (d >=
|
|
449
|
+
if (d >= Ue)
|
|
464
450
|
return s(Jt);
|
|
465
451
|
if (a = k.charCodeAt(d), n(a) || a === 92)
|
|
466
|
-
return
|
|
452
|
+
return Re();
|
|
467
453
|
if (m(a) === !1) {
|
|
468
454
|
if (a = String.fromCharCode(a), a === "\\" || vr.test(a))
|
|
469
|
-
return
|
|
455
|
+
return Re();
|
|
470
456
|
r(d, "Unexpected character '" + a + "'");
|
|
471
457
|
}
|
|
472
458
|
}
|
|
@@ -476,7 +462,7 @@ var B, si = function(e) {
|
|
|
476
462
|
}
|
|
477
463
|
function y() {
|
|
478
464
|
for (var a, l, c = d; ; ) {
|
|
479
|
-
d >=
|
|
465
|
+
d >= Ue && r(c, "Unterminated regexp");
|
|
480
466
|
var f = k.charAt(d);
|
|
481
467
|
if (Rt.test(f) && r(c, "Unterminated regexp"), a)
|
|
482
468
|
a = !1;
|
|
@@ -508,7 +494,7 @@ var B, si = function(e) {
|
|
|
508
494
|
}
|
|
509
495
|
return d === c || l !== void 0 && d - c !== l ? null : f;
|
|
510
496
|
}
|
|
511
|
-
function
|
|
497
|
+
function D(a) {
|
|
512
498
|
var l = d, c = !1, f = k.charCodeAt(d) === 48;
|
|
513
499
|
a || I(10) !== null || r(l, "Invalid number"), k.charCodeAt(d) === 46 && (++d, I(10), c = !0), a = k.charCodeAt(d), (a === 69 || a === 101) && (a = k.charCodeAt(++d), a !== 43 && a !== 45 || ++d, I(10) === null && r(l, "Invalid number"), c = !0), n(k.charCodeAt(d)) && r(d, "Identifier directly after number"), a = k.slice(l, d);
|
|
514
500
|
var R;
|
|
@@ -533,223 +519,223 @@ var B, si = function(e) {
|
|
|
533
519
|
}
|
|
534
520
|
return Me ? a : k.slice(c, d);
|
|
535
521
|
}
|
|
536
|
-
function
|
|
522
|
+
function Re() {
|
|
537
523
|
var a = Z(), l = We;
|
|
538
|
-
!Me &&
|
|
524
|
+
!Me && Do(a) && (l = To[a]), s(l, a);
|
|
539
525
|
}
|
|
540
526
|
function $() {
|
|
541
|
-
qt = z,
|
|
527
|
+
qt = z, Ae = Fe, _t = Gt, b();
|
|
542
528
|
}
|
|
543
|
-
function
|
|
529
|
+
function F(a) {
|
|
544
530
|
if (oe = a, d = z, A.C)
|
|
545
|
-
for (; d <
|
|
546
|
-
|
|
547
|
-
`,
|
|
531
|
+
for (; d < ke; )
|
|
532
|
+
ke = k.lastIndexOf(`
|
|
533
|
+
`, ke - 2) + 1, --Ne;
|
|
548
534
|
p(), b();
|
|
549
535
|
}
|
|
550
|
-
function
|
|
536
|
+
function Ve() {
|
|
551
537
|
this.type = null, this.start = z, this.end = null;
|
|
552
538
|
}
|
|
553
|
-
function
|
|
539
|
+
function ge() {
|
|
554
540
|
this.start = zt, this.end = null, Kt && (this.source = Kt);
|
|
555
541
|
}
|
|
556
|
-
function
|
|
557
|
-
var a = new
|
|
558
|
-
return A.C && (a.X = new
|
|
542
|
+
function M() {
|
|
543
|
+
var a = new Ve();
|
|
544
|
+
return A.C && (a.X = new ge()), A.vb && (a.sourceFile = A.vb), A.Xa && (a.j = [z, 0]), a;
|
|
559
545
|
}
|
|
560
546
|
function ue(a) {
|
|
561
|
-
var l = new
|
|
562
|
-
return l.start = a.start, A.C && (l.X = new
|
|
547
|
+
var l = new Ve();
|
|
548
|
+
return l.start = a.start, A.C && (l.X = new ge(), l.X.start = a.X.start), A.Xa && (l.j = [a.j[0], 0]), l;
|
|
563
549
|
}
|
|
564
550
|
function E(a, l) {
|
|
565
|
-
return a.type = l, a.end =
|
|
551
|
+
return a.type = l, a.end = Ae, A.C && (a.X.end = _t), A.Xa && (a.j[1] = Ae), a;
|
|
566
552
|
}
|
|
567
|
-
function
|
|
553
|
+
function ye(a) {
|
|
568
554
|
return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
|
|
569
555
|
}
|
|
570
556
|
function W(a) {
|
|
571
557
|
return x === a ? ($(), !0) : !1;
|
|
572
558
|
}
|
|
573
559
|
function Ct() {
|
|
574
|
-
return !A.fc && (x === Jt || x === Le || Rt.test(k.slice(
|
|
560
|
+
return !A.fc && (x === Jt || x === Le || Rt.test(k.slice(Ae, z)));
|
|
575
561
|
}
|
|
576
|
-
function
|
|
577
|
-
W(
|
|
562
|
+
function je() {
|
|
563
|
+
W(Ce) || Ct() || ve();
|
|
578
564
|
}
|
|
579
|
-
function
|
|
580
|
-
x === a ? $() :
|
|
565
|
+
function H(a) {
|
|
566
|
+
x === a ? $() : ve();
|
|
581
567
|
}
|
|
582
|
-
function
|
|
568
|
+
function ve() {
|
|
583
569
|
r(z, "Unexpected token");
|
|
584
570
|
}
|
|
585
571
|
function wt(a) {
|
|
586
572
|
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), oe && a.type === "Identifier" && xt(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
587
573
|
}
|
|
588
574
|
function ce() {
|
|
589
|
-
(x === dr || x ===
|
|
590
|
-
var a = x, l =
|
|
575
|
+
(x === dr || x === De && ae === "/=") && b(!0);
|
|
576
|
+
var a = x, l = M();
|
|
591
577
|
switch (a) {
|
|
592
578
|
case Xt:
|
|
593
579
|
case qn:
|
|
594
580
|
$();
|
|
595
581
|
var c = a === Xt;
|
|
596
|
-
W(
|
|
597
|
-
for (var f = 0; f <
|
|
598
|
-
var R =
|
|
582
|
+
W(Ce) || Ct() ? l.label = null : x !== We ? ve() : (l.label = be(), je());
|
|
583
|
+
for (var f = 0; f < K.length; ++f) {
|
|
584
|
+
var R = K[f];
|
|
599
585
|
if ((l.label === null || R.name === l.label.name) && (R.kind !== null && (c || R.kind === "loop") || l.label && c))
|
|
600
586
|
break;
|
|
601
587
|
}
|
|
602
|
-
return f ===
|
|
588
|
+
return f === K.length && r(l.start, "Unsyntactic " + a.l), E(l, c ? "BreakStatement" : "ContinueStatement");
|
|
603
589
|
case _n:
|
|
604
|
-
return $(),
|
|
590
|
+
return $(), je(), E(l, "DebuggerStatement");
|
|
605
591
|
case Xn:
|
|
606
|
-
return $(),
|
|
592
|
+
return $(), K.push(on), l.body = ce(), K.pop(), H(tn), l.test = Je(), je(), E(l, "DoWhileStatement");
|
|
607
593
|
case Qn:
|
|
608
|
-
return $(),
|
|
594
|
+
return $(), K.push(on), H(Se), x === Ce ? Ut(l, null) : x === en ? (a = M(), $(), Hn(a, !0), E(a, "VariableDeclaration"), a.fa.length === 1 && W(It) ? Mn(l, a) : Ut(l, a)) : (a = Q(!1, !0), W(It) ? (wt(a), Mn(l, a)) : Ut(l, a));
|
|
609
595
|
case Zt:
|
|
610
596
|
return $(), Mt(l, !0);
|
|
611
597
|
case er:
|
|
612
598
|
return $(), l.test = Je(), l.da = ce(), l.alternate = W(Yn) ? ce() : null, E(l, "IfStatement");
|
|
613
599
|
case tr:
|
|
614
|
-
return Qe || A.Ib || r(z, "'return' outside of function"), $(), W(
|
|
600
|
+
return Qe || A.Ib || r(z, "'return' outside of function"), $(), W(Ce) || Ct() ? l.K = null : (l.K = Q(), je()), E(l, "ReturnStatement");
|
|
615
601
|
case Qt:
|
|
616
|
-
for ($(), l.Qb = Je(), l.tb = [],
|
|
617
|
-
x === Yt || x === Jn ? (a = x === Yt, f && E(f, "SwitchCase"), l.tb.push(f =
|
|
618
|
-
return f && E(f, "SwitchCase"), $(),
|
|
602
|
+
for ($(), l.Qb = Je(), l.tb = [], H(tt), K.push(Fo); x !== Le; )
|
|
603
|
+
x === Yt || x === Jn ? (a = x === Yt, f && E(f, "SwitchCase"), l.tb.push(f = M()), f.da = [], $(), a ? f.test = Q() : (c && r(qt, "Multiple default clauses"), c = !0, f.test = null), H(nt)) : (f || ve(), f.da.push(ce()));
|
|
604
|
+
return f && E(f, "SwitchCase"), $(), K.pop(), E(l, "SwitchStatement");
|
|
619
605
|
case nr:
|
|
620
|
-
return $(), Rt.test(k.slice(
|
|
606
|
+
return $(), Rt.test(k.slice(Ae, z)) && r(Ae, "Illegal newline after throw"), l.K = Q(), je(), E(l, "ThrowStatement");
|
|
621
607
|
case rr:
|
|
622
|
-
return $(), l.block = Xe(), l.Ea = null, x === Gn && (a =
|
|
608
|
+
return $(), l.block = Xe(), l.Ea = null, x === Gn && (a = M(), $(), H(Se), a.Ua = be(), oe && xt(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), H(fe), a.body = Xe(), l.Ea = E(a, "CatchClause")), l.fb = W(Zn) ? Xe() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
623
609
|
case en:
|
|
624
|
-
return $(), Hn(l),
|
|
610
|
+
return $(), Hn(l), je(), E(l, "VariableDeclaration");
|
|
625
611
|
case tn:
|
|
626
|
-
return $(), l.test = Je(),
|
|
612
|
+
return $(), l.test = Je(), K.push(on), l.body = ce(), K.pop(), E(l, "WhileStatement");
|
|
627
613
|
case or:
|
|
628
614
|
return oe && r(z, "'with' in strict mode"), $(), l.object = Je(), l.body = ce(), E(l, "WithStatement");
|
|
629
615
|
case tt:
|
|
630
616
|
return Xe();
|
|
631
|
-
case
|
|
617
|
+
case Ce:
|
|
632
618
|
return $(), E(l, "EmptyStatement");
|
|
633
619
|
default:
|
|
634
|
-
if (c =
|
|
635
|
-
for (f = 0; f <
|
|
636
|
-
|
|
637
|
-
return
|
|
620
|
+
if (c = ae, R = Q(), a === We && R.type === "Identifier" && W(nt)) {
|
|
621
|
+
for (f = 0; f < K.length; ++f)
|
|
622
|
+
K[f].name === c && r(R.start, "Label '" + c + "' is already declared");
|
|
623
|
+
return K.push({
|
|
638
624
|
name: c,
|
|
639
625
|
kind: x.W ? "loop" : x === Qt ? "switch" : null
|
|
640
|
-
}), l.body = ce(),
|
|
626
|
+
}), l.body = ce(), K.pop(), l.label = R, E(l, "LabeledStatement");
|
|
641
627
|
}
|
|
642
|
-
return l.la = R,
|
|
628
|
+
return l.la = R, je(), E(l, "ExpressionStatement");
|
|
643
629
|
}
|
|
644
630
|
}
|
|
645
631
|
function Je() {
|
|
646
|
-
|
|
632
|
+
H(Se);
|
|
647
633
|
var a = Q();
|
|
648
|
-
return
|
|
634
|
+
return H(fe), a;
|
|
649
635
|
}
|
|
650
636
|
function Xe(a) {
|
|
651
|
-
var l =
|
|
652
|
-
for (l.body = [],
|
|
637
|
+
var l = M(), c = !0, f = !1;
|
|
638
|
+
for (l.body = [], H(tt); !W(Le); ) {
|
|
653
639
|
var R = ce();
|
|
654
|
-
if (l.body.push(R), c && a &&
|
|
640
|
+
if (l.body.push(R), c && a && ye(R)) {
|
|
655
641
|
var q = f;
|
|
656
|
-
|
|
642
|
+
F(f = !0);
|
|
657
643
|
}
|
|
658
644
|
c = !1;
|
|
659
645
|
}
|
|
660
|
-
return f && !q &&
|
|
646
|
+
return f && !q && F(!1), E(l, "BlockStatement");
|
|
661
647
|
}
|
|
662
|
-
function
|
|
663
|
-
return a.ua = l,
|
|
648
|
+
function Ut(a, l) {
|
|
649
|
+
return a.ua = l, H(Ce), a.test = x === Ce ? null : Q(), H(Ce), a.update = x === fe ? null : Q(), H(fe), a.body = ce(), K.pop(), E(a, "ForStatement");
|
|
664
650
|
}
|
|
665
651
|
function Mn(a, l) {
|
|
666
|
-
return a.left = l, a.right = Q(),
|
|
652
|
+
return a.left = l, a.right = Q(), H(fe), a.body = ce(), K.pop(), E(a, "ForInStatement");
|
|
667
653
|
}
|
|
668
654
|
function Hn(a, l) {
|
|
669
655
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
670
|
-
var c =
|
|
671
|
-
if (c.id =
|
|
656
|
+
var c = M();
|
|
657
|
+
if (c.id = be(), oe && xt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = W(fr) ? Q(!0, l) : null, a.fa.push(E(c, "VariableDeclarator")), !W($e))
|
|
672
658
|
break;
|
|
673
659
|
}
|
|
674
660
|
}
|
|
675
661
|
function Q(a, l) {
|
|
676
|
-
var c =
|
|
677
|
-
if (!a && x ===
|
|
678
|
-
for (a = ue(c), a.xb = [c]; W(
|
|
679
|
-
a.xb.push(
|
|
662
|
+
var c = Ft(l);
|
|
663
|
+
if (!a && x === $e) {
|
|
664
|
+
for (a = ue(c), a.xb = [c]; W($e); )
|
|
665
|
+
a.xb.push(Ft(l));
|
|
680
666
|
return E(a, "SequenceExpression");
|
|
681
667
|
}
|
|
682
668
|
return c;
|
|
683
669
|
}
|
|
684
|
-
function
|
|
670
|
+
function Ft(a) {
|
|
685
671
|
var l = Wt(Lt(), -1, a);
|
|
686
672
|
if (W(pr)) {
|
|
687
673
|
var c = ue(l);
|
|
688
|
-
c.test = l, c.da = Q(!0),
|
|
674
|
+
c.test = l, c.da = Q(!0), H(nt), c.alternate = Q(!0, a), l = E(c, "ConditionalExpression");
|
|
689
675
|
}
|
|
690
|
-
return x.Cb ? (c = ue(l), c.operator =
|
|
676
|
+
return x.Cb ? (c = ue(l), c.operator = ae, c.left = l, $(), c.right = Ft(a), wt(l), E(c, "AssignmentExpression")) : l;
|
|
691
677
|
}
|
|
692
678
|
function Wt(a, l, c) {
|
|
693
679
|
var f = x.L;
|
|
694
680
|
if (f !== null && (!c || x !== It) && f > l) {
|
|
695
681
|
var R = ue(a);
|
|
696
|
-
return R.left = a, R.operator =
|
|
682
|
+
return R.left = a, R.operator = ae, a = x, $(), R.right = Wt(Lt(), f, c), f = E(R, a === mr || a === gr ? "LogicalExpression" : "BinaryExpression"), Wt(f, l, c);
|
|
697
683
|
}
|
|
698
684
|
return a;
|
|
699
685
|
}
|
|
700
686
|
function Lt() {
|
|
701
687
|
if (x.prefix) {
|
|
702
|
-
var a =
|
|
703
|
-
return a.operator =
|
|
688
|
+
var a = M(), l = x.$b;
|
|
689
|
+
return a.operator = ae, Ze = a.prefix = !0, $(), a.K = Lt(), l ? wt(a.K) : oe && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), E(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
704
690
|
}
|
|
705
691
|
for (l = Ye(Et()); x.cc && !Ct(); )
|
|
706
|
-
a = ue(l), a.operator =
|
|
692
|
+
a = ue(l), a.operator = ae, a.prefix = !1, a.K = l, wt(l), $(), l = E(a, "UpdateExpression");
|
|
707
693
|
return l;
|
|
708
694
|
}
|
|
709
695
|
function Ye(a, l) {
|
|
710
696
|
if (W(cr)) {
|
|
711
697
|
var c = ue(a);
|
|
712
|
-
return c.object = a, c.Wa =
|
|
698
|
+
return c.object = a, c.Wa = be(!0), c.bb = !1, Ye(E(c, "MemberExpression"), l);
|
|
713
699
|
}
|
|
714
|
-
return W(nn) ? (c = ue(a), c.object = a, c.Wa = Q(), c.bb = !0,
|
|
700
|
+
return W(nn) ? (c = ue(a), c.object = a, c.Wa = Q(), c.bb = !0, H(rn), Ye(E(c, "MemberExpression"), l)) : !l && W(Se) ? (c = ue(a), c.callee = a, c.arguments = Ht(fe, !1), Ye(E(c, "CallExpression"), l)) : a;
|
|
715
701
|
}
|
|
716
702
|
function Et() {
|
|
717
703
|
switch (x) {
|
|
718
704
|
case sr:
|
|
719
|
-
var a =
|
|
705
|
+
var a = M();
|
|
720
706
|
return $(), E(a, "ThisExpression");
|
|
721
707
|
case We:
|
|
722
|
-
return
|
|
708
|
+
return be();
|
|
723
709
|
case et:
|
|
724
710
|
case Tt:
|
|
725
711
|
case zn:
|
|
726
|
-
return a =
|
|
712
|
+
return a = M(), a.value = ae, a.raw = k.slice(z, Fe), $(), E(a, "Literal");
|
|
727
713
|
case ar:
|
|
728
714
|
case lr:
|
|
729
715
|
case ur:
|
|
730
|
-
return a =
|
|
731
|
-
case
|
|
716
|
+
return a = M(), a.value = x.$a, a.raw = x.l, $(), E(a, "Literal");
|
|
717
|
+
case Se:
|
|
732
718
|
a = zt;
|
|
733
719
|
var l = z;
|
|
734
720
|
$();
|
|
735
721
|
var c = Q();
|
|
736
|
-
return c.start = l, c.end =
|
|
722
|
+
return c.start = l, c.end = Fe, A.C && (c.X.start = a, c.X.end = Gt), A.Xa && (c.j = [l, Fe]), H(fe), c;
|
|
737
723
|
case nn:
|
|
738
|
-
return a =
|
|
724
|
+
return a = M(), $(), a.elements = Ht(rn, !0, !0), E(a, "ArrayExpression");
|
|
739
725
|
case tt:
|
|
740
|
-
for (a =
|
|
726
|
+
for (a = M(), l = !0, c = !1, a.h = [], $(); !W(Le); ) {
|
|
741
727
|
if (l)
|
|
742
728
|
l = !1;
|
|
743
|
-
else if (
|
|
729
|
+
else if (H($e), A.sb && W(Le))
|
|
744
730
|
break;
|
|
745
731
|
var f = {
|
|
746
|
-
key: x === et || x === Tt ? Et() :
|
|
732
|
+
key: x === et || x === Tt ? Et() : be(!0)
|
|
747
733
|
}, R = !1;
|
|
748
734
|
if (W(nt)) {
|
|
749
735
|
f.value = Q(!0);
|
|
750
736
|
var q = f.kind = "init";
|
|
751
737
|
} else
|
|
752
|
-
f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ?
|
|
738
|
+
f.key.type !== "Identifier" || f.key.name !== "get" && f.key.name !== "set" ? ve() : (R = c = !0, q = f.kind = f.key.name, f.key = x === et || x === Tt ? Et() : be(!0), x !== Se && ve(), f.value = Mt(M(), !1));
|
|
753
739
|
if (f.key.type === "Identifier" && (oe || c))
|
|
754
740
|
for (var ee = 0; ee < a.h.length; ++ee) {
|
|
755
741
|
var He = a.h[ee];
|
|
@@ -762,20 +748,20 @@ var B, si = function(e) {
|
|
|
762
748
|
}
|
|
763
749
|
return E(a, "ObjectExpression");
|
|
764
750
|
case Zt:
|
|
765
|
-
return a =
|
|
751
|
+
return a = M(), $(), Mt(a, !1);
|
|
766
752
|
case ir:
|
|
767
|
-
return a =
|
|
753
|
+
return a = M(), $(), a.callee = Ye(Et(), !0), a.arguments = W(Se) ? Ht(fe, !1) : Eo, E(a, "NewExpression");
|
|
768
754
|
}
|
|
769
|
-
|
|
755
|
+
ve();
|
|
770
756
|
}
|
|
771
757
|
function Mt(a, l) {
|
|
772
|
-
x === We ? a.id =
|
|
758
|
+
x === We ? a.id = be() : l ? ve() : a.id = null, a.oa = [];
|
|
773
759
|
var c = !0;
|
|
774
|
-
for (
|
|
775
|
-
c ? c = !1 :
|
|
760
|
+
for (H(Se); !W(fe); )
|
|
761
|
+
c ? c = !1 : H($e), a.oa.push(be());
|
|
776
762
|
c = Qe;
|
|
777
|
-
var f =
|
|
778
|
-
if (Qe = !0,
|
|
763
|
+
var f = K;
|
|
764
|
+
if (Qe = !0, K = [], a.body = Xe(!0), Qe = c, K = f, oe || a.body.body.length && ye(a.body.body[0])) {
|
|
779
765
|
for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
|
|
780
766
|
if (f = 0 > c ? a.id : a.oa[c], (yr(f.name) || xt(f.name)) && r(f.start, "Defining '" + f.name + "' in strict mode"), 0 <= c)
|
|
781
767
|
for (var R = 0; R < c; ++R)
|
|
@@ -787,24 +773,24 @@ var B, si = function(e) {
|
|
|
787
773
|
for (var f = [], R = !0; !W(a); ) {
|
|
788
774
|
if (R)
|
|
789
775
|
R = !1;
|
|
790
|
-
else if (
|
|
776
|
+
else if (H($e), l && A.sb && W(a))
|
|
791
777
|
break;
|
|
792
|
-
f.push(c && x ===
|
|
778
|
+
f.push(c && x === $e ? null : Q(!0));
|
|
793
779
|
}
|
|
794
780
|
return f;
|
|
795
781
|
}
|
|
796
|
-
function
|
|
797
|
-
var l =
|
|
798
|
-
return a && A.yb === "everywhere" && (a = !1), x === We ? (!a && (A.yb && No(
|
|
782
|
+
function be(a) {
|
|
783
|
+
var l = M();
|
|
784
|
+
return a && A.yb === "everywhere" && (a = !1), x === We ? (!a && (A.yb && No(ae) || oe && yr(ae)) && k.slice(z, Fe).indexOf("\\") === -1 && r(z, "The keyword '" + ae + "' is reserved"), l.name = ae) : a && x.l ? l.name = x.l : ve(), Ze = !1, $(), E(l, "Identifier");
|
|
799
785
|
}
|
|
800
786
|
e.version = "0.5.0";
|
|
801
|
-
var A, k = "",
|
|
787
|
+
var A, k = "", Ue, Kt;
|
|
802
788
|
e.parse = function(a, l) {
|
|
803
|
-
k = String(a),
|
|
789
|
+
k = String(a), Ue = k.length, A = l || {};
|
|
804
790
|
for (var c in Kn)
|
|
805
791
|
Object.prototype.hasOwnProperty.call(A, c) || (A[c] = Kn[c]);
|
|
806
|
-
for (Kt = A.sourceFile, Ne = 1, d =
|
|
807
|
-
c = ce(), a.body.push(c), l &&
|
|
792
|
+
for (Kt = A.sourceFile, Ne = 1, d = ke = 0, Ze = !0, p(), c = A.dc, qt = Ae = d, A.C && (_t = new i()), Qe = oe = !1, K = [], b(), a = c || M(), l = !0, c || (a.body = []); x !== Jt; )
|
|
793
|
+
c = ce(), a.body.push(c), l && ye(c) && F(!0), l = !1;
|
|
808
794
|
return E(a, "Program");
|
|
809
795
|
};
|
|
810
796
|
var Kn = {
|
|
@@ -818,7 +804,7 @@ var B, si = function(e) {
|
|
|
818
804
|
dc: null,
|
|
819
805
|
sourceFile: null,
|
|
820
806
|
vb: null
|
|
821
|
-
}, d = 0, z = 0,
|
|
807
|
+
}, d = 0, z = 0, Fe = 0, zt, Gt, x, ae, Ze, Ne, ke, qt = 0, Ae = 0, _t, Qe, K, oe, Eo = [], et = {
|
|
822
808
|
type: "num"
|
|
823
809
|
}, zn = {
|
|
824
810
|
type: "regexp"
|
|
@@ -947,15 +933,15 @@ var B, si = function(e) {
|
|
|
947
933
|
m: !0
|
|
948
934
|
}, Le = {
|
|
949
935
|
type: "}"
|
|
950
|
-
},
|
|
936
|
+
}, Se = {
|
|
951
937
|
type: "(",
|
|
952
938
|
m: !0
|
|
953
939
|
}, fe = {
|
|
954
940
|
type: ")"
|
|
955
|
-
},
|
|
941
|
+
}, $e = {
|
|
956
942
|
type: ",",
|
|
957
943
|
m: !0
|
|
958
|
-
},
|
|
944
|
+
}, Ce = {
|
|
959
945
|
type: ";",
|
|
960
946
|
m: !0
|
|
961
947
|
}, nt = {
|
|
@@ -972,7 +958,7 @@ var B, si = function(e) {
|
|
|
972
958
|
}, fr = {
|
|
973
959
|
Cb: !0,
|
|
974
960
|
m: !0
|
|
975
|
-
},
|
|
961
|
+
}, De = {
|
|
976
962
|
Cb: !0,
|
|
977
963
|
m: !0
|
|
978
964
|
}, Io = {
|
|
@@ -1006,20 +992,20 @@ var B, si = function(e) {
|
|
|
1006
992
|
}, Oo = {
|
|
1007
993
|
L: 8,
|
|
1008
994
|
m: !0
|
|
1009
|
-
},
|
|
995
|
+
}, Bo = {
|
|
1010
996
|
L: 9,
|
|
1011
997
|
prefix: !0,
|
|
1012
998
|
m: !0
|
|
1013
|
-
},
|
|
999
|
+
}, jo = {
|
|
1014
1000
|
L: 10,
|
|
1015
1001
|
m: !0
|
|
1016
|
-
}, No = o("class enum extends super const export import"), yr = o("implements interface let package private protected public static yield"), xt = o("eval arguments"),
|
|
1002
|
+
}, No = o("class enum extends super const export import"), yr = o("implements interface let package private protected public static yield"), xt = o("eval arguments"), Do = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Vo = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, vr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Uo = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), Rt = /[\n\r\u2028\u2029]/, At = /\r\n|[\n\r\u2028\u2029]/g, Me, on = {
|
|
1017
1003
|
kind: "loop"
|
|
1018
|
-
},
|
|
1004
|
+
}, Fo = {
|
|
1019
1005
|
kind: "switch"
|
|
1020
1006
|
};
|
|
1021
1007
|
}, hn = hn = typeof globalThis > "u" ? void 0 : globalThis;
|
|
1022
|
-
|
|
1008
|
+
oi(hn.j || (hn.j = {}));
|
|
1023
1009
|
function h(e, t) {
|
|
1024
1010
|
typeof e == "string" && (e = ze(e, "code"));
|
|
1025
1011
|
var n = e.constructor;
|
|
@@ -1036,7 +1022,7 @@ function h(e, t) {
|
|
|
1036
1022
|
for (s in this)
|
|
1037
1023
|
typeof this[s] == "function" && (i = s.match(e)) && (this.rb[i[1]] = this[s].bind(this));
|
|
1038
1024
|
this.N = gn(this, this.ra, null), this.Na = this.N.object, this.ra = ze(this.ba.join(`
|
|
1039
|
-
`), "polyfills"), this.ba = void 0,
|
|
1025
|
+
`), "polyfills"), this.ba = void 0, Dt(this.ra), i = new C(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new C(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
1040
1026
|
}
|
|
1041
1027
|
var br = {
|
|
1042
1028
|
C: !0,
|
|
@@ -1069,7 +1055,7 @@ var br = {
|
|
|
1069
1055
|
VALUE_IN_DESCRIPTOR: !0
|
|
1070
1056
|
}, Ke = {
|
|
1071
1057
|
REGEXP_TIMEOUT: !0
|
|
1072
|
-
}, Sr = [],
|
|
1058
|
+
}, Sr = [], Ee = null, ct = null, Oe = typeof globalThis > "u" ? void 0 : globalThis, ii = ["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();", "};"];
|
|
1073
1059
|
function wn(e) {
|
|
1074
1060
|
var t = e >>> 0;
|
|
1075
1061
|
return t === Number(e) ? t : NaN;
|
|
@@ -1078,29 +1064,29 @@ function pt(e) {
|
|
|
1078
1064
|
var t = e >>> 0;
|
|
1079
1065
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
1080
1066
|
}
|
|
1081
|
-
function
|
|
1067
|
+
function Dt(e, t, n) {
|
|
1082
1068
|
t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
|
|
1083
1069
|
for (var r in e)
|
|
1084
1070
|
if (r !== "loc" && e.hasOwnProperty(r)) {
|
|
1085
1071
|
var o = e[r];
|
|
1086
|
-
o && typeof o == "object" &&
|
|
1072
|
+
o && typeof o == "object" && Dt(o, t, n);
|
|
1087
1073
|
}
|
|
1088
1074
|
}
|
|
1089
1075
|
h.prototype.REGEXP_MODE = 2;
|
|
1090
1076
|
h.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
1091
1077
|
h.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1078
|
+
j = h.prototype;
|
|
1079
|
+
j.P = !1;
|
|
1080
|
+
j.Ka = !1;
|
|
1081
|
+
j.Kb = 0;
|
|
1082
|
+
j.ic = 0;
|
|
1097
1083
|
function ze(e, t) {
|
|
1098
1084
|
var n = {}, r;
|
|
1099
1085
|
for (r in br)
|
|
1100
1086
|
n[r] = br[r];
|
|
1101
|
-
return n.sourceFile = t,
|
|
1087
|
+
return n.sourceFile = t, Oe.j.parse(e, n);
|
|
1102
1088
|
}
|
|
1103
|
-
|
|
1089
|
+
j.Jb = function(e) {
|
|
1104
1090
|
var t = this.o[0];
|
|
1105
1091
|
if (!t || t.node.type !== "Program")
|
|
1106
1092
|
throw Error("Expecting original AST to start with a Program node");
|
|
@@ -1108,7 +1094,7 @@ B.Jb = function(e) {
|
|
|
1108
1094
|
throw Error("Expecting new AST to start with a Program node");
|
|
1109
1095
|
gt(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
1110
1096
|
};
|
|
1111
|
-
|
|
1097
|
+
j.lb = function() {
|
|
1112
1098
|
var e = this.o, t;
|
|
1113
1099
|
do {
|
|
1114
1100
|
var n = e[e.length - 1];
|
|
@@ -1146,13 +1132,13 @@ B.lb = function() {
|
|
|
1146
1132
|
} while (!r.end && t > Date.now());
|
|
1147
1133
|
return !0;
|
|
1148
1134
|
};
|
|
1149
|
-
|
|
1135
|
+
j.Eb = function() {
|
|
1150
1136
|
for (; !this.za && this.lb(); )
|
|
1151
1137
|
;
|
|
1152
1138
|
return this.za;
|
|
1153
1139
|
};
|
|
1154
|
-
function
|
|
1155
|
-
e.g(t, "NaN", NaN, ot), e.g(t, "Infinity", 1 / 0, ot), e.g(t, "undefined", void 0, ot), e.g(t, "window", t, Cn), e.g(t, "this", t, ot), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M),
|
|
1140
|
+
function si(e, t) {
|
|
1141
|
+
e.g(t, "NaN", NaN, ot), e.g(t, "Infinity", 1 / 0, ot), e.g(t, "undefined", void 0, ot), e.g(t, "window", t, Cn), e.g(t, "this", t, ot), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), ai(e, t), li(e, t), t.xa = e.M, e.g(t, "constructor", e.v, S), ui(e, t), ci(e, t), pi(e, t), di(e, t), fi(e, t), hi(e, t), mi(e, t), gi(e, t), yi(e, t);
|
|
1156
1142
|
var n = e.i(function() {
|
|
1157
1143
|
throw EvalError("Can't happen");
|
|
1158
1144
|
}, !1);
|
|
@@ -1177,8 +1163,8 @@ function li(e, t) {
|
|
|
1177
1163
|
wr(e, i);
|
|
1178
1164
|
}, e.g(t, "clearInterval", e.i(n, !1), S), 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);
|
|
1179
1165
|
}
|
|
1180
|
-
|
|
1181
|
-
function
|
|
1166
|
+
j.Wb = 0;
|
|
1167
|
+
function ai(e, t) {
|
|
1182
1168
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1183
1169
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1184
1170
|
if (s) {
|
|
@@ -1212,23 +1198,23 @@ function ui(e, t) {
|
|
|
1212
1198
|
return this.valueOf();
|
|
1213
1199
|
}, J(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), S);
|
|
1214
1200
|
}
|
|
1215
|
-
function
|
|
1201
|
+
function li(e, t) {
|
|
1216
1202
|
function n(o) {
|
|
1217
1203
|
o != null || w(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1218
1204
|
}
|
|
1219
1205
|
var r = function(o) {
|
|
1220
1206
|
if (o == null)
|
|
1221
|
-
return
|
|
1207
|
+
return xe(e) ? this : e.s(e.M);
|
|
1222
1208
|
if (!(o instanceof P)) {
|
|
1223
|
-
var i = e.s(
|
|
1209
|
+
var i = e.s(Te(e, o));
|
|
1224
1210
|
return i.data = o, i;
|
|
1225
1211
|
}
|
|
1226
1212
|
return o;
|
|
1227
1213
|
};
|
|
1228
1214
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, S), e.g(e.M, "constructor", e.v, S), e.g(t, "Object", e.v, S), r = function(o) {
|
|
1229
|
-
return n(o),
|
|
1215
|
+
return n(o), we(e, Object.getOwnPropertyNames(o instanceof P ? o.h : o));
|
|
1230
1216
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), S), r = function(o) {
|
|
1231
|
-
return n(o), o instanceof P && (o = o.h),
|
|
1217
|
+
return n(o), o instanceof P && (o = o.h), we(e, Object.keys(o));
|
|
1232
1218
|
}, e.g(e.v, "keys", e.i(r, !1), S), r = function(o) {
|
|
1233
1219
|
return o === null ? e.s(null) : (o instanceof P || w(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1234
1220
|
}, e.g(e.v, "create", e.i(r, !1), S), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, i, s) {
|
|
@@ -1239,7 +1225,7 @@ function ci(e, t) {
|
|
|
1239
1225
|
return o = o.Y[i], i = e.s(e.M), u || o ? (e.g(i, "get", u), e.g(i, "set", o)) : (e.g(i, "value", s.value), e.g(i, "writable", s.writable)), e.g(i, "configurable", s.configurable), e.g(i, "enumerable", s.enumerable), i;
|
|
1240
1226
|
}
|
|
1241
1227
|
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), S), r = function(o) {
|
|
1242
|
-
return n(o),
|
|
1228
|
+
return n(o), Te(e, o);
|
|
1243
1229
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), S), r = function(o) {
|
|
1244
1230
|
return !!o && !o.preventExtensions;
|
|
1245
1231
|
}, e.g(e.v, "isExtensible", e.i(r, !1), S), r = function(o) {
|
|
@@ -1250,16 +1236,16 @@ function ci(e, t) {
|
|
|
1250
1236
|
return n(this), this instanceof P ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1251
1237
|
}, J(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1252
1238
|
for (; ; ) {
|
|
1253
|
-
if (o =
|
|
1239
|
+
if (o = Te(e, o), !o)
|
|
1254
1240
|
return !1;
|
|
1255
1241
|
if (o === this)
|
|
1256
1242
|
return !0;
|
|
1257
1243
|
}
|
|
1258
1244
|
}, J(e, e.v, "isPrototypeOf", r);
|
|
1259
1245
|
}
|
|
1260
|
-
function
|
|
1246
|
+
function ui(e, t) {
|
|
1261
1247
|
var n = function(r) {
|
|
1262
|
-
var o =
|
|
1248
|
+
var o = xe(e) ? this : Ge(e), i = arguments[0];
|
|
1263
1249
|
if (arguments.length === 1 && typeof i == "number")
|
|
1264
1250
|
isNaN(wn(i)) && w(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1265
1251
|
else {
|
|
@@ -1277,9 +1263,9 @@ function pi(e, t) {
|
|
|
1277
1263
|
writable: !0
|
|
1278
1264
|
}), 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(',');", "}", ");", "})();", "");
|
|
1279
1265
|
}
|
|
1280
|
-
function
|
|
1266
|
+
function ci(e, t) {
|
|
1281
1267
|
var n = function(r) {
|
|
1282
|
-
return r = arguments.length ?
|
|
1268
|
+
return r = arguments.length ? Oe.String(r) : "", xe(e) ? (this.data = r, this) : r;
|
|
1283
1269
|
};
|
|
1284
1270
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, S), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), S), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1285
1271
|
J(e, e.J, t[n], String.prototype[t[n]]);
|
|
@@ -1292,42 +1278,42 @@ function di(e, t) {
|
|
|
1292
1278
|
}
|
|
1293
1279
|
}, J(e, e.J, "localeCompare", n), n = function(r, o, i) {
|
|
1294
1280
|
var s = String(this);
|
|
1295
|
-
if (o = o ? Number(o) : void 0,
|
|
1296
|
-
if (
|
|
1281
|
+
if (o = o ? Number(o) : void 0, Y(e, r, e.I) && (r = r.data, st(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1282
|
+
if (Ee)
|
|
1297
1283
|
r = it(e, "string.split(separator, limit)", {
|
|
1298
1284
|
string: s,
|
|
1299
1285
|
separator: r,
|
|
1300
1286
|
limit: o
|
|
1301
|
-
}, r, i), r !== Ke && i(
|
|
1287
|
+
}, r, i), r !== Ke && i(we(e, r));
|
|
1302
1288
|
else {
|
|
1303
1289
|
var u = e.ha(), p = at(e, r, u, i);
|
|
1304
1290
|
u.onmessage = function(m) {
|
|
1305
|
-
clearTimeout(p), i(
|
|
1291
|
+
clearTimeout(p), i(we(e, m.data));
|
|
1306
1292
|
}, u.postMessage(["split", s, r, o]);
|
|
1307
1293
|
}
|
|
1308
1294
|
return;
|
|
1309
1295
|
}
|
|
1310
|
-
r = s.split(r, o), i(
|
|
1296
|
+
r = s.split(r, o), i(we(e, r));
|
|
1311
1297
|
}, lt(e, e.J, "split", n), n = function(r, o) {
|
|
1312
1298
|
var i = String(this);
|
|
1313
|
-
if (r =
|
|
1314
|
-
if (
|
|
1299
|
+
if (r = Y(e, r, e.I) ? r.data : new RegExp(r), st(e, r, o), e.REGEXP_MODE === 2)
|
|
1300
|
+
if (Ee)
|
|
1315
1301
|
r = it(e, "string.match(regexp)", {
|
|
1316
1302
|
string: i,
|
|
1317
1303
|
regexp: r
|
|
1318
|
-
}, r, o), r !== Ke && o(r &&
|
|
1304
|
+
}, r, o), r !== Ke && o(r && we(e, r));
|
|
1319
1305
|
else {
|
|
1320
1306
|
var s = e.ha(), u = at(e, r, s, o);
|
|
1321
1307
|
s.onmessage = function(p) {
|
|
1322
|
-
clearTimeout(u), o(p.data &&
|
|
1308
|
+
clearTimeout(u), o(p.data && we(e, p.data));
|
|
1323
1309
|
}, s.postMessage(["match", i, r]);
|
|
1324
1310
|
}
|
|
1325
1311
|
else
|
|
1326
|
-
r = i.match(r), o(r &&
|
|
1312
|
+
r = i.match(r), o(r && we(e, r));
|
|
1327
1313
|
}, lt(e, e.J, "match", n), n = function(r, o) {
|
|
1328
1314
|
var i = String(this);
|
|
1329
|
-
if (
|
|
1330
|
-
if (
|
|
1315
|
+
if (Y(e, r, e.I) ? r = r.data : r = new RegExp(r), st(e, r, o), e.REGEXP_MODE === 2)
|
|
1316
|
+
if (Ee)
|
|
1331
1317
|
r = it(e, "string.search(regexp)", {
|
|
1332
1318
|
string: i,
|
|
1333
1319
|
regexp: r
|
|
@@ -1342,8 +1328,8 @@ function di(e, t) {
|
|
|
1342
1328
|
o(i.search(r));
|
|
1343
1329
|
}, lt(e, e.J, "search", n), n = function(r, o, i) {
|
|
1344
1330
|
var s = String(this);
|
|
1345
|
-
if (o = String(o),
|
|
1346
|
-
if (
|
|
1331
|
+
if (o = String(o), Y(e, r, e.I) && (r = r.data, st(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1332
|
+
if (Ee)
|
|
1347
1333
|
r = it(e, "string.replace(substr, newSubstr)", {
|
|
1348
1334
|
string: s,
|
|
1349
1335
|
substr: r,
|
|
@@ -1360,14 +1346,14 @@ function di(e, t) {
|
|
|
1360
1346
|
i(s.replace(r, o));
|
|
1361
1347
|
}, lt(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;", "};", "})();", "");
|
|
1362
1348
|
}
|
|
1363
|
-
function
|
|
1349
|
+
function pi(e, t) {
|
|
1364
1350
|
e.mb = e.i(function(n) {
|
|
1365
|
-
return n =
|
|
1351
|
+
return n = Oe.Boolean(n), xe(e) ? (this.data = n, this) : n;
|
|
1366
1352
|
}, !0), e.g(t, "Boolean", e.mb, S);
|
|
1367
1353
|
}
|
|
1368
|
-
function
|
|
1354
|
+
function di(e, t) {
|
|
1369
1355
|
var n = function(r) {
|
|
1370
|
-
return r = arguments.length ?
|
|
1356
|
+
return r = arguments.length ? Oe.Number(r) : 0, xe(e) ? (this.data = r, this) : r;
|
|
1371
1357
|
};
|
|
1372
1358
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, S), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1373
1359
|
e.g(e.aa, t[n], Number[t[n]], ot);
|
|
@@ -1404,12 +1390,12 @@ function hi(e, t) {
|
|
|
1404
1390
|
}
|
|
1405
1391
|
}, J(e, e.aa, "toLocaleString", n);
|
|
1406
1392
|
}
|
|
1407
|
-
function
|
|
1393
|
+
function fi(e, t) {
|
|
1408
1394
|
var n = function(o, i) {
|
|
1409
|
-
if (!
|
|
1410
|
-
return
|
|
1395
|
+
if (!xe(e))
|
|
1396
|
+
return Oe.Date();
|
|
1411
1397
|
var s = [null].concat(Array.from(arguments));
|
|
1412
|
-
return this.data = new (Function.prototype.bind.apply(
|
|
1398
|
+
return this.data = new (Function.prototype.bind.apply(Oe.Date, s))(), this;
|
|
1413
1399
|
};
|
|
1414
1400
|
e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, S), e.g(e.$, "now", e.i(Date.now, !1), S), e.g(e.$, "parse", e.i(Date.parse, !1), S), e.g(e.$, "UTC", e.i(Date.UTC, !1), S), t = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
|
|
1415
1401
|
for (var r = 0; r < t.length; r++)
|
|
@@ -1423,18 +1409,18 @@ function mi(e, t) {
|
|
|
1423
1409
|
};
|
|
1424
1410
|
}(t[r]), J(e, e.$, t[r], n);
|
|
1425
1411
|
}
|
|
1426
|
-
function
|
|
1412
|
+
function hi(e, t) {
|
|
1427
1413
|
var n = function(r, o) {
|
|
1428
|
-
if (
|
|
1414
|
+
if (xe(e))
|
|
1429
1415
|
var i = this;
|
|
1430
1416
|
else {
|
|
1431
|
-
if (o === void 0 &&
|
|
1417
|
+
if (o === void 0 && Y(e, r, e.I))
|
|
1432
1418
|
return r;
|
|
1433
1419
|
i = e.s(e.Ma);
|
|
1434
1420
|
}
|
|
1435
1421
|
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || w(e, e.T, "Invalid regexp flag: " + o);
|
|
1436
1422
|
try {
|
|
1437
|
-
var s = new
|
|
1423
|
+
var s = new Oe.RegExp(r, o);
|
|
1438
1424
|
} catch (u) {
|
|
1439
1425
|
w(e, e.T, u.message);
|
|
1440
1426
|
}
|
|
@@ -1443,14 +1429,14 @@ function gi(e, t) {
|
|
|
1443
1429
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, S), e.g(e.I.h.prototype, "global", void 0, ne), e.g(e.I.h.prototype, "ignoreCase", void 0, ne), e.g(e.I.h.prototype, "multiline", void 0, ne), e.g(e.I.h.prototype, "source", "(?:)", ne), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1444
1430
|
function i(b) {
|
|
1445
1431
|
if (b) {
|
|
1446
|
-
var v =
|
|
1432
|
+
var v = we(e, b);
|
|
1447
1433
|
return e.g(v, "index", b.index), e.g(v, "input", b.input), v;
|
|
1448
1434
|
}
|
|
1449
1435
|
return null;
|
|
1450
1436
|
}
|
|
1451
1437
|
var s = this.data;
|
|
1452
1438
|
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")), st(e, s, o), e.REGEXP_MODE === 2)
|
|
1453
|
-
if (
|
|
1439
|
+
if (Ee)
|
|
1454
1440
|
r = it(e, "regexp.exec(string)", {
|
|
1455
1441
|
string: r,
|
|
1456
1442
|
regexp: s
|
|
@@ -1465,20 +1451,20 @@ function gi(e, t) {
|
|
|
1465
1451
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(i(r));
|
|
1466
1452
|
}, lt(e, e.I, "exec", n);
|
|
1467
1453
|
}
|
|
1468
|
-
function
|
|
1454
|
+
function mi(e, t) {
|
|
1469
1455
|
function n(r) {
|
|
1470
1456
|
var o = e.i(function(i) {
|
|
1471
|
-
var s =
|
|
1457
|
+
var s = xe(e) ? this : e.Aa(o);
|
|
1472
1458
|
return mn(e, s, i), s;
|
|
1473
1459
|
}, !0);
|
|
1474
1460
|
return e.g(o, "prototype", e.Aa(e.D), S), e.g(o.h.prototype, "name", r, S), e.g(t, r, o, S), o;
|
|
1475
1461
|
}
|
|
1476
1462
|
e.D = e.i(function(r) {
|
|
1477
|
-
var o =
|
|
1463
|
+
var o = xe(e) ? this : e.Aa(e.D);
|
|
1478
1464
|
return mn(e, o, r), o;
|
|
1479
1465
|
}, !0), e.g(t, "Error", e.D, S), e.g(e.D.h.prototype, "message", "", S), e.g(e.D.h.prototype, "name", "Error", S), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1480
1466
|
}
|
|
1481
|
-
function
|
|
1467
|
+
function gi(e, t) {
|
|
1482
1468
|
var n = e.s(e.M);
|
|
1483
1469
|
e.g(t, "Math", n, S);
|
|
1484
1470
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1487,7 +1473,7 @@ function vi(e, t) {
|
|
|
1487
1473
|
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++)
|
|
1488
1474
|
e.g(n, r[t], e.i(Math[r[t]], !1), S);
|
|
1489
1475
|
}
|
|
1490
|
-
function
|
|
1476
|
+
function yi(e, t) {
|
|
1491
1477
|
var n = e.s(e.M);
|
|
1492
1478
|
e.g(t, "JSON", n, S), t = function(r) {
|
|
1493
1479
|
try {
|
|
@@ -1508,12 +1494,12 @@ function bi(e, t) {
|
|
|
1508
1494
|
return s;
|
|
1509
1495
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
1510
1496
|
}
|
|
1511
|
-
function
|
|
1497
|
+
function Y(e, t, n) {
|
|
1512
1498
|
if (t == null || !n)
|
|
1513
1499
|
return !1;
|
|
1514
1500
|
if (n = n.h.prototype, t === n)
|
|
1515
1501
|
return !0;
|
|
1516
|
-
for (t =
|
|
1502
|
+
for (t = Te(e, t); t; ) {
|
|
1517
1503
|
if (t === n)
|
|
1518
1504
|
return !0;
|
|
1519
1505
|
t = t.xa;
|
|
@@ -1540,9 +1526,9 @@ function mn(e, t, n) {
|
|
|
1540
1526
|
}
|
|
1541
1527
|
e.g(t, "stack", i.trim(), S);
|
|
1542
1528
|
}
|
|
1543
|
-
|
|
1529
|
+
j.ha = function() {
|
|
1544
1530
|
var e = this.ha.Mb;
|
|
1545
|
-
return e || (e = new Blob([
|
|
1531
|
+
return e || (e = new Blob([ii.join(`
|
|
1546
1532
|
`)], {
|
|
1547
1533
|
type: "application/javascript"
|
|
1548
1534
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1552,7 +1538,7 @@ function it(e, t, n, r, o) {
|
|
|
1552
1538
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1553
1539
|
};
|
|
1554
1540
|
try {
|
|
1555
|
-
return
|
|
1541
|
+
return Ee.runInNewContext(t, n, i);
|
|
1556
1542
|
} catch {
|
|
1557
1543
|
o(null), w(e, e.D, "RegExp Timeout: " + r);
|
|
1558
1544
|
}
|
|
@@ -1563,16 +1549,16 @@ function st(e, t, n) {
|
|
|
1563
1549
|
var r = !1;
|
|
1564
1550
|
else if (e.REGEXP_MODE === 1)
|
|
1565
1551
|
r = !0;
|
|
1566
|
-
else if (
|
|
1552
|
+
else if (Ee)
|
|
1567
1553
|
r = !0;
|
|
1568
1554
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1569
1555
|
r = !0;
|
|
1570
1556
|
else if (typeof require == "function") {
|
|
1571
1557
|
try {
|
|
1572
|
-
|
|
1558
|
+
Ee = require("vm");
|
|
1573
1559
|
} catch {
|
|
1574
1560
|
}
|
|
1575
|
-
r = !!
|
|
1561
|
+
r = !!Ee;
|
|
1576
1562
|
} else
|
|
1577
1563
|
r = !1;
|
|
1578
1564
|
r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
@@ -1586,13 +1572,13 @@ function at(e, t, n, r) {
|
|
|
1586
1572
|
}
|
|
1587
1573
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1588
1574
|
}
|
|
1589
|
-
|
|
1575
|
+
j.Aa = function(e) {
|
|
1590
1576
|
return this.s(e && e.h.prototype);
|
|
1591
1577
|
};
|
|
1592
|
-
|
|
1578
|
+
j.s = function(e) {
|
|
1593
1579
|
if (typeof e != "object")
|
|
1594
1580
|
throw Error("Non object prototype");
|
|
1595
|
-
return e = new P(e),
|
|
1581
|
+
return e = new P(e), Y(this, e, this.D) && (e.H = "Error"), e;
|
|
1596
1582
|
};
|
|
1597
1583
|
function Ge(e) {
|
|
1598
1584
|
var t = e.s(e.La);
|
|
@@ -1610,14 +1596,14 @@ function In(e, t, n, r) {
|
|
|
1610
1596
|
var o = Tn(e, t.oa.length, !0);
|
|
1611
1597
|
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", ne), o;
|
|
1612
1598
|
}
|
|
1613
|
-
|
|
1599
|
+
j.i = function(e, t) {
|
|
1614
1600
|
return t = Tn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, ne), t;
|
|
1615
1601
|
};
|
|
1616
|
-
|
|
1602
|
+
j.ub = function(e) {
|
|
1617
1603
|
var t = Tn(this, e.length, !0);
|
|
1618
1604
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, ne), t;
|
|
1619
1605
|
};
|
|
1620
|
-
|
|
1606
|
+
j.Ia = function(e) {
|
|
1621
1607
|
if (e instanceof P)
|
|
1622
1608
|
throw Error("Object is already pseudo");
|
|
1623
1609
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
@@ -1648,14 +1634,14 @@ B.Ia = function(e) {
|
|
|
1648
1634
|
this.g(t, r, this.Ia(e[r]));
|
|
1649
1635
|
return t;
|
|
1650
1636
|
};
|
|
1651
|
-
|
|
1637
|
+
j.R = function(e, t) {
|
|
1652
1638
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1653
1639
|
return e;
|
|
1654
1640
|
if (!(e instanceof P))
|
|
1655
1641
|
throw Error("Object is not pseudo");
|
|
1656
|
-
if (
|
|
1642
|
+
if (Y(this, e, this.I))
|
|
1657
1643
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
1658
|
-
if (
|
|
1644
|
+
if (Y(this, e, this.$))
|
|
1659
1645
|
return new Date(e.data.valueOf());
|
|
1660
1646
|
t = t || {
|
|
1661
1647
|
hb: [],
|
|
@@ -1664,10 +1650,10 @@ B.R = function(e, t) {
|
|
|
1664
1650
|
var n = t.hb.indexOf(e);
|
|
1665
1651
|
if (n !== -1)
|
|
1666
1652
|
return t.Sa[n];
|
|
1667
|
-
if (t.hb.push(e),
|
|
1653
|
+
if (t.hb.push(e), Y(this, e, this.qa)) {
|
|
1668
1654
|
n = [], t.Sa.push(n);
|
|
1669
1655
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1670
|
-
|
|
1656
|
+
Vt(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
1671
1657
|
} else
|
|
1672
1658
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1673
1659
|
o = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
@@ -1678,7 +1664,7 @@ B.R = function(e, t) {
|
|
|
1678
1664
|
});
|
|
1679
1665
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1680
1666
|
};
|
|
1681
|
-
function
|
|
1667
|
+
function we(e, t) {
|
|
1682
1668
|
for (var n = Ge(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
|
|
1683
1669
|
e.g(n, r[o], t[r[o]]);
|
|
1684
1670
|
return n;
|
|
@@ -1689,7 +1675,7 @@ function Mr(e, t) {
|
|
|
1689
1675
|
n[r] = e.G(t, r);
|
|
1690
1676
|
return n.length = wn(e.G(t, "length")) || 0, n;
|
|
1691
1677
|
}
|
|
1692
|
-
function
|
|
1678
|
+
function Te(e, t) {
|
|
1693
1679
|
switch (typeof t) {
|
|
1694
1680
|
case "number":
|
|
1695
1681
|
return e.aa.h.prototype;
|
|
@@ -1700,15 +1686,15 @@ function Ee(e, t) {
|
|
|
1700
1686
|
}
|
|
1701
1687
|
return t ? t.xa : null;
|
|
1702
1688
|
}
|
|
1703
|
-
|
|
1689
|
+
j.G = function(e, t) {
|
|
1704
1690
|
if (this.P)
|
|
1705
1691
|
throw Error("Getter not supported in that context");
|
|
1706
1692
|
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
|
|
1707
1693
|
throw TypeError("Expecting native value or pseudo object");
|
|
1708
1694
|
if (t === "length") {
|
|
1709
|
-
if (
|
|
1695
|
+
if (Y(this, e, this.J))
|
|
1710
1696
|
return String(e).length;
|
|
1711
|
-
} else if (64 > t.charCodeAt(0) &&
|
|
1697
|
+
} else if (64 > t.charCodeAt(0) && Y(this, e, this.J)) {
|
|
1712
1698
|
var n = pt(t);
|
|
1713
1699
|
if (!isNaN(n) && n < String(e).length)
|
|
1714
1700
|
return String(e)[n];
|
|
@@ -1716,14 +1702,14 @@ B.G = function(e, t) {
|
|
|
1716
1702
|
do
|
|
1717
1703
|
if (e.h && t in e.h)
|
|
1718
1704
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1719
|
-
while (e =
|
|
1705
|
+
while (e = Te(this, e));
|
|
1720
1706
|
};
|
|
1721
|
-
function
|
|
1707
|
+
function Vt(e, t, n) {
|
|
1722
1708
|
if (!(t instanceof P))
|
|
1723
1709
|
throw TypeError("Primitive data type has no properties");
|
|
1724
|
-
if (n = String(n), n === "length" &&
|
|
1710
|
+
if (n = String(n), n === "length" && Y(e, t, e.J))
|
|
1725
1711
|
return !0;
|
|
1726
|
-
if (
|
|
1712
|
+
if (Y(e, t, e.J)) {
|
|
1727
1713
|
var r = pt(n);
|
|
1728
1714
|
if (!isNaN(r) && r < String(t).length)
|
|
1729
1715
|
return !0;
|
|
@@ -1731,10 +1717,10 @@ function Dt(e, t, n) {
|
|
|
1731
1717
|
do
|
|
1732
1718
|
if (t.h && n in t.h)
|
|
1733
1719
|
return !0;
|
|
1734
|
-
while (t =
|
|
1720
|
+
while (t = Te(e, t));
|
|
1735
1721
|
return !1;
|
|
1736
1722
|
}
|
|
1737
|
-
|
|
1723
|
+
j.g = function(e, t, n, r) {
|
|
1738
1724
|
if (this.Ka)
|
|
1739
1725
|
throw Error("Setter not supported in that context");
|
|
1740
1726
|
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof P))
|
|
@@ -1742,7 +1728,7 @@ B.g = function(e, t, n, r) {
|
|
|
1742
1728
|
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");
|
|
1743
1729
|
var o = !this.o || xn(this).S;
|
|
1744
1730
|
if (e instanceof P) {
|
|
1745
|
-
if (
|
|
1731
|
+
if (Y(this, e, this.J)) {
|
|
1746
1732
|
var i = pt(t);
|
|
1747
1733
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1748
1734
|
o && w(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
@@ -1776,7 +1762,7 @@ B.g = function(e, t, n, r) {
|
|
|
1776
1762
|
if (n === mt)
|
|
1777
1763
|
throw ReferenceError("Value not specified");
|
|
1778
1764
|
for (r = e; !(t in r.h); )
|
|
1779
|
-
if (r =
|
|
1765
|
+
if (r = Te(this, r), !r) {
|
|
1780
1766
|
r = e;
|
|
1781
1767
|
break;
|
|
1782
1768
|
}
|
|
@@ -1796,10 +1782,10 @@ B.g = function(e, t, n, r) {
|
|
|
1796
1782
|
} else
|
|
1797
1783
|
o && w(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1798
1784
|
};
|
|
1799
|
-
|
|
1785
|
+
j.g.ac = function() {
|
|
1800
1786
|
throw Error("Placeholder getter");
|
|
1801
1787
|
};
|
|
1802
|
-
|
|
1788
|
+
j.g.bc = function() {
|
|
1803
1789
|
throw Error("Placeholder setter");
|
|
1804
1790
|
};
|
|
1805
1791
|
function J(e, t, n, r) {
|
|
@@ -1821,7 +1807,7 @@ function gn(e, t, n) {
|
|
|
1821
1807
|
var o = t.body && t.body[0];
|
|
1822
1808
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1823
1809
|
}
|
|
1824
|
-
return o = e.s(null), r = new zr(n, r, o), n ||
|
|
1810
|
+
return o = e.s(null), r = new zr(n, r, o), n || si(e, r.object), gt(e, t, r), r;
|
|
1825
1811
|
}
|
|
1826
1812
|
function Rn(e, t, n) {
|
|
1827
1813
|
if (!t)
|
|
@@ -1834,7 +1820,7 @@ function An(e, t) {
|
|
|
1834
1820
|
return n.object.h[t];
|
|
1835
1821
|
n = n.Va;
|
|
1836
1822
|
}
|
|
1837
|
-
if (n === e.N &&
|
|
1823
|
+
if (n === e.N && Vt(e, n.object, t))
|
|
1838
1824
|
return e.G(n.object, t);
|
|
1839
1825
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1840
1826
|
}
|
|
@@ -1850,7 +1836,7 @@ function Hr(e, t, n) {
|
|
|
1850
1836
|
}
|
|
1851
1837
|
r = r.Va;
|
|
1852
1838
|
}
|
|
1853
|
-
if (r === e.N && (!o ||
|
|
1839
|
+
if (r === e.N && (!o || Vt(e, r.object, t)))
|
|
1854
1840
|
return e.g(r.object, t, n);
|
|
1855
1841
|
w(e, e.pb, t + " is not defined");
|
|
1856
1842
|
}
|
|
@@ -1903,7 +1889,7 @@ function gt(e, t, n) {
|
|
|
1903
1889
|
r[s] === !0 ? e.g(n.object, s, void 0, kr) : e.g(n.object, s, In(e, r[s], n), kr);
|
|
1904
1890
|
return r;
|
|
1905
1891
|
}
|
|
1906
|
-
function
|
|
1892
|
+
function xe(e) {
|
|
1907
1893
|
return e.o[e.o.length - 1].isConstructor;
|
|
1908
1894
|
}
|
|
1909
1895
|
function $n(e, t) {
|
|
@@ -1951,7 +1937,7 @@ function vt(e, t, n, r) {
|
|
|
1951
1937
|
} else if (t === 2 && (r ? i.labels && i.labels.indexOf(r) !== -1 : i.W))
|
|
1952
1938
|
return;
|
|
1953
1939
|
}
|
|
1954
|
-
throw
|
|
1940
|
+
throw Y(e, n, e.D) ? (t = {
|
|
1955
1941
|
EvalError,
|
|
1956
1942
|
RangeError,
|
|
1957
1943
|
ReferenceError,
|
|
@@ -2004,9 +1990,9 @@ function Cr(e, t, n) {
|
|
|
2004
1990
|
} catch (m) {
|
|
2005
1991
|
w(e, e.T, "Invalid code: " + m.message);
|
|
2006
1992
|
}
|
|
2007
|
-
s.type = "EvalProgram_", s.body = p.body, r = r.node.arguments[0],
|
|
1993
|
+
s.type = "EvalProgram_", s.body = p.body, r = r.node.arguments[0], Dt(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
2008
1994
|
}
|
|
2009
|
-
return t = new
|
|
1995
|
+
return t = new vi(u, o, r, s, t ? n : -1), Kr(e, t, n), t.Db;
|
|
2010
1996
|
}
|
|
2011
1997
|
function Kr(e, t, n) {
|
|
2012
1998
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
@@ -2035,15 +2021,15 @@ function On(e, t, n, r) {
|
|
|
2035
2021
|
return o.type = "CallExpression", e = new C(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
2036
2022
|
}
|
|
2037
2023
|
function an(e, t) {
|
|
2038
|
-
return t == null ? e.Na : t instanceof P ? t : (e = e.s(
|
|
2024
|
+
return t == null ? e.Na : t instanceof P ? t : (e = e.s(Te(e, t)), e.data = t, e);
|
|
2039
2025
|
}
|
|
2040
|
-
|
|
2026
|
+
j.Xb = function() {
|
|
2041
2027
|
return this.N;
|
|
2042
2028
|
};
|
|
2043
|
-
|
|
2029
|
+
j.Yb = function() {
|
|
2044
2030
|
return this.o;
|
|
2045
2031
|
};
|
|
2046
|
-
|
|
2032
|
+
j.ec = function(e) {
|
|
2047
2033
|
this.o = e;
|
|
2048
2034
|
};
|
|
2049
2035
|
function C(e, t) {
|
|
@@ -2055,11 +2041,11 @@ function zr(e, t, n) {
|
|
|
2055
2041
|
function P(e) {
|
|
2056
2042
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
2057
2043
|
}
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2044
|
+
j = P.prototype;
|
|
2045
|
+
j.xa = null;
|
|
2046
|
+
j.H = "Object";
|
|
2047
|
+
j.data = null;
|
|
2048
|
+
j.toString = function() {
|
|
2063
2049
|
if (!ct)
|
|
2064
2050
|
return "[object Interpreter.Object]";
|
|
2065
2051
|
if (!(this instanceof P))
|
|
@@ -2107,13 +2093,13 @@ B.toString = function() {
|
|
|
2107
2093
|
}
|
|
2108
2094
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
2109
2095
|
};
|
|
2110
|
-
|
|
2096
|
+
j.valueOf = function() {
|
|
2111
2097
|
return !ct || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2112
2098
|
};
|
|
2113
|
-
function
|
|
2114
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++
|
|
2099
|
+
function vi(e, t, n, r, o) {
|
|
2100
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++bi, this.time = 0;
|
|
2115
2101
|
}
|
|
2116
|
-
var
|
|
2102
|
+
var bi = 0;
|
|
2117
2103
|
h.prototype.stepArrayExpression = function(e, t, n) {
|
|
2118
2104
|
n = n.elements;
|
|
2119
2105
|
var r = t.A || 0;
|
|
@@ -2244,10 +2230,10 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2244
2230
|
n = r >>> t;
|
|
2245
2231
|
break;
|
|
2246
2232
|
case "in":
|
|
2247
|
-
t instanceof P || w(this, this.j, "'in' expects an object, not '" + t + "'"), n =
|
|
2233
|
+
t instanceof P || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = Vt(this, t, r);
|
|
2248
2234
|
break;
|
|
2249
2235
|
case "instanceof":
|
|
2250
|
-
|
|
2236
|
+
Y(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof P ? Y(this, r, t) : !1;
|
|
2251
2237
|
break;
|
|
2252
2238
|
default:
|
|
2253
2239
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2313,7 +2299,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2313
2299
|
} catch (u) {
|
|
2314
2300
|
w(this, this.T, "Invalid code: " + u.message);
|
|
2315
2301
|
}
|
|
2316
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body,
|
|
2302
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, Dt(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = gn(this, r, n) : gt(this, r, n), this.value = void 0, new C(o, n);
|
|
2317
2303
|
}
|
|
2318
2304
|
else if (o.Ta)
|
|
2319
2305
|
t.scope.S || (t.B = an(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
@@ -2392,7 +2378,7 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2392
2378
|
break e;
|
|
2393
2379
|
}
|
|
2394
2380
|
}
|
|
2395
|
-
if (t.u =
|
|
2381
|
+
if (t.u = Te(this, t.u), t.wa = null, t.u === null) {
|
|
2396
2382
|
e.pop();
|
|
2397
2383
|
return;
|
|
2398
2384
|
}
|
|
@@ -2645,7 +2631,7 @@ h.prototype.stepWithStatement = function(e, t, n) {
|
|
|
2645
2631
|
return t.Ca ? (e.pop(), e = Rn(this, t.scope, t.value), new C(n.body, e)) : (t.Ca = !0, new C(n.object, t.scope));
|
|
2646
2632
|
};
|
|
2647
2633
|
h.prototype.stepWhileStatement = h.prototype.stepDoWhileStatement;
|
|
2648
|
-
|
|
2634
|
+
Oe.Interpreter = h;
|
|
2649
2635
|
h.prototype.step = h.prototype.lb;
|
|
2650
2636
|
h.prototype.run = h.prototype.Eb;
|
|
2651
2637
|
h.prototype.appendCode = h.prototype.Jb;
|
|
@@ -2661,7 +2647,7 @@ h.prototype.getGlobalScope = h.prototype.Xb;
|
|
|
2661
2647
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2662
2648
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2663
2649
|
h.VALUE_IN_DESCRIPTOR = mt;
|
|
2664
|
-
function
|
|
2650
|
+
function ki() {
|
|
2665
2651
|
const e = h.prototype.getProperty, t = h.prototype.setProperty;
|
|
2666
2652
|
function n(s, u) {
|
|
2667
2653
|
if (s == null || !s._connected)
|
|
@@ -2686,11 +2672,11 @@ function Ci() {
|
|
|
2686
2672
|
return u._connected = s, u;
|
|
2687
2673
|
};
|
|
2688
2674
|
}
|
|
2689
|
-
|
|
2690
|
-
const
|
|
2675
|
+
ki();
|
|
2676
|
+
const Si = (e) => e.replace(/^.*?function main\(\)/, `
|
|
2691
2677
|
var __awaiter = function (e, t, n, r) {return r()},
|
|
2692
2678
|
__generator = function (e, t) { return t() };
|
|
2693
|
-
function main()`).replace(/\?\./g, "."), Er = (e) => e + "JSON",
|
|
2679
|
+
function main()`).replace(/\?\./g, "."), Er = (e) => e + "JSON", Ci = ({
|
|
2694
2680
|
builder: e,
|
|
2695
2681
|
context: t,
|
|
2696
2682
|
event: n,
|
|
@@ -2712,11 +2698,9 @@ function main()`).replace(/\?\./g, "."), Er = (e) => e + "JSON", Ei = ({
|
|
|
2712
2698
|
const Z = Er(O);
|
|
2713
2699
|
return O === "state" ? "" : `var ${O} = ${Z} === undefined ? undefined : JSON.parse(${Z});`;
|
|
2714
2700
|
}).join(`
|
|
2715
|
-
`), b =
|
|
2716
|
-
if (b === "")
|
|
2717
|
-
ae.warn("Skipping evaluation of empty code block.");
|
|
2701
|
+
`), b = Si(s);
|
|
2702
|
+
if (b === "")
|
|
2718
2703
|
return;
|
|
2719
|
-
}
|
|
2720
2704
|
const v = `
|
|
2721
2705
|
function theFunction() {
|
|
2722
2706
|
${m}
|
|
@@ -2725,34 +2709,34 @@ function theFunction() {
|
|
|
2725
2709
|
}
|
|
2726
2710
|
theFunction();
|
|
2727
2711
|
`, y = function(O, Z) {
|
|
2728
|
-
p.forEach(([
|
|
2729
|
-
if (
|
|
2730
|
-
O.setProperty(Z,
|
|
2712
|
+
p.forEach(([Re, $]) => {
|
|
2713
|
+
if (Re === "state")
|
|
2714
|
+
O.setProperty(Z, Re, O.createConnectedObject($), O.READONLY_DESCRIPTOR);
|
|
2731
2715
|
else {
|
|
2732
|
-
const
|
|
2733
|
-
O.setProperty(Z, Er(
|
|
2716
|
+
const F = JSON.stringify($);
|
|
2717
|
+
O.setProperty(Z, Er(Re), F);
|
|
2734
2718
|
}
|
|
2735
2719
|
});
|
|
2736
2720
|
}, I = new h(v, y);
|
|
2737
2721
|
return I.run(), I.pseudoToNative(I.value);
|
|
2738
|
-
},
|
|
2739
|
-
function
|
|
2722
|
+
}, Be = (e) => e != null;
|
|
2723
|
+
function wi() {
|
|
2740
2724
|
var e;
|
|
2741
|
-
return typeof process < "u" &&
|
|
2725
|
+
return typeof process < "u" && Be((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2742
2726
|
}
|
|
2743
|
-
const
|
|
2727
|
+
const Ei = ({
|
|
2744
2728
|
shouldLogWarning: e
|
|
2745
2729
|
}) => {
|
|
2746
2730
|
var o;
|
|
2747
|
-
if (!
|
|
2731
|
+
if (!wi())
|
|
2748
2732
|
return !1;
|
|
2749
2733
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), r = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
2750
|
-
return t && n && !r ? (e &&
|
|
2751
|
-
},
|
|
2734
|
+
return t && n && !r ? (e && le.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;
|
|
2735
|
+
}, Ti = (e) => X() || Ei({
|
|
2752
2736
|
shouldLogWarning: !0
|
|
2753
|
-
}) ?
|
|
2737
|
+
}) ? ri(e) : Ci(e), Ii = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, xi = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Ri = (e) => {
|
|
2754
2738
|
var t, n, r, o, i, s;
|
|
2755
|
-
return ((r = (n = (t =
|
|
2739
|
+
return ((r = (n = (t = Ii.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : r.slice(1)) || ((s = (i = (o = xi.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
2756
2740
|
};
|
|
2757
2741
|
function kt({
|
|
2758
2742
|
code: e,
|
|
@@ -2765,17 +2749,17 @@ function kt({
|
|
|
2765
2749
|
}) {
|
|
2766
2750
|
if (e.trim() === "")
|
|
2767
2751
|
return;
|
|
2768
|
-
const u =
|
|
2752
|
+
const u = Ri(e.trim());
|
|
2769
2753
|
if (u)
|
|
2770
|
-
return
|
|
2754
|
+
return Dr({
|
|
2771
2755
|
...r,
|
|
2772
2756
|
...n
|
|
2773
2757
|
}, u);
|
|
2774
2758
|
const p = {
|
|
2775
|
-
code:
|
|
2759
|
+
code: ni(e, {
|
|
2776
2760
|
isExpression: s
|
|
2777
2761
|
}),
|
|
2778
|
-
builder:
|
|
2762
|
+
builder: ti(),
|
|
2779
2763
|
context: t,
|
|
2780
2764
|
event: i,
|
|
2781
2765
|
rootSetState: o,
|
|
@@ -2783,15 +2767,43 @@ function kt({
|
|
|
2783
2767
|
localState: n
|
|
2784
2768
|
};
|
|
2785
2769
|
try {
|
|
2786
|
-
return
|
|
2770
|
+
return Ti(p);
|
|
2787
2771
|
} catch (m) {
|
|
2788
|
-
|
|
2772
|
+
le.error("Failed code evaluation: " + m.message, {
|
|
2789
2773
|
code: e
|
|
2790
2774
|
});
|
|
2791
2775
|
return;
|
|
2792
2776
|
}
|
|
2793
2777
|
}
|
|
2794
|
-
function
|
|
2778
|
+
function Ai(e, t) {
|
|
2779
|
+
var n;
|
|
2780
|
+
return {
|
|
2781
|
+
...(n = e.component) == null ? void 0 : n.options,
|
|
2782
|
+
...e.options,
|
|
2783
|
+
...$i(e, t)
|
|
2784
|
+
};
|
|
2785
|
+
}
|
|
2786
|
+
const $i = (e, t) => {
|
|
2787
|
+
var n, r;
|
|
2788
|
+
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((r = e.component.options) != null && r.text) && typeof e.component.options.text == "string")
|
|
2789
|
+
return {
|
|
2790
|
+
...e.component.options,
|
|
2791
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, i) => kt({
|
|
2792
|
+
code: i,
|
|
2793
|
+
context: t,
|
|
2794
|
+
localState: t.localState,
|
|
2795
|
+
rootState: t.rootState,
|
|
2796
|
+
rootSetState: t.rootSetState
|
|
2797
|
+
}))
|
|
2798
|
+
};
|
|
2799
|
+
};
|
|
2800
|
+
function Pi(e, ...t) {
|
|
2801
|
+
const n = Object.assign({}, e);
|
|
2802
|
+
for (const r of t)
|
|
2803
|
+
delete n[r];
|
|
2804
|
+
return n;
|
|
2805
|
+
}
|
|
2806
|
+
function Bt(e, t, n = null, r = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
2795
2807
|
if (e == null || typeof e != "object") {
|
|
2796
2808
|
t(e, (i) => {
|
|
2797
2809
|
n !== null && r !== null && (n[r] = i);
|
|
@@ -2801,37 +2813,37 @@ function jt(e, t, n = null, r = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
|
2801
2813
|
o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((i, s) => {
|
|
2802
2814
|
t(i, (p) => {
|
|
2803
2815
|
e[s] = p;
|
|
2804
|
-
}),
|
|
2816
|
+
}), Bt(i, t, e, s, o);
|
|
2805
2817
|
}) : Object.entries(e).forEach(([i, s]) => {
|
|
2806
2818
|
t(s, (p) => {
|
|
2807
2819
|
e[i] = p;
|
|
2808
|
-
}),
|
|
2820
|
+
}), Bt(s, t, e, i, o);
|
|
2809
2821
|
}));
|
|
2810
2822
|
}
|
|
2811
2823
|
function Gr(e) {
|
|
2812
2824
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
2813
2825
|
}
|
|
2814
|
-
function
|
|
2826
|
+
function Oi(e) {
|
|
2815
2827
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
2816
2828
|
return !1;
|
|
2817
2829
|
let t = !1;
|
|
2818
|
-
return
|
|
2830
|
+
return Bt(e, (n) => {
|
|
2819
2831
|
if (Gr(n)) {
|
|
2820
2832
|
t = !0;
|
|
2821
2833
|
return;
|
|
2822
2834
|
}
|
|
2823
2835
|
}), t;
|
|
2824
2836
|
}
|
|
2825
|
-
function
|
|
2826
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
2837
|
+
function Bi(e, t) {
|
|
2838
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (Bt(e, (n, r) => {
|
|
2827
2839
|
Gr(n) && r(n[t] ?? void 0);
|
|
2828
2840
|
}), e);
|
|
2829
2841
|
}
|
|
2830
2842
|
function ji(e, t) {
|
|
2831
2843
|
var n, r;
|
|
2832
|
-
return (n = e.component) != null && n.options &&
|
|
2844
|
+
return (n = e.component) != null && n.options && Oi((r = e.component) == null ? void 0 : r.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = Bi(e.component.options, t ?? "Default")), e;
|
|
2833
2845
|
}
|
|
2834
|
-
const
|
|
2846
|
+
const Bn = (e) => JSON.parse(JSON.stringify(e)), qr = (e, t, n) => {
|
|
2835
2847
|
if (Object(e) !== e)
|
|
2836
2848
|
return e;
|
|
2837
2849
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
@@ -2849,9 +2861,9 @@ function yn(e) {
|
|
|
2849
2861
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = yn(e[n]));
|
|
2850
2862
|
return t;
|
|
2851
2863
|
}
|
|
2852
|
-
const
|
|
2853
|
-
if (
|
|
2854
|
-
const t =
|
|
2864
|
+
const Ni = ["svelte", "vue", "angular", "qwik", "solid"].includes(re), Di = (e) => {
|
|
2865
|
+
if (Ni) {
|
|
2866
|
+
const t = Bn(e);
|
|
2855
2867
|
return {
|
|
2856
2868
|
...t,
|
|
2857
2869
|
properties: {
|
|
@@ -2862,7 +2874,7 @@ const Bi = ["svelte", "vue", "angular", "qwik", "solid"].includes(re), Ni = (e)
|
|
|
2862
2874
|
}
|
|
2863
2875
|
};
|
|
2864
2876
|
} else {
|
|
2865
|
-
const t = yn(
|
|
2877
|
+
const t = yn(Pi(e, "children", "meta"));
|
|
2866
2878
|
return {
|
|
2867
2879
|
...t,
|
|
2868
2880
|
properties: {
|
|
@@ -2884,7 +2896,7 @@ const Bi = ["svelte", "vue", "angular", "qwik", "solid"].includes(re), Ni = (e)
|
|
|
2884
2896
|
}) => {
|
|
2885
2897
|
if (!e.bindings)
|
|
2886
2898
|
return e;
|
|
2887
|
-
const i =
|
|
2899
|
+
const i = Di(e);
|
|
2888
2900
|
for (const s in e.bindings) {
|
|
2889
2901
|
const u = e.bindings[s], p = kt({
|
|
2890
2902
|
code: u,
|
|
@@ -2897,42 +2909,41 @@ const Bi = ["svelte", "vue", "angular", "qwik", "solid"].includes(re), Ni = (e)
|
|
|
2897
2909
|
}
|
|
2898
2910
|
return i;
|
|
2899
2911
|
};
|
|
2900
|
-
function
|
|
2912
|
+
function Ui({
|
|
2901
2913
|
block: e,
|
|
2902
2914
|
context: t,
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
rootSetState: i
|
|
2915
|
+
localState: n,
|
|
2916
|
+
rootState: r,
|
|
2917
|
+
rootSetState: o
|
|
2907
2918
|
}) {
|
|
2908
|
-
let
|
|
2909
|
-
return
|
|
2910
|
-
block:
|
|
2911
|
-
localState:
|
|
2912
|
-
rootState:
|
|
2913
|
-
rootSetState:
|
|
2919
|
+
let i = ji(e, r.locale);
|
|
2920
|
+
return i = i, Vi({
|
|
2921
|
+
block: i,
|
|
2922
|
+
localState: n,
|
|
2923
|
+
rootState: r,
|
|
2924
|
+
rootSetState: o,
|
|
2914
2925
|
context: t
|
|
2915
|
-
})
|
|
2926
|
+
});
|
|
2916
2927
|
}
|
|
2917
2928
|
function _r(e) {
|
|
2918
|
-
const t = e || (
|
|
2919
|
-
return t ?
|
|
2929
|
+
const t = e || (X() ? window.location.search : void 0);
|
|
2930
|
+
return t ? Ur(t).indexOf("builder.preview=") !== -1 : !1;
|
|
2920
2931
|
}
|
|
2921
2932
|
const Fi = (e) => ({
|
|
2922
2933
|
type: "builder.registerComponent",
|
|
2923
|
-
data:
|
|
2924
|
-
}),
|
|
2934
|
+
data: jt(e)
|
|
2935
|
+
}), Wi = (e) => {
|
|
2925
2936
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
2926
2937
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
2927
2938
|
};
|
|
2928
|
-
function
|
|
2929
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
2939
|
+
function jt(e) {
|
|
2940
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Wi(n) : n));
|
|
2930
2941
|
}
|
|
2931
2942
|
const Tr = {};
|
|
2932
|
-
function
|
|
2933
|
-
e === "plugin" && (t =
|
|
2943
|
+
function Li(e, t) {
|
|
2944
|
+
e === "plugin" && (t = jt(t));
|
|
2934
2945
|
let n = Tr[e];
|
|
2935
|
-
if (n || (n = Tr[e] = []), n.push(t),
|
|
2946
|
+
if (n || (n = Tr[e] = []), n.push(t), X()) {
|
|
2936
2947
|
const r = {
|
|
2937
2948
|
type: "builder.register",
|
|
2938
2949
|
data: {
|
|
@@ -2948,8 +2959,8 @@ function Wi(e, t) {
|
|
|
2948
2959
|
}
|
|
2949
2960
|
}
|
|
2950
2961
|
const Ir = {};
|
|
2951
|
-
function
|
|
2952
|
-
if (
|
|
2962
|
+
function Pu(e) {
|
|
2963
|
+
if (X()) {
|
|
2953
2964
|
Object.assign(Ir, e);
|
|
2954
2965
|
const t = {
|
|
2955
2966
|
type: "builder.settingsChange",
|
|
@@ -2958,26 +2969,26 @@ function xu(e) {
|
|
|
2958
2969
|
parent.postMessage(t, "*");
|
|
2959
2970
|
}
|
|
2960
2971
|
}
|
|
2961
|
-
const xr = "builder.",
|
|
2972
|
+
const xr = "builder.", Mi = "options.", Jr = (e) => {
|
|
2962
2973
|
if (!e)
|
|
2963
2974
|
return {};
|
|
2964
|
-
const t =
|
|
2975
|
+
const t = Vr(e), n = {};
|
|
2965
2976
|
return Object.keys(t).forEach((r) => {
|
|
2966
2977
|
if (r.startsWith(xr)) {
|
|
2967
|
-
const o = r.replace(xr, "").replace(
|
|
2978
|
+
const o = r.replace(xr, "").replace(Mi, "");
|
|
2968
2979
|
n[o] = t[r];
|
|
2969
2980
|
}
|
|
2970
2981
|
}), n;
|
|
2971
|
-
},
|
|
2972
|
-
if (!
|
|
2982
|
+
}, Hi = () => {
|
|
2983
|
+
if (!X())
|
|
2973
2984
|
return {};
|
|
2974
2985
|
const e = new URLSearchParams(window.location.search);
|
|
2975
2986
|
return Jr(e);
|
|
2976
|
-
}, Xr = "3.0.
|
|
2987
|
+
}, Xr = "3.0.3", Yr = () => ({
|
|
2977
2988
|
"X-Builder-SDK": re,
|
|
2978
2989
|
"X-Builder-SDK-GEN": "2",
|
|
2979
2990
|
"X-Builder-SDK-Version": Xr
|
|
2980
|
-
}),
|
|
2991
|
+
}), Ki = (e) => {
|
|
2981
2992
|
if (e === "localhost" || e === "127.0.0.1")
|
|
2982
2993
|
return e;
|
|
2983
2994
|
const t = e.split(".");
|
|
@@ -2990,16 +3001,16 @@ const xr = "builder.", Li = "options.", Jr = (e) => {
|
|
|
2990
3001
|
try {
|
|
2991
3002
|
return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
2992
3003
|
} catch (r) {
|
|
2993
|
-
|
|
3004
|
+
le.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
2994
3005
|
return;
|
|
2995
3006
|
}
|
|
2996
|
-
}, Qr = async (e) => Zr(e),
|
|
3007
|
+
}, Qr = async (e) => Zr(e), zi = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(Be).join("; "), Gi = [["secure", ""], ["SameSite", "None"]], qi = ({
|
|
2997
3008
|
name: e,
|
|
2998
3009
|
value: t,
|
|
2999
3010
|
expires: n
|
|
3000
3011
|
}) => {
|
|
3001
|
-
const o = (
|
|
3002
|
-
return
|
|
3012
|
+
const o = (X() ? location.protocol === "https:" : !0) ? Gi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Ki(window.location.hostname)], ...o];
|
|
3013
|
+
return zi(s);
|
|
3003
3014
|
}, eo = async ({
|
|
3004
3015
|
name: e,
|
|
3005
3016
|
value: t,
|
|
@@ -3009,26 +3020,26 @@ const xr = "builder.", Li = "options.", Jr = (e) => {
|
|
|
3009
3020
|
try {
|
|
3010
3021
|
if (!r)
|
|
3011
3022
|
return;
|
|
3012
|
-
const o =
|
|
3023
|
+
const o = qi({
|
|
3013
3024
|
name: e,
|
|
3014
3025
|
value: t,
|
|
3015
3026
|
expires: n
|
|
3016
3027
|
});
|
|
3017
3028
|
document.cookie = o;
|
|
3018
3029
|
} catch (o) {
|
|
3019
|
-
|
|
3030
|
+
le.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3020
3031
|
}
|
|
3021
3032
|
};
|
|
3022
|
-
function
|
|
3033
|
+
function _i() {
|
|
3023
3034
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
3024
3035
|
const t = Math.random() * 16 | 0;
|
|
3025
3036
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
3026
3037
|
});
|
|
3027
3038
|
}
|
|
3028
3039
|
function to() {
|
|
3029
|
-
return
|
|
3040
|
+
return _i().replace(/-/g, "");
|
|
3030
3041
|
}
|
|
3031
|
-
const no = "builderSessionId",
|
|
3042
|
+
const no = "builderSessionId", Ji = async ({
|
|
3032
3043
|
canTrack: e
|
|
3033
3044
|
}) => {
|
|
3034
3045
|
if (!e)
|
|
@@ -3037,23 +3048,23 @@ const no = "builderSessionId", _i = async ({
|
|
|
3037
3048
|
name: no,
|
|
3038
3049
|
canTrack: e
|
|
3039
3050
|
});
|
|
3040
|
-
if (
|
|
3051
|
+
if (Be(t))
|
|
3041
3052
|
return t;
|
|
3042
3053
|
{
|
|
3043
|
-
const n =
|
|
3044
|
-
return
|
|
3054
|
+
const n = Xi();
|
|
3055
|
+
return Yi({
|
|
3045
3056
|
id: n,
|
|
3046
3057
|
canTrack: e
|
|
3047
3058
|
}), n;
|
|
3048
3059
|
}
|
|
3049
|
-
},
|
|
3060
|
+
}, Xi = () => to(), Yi = ({
|
|
3050
3061
|
id: e,
|
|
3051
3062
|
canTrack: t
|
|
3052
3063
|
}) => eo({
|
|
3053
3064
|
name: no,
|
|
3054
3065
|
value: e,
|
|
3055
3066
|
canTrack: t
|
|
3056
|
-
}), ro = () =>
|
|
3067
|
+
}), ro = () => X() && typeof localStorage < "u" ? localStorage : void 0, Zi = ({
|
|
3057
3068
|
key: e,
|
|
3058
3069
|
canTrack: t
|
|
3059
3070
|
}) => {
|
|
@@ -3064,7 +3075,7 @@ const no = "builderSessionId", _i = async ({
|
|
|
3064
3075
|
console.debug("[LocalStorage] GET error: ", r);
|
|
3065
3076
|
return;
|
|
3066
3077
|
}
|
|
3067
|
-
},
|
|
3078
|
+
}, Qi = ({
|
|
3068
3079
|
key: e,
|
|
3069
3080
|
canTrack: t,
|
|
3070
3081
|
value: n
|
|
@@ -3075,37 +3086,37 @@ const no = "builderSessionId", _i = async ({
|
|
|
3075
3086
|
} catch (o) {
|
|
3076
3087
|
console.debug("[LocalStorage] SET error: ", o);
|
|
3077
3088
|
}
|
|
3078
|
-
}, oo = "builderVisitorId",
|
|
3089
|
+
}, oo = "builderVisitorId", es = ({
|
|
3079
3090
|
canTrack: e
|
|
3080
3091
|
}) => {
|
|
3081
3092
|
if (!e)
|
|
3082
3093
|
return;
|
|
3083
|
-
const t =
|
|
3094
|
+
const t = Zi({
|
|
3084
3095
|
key: oo,
|
|
3085
3096
|
canTrack: e
|
|
3086
3097
|
});
|
|
3087
|
-
if (
|
|
3098
|
+
if (Be(t))
|
|
3088
3099
|
return t;
|
|
3089
3100
|
{
|
|
3090
|
-
const n =
|
|
3091
|
-
return
|
|
3101
|
+
const n = ts();
|
|
3102
|
+
return ns({
|
|
3092
3103
|
id: n,
|
|
3093
3104
|
canTrack: e
|
|
3094
3105
|
}), n;
|
|
3095
3106
|
}
|
|
3096
|
-
},
|
|
3107
|
+
}, ts = () => to(), ns = ({
|
|
3097
3108
|
id: e,
|
|
3098
3109
|
canTrack: t
|
|
3099
|
-
}) =>
|
|
3110
|
+
}) => Qi({
|
|
3100
3111
|
key: oo,
|
|
3101
3112
|
value: e,
|
|
3102
3113
|
canTrack: t
|
|
3103
3114
|
});
|
|
3104
|
-
function
|
|
3115
|
+
function jn(e) {
|
|
3105
3116
|
var t;
|
|
3106
|
-
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" &&
|
|
3117
|
+
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && le.log(e);
|
|
3107
3118
|
}
|
|
3108
|
-
const
|
|
3119
|
+
const rs = async ({
|
|
3109
3120
|
canTrack: e
|
|
3110
3121
|
}) => {
|
|
3111
3122
|
if (!e)
|
|
@@ -3113,16 +3124,16 @@ const ns = async ({
|
|
|
3113
3124
|
visitorId: void 0,
|
|
3114
3125
|
sessionId: void 0
|
|
3115
3126
|
};
|
|
3116
|
-
const t = await
|
|
3127
|
+
const t = await Ji({
|
|
3117
3128
|
canTrack: e
|
|
3118
|
-
}), n =
|
|
3129
|
+
}), n = es({
|
|
3119
3130
|
canTrack: e
|
|
3120
3131
|
});
|
|
3121
3132
|
return {
|
|
3122
3133
|
sessionId: t,
|
|
3123
3134
|
visitorId: n
|
|
3124
3135
|
};
|
|
3125
|
-
},
|
|
3136
|
+
}, os = async ({
|
|
3126
3137
|
type: e,
|
|
3127
3138
|
canTrack: t,
|
|
3128
3139
|
apiKey: n,
|
|
@@ -3136,10 +3147,10 @@ const ns = async ({
|
|
|
3136
3147
|
url: location.href,
|
|
3137
3148
|
...r
|
|
3138
3149
|
},
|
|
3139
|
-
...await
|
|
3150
|
+
...await rs({
|
|
3140
3151
|
canTrack: t
|
|
3141
3152
|
}),
|
|
3142
|
-
userAttributes:
|
|
3153
|
+
userAttributes: Fr(),
|
|
3143
3154
|
ownerId: n
|
|
3144
3155
|
}
|
|
3145
3156
|
});
|
|
@@ -3148,16 +3159,16 @@ async function vn({
|
|
|
3148
3159
|
...t
|
|
3149
3160
|
}) {
|
|
3150
3161
|
if (!t.apiKey) {
|
|
3151
|
-
|
|
3162
|
+
le.error("Missing API key for track call. Please provide your API key.");
|
|
3152
3163
|
return;
|
|
3153
3164
|
}
|
|
3154
|
-
if (!t.canTrack || ie() || !(
|
|
3165
|
+
if (!t.canTrack || ie() || !(X() || re === "reactNative"))
|
|
3155
3166
|
return;
|
|
3156
3167
|
const r = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
3157
|
-
return
|
|
3168
|
+
return jn(r), fetch(r, {
|
|
3158
3169
|
method: "POST",
|
|
3159
3170
|
body: JSON.stringify({
|
|
3160
|
-
events: [await
|
|
3171
|
+
events: [await os(t)]
|
|
3161
3172
|
}),
|
|
3162
3173
|
headers: {
|
|
3163
3174
|
"content-type": "application/json",
|
|
@@ -3168,18 +3179,18 @@ async function vn({
|
|
|
3168
3179
|
console.error("Failed to track: ", o);
|
|
3169
3180
|
});
|
|
3170
3181
|
}
|
|
3171
|
-
const
|
|
3182
|
+
const Ou = (e) => vn({
|
|
3172
3183
|
...e,
|
|
3173
3184
|
canTrack: !0
|
|
3174
|
-
}),
|
|
3185
|
+
}), is = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
3175
3186
|
function io(e, t) {
|
|
3176
3187
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
3177
3188
|
return !1;
|
|
3178
3189
|
const n = new URL(t.origin), r = n.hostname;
|
|
3179
|
-
return (e ||
|
|
3190
|
+
return (e || is).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
3180
3191
|
}
|
|
3181
|
-
const
|
|
3182
|
-
|
|
3192
|
+
const ss = () => {
|
|
3193
|
+
Li("insertMenu", {
|
|
3183
3194
|
name: "_default",
|
|
3184
3195
|
default: !0,
|
|
3185
3196
|
items: [{
|
|
@@ -3204,7 +3215,7 @@ const is = () => {
|
|
|
3204
3215
|
let Rr = !1;
|
|
3205
3216
|
const so = (e = {}) => {
|
|
3206
3217
|
var t, n;
|
|
3207
|
-
Rr || (Rr = !0,
|
|
3218
|
+
Rr || (Rr = !0, X() && ((t = window.parent) == null || t.postMessage({
|
|
3208
3219
|
type: "builder.sdkInfo",
|
|
3209
3220
|
data: {
|
|
3210
3221
|
target: re,
|
|
@@ -3244,8 +3255,8 @@ const so = (e = {}) => {
|
|
|
3244
3255
|
error: y.message
|
|
3245
3256
|
}
|
|
3246
3257
|
}, "*") : v && typeof v.then == "function" ? v.then((I) => {
|
|
3247
|
-
var
|
|
3248
|
-
(
|
|
3258
|
+
var D;
|
|
3259
|
+
(D = window.parent) == null || D.postMessage({
|
|
3249
3260
|
type: "builder.evaluateResult",
|
|
3250
3261
|
data: {
|
|
3251
3262
|
id: m,
|
|
@@ -3289,9 +3300,9 @@ const so = (e = {}) => {
|
|
|
3289
3300
|
break;
|
|
3290
3301
|
}
|
|
3291
3302
|
}
|
|
3292
|
-
},
|
|
3293
|
-
if (!
|
|
3294
|
-
return
|
|
3303
|
+
}, Bu = (e, t, n) => {
|
|
3304
|
+
if (!X)
|
|
3305
|
+
return le.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
3295
3306
|
};
|
|
3296
3307
|
so();
|
|
3297
3308
|
const r = ao({
|
|
@@ -3308,24 +3319,24 @@ const so = (e = {}) => {
|
|
|
3308
3319
|
return window.addEventListener("message", r), () => {
|
|
3309
3320
|
window.removeEventListener("message", r);
|
|
3310
3321
|
};
|
|
3311
|
-
},
|
|
3322
|
+
}, as = "builder.tests", Nn = (e) => `${as}.${e}`, ls = ({
|
|
3312
3323
|
contentId: e
|
|
3313
3324
|
}) => Qr({
|
|
3314
3325
|
name: Nn(e),
|
|
3315
3326
|
canTrack: !0
|
|
3316
|
-
}),
|
|
3327
|
+
}), us = ({
|
|
3317
3328
|
contentId: e
|
|
3318
3329
|
}) => Zr({
|
|
3319
3330
|
name: Nn(e),
|
|
3320
3331
|
canTrack: !0
|
|
3321
|
-
}),
|
|
3332
|
+
}), cs = ({
|
|
3322
3333
|
contentId: e,
|
|
3323
3334
|
value: t
|
|
3324
3335
|
}) => eo({
|
|
3325
3336
|
name: Nn(e),
|
|
3326
3337
|
value: t,
|
|
3327
3338
|
canTrack: !0
|
|
3328
|
-
}), lo = (e) =>
|
|
3339
|
+
}), lo = (e) => Be(e.id) && Be(e.variations) && Object.keys(e.variations).length > 0, ps = ({
|
|
3329
3340
|
id: e,
|
|
3330
3341
|
variations: t
|
|
3331
3342
|
}) => {
|
|
@@ -3339,12 +3350,12 @@ const so = (e = {}) => {
|
|
|
3339
3350
|
}
|
|
3340
3351
|
return e;
|
|
3341
3352
|
}, uo = (e) => {
|
|
3342
|
-
const t =
|
|
3343
|
-
return
|
|
3353
|
+
const t = ps(e);
|
|
3354
|
+
return cs({
|
|
3344
3355
|
contentId: e.id,
|
|
3345
3356
|
value: t
|
|
3346
3357
|
}).catch((n) => {
|
|
3347
|
-
|
|
3358
|
+
le.error("could not store A/B test variation: ", n);
|
|
3348
3359
|
}), t;
|
|
3349
3360
|
}, co = ({
|
|
3350
3361
|
item: e,
|
|
@@ -3360,7 +3371,7 @@ const so = (e = {}) => {
|
|
|
3360
3371
|
testVariationId: n.id,
|
|
3361
3372
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3362
3373
|
};
|
|
3363
|
-
},
|
|
3374
|
+
}, ds = ({
|
|
3364
3375
|
item: e,
|
|
3365
3376
|
canTrack: t
|
|
3366
3377
|
}) => {
|
|
@@ -3370,7 +3381,7 @@ const so = (e = {}) => {
|
|
|
3370
3381
|
return;
|
|
3371
3382
|
if (!lo(e))
|
|
3372
3383
|
return e;
|
|
3373
|
-
const n =
|
|
3384
|
+
const n = us({
|
|
3374
3385
|
contentId: e.id
|
|
3375
3386
|
}) || uo({
|
|
3376
3387
|
variations: e.variations,
|
|
@@ -3383,13 +3394,13 @@ const so = (e = {}) => {
|
|
|
3383
3394
|
...e,
|
|
3384
3395
|
...r
|
|
3385
3396
|
};
|
|
3386
|
-
},
|
|
3397
|
+
}, fs = async ({
|
|
3387
3398
|
item: e,
|
|
3388
3399
|
canTrack: t
|
|
3389
3400
|
}) => {
|
|
3390
3401
|
if (!t || !lo(e))
|
|
3391
3402
|
return e;
|
|
3392
|
-
const r = await
|
|
3403
|
+
const r = await ls({
|
|
3393
3404
|
contentId: e.id
|
|
3394
3405
|
}) || uo({
|
|
3395
3406
|
variations: e.variations,
|
|
@@ -3402,18 +3413,18 @@ const so = (e = {}) => {
|
|
|
3402
3413
|
...e,
|
|
3403
3414
|
...o
|
|
3404
3415
|
};
|
|
3405
|
-
}, yt = (e) =>
|
|
3406
|
-
function
|
|
3416
|
+
}, yt = (e) => Be(e) ? e : !0;
|
|
3417
|
+
function hs() {
|
|
3407
3418
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
3408
3419
|
}
|
|
3409
|
-
function
|
|
3410
|
-
const e =
|
|
3420
|
+
function ms() {
|
|
3421
|
+
const e = hs().fetch;
|
|
3411
3422
|
if (typeof e > "u")
|
|
3412
3423
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
3413
3424
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
3414
3425
|
return e;
|
|
3415
3426
|
}
|
|
3416
|
-
const
|
|
3427
|
+
const gs = ms();
|
|
3417
3428
|
function bn(e, t = null, n = ".") {
|
|
3418
3429
|
return Object.keys(e).reduce((r, o) => {
|
|
3419
3430
|
const i = e[o], s = [t, o].filter(Boolean).join(n);
|
|
@@ -3433,7 +3444,19 @@ function po(e, t, n = {}) {
|
|
|
3433
3444
|
}
|
|
3434
3445
|
return n;
|
|
3435
3446
|
}
|
|
3436
|
-
|
|
3447
|
+
function ys(e) {
|
|
3448
|
+
const t = {};
|
|
3449
|
+
for (const n in e) {
|
|
3450
|
+
const r = n.split(".");
|
|
3451
|
+
let o = t;
|
|
3452
|
+
for (let i = 0; i < r.length; i++) {
|
|
3453
|
+
const s = r[i];
|
|
3454
|
+
i === r.length - 1 ? o[s] = e[n] : (o[s] = o[s] || {}, o = o[s]);
|
|
3455
|
+
}
|
|
3456
|
+
}
|
|
3457
|
+
return t;
|
|
3458
|
+
}
|
|
3459
|
+
const vs = "v3", Ar = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Dn = (e) => {
|
|
3437
3460
|
const {
|
|
3438
3461
|
limit: t = 30,
|
|
3439
3462
|
userAttributes: n,
|
|
@@ -3442,13 +3465,13 @@ const gs = "v3", Ar = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Vn = (
|
|
|
3442
3465
|
apiKey: i,
|
|
3443
3466
|
enrich: s,
|
|
3444
3467
|
locale: u,
|
|
3445
|
-
apiVersion: p =
|
|
3468
|
+
apiVersion: p = vs,
|
|
3446
3469
|
fields: m,
|
|
3447
3470
|
omit: b,
|
|
3448
3471
|
offset: v,
|
|
3449
3472
|
cacheSeconds: y,
|
|
3450
3473
|
staleCacheSeconds: I,
|
|
3451
|
-
sort:
|
|
3474
|
+
sort: D,
|
|
3452
3475
|
includeUnpublished: O,
|
|
3453
3476
|
apiHost: Z
|
|
3454
3477
|
} = e;
|
|
@@ -3456,45 +3479,64 @@ const gs = "v3", Ar = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Vn = (
|
|
|
3456
3479
|
throw new Error("Missing API key");
|
|
3457
3480
|
if (!["v3"].includes(p))
|
|
3458
3481
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${p}'`);
|
|
3459
|
-
const
|
|
3460
|
-
|
|
3461
|
-
const
|
|
3462
|
-
let
|
|
3463
|
-
if (
|
|
3464
|
-
locale:
|
|
3465
|
-
...
|
|
3466
|
-
}), s &&
|
|
3482
|
+
const Re = t !== 1, $ = Z || "https://cdn.builder.io", F = new URL(`${$}/api/${p}/content/${o}`);
|
|
3483
|
+
F.searchParams.set("apiKey", i), F.searchParams.set("limit", String(t)), F.searchParams.set("noTraverse", String(Re)), F.searchParams.set("includeRefs", String(!0));
|
|
3484
|
+
const Ve = u || (n == null ? void 0 : n.locale);
|
|
3485
|
+
let ge = n || {};
|
|
3486
|
+
if (Ve && (F.searchParams.set("locale", Ve), ge = {
|
|
3487
|
+
locale: Ve,
|
|
3488
|
+
...ge
|
|
3489
|
+
}), s && F.searchParams.set("enrich", String(s)), F.searchParams.set("omit", b || "meta.componentsUsed"), m && F.searchParams.set("fields", m), Number.isFinite(v) && v > -1 && F.searchParams.set("offset", String(Math.floor(v))), typeof O == "boolean" && F.searchParams.set("includeUnpublished", String(O)), y && Ar(y) && F.searchParams.set("cacheSeconds", String(y)), I && Ar(I) && F.searchParams.set("staleCacheSeconds", String(I)), D) {
|
|
3467
3490
|
const E = bn({
|
|
3468
|
-
sort:
|
|
3491
|
+
sort: D
|
|
3469
3492
|
});
|
|
3470
|
-
for (const
|
|
3471
|
-
|
|
3493
|
+
for (const ye in E)
|
|
3494
|
+
F.searchParams.set(ye, JSON.stringify(E[ye]));
|
|
3472
3495
|
}
|
|
3473
|
-
const
|
|
3474
|
-
...
|
|
3475
|
-
...
|
|
3476
|
-
}
|
|
3496
|
+
const M = {
|
|
3497
|
+
...Hi(),
|
|
3498
|
+
...Vr(e.options || {})
|
|
3499
|
+
};
|
|
3500
|
+
ge = {
|
|
3501
|
+
...ge,
|
|
3502
|
+
...ks(M)
|
|
3503
|
+
};
|
|
3504
|
+
const ue = bn(M);
|
|
3477
3505
|
for (const E in ue)
|
|
3478
|
-
|
|
3479
|
-
if (
|
|
3506
|
+
F.searchParams.set(E, String(ue[E]));
|
|
3507
|
+
if (Object.keys(ge).length > 0 && F.searchParams.set("userAttributes", JSON.stringify(ge)), r) {
|
|
3480
3508
|
const E = po({
|
|
3481
3509
|
query: r
|
|
3482
3510
|
});
|
|
3483
|
-
for (const
|
|
3484
|
-
|
|
3511
|
+
for (const ye in E)
|
|
3512
|
+
F.searchParams.set(ye, JSON.stringify(E[ye]));
|
|
3485
3513
|
}
|
|
3486
|
-
return
|
|
3487
|
-
},
|
|
3488
|
-
|
|
3489
|
-
const
|
|
3514
|
+
return F;
|
|
3515
|
+
}, bs = (e) => {
|
|
3516
|
+
const t = {};
|
|
3517
|
+
for (const n in e)
|
|
3518
|
+
n.startsWith("userAttributes.") && (t[n] = e[n], delete e[n]);
|
|
3519
|
+
return t;
|
|
3520
|
+
}, ks = (e) => {
|
|
3521
|
+
if (X() && e.preview === "BUILDER_STUDIO") {
|
|
3522
|
+
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
3523
|
+
const t = bs(e), {
|
|
3524
|
+
userAttributes: n
|
|
3525
|
+
} = ys(t);
|
|
3526
|
+
return n;
|
|
3527
|
+
}
|
|
3528
|
+
return {};
|
|
3529
|
+
}, Ss = (e) => "results" in e;
|
|
3530
|
+
async function Vn(e) {
|
|
3531
|
+
const t = await Es({
|
|
3490
3532
|
...e,
|
|
3491
3533
|
limit: 1
|
|
3492
3534
|
});
|
|
3493
3535
|
return t && t[0] || null;
|
|
3494
3536
|
}
|
|
3495
|
-
const
|
|
3537
|
+
const Cs = async (e) => {
|
|
3496
3538
|
var s;
|
|
3497
|
-
const t =
|
|
3539
|
+
const t = Dn(e), n = e.fetch ?? gs, r = {
|
|
3498
3540
|
...e.fetchOptions,
|
|
3499
3541
|
headers: {
|
|
3500
3542
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
@@ -3502,34 +3544,34 @@ const vs = async (e) => {
|
|
|
3502
3544
|
}
|
|
3503
3545
|
};
|
|
3504
3546
|
return await (await n(t.href, r)).json();
|
|
3505
|
-
},
|
|
3547
|
+
}, ws = async (e, t, n = Dn(e)) => {
|
|
3506
3548
|
const r = yt(e.canTrack);
|
|
3507
|
-
if (n.search.includes("preview="), !r || !(
|
|
3549
|
+
if (n.search.includes("preview="), !r || !(X() || re === "reactNative"))
|
|
3508
3550
|
return t.results;
|
|
3509
3551
|
try {
|
|
3510
3552
|
const o = [];
|
|
3511
3553
|
for (const i of t.results)
|
|
3512
|
-
o.push(await
|
|
3554
|
+
o.push(await fs({
|
|
3513
3555
|
item: i,
|
|
3514
3556
|
canTrack: r
|
|
3515
3557
|
}));
|
|
3516
3558
|
t.results = o;
|
|
3517
3559
|
} catch (o) {
|
|
3518
|
-
|
|
3560
|
+
le.error("Could not process A/B tests. ", o);
|
|
3519
3561
|
}
|
|
3520
3562
|
return t.results;
|
|
3521
3563
|
};
|
|
3522
|
-
async function
|
|
3523
|
-
const t =
|
|
3524
|
-
if (!
|
|
3525
|
-
throw
|
|
3564
|
+
async function Es(e) {
|
|
3565
|
+
const t = Dn(e), n = await Cs(e);
|
|
3566
|
+
if (!Ss(n))
|
|
3567
|
+
throw le.error("Error fetching data. ", {
|
|
3526
3568
|
url: t,
|
|
3527
3569
|
content: n,
|
|
3528
3570
|
options: e
|
|
3529
3571
|
}), n;
|
|
3530
|
-
return
|
|
3572
|
+
return ws(e, n);
|
|
3531
3573
|
}
|
|
3532
|
-
const
|
|
3574
|
+
const ju = async (e) => {
|
|
3533
3575
|
var r, o, i;
|
|
3534
3576
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
3535
3577
|
...e,
|
|
@@ -3546,10 +3588,10 @@ const $u = async (e) => {
|
|
|
3546
3588
|
return {
|
|
3547
3589
|
apiKey: n.apiKey,
|
|
3548
3590
|
model: n.model,
|
|
3549
|
-
content: await
|
|
3591
|
+
content: await Vn(n)
|
|
3550
3592
|
};
|
|
3551
|
-
},
|
|
3552
|
-
function
|
|
3593
|
+
}, Un = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
3594
|
+
function Ts(e, t, n = {}) {
|
|
3553
3595
|
let r, o, i, s = null, u = 0;
|
|
3554
3596
|
const p = function() {
|
|
3555
3597
|
u = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(r, o), s || (r = o = null);
|
|
@@ -3571,14 +3613,14 @@ function dt(e, ...t) {
|
|
|
3571
3613
|
}
|
|
3572
3614
|
return n;
|
|
3573
3615
|
}
|
|
3574
|
-
function
|
|
3616
|
+
function Is(e) {
|
|
3575
3617
|
for (const t of e)
|
|
3576
3618
|
switch (t.trigger) {
|
|
3577
3619
|
case "pageLoad":
|
|
3578
3620
|
mo(t);
|
|
3579
3621
|
break;
|
|
3580
3622
|
case "scrollInView":
|
|
3581
|
-
|
|
3623
|
+
Rs(t);
|
|
3582
3624
|
break;
|
|
3583
3625
|
}
|
|
3584
3626
|
}
|
|
@@ -3586,12 +3628,12 @@ function fo(e) {
|
|
|
3586
3628
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
3587
3629
|
}
|
|
3588
3630
|
function ho(e, t) {
|
|
3589
|
-
const n =
|
|
3631
|
+
const n = xs(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
3590
3632
|
for (const u of s)
|
|
3591
3633
|
for (const p of n)
|
|
3592
3634
|
p in u || (u[p] = r[p]);
|
|
3593
3635
|
}
|
|
3594
|
-
function
|
|
3636
|
+
function xs(e) {
|
|
3595
3637
|
const t = [];
|
|
3596
3638
|
for (const n of e.steps)
|
|
3597
3639
|
for (const r in n.styles)
|
|
@@ -3606,13 +3648,13 @@ function mo(e) {
|
|
|
3606
3648
|
}
|
|
3607
3649
|
Array.from(t).forEach((n) => {
|
|
3608
3650
|
ho(e, n), n.style.transition = "none", n.style.transitionDelay = "0", dt(n.style, e.steps[0].styles), setTimeout(() => {
|
|
3609
|
-
n.style.transition = `all ${e.duration}s ${
|
|
3651
|
+
n.style.transition = `all ${e.duration}s ${Un(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), dt(n.style, e.steps[1].styles), setTimeout(() => {
|
|
3610
3652
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
3611
3653
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
3612
3654
|
});
|
|
3613
3655
|
});
|
|
3614
3656
|
}
|
|
3615
|
-
function
|
|
3657
|
+
function Rs(e) {
|
|
3616
3658
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
3617
3659
|
if (!t.length) {
|
|
3618
3660
|
fo(e.elementId || e.id || "");
|
|
@@ -3628,19 +3670,19 @@ function Es(e) {
|
|
|
3628
3670
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
3629
3671
|
})) : e.repeat && r && !o && !u(n) && (r = !1, dt(n.style, e.steps[0].styles));
|
|
3630
3672
|
}
|
|
3631
|
-
const s =
|
|
3673
|
+
const s = Ts(i, 200, {
|
|
3632
3674
|
leading: !1
|
|
3633
3675
|
});
|
|
3634
3676
|
function u(b) {
|
|
3635
|
-
const v = b.getBoundingClientRect(), y = window.innerHeight,
|
|
3636
|
-
return v.bottom >
|
|
3677
|
+
const v = b.getBoundingClientRect(), y = window.innerHeight, D = (e.thresholdPercent || 0) / 100 * y;
|
|
3678
|
+
return v.bottom > D && v.top < y - D;
|
|
3637
3679
|
}
|
|
3638
3680
|
const p = e.steps[0].styles;
|
|
3639
3681
|
function m() {
|
|
3640
3682
|
dt(n.style, p);
|
|
3641
3683
|
}
|
|
3642
3684
|
m(), setTimeout(() => {
|
|
3643
|
-
n.style.transition = `all ${e.duration}s ${
|
|
3685
|
+
n.style.transition = `all ${e.duration}s ${Un(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
3644
3686
|
}), document.addEventListener("scroll", s, {
|
|
3645
3687
|
capture: !0,
|
|
3646
3688
|
passive: !0
|
|
@@ -3649,29 +3691,29 @@ function Es(e) {
|
|
|
3649
3691
|
}
|
|
3650
3692
|
const go = (e) => Object.entries(e).map(([n, r]) => {
|
|
3651
3693
|
if (typeof r == "string")
|
|
3652
|
-
return `${
|
|
3653
|
-
}).filter(
|
|
3654
|
-
`),
|
|
3694
|
+
return `${Un(n)}: ${r};`;
|
|
3695
|
+
}).filter(Be), As = (e) => go(e).join(`
|
|
3696
|
+
`), Nu = ({
|
|
3655
3697
|
mediaQuery: e,
|
|
3656
3698
|
className: t,
|
|
3657
3699
|
styles: n
|
|
3658
3700
|
}) => {
|
|
3659
3701
|
const r = `.${t} {
|
|
3660
|
-
${
|
|
3702
|
+
${As(n)}
|
|
3661
3703
|
}`;
|
|
3662
3704
|
return e ? `${e} {
|
|
3663
3705
|
${r}
|
|
3664
3706
|
}` : r;
|
|
3665
3707
|
};
|
|
3666
|
-
function
|
|
3708
|
+
function $s({
|
|
3667
3709
|
style: e
|
|
3668
3710
|
}) {
|
|
3669
3711
|
return e;
|
|
3670
3712
|
}
|
|
3671
|
-
const
|
|
3713
|
+
const Du = ({
|
|
3672
3714
|
block: e,
|
|
3673
3715
|
context: t
|
|
3674
|
-
}) => yo(
|
|
3716
|
+
}) => yo($s({
|
|
3675
3717
|
style: e.style || {},
|
|
3676
3718
|
context: t,
|
|
3677
3719
|
block: e
|
|
@@ -3690,7 +3732,7 @@ function yo(e) {
|
|
|
3690
3732
|
return e;
|
|
3691
3733
|
}
|
|
3692
3734
|
}
|
|
3693
|
-
const vo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0,
|
|
3735
|
+
const vo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Ps = ({
|
|
3694
3736
|
block: e,
|
|
3695
3737
|
registeredComponents: t,
|
|
3696
3738
|
model: n
|
|
@@ -3707,7 +3749,7 @@ const vo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3707
3749
|
return;
|
|
3708
3750
|
} else
|
|
3709
3751
|
return o;
|
|
3710
|
-
},
|
|
3752
|
+
}, Os = ({
|
|
3711
3753
|
block: e,
|
|
3712
3754
|
context: t
|
|
3713
3755
|
}) => {
|
|
@@ -3740,59 +3782,59 @@ const vo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3740
3782
|
},
|
|
3741
3783
|
block: r
|
|
3742
3784
|
}));
|
|
3743
|
-
},
|
|
3785
|
+
}, Bs = (e, t) => {
|
|
3744
3786
|
var n;
|
|
3745
3787
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
3746
3788
|
builderLinkComponent: t
|
|
3747
3789
|
} : {};
|
|
3748
|
-
},
|
|
3790
|
+
}, js = (e, t, n) => {
|
|
3749
3791
|
var r;
|
|
3750
3792
|
return (r = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && r.builderComponents ? {
|
|
3751
3793
|
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !vo(s, n)))
|
|
3752
3794
|
} : {};
|
|
3753
|
-
},
|
|
3795
|
+
}, Ns = (e, t) => {
|
|
3754
3796
|
var n;
|
|
3755
3797
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
3756
3798
|
builderBlock: t
|
|
3757
3799
|
} : {};
|
|
3758
|
-
},
|
|
3800
|
+
}, Ds = (e, t) => {
|
|
3759
3801
|
var n;
|
|
3760
3802
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
3761
3803
|
builderContext: t
|
|
3762
3804
|
} : {};
|
|
3763
|
-
},
|
|
3805
|
+
}, Vs = () => Promise.resolve().then(() => Ys).then((e) => e.default).catch((e) => {
|
|
3764
3806
|
throw console.error(
|
|
3765
3807
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3766
3808
|
e
|
|
3767
3809
|
), e;
|
|
3768
|
-
}),
|
|
3810
|
+
}), Us = () => import("./block-styles-S0GMFR-E.js").then((e) => e.default).catch((e) => {
|
|
3769
3811
|
throw console.error(
|
|
3770
3812
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
3771
3813
|
e
|
|
3772
3814
|
), e;
|
|
3773
|
-
}),
|
|
3815
|
+
}), Fs = () => import("./block-wrapper-u1TP9krq.js").then((e) => e.default).catch((e) => {
|
|
3774
3816
|
throw console.error(
|
|
3775
3817
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3776
3818
|
e
|
|
3777
3819
|
), e;
|
|
3778
|
-
}),
|
|
3820
|
+
}), Ws = () => import("./component-ref-egpaOyfe.js").then((e) => e.default).catch((e) => {
|
|
3779
3821
|
throw console.error(
|
|
3780
3822
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3781
3823
|
e
|
|
3782
3824
|
), e;
|
|
3783
|
-
}),
|
|
3825
|
+
}), Ls = () => import("./repeated-block-NSni9pku.js").then((e) => e.default).catch((e) => {
|
|
3784
3826
|
throw console.error(
|
|
3785
3827
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3786
3828
|
e
|
|
3787
3829
|
), e;
|
|
3788
|
-
}),
|
|
3830
|
+
}), Ms = B({
|
|
3789
3831
|
name: "block",
|
|
3790
3832
|
components: {
|
|
3791
|
-
BlockStyles: rt(
|
|
3792
|
-
RepeatedBlock: rt(
|
|
3793
|
-
ComponentRef: rt(
|
|
3794
|
-
BlockWrapper: rt(
|
|
3795
|
-
DynamicDiv: rt(
|
|
3833
|
+
BlockStyles: rt(Us),
|
|
3834
|
+
RepeatedBlock: rt(Ls),
|
|
3835
|
+
ComponentRef: rt(Ws),
|
|
3836
|
+
BlockWrapper: rt(Fs),
|
|
3837
|
+
DynamicDiv: rt(Vs)
|
|
3796
3838
|
},
|
|
3797
3839
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
3798
3840
|
data() {
|
|
@@ -3805,7 +3847,7 @@ const vo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3805
3847
|
},
|
|
3806
3848
|
mounted() {
|
|
3807
3849
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
3808
|
-
t && e &&
|
|
3850
|
+
t && e && Is(
|
|
3809
3851
|
t.map((n) => ({
|
|
3810
3852
|
...n,
|
|
3811
3853
|
elementId: e
|
|
@@ -3816,24 +3858,23 @@ const vo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3816
3858
|
},
|
|
3817
3859
|
computed: {
|
|
3818
3860
|
repeatItem() {
|
|
3819
|
-
return
|
|
3861
|
+
return Os({
|
|
3820
3862
|
block: this.block,
|
|
3821
3863
|
context: this.context
|
|
3822
3864
|
});
|
|
3823
3865
|
},
|
|
3824
3866
|
processedBlock() {
|
|
3825
3867
|
var t;
|
|
3826
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
3868
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : Ui({
|
|
3827
3869
|
block: this.block,
|
|
3828
3870
|
localState: this.context.localState,
|
|
3829
3871
|
rootState: this.context.rootState,
|
|
3830
3872
|
rootSetState: this.context.rootSetState,
|
|
3831
|
-
context: this.context.context
|
|
3832
|
-
shouldEvaluateBindings: !0
|
|
3873
|
+
context: this.context.context
|
|
3833
3874
|
});
|
|
3834
3875
|
},
|
|
3835
3876
|
blockComponent() {
|
|
3836
|
-
return
|
|
3877
|
+
return Ps({
|
|
3837
3878
|
block: this.processedBlock,
|
|
3838
3879
|
registeredComponents: this.registeredComponents,
|
|
3839
3880
|
model: this.context.model
|
|
@@ -3860,11 +3901,11 @@ const vo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3860
3901
|
blockChildren: this.processedBlock.children ?? [],
|
|
3861
3902
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
3862
3903
|
componentOptions: {
|
|
3863
|
-
...
|
|
3864
|
-
...
|
|
3865
|
-
...
|
|
3866
|
-
...
|
|
3867
|
-
|
|
3904
|
+
...Ai(this.processedBlock, this.context),
|
|
3905
|
+
...Ns(this.blockComponent, this.processedBlock),
|
|
3906
|
+
...Ds(this.blockComponent, this.context),
|
|
3907
|
+
...Bs(this.blockComponent, this.linkComponent),
|
|
3908
|
+
...js(
|
|
3868
3909
|
this.blockComponent,
|
|
3869
3910
|
this.registeredComponents,
|
|
3870
3911
|
this.context.model
|
|
@@ -3880,22 +3921,22 @@ const vo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3880
3921
|
}
|
|
3881
3922
|
}
|
|
3882
3923
|
});
|
|
3883
|
-
function
|
|
3924
|
+
function Hs(e, t, n, r, o, i) {
|
|
3884
3925
|
var v;
|
|
3885
|
-
const s =
|
|
3926
|
+
const s = U("BlockStyles"), u = U("ComponentRef"), p = U("Block", !0), m = U("BlockWrapper"), b = U("RepeatedBlock");
|
|
3886
3927
|
return e.canShowBlock ? (g(), T(_, { key: 0 }, [
|
|
3887
3928
|
se(s, {
|
|
3888
3929
|
block: e.processedBlock,
|
|
3889
3930
|
context: e.context
|
|
3890
3931
|
}, null, 8, ["block", "context"]),
|
|
3891
3932
|
(v = e.blockComponent) != null && v.noWrap ? (g(), T(_, { key: 1 }, [
|
|
3892
|
-
e.repeatItem ? (g(!0), T(_, { key: 1 }, he(e.repeatItem, (y, I) => (g(),
|
|
3933
|
+
e.repeatItem ? (g(!0), T(_, { key: 1 }, he(e.repeatItem, (y, I) => (g(), V(b, {
|
|
3893
3934
|
key: I,
|
|
3894
3935
|
repeatContext: y.context,
|
|
3895
3936
|
block: y.block,
|
|
3896
3937
|
registeredComponents: e.registeredComponents,
|
|
3897
3938
|
linkComponent: e.linkComponent
|
|
3898
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (g(),
|
|
3939
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (g(), V(u, {
|
|
3899
3940
|
key: 0,
|
|
3900
3941
|
componentRef: e.componentRefProps.componentRef,
|
|
3901
3942
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -3908,19 +3949,19 @@ function Us(e, t, n, r, o, i) {
|
|
|
3908
3949
|
isInteractive: e.componentRefProps.isInteractive
|
|
3909
3950
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
3910
3951
|
], 64)) : (g(), T(_, { key: 0 }, [
|
|
3911
|
-
e.repeatItem ? (g(!0), T(_, { key: 1 }, he(e.repeatItem, (y, I) => (g(),
|
|
3952
|
+
e.repeatItem ? (g(!0), T(_, { key: 1 }, he(e.repeatItem, (y, I) => (g(), V(b, {
|
|
3912
3953
|
key: I,
|
|
3913
3954
|
repeatContext: y.context,
|
|
3914
3955
|
block: y.block,
|
|
3915
3956
|
registeredComponents: e.registeredComponents,
|
|
3916
3957
|
linkComponent: e.linkComponent
|
|
3917
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (g(),
|
|
3958
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (g(), V(m, {
|
|
3918
3959
|
key: 0,
|
|
3919
3960
|
Wrapper: e.Tag,
|
|
3920
3961
|
block: e.processedBlock,
|
|
3921
3962
|
context: e.context
|
|
3922
3963
|
}, {
|
|
3923
|
-
default:
|
|
3964
|
+
default: Ie(() => [
|
|
3924
3965
|
se(u, {
|
|
3925
3966
|
componentRef: e.componentRefProps.componentRef,
|
|
3926
3967
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -3932,7 +3973,7 @@ function Us(e, t, n, r, o, i) {
|
|
|
3932
3973
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
3933
3974
|
isInteractive: e.componentRefProps.isInteractive
|
|
3934
3975
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
3935
|
-
(g(!0), T(_, null, he(e.childrenWithoutParentComponent, (y, I) => (g(),
|
|
3976
|
+
(g(!0), T(_, null, he(e.childrenWithoutParentComponent, (y, I) => (g(), V(p, {
|
|
3936
3977
|
key: y.id,
|
|
3937
3978
|
block: y,
|
|
3938
3979
|
registeredComponents: e.registeredComponents,
|
|
@@ -3945,10 +3986,10 @@ function Us(e, t, n, r, o, i) {
|
|
|
3945
3986
|
], 64))
|
|
3946
3987
|
], 64)) : L("", !0);
|
|
3947
3988
|
}
|
|
3948
|
-
const
|
|
3989
|
+
const Fn = /* @__PURE__ */ N(Ms, [["render", Hs]]), Vu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3949
3990
|
__proto__: null,
|
|
3950
|
-
default:
|
|
3951
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3991
|
+
default: Fn
|
|
3992
|
+
}, Symbol.toStringTag, { value: "Module" })), Ks = B({
|
|
3952
3993
|
name: "builder-blocks-wrapper",
|
|
3953
3994
|
props: [
|
|
3954
3995
|
"blocks",
|
|
@@ -4006,8 +4047,8 @@ const Un = /* @__PURE__ */ N(Fs, [["render", Us]]), ju = /* @__PURE__ */ Object.
|
|
|
4006
4047
|
}
|
|
4007
4048
|
}
|
|
4008
4049
|
});
|
|
4009
|
-
function
|
|
4010
|
-
return g(),
|
|
4050
|
+
function zs(e, t, n, r, o, i) {
|
|
4051
|
+
return g(), V(ut(e.BlocksWrapper), G({
|
|
4011
4052
|
ref: "blocksWrapperRef",
|
|
4012
4053
|
class: e.className + " component-1k2igrjdg3x",
|
|
4013
4054
|
"builder-path": e.dataPath,
|
|
@@ -4017,15 +4058,15 @@ function Ls(e, t, n, r, o, i) {
|
|
|
4017
4058
|
onMouseEnter: (s) => e.onMouseEnter(),
|
|
4018
4059
|
onKeyPress: (s) => e.onClick()
|
|
4019
4060
|
}, { ...e.BlocksWrapperProps }), {
|
|
4020
|
-
default:
|
|
4061
|
+
default: Ie(() => [
|
|
4021
4062
|
de(e.$slots, "default", {}, void 0, !0)
|
|
4022
4063
|
]),
|
|
4023
4064
|
_: 3
|
|
4024
4065
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
4025
4066
|
}
|
|
4026
|
-
const
|
|
4067
|
+
const Gs = /* @__PURE__ */ N(Ks, [["render", zs], ["__scopeId", "data-v-ba2bc5c0"]]), qs = B({
|
|
4027
4068
|
name: "builder-blocks",
|
|
4028
|
-
components: { BlocksWrapper:
|
|
4069
|
+
components: { BlocksWrapper: Gs, Block: Fn },
|
|
4029
4070
|
props: [
|
|
4030
4071
|
"blocks",
|
|
4031
4072
|
"parent",
|
|
@@ -4041,10 +4082,10 @@ const Ms = /* @__PURE__ */ N(Ws, [["render", Ls], ["__scopeId", "data-v-ba2bc5c0
|
|
|
4041
4082
|
componentsContext: Nr.key
|
|
4042
4083
|
}
|
|
4043
4084
|
});
|
|
4044
|
-
function
|
|
4085
|
+
function _s(e, t, n, r, o, i) {
|
|
4045
4086
|
var p, m, b, v;
|
|
4046
|
-
const s =
|
|
4047
|
-
return g(),
|
|
4087
|
+
const s = U("Block"), u = U("BlocksWrapper");
|
|
4088
|
+
return g(), V(u, {
|
|
4048
4089
|
blocks: e.blocks,
|
|
4049
4090
|
parent: e.parent,
|
|
4050
4091
|
path: e.path,
|
|
@@ -4053,36 +4094,36 @@ function Ks(e, t, n, r, o, i) {
|
|
|
4053
4094
|
BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((m = e.builderContext) == null ? void 0 : m.BlocksWrapper),
|
|
4054
4095
|
BlocksWrapperProps: ((b = e.context) == null ? void 0 : b.BlocksWrapperProps) || ((v = e.builderContext) == null ? void 0 : v.BlocksWrapperProps)
|
|
4055
4096
|
}, {
|
|
4056
|
-
default:
|
|
4097
|
+
default: Ie(() => [
|
|
4057
4098
|
e.blocks ? (g(!0), T(_, { key: 0 }, he(e.blocks, (y, I) => {
|
|
4058
|
-
var
|
|
4059
|
-
return g(),
|
|
4099
|
+
var D;
|
|
4100
|
+
return g(), V(s, {
|
|
4060
4101
|
key: y.id,
|
|
4061
4102
|
block: y,
|
|
4062
4103
|
linkComponent: e.linkComponent,
|
|
4063
4104
|
context: e.context || e.builderContext,
|
|
4064
|
-
registeredComponents: e.registeredComponents || ((
|
|
4105
|
+
registeredComponents: e.registeredComponents || ((D = e.componentsContext) == null ? void 0 : D.registeredComponents)
|
|
4065
4106
|
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]);
|
|
4066
4107
|
}), 128)) : L("", !0)
|
|
4067
4108
|
]),
|
|
4068
4109
|
_: 1
|
|
4069
4110
|
}, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
4070
4111
|
}
|
|
4071
|
-
const _e = /* @__PURE__ */ N(
|
|
4112
|
+
const _e = /* @__PURE__ */ N(qs, [["render", _s]]), Js = B({
|
|
4072
4113
|
name: "dynamic-div",
|
|
4073
4114
|
props: []
|
|
4074
4115
|
});
|
|
4075
|
-
function
|
|
4116
|
+
function Xs(e, t, n, r, o, i) {
|
|
4076
4117
|
return g(), T("div", null, [
|
|
4077
4118
|
de(e.$slots, "default")
|
|
4078
4119
|
]);
|
|
4079
4120
|
}
|
|
4080
|
-
const St = /* @__PURE__ */ N(
|
|
4121
|
+
const St = /* @__PURE__ */ N(Js, [["render", Xs]]), Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4081
4122
|
__proto__: null,
|
|
4082
4123
|
default: St
|
|
4083
|
-
}, Symbol.toStringTag, { value: "Module" })), Wn =
|
|
4124
|
+
}, Symbol.toStringTag, { value: "Module" })), Wn = B({
|
|
4084
4125
|
render() {
|
|
4085
|
-
return
|
|
4126
|
+
return jr("style", {
|
|
4086
4127
|
innerHTML: this.styles,
|
|
4087
4128
|
"data-id": this.id,
|
|
4088
4129
|
nonce: this.nonce
|
|
@@ -4106,11 +4147,11 @@ const St = /* @__PURE__ */ N(zs, [["render", Gs]]), qs = /* @__PURE__ */ Object.
|
|
|
4106
4147
|
default: 991,
|
|
4107
4148
|
max: 1200
|
|
4108
4149
|
}
|
|
4109
|
-
},
|
|
4150
|
+
}, Uu = (e, t = bo) => `@media (max-width: ${t[e].max}px)`, Zs = ({
|
|
4110
4151
|
small: e,
|
|
4111
4152
|
medium: t
|
|
4112
4153
|
}) => {
|
|
4113
|
-
const n =
|
|
4154
|
+
const n = Bn(bo);
|
|
4114
4155
|
if (!e || !t)
|
|
4115
4156
|
return n;
|
|
4116
4157
|
const r = Math.floor(e / 2);
|
|
@@ -4132,7 +4173,7 @@ const St = /* @__PURE__ */ N(zs, [["render", Gs]]), qs = /* @__PURE__ */ Object.
|
|
|
4132
4173
|
min: i,
|
|
4133
4174
|
default: i + 1
|
|
4134
4175
|
}, n;
|
|
4135
|
-
},
|
|
4176
|
+
}, Qs = (e) => `builder-columns ${e}-breakpoints`, ea = B({
|
|
4136
4177
|
name: "builder-columns",
|
|
4137
4178
|
components: {
|
|
4138
4179
|
InlinedStyles: Wn,
|
|
@@ -4151,7 +4192,7 @@ const St = /* @__PURE__ */ N(zs, [["render", Gs]]), qs = /* @__PURE__ */ Object.
|
|
|
4151
4192
|
"builderComponents"
|
|
4152
4193
|
],
|
|
4153
4194
|
data() {
|
|
4154
|
-
return { TARGET: re, getColumnsClass:
|
|
4195
|
+
return { TARGET: re, getColumnsClass: Qs };
|
|
4155
4196
|
},
|
|
4156
4197
|
computed: {
|
|
4157
4198
|
gutterSize() {
|
|
@@ -4230,7 +4271,7 @@ const St = /* @__PURE__ */ N(zs, [["render", Gs]]), qs = /* @__PURE__ */ Object.
|
|
|
4230
4271
|
},
|
|
4231
4272
|
getWidthForBreakpointSize(e) {
|
|
4232
4273
|
var n, r;
|
|
4233
|
-
return
|
|
4274
|
+
return Zs(
|
|
4234
4275
|
((r = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : r.breakpoints) || {}
|
|
4235
4276
|
)[e].max;
|
|
4236
4277
|
},
|
|
@@ -4273,26 +4314,26 @@ const St = /* @__PURE__ */ N(zs, [["render", Gs]]), qs = /* @__PURE__ */ Object.
|
|
|
4273
4314
|
}
|
|
4274
4315
|
}
|
|
4275
4316
|
});
|
|
4276
|
-
function
|
|
4317
|
+
function ta(e, t, n, r, o, i) {
|
|
4277
4318
|
var m;
|
|
4278
|
-
const s =
|
|
4319
|
+
const s = U("InlinedStyles"), u = U("Blocks"), p = U("DynamicRenderer");
|
|
4279
4320
|
return g(), T("div", G({
|
|
4280
4321
|
class: e.getColumnsClass((m = e.builderBlock) == null ? void 0 : m.id) + " div-4wbls88y960",
|
|
4281
4322
|
style: e.columnsCssVars()
|
|
4282
4323
|
}, {}), [
|
|
4283
|
-
e.TARGET !== "reactNative" ? (g(),
|
|
4324
|
+
e.TARGET !== "reactNative" ? (g(), V(s, {
|
|
4284
4325
|
key: 0,
|
|
4285
4326
|
id: "builderio-columns",
|
|
4286
4327
|
styles: e.columnsStyles(),
|
|
4287
4328
|
nonce: e.builderContext.nonce
|
|
4288
4329
|
}, null, 8, ["styles", "nonce"])) : L("", !0),
|
|
4289
|
-
(g(!0), T(_, null, he(e.columns, (b, v) => (g(),
|
|
4330
|
+
(g(!0), T(_, null, he(e.columns, (b, v) => (g(), V(p, {
|
|
4290
4331
|
key: v,
|
|
4291
4332
|
TagName: e.getTagName(b),
|
|
4292
4333
|
actionAttributes: {},
|
|
4293
4334
|
attributes: e.getAttributes(b, v)
|
|
4294
4335
|
}, {
|
|
4295
|
-
default:
|
|
4336
|
+
default: Ie(() => [
|
|
4296
4337
|
se(u, {
|
|
4297
4338
|
path: `columns.${v}.blocks`,
|
|
4298
4339
|
parent: e.builderBlock.id,
|
|
@@ -4309,24 +4350,24 @@ function Ys(e, t, n, r, o, i) {
|
|
|
4309
4350
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
4310
4351
|
], 16);
|
|
4311
4352
|
}
|
|
4312
|
-
const
|
|
4353
|
+
const na = /* @__PURE__ */ N(ea, [["render", ta], ["__scopeId", "data-v-3354f136"]]), ra = B({
|
|
4313
4354
|
name: "builder-fragment-component",
|
|
4314
4355
|
props: []
|
|
4315
4356
|
});
|
|
4316
|
-
function
|
|
4357
|
+
function oa(e, t, n, r, o, i) {
|
|
4317
4358
|
return g(), T("span", null, [
|
|
4318
4359
|
de(e.$slots, "default")
|
|
4319
4360
|
]);
|
|
4320
4361
|
}
|
|
4321
|
-
const
|
|
4362
|
+
const ia = /* @__PURE__ */ N(ra, [["render", oa]]);
|
|
4322
4363
|
function $r(e) {
|
|
4323
4364
|
return e.replace(/http(s)?:/, "");
|
|
4324
4365
|
}
|
|
4325
|
-
function
|
|
4366
|
+
function sa(e = "", t, n) {
|
|
4326
4367
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
4327
4368
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
4328
4369
|
}
|
|
4329
|
-
function
|
|
4370
|
+
function aa(e, t) {
|
|
4330
4371
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
4331
4372
|
return e;
|
|
4332
4373
|
if (t === "master")
|
|
@@ -4345,11 +4386,11 @@ function ln(e) {
|
|
|
4345
4386
|
if (e.match(/builder\.io/)) {
|
|
4346
4387
|
let n = e;
|
|
4347
4388
|
const r = Number(e.split("?width=")[1]);
|
|
4348
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
4389
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${sa(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
4349
4390
|
}
|
|
4350
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
4391
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [aa(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
4351
4392
|
}
|
|
4352
|
-
const
|
|
4393
|
+
const la = B({
|
|
4353
4394
|
name: "builder-image",
|
|
4354
4395
|
props: [
|
|
4355
4396
|
"image",
|
|
@@ -4400,11 +4441,11 @@ const oa = j({
|
|
|
4400
4441
|
return this.aspectRatio ? e : void 0;
|
|
4401
4442
|
}
|
|
4402
4443
|
}
|
|
4403
|
-
}),
|
|
4444
|
+
}), ua = ["srcset"], ca = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], pa = {
|
|
4404
4445
|
key: 2,
|
|
4405
4446
|
class: "div-29wpyomtntv-2"
|
|
4406
4447
|
};
|
|
4407
|
-
function
|
|
4448
|
+
function da(e, t, n, r, o, i) {
|
|
4408
4449
|
var s, u, p, m, b, v;
|
|
4409
4450
|
return g(), T(_, null, [
|
|
4410
4451
|
ft("picture", null, [
|
|
@@ -4412,13 +4453,13 @@ function la(e, t, n, r, o, i) {
|
|
|
4412
4453
|
key: 0,
|
|
4413
4454
|
type: "image/webp",
|
|
4414
4455
|
srcset: e.webpSrcSet
|
|
4415
|
-
}, null, 8,
|
|
4456
|
+
}, null, 8, ua)) : L("", !0),
|
|
4416
4457
|
ft("img", {
|
|
4417
4458
|
loading: e.highPriority ? "eager" : "lazy",
|
|
4418
4459
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
4419
4460
|
alt: e.altText,
|
|
4420
4461
|
role: e.altText ? void 0 : "presentation",
|
|
4421
|
-
style:
|
|
4462
|
+
style: Pe({
|
|
4422
4463
|
objectPosition: e.backgroundPosition || "center",
|
|
4423
4464
|
objectFit: e.backgroundSize || "cover",
|
|
4424
4465
|
...e.aspectRatioCss
|
|
@@ -4429,29 +4470,29 @@ function la(e, t, n, r, o, i) {
|
|
|
4429
4470
|
src: e.image,
|
|
4430
4471
|
srcset: e.srcSetToUse,
|
|
4431
4472
|
sizes: e.sizes
|
|
4432
|
-
}, null, 14,
|
|
4473
|
+
}, null, 14, ca)
|
|
4433
4474
|
]),
|
|
4434
4475
|
e.aspectRatio && !((u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent) ? (g(), T("div", {
|
|
4435
4476
|
key: 0,
|
|
4436
4477
|
class: "builder-image-sizer div-29wpyomtntv",
|
|
4437
|
-
style:
|
|
4478
|
+
style: Pe({
|
|
4438
4479
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
4439
4480
|
})
|
|
4440
4481
|
}, null, 4)) : L("", !0),
|
|
4441
4482
|
(m = (p = e.builderBlock) == null ? void 0 : p.children) != null && m.length && e.fitContent ? de(e.$slots, "default", { key: 1 }, void 0, !0) : L("", !0),
|
|
4442
|
-
!e.fitContent && ((v = (b = e.builderBlock) == null ? void 0 : b.children) != null && v.length) ? (g(), T("div",
|
|
4483
|
+
!e.fitContent && ((v = (b = e.builderBlock) == null ? void 0 : b.children) != null && v.length) ? (g(), T("div", pa, [
|
|
4443
4484
|
de(e.$slots, "default", {}, void 0, !0)
|
|
4444
4485
|
])) : L("", !0)
|
|
4445
4486
|
], 64);
|
|
4446
4487
|
}
|
|
4447
|
-
const
|
|
4488
|
+
const fa = /* @__PURE__ */ N(la, [["render", da], ["__scopeId", "data-v-a3766aaf"]]), ha = B({
|
|
4448
4489
|
name: "builder-section-component",
|
|
4449
4490
|
props: ["attributes", "maxWidth"],
|
|
4450
4491
|
data() {
|
|
4451
4492
|
return { filterAttrs: me };
|
|
4452
4493
|
}
|
|
4453
4494
|
});
|
|
4454
|
-
function
|
|
4495
|
+
function ma(e, t, n, r, o, i) {
|
|
4455
4496
|
return g(), T("section", G({
|
|
4456
4497
|
style: {
|
|
4457
4498
|
width: "100%",
|
|
@@ -4469,7 +4510,7 @@ function pa(e, t, n, r, o, i) {
|
|
|
4469
4510
|
de(e.$slots, "default")
|
|
4470
4511
|
], 16);
|
|
4471
4512
|
}
|
|
4472
|
-
const
|
|
4513
|
+
const ga = /* @__PURE__ */ N(ha, [["render", ma]]), un = {
|
|
4473
4514
|
"@type": "@builder.io/sdk:Element",
|
|
4474
4515
|
layerName: "Accordion item title",
|
|
4475
4516
|
responsiveStyles: {
|
|
@@ -4529,7 +4570,7 @@ const da = /* @__PURE__ */ N(ca, [["render", pa]]), un = {
|
|
|
4529
4570
|
}
|
|
4530
4571
|
}
|
|
4531
4572
|
}]
|
|
4532
|
-
},
|
|
4573
|
+
}, ya = {
|
|
4533
4574
|
name: "Builder:Accordion",
|
|
4534
4575
|
canHaveChildren: !0,
|
|
4535
4576
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -4593,7 +4634,7 @@ const da = /* @__PURE__ */ N(ca, [["render", pa]]), un = {
|
|
|
4593
4634
|
builderComponents: !0,
|
|
4594
4635
|
builderLinkComponent: !0
|
|
4595
4636
|
}
|
|
4596
|
-
},
|
|
4637
|
+
}, va = (e) => e.toString(), ba = B({
|
|
4597
4638
|
name: "builder-accordion",
|
|
4598
4639
|
components: { Blocks: _e },
|
|
4599
4640
|
props: [
|
|
@@ -4607,7 +4648,7 @@ const da = /* @__PURE__ */ N(ca, [["render", pa]]), un = {
|
|
|
4607
4648
|
"builderLinkComponent"
|
|
4608
4649
|
],
|
|
4609
4650
|
data() {
|
|
4610
|
-
return { open: [], convertOrderNumberToString:
|
|
4651
|
+
return { open: [], convertOrderNumberToString: va };
|
|
4611
4652
|
},
|
|
4612
4653
|
computed: {
|
|
4613
4654
|
onlyOneAtATime() {
|
|
@@ -4688,17 +4729,17 @@ const da = /* @__PURE__ */ N(ca, [["render", pa]]), un = {
|
|
|
4688
4729
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
4689
4730
|
}
|
|
4690
4731
|
}
|
|
4691
|
-
}),
|
|
4692
|
-
function
|
|
4693
|
-
const s =
|
|
4732
|
+
}), ka = ["data-index", "onClick"];
|
|
4733
|
+
function Sa(e, t, n, r, o, i) {
|
|
4734
|
+
const s = U("Blocks");
|
|
4694
4735
|
return g(), T("div", {
|
|
4695
4736
|
class: "builder-accordion",
|
|
4696
|
-
style:
|
|
4737
|
+
style: Pe(e.accordionStyles)
|
|
4697
4738
|
}, [
|
|
4698
4739
|
(g(!0), T(_, null, he(e.items, (u, p) => (g(), T(_, { key: p }, [
|
|
4699
4740
|
ft("div", {
|
|
4700
4741
|
class: ht(e.getAccordionTitleClassName(p)),
|
|
4701
|
-
style:
|
|
4742
|
+
style: Pe({
|
|
4702
4743
|
...e.accordionTitleStyles,
|
|
4703
4744
|
...e.grid && {
|
|
4704
4745
|
width: e.gridRowWidth,
|
|
@@ -4706,7 +4747,7 @@ function ya(e, t, n, r, o, i) {
|
|
|
4706
4747
|
}
|
|
4707
4748
|
}),
|
|
4708
4749
|
"data-index": p,
|
|
4709
|
-
onClick: (m) => e.onClick(p)
|
|
4750
|
+
onClick: async (m) => e.onClick(p)
|
|
4710
4751
|
}, [
|
|
4711
4752
|
se(s, {
|
|
4712
4753
|
blocks: u.title,
|
|
@@ -4716,11 +4757,11 @@ function ya(e, t, n, r, o, i) {
|
|
|
4716
4757
|
registeredComponents: e.builderComponents,
|
|
4717
4758
|
linkComponent: e.builderLinkComponent
|
|
4718
4759
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
4719
|
-
], 14,
|
|
4760
|
+
], 14, ka),
|
|
4720
4761
|
e.open.includes(p) ? (g(), T("div", {
|
|
4721
4762
|
key: 0,
|
|
4722
4763
|
class: ht(e.getAccordionDetailClassName(p)),
|
|
4723
|
-
style:
|
|
4764
|
+
style: Pe(e.accordionDetailStyles)
|
|
4724
4765
|
}, [
|
|
4725
4766
|
se(s, {
|
|
4726
4767
|
blocks: u.detail,
|
|
@@ -4734,7 +4775,7 @@ function ya(e, t, n, r, o, i) {
|
|
|
4734
4775
|
], 64))), 128))
|
|
4735
4776
|
], 4);
|
|
4736
4777
|
}
|
|
4737
|
-
const
|
|
4778
|
+
const Ca = /* @__PURE__ */ N(ba, [["render", Sa]]), wa = {
|
|
4738
4779
|
name: "Core:Button",
|
|
4739
4780
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
4740
4781
|
defaultStyles: {
|
|
@@ -4770,7 +4811,7 @@ const va = /* @__PURE__ */ N(ma, [["render", ya]]), ba = {
|
|
|
4770
4811
|
shouldReceiveBuilderProps: {
|
|
4771
4812
|
builderLinkComponent: !0
|
|
4772
4813
|
}
|
|
4773
|
-
},
|
|
4814
|
+
}, Ea = {
|
|
4774
4815
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
4775
4816
|
name: "Columns",
|
|
4776
4817
|
isRSC: !0,
|
|
@@ -4977,13 +5018,13 @@ const va = /* @__PURE__ */ N(ma, [["render", ya]]), ba = {
|
|
|
4977
5018
|
builderComponents: !0,
|
|
4978
5019
|
builderLinkComponent: !0
|
|
4979
5020
|
}
|
|
4980
|
-
},
|
|
5021
|
+
}, Ta = {
|
|
4981
5022
|
name: "Fragment",
|
|
4982
5023
|
static: !0,
|
|
4983
5024
|
hidden: !0,
|
|
4984
5025
|
canHaveChildren: !0,
|
|
4985
5026
|
noWrap: !0
|
|
4986
|
-
}, Ln = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"],
|
|
5027
|
+
}, Ln = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], Ia = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], xa = {
|
|
4987
5028
|
name: "Image",
|
|
4988
5029
|
static: !0,
|
|
4989
5030
|
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",
|
|
@@ -5091,7 +5132,7 @@ const va = /* @__PURE__ */ N(ma, [["render", ya]]), ba = {
|
|
|
5091
5132
|
shouldReceiveBuilderProps: {
|
|
5092
5133
|
builderBlock: !0
|
|
5093
5134
|
}
|
|
5094
|
-
},
|
|
5135
|
+
}, Ra = {
|
|
5095
5136
|
name: "Core:Section",
|
|
5096
5137
|
static: !0,
|
|
5097
5138
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -5130,7 +5171,7 @@ const va = /* @__PURE__ */ N(ma, [["render", ya]]), ba = {
|
|
|
5130
5171
|
}
|
|
5131
5172
|
}
|
|
5132
5173
|
}]
|
|
5133
|
-
},
|
|
5174
|
+
}, Aa = {
|
|
5134
5175
|
name: "Slot",
|
|
5135
5176
|
isRSC: !0,
|
|
5136
5177
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -5147,14 +5188,14 @@ const va = /* @__PURE__ */ N(ma, [["render", ya]]), ba = {
|
|
|
5147
5188
|
builderContext: !0,
|
|
5148
5189
|
builderComponents: !0
|
|
5149
5190
|
}
|
|
5150
|
-
},
|
|
5191
|
+
}, $a = B({
|
|
5151
5192
|
name: "builder-slot",
|
|
5152
5193
|
components: { Blocks: _e },
|
|
5153
5194
|
props: ["builderContext", "name", "builderComponents"]
|
|
5154
5195
|
});
|
|
5155
|
-
function
|
|
5196
|
+
function Pa(e, t, n, r, o, i) {
|
|
5156
5197
|
var u, p, m;
|
|
5157
|
-
const s =
|
|
5198
|
+
const s = U("Blocks");
|
|
5158
5199
|
return g(), T("div", G(
|
|
5159
5200
|
{ style: {
|
|
5160
5201
|
pointerEvents: "auto"
|
|
@@ -5172,7 +5213,7 @@ function xa(e, t, n, r, o, i) {
|
|
|
5172
5213
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
5173
5214
|
], 16);
|
|
5174
5215
|
}
|
|
5175
|
-
const
|
|
5216
|
+
const Oa = /* @__PURE__ */ N($a, [["render", Pa]]), Ba = {
|
|
5176
5217
|
name: "Symbol",
|
|
5177
5218
|
noWrap: !0,
|
|
5178
5219
|
static: !0,
|
|
@@ -5249,7 +5290,7 @@ const Ra = /* @__PURE__ */ N(Ia, [["render", xa]]), Aa = {
|
|
|
5249
5290
|
text: "New tab content "
|
|
5250
5291
|
}
|
|
5251
5292
|
}
|
|
5252
|
-
},
|
|
5293
|
+
}, ja = {
|
|
5253
5294
|
name: "Builder: Tabs",
|
|
5254
5295
|
inputs: [{
|
|
5255
5296
|
name: "tabs",
|
|
@@ -5352,7 +5393,7 @@ const Ra = /* @__PURE__ */ N(Ia, [["render", xa]]), Aa = {
|
|
|
5352
5393
|
builderComponents: !0,
|
|
5353
5394
|
builderLinkComponent: !0
|
|
5354
5395
|
}
|
|
5355
|
-
},
|
|
5396
|
+
}, Na = B({
|
|
5356
5397
|
name: "builder-tabs",
|
|
5357
5398
|
components: { Blocks: _e },
|
|
5358
5399
|
props: [
|
|
@@ -5377,13 +5418,13 @@ const Ra = /* @__PURE__ */ N(Ia, [["render", xa]]), Aa = {
|
|
|
5377
5418
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
5378
5419
|
}
|
|
5379
5420
|
}
|
|
5380
|
-
}),
|
|
5381
|
-
function
|
|
5382
|
-
const s =
|
|
5421
|
+
}), Da = ["onClick"], Va = { key: 0 };
|
|
5422
|
+
function Ua(e, t, n, r, o, i) {
|
|
5423
|
+
const s = U("Blocks");
|
|
5383
5424
|
return g(), T("div", null, [
|
|
5384
5425
|
ft("div", {
|
|
5385
5426
|
class: "builder-tabs-wrap",
|
|
5386
|
-
style:
|
|
5427
|
+
style: Pe({
|
|
5387
5428
|
display: "flex",
|
|
5388
5429
|
flexDirection: "row",
|
|
5389
5430
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
@@ -5393,10 +5434,10 @@ function Ba(e, t, n, r, o, i) {
|
|
|
5393
5434
|
(g(!0), T(_, null, he(e.tabs, (u, p) => (g(), T("span", {
|
|
5394
5435
|
key: p,
|
|
5395
5436
|
class: ht(`builder-tab-wrap ${e.activeTab === p ? "builder-tab-active" : ""}`),
|
|
5396
|
-
style:
|
|
5437
|
+
style: Pe({
|
|
5397
5438
|
...e.activeTab === p ? e.activeTabStyle : {}
|
|
5398
5439
|
}),
|
|
5399
|
-
onClick: (m) => e.onClick(p)
|
|
5440
|
+
onClick: async (m) => e.onClick(p)
|
|
5400
5441
|
}, [
|
|
5401
5442
|
se(s, {
|
|
5402
5443
|
parent: e.builderBlock.id,
|
|
@@ -5406,9 +5447,9 @@ function Ba(e, t, n, r, o, i) {
|
|
|
5406
5447
|
registeredComponents: e.builderComponents,
|
|
5407
5448
|
linkComponent: e.builderLinkComponent
|
|
5408
5449
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
5409
|
-
], 14,
|
|
5450
|
+
], 14, Da))), 128))
|
|
5410
5451
|
], 4),
|
|
5411
|
-
e.activeTabContent(e.activeTab) ? (g(), T("div",
|
|
5452
|
+
e.activeTabContent(e.activeTab) ? (g(), T("div", Va, [
|
|
5412
5453
|
se(s, {
|
|
5413
5454
|
parent: e.builderBlock.id,
|
|
5414
5455
|
path: `tabs.${e.activeTab}.content`,
|
|
@@ -5420,7 +5461,7 @@ function Ba(e, t, n, r, o, i) {
|
|
|
5420
5461
|
])) : L("", !0)
|
|
5421
5462
|
]);
|
|
5422
5463
|
}
|
|
5423
|
-
const
|
|
5464
|
+
const Fa = /* @__PURE__ */ N(Na, [["render", Ua]]), Wa = {
|
|
5424
5465
|
shouldReceiveBuilderProps: {
|
|
5425
5466
|
builderBlock: !1,
|
|
5426
5467
|
builderContext: !0
|
|
@@ -5442,41 +5483,21 @@ const Na = /* @__PURE__ */ N(Pa, [["render", Ba]]), Va = {
|
|
|
5442
5483
|
height: "auto",
|
|
5443
5484
|
textAlign: "center"
|
|
5444
5485
|
}
|
|
5445
|
-
},
|
|
5486
|
+
}, La = B({
|
|
5446
5487
|
name: "builder-text",
|
|
5447
|
-
props: ["
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
const e = this.builderContext, {
|
|
5452
|
-
context: t,
|
|
5453
|
-
localState: n,
|
|
5454
|
-
rootState: r,
|
|
5455
|
-
rootSetState: o
|
|
5456
|
-
} = e;
|
|
5457
|
-
return String(((i = this.text) == null ? void 0 : i.toString()) || "").replace(
|
|
5458
|
-
/{{([^}]+)}}/g,
|
|
5459
|
-
(s, u) => kt({
|
|
5460
|
-
code: u,
|
|
5461
|
-
context: t,
|
|
5462
|
-
localState: n,
|
|
5463
|
-
rootState: r,
|
|
5464
|
-
rootSetState: o
|
|
5465
|
-
})
|
|
5466
|
-
);
|
|
5467
|
-
}
|
|
5468
|
-
}
|
|
5469
|
-
}), Fa = ["innerHTML"];
|
|
5470
|
-
function Ua(e, t, n, r, o, i) {
|
|
5488
|
+
props: ["text"]
|
|
5489
|
+
}), Ma = ["innerHTML"];
|
|
5490
|
+
function Ha(e, t, n, r, o, i) {
|
|
5491
|
+
var s;
|
|
5471
5492
|
return g(), T("div", {
|
|
5472
5493
|
class: "builder-text",
|
|
5473
|
-
innerHTML: e.
|
|
5494
|
+
innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
|
|
5474
5495
|
style: {
|
|
5475
5496
|
outline: "none"
|
|
5476
5497
|
}
|
|
5477
|
-
}, null, 8,
|
|
5498
|
+
}, null, 8, Ma);
|
|
5478
5499
|
}
|
|
5479
|
-
const
|
|
5500
|
+
const Ka = /* @__PURE__ */ N(La, [["render", Ha]]), za = {
|
|
5480
5501
|
name: "Custom Code",
|
|
5481
5502
|
static: !0,
|
|
5482
5503
|
requiredPermissions: ["editCode"],
|
|
@@ -5498,7 +5519,7 @@ const Wa = /* @__PURE__ */ N(Da, [["render", Ua]]), La = {
|
|
|
5498
5519
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
5499
5520
|
advanced: !0
|
|
5500
5521
|
}]
|
|
5501
|
-
},
|
|
5522
|
+
}, Ga = B({
|
|
5502
5523
|
name: "builder-custom-code",
|
|
5503
5524
|
props: ["replaceNodes", "code"],
|
|
5504
5525
|
data() {
|
|
@@ -5532,15 +5553,15 @@ const Wa = /* @__PURE__ */ N(Da, [["render", Ua]]), La = {
|
|
|
5532
5553
|
}
|
|
5533
5554
|
}
|
|
5534
5555
|
}
|
|
5535
|
-
}),
|
|
5536
|
-
function
|
|
5556
|
+
}), qa = ["innerHTML"];
|
|
5557
|
+
function _a(e, t, n, r, o, i) {
|
|
5537
5558
|
return g(), T("div", {
|
|
5538
5559
|
ref: "elementRef",
|
|
5539
5560
|
class: ht("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
5540
5561
|
innerHTML: e.code
|
|
5541
|
-
}, null, 10,
|
|
5562
|
+
}, null, 10, qa);
|
|
5542
5563
|
}
|
|
5543
|
-
const
|
|
5564
|
+
const Ja = /* @__PURE__ */ N(Ga, [["render", _a]]), Xa = {
|
|
5544
5565
|
name: "Embed",
|
|
5545
5566
|
static: !0,
|
|
5546
5567
|
inputs: [{
|
|
@@ -5555,7 +5576,7 @@ const za = /* @__PURE__ */ N(Ma, [["render", Ka]]), Ga = {
|
|
|
5555
5576
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
5556
5577
|
hideFromUI: !0
|
|
5557
5578
|
}]
|
|
5558
|
-
},
|
|
5579
|
+
}, Ya = ["text/javascript", "application/javascript", "application/ecmascript"], Za = (e) => Ya.includes(e.type), Qa = B({
|
|
5559
5580
|
name: "builder-embed",
|
|
5560
5581
|
props: ["content"],
|
|
5561
5582
|
data() {
|
|
@@ -5588,7 +5609,7 @@ const za = /* @__PURE__ */ N(Ma, [["render", Ka]]), Ga = {
|
|
|
5588
5609
|
this.scriptsInserted.push(n.src);
|
|
5589
5610
|
const r = document.createElement("script");
|
|
5590
5611
|
r.async = !0, r.src = n.src, document.head.appendChild(r);
|
|
5591
|
-
} else if (
|
|
5612
|
+
} else if (Za(n) && !this.scriptsRun.includes(n.innerText))
|
|
5592
5613
|
try {
|
|
5593
5614
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
5594
5615
|
} catch (r) {
|
|
@@ -5597,15 +5618,15 @@ const za = /* @__PURE__ */ N(Ma, [["render", Ka]]), Ga = {
|
|
|
5597
5618
|
}
|
|
5598
5619
|
}
|
|
5599
5620
|
}
|
|
5600
|
-
}),
|
|
5601
|
-
function
|
|
5621
|
+
}), el = ["innerHTML"];
|
|
5622
|
+
function tl(e, t, n, r, o, i) {
|
|
5602
5623
|
return g(), T("div", {
|
|
5603
5624
|
class: "builder-embed",
|
|
5604
5625
|
ref: "elem",
|
|
5605
5626
|
innerHTML: e.content
|
|
5606
|
-
}, null, 8,
|
|
5627
|
+
}, null, 8, el);
|
|
5607
5628
|
}
|
|
5608
|
-
const
|
|
5629
|
+
const nl = /* @__PURE__ */ N(Qa, [["render", tl]]), rl = {
|
|
5609
5630
|
name: "Form:Form",
|
|
5610
5631
|
// editableTags: ['builder-form-error']
|
|
5611
5632
|
defaults: {
|
|
@@ -5842,12 +5863,12 @@ const Za = /* @__PURE__ */ N(Ja, [["render", Ya]]), Qa = {
|
|
|
5842
5863
|
builderComponents: !0,
|
|
5843
5864
|
builderLinkComponent: !0
|
|
5844
5865
|
}
|
|
5845
|
-
},
|
|
5866
|
+
}, ol = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], il = () => {
|
|
5846
5867
|
const e = process.env.NODE_ENV || "production";
|
|
5847
|
-
return
|
|
5848
|
-
},
|
|
5868
|
+
return ol.includes(e) ? e : "production";
|
|
5869
|
+
}, sl = B({
|
|
5849
5870
|
name: "builder-form-component",
|
|
5850
|
-
components: { Block:
|
|
5871
|
+
components: { Block: Fn, Blocks: _e },
|
|
5851
5872
|
props: [
|
|
5852
5873
|
"builderContext",
|
|
5853
5874
|
"previewState",
|
|
@@ -5906,12 +5927,12 @@ const Za = /* @__PURE__ */ N(Ja, [["render", Ya]]), Qa = {
|
|
|
5906
5927
|
let i;
|
|
5907
5928
|
const s = new FormData(r), u = Array.from(r.querySelectorAll("input,select,textarea")).filter((y) => !!y.name).map((y) => {
|
|
5908
5929
|
let I;
|
|
5909
|
-
const
|
|
5930
|
+
const D = y.name;
|
|
5910
5931
|
if (y instanceof HTMLInputElement)
|
|
5911
5932
|
if (y.type === "radio") {
|
|
5912
5933
|
if (y.checked)
|
|
5913
5934
|
return I = y.name, {
|
|
5914
|
-
key:
|
|
5935
|
+
key: D,
|
|
5915
5936
|
value: I
|
|
5916
5937
|
};
|
|
5917
5938
|
} else if (y.type === "checkbox")
|
|
@@ -5924,7 +5945,7 @@ const Za = /* @__PURE__ */ N(Ja, [["render", Ya]]), Qa = {
|
|
|
5924
5945
|
else
|
|
5925
5946
|
I = y.value;
|
|
5926
5947
|
return {
|
|
5927
|
-
key:
|
|
5948
|
+
key: D,
|
|
5928
5949
|
value: I
|
|
5929
5950
|
};
|
|
5930
5951
|
});
|
|
@@ -5935,8 +5956,8 @@ const Za = /* @__PURE__ */ N(Ja, [["render", Ya]]), Qa = {
|
|
|
5935
5956
|
i = s;
|
|
5936
5957
|
else {
|
|
5937
5958
|
const y = {};
|
|
5938
|
-
Array.from(u).forEach(({ value: I, key:
|
|
5939
|
-
qr(y,
|
|
5959
|
+
Array.from(u).forEach(({ value: I, key: D }) => {
|
|
5960
|
+
qr(y, D, I);
|
|
5940
5961
|
}), i = JSON.stringify(y);
|
|
5941
5962
|
}
|
|
5942
5963
|
p && p !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (o["content-type"] = p));
|
|
@@ -5948,19 +5969,19 @@ const Za = /* @__PURE__ */ N(Ja, [["render", Ya]]), Qa = {
|
|
|
5948
5969
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(m), m.defaultPrevented))
|
|
5949
5970
|
return;
|
|
5950
5971
|
this.formState = "sending";
|
|
5951
|
-
const b = `${
|
|
5972
|
+
const b = `${il() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
5952
5973
|
this.sendSubmissionsToEmail || ""
|
|
5953
5974
|
)}&name=${encodeURIComponent(this.name || "")}`, v = this.sendSubmissionsTo === "email" ? b : this.action;
|
|
5954
|
-
|
|
5975
|
+
jn(v), fetch(v, {
|
|
5955
5976
|
body: i,
|
|
5956
5977
|
headers: o,
|
|
5957
5978
|
method: this.method || "post"
|
|
5958
5979
|
}).then(
|
|
5959
5980
|
async (y) => {
|
|
5960
5981
|
let I;
|
|
5961
|
-
const
|
|
5962
|
-
if (
|
|
5963
|
-
let O =
|
|
5982
|
+
const D = y.headers.get("content-type");
|
|
5983
|
+
if (D && D.indexOf("application/json") !== -1 ? I = await y.json() : I = await y.text(), !y.ok && this.errorMessagePath) {
|
|
5984
|
+
let O = Dr(I, this.errorMessagePath);
|
|
5964
5985
|
O && (typeof O != "string" && (O = JSON.stringify(O)), this.formErrorMessage = O, this.mergeNewRootState({
|
|
5965
5986
|
formErrorMessage: O
|
|
5966
5987
|
}));
|
|
@@ -6001,50 +6022,50 @@ const Za = /* @__PURE__ */ N(Ja, [["render", Ya]]), Qa = {
|
|
|
6001
6022
|
}
|
|
6002
6023
|
}
|
|
6003
6024
|
}
|
|
6004
|
-
}),
|
|
6025
|
+
}), al = ["validate", "action", "method", "name"], ll = {
|
|
6005
6026
|
key: 3,
|
|
6006
6027
|
class: "builder-form-error-text pre-3q96myty4lk"
|
|
6007
6028
|
};
|
|
6008
|
-
function
|
|
6029
|
+
function ul(e, t, n, r, o, i) {
|
|
6009
6030
|
var p;
|
|
6010
|
-
const s =
|
|
6031
|
+
const s = U("Block"), u = U("Blocks");
|
|
6011
6032
|
return g(), T("form", G({
|
|
6012
6033
|
validate: e.validate,
|
|
6013
6034
|
ref: "formRef",
|
|
6014
6035
|
action: !e.sendWithJs && e.action,
|
|
6015
6036
|
method: e.method,
|
|
6016
6037
|
name: e.name,
|
|
6017
|
-
onSubmit: t[0] || (t[0] = (m) => e.onSubmit(m))
|
|
6038
|
+
onSubmit: t[0] || (t[0] = async (m) => e.onSubmit(m))
|
|
6018
6039
|
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
6019
|
-
e.builderBlock && e.builderBlock.children ? (g(!0), T(_, { key: 0 }, he((p = e.builderBlock) == null ? void 0 : p.children, (m, b) => (g(),
|
|
6020
|
-
key: `form-block-${
|
|
6040
|
+
e.builderBlock && e.builderBlock.children ? (g(!0), T(_, { key: 0 }, he((p = e.builderBlock) == null ? void 0 : p.children, (m, b) => (g(), V(s, {
|
|
6041
|
+
key: `form-block-${b}`,
|
|
6021
6042
|
block: m,
|
|
6022
6043
|
context: e.builderContext,
|
|
6023
6044
|
registeredComponents: e.builderComponents,
|
|
6024
6045
|
linkComponent: e.builderLinkComponent
|
|
6025
6046
|
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : L("", !0),
|
|
6026
|
-
e.submissionState() === "error" ? (g(),
|
|
6047
|
+
e.submissionState() === "error" ? (g(), V(u, {
|
|
6027
6048
|
key: 1,
|
|
6028
6049
|
path: "errorMessage",
|
|
6029
6050
|
blocks: e.errorMessage,
|
|
6030
6051
|
context: e.builderContext
|
|
6031
6052
|
}, null, 8, ["blocks", "context"])) : L("", !0),
|
|
6032
|
-
e.submissionState() === "sending" ? (g(),
|
|
6053
|
+
e.submissionState() === "sending" ? (g(), V(u, {
|
|
6033
6054
|
key: 2,
|
|
6034
6055
|
path: "sendingMessage",
|
|
6035
6056
|
blocks: e.sendingMessage,
|
|
6036
6057
|
context: e.builderContext
|
|
6037
6058
|
}, null, 8, ["blocks", "context"])) : L("", !0),
|
|
6038
|
-
e.submissionState() === "error" && e.responseData ? (g(), T("pre",
|
|
6039
|
-
e.submissionState() === "success" ? (g(),
|
|
6059
|
+
e.submissionState() === "error" && e.responseData ? (g(), T("pre", ll, Nt(JSON.stringify(e.responseData, null, 2)), 1)) : L("", !0),
|
|
6060
|
+
e.submissionState() === "success" ? (g(), V(u, {
|
|
6040
6061
|
key: 4,
|
|
6041
6062
|
path: "successMessage",
|
|
6042
6063
|
blocks: e.successMessage,
|
|
6043
6064
|
context: e.builderContext
|
|
6044
6065
|
}, null, 8, ["blocks", "context"])) : L("", !0)
|
|
6045
|
-
], 16,
|
|
6066
|
+
], 16, al);
|
|
6046
6067
|
}
|
|
6047
|
-
const
|
|
6068
|
+
const cl = /* @__PURE__ */ N(sl, [["render", ul], ["__scopeId", "data-v-92491cd4"]]), pl = {
|
|
6048
6069
|
name: "Form:Input",
|
|
6049
6070
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
6050
6071
|
inputs: [
|
|
@@ -6095,7 +6116,7 @@ const sl = /* @__PURE__ */ N(nl, [["render", il], ["__scopeId", "data-v-cd94d6c1
|
|
|
6095
6116
|
borderStyle: "solid",
|
|
6096
6117
|
borderColor: "#ccc"
|
|
6097
6118
|
}
|
|
6098
|
-
},
|
|
6119
|
+
}, dl = B({
|
|
6099
6120
|
name: "builder-form-input-component",
|
|
6100
6121
|
props: [
|
|
6101
6122
|
"attributes",
|
|
@@ -6109,8 +6130,8 @@ const sl = /* @__PURE__ */ N(nl, [["render", il], ["__scopeId", "data-v-cd94d6c1
|
|
|
6109
6130
|
data() {
|
|
6110
6131
|
return { isEditing: ie, filterAttrs: me };
|
|
6111
6132
|
}
|
|
6112
|
-
}),
|
|
6113
|
-
function
|
|
6133
|
+
}), fl = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
6134
|
+
function hl(e, t, n, r, o, i) {
|
|
6114
6135
|
return g(), T("input", G({
|
|
6115
6136
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
6116
6137
|
placeholder: e.placeholder,
|
|
@@ -6119,9 +6140,9 @@ function cl(e, t, n, r, o, i) {
|
|
|
6119
6140
|
value: e.value,
|
|
6120
6141
|
defaultValue: e.defaultValue,
|
|
6121
6142
|
required: e.required
|
|
6122
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
6143
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, fl);
|
|
6123
6144
|
}
|
|
6124
|
-
const
|
|
6145
|
+
const ml = /* @__PURE__ */ N(dl, [["render", hl]]), gl = {
|
|
6125
6146
|
name: "Form:Select",
|
|
6126
6147
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
6127
6148
|
defaultStyles: {
|
|
@@ -6163,14 +6184,14 @@ const pl = /* @__PURE__ */ N(ll, [["render", cl]]), dl = {
|
|
|
6163
6184
|
}],
|
|
6164
6185
|
static: !0,
|
|
6165
6186
|
noWrap: !0
|
|
6166
|
-
},
|
|
6187
|
+
}, yl = B({
|
|
6167
6188
|
name: "builder-select-component",
|
|
6168
6189
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
6169
6190
|
data() {
|
|
6170
6191
|
return { isEditing: ie, filterAttrs: me };
|
|
6171
6192
|
}
|
|
6172
|
-
}),
|
|
6173
|
-
function
|
|
6193
|
+
}), vl = ["value", "defaultValue", "name", "required"], bl = ["value"];
|
|
6194
|
+
function kl(e, t, n, r, o, i) {
|
|
6174
6195
|
return g(), T("select", G({
|
|
6175
6196
|
value: e.value,
|
|
6176
6197
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
@@ -6181,10 +6202,10 @@ function gl(e, t, n, r, o, i) {
|
|
|
6181
6202
|
(g(!0), T(_, null, he(e.options, (s, u) => (g(), T("option", {
|
|
6182
6203
|
key: `${s.name}-${u}`,
|
|
6183
6204
|
value: s.value
|
|
6184
|
-
}, Nt(s.name || s.value), 9,
|
|
6185
|
-
], 16,
|
|
6205
|
+
}, Nt(s.name || s.value), 9, bl))), 128))
|
|
6206
|
+
], 16, vl);
|
|
6186
6207
|
}
|
|
6187
|
-
const
|
|
6208
|
+
const Sl = /* @__PURE__ */ N(yl, [["render", kl]]), Cl = {
|
|
6188
6209
|
name: "Form:SubmitButton",
|
|
6189
6210
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
6190
6211
|
defaultStyles: {
|
|
@@ -6209,17 +6230,17 @@ const yl = /* @__PURE__ */ N(fl, [["render", gl]]), vl = {
|
|
|
6209
6230
|
// that only shows if advanced setting is flipped
|
|
6210
6231
|
// TODO: defaultChildren
|
|
6211
6232
|
// canHaveChildren: true,
|
|
6212
|
-
},
|
|
6233
|
+
}, wl = B({
|
|
6213
6234
|
name: "builder-submit-button",
|
|
6214
6235
|
props: ["attributes", "text"],
|
|
6215
6236
|
data() {
|
|
6216
6237
|
return { filterAttrs: me };
|
|
6217
6238
|
}
|
|
6218
6239
|
});
|
|
6219
|
-
function
|
|
6240
|
+
function El(e, t, n, r, o, i) {
|
|
6220
6241
|
return g(), T("button", G({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), Nt(e.text), 17);
|
|
6221
6242
|
}
|
|
6222
|
-
const
|
|
6243
|
+
const Tl = /* @__PURE__ */ N(wl, [["render", El]]), Il = {
|
|
6223
6244
|
name: "Form:TextArea",
|
|
6224
6245
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
6225
6246
|
inputs: [{
|
|
@@ -6255,7 +6276,7 @@ const Sl = /* @__PURE__ */ N(bl, [["render", kl]]), Cl = {
|
|
|
6255
6276
|
},
|
|
6256
6277
|
static: !0,
|
|
6257
6278
|
noWrap: !0
|
|
6258
|
-
},
|
|
6279
|
+
}, xl = B({
|
|
6259
6280
|
name: "builder-textarea",
|
|
6260
6281
|
props: [
|
|
6261
6282
|
"attributes",
|
|
@@ -6268,17 +6289,17 @@ const Sl = /* @__PURE__ */ N(bl, [["render", kl]]), Cl = {
|
|
|
6268
6289
|
data() {
|
|
6269
6290
|
return { filterAttrs: me };
|
|
6270
6291
|
}
|
|
6271
|
-
}),
|
|
6272
|
-
function
|
|
6292
|
+
}), Rl = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
6293
|
+
function Al(e, t, n, r, o, i) {
|
|
6273
6294
|
return g(), T("textarea", G({
|
|
6274
6295
|
placeholder: e.placeholder,
|
|
6275
6296
|
name: e.name,
|
|
6276
6297
|
value: e.value,
|
|
6277
6298
|
defaultValue: e.defaultValue,
|
|
6278
6299
|
required: e.required
|
|
6279
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
6300
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Rl);
|
|
6280
6301
|
}
|
|
6281
|
-
const
|
|
6302
|
+
const $l = /* @__PURE__ */ N(xl, [["render", Al]]), Pl = {
|
|
6282
6303
|
// friendlyName?
|
|
6283
6304
|
name: "Raw:Img",
|
|
6284
6305
|
hideFromInsertMenu: !0,
|
|
@@ -6292,7 +6313,7 @@ const Il = /* @__PURE__ */ N(wl, [["render", Tl]]), xl = {
|
|
|
6292
6313
|
}],
|
|
6293
6314
|
noWrap: !0,
|
|
6294
6315
|
static: !0
|
|
6295
|
-
},
|
|
6316
|
+
}, Ol = B({
|
|
6296
6317
|
name: "builder-img-component",
|
|
6297
6318
|
props: [
|
|
6298
6319
|
"backgroundSize",
|
|
@@ -6305,8 +6326,8 @@ const Il = /* @__PURE__ */ N(wl, [["render", Tl]]), xl = {
|
|
|
6305
6326
|
data() {
|
|
6306
6327
|
return { isEditing: ie, filterAttrs: me };
|
|
6307
6328
|
}
|
|
6308
|
-
}),
|
|
6309
|
-
function
|
|
6329
|
+
}), Bl = ["alt", "src"];
|
|
6330
|
+
function jl(e, t, n, r, o, i) {
|
|
6310
6331
|
return g(), T("img", G({
|
|
6311
6332
|
style: {
|
|
6312
6333
|
objectFit: e.backgroundSize || "cover",
|
|
@@ -6315,9 +6336,9 @@ function $l(e, t, n, r, o, i) {
|
|
|
6315
6336
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
6316
6337
|
alt: e.altText,
|
|
6317
6338
|
src: e.imgSrc || e.image
|
|
6318
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16,
|
|
6339
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Bl);
|
|
6319
6340
|
}
|
|
6320
|
-
const
|
|
6341
|
+
const Nl = /* @__PURE__ */ N(Ol, [["render", jl]]), Dl = {
|
|
6321
6342
|
name: "Video",
|
|
6322
6343
|
canHaveChildren: !0,
|
|
6323
6344
|
defaultStyles: {
|
|
@@ -6328,7 +6349,7 @@ const Pl = /* @__PURE__ */ N(Rl, [["render", $l]]), Ol = {
|
|
|
6328
6349
|
inputs: [{
|
|
6329
6350
|
name: "video",
|
|
6330
6351
|
type: "file",
|
|
6331
|
-
allowedFileTypes:
|
|
6352
|
+
allowedFileTypes: Ia,
|
|
6332
6353
|
bubble: !0,
|
|
6333
6354
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
6334
6355
|
required: !0
|
|
@@ -6401,7 +6422,7 @@ const Pl = /* @__PURE__ */ N(Rl, [["render", $l]]), Ol = {
|
|
|
6401
6422
|
shouldReceiveBuilderProps: {
|
|
6402
6423
|
builderBlock: !0
|
|
6403
6424
|
}
|
|
6404
|
-
},
|
|
6425
|
+
}, Vl = B({
|
|
6405
6426
|
name: "builder-video",
|
|
6406
6427
|
props: [
|
|
6407
6428
|
"autoPlay",
|
|
@@ -6446,16 +6467,16 @@ const Pl = /* @__PURE__ */ N(Rl, [["render", $l]]), Ol = {
|
|
|
6446
6467
|
};
|
|
6447
6468
|
}
|
|
6448
6469
|
}
|
|
6449
|
-
}),
|
|
6470
|
+
}), Ul = { style: {
|
|
6450
6471
|
position: "relative"
|
|
6451
|
-
} },
|
|
6472
|
+
} }, Fl = ["preload", "src", "poster"], Wl = ["src"], Ll = {
|
|
6452
6473
|
key: 1,
|
|
6453
6474
|
style: {
|
|
6454
6475
|
display: "flex",
|
|
6455
6476
|
flexDirection: "column",
|
|
6456
6477
|
alignItems: "stretch"
|
|
6457
6478
|
}
|
|
6458
|
-
},
|
|
6479
|
+
}, Ml = {
|
|
6459
6480
|
key: 2,
|
|
6460
6481
|
style: {
|
|
6461
6482
|
pointerEvents: "none",
|
|
@@ -6469,9 +6490,9 @@ const Pl = /* @__PURE__ */ N(Rl, [["render", $l]]), Ol = {
|
|
|
6469
6490
|
height: "100%"
|
|
6470
6491
|
}
|
|
6471
6492
|
};
|
|
6472
|
-
function
|
|
6493
|
+
function Hl(e, t, n, r, o, i) {
|
|
6473
6494
|
var s, u, p, m, b, v, y;
|
|
6474
|
-
return g(), T("div",
|
|
6495
|
+
return g(), T("div", Ul, [
|
|
6475
6496
|
ft("video", G({
|
|
6476
6497
|
class: "builder-video",
|
|
6477
6498
|
preload: e.preload || "metadata",
|
|
@@ -6496,83 +6517,83 @@ function Ul(e, t, n, r, o, i) {
|
|
|
6496
6517
|
key: 0,
|
|
6497
6518
|
type: "video/mp4",
|
|
6498
6519
|
src: e.video
|
|
6499
|
-
}, null, 8,
|
|
6500
|
-
], 16,
|
|
6520
|
+
}, null, 8, Wl))
|
|
6521
|
+
], 16, Fl),
|
|
6501
6522
|
e.aspectRatio && !(e.fitContent && ((p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length)) ? (g(), T("div", {
|
|
6502
6523
|
key: 0,
|
|
6503
|
-
style:
|
|
6524
|
+
style: Pe({
|
|
6504
6525
|
width: "100%",
|
|
6505
6526
|
paddingTop: e.aspectRatio * 100 + "%",
|
|
6506
6527
|
pointerEvents: "none",
|
|
6507
6528
|
fontSize: "0px"
|
|
6508
6529
|
})
|
|
6509
6530
|
}, null, 4)) : L("", !0),
|
|
6510
|
-
(b = (m = e.builderBlock) == null ? void 0 : m.children) != null && b.length && e.fitContent ? (g(), T("div",
|
|
6531
|
+
(b = (m = e.builderBlock) == null ? void 0 : m.children) != null && b.length && e.fitContent ? (g(), T("div", Ll, [
|
|
6511
6532
|
de(e.$slots, "default")
|
|
6512
6533
|
])) : L("", !0),
|
|
6513
|
-
(y = (v = e.builderBlock) == null ? void 0 : v.children) != null && y.length && !e.fitContent ? (g(), T("div",
|
|
6534
|
+
(y = (v = e.builderBlock) == null ? void 0 : v.children) != null && y.length && !e.fitContent ? (g(), T("div", Ml, [
|
|
6514
6535
|
de(e.$slots, "default")
|
|
6515
6536
|
])) : L("", !0)
|
|
6516
6537
|
]);
|
|
6517
6538
|
}
|
|
6518
|
-
const
|
|
6519
|
-
component:
|
|
6520
|
-
...
|
|
6539
|
+
const Kl = /* @__PURE__ */ N(Vl, [["render", Hl]]), zl = () => [{
|
|
6540
|
+
component: Ja,
|
|
6541
|
+
...za
|
|
6521
6542
|
}, {
|
|
6522
|
-
component:
|
|
6523
|
-
...
|
|
6543
|
+
component: nl,
|
|
6544
|
+
...Xa
|
|
6524
6545
|
}, {
|
|
6525
|
-
component:
|
|
6526
|
-
...
|
|
6546
|
+
component: cl,
|
|
6547
|
+
...rl
|
|
6527
6548
|
}, {
|
|
6528
|
-
component:
|
|
6529
|
-
...
|
|
6549
|
+
component: ml,
|
|
6550
|
+
...pl
|
|
6530
6551
|
}, {
|
|
6531
|
-
component:
|
|
6532
|
-
...
|
|
6552
|
+
component: Tl,
|
|
6553
|
+
...Cl
|
|
6533
6554
|
}, {
|
|
6534
|
-
component:
|
|
6535
|
-
...
|
|
6555
|
+
component: Sl,
|
|
6556
|
+
...gl
|
|
6536
6557
|
}, {
|
|
6537
|
-
component:
|
|
6538
|
-
...
|
|
6558
|
+
component: $l,
|
|
6559
|
+
...Il
|
|
6539
6560
|
}, {
|
|
6540
|
-
component:
|
|
6541
|
-
...
|
|
6561
|
+
component: Nl,
|
|
6562
|
+
...Pl
|
|
6542
6563
|
}, {
|
|
6543
|
-
component:
|
|
6544
|
-
...
|
|
6564
|
+
component: Kl,
|
|
6565
|
+
...Dl
|
|
6545
6566
|
}], Pr = () => [{
|
|
6546
6567
|
component: _o,
|
|
6547
|
-
...ba
|
|
6548
|
-
}, {
|
|
6549
|
-
component: Zs,
|
|
6550
|
-
...ka
|
|
6551
|
-
}, {
|
|
6552
|
-
component: ta,
|
|
6553
|
-
...Sa
|
|
6554
|
-
}, {
|
|
6555
|
-
component: ua,
|
|
6556
6568
|
...wa
|
|
6557
6569
|
}, {
|
|
6558
|
-
component:
|
|
6570
|
+
component: na,
|
|
6559
6571
|
...Ea
|
|
6560
6572
|
}, {
|
|
6561
|
-
component:
|
|
6573
|
+
component: ia,
|
|
6562
6574
|
...Ta
|
|
6563
6575
|
}, {
|
|
6564
|
-
component:
|
|
6576
|
+
component: fa,
|
|
6577
|
+
...xa
|
|
6578
|
+
}, {
|
|
6579
|
+
component: ga,
|
|
6580
|
+
...Ra
|
|
6581
|
+
}, {
|
|
6582
|
+
component: Oa,
|
|
6565
6583
|
...Aa
|
|
6566
6584
|
}, {
|
|
6567
|
-
component:
|
|
6568
|
-
...
|
|
6585
|
+
component: Ru,
|
|
6586
|
+
...Ba
|
|
6587
|
+
}, {
|
|
6588
|
+
component: Ka,
|
|
6589
|
+
...Wa
|
|
6569
6590
|
}, {
|
|
6570
|
-
component:
|
|
6571
|
-
|
|
6591
|
+
component: Fa,
|
|
6592
|
+
...ja
|
|
6572
6593
|
}, {
|
|
6573
|
-
component:
|
|
6574
|
-
...
|
|
6575
|
-
}, ...
|
|
6594
|
+
component: Ca,
|
|
6595
|
+
...ya
|
|
6596
|
+
}, ...zl()], Gl = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
6576
6597
|
function getAndSetVariantId() {
|
|
6577
6598
|
function setCookie(name, value, days) {
|
|
6578
6599
|
let expires = '';
|
|
@@ -6628,7 +6649,7 @@ const Wl = /* @__PURE__ */ N(jl, [["render", Ul]]), Ll = () => [{
|
|
|
6628
6649
|
}).join('');
|
|
6629
6650
|
styleEl.innerHTML = newStyleStr;
|
|
6630
6651
|
}
|
|
6631
|
-
}`,
|
|
6652
|
+
}`, ql = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
6632
6653
|
if (!navigator.cookieEnabled) {
|
|
6633
6654
|
return;
|
|
6634
6655
|
}
|
|
@@ -6666,23 +6687,23 @@ const Wl = /* @__PURE__ */ N(jl, [["render", Ul]]), Ll = () => [{
|
|
|
6666
6687
|
...t,
|
|
6667
6688
|
testVariationId: t.id,
|
|
6668
6689
|
id: e == null ? void 0 : e.id
|
|
6669
|
-
})),
|
|
6690
|
+
})), _l = ({
|
|
6670
6691
|
canTrack: e,
|
|
6671
6692
|
content: t
|
|
6672
|
-
}) => !(!(Pt(t).length > 0) || !e),
|
|
6673
|
-
window.${ko} = ${
|
|
6674
|
-
window.${So} = ${
|
|
6675
|
-
`,
|
|
6693
|
+
}) => !(!(Pt(t).length > 0) || !e), Jl = (e) => e === "react" || e === "reactNative", Co = Jl(re), Xl = () => `
|
|
6694
|
+
window.${ko} = ${Gl}
|
|
6695
|
+
window.${So} = ${ql}
|
|
6696
|
+
`, Yl = (e, t) => `
|
|
6676
6697
|
window.${ko}(
|
|
6677
6698
|
"${t}",${JSON.stringify(e)}, ${Co}
|
|
6678
|
-
)`,
|
|
6699
|
+
)`, Zl = ({
|
|
6679
6700
|
contentId: e,
|
|
6680
6701
|
variationId: t
|
|
6681
6702
|
}) => `window.${So}(
|
|
6682
6703
|
"${t}", "${e}", ${Co}
|
|
6683
|
-
)`, wo =
|
|
6704
|
+
)`, wo = B({
|
|
6684
6705
|
render() {
|
|
6685
|
-
return
|
|
6706
|
+
return jr("script", {
|
|
6686
6707
|
innerHTML: this.scriptStr,
|
|
6687
6708
|
"data-id": this.id,
|
|
6688
6709
|
nonce: this.nonce
|
|
@@ -6694,7 +6715,7 @@ const Wl = /* @__PURE__ */ N(jl, [["render", Ul]]), Ll = () => [{
|
|
|
6694
6715
|
function Or(e) {
|
|
6695
6716
|
return Math.round(e * 1e3) / 1e3;
|
|
6696
6717
|
}
|
|
6697
|
-
const
|
|
6718
|
+
const Ql = (e, t, n = !0) => {
|
|
6698
6719
|
if (!(e instanceof HTMLElement))
|
|
6699
6720
|
return null;
|
|
6700
6721
|
let r = n ? e : e.parentElement;
|
|
@@ -6705,10 +6726,10 @@ const Jl = (e, t, n = !0) => {
|
|
|
6705
6726
|
return r;
|
|
6706
6727
|
} while (r = r.parentElement);
|
|
6707
6728
|
return null;
|
|
6708
|
-
},
|
|
6729
|
+
}, eu = (e) => Ql(e, (t) => {
|
|
6709
6730
|
const n = t.getAttribute("builder-id") || t.id;
|
|
6710
6731
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
6711
|
-
}),
|
|
6732
|
+
}), Br = ({
|
|
6712
6733
|
event: e,
|
|
6713
6734
|
target: t
|
|
6714
6735
|
}) => {
|
|
@@ -6717,23 +6738,23 @@ const Jl = (e, t, n = !0) => {
|
|
|
6717
6738
|
x: i,
|
|
6718
6739
|
y: s
|
|
6719
6740
|
};
|
|
6720
|
-
},
|
|
6721
|
-
const t = e.target, n = t &&
|
|
6741
|
+
}, tu = (e) => {
|
|
6742
|
+
const t = e.target, n = t && eu(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
6722
6743
|
return {
|
|
6723
6744
|
targetBuilderElement: r || void 0,
|
|
6724
6745
|
metadata: {
|
|
6725
|
-
targetOffset: t ?
|
|
6746
|
+
targetOffset: t ? Br({
|
|
6726
6747
|
event: e,
|
|
6727
6748
|
target: t
|
|
6728
6749
|
}) : void 0,
|
|
6729
|
-
builderTargetOffset: n ?
|
|
6750
|
+
builderTargetOffset: n ? Br({
|
|
6730
6751
|
event: e,
|
|
6731
6752
|
target: n
|
|
6732
6753
|
}) : void 0,
|
|
6733
6754
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
6734
6755
|
}
|
|
6735
6756
|
};
|
|
6736
|
-
},
|
|
6757
|
+
}, nu = ["svelte", "qwik", "vue"], ru = () => nu.includes(re) && (ie() || _r()), ou = (e) => {
|
|
6737
6758
|
var i;
|
|
6738
6759
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
6739
6760
|
let o = "";
|
|
@@ -6759,15 +6780,15 @@ font-weight: ${s};
|
|
|
6759
6780
|
`.trim());
|
|
6760
6781
|
}
|
|
6761
6782
|
return o;
|
|
6762
|
-
},
|
|
6783
|
+
}, iu = ({
|
|
6763
6784
|
customFonts: e
|
|
6764
6785
|
}) => {
|
|
6765
6786
|
var t;
|
|
6766
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
6767
|
-
},
|
|
6787
|
+
return ((t = e == null ? void 0 : e.map((n) => ou(n))) == null ? void 0 : t.join(" ")) || "";
|
|
6788
|
+
}, su = ({
|
|
6768
6789
|
cssCode: e,
|
|
6769
6790
|
contentId: t
|
|
6770
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
6791
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", au = `
|
|
6771
6792
|
.builder-button {
|
|
6772
6793
|
all: unset;
|
|
6773
6794
|
}
|
|
@@ -6784,7 +6805,7 @@ font-weight: ${s};
|
|
|
6784
6805
|
text-align: inherit;
|
|
6785
6806
|
font-family: inherit;
|
|
6786
6807
|
}
|
|
6787
|
-
`,
|
|
6808
|
+
`, lu = (e) => e ? "" : au, uu = (e) => `variant-${e}`, cu = B({
|
|
6788
6809
|
name: "enable-editor",
|
|
6789
6810
|
components: { DynamicDiv: St },
|
|
6790
6811
|
props: [
|
|
@@ -6798,10 +6819,10 @@ font-weight: ${s};
|
|
|
6798
6819
|
"trustedHosts",
|
|
6799
6820
|
"model",
|
|
6800
6821
|
"content",
|
|
6822
|
+
"context",
|
|
6801
6823
|
"data",
|
|
6802
6824
|
"showContent",
|
|
6803
6825
|
"contentWrapper",
|
|
6804
|
-
"context",
|
|
6805
6826
|
"contentWrapperProps"
|
|
6806
6827
|
],
|
|
6807
6828
|
data() {
|
|
@@ -6811,8 +6832,8 @@ font-weight: ${s};
|
|
|
6811
6832
|
httpReqsPending: {},
|
|
6812
6833
|
clicked: !1,
|
|
6813
6834
|
builderContext: fn,
|
|
6814
|
-
needsElementRefDivForEditing:
|
|
6815
|
-
getWrapperClassName:
|
|
6835
|
+
needsElementRefDivForEditing: ru,
|
|
6836
|
+
getWrapperClassName: uu
|
|
6816
6837
|
};
|
|
6817
6838
|
},
|
|
6818
6839
|
provide() {
|
|
@@ -6826,7 +6847,7 @@ font-weight: ${s};
|
|
|
6826
6847
|
},
|
|
6827
6848
|
mounted() {
|
|
6828
6849
|
var e, t;
|
|
6829
|
-
if (
|
|
6850
|
+
if (X()) {
|
|
6830
6851
|
if (ie() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
6831
6852
|
new CustomEvent("initeditingbldr")
|
|
6832
6853
|
), this.builderContextSignal.content && yt(this.canTrack)) {
|
|
@@ -6874,7 +6895,7 @@ font-weight: ${s};
|
|
|
6874
6895
|
}
|
|
6875
6896
|
},
|
|
6876
6897
|
unmounted() {
|
|
6877
|
-
|
|
6898
|
+
X() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
6878
6899
|
"builder:component:stateChangeListenerActivated",
|
|
6879
6900
|
this.emitStateUpdate
|
|
6880
6901
|
));
|
|
@@ -6967,7 +6988,7 @@ font-weight: ${s};
|
|
|
6967
6988
|
contentId: o,
|
|
6968
6989
|
apiKey: this.apiKey,
|
|
6969
6990
|
variationId: r !== o ? r : void 0,
|
|
6970
|
-
...
|
|
6991
|
+
...tu(e),
|
|
6971
6992
|
unique: !this.clicked
|
|
6972
6993
|
});
|
|
6973
6994
|
}
|
|
@@ -6992,7 +7013,7 @@ font-weight: ${s};
|
|
|
6992
7013
|
})
|
|
6993
7014
|
)
|
|
6994
7015
|
);
|
|
6995
|
-
|
|
7016
|
+
jn(i), fetch(i).then((s) => s.json()).then((s) => {
|
|
6996
7017
|
this.mergeNewRootState({
|
|
6997
7018
|
[r]: s
|
|
6998
7019
|
}), this.httpReqsData[r] = !0;
|
|
@@ -7009,7 +7030,7 @@ font-weight: ${s};
|
|
|
7009
7030
|
"builder:component:stateChange",
|
|
7010
7031
|
{
|
|
7011
7032
|
detail: {
|
|
7012
|
-
state:
|
|
7033
|
+
state: Bn(this.builderContextSignal.rootState),
|
|
7013
7034
|
ref: {
|
|
7014
7035
|
name: this.model
|
|
7015
7036
|
}
|
|
@@ -7019,7 +7040,7 @@ font-weight: ${s};
|
|
|
7019
7040
|
);
|
|
7020
7041
|
},
|
|
7021
7042
|
elementRef_onIniteditingbldr(e) {
|
|
7022
|
-
window.addEventListener("message", this.processMessage),
|
|
7043
|
+
window.addEventListener("message", this.processMessage), ss(), so({
|
|
7023
7044
|
...this.locale ? {
|
|
7024
7045
|
locale: this.locale
|
|
7025
7046
|
} : {},
|
|
@@ -7043,22 +7064,28 @@ font-weight: ${s};
|
|
|
7043
7064
|
);
|
|
7044
7065
|
},
|
|
7045
7066
|
elementRef_onInitpreviewingbldr(e) {
|
|
7067
|
+
var i;
|
|
7046
7068
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), r = t.get(
|
|
7047
7069
|
`builder.overrides.${n}`
|
|
7048
7070
|
), o = t.get("apiKey") || t.get("builder.space");
|
|
7049
|
-
n === this.model && o === this.apiKey && (!this.content || r === this.content.id) &&
|
|
7050
|
-
model: this.model,
|
|
7071
|
+
(n === "BUILDER_STUDIO" || n === this.model && o === this.apiKey && (!this.content || r === this.content.id)) && Vn({
|
|
7072
|
+
model: this.model || "",
|
|
7051
7073
|
apiKey: this.apiKey,
|
|
7052
|
-
apiVersion: this.builderContextSignal.apiVersion
|
|
7053
|
-
|
|
7054
|
-
|
|
7074
|
+
apiVersion: this.builderContextSignal.apiVersion,
|
|
7075
|
+
...n === "BUILDER_STUDIO" && ((i = this.context) != null && i.symbolId) ? {
|
|
7076
|
+
query: {
|
|
7077
|
+
id: this.context.symbolId
|
|
7078
|
+
}
|
|
7079
|
+
} : {}
|
|
7080
|
+
}).then((s) => {
|
|
7081
|
+
s && this.mergeNewContent(s);
|
|
7055
7082
|
});
|
|
7056
7083
|
}
|
|
7057
7084
|
}
|
|
7058
7085
|
});
|
|
7059
|
-
function
|
|
7086
|
+
function pu(e, t, n, r, o, i) {
|
|
7060
7087
|
var s, u, p;
|
|
7061
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (g(),
|
|
7088
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (g(), V(ut(e.ContentWrapper), G({
|
|
7062
7089
|
key: 0,
|
|
7063
7090
|
ref: "elementRef",
|
|
7064
7091
|
onClick: (m) => e.onClick(m),
|
|
@@ -7071,40 +7098,40 @@ function au(e, t, n, r, o, i) {
|
|
|
7071
7098
|
onIniteditingbldr: (m) => e.elementRef_onIniteditingbldr(m),
|
|
7072
7099
|
onInitpreviewingbldr: (m) => e.elementRef_onInitpreviewingbldr(m)
|
|
7073
7100
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
7074
|
-
default:
|
|
7101
|
+
default: Ie(() => [
|
|
7075
7102
|
de(e.$slots, "default")
|
|
7076
7103
|
]),
|
|
7077
7104
|
_: 3
|
|
7078
7105
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : L("", !0);
|
|
7079
7106
|
}
|
|
7080
|
-
const
|
|
7107
|
+
const du = /* @__PURE__ */ N(cu, [["render", pu]]), fu = B({
|
|
7081
7108
|
name: "content-styles",
|
|
7082
7109
|
components: { InlinedStyles: Wn },
|
|
7083
7110
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
7084
7111
|
data() {
|
|
7085
7112
|
return {
|
|
7086
7113
|
injectedStyles: `
|
|
7087
|
-
${
|
|
7114
|
+
${su({
|
|
7088
7115
|
cssCode: this.cssCode,
|
|
7089
7116
|
contentId: this.contentId
|
|
7090
7117
|
})}
|
|
7091
|
-
${
|
|
7118
|
+
${iu({
|
|
7092
7119
|
customFonts: this.customFonts
|
|
7093
7120
|
})}
|
|
7094
|
-
${
|
|
7121
|
+
${lu(this.isNestedRender)}
|
|
7095
7122
|
`.trim()
|
|
7096
7123
|
};
|
|
7097
7124
|
}
|
|
7098
7125
|
});
|
|
7099
|
-
function
|
|
7100
|
-
const s =
|
|
7101
|
-
return g(),
|
|
7126
|
+
function hu(e, t, n, r, o, i) {
|
|
7127
|
+
const s = U("InlinedStyles");
|
|
7128
|
+
return g(), V(s, {
|
|
7102
7129
|
id: "builderio-content",
|
|
7103
7130
|
styles: e.injectedStyles,
|
|
7104
7131
|
nonce: e.nonce
|
|
7105
7132
|
}, null, 8, ["styles", "nonce"]);
|
|
7106
7133
|
}
|
|
7107
|
-
const
|
|
7134
|
+
const mu = /* @__PURE__ */ N(fu, [["render", hu]]), gu = ({
|
|
7108
7135
|
content: e,
|
|
7109
7136
|
data: t,
|
|
7110
7137
|
locale: n
|
|
@@ -7121,7 +7148,7 @@ const pu = /* @__PURE__ */ N(uu, [["render", cu]]), du = ({
|
|
|
7121
7148
|
locale: n
|
|
7122
7149
|
} : {}
|
|
7123
7150
|
};
|
|
7124
|
-
},
|
|
7151
|
+
}, yu = ({
|
|
7125
7152
|
content: e,
|
|
7126
7153
|
data: t
|
|
7127
7154
|
}) => e ? {
|
|
@@ -7131,12 +7158,12 @@ const pu = /* @__PURE__ */ N(uu, [["render", cu]]), du = ({
|
|
|
7131
7158
|
...t
|
|
7132
7159
|
},
|
|
7133
7160
|
meta: e == null ? void 0 : e.meta
|
|
7134
|
-
} : void 0,
|
|
7161
|
+
} : void 0, vu = Lo, bu = B({
|
|
7135
7162
|
name: "content-component",
|
|
7136
7163
|
components: {
|
|
7137
|
-
EnableEditor:
|
|
7164
|
+
EnableEditor: du,
|
|
7138
7165
|
InlinedScript: wo,
|
|
7139
|
-
ContentStyles:
|
|
7166
|
+
ContentStyles: mu,
|
|
7140
7167
|
Blocks: _e,
|
|
7141
7168
|
DynamicDiv: St
|
|
7142
7169
|
},
|
|
@@ -7166,7 +7193,7 @@ const pu = /* @__PURE__ */ N(uu, [["render", cu]]), du = ({
|
|
|
7166
7193
|
data() {
|
|
7167
7194
|
var e, t;
|
|
7168
7195
|
return {
|
|
7169
|
-
scriptStr:
|
|
7196
|
+
scriptStr: Zl({
|
|
7170
7197
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
7171
7198
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
7172
7199
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -7179,19 +7206,19 @@ const pu = /* @__PURE__ */ N(uu, [["render", cu]]), du = ({
|
|
|
7179
7206
|
(n, { component: r, ...o }) => ({
|
|
7180
7207
|
...n,
|
|
7181
7208
|
[o.name]: {
|
|
7182
|
-
component:
|
|
7183
|
-
...
|
|
7209
|
+
component: vu(r),
|
|
7210
|
+
...jt(o)
|
|
7184
7211
|
}
|
|
7185
7212
|
}),
|
|
7186
7213
|
{}
|
|
7187
7214
|
),
|
|
7188
7215
|
builderContextSignal: {
|
|
7189
|
-
content:
|
|
7216
|
+
content: yu({
|
|
7190
7217
|
content: this.content,
|
|
7191
7218
|
data: this.data
|
|
7192
7219
|
}),
|
|
7193
7220
|
localState: void 0,
|
|
7194
|
-
rootState:
|
|
7221
|
+
rootState: gu({
|
|
7195
7222
|
content: this.content,
|
|
7196
7223
|
data: this.data,
|
|
7197
7224
|
locale: this.locale
|
|
@@ -7207,7 +7234,7 @@ const pu = /* @__PURE__ */ N(uu, [["render", cu]]), du = ({
|
|
|
7207
7234
|
].reduce(
|
|
7208
7235
|
(n, { component: r, ...o }) => ({
|
|
7209
7236
|
...n,
|
|
7210
|
-
[o.name]:
|
|
7237
|
+
[o.name]: jt(o)
|
|
7211
7238
|
}),
|
|
7212
7239
|
{}
|
|
7213
7240
|
),
|
|
@@ -7230,7 +7257,7 @@ const pu = /* @__PURE__ */ N(uu, [["render", cu]]), du = ({
|
|
|
7230
7257
|
},
|
|
7231
7258
|
created() {
|
|
7232
7259
|
var t, n;
|
|
7233
|
-
this.apiKey ||
|
|
7260
|
+
this.apiKey || le.error(
|
|
7234
7261
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
7235
7262
|
);
|
|
7236
7263
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
@@ -7251,9 +7278,9 @@ const pu = /* @__PURE__ */ N(uu, [["render", cu]]), du = ({
|
|
|
7251
7278
|
}
|
|
7252
7279
|
}
|
|
7253
7280
|
});
|
|
7254
|
-
function
|
|
7255
|
-
const s =
|
|
7256
|
-
return g(),
|
|
7281
|
+
function ku(e, t, n, r, o, i) {
|
|
7282
|
+
const s = U("InlinedScript"), u = U("ContentStyles"), p = U("Blocks"), m = U("EnableEditor");
|
|
7283
|
+
return g(), V(m, G({
|
|
7257
7284
|
apiHost: e.apiHost,
|
|
7258
7285
|
nonce: e.nonce,
|
|
7259
7286
|
content: e.content,
|
|
@@ -7271,22 +7298,22 @@ function gu(e, t, n, r, o, i) {
|
|
|
7271
7298
|
trustedHosts: e.trustedHosts,
|
|
7272
7299
|
isNestedRender: e.isNestedRender
|
|
7273
7300
|
}, {}), {
|
|
7274
|
-
default:
|
|
7275
|
-
var b, v, y, I,
|
|
7301
|
+
default: Ie(() => {
|
|
7302
|
+
var b, v, y, I, D, O, Z;
|
|
7276
7303
|
return [
|
|
7277
|
-
e.isSsrAbTest ? (g(),
|
|
7304
|
+
e.isSsrAbTest ? (g(), V(s, {
|
|
7278
7305
|
key: 0,
|
|
7279
7306
|
id: "builderio-variant-visibility",
|
|
7280
7307
|
scriptStr: e.scriptStr,
|
|
7281
7308
|
nonce: e.nonce || ""
|
|
7282
7309
|
}, null, 8, ["scriptStr", "nonce"])) : L("", !0),
|
|
7283
|
-
e.TARGET !== "reactNative" ? (g(),
|
|
7310
|
+
e.TARGET !== "reactNative" ? (g(), V(u, {
|
|
7284
7311
|
key: 1,
|
|
7285
7312
|
nonce: e.nonce || "",
|
|
7286
7313
|
isNestedRender: e.isNestedRender,
|
|
7287
7314
|
contentId: (b = e.builderContextSignal.content) == null ? void 0 : b.id,
|
|
7288
7315
|
cssCode: (y = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : y.cssCode,
|
|
7289
|
-
customFonts: (
|
|
7316
|
+
customFonts: (D = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : D.customFonts
|
|
7290
7317
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : L("", !0),
|
|
7291
7318
|
se(p, {
|
|
7292
7319
|
blocks: (Z = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : Z.blocks,
|
|
@@ -7299,12 +7326,12 @@ function gu(e, t, n, r, o, i) {
|
|
|
7299
7326
|
_: 1
|
|
7300
7327
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
7301
7328
|
}
|
|
7302
|
-
const
|
|
7329
|
+
const Su = /* @__PURE__ */ N(bu, [["render", ku]]), Cu = B({
|
|
7303
7330
|
name: "content-variants",
|
|
7304
7331
|
components: {
|
|
7305
7332
|
InlinedScript: wo,
|
|
7306
7333
|
InlinedStyles: Wn,
|
|
7307
|
-
ContentComponent:
|
|
7334
|
+
ContentComponent: Su
|
|
7308
7335
|
},
|
|
7309
7336
|
props: [
|
|
7310
7337
|
"canTrack",
|
|
@@ -7329,12 +7356,12 @@ const yu = /* @__PURE__ */ N(mu, [["render", gu]]), vu = j({
|
|
|
7329
7356
|
],
|
|
7330
7357
|
data() {
|
|
7331
7358
|
return {
|
|
7332
|
-
shouldRenderVariants:
|
|
7359
|
+
shouldRenderVariants: _l({
|
|
7333
7360
|
canTrack: yt(this.canTrack),
|
|
7334
7361
|
content: this.content
|
|
7335
7362
|
}),
|
|
7336
7363
|
TARGET: re,
|
|
7337
|
-
getInitVariantsFnsScriptString:
|
|
7364
|
+
getInitVariantsFnsScriptString: Xl,
|
|
7338
7365
|
getVariants: Pt
|
|
7339
7366
|
};
|
|
7340
7367
|
},
|
|
@@ -7343,7 +7370,7 @@ const yu = /* @__PURE__ */ N(mu, [["render", gu]]), vu = j({
|
|
|
7343
7370
|
computed: {
|
|
7344
7371
|
updateCookieAndStylesScriptStr() {
|
|
7345
7372
|
var e;
|
|
7346
|
-
return
|
|
7373
|
+
return Yl(
|
|
7347
7374
|
Pt(this.content).map((t) => ({
|
|
7348
7375
|
id: t.testVariationId,
|
|
7349
7376
|
testRatio: t.testRatio
|
|
@@ -7359,17 +7386,17 @@ const yu = /* @__PURE__ */ N(mu, [["render", gu]]), vu = j({
|
|
|
7359
7386
|
return this.shouldRenderVariants ? {
|
|
7360
7387
|
...this.content,
|
|
7361
7388
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
7362
|
-
} :
|
|
7389
|
+
} : ds({
|
|
7363
7390
|
item: this.content,
|
|
7364
7391
|
canTrack: yt(this.canTrack)
|
|
7365
7392
|
});
|
|
7366
7393
|
}
|
|
7367
7394
|
}
|
|
7368
7395
|
});
|
|
7369
|
-
function
|
|
7370
|
-
const s =
|
|
7396
|
+
function wu(e, t, n, r, o, i) {
|
|
7397
|
+
const s = U("InlinedScript"), u = U("InlinedStyles"), p = U("ContentComponent");
|
|
7371
7398
|
return g(), T(_, null, [
|
|
7372
|
-
!e.isNestedRender && e.TARGET !== "reactNative" ? (g(),
|
|
7399
|
+
!e.isNestedRender && e.TARGET !== "reactNative" ? (g(), V(s, {
|
|
7373
7400
|
key: 0,
|
|
7374
7401
|
id: "builderio-init-variants-fns",
|
|
7375
7402
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
@@ -7386,7 +7413,7 @@ function bu(e, t, n, r, o, i) {
|
|
|
7386
7413
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
7387
7414
|
nonce: e.nonce || ""
|
|
7388
7415
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
7389
|
-
(g(!0), T(_, null, he(e.getVariants(e.content), (m, b) => (g(),
|
|
7416
|
+
(g(!0), T(_, null, he(e.getVariants(e.content), (m, b) => (g(), V(p, G({
|
|
7390
7417
|
key: m.testVariationId,
|
|
7391
7418
|
apiHost: e.apiHost,
|
|
7392
7419
|
isNestedRender: e.isNestedRender,
|
|
@@ -7438,13 +7465,13 @@ function bu(e, t, n, r, o, i) {
|
|
|
7438
7465
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
7439
7466
|
], 64);
|
|
7440
7467
|
}
|
|
7441
|
-
const
|
|
7468
|
+
const Eu = /* @__PURE__ */ N(Cu, [["render", wu]]), Tu = async ({
|
|
7442
7469
|
builderContextValue: e,
|
|
7443
7470
|
symbol: t
|
|
7444
7471
|
}) => {
|
|
7445
7472
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
7446
7473
|
(e != null && e.apiKey))
|
|
7447
|
-
return
|
|
7474
|
+
return Vn({
|
|
7448
7475
|
model: t.model,
|
|
7449
7476
|
apiKey: e.apiKey,
|
|
7450
7477
|
apiVersion: e.apiVersion,
|
|
@@ -7454,11 +7481,11 @@ const ku = /* @__PURE__ */ N(vu, [["render", bu]]), Su = async ({
|
|
|
7454
7481
|
}
|
|
7455
7482
|
}
|
|
7456
7483
|
}).catch((n) => {
|
|
7457
|
-
|
|
7484
|
+
le.error("Could not fetch symbol content: ", n);
|
|
7458
7485
|
});
|
|
7459
|
-
},
|
|
7486
|
+
}, Iu = B({
|
|
7460
7487
|
name: "builder-symbol",
|
|
7461
|
-
components: { ContentVariants:
|
|
7488
|
+
components: { ContentVariants: Eu, DynamicDiv: St },
|
|
7462
7489
|
props: [
|
|
7463
7490
|
"symbol",
|
|
7464
7491
|
"attributes",
|
|
@@ -7507,7 +7534,7 @@ const ku = /* @__PURE__ */ N(vu, [["render", bu]]), Su = async ({
|
|
|
7507
7534
|
},
|
|
7508
7535
|
methods: {
|
|
7509
7536
|
setContent() {
|
|
7510
|
-
this.contentToUse ||
|
|
7537
|
+
this.contentToUse || Tu({
|
|
7511
7538
|
symbol: this.symbol,
|
|
7512
7539
|
builderContextValue: this.builderContext
|
|
7513
7540
|
}).then((e) => {
|
|
@@ -7516,9 +7543,9 @@ const ku = /* @__PURE__ */ N(vu, [["render", bu]]), Su = async ({
|
|
|
7516
7543
|
}
|
|
7517
7544
|
}
|
|
7518
7545
|
});
|
|
7519
|
-
function
|
|
7546
|
+
function xu(e, t, n, r, o, i) {
|
|
7520
7547
|
var u, p, m, b, v;
|
|
7521
|
-
const s =
|
|
7548
|
+
const s = U("ContentVariants");
|
|
7522
7549
|
return g(), T("div", G({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, pe(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
7523
7550
|
se(s, {
|
|
7524
7551
|
nonce: e.builderContext.nonce,
|
|
@@ -7544,44 +7571,44 @@ function wu(e, t, n, r, o, i) {
|
|
|
7544
7571
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
7545
7572
|
], 16);
|
|
7546
7573
|
}
|
|
7547
|
-
const
|
|
7574
|
+
const Ru = /* @__PURE__ */ N(Iu, [["render", xu]]);
|
|
7548
7575
|
export {
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7576
|
+
Es as A,
|
|
7577
|
+
Fn as B,
|
|
7578
|
+
na as C,
|
|
7579
|
+
Vn as D,
|
|
7580
|
+
$u as E,
|
|
7581
|
+
ia as F,
|
|
7582
|
+
Vu as G,
|
|
7583
|
+
fa as I,
|
|
7584
|
+
ga as S,
|
|
7558
7585
|
re as T,
|
|
7559
|
-
|
|
7586
|
+
Kl as V,
|
|
7560
7587
|
Wn as _,
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
|
|
7588
|
+
Nu as a,
|
|
7589
|
+
Uu as b,
|
|
7590
|
+
Be as c,
|
|
7591
|
+
Un as d,
|
|
7565
7592
|
N as e,
|
|
7566
7593
|
kt as f,
|
|
7567
|
-
|
|
7568
|
-
|
|
7594
|
+
Zs as g,
|
|
7595
|
+
Du as h,
|
|
7569
7596
|
Ot as i,
|
|
7570
7597
|
fn as j,
|
|
7571
7598
|
_o as k,
|
|
7572
|
-
|
|
7573
|
-
|
|
7599
|
+
Ru as l,
|
|
7600
|
+
Ka as m,
|
|
7574
7601
|
_e as n,
|
|
7575
|
-
|
|
7602
|
+
Eu as o,
|
|
7576
7603
|
ie as p,
|
|
7577
7604
|
_r as q,
|
|
7578
7605
|
Fi as r,
|
|
7579
|
-
|
|
7580
|
-
|
|
7606
|
+
Li as s,
|
|
7607
|
+
Pu as t,
|
|
7581
7608
|
Jr as u,
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7609
|
+
Ou as v,
|
|
7610
|
+
vu as w,
|
|
7611
|
+
Bu as x,
|
|
7612
|
+
ju as y,
|
|
7613
|
+
ws as z
|
|
7587
7614
|
};
|