@builder.io/sdk-vue 5.2.10 → 5.2.11
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-LIAqEcfX.cjs → awaiter-MAyQwJUp.cjs} +1 -1
- package/lib/browser/{awaiter-NXhCBvJj.js → awaiter-quz2SFrg.js} +1 -1
- package/lib/browser/{block-wrapper-sJgW-hxB.js → block-wrapper-SCckT0M5.js} +3 -3
- package/lib/browser/{block-wrapper-Gx5cmGCs.cjs → block-wrapper-vBu_Ygm8.cjs} +1 -1
- package/lib/browser/{component-ref-glX9-8fW.cjs → component-ref-HWBSC66Y.cjs} +1 -1
- package/lib/browser/{component-ref-3CB2cdJW.js → component-ref-owc3e0h8.js} +4 -4
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +3 -0
- package/lib/browser/components/content/content.vue.d.ts +3 -0
- package/lib/browser/components/content-variants/content-variants.types.d.ts +8 -0
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/get-content/types.d.ts +27 -0
- package/lib/browser/{get-block-properties-Ejar3KRa.js → get-block-properties-Hny6jqGG.js} +1 -1
- package/lib/browser/{get-block-properties-hkrxv2Yw.cjs → get-block-properties-odFddSWh.cjs} +1 -1
- package/lib/browser/{index-bjZ2qhB0.js → index-7bXAC1Q8.js} +442 -432
- package/lib/browser/index-uDRmkrr4.cjs +350 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-Sfr-FIGs.cjs → live-edit-AUagAEej.cjs} +1 -1
- package/lib/browser/{live-edit-BGWSQRf6.js → live-edit-x4eHrcJh.js} +1 -1
- package/lib/browser/{repeated-block-y2NflOf1.cjs → repeated-block-ZGXPYgA8.cjs} +1 -1
- package/lib/browser/{repeated-block-ECd9zh7f.js → repeated-block-uVi8A50N.js} +2 -2
- package/lib/browser/scripts/init-editing.d.ts +2 -0
- package/lib/browser/{style-wrapper-PR2ys7tw.cjs → style-wrapper-C_c9B5_Y.cjs} +1 -1
- package/lib/browser/{style-wrapper-9OtEbIRY.js → style-wrapper-usFESjt5.js} +1 -1
- package/lib/edge/{awaiter-Rk0bT_z6.js → awaiter-RSfMls5f.js} +1 -1
- package/lib/edge/{awaiter-NONmvwQ6.cjs → awaiter-zow2zgzw.cjs} +1 -1
- package/lib/{node/block-wrapper-ZBxys5Pi.cjs → edge/block-wrapper-4qKpWsP8.cjs} +1 -1
- package/lib/edge/{block-wrapper-bLEVePe1.js → block-wrapper-GT2d4luN.js} +3 -3
- package/lib/edge/{component-ref-wRsXuO0w.js → component-ref-1iPK0xOE.js} +4 -4
- package/lib/edge/{component-ref-hvv1-QnL.cjs → component-ref-WdOIbmOU.cjs} +1 -1
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +3 -0
- package/lib/edge/components/content/content.vue.d.ts +3 -0
- package/lib/edge/components/content-variants/content-variants.types.d.ts +8 -0
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/get-content/types.d.ts +27 -0
- package/lib/edge/{get-block-properties-Z_smIxVv.cjs → get-block-properties-2E03ld67.cjs} +1 -1
- package/lib/edge/{get-block-properties-kcXTpefp.js → get-block-properties-bMVCvUX0.js} +1 -1
- package/lib/edge/{index-jT889Kr4.js → index-Bgm0yCrN.js} +1001 -991
- package/lib/edge/index-LWGIJNVx.cjs +368 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/live-edit-T7SWvgRt.cjs → edge/live-edit-oLYhcuYs.cjs} +1 -1
- package/lib/{node/live-edit-7Qru52il.js → edge/live-edit-tegdYGJO.js} +1 -1
- package/lib/edge/{repeated-block-ocRd-7Ri.cjs → repeated-block--MhEsXmR.cjs} +1 -1
- package/lib/edge/{repeated-block-XfL9MY4H.js → repeated-block-yZJM5I60.js} +2 -2
- package/lib/edge/scripts/init-editing.d.ts +2 -0
- package/lib/edge/{style-wrapper-TUi2oGU5.cjs → style-wrapper-8JiLG-FF.cjs} +1 -1
- package/lib/edge/{style-wrapper-cgk8YrFm.js → style-wrapper-i8R7NpdY.js} +1 -1
- package/lib/node/{awaiter-d876EVrj.cjs → awaiter-Vwjft2v-.cjs} +1 -1
- package/lib/node/{awaiter-ooRB0LL_.js → awaiter-o3ynOQKr.js} +1 -1
- package/lib/{edge/block-wrapper-uQolhWhZ.cjs → node/block-wrapper-KX1-Y2Oq.cjs} +1 -1
- package/lib/node/{block-wrapper-heMQ0bQW.js → block-wrapper-PUFgSKq_.js} +3 -3
- package/lib/node/{component-ref-w7KWdZU9.js → component-ref-HmJKie9z.js} +5 -5
- package/lib/node/{component-ref-HjW6Dn5U.cjs → component-ref-o3vjSyAQ.cjs} +1 -1
- package/lib/node/components/content/components/enable-editor.vue.d.ts +3 -0
- package/lib/node/components/content/content.vue.d.ts +3 -0
- package/lib/node/components/content-variants/content-variants.types.d.ts +8 -0
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/get-content/types.d.ts +27 -0
- package/lib/node/{get-block-properties-G6DNp62v.cjs → get-block-properties-2yGkQVh7.cjs} +1 -1
- package/lib/node/{get-block-properties-kLYkiFmS.js → get-block-properties-DGfMhs4M.js} +2 -2
- package/lib/node/index-7xT7wMXt.cjs +350 -0
- package/lib/node/{index-quPzSfMY.js → index-JQgNoVXs.js} +392 -382
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-UREQGwDx.js → node/live-edit-hxNZMHld.js} +1 -1
- package/lib/{edge/live-edit-euz6qyjO.cjs → node/live-edit-xPik2aUh.cjs} +1 -1
- package/lib/node/{repeated-block-iHvrQwik.cjs → repeated-block-LHiXlO3e.cjs} +1 -1
- package/lib/node/{repeated-block-h_P0vHI5.js → repeated-block-PvGSbsHD.js} +2 -2
- package/lib/node/scripts/init-editing.d.ts +2 -0
- package/lib/node/{should-force-browser-runtime-in-node-ovD5c_br.cjs → should-force-browser-runtime-in-node-aeKfQiEQ.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-cuIgr-IV.js → should-force-browser-runtime-in-node-ooRgTwqs.js} +1 -1
- package/lib/node/{style-wrapper-arJdhPdR.cjs → style-wrapper-3l8xaVr4.cjs} +1 -1
- package/lib/node/{style-wrapper-MI0wKmtS.js → style-wrapper-U-7exIwN.js} +2 -2
- package/package.json +1 -1
- package/lib/browser/index-SRaav2aL.cjs +0 -350
- package/lib/edge/index-TqjgraOe.cjs +0 -368
- package/lib/node/index-a8iqYi5t.cjs +0 -350
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as B, openBlock as v, createElementBlock as
|
|
1
|
+
import { defineComponent as B, openBlock as v, createElementBlock as T, Fragment as z, createBlock as U, resolveDynamicComponent as dt, mergeProps as q, toHandlers as be, withCtx as ge, renderSlot as ce, resolveComponent as W, createTextVNode as Qo, toDisplayString as Wt, defineAsyncComponent as st, createVNode as Z, renderList as Se, createCommentVNode as F, h as Jr, createElementVNode as Ge, normalizeStyle as Pe, normalizeClass as gt, markRaw as Zo } from "vue";
|
|
2
2
|
const ei = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ti = (e) => typeof e == "string" && ei.has(e.toLowerCase());
|
|
3
|
-
function
|
|
3
|
+
function pe(e = {}, t, n) {
|
|
4
4
|
const r = {};
|
|
5
5
|
for (const o in e) {
|
|
6
6
|
if (!e[o] || n && !o.startsWith(t))
|
|
@@ -16,31 +16,31 @@ const ni = B({
|
|
|
16
16
|
data() {
|
|
17
17
|
return { isEmptyElement: ti };
|
|
18
18
|
}
|
|
19
|
-
}),
|
|
19
|
+
}), V = (e, t) => {
|
|
20
20
|
const n = e.__vccOpts || e;
|
|
21
21
|
for (const [r, o] of t)
|
|
22
22
|
n[r] = o;
|
|
23
23
|
return n;
|
|
24
24
|
};
|
|
25
25
|
function ri(e, t, n, r, o, i) {
|
|
26
|
-
return e.isEmptyElement(e.TagName) ? (v(), U(dt(e.TagName), q({ key: 1 }, e.attributes,
|
|
27
|
-
typeof e.TagName == "string" ? (v(), U(dt(e.TagName), q({ key: 0 }, e.attributes,
|
|
28
|
-
default:
|
|
29
|
-
|
|
26
|
+
return e.isEmptyElement(e.TagName) ? (v(), U(dt(e.TagName), q({ key: 1 }, e.attributes, be(e.actionAttributes)), null, 16)) : (v(), T(z, { key: 0 }, [
|
|
27
|
+
typeof e.TagName == "string" ? (v(), U(dt(e.TagName), q({ key: 0 }, e.attributes, be(e.actionAttributes)), {
|
|
28
|
+
default: ge(() => [
|
|
29
|
+
ce(e.$slots, "default")
|
|
30
30
|
]),
|
|
31
31
|
_: 3
|
|
32
|
-
}, 16)) : (v(), U(dt(e.TagName), q({ key: 1 }, e.attributes,
|
|
33
|
-
default:
|
|
34
|
-
|
|
32
|
+
}, 16)) : (v(), U(dt(e.TagName), q({ key: 1 }, e.attributes, be(e.actionAttributes)), {
|
|
33
|
+
default: ge(() => [
|
|
34
|
+
ce(e.$slots, "default")
|
|
35
35
|
]),
|
|
36
36
|
_: 3
|
|
37
37
|
}, 16))
|
|
38
38
|
], 64));
|
|
39
39
|
}
|
|
40
|
-
const xn = /* @__PURE__ */
|
|
40
|
+
const xn = /* @__PURE__ */ V(ni, [["render", ri]]), rc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41
41
|
__proto__: null,
|
|
42
42
|
default: xn
|
|
43
|
-
}, Symbol.toStringTag, { value: "Module" })), G = "vue",
|
|
43
|
+
}, Symbol.toStringTag, { value: "Module" })), G = "vue", Ne = () => {
|
|
44
44
|
switch (G) {
|
|
45
45
|
case "react":
|
|
46
46
|
case "reactNative":
|
|
@@ -64,13 +64,13 @@ const xn = /* @__PURE__ */ j(ni, [["render", ri]]), rc = /* @__PURE__ */ Object.
|
|
|
64
64
|
"text"
|
|
65
65
|
],
|
|
66
66
|
data() {
|
|
67
|
-
return { filterAttrs:
|
|
67
|
+
return { filterAttrs: pe };
|
|
68
68
|
},
|
|
69
69
|
methods: {
|
|
70
70
|
attrs() {
|
|
71
71
|
return {
|
|
72
|
-
...
|
|
73
|
-
[
|
|
72
|
+
...pe(this.attributes, "v-on:", !1),
|
|
73
|
+
[Ne()]: `${this.link ? "" : "builder-button"} ${this.attributes[Ne()] || ""}`,
|
|
74
74
|
...this.link ? {
|
|
75
75
|
href: this.link,
|
|
76
76
|
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -89,13 +89,13 @@ function ii(e, t, n, r, o, i) {
|
|
|
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: ge(() => [
|
|
93
93
|
Qo(Wt(e.text), 1)
|
|
94
94
|
]),
|
|
95
95
|
_: 1
|
|
96
96
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
97
97
|
}
|
|
98
|
-
const si = /* @__PURE__ */
|
|
98
|
+
const si = /* @__PURE__ */ V(oi, [["render", ii]]), ai = Symbol(), vn = {
|
|
99
99
|
Builder: {
|
|
100
100
|
content: null,
|
|
101
101
|
context: {},
|
|
@@ -116,16 +116,16 @@ const si = /* @__PURE__ */ j(oi, [["render", ii]]), ai = Symbol(), vn = {
|
|
|
116
116
|
}, li = Symbol(), Xr = {
|
|
117
117
|
Components: { registeredComponents: {} },
|
|
118
118
|
key: li
|
|
119
|
-
},
|
|
120
|
-
log: (...e) => console.log(
|
|
121
|
-
error: (...e) => console.error(
|
|
122
|
-
warn: (...e) => console.warn(
|
|
123
|
-
debug: (...e) => console.debug(
|
|
119
|
+
}, Ot = "[Builder.io]: ", le = {
|
|
120
|
+
log: (...e) => console.log(Ot, ...e),
|
|
121
|
+
error: (...e) => console.error(Ot, ...e),
|
|
122
|
+
warn: (...e) => console.warn(Ot, ...e),
|
|
123
|
+
debug: (...e) => console.debug(Ot, ...e)
|
|
124
124
|
}, Yr = (e, t, n) => {
|
|
125
125
|
const r = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, i) => o != null ? o[i] : o, e);
|
|
126
126
|
return r === void 0 || r === e ? n : r;
|
|
127
127
|
};
|
|
128
|
-
function
|
|
128
|
+
function H() {
|
|
129
129
|
return typeof window < "u" && typeof document < "u";
|
|
130
130
|
}
|
|
131
131
|
const ui = (e) => {
|
|
@@ -135,14 +135,14 @@ const ui = (e) => {
|
|
|
135
135
|
}), t;
|
|
136
136
|
}, Qr = (e) => e instanceof URLSearchParams ? ui(e) : e, Zr = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
137
137
|
function ci() {
|
|
138
|
-
return
|
|
138
|
+
return H() && window.self !== window.top;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function re(e) {
|
|
141
141
|
return ci() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
142
142
|
Zr(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
143
143
|
}
|
|
144
144
|
const pi = () => {
|
|
145
|
-
if (
|
|
145
|
+
if (H()) {
|
|
146
146
|
const e = new URL(location.href);
|
|
147
147
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
148
148
|
} else
|
|
@@ -173,11 +173,11 @@ const pi = () => {
|
|
|
173
173
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
174
174
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
175
175
|
};
|
|
176
|
-
}, to = "5.2.
|
|
176
|
+
}, to = "5.2.11", no = () => ({
|
|
177
177
|
"X-Builder-SDK": G,
|
|
178
178
|
"X-Builder-SDK-GEN": "2",
|
|
179
179
|
"X-Builder-SDK-Version": to
|
|
180
|
-
}),
|
|
180
|
+
}), Be = (e) => e != null, hi = (e) => {
|
|
181
181
|
if (e === "localhost" || e === "127.0.0.1")
|
|
182
182
|
return e;
|
|
183
183
|
const t = e.split(".");
|
|
@@ -190,17 +190,17 @@ const pi = () => {
|
|
|
190
190
|
try {
|
|
191
191
|
return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
192
192
|
} catch (r) {
|
|
193
|
-
|
|
193
|
+
le.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
|
-
}, ro = async (e) => Lt(e),
|
|
196
|
+
}, ro = async (e) => Lt(e), fi = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(Be).join("; "), mi = [["secure", ""], ["SameSite", "None"]], gi = ({
|
|
197
197
|
name: e,
|
|
198
198
|
value: t,
|
|
199
199
|
expires: n
|
|
200
200
|
}) => {
|
|
201
|
-
const o = (
|
|
202
|
-
return
|
|
203
|
-
},
|
|
201
|
+
const o = (H() ? location.protocol === "https:" : !0) ? mi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", hi(window.location.hostname)], ...o];
|
|
202
|
+
return fi(s);
|
|
203
|
+
}, On = async ({
|
|
204
204
|
name: e,
|
|
205
205
|
value: t,
|
|
206
206
|
expires: n,
|
|
@@ -216,7 +216,7 @@ const pi = () => {
|
|
|
216
216
|
});
|
|
217
217
|
document.cookie = o;
|
|
218
218
|
} catch (o) {
|
|
219
|
-
|
|
219
|
+
le.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
function yi() {
|
|
@@ -237,7 +237,7 @@ const io = "builderSessionId", vi = async ({
|
|
|
237
237
|
name: io,
|
|
238
238
|
canTrack: e
|
|
239
239
|
});
|
|
240
|
-
if (
|
|
240
|
+
if (Be(t))
|
|
241
241
|
return t;
|
|
242
242
|
{
|
|
243
243
|
const n = bi();
|
|
@@ -249,11 +249,11 @@ const io = "builderSessionId", vi = async ({
|
|
|
249
249
|
}, bi = () => oo(), Si = ({
|
|
250
250
|
id: e,
|
|
251
251
|
canTrack: t
|
|
252
|
-
}) =>
|
|
252
|
+
}) => On({
|
|
253
253
|
name: io,
|
|
254
254
|
value: e,
|
|
255
255
|
canTrack: t
|
|
256
|
-
}), so = () =>
|
|
256
|
+
}), so = () => H() && typeof localStorage < "u" ? localStorage : void 0, ki = ({
|
|
257
257
|
key: e,
|
|
258
258
|
canTrack: t
|
|
259
259
|
}) => {
|
|
@@ -284,7 +284,7 @@ const io = "builderSessionId", vi = async ({
|
|
|
284
284
|
key: ao,
|
|
285
285
|
canTrack: e
|
|
286
286
|
});
|
|
287
|
-
if (
|
|
287
|
+
if (Be(t))
|
|
288
288
|
return t;
|
|
289
289
|
{
|
|
290
290
|
const n = Ti();
|
|
@@ -301,9 +301,9 @@ const io = "builderSessionId", vi = async ({
|
|
|
301
301
|
value: e,
|
|
302
302
|
canTrack: t
|
|
303
303
|
});
|
|
304
|
-
function
|
|
304
|
+
function Pn(e) {
|
|
305
305
|
var t;
|
|
306
|
-
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" &&
|
|
306
|
+
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && le.log(e);
|
|
307
307
|
}
|
|
308
308
|
const Ii = async ({
|
|
309
309
|
canTrack: e
|
|
@@ -348,13 +348,13 @@ async function jt({
|
|
|
348
348
|
...t
|
|
349
349
|
}) {
|
|
350
350
|
if (!t.apiKey) {
|
|
351
|
-
|
|
351
|
+
le.error("Missing API key for track call. Please provide your API key.");
|
|
352
352
|
return;
|
|
353
353
|
}
|
|
354
|
-
if (!t.canTrack ||
|
|
354
|
+
if (!t.canTrack || re() || !(H() || G === "reactNative"))
|
|
355
355
|
return;
|
|
356
356
|
const r = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
357
|
-
return
|
|
357
|
+
return Pn(r), fetch(r, {
|
|
358
358
|
method: "POST",
|
|
359
359
|
body: JSON.stringify({
|
|
360
360
|
events: [await Ri(t)]
|
|
@@ -384,9 +384,9 @@ const oc = (e) => jt({
|
|
|
384
384
|
context: t,
|
|
385
385
|
event: n
|
|
386
386
|
}), Ai = (e) => ({
|
|
387
|
-
isEditing:
|
|
388
|
-
isBrowser:
|
|
389
|
-
isServer: !
|
|
387
|
+
isEditing: re(),
|
|
388
|
+
isBrowser: H(),
|
|
389
|
+
isServer: !H(),
|
|
390
390
|
getUserAttributes: () => eo(),
|
|
391
391
|
trackConversion: (t, n) => {
|
|
392
392
|
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || jt({
|
|
@@ -452,7 +452,7 @@ const xi = ({
|
|
|
452
452
|
});
|
|
453
453
|
return new Function(...u.map(([c]) => c), e)(...u.map(([, c]) => c));
|
|
454
454
|
};
|
|
455
|
-
var
|
|
455
|
+
var D, Oi = function(e) {
|
|
456
456
|
function t(a) {
|
|
457
457
|
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Xo.test(String.fromCharCode(a));
|
|
458
458
|
}
|
|
@@ -460,37 +460,37 @@ var V, Pi = function(e) {
|
|
|
460
460
|
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && xr.test(String.fromCharCode(a));
|
|
461
461
|
}
|
|
462
462
|
function r(a, l) {
|
|
463
|
-
for (var p = k,
|
|
464
|
-
xt.lastIndex =
|
|
465
|
-
var
|
|
466
|
-
if (
|
|
467
|
-
++
|
|
463
|
+
for (var p = k, h = 1, O = 0; ; ) {
|
|
464
|
+
xt.lastIndex = O;
|
|
465
|
+
var Y = xt.exec(p);
|
|
466
|
+
if (Y && Y.index < a)
|
|
467
|
+
++h, O = Y.index + Y[0].length;
|
|
468
468
|
else
|
|
469
469
|
break;
|
|
470
470
|
}
|
|
471
471
|
throw p = {
|
|
472
|
-
line:
|
|
473
|
-
ab: a -
|
|
472
|
+
line: h,
|
|
473
|
+
ab: a - O
|
|
474
474
|
}, l += " (" + p.line + ":" + p.ab + ")", l = new SyntaxError(l), l.j = a, l.X = p, l.o = d, l;
|
|
475
475
|
}
|
|
476
476
|
function o(a) {
|
|
477
477
|
a = a.split(" ");
|
|
478
478
|
for (var l = /* @__PURE__ */ Object.create(null), p = 0; p < a.length; p++)
|
|
479
479
|
l[a[p]] = !0;
|
|
480
|
-
return function(
|
|
481
|
-
return l[
|
|
480
|
+
return function(h) {
|
|
481
|
+
return l[h] || !1;
|
|
482
482
|
};
|
|
483
483
|
}
|
|
484
484
|
function i() {
|
|
485
|
-
this.line =
|
|
485
|
+
this.line = De, this.ab = d - we;
|
|
486
486
|
}
|
|
487
487
|
function s(a, l) {
|
|
488
|
-
Fe = d,
|
|
488
|
+
Fe = d, P.C && (Qt = new i()), x = a, c(), fe = l, tt = a.m;
|
|
489
489
|
}
|
|
490
490
|
function u() {
|
|
491
|
-
for (var a = d, l =
|
|
491
|
+
for (var a = d, l = P.va && P.C && new i(), p = k.charCodeAt(d += 2); d < Le && p !== 10 && p !== 13 && p !== 8232 && p !== 8233; )
|
|
492
492
|
++d, p = k.charCodeAt(d);
|
|
493
|
-
|
|
493
|
+
P.va && P.va(!1, k.slice(a + 2, d), a, d, l, P.C && new i());
|
|
494
494
|
}
|
|
495
495
|
function c() {
|
|
496
496
|
for (; d < Le; ) {
|
|
@@ -498,19 +498,19 @@ var V, Pi = function(e) {
|
|
|
498
498
|
if (a === 32)
|
|
499
499
|
++d;
|
|
500
500
|
else if (a === 13)
|
|
501
|
-
++d, a = k.charCodeAt(d), a === 10 && ++d,
|
|
501
|
+
++d, a = k.charCodeAt(d), a === 10 && ++d, P.C && (++De, we = d);
|
|
502
502
|
else if (a === 10 || a === 8232 || a === 8233)
|
|
503
|
-
++d,
|
|
503
|
+
++d, P.C && (++De, we = d);
|
|
504
504
|
else if (8 < a && 14 > a)
|
|
505
505
|
++d;
|
|
506
506
|
else if (a === 47)
|
|
507
507
|
if (a = k.charCodeAt(d + 1), a === 42) {
|
|
508
508
|
a = void 0;
|
|
509
|
-
var l =
|
|
510
|
-
if (
|
|
509
|
+
var l = P.va && P.C && new i(), p = d, h = k.indexOf("*/", d += 2);
|
|
510
|
+
if (h === -1 && r(d - 2, "Unterminated comment"), d = h + 2, P.C)
|
|
511
511
|
for (xt.lastIndex = p; (a = xt.exec(k)) && a.index < d; )
|
|
512
|
-
++
|
|
513
|
-
|
|
512
|
+
++De, we = a.index + a[0].length;
|
|
513
|
+
P.va && P.va(!0, k.slice(p + 2, h), p, d, l, P.C && new i());
|
|
514
514
|
} else if (a === 47)
|
|
515
515
|
u();
|
|
516
516
|
else
|
|
@@ -529,13 +529,13 @@ var V, Pi = function(e) {
|
|
|
529
529
|
a = k.charCodeAt(d + 1), 48 <= a && 57 >= a ? A(!0) : (++d, s(Cr));
|
|
530
530
|
return;
|
|
531
531
|
case 40:
|
|
532
|
-
return ++d, s(
|
|
532
|
+
return ++d, s(Te);
|
|
533
533
|
case 41:
|
|
534
|
-
return ++d, s(
|
|
534
|
+
return ++d, s(ve);
|
|
535
535
|
case 59:
|
|
536
|
-
return ++d, s(
|
|
536
|
+
return ++d, s(Ee);
|
|
537
537
|
case 44:
|
|
538
|
-
return ++d, s(
|
|
538
|
+
return ++d, s(Oe);
|
|
539
539
|
case 91:
|
|
540
540
|
return ++d, s(un);
|
|
541
541
|
case 93:
|
|
@@ -550,7 +550,7 @@ var V, Pi = function(e) {
|
|
|
550
550
|
return ++d, s(wr);
|
|
551
551
|
case 48:
|
|
552
552
|
if (a = k.charCodeAt(d + 1), a === 120 || a === 88) {
|
|
553
|
-
d += 2, a = S(16), a === null && r(
|
|
553
|
+
d += 2, a = S(16), a === null && r(X + 2, "Expected hexadecimal number"), n(k.charCodeAt(d)) && r(d, "Identifier directly after number"), s(rt, a);
|
|
554
554
|
return;
|
|
555
555
|
}
|
|
556
556
|
case 49:
|
|
@@ -567,7 +567,7 @@ var V, Pi = function(e) {
|
|
|
567
567
|
case 39:
|
|
568
568
|
d++;
|
|
569
569
|
for (var l = ""; ; ) {
|
|
570
|
-
d >= Le && r(
|
|
570
|
+
d >= Le && r(X, "Unterminated string constant");
|
|
571
571
|
var p = k.charCodeAt(d);
|
|
572
572
|
if (p === a) {
|
|
573
573
|
++d, s(It, l);
|
|
@@ -575,11 +575,11 @@ var V, Pi = function(e) {
|
|
|
575
575
|
}
|
|
576
576
|
if (p === 92) {
|
|
577
577
|
p = k.charCodeAt(++d);
|
|
578
|
-
var
|
|
579
|
-
for (
|
|
580
|
-
|
|
581
|
-
if (
|
|
582
|
-
|
|
578
|
+
var h = /^[0-7]+/.exec(k.slice(d, d + 3));
|
|
579
|
+
for (h && (h = h[0]); h && 255 < parseInt(h, 8); )
|
|
580
|
+
h = h.slice(0, -1);
|
|
581
|
+
if (h === "0" && (h = null), ++d, h)
|
|
582
|
+
ue && r(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(h, 8)), d += h.length - 1;
|
|
583
583
|
else
|
|
584
584
|
switch (p) {
|
|
585
585
|
case 110:
|
|
@@ -616,36 +616,36 @@ var V, Pi = function(e) {
|
|
|
616
616
|
case 13:
|
|
617
617
|
k.charCodeAt(d) === 10 && ++d;
|
|
618
618
|
case 10:
|
|
619
|
-
|
|
619
|
+
P.C && (we = d, ++De);
|
|
620
620
|
break;
|
|
621
621
|
default:
|
|
622
622
|
l += String.fromCharCode(p);
|
|
623
623
|
}
|
|
624
624
|
} else
|
|
625
|
-
p !== 13 && p !== 10 && p !== 8232 && p !== 8233 || r(
|
|
625
|
+
p !== 13 && p !== 10 && p !== 8232 && p !== 8233 || r(X, "Unterminated string constant"), l += String.fromCharCode(p), ++d;
|
|
626
626
|
}
|
|
627
627
|
return;
|
|
628
628
|
case 47:
|
|
629
|
-
a = k.charCodeAt(d + 1), tt ? (++d,
|
|
629
|
+
a = k.charCodeAt(d + 1), tt ? (++d, f()) : a === 61 ? b(Ue, 2) : b(Tr, 1);
|
|
630
630
|
return;
|
|
631
631
|
case 37:
|
|
632
632
|
case 42:
|
|
633
|
-
k.charCodeAt(d + 1) === 61 ? b(
|
|
633
|
+
k.charCodeAt(d + 1) === 61 ? b(Ue, 2) : b(qo, 1);
|
|
634
634
|
return;
|
|
635
635
|
case 124:
|
|
636
636
|
case 38:
|
|
637
|
-
l = k.charCodeAt(d + 1), l === a ? b(a === 124 ? Rr : Ar, 2) : l === 61 ? b(
|
|
637
|
+
l = k.charCodeAt(d + 1), l === a ? b(a === 124 ? Rr : Ar, 2) : l === 61 ? b(Ue, 2) : b(a === 124 ? Wo : Fo, 1);
|
|
638
638
|
return;
|
|
639
639
|
case 94:
|
|
640
|
-
k.charCodeAt(d + 1) === 61 ? b(
|
|
640
|
+
k.charCodeAt(d + 1) === 61 ? b(Ue, 2) : b(Lo, 1);
|
|
641
641
|
return;
|
|
642
642
|
case 43:
|
|
643
643
|
case 45:
|
|
644
|
-
l = k.charCodeAt(d + 1), l === a ? l === 45 && k.charCodeAt(d + 2) === 62 && $t.test(k.slice(
|
|
644
|
+
l = k.charCodeAt(d + 1), l === a ? l === 45 && k.charCodeAt(d + 2) === 62 && $t.test(k.slice(xe, d)) ? (d += 3, u(), c(), g()) : b(Uo, 2) : l === 61 ? b(Ue, 2) : b(zo, 1);
|
|
645
645
|
return;
|
|
646
646
|
case 60:
|
|
647
647
|
case 62:
|
|
648
|
-
l = k.charCodeAt(d + 1), p = 1, l === a ? (p = a === 62 && k.charCodeAt(d + 2) === 62 ? 3 : 2, k.charCodeAt(d + p) === 61 ? b(
|
|
648
|
+
l = k.charCodeAt(d + 1), p = 1, l === a ? (p = a === 62 && k.charCodeAt(d + 2) === 62 ? 3 : 2, k.charCodeAt(d + p) === 61 ? b(Ue, p + 1) : b(Ko, p)) : l === 33 && a === 60 && k.charCodeAt(d + 2) === 45 && k.charCodeAt(d + 3) === 45 ? (d += 4, u(), c(), g()) : (l === 61 && (p = k.charCodeAt(d + 2) === 61 ? 3 : 2), b(Ho, p));
|
|
649
649
|
return;
|
|
650
650
|
case 61:
|
|
651
651
|
case 33:
|
|
@@ -656,16 +656,16 @@ var V, Pi = function(e) {
|
|
|
656
656
|
}
|
|
657
657
|
return !1;
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
if (a ? d =
|
|
661
|
-
return
|
|
659
|
+
function g(a) {
|
|
660
|
+
if (a ? d = X + 1 : X = d, P.C && (Yt = new i()), a)
|
|
661
|
+
return f();
|
|
662
662
|
if (d >= Le)
|
|
663
663
|
return s(tn);
|
|
664
664
|
if (a = k.charCodeAt(d), n(a) || a === 92)
|
|
665
|
-
return
|
|
665
|
+
return ee();
|
|
666
666
|
if (m(a) === !1) {
|
|
667
667
|
if (a = String.fromCharCode(a), a === "\\" || xr.test(a))
|
|
668
|
-
return
|
|
668
|
+
return ee();
|
|
669
669
|
r(d, "Unexpected character '" + a + "'");
|
|
670
670
|
}
|
|
671
671
|
}
|
|
@@ -673,338 +673,338 @@ var V, Pi = function(e) {
|
|
|
673
673
|
var p = k.slice(d, d + l);
|
|
674
674
|
d += l, s(a, p);
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function f() {
|
|
677
677
|
for (var a, l, p = d; ; ) {
|
|
678
678
|
d >= Le && r(p, "Unterminated regexp");
|
|
679
|
-
var
|
|
680
|
-
if ($t.test(
|
|
679
|
+
var h = k.charAt(d);
|
|
680
|
+
if ($t.test(h) && r(p, "Unterminated regexp"), a)
|
|
681
681
|
a = !1;
|
|
682
682
|
else {
|
|
683
|
-
if (
|
|
683
|
+
if (h === "[")
|
|
684
684
|
l = !0;
|
|
685
|
-
else if (
|
|
685
|
+
else if (h === "]" && l)
|
|
686
686
|
l = !1;
|
|
687
|
-
else if (
|
|
687
|
+
else if (h === "/" && !l)
|
|
688
688
|
break;
|
|
689
|
-
a =
|
|
689
|
+
a = h === "\\";
|
|
690
690
|
}
|
|
691
691
|
++d;
|
|
692
692
|
}
|
|
693
|
-
a = k.slice(p, d), ++d, (l =
|
|
693
|
+
a = k.slice(p, d), ++d, (l = M()) && !/^[gmi]*$/.test(l) && r(p, "Invalid regexp flag");
|
|
694
694
|
try {
|
|
695
|
-
var
|
|
696
|
-
} catch (
|
|
697
|
-
throw
|
|
695
|
+
var O = new RegExp(a, l);
|
|
696
|
+
} catch (Y) {
|
|
697
|
+
throw Y instanceof SyntaxError && r(p, Y.message), Y;
|
|
698
698
|
}
|
|
699
|
-
s(rr,
|
|
699
|
+
s(rr, O);
|
|
700
700
|
}
|
|
701
701
|
function S(a, l) {
|
|
702
|
-
for (var p = d,
|
|
703
|
-
var
|
|
704
|
-
if (
|
|
702
|
+
for (var p = d, h = 0, O = l === void 0 ? 1 / 0 : l, Y = 0; Y < O; ++Y) {
|
|
703
|
+
var ie = k.charCodeAt(d);
|
|
704
|
+
if (ie = 97 <= ie ? ie - 97 + 10 : 65 <= ie ? ie - 65 + 10 : 48 <= ie && 57 >= ie ? ie - 48 : 1 / 0, ie >= a)
|
|
705
705
|
break;
|
|
706
|
-
++d,
|
|
706
|
+
++d, h = h * a + ie;
|
|
707
707
|
}
|
|
708
|
-
return d === p || l !== void 0 && d - p !== l ? null :
|
|
708
|
+
return d === p || l !== void 0 && d - p !== l ? null : h;
|
|
709
709
|
}
|
|
710
710
|
function A(a) {
|
|
711
|
-
var l = d, p = !1,
|
|
711
|
+
var l = d, p = !1, h = k.charCodeAt(d) === 48;
|
|
712
712
|
a || S(10) !== null || r(l, "Invalid number"), k.charCodeAt(d) === 46 && (++d, S(10), p = !0), a = k.charCodeAt(d), (a === 69 || a === 101) && (a = k.charCodeAt(++d), a !== 43 && a !== 45 || ++d, S(10) === null && r(l, "Invalid number"), p = !0), n(k.charCodeAt(d)) && r(d, "Identifier directly after number"), a = k.slice(l, d);
|
|
713
|
-
var
|
|
714
|
-
p ?
|
|
713
|
+
var O;
|
|
714
|
+
p ? O = parseFloat(a) : h && a.length !== 1 ? /[89]/.test(a) || ue ? r(l, "Invalid number") : O = parseInt(a, 8) : O = parseInt(a, 10), s(rt, O);
|
|
715
715
|
}
|
|
716
716
|
function $(a) {
|
|
717
|
-
return a = S(16, a), a === null && r(
|
|
717
|
+
return a = S(16, a), a === null && r(X, "Bad character escape sequence"), a;
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function M() {
|
|
720
720
|
Ke = !1;
|
|
721
721
|
for (var a, l = !0, p = d; ; ) {
|
|
722
|
-
var
|
|
723
|
-
if (t(
|
|
722
|
+
var h = k.charCodeAt(d);
|
|
723
|
+
if (t(h))
|
|
724
724
|
Ke && (a += k.charAt(d)), ++d;
|
|
725
|
-
else if (
|
|
726
|
-
Ke || (a = k.slice(p, d)), Ke = !0, k.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d,
|
|
727
|
-
var
|
|
728
|
-
|
|
725
|
+
else if (h === 92) {
|
|
726
|
+
Ke || (a = k.slice(p, d)), Ke = !0, k.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = $(4);
|
|
727
|
+
var O = String.fromCharCode(h);
|
|
728
|
+
O || r(d - 1, "Invalid Unicode escape"), (l ? n(h) : t(h)) || r(d - 4, "Invalid Unicode escape"), a += O;
|
|
729
729
|
} else
|
|
730
730
|
break;
|
|
731
731
|
l = !1;
|
|
732
732
|
}
|
|
733
733
|
return Ke ? a : k.slice(p, d);
|
|
734
734
|
}
|
|
735
|
-
function
|
|
736
|
-
var a =
|
|
735
|
+
function ee() {
|
|
736
|
+
var a = M(), l = Me;
|
|
737
737
|
!Ke && _o(a) && (l = Do[a]), s(l, a);
|
|
738
738
|
}
|
|
739
|
-
function
|
|
740
|
-
Zt =
|
|
739
|
+
function I() {
|
|
740
|
+
Zt = X, xe = Fe, en = Qt, g();
|
|
741
741
|
}
|
|
742
|
-
function
|
|
743
|
-
if (
|
|
744
|
-
for (; d <
|
|
745
|
-
|
|
746
|
-
`,
|
|
747
|
-
c(),
|
|
742
|
+
function de(a) {
|
|
743
|
+
if (ue = a, d = X, P.C)
|
|
744
|
+
for (; d < we; )
|
|
745
|
+
we = k.lastIndexOf(`
|
|
746
|
+
`, we - 2) + 1, --De;
|
|
747
|
+
c(), g();
|
|
748
748
|
}
|
|
749
|
-
function
|
|
750
|
-
this.type = null, this.start =
|
|
749
|
+
function j() {
|
|
750
|
+
this.type = null, this.start = X, this.end = null;
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function ye() {
|
|
753
753
|
this.start = Yt, this.end = null, Xt && (this.source = Xt);
|
|
754
754
|
}
|
|
755
755
|
function K() {
|
|
756
|
-
var a = new
|
|
757
|
-
return
|
|
756
|
+
var a = new j();
|
|
757
|
+
return P.C && (a.X = new ye()), P.vb && (a.sourceFile = P.vb), P.Xa && (a.j = [X, 0]), a;
|
|
758
758
|
}
|
|
759
|
-
function
|
|
760
|
-
var l = new
|
|
761
|
-
return l.start = a.start,
|
|
759
|
+
function oe(a) {
|
|
760
|
+
var l = new j();
|
|
761
|
+
return l.start = a.start, P.C && (l.X = new ye(), l.X.start = a.X.start), P.Xa && (l.j = [a.j[0], 0]), l;
|
|
762
762
|
}
|
|
763
|
-
function
|
|
764
|
-
return a.type = l, a.end =
|
|
763
|
+
function w(a, l) {
|
|
764
|
+
return a.type = l, a.end = xe, P.C && (a.X.end = en), P.Xa && (a.j[1] = xe), a;
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function he(a) {
|
|
767
767
|
return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
|
|
768
768
|
}
|
|
769
769
|
function L(a) {
|
|
770
|
-
return x === a ? (
|
|
770
|
+
return x === a ? (I(), !0) : !1;
|
|
771
771
|
}
|
|
772
772
|
function wt() {
|
|
773
|
-
return !
|
|
773
|
+
return !P.fc && (x === tn || x === He || $t.test(k.slice(xe, X)));
|
|
774
774
|
}
|
|
775
|
-
function
|
|
776
|
-
L(
|
|
775
|
+
function Ve() {
|
|
776
|
+
L(Ee) || wt() || ke();
|
|
777
777
|
}
|
|
778
|
-
function
|
|
779
|
-
x === a ?
|
|
778
|
+
function _(a) {
|
|
779
|
+
x === a ? I() : ke();
|
|
780
780
|
}
|
|
781
|
-
function
|
|
782
|
-
r(
|
|
781
|
+
function ke() {
|
|
782
|
+
r(X, "Unexpected token");
|
|
783
783
|
}
|
|
784
784
|
function Tt(a) {
|
|
785
|
-
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"),
|
|
785
|
+
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), ue && a.type === "Identifier" && At(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
786
786
|
}
|
|
787
|
-
function
|
|
788
|
-
(x === Tr || x ===
|
|
787
|
+
function me() {
|
|
788
|
+
(x === Tr || x === Ue && fe === "/=") && g(!0);
|
|
789
789
|
var a = x, l = K();
|
|
790
790
|
switch (a) {
|
|
791
791
|
case nn:
|
|
792
792
|
case ir:
|
|
793
|
-
|
|
793
|
+
I();
|
|
794
794
|
var p = a === nn;
|
|
795
|
-
L(
|
|
796
|
-
for (var
|
|
797
|
-
var
|
|
798
|
-
if ((l.label === null ||
|
|
795
|
+
L(Ee) || wt() ? l.label = null : x !== Me ? ke() : (l.label = Ce(), Ve());
|
|
796
|
+
for (var h = 0; h < J.length; ++h) {
|
|
797
|
+
var O = J[h];
|
|
798
|
+
if ((l.label === null || O.name === l.label.name) && (O.kind !== null && (p || O.kind === "loop") || l.label && p))
|
|
799
799
|
break;
|
|
800
800
|
}
|
|
801
|
-
return
|
|
801
|
+
return h === J.length && r(l.start, "Unsyntactic " + a.l), w(l, p ? "BreakStatement" : "ContinueStatement");
|
|
802
802
|
case sr:
|
|
803
|
-
return
|
|
803
|
+
return I(), Ve(), w(l, "DebuggerStatement");
|
|
804
804
|
case lr:
|
|
805
|
-
return
|
|
805
|
+
return I(), J.push(pn), l.body = me(), J.pop(), _(ln), l.test = Qe(), Ve(), w(l, "DoWhileStatement");
|
|
806
806
|
case pr:
|
|
807
|
-
return
|
|
807
|
+
return I(), J.push(pn), _(Te), x === Ee ? Kt(l, null) : x === an ? (a = K(), I(), tr(a, !0), w(a, "VariableDeclaration"), a.fa.length === 1 && L(Rt) ? er(l, a) : Kt(l, a)) : (a = ne(!1, !0), L(Rt) ? (Tt(a), er(l, a)) : Kt(l, a));
|
|
808
808
|
case on:
|
|
809
|
-
return
|
|
809
|
+
return I(), _t(l, !0);
|
|
810
810
|
case dr:
|
|
811
|
-
return
|
|
812
|
-
case fr:
|
|
813
|
-
return nt || O.Ib || r(Y, "'return' outside of function"), E(), L(we) || wt() ? l.K = null : (l.K = re(), je()), R(l, "ReturnStatement");
|
|
814
|
-
case sn:
|
|
815
|
-
for (E(), l.Qb = Qe(), l.tb = [], J(ot), X.push(Yo); x !== He; )
|
|
816
|
-
x === rn || x === ar ? (a = x === rn, f && R(f, "SwitchCase"), l.tb.push(f = K()), f.da = [], E(), a ? f.test = re() : (p && r(Zt, "Multiple default clauses"), p = !0, f.test = null), J(it)) : (f || be(), f.da.push(he()));
|
|
817
|
-
return f && R(f, "SwitchCase"), E(), X.pop(), R(l, "SwitchStatement");
|
|
811
|
+
return I(), l.test = Qe(), l.da = me(), l.alternate = L(ur) ? me() : null, w(l, "IfStatement");
|
|
818
812
|
case hr:
|
|
819
|
-
return
|
|
813
|
+
return nt || P.Ib || r(X, "'return' outside of function"), I(), L(Ee) || wt() ? l.K = null : (l.K = ne(), Ve()), w(l, "ReturnStatement");
|
|
814
|
+
case sn:
|
|
815
|
+
for (I(), l.Qb = Qe(), l.tb = [], _(ot), J.push(Yo); x !== He; )
|
|
816
|
+
x === rn || x === ar ? (a = x === rn, h && w(h, "SwitchCase"), l.tb.push(h = K()), h.da = [], I(), a ? h.test = ne() : (p && r(Zt, "Multiple default clauses"), p = !0, h.test = null), _(it)) : (h || ke(), h.da.push(me()));
|
|
817
|
+
return h && w(h, "SwitchCase"), I(), J.pop(), w(l, "SwitchStatement");
|
|
818
|
+
case fr:
|
|
819
|
+
return I(), $t.test(k.slice(xe, X)) && r(xe, "Illegal newline after throw"), l.K = ne(), Ve(), w(l, "ThrowStatement");
|
|
820
820
|
case mr:
|
|
821
|
-
return
|
|
821
|
+
return I(), l.block = Ze(), l.Ea = null, x === or && (a = K(), I(), _(Te), a.Ua = Ce(), ue && At(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), _(ve), a.body = Ze(), l.Ea = w(a, "CatchClause")), l.fb = L(cr) ? Ze() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), w(l, "TryStatement");
|
|
822
822
|
case an:
|
|
823
|
-
return
|
|
823
|
+
return I(), tr(l), Ve(), w(l, "VariableDeclaration");
|
|
824
824
|
case ln:
|
|
825
|
-
return
|
|
825
|
+
return I(), l.test = Qe(), J.push(pn), l.body = me(), J.pop(), w(l, "WhileStatement");
|
|
826
826
|
case gr:
|
|
827
|
-
return
|
|
827
|
+
return ue && r(X, "'with' in strict mode"), I(), l.object = Qe(), l.body = me(), w(l, "WithStatement");
|
|
828
828
|
case ot:
|
|
829
829
|
return Ze();
|
|
830
|
-
case
|
|
831
|
-
return
|
|
830
|
+
case Ee:
|
|
831
|
+
return I(), w(l, "EmptyStatement");
|
|
832
832
|
default:
|
|
833
|
-
if (p = fe,
|
|
834
|
-
for (
|
|
835
|
-
|
|
836
|
-
return
|
|
833
|
+
if (p = fe, O = ne(), a === Me && O.type === "Identifier" && L(it)) {
|
|
834
|
+
for (h = 0; h < J.length; ++h)
|
|
835
|
+
J[h].name === p && r(O.start, "Label '" + p + "' is already declared");
|
|
836
|
+
return J.push({
|
|
837
837
|
name: p,
|
|
838
838
|
kind: x.W ? "loop" : x === sn ? "switch" : null
|
|
839
|
-
}), l.body =
|
|
839
|
+
}), l.body = me(), J.pop(), l.label = O, w(l, "LabeledStatement");
|
|
840
840
|
}
|
|
841
|
-
return l.la =
|
|
841
|
+
return l.la = O, Ve(), w(l, "ExpressionStatement");
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
function Qe() {
|
|
845
|
-
|
|
846
|
-
var a =
|
|
847
|
-
return
|
|
845
|
+
_(Te);
|
|
846
|
+
var a = ne();
|
|
847
|
+
return _(ve), a;
|
|
848
848
|
}
|
|
849
849
|
function Ze(a) {
|
|
850
|
-
var l = K(), p = !0,
|
|
851
|
-
for (l.body = [],
|
|
852
|
-
var
|
|
853
|
-
if (l.body.push(
|
|
854
|
-
var
|
|
855
|
-
|
|
850
|
+
var l = K(), p = !0, h = !1;
|
|
851
|
+
for (l.body = [], _(ot); !L(He); ) {
|
|
852
|
+
var O = me();
|
|
853
|
+
if (l.body.push(O), p && a && he(O)) {
|
|
854
|
+
var Y = h;
|
|
855
|
+
de(h = !0);
|
|
856
856
|
}
|
|
857
857
|
p = !1;
|
|
858
858
|
}
|
|
859
|
-
return
|
|
859
|
+
return h && !Y && de(!1), w(l, "BlockStatement");
|
|
860
860
|
}
|
|
861
861
|
function Kt(a, l) {
|
|
862
|
-
return a.ua = l,
|
|
862
|
+
return a.ua = l, _(Ee), a.test = x === Ee ? null : ne(), _(Ee), a.update = x === ve ? null : ne(), _(ve), a.body = me(), J.pop(), w(a, "ForStatement");
|
|
863
863
|
}
|
|
864
864
|
function er(a, l) {
|
|
865
|
-
return a.left = l, a.right =
|
|
865
|
+
return a.left = l, a.right = ne(), _(ve), a.body = me(), J.pop(), w(a, "ForInStatement");
|
|
866
866
|
}
|
|
867
867
|
function tr(a, l) {
|
|
868
868
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
869
869
|
var p = K();
|
|
870
|
-
if (p.id =
|
|
870
|
+
if (p.id = Ce(), ue && At(p.id.name) && r(p.id.start, "Binding " + p.id.name + " in strict mode"), p.ua = L(Er) ? ne(!0, l) : null, a.fa.push(w(p, "VariableDeclarator")), !L(Oe))
|
|
871
871
|
break;
|
|
872
872
|
}
|
|
873
873
|
}
|
|
874
|
-
function
|
|
874
|
+
function ne(a, l) {
|
|
875
875
|
var p = zt(l);
|
|
876
|
-
if (!a && x ===
|
|
877
|
-
for (a =
|
|
876
|
+
if (!a && x === Oe) {
|
|
877
|
+
for (a = oe(p), a.xb = [p]; L(Oe); )
|
|
878
878
|
a.xb.push(zt(l));
|
|
879
|
-
return
|
|
879
|
+
return w(a, "SequenceExpression");
|
|
880
880
|
}
|
|
881
881
|
return p;
|
|
882
882
|
}
|
|
883
883
|
function zt(a) {
|
|
884
884
|
var l = qt(Gt(), -1, a);
|
|
885
885
|
if (L(wr)) {
|
|
886
|
-
var p =
|
|
887
|
-
p.test = l, p.da =
|
|
886
|
+
var p = oe(l);
|
|
887
|
+
p.test = l, p.da = ne(!0), _(it), p.alternate = ne(!0, a), l = w(p, "ConditionalExpression");
|
|
888
888
|
}
|
|
889
|
-
return x.Cb ? (p =
|
|
889
|
+
return x.Cb ? (p = oe(l), p.operator = fe, p.left = l, I(), p.right = zt(a), Tt(l), w(p, "AssignmentExpression")) : l;
|
|
890
890
|
}
|
|
891
891
|
function qt(a, l, p) {
|
|
892
|
-
var
|
|
893
|
-
if (
|
|
894
|
-
var
|
|
895
|
-
return
|
|
892
|
+
var h = x.L;
|
|
893
|
+
if (h !== null && (!p || x !== Rt) && h > l) {
|
|
894
|
+
var O = oe(a);
|
|
895
|
+
return O.left = a, O.operator = fe, a = x, I(), O.right = qt(Gt(), h, p), h = w(O, a === Rr || a === Ar ? "LogicalExpression" : "BinaryExpression"), qt(h, l, p);
|
|
896
896
|
}
|
|
897
897
|
return a;
|
|
898
898
|
}
|
|
899
899
|
function Gt() {
|
|
900
900
|
if (x.prefix) {
|
|
901
901
|
var a = K(), l = x.$b;
|
|
902
|
-
return a.operator = fe, tt = a.prefix = !0,
|
|
902
|
+
return a.operator = fe, tt = a.prefix = !0, I(), a.K = Gt(), l ? Tt(a.K) : ue && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), w(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
903
903
|
}
|
|
904
904
|
for (l = et(Et()); x.cc && !wt(); )
|
|
905
|
-
a =
|
|
905
|
+
a = oe(l), a.operator = fe, a.prefix = !1, a.K = l, Tt(l), I(), l = w(a, "UpdateExpression");
|
|
906
906
|
return l;
|
|
907
907
|
}
|
|
908
908
|
function et(a, l) {
|
|
909
909
|
if (L(Cr)) {
|
|
910
|
-
var p =
|
|
911
|
-
return p.object = a, p.Wa =
|
|
910
|
+
var p = oe(a);
|
|
911
|
+
return p.object = a, p.Wa = Ce(!0), p.bb = !1, et(w(p, "MemberExpression"), l);
|
|
912
912
|
}
|
|
913
|
-
return L(un) ? (p =
|
|
913
|
+
return L(un) ? (p = oe(a), p.object = a, p.Wa = ne(), p.bb = !0, _(cn), et(w(p, "MemberExpression"), l)) : !l && L(Te) ? (p = oe(a), p.callee = a, p.arguments = Jt(ve, !1), et(w(p, "CallExpression"), l)) : a;
|
|
914
914
|
}
|
|
915
915
|
function Et() {
|
|
916
916
|
switch (x) {
|
|
917
917
|
case vr:
|
|
918
918
|
var a = K();
|
|
919
|
-
return
|
|
919
|
+
return I(), w(a, "ThisExpression");
|
|
920
920
|
case Me:
|
|
921
|
-
return
|
|
921
|
+
return Ce();
|
|
922
922
|
case rt:
|
|
923
923
|
case It:
|
|
924
924
|
case rr:
|
|
925
|
-
return a = K(), a.value = fe, a.raw = k.slice(
|
|
925
|
+
return a = K(), a.value = fe, a.raw = k.slice(X, Fe), I(), w(a, "Literal");
|
|
926
926
|
case br:
|
|
927
927
|
case Sr:
|
|
928
928
|
case kr:
|
|
929
|
-
return a = K(), a.value = x.$a, a.raw = x.l,
|
|
930
|
-
case
|
|
929
|
+
return a = K(), a.value = x.$a, a.raw = x.l, I(), w(a, "Literal");
|
|
930
|
+
case Te:
|
|
931
931
|
a = Yt;
|
|
932
|
-
var l =
|
|
933
|
-
|
|
934
|
-
var p =
|
|
935
|
-
return p.start = l, p.end = Fe,
|
|
932
|
+
var l = X;
|
|
933
|
+
I();
|
|
934
|
+
var p = ne();
|
|
935
|
+
return p.start = l, p.end = Fe, P.C && (p.X.start = a, p.X.end = Qt), P.Xa && (p.j = [l, Fe]), _(ve), p;
|
|
936
936
|
case un:
|
|
937
|
-
return a = K(),
|
|
937
|
+
return a = K(), I(), a.elements = Jt(cn, !0, !0), w(a, "ArrayExpression");
|
|
938
938
|
case ot:
|
|
939
|
-
for (a = K(), l = !0, p = !1, a.h = [],
|
|
939
|
+
for (a = K(), l = !0, p = !1, a.h = [], I(); !L(He); ) {
|
|
940
940
|
if (l)
|
|
941
941
|
l = !1;
|
|
942
|
-
else if (
|
|
942
|
+
else if (_(Oe), P.sb && L(He))
|
|
943
943
|
break;
|
|
944
|
-
var
|
|
945
|
-
key: x === rt || x === It ? Et() :
|
|
946
|
-
},
|
|
944
|
+
var h = {
|
|
945
|
+
key: x === rt || x === It ? Et() : Ce(!0)
|
|
946
|
+
}, O = !1;
|
|
947
947
|
if (L(it)) {
|
|
948
|
-
|
|
949
|
-
var
|
|
948
|
+
h.value = ne(!0);
|
|
949
|
+
var Y = h.kind = "init";
|
|
950
950
|
} else
|
|
951
|
-
|
|
952
|
-
if (
|
|
953
|
-
for (var
|
|
954
|
-
var ze = a.h[
|
|
955
|
-
if (ze.key.name ===
|
|
956
|
-
var dn =
|
|
957
|
-
dn && !
|
|
951
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? ke() : (O = p = !0, Y = h.kind = h.key.name, h.key = x === rt || x === It ? Et() : Ce(!0), x !== Te && ke(), h.value = _t(K(), !1));
|
|
952
|
+
if (h.key.type === "Identifier" && (ue || p))
|
|
953
|
+
for (var ie = 0; ie < a.h.length; ++ie) {
|
|
954
|
+
var ze = a.h[ie];
|
|
955
|
+
if (ze.key.name === h.key.name) {
|
|
956
|
+
var dn = Y === ze.kind || O && ze.kind === "init" || Y === "init" && (ze.kind === "get" || ze.kind === "set");
|
|
957
|
+
dn && !ue && Y === "init" && ze.kind === "init" && (dn = !1), dn && r(h.key.start, "Redefinition of property");
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
a.h.push(
|
|
960
|
+
a.h.push(h);
|
|
961
961
|
}
|
|
962
|
-
return
|
|
962
|
+
return w(a, "ObjectExpression");
|
|
963
963
|
case on:
|
|
964
|
-
return a = K(),
|
|
964
|
+
return a = K(), I(), _t(a, !1);
|
|
965
965
|
case yr:
|
|
966
|
-
return a = K(),
|
|
966
|
+
return a = K(), I(), a.callee = et(Et(), !0), a.arguments = L(Te) ? Jt(ve, !1) : Vo, w(a, "NewExpression");
|
|
967
967
|
}
|
|
968
|
-
|
|
968
|
+
ke();
|
|
969
969
|
}
|
|
970
970
|
function _t(a, l) {
|
|
971
|
-
x === Me ? a.id =
|
|
971
|
+
x === Me ? a.id = Ce() : l ? ke() : a.id = null, a.oa = [];
|
|
972
972
|
var p = !0;
|
|
973
|
-
for (
|
|
974
|
-
p ? p = !1 :
|
|
973
|
+
for (_(Te); !L(ve); )
|
|
974
|
+
p ? p = !1 : _(Oe), a.oa.push(Ce());
|
|
975
975
|
p = nt;
|
|
976
|
-
var
|
|
977
|
-
if (nt = !0,
|
|
976
|
+
var h = J;
|
|
977
|
+
if (nt = !0, J = [], a.body = Ze(!0), nt = p, J = h, ue || a.body.body.length && he(a.body.body[0])) {
|
|
978
978
|
for (p = a.id ? -1 : 0; p < a.oa.length; ++p)
|
|
979
|
-
if (
|
|
980
|
-
for (var
|
|
981
|
-
|
|
979
|
+
if (h = 0 > p ? a.id : a.oa[p], ($r(h.name) || At(h.name)) && r(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= p)
|
|
980
|
+
for (var O = 0; O < p; ++O)
|
|
981
|
+
h.name === a.oa[O].name && r(h.start, "Argument name clash in strict mode");
|
|
982
982
|
}
|
|
983
|
-
return
|
|
983
|
+
return w(a, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
984
984
|
}
|
|
985
985
|
function Jt(a, l, p) {
|
|
986
|
-
for (var
|
|
987
|
-
if (
|
|
988
|
-
|
|
989
|
-
else if (
|
|
986
|
+
for (var h = [], O = !0; !L(a); ) {
|
|
987
|
+
if (O)
|
|
988
|
+
O = !1;
|
|
989
|
+
else if (_(Oe), l && P.sb && L(a))
|
|
990
990
|
break;
|
|
991
|
-
|
|
991
|
+
h.push(p && x === Oe ? null : ne(!0));
|
|
992
992
|
}
|
|
993
|
-
return
|
|
993
|
+
return h;
|
|
994
994
|
}
|
|
995
|
-
function
|
|
995
|
+
function Ce(a) {
|
|
996
996
|
var l = K();
|
|
997
|
-
return a &&
|
|
997
|
+
return a && P.yb === "everywhere" && (a = !1), x === Me ? (!a && (P.yb && Go(fe) || ue && $r(fe)) && k.slice(X, Fe).indexOf("\\") === -1 && r(X, "The keyword '" + fe + "' is reserved"), l.name = fe) : a && x.l ? l.name = x.l : ke(), tt = !1, I(), w(l, "Identifier");
|
|
998
998
|
}
|
|
999
999
|
e.version = "0.5.0";
|
|
1000
|
-
var
|
|
1000
|
+
var P, k = "", Le, Xt;
|
|
1001
1001
|
e.parse = function(a, l) {
|
|
1002
|
-
k = String(a), Le = k.length,
|
|
1002
|
+
k = String(a), Le = k.length, P = l || {};
|
|
1003
1003
|
for (var p in nr)
|
|
1004
|
-
Object.prototype.hasOwnProperty.call(
|
|
1005
|
-
for (Xt =
|
|
1006
|
-
p =
|
|
1007
|
-
return
|
|
1004
|
+
Object.prototype.hasOwnProperty.call(P, p) || (P[p] = nr[p]);
|
|
1005
|
+
for (Xt = P.sourceFile, De = 1, d = we = 0, tt = !0, c(), p = P.dc, Zt = xe = d, P.C && (en = new i()), nt = ue = !1, J = [], g(), a = p || K(), l = !0, p || (a.body = []); x !== tn; )
|
|
1006
|
+
p = me(), a.body.push(p), l && he(p) && de(!0), l = !1;
|
|
1007
|
+
return w(a, "Program");
|
|
1008
1008
|
};
|
|
1009
1009
|
var nr = {
|
|
1010
1010
|
fc: !1,
|
|
@@ -1017,7 +1017,7 @@ var V, Pi = function(e) {
|
|
|
1017
1017
|
dc: null,
|
|
1018
1018
|
sourceFile: null,
|
|
1019
1019
|
vb: null
|
|
1020
|
-
}, d = 0,
|
|
1020
|
+
}, d = 0, X = 0, Fe = 0, Yt, Qt, x, fe, tt, De, we, Zt = 0, xe = 0, en, nt, J, ue, Vo = [], rt = {
|
|
1021
1021
|
type: "num"
|
|
1022
1022
|
}, rr = {
|
|
1023
1023
|
type: "regexp"
|
|
@@ -1055,12 +1055,12 @@ var V, Pi = function(e) {
|
|
|
1055
1055
|
l: "function"
|
|
1056
1056
|
}, dr = {
|
|
1057
1057
|
l: "if"
|
|
1058
|
-
},
|
|
1058
|
+
}, hr = {
|
|
1059
1059
|
l: "return",
|
|
1060
1060
|
m: !0
|
|
1061
1061
|
}, sn = {
|
|
1062
1062
|
l: "switch"
|
|
1063
|
-
},
|
|
1063
|
+
}, fr = {
|
|
1064
1064
|
l: "throw",
|
|
1065
1065
|
m: !0
|
|
1066
1066
|
}, mr = {
|
|
@@ -1103,9 +1103,9 @@ var V, Pi = function(e) {
|
|
|
1103
1103
|
for: pr,
|
|
1104
1104
|
function: on,
|
|
1105
1105
|
if: dr,
|
|
1106
|
-
return:
|
|
1106
|
+
return: hr,
|
|
1107
1107
|
switch: sn,
|
|
1108
|
-
throw:
|
|
1108
|
+
throw: fr,
|
|
1109
1109
|
try: mr,
|
|
1110
1110
|
var: an,
|
|
1111
1111
|
while: ln,
|
|
@@ -1146,15 +1146,15 @@ var V, Pi = function(e) {
|
|
|
1146
1146
|
m: !0
|
|
1147
1147
|
}, He = {
|
|
1148
1148
|
type: "}"
|
|
1149
|
-
},
|
|
1149
|
+
}, Te = {
|
|
1150
1150
|
type: "(",
|
|
1151
1151
|
m: !0
|
|
1152
|
-
},
|
|
1152
|
+
}, ve = {
|
|
1153
1153
|
type: ")"
|
|
1154
|
-
},
|
|
1154
|
+
}, Oe = {
|
|
1155
1155
|
type: ",",
|
|
1156
1156
|
m: !0
|
|
1157
|
-
},
|
|
1157
|
+
}, Ee = {
|
|
1158
1158
|
type: ";",
|
|
1159
1159
|
m: !0
|
|
1160
1160
|
}, it = {
|
|
@@ -1171,7 +1171,7 @@ var V, Pi = function(e) {
|
|
|
1171
1171
|
}, Er = {
|
|
1172
1172
|
Cb: !0,
|
|
1173
1173
|
m: !0
|
|
1174
|
-
},
|
|
1174
|
+
}, Ue = {
|
|
1175
1175
|
Cb: !0,
|
|
1176
1176
|
m: !0
|
|
1177
1177
|
}, Uo = {
|
|
@@ -1218,8 +1218,8 @@ var V, Pi = function(e) {
|
|
|
1218
1218
|
kind: "switch"
|
|
1219
1219
|
};
|
|
1220
1220
|
}, bn = bn = typeof globalThis > "u" ? void 0 : globalThis;
|
|
1221
|
-
|
|
1222
|
-
function
|
|
1221
|
+
Oi(bn.j || (bn.j = {}));
|
|
1222
|
+
function y(e, t) {
|
|
1223
1223
|
typeof e == "string" && (e = _e(e, "code"));
|
|
1224
1224
|
var n = e.constructor;
|
|
1225
1225
|
this.ya = function() {
|
|
@@ -1235,9 +1235,9 @@ function g(e, t) {
|
|
|
1235
1235
|
for (s in this)
|
|
1236
1236
|
typeof this[s] == "function" && (i = s.match(e)) && (this.rb[i[1]] = this[s].bind(this));
|
|
1237
1237
|
this.N = kn(this, this.ra, null), this.Na = this.N.object, this.ra = _e(this.ba.join(`
|
|
1238
|
-
`), "polyfills"), this.ba = void 0, Ft(this.ra), i = new
|
|
1238
|
+
`), "polyfills"), this.ba = void 0, Ft(this.ra), i = new E(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new E(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
1239
1239
|
}
|
|
1240
|
-
var
|
|
1240
|
+
var Or = {
|
|
1241
1241
|
C: !0,
|
|
1242
1242
|
kc: 5
|
|
1243
1243
|
}, Bn = {
|
|
@@ -1248,7 +1248,7 @@ var Pr = {
|
|
|
1248
1248
|
configurable: !0,
|
|
1249
1249
|
enumerable: !1,
|
|
1250
1250
|
writable: !0
|
|
1251
|
-
},
|
|
1251
|
+
}, ae = {
|
|
1252
1252
|
configurable: !0,
|
|
1253
1253
|
enumerable: !1,
|
|
1254
1254
|
writable: !1
|
|
@@ -1256,7 +1256,7 @@ var Pr = {
|
|
|
1256
1256
|
configurable: !1,
|
|
1257
1257
|
enumerable: !1,
|
|
1258
1258
|
writable: !1
|
|
1259
|
-
},
|
|
1259
|
+
}, Pr = {
|
|
1260
1260
|
configurable: !1,
|
|
1261
1261
|
enumerable: !0,
|
|
1262
1262
|
writable: !0
|
|
@@ -1268,12 +1268,12 @@ var Pr = {
|
|
|
1268
1268
|
VALUE_IN_DESCRIPTOR: !0
|
|
1269
1269
|
}, qe = {
|
|
1270
1270
|
REGEXP_TIMEOUT: !0
|
|
1271
|
-
}, Nr = [],
|
|
1271
|
+
}, Nr = [], Re = null, ht = null, je = typeof globalThis > "u" ? void 0 : globalThis, Pi = ["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();", "};"];
|
|
1272
1272
|
function jn(e) {
|
|
1273
1273
|
var t = e >>> 0;
|
|
1274
1274
|
return t === Number(e) ? t : NaN;
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1276
|
+
function ft(e) {
|
|
1277
1277
|
var t = e >>> 0;
|
|
1278
1278
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
1279
1279
|
}
|
|
@@ -1285,21 +1285,21 @@ function Ft(e, t, n) {
|
|
|
1285
1285
|
o && typeof o == "object" && Ft(o, t, n);
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1288
|
+
y.prototype.REGEXP_MODE = 2;
|
|
1289
|
+
y.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
1290
|
+
y.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
1291
|
+
D = y.prototype;
|
|
1292
|
+
D.P = !1;
|
|
1293
|
+
D.Ka = !1;
|
|
1294
|
+
D.Kb = 0;
|
|
1295
|
+
D.ic = 0;
|
|
1296
1296
|
function _e(e, t) {
|
|
1297
1297
|
var n = {}, r;
|
|
1298
|
-
for (r in
|
|
1299
|
-
n[r] =
|
|
1300
|
-
return n.sourceFile = t,
|
|
1298
|
+
for (r in Or)
|
|
1299
|
+
n[r] = Or[r];
|
|
1300
|
+
return n.sourceFile = t, je.j.parse(e, n);
|
|
1301
1301
|
}
|
|
1302
|
-
|
|
1302
|
+
D.Jb = function(e) {
|
|
1303
1303
|
var t = this.o[0];
|
|
1304
1304
|
if (!t || t.node.type !== "Program")
|
|
1305
1305
|
throw Error("Expecting original AST to start with a Program node");
|
|
@@ -1307,7 +1307,7 @@ V.Jb = function(e) {
|
|
|
1307
1307
|
throw Error("Expecting new AST to start with a Program node");
|
|
1308
1308
|
vt(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
1309
1309
|
};
|
|
1310
|
-
|
|
1310
|
+
D.lb = function() {
|
|
1311
1311
|
var e = this.o, t;
|
|
1312
1312
|
do {
|
|
1313
1313
|
var n = e[e.length - 1];
|
|
@@ -1319,23 +1319,23 @@ V.lb = function() {
|
|
|
1319
1319
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
1320
1320
|
n = null;
|
|
1321
1321
|
else {
|
|
1322
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
1323
|
-
var r = new
|
|
1322
|
+
this.ca.shift(), 0 <= n.interval && ho(this, n, n.interval);
|
|
1323
|
+
var r = new E(n.node, n.scope);
|
|
1324
1324
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1325
1325
|
}
|
|
1326
1326
|
if (!n)
|
|
1327
1327
|
break;
|
|
1328
1328
|
}
|
|
1329
1329
|
r = n.node;
|
|
1330
|
-
var o =
|
|
1331
|
-
|
|
1330
|
+
var o = ht;
|
|
1331
|
+
ht = this;
|
|
1332
1332
|
try {
|
|
1333
1333
|
var i = this.rb[r.type](e, n, r);
|
|
1334
1334
|
} catch (s) {
|
|
1335
1335
|
if (s !== uo)
|
|
1336
1336
|
throw this.value !== s && (this.value = void 0), s;
|
|
1337
1337
|
} finally {
|
|
1338
|
-
|
|
1338
|
+
ht = o;
|
|
1339
1339
|
}
|
|
1340
1340
|
if (i && e.push(i), this.P)
|
|
1341
1341
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -1345,7 +1345,7 @@ V.lb = function() {
|
|
|
1345
1345
|
} while (!r.end && t > Date.now());
|
|
1346
1346
|
return !0;
|
|
1347
1347
|
};
|
|
1348
|
-
|
|
1348
|
+
D.Eb = function() {
|
|
1349
1349
|
for (; !this.za && this.lb(); )
|
|
1350
1350
|
;
|
|
1351
1351
|
return this.za;
|
|
@@ -1362,7 +1362,7 @@ function Ni(e, t) {
|
|
|
1362
1362
|
try {
|
|
1363
1363
|
return i(s);
|
|
1364
1364
|
} catch (u) {
|
|
1365
|
-
|
|
1365
|
+
R(e, e.Gb, u.message);
|
|
1366
1366
|
}
|
|
1367
1367
|
};
|
|
1368
1368
|
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), C);
|
|
@@ -1376,7 +1376,7 @@ function Ni(e, t) {
|
|
|
1376
1376
|
jr(e, i);
|
|
1377
1377
|
}, e.g(t, "clearInterval", e.i(n, !1), C), 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);
|
|
1378
1378
|
}
|
|
1379
|
-
|
|
1379
|
+
D.Wb = 0;
|
|
1380
1380
|
function Bi(e, t) {
|
|
1381
1381
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1382
1382
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
@@ -1384,83 +1384,83 @@ function Bi(e, t) {
|
|
|
1384
1384
|
s = s.split(/\s*,\s*/);
|
|
1385
1385
|
for (var u = 0; u < s.length; u++) {
|
|
1386
1386
|
var c = s[u];
|
|
1387
|
-
n.test(c) ||
|
|
1387
|
+
n.test(c) || R(e, e.T, "Invalid function argument: " + c);
|
|
1388
1388
|
}
|
|
1389
1389
|
s = s.join(", ");
|
|
1390
1390
|
}
|
|
1391
1391
|
try {
|
|
1392
1392
|
var m = _e("(function(" + s + ") {" + i + "})", "function" + e.Wb++);
|
|
1393
|
-
} catch (
|
|
1394
|
-
|
|
1393
|
+
} catch (g) {
|
|
1394
|
+
R(e, e.T, "Invalid code: " + g.message);
|
|
1395
1395
|
}
|
|
1396
|
-
return m.body.length !== 1 &&
|
|
1396
|
+
return m.body.length !== 1 && R(e, e.T, "Invalid code in function body"), Un(e, m.body[0].la, e.N, "anonymous");
|
|
1397
1397
|
};
|
|
1398
1398
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, C), e.g(e.O, "prototype", e.Z, C), e.g(e.Z, "constructor", e.O, C), e.Z.Ta = function() {
|
|
1399
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0,
|
|
1399
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ae), e.Z.H = "Function", r = function(o, i) {
|
|
1400
1400
|
var s = e.o[e.o.length - 1];
|
|
1401
|
-
s.U = this, s.B = o, s.F = [], i != null && (i instanceof N ? s.F = co(e, i) :
|
|
1402
|
-
},
|
|
1401
|
+
s.U = this, s.B = o, s.F = [], i != null && (i instanceof N ? s.F = co(e, i) : R(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1402
|
+
}, Q(e, e.O, "apply", r), r = function(o) {
|
|
1403
1403
|
var i = e.o[e.o.length - 1];
|
|
1404
1404
|
i.U = this, i.B = o, i.F = [];
|
|
1405
1405
|
for (var s = 1; s < arguments.length; s++)
|
|
1406
1406
|
i.F.push(arguments[s]);
|
|
1407
1407
|
i.eb = !1;
|
|
1408
|
-
},
|
|
1408
|
+
}, Q(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
|
|
1409
1409
|
return String(this);
|
|
1410
|
-
},
|
|
1410
|
+
}, Q(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), C), r = function() {
|
|
1411
1411
|
return this.valueOf();
|
|
1412
|
-
},
|
|
1412
|
+
}, Q(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), C);
|
|
1413
1413
|
}
|
|
1414
1414
|
function ji(e, t) {
|
|
1415
1415
|
function n(o) {
|
|
1416
|
-
o != null ||
|
|
1416
|
+
o != null || R(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1417
1417
|
}
|
|
1418
1418
|
var r = function(o) {
|
|
1419
1419
|
if (o == null)
|
|
1420
|
-
return
|
|
1420
|
+
return $e(e) ? this : e.s(e.M);
|
|
1421
1421
|
if (!(o instanceof N)) {
|
|
1422
|
-
var i = e.s(
|
|
1422
|
+
var i = e.s(Ae(e, o));
|
|
1423
1423
|
return i.data = o, i;
|
|
1424
1424
|
}
|
|
1425
1425
|
return o;
|
|
1426
1426
|
};
|
|
1427
1427
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, C), e.g(e.M, "constructor", e.v, C), e.g(t, "Object", e.v, C), r = function(o) {
|
|
1428
|
-
return n(o),
|
|
1428
|
+
return n(o), Ie(e, Object.getOwnPropertyNames(o instanceof N ? o.h : o));
|
|
1429
1429
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), C), r = function(o) {
|
|
1430
|
-
return n(o), o instanceof N && (o = o.h),
|
|
1430
|
+
return n(o), o instanceof N && (o = o.h), Ie(e, Object.keys(o));
|
|
1431
1431
|
}, e.g(e.v, "keys", e.i(r, !1), C), r = function(o) {
|
|
1432
|
-
return o === null ? e.s(null) : (o instanceof N ||
|
|
1432
|
+
return o === null ? e.s(null) : (o instanceof N || R(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1433
1433
|
}, e.g(e.v, "create", e.i(r, !1), C), 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) {
|
|
1434
|
-
return i = String(i), o instanceof N ||
|
|
1434
|
+
return i = String(i), o instanceof N || R(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof N || R(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || R(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, yt, s.h), o;
|
|
1435
1435
|
}, e.g(e.v, "defineProperty", e.i(r, !1), C), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, i) {
|
|
1436
|
-
if (o instanceof N ||
|
|
1436
|
+
if (o instanceof N || R(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
|
|
1437
1437
|
var s = Object.getOwnPropertyDescriptor(o.h, i), u = o.V[i];
|
|
1438
1438
|
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;
|
|
1439
1439
|
}
|
|
1440
1440
|
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), C), r = function(o) {
|
|
1441
|
-
return n(o),
|
|
1441
|
+
return n(o), Ae(e, o);
|
|
1442
1442
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), C), r = function(o) {
|
|
1443
1443
|
return !!o && !o.preventExtensions;
|
|
1444
1444
|
}, e.g(e.v, "isExtensible", e.i(r, !1), C), r = function(o) {
|
|
1445
1445
|
return o instanceof N && (o.preventExtensions = !0), o;
|
|
1446
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), C),
|
|
1446
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), C), Q(e, e.v, "toString", N.prototype.toString), Q(e, e.v, "toLocaleString", N.prototype.toString), Q(e, e.v, "valueOf", N.prototype.valueOf), r = function(o) {
|
|
1447
1447
|
return n(this), this instanceof N ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1448
|
-
},
|
|
1448
|
+
}, Q(e, e.v, "hasOwnProperty", r), r = function(o) {
|
|
1449
1449
|
return n(this), this instanceof N ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1450
|
-
},
|
|
1450
|
+
}, Q(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1451
1451
|
for (; ; ) {
|
|
1452
|
-
if (o =
|
|
1452
|
+
if (o = Ae(e, o), !o)
|
|
1453
1453
|
return !1;
|
|
1454
1454
|
if (o === this)
|
|
1455
1455
|
return !0;
|
|
1456
1456
|
}
|
|
1457
|
-
},
|
|
1457
|
+
}, Q(e, e.v, "isPrototypeOf", r);
|
|
1458
1458
|
}
|
|
1459
1459
|
function Vi(e, t) {
|
|
1460
1460
|
var n = function(r) {
|
|
1461
|
-
var o =
|
|
1461
|
+
var o = $e(e) ? this : Je(e), i = arguments[0];
|
|
1462
1462
|
if (arguments.length === 1 && typeof i == "number")
|
|
1463
|
-
isNaN(jn(i)) &&
|
|
1463
|
+
isNaN(jn(i)) && R(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1464
1464
|
else {
|
|
1465
1465
|
for (i = 0; i < arguments.length; i++)
|
|
1466
1466
|
o.h[i] = arguments[i];
|
|
@@ -1478,55 +1478,55 @@ function Vi(e, t) {
|
|
|
1478
1478
|
}
|
|
1479
1479
|
function Di(e, t) {
|
|
1480
1480
|
var n = function(r) {
|
|
1481
|
-
return r = arguments.length ?
|
|
1481
|
+
return r = arguments.length ? je.String(r) : "", $e(e) ? (this.data = r, this) : r;
|
|
1482
1482
|
};
|
|
1483
1483
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, C), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), C), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1484
|
-
|
|
1484
|
+
Q(e, e.J, t[n], String.prototype[t[n]]);
|
|
1485
1485
|
n = function(r, o, i) {
|
|
1486
1486
|
o = e.R(o), i = e.R(i);
|
|
1487
1487
|
try {
|
|
1488
1488
|
return String(this).localeCompare(r, o, i);
|
|
1489
1489
|
} catch (s) {
|
|
1490
|
-
|
|
1490
|
+
R(e, e.D, "localeCompare: " + s.message);
|
|
1491
1491
|
}
|
|
1492
|
-
},
|
|
1492
|
+
}, Q(e, e.J, "localeCompare", n), n = function(r, o, i) {
|
|
1493
1493
|
var s = String(this);
|
|
1494
|
-
if (o = o ? Number(o) : void 0,
|
|
1495
|
-
if (
|
|
1494
|
+
if (o = o ? Number(o) : void 0, te(e, r, e.I) && (r = r.data, ut(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1495
|
+
if (Re)
|
|
1496
1496
|
r = lt(e, "string.split(separator, limit)", {
|
|
1497
1497
|
string: s,
|
|
1498
1498
|
separator: r,
|
|
1499
1499
|
limit: o
|
|
1500
|
-
}, r, i), r !== qe && i(
|
|
1500
|
+
}, r, i), r !== qe && i(Ie(e, r));
|
|
1501
1501
|
else {
|
|
1502
1502
|
var u = e.ha(), c = ct(e, r, u, i);
|
|
1503
1503
|
u.onmessage = function(m) {
|
|
1504
|
-
clearTimeout(c), i(
|
|
1504
|
+
clearTimeout(c), i(Ie(e, m.data));
|
|
1505
1505
|
}, u.postMessage(["split", s, r, o]);
|
|
1506
1506
|
}
|
|
1507
1507
|
return;
|
|
1508
1508
|
}
|
|
1509
|
-
r = s.split(r, o), i(
|
|
1509
|
+
r = s.split(r, o), i(Ie(e, r));
|
|
1510
1510
|
}, pt(e, e.J, "split", n), n = function(r, o) {
|
|
1511
1511
|
var i = String(this);
|
|
1512
|
-
if (r =
|
|
1513
|
-
if (
|
|
1512
|
+
if (r = te(e, r, e.I) ? r.data : new RegExp(r), ut(e, r, o), e.REGEXP_MODE === 2)
|
|
1513
|
+
if (Re)
|
|
1514
1514
|
r = lt(e, "string.match(regexp)", {
|
|
1515
1515
|
string: i,
|
|
1516
1516
|
regexp: r
|
|
1517
|
-
}, r, o), r !== qe && o(r &&
|
|
1517
|
+
}, r, o), r !== qe && o(r && Ie(e, r));
|
|
1518
1518
|
else {
|
|
1519
1519
|
var s = e.ha(), u = ct(e, r, s, o);
|
|
1520
1520
|
s.onmessage = function(c) {
|
|
1521
|
-
clearTimeout(u), o(c.data &&
|
|
1521
|
+
clearTimeout(u), o(c.data && Ie(e, c.data));
|
|
1522
1522
|
}, s.postMessage(["match", i, r]);
|
|
1523
1523
|
}
|
|
1524
1524
|
else
|
|
1525
|
-
r = i.match(r), o(r &&
|
|
1525
|
+
r = i.match(r), o(r && Ie(e, r));
|
|
1526
1526
|
}, pt(e, e.J, "match", n), n = function(r, o) {
|
|
1527
1527
|
var i = String(this);
|
|
1528
|
-
if (
|
|
1529
|
-
if (
|
|
1528
|
+
if (te(e, r, e.I) ? r = r.data : r = new RegExp(r), ut(e, r, o), e.REGEXP_MODE === 2)
|
|
1529
|
+
if (Re)
|
|
1530
1530
|
r = lt(e, "string.search(regexp)", {
|
|
1531
1531
|
string: i,
|
|
1532
1532
|
regexp: r
|
|
@@ -1541,8 +1541,8 @@ function Di(e, t) {
|
|
|
1541
1541
|
o(i.search(r));
|
|
1542
1542
|
}, pt(e, e.J, "search", n), n = function(r, o, i) {
|
|
1543
1543
|
var s = String(this);
|
|
1544
|
-
if (o = String(o),
|
|
1545
|
-
if (
|
|
1544
|
+
if (o = String(o), te(e, r, e.I) && (r = r.data, ut(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1545
|
+
if (Re)
|
|
1546
1546
|
r = lt(e, "string.replace(substr, newSubstr)", {
|
|
1547
1547
|
string: s,
|
|
1548
1548
|
substr: r,
|
|
@@ -1561,12 +1561,12 @@ function Di(e, t) {
|
|
|
1561
1561
|
}
|
|
1562
1562
|
function Ui(e, t) {
|
|
1563
1563
|
e.mb = e.i(function(n) {
|
|
1564
|
-
return n =
|
|
1564
|
+
return n = je.Boolean(n), $e(e) ? (this.data = n, this) : n;
|
|
1565
1565
|
}, !0), e.g(t, "Boolean", e.mb, C);
|
|
1566
1566
|
}
|
|
1567
1567
|
function Wi(e, t) {
|
|
1568
1568
|
var n = function(r) {
|
|
1569
|
-
return r = arguments.length ?
|
|
1569
|
+
return r = arguments.length ? je.Number(r) : 0, $e(e) ? (this.data = r, this) : r;
|
|
1570
1570
|
};
|
|
1571
1571
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, C), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1572
1572
|
e.g(e.aa, t[n], Number[t[n]], at);
|
|
@@ -1574,90 +1574,90 @@ function Wi(e, t) {
|
|
|
1574
1574
|
try {
|
|
1575
1575
|
return Number(this).toExponential(r);
|
|
1576
1576
|
} catch (o) {
|
|
1577
|
-
|
|
1577
|
+
R(e, e.D, o.message);
|
|
1578
1578
|
}
|
|
1579
|
-
},
|
|
1579
|
+
}, Q(e, e.aa, "toExponential", n), n = function(r) {
|
|
1580
1580
|
try {
|
|
1581
1581
|
return Number(this).toFixed(r);
|
|
1582
1582
|
} catch (o) {
|
|
1583
|
-
|
|
1583
|
+
R(e, e.D, o.message);
|
|
1584
1584
|
}
|
|
1585
|
-
},
|
|
1585
|
+
}, Q(e, e.aa, "toFixed", n), n = function(r) {
|
|
1586
1586
|
try {
|
|
1587
1587
|
return Number(this).toPrecision(r);
|
|
1588
1588
|
} catch (o) {
|
|
1589
|
-
|
|
1589
|
+
R(e, e.D, o.message);
|
|
1590
1590
|
}
|
|
1591
|
-
},
|
|
1591
|
+
}, Q(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1592
1592
|
try {
|
|
1593
1593
|
return Number(this).toString(r);
|
|
1594
1594
|
} catch (o) {
|
|
1595
|
-
|
|
1595
|
+
R(e, e.D, o.message);
|
|
1596
1596
|
}
|
|
1597
|
-
},
|
|
1597
|
+
}, Q(e, e.aa, "toString", n), n = function(r, o) {
|
|
1598
1598
|
r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
|
|
1599
1599
|
try {
|
|
1600
1600
|
return Number(this).toLocaleString(r, o);
|
|
1601
1601
|
} catch (i) {
|
|
1602
|
-
|
|
1602
|
+
R(e, e.D, "toLocaleString: " + i.message);
|
|
1603
1603
|
}
|
|
1604
|
-
},
|
|
1604
|
+
}, Q(e, e.aa, "toLocaleString", n);
|
|
1605
1605
|
}
|
|
1606
1606
|
function Li(e, t) {
|
|
1607
1607
|
var n = function(o, i) {
|
|
1608
|
-
if (
|
|
1609
|
-
return
|
|
1608
|
+
if (!$e(e))
|
|
1609
|
+
return je.Date();
|
|
1610
1610
|
var s = [null].concat(Array.from(arguments));
|
|
1611
|
-
return this.data = new (Function.prototype.bind.apply(
|
|
1611
|
+
return this.data = new (Function.prototype.bind.apply(je.Date, s))(), this;
|
|
1612
1612
|
};
|
|
1613
1613
|
e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, C), e.g(e.$, "now", e.i(Date.now, !1), C), e.g(e.$, "parse", e.i(Date.parse, !1), C), e.g(e.$, "UTC", e.i(Date.UTC, !1), C), 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(" ");
|
|
1614
1614
|
for (var r = 0; r < t.length; r++)
|
|
1615
1615
|
n = /* @__PURE__ */ function(o) {
|
|
1616
1616
|
return function(i) {
|
|
1617
1617
|
var s = this.data;
|
|
1618
|
-
s instanceof Date ||
|
|
1618
|
+
s instanceof Date || R(e, e.j, o + " not called on a Date");
|
|
1619
1619
|
for (var u = [], c = 0; c < arguments.length; c++)
|
|
1620
1620
|
u[c] = e.R(arguments[c]);
|
|
1621
1621
|
return s[o].apply(s, u);
|
|
1622
1622
|
};
|
|
1623
|
-
}(t[r]),
|
|
1623
|
+
}(t[r]), Q(e, e.$, t[r], n);
|
|
1624
1624
|
}
|
|
1625
1625
|
function Fi(e, t) {
|
|
1626
1626
|
var n = function(r, o) {
|
|
1627
|
-
if (
|
|
1627
|
+
if ($e(e))
|
|
1628
1628
|
var i = this;
|
|
1629
1629
|
else {
|
|
1630
|
-
if (o === void 0 &&
|
|
1630
|
+
if (o === void 0 && te(e, r, e.I))
|
|
1631
1631
|
return r;
|
|
1632
1632
|
i = e.s(e.Ma);
|
|
1633
1633
|
}
|
|
1634
|
-
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) ||
|
|
1634
|
+
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || R(e, e.T, "Invalid regexp flag: " + o);
|
|
1635
1635
|
try {
|
|
1636
|
-
var s = new
|
|
1636
|
+
var s = new je.RegExp(r, o);
|
|
1637
1637
|
} catch (u) {
|
|
1638
|
-
|
|
1638
|
+
R(e, e.T, u.message);
|
|
1639
1639
|
}
|
|
1640
1640
|
return Vn(e, i, s), i;
|
|
1641
1641
|
};
|
|
1642
|
-
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, C), e.g(e.I.h.prototype, "global", void 0,
|
|
1643
|
-
function i(
|
|
1644
|
-
if (
|
|
1645
|
-
var b =
|
|
1646
|
-
return e.g(b, "index",
|
|
1642
|
+
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, C), e.g(e.I.h.prototype, "global", void 0, ae), e.g(e.I.h.prototype, "ignoreCase", void 0, ae), e.g(e.I.h.prototype, "multiline", void 0, ae), e.g(e.I.h.prototype, "source", "(?:)", ae), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1643
|
+
function i(g) {
|
|
1644
|
+
if (g) {
|
|
1645
|
+
var b = Ie(e, g);
|
|
1646
|
+
return e.g(b, "index", g.index), e.g(b, "input", g.input), b;
|
|
1647
1647
|
}
|
|
1648
1648
|
return null;
|
|
1649
1649
|
}
|
|
1650
1650
|
var s = this.data;
|
|
1651
1651
|
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")), ut(e, s, o), e.REGEXP_MODE === 2)
|
|
1652
|
-
if (
|
|
1652
|
+
if (Re)
|
|
1653
1653
|
r = lt(e, "regexp.exec(string)", {
|
|
1654
1654
|
string: r,
|
|
1655
1655
|
regexp: s
|
|
1656
1656
|
}, s, o), r !== qe && (e.g(this, "lastIndex", s.lastIndex), o(i(r)));
|
|
1657
1657
|
else {
|
|
1658
1658
|
var u = e.ha(), c = ct(e, s, u, o), m = this;
|
|
1659
|
-
u.onmessage = function(
|
|
1660
|
-
clearTimeout(c), e.g(m, "lastIndex",
|
|
1659
|
+
u.onmessage = function(g) {
|
|
1660
|
+
clearTimeout(c), e.g(m, "lastIndex", g.data[1]), o(i(g.data[0]));
|
|
1661
1661
|
}, u.postMessage(["exec", s, s.lastIndex, r]);
|
|
1662
1662
|
}
|
|
1663
1663
|
else
|
|
@@ -1667,13 +1667,13 @@ function Fi(e, t) {
|
|
|
1667
1667
|
function Mi(e, t) {
|
|
1668
1668
|
function n(r) {
|
|
1669
1669
|
var o = e.i(function(i) {
|
|
1670
|
-
var s =
|
|
1670
|
+
var s = $e(e) ? this : e.Aa(o);
|
|
1671
1671
|
return Sn(e, s, i), s;
|
|
1672
1672
|
}, !0);
|
|
1673
1673
|
return e.g(o, "prototype", e.Aa(e.D), C), e.g(o.h.prototype, "name", r, C), e.g(t, r, o, C), o;
|
|
1674
1674
|
}
|
|
1675
1675
|
e.D = e.i(function(r) {
|
|
1676
|
-
var o =
|
|
1676
|
+
var o = $e(e) ? this : e.Aa(e.D);
|
|
1677
1677
|
return Sn(e, o, r), o;
|
|
1678
1678
|
}, !0), e.g(t, "Error", e.D, C), e.g(e.D.h.prototype, "message", "", C), e.g(e.D.h.prototype, "name", "Error", C), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1679
1679
|
}
|
|
@@ -1682,7 +1682,7 @@ function Hi(e, t) {
|
|
|
1682
1682
|
e.g(t, "Math", n, C);
|
|
1683
1683
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1684
1684
|
for (t = 0; t < r.length; t++)
|
|
1685
|
-
e.g(n, r[t], Math[r[t]],
|
|
1685
|
+
e.g(n, r[t], Math[r[t]], ae);
|
|
1686
1686
|
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++)
|
|
1687
1687
|
e.g(n, r[t], e.i(Math[r[t]], !1), C);
|
|
1688
1688
|
}
|
|
@@ -1692,27 +1692,27 @@ function Ki(e, t) {
|
|
|
1692
1692
|
try {
|
|
1693
1693
|
var o = JSON.parse(String(r));
|
|
1694
1694
|
} catch (i) {
|
|
1695
|
-
|
|
1695
|
+
R(e, e.T, i.message);
|
|
1696
1696
|
}
|
|
1697
1697
|
return e.Ia(o);
|
|
1698
1698
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
|
|
1699
|
-
o && o.H === "Function" ?
|
|
1699
|
+
o && o.H === "Function" ? R(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = co(e, o), o = o.filter(function(u) {
|
|
1700
1700
|
return typeof u == "string" || typeof u == "number";
|
|
1701
1701
|
})) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
|
|
1702
1702
|
try {
|
|
1703
1703
|
var s = JSON.stringify(r, o, i);
|
|
1704
1704
|
} catch (u) {
|
|
1705
|
-
|
|
1705
|
+
R(e, e.j, u.message);
|
|
1706
1706
|
}
|
|
1707
1707
|
return s;
|
|
1708
1708
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1710
|
+
function te(e, t, n) {
|
|
1711
1711
|
if (t == null || !n)
|
|
1712
1712
|
return !1;
|
|
1713
1713
|
if (n = n.h.prototype, t === n)
|
|
1714
1714
|
return !0;
|
|
1715
|
-
for (t =
|
|
1715
|
+
for (t = Ae(e, t); t; ) {
|
|
1716
1716
|
if (t === n)
|
|
1717
1717
|
return !0;
|
|
1718
1718
|
t = t.xa;
|
|
@@ -1720,7 +1720,7 @@ function ne(e, t, n) {
|
|
|
1720
1720
|
return !1;
|
|
1721
1721
|
}
|
|
1722
1722
|
function Vn(e, t, n) {
|
|
1723
|
-
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, C), e.g(t, "source", n.source,
|
|
1723
|
+
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, C), e.g(t, "source", n.source, ae), e.g(t, "global", n.global, ae), e.g(t, "ignoreCase", n.ignoreCase, ae), e.g(t, "multiline", n.multiline, ae);
|
|
1724
1724
|
}
|
|
1725
1725
|
function Sn(e, t, n) {
|
|
1726
1726
|
n && e.g(t, "message", String(n), C), n = [];
|
|
@@ -1739,9 +1739,9 @@ function Sn(e, t, n) {
|
|
|
1739
1739
|
}
|
|
1740
1740
|
e.g(t, "stack", i.trim(), C);
|
|
1741
1741
|
}
|
|
1742
|
-
|
|
1742
|
+
D.ha = function() {
|
|
1743
1743
|
var e = this.ha.Mb;
|
|
1744
|
-
return e || (e = new Blob([
|
|
1744
|
+
return e || (e = new Blob([Pi.join(`
|
|
1745
1745
|
`)], {
|
|
1746
1746
|
type: "application/javascript"
|
|
1747
1747
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1751,9 +1751,9 @@ function lt(e, t, n, r, o) {
|
|
|
1751
1751
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1752
1752
|
};
|
|
1753
1753
|
try {
|
|
1754
|
-
return
|
|
1754
|
+
return Re.runInNewContext(t, n, i);
|
|
1755
1755
|
} catch {
|
|
1756
|
-
o(null),
|
|
1756
|
+
o(null), R(e, e.D, "RegExp Timeout: " + r);
|
|
1757
1757
|
}
|
|
1758
1758
|
return qe;
|
|
1759
1759
|
}
|
|
@@ -1762,36 +1762,36 @@ function ut(e, t, n) {
|
|
|
1762
1762
|
var r = !1;
|
|
1763
1763
|
else if (e.REGEXP_MODE === 1)
|
|
1764
1764
|
r = !0;
|
|
1765
|
-
else if (
|
|
1765
|
+
else if (Re)
|
|
1766
1766
|
r = !0;
|
|
1767
1767
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1768
1768
|
r = !0;
|
|
1769
1769
|
else if (typeof require == "function") {
|
|
1770
1770
|
try {
|
|
1771
|
-
|
|
1771
|
+
Re = require("vm");
|
|
1772
1772
|
} catch {
|
|
1773
1773
|
}
|
|
1774
|
-
r = !!
|
|
1774
|
+
r = !!Re;
|
|
1775
1775
|
} else
|
|
1776
1776
|
r = !1;
|
|
1777
|
-
r || (n(null),
|
|
1777
|
+
r || (n(null), R(e, e.D, "Regular expressions not supported: " + t));
|
|
1778
1778
|
}
|
|
1779
1779
|
function ct(e, t, n, r) {
|
|
1780
1780
|
return setTimeout(function() {
|
|
1781
1781
|
n.terminate(), r(null);
|
|
1782
1782
|
try {
|
|
1783
|
-
|
|
1783
|
+
R(e, e.D, "RegExp Timeout: " + t);
|
|
1784
1784
|
} catch {
|
|
1785
1785
|
}
|
|
1786
1786
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1787
1787
|
}
|
|
1788
|
-
|
|
1788
|
+
D.Aa = function(e) {
|
|
1789
1789
|
return this.s(e && e.h.prototype);
|
|
1790
1790
|
};
|
|
1791
|
-
|
|
1791
|
+
D.s = function(e) {
|
|
1792
1792
|
if (typeof e != "object")
|
|
1793
1793
|
throw Error("Non object prototype");
|
|
1794
|
-
return e = new N(e),
|
|
1794
|
+
return e = new N(e), te(this, e, this.D) && (e.H = "Error"), e;
|
|
1795
1795
|
};
|
|
1796
1796
|
function Je(e) {
|
|
1797
1797
|
var t = e.s(e.La);
|
|
@@ -1803,20 +1803,20 @@ function Je(e) {
|
|
|
1803
1803
|
}
|
|
1804
1804
|
function Dn(e, t, n) {
|
|
1805
1805
|
var r = e.s(e.Z);
|
|
1806
|
-
return n ? (n = e.s(e.M), e.g(r, "prototype", n, C), e.g(n, "constructor", r, C)) : r.Ab = !0, e.g(r, "length", t,
|
|
1806
|
+
return n ? (n = e.s(e.M), e.g(r, "prototype", n, C), e.g(n, "constructor", r, C)) : r.Ab = !0, e.g(r, "length", t, ae), r.H = "Function", r;
|
|
1807
1807
|
}
|
|
1808
1808
|
function Un(e, t, n, r) {
|
|
1809
1809
|
var o = Dn(e, t.oa.length, !0);
|
|
1810
|
-
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "",
|
|
1810
|
+
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", ae), o;
|
|
1811
1811
|
}
|
|
1812
|
-
|
|
1813
|
-
return t = Dn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1812
|
+
D.i = function(e, t) {
|
|
1813
|
+
return t = Dn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, ae), t;
|
|
1814
1814
|
};
|
|
1815
|
-
|
|
1815
|
+
D.ub = function(e) {
|
|
1816
1816
|
var t = Dn(this, e.length, !0);
|
|
1817
|
-
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1817
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, ae), t;
|
|
1818
1818
|
};
|
|
1819
|
-
|
|
1819
|
+
D.Ia = function(e) {
|
|
1820
1820
|
if (e instanceof N)
|
|
1821
1821
|
throw Error("Object is already pseudo");
|
|
1822
1822
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
@@ -1847,14 +1847,14 @@ V.Ia = function(e) {
|
|
|
1847
1847
|
this.g(t, r, this.Ia(e[r]));
|
|
1848
1848
|
return t;
|
|
1849
1849
|
};
|
|
1850
|
-
|
|
1850
|
+
D.R = function(e, t) {
|
|
1851
1851
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1852
1852
|
return e;
|
|
1853
1853
|
if (!(e instanceof N))
|
|
1854
1854
|
throw Error("Object is not pseudo");
|
|
1855
|
-
if (
|
|
1855
|
+
if (te(this, e, this.I))
|
|
1856
1856
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
1857
|
-
if (
|
|
1857
|
+
if (te(this, e, this.$))
|
|
1858
1858
|
return new Date(e.data.valueOf());
|
|
1859
1859
|
t = t || {
|
|
1860
1860
|
hb: [],
|
|
@@ -1863,7 +1863,7 @@ V.R = function(e, t) {
|
|
|
1863
1863
|
var n = t.hb.indexOf(e);
|
|
1864
1864
|
if (n !== -1)
|
|
1865
1865
|
return t.Sa[n];
|
|
1866
|
-
if (t.hb.push(e),
|
|
1866
|
+
if (t.hb.push(e), te(this, e, this.qa)) {
|
|
1867
1867
|
n = [], t.Sa.push(n);
|
|
1868
1868
|
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1869
1869
|
Mt(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
@@ -1877,7 +1877,7 @@ V.R = function(e, t) {
|
|
|
1877
1877
|
});
|
|
1878
1878
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1879
1879
|
};
|
|
1880
|
-
function
|
|
1880
|
+
function Ie(e, t) {
|
|
1881
1881
|
for (var n = Je(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
|
|
1882
1882
|
e.g(n, r[o], t[r[o]]);
|
|
1883
1883
|
return n;
|
|
@@ -1888,7 +1888,7 @@ function co(e, t) {
|
|
|
1888
1888
|
n[r] = e.G(t, r);
|
|
1889
1889
|
return n.length = jn(e.G(t, "length")) || 0, n;
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1891
|
+
function Ae(e, t) {
|
|
1892
1892
|
switch (typeof t) {
|
|
1893
1893
|
case "number":
|
|
1894
1894
|
return e.aa.h.prototype;
|
|
@@ -1899,52 +1899,52 @@ function Ie(e, t) {
|
|
|
1899
1899
|
}
|
|
1900
1900
|
return t ? t.xa : null;
|
|
1901
1901
|
}
|
|
1902
|
-
|
|
1902
|
+
D.G = function(e, t) {
|
|
1903
1903
|
if (this.P)
|
|
1904
1904
|
throw Error("Getter not supported in that context");
|
|
1905
|
-
if (t = String(t), e != null ||
|
|
1905
|
+
if (t = String(t), e != null || R(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof N))
|
|
1906
1906
|
throw TypeError("Expecting native value or pseudo object");
|
|
1907
1907
|
if (t === "length") {
|
|
1908
|
-
if (
|
|
1908
|
+
if (te(this, e, this.J))
|
|
1909
1909
|
return String(e).length;
|
|
1910
|
-
} else if (64 > t.charCodeAt(0) &&
|
|
1911
|
-
var n =
|
|
1910
|
+
} else if (64 > t.charCodeAt(0) && te(this, e, this.J)) {
|
|
1911
|
+
var n = ft(t);
|
|
1912
1912
|
if (!isNaN(n) && n < String(e).length)
|
|
1913
1913
|
return String(e)[n];
|
|
1914
1914
|
}
|
|
1915
1915
|
do
|
|
1916
1916
|
if (e.h && t in e.h)
|
|
1917
1917
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1918
|
-
while (e =
|
|
1918
|
+
while (e = Ae(this, e));
|
|
1919
1919
|
};
|
|
1920
1920
|
function Mt(e, t, n) {
|
|
1921
1921
|
if (!(t instanceof N))
|
|
1922
1922
|
throw TypeError("Primitive data type has no properties");
|
|
1923
|
-
if (n = String(n), n === "length" &&
|
|
1923
|
+
if (n = String(n), n === "length" && te(e, t, e.J))
|
|
1924
1924
|
return !0;
|
|
1925
|
-
if (
|
|
1926
|
-
var r =
|
|
1925
|
+
if (te(e, t, e.J)) {
|
|
1926
|
+
var r = ft(n);
|
|
1927
1927
|
if (!isNaN(r) && r < String(t).length)
|
|
1928
1928
|
return !0;
|
|
1929
1929
|
}
|
|
1930
1930
|
do
|
|
1931
1931
|
if (t.h && n in t.h)
|
|
1932
1932
|
return !0;
|
|
1933
|
-
while (t =
|
|
1933
|
+
while (t = Ae(e, t));
|
|
1934
1934
|
return !1;
|
|
1935
1935
|
}
|
|
1936
|
-
|
|
1936
|
+
D.g = function(e, t, n, r) {
|
|
1937
1937
|
if (this.Ka)
|
|
1938
1938
|
throw Error("Setter not supported in that context");
|
|
1939
|
-
if (t = String(t), e != null ||
|
|
1939
|
+
if (t = String(t), e != null || R(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof N))
|
|
1940
1940
|
throw TypeError("Expecting native value or pseudo object");
|
|
1941
|
-
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) &&
|
|
1941
|
+
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && R(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1942
1942
|
var o = !this.o || Wn(this).S;
|
|
1943
1943
|
if (e instanceof N) {
|
|
1944
|
-
if (
|
|
1945
|
-
var i =
|
|
1944
|
+
if (te(this, e, this.J)) {
|
|
1945
|
+
var i = ft(t);
|
|
1946
1946
|
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1947
|
-
o &&
|
|
1947
|
+
o && R(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1948
1948
|
return;
|
|
1949
1949
|
}
|
|
1950
1950
|
}
|
|
@@ -1955,53 +1955,53 @@ V.g = function(e, t, n, r) {
|
|
|
1955
1955
|
return;
|
|
1956
1956
|
n = r.value;
|
|
1957
1957
|
}
|
|
1958
|
-
if (n = jn(n), isNaN(n) &&
|
|
1958
|
+
if (n = jn(n), isNaN(n) && R(this, this.ob, "Invalid array length"), n < i)
|
|
1959
1959
|
for (s in e.h) {
|
|
1960
|
-
var s =
|
|
1960
|
+
var s = ft(s);
|
|
1961
1961
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
1962
1962
|
}
|
|
1963
1963
|
} else
|
|
1964
|
-
isNaN(s =
|
|
1964
|
+
isNaN(s = ft(t)) || (e.h.length = Math.max(i, s + 1));
|
|
1965
1965
|
if (!e.preventExtensions || t in e.h)
|
|
1966
1966
|
if (r) {
|
|
1967
1967
|
o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== yt && (o.value = n, delete e.V[t], delete e.Y[t]);
|
|
1968
1968
|
try {
|
|
1969
1969
|
Object.defineProperty(e.h, t, o);
|
|
1970
1970
|
} catch {
|
|
1971
|
-
|
|
1971
|
+
R(this, this.j, "Cannot redefine property: " + t);
|
|
1972
1972
|
}
|
|
1973
1973
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1974
1974
|
} else {
|
|
1975
1975
|
if (n === yt)
|
|
1976
1976
|
throw ReferenceError("Value not specified");
|
|
1977
1977
|
for (r = e; !(t in r.h); )
|
|
1978
|
-
if (r =
|
|
1978
|
+
if (r = Ae(this, r), !r) {
|
|
1979
1979
|
r = e;
|
|
1980
1980
|
break;
|
|
1981
1981
|
}
|
|
1982
1982
|
if (r.Y && r.Y[t])
|
|
1983
1983
|
return this.Ka = !0, r.Y[t];
|
|
1984
1984
|
if (r.V && r.V[t])
|
|
1985
|
-
o &&
|
|
1985
|
+
o && R(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1986
1986
|
else
|
|
1987
1987
|
try {
|
|
1988
1988
|
e.h[t] = n;
|
|
1989
1989
|
} catch {
|
|
1990
|
-
o &&
|
|
1990
|
+
o && R(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1991
1991
|
}
|
|
1992
1992
|
}
|
|
1993
1993
|
else
|
|
1994
|
-
o &&
|
|
1994
|
+
o && R(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1995
1995
|
} else
|
|
1996
|
-
o &&
|
|
1996
|
+
o && R(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1997
1997
|
};
|
|
1998
|
-
|
|
1998
|
+
D.g.ac = function() {
|
|
1999
1999
|
throw Error("Placeholder getter");
|
|
2000
2000
|
};
|
|
2001
|
-
|
|
2001
|
+
D.g.bc = function() {
|
|
2002
2002
|
throw Error("Placeholder setter");
|
|
2003
2003
|
};
|
|
2004
|
-
function
|
|
2004
|
+
function Q(e, t, n, r) {
|
|
2005
2005
|
e.g(t.h.prototype, n, e.i(r, !1), C);
|
|
2006
2006
|
}
|
|
2007
2007
|
function pt(e, t, n, r) {
|
|
@@ -2020,12 +2020,12 @@ function kn(e, t, n) {
|
|
|
2020
2020
|
var o = t.body && t.body[0];
|
|
2021
2021
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
2022
2022
|
}
|
|
2023
|
-
return o = e.s(null), r = new
|
|
2023
|
+
return o = e.s(null), r = new fo(n, r, o), n || Ni(e, r.object), vt(e, t, r), r;
|
|
2024
2024
|
}
|
|
2025
2025
|
function Ln(e, t, n) {
|
|
2026
2026
|
if (!t)
|
|
2027
2027
|
throw Error("parentScope required");
|
|
2028
|
-
return e = n || e.s(null), new
|
|
2028
|
+
return e = n || e.s(null), new fo(t, t.S, e);
|
|
2029
2029
|
}
|
|
2030
2030
|
function Fn(e, t) {
|
|
2031
2031
|
for (var n = Wn(e); n && n !== e.N; ) {
|
|
@@ -2035,7 +2035,7 @@ function Fn(e, t) {
|
|
|
2035
2035
|
}
|
|
2036
2036
|
if (n === e.N && Mt(e, n.object, t))
|
|
2037
2037
|
return e.G(n.object, t);
|
|
2038
|
-
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" ||
|
|
2038
|
+
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || R(e, e.pb, t + " is not defined");
|
|
2039
2039
|
}
|
|
2040
2040
|
function po(e, t, n) {
|
|
2041
2041
|
for (var r = Wn(e), o = r.S; r && r !== e.N; ) {
|
|
@@ -2043,7 +2043,7 @@ function po(e, t, n) {
|
|
|
2043
2043
|
try {
|
|
2044
2044
|
r.object.h[t] = n;
|
|
2045
2045
|
} catch {
|
|
2046
|
-
o &&
|
|
2046
|
+
o && R(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
2047
2047
|
}
|
|
2048
2048
|
return;
|
|
2049
2049
|
}
|
|
@@ -2051,7 +2051,7 @@ function po(e, t, n) {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
if (r === e.N && (!o || Mt(e, r.object, t)))
|
|
2053
2053
|
return e.g(r.object, t, n);
|
|
2054
|
-
|
|
2054
|
+
R(e, e.pb, t + " is not defined");
|
|
2055
2055
|
}
|
|
2056
2056
|
function vt(e, t, n) {
|
|
2057
2057
|
if (t.jb)
|
|
@@ -2099,10 +2099,10 @@ function vt(e, t, n) {
|
|
|
2099
2099
|
t.jb = r;
|
|
2100
2100
|
}
|
|
2101
2101
|
for (s in r)
|
|
2102
|
-
r[s] === !0 ? e.g(n.object, s, void 0,
|
|
2102
|
+
r[s] === !0 ? e.g(n.object, s, void 0, Pr) : e.g(n.object, s, Un(e, r[s], n), Pr);
|
|
2103
2103
|
return r;
|
|
2104
2104
|
}
|
|
2105
|
-
function
|
|
2105
|
+
function $e(e) {
|
|
2106
2106
|
return e.o[e.o.length - 1].isConstructor;
|
|
2107
2107
|
}
|
|
2108
2108
|
function Mn(e, t) {
|
|
@@ -2111,7 +2111,7 @@ function Mn(e, t) {
|
|
|
2111
2111
|
function Hn(e, t, n) {
|
|
2112
2112
|
return t[0] === Ye ? po(e, t[1], n) : e.g(t[0], t[1], n);
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2114
|
+
function R(e, t, n) {
|
|
2115
2115
|
throw e.N ? (n !== void 0 && t instanceof N && (t = e.Aa(t), Sn(e, t, n)), bt(e, 4, t), uo) : n === void 0 ? t : n;
|
|
2116
2116
|
}
|
|
2117
2117
|
function bt(e, t, n, r) {
|
|
@@ -2150,7 +2150,7 @@ function bt(e, t, n, r) {
|
|
|
2150
2150
|
} else if (t === 2 && (r ? i.labels && i.labels.indexOf(r) !== -1 : i.W))
|
|
2151
2151
|
return;
|
|
2152
2152
|
}
|
|
2153
|
-
throw
|
|
2153
|
+
throw te(e, n, e.D) ? (t = {
|
|
2154
2154
|
EvalError,
|
|
2155
2155
|
RangeError,
|
|
2156
2156
|
ReferenceError,
|
|
@@ -2159,34 +2159,34 @@ function bt(e, t, n, r) {
|
|
|
2159
2159
|
URIError
|
|
2160
2160
|
}, r = String(e.G(n, "name")), o = e.G(n, "message").valueOf(), t = (t[r] || Error)(o), t.stack = String(e.G(n, "stack"))) : t = String(n), e.value = t, t;
|
|
2161
2161
|
}
|
|
2162
|
-
function
|
|
2162
|
+
function se(e, t) {
|
|
2163
2163
|
switch (t.type) {
|
|
2164
2164
|
case "ArrayExpression":
|
|
2165
2165
|
return "[...]";
|
|
2166
2166
|
case "BinaryExpression":
|
|
2167
2167
|
case "LogicalExpression":
|
|
2168
|
-
return
|
|
2168
|
+
return se(e, t.left) + " " + t.operator + " " + se(e, t.right);
|
|
2169
2169
|
case "CallExpression":
|
|
2170
|
-
return
|
|
2170
|
+
return se(e, t.callee) + "(...)";
|
|
2171
2171
|
case "ConditionalExpression":
|
|
2172
|
-
return
|
|
2172
|
+
return se(e, t.test) + " ? " + se(e, t.da) + " : " + se(e, t.alternate);
|
|
2173
2173
|
case "Identifier":
|
|
2174
2174
|
return t.name;
|
|
2175
2175
|
case "Literal":
|
|
2176
2176
|
return t.raw;
|
|
2177
2177
|
case "MemberExpression":
|
|
2178
|
-
var n =
|
|
2179
|
-
return e =
|
|
2178
|
+
var n = se(e, t.object);
|
|
2179
|
+
return e = se(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
|
|
2180
2180
|
case "NewExpression":
|
|
2181
|
-
return "new " +
|
|
2181
|
+
return "new " + se(e, t.callee) + "(...)";
|
|
2182
2182
|
case "ObjectExpression":
|
|
2183
2183
|
return "{...}";
|
|
2184
2184
|
case "ThisExpression":
|
|
2185
2185
|
return "this";
|
|
2186
2186
|
case "UnaryExpression":
|
|
2187
|
-
return t.operator + " " +
|
|
2187
|
+
return t.operator + " " + se(e, t.K);
|
|
2188
2188
|
case "UpdateExpression":
|
|
2189
|
-
return n =
|
|
2189
|
+
return n = se(e, t.K), t.prefix ? t.operator + n : n + t.operator;
|
|
2190
2190
|
}
|
|
2191
2191
|
return "???";
|
|
2192
2192
|
}
|
|
@@ -2201,13 +2201,13 @@ function Br(e, t, n) {
|
|
|
2201
2201
|
try {
|
|
2202
2202
|
var c = _e(String(i), "taskCode" + e.ic++);
|
|
2203
2203
|
} catch (m) {
|
|
2204
|
-
|
|
2204
|
+
R(e, e.T, "Invalid code: " + m.message);
|
|
2205
2205
|
}
|
|
2206
2206
|
s.type = "EvalProgram_", s.body = c.body, r = r.node.arguments[0], Ft(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
2207
2207
|
}
|
|
2208
|
-
return t = new zi(u, o, r, s, t ? n : -1),
|
|
2208
|
+
return t = new zi(u, o, r, s, t ? n : -1), ho(e, t, n), t.Db;
|
|
2209
2209
|
}
|
|
2210
|
-
function
|
|
2210
|
+
function ho(e, t, n) {
|
|
2211
2211
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
2212
2212
|
return r.time - o.time;
|
|
2213
2213
|
});
|
|
@@ -2224,42 +2224,42 @@ function St(e, t, n) {
|
|
|
2224
2224
|
throw Error("Unexpected call to createGetter");
|
|
2225
2225
|
e.P = !1, n = Array.isArray(n) ? n[0] : n;
|
|
2226
2226
|
var r = e.ya();
|
|
2227
|
-
return r.type = "CallExpression", e = new
|
|
2227
|
+
return r.type = "CallExpression", e = new E(r, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [], e;
|
|
2228
2228
|
}
|
|
2229
2229
|
function Kn(e, t, n, r) {
|
|
2230
2230
|
if (!e.Ka)
|
|
2231
2231
|
throw Error("Unexpected call to createSetter");
|
|
2232
2232
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
2233
2233
|
var o = e.ya();
|
|
2234
|
-
return o.type = "CallExpression", e = new
|
|
2234
|
+
return o.type = "CallExpression", e = new E(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
2235
2235
|
}
|
|
2236
|
-
function
|
|
2237
|
-
return t == null ? e.Na : t instanceof N ? t : (e = e.s(
|
|
2236
|
+
function hn(e, t) {
|
|
2237
|
+
return t == null ? e.Na : t instanceof N ? t : (e = e.s(Ae(e, t)), e.data = t, e);
|
|
2238
2238
|
}
|
|
2239
|
-
|
|
2239
|
+
D.Xb = function() {
|
|
2240
2240
|
return this.N;
|
|
2241
2241
|
};
|
|
2242
|
-
|
|
2242
|
+
D.Yb = function() {
|
|
2243
2243
|
return this.o;
|
|
2244
2244
|
};
|
|
2245
|
-
|
|
2245
|
+
D.ec = function(e) {
|
|
2246
2246
|
this.o = e;
|
|
2247
2247
|
};
|
|
2248
|
-
function
|
|
2248
|
+
function E(e, t) {
|
|
2249
2249
|
this.node = e, this.scope = t;
|
|
2250
2250
|
}
|
|
2251
|
-
function
|
|
2251
|
+
function fo(e, t, n) {
|
|
2252
2252
|
this.Va = e, this.S = t, this.object = n;
|
|
2253
2253
|
}
|
|
2254
2254
|
function N(e) {
|
|
2255
2255
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
2256
2256
|
}
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
if (!
|
|
2257
|
+
D = N.prototype;
|
|
2258
|
+
D.xa = null;
|
|
2259
|
+
D.H = "Object";
|
|
2260
|
+
D.data = null;
|
|
2261
|
+
D.toString = function() {
|
|
2262
|
+
if (!ht)
|
|
2263
2263
|
return "[object Interpreter.Object]";
|
|
2264
2264
|
if (!(this instanceof N))
|
|
2265
2265
|
return String(this);
|
|
@@ -2306,28 +2306,28 @@ V.toString = function() {
|
|
|
2306
2306
|
}
|
|
2307
2307
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
2308
2308
|
};
|
|
2309
|
-
|
|
2310
|
-
return !
|
|
2309
|
+
D.valueOf = function() {
|
|
2310
|
+
return !ht || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2311
2311
|
};
|
|
2312
2312
|
function zi(e, t, n, r, o) {
|
|
2313
2313
|
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++qi, this.time = 0;
|
|
2314
2314
|
}
|
|
2315
2315
|
var qi = 0;
|
|
2316
|
-
|
|
2316
|
+
y.prototype.stepArrayExpression = function(e, t, n) {
|
|
2317
2317
|
n = n.elements;
|
|
2318
2318
|
var r = t.A || 0;
|
|
2319
2319
|
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Je(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
2320
2320
|
if (n[r])
|
|
2321
|
-
return t.A = r, new
|
|
2321
|
+
return t.A = r, new E(n[r], t.scope);
|
|
2322
2322
|
r++;
|
|
2323
2323
|
}
|
|
2324
2324
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
2325
2325
|
};
|
|
2326
|
-
|
|
2326
|
+
y.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
2327
2327
|
if (!t.ja)
|
|
2328
|
-
return t.ja = !0, t = new
|
|
2328
|
+
return t.ja = !0, t = new E(n.left, t.scope), t.sa = !0, t;
|
|
2329
2329
|
if (!t.Da)
|
|
2330
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = Mn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, St(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new
|
|
2330
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && n.operator !== "=" && (e = Mn(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, St(this, e, t.Fa)) : (t.Da = !0, n.operator === "=" && n.left.type === "Identifier" && (t.Pa = n.left.name), new E(n.right, t.scope));
|
|
2331
2331
|
if (t.ta)
|
|
2332
2332
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2333
2333
|
else {
|
|
@@ -2377,11 +2377,11 @@ g.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
2377
2377
|
e.pop(), e[e.length - 1].value = r;
|
|
2378
2378
|
}
|
|
2379
2379
|
};
|
|
2380
|
-
|
|
2380
|
+
y.prototype.stepBinaryExpression = function(e, t, n) {
|
|
2381
2381
|
if (!t.ja)
|
|
2382
|
-
return t.ja = !0, new
|
|
2382
|
+
return t.ja = !0, new E(n.left, t.scope);
|
|
2383
2383
|
if (!t.Da)
|
|
2384
|
-
return t.Da = !0, t.ma = t.value, new
|
|
2384
|
+
return t.Da = !0, t.ma = t.value, new E(n.right, t.scope);
|
|
2385
2385
|
e.pop();
|
|
2386
2386
|
var r = t.ma;
|
|
2387
2387
|
switch (t = t.value, n.operator) {
|
|
@@ -2443,30 +2443,30 @@ g.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2443
2443
|
n = r >>> t;
|
|
2444
2444
|
break;
|
|
2445
2445
|
case "in":
|
|
2446
|
-
t instanceof N ||
|
|
2446
|
+
t instanceof N || R(this, this.j, "'in' expects an object, not '" + t + "'"), n = Mt(this, t, r);
|
|
2447
2447
|
break;
|
|
2448
2448
|
case "instanceof":
|
|
2449
|
-
|
|
2449
|
+
te(this, t, this.O) || R(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof N ? te(this, r, t) : !1;
|
|
2450
2450
|
break;
|
|
2451
2451
|
default:
|
|
2452
2452
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
2453
2453
|
}
|
|
2454
2454
|
e[e.length - 1].value = n;
|
|
2455
2455
|
};
|
|
2456
|
-
|
|
2456
|
+
y.prototype.stepBlockStatement = function(e, t, n) {
|
|
2457
2457
|
var r = t.A || 0;
|
|
2458
2458
|
if (n = n.body[r])
|
|
2459
|
-
return t.A = r + 1, new
|
|
2459
|
+
return t.A = r + 1, new E(n, t.scope);
|
|
2460
2460
|
e.pop();
|
|
2461
2461
|
};
|
|
2462
|
-
|
|
2462
|
+
y.prototype.stepBreakStatement = function(e, t, n) {
|
|
2463
2463
|
bt(this, 1, void 0, n.label && n.label.name);
|
|
2464
2464
|
};
|
|
2465
|
-
|
|
2466
|
-
|
|
2465
|
+
y.prototype.Hb = 0;
|
|
2466
|
+
y.prototype.stepCallExpression = function(e, t, n) {
|
|
2467
2467
|
if (!t.ia) {
|
|
2468
2468
|
t.ia = 1;
|
|
2469
|
-
var r = new
|
|
2469
|
+
var r = new E(n.callee, t.scope);
|
|
2470
2470
|
return r.sa = !0, r;
|
|
2471
2471
|
}
|
|
2472
2472
|
if (t.ia === 1) {
|
|
@@ -2481,9 +2481,9 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2481
2481
|
}
|
|
2482
2482
|
if (o = t.U, !t.Qa) {
|
|
2483
2483
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2484
|
-
return new
|
|
2484
|
+
return new E(n.arguments[t.A++], t.scope);
|
|
2485
2485
|
if (n.type === "NewExpression") {
|
|
2486
|
-
if (o instanceof N && !o.Ab ||
|
|
2486
|
+
if (o instanceof N && !o.Ab || R(this, this.j, se(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2487
2487
|
t.B = Je(this);
|
|
2488
2488
|
else {
|
|
2489
2489
|
var i = o.h.prototype;
|
|
@@ -2496,12 +2496,12 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2496
2496
|
if (t.eb)
|
|
2497
2497
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2498
2498
|
else {
|
|
2499
|
-
if (t.eb = !0, o instanceof N ||
|
|
2499
|
+
if (t.eb = !0, o instanceof N || R(this, this.j, se(this, n.callee) + " is not a function"), e = o.node) {
|
|
2500
2500
|
for (n = kn(this, e.body, o.Va), r = Je(this), o = 0; o < t.F.length; o++)
|
|
2501
2501
|
this.g(r, o, t.F[o]);
|
|
2502
2502
|
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2503
2503
|
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2504
|
-
return n.S || (t.B =
|
|
2504
|
+
return n.S || (t.B = hn(this, t.B)), this.g(n.object, "this", t.B, Bn), t.value = void 0, new E(e.body, n);
|
|
2505
2505
|
}
|
|
2506
2506
|
if (o.eval)
|
|
2507
2507
|
if (o = t.F[0], typeof o != "string")
|
|
@@ -2510,67 +2510,67 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2510
2510
|
try {
|
|
2511
2511
|
r = _e(String(o), "eval" + this.Hb++);
|
|
2512
2512
|
} catch (u) {
|
|
2513
|
-
|
|
2513
|
+
R(this, this.T, "Invalid code: " + u.message);
|
|
2514
2514
|
}
|
|
2515
|
-
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, Ft(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = kn(this, r, n) : vt(this, r, n), this.value = void 0, new
|
|
2515
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, Ft(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = kn(this, r, n) : vt(this, r, n), this.value = void 0, new E(o, n);
|
|
2516
2516
|
}
|
|
2517
2517
|
else if (o.Ta)
|
|
2518
|
-
t.scope.S || (t.B =
|
|
2518
|
+
t.scope.S || (t.B = hn(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2519
2519
|
else if (o.Za) {
|
|
2520
2520
|
var s = this;
|
|
2521
2521
|
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
|
|
2522
2522
|
t.value = u, s.za = !1;
|
|
2523
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2523
|
+
}), this.za = !0, t.scope.S || (t.B = hn(this, t.B)), o.Za.apply(t.B, r);
|
|
2524
2524
|
} else
|
|
2525
|
-
|
|
2525
|
+
R(this, this.j, se(this, n.callee) + " is not callable");
|
|
2526
2526
|
}
|
|
2527
2527
|
};
|
|
2528
|
-
|
|
2528
|
+
y.prototype.stepConditionalExpression = function(e, t, n) {
|
|
2529
2529
|
var r = t.na || 0;
|
|
2530
2530
|
if (r === 0)
|
|
2531
|
-
return t.na = 1, new
|
|
2531
|
+
return t.na = 1, new E(n.test, t.scope);
|
|
2532
2532
|
if (r === 1) {
|
|
2533
2533
|
if (t.na = 2, (r = !!t.value) && n.da)
|
|
2534
|
-
return new
|
|
2534
|
+
return new E(n.da, t.scope);
|
|
2535
2535
|
if (!r && n.alternate)
|
|
2536
|
-
return new
|
|
2536
|
+
return new E(n.alternate, t.scope);
|
|
2537
2537
|
this.value = void 0;
|
|
2538
2538
|
}
|
|
2539
2539
|
e.pop(), n.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
2540
2540
|
};
|
|
2541
|
-
|
|
2541
|
+
y.prototype.stepContinueStatement = function(e, t, n) {
|
|
2542
2542
|
bt(this, 2, void 0, n.label && n.label.name);
|
|
2543
2543
|
};
|
|
2544
|
-
|
|
2544
|
+
y.prototype.stepDebuggerStatement = function(e) {
|
|
2545
2545
|
e.pop();
|
|
2546
2546
|
};
|
|
2547
|
-
|
|
2547
|
+
y.prototype.stepDoWhileStatement = function(e, t, n) {
|
|
2548
2548
|
if (n.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2549
|
-
return t.ga = !0, new
|
|
2549
|
+
return t.ga = !0, new E(n.test, t.scope);
|
|
2550
2550
|
if (!t.value)
|
|
2551
2551
|
e.pop();
|
|
2552
2552
|
else if (n.body)
|
|
2553
|
-
return t.ga = !1, t.W = !0, new
|
|
2553
|
+
return t.ga = !1, t.W = !0, new E(n.body, t.scope);
|
|
2554
2554
|
};
|
|
2555
|
-
|
|
2555
|
+
y.prototype.stepEmptyStatement = function(e) {
|
|
2556
2556
|
e.pop();
|
|
2557
2557
|
};
|
|
2558
|
-
|
|
2558
|
+
y.prototype.stepEvalProgram_ = function(e, t, n) {
|
|
2559
2559
|
var r = t.A || 0;
|
|
2560
2560
|
if (n = n.body[r])
|
|
2561
|
-
return t.A = r + 1, new
|
|
2561
|
+
return t.A = r + 1, new E(n, t.scope);
|
|
2562
2562
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2563
2563
|
};
|
|
2564
|
-
|
|
2564
|
+
y.prototype.stepExpressionStatement = function(e, t, n) {
|
|
2565
2565
|
if (!t.ka)
|
|
2566
|
-
return this.value = void 0, t.ka = !0, new
|
|
2566
|
+
return this.value = void 0, t.ka = !0, new E(n.la, t.scope);
|
|
2567
2567
|
e.pop(), this.value = t.value;
|
|
2568
2568
|
};
|
|
2569
|
-
|
|
2569
|
+
y.prototype.stepForInStatement = function(e, t, n) {
|
|
2570
2570
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2571
|
-
return t.scope.S &&
|
|
2571
|
+
return t.scope.S && R(this, this.T, "for-in loop variable declaration may not have an initializer"), new E(n.left, t.scope);
|
|
2572
2572
|
if (!t.Ca)
|
|
2573
|
-
return t.Ca = !0, t.pa || (t.pa = t.value), new
|
|
2573
|
+
return t.Ca = !0, t.pa || (t.pa = t.value), new E(n.right, t.scope);
|
|
2574
2574
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2575
2575
|
e:
|
|
2576
2576
|
for (; ; ) {
|
|
@@ -2591,7 +2591,7 @@ g.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2591
2591
|
break e;
|
|
2592
2592
|
}
|
|
2593
2593
|
}
|
|
2594
|
-
if (t.u =
|
|
2594
|
+
if (t.u = Ae(this, t.u), t.wa = null, t.u === null) {
|
|
2595
2595
|
e.pop();
|
|
2596
2596
|
return;
|
|
2597
2597
|
}
|
|
@@ -2600,40 +2600,40 @@ g.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2600
2600
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2601
2601
|
t.pa = [Ye, e.fa[0].id.name];
|
|
2602
2602
|
else
|
|
2603
|
-
return t.pa = null, t = new
|
|
2603
|
+
return t.pa = null, t = new E(e, t.scope), t.sa = !0, t;
|
|
2604
2604
|
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = Hn(this, t.pa, e)))
|
|
2605
2605
|
return Kn(this, r, t.pa, e);
|
|
2606
2606
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, n.body)
|
|
2607
|
-
return new
|
|
2607
|
+
return new E(n.body, t.scope);
|
|
2608
2608
|
};
|
|
2609
|
-
|
|
2609
|
+
y.prototype.stepForStatement = function(e, t, n) {
|
|
2610
2610
|
switch (t.na) {
|
|
2611
2611
|
default:
|
|
2612
2612
|
if (t.na = 1, n.ua)
|
|
2613
|
-
return new
|
|
2613
|
+
return new E(n.ua, t.scope);
|
|
2614
2614
|
break;
|
|
2615
2615
|
case 1:
|
|
2616
2616
|
if (t.na = 2, n.test)
|
|
2617
|
-
return new
|
|
2617
|
+
return new E(n.test, t.scope);
|
|
2618
2618
|
break;
|
|
2619
2619
|
case 2:
|
|
2620
2620
|
if (t.na = 3, n.test && !t.value)
|
|
2621
2621
|
e.pop();
|
|
2622
2622
|
else
|
|
2623
|
-
return t.W = !0, new
|
|
2623
|
+
return t.W = !0, new E(n.body, t.scope);
|
|
2624
2624
|
break;
|
|
2625
2625
|
case 3:
|
|
2626
2626
|
if (t.na = 1, n.update)
|
|
2627
|
-
return new
|
|
2627
|
+
return new E(n.update, t.scope);
|
|
2628
2628
|
}
|
|
2629
2629
|
};
|
|
2630
|
-
|
|
2630
|
+
y.prototype.stepFunctionDeclaration = function(e) {
|
|
2631
2631
|
e.pop();
|
|
2632
2632
|
};
|
|
2633
|
-
|
|
2633
|
+
y.prototype.stepFunctionExpression = function(e, t, n) {
|
|
2634
2634
|
e.pop(), t = e[e.length - 1], e = t.scope, n.id && (e = Ln(this, e)), t.value = Un(this, n, e, t.Pa), n.id && this.g(e.object, n.id.name, t.value, Bn);
|
|
2635
2635
|
};
|
|
2636
|
-
|
|
2636
|
+
y.prototype.stepIdentifier = function(e, t, n) {
|
|
2637
2637
|
if (e.pop(), t.sa)
|
|
2638
2638
|
e[e.length - 1].value = [Ye, n.name];
|
|
2639
2639
|
else {
|
|
@@ -2642,33 +2642,33 @@ g.prototype.stepIdentifier = function(e, t, n) {
|
|
|
2642
2642
|
e[e.length - 1].value = t;
|
|
2643
2643
|
}
|
|
2644
2644
|
};
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new
|
|
2645
|
+
y.prototype.stepIfStatement = y.prototype.stepConditionalExpression;
|
|
2646
|
+
y.prototype.stepLabeledStatement = function(e, t, n) {
|
|
2647
|
+
return e.pop(), e = t.labels || [], e.push(n.label.name), t = new E(n.body, t.scope), t.labels = e, t;
|
|
2648
2648
|
};
|
|
2649
|
-
|
|
2649
|
+
y.prototype.stepLiteral = function(e, t, n) {
|
|
2650
2650
|
e.pop(), t = n.value, t instanceof RegExp && (n = this.s(this.Ma), Vn(this, n, t), t = n), e[e.length - 1].value = t;
|
|
2651
2651
|
};
|
|
2652
|
-
|
|
2652
|
+
y.prototype.stepLogicalExpression = function(e, t, n) {
|
|
2653
2653
|
if (n.operator !== "&&" && n.operator !== "||")
|
|
2654
2654
|
throw SyntaxError("Unknown logical operator: " + n.operator);
|
|
2655
2655
|
if (!t.ja)
|
|
2656
|
-
return t.ja = !0, new
|
|
2656
|
+
return t.ja = !0, new E(n.left, t.scope);
|
|
2657
2657
|
if (t.Da)
|
|
2658
2658
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2659
2659
|
else if (n.operator === "&&" && !t.value || n.operator === "||" && t.value)
|
|
2660
2660
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2661
2661
|
else
|
|
2662
|
-
return t.Da = !0, new
|
|
2662
|
+
return t.Da = !0, new E(n.right, t.scope);
|
|
2663
2663
|
};
|
|
2664
|
-
|
|
2664
|
+
y.prototype.stepMemberExpression = function(e, t, n) {
|
|
2665
2665
|
if (!t.Ca)
|
|
2666
|
-
return t.Ca = !0, new
|
|
2666
|
+
return t.Ca = !0, new E(n.object, t.scope);
|
|
2667
2667
|
if (n.bb)
|
|
2668
2668
|
if (t.Vb)
|
|
2669
2669
|
n = t.value;
|
|
2670
2670
|
else
|
|
2671
|
-
return t.u = t.value, t.Vb = !0, new
|
|
2671
|
+
return t.u = t.value, t.Vb = !0, new E(n.Wa, t.scope);
|
|
2672
2672
|
else
|
|
2673
2673
|
t.u = t.value, n = n.Wa.name;
|
|
2674
2674
|
if (e.pop(), t.sa)
|
|
@@ -2679,8 +2679,8 @@ g.prototype.stepMemberExpression = function(e, t, n) {
|
|
|
2679
2679
|
e[e.length - 1].value = n;
|
|
2680
2680
|
}
|
|
2681
2681
|
};
|
|
2682
|
-
|
|
2683
|
-
|
|
2682
|
+
y.prototype.stepNewExpression = y.prototype.stepCallExpression;
|
|
2683
|
+
y.prototype.stepObjectExpression = function(e, t, n) {
|
|
2684
2684
|
var r = t.A || 0, o = n.h[r];
|
|
2685
2685
|
if (t.u) {
|
|
2686
2686
|
var i = t.Pa;
|
|
@@ -2695,7 +2695,7 @@ g.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2695
2695
|
i = s.value;
|
|
2696
2696
|
else
|
|
2697
2697
|
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2698
|
-
return t.Pa = i, new
|
|
2698
|
+
return t.Pa = i, new E(o.value, t.scope);
|
|
2699
2699
|
}
|
|
2700
2700
|
for (s in t.Ja)
|
|
2701
2701
|
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, yt, {
|
|
@@ -2706,37 +2706,37 @@ g.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2706
2706
|
}) : this.g(t.u, s, n.init);
|
|
2707
2707
|
e.pop(), e[e.length - 1].value = t.u;
|
|
2708
2708
|
};
|
|
2709
|
-
|
|
2709
|
+
y.prototype.stepProgram = function(e, t, n) {
|
|
2710
2710
|
if (e = n.body.shift())
|
|
2711
|
-
return t.done = !1, new
|
|
2711
|
+
return t.done = !1, new E(e, t.scope);
|
|
2712
2712
|
t.done = !0;
|
|
2713
2713
|
};
|
|
2714
|
-
|
|
2714
|
+
y.prototype.stepReturnStatement = function(e, t, n) {
|
|
2715
2715
|
if (n.K && !t.ka)
|
|
2716
|
-
return t.ka = !0, new
|
|
2716
|
+
return t.ka = !0, new E(n.K, t.scope);
|
|
2717
2717
|
bt(this, 3, t.value);
|
|
2718
2718
|
};
|
|
2719
|
-
|
|
2719
|
+
y.prototype.stepSequenceExpression = function(e, t, n) {
|
|
2720
2720
|
var r = t.A || 0;
|
|
2721
2721
|
if (n = n.xb[r])
|
|
2722
|
-
return t.A = r + 1, new
|
|
2722
|
+
return t.A = r + 1, new E(n, t.scope);
|
|
2723
2723
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2724
2724
|
};
|
|
2725
|
-
|
|
2725
|
+
y.prototype.stepSwitchStatement = function(e, t, n) {
|
|
2726
2726
|
if (!t.ga)
|
|
2727
|
-
return t.ga = 1, new
|
|
2727
|
+
return t.ga = 1, new E(n.Qb, t.scope);
|
|
2728
2728
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2729
2729
|
var r = t.gb || 0, o = n.tb[r];
|
|
2730
2730
|
if (t.Ha || !o || o.test)
|
|
2731
2731
|
if (o || t.Ha || t.cb === -1)
|
|
2732
2732
|
if (o) {
|
|
2733
2733
|
if (!t.Ha && !t.Fb && o.test)
|
|
2734
|
-
return t.Fb = !0, new
|
|
2734
|
+
return t.Fb = !0, new E(o.test, t.scope);
|
|
2735
2735
|
if (t.Ha || t.value === t.hc) {
|
|
2736
2736
|
t.Ha = !0;
|
|
2737
2737
|
var i = t.A || 0;
|
|
2738
2738
|
if (o.da[i])
|
|
2739
|
-
return t.Zb = !0, t.A = i + 1, new
|
|
2739
|
+
return t.Zb = !0, t.A = i + 1, new E(o.da[i], t.scope);
|
|
2740
2740
|
}
|
|
2741
2741
|
t.Fb = !1, t.A = 0, t.gb = r + 1;
|
|
2742
2742
|
} else {
|
|
@@ -2749,27 +2749,27 @@ g.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2749
2749
|
t.cb = r, t.gb = r + 1;
|
|
2750
2750
|
}
|
|
2751
2751
|
};
|
|
2752
|
-
|
|
2752
|
+
y.prototype.stepThisExpression = function(e) {
|
|
2753
2753
|
e.pop(), e[e.length - 1].value = Fn(this, "this");
|
|
2754
2754
|
};
|
|
2755
|
-
|
|
2755
|
+
y.prototype.stepThrowStatement = function(e, t, n) {
|
|
2756
2756
|
if (t.ka)
|
|
2757
|
-
|
|
2757
|
+
R(this, t.value);
|
|
2758
2758
|
else
|
|
2759
|
-
return t.ka = !0, new
|
|
2759
|
+
return t.ka = !0, new E(n.K, t.scope);
|
|
2760
2760
|
};
|
|
2761
|
-
|
|
2761
|
+
y.prototype.stepTryStatement = function(e, t, n) {
|
|
2762
2762
|
if (!t.Rb)
|
|
2763
|
-
return t.Rb = !0, new
|
|
2763
|
+
return t.Rb = !0, new E(n.block, t.scope);
|
|
2764
2764
|
if (t.ea && t.ea.type === 4 && !t.Tb && n.Ea)
|
|
2765
|
-
return t.Tb = !0, e = Ln(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new
|
|
2765
|
+
return t.Tb = !0, e = Ln(this, t.scope), this.g(e.object, n.Ea.Ua.name, t.ea.value), t.ea = void 0, new E(n.Ea.body, e);
|
|
2766
2766
|
if (!t.Sb && n.fb)
|
|
2767
|
-
return t.Sb = !0, new
|
|
2767
|
+
return t.Sb = !0, new E(n.fb, t.scope);
|
|
2768
2768
|
e.pop(), t.ea && bt(this, t.ea.type, t.ea.value, t.ea.label);
|
|
2769
2769
|
};
|
|
2770
|
-
|
|
2770
|
+
y.prototype.stepUnaryExpression = function(e, t, n) {
|
|
2771
2771
|
if (!t.ka)
|
|
2772
|
-
return t.ka = !0, e = new
|
|
2772
|
+
return t.ka = !0, e = new E(n.K, t.scope), e.sa = n.operator === "delete", e;
|
|
2773
2773
|
e.pop();
|
|
2774
2774
|
var r = t.value;
|
|
2775
2775
|
switch (n.operator) {
|
|
@@ -2792,7 +2792,7 @@ g.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2792
2792
|
try {
|
|
2793
2793
|
delete o.h[r];
|
|
2794
2794
|
} catch {
|
|
2795
|
-
t.scope.S ?
|
|
2795
|
+
t.scope.S ? R(this, this.j, "Cannot delete property '" + r + "' of '" + o + "'") : n = !1;
|
|
2796
2796
|
}
|
|
2797
2797
|
}
|
|
2798
2798
|
r = n;
|
|
@@ -2808,9 +2808,9 @@ g.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2808
2808
|
}
|
|
2809
2809
|
e[e.length - 1].value = r;
|
|
2810
2810
|
};
|
|
2811
|
-
|
|
2811
|
+
y.prototype.stepUpdateExpression = function(e, t, n) {
|
|
2812
2812
|
if (!t.ja)
|
|
2813
|
-
return t.ja = !0, e = new
|
|
2813
|
+
return t.ja = !0, e = new E(n.K, t.scope), e.sa = !0, e;
|
|
2814
2814
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2815
2815
|
var r = Mn(this, t.Ga);
|
|
2816
2816
|
if (t.ma = r, this.P)
|
|
@@ -2830,38 +2830,38 @@ g.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2830
2830
|
e.pop(), e[e.length - 1].value = n;
|
|
2831
2831
|
}
|
|
2832
2832
|
};
|
|
2833
|
-
|
|
2833
|
+
y.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2834
2834
|
n = n.fa;
|
|
2835
2835
|
var r = t.A || 0, o = n[r];
|
|
2836
2836
|
for (t.Bb && o && (po(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2837
2837
|
if (o.ua)
|
|
2838
|
-
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new
|
|
2838
|
+
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new E(o.ua, t.scope);
|
|
2839
2839
|
o = n[++r];
|
|
2840
2840
|
}
|
|
2841
2841
|
e.pop();
|
|
2842
2842
|
};
|
|
2843
|
-
|
|
2844
|
-
return t.Ca ? (e.pop(), e = Ln(this, t.scope, t.value), new
|
|
2843
|
+
y.prototype.stepWithStatement = function(e, t, n) {
|
|
2844
|
+
return t.Ca ? (e.pop(), e = Ln(this, t.scope, t.value), new E(n.body, e)) : (t.Ca = !0, new E(n.object, t.scope));
|
|
2845
2845
|
};
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2846
|
+
y.prototype.stepWhileStatement = y.prototype.stepDoWhileStatement;
|
|
2847
|
+
je.Interpreter = y;
|
|
2848
|
+
y.prototype.step = y.prototype.lb;
|
|
2849
|
+
y.prototype.run = y.prototype.Eb;
|
|
2850
|
+
y.prototype.appendCode = y.prototype.Jb;
|
|
2851
|
+
y.prototype.createObject = y.prototype.Aa;
|
|
2852
|
+
y.prototype.createObjectProto = y.prototype.s;
|
|
2853
|
+
y.prototype.createAsyncFunction = y.prototype.ub;
|
|
2854
|
+
y.prototype.createNativeFunction = y.prototype.i;
|
|
2855
|
+
y.prototype.getProperty = y.prototype.G;
|
|
2856
|
+
y.prototype.setProperty = y.prototype.g;
|
|
2857
|
+
y.prototype.nativeToPseudo = y.prototype.Ia;
|
|
2858
|
+
y.prototype.pseudoToNative = y.prototype.R;
|
|
2859
|
+
y.prototype.getGlobalScope = y.prototype.Xb;
|
|
2860
|
+
y.prototype.getStateStack = y.prototype.Yb;
|
|
2861
|
+
y.prototype.setStateStack = y.prototype.ec;
|
|
2862
|
+
y.VALUE_IN_DESCRIPTOR = yt;
|
|
2863
2863
|
function Gi() {
|
|
2864
|
-
const e =
|
|
2864
|
+
const e = y.prototype.getProperty, t = y.prototype.setProperty;
|
|
2865
2865
|
function n(s, u) {
|
|
2866
2866
|
if (s == null || !s._connected)
|
|
2867
2867
|
return e.call(this, s, u);
|
|
@@ -2874,13 +2874,13 @@ function Gi() {
|
|
|
2874
2874
|
s._connected[u] = this.pseudoToNative(c);
|
|
2875
2875
|
}
|
|
2876
2876
|
const o = [], i = [];
|
|
2877
|
-
for (const s of Object.keys(
|
|
2878
|
-
|
|
2877
|
+
for (const s of Object.keys(y.prototype))
|
|
2878
|
+
y.prototype[s] === e && o.push(s), y.prototype[s] === t && i.push(s);
|
|
2879
2879
|
for (const s of o)
|
|
2880
|
-
|
|
2880
|
+
y.prototype[s] = n;
|
|
2881
2881
|
for (const s of i)
|
|
2882
|
-
|
|
2883
|
-
|
|
2882
|
+
y.prototype[s] = r;
|
|
2883
|
+
y.prototype.createConnectedObject = function(s) {
|
|
2884
2884
|
const u = this.createObject(this.OBJECT);
|
|
2885
2885
|
return u._connected = s, u;
|
|
2886
2886
|
};
|
|
@@ -2908,34 +2908,34 @@ function main()`).replace(/\?\./g, "."), Vr = (e) => e + "JSON", Ji = ({
|
|
|
2908
2908
|
event: n,
|
|
2909
2909
|
state: u
|
|
2910
2910
|
}), m = c.map(([$]) => {
|
|
2911
|
-
const
|
|
2912
|
-
return $ === "state" ? "" : `var ${$} = ${
|
|
2911
|
+
const M = Vr($);
|
|
2912
|
+
return $ === "state" ? "" : `var ${$} = ${M} === undefined ? undefined : JSON.parse(${M});`;
|
|
2913
2913
|
}).join(`
|
|
2914
|
-
`),
|
|
2915
|
-
if (
|
|
2914
|
+
`), g = _i(s);
|
|
2915
|
+
if (g === "")
|
|
2916
2916
|
return;
|
|
2917
2917
|
const b = `
|
|
2918
2918
|
function theFunction() {
|
|
2919
2919
|
${m}
|
|
2920
2920
|
|
|
2921
|
-
${
|
|
2921
|
+
${g}
|
|
2922
2922
|
}
|
|
2923
2923
|
theFunction();
|
|
2924
|
-
`,
|
|
2925
|
-
c.forEach(([
|
|
2926
|
-
if (
|
|
2927
|
-
$.setProperty(
|
|
2924
|
+
`, f = function($, M) {
|
|
2925
|
+
c.forEach(([ee, I]) => {
|
|
2926
|
+
if (ee === "state")
|
|
2927
|
+
$.setProperty(M, ee, $.createConnectedObject(I), $.READONLY_DESCRIPTOR);
|
|
2928
2928
|
else {
|
|
2929
|
-
const
|
|
2930
|
-
$.setProperty(
|
|
2929
|
+
const de = JSON.stringify(I);
|
|
2930
|
+
$.setProperty(M, Vr(ee), de);
|
|
2931
2931
|
}
|
|
2932
2932
|
});
|
|
2933
|
-
}, S = new
|
|
2933
|
+
}, S = new y(b, f);
|
|
2934
2934
|
return S.run(), S.pseudoToNative(S.value);
|
|
2935
2935
|
};
|
|
2936
2936
|
function Xi() {
|
|
2937
2937
|
var e;
|
|
2938
|
-
return typeof process < "u" &&
|
|
2938
|
+
return typeof process < "u" && Be((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2939
2939
|
}
|
|
2940
2940
|
const Yi = ({
|
|
2941
2941
|
shouldLogWarning: e
|
|
@@ -2944,8 +2944,8 @@ const Yi = ({
|
|
|
2944
2944
|
if (!Xi())
|
|
2945
2945
|
return !1;
|
|
2946
2946
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), r = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
2947
|
-
return t && n && !r ? (e &&
|
|
2948
|
-
}, Qi = (e) =>
|
|
2947
|
+
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;
|
|
2948
|
+
}, Qi = (e) => H() || Yi({
|
|
2949
2949
|
shouldLogWarning: !0
|
|
2950
2950
|
}) ? xi(e) : Ji(e), Zi = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, es = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, ts = (e) => {
|
|
2951
2951
|
var t, n, r, o, i, s;
|
|
@@ -2982,8 +2982,8 @@ function kt({
|
|
|
2982
2982
|
};
|
|
2983
2983
|
try {
|
|
2984
2984
|
return Qi(m);
|
|
2985
|
-
} catch (
|
|
2986
|
-
|
|
2985
|
+
} catch (g) {
|
|
2986
|
+
le.error("Failed code evaluation: " + g.message, {
|
|
2987
2987
|
code: e
|
|
2988
2988
|
});
|
|
2989
2989
|
return;
|
|
@@ -3140,24 +3140,24 @@ function ps({
|
|
|
3140
3140
|
}), i = as(i, r.locale), i;
|
|
3141
3141
|
}
|
|
3142
3142
|
function qn(e) {
|
|
3143
|
-
const t = e || (
|
|
3143
|
+
const t = e || (H() ? window.location.search : void 0);
|
|
3144
3144
|
return t ? Zr(t).indexOf("builder.preview=") !== -1 : !1;
|
|
3145
3145
|
}
|
|
3146
3146
|
const ds = (e) => ({
|
|
3147
3147
|
type: "builder.registerComponent",
|
|
3148
3148
|
data: Dt(e)
|
|
3149
|
-
}),
|
|
3149
|
+
}), hs = (e) => {
|
|
3150
3150
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
3151
3151
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
3152
3152
|
};
|
|
3153
3153
|
function Dt(e) {
|
|
3154
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
3154
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? hs(n) : n));
|
|
3155
3155
|
}
|
|
3156
3156
|
const Dr = {};
|
|
3157
3157
|
function ic(e, t) {
|
|
3158
3158
|
e === "plugin" && (t = Dt(t));
|
|
3159
3159
|
let n = Dr[e];
|
|
3160
|
-
if (n || (n = Dr[e] = []), n.push(t),
|
|
3160
|
+
if (n || (n = Dr[e] = []), n.push(t), H()) {
|
|
3161
3161
|
const r = {
|
|
3162
3162
|
type: "builder.register",
|
|
3163
3163
|
data: {
|
|
@@ -3174,7 +3174,7 @@ function ic(e, t) {
|
|
|
3174
3174
|
}
|
|
3175
3175
|
function sc(e) {
|
|
3176
3176
|
var t;
|
|
3177
|
-
if (
|
|
3177
|
+
if (H()) {
|
|
3178
3178
|
const n = JSON.parse(JSON.stringify(e));
|
|
3179
3179
|
e.action && (n.action = e.action.toString()), (t = window.parent) == null || t.postMessage({
|
|
3180
3180
|
type: "builder.registerAction",
|
|
@@ -3184,7 +3184,7 @@ function sc(e) {
|
|
|
3184
3184
|
}
|
|
3185
3185
|
const Ur = {};
|
|
3186
3186
|
function ac(e) {
|
|
3187
|
-
if (
|
|
3187
|
+
if (H()) {
|
|
3188
3188
|
Object.assign(Ur, e);
|
|
3189
3189
|
const t = {
|
|
3190
3190
|
type: "builder.settingsChange",
|
|
@@ -3193,18 +3193,18 @@ function ac(e) {
|
|
|
3193
3193
|
parent.postMessage(t, "*");
|
|
3194
3194
|
}
|
|
3195
3195
|
}
|
|
3196
|
-
const Wr = "builder.",
|
|
3196
|
+
const Wr = "builder.", fs = "options.", yo = (e) => {
|
|
3197
3197
|
if (!e)
|
|
3198
3198
|
return {};
|
|
3199
3199
|
const t = Qr(e), n = {};
|
|
3200
3200
|
return Object.keys(t).forEach((r) => {
|
|
3201
3201
|
if (r.startsWith(Wr)) {
|
|
3202
|
-
const o = r.replace(Wr, "").replace(
|
|
3202
|
+
const o = r.replace(Wr, "").replace(fs, "");
|
|
3203
3203
|
n[o] = t[r];
|
|
3204
3204
|
}
|
|
3205
3205
|
}), n;
|
|
3206
3206
|
}, ms = () => {
|
|
3207
|
-
if (!
|
|
3207
|
+
if (!H())
|
|
3208
3208
|
return {};
|
|
3209
3209
|
const e = new URLSearchParams(window.location.search);
|
|
3210
3210
|
return yo(e);
|
|
@@ -3221,7 +3221,7 @@ function vo(e, t) {
|
|
|
3221
3221
|
let Lr = !1;
|
|
3222
3222
|
const bo = (e) => {
|
|
3223
3223
|
var t, n;
|
|
3224
|
-
Lr || (Lr = !0,
|
|
3224
|
+
Lr || (Lr = !0, H() && ((t = window.parent) == null || t.postMessage({
|
|
3225
3225
|
type: "builder.sdkInfo",
|
|
3226
3226
|
data: {
|
|
3227
3227
|
target: G,
|
|
@@ -3251,18 +3251,18 @@ const bo = (e) => {
|
|
|
3251
3251
|
if (o != null && o.type)
|
|
3252
3252
|
switch (o.type) {
|
|
3253
3253
|
case "builder.evaluate": {
|
|
3254
|
-
const u = o.data.text, c = o.data.arguments || [], m = o.data.id,
|
|
3255
|
-
let b,
|
|
3254
|
+
const u = o.data.text, c = o.data.arguments || [], m = o.data.id, g = new Function(u);
|
|
3255
|
+
let b, f = null;
|
|
3256
3256
|
try {
|
|
3257
|
-
b =
|
|
3257
|
+
b = g.apply(null, c);
|
|
3258
3258
|
} catch (S) {
|
|
3259
|
-
|
|
3259
|
+
f = S;
|
|
3260
3260
|
}
|
|
3261
|
-
|
|
3261
|
+
f ? (i = window.parent) == null || i.postMessage({
|
|
3262
3262
|
type: "builder.evaluateError",
|
|
3263
3263
|
data: {
|
|
3264
3264
|
id: m,
|
|
3265
|
-
error:
|
|
3265
|
+
error: f.message
|
|
3266
3266
|
}
|
|
3267
3267
|
}, "*") : b && typeof b.then == "function" ? b.then((S) => {
|
|
3268
3268
|
var A;
|
|
@@ -3321,8 +3321,8 @@ const bo = (e) => {
|
|
|
3321
3321
|
callback: n,
|
|
3322
3322
|
trustedHosts: r
|
|
3323
3323
|
}) => {
|
|
3324
|
-
if (!
|
|
3325
|
-
return
|
|
3324
|
+
if (!H)
|
|
3325
|
+
return le.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
3326
3326
|
};
|
|
3327
3327
|
bo({
|
|
3328
3328
|
modelName: e,
|
|
@@ -3357,11 +3357,11 @@ const bo = (e) => {
|
|
|
3357
3357
|
}), Ss = ({
|
|
3358
3358
|
contentId: e,
|
|
3359
3359
|
value: t
|
|
3360
|
-
}) =>
|
|
3360
|
+
}) => On({
|
|
3361
3361
|
name: Gn(e),
|
|
3362
3362
|
value: t,
|
|
3363
3363
|
canTrack: !0
|
|
3364
|
-
}), ko = (e) =>
|
|
3364
|
+
}), ko = (e) => Be(e.id) && Be(e.variations) && Object.keys(e.variations).length > 0, ks = ({
|
|
3365
3365
|
id: e,
|
|
3366
3366
|
variations: t
|
|
3367
3367
|
}) => {
|
|
@@ -3380,7 +3380,7 @@ const bo = (e) => {
|
|
|
3380
3380
|
contentId: e.id,
|
|
3381
3381
|
value: t
|
|
3382
3382
|
}).catch((n) => {
|
|
3383
|
-
|
|
3383
|
+
le.error("could not store A/B test variation: ", n);
|
|
3384
3384
|
}), t;
|
|
3385
3385
|
}, wo = ({
|
|
3386
3386
|
item: e,
|
|
@@ -3445,20 +3445,20 @@ function Mr() {
|
|
|
3445
3445
|
const t = /* @__PURE__ */ new Set();
|
|
3446
3446
|
return {
|
|
3447
3447
|
setUserAttributes(n) {
|
|
3448
|
-
if (!
|
|
3448
|
+
if (!H())
|
|
3449
3449
|
return;
|
|
3450
3450
|
const r = {
|
|
3451
3451
|
...this.getUserAttributes(),
|
|
3452
3452
|
...n
|
|
3453
3453
|
};
|
|
3454
|
-
|
|
3454
|
+
On({
|
|
3455
3455
|
name: Fr,
|
|
3456
3456
|
value: JSON.stringify(r),
|
|
3457
3457
|
canTrack: e
|
|
3458
3458
|
}), t.forEach((o) => o(r));
|
|
3459
3459
|
},
|
|
3460
3460
|
getUserAttributes() {
|
|
3461
|
-
return
|
|
3461
|
+
return H() ? JSON.parse(Lt({
|
|
3462
3462
|
name: Fr,
|
|
3463
3463
|
canTrack: e
|
|
3464
3464
|
}) || "{}") : {};
|
|
@@ -3476,11 +3476,11 @@ function Mr() {
|
|
|
3476
3476
|
};
|
|
3477
3477
|
}
|
|
3478
3478
|
let wn;
|
|
3479
|
-
|
|
3479
|
+
H() && G === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Mr()), wn = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : wn = Mr();
|
|
3480
3480
|
const Ut = wn, uc = (e) => {
|
|
3481
3481
|
Ut.setUserAttributes(e);
|
|
3482
3482
|
}, Xe = (e) => {
|
|
3483
|
-
const t =
|
|
3483
|
+
const t = Be(e) ? e : !0;
|
|
3484
3484
|
return Ut.setCanTrack(t), t;
|
|
3485
3485
|
};
|
|
3486
3486
|
function Ts() {
|
|
@@ -3533,57 +3533,58 @@ const As = "v3", Hr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, _n = (
|
|
|
3533
3533
|
model: o,
|
|
3534
3534
|
apiKey: i,
|
|
3535
3535
|
enrich: s,
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3536
|
+
enrichOptions: u,
|
|
3537
|
+
locale: c,
|
|
3538
|
+
apiVersion: m = As,
|
|
3539
|
+
fields: g,
|
|
3540
|
+
omit: b,
|
|
3541
|
+
offset: f,
|
|
3542
|
+
cacheSeconds: S,
|
|
3543
|
+
staleCacheSeconds: A,
|
|
3544
|
+
sort: $,
|
|
3545
|
+
includeUnpublished: M,
|
|
3546
|
+
apiHost: ee
|
|
3546
3547
|
} = e;
|
|
3547
3548
|
if (!i)
|
|
3548
3549
|
throw new Error("Missing API key");
|
|
3549
|
-
if (!["v3"].includes(
|
|
3550
|
-
throw new Error(`Invalid apiVersion: expected 'v3', received '${
|
|
3551
|
-
const
|
|
3552
|
-
|
|
3553
|
-
let
|
|
3554
|
-
if (s &&
|
|
3555
|
-
const
|
|
3556
|
-
sort:
|
|
3550
|
+
if (!["v3"].includes(m))
|
|
3551
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${m}'`);
|
|
3552
|
+
const I = t !== 1, de = ee || "https://cdn.builder.io", j = new URL(`${de}/api/${m}/content/${o}`);
|
|
3553
|
+
j.searchParams.set("apiKey", i), j.searchParams.set("limit", String(t)), j.searchParams.set("noTraverse", String(I)), j.searchParams.set("includeRefs", String(!0)), c && j.searchParams.set("locale", c);
|
|
3554
|
+
let ye = n || {};
|
|
3555
|
+
if (s && j.searchParams.set("enrich", String(s)), s && u && j.searchParams.set("enrichOptions", JSON.stringify(u)), j.searchParams.set("omit", b ?? "meta.componentsUsed"), g && j.searchParams.set("fields", g), Number.isFinite(f) && f > -1 && j.searchParams.set("offset", String(Math.floor(f))), typeof M == "boolean" && j.searchParams.set("includeUnpublished", String(M)), S && Hr(S) && j.searchParams.set("cacheSeconds", String(S)), A && Hr(A) && j.searchParams.set("staleCacheSeconds", String(A)), $) {
|
|
3556
|
+
const w = Tn({
|
|
3557
|
+
sort: $
|
|
3557
3558
|
});
|
|
3558
|
-
for (const
|
|
3559
|
-
|
|
3559
|
+
for (const he in w)
|
|
3560
|
+
j.searchParams.set(he, JSON.stringify(w[he]));
|
|
3560
3561
|
}
|
|
3561
|
-
const
|
|
3562
|
+
const K = {
|
|
3562
3563
|
...ms(),
|
|
3563
3564
|
...Qr(e.options || {})
|
|
3564
3565
|
};
|
|
3565
|
-
|
|
3566
|
-
...
|
|
3567
|
-
...
|
|
3566
|
+
ye = {
|
|
3567
|
+
...ye,
|
|
3568
|
+
...Os(K)
|
|
3568
3569
|
};
|
|
3569
|
-
const
|
|
3570
|
-
for (const
|
|
3571
|
-
|
|
3572
|
-
if (Object.keys(
|
|
3573
|
-
const
|
|
3570
|
+
const oe = Tn(K);
|
|
3571
|
+
for (const w in oe)
|
|
3572
|
+
j.searchParams.set(w, String(oe[w]));
|
|
3573
|
+
if (Object.keys(ye).length > 0 && j.searchParams.set("userAttributes", JSON.stringify(ye)), r) {
|
|
3574
|
+
const w = To({
|
|
3574
3575
|
query: r
|
|
3575
3576
|
});
|
|
3576
|
-
for (const
|
|
3577
|
-
|
|
3577
|
+
for (const he in w)
|
|
3578
|
+
j.searchParams.set(he, JSON.stringify(w[he]));
|
|
3578
3579
|
}
|
|
3579
|
-
return
|
|
3580
|
+
return j;
|
|
3580
3581
|
}, $s = (e) => e === "true" ? !0 : e === "false" ? !1 : e, xs = (e) => {
|
|
3581
3582
|
const t = {};
|
|
3582
3583
|
for (const n in e)
|
|
3583
3584
|
n.startsWith("userAttributes.") && (t[n] = $s(e[n]), delete e[n]);
|
|
3584
3585
|
return t;
|
|
3585
|
-
},
|
|
3586
|
-
if (
|
|
3586
|
+
}, Os = (e) => {
|
|
3587
|
+
if (H() && e.preview === "BUILDER_STUDIO") {
|
|
3587
3588
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
3588
3589
|
const t = xs(e), {
|
|
3589
3590
|
userAttributes: n
|
|
@@ -3591,7 +3592,7 @@ const As = "v3", Hr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, _n = (
|
|
|
3591
3592
|
return n;
|
|
3592
3593
|
}
|
|
3593
3594
|
return {};
|
|
3594
|
-
},
|
|
3595
|
+
}, Ps = (e) => "results" in e;
|
|
3595
3596
|
async function Jn(e) {
|
|
3596
3597
|
var r;
|
|
3597
3598
|
const t = e.locale || ((r = e.userAttributes) == null ? void 0 : r.locale);
|
|
@@ -3617,7 +3618,7 @@ const Ns = async (e) => {
|
|
|
3617
3618
|
return await (await n(t.href, r)).json();
|
|
3618
3619
|
}, Bs = async (e, t, n = _n(e)) => {
|
|
3619
3620
|
const r = Xe(e.canTrack);
|
|
3620
|
-
if (n.search.includes("preview="), !r || !(
|
|
3621
|
+
if (n.search.includes("preview="), !r || !(H() || G === "reactNative"))
|
|
3621
3622
|
return t.results;
|
|
3622
3623
|
try {
|
|
3623
3624
|
const o = [];
|
|
@@ -3628,14 +3629,14 @@ const Ns = async (e) => {
|
|
|
3628
3629
|
}));
|
|
3629
3630
|
t.results = o;
|
|
3630
3631
|
} catch (o) {
|
|
3631
|
-
|
|
3632
|
+
le.error("Could not process A/B tests. ", o);
|
|
3632
3633
|
}
|
|
3633
3634
|
return t.results;
|
|
3634
3635
|
};
|
|
3635
3636
|
async function js(e) {
|
|
3636
3637
|
const t = _n(e), n = await Ns(e);
|
|
3637
|
-
if (!
|
|
3638
|
-
throw
|
|
3638
|
+
if (!Ps(n))
|
|
3639
|
+
throw le.error("Error fetching data. ", {
|
|
3639
3640
|
url: t,
|
|
3640
3641
|
content: n,
|
|
3641
3642
|
options: e
|
|
@@ -3670,8 +3671,8 @@ function Vs(e, t, n = {}) {
|
|
|
3670
3671
|
return function() {
|
|
3671
3672
|
const m = Date.now();
|
|
3672
3673
|
!u && n.leading === !1 && (u = m);
|
|
3673
|
-
const
|
|
3674
|
-
return r = this, o = arguments,
|
|
3674
|
+
const g = t - (m - u);
|
|
3675
|
+
return r = this, o = arguments, g <= 0 || g > t ? (s && (clearTimeout(s), s = null), u = m, i = e.apply(r, o), s || (r = o = null)) : !s && n.trailing !== !1 && (s = setTimeout(c, g)), i;
|
|
3675
3676
|
};
|
|
3676
3677
|
}
|
|
3677
3678
|
function mt(e, ...t) {
|
|
@@ -3744,9 +3745,9 @@ function Ws(e) {
|
|
|
3744
3745
|
const s = Vs(i, 200, {
|
|
3745
3746
|
leading: !1
|
|
3746
3747
|
});
|
|
3747
|
-
function u(
|
|
3748
|
-
const b =
|
|
3749
|
-
return b.bottom > A && b.top <
|
|
3748
|
+
function u(g) {
|
|
3749
|
+
const b = g.getBoundingClientRect(), f = window.innerHeight, A = (e.thresholdPercent || 0) / 100 * f;
|
|
3750
|
+
return b.bottom > A && b.top < f - A;
|
|
3750
3751
|
}
|
|
3751
3752
|
const c = e.steps[0].styles;
|
|
3752
3753
|
function m() {
|
|
@@ -3763,7 +3764,7 @@ function Ws(e) {
|
|
|
3763
3764
|
const Ao = (e) => Object.entries(e).map(([n, r]) => {
|
|
3764
3765
|
if (typeof r == "string")
|
|
3765
3766
|
return `${Xn(n)}: ${r};`;
|
|
3766
|
-
}).filter(
|
|
3767
|
+
}).filter(Be), Ls = (e) => Ao(e).join(`
|
|
3767
3768
|
`), pc = ({
|
|
3768
3769
|
mediaQuery: e,
|
|
3769
3770
|
className: t,
|
|
@@ -3878,22 +3879,22 @@ const xo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3878
3879
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
3879
3880
|
e
|
|
3880
3881
|
), e;
|
|
3881
|
-
}), Xs = () => import("./block-wrapper-
|
|
3882
|
+
}), Xs = () => import("./block-wrapper-GT2d4luN.js").then((e) => e.default).catch((e) => {
|
|
3882
3883
|
throw console.error(
|
|
3883
3884
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
3884
3885
|
e
|
|
3885
3886
|
), e;
|
|
3886
|
-
}), Ys = () => import("./component-ref-
|
|
3887
|
+
}), Ys = () => import("./component-ref-1iPK0xOE.js").then((e) => e.default).catch((e) => {
|
|
3887
3888
|
throw console.error(
|
|
3888
3889
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
3889
3890
|
e
|
|
3890
3891
|
), e;
|
|
3891
|
-
}), Qs = () => import("./repeated-block-
|
|
3892
|
+
}), Qs = () => import("./repeated-block-yZJM5I60.js").then((e) => e.default).catch((e) => {
|
|
3892
3893
|
throw console.error(
|
|
3893
3894
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
3894
3895
|
e
|
|
3895
3896
|
), e;
|
|
3896
|
-
}), Zs = () => import("./style-wrapper-
|
|
3897
|
+
}), Zs = () => import("./style-wrapper-i8R7NpdY.js").then((e) => e.default).catch((e) => {
|
|
3897
3898
|
throw console.error(
|
|
3898
3899
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
3899
3900
|
e
|
|
@@ -3995,18 +3996,18 @@ const xo = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
3995
3996
|
});
|
|
3996
3997
|
function ta(e, t, n, r, o, i) {
|
|
3997
3998
|
var b;
|
|
3998
|
-
const s = W("StyleWrapper"), u = W("ComponentRef"), c = W("Block", !0), m = W("BlockWrapper"),
|
|
3999
|
-
return e.canShowBlock ? (v(),
|
|
4000
|
-
|
|
3999
|
+
const s = W("StyleWrapper"), u = W("ComponentRef"), c = W("Block", !0), m = W("BlockWrapper"), g = W("RepeatedBlock");
|
|
4000
|
+
return e.canShowBlock ? (v(), T(z, { key: 0 }, [
|
|
4001
|
+
Z(s, {
|
|
4001
4002
|
block: e.processedBlock,
|
|
4002
4003
|
context: e.context,
|
|
4003
4004
|
id: e.block.id
|
|
4004
4005
|
}, null, 8, ["block", "context", "id"]),
|
|
4005
|
-
(b = e.blockComponent) != null && b.noWrap ? (v(),
|
|
4006
|
-
e.repeatItem ? (v(!0),
|
|
4006
|
+
(b = e.blockComponent) != null && b.noWrap ? (v(), T(z, { key: 1 }, [
|
|
4007
|
+
e.repeatItem ? (v(!0), T(z, { key: 1 }, Se(e.repeatItem, (f, S) => (v(), U(g, {
|
|
4007
4008
|
key: e.generateKey(S),
|
|
4008
|
-
repeatContext:
|
|
4009
|
-
block:
|
|
4009
|
+
repeatContext: f.context,
|
|
4010
|
+
block: f.block,
|
|
4010
4011
|
registeredComponents: e.registeredComponents,
|
|
4011
4012
|
linkComponent: e.linkComponent
|
|
4012
4013
|
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (v(), U(u, {
|
|
@@ -4021,11 +4022,11 @@ function ta(e, t, n, r, o, i) {
|
|
|
4021
4022
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
4022
4023
|
isInteractive: e.componentRefProps.isInteractive
|
|
4023
4024
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
4024
|
-
], 64)) : (v(),
|
|
4025
|
-
e.repeatItem ? (v(!0),
|
|
4025
|
+
], 64)) : (v(), T(z, { key: 0 }, [
|
|
4026
|
+
e.repeatItem ? (v(!0), T(z, { key: 1 }, Se(e.repeatItem, (f, S) => (v(), U(g, {
|
|
4026
4027
|
key: e.generateKey(S),
|
|
4027
|
-
repeatContext:
|
|
4028
|
-
block:
|
|
4028
|
+
repeatContext: f.context,
|
|
4029
|
+
block: f.block,
|
|
4029
4030
|
registeredComponents: e.registeredComponents,
|
|
4030
4031
|
linkComponent: e.linkComponent
|
|
4031
4032
|
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (v(), U(m, {
|
|
@@ -4034,8 +4035,8 @@ function ta(e, t, n, r, o, i) {
|
|
|
4034
4035
|
block: e.processedBlock,
|
|
4035
4036
|
context: e.context
|
|
4036
4037
|
}, {
|
|
4037
|
-
default:
|
|
4038
|
-
|
|
4038
|
+
default: ge(() => [
|
|
4039
|
+
Z(u, {
|
|
4039
4040
|
componentRef: e.componentRefProps.componentRef,
|
|
4040
4041
|
componentOptions: e.componentRefProps.componentOptions,
|
|
4041
4042
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -4046,9 +4047,9 @@ function ta(e, t, n, r, o, i) {
|
|
|
4046
4047
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
4047
4048
|
isInteractive: e.componentRefProps.isInteractive
|
|
4048
4049
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
4049
|
-
(v(!0),
|
|
4050
|
-
key:
|
|
4051
|
-
block:
|
|
4050
|
+
(v(!0), T(z, null, Se(e.childrenWithoutParentComponent, (f, S) => (v(), U(c, {
|
|
4051
|
+
key: f.id,
|
|
4052
|
+
block: f,
|
|
4052
4053
|
registeredComponents: e.registeredComponents,
|
|
4053
4054
|
linkComponent: e.linkComponent,
|
|
4054
4055
|
context: e.context
|
|
@@ -4059,9 +4060,9 @@ function ta(e, t, n, r, o, i) {
|
|
|
4059
4060
|
], 64))
|
|
4060
4061
|
], 64)) : F("", !0);
|
|
4061
4062
|
}
|
|
4062
|
-
const
|
|
4063
|
+
const Oo = /* @__PURE__ */ V(ea, [["render", ta]]), hc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4063
4064
|
__proto__: null,
|
|
4064
|
-
default:
|
|
4065
|
+
default: Oo
|
|
4065
4066
|
}, Symbol.toStringTag, { value: "Module" })), na = B({
|
|
4066
4067
|
name: "builder-blocks-wrapper",
|
|
4067
4068
|
props: [
|
|
@@ -4106,7 +4107,7 @@ const Po = /* @__PURE__ */ j(ea, [["render", ta]]), fc = /* @__PURE__ */ Object.
|
|
|
4106
4107
|
methods: {
|
|
4107
4108
|
onClick() {
|
|
4108
4109
|
var e, t;
|
|
4109
|
-
|
|
4110
|
+
re() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
4110
4111
|
{
|
|
4111
4112
|
type: "builder.clickEmptyBlocks",
|
|
4112
4113
|
data: {
|
|
@@ -4119,7 +4120,7 @@ const Po = /* @__PURE__ */ j(ea, [["render", ta]]), fc = /* @__PURE__ */ Object.
|
|
|
4119
4120
|
},
|
|
4120
4121
|
onMouseEnter() {
|
|
4121
4122
|
var e, t;
|
|
4122
|
-
|
|
4123
|
+
re() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
4123
4124
|
{
|
|
4124
4125
|
type: "builder.hoverEmptyBlocks",
|
|
4125
4126
|
data: {
|
|
@@ -4143,15 +4144,15 @@ function ra(e, t, n, r, o, i) {
|
|
|
4143
4144
|
onMouseEnter: (s) => e.onMouseEnter(),
|
|
4144
4145
|
onKeyPress: (s) => e.onClick()
|
|
4145
4146
|
}, { ...e.BlocksWrapperProps }), {
|
|
4146
|
-
default:
|
|
4147
|
-
|
|
4147
|
+
default: ge(() => [
|
|
4148
|
+
ce(e.$slots, "default", {}, void 0, !0)
|
|
4148
4149
|
]),
|
|
4149
4150
|
_: 3
|
|
4150
4151
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
4151
4152
|
}
|
|
4152
|
-
const oa = /* @__PURE__ */
|
|
4153
|
+
const oa = /* @__PURE__ */ V(na, [["render", ra], ["__scopeId", "data-v-82fc93d6"]]), ia = B({
|
|
4153
4154
|
name: "builder-blocks",
|
|
4154
|
-
components: { BlocksWrapper: oa, Block:
|
|
4155
|
+
components: { BlocksWrapper: oa, Block: Oo },
|
|
4155
4156
|
props: [
|
|
4156
4157
|
"blocks",
|
|
4157
4158
|
"parent",
|
|
@@ -4169,7 +4170,7 @@ const oa = /* @__PURE__ */ j(na, [["render", ra], ["__scopeId", "data-v-82fc93d6
|
|
|
4169
4170
|
}
|
|
4170
4171
|
});
|
|
4171
4172
|
function sa(e, t, n, r, o, i) {
|
|
4172
|
-
var c, m,
|
|
4173
|
+
var c, m, g, b;
|
|
4173
4174
|
const s = W("Block"), u = W("BlocksWrapper");
|
|
4174
4175
|
return v(), U(u, {
|
|
4175
4176
|
blocks: e.blocks,
|
|
@@ -4178,15 +4179,15 @@ function sa(e, t, n, r, o, i) {
|
|
|
4178
4179
|
styleProp: e.styleProp,
|
|
4179
4180
|
BlocksWrapperProps: e.BlocksWrapperProps || ((c = e.context) == null ? void 0 : c.BlocksWrapperProps) || ((m = e.builderContext) == null ? void 0 : m.BlocksWrapperProps),
|
|
4180
4181
|
classNameProp: e.className,
|
|
4181
|
-
BlocksWrapper: ((
|
|
4182
|
+
BlocksWrapper: ((g = e.context) == null ? void 0 : g.BlocksWrapper) || ((b = e.builderContext) == null ? void 0 : b.BlocksWrapper)
|
|
4182
4183
|
}, {
|
|
4183
|
-
default:
|
|
4184
|
-
|
|
4185
|
-
e.blocks ? (v(!0),
|
|
4184
|
+
default: ge(() => [
|
|
4185
|
+
ce(e.$slots, "default"),
|
|
4186
|
+
e.blocks ? (v(!0), T(z, { key: 0 }, Se(e.blocks, (f, S) => {
|
|
4186
4187
|
var A;
|
|
4187
4188
|
return v(), U(s, {
|
|
4188
|
-
key:
|
|
4189
|
-
block:
|
|
4189
|
+
key: f.id,
|
|
4190
|
+
block: f,
|
|
4190
4191
|
linkComponent: e.linkComponent,
|
|
4191
4192
|
context: e.context || e.builderContext,
|
|
4192
4193
|
registeredComponents: e.registeredComponents || ((A = e.componentsContext) == null ? void 0 : A.registeredComponents)
|
|
@@ -4196,16 +4197,16 @@ function sa(e, t, n, r, o, i) {
|
|
|
4196
4197
|
_: 3
|
|
4197
4198
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
|
|
4198
4199
|
}
|
|
4199
|
-
const
|
|
4200
|
+
const We = /* @__PURE__ */ V(ia, [["render", sa]]), aa = B({
|
|
4200
4201
|
name: "dynamic-div",
|
|
4201
4202
|
props: []
|
|
4202
4203
|
});
|
|
4203
4204
|
function la(e, t, n, r, o, i) {
|
|
4204
|
-
return v(),
|
|
4205
|
-
|
|
4205
|
+
return v(), T("div", null, [
|
|
4206
|
+
ce(e.$slots, "default")
|
|
4206
4207
|
]);
|
|
4207
4208
|
}
|
|
4208
|
-
const Ct = /* @__PURE__ */
|
|
4209
|
+
const Ct = /* @__PURE__ */ V(aa, [["render", la]]), ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4209
4210
|
__proto__: null,
|
|
4210
4211
|
default: Ct
|
|
4211
4212
|
}, Symbol.toStringTag, { value: "Module" })), Ht = B({
|
|
@@ -4218,7 +4219,7 @@ const Ct = /* @__PURE__ */ j(aa, [["render", la]]), ua = /* @__PURE__ */ Object.
|
|
|
4218
4219
|
},
|
|
4219
4220
|
name: "inlined-styles",
|
|
4220
4221
|
props: ["styles", "id", "nonce"]
|
|
4221
|
-
}),
|
|
4222
|
+
}), Po = {
|
|
4222
4223
|
xsmall: {
|
|
4223
4224
|
min: 0,
|
|
4224
4225
|
default: 160,
|
|
@@ -4239,8 +4240,8 @@ const Ct = /* @__PURE__ */ j(aa, [["render", la]]), ua = /* @__PURE__ */ Object.
|
|
|
4239
4240
|
default: 991,
|
|
4240
4241
|
max: 1200
|
|
4241
4242
|
}
|
|
4242
|
-
},
|
|
4243
|
-
const t = zn(
|
|
4243
|
+
}, fc = (e, t = Po) => `@media (max-width: ${t[e].max}px)`, ca = (e) => {
|
|
4244
|
+
const t = zn(Po);
|
|
4244
4245
|
if (!e)
|
|
4245
4246
|
return t;
|
|
4246
4247
|
const {
|
|
@@ -4282,7 +4283,7 @@ const Ct = /* @__PURE__ */ j(aa, [["render", la]]), ua = /* @__PURE__ */ Object.
|
|
|
4282
4283
|
components: {
|
|
4283
4284
|
InlinedStyles: Ht,
|
|
4284
4285
|
DynamicRenderer: xn,
|
|
4285
|
-
Blocks:
|
|
4286
|
+
Blocks: We,
|
|
4286
4287
|
DynamicDiv: Ct
|
|
4287
4288
|
},
|
|
4288
4289
|
props: [
|
|
@@ -4412,16 +4413,16 @@ const Ct = /* @__PURE__ */ j(aa, [["render", la]]), ua = /* @__PURE__ */ Object.
|
|
|
4412
4413
|
...e.link ? {
|
|
4413
4414
|
href: e.link
|
|
4414
4415
|
} : {},
|
|
4415
|
-
[
|
|
4416
|
+
[Ne()]: "builder-column",
|
|
4416
4417
|
style: $o(this.columnCssVars(t))
|
|
4417
4418
|
};
|
|
4418
4419
|
}
|
|
4419
4420
|
}
|
|
4420
4421
|
});
|
|
4421
|
-
function
|
|
4422
|
+
function ha(e, t, n, r, o, i) {
|
|
4422
4423
|
var m;
|
|
4423
4424
|
const s = W("InlinedStyles"), u = W("Blocks"), c = W("DynamicRenderer");
|
|
4424
|
-
return v(),
|
|
4425
|
+
return v(), T("div", q({
|
|
4425
4426
|
class: e.getColumnsClass((m = e.builderBlock) == null ? void 0 : m.id) + " div-1be3j8m9ewb",
|
|
4426
4427
|
style: e.columnsCssVars()
|
|
4427
4428
|
}, {}), [
|
|
@@ -4431,20 +4432,20 @@ function fa(e, t, n, r, o, i) {
|
|
|
4431
4432
|
styles: e.columnsStyles(),
|
|
4432
4433
|
nonce: e.builderContext.nonce
|
|
4433
4434
|
}, null, 8, ["styles", "nonce"])) : F("", !0),
|
|
4434
|
-
(v(!0),
|
|
4435
|
+
(v(!0), T(z, null, Se(e.columns, (g, b) => (v(), U(c, {
|
|
4435
4436
|
key: b,
|
|
4436
|
-
TagName: e.getTagName(
|
|
4437
|
+
TagName: e.getTagName(g),
|
|
4437
4438
|
actionAttributes: {},
|
|
4438
|
-
attributes: e.getAttributes(
|
|
4439
|
+
attributes: e.getAttributes(g, b)
|
|
4439
4440
|
}, {
|
|
4440
|
-
default:
|
|
4441
|
-
|
|
4441
|
+
default: ge(() => [
|
|
4442
|
+
Z(u, {
|
|
4442
4443
|
path: `columns.${b}.blocks`,
|
|
4443
4444
|
parent: e.builderBlock.id,
|
|
4444
4445
|
context: e.builderContext,
|
|
4445
4446
|
registeredComponents: e.builderComponents,
|
|
4446
4447
|
linkComponent: e.builderLinkComponent,
|
|
4447
|
-
blocks:
|
|
4448
|
+
blocks: g.blocks,
|
|
4448
4449
|
styleProp: {
|
|
4449
4450
|
flexGrow: "1"
|
|
4450
4451
|
}
|
|
@@ -4454,16 +4455,16 @@ function fa(e, t, n, r, o, i) {
|
|
|
4454
4455
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
4455
4456
|
], 16);
|
|
4456
4457
|
}
|
|
4457
|
-
const
|
|
4458
|
+
const fa = /* @__PURE__ */ V(da, [["render", ha], ["__scopeId", "data-v-ab15749a"]]), ma = B({
|
|
4458
4459
|
name: "builder-fragment-component",
|
|
4459
4460
|
props: []
|
|
4460
4461
|
});
|
|
4461
4462
|
function ga(e, t, n, r, o, i) {
|
|
4462
|
-
return v(),
|
|
4463
|
-
|
|
4463
|
+
return v(), T("span", null, [
|
|
4464
|
+
ce(e.$slots, "default")
|
|
4464
4465
|
]);
|
|
4465
4466
|
}
|
|
4466
|
-
const ya = /* @__PURE__ */
|
|
4467
|
+
const ya = /* @__PURE__ */ V(ma, [["render", ga]]);
|
|
4467
4468
|
function Kr(e) {
|
|
4468
4469
|
return e.replace(/http(s)?:/, "");
|
|
4469
4470
|
}
|
|
@@ -4483,7 +4484,7 @@ function ba(e, t) {
|
|
|
4483
4484
|
}
|
|
4484
4485
|
return null;
|
|
4485
4486
|
}
|
|
4486
|
-
function
|
|
4487
|
+
function Pt(e) {
|
|
4487
4488
|
if (!e)
|
|
4488
4489
|
return e;
|
|
4489
4490
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -4524,10 +4525,10 @@ const Sa = B({
|
|
|
4524
4525
|
if (!this.noWebp) {
|
|
4525
4526
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
4526
4527
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
4527
|
-
return console.debug("Removed given srcset"),
|
|
4528
|
+
return console.debug("Removed given srcset"), Pt(t);
|
|
4528
4529
|
} else if (this.image && !this.srcset)
|
|
4529
|
-
return
|
|
4530
|
-
return
|
|
4530
|
+
return Pt(t);
|
|
4531
|
+
return Pt(t);
|
|
4531
4532
|
}
|
|
4532
4533
|
},
|
|
4533
4534
|
webpSrcSet() {
|
|
@@ -4553,10 +4554,10 @@ const Sa = B({
|
|
|
4553
4554
|
class: "div-t43jfuqn6g-2"
|
|
4554
4555
|
};
|
|
4555
4556
|
function Ta(e, t, n, r, o, i) {
|
|
4556
|
-
var s, u, c, m,
|
|
4557
|
-
return v(),
|
|
4557
|
+
var s, u, c, m, g, b;
|
|
4558
|
+
return v(), T(z, null, [
|
|
4558
4559
|
Ge("picture", null, [
|
|
4559
|
-
e.webpSrcSet ? (v(),
|
|
4560
|
+
e.webpSrcSet ? (v(), T("source", {
|
|
4560
4561
|
key: 0,
|
|
4561
4562
|
type: "image/webp",
|
|
4562
4563
|
srcset: e.webpSrcSet,
|
|
@@ -4581,28 +4582,28 @@ function Ta(e, t, n, r, o, i) {
|
|
|
4581
4582
|
sizes: e.sizesToUse
|
|
4582
4583
|
}, null, 14, Ca)
|
|
4583
4584
|
]),
|
|
4584
|
-
e.aspectRatio && !((u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent) ? (v(),
|
|
4585
|
+
e.aspectRatio && !((u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent) ? (v(), T("div", {
|
|
4585
4586
|
key: 0,
|
|
4586
4587
|
class: "builder-image-sizer div-t43jfuqn6g",
|
|
4587
4588
|
style: Pe({
|
|
4588
4589
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
4589
4590
|
})
|
|
4590
4591
|
}, null, 4)) : F("", !0),
|
|
4591
|
-
(m = (c = e.builderBlock) == null ? void 0 : c.children) != null && m.length && e.fitContent ?
|
|
4592
|
-
!e.fitContent && ((b = (
|
|
4593
|
-
|
|
4592
|
+
(m = (c = e.builderBlock) == null ? void 0 : c.children) != null && m.length && e.fitContent ? ce(e.$slots, "default", { key: 1 }, void 0, !0) : F("", !0),
|
|
4593
|
+
!e.fitContent && ((b = (g = e.builderBlock) == null ? void 0 : g.children) != null && b.length) ? (v(), T("div", wa, [
|
|
4594
|
+
ce(e.$slots, "default", {}, void 0, !0)
|
|
4594
4595
|
])) : F("", !0)
|
|
4595
4596
|
], 64);
|
|
4596
4597
|
}
|
|
4597
|
-
const Ea = /* @__PURE__ */
|
|
4598
|
+
const Ea = /* @__PURE__ */ V(Sa, [["render", Ta], ["__scopeId", "data-v-bb2384ad"]]), Ia = B({
|
|
4598
4599
|
name: "builder-section-component",
|
|
4599
4600
|
props: ["attributes", "maxWidth"],
|
|
4600
4601
|
data() {
|
|
4601
|
-
return { filterAttrs:
|
|
4602
|
+
return { filterAttrs: pe };
|
|
4602
4603
|
}
|
|
4603
4604
|
});
|
|
4604
4605
|
function Ra(e, t, n, r, o, i) {
|
|
4605
|
-
return v(),
|
|
4606
|
+
return v(), T("section", q({
|
|
4606
4607
|
style: {
|
|
4607
4608
|
width: "100%",
|
|
4608
4609
|
alignSelf: "stretch",
|
|
@@ -4615,11 +4616,11 @@ function Ra(e, t, n, r, o, i) {
|
|
|
4615
4616
|
marginLeft: "auto",
|
|
4616
4617
|
marginRight: "auto"
|
|
4617
4618
|
}
|
|
4618
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4619
|
-
|
|
4619
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), be(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4620
|
+
ce(e.$slots, "default")
|
|
4620
4621
|
], 16);
|
|
4621
4622
|
}
|
|
4622
|
-
const Aa = /* @__PURE__ */
|
|
4623
|
+
const Aa = /* @__PURE__ */ V(Ia, [["render", Ra]]);
|
|
4623
4624
|
function $a(e, t, n, r) {
|
|
4624
4625
|
function o(m) {
|
|
4625
4626
|
return typeof m == "string";
|
|
@@ -4627,23 +4628,23 @@ function $a(e, t, n, r) {
|
|
|
4627
4628
|
function i(m) {
|
|
4628
4629
|
return typeof m == "number";
|
|
4629
4630
|
}
|
|
4630
|
-
function s(m,
|
|
4631
|
+
function s(m, g) {
|
|
4631
4632
|
return (() => {
|
|
4632
|
-
const
|
|
4633
|
-
let A =
|
|
4634
|
-
if (
|
|
4633
|
+
const f = g.property, S = g.operator;
|
|
4634
|
+
let A = g.value;
|
|
4635
|
+
if (g && g.property === "urlPath" && g.value && typeof g.value == "string" && g.value !== "/" && g.value.endsWith("/") && (A = g.value.slice(0, -1)), !(f && S))
|
|
4635
4636
|
return !0;
|
|
4636
4637
|
if (Array.isArray(A))
|
|
4637
|
-
return S === "isNot" ? A.every((
|
|
4638
|
-
property:
|
|
4638
|
+
return S === "isNot" ? A.every((M) => s(m, {
|
|
4639
|
+
property: f,
|
|
4639
4640
|
operator: S,
|
|
4640
|
-
value:
|
|
4641
|
-
})) : !!A.find((
|
|
4642
|
-
property:
|
|
4641
|
+
value: M
|
|
4642
|
+
})) : !!A.find((M) => s(m, {
|
|
4643
|
+
property: f,
|
|
4643
4644
|
operator: S,
|
|
4644
|
-
value:
|
|
4645
|
+
value: M
|
|
4645
4646
|
}));
|
|
4646
|
-
const $ = m[
|
|
4647
|
+
const $ = m[f];
|
|
4647
4648
|
if (Array.isArray($))
|
|
4648
4649
|
return $.includes(A);
|
|
4649
4650
|
switch (S) {
|
|
@@ -4722,7 +4723,7 @@ const xa = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
4722
4723
|
thisScript.remove();
|
|
4723
4724
|
}
|
|
4724
4725
|
}
|
|
4725
|
-
}`,
|
|
4726
|
+
}`, Oa = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
4726
4727
|
function isString(val) {
|
|
4727
4728
|
return typeof val === 'string';
|
|
4728
4729
|
}
|
|
@@ -4800,7 +4801,7 @@ const xa = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
4800
4801
|
return item.query.every(filter => {
|
|
4801
4802
|
return objectMatchesQuery(userAttributes, filter);
|
|
4802
4803
|
});
|
|
4803
|
-
}`,
|
|
4804
|
+
}`, Pa = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
4804
4805
|
function getCookie(name) {
|
|
4805
4806
|
const nameEQ = name + '=';
|
|
4806
4807
|
const ca = document.cookie.split(';');
|
|
@@ -4840,7 +4841,7 @@ const xa = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
4840
4841
|
}
|
|
4841
4842
|
}`, Nt = "default", zr = "filterWithCustomTargeting", En = "builderIoPersonalization", In = "updateVisibilityStylesScript", Na = "PersonalizationContainer", No = ["react", "vue", "svelte", "qwik"], Bo = ["vue", "svelte", "qwik"];
|
|
4842
4843
|
function Ba(e, t) {
|
|
4843
|
-
return !(e && e.length > 0) || !t ? !1 : Bo.includes(G) ? !0 : !
|
|
4844
|
+
return !(e && e.length > 0) || !t ? !1 : Bo.includes(G) ? !0 : !H();
|
|
4844
4845
|
}
|
|
4845
4846
|
function ja({
|
|
4846
4847
|
variants: e,
|
|
@@ -4854,7 +4855,7 @@ function ja({
|
|
|
4854
4855
|
path: "this.children",
|
|
4855
4856
|
index: Nt
|
|
4856
4857
|
};
|
|
4857
|
-
if (n &&
|
|
4858
|
+
if (n && re()) {
|
|
4858
4859
|
if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
|
|
4859
4860
|
const s = e == null ? void 0 : e[t];
|
|
4860
4861
|
if (s)
|
|
@@ -4866,7 +4867,7 @@ function ja({
|
|
|
4866
4867
|
}
|
|
4867
4868
|
return i;
|
|
4868
4869
|
}
|
|
4869
|
-
if (
|
|
4870
|
+
if (H()) {
|
|
4870
4871
|
const s = r == null ? void 0 : r[0];
|
|
4871
4872
|
if (s && e) {
|
|
4872
4873
|
const u = e.indexOf(s);
|
|
@@ -4886,16 +4887,16 @@ const Rn = (e) => {
|
|
|
4886
4887
|
}, Va = (e) => Rn(e), Da = () => `
|
|
4887
4888
|
(function() {
|
|
4888
4889
|
if (!window.${zr}) {
|
|
4889
|
-
window.${zr} = ${
|
|
4890
|
+
window.${zr} = ${Oa};
|
|
4890
4891
|
}
|
|
4891
4892
|
if (!window.${En}) {
|
|
4892
4893
|
window.${En} = ${xa};
|
|
4893
4894
|
}
|
|
4894
4895
|
if (!window.${In}) {
|
|
4895
|
-
window.${In} = ${
|
|
4896
|
+
window.${In} = ${Pa};
|
|
4896
4897
|
}
|
|
4897
4898
|
})();
|
|
4898
|
-
`, jo = G === "react", Ua = (e, t, n) => `window.${En}(${JSON.stringify(e)}, "${t}", ${jo}${n ? `, "${n}"` : ""})`, Wa = (e, t, n) => `window.${In}(${JSON.stringify(e)}, "${t}", ${jo}${n ? `, "${n}"` : ""})`,
|
|
4899
|
+
`, jo = G === "react", Ua = (e, t, n) => `window.${En}(${JSON.stringify(e)}, "${t}", ${jo}${n ? `, "${n}"` : ""})`, Wa = (e, t, n) => `window.${In}(${JSON.stringify(e)}, "${t}", ${jo}${n ? `, "${n}"` : ""})`, fn = {
|
|
4899
4900
|
"@type": "@builder.io/sdk:Element",
|
|
4900
4901
|
layerName: "Accordion item title",
|
|
4901
4902
|
responsiveStyles: {
|
|
@@ -4972,7 +4973,7 @@ const Rn = (e) => {
|
|
|
4972
4973
|
name: "title",
|
|
4973
4974
|
type: "uiBlocks",
|
|
4974
4975
|
hideFromUI: !0,
|
|
4975
|
-
defaultValue: [
|
|
4976
|
+
defaultValue: [fn]
|
|
4976
4977
|
}, {
|
|
4977
4978
|
name: "detail",
|
|
4978
4979
|
type: "uiBlocks",
|
|
@@ -4980,10 +4981,10 @@ const Rn = (e) => {
|
|
|
4980
4981
|
defaultValue: [mn]
|
|
4981
4982
|
}],
|
|
4982
4983
|
defaultValue: [{
|
|
4983
|
-
title: [
|
|
4984
|
+
title: [fn],
|
|
4984
4985
|
detail: [mn]
|
|
4985
4986
|
}, {
|
|
4986
|
-
title: [
|
|
4987
|
+
title: [fn],
|
|
4987
4988
|
detail: [mn]
|
|
4988
4989
|
}],
|
|
4989
4990
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
@@ -5021,7 +5022,7 @@ const Rn = (e) => {
|
|
|
5021
5022
|
}
|
|
5022
5023
|
}, Fa = (e) => e.toString(), Ma = B({
|
|
5023
5024
|
name: "builder-accordion",
|
|
5024
|
-
components: { Blocks:
|
|
5025
|
+
components: { Blocks: We },
|
|
5025
5026
|
props: [
|
|
5026
5027
|
"grid",
|
|
5027
5028
|
"oneAtATime",
|
|
@@ -5117,11 +5118,11 @@ const Rn = (e) => {
|
|
|
5117
5118
|
}), Ha = ["data-index", "onClick"];
|
|
5118
5119
|
function Ka(e, t, n, r, o, i) {
|
|
5119
5120
|
const s = W("Blocks");
|
|
5120
|
-
return v(),
|
|
5121
|
+
return v(), T("div", {
|
|
5121
5122
|
class: "builder-accordion",
|
|
5122
5123
|
style: Pe(e.accordionStyles)
|
|
5123
5124
|
}, [
|
|
5124
|
-
(v(!0),
|
|
5125
|
+
(v(!0), T(z, null, Se(e.items, (u, c) => (v(), T(z, { key: c }, [
|
|
5125
5126
|
Ge("div", {
|
|
5126
5127
|
class: gt(e.getAccordionTitleClassName(c)),
|
|
5127
5128
|
style: Pe({
|
|
@@ -5134,7 +5135,7 @@ function Ka(e, t, n, r, o, i) {
|
|
|
5134
5135
|
"data-index": c,
|
|
5135
5136
|
onClick: async (m) => e.onClick(c)
|
|
5136
5137
|
}, [
|
|
5137
|
-
|
|
5138
|
+
Z(s, {
|
|
5138
5139
|
blocks: u.title,
|
|
5139
5140
|
path: `items.${c}.title`,
|
|
5140
5141
|
parent: e.builderBlock.id,
|
|
@@ -5143,12 +5144,12 @@ function Ka(e, t, n, r, o, i) {
|
|
|
5143
5144
|
linkComponent: e.builderLinkComponent
|
|
5144
5145
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
5145
5146
|
], 14, Ha),
|
|
5146
|
-
e.open.includes(c) ? (v(),
|
|
5147
|
+
e.open.includes(c) ? (v(), T("div", {
|
|
5147
5148
|
key: 0,
|
|
5148
5149
|
class: gt(e.getAccordionDetailClassName(c)),
|
|
5149
5150
|
style: Pe(e.accordionDetailStyles)
|
|
5150
5151
|
}, [
|
|
5151
|
-
|
|
5152
|
+
Z(s, {
|
|
5152
5153
|
blocks: u.detail,
|
|
5153
5154
|
path: `items.${c}.detail`,
|
|
5154
5155
|
parent: e.builderBlock.id,
|
|
@@ -5160,7 +5161,7 @@ function Ka(e, t, n, r, o, i) {
|
|
|
5160
5161
|
], 64))), 128))
|
|
5161
5162
|
], 4);
|
|
5162
5163
|
}
|
|
5163
|
-
const za = /* @__PURE__ */
|
|
5164
|
+
const za = /* @__PURE__ */ V(Ma, [["render", Ka]]), qa = {
|
|
5164
5165
|
name: "Core:Button",
|
|
5165
5166
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
5166
5167
|
defaultStyles: {
|
|
@@ -5431,13 +5432,13 @@ const za = /* @__PURE__ */ j(Ma, [["render", Ka]]), qa = {
|
|
|
5431
5432
|
e.delete("srcset"), e.delete("noWebp");
|
|
5432
5433
|
function n(s, u = 6e4) {
|
|
5433
5434
|
return new Promise((c, m) => {
|
|
5434
|
-
const
|
|
5435
|
+
const g = document.createElement("img");
|
|
5435
5436
|
let b = !1;
|
|
5436
|
-
|
|
5437
|
-
b = !0, c(
|
|
5438
|
-
},
|
|
5439
|
-
console.warn("Image load failed",
|
|
5440
|
-
}),
|
|
5437
|
+
g.onload = () => {
|
|
5438
|
+
b = !0, c(g);
|
|
5439
|
+
}, g.addEventListener("error", (f) => {
|
|
5440
|
+
console.warn("Image load failed", f.error), m(f.error);
|
|
5441
|
+
}), g.src = s, setTimeout(() => {
|
|
5441
5442
|
b || m(new Error("Image load timed out"));
|
|
5442
5443
|
}, u);
|
|
5443
5444
|
});
|
|
@@ -5571,7 +5572,7 @@ const za = /* @__PURE__ */ j(Ma, [["render", Ka]]), qa = {
|
|
|
5571
5572
|
}), Qa = B({
|
|
5572
5573
|
name: "builder-personalization-container",
|
|
5573
5574
|
components: {
|
|
5574
|
-
Blocks:
|
|
5575
|
+
Blocks: We,
|
|
5575
5576
|
InlinedStyles: Ht,
|
|
5576
5577
|
InlinedScript: Qn
|
|
5577
5578
|
},
|
|
@@ -5619,7 +5620,7 @@ const za = /* @__PURE__ */ j(Ma, [["render", Ka]]), qa = {
|
|
|
5619
5620
|
fireImmediately: G === "qwik"
|
|
5620
5621
|
}
|
|
5621
5622
|
);
|
|
5622
|
-
if (!(
|
|
5623
|
+
if (!(re() || qn())) {
|
|
5623
5624
|
const n = this.filteredVariants[0];
|
|
5624
5625
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
5625
5626
|
new CustomEvent("builder.variantLoaded", {
|
|
@@ -5652,9 +5653,9 @@ const za = /* @__PURE__ */ j(Ma, [["render", Ka]]), qa = {
|
|
|
5652
5653
|
computed: {
|
|
5653
5654
|
attrs() {
|
|
5654
5655
|
return {
|
|
5655
|
-
...
|
|
5656
|
-
...
|
|
5657
|
-
[
|
|
5656
|
+
...pe(this.attributes, "v-on:", !1),
|
|
5657
|
+
...pe(this.attributes, "v-on:", !0),
|
|
5658
|
+
[Ne()]: `builder-personalization-container ${this.attributes[Ne()] || ""}`
|
|
5658
5659
|
};
|
|
5659
5660
|
},
|
|
5660
5661
|
filteredVariants() {
|
|
@@ -5694,9 +5695,9 @@ const za = /* @__PURE__ */ j(Ma, [["render", Ka]]), qa = {
|
|
|
5694
5695
|
}
|
|
5695
5696
|
});
|
|
5696
5697
|
function Za(e, t, n, r, o, i) {
|
|
5697
|
-
var m,
|
|
5698
|
+
var m, g, b, f, S, A, $, M, ee, I;
|
|
5698
5699
|
const s = W("Blocks"), u = W("InlinedStyles"), c = W("InlinedScript");
|
|
5699
|
-
return v(),
|
|
5700
|
+
return v(), T("div", q({ ref: "rootRef" }, e.attrs), [
|
|
5700
5701
|
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (v(), U(s, {
|
|
5701
5702
|
key: 0,
|
|
5702
5703
|
blocks: e.blocksToRender.blocks,
|
|
@@ -5705,45 +5706,45 @@ function Za(e, t, n, r, o, i) {
|
|
|
5705
5706
|
context: e.builderContext,
|
|
5706
5707
|
registeredComponents: e.builderComponents,
|
|
5707
5708
|
BlocksWrapperProps: {
|
|
5708
|
-
...(
|
|
5709
|
+
...(g = e.builderContext) == null ? void 0 : g.BlocksWrapperProps,
|
|
5709
5710
|
"data-variant-id": `${(b = e.builderBlock) == null ? void 0 : b.id}-${e.blocksToRender.index}`
|
|
5710
5711
|
}
|
|
5711
5712
|
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : F("", !0),
|
|
5712
|
-
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (v(),
|
|
5713
|
-
e.shouldRenderVariants ? (v(),
|
|
5714
|
-
|
|
5715
|
-
nonce: ((
|
|
5713
|
+
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (v(), T(z, { key: 1 }, [
|
|
5714
|
+
e.shouldRenderVariants ? (v(), T(z, { key: 0 }, [
|
|
5715
|
+
Z(u, {
|
|
5716
|
+
nonce: ((f = e.builderContext) == null ? void 0 : f.nonce) || "",
|
|
5716
5717
|
styles: e.hideVariantsStyleString,
|
|
5717
5718
|
id: `variants-styles-${(S = e.builderBlock) == null ? void 0 : S.id}`
|
|
5718
5719
|
}, null, 8, ["nonce", "styles", "id"]),
|
|
5719
|
-
|
|
5720
|
+
Z(c, {
|
|
5720
5721
|
nonce: ((A = e.builderContext) == null ? void 0 : A.nonce) || "",
|
|
5721
5722
|
scriptStr: e.updateVisibilityStylesScript,
|
|
5722
5723
|
id: `variants-visibility-script-${($ = e.builderBlock) == null ? void 0 : $.id}`
|
|
5723
5724
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
5724
|
-
(v(!0),
|
|
5725
|
-
var
|
|
5725
|
+
(v(!0), T(z, null, Se(e.variants, (de, j) => {
|
|
5726
|
+
var ye, K, oe, w;
|
|
5726
5727
|
return v(), U(s, {
|
|
5727
|
-
key: `${(
|
|
5728
|
+
key: `${(ye = e.builderBlock) == null ? void 0 : ye.id}-${j}`,
|
|
5728
5729
|
BlocksWrapperProps: {
|
|
5729
5730
|
...(K = e.builderContext) == null ? void 0 : K.BlocksWrapperProps,
|
|
5730
5731
|
"aria-hidden": !0,
|
|
5731
5732
|
hidden: !0,
|
|
5732
|
-
"data-variant-id": `${(
|
|
5733
|
+
"data-variant-id": `${(oe = e.builderBlock) == null ? void 0 : oe.id}-${j}`
|
|
5733
5734
|
},
|
|
5734
|
-
blocks:
|
|
5735
|
-
parent: (
|
|
5736
|
-
path: `component.options.variants.${
|
|
5735
|
+
blocks: de.blocks,
|
|
5736
|
+
parent: (w = e.builderBlock) == null ? void 0 : w.id,
|
|
5737
|
+
path: `component.options.variants.${j}.blocks`,
|
|
5737
5738
|
context: e.builderContext,
|
|
5738
5739
|
registeredComponents: e.builderComponents
|
|
5739
5740
|
}, {
|
|
5740
|
-
default:
|
|
5741
|
-
var
|
|
5741
|
+
default: ge(() => {
|
|
5742
|
+
var he, L;
|
|
5742
5743
|
return [
|
|
5743
|
-
|
|
5744
|
-
nonce: ((
|
|
5744
|
+
Z(c, {
|
|
5745
|
+
nonce: ((he = e.builderContext) == null ? void 0 : he.nonce) || "",
|
|
5745
5746
|
scriptStr: e.scriptStr,
|
|
5746
|
-
id: `variants-script-${(L = e.builderBlock) == null ? void 0 : L.id}-${
|
|
5747
|
+
id: `variants-script-${(L = e.builderBlock) == null ? void 0 : L.id}-${j}`
|
|
5747
5748
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
5748
5749
|
];
|
|
5749
5750
|
}),
|
|
@@ -5751,25 +5752,25 @@ function Za(e, t, n, r, o, i) {
|
|
|
5751
5752
|
}, 1032, ["BlocksWrapperProps", "blocks", "parent", "path", "context", "registeredComponents"]);
|
|
5752
5753
|
}), 128))
|
|
5753
5754
|
], 64)) : F("", !0),
|
|
5754
|
-
|
|
5755
|
+
Z(s, {
|
|
5755
5756
|
blocks: e.blocksToRender.blocks,
|
|
5756
|
-
parent: (
|
|
5757
|
+
parent: (M = e.builderBlock) == null ? void 0 : M.id,
|
|
5757
5758
|
path: e.blocksToRender.path,
|
|
5758
5759
|
context: e.builderContext,
|
|
5759
5760
|
registeredComponents: e.builderComponents,
|
|
5760
5761
|
BlocksWrapperProps: {
|
|
5761
|
-
...(
|
|
5762
|
-
"data-variant-id": `${(
|
|
5762
|
+
...(ee = e.builderContext) == null ? void 0 : ee.BlocksWrapperProps,
|
|
5763
|
+
"data-variant-id": `${(I = e.builderBlock) == null ? void 0 : I.id}-${e.blocksToRender.index}`
|
|
5763
5764
|
}
|
|
5764
5765
|
}, {
|
|
5765
|
-
default:
|
|
5766
|
-
var
|
|
5766
|
+
default: ge(() => {
|
|
5767
|
+
var de, j;
|
|
5767
5768
|
return [
|
|
5768
5769
|
e.shouldRenderVariants ? (v(), U(c, {
|
|
5769
5770
|
key: 0,
|
|
5770
|
-
nonce: ((
|
|
5771
|
+
nonce: ((de = e.builderContext) == null ? void 0 : de.nonce) || "",
|
|
5771
5772
|
scriptStr: e.scriptStr,
|
|
5772
|
-
id: `variants-script-${(
|
|
5773
|
+
id: `variants-script-${(j = e.builderBlock) == null ? void 0 : j.id}-${e.DEFAULT_INDEX}`
|
|
5773
5774
|
}, null, 8, ["nonce", "scriptStr", "id"])) : F("", !0)
|
|
5774
5775
|
];
|
|
5775
5776
|
}),
|
|
@@ -5778,7 +5779,7 @@ function Za(e, t, n, r, o, i) {
|
|
|
5778
5779
|
], 64)) : F("", !0)
|
|
5779
5780
|
], 16);
|
|
5780
5781
|
}
|
|
5781
|
-
const el = /* @__PURE__ */
|
|
5782
|
+
const el = /* @__PURE__ */ V(Qa, [["render", Za]]), tl = {
|
|
5782
5783
|
name: "Core:Section",
|
|
5783
5784
|
static: !0,
|
|
5784
5785
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -5836,13 +5837,13 @@ const el = /* @__PURE__ */ j(Qa, [["render", Za]]), tl = {
|
|
|
5836
5837
|
}
|
|
5837
5838
|
}, rl = B({
|
|
5838
5839
|
name: "builder-slot",
|
|
5839
|
-
components: { Blocks:
|
|
5840
|
+
components: { Blocks: We },
|
|
5840
5841
|
props: ["builderContext", "name", "builderComponents"]
|
|
5841
5842
|
});
|
|
5842
5843
|
function ol(e, t, n, r, o, i) {
|
|
5843
5844
|
var u, c, m;
|
|
5844
5845
|
const s = W("Blocks");
|
|
5845
|
-
return v(),
|
|
5846
|
+
return v(), T("div", q(
|
|
5846
5847
|
{ style: {
|
|
5847
5848
|
pointerEvents: "auto"
|
|
5848
5849
|
} },
|
|
@@ -5850,7 +5851,7 @@ function ol(e, t, n, r, o, i) {
|
|
|
5850
5851
|
"builder-slot": e.name
|
|
5851
5852
|
}
|
|
5852
5853
|
), [
|
|
5853
|
-
|
|
5854
|
+
Z(s, {
|
|
5854
5855
|
parent: (c = e.builderContext.context) == null ? void 0 : c.symbolId,
|
|
5855
5856
|
path: `symbol.data.${e.name}`,
|
|
5856
5857
|
context: e.builderContext,
|
|
@@ -5859,7 +5860,7 @@ function ol(e, t, n, r, o, i) {
|
|
|
5859
5860
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
5860
5861
|
], 16);
|
|
5861
5862
|
}
|
|
5862
|
-
const il = /* @__PURE__ */
|
|
5863
|
+
const il = /* @__PURE__ */ V(rl, [["render", ol]]), sl = {
|
|
5863
5864
|
name: "Symbol",
|
|
5864
5865
|
noWrap: !0,
|
|
5865
5866
|
static: !0,
|
|
@@ -6041,7 +6042,7 @@ const il = /* @__PURE__ */ j(rl, [["render", ol]]), sl = {
|
|
|
6041
6042
|
}
|
|
6042
6043
|
}, ll = B({
|
|
6043
6044
|
name: "builder-tabs",
|
|
6044
|
-
components: { Blocks:
|
|
6045
|
+
components: { Blocks: We },
|
|
6045
6046
|
props: [
|
|
6046
6047
|
"defaultActiveTab",
|
|
6047
6048
|
"tabs",
|
|
@@ -6070,7 +6071,7 @@ const il = /* @__PURE__ */ j(rl, [["render", ol]]), sl = {
|
|
|
6070
6071
|
}), ul = ["onClick"], cl = { key: 0 };
|
|
6071
6072
|
function pl(e, t, n, r, o, i) {
|
|
6072
6073
|
const s = W("Blocks");
|
|
6073
|
-
return v(),
|
|
6074
|
+
return v(), T("div", null, [
|
|
6074
6075
|
Ge("div", {
|
|
6075
6076
|
class: "builder-tabs-wrap",
|
|
6076
6077
|
style: Pe({
|
|
@@ -6080,13 +6081,13 @@ function pl(e, t, n, r, o, i) {
|
|
|
6080
6081
|
overflow: "auto"
|
|
6081
6082
|
})
|
|
6082
6083
|
}, [
|
|
6083
|
-
(v(!0),
|
|
6084
|
+
(v(!0), T(z, null, Se(e.tabs, (u, c) => (v(), T("span", {
|
|
6084
6085
|
key: c,
|
|
6085
6086
|
class: gt(`builder-tab-wrap ${e.activeTab === c ? "builder-tab-active" : ""}`),
|
|
6086
6087
|
style: Pe(e.getTabStyle(c)),
|
|
6087
6088
|
onClick: async (m) => e.onClick(c)
|
|
6088
6089
|
}, [
|
|
6089
|
-
|
|
6090
|
+
Z(s, {
|
|
6090
6091
|
parent: e.builderBlock.id,
|
|
6091
6092
|
path: `tabs.${c}.label`,
|
|
6092
6093
|
blocks: u.label,
|
|
@@ -6096,8 +6097,8 @@ function pl(e, t, n, r, o, i) {
|
|
|
6096
6097
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
6097
6098
|
], 14, ul))), 128))
|
|
6098
6099
|
], 4),
|
|
6099
|
-
e.activeTabContent(e.activeTab) ? (v(),
|
|
6100
|
-
|
|
6100
|
+
e.activeTabContent(e.activeTab) ? (v(), T("div", cl, [
|
|
6101
|
+
Z(s, {
|
|
6101
6102
|
parent: e.builderBlock.id,
|
|
6102
6103
|
path: `tabs.${e.activeTab}.content`,
|
|
6103
6104
|
blocks: e.activeTabContent(e.activeTab),
|
|
@@ -6108,7 +6109,7 @@ function pl(e, t, n, r, o, i) {
|
|
|
6108
6109
|
])) : F("", !0)
|
|
6109
6110
|
]);
|
|
6110
6111
|
}
|
|
6111
|
-
const dl = /* @__PURE__ */
|
|
6112
|
+
const dl = /* @__PURE__ */ V(ll, [["render", pl]]), hl = {
|
|
6112
6113
|
shouldReceiveBuilderProps: {},
|
|
6113
6114
|
name: "Text",
|
|
6114
6115
|
static: !0,
|
|
@@ -6126,13 +6127,13 @@ const dl = /* @__PURE__ */ j(ll, [["render", pl]]), fl = {
|
|
|
6126
6127
|
height: "auto",
|
|
6127
6128
|
textAlign: "center"
|
|
6128
6129
|
}
|
|
6129
|
-
},
|
|
6130
|
+
}, fl = B({
|
|
6130
6131
|
name: "builder-text",
|
|
6131
6132
|
props: ["text"]
|
|
6132
6133
|
}), ml = ["innerHTML"];
|
|
6133
6134
|
function gl(e, t, n, r, o, i) {
|
|
6134
6135
|
var s;
|
|
6135
|
-
return v(),
|
|
6136
|
+
return v(), T("div", {
|
|
6136
6137
|
class: "builder-text",
|
|
6137
6138
|
innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
|
|
6138
6139
|
style: {
|
|
@@ -6140,7 +6141,7 @@ function gl(e, t, n, r, o, i) {
|
|
|
6140
6141
|
}
|
|
6141
6142
|
}, null, 8, ml);
|
|
6142
6143
|
}
|
|
6143
|
-
const yl = /* @__PURE__ */
|
|
6144
|
+
const yl = /* @__PURE__ */ V(fl, [["render", gl]]), vl = {
|
|
6144
6145
|
name: "Custom Code",
|
|
6145
6146
|
static: !0,
|
|
6146
6147
|
requiredPermissions: ["editCode"],
|
|
@@ -6174,7 +6175,7 @@ const yl = /* @__PURE__ */ j(hl, [["render", gl]]), vl = {
|
|
|
6174
6175
|
watch: {
|
|
6175
6176
|
onUpdateHook0: {
|
|
6176
6177
|
handler() {
|
|
6177
|
-
|
|
6178
|
+
re() && setTimeout(() => {
|
|
6178
6179
|
this.runScripts();
|
|
6179
6180
|
}, 0);
|
|
6180
6181
|
},
|
|
@@ -6212,7 +6213,7 @@ const yl = /* @__PURE__ */ j(hl, [["render", gl]]), vl = {
|
|
|
6212
6213
|
try {
|
|
6213
6214
|
this.scriptsRun.push(r.innerText), new Function(r.innerText)();
|
|
6214
6215
|
} catch (o) {
|
|
6215
|
-
|
|
6216
|
+
le.warn(
|
|
6216
6217
|
"[BUILDER.IO] `CustomCode`: Error running script:",
|
|
6217
6218
|
o
|
|
6218
6219
|
);
|
|
@@ -6223,13 +6224,13 @@ const yl = /* @__PURE__ */ j(hl, [["render", gl]]), vl = {
|
|
|
6223
6224
|
}
|
|
6224
6225
|
}), Sl = ["innerHTML"];
|
|
6225
6226
|
function kl(e, t, n, r, o, i) {
|
|
6226
|
-
return v(),
|
|
6227
|
+
return v(), T("div", {
|
|
6227
6228
|
ref: "elementRef",
|
|
6228
6229
|
class: gt("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
6229
6230
|
innerHTML: e.code
|
|
6230
6231
|
}, null, 10, Sl);
|
|
6231
6232
|
}
|
|
6232
|
-
const Cl = /* @__PURE__ */
|
|
6233
|
+
const Cl = /* @__PURE__ */ V(bl, [["render", kl]]), wl = {
|
|
6233
6234
|
name: "Embed",
|
|
6234
6235
|
static: !0,
|
|
6235
6236
|
inputs: [{
|
|
@@ -6281,20 +6282,20 @@ const Cl = /* @__PURE__ */ j(bl, [["render", kl]]), wl = {
|
|
|
6281
6282
|
try {
|
|
6282
6283
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
6283
6284
|
} catch (r) {
|
|
6284
|
-
|
|
6285
|
+
le.warn("[BUILDER.IO] `Embed`: Error running script:", r);
|
|
6285
6286
|
}
|
|
6286
6287
|
}
|
|
6287
6288
|
}
|
|
6288
6289
|
}
|
|
6289
6290
|
}), Rl = ["innerHTML"];
|
|
6290
6291
|
function Al(e, t, n, r, o, i) {
|
|
6291
|
-
return v(),
|
|
6292
|
+
return v(), T("div", {
|
|
6292
6293
|
class: "builder-embed",
|
|
6293
6294
|
ref: "elem",
|
|
6294
6295
|
innerHTML: e.content
|
|
6295
6296
|
}, null, 8, Rl);
|
|
6296
6297
|
}
|
|
6297
|
-
const $l = /* @__PURE__ */
|
|
6298
|
+
const $l = /* @__PURE__ */ V(Il, [["render", Al]]), xl = {
|
|
6298
6299
|
name: "Form:Form",
|
|
6299
6300
|
// editableTags: ['builder-form-error']
|
|
6300
6301
|
defaults: {
|
|
@@ -6531,12 +6532,12 @@ const $l = /* @__PURE__ */ j(Il, [["render", Al]]), xl = {
|
|
|
6531
6532
|
builderComponents: !0,
|
|
6532
6533
|
builderLinkComponent: !0
|
|
6533
6534
|
}
|
|
6534
|
-
},
|
|
6535
|
+
}, Ol = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Pl = () => {
|
|
6535
6536
|
const e = process.env.NODE_ENV || "production";
|
|
6536
|
-
return
|
|
6537
|
+
return Ol.includes(e) ? e : "production";
|
|
6537
6538
|
}, Nl = B({
|
|
6538
6539
|
name: "builder-form-component",
|
|
6539
|
-
components: { Blocks:
|
|
6540
|
+
components: { Blocks: We },
|
|
6540
6541
|
props: [
|
|
6541
6542
|
"builderContext",
|
|
6542
6543
|
"previewState",
|
|
@@ -6562,7 +6563,7 @@ const $l = /* @__PURE__ */ j(Il, [["render", Al]]), xl = {
|
|
|
6562
6563
|
formState: "unsubmitted",
|
|
6563
6564
|
responseData: null,
|
|
6564
6565
|
formErrorMessage: "",
|
|
6565
|
-
filterAttrs:
|
|
6566
|
+
filterAttrs: pe
|
|
6566
6567
|
};
|
|
6567
6568
|
},
|
|
6568
6569
|
methods: {
|
|
@@ -6575,7 +6576,7 @@ const $l = /* @__PURE__ */ j(Il, [["render", Al]]), xl = {
|
|
|
6575
6576
|
this.builderContext.rootSetState ? (r = (n = this.builderContext).rootSetState) == null || r.call(n, t) : this.builderContext.rootState = t;
|
|
6576
6577
|
},
|
|
6577
6578
|
submissionState() {
|
|
6578
|
-
return
|
|
6579
|
+
return re() && this.previewState || this.formState;
|
|
6579
6580
|
},
|
|
6580
6581
|
errorResponse(e) {
|
|
6581
6582
|
return JSON.stringify(e, null, 2);
|
|
@@ -6593,42 +6594,42 @@ const $l = /* @__PURE__ */ j(Il, [["render", Al]]), xl = {
|
|
|
6593
6594
|
e.preventDefault();
|
|
6594
6595
|
const r = e.currentTarget || e.target, o = this.customHeaders || {};
|
|
6595
6596
|
let i;
|
|
6596
|
-
const s = new FormData(r), u = Array.from(r.querySelectorAll("input,select,textarea")).filter((
|
|
6597
|
-
(
|
|
6598
|
-
).map((
|
|
6597
|
+
const s = new FormData(r), u = Array.from(r.querySelectorAll("input,select,textarea")).filter((f) => !!f.name).filter(
|
|
6598
|
+
(f) => !!f.name && (f.type !== "radio" || f.checked)
|
|
6599
|
+
).map((f) => {
|
|
6599
6600
|
let S;
|
|
6600
|
-
const A =
|
|
6601
|
-
if (
|
|
6602
|
-
if (
|
|
6603
|
-
if (
|
|
6604
|
-
return S =
|
|
6601
|
+
const A = f.name;
|
|
6602
|
+
if (f instanceof HTMLInputElement)
|
|
6603
|
+
if (f.type === "radio") {
|
|
6604
|
+
if (f.checked)
|
|
6605
|
+
return S = f.value, {
|
|
6605
6606
|
key: A,
|
|
6606
6607
|
value: S
|
|
6607
6608
|
};
|
|
6608
|
-
} else if (
|
|
6609
|
-
S =
|
|
6610
|
-
else if (
|
|
6611
|
-
const $ =
|
|
6609
|
+
} else if (f.type === "checkbox")
|
|
6610
|
+
S = f.checked;
|
|
6611
|
+
else if (f.type === "number" || f.type === "range") {
|
|
6612
|
+
const $ = f.valueAsNumber;
|
|
6612
6613
|
isNaN($) || (S = $);
|
|
6613
6614
|
} else
|
|
6614
|
-
|
|
6615
|
+
f.type === "file" ? S = f.files : S = f.value;
|
|
6615
6616
|
else
|
|
6616
|
-
S =
|
|
6617
|
+
S = f.value;
|
|
6617
6618
|
return {
|
|
6618
6619
|
key: A,
|
|
6619
6620
|
value: S
|
|
6620
6621
|
};
|
|
6621
6622
|
});
|
|
6622
6623
|
let c = this.contentType;
|
|
6623
|
-
if (this.sendSubmissionsTo === "email" && (c = "multipart/form-data"), Array.from(u).forEach(({ value:
|
|
6624
|
-
(
|
|
6624
|
+
if (this.sendSubmissionsTo === "email" && (c = "multipart/form-data"), Array.from(u).forEach(({ value: f }) => {
|
|
6625
|
+
(f instanceof File || Array.isArray(f) && f[0] instanceof File || f instanceof FileList) && (c = "multipart/form-data");
|
|
6625
6626
|
}), c !== "application/json")
|
|
6626
6627
|
i = s;
|
|
6627
6628
|
else {
|
|
6628
|
-
const
|
|
6629
|
+
const f = {};
|
|
6629
6630
|
Array.from(u).forEach(({ value: S, key: A }) => {
|
|
6630
|
-
go(
|
|
6631
|
-
}), i = JSON.stringify(
|
|
6631
|
+
go(f, A, S);
|
|
6632
|
+
}), i = JSON.stringify(f);
|
|
6632
6633
|
}
|
|
6633
6634
|
c && c !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (o["content-type"] = c));
|
|
6634
6635
|
const m = new CustomEvent("presubmit", {
|
|
@@ -6639,73 +6640,73 @@ const $l = /* @__PURE__ */ j(Il, [["render", Al]]), xl = {
|
|
|
6639
6640
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(m), m.defaultPrevented))
|
|
6640
6641
|
return;
|
|
6641
6642
|
if (this.formState = "sending", this.sendSubmissionsTo === "email" && (this.sendSubmissionsToEmail === "your@email.com" || !this.sendSubmissionsToEmail)) {
|
|
6642
|
-
const
|
|
6643
|
-
console.error(
|
|
6644
|
-
formErrorMessage:
|
|
6643
|
+
const f = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
6644
|
+
console.error(f), this.formState = "error", this.mergeNewRootState({
|
|
6645
|
+
formErrorMessage: f
|
|
6645
6646
|
});
|
|
6646
6647
|
return;
|
|
6647
6648
|
}
|
|
6648
|
-
const
|
|
6649
|
+
const g = `${Pl() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
6649
6650
|
this.sendSubmissionsToEmail || ""
|
|
6650
|
-
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ?
|
|
6651
|
-
|
|
6651
|
+
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? g : this.action;
|
|
6652
|
+
Pn(b), fetch(b, {
|
|
6652
6653
|
body: i,
|
|
6653
6654
|
headers: o,
|
|
6654
6655
|
method: this.method || "post"
|
|
6655
6656
|
}).then(
|
|
6656
|
-
async (
|
|
6657
|
-
var $,
|
|
6657
|
+
async (f) => {
|
|
6658
|
+
var $, M;
|
|
6658
6659
|
let S;
|
|
6659
|
-
const A =
|
|
6660
|
-
if (A && A.indexOf("application/json") !== -1 ? S = await
|
|
6661
|
-
const
|
|
6660
|
+
const A = f.headers.get("content-type");
|
|
6661
|
+
if (A && A.indexOf("application/json") !== -1 ? S = await f.json() : S = await f.text(), !f.ok) {
|
|
6662
|
+
const ee = new CustomEvent("submit:error", {
|
|
6662
6663
|
detail: {
|
|
6663
6664
|
error: S,
|
|
6664
|
-
status:
|
|
6665
|
+
status: f.status
|
|
6665
6666
|
}
|
|
6666
6667
|
});
|
|
6667
|
-
if (($ = this.$refs.formRef) != null && $.nativeElement && ((
|
|
6668
|
-
|
|
6669
|
-
),
|
|
6668
|
+
if (($ = this.$refs.formRef) != null && $.nativeElement && ((M = this.$refs.formRef) == null || M.nativeElement.dispatchEvent(
|
|
6669
|
+
ee
|
|
6670
|
+
), ee.defaultPrevented))
|
|
6670
6671
|
return;
|
|
6671
6672
|
this.responseData = S, this.formState = "error";
|
|
6672
|
-
let
|
|
6673
|
-
typeof
|
|
6674
|
-
formErrorMessage:
|
|
6673
|
+
let I = this.errorMessagePath ? Yr(S, this.errorMessagePath) : S.message || S.error || S;
|
|
6674
|
+
typeof I != "string" && (I = JSON.stringify(I)), this.formErrorMessage = I, this.mergeNewRootState({
|
|
6675
|
+
formErrorMessage: I
|
|
6675
6676
|
});
|
|
6676
6677
|
return;
|
|
6677
6678
|
}
|
|
6678
|
-
if (this.responseData = S, this.formState =
|
|
6679
|
-
const
|
|
6679
|
+
if (this.responseData = S, this.formState = f.ok ? "success" : "error", f.ok) {
|
|
6680
|
+
const ee = new CustomEvent("submit:success", {
|
|
6680
6681
|
detail: {
|
|
6681
|
-
res:
|
|
6682
|
+
res: f,
|
|
6682
6683
|
body: S
|
|
6683
6684
|
}
|
|
6684
6685
|
});
|
|
6685
6686
|
if (this.$refs.formRef) {
|
|
6686
|
-
if (this.$refs.formRef.dispatchEvent(
|
|
6687
|
+
if (this.$refs.formRef.dispatchEvent(ee), ee.defaultPrevented)
|
|
6687
6688
|
return;
|
|
6688
6689
|
this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
|
|
6689
6690
|
}
|
|
6690
6691
|
if (this.successUrl)
|
|
6691
6692
|
if (this.$refs.formRef) {
|
|
6692
|
-
const
|
|
6693
|
+
const I = new CustomEvent("route", {
|
|
6693
6694
|
detail: {
|
|
6694
6695
|
url: this.successUrl
|
|
6695
6696
|
}
|
|
6696
6697
|
});
|
|
6697
|
-
this.$refs.formRef.dispatchEvent(
|
|
6698
|
+
this.$refs.formRef.dispatchEvent(I), I.defaultPrevented || (location.href = this.successUrl);
|
|
6698
6699
|
} else
|
|
6699
6700
|
location.href = this.successUrl;
|
|
6700
6701
|
}
|
|
6701
6702
|
},
|
|
6702
|
-
(
|
|
6703
|
+
(f) => {
|
|
6703
6704
|
const S = new CustomEvent("submit:error", {
|
|
6704
6705
|
detail: {
|
|
6705
|
-
error:
|
|
6706
|
+
error: f
|
|
6706
6707
|
}
|
|
6707
6708
|
});
|
|
6708
|
-
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(S), S.defaultPrevented) || (this.responseData =
|
|
6709
|
+
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(S), S.defaultPrevented) || (this.responseData = f, this.formState = "error");
|
|
6709
6710
|
}
|
|
6710
6711
|
);
|
|
6711
6712
|
}
|
|
@@ -6717,15 +6718,15 @@ const $l = /* @__PURE__ */ j(Il, [["render", Al]]), xl = {
|
|
|
6717
6718
|
};
|
|
6718
6719
|
function Vl(e, t, n, r, o, i) {
|
|
6719
6720
|
const s = W("Blocks");
|
|
6720
|
-
return v(),
|
|
6721
|
+
return v(), T("form", q({
|
|
6721
6722
|
validate: e.validate,
|
|
6722
6723
|
ref: "formRef",
|
|
6723
6724
|
action: !e.sendWithJs && e.action,
|
|
6724
6725
|
method: e.method,
|
|
6725
6726
|
name: e.name,
|
|
6726
6727
|
onSubmit: t[0] || (t[0] = async (u) => e.onSubmit(u))
|
|
6727
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
6728
|
-
|
|
6728
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, be(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
6729
|
+
ce(e.$slots, "default", {}, void 0, !0),
|
|
6729
6730
|
e.submissionState() === "error" ? (v(), U(s, {
|
|
6730
6731
|
key: 0,
|
|
6731
6732
|
path: "errorMessage",
|
|
@@ -6738,7 +6739,7 @@ function Vl(e, t, n, r, o, i) {
|
|
|
6738
6739
|
blocks: e.sendingMessage,
|
|
6739
6740
|
context: e.builderContext
|
|
6740
6741
|
}, null, 8, ["blocks", "context"])) : F("", !0),
|
|
6741
|
-
e.submissionState() === "error" && e.responseData ? (v(),
|
|
6742
|
+
e.submissionState() === "error" && e.responseData ? (v(), T("pre", jl, Wt(e.errorResponse(e.responseData)), 1)) : F("", !0),
|
|
6742
6743
|
e.submissionState() === "success" ? (v(), U(s, {
|
|
6743
6744
|
key: 3,
|
|
6744
6745
|
path: "successMessage",
|
|
@@ -6747,7 +6748,7 @@ function Vl(e, t, n, r, o, i) {
|
|
|
6747
6748
|
}, null, 8, ["blocks", "context"])) : F("", !0)
|
|
6748
6749
|
], 16, Bl);
|
|
6749
6750
|
}
|
|
6750
|
-
const Dl = /* @__PURE__ */
|
|
6751
|
+
const Dl = /* @__PURE__ */ V(Nl, [["render", Vl], ["__scopeId", "data-v-77c7888c"]]), Ul = {
|
|
6751
6752
|
name: "Form:Input",
|
|
6752
6753
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
6753
6754
|
inputs: [
|
|
@@ -6810,11 +6811,11 @@ const Dl = /* @__PURE__ */ j(Nl, [["render", Vl], ["__scopeId", "data-v-77c7888c
|
|
|
6810
6811
|
"required"
|
|
6811
6812
|
],
|
|
6812
6813
|
data() {
|
|
6813
|
-
return { isEditing:
|
|
6814
|
+
return { isEditing: re, filterAttrs: pe };
|
|
6814
6815
|
}
|
|
6815
6816
|
}), Ll = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
6816
6817
|
function Fl(e, t, n, r, o, i) {
|
|
6817
|
-
return v(),
|
|
6818
|
+
return v(), T("input", q({
|
|
6818
6819
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
6819
6820
|
placeholder: e.placeholder,
|
|
6820
6821
|
type: e.type,
|
|
@@ -6822,9 +6823,9 @@ function Fl(e, t, n, r, o, i) {
|
|
|
6822
6823
|
value: e.value,
|
|
6823
6824
|
defaultValue: e.defaultValue,
|
|
6824
6825
|
required: e.required
|
|
6825
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
6826
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), be(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ll);
|
|
6826
6827
|
}
|
|
6827
|
-
const Ml = /* @__PURE__ */
|
|
6828
|
+
const Ml = /* @__PURE__ */ V(Wl, [["render", Fl]]), Hl = {
|
|
6828
6829
|
name: "Form:Select",
|
|
6829
6830
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
6830
6831
|
defaultStyles: {
|
|
@@ -6870,24 +6871,24 @@ const Ml = /* @__PURE__ */ j(Wl, [["render", Fl]]), Hl = {
|
|
|
6870
6871
|
name: "builder-select-component",
|
|
6871
6872
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
6872
6873
|
data() {
|
|
6873
|
-
return { isEditing:
|
|
6874
|
+
return { isEditing: re, filterAttrs: pe };
|
|
6874
6875
|
}
|
|
6875
6876
|
}), zl = ["value", "defaultValue", "name", "required"], ql = ["value"];
|
|
6876
6877
|
function Gl(e, t, n, r, o, i) {
|
|
6877
|
-
return v(),
|
|
6878
|
+
return v(), T("select", q({
|
|
6878
6879
|
value: e.value,
|
|
6879
6880
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
6880
6881
|
defaultValue: e.defaultValue,
|
|
6881
6882
|
name: e.name,
|
|
6882
6883
|
required: e.required
|
|
6883
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
6884
|
-
(v(!0),
|
|
6884
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), be(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
6885
|
+
(v(!0), T(z, null, Se(e.options, (s, u) => (v(), T("option", {
|
|
6885
6886
|
key: `${s.name}-${u}`,
|
|
6886
6887
|
value: s.value
|
|
6887
6888
|
}, Wt(s.name || s.value), 9, ql))), 128))
|
|
6888
6889
|
], 16, zl);
|
|
6889
6890
|
}
|
|
6890
|
-
const _l = /* @__PURE__ */
|
|
6891
|
+
const _l = /* @__PURE__ */ V(Kl, [["render", Gl]]), Jl = {
|
|
6891
6892
|
name: "Form:SubmitButton",
|
|
6892
6893
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
6893
6894
|
defaultStyles: {
|
|
@@ -6916,13 +6917,13 @@ const _l = /* @__PURE__ */ j(Kl, [["render", Gl]]), Jl = {
|
|
|
6916
6917
|
name: "builder-submit-button",
|
|
6917
6918
|
props: ["attributes", "text"],
|
|
6918
6919
|
data() {
|
|
6919
|
-
return { filterAttrs:
|
|
6920
|
+
return { filterAttrs: pe };
|
|
6920
6921
|
}
|
|
6921
6922
|
});
|
|
6922
6923
|
function Yl(e, t, n, r, o, i) {
|
|
6923
|
-
return v(),
|
|
6924
|
+
return v(), T("button", q({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), be(e.filterAttrs(e.attributes, "v-on:", !0), !0)), Wt(e.text), 17);
|
|
6924
6925
|
}
|
|
6925
|
-
const Ql = /* @__PURE__ */
|
|
6926
|
+
const Ql = /* @__PURE__ */ V(Xl, [["render", Yl]]), Zl = {
|
|
6926
6927
|
name: "Form:TextArea",
|
|
6927
6928
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
6928
6929
|
inputs: [{
|
|
@@ -6969,19 +6970,19 @@ const Ql = /* @__PURE__ */ j(Xl, [["render", Yl]]), Zl = {
|
|
|
6969
6970
|
"required"
|
|
6970
6971
|
],
|
|
6971
6972
|
data() {
|
|
6972
|
-
return { filterAttrs:
|
|
6973
|
+
return { filterAttrs: pe };
|
|
6973
6974
|
}
|
|
6974
6975
|
}), tu = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
6975
6976
|
function nu(e, t, n, r, o, i) {
|
|
6976
|
-
return v(),
|
|
6977
|
+
return v(), T("textarea", q({
|
|
6977
6978
|
placeholder: e.placeholder,
|
|
6978
6979
|
name: e.name,
|
|
6979
6980
|
value: e.value,
|
|
6980
6981
|
defaultValue: e.defaultValue,
|
|
6981
6982
|
required: e.required
|
|
6982
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
6983
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), be(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, tu);
|
|
6983
6984
|
}
|
|
6984
|
-
const ru = /* @__PURE__ */
|
|
6985
|
+
const ru = /* @__PURE__ */ V(eu, [["render", nu]]), ou = {
|
|
6985
6986
|
name: "Raw:Img",
|
|
6986
6987
|
hideFromInsertMenu: !0,
|
|
6987
6988
|
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",
|
|
@@ -7038,19 +7039,19 @@ const ru = /* @__PURE__ */ j(eu, [["render", nu]]), ou = {
|
|
|
7038
7039
|
"aspectRatio"
|
|
7039
7040
|
],
|
|
7040
7041
|
data() {
|
|
7041
|
-
return { isEditing:
|
|
7042
|
+
return { isEditing: re };
|
|
7042
7043
|
},
|
|
7043
7044
|
computed: {
|
|
7044
7045
|
srcSetToUse() {
|
|
7045
7046
|
const e = this.imgSrc || this.image;
|
|
7046
7047
|
if (!(!e || typeof e != "string") && e.match(/builder\.io/))
|
|
7047
|
-
return
|
|
7048
|
+
return Pt(e);
|
|
7048
7049
|
},
|
|
7049
7050
|
imgAttrs() {
|
|
7050
7051
|
const e = {
|
|
7051
|
-
...
|
|
7052
|
-
...
|
|
7053
|
-
[
|
|
7052
|
+
...pe(this.attributes, "v-on:", !1),
|
|
7053
|
+
...pe(this.attributes, "v-on:", !0),
|
|
7054
|
+
[Ne()]: `builder-raw-img ${this.attributes[Ne()] || ""}`
|
|
7054
7055
|
};
|
|
7055
7056
|
return delete e.style, e;
|
|
7056
7057
|
}
|
|
@@ -7058,7 +7059,7 @@ const ru = /* @__PURE__ */ j(eu, [["render", nu]]), ou = {
|
|
|
7058
7059
|
}), su = ["alt", "title", "src"];
|
|
7059
7060
|
function au(e, t, n, r, o, i) {
|
|
7060
7061
|
var s;
|
|
7061
|
-
return v(),
|
|
7062
|
+
return v(), T("img", q({
|
|
7062
7063
|
loading: "lazy",
|
|
7063
7064
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
7064
7065
|
alt: e.altText,
|
|
@@ -7072,7 +7073,7 @@ function au(e, t, n, r, o, i) {
|
|
|
7072
7073
|
}
|
|
7073
7074
|
}, e.imgAttrs), null, 16, su);
|
|
7074
7075
|
}
|
|
7075
|
-
const lu = /* @__PURE__ */
|
|
7076
|
+
const lu = /* @__PURE__ */ V(iu, [["render", au]]), uu = {
|
|
7076
7077
|
name: "Video",
|
|
7077
7078
|
canHaveChildren: !0,
|
|
7078
7079
|
defaultStyles: {
|
|
@@ -7231,14 +7232,14 @@ const lu = /* @__PURE__ */ j(iu, [["render", au]]), uu = {
|
|
|
7231
7232
|
}
|
|
7232
7233
|
}), pu = { style: {
|
|
7233
7234
|
position: "relative"
|
|
7234
|
-
} }, du = ["preload", "poster"],
|
|
7235
|
+
} }, du = ["preload", "poster"], hu = {
|
|
7235
7236
|
key: 1,
|
|
7236
7237
|
style: {
|
|
7237
7238
|
display: "flex",
|
|
7238
7239
|
flexDirection: "column",
|
|
7239
7240
|
alignItems: "stretch"
|
|
7240
7241
|
}
|
|
7241
|
-
},
|
|
7242
|
+
}, fu = {
|
|
7242
7243
|
key: 2,
|
|
7243
7244
|
style: {
|
|
7244
7245
|
pointerEvents: "none",
|
|
@@ -7253,8 +7254,8 @@ const lu = /* @__PURE__ */ j(iu, [["render", au]]), uu = {
|
|
|
7253
7254
|
}
|
|
7254
7255
|
};
|
|
7255
7256
|
function mu(e, t, n, r, o, i) {
|
|
7256
|
-
var s, u, c, m,
|
|
7257
|
-
return v(),
|
|
7257
|
+
var s, u, c, m, g, b, f;
|
|
7258
|
+
return v(), T("div", pu, [
|
|
7258
7259
|
Ge("video", q({
|
|
7259
7260
|
class: "builder-video",
|
|
7260
7261
|
ref: "videoRef",
|
|
@@ -7283,7 +7284,7 @@ function mu(e, t, n, r, o, i) {
|
|
|
7283
7284
|
}
|
|
7284
7285
|
), null, 16)
|
|
7285
7286
|
], 16, du),
|
|
7286
|
-
e.aspectRatio && !(e.fitContent && ((c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length)) ? (v(),
|
|
7287
|
+
e.aspectRatio && !(e.fitContent && ((c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length)) ? (v(), T("div", {
|
|
7287
7288
|
key: 0,
|
|
7288
7289
|
style: Pe({
|
|
7289
7290
|
width: "100%",
|
|
@@ -7292,15 +7293,15 @@ function mu(e, t, n, r, o, i) {
|
|
|
7292
7293
|
fontSize: "0px"
|
|
7293
7294
|
})
|
|
7294
7295
|
}, null, 4)) : F("", !0),
|
|
7295
|
-
(
|
|
7296
|
-
|
|
7296
|
+
(g = (m = e.builderBlock) == null ? void 0 : m.children) != null && g.length && e.fitContent ? (v(), T("div", hu, [
|
|
7297
|
+
ce(e.$slots, "default")
|
|
7297
7298
|
])) : F("", !0),
|
|
7298
|
-
(
|
|
7299
|
-
|
|
7299
|
+
(f = (b = e.builderBlock) == null ? void 0 : b.children) != null && f.length && !e.fitContent ? (v(), T("div", fu, [
|
|
7300
|
+
ce(e.$slots, "default")
|
|
7300
7301
|
])) : F("", !0)
|
|
7301
7302
|
]);
|
|
7302
7303
|
}
|
|
7303
|
-
const gu = /* @__PURE__ */
|
|
7304
|
+
const gu = /* @__PURE__ */ V(cu, [["render", mu]]), yu = () => [{
|
|
7304
7305
|
component: Cl,
|
|
7305
7306
|
...vl
|
|
7306
7307
|
}, {
|
|
@@ -7331,7 +7332,7 @@ const gu = /* @__PURE__ */ j(cu, [["render", mu]]), yu = () => [{
|
|
|
7331
7332
|
component: si,
|
|
7332
7333
|
...qa
|
|
7333
7334
|
}, {
|
|
7334
|
-
component:
|
|
7335
|
+
component: fa,
|
|
7335
7336
|
...Ga
|
|
7336
7337
|
}, {
|
|
7337
7338
|
component: ya,
|
|
@@ -7350,7 +7351,7 @@ const gu = /* @__PURE__ */ j(cu, [["render", mu]]), yu = () => [{
|
|
|
7350
7351
|
...sl
|
|
7351
7352
|
}, {
|
|
7352
7353
|
component: yl,
|
|
7353
|
-
...
|
|
7354
|
+
...hl
|
|
7354
7355
|
}, ...No.includes(G) ? [{
|
|
7355
7356
|
component: el,
|
|
7356
7357
|
...Ya
|
|
@@ -7522,7 +7523,7 @@ const Iu = (e, t, n = !0) => {
|
|
|
7522
7523
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
7523
7524
|
}
|
|
7524
7525
|
};
|
|
7525
|
-
}, $u = ["svelte", "qwik", "vue"], xu = () => $u.includes(G) && (
|
|
7526
|
+
}, $u = ["svelte", "qwik", "vue"], xu = () => $u.includes(G) && (re() || qn()), Ou = (e) => {
|
|
7526
7527
|
var i;
|
|
7527
7528
|
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);
|
|
7528
7529
|
let o = "";
|
|
@@ -7548,11 +7549,11 @@ font-weight: ${s};
|
|
|
7548
7549
|
`.trim());
|
|
7549
7550
|
}
|
|
7550
7551
|
return o;
|
|
7551
|
-
},
|
|
7552
|
+
}, Pu = ({
|
|
7552
7553
|
customFonts: e
|
|
7553
7554
|
}) => {
|
|
7554
7555
|
var t;
|
|
7555
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
7556
|
+
return ((t = e == null ? void 0 : e.map((n) => Ou(n))) == null ? void 0 : t.join(" ")) || "";
|
|
7556
7557
|
}, Nu = ({
|
|
7557
7558
|
cssCode: e,
|
|
7558
7559
|
contentId: t
|
|
@@ -7584,6 +7585,7 @@ font-weight: ${s};
|
|
|
7584
7585
|
"apiHost",
|
|
7585
7586
|
"locale",
|
|
7586
7587
|
"enrich",
|
|
7588
|
+
"enrichOptions",
|
|
7587
7589
|
"trustedHosts",
|
|
7588
7590
|
"model",
|
|
7589
7591
|
"content",
|
|
@@ -7620,8 +7622,8 @@ font-weight: ${s};
|
|
|
7620
7622
|
},
|
|
7621
7623
|
mounted() {
|
|
7622
7624
|
var e, t, n;
|
|
7623
|
-
if (
|
|
7624
|
-
|
|
7625
|
+
if (H()) {
|
|
7626
|
+
re() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
7625
7627
|
new CustomEvent("initeditingbldr")
|
|
7626
7628
|
);
|
|
7627
7629
|
const r = this.builderContextSignal.content && Xe(this.canTrack), o = Lt({
|
|
@@ -7639,7 +7641,7 @@ font-weight: ${s};
|
|
|
7639
7641
|
variationId: o !== s ? o : void 0
|
|
7640
7642
|
});
|
|
7641
7643
|
}
|
|
7642
|
-
qn() && !
|
|
7644
|
+
qn() && !re() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
7643
7645
|
new CustomEvent("initpreviewingbldr")
|
|
7644
7646
|
);
|
|
7645
7647
|
}
|
|
@@ -7681,7 +7683,7 @@ font-weight: ${s};
|
|
|
7681
7683
|
}
|
|
7682
7684
|
},
|
|
7683
7685
|
unmounted() {
|
|
7684
|
-
|
|
7686
|
+
H() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
7685
7687
|
"builder:component:stateChangeListenerActivated",
|
|
7686
7688
|
this.emitStateUpdate
|
|
7687
7689
|
));
|
|
@@ -7791,13 +7793,13 @@ font-weight: ${s};
|
|
|
7791
7793
|
if (!o)
|
|
7792
7794
|
return;
|
|
7793
7795
|
const i = typeof o == "object" && o["@type"] === "@builder.io/core:Request";
|
|
7794
|
-
if (this.httpReqsPending[r] || this.httpReqsData[r] && !
|
|
7796
|
+
if (this.httpReqsPending[r] || this.httpReqsData[r] && !re())
|
|
7795
7797
|
return;
|
|
7796
7798
|
const s = i ? o.request.url : o;
|
|
7797
7799
|
this.httpReqsPending[r] = !0;
|
|
7798
7800
|
const u = s.replace(
|
|
7799
7801
|
/{{([^}]+)}}/g,
|
|
7800
|
-
(
|
|
7802
|
+
(g, b) => String(
|
|
7801
7803
|
kt({
|
|
7802
7804
|
code: b,
|
|
7803
7805
|
context: this.context || {},
|
|
@@ -7815,21 +7817,21 @@ font-weight: ${s};
|
|
|
7815
7817
|
url: u,
|
|
7816
7818
|
method: "GET"
|
|
7817
7819
|
};
|
|
7818
|
-
|
|
7820
|
+
Pn(JSON.stringify(c));
|
|
7819
7821
|
const m = {
|
|
7820
7822
|
method: c.method,
|
|
7821
7823
|
headers: c.headers,
|
|
7822
7824
|
body: c.body
|
|
7823
7825
|
};
|
|
7824
|
-
c.method === "GET" && delete m.body, fetch(c.url, m).then((
|
|
7826
|
+
c.method === "GET" && delete m.body, fetch(c.url, m).then((g) => g.json()).then((g) => {
|
|
7825
7827
|
this.mergeNewRootState({
|
|
7826
|
-
[r]:
|
|
7828
|
+
[r]: g
|
|
7827
7829
|
}), this.httpReqsData[r] = !0;
|
|
7828
|
-
}).catch((
|
|
7830
|
+
}).catch((g) => {
|
|
7829
7831
|
console.error(
|
|
7830
7832
|
"error fetching dynamic data",
|
|
7831
7833
|
JSON.stringify(o),
|
|
7832
|
-
|
|
7834
|
+
g
|
|
7833
7835
|
);
|
|
7834
7836
|
}).finally(() => {
|
|
7835
7837
|
this.httpReqsPending[r] = !1;
|
|
@@ -7838,7 +7840,7 @@ font-weight: ${s};
|
|
|
7838
7840
|
);
|
|
7839
7841
|
},
|
|
7840
7842
|
emitStateUpdate() {
|
|
7841
|
-
|
|
7843
|
+
re() && window.dispatchEvent(
|
|
7842
7844
|
new CustomEvent(
|
|
7843
7845
|
"builder:component:stateChange",
|
|
7844
7846
|
{
|
|
@@ -7860,6 +7862,9 @@ font-weight: ${s};
|
|
|
7860
7862
|
...this.enrich ? {
|
|
7861
7863
|
enrich: this.enrich
|
|
7862
7864
|
} : {},
|
|
7865
|
+
...this.enrichOptions ? {
|
|
7866
|
+
enrichOptions: this.enrichOptions
|
|
7867
|
+
} : {},
|
|
7863
7868
|
...this.trustedHosts ? {
|
|
7864
7869
|
trustedHosts: this.trustedHosts
|
|
7865
7870
|
} : {},
|
|
@@ -7913,13 +7918,13 @@ function Uu(e, t, n, r, o, i) {
|
|
|
7913
7918
|
onIniteditingbldr: (m) => e.elementRef_onIniteditingbldr(m),
|
|
7914
7919
|
onInitpreviewingbldr: (m) => e.elementRef_onInitpreviewingbldr(m)
|
|
7915
7920
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
7916
|
-
default:
|
|
7917
|
-
|
|
7921
|
+
default: ge(() => [
|
|
7922
|
+
ce(e.$slots, "default")
|
|
7918
7923
|
]),
|
|
7919
7924
|
_: 3
|
|
7920
7925
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : F("", !0);
|
|
7921
7926
|
}
|
|
7922
|
-
const Wu = /* @__PURE__ */
|
|
7927
|
+
const Wu = /* @__PURE__ */ V(Du, [["render", Uu]]), Lu = B({
|
|
7923
7928
|
name: "content-styles",
|
|
7924
7929
|
components: { InlinedStyles: Ht },
|
|
7925
7930
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
@@ -7930,7 +7935,7 @@ ${Nu({
|
|
|
7930
7935
|
cssCode: this.cssCode,
|
|
7931
7936
|
contentId: this.contentId
|
|
7932
7937
|
})}
|
|
7933
|
-
${
|
|
7938
|
+
${Pu({
|
|
7934
7939
|
customFonts: this.customFonts
|
|
7935
7940
|
})}
|
|
7936
7941
|
${ju(this.isNestedRender)}
|
|
@@ -7946,7 +7951,7 @@ function Fu(e, t, n, r, o, i) {
|
|
|
7946
7951
|
nonce: e.nonce
|
|
7947
7952
|
}, null, 8, ["styles", "nonce"]);
|
|
7948
7953
|
}
|
|
7949
|
-
const Mu = /* @__PURE__ */
|
|
7954
|
+
const Mu = /* @__PURE__ */ V(Lu, [["render", Fu]]), Hu = ({
|
|
7950
7955
|
content: e,
|
|
7951
7956
|
data: t,
|
|
7952
7957
|
locale: n
|
|
@@ -7979,7 +7984,7 @@ const Mu = /* @__PURE__ */ j(Lu, [["render", Fu]]), Hu = ({
|
|
|
7979
7984
|
EnableEditor: Wu,
|
|
7980
7985
|
InlinedScript: Qn,
|
|
7981
7986
|
ContentStyles: Mu,
|
|
7982
|
-
Blocks:
|
|
7987
|
+
Blocks: We,
|
|
7983
7988
|
DynamicDiv: Ct
|
|
7984
7989
|
},
|
|
7985
7990
|
props: [
|
|
@@ -7997,6 +8002,7 @@ const Mu = /* @__PURE__ */ j(Lu, [["render", Fu]]), Hu = ({
|
|
|
7997
8002
|
"model",
|
|
7998
8003
|
"apiHost",
|
|
7999
8004
|
"enrich",
|
|
8005
|
+
"enrichOptions",
|
|
8000
8006
|
"showContent",
|
|
8001
8007
|
"contentWrapper",
|
|
8002
8008
|
"contentWrapperProps",
|
|
@@ -8072,7 +8078,7 @@ const Mu = /* @__PURE__ */ j(Lu, [["render", Fu]]), Hu = ({
|
|
|
8072
8078
|
},
|
|
8073
8079
|
created() {
|
|
8074
8080
|
var t, n;
|
|
8075
|
-
this.apiKey ||
|
|
8081
|
+
this.apiKey || le.error(
|
|
8076
8082
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
8077
8083
|
);
|
|
8078
8084
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
@@ -8122,6 +8128,7 @@ function Gu(e, t, n, r, o, i) {
|
|
|
8122
8128
|
canTrack: e.canTrack,
|
|
8123
8129
|
locale: e.locale,
|
|
8124
8130
|
enrich: e.enrich,
|
|
8131
|
+
enrichOptions: e.enrichOptions,
|
|
8125
8132
|
showContent: e.showContent,
|
|
8126
8133
|
builderContextSignal: e.builderContextSignal,
|
|
8127
8134
|
contentWrapper: e.contentWrapper,
|
|
@@ -8129,8 +8136,8 @@ function Gu(e, t, n, r, o, i) {
|
|
|
8129
8136
|
trustedHosts: e.trustedHosts,
|
|
8130
8137
|
isNestedRender: e.isNestedRender
|
|
8131
8138
|
}, {}), {
|
|
8132
|
-
default:
|
|
8133
|
-
var
|
|
8139
|
+
default: ge(() => {
|
|
8140
|
+
var g, b, f, S, A, $, M;
|
|
8134
8141
|
return [
|
|
8135
8142
|
e.isSsrAbTest ? (v(), U(s, {
|
|
8136
8143
|
key: 0,
|
|
@@ -8142,12 +8149,12 @@ function Gu(e, t, n, r, o, i) {
|
|
|
8142
8149
|
key: 1,
|
|
8143
8150
|
nonce: e.nonce || "",
|
|
8144
8151
|
isNestedRender: e.isNestedRender,
|
|
8145
|
-
contentId: (
|
|
8146
|
-
cssCode: (
|
|
8152
|
+
contentId: (g = e.builderContextSignal.content) == null ? void 0 : g.id,
|
|
8153
|
+
cssCode: (f = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : f.cssCode,
|
|
8147
8154
|
customFonts: (A = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : A.customFonts
|
|
8148
8155
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : F("", !0),
|
|
8149
|
-
|
|
8150
|
-
blocks: (
|
|
8156
|
+
Z(c, {
|
|
8157
|
+
blocks: (M = ($ = e.builderContextSignal.content) == null ? void 0 : $.data) == null ? void 0 : M.blocks,
|
|
8151
8158
|
context: e.builderContextSignal,
|
|
8152
8159
|
registeredComponents: e.registeredComponents,
|
|
8153
8160
|
linkComponent: e.linkComponent
|
|
@@ -8155,9 +8162,9 @@ function Gu(e, t, n, r, o, i) {
|
|
|
8155
8162
|
];
|
|
8156
8163
|
}),
|
|
8157
8164
|
_: 1
|
|
8158
|
-
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
8165
|
+
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "enrichOptions", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
8159
8166
|
}
|
|
8160
|
-
const _u = /* @__PURE__ */
|
|
8167
|
+
const _u = /* @__PURE__ */ V(qu, [["render", Gu]]), Ju = B({
|
|
8161
8168
|
name: "content-variants",
|
|
8162
8169
|
components: {
|
|
8163
8170
|
InlinedScript: Qn,
|
|
@@ -8179,6 +8186,7 @@ const _u = /* @__PURE__ */ j(qu, [["render", Gu]]), Ju = B({
|
|
|
8179
8186
|
"linkComponent",
|
|
8180
8187
|
"locale",
|
|
8181
8188
|
"enrich",
|
|
8189
|
+
"enrichOptions",
|
|
8182
8190
|
"blocksWrapper",
|
|
8183
8191
|
"blocksWrapperProps",
|
|
8184
8192
|
"contentWrapper",
|
|
@@ -8229,8 +8237,8 @@ const _u = /* @__PURE__ */ j(qu, [["render", Gu]]), Ju = B({
|
|
|
8229
8237
|
});
|
|
8230
8238
|
function Xu(e, t, n, r, o, i) {
|
|
8231
8239
|
const s = W("InlinedScript"), u = W("InlinedStyles"), c = W("ContentComponent");
|
|
8232
|
-
return v(),
|
|
8233
|
-
e.shouldEmitPersonalizationFns ? (v(),
|
|
8240
|
+
return v(), T(z, null, [
|
|
8241
|
+
e.shouldEmitPersonalizationFns ? (v(), T(z, { key: 0 }, [
|
|
8234
8242
|
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (v(), U(s, {
|
|
8235
8243
|
key: 0,
|
|
8236
8244
|
id: "builderio-init-personalization-variants-fns",
|
|
@@ -8238,23 +8246,23 @@ function Xu(e, t, n, r, o, i) {
|
|
|
8238
8246
|
scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
|
|
8239
8247
|
}, null, 8, ["nonce", "scriptStr"])) : F("", !0)
|
|
8240
8248
|
], 64)) : F("", !0),
|
|
8241
|
-
e.shouldRenderVariants ? (v(),
|
|
8242
|
-
|
|
8249
|
+
e.shouldRenderVariants ? (v(), T(z, { key: 1 }, [
|
|
8250
|
+
Z(s, {
|
|
8243
8251
|
id: "builderio-init-variants-fns",
|
|
8244
8252
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
8245
8253
|
nonce: e.nonce || ""
|
|
8246
8254
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
8247
|
-
|
|
8255
|
+
Z(u, {
|
|
8248
8256
|
id: "builderio-variants",
|
|
8249
8257
|
styles: e.hideVariantsStyleString,
|
|
8250
8258
|
nonce: e.nonce || ""
|
|
8251
8259
|
}, null, 8, ["styles", "nonce"]),
|
|
8252
|
-
|
|
8260
|
+
Z(s, {
|
|
8253
8261
|
id: "builderio-variants-visibility",
|
|
8254
8262
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
8255
8263
|
nonce: e.nonce || ""
|
|
8256
8264
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
8257
|
-
(v(!0),
|
|
8265
|
+
(v(!0), T(z, null, Se(e.getVariants(e.content), (m, g) => (v(), U(c, q({
|
|
8258
8266
|
key: m.testVariationId,
|
|
8259
8267
|
apiHost: e.apiHost,
|
|
8260
8268
|
isNestedRender: e.isNestedRender,
|
|
@@ -8271,15 +8279,16 @@ function Xu(e, t, n, r, o, i) {
|
|
|
8271
8279
|
canTrack: e.canTrack,
|
|
8272
8280
|
locale: e.locale,
|
|
8273
8281
|
enrich: e.enrich,
|
|
8282
|
+
enrichOptions: e.enrichOptions,
|
|
8274
8283
|
isSsrAbTest: e.shouldRenderVariants,
|
|
8275
8284
|
blocksWrapper: e.blocksWrapper,
|
|
8276
8285
|
blocksWrapperProps: e.blocksWrapperProps,
|
|
8277
8286
|
contentWrapper: e.contentWrapper,
|
|
8278
8287
|
contentWrapperProps: e.contentWrapperProps,
|
|
8279
8288
|
trustedHosts: e.trustedHosts
|
|
8280
|
-
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
8289
|
+
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
8281
8290
|
], 64)) : F("", !0),
|
|
8282
|
-
|
|
8291
|
+
Z(c, q({
|
|
8283
8292
|
apiHost: e.apiHost,
|
|
8284
8293
|
nonce: e.nonce,
|
|
8285
8294
|
isNestedRender: e.isNestedRender,
|
|
@@ -8295,6 +8304,7 @@ function Xu(e, t, n, r, o, i) {
|
|
|
8295
8304
|
canTrack: e.canTrack,
|
|
8296
8305
|
locale: e.locale,
|
|
8297
8306
|
enrich: e.enrich,
|
|
8307
|
+
enrichOptions: e.enrichOptions,
|
|
8298
8308
|
isSsrAbTest: e.shouldRenderVariants,
|
|
8299
8309
|
blocksWrapper: e.blocksWrapper,
|
|
8300
8310
|
blocksWrapperProps: e.blocksWrapperProps,
|
|
@@ -8303,10 +8313,10 @@ function Xu(e, t, n, r, o, i) {
|
|
|
8303
8313
|
trustedHosts: e.trustedHosts
|
|
8304
8314
|
}, {
|
|
8305
8315
|
key: e.shouldRenderVariants.toString()
|
|
8306
|
-
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
8316
|
+
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
8307
8317
|
], 64);
|
|
8308
8318
|
}
|
|
8309
|
-
const Yu = /* @__PURE__ */
|
|
8319
|
+
const Yu = /* @__PURE__ */ V(Ju, [["render", Xu]]), Qu = async ({
|
|
8310
8320
|
builderContextValue: e,
|
|
8311
8321
|
symbol: t
|
|
8312
8322
|
}) => {
|
|
@@ -8322,7 +8332,7 @@ const Yu = /* @__PURE__ */ j(Ju, [["render", Xu]]), Qu = async ({
|
|
|
8322
8332
|
}
|
|
8323
8333
|
}
|
|
8324
8334
|
}).catch((n) => {
|
|
8325
|
-
|
|
8335
|
+
le.error("Could not fetch symbol content: ", n);
|
|
8326
8336
|
});
|
|
8327
8337
|
}, Zu = B({
|
|
8328
8338
|
name: "builder-symbol",
|
|
@@ -8341,7 +8351,7 @@ const Yu = /* @__PURE__ */ j(Ju, [["render", Xu]]), Qu = async ({
|
|
|
8341
8351
|
return {
|
|
8342
8352
|
contentToUse: (e = this.symbol) == null ? void 0 : e.content,
|
|
8343
8353
|
symbolEntry: (t = this.symbol) == null ? void 0 : t.entry,
|
|
8344
|
-
filterAttrs:
|
|
8354
|
+
filterAttrs: pe
|
|
8345
8355
|
};
|
|
8346
8356
|
},
|
|
8347
8357
|
mounted() {
|
|
@@ -8368,7 +8378,7 @@ const Yu = /* @__PURE__ */ j(Ju, [["render", Xu]]), Qu = async ({
|
|
|
8368
8378
|
className() {
|
|
8369
8379
|
var e, t;
|
|
8370
8380
|
return [
|
|
8371
|
-
this.attributes[
|
|
8381
|
+
this.attributes[Ne()],
|
|
8372
8382
|
"builder-symbol",
|
|
8373
8383
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
8374
8384
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -8394,10 +8404,10 @@ const Yu = /* @__PURE__ */ j(Ju, [["render", Xu]]), Qu = async ({
|
|
|
8394
8404
|
}
|
|
8395
8405
|
});
|
|
8396
8406
|
function ec(e, t, n, r, o, i) {
|
|
8397
|
-
var u, c, m,
|
|
8407
|
+
var u, c, m, g, b, f, S;
|
|
8398
8408
|
const s = W("ContentVariants");
|
|
8399
|
-
return v(),
|
|
8400
|
-
|
|
8409
|
+
return v(), T("div", q({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, be(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
8410
|
+
Z(s, {
|
|
8401
8411
|
nonce: e.builderContext.nonce,
|
|
8402
8412
|
isNestedRender: !0,
|
|
8403
8413
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -8408,9 +8418,9 @@ function ec(e, t, n, r, o, i) {
|
|
|
8408
8418
|
},
|
|
8409
8419
|
customComponents: e.customComponents,
|
|
8410
8420
|
data: {
|
|
8411
|
-
...(
|
|
8421
|
+
...(g = e.symbol) == null ? void 0 : g.data,
|
|
8412
8422
|
...e.builderContext.localState,
|
|
8413
|
-
...(
|
|
8423
|
+
...(f = (b = e.contentToUse) == null ? void 0 : b.data) == null ? void 0 : f.state
|
|
8414
8424
|
},
|
|
8415
8425
|
canTrack: e.builderContext.canTrack,
|
|
8416
8426
|
model: ((S = e.symbol) == null ? void 0 : S.model) ?? "",
|
|
@@ -8421,11 +8431,11 @@ function ec(e, t, n, r, o, i) {
|
|
|
8421
8431
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
8422
8432
|
], 16);
|
|
8423
8433
|
}
|
|
8424
|
-
const tc = /* @__PURE__ */
|
|
8434
|
+
const tc = /* @__PURE__ */ V(Zu, [["render", ec]]);
|
|
8425
8435
|
export {
|
|
8426
8436
|
lc as A,
|
|
8427
|
-
|
|
8428
|
-
|
|
8437
|
+
Oo as B,
|
|
8438
|
+
fa as C,
|
|
8429
8439
|
cc as D,
|
|
8430
8440
|
Bs as E,
|
|
8431
8441
|
ya as F,
|
|
@@ -8433,27 +8443,27 @@ export {
|
|
|
8433
8443
|
Jn as H,
|
|
8434
8444
|
Ea as I,
|
|
8435
8445
|
rc as J,
|
|
8436
|
-
|
|
8446
|
+
hc as K,
|
|
8437
8447
|
Aa as S,
|
|
8438
8448
|
G as T,
|
|
8439
8449
|
gu as V,
|
|
8440
|
-
|
|
8441
|
-
|
|
8450
|
+
V as _,
|
|
8451
|
+
Ne as a,
|
|
8442
8452
|
vn as b,
|
|
8443
8453
|
Ht as c,
|
|
8444
|
-
|
|
8454
|
+
Be as d,
|
|
8445
8455
|
kt as e,
|
|
8446
8456
|
ca as f,
|
|
8447
8457
|
dc as g,
|
|
8448
8458
|
pc as h,
|
|
8449
|
-
|
|
8450
|
-
|
|
8459
|
+
re as i,
|
|
8460
|
+
fc as j,
|
|
8451
8461
|
Xn as k,
|
|
8452
8462
|
ps as l,
|
|
8453
8463
|
si as m,
|
|
8454
8464
|
tc as n,
|
|
8455
8465
|
yl as o,
|
|
8456
|
-
|
|
8466
|
+
We as p,
|
|
8457
8467
|
Yu as q,
|
|
8458
8468
|
qn as r,
|
|
8459
8469
|
uc as s,
|