@next/swc-wasm-web 14.1.2 → 14.2.0-canary.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next/swc-wasm-web",
3
- "version": "14.1.2",
3
+ "version": "14.2.0-canary.1",
4
4
  "files": [
5
5
  "wasm_bg.wasm",
6
6
  "wasm.js",
package/wasm.d.ts CHANGED
@@ -61,13 +61,13 @@ export interface InitOutput {
61
61
  readonly transform: (a: number, b: number) => number;
62
62
  readonly parseSync: (a: number, b: number, c: number) => void;
63
63
  readonly parse: (a: number, b: number) => number;
64
- readonly __wbindgen_malloc: (a: number) => number;
65
- readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
64
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
65
+ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
66
66
  readonly __wbindgen_export_2: WebAssembly.Table;
67
- readonly wasm_bindgen_48203e07820231a3___convert__closures__invoke1_mut___wasm_bindgen_48203e07820231a3___JsValue_____: (a: number, b: number, c: number) => void;
68
- readonly __wbindgen_free: (a: number, b: number) => void;
67
+ readonly wasm_bindgen_db1a10163f1cae81___convert__closures__invoke1_mut___wasm_bindgen_db1a10163f1cae81___JsValue_____: (a: number, b: number, c: number) => void;
68
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
69
69
  readonly __wbindgen_exn_store: (a: number) => void;
70
- readonly wasm_bindgen_48203e07820231a3___convert__closures__invoke2_mut___wasm_bindgen_48203e07820231a3___JsValue__wasm_bindgen_48203e07820231a3___JsValue_____: (a: number, b: number, c: number, d: number) => void;
70
+ readonly wasm_bindgen_db1a10163f1cae81___convert__closures__invoke2_mut___wasm_bindgen_db1a10163f1cae81___JsValue__wasm_bindgen_db1a10163f1cae81___JsValue_____: (a: number, b: number, c: number, d: number) => void;
71
71
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
72
72
  }
73
73
 
@@ -90,4 +90,4 @@ export function initSync(module: SyncInitInput): InitOutput;
90
90
  *
91
91
  * @returns {Promise<InitOutput>}
92
92
  */
93
- export default function init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
93
+ export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
package/wasm.js CHANGED
@@ -29,9 +29,9 @@ function addHeapObject(obj) {
29
29
  return idx;
30
30
  }
31
31
 
32
- const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
32
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
33
33
 
34
- cachedTextDecoder.decode();
34
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
35
35
 
36
36
  let cachedUint8Memory0 = null;
37
37
 
@@ -43,6 +43,7 @@ function getUint8Memory0() {
43
43
  }
44
44
 
45
45
  function getStringFromWasm0(ptr, len) {
46
+ ptr = ptr >>> 0;
46
47
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
47
48
  }
48
49
 
@@ -70,7 +71,7 @@ function getInt32Memory0() {
70
71
 
71
72
  let WASM_VECTOR_LEN = 0;
72
73
 
73
- const cachedTextEncoder = new TextEncoder('utf-8');
74
+ const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
74
75
 
75
76
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
76
77
  ? function (arg, view) {
@@ -89,14 +90,14 @@ function passStringToWasm0(arg, malloc, realloc) {
89
90
 
90
91
  if (realloc === undefined) {
91
92
  const buf = cachedTextEncoder.encode(arg);
92
- const ptr = malloc(buf.length);
93
+ const ptr = malloc(buf.length, 1) >>> 0;
93
94
  getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
94
95
  WASM_VECTOR_LEN = buf.length;
95
96
  return ptr;
96
97
  }
97
98
 
98
99
  let len = arg.length;
99
- let ptr = malloc(len);
100
+ let ptr = malloc(len, 1) >>> 0;
100
101
 
101
102
  const mem = getUint8Memory0();
102
103
 
@@ -112,11 +113,12 @@ function passStringToWasm0(arg, malloc, realloc) {
112
113
  if (offset !== 0) {
113
114
  arg = arg.slice(offset);
114
115
  }
115
- ptr = realloc(ptr, len, len = offset + arg.length * 3);
116
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
116
117
  const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
117
118
  const ret = encodeString(arg, view);
118
119
 
119
120
  offset += ret.written;
121
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
120
122
  }
121
123
 
122
124
  WASM_VECTOR_LEN = offset;
@@ -197,6 +199,12 @@ function debugString(val) {
197
199
  return className;
198
200
  }
199
201
 
202
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
203
+ ? { register: () => {}, unregister: () => {} }
204
+ : new FinalizationRegistry(state => {
205
+ wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b)
206
+ });
207
+
200
208
  function makeMutClosure(arg0, arg1, dtor, f) {
201
209
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
202
210
  const real = (...args) => {
@@ -211,18 +219,18 @@ function makeMutClosure(arg0, arg1, dtor, f) {
211
219
  } finally {
212
220
  if (--state.cnt === 0) {
213
221
  wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
214
-
222
+ CLOSURE_DTORS.unregister(state);
215
223
  } else {
216
224
  state.a = a;
217
225
  }
218
226
  }
219
227
  };
220
228
  real.original = state;
221
-
229
+ CLOSURE_DTORS.register(real, state, state);
222
230
  return real;
223
231
  }
224
232
  function __wbg_adapter_48(arg0, arg1, arg2) {
225
- wasm.wasm_bindgen_48203e07820231a3___convert__closures__invoke1_mut___wasm_bindgen_48203e07820231a3___JsValue_____(arg0, arg1, addHeapObject(arg2));
233
+ wasm.wasm_bindgen_db1a10163f1cae81___convert__closures__invoke1_mut___wasm_bindgen_db1a10163f1cae81___JsValue_____(arg0, arg1, addHeapObject(arg2));
226
234
  }
227
235
 
228
236
  function getCachedStringFromWasm0(ptr, len) {
@@ -241,7 +249,7 @@ function handleError(f, args) {
241
249
  }
242
250
  }
243
251
  function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
244
- wasm.wasm_bindgen_48203e07820231a3___convert__closures__invoke2_mut___wasm_bindgen_48203e07820231a3___JsValue__wasm_bindgen_48203e07820231a3___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
252
+ wasm.wasm_bindgen_db1a10163f1cae81___convert__closures__invoke2_mut___wasm_bindgen_db1a10163f1cae81___JsValue__wasm_bindgen_db1a10163f1cae81___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
245
253
  }
246
254
 
247
255
  /**
@@ -368,7 +376,7 @@ export function parse(s, opts) {
368
376
  return takeObject(ret);
369
377
  }
370
378
 
371
- async function load(module, imports) {
379
+ async function __wbg_load(module, imports) {
372
380
  if (typeof Response === 'function' && module instanceof Response) {
373
381
  if (typeof WebAssembly.instantiateStreaming === 'function') {
374
382
  try {
@@ -399,17 +407,13 @@ async function load(module, imports) {
399
407
  }
400
408
  }
401
409
 
402
- function getImports() {
410
+ function __wbg_get_imports() {
403
411
  const imports = {};
404
412
  imports.wbg = {};
405
- imports.wbg.__wbg_new0_25059e40b1c02766 = function() {
413
+ imports.wbg.__wbg_new0_7a6141101f2206da = function() {
406
414
  const ret = new Date();
407
415
  return addHeapObject(ret);
408
416
  };
409
- imports.wbg.__wbg_getTime_7c59072d1651a3cf = function(arg0) {
410
- const ret = getObject(arg0).getTime();
411
- return ret;
412
- };
413
417
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
414
418
  takeObject(arg0);
415
419
  };
@@ -417,92 +421,63 @@ function getImports() {
417
421
  const ret = arg0;
418
422
  return addHeapObject(ret);
419
423
  };
420
- imports.wbg.__wbg_new_f127e324c1313064 = function(arg0) {
424
+ imports.wbg.__wbg_new_a9d80688888b4894 = function(arg0) {
421
425
  const ret = new Date(getObject(arg0));
422
426
  return addHeapObject(ret);
423
427
  };
424
- imports.wbg.__wbg_getTimezoneOffset_2a6b27fb18493a56 = function(arg0) {
428
+ imports.wbg.__wbg_getTimezoneOffset_840b552f34917133 = function(arg0) {
425
429
  const ret = getObject(arg0).getTimezoneOffset();
426
430
  return ret;
427
431
  };
432
+ imports.wbg.__wbg_getTime_0e03c3f524be31ef = function(arg0) {
433
+ const ret = getObject(arg0).getTime();
434
+ return ret;
435
+ };
428
436
  imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
429
437
  const ret = new Error();
430
438
  return addHeapObject(ret);
431
439
  };
432
440
  imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
433
441
  const ret = getObject(arg1).stack;
434
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
435
- const len0 = WASM_VECTOR_LEN;
436
- getInt32Memory0()[arg0 / 4 + 1] = len0;
437
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
442
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
443
+ const len1 = WASM_VECTOR_LEN;
444
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
445
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
438
446
  };
439
447
  imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
440
448
  var v0 = getCachedStringFromWasm0(arg0, arg1);
441
- if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1); }
449
+ if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
442
450
  console.error(v0);
443
451
  };
444
452
  imports.wbg.__wbindgen_memory = function() {
445
453
  const ret = wasm.memory;
446
454
  return addHeapObject(ret);
447
455
  };
448
- imports.wbg.__wbg_buffer_cf65c07de34b9a08 = function(arg0) {
456
+ imports.wbg.__wbg_buffer_b914fb8b50ebbc3e = function(arg0) {
449
457
  const ret = getObject(arg0).buffer;
450
458
  return addHeapObject(ret);
451
459
  };
452
- imports.wbg.__wbg_newwithbyteoffsetandlength_9fb2f11355ecadf5 = function(arg0, arg1, arg2) {
460
+ imports.wbg.__wbg_newwithbyteoffsetandlength_0de9ee56e9f6ee6e = function(arg0, arg1, arg2) {
453
461
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
454
462
  return addHeapObject(ret);
455
463
  };
456
464
  imports.wbg.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
457
465
  getObject(arg0).randomFillSync(takeObject(arg1));
458
466
  }, arguments) };
459
- imports.wbg.__wbg_subarray_7526649b91a252a6 = function(arg0, arg1, arg2) {
467
+ imports.wbg.__wbg_subarray_adc418253d76e2f1 = function(arg0, arg1, arg2) {
460
468
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
461
469
  return addHeapObject(ret);
462
470
  };
463
471
  imports.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
464
472
  getObject(arg0).getRandomValues(getObject(arg1));
465
473
  }, arguments) };
466
- imports.wbg.__wbg_new_537b7341ce90bb31 = function(arg0) {
474
+ imports.wbg.__wbg_new_b1f2d6842d615181 = function(arg0) {
467
475
  const ret = new Uint8Array(getObject(arg0));
468
476
  return addHeapObject(ret);
469
477
  };
470
- imports.wbg.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
478
+ imports.wbg.__wbg_set_7d988c98e6ced92d = function(arg0, arg1, arg2) {
471
479
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
472
480
  };
473
- imports.wbg.__wbg_self_e7c1f827057f6584 = function() { return handleError(function () {
474
- const ret = self.self;
475
- return addHeapObject(ret);
476
- }, arguments) };
477
- imports.wbg.__wbg_window_a09ec664e14b1b81 = function() { return handleError(function () {
478
- const ret = window.window;
479
- return addHeapObject(ret);
480
- }, arguments) };
481
- imports.wbg.__wbg_globalThis_87cbb8506fecf3a9 = function() { return handleError(function () {
482
- const ret = globalThis.globalThis;
483
- return addHeapObject(ret);
484
- }, arguments) };
485
- imports.wbg.__wbg_global_c85a9259e621f3db = function() { return handleError(function () {
486
- const ret = global.global;
487
- return addHeapObject(ret);
488
- }, arguments) };
489
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
490
- const ret = getObject(arg0) === undefined;
491
- return ret;
492
- };
493
- imports.wbg.__wbg_newnoargs_2b8b6bd7753c76ba = function(arg0, arg1) {
494
- var v0 = getCachedStringFromWasm0(arg0, arg1);
495
- const ret = new Function(v0);
496
- return addHeapObject(ret);
497
- };
498
- imports.wbg.__wbg_call_95d1ea488d03e4e8 = function() { return handleError(function (arg0, arg1) {
499
- const ret = getObject(arg0).call(getObject(arg1));
500
- return addHeapObject(ret);
501
- }, arguments) };
502
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
503
- const ret = getObject(arg0);
504
- return addHeapObject(ret);
505
- };
506
481
  imports.wbg.__wbg_crypto_c48a774b022d20ac = function(arg0) {
507
482
  const ret = getObject(arg0).crypto;
508
483
  return addHeapObject(ret);
@@ -532,7 +507,7 @@ imports.wbg.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
532
507
  const ret = getObject(arg0).msCrypto;
533
508
  return addHeapObject(ret);
534
509
  };
535
- imports.wbg.__wbg_newwithlength_b56c882b57805732 = function(arg0) {
510
+ imports.wbg.__wbg_newwithlength_0d03cef43b68a530 = function(arg0) {
536
511
  const ret = new Uint8Array(arg0 >>> 0);
537
512
  return addHeapObject(ret);
538
513
  };
@@ -548,23 +523,56 @@ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
548
523
  const ret = getStringFromWasm0(arg0, arg1);
549
524
  return addHeapObject(ret);
550
525
  };
551
- imports.wbg.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
526
+ imports.wbg.__wbg_call_67f2111acd2dfdb6 = function() { return handleError(function (arg0, arg1, arg2) {
552
527
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
553
528
  return addHeapObject(ret);
554
529
  }, arguments) };
555
- imports.wbg.__wbg_iterator_55f114446221aa5a = function() {
530
+ imports.wbg.__wbg_iterator_40027cdd598da26b = function() {
556
531
  const ret = Symbol.iterator;
557
532
  return addHeapObject(ret);
558
533
  };
559
- imports.wbg.__wbg_get_baf4855f9a986186 = function() { return handleError(function (arg0, arg1) {
534
+ imports.wbg.__wbg_get_3fddfed2c83f434c = function() { return handleError(function (arg0, arg1) {
560
535
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
561
536
  return addHeapObject(ret);
562
537
  }, arguments) };
563
- imports.wbg.__wbg_next_b7d530c04fd8b217 = function(arg0) {
538
+ imports.wbg.__wbg_call_3f093dd26d5569f8 = function() { return handleError(function (arg0, arg1) {
539
+ const ret = getObject(arg0).call(getObject(arg1));
540
+ return addHeapObject(ret);
541
+ }, arguments) };
542
+ imports.wbg.__wbg_next_586204376d2ed373 = function(arg0) {
564
543
  const ret = getObject(arg0).next;
565
544
  return addHeapObject(ret);
566
545
  };
567
- imports.wbg.__wbg_length_27a2afe8ab42b09f = function(arg0) {
546
+ imports.wbg.__wbg_self_05040bd9523805b9 = function() { return handleError(function () {
547
+ const ret = self.self;
548
+ return addHeapObject(ret);
549
+ }, arguments) };
550
+ imports.wbg.__wbg_window_adc720039f2cb14f = function() { return handleError(function () {
551
+ const ret = window.window;
552
+ return addHeapObject(ret);
553
+ }, arguments) };
554
+ imports.wbg.__wbg_globalThis_622105db80c1457d = function() { return handleError(function () {
555
+ const ret = globalThis.globalThis;
556
+ return addHeapObject(ret);
557
+ }, arguments) };
558
+ imports.wbg.__wbg_global_f56b013ed9bcf359 = function() { return handleError(function () {
559
+ const ret = global.global;
560
+ return addHeapObject(ret);
561
+ }, arguments) };
562
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
563
+ const ret = getObject(arg0) === undefined;
564
+ return ret;
565
+ };
566
+ imports.wbg.__wbg_newnoargs_cfecb3965268594c = function(arg0, arg1) {
567
+ var v0 = getCachedStringFromWasm0(arg0, arg1);
568
+ const ret = new Function(v0);
569
+ return addHeapObject(ret);
570
+ };
571
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
572
+ const ret = getObject(arg0);
573
+ return addHeapObject(ret);
574
+ };
575
+ imports.wbg.__wbg_length_21c4b0ae73cba59d = function(arg0) {
568
576
  const ret = getObject(arg0).length;
569
577
  return ret;
570
578
  };
@@ -572,7 +580,7 @@ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
572
580
  const ret = new Error(getStringFromWasm0(arg0, arg1));
573
581
  return addHeapObject(ret);
574
582
  };
575
- imports.wbg.__wbg_entries_4e1315b774245952 = function(arg0) {
583
+ imports.wbg.__wbg_entries_488960b196cfb6a5 = function(arg0) {
576
584
  const ret = Object.entries(getObject(arg0));
577
585
  return addHeapObject(ret);
578
586
  };
@@ -594,44 +602,44 @@ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
594
602
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
595
603
  const obj = getObject(arg1);
596
604
  const ret = typeof(obj) === 'string' ? obj : undefined;
597
- var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
598
- var len0 = WASM_VECTOR_LEN;
599
- getInt32Memory0()[arg0 / 4 + 1] = len0;
600
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
605
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
606
+ var len1 = WASM_VECTOR_LEN;
607
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
608
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
601
609
  };
602
- imports.wbg.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
610
+ imports.wbg.__wbg_instanceof_Uint8Array_c299a4ee232e76ba = function(arg0) {
603
611
  let result;
604
612
  try {
605
613
  result = getObject(arg0) instanceof Uint8Array;
606
- } catch {
614
+ } catch (_) {
607
615
  result = false;
608
616
  }
609
617
  const ret = result;
610
618
  return ret;
611
619
  };
612
- imports.wbg.__wbg_instanceof_ArrayBuffer_a69f02ee4c4f5065 = function(arg0) {
620
+ imports.wbg.__wbg_instanceof_ArrayBuffer_9221fa854ffb71b5 = function(arg0) {
613
621
  let result;
614
622
  try {
615
623
  result = getObject(arg0) instanceof ArrayBuffer;
616
- } catch {
624
+ } catch (_) {
617
625
  result = false;
618
626
  }
619
627
  const ret = result;
620
628
  return ret;
621
629
  };
622
- imports.wbg.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
630
+ imports.wbg.__wbg_get_0ee8ea3c7c984c45 = function(arg0, arg1) {
623
631
  const ret = getObject(arg0)[arg1 >>> 0];
624
632
  return addHeapObject(ret);
625
633
  };
626
- imports.wbg.__wbg_next_88560ec06a094dea = function() { return handleError(function (arg0) {
634
+ imports.wbg.__wbg_next_b2d3366343a208b3 = function() { return handleError(function (arg0) {
627
635
  const ret = getObject(arg0).next();
628
636
  return addHeapObject(ret);
629
637
  }, arguments) };
630
- imports.wbg.__wbg_done_1ebec03bbd919843 = function(arg0) {
638
+ imports.wbg.__wbg_done_90b14d6f6eacc42f = function(arg0) {
631
639
  const ret = getObject(arg0).done;
632
640
  return ret;
633
641
  };
634
- imports.wbg.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
642
+ imports.wbg.__wbg_value_3158be908c80a75e = function(arg0) {
635
643
  const ret = getObject(arg0).value;
636
644
  return addHeapObject(ret);
637
645
  };
@@ -657,11 +665,11 @@ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
657
665
  const ret = BigInt.asUintN(64, arg0);
658
666
  return addHeapObject(ret);
659
667
  };
660
- imports.wbg.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) {
668
+ imports.wbg.__wbg_isSafeInteger_a23a66ee7c41b273 = function(arg0) {
661
669
  const ret = Number.isSafeInteger(getObject(arg0));
662
670
  return ret;
663
671
  };
664
- imports.wbg.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
672
+ imports.wbg.__wbg_isArray_e783c41d0dd19b44 = function(arg0) {
665
673
  const ret = Array.isArray(getObject(arg0));
666
674
  return ret;
667
675
  };
@@ -669,7 +677,7 @@ imports.wbg.__wbindgen_in = function(arg0, arg1) {
669
677
  const ret = getObject(arg0) in getObject(arg1);
670
678
  return ret;
671
679
  };
672
- imports.wbg.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
680
+ imports.wbg.__wbg_length_161c0d89c6535c1d = function(arg0) {
673
681
  const ret = getObject(arg0).length;
674
682
  return ret;
675
683
  };
@@ -677,14 +685,21 @@ imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
677
685
  const ret = getObject(arg0)[getObject(arg1)];
678
686
  return addHeapObject(ret);
679
687
  };
688
+ imports.wbg.__wbg_new_632630b5cec17f21 = function() {
689
+ const ret = new Object();
690
+ return addHeapObject(ret);
691
+ };
692
+ imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
693
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
694
+ };
680
695
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
681
696
  const ret = debugString(getObject(arg1));
682
- const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
683
- const len0 = WASM_VECTOR_LEN;
684
- getInt32Memory0()[arg0 / 4 + 1] = len0;
685
- getInt32Memory0()[arg0 / 4 + 0] = ptr0;
697
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
698
+ const len1 = WASM_VECTOR_LEN;
699
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
700
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
686
701
  };
687
- imports.wbg.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
702
+ imports.wbg.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
688
703
  try {
689
704
  var state0 = {a: arg0, b: arg1};
690
705
  var cb0 = (arg0, arg1) => {
@@ -702,21 +717,21 @@ imports.wbg.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
702
717
  state0.a = state0.b = 0;
703
718
  }
704
719
  };
705
- imports.wbg.__wbg_new_f9876326328f45ed = function() {
706
- const ret = new Object();
707
- return addHeapObject(ret);
708
- };
709
- imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
710
- getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
711
- };
712
720
  imports.wbg.__wbindgen_throw = function(arg0, arg1) {
713
721
  throw new Error(getStringFromWasm0(arg0, arg1));
714
722
  };
715
- imports.wbg.__wbg_then_ec5db6d509eb475f = function(arg0, arg1) {
723
+ imports.wbg.__wbg_then_f9e58f5a50f43eae = function(arg0, arg1) {
716
724
  const ret = getObject(arg0).then(getObject(arg1));
717
725
  return addHeapObject(ret);
718
726
  };
719
- imports.wbg.__wbg_resolve_fd40f858d9db1a04 = function(arg0) {
727
+ imports.wbg.__wbg_queueMicrotask_f61ee94ee663068b = function(arg0) {
728
+ queueMicrotask(getObject(arg0));
729
+ };
730
+ imports.wbg.__wbg_queueMicrotask_f82fc5d1e8f816ae = function(arg0) {
731
+ const ret = getObject(arg0).queueMicrotask;
732
+ return addHeapObject(ret);
733
+ };
734
+ imports.wbg.__wbg_resolve_5da6faf2c96fd1d5 = function(arg0) {
720
735
  const ret = Promise.resolve(getObject(arg0));
721
736
  return addHeapObject(ret);
722
737
  };
@@ -729,21 +744,21 @@ imports.wbg.__wbindgen_cb_drop = function(arg0) {
729
744
  const ret = false;
730
745
  return ret;
731
746
  };
732
- imports.wbg.__wbindgen_closure_wrapper23829 = function(arg0, arg1, arg2) {
733
- const ret = makeMutClosure(arg0, arg1, 361, __wbg_adapter_48);
747
+ imports.wbg.__wbindgen_closure_wrapper26372 = function(arg0, arg1, arg2) {
748
+ const ret = makeMutClosure(arg0, arg1, 431, __wbg_adapter_48);
734
749
  return addHeapObject(ret);
735
750
  };
736
751
 
737
752
  return imports;
738
753
  }
739
754
 
740
- function initMemory(imports, maybe_memory) {
755
+ function __wbg_init_memory(imports, maybe_memory) {
741
756
 
742
757
  }
743
758
 
744
- function finalizeInit(instance, module) {
759
+ function __wbg_finalize_init(instance, module) {
745
760
  wasm = instance.exports;
746
- init.__wbindgen_wasm_module = module;
761
+ __wbg_init.__wbindgen_wasm_module = module;
747
762
  cachedBigInt64Memory0 = null;
748
763
  cachedFloat64Memory0 = null;
749
764
  cachedInt32Memory0 = null;
@@ -754,9 +769,11 @@ function finalizeInit(instance, module) {
754
769
  }
755
770
 
756
771
  function initSync(module) {
757
- const imports = getImports();
772
+ if (wasm !== undefined) return wasm;
758
773
 
759
- initMemory(imports);
774
+ const imports = __wbg_get_imports();
775
+
776
+ __wbg_init_memory(imports);
760
777
 
761
778
  if (!(module instanceof WebAssembly.Module)) {
762
779
  module = new WebAssembly.Module(module);
@@ -764,25 +781,27 @@ function initSync(module) {
764
781
 
765
782
  const instance = new WebAssembly.Instance(module, imports);
766
783
 
767
- return finalizeInit(instance, module);
784
+ return __wbg_finalize_init(instance, module);
768
785
  }
769
786
 
770
- async function init(input) {
787
+ async function __wbg_init(input) {
788
+ if (wasm !== undefined) return wasm;
789
+
771
790
  if (typeof input === 'undefined') {
772
791
  input = new URL('wasm_bg.wasm', import.meta.url);
773
792
  }
774
- const imports = getImports();
793
+ const imports = __wbg_get_imports();
775
794
 
776
795
  if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) {
777
796
  input = fetch(input);
778
797
  }
779
798
 
780
- initMemory(imports);
799
+ __wbg_init_memory(imports);
781
800
 
782
- const { instance, module } = await load(await input, imports);
801
+ const { instance, module } = await __wbg_load(await input, imports);
783
802
 
784
- return finalizeInit(instance, module);
803
+ return __wbg_finalize_init(instance, module);
785
804
  }
786
805
 
787
806
  export { initSync }
788
- export default init;
807
+ export default __wbg_init;
package/wasm_bg.wasm CHANGED
Binary file