@seams/wallet 0.30.0 → 0.31.0

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 (66) hide show
  1. package/README.md +6 -6
  2. package/THIRD_PARTY_NOTICES.md +1 -127
  3. package/dist/.build-inputs.sha256 +1 -1
  4. package/dist/esm/sdk/{host-Csu5L7VF.js → host-DltV2Oan.js} +1 -1
  5. package/dist/esm/sdk/registration-Coh0_Nva.js +1 -0
  6. package/dist/esm/sdk/router_ab_ed25519_yao_client_bg.wasm +0 -0
  7. package/dist/{public/sdk/runtime-auth-BMT_gIKI.js → esm/sdk/runtime-auth-CP6P681o.js} +1 -1
  8. package/dist/{public/sdk/runtime-device-link-DQe0aqRi.js → esm/sdk/runtime-device-link-CGDZQK-D.js} +1 -1
  9. package/dist/esm/sdk/{runtime-ecdsa-tempo-DKkeMMpm.js → runtime-ecdsa-tempo-BiJYKWK4.js} +1 -1
  10. package/dist/esm/sdk/{runtime-email-otp-CzTe7r9I.js → runtime-email-otp-B0XCNDRb.js} +1 -1
  11. package/dist/esm/sdk/{runtime-export-BiyLbdCe.js → runtime-export-CXxv6KIx.js} +1 -1
  12. package/dist/esm/sdk/{runtime-near-Kk0n1FSf.js → runtime-near-CuyS57wu.js} +1 -1
  13. package/dist/esm/sdk/{runtime-preferences-B-A3hddU.js → runtime-preferences-B2WBUZO7.js} +1 -1
  14. package/dist/esm/sdk/{runtime-recovery-C9p1TU1w.js → runtime-recovery-KwVdSe94.js} +1 -1
  15. package/dist/esm/sdk/{runtimeContext-ChuvOC0h.js → runtimeContext-Iy1vecX0.js} +1 -1
  16. package/dist/esm/sdk/wallet-iframe-host-ecdsa.js +1 -1
  17. package/dist/esm/sdk/wallet-iframe-host-full.js +1 -1
  18. package/dist/esm/sdk/wallet-iframe-host-near.js +1 -1
  19. package/dist/esm/sdk/wallet-iframe-host-runtime.js +1 -1
  20. package/dist/esm/wasm/near_signer/pkg/wasm_signer_worker_bg.wasm +0 -0
  21. package/dist/esm/wasm/router_ab_ecdsa_client/pkg/router_ab_ecdsa_client_bg.wasm +0 -0
  22. package/dist/esm/wasm/router_ab_ed25519_yao_client/pkg/router_ab_ed25519_yao_client.d.ts +212 -233
  23. package/dist/esm/wasm/router_ab_ed25519_yao_client/pkg/router_ab_ed25519_yao_client.js +675 -694
  24. package/dist/esm/wasm/router_ab_ed25519_yao_client/pkg/router_ab_ed25519_yao_client_bg.wasm +0 -0
  25. package/dist/public/headers.manifest.json +1 -1
  26. package/dist/public/sdk/{host-Csu5L7VF.js → host-DltV2Oan.js} +1 -1
  27. package/dist/public/sdk/registration-Coh0_Nva.js +1 -0
  28. package/dist/public/sdk/router_ab_ed25519_yao_client_bg.wasm +0 -0
  29. package/dist/{esm/sdk/runtime-auth-BMT_gIKI.js → public/sdk/runtime-auth-CP6P681o.js} +1 -1
  30. package/dist/{esm/sdk/runtime-device-link-DQe0aqRi.js → public/sdk/runtime-device-link-CGDZQK-D.js} +1 -1
  31. package/dist/public/sdk/{runtime-ecdsa-tempo-DKkeMMpm.js → runtime-ecdsa-tempo-BiJYKWK4.js} +1 -1
  32. package/dist/public/sdk/{runtime-email-otp-CzTe7r9I.js → runtime-email-otp-B0XCNDRb.js} +1 -1
  33. package/dist/public/sdk/{runtime-export-BiyLbdCe.js → runtime-export-CXxv6KIx.js} +1 -1
  34. package/dist/public/sdk/{runtime-near-Kk0n1FSf.js → runtime-near-CuyS57wu.js} +1 -1
  35. package/dist/public/sdk/{runtime-preferences-B-A3hddU.js → runtime-preferences-B2WBUZO7.js} +1 -1
  36. package/dist/public/sdk/{runtime-recovery-C9p1TU1w.js → runtime-recovery-KwVdSe94.js} +1 -1
  37. package/dist/public/sdk/{runtimeContext-ChuvOC0h.js → runtimeContext-Iy1vecX0.js} +1 -1
  38. package/dist/public/sdk/wallet-iframe-host-ecdsa.js +1 -1
  39. package/dist/public/sdk/wallet-iframe-host-full.js +1 -1
  40. package/dist/public/sdk/wallet-iframe-host-near.js +1 -1
  41. package/dist/public/sdk/wallet-iframe-host-runtime.js +1 -1
  42. package/dist/public/sdk/workers/device-linking-key.worker.js +454 -947
  43. package/dist/public/sdk/workers/email-otp.worker.js +588 -820
  44. package/dist/public/sdk/workers/evm_crypto_bg.wasm +0 -0
  45. package/dist/public/sdk/workers/passkey-mpc-export.worker.js +572 -804
  46. package/dist/public/sdk/workers/router_ab_ecdsa_client_bg.wasm +0 -0
  47. package/dist/public/sdk/workers/router_ab_ed25519_yao_client_bg.wasm +0 -0
  48. package/dist/public/sdk/workers/tempo_signer_bg.wasm +0 -0
  49. package/dist/public/sdk/workers/wallet-custody-ceremony.worker.js +524 -971
  50. package/dist/public/sdk/workers/wallet_custody_ceremony_bg.wasm +0 -0
  51. package/dist/public/sdk/workers/wasm_signer_worker_bg.wasm +0 -0
  52. package/dist/public/wallet-assets.manifest.json +26 -26
  53. package/dist/public/wallet-service/index.html +4 -4
  54. package/dist/workers/device-linking-key.worker.js +454 -947
  55. package/dist/workers/email-otp.worker.js +588 -820
  56. package/dist/workers/evm_crypto_bg.wasm +0 -0
  57. package/dist/workers/passkey-mpc-export.worker.js +572 -804
  58. package/dist/workers/router_ab_ecdsa_client_bg.wasm +0 -0
  59. package/dist/workers/router_ab_ed25519_yao_client_bg.wasm +0 -0
  60. package/dist/workers/tempo_signer_bg.wasm +0 -0
  61. package/dist/workers/wallet-custody-ceremony.worker.js +524 -971
  62. package/dist/workers/wallet_custody_ceremony_bg.wasm +0 -0
  63. package/dist/workers/wasm_signer_worker_bg.wasm +0 -0
  64. package/package.json +17 -17
  65. package/dist/esm/sdk/registration-C7w_51wE.js +0 -1
  66. package/dist/public/sdk/registration-C7w_51wE.js +0 -1
@@ -1291,8 +1291,197 @@ async function fetchWithWalletHomeDiscovery(request) {
1291
1291
  }
1292
1292
 
1293
1293
  // ../../crates/router-ab-ed25519-yao-client/pkg/router_ab_ed25519_yao_client.js
