@wireapp/core-crypto 1.0.0-rc.36 → 1.0.0-rc.37

Sign up to get free protection for your applications and to get access to all the features.
@@ -57,6 +57,7 @@ var passStringToWasm0 = function(arg, malloc, realloc) {
57
57
  const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
58
58
  const ret = encodeString(arg, view);
59
59
  offset += ret.written;
60
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
60
61
  }
61
62
  WASM_VECTOR_LEN = offset;
62
63
  return ptr;
@@ -148,21 +149,23 @@ var makeMutClosure = function(arg0, arg1, dtor, f) {
148
149
  } finally {
149
150
  if (--state.cnt === 0) {
150
151
  wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
152
+ CLOSURE_DTORS.unregister(state);
151
153
  } else {
152
154
  state.a = a;
153
155
  }
154
156
  }
155
157
  };
156
158
  real.original = state;
159
+ CLOSURE_DTORS.register(real, state, state);
157
160
  return real;
158
161
  };
159
162
  var __wbg_adapter_54 = function(arg0, arg1, arg2) {
160
- wasm.wasm_bindgen__convert__closures__invoke1_mut__h8ded8986a22d6b2f(arg0, arg1, addHeapObject(arg2));
163
+ wasm.wasm_bindgen__convert__closures__invoke1_mut__h1355a643cca522f3(arg0, arg1, addHeapObject(arg2));
161
164
  };
162
165
  var __wbg_adapter_57 = function(arg0, arg1, arg2) {
163
166
  try {
164
167
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
165
- wasm.wasm_bindgen__convert__closures__invoke1_mut__h33e0efc6cd1bb42c(retptr, arg0, arg1, addHeapObject(arg2));
168
+ wasm.wasm_bindgen__convert__closures__invoke1_mut__h1d0caafd6e7f792a(retptr, arg0, arg1, addHeapObject(arg2));
166
169
  var r0 = getInt32Memory0()[retptr / 4 + 0];
167
170
  var r1 = getInt32Memory0()[retptr / 4 + 1];
168
171
  if (r1) {
@@ -233,7 +236,7 @@ var handleError = function(f, args) {
233
236
  }
234
237
  };
235
238
  var __wbg_adapter_417 = function(arg0, arg1, arg2, arg3) {
236
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h639173e274a4a014(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
239
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h74bc542a539f879a(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
237
240
  };
238
241
  async function __wbg_load(module, imports) {
239
242
  if (typeof Response === "function" && module instanceof Response) {
@@ -262,43 +265,43 @@ async function __wbg_load(module, imports) {
262
265
  var __wbg_get_imports = function() {
263
266
  const imports = {};
264
267
  imports.wbg = {};
265
- imports.wbg.__wbg_commitbundle_new = function(arg0) {
266
- const ret = CommitBundle.__wrap(arg0);
267
- return addHeapObject(ret);
268
- };
269
- imports.wbg.__wbg_acmedirectory_new = function(arg0) {
270
- const ret = AcmeDirectory.__wrap(arg0);
271
- return addHeapObject(ret);
272
- };
273
268
  imports.wbg.__wbg_corecrypto_new = function(arg0) {
274
269
  const ret = CoreCrypto.__wrap(arg0);
275
270
  return addHeapObject(ret);
276
271
  };
277
- imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
278
- const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
272
+ imports.wbg.__wbindgen_number_new = function(arg0) {
273
+ const ret = arg0;
279
274
  return addHeapObject(ret);
280
275
  };
281
- imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
282
- const ret = FfiWireE2EIdentity.__wrap(arg0);
283
- return addHeapObject(ret);
276
+ imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
277
+ takeObject(arg0);
284
278
  };
285
- imports.wbg.__wbindgen_number_new = function(arg0) {
286
- const ret = arg0;
279
+ imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
280
+ const ret = NewAcmeAuthz.__wrap(arg0);
287
281
  return addHeapObject(ret);
288
282
  };
289
283
  imports.wbg.__wbg_proposalbundle_new = function(arg0) {
290
284
  const ret = ProposalBundle.__wrap(arg0);
291
285
  return addHeapObject(ret);
292
286
  };
293
- imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
294
- takeObject(arg0);
287
+ imports.wbg.__wbg_commitbundle_new = function(arg0) {
288
+ const ret = CommitBundle.__wrap(arg0);
289
+ return addHeapObject(ret);
290
+ };
291
+ imports.wbg.__wbg_acmedirectory_new = function(arg0) {
292
+ const ret = AcmeDirectory.__wrap(arg0);
293
+ return addHeapObject(ret);
295
294
  };
296
295
  imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
297
296
  const ret = BufferedDecryptedMessage.__wrap(arg0);
298
297
  return addHeapObject(ret);
299
298
  };
300
- imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
301
- const ret = NewAcmeAuthz.__wrap(arg0);
299
+ imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
300
+ const ret = FfiWireE2EIdentity.__wrap(arg0);
301
+ return addHeapObject(ret);
302
+ };
303
+ imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
304
+ const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
302
305
  return addHeapObject(ret);
303
306
  };
304
307
  imports.wbg.__wbg_newacmeorder_new = function(arg0) {
@@ -309,6 +312,10 @@ var __wbg_get_imports = function() {
309
312
  const ret = getObject(arg0);
310
313
  return addHeapObject(ret);
311
314
  };
315
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
316
+ const ret = BigInt.asUintN(64, arg0);
317
+ return addHeapObject(ret);
318
+ };
312
319
  imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
313
320
  const ret = getStringFromWasm0(arg0, arg1);
314
321
  return addHeapObject(ret);
@@ -321,10 +328,6 @@ var __wbg_get_imports = function() {
321
328
  const ret = getObject(arg0) === null;
322
329
  return ret;
323
330
  };
324
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
325
- const ret = BigInt.asUintN(64, arg0);
326
- return addHeapObject(ret);
327
- };
328
331
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
329
332
  const obj = getObject(arg1);
330
333
  const ret = typeof obj === "string" ? obj : undefined;
@@ -365,7 +368,7 @@ var __wbg_get_imports = function() {
365
368
  const ret = getObject(arg0) in getObject(arg1);
366
369
  return ret;
367
370
  };
368
- imports.wbg.__wbg_queueMicrotask_26a89c14c53809c0 = function(arg0) {
371
+ imports.wbg.__wbg_queueMicrotask_f82fc5d1e8f816ae = function(arg0) {
369
372
  const ret = getObject(arg0).queueMicrotask;
370
373
  return addHeapObject(ret);
371
374
  };
@@ -382,10 +385,10 @@ var __wbg_get_imports = function() {
382
385
  const ret = false;
383
386
  return ret;
384
387
  };
385
- imports.wbg.__wbg_queueMicrotask_118eeb525d584d9a = function(arg0) {
388
+ imports.wbg.__wbg_queueMicrotask_f61ee94ee663068b = function(arg0) {
386
389
  queueMicrotask(getObject(arg0));
387
390
  };
388
- imports.wbg.__wbg_now_0343d9c3e0e8eedc = function() {
391
+ imports.wbg.__wbg_now_1be9a41d0832ae2d = function() {
389
392
  const ret = Date.now();
390
393
  return ret;
391
394
  };
@@ -441,79 +444,79 @@ var __wbg_get_imports = function() {
441
444
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
442
445
  }
443
446
  };
444
- imports.wbg.__wbg_length_8df427eeded90205 = function(arg0) {
447
+ imports.wbg.__wbg_length_f4c93968efbcbe64 = function(arg0) {
445
448
  const ret = getObject(arg0).length;
446
449
  return ret;
447
450
  };
448
- imports.wbg.__wbg_contains_7a87af89c3705616 = function(arg0, arg1, arg2) {
451
+ imports.wbg.__wbg_contains_387aaee89de6826b = function(arg0, arg1, arg2) {
449
452
  const ret = getObject(arg0).contains(getStringFromWasm0(arg1, arg2));
450
453
  return ret;
451
454
  };
452
- imports.wbg.__wbg_get_6de6fdeef4691e1a = function(arg0, arg1, arg2) {
455
+ imports.wbg.__wbg_get_de1356a147af67e3 = function(arg0, arg1, arg2) {
453
456
  const ret = getObject(arg1)[arg2 >>> 0];
454
457
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
455
458
  var len1 = WASM_VECTOR_LEN;
456
459
  getInt32Memory0()[arg0 / 4 + 1] = len1;
457
460
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
458
461
  };
459
- imports.wbg.__wbg_target_791826e938c3e308 = function(arg0) {
462
+ imports.wbg.__wbg_target_6795373f170fd786 = function(arg0) {
460
463
  const ret = getObject(arg0).target;
461
464
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
462
465
  };
463
- imports.wbg.__wbg_key_37c38754953d9548 = function() {
466
+ imports.wbg.__wbg_key_ef58c847107973b5 = function() {
464
467
  return handleError(function(arg0) {
465
468
  const ret = getObject(arg0).key;
466
469
  return addHeapObject(ret);
467
470
  }, arguments);
468
471
  };
469
- imports.wbg.__wbg_advance_91191c6e755be0cf = function() {
472
+ imports.wbg.__wbg_advance_b4757fc0d86c7f4b = function() {
470
473
  return handleError(function(arg0, arg1) {
471
474
  getObject(arg0).advance(arg1 >>> 0);
472
475
  }, arguments);
473
476
  };
474
- imports.wbg.__wbg_continue_dc63786eb32e68f4 = function() {
477
+ imports.wbg.__wbg_continue_e476fb4cd4175cd3 = function() {
475
478
  return handleError(function(arg0) {
476
479
  getObject(arg0).continue();
477
480
  }, arguments);
478
481
  };
479
- imports.wbg.__wbg_value_2423cc2503742f59 = function() {
482
+ imports.wbg.__wbg_value_4eacb3e8dab4ab94 = function() {
480
483
  return handleError(function(arg0) {
481
484
  const ret = getObject(arg0).value;
482
485
  return addHeapObject(ret);
483
486
  }, arguments);
484
487
  };
485
- imports.wbg.__wbg_name_19991fc9d5bba34b = function(arg0, arg1) {
488
+ imports.wbg.__wbg_name_13a3ac72fdecd556 = function(arg0, arg1) {
486
489
  const ret = getObject(arg1).name;
487
490
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
488
491
  const len1 = WASM_VECTOR_LEN;
489
492
  getInt32Memory0()[arg0 / 4 + 1] = len1;
490
493
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
491
494
  };
492
- imports.wbg.__wbg_objectStoreNames_39d5d8ff165673c0 = function(arg0) {
495
+ imports.wbg.__wbg_objectStoreNames_2ecdd48caeba004f = function(arg0) {
493
496
  const ret = getObject(arg0).objectStoreNames;
494
497
  return addHeapObject(ret);
495
498
  };
496
- imports.wbg.__wbg_close_acce9432a5e50b56 = function(arg0) {
499
+ imports.wbg.__wbg_close_575a78984a58eb91 = function(arg0) {
497
500
  getObject(arg0).close();
498
501
  };
499
- imports.wbg.__wbg_createObjectStore_3e6033d951d4d4e3 = function() {
502
+ imports.wbg.__wbg_createObjectStore_b94c8c593fd6d249 = function() {
500
503
  return handleError(function(arg0, arg1, arg2, arg3) {
501
504
  const ret = getObject(arg0).createObjectStore(getStringFromWasm0(arg1, arg2), getObject(arg3));
502
505
  return addHeapObject(ret);
503
506
  }, arguments);
504
507
  };
505
- imports.wbg.__wbg_deleteObjectStore_5e4d5099dfc2a4dd = function() {
508
+ imports.wbg.__wbg_deleteObjectStore_a858b88892001cfb = function() {
506
509
  return handleError(function(arg0, arg1, arg2) {
507
510
  getObject(arg0).deleteObjectStore(getStringFromWasm0(arg1, arg2));
508
511
  }, arguments);
509
512
  };
510
- imports.wbg.__wbg_transaction_f3434456de85f902 = function() {
513
+ imports.wbg.__wbg_transaction_b46588e9ee3c2219 = function() {
511
514
  return handleError(function(arg0, arg1, arg2) {
512
515
  const ret = getObject(arg0).transaction(getObject(arg1), takeObject(arg2));
513
516
  return addHeapObject(ret);
514
517
  }, arguments);
515
518
  };
516
- imports.wbg.__wbg_instanceof_IdbFactory_44ad7bf9d2432630 = function(arg0) {
519
+ imports.wbg.__wbg_instanceof_IdbFactory_ce39c85191908177 = function(arg0) {
517
520
  let result;
518
521
  try {
519
522
  result = getObject(arg0) instanceof IDBFactory;
@@ -523,137 +526,137 @@ var __wbg_get_imports = function() {
523
526
  const ret = result;
524
527
  return ret;
525
528
  };
526
- imports.wbg.__wbg_deleteDatabase_4d9345751592d548 = function() {
529
+ imports.wbg.__wbg_deleteDatabase_124fead5afde1fd0 = function() {
527
530
  return handleError(function(arg0, arg1, arg2) {
528
531
  const ret = getObject(arg0).deleteDatabase(getStringFromWasm0(arg1, arg2));
529
532
  return addHeapObject(ret);
530
533
  }, arguments);
531
534
  };
532
- imports.wbg.__wbg_open_67f43f98b0470c36 = function() {
535
+ imports.wbg.__wbg_open_e75f6c89e35c2edf = function() {
533
536
  return handleError(function(arg0, arg1, arg2, arg3) {
534
537
  const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
535
538
  return addHeapObject(ret);
536
539
  }, arguments);
537
540
  };
538
- imports.wbg.__wbg_open_fdc86a2e78792175 = function() {
541
+ imports.wbg.__wbg_open_dda0623a9d03ec08 = function() {
539
542
  return handleError(function(arg0, arg1, arg2) {
540
543
  const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2));
541
544
  return addHeapObject(ret);
542
545
  }, arguments);
543
546
  };
544
- imports.wbg.__wbg_get_5a53f1db2e1f849e = function() {
547
+ imports.wbg.__wbg_get_037ff0e861f69036 = function() {
545
548
  return handleError(function(arg0, arg1) {
546
549
  const ret = getObject(arg0).get(getObject(arg1));
547
550
  return addHeapObject(ret);
548
551
  }, arguments);
549
552
  };
550
- imports.wbg.__wbg_indexNames_46f7cbd210ff2316 = function(arg0) {
553
+ imports.wbg.__wbg_indexNames_8bd628ce8dc4bc30 = function(arg0) {
551
554
  const ret = getObject(arg0).indexNames;
552
555
  return addHeapObject(ret);
553
556
  };
554
- imports.wbg.__wbg_count_e8ca9e4c26c83124 = function() {
557
+ imports.wbg.__wbg_count_98c737963cf15417 = function() {
555
558
  return handleError(function(arg0) {
556
559
  const ret = getObject(arg0).count();
557
560
  return addHeapObject(ret);
558
561
  }, arguments);
559
562
  };
560
- imports.wbg.__wbg_count_b52f69a5b1f2c70c = function() {
563
+ imports.wbg.__wbg_count_1b9644db007fb2f7 = function() {
561
564
  return handleError(function(arg0, arg1) {
562
565
  const ret = getObject(arg0).count(getObject(arg1));
563
566
  return addHeapObject(ret);
564
567
  }, arguments);
565
568
  };
566
- imports.wbg.__wbg_createIndex_224ae7381d3b4bfd = function() {
569
+ imports.wbg.__wbg_createIndex_2b4d8db40f62b4a6 = function() {
567
570
  return handleError(function(arg0, arg1, arg2, arg3, arg4) {
568
571
  const ret = getObject(arg0).createIndex(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
569
572
  return addHeapObject(ret);
570
573
  }, arguments);
571
574
  };
572
- imports.wbg.__wbg_delete_a1548c00f44e1608 = function() {
575
+ imports.wbg.__wbg_delete_e7f0bdfa8e9100d2 = function() {
573
576
  return handleError(function(arg0, arg1) {
574
577
  const ret = getObject(arg0).delete(getObject(arg1));
575
578
  return addHeapObject(ret);
576
579
  }, arguments);
577
580
  };
578
- imports.wbg.__wbg_deleteIndex_c9c7ce8f15358d94 = function() {
581
+ imports.wbg.__wbg_deleteIndex_99e3acff010af182 = function() {
579
582
  return handleError(function(arg0, arg1, arg2) {
580
583
  getObject(arg0).deleteIndex(getStringFromWasm0(arg1, arg2));
581
584
  }, arguments);
582
585
  };
583
- imports.wbg.__wbg_get_f477c47401497f39 = function() {
586
+ imports.wbg.__wbg_get_a511742412eef1ff = function() {
584
587
  return handleError(function(arg0, arg1) {
585
588
  const ret = getObject(arg0).get(getObject(arg1));
586
589
  return addHeapObject(ret);
587
590
  }, arguments);
588
591
  };
589
- imports.wbg.__wbg_index_467316d1b83c23e0 = function() {
592
+ imports.wbg.__wbg_index_494185b56c74838e = function() {
590
593
  return handleError(function(arg0, arg1, arg2) {
591
594
  const ret = getObject(arg0).index(getStringFromWasm0(arg1, arg2));
592
595
  return addHeapObject(ret);
593
596
  }, arguments);
594
597
  };
595
- imports.wbg.__wbg_openCursor_f22aef1cc12ac4f8 = function() {
598
+ imports.wbg.__wbg_openCursor_c1242c19f36e0ef0 = function() {
596
599
  return handleError(function(arg0) {
597
600
  const ret = getObject(arg0).openCursor();
598
601
  return addHeapObject(ret);
599
602
  }, arguments);
600
603
  };
601
- imports.wbg.__wbg_openCursor_dfd216338fea9811 = function() {
604
+ imports.wbg.__wbg_openCursor_0f263b5636e9470e = function() {
602
605
  return handleError(function(arg0, arg1) {
603
606
  const ret = getObject(arg0).openCursor(getObject(arg1));
604
607
  return addHeapObject(ret);
605
608
  }, arguments);
606
609
  };
607
- imports.wbg.__wbg_openCursor_d0e99645eacfd500 = function() {
610
+ imports.wbg.__wbg_openCursor_569fe4858ad7ccb2 = function() {
608
611
  return handleError(function(arg0, arg1, arg2) {
609
612
  const ret = getObject(arg0).openCursor(getObject(arg1), takeObject(arg2));
610
613
  return addHeapObject(ret);
611
614
  }, arguments);
612
615
  };
613
- imports.wbg.__wbg_put_39d210624272c87d = function() {
616
+ imports.wbg.__wbg_put_9806ff25ff20486b = function() {
614
617
  return handleError(function(arg0, arg1) {
615
618
  const ret = getObject(arg0).put(getObject(arg1));
616
619
  return addHeapObject(ret);
617
620
  }, arguments);
618
621
  };
619
- imports.wbg.__wbg_put_d0c11cfda402797f = function() {
622
+ imports.wbg.__wbg_put_f5ab898915aa0ec4 = function() {
620
623
  return handleError(function(arg0, arg1, arg2) {
621
624
  const ret = getObject(arg0).put(getObject(arg1), getObject(arg2));
622
625
  return addHeapObject(ret);
623
626
  }, arguments);
624
627
  };
625
- imports.wbg.__wbg_setonupgradeneeded_ebb6b49da07ef076 = function(arg0, arg1) {
628
+ imports.wbg.__wbg_setonupgradeneeded_704b0c0061756fd9 = function(arg0, arg1) {
626
629
  getObject(arg0).onupgradeneeded = getObject(arg1);
627
630
  };
628
- imports.wbg.__wbg_result_43945900200dc972 = function() {
631
+ imports.wbg.__wbg_result_43ea35e72f0fa7c7 = function() {
629
632
  return handleError(function(arg0) {
630
633
  const ret = getObject(arg0).result;
631
634
  return addHeapObject(ret);
632
635
  }, arguments);
633
636
  };
634
- imports.wbg.__wbg_error_ebceed2ec415ded1 = function() {
637
+ imports.wbg.__wbg_error_180ee1f6d813554e = function() {
635
638
  return handleError(function(arg0) {
636
639
  const ret = getObject(arg0).error;
637
640
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
638
641
  }, arguments);
639
642
  };
640
- imports.wbg.__wbg_transaction_e0b73c5d10b37756 = function(arg0) {
643
+ imports.wbg.__wbg_transaction_75ade65c1c881217 = function(arg0) {
641
644
  const ret = getObject(arg0).transaction;
642
645
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
643
646
  };
644
- imports.wbg.__wbg_setonsuccess_8c53d1b7e13c41e5 = function(arg0, arg1) {
647
+ imports.wbg.__wbg_setonsuccess_07be5f02db609d40 = function(arg0, arg1) {
645
648
  getObject(arg0).onsuccess = getObject(arg1);
646
649
  };
647
- imports.wbg.__wbg_setonerror_39dab75ef2d606f0 = function(arg0, arg1) {
650
+ imports.wbg.__wbg_setonerror_4042c0d324fafcf9 = function(arg0, arg1) {
648
651
  getObject(arg0).onerror = getObject(arg1);
649
652
  };
650
- imports.wbg.__wbg_objectStore_fe6c5364a54fc56a = function() {
653
+ imports.wbg.__wbg_objectStore_402a3923882f9f3f = function() {
651
654
  return handleError(function(arg0, arg1, arg2) {
652
655
  const ret = getObject(arg0).objectStore(getStringFromWasm0(arg1, arg2));
653
656
  return addHeapObject(ret);
654
657
  }, arguments);
655
658
  };
656
- imports.wbg.__wbg_warn_0e0204547af47087 = function(arg0) {
659
+ imports.wbg.__wbg_warn_2a68e3ab54e55f28 = function(arg0) {
657
660
  console.warn(getObject(arg0));
658
661
  };
659
662
  imports.wbg.__wbg_crypto_d05b68a3572bb8ca = function(arg0) {
@@ -696,104 +699,104 @@ var __wbg_get_imports = function() {
696
699
  getObject(arg0).getRandomValues(getObject(arg1));
697
700
  }, arguments);
698
701
  };
699
- imports.wbg.__wbg_self_086b5302bcafb962 = function() {
702
+ imports.wbg.__wbg_self_05040bd9523805b9 = function() {
700
703
  return handleError(function() {
701
704
  const ret = self.self;
702
705
  return addHeapObject(ret);
703
706
  }, arguments);
704
707
  };
705
- imports.wbg.__wbg_window_132fa5d7546f1de5 = function() {
708
+ imports.wbg.__wbg_window_adc720039f2cb14f = function() {
706
709
  return handleError(function() {
707
710
  const ret = window.window;
708
711
  return addHeapObject(ret);
709
712
  }, arguments);
710
713
  };
711
- imports.wbg.__wbg_globalThis_e5f801a37ad7d07b = function() {
714
+ imports.wbg.__wbg_globalThis_622105db80c1457d = function() {
712
715
  return handleError(function() {
713
716
  const ret = globalThis.globalThis;
714
717
  return addHeapObject(ret);
715
718
  }, arguments);
716
719
  };
717
- imports.wbg.__wbg_global_f9a61fce4af6b7c1 = function() {
720
+ imports.wbg.__wbg_global_f56b013ed9bcf359 = function() {
718
721
  return handleError(function() {
719
722
  const ret = global.global;
720
723
  return addHeapObject(ret);
721
724
  }, arguments);
722
725
  };
723
- imports.wbg.__wbg_newnoargs_5859b6d41c6fe9f7 = function(arg0, arg1) {
726
+ imports.wbg.__wbg_newnoargs_cfecb3965268594c = function(arg0, arg1) {
724
727
  const ret = new Function(getStringFromWasm0(arg0, arg1));
725
728
  return addHeapObject(ret);
726
729
  };
727
- imports.wbg.__wbg_call_a79f1973a4f07d5e = function() {
730
+ imports.wbg.__wbg_call_3f093dd26d5569f8 = function() {
728
731
  return handleError(function(arg0, arg1) {
729
732
  const ret = getObject(arg0).call(getObject(arg1));
730
733
  return addHeapObject(ret);
731
734
  }, arguments);
732
735
  };
733
- imports.wbg.__wbg_get_c43534c00f382c8a = function(arg0, arg1) {
736
+ imports.wbg.__wbg_get_0ee8ea3c7c984c45 = function(arg0, arg1) {
734
737
  const ret = getObject(arg0)[arg1 >>> 0];
735
738
  return addHeapObject(ret);
736
739
  };
737
- imports.wbg.__wbg_length_d99b680fd68bf71b = function(arg0) {
740
+ imports.wbg.__wbg_length_161c0d89c6535c1d = function(arg0) {
738
741
  const ret = getObject(arg0).length;
739
742
  return ret;
740
743
  };
741
- imports.wbg.__wbg_new_34c624469fb1d4fd = function() {
744
+ imports.wbg.__wbg_new_75208e29bddfd88c = function() {
742
745
  const ret = new Array;
743
746
  return addHeapObject(ret);
744
747
  };
745
- imports.wbg.__wbg_new_ad4df4628315a892 = function() {
748
+ imports.wbg.__wbg_new_d1cc518eff6805bb = function() {
746
749
  const ret = new Map;
747
750
  return addHeapObject(ret);
748
751
  };
749
- imports.wbg.__wbg_next_1938cf110c9491d4 = function(arg0) {
752
+ imports.wbg.__wbg_next_586204376d2ed373 = function(arg0) {
750
753
  const ret = getObject(arg0).next;
751
754
  return addHeapObject(ret);
752
755
  };
753
- imports.wbg.__wbg_next_267398d0e0761bf9 = function() {
756
+ imports.wbg.__wbg_next_b2d3366343a208b3 = function() {
754
757
  return handleError(function(arg0) {
755
758
  const ret = getObject(arg0).next();
756
759
  return addHeapObject(ret);
757
760
  }, arguments);
758
761
  };
759
- imports.wbg.__wbg_done_506b44765ba84b9c = function(arg0) {
762
+ imports.wbg.__wbg_done_90b14d6f6eacc42f = function(arg0) {
760
763
  const ret = getObject(arg0).done;
761
764
  return ret;
762
765
  };
763
- imports.wbg.__wbg_value_31485d8770eb06ab = function(arg0) {
766
+ imports.wbg.__wbg_value_3158be908c80a75e = function(arg0) {
764
767
  const ret = getObject(arg0).value;
765
768
  return addHeapObject(ret);
766
769
  };
767
- imports.wbg.__wbg_iterator_364187e1ee96b750 = function() {
770
+ imports.wbg.__wbg_iterator_40027cdd598da26b = function() {
768
771
  const ret = Symbol.iterator;
769
772
  return addHeapObject(ret);
770
773
  };
771
- imports.wbg.__wbg_get_5027b32da70f39b1 = function() {
774
+ imports.wbg.__wbg_get_3fddfed2c83f434c = function() {
772
775
  return handleError(function(arg0, arg1) {
773
776
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
774
777
  return addHeapObject(ret);
775
778
  }, arguments);
776
779
  };
777
- imports.wbg.__wbg_new_87d841e70661f6e9 = function() {
780
+ imports.wbg.__wbg_new_632630b5cec17f21 = function() {
778
781
  const ret = new Object;
779
782
  return addHeapObject(ret);
780
783
  };
781
- imports.wbg.__wbg_set_379b27f1d5f1bf9c = function(arg0, arg1, arg2) {
784
+ imports.wbg.__wbg_set_79c308ecd9a1d091 = function(arg0, arg1, arg2) {
782
785
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
783
786
  };
784
- imports.wbg.__wbg_isArray_fbd24d447869b527 = function(arg0) {
787
+ imports.wbg.__wbg_isArray_e783c41d0dd19b44 = function(arg0) {
785
788
  const ret = Array.isArray(getObject(arg0));
786
789
  return ret;
787
790
  };
788
- imports.wbg.__wbg_of_d43fb39c006c0b36 = function(arg0, arg1, arg2, arg3) {
791
+ imports.wbg.__wbg_of_38777ff6f65d601a = function(arg0, arg1, arg2, arg3) {
789
792
  const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
790
793
  return addHeapObject(ret);
791
794
  };
792
- imports.wbg.__wbg_push_906164999551d793 = function(arg0, arg1) {
795
+ imports.wbg.__wbg_push_0239ee92f127e807 = function(arg0, arg1) {
793
796
  const ret = getObject(arg0).push(getObject(arg1));
794
797
  return ret;
795
798
  };
796
- imports.wbg.__wbg_instanceof_ArrayBuffer_f4521cec1b99ee35 = function(arg0) {
799
+ imports.wbg.__wbg_instanceof_ArrayBuffer_9221fa854ffb71b5 = function(arg0) {
797
800
  let result;
798
801
  try {
799
802
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -803,73 +806,73 @@ var __wbg_get_imports = function() {
803
806
  const ret = result;
804
807
  return ret;
805
808
  };
806
- imports.wbg.__wbg_new_3a66822ed076951c = function(arg0, arg1) {
809
+ imports.wbg.__wbg_new_73a5987615ec8862 = function(arg0, arg1) {
807
810
  const ret = new Error(getStringFromWasm0(arg0, arg1));
808
811
  return addHeapObject(ret);
809
812
  };
810
- imports.wbg.__wbg_toString_5326377607a05bf2 = function(arg0) {
813
+ imports.wbg.__wbg_toString_07f01913ec9af122 = function(arg0) {
811
814
  const ret = getObject(arg0).toString();
812
815
  return addHeapObject(ret);
813
816
  };
814
- imports.wbg.__wbg_apply_d890a2eae27f4a03 = function() {
817
+ imports.wbg.__wbg_apply_2ed8aac218b83e42 = function() {
815
818
  return handleError(function(arg0, arg1, arg2) {
816
819
  const ret = getObject(arg0).apply(getObject(arg1), getObject(arg2));
817
820
  return addHeapObject(ret);
818
821
  }, arguments);
819
822
  };
820
- imports.wbg.__wbg_call_f6a2bc58c19c53c6 = function() {
823
+ imports.wbg.__wbg_call_67f2111acd2dfdb6 = function() {
821
824
  return handleError(function(arg0, arg1, arg2) {
822
825
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
823
826
  return addHeapObject(ret);
824
827
  }, arguments);
825
828
  };
826
- imports.wbg.__wbg_call_5830eb5e103aa772 = function() {
829
+ imports.wbg.__wbg_call_ef6edd65b3d356b6 = function() {
827
830
  return handleError(function(arg0, arg1, arg2, arg3) {
828
831
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
829
832
  return addHeapObject(ret);
830
833
  }, arguments);
831
834
  };
832
- imports.wbg.__wbg_call_84a3935b24cb0625 = function() {
835
+ imports.wbg.__wbg_call_29e8448cce029bad = function() {
833
836
  return handleError(function(arg0, arg1, arg2, arg3, arg4) {
834
837
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
835
838
  return addHeapObject(ret);
836
839
  }, arguments);
837
840
  };
838
- imports.wbg.__wbg_set_83e83bc2428e50ab = function(arg0, arg1, arg2) {
841
+ imports.wbg.__wbg_set_e4cfc2763115ffc7 = function(arg0, arg1, arg2) {
839
842
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
840
843
  return addHeapObject(ret);
841
844
  };
842
- imports.wbg.__wbg_isSafeInteger_d8c89788832a17bf = function(arg0) {
845
+ imports.wbg.__wbg_isSafeInteger_a23a66ee7c41b273 = function(arg0) {
843
846
  const ret = Number.isSafeInteger(getObject(arg0));
844
847
  return ret;
845
848
  };
846
- imports.wbg.__wbg_getTime_af7ca51c0bcefa08 = function(arg0) {
849
+ imports.wbg.__wbg_getTime_0e03c3f524be31ef = function(arg0) {
847
850
  const ret = getObject(arg0).getTime();
848
851
  return ret;
849
852
  };
850
- imports.wbg.__wbg_new0_c0e40662db0749ee = function() {
853
+ imports.wbg.__wbg_new0_7a6141101f2206da = function() {
851
854
  const ret = new Date;
852
855
  return addHeapObject(ret);
853
856
  };
854
- imports.wbg.__wbg_now_86f7ca537c8b86d5 = function() {
857
+ imports.wbg.__wbg_now_ba25f0a487340763 = function() {
855
858
  const ret = Date.now();
856
859
  return ret;
857
860
  };
858
- imports.wbg.__wbg_entries_7a47f5716366056b = function(arg0) {
861
+ imports.wbg.__wbg_entries_488960b196cfb6a5 = function(arg0) {
859
862
  const ret = Object.entries(getObject(arg0));
860
863
  return addHeapObject(ret);
861
864
  };
862
- imports.wbg.__wbg_set_37a50e901587b477 = function() {
865
+ imports.wbg.__wbg_set_961700853a212a39 = function() {
863
866
  return handleError(function(arg0, arg1, arg2) {
864
867
  const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
865
868
  return ret;
866
869
  }, arguments);
867
870
  };
868
- imports.wbg.__wbg_buffer_5d1b598a01b41a42 = function(arg0) {
871
+ imports.wbg.__wbg_buffer_b914fb8b50ebbc3e = function(arg0) {
869
872
  const ret = getObject(arg0).buffer;
870
873
  return addHeapObject(ret);
871
874
  };
872
- imports.wbg.__wbg_instanceof_Promise_bbd46d56519fb966 = function(arg0) {
875
+ imports.wbg.__wbg_instanceof_Promise_ccef695df7116cb7 = function(arg0) {
873
876
  let result;
874
877
  try {
875
878
  result = getObject(arg0) instanceof Promise;
@@ -879,7 +882,7 @@ var __wbg_get_imports = function() {
879
882
  const ret = result;
880
883
  return ret;
881
884
  };
882
- imports.wbg.__wbg_new_1d93771b84541aa5 = function(arg0, arg1) {
885
+ imports.wbg.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
883
886
  try {
884
887
  var state0 = { a: arg0, b: arg1 };
885
888
  var cb0 = (arg02, arg12) => {
@@ -897,38 +900,38 @@ var __wbg_get_imports = function() {
897
900
  state0.a = state0.b = 0;
898
901
  }
899
902
  };
900
- imports.wbg.__wbg_reject_c314396c0c29d52d = function(arg0) {
903
+ imports.wbg.__wbg_reject_20edd857b2f91504 = function(arg0) {
901
904
  const ret = Promise.reject(getObject(arg0));
902
905
  return addHeapObject(ret);
903
906
  };
904
- imports.wbg.__wbg_resolve_97ecd55ee839391b = function(arg0) {
907
+ imports.wbg.__wbg_resolve_5da6faf2c96fd1d5 = function(arg0) {
905
908
  const ret = Promise.resolve(getObject(arg0));
906
909
  return addHeapObject(ret);
907
910
  };
908
- imports.wbg.__wbg_then_7aeb7c5f1536640f = function(arg0, arg1) {
911
+ imports.wbg.__wbg_then_f9e58f5a50f43eae = function(arg0, arg1) {
909
912
  const ret = getObject(arg0).then(getObject(arg1));
910
913
  return addHeapObject(ret);
911
914
  };
912
- imports.wbg.__wbg_then_5842e4e97f7beace = function(arg0, arg1, arg2) {
915
+ imports.wbg.__wbg_then_20a5920e447d1cb1 = function(arg0, arg1, arg2) {
913
916
  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
914
917
  return addHeapObject(ret);
915
918
  };
916
- imports.wbg.__wbg_newwithbyteoffsetandlength_d695c7957788f922 = function(arg0, arg1, arg2) {
919
+ imports.wbg.__wbg_newwithbyteoffsetandlength_0de9ee56e9f6ee6e = function(arg0, arg1, arg2) {
917
920
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
918
921
  return addHeapObject(ret);
919
922
  };
920
- imports.wbg.__wbg_new_ace717933ad7117f = function(arg0) {
923
+ imports.wbg.__wbg_new_b1f2d6842d615181 = function(arg0) {
921
924
  const ret = new Uint8Array(getObject(arg0));
922
925
  return addHeapObject(ret);
923
926
  };
924
- imports.wbg.__wbg_set_74906aa30864df5a = function(arg0, arg1, arg2) {
927
+ imports.wbg.__wbg_set_7d988c98e6ced92d = function(arg0, arg1, arg2) {
925
928
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
926
929
  };
927
- imports.wbg.__wbg_length_f0764416ba5bb237 = function(arg0) {
930
+ imports.wbg.__wbg_length_21c4b0ae73cba59d = function(arg0) {
928
931
  const ret = getObject(arg0).length;
929
932
  return ret;
930
933
  };
931
- imports.wbg.__wbg_instanceof_Uint8Array_4f5cffed7df34b2f = function(arg0) {
934
+ imports.wbg.__wbg_instanceof_Uint8Array_c299a4ee232e76ba = function(arg0) {
932
935
  let result;
933
936
  try {
934
937
  result = getObject(arg0) instanceof Uint8Array;
@@ -938,11 +941,11 @@ var __wbg_get_imports = function() {
938
941
  const ret = result;
939
942
  return ret;
940
943
  };
941
- imports.wbg.__wbg_newwithlength_728575f3bba9959b = function(arg0) {
944
+ imports.wbg.__wbg_newwithlength_0d03cef43b68a530 = function(arg0) {
942
945
  const ret = new Uint8Array(arg0 >>> 0);
943
946
  return addHeapObject(ret);
944
947
  };
945
- imports.wbg.__wbg_subarray_7f7a652672800851 = function(arg0, arg1, arg2) {
948
+ imports.wbg.__wbg_subarray_adc418253d76e2f1 = function(arg0, arg1, arg2) {
946
949
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
947
950
  return addHeapObject(ret);
948
951
  };
@@ -966,12 +969,12 @@ var __wbg_get_imports = function() {
966
969
  const ret = wasm.memory;
967
970
  return addHeapObject(ret);
968
971
  };
969
- imports.wbg.__wbindgen_closure_wrapper2510 = function(arg0, arg1, arg2) {
972
+ imports.wbg.__wbindgen_closure_wrapper2565 = function(arg0, arg1, arg2) {
970
973
  const ret = makeMutClosure(arg0, arg1, 648, __wbg_adapter_54);
971
974
  return addHeapObject(ret);
972
975
  };
973
- imports.wbg.__wbindgen_closure_wrapper11519 = function(arg0, arg1, arg2) {
974
- const ret = makeMutClosure(arg0, arg1, 1592, __wbg_adapter_57);
976
+ imports.wbg.__wbindgen_closure_wrapper13130 = function(arg0, arg1, arg2) {
977
+ const ret = makeMutClosure(arg0, arg1, 2173, __wbg_adapter_57);
975
978
  return addHeapObject(ret);
976
979
  };
977
980
  return imports;
@@ -1031,6 +1034,11 @@ var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function
1031
1034
  var cachedInt32Memory0 = null;
1032
1035
  var cachedFloat64Memory0 = null;
1033
1036
  var cachedBigInt64Memory0 = null;
1037
+ var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {
1038
+ }, unregister: () => {
1039
+ } } : new FinalizationRegistry((state) => {
1040
+ wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b);
1041
+ });
1034
1042
  var cachedUint32Memory0 = null;
1035
1043
  var cachedUint16Memory0 = null;
1036
1044
  var DeviceStatus = Object.freeze({
@@ -1041,6 +1049,12 @@ var DeviceStatus = Object.freeze({
1041
1049
  Revoked: 2,
1042
1050
  "2": "Revoked"
1043
1051
  });
1052
+ var WirePolicy = Object.freeze({
1053
+ Plaintext: 1,
1054
+ "1": "Plaintext",
1055
+ Ciphertext: 2,
1056
+ "2": "Ciphertext"
1057
+ });
1044
1058
  var Ciphersuite = Object.freeze({
1045
1059
  MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519: 1,
1046
1060
  "1": "MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519",
@@ -1059,29 +1073,28 @@ var Ciphersuite = Object.freeze({
1059
1073
  MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519: 61489,
1060
1074
  "61489": "MLS_128_X25519KYBER768DRAFT00_AES128GCM_SHA256_Ed25519"
1061
1075
  });
1062
- var WirePolicy = Object.freeze({
1063
- Plaintext: 1,
1064
- "1": "Plaintext",
1065
- Ciphertext: 2,
1066
- "2": "Ciphertext"
1067
- });
1068
1076
  var CredentialType = Object.freeze({
1069
1077
  Basic: 1,
1070
1078
  "1": "Basic",
1071
1079
  X509: 2,
1072
1080
  "2": "X509"
1073
1081
  });
1082
+ var AcmeChallengeFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
1083
+ }, unregister: () => {
1084
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_acmechallenge_free(ptr >>> 0));
1074
1085
 
1075
1086
  class AcmeChallenge {
1076
1087
  static __wrap(ptr) {
1077
1088
  ptr = ptr >>> 0;
1078
1089
  const obj = Object.create(AcmeChallenge.prototype);
1079
1090
  obj.__wbg_ptr = ptr;
1091
+ AcmeChallengeFinalization.register(obj, obj.__wbg_ptr, obj);
1080
1092
  return obj;
1081
1093
  }
1082
1094
  __destroy_into_raw() {
1083
1095
  const ptr = this.__wbg_ptr;
1084
1096
  this.__wbg_ptr = 0;
1097
+ AcmeChallengeFinalization.unregister(this);
1085
1098
  return ptr;
1086
1099
  }
1087
1100
  free() {
@@ -1134,17 +1147,22 @@ class AcmeChallenge {
1134
1147
  }
1135
1148
  }
1136
1149
  }
1150
+ var AcmeDirectoryFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
1151
+ }, unregister: () => {
1152
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_acmedirectory_free(ptr >>> 0));
1137
1153
 
1138
1154
  class AcmeDirectory {
1139
1155
  static __wrap(ptr) {
1140
1156
  ptr = ptr >>> 0;
1141
1157
  const obj = Object.create(AcmeDirectory.prototype);
1142
1158
  obj.__wbg_ptr = ptr;
1159
+ AcmeDirectoryFinalization.register(obj, obj.__wbg_ptr, obj);
1143
1160
  return obj;
1144
1161
  }
1145
1162
  __destroy_into_raw() {
1146
1163
  const ptr = this.__wbg_ptr;
1147
1164
  this.__wbg_ptr = 0;
1165
+ AcmeDirectoryFinalization.unregister(this);
1148
1166
  return ptr;
1149
1167
  }
1150
1168
  free() {
@@ -1216,17 +1234,22 @@ class AcmeDirectory {
1216
1234
  }
1217
1235
  }
1218
1236
  }
1237
+ var BufferedDecryptedMessageFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
1238
+ }, unregister: () => {
1239
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_buffereddecryptedmessage_free(ptr >>> 0));
1219
1240
 
1220
1241
  class BufferedDecryptedMessage {
1221
1242
  static __wrap(ptr) {
1222
1243
  ptr = ptr >>> 0;
1223
1244
  const obj = Object.create(BufferedDecryptedMessage.prototype);
1224
1245
  obj.__wbg_ptr = ptr;
1246
+ BufferedDecryptedMessageFinalization.register(obj, obj.__wbg_ptr, obj);
1225
1247
  return obj;
1226
1248
  }
1227
1249
  __destroy_into_raw() {
1228
1250
  const ptr = this.__wbg_ptr;
1229
1251
  this.__wbg_ptr = 0;
1252
+ BufferedDecryptedMessageFinalization.unregister(this);
1230
1253
  return ptr;
1231
1254
  }
1232
1255
  free() {
@@ -1268,34 +1291,27 @@ class BufferedDecryptedMessage {
1268
1291
  const ret = wasm.buffereddecryptedmessage_identity(this.__wbg_ptr);
1269
1292
  return ret === 0 ? undefined : WireIdentity.__wrap(ret);
1270
1293
  }
1271
- get crlNewDistributionPoints() {
1272
- try {
1273
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1274
- wasm.__wbg_get_buffereddecryptedmessage_crlNewDistributionPoints(retptr, this.__wbg_ptr);
1275
- var r0 = getInt32Memory0()[retptr / 4 + 0];
1276
- var r1 = getInt32Memory0()[retptr / 4 + 1];
1277
- let v1;
1278
- if (r0 !== 0) {
1279
- v1 = getArrayJsValueFromWasm0(r0, r1).slice();
1280
- wasm.__wbindgen_free(r0, r1 * 4, 4);
1281
- }
1282
- return v1;
1283
- } finally {
1284
- wasm.__wbindgen_add_to_stack_pointer(16);
1285
- }
1294
+ get crl_new_distribution_points() {
1295
+ const ret = wasm.buffereddecryptedmessage_crl_new_distribution_points(this.__wbg_ptr);
1296
+ return takeObject(ret);
1286
1297
  }
1287
1298
  }
1299
+ var CommitBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
1300
+ }, unregister: () => {
1301
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_commitbundle_free(ptr >>> 0));
1288
1302
 
1289
1303
  class CommitBundle {
1290
1304
  static __wrap(ptr) {
1291
1305
  ptr = ptr >>> 0;
1292
1306
  const obj = Object.create(CommitBundle.prototype);
1293
1307
  obj.__wbg_ptr = ptr;
1308
+ CommitBundleFinalization.register(obj, obj.__wbg_ptr, obj);
1294
1309
  return obj;
1295
1310
  }
1296
1311
  __destroy_into_raw() {
1297
1312
  const ptr = this.__wbg_ptr;
1298
1313
  this.__wbg_ptr = 0;
1314
+ CommitBundleFinalization.unregister(this);
1299
1315
  return ptr;
1300
1316
  }
1301
1317
  free() {
@@ -1315,11 +1331,15 @@ class CommitBundle {
1315
1331
  return GroupInfoBundle.__wrap(ret);
1316
1332
  }
1317
1333
  }
1334
+ var ConversationConfigurationFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
1335
+ }, unregister: () => {
1336
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_conversationconfiguration_free(ptr >>> 0));
1318
1337
 
1319
1338
  class ConversationConfiguration {
1320
1339
  __destroy_into_raw() {
1321
1340
  const ptr = this.__wbg_ptr;
1322
1341
  this.__wbg_ptr = 0;
1342
+ ConversationConfigurationFinalization.unregister(this);
1323
1343
  return ptr;
1324
1344
  }
1325
1345
  free() {
@@ -1345,16 +1365,25 @@ class ConversationConfiguration {
1345
1365
  }
1346
1366
  }
1347
1367
  }
1368
+ var ConversationInitBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
1369
+ }, unregister: () => {
1370
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_conversationinitbundle_free(ptr >>> 0));
1371
+ var CoreCryptoFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
1372
+ }, unregister: () => {
1373
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_corecrypto_free(ptr >>> 0));
1374
+
1348
1375
  class CoreCrypto {
1349
1376
  static __wrap(ptr) {
1350
1377
  ptr = ptr >>> 0;
1351
1378
  const obj = Object.create(CoreCrypto.prototype);
1352
1379
  obj.__wbg_ptr = ptr;
1380
+ CoreCryptoFinalization.register(obj, obj.__wbg_ptr, obj);
1353
1381
  return obj;
1354
1382
  }
1355
1383
  __destroy_into_raw() {
1356
1384
  const ptr = this.__wbg_ptr;
1357
1385
  this.__wbg_ptr = 0;
1386
+ CoreCryptoFinalization.unregister(this);
1358
1387
  return ptr;
1359
1388
  }
1360
1389
  free() {
@@ -1559,8 +1588,8 @@ class CoreCrypto {
1559
1588
  const ret = wasm.corecrypto_set_callbacks(this.__wbg_ptr, ptr0);
1560
1589
  return takeObject(ret);
1561
1590
  }
1562
- client_public_key(ciphersuite) {
1563
- const ret = wasm.corecrypto_client_public_key(this.__wbg_ptr, ciphersuite);
1591
+ client_public_key(ciphersuite, credential_type) {
1592
+ const ret = wasm.corecrypto_client_public_key(this.__wbg_ptr, ciphersuite, credential_type);
1564
1593
  return takeObject(ret);
1565
1594
  }
1566
1595
  client_keypackages(ciphersuite, credential_type, amount_requested) {
@@ -1896,11 +1925,15 @@ class CoreCrypto {
1896
1925
  return takeObject(ret);
1897
1926
  }
1898
1927
  }
1928
+ var CoreCryptoWasmCallbacksFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
1929
+ }, unregister: () => {
1930
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_corecryptowasmcallbacks_free(ptr >>> 0));
1899
1931
 
1900
1932
  class CoreCryptoWasmCallbacks {
1901
1933
  __destroy_into_raw() {
1902
1934
  const ptr = this.__wbg_ptr;
1903
1935
  this.__wbg_ptr = 0;
1936
+ CoreCryptoWasmCallbacksFinalization.unregister(this);
1904
1937
  return ptr;
1905
1938
  }
1906
1939
  free() {
@@ -1913,10 +1946,18 @@ class CoreCryptoWasmCallbacks {
1913
1946
  return this;
1914
1947
  }
1915
1948
  }
1949
+ var CrlRegistrationFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
1950
+ }, unregister: () => {
1951
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_crlregistration_free(ptr >>> 0));
1952
+ var CustomConfigurationFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
1953
+ }, unregister: () => {
1954
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_customconfiguration_free(ptr >>> 0));
1955
+
1916
1956
  class CustomConfiguration {
1917
1957
  __destroy_into_raw() {
1918
1958
  const ptr = this.__wbg_ptr;
1919
1959
  this.__wbg_ptr = 0;
1960
+ CustomConfigurationFinalization.unregister(this);
1920
1961
  return ptr;
1921
1962
  }
1922
1963
  free() {
@@ -1929,16 +1970,25 @@ class CustomConfiguration {
1929
1970
  return this;
1930
1971
  }
1931
1972
  }
1973
+ var DecryptedMessageFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
1974
+ }, unregister: () => {
1975
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_decryptedmessage_free(ptr >>> 0));
1976
+ var FfiWireE2EIdentityFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
1977
+ }, unregister: () => {
1978
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_ffiwiree2eidentity_free(ptr >>> 0));
1979
+
1932
1980
  class FfiWireE2EIdentity {
1933
1981
  static __wrap(ptr) {
1934
1982
  ptr = ptr >>> 0;
1935
1983
  const obj = Object.create(FfiWireE2EIdentity.prototype);
1936
1984
  obj.__wbg_ptr = ptr;
1985
+ FfiWireE2EIdentityFinalization.register(obj, obj.__wbg_ptr, obj);
1937
1986
  return obj;
1938
1987
  }
1939
1988
  __destroy_into_raw() {
1940
1989
  const ptr = this.__wbg_ptr;
1941
1990
  this.__wbg_ptr = 0;
1991
+ FfiWireE2EIdentityFinalization.unregister(this);
1942
1992
  return ptr;
1943
1993
  }
1944
1994
  free() {
@@ -2042,17 +2092,22 @@ class FfiWireE2EIdentity {
2042
2092
  return takeObject(ret);
2043
2093
  }
2044
2094
  }
2095
+ var GroupInfoBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
2096
+ }, unregister: () => {
2097
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_groupinfobundle_free(ptr >>> 0));
2045
2098
 
2046
2099
  class GroupInfoBundle {
2047
2100
  static __wrap(ptr) {
2048
2101
  ptr = ptr >>> 0;
2049
2102
  const obj = Object.create(GroupInfoBundle.prototype);
2050
2103
  obj.__wbg_ptr = ptr;
2104
+ GroupInfoBundleFinalization.register(obj, obj.__wbg_ptr, obj);
2051
2105
  return obj;
2052
2106
  }
2053
2107
  __destroy_into_raw() {
2054
2108
  const ptr = this.__wbg_ptr;
2055
2109
  this.__wbg_ptr = 0;
2110
+ GroupInfoBundleFinalization.unregister(this);
2056
2111
  return ptr;
2057
2112
  }
2058
2113
  free() {
@@ -2072,16 +2127,25 @@ class GroupInfoBundle {
2072
2127
  return takeObject(ret);
2073
2128
  }
2074
2129
  }
2130
+ var MemberAddedMessagesFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
2131
+ }, unregister: () => {
2132
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_memberaddedmessages_free(ptr >>> 0));
2133
+ var NewAcmeAuthzFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
2134
+ }, unregister: () => {
2135
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_newacmeauthz_free(ptr >>> 0));
2136
+
2075
2137
  class NewAcmeAuthz {
2076
2138
  static __wrap(ptr) {
2077
2139
  ptr = ptr >>> 0;
2078
2140
  const obj = Object.create(NewAcmeAuthz.prototype);
2079
2141
  obj.__wbg_ptr = ptr;
2142
+ NewAcmeAuthzFinalization.register(obj, obj.__wbg_ptr, obj);
2080
2143
  return obj;
2081
2144
  }
2082
2145
  __destroy_into_raw() {
2083
2146
  const ptr = this.__wbg_ptr;
2084
2147
  this.__wbg_ptr = 0;
2148
+ NewAcmeAuthzFinalization.unregister(this);
2085
2149
  return ptr;
2086
2150
  }
2087
2151
  free() {
@@ -2125,17 +2189,22 @@ class NewAcmeAuthz {
2125
2189
  return AcmeChallenge.__wrap(ret);
2126
2190
  }
2127
2191
  }
2192
+ var NewAcmeOrderFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
2193
+ }, unregister: () => {
2194
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_newacmeorder_free(ptr >>> 0));
2128
2195
 
2129
2196
  class NewAcmeOrder {
2130
2197
  static __wrap(ptr) {
2131
2198
  ptr = ptr >>> 0;
2132
2199
  const obj = Object.create(NewAcmeOrder.prototype);
2133
2200
  obj.__wbg_ptr = ptr;
2201
+ NewAcmeOrderFinalization.register(obj, obj.__wbg_ptr, obj);
2134
2202
  return obj;
2135
2203
  }
2136
2204
  __destroy_into_raw() {
2137
2205
  const ptr = this.__wbg_ptr;
2138
2206
  this.__wbg_ptr = 0;
2207
+ NewAcmeOrderFinalization.unregister(this);
2139
2208
  return ptr;
2140
2209
  }
2141
2210
  free() {
@@ -2169,17 +2238,22 @@ class NewAcmeOrder {
2169
2238
  }
2170
2239
  }
2171
2240
  }
2241
+ var ProposalBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
2242
+ }, unregister: () => {
2243
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_proposalbundle_free(ptr >>> 0));
2172
2244
 
2173
2245
  class ProposalBundle {
2174
2246
  static __wrap(ptr) {
2175
2247
  ptr = ptr >>> 0;
2176
2248
  const obj = Object.create(ProposalBundle.prototype);
2177
2249
  obj.__wbg_ptr = ptr;
2250
+ ProposalBundleFinalization.register(obj, obj.__wbg_ptr, obj);
2178
2251
  return obj;
2179
2252
  }
2180
2253
  __destroy_into_raw() {
2181
2254
  const ptr = this.__wbg_ptr;
2182
2255
  this.__wbg_ptr = 0;
2256
+ ProposalBundleFinalization.unregister(this);
2183
2257
  return ptr;
2184
2258
  }
2185
2259
  free() {
@@ -2187,59 +2261,34 @@ class ProposalBundle {
2187
2261
  wasm.__wbg_proposalbundle_free(ptr);
2188
2262
  }
2189
2263
  get proposal() {
2190
- try {
2191
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2192
- wasm.__wbg_get_acmechallenge_delegate(retptr, this.__wbg_ptr);
2193
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2194
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2195
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2196
- wasm.__wbindgen_free(r0, r1 * 1, 1);
2197
- return v1;
2198
- } finally {
2199
- wasm.__wbindgen_add_to_stack_pointer(16);
2200
- }
2264
+ const ret = wasm.proposalbundle_proposal(this.__wbg_ptr);
2265
+ return takeObject(ret);
2201
2266
  }
2202
- get proposalRef() {
2203
- try {
2204
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2205
- wasm.__wbg_get_proposalbundle_proposalRef(retptr, this.__wbg_ptr);
2206
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2207
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2208
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2209
- wasm.__wbindgen_free(r0, r1 * 1, 1);
2210
- return v1;
2211
- } finally {
2212
- wasm.__wbindgen_add_to_stack_pointer(16);
2213
- }
2267
+ get proposal_ref() {
2268
+ const ret = wasm.proposalbundle_proposal_ref(this.__wbg_ptr);
2269
+ return takeObject(ret);
2214
2270
  }
2215
- get crlNewDistributionPoints() {
2216
- try {
2217
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2218
- wasm.__wbg_get_proposalbundle_crlNewDistributionPoints(retptr, this.__wbg_ptr);
2219
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2220
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2221
- let v1;
2222
- if (r0 !== 0) {
2223
- v1 = getArrayJsValueFromWasm0(r0, r1).slice();
2224
- wasm.__wbindgen_free(r0, r1 * 4, 4);
2225
- }
2226
- return v1;
2227
- } finally {
2228
- wasm.__wbindgen_add_to_stack_pointer(16);
2229
- }
2271
+ get crl_new_distribution_points() {
2272
+ const ret = wasm.proposalbundle_crl_new_distribution_points(this.__wbg_ptr);
2273
+ return takeObject(ret);
2230
2274
  }
2231
2275
  }
2276
+ var ProteusAutoPrekeyBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
2277
+ }, unregister: () => {
2278
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_proteusautoprekeybundle_free(ptr >>> 0));
2232
2279
 
2233
2280
  class ProteusAutoPrekeyBundle {
2234
2281
  static __wrap(ptr) {
2235
2282
  ptr = ptr >>> 0;
2236
2283
  const obj = Object.create(ProteusAutoPrekeyBundle.prototype);
2237
2284
  obj.__wbg_ptr = ptr;
2285
+ ProteusAutoPrekeyBundleFinalization.register(obj, obj.__wbg_ptr, obj);
2238
2286
  return obj;
2239
2287
  }
2240
2288
  __destroy_into_raw() {
2241
2289
  const ptr = this.__wbg_ptr;
2242
2290
  this.__wbg_ptr = 0;
2291
+ ProteusAutoPrekeyBundleFinalization.unregister(this);
2243
2292
  return ptr;
2244
2293
  }
2245
2294
  free() {
@@ -2272,57 +2321,28 @@ class ProteusAutoPrekeyBundle {
2272
2321
  wasm.__wbg_set_proteusautoprekeybundle_pkb(this.__wbg_ptr, ptr0, len0);
2273
2322
  }
2274
2323
  }
2275
- class WelcomeBundle {
2276
- __destroy_into_raw() {
2277
- const ptr = this.__wbg_ptr;
2278
- this.__wbg_ptr = 0;
2279
- return ptr;
2280
- }
2281
- free() {
2282
- const ptr = this.__destroy_into_raw();
2283
- wasm.__wbg_welcomebundle_free(ptr);
2284
- }
2285
- get id() {
2286
- try {
2287
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2288
- wasm.__wbg_get_acmechallenge_delegate(retptr, this.__wbg_ptr);
2289
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2290
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2291
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
2292
- wasm.__wbindgen_free(r0, r1 * 1, 1);
2293
- return v1;
2294
- } finally {
2295
- wasm.__wbindgen_add_to_stack_pointer(16);
2296
- }
2297
- }
2298
- get crlNewDistributionPoints() {
2299
- try {
2300
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
2301
- wasm.__wbg_get_welcomebundle_crlNewDistributionPoints(retptr, this.__wbg_ptr);
2302
- var r0 = getInt32Memory0()[retptr / 4 + 0];
2303
- var r1 = getInt32Memory0()[retptr / 4 + 1];
2304
- let v1;
2305
- if (r0 !== 0) {
2306
- v1 = getArrayJsValueFromWasm0(r0, r1).slice();
2307
- wasm.__wbindgen_free(r0, r1 * 4, 4);
2308
- }
2309
- return v1;
2310
- } finally {
2311
- wasm.__wbindgen_add_to_stack_pointer(16);
2312
- }
2313
- }
2314
- }
2324
+ var RotateBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
2325
+ }, unregister: () => {
2326
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_rotatebundle_free(ptr >>> 0));
2327
+ var WelcomeBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
2328
+ }, unregister: () => {
2329
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_welcomebundle_free(ptr >>> 0));
2330
+ var WireIdentityFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
2331
+ }, unregister: () => {
2332
+ } } : new FinalizationRegistry((ptr) => wasm.__wbg_wireidentity_free(ptr >>> 0));
2315
2333
 
2316
2334
  class WireIdentity {
2317
2335
  static __wrap(ptr) {
2318
2336
  ptr = ptr >>> 0;
2319
2337
  const obj = Object.create(WireIdentity.prototype);
2320
2338
  obj.__wbg_ptr = ptr;
2339
+ WireIdentityFinalization.register(obj, obj.__wbg_ptr, obj);
2321
2340
  return obj;
2322
2341
  }
2323
2342
  __destroy_into_raw() {
2324
2343
  const ptr = this.__wbg_ptr;
2325
2344
  this.__wbg_ptr = 0;
2345
+ WireIdentityFinalization.unregister(this);
2326
2346
  return ptr;
2327
2347
  }
2328
2348
  free() {
@@ -2629,7 +2649,7 @@ class CoreCrypto2 {
2629
2649
  }
2630
2650
  try {
2631
2651
  const ffiDecryptedMessage = await CoreCryptoError.asyncMapErr(this.#cc.decrypt_message(conversationId, payload));
2632
- const ffiCommitDelay = ffiDecryptedMessage.commitDelay;
2652
+ const ffiCommitDelay = ffiDecryptedMessage.commit_delay;
2633
2653
  let commitDelay = undefined;
2634
2654
  if (typeof ffiCommitDelay === "number" && ffiCommitDelay >= 0) {
2635
2655
  commitDelay = ffiCommitDelay * 1000;
@@ -2637,10 +2657,10 @@ class CoreCrypto2 {
2637
2657
  const ret = {
2638
2658
  message: ffiDecryptedMessage.message,
2639
2659
  proposals: ffiDecryptedMessage.proposals,
2640
- isActive: ffiDecryptedMessage.isActive,
2660
+ isActive: ffiDecryptedMessage.is_active,
2641
2661
  senderClientId: ffiDecryptedMessage.sender_client_id,
2642
2662
  commitDelay,
2643
- hasEpochChanged: ffiDecryptedMessage.hasEpochChanged,
2663
+ hasEpochChanged: ffiDecryptedMessage.has_epoch_changed,
2644
2664
  bufferedMessages: ffiDecryptedMessage.buffered_messages?.map((m) => {
2645
2665
  return {
2646
2666
  message: m.message,
@@ -2649,10 +2669,10 @@ class CoreCrypto2 {
2649
2669
  senderClientId: m.sender_client_id,
2650
2670
  commitDelay: m.commit_delay,
2651
2671
  hasEpochChanged: m.has_epoch_changed,
2652
- crlNewDistributionPoints: m.crlNewDistributionPoints
2672
+ crlNewDistributionPoints: m.crl_new_distribution_points
2653
2673
  };
2654
2674
  }),
2655
- crlNewDistributionPoints: ffiDecryptedMessage.crlNewDistributionPoints
2675
+ crlNewDistributionPoints: ffiDecryptedMessage.crl_new_distribution_points
2656
2676
  };
2657
2677
  return ret;
2658
2678
  } catch (e) {
@@ -2666,13 +2686,18 @@ class CoreCrypto2 {
2666
2686
  try {
2667
2687
  const { keyRotationSpan, wirePolicy } = configuration || {};
2668
2688
  const config = new CustomConfiguration(keyRotationSpan, wirePolicy);
2669
- return await CoreCryptoError.asyncMapErr(this.#cc.process_welcome_message(welcomeMessage, config));
2689
+ const ffiRet = await CoreCryptoError.asyncMapErr(this.#cc.process_welcome_message(welcomeMessage, config));
2690
+ const ret = {
2691
+ id: ffiRet.id,
2692
+ crlNewDistributionPoints: ffiRet.crl_new_distribution_points
2693
+ };
2694
+ return ret;
2670
2695
  } catch (e) {
2671
2696
  throw CoreCryptoError.fromStdError(e);
2672
2697
  }
2673
2698
  }
2674
- async clientPublicKey(ciphersuite) {
2675
- return await CoreCryptoError.asyncMapErr(this.#cc.client_public_key(ciphersuite));
2699
+ async clientPublicKey(ciphersuite, credentialType) {
2700
+ return await CoreCryptoError.asyncMapErr(this.#cc.client_public_key(ciphersuite, credentialType));
2676
2701
  }
2677
2702
  async clientValidKeypackagesCount(ciphersuite, credentialType) {
2678
2703
  return await CoreCryptoError.asyncMapErr(this.#cc.client_valid_keypackages_count(ciphersuite, credentialType));
@@ -2695,7 +2720,7 @@ class CoreCrypto2 {
2695
2720
  ratchetTreeType: gi.ratchet_tree_type,
2696
2721
  payload: gi.payload
2697
2722
  },
2698
- crlNewDistributionPoints: ffiRet.crlNewDistributionPoints
2723
+ crlNewDistributionPoints: ffiRet.crl_new_distribution_points
2699
2724
  };
2700
2725
  return ret;
2701
2726
  } catch (e) {
@@ -2803,7 +2828,7 @@ class CoreCrypto2 {
2803
2828
  ratchetTreeType: gi.ratchet_tree_type,
2804
2829
  payload: gi.payload
2805
2830
  },
2806
- crlNewDistributionPoints: ffiInitMessage.crlNewDistributionPoints
2831
+ crlNewDistributionPoints: ffiInitMessage.crl_new_distribution_points
2807
2832
  };
2808
2833
  return ret;
2809
2834
  } catch (e) {
@@ -2932,7 +2957,7 @@ class CoreCrypto2 {
2932
2957
  commits: ffiRet.commits,
2933
2958
  newKeyPackages: ffiRet.new_key_packages,
2934
2959
  keyPackageRefsToRemove: ffiRet.key_package_refs_to_remove,
2935
- crlNewDistributionPoints: ffiRet.crlNewDistributionPoints
2960
+ crlNewDistributionPoints: ffiRet.crl_new_distribution_points
2936
2961
  };
2937
2962
  return ret;
2938
2963
  }
@@ -3038,10 +3063,8 @@ var E2eiConversationState;
3038
3063
  export {
3039
3064
  WirePolicy2 as WirePolicy,
3040
3065
  WireIdentity,
3041
- WelcomeBundle,
3042
3066
  RatchetTreeType,
3043
3067
  ProposalType,
3044
- ProposalBundle,
3045
3068
  NewAcmeOrder,
3046
3069
  NewAcmeAuthz,
3047
3070
  GroupInfoEncryptionType,