@expofp/loader 1.0.78 → 1.0.91
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 +236 -768
- package/dist/bundle/bundle.js.map +1 -1
- package/dist/bundle/fetch-retry.umd-g1itNdNw.js +115 -0
- package/dist/bundle/fetch-retry.umd-g1itNdNw.js.map +1 -0
- 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/fetch.d.ts +1 -0
- package/dist/esm/fetch.js +14 -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 -57
- package/dist/esm/loadScript.d.ts +0 -16
- package/dist/esm/loadScript.js +0 -167
- 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,190 +1,189 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return a.long ? l(i) : y(i);
|
|
1
|
+
const A = ["1.0.91", "2025-12-23T09:18:22.856Z"];
|
|
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 s
|
|
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
|
|
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 C(...
|
|
101
|
+
e.selectColor = c;
|
|
102
|
+
function e(t) {
|
|
103
|
+
let o, u = null, f, w;
|
|
104
|
+
function C(...h) {
|
|
106
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 C.namespace =
|
|
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
|
|
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
|
-
r.formatArgs =
|
|
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",
|
|
@@ -264,710 +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
|
-
function
|
|
298
|
-
let
|
|
296
|
+
function l() {
|
|
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__ */ x(se), ae = I("efp:loader");
|
|
324
|
-
function b(...e) {
|
|
325
|
-
ae(...e);
|
|
319
|
+
})(b, b.exports)), b.exports;
|
|
326
320
|
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
const
|
|
331
|
-
|
|
332
|
-
resolveRef: async (e) => ie(e),
|
|
333
|
-
offlineFunc: "localizeRef"
|
|
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);
|
|
334
326
|
};
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
} catch {
|
|
345
|
-
b("importJson: dynamic import not available, falling back to fetch"), A = !0;
|
|
346
|
-
}
|
|
347
|
-
let t;
|
|
348
|
-
return !A && !r.forceFetch ? (t = (await Z(e)).default, (o = r.importCallback) == null || o.call(r, e, "json")) : (b("importJson: fetch", e), t = await le(e, r.refCache, r.signal || null), (f = r.importCallback) == null || f.call(r, e, "json")), fe.has(t) || O(t), t;
|
|
349
|
-
}
|
|
350
|
-
async function le(e, r, t) {
|
|
351
|
-
const n = "__loadJson__" + e;
|
|
352
|
-
if (r.has(n))
|
|
353
|
-
return r.get(n);
|
|
354
|
-
const o = (async function() {
|
|
355
|
-
const s = await fetch(e, { signal: t });
|
|
356
|
-
if (!s.ok)
|
|
357
|
-
throw new Error(`Failed to fetch JSON from ${e}`);
|
|
358
|
-
return await s.json();
|
|
359
|
-
})();
|
|
360
|
-
return r.set(n, o), o;
|
|
361
|
-
}
|
|
362
|
-
async function M(e, r, t) {
|
|
363
|
-
if (r.has(e))
|
|
364
|
-
return r.get(e);
|
|
365
|
-
const n = t().then((o) => (O(o), o));
|
|
366
|
-
return r.set(e, n), n;
|
|
367
|
-
}
|
|
368
|
-
const ue = {
|
|
369
|
-
schema: "bundle-assets",
|
|
370
|
-
async resolveRef(e, r) {
|
|
371
|
-
b("bundleAssetsResolver resolveRef:", e);
|
|
372
|
-
const t = $(e);
|
|
373
|
-
return M(e, r.refCache, async () => {
|
|
374
|
-
const n = await j(t, r), o = t.substring(0, t.lastIndexOf("/") + 1);
|
|
375
|
-
return n.map((s) => ({
|
|
376
|
-
$ref: `asset+${o}${s}`
|
|
377
|
-
}));
|
|
378
|
-
});
|
|
379
|
-
},
|
|
380
|
-
offlineFunc: "localizeRef"
|
|
381
|
-
}, de = I("efp:loader:resolver:cssTextAsset"), he = "css-text-asset", we = {
|
|
382
|
-
schema: he,
|
|
383
|
-
resolveRef(e) {
|
|
384
|
-
return de("cssTextAssetResolver resolveRef:", e), Promise.resolve($(e));
|
|
385
|
-
},
|
|
386
|
-
offlineFunc: async function* (e, r) {
|
|
387
|
-
const { offlineFunc: t } = await import("./cssTextAssetResolver.offlineFunc-CWvHnYni.js");
|
|
388
|
-
return yield* t(e, r);
|
|
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 });
|
|
389
336
|
}
|
|
390
|
-
}, ye = "https://efp-runtime.expofp.com/", pe = {
|
|
391
|
-
schema: "expo-runtime-branch",
|
|
392
|
-
async resolveRef(e, r) {
|
|
393
|
-
b("expoRuntimeBranchResolver resolveRef:", e);
|
|
394
|
-
const t = $(e), n = `${ye}branches/${t}.json`;
|
|
395
|
-
return M(e, r.refCache, async () => {
|
|
396
|
-
const { release: o } = await j(n, r);
|
|
397
|
-
return {
|
|
398
|
-
$ref: `expo-runtime+https://efp-runtime.expofp.com/releases/${o}/`
|
|
399
|
-
};
|
|
400
|
-
});
|
|
401
|
-
},
|
|
402
|
-
offlineFunc: "resolveRef"
|
|
403
|
-
}, me = {
|
|
404
|
-
schema: "expo-runtime-get-branch",
|
|
405
|
-
async resolveRef(e, r) {
|
|
406
|
-
b("expoRuntimeGetBranchResolver resolveRef:", e);
|
|
407
|
-
const n = `https://${$(e)}.expofp.com/get-branch`;
|
|
408
|
-
return j(n, r);
|
|
409
|
-
},
|
|
410
|
-
offlineFunc: "resolveRef"
|
|
411
|
-
}, ve = {
|
|
412
|
-
schema: "expo-runtime",
|
|
413
|
-
// canResolve(ref: string) {
|
|
414
|
-
// return canResolveRefSchema(ref, SCHEMA);
|
|
415
|
-
// },
|
|
416
|
-
async resolveRef(e) {
|
|
417
|
-
b("expoRuntimeResolver resolveRef:", e);
|
|
418
|
-
const r = $(e), t = {
|
|
419
|
-
entry: { $ref: `asset+${r}expofp.js` },
|
|
420
|
-
assets: { $ref: `bundle-assets+${r}bundle.json` }
|
|
421
|
-
};
|
|
422
|
-
return O(t), t;
|
|
423
|
-
},
|
|
424
|
-
// async *makeOfflineRef(ref: string) {
|
|
425
|
-
// log('expoRuntimeResolver makeOfflineRef:', ref);
|
|
426
|
-
// if (!this.canResolve(ref)) throw new Error(`Unexpected ref: ${ref}`);
|
|
427
|
-
// const url = parseRefValue(ref);
|
|
428
|
-
// const refData = deepClone(await this.resolveRef(ref));
|
|
429
|
-
// const targetFilePath = makeUniqueJsonTargetPathFromString(url, SCHEMA_PREFIX_BASE);
|
|
430
|
-
// const data = yield* makeOfflineInternal(refData);
|
|
431
|
-
// yield { data: data, targetFilePath };
|
|
432
|
-
// return { $ref: targetFilePath, [STOP_RESOLVING]: true };
|
|
433
|
-
// },
|
|
434
|
-
// async *makeOfflineRef2(ref: string) {
|
|
435
|
-
// const refData = deepClone(await this.resolveRef(ref));
|
|
436
|
-
// const targetFilePath = makeUniqueJsonTargetPathFromString(ref);
|
|
437
|
-
// const data = yield* makeOfflineInternal(refData);
|
|
438
|
-
// yield { data, targetFilePath };
|
|
439
|
-
// return targetFilePath;
|
|
440
|
-
// },
|
|
441
|
-
offlineFunc: "resolveRef"
|
|
442
|
-
}, Ce = {
|
|
443
|
-
canResolve(e) {
|
|
444
|
-
return e.startsWith("http://") || e.startsWith("https://") || e.startsWith("./");
|
|
445
|
-
},
|
|
446
|
-
resolveRef(e, r) {
|
|
447
|
-
if (b("httpResolver resolveRef:", e), !this.canResolve(e)) throw new Error(`Unexpected ref in httpResolver: ${e}`);
|
|
448
|
-
return j(e, r);
|
|
449
|
-
},
|
|
450
|
-
offlineFunc: "resolveRef"
|
|
451
|
-
};
|
|
452
|
-
var D = { exports: {} }, be = D.exports, S;
|
|
453
|
-
function ge() {
|
|
454
|
-
return S || (S = 1, (function(e, r) {
|
|
455
|
-
(function(t, n) {
|
|
456
|
-
e.exports = n();
|
|
457
|
-
})(be, (function() {
|
|
458
|
-
var t = function(f, s) {
|
|
459
|
-
if (s = s || {}, typeof f != "function")
|
|
460
|
-
throw new o("fetch must be a function");
|
|
461
|
-
if (typeof s != "object")
|
|
462
|
-
throw new o("defaults must be an object");
|
|
463
|
-
if (s.retries !== void 0 && !n(s.retries))
|
|
464
|
-
throw new o("retries must be a positive integer");
|
|
465
|
-
if (s.retryDelay !== void 0 && !n(s.retryDelay) && typeof s.retryDelay != "function")
|
|
466
|
-
throw new o("retryDelay must be a positive integer or a function returning a positive integer");
|
|
467
|
-
if (s.retryOn !== void 0 && !Array.isArray(s.retryOn) && typeof s.retryOn != "function")
|
|
468
|
-
throw new o("retryOn property expects an array or function");
|
|
469
|
-
var y = {
|
|
470
|
-
retries: 3,
|
|
471
|
-
retryDelay: 1e3,
|
|
472
|
-
retryOn: []
|
|
473
|
-
};
|
|
474
|
-
return s = Object.assign(y, s), function(d, i) {
|
|
475
|
-
var a = s.retries, c = s.retryDelay, u = s.retryOn;
|
|
476
|
-
if (i && i.retries !== void 0)
|
|
477
|
-
if (n(i.retries))
|
|
478
|
-
a = i.retries;
|
|
479
|
-
else
|
|
480
|
-
throw new o("retries must be a positive integer");
|
|
481
|
-
if (i && i.retryDelay !== void 0)
|
|
482
|
-
if (n(i.retryDelay) || typeof i.retryDelay == "function")
|
|
483
|
-
c = i.retryDelay;
|
|
484
|
-
else
|
|
485
|
-
throw new o("retryDelay must be a positive integer or a function returning a positive integer");
|
|
486
|
-
if (i && i.retryOn)
|
|
487
|
-
if (Array.isArray(i.retryOn) || typeof i.retryOn == "function")
|
|
488
|
-
u = i.retryOn;
|
|
489
|
-
else
|
|
490
|
-
throw new o("retryOn property expects an array or function");
|
|
491
|
-
return new Promise(function(h, g) {
|
|
492
|
-
var C = function(w) {
|
|
493
|
-
var F = typeof Request < "u" && d instanceof Request ? d.clone() : d;
|
|
494
|
-
f(F, i).then(function(m) {
|
|
495
|
-
if (Array.isArray(u) && u.indexOf(m.status) === -1)
|
|
496
|
-
h(m);
|
|
497
|
-
else if (typeof u == "function")
|
|
498
|
-
try {
|
|
499
|
-
return Promise.resolve(u(w, null, m)).then(function(v) {
|
|
500
|
-
v ? p(w, null, m) : h(m);
|
|
501
|
-
}).catch(g);
|
|
502
|
-
} catch (v) {
|
|
503
|
-
g(v);
|
|
504
|
-
}
|
|
505
|
-
else
|
|
506
|
-
w < a ? p(w, null, m) : h(m);
|
|
507
|
-
}).catch(function(m) {
|
|
508
|
-
if (typeof u == "function")
|
|
509
|
-
try {
|
|
510
|
-
Promise.resolve(u(w, m, null)).then(function(v) {
|
|
511
|
-
v ? p(w, m, null) : g(m);
|
|
512
|
-
}).catch(function(v) {
|
|
513
|
-
g(v);
|
|
514
|
-
});
|
|
515
|
-
} catch (v) {
|
|
516
|
-
g(v);
|
|
517
|
-
}
|
|
518
|
-
else w < a ? p(w, m, null) : g(m);
|
|
519
|
-
});
|
|
520
|
-
};
|
|
521
|
-
function p(w, F, m) {
|
|
522
|
-
var v = typeof c == "function" ? c(w, F, m) : c;
|
|
523
|
-
setTimeout(function() {
|
|
524
|
-
C(++w);
|
|
525
|
-
}, v);
|
|
526
|
-
}
|
|
527
|
-
C(0);
|
|
528
|
-
});
|
|
529
|
-
};
|
|
530
|
-
};
|
|
531
|
-
function n(f) {
|
|
532
|
-
return Number.isInteger(f) && f >= 0;
|
|
533
|
-
}
|
|
534
|
-
function o(f) {
|
|
535
|
-
this.name = "ArgumentError", this.message = f;
|
|
536
|
-
}
|
|
537
|
-
return t;
|
|
538
|
-
}));
|
|
539
|
-
})(D)), D.exports;
|
|
540
337
|
}
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
const
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
return typeof window < "u" && typeof document < "u";
|
|
561
|
-
}
|
|
562
|
-
async function Se(e, r) {
|
|
563
|
-
Ee("Loading", e), G() ? await H(e, r) : await K(e, r);
|
|
564
|
-
}
|
|
565
|
-
function H(e, r) {
|
|
566
|
-
return new Promise((t, n) => {
|
|
567
|
-
const o = document.createElement("script");
|
|
568
|
-
o.src = e, o.async = !0;
|
|
569
|
-
const f = () => {
|
|
570
|
-
o.onload = null, o.onerror = null, o.remove();
|
|
571
|
-
}, s = () => {
|
|
572
|
-
f(), n(new Error("Script load aborted"));
|
|
573
|
-
};
|
|
574
|
-
if (r != null && r.aborted) {
|
|
575
|
-
f(), n(new Error("Script load aborted"));
|
|
576
|
-
return;
|
|
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;
|
|
577
357
|
}
|
|
578
|
-
|
|
579
|
-
r == null || r.removeEventListener("abort", s), f(), t();
|
|
580
|
-
}, o.onerror = () => {
|
|
581
|
-
r == null || r.removeEventListener("abort", s), f(), n(new Error(`Failed to load script: ${e}`));
|
|
582
|
-
}, document.head.appendChild(o);
|
|
583
|
-
});
|
|
584
|
-
}
|
|
585
|
-
async function K(e, r) {
|
|
586
|
-
if (r != null && r.aborted)
|
|
587
|
-
throw new Error("Script load aborted");
|
|
588
|
-
let t;
|
|
589
|
-
try {
|
|
590
|
-
t = await $e(e, { signal: r });
|
|
591
|
-
} catch (s) {
|
|
592
|
-
throw s && s.name === "AbortError" ? new Error("Script load aborted") : s;
|
|
358
|
+
return a;
|
|
593
359
|
}
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
try {
|
|
609
|
-
(0, eval)(n);
|
|
610
|
-
} finally {
|
|
611
|
-
f === void 0 ? delete o.window : o.window = f;
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
function V(e, r, t, n, o) {
|
|
615
|
-
return new Promise((f, s) => {
|
|
616
|
-
const y = Date.now(), l = () => {
|
|
617
|
-
s(new Error("Wait for global aborted"));
|
|
618
|
-
};
|
|
619
|
-
if (o != null && o.aborted) {
|
|
620
|
-
s(new Error("Wait for global aborted"));
|
|
621
|
-
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"
|
|
622
374
|
}
|
|
623
|
-
o == null || o.addEventListener("abort", l, { once: !0 });
|
|
624
|
-
const d = () => {
|
|
625
|
-
if (o != null && o.aborted)
|
|
626
|
-
return s(new Error("Wait for global aborted"));
|
|
627
|
-
try {
|
|
628
|
-
if (e() !== void 0)
|
|
629
|
-
return o == null || o.removeEventListener("abort", l), f();
|
|
630
|
-
} catch {
|
|
631
|
-
}
|
|
632
|
-
if (Date.now() - y >= t)
|
|
633
|
-
return o == null || o.removeEventListener("abort", l), s(new Error(`Timed out after ${t} ms waiting for global "${r}"`));
|
|
634
|
-
setTimeout(d, n);
|
|
635
|
-
};
|
|
636
|
-
d();
|
|
637
375
|
});
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
await k(o, {
|
|
649
|
-
globalVar: "__fpDataVersion",
|
|
650
|
-
timeoutMs: 3e4,
|
|
651
|
-
signal: t
|
|
652
|
-
}), (p = r.importCallback) == null || p.call(r, o, "script");
|
|
653
|
-
} catch {
|
|
654
|
-
console.warn(`Could not load version.js at ${o}, proceeding without it`);
|
|
655
|
-
}
|
|
656
|
-
const f = globalThis.__fpDataVersion || (+/* @__PURE__ */ new Date()).toString(), s = `${n}data.js?v=${f}`, y = k(s, {
|
|
657
|
-
globalVar: "__data",
|
|
658
|
-
signal: t
|
|
659
|
-
});
|
|
660
|
-
(w = r.importCallback) == null || w.call(r, s, "script");
|
|
661
|
-
const l = `${n}wf.data.js?v=${f}`, d = k(l, {
|
|
662
|
-
globalVar: "__wfData",
|
|
663
|
-
signal: t
|
|
664
|
-
}).then(() => {
|
|
665
|
-
var R;
|
|
666
|
-
(R = r.importCallback) == null || R.call(r, l, "script");
|
|
667
|
-
}).catch(() => {
|
|
668
|
-
console.warn(`Could not load wf.data.js at ${l}, proceeding without it`);
|
|
669
|
-
});
|
|
670
|
-
delete globalThis.__fpLayers;
|
|
671
|
-
const i = `${n}fp.svg.js?v=${f}`, a = k(i, {
|
|
672
|
-
globalVar: "__fp",
|
|
673
|
-
signal: t
|
|
674
|
-
});
|
|
675
|
-
(F = r.importCallback) == null || F.call(r, i, "script"), await Promise.all([y, d, a]);
|
|
676
|
-
const u = ((m = globalThis.__fpLayers) != null ? m : []).map((R) => `fp.svg.${R.name}.js`);
|
|
677
|
-
for (const R of u) {
|
|
678
|
-
const E = `${n}${R}?v=${f}`;
|
|
679
|
-
(v = r.importCallback) == null || v.call(r, E, "script");
|
|
680
|
-
}
|
|
681
|
-
const h = globalThis.__data || {};
|
|
682
|
-
return { ...["data.js", "wf.data.js", "fp.svg.js", ...u].reduce((R, E) => (R[E] = { $ref: `asset+${n}${E}?v=${f}` }, R), {}), ..._e(n, h) };
|
|
683
|
-
});
|
|
684
|
-
},
|
|
685
|
-
offlineFunc: "resolveRef"
|
|
686
|
-
};
|
|
687
|
-
function _e(e, r) {
|
|
688
|
-
var o, f;
|
|
689
|
-
const t = /* @__PURE__ */ new Set();
|
|
690
|
-
function n(s) {
|
|
691
|
-
typeof s == "string" && s.length > 0 && t.add(s);
|
|
692
|
-
}
|
|
693
|
-
return n(r.logo), (o = r.exhibitors) == null || o.forEach((s) => {
|
|
694
|
-
var y;
|
|
695
|
-
if (n(s.logo), s.logo) {
|
|
696
|
-
const l = s.logo.lastIndexOf(".");
|
|
697
|
-
if (l !== -1) {
|
|
698
|
-
const d = s.logo.substring(0, l), i = s.logo.substring(l);
|
|
699
|
-
n(`${d}__small${i}`), n(`${d}__tiny${i}`);
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
(y = s.gallery) == null || y.forEach((l) => n(l));
|
|
703
|
-
}), (f = r.events) == null || f.forEach((s) => {
|
|
704
|
-
var y;
|
|
705
|
-
n(s.logoFile), (y = s.speakers) == null || y.forEach((l) => {
|
|
706
|
-
n(l.photoFile);
|
|
707
|
-
});
|
|
708
|
-
}), Array.from(t).reduce((s, y) => (s[y] = { $ref: `asset+${e}${y}` }, s), {});
|
|
709
|
-
}
|
|
710
|
-
const Ae = {
|
|
711
|
-
schema: "legacy-data",
|
|
712
|
-
resolveRef(e, r) {
|
|
713
|
-
return b("legacyDataResolver resolveRef:", e), M(e, r.refCache, async () => {
|
|
714
|
-
const t = $(e);
|
|
715
|
-
return {
|
|
716
|
-
_to_remove_for_offline_to_work_dataUrlBase: t,
|
|
717
|
-
legacyAssetUrls: { $ref: `legacy-asset-urls+${t}` }
|
|
718
|
-
};
|
|
719
|
-
});
|
|
720
|
-
},
|
|
721
|
-
offlineFunc: "resolveRef"
|
|
722
|
-
}, ke = I("efp:loader:resolver:legacyDataUrlBase"), De = "legacy-data-url-base", Ie = {
|
|
723
|
-
schema: De,
|
|
724
|
-
resolveRef(e) {
|
|
725
|
-
return ke("legacyDataResolver resolveRef:", e), Promise.resolve($(e));
|
|
726
|
-
},
|
|
727
|
-
offlineFunc: async function* (e, r) {
|
|
728
|
-
const { offlineFunc: t } = await import("./legacyDataUrlBaseResolver.offlineFunc-DPaSp_zV.js");
|
|
729
|
-
return yield* t(e, r);
|
|
730
|
-
}
|
|
731
|
-
}, je = [
|
|
732
|
-
Ce,
|
|
733
|
-
ue,
|
|
734
|
-
ce,
|
|
735
|
-
ve,
|
|
736
|
-
pe,
|
|
737
|
-
me,
|
|
738
|
-
we,
|
|
739
|
-
Ae,
|
|
740
|
-
Oe,
|
|
741
|
-
Ie
|
|
742
|
-
], Me = /* @__PURE__ */ new Map();
|
|
743
|
-
async function N(e, r, t) {
|
|
744
|
-
b("Resolving:", r, "of", e, t);
|
|
745
|
-
const n = {
|
|
746
|
-
importCallback: t == null ? void 0 : t.importCallback,
|
|
747
|
-
refCache: (t == null ? void 0 : t.refCache) || Me,
|
|
748
|
-
forceFetch: !!(t != null && t.forceFetch),
|
|
749
|
-
signal: (t == null ? void 0 : t.signal) || null,
|
|
750
|
-
preResolvedRefs: t == null ? void 0 : t.preResolvedRefs
|
|
751
|
-
};
|
|
752
|
-
if (typeof r != "string")
|
|
753
|
-
throw new Error(`Invalid JSON Pointer (not a string): ${r}`);
|
|
754
|
-
if (!r.startsWith("/"))
|
|
755
|
-
throw new Error(`Invalid JSON Pointer: ${r}`);
|
|
756
|
-
if (r.length > 1 && r.endsWith("/"))
|
|
757
|
-
throw new Error(`Invalid JSON Pointer: ${r}`);
|
|
758
|
-
let o;
|
|
759
|
-
if (r === "/" ? o = [] : o = r.substring(1).split("/"), o.some((f) => f.length === 0))
|
|
760
|
-
throw new Error(`Invalid JSON Pointer (empty part): ${r}`);
|
|
761
|
-
if (t != null && t.mutate) {
|
|
762
|
-
o.unshift("root");
|
|
763
|
-
const f = { root: e };
|
|
764
|
-
await Q(f, o, 0, n), Ne(e, f.root);
|
|
765
|
-
} else
|
|
766
|
-
return await X(e, o, 0, n);
|
|
767
|
-
}
|
|
768
|
-
async function Q(e, r, t, n) {
|
|
769
|
-
const o = r[t];
|
|
770
|
-
if (await Le(e, o, n), t != r.length - 1) {
|
|
771
|
-
if (e[o] === null || typeof e[o] != "object")
|
|
772
|
-
throw new Error(
|
|
773
|
-
`Cannot resolve path, encountered non-object at part '${r.slice(1).join("/")}', index ${t - 1}'`
|
|
774
|
-
);
|
|
775
|
-
return await Q(e[o], r, 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" };
|
|
776
386
|
}
|
|
777
387
|
}
|
|
778
|
-
async function
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
async function X(e, r, t, n) {
|
|
785
|
-
if (t === r.length)
|
|
786
|
-
return await P(e, n);
|
|
787
|
-
if (e === null || typeof e != "object")
|
|
788
|
-
throw new Error(
|
|
789
|
-
`Cannot resolve path, encountered non-object at part '${r.join("/")}', index ${t}'`
|
|
388
|
+
async function G(n) {
|
|
389
|
+
var r, c;
|
|
390
|
+
try {
|
|
391
|
+
const e = await import(
|
|
392
|
+
/* @vite-ignore */
|
|
393
|
+
n
|
|
790
394
|
);
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
return f === void 0 && (f = (await P(e, n))[o]), await X(f, r, t + 1, n);
|
|
794
|
-
}
|
|
795
|
-
async function P(e, r) {
|
|
796
|
-
b("resolveObject:", e);
|
|
797
|
-
let t = e;
|
|
798
|
-
do {
|
|
799
|
-
if (typeof t != "object" || t === null || !("$ref" in t))
|
|
800
|
-
return t;
|
|
801
|
-
const n = je.filter((f) => Y(f, t.$ref));
|
|
802
|
-
if (n.length === 0) {
|
|
803
|
-
if (t.$ref)
|
|
804
|
-
throw new Error(`No resolver found for ref: ${t.$ref}`);
|
|
805
|
-
return O(t), t;
|
|
806
|
-
}
|
|
807
|
-
if (n.length > 1)
|
|
808
|
-
throw new Error(`Multiple resolvers can resolve ref: ${t.$ref}`);
|
|
809
|
-
const o = await Te(n[0], t.$ref, r);
|
|
810
|
-
t = Pe(o, t);
|
|
811
|
-
} while (!0);
|
|
812
|
-
}
|
|
813
|
-
async function Te(e, r, t) {
|
|
814
|
-
if (!Y(e, r))
|
|
815
|
-
throw new Error(`Unexpected ref: ${r}`);
|
|
816
|
-
return e.resolveRef(r, t);
|
|
817
|
-
}
|
|
818
|
-
function Y(e, r) {
|
|
819
|
-
if (e.canResolve)
|
|
820
|
-
return e.canResolve(r);
|
|
821
|
-
if (e.schema)
|
|
822
|
-
return Be(r, e.schema);
|
|
823
|
-
throw new Error("Resolver is missing canResolve method and schema property");
|
|
824
|
-
}
|
|
825
|
-
function Be(e, r) {
|
|
826
|
-
const t = [`${r}+`, `${r}:`];
|
|
827
|
-
for (const n of t)
|
|
828
|
-
if (e.startsWith(n))
|
|
829
|
-
return !0;
|
|
830
|
-
return !1;
|
|
831
|
-
}
|
|
832
|
-
function $(e) {
|
|
833
|
-
if (e.startsWith("http://") || e.startsWith("https://"))
|
|
834
|
-
return e;
|
|
835
|
-
const r = e.indexOf("+http://"), t = e.indexOf("+https://");
|
|
836
|
-
if (r !== -1)
|
|
837
|
-
return e.substring(r + 1);
|
|
838
|
-
if (t !== -1)
|
|
839
|
-
return e.substring(t + 1);
|
|
840
|
-
const n = e.indexOf(":");
|
|
841
|
-
if (n !== -1)
|
|
842
|
-
return e.substring(n + 1);
|
|
843
|
-
throw new Error(`Error getting URL from: ${e}, no valid prefix found`);
|
|
844
|
-
}
|
|
845
|
-
typeof window < "u" && (window.__debugResolve = async function(r, t, n) {
|
|
846
|
-
return await N(r, t, n);
|
|
847
|
-
});
|
|
848
|
-
function L(e) {
|
|
849
|
-
return async (r, ...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) {
|
|
850
397
|
try {
|
|
851
|
-
const
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
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 };
|
|
855
405
|
}
|
|
856
|
-
};
|
|
857
|
-
}
|
|
858
|
-
function O(e) {
|
|
859
|
-
if (e === null || typeof e != "object") return e;
|
|
860
|
-
Object.freeze(e);
|
|
861
|
-
for (const r of Object.keys(e)) {
|
|
862
|
-
const t = e[r];
|
|
863
|
-
typeof t == "object" && t !== null && !Object.isFrozen(t) && O(t);
|
|
864
406
|
}
|
|
865
|
-
return e;
|
|
866
|
-
}
|
|
867
|
-
function Ve(e) {
|
|
868
|
-
return "structuredClone" in globalThis ? globalThis.structuredClone(e) : JSON.parse(JSON.stringify(e));
|
|
869
|
-
}
|
|
870
|
-
function Je(e) {
|
|
871
|
-
return e === null || typeof e != "object" ? e : Array.isArray(e) ? e.slice() : { ...e };
|
|
872
407
|
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
if (
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
throw new Error("Cannot replace with non-object source");
|
|
894
|
-
if (e === null || typeof e != "object")
|
|
895
|
-
throw new Error("Cannot replace non-object target");
|
|
896
|
-
if (Array.isArray(e)) {
|
|
897
|
-
if (!Array.isArray(r))
|
|
898
|
-
throw new Error("replaceObjectFields does not support mixing arrays and objects");
|
|
899
|
-
e.length = 0;
|
|
900
|
-
for (const t of r)
|
|
901
|
-
e.push(t);
|
|
902
|
-
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);
|
|
903
428
|
}
|
|
904
|
-
for (const t of Object.keys(e))
|
|
905
|
-
t in r || delete e[t];
|
|
906
|
-
for (const t of Object.keys(r))
|
|
907
|
-
e[t] = r[t];
|
|
908
429
|
}
|
|
909
|
-
|
|
910
|
-
async function
|
|
911
|
-
|
|
912
|
-
for (const n of r)
|
|
913
|
-
await N(e, n, { ...t, mutate: !0 });
|
|
914
|
-
}
|
|
915
|
-
typeof window < "u" && (window.__debugMutateManifest = Ue);
|
|
916
|
-
async function xe(e) {
|
|
917
|
-
const { makeOffline: r } = await import("./makeOffline-Dj-0o5_7.js");
|
|
918
|
-
return await r(e);
|
|
919
|
-
}
|
|
920
|
-
async function We(e) {
|
|
921
|
-
const { makeOfflineBundle: r } = await import("./makeOfflineBundle-D8tePWGI.js");
|
|
922
|
-
return await r(e);
|
|
923
|
-
}
|
|
924
|
-
async function ze(e, r) {
|
|
925
|
-
const { downloadOfflineZip: t } = await import("./downloadOfflineZip-CNz_lUGZ.js");
|
|
926
|
-
return await t(e, r);
|
|
927
|
-
}
|
|
928
|
-
async function Ge(e, r) {
|
|
929
|
-
const { saveOfflineZip: t } = await import("./saveOfflineZip.browser-BTQeRUY_.js");
|
|
930
|
-
return await t(e, r);
|
|
931
|
-
}
|
|
932
|
-
async function qe(e) {
|
|
933
|
-
const { makeOffline: r } = await import("./makeOffline-Dj-0o5_7.js"), t = await r(e);
|
|
934
|
-
for await (const n of (await t).files)
|
|
935
|
-
"data" in n ? console.info(`🗳️ Put ${n.targetFilePath} <=`, n.data) : "url" in n && console.info(`🗳️ Download ${n.targetFilePath} <= ${n.url}`);
|
|
936
|
-
console.info("Offline data: ", t.manifest);
|
|
937
|
-
}
|
|
938
|
-
typeof window < "u" && (window.__debugDownloadOfflineZip = ze, window.__debugMakeOfflineBundle = We, window.__debugLogOfflineManifestFiles = qe);
|
|
939
|
-
const J = globalThis.__efpLoaderBuildInfo;
|
|
940
|
-
J ? b("Initialized", { version: J[0], builtAt: J[1] }) : b("Initialized");
|
|
941
|
-
const He = L("mount"), Ke = L("load"), Qe = L("initialize");
|
|
942
|
-
async function Xe(e, r, ...t) {
|
|
943
|
-
return await L(e)(r, ...t);
|
|
430
|
+
);
|
|
431
|
+
async function V(n, ...r) {
|
|
432
|
+
return K.load(n, ...r);
|
|
944
433
|
}
|
|
945
434
|
export {
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
I as d,
|
|
952
|
-
ze as downloadOfflineZip,
|
|
953
|
-
Pe as e,
|
|
954
|
-
Ve as f,
|
|
955
|
-
x as g,
|
|
956
|
-
Te as h,
|
|
957
|
-
ke as i,
|
|
958
|
-
Qe as initialize,
|
|
959
|
-
Se as j,
|
|
960
|
-
De as k,
|
|
961
|
-
de as l,
|
|
962
|
-
Ke as load,
|
|
963
|
-
xe as makeOffline,
|
|
964
|
-
We as makeOfflineBundle,
|
|
965
|
-
He as mount,
|
|
966
|
-
Ue as mutateManifest,
|
|
967
|
-
$ as p,
|
|
968
|
-
je as r,
|
|
969
|
-
N as resolve,
|
|
970
|
-
Je as s,
|
|
971
|
-
Ge as saveOfflineZip
|
|
435
|
+
S as d,
|
|
436
|
+
K as default,
|
|
437
|
+
P as g,
|
|
438
|
+
V as load,
|
|
439
|
+
Z as loadApi
|
|
972
440
|
};
|
|
973
441
|
//# sourceMappingURL=bundle.js.map
|