1294
+ var wasm;
1295
+ var WASM_VECTOR_LEN = 0;
1296
+ var cachedUint8ArrayMemory0 = null;
1297
+ function getUint8ArrayMemory0() {
1298
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
1299
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
1300
+ }
1301
+ return cachedUint8ArrayMemory0;
1302
+ }
1303
+ var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
1304
+ throw Error("TextEncoder not available");
1305
+ } };
1306
+ var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function(arg, view) {
1307
+ return cachedTextEncoder.encodeInto(arg, view);
1308
+ } : function(arg, view) {
1309
+ const buf = cachedTextEncoder.encode(arg);
1310
+ view.set(buf);
1311
+ return {
1312
+ read: arg.length,
1313
+ written: buf.length
1314
+ };
1315
+ };
1316
+ function passStringToWasm0(arg, malloc, realloc) {
1317
+ if (realloc === undefined) {
1318
+ const buf = cachedTextEncoder.encode(arg);
1319
+ const ptr = malloc(buf.length, 1) >>> 0;
1320
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
1321
+ WASM_VECTOR_LEN = buf.length;
1322
+ return ptr;
1323
+ }
1324
+ let len = arg.length;
1325
+ let ptr = malloc(len, 1) >>> 0;
1326
+ const mem = getUint8ArrayMemory0();
1327
+ let offset = 0;
1328
+ for (;offset < len; offset++) {
1329
+ const code = arg.charCodeAt(offset);
1330
+ if (code > 127)
1331
+ break;
1332
+ mem[ptr + offset] = code;
1333
+ }
1334
+ if (offset !== len) {
1335
+ if (offset !== 0) {
1336
+ arg = arg.slice(offset);
1337
+ }
1338
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
1339
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
1340
+ const ret = encodeString(arg, view);
1341
+ offset += ret.written;
1342
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
1343
+ }
1344
+ WASM_VECTOR_LEN = offset;
1345
+ return ptr;
1346
+ }
1347
+ var cachedDataViewMemory0 = null;
1348
+ function getDataViewMemory0() {
1349
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
1350
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
1351
+ }
1352
+ return cachedDataViewMemory0;
1353
+ }
1354
+ function addToExternrefTable0(obj) {
1355
+ const idx = wasm.__externref_table_alloc();
1356
+ wasm.__wbindgen_export_4.set(idx, obj);
1357
+ return idx;
1358
+ }
1359
+ function handleError(f, args) {
1360
+ try {
1361
+ return f.apply(this, args);
1362
+ } catch (e) {
1363
+ const idx = addToExternrefTable0(e);
1364
+ wasm.__wbindgen_exn_store(idx);
1365
+ }
1366
+ }
1367
+ var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
1368
+ throw Error("TextDecoder not available");
1369
+ } };
1370
+ if (typeof TextDecoder !== "undefined") {
1371
+ cachedTextDecoder.decode();
1372
+ }
1373
+ function getStringFromWasm0(ptr, len) {
1374
+ ptr = ptr >>> 0;
1375
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
1376
+ }
1377
+ function isLikeNone(x) {
1378
+ return x === undefined || x === null;
1379
+ }
1380
+ function debugString(val) {
1381
+ const type = typeof val;
1382
+ if (type == "number" || type == "boolean" || val == null) {
1383
+ return `${val}`;
1384
+ }
1385
+ if (type == "string") {
1386
+ return `"${val}"`;
1387
+ }
1388
+ if (type == "symbol") {
1389
+ const description = val.description;
1390
+ if (description == null) {
1391
+ return "Symbol";
1392
+ } else {
1393
+ return `Symbol(${description})`;
1394
+ }
1395
+ }
1396
+ if (type == "function") {
1397
+ const name = val.name;
1398
+ if (typeof name == "string" && name.length > 0) {
1399
+ return `Function(${name})`;
1400
+ } else {
1401
+ return "Function";
1402
+ }
1403
+ }
1404
+ if (Array.isArray(val)) {
1405
+ const length = val.length;
1406
+ let debug = "[";
1407
+ if (length > 0) {
1408
+ debug += debugString(val[0]);
1409
+ }
1410
+ for (let i = 1;i < length; i++) {
1411
+ debug += ", " + debugString(val[i]);
1412
+ }
1413
+ debug += "]";
1414
+ return debug;
1415
+ }
1416
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
1417
+ let className;
1418
+ if (builtInMatches && builtInMatches.length > 1) {
1419
+ className = builtInMatches[1];
1420
+ } else {
1421
+ return toString.call(val);
1422
+ }
1423
+ if (className == "Object") {
1424
+ try {
1425
+ return "Object(" + JSON.stringify(val) + ")";
1426
+ } catch (_) {
1427
+ return "Object";
1428
+ }
1429
+ }
1430
+ if (val instanceof Error) {
1431
+ return `${val.name}: ${val.message}
1432
+ ${val.stack}`;
1433
+ }
1434
+ return className;
1435
+ }
1436
+ function passArray8ToWasm0(arg, malloc) {
1437
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
1438
+ getUint8ArrayMemory0().set(arg, ptr / 1);
1439
+ WASM_VECTOR_LEN = arg.length;
1440
+ return ptr;
1441
+ }
1442
+ function takeFromExternrefTable0(idx) {
1443
+ const value = wasm.__wbindgen_export_4.get(idx);
1444
+ wasm.__externref_table_dealloc(idx);
1445
+ return value;
1446
+ }
1447
+ function openWalletCustodyEd25519MaterialV1(factor_secret, envelope_binding_json, envelope_nonce, envelope_ciphertext, envelope_aad_hash, envelope_ciphertext_digest, application_binding_digest, registered_public_key, state_epoch, client_participant_id, signing_worker_participant_id, signing_worker_verifying_share, cache_nonce, cache_ciphertext) {
1448
+ const ptr0 = passArray8ToWasm0(factor_secret, wasm.__wbindgen_malloc);
1449
+ const len0 = WASM_VECTOR_LEN;
1450
+ const ptr1 = passStringToWasm0(envelope_binding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1451
+ const len1 = WASM_VECTOR_LEN;
1452
+ const ptr2 = passArray8ToWasm0(envelope_nonce, wasm.__wbindgen_malloc);
1453
+ const len2 = WASM_VECTOR_LEN;
1454
+ const ptr3 = passArray8ToWasm0(envelope_ciphertext, wasm.__wbindgen_malloc);
1455
+ const len3 = WASM_VECTOR_LEN;
1456
+ const ptr4 = passArray8ToWasm0(envelope_aad_hash, wasm.__wbindgen_malloc);
1457
+ const len4 = WASM_VECTOR_LEN;
1458
+ const ptr5 = passArray8ToWasm0(envelope_ciphertext_digest, wasm.__wbindgen_malloc);
1459
+ const len5 = WASM_VECTOR_LEN;
1460
+ const ptr6 = passArray8ToWasm0(application_binding_digest, wasm.__wbindgen_malloc);
1461
+ const len6 = WASM_VECTOR_LEN;
1462
+ const ptr7 = passArray8ToWasm0(registered_public_key, wasm.__wbindgen_malloc);
1463
+ const len7 = WASM_VECTOR_LEN;
1464
+ const ptr8 = passArray8ToWasm0(signing_worker_verifying_share, wasm.__wbindgen_malloc);
1465
+ const len8 = WASM_VECTOR_LEN;
1466
+ const ptr9 = passArray8ToWasm0(cache_nonce, wasm.__wbindgen_malloc);
1467
+ const len9 = WASM_VECTOR_LEN;
1468
+ const ptr10 = passArray8ToWasm0(cache_ciphertext, wasm.__wbindgen_malloc);
1469
+ const len10 = WASM_VECTOR_LEN;
1470
+ const ret = wasm.openWalletCustodyEd25519MaterialV1(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, state_epoch, client_participant_id, signing_worker_participant_id, ptr8, len8, ptr9, len9, ptr10, len10);
1471
+ if (ret[2]) {
1472
+ throw takeFromExternrefTable0(ret[1]);
1473
+ }
1474
+ return WasmActivatedClientV1.__wrap(ret[0]);
1475
+ }
1476
+ function getArrayU8FromWasm0(ptr, len) {
1477
+ ptr = ptr >>> 0;
1478
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
1479
+ }
1480
+ var WasmActivatedClientV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmactivatedclientv1_free(ptr >>> 0, 1));
1481
+
1294
1482
  class WasmActivatedClientV1 {
1295
1483
  static __wrap(ptr) {
1484
+ ptr = ptr >>> 0;
1296
1485
  const obj = Object.create(WasmActivatedClientV1.prototype);
1297
1486
  obj.__wbg_ptr = ptr;
1298
1487
  WasmActivatedClientV1Finalization.register(obj, obj.__wbg_ptr, obj);
@@ -1308,6 +1497,25 @@ class WasmActivatedClientV1 {
1308
1497
  const ptr = this.__destroy_into_raw();
1309
1498
  wasm.__wbg_wasmactivatedclientv1_free(ptr, 0);
1310
1499
  }
1500
+ state_epoch() {
1501
+ const ret = wasm.wasmactivatedclientv1_state_epoch(this.__wbg_ptr);
1502
+ return BigInt.asUintN(64, ret);
1503
+ }
1504
+ seal_local_material(passkey_prf_first, binding, nonce) {
1505
+ const ptr0 = passArray8ToWasm0(passkey_prf_first, wasm.__wbindgen_malloc);
1506
+ const len0 = WASM_VECTOR_LEN;
1507
+ const ptr1 = passArray8ToWasm0(binding, wasm.__wbindgen_malloc);
1508
+ const len1 = WASM_VECTOR_LEN;
1509
+ const ptr2 = passArray8ToWasm0(nonce, wasm.__wbindgen_malloc);
1510
+ const len2 = WASM_VECTOR_LEN;
1511
+ const ret = wasm.wasmactivatedclientv1_seal_local_material(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
1512
+ if (ret[3]) {
1513
+ throw takeFromExternrefTable0(ret[2]);
1514
+ }
1515
+ var v4 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1516
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1517
+ return v4;
1518
+ }
1311
1519
  create_signing_share(client_participant_id, signing_worker_participant_id, admitted_digest, signing_worker_commitments_json, signing_worker_verifying_share) {
1312
1520
  const ptr0 = passArray8ToWasm0(admitted_digest, wasm.__wbindgen_malloc);
1313
1521
  const len0 = WASM_VECTOR_LEN;
@@ -1321,17 +1529,6 @@ class WasmActivatedClientV1 {
1321
1529
  }
1322
1530
  return WasmClientSigningShareV1.__wrap(ret[0]);
1323
1531
  }
1324
- static import_linked_material(client_scalar_share, client_participant_id, signing_worker_participant_id, public_receipt_json) {
1325
- const ptr0 = passArray8ToWasm0(client_scalar_share, wasm.__wbindgen_malloc);
1326
- const len0 = WASM_VECTOR_LEN;
1327
- const ptr1 = passStringToWasm0(public_receipt_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1328
- const len1 = WASM_VECTOR_LEN;
1329
- const ret = wasm.wasmactivatedclientv1_import_linked_material(ptr0, len0, client_participant_id, signing_worker_participant_id, ptr1, len1);
1330
- if (ret[2]) {
1331
- throw takeFromExternrefTable0(ret[1]);
1332
- }
1333
- return WasmActivatedClientV1.__wrap(ret[0]);
1334
- }
1335
1532
  static import_local_material(passkey_prf_first, binding, nonce, ciphertext, expected_registered_public_key, expected_state_epoch, client_participant_id, signing_worker_participant_id, signing_worker_verifying_share) {
1336
1533
  const ptr0 = passArray8ToWasm0(passkey_prf_first, wasm.__wbindgen_malloc);
1337
1534
  const len0 = WASM_VECTOR_LEN;
@@ -1357,31 +1554,23 @@ class WasmActivatedClientV1 {
1357
1554
  wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1358
1555
  return v1;
1359
1556
  }
1360
- seal_local_material(passkey_prf_first, binding, nonce) {
1361
- const ptr0 = passArray8ToWasm0(passkey_prf_first, wasm.__wbindgen_malloc);
1557
+ static import_linked_material(client_scalar_share, client_participant_id, signing_worker_participant_id, public_receipt_json) {
1558
+ const ptr0 = passArray8ToWasm0(client_scalar_share, wasm.__wbindgen_malloc);
1362
1559
  const len0 = WASM_VECTOR_LEN;
1363
- const ptr1 = passArray8ToWasm0(binding, wasm.__wbindgen_malloc);
1560
+ const ptr1 = passStringToWasm0(public_receipt_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1364
1561
  const len1 = WASM_VECTOR_LEN;
1365
- const ptr2 = passArray8ToWasm0(nonce, wasm.__wbindgen_malloc);
1366
- const len2 = WASM_VECTOR_LEN;
1367
- const ret = wasm.wasmactivatedclientv1_seal_local_material(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
1368
- if (ret[3]) {
1369
- throw takeFromExternrefTable0(ret[2]);
1562
+ const ret = wasm.wasmactivatedclientv1_import_linked_material(ptr0, len0, client_participant_id, signing_worker_participant_id, ptr1, len1);
1563
+ if (ret[2]) {
1564
+ throw takeFromExternrefTable0(ret[1]);
1370
1565
  }
1371
- var v4 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1372
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1373
- return v4;
1374
- }
1375
- state_epoch() {
1376
- const ret = wasm.wasmactivatedclientv1_state_epoch(this.__wbg_ptr);
1377
- return BigInt.asUintN(64, ret);
1566
+ return WasmActivatedClientV1.__wrap(ret[0]);
1378
1567
  }
1379
1568
  }
1380
- if (Symbol.dispose)
1381
- WasmActivatedClientV1.prototype[Symbol.dispose] = WasmActivatedClientV1.prototype.free;
1569
+ var WasmClientSigningShareV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmclientsigningsharev1_free(ptr >>> 0, 1));
1382
1570
 
1383
1571
  class WasmClientSigningShareV1 {
1384
1572
  static __wrap(ptr) {
1573
+ ptr = ptr >>> 0;
1385
1574
  const obj = Object.create(WasmClientSigningShareV1.prototype);
1386
1575
  obj.__wbg_ptr = ptr;
1387
1576
  WasmClientSigningShareV1Finalization.register(obj, obj.__wbg_ptr, obj);
@@ -1397,6 +1586,12 @@ class WasmClientSigningShareV1 {
1397
1586
  const ptr = this.__destroy_into_raw();
1398
1587
  wasm.__wbg_wasmclientsigningsharev1_free(ptr, 0);
1399
1588
  }
1589
+ client_verifying_share() {
1590
+ const ret = wasm.wasmclientsigningsharev1_client_verifying_share(this.__wbg_ptr);
1591
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1592
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1593
+ return v1;
1594
+ }
1400
1595
  client_commitments_json() {
1401
1596
  let deferred1_0;
1402
1597
  let deferred1_1;
@@ -1421,15 +1616,8 @@ class WasmClientSigningShareV1 {
1421
1616
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1422
1617
  }
1423
1618
  }
1424
- client_verifying_share() {
1425
- const ret = wasm.wasmclientsigningsharev1_client_verifying_share(this.__wbg_ptr);
1426
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1427
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1428
- return v1;
1429
- }
1430
1619
  }
1431
- if (Symbol.dispose)
1432
- WasmClientSigningShareV1.prototype[Symbol.dispose] = WasmClientSigningShareV1.prototype.free;
1620
+ var WasmEd25519YaoClientRootExportSessionV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmed25519yaoclientrootexportsessionv1_free(ptr >>> 0, 1));
1433
1621
 
1434
1622
  class WasmEd25519YaoClientRootExportSessionV1 {
1435
1623
  __destroy_into_raw() {
@@ -1442,15 +1630,6 @@ class WasmEd25519YaoClientRootExportSessionV1 {
1442
1630
  const ptr = this.__destroy_into_raw();
1443
1631
  wasm.__wbg_wasmed25519yaoclientrootexportsessionv1_free(ptr, 0);
1444
1632
  }
1445
- complete(result_json) {
1446
- const ptr0 = passStringToWasm0(result_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1447
- const len0 = WASM_VECTOR_LEN;
1448
- const ret = wasm.wasmed25519yaoclientrootexportsessionv1_complete(this.__wbg_ptr, ptr0, len0);
1449
- if (ret[2]) {
1450
- throw takeFromExternrefTable0(ret[1]);
1451
- }
1452
- return WasmExportedEd25519SeedV1.__wrap(ret[0]);
1453
- }
1454
1633
  execute_request_json() {
1455
1634
  let deferred1_0;
1456
1635
  let deferred1_1;
@@ -1490,173 +1669,28 @@ class WasmEd25519YaoClientRootExportSessionV1 {
1490
1669
  if (ret[2]) {
1491
1670
  throw takeFromExternrefTable0(ret[1]);
1492
1671
  }
1493
- this.__wbg_ptr = ret[0];
1672
+ this.__wbg_ptr = ret[0] >>> 0;
1494
1673
  WasmEd25519YaoClientRootExportSessionV1Finalization.register(this, this.__wbg_ptr, this);
1495
1674
  return this;
1496
1675
  }
1497
- }
1498
- if (Symbol.dispose)
1499
- WasmEd25519YaoClientRootExportSessionV1.prototype[Symbol.dispose] = WasmEd25519YaoClientRootExportSessionV1.prototype.free;
1500
-
1501
- class WasmEd25519YaoLaneClientV1 {
1502
- __destroy_into_raw() {
1503
- const ptr = this.__wbg_ptr;
1504
- this.__wbg_ptr = 0;
1505
- WasmEd25519YaoLaneClientV1Finalization.unregister(this);
1506
- return ptr;
1507
- }
1508
- free() {
1509
- const ptr = this.__destroy_into_raw();
1510
- wasm.__wbg_wasmed25519yaolaneclientv1_free(ptr, 0);
1511
- }
1512
- complete(result_input) {
1513
- const ret = wasm.wasmed25519yaolaneclientv1_complete(this.__wbg_ptr, result_input);
1514
- if (ret[2]) {
1515
- throw takeFromExternrefTable0(ret[1]);
1516
- }
1517
- return takeFromExternrefTable0(ret[0]);
1518
- }
1519
- execute_request_json() {
1520
- let deferred2_0;
1521
- let deferred2_1;
1522
- try {
1523
- const ret = wasm.wasmed25519yaolaneclientv1_execute_request_json(this.__wbg_ptr);
1524
- var ptr1 = ret[0];
1525
- var len1 = ret[1];
1526
- if (ret[3]) {
1527
- ptr1 = 0;
1528
- len1 = 0;
1529
- throw takeFromExternrefTable0(ret[2]);
1530
- }
1531
- deferred2_0 = ptr1;
1532
- deferred2_1 = len1;
1533
- return getStringFromWasm0(ptr1, len1);
1534
- } finally {
1535
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
1536
- }
1537
- }
1538
- constructor() {
1539
- const ret = wasm.wasmed25519yaolaneclientv1_new();
1540
- this.__wbg_ptr = ret;
1541
- WasmEd25519YaoLaneClientV1Finalization.register(this, this.__wbg_ptr, this);
1542
- return this;
1543
- }
1544
- prepare(job_input, binding_input, application_input, client_participant_id, signing_worker_participant_id, source, deriver_a_input_public_key, deriver_b_input_public_key, deriver_a_seal_seed, deriver_b_seal_seed) {
1545
- _assertClass(source, WasmEd25519YaoLaneSourceV1);
1546
- const ptr0 = passArray8ToWasm0(deriver_a_input_public_key, wasm.__wbindgen_malloc);
1547
- const len0 = WASM_VECTOR_LEN;
1548
- const ptr1 = passArray8ToWasm0(deriver_b_input_public_key, wasm.__wbindgen_malloc);
1549
- const len1 = WASM_VECTOR_LEN;
1550
- const ptr2 = passArray8ToWasm0(deriver_a_seal_seed, wasm.__wbindgen_malloc);
1551
- const len2 = WASM_VECTOR_LEN;
1552
- const ptr3 = passArray8ToWasm0(deriver_b_seal_seed, wasm.__wbindgen_malloc);
1553
- const len3 = WASM_VECTOR_LEN;
1554
- const ret = wasm.wasmed25519yaolaneclientv1_prepare(this.__wbg_ptr, job_input, binding_input, application_input, client_participant_id, signing_worker_participant_id, source.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
1555
- if (ret[2]) {
1556
- throw takeFromExternrefTable0(ret[1]);
1557
- }
1558
- return takeFromExternrefTable0(ret[0]);
1559
- }
1560
- }
1561
- if (Symbol.dispose)
1562
- WasmEd25519YaoLaneClientV1.prototype[Symbol.dispose] = WasmEd25519YaoLaneClientV1.prototype.free;
1563
-
1564
- class WasmEd25519YaoLaneSourceV1 {
1565
- static __wrap(ptr) {
1566
- const obj = Object.create(WasmEd25519YaoLaneSourceV1.prototype);
1567
- obj.__wbg_ptr = ptr;
1568
- WasmEd25519YaoLaneSourceV1Finalization.register(obj, obj.__wbg_ptr, obj);
1569
- return obj;
1570
- }
1571
- __destroy_into_raw() {
1572
- const ptr = this.__wbg_ptr;
1573
- this.__wbg_ptr = 0;
1574
- WasmEd25519YaoLaneSourceV1Finalization.unregister(this);
1575
- return ptr;
1576
- }
1577
- free() {
1578
- const ptr = this.__destroy_into_raw();
1579
- wasm.__wbg_wasmed25519yaolanesourcev1_free(ptr, 0);
1580
- }
1581
- constructor(factor_secret, envelope_binding_json, envelope_nonce, envelope_ciphertext, envelope_aad_hash, envelope_ciphertext_digest) {
1582
- const ptr0 = passArray8ToWasm0(factor_secret, wasm.__wbindgen_malloc);
1583
- const len0 = WASM_VECTOR_LEN;
1584
- const ptr1 = passStringToWasm0(envelope_binding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1585
- const len1 = WASM_VECTOR_LEN;
1586
- const ptr2 = passArray8ToWasm0(envelope_nonce, wasm.__wbindgen_malloc);
1587
- const len2 = WASM_VECTOR_LEN;
1588
- const ptr3 = passArray8ToWasm0(envelope_ciphertext, wasm.__wbindgen_malloc);
1589
- const len3 = WASM_VECTOR_LEN;
1590
- const ptr4 = passArray8ToWasm0(envelope_aad_hash, wasm.__wbindgen_malloc);
1591
- const len4 = WASM_VECTOR_LEN;
1592
- const ptr5 = passArray8ToWasm0(envelope_ciphertext_digest, wasm.__wbindgen_malloc);
1593
- const len5 = WASM_VECTOR_LEN;
1594
- const ret = wasm.wasmed25519yaolanesourcev1_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5);
1595
- if (ret[2]) {
1596
- throw takeFromExternrefTable0(ret[1]);
1597
- }
1598
- this.__wbg_ptr = ret[0];
1599
- WasmEd25519YaoLaneSourceV1Finalization.register(this, this.__wbg_ptr, this);
1600
- return this;
1601
- }
1602
- }
1603
- if (Symbol.dispose)
1604
- WasmEd25519YaoLaneSourceV1.prototype[Symbol.dispose] = WasmEd25519YaoLaneSourceV1.prototype.free;
1605
-
1606
- class WasmEd25519YaoSourcePreservingRegistrationSessionV1 {
1607
- __destroy_into_raw() {
1608
- const ptr = this.__wbg_ptr;
1609
- this.__wbg_ptr = 0;
1610
- WasmEd25519YaoSourcePreservingRegistrationSessionV1Finalization.unregister(this);
1611
- return ptr;
1612
- }
1613
- free() {
1614
- const ptr = this.__destroy_into_raw();
1615
- wasm.__wbg_wasmed25519yaosourcepreservingregistrationsessionv1_free(ptr, 0);
1616
- }
1617
- constructor(admission_input, application_input, client_participant_id, signing_worker_participant_id, source, expected_registered_public_key, target_client_recipient_public_key, deriver_a_seal_seed, deriver_b_seal_seed) {
1618
- _assertClass(source, WasmEd25519YaoLaneSourceV1);
1619
- const ptr0 = passArray8ToWasm0(expected_registered_public_key, wasm.__wbindgen_malloc);
1676
+ complete(result_json) {
1677
+ const ptr0 = passStringToWasm0(result_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1620
1678
  const len0 = WASM_VECTOR_LEN;
1621
- const ptr1 = passArray8ToWasm0(target_client_recipient_public_key, wasm.__wbindgen_malloc);
1622
- const len1 = WASM_VECTOR_LEN;
1623
- const ptr2 = passArray8ToWasm0(deriver_a_seal_seed, wasm.__wbindgen_malloc);
1624
- const len2 = WASM_VECTOR_LEN;
1625
- const ptr3 = passArray8ToWasm0(deriver_b_seal_seed, wasm.__wbindgen_malloc);
1626
- const len3 = WASM_VECTOR_LEN;
1627
- const ret = wasm.wasmed25519yaosourcepreservingregistrationsessionv1_new(admission_input, application_input, client_participant_id, signing_worker_participant_id, source.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
1679
+ const ret = wasm.wasmed25519yaoclientrootexportsessionv1_complete(this.__wbg_ptr, ptr0, len0);
1628
1680
  if (ret[2]) {
1629
1681
  throw takeFromExternrefTable0(ret[1]);
1630
1682
  }
1631
- this.__wbg_ptr = ret[0];
1632
- WasmEd25519YaoSourcePreservingRegistrationSessionV1Finalization.register(this, this.__wbg_ptr, this);
1633
- return this;
1634
- }
1635
- take_execute_request_json() {
1636
- let deferred2_0;
1637
- let deferred2_1;
1638
- try {
1639
- const ret = wasm.wasmed25519yaosourcepreservingregistrationsessionv1_take_execute_request_json(this.__wbg_ptr);
1640
- var ptr1 = ret[0];
1641
- var len1 = ret[1];
1642
- if (ret[3]) {
1643
- ptr1 = 0;
1644
- len1 = 0;
1645
- throw takeFromExternrefTable0(ret[2]);
1646
- }
1647
- deferred2_0 = ptr1;
1648
- deferred2_1 = len1;
1649
- return getStringFromWasm0(ptr1, len1);
1650
- } finally {
1651
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
1652
- }
1683
+ return WasmExportedEd25519SeedV1.__wrap(ret[0]);
1653
1684
  }
1654
1685
  }
1655
- if (Symbol.dispose)
1656
- WasmEd25519YaoSourcePreservingRegistrationSessionV1.prototype[Symbol.dispose] = WasmEd25519YaoSourcePreservingRegistrationSessionV1.prototype.free;
1686
+ var WasmEd25519YaoLaneClientV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmed25519yaolaneclientv1_free(ptr >>> 0, 1));
1687
+ var WasmEd25519YaoLaneSourceV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmed25519yaolanesourcev1_free(ptr >>> 0, 1));
1688
+ var WasmEd25519YaoSourcePreservingRegistrationSessionV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmed25519yaosourcepreservingregistrationsessionv1_free(ptr >>> 0, 1));
1689
+ var WasmExportedEd25519SeedV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmexporteded25519seedv1_free(ptr >>> 0, 1));
1657
1690
 
1658
1691
  class WasmExportedEd25519SeedV1 {
1659
1692
  static __wrap(ptr) {
1693
+ ptr = ptr >>> 0;
1660
1694
  const obj = Object.create(WasmExportedEd25519SeedV1.prototype);
1661
1695
  obj.__wbg_ptr = ptr;
1662
1696
  WasmExportedEd25519SeedV1Finalization.register(obj, obj.__wbg_ptr, obj);
@@ -1692,56 +1726,8 @@ class WasmExportedEd25519SeedV1 {
1692
1726
  }
1693
1727
  }
1694
1728
  }
1695
- if (Symbol.dispose)
1696
- WasmExportedEd25519SeedV1.prototype[Symbol.dispose] = WasmExportedEd25519SeedV1.prototype.free;
1697
-
1698
- class WasmOrdinaryEd25519ActivationClientMaterialV1 {
1699
- __destroy_into_raw() {
1700
- const ptr = this.__wbg_ptr;
1701
- this.__wbg_ptr = 0;
1702
- WasmOrdinaryEd25519ActivationClientMaterialV1Finalization.unregister(this);
1703
- return ptr;
1704
- }
1705
- free() {
1706
- const ptr = this.__destroy_into_raw();
1707
- wasm.__wbg_wasmordinaryed25519activationclientmaterialv1_free(ptr, 0);
1708
- }
1709
- destroy() {
1710
- wasm.wasmordinaryed25519activationclientmaterialv1_destroy(this.__wbg_ptr);
1711
- }
1712
- constructor(binding_json, deriver_a_client_package_json, deriver_b_client_package_json, recipient_private_key, participant_ids_json, public_receipt_json) {
1713
- const ptr0 = passStringToWasm0(binding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1714
- const len0 = WASM_VECTOR_LEN;
1715
- const ptr1 = passStringToWasm0(deriver_a_client_package_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1716
- const len1 = WASM_VECTOR_LEN;
1717
- const ptr2 = passStringToWasm0(deriver_b_client_package_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1718
- const len2 = WASM_VECTOR_LEN;
1719
- const ptr3 = passArray8ToWasm0(recipient_private_key, wasm.__wbindgen_malloc);
1720
- const len3 = WASM_VECTOR_LEN;
1721
- const ptr4 = passStringToWasm0(participant_ids_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1722
- const len4 = WASM_VECTOR_LEN;
1723
- const ptr5 = passStringToWasm0(public_receipt_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1724
- const len5 = WASM_VECTOR_LEN;
1725
- const ret = wasm.wasmordinaryed25519activationclientmaterialv1_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5);
1726
- if (ret[2]) {
1727
- throw takeFromExternrefTable0(ret[1]);
1728
- }
1729
- this.__wbg_ptr = ret[0];
1730
- WasmOrdinaryEd25519ActivationClientMaterialV1Finalization.register(this, this.__wbg_ptr, this);
1731
- return this;
1732
- }
1733
- take_client_material() {
1734
- const ret = wasm.wasmordinaryed25519activationclientmaterialv1_take_client_material(this.__wbg_ptr);
1735
- if (ret[3]) {
1736
- throw takeFromExternrefTable0(ret[2]);
1737
- }
1738
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
1739
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1740
- return v1;
1741
- }
1742
- }
1743
- if (Symbol.dispose)
1744
- WasmOrdinaryEd25519ActivationClientMaterialV1.prototype[Symbol.dispose] = WasmOrdinaryEd25519ActivationClientMaterialV1.prototype.free;
1729
+ var WasmOrdinaryEd25519ActivationClientMaterialV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmordinaryed25519activationclientmaterialv1_free(ptr >>> 0, 1));
1730
+ var WasmWalletCustodySeedExportSessionV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmwalletcustodyseedexportsessionv1_free(ptr >>> 0, 1));
1745
1731
 
1746
1732
  class WasmWalletCustodySeedExportSessionV1 {
1747
1733
  __destroy_into_raw() {
@@ -1754,15 +1740,6 @@ class WasmWalletCustodySeedExportSessionV1 {
1754
1740
  const ptr = this.__destroy_into_raw();
1755
1741
  wasm.__wbg_wasmwalletcustodyseedexportsessionv1_free(ptr, 0);
1756
1742
  }
1757
- complete(result_json) {
1758
- const ptr0 = passStringToWasm0(result_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1759
- const len0 = WASM_VECTOR_LEN;
1760
- const ret = wasm.wasmwalletcustodyseedexportsessionv1_complete(this.__wbg_ptr, ptr0, len0);
1761
- if (ret[2]) {
1762
- throw takeFromExternrefTable0(ret[1]);
1763
- }
1764
- return WasmExportedEd25519SeedV1.__wrap(ret[0]);
1765
- }
1766
1743
  execute_request_json() {
1767
1744
  let deferred1_0;
1768
1745
  let deferred1_1;
@@ -1802,536 +1779,19 @@ class WasmWalletCustodySeedExportSessionV1 {
1802
1779
  if (ret[2]) {
1803
1780
  throw takeFromExternrefTable0(ret[1]);
1804
1781
  }
1805
- this.__wbg_ptr = ret[0];
1782
+ this.__wbg_ptr = ret[0] >>> 0;
1806
1783
  WasmWalletCustodySeedExportSessionV1Finalization.register(this, this.__wbg_ptr, this);
1807
1784
  return this;
1808
1785
  }
1809
- }
1810
- if (Symbol.dispose)
1811
- WasmWalletCustodySeedExportSessionV1.prototype[Symbol.dispose] = WasmWalletCustodySeedExportSessionV1.prototype.free;
1812
- function openWalletCustodyEd25519MaterialV1(factor_secret, envelope_binding_json, envelope_nonce, envelope_ciphertext, envelope_aad_hash, envelope_ciphertext_digest, application_binding_digest, registered_public_key, state_epoch, client_participant_id, signing_worker_participant_id, signing_worker_verifying_share, cache_nonce, cache_ciphertext) {
1813
- const ptr0 = passArray8ToWasm0(factor_secret, wasm.__wbindgen_malloc);
1814
- const len0 = WASM_VECTOR_LEN;
1815
- const ptr1 = passStringToWasm0(envelope_binding_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1816
- const len1 = WASM_VECTOR_LEN;
1817
- const ptr2 = passArray8ToWasm0(envelope_nonce, wasm.__wbindgen_malloc);
1818
- const len2 = WASM_VECTOR_LEN;
1819
- const ptr3 = passArray8ToWasm0(envelope_ciphertext, wasm.__wbindgen_malloc);
1820
- const len3 = WASM_VECTOR_LEN;
1821
- const ptr4 = passArray8ToWasm0(envelope_aad_hash, wasm.__wbindgen_malloc);
1822
- const len4 = WASM_VECTOR_LEN;
1823
- const ptr5 = passArray8ToWasm0(envelope_ciphertext_digest, wasm.__wbindgen_malloc);
1824
- const len5 = WASM_VECTOR_LEN;
1825
- const ptr6 = passArray8ToWasm0(application_binding_digest, wasm.__wbindgen_malloc);
1826
- const len6 = WASM_VECTOR_LEN;
1827
- const ptr7 = passArray8ToWasm0(registered_public_key, wasm.__wbindgen_malloc);
1828
- const len7 = WASM_VECTOR_LEN;
1829
- const ptr8 = passArray8ToWasm0(signing_worker_verifying_share, wasm.__wbindgen_malloc);
1830
- const len8 = WASM_VECTOR_LEN;
1831
- const ptr9 = passArray8ToWasm0(cache_nonce, wasm.__wbindgen_malloc);
1832
- const len9 = WASM_VECTOR_LEN;
1833
- const ptr10 = passArray8ToWasm0(cache_ciphertext, wasm.__wbindgen_malloc);
1834
- const len10 = WASM_VECTOR_LEN;
1835
- const ret = wasm.openWalletCustodyEd25519MaterialV1(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, state_epoch, client_participant_id, signing_worker_participant_id, ptr8, len8, ptr9, len9, ptr10, len10);
1836
- if (ret[2]) {
1837
- throw takeFromExternrefTable0(ret[1]);
1838
- }
1839
- return WasmActivatedClientV1.__wrap(ret[0]);
1840
- }
1841
- function __wbg_get_imports() {
1842
- const import0 = {
1843
- __proto__: null,
1844
- __wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
1845
- const ret = Error(getStringFromWasm0(arg0, arg1));
1846
- return ret;
1847
- },
1848
- __wbg_Number_9a4e0ecb0fa16705: function(arg0) {
1849
- const ret = Number(arg0);
1850
- return ret;
1851
- },
1852
- __wbg_String_8564e559799eccda: function(arg0, arg1) {
1853
- const ret = String(arg1);
1854
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1855
- const len1 = WASM_VECTOR_LEN;
1856
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1857
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1858
- },
1859
- __wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f: function(arg0, arg1) {
1860
- const v = arg1;
1861
- const ret = typeof v === "bigint" ? v : undefined;
1862
- getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1863
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1864
- },
1865
- __wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {
1866
- const v = arg0;
1867
- const ret = typeof v === "boolean" ? v : undefined;
1868
- return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
1869
- },
1870
- __wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) {
1871
- const ret = debugString(arg1);
1872
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1873
- const len1 = WASM_VECTOR_LEN;
1874
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1875
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1876
- },
1877
- __wbg___wbindgen_in_aca499c5de7ff5e5: function(arg0, arg1) {
1878
- const ret = arg0 in arg1;
1879
- return ret;
1880
- },
1881
- __wbg___wbindgen_is_bigint_2f76dc55065b4273: function(arg0) {
1882
- const ret = typeof arg0 === "bigint";
1883
- return ret;
1884
- },
1885
- __wbg___wbindgen_is_function_1ff95bcc5517c252: function(arg0) {
1886
- const ret = typeof arg0 === "function";
1887
- return ret;
1888
- },
1889
- __wbg___wbindgen_is_object_a27215656b807791: function(arg0) {
1890
- const val = arg0;
1891
- const ret = typeof val === "object" && val !== null;
1892
- return ret;
1893
- },
1894
- __wbg___wbindgen_is_string_ea5e6cc2e4141dfe: function(arg0) {
1895
- const ret = typeof arg0 === "string";
1896
- return ret;
1897
- },
1898
- __wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {
1899
- const ret = arg0 === undefined;
1900
- return ret;
1901
- },
1902
- __wbg___wbindgen_jsval_eq_e659fcf7b0e32763: function(arg0, arg1) {
1903
- const ret = arg0 === arg1;
1904
- return ret;
1905
- },
1906
- __wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170: function(arg0, arg1) {
1907
- const ret = arg0 == arg1;
1908
- return ret;
1909
- },
1910
- __wbg___wbindgen_number_get_394265ed1e1b84ee: function(arg0, arg1) {
1911
- const obj = arg1;
1912
- const ret = typeof obj === "number" ? obj : undefined;
1913
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1914
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1915
- },
1916
- __wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
1917
- const obj = arg1;
1918
- const ret = typeof obj === "string" ? obj : undefined;
1919
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1920
- var len1 = WASM_VECTOR_LEN;
1921
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1922
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1923
- },
1924
- __wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
1925
- throw new Error(getStringFromWasm0(arg0, arg1));
1926
- },
1927
- __wbg_call_8a2dd23819f8a60a: function() {
1928
- return handleError(function(arg0, arg1) {
1929
- const ret = arg0.call(arg1);
1930
- return ret;
1931
- }, arguments);
1932
- },
1933
- __wbg_call_a6e5c5dce5018821: function() {
1934
- return handleError(function(arg0, arg1, arg2) {
1935
- const ret = arg0.call(arg1, arg2);
1936
- return ret;
1937
- }, arguments);
1938
- },
1939
- __wbg_crypto_38df2bab126b63dc: function(arg0) {
1940
- const ret = arg0.crypto;
1941
- return ret;
1942
- },
1943
- __wbg_done_89b2b13e91a60321: function(arg0) {
1944
- const ret = arg0.done;
1945
- return ret;
1946
- },
1947
- __wbg_entries_015dc610cd81ede0: function(arg0) {
1948
- const ret = Object.entries(arg0);
1949
- return ret;
1950
- },
1951
- __wbg_getRandomValues_c44a50d8cfdaebeb: function() {
1952
- return handleError(function(arg0, arg1) {
1953
- arg0.getRandomValues(arg1);
1954
- }, arguments);
1955
- },
1956
- __wbg_get_507a50627bffa49b: function(arg0, arg1) {
1957
- const ret = arg0[arg1 >>> 0];
1958
- return ret;
1959
- },
1960
- __wbg_get_78f252d074a84d0b: function() {
1961
- return handleError(function(arg0, arg1) {
1962
- const ret = Reflect.get(arg0, arg1);
1963
- return ret;
1964
- }, arguments);
1965
- },
1966
- __wbg_get_c7eb1f358a7654df: function() {
1967
- return handleError(function(arg0, arg1) {
1968
- const ret = Reflect.get(arg0, arg1);
1969
- return ret;
1970
- }, arguments);
1971
- },
1972
- __wbg_get_unchecked_6e0ad6d2a41b06f6: function(arg0, arg1) {
1973
- const ret = arg0[arg1 >>> 0];
1974
- return ret;
1975
- },
1976
- __wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
1977
- const ret = arg0[arg1];
1978
- return ret;
1979
- },
1980
- __wbg_instanceof_ArrayBuffer_4480b9e0068a8adb: function(arg0) {
1981
- let result;
1982
- try {
1983
- result = arg0 instanceof ArrayBuffer;
1984
- } catch (_) {
1985
- result = false;
1986
- }
1987
- const ret = result;
1988
- return ret;
1989
- },
1990
- __wbg_instanceof_Map_e5b5e3db98422fcc: function(arg0) {
1991
- let result;
1992
- try {
1993
- result = arg0 instanceof Map;
1994
- } catch (_) {
1995
- result = false;
1996
- }
1997
- const ret = result;
1998
- return ret;
1999
- },
2000
- __wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) {
2001
- let result;
2002
- try {
2003
- result = arg0 instanceof Uint8Array;
2004
- } catch (_) {
2005
- result = false;
2006
- }
2007
- const ret = result;
2008
- return ret;
2009
- },
2010
- __wbg_isArray_0677c962b281d01a: function(arg0) {
2011
- const ret = Array.isArray(arg0);
2012
- return ret;
2013
- },
2014
- __wbg_isSafeInteger_04f36e4056f1b851: function(arg0) {
2015
- const ret = Number.isSafeInteger(arg0);
2016
- return ret;
2017
- },
2018
- __wbg_iterator_6f722e4a93058b71: function() {
2019
- const ret = Symbol.iterator;
2020
- return ret;
2021
- },
2022
- __wbg_length_1f0964f4a5e2c6d8: function(arg0) {
2023
- const ret = arg0.length;
2024
- return ret;
2025
- },
2026
- __wbg_length_370319915dc99107: function(arg0) {
2027
- const ret = arg0.length;
2028
- return ret;
2029
- },
2030
- __wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
2031
- const ret = arg0.msCrypto;
2032
- return ret;
2033
- },
2034
- __wbg_new_cd45aabdf6073e84: function(arg0) {
2035
- const ret = new Uint8Array(arg0);
2036
- return ret;
2037
- },
2038
- __wbg_new_da52cf8fe3429cb2: function() {
2039
- const ret = new Object;
2040
- return ret;
2041
- },
2042
- __wbg_new_with_length_e6785c33c8e4cce8: function(arg0) {
2043
- const ret = new Uint8Array(arg0 >>> 0);
2044
- return ret;
2045
- },
2046
- __wbg_next_6dbf2c0ac8cde20f: function(arg0) {
2047
- const ret = arg0.next;
2048
- return ret;
2049
- },
2050
- __wbg_next_71f2aa1cb3d1e37e: function() {
2051
- return handleError(function(arg0) {
2052
- const ret = arg0.next();
2053
- return ret;
2054
- }, arguments);
2055
- },
2056
- __wbg_node_84ea875411254db1: function(arg0) {
2057
- const ret = arg0.node;
2058
- return ret;
2059
- },
2060
- __wbg_process_44c7a14e11e9f69e: function(arg0) {
2061
- const ret = arg0.process;
2062
- return ret;
2063
- },
2064
- __wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
2065
- Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
2066
- },
2067
- __wbg_randomFillSync_6c25eac9869eb53c: function() {
2068
- return handleError(function(arg0, arg1) {
2069
- arg0.randomFillSync(arg1);
2070
- }, arguments);
2071
- },
2072
- __wbg_require_b4edbdcf3e2a1ef0: function() {
2073
- return handleError(function() {
2074
- const ret = module_router_ab_ed25519_yao_client.require;
2075
- return ret;
2076
- }, arguments);
2077
- },
2078
- __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
2079
- arg0[arg1] = arg2;
2080
- },
2081
- __wbg_set_8535240470bf2500: function() {
2082
- return handleError(function(arg0, arg1, arg2) {
2083
- const ret = Reflect.set(arg0, arg1, arg2);
2084
- return ret;
2085
- }, arguments);
2086
- },
2087
- __wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() {
2088
- const ret = typeof global === "undefined" ? null : global;
2089
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2090
- },
2091
- __wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4: function() {
2092
- const ret = typeof globalThis === "undefined" ? null : globalThis;
2093
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2094
- },
2095
- __wbg_static_accessor_SELF_146583524fe1469b: function() {
2096
- const ret = typeof self === "undefined" ? null : self;
2097
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2098
- },
2099
- __wbg_static_accessor_WINDOW_f2829a2234d7819e: function() {
2100
- const ret = typeof window === "undefined" ? null : window;
2101
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2102
- },
2103
- __wbg_subarray_3ed232c8a6baee09: function(arg0, arg1, arg2) {
2104
- const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
2105
- return ret;
2106
- },
2107
- __wbg_value_a5d5488a9589444a: function(arg0) {
2108
- const ret = arg0.value;
2109
- return ret;
2110
- },
2111
- __wbg_versions_276b2795b1c6a219: function(arg0) {
2112
- const ret = arg0.versions;
2113
- return ret;
2114
- },
2115
- __wbindgen_cast_0000000000000001: function(arg0) {
2116
- const ret = arg0;
2117
- return ret;
2118
- },
2119
- __wbindgen_cast_0000000000000002: function(arg0) {
2120
- const ret = arg0;
2121
- return ret;
2122
- },
2123
- __wbindgen_cast_0000000000000003: function(arg0, arg1) {
2124
- const ret = getArrayU8FromWasm0(arg0, arg1);
2125
- return ret;
2126
- },
2127
- __wbindgen_cast_0000000000000004: function(arg0, arg1) {
2128
- const ret = getStringFromWasm0(arg0, arg1);
2129
- return ret;
2130
- },
2131
- __wbindgen_cast_0000000000000005: function(arg0) {
2132
- const ret = BigInt.asUintN(64, arg0);
2133
- return ret;
2134
- },
2135
- __wbindgen_init_externref_table: function() {
2136
- const table = wasm.__wbindgen_externrefs;
2137
- const offset = table.grow(4);
2138
- table.set(0, undefined);
2139
- table.set(offset + 0, undefined);
2140
- table.set(offset + 1, null);
2141
- table.set(offset + 2, true);
2142
- table.set(offset + 3, false);
2143
- }
2144
- };
2145
- return {
2146
- __proto__: null,
2147
- "./router_ab_ed25519_yao_client_bg.js": import0
2148
- };
2149
- }
2150
- var WasmActivatedClientV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmactivatedclientv1_free(ptr, 1));
2151
- var WasmClientSigningShareV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmclientsigningsharev1_free(ptr, 1));
2152
- var WasmEd25519YaoClientRootExportSessionV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmed25519yaoclientrootexportsessionv1_free(ptr, 1));
2153
- var WasmEd25519YaoLaneClientV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmed25519yaolaneclientv1_free(ptr, 1));
2154
- var WasmEd25519YaoLaneSourceV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmed25519yaolanesourcev1_free(ptr, 1));
2155
- var WasmEd25519YaoSourcePreservingRegistrationSessionV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmed25519yaosourcepreservingregistrationsessionv1_free(ptr, 1));
2156
- var WasmExportedEd25519SeedV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmexporteded25519seedv1_free(ptr, 1));
2157
- var WasmOrdinaryEd25519ActivationClientMaterialV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmordinaryed25519activationclientmaterialv1_free(ptr, 1));
2158
- var WasmWalletCustodySeedExportSessionV1Finalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_wasmwalletcustodyseedexportsessionv1_free(ptr, 1));
2159
- function addToExternrefTable0(obj) {
2160
- const idx = wasm.__externref_table_alloc();
2161
- wasm.__wbindgen_externrefs.set(idx, obj);
2162
- return idx;
2163
- }
2164
- function _assertClass(instance, klass) {
2165
- if (!(instance instanceof klass)) {
2166
- throw new Error(`expected instance of ${klass.name}`);
2167
- }
2168
- }
2169
- function debugString(val) {
2170
- const type = typeof val;
2171
- if (type == "number" || type == "boolean" || val == null) {
2172
- return `${val}`;
2173
- }
2174
- if (type == "string") {
2175
- return `"${val}"`;
2176
- }
2177
- if (type == "symbol") {
2178
- const description = val.description;
2179
- if (description == null) {
2180
- return "Symbol";
2181
- } else {
2182
- return `Symbol(${description})`;
2183
- }
2184
- }
2185
- if (type == "function") {
2186
- const name = val.name;
2187
- if (typeof name == "string" && name.length > 0) {
2188
- return `Function(${name})`;
2189
- } else {
2190
- return "Function";
2191
- }
2192
- }
2193
- if (Array.isArray(val)) {
2194
- const length = val.length;
2195
- let debug = "[";
2196
- if (length > 0) {
2197
- debug += debugString(val[0]);
2198
- }
2199
- for (let i = 1;i < length; i++) {
2200
- debug += ", " + debugString(val[i]);
2201
- }
2202
- debug += "]";
2203
- return debug;
2204
- }
2205
- const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
2206
- let className;
2207
- if (builtInMatches && builtInMatches.length > 1) {
2208
- className = builtInMatches[1];
2209
- } else {
2210
- return toString.call(val);
2211
- }
2212
- if (className == "Object") {
2213
- try {
2214
- return "Object(" + JSON.stringify(val) + ")";
2215
- } catch (_) {
2216
- return "Object";
2217
- }
2218
- }
2219
- if (val instanceof Error) {
2220
- return `${val.name}: ${val.message}
2221
- ${val.stack}`;
2222
- }
2223
- return className;
2224
- }
2225
- function getArrayU8FromWasm0(ptr, len) {
2226
- ptr = ptr >>> 0;
2227
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
2228
- }
2229
- var cachedDataViewMemory0 = null;
2230
- function getDataViewMemory0() {
2231
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
2232
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
2233
- }
2234
- return cachedDataViewMemory0;
2235
- }
2236
- function getStringFromWasm0(ptr, len) {
2237
- return decodeText(ptr >>> 0, len);
2238
- }
2239
- var cachedUint8ArrayMemory0 = null;
2240
- function getUint8ArrayMemory0() {
2241
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
2242
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
2243
- }
2244
- return cachedUint8ArrayMemory0;
2245
- }
2246
- function handleError(f, args) {
2247
- try {
2248
- return f.apply(this, args);
2249
- } catch (e) {
2250
- const idx = addToExternrefTable0(e);
2251
- wasm.__wbindgen_exn_store(idx);
2252
- }
2253
- }
2254
- function isLikeNone(x) {
2255
- return x === undefined || x === null;
2256
- }
2257
- function passArray8ToWasm0(arg, malloc) {
2258
- const ptr = malloc(arg.length * 1, 1) >>> 0;
2259
- getUint8ArrayMemory0().set(arg, ptr / 1);
2260
- WASM_VECTOR_LEN = arg.length;
2261
- return ptr;
2262
- }
2263
- function passStringToWasm0(arg, malloc, realloc) {
2264
- if (realloc === undefined) {
2265
- const buf = cachedTextEncoder.encode(arg);
2266
- const ptr = malloc(buf.length, 1) >>> 0;
2267
- getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
2268
- WASM_VECTOR_LEN = buf.length;
2269
- return ptr;
2270
- }
2271
- let len = arg.length;
2272
- let ptr = malloc(len, 1) >>> 0;
2273
- const mem = getUint8ArrayMemory0();
2274
- let offset = 0;
2275
- for (;offset < len; offset++) {
2276
- const code = arg.charCodeAt(offset);
2277
- if (code > 127)
2278
- break;
2279
- mem[ptr + offset] = code;
2280
- }
2281
- if (offset !== len) {
2282
- if (offset !== 0) {
2283
- arg = arg.slice(offset);
1786
+ complete(result_json) {
1787
+ const ptr0 = passStringToWasm0(result_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1788
+ const len0 = WASM_VECTOR_LEN;
1789
+ const ret = wasm.wasmwalletcustodyseedexportsessionv1_complete(this.__wbg_ptr, ptr0, len0);
1790
+ if (ret[2]) {
1791
+ throw takeFromExternrefTable0(ret[1]);
2284
1792
  }
2285
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
2286
- const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
2287
- const ret = cachedTextEncoder.encodeInto(arg, view);
2288
- offset += ret.written;
2289
- ptr = realloc(ptr, len, offset, 1) >>> 0;
2290
- }
2291
- WASM_VECTOR_LEN = offset;
2292
- return ptr;
2293
- }
2294
- function takeFromExternrefTable0(idx) {
2295
- const value = wasm.__wbindgen_externrefs.get(idx);
2296
- wasm.__externref_table_dealloc(idx);
2297
- return value;
2298
- }
2299
- var cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
2300
- cachedTextDecoder.decode();
2301
- var MAX_SAFARI_DECODE_BYTES = 2146435072;
2302
- var numBytesDecoded = 0;
2303
- function decodeText(ptr, len) {
2304
- numBytesDecoded += len;
2305
- if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
2306
- cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
2307
- cachedTextDecoder.decode();
2308
- numBytesDecoded = len;
2309
- }
2310
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
2311
- }
2312
- var cachedTextEncoder = new TextEncoder;
2313
- if (!("encodeInto" in cachedTextEncoder)) {
2314
- cachedTextEncoder.encodeInto = function(arg, view) {
2315
- const buf = cachedTextEncoder.encode(arg);
2316
- view.set(buf);
2317
- return {
2318
- read: arg.length,
2319
- written: buf.length
2320
- };
2321
- };
2322
- }
2323
- var WASM_VECTOR_LEN = 0;
2324
- var wasmModule;
2325
- var wasmInstance;
2326
- var wasm;
2327
- function __wbg_finalize_init(instance, module) {
2328
- wasmInstance = instance;
2329
- wasm = instance.exports;
2330
- wasmModule = module;
2331
- cachedDataViewMemory0 = null;
2332
- cachedUint8ArrayMemory0 = null;
2333
- wasm.__wbindgen_start();
2334
- return wasm;
1793
+ return WasmExportedEd25519SeedV1.__wrap(ret[0]);
1794
+ }
2335
1795
  }
2336
1796
  async function __wbg_load(module, imports) {
2337
1797
  if (typeof Response === "function" && module instanceof Response) {
@@ -2339,8 +1799,7 @@ async function __wbg_load(module, imports) {
2339
1799
  try {
2340
1800
  return await WebAssembly.instantiateStreaming(module, imports);
2341
1801
  } catch (e) {
2342
- const validResponse = module.ok && expectedResponseType(module.type);
2343
- if (validResponse && module.headers.get("Content-Type") !== "application/wasm") {
1802
+ if (module.headers.get("Content-Type") != "application/wasm") {
2344
1803
  console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
2345
1804
  } else {
2346
1805
  throw e;
@@ -2357,36 +1816,345 @@ async function __wbg_load(module, imports) {
2357
1816
  return instance;
2358
1817
  }
2359
1818
  }
2360
- function expectedResponseType(type) {
2361
- switch (type) {
2362
- case "basic":
2363
- case "cors":
2364
- case "default":
2365
- return true;
1819
+ }
1820
+ function __wbg_get_imports() {
1821
+ const imports = {};
1822
+ imports.wbg = {};
1823
+ imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
1824
+ const ret = String(arg1);
1825
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1826
+ const len1 = WASM_VECTOR_LEN;
1827
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1828
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1829
+ };
1830
+ imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
1831
+ const ret = arg0.buffer;
1832
+ return ret;
1833
+ };
1834
+ imports.wbg.__wbg_call_672a4d21634d4a24 = function() {
1835
+ return handleError(function(arg0, arg1) {
1836
+ const ret = arg0.call(arg1);
1837
+ return ret;
1838
+ }, arguments);
1839
+ };
1840
+ imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() {
1841
+ return handleError(function(arg0, arg1, arg2) {
1842
+ const ret = arg0.call(arg1, arg2);
1843
+ return ret;
1844
+ }, arguments);
1845
+ };
1846
+ imports.wbg.__wbg_crypto_86f2631e91b51511 = function(arg0) {
1847
+ const ret = arg0.crypto;
1848
+ return ret;
1849
+ };
1850
+ imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
1851
+ const ret = arg0.done;
1852
+ return ret;
1853
+ };
1854
+ imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
1855
+ const ret = Object.entries(arg0);
1856
+ return ret;
1857
+ };
1858
+ imports.wbg.__wbg_getRandomValues_b3f15fcbfabb0f8b = function() {
1859
+ return handleError(function(arg0, arg1) {
1860
+ arg0.getRandomValues(arg1);
1861
+ }, arguments);
1862
+ };
1863
+ imports.wbg.__wbg_get_67b2ba62fc30de12 = function() {
1864
+ return handleError(function(arg0, arg1) {
1865
+ const ret = Reflect.get(arg0, arg1);
1866
+ return ret;
1867
+ }, arguments);
1868
+ };
1869
+ imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
1870
+ const ret = arg0[arg1 >>> 0];
1871
+ return ret;
1872
+ };
1873
+ imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
1874
+ const ret = arg0[arg1];
1875
+ return ret;
1876
+ };
1877
+ imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
1878
+ let result;
1879
+ try {
1880
+ result = arg0 instanceof ArrayBuffer;
1881
+ } catch (_) {
1882
+ result = false;
2366
1883
  }
2367
- return false;
2368
- }
1884
+ const ret = result;
1885
+ return ret;
1886
+ };
1887
+ imports.wbg.__wbg_instanceof_Map_f3469ce2244d2430 = function(arg0) {
1888
+ let result;
1889
+ try {
1890
+ result = arg0 instanceof Map;
1891
+ } catch (_) {
1892
+ result = false;
1893
+ }
1894
+ const ret = result;
1895
+ return ret;
1896
+ };
1897
+ imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
1898
+ let result;
1899
+ try {
1900
+ result = arg0 instanceof Uint8Array;
1901
+ } catch (_) {
1902
+ result = false;
1903
+ }
1904
+ const ret = result;
1905
+ return ret;
1906
+ };
1907
+ imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
1908
+ const ret = Array.isArray(arg0);
1909
+ return ret;
1910
+ };
1911
+ imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
1912
+ const ret = Number.isSafeInteger(arg0);
1913
+ return ret;
1914
+ };
1915
+ imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
1916
+ const ret = Symbol.iterator;
1917
+ return ret;
1918
+ };
1919
+ imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
1920
+ const ret = arg0.length;
1921
+ return ret;
1922
+ };
1923
+ imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
1924
+ const ret = arg0.length;
1925
+ return ret;
1926
+ };
1927
+ imports.wbg.__wbg_msCrypto_d562bbe83e0d4b91 = function(arg0) {
1928
+ const ret = arg0.msCrypto;
1929
+ return ret;
1930
+ };
1931
+ imports.wbg.__wbg_new_405e22f390576ce2 = function() {
1932
+ const ret = new Object;
1933
+ return ret;
1934
+ };
1935
+ imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
1936
+ const ret = new Uint8Array(arg0);
1937
+ return ret;
1938
+ };
1939
+ imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
1940
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
1941
+ return ret;
1942
+ };
1943
+ imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
1944
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
1945
+ return ret;
1946
+ };
1947
+ imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
1948
+ const ret = new Uint8Array(arg0 >>> 0);
1949
+ return ret;
1950
+ };
1951
+ imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
1952
+ const ret = arg0.next;
1953
+ return ret;
1954
+ };
1955
+ imports.wbg.__wbg_next_6574e1a8a62d1055 = function() {
1956
+ return handleError(function(arg0) {
1957
+ const ret = arg0.next();
1958
+ return ret;
1959
+ }, arguments);
1960
+ };
1961
+ imports.wbg.__wbg_node_e1f24f89a7336c2e = function(arg0) {
1962
+ const ret = arg0.node;
1963
+ return ret;
1964
+ };
1965
+ imports.wbg.__wbg_process_3975fd6c72f520aa = function(arg0) {
1966
+ const ret = arg0.process;
1967
+ return ret;
1968
+ };
1969
+ imports.wbg.__wbg_randomFillSync_f8c153b79f285817 = function() {
1970
+ return handleError(function(arg0, arg1) {
1971
+ arg0.randomFillSync(arg1);
1972
+ }, arguments);
1973
+ };
1974
+ imports.wbg.__wbg_require_b74f47fc2d022fd6 = function() {
1975
+ return handleError(function() {
1976
+ const ret = module_router_ab_ed25519_yao_client.require;
1977
+ return ret;
1978
+ }, arguments);
1979
+ };
1980
+ imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
1981
+ arg0[arg1] = arg2;
1982
+ };
1983
+ imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
1984
+ arg0.set(arg1, arg2 >>> 0);
1985
+ };
1986
+ imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() {
1987
+ return handleError(function(arg0, arg1, arg2) {
1988
+ const ret = Reflect.set(arg0, arg1, arg2);
1989
+ return ret;
1990
+ }, arguments);
1991
+ };
1992
+ imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
1993
+ const ret = typeof global === "undefined" ? null : global;
1994
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1995
+ };
1996
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
1997
+ const ret = typeof globalThis === "undefined" ? null : globalThis;
1998
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1999
+ };
2000
+ imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
2001
+ const ret = typeof self === "undefined" ? null : self;
2002
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2003
+ };
2004
+ imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
2005
+ const ret = typeof window === "undefined" ? null : window;
2006
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2007
+ };
2008
+ imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
2009
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
2010
+ return ret;
2011
+ };
2012
+ imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
2013
+ const ret = arg0.value;
2014
+ return ret;
2015
+ };
2016
+ imports.wbg.__wbg_versions_4e31226f5e8dc909 = function(arg0) {
2017
+ const ret = arg0.versions;
2018
+ return ret;
2019
+ };
2020
+ imports.wbg.__wbindgen_as_number = function(arg0) {
2021
+ const ret = +arg0;
2022
+ return ret;
2023
+ };
2024
+ imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
2025
+ const ret = arg0;
2026
+ return ret;
2027
+ };
2028
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2029
+ const ret = BigInt.asUintN(64, arg0);
2030
+ return ret;
2031
+ };
2032
+ imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
2033
+ const v = arg1;
2034
+ const ret = typeof v === "bigint" ? v : undefined;
2035
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
2036
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2037
+ };
2038
+ imports.wbg.__wbindgen_boolean_get = function(arg0) {
2039
+ const v = arg0;
2040
+ const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
2041
+ return ret;
2042
+ };
2043
+ imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
2044
+ const ret = debugString(arg1);
2045
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2046
+ const len1 = WASM_VECTOR_LEN;
2047
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2048
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2049
+ };
2050
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
2051
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2052
+ return ret;
2053
+ };
2054
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
2055
+ const ret = arg0 in arg1;
2056
+ return ret;
2057
+ };
2058
+ imports.wbg.__wbindgen_init_externref_table = function() {
2059
+ const table = wasm.__wbindgen_export_4;
2060
+ const offset = table.grow(4);
2061
+ table.set(0, undefined);
2062
+ table.set(offset + 0, undefined);
2063
+ table.set(offset + 1, null);
2064
+ table.set(offset + 2, true);
2065
+ table.set(offset + 3, false);
2066
+ };
2067
+ imports.wbg.__wbindgen_is_bigint = function(arg0) {
2068
+ const ret = typeof arg0 === "bigint";
2069
+ return ret;
2070
+ };
2071
+ imports.wbg.__wbindgen_is_function = function(arg0) {
2072
+ const ret = typeof arg0 === "function";
2073
+ return ret;
2074
+ };
2075
+ imports.wbg.__wbindgen_is_object = function(arg0) {
2076
+ const val = arg0;
2077
+ const ret = typeof val === "object" && val !== null;
2078
+ return ret;
2079
+ };
2080
+ imports.wbg.__wbindgen_is_string = function(arg0) {
2081
+ const ret = typeof arg0 === "string";
2082
+ return ret;
2083
+ };
2084
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
2085
+ const ret = arg0 === undefined;
2086
+ return ret;
2087
+ };
2088
+ imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
2089
+ const ret = arg0 === arg1;
2090
+ return ret;
2091
+ };
2092
+ imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
2093
+ const ret = arg0 == arg1;
2094
+ return ret;
2095
+ };
2096
+ imports.wbg.__wbindgen_memory = function() {
2097
+ const ret = wasm.memory;
2098
+ return ret;
2099
+ };
2100
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
2101
+ const obj = arg1;
2102
+ const ret = typeof obj === "number" ? obj : undefined;
2103
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
2104
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2105
+ };
2106
+ imports.wbg.__wbindgen_number_new = function(arg0) {
2107
+ const ret = arg0;
2108
+ return ret;
2109
+ };
2110
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
2111
+ const obj = arg1;
2112
+ const ret = typeof obj === "string" ? obj : undefined;
2113
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2114
+ var len1 = WASM_VECTOR_LEN;
2115
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2116
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2117
+ };
2118
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
2119
+ const ret = getStringFromWasm0(arg0, arg1);
2120
+ return ret;
2121
+ };
2122
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
2123
+ throw new Error(getStringFromWasm0(arg0, arg1));
2124
+ };
2125
+ return imports;
2126
+ }
2127
+ function __wbg_init_memory(imports, memory) {}
2128
+ function __wbg_finalize_init(instance, module) {
2129
+ wasm = instance.exports;
2130
+ __wbg_init.__wbindgen_wasm_module = module;
2131
+ cachedDataViewMemory0 = null;
2132
+ cachedUint8ArrayMemory0 = null;
2133
+ wasm.__wbindgen_start();
2134
+ return wasm;
2369
2135
  }
