@vizhub/runtime 4.1.0 → 4.3.0
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/README.md +20 -3
- package/dist/build/build.d.ts.map +1 -1
- package/dist/build-BT6ouBQg.js +1216 -0
- package/dist/build-BT6ouBQg.js.map +1 -0
- package/dist/build-Dh4OViu-.cjs +317 -0
- package/dist/build-Dh4OViu-.cjs.map +1 -0
- package/dist/common/runtimeErrorHandling.d.ts +9 -0
- package/dist/common/runtimeErrorHandling.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +111 -106
- package/dist/index.js.map +1 -1
- package/dist/orchestration/createRuntime.d.ts +2 -1
- package/dist/orchestration/createRuntime.d.ts.map +1 -1
- package/dist/orchestration/types.d.ts +4 -0
- package/dist/orchestration/types.d.ts.map +1 -1
- package/dist/orchestration/worker.d.ts.map +1 -1
- package/dist/test/extractEntryPoints.test.d.ts +2 -0
- package/dist/test/extractEntryPoints.test.d.ts.map +1 -0
- package/dist/test/extractEntryPointsEdgeCases.test.d.ts +2 -0
- package/dist/test/extractEntryPointsEdgeCases.test.d.ts.map +1 -0
- package/dist/test/fixtures/v3/basicIndexJSWithViz.d.ts +4 -0
- package/dist/test/fixtures/v3/basicIndexJSWithViz.d.ts.map +1 -0
- package/dist/test/fixtures/v3/index.d.ts +1 -0
- package/dist/test/fixtures/v3/index.d.ts.map +1 -1
- package/dist/test/fixtures/v3/svelte.d.ts.map +1 -1
- package/dist/test/fixtures/v4/index.d.ts +1 -0
- package/dist/test/fixtures/v4/index.d.ts.map +1 -1
- package/dist/test/fixtures/v4/jsInlineScriptModule.d.ts +5 -0
- package/dist/test/fixtures/v4/jsInlineScriptModule.d.ts.map +1 -0
- package/dist/test/runtimeErrorHandling.test.d.ts +2 -0
- package/dist/test/runtimeErrorHandling.test.d.ts.map +1 -0
- package/dist/test/runtimeErrorHandlingAllVersions.test.d.ts +2 -0
- package/dist/test/runtimeErrorHandlingAllVersions.test.d.ts.map +1 -0
- package/dist/test/runtimeErrorHandlingIntegration.test.d.ts +2 -0
- package/dist/test/runtimeErrorHandlingIntegration.test.d.ts.map +1 -0
- package/dist/test/updateHTML.test.d.ts +2 -0
- package/dist/test/updateHTML.test.d.ts.map +1 -0
- package/dist/test/v3BuildIntegrationViz.test.d.ts +2 -0
- package/dist/test/v3BuildIntegrationViz.test.d.ts.map +1 -0
- package/dist/test/v4Build.test.d.ts +2 -0
- package/dist/test/v4Build.test.d.ts.map +1 -0
- package/dist/test/v4BuildIntegration.test.d.ts +2 -0
- package/dist/test/v4BuildIntegration.test.d.ts.map +1 -0
- package/dist/test/v4HotReload.test.d.ts +2 -0
- package/dist/test/v4HotReload.test.d.ts.map +1 -0
- package/dist/test/v4HotReloadIntegration.test.d.ts +2 -0
- package/dist/test/v4HotReloadIntegration.test.d.ts.map +1 -0
- package/dist/test/vizExportSupport.test.d.ts +2 -0
- package/dist/test/vizExportSupport.test.d.ts.map +1 -0
- package/dist/test/vizPriorityTest.test.d.ts +2 -0
- package/dist/test/vizPriorityTest.test.d.ts.map +1 -0
- package/dist/v2/getComputedIndexHtml.d.ts.map +1 -1
- package/dist/v3/computeBundleJSV3.d.ts.map +1 -1
- package/dist/v3/htmlTemplate.d.ts.map +1 -1
- package/dist/v3/svelte5-integration.test.d.ts +2 -0
- package/dist/v3/svelte5-integration.test.d.ts.map +1 -0
- package/dist/v3/transformSvelte.d.ts +9 -2
- package/dist/v3/transformSvelte.d.ts.map +1 -1
- package/dist/v3/transformSvelte.test.d.ts +2 -0
- package/dist/v3/transformSvelte.test.d.ts.map +1 -0
- package/dist/v4/extractEntryPoints.d.ts +7 -1
- package/dist/v4/extractEntryPoints.d.ts.map +1 -1
- package/dist/v4/hotReloadScript.d.ts +6 -0
- package/dist/v4/hotReloadScript.d.ts.map +1 -0
- package/dist/v4/index.d.ts +12 -0
- package/dist/v4/index.d.ts.map +1 -1
- package/dist/v4/updateHTML.d.ts +4 -1
- package/dist/v4/updateHTML.d.ts.map +1 -1
- package/dist/worker.cjs +1 -1
- package/dist/worker.cjs.map +1 -1
- package/dist/worker.js +1 -1
- package/dist/worker.js.map +1 -1
- package/package.json +23 -15
- package/dist/build-D8ObHgQc.js +0 -984
- package/dist/build-D8ObHgQc.js.map +0 -1
- package/dist/build-t6B4kQWS.cjs +0 -214
- package/dist/build-t6B4kQWS.cjs.map +0 -1
package/dist/build-D8ObHgQc.js
DELETED
@@ -1,984 +0,0 @@
|
|
1
|
-
import { magicSandbox as $ } from "magic-sandbox";
|
2
|
-
import { isVizId as B, getFileText as k, generateVizId as A, fileCollectionToVizFiles as q, vizFilesToFileCollection as _ } from "@vizhub/viz-utils";
|
3
|
-
import { transform as G } from "sucrase";
|
4
|
-
const Lt = () => (Math.random() + "").slice(2);
|
5
|
-
function R(t = {}) {
|
6
|
-
return {
|
7
|
-
name: "sucrase",
|
8
|
-
transform(e, n) {
|
9
|
-
if (!n.match(/\.(?:js|[jt]sx)$/))
|
10
|
-
return null;
|
11
|
-
const r = G(e, {
|
12
|
-
transforms: ["jsx", "typescript"],
|
13
|
-
// For source maps
|
14
|
-
filePath: n,
|
15
|
-
sourceMapOptions: {
|
16
|
-
compiledFilename: "bundle.js"
|
17
|
-
},
|
18
|
-
production: !0,
|
19
|
-
...t
|
20
|
-
});
|
21
|
-
return {
|
22
|
-
code: r.code,
|
23
|
-
map: r.sourceMap
|
24
|
-
};
|
25
|
-
}
|
26
|
-
};
|
27
|
-
}
|
28
|
-
const L = {
|
29
|
-
dependencies: {},
|
30
|
-
vizhub: {},
|
31
|
-
license: "MIT"
|
32
|
-
}, Y = !1, S = (t) => {
|
33
|
-
const e = t["package.json"];
|
34
|
-
try {
|
35
|
-
const n = e ? JSON.parse(e) : L;
|
36
|
-
return Y && console.log(
|
37
|
-
"[packageJSON] pkg:",
|
38
|
-
JSON.stringify(n, null, 2)
|
39
|
-
), n;
|
40
|
-
} catch {
|
41
|
-
return L;
|
42
|
-
}
|
43
|
-
}, T = (t) => S(t).dependencies || {}, z = (t) => (S(t).vizhub || {}).libraries || {}, F = ({ name: t, version: e }, n, r = "jsdelivr") => {
|
44
|
-
const o = n[t] && n[t].path || "";
|
45
|
-
return r === "jsdelivr" ? `https://cdn.jsdelivr.net/npm/${t}@${e}${o}` : `https://unpkg.com/${t}@${e}${o}`;
|
46
|
-
}, H = (t) => {
|
47
|
-
var n;
|
48
|
-
const e = (n = t == null ? void 0 : t.vizhub) == null ? void 0 : n.libraries;
|
49
|
-
return e ? Object.entries(e).reduce(
|
50
|
-
(r, [o, s]) => (s.global && (r[o] = s.global), r),
|
51
|
-
{}
|
52
|
-
) : {};
|
53
|
-
}, Q = {
|
54
|
-
d3: "d3",
|
55
|
-
react: "React",
|
56
|
-
"react-dom": "ReactDOM"
|
57
|
-
}, U = (t) => {
|
58
|
-
const e = H(t);
|
59
|
-
return {
|
60
|
-
...Q,
|
61
|
-
...e
|
62
|
-
};
|
63
|
-
}, x = (t) => {
|
64
|
-
const [e, ...n] = t.split("/"), r = n.join("/");
|
65
|
-
return { vizId: e, fileName: r };
|
66
|
-
}, X = `var EOL = {},
|
67
|
-
EOF = {},
|
68
|
-
QUOTE = 34,
|
69
|
-
NEWLINE = 10,
|
70
|
-
RETURN = 13;
|
71
|
-
|
72
|
-
function objectConverter(columns) {
|
73
|
-
return new Function(
|
74
|
-
'd',
|
75
|
-
'return {' +
|
76
|
-
columns
|
77
|
-
.map(function (name, i) {
|
78
|
-
return (
|
79
|
-
JSON.stringify(name) + ': d[' + i + '] || ""'
|
80
|
-
);
|
81
|
-
})
|
82
|
-
.join(',') +
|
83
|
-
'}',
|
84
|
-
);
|
85
|
-
}
|
86
|
-
|
87
|
-
function customConverter(columns, f) {
|
88
|
-
var object = objectConverter(columns);
|
89
|
-
return function (row, i) {
|
90
|
-
return f(object(row), i, columns);
|
91
|
-
};
|
92
|
-
}
|
93
|
-
|
94
|
-
function dsv(delimiter) {
|
95
|
-
var DELIMITER = delimiter.charCodeAt(0);
|
96
|
-
|
97
|
-
function parse(text, f) {
|
98
|
-
var convert,
|
99
|
-
columns,
|
100
|
-
rows = parseRows(text, function (row, i) {
|
101
|
-
if (convert) return convert(row, i - 1);
|
102
|
-
(columns = row),
|
103
|
-
(convert = f
|
104
|
-
? customConverter(row, f)
|
105
|
-
: objectConverter(row));
|
106
|
-
});
|
107
|
-
rows.columns = columns || [];
|
108
|
-
return rows;
|
109
|
-
}
|
110
|
-
|
111
|
-
function parseRows(text, f) {
|
112
|
-
var rows = [], // output rows
|
113
|
-
N = text.length,
|
114
|
-
I = 0, // current character index
|
115
|
-
n = 0, // current line number
|
116
|
-
t, // current token
|
117
|
-
eof = N <= 0, // current token followed by EOF?
|
118
|
-
eol = false; // current token followed by EOL?
|
119
|
-
|
120
|
-
// Strip the trailing newline.
|
121
|
-
if (text.charCodeAt(N - 1) === NEWLINE) --N;
|
122
|
-
if (text.charCodeAt(N - 1) === RETURN) --N;
|
123
|
-
|
124
|
-
function token() {
|
125
|
-
if (eof) return EOF;
|
126
|
-
if (eol) return (eol = false), EOL;
|
127
|
-
|
128
|
-
// Unescape quotes.
|
129
|
-
var i,
|
130
|
-
j = I,
|
131
|
-
c;
|
132
|
-
if (text.charCodeAt(j) === QUOTE) {
|
133
|
-
while (
|
134
|
-
(I++ < N && text.charCodeAt(I) !== QUOTE) ||
|
135
|
-
text.charCodeAt(++I) === QUOTE
|
136
|
-
);
|
137
|
-
if ((i = I) >= N) eof = true;
|
138
|
-
else if ((c = text.charCodeAt(I++)) === NEWLINE)
|
139
|
-
eol = true;
|
140
|
-
else if (c === RETURN) {
|
141
|
-
eol = true;
|
142
|
-
if (text.charCodeAt(I) === NEWLINE) ++I;
|
143
|
-
}
|
144
|
-
return text.slice(j + 1, i - 1).replace(/""/g, '"');
|
145
|
-
}
|
146
|
-
|
147
|
-
// Find next delimiter or newline.
|
148
|
-
while (I < N) {
|
149
|
-
if ((c = text.charCodeAt((i = I++))) === NEWLINE)
|
150
|
-
eol = true;
|
151
|
-
else if (c === RETURN) {
|
152
|
-
eol = true;
|
153
|
-
if (text.charCodeAt(I) === NEWLINE) ++I;
|
154
|
-
} else if (c !== DELIMITER) continue;
|
155
|
-
return text.slice(j, i);
|
156
|
-
}
|
157
|
-
|
158
|
-
// Return last token before EOF.
|
159
|
-
return (eof = true), text.slice(j, N);
|
160
|
-
}
|
161
|
-
|
162
|
-
while ((t = token()) !== EOF) {
|
163
|
-
var row = [];
|
164
|
-
while (t !== EOL && t !== EOF)
|
165
|
-
row.push(t), (t = token());
|
166
|
-
if (f && (row = f(row, n++)) == null) continue;
|
167
|
-
rows.push(row);
|
168
|
-
}
|
169
|
-
|
170
|
-
return rows;
|
171
|
-
}
|
172
|
-
|
173
|
-
return {
|
174
|
-
parse: parse,
|
175
|
-
};
|
176
|
-
}
|
177
|
-
|
178
|
-
var csv = dsv(',');
|
179
|
-
|
180
|
-
var csvParse = csv.parse;
|
181
|
-
|
182
|
-
var tsv = dsv(' ');
|
183
|
-
|
184
|
-
var tsvParse = tsv.parse;
|
185
|
-
|
186
|
-
export { csvParse, tsvParse };`, Z = (t) => (
|
187
|
-
// str.replace(/`/g, '\\`');
|
188
|
-
t.replace(/\\/g, "\\\\").replace(/`/g, "\\`")
|
189
|
-
), K = () => ({
|
190
|
-
name: "transformDSV",
|
191
|
-
// `id` here is of the form
|
192
|
-
// `{vizId}/{fileName}`
|
193
|
-
transform: async (t, e) => {
|
194
|
-
const { fileName: n } = x(e), r = n.endsWith(".csv"), o = n.endsWith(".tsv");
|
195
|
-
if (r || o)
|
196
|
-
return {
|
197
|
-
code: `
|
198
|
-
${X}
|
199
|
-
const data = ${r ? "csvParse" : "tsvParse"}(\`${Z(t)}\`);
|
200
|
-
export default data;
|
201
|
-
`,
|
202
|
-
map: { mappings: "" }
|
203
|
-
};
|
204
|
-
}
|
205
|
-
}), tt = (t) => {
|
206
|
-
const e = /^@([a-zA-Z0-9_-]+)\/([a-zA-Z0-9_-]+)$/, n = t.match(e);
|
207
|
-
return n ? {
|
208
|
-
userName: n[1],
|
209
|
-
idOrSlug: n[2]
|
210
|
-
} : null;
|
211
|
-
}, et = ({
|
212
|
-
vizId: t,
|
213
|
-
slugCache: e
|
214
|
-
}) => ({
|
215
|
-
name: "vizResolve",
|
216
|
-
resolveId: async (n, r) => {
|
217
|
-
if (n.startsWith("./") && !(r != null && r.startsWith("https://"))) {
|
218
|
-
let s = n.substring(2);
|
219
|
-
if (!s.endsWith(".js") && !s.endsWith(".css") && !s.endsWith(".csv") && !s.endsWith(".svelte") && (s += ".js"), r) {
|
220
|
-
const {
|
221
|
-
vizId: i,
|
222
|
-
fileName: a
|
223
|
-
} = x(r), c = a.split("/").slice(0, -1).join("/"), d = c ? `${c}/${s}` : s;
|
224
|
-
return `${i}/${d}`;
|
225
|
-
}
|
226
|
-
return t + "/" + s;
|
227
|
-
}
|
228
|
-
const o = tt(n);
|
229
|
-
if (o) {
|
230
|
-
let s;
|
231
|
-
if (B(o.idOrSlug))
|
232
|
-
s = o.idOrSlug;
|
233
|
-
else {
|
234
|
-
if (!e)
|
235
|
-
throw new Error(
|
236
|
-
"slugCache is required to import by slug in v3 runtime"
|
237
|
-
);
|
238
|
-
s = await e.get(
|
239
|
-
`${o.userName}/${o.idOrSlug}`
|
240
|
-
);
|
241
|
-
}
|
242
|
-
return s + "/index.js";
|
243
|
-
}
|
244
|
-
}
|
245
|
-
}), nt = ({
|
246
|
-
vizCache: t,
|
247
|
-
trackCSSImport: e,
|
248
|
-
vizId: n,
|
249
|
-
files: r
|
250
|
-
}) => ({
|
251
|
-
name: "vizLoad",
|
252
|
-
// `id` here is of the form
|
253
|
-
// `{vizId}/{fileName}`
|
254
|
-
load: async (o) => {
|
255
|
-
const s = x(o), i = s.vizId, a = s.fileName;
|
256
|
-
if (a.endsWith(".css"))
|
257
|
-
return e(o), "";
|
258
|
-
let c = null;
|
259
|
-
if (i === n && r)
|
260
|
-
c = r[a] || null;
|
261
|
-
else {
|
262
|
-
const d = await t.get(i);
|
263
|
-
c = k(d, a);
|
264
|
-
}
|
265
|
-
if (c === null)
|
266
|
-
throw new Error(
|
267
|
-
`Imported file "${a}" not found.`
|
268
|
-
);
|
269
|
-
return c;
|
270
|
-
}
|
271
|
-
}), M = /* @__PURE__ */ new Map();
|
272
|
-
let I;
|
273
|
-
const b = "https://cdn.jsdelivr.net/npm/svelte@4.2.9", Mt = `${b}/compiler.cjs`, rt = ({
|
274
|
-
getSvelteCompiler: t
|
275
|
-
}) => ({
|
276
|
-
name: "transformSvelte",
|
277
|
-
load: async (e) => {
|
278
|
-
if (!e.startsWith(b))
|
279
|
-
return;
|
280
|
-
const n = M.get(e);
|
281
|
-
if (n) return n;
|
282
|
-
const r = await fetch(e).then(
|
283
|
-
(o) => o.text()
|
284
|
-
);
|
285
|
-
return M.set(e, r), r;
|
286
|
-
},
|
287
|
-
// From https://github.com/sveltejs/sites/blob/master/packages/repl/src/lib/workers/bundler/index.js#L255C2-L271C5
|
288
|
-
resolveId: async (e, n) => {
|
289
|
-
if (e === "svelte")
|
290
|
-
return `${b}/src/runtime/index.js`;
|
291
|
-
if (e.startsWith("svelte/")) {
|
292
|
-
const r = e.slice(7);
|
293
|
-
return `${b}/src/runtime/${r}/index.js`;
|
294
|
-
}
|
295
|
-
if (/^https?:/.test(e)) return e;
|
296
|
-
if (e.startsWith(".") && n && n.startsWith(b)) {
|
297
|
-
const r = new URL(e, n).href;
|
298
|
-
return new URL(e, n).href, r;
|
299
|
-
}
|
300
|
-
},
|
301
|
-
transform: async (e, n) => {
|
302
|
-
const { fileName: r } = x(n);
|
303
|
-
if (r.endsWith(".svelte")) {
|
304
|
-
if (!I) {
|
305
|
-
if (!t)
|
306
|
-
throw new Error("Svelte compiler not available");
|
307
|
-
I = await t();
|
308
|
-
}
|
309
|
-
return I(e, {
|
310
|
-
filename: r,
|
311
|
-
hydratable: !0
|
312
|
-
}).js;
|
313
|
-
}
|
314
|
-
}
|
315
|
-
}), st = async ({
|
316
|
-
files: t,
|
317
|
-
rollup: e,
|
318
|
-
enableSourcemap: n = !0,
|
319
|
-
vizCache: r,
|
320
|
-
vizId: o,
|
321
|
-
slugCache: s,
|
322
|
-
getSvelteCompiler: i
|
323
|
-
}) => {
|
324
|
-
const a = /* @__PURE__ */ new Set(), c = (u) => {
|
325
|
-
a.add(u);
|
326
|
-
};
|
327
|
-
if (!t["index.js"])
|
328
|
-
throw new Error("Missing index.js");
|
329
|
-
const l = {
|
330
|
-
input: "./index.js",
|
331
|
-
plugins: [
|
332
|
-
...o ? [et({ vizId: o, slugCache: s })] : [],
|
333
|
-
K(),
|
334
|
-
R(),
|
335
|
-
rt({ getSvelteCompiler: i }),
|
336
|
-
...r ? [
|
337
|
-
nt({
|
338
|
-
vizCache: r,
|
339
|
-
trackCSSImport: c,
|
340
|
-
vizId: o,
|
341
|
-
files: t
|
342
|
-
})
|
343
|
-
] : []
|
344
|
-
],
|
345
|
-
onwarn(u, f) {
|
346
|
-
u.code !== "UNRESOLVED_IMPORT" && f(u);
|
347
|
-
}
|
348
|
-
}, m = {
|
349
|
-
format: "umd",
|
350
|
-
name: "Viz",
|
351
|
-
sourcemap: !!n,
|
352
|
-
compact: !0
|
353
|
-
}, v = S(t);
|
354
|
-
if (v) {
|
355
|
-
const u = U(v);
|
356
|
-
u && (l.external = Object.keys(u), m.globals = u);
|
357
|
-
}
|
358
|
-
const y = await e(l), { output: h } = await y.generate(m);
|
359
|
-
return {
|
360
|
-
src: h[0].code,
|
361
|
-
cssFiles: Array.from(a)
|
362
|
-
};
|
363
|
-
};
|
364
|
-
function ot() {
|
365
|
-
return Math.random().toString().slice(2, 7);
|
366
|
-
}
|
367
|
-
const it = ({
|
368
|
-
cdn: t,
|
369
|
-
src: e,
|
370
|
-
styles: n
|
371
|
-
}) => {
|
372
|
-
const o = `viz-container-${ot()}`;
|
373
|
-
return `<!DOCTYPE html>
|
374
|
-
<html>
|
375
|
-
<head>
|
376
|
-
<meta charset="utf-8">${t}${n}
|
377
|
-
<style>
|
378
|
-
body {
|
379
|
-
margin: 0;
|
380
|
-
overflow: hidden;
|
381
|
-
}
|
382
|
-
#${o} {
|
383
|
-
height: 100vh;
|
384
|
-
}
|
385
|
-
</style>
|
386
|
-
</head>
|
387
|
-
<body>
|
388
|
-
<div id="${o}"></div>
|
389
|
-
<script id="injected-script">${e}<\/script>
|
390
|
-
<script>
|
391
|
-
(() => {
|
392
|
-
let cleanup;
|
393
|
-
const render = () => {
|
394
|
-
const container = document.getElementById('${o}');
|
395
|
-
typeof cleanup === 'function' && cleanup();
|
396
|
-
cleanup = Viz.main(container, { state: window.state, setState, writeFile });
|
397
|
-
};
|
398
|
-
const setState = (next) => {
|
399
|
-
window.state = next(window.state);
|
400
|
-
render();
|
401
|
-
};
|
402
|
-
const writeFile = (fileName, content) => {
|
403
|
-
parent.postMessage({ type: 'writeFile', fileName, content }, "*");
|
404
|
-
};
|
405
|
-
const run = () => {
|
406
|
-
try {
|
407
|
-
setState((state) => state || {});
|
408
|
-
} catch (error) {
|
409
|
-
console.error(error);
|
410
|
-
parent.postMessage({ type: 'runError', error }, "*");
|
411
|
-
}
|
412
|
-
}
|
413
|
-
run();
|
414
|
-
const runJS = (src) => {
|
415
|
-
document.getElementById('injected-script')?.remove();
|
416
|
-
const script = document.createElement('script');
|
417
|
-
script.textContent = src;
|
418
|
-
script.id = 'injected-script';
|
419
|
-
document.body.appendChild(script);
|
420
|
-
run();
|
421
|
-
};
|
422
|
-
const runCSS = (css) => {
|
423
|
-
let style = document.getElementById('injected-style');
|
424
|
-
if (!style) {
|
425
|
-
style = document.createElement('style');
|
426
|
-
style.type = 'text/css';
|
427
|
-
style.id = 'injected-style';
|
428
|
-
document.head.appendChild(style);
|
429
|
-
}
|
430
|
-
style.textContent = css;
|
431
|
-
};
|
432
|
-
onmessage = (message) => {
|
433
|
-
switch (message.data.type) {
|
434
|
-
case 'runJS':
|
435
|
-
runJS(message.data.js);
|
436
|
-
parent.postMessage({ type: 'runDone' }, "*");
|
437
|
-
break;
|
438
|
-
case 'runCSS':
|
439
|
-
runCSS(message.data.css);
|
440
|
-
break;
|
441
|
-
case 'ping':
|
442
|
-
parent.postMessage({ type: 'pong' }, "*");
|
443
|
-
break;
|
444
|
-
default:
|
445
|
-
break;
|
446
|
-
}
|
447
|
-
}
|
448
|
-
})();
|
449
|
-
<\/script>
|
450
|
-
</body>
|
451
|
-
</html>`;
|
452
|
-
}, ct = async ({
|
453
|
-
files: t,
|
454
|
-
rollup: e,
|
455
|
-
enableSourcemap: n = !0,
|
456
|
-
vizCache: r,
|
457
|
-
vizId: o,
|
458
|
-
slugCache: s,
|
459
|
-
getSvelteCompiler: i
|
460
|
-
}) => {
|
461
|
-
const { src: a, cssFiles: c } = await st({
|
462
|
-
files: t,
|
463
|
-
rollup: e,
|
464
|
-
enableSourcemap: n,
|
465
|
-
vizCache: r,
|
466
|
-
vizId: o,
|
467
|
-
slugCache: s,
|
468
|
-
getSvelteCompiler: i
|
469
|
-
});
|
470
|
-
let d = [];
|
471
|
-
if (c.length > 0)
|
472
|
-
for (let h = 0; h < c.length; h++) {
|
473
|
-
const u = c[h], f = x(u), E = f.vizId, j = f.fileName;
|
474
|
-
let g = null;
|
475
|
-
if (E === o && t)
|
476
|
-
g = t[j] || null;
|
477
|
-
else {
|
478
|
-
const J = await r.get(E);
|
479
|
-
g = k(J, j);
|
480
|
-
}
|
481
|
-
g && d.push(g);
|
482
|
-
}
|
483
|
-
const l = d.join(`
|
484
|
-
`), m = `
|
485
|
-
<style id="injected-style">${l}</style>`;
|
486
|
-
let v = "";
|
487
|
-
const y = Object.entries(
|
488
|
-
T(t)
|
489
|
-
);
|
490
|
-
if (y.length > 0) {
|
491
|
-
const h = z(t);
|
492
|
-
v = y.map(([u, f], E) => {
|
493
|
-
const j = F(
|
494
|
-
{ name: u, version: f },
|
495
|
-
h
|
496
|
-
);
|
497
|
-
return `${E > 0 ? " " : `
|
498
|
-
`}<script src="${j}"><\/script>`;
|
499
|
-
}).join("");
|
500
|
-
}
|
501
|
-
return {
|
502
|
-
html: it({ cdn: v, src: a, styles: m }),
|
503
|
-
css: l,
|
504
|
-
js: a,
|
505
|
-
runtimeVersion: "v3"
|
506
|
-
};
|
507
|
-
}, at = ({
|
508
|
-
initialContents: t,
|
509
|
-
handleCacheMiss: e
|
510
|
-
}) => {
|
511
|
-
const n = new Map(
|
512
|
-
t.map((i) => [i.id, i])
|
513
|
-
);
|
514
|
-
return { get: async (i) => {
|
515
|
-
const a = n.get(i);
|
516
|
-
if (a !== void 0)
|
517
|
-
return a;
|
518
|
-
if (!e)
|
519
|
-
throw new Error(
|
520
|
-
`Unresolved import from vizId ${i}, cache miss handler not provided.`
|
521
|
-
);
|
522
|
-
const c = await e(i);
|
523
|
-
if (c)
|
524
|
-
return n.set(i, c), c;
|
525
|
-
throw new Error(
|
526
|
-
`Unresolved import from vizId ${i}`
|
527
|
-
);
|
528
|
-
}, set: (i) => {
|
529
|
-
n.set(i.id, i);
|
530
|
-
}, invalidate: (i) => {
|
531
|
-
n.delete(i);
|
532
|
-
} };
|
533
|
-
}, Pt = ({
|
534
|
-
initialMappings: t = {},
|
535
|
-
handleCacheMiss: e
|
536
|
-
}) => ({ get: async (s) => {
|
537
|
-
const i = t[s];
|
538
|
-
if (i !== void 0)
|
539
|
-
return i;
|
540
|
-
if (!e)
|
541
|
-
throw new Error(
|
542
|
-
`Unresolved slug ${s}, cache miss handler not provided.`
|
543
|
-
);
|
544
|
-
const a = await e(s);
|
545
|
-
if (a)
|
546
|
-
return t[s] = a, a;
|
547
|
-
throw new Error(`Unresolved slug ${s}`);
|
548
|
-
}, set: (s, i) => {
|
549
|
-
t[s] = i;
|
550
|
-
}, invalidate: (s) => {
|
551
|
-
delete t[s];
|
552
|
-
} }), dt = (t, e = "Sample Content for Exporting", n = A()) => ({
|
553
|
-
id: n,
|
554
|
-
files: q(t),
|
555
|
-
title: e
|
556
|
-
}), lt = (t) => {
|
557
|
-
if (Object.keys(t).length === 0)
|
558
|
-
return null;
|
559
|
-
const e = "index.html" in t, n = "index.js" in t, r = "index.jsx" in t;
|
560
|
-
return e ? t["index.html"].includes('type="module"') ? "v4" : n || r ? "v2" : "v1" : !e && n ? "v3" : null;
|
561
|
-
}, O = (t, e) => new RegExp(`<${e}\\b`, "i").test(t) && new RegExp(`</${e}>`, "i").test(t), ut = (t) => {
|
562
|
-
const e = t.trim();
|
563
|
-
return O(e, "html") && O(e, "head") && O(e, "body") ? e : `<html><head></head><body>${e}</body></html>`;
|
564
|
-
}, pt = (t, e) => t.replace(
|
565
|
-
new RegExp(
|
566
|
-
`<script[^>]*src=["'][^"']*${e.source}[^"']*["'][^>]*>\\s*<\/script>`,
|
567
|
-
"gi"
|
568
|
-
),
|
569
|
-
""
|
570
|
-
), P = (t, e, n) => t.replace(
|
571
|
-
new RegExp(e, "i"),
|
572
|
-
`${n}${e}`
|
573
|
-
), mt = (t, e) => {
|
574
|
-
let n = ut(t);
|
575
|
-
const r = Object.entries(T(e));
|
576
|
-
if (r.length) {
|
577
|
-
const s = z(e);
|
578
|
-
r.forEach(([a]) => {
|
579
|
-
n = pt(n, new RegExp(`${a}@`));
|
580
|
-
});
|
581
|
-
const i = r.map(
|
582
|
-
([a, c]) => F({ name: a, version: c }, s)
|
583
|
-
).map((a) => `<script src="${a}"><\/script>`).join(`
|
584
|
-
`);
|
585
|
-
n = P(
|
586
|
-
n,
|
587
|
-
"</head>",
|
588
|
-
i + `
|
589
|
-
`
|
590
|
-
);
|
591
|
-
}
|
592
|
-
if (e["bundle.js"] !== void 0 || e["index.js"] !== void 0) {
|
593
|
-
const s = '<script src="bundle.js"><\/script>', i = /<script\b[^>]*\bsrc=["']bundle\.js["'][^>]*>\s*<\/script>/gi, a = [...n.matchAll(i)];
|
594
|
-
a.length === 1 && (() => {
|
595
|
-
const d = a[0].index ?? -1;
|
596
|
-
if (d === -1) return !1;
|
597
|
-
const l = n.search(/<body\b[^>]*>/i), m = n.search(/<\/body>/i);
|
598
|
-
return l !== -1 && m !== -1 && d > l && d < m;
|
599
|
-
})() || (n = n.replace(i, ""), n = P(n, "</body>", s));
|
600
|
-
}
|
601
|
-
return /^\s*<!DOCTYPE/i.test(n) ? n : `<!DOCTYPE html>${n}`;
|
602
|
-
}, ht = (t) => {
|
603
|
-
const e = t["index.html"];
|
604
|
-
return !e && !t["index.js"] && !t["bundle.js"] ? "" : mt(e || "<!DOCTYPE html><html><head></head><body></body></html>", t);
|
605
|
-
};
|
606
|
-
function ft(t) {
|
607
|
-
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
608
|
-
}
|
609
|
-
var C, V;
|
610
|
-
function vt() {
|
611
|
-
return V || (V = 1, C = {
|
612
|
-
d3: "d3",
|
613
|
-
"d3-array": "d3",
|
614
|
-
"d3-axis": "d3",
|
615
|
-
"d3-brush": "d3",
|
616
|
-
"d3-chord": "d3",
|
617
|
-
"d3-collection": "d3",
|
618
|
-
"d3-color": "d3",
|
619
|
-
"d3-contour": "d3",
|
620
|
-
"d3-dispatch": "d3",
|
621
|
-
"d3-drag": "d3",
|
622
|
-
"d3-dsv": "d3",
|
623
|
-
"d3-ease": "d3",
|
624
|
-
"d3-fetch": "d3",
|
625
|
-
"d3-force": "d3",
|
626
|
-
"d3-format": "d3",
|
627
|
-
"d3-geo": "d3",
|
628
|
-
"d3-hierarchy": "d3",
|
629
|
-
"d3-interpolate": "d3",
|
630
|
-
"d3-path": "d3",
|
631
|
-
"d3-polygon": "d3",
|
632
|
-
"d3-quadtree": "d3",
|
633
|
-
"d3-random": "d3",
|
634
|
-
"d3-scale": "d3",
|
635
|
-
"d3-scale-chromatic": "d3",
|
636
|
-
"d3-selection": "d3",
|
637
|
-
"d3-shape": "d3",
|
638
|
-
"d3-tile": "d3",
|
639
|
-
"d3-time": "d3",
|
640
|
-
"d3-time-format": "d3",
|
641
|
-
"d3-timer": "d3",
|
642
|
-
"d3-transition": "d3",
|
643
|
-
"d3-voronoi": "d3",
|
644
|
-
"d3-zoom": "d3",
|
645
|
-
react: "React",
|
646
|
-
"react-dom": "ReactDOM",
|
647
|
-
"react-dropdown-browser": "ReactDropdown",
|
648
|
-
"react-dropdown": "ReactDropdown",
|
649
|
-
three: "THREE",
|
650
|
-
vega: "vega",
|
651
|
-
"vega-embed": "vegaEmbed",
|
652
|
-
"vega-lite": "vegaLite",
|
653
|
-
"vega-lite-api": "vl",
|
654
|
-
"vega-tooltip": "vegaTooltip",
|
655
|
-
"vega-themes": "vegaThemes",
|
656
|
-
"vizhub-vega-lite-config": "vizhubVegaLiteConfig",
|
657
|
-
semiotic: "Semiotic",
|
658
|
-
"viz.js": "Viz"
|
659
|
-
}), C;
|
660
|
-
}
|
661
|
-
var gt = vt();
|
662
|
-
const wt = /* @__PURE__ */ ft(gt), p = "\0virtual:", W = (t) => {
|
663
|
-
let e = t.replace(/^\.\//, "");
|
664
|
-
return e = e.replace(/\/+/g, "/"), e = e.replace(/\/$/, ""), e;
|
665
|
-
}, bt = (t, e) => {
|
666
|
-
const n = t.includes("/") ? t.slice(0, t.lastIndexOf("/")) : "", r = e.split("/"), o = n ? n.split("/") : [];
|
667
|
-
for (const s of r)
|
668
|
-
s === ".." ? o.pop() : s !== "." && s !== "" && o.push(s);
|
669
|
-
return o.join("/");
|
670
|
-
}, D = (t) => ({
|
671
|
-
name: "virtual-file-system",
|
672
|
-
resolveId(e, n) {
|
673
|
-
const r = n != null && n.startsWith(
|
674
|
-
p
|
675
|
-
) ? n.slice(p.length) : n;
|
676
|
-
if (e.startsWith("./") || e.startsWith("../")) {
|
677
|
-
const s = W(r ? bt(r, e) : e);
|
678
|
-
if (t[s])
|
679
|
-
return p + s;
|
680
|
-
const i = [".js", ".jsx", ".ts", ".tsx"];
|
681
|
-
for (const a of i) {
|
682
|
-
const c = s + a;
|
683
|
-
if (t[c])
|
684
|
-
return p + c;
|
685
|
-
}
|
686
|
-
}
|
687
|
-
if (t[e])
|
688
|
-
return p + e;
|
689
|
-
const o = [".js", ".jsx", ".ts", ".tsx"];
|
690
|
-
for (const s of o) {
|
691
|
-
const i = e + s;
|
692
|
-
if (t[i])
|
693
|
-
return p + i;
|
694
|
-
}
|
695
|
-
return null;
|
696
|
-
},
|
697
|
-
load(e) {
|
698
|
-
if (e.startsWith(p)) {
|
699
|
-
const n = e.slice(p.length);
|
700
|
-
if (t[n])
|
701
|
-
return t[n];
|
702
|
-
}
|
703
|
-
return null;
|
704
|
-
}
|
705
|
-
}), xt = async ({
|
706
|
-
files: t,
|
707
|
-
rollup: e,
|
708
|
-
enableSourcemap: n = !0
|
709
|
-
}) => {
|
710
|
-
let r = "index.js";
|
711
|
-
if (!t[r] && (r = "index.jsx", !t[r]))
|
712
|
-
throw new Error(
|
713
|
-
"Missing entry point, can't find index.js or index.jsx"
|
714
|
-
);
|
715
|
-
const s = {
|
716
|
-
input: "./" + r,
|
717
|
-
plugins: [D(t), R()],
|
718
|
-
onwarn(l, m) {
|
719
|
-
l.code !== "UNRESOLVED_IMPORT" && m(l);
|
720
|
-
}
|
721
|
-
}, i = {
|
722
|
-
format: "iife",
|
723
|
-
sourcemap: n
|
724
|
-
}, a = S(t);
|
725
|
-
if (a) {
|
726
|
-
const l = {
|
727
|
-
// Pre-configured globals for v2 only
|
728
|
-
...wt,
|
729
|
-
// Libraries from package.json
|
730
|
-
...U(a)
|
731
|
-
};
|
732
|
-
l && (s.external = Object.keys(l), i.globals = l);
|
733
|
-
}
|
734
|
-
const c = await e(s), { output: d } = await c.generate(i);
|
735
|
-
return d[0].code;
|
736
|
-
}, yt = async ({
|
737
|
-
files: t,
|
738
|
-
rollup: e,
|
739
|
-
enableSourcemap: n
|
740
|
-
}) => ({
|
741
|
-
...t,
|
742
|
-
"bundle.js": await xt({
|
743
|
-
files: t,
|
744
|
-
rollup: e,
|
745
|
-
enableSourcemap: n
|
746
|
-
}),
|
747
|
-
"index.html": ht(t)
|
748
|
-
}), Et = (t) => {
|
749
|
-
const e = [], n = /<script\b([^>]*)>[\s\S]*?<\/script>/gi;
|
750
|
-
let r;
|
751
|
-
for (; (r = n.exec(t)) !== null; ) {
|
752
|
-
const o = r[1];
|
753
|
-
if (!/\btype\s*=\s*["']module["']/i.test(o))
|
754
|
-
continue;
|
755
|
-
const s = o.match(
|
756
|
-
/\bsrc\s*=\s*["']([^"']+)["']/i
|
757
|
-
);
|
758
|
-
s && e.push(s[1]);
|
759
|
-
}
|
760
|
-
return e;
|
761
|
-
}, jt = () => ({
|
762
|
-
name: "catch-all-prevent-fs",
|
763
|
-
resolveId(t, e) {
|
764
|
-
return { id: t, external: !0 };
|
765
|
-
}
|
766
|
-
}), St = async ({
|
767
|
-
entryPoint: t,
|
768
|
-
files: e,
|
769
|
-
rollup: n,
|
770
|
-
enableSourcemap: r = !0
|
771
|
-
}) => {
|
772
|
-
const s = {
|
773
|
-
input: t.startsWith("./") ? t : `./${t}`,
|
774
|
-
plugins: [
|
775
|
-
D(e),
|
776
|
-
R({
|
777
|
-
// Enable JSX runtime
|
778
|
-
// so we don't need to import React
|
779
|
-
// in every file that uses JSX
|
780
|
-
jsxRuntime: "automatic"
|
781
|
-
}),
|
782
|
-
jt()
|
783
|
-
],
|
784
|
-
// external: (source: string) => {
|
785
|
-
// DEBUG && console.log("external", source);
|
786
|
-
// // Handle strings resolved by `virtualFileSystem`.
|
787
|
-
// const isVirtualFile = source.startsWith("./");
|
788
|
-
// // Handle external dependencies, e.g. from import maps.
|
789
|
-
// const isLibrary = !source.startsWith("./");
|
790
|
-
// const isExternal = !isVirtualFile || isLibrary;
|
791
|
-
// DEBUG && console.log("isExternal", isExternal);
|
792
|
-
// return isExternal;
|
793
|
-
// },
|
794
|
-
onwarn(c, d) {
|
795
|
-
}
|
796
|
-
}, i = await n(s), { output: a } = await i.generate({
|
797
|
-
format: "es",
|
798
|
-
sourcemap: r
|
799
|
-
});
|
800
|
-
return a[0].code;
|
801
|
-
}, N = (t, e) => new RegExp(`<${e}\\b`, "i").test(t) && new RegExp(`</${e}>`, "i").test(t), $t = (t) => {
|
802
|
-
const e = t.trim();
|
803
|
-
return N(e, "html") && N(e, "head") && N(e, "body") ? e : `<html><head></head><body>${e}</body></html>`;
|
804
|
-
}, It = (t) => t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Ot = (t, e, n) => t.replace(
|
805
|
-
new RegExp(e, "i"),
|
806
|
-
`${n}${e}`
|
807
|
-
), Ct = (t) => {
|
808
|
-
const e = T(t);
|
809
|
-
if (Object.keys(e).length === 0) return null;
|
810
|
-
const n = z(t), r = {};
|
811
|
-
for (const [o, s] of Object.entries(e))
|
812
|
-
r[o] = F(
|
813
|
-
{ name: o, version: s },
|
814
|
-
n
|
815
|
-
);
|
816
|
-
return JSON.stringify({ imports: r }, null, 2);
|
817
|
-
}, Nt = (t, e) => {
|
818
|
-
if (!t["index.html"]) return "";
|
819
|
-
let n = $t(t["index.html"]);
|
820
|
-
e.forEach((o, s) => {
|
821
|
-
const i = new RegExp(
|
822
|
-
`<script\\b[^>]*\\bsrc=["']${It(s)}["'][^>]*>[^<]*<\/script>`,
|
823
|
-
"gi"
|
824
|
-
);
|
825
|
-
n = n.replace(
|
826
|
-
i,
|
827
|
-
`<script type="module">
|
828
|
-
${o}
|
829
|
-
<\/script>`
|
830
|
-
);
|
831
|
-
});
|
832
|
-
const r = Ct(t);
|
833
|
-
if (r && !/<script\b[^>]*type=["']importmap["'][^>]*>/i.test(
|
834
|
-
n
|
835
|
-
)) {
|
836
|
-
const s = `<script type="importmap">
|
837
|
-
${r}
|
838
|
-
<\/script>
|
839
|
-
`;
|
840
|
-
n = Ot(
|
841
|
-
n,
|
842
|
-
"</head>",
|
843
|
-
s
|
844
|
-
);
|
845
|
-
}
|
846
|
-
return /^\s*<!DOCTYPE/i.test(n) ? n : `<!DOCTYPE html>${n}`;
|
847
|
-
}, Rt = async ({
|
848
|
-
files: t,
|
849
|
-
rollup: e,
|
850
|
-
enableSourcemap: n = !0
|
851
|
-
}) => {
|
852
|
-
const r = t["index.html"] || "", o = Et(r);
|
853
|
-
if (o.length === 0)
|
854
|
-
return t;
|
855
|
-
const s = /* @__PURE__ */ new Map();
|
856
|
-
for (const a of o) {
|
857
|
-
const c = await St({
|
858
|
-
entryPoint: a,
|
859
|
-
files: t,
|
860
|
-
rollup: e,
|
861
|
-
enableSourcemap: n
|
862
|
-
});
|
863
|
-
s.set(a, c);
|
864
|
-
}
|
865
|
-
const i = Nt(t, s);
|
866
|
-
return {
|
867
|
-
...t,
|
868
|
-
"index.html": i
|
869
|
-
};
|
870
|
-
}, w = !1, Vt = async ({
|
871
|
-
files: t,
|
872
|
-
rollup: e,
|
873
|
-
enableSourcemap: n = !0,
|
874
|
-
vizCache: r,
|
875
|
-
vizId: o,
|
876
|
-
slugCache: s,
|
877
|
-
getSvelteCompiler: i
|
878
|
-
}) => {
|
879
|
-
var a;
|
880
|
-
try {
|
881
|
-
if (w && console.log(
|
882
|
-
"[build] files:",
|
883
|
-
t ? JSON.stringify(t).substring(0, 100) : void 0
|
884
|
-
), w && console.log("[build] vizCache:", r), w && console.log("[build] vizId:", o), !t && !r)
|
885
|
-
throw new Error(
|
886
|
-
"Either files or vizCache is required"
|
887
|
-
);
|
888
|
-
if (!t && r && !o)
|
889
|
-
throw new Error(
|
890
|
-
"vizId is required when using vizCache"
|
891
|
-
);
|
892
|
-
if (!t && r && o && (t = _(
|
893
|
-
(a = await r.get(o)) == null ? void 0 : a.files
|
894
|
-
)), !t)
|
895
|
-
throw new Error("Upable to extract viz files");
|
896
|
-
const c = lt(t);
|
897
|
-
if (w && console.log("[build] version:", c), c === "v1")
|
898
|
-
return {
|
899
|
-
html: $(t),
|
900
|
-
runtimeVersion: c
|
901
|
-
};
|
902
|
-
if (c === "v2") {
|
903
|
-
if (!e)
|
904
|
-
throw new Error(
|
905
|
-
"Rollup is required for v2 runtime"
|
906
|
-
);
|
907
|
-
return {
|
908
|
-
html: $(
|
909
|
-
await yt({ files: t, rollup: e, enableSourcemap: n })
|
910
|
-
),
|
911
|
-
runtimeVersion: c
|
912
|
-
};
|
913
|
-
}
|
914
|
-
if (c === "v3") {
|
915
|
-
if (!e)
|
916
|
-
throw new Error(
|
917
|
-
"Rollup is required for v3 runtime"
|
918
|
-
);
|
919
|
-
if (!r && !o) {
|
920
|
-
const d = dt(t);
|
921
|
-
o = d.id, r = at({
|
922
|
-
initialContents: [d],
|
923
|
-
handleCacheMiss: async () => {
|
924
|
-
throw new Error(
|
925
|
-
"Cache miss handler not implemented"
|
926
|
-
);
|
927
|
-
}
|
928
|
-
});
|
929
|
-
}
|
930
|
-
if (!r)
|
931
|
-
throw new Error(
|
932
|
-
"vizCache is required for v3 runtime"
|
933
|
-
);
|
934
|
-
if (!o)
|
935
|
-
throw new Error(
|
936
|
-
"vizId is required for v3 runtime if vizCache is provided"
|
937
|
-
);
|
938
|
-
return await ct({
|
939
|
-
files: t,
|
940
|
-
rollup: e,
|
941
|
-
vizCache: r,
|
942
|
-
vizId: o,
|
943
|
-
slugCache: s,
|
944
|
-
getSvelteCompiler: i
|
945
|
-
});
|
946
|
-
}
|
947
|
-
if (c === "v4") {
|
948
|
-
if (!e)
|
949
|
-
throw new Error(
|
950
|
-
"Rollup is required for v4 runtime"
|
951
|
-
);
|
952
|
-
return w && console.log("[build] v4Build", {
|
953
|
-
files: t,
|
954
|
-
rollup: e,
|
955
|
-
enableSourcemap: n
|
956
|
-
}), {
|
957
|
-
html: $(
|
958
|
-
await Rt({ files: t, rollup: e, enableSourcemap: n })
|
959
|
-
),
|
960
|
-
runtimeVersion: c
|
961
|
-
};
|
962
|
-
}
|
963
|
-
throw new Error(
|
964
|
-
`Unsupported runtime version: ${c}`
|
965
|
-
);
|
966
|
-
} catch (c) {
|
967
|
-
throw c instanceof Error && c.message.indexOf(p) && (c.message = c.message.replace(
|
968
|
-
p,
|
969
|
-
""
|
970
|
-
)), c;
|
971
|
-
}
|
972
|
-
};
|
973
|
-
export {
|
974
|
-
at as a,
|
975
|
-
Vt as b,
|
976
|
-
st as c,
|
977
|
-
lt as d,
|
978
|
-
Pt as e,
|
979
|
-
dt as f,
|
980
|
-
Lt as g,
|
981
|
-
Mt as s,
|
982
|
-
ct as v
|
983
|
-
};
|
984
|
-
//# sourceMappingURL=build-D8ObHgQc.js.map
|