@expofp/loader 1.0.79 → 1.0.92
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/ImportHttpRuntime.node-B85BNHJG.js +92 -0
- package/dist/bundle/ImportHttpRuntime.node-B85BNHJG.js.map +1 -0
- package/dist/bundle/bundle.js +238 -683
- package/dist/bundle/bundle.js.map +1 -1
- package/dist/esm/ImportHttpRuntime.node.d.ts +28 -0
- package/dist/esm/ImportHttpRuntime.node.js +139 -0
- package/dist/esm/_OLD_resolveRuntimeUrl.d.ts +1 -0
- package/dist/esm/_OLD_resolveRuntimeUrl.js +10 -0
- package/dist/esm/importHttpRuntime.d.ts +1 -0
- package/dist/esm/importHttpRuntime.js +12 -0
- package/dist/esm/index.d.ts +10 -7
- package/dist/esm/index.js +40 -19
- package/dist/esm/resolve.d.ts +10 -44
- package/dist/esm/resolve.js +91 -295
- package/dist/esm/types.d.ts +11 -26
- package/package.json +3 -1
- package/dist/bundle/cssTextAssetResolver.offlineFunc-CWvHnYni.js +0 -19
- package/dist/bundle/cssTextAssetResolver.offlineFunc-CWvHnYni.js.map +0 -1
- package/dist/bundle/downloadOfflineZip-CNz_lUGZ.js +0 -2344
- package/dist/bundle/downloadOfflineZip-CNz_lUGZ.js.map +0 -1
- package/dist/bundle/legacyDataUrlBaseResolver.offlineFunc-DPaSp_zV.js +0 -87
- package/dist/bundle/legacyDataUrlBaseResolver.offlineFunc-DPaSp_zV.js.map +0 -1
- package/dist/bundle/makeOffline-Dj-0o5_7.js +0 -76
- package/dist/bundle/makeOffline-Dj-0o5_7.js.map +0 -1
- package/dist/bundle/makeOfflineBundle-D8tePWGI.js +0 -70
- package/dist/bundle/makeOfflineBundle-D8tePWGI.js.map +0 -1
- package/dist/bundle/saveOfflineZip.browser-BTQeRUY_.js +0 -7
- package/dist/bundle/saveOfflineZip.browser-BTQeRUY_.js.map +0 -1
- package/dist/bundle/tools-D0u8lBvQ.js +0 -102
- package/dist/bundle/tools-D0u8lBvQ.js.map +0 -1
- package/dist/esm/_OLD_fetchWithRetry.d.ts +0 -1
- package/dist/esm/_OLD_fetchWithRetry.js +0 -101
- package/dist/esm/importJson.d.ts +0 -2
- package/dist/esm/importJson.js +0 -59
- package/dist/esm/loadScript.d.ts +0 -16
- package/dist/esm/loadScript.js +0 -166
- package/dist/esm/logger.d.ts +0 -1
- package/dist/esm/logger.js +0 -5
- package/dist/esm/mutateManifest.d.ts +0 -2
- package/dist/esm/mutateManifest.js +0 -10
- package/dist/esm/offline/downloadOfflineZip.d.ts +0 -4
- package/dist/esm/offline/downloadOfflineZip.js +0 -15
- package/dist/esm/offline/generateZip.d.ts +0 -4
- package/dist/esm/offline/generateZip.js +0 -41
- package/dist/esm/offline/hashString.d.ts +0 -1
- package/dist/esm/offline/hashString.js +0 -16
- package/dist/esm/offline/index.d.ts +0 -14
- package/dist/esm/offline/index.js +0 -41
- package/dist/esm/offline/makeOffline.d.ts +0 -2
- package/dist/esm/offline/makeOffline.js +0 -144
- package/dist/esm/offline/makeOfflineBundle.d.ts +0 -4
- package/dist/esm/offline/makeOfflineBundle.js +0 -92
- package/dist/esm/offline/saveOfflineZip.browser.d.ts +0 -1
- package/dist/esm/offline/saveOfflineZip.browser.js +0 -3
- package/dist/esm/offline/saveOfflineZip.d.ts +0 -1
- package/dist/esm/offline/saveOfflineZip.js +0 -16
- package/dist/esm/offline/slugify.d.ts +0 -1
- package/dist/esm/offline/slugify.js +0 -61
- package/dist/esm/offline/tools.d.ts +0 -3
- package/dist/esm/offline/tools.js +0 -85
- package/dist/esm/resolvers/_OLD_expoResolver.d.ts +0 -1
- package/dist/esm/resolvers/_OLD_expoResolver.js +0 -49
- package/dist/esm/resolvers/assetResolver.d.ts +0 -6
- package/dist/esm/resolvers/assetResolver.js +0 -26
- package/dist/esm/resolvers/bundleAssetsResolver.d.ts +0 -2
- package/dist/esm/resolvers/bundleAssetsResolver.js +0 -20
- package/dist/esm/resolvers/cssTextAssetResolver.d.ts +0 -8
- package/dist/esm/resolvers/cssTextAssetResolver.js +0 -15
- package/dist/esm/resolvers/cssTextAssetResolver.offlineFunc.d.ts +0 -2
- package/dist/esm/resolvers/cssTextAssetResolver.offlineFunc.js +0 -22
- package/dist/esm/resolvers/expoRuntimeBranchResolver.d.ts +0 -2
- package/dist/esm/resolvers/expoRuntimeBranchResolver.js +0 -20
- package/dist/esm/resolvers/expoRuntimeGetBranchResolver.d.ts +0 -2
- package/dist/esm/resolvers/expoRuntimeGetBranchResolver.js +0 -14
- package/dist/esm/resolvers/expoRuntimeResolver.d.ts +0 -2
- package/dist/esm/resolvers/expoRuntimeResolver.js +0 -39
- package/dist/esm/resolvers/httpResolver.d.ts +0 -5
- package/dist/esm/resolvers/httpResolver.js +0 -14
- package/dist/esm/resolvers/index.d.ts +0 -2
- package/dist/esm/resolvers/index.js +0 -22
- package/dist/esm/resolvers/legacyAssetUrlsResolver.d.ts +0 -9
- package/dist/esm/resolvers/legacyAssetUrlsResolver.js +0 -116
- package/dist/esm/resolvers/legacyDataResolver.d.ts +0 -8
- package/dist/esm/resolvers/legacyDataResolver.js +0 -20
- package/dist/esm/resolvers/legacyDataUrlBaseResolver.d.ts +0 -8
- package/dist/esm/resolvers/legacyDataUrlBaseResolver.js +0 -15
- package/dist/esm/resolvers/legacyDataUrlBaseResolver.offlineFunc.d.ts +0 -2
- package/dist/esm/resolvers/legacyDataUrlBaseResolver.offlineFunc.js +0 -129
- package/dist/esm/returnCachedRef.d.ts +0 -1
- package/dist/esm/returnCachedRef.js +0 -12
- package/dist/esm/shared.d.ts +0 -8
- package/dist/esm/shared.js +0 -273
package/dist/bundle/bundle.js
CHANGED
|
@@ -1,192 +1,191 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return s.long ? c(f) : h(f);
|
|
1
|
+
const A = ["1.0.92", "2025-12-23T09:36:23.069Z"];
|
|
2
|
+
function P(n) {
|
|
3
|
+
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
4
|
+
}
|
|
5
|
+
var b = { exports: {} }, j, x;
|
|
6
|
+
function T() {
|
|
7
|
+
if (x) return j;
|
|
8
|
+
x = 1;
|
|
9
|
+
var n = 1e3, r = n * 60, c = r * 60, e = c * 24, a = e * 7, l = e * 365.25;
|
|
10
|
+
j = function(s, t) {
|
|
11
|
+
t = t || {};
|
|
12
|
+
var o = typeof s;
|
|
13
|
+
if (o === "string" && s.length > 0)
|
|
14
|
+
return m(s);
|
|
15
|
+
if (o === "number" && isFinite(s))
|
|
16
|
+
return t.long ? i(s) : p(s);
|
|
18
17
|
throw new Error(
|
|
19
|
-
"val is not a non-empty string or a valid number. val=" + JSON.stringify(
|
|
18
|
+
"val is not a non-empty string or a valid number. val=" + JSON.stringify(s)
|
|
20
19
|
);
|
|
21
20
|
};
|
|
22
|
-
function
|
|
23
|
-
if (
|
|
24
|
-
var
|
|
25
|
-
|
|
21
|
+
function m(s) {
|
|
22
|
+
if (s = String(s), !(s.length > 100)) {
|
|
23
|
+
var t = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
24
|
+
s
|
|
26
25
|
);
|
|
27
|
-
if (
|
|
28
|
-
var
|
|
26
|
+
if (t) {
|
|
27
|
+
var o = parseFloat(t[1]), u = (t[2] || "ms").toLowerCase();
|
|
29
28
|
switch (u) {
|
|
30
29
|
case "years":
|
|
31
30
|
case "year":
|
|
32
31
|
case "yrs":
|
|
33
32
|
case "yr":
|
|
34
33
|
case "y":
|
|
35
|
-
return
|
|
34
|
+
return o * l;
|
|
36
35
|
case "weeks":
|
|
37
36
|
case "week":
|
|
38
37
|
case "w":
|
|
39
|
-
return
|
|
38
|
+
return o * a;
|
|
40
39
|
case "days":
|
|
41
40
|
case "day":
|
|
42
41
|
case "d":
|
|
43
|
-
return
|
|
42
|
+
return o * e;
|
|
44
43
|
case "hours":
|
|
45
44
|
case "hour":
|
|
46
45
|
case "hrs":
|
|
47
46
|
case "hr":
|
|
48
47
|
case "h":
|
|
49
|
-
return
|
|
48
|
+
return o * c;
|
|
50
49
|
case "minutes":
|
|
51
50
|
case "minute":
|
|
52
51
|
case "mins":
|
|
53
52
|
case "min":
|
|
54
53
|
case "m":
|
|
55
|
-
return
|
|
54
|
+
return o * r;
|
|
56
55
|
case "seconds":
|
|
57
56
|
case "second":
|
|
58
57
|
case "secs":
|
|
59
58
|
case "sec":
|
|
60
59
|
case "s":
|
|
61
|
-
return
|
|
60
|
+
return o * n;
|
|
62
61
|
case "milliseconds":
|
|
63
62
|
case "millisecond":
|
|
64
63
|
case "msecs":
|
|
65
64
|
case "msec":
|
|
66
65
|
case "ms":
|
|
67
|
-
return
|
|
66
|
+
return o;
|
|
68
67
|
default:
|
|
69
68
|
return;
|
|
70
69
|
}
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
|
-
function
|
|
75
|
-
var
|
|
76
|
-
return
|
|
73
|
+
function p(s) {
|
|
74
|
+
var t = Math.abs(s);
|
|
75
|
+
return t >= e ? Math.round(s / e) + "d" : t >= c ? Math.round(s / c) + "h" : t >= r ? Math.round(s / r) + "m" : t >= n ? Math.round(s / n) + "s" : s + "ms";
|
|
77
76
|
}
|
|
78
|
-
function
|
|
79
|
-
var
|
|
80
|
-
return
|
|
77
|
+
function i(s) {
|
|
78
|
+
var t = Math.abs(s);
|
|
79
|
+
return t >= e ? d(s, t, e, "day") : t >= c ? d(s, t, c, "hour") : t >= r ? d(s, t, r, "minute") : t >= n ? d(s, t, n, "second") : s + " ms";
|
|
81
80
|
}
|
|
82
|
-
function d(
|
|
83
|
-
var
|
|
84
|
-
return Math.round(
|
|
81
|
+
function d(s, t, o, u) {
|
|
82
|
+
var f = t >= o * 1.5;
|
|
83
|
+
return Math.round(s / o) + " " + u + (f ? "s" : "");
|
|
85
84
|
}
|
|
86
|
-
return
|
|
87
|
-
}
|
|
88
|
-
var
|
|
89
|
-
function
|
|
90
|
-
if (
|
|
91
|
-
|
|
92
|
-
function r
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}),
|
|
96
|
-
function t
|
|
97
|
-
let
|
|
98
|
-
for (let u = 0; u <
|
|
99
|
-
|
|
100
|
-
return
|
|
85
|
+
return j;
|
|
86
|
+
}
|
|
87
|
+
var E, $;
|
|
88
|
+
function z() {
|
|
89
|
+
if ($) return E;
|
|
90
|
+
$ = 1;
|
|
91
|
+
function n(r) {
|
|
92
|
+
e.debug = e, e.default = e, e.coerce = d, e.disable = p, e.enable = l, e.enabled = i, e.humanize = T(), e.destroy = s, Object.keys(r).forEach((t) => {
|
|
93
|
+
e[t] = r[t];
|
|
94
|
+
}), e.names = [], e.skips = [], e.formatters = {};
|
|
95
|
+
function c(t) {
|
|
96
|
+
let o = 0;
|
|
97
|
+
for (let u = 0; u < t.length; u++)
|
|
98
|
+
o = (o << 5) - o + t.charCodeAt(u), o |= 0;
|
|
99
|
+
return e.colors[Math.abs(o) % e.colors.length];
|
|
101
100
|
}
|
|
102
|
-
|
|
103
|
-
function
|
|
104
|
-
let
|
|
105
|
-
function
|
|
106
|
-
if (!
|
|
101
|
+
e.selectColor = c;
|
|
102
|
+
function e(t) {
|
|
103
|
+
let o, u = null, f, w;
|
|
104
|
+
function C(...h) {
|
|
105
|
+
if (!C.enabled)
|
|
107
106
|
return;
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
let
|
|
111
|
-
|
|
112
|
-
if (
|
|
107
|
+
const y = C, g = Number(/* @__PURE__ */ new Date()), L = g - (o || g);
|
|
108
|
+
y.diff = L, y.prev = o, y.curr = g, o = g, h[0] = e.coerce(h[0]), typeof h[0] != "string" && h.unshift("%O");
|
|
109
|
+
let F = 0;
|
|
110
|
+
h[0] = h[0].replace(/%([a-zA-Z%])/g, (I, q) => {
|
|
111
|
+
if (I === "%%")
|
|
113
112
|
return "%";
|
|
114
|
-
|
|
115
|
-
const
|
|
116
|
-
if (typeof
|
|
117
|
-
const
|
|
118
|
-
|
|
113
|
+
F++;
|
|
114
|
+
const _ = e.formatters[q];
|
|
115
|
+
if (typeof _ == "function") {
|
|
116
|
+
const N = h[F];
|
|
117
|
+
I = _.call(y, N), h.splice(F, 1), F--;
|
|
119
118
|
}
|
|
120
|
-
return
|
|
121
|
-
}),
|
|
119
|
+
return I;
|
|
120
|
+
}), e.formatArgs.call(y, h), (y.log || e.log).apply(y, h);
|
|
122
121
|
}
|
|
123
|
-
return
|
|
122
|
+
return C.namespace = t, C.useColors = e.useColors(), C.color = e.selectColor(t), C.extend = a, C.destroy = e.destroy, Object.defineProperty(C, "enabled", {
|
|
124
123
|
enumerable: !0,
|
|
125
124
|
configurable: !1,
|
|
126
|
-
get: () => u !== null ? u : (
|
|
127
|
-
set: (
|
|
128
|
-
u =
|
|
125
|
+
get: () => u !== null ? u : (f !== e.namespaces && (f = e.namespaces, w = e.enabled(t)), w),
|
|
126
|
+
set: (h) => {
|
|
127
|
+
u = h;
|
|
129
128
|
}
|
|
130
|
-
}), typeof
|
|
129
|
+
}), typeof e.init == "function" && e.init(C), C;
|
|
131
130
|
}
|
|
132
|
-
function
|
|
133
|
-
const u =
|
|
131
|
+
function a(t, o) {
|
|
132
|
+
const u = e(this.namespace + (typeof o > "u" ? ":" : o) + t);
|
|
134
133
|
return u.log = this.log, u;
|
|
135
134
|
}
|
|
136
|
-
function l(
|
|
137
|
-
|
|
138
|
-
const
|
|
139
|
-
for (const u of
|
|
140
|
-
u[0] === "-" ?
|
|
135
|
+
function l(t) {
|
|
136
|
+
e.save(t), e.namespaces = t, e.names = [], e.skips = [];
|
|
137
|
+
const o = (typeof t == "string" ? t : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
138
|
+
for (const u of o)
|
|
139
|
+
u[0] === "-" ? e.skips.push(u.slice(1)) : e.names.push(u);
|
|
141
140
|
}
|
|
142
|
-
function
|
|
143
|
-
let u = 0,
|
|
144
|
-
for (; u <
|
|
145
|
-
if (
|
|
146
|
-
|
|
147
|
-
else if (
|
|
148
|
-
|
|
141
|
+
function m(t, o) {
|
|
142
|
+
let u = 0, f = 0, w = -1, C = 0;
|
|
143
|
+
for (; u < t.length; )
|
|
144
|
+
if (f < o.length && (o[f] === t[u] || o[f] === "*"))
|
|
145
|
+
o[f] === "*" ? (w = f, C = u, f++) : (u++, f++);
|
|
146
|
+
else if (w !== -1)
|
|
147
|
+
f = w + 1, C++, u = C;
|
|
149
148
|
else
|
|
150
149
|
return !1;
|
|
151
|
-
for (;
|
|
152
|
-
|
|
153
|
-
return
|
|
150
|
+
for (; f < o.length && o[f] === "*"; )
|
|
151
|
+
f++;
|
|
152
|
+
return f === o.length;
|
|
154
153
|
}
|
|
155
|
-
function
|
|
156
|
-
const
|
|
157
|
-
...
|
|
158
|
-
...
|
|
154
|
+
function p() {
|
|
155
|
+
const t = [
|
|
156
|
+
...e.names,
|
|
157
|
+
...e.skips.map((o) => "-" + o)
|
|
159
158
|
].join(",");
|
|
160
|
-
return
|
|
159
|
+
return e.enable(""), t;
|
|
161
160
|
}
|
|
162
|
-
function
|
|
163
|
-
for (const
|
|
164
|
-
if (
|
|
161
|
+
function i(t) {
|
|
162
|
+
for (const o of e.skips)
|
|
163
|
+
if (m(t, o))
|
|
165
164
|
return !1;
|
|
166
|
-
for (const
|
|
167
|
-
if (
|
|
165
|
+
for (const o of e.names)
|
|
166
|
+
if (m(t, o))
|
|
168
167
|
return !0;
|
|
169
168
|
return !1;
|
|
170
169
|
}
|
|
171
|
-
function d(
|
|
172
|
-
return
|
|
170
|
+
function d(t) {
|
|
171
|
+
return t instanceof Error ? t.stack || t.message : t;
|
|
173
172
|
}
|
|
174
|
-
function
|
|
173
|
+
function s() {
|
|
175
174
|
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
176
175
|
}
|
|
177
|
-
return
|
|
176
|
+
return e.enable(e.load()), e;
|
|
178
177
|
}
|
|
179
|
-
return
|
|
178
|
+
return E = n, E;
|
|
180
179
|
}
|
|
181
|
-
var
|
|
182
|
-
function
|
|
183
|
-
return
|
|
184
|
-
|
|
185
|
-
let
|
|
180
|
+
var O;
|
|
181
|
+
function B() {
|
|
182
|
+
return O || (O = 1, (function(n, r) {
|
|
183
|
+
r.formatArgs = e, r.save = a, r.load = l, r.useColors = c, r.storage = m(), r.destroy = /* @__PURE__ */ (() => {
|
|
184
|
+
let i = !1;
|
|
186
185
|
return () => {
|
|
187
|
-
|
|
186
|
+
i || (i = !0, console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));
|
|
188
187
|
};
|
|
189
|
-
})(),
|
|
188
|
+
})(), r.colors = [
|
|
190
189
|
"#0000CC",
|
|
191
190
|
"#0000FF",
|
|
192
191
|
"#0033CC",
|
|
@@ -264,623 +263,179 @@ function oe() {
|
|
|
264
263
|
"#FFCC00",
|
|
265
264
|
"#FFCC33"
|
|
266
265
|
];
|
|
267
|
-
function
|
|
266
|
+
function c() {
|
|
268
267
|
if (typeof window < "u" && window.process && (window.process.type === "renderer" || window.process.__nwjs))
|
|
269
268
|
return !0;
|
|
270
269
|
if (typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))
|
|
271
270
|
return !1;
|
|
272
|
-
let
|
|
271
|
+
let i;
|
|
273
272
|
return typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773
|
|
274
273
|
typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
|
|
275
274
|
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
276
|
-
typeof navigator < "u" && navigator.userAgent && (
|
|
275
|
+
typeof navigator < "u" && navigator.userAgent && (i = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(i[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker
|
|
277
276
|
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
278
277
|
}
|
|
279
|
-
function
|
|
280
|
-
if (
|
|
278
|
+
function e(i) {
|
|
279
|
+
if (i[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + i[0] + (this.useColors ? "%c " : " ") + "+" + n.exports.humanize(this.diff), !this.useColors)
|
|
281
280
|
return;
|
|
282
281
|
const d = "color: " + this.color;
|
|
283
|
-
|
|
284
|
-
let
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
}),
|
|
282
|
+
i.splice(1, 0, d, "color: inherit");
|
|
283
|
+
let s = 0, t = 0;
|
|
284
|
+
i[0].replace(/%[a-zA-Z%]/g, (o) => {
|
|
285
|
+
o !== "%%" && (s++, o === "%c" && (t = s));
|
|
286
|
+
}), i.splice(t, 0, d);
|
|
288
287
|
}
|
|
289
|
-
|
|
288
|
+
r.log = console.debug || console.log || (() => {
|
|
290
289
|
});
|
|
291
|
-
function
|
|
290
|
+
function a(i) {
|
|
292
291
|
try {
|
|
293
|
-
|
|
292
|
+
i ? r.storage.setItem("debug", i) : r.storage.removeItem("debug");
|
|
294
293
|
} catch {
|
|
295
294
|
}
|
|
296
295
|
}
|
|
297
296
|
function l() {
|
|
298
|
-
let
|
|
297
|
+
let i;
|
|
299
298
|
try {
|
|
300
|
-
|
|
299
|
+
i = r.storage.getItem("debug") || r.storage.getItem("DEBUG");
|
|
301
300
|
} catch {
|
|
302
301
|
}
|
|
303
|
-
return !
|
|
302
|
+
return !i && typeof process < "u" && "env" in process && (i = process.env.DEBUG), i;
|
|
304
303
|
}
|
|
305
|
-
function
|
|
304
|
+
function m() {
|
|
306
305
|
try {
|
|
307
306
|
return localStorage;
|
|
308
307
|
} catch {
|
|
309
308
|
}
|
|
310
309
|
}
|
|
311
|
-
|
|
312
|
-
const { formatters:
|
|
313
|
-
|
|
310
|
+
n.exports = z()(r);
|
|
311
|
+
const { formatters: p } = n.exports;
|
|
312
|
+
p.j = function(i) {
|
|
314
313
|
try {
|
|
315
|
-
return JSON.stringify(
|
|
314
|
+
return JSON.stringify(i);
|
|
316
315
|
} catch (d) {
|
|
317
316
|
return "[UnexpectedJSONParseError]: " + d.message;
|
|
318
317
|
}
|
|
319
318
|
};
|
|
320
|
-
})(
|
|
321
|
-
}
|
|
322
|
-
var se = oe();
|
|
323
|
-
const I = /* @__PURE__ */ re(se), ae = I("efp:loader");
|
|
324
|
-
function p(...r) {
|
|
325
|
-
ae(...r);
|
|
319
|
+
})(b, b.exports)), b.exports;
|
|
326
320
|
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
const
|
|
331
|
-
|
|
332
|
-
resolveRef: async (r) => ie(r),
|
|
333
|
-
offlineFunc: "localizeRef"
|
|
334
|
-
};
|
|
335
|
-
let A;
|
|
336
|
-
const G = async function(...e) {
|
|
337
|
-
return A || (typeof window < "u" && typeof document < "u" ? A = window.fetch.bind(window) : A = (await import("./fetch-retry.umd-g1itNdNw.js").then((o) => o.f)).default(globalThis.fetch)), A.apply(null, e);
|
|
321
|
+
var D = B();
|
|
322
|
+
const S = /* @__PURE__ */ P(D);
|
|
323
|
+
let v;
|
|
324
|
+
const R = async function(...r) {
|
|
325
|
+
return v || (typeof window < "u" && typeof document < "u" ? v = window.fetch.bind(window) : v = (await import("./fetch-retry.umd-g1itNdNw.js").then((a) => a.f)).default(globalThis.fetch)), v.apply(null, r);
|
|
338
326
|
};
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
} catch {
|
|
349
|
-
p("importJson: dynamic import not available, falling back to fetch"), k = !0;
|
|
350
|
-
}
|
|
351
|
-
let t;
|
|
352
|
-
return !k && !e.forceFetch ? (t = (await S(r)).default, (o = e.importCallback) == null || o.call(e, r, "json")) : (p("importJson: fetch", r), t = await fe(r, e.refCache, e.signal || null), (l = e.importCallback) == null || l.call(e, r, "json")), ce.has(t) || E(t), t;
|
|
353
|
-
}
|
|
354
|
-
async function fe(r, e, t) {
|
|
355
|
-
const n = "__loadJson__" + r;
|
|
356
|
-
if (e.has(n))
|
|
357
|
-
return e.get(n);
|
|
358
|
-
const o = (async function() {
|
|
359
|
-
const a = await G(r, { signal: t });
|
|
360
|
-
if (!a.ok)
|
|
361
|
-
throw new Error(`Failed to fetch JSON from ${r}`);
|
|
362
|
-
return await a.json();
|
|
363
|
-
})();
|
|
364
|
-
return e.set(n, o), o;
|
|
365
|
-
}
|
|
366
|
-
async function L(r, e, t) {
|
|
367
|
-
if (e.has(r))
|
|
368
|
-
return e.get(r);
|
|
369
|
-
const n = t().then((o) => (E(o), o));
|
|
370
|
-
return e.set(r, n), n;
|
|
371
|
-
}
|
|
372
|
-
const ue = {
|
|
373
|
-
schema: "bundle-assets",
|
|
374
|
-
async resolveRef(r, e) {
|
|
375
|
-
p("bundleAssetsResolver resolveRef:", r);
|
|
376
|
-
const t = b(r);
|
|
377
|
-
return L(r, e.refCache, async () => {
|
|
378
|
-
const n = await M(t, e), o = t.substring(0, t.lastIndexOf("/") + 1);
|
|
379
|
-
return n.map((a) => ({
|
|
380
|
-
$ref: `asset+${o}${a}`
|
|
381
|
-
}));
|
|
382
|
-
});
|
|
383
|
-
},
|
|
384
|
-
offlineFunc: "localizeRef"
|
|
385
|
-
}, de = I("efp:loader:resolver:cssTextAsset"), we = "css-text-asset", he = {
|
|
386
|
-
schema: we,
|
|
387
|
-
resolveRef(r) {
|
|
388
|
-
return de("cssTextAssetResolver resolveRef:", r), Promise.resolve(b(r));
|
|
389
|
-
},
|
|
390
|
-
offlineFunc: async function* (r, e) {
|
|
391
|
-
const { offlineFunc: t } = await import("./cssTextAssetResolver.offlineFunc-CWvHnYni.js");
|
|
392
|
-
return yield* t(r, e);
|
|
327
|
+
async function H(n) {
|
|
328
|
+
if (typeof window < "u" && typeof document < "u")
|
|
329
|
+
return await import(
|
|
330
|
+
/* @vite-ignore */
|
|
331
|
+
n
|
|
332
|
+
);
|
|
333
|
+
{
|
|
334
|
+
const { nodeImportHttpRuntime: r } = await import("./ImportHttpRuntime.node-B85BNHJG.js");
|
|
335
|
+
return r(n, { fetchImpl: R });
|
|
393
336
|
}
|
|
394
|
-
}, pe = "https://efp-runtime.expofp.com/", me = {
|
|
395
|
-
schema: "expo-runtime-branch",
|
|
396
|
-
async resolveRef(r, e) {
|
|
397
|
-
p("expoRuntimeBranchResolver resolveRef:", r);
|
|
398
|
-
const t = b(r), n = `${pe}branches/${t}.json`;
|
|
399
|
-
return L(r, e.refCache, async () => {
|
|
400
|
-
const { release: o } = await M(n, e);
|
|
401
|
-
return {
|
|
402
|
-
$ref: `expo-runtime+https://efp-runtime.expofp.com/releases/${o}/`
|
|
403
|
-
};
|
|
404
|
-
});
|
|
405
|
-
},
|
|
406
|
-
offlineFunc: "resolveRef"
|
|
407
|
-
}, ye = {
|
|
408
|
-
schema: "expo-runtime-get-branch",
|
|
409
|
-
async resolveRef(r, e) {
|
|
410
|
-
p("expoRuntimeGetBranchResolver resolveRef:", r);
|
|
411
|
-
const n = `https://${b(r)}.expofp.com/get-branch`;
|
|
412
|
-
return M(n, e);
|
|
413
|
-
},
|
|
414
|
-
offlineFunc: "resolveRef"
|
|
415
|
-
}, ve = {
|
|
416
|
-
schema: "expo-runtime",
|
|
417
|
-
// canResolve(ref: string) {
|
|
418
|
-
// return canResolveRefSchema(ref, SCHEMA);
|
|
419
|
-
// },
|
|
420
|
-
async resolveRef(r) {
|
|
421
|
-
p("expoRuntimeResolver resolveRef:", r);
|
|
422
|
-
const e = b(r), t = {
|
|
423
|
-
entry: { $ref: `asset+${e}expofp.js` },
|
|
424
|
-
assets: { $ref: `bundle-assets+${e}bundle.json` }
|
|
425
|
-
};
|
|
426
|
-
return E(t), t;
|
|
427
|
-
},
|
|
428
|
-
// async *makeOfflineRef(ref: string) {
|
|
429
|
-
// log('expoRuntimeResolver makeOfflineRef:', ref);
|
|
430
|
-
// if (!this.canResolve(ref)) throw new Error(`Unexpected ref: ${ref}`);
|
|
431
|
-
// const url = parseRefValue(ref);
|
|
432
|
-
// const refData = deepClone(await this.resolveRef(ref));
|
|
433
|
-
// const targetFilePath = makeUniqueJsonTargetPathFromString(url, SCHEMA_PREFIX_BASE);
|
|
434
|
-
// const data = yield* makeOfflineInternal(refData);
|
|
435
|
-
// yield { data: data, targetFilePath };
|
|
436
|
-
// return { $ref: targetFilePath, [STOP_RESOLVING]: true };
|
|
437
|
-
// },
|
|
438
|
-
// async *makeOfflineRef2(ref: string) {
|
|
439
|
-
// const refData = deepClone(await this.resolveRef(ref));
|
|
440
|
-
// const targetFilePath = makeUniqueJsonTargetPathFromString(ref);
|
|
441
|
-
// const data = yield* makeOfflineInternal(refData);
|
|
442
|
-
// yield { data, targetFilePath };
|
|
443
|
-
// return targetFilePath;
|
|
444
|
-
// },
|
|
445
|
-
offlineFunc: "resolveRef"
|
|
446
|
-
}, Ce = {
|
|
447
|
-
canResolve(r) {
|
|
448
|
-
return r.startsWith("http://") || r.startsWith("https://") || r.startsWith("./");
|
|
449
|
-
},
|
|
450
|
-
resolveRef(r, e) {
|
|
451
|
-
if (p("httpResolver resolveRef:", r), !this.canResolve(r)) throw new Error(`Unexpected ref in httpResolver: ${r}`);
|
|
452
|
-
return M(r, e);
|
|
453
|
-
},
|
|
454
|
-
offlineFunc: "resolveRef"
|
|
455
|
-
}, be = I("efp:loader:loadScript");
|
|
456
|
-
async function j(r, e) {
|
|
457
|
-
const { globalVar: t, timeoutMs: n = 1e4, pollIntervalMs: o = 10 } = e;
|
|
458
|
-
q() ? (t && window[t] !== void 0 && delete window[t], await H(r, e.signal), t && await V(
|
|
459
|
-
() => window[t],
|
|
460
|
-
t,
|
|
461
|
-
n,
|
|
462
|
-
o,
|
|
463
|
-
e.signal
|
|
464
|
-
)) : (t && globalThis[t] !== void 0 && delete globalThis[t], await K(r, e.signal), t && await V(
|
|
465
|
-
() => globalThis[t],
|
|
466
|
-
t,
|
|
467
|
-
n,
|
|
468
|
-
o,
|
|
469
|
-
e.signal
|
|
470
|
-
));
|
|
471
337
|
}
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
338
|
+
const J = S("efp:loader:resolve");
|
|
339
|
+
async function M(n, r = {}) {
|
|
340
|
+
var l, m, p;
|
|
341
|
+
const c = (l = r.maxHops) != null ? l : 32, e = /* @__PURE__ */ new Set();
|
|
342
|
+
let a = n;
|
|
343
|
+
for (let i = 0; i < c; i++) {
|
|
344
|
+
if (a && typeof a == "object" && "$ref" in a) {
|
|
345
|
+
const s = a.$ref;
|
|
346
|
+
if (typeof s != "string")
|
|
347
|
+
throw new Error(`$ref must be a string, got: ${typeof s}`);
|
|
348
|
+
if (U(s)) {
|
|
349
|
+
if (e.has(s))
|
|
350
|
+
throw new Error(`Circular $ref detected at: ${s}`);
|
|
351
|
+
e.add(s), J("Loading JSON ref:", s), (m = r.fetchCallback) == null || m.call(r, s);
|
|
352
|
+
const t = await W(s, r.signal);
|
|
353
|
+
(p = r.onHop) == null || p.call(r, { hop: i, ref: s, via: t.__via }), a = t.value;
|
|
354
|
+
continue;
|
|
355
|
+
}
|
|
356
|
+
return a;
|
|
490
357
|
}
|
|
491
|
-
|
|
492
|
-
e == null || e.removeEventListener("abort", a), l(), t();
|
|
493
|
-
}, o.onerror = () => {
|
|
494
|
-
e == null || e.removeEventListener("abort", a), l(), n(new Error(`Failed to load script: ${r}`));
|
|
495
|
-
}, document.head.appendChild(o);
|
|
496
|
-
});
|
|
497
|
-
}
|
|
498
|
-
async function K(r, e) {
|
|
499
|
-
if (e != null && e.aborted)
|
|
500
|
-
throw new Error("Script load aborted");
|
|
501
|
-
let t;
|
|
502
|
-
try {
|
|
503
|
-
t = await G(r, { signal: e });
|
|
504
|
-
} catch (a) {
|
|
505
|
-
throw a && a.name === "AbortError" ? new Error("Script load aborted") : a;
|
|
506
|
-
}
|
|
507
|
-
if (!t.ok)
|
|
508
|
-
throw new Error(`Failed to load script in Node (HTTP ${t.status}): ${r}`);
|
|
509
|
-
if (e != null && e.aborted)
|
|
510
|
-
throw new Error("Script load aborted");
|
|
511
|
-
let n;
|
|
512
|
-
try {
|
|
513
|
-
n = await t.text();
|
|
514
|
-
} catch (a) {
|
|
515
|
-
throw a && a.name === "AbortError" ? new Error("Script load aborted") : a;
|
|
358
|
+
return a;
|
|
516
359
|
}
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
};
|
|
532
|
-
if (o != null && o.aborted) {
|
|
533
|
-
a(new Error("Wait for global aborted"));
|
|
534
|
-
return;
|
|
360
|
+
throw new Error(`Too many ref hops (>${c}). Possible loop or unexpectedly deep chain.`);
|
|
361
|
+
}
|
|
362
|
+
function U(n) {
|
|
363
|
+
return n.startsWith("http://") || n.startsWith("https://");
|
|
364
|
+
}
|
|
365
|
+
async function W(n, r) {
|
|
366
|
+
const c = await G(n);
|
|
367
|
+
if (c.ok) return { value: c.value, __via: "import" };
|
|
368
|
+
const e = await R(n, {
|
|
369
|
+
method: "GET",
|
|
370
|
+
signal: r,
|
|
371
|
+
headers: {
|
|
372
|
+
// Helps some CDNs/content negotiation setups
|
|
373
|
+
Accept: "application/json, text/plain;q=0.9, */*;q=0.1"
|
|
535
374
|
}
|
|
536
|
-
o == null || o.addEventListener("abort", c, { once: !0 });
|
|
537
|
-
const d = () => {
|
|
538
|
-
if (o != null && o.aborted)
|
|
539
|
-
return a(new Error("Wait for global aborted"));
|
|
540
|
-
try {
|
|
541
|
-
if (r() !== void 0)
|
|
542
|
-
return o == null || o.removeEventListener("abort", c), l();
|
|
543
|
-
} catch {
|
|
544
|
-
}
|
|
545
|
-
if (Date.now() - h >= t)
|
|
546
|
-
return o == null || o.removeEventListener("abort", c), a(new Error(`Timed out after ${t} ms waiting for global "${e}"`));
|
|
547
|
-
setTimeout(d, n);
|
|
548
|
-
};
|
|
549
|
-
d();
|
|
550
375
|
});
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
await j(o, {
|
|
562
|
-
globalVar: "__fpDataVersion",
|
|
563
|
-
timeoutMs: 3e4,
|
|
564
|
-
signal: t
|
|
565
|
-
}), (y = e.importCallback) == null || y.call(e, o, "script");
|
|
566
|
-
} catch {
|
|
567
|
-
console.warn(`Could not load version.js at ${o}, proceeding without it`);
|
|
568
|
-
}
|
|
569
|
-
const l = globalThis.__fpDataVersion || (+/* @__PURE__ */ new Date()).toString(), a = `${n}data.js?v=${l}`, h = j(a, {
|
|
570
|
-
globalVar: "__data",
|
|
571
|
-
signal: t
|
|
572
|
-
});
|
|
573
|
-
(v = e.importCallback) == null || v.call(e, a, "script");
|
|
574
|
-
const c = `${n}wf.data.js?v=${l}`, d = j(c, {
|
|
575
|
-
globalVar: "__wfData",
|
|
576
|
-
signal: t
|
|
577
|
-
}).then(() => {
|
|
578
|
-
var C;
|
|
579
|
-
(C = e.importCallback) == null || C.call(e, c, "script");
|
|
580
|
-
}).catch(() => {
|
|
581
|
-
console.warn(`Could not load wf.data.js at ${c}, proceeding without it`);
|
|
582
|
-
});
|
|
583
|
-
delete globalThis.__fpLayers;
|
|
584
|
-
const f = `${n}fp.svg.js?v=${l}`, s = j(f, {
|
|
585
|
-
globalVar: "__fp",
|
|
586
|
-
signal: t
|
|
587
|
-
});
|
|
588
|
-
(R = e.importCallback) == null || R.call(e, f, "script"), await Promise.all([h, d, s]);
|
|
589
|
-
const u = ((O = globalThis.__fpLayers) != null ? O : []).map((C) => `fp.svg.${C.name}.js`);
|
|
590
|
-
for (const C of u) {
|
|
591
|
-
const g = `${n}${C}?v=${l}`;
|
|
592
|
-
($ = e.importCallback) == null || $.call(e, g, "script");
|
|
593
|
-
}
|
|
594
|
-
const w = globalThis.__data || {};
|
|
595
|
-
return { ...["data.js", "wf.data.js", "fp.svg.js", ...u].reduce((C, g) => (C[g] = { $ref: `asset+${n}${g}?v=${l}` }, C), {}), ...Fe(n, w) };
|
|
596
|
-
});
|
|
597
|
-
},
|
|
598
|
-
offlineFunc: "resolveRef"
|
|
599
|
-
};
|
|
600
|
-
function Fe(r, e) {
|
|
601
|
-
var o, l;
|
|
602
|
-
const t = /* @__PURE__ */ new Set();
|
|
603
|
-
function n(a) {
|
|
604
|
-
typeof a == "string" && a.length > 0 && t.add(a);
|
|
605
|
-
}
|
|
606
|
-
return n(e.logo), (o = e.exhibitors) == null || o.forEach((a) => {
|
|
607
|
-
var h;
|
|
608
|
-
if (n(a.logo), a.logo) {
|
|
609
|
-
const c = a.logo.lastIndexOf(".");
|
|
610
|
-
if (c !== -1) {
|
|
611
|
-
const d = a.logo.substring(0, c), f = a.logo.substring(c);
|
|
612
|
-
n(`${d}__small${f}`), n(`${d}__tiny${f}`);
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
(h = a.gallery) == null || h.forEach((c) => n(c));
|
|
616
|
-
}), (l = e.events) == null || l.forEach((a) => {
|
|
617
|
-
var h;
|
|
618
|
-
n(a.logoFile), (h = a.speakers) == null || h.forEach((c) => {
|
|
619
|
-
n(c.photoFile);
|
|
620
|
-
});
|
|
621
|
-
}), Array.from(t).reduce((a, h) => (a[h] = { $ref: `asset+${r}${h}` }, a), {});
|
|
622
|
-
}
|
|
623
|
-
const Re = {
|
|
624
|
-
schema: "legacy-data",
|
|
625
|
-
resolveRef(r, e) {
|
|
626
|
-
return p("legacyDataResolver resolveRef:", r), L(r, e.refCache, async () => {
|
|
627
|
-
const t = b(r);
|
|
628
|
-
return {
|
|
629
|
-
_to_remove_for_offline_to_work_dataUrlBase: t,
|
|
630
|
-
legacyAssetUrls: { $ref: `legacy-asset-urls+${t}` }
|
|
631
|
-
};
|
|
632
|
-
});
|
|
633
|
-
},
|
|
634
|
-
offlineFunc: "resolveRef"
|
|
635
|
-
}, $e = I("efp:loader:resolver:legacyDataUrlBase"), Ee = "legacy-data-url-base", Oe = {
|
|
636
|
-
schema: Ee,
|
|
637
|
-
resolveRef(r) {
|
|
638
|
-
return $e("legacyDataResolver resolveRef:", r), Promise.resolve(b(r));
|
|
639
|
-
},
|
|
640
|
-
offlineFunc: async function* (r, e) {
|
|
641
|
-
const { offlineFunc: t } = await import("./legacyDataUrlBaseResolver.offlineFunc-DPaSp_zV.js");
|
|
642
|
-
return yield* t(r, e);
|
|
643
|
-
}
|
|
644
|
-
}, _e = [
|
|
645
|
-
Ce,
|
|
646
|
-
ue,
|
|
647
|
-
le,
|
|
648
|
-
ve,
|
|
649
|
-
me,
|
|
650
|
-
ye,
|
|
651
|
-
he,
|
|
652
|
-
Re,
|
|
653
|
-
ge,
|
|
654
|
-
Oe
|
|
655
|
-
], Ae = /* @__PURE__ */ new Map();
|
|
656
|
-
async function W(r, e, t) {
|
|
657
|
-
p("Resolving:", e, "of", r, t);
|
|
658
|
-
const n = {
|
|
659
|
-
importCallback: t == null ? void 0 : t.importCallback,
|
|
660
|
-
refCache: (t == null ? void 0 : t.refCache) || Ae,
|
|
661
|
-
forceFetch: !!(t != null && t.forceFetch),
|
|
662
|
-
signal: (t == null ? void 0 : t.signal) || null,
|
|
663
|
-
preResolvedRefs: t == null ? void 0 : t.preResolvedRefs
|
|
664
|
-
};
|
|
665
|
-
if (typeof e != "string")
|
|
666
|
-
throw new Error(`Invalid JSON Pointer (not a string): ${e}`);
|
|
667
|
-
if (!e.startsWith("/"))
|
|
668
|
-
throw new Error(`Invalid JSON Pointer: ${e}`);
|
|
669
|
-
if (e.length > 1 && e.endsWith("/"))
|
|
670
|
-
throw new Error(`Invalid JSON Pointer: ${e}`);
|
|
671
|
-
let o;
|
|
672
|
-
if (e === "/" ? o = [] : o = e.substring(1).split("/"), o.some((l) => l.length === 0))
|
|
673
|
-
throw new Error(`Invalid JSON Pointer (empty part): ${e}`);
|
|
674
|
-
if (t != null && t.mutate) {
|
|
675
|
-
o.unshift("root");
|
|
676
|
-
const l = { root: r };
|
|
677
|
-
await Q(l, o, 0, n), Te(r, l.root);
|
|
678
|
-
} else
|
|
679
|
-
return await X(r, o, 0, n);
|
|
680
|
-
}
|
|
681
|
-
async function Q(r, e, t, n) {
|
|
682
|
-
const o = e[t];
|
|
683
|
-
if (await ke(r, o, n), t != e.length - 1) {
|
|
684
|
-
if (r[o] === null || typeof r[o] != "object")
|
|
685
|
-
throw new Error(
|
|
686
|
-
`Cannot resolve path, encountered non-object at part '${e.slice(1).join("/")}', index ${t - 1}'`
|
|
687
|
-
);
|
|
688
|
-
return await Q(r[o], e, t + 1, n);
|
|
376
|
+
if (!e.ok)
|
|
377
|
+
throw new Error(`Failed to fetch JSON ref: ${n} (${e.status} ${e.statusText})`);
|
|
378
|
+
const a = e.headers.get("content-type") || "";
|
|
379
|
+
if (a.includes("application/json") || a.includes("+json"))
|
|
380
|
+
return { value: await e.json(), __via: "fetch" };
|
|
381
|
+
const l = await e.text();
|
|
382
|
+
try {
|
|
383
|
+
return { value: JSON.parse(l), __via: "fetch" };
|
|
384
|
+
} catch {
|
|
385
|
+
return { value: l, __via: "fetch" };
|
|
689
386
|
}
|
|
690
387
|
}
|
|
691
|
-
async function
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
async function X(r, e, t, n) {
|
|
698
|
-
if (t === e.length)
|
|
699
|
-
return await U(r, n);
|
|
700
|
-
if (r === null || typeof r != "object")
|
|
701
|
-
throw new Error(
|
|
702
|
-
`Cannot resolve path, encountered non-object at part '${e.join("/")}', index ${t}'`
|
|
388
|
+
async function G(n) {
|
|
389
|
+
var r, c;
|
|
390
|
+
try {
|
|
391
|
+
const e = await import(
|
|
392
|
+
/* @vite-ignore */
|
|
393
|
+
n
|
|
703
394
|
);
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
return l === void 0 && (l = (await U(r, n))[o]), await X(l, e, t + 1, n);
|
|
707
|
-
}
|
|
708
|
-
async function U(r, e) {
|
|
709
|
-
p("resolveObject:", r);
|
|
710
|
-
let t = r;
|
|
711
|
-
do {
|
|
712
|
-
if (typeof t != "object" || t === null || !("$ref" in t))
|
|
713
|
-
return t;
|
|
714
|
-
const n = _e.filter((l) => Y(l, t.$ref));
|
|
715
|
-
if (n.length === 0) {
|
|
716
|
-
if (t.$ref)
|
|
717
|
-
throw new Error(`No resolver found for ref: ${t.$ref}`);
|
|
718
|
-
return E(t), t;
|
|
719
|
-
}
|
|
720
|
-
if (n.length > 1)
|
|
721
|
-
throw new Error(`Multiple resolvers can resolve ref: ${t.$ref}`);
|
|
722
|
-
const o = await je(n[0], t.$ref, e);
|
|
723
|
-
t = Le(o, t);
|
|
724
|
-
} while (!0);
|
|
725
|
-
}
|
|
726
|
-
async function je(r, e, t) {
|
|
727
|
-
if (!Y(r, e))
|
|
728
|
-
throw new Error(`Unexpected ref: ${e}`);
|
|
729
|
-
return r.resolveRef(e, t);
|
|
730
|
-
}
|
|
731
|
-
function Y(r, e) {
|
|
732
|
-
if (r.canResolve)
|
|
733
|
-
return r.canResolve(e);
|
|
734
|
-
if (r.schema)
|
|
735
|
-
return Ie(e, r.schema);
|
|
736
|
-
throw new Error("Resolver is missing canResolve method and schema property");
|
|
737
|
-
}
|
|
738
|
-
function Ie(r, e) {
|
|
739
|
-
const t = [`${e}+`, `${e}:`];
|
|
740
|
-
for (const n of t)
|
|
741
|
-
if (r.startsWith(n))
|
|
742
|
-
return !0;
|
|
743
|
-
return !1;
|
|
744
|
-
}
|
|
745
|
-
function b(r) {
|
|
746
|
-
if (r.startsWith("http://") || r.startsWith("https://"))
|
|
747
|
-
return r;
|
|
748
|
-
const e = r.indexOf("+http://"), t = r.indexOf("+https://");
|
|
749
|
-
if (e !== -1)
|
|
750
|
-
return r.substring(e + 1);
|
|
751
|
-
if (t !== -1)
|
|
752
|
-
return r.substring(t + 1);
|
|
753
|
-
const n = r.indexOf(":");
|
|
754
|
-
if (n !== -1)
|
|
755
|
-
return r.substring(n + 1);
|
|
756
|
-
throw new Error(`Error getting URL from: ${r}, no valid prefix found`);
|
|
757
|
-
}
|
|
758
|
-
typeof window < "u" && (window.__debugResolve = async function(e, t, n) {
|
|
759
|
-
return await W(e, t, n);
|
|
760
|
-
});
|
|
761
|
-
function T(r) {
|
|
762
|
-
return async (e, ...t) => {
|
|
395
|
+
return J("Imported JSON via import():", n), { ok: !0, value: (r = e == null ? void 0 : e.default) != null ? r : e };
|
|
396
|
+
} catch (e) {
|
|
763
397
|
try {
|
|
764
|
-
const
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
398
|
+
const a = await import(
|
|
399
|
+
/* @vite-ignore */
|
|
400
|
+
n
|
|
401
|
+
);
|
|
402
|
+
return { ok: !0, value: (c = a == null ? void 0 : a.default) != null ? c : a };
|
|
403
|
+
} catch (a) {
|
|
404
|
+
return { ok: !1, error: a != null ? a : e };
|
|
768
405
|
}
|
|
769
|
-
};
|
|
770
|
-
}
|
|
771
|
-
function E(r) {
|
|
772
|
-
if (r === null || typeof r != "object") return r;
|
|
773
|
-
Object.freeze(r);
|
|
774
|
-
for (const e of Object.keys(r)) {
|
|
775
|
-
const t = r[e];
|
|
776
|
-
typeof t == "object" && t !== null && !Object.isFrozen(t) && E(t);
|
|
777
406
|
}
|
|
778
|
-
return r;
|
|
779
|
-
}
|
|
780
|
-
function Pe(r) {
|
|
781
|
-
return "structuredClone" in globalThis ? globalThis.structuredClone(r) : JSON.parse(JSON.stringify(r));
|
|
782
|
-
}
|
|
783
|
-
function Me(r) {
|
|
784
|
-
return r === null || typeof r != "object" ? r : Array.isArray(r) ? r.slice() : { ...r };
|
|
785
407
|
}
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
if (
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
throw new Error("Cannot replace with non-object source");
|
|
807
|
-
if (r === null || typeof r != "object")
|
|
808
|
-
throw new Error("Cannot replace non-object target");
|
|
809
|
-
if (Array.isArray(r)) {
|
|
810
|
-
if (!Array.isArray(e))
|
|
811
|
-
throw new Error("replaceObjectFields does not support mixing arrays and objects");
|
|
812
|
-
r.length = 0;
|
|
813
|
-
for (const t of e)
|
|
814
|
-
r.push(t);
|
|
815
|
-
return;
|
|
408
|
+
const k = S("efp:loader");
|
|
409
|
+
typeof A < "u" ? k("Initialized", { version: A[0], builtAt: A[1] }) : k("Initialized");
|
|
410
|
+
async function Z(n, r) {
|
|
411
|
+
k("Loading manifest:", n), typeof n == "string" && (n = { $ref: n }), n = await M(n, { fetchCallback: r == null ? void 0 : r.fetchCallback });
|
|
412
|
+
const c = await M(n.runtime, {
|
|
413
|
+
fetchCallback: r == null ? void 0 : r.fetchCallback
|
|
414
|
+
});
|
|
415
|
+
if (k("Resolved runtime URL:", c), typeof c != "string")
|
|
416
|
+
throw new Error("Resolved runtime is not a string ");
|
|
417
|
+
const e = await H(c);
|
|
418
|
+
return e.meta = { runtime: c }, e;
|
|
419
|
+
}
|
|
420
|
+
const K = new Proxy(
|
|
421
|
+
{},
|
|
422
|
+
{
|
|
423
|
+
get: (n, r) => async (...c) => {
|
|
424
|
+
const e = c[0], a = await Z(e), l = a[r];
|
|
425
|
+
if (typeof l != "function")
|
|
426
|
+
throw new Error(`API has no function named '${r}'`);
|
|
427
|
+
return l.apply(a, c);
|
|
816
428
|
}
|
|
817
|
-
for (const t of Object.keys(r))
|
|
818
|
-
t in e || delete r[t];
|
|
819
|
-
for (const t of Object.keys(e))
|
|
820
|
-
r[t] = e[t];
|
|
821
429
|
}
|
|
822
|
-
|
|
823
|
-
async function
|
|
824
|
-
|
|
825
|
-
for (const n of e)
|
|
826
|
-
await W(r, n, { ...t, mutate: !0 });
|
|
827
|
-
}
|
|
828
|
-
typeof window < "u" && (window.__debugMutateManifest = Be);
|
|
829
|
-
async function ze(r) {
|
|
830
|
-
const { makeOffline: e } = await import("./makeOffline-Dj-0o5_7.js");
|
|
831
|
-
return await e(r);
|
|
832
|
-
}
|
|
833
|
-
async function De(r) {
|
|
834
|
-
const { makeOfflineBundle: e } = await import("./makeOfflineBundle-D8tePWGI.js");
|
|
835
|
-
return await e(r);
|
|
836
|
-
}
|
|
837
|
-
async function Je(r, e) {
|
|
838
|
-
const { downloadOfflineZip: t } = await import("./downloadOfflineZip-CNz_lUGZ.js");
|
|
839
|
-
return await t(r, e);
|
|
840
|
-
}
|
|
841
|
-
async function Ze(r, e) {
|
|
842
|
-
const { saveOfflineZip: t } = await import("./saveOfflineZip.browser-BTQeRUY_.js");
|
|
843
|
-
return await t(r, e);
|
|
844
|
-
}
|
|
845
|
-
async function Ue(r) {
|
|
846
|
-
const { makeOffline: e } = await import("./makeOffline-Dj-0o5_7.js"), t = await e(r);
|
|
847
|
-
for await (const n of (await t).files)
|
|
848
|
-
"data" in n ? console.info(`🗳️ Put ${n.targetFilePath} <=`, n.data) : "url" in n && console.info(`🗳️ Download ${n.targetFilePath} <= ${n.url}`);
|
|
849
|
-
console.info("Offline data: ", t.manifest);
|
|
850
|
-
}
|
|
851
|
-
typeof window < "u" && (window.__debugDownloadOfflineZip = Je, window.__debugMakeOfflineBundle = De, window.__debugLogOfflineManifestFiles = Ue);
|
|
852
|
-
const J = globalThis.__efpLoaderBuildInfo;
|
|
853
|
-
J ? p("Initialized", { version: J[0], builtAt: J[1] }) : p("Initialized");
|
|
854
|
-
const Se = T("mount"), Ve = T("load"), Ge = T("initialize");
|
|
855
|
-
async function qe(r, e, ...t) {
|
|
856
|
-
return await T(r)(e, ...t);
|
|
430
|
+
);
|
|
431
|
+
async function V(n, ...r) {
|
|
432
|
+
return K.load(n, ...r);
|
|
857
433
|
}
|
|
858
434
|
export {
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
I as d,
|
|
865
|
-
Je as downloadOfflineZip,
|
|
866
|
-
Le as e,
|
|
867
|
-
Pe as f,
|
|
868
|
-
re as g,
|
|
869
|
-
je as h,
|
|
870
|
-
$e as i,
|
|
871
|
-
Ge as initialize,
|
|
872
|
-
Ne as j,
|
|
873
|
-
Ee as k,
|
|
874
|
-
de as l,
|
|
875
|
-
Ve as load,
|
|
876
|
-
ze as makeOffline,
|
|
877
|
-
De as makeOfflineBundle,
|
|
878
|
-
Se as mount,
|
|
879
|
-
Be as mutateManifest,
|
|
880
|
-
b as p,
|
|
881
|
-
_e as r,
|
|
882
|
-
W as resolve,
|
|
883
|
-
Me as s,
|
|
884
|
-
Ze as saveOfflineZip
|
|
435
|
+
S as d,
|
|
436
|
+
K as default,
|
|
437
|
+
P as g,
|
|
438
|
+
V as load,
|
|
439
|
+
Z as loadApi
|
|
885
440
|
};
|
|
886
441
|
//# sourceMappingURL=bundle.js.map
|