2370
2136
  async function __wbg_init(module_or_path) {
2371
2137
  if (wasm !== undefined)
2372
2138
  return wasm;
2373
- if (module_or_path !== undefined) {
2139
+ if (typeof module_or_path !== "undefined") {
2374
2140
  if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
2375
2141
  ({ module_or_path } = module_or_path);
2376
2142
  } else {
2377
2143
  console.warn("using deprecated parameters for the initialization function; pass a single object instead");
2378
2144
  }
2379
2145
  }
2380
- if (module_or_path === undefined) {
2146
+ if (typeof module_or_path === "undefined") {
2381
2147
  module_or_path = new URL("router_ab_ed25519_yao_client_bg.wasm", import.meta.url);
2382
2148
  }
2383
2149
  const imports = __wbg_get_imports();
2384
2150
  if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
2385
2151
  module_or_path = fetch(module_or_path);
2386
2152
  }
2153
+ __wbg_init_memory(imports);
2387
2154
  const { instance, module } = await __wbg_load(await module_or_path, imports);
2388
2155
  return __wbg_finalize_init(instance, module);
2389
2156
  }
2157
+ var router_ab_ed25519_yao_client_default = __wbg_init;
2390
2158
 
2391
2159
  // ../shared-ts/src/utils/routerAbNormalSigningIdentity.ts
