@xmtp/wasm-bindings 1.2.0-rc2 → 1.2.0-rc4

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.
@@ -1,3 +1,5 @@
1
+ import { JSUtils } from './snippets/sqlite-wasm-rs-7363ec544fce135b/src/vfs/utils.js';
2
+
1
3
  let wasm;
2
4
 
3
5
  let WASM_VECTOR_LEN = 0;
@@ -214,34 +216,11 @@ function debugString(val) {
214
216
  return className;
215
217
  }
216
218
 
217
- function passArrayJsValueToWasm0(array, malloc) {
218
- const ptr = malloc(array.length * 4, 4) >>> 0;
219
- for (let i = 0; i < array.length; i++) {
220
- const add = addToExternrefTable0(array[i]);
221
- getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
222
- }
223
- WASM_VECTOR_LEN = array.length;
224
- return ptr;
225
- }
226
-
227
219
  function _assertClass(instance, klass) {
228
220
  if (!(instance instanceof klass)) {
229
221
  throw new Error(`expected instance of ${klass.name}`);
230
222
  }
231
223
  }
232
-
233
- function passArray8ToWasm0(arg, malloc) {
234
- const ptr = malloc(arg.length * 1, 1) >>> 0;
235
- getUint8ArrayMemory0().set(arg, ptr / 1);
236
- WASM_VECTOR_LEN = arg.length;
237
- return ptr;
238
- }
239
-
240
- function takeFromExternrefTable0(idx) {
241
- const value = wasm.__wbindgen_export_4.get(idx);
242
- wasm.__externref_table_dealloc(idx);
243
- return value;
244
- }
245
224
  /**
246
225
  * @param {string} host
247
226
  * @param {string} inbox_id
@@ -271,6 +250,41 @@ export function createClient(host, inbox_id, account_identifier, db_path, encryp
271
250
  return ret;
272
251
  }
273
252
 
253
+ function passArrayJsValueToWasm0(array, malloc) {
254
+ const ptr = malloc(array.length * 4, 4) >>> 0;
255
+ for (let i = 0; i < array.length; i++) {
256
+ const add = addToExternrefTable0(array[i]);
257
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
258
+ }
259
+ WASM_VECTOR_LEN = array.length;
260
+ return ptr;
261
+ }
262
+
263
+ function takeFromExternrefTable0(idx) {
264
+ const value = wasm.__wbindgen_export_4.get(idx);
265
+ wasm.__externref_table_dealloc(idx);
266
+ return value;
267
+ }
268
+ /**
269
+ * @param {string} signature_text
270
+ * @param {Uint8Array} signature_bytes
271
+ * @param {Uint8Array} public_key
272
+ */
273
+ export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
274
+ const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
275
+ const len0 = WASM_VECTOR_LEN;
276
+ const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
277
+ if (ret[1]) {
278
+ throw takeFromExternrefTable0(ret[0]);
279
+ }
280
+ }
281
+
282
+ function passArray8ToWasm0(arg, malloc) {
283
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
284
+ getUint8ArrayMemory0().set(arg, ptr / 1);
285
+ WASM_VECTOR_LEN = arg.length;
286
+ return ptr;
287
+ }
274
288
  /**
275
289
  * @param {MultiRemoteAttachment} multiRemoteAttachment
276
290
  * @returns {Uint8Array}
@@ -323,20 +337,6 @@ export function decodeReaction(bytes) {
323
337
  return Reaction.__wrap(ret[0]);
324
338
  }
325
339
 
326
- /**
327
- * @param {string} signature_text
328
- * @param {Uint8Array} signature_bytes
329
- * @param {Uint8Array} public_key
330
- */
331
- export function verifySignedWithPublicKey(signature_text, signature_bytes, public_key) {
332
- const ptr0 = passStringToWasm0(signature_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
333
- const len0 = WASM_VECTOR_LEN;
334
- const ret = wasm.verifySignedWithPublicKey(ptr0, len0, signature_bytes, public_key);
335
- if (ret[1]) {
336
- throw takeFromExternrefTable0(ret[0]);
337
- }
338
- }
339
-
340
340
  /**
341
341
  * @param {string} host
342
342
  * @param {Identifier} accountIdentifier
@@ -373,28 +373,23 @@ export function generateInboxId(accountIdentifier) {
373
373
  }
374
374
 
375
375
  function __wbg_adapter_50(arg0, arg1) {
376
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6040dd5f55152215(arg0, arg1);
376
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h575b04d35ced4eef(arg0, arg1);
377
377
  }
378
378
 
379
379
  function __wbg_adapter_53(arg0, arg1) {
380
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h89dafc0baf46c12b(arg0, arg1);
380
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h796728156b0a2ca1(arg0, arg1);
381
381
  }
382
382
 
383
383
  function __wbg_adapter_56(arg0, arg1, arg2) {
384
- wasm.closure4467_externref_shim(arg0, arg1, arg2);
384
+ wasm.closure4444_externref_shim(arg0, arg1, arg2);
385
385
  }
386
386
 
387
387
  function __wbg_adapter_59(arg0, arg1) {
388
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0f45197f24caef5a(arg0, arg1);
389
- }
390
-
391
- function __wbg_adapter_650(arg0, arg1, arg2, arg3, arg4) {
392
- const ret = wasm.closure5474_externref_shim(arg0, arg1, arg2, arg3, arg4);
393
- return ret !== 0;
388
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5c244b99d95a8e7a(arg0, arg1);
394
389
  }
395
390
 
396
- function __wbg_adapter_751(arg0, arg1, arg2, arg3) {
397
- wasm.closure5473_externref_shim(arg0, arg1, arg2, arg3);
391
+ function __wbg_adapter_769(arg0, arg1, arg2, arg3) {
392
+ wasm.closure5415_externref_shim(arg0, arg1, arg2, arg3);
398
393
  }
399
394
 
400
395
  /**
@@ -551,6 +546,137 @@ const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
551
546
 
552
547
  const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
553
548
 
549
+ const ApiStatsFinalization = (typeof FinalizationRegistry === 'undefined')
550
+ ? { register: () => {}, unregister: () => {} }
551
+ : new FinalizationRegistry(ptr => wasm.__wbg_apistats_free(ptr >>> 0, 1));
552
+
553
+ export class ApiStats {
554
+
555
+ static __wrap(ptr) {
556
+ ptr = ptr >>> 0;
557
+ const obj = Object.create(ApiStats.prototype);
558
+ obj.__wbg_ptr = ptr;
559
+ ApiStatsFinalization.register(obj, obj.__wbg_ptr, obj);
560
+ return obj;
561
+ }
562
+
563
+ __destroy_into_raw() {
564
+ const ptr = this.__wbg_ptr;
565
+ this.__wbg_ptr = 0;
566
+ ApiStatsFinalization.unregister(this);
567
+ return ptr;
568
+ }
569
+
570
+ free() {
571
+ const ptr = this.__destroy_into_raw();
572
+ wasm.__wbg_apistats_free(ptr, 0);
573
+ }
574
+ /**
575
+ * @returns {bigint}
576
+ */
577
+ get upload_key_package() {
578
+ const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
579
+ return BigInt.asUintN(64, ret);
580
+ }
581
+ /**
582
+ * @param {bigint} arg0
583
+ */
584
+ set upload_key_package(arg0) {
585
+ wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
586
+ }
587
+ /**
588
+ * @returns {bigint}
589
+ */
590
+ get fetch_key_package() {
591
+ const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
592
+ return BigInt.asUintN(64, ret);
593
+ }
594
+ /**
595
+ * @param {bigint} arg0
596
+ */
597
+ set fetch_key_package(arg0) {
598
+ wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
599
+ }
600
+ /**
601
+ * @returns {bigint}
602
+ */
603
+ get send_group_messages() {
604
+ const ret = wasm.__wbg_get_apistats_send_group_messages(this.__wbg_ptr);
605
+ return BigInt.asUintN(64, ret);
606
+ }
607
+ /**
608
+ * @param {bigint} arg0
609
+ */
610
+ set send_group_messages(arg0) {
611
+ wasm.__wbg_set_apistats_send_group_messages(this.__wbg_ptr, arg0);
612
+ }
613
+ /**
614
+ * @returns {bigint}
615
+ */
616
+ get send_welcome_messages() {
617
+ const ret = wasm.__wbg_get_apistats_send_welcome_messages(this.__wbg_ptr);
618
+ return BigInt.asUintN(64, ret);
619
+ }
620
+ /**
621
+ * @param {bigint} arg0
622
+ */
623
+ set send_welcome_messages(arg0) {
624
+ wasm.__wbg_set_apistats_send_welcome_messages(this.__wbg_ptr, arg0);
625
+ }
626
+ /**
627
+ * @returns {bigint}
628
+ */
629
+ get query_group_messages() {
630
+ const ret = wasm.__wbg_get_apistats_query_group_messages(this.__wbg_ptr);
631
+ return BigInt.asUintN(64, ret);
632
+ }
633
+ /**
634
+ * @param {bigint} arg0
635
+ */
636
+ set query_group_messages(arg0) {
637
+ wasm.__wbg_set_apistats_query_group_messages(this.__wbg_ptr, arg0);
638
+ }
639
+ /**
640
+ * @returns {bigint}
641
+ */
642
+ get query_welcome_messages() {
643
+ const ret = wasm.__wbg_get_apistats_query_welcome_messages(this.__wbg_ptr);
644
+ return BigInt.asUintN(64, ret);
645
+ }
646
+ /**
647
+ * @param {bigint} arg0
648
+ */
649
+ set query_welcome_messages(arg0) {
650
+ wasm.__wbg_set_apistats_query_welcome_messages(this.__wbg_ptr, arg0);
651
+ }
652
+ /**
653
+ * @returns {bigint}
654
+ */
655
+ get subscribe_messages() {
656
+ const ret = wasm.__wbg_get_apistats_subscribe_messages(this.__wbg_ptr);
657
+ return BigInt.asUintN(64, ret);
658
+ }
659
+ /**
660
+ * @param {bigint} arg0
661
+ */
662
+ set subscribe_messages(arg0) {
663
+ wasm.__wbg_set_apistats_subscribe_messages(this.__wbg_ptr, arg0);
664
+ }
665
+ /**
666
+ * @returns {bigint}
667
+ */
668
+ get subscribe_welcomes() {
669
+ const ret = wasm.__wbg_get_apistats_subscribe_welcomes(this.__wbg_ptr);
670
+ return BigInt.asUintN(64, ret);
671
+ }
672
+ /**
673
+ * @param {bigint} arg0
674
+ */
675
+ set subscribe_welcomes(arg0) {
676
+ wasm.__wbg_set_apistats_subscribe_welcomes(this.__wbg_ptr, arg0);
677
+ }
678
+ }
679
+
554
680
  const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
