@utoo/web 1.2.6 → 1.2.8

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/esm/utoo/index.js CHANGED
@@ -1,565 +1,252 @@
1
- let wasm;
2
- function addHeapObject(obj) {
3
- if (heap_next === heap.length)
4
- heap.push(heap.length + 1);
5
- const idx = heap_next;
6
- heap_next = heap[idx];
7
- heap[idx] = obj;
8
- return idx;
9
- }
10
- function _assertClass(instance, klass) {
11
- if (!(instance instanceof klass)) {
12
- throw new Error(`expected instance of ${klass.name}`);
1
+ /* @ts-self-types="./index.d.ts" */
2
+ export class CreateSyncAccessHandleOptions {
3
+ static __wrap(ptr) {
4
+ ptr = ptr >>> 0;
5
+ const obj = Object.create(CreateSyncAccessHandleOptions.prototype);
6
+ obj.__wbg_ptr = ptr;
7
+ CreateSyncAccessHandleOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
8
+ return obj;
13
9
  }
14
- }
15
- function addBorrowedObject(obj) {
16
- if (stack_pointer == 1)
17
- throw new Error('out of js stack');
18
- heap[--stack_pointer] = obj;
19
- return stack_pointer;
20
- }
21
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
22
- ? { register: () => { }, unregister: () => { } }
23
- : new FinalizationRegistry(state => state.dtor(state.a, state.b));
24
- function debugString(val) {
25
- // primitive types
26
- const type = typeof val;
27
- if (type == 'number' || type == 'boolean' || val == null) {
28
- return `${val}`;
10
+ __destroy_into_raw() {
11
+ const ptr = this.__wbg_ptr;
12
+ this.__wbg_ptr = 0;
13
+ CreateSyncAccessHandleOptionsFinalization.unregister(this);
14
+ return ptr;
29
15
  }
30
- if (type == 'string') {
31
- return `"${val}"`;
16
+ free() {
17
+ const ptr = this.__destroy_into_raw();
18
+ wasm.__wbg_createsyncaccesshandleoptions_free(ptr, 0);
32
19
  }
33
- if (type == 'symbol') {
34
- const description = val.description;
35
- if (description == null) {
36
- return 'Symbol';
37
- }
38
- else {
39
- return `Symbol(${description})`;
40
- }
20
+ }
21
+ if (Symbol.dispose)
22
+ CreateSyncAccessHandleOptions.prototype[Symbol.dispose] = CreateSyncAccessHandleOptions.prototype.free;
23
+ export class DirEntry {
24
+ static __wrap(ptr) {
25
+ ptr = ptr >>> 0;
26
+ const obj = Object.create(DirEntry.prototype);
27
+ obj.__wbg_ptr = ptr;
28
+ DirEntryFinalization.register(obj, obj.__wbg_ptr, obj);
29
+ return obj;
41
30
  }
42
- if (type == 'function') {
43
- const name = val.name;
44
- if (typeof name == 'string' && name.length > 0) {
45
- return `Function(${name})`;
46
- }
47
- else {
48
- return 'Function';
49
- }
31
+ toJSON() {
32
+ return {
33
+ name: this.name,
34
+ type: this.type,
35
+ };
50
36
  }
51
- // objects
52
- if (Array.isArray(val)) {
53
- const length = val.length;
54
- let debug = '[';
55
- if (length > 0) {
56
- debug += debugString(val[0]);
57
- }
58
- for (let i = 1; i < length; i++) {
59
- debug += ', ' + debugString(val[i]);
60
- }
61
- debug += ']';
62
- return debug;
37
+ toString() {
38
+ return JSON.stringify(this);
63
39
  }
64
- // Test for built-in
65
- const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
66
- let className;
67
- if (builtInMatches && builtInMatches.length > 1) {
68
- className = builtInMatches[1];
40
+ __destroy_into_raw() {
41
+ const ptr = this.__wbg_ptr;
42
+ this.__wbg_ptr = 0;
43
+ DirEntryFinalization.unregister(this);
44
+ return ptr;
69
45
  }
70
- else {
71
- // Failed to match the standard '[object ClassName]'
72
- return toString.call(val);
46
+ free() {
47
+ const ptr = this.__destroy_into_raw();
48
+ wasm.__wbg_direntry_free(ptr, 0);
73
49
  }
74
- if (className == 'Object') {
75
- // we're a user defined class or Object
76
- // JSON.stringify avoids problems with cycles, and is generally much
77
- // easier than looping through ownProperties of `val`.
50
+ /**
51
+ * @returns {string}
52
+ */
53
+ get name() {
54
+ let deferred1_0;
55
+ let deferred1_1;
78
56
  try {
79
- return 'Object(' + JSON.stringify(val) + ')';
57
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
58
+ wasm.__wbg_get_direntry_name(retptr, this.__wbg_ptr);
59
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
60
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
61
+ deferred1_0 = r0;
62
+ deferred1_1 = r1;
63
+ return getStringFromWasm0(r0, r1);
80
64
  }
81
- catch (_) {
82
- return 'Object';
65
+ finally {
66
+ wasm.__wbindgen_add_to_stack_pointer(16);
67
+ wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
83
68
  }
84
69
  }
85
- // errors
86
- if (val instanceof Error) {
87
- return `${val.name}: ${val.message}\n${val.stack}`;
70
+ /**
71
+ * @returns {DirEntryType}
72
+ */
73
+ get type() {
74
+ const ret = wasm.__wbg_get_direntry_type(this.__wbg_ptr);
75
+ return __wbindgen_enum_DirEntryType[ret];
88
76
  }
89
- // TODO we could test for more things here, like `Set`s and `Map`s.
90
- return className;
91
- }
92
- function dropObject(idx) {
93
- if (idx < 132)
94
- return;
95
- heap[idx] = heap_next;
96
- heap_next = idx;
97
- }
98
- function getArrayJsValueFromWasm0(ptr, len) {
99
- ptr = ptr >>> 0;
100
- const mem = getDataViewMemory0();
101
- const result = [];
102
- for (let i = ptr; i < ptr + 4 * len; i += 4) {
103
- result.push(takeObject(mem.getUint32(i, true)));
77
+ /**
78
+ * @param {string} arg0
79
+ */
80
+ set name(arg0) {
81
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export, wasm.__wbindgen_export2);
82
+ const len0 = WASM_VECTOR_LEN;
83
+ wasm.__wbg_set_direntry_name(this.__wbg_ptr, ptr0, len0);
104
84
  }
105
- return result;
106
- }
107
- function getArrayU8FromWasm0(ptr, len) {
108
- ptr = ptr >>> 0;
109
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
110
- }
111
- let cachedDataViewMemory0 = null;
112
- function getDataViewMemory0() {
113
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
114
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
85
+ /**
86
+ * @param {DirEntryType} arg0
87
+ */
88
+ set type(arg0) {
89
+ wasm.__wbg_set_direntry_type(this.__wbg_ptr, (__wbindgen_enum_DirEntryType.indexOf(arg0) + 1 || 3) - 1);
115
90
  }
116
- return cachedDataViewMemory0;
117
- }
118
- function getStringFromWasm0(ptr, len) {
119
- ptr = ptr >>> 0;
120
- return decodeText(ptr, len);
121
91
  }
122
- let cachedUint8ArrayMemory0 = null;
123
- function getUint8ArrayMemory0() {
124
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.buffer !== wasm.memory.buffer) {
125
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
92
+ if (Symbol.dispose)
93
+ DirEntry.prototype[Symbol.dispose] = DirEntry.prototype.free;
94
+ export class Fs {
95
+ __destroy_into_raw() {
96
+ const ptr = this.__wbg_ptr;
97
+ this.__wbg_ptr = 0;
98
+ FsFinalization.unregister(this);
99
+ return ptr;
126
100
  }
127
- return cachedUint8ArrayMemory0;
128
- }
129
- function getObject(idx) { return heap[idx]; }
130
- function handleError(f, args) {
131
- try {
132
- return f.apply(this, args);
101
+ free() {
102
+ const ptr = this.__destroy_into_raw();
103
+ wasm.__wbg_fs_free(ptr, 0);
133
104
  }
134
- catch (e) {
135
- wasm.__wbindgen_export3(addHeapObject(e));
105
+ /**
106
+ * @param {string} src
107
+ * @param {string} dst
108
+ * @returns {Promise<void>}
109
+ */
110
+ static copyFile(src, dst) {
111
+ const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
112
+ const len0 = WASM_VECTOR_LEN;
113
+ const ptr1 = passStringToWasm0(dst, wasm.__wbindgen_export, wasm.__wbindgen_export2);
114
+ const len1 = WASM_VECTOR_LEN;
115
+ const ret = wasm.fs_copyFile(ptr0, len0, ptr1, len1);
116
+ return takeObject(ret);
136
117
  }
137
- }
138
- let heap = new Array(128).fill(undefined);
139
- heap.push(undefined, null, true, false);
140
- let heap_next = heap.length;
141
- function isLikeNone(x) {
142
- return x === undefined || x === null;
143
- }
144
- function makeClosure(arg0, arg1, dtor, f) {
145
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
146
- const real = (...args) => {
147
- // First up with a closure we increment the internal reference
148
- // count. This ensures that the Rust closure environment won't
149
- // be deallocated while we're invoking it.
150
- state.cnt++;
118
+ /**
119
+ * @param {string} src
120
+ * @param {string} dst
121
+ */
122
+ static copyFileSync(src, dst) {
151
123
  try {
152
- return f(state.a, state.b, ...args);
124
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
125
+ const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
126
+ const len0 = WASM_VECTOR_LEN;
127
+ const ptr1 = passStringToWasm0(dst, wasm.__wbindgen_export, wasm.__wbindgen_export2);
128
+ const len1 = WASM_VECTOR_LEN;
129
+ wasm.fs_copyFileSync(retptr, ptr0, len0, ptr1, len1);
130
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
131
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
132
+ if (r1) {
133
+ throw takeObject(r0);
134
+ }
153
135
  }
154
136
  finally {
155
- real._wbg_cb_unref();
156
- }
157
- };
158
- real._wbg_cb_unref = () => {
159
- if (--state.cnt === 0) {
160
- state.dtor(state.a, state.b);
161
- state.a = 0;
162
- CLOSURE_DTORS.unregister(state);
137
+ wasm.__wbindgen_add_to_stack_pointer(16);
163
138
  }
164
- };
165
- CLOSURE_DTORS.register(real, state, state);
166
- return real;
167
- }
168
- function makeMutClosure(arg0, arg1, dtor, f) {
169
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
170
- const real = (...args) => {
171
- // First up with a closure we increment the internal reference
172
- // count. This ensures that the Rust closure environment won't
173
- // be deallocated while we're invoking it.
174
- state.cnt++;
175
- const a = state.a;
176
- state.a = 0;
177
- try {
178
- return f(a, state.b, ...args);
179
- }
180
- finally {
181
- state.a = a;
182
- real._wbg_cb_unref();
183
- }
184
- };
185
- real._wbg_cb_unref = () => {
186
- if (--state.cnt === 0) {
187
- state.dtor(state.a, state.b);
188
- state.a = 0;
189
- CLOSURE_DTORS.unregister(state);
190
- }
191
- };
192
- CLOSURE_DTORS.register(real, state, state);
193
- return real;
194
- }
195
- function passArrayJsValueToWasm0(array, malloc) {
196
- const ptr = malloc(array.length * 4, 4) >>> 0;
197
- const mem = getDataViewMemory0();
198
- for (let i = 0; i < array.length; i++) {
199
- mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
200
139
  }
201
- WASM_VECTOR_LEN = array.length;
202
- return ptr;
203
- }
204
- function passStringToWasm0(arg, malloc, realloc) {
205
- if (realloc === undefined) {
206
- const buf = cachedTextEncoder.encode(arg);
207
- const ptr = malloc(buf.length, 1) >>> 0;
208
- getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
209
- WASM_VECTOR_LEN = buf.length;
210
- return ptr;
140
+ /**
141
+ * @param {string} path
142
+ * @returns {Promise<void>}
143
+ */
144
+ static createDir(path) {
145
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
146
+ const len0 = WASM_VECTOR_LEN;
147
+ const ret = wasm.fs_createDir(ptr0, len0);
148
+ return takeObject(ret);
211
149
  }
212
- let len = arg.length;
213
- let ptr = malloc(len, 1) >>> 0;
214
- const mem = getUint8ArrayMemory0();
215
- let offset = 0;
216
- for (; offset < len; offset++) {
217
- const code = arg.charCodeAt(offset);
218
- if (code > 0x7F)
219
- break;
220
- mem[ptr + offset] = code;
150
+ /**
151
+ * @param {string} path
152
+ * @returns {Promise<void>}
153
+ */
154
+ static createDirAll(path) {
155
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
156
+ const len0 = WASM_VECTOR_LEN;
157
+ const ret = wasm.fs_createDirAll(ptr0, len0);
158
+ return takeObject(ret);
221
159
  }
222
- if (offset !== len) {
223
- if (offset !== 0) {
224
- arg = arg.slice(offset);
160
+ /**
161
+ * @param {string} path
162
+ */
163
+ static createDirAllSync(path) {
164
+ try {
165
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
166
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
167
+ const len0 = WASM_VECTOR_LEN;
168
+ wasm.fs_createDirAllSync(retptr, ptr0, len0);
169
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
170
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
171
+ if (r1) {
172
+ throw takeObject(r0);
173
+ }
174
+ }
175
+ finally {
176
+ wasm.__wbindgen_add_to_stack_pointer(16);
225
177
  }
226
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
227
- const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
228
- const ret = cachedTextEncoder.encodeInto(arg, view);
229
- offset += ret.written;
230
- ptr = realloc(ptr, len, offset, 1) >>> 0;
231
- }
232
- WASM_VECTOR_LEN = offset;
233
- return ptr;
234
- }
235
- let stack_pointer = 128;
236
- function takeObject(idx) {
237
- const ret = getObject(idx);
238
- dropObject(idx);
239
- return ret;
240
- }
241
- let cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : undefined);
242
- if (cachedTextDecoder)
243
- cachedTextDecoder.decode();
244
- const MAX_SAFARI_DECODE_BYTES = 2146435072;
245
- let numBytesDecoded = 0;
246
- function decodeText(ptr, len) {
247
- numBytesDecoded += len;
248
- if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
249
- cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
250
- cachedTextDecoder.decode();
251
- numBytesDecoded = len;
252
- }
253
- return cachedTextDecoder.decode(getUint8ArrayMemory0().slice(ptr, ptr + len));
254
- }
255
- const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder() : undefined);
256
- if (cachedTextEncoder) {
257
- cachedTextEncoder.encodeInto = function (arg, view) {
258
- const buf = cachedTextEncoder.encode(arg);
259
- view.set(buf);
260
- return {
261
- read: arg.length,
262
- written: buf.length
263
- };
264
- };
265
- }
266
- let WASM_VECTOR_LEN = 0;
267
- function __wasm_bindgen_func_elem_22473(arg0, arg1) {
268
- wasm.__wasm_bindgen_func_elem_22473(arg0, arg1);
269
- }
270
- function __wasm_bindgen_func_elem_83121(arg0, arg1, arg2) {
271
- wasm.__wasm_bindgen_func_elem_83121(arg0, arg1, addHeapObject(arg2));
272
- }
273
- function __wasm_bindgen_func_elem_83372(arg0, arg1, arg2) {
274
- wasm.__wasm_bindgen_func_elem_83372(arg0, arg1, addHeapObject(arg2));
275
- }
276
- function __wasm_bindgen_func_elem_83427(arg0, arg1, arg2) {
277
- try {
278
- wasm.__wasm_bindgen_func_elem_83427(arg0, arg1, addBorrowedObject(arg2));
279
- }
280
- finally {
281
- heap[stack_pointer++] = undefined;
282
- }
283
- }
284
- function __wasm_bindgen_func_elem_3385(arg0, arg1, arg2, arg3) {
285
- wasm.__wasm_bindgen_func_elem_3385(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
286
- }
287
- const __wbindgen_enum_DirEntryType = ["file", "directory"];
288
- const __wbindgen_enum_FileSystemChangeRecordType = ["appeared", "disappeared", "errored", "modified", "moved", "unknown"];
289
- const __wbindgen_enum_FileSystemHandleKind = ["file", "directory"];
290
- const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
291
- const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
292
- const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
293
- const __wbindgen_enum_WorkerType = ["classic", "module"];
294
- const CreateSyncAccessHandleOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
295
- ? { register: () => { }, unregister: () => { } }
296
- : new FinalizationRegistry(ptr => wasm.__wbg_createsyncaccesshandleoptions_free(ptr >>> 0, 1));
297
- const DirEntryFinalization = (typeof FinalizationRegistry === 'undefined')
298
- ? { register: () => { }, unregister: () => { } }
299
- : new FinalizationRegistry(ptr => wasm.__wbg_direntry_free(ptr >>> 0, 1));
300
- const MetadataFinalization = (typeof FinalizationRegistry === 'undefined')
301
- ? { register: () => { }, unregister: () => { } }
302
- : new FinalizationRegistry(ptr => wasm.__wbg_metadata_free(ptr >>> 0, 1));
303
- const ProjectFinalization = (typeof FinalizationRegistry === 'undefined')
304
- ? { register: () => { }, unregister: () => { } }
305
- : new FinalizationRegistry(ptr => wasm.__wbg_project_free(ptr >>> 0, 1));
306
- const WasmTaskMessageFinalization = (typeof FinalizationRegistry === 'undefined')
307
- ? { register: () => { }, unregister: () => { } }
308
- : new FinalizationRegistry(ptr => wasm.__wbg_wasmtaskmessage_free(ptr >>> 0, 1));
309
- const WebWorkerCreationFinalization = (typeof FinalizationRegistry === 'undefined')
310
- ? { register: () => { }, unregister: () => { } }
311
- : new FinalizationRegistry(ptr => wasm.__wbg_webworkercreation_free(ptr >>> 0, 1));
312
- const WebWorkerOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
313
- ? { register: () => { }, unregister: () => { } }
314
- : new FinalizationRegistry(ptr => wasm.__wbg_webworkeroptions_free(ptr >>> 0, 1));
315
- const WebWorkerTerminationFinalization = (typeof FinalizationRegistry === 'undefined')
316
- ? { register: () => { }, unregister: () => { } }
317
- : new FinalizationRegistry(ptr => wasm.__wbg_webworkertermination_free(ptr >>> 0, 1));
318
- export class CreateSyncAccessHandleOptions {
319
- static __wrap(ptr) {
320
- ptr = ptr >>> 0;
321
- const obj = Object.create(CreateSyncAccessHandleOptions.prototype);
322
- obj.__wbg_ptr = ptr;
323
- CreateSyncAccessHandleOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
324
- return obj;
325
- }
326
- __destroy_into_raw() {
327
- const ptr = this.__wbg_ptr;
328
- this.__wbg_ptr = 0;
329
- CreateSyncAccessHandleOptionsFinalization.unregister(this);
330
- return ptr;
331
- }
332
- free() {
333
- const ptr = this.__destroy_into_raw();
334
- wasm.__wbg_createsyncaccesshandleoptions_free(ptr, 0);
335
- }
336
- }
337
- if (Symbol.dispose)
338
- CreateSyncAccessHandleOptions.prototype[Symbol.dispose] = CreateSyncAccessHandleOptions.prototype.free;
339
- export class DirEntry {
340
- static __wrap(ptr) {
341
- ptr = ptr >>> 0;
342
- const obj = Object.create(DirEntry.prototype);
343
- obj.__wbg_ptr = ptr;
344
- DirEntryFinalization.register(obj, obj.__wbg_ptr, obj);
345
- return obj;
346
- }
347
- toJSON() {
348
- return {
349
- name: this.name,
350
- type: this.type,
351
- };
352
- }
353
- toString() {
354
- return JSON.stringify(this);
355
- }
356
- __destroy_into_raw() {
357
- const ptr = this.__wbg_ptr;
358
- this.__wbg_ptr = 0;
359
- DirEntryFinalization.unregister(this);
360
- return ptr;
361
- }
362
- free() {
363
- const ptr = this.__destroy_into_raw();
364
- wasm.__wbg_direntry_free(ptr, 0);
365
178
  }
366
179
  /**
367
- * @returns {string}
180
+ * @param {string} path
368
181
  */
369
- get name() {
370
- let deferred1_0;
371
- let deferred1_1;
182
+ static createDirSync(path) {
372
183
  try {
373
184
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
374
- wasm.__wbg_get_direntry_name(retptr, this.__wbg_ptr);
185
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
186
+ const len0 = WASM_VECTOR_LEN;
187
+ wasm.fs_createDirSync(retptr, ptr0, len0);
375
188
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
376
189
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
377
- deferred1_0 = r0;
378
- deferred1_1 = r1;
379
- return getStringFromWasm0(r0, r1);
190
+ if (r1) {
191
+ throw takeObject(r0);
192
+ }
380
193
  }
381
194
  finally {
382
195
  wasm.__wbindgen_add_to_stack_pointer(16);
383
- wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
384
196
  }
385
197
  }
386
198
  /**
387
- * @param {string} arg0
199
+ * @param {string} path
200
+ * @returns {Promise<Metadata>}
388
201
  */
389
- set name(arg0) {
390
- const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export, wasm.__wbindgen_export2);
202
+ static metadata(path) {
203
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
391
204
  const len0 = WASM_VECTOR_LEN;
392
- wasm.__wbg_set_direntry_name(this.__wbg_ptr, ptr0, len0);
205
+ const ret = wasm.fs_metadata(ptr0, len0);
206
+ return takeObject(ret);
393
207
  }
394
208
  /**
395
- * @returns {DirEntryType}
209
+ * @param {string} path
210
+ * @returns {Metadata}
396
211
  */
397
- get type() {
398
- const ret = wasm.__wbg_get_direntry_type(this.__wbg_ptr);
399
- return __wbindgen_enum_DirEntryType[ret];
212
+ static metadataSync(path) {
213
+ try {
214
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
215
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
216
+ const len0 = WASM_VECTOR_LEN;
217
+ wasm.fs_metadataSync(retptr, ptr0, len0);
218
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
219
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
220
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
221
+ if (r2) {
222
+ throw takeObject(r1);
223
+ }
224
+ return Metadata.__wrap(r0);
225
+ }
226
+ finally {
227
+ wasm.__wbindgen_add_to_stack_pointer(16);
228
+ }
400
229
  }
401
230
  /**
402
- * @param {DirEntryType} arg0
231
+ * @param {string} path
232
+ * @returns {Promise<Uint8Array>}
403
233
  */
404
- set type(arg0) {
405
- wasm.__wbg_set_direntry_type(this.__wbg_ptr, (__wbindgen_enum_DirEntryType.indexOf(arg0) + 1 || 3) - 1);
406
- }
407
- }
408
- if (Symbol.dispose)
409
- DirEntry.prototype[Symbol.dispose] = DirEntry.prototype.free;
410
- export class Metadata {
411
- static __wrap(ptr) {
412
- ptr = ptr >>> 0;
413
- const obj = Object.create(Metadata.prototype);
414
- obj.__wbg_ptr = ptr;
415
- MetadataFinalization.register(obj, obj.__wbg_ptr, obj);
416
- return obj;
417
- }
418
- toJSON() {
419
- return {
420
- type: this.type,
421
- file_size: this.file_size,
422
- };
423
- }
424
- toString() {
425
- return JSON.stringify(this);
426
- }
427
- __destroy_into_raw() {
428
- const ptr = this.__wbg_ptr;
429
- this.__wbg_ptr = 0;
430
- MetadataFinalization.unregister(this);
431
- return ptr;
432
- }
433
- free() {
434
- const ptr = this.__destroy_into_raw();
435
- wasm.__wbg_metadata_free(ptr, 0);
436
- }
437
- /**
438
- * @returns {DirEntryType}
439
- */
440
- get type() {
441
- const ret = wasm.__wbg_get_metadata_type(this.__wbg_ptr);
442
- return __wbindgen_enum_DirEntryType[ret];
443
- }
444
- /**
445
- * @param {DirEntryType} arg0
446
- */
447
- set type(arg0) {
448
- wasm.__wbg_set_metadata_type(this.__wbg_ptr, (__wbindgen_enum_DirEntryType.indexOf(arg0) + 1 || 3) - 1);
449
- }
450
- /**
451
- * @returns {bigint}
452
- */
453
- get file_size() {
454
- const ret = wasm.__wbg_get_metadata_file_size(this.__wbg_ptr);
455
- return BigInt.asUintN(64, ret);
456
- }
457
- /**
458
- * @param {bigint} arg0
459
- */
460
- set file_size(arg0) {
461
- wasm.__wbg_set_metadata_file_size(this.__wbg_ptr, arg0);
462
- }
463
- }
464
- if (Symbol.dispose)
465
- Metadata.prototype[Symbol.dispose] = Metadata.prototype.free;
466
- export class Project {
467
- __destroy_into_raw() {
468
- const ptr = this.__wbg_ptr;
469
- this.__wbg_ptr = 0;
470
- ProjectFinalization.unregister(this);
471
- return ptr;
472
- }
473
- free() {
474
- const ptr = this.__destroy_into_raw();
475
- wasm.__wbg_project_free(ptr, 0);
476
- }
477
- /**
478
- * @param {string} path
479
- * @returns {Promise<void>}
480
- */
481
- static createDir(path) {
482
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
483
- const len0 = WASM_VECTOR_LEN;
484
- const ret = wasm.project_createDir(ptr0, len0);
485
- return takeObject(ret);
486
- }
487
- /**
488
- * @param {string} path
489
- * @param {boolean} recursive
490
- * @returns {Promise<void>}
491
- */
492
- static removeDir(path, recursive) {
493
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
494
- const len0 = WASM_VECTOR_LEN;
495
- const ret = wasm.project_removeDir(ptr0, len0, recursive);
496
- return takeObject(ret);
497
- }
498
- /**
499
- * @param {string} path
500
- * @param {Uint8Array} content
501
- */
502
- static writeSync(path, content) {
503
- try {
504
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
505
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
506
- const len0 = WASM_VECTOR_LEN;
507
- wasm.project_writeSync(retptr, ptr0, len0, addHeapObject(content));
508
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
509
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
510
- if (r1) {
511
- throw takeObject(r0);
512
- }
513
- }
514
- finally {
515
- wasm.__wbindgen_add_to_stack_pointer(16);
516
- }
517
- }
518
- /**
519
- * @param {string} path
520
- * @returns {Promise<void>}
521
- */
522
- static removeFile(path) {
234
+ static read(path) {
523
235
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
524
236
  const len0 = WASM_VECTOR_LEN;
525
- const ret = wasm.project_removeFile(ptr0, len0);
237
+ const ret = wasm.fs_read(ptr0, len0);
526
238
  return takeObject(ret);
527
239
  }
528
240
  /**
529
241
  * @param {string} path
530
- * @param {string} content
531
- * @returns {Promise<void>}
242
+ * @returns {Promise<DirEntry[]>}
532
243
  */
533
- static writeString(path, content) {
244
+ static readDir(path) {
534
245
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
535
246
  const len0 = WASM_VECTOR_LEN;
536
- const ptr1 = passStringToWasm0(content, wasm.__wbindgen_export, wasm.__wbindgen_export2);
537
- const len1 = WASM_VECTOR_LEN;
538
- const ret = wasm.project_writeString(ptr0, len0, ptr1, len1);
247
+ const ret = wasm.fs_readDir(ptr0, len0);
539
248
  return takeObject(ret);
540
249
  }
541
- /**
542
- * @param {string} path
543
- * @returns {Metadata}
544
- */
545
- static metadataSync(path) {
546
- try {
547
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
548
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
549
- const len0 = WASM_VECTOR_LEN;
550
- wasm.project_metadataSync(retptr, ptr0, len0);
551
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
552
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
553
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
554
- if (r2) {
555
- throw takeObject(r1);
556
- }
557
- return Metadata.__wrap(r0);
558
- }
559
- finally {
560
- wasm.__wbindgen_add_to_stack_pointer(16);
561
- }
562
- }
563
250
  /**
564
251
  * @param {string} path
565
252
  * @returns {DirEntry[]}
@@ -569,7 +256,7 @@ export class Project {
569
256
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
570
257
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
571
258
  const len0 = WASM_VECTOR_LEN;
572
- wasm.project_readDirSync(retptr, ptr0, len0);
259
+ wasm.fs_readDirSync(retptr, ptr0, len0);
573
260
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
574
261
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
575
262
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -586,22 +273,22 @@ export class Project {
586
273
  }
587
274
  }
588
275
  /**
589
- * @param {string} src
590
- * @param {string} dst
276
+ * @param {string} path
277
+ * @returns {Uint8Array}
591
278
  */
592
- static copyFileSync(src, dst) {
279
+ static readSync(path) {
593
280
  try {
594
281
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
595
- const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
282
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
596
283
  const len0 = WASM_VECTOR_LEN;
597
- const ptr1 = passStringToWasm0(dst, wasm.__wbindgen_export, wasm.__wbindgen_export2);
598
- const len1 = WASM_VECTOR_LEN;
599
- wasm.project_copyFileSync(retptr, ptr0, len0, ptr1, len1);
284
+ wasm.fs_readSync(retptr, ptr0, len0);
600
285
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
601
286
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
602
- if (r1) {
603
- throw takeObject(r0);
287
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
288
+ if (r2) {
289
+ throw takeObject(r1);
604
290
  }
291
+ return takeObject(r0);
605
292
  }
606
293
  finally {
607
294
  wasm.__wbindgen_add_to_stack_pointer(16);
@@ -609,33 +296,35 @@ export class Project {
609
296
  }
610
297
  /**
611
298
  * @param {string} path
612
- * @returns {Promise<void>}
299
+ * @returns {Promise<string>}
613
300
  */
614
- static createDirAll(path) {
301
+ static readToString(path) {
615
302
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
616
303
  const len0 = WASM_VECTOR_LEN;
617
- const ret = wasm.project_createDirAll(ptr0, len0);
304
+ const ret = wasm.fs_readToString(ptr0, len0);
618
305
  return takeObject(ret);
619
306
  }
620
307
  /**
621
308
  * @param {string} path
622
- * @returns {Promise<string>}
309
+ * @param {boolean} recursive
310
+ * @returns {Promise<void>}
623
311
  */
624
- static readToString(path) {
312
+ static removeDir(path, recursive) {
625
313
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
626
314
  const len0 = WASM_VECTOR_LEN;
627
- const ret = wasm.project_readToString(ptr0, len0);
315
+ const ret = wasm.fs_removeDir(ptr0, len0, recursive);
628
316
  return takeObject(ret);
629
317
  }
630
318
  /**
631
319
  * @param {string} path
320
+ * @param {boolean} recursive
632
321
  */
633
- static createDirSync(path) {
322
+ static removeDirSync(path, recursive) {
634
323
  try {
635
324
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
636
325
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
637
326
  const len0 = WASM_VECTOR_LEN;
638
- wasm.project_createDirSync(retptr, ptr0, len0);
327
+ wasm.fs_removeDirSync(retptr, ptr0, len0, recursive);
639
328
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
640
329
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
641
330
  if (r1) {
@@ -648,23 +337,13 @@ export class Project {
648
337
  }
649
338
  /**
650
339
  * @param {string} path
651
- * @param {boolean} recursive
340
+ * @returns {Promise<void>}
652
341
  */
653
- static removeDirSync(path, recursive) {
654
- try {
655
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
656
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
657
- const len0 = WASM_VECTOR_LEN;
658
- wasm.project_removeDirSync(retptr, ptr0, len0, recursive);
659
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
660
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
661
- if (r1) {
662
- throw takeObject(r0);
663
- }
664
- }
665
- finally {
666
- wasm.__wbindgen_add_to_stack_pointer(16);
667
- }
342
+ static removeFile(path) {
343
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
344
+ const len0 = WASM_VECTOR_LEN;
345
+ const ret = wasm.fs_removeFile(ptr0, len0);
346
+ return takeObject(ret);
668
347
  }
669
348
  /**
670
349
  * @param {string} path
@@ -674,7 +353,7 @@ export class Project {
674
353
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
675
354
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
676
355
  const len0 = WASM_VECTOR_LEN;
677
- wasm.project_removeFileSync(retptr, ptr0, len0);
356
+ wasm.fs_removeFileSync(retptr, ptr0, len0);
678
357
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
679
358
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
680
359
  if (r1) {
@@ -687,13 +366,38 @@ export class Project {
687
366
  }
688
367
  /**
689
368
  * @param {string} path
369
+ * @param {Uint8Array} content
370
+ * @returns {Promise<void>}
690
371
  */
691
- static createDirAllSync(path) {
372
+ static write(path, content) {
373
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
374
+ const len0 = WASM_VECTOR_LEN;
375
+ const ret = wasm.fs_write(ptr0, len0, addHeapObject(content));
376
+ return takeObject(ret);
377
+ }
378
+ /**
379
+ * @param {string} path
380
+ * @param {string} content
381
+ * @returns {Promise<void>}
382
+ */
383
+ static writeString(path, content) {
384
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
385
+ const len0 = WASM_VECTOR_LEN;
386
+ const ptr1 = passStringToWasm0(content, wasm.__wbindgen_export, wasm.__wbindgen_export2);
387
+ const len1 = WASM_VECTOR_LEN;
388
+ const ret = wasm.fs_writeString(ptr0, len0, ptr1, len1);
389
+ return takeObject(ret);
390
+ }
391
+ /**
392
+ * @param {string} path
393
+ * @param {Uint8Array} content
394
+ */
395
+ static writeSync(path, content) {
692
396
  try {
693
397
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
694
398
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
695
399
  const len0 = WASM_VECTOR_LEN;
696
- wasm.project_createDirAllSync(retptr, ptr0, len0);
400
+ wasm.fs_writeSync(retptr, ptr0, len0, addHeapObject(content));
697
401
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
698
402
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
699
403
  if (r1) {
@@ -704,16 +408,93 @@ export class Project {
704
408
  wasm.__wbindgen_add_to_stack_pointer(16);
705
409
  }
706
410
  }
411
+ }
412
+ if (Symbol.dispose)
413
+ Fs.prototype[Symbol.dispose] = Fs.prototype.free;
414
+ export class Metadata {
415
+ static __wrap(ptr) {
416
+ ptr = ptr >>> 0;
417
+ const obj = Object.create(Metadata.prototype);
418
+ obj.__wbg_ptr = ptr;
419
+ MetadataFinalization.register(obj, obj.__wbg_ptr, obj);
420
+ return obj;
421
+ }
422
+ toJSON() {
423
+ return {
424
+ file_size: this.file_size,
425
+ type: this.type,
426
+ };
427
+ }
428
+ toString() {
429
+ return JSON.stringify(this);
430
+ }
431
+ __destroy_into_raw() {
432
+ const ptr = this.__wbg_ptr;
433
+ this.__wbg_ptr = 0;
434
+ MetadataFinalization.unregister(this);
435
+ return ptr;
436
+ }
437
+ free() {
438
+ const ptr = this.__destroy_into_raw();
439
+ wasm.__wbg_metadata_free(ptr, 0);
440
+ }
707
441
  /**
708
- * @returns {string}
442
+ * @returns {bigint}
709
443
  */
710
- static get cwd() {
711
- let deferred1_0;
712
- let deferred1_1;
713
- try {
714
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
715
- wasm.project_cwd(retptr);
716
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
444
+ get file_size() {
445
+ const ret = wasm.__wbg_get_metadata_file_size(this.__wbg_ptr);
446
+ return BigInt.asUintN(64, ret);
447
+ }
448
+ /**
449
+ * @returns {DirEntryType}
450
+ */
451
+ get type() {
452
+ const ret = wasm.__wbg_get_metadata_type(this.__wbg_ptr);
453
+ return __wbindgen_enum_DirEntryType[ret];
454
+ }
455
+ /**
456
+ * @param {bigint} arg0
457
+ */
458
+ set file_size(arg0) {
459
+ wasm.__wbg_set_metadata_file_size(this.__wbg_ptr, arg0);
460
+ }
461
+ /**
462
+ * @param {DirEntryType} arg0
463
+ */
464
+ set type(arg0) {
465
+ wasm.__wbg_set_metadata_type(this.__wbg_ptr, (__wbindgen_enum_DirEntryType.indexOf(arg0) + 1 || 3) - 1);
466
+ }
467
+ }
468
+ if (Symbol.dispose)
469
+ Metadata.prototype[Symbol.dispose] = Metadata.prototype.free;
470
+ export class Project {
471
+ __destroy_into_raw() {
472
+ const ptr = this.__wbg_ptr;
473
+ this.__wbg_ptr = 0;
474
+ ProjectFinalization.unregister(this);
475
+ return ptr;
476
+ }
477
+ free() {
478
+ const ptr = this.__destroy_into_raw();
479
+ wasm.__wbg_project_free(ptr, 0);
480
+ }
481
+ /**
482
+ * @returns {Promise<any>}
483
+ */
484
+ static build() {
485
+ const ret = wasm.project_build();
486
+ return takeObject(ret);
487
+ }
488
+ /**
489
+ * @returns {string}
490
+ */
491
+ static get cwd() {
492
+ let deferred1_0;
493
+ let deferred1_1;
494
+ try {
495
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
496
+ wasm.project_cwd(retptr);
497
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
717
498
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
718
499
  deferred1_0 = r0;
719
500
  deferred1_1 = r1;
@@ -760,47 +541,16 @@ export class Project {
760
541
  const len0 = WASM_VECTOR_LEN;
761
542
  wasm.project_init(ptr0, len0);
762
543
  }
763
- /**
764
- * @param {string} path
765
- * @returns {Promise<Uint8Array>}
766
- */
767
- static read(path) {
768
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
769
- const len0 = WASM_VECTOR_LEN;
770
- const ret = wasm.project_read(ptr0, len0);
771
- return takeObject(ret);
772
- }
773
- /**
774
- * @returns {Promise<any>}
775
- */
776
- static build() {
777
- const ret = wasm.project_build();
778
- return takeObject(ret);
779
- }
780
- /**
781
- * @param {string} path
782
- * @param {Uint8Array} content
783
- * @returns {Promise<void>}
784
- */
785
- static write(path, content) {
786
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
787
- const len0 = WASM_VECTOR_LEN;
788
- const ret = wasm.project_write(ptr0, len0, addHeapObject(content));
789
- return takeObject(ret);
790
- }
791
544
  /**
792
545
  * Install dependencies - downloads tgz files only, extracts on-demand when files are read
793
546
  * @param {string} package_lock
794
- * @param {number | null | undefined} max_concurrent_downloads
795
- * @param {string[]} omit
547
+ * @param {number | null} [max_concurrent_downloads]
796
548
  * @returns {Promise<void>}
797
549
  */
798
- static install(package_lock, max_concurrent_downloads, omit) {
550
+ static install(package_lock, max_concurrent_downloads) {
799
551
  const ptr0 = passStringToWasm0(package_lock, wasm.__wbindgen_export, wasm.__wbindgen_export2);
800
552
  const len0 = WASM_VECTOR_LEN;
801
- const ptr1 = passArrayJsValueToWasm0(omit, wasm.__wbindgen_export);
802
- const len1 = WASM_VECTOR_LEN;
803
- const ret = wasm.project_install(ptr0, len0, isLikeNone(max_concurrent_downloads) ? 0x100000001 : (max_concurrent_downloads) >>> 0, ptr1, len1);
553
+ const ret = wasm.project_install(ptr0, len0, isLikeNone(max_concurrent_downloads) ? 0x100000001 : (max_concurrent_downloads) >>> 0);
804
554
  return takeObject(ret);
805
555
  }
806
556
  /**
@@ -820,61 +570,6 @@ export class Project {
820
570
  const ret = wasm.project_sigMd5(addHeapObject(content));
821
571
  return takeObject(ret);
822
572
  }
823
- /**
824
- * @param {string} path
825
- * @returns {Promise<Metadata>}
826
- */
827
- static metadata(path) {
828
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
829
- const len0 = WASM_VECTOR_LEN;
830
- const ret = wasm.project_metadata(ptr0, len0);
831
- return takeObject(ret);
832
- }
833
- /**
834
- * @param {string} path
835
- * @returns {Promise<DirEntry[]>}
836
- */
837
- static readDir(path) {
838
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
839
- const len0 = WASM_VECTOR_LEN;
840
- const ret = wasm.project_readDir(ptr0, len0);
841
- return takeObject(ret);
842
- }
843
- /**
844
- * @param {string} src
845
- * @param {string} dst
846
- * @returns {Promise<void>}
847
- */
848
- static copyFile(src, dst) {
849
- const ptr0 = passStringToWasm0(src, wasm.__wbindgen_export, wasm.__wbindgen_export2);
850
- const len0 = WASM_VECTOR_LEN;
851
- const ptr1 = passStringToWasm0(dst, wasm.__wbindgen_export, wasm.__wbindgen_export2);
852
- const len1 = WASM_VECTOR_LEN;
853
- const ret = wasm.project_copyFile(ptr0, len0, ptr1, len1);
854
- return takeObject(ret);
855
- }
856
- /**
857
- * @param {string} path
858
- * @returns {Uint8Array}
859
- */
860
- static readSync(path) {
861
- try {
862
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
863
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
864
- const len0 = WASM_VECTOR_LEN;
865
- wasm.project_readSync(retptr, ptr0, len0);
866
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
867
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
868
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
869
- if (r2) {
870
- throw takeObject(r1);
871
- }
872
- return takeObject(r0);
873
- }
874
- finally {
875
- wasm.__wbindgen_add_to_stack_pointer(16);
876
- }
877
- }
878
573
  }
879
574
  if (Symbol.dispose)
880
575
  Project.prototype[Symbol.dispose] = Project.prototype.free;
@@ -896,13 +591,6 @@ export class WasmTaskMessage {
896
591
  const ptr = this.__destroy_into_raw();
897
592
  wasm.__wbg_wasmtaskmessage_free(ptr, 0);
898
593
  }
899
- /**
900
- * @returns {Uint8Array}
901
- */
902
- get data() {
903
- const ret = wasm.wasmtaskmessage_data(this.__wbg_ptr);
904
- return takeObject(ret);
905
- }
906
594
  /**
907
595
  * @returns {number}
908
596
  */
@@ -916,6 +604,13 @@ export class WasmTaskMessage {
916
604
  set taskId(arg0) {
917
605
  wasm.__wbg_set_wasmtaskmessage_taskId(this.__wbg_ptr, arg0);
918
606
  }
607
+ /**
608
+ * @returns {Uint8Array}
609
+ */
610
+ get data() {
611
+ const ret = wasm.wasmtaskmessage_data(this.__wbg_ptr);
612
+ return takeObject(ret);
613
+ }
919
614
  }
920
615
  if (Symbol.dispose)
921
616
  WasmTaskMessage.prototype[Symbol.dispose] = WasmTaskMessage.prototype.free;
@@ -976,12 +671,12 @@ export class WebWorkerOptions {
976
671
  /**
977
672
  * @returns {string}
978
673
  */
979
- get filename() {
674
+ get cwd() {
980
675
  let deferred1_0;
981
676
  let deferred1_1;
982
677
  try {
983
678
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
984
- wasm.__wbg_get_webworkeroptions_filename(retptr, this.__wbg_ptr);
679
+ wasm.__wbg_get_webworkeroptions_cwd(retptr, this.__wbg_ptr);
985
680
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
986
681
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
987
682
  deferred1_0 = r0;
@@ -993,23 +688,15 @@ export class WebWorkerOptions {
993
688
  wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
994
689
  }
995
690
  }
996
- /**
997
- * @param {string} arg0
998
- */
999
- set filename(arg0) {
1000
- const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1001
- const len0 = WASM_VECTOR_LEN;
1002
- wasm.__wbg_set_webworkeroptions_filename(this.__wbg_ptr, ptr0, len0);
1003
- }
1004
691
  /**
1005
692
  * @returns {string}
1006
693
  */
1007
- get cwd() {
694
+ get filename() {
1008
695
  let deferred1_0;
1009
696
  let deferred1_1;
1010
697
  try {
1011
698
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1012
- wasm.__wbg_get_webworkeroptions_cwd(retptr, this.__wbg_ptr);
699
+ wasm.__wbg_get_webworkeroptions_filename(retptr, this.__wbg_ptr);
1013
700
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1014
701
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1015
702
  deferred1_0 = r0;
@@ -1029,6 +716,14 @@ export class WebWorkerOptions {
1029
716
  const len0 = WASM_VECTOR_LEN;
1030
717
  wasm.__wbg_set_webworkeroptions_cwd(this.__wbg_ptr, ptr0, len0);
1031
718
  }
719
+ /**
720
+ * @param {string} arg0
721
+ */
722
+ set filename(arg0) {
723
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export, wasm.__wbindgen_export2);
724
+ const len0 = WASM_VECTOR_LEN;
725
+ wasm.__wbg_set_webworkeroptions_filename(this.__wbg_ptr, ptr0, len0);
726
+ }
1032
727
  }
1033
728
  if (Symbol.dispose)
1034
729
  WebWorkerOptions.prototype[Symbol.dispose] = WebWorkerOptions.prototype.free;
@@ -1057,6 +752,13 @@ export class WebWorkerTermination {
1057
752
  const ret = wasm.__wbg_get_webworkertermination_options(this.__wbg_ptr);
1058
753
  return WebWorkerOptions.__wrap(ret);
1059
754
  }
755
+ /**
756
+ * @returns {number}
757
+ */
758
+ get workerId() {
759
+ const ret = wasm.__wbg_get_webworkertermination_workerId(this.__wbg_ptr);
760
+ return ret >>> 0;
761
+ }
1060
762
  /**
1061
763
  * @param {WebWorkerOptions} arg0
1062
764
  */
@@ -1065,13 +767,6 @@ export class WebWorkerTermination {
1065
767
  var ptr0 = arg0.__destroy_into_raw();
1066
768
  wasm.__wbg_set_webworkertermination_options(this.__wbg_ptr, ptr0);
1067
769
  }
1068
- /**
1069
- * @returns {number}
1070
- */
1071
- get workerId() {
1072
- const ret = wasm.__wbg_get_webworkertermination_workerId(this.__wbg_ptr);
1073
- return ret >>> 0;
1074
- }
1075
770
  /**
1076
771
  * @param {number} arg0
1077
772
  */
@@ -1081,6 +776,20 @@ export class WebWorkerTermination {
1081
776
  }
1082
777
  if (Symbol.dispose)
1083
778
  WebWorkerTermination.prototype[Symbol.dispose] = WebWorkerTermination.prototype.free;
779
+ /**
780
+ * @returns {any}
781
+ */
782
+ export function getWasmMemory() {
783
+ const ret = wasm.getWasmMemory();
784
+ return takeObject(ret);
785
+ }
786
+ /**
787
+ * @returns {any}
788
+ */
789
+ export function getWasmModule() {
790
+ const ret = wasm.getWasmModule();
791
+ return takeObject(ret);
792
+ }
1084
793
  /**
1085
794
  * @param {string} filter
1086
795
  */
@@ -1122,13 +831,1129 @@ export function sendTaskMessage(message) {
1122
831
  export function wasm_thread_entry_point(ptr) {
1123
832
  wasm.wasm_thread_entry_point(ptr);
1124
833
  }
1125
- /**
1126
- * @param {number} worker_id
1127
- */
1128
- export function workerCreated(worker_id) {
1129
- wasm.workerCreated(worker_id);
834
+ /**
835
+ * @param {number} worker_id
836
+ */
837
+ export function workerCreated(worker_id) {
838
+ wasm.workerCreated(worker_id);
839
+ }
840
+ function __wbg_get_imports(memory) {
841
+ const import0 = {
842
+ __proto__: null,
843
+ __wbg_Error_8c4e43fe74559d73: function (arg0, arg1) {
844
+ const ret = Error(getStringFromWasm0(arg0, arg1));
845
+ return addHeapObject(ret);
846
+ },
847
+ __wbg_String_8f0eb39a4a4c2f66: function (arg0, arg1) {
848
+ const ret = String(getObject(arg1));
849
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
850
+ const len1 = WASM_VECTOR_LEN;
851
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
852
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
853
+ },
854
+ __wbg___wbindgen_debug_string_0bc8482c6e3508ae: function (arg0, arg1) {
855
+ const ret = debugString(getObject(arg1));
856
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
857
+ const len1 = WASM_VECTOR_LEN;
858
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
859
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
860
+ },
861
+ __wbg___wbindgen_is_function_0095a73b8b156f76: function (arg0) {
862
+ const ret = typeof (getObject(arg0)) === 'function';
863
+ return ret;
864
+ },
865
+ __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: function (arg0) {
866
+ const val = getObject(arg0);
867
+ const ret = typeof (val) === 'object' && val !== null;
868
+ return ret;
869
+ },
870
+ __wbg___wbindgen_is_string_cd444516edc5b180: function (arg0) {
871
+ const ret = typeof (getObject(arg0)) === 'string';
872
+ return ret;
873
+ },
874
+ __wbg___wbindgen_is_undefined_9e4d92534c42d778: function (arg0) {
875
+ const ret = getObject(arg0) === undefined;
876
+ return ret;
877
+ },
878
+ __wbg___wbindgen_memory_bd1fbcf21fbef3c8: function () {
879
+ const ret = wasm.memory;
880
+ return addHeapObject(ret);
881
+ },
882
+ __wbg___wbindgen_module_f6b8052d79c1cc16: function () {
883
+ const ret = wasmModule;
884
+ return addHeapObject(ret);
885
+ },
886
+ __wbg___wbindgen_number_get_8ff4255516ccad3e: function (arg0, arg1) {
887
+ const obj = getObject(arg1);
888
+ const ret = typeof (obj) === 'number' ? obj : undefined;
889
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
890
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
891
+ },
892
+ __wbg___wbindgen_rethrow_05525c567f154472: function (arg0) {
893
+ throw takeObject(arg0);
894
+ },
895
+ __wbg___wbindgen_string_get_72fb696202c56729: function (arg0, arg1) {
896
+ const obj = getObject(arg1);
897
+ const ret = typeof (obj) === 'string' ? obj : undefined;
898
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
899
+ var len1 = WASM_VECTOR_LEN;
900
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
901
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
902
+ },
903
+ __wbg___wbindgen_throw_be289d5034ed271b: function (arg0, arg1) {
904
+ throw new Error(getStringFromWasm0(arg0, arg1));
905
+ },
906
+ __wbg__wbg_cb_unref_d9b87ff7982e3b21: function (arg0) {
907
+ getObject(arg0)._wbg_cb_unref();
908
+ },
909
+ __wbg_abort_2f0584e03e8e3950: function (arg0) {
910
+ getObject(arg0).abort();
911
+ },
912
+ __wbg_abort_d549b92d3c665de1: function (arg0, arg1) {
913
+ getObject(arg0).abort(getObject(arg1));
914
+ },
915
+ __wbg_append_a992ccc37aa62dc4: function () {
916
+ return handleError(function (arg0, arg1, arg2, arg3, arg4) {
917
+ getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
918
+ }, arguments);
919
+ },
920
+ __wbg_arrayBuffer_05ce1af23e9064e8: function (arg0) {
921
+ const ret = getObject(arg0).arrayBuffer();
922
+ return addHeapObject(ret);
923
+ },
924
+ __wbg_arrayBuffer_bb54076166006c39: function () {
925
+ return handleError(function (arg0) {
926
+ const ret = getObject(arg0).arrayBuffer();
927
+ return addHeapObject(ret);
928
+ }, arguments);
929
+ },
930
+ __wbg_async_79f2a61f9d0b31cf: function (arg0) {
931
+ const ret = getObject(arg0).async;
932
+ return ret;
933
+ },
934
+ __wbg_buffer_7b5f53e46557d8f1: function (arg0) {
935
+ const ret = getObject(arg0).buffer;
936
+ return addHeapObject(ret);
937
+ },
938
+ __wbg_call_389efe28435a9388: function () {
939
+ return handleError(function (arg0, arg1) {
940
+ const ret = getObject(arg0).call(getObject(arg1));
941
+ return addHeapObject(ret);
942
+ }, arguments);
943
+ },
944
+ __wbg_call_4708e0c13bdc8e95: function () {
945
+ return handleError(function (arg0, arg1, arg2) {
946
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
947
+ return addHeapObject(ret);
948
+ }, arguments);
949
+ },
950
+ __wbg_call_812d25f1510c13c8: function () {
951
+ return handleError(function (arg0, arg1, arg2, arg3) {
952
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
953
+ return addHeapObject(ret);
954
+ }, arguments);
955
+ },
956
+ __wbg_changedHandle_857ee3de52efb55d: function (arg0) {
957
+ const ret = getObject(arg0).changedHandle;
958
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
959
+ },
960
+ __wbg_clearTimeout_7a42b49784aea641: function (arg0) {
961
+ const ret = clearTimeout(takeObject(arg0));
962
+ return addHeapObject(ret);
963
+ },
964
+ __wbg_close_4ba312253c424342: function (arg0) {
965
+ getObject(arg0).close();
966
+ },
967
+ __wbg_close_83fb809aca3de7f9: function (arg0) {
968
+ const ret = getObject(arg0).close();
969
+ return addHeapObject(ret);
970
+ },
971
+ __wbg_createObjectURL_918185db6a10a0c8: function () {
972
+ return handleError(function (arg0, arg1) {
973
+ const ret = URL.createObjectURL(getObject(arg1));
974
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
975
+ const len1 = WASM_VECTOR_LEN;
976
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
977
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
978
+ }, arguments);
979
+ },
980
+ __wbg_createWritable_80bc5de374448b42: function (arg0) {
981
+ const ret = getObject(arg0).createWritable();
982
+ return addHeapObject(ret);
983
+ },
984
+ __wbg_createsyncaccesshandleoptions_new: function (arg0) {
985
+ const ret = CreateSyncAccessHandleOptions.__wrap(arg0);
986
+ return addHeapObject(ret);
987
+ },
988
+ __wbg_data_5330da50312d0bc1: function (arg0) {
989
+ const ret = getObject(arg0).data;
990
+ return addHeapObject(ret);
991
+ },
992
+ __wbg_debug_46a93995fc6f8820: function (arg0, arg1, arg2, arg3) {
993
+ console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
994
+ },
995
+ __wbg_debug_a4099fa12db6cd61: function (arg0) {
996
+ console.debug(getObject(arg0));
997
+ },
998
+ __wbg_direntry_new: function (arg0) {
999
+ const ret = DirEntry.__wrap(arg0);
1000
+ return addHeapObject(ret);
1001
+ },
1002
+ __wbg_done_57b39ecd9addfe81: function (arg0) {
1003
+ const ret = getObject(arg0).done;
1004
+ return ret;
1005
+ },
1006
+ __wbg_entries_04a4b982351a717f: function (arg0) {
1007
+ const ret = getObject(arg0).entries();
1008
+ return addHeapObject(ret);
1009
+ },
1010
+ __wbg_error_7534b8e9a36f1ab4: function (arg0, arg1) {
1011
+ let deferred0_0;
1012
+ let deferred0_1;
1013
+ try {
1014
+ deferred0_0 = arg0;
1015
+ deferred0_1 = arg1;
1016
+ console.error(getStringFromWasm0(arg0, arg1));
1017
+ }
1018
+ finally {
1019
+ wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
1020
+ }
1021
+ },
1022
+ __wbg_error_794d0ffc9d00d5c3: function (arg0, arg1, arg2, arg3) {
1023
+ console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1024
+ },
1025
+ __wbg_error_9a7fe3f932034cde: function (arg0) {
1026
+ console.error(getObject(arg0));
1027
+ },
1028
+ __wbg_eval_3f0b9f0cbaf45a34: function () {
1029
+ return handleError(function (arg0, arg1) {
1030
+ const ret = eval(getStringFromWasm0(arg0, arg1));
1031
+ return addHeapObject(ret);
1032
+ }, arguments);
1033
+ },
1034
+ __wbg_fetch_74a3e84ebd2c9a0e: function (arg0) {
1035
+ const ret = fetch(getObject(arg0));
1036
+ return addHeapObject(ret);
1037
+ },
1038
+ __wbg_fetch_afb6a4b6cacf876d: function (arg0, arg1) {
1039
+ const ret = getObject(arg0).fetch(getObject(arg1));
1040
+ return addHeapObject(ret);
1041
+ },
1042
+ __wbg_flush_22b785060592ca5f: function () {
1043
+ return handleError(function (arg0) {
1044
+ getObject(arg0).flush();
1045
+ }, arguments);
1046
+ },
1047
+ __wbg_from_bddd64e7d5ff6941: function (arg0) {
1048
+ const ret = Array.from(getObject(arg0));
1049
+ return addHeapObject(ret);
1050
+ },
1051
+ __wbg_getDirectoryHandle_87ce8ca53cf4d8dc: function (arg0, arg1, arg2, arg3) {
1052
+ const ret = getObject(arg0).getDirectoryHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
1053
+ return addHeapObject(ret);
1054
+ },
1055
+ __wbg_getDirectory_b66ae3e79f902982: function (arg0) {
1056
+ const ret = getObject(arg0).getDirectory();
1057
+ return addHeapObject(ret);
1058
+ },
1059
+ __wbg_getFileHandle_ff4ab917b45affb3: function (arg0, arg1, arg2, arg3) {
1060
+ const ret = getObject(arg0).getFileHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
1061
+ return addHeapObject(ret);
1062
+ },
1063
+ __wbg_getFile_115354fc950edc88: function (arg0) {
1064
+ const ret = getObject(arg0).getFile();
1065
+ return addHeapObject(ret);
1066
+ },
1067
+ __wbg_getRandomValues_80578b2ff2a093ba: function () {
1068
+ return handleError(function (arg0) {
1069
+ globalThis.crypto.getRandomValues(getObject(arg0));
1070
+ }, arguments);
1071
+ },
1072
+ __wbg_get_9b94d73e6221f75c: function (arg0, arg1) {
1073
+ const ret = getObject(arg0)[arg1 >>> 0];
1074
+ return addHeapObject(ret);
1075
+ },
1076
+ __wbg_get_b3ed3ad4be2bc8ac: function () {
1077
+ return handleError(function (arg0, arg1) {
1078
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
1079
+ return addHeapObject(ret);
1080
+ }, arguments);
1081
+ },
1082
+ __wbg_has_d4e53238966c12b6: function () {
1083
+ return handleError(function (arg0, arg1) {
1084
+ const ret = Reflect.has(getObject(arg0), getObject(arg1));
1085
+ return ret;
1086
+ }, arguments);
1087
+ },
1088
+ __wbg_headers_59a2938db9f80985: function (arg0) {
1089
+ const ret = getObject(arg0).headers;
1090
+ return addHeapObject(ret);
1091
+ },
1092
+ __wbg_info_148d043840582012: function (arg0) {
1093
+ console.info(getObject(arg0));
1094
+ },
1095
+ __wbg_info_9e602cf10c5c690b: function (arg0, arg1, arg2, arg3) {
1096
+ console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1097
+ },
1098
+ __wbg_instanceof_DedicatedWorkerGlobalScope_1506b3d017799d48: function (arg0) {
1099
+ let result;
1100
+ try {
1101
+ result = getObject(arg0) instanceof DedicatedWorkerGlobalScope;
1102
+ }
1103
+ catch (_) {
1104
+ result = false;
1105
+ }
1106
+ const ret = result;
1107
+ return ret;
1108
+ },
1109
+ __wbg_instanceof_DomException_99c177193e554b75: function (arg0) {
1110
+ let result;
1111
+ try {
1112
+ result = getObject(arg0) instanceof DOMException;
1113
+ }
1114
+ catch (_) {
1115
+ result = false;
1116
+ }
1117
+ const ret = result;
1118
+ return ret;
1119
+ },
1120
+ __wbg_instanceof_FileSystemDirectoryHandle_56a167039d614548: function (arg0) {
1121
+ let result;
1122
+ try {
1123
+ result = getObject(arg0) instanceof FileSystemDirectoryHandle;
1124
+ }
1125
+ catch (_) {
1126
+ result = false;
1127
+ }
1128
+ const ret = result;
1129
+ return ret;
1130
+ },
1131
+ __wbg_instanceof_Response_ee1d54d79ae41977: function (arg0) {
1132
+ let result;
1133
+ try {
1134
+ result = getObject(arg0) instanceof Response;
1135
+ }
1136
+ catch (_) {
1137
+ result = false;
1138
+ }
1139
+ const ret = result;
1140
+ return ret;
1141
+ },
1142
+ __wbg_instanceof_Uint8Array_9b9075935c74707c: function (arg0) {
1143
+ let result;
1144
+ try {
1145
+ result = getObject(arg0) instanceof Uint8Array;
1146
+ }
1147
+ catch (_) {
1148
+ result = false;
1149
+ }
1150
+ const ret = result;
1151
+ return ret;
1152
+ },
1153
+ __wbg_isArray_d314bb98fcf08331: function (arg0) {
1154
+ const ret = Array.isArray(getObject(arg0));
1155
+ return ret;
1156
+ },
1157
+ __wbg_iterator_6ff6560ca1568e55: function () {
1158
+ const ret = Symbol.iterator;
1159
+ return addHeapObject(ret);
1160
+ },
1161
+ __wbg_kind_90769d6c16faeafd: function (arg0) {
1162
+ const ret = getObject(arg0).kind;
1163
+ return (__wbindgen_enum_FileSystemHandleKind.indexOf(ret) + 1 || 3) - 1;
1164
+ },
1165
+ __wbg_length_32ed9a279acd054c: function (arg0) {
1166
+ const ret = getObject(arg0).length;
1167
+ return ret;
1168
+ },
1169
+ __wbg_length_35a7bace40f36eac: function (arg0) {
1170
+ const ret = getObject(arg0).length;
1171
+ return ret;
1172
+ },
1173
+ __wbg_metadata_new: function (arg0) {
1174
+ const ret = Metadata.__wrap(arg0);
1175
+ return addHeapObject(ret);
1176
+ },
1177
+ __wbg_name_242753e5110cd756: function (arg0, arg1) {
1178
+ const ret = getObject(arg1).name;
1179
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1180
+ const len1 = WASM_VECTOR_LEN;
1181
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1182
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1183
+ },
1184
+ __wbg_name_e8cffaa6f870bdb5: function (arg0, arg1) {
1185
+ const ret = getObject(arg1).name;
1186
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1187
+ const len1 = WASM_VECTOR_LEN;
1188
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1189
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1190
+ },
1191
+ __wbg_navigator_4478931f32ebca57: function (arg0) {
1192
+ const ret = getObject(arg0).navigator;
1193
+ return addHeapObject(ret);
1194
+ },
1195
+ __wbg_new_361308b2356cecd0: function () {
1196
+ const ret = new Object();
1197
+ return addHeapObject(ret);
1198
+ },
1199
+ __wbg_new_3eb36ae241fe6f44: function () {
1200
+ const ret = new Array();
1201
+ return addHeapObject(ret);
1202
+ },
1203
+ __wbg_new_4f8f3c123e474358: function () {
1204
+ return handleError(function (arg0, arg1) {
1205
+ const ret = new Worker(getStringFromWasm0(arg0, arg1));
1206
+ return addHeapObject(ret);
1207
+ }, arguments);
1208
+ },
1209
+ __wbg_new_64284bd487f9d239: function () {
1210
+ return handleError(function () {
1211
+ const ret = new Headers();
1212
+ return addHeapObject(ret);
1213
+ }, arguments);
1214
+ },
1215
+ __wbg_new_72c627ba80de1c21: function (arg0) {
1216
+ const ret = new Int32Array(getObject(arg0));
1217
+ return addHeapObject(ret);
1218
+ },
1219
+ __wbg_new_8a6f238a6ece86ea: function () {
1220
+ const ret = new Error();
1221
+ return addHeapObject(ret);
1222
+ },
1223
+ __wbg_new_b5d9e2fb389fef91: function (arg0, arg1) {
1224
+ try {
1225
+ var state0 = { a: arg0, b: arg1 };
1226
+ var cb0 = (arg0, arg1) => {
1227
+ const a = state0.a;
1228
+ state0.a = 0;
1229
+ try {
1230
+ return __wasm_bindgen_func_elem_3447(a, state0.b, arg0, arg1);
1231
+ }
1232
+ finally {
1233
+ state0.a = a;
1234
+ }
1235
+ };
1236
+ const ret = new Promise(cb0);
1237
+ return addHeapObject(ret);
1238
+ }
1239
+ finally {
1240
+ state0.a = state0.b = 0;
1241
+ }
1242
+ },
1243
+ __wbg_new_b949e7f56150a5d1: function () {
1244
+ return handleError(function () {
1245
+ const ret = new AbortController();
1246
+ return addHeapObject(ret);
1247
+ }, arguments);
1248
+ },
1249
+ __wbg_new_d0e1b5fdb5f4db8b: function (arg0) {
1250
+ const ret = new FileSystemObserver(getObject(arg0));
1251
+ return addHeapObject(ret);
1252
+ },
1253
+ __wbg_new_dca287b076112a51: function () {
1254
+ const ret = new Map();
1255
+ return addHeapObject(ret);
1256
+ },
1257
+ __wbg_new_dd2b680c8bf6ae29: function (arg0) {
1258
+ const ret = new Uint8Array(getObject(arg0));
1259
+ return addHeapObject(ret);
1260
+ },
1261
+ __wbg_new_from_slice_a3d2629dc1826784: function (arg0, arg1) {
1262
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1263
+ return addHeapObject(ret);
1264
+ },
1265
+ __wbg_new_no_args_1c7c842f08d00ebb: function (arg0, arg1) {
1266
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
1267
+ return addHeapObject(ret);
1268
+ },
1269
+ __wbg_new_with_length_a2c39cbe88fd8ff1: function (arg0) {
1270
+ const ret = new Uint8Array(arg0 >>> 0);
1271
+ return addHeapObject(ret);
1272
+ },
1273
+ __wbg_new_with_options_145afba922ad3703: function () {
1274
+ return handleError(function (arg0, arg1, arg2) {
1275
+ const ret = new Worker(getStringFromWasm0(arg0, arg1), getObject(arg2));
1276
+ return addHeapObject(ret);
1277
+ }, arguments);
1278
+ },
1279
+ __wbg_new_with_str_and_init_a61cbc6bdef21614: function () {
1280
+ return handleError(function (arg0, arg1, arg2) {
1281
+ const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
1282
+ return addHeapObject(ret);
1283
+ }, arguments);
1284
+ },
1285
+ __wbg_new_with_str_sequence_cea2c0571d6dc6ab: function () {
1286
+ return handleError(function (arg0) {
1287
+ const ret = new Blob(getObject(arg0));
1288
+ return addHeapObject(ret);
1289
+ }, arguments);
1290
+ },
1291
+ __wbg_next_0a5e0f8af98146aa: function () {
1292
+ return handleError(function (arg0) {
1293
+ const ret = getObject(arg0).next();
1294
+ return addHeapObject(ret);
1295
+ }, arguments);
1296
+ },
1297
+ __wbg_next_3482f54c49e8af19: function () {
1298
+ return handleError(function (arg0) {
1299
+ const ret = getObject(arg0).next();
1300
+ return addHeapObject(ret);
1301
+ }, arguments);
1302
+ },
1303
+ __wbg_next_418f80d8f5303233: function (arg0) {
1304
+ const ret = getObject(arg0).next;
1305
+ return addHeapObject(ret);
1306
+ },
1307
+ __wbg_now_0dc4920a47cf7280: function (arg0) {
1308
+ const ret = getObject(arg0).now();
1309
+ return ret;
1310
+ },
1311
+ __wbg_now_a3af9a2f4bbaa4d1: function () {
1312
+ const ret = Date.now();
1313
+ return ret;
1314
+ },
1315
+ __wbg_observe_f1be8f54c7884c74: function (arg0, arg1, arg2) {
1316
+ const ret = getObject(arg0).observe(getObject(arg1), getObject(arg2));
1317
+ return addHeapObject(ret);
1318
+ },
1319
+ __wbg_of_ddc0942b0dce16a1: function (arg0, arg1, arg2) {
1320
+ const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2));
1321
+ return addHeapObject(ret);
1322
+ },
1323
+ __wbg_performance_6adc3b899e448a23: function (arg0) {
1324
+ const ret = getObject(arg0).performance;
1325
+ return addHeapObject(ret);
1326
+ },
1327
+ __wbg_postMessage_2041f4e90af61318: function () {
1328
+ return handleError(function (arg0, arg1) {
1329
+ getObject(arg0).postMessage(getObject(arg1));
1330
+ }, arguments);
1331
+ },
1332
+ __wbg_postMessage_771ef3293a28bbac: function () {
1333
+ return handleError(function (arg0, arg1) {
1334
+ getObject(arg0).postMessage(getObject(arg1));
1335
+ }, arguments);
1336
+ },
1337
+ __wbg_prototypesetcall_bdcdcc5842e4d77d: function (arg0, arg1, arg2) {
1338
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
1339
+ },
1340
+ __wbg_push_8ffdcb2063340ba5: function (arg0, arg1) {
1341
+ const ret = getObject(arg0).push(getObject(arg1));
1342
+ return ret;
1343
+ },
1344
+ __wbg_queueMicrotask_0aa0a927f78f5d98: function (arg0) {
1345
+ const ret = getObject(arg0).queueMicrotask;
1346
+ return addHeapObject(ret);
1347
+ },
1348
+ __wbg_queueMicrotask_5bb536982f78a56f: function (arg0) {
1349
+ queueMicrotask(getObject(arg0));
1350
+ },
1351
+ __wbg_random_912284dbf636f269: function () {
1352
+ const ret = Math.random();
1353
+ return ret;
1354
+ },
1355
+ __wbg_relativePathComponents_cdef565cac5db69f: function (arg0) {
1356
+ const ret = getObject(arg0).relativePathComponents;
1357
+ return addHeapObject(ret);
1358
+ },
1359
+ __wbg_removeEntry_c4efffdd318b51a1: function (arg0, arg1, arg2, arg3) {
1360
+ const ret = getObject(arg0).removeEntry(getStringFromWasm0(arg1, arg2), getObject(arg3));
1361
+ return addHeapObject(ret);
1362
+ },
1363
+ __wbg_resolve_002c4b7d9d8f6b64: function (arg0) {
1364
+ const ret = Promise.resolve(getObject(arg0));
1365
+ return addHeapObject(ret);
1366
+ },
1367
+ __wbg_root_722ea46a4dfaf891: function (arg0) {
1368
+ const ret = getObject(arg0).root;
1369
+ return addHeapObject(ret);
1370
+ },
1371
+ __wbg_setTimeout_63008613644b07af: function () {
1372
+ return handleError(function (arg0, arg1, arg2) {
1373
+ const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
1374
+ return addHeapObject(ret);
1375
+ }, arguments);
1376
+ },
1377
+ __wbg_setTimeout_7bb3429662ab1e70: function (arg0, arg1) {
1378
+ const ret = setTimeout(getObject(arg0), arg1);
1379
+ return addHeapObject(ret);
1380
+ },
1381
+ __wbg_set_1eb0999cf5d27fc8: function (arg0, arg1, arg2) {
1382
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
1383
+ return addHeapObject(ret);
1384
+ },
1385
+ __wbg_set_3f1d0b984ed272ed: function (arg0, arg1, arg2) {
1386
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
1387
+ },
1388
+ __wbg_set_body_9a7e00afe3cfe244: function (arg0, arg1) {
1389
+ getObject(arg0).body = getObject(arg1);
1390
+ },
1391
+ __wbg_set_cache_315a3ed773a41543: function (arg0, arg1) {
1392
+ getObject(arg0).cache = __wbindgen_enum_RequestCache[arg1];
1393
+ },
1394
+ __wbg_set_create_1f902c5936adde7d: function (arg0, arg1) {
1395
+ getObject(arg0).create = arg1 !== 0;
1396
+ },
1397
+ __wbg_set_create_c95ddca018fac9ce: function (arg0, arg1) {
1398
+ getObject(arg0).create = arg1 !== 0;
1399
+ },
1400
+ __wbg_set_credentials_c4a58d2e05ef24fb: function (arg0, arg1) {
1401
+ getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
1402
+ },
1403
+ __wbg_set_f43e577aea94465b: function (arg0, arg1, arg2) {
1404
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
1405
+ },
1406
+ __wbg_set_headers_cfc5f4b2c1f20549: function (arg0, arg1) {
1407
+ getObject(arg0).headers = getObject(arg1);
1408
+ },
1409
+ __wbg_set_method_c3e20375f5ae7fac: function (arg0, arg1, arg2) {
1410
+ getObject(arg0).method = getStringFromWasm0(arg1, arg2);
1411
+ },
1412
+ __wbg_set_mode_b13642c312648202: function (arg0, arg1) {
1413
+ getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
1414
+ },
1415
+ __wbg_set_name_49b9ecba7f58f2e5: function (arg0, arg1, arg2) {
1416
+ getObject(arg0).name = getStringFromWasm0(arg1, arg2);
1417
+ },
1418
+ __wbg_set_onmessage_6ed41050e4a5cee2: function (arg0, arg1) {
1419
+ getObject(arg0).onmessage = getObject(arg1);
1420
+ },
1421
+ __wbg_set_recursive_7437584ba1ac1fb1: function (arg0, arg1) {
1422
+ getObject(arg0).recursive = arg1 !== 0;
1423
+ },
1424
+ __wbg_set_recursive_f5d3416098328110: function (arg0, arg1) {
1425
+ getObject(arg0).recursive = arg1 !== 0;
1426
+ },
1427
+ __wbg_set_signal_f2d3f8599248896d: function (arg0, arg1) {
1428
+ getObject(arg0).signal = getObject(arg1);
1429
+ },
1430
+ __wbg_set_type_e127f26b78d78bfc: function (arg0, arg1) {
1431
+ getObject(arg0).type = __wbindgen_enum_WorkerType[arg1];
1432
+ },
1433
+ __wbg_signal_d1285ecab4ebc5ad: function (arg0) {
1434
+ const ret = getObject(arg0).signal;
1435
+ return addHeapObject(ret);
1436
+ },
1437
+ __wbg_size_e05d31cc6049815f: function (arg0) {
1438
+ const ret = getObject(arg0).size;
1439
+ return ret;
1440
+ },
1441
+ __wbg_slice_566a15f3214fa52e: function () {
1442
+ return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1443
+ const ret = getObject(arg0).slice(arg1, arg2, getStringFromWasm0(arg3, arg4));
1444
+ return addHeapObject(ret);
1445
+ }, arguments);
1446
+ },
1447
+ __wbg_stack_0ed75d68575b0f3c: function (arg0, arg1) {
1448
+ const ret = getObject(arg1).stack;
1449
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1450
+ const len1 = WASM_VECTOR_LEN;
1451
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1452
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1453
+ },
1454
+ __wbg_static_accessor_GLOBAL_12837167ad935116: function () {
1455
+ const ret = typeof global === 'undefined' ? null : global;
1456
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
1457
+ },
1458
+ __wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function () {
1459
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
1460
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
1461
+ },
1462
+ __wbg_static_accessor_SELF_a621d3dfbb60d0ce: function () {
1463
+ const ret = typeof self === 'undefined' ? null : self;
1464
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
1465
+ },
1466
+ __wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function () {
1467
+ const ret = typeof window === 'undefined' ? null : window;
1468
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
1469
+ },
1470
+ __wbg_status_89d7e803db911ee7: function (arg0) {
1471
+ const ret = getObject(arg0).status;
1472
+ return ret;
1473
+ },
1474
+ __wbg_storage_c002b53bc4883299: function (arg0) {
1475
+ const ret = getObject(arg0).storage;
1476
+ return addHeapObject(ret);
1477
+ },
1478
+ __wbg_stringify_8d1cc6ff383e8bae: function () {
1479
+ return handleError(function (arg0) {
1480
+ const ret = JSON.stringify(getObject(arg0));
1481
+ return addHeapObject(ret);
1482
+ }, arguments);
1483
+ },
1484
+ __wbg_subarray_a96e1fef17ed23cb: function (arg0, arg1, arg2) {
1485
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
1486
+ return addHeapObject(ret);
1487
+ },
1488
+ __wbg_then_0d9fe2c7b1857d32: function (arg0, arg1, arg2) {
1489
+ const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
1490
+ return addHeapObject(ret);
1491
+ },
1492
+ __wbg_then_b9e7b3b5f1a9e1b5: function (arg0, arg1) {
1493
+ const ret = getObject(arg0).then(getObject(arg1));
1494
+ return addHeapObject(ret);
1495
+ },
1496
+ __wbg_toString_964ff7fe6eca8362: function (arg0) {
1497
+ const ret = getObject(arg0).toString();
1498
+ return addHeapObject(ret);
1499
+ },
1500
+ __wbg_truncate_dc661fdcb0062fa7: function () {
1501
+ return handleError(function (arg0, arg1) {
1502
+ getObject(arg0).truncate(arg1 >>> 0);
1503
+ }, arguments);
1504
+ },
1505
+ __wbg_type_47e8c2ef7c7eb249: function (arg0) {
1506
+ const ret = getObject(arg0).type;
1507
+ return (__wbindgen_enum_FileSystemChangeRecordType.indexOf(ret) + 1 || 7) - 1;
1508
+ },
1509
+ __wbg_url_c484c26b1fbf5126: function (arg0, arg1) {
1510
+ const ret = getObject(arg1).url;
1511
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1512
+ const len1 = WASM_VECTOR_LEN;
1513
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1514
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1515
+ },
1516
+ __wbg_value_0546255b415e96c1: function (arg0) {
1517
+ const ret = getObject(arg0).value;
1518
+ return addHeapObject(ret);
1519
+ },
1520
+ __wbg_value_fe6ee34af5dc3dce: function (arg0) {
1521
+ const ret = getObject(arg0).value;
1522
+ return addHeapObject(ret);
1523
+ },
1524
+ __wbg_waitAsync_a58b2134bff39c3e: function (arg0, arg1, arg2) {
1525
+ const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
1526
+ return addHeapObject(ret);
1527
+ },
1528
+ __wbg_waitAsync_c0a39a7d3318d91e: function () {
1529
+ const ret = Atomics.waitAsync;
1530
+ return addHeapObject(ret);
1531
+ },
1532
+ __wbg_warn_a40b971467b219c7: function (arg0, arg1, arg2, arg3) {
1533
+ console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1534
+ },
1535
+ __wbg_warn_f7ae1b2e66ccb930: function (arg0) {
1536
+ console.warn(getObject(arg0));
1537
+ },
1538
+ __wbg_wasmtaskmessage_new: function (arg0) {
1539
+ const ret = WasmTaskMessage.__wrap(arg0);
1540
+ return addHeapObject(ret);
1541
+ },
1542
+ __wbg_webworkercreation_new: function (arg0) {
1543
+ const ret = WebWorkerCreation.__wrap(arg0);
1544
+ return addHeapObject(ret);
1545
+ },
1546
+ __wbg_webworkertermination_new: function (arg0) {
1547
+ const ret = WebWorkerTermination.__wrap(arg0);
1548
+ return addHeapObject(ret);
1549
+ },
1550
+ __wbindgen_cast_0000000000000001: function (arg0, arg1) {
1551
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1878, function: Function { arguments: [Externref], shim_idx: 7388, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1552
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_22681, __wasm_bindgen_func_elem_83554);
1553
+ return addHeapObject(ret);
1554
+ },
1555
+ __wbindgen_cast_0000000000000002: function (arg0, arg1) {
1556
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1878, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 7381, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1557
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_22681, __wasm_bindgen_func_elem_83231);
1558
+ return addHeapObject(ret);
1559
+ },
1560
+ __wbindgen_cast_0000000000000003: function (arg0, arg1) {
1561
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1878, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 7388, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1562
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_22681, __wasm_bindgen_func_elem_83554);
1563
+ return addHeapObject(ret);
1564
+ },
1565
+ __wbindgen_cast_0000000000000004: function (arg0, arg1) {
1566
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1878, function: Function { arguments: [], shim_idx: 1879, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1567
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_22681, __wasm_bindgen_func_elem_22682);
1568
+ return addHeapObject(ret);
1569
+ },
1570
+ __wbindgen_cast_0000000000000005: function (arg0, arg1) {
1571
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7392, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 7393, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1572
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83606, __wasm_bindgen_func_elem_83607);
1573
+ return addHeapObject(ret);
1574
+ },
1575
+ __wbindgen_cast_0000000000000006: function (arg0, arg1) {
1576
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7392, function: Function { arguments: [], shim_idx: 1879, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1577
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83606, __wasm_bindgen_func_elem_22682);
1578
+ return addHeapObject(ret);
1579
+ },
1580
+ __wbindgen_cast_0000000000000007: function (arg0) {
1581
+ // Cast intrinsic for `F64 -> Externref`.
1582
+ const ret = arg0;
1583
+ return addHeapObject(ret);
1584
+ },
1585
+ __wbindgen_cast_0000000000000008: function (arg0) {
1586
+ // Cast intrinsic for `I64 -> Externref`.
1587
+ const ret = arg0;
1588
+ return addHeapObject(ret);
1589
+ },
1590
+ __wbindgen_cast_0000000000000009: function (arg0, arg1) {
1591
+ // Cast intrinsic for `Ref(String) -> Externref`.
1592
+ const ret = getStringFromWasm0(arg0, arg1);
1593
+ return addHeapObject(ret);
1594
+ },
1595
+ __wbindgen_cast_000000000000000a: function (arg0) {
1596
+ // Cast intrinsic for `U64 -> Externref`.
1597
+ const ret = BigInt.asUintN(64, arg0);
1598
+ return addHeapObject(ret);
1599
+ },
1600
+ __wbindgen_cast_000000000000000b: function (arg0, arg1) {
1601
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
1602
+ wasm.__wbindgen_export4(arg0, arg1 * 4, 4);
1603
+ // Cast intrinsic for `Vector(NamedExternref("DirEntry")) -> Externref`.
1604
+ const ret = v0;
1605
+ return addHeapObject(ret);
1606
+ },
1607
+ __wbindgen_link_0b1f76d235fd2b86: function (arg0) {
1608
+ const val = `onmessage = function (ev) {
1609
+ let [ia, index, value] = ev.data;
1610
+ ia = new Int32Array(ia.buffer);
1611
+ let result = Atomics.wait(ia, index, value);
1612
+ postMessage(result);
1613
+ };
1614
+ `;
1615
+ const ret = typeof URL.createObjectURL === 'undefined' ? "data:application/javascript," + encodeURIComponent(val) : URL.createObjectURL(new Blob([val], { type: "text/javascript" }));
1616
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1617
+ const len1 = WASM_VECTOR_LEN;
1618
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1619
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1620
+ },
1621
+ __wbindgen_object_clone_ref: function (arg0) {
1622
+ const ret = getObject(arg0);
1623
+ return addHeapObject(ret);
1624
+ },
1625
+ __wbindgen_object_drop_ref: function (arg0) {
1626
+ takeObject(arg0);
1627
+ },
1628
+ memory: memory || new WebAssembly.Memory({ initial: 1025, maximum: 65536, shared: true }),
1629
+ };
1630
+ return {
1631
+ __proto__: null,
1632
+ "./index_bg.js": import0,
1633
+ };
1634
+ }
1635
+ function __wasm_bindgen_func_elem_22682(arg0, arg1) {
1636
+ wasm.__wasm_bindgen_func_elem_22682(arg0, arg1);
1637
+ }
1638
+ function __wasm_bindgen_func_elem_83554(arg0, arg1, arg2) {
1639
+ wasm.__wasm_bindgen_func_elem_83554(arg0, arg1, addHeapObject(arg2));
1640
+ }
1641
+ function __wasm_bindgen_func_elem_83231(arg0, arg1, arg2) {
1642
+ wasm.__wasm_bindgen_func_elem_83231(arg0, arg1, addHeapObject(arg2));
1643
+ }
1644
+ function __wasm_bindgen_func_elem_83607(arg0, arg1, arg2) {
1645
+ try {
1646
+ wasm.__wasm_bindgen_func_elem_83607(arg0, arg1, addBorrowedObject(arg2));
1647
+ }
1648
+ finally {
1649
+ heap[stack_pointer++] = undefined;
1650
+ }
1651
+ }
1652
+ function __wasm_bindgen_func_elem_3447(arg0, arg1, arg2, arg3) {
1653
+ wasm.__wasm_bindgen_func_elem_3447(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
1654
+ }
1655
+ const __wbindgen_enum_DirEntryType = ["file", "directory"];
1656
+ const __wbindgen_enum_FileSystemChangeRecordType = ["appeared", "disappeared", "errored", "modified", "moved", "unknown"];
1657
+ const __wbindgen_enum_FileSystemHandleKind = ["file", "directory"];
1658
+ const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
1659
+ const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
1660
+ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
1661
+ const __wbindgen_enum_WorkerType = ["classic", "module"];
1662
+ const CreateSyncAccessHandleOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
1663
+ ? { register: () => { }, unregister: () => { } }
1664
+ : new FinalizationRegistry(ptr => wasm.__wbg_createsyncaccesshandleoptions_free(ptr >>> 0, 1));
1665
+ const DirEntryFinalization = (typeof FinalizationRegistry === 'undefined')
1666
+ ? { register: () => { }, unregister: () => { } }
1667
+ : new FinalizationRegistry(ptr => wasm.__wbg_direntry_free(ptr >>> 0, 1));
1668
+ const FsFinalization = (typeof FinalizationRegistry === 'undefined')
1669
+ ? { register: () => { }, unregister: () => { } }
1670
+ : new FinalizationRegistry(ptr => wasm.__wbg_fs_free(ptr >>> 0, 1));
1671
+ const MetadataFinalization = (typeof FinalizationRegistry === 'undefined')
1672
+ ? { register: () => { }, unregister: () => { } }
1673
+ : new FinalizationRegistry(ptr => wasm.__wbg_metadata_free(ptr >>> 0, 1));
1674
+ const ProjectFinalization = (typeof FinalizationRegistry === 'undefined')
1675
+ ? { register: () => { }, unregister: () => { } }
1676
+ : new FinalizationRegistry(ptr => wasm.__wbg_project_free(ptr >>> 0, 1));
1677
+ const WasmTaskMessageFinalization = (typeof FinalizationRegistry === 'undefined')
1678
+ ? { register: () => { }, unregister: () => { } }
1679
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmtaskmessage_free(ptr >>> 0, 1));
1680
+ const WebWorkerCreationFinalization = (typeof FinalizationRegistry === 'undefined')
1681
+ ? { register: () => { }, unregister: () => { } }
1682
+ : new FinalizationRegistry(ptr => wasm.__wbg_webworkercreation_free(ptr >>> 0, 1));
1683
+ const WebWorkerOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
1684
+ ? { register: () => { }, unregister: () => { } }
1685
+ : new FinalizationRegistry(ptr => wasm.__wbg_webworkeroptions_free(ptr >>> 0, 1));
1686
+ const WebWorkerTerminationFinalization = (typeof FinalizationRegistry === 'undefined')
1687
+ ? { register: () => { }, unregister: () => { } }
1688
+ : new FinalizationRegistry(ptr => wasm.__wbg_webworkertermination_free(ptr >>> 0, 1));
1689
+ function addHeapObject(obj) {
1690
+ if (heap_next === heap.length)
1691
+ heap.push(heap.length + 1);
1692
+ const idx = heap_next;
1693
+ heap_next = heap[idx];
1694
+ heap[idx] = obj;
1695
+ return idx;
1696
+ }
1697
+ function _assertClass(instance, klass) {
1698
+ if (!(instance instanceof klass)) {
1699
+ throw new Error(`expected instance of ${klass.name}`);
1700
+ }
1701
+ }
1702
+ function addBorrowedObject(obj) {
1703
+ if (stack_pointer == 1)
1704
+ throw new Error('out of js stack');
1705
+ heap[--stack_pointer] = obj;
1706
+ return stack_pointer;
1707
+ }
1708
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
1709
+ ? { register: () => { }, unregister: () => { } }
1710
+ : new FinalizationRegistry(state => state.dtor(state.a, state.b));
1711
+ function debugString(val) {
1712
+ // primitive types
1713
+ const type = typeof val;
1714
+ if (type == 'number' || type == 'boolean' || val == null) {
1715
+ return `${val}`;
1716
+ }
1717
+ if (type == 'string') {
1718
+ return `"${val}"`;
1719
+ }
1720
+ if (type == 'symbol') {
1721
+ const description = val.description;
1722
+ if (description == null) {
1723
+ return 'Symbol';
1724
+ }
1725
+ else {
1726
+ return `Symbol(${description})`;
1727
+ }
1728
+ }
1729
+ if (type == 'function') {
1730
+ const name = val.name;
1731
+ if (typeof name == 'string' && name.length > 0) {
1732
+ return `Function(${name})`;
1733
+ }
1734
+ else {
1735
+ return 'Function';
1736
+ }
1737
+ }
1738
+ // objects
1739
+ if (Array.isArray(val)) {
1740
+ const length = val.length;
1741
+ let debug = '[';
1742
+ if (length > 0) {
1743
+ debug += debugString(val[0]);
1744
+ }
1745
+ for (let i = 1; i < length; i++) {
1746
+ debug += ', ' + debugString(val[i]);
1747
+ }
1748
+ debug += ']';
1749
+ return debug;
1750
+ }
1751
+ // Test for built-in
1752
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
1753
+ let className;
1754
+ if (builtInMatches && builtInMatches.length > 1) {
1755
+ className = builtInMatches[1];
1756
+ }
1757
+ else {
1758
+ // Failed to match the standard '[object ClassName]'
1759
+ return toString.call(val);
1760
+ }
1761
+ if (className == 'Object') {
1762
+ // we're a user defined class or Object
1763
+ // JSON.stringify avoids problems with cycles, and is generally much
1764
+ // easier than looping through ownProperties of `val`.
1765
+ try {
1766
+ return 'Object(' + JSON.stringify(val) + ')';
1767
+ }
1768
+ catch (_) {
1769
+ return 'Object';
1770
+ }
1771
+ }
1772
+ // errors
1773
+ if (val instanceof Error) {
1774
+ return `${val.name}: ${val.message}\n${val.stack}`;
1775
+ }
1776
+ // TODO we could test for more things here, like `Set`s and `Map`s.
1777
+ return className;
1778
+ }
1779
+ function dropObject(idx) {
1780
+ if (idx < 132)
1781
+ return;
1782
+ heap[idx] = heap_next;
1783
+ heap_next = idx;
1784
+ }
1785
+ function getArrayJsValueFromWasm0(ptr, len) {
1786
+ ptr = ptr >>> 0;
1787
+ const mem = getDataViewMemory0();
1788
+ const result = [];
1789
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
1790
+ result.push(takeObject(mem.getUint32(i, true)));
1791
+ }
1792
+ return result;
1793
+ }
1794
+ function getArrayU8FromWasm0(ptr, len) {
1795
+ ptr = ptr >>> 0;
1796
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
1797
+ }
1798
+ let cachedDataViewMemory0 = null;
1799
+ function getDataViewMemory0() {
1800
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
1801
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
1802
+ }
1803
+ return cachedDataViewMemory0;
1804
+ }
1805
+ function getStringFromWasm0(ptr, len) {
1806
+ ptr = ptr >>> 0;
1807
+ return decodeText(ptr, len);
1808
+ }
1809
+ let cachedUint8ArrayMemory0 = null;
1810
+ function getUint8ArrayMemory0() {
1811
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.buffer !== wasm.memory.buffer) {
1812
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
1813
+ }
1814
+ return cachedUint8ArrayMemory0;
1815
+ }
1816
+ function getObject(idx) { return heap[idx]; }
1817
+ function handleError(f, args) {
1818
+ try {
1819
+ return f.apply(this, args);
1820
+ }
1821
+ catch (e) {
1822
+ wasm.__wbindgen_export3(addHeapObject(e));
1823
+ }
1824
+ }
1825
+ let heap = new Array(128).fill(undefined);
1826
+ heap.push(undefined, null, true, false);
1827
+ let heap_next = heap.length;
1828
+ function isLikeNone(x) {
1829
+ return x === undefined || x === null;
1830
+ }
1831
+ function makeClosure(arg0, arg1, dtor, f) {
1832
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
1833
+ const real = (...args) => {
1834
+ // First up with a closure we increment the internal reference
1835
+ // count. This ensures that the Rust closure environment won't
1836
+ // be deallocated while we're invoking it.
1837
+ state.cnt++;
1838
+ try {
1839
+ return f(state.a, state.b, ...args);
1840
+ }
1841
+ finally {
1842
+ real._wbg_cb_unref();
1843
+ }
1844
+ };
1845
+ real._wbg_cb_unref = () => {
1846
+ if (--state.cnt === 0) {
1847
+ state.dtor(state.a, state.b);
1848
+ state.a = 0;
1849
+ CLOSURE_DTORS.unregister(state);
1850
+ }
1851
+ };
1852
+ CLOSURE_DTORS.register(real, state, state);
1853
+ return real;
1854
+ }
1855
+ function makeMutClosure(arg0, arg1, dtor, f) {
1856
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
1857
+ const real = (...args) => {
1858
+ // First up with a closure we increment the internal reference
1859
+ // count. This ensures that the Rust closure environment won't
1860
+ // be deallocated while we're invoking it.
1861
+ state.cnt++;
1862
+ const a = state.a;
1863
+ state.a = 0;
1864
+ try {
1865
+ return f(a, state.b, ...args);
1866
+ }
1867
+ finally {
1868
+ state.a = a;
1869
+ real._wbg_cb_unref();
1870
+ }
1871
+ };
1872
+ real._wbg_cb_unref = () => {
1873
+ if (--state.cnt === 0) {
1874
+ state.dtor(state.a, state.b);
1875
+ state.a = 0;
1876
+ CLOSURE_DTORS.unregister(state);
1877
+ }
1878
+ };
1879
+ CLOSURE_DTORS.register(real, state, state);
1880
+ return real;
1881
+ }
1882
+ function passStringToWasm0(arg, malloc, realloc) {
1883
+ if (realloc === undefined) {
1884
+ const buf = cachedTextEncoder.encode(arg);
1885
+ const ptr = malloc(buf.length, 1) >>> 0;
1886
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
1887
+ WASM_VECTOR_LEN = buf.length;
1888
+ return ptr;
1889
+ }
1890
+ let len = arg.length;
1891
+ let ptr = malloc(len, 1) >>> 0;
1892
+ const mem = getUint8ArrayMemory0();
1893
+ let offset = 0;
1894
+ for (; offset < len; offset++) {
1895
+ const code = arg.charCodeAt(offset);
1896
+ if (code > 0x7F)
1897
+ break;
1898
+ mem[ptr + offset] = code;
1899
+ }
1900
+ if (offset !== len) {
1901
+ if (offset !== 0) {
1902
+ arg = arg.slice(offset);
1903
+ }
1904
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
1905
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
1906
+ const ret = cachedTextEncoder.encodeInto(arg, view);
1907
+ offset += ret.written;
1908
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
1909
+ }
1910
+ WASM_VECTOR_LEN = offset;
1911
+ return ptr;
1912
+ }
1913
+ let stack_pointer = 128;
1914
+ function takeObject(idx) {
1915
+ const ret = getObject(idx);
1916
+ dropObject(idx);
1917
+ return ret;
1918
+ }
1919
+ let cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : undefined);
1920
+ if (cachedTextDecoder)
1921
+ cachedTextDecoder.decode();
1922
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
1923
+ let numBytesDecoded = 0;
1924
+ function decodeText(ptr, len) {
1925
+ numBytesDecoded += len;
1926
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
1927
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
1928
+ cachedTextDecoder.decode();
1929
+ numBytesDecoded = len;
1930
+ }
1931
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().slice(ptr, ptr + len));
1932
+ }
1933
+ const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder() : undefined);
1934
+ if (cachedTextEncoder) {
1935
+ cachedTextEncoder.encodeInto = function (arg, view) {
1936
+ const buf = cachedTextEncoder.encode(arg);
1937
+ view.set(buf);
1938
+ return {
1939
+ read: arg.length,
1940
+ written: buf.length
1941
+ };
1942
+ };
1943
+ }
1944
+ let WASM_VECTOR_LEN = 0;
1945
+ let wasmModule, wasm;
1946
+ function __wbg_finalize_init(instance, module, thread_stack_size) {
1947
+ wasm = instance.exports;
1948
+ wasmModule = module;
1949
+ cachedDataViewMemory0 = null;
1950
+ cachedUint8ArrayMemory0 = null;
1951
+ if (typeof thread_stack_size !== 'undefined' && (typeof thread_stack_size !== 'number' || thread_stack_size === 0 || thread_stack_size % 65536 !== 0)) {
1952
+ throw 'invalid stack size';
1953
+ }
1954
+ wasm.__wbindgen_start(thread_stack_size);
1955
+ return wasm;
1130
1956
  }
1131
- const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
1132
1957
  async function __wbg_load(module, imports) {
1133
1958
  if (typeof Response === 'function' && module instanceof Response) {
1134
1959
  if (typeof WebAssembly.instantiateStreaming === 'function') {
@@ -1136,7 +1961,7 @@ async function __wbg_load(module, imports) {
1136
1961
  return await WebAssembly.instantiateStreaming(module, imports);
1137
1962
  }
1138
1963
  catch (e) {
1139
- const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
1964
+ const validResponse = module.ok && expectedResponseType(module.type);
1140
1965
  if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
1141
1966
  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);
1142
1967
  }
@@ -1157,816 +1982,20 @@ async function __wbg_load(module, imports) {
1157
1982
  return instance;
1158
1983
  }
1159
1984
  }
1160
- }
1161
- function __wbg_get_imports(memory) {
1162
- const imports = {};
1163
- imports.wbg = {};
1164
- imports.wbg.__wbg_Error_52673b7de5a0ca89 = function (arg0, arg1) {
1165
- const ret = Error(getStringFromWasm0(arg0, arg1));
1166
- return addHeapObject(ret);
1167
- };
1168
- imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function (arg0, arg1) {
1169
- const ret = String(getObject(arg1));
1170
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1171
- const len1 = WASM_VECTOR_LEN;
1172
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1173
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1174
- };
1175
- imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function (arg0, arg1) {
1176
- const ret = debugString(getObject(arg1));
1177
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1178
- const len1 = WASM_VECTOR_LEN;
1179
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1180
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1181
- };
1182
- imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function (arg0) {
1183
- const ret = typeof (getObject(arg0)) === 'function';
1184
- return ret;
1185
- };
1186
- imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function (arg0) {
1187
- const val = getObject(arg0);
1188
- const ret = typeof (val) === 'object' && val !== null;
1189
- return ret;
1190
- };
1191
- imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function (arg0) {
1192
- const ret = typeof (getObject(arg0)) === 'string';
1193
- return ret;
1194
- };
1195
- imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function (arg0) {
1196
- const ret = getObject(arg0) === undefined;
1197
- return ret;
1198
- };
1199
- imports.wbg.__wbg___wbindgen_memory_a342e963fbcabd68 = function () {
1200
- const ret = wasm.memory;
1201
- return addHeapObject(ret);
1202
- };
1203
- imports.wbg.__wbg___wbindgen_module_967adef62ea6cbf8 = function () {
1204
- const ret = __wbg_init.__wbindgen_wasm_module;
1205
- return addHeapObject(ret);
1206
- };
1207
- imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function (arg0, arg1) {
1208
- const obj = getObject(arg1);
1209
- const ret = typeof (obj) === 'number' ? obj : undefined;
1210
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1211
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1212
- };
1213
- imports.wbg.__wbg___wbindgen_rethrow_78714972834ecdf1 = function (arg0) {
1214
- throw takeObject(arg0);
1215
- };
1216
- imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function (arg0, arg1) {
1217
- const obj = getObject(arg1);
1218
- const ret = typeof (obj) === 'string' ? obj : undefined;
1219
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1220
- var len1 = WASM_VECTOR_LEN;
1221
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1222
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1223
- };
1224
- imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function (arg0, arg1) {
1225
- throw new Error(getStringFromWasm0(arg0, arg1));
1226
- };
1227
- imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function (arg0) {
1228
- getObject(arg0)._wbg_cb_unref();
1229
- };
1230
- imports.wbg.__wbg_abort_07646c894ebbf2bd = function (arg0) {
1231
- getObject(arg0).abort();
1232
- };
1233
- imports.wbg.__wbg_abort_399ecbcfd6ef3c8e = function (arg0, arg1) {
1234
- getObject(arg0).abort(getObject(arg1));
1235
- };
1236
- imports.wbg.__wbg_append_c5cbdf46455cc776 = function () {
1237
- return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1238
- getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1239
- }, arguments);
1240
- };
1241
- imports.wbg.__wbg_arrayBuffer_c04af4fce566092d = function () {
1242
- return handleError(function (arg0) {
1243
- const ret = getObject(arg0).arrayBuffer();
1244
- return addHeapObject(ret);
1245
- }, arguments);
1246
- };
1247
- imports.wbg.__wbg_async_bba5a2ac54b734df = function (arg0) {
1248
- const ret = getObject(arg0).async;
1249
- return ret;
1250
- };
1251
- imports.wbg.__wbg_buffer_063cd102cc769a1c = function (arg0) {
1252
- const ret = getObject(arg0).buffer;
1253
- return addHeapObject(ret);
1254
- };
1255
- imports.wbg.__wbg_call_3020136f7a2d6e44 = function () {
1256
- return handleError(function (arg0, arg1, arg2) {
1257
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
1258
- return addHeapObject(ret);
1259
- }, arguments);
1260
- };
1261
- imports.wbg.__wbg_call_abb4ff46ce38be40 = function () {
1262
- return handleError(function (arg0, arg1) {
1263
- const ret = getObject(arg0).call(getObject(arg1));
1264
- return addHeapObject(ret);
1265
- }, arguments);
1266
- };
1267
- imports.wbg.__wbg_changedHandle_0ce39601f5f9c30e = function (arg0) {
1268
- const ret = getObject(arg0).changedHandle;
1269
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
1270
- };
1271
- imports.wbg.__wbg_clearTimeout_7a42b49784aea641 = function (arg0) {
1272
- const ret = clearTimeout(takeObject(arg0));
1273
- return addHeapObject(ret);
1274
- };
1275
- imports.wbg.__wbg_close_e350fad820f0e4f1 = function (arg0) {
1276
- getObject(arg0).close();
1277
- };
1278
- imports.wbg.__wbg_close_fc83f40c91a520a4 = function (arg0) {
1279
- const ret = getObject(arg0).close();
1280
- return addHeapObject(ret);
1281
- };
1282
- imports.wbg.__wbg_createObjectURL_7d9f7f8f41373850 = function () {
1283
- return handleError(function (arg0, arg1) {
1284
- const ret = URL.createObjectURL(getObject(arg1));
1285
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1286
- const len1 = WASM_VECTOR_LEN;
1287
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1288
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1289
- }, arguments);
1290
- };
1291
- imports.wbg.__wbg_createWritable_e8453bacaff844bc = function (arg0) {
1292
- const ret = getObject(arg0).createWritable();
1293
- return addHeapObject(ret);
1294
- };
1295
- imports.wbg.__wbg_createsyncaccesshandleoptions_new = function (arg0) {
1296
- const ret = CreateSyncAccessHandleOptions.__wrap(arg0);
1297
- return addHeapObject(ret);
1298
- };
1299
- imports.wbg.__wbg_data_8bf4ae669a78a688 = function (arg0) {
1300
- const ret = getObject(arg0).data;
1301
- return addHeapObject(ret);
1302
- };
1303
- imports.wbg.__wbg_debug_9ad80675faf0c9cf = function (arg0, arg1, arg2, arg3) {
1304
- console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1305
- };
1306
- imports.wbg.__wbg_debug_9d0c87ddda3dc485 = function (arg0) {
1307
- console.debug(getObject(arg0));
1308
- };
1309
- imports.wbg.__wbg_direntry_new = function (arg0) {
1310
- const ret = DirEntry.__wrap(arg0);
1311
- return addHeapObject(ret);
1312
- };
1313
- imports.wbg.__wbg_done_62ea16af4ce34b24 = function (arg0) {
1314
- const ret = getObject(arg0).done;
1315
- return ret;
1316
- };
1317
- imports.wbg.__wbg_entries_7de5c9edd116e219 = function (arg0) {
1318
- const ret = getObject(arg0).entries();
1319
- return addHeapObject(ret);
1320
- };
1321
- imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function (arg0, arg1) {
1322
- let deferred0_0;
1323
- let deferred0_1;
1324
- try {
1325
- deferred0_0 = arg0;
1326
- deferred0_1 = arg1;
1327
- console.error(getStringFromWasm0(arg0, arg1));
1328
- }
1329
- finally {
1330
- wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
1331
- }
1332
- };
1333
- imports.wbg.__wbg_error_7bc7d576a6aaf855 = function (arg0) {
1334
- console.error(getObject(arg0));
1335
- };
1336
- imports.wbg.__wbg_error_ad1ecdacd1bb600d = function (arg0, arg1, arg2, arg3) {
1337
- console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1338
- };
1339
- imports.wbg.__wbg_eval_aa18aa048f37d16d = function () {
1340
- return handleError(function (arg0, arg1) {
1341
- const ret = eval(getStringFromWasm0(arg0, arg1));
1342
- return addHeapObject(ret);
1343
- }, arguments);
1344
- };
1345
- imports.wbg.__wbg_fetch_74a3e84ebd2c9a0e = function (arg0) {
1346
- const ret = fetch(getObject(arg0));
1347
- return addHeapObject(ret);
1348
- };
1349
- imports.wbg.__wbg_fetch_90447c28cc0b095e = function (arg0, arg1) {
1350
- const ret = getObject(arg0).fetch(getObject(arg1));
1351
- return addHeapObject(ret);
1352
- };
1353
- imports.wbg.__wbg_flush_554f5177ae6f76cb = function () {
1354
- return handleError(function (arg0) {
1355
- getObject(arg0).flush();
1356
- }, arguments);
1357
- };
1358
- imports.wbg.__wbg_from_29a8414a7a7cd19d = function (arg0) {
1359
- const ret = Array.from(getObject(arg0));
1360
- return addHeapObject(ret);
1361
- };
1362
- imports.wbg.__wbg_getDirectoryHandle_edea923e1d89a19d = function (arg0, arg1, arg2, arg3) {
1363
- const ret = getObject(arg0).getDirectoryHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
1364
- return addHeapObject(ret);
1365
- };
1366
- imports.wbg.__wbg_getDirectory_9beed6c83b6861f5 = function (arg0) {
1367
- const ret = getObject(arg0).getDirectory();
1368
- return addHeapObject(ret);
1369
- };
1370
- imports.wbg.__wbg_getFileHandle_298ee7a4e5a85f84 = function (arg0, arg1, arg2, arg3) {
1371
- const ret = getObject(arg0).getFileHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
1372
- return addHeapObject(ret);
1373
- };
1374
- imports.wbg.__wbg_getFile_3d12eaf635641f3a = function (arg0) {
1375
- const ret = getObject(arg0).getFile();
1376
- return addHeapObject(ret);
1377
- };
1378
- imports.wbg.__wbg_getRandomValues_80578b2ff2a093ba = function () {
1379
- return handleError(function (arg0) {
1380
- globalThis.crypto.getRandomValues(getObject(arg0));
1381
- }, arguments);
1382
- };
1383
- imports.wbg.__wbg_get_6b7bd52aca3f9671 = function (arg0, arg1) {
1384
- const ret = getObject(arg0)[arg1 >>> 0];
1385
- return addHeapObject(ret);
1386
- };
1387
- imports.wbg.__wbg_get_af9dab7e9603ea93 = function () {
1388
- return handleError(function (arg0, arg1) {
1389
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
1390
- return addHeapObject(ret);
1391
- }, arguments);
1392
- };
1393
- imports.wbg.__wbg_has_0e670569d65d3a45 = function () {
1394
- return handleError(function (arg0, arg1) {
1395
- const ret = Reflect.has(getObject(arg0), getObject(arg1));
1396
- return ret;
1397
- }, arguments);
1398
- };
1399
- imports.wbg.__wbg_headers_654c30e1bcccc552 = function (arg0) {
1400
- const ret = getObject(arg0).headers;
1401
- return addHeapObject(ret);
1402
- };
1403
- imports.wbg.__wbg_info_b7fa8ce2e59d29c6 = function (arg0, arg1, arg2, arg3) {
1404
- console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1405
- };
1406
- imports.wbg.__wbg_info_ce6bcc489c22f6f0 = function (arg0) {
1407
- console.info(getObject(arg0));
1408
- };
1409
- imports.wbg.__wbg_instanceof_DedicatedWorkerGlobalScope_1fad9829936e95d2 = function (arg0) {
1410
- let result;
1411
- try {
1412
- result = getObject(arg0) instanceof DedicatedWorkerGlobalScope;
1413
- }
1414
- catch (_) {
1415
- result = false;
1416
- }
1417
- const ret = result;
1418
- return ret;
1419
- };
1420
- imports.wbg.__wbg_instanceof_DomException_d430cd4fb5284a83 = function (arg0) {
1421
- let result;
1422
- try {
1423
- result = getObject(arg0) instanceof DOMException;
1424
- }
1425
- catch (_) {
1426
- result = false;
1427
- }
1428
- const ret = result;
1429
- return ret;
1430
- };
1431
- imports.wbg.__wbg_instanceof_FileSystemDirectoryHandle_264085cadc86679a = function (arg0) {
1432
- let result;
1433
- try {
1434
- result = getObject(arg0) instanceof FileSystemDirectoryHandle;
1435
- }
1436
- catch (_) {
1437
- result = false;
1438
- }
1439
- const ret = result;
1440
- return ret;
1441
- };
1442
- imports.wbg.__wbg_instanceof_Response_cd74d1c2ac92cb0b = function (arg0) {
1443
- let result;
1444
- try {
1445
- result = getObject(arg0) instanceof Response;
1446
- }
1447
- catch (_) {
1448
- result = false;
1449
- }
1450
- const ret = result;
1451
- return ret;
1452
- };
1453
- imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function (arg0) {
1454
- let result;
1455
- try {
1456
- result = getObject(arg0) instanceof Uint8Array;
1457
- }
1458
- catch (_) {
1459
- result = false;
1460
- }
1461
- const ret = result;
1462
- return ret;
1463
- };
1464
- imports.wbg.__wbg_isArray_51fd9e6422c0a395 = function (arg0) {
1465
- const ret = Array.isArray(getObject(arg0));
1466
- return ret;
1467
- };
1468
- imports.wbg.__wbg_iterator_27b7c8b35ab3e86b = function () {
1469
- const ret = Symbol.iterator;
1470
- return addHeapObject(ret);
1471
- };
1472
- imports.wbg.__wbg_kind_537a771004f87998 = function (arg0) {
1473
- const ret = getObject(arg0).kind;
1474
- return (__wbindgen_enum_FileSystemHandleKind.indexOf(ret) + 1 || 3) - 1;
1475
- };
1476
- imports.wbg.__wbg_length_22ac23eaec9d8053 = function (arg0) {
1477
- const ret = getObject(arg0).length;
1478
- return ret;
1479
- };
1480
- imports.wbg.__wbg_length_d45040a40c570362 = function (arg0) {
1481
- const ret = getObject(arg0).length;
1482
- return ret;
1483
- };
1484
- imports.wbg.__wbg_metadata_new = function (arg0) {
1485
- const ret = Metadata.__wrap(arg0);
1486
- return addHeapObject(ret);
1487
- };
1488
- imports.wbg.__wbg_name_7716fd7c364d6ae5 = function (arg0, arg1) {
1489
- const ret = getObject(arg1).name;
1490
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1491
- const len1 = WASM_VECTOR_LEN;
1492
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1493
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1494
- };
1495
- imports.wbg.__wbg_name_9136863a055402ff = function (arg0, arg1) {
1496
- const ret = getObject(arg1).name;
1497
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1498
- const len1 = WASM_VECTOR_LEN;
1499
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1500
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1501
- };
1502
- imports.wbg.__wbg_navigator_11b7299bb7886507 = function (arg0) {
1503
- const ret = getObject(arg0).navigator;
1504
- return addHeapObject(ret);
1505
- };
1506
- imports.wbg.__wbg_new_1ba21ce319a06297 = function () {
1507
- const ret = new Object();
1508
- return addHeapObject(ret);
1509
- };
1510
- imports.wbg.__wbg_new_25f239778d6112b9 = function () {
1511
- const ret = new Array();
1512
- return addHeapObject(ret);
1513
- };
1514
- imports.wbg.__wbg_new_3c79b3bb1b32b7d3 = function () {
1515
- return handleError(function () {
1516
- const ret = new Headers();
1517
- return addHeapObject(ret);
1518
- }, arguments);
1519
- };
1520
- imports.wbg.__wbg_new_53cb1e86c1ef5d2a = function () {
1521
- return handleError(function (arg0, arg1) {
1522
- const ret = new Worker(getStringFromWasm0(arg0, arg1));
1523
- return addHeapObject(ret);
1524
- }, arguments);
1525
- };
1526
- imports.wbg.__wbg_new_6421f6084cc5bc5a = function (arg0) {
1527
- const ret = new Uint8Array(getObject(arg0));
1528
- return addHeapObject(ret);
1529
- };
1530
- imports.wbg.__wbg_new_881a222c65f168fc = function () {
1531
- return handleError(function () {
1532
- const ret = new AbortController();
1533
- return addHeapObject(ret);
1534
- }, arguments);
1535
- };
1536
- imports.wbg.__wbg_new_8a6f238a6ece86ea = function () {
1537
- const ret = new Error();
1538
- return addHeapObject(ret);
1539
- };
1540
- imports.wbg.__wbg_new_b546ae120718850e = function () {
1541
- const ret = new Map();
1542
- return addHeapObject(ret);
1543
- };
1544
- imports.wbg.__wbg_new_d6f88a54b6f7b7a4 = function (arg0) {
1545
- const ret = new FileSystemObserver(getObject(arg0));
1546
- return addHeapObject(ret);
1547
- };
1548
- imports.wbg.__wbg_new_de1e660b88fc921f = function (arg0) {
1549
- const ret = new Int32Array(getObject(arg0));
1550
- return addHeapObject(ret);
1551
- };
1552
- imports.wbg.__wbg_new_ff12d2b041fb48f1 = function (arg0, arg1) {
1553
- try {
1554
- var state0 = { a: arg0, b: arg1 };
1555
- var cb0 = (arg0, arg1) => {
1556
- const a = state0.a;
1557
- state0.a = 0;
1558
- try {
1559
- return __wasm_bindgen_func_elem_3385(a, state0.b, arg0, arg1);
1560
- }
1561
- finally {
1562
- state0.a = a;
1563
- }
1564
- };
1565
- const ret = new Promise(cb0);
1566
- return addHeapObject(ret);
1985
+ function expectedResponseType(type) {
1986
+ switch (type) {
1987
+ case 'basic':
1988
+ case 'cors':
1989
+ case 'default': return true;
1567
1990
  }
1568
- finally {
1569
- state0.a = state0.b = 0;
1570
- }
1571
- };
1572
- imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function (arg0, arg1) {
1573
- const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1574
- return addHeapObject(ret);
1575
- };
1576
- imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function (arg0, arg1) {
1577
- const ret = new Function(getStringFromWasm0(arg0, arg1));
1578
- return addHeapObject(ret);
1579
- };
1580
- imports.wbg.__wbg_new_with_length_aa5eaf41d35235e5 = function (arg0) {
1581
- const ret = new Uint8Array(arg0 >>> 0);
1582
- return addHeapObject(ret);
1583
- };
1584
- imports.wbg.__wbg_new_with_options_2978557c2c268ef3 = function () {
1585
- return handleError(function (arg0, arg1, arg2) {
1586
- const ret = new Worker(getStringFromWasm0(arg0, arg1), getObject(arg2));
1587
- return addHeapObject(ret);
1588
- }, arguments);
1589
- };
1590
- imports.wbg.__wbg_new_with_str_and_init_c5748f76f5108934 = function () {
1591
- return handleError(function (arg0, arg1, arg2) {
1592
- const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
1593
- return addHeapObject(ret);
1594
- }, arguments);
1595
- };
1596
- imports.wbg.__wbg_new_with_str_sequence_d016b9add23bf7ce = function () {
1597
- return handleError(function (arg0) {
1598
- const ret = new Blob(getObject(arg0));
1599
- return addHeapObject(ret);
1600
- }, arguments);
1601
- };
1602
- imports.wbg.__wbg_next_138a17bbf04e926c = function (arg0) {
1603
- const ret = getObject(arg0).next;
1604
- return addHeapObject(ret);
1605
- };
1606
- imports.wbg.__wbg_next_3cfe5c0fe2a4cc53 = function () {
1607
- return handleError(function (arg0) {
1608
- const ret = getObject(arg0).next();
1609
- return addHeapObject(ret);
1610
- }, arguments);
1611
- };
1612
- imports.wbg.__wbg_next_b34c09a202bf4424 = function () {
1613
- return handleError(function (arg0) {
1614
- const ret = getObject(arg0).next();
1615
- return addHeapObject(ret);
1616
- }, arguments);
1617
- };
1618
- imports.wbg.__wbg_now_0dc4920a47cf7280 = function (arg0) {
1619
- const ret = getObject(arg0).now();
1620
- return ret;
1621
- };
1622
- imports.wbg.__wbg_now_2c95c9de01293173 = function (arg0) {
1623
- const ret = getObject(arg0).now();
1624
- return ret;
1625
- };
1626
- imports.wbg.__wbg_now_69d776cd24f5215b = function () {
1627
- const ret = Date.now();
1628
- return ret;
1629
- };
1630
- imports.wbg.__wbg_observe_816bf97ae9b1a9ff = function (arg0, arg1, arg2) {
1631
- const ret = getObject(arg0).observe(getObject(arg1), getObject(arg2));
1632
- return addHeapObject(ret);
1633
- };
1634
- imports.wbg.__wbg_of_7779827fa663eec8 = function (arg0, arg1, arg2) {
1635
- const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2));
1636
- return addHeapObject(ret);
1637
- };
1638
- imports.wbg.__wbg_performance_6adc3b899e448a23 = function (arg0) {
1639
- const ret = getObject(arg0).performance;
1640
- return addHeapObject(ret);
1641
- };
1642
- imports.wbg.__wbg_performance_7a3ffd0b17f663ad = function (arg0) {
1643
- const ret = getObject(arg0).performance;
1644
- return addHeapObject(ret);
1645
- };
1646
- imports.wbg.__wbg_postMessage_07504dbe15265d5c = function () {
1647
- return handleError(function (arg0, arg1) {
1648
- getObject(arg0).postMessage(getObject(arg1));
1649
- }, arguments);
1650
- };
1651
- imports.wbg.__wbg_postMessage_7243f814e0cfb266 = function () {
1652
- return handleError(function (arg0, arg1) {
1653
- getObject(arg0).postMessage(getObject(arg1));
1654
- }, arguments);
1655
- };
1656
- imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function (arg0, arg1, arg2) {
1657
- Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
1658
- };
1659
- imports.wbg.__wbg_push_7d9be8f38fc13975 = function (arg0, arg1) {
1660
- const ret = getObject(arg0).push(getObject(arg1));
1661
- return ret;
1662
- };
1663
- imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function (arg0) {
1664
- const ret = getObject(arg0).queueMicrotask;
1665
- return addHeapObject(ret);
1666
- };
1667
- imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function (arg0) {
1668
- queueMicrotask(getObject(arg0));
1669
- };
1670
- imports.wbg.__wbg_random_cc1f9237d866d212 = function () {
1671
- const ret = Math.random();
1672
- return ret;
1673
- };
1674
- imports.wbg.__wbg_relativePathComponents_e37247a2031eeec1 = function (arg0) {
1675
- const ret = getObject(arg0).relativePathComponents;
1676
- return addHeapObject(ret);
1677
- };
1678
- imports.wbg.__wbg_removeEntry_e055e728cc398139 = function (arg0, arg1, arg2, arg3) {
1679
- const ret = getObject(arg0).removeEntry(getStringFromWasm0(arg1, arg2), getObject(arg3));
1680
- return addHeapObject(ret);
1681
- };
1682
- imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function (arg0) {
1683
- const ret = Promise.resolve(getObject(arg0));
1684
- return addHeapObject(ret);
1685
- };
1686
- imports.wbg.__wbg_root_ff301faf8126f41e = function (arg0) {
1687
- const ret = getObject(arg0).root;
1688
- return addHeapObject(ret);
1689
- };
1690
- imports.wbg.__wbg_setTimeout_63008613644b07af = function () {
1691
- return handleError(function (arg0, arg1, arg2) {
1692
- const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
1693
- return addHeapObject(ret);
1694
- }, arguments);
1695
- };
1696
- imports.wbg.__wbg_setTimeout_7bb3429662ab1e70 = function (arg0, arg1) {
1697
- const ret = setTimeout(getObject(arg0), arg1);
1698
- return addHeapObject(ret);
1699
- };
1700
- imports.wbg.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
1701
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
1702
- };
1703
- imports.wbg.__wbg_set_7df433eea03a5c14 = function (arg0, arg1, arg2) {
1704
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
1705
- };
1706
- imports.wbg.__wbg_set_body_8e743242d6076a4f = function (arg0, arg1) {
1707
- getObject(arg0).body = getObject(arg1);
1708
- };
1709
- imports.wbg.__wbg_set_cache_0e437c7c8e838b9b = function (arg0, arg1) {
1710
- getObject(arg0).cache = __wbindgen_enum_RequestCache[arg1];
1711
- };
1712
- imports.wbg.__wbg_set_create_a7fa115dfd714480 = function (arg0, arg1) {
1713
- getObject(arg0).create = arg1 !== 0;
1714
- };
1715
- imports.wbg.__wbg_set_create_c87a4965b38c1564 = function (arg0, arg1) {
1716
- getObject(arg0).create = arg1 !== 0;
1717
- };
1718
- imports.wbg.__wbg_set_credentials_55ae7c3c106fd5be = function (arg0, arg1) {
1719
- getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
1720
- };
1721
- imports.wbg.__wbg_set_efaaf145b9377369 = function (arg0, arg1, arg2) {
1722
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
1723
- return addHeapObject(ret);
1724
- };
1725
- imports.wbg.__wbg_set_headers_5671cf088e114d2b = function (arg0, arg1) {
1726
- getObject(arg0).headers = getObject(arg1);
1727
- };
1728
- imports.wbg.__wbg_set_method_76c69e41b3570627 = function (arg0, arg1, arg2) {
1729
- getObject(arg0).method = getStringFromWasm0(arg1, arg2);
1730
- };
1731
- imports.wbg.__wbg_set_mode_611016a6818fc690 = function (arg0, arg1) {
1732
- getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
1733
- };
1734
- imports.wbg.__wbg_set_name_5399dd71553bb72d = function (arg0, arg1, arg2) {
1735
- getObject(arg0).name = getStringFromWasm0(arg1, arg2);
1736
- };
1737
- imports.wbg.__wbg_set_onmessage_deb94985de696ac7 = function (arg0, arg1) {
1738
- getObject(arg0).onmessage = getObject(arg1);
1739
- };
1740
- imports.wbg.__wbg_set_recursive_7ac0b14755335bfb = function (arg0, arg1) {
1741
- getObject(arg0).recursive = arg1 !== 0;
1742
- };
1743
- imports.wbg.__wbg_set_recursive_80f40a5f9f0d08b6 = function (arg0, arg1) {
1744
- getObject(arg0).recursive = arg1 !== 0;
1745
- };
1746
- imports.wbg.__wbg_set_signal_e89be862d0091009 = function (arg0, arg1) {
1747
- getObject(arg0).signal = getObject(arg1);
1748
- };
1749
- imports.wbg.__wbg_set_type_c2eb2929316959f4 = function (arg0, arg1) {
1750
- getObject(arg0).type = __wbindgen_enum_WorkerType[arg1];
1751
- };
1752
- imports.wbg.__wbg_signal_3c14fbdc89694b39 = function (arg0) {
1753
- const ret = getObject(arg0).signal;
1754
- return addHeapObject(ret);
1755
- };
1756
- imports.wbg.__wbg_size_82fbdb656de23326 = function (arg0) {
1757
- const ret = getObject(arg0).size;
1758
- return ret;
1759
- };
1760
- imports.wbg.__wbg_slice_f3670679f8730340 = function () {
1761
- return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1762
- const ret = getObject(arg0).slice(arg1, arg2, getStringFromWasm0(arg3, arg4));
1763
- return addHeapObject(ret);
1764
- }, arguments);
1765
- };
1766
- imports.wbg.__wbg_stack_0ed75d68575b0f3c = function (arg0, arg1) {
1767
- const ret = getObject(arg1).stack;
1768
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1769
- const len1 = WASM_VECTOR_LEN;
1770
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1771
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1772
- };
1773
- imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function () {
1774
- const ret = typeof global === 'undefined' ? null : global;
1775
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
1776
- };
1777
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function () {
1778
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
1779
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
1780
- };
1781
- imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function () {
1782
- const ret = typeof self === 'undefined' ? null : self;
1783
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
1784
- };
1785
- imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function () {
1786
- const ret = typeof window === 'undefined' ? null : window;
1787
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
1788
- };
1789
- imports.wbg.__wbg_status_9bfc680efca4bdfd = function (arg0) {
1790
- const ret = getObject(arg0).status;
1791
- return ret;
1792
- };
1793
- imports.wbg.__wbg_storage_7db24ea4f9f4aa79 = function (arg0) {
1794
- const ret = getObject(arg0).storage;
1795
- return addHeapObject(ret);
1796
- };
1797
- imports.wbg.__wbg_stringify_655a6390e1f5eb6b = function () {
1798
- return handleError(function (arg0) {
1799
- const ret = JSON.stringify(getObject(arg0));
1800
- return addHeapObject(ret);
1801
- }, arguments);
1802
- };
1803
- imports.wbg.__wbg_subarray_845f2f5bce7d061a = function (arg0, arg1, arg2) {
1804
- const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
1805
- return addHeapObject(ret);
1806
- };
1807
- imports.wbg.__wbg_then_429f7caf1026411d = function (arg0, arg1, arg2) {
1808
- const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
1809
- return addHeapObject(ret);
1810
- };
1811
- imports.wbg.__wbg_then_4f95312d68691235 = function (arg0, arg1) {
1812
- const ret = getObject(arg0).then(getObject(arg1));
1813
- return addHeapObject(ret);
1814
- };
1815
- imports.wbg.__wbg_timeOrigin_9f29a08704a944d0 = function (arg0) {
1816
- const ret = getObject(arg0).timeOrigin;
1817
- return ret;
1818
- };
1819
- imports.wbg.__wbg_toString_f07112df359c997f = function (arg0) {
1820
- const ret = getObject(arg0).toString();
1821
- return addHeapObject(ret);
1822
- };
1823
- imports.wbg.__wbg_truncate_9e72c83b9fc1d156 = function () {
1824
- return handleError(function (arg0, arg1) {
1825
- getObject(arg0).truncate(arg1 >>> 0);
1826
- }, arguments);
1827
- };
1828
- imports.wbg.__wbg_type_248a74d60fcb6433 = function (arg0) {
1829
- const ret = getObject(arg0).type;
1830
- return (__wbindgen_enum_FileSystemChangeRecordType.indexOf(ret) + 1 || 7) - 1;
1831
- };
1832
- imports.wbg.__wbg_url_b6d11838a4f95198 = function (arg0, arg1) {
1833
- const ret = getObject(arg1).url;
1834
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1835
- const len1 = WASM_VECTOR_LEN;
1836
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1837
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1838
- };
1839
- imports.wbg.__wbg_value_4cd497eeadba94bd = function (arg0) {
1840
- const ret = getObject(arg0).value;
1841
- return addHeapObject(ret);
1842
- };
1843
- imports.wbg.__wbg_value_57b7b035e117f7ee = function (arg0) {
1844
- const ret = getObject(arg0).value;
1845
- return addHeapObject(ret);
1846
- };
1847
- imports.wbg.__wbg_waitAsync_8afec80ffd213eca = function (arg0, arg1, arg2) {
1848
- const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
1849
- return addHeapObject(ret);
1850
- };
1851
- imports.wbg.__wbg_waitAsync_c186cb97ffacd552 = function () {
1852
- const ret = Atomics.waitAsync;
1853
- return addHeapObject(ret);
1854
- };
1855
- imports.wbg.__wbg_warn_165ef4f6bcfc05e7 = function (arg0, arg1, arg2, arg3) {
1856
- console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1857
- };
1858
- imports.wbg.__wbg_warn_6e567d0d926ff881 = function (arg0) {
1859
- console.warn(getObject(arg0));
1860
- };
1861
- imports.wbg.__wbg_wasmtaskmessage_new = function (arg0) {
1862
- const ret = WasmTaskMessage.__wrap(arg0);
1863
- return addHeapObject(ret);
1864
- };
1865
- imports.wbg.__wbg_webworkercreation_new = function (arg0) {
1866
- const ret = WebWorkerCreation.__wrap(arg0);
1867
- return addHeapObject(ret);
1868
- };
1869
- imports.wbg.__wbg_webworkertermination_new = function (arg0) {
1870
- const ret = WebWorkerTermination.__wrap(arg0);
1871
- return addHeapObject(ret);
1872
- };
1873
- imports.wbg.__wbindgen_cast_1b8e0aaf75797659 = function (arg0, arg1) {
1874
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7384, function: Function { arguments: [], shim_idx: 1847, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1875
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83434, __wasm_bindgen_func_elem_22473);
1876
- return addHeapObject(ret);
1877
- };
1878
- imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
1879
- // Cast intrinsic for `Ref(String) -> Externref`.
1880
- const ret = getStringFromWasm0(arg0, arg1);
1881
- return addHeapObject(ret);
1882
- };
1883
- imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
1884
- // Cast intrinsic for `U64 -> Externref`.
1885
- const ret = BigInt.asUintN(64, arg0);
1886
- return addHeapObject(ret);
1887
- };
1888
- imports.wbg.__wbindgen_cast_528f16a631193d95 = function (arg0, arg1) {
1889
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7381, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 7382, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1890
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83426, __wasm_bindgen_func_elem_83427);
1891
- return addHeapObject(ret);
1892
- };
1893
- imports.wbg.__wbindgen_cast_650a3c971946a2fe = function (arg0, arg1) {
1894
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1846, function: Function { arguments: [], shim_idx: 1847, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1895
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_22471, __wasm_bindgen_func_elem_22473);
1896
- return addHeapObject(ret);
1897
- };
1898
- imports.wbg.__wbindgen_cast_652fa2a9e6efce74 = function (arg0, arg1) {
1899
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7360, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 7377, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1900
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83120, __wasm_bindgen_func_elem_83372);
1901
- return addHeapObject(ret);
1902
- };
1903
- imports.wbg.__wbindgen_cast_76322aab70622876 = function (arg0, arg1) {
1904
- var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
1905
- wasm.__wbindgen_export4(arg0, arg1 * 4, 4);
1906
- // Cast intrinsic for `Vector(NamedExternref("DirEntry")) -> Externref`.
1907
- const ret = v0;
1908
- return addHeapObject(ret);
1909
- };
1910
- imports.wbg.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
1911
- // Cast intrinsic for `I64 -> Externref`.
1912
- const ret = arg0;
1913
- return addHeapObject(ret);
1914
- };
1915
- imports.wbg.__wbindgen_cast_cccd96d16911d371 = function (arg0, arg1) {
1916
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7360, function: Function { arguments: [Externref], shim_idx: 7377, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1917
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83120, __wasm_bindgen_func_elem_83372);
1918
- return addHeapObject(ret);
1919
- };
1920
- imports.wbg.__wbindgen_cast_d3216154c60fbbf7 = function (arg0, arg1) {
1921
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7360, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 7361, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1922
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_83120, __wasm_bindgen_func_elem_83121);
1923
- return addHeapObject(ret);
1924
- };
1925
- imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
1926
- // Cast intrinsic for `F64 -> Externref`.
1927
- const ret = arg0;
1928
- return addHeapObject(ret);
1929
- };
1930
- imports.wbg.__wbindgen_link_203404ece0e9bab9 = function (arg0) {
1931
- const val = `onmessage = function (ev) {
1932
- let [ia, index, value] = ev.data;
1933
- ia = new Int32Array(ia.buffer);
1934
- let result = Atomics.wait(ia, index, value);
1935
- postMessage(result);
1936
- };
1937
- `;
1938
- const ret = typeof URL.createObjectURL === 'undefined' ? "data:application/javascript," + encodeURIComponent(val) : URL.createObjectURL(new Blob([val], { type: "text/javascript" }));
1939
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1940
- const len1 = WASM_VECTOR_LEN;
1941
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1942
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1943
- };
1944
- imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
1945
- const ret = getObject(arg0);
1946
- return addHeapObject(ret);
1947
- };
1948
- imports.wbg.__wbindgen_object_drop_ref = function (arg0) {
1949
- takeObject(arg0);
1950
- };
1951
- imports.wbg.memory = memory || new WebAssembly.Memory({ initial: 1025, maximum: 65536, shared: true });
1952
- return imports;
1953
- }
1954
- function __wbg_finalize_init(instance, module, thread_stack_size) {
1955
- wasm = instance.exports;
1956
- __wbg_init.__wbindgen_wasm_module = module;
1957
- cachedDataViewMemory0 = null;
1958
- cachedUint8ArrayMemory0 = null;
1959
- if (typeof thread_stack_size !== 'undefined' && (typeof thread_stack_size !== 'number' || thread_stack_size === 0 || thread_stack_size % 65536 !== 0)) {
1960
- throw 'invalid stack size';
1991
+ return false;
1961
1992
  }
1962
- wasm.__wbindgen_start(thread_stack_size);
1963
- return wasm;
1964
1993
  }
1965
1994
  function initSync(module, memory) {
1966
1995
  if (wasm !== undefined)
1967
1996
  return wasm;
1968
1997
  let thread_stack_size;
1969
- if (typeof module !== 'undefined') {
1998
+ if (module !== undefined) {
1970
1999
  if (Object.getPrototypeOf(module) === Object.prototype) {
1971
2000
  ({ module, memory, thread_stack_size } = module);
1972
2001
  }
@@ -1985,7 +2014,7 @@ async function __wbg_init(module_or_path, memory) {
1985
2014
  if (wasm !== undefined)
1986
2015
  return wasm;
1987
2016
  let thread_stack_size;
1988
- if (typeof module_or_path !== 'undefined') {
2017
+ if (module_or_path !== undefined) {
1989
2018
  if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
1990
2019
  ({ module_or_path, memory, thread_stack_size } = module_or_path);
1991
2020
  }
@@ -1993,7 +2022,7 @@ async function __wbg_init(module_or_path, memory) {
1993
2022
  console.warn('using deprecated parameters for the initialization function; pass a single object instead');
1994
2023
  }
1995
2024
  }
1996
- if (typeof module_or_path === 'undefined') {
2025
+ if (module_or_path === undefined) {
1997
2026
  module_or_path = new URL('index_bg.wasm', import.meta.url);
1998
2027
  }
1999
2028
  const imports = __wbg_get_imports(memory);
@@ -2003,5 +2032,4 @@ async function __wbg_init(module_or_path, memory) {
2003
2032
  const { instance, module } = await __wbg_load(await module_or_path, imports);
2004
2033
  return __wbg_finalize_init(instance, module, thread_stack_size);
2005
2034
  }
2006
- export { initSync };
2007
- export default __wbg_init;
2035
+ export { initSync, __wbg_init as default };