@utoo/web 1.0.7 → 1.2.0-rc.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.
Files changed (37) hide show
  1. package/esm/aa0ad15d2a587c43406f.wasm +0 -0
  2. package/esm/internalProject.d.ts +1 -0
  3. package/esm/internalProject.js +10 -85
  4. package/esm/loaderWorker.js +2 -0
  5. package/esm/loaderWorker.js.LICENSE.txt +44 -0
  6. package/esm/loaderWorkerPool.d.ts +3 -0
  7. package/esm/loaderWorkerPool.js +125 -0
  8. package/esm/project.d.ts +1 -0
  9. package/esm/project.js +2 -0
  10. package/esm/sabcom.d.ts +31 -0
  11. package/esm/sabcom.js +71 -0
  12. package/esm/type.d.ts +1 -0
  13. package/esm/utoo/index.d.ts +71 -46
  14. package/esm/utoo/index.js +260 -168
  15. package/esm/utoo/index_bg.wasm +0 -0
  16. package/esm/webpackLoaders/loaders/less-loader/index.js +7 -12
  17. package/esm/webpackLoaders/loaders/less-loader/options.json +1 -3
  18. package/esm/webpackLoaders/loaders/less-loader/utils.js +14 -34
  19. package/esm/webpackLoaders/worker/cjs.js +253 -58
  20. package/esm/webpackLoaders/worker/index.d.ts +2 -2
  21. package/esm/webpackLoaders/worker/index.js +36 -26
  22. package/esm/webpackLoaders/worker/polyfills/fastGlobPolyfill.d.ts +2 -0
  23. package/esm/webpackLoaders/worker/polyfills/fastGlobPolyfill.js +48 -0
  24. package/esm/webpackLoaders/worker/polyfills/fsPolyfill.d.ts +124 -0
  25. package/esm/webpackLoaders/worker/polyfills/fsPolyfill.js +316 -0
  26. package/esm/webpackLoaders/worker/polyfills/fsPromisesPolyfill.d.ts +9 -0
  27. package/esm/webpackLoaders/worker/polyfills/fsPromisesPolyfill.js +9 -0
  28. package/esm/webpackLoaders/worker/polyfills/nodePolyFills.d.ts +94 -0
  29. package/esm/webpackLoaders/worker/polyfills/nodePolyFills.js +229 -0
  30. package/esm/webpackLoaders/worker/polyfills/workerThreadsPolyfill.d.ts +7 -0
  31. package/esm/webpackLoaders/worker/polyfills/workerThreadsPolyfill.js +16 -0
  32. package/esm/webpackLoaders/worker/type.d.ts +1 -1
  33. package/package.json +11 -11
  34. package/esm/webpackLoaders/worker/nodePolyFills.d.ts +0 -14
  35. package/esm/webpackLoaders/worker/nodePolyFills.js +0 -24
  36. package/esm/webpackLoaders/workerContent.d.ts +0 -2
  37. package/esm/webpackLoaders/workerContent.js +0 -1
package/esm/utoo/index.js CHANGED
@@ -239,57 +239,29 @@ function makeClosure(arg0, arg1, dtor, f) {
239
239
  CLOSURE_DTORS.register(real, state, state);
240
240
  return real;
241
241
  }
