@wireapp/core-crypto 8.0.1 → 9.0.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.
- package/README.md +5 -0
- package/package.json +10 -17
- package/src/autogenerated/core-crypto-ffi_bg.wasm +0 -0
- package/src/autogenerated/core-crypto-ffi_bg.wasm.d.ts +275 -0
- package/src/corecrypto.d.ts +159 -18
- package/src/corecrypto.js +228 -288
- package/src/CoreCrypto.ts +0 -116
package/src/corecrypto.js
CHANGED
@@ -77,7 +77,6 @@ class CoreCryptoError extends Error {
|
|
77
77
|
}
|
78
78
|
// src/autogenerated/core-crypto-ffi.js
|
79
79
|
var wasm;
|
80
|
-
var WASM_VECTOR_LEN = 0;
|
81
80
|
var cachedUint8ArrayMemory0 = null;
|
82
81
|
function getUint8ArrayMemory0() {
|
83
82
|
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
@@ -85,6 +84,30 @@ function getUint8ArrayMemory0() {
|
|
85
84
|
}
|
86
85
|
return cachedUint8ArrayMemory0;
|
87
86
|
}
|
87
|
+
var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
|
88
|
+
throw Error("TextDecoder not available");
|
89
|
+
} };
|
90
|
+
if (typeof TextDecoder !== "undefined") {
|
91
|
+
cachedTextDecoder.decode();
|
92
|
+
}
|
93
|
+
var MAX_SAFARI_DECODE_BYTES = 2146435072;
|
94
|
+
var numBytesDecoded = 0;
|
95
|
+
function decodeText(ptr, len) {
|
96
|
+
numBytesDecoded += len;
|
97
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
98
|
+
cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
|
99
|
+
throw Error("TextDecoder not available");
|
100
|
+
} };
|
101
|
+
cachedTextDecoder.decode();
|
102
|
+
numBytesDecoded = len;
|
103
|
+
}
|
104
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
105
|
+
}
|
106
|
+
function getStringFromWasm0(ptr, len) {
|
107
|
+
ptr = ptr >>> 0;
|
108
|
+
return decodeText(ptr, len);
|
109
|
+
}
|
110
|
+
var WASM_VECTOR_LEN = 0;
|
88
111
|
var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
|
89
112
|
throw Error("TextEncoder not available");
|
90
113
|
} };
|
@@ -149,16 +172,6 @@ function handleError(f, args) {
|
|
149
172
|
wasm.__wbindgen_exn_store(idx);
|
150
173
|
}
|
151
174
|
}
|
152
|
-
var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
|
153
|
-
throw Error("TextDecoder not available");
|
154
|
-
} };
|
155
|
-
if (typeof TextDecoder !== "undefined") {
|
156
|
-
cachedTextDecoder.decode();
|
157
|
-
}
|
158
|
-
function getStringFromWasm0(ptr, len) {
|
159
|
-
ptr = ptr >>> 0;
|
160
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
161
|
-
}
|
162
175
|
function isLikeNone(x) {
|
163
176
|
return x === undefined || x === null;
|
164
177
|
}
|
@@ -325,17 +338,17 @@ function build_metadata() {
|
|
325
338
|
const ret = wasm.build_metadata();
|
326
339
|
return BuildMetadata.__wrap(ret);
|
327
340
|
}
|
328
|
-
function
|
329
|
-
wasm.
|
341
|
+
function __wbg_adapter_58(arg0, arg1, arg2) {
|
342
|
+
wasm.closure1016_externref_shim(arg0, arg1, arg2);
|
330
343
|
}
|
331
|
-
function
|
332
|
-
wasm.
|
344
|
+
function __wbg_adapter_61(arg0, arg1, arg2) {
|
345
|
+
wasm.closure2577_externref_shim(arg0, arg1, arg2);
|
333
346
|
}
|
334
|
-
function
|
335
|
-
wasm.
|
347
|
+
function __wbg_adapter_64(arg0, arg1, arg2) {
|
348
|
+
wasm.closure2883_externref_shim(arg0, arg1, arg2);
|
336
349
|
}
|
337
|
-
function
|
338
|
-
wasm.
|
350
|
+
function __wbg_adapter_537(arg0, arg1, arg2, arg3) {
|
351
|
+
wasm.closure2981_externref_shim(arg0, arg1, arg2, arg3);
|
339
352
|
}
|
340
353
|
var Ciphersuite = Object.freeze({
|
341
354
|
MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519: 1,
|
@@ -417,7 +430,6 @@ var WirePolicy = Object.freeze({
|
|
417
430
|
Ciphertext: 2,
|
418
431
|
"2": "Ciphertext"
|
419
432
|
});
|
420
|
-
var __wbindgen_enum_IdbCursorDirection = ["next", "nextunique", "prev", "prevunique"];
|
421
433
|
var __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
|
422
434
|
var AcmeChallengeFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_acmechallenge_free(ptr >>> 0, 1));
|
423
435
|
|
@@ -1372,6 +1384,14 @@ class CoreCryptoContext {
|
|
1372
1384
|
const ret = wasm.corecryptocontext_proteus_decrypt(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1373
1385
|
return ret;
|
1374
1386
|
}
|
1387
|
+
proteus_decrypt_safe(session_id, ciphertext) {
|
1388
|
+
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1389
|
+
const len0 = WASM_VECTOR_LEN;
|
1390
|
+
const ptr1 = passArray8ToWasm0(ciphertext, wasm.__wbindgen_malloc);
|
1391
|
+
const len1 = WASM_VECTOR_LEN;
|
1392
|
+
const ret = wasm.corecryptocontext_proteus_decrypt_safe(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1393
|
+
return ret;
|
1394
|
+
}
|
1375
1395
|
proteus_encrypt(session_id, plaintext) {
|
1376
1396
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1377
1397
|
const len0 = WASM_VECTOR_LEN;
|
@@ -1416,12 +1436,6 @@ class CoreCryptoContext {
|
|
1416
1436
|
const ret = wasm.corecryptocontext_proteus_fingerprint_remote(this.__wbg_ptr, ptr0, len0);
|
1417
1437
|
return ret;
|
1418
1438
|
}
|
1419
|
-
proteus_cryptobox_migrate(path) {
|
1420
|
-
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1421
|
-
const len0 = WASM_VECTOR_LEN;
|
1422
|
-
const ret = wasm.corecryptocontext_proteus_cryptobox_migrate(this.__wbg_ptr, ptr0, len0);
|
1423
|
-
return ret;
|
1424
|
-
}
|
1425
1439
|
proteus_reload_sessions() {
|
1426
1440
|
const ret = wasm.corecryptocontext_proteus_reload_sessions(this.__wbg_ptr);
|
1427
1441
|
return ret;
|
@@ -2515,13 +2529,15 @@ class X509Identity {
|
|
2515
2529
|
return BigInt.asUintN(64, ret);
|
2516
2530
|
}
|
2517
2531
|
}
|
2532
|
+
var EXPECTED_RESPONSE_TYPES = new Set(["basic", "cors", "default"]);
|
2518
2533
|
async function __wbg_load(module, imports) {
|
2519
2534
|
if (typeof Response === "function" && module instanceof Response) {
|
2520
2535
|
if (typeof WebAssembly.instantiateStreaming === "function") {
|
2521
2536
|
try {
|
2522
2537
|
return await WebAssembly.instantiateStreaming(module, imports);
|
2523
2538
|
} catch (e) {
|
2524
|
-
|
2539
|
+
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
2540
|
+
if (validResponse && module.headers.get("Content-Type") !== "application/wasm") {
|
2525
2541
|
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);
|
2526
2542
|
} else {
|
2527
2543
|
throw e;
|
@@ -2542,6 +2558,10 @@ async function __wbg_load(module, imports) {
|
|
2542
2558
|
function __wbg_get_imports() {
|
2543
2559
|
const imports = {};
|
2544
2560
|
imports.wbg = {};
|
2561
|
+
imports.wbg.__wbg_Error_0497d5bdba9362e5 = function(arg0, arg1) {
|
2562
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
2563
|
+
return ret;
|
2564
|
+
};
|
2545
2565
|
imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
2546
2566
|
const ret = String(arg1);
|
2547
2567
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -2553,12 +2573,7 @@ function __wbg_get_imports() {
|
|
2553
2573
|
const ret = AcmeDirectory.__wrap(arg0);
|
2554
2574
|
return ret;
|
2555
2575
|
};
|
2556
|
-
imports.wbg.
|
2557
|
-
return handleError(function(arg0, arg1) {
|
2558
|
-
arg0.advance(arg1 >>> 0);
|
2559
|
-
}, arguments);
|
2560
|
-
};
|
2561
|
-
imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
2576
|
+
imports.wbg.__wbg_buffer_a1a27a0dfa70165d = function(arg0) {
|
2562
2577
|
const ret = arg0.buffer;
|
2563
2578
|
return ret;
|
2564
2579
|
};
|
@@ -2566,27 +2581,27 @@ function __wbg_get_imports() {
|
|
2566
2581
|
const ret = BufferedDecryptedMessage.__wrap(arg0);
|
2567
2582
|
return ret;
|
2568
2583
|
};
|
2569
|
-
imports.wbg.
|
2570
|
-
return handleError(function(arg0, arg1) {
|
2571
|
-
const ret = arg0.call(arg1);
|
2584
|
+
imports.wbg.__wbg_call_1b920c3ac0afee4b = function() {
|
2585
|
+
return handleError(function(arg0, arg1, arg2, arg3) {
|
2586
|
+
const ret = arg0.call(arg1, arg2, arg3);
|
2572
2587
|
return ret;
|
2573
2588
|
}, arguments);
|
2574
2589
|
};
|
2575
|
-
imports.wbg.
|
2576
|
-
return handleError(function(arg0, arg1, arg2) {
|
2577
|
-
const ret = arg0.call(arg1, arg2);
|
2590
|
+
imports.wbg.__wbg_call_36f1bbf64b4cf7c7 = function() {
|
2591
|
+
return handleError(function(arg0, arg1, arg2, arg3, arg4) {
|
2592
|
+
const ret = arg0.call(arg1, arg2, arg3, arg4);
|
2578
2593
|
return ret;
|
2579
2594
|
}, arguments);
|
2580
2595
|
};
|
2581
|
-
imports.wbg.
|
2582
|
-
return handleError(function(arg0, arg1, arg2
|
2583
|
-
const ret = arg0.call(arg1, arg2
|
2596
|
+
imports.wbg.__wbg_call_f2db6205e5c51dc8 = function() {
|
2597
|
+
return handleError(function(arg0, arg1, arg2) {
|
2598
|
+
const ret = arg0.call(arg1, arg2);
|
2584
2599
|
return ret;
|
2585
2600
|
}, arguments);
|
2586
2601
|
};
|
2587
|
-
imports.wbg.
|
2588
|
-
return handleError(function(arg0, arg1
|
2589
|
-
const ret = arg0.call(arg1
|
2602
|
+
imports.wbg.__wbg_call_fbe8be8bf6436ce5 = function() {
|
2603
|
+
return handleError(function(arg0, arg1) {
|
2604
|
+
const ret = arg0.call(arg1);
|
2590
2605
|
return ret;
|
2591
2606
|
}, arguments);
|
2592
2607
|
};
|
@@ -2598,23 +2613,13 @@ function __wbg_get_imports() {
|
|
2598
2613
|
const ret = ClientId.__unwrap(arg0);
|
2599
2614
|
return ret;
|
2600
2615
|
};
|
2601
|
-
imports.wbg.
|
2616
|
+
imports.wbg.__wbg_close_2079e209ea5709b5 = function(arg0) {
|
2602
2617
|
arg0.close();
|
2603
2618
|
};
|
2604
2619
|
imports.wbg.__wbg_commitbundle_new = function(arg0) {
|
2605
2620
|
const ret = CommitBundle.__wrap(arg0);
|
2606
2621
|
return ret;
|
2607
2622
|
};
|
2608
|
-
imports.wbg.__wbg_continue_91e59787d3598bbb = function() {
|
2609
|
-
return handleError(function(arg0, arg1) {
|
2610
|
-
arg0.continue(arg1);
|
2611
|
-
}, arguments);
|
2612
|
-
};
|
2613
|
-
imports.wbg.__wbg_continue_c46c11d3dbe1b030 = function() {
|
2614
|
-
return handleError(function(arg0) {
|
2615
|
-
arg0.continue();
|
2616
|
-
}, arguments);
|
2617
|
-
};
|
2618
2623
|
imports.wbg.__wbg_conversationid_new = function(arg0) {
|
2619
2624
|
const ret = ConversationId.__wrap(arg0);
|
2620
2625
|
return ret;
|
@@ -2623,31 +2628,31 @@ function __wbg_get_imports() {
|
|
2623
2628
|
const ret = CoreCrypto.__wrap(arg0);
|
2624
2629
|
return ret;
|
2625
2630
|
};
|
2626
|
-
imports.wbg.
|
2627
|
-
return handleError(function(arg0) {
|
2628
|
-
const ret = arg0.count();
|
2629
|
-
return ret;
|
2630
|
-
}, arguments);
|
2631
|
-
};
|
2632
|
-
imports.wbg.__wbg_count_9dbedee4d2474ff8 = function() {
|
2631
|
+
imports.wbg.__wbg_count_003c51d52ed50de1 = function() {
|
2633
2632
|
return handleError(function(arg0, arg1) {
|
2634
2633
|
const ret = arg0.count(arg1);
|
2635
2634
|
return ret;
|
2636
2635
|
}, arguments);
|
2637
2636
|
};
|
2638
|
-
imports.wbg.
|
2639
|
-
return handleError(function(arg0
|
2640
|
-
const ret = arg0.
|
2637
|
+
imports.wbg.__wbg_count_2941fdbb8154c02d = function() {
|
2638
|
+
return handleError(function(arg0) {
|
2639
|
+
const ret = arg0.count();
|
2641
2640
|
return ret;
|
2642
2641
|
}, arguments);
|
2643
2642
|
};
|
2644
|
-
imports.wbg.
|
2643
|
+
imports.wbg.__wbg_createIndex_32ba53785b2ef24e = function() {
|
2645
2644
|
return handleError(function(arg0, arg1, arg2, arg3) {
|
2646
2645
|
const ret = arg0.createIndex(getStringFromWasm0(arg1, arg2), arg3);
|
2647
2646
|
return ret;
|
2648
2647
|
}, arguments);
|
2649
2648
|
};
|
2650
|
-
imports.wbg.
|
2649
|
+
imports.wbg.__wbg_createIndex_a343510ba567e58c = function() {
|
2650
|
+
return handleError(function(arg0, arg1, arg2, arg3, arg4) {
|
2651
|
+
const ret = arg0.createIndex(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
2652
|
+
return ret;
|
2653
|
+
}, arguments);
|
2654
|
+
};
|
2655
|
+
imports.wbg.__wbg_createObjectStore_382664053374be5d = function() {
|
2651
2656
|
return handleError(function(arg0, arg1, arg2, arg3) {
|
2652
2657
|
const ret = arg0.createObjectStore(getStringFromWasm0(arg1, arg2), arg3);
|
2653
2658
|
return ret;
|
@@ -2665,33 +2670,39 @@ function __wbg_get_imports() {
|
|
2665
2670
|
const ret = DecryptedMessage.__wrap(arg0);
|
2666
2671
|
return ret;
|
2667
2672
|
};
|
2668
|
-
imports.wbg.
|
2673
|
+
imports.wbg.__wbg_deleteIndex_7875e5f8968c581b = function() {
|
2669
2674
|
return handleError(function(arg0, arg1, arg2) {
|
2670
2675
|
arg0.deleteIndex(getStringFromWasm0(arg1, arg2));
|
2671
2676
|
}, arguments);
|
2672
2677
|
};
|
2673
|
-
imports.wbg.
|
2678
|
+
imports.wbg.__wbg_deleteObjectStore_7b427b19378475fd = function() {
|
2674
2679
|
return handleError(function(arg0, arg1, arg2) {
|
2675
2680
|
arg0.deleteObjectStore(getStringFromWasm0(arg1, arg2));
|
2676
2681
|
}, arguments);
|
2677
2682
|
};
|
2678
|
-
imports.wbg.
|
2683
|
+
imports.wbg.__wbg_delete_71b7921c73aa9378 = function() {
|
2679
2684
|
return handleError(function(arg0, arg1) {
|
2680
2685
|
const ret = arg0.delete(arg1);
|
2681
2686
|
return ret;
|
2682
2687
|
}, arguments);
|
2683
2688
|
};
|
2684
|
-
imports.wbg.
|
2689
|
+
imports.wbg.__wbg_done_4d01f352bade43b7 = function(arg0) {
|
2685
2690
|
const ret = arg0.done;
|
2686
2691
|
return ret;
|
2687
2692
|
};
|
2688
|
-
imports.wbg.
|
2689
|
-
const ret = Object.entries(arg0);
|
2690
|
-
return ret;
|
2691
|
-
};
|
2692
|
-
imports.wbg.__wbg_error_1004b8c64097413f = function(arg0, arg1) {
|
2693
|
+
imports.wbg.__wbg_error_3ff20bae955209a0 = function(arg0, arg1) {
|
2693
2694
|
console.error(arg0, arg1);
|
2694
2695
|
};
|
2696
|
+
imports.wbg.__wbg_error_4e978abc9692c0c5 = function() {
|
2697
|
+
return handleError(function(arg0) {
|
2698
|
+
const ret = arg0.error;
|
2699
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
2700
|
+
}, arguments);
|
2701
|
+
};
|
2702
|
+
imports.wbg.__wbg_error_56807b09713a4eb3 = function(arg0) {
|
2703
|
+
const ret = arg0.error;
|
2704
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
2705
|
+
};
|
2695
2706
|
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
2696
2707
|
let deferred0_0;
|
2697
2708
|
let deferred0_1;
|
@@ -2703,17 +2714,7 @@ function __wbg_get_imports() {
|
|
2703
2714
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
2704
2715
|
}
|
2705
2716
|
};
|
2706
|
-
imports.wbg.
|
2707
|
-
const ret = arg0.error;
|
2708
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
2709
|
-
};
|
2710
|
-
imports.wbg.__wbg_error_ff4ddaabdfc5dbb3 = function() {
|
2711
|
-
return handleError(function(arg0) {
|
2712
|
-
const ret = arg0.error;
|
2713
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
2714
|
-
}, arguments);
|
2715
|
-
};
|
2716
|
-
imports.wbg.__wbg_execute_804dc51b94ff3c62 = function() {
|
2717
|
+
imports.wbg.__wbg_execute_a9f51efd0ebf5d70 = function() {
|
2717
2718
|
return handleError(function(arg0, arg1) {
|
2718
2719
|
const ret = arg0.execute(CoreCryptoContext.__wrap(arg1));
|
2719
2720
|
return ret;
|
@@ -2731,25 +2732,25 @@ function __wbg_get_imports() {
|
|
2731
2732
|
const ret = FfiWireE2EIdentity.__wrap(arg0);
|
2732
2733
|
return ret;
|
2733
2734
|
};
|
2734
|
-
imports.wbg.
|
2735
|
-
return handleError(function(arg0) {
|
2736
|
-
const ret = arg0.getAll();
|
2737
|
-
return ret;
|
2738
|
-
}, arguments);
|
2739
|
-
};
|
2740
|
-
imports.wbg.__wbg_getAll_e1f497a121218ab5 = function() {
|
2735
|
+
imports.wbg.__wbg_getAll_301c6f62ce40415b = function() {
|
2741
2736
|
return handleError(function(arg0, arg1, arg2) {
|
2742
2737
|
const ret = arg0.getAll(arg1, arg2 >>> 0);
|
2743
2738
|
return ret;
|
2744
2739
|
}, arguments);
|
2745
2740
|
};
|
2746
|
-
imports.wbg.
|
2741
|
+
imports.wbg.__wbg_getAll_864be044b219e256 = function() {
|
2747
2742
|
return handleError(function(arg0, arg1) {
|
2748
2743
|
const ret = arg0.getAll(arg1);
|
2749
2744
|
return ret;
|
2750
2745
|
}, arguments);
|
2751
2746
|
};
|
2752
|
-
imports.wbg.
|
2747
|
+
imports.wbg.__wbg_getAll_f7942d960ff9f7b5 = function() {
|
2748
|
+
return handleError(function(arg0) {
|
2749
|
+
const ret = arg0.getAll();
|
2750
|
+
return ret;
|
2751
|
+
}, arguments);
|
2752
|
+
};
|
2753
|
+
imports.wbg.__wbg_getRandomValues_38a1ff1ea09f6cc7 = function() {
|
2753
2754
|
return handleError(function(arg0, arg1) {
|
2754
2755
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
2755
2756
|
}, arguments);
|
@@ -2759,38 +2760,38 @@ function __wbg_get_imports() {
|
|
2759
2760
|
arg0.getRandomValues(arg1);
|
2760
2761
|
}, arguments);
|
2761
2762
|
};
|
2762
|
-
imports.wbg.
|
2763
|
+
imports.wbg.__wbg_getTime_2afe67905d873e92 = function(arg0) {
|
2763
2764
|
const ret = arg0.getTime();
|
2764
2765
|
return ret;
|
2765
2766
|
};
|
2766
|
-
imports.wbg.
|
2767
|
-
const ret = arg1[arg2 >>> 0];
|
2768
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
2769
|
-
var len1 = WASM_VECTOR_LEN;
|
2770
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
2771
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
2772
|
-
};
|
2773
|
-
imports.wbg.__wbg_get_67b2ba62fc30de12 = function() {
|
2767
|
+
imports.wbg.__wbg_get_92470be87867c2e5 = function() {
|
2774
2768
|
return handleError(function(arg0, arg1) {
|
2775
2769
|
const ret = Reflect.get(arg0, arg1);
|
2776
2770
|
return ret;
|
2777
2771
|
}, arguments);
|
2778
2772
|
};
|
2779
|
-
imports.wbg.
|
2773
|
+
imports.wbg.__wbg_get_a131a44bd1eb6979 = function(arg0, arg1) {
|
2774
|
+
const ret = arg0[arg1 >>> 0];
|
2775
|
+
return ret;
|
2776
|
+
};
|
2777
|
+
imports.wbg.__wbg_get_a4719581b0d717ad = function() {
|
2780
2778
|
return handleError(function(arg0, arg1) {
|
2781
2779
|
const ret = arg0.get(arg1);
|
2782
2780
|
return ret;
|
2783
2781
|
}, arguments);
|
2784
2782
|
};
|
2785
|
-
imports.wbg.
|
2783
|
+
imports.wbg.__wbg_get_d37904b955701f99 = function() {
|
2786
2784
|
return handleError(function(arg0, arg1) {
|
2787
2785
|
const ret = arg0.get(arg1);
|
2788
2786
|
return ret;
|
2789
2787
|
}, arguments);
|
2790
2788
|
};
|
2791
|
-
imports.wbg.
|
2792
|
-
const ret =
|
2793
|
-
|
2789
|
+
imports.wbg.__wbg_get_f6d69e7b8be3e072 = function(arg0, arg1, arg2) {
|
2790
|
+
const ret = arg1[arg2 >>> 0];
|
2791
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
2792
|
+
var len1 = WASM_VECTOR_LEN;
|
2793
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
2794
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
2794
2795
|
};
|
2795
2796
|
imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
|
2796
2797
|
const ret = arg0[arg1];
|
@@ -2800,17 +2801,17 @@ function __wbg_get_imports() {
|
|
2800
2801
|
const ret = HistorySecret.__wrap(arg0);
|
2801
2802
|
return ret;
|
2802
2803
|
};
|
2803
|
-
imports.wbg.
|
2804
|
+
imports.wbg.__wbg_indexNames_bda908b23b7492bf = function(arg0) {
|
2804
2805
|
const ret = arg0.indexNames;
|
2805
2806
|
return ret;
|
2806
2807
|
};
|
2807
|
-
imports.wbg.
|
2808
|
+
imports.wbg.__wbg_index_405783ca8da5f008 = function() {
|
2808
2809
|
return handleError(function(arg0, arg1, arg2) {
|
2809
2810
|
const ret = arg0.index(getStringFromWasm0(arg1, arg2));
|
2810
2811
|
return ret;
|
2811
2812
|
}, arguments);
|
2812
2813
|
};
|
2813
|
-
imports.wbg.
|
2814
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc = function(arg0) {
|
2814
2815
|
let result;
|
2815
2816
|
try {
|
2816
2817
|
result = arg0 instanceof ArrayBuffer;
|
@@ -2820,17 +2821,7 @@ function __wbg_get_imports() {
|
|
2820
2821
|
const ret = result;
|
2821
2822
|
return ret;
|
2822
2823
|
};
|
2823
|
-
imports.wbg.
|
2824
|
-
let result;
|
2825
|
-
try {
|
2826
|
-
result = arg0 instanceof IDBCursorWithValue;
|
2827
|
-
} catch (_) {
|
2828
|
-
result = false;
|
2829
|
-
}
|
2830
|
-
const ret = result;
|
2831
|
-
return ret;
|
2832
|
-
};
|
2833
|
-
imports.wbg.__wbg_instanceof_IdbDatabase_a3ef009ca00059f9 = function(arg0) {
|
2824
|
+
imports.wbg.__wbg_instanceof_IdbDatabase_0ed56ed115d533bc = function(arg0) {
|
2834
2825
|
let result;
|
2835
2826
|
try {
|
2836
2827
|
result = arg0 instanceof IDBDatabase;
|
@@ -2840,7 +2831,7 @@ function __wbg_get_imports() {
|
|
2840
2831
|
const ret = result;
|
2841
2832
|
return ret;
|
2842
2833
|
};
|
2843
|
-
imports.wbg.
|
2834
|
+
imports.wbg.__wbg_instanceof_IdbFactory_27448d2c5db6dc3c = function(arg0) {
|
2844
2835
|
let result;
|
2845
2836
|
try {
|
2846
2837
|
result = arg0 instanceof IDBFactory;
|
@@ -2850,7 +2841,7 @@ function __wbg_get_imports() {
|
|
2850
2841
|
const ret = result;
|
2851
2842
|
return ret;
|
2852
2843
|
};
|
2853
|
-
imports.wbg.
|
2844
|
+
imports.wbg.__wbg_instanceof_IdbOpenDbRequest_6fc382750d7a6761 = function(arg0) {
|
2854
2845
|
let result;
|
2855
2846
|
try {
|
2856
2847
|
result = arg0 instanceof IDBOpenDBRequest;
|
@@ -2860,7 +2851,7 @@ function __wbg_get_imports() {
|
|
2860
2851
|
const ret = result;
|
2861
2852
|
return ret;
|
2862
2853
|
};
|
2863
|
-
imports.wbg.
|
2854
|
+
imports.wbg.__wbg_instanceof_IdbRequest_c4498c7b5a3a0fa3 = function(arg0) {
|
2864
2855
|
let result;
|
2865
2856
|
try {
|
2866
2857
|
result = arg0 instanceof IDBRequest;
|
@@ -2870,7 +2861,7 @@ function __wbg_get_imports() {
|
|
2870
2861
|
const ret = result;
|
2871
2862
|
return ret;
|
2872
2863
|
};
|
2873
|
-
imports.wbg.
|
2864
|
+
imports.wbg.__wbg_instanceof_IdbTransaction_64c3568814e4d528 = function(arg0) {
|
2874
2865
|
let result;
|
2875
2866
|
try {
|
2876
2867
|
result = arg0 instanceof IDBTransaction;
|
@@ -2880,17 +2871,7 @@ function __wbg_get_imports() {
|
|
2880
2871
|
const ret = result;
|
2881
2872
|
return ret;
|
2882
2873
|
};
|
2883
|
-
imports.wbg.
|
2884
|
-
let result;
|
2885
|
-
try {
|
2886
|
-
result = arg0 instanceof Map;
|
2887
|
-
} catch (_) {
|
2888
|
-
result = false;
|
2889
|
-
}
|
2890
|
-
const ret = result;
|
2891
|
-
return ret;
|
2892
|
-
};
|
2893
|
-
imports.wbg.__wbg_instanceof_Promise_935168b8f4b49db3 = function(arg0) {
|
2874
|
+
imports.wbg.__wbg_instanceof_Promise_66f94afc64d9039f = function(arg0) {
|
2894
2875
|
let result;
|
2895
2876
|
try {
|
2896
2877
|
result = arg0 instanceof Promise;
|
@@ -2900,7 +2881,7 @@ function __wbg_get_imports() {
|
|
2900
2881
|
const ret = result;
|
2901
2882
|
return ret;
|
2902
2883
|
};
|
2903
|
-
imports.wbg.
|
2884
|
+
imports.wbg.__wbg_instanceof_Uint8Array_ca460677bc155827 = function(arg0) {
|
2904
2885
|
let result;
|
2905
2886
|
try {
|
2906
2887
|
result = arg0 instanceof Uint8Array;
|
@@ -2910,30 +2891,24 @@ function __wbg_get_imports() {
|
|
2910
2891
|
const ret = result;
|
2911
2892
|
return ret;
|
2912
2893
|
};
|
2913
|
-
imports.wbg.
|
2894
|
+
imports.wbg.__wbg_isArray_5f090bed72bd4f89 = function(arg0) {
|
2914
2895
|
const ret = Array.isArray(arg0);
|
2915
2896
|
return ret;
|
2916
2897
|
};
|
2917
|
-
imports.wbg.
|
2898
|
+
imports.wbg.__wbg_isSafeInteger_90d7c4674047d684 = function(arg0) {
|
2918
2899
|
const ret = Number.isSafeInteger(arg0);
|
2919
2900
|
return ret;
|
2920
2901
|
};
|
2921
|
-
imports.wbg.
|
2902
|
+
imports.wbg.__wbg_iterator_4068add5b2aef7a6 = function() {
|
2922
2903
|
const ret = Symbol.iterator;
|
2923
2904
|
return ret;
|
2924
2905
|
};
|
2925
|
-
imports.wbg.
|
2906
|
+
imports.wbg.__wbg_keyPath_c90478d42d5ee8db = function() {
|
2926
2907
|
return handleError(function(arg0) {
|
2927
2908
|
const ret = arg0.keyPath;
|
2928
2909
|
return ret;
|
2929
2910
|
}, arguments);
|
2930
2911
|
};
|
2931
|
-
imports.wbg.__wbg_key_29fefecef430db96 = function() {
|
2932
|
-
return handleError(function(arg0) {
|
2933
|
-
const ret = arg0.key;
|
2934
|
-
return ret;
|
2935
|
-
}, arguments);
|
2936
|
-
};
|
2937
2912
|
imports.wbg.__wbg_keypackage_new = function(arg0) {
|
2938
2913
|
const ret = KeyPackage.__wrap(arg0);
|
2939
2914
|
return ret;
|
@@ -2942,19 +2917,19 @@ function __wbg_get_imports() {
|
|
2942
2917
|
const ret = KeyPackage.__unwrap(arg0);
|
2943
2918
|
return ret;
|
2944
2919
|
};
|
2945
|
-
imports.wbg.
|
2920
|
+
imports.wbg.__wbg_length_1589a5d84cb38f9b = function(arg0) {
|
2946
2921
|
const ret = arg0.length;
|
2947
2922
|
return ret;
|
2948
2923
|
};
|
2949
|
-
imports.wbg.
|
2924
|
+
imports.wbg.__wbg_length_8e7e24c4f31ae25f = function(arg0) {
|
2950
2925
|
const ret = arg0.length;
|
2951
2926
|
return ret;
|
2952
2927
|
};
|
2953
|
-
imports.wbg.
|
2928
|
+
imports.wbg.__wbg_length_ab6d22b5ead75c72 = function(arg0) {
|
2954
2929
|
const ret = arg0.length;
|
2955
2930
|
return ret;
|
2956
2931
|
};
|
2957
|
-
imports.wbg.
|
2932
|
+
imports.wbg.__wbg_length_f00ec12454a5d9fd = function(arg0) {
|
2958
2933
|
const ret = arg0.length;
|
2959
2934
|
return ret;
|
2960
2935
|
};
|
@@ -2962,29 +2937,49 @@ function __wbg_get_imports() {
|
|
2962
2937
|
const ret = arg0.msCrypto;
|
2963
2938
|
return ret;
|
2964
2939
|
};
|
2965
|
-
imports.wbg.
|
2940
|
+
imports.wbg.__wbg_multiEntry_7c89c46b513281e4 = function(arg0) {
|
2966
2941
|
const ret = arg0.multiEntry;
|
2967
2942
|
return ret;
|
2968
2943
|
};
|
2969
|
-
imports.wbg.
|
2944
|
+
imports.wbg.__wbg_name_f41568f8464f439d = function(arg0, arg1) {
|
2970
2945
|
const ret = arg1.name;
|
2971
2946
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
2972
2947
|
const len1 = WASM_VECTOR_LEN;
|
2973
2948
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
2974
2949
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
2975
2950
|
};
|
2976
|
-
imports.wbg.
|
2951
|
+
imports.wbg.__wbg_new0_97314565408dea38 = function() {
|
2977
2952
|
const ret = new Date;
|
2978
2953
|
return ret;
|
2979
2954
|
};
|
2980
|
-
imports.wbg.
|
2955
|
+
imports.wbg.__wbg_new_07b483f72211fd66 = function() {
|
2956
|
+
const ret = new Object;
|
2957
|
+
return ret;
|
2958
|
+
};
|
2959
|
+
imports.wbg.__wbg_new_476169e6d59f23ae = function(arg0, arg1) {
|
2960
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
2961
|
+
return ret;
|
2962
|
+
};
|
2963
|
+
imports.wbg.__wbg_new_58353953ad2097cc = function() {
|
2964
|
+
const ret = new Array;
|
2965
|
+
return ret;
|
2966
|
+
};
|
2967
|
+
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
2968
|
+
const ret = new Error;
|
2969
|
+
return ret;
|
2970
|
+
};
|
2971
|
+
imports.wbg.__wbg_new_a979b4b45bd55c7f = function() {
|
2972
|
+
const ret = new Map;
|
2973
|
+
return ret;
|
2974
|
+
};
|
2975
|
+
imports.wbg.__wbg_new_e30c39c06edaabf2 = function(arg0, arg1) {
|
2981
2976
|
try {
|
2982
2977
|
var state0 = { a: arg0, b: arg1 };
|
2983
2978
|
var cb0 = (arg02, arg12) => {
|
2984
2979
|
const a = state0.a;
|
2985
2980
|
state0.a = 0;
|
2986
2981
|
try {
|
2987
|
-
return
|
2982
|
+
return __wbg_adapter_537(a, state0.b, arg02, arg12);
|
2988
2983
|
} finally {
|
2989
2984
|
state0.a = a;
|
2990
2985
|
}
|
@@ -2995,30 +2990,10 @@ function __wbg_get_imports() {
|
|
2995
2990
|
state0.a = state0.b = 0;
|
2996
2991
|
}
|
2997
2992
|
};
|
2998
|
-
imports.wbg.
|
2999
|
-
const ret = new Object;
|
3000
|
-
return ret;
|
3001
|
-
};
|
3002
|
-
imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
|
3003
|
-
const ret = new Map;
|
3004
|
-
return ret;
|
3005
|
-
};
|
3006
|
-
imports.wbg.__wbg_new_78feb108b6472713 = function() {
|
3007
|
-
const ret = new Array;
|
3008
|
-
return ret;
|
3009
|
-
};
|
3010
|
-
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
3011
|
-
const ret = new Error;
|
3012
|
-
return ret;
|
3013
|
-
};
|
3014
|
-
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
2993
|
+
imports.wbg.__wbg_new_e52b3efaaa774f96 = function(arg0) {
|
3015
2994
|
const ret = new Uint8Array(arg0);
|
3016
2995
|
return ret;
|
3017
2996
|
};
|
3018
|
-
imports.wbg.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
|
3019
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
3020
|
-
return ret;
|
3021
|
-
};
|
3022
2997
|
imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
|
3023
2998
|
const ret = NewAcmeAuthz.__wrap(arg0);
|
3024
2999
|
return ret;
|
@@ -3027,23 +3002,27 @@ function __wbg_get_imports() {
|
|
3027
3002
|
const ret = NewAcmeOrder.__wrap(arg0);
|
3028
3003
|
return ret;
|
3029
3004
|
};
|
3030
|
-
imports.wbg.
|
3005
|
+
imports.wbg.__wbg_newfromslice_7c05ab1297cb2d88 = function(arg0, arg1) {
|
3006
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
3007
|
+
return ret;
|
3008
|
+
};
|
3009
|
+
imports.wbg.__wbg_newnoargs_ff528e72d35de39a = function(arg0, arg1) {
|
3031
3010
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
3032
3011
|
return ret;
|
3033
3012
|
};
|
3034
|
-
imports.wbg.
|
3013
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_3b01ecda099177e8 = function(arg0, arg1, arg2) {
|
3035
3014
|
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
3036
3015
|
return ret;
|
3037
3016
|
};
|
3038
|
-
imports.wbg.
|
3017
|
+
imports.wbg.__wbg_newwithlength_08f872dc1e3ada2e = function(arg0) {
|
3039
3018
|
const ret = new Uint8Array(arg0 >>> 0);
|
3040
3019
|
return ret;
|
3041
3020
|
};
|
3042
|
-
imports.wbg.
|
3021
|
+
imports.wbg.__wbg_next_8bb824d217961b5d = function(arg0) {
|
3043
3022
|
const ret = arg0.next;
|
3044
3023
|
return ret;
|
3045
3024
|
};
|
3046
|
-
imports.wbg.
|
3025
|
+
imports.wbg.__wbg_next_e2da48d8fff7439a = function() {
|
3047
3026
|
return handleError(function(arg0) {
|
3048
3027
|
const ret = arg0.next();
|
3049
3028
|
return ret;
|
@@ -3057,50 +3036,32 @@ function __wbg_get_imports() {
|
|
3057
3036
|
const ret = Date.now();
|
3058
3037
|
return ret;
|
3059
3038
|
};
|
3060
|
-
imports.wbg.
|
3039
|
+
imports.wbg.__wbg_now_eb0821f3bd9f6529 = function() {
|
3061
3040
|
const ret = Date.now();
|
3062
3041
|
return ret;
|
3063
3042
|
};
|
3064
|
-
imports.wbg.
|
3043
|
+
imports.wbg.__wbg_objectStoreNames_e82275eb2d403a92 = function(arg0) {
|
3065
3044
|
const ret = arg0.objectStoreNames;
|
3066
3045
|
return ret;
|
3067
3046
|
};
|
3068
|
-
imports.wbg.
|
3047
|
+
imports.wbg.__wbg_objectStore_b463d32c86d6b543 = function() {
|
3069
3048
|
return handleError(function(arg0, arg1, arg2) {
|
3070
3049
|
const ret = arg0.objectStore(getStringFromWasm0(arg1, arg2));
|
3071
3050
|
return ret;
|
3072
3051
|
}, arguments);
|
3073
3052
|
};
|
3074
|
-
imports.wbg.
|
3075
|
-
return handleError(function(arg0) {
|
3076
|
-
const ret = arg0.
|
3077
|
-
return ret;
|
3078
|
-
}, arguments);
|
3079
|
-
};
|
3080
|
-
imports.wbg.__wbg_openCursor_6fd4dab51810d238 = function() {
|
3081
|
-
return handleError(function(arg0, arg1, arg2) {
|
3082
|
-
const ret = arg0.openCursor(arg1, __wbindgen_enum_IdbCursorDirection[arg2]);
|
3083
|
-
return ret;
|
3084
|
-
}, arguments);
|
3085
|
-
};
|
3086
|
-
imports.wbg.__wbg_openCursor_f4b061aa6d804b93 = function() {
|
3087
|
-
return handleError(function(arg0, arg1) {
|
3088
|
-
const ret = arg0.openCursor(arg1);
|
3053
|
+
imports.wbg.__wbg_open_0f04f50fa4d98f67 = function() {
|
3054
|
+
return handleError(function(arg0, arg1, arg2, arg3) {
|
3055
|
+
const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
3089
3056
|
return ret;
|
3090
3057
|
}, arguments);
|
3091
3058
|
};
|
3092
|
-
imports.wbg.
|
3059
|
+
imports.wbg.__wbg_open_b70fb421d97aad40 = function() {
|
3093
3060
|
return handleError(function(arg0, arg1, arg2) {
|
3094
3061
|
const ret = arg0.open(getStringFromWasm0(arg1, arg2));
|
3095
3062
|
return ret;
|
3096
3063
|
}, arguments);
|
3097
3064
|
};
|
3098
|
-
imports.wbg.__wbg_open_e0c0b2993eb596e1 = function() {
|
3099
|
-
return handleError(function(arg0, arg1, arg2, arg3) {
|
3100
|
-
const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
3101
|
-
return ret;
|
3102
|
-
}, arguments);
|
3103
|
-
};
|
3104
3065
|
imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
|
3105
3066
|
const ret = arg0.process;
|
3106
3067
|
return ret;
|
@@ -3109,26 +3070,26 @@ function __wbg_get_imports() {
|
|
3109
3070
|
const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
|
3110
3071
|
return ret;
|
3111
3072
|
};
|
3112
|
-
imports.wbg.
|
3073
|
+
imports.wbg.__wbg_push_73fd7b5550ebf707 = function(arg0, arg1) {
|
3113
3074
|
const ret = arg0.push(arg1);
|
3114
3075
|
return ret;
|
3115
3076
|
};
|
3116
|
-
imports.wbg.
|
3117
|
-
return handleError(function(arg0, arg1
|
3118
|
-
const ret = arg0.put(arg1
|
3077
|
+
imports.wbg.__wbg_put_4ac965fd84929adb = function() {
|
3078
|
+
return handleError(function(arg0, arg1) {
|
3079
|
+
const ret = arg0.put(arg1);
|
3119
3080
|
return ret;
|
3120
3081
|
}, arguments);
|
3121
3082
|
};
|
3122
|
-
imports.wbg.
|
3123
|
-
return handleError(function(arg0, arg1) {
|
3124
|
-
const ret = arg0.put(arg1);
|
3083
|
+
imports.wbg.__wbg_put_7f0b4dcc666f09e3 = function() {
|
3084
|
+
return handleError(function(arg0, arg1, arg2) {
|
3085
|
+
const ret = arg0.put(arg1, arg2);
|
3125
3086
|
return ret;
|
3126
3087
|
}, arguments);
|
3127
3088
|
};
|
3128
|
-
imports.wbg.
|
3089
|
+
imports.wbg.__wbg_queueMicrotask_46c1df247678729f = function(arg0) {
|
3129
3090
|
queueMicrotask(arg0);
|
3130
3091
|
};
|
3131
|
-
imports.wbg.
|
3092
|
+
imports.wbg.__wbg_queueMicrotask_8acf3ccb75ed8d11 = function(arg0) {
|
3132
3093
|
const ret = arg0.queueMicrotask;
|
3133
3094
|
return ret;
|
3134
3095
|
};
|
@@ -3137,21 +3098,17 @@ function __wbg_get_imports() {
|
|
3137
3098
|
arg0.randomFillSync(arg1);
|
3138
3099
|
}, arguments);
|
3139
3100
|
};
|
3140
|
-
imports.wbg.__wbg_request_695d684a1f4bb96e = function(arg0) {
|
3141
|
-
const ret = arg0.request;
|
3142
|
-
return ret;
|
3143
|
-
};
|
3144
3101
|
imports.wbg.__wbg_require_79b1e9274cde3c87 = function() {
|
3145
3102
|
return handleError(function() {
|
3146
3103
|
const ret = module_core_crypto_ffi.require;
|
3147
3104
|
return ret;
|
3148
3105
|
}, arguments);
|
3149
3106
|
};
|
3150
|
-
imports.wbg.
|
3107
|
+
imports.wbg.__wbg_resolve_0dac8c580ffd4678 = function(arg0) {
|
3151
3108
|
const ret = Promise.resolve(arg0);
|
3152
3109
|
return ret;
|
3153
3110
|
};
|
3154
|
-
imports.wbg.
|
3111
|
+
imports.wbg.__wbg_result_a0f1bf2fe64a516c = function() {
|
3155
3112
|
return handleError(function(arg0) {
|
3156
3113
|
const ret = arg0.result;
|
3157
3114
|
return ret;
|
@@ -3161,56 +3118,56 @@ function __wbg_get_imports() {
|
|
3161
3118
|
const ret = SecretKey.__wrap(arg0);
|
3162
3119
|
return ret;
|
3163
3120
|
};
|
3164
|
-
imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
|
3165
|
-
arg0[arg1 >>> 0] = arg2;
|
3166
|
-
};
|
3167
3121
|
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
3168
3122
|
arg0[arg1] = arg2;
|
3169
3123
|
};
|
3170
|
-
imports.wbg.
|
3171
|
-
arg0
|
3124
|
+
imports.wbg.__wbg_set_7422acbe992d64ab = function(arg0, arg1, arg2) {
|
3125
|
+
arg0[arg1 >>> 0] = arg2;
|
3172
3126
|
};
|
3173
|
-
imports.wbg.
|
3127
|
+
imports.wbg.__wbg_set_d6bdfd275fb8a4ce = function(arg0, arg1, arg2) {
|
3174
3128
|
const ret = arg0.set(arg1, arg2);
|
3175
3129
|
return ret;
|
3176
3130
|
};
|
3177
|
-
imports.wbg.
|
3131
|
+
imports.wbg.__wbg_set_fe4e79d1ed3b0e9b = function(arg0, arg1, arg2) {
|
3132
|
+
arg0.set(arg1, arg2 >>> 0);
|
3133
|
+
};
|
3134
|
+
imports.wbg.__wbg_setautoincrement_6589237510ecaf4f = function(arg0, arg1) {
|
3178
3135
|
arg0.autoIncrement = arg1 !== 0;
|
3179
3136
|
};
|
3180
|
-
imports.wbg.
|
3137
|
+
imports.wbg.__wbg_setcause_42371b5828b0512f = function(arg0, arg1) {
|
3181
3138
|
arg0.cause = arg1;
|
3182
3139
|
};
|
3183
|
-
imports.wbg.
|
3140
|
+
imports.wbg.__wbg_setkeypath_89c871b39940cb3c = function(arg0, arg1) {
|
3184
3141
|
arg0.keyPath = arg1;
|
3185
3142
|
};
|
3186
|
-
imports.wbg.
|
3143
|
+
imports.wbg.__wbg_setmultientry_64e53a16b504c272 = function(arg0, arg1) {
|
3187
3144
|
arg0.multiEntry = arg1 !== 0;
|
3188
3145
|
};
|
3189
|
-
imports.wbg.
|
3146
|
+
imports.wbg.__wbg_setname_098bc917fa3ff0d0 = function(arg0, arg1, arg2) {
|
3190
3147
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
3191
3148
|
};
|
3192
|
-
imports.wbg.
|
3149
|
+
imports.wbg.__wbg_setonabort_479ebb5884fcb171 = function(arg0, arg1) {
|
3193
3150
|
arg0.onabort = arg1;
|
3194
3151
|
};
|
3195
|
-
imports.wbg.
|
3152
|
+
imports.wbg.__wbg_setoncomplete_27bdbca012e45c05 = function(arg0, arg1) {
|
3196
3153
|
arg0.oncomplete = arg1;
|
3197
3154
|
};
|
3198
|
-
imports.wbg.
|
3155
|
+
imports.wbg.__wbg_setonerror_537b68f474e27d4e = function(arg0, arg1) {
|
3199
3156
|
arg0.onerror = arg1;
|
3200
3157
|
};
|
3201
|
-
imports.wbg.
|
3158
|
+
imports.wbg.__wbg_setonerror_ce5c4d34aed931bb = function(arg0, arg1) {
|
3202
3159
|
arg0.onerror = arg1;
|
3203
3160
|
};
|
3204
|
-
imports.wbg.
|
3161
|
+
imports.wbg.__wbg_setonsuccess_0b2b45bd8cc13b95 = function(arg0, arg1) {
|
3205
3162
|
arg0.onsuccess = arg1;
|
3206
3163
|
};
|
3207
|
-
imports.wbg.
|
3164
|
+
imports.wbg.__wbg_setonupgradeneeded_be2e0ae927917f82 = function(arg0, arg1) {
|
3208
3165
|
arg0.onupgradeneeded = arg1;
|
3209
3166
|
};
|
3210
|
-
imports.wbg.
|
3167
|
+
imports.wbg.__wbg_setonversionchange_407ebf1ad930c84c = function(arg0, arg1) {
|
3211
3168
|
arg0.onversionchange = arg1;
|
3212
3169
|
};
|
3213
|
-
imports.wbg.
|
3170
|
+
imports.wbg.__wbg_setunique_727cefd7e14cf677 = function(arg0, arg1) {
|
3214
3171
|
arg0.unique = arg1 !== 0;
|
3215
3172
|
};
|
3216
3173
|
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
@@ -3220,67 +3177,61 @@ function __wbg_get_imports() {
|
|
3220
3177
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
3221
3178
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
3222
3179
|
};
|
3223
|
-
imports.wbg.
|
3180
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_487c52c58d65314d = function() {
|
3224
3181
|
const ret = typeof global === "undefined" ? null : global;
|
3225
3182
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
3226
3183
|
};
|
3227
|
-
imports.wbg.
|
3184
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_ee9704f328b6b291 = function() {
|
3228
3185
|
const ret = typeof globalThis === "undefined" ? null : globalThis;
|
3229
3186
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
3230
3187
|
};
|
3231
|
-
imports.wbg.
|
3188
|
+
imports.wbg.__wbg_static_accessor_SELF_78c9e3071b912620 = function() {
|
3232
3189
|
const ret = typeof self === "undefined" ? null : self;
|
3233
3190
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
3234
3191
|
};
|
3235
|
-
imports.wbg.
|
3192
|
+
imports.wbg.__wbg_static_accessor_WINDOW_a093d21393777366 = function() {
|
3236
3193
|
const ret = typeof window === "undefined" ? null : window;
|
3237
3194
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
3238
3195
|
};
|
3239
|
-
imports.wbg.
|
3196
|
+
imports.wbg.__wbg_subarray_dd4ade7d53bd8e26 = function(arg0, arg1, arg2) {
|
3240
3197
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
3241
3198
|
return ret;
|
3242
3199
|
};
|
3243
|
-
imports.wbg.
|
3200
|
+
imports.wbg.__wbg_target_15f1da583855ac4e = function(arg0) {
|
3244
3201
|
const ret = arg0.target;
|
3245
3202
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
3246
3203
|
};
|
3247
|
-
imports.wbg.
|
3248
|
-
const ret = arg0.then(arg1);
|
3204
|
+
imports.wbg.__wbg_then_82ab9fb4080f1707 = function(arg0, arg1, arg2) {
|
3205
|
+
const ret = arg0.then(arg1, arg2);
|
3249
3206
|
return ret;
|
3250
3207
|
};
|
3251
|
-
imports.wbg.
|
3252
|
-
const ret = arg0.then(arg1
|
3208
|
+
imports.wbg.__wbg_then_db882932c0c714c6 = function(arg0, arg1) {
|
3209
|
+
const ret = arg0.then(arg1);
|
3253
3210
|
return ret;
|
3254
3211
|
};
|
3255
|
-
imports.wbg.
|
3212
|
+
imports.wbg.__wbg_toString_bc7a05a172b5cf14 = function(arg0) {
|
3256
3213
|
const ret = arg0.toString();
|
3257
3214
|
return ret;
|
3258
3215
|
};
|
3259
|
-
imports.wbg.
|
3216
|
+
imports.wbg.__wbg_transaction_34c41b46ca391af6 = function(arg0) {
|
3217
|
+
const ret = arg0.transaction;
|
3218
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
3219
|
+
};
|
3220
|
+
imports.wbg.__wbg_transaction_399fc15f5bba1880 = function() {
|
3260
3221
|
return handleError(function(arg0, arg1, arg2) {
|
3261
3222
|
const ret = arg0.transaction(arg1, __wbindgen_enum_IdbTransactionMode[arg2]);
|
3262
3223
|
return ret;
|
3263
3224
|
}, arguments);
|
3264
3225
|
};
|
3265
|
-
imports.wbg.
|
3266
|
-
const ret = arg0.transaction;
|
3267
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
3268
|
-
};
|
3269
|
-
imports.wbg.__wbg_unique_23ddfed89bddb31d = function(arg0) {
|
3226
|
+
imports.wbg.__wbg_unique_f769a9e3fe7329fe = function(arg0) {
|
3270
3227
|
const ret = arg0.unique;
|
3271
3228
|
return ret;
|
3272
3229
|
};
|
3273
|
-
imports.wbg.
|
3274
|
-
return handleError(function(arg0) {
|
3275
|
-
const ret = arg0.value;
|
3276
|
-
return ret;
|
3277
|
-
}, arguments);
|
3278
|
-
};
|
3279
|
-
imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
3230
|
+
imports.wbg.__wbg_value_17b896954e14f896 = function(arg0) {
|
3280
3231
|
const ret = arg0.value;
|
3281
3232
|
return ret;
|
3282
3233
|
};
|
3283
|
-
imports.wbg.
|
3234
|
+
imports.wbg.__wbg_version_2c3ed4a311fdabdf = function(arg0) {
|
3284
3235
|
const ret = arg0.version;
|
3285
3236
|
return ret;
|
3286
3237
|
};
|
@@ -3307,10 +3258,6 @@ function __wbg_get_imports() {
|
|
3307
3258
|
const ret = +arg0;
|
3308
3259
|
return ret;
|
3309
3260
|
};
|
3310
|
-
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
3311
|
-
const ret = arg0;
|
3312
|
-
return ret;
|
3313
|
-
};
|
3314
3261
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
3315
3262
|
const ret = BigInt.asUintN(64, arg0);
|
3316
3263
|
return ret;
|
@@ -3335,16 +3282,16 @@ function __wbg_get_imports() {
|
|
3335
3282
|
const ret = false;
|
3336
3283
|
return ret;
|
3337
3284
|
};
|
3338
|
-
imports.wbg.
|
3339
|
-
const ret = makeMutClosure(arg0, arg1,
|
3285
|
+
imports.wbg.__wbindgen_closure_wrapper12659 = function(arg0, arg1, arg2) {
|
3286
|
+
const ret = makeMutClosure(arg0, arg1, 2576, __wbg_adapter_61);
|
3340
3287
|
return ret;
|
3341
3288
|
};
|
3342
|
-
imports.wbg.
|
3343
|
-
const ret = makeMutClosure(arg0, arg1,
|
3289
|
+
imports.wbg.__wbindgen_closure_wrapper15295 = function(arg0, arg1, arg2) {
|
3290
|
+
const ret = makeMutClosure(arg0, arg1, 2882, __wbg_adapter_64);
|
3344
3291
|
return ret;
|
3345
3292
|
};
|
3346
|
-
imports.wbg.
|
3347
|
-
const ret = makeMutClosure(arg0, arg1,
|
3293
|
+
imports.wbg.__wbindgen_closure_wrapper4420 = function(arg0, arg1, arg2) {
|
3294
|
+
const ret = makeMutClosure(arg0, arg1, 1015, __wbg_adapter_58);
|
3348
3295
|
return ret;
|
3349
3296
|
};
|
3350
3297
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
@@ -3354,10 +3301,6 @@ function __wbg_get_imports() {
|
|
3354
3301
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
3355
3302
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
3356
3303
|
};
|
3357
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
3358
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
3359
|
-
return ret;
|
3360
|
-
};
|
3361
3304
|
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
3362
3305
|
const ret = arg0 in arg1;
|
3363
3306
|
return ret;
|
@@ -3804,9 +3747,6 @@ class CoreCryptoContext2 {
|
|
3804
3747
|
throw CoreCryptoError.fromStdError(e);
|
3805
3748
|
}
|
3806
3749
|
}
|
3807
|
-
async proteusCryptoboxMigrate(storeName) {
|
3808
|
-
return await CoreCryptoError.asyncMapErr(this.#ctx.proteus_cryptobox_migrate(storeName));
|
3809
|
-
}
|
3810
3750
|
async e2eiNewEnrollment(clientId, displayName, handle, expirySec, ciphersuite, team) {
|
3811
3751
|
const e2ei = await CoreCryptoError.asyncMapErr(this.#ctx.e2ei_new_enrollment(clientId, displayName, handle, team, expirySec, ciphersuite));
|
3812
3752
|
return new E2eiEnrollment(e2ei);
|
@@ -4113,7 +4053,7 @@ async function initWasmModule(location = undefined) {
|
|
4113
4053
|
const path = new URL(`${location}core-crypto-ffi_bg.wasm`, import.meta.url);
|
4114
4054
|
const file = await fs.open(path);
|
4115
4055
|
const buffer = await file.readFile();
|
4116
|
-
const module = new WebAssembly.Module(buffer);
|
4056
|
+
const module = new WebAssembly.Module(new Uint8Array(buffer));
|
4117
4057
|
await core_crypto_ffi_default({ module_or_path: module });
|
4118
4058
|
}
|
4119
4059
|
}
|