@expofp/loader 1.0.48 → 1.0.50
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/dist/{downloadZip-mR_QbdG8.js → downloadZip-D1Leqczj.js} +2 -2
- package/dist/{downloadZip-mR_QbdG8.js.map → downloadZip-D1Leqczj.js.map} +1 -1
- package/dist/index.js +150 -135
- package/dist/index.js.map +1 -1
- package/dist/loadAndWaitGlobal.d.ts +1 -1
- package/dist/{makeOffline-CfdUQ4b2.js → makeOffline-DdJq2uGI.js} +2 -2
- package/dist/makeOffline-DdJq2uGI.js.map +1 -0
- package/dist/{makeOfflineBundle-D4r0VqcQ.js → makeOfflineBundle-CdE5LdlF.js} +2 -2
- package/dist/{makeOfflineBundle-D4r0VqcQ.js.map → makeOfflineBundle-CdE5LdlF.js.map} +1 -1
- package/dist/resolve.d.ts +2 -2
- package/package.json +1 -1
- package/dist/makeOffline-CfdUQ4b2.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
function
|
|
2
|
-
return i("assetResolver resolveRef:", t),
|
|
1
|
+
function B(t) {
|
|
2
|
+
return i("assetResolver resolveRef:", t), c(t);
|
|
3
3
|
}
|
|
4
|
-
const
|
|
4
|
+
const T = {
|
|
5
5
|
schema: "asset",
|
|
6
|
-
resolveRef: async (t) =>
|
|
6
|
+
resolveRef: async (t) => B(t),
|
|
7
7
|
offlineMethod: "localizeRef"
|
|
8
8
|
};
|
|
9
|
-
let
|
|
10
|
-
const
|
|
11
|
-
async function
|
|
9
|
+
let p;
|
|
10
|
+
const P = /* @__PURE__ */ new WeakSet(), F = new Function("url", 'return import(url, { with: { type: "json" } });');
|
|
11
|
+
async function u(t, e) {
|
|
12
12
|
var n, o;
|
|
13
|
-
if (
|
|
13
|
+
if (p === void 0 && !e.forceFetch)
|
|
14
14
|
try {
|
|
15
|
-
await
|
|
15
|
+
await F(t), p = !1;
|
|
16
16
|
} catch {
|
|
17
|
-
i("importJson: dynamic import not available, falling back to fetch"),
|
|
17
|
+
i("importJson: dynamic import not available, falling back to fetch"), p = !0;
|
|
18
18
|
}
|
|
19
19
|
let r;
|
|
20
|
-
return !
|
|
20
|
+
return !p && !e.forceFetch ? (r = (await F(t)).default, (n = e.importCallback) == null || n.call(e, t, "json")) : (i("importJson: fetch", t), r = await I(t, e.refCache, e.signal || null), (o = e.importCallback) == null || o.call(e, t, "json")), P.has(r) || d(r), r;
|
|
21
21
|
}
|
|
22
|
-
async function
|
|
22
|
+
async function I(t, e, r) {
|
|
23
23
|
const n = "__loadJson__" + t;
|
|
24
24
|
if (e.has(n))
|
|
25
25
|
return e.get(n);
|
|
@@ -31,55 +31,55 @@ async function W(t, e, r) {
|
|
|
31
31
|
})();
|
|
32
32
|
return e.set(n, o), o;
|
|
33
33
|
}
|
|
34
|
-
async function
|
|
34
|
+
async function v(t, e, r) {
|
|
35
35
|
if (e.has(t))
|
|
36
36
|
return e.get(t);
|
|
37
|
-
const n = r().then((o) => (
|
|
37
|
+
const n = r().then((o) => (d(o), o));
|
|
38
38
|
return e.set(t, n), n;
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const z = {
|
|
41
41
|
schema: "bundle-assets",
|
|
42
42
|
async resolveRef(t, e) {
|
|
43
43
|
i("bundleAssetsResolver resolveRef:", t);
|
|
44
|
-
const r =
|
|
45
|
-
return
|
|
46
|
-
const n = await
|
|
44
|
+
const r = c(t);
|
|
45
|
+
return v(t, e.refCache, async () => {
|
|
46
|
+
const n = await u(r, e), o = r.substring(0, r.lastIndexOf("/") + 1);
|
|
47
47
|
return n.map((s) => ({
|
|
48
48
|
$ref: `asset+${o}${s}`
|
|
49
49
|
}));
|
|
50
50
|
});
|
|
51
51
|
},
|
|
52
52
|
offlineMethod: "localizeRef"
|
|
53
|
-
},
|
|
53
|
+
}, V = "https://efp-runtime.expofp.com/", G = {
|
|
54
54
|
schema: "expo-runtime-branch",
|
|
55
55
|
async resolveRef(t, e) {
|
|
56
56
|
i("expoRuntimeBranchResolver resolveRef:", t);
|
|
57
|
-
const r =
|
|
58
|
-
return
|
|
59
|
-
$ref: `expo-runtime+https://efp-runtime.expofp.com/releases/${await
|
|
57
|
+
const r = c(t), n = `${V}branches/${r}.json`;
|
|
58
|
+
return v(t, e.refCache, async () => ({
|
|
59
|
+
$ref: `expo-runtime+https://efp-runtime.expofp.com/releases/${await u(n, e)}/`
|
|
60
60
|
}));
|
|
61
61
|
},
|
|
62
62
|
offlineMethod: "resolveRef"
|
|
63
|
-
},
|
|
63
|
+
}, Z = {
|
|
64
64
|
schema: "expo-runtime-get-branch",
|
|
65
65
|
async resolveRef(t, e) {
|
|
66
66
|
i("expoRuntimeGetBranchResolver resolveRef:", t);
|
|
67
|
-
const n = `https://${
|
|
68
|
-
return
|
|
67
|
+
const n = `https://${c(t)}.expofp.com/get-branch`;
|
|
68
|
+
return u(n, e);
|
|
69
69
|
},
|
|
70
70
|
offlineMethod: "resolveRef"
|
|
71
|
-
},
|
|
71
|
+
}, H = {
|
|
72
72
|
schema: "expo-runtime",
|
|
73
73
|
// canResolve(ref: string) {
|
|
74
74
|
// return canResolveRefSchema(ref, SCHEMA);
|
|
75
75
|
// },
|
|
76
76
|
async resolveRef(t) {
|
|
77
77
|
i("expoRuntimeResolver resolveRef:", t);
|
|
78
|
-
const e =
|
|
78
|
+
const e = c(t), r = {
|
|
79
79
|
entry: { $ref: `asset+${e}expofp.js` },
|
|
80
80
|
assets: { $ref: `bundle-assets+${e}bundle.json` }
|
|
81
81
|
};
|
|
82
|
-
return
|
|
82
|
+
return d(r), r;
|
|
83
83
|
},
|
|
84
84
|
// async *makeOfflineRef(ref: string) {
|
|
85
85
|
// log('expoRuntimeResolver makeOfflineRef:', ref);
|
|
@@ -99,36 +99,36 @@ const B = {
|
|
|
99
99
|
// return targetFilePath;
|
|
100
100
|
// },
|
|
101
101
|
offlineMethod: "resolveRef"
|
|
102
|
-
},
|
|
102
|
+
}, K = {
|
|
103
103
|
canResolve(t) {
|
|
104
104
|
return t.startsWith("http://") || t.startsWith("https://") || t.startsWith("./");
|
|
105
105
|
},
|
|
106
106
|
resolveRef(t, e) {
|
|
107
107
|
if (i("httpResolver resolveRef:", t), !this.canResolve(t)) throw new Error(`Unexpected ref in httpResolver: ${t}`);
|
|
108
|
-
return
|
|
108
|
+
return u(t, e);
|
|
109
109
|
},
|
|
110
110
|
offlineMethod: "resolveRef"
|
|
111
111
|
};
|
|
112
|
-
async function
|
|
112
|
+
async function m(t, e) {
|
|
113
113
|
const { globalVar: r, timeoutMs: n = 1e4, pollIntervalMs: o = 10 } = e;
|
|
114
|
-
|
|
114
|
+
q() ? (await Q(t, e.signal), r && await A(
|
|
115
115
|
() => window[r],
|
|
116
116
|
r,
|
|
117
117
|
n,
|
|
118
118
|
o,
|
|
119
|
-
e.
|
|
120
|
-
)) : (await
|
|
119
|
+
e.signal
|
|
120
|
+
)) : (await X(t, e.signal), r && await A(
|
|
121
121
|
() => globalThis[r],
|
|
122
122
|
r,
|
|
123
123
|
n,
|
|
124
124
|
o,
|
|
125
|
-
e.
|
|
125
|
+
e.signal
|
|
126
126
|
));
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function q() {
|
|
129
129
|
return typeof window < "u" && typeof document < "u";
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Q(t, e) {
|
|
132
132
|
return new Promise((r, n) => {
|
|
133
133
|
const o = document.createElement("script");
|
|
134
134
|
o.src = t, o.async = !0;
|
|
@@ -148,7 +148,7 @@ function z(t, e) {
|
|
|
148
148
|
}, document.head.appendChild(o);
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
|
-
async function
|
|
151
|
+
async function X(t, e) {
|
|
152
152
|
if (typeof fetch != "function")
|
|
153
153
|
throw new Error("loadInNode: fetch is not available. Use Node 18+ or provide a global fetch.");
|
|
154
154
|
if (e != null && e.aborted)
|
|
@@ -179,58 +179,73 @@ async function S(t, e) {
|
|
|
179
179
|
a === void 0 ? delete o.window : o.window = a;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function A(t, e, r, n, o) {
|
|
183
183
|
return new Promise((a, s) => {
|
|
184
|
-
const
|
|
184
|
+
const w = Date.now(), f = () => {
|
|
185
185
|
s(new Error("Wait for global aborted"));
|
|
186
186
|
};
|
|
187
187
|
if (o != null && o.aborted) {
|
|
188
188
|
s(new Error("Wait for global aborted"));
|
|
189
189
|
return;
|
|
190
190
|
}
|
|
191
|
-
o == null || o.addEventListener("abort",
|
|
192
|
-
const
|
|
191
|
+
o == null || o.addEventListener("abort", f, { once: !0 });
|
|
192
|
+
const h = () => {
|
|
193
193
|
if (o != null && o.aborted)
|
|
194
194
|
return s(new Error("Wait for global aborted"));
|
|
195
195
|
try {
|
|
196
196
|
if (t() !== void 0)
|
|
197
|
-
return o == null || o.removeEventListener("abort",
|
|
197
|
+
return o == null || o.removeEventListener("abort", f), a();
|
|
198
198
|
} catch {
|
|
199
199
|
}
|
|
200
|
-
if (Date.now() -
|
|
201
|
-
return o == null || o.removeEventListener("abort",
|
|
202
|
-
setTimeout(
|
|
200
|
+
if (Date.now() - w >= r)
|
|
201
|
+
return o == null || o.removeEventListener("abort", f), s(new Error(`Timed out after ${r} ms waiting for global "${e}"`));
|
|
202
|
+
setTimeout(h, n);
|
|
203
203
|
};
|
|
204
|
-
|
|
204
|
+
h();
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
|
-
const
|
|
207
|
+
const Y = {
|
|
208
208
|
schema: "legacy-asset-urls",
|
|
209
209
|
resolveRef(t, e) {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
210
|
+
i("legacyAssetUrlsResolver resolveRef:", t);
|
|
211
|
+
const r = e.signal;
|
|
212
|
+
return v(t, e.refCache, async () => {
|
|
213
|
+
var _, O, g;
|
|
214
|
+
const n = c(t), o = `${n}version.js`;
|
|
213
215
|
try {
|
|
214
|
-
await
|
|
216
|
+
await m(o, {
|
|
215
217
|
globalVar: "__fpDataVersion",
|
|
216
218
|
timeoutMs: 3e4,
|
|
217
|
-
|
|
218
|
-
}), (
|
|
219
|
+
signal: r
|
|
220
|
+
}), (_ = e.importCallback) == null || _.call(e, o, "script");
|
|
219
221
|
} catch {
|
|
220
|
-
console.warn(`Could not load version.js at ${
|
|
222
|
+
console.warn(`Could not load version.js at ${o}, proceeding without it`);
|
|
221
223
|
}
|
|
222
|
-
const
|
|
224
|
+
const a = globalThis.__fpDataVersion || (+/* @__PURE__ */ new Date()).toString(), s = `${n}files.json?v=${a}`, w = `${n}data.js?v=${a}`, f = u(s, e), h = m(w, {
|
|
223
225
|
globalVar: "__data",
|
|
224
|
-
|
|
226
|
+
signal: r
|
|
227
|
+
});
|
|
228
|
+
(O = e.importCallback) == null || O.call(e, w, "script");
|
|
229
|
+
const b = `${n}wf.data.js?v=${a}`, J = m(b, {
|
|
230
|
+
globalVar: "__wfData",
|
|
231
|
+
signal: r
|
|
232
|
+
}).then(() => {
|
|
233
|
+
var l;
|
|
234
|
+
(l = e.importCallback) == null || l.call(e, b, "script");
|
|
235
|
+
}).catch(() => {
|
|
236
|
+
console.warn(`Could not load wf.data.js at ${b}, proceeding without it`);
|
|
237
|
+
}), E = `${n}fp.svg.js?v=${a}`, C = m(E, {
|
|
238
|
+
globalVar: "__fp",
|
|
239
|
+
signal: r
|
|
225
240
|
});
|
|
226
|
-
(
|
|
227
|
-
const
|
|
228
|
-
return { ...[...
|
|
241
|
+
(g = e.importCallback) == null || g.call(e, E, "script"), await Promise.all([f, h, J, C]);
|
|
242
|
+
const D = globalThis.__fpLayers.map((l) => `fp.svg.${l.name}.js`), N = await f, W = globalThis.__data || {};
|
|
243
|
+
return { ...[...N, "data.js", "wf.data.js", "fp.svg.js", ...D].reduce((l, k) => (l[k] = { $ref: `asset+${n}${k}?v=${a}` }, l), {}), ...S(n, W) };
|
|
229
244
|
});
|
|
230
245
|
},
|
|
231
246
|
offlineMethod: "resolveRef"
|
|
232
247
|
};
|
|
233
|
-
function
|
|
248
|
+
function S(t, e) {
|
|
234
249
|
const r = /* @__PURE__ */ new Set();
|
|
235
250
|
function n(o) {
|
|
236
251
|
typeof o == "string" && o.length > 0 && r.add(o);
|
|
@@ -245,11 +260,11 @@ function G(t, e) {
|
|
|
245
260
|
});
|
|
246
261
|
}), Array.from(r).reduce((o, a) => (o[a] = { $ref: `asset+${t}${a}` }, o), {});
|
|
247
262
|
}
|
|
248
|
-
const
|
|
263
|
+
const x = {
|
|
249
264
|
schema: "legacy-data",
|
|
250
265
|
resolveRef(t, e) {
|
|
251
|
-
return i("legacyDataResolver resolveRef:", t),
|
|
252
|
-
const r =
|
|
266
|
+
return i("legacyDataResolver resolveRef:", t), v(t, e.refCache, async () => {
|
|
267
|
+
const r = c(t);
|
|
253
268
|
return {
|
|
254
269
|
_to_remove_for_offline_to_work_dataUrlBase: r,
|
|
255
270
|
legacyAssetUrls: { $ref: `legacy-asset-urls+${r}` }
|
|
@@ -257,23 +272,23 @@ const Z = {
|
|
|
257
272
|
});
|
|
258
273
|
},
|
|
259
274
|
offlineMethod: "resolveRef"
|
|
260
|
-
},
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
U,
|
|
264
|
-
D,
|
|
275
|
+
}, ee = [
|
|
276
|
+
K,
|
|
277
|
+
z,
|
|
265
278
|
T,
|
|
266
|
-
|
|
279
|
+
H,
|
|
280
|
+
G,
|
|
267
281
|
Z,
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
282
|
+
x,
|
|
283
|
+
Y
|
|
284
|
+
], te = /* @__PURE__ */ new Map();
|
|
285
|
+
async function $(t, e, r) {
|
|
271
286
|
i("Resolving:", e, "of", t, r), typeof window < "u" && (window.__lastResolveObject = t);
|
|
272
287
|
const n = {
|
|
273
288
|
importCallback: r == null ? void 0 : r.importCallback,
|
|
274
|
-
refCache: (r == null ? void 0 : r.refCache) ||
|
|
289
|
+
refCache: (r == null ? void 0 : r.refCache) || te,
|
|
275
290
|
forceFetch: !!(r != null && r.forceFetch),
|
|
276
|
-
|
|
291
|
+
signal: (r == null ? void 0 : r.signal) || null
|
|
277
292
|
};
|
|
278
293
|
if (typeof e != "string")
|
|
279
294
|
throw new Error(`Invalid JSON Pointer (not a string): ${e}`);
|
|
@@ -287,75 +302,75 @@ async function v(t, e, r) {
|
|
|
287
302
|
if (r != null && r.mutate) {
|
|
288
303
|
o.unshift("root");
|
|
289
304
|
const a = { root: t };
|
|
290
|
-
await
|
|
305
|
+
await M(a, o, 0, n), ie(t, a.root);
|
|
291
306
|
} else
|
|
292
|
-
return await
|
|
307
|
+
return await L(t, o, 0, n);
|
|
293
308
|
}
|
|
294
|
-
async function
|
|
309
|
+
async function M(t, e, r, n) {
|
|
295
310
|
const o = e[r];
|
|
296
|
-
if (await
|
|
311
|
+
if (await re(t, o, n), r != e.length - 1) {
|
|
297
312
|
if (t[o] === null || typeof t[o] != "object")
|
|
298
313
|
throw new Error(
|
|
299
314
|
`Cannot resolve path, encountered non-object at part '${e.slice(1).join("/")}', index ${r - 1}'`
|
|
300
315
|
);
|
|
301
|
-
return await
|
|
316
|
+
return await M(t[o], e, r + 1, n);
|
|
302
317
|
}
|
|
303
318
|
}
|
|
304
|
-
async function
|
|
319
|
+
async function re(t, e, r) {
|
|
305
320
|
i("resolveObjectMutate:", t, e);
|
|
306
321
|
let n = t[e];
|
|
307
|
-
const o = await
|
|
322
|
+
const o = await R(n, r);
|
|
308
323
|
o !== void 0 && (t[e] = o);
|
|
309
324
|
}
|
|
310
|
-
async function
|
|
325
|
+
async function L(t, e, r, n) {
|
|
311
326
|
if (r === e.length)
|
|
312
|
-
return await
|
|
327
|
+
return await R(t, n);
|
|
313
328
|
if (t === null || typeof t != "object")
|
|
314
329
|
throw new Error(
|
|
315
330
|
`Cannot resolve path, encountered non-object at part '${e.join("/")}', index ${r}'`
|
|
316
331
|
);
|
|
317
332
|
const o = e[r];
|
|
318
333
|
let a = t[o];
|
|
319
|
-
return a === void 0 && (a = (await
|
|
334
|
+
return a === void 0 && (a = (await R(t, n))[o]), await L(a, e, r + 1, n);
|
|
320
335
|
}
|
|
321
|
-
async function
|
|
336
|
+
async function R(t, e) {
|
|
322
337
|
i("resolveObject:", t);
|
|
323
338
|
let r = t;
|
|
324
339
|
do {
|
|
325
340
|
if (typeof r != "object" || r === null || !("$ref" in r))
|
|
326
341
|
return r;
|
|
327
|
-
const n =
|
|
342
|
+
const n = ee.filter((a) => U(a, r.$ref));
|
|
328
343
|
if (n.length === 0) {
|
|
329
344
|
if (r.$ref)
|
|
330
345
|
throw new Error(`No resolver found for ref: ${r.$ref}`);
|
|
331
|
-
return
|
|
346
|
+
return d(r), r;
|
|
332
347
|
}
|
|
333
348
|
if (n.length > 1)
|
|
334
349
|
throw new Error(`Multiple resolvers can resolve ref: ${r.$ref}`);
|
|
335
|
-
const o = await
|
|
336
|
-
r =
|
|
350
|
+
const o = await oe(n[0], r.$ref, e);
|
|
351
|
+
r = se(o, r);
|
|
337
352
|
} while (!0);
|
|
338
353
|
}
|
|
339
|
-
async function
|
|
340
|
-
if (!
|
|
354
|
+
async function oe(t, e, r) {
|
|
355
|
+
if (!U(t, e))
|
|
341
356
|
throw new Error(`Unexpected ref: ${e}`);
|
|
342
357
|
return t.resolveRef(e, r);
|
|
343
358
|
}
|
|
344
|
-
function
|
|
359
|
+
function U(t, e) {
|
|
345
360
|
if (t.canResolve)
|
|
346
361
|
return t.canResolve(e);
|
|
347
362
|
if (t.schema)
|
|
348
|
-
return
|
|
363
|
+
return ne(e, t.schema);
|
|
349
364
|
throw new Error("Resolver is missing canResolve method and schema property");
|
|
350
365
|
}
|
|
351
|
-
function
|
|
366
|
+
function ne(t, e) {
|
|
352
367
|
const r = [`${e}+`, `${e}:`];
|
|
353
368
|
for (const n of r)
|
|
354
369
|
if (t.startsWith(n))
|
|
355
370
|
return !0;
|
|
356
371
|
return !1;
|
|
357
372
|
}
|
|
358
|
-
function
|
|
373
|
+
function c(t) {
|
|
359
374
|
if (t.startsWith("http://") || t.startsWith("https://"))
|
|
360
375
|
return t;
|
|
361
376
|
const e = t.indexOf("+http://"), r = t.indexOf("+https://");
|
|
@@ -370,12 +385,12 @@ function l(t) {
|
|
|
370
385
|
}
|
|
371
386
|
typeof window < "u" && (window.__debugResolve = async function(e, r, n) {
|
|
372
387
|
let o, a, s;
|
|
373
|
-
return typeof e == "string" ? (o = window.__lastResolveObject, a = e, s = r) : (o = e, a = r, s = n), await
|
|
388
|
+
return typeof e == "string" ? (o = window.__lastResolveObject, a = e, s = r) : (o = e, a = r, s = n), await $(o, a, s);
|
|
374
389
|
});
|
|
375
|
-
function
|
|
390
|
+
function y(t) {
|
|
376
391
|
return async (e, ...r) => {
|
|
377
392
|
try {
|
|
378
|
-
const a = (await import(await
|
|
393
|
+
const a = (await import(await $(e, "/runtime/entry")))[t];
|
|
379
394
|
return a(e, ...r);
|
|
380
395
|
} catch (n) {
|
|
381
396
|
throw console.error("efp-loader", `Error when trying to import and call "${t}":`, n), n;
|
|
@@ -385,41 +400,41 @@ function m(t) {
|
|
|
385
400
|
function i(...t) {
|
|
386
401
|
globalThis.__EFP_LOADER_DEBUG__ && console.debug("efp-loader", ...t);
|
|
387
402
|
}
|
|
388
|
-
function
|
|
403
|
+
function d(t) {
|
|
389
404
|
if (t === null || typeof t != "object") return t;
|
|
390
405
|
Object.freeze(t);
|
|
391
406
|
for (const e of Object.keys(t)) {
|
|
392
407
|
const r = t[e];
|
|
393
|
-
typeof r == "object" && r !== null && !Object.isFrozen(r) &&
|
|
408
|
+
typeof r == "object" && r !== null && !Object.isFrozen(r) && d(r);
|
|
394
409
|
}
|
|
395
410
|
return t;
|
|
396
411
|
}
|
|
397
|
-
function
|
|
412
|
+
function j(t) {
|
|
398
413
|
return "structuredClone" in globalThis ? globalThis.structuredClone(t) : JSON.parse(JSON.stringify(t));
|
|
399
414
|
}
|
|
400
|
-
function
|
|
415
|
+
function ae(t) {
|
|
401
416
|
if (typeof document > "u") return;
|
|
402
417
|
const e = document.createElement("link");
|
|
403
418
|
e.rel = "preconnect", e.href = t, e.crossOrigin = "anonymous", document.head.appendChild(e);
|
|
404
419
|
}
|
|
405
|
-
function
|
|
420
|
+
function se(t, e) {
|
|
406
421
|
if (t === e) return;
|
|
407
422
|
if (e === null || typeof e != "object")
|
|
408
423
|
throw new Error("Cannot merge non-object source");
|
|
409
424
|
if (Array.isArray(e))
|
|
410
425
|
throw new Error("Cannot merge arrays");
|
|
411
426
|
const r = Object.keys(e).filter((o) => o !== "$ref");
|
|
412
|
-
if (r.length === 0) return
|
|
427
|
+
if (r.length === 0) return j(t);
|
|
413
428
|
if (Array.isArray(t))
|
|
414
429
|
throw new Error("Cannot merge into arrays");
|
|
415
430
|
if (t === null || typeof t != "object")
|
|
416
431
|
throw new Error("Cannot merge into non-object target");
|
|
417
|
-
const n =
|
|
432
|
+
const n = j({ ...t });
|
|
418
433
|
for (const o of r)
|
|
419
434
|
n[o] = e[o];
|
|
420
435
|
return n;
|
|
421
436
|
}
|
|
422
|
-
function
|
|
437
|
+
function ie(t, e) {
|
|
423
438
|
if (t !== e) {
|
|
424
439
|
if (e === null || typeof e != "object")
|
|
425
440
|
throw new Error("Cannot replace with non-object source");
|
|
@@ -439,47 +454,47 @@ function ee(t, e) {
|
|
|
439
454
|
t[r] = e[r];
|
|
440
455
|
}
|
|
441
456
|
}
|
|
442
|
-
async function
|
|
457
|
+
async function le(t, e, r) {
|
|
443
458
|
r = r || {};
|
|
444
459
|
for (const n of e)
|
|
445
|
-
await
|
|
460
|
+
await $(t, n, { ...r, mutate: !0 });
|
|
446
461
|
}
|
|
447
|
-
typeof window < "u" && (window.__debugMutateManifest =
|
|
448
|
-
async function
|
|
449
|
-
const { makeOfflineBundle: e } = await import("./makeOfflineBundle-
|
|
462
|
+
typeof window < "u" && (window.__debugMutateManifest = le);
|
|
463
|
+
async function ce(t) {
|
|
464
|
+
const { makeOfflineBundle: e } = await import("./makeOfflineBundle-CdE5LdlF.js");
|
|
450
465
|
return await e(t);
|
|
451
466
|
}
|
|
452
|
-
async function
|
|
453
|
-
const { downloadZip: e } = await import("./downloadZip-
|
|
467
|
+
async function fe(t) {
|
|
468
|
+
const { downloadZip: e } = await import("./downloadZip-D1Leqczj.js");
|
|
454
469
|
return await e(t);
|
|
455
470
|
}
|
|
456
|
-
async function
|
|
457
|
-
const { makeOffline: e } = await import("./makeOffline-
|
|
471
|
+
async function ue(t) {
|
|
472
|
+
const { makeOffline: e } = await import("./makeOffline-DdJq2uGI.js"), r = await e(t);
|
|
458
473
|
for await (const n of (await r).files)
|
|
459
474
|
"data" in n ? console.info(`🗳️ Put ${n.targetFilePath} <=`, n.data) : "url" in n && console.info(`🗳️ Download ${n.targetFilePath} <= ${n.url}`);
|
|
460
475
|
console.info("Offline data: ", r.manifest);
|
|
461
476
|
}
|
|
462
|
-
typeof window < "u" && (window.__debugDownloadZip =
|
|
463
|
-
const
|
|
464
|
-
async function
|
|
465
|
-
return await
|
|
477
|
+
typeof window < "u" && (window.__debugDownloadZip = fe, window.__debugMakeOfflineBundle = ce, window.__debugLogOfflineManifestFiles = ue);
|
|
478
|
+
const pe = y("mount"), me = y("load"), ve = y("initialize");
|
|
479
|
+
async function ye(t, e, ...r) {
|
|
480
|
+
return await y(t)(e, ...r);
|
|
466
481
|
}
|
|
467
|
-
|
|
482
|
+
ae("https://efp-runtime.expofp.com/");
|
|
468
483
|
export {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
484
|
+
se as a,
|
|
485
|
+
oe as b,
|
|
486
|
+
U as c,
|
|
487
|
+
ye as callFunction_Experimental,
|
|
488
|
+
j as d,
|
|
489
|
+
fe as downloadZip,
|
|
490
|
+
ve as initialize,
|
|
476
491
|
i as l,
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
492
|
+
me as load,
|
|
493
|
+
ce as makeOfflineBundle,
|
|
494
|
+
pe as mount,
|
|
495
|
+
le as mutateManifest,
|
|
496
|
+
c as p,
|
|
497
|
+
ee as r,
|
|
498
|
+
$ as resolve
|
|
484
499
|
};
|
|
485
500
|
//# sourceMappingURL=index.js.map
|