555
681
  ? { register: () => {}, unregister: () => {} }
556
682
  : new FinalizationRegistry(ptr => wasm.__wbg_client_free(ptr >>> 0, 1));
@@ -685,6 +811,45 @@ export class Client {
685
811
  const ret = wasm.client_syncPreferences(this.__wbg_ptr);
686
812
  return ret;
687
813
  }
814
+ /**
815
+ * @returns {ApiStats}
816
+ */
817
+ apiStatistics() {
818
+ const ret = wasm.client_apiStatistics(this.__wbg_ptr);
819
+ return ApiStats.__wrap(ret);
820
+ }
821
+ /**
822
+ * @returns {IdentityStats}
823
+ */
824
+ apiIdentityStatistics() {
825
+ const ret = wasm.client_apiIdentityStatistics(this.__wbg_ptr);
826
+ return IdentityStats.__wrap(ret);
827
+ }
828
+ /**
829
+ * @returns {string}
830
+ */
831
+ apiAggregateStatistics() {
832
+ let deferred1_0;
833
+ let deferred1_1;
834
+ try {
835
+ const ret = wasm.client_apiAggregateStatistics(this.__wbg_ptr);
836
+ deferred1_0 = ret[0];
837
+ deferred1_1 = ret[1];
838
+ return getStringFromWasm0(ret[0], ret[1]);
839
+ } finally {
840
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
841
+ }
842
+ }
843
+ /**
844
+ * @param {string} server_url
845
+ * @returns {Promise<string>}
846
+ */
847
+ uploadDebugArchive(server_url) {
848
+ const ptr0 = passStringToWasm0(server_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
849
+ const len0 = WASM_VECTOR_LEN;
850
+ const ret = wasm.client_uploadDebugArchive(this.__wbg_ptr, ptr0, len0);
851
+ return ret;
852
+ }
688
853
  /**
689
854
  * @returns {string | undefined}
690
855
  */
@@ -1913,13 +2078,6 @@ export class Conversations {
1913
2078
  const ret = wasm.conversations_syncAllConversations(this.__wbg_ptr, ptr0, len0);
1914
2079
  return ret;
1915
2080
  }
1916
- /**
1917
- * @returns {Promise<void>}
1918
- */
1919
- syncDeviceSync() {
1920
- const ret = wasm.conversations_syncDeviceSync(this.__wbg_ptr);
1921
- return ret;
1922
- }
1923
2081
  /**
1924
2082
  * @param {ListConversationsOptions | null} [opts]
1925
2083
  * @returns {Array<any>}
@@ -2604,6 +2762,85 @@ export class HmacKey {
2604
2762
  }
2605
2763
  }
2606
2764
 
2765
+ const IdentityStatsFinalization = (typeof FinalizationRegistry === 'undefined')
2766
+ ? { register: () => {}, unregister: () => {} }
2767
+ : new FinalizationRegistry(ptr => wasm.__wbg_identitystats_free(ptr >>> 0, 1));
2768
+
2769
+ export class IdentityStats {
2770
+
2771
+ static __wrap(ptr) {
2772
+ ptr = ptr >>> 0;
2773
+ const obj = Object.create(IdentityStats.prototype);
2774
+ obj.__wbg_ptr = ptr;
2775
+ IdentityStatsFinalization.register(obj, obj.__wbg_ptr, obj);
2776
+ return obj;
2777
+ }
2778
+
2779
+ __destroy_into_raw() {
2780
+ const ptr = this.__wbg_ptr;
2781
+ this.__wbg_ptr = 0;
2782
+ IdentityStatsFinalization.unregister(this);
2783
+ return ptr;
2784
+ }
2785
+
2786
+ free() {
2787
+ const ptr = this.__destroy_into_raw();
2788
+ wasm.__wbg_identitystats_free(ptr, 0);
2789
+ }
2790
+ /**
2791
+ * @returns {bigint}
2792
+ */
2793
+ get publish_identity_update() {
2794
+ const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
2795
+ return BigInt.asUintN(64, ret);
2796
+ }
2797
+ /**
2798
+ * @param {bigint} arg0
2799
+ */
2800
+ set publish_identity_update(arg0) {
2801
+ wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
2802
+ }
2803
+ /**
2804
+ * @returns {bigint}
2805
+ */
2806
+ get get_identity_updates_v2() {
2807
+ const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
2808
+ return BigInt.asUintN(64, ret);
2809
+ }
2810
+ /**
2811
+ * @param {bigint} arg0
2812
+ */
2813
+ set get_identity_updates_v2(arg0) {
2814
+ wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
2815
+ }
2816
+ /**
2817
+ * @returns {bigint}
2818
+ */
2819
+ get get_inbox_ids() {
2820
+ const ret = wasm.__wbg_get_apistats_send_group_messages(this.__wbg_ptr);
2821
+ return BigInt.asUintN(64, ret);
2822
+ }
2823
+ /**
2824
+ * @param {bigint} arg0
2825
+ */
2826
+ set get_inbox_ids(arg0) {
2827
+ wasm.__wbg_set_apistats_send_group_messages(this.__wbg_ptr, arg0);
2828
+ }
2829
+ /**
2830
+ * @returns {bigint}
2831
+ */
2832
+ get verify_smart_contract_wallet_signature() {
2833
+ const ret = wasm.__wbg_get_apistats_send_welcome_messages(this.__wbg_ptr);
2834
+ return BigInt.asUintN(64, ret);
2835
+ }
2836
+ /**
2837
+ * @param {bigint} arg0
2838
+ */
2839
+ set verify_smart_contract_wallet_signature(arg0) {
2840
+ wasm.__wbg_set_apistats_send_welcome_messages(this.__wbg_ptr, arg0);
2841
+ }
2842
+ }
2843
+
2607
2844
  const InboxStateFinalization = (typeof FinalizationRegistry === 'undefined')