242
- /**
243
- * @returns {Promise<WorkerTermination>}
244
- */
245
- export function recvWorkerTermination() {
246
- const ret = wasm.recvWorkerTermination();
247
- return takeObject(ret);
248
- }
249
- /**
250
- * @param {number} task_id
251
- * @param {number} worker_id
252
- * @returns {Promise<void>}
253
- */
254
- export function notifyWorkerAck(task_id, worker_id) {
255
- const ret = wasm.notifyWorkerAck(task_id, worker_id);
256
- return takeObject(ret);
242
+ function _assertClass(instance, klass) {
243
+ if (!(instance instanceof klass)) {
244
+ throw new Error(`expected instance of ${klass.name}`);
245
+ }
257
246
  }
258
247
  /**
259
- * @param {number} task_id
260
- * @param {string} message
248
+ * @param {any} message
261
249
  * @returns {Promise<void>}
262
250
  */
263
- export function sendTaskMessage(task_id, message) {
264
- const ptr0 = passStringToWasm0(message, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
265
- const len0 = WASM_VECTOR_LEN;
266
- const ret = wasm.sendTaskMessage(task_id, ptr0, len0);
251
+ export function sendTaskMessage(message) {
252
+ const ret = wasm.sendTaskMessage(addHeapObject(message));
267
253
  return takeObject(ret);
268
254
  }
269
255
  /**
270
256
  * @param {number} worker_id
271
- * @returns {Promise<string>}
257
+ * @returns {Promise<WasmTaskMessage>}
272
258
  */
273
- export function recvMessageInWorker(worker_id) {
274
- const ret = wasm.recvMessageInWorker(worker_id);
259
+ export function recvTaskMessageInWorker(worker_id) {
260
+ const ret = wasm.recvTaskMessageInWorker(worker_id);
275
261
  return takeObject(ret);
276
262
  }
277
- /**
278
- * @param {string} pool_id
279
- * @returns {Promise<number>}
280
- */
281
- export function recvWorkerRequest(pool_id) {
282
- const ptr0 = passStringToWasm0(pool_id, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
283
- const len0 = WASM_VECTOR_LEN;
284
- const ret = wasm.recvWorkerRequest(ptr0, len0);
285
- return takeObject(ret);
286
- }
287
- /**
288
- * @returns {Promise<PoolOptions>}
289
- */
290
- export function recvPoolRequest() {
291
- const ret = wasm.recvPoolRequest();
292
- return takeObject(ret);
263
+ export function init_pack() {
264
+ wasm.init_pack();
293
265
  }
294
266
  /**
295
267
  * @param {string} filter
@@ -299,15 +271,25 @@ export function init_log_filter(filter) {
299
271
  const len0 = WASM_VECTOR_LEN;
300
272
  wasm.init_log_filter(ptr0, len0);
301
273
  }
302
- export function init_pack() {
303
- wasm.init_pack();
304
- }
305
274
  function passArray8ToWasm0(arg, malloc) {
306
275
  const ptr = malloc(arg.length * 1, 1) >>> 0;
307
276
  getUint8ArrayMemory0().set(arg, ptr / 1);
308
277
  WASM_VECTOR_LEN = arg.length;
309
278
  return ptr;
310
279
  }
280
+ /**
281
+ * @param {number} worker_id
282
+ */
283
+ export function workerCreated(worker_id) {
284
+ wasm.workerCreated(worker_id);
285
+ }
286
+ /**
287
+ * @param {Function} creator
288
+ * @param {Function} terminator
289
+ */
290
+ export function registerWorkerScheduler(creator, terminator) {
291
+ wasm.registerWorkerScheduler(addHeapObject(creator), addHeapObject(terminator));
292
+ }
311
293
  /**
312
294
  * Entry point for web workers
313
295
  * @param {number} ptr
@@ -325,7 +307,7 @@ function addBorrowedObject(obj) {
325
307
  heap[--stack_pointer] = obj;
326
308
  return stack_pointer;
327
309
  }
328
- function __wbg_adapter_7(arg0, arg1, arg2) {
310
+ function __wbg_adapter_11(arg0, arg1, arg2) {
329
311
  try {
330
312
  wasm.__wbindgen_export_7(arg0, arg1, addBorrowedObject(arg2));
331
313
  }
@@ -333,11 +315,11 @@ function __wbg_adapter_7(arg0, arg1, arg2) {
333
315
  heap[stack_pointer++] = undefined;
334
316
  }
335
317
  }
336
- function __wbg_adapter_10(arg0, arg1, arg2) {
337
- wasm.__wbindgen_export_8(arg0, arg1, addHeapObject(arg2));
318
+ function __wbg_adapter_20(arg0, arg1) {
319
+ wasm.__wbindgen_export_8(arg0, arg1);
338
320
  }
339
- function __wbg_adapter_15(arg0, arg1) {
340
- wasm.__wbindgen_export_9(arg0, arg1);
321
+ function __wbg_adapter_25(arg0, arg1, arg2) {
322
+ wasm.__wbindgen_export_9(arg0, arg1, addHeapObject(arg2));
341
323
  }
342
324
  function __wbg_adapter_94(arg0, arg1, arg2, arg3) {
343
325
  wasm.__wbindgen_export_10(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
@@ -477,71 +459,6 @@ export class Metadata {
477
459
  }
478
460
  if (Symbol.dispose)
479
461
  Metadata.prototype[Symbol.dispose] = Metadata.prototype.free;
480
- const PoolOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
481
- ? { register: () => { }, unregister: () => { } }
482
- : new FinalizationRegistry(ptr => wasm.__wbg_pooloptions_free(ptr >>> 0, 1));
483
- export class PoolOptions {
484
- static __wrap(ptr) {
485
- ptr = ptr >>> 0;
486
- const obj = Object.create(PoolOptions.prototype);
487
- obj.__wbg_ptr = ptr;
488
- PoolOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
489
- return obj;
490
- }
491
- __destroy_into_raw() {
492
- const ptr = this.__wbg_ptr;
493
- this.__wbg_ptr = 0;
494
- PoolOptionsFinalization.unregister(this);
495
- return ptr;
496
- }
497
- free() {
498
- const ptr = this.__destroy_into_raw();
499
- wasm.__wbg_pooloptions_free(ptr, 0);
500
- }
501
- /**
502
- * @returns {string}
503
- */
504
- get filename() {
505
- let deferred1_0;
506
- let deferred1_1;
507
- try {
508
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
509
- wasm.__wbg_get_pooloptions_filename(retptr, this.__wbg_ptr);
510
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
511
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
512
- deferred1_0 = r0;
513
- deferred1_1 = r1;
514
- return getStringFromWasm0(r0, r1);
515
- }
516
- finally {
517
- wasm.__wbindgen_add_to_stack_pointer(16);
518
- wasm.__wbindgen_export_4(deferred1_0, deferred1_1, 1);
519
- }
520
- }
521
- /**
522
- * @param {string} arg0
523
- */
524
- set filename(arg0) {
525
- const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
526
- const len0 = WASM_VECTOR_LEN;
527
- wasm.__wbg_set_pooloptions_filename(this.__wbg_ptr, ptr0, len0);
528
- }
529
- /**
530
- * @returns {number}
531
- */
532
- get maxConcurrency() {
533
- const ret = wasm.__wbg_get_pooloptions_maxConcurrency(this.__wbg_ptr);
534
- return ret >>> 0;
535
- }
536
- /**
537
- * @param {number} arg0
538
- */
539
- set maxConcurrency(arg0) {
540
- wasm.__wbg_set_pooloptions_maxConcurrency(this.__wbg_ptr, arg0);
541
- }
542
- }
543
- if (Symbol.dispose)
544
- PoolOptions.prototype[Symbol.dispose] = PoolOptions.prototype.free;
545
462
  const ProjectFinalization = (typeof FinalizationRegistry === 'undefined')
546
463
  ? { register: () => { }, unregister: () => { } }
547
464
  : new FinalizationRegistry(ptr => wasm.__wbg_project_free(ptr >>> 0, 1));
@@ -777,26 +694,130 @@ export class Project {
777
694
  }
778
695
  if (Symbol.dispose)
779
696
  Project.prototype[Symbol.dispose] = Project.prototype.free;
780
- const WorkerTerminationFinalization = (typeof FinalizationRegistry === 'undefined')
697
+ const WasmTaskMessageFinalization = (typeof FinalizationRegistry === 'undefined')
698
+ ? { register: () => { }, unregister: () => { } }
699
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmtaskmessage_free(ptr >>> 0, 1));
700
+ export class WasmTaskMessage {
701
+ static __wrap(ptr) {
702
+ ptr = ptr >>> 0;
703
+ const obj = Object.create(WasmTaskMessage.prototype);
704
+ obj.__wbg_ptr = ptr;
705
+ WasmTaskMessageFinalization.register(obj, obj.__wbg_ptr, obj);
706
+ return obj;
707
+ }
708
+ __destroy_into_raw() {
709
+ const ptr = this.__wbg_ptr;
710
+ this.__wbg_ptr = 0;
711
+ WasmTaskMessageFinalization.unregister(this);
712
+ return ptr;
713
+ }
714
+ free() {
715
+ const ptr = this.__destroy_into_raw();
716
+ wasm.__wbg_wasmtaskmessage_free(ptr, 0);
717
+ }
718
+ /**
719
+ * @returns {number}
720
+ */
721
+ get taskId() {
722
+ const ret = wasm.__wbg_get_wasmtaskmessage_taskId(this.__wbg_ptr);
723
+ return ret >>> 0;
724
+ }
725
+ /**
726
+ * @param {number} arg0
727
+ */
728
+ set taskId(arg0) {
729
+ wasm.__wbg_set_wasmtaskmessage_taskId(this.__wbg_ptr, arg0);
730
+ }
731
+ /**
732
+ * @returns {string}
733
+ */
734
+ get data() {
735
+ let deferred1_0;
736
+ let deferred1_1;
737
+ try {
738
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
739
+ wasm.__wbg_get_wasmtaskmessage_data(retptr, this.__wbg_ptr);
740
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
741
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
742
+ deferred1_0 = r0;
743
+ deferred1_1 = r1;
744
+ return getStringFromWasm0(r0, r1);
745
+ }
746
+ finally {
747
+ wasm.__wbindgen_add_to_stack_pointer(16);
748
+ wasm.__wbindgen_export_4(deferred1_0, deferred1_1, 1);
749
+ }
750
+ }
751
+ /**
752
+ * @param {string} arg0
753
+ */
754
+ set data(arg0) {
755
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
756
+ const len0 = WASM_VECTOR_LEN;
757
+ wasm.__wbg_set_wasmtaskmessage_data(this.__wbg_ptr, ptr0, len0);
758
+ }
759
+ }
760
+ if (Symbol.dispose)
761
+ WasmTaskMessage.prototype[Symbol.dispose] = WasmTaskMessage.prototype.free;
762
+ const WebWorkerCreationFinalization = (typeof FinalizationRegistry === 'undefined')
763
+ ? { register: () => { }, unregister: () => { } }
764
+ : new FinalizationRegistry(ptr => wasm.__wbg_webworkercreation_free(ptr >>> 0, 1));
765
+ export class WebWorkerCreation {
766
+ static __wrap(ptr) {
767
+ ptr = ptr >>> 0;
768
+ const obj = Object.create(WebWorkerCreation.prototype);
769
+ obj.__wbg_ptr = ptr;
770
+ WebWorkerCreationFinalization.register(obj, obj.__wbg_ptr, obj);
771
+ return obj;
772
+ }
773
+ __destroy_into_raw() {
774
+ const ptr = this.__wbg_ptr;
775
+ this.__wbg_ptr = 0;
776
+ WebWorkerCreationFinalization.unregister(this);
777
+ return ptr;
778
+ }
779
+ free() {
780
+ const ptr = this.__destroy_into_raw();
781
+ wasm.__wbg_webworkercreation_free(ptr, 0);
782
+ }
783
+ /**
784
+ * @returns {WebWorkerOptions}
785
+ */
786
+ get options() {
787
+ const ret = wasm.__wbg_get_webworkercreation_options(this.__wbg_ptr);
788
+ return WebWorkerOptions.__wrap(ret);
789
+ }
790
+ /**
791
+ * @param {WebWorkerOptions} arg0
792
+ */
793
+ set options(arg0) {
794
+ _assertClass(arg0, WebWorkerOptions);
795
+ var ptr0 = arg0.__destroy_into_raw();
796
+ wasm.__wbg_set_webworkercreation_options(this.__wbg_ptr, ptr0);
797
+ }
798
+ }
799
+ if (Symbol.dispose)
800
+ WebWorkerCreation.prototype[Symbol.dispose] = WebWorkerCreation.prototype.free;
801
+ const WebWorkerOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
781
802
  ? { register: () => { }, unregister: () => { } }
782
- : new FinalizationRegistry(ptr => wasm.__wbg_workertermination_free(ptr >>> 0, 1));
783
- export class WorkerTermination {
803
+ : new FinalizationRegistry(ptr => wasm.__wbg_webworkeroptions_free(ptr >>> 0, 1));
804
+ export class WebWorkerOptions {
784
805
  static __wrap(ptr) {
785
806
  ptr = ptr >>> 0;
786
- const obj = Object.create(WorkerTermination.prototype);
807
+ const obj = Object.create(WebWorkerOptions.prototype);
787
808
  obj.__wbg_ptr = ptr;
788
- WorkerTerminationFinalization.register(obj, obj.__wbg_ptr, obj);
809
+ WebWorkerOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
789
810
  return obj;
790
811
  }
791
812
  __destroy_into_raw() {
792
813
  const ptr = this.__wbg_ptr;
793
814
  this.__wbg_ptr = 0;
794
- WorkerTerminationFinalization.unregister(this);
815
+ WebWorkerOptionsFinalization.unregister(this);
795
816
  return ptr;
796
817
  }
797
818
  free() {
798
819
  const ptr = this.__destroy_into_raw();
799
- wasm.__wbg_workertermination_free(ptr, 0);
820
+ wasm.__wbg_webworkeroptions_free(ptr, 0);
800
821
  }
801
822
  /**
802
823
  * @returns {string}
@@ -806,7 +827,7 @@ export class WorkerTermination {
806
827
  let deferred1_1;
807
828
  try {
808
829
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
809
- wasm.__wbg_get_pooloptions_filename(retptr, this.__wbg_ptr);
830
+ wasm.__wbg_get_wasmtaskmessage_data(retptr, this.__wbg_ptr);
810
831
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
811
832
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
812
833
  deferred1_0 = r0;
@@ -824,24 +845,91 @@ export class WorkerTermination {
824
845
  set filename(arg0) {
825
846
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
826
847
  const len0 = WASM_VECTOR_LEN;
827
- wasm.__wbg_set_pooloptions_filename(this.__wbg_ptr, ptr0, len0);
848
+ wasm.__wbg_set_wasmtaskmessage_data(this.__wbg_ptr, ptr0, len0);
849
+ }
850
+ /**
851
+ * @returns {string}
852
+ */
853
+ get cwd() {
854
+ let deferred1_0;
855
+ let deferred1_1;
856
+ try {
857
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
858
+ wasm.__wbg_get_webworkeroptions_cwd(retptr, this.__wbg_ptr);
859
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
860
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
861
+ deferred1_0 = r0;
862
+ deferred1_1 = r1;
863
+ return getStringFromWasm0(r0, r1);
864
+ }
865
+ finally {
866
+ wasm.__wbindgen_add_to_stack_pointer(16);
867
+ wasm.__wbindgen_export_4(deferred1_0, deferred1_1, 1);
868
+ }
869
+ }
870
+ /**
871
+ * @param {string} arg0
872
+ */
873
+ set cwd(arg0) {
874
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
875
+ const len0 = WASM_VECTOR_LEN;
876
+ wasm.__wbg_set_webworkeroptions_cwd(this.__wbg_ptr, ptr0, len0);
877
+ }
878
+ }
879
+ if (Symbol.dispose)
880
+ WebWorkerOptions.prototype[Symbol.dispose] = WebWorkerOptions.prototype.free;
881
+ const WebWorkerTerminationFinalization = (typeof FinalizationRegistry === 'undefined')
882
+ ? { register: () => { }, unregister: () => { } }
883
+ : new FinalizationRegistry(ptr => wasm.__wbg_webworkertermination_free(ptr >>> 0, 1));
884
+ export class WebWorkerTermination {
885
+ static __wrap(ptr) {
886
+ ptr = ptr >>> 0;
887
+ const obj = Object.create(WebWorkerTermination.prototype);
888
+ obj.__wbg_ptr = ptr;
889
+ WebWorkerTerminationFinalization.register(obj, obj.__wbg_ptr, obj);
890
+ return obj;
891
+ }
892
+ __destroy_into_raw() {
893
+ const ptr = this.__wbg_ptr;
894
+ this.__wbg_ptr = 0;
895
+ WebWorkerTerminationFinalization.unregister(this);
896
+ return ptr;
897
+ }
898
+ free() {
899
+ const ptr = this.__destroy_into_raw();
900
+ wasm.__wbg_webworkertermination_free(ptr, 0);
901
+ }
902
+ /**
903
+ * @returns {WebWorkerOptions}
904
+ */
905
+ get options() {
906
+ const ret = wasm.__wbg_get_webworkertermination_options(this.__wbg_ptr);
907
+ return WebWorkerOptions.__wrap(ret);
908
+ }
909
+ /**
910
+ * @param {WebWorkerOptions} arg0
911
+ */
912
+ set options(arg0) {
913
+ _assertClass(arg0, WebWorkerOptions);
914
+ var ptr0 = arg0.__destroy_into_raw();
915
+ wasm.__wbg_set_webworkertermination_options(this.__wbg_ptr, ptr0);
828
916
  }
829
917
  /**
830
918
  * @returns {number}
831
919
  */
832
920
  get workerId() {
833
- const ret = wasm.__wbg_get_pooloptions_maxConcurrency(this.__wbg_ptr);
921
+ const ret = wasm.__wbg_get_webworkertermination_workerId(this.__wbg_ptr);
834
922
  return ret >>> 0;
835
923
  }
836
924
  /**
837
925
  * @param {number} arg0
838
926
  */
839
927
  set workerId(arg0) {
840
- wasm.__wbg_set_pooloptions_maxConcurrency(this.__wbg_ptr, arg0);
928
+ wasm.__wbg_set_webworkertermination_workerId(this.__wbg_ptr, arg0);
841
929
  }
842
930
  }
843
931
  if (Symbol.dispose)
844
- WorkerTermination.prototype[Symbol.dispose] = WorkerTermination.prototype.free;
932
+ WebWorkerTermination.prototype[Symbol.dispose] = WebWorkerTermination.prototype.free;
845
933
  const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
846
934
  async function __wbg_load(module, imports) {
847
935
  if (typeof Response === 'function' && module instanceof Response) {
@@ -927,7 +1015,7 @@ function __wbg_get_imports() {
927
1015
  return addHeapObject(ret);
928
1016
  }, arguments);
929
1017
  };
930
- imports.wbg.__wbg_changedHandle_51cdba7dd85fac27 = function (arg0) {
1018
+ imports.wbg.__wbg_changedHandle_9ac6171cf620f861 = function (arg0) {
931
1019
  const ret = getObject(arg0).changedHandle;
932
1020
  return addHeapObject(ret);
933
1021
  };
@@ -1208,6 +1296,10 @@ function __wbg_get_imports() {
1208
1296
  const ret = new Map();
1209
1297
  return addHeapObject(ret);
1210
1298
  };
1299
+ imports.wbg.__wbg_new_61e1f224687df92d = function (arg0) {
1300
+ const ret = new FileSystemObserver(getObject(arg0));
1301
+ return addHeapObject(ret);
1302
+ };
1211
1303
  imports.wbg.__wbg_new_638ebfaedbf32a5e = function (arg0) {
1212
1304
  const ret = new Uint8Array(getObject(arg0));
1213
1305
  return addHeapObject(ret);
@@ -1222,10 +1314,6 @@ function __wbg_get_imports() {
1222
1314
  const ret = new Error();
1223
1315
  return addHeapObject(ret);
1224
1316
  };
1225
- imports.wbg.__wbg_new_9b2344bc56f77a2b = function (arg0) {
1226
- const ret = new FileSystemObserver(getObject(arg0));
1227
- return addHeapObject(ret);
1228
- };
1229
1317
  imports.wbg.__wbg_new_9d476835fd376de6 = function () {
1230
1318
  return handleError(function (arg0, arg1) {
1231
1319
  const ret = new Worker(getStringFromWasm0(arg0, arg1));
@@ -1292,7 +1380,7 @@ function __wbg_get_imports() {
1292
1380
  const ret = Date.now();
1293
1381
  return ret;
1294
1382
  };
1295
- imports.wbg.__wbg_observe_a98641e2bc5e6a17 = function (arg0, arg1, arg2) {
1383
+ imports.wbg.__wbg_observe_4d40e63195da8748 = function (arg0, arg1, arg2) {
1296
1384
  const ret = getObject(arg0).observe(getObject(arg1), getObject(arg2));
1297
1385
  return addHeapObject(ret);
1298
1386
  };
@@ -1304,10 +1392,6 @@ function __wbg_get_imports() {
1304
1392
  const ret = getObject(arg0).performance;
1305
1393
  return addHeapObject(ret);
1306
1394
  };
1307
- imports.wbg.__wbg_pooloptions_new = function (arg0) {
1308
- const ret = PoolOptions.__wrap(arg0);
1309
- return addHeapObject(ret);
1310
- };
1311
1395
  imports.wbg.__wbg_postMessage_38909232d65f5870 = function () {
1312
1396
  return handleError(function (arg0, arg1) {
1313
1397
  getObject(arg0).postMessage(getObject(arg1));
@@ -1348,7 +1432,7 @@ function __wbg_get_imports() {
1348
1432
  return ret;
1349
1433
  }, arguments);
1350
1434
  };
1351
- imports.wbg.__wbg_relativePathComponents_71b7af6cc056eaa1 = function (arg0) {
1435
+ imports.wbg.__wbg_relativePathComponents_e11d94d1d3b8277c = function (arg0) {
1352
1436
  const ret = getObject(arg0).relativePathComponents;
1353
1437
  return addHeapObject(ret);
1354
1438
  };
@@ -1416,7 +1500,7 @@ function __wbg_get_imports() {
1416
1500
  imports.wbg.__wbg_setrecursive_072599988d5f7e8d = function (arg0, arg1) {
1417
1501
  getObject(arg0).recursive = arg1 !== 0;
1418
1502
  };
1419
- imports.wbg.__wbg_setrecursive_0b3e76f293311ab5 = function (arg0, arg1) {
1503
+ imports.wbg.__wbg_setrecursive_8266308232855fe7 = function (arg0, arg1) {
1420
1504
  getObject(arg0).recursive = arg1 !== 0;
1421
1505
  };
1422
1506
  imports.wbg.__wbg_setsignal_8c45ad1247a74809 = function (arg0, arg1) {
@@ -1497,7 +1581,7 @@ function __wbg_get_imports() {
1497
1581
  getObject(arg0).truncate(arg1 >>> 0);
1498
1582
  }, arguments);
1499
1583
  };
1500
- imports.wbg.__wbg_type_7ef9242007bd4c65 = function (arg0) {
1584
+ imports.wbg.__wbg_type_53ab342163438035 = function (arg0) {
1501
1585
  const ret = getObject(arg0).type;
1502
1586
  return (__wbindgen_enum_FileSystemChangeRecordType.indexOf(ret) + 1 || 7) - 1;
1503
1587
  };
@@ -1530,6 +1614,10 @@ function __wbg_get_imports() {
1530
1614
  imports.wbg.__wbg_warn_e2ada06313f92f09 = function (arg0) {
1531
1615
  console.warn(getObject(arg0));
1532
1616
  };
1617
+ imports.wbg.__wbg_wasmtaskmessage_new = function (arg0) {
1618
+ const ret = WasmTaskMessage.__wrap(arg0);
1619
+ return addHeapObject(ret);
1620
+ };
1533
1621
  imports.wbg.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function (arg0) {
1534
1622
  const v = getObject(arg0);
1535
1623
  const ret = typeof (v) === 'boolean' ? v : undefined;
@@ -1604,8 +1692,12 @@ function __wbg_get_imports() {
1604
1692
  imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function (arg0, arg1) {
1605
1693
  throw new Error(getStringFromWasm0(arg0, arg1));
1606
1694
  };
1607
- imports.wbg.__wbg_workertermination_new = function (arg0) {
1608
- const ret = WorkerTermination.__wrap(arg0);
1695
+ imports.wbg.__wbg_webworkercreation_new = function (arg0) {
1696
+ const ret = WebWorkerCreation.__wrap(arg0);
1697
+ return addHeapObject(ret);
1698
+ };
1699
+ imports.wbg.__wbg_webworkertermination_new = function (arg0) {
1700
+ const ret = WebWorkerTermination.__wrap(arg0);
1609
1701
  return addHeapObject(ret);
1610
1702
  };
1611
1703
  imports.wbg.__wbg_write_9ac6a5f58a8c835c = function () {
@@ -1620,34 +1712,24 @@ function __wbg_get_imports() {
1620
1712
  return ret;
1621
1713
  }, arguments);
1622
1714
  };
1715
+ imports.wbg.__wbindgen_cast_1113a938f979d88a = function (arg0, arg1) {
1716
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 603, function: Function { arguments: [], shim_idx: 604, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1717
+ const ret = makeMutClosure(arg0, arg1, 603, __wbg_adapter_20);
1718
+ return addHeapObject(ret);
1719
+ };
1623
1720
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
1624
1721
  // Cast intrinsic for `Ref(String) -> Externref`.
1625
1722
  const ret = getStringFromWasm0(arg0, arg1);
1626
1723
  return addHeapObject(ret);
1627
1724
  };
1628
- imports.wbg.__wbindgen_cast_228b11ff07fcd80f = function (arg0, arg1) {
1629
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8687, function: Function { arguments: [], shim_idx: 600, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1630
- const ret = makeMutClosure(arg0, arg1, 8687, __wbg_adapter_15);
1631
- return addHeapObject(ret);
1632
- };
1633
- imports.wbg.__wbindgen_cast_3255823a0b603d96 = function (arg0, arg1) {
1634
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8661, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 8685, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1635
- const ret = makeMutClosure(arg0, arg1, 8661, __wbg_adapter_7);
1636
- return addHeapObject(ret);
1637
- };
1638
1725
  imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
1639
1726
  // Cast intrinsic for `U64 -> Externref`.
1640
1727
  const ret = BigInt.asUintN(64, arg0);
1641
1728
  return addHeapObject(ret);
1642
1729
  };
1643
- imports.wbg.__wbindgen_cast_4c807b347a3d0cbf = function (arg0, arg1) {
1644
- // Cast intrinsic for `Closure(Closure { dtor_idx: 599, function: Function { arguments: [], shim_idx: 600, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1645
- const ret = makeMutClosure(arg0, arg1, 599, __wbg_adapter_15);
1646
- return addHeapObject(ret);
1647
- };
1648
- imports.wbg.__wbindgen_cast_535e935a655d72df = function (arg0, arg1) {
1649
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8680, function: Function { arguments: [Externref], shim_idx: 8681, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1650
- const ret = makeMutClosure(arg0, arg1, 8680, __wbg_adapter_4);
1730
+ imports.wbg.__wbindgen_cast_59550fe77af0bf03 = function (arg0, arg1) {
1731
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8609, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 8630, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1732
+ const ret = makeMutClosure(arg0, arg1, 8609, __wbg_adapter_11);
1651
1733
  return addHeapObject(ret);
1652
1734
  };
1653
1735
  imports.wbg.__wbindgen_cast_76322aab70622876 = function (arg0, arg1) {
@@ -1657,6 +1739,11 @@ function __wbg_get_imports() {
1657
1739
  const ret = v0;
1658
1740
  return addHeapObject(ret);
1659
1741
  };
1742
+ imports.wbg.__wbindgen_cast_77984da3a91be2e9 = function (arg0, arg1) {
1743
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8625, function: Function { arguments: [Externref], shim_idx: 8626, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1744
+ const ret = makeMutClosure(arg0, arg1, 8625, __wbg_adapter_4);
1745
+ return addHeapObject(ret);
1746
+ };
1660
1747
  imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function (arg0, arg1) {
1661
1748
  var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
1662
1749
  wasm.__wbindgen_export_4(arg0, arg1 * 1, 1);
@@ -1664,24 +1751,29 @@ function __wbg_get_imports() {
1664
1751
  const ret = v0;
1665
1752
  return addHeapObject(ret);
1666
1753
  };
1754
+ imports.wbg.__wbindgen_cast_8ecade4ce8b126db = function (arg0, arg1) {
1755
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8625, function: Function { arguments: [], shim_idx: 604, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1756
+ const ret = makeMutClosure(arg0, arg1, 8625, __wbg_adapter_20);
1757
+ return addHeapObject(ret);
1758
+ };
1667
1759
  imports.wbg.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
1668
1760
  // Cast intrinsic for `I64 -> Externref`.
1669
1761
  const ret = arg0;
1670
1762
  return addHeapObject(ret);
1671
1763
  };
1672
- imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
1673
- // Cast intrinsic for `F64 -> Externref`.
1674
- const ret = arg0;
1764
+ imports.wbg.__wbindgen_cast_bb0fb35a7180d55b = function (arg0, arg1) {
1765
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8625, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 8626, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1766
+ const ret = makeMutClosure(arg0, arg1, 8625, __wbg_adapter_4);
1675
1767
  return addHeapObject(ret);
1676
1768
  };
1677
- imports.wbg.__wbindgen_cast_ded0188a991d8b3c = function (arg0, arg1) {
1678
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8680, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 8681, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1679
- const ret = makeMutClosure(arg0, arg1, 8680, __wbg_adapter_4);
1769
+ imports.wbg.__wbindgen_cast_cdaa362fcf12456c = function (arg0, arg1) {
1770
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8609, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 8610, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1771
+ const ret = makeClosure(arg0, arg1, 8609, __wbg_adapter_25);
1680
1772
  return addHeapObject(ret);
1681
1773
  };
1682
- imports.wbg.__wbindgen_cast_ffa04fbd359d627f = function (arg0, arg1) {
1683
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8661, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 8662, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1684
- const ret = makeClosure(arg0, arg1, 8661, __wbg_adapter_10);
1774
+ imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
1775
+ // Cast intrinsic for `F64 -> Externref`.
1776
+ const ret = arg0;
1685
1777
  return addHeapObject(ret);
1686
1778
  };
1687
1779
  imports.wbg.__wbindgen_link_dd5153a359f2e504 = function (arg0) {
@@ -1708,7 +1800,7 @@ function __wbg_get_imports() {
1708
1800
  return imports;
1709
1801
  }
1710
1802
  function __wbg_init_memory(imports, memory) {
1711
- imports.wbg.memory = memory || new WebAssembly.Memory({ initial: 129, maximum: 16384, shared: true });
1803
+ imports.wbg.memory = memory || new WebAssembly.Memory({ initial: 130, maximum: 16384, shared: true });
1712
1804
  }
1713
1805
  function __wbg_finalize_init(instance, module, thread_stack_size) {
1714
1806
  wasm = instance.exports;
Binary file