virtual-machine 0.2.2 → 0.3.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.
@@ -97,26 +97,6 @@ function handleError(f, args) {
97
97
  function isLikeNone(x) {
98
98
  return x === void 0 || x === null;
99
99
  }
100
- function makeClosure(arg0, arg1, dtor, f) {
101
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
102
- const real = (...args) => {
103
- state.cnt++;
104
- try {
105
- return f(state.a, state.b, ...args);
106
- } finally {
107
- real._wbg_cb_unref();
108
- }
109
- };
110
- real._wbg_cb_unref = () => {
111
- if (--state.cnt === 0) {
112
- state.dtor(state.a, state.b);
113
- state.a = 0;
114
- CLOSURE_DTORS.unregister(state);
115
- }
116
- };
117
- CLOSURE_DTORS.register(real, state, state);
118
- return real;
119
- }
120
100
  function makeMutClosure(arg0, arg1, dtor, f) {
121
101
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
122
102
  const real = (...args) => {
@@ -206,17 +186,8 @@ if (!("encodeInto" in cachedTextEncoder)) {
206
186
  };
207
187
  }
208
188
  var WASM_VECTOR_LEN = 0;
209
- function wasm_bindgen__convert__closures_____invoke__h74d7f37f0b0d661d(arg0, arg1, arg2) {
210
- wasm.wasm_bindgen__convert__closures_____invoke__h74d7f37f0b0d661d(arg0, arg1, arg2);
211
- }
212
- function wasm_bindgen__convert__closures_____invoke__h9f0ee31d317d33d7(arg0, arg1) {
213
- wasm.wasm_bindgen__convert__closures_____invoke__h9f0ee31d317d33d7(arg0, arg1);
214
- }
215
- function wasm_bindgen__convert__closures_____invoke__h260170fb96639bcf(arg0, arg1, arg2) {
216
- wasm.wasm_bindgen__convert__closures_____invoke__h260170fb96639bcf(arg0, arg1, arg2);
217
- }
218
- function wasm_bindgen__convert__closures_____invoke__h97b9bec6245a8424(arg0, arg1) {
219
- wasm.wasm_bindgen__convert__closures_____invoke__h97b9bec6245a8424(arg0, arg1);
189
+ function wasm_bindgen__convert__closures_____invoke__hfbd40044a7a1ae85(arg0, arg1, arg2) {
190
+ wasm.wasm_bindgen__convert__closures_____invoke__hfbd40044a7a1ae85(arg0, arg1, arg2);
220
191
  }
221
192
  var __wbindgen_enum_WorkerType = ["classic", "module"];
222
193
  var WasmVmFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
@@ -254,20 +225,20 @@ var WasmVm = class _WasmVm {
254
225
  wasm.__wbg_wasmvm_free(ptr, 0);
255
226
  }
256
227
  /**
257
- * Enable VirtIO GPU device for graphics rendering.
228
+ * Enable D1 Display device for graphics rendering.
258
229
  *
259
- * The GPU device allows the kernel to render to a framebuffer which can
230
+ * The display device allows the kernel to render to a framebuffer which can
260
231
  * then be displayed in a Canvas element. Use `get_gpu_frame()` to retrieve
261
232
  * the rendered frame pixels.
262
233
  *
263
234
  * # Arguments
264
- * * `width` - Display width in pixels (default 800 if 0)
265
- * * `height` - Display height in pixels (default 600 if 0)
266
- * @param {number} width
267
- * @param {number} height
235
+ * * `width` - Display width in pixels (ignored, uses 1024x768)
236
+ * * `height` - Display height in pixels (ignored, uses 1024x768)
237
+ * @param {number} _width
238
+ * @param {number} _height
268
239
  */
269
- enable_gpu(width, height) {
270
- wasm.wasmvm_enable_gpu(this.__wbg_ptr, width, height);
240
+ enable_gpu(_width, _height) {
241
+ wasm.wasmvm_enable_gpu(this.__wbg_ptr, _width, _height);
271
242
  }
272
243
  /**
273
244
  * Get a byte from the UART output buffer, if available.
@@ -326,7 +297,7 @@ var WasmVm = class _WasmVm {
326
297
  * Get GPU frame data as RGBA pixels.
327
298
  * Returns a Uint8Array of pixel data, or null if no frame is available.
328
299
  *
329
- * The frame data is in RGBA format with 4 bytes per pixel (800x600 = 1,920,000 bytes).
300
+ * The frame data is in RGBA format with 4 bytes per pixel (1024×768 = 3,145,728 bytes).
330
301
  *
331
302
  * This reads from a fixed framebuffer address in guest memory (0x8100_0000).
332
303
  * The kernel GPU driver writes pixels there, and we read them here.
@@ -393,7 +364,7 @@ var WasmVm = class _WasmVm {
393
364
  }
394
365
  /**
395
366
  * Get the current network connection status.
396
- * This checks the actual connection state by seeing if an IP was assigned.
367
+ * This checks the actual connection state by seeing if D1 EMAC is enabled.
397
368
  * @returns {NetworkStatus}
398
369
  */
399
370
  network_status() {
@@ -443,6 +414,43 @@ var WasmVm = class _WasmVm {
443
414
  const ret = wasm.wasmvm_get_memory_usage(this.__wbg_ptr);
444
415
  return BigInt.asUintN(64, ret);
445
416
  }
417
+ /**
418
+ * Send a mouse event to the guest.
419
+ *
420
+ * # Arguments
421
+ * * `x` - X position (0-799)
422
+ * * `y` - Y position (0-599)
423
+ * * `buttons` - Button state bitmask (bit 0 = left, bit 1 = right, bit 2 = middle)
424
+ * * `prev_buttons` - Previous button state to detect changes
425
+ *
426
+ * Returns true if the event was sent successfully.
427
+ * @param {number} x
428
+ * @param {number} y
429
+ * @param {number} buttons
430
+ * @returns {boolean}
431
+ */
432
+ send_mouse_event(x, y, buttons) {
433
+ const ret = wasm.wasmvm_send_mouse_event(this.__wbg_ptr, x, y, buttons);
434
+ return ret !== 0;
435
+ }
436
+ /**
437
+ * Send a touch event to the D1 GT911 touchscreen controller.
438
+ *
439
+ * # Arguments
440
+ * * `x` - X position (0 to display width)
441
+ * * `y` - Y position (0 to display height)
442
+ * * `pressed` - true for touch down/move, false for touch up
443
+ *
444
+ * Returns true if the event was sent successfully.
445
+ * @param {number} x
446
+ * @param {number} y
447
+ * @param {boolean} pressed
448
+ * @returns {boolean}
449
+ */
450
+ send_touch_event(x, y, pressed) {
451
+ const ret = wasm.wasmvm_send_touch_event(this.__wbg_ptr, x, y, pressed);
452
+ return ret !== 0;
453
+ }
446
454
  /**
447
455
  * Get the total disk capacity from attached VirtIO block devices.
448
456
  * Returns total bytes across all block devices.
@@ -461,6 +469,20 @@ var WasmVm = class _WasmVm {
461
469
  const ret = wasm.wasmvm_get_shared_buffer(this.__wbg_ptr);
462
470
  return ret;
463
471
  }
472
+ /**
473
+ * Send a mouse button event to the guest.
474
+ *
475
+ * # Arguments
476
+ * * `button` - Button number (0 = left, 1 = right, 2 = middle)
477
+ * * `pressed` - true for press, false for release
478
+ * @param {number} button
479
+ * @param {boolean} pressed
480
+ * @returns {boolean}
481
+ */
482
+ send_mouse_button(button, pressed) {
483
+ const ret = wasm.wasmvm_send_mouse_button(this.__wbg_ptr, button, pressed);
484
+ return ret !== 0;
485
+ }
464
486
  /**
465
487
  * Terminate all workers.
466
488
  */
@@ -498,6 +520,30 @@ var WasmVm = class _WasmVm {
498
520
  throw takeFromExternrefTable0(ret[0]);
499
521
  }
500
522
  }
523
+ /**
524
+ * Get a direct zero-copy view into the framebuffer in SharedArrayBuffer.
525
+ *
526
+ * This eliminates all memory copies by creating a Uint8Array view directly
527
+ * into the SharedArrayBuffer at the framebuffer offset. The browser can
528
+ * pass this directly to WebGPU's writeTexture for zero-copy rendering.
529
+ *
530
+ * Returns None if SharedArrayBuffer is not available (single-threaded mode).
531
+ * @returns {Uint8Array | undefined}
532
+ */
533
+ get_framebuffer_view() {
534
+ const ret = wasm.wasmvm_get_framebuffer_view(this.__wbg_ptr);
535
+ return ret;
536
+ }
537
+ /**
538
+ * Get the current frame version from kernel memory.
539
+ * Returns a u32 that increments each time the kernel flushes dirty pixels.
540
+ * Browser can compare this to skip fetching unchanged frames.
541
+ * @returns {number}
542
+ */
543
+ get_gpu_frame_version() {
544
+ const ret = wasm.wasmvm_get_gpu_frame_version(this.__wbg_ptr);
545
+ return ret >>> 0;
546
+ }
501
547
  /**
502
548
  * Inject a network packet to be received by the guest.
503
549
  * Called from JavaScript when the native WebTransport addon receives a packet.
@@ -671,7 +717,7 @@ var WasmVm = class _WasmVm {
671
717
  return ret !== 0;
672
718
  }
673
719
  /**
674
- * Load a disk image and attach it as a VirtIO block device.
720
+ * Load a disk image and attach it as a D1 MMC device.
675
721
  * This should be called before starting execution if the kernel needs a filesystem.
676
722
  * @param {Uint8Array} disk_image
677
723
  */
@@ -729,6 +775,22 @@ var WorkerState = class {
729
775
  const ret = wasm.workerstate_step_count(this.__wbg_ptr);
730
776
  return BigInt.asUintN(64, ret);
731
777
  }
778
+ /**
779
+ * Check if MSIP is pending for this hart (for debugging).
780
+ * @returns {boolean}
781
+ */
782
+ is_msip_pending() {
783
+ const ret = wasm.workerstate_is_msip_pending(this.__wbg_ptr);
784
+ return ret !== 0;
785
+ }
786
+ /**
787
+ * Check if timer is pending for this hart (for debugging).
788
+ * @returns {boolean}
789
+ */
790
+ is_timer_pending() {
791
+ const ret = wasm.workerstate_is_timer_pending(this.__wbg_ptr);
792
+ return ret !== 0;
793
+ }
732
794
  /**
733
795
  * Create a new worker state for a secondary hart.
734
796
  * @param {number} hart_id
@@ -741,6 +803,14 @@ var WorkerState = class {
741
803
  WorkerStateFinalization.register(this, this.__wbg_ptr, this);
742
804
  return this;
743
805
  }
806
+ /**
807
+ * Get the a0 register value (for debugging hart ID passing).
808
+ * @returns {bigint}
809
+ */
810
+ get_a0() {
811
+ const ret = wasm.workerstate_get_a0(this.__wbg_ptr);
812
+ return BigInt.asUintN(64, ret);
813
+ }
744
814
  /**
745
815
  * Get the hart ID.
746
816
  * @returns {number}
@@ -771,7 +841,13 @@ var WorkerStepResult = Object.freeze({
771
841
  * Fatal error occurred
772
842
  */
773
843
  Error: 3,
774
- "3": "Error"
844
+ "3": "Error",
845
+ /**
846
+ * WFI executed - worker should yield to prevent busy loop
847
+ * TypeScript should add a small delay before calling step_batch again
848
+ */
849
+ Wfi: 4,
850
+ "4": "Wfi"
775
851
  });
776
852
  function worker_check_interrupts(hart_id, shared_mem) {
777
853
  const ret = wasm.worker_check_interrupts(hart_id, shared_mem);
@@ -821,20 +897,10 @@ function __wbg_get_imports() {
821
897
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
822
898
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
823
899
  };
824
- imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
825
- const ret = typeof arg0 === "function";
826
- return ret;
827
- };
828
900
  imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
829
901
  const ret = arg0 === void 0;
830
902
  return ret;
831
903
  };
832
- imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
833
- const obj = arg1;
834
- const ret = typeof obj === "number" ? obj : void 0;
835
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
836
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
837
- };
838
904
  imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
839
905
  const obj = arg1;
840
906
  const ret = typeof obj === "string" ? obj : void 0;
@@ -846,9 +912,6 @@ function __wbg_get_imports() {
846
912
  imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
847
913
  throw new Error(getStringFromWasm0(arg0, arg1));
848
914
  };
849
- imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
850
- arg0._wbg_cb_unref();
851
- };
852
915
  imports.wbg.__wbg_add_e0e7f4f1ce6560fb = function() {
853
916
  return handleError(function(arg0, arg1, arg2) {
854
917
  const ret = Atomics.add(arg0, arg1 >>> 0, arg2);
@@ -865,24 +928,12 @@ function __wbg_get_imports() {
865
928
  const ret = arg0.byteLength;
866
929
  return ret;
867
930
  };
868
- imports.wbg.__wbg_call_3020136f7a2d6e44 = function() {
869
- return handleError(function(arg0, arg1, arg2) {
870
- const ret = arg0.call(arg1, arg2);
871
- return ret;
872
- }, arguments);
873
- };
874
931
  imports.wbg.__wbg_call_abb4ff46ce38be40 = function() {
875
932
  return handleError(function(arg0, arg1) {
876
933
  const ret = arg0.call(arg1);
877
934
  return ret;
878
935
  }, arguments);
879
936
  };
880
- imports.wbg.__wbg_call_c8baa5c5e72d274e = function() {
881
- return handleError(function(arg0, arg1, arg2, arg3) {
882
- const ret = arg0.call(arg1, arg2, arg3);
883
- return ret;
884
- }, arguments);
885
- };
886
937
  imports.wbg.__wbg_compareExchange_a2a167681b69cf6f = function() {
887
938
  return handleError(function(arg0, arg1, arg2, arg3) {
888
939
  const ret = Atomics.compareExchange(arg0, arg1 >>> 0, arg2, arg3);
@@ -893,10 +944,6 @@ function __wbg_get_imports() {
893
944
  const ret = arg0.data;
894
945
  return ret;
895
946
  };
896
- imports.wbg.__wbg_datagrams_05d12f8029dbc662 = function(arg0) {
897
- const ret = arg0.datagrams;
898
- return ret;
899
- };
900
947
  imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
901
948
  let deferred0_0;
902
949
  let deferred0_1;
@@ -921,24 +968,6 @@ function __wbg_get_imports() {
921
968
  const ret = arg0.fill(arg1, arg2 >>> 0, arg3 >>> 0);
922
969
  return ret;
923
970
  };
924
- imports.wbg.__wbg_getReader_b6676f6d8b326942 = function(arg0) {
925
- const ret = arg0.getReader();
926
- return ret;
927
- };
928
- imports.wbg.__wbg_getUint16_cb7a6e659d68e5a6 = function(arg0, arg1, arg2) {
929
- const ret = arg0.getUint16(arg1 >>> 0, arg2 !== 0);
930
- return ret;
931
- };
932
- imports.wbg.__wbg_getUint8_f42915a9262518eb = function(arg0, arg1) {
933
- const ret = arg0.getUint8(arg1 >>> 0);
934
- return ret;
935
- };
936
- imports.wbg.__wbg_getWriter_bbffb7cf601bec61 = function() {
937
- return handleError(function(arg0) {
938
- const ret = arg0.getWriter();
939
- return ret;
940
- }, arguments);
941
- };
942
971
  imports.wbg.__wbg_get_af9dab7e9603ea93 = function() {
943
972
  return handleError(function(arg0, arg1) {
944
973
  const ret = Reflect.get(arg0, arg1);
@@ -1030,22 +1059,26 @@ function __wbg_get_imports() {
1030
1059
  return ret;
1031
1060
  }, arguments);
1032
1061
  };
1033
- imports.wbg.__wbg_new_with_options_661ae023a99756d4 = function() {
1034
- return handleError(function(arg0, arg1, arg2) {
1035
- const ret = new WebTransport(getStringFromWasm0(arg0, arg1), arg2);
1036
- return ret;
1037
- }, arguments);
1038
- };
1039
1062
  imports.wbg.__wbg_new_with_shared_array_buffer_f801846979192910 = function(arg0, arg1, arg2) {
1040
1063
  const ret = new DataView(arg0, arg1 >>> 0, arg2 >>> 0);
1041
1064
  return ret;
1042
1065
  };
1066
+ imports.wbg.__wbg_notify_65c8811cd7c0cdea = function() {
1067
+ return handleError(function(arg0, arg1, arg2) {
1068
+ const ret = Atomics.notify(arg0, arg1 >>> 0, arg2 >>> 0);
1069
+ return ret;
1070
+ }, arguments);
1071
+ };
1043
1072
  imports.wbg.__wbg_notify_f7e901980222d3e0 = function() {
1044
1073
  return handleError(function(arg0, arg1) {
1045
1074
  const ret = Atomics.notify(arg0, arg1 >>> 0);
1046
1075
  return ret;
1047
1076
  }, arguments);
1048
1077
  };
1078
+ imports.wbg.__wbg_now_69d776cd24f5215b = function() {
1079
+ const ret = Date.now();
1080
+ return ret;
1081
+ };
1049
1082
  imports.wbg.__wbg_or_eb11de0669782b52 = function() {
1050
1083
  return handleError(function(arg0, arg1, arg2) {
1051
1084
  const ret = Atomics.or(arg0, arg1 >>> 0, arg2);
@@ -1064,39 +1097,6 @@ function __wbg_get_imports() {
1064
1097
  const ret = arg0.push(arg1);
1065
1098
  return ret;
1066
1099
  };
1067
- imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
1068
- const ret = arg0.queueMicrotask;
1069
- return ret;
1070
- };
1071
- imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
1072
- queueMicrotask(arg0);
1073
- };
1074
- imports.wbg.__wbg_random_cc1f9237d866d212 = function() {
1075
- const ret = Math.random();
1076
- return ret;
1077
- };
1078
- imports.wbg.__wbg_read_39c4b35efcd03c25 = function(arg0) {
1079
- const ret = arg0.read();
1080
- return ret;
1081
- };
1082
- imports.wbg.__wbg_readable_91b7193a7ae57e51 = function(arg0) {
1083
- const ret = arg0.readable;
1084
- return ret;
1085
- };
1086
- imports.wbg.__wbg_ready_a3e887a4174c582b = function(arg0) {
1087
- const ret = arg0.ready;
1088
- return ret;
1089
- };
1090
- imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
1091
- const ret = Promise.resolve(arg0);
1092
- return ret;
1093
- };
1094
- imports.wbg.__wbg_setUint16_ff3205ca61800a91 = function(arg0, arg1, arg2, arg3) {
1095
- arg0.setUint16(arg1 >>> 0, arg2, arg3 !== 0);
1096
- };
1097
- imports.wbg.__wbg_setUint8_71dd48d3e18e4e40 = function(arg0, arg1, arg2) {
1098
- arg0.setUint8(arg1 >>> 0, arg2);
1099
- };
1100
1100
  imports.wbg.__wbg_set_169e13b608078b7b = function(arg0, arg1, arg2) {
1101
1101
  arg0.set(getArrayU8FromWasm0(arg1, arg2));
1102
1102
  };
@@ -1106,9 +1106,6 @@ function __wbg_get_imports() {
1106
1106
  return ret;
1107
1107
  }, arguments);
1108
1108
  };
1109
- imports.wbg.__wbg_set_algorithm_f5b9d6dae15e63e3 = function(arg0, arg1, arg2) {
1110
- arg0.algorithm = getStringFromWasm0(arg1, arg2);
1111
- };
1112
1109
  imports.wbg.__wbg_set_bc3a432bdcd60886 = function(arg0, arg1, arg2) {
1113
1110
  arg0.set(arg1, arg2 >>> 0);
1114
1111
  };
@@ -1121,15 +1118,9 @@ function __wbg_get_imports() {
1121
1118
  imports.wbg.__wbg_set_onmessage_deb94985de696ac7 = function(arg0, arg1) {
1122
1119
  arg0.onmessage = arg1;
1123
1120
  };
1124
- imports.wbg.__wbg_set_server_certificate_hashes_d12c95e03a45bcd5 = function(arg0, arg1) {
1125
- arg0.serverCertificateHashes = arg1;
1126
- };
1127
1121
  imports.wbg.__wbg_set_type_c2eb2929316959f4 = function(arg0, arg1) {
1128
1122
  arg0.type = __wbindgen_enum_WorkerType[arg1];
1129
1123
  };
1130
- imports.wbg.__wbg_set_value_3371f9dc48a34104 = function(arg0, arg1) {
1131
- arg0.value = arg1;
1132
- };
1133
1124
  imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
1134
1125
  const ret = arg1.stack;
1135
1126
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -1166,14 +1157,6 @@ function __wbg_get_imports() {
1166
1157
  imports.wbg.__wbg_terminate_08a1236dd2e69da0 = function(arg0) {
1167
1158
  arg0.terminate();
1168
1159
  };
1169
- imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
1170
- const ret = arg0.then(arg1, arg2);
1171
- return ret;
1172
- };
1173
- imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
1174
- const ret = arg0.then(arg1);
1175
- return ret;
1176
- };
1177
1160
  imports.wbg.__wbg_wait_ceb109d0011d6567 = function() {
1178
1161
  return handleError(function(arg0, arg1, arg2, arg3) {
1179
1162
  const ret = Atomics.wait(arg0, arg1 >>> 0, arg2, arg3);
@@ -1183,44 +1166,24 @@ function __wbg_get_imports() {
1183
1166
  imports.wbg.__wbg_warn_6e567d0d926ff881 = function(arg0) {
1184
1167
  console.warn(arg0);
1185
1168
  };
1186
- imports.wbg.__wbg_writable_523e68bd72433329 = function(arg0) {
1187
- const ret = arg0.writable;
1188
- return ret;
1189
- };
1190
- imports.wbg.__wbg_write_0823b42435137c02 = function(arg0, arg1) {
1191
- const ret = arg0.write(arg1);
1192
- return ret;
1193
- };
1194
1169
  imports.wbg.__wbg_xor_5e9be92d2e01a692 = function() {
1195
1170
  return handleError(function(arg0, arg1, arg2) {
1196
1171
  const ret = Atomics.xor(arg0, arg1 >>> 0, arg2);
1197
1172
  return ret;
1198
1173
  }, arguments);
1199
1174
  };
1200
- imports.wbg.__wbindgen_cast_1b00663567edb453 = function(arg0, arg1) {
1201
- const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h01c75dc83ec8dfae, wasm_bindgen__convert__closures_____invoke__h9f0ee31d317d33d7);
1202
- return ret;
1203
- };
1204
1175
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
1205
1176
  const ret = getStringFromWasm0(arg0, arg1);
1206
1177
  return ret;
1207
1178
  };
1208
- imports.wbg.__wbindgen_cast_3d2491109ac86f9d = function(arg0, arg1) {
1209
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h612f8e24953b61d5, wasm_bindgen__convert__closures_____invoke__h260170fb96639bcf);
1210
- return ret;
1211
- };
1212
- imports.wbg.__wbindgen_cast_a93ea42108a71f00 = function(arg0, arg1) {
1213
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h01c75dc83ec8dfae, wasm_bindgen__convert__closures_____invoke__h74d7f37f0b0d661d);
1214
- return ret;
1215
- };
1216
- imports.wbg.__wbindgen_cast_af54cb5d64a8cc15 = function(arg0, arg1) {
1217
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h01c75dc83ec8dfae, wasm_bindgen__convert__closures_____invoke__h97b9bec6245a8424);
1218
- return ret;
1219
- };
1220
1179
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
1221
1180
  const ret = arg0;
1222
1181
  return ret;
1223
1182
  };
1183
+ imports.wbg.__wbindgen_cast_e7641268fcb75979 = function(arg0, arg1) {
1184
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h4b145e497aa7828d, wasm_bindgen__convert__closures_____invoke__hfbd40044a7a1ae85);
1185
+ return ret;
1186
+ };
1224
1187
  imports.wbg.__wbindgen_init_externref_table = function() {
1225
1188
  const table = wasm.__wbindgen_externrefs;
1226
1189
  const offset = table.grow(4);