2608
2845
  ? { register: () => {}, unregister: () => {} }
2609
2846
  : new FinalizationRegistry(ptr => wasm.__wbg_inboxstate_free(ptr >>> 0, 1));
@@ -2650,7 +2887,7 @@ export class InboxState {
2650
2887
  set inboxId(arg0) {
2651
2888
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2652
2889
  const len0 = WASM_VECTOR_LEN;
2653
- wasm.__wbg_set_consent_entity(this.__wbg_ptr, ptr0, len0);
2890
+ wasm.__wbg_set_inboxstate_inboxId(this.__wbg_ptr, ptr0, len0);
2654
2891
  }
2655
2892
  /**
2656
2893
  * @returns {Identifier}
@@ -3027,27 +3264,27 @@ export class Lifetime {
3027
3264
  * @returns {bigint}
3028
3265
  */
3029
3266
  get not_before() {
3030
- const ret = wasm.__wbg_get_lifetime_not_before(this.__wbg_ptr);
3267
+ const ret = wasm.__wbg_get_apistats_upload_key_package(this.__wbg_ptr);
3031
3268
  return BigInt.asUintN(64, ret);
3032
3269
  }
3033
3270
  /**
3034
3271
  * @param {bigint} arg0
3035
3272
  */
3036
3273
  set not_before(arg0) {
3037
- wasm.__wbg_set_lifetime_not_before(this.__wbg_ptr, arg0);
3274
+ wasm.__wbg_set_apistats_upload_key_package(this.__wbg_ptr, arg0);
3038
3275
  }
3039
3276
  /**
3040
3277
  * @returns {bigint}
3041
3278
  */
3042
3279
  get not_after() {
3043
- const ret = wasm.__wbg_get_lifetime_not_after(this.__wbg_ptr);
3280
+ const ret = wasm.__wbg_get_apistats_fetch_key_package(this.__wbg_ptr);
3044
3281
  return BigInt.asUintN(64, ret);
3045
3282
  }
3046
3283
  /**
3047
3284
  * @param {bigint} arg0
3048
3285
  */
3049
3286
  set not_after(arg0) {
3050
- wasm.__wbg_set_lifetime_not_after(this.__wbg_ptr, arg0);
3287
+ wasm.__wbg_set_apistats_fetch_key_package(this.__wbg_ptr, arg0);
3051
3288
  }
3052
3289
  }