2392
2160
  function requireExactFields(record, expectedFields, label) {
@@ -3746,7 +3514,7 @@ function resetYaoClientInitialization(error) {
3746
3514
  class RouterAbEd25519YaoClientV1 {
3747
3515
  constructor() {}
3748
3516
  static async initializeBundled() {
3749
- yaoClientInitialization ??= __wbg_init().catch(resetYaoClientInitialization);
3517
+ yaoClientInitialization ??= router_ab_ed25519_yao_client_default().catch(resetYaoClientInitialization);
3750
3518
  await yaoClientInitialization;
3751
3519
  return new RouterAbEd25519YaoClientV1;
3752
3520
  }
@@ -7202,7 +6970,7 @@ function getDataViewMemory02() {
7202
6970
  }
7203
6971
  function getStringFromWasm02(ptr, len) {
7204
6972
  ptr = ptr >>> 0;
7205
- return decodeText2(ptr, len);
6973
+ return decodeText(ptr, len);
7206
6974
  }
7207
6975
  var cachedUint8ArrayMemory02 = null;
7208
6976
  function getUint8ArrayMemory02() {
@@ -7266,14 +7034,14 @@ function takeFromExternrefTable02(idx) {
7266
7034
  }
7267
7035
  var cachedTextDecoder2 = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
7268
7036
  cachedTextDecoder2.decode();
7269
- var MAX_SAFARI_DECODE_BYTES2 = 2146435072;
7270
- var numBytesDecoded2 = 0;
7271
- function decodeText2(ptr, len) {
7272
- numBytesDecoded2 += len;
7273
- if (numBytesDecoded2 >= MAX_SAFARI_DECODE_BYTES2) {
7037
+ var MAX_SAFARI_DECODE_BYTES = 2146435072;
7038
+ var numBytesDecoded = 0;
7039
+ function decodeText(ptr, len) {
7040
+ numBytesDecoded += len;
7041
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
7274
7042
  cachedTextDecoder2 = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
7275
7043
  cachedTextDecoder2.decode();
7276
- numBytesDecoded2 = len;
7044
+ numBytesDecoded = len;
7277
7045
  }
7278
7046
  return cachedTextDecoder2.decode(getUint8ArrayMemory02().subarray(ptr, ptr + len));
7279
7047
  }
@@ -7289,11 +7057,11 @@ if (!("encodeInto" in cachedTextEncoder2)) {
7289
7057
  };
7290
7058
  }
7291
7059
  var WASM_VECTOR_LEN2 = 0;
7292
- var wasmModule2;
7060
+ var wasmModule;
7293
7061
  var wasm2;
7294
7062
  function __wbg_finalize_init2(instance, module) {
7295
7063
  wasm2 = instance.exports;
7296
- wasmModule2 = module;
7064
+ wasmModule = module;
7297
7065
  cachedDataViewMemory02 = null;
7298
7066
  cachedUint8ArrayMemory02 = null;
7299
7067
  wasm2.__wbindgen_start();
@@ -7399,7 +7167,7 @@ function getArrayU8FromWasm03(ptr, len) {
7399
7167
  }
7400
7168
  function getStringFromWasm03(ptr, len) {
7401
7169
  ptr = ptr >>> 0;
7402
- return decodeText3(ptr, len);
7170
+ return decodeText2(ptr, len);
7403
7171
  }
7404
7172
  var cachedUint8ArrayMemory03 = null;
7405
7173
  function getUint8ArrayMemory03() {
@@ -7452,14 +7220,14 @@ function takeFromExternrefTable03(idx) {
7452
7220
  }
7453
7221
  var cachedTextDecoder3 = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
7454
7222
  cachedTextDecoder3.decode();
7455
- var MAX_SAFARI_DECODE_BYTES3 = 2146435072;
7456
- var numBytesDecoded3 = 0;
7457
- function decodeText3(ptr, len) {
7458
- numBytesDecoded3 += len;
7459
- if (numBytesDecoded3 >= MAX_SAFARI_DECODE_BYTES3) {
7223
+ var MAX_SAFARI_DECODE_BYTES2 = 2146435072;
7224
+ var numBytesDecoded2 = 0;
7225
+ function decodeText2(ptr, len) {
7226
+ numBytesDecoded2 += len;
7227
+ if (numBytesDecoded2 >= MAX_SAFARI_DECODE_BYTES2) {
7460
7228
  cachedTextDecoder3 = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
7461
7229
  cachedTextDecoder3.decode();
7462
- numBytesDecoded3 = len;
7230
+ numBytesDecoded2 = len;
7463
7231
  }
7464
7232
  return cachedTextDecoder3.decode(getUint8ArrayMemory03().subarray(ptr, ptr + len));
7465
7233
  }
@@ -7475,11 +7243,11 @@ if (!("encodeInto" in cachedTextEncoder3)) {
7475
7243
  };
7476
7244
  }
7477
7245
  var WASM_VECTOR_LEN3 = 0;
7478
- var wasmModule3;
7246
+ var wasmModule2;
7479
7247
  var wasm3;
7480
7248
  function __wbg_finalize_init3(instance, module) {
7481
7249
  wasm3 = instance.exports;
7482
- wasmModule3 = module;
7250
+ wasmModule2 = module;
7483
7251
  cachedUint8ArrayMemory03 = null;
7484
7252
  wasm3.__wbindgen_start();
7485
7253
  return wasm3;
@@ -7552,7 +7320,7 @@ function getUint8ArrayMemory04() {
7552
7320
  var cachedTextEncoder4 = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
7553
7321
  throw Error("TextEncoder not available");
7554
7322
  } };
7555
- var encodeString = typeof cachedTextEncoder4.encodeInto === "function" ? function(arg, view) {
7323
+ var encodeString2 = typeof cachedTextEncoder4.encodeInto === "function" ? function(arg, view) {
7556
7324
  return cachedTextEncoder4.encodeInto(arg, view);
7557
7325
  } : function(arg, view) {
7558
7326
  const buf = cachedTextEncoder4.encode(arg);
@@ -7586,7 +7354,7 @@ function passStringToWasm04(arg, malloc, realloc) {
7586
7354
  }
7587
7355
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
7588
7356
  const view = getUint8ArrayMemory04().subarray(ptr + offset, ptr + len);
7589
- const ret = encodeString(arg, view);
7357
+ const ret = encodeString2(arg, view);
7590
7358
  offset += ret.written;
7591
7359
  ptr = realloc(ptr, len, offset, 1) >>> 0;
7592
7360
  }
@@ -8156,7 +7924,7 @@ function __wbg_get_imports4() {
8156
7924
  };
8157
7925
  return imports;
8158
7926
  }
8159
- function __wbg_init_memory(imports, memory) {}
7927
+ function __wbg_init_memory2(imports, memory) {}
8160
7928
  function __wbg_finalize_init4(instance, module) {
8161
7929
  wasm4 = instance.exports;
8162
7930
  __wbg_init4.__wbindgen_wasm_module = module;
@@ -8182,7 +7950,7 @@ async function __wbg_init4(module_or_path) {
8182
7950
  if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
8183
7951
  module_or_path = fetch(module_or_path);
8184
7952
  }
8185
- __wbg_init_memory(imports);
7953
+ __wbg_init_memory2(imports);
8186
7954
  const { instance, module } = await __wbg_load4(await module_or_path, imports);
8187
7955
  return __wbg_finalize_init4(instance, module);
8188
7956
  }