@vizejs/wasm 0.37.0 → 0.39.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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@vizejs/wasm",
3
3
  "type": "module",
4
4
  "description": "Vize WASM bindings for browser environments",
5
- "version": "0.37.0",
5
+ "version": "0.39.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -11,12 +11,12 @@
11
11
  },
12
12
  "homepage": "https://github.com/ubugeeei/vize",
13
13
  "files": [
14
- "vize_bindings_bg.wasm",
15
- "vize_bindings.js",
16
- "vize_bindings.d.ts"
14
+ "vize_vitrine_bg.wasm",
15
+ "vize_vitrine.js",
16
+ "vize_vitrine.d.ts"
17
17
  ],
18
- "main": "vize_bindings.js",
19
- "types": "vize_bindings.d.ts",
18
+ "main": "vize_vitrine.js",
19
+ "types": "vize_vitrine.d.ts",
20
20
  "sideEffects": [
21
21
  "./snippets/*"
22
22
  ]
@@ -0,0 +1,213 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+
4
+ /**
5
+ * WASM Compiler instance
6
+ */
7
+ export class Compiler {
8
+ free(): void;
9
+ [Symbol.dispose](): void;
10
+ /**
11
+ * Compile template to VDom render function
12
+ */
13
+ compile(template: string, options: any): any;
14
+ /**
15
+ * Compile CSS with LightningCSS
16
+ */
17
+ compileCss(css: string, options: any): any;
18
+ /**
19
+ * Compile SFC template block
20
+ */
21
+ compileSfc(source: string, options: any): any;
22
+ /**
23
+ * Compile template to Vapor mode
24
+ */
25
+ compileVapor(template: string, options: any): any;
26
+ constructor();
27
+ /**
28
+ * Parse template to AST
29
+ */
30
+ parse(template: string, _options: any): any;
31
+ /**
32
+ * Parse SFC (.vue file)
33
+ */
34
+ parseSfc(source: string, options: any): any;
35
+ }
36
+
37
+ /**
38
+ * Analyze multiple Vue SFC files for cross-file issues
39
+ */
40
+ export function analyzeCrossFile(files: any, options: any): any;
41
+
42
+ /**
43
+ * Analyze Vue SFC for semantic information (scopes, bindings, etc.)
44
+ */
45
+ export function analyzeSfc(source: string, options: any): any;
46
+
47
+ /**
48
+ * Transform Art to Storybook CSF 3.0
49
+ */
50
+ export function artToCsf(source: string, options: any): any;
51
+
52
+ /**
53
+ * Compile template to VDom (free function)
54
+ */
55
+ export function compile(template: string, options: any): any;
56
+
57
+ /**
58
+ * Compile CSS (free function)
59
+ */
60
+ export function compileCss(css: string, options: any): any;
61
+
62
+ /**
63
+ * Compile SFC (free function)
64
+ */
65
+ export function compileSfc(source: string, options: any): any;
66
+
67
+ /**
68
+ * Compile template to Vapor mode (free function)
69
+ */
70
+ export function compileVapor(template: string, options: any): any;
71
+
72
+ /**
73
+ * Format JavaScript/TypeScript content
74
+ */
75
+ export function formatScript(source: string, options: any): any;
76
+
77
+ /**
78
+ * Format Vue SFC file
79
+ */
80
+ export function formatSfc(source: string, options: any): any;
81
+
82
+ /**
83
+ * Format Vue template content
84
+ */
85
+ export function formatTemplate(source: string, options: any): any;
86
+
87
+ /**
88
+ * Generate catalog from multiple Art sources
89
+ */
90
+ export function generateArtCatalog(sources: Array<any>, options: any): any;
91
+
92
+ /**
93
+ * Generate component documentation from Art source
94
+ */
95
+ export function generateArtDoc(source: string, options: any): any;
96
+
97
+ /**
98
+ * Generate props palette from Art source
99
+ */
100
+ export function generateArtPalette(source: string, options: any): any;
101
+
102
+ /**
103
+ * Get available lint rules
104
+ */
105
+ export function getLintRules(): any;
106
+
107
+ /**
108
+ * Get available locales for i18n
109
+ */
110
+ export function getLocales(): any;
111
+
112
+ /**
113
+ * Get type checking capabilities info
114
+ */
115
+ export function getTypeCheckCapabilities(): any;
116
+
117
+ /**
118
+ * Lint Vue SFC file (full SFC including script)
119
+ */
120
+ export function lintSfc(source: string, options: any): any;
121
+
122
+ /**
123
+ * Lint Vue SFC template
124
+ */
125
+ export function lintTemplate(source: string, options: any): any;
126
+
127
+ /**
128
+ * Parse Art file (*.art.vue)
129
+ */
130
+ export function parseArt(source: string, options: any): any;
131
+
132
+ /**
133
+ * Parse SFC (free function)
134
+ */
135
+ export function parseSfc(source: string, options: any): any;
136
+
137
+ /**
138
+ * Parse template to AST (free function)
139
+ */
140
+ export function parseTemplate(template: string, options: any): any;
141
+
142
+ /**
143
+ * Perform type checking on a Vue SFC
144
+ *
145
+ * This performs AST-based type analysis without requiring a TypeScript compiler.
146
+ * For full type checking, use the CLI with tsgo integration.
147
+ */
148
+ export function typeCheck(source: string, options: any): any;
149
+
150
+ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
151
+
152
+ export interface InitOutput {
153
+ readonly memory: WebAssembly.Memory;
154
+ readonly __wbg_compiler_free: (a: number, b: number) => void;
155
+ readonly analyzeCrossFile: (a: any, b: any) => [number, number, number];
156
+ readonly analyzeSfc: (a: number, b: number, c: any) => [number, number, number];
157
+ readonly artToCsf: (a: number, b: number, c: any) => [number, number, number];
158
+ readonly compile: (a: number, b: number, c: any) => [number, number, number];
159
+ readonly compileCss: (a: number, b: number, c: any) => [number, number, number];
160
+ readonly compileSfc: (a: number, b: number, c: any) => [number, number, number];
161
+ readonly compileVapor: (a: number, b: number, c: any) => [number, number, number];
162
+ readonly compiler_compile: (a: number, b: number, c: number, d: any) => [number, number, number];
163
+ readonly compiler_compileCss: (a: number, b: number, c: number, d: any) => [number, number, number];
164
+ readonly compiler_compileSfc: (a: number, b: number, c: number, d: any) => [number, number, number];
165
+ readonly compiler_compileVapor: (a: number, b: number, c: number, d: any) => [number, number, number];
166
+ readonly compiler_parse: (a: number, b: number, c: number, d: any) => [number, number, number];
167
+ readonly compiler_parseSfc: (a: number, b: number, c: number, d: any) => [number, number, number];
168
+ readonly formatScript: (a: number, b: number, c: any) => [number, number, number];
169
+ readonly formatSfc: (a: number, b: number, c: any) => [number, number, number];
170
+ readonly formatTemplate: (a: number, b: number, c: any) => [number, number, number];
171
+ readonly generateArtCatalog: (a: any, b: any) => [number, number, number];
172
+ readonly generateArtDoc: (a: number, b: number, c: any) => [number, number, number];
173
+ readonly generateArtPalette: (a: number, b: number, c: any) => [number, number, number];
174
+ readonly getLintRules: () => [number, number, number];
175
+ readonly getLocales: () => [number, number, number];
176
+ readonly getTypeCheckCapabilities: () => [number, number, number];
177
+ readonly lintSfc: (a: number, b: number, c: any) => [number, number, number];
178
+ readonly lintTemplate: (a: number, b: number, c: any) => [number, number, number];
179
+ readonly parseArt: (a: number, b: number, c: any) => [number, number, number];
180
+ readonly parseSfc: (a: number, b: number, c: any) => [number, number, number];
181
+ readonly parseTemplate: (a: number, b: number, c: any) => [number, number, number];
182
+ readonly typeCheck: (a: number, b: number, c: any) => [number, number, number];
183
+ readonly compiler_new: () => number;
184
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
185
+ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
186
+ readonly __wbindgen_exn_store: (a: number) => void;
187
+ readonly __externref_table_alloc: () => number;
188
+ readonly __wbindgen_externrefs: WebAssembly.Table;
189
+ readonly __externref_table_dealloc: (a: number) => void;
190
+ readonly __wbindgen_start: () => void;
191
+ }
192
+
193
+ export type SyncInitInput = BufferSource | WebAssembly.Module;
194
+
195
+ /**
196
+ * Instantiates the given `module`, which can either be bytes or
197
+ * a precompiled `WebAssembly.Module`.
198
+ *
199
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
200
+ *
201
+ * @returns {InitOutput}
202
+ */
203
+ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
204
+
205
+ /**
206
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
207
+ * for everything else, calls `WebAssembly.instantiate` directly.
208
+ *
209
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
210
+ *
211
+ * @returns {Promise<InitOutput>}
212
+ */
213
+ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
@@ -0,0 +1,969 @@
1
+ /* @ts-self-types="./vize_vitrine.d.ts" */
2
+
3
+ /**
4
+ * WASM Compiler instance
5
+ */
6
+ export class Compiler {
7
+ __destroy_into_raw() {
8
+ const ptr = this.__wbg_ptr;
9
+ this.__wbg_ptr = 0;
10
+ CompilerFinalization.unregister(this);
11
+ return ptr;
12
+ }
13
+ free() {
14
+ const ptr = this.__destroy_into_raw();
15
+ wasm.__wbg_compiler_free(ptr, 0);
16
+ }
17
+ /**
18
+ * Compile template to VDom render function
19
+ * @param {string} template
20
+ * @param {any} options
21
+ * @returns {any}
22
+ */
23
+ compile(template, options) {
24
+ const ptr0 = passStringToWasm0(template, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
25
+ const len0 = WASM_VECTOR_LEN;
26
+ const ret = wasm.compiler_compile(this.__wbg_ptr, ptr0, len0, options);
27
+ if (ret[2]) {
28
+ throw takeFromExternrefTable0(ret[1]);
29
+ }
30
+ return takeFromExternrefTable0(ret[0]);
31
+ }
32
+ /**
33
+ * Compile CSS with LightningCSS
34
+ * @param {string} css
35
+ * @param {any} options
36
+ * @returns {any}
37
+ */
38
+ compileCss(css, options) {
39
+ const ptr0 = passStringToWasm0(css, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
40
+ const len0 = WASM_VECTOR_LEN;
41
+ const ret = wasm.compiler_compileCss(this.__wbg_ptr, ptr0, len0, options);
42
+ if (ret[2]) {
43
+ throw takeFromExternrefTable0(ret[1]);
44
+ }
45
+ return takeFromExternrefTable0(ret[0]);
46
+ }
47
+ /**
48
+ * Compile SFC template block
49
+ * @param {string} source
50
+ * @param {any} options
51
+ * @returns {any}
52
+ */
53
+ compileSfc(source, options) {
54
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
55
+ const len0 = WASM_VECTOR_LEN;
56
+ const ret = wasm.compiler_compileSfc(this.__wbg_ptr, ptr0, len0, options);
57
+ if (ret[2]) {
58
+ throw takeFromExternrefTable0(ret[1]);
59
+ }
60
+ return takeFromExternrefTable0(ret[0]);
61
+ }
62
+ /**
63
+ * Compile template to Vapor mode
64
+ * @param {string} template
65
+ * @param {any} options
66
+ * @returns {any}
67
+ */
68
+ compileVapor(template, options) {
69
+ const ptr0 = passStringToWasm0(template, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
70
+ const len0 = WASM_VECTOR_LEN;
71
+ const ret = wasm.compiler_compileVapor(this.__wbg_ptr, ptr0, len0, options);
72
+ if (ret[2]) {
73
+ throw takeFromExternrefTable0(ret[1]);
74
+ }
75
+ return takeFromExternrefTable0(ret[0]);
76
+ }
77
+ constructor() {
78
+ const ret = wasm.compiler_new();
79
+ this.__wbg_ptr = ret >>> 0;
80
+ CompilerFinalization.register(this, this.__wbg_ptr, this);
81
+ return this;
82
+ }
83
+ /**
84
+ * Parse template to AST
85
+ * @param {string} template
86
+ * @param {any} _options
87
+ * @returns {any}
88
+ */
89
+ parse(template, _options) {
90
+ const ptr0 = passStringToWasm0(template, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
91
+ const len0 = WASM_VECTOR_LEN;
92
+ const ret = wasm.compiler_parse(this.__wbg_ptr, ptr0, len0, _options);
93
+ if (ret[2]) {
94
+ throw takeFromExternrefTable0(ret[1]);
95
+ }
96
+ return takeFromExternrefTable0(ret[0]);
97
+ }
98
+ /**
99
+ * Parse SFC (.vue file)
100
+ * @param {string} source
101
+ * @param {any} options
102
+ * @returns {any}
103
+ */
104
+ parseSfc(source, options) {
105
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
106
+ const len0 = WASM_VECTOR_LEN;
107
+ const ret = wasm.compiler_parseSfc(this.__wbg_ptr, ptr0, len0, options);
108
+ if (ret[2]) {
109
+ throw takeFromExternrefTable0(ret[1]);
110
+ }
111
+ return takeFromExternrefTable0(ret[0]);
112
+ }
113
+ }
114
+ if (Symbol.dispose) Compiler.prototype[Symbol.dispose] = Compiler.prototype.free;
115
+
116
+ /**
117
+ * Analyze multiple Vue SFC files for cross-file issues
118
+ * @param {any} files
119
+ * @param {any} options
120
+ * @returns {any}
121
+ */
122
+ export function analyzeCrossFile(files, options) {
123
+ const ret = wasm.analyzeCrossFile(files, options);
124
+ if (ret[2]) {
125
+ throw takeFromExternrefTable0(ret[1]);
126
+ }
127
+ return takeFromExternrefTable0(ret[0]);
128
+ }
129
+
130
+ /**
131
+ * Analyze Vue SFC for semantic information (scopes, bindings, etc.)
132
+ * @param {string} source
133
+ * @param {any} options
134
+ * @returns {any}
135
+ */
136
+ export function analyzeSfc(source, options) {
137
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
138
+ const len0 = WASM_VECTOR_LEN;
139
+ const ret = wasm.analyzeSfc(ptr0, len0, options);
140
+ if (ret[2]) {
141
+ throw takeFromExternrefTable0(ret[1]);
142
+ }
143
+ return takeFromExternrefTable0(ret[0]);
144
+ }
145
+
146
+ /**
147
+ * Transform Art to Storybook CSF 3.0
148
+ * @param {string} source
149
+ * @param {any} options
150
+ * @returns {any}
151
+ */
152
+ export function artToCsf(source, options) {
153
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
154
+ const len0 = WASM_VECTOR_LEN;
155
+ const ret = wasm.artToCsf(ptr0, len0, options);
156
+ if (ret[2]) {
157
+ throw takeFromExternrefTable0(ret[1]);
158
+ }
159
+ return takeFromExternrefTable0(ret[0]);
160
+ }
161
+
162
+ /**
163
+ * Compile template to VDom (free function)
164
+ * @param {string} template
165
+ * @param {any} options
166
+ * @returns {any}
167
+ */
168
+ export function compile(template, options) {
169
+ const ptr0 = passStringToWasm0(template, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
170
+ const len0 = WASM_VECTOR_LEN;
171
+ const ret = wasm.compile(ptr0, len0, options);
172
+ if (ret[2]) {
173
+ throw takeFromExternrefTable0(ret[1]);
174
+ }
175
+ return takeFromExternrefTable0(ret[0]);
176
+ }
177
+
178
+ /**
179
+ * Compile CSS (free function)
180
+ * @param {string} css
181
+ * @param {any} options
182
+ * @returns {any}
183
+ */
184
+ export function compileCss(css, options) {
185
+ const ptr0 = passStringToWasm0(css, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
186
+ const len0 = WASM_VECTOR_LEN;
187
+ const ret = wasm.compileCss(ptr0, len0, options);
188
+ if (ret[2]) {
189
+ throw takeFromExternrefTable0(ret[1]);
190
+ }
191
+ return takeFromExternrefTable0(ret[0]);
192
+ }
193
+
194
+ /**
195
+ * Compile SFC (free function)
196
+ * @param {string} source
197
+ * @param {any} options
198
+ * @returns {any}
199
+ */
200
+ export function compileSfc(source, options) {
201
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
202
+ const len0 = WASM_VECTOR_LEN;
203
+ const ret = wasm.compileSfc(ptr0, len0, options);
204
+ if (ret[2]) {
205
+ throw takeFromExternrefTable0(ret[1]);
206
+ }
207
+ return takeFromExternrefTable0(ret[0]);
208
+ }
209
+
210
+ /**
211
+ * Compile template to Vapor mode (free function)
212
+ * @param {string} template
213
+ * @param {any} options
214
+ * @returns {any}
215
+ */
216
+ export function compileVapor(template, options) {
217
+ const ptr0 = passStringToWasm0(template, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
218
+ const len0 = WASM_VECTOR_LEN;
219
+ const ret = wasm.compileVapor(ptr0, len0, options);
220
+ if (ret[2]) {
221
+ throw takeFromExternrefTable0(ret[1]);
222
+ }
223
+ return takeFromExternrefTable0(ret[0]);
224
+ }
225
+
226
+ /**
227
+ * Format JavaScript/TypeScript content
228
+ * @param {string} source
229
+ * @param {any} options
230
+ * @returns {any}
231
+ */
232
+ export function formatScript(source, options) {
233
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
234
+ const len0 = WASM_VECTOR_LEN;
235
+ const ret = wasm.formatScript(ptr0, len0, options);
236
+ if (ret[2]) {
237
+ throw takeFromExternrefTable0(ret[1]);
238
+ }
239
+ return takeFromExternrefTable0(ret[0]);
240
+ }
241
+
242
+ /**
243
+ * Format Vue SFC file
244
+ * @param {string} source
245
+ * @param {any} options
246
+ * @returns {any}
247
+ */
248
+ export function formatSfc(source, options) {
249
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
250
+ const len0 = WASM_VECTOR_LEN;
251
+ const ret = wasm.formatSfc(ptr0, len0, options);
252
+ if (ret[2]) {
253
+ throw takeFromExternrefTable0(ret[1]);
254
+ }
255
+ return takeFromExternrefTable0(ret[0]);
256
+ }
257
+
258
+ /**
259
+ * Format Vue template content
260
+ * @param {string} source
261
+ * @param {any} options
262
+ * @returns {any}
263
+ */
264
+ export function formatTemplate(source, options) {
265
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
266
+ const len0 = WASM_VECTOR_LEN;
267
+ const ret = wasm.formatTemplate(ptr0, len0, options);
268
+ if (ret[2]) {
269
+ throw takeFromExternrefTable0(ret[1]);
270
+ }
271
+ return takeFromExternrefTable0(ret[0]);
272
+ }
273
+
274
+ /**
275
+ * Generate catalog from multiple Art sources
276
+ * @param {Array<any>} sources
277
+ * @param {any} options
278
+ * @returns {any}
279
+ */
280
+ export function generateArtCatalog(sources, options) {
281
+ const ret = wasm.generateArtCatalog(sources, options);
282
+ if (ret[2]) {
283
+ throw takeFromExternrefTable0(ret[1]);
284
+ }
285
+ return takeFromExternrefTable0(ret[0]);
286
+ }
287
+
288
+ /**
289
+ * Generate component documentation from Art source
290
+ * @param {string} source
291
+ * @param {any} options
292
+ * @returns {any}
293
+ */
294
+ export function generateArtDoc(source, options) {
295
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
296
+ const len0 = WASM_VECTOR_LEN;
297
+ const ret = wasm.generateArtDoc(ptr0, len0, options);
298
+ if (ret[2]) {
299
+ throw takeFromExternrefTable0(ret[1]);
300
+ }
301
+ return takeFromExternrefTable0(ret[0]);
302
+ }
303
+
304
+ /**
305
+ * Generate props palette from Art source
306
+ * @param {string} source
307
+ * @param {any} options
308
+ * @returns {any}
309
+ */
310
+ export function generateArtPalette(source, options) {
311
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
312
+ const len0 = WASM_VECTOR_LEN;
313
+ const ret = wasm.generateArtPalette(ptr0, len0, options);
314
+ if (ret[2]) {
315
+ throw takeFromExternrefTable0(ret[1]);
316
+ }
317
+ return takeFromExternrefTable0(ret[0]);
318
+ }
319
+
320
+ /**
321
+ * Get available lint rules
322
+ * @returns {any}
323
+ */
324
+ export function getLintRules() {
325
+ const ret = wasm.getLintRules();
326
+ if (ret[2]) {
327
+ throw takeFromExternrefTable0(ret[1]);
328
+ }
329
+ return takeFromExternrefTable0(ret[0]);
330
+ }
331
+
332
+ /**
333
+ * Get available locales for i18n
334
+ * @returns {any}
335
+ */
336
+ export function getLocales() {
337
+ const ret = wasm.getLocales();
338
+ if (ret[2]) {
339
+ throw takeFromExternrefTable0(ret[1]);
340
+ }
341
+ return takeFromExternrefTable0(ret[0]);
342
+ }
343
+
344
+ /**
345
+ * Get type checking capabilities info
346
+ * @returns {any}
347
+ */
348
+ export function getTypeCheckCapabilities() {
349
+ const ret = wasm.getTypeCheckCapabilities();
350
+ if (ret[2]) {
351
+ throw takeFromExternrefTable0(ret[1]);
352
+ }
353
+ return takeFromExternrefTable0(ret[0]);
354
+ }
355
+
356
+ /**
357
+ * Lint Vue SFC file (full SFC including script)
358
+ * @param {string} source
359
+ * @param {any} options
360
+ * @returns {any}
361
+ */
362
+ export function lintSfc(source, options) {
363
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
364
+ const len0 = WASM_VECTOR_LEN;
365
+ const ret = wasm.lintSfc(ptr0, len0, options);
366
+ if (ret[2]) {
367
+ throw takeFromExternrefTable0(ret[1]);
368
+ }
369
+ return takeFromExternrefTable0(ret[0]);
370
+ }
371
+
372
+ /**
373
+ * Lint Vue SFC template
374
+ * @param {string} source
375
+ * @param {any} options
376
+ * @returns {any}
377
+ */
378
+ export function lintTemplate(source, options) {
379
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
380
+ const len0 = WASM_VECTOR_LEN;
381
+ const ret = wasm.lintTemplate(ptr0, len0, options);
382
+ if (ret[2]) {
383
+ throw takeFromExternrefTable0(ret[1]);
384
+ }
385
+ return takeFromExternrefTable0(ret[0]);
386
+ }
387
+
388
+ /**
389
+ * Parse Art file (*.art.vue)
390
+ * @param {string} source
391
+ * @param {any} options
392
+ * @returns {any}
393
+ */
394
+ export function parseArt(source, options) {
395
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
396
+ const len0 = WASM_VECTOR_LEN;
397
+ const ret = wasm.parseArt(ptr0, len0, options);
398
+ if (ret[2]) {
399
+ throw takeFromExternrefTable0(ret[1]);
400
+ }
401
+ return takeFromExternrefTable0(ret[0]);
402
+ }
403
+
404
+ /**
405
+ * Parse SFC (free function)
406
+ * @param {string} source
407
+ * @param {any} options
408
+ * @returns {any}
409
+ */
410
+ export function parseSfc(source, options) {
411
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
412
+ const len0 = WASM_VECTOR_LEN;
413
+ const ret = wasm.parseSfc(ptr0, len0, options);
414
+ if (ret[2]) {
415
+ throw takeFromExternrefTable0(ret[1]);
416
+ }
417
+ return takeFromExternrefTable0(ret[0]);
418
+ }
419
+
420
+ /**
421
+ * Parse template to AST (free function)
422
+ * @param {string} template
423
+ * @param {any} options
424
+ * @returns {any}
425
+ */
426
+ export function parseTemplate(template, options) {
427
+ const ptr0 = passStringToWasm0(template, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
428
+ const len0 = WASM_VECTOR_LEN;
429
+ const ret = wasm.parseTemplate(ptr0, len0, options);
430
+ if (ret[2]) {
431
+ throw takeFromExternrefTable0(ret[1]);
432
+ }
433
+ return takeFromExternrefTable0(ret[0]);
434
+ }
435
+
436
+ /**
437
+ * Perform type checking on a Vue SFC
438
+ *
439
+ * This performs AST-based type analysis without requiring a TypeScript compiler.
440
+ * For full type checking, use the CLI with tsgo integration.
441
+ * @param {string} source
442
+ * @param {any} options
443
+ * @returns {any}
444
+ */
445
+ export function typeCheck(source, options) {
446
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
447
+ const len0 = WASM_VECTOR_LEN;
448
+ const ret = wasm.typeCheck(ptr0, len0, options);
449
+ if (ret[2]) {
450
+ throw takeFromExternrefTable0(ret[1]);
451
+ }
452
+ return takeFromExternrefTable0(ret[0]);
453
+ }
454
+
455
+ function __wbg_get_imports() {
456
+ const import0 = {
457
+ __proto__: null,
458
+ __wbg_Error_ecbf49c1b9d07c30: function(arg0, arg1) {
459
+ const ret = Error(getStringFromWasm0(arg0, arg1));
460
+ return ret;
461
+ },
462
+ __wbg_Number_7da99b0afe51b89a: function(arg0) {
463
+ const ret = Number(arg0);
464
+ return ret;
465
+ },
466
+ __wbg_String_8564e559799eccda: function(arg0, arg1) {
467
+ const ret = String(arg1);
468
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
469
+ const len1 = WASM_VECTOR_LEN;
470
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
471
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
472
+ },
473
+ __wbg___wbindgen_boolean_get_4a348b369b009243: function(arg0) {
474
+ const v = arg0;
475
+ const ret = typeof(v) === 'boolean' ? v : undefined;
476
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
477
+ },
478
+ __wbg___wbindgen_debug_string_43c7ccb034739216: function(arg0, arg1) {
479
+ const ret = debugString(arg1);
480
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
481
+ const len1 = WASM_VECTOR_LEN;
482
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
483
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
484
+ },
485
+ __wbg___wbindgen_in_035107858ad0083e: function(arg0, arg1) {
486
+ const ret = arg0 in arg1;
487
+ return ret;
488
+ },
489
+ __wbg___wbindgen_is_function_18bea6e84080c016: function(arg0) {
490
+ const ret = typeof(arg0) === 'function';
491
+ return ret;
492
+ },
493
+ __wbg___wbindgen_is_null_c5f5bb76436a9ab1: function(arg0) {
494
+ const ret = arg0 === null;
495
+ return ret;
496
+ },
497
+ __wbg___wbindgen_is_object_8d3fac158b36498d: function(arg0) {
498
+ const val = arg0;
499
+ const ret = typeof(val) === 'object' && val !== null;
500
+ return ret;
501
+ },
502
+ __wbg___wbindgen_is_string_4d5f2c5b2acf65b0: function(arg0) {
503
+ const ret = typeof(arg0) === 'string';
504
+ return ret;
505
+ },
506
+ __wbg___wbindgen_is_undefined_4a711ea9d2e1ef93: function(arg0) {
507
+ const ret = arg0 === undefined;
508
+ return ret;
509
+ },
510
+ __wbg___wbindgen_jsval_loose_eq_1a2067dfb025b5ec: function(arg0, arg1) {
511
+ const ret = arg0 == arg1;
512
+ return ret;
513
+ },
514
+ __wbg___wbindgen_number_get_eed4462ef92e1bed: function(arg0, arg1) {
515
+ const obj = arg1;
516
+ const ret = typeof(obj) === 'number' ? obj : undefined;
517
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
518
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
519
+ },
520
+ __wbg___wbindgen_string_get_d09f733449cbf7a2: function(arg0, arg1) {
521
+ const obj = arg1;
522
+ const ret = typeof(obj) === 'string' ? obj : undefined;
523
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
524
+ var len1 = WASM_VECTOR_LEN;
525
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
526
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
527
+ },
528
+ __wbg___wbindgen_throw_df03e93053e0f4bc: function(arg0, arg1) {
529
+ throw new Error(getStringFromWasm0(arg0, arg1));
530
+ },
531
+ __wbg_call_df7a43aecab856a8: function() { return handleError(function (arg0, arg1) {
532
+ const ret = arg0.call(arg1);
533
+ return ret;
534
+ }, arguments); },
535
+ __wbg_done_0ad70482cae88a68: function(arg0) {
536
+ const ret = arg0.done;
537
+ return ret;
538
+ },
539
+ __wbg_entries_d58050057c0390ac: function(arg0) {
540
+ const ret = Object.entries(arg0);
541
+ return ret;
542
+ },
543
+ __wbg_from_291708c278f9eb83: function(arg0) {
544
+ const ret = Array.from(arg0);
545
+ return ret;
546
+ },
547
+ __wbg_get_6f5cf69c8f3f094a: function() { return handleError(function (arg0, arg1) {
548
+ const ret = Reflect.get(arg0, arg1);
549
+ return ret;
550
+ }, arguments); },
551
+ __wbg_get_c40e2c3262995a8e: function(arg0, arg1) {
552
+ const ret = arg0[arg1 >>> 0];
553
+ return ret;
554
+ },
555
+ __wbg_get_d0e1306db90b68d9: function() { return handleError(function (arg0, arg1) {
556
+ const ret = Reflect.get(arg0, arg1);
557
+ return ret;
558
+ }, arguments); },
559
+ __wbg_get_unchecked_3de5bfaaea65f86b: function(arg0, arg1) {
560
+ const ret = arg0[arg1 >>> 0];
561
+ return ret;
562
+ },
563
+ __wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
564
+ const ret = arg0[arg1];
565
+ return ret;
566
+ },
567
+ __wbg_instanceof_ArrayBuffer_d8e4e51f1cf7287a: function(arg0) {
568
+ let result;
569
+ try {
570
+ result = arg0 instanceof ArrayBuffer;
571
+ } catch (_) {
572
+ result = false;
573
+ }
574
+ const ret = result;
575
+ return ret;
576
+ },
577
+ __wbg_instanceof_Uint8Array_6e48d83da6091cc8: function(arg0) {
578
+ let result;
579
+ try {
580
+ result = arg0 instanceof Uint8Array;
581
+ } catch (_) {
582
+ result = false;
583
+ }
584
+ const ret = result;
585
+ return ret;
586
+ },
587
+ __wbg_isArray_2efa5973cef6ec32: function(arg0) {
588
+ const ret = Array.isArray(arg0);
589
+ return ret;
590
+ },
591
+ __wbg_isSafeInteger_6709fb28be12d738: function(arg0) {
592
+ const ret = Number.isSafeInteger(arg0);
593
+ return ret;
594
+ },
595
+ __wbg_iterator_e77d2b7575cca5a7: function() {
596
+ const ret = Symbol.iterator;
597
+ return ret;
598
+ },
599
+ __wbg_length_00dd7227fd4626ad: function(arg0) {
600
+ const ret = arg0.length;
601
+ return ret;
602
+ },
603
+ __wbg_length_5e07cf181b2745fb: function(arg0) {
604
+ const ret = arg0.length;
605
+ return ret;
606
+ },
607
+ __wbg_new_62f131e968c83d75: function() {
608
+ const ret = new Object();
609
+ return ret;
610
+ },
611
+ __wbg_new_66075f8c2ea6575e: function() {
612
+ const ret = new Array();
613
+ return ret;
614
+ },
615
+ __wbg_new_74eb411a4d7bd3f1: function() {
616
+ const ret = new Map();
617
+ return ret;
618
+ },
619
+ __wbg_new_a0479da6258a0d71: function(arg0) {
620
+ const ret = new Uint8Array(arg0);
621
+ return ret;
622
+ },
623
+ __wbg_next_5428439dfc1d0362: function() { return handleError(function (arg0) {
624
+ const ret = arg0.next();
625
+ return ret;
626
+ }, arguments); },
627
+ __wbg_next_d314789a105729f3: function(arg0) {
628
+ const ret = arg0.next;
629
+ return ret;
630
+ },
631
+ __wbg_parse_18a4a613f7a65376: function() { return handleError(function (arg0, arg1) {
632
+ const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
633
+ return ret;
634
+ }, arguments); },
635
+ __wbg_prototypesetcall_d1a7133bc8d83aa9: function(arg0, arg1, arg2) {
636
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
637
+ },
638
+ __wbg_set_3ba5af57f57f831c: function(arg0, arg1, arg2) {
639
+ const ret = arg0.set(arg1, arg2);
640
+ return ret;
641
+ },
642
+ __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
643
+ arg0[arg1] = arg2;
644
+ },
645
+ __wbg_set_7bf9e2df46e7632c: function(arg0, arg1, arg2) {
646
+ arg0[arg1 >>> 0] = arg2;
647
+ },
648
+ __wbg_stringify_c585a2d825a78689: function() { return handleError(function (arg0) {
649
+ const ret = JSON.stringify(arg0);
650
+ return ret;
651
+ }, arguments); },
652
+ __wbg_value_414b42ce7b3eca22: function(arg0) {
653
+ const ret = arg0.value;
654
+ return ret;
655
+ },
656
+ __wbindgen_cast_0000000000000001: function(arg0) {
657
+ // Cast intrinsic for `F64 -> Externref`.
658
+ const ret = arg0;
659
+ return ret;
660
+ },
661
+ __wbindgen_cast_0000000000000002: function(arg0) {
662
+ // Cast intrinsic for `I64 -> Externref`.
663
+ const ret = arg0;
664
+ return ret;
665
+ },
666
+ __wbindgen_cast_0000000000000003: function(arg0, arg1) {
667
+ // Cast intrinsic for `Ref(String) -> Externref`.
668
+ const ret = getStringFromWasm0(arg0, arg1);
669
+ return ret;
670
+ },
671
+ __wbindgen_cast_0000000000000004: function(arg0) {
672
+ // Cast intrinsic for `U64 -> Externref`.
673
+ const ret = BigInt.asUintN(64, arg0);
674
+ return ret;
675
+ },
676
+ __wbindgen_init_externref_table: function() {
677
+ const table = wasm.__wbindgen_externrefs;
678
+ const offset = table.grow(4);
679
+ table.set(0, undefined);
680
+ table.set(offset + 0, undefined);
681
+ table.set(offset + 1, null);
682
+ table.set(offset + 2, true);
683
+ table.set(offset + 3, false);
684
+ },
685
+ };
686
+ return {
687
+ __proto__: null,
688
+ "./vize_vitrine_bg.js": import0,
689
+ };
690
+ }
691
+
692
+ const CompilerFinalization = (typeof FinalizationRegistry === 'undefined')
693
+ ? { register: () => {}, unregister: () => {} }
694
+ : new FinalizationRegistry(ptr => wasm.__wbg_compiler_free(ptr >>> 0, 1));
695
+
696
+ function addToExternrefTable0(obj) {
697
+ const idx = wasm.__externref_table_alloc();
698
+ wasm.__wbindgen_externrefs.set(idx, obj);
699
+ return idx;
700
+ }
701
+
702
+ function debugString(val) {
703
+ // primitive types
704
+ const type = typeof val;
705
+ if (type == 'number' || type == 'boolean' || val == null) {
706
+ return `${val}`;
707
+ }
708
+ if (type == 'string') {
709
+ return `"${val}"`;
710
+ }
711
+ if (type == 'symbol') {
712
+ const description = val.description;
713
+ if (description == null) {
714
+ return 'Symbol';
715
+ } else {
716
+ return `Symbol(${description})`;
717
+ }
718
+ }
719
+ if (type == 'function') {
720
+ const name = val.name;
721
+ if (typeof name == 'string' && name.length > 0) {
722
+ return `Function(${name})`;
723
+ } else {
724
+ return 'Function';
725
+ }
726
+ }
727
+ // objects
728
+ if (Array.isArray(val)) {
729
+ const length = val.length;
730
+ let debug = '[';
731
+ if (length > 0) {
732
+ debug += debugString(val[0]);
733
+ }
734
+ for(let i = 1; i < length; i++) {
735
+ debug += ', ' + debugString(val[i]);
736
+ }
737
+ debug += ']';
738
+ return debug;
739
+ }
740
+ // Test for built-in
741
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
742
+ let className;
743
+ if (builtInMatches && builtInMatches.length > 1) {
744
+ className = builtInMatches[1];
745
+ } else {
746
+ // Failed to match the standard '[object ClassName]'
747
+ return toString.call(val);
748
+ }
749
+ if (className == 'Object') {
750
+ // we're a user defined class or Object
751
+ // JSON.stringify avoids problems with cycles, and is generally much
752
+ // easier than looping through ownProperties of `val`.
753
+ try {
754
+ return 'Object(' + JSON.stringify(val) + ')';
755
+ } catch (_) {
756
+ return 'Object';
757
+ }
758
+ }
759
+ // errors
760
+ if (val instanceof Error) {
761
+ return `${val.name}: ${val.message}\n${val.stack}`;
762
+ }
763
+ // TODO we could test for more things here, like `Set`s and `Map`s.
764
+ return className;
765
+ }
766
+
767
+ function getArrayU8FromWasm0(ptr, len) {
768
+ ptr = ptr >>> 0;
769
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
770
+ }
771
+
772
+ let cachedDataViewMemory0 = null;
773
+ function getDataViewMemory0() {
774
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
775
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
776
+ }
777
+ return cachedDataViewMemory0;
778
+ }
779
+
780
+ function getStringFromWasm0(ptr, len) {
781
+ ptr = ptr >>> 0;
782
+ return decodeText(ptr, len);
783
+ }
784
+
785
+ let cachedUint8ArrayMemory0 = null;
786
+ function getUint8ArrayMemory0() {
787
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
788
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
789
+ }
790
+ return cachedUint8ArrayMemory0;
791
+ }
792
+
793
+ function handleError(f, args) {
794
+ try {
795
+ return f.apply(this, args);
796
+ } catch (e) {
797
+ const idx = addToExternrefTable0(e);
798
+ wasm.__wbindgen_exn_store(idx);
799
+ }
800
+ }
801
+
802
+ function isLikeNone(x) {
803
+ return x === undefined || x === null;
804
+ }
805
+
806
+ function passStringToWasm0(arg, malloc, realloc) {
807
+ if (realloc === undefined) {
808
+ const buf = cachedTextEncoder.encode(arg);
809
+ const ptr = malloc(buf.length, 1) >>> 0;
810
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
811
+ WASM_VECTOR_LEN = buf.length;
812
+ return ptr;
813
+ }
814
+
815
+ let len = arg.length;
816
+ let ptr = malloc(len, 1) >>> 0;
817
+
818
+ const mem = getUint8ArrayMemory0();
819
+
820
+ let offset = 0;
821
+
822
+ for (; offset < len; offset++) {
823
+ const code = arg.charCodeAt(offset);
824
+ if (code > 0x7F) break;
825
+ mem[ptr + offset] = code;
826
+ }
827
+ if (offset !== len) {
828
+ if (offset !== 0) {
829
+ arg = arg.slice(offset);
830
+ }
831
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
832
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
833
+ const ret = cachedTextEncoder.encodeInto(arg, view);
834
+
835
+ offset += ret.written;
836
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
837
+ }
838
+
839
+ WASM_VECTOR_LEN = offset;
840
+ return ptr;
841
+ }
842
+
843
+ function takeFromExternrefTable0(idx) {
844
+ const value = wasm.__wbindgen_externrefs.get(idx);
845
+ wasm.__externref_table_dealloc(idx);
846
+ return value;
847
+ }
848
+
849
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
850
+ cachedTextDecoder.decode();
851
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
852
+ let numBytesDecoded = 0;
853
+ function decodeText(ptr, len) {
854
+ numBytesDecoded += len;
855
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
856
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
857
+ cachedTextDecoder.decode();
858
+ numBytesDecoded = len;
859
+ }
860
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
861
+ }
862
+
863
+ const cachedTextEncoder = new TextEncoder();
864
+
865
+ if (!('encodeInto' in cachedTextEncoder)) {
866
+ cachedTextEncoder.encodeInto = function (arg, view) {
867
+ const buf = cachedTextEncoder.encode(arg);
868
+ view.set(buf);
869
+ return {
870
+ read: arg.length,
871
+ written: buf.length
872
+ };
873
+ };
874
+ }
875
+
876
+ let WASM_VECTOR_LEN = 0;
877
+
878
+ let wasmModule, wasm;
879
+ function __wbg_finalize_init(instance, module) {
880
+ wasm = instance.exports;
881
+ wasmModule = module;
882
+ cachedDataViewMemory0 = null;
883
+ cachedUint8ArrayMemory0 = null;
884
+ wasm.__wbindgen_start();
885
+ return wasm;
886
+ }
887
+
888
+ async function __wbg_load(module, imports) {
889
+ if (typeof Response === 'function' && module instanceof Response) {
890
+ if (typeof WebAssembly.instantiateStreaming === 'function') {
891
+ try {
892
+ return await WebAssembly.instantiateStreaming(module, imports);
893
+ } catch (e) {
894
+ const validResponse = module.ok && expectedResponseType(module.type);
895
+
896
+ if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
897
+ console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
898
+
899
+ } else { throw e; }
900
+ }
901
+ }
902
+
903
+ const bytes = await module.arrayBuffer();
904
+ return await WebAssembly.instantiate(bytes, imports);
905
+ } else {
906
+ const instance = await WebAssembly.instantiate(module, imports);
907
+
908
+ if (instance instanceof WebAssembly.Instance) {
909
+ return { instance, module };
910
+ } else {
911
+ return instance;
912
+ }
913
+ }
914
+
915
+ function expectedResponseType(type) {
916
+ switch (type) {
917
+ case 'basic': case 'cors': case 'default': return true;
918
+ }
919
+ return false;
920
+ }
921
+ }
922
+
923
+ function initSync(module) {
924
+ if (wasm !== undefined) return wasm;
925
+
926
+
927
+ if (module !== undefined) {
928
+ if (Object.getPrototypeOf(module) === Object.prototype) {
929
+ ({module} = module)
930
+ } else {
931
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
932
+ }
933
+ }
934
+
935
+ const imports = __wbg_get_imports();
936
+ if (!(module instanceof WebAssembly.Module)) {
937
+ module = new WebAssembly.Module(module);
938
+ }
939
+ const instance = new WebAssembly.Instance(module, imports);
940
+ return __wbg_finalize_init(instance, module);
941
+ }
942
+
943
+ async function __wbg_init(module_or_path) {
944
+ if (wasm !== undefined) return wasm;
945
+
946
+
947
+ if (module_or_path !== undefined) {
948
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
949
+ ({module_or_path} = module_or_path)
950
+ } else {
951
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
952
+ }
953
+ }
954
+
955
+ if (module_or_path === undefined) {
956
+ module_or_path = new URL('vize_vitrine_bg.wasm', import.meta.url);
957
+ }
958
+ const imports = __wbg_get_imports();
959
+
960
+ if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
961
+ module_or_path = fetch(module_or_path);
962
+ }
963
+
964
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
965
+
966
+ return __wbg_finalize_init(instance, module);
967
+ }
968
+
969
+ export { initSync, __wbg_init as default };
Binary file