3053
3290
 
@@ -4603,7 +4840,7 @@ function __wbg_get_imports() {
4603
4840
  const ret = Object.create(arg0);
4604
4841
  return ret;
4605
4842
  };
4606
- imports.wbg.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
4843
+ imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
4607
4844
  const ret = arg0.crypto;
4608
4845
  return ret;
4609
4846
  };
@@ -4653,24 +4890,6 @@ function __wbg_get_imports() {
4653
4890
  imports.wbg.__wbg_error_80de38b3f7cc3c3c = function(arg0, arg1, arg2, arg3) {
4654
4891
  console.error(arg0, arg1, arg2, arg3);
4655
4892
  };
4656
- imports.wbg.__wbg_every_44c3a06a12373d8d = function(arg0, arg1, arg2) {
4657
- try {
4658
- var state0 = {a: arg1, b: arg2};
4659
- var cb0 = (arg0, arg1, arg2) => {
4660
- const a = state0.a;
4661
- state0.a = 0;
4662
- try {
4663
- return __wbg_adapter_650(a, state0.b, arg0, arg1, arg2);
4664
- } finally {
4665
- state0.a = a;
4666
- }
4667
- };
4668
- const ret = arg0.every(cb0);
4669
- return ret;
4670
- } finally {
4671
- state0.a = state0.b = 0;
4672
- }
4673
- };
4674
4893
  imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
4675
4894
  const ret = arg0.fetch(arg1);
4676
4895
  return ret;
@@ -4683,24 +4902,6 @@ function __wbg_get_imports() {
4683
4902
  const ret = arg0.fill(arg1, arg2 >>> 0, arg3 >>> 0);
4684
4903
  return ret;
4685
4904
  };
4686
- imports.wbg.__wbg_findIndex_3e4f86a66183a36b = function(arg0, arg1, arg2) {
4687
- try {
4688
- var state0 = {a: arg1, b: arg2};
4689
- var cb0 = (arg0, arg1, arg2) => {
4690
- const a = state0.a;
4691
- state0.a = 0;
4692
- try {
4693
- return __wbg_adapter_650(a, state0.b, arg0, arg1, arg2);
4694
- } finally {
4695
- state0.a = a;
4696
- }
4697
- };
4698
- const ret = arg0.findIndex(cb0);
4699
- return ret;
4700
- } finally {
4701
- state0.a = state0.b = 0;
4702
- }
4703
- };
4704
4905
  imports.wbg.__wbg_flush_1a680a66b21c53d7 = function() { return handleError(function (arg0) {
4705
4906
  arg0.flush();
4706
4907
  }, arguments) };
@@ -4744,10 +4945,13 @@ function __wbg_get_imports() {
4744
4945
  const ret = arg0.getMonth();
4745
4946
  return ret;
4746
4947
  };
4747
- imports.wbg.__wbg_getRandomValues_21a0191e74d0e1d3 = function() { return handleError(function (arg0, arg1) {
4948
+ imports.wbg.__wbg_getRandomValues_3c9c0d586e575a16 = function() { return handleError(function (arg0, arg1) {
4949
+ globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
4950
+ }, arguments) };
4951
+ imports.wbg.__wbg_getRandomValues_9cf8a9a052847419 = function() { return handleError(function (arg0, arg1) {
4748
4952
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
4749
4953
  }, arguments) };
4750
- imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
4954
+ imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
4751
4955
  arg0.getRandomValues(arg1);
4752
4956
  }, arguments) };
4753
4957
  imports.wbg.__wbg_getReader_48e00749fe3f6089 = function() { return handleError(function (arg0) {
@@ -4794,10 +4998,6 @@ function __wbg_get_imports() {
4794
4998
  const ret = arg0[arg1 >>> 0];
4795
4999
  return ret;
4796
5000
  };
4797
- imports.wbg.__wbg_getindex_d332410fbea81873 = function(arg0, arg1) {
4798
- const ret = arg0[arg1 >>> 0];
4799
- return ret;
4800
- };
4801
5001
  imports.wbg.__wbg_getvalue_009dcd63692bee1f = function(arg0) {
4802
5002
  const ret = arg0.value;
4803
5003
  return ret;
@@ -4880,26 +5080,6 @@ function __wbg_get_imports() {
4880
5080
  const ret = result;
4881
5081
  return ret;
4882
5082
  };
4883
- imports.wbg.__wbg_instanceof_ServiceWorkerGlobalScope_9662fcbac1190e8b = function(arg0) {
4884
- let result;
4885
- try {
4886
- result = arg0 instanceof ServiceWorkerGlobalScope;
4887
- } catch (_) {
4888
- result = false;
4889
- }
4890
- const ret = result;
4891
- return ret;
4892
- };
4893
- imports.wbg.__wbg_instanceof_SharedWorkerGlobalScope_1796b9b4c3344538 = function(arg0) {
4894
- let result;
4895
- try {
4896
- result = arg0 instanceof SharedWorkerGlobalScope;
4897
- } catch (_) {
4898
- result = false;
4899
- }
4900
- const ret = result;
4901
- return ret;
4902
- };
4903
5083
  imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
4904
5084
  let result;
4905
5085
  try {
@@ -4910,16 +5090,6 @@ function __wbg_get_imports() {
4910
5090
  const ret = result;
4911
5091
  return ret;
4912
5092
  };
4913
- imports.wbg.__wbg_instanceof_Window_def73ea0955fc569 = function(arg0) {
4914
- let result;
4915
- try {
4916
- result = arg0 instanceof Window;
4917
- } catch (_) {
4918
- result = false;
4919
- }
4920
- const ret = result;
4921
- return ret;
4922
- };
4923
5093
  imports.wbg.__wbg_instanceof_WorkerGlobalScope_dbdbdea7e3b56493 = function(arg0) {
4924
5094
  let result;
4925
5095
  try {
@@ -4985,7 +5155,7 @@ function __wbg_get_imports() {
4985
5155
  const ret = MessageWithReactions.__wrap(arg0);
4986
5156
  return ret;
4987
5157
  };
4988
- imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
5158
+ imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
4989
5159
  const ret = arg0.msCrypto;
4990
5160
  return ret;
4991
5161
  };
@@ -5015,7 +5185,7 @@ function __wbg_get_imports() {
5015
5185
  const a = state0.a;
5016
5186
  state0.a = 0;
5017
5187
  try {
5018
- return __wbg_adapter_751(a, state0.b, arg0, arg1);
5188
+ return __wbg_adapter_769(a, state0.b, arg0, arg1);
5019
5189
  } finally {
5020
5190
  state0.a = a;
5021
5191
  }
@@ -5082,10 +5252,6 @@ function __wbg_get_imports() {
5082
5252
  const ret = new Uint8Array(arg0 >>> 0);
5083
5253
  return ret;
5084
5254
  };
5085
- imports.wbg.__wbg_newwithlength_bd3de93688d68fbc = function(arg0) {
5086
- const ret = new Uint32Array(arg0 >>> 0);
5087
- return ret;
5088
- };
5089
5255
  imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635 = function() { return handleError(function (arg0, arg1, arg2) {
5090
5256
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
5091
5257
  return ret;
@@ -5106,7 +5272,7 @@ function __wbg_get_imports() {
5106
5272
  const ret = arg0.next();
5107
5273
  return ret;
5108
5274
  }, arguments) };
5109
- imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
5275
+ imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
5110
5276
  const ret = arg0.node;
5111
5277
  return ret;
5112
5278
  };
@@ -5122,19 +5288,24 @@ function __wbg_get_imports() {
5122
5288
  const ret = arg0.now();
5123
5289
  return ret;
5124
5290
  };
5125
- imports.wbg.__wbg_onconsentupdate_54b67b0fd155194a = function(arg0, arg1) {
5291
+ imports.wbg.__wbg_now_ffb89993ffe8c9e9 = function(arg0) {
5292
+ const ret = globalThis.performance.now();
5293
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
5294
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
5295
+ };
5296
+ imports.wbg.__wbg_onconsentupdate_193b14492b52142c = function(arg0, arg1) {
5126
5297
  arg0.on_consent_update(arg1);
5127
5298
  };
5128
- imports.wbg.__wbg_onconversation_9e5e519465264aba = function(arg0, arg1) {
5299
+ imports.wbg.__wbg_onconversation_1d74490e1cc36d80 = function(arg0, arg1) {
5129
5300
  arg0.on_conversation(Conversation.__wrap(arg1));
5130
5301
  };
5131
- imports.wbg.__wbg_onerror_f6bdb41a50104955 = function(arg0, arg1) {
5302
+ imports.wbg.__wbg_onerror_a0888ebf5d23935e = function(arg0, arg1) {
5132
5303
  arg0.on_error(arg1);
5133
5304
  };
5134
- imports.wbg.__wbg_onmessage_048799d39150b7df = function(arg0, arg1) {
5305
+ imports.wbg.__wbg_onmessage_f5d1d3291e0d88ff = function(arg0, arg1) {
5135
5306
  arg0.on_message(Message.__wrap(arg1));
5136
5307
  };
5137
- imports.wbg.__wbg_onuserpreferenceupdate_198647719323549b = function(arg0, arg1, arg2) {
5308
+ imports.wbg.__wbg_onuserpreferenceupdate_96b91896ba172798 = function(arg0, arg1, arg2) {
5138
5309
  var v0 = getArrayJsValueFromWasm0(arg1, arg2).slice();
5139
5310
  wasm.__wbindgen_free(arg1, arg2 * 4, 4);
5140
5311
  arg0.on_user_preference_update(v0);
@@ -5150,19 +5321,11 @@ function __wbg_get_imports() {
5150
5321
  const ret = globalThis.performance;
5151
5322
  return ret;
5152
5323
  };
5153
- imports.wbg.__wbg_performance_704644393c4d3310 = function(arg0) {
5154
- const ret = arg0.performance;
5155
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
5156
- };
5157
5324
  imports.wbg.__wbg_performance_7a3ffd0b17f663ad = function(arg0) {
5158
5325
  const ret = arg0.performance;
5159
5326
  return ret;
5160
5327
  };
5161
- imports.wbg.__wbg_performance_c185c0cdc2766575 = function(arg0) {
5162
- const ret = arg0.performance;
5163
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
5164
- };
5165
- imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
5328
+ imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
5166
5329
  const ret = arg0.process;
5167
5330
  return ret;
5168
5331
  };
@@ -5177,7 +5340,7 @@ function __wbg_get_imports() {
5177
5340
  const ret = arg0.queueMicrotask;
5178
5341
  return ret;
5179
5342
  };
5180
- imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
5343
+ imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
5181
5344
  arg0.randomFillSync(arg1);
5182
5345
  }, arguments) };
5183
5346
  imports.wbg.__wbg_random_3ad904d98382defe = function() {
@@ -5211,7 +5374,7 @@ function __wbg_get_imports() {
5211
5374
  const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2));
5212
5375
  return ret;
5213
5376
  };
5214
- imports.wbg.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
5377
+ imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
5215
5378
  const ret = module.require;
5216
5379
  return ret;
5217
5380
  }, arguments) };
@@ -5276,12 +5439,6 @@ function __wbg_get_imports() {
5276
5439
  imports.wbg.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
5277
5440
  arg0.headers = arg1;
5278
5441
  };
5279
- imports.wbg.__wbg_setindex_c430b78b97744fcc = function(arg0, arg1, arg2) {
5280
- arg0[arg1 >>> 0] = arg2 >>> 0;
5281
- };
5282
- imports.wbg.__wbg_setindex_dcd71eabf405bde1 = function(arg0, arg1, arg2) {
5283
- arg0[arg1 >>> 0] = arg2;
5284
- };
5285
5442
  imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
5286
5443
  arg0.method = getStringFromWasm0(arg1, arg2);
5287
5444
  };
@@ -5354,10 +5511,16 @@ function __wbg_get_imports() {
5354
5511
  const ret = arg0.then(arg1, arg2);
5355
5512
  return ret;
5356
5513
  };
5514
+ imports.wbg.__wbg_toSlice_543b72cb118ed345 = function(arg0, arg1, arg2, arg3) {
5515
+ JSUtils.toSlice(arg0, arg1, arg2 >>> 0, arg3 >>> 0);
5516
+ };
5357
5517
  imports.wbg.__wbg_toString_ba82658ec370add0 = function() { return handleError(function (arg0, arg1) {
5358
5518
  const ret = arg0.toString(arg1);
5359
5519
  return ret;
5360
5520
  }, arguments) };
5521
+ imports.wbg.__wbg_toUint8Array_ee685a679892191f = function(arg0, arg1, arg2, arg3) {
5522
+ JSUtils.toUint8Array(arg0, arg1 >>> 0, arg2 >>> 0, arg3);
5523
+ };
5361
5524
  imports.wbg.__wbg_truncate_29261a6365c72b01 = function() { return handleError(function (arg0, arg1) {
5362
5525
  arg0.truncate(arg1 >>> 0);
5363
5526
  }, arguments) };
@@ -5375,7 +5538,7 @@ function __wbg_get_imports() {
5375
5538
  const ret = arg0.value;
5376
5539
  return ret;
5377
5540
  };
5378
- imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
5541
+ imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
5379
5542
  const ret = arg0.versions;
5380
5543
  return ret;
5381
5544
  };
@@ -5389,10 +5552,6 @@ function __wbg_get_imports() {
5389
5552
  imports.wbg.__wbg_warn_aaf1f4664a035bd6 = function(arg0, arg1, arg2, arg3) {
5390
5553
  console.warn(arg0, arg1, arg2, arg3);
5391
5554
  };
5392
- imports.wbg.__wbg_write_1d776df9041838cf = function() { return handleError(function (arg0, arg1, arg2) {
5393
- const ret = arg0.write(arg1, arg2);
5394
- return ret;
5395
- }, arguments) };
5396
5555
  imports.wbg.__wbg_write_530d3c84df874f53 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
5397
5556
  const ret = arg0.write(getArrayU8FromWasm0(arg1, arg2), arg3);
5398
5557
  return ret;
@@ -5430,20 +5589,20 @@ function __wbg_get_imports() {
5430
5589
  const ret = false;
5431
5590
  return ret;
5432
5591
  };
5433
- imports.wbg.__wbindgen_closure_wrapper17242 = function(arg0, arg1, arg2) {
5434
- const ret = makeMutClosure(arg0, arg1, 4101, __wbg_adapter_50);
5592
+ imports.wbg.__wbindgen_closure_wrapper16397 = function(arg0, arg1, arg2) {
5593
+ const ret = makeMutClosure(arg0, arg1, 4087, __wbg_adapter_50);
5435
5594
  return ret;
5436
5595
  };
5437
- imports.wbg.__wbindgen_closure_wrapper17286 = function(arg0, arg1, arg2) {
5438
- const ret = makeMutClosure(arg0, arg1, 4111, __wbg_adapter_53);
5596
+ imports.wbg.__wbindgen_closure_wrapper16539 = function(arg0, arg1, arg2) {
5597
+ const ret = makeMutClosure(arg0, arg1, 4141, __wbg_adapter_53);
5439
5598
  return ret;
5440
5599
  };
5441
- imports.wbg.__wbindgen_closure_wrapper20508 = function(arg0, arg1, arg2) {
5442
- const ret = makeMutClosure(arg0, arg1, 4468, __wbg_adapter_56);
5600
+ imports.wbg.__wbindgen_closure_wrapper19638 = function(arg0, arg1, arg2) {
5601
+ const ret = makeMutClosure(arg0, arg1, 4445, __wbg_adapter_56);
5443
5602
  return ret;
5444
5603
  };
5445
- imports.wbg.__wbindgen_closure_wrapper20629 = function(arg0, arg1, arg2) {
5446
- const ret = makeMutClosure(arg0, arg1, 4482, __wbg_adapter_59);
5604
+ imports.wbg.__wbindgen_closure_wrapper19746 = function(arg0, arg1, arg2) {
5605
+ const ret = makeMutClosure(arg0, arg1, 4454, __wbg_adapter_59);
5447
5606
  return ret;
5448
5607
  };
5449
5608
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {