@expofp/loader 1.0.61 → 1.0.65
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/bundle/bundle.js +125 -110
- package/dist/bundle/bundle.js.map +1 -1
- package/dist/bundle/{downloadZip-CohB2rQN.js → downloadOfflineZip-B8tTyZYe.js} +1001 -995
- package/dist/bundle/downloadOfflineZip-B8tTyZYe.js.map +1 -0
- package/dist/bundle/{makeOffline-DuRXI_Dd.js → makeOffline-DH6wJEem.js} +37 -37
- package/dist/bundle/makeOffline-DH6wJEem.js.map +1 -0
- package/dist/bundle/makeOfflineBundle-C-xleVMN.js +58 -0
- package/dist/bundle/makeOfflineBundle-C-xleVMN.js.map +1 -0
- package/dist/bundle/saveOfflineZip.browser-BTQeRUY_.js +7 -0
- package/dist/bundle/saveOfflineZip.browser-BTQeRUY_.js.map +1 -0
- package/dist/esm/importJson.js +4 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/offline/downloadOfflineZip.d.ts +4 -0
- package/dist/esm/offline/downloadOfflineZip.js +15 -0
- package/dist/esm/offline/generateZip.d.ts +4 -0
- package/dist/esm/offline/{downloadZip.js → generateZip.js} +9 -8
- package/dist/esm/offline/index.d.ts +9 -1
- package/dist/esm/offline/index.js +12 -4
- package/dist/esm/offline/makeOffline.js +3 -2
- package/dist/esm/offline/makeOfflineBundle.js +19 -8
- package/dist/esm/offline/saveOfflineZip.browser.d.ts +1 -0
- package/dist/esm/offline/saveOfflineZip.browser.js +3 -0
- package/dist/esm/offline/saveOfflineZip.d.ts +1 -0
- package/dist/esm/offline/saveOfflineZip.js +16 -0
- package/dist/esm/offline/tools.js +4 -4
- package/dist/esm/resolve.d.ts +11 -4
- package/dist/esm/resolve.js +6 -34
- package/dist/esm/resolvers/legacyAssetUrlsResolver.js +12 -1
- package/package.json +10 -2
- package/dist/bundle/downloadZip-CohB2rQN.js.map +0 -1
- package/dist/bundle/makeOffline-DuRXI_Dd.js.map +0 -1
- package/dist/bundle/makeOfflineBundle-XjvmvDQE.js +0 -58
- package/dist/bundle/makeOfflineBundle-XjvmvDQE.js.map +0 -1
- package/dist/esm/offline/downloadZip.d.ts +0 -1
package/dist/bundle/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
window.__efpLoaderBuildInfo = ["1.0.
|
|
1
|
+
window.__efpLoaderBuildInfo = ["1.0.65", "2025-12-15T13:55:52.629Z"];
|
|
2
2
|
var Me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
3
|
function Q(r) {
|
|
4
4
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
@@ -77,11 +77,11 @@ function X() {
|
|
|
77
77
|
}
|
|
78
78
|
function c(f) {
|
|
79
79
|
var s = Math.abs(f);
|
|
80
|
-
return s >= n ?
|
|
80
|
+
return s >= n ? d(f, s, n, "day") : s >= t ? d(f, s, t, "hour") : s >= e ? d(f, s, e, "minute") : s >= r ? d(f, s, r, "second") : f + " ms";
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
var
|
|
84
|
-
return Math.round(f / i) + " " + u + (
|
|
82
|
+
function d(f, s, i, u) {
|
|
83
|
+
var h = s >= i * 1.5;
|
|
84
|
+
return Math.round(f / i) + " " + u + (h ? "s" : "");
|
|
85
85
|
}
|
|
86
86
|
return L;
|
|
87
87
|
}
|
|
@@ -90,7 +90,7 @@ function Y() {
|
|
|
90
90
|
if (W) return T;
|
|
91
91
|
W = 1;
|
|
92
92
|
function r(e) {
|
|
93
|
-
n.debug = n, n.default = n, n.coerce =
|
|
93
|
+
n.debug = n, n.default = n, n.coerce = d, n.disable = w, n.enable = l, n.enabled = c, n.humanize = X(), n.destroy = f, Object.keys(e).forEach((s) => {
|
|
94
94
|
n[s] = e[s];
|
|
95
95
|
}), n.names = [], n.skips = [], n.formatters = {};
|
|
96
96
|
function t(s) {
|
|
@@ -101,33 +101,33 @@ function Y() {
|
|
|
101
101
|
}
|
|
102
102
|
n.selectColor = t;
|
|
103
103
|
function n(s) {
|
|
104
|
-
let i, u = null,
|
|
105
|
-
function
|
|
106
|
-
if (!
|
|
104
|
+
let i, u = null, h, g;
|
|
105
|
+
function m(...y) {
|
|
106
|
+
if (!m.enabled)
|
|
107
107
|
return;
|
|
108
|
-
const
|
|
109
|
-
|
|
108
|
+
const v = m, F = Number(/* @__PURE__ */ new Date()), _ = F - (i || F);
|
|
109
|
+
v.diff = _, v.prev = i, v.curr = F, i = F, y[0] = n.coerce(y[0]), typeof y[0] != "string" && y.unshift("%O");
|
|
110
110
|
let R = 0;
|
|
111
|
-
|
|
111
|
+
y[0] = y[0].replace(/%([a-zA-Z%])/g, (b, H) => {
|
|
112
112
|
if (b === "%%")
|
|
113
113
|
return "%";
|
|
114
114
|
R++;
|
|
115
115
|
const N = n.formatters[H];
|
|
116
116
|
if (typeof N == "function") {
|
|
117
|
-
const K =
|
|
118
|
-
b = N.call(
|
|
117
|
+
const K = y[R];
|
|
118
|
+
b = N.call(v, K), y.splice(R, 1), R--;
|
|
119
119
|
}
|
|
120
120
|
return b;
|
|
121
|
-
}), n.formatArgs.call(
|
|
121
|
+
}), n.formatArgs.call(v, y), (v.log || n.log).apply(v, y);
|
|
122
122
|
}
|
|
123
|
-
return
|
|
123
|
+
return m.namespace = s, m.useColors = n.useColors(), m.color = n.selectColor(s), m.extend = o, m.destroy = n.destroy, Object.defineProperty(m, "enabled", {
|
|
124
124
|
enumerable: !0,
|
|
125
125
|
configurable: !1,
|
|
126
|
-
get: () => u !== null ? u : (
|
|
127
|
-
set: (
|
|
128
|
-
u =
|
|
126
|
+
get: () => u !== null ? u : (h !== n.namespaces && (h = n.namespaces, g = n.enabled(s)), g),
|
|
127
|
+
set: (y) => {
|
|
128
|
+
u = y;
|
|
129
129
|
}
|
|
130
|
-
}), typeof n.init == "function" && n.init(
|
|
130
|
+
}), typeof n.init == "function" && n.init(m), m;
|
|
131
131
|
}
|
|
132
132
|
function o(s, i) {
|
|
133
133
|
const u = n(this.namespace + (typeof i > "u" ? ":" : i) + s);
|
|
@@ -140,17 +140,17 @@ function Y() {
|
|
|
140
140
|
u[0] === "-" ? n.skips.push(u.slice(1)) : n.names.push(u);
|
|
141
141
|
}
|
|
142
142
|
function a(s, i) {
|
|
143
|
-
let u = 0,
|
|
143
|
+
let u = 0, h = 0, g = -1, m = 0;
|
|
144
144
|
for (; u < s.length; )
|
|
145
|
-
if (
|
|
146
|
-
i[
|
|
145
|
+
if (h < i.length && (i[h] === s[u] || i[h] === "*"))
|
|
146
|
+
i[h] === "*" ? (g = h, m = u, h++) : (u++, h++);
|
|
147
147
|
else if (g !== -1)
|
|
148
|
-
|
|
148
|
+
h = g + 1, m++, u = m;
|
|
149
149
|
else
|
|
150
150
|
return !1;
|
|
151
|
-
for (;
|
|
152
|
-
|
|
153
|
-
return
|
|
151
|
+
for (; h < i.length && i[h] === "*"; )
|
|
152
|
+
h++;
|
|
153
|
+
return h === i.length;
|
|
154
154
|
}
|
|
155
155
|
function w() {
|
|
156
156
|
const s = [
|
|
@@ -168,7 +168,7 @@ function Y() {
|
|
|
168
168
|
return !0;
|
|
169
169
|
return !1;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function d(s) {
|
|
172
172
|
return s instanceof Error ? s.stack || s.message : s;
|
|
173
173
|
}
|
|
174
174
|
function f() {
|
|
@@ -279,12 +279,12 @@ function x() {
|
|
|
279
279
|
function n(c) {
|
|
280
280
|
if (c[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + c[0] + (this.useColors ? "%c " : " ") + "+" + r.exports.humanize(this.diff), !this.useColors)
|
|
281
281
|
return;
|
|
282
|
-
const
|
|
283
|
-
c.splice(1, 0,
|
|
282
|
+
const d = "color: " + this.color;
|
|
283
|
+
c.splice(1, 0, d, "color: inherit");
|
|
284
284
|
let f = 0, s = 0;
|
|
285
285
|
c[0].replace(/%[a-zA-Z%]/g, (i) => {
|
|
286
286
|
i !== "%%" && (f++, i === "%c" && (s = f));
|
|
287
|
-
}), c.splice(s, 0,
|
|
287
|
+
}), c.splice(s, 0, d);
|
|
288
288
|
}
|
|
289
289
|
e.log = console.debug || console.log || (() => {
|
|
290
290
|
});
|
|
@@ -313,19 +313,19 @@ function x() {
|
|
|
313
313
|
w.j = function(c) {
|
|
314
314
|
try {
|
|
315
315
|
return JSON.stringify(c);
|
|
316
|
-
} catch (
|
|
317
|
-
return "[UnexpectedJSONParseError]: " +
|
|
316
|
+
} catch (d) {
|
|
317
|
+
return "[UnexpectedJSONParseError]: " + d.message;
|
|
318
318
|
}
|
|
319
319
|
};
|
|
320
320
|
})(O, O.exports)), O.exports;
|
|
321
321
|
}
|
|
322
322
|
var ee = x();
|
|
323
323
|
const re = /* @__PURE__ */ Q(ee), te = re("efp:loader");
|
|
324
|
-
function
|
|
324
|
+
function p(...r) {
|
|
325
325
|
te(...r);
|
|
326
326
|
}
|
|
327
327
|
function ne(r) {
|
|
328
|
-
return
|
|
328
|
+
return p("assetResolver resolveRef:", r), $(r);
|
|
329
329
|
}
|
|
330
330
|
const oe = {
|
|
331
331
|
schema: "asset",
|
|
@@ -335,15 +335,17 @@ const oe = {
|
|
|
335
335
|
let A;
|
|
336
336
|
const se = /* @__PURE__ */ new WeakSet(), P = new Function("url", 'return import(url, { with: { type: "json" } });');
|
|
337
337
|
async function M(r, e) {
|
|
338
|
-
var n, o;
|
|
338
|
+
var n, o, l;
|
|
339
|
+
if ((n = e.preResolvedRefs) != null && n.has(r))
|
|
340
|
+
return p("importJson: using preResolvedRefs for", r), e.preResolvedRefs.get(r);
|
|
339
341
|
if (A === void 0 && !e.forceFetch)
|
|
340
342
|
try {
|
|
341
343
|
await P(r), A = !1;
|
|
342
344
|
} catch {
|
|
343
|
-
|
|
345
|
+
p("importJson: dynamic import not available, falling back to fetch"), A = !0;
|
|
344
346
|
}
|
|
345
347
|
let t;
|
|
346
|
-
return !A && !e.forceFetch ? (t = (await P(r)).default, (
|
|
348
|
+
return !A && !e.forceFetch ? (t = (await P(r)).default, (o = e.importCallback) == null || o.call(e, r, "json")) : (p("importJson: fetch", r), t = await ae(r, e.refCache, e.signal || null), (l = e.importCallback) == null || l.call(e, r, "json")), se.has(t) || E(t), t;
|
|
347
349
|
}
|
|
348
350
|
async function ae(r, e, t) {
|
|
349
351
|
const n = "__loadJson__" + r;
|
|
@@ -366,7 +368,7 @@ async function j(r, e, t) {
|
|
|
366
368
|
const ie = {
|
|
367
369
|
schema: "bundle-assets",
|
|
368
370
|
async resolveRef(r, e) {
|
|
369
|
-
|
|
371
|
+
p("bundleAssetsResolver resolveRef:", r);
|
|
370
372
|
const t = $(r);
|
|
371
373
|
return j(r, e.refCache, async () => {
|
|
372
374
|
const n = await M(t, e), o = t.substring(0, t.lastIndexOf("/") + 1);
|
|
@@ -379,7 +381,7 @@ const ie = {
|
|
|
379
381
|
}, le = "https://efp-runtime.expofp.com/", ce = {
|
|
380
382
|
schema: "expo-runtime-branch",
|
|
381
383
|
async resolveRef(r, e) {
|
|
382
|
-
|
|
384
|
+
p("expoRuntimeBranchResolver resolveRef:", r);
|
|
383
385
|
const t = $(r), n = `${le}branches/${t}.json`;
|
|
384
386
|
return j(r, e.refCache, async () => {
|
|
385
387
|
const { release: o } = await M(n, e);
|
|
@@ -392,7 +394,7 @@ const ie = {
|
|
|
392
394
|
}, fe = {
|
|
393
395
|
schema: "expo-runtime-get-branch",
|
|
394
396
|
async resolveRef(r, e) {
|
|
395
|
-
|
|
397
|
+
p("expoRuntimeGetBranchResolver resolveRef:", r);
|
|
396
398
|
const n = `https://${$(r)}.expofp.com/get-branch`;
|
|
397
399
|
return M(n, e);
|
|
398
400
|
},
|
|
@@ -403,7 +405,7 @@ const ie = {
|
|
|
403
405
|
// return canResolveRefSchema(ref, SCHEMA);
|
|
404
406
|
// },
|
|
405
407
|
async resolveRef(r) {
|
|
406
|
-
|
|
408
|
+
p("expoRuntimeResolver resolveRef:", r);
|
|
407
409
|
const e = $(r), t = {
|
|
408
410
|
entry: { $ref: `asset+${e}expofp.js` },
|
|
409
411
|
assets: { $ref: `bundle-assets+${e}bundle.json` }
|
|
@@ -433,20 +435,20 @@ const ie = {
|
|
|
433
435
|
return r.startsWith("http://") || r.startsWith("https://") || r.startsWith("./");
|
|
434
436
|
},
|
|
435
437
|
resolveRef(r, e) {
|
|
436
|
-
if (
|
|
438
|
+
if (p("httpResolver resolveRef:", r), !this.canResolve(r)) throw new Error(`Unexpected ref in httpResolver: ${r}`);
|
|
437
439
|
return M(r, e);
|
|
438
440
|
},
|
|
439
441
|
offlineMethod: "resolveRef"
|
|
440
442
|
};
|
|
441
443
|
async function k(r, e) {
|
|
442
444
|
const { globalVar: t, timeoutMs: n = 1e4, pollIntervalMs: o = 10 } = e;
|
|
443
|
-
|
|
445
|
+
he() ? (t && window[t] !== void 0 && delete window[t], await we(r, e.signal), t && await Z(
|
|
444
446
|
() => window[t],
|
|
445
447
|
t,
|
|
446
448
|
n,
|
|
447
449
|
o,
|
|
448
450
|
e.signal
|
|
449
|
-
)) : (t && globalThis[t] !== void 0 && delete globalThis[t], await pe(r, e.signal), t && await
|
|
451
|
+
)) : (t && globalThis[t] !== void 0 && delete globalThis[t], await pe(r, e.signal), t && await Z(
|
|
450
452
|
() => globalThis[t],
|
|
451
453
|
t,
|
|
452
454
|
n,
|
|
@@ -454,10 +456,10 @@ async function k(r, e) {
|
|
|
454
456
|
e.signal
|
|
455
457
|
));
|
|
456
458
|
}
|
|
457
|
-
function
|
|
459
|
+
function he() {
|
|
458
460
|
return typeof window < "u" && typeof document < "u";
|
|
459
461
|
}
|
|
460
|
-
function
|
|
462
|
+
function we(r, e) {
|
|
461
463
|
return new Promise((t, n) => {
|
|
462
464
|
const o = document.createElement("script");
|
|
463
465
|
o.src = r, o.async = !0;
|
|
@@ -508,7 +510,7 @@ async function pe(r, e) {
|
|
|
508
510
|
l === void 0 ? delete o.window : o.window = l;
|
|
509
511
|
}
|
|
510
512
|
}
|
|
511
|
-
function
|
|
513
|
+
function Z(r, e, t, n, o) {
|
|
512
514
|
return new Promise((l, a) => {
|
|
513
515
|
const w = Date.now(), c = () => {
|
|
514
516
|
a(new Error("Wait for global aborted"));
|
|
@@ -518,7 +520,7 @@ function V(r, e, t, n, o) {
|
|
|
518
520
|
return;
|
|
519
521
|
}
|
|
520
522
|
o == null || o.addEventListener("abort", c, { once: !0 });
|
|
521
|
-
const
|
|
523
|
+
const d = () => {
|
|
522
524
|
if (o != null && o.aborted)
|
|
523
525
|
return a(new Error("Wait for global aborted"));
|
|
524
526
|
try {
|
|
@@ -528,25 +530,25 @@ function V(r, e, t, n, o) {
|
|
|
528
530
|
}
|
|
529
531
|
if (Date.now() - w >= t)
|
|
530
532
|
return o == null || o.removeEventListener("abort", c), a(new Error(`Timed out after ${t} ms waiting for global "${e}"`));
|
|
531
|
-
setTimeout(
|
|
533
|
+
setTimeout(d, n);
|
|
532
534
|
};
|
|
533
|
-
|
|
535
|
+
d();
|
|
534
536
|
});
|
|
535
537
|
}
|
|
536
538
|
const me = {
|
|
537
539
|
schema: "legacy-asset-urls",
|
|
538
540
|
resolveRef(r, e) {
|
|
539
|
-
|
|
541
|
+
p("legacyAssetUrlsResolver resolveRef:", r);
|
|
540
542
|
const t = e.signal;
|
|
541
543
|
return j(r, e.refCache, async () => {
|
|
542
|
-
var
|
|
544
|
+
var y, v, F, _, R;
|
|
543
545
|
const n = $(r), o = `${n}version.js`;
|
|
544
546
|
try {
|
|
545
547
|
await k(o, {
|
|
546
548
|
globalVar: "__fpDataVersion",
|
|
547
549
|
timeoutMs: 3e4,
|
|
548
550
|
signal: t
|
|
549
|
-
}), (
|
|
551
|
+
}), (y = e.importCallback) == null || y.call(e, o, "script");
|
|
550
552
|
} catch {
|
|
551
553
|
console.warn(`Could not load version.js at ${o}, proceeding without it`);
|
|
552
554
|
}
|
|
@@ -554,13 +556,13 @@ const me = {
|
|
|
554
556
|
globalVar: "__data",
|
|
555
557
|
signal: t
|
|
556
558
|
});
|
|
557
|
-
(
|
|
558
|
-
const c = `${n}wf.data.js?v=${l}`,
|
|
559
|
+
(v = e.importCallback) == null || v.call(e, a, "script");
|
|
560
|
+
const c = `${n}wf.data.js?v=${l}`, d = k(c, {
|
|
559
561
|
globalVar: "__wfData",
|
|
560
562
|
signal: t
|
|
561
563
|
}).then(() => {
|
|
562
|
-
var
|
|
563
|
-
(
|
|
564
|
+
var C;
|
|
565
|
+
(C = e.importCallback) == null || C.call(e, c, "script");
|
|
564
566
|
}).catch(() => {
|
|
565
567
|
console.warn(`Could not load wf.data.js at ${c}, proceeding without it`);
|
|
566
568
|
});
|
|
@@ -569,14 +571,14 @@ const me = {
|
|
|
569
571
|
globalVar: "__fp",
|
|
570
572
|
signal: t
|
|
571
573
|
});
|
|
572
|
-
(F = e.importCallback) == null || F.call(e, f, "script"), await Promise.all([w,
|
|
573
|
-
const u = ((_ = globalThis.__fpLayers) != null ? _ : []).map((
|
|
574
|
-
for (const
|
|
575
|
-
const b = `${n}${
|
|
574
|
+
(F = e.importCallback) == null || F.call(e, f, "script"), await Promise.all([w, d, s]);
|
|
575
|
+
const u = ((_ = globalThis.__fpLayers) != null ? _ : []).map((C) => `fp.svg.${C.name}.js`);
|
|
576
|
+
for (const C of u) {
|
|
577
|
+
const b = `${n}${C}?v=${l}`;
|
|
576
578
|
(R = e.importCallback) == null || R.call(e, b, "script");
|
|
577
579
|
}
|
|
578
|
-
const
|
|
579
|
-
return { ...["data.js", "wf.data.js", "fp.svg.js", ...u].reduce((
|
|
580
|
+
const h = globalThis.__data || {};
|
|
581
|
+
return { ...["data.js", "wf.data.js", "fp.svg.js", ...u].reduce((C, b) => (C[b] = { $ref: `asset+${n}${b}?v=${l}` }, C), {}), ...ye(n, h) };
|
|
580
582
|
});
|
|
581
583
|
},
|
|
582
584
|
offlineMethod: "resolveRef"
|
|
@@ -589,7 +591,14 @@ function ye(r, e) {
|
|
|
589
591
|
}
|
|
590
592
|
return n(e.logo), (o = e.exhibitors) == null || o.forEach((a) => {
|
|
591
593
|
var w;
|
|
592
|
-
n(a.logo),
|
|
594
|
+
if (n(a.logo), a.logo) {
|
|
595
|
+
const c = a.logo.lastIndexOf(".");
|
|
596
|
+
if (c !== -1) {
|
|
597
|
+
const d = a.logo.substring(0, c), f = a.logo.substring(c);
|
|
598
|
+
n(`${d}__small${f}`), n(`${d}__tiny${f}`);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
(w = a.gallery) == null || w.forEach((c) => n(c));
|
|
593
602
|
}), (l = e.events) == null || l.forEach((a) => {
|
|
594
603
|
var w;
|
|
595
604
|
n(a.logoFile), (w = a.speakers) == null || w.forEach((c) => {
|
|
@@ -597,10 +606,10 @@ function ye(r, e) {
|
|
|
597
606
|
});
|
|
598
607
|
}), Array.from(t).reduce((a, w) => (a[w] = { $ref: `asset+${r}${w}` }, a), {});
|
|
599
608
|
}
|
|
600
|
-
const
|
|
609
|
+
const ve = {
|
|
601
610
|
schema: "legacy-data",
|
|
602
611
|
resolveRef(r, e) {
|
|
603
|
-
return
|
|
612
|
+
return p("legacyDataResolver resolveRef:", r), j(r, e.refCache, async () => {
|
|
604
613
|
const t = $(r);
|
|
605
614
|
return {
|
|
606
615
|
_to_remove_for_offline_to_work_dataUrlBase: t,
|
|
@@ -609,23 +618,24 @@ const Ce = {
|
|
|
609
618
|
});
|
|
610
619
|
},
|
|
611
620
|
offlineMethod: "resolveRef"
|
|
612
|
-
},
|
|
621
|
+
}, Ce = [
|
|
613
622
|
de,
|
|
614
623
|
ie,
|
|
615
624
|
oe,
|
|
616
625
|
ue,
|
|
617
626
|
ce,
|
|
618
627
|
fe,
|
|
619
|
-
|
|
628
|
+
ve,
|
|
620
629
|
me
|
|
621
630
|
], be = /* @__PURE__ */ new Map();
|
|
622
|
-
async function
|
|
623
|
-
|
|
631
|
+
async function D(r, e, t) {
|
|
632
|
+
p("Resolving:", e, "of", r, t);
|
|
624
633
|
const n = {
|
|
625
634
|
importCallback: t == null ? void 0 : t.importCallback,
|
|
626
635
|
refCache: (t == null ? void 0 : t.refCache) || be,
|
|
627
636
|
forceFetch: !!(t != null && t.forceFetch),
|
|
628
|
-
signal: (t == null ? void 0 : t.signal) || null
|
|
637
|
+
signal: (t == null ? void 0 : t.signal) || null,
|
|
638
|
+
preResolvedRefs: t == null ? void 0 : t.preResolvedRefs
|
|
629
639
|
};
|
|
630
640
|
if (typeof e != "string")
|
|
631
641
|
throw new Error(`Invalid JSON Pointer (not a string): ${e}`);
|
|
@@ -639,44 +649,44 @@ async function J(r, e, t) {
|
|
|
639
649
|
if (t != null && t.mutate) {
|
|
640
650
|
o.unshift("root");
|
|
641
651
|
const l = { root: r };
|
|
642
|
-
await
|
|
652
|
+
await G(l, o, 0, n), Ee(r, l.root);
|
|
643
653
|
} else
|
|
644
654
|
return await q(r, o, 0, n);
|
|
645
655
|
}
|
|
646
|
-
async function
|
|
656
|
+
async function G(r, e, t, n) {
|
|
647
657
|
const o = e[t];
|
|
648
658
|
if (await ge(r, o, n), t != e.length - 1) {
|
|
649
659
|
if (r[o] === null || typeof r[o] != "object")
|
|
650
660
|
throw new Error(
|
|
651
661
|
`Cannot resolve path, encountered non-object at part '${e.slice(1).join("/")}', index ${t - 1}'`
|
|
652
662
|
);
|
|
653
|
-
return await
|
|
663
|
+
return await G(r[o], e, t + 1, n);
|
|
654
664
|
}
|
|
655
665
|
}
|
|
656
666
|
async function ge(r, e, t) {
|
|
657
|
-
|
|
667
|
+
p("resolveObjectMutate:", r, e);
|
|
658
668
|
let n = r[e];
|
|
659
|
-
const o = await
|
|
669
|
+
const o = await J(n, t);
|
|
660
670
|
o !== void 0 && (r[e] = o);
|
|
661
671
|
}
|
|
662
672
|
async function q(r, e, t, n) {
|
|
663
673
|
if (t === e.length)
|
|
664
|
-
return await
|
|
674
|
+
return await J(r, n);
|
|
665
675
|
if (r === null || typeof r != "object")
|
|
666
676
|
throw new Error(
|
|
667
677
|
`Cannot resolve path, encountered non-object at part '${e.join("/")}', index ${t}'`
|
|
668
678
|
);
|
|
669
679
|
const o = e[t];
|
|
670
680
|
let l = r[o];
|
|
671
|
-
return l === void 0 && (l = (await
|
|
681
|
+
return l === void 0 && (l = (await J(r, n))[o]), await q(l, e, t + 1, n);
|
|
672
682
|
}
|
|
673
|
-
async function
|
|
674
|
-
|
|
683
|
+
async function J(r, e) {
|
|
684
|
+
p("resolveObject:", r);
|
|
675
685
|
let t = r;
|
|
676
686
|
do {
|
|
677
687
|
if (typeof t != "object" || t === null || !("$ref" in t))
|
|
678
688
|
return t;
|
|
679
|
-
const n =
|
|
689
|
+
const n = Ce.filter((l) => S(l, t.$ref));
|
|
680
690
|
if (n.length === 0) {
|
|
681
691
|
if (t.$ref)
|
|
682
692
|
throw new Error(`No resolver found for ref: ${t.$ref}`);
|
|
@@ -721,13 +731,12 @@ function $(r) {
|
|
|
721
731
|
throw new Error(`Error getting URL from: ${r}, no valid prefix found`);
|
|
722
732
|
}
|
|
723
733
|
typeof window < "u" && (window.__debugResolve = async function(e, t, n) {
|
|
724
|
-
|
|
725
|
-
return typeof e == "string" ? (o = window.__lastResolveObject, l = e, a = t) : (o = e, l = t, a = n), await J(o, l, a);
|
|
734
|
+
return await D(e, t, n);
|
|
726
735
|
});
|
|
727
736
|
function I(r) {
|
|
728
737
|
return async (e, ...t) => {
|
|
729
738
|
try {
|
|
730
|
-
const l = (await import(await
|
|
739
|
+
const l = (await import(await D(e, "/runtime/entry")))[r];
|
|
731
740
|
return l(e, ...t);
|
|
732
741
|
} catch (n) {
|
|
733
742
|
throw console.error("efp-loader", `Error when trying to import and call "${r}":`, n), n;
|
|
@@ -743,7 +752,7 @@ function E(r) {
|
|
|
743
752
|
}
|
|
744
753
|
return r;
|
|
745
754
|
}
|
|
746
|
-
function
|
|
755
|
+
function V(r) {
|
|
747
756
|
return "structuredClone" in globalThis ? globalThis.structuredClone(r) : JSON.parse(JSON.stringify(r));
|
|
748
757
|
}
|
|
749
758
|
function $e(r, e) {
|
|
@@ -753,12 +762,12 @@ function $e(r, e) {
|
|
|
753
762
|
if (Array.isArray(e))
|
|
754
763
|
throw new Error("Cannot merge arrays");
|
|
755
764
|
const t = Object.keys(e).filter((o) => o !== "$ref");
|
|
756
|
-
if (t.length === 0) return
|
|
765
|
+
if (t.length === 0) return V(r);
|
|
757
766
|
if (Array.isArray(r))
|
|
758
767
|
throw new Error("Cannot merge into arrays");
|
|
759
768
|
if (r === null || typeof r != "object")
|
|
760
769
|
throw new Error("Cannot merge into non-object target");
|
|
761
|
-
const n =
|
|
770
|
+
const n = V({ ...r });
|
|
762
771
|
for (const o of t)
|
|
763
772
|
n[o] = e[o];
|
|
764
773
|
return n;
|
|
@@ -786,47 +795,53 @@ function Ee(r, e) {
|
|
|
786
795
|
async function _e(r, e, t) {
|
|
787
796
|
t = t || {};
|
|
788
797
|
for (const n of e)
|
|
789
|
-
await
|
|
798
|
+
await D(r, n, { ...t, mutate: !0 });
|
|
790
799
|
}
|
|
791
800
|
typeof window < "u" && (window.__debugMutateManifest = _e);
|
|
792
801
|
async function Oe(r) {
|
|
793
|
-
const { makeOfflineBundle: e } = await import("./makeOfflineBundle-
|
|
802
|
+
const { makeOfflineBundle: e } = await import("./makeOfflineBundle-C-xleVMN.js");
|
|
794
803
|
return await e(r);
|
|
795
804
|
}
|
|
796
|
-
async function Ae(r) {
|
|
797
|
-
const {
|
|
798
|
-
return await
|
|
805
|
+
async function Ae(r, e) {
|
|
806
|
+
const { downloadOfflineZip: t } = await import("./downloadOfflineZip-B8tTyZYe.js");
|
|
807
|
+
return await t(r, e);
|
|
808
|
+
}
|
|
809
|
+
async function je(r, e) {
|
|
810
|
+
const { saveOfflineZip: t } = await import("./saveOfflineZip.browser-BTQeRUY_.js");
|
|
811
|
+
return await t(r, e);
|
|
799
812
|
}
|
|
800
813
|
async function ke(r) {
|
|
801
|
-
const { makeOffline: e } = await import("./makeOffline-
|
|
814
|
+
const { makeOffline: e } = await import("./makeOffline-DH6wJEem.js"), t = await e(r);
|
|
802
815
|
for await (const n of (await t).files)
|
|
803
816
|
"data" in n ? console.info(`🗳️ Put ${n.targetFilePath} <=`, n.data) : "url" in n && console.info(`🗳️ Download ${n.targetFilePath} <= ${n.url}`);
|
|
804
817
|
console.info("Offline data: ", t.manifest);
|
|
805
818
|
}
|
|
806
|
-
typeof window < "u" && (window.
|
|
819
|
+
typeof window < "u" && (window.__debugDownloadOfflineZip = Ae, window.__debugMakeOfflineBundle = Oe, window.__debugLogOfflineManifestFiles = ke);
|
|
807
820
|
const B = globalThis.__efpLoaderBuildInfo;
|
|
808
|
-
B ?
|
|
809
|
-
const
|
|
810
|
-
async function
|
|
821
|
+
B ? p("Initialized", { version: B[0], builtAt: B[1] }) : p("Initialized");
|
|
822
|
+
const Ie = I("mount"), Le = I("load"), Te = I("initialize");
|
|
823
|
+
async function Be(r, e, ...t) {
|
|
811
824
|
return await I(r)(e, ...t);
|
|
812
825
|
}
|
|
813
826
|
export {
|
|
814
|
-
|
|
815
|
-
|
|
827
|
+
E as a,
|
|
828
|
+
S as b,
|
|
816
829
|
Me as c,
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
Ae as
|
|
820
|
-
|
|
830
|
+
Be as callFunction_Experimental,
|
|
831
|
+
re as d,
|
|
832
|
+
Ae as downloadOfflineZip,
|
|
833
|
+
$e as e,
|
|
834
|
+
V as f,
|
|
821
835
|
Q as g,
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
836
|
+
Fe as h,
|
|
837
|
+
Te as initialize,
|
|
838
|
+
Le as load,
|
|
825
839
|
Oe as makeOfflineBundle,
|
|
826
|
-
|
|
840
|
+
Ie as mount,
|
|
827
841
|
_e as mutateManifest,
|
|
828
842
|
$ as p,
|
|
829
|
-
|
|
830
|
-
|
|
843
|
+
Ce as r,
|
|
844
|
+
D as resolve,
|
|
845
|
+
je as saveOfflineZip
|
|
831
846
|
};
|
|
832
847
|
//# sourceMappingURL=bundle.js.map
|