@wireapp/core-crypto 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -21,27 +21,27 @@ function addHeapObject(obj) {
|
|
21
21
|
heap[idx] = obj;
|
22
22
|
return idx;
|
23
23
|
}
|
24
|
-
function
|
25
|
-
if (
|
26
|
-
|
24
|
+
function getUint8ArrayMemory0() {
|
25
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
26
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
27
27
|
}
|
28
|
-
return
|
28
|
+
return cachedUint8ArrayMemory0;
|
29
29
|
}
|
30
30
|
function getStringFromWasm0(ptr, len) {
|
31
31
|
ptr = ptr >>> 0;
|
32
|
-
return cachedTextDecoder.decode(
|
32
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
33
33
|
}
|
34
34
|
function passStringToWasm0(arg, malloc, realloc) {
|
35
35
|
if (realloc === undefined) {
|
36
36
|
const buf = cachedTextEncoder.encode(arg);
|
37
37
|
const ptr2 = malloc(buf.length, 1) >>> 0;
|
38
|
-
|
38
|
+
getUint8ArrayMemory0().subarray(ptr2, ptr2 + buf.length).set(buf);
|
39
39
|
WASM_VECTOR_LEN = buf.length;
|
40
40
|
return ptr2;
|
41
41
|
}
|
42
42
|
let len = arg.length;
|
43
43
|
let ptr = malloc(len, 1) >>> 0;
|
44
|
-
const mem =
|
44
|
+
const mem = getUint8ArrayMemory0();
|
45
45
|
let offset = 0;
|
46
46
|
for (;offset < len; offset++) {
|
47
47
|
const code = arg.charCodeAt(offset);
|
@@ -54,7 +54,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
54
54
|
arg = arg.slice(offset);
|
55
55
|
}
|
56
56
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
57
|
-
const view =
|
57
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
58
58
|
const ret = encodeString(arg, view);
|
59
59
|
offset += ret.written;
|
60
60
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
@@ -65,23 +65,11 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
65
65
|
function isLikeNone(x) {
|
66
66
|
return x === undefined || x === null;
|
67
67
|
}
|
68
|
-
function
|
69
|
-
if (
|
70
|
-
|
68
|
+
function getDataViewMemory0() {
|
69
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
70
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
71
71
|
}
|
72
|
-
return
|
73
|
-
}
|
74
|
-
function getFloat64Memory0() {
|
75
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
76
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
77
|
-
}
|
78
|
-
return cachedFloat64Memory0;
|
79
|
-
}
|
80
|
-
function getBigInt64Memory0() {
|
81
|
-
if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
|
82
|
-
cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
|
83
|
-
}
|
84
|
-
return cachedBigInt64Memory0;
|
72
|
+
return cachedDataViewMemory0;
|
85
73
|
}
|
86
74
|
function debugString(val) {
|
87
75
|
const type = typeof val;
|
@@ -160,37 +148,30 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
160
148
|
return real;
|
161
149
|
}
|
162
150
|
function __wbg_adapter_52(arg0, arg1, arg2) {
|
163
|
-
wasm.
|
151
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hdc53b985bfd912db(arg0, arg1, addHeapObject(arg2));
|
164
152
|
}
|
165
153
|
function __wbg_adapter_55(arg0, arg1, arg2) {
|
166
|
-
wasm.
|
154
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4ca972cbef8482c5(arg0, arg1, addHeapObject(arg2));
|
167
155
|
}
|
168
156
|
function __wbg_adapter_58(arg0, arg1, arg2) {
|
169
|
-
wasm.
|
157
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hfd1aeac6d5f14114(arg0, arg1, addHeapObject(arg2));
|
170
158
|
}
|
171
159
|
function getArrayU8FromWasm0(ptr, len) {
|
172
160
|
ptr = ptr >>> 0;
|
173
|
-
return
|
174
|
-
}
|
175
|
-
function getUint32Memory0() {
|
176
|
-
if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
|
177
|
-
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
|
178
|
-
}
|
179
|
-
return cachedUint32Memory0;
|
161
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
180
162
|
}
|
181
163
|
function getArrayJsValueFromWasm0(ptr, len) {
|
182
164
|
ptr = ptr >>> 0;
|
183
|
-
const mem =
|
184
|
-
const slice = mem.subarray(ptr / 4, ptr / 4 + len);
|
165
|
+
const mem = getDataViewMemory0();
|
185
166
|
const result = [];
|
186
|
-
for (let i =
|
187
|
-
result.push(takeObject(
|
167
|
+
for (let i = ptr;i < ptr + 4 * len; i += 4) {
|
168
|
+
result.push(takeObject(mem.getUint32(i, true)));
|
188
169
|
}
|
189
170
|
return result;
|
190
171
|
}
|
191
172
|
function passArray8ToWasm0(arg, malloc) {
|
192
173
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
193
|
-
|
174
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
194
175
|
WASM_VECTOR_LEN = arg.length;
|
195
176
|
return ptr;
|
196
177
|
}
|
@@ -202,22 +183,22 @@ function _assertClass(instance, klass) {
|
|
202
183
|
}
|
203
184
|
function passArrayJsValueToWasm0(array, malloc) {
|
204
185
|
const ptr = malloc(array.length * 4, 4) >>> 0;
|
205
|
-
const mem =
|
186
|
+
const mem = getDataViewMemory0();
|
206
187
|
for (let i = 0;i < array.length; i++) {
|
207
|
-
mem
|
188
|
+
mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
|
208
189
|
}
|
209
190
|
WASM_VECTOR_LEN = array.length;
|
210
191
|
return ptr;
|
211
192
|
}
|
212
|
-
function
|
213
|
-
if (
|
214
|
-
|
193
|
+
function getUint16ArrayMemory0() {
|
194
|
+
if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
|
195
|
+
cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
|
215
196
|
}
|
216
|
-
return
|
197
|
+
return cachedUint16ArrayMemory0;
|
217
198
|
}
|
218
199
|
function passArray16ToWasm0(arg, malloc) {
|
219
200
|
const ptr = malloc(arg.length * 2, 2) >>> 0;
|
220
|
-
|
201
|
+
getUint16ArrayMemory0().set(arg, ptr / 2);
|
221
202
|
WASM_VECTOR_LEN = arg.length;
|
222
203
|
return ptr;
|
223
204
|
}
|
@@ -228,8 +209,8 @@ function handleError(f, args) {
|
|
228
209
|
wasm.__wbindgen_exn_store(addHeapObject(e));
|
229
210
|
}
|
230
211
|
}
|
231
|
-
function
|
232
|
-
wasm.
|
212
|
+
function __wbg_adapter_452(arg0, arg1, arg2, arg3) {
|
213
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__hb06e1df793dc8308(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
233
214
|
}
|
234
215
|
async function __wbg_load(module, imports) {
|
235
216
|
if (typeof Response === "function" && module instanceof Response) {
|
@@ -265,32 +246,32 @@ function __wbg_get_imports() {
|
|
265
246
|
const ret = getObject(arg0);
|
266
247
|
return addHeapObject(ret);
|
267
248
|
};
|
268
|
-
imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
|
269
|
-
const ret = FfiWireE2EIdentity.__wrap(arg0);
|
270
|
-
return addHeapObject(ret);
|
271
|
-
};
|
272
249
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
273
250
|
const ret = getStringFromWasm0(arg0, arg1);
|
274
251
|
return addHeapObject(ret);
|
275
252
|
};
|
276
|
-
imports.wbg.
|
277
|
-
const ret = arg0;
|
253
|
+
imports.wbg.__wbg_ffiwiree2eidentity_new = function(arg0) {
|
254
|
+
const ret = FfiWireE2EIdentity.__wrap(arg0);
|
278
255
|
return addHeapObject(ret);
|
279
256
|
};
|
280
|
-
imports.wbg.
|
281
|
-
const ret =
|
257
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
258
|
+
const ret = arg0;
|
282
259
|
return addHeapObject(ret);
|
283
260
|
};
|
284
|
-
imports.wbg.
|
285
|
-
const ret =
|
261
|
+
imports.wbg.__wbg_newacmeorder_new = function(arg0) {
|
262
|
+
const ret = NewAcmeOrder.__wrap(arg0);
|
286
263
|
return addHeapObject(ret);
|
287
264
|
};
|
288
265
|
imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
|
289
266
|
const ret = NewAcmeAuthz.__wrap(arg0);
|
290
267
|
return addHeapObject(ret);
|
291
268
|
};
|
292
|
-
imports.wbg.
|
293
|
-
const ret =
|
269
|
+
imports.wbg.__wbg_acmedirectory_new = function(arg0) {
|
270
|
+
const ret = AcmeDirectory.__wrap(arg0);
|
271
|
+
return addHeapObject(ret);
|
272
|
+
};
|
273
|
+
imports.wbg.__wbg_proteusautoprekeybundle_new = function(arg0) {
|
274
|
+
const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
|
294
275
|
return addHeapObject(ret);
|
295
276
|
};
|
296
277
|
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
@@ -318,8 +299,8 @@ function __wbg_get_imports() {
|
|
318
299
|
const ret = typeof obj === "string" ? obj : undefined;
|
319
300
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
320
301
|
var len1 = WASM_VECTOR_LEN;
|
321
|
-
|
322
|
-
|
302
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
303
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
323
304
|
};
|
324
305
|
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
325
306
|
const v = getObject(arg0);
|
@@ -333,8 +314,8 @@ function __wbg_get_imports() {
|
|
333
314
|
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
334
315
|
const obj = getObject(arg1);
|
335
316
|
const ret = typeof obj === "number" ? obj : undefined;
|
336
|
-
|
337
|
-
|
317
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
318
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
338
319
|
};
|
339
320
|
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
340
321
|
const ret = arg0;
|
@@ -353,7 +334,7 @@ function __wbg_get_imports() {
|
|
353
334
|
const ret = getObject(arg0) in getObject(arg1);
|
354
335
|
return ret;
|
355
336
|
};
|
356
|
-
imports.wbg.
|
337
|
+
imports.wbg.__wbg_queueMicrotask_48421b3cc9052b68 = function(arg0) {
|
357
338
|
const ret = getObject(arg0).queueMicrotask;
|
358
339
|
return addHeapObject(ret);
|
359
340
|
};
|
@@ -370,7 +351,7 @@ function __wbg_get_imports() {
|
|
370
351
|
const ret = false;
|
371
352
|
return ret;
|
372
353
|
};
|
373
|
-
imports.wbg.
|
354
|
+
imports.wbg.__wbg_queueMicrotask_12a30234db4045d3 = function(arg0) {
|
374
355
|
queueMicrotask(getObject(arg0));
|
375
356
|
};
|
376
357
|
imports.wbg.__wbg_now_1be9a41d0832ae2d = function() {
|
@@ -401,8 +382,8 @@ function __wbg_get_imports() {
|
|
401
382
|
const ret = String(getObject(arg1));
|
402
383
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
403
384
|
const len1 = WASM_VECTOR_LEN;
|
404
|
-
|
405
|
-
|
385
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
386
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
406
387
|
};
|
407
388
|
imports.wbg.__wbg_getwithrefkey_edc2c8960f0f1191 = function(arg0, arg1) {
|
408
389
|
const ret = getObject(arg0)[getObject(arg1)];
|
@@ -451,47 +432,59 @@ function __wbg_get_imports() {
|
|
451
432
|
getObject(arg0).getRandomValues(getObject(arg1));
|
452
433
|
}, arguments);
|
453
434
|
};
|
454
|
-
imports.wbg.
|
435
|
+
imports.wbg.__wbg_setmultientry_a4c0f50fb1bb8977 = function(arg0, arg1) {
|
436
|
+
getObject(arg0).multiEntry = arg1 !== 0;
|
437
|
+
};
|
438
|
+
imports.wbg.__wbg_setunique_6f46c3f803001492 = function(arg0, arg1) {
|
439
|
+
getObject(arg0).unique = arg1 !== 0;
|
440
|
+
};
|
441
|
+
imports.wbg.__wbg_setautoincrement_56aa89e6d3e15210 = function(arg0, arg1) {
|
442
|
+
getObject(arg0).autoIncrement = arg1 !== 0;
|
443
|
+
};
|
444
|
+
imports.wbg.__wbg_setkeypath_e6a7c50640d3005a = function(arg0, arg1) {
|
445
|
+
getObject(arg0).keyPath = getObject(arg1);
|
446
|
+
};
|
447
|
+
imports.wbg.__wbg_length_82021578cc4f0d2c = function(arg0) {
|
455
448
|
const ret = getObject(arg0).length;
|
456
449
|
return ret;
|
457
450
|
};
|
458
|
-
imports.wbg.
|
451
|
+
imports.wbg.__wbg_get_913f8df8566b2d82 = function(arg0, arg1, arg2) {
|
459
452
|
const ret = getObject(arg1)[arg2 >>> 0];
|
460
453
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
461
454
|
var len1 = WASM_VECTOR_LEN;
|
462
|
-
|
463
|
-
|
455
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
456
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
464
457
|
};
|
465
|
-
imports.wbg.
|
458
|
+
imports.wbg.__wbg_target_b7cb1739bee70928 = function(arg0) {
|
466
459
|
const ret = getObject(arg0).target;
|
467
460
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
468
461
|
};
|
469
|
-
imports.wbg.
|
462
|
+
imports.wbg.__wbg_key_37c613728ba0b769 = function() {
|
470
463
|
return handleError(function(arg0) {
|
471
464
|
const ret = getObject(arg0).key;
|
472
465
|
return addHeapObject(ret);
|
473
466
|
}, arguments);
|
474
467
|
};
|
475
|
-
imports.wbg.
|
468
|
+
imports.wbg.__wbg_request_3c4da92b3538e80a = function(arg0) {
|
476
469
|
const ret = getObject(arg0).request;
|
477
470
|
return addHeapObject(ret);
|
478
471
|
};
|
479
|
-
imports.wbg.
|
472
|
+
imports.wbg.__wbg_advance_0922866a23942467 = function() {
|
480
473
|
return handleError(function(arg0, arg1) {
|
481
474
|
getObject(arg0).advance(arg1 >>> 0);
|
482
475
|
}, arguments);
|
483
476
|
};
|
484
|
-
imports.wbg.
|
477
|
+
imports.wbg.__wbg_continue_a92b4c9f17458897 = function() {
|
485
478
|
return handleError(function(arg0) {
|
486
479
|
getObject(arg0).continue();
|
487
480
|
}, arguments);
|
488
481
|
};
|
489
|
-
imports.wbg.
|
482
|
+
imports.wbg.__wbg_continue_6672b1997d5c8efb = function() {
|
490
483
|
return handleError(function(arg0, arg1) {
|
491
484
|
getObject(arg0).continue(getObject(arg1));
|
492
485
|
}, arguments);
|
493
486
|
};
|
494
|
-
imports.wbg.
|
487
|
+
imports.wbg.__wbg_instanceof_IdbCursorWithValue_2302382a73f62174 = function(arg0) {
|
495
488
|
let result;
|
496
489
|
try {
|
497
490
|
result = getObject(arg0) instanceof IDBCursorWithValue;
|
@@ -501,13 +494,13 @@ function __wbg_get_imports() {
|
|
501
494
|
const ret = result;
|
502
495
|
return ret;
|
503
496
|
};
|
504
|
-
imports.wbg.
|
497
|
+
imports.wbg.__wbg_value_d4be628e515b251f = function() {
|
505
498
|
return handleError(function(arg0) {
|
506
499
|
const ret = getObject(arg0).value;
|
507
500
|
return addHeapObject(ret);
|
508
501
|
}, arguments);
|
509
502
|
};
|
510
|
-
imports.wbg.
|
503
|
+
imports.wbg.__wbg_instanceof_IdbDatabase_2c9f91b2db322a72 = function(arg0) {
|
511
504
|
let result;
|
512
505
|
try {
|
513
506
|
result = getObject(arg0) instanceof IDBDatabase;
|
@@ -517,41 +510,41 @@ function __wbg_get_imports() {
|
|
517
510
|
const ret = result;
|
518
511
|
return ret;
|
519
512
|
};
|
520
|
-
imports.wbg.
|
513
|
+
imports.wbg.__wbg_name_67d6f666d96b0131 = function(arg0, arg1) {
|
521
514
|
const ret = getObject(arg1).name;
|
522
515
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
523
516
|
const len1 = WASM_VECTOR_LEN;
|
524
|
-
|
525
|
-
|
517
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
518
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
526
519
|
};
|
527
|
-
imports.wbg.
|
520
|
+
imports.wbg.__wbg_objectStoreNames_2fc72464aff4baed = function(arg0) {
|
528
521
|
const ret = getObject(arg0).objectStoreNames;
|
529
522
|
return addHeapObject(ret);
|
530
523
|
};
|
531
|
-
imports.wbg.
|
524
|
+
imports.wbg.__wbg_setonversionchange_b1a0928064e9b758 = function(arg0, arg1) {
|
532
525
|
getObject(arg0).onversionchange = getObject(arg1);
|
533
526
|
};
|
534
|
-
imports.wbg.
|
527
|
+
imports.wbg.__wbg_close_7bef29d1d5feecdb = function(arg0) {
|
535
528
|
getObject(arg0).close();
|
536
529
|
};
|
537
|
-
imports.wbg.
|
530
|
+
imports.wbg.__wbg_createObjectStore_cfb780710dbc3ad2 = function() {
|
538
531
|
return handleError(function(arg0, arg1, arg2, arg3) {
|
539
532
|
const ret = getObject(arg0).createObjectStore(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
540
533
|
return addHeapObject(ret);
|
541
534
|
}, arguments);
|
542
535
|
};
|
543
|
-
imports.wbg.
|
536
|
+
imports.wbg.__wbg_deleteObjectStore_745da9b507613eca = function() {
|
544
537
|
return handleError(function(arg0, arg1, arg2) {
|
545
538
|
getObject(arg0).deleteObjectStore(getStringFromWasm0(arg1, arg2));
|
546
539
|
}, arguments);
|
547
540
|
};
|
548
|
-
imports.wbg.
|
541
|
+
imports.wbg.__wbg_transaction_66168ca19ab39a78 = function() {
|
549
542
|
return handleError(function(arg0, arg1, arg2) {
|
550
|
-
const ret = getObject(arg0).transaction(getObject(arg1),
|
543
|
+
const ret = getObject(arg0).transaction(getObject(arg1), ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"][arg2]);
|
551
544
|
return addHeapObject(ret);
|
552
545
|
}, arguments);
|
553
546
|
};
|
554
|
-
imports.wbg.
|
547
|
+
imports.wbg.__wbg_instanceof_IdbFactory_9c1359c26643add1 = function(arg0) {
|
555
548
|
let result;
|
556
549
|
try {
|
557
550
|
result = getObject(arg0) instanceof IDBFactory;
|
@@ -561,112 +554,126 @@ function __wbg_get_imports() {
|
|
561
554
|
const ret = result;
|
562
555
|
return ret;
|
563
556
|
};
|
564
|
-
imports.wbg.
|
557
|
+
imports.wbg.__wbg_deleteDatabase_78cc29fc7dccc638 = function() {
|
565
558
|
return handleError(function(arg0, arg1, arg2) {
|
566
559
|
const ret = getObject(arg0).deleteDatabase(getStringFromWasm0(arg1, arg2));
|
567
560
|
return addHeapObject(ret);
|
568
561
|
}, arguments);
|
569
562
|
};
|
570
|
-
imports.wbg.
|
563
|
+
imports.wbg.__wbg_open_a89af1720976a433 = function() {
|
564
|
+
return handleError(function(arg0, arg1, arg2) {
|
565
|
+
const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2));
|
566
|
+
return addHeapObject(ret);
|
567
|
+
}, arguments);
|
568
|
+
};
|
569
|
+
imports.wbg.__wbg_open_e8f45f3526088828 = function() {
|
571
570
|
return handleError(function(arg0, arg1, arg2, arg3) {
|
572
571
|
const ret = getObject(arg0).open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
573
572
|
return addHeapObject(ret);
|
574
573
|
}, arguments);
|
575
574
|
};
|
576
|
-
imports.wbg.
|
577
|
-
return handleError(function(arg0
|
578
|
-
const ret = getObject(arg0).
|
575
|
+
imports.wbg.__wbg_keyPath_99296ea462206d00 = function() {
|
576
|
+
return handleError(function(arg0) {
|
577
|
+
const ret = getObject(arg0).keyPath;
|
579
578
|
return addHeapObject(ret);
|
580
579
|
}, arguments);
|
581
580
|
};
|
582
|
-
imports.wbg.
|
581
|
+
imports.wbg.__wbg_multiEntry_986f6867169805dd = function(arg0) {
|
582
|
+
const ret = getObject(arg0).multiEntry;
|
583
|
+
return ret;
|
584
|
+
};
|
585
|
+
imports.wbg.__wbg_unique_3abe1f8c203c19fd = function(arg0) {
|
586
|
+
const ret = getObject(arg0).unique;
|
587
|
+
return ret;
|
588
|
+
};
|
589
|
+
imports.wbg.__wbg_get_b51eae1c0542125a = function() {
|
583
590
|
return handleError(function(arg0, arg1) {
|
584
591
|
const ret = getObject(arg0).get(getObject(arg1));
|
585
592
|
return addHeapObject(ret);
|
586
593
|
}, arguments);
|
587
594
|
};
|
588
|
-
imports.wbg.
|
595
|
+
imports.wbg.__wbg_indexNames_f6708f233630e491 = function(arg0) {
|
589
596
|
const ret = getObject(arg0).indexNames;
|
590
597
|
return addHeapObject(ret);
|
591
598
|
};
|
592
|
-
imports.wbg.
|
599
|
+
imports.wbg.__wbg_count_7b9a7e71c616b931 = function() {
|
593
600
|
return handleError(function(arg0) {
|
594
601
|
const ret = getObject(arg0).count();
|
595
602
|
return addHeapObject(ret);
|
596
603
|
}, arguments);
|
597
604
|
};
|
598
|
-
imports.wbg.
|
605
|
+
imports.wbg.__wbg_count_89ec71d494623a00 = function() {
|
599
606
|
return handleError(function(arg0, arg1) {
|
600
607
|
const ret = getObject(arg0).count(getObject(arg1));
|
601
608
|
return addHeapObject(ret);
|
602
609
|
}, arguments);
|
603
610
|
};
|
604
|
-
imports.wbg.
|
611
|
+
imports.wbg.__wbg_createIndex_8420e89baab0736f = function() {
|
605
612
|
return handleError(function(arg0, arg1, arg2, arg3) {
|
606
613
|
const ret = getObject(arg0).createIndex(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
607
614
|
return addHeapObject(ret);
|
608
615
|
}, arguments);
|
609
616
|
};
|
610
|
-
imports.wbg.
|
617
|
+
imports.wbg.__wbg_createIndex_6d4c3e20ee0f1066 = function() {
|
611
618
|
return handleError(function(arg0, arg1, arg2, arg3, arg4) {
|
612
619
|
const ret = getObject(arg0).createIndex(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));
|
613
620
|
return addHeapObject(ret);
|
614
621
|
}, arguments);
|
615
622
|
};
|
616
|
-
imports.wbg.
|
623
|
+
imports.wbg.__wbg_delete_34764ece57bdc720 = function() {
|
617
624
|
return handleError(function(arg0, arg1) {
|
618
625
|
const ret = getObject(arg0).delete(getObject(arg1));
|
619
626
|
return addHeapObject(ret);
|
620
627
|
}, arguments);
|
621
628
|
};
|
622
|
-
imports.wbg.
|
629
|
+
imports.wbg.__wbg_deleteIndex_86b1a90a771f3fd2 = function() {
|
623
630
|
return handleError(function(arg0, arg1, arg2) {
|
624
631
|
getObject(arg0).deleteIndex(getStringFromWasm0(arg1, arg2));
|
625
632
|
}, arguments);
|
626
633
|
};
|
627
|
-
imports.wbg.
|
634
|
+
imports.wbg.__wbg_get_88b5e79e9daccb9f = function() {
|
628
635
|
return handleError(function(arg0, arg1) {
|
629
636
|
const ret = getObject(arg0).get(getObject(arg1));
|
630
637
|
return addHeapObject(ret);
|
631
638
|
}, arguments);
|
632
639
|
};
|
633
|
-
imports.wbg.
|
640
|
+
imports.wbg.__wbg_index_c90226e82bd94b45 = function() {
|
634
641
|
return handleError(function(arg0, arg1, arg2) {
|
635
642
|
const ret = getObject(arg0).index(getStringFromWasm0(arg1, arg2));
|
636
643
|
return addHeapObject(ret);
|
637
644
|
}, arguments);
|
638
645
|
};
|
639
|
-
imports.wbg.
|
646
|
+
imports.wbg.__wbg_openCursor_728ede41c2e2d7ec = function() {
|
640
647
|
return handleError(function(arg0) {
|
641
648
|
const ret = getObject(arg0).openCursor();
|
642
649
|
return addHeapObject(ret);
|
643
650
|
}, arguments);
|
644
651
|
};
|
645
|
-
imports.wbg.
|
652
|
+
imports.wbg.__wbg_openCursor_8ca06744434102da = function() {
|
646
653
|
return handleError(function(arg0, arg1) {
|
647
654
|
const ret = getObject(arg0).openCursor(getObject(arg1));
|
648
655
|
return addHeapObject(ret);
|
649
656
|
}, arguments);
|
650
657
|
};
|
651
|
-
imports.wbg.
|
658
|
+
imports.wbg.__wbg_openCursor_3193d7a663a8bc61 = function() {
|
652
659
|
return handleError(function(arg0, arg1, arg2) {
|
653
|
-
const ret = getObject(arg0).openCursor(getObject(arg1),
|
660
|
+
const ret = getObject(arg0).openCursor(getObject(arg1), ["next", "nextunique", "prev", "prevunique"][arg2]);
|
654
661
|
return addHeapObject(ret);
|
655
662
|
}, arguments);
|
656
663
|
};
|
657
|
-
imports.wbg.
|
664
|
+
imports.wbg.__wbg_put_b697dfdbcfb0598f = function() {
|
658
665
|
return handleError(function(arg0, arg1) {
|
659
666
|
const ret = getObject(arg0).put(getObject(arg1));
|
660
667
|
return addHeapObject(ret);
|
661
668
|
}, arguments);
|
662
669
|
};
|
663
|
-
imports.wbg.
|
670
|
+
imports.wbg.__wbg_put_f83d95662936dee7 = function() {
|
664
671
|
return handleError(function(arg0, arg1, arg2) {
|
665
672
|
const ret = getObject(arg0).put(getObject(arg1), getObject(arg2));
|
666
673
|
return addHeapObject(ret);
|
667
674
|
}, arguments);
|
668
675
|
};
|
669
|
-
imports.wbg.
|
676
|
+
imports.wbg.__wbg_instanceof_IdbOpenDbRequest_c0d2e9c902441588 = function(arg0) {
|
670
677
|
let result;
|
671
678
|
try {
|
672
679
|
result = getObject(arg0) instanceof IDBOpenDBRequest;
|
@@ -676,10 +683,10 @@ function __wbg_get_imports() {
|
|
676
683
|
const ret = result;
|
677
684
|
return ret;
|
678
685
|
};
|
679
|
-
imports.wbg.
|
686
|
+
imports.wbg.__wbg_setonupgradeneeded_8f3f0ac5d7130a6f = function(arg0, arg1) {
|
680
687
|
getObject(arg0).onupgradeneeded = getObject(arg1);
|
681
688
|
};
|
682
|
-
imports.wbg.
|
689
|
+
imports.wbg.__wbg_instanceof_IdbRequest_44d99b46adafe829 = function(arg0) {
|
683
690
|
let result;
|
684
691
|
try {
|
685
692
|
result = getObject(arg0) instanceof IDBRequest;
|
@@ -689,135 +696,135 @@ function __wbg_get_imports() {
|
|
689
696
|
const ret = result;
|
690
697
|
return ret;
|
691
698
|
};
|
692
|
-
imports.wbg.
|
699
|
+
imports.wbg.__wbg_result_fd2dae625828961d = function() {
|
693
700
|
return handleError(function(arg0) {
|
694
701
|
const ret = getObject(arg0).result;
|
695
702
|
return addHeapObject(ret);
|
696
703
|
}, arguments);
|
697
704
|
};
|
698
|
-
imports.wbg.
|
705
|
+
imports.wbg.__wbg_error_1221bc1f1d0b14d3 = function() {
|
699
706
|
return handleError(function(arg0) {
|
700
707
|
const ret = getObject(arg0).error;
|
701
708
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
702
709
|
}, arguments);
|
703
710
|
};
|
704
|
-
imports.wbg.
|
711
|
+
imports.wbg.__wbg_transaction_0549f2d854da77a6 = function(arg0) {
|
705
712
|
const ret = getObject(arg0).transaction;
|
706
713
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
707
714
|
};
|
708
|
-
imports.wbg.
|
715
|
+
imports.wbg.__wbg_setonsuccess_962c293b6e38a5d5 = function(arg0, arg1) {
|
709
716
|
getObject(arg0).onsuccess = getObject(arg1);
|
710
717
|
};
|
711
|
-
imports.wbg.
|
718
|
+
imports.wbg.__wbg_setonerror_bd61d0a61808ca40 = function(arg0, arg1) {
|
712
719
|
getObject(arg0).onerror = getObject(arg1);
|
713
720
|
};
|
714
|
-
imports.wbg.
|
721
|
+
imports.wbg.__wbg_objectStore_80724f9f6d33ab5b = function() {
|
715
722
|
return handleError(function(arg0, arg1, arg2) {
|
716
723
|
const ret = getObject(arg0).objectStore(getStringFromWasm0(arg1, arg2));
|
717
724
|
return addHeapObject(ret);
|
718
725
|
}, arguments);
|
719
726
|
};
|
720
|
-
imports.wbg.
|
727
|
+
imports.wbg.__wbg_warn_2b3adb99ce26c314 = function(arg0) {
|
721
728
|
console.warn(getObject(arg0));
|
722
729
|
};
|
723
|
-
imports.wbg.
|
730
|
+
imports.wbg.__wbg_self_3093d5d1f7bcb682 = function() {
|
724
731
|
return handleError(function() {
|
725
732
|
const ret = self.self;
|
726
733
|
return addHeapObject(ret);
|
727
734
|
}, arguments);
|
728
735
|
};
|
729
|
-
imports.wbg.
|
736
|
+
imports.wbg.__wbg_window_3bcfc4d31bc012f8 = function() {
|
730
737
|
return handleError(function() {
|
731
738
|
const ret = window.window;
|
732
739
|
return addHeapObject(ret);
|
733
740
|
}, arguments);
|
734
741
|
};
|
735
|
-
imports.wbg.
|
742
|
+
imports.wbg.__wbg_globalThis_86b222e13bdf32ed = function() {
|
736
743
|
return handleError(function() {
|
737
744
|
const ret = globalThis.globalThis;
|
738
745
|
return addHeapObject(ret);
|
739
746
|
}, arguments);
|
740
747
|
};
|
741
|
-
imports.wbg.
|
748
|
+
imports.wbg.__wbg_global_e5a3fe56f8be9485 = function() {
|
742
749
|
return handleError(function() {
|
743
750
|
const ret = global.global;
|
744
751
|
return addHeapObject(ret);
|
745
752
|
}, arguments);
|
746
753
|
};
|
747
|
-
imports.wbg.
|
754
|
+
imports.wbg.__wbg_newnoargs_76313bd6ff35d0f2 = function(arg0, arg1) {
|
748
755
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
749
756
|
return addHeapObject(ret);
|
750
757
|
};
|
751
|
-
imports.wbg.
|
758
|
+
imports.wbg.__wbg_call_1084a111329e68ce = function() {
|
752
759
|
return handleError(function(arg0, arg1) {
|
753
760
|
const ret = getObject(arg0).call(getObject(arg1));
|
754
761
|
return addHeapObject(ret);
|
755
762
|
}, arguments);
|
756
763
|
};
|
757
|
-
imports.wbg.
|
764
|
+
imports.wbg.__wbg_get_3baa728f9d58d3f6 = function(arg0, arg1) {
|
758
765
|
const ret = getObject(arg0)[arg1 >>> 0];
|
759
766
|
return addHeapObject(ret);
|
760
767
|
};
|
761
|
-
imports.wbg.
|
768
|
+
imports.wbg.__wbg_length_ae22078168b726f5 = function(arg0) {
|
762
769
|
const ret = getObject(arg0).length;
|
763
770
|
return ret;
|
764
771
|
};
|
765
|
-
imports.wbg.
|
772
|
+
imports.wbg.__wbg_new_a220cf903aa02ca2 = function() {
|
766
773
|
const ret = new Array;
|
767
774
|
return addHeapObject(ret);
|
768
775
|
};
|
769
|
-
imports.wbg.
|
776
|
+
imports.wbg.__wbg_new_8608a2b51a5f6737 = function() {
|
770
777
|
const ret = new Map;
|
771
778
|
return addHeapObject(ret);
|
772
779
|
};
|
773
|
-
imports.wbg.
|
780
|
+
imports.wbg.__wbg_next_de3e9db4440638b2 = function(arg0) {
|
774
781
|
const ret = getObject(arg0).next;
|
775
782
|
return addHeapObject(ret);
|
776
783
|
};
|
777
|
-
imports.wbg.
|
784
|
+
imports.wbg.__wbg_next_f9cb570345655b9a = function() {
|
778
785
|
return handleError(function(arg0) {
|
779
786
|
const ret = getObject(arg0).next();
|
780
787
|
return addHeapObject(ret);
|
781
788
|
}, arguments);
|
782
789
|
};
|
783
|
-
imports.wbg.
|
790
|
+
imports.wbg.__wbg_done_bfda7aa8f252b39f = function(arg0) {
|
784
791
|
const ret = getObject(arg0).done;
|
785
792
|
return ret;
|
786
793
|
};
|
787
|
-
imports.wbg.
|
794
|
+
imports.wbg.__wbg_value_6d39332ab4788d86 = function(arg0) {
|
788
795
|
const ret = getObject(arg0).value;
|
789
796
|
return addHeapObject(ret);
|
790
797
|
};
|
791
|
-
imports.wbg.
|
798
|
+
imports.wbg.__wbg_iterator_888179a48810a9fe = function() {
|
792
799
|
const ret = Symbol.iterator;
|
793
800
|
return addHeapObject(ret);
|
794
801
|
};
|
795
|
-
imports.wbg.
|
802
|
+
imports.wbg.__wbg_get_224d16597dbbfd96 = function() {
|
796
803
|
return handleError(function(arg0, arg1) {
|
797
804
|
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
798
805
|
return addHeapObject(ret);
|
799
806
|
}, arguments);
|
800
807
|
};
|
801
|
-
imports.wbg.
|
808
|
+
imports.wbg.__wbg_new_525245e2b9901204 = function() {
|
802
809
|
const ret = new Object;
|
803
810
|
return addHeapObject(ret);
|
804
811
|
};
|
805
|
-
imports.wbg.
|
812
|
+
imports.wbg.__wbg_set_673dda6c73d19609 = function(arg0, arg1, arg2) {
|
806
813
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
807
814
|
};
|
808
|
-
imports.wbg.
|
815
|
+
imports.wbg.__wbg_isArray_8364a5371e9737d8 = function(arg0) {
|
809
816
|
const ret = Array.isArray(getObject(arg0));
|
810
817
|
return ret;
|
811
818
|
};
|
812
|
-
imports.wbg.
|
819
|
+
imports.wbg.__wbg_of_5d71c4c026eebdde = function(arg0, arg1, arg2, arg3) {
|
813
820
|
const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
|
814
821
|
return addHeapObject(ret);
|
815
822
|
};
|
816
|
-
imports.wbg.
|
823
|
+
imports.wbg.__wbg_push_37c89022f34c01ca = function(arg0, arg1) {
|
817
824
|
const ret = getObject(arg0).push(getObject(arg1));
|
818
825
|
return ret;
|
819
826
|
};
|
820
|
-
imports.wbg.
|
827
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_61dfc3198373c902 = function(arg0) {
|
821
828
|
let result;
|
822
829
|
try {
|
823
830
|
result = getObject(arg0) instanceof ArrayBuffer;
|
@@ -827,35 +834,35 @@ function __wbg_get_imports() {
|
|
827
834
|
const ret = result;
|
828
835
|
return ret;
|
829
836
|
};
|
830
|
-
imports.wbg.
|
837
|
+
imports.wbg.__wbg_new_796382978dfd4fb0 = function(arg0, arg1) {
|
831
838
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
832
839
|
return addHeapObject(ret);
|
833
840
|
};
|
834
|
-
imports.wbg.
|
841
|
+
imports.wbg.__wbg_apply_353f4c9ca391d52b = function() {
|
835
842
|
return handleError(function(arg0, arg1, arg2) {
|
836
843
|
const ret = getObject(arg0).apply(getObject(arg1), getObject(arg2));
|
837
844
|
return addHeapObject(ret);
|
838
845
|
}, arguments);
|
839
846
|
};
|
840
|
-
imports.wbg.
|
847
|
+
imports.wbg.__wbg_call_89af060b4e1523f2 = function() {
|
841
848
|
return handleError(function(arg0, arg1, arg2) {
|
842
849
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
843
850
|
return addHeapObject(ret);
|
844
851
|
}, arguments);
|
845
852
|
};
|
846
|
-
imports.wbg.
|
853
|
+
imports.wbg.__wbg_call_c6fe275aaa60da79 = function() {
|
847
854
|
return handleError(function(arg0, arg1, arg2, arg3) {
|
848
855
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
|
849
856
|
return addHeapObject(ret);
|
850
857
|
}, arguments);
|
851
858
|
};
|
852
|
-
imports.wbg.
|
859
|
+
imports.wbg.__wbg_call_7de908392845a9a5 = function() {
|
853
860
|
return handleError(function(arg0, arg1, arg2, arg3, arg4) {
|
854
861
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3), getObject(arg4));
|
855
862
|
return addHeapObject(ret);
|
856
863
|
}, arguments);
|
857
864
|
};
|
858
|
-
imports.wbg.
|
865
|
+
imports.wbg.__wbg_instanceof_Map_763ce0e95960d55e = function(arg0) {
|
859
866
|
let result;
|
860
867
|
try {
|
861
868
|
result = getObject(arg0) instanceof Map;
|
@@ -865,41 +872,35 @@ function __wbg_get_imports() {
|
|
865
872
|
const ret = result;
|
866
873
|
return ret;
|
867
874
|
};
|
868
|
-
imports.wbg.
|
875
|
+
imports.wbg.__wbg_set_49185437f0ab06f8 = function(arg0, arg1, arg2) {
|
869
876
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
870
877
|
return addHeapObject(ret);
|
871
878
|
};
|
872
|
-
imports.wbg.
|
879
|
+
imports.wbg.__wbg_isSafeInteger_7f1ed56200d90674 = function(arg0) {
|
873
880
|
const ret = Number.isSafeInteger(getObject(arg0));
|
874
881
|
return ret;
|
875
882
|
};
|
876
|
-
imports.wbg.
|
883
|
+
imports.wbg.__wbg_getTime_91058879093a1589 = function(arg0) {
|
877
884
|
const ret = getObject(arg0).getTime();
|
878
885
|
return ret;
|
879
886
|
};
|
880
|
-
imports.wbg.
|
887
|
+
imports.wbg.__wbg_new0_65387337a95cf44d = function() {
|
881
888
|
const ret = new Date;
|
882
889
|
return addHeapObject(ret);
|
883
890
|
};
|
884
|
-
imports.wbg.
|
891
|
+
imports.wbg.__wbg_now_b7a162010a9e75b4 = function() {
|
885
892
|
const ret = Date.now();
|
886
893
|
return ret;
|
887
894
|
};
|
888
|
-
imports.wbg.
|
895
|
+
imports.wbg.__wbg_entries_7a0e06255456ebcd = function(arg0) {
|
889
896
|
const ret = Object.entries(getObject(arg0));
|
890
897
|
return addHeapObject(ret);
|
891
898
|
};
|
892
|
-
imports.wbg.
|
893
|
-
return handleError(function(arg0, arg1, arg2) {
|
894
|
-
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
895
|
-
return ret;
|
896
|
-
}, arguments);
|
897
|
-
};
|
898
|
-
imports.wbg.__wbg_buffer_12d079cc21e14bdb = function(arg0) {
|
899
|
+
imports.wbg.__wbg_buffer_b7b08af79b0b0974 = function(arg0) {
|
899
900
|
const ret = getObject(arg0).buffer;
|
900
901
|
return addHeapObject(ret);
|
901
902
|
};
|
902
|
-
imports.wbg.
|
903
|
+
imports.wbg.__wbg_instanceof_Promise_ae8c7ffdec83f2ae = function(arg0) {
|
903
904
|
let result;
|
904
905
|
try {
|
905
906
|
result = getObject(arg0) instanceof Promise;
|
@@ -909,14 +910,14 @@ function __wbg_get_imports() {
|
|
909
910
|
const ret = result;
|
910
911
|
return ret;
|
911
912
|
};
|
912
|
-
imports.wbg.
|
913
|
+
imports.wbg.__wbg_new_b85e72ed1bfd57f9 = function(arg0, arg1) {
|
913
914
|
try {
|
914
915
|
var state0 = { a: arg0, b: arg1 };
|
915
916
|
var cb0 = (arg02, arg12) => {
|
916
917
|
const a = state0.a;
|
917
918
|
state0.a = 0;
|
918
919
|
try {
|
919
|
-
return
|
920
|
+
return __wbg_adapter_452(a, state0.b, arg02, arg12);
|
920
921
|
} finally {
|
921
922
|
state0.a = a;
|
922
923
|
}
|
@@ -927,38 +928,38 @@ function __wbg_get_imports() {
|
|
927
928
|
state0.a = state0.b = 0;
|
928
929
|
}
|
929
930
|
};
|
930
|
-
imports.wbg.
|
931
|
+
imports.wbg.__wbg_reject_8846d0df08d42ee6 = function(arg0) {
|
931
932
|
const ret = Promise.reject(getObject(arg0));
|
932
933
|
return addHeapObject(ret);
|
933
934
|
};
|
934
|
-
imports.wbg.
|
935
|
+
imports.wbg.__wbg_resolve_570458cb99d56a43 = function(arg0) {
|
935
936
|
const ret = Promise.resolve(getObject(arg0));
|
936
937
|
return addHeapObject(ret);
|
937
938
|
};
|
938
|
-
imports.wbg.
|
939
|
+
imports.wbg.__wbg_then_95e6edc0f89b73b1 = function(arg0, arg1) {
|
939
940
|
const ret = getObject(arg0).then(getObject(arg1));
|
940
941
|
return addHeapObject(ret);
|
941
942
|
};
|
942
|
-
imports.wbg.
|
943
|
+
imports.wbg.__wbg_then_876bb3c633745cc6 = function(arg0, arg1, arg2) {
|
943
944
|
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
944
945
|
return addHeapObject(ret);
|
945
946
|
};
|
946
|
-
imports.wbg.
|
947
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_8a2cb9ca96b27ec9 = function(arg0, arg1, arg2) {
|
947
948
|
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
948
949
|
return addHeapObject(ret);
|
949
950
|
};
|
950
|
-
imports.wbg.
|
951
|
+
imports.wbg.__wbg_new_ea1883e1e5e86686 = function(arg0) {
|
951
952
|
const ret = new Uint8Array(getObject(arg0));
|
952
953
|
return addHeapObject(ret);
|
953
954
|
};
|
954
|
-
imports.wbg.
|
955
|
+
imports.wbg.__wbg_set_d1e79e2388520f18 = function(arg0, arg1, arg2) {
|
955
956
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
956
957
|
};
|
957
|
-
imports.wbg.
|
958
|
+
imports.wbg.__wbg_length_8339fcf5d8ecd12e = function(arg0) {
|
958
959
|
const ret = getObject(arg0).length;
|
959
960
|
return ret;
|
960
961
|
};
|
961
|
-
imports.wbg.
|
962
|
+
imports.wbg.__wbg_instanceof_Uint8Array_247a91427532499e = function(arg0) {
|
962
963
|
let result;
|
963
964
|
try {
|
964
965
|
result = getObject(arg0) instanceof Uint8Array;
|
@@ -968,26 +969,26 @@ function __wbg_get_imports() {
|
|
968
969
|
const ret = result;
|
969
970
|
return ret;
|
970
971
|
};
|
971
|
-
imports.wbg.
|
972
|
+
imports.wbg.__wbg_newwithlength_ec548f448387c968 = function(arg0) {
|
972
973
|
const ret = new Uint8Array(arg0 >>> 0);
|
973
974
|
return addHeapObject(ret);
|
974
975
|
};
|
975
|
-
imports.wbg.
|
976
|
+
imports.wbg.__wbg_subarray_7c2e3576afe181d1 = function(arg0, arg1, arg2) {
|
976
977
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
977
978
|
return addHeapObject(ret);
|
978
979
|
};
|
979
980
|
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
980
981
|
const v = getObject(arg1);
|
981
982
|
const ret = typeof v === "bigint" ? v : undefined;
|
982
|
-
|
983
|
-
|
983
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
984
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
984
985
|
};
|
985
986
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
986
987
|
const ret = debugString(getObject(arg1));
|
987
988
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
988
989
|
const len1 = WASM_VECTOR_LEN;
|
989
|
-
|
990
|
-
|
990
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
991
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
991
992
|
};
|
992
993
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
993
994
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
@@ -996,45 +997,46 @@ function __wbg_get_imports() {
|
|
996
997
|
const ret = wasm.memory;
|
997
998
|
return addHeapObject(ret);
|
998
999
|
};
|
999
|
-
imports.wbg.
|
1000
|
+
imports.wbg.__wbindgen_closure_wrapper3138 = function(arg0, arg1, arg2) {
|
1000
1001
|
const ret = makeMutClosure(arg0, arg1, 632, __wbg_adapter_52);
|
1001
1002
|
return addHeapObject(ret);
|
1002
1003
|
};
|
1003
|
-
imports.wbg.
|
1004
|
-
const ret = makeMutClosure(arg0, arg1,
|
1004
|
+
imports.wbg.__wbindgen_closure_wrapper13426 = function(arg0, arg1, arg2) {
|
1005
|
+
const ret = makeMutClosure(arg0, arg1, 2033, __wbg_adapter_55);
|
1005
1006
|
return addHeapObject(ret);
|
1006
1007
|
};
|
1007
1008
|
imports.wbg.__wbindgen_closure_wrapper15127 = function(arg0, arg1, arg2) {
|
1008
|
-
const ret = makeMutClosure(arg0, arg1,
|
1009
|
+
const ret = makeMutClosure(arg0, arg1, 2252, __wbg_adapter_58);
|
1009
1010
|
return addHeapObject(ret);
|
1010
1011
|
};
|
1011
1012
|
return imports;
|
1012
1013
|
}
|
1013
|
-
function __wbg_init_memory(imports,
|
1014
|
+
function __wbg_init_memory(imports, memory) {
|
1014
1015
|
}
|
1015
1016
|
function __wbg_finalize_init(instance, module) {
|
1016
1017
|
wasm = instance.exports;
|
1017
1018
|
__wbg_init.__wbindgen_wasm_module = module;
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
cachedUint16Memory0 = null;
|
1022
|
-
cachedUint32Memory0 = null;
|
1023
|
-
cachedUint8Memory0 = null;
|
1019
|
+
cachedDataViewMemory0 = null;
|
1020
|
+
cachedUint16ArrayMemory0 = null;
|
1021
|
+
cachedUint8ArrayMemory0 = null;
|
1024
1022
|
return wasm;
|
1025
1023
|
}
|
1026
|
-
async function __wbg_init(
|
1024
|
+
async function __wbg_init(module_or_path) {
|
1027
1025
|
if (wasm !== undefined)
|
1028
1026
|
return wasm;
|
1029
|
-
if (typeof
|
1030
|
-
|
1027
|
+
if (typeof module_or_path !== "undefined" && Object.getPrototypeOf(module_or_path) === Object.prototype)
|
1028
|
+
({ module_or_path } = module_or_path);
|
1029
|
+
else
|
1030
|
+
console.warn("using deprecated parameters for the initialization function; pass a single object instead");
|
1031
|
+
if (typeof module_or_path === "undefined") {
|
1032
|
+
module_or_path = new URL("core-crypto-ffi_bg.wasm", import.meta.url);
|
1031
1033
|
}
|
1032
1034
|
const imports = __wbg_get_imports();
|
1033
|
-
if (typeof
|
1034
|
-
|
1035
|
+
if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
|
1036
|
+
module_or_path = fetch(module_or_path);
|
1035
1037
|
}
|
1036
1038
|
__wbg_init_memory(imports);
|
1037
|
-
const { instance, module } = await __wbg_load(await
|
1039
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
1038
1040
|
return __wbg_finalize_init(instance, module);
|
1039
1041
|
}
|
1040
1042
|
var wasm;
|
@@ -1047,7 +1049,7 @@ var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("ut
|
|
1047
1049
|
if (typeof TextDecoder !== "undefined") {
|
1048
1050
|
cachedTextDecoder.decode();
|
1049
1051
|
}
|
1050
|
-
var
|
1052
|
+
var cachedUint8ArrayMemory0 = null;
|
1051
1053
|
var WASM_VECTOR_LEN = 0;
|
1052
1054
|
var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
|
1053
1055
|
throw Error("TextEncoder not available");
|
@@ -1062,25 +1064,19 @@ var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function
|
|
1062
1064
|
written: buf.length
|
1063
1065
|
};
|
1064
1066
|
};
|
1065
|
-
var
|
1066
|
-
var cachedFloat64Memory0 = null;
|
1067
|
-
var cachedBigInt64Memory0 = null;
|
1067
|
+
var cachedDataViewMemory0 = null;
|
1068
1068
|
var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1069
1069
|
}, unregister: () => {
|
1070
1070
|
} } : new FinalizationRegistry((state) => {
|
1071
1071
|
wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b);
|
1072
1072
|
});
|
1073
|
-
var
|
1074
|
-
var
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
"2": "Expired",
|
1080
|
-
Revoked: 3,
|
1081
|
-
"3": "Revoked"
|
1073
|
+
var cachedUint16ArrayMemory0 = null;
|
1074
|
+
var WirePolicy = Object.freeze({
|
1075
|
+
Plaintext: 1,
|
1076
|
+
"1": "Plaintext",
|
1077
|
+
Ciphertext: 2,
|
1078
|
+
"2": "Ciphertext"
|
1082
1079
|
});
|
1083
|
-
var CoreCryptoLogLevel = Object.freeze({ Off: 1, "1": "Off", Trace: 2, "2": "Trace", Debug: 3, "3": "Debug", Info: 4, "4": "Info", Warn: 5, "5": "Warn", Error: 6, "6": "Error" });
|
1084
1080
|
var Ciphersuite = Object.freeze({
|
1085
1081
|
MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519: 1,
|
1086
1082
|
"1": "MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519",
|
@@ -1097,12 +1093,15 @@ var Ciphersuite = Object.freeze({
|
|
1097
1093
|
MLS_256_DHKEMP384_AES256GCM_SHA384_P384: 7,
|
1098
1094
|
"7": "MLS_256_DHKEMP384_AES256GCM_SHA384_P384"
|
1099
1095
|
});
|
1100
|
-
var
|
1101
|
-
|
1102
|
-
"1": "
|
1103
|
-
|
1104
|
-
"2": "
|
1096
|
+
var DeviceStatus = Object.freeze({
|
1097
|
+
Valid: 1,
|
1098
|
+
"1": "Valid",
|
1099
|
+
Expired: 2,
|
1100
|
+
"2": "Expired",
|
1101
|
+
Revoked: 3,
|
1102
|
+
"3": "Revoked"
|
1105
1103
|
});
|
1104
|
+
var CoreCryptoLogLevel = Object.freeze({ Off: 1, "1": "Off", Trace: 2, "2": "Trace", Debug: 3, "3": "Debug", Info: 4, "4": "Info", Warn: 5, "5": "Warn", Error: 6, "6": "Error" });
|
1106
1105
|
var CredentialType = Object.freeze({
|
1107
1106
|
Basic: 1,
|
1108
1107
|
"1": "Basic",
|
@@ -1111,7 +1110,7 @@ var CredentialType = Object.freeze({
|
|
1111
1110
|
});
|
1112
1111
|
var AcmeChallengeFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1113
1112
|
}, unregister: () => {
|
1114
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_acmechallenge_free(ptr >>> 0));
|
1113
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_acmechallenge_free(ptr >>> 0, 1));
|
1115
1114
|
|
1116
1115
|
class AcmeChallenge {
|
1117
1116
|
static __wrap(ptr) {
|
@@ -1129,14 +1128,14 @@ class AcmeChallenge {
|
|
1129
1128
|
}
|
1130
1129
|
free() {
|
1131
1130
|
const ptr = this.__destroy_into_raw();
|
1132
|
-
wasm.__wbg_acmechallenge_free(ptr);
|
1131
|
+
wasm.__wbg_acmechallenge_free(ptr, 0);
|
1133
1132
|
}
|
1134
1133
|
get delegate() {
|
1135
1134
|
try {
|
1136
1135
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
1137
1136
|
wasm.__wbg_get_acmechallenge_delegate(retptr, this.__wbg_ptr);
|
1138
|
-
var r0 =
|
1139
|
-
var r1 =
|
1137
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
1138
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
1140
1139
|
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
1141
1140
|
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
1142
1141
|
return v1;
|
@@ -1150,8 +1149,8 @@ class AcmeChallenge {
|
|
1150
1149
|
try {
|
1151
1150
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
1152
1151
|
wasm.__wbg_get_acmechallenge_url(retptr, this.__wbg_ptr);
|
1153
|
-
var r0 =
|
1154
|
-
var r1 =
|
1152
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
1153
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
1155
1154
|
deferred1_0 = r0;
|
1156
1155
|
deferred1_1 = r1;
|
1157
1156
|
return getStringFromWasm0(r0, r1);
|
@@ -1166,8 +1165,8 @@ class AcmeChallenge {
|
|
1166
1165
|
try {
|
1167
1166
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
1168
1167
|
wasm.__wbg_get_acmechallenge_target(retptr, this.__wbg_ptr);
|
1169
|
-
var r0 =
|
1170
|
-
var r1 =
|
1168
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
1169
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
1171
1170
|
deferred1_0 = r0;
|
1172
1171
|
deferred1_1 = r1;
|
1173
1172
|
return getStringFromWasm0(r0, r1);
|
@@ -1179,7 +1178,7 @@ class AcmeChallenge {
|
|
1179
1178
|
}
|
1180
1179
|
var AcmeDirectoryFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1181
1180
|
}, unregister: () => {
|
1182
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_acmedirectory_free(ptr >>> 0));
|
1181
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_acmedirectory_free(ptr >>> 0, 1));
|
1183
1182
|
|
1184
1183
|
class AcmeDirectory {
|
1185
1184
|
static __wrap(ptr) {
|
@@ -1197,7 +1196,7 @@ class AcmeDirectory {
|
|
1197
1196
|
}
|
1198
1197
|
free() {
|
1199
1198
|
const ptr = this.__destroy_into_raw();
|
1200
|
-
wasm.__wbg_acmedirectory_free(ptr);
|
1199
|
+
wasm.__wbg_acmedirectory_free(ptr, 0);
|
1201
1200
|
}
|
1202
1201
|
get new_nonce() {
|
1203
1202
|
let deferred1_0;
|
@@ -1205,8 +1204,8 @@ class AcmeDirectory {
|
|
1205
1204
|
try {
|
1206
1205
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
1207
1206
|
wasm.__wbg_get_acmedirectory_new_nonce(retptr, this.__wbg_ptr);
|
1208
|
-
var r0 =
|
1209
|
-
var r1 =
|
1207
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
1208
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
1210
1209
|
deferred1_0 = r0;
|
1211
1210
|
deferred1_1 = r1;
|
1212
1211
|
return getStringFromWasm0(r0, r1);
|
@@ -1221,8 +1220,8 @@ class AcmeDirectory {
|
|
1221
1220
|
try {
|
1222
1221
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
1223
1222
|
wasm.__wbg_get_acmechallenge_url(retptr, this.__wbg_ptr);
|
1224
|
-
var r0 =
|
1225
|
-
var r1 =
|
1223
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
1224
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
1226
1225
|
deferred1_0 = r0;
|
1227
1226
|
deferred1_1 = r1;
|
1228
1227
|
return getStringFromWasm0(r0, r1);
|
@@ -1237,8 +1236,8 @@ class AcmeDirectory {
|
|
1237
1236
|
try {
|
1238
1237
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
1239
1238
|
wasm.__wbg_get_acmechallenge_target(retptr, this.__wbg_ptr);
|
1240
|
-
var r0 =
|
1241
|
-
var r1 =
|
1239
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
1240
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
1242
1241
|
deferred1_0 = r0;
|
1243
1242
|
deferred1_1 = r1;
|
1244
1243
|
return getStringFromWasm0(r0, r1);
|
@@ -1253,8 +1252,8 @@ class AcmeDirectory {
|
|
1253
1252
|
try {
|
1254
1253
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
1255
1254
|
wasm.__wbg_get_acmedirectory_revoke_cert(retptr, this.__wbg_ptr);
|
1256
|
-
var r0 =
|
1257
|
-
var r1 =
|
1255
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
1256
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
1258
1257
|
deferred1_0 = r0;
|
1259
1258
|
deferred1_1 = r1;
|
1260
1259
|
return getStringFromWasm0(r0, r1);
|
@@ -1266,7 +1265,7 @@ class AcmeDirectory {
|
|
1266
1265
|
}
|
1267
1266
|
var BufferedDecryptedMessageFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1268
1267
|
}, unregister: () => {
|
1269
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_buffereddecryptedmessage_free(ptr >>> 0));
|
1268
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_buffereddecryptedmessage_free(ptr >>> 0, 1));
|
1270
1269
|
|
1271
1270
|
class BufferedDecryptedMessage {
|
1272
1271
|
static __wrap(ptr) {
|
@@ -1284,7 +1283,7 @@ class BufferedDecryptedMessage {
|
|
1284
1283
|
}
|
1285
1284
|
free() {
|
1286
1285
|
const ptr = this.__destroy_into_raw();
|
1287
|
-
wasm.__wbg_buffereddecryptedmessage_free(ptr);
|
1286
|
+
wasm.__wbg_buffereddecryptedmessage_free(ptr, 0);
|
1288
1287
|
}
|
1289
1288
|
get message() {
|
1290
1289
|
const ret = wasm.buffereddecryptedmessage_message(this.__wbg_ptr);
|
@@ -1302,8 +1301,8 @@ class BufferedDecryptedMessage {
|
|
1302
1301
|
try {
|
1303
1302
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
1304
1303
|
wasm.buffereddecryptedmessage_commit_delay(retptr, this.__wbg_ptr);
|
1305
|
-
var r0 =
|
1306
|
-
var r1 =
|
1304
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
1305
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
1307
1306
|
return r0 === 0 ? undefined : r1 >>> 0;
|
1308
1307
|
} finally {
|
1309
1308
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
@@ -1328,7 +1327,7 @@ class BufferedDecryptedMessage {
|
|
1328
1327
|
}
|
1329
1328
|
var CommitBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1330
1329
|
}, unregister: () => {
|
1331
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_commitbundle_free(ptr >>> 0));
|
1330
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_commitbundle_free(ptr >>> 0, 1));
|
1332
1331
|
|
1333
1332
|
class CommitBundle {
|
1334
1333
|
static __wrap(ptr) {
|
@@ -1346,7 +1345,7 @@ class CommitBundle {
|
|
1346
1345
|
}
|
1347
1346
|
free() {
|
1348
1347
|
const ptr = this.__destroy_into_raw();
|
1349
|
-
wasm.__wbg_commitbundle_free(ptr);
|
1348
|
+
wasm.__wbg_commitbundle_free(ptr, 0);
|
1350
1349
|
}
|
1351
1350
|
get commit() {
|
1352
1351
|
const ret = wasm.commitbundle_commit(this.__wbg_ptr);
|
@@ -1363,7 +1362,7 @@ class CommitBundle {
|
|
1363
1362
|
}
|
1364
1363
|
var ConversationConfigurationFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1365
1364
|
}, unregister: () => {
|
1366
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_conversationconfiguration_free(ptr >>> 0));
|
1365
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_conversationconfiguration_free(ptr >>> 0, 1));
|
1367
1366
|
|
1368
1367
|
class ConversationConfiguration {
|
1369
1368
|
__destroy_into_raw() {
|
@@ -1374,7 +1373,7 @@ class ConversationConfiguration {
|
|
1374
1373
|
}
|
1375
1374
|
free() {
|
1376
1375
|
const ptr = this.__destroy_into_raw();
|
1377
|
-
wasm.__wbg_conversationconfiguration_free(ptr);
|
1376
|
+
wasm.__wbg_conversationconfiguration_free(ptr, 0);
|
1378
1377
|
}
|
1379
1378
|
constructor(ciphersuite, external_senders, key_rotation_span, wire_policy) {
|
1380
1379
|
try {
|
@@ -1382,13 +1381,14 @@ class ConversationConfiguration {
|
|
1382
1381
|
var ptr0 = isLikeNone(external_senders) ? 0 : passArrayJsValueToWasm0(external_senders, wasm.__wbindgen_malloc);
|
1383
1382
|
var len0 = WASM_VECTOR_LEN;
|
1384
1383
|
wasm.conversationconfiguration_new(retptr, isLikeNone(ciphersuite) ? 8 : ciphersuite, ptr0, len0, !isLikeNone(key_rotation_span), isLikeNone(key_rotation_span) ? 0 : key_rotation_span, isLikeNone(wire_policy) ? 3 : wire_policy);
|
1385
|
-
var r0 =
|
1386
|
-
var r1 =
|
1387
|
-
var r2 =
|
1384
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
1385
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
1386
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
1388
1387
|
if (r2) {
|
1389
1388
|
throw takeObject(r1);
|
1390
1389
|
}
|
1391
1390
|
this.__wbg_ptr = r0 >>> 0;
|
1391
|
+
ConversationConfigurationFinalization.register(this, this.__wbg_ptr, this);
|
1392
1392
|
return this;
|
1393
1393
|
} finally {
|
1394
1394
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
@@ -1397,10 +1397,10 @@ class ConversationConfiguration {
|
|
1397
1397
|
}
|
1398
1398
|
var ConversationInitBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1399
1399
|
}, unregister: () => {
|
1400
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_conversationinitbundle_free(ptr >>> 0));
|
1400
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_conversationinitbundle_free(ptr >>> 0, 1));
|
1401
1401
|
var CoreCryptoFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1402
1402
|
}, unregister: () => {
|
1403
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_corecrypto_free(ptr >>> 0));
|
1403
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_corecrypto_free(ptr >>> 0, 1));
|
1404
1404
|
|
1405
1405
|
class CoreCrypto {
|
1406
1406
|
static __wrap(ptr) {
|
@@ -1418,7 +1418,7 @@ class CoreCrypto {
|
|
1418
1418
|
}
|
1419
1419
|
free() {
|
1420
1420
|
const ptr = this.__destroy_into_raw();
|
1421
|
-
wasm.__wbg_corecrypto_free(ptr);
|
1421
|
+
wasm.__wbg_corecrypto_free(ptr, 0);
|
1422
1422
|
}
|
1423
1423
|
e2ei_new_enrollment(client_id, display_name, handle, team, expiry_sec, ciphersuite) {
|
1424
1424
|
const ptr0 = passStringToWasm0(client_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -1546,8 +1546,8 @@ class CoreCrypto {
|
|
1546
1546
|
try {
|
1547
1547
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
1548
1548
|
wasm.corecrypto_version(retptr);
|
1549
|
-
var r0 =
|
1550
|
-
var r1 =
|
1549
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
1550
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
1551
1551
|
deferred1_0 = r0;
|
1552
1552
|
deferred1_1 = r1;
|
1553
1553
|
return getStringFromWasm0(r0, r1);
|
@@ -1890,9 +1890,9 @@ class CoreCrypto {
|
|
1890
1890
|
try {
|
1891
1891
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
1892
1892
|
wasm.corecrypto_proteus_last_resort_prekey_id(retptr);
|
1893
|
-
var r0 =
|
1894
|
-
var r1 =
|
1895
|
-
var r2 =
|
1893
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
1894
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
1895
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
1896
1896
|
if (r2) {
|
1897
1897
|
throw takeObject(r1);
|
1898
1898
|
}
|
@@ -1925,10 +1925,10 @@ class CoreCrypto {
|
|
1925
1925
|
const ptr0 = passArray8ToWasm0(prekey, wasm.__wbindgen_malloc);
|
1926
1926
|
const len0 = WASM_VECTOR_LEN;
|
1927
1927
|
wasm.corecrypto_proteus_fingerprint_prekeybundle(retptr, ptr0, len0);
|
1928
|
-
var r0 =
|
1929
|
-
var r1 =
|
1930
|
-
var r2 =
|
1931
|
-
var r3 =
|
1928
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
1929
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
1930
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
1931
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
1932
1932
|
var ptr2 = r0;
|
1933
1933
|
var len2 = r1;
|
1934
1934
|
if (r3) {
|
@@ -1975,7 +1975,7 @@ class CoreCrypto {
|
|
1975
1975
|
}
|
1976
1976
|
var CoreCryptoWasmCallbacksFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1977
1977
|
}, unregister: () => {
|
1978
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_corecryptowasmcallbacks_free(ptr >>> 0));
|
1978
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_corecryptowasmcallbacks_free(ptr >>> 0, 1));
|
1979
1979
|
|
1980
1980
|
class CoreCryptoWasmCallbacks {
|
1981
1981
|
__destroy_into_raw() {
|
@@ -1986,17 +1986,18 @@ class CoreCryptoWasmCallbacks {
|
|
1986
1986
|
}
|
1987
1987
|
free() {
|
1988
1988
|
const ptr = this.__destroy_into_raw();
|
1989
|
-
wasm.__wbg_corecryptowasmcallbacks_free(ptr);
|
1989
|
+
wasm.__wbg_corecryptowasmcallbacks_free(ptr, 0);
|
1990
1990
|
}
|
1991
1991
|
constructor(authorize, user_authorize, client_is_existing_group_user, ctx) {
|
1992
1992
|
const ret = wasm.corecryptowasmcallbacks_new(addHeapObject(authorize), addHeapObject(user_authorize), addHeapObject(client_is_existing_group_user), addHeapObject(ctx));
|
1993
1993
|
this.__wbg_ptr = ret >>> 0;
|
1994
|
+
CoreCryptoWasmCallbacksFinalization.register(this, this.__wbg_ptr, this);
|
1994
1995
|
return this;
|
1995
1996
|
}
|
1996
1997
|
}
|
1997
1998
|
var CoreCryptoWasmLoggerFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
1998
1999
|
}, unregister: () => {
|
1999
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_corecryptowasmlogger_free(ptr >>> 0));
|
2000
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_corecryptowasmlogger_free(ptr >>> 0, 1));
|
2000
2001
|
|
2001
2002
|
class CoreCryptoWasmLogger {
|
2002
2003
|
__destroy_into_raw() {
|
@@ -2007,20 +2008,21 @@ class CoreCryptoWasmLogger {
|
|
2007
2008
|
}
|
2008
2009
|
free() {
|
2009
2010
|
const ptr = this.__destroy_into_raw();
|
2010
|
-
wasm.__wbg_corecryptowasmlogger_free(ptr);
|
2011
|
+
wasm.__wbg_corecryptowasmlogger_free(ptr, 0);
|
2011
2012
|
}
|
2012
2013
|
constructor(logger, ctx) {
|
2013
2014
|
const ret = wasm.corecryptowasmlogger_new(addHeapObject(logger), addHeapObject(ctx));
|
2014
2015
|
this.__wbg_ptr = ret >>> 0;
|
2016
|
+
CoreCryptoWasmLoggerFinalization.register(this, this.__wbg_ptr, this);
|
2015
2017
|
return this;
|
2016
2018
|
}
|
2017
2019
|
}
|
2018
2020
|
var CrlRegistrationFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
2019
2021
|
}, unregister: () => {
|
2020
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_crlregistration_free(ptr >>> 0));
|
2022
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_crlregistration_free(ptr >>> 0, 1));
|
2021
2023
|
var CustomConfigurationFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
2022
2024
|
}, unregister: () => {
|
2023
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_customconfiguration_free(ptr >>> 0));
|
2025
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_customconfiguration_free(ptr >>> 0, 1));
|
2024
2026
|
|
2025
2027
|
class CustomConfiguration {
|
2026
2028
|
__destroy_into_raw() {
|
@@ -2031,20 +2033,21 @@ class CustomConfiguration {
|
|
2031
2033
|
}
|
2032
2034
|
free() {
|
2033
2035
|
const ptr = this.__destroy_into_raw();
|
2034
|
-
wasm.__wbg_customconfiguration_free(ptr);
|
2036
|
+
wasm.__wbg_customconfiguration_free(ptr, 0);
|
2035
2037
|
}
|
2036
2038
|
constructor(key_rotation_span, wire_policy) {
|
2037
2039
|
const ret = wasm.customconfiguration_new(!isLikeNone(key_rotation_span), isLikeNone(key_rotation_span) ? 0 : key_rotation_span, isLikeNone(wire_policy) ? 3 : wire_policy);
|
2038
2040
|
this.__wbg_ptr = ret >>> 0;
|
2041
|
+
CustomConfigurationFinalization.register(this, this.__wbg_ptr, this);
|
2039
2042
|
return this;
|
2040
2043
|
}
|
2041
2044
|
}
|
2042
2045
|
var DecryptedMessageFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
2043
2046
|
}, unregister: () => {
|
2044
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_decryptedmessage_free(ptr >>> 0));
|
2047
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_decryptedmessage_free(ptr >>> 0, 1));
|
2045
2048
|
var E2eiDumpedPkiEnvFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
2046
2049
|
}, unregister: () => {
|
2047
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_e2eidumpedpkienv_free(ptr >>> 0));
|
2050
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_e2eidumpedpkienv_free(ptr >>> 0, 1));
|
2048
2051
|
|
2049
2052
|
class E2eiDumpedPkiEnv {
|
2050
2053
|
__destroy_into_raw() {
|
@@ -2055,7 +2058,7 @@ class E2eiDumpedPkiEnv {
|
|
2055
2058
|
}
|
2056
2059
|
free() {
|
2057
2060
|
const ptr = this.__destroy_into_raw();
|
2058
|
-
wasm.__wbg_e2eidumpedpkienv_free(ptr);
|
2061
|
+
wasm.__wbg_e2eidumpedpkienv_free(ptr, 0);
|
2059
2062
|
}
|
2060
2063
|
get root_ca() {
|
2061
2064
|
let deferred1_0;
|
@@ -2063,8 +2066,8 @@ class E2eiDumpedPkiEnv {
|
|
2063
2066
|
try {
|
2064
2067
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
2065
2068
|
wasm.__wbg_get_acmedirectory_new_nonce(retptr, this.__wbg_ptr);
|
2066
|
-
var r0 =
|
2067
|
-
var r1 =
|
2069
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
2070
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
2068
2071
|
deferred1_0 = r0;
|
2069
2072
|
deferred1_1 = r1;
|
2070
2073
|
return getStringFromWasm0(r0, r1);
|
@@ -2077,8 +2080,8 @@ class E2eiDumpedPkiEnv {
|
|
2077
2080
|
try {
|
2078
2081
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
2079
2082
|
wasm.__wbg_get_e2eidumpedpkienv_intermediates(retptr, this.__wbg_ptr);
|
2080
|
-
var r0 =
|
2081
|
-
var r1 =
|
2083
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
2084
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
2082
2085
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
2083
2086
|
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
2084
2087
|
return v1;
|
@@ -2090,8 +2093,8 @@ class E2eiDumpedPkiEnv {
|
|
2090
2093
|
try {
|
2091
2094
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
2092
2095
|
wasm.__wbg_get_e2eidumpedpkienv_crls(retptr, this.__wbg_ptr);
|
2093
|
-
var r0 =
|
2094
|
-
var r1 =
|
2096
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
2097
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
2095
2098
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
2096
2099
|
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
2097
2100
|
return v1;
|
@@ -2102,7 +2105,7 @@ class E2eiDumpedPkiEnv {
|
|
2102
2105
|
}
|
2103
2106
|
var FfiWireE2EIdentityFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
2104
2107
|
}, unregister: () => {
|
2105
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_ffiwiree2eidentity_free(ptr >>> 0));
|
2108
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_ffiwiree2eidentity_free(ptr >>> 0, 1));
|
2106
2109
|
|
2107
2110
|
class FfiWireE2EIdentity {
|
2108
2111
|
static __wrap(ptr) {
|
@@ -2120,7 +2123,7 @@ class FfiWireE2EIdentity {
|
|
2120
2123
|
}
|
2121
2124
|
free() {
|
2122
2125
|
const ptr = this.__destroy_into_raw();
|
2123
|
-
wasm.__wbg_ffiwiree2eidentity_free(ptr);
|
2126
|
+
wasm.__wbg_ffiwiree2eidentity_free(ptr, 0);
|
2124
2127
|
}
|
2125
2128
|
directory_response(directory) {
|
2126
2129
|
const ptr0 = passArray8ToWasm0(directory, wasm.__wbindgen_malloc);
|
@@ -2221,7 +2224,7 @@ class FfiWireE2EIdentity {
|
|
2221
2224
|
}
|
2222
2225
|
var GroupInfoBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
2223
2226
|
}, unregister: () => {
|
2224
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_groupinfobundle_free(ptr >>> 0));
|
2227
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_groupinfobundle_free(ptr >>> 0, 1));
|
2225
2228
|
|
2226
2229
|
class GroupInfoBundle {
|
2227
2230
|
static __wrap(ptr) {
|
@@ -2239,7 +2242,7 @@ class GroupInfoBundle {
|
|
2239
2242
|
}
|
2240
2243
|
free() {
|
2241
2244
|
const ptr = this.__destroy_into_raw();
|
2242
|
-
wasm.__wbg_groupinfobundle_free(ptr);
|
2245
|
+
wasm.__wbg_groupinfobundle_free(ptr, 0);
|
2243
2246
|
}
|
2244
2247
|
get encryption_type() {
|
2245
2248
|
const ret = wasm.groupinfobundle_encryption_type(this.__wbg_ptr);
|
@@ -2256,10 +2259,10 @@ class GroupInfoBundle {
|
|
2256
2259
|
}
|
2257
2260
|
var MemberAddedMessagesFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
2258
2261
|
}, unregister: () => {
|
2259
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_memberaddedmessages_free(ptr >>> 0));
|
2262
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_memberaddedmessages_free(ptr >>> 0, 1));
|
2260
2263
|
var NewAcmeAuthzFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
2261
2264
|
}, unregister: () => {
|
2262
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_newacmeauthz_free(ptr >>> 0));
|
2265
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_newacmeauthz_free(ptr >>> 0, 1));
|
2263
2266
|
|
2264
2267
|
class NewAcmeAuthz {
|
2265
2268
|
static __wrap(ptr) {
|
@@ -2277,7 +2280,7 @@ class NewAcmeAuthz {
|
|
2277
2280
|
}
|
2278
2281
|
free() {
|
2279
2282
|
const ptr = this.__destroy_into_raw();
|
2280
|
-
wasm.__wbg_newacmeauthz_free(ptr);
|
2283
|
+
wasm.__wbg_newacmeauthz_free(ptr, 0);
|
2281
2284
|
}
|
2282
2285
|
get identifier() {
|
2283
2286
|
let deferred1_0;
|
@@ -2285,8 +2288,8 @@ class NewAcmeAuthz {
|
|
2285
2288
|
try {
|
2286
2289
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
2287
2290
|
wasm.__wbg_get_acmedirectory_new_nonce(retptr, this.__wbg_ptr);
|
2288
|
-
var r0 =
|
2289
|
-
var r1 =
|
2291
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
2292
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
2290
2293
|
deferred1_0 = r0;
|
2291
2294
|
deferred1_1 = r1;
|
2292
2295
|
return getStringFromWasm0(r0, r1);
|
@@ -2299,8 +2302,8 @@ class NewAcmeAuthz {
|
|
2299
2302
|
try {
|
2300
2303
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
2301
2304
|
wasm.__wbg_get_newacmeauthz_keyauth(retptr, this.__wbg_ptr);
|
2302
|
-
var r0 =
|
2303
|
-
var r1 =
|
2305
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
2306
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
2304
2307
|
let v1;
|
2305
2308
|
if (r0 !== 0) {
|
2306
2309
|
v1 = getStringFromWasm0(r0, r1).slice();
|
@@ -2318,7 +2321,7 @@ class NewAcmeAuthz {
|
|
2318
2321
|
}
|
2319
2322
|
var NewAcmeOrderFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
2320
2323
|
}, unregister: () => {
|
2321
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_newacmeorder_free(ptr >>> 0));
|
2324
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_newacmeorder_free(ptr >>> 0, 1));
|
2322
2325
|
|
2323
2326
|
class NewAcmeOrder {
|
2324
2327
|
static __wrap(ptr) {
|
@@ -2336,14 +2339,14 @@ class NewAcmeOrder {
|
|
2336
2339
|
}
|
2337
2340
|
free() {
|
2338
2341
|
const ptr = this.__destroy_into_raw();
|
2339
|
-
wasm.__wbg_newacmeorder_free(ptr);
|
2342
|
+
wasm.__wbg_newacmeorder_free(ptr, 0);
|
2340
2343
|
}
|
2341
2344
|
get authorizations() {
|
2342
2345
|
try {
|
2343
2346
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
2344
2347
|
wasm.newacmeorder_authorizations(retptr, this.__wbg_ptr);
|
2345
|
-
var r0 =
|
2346
|
-
var r1 =
|
2348
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
2349
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
2347
2350
|
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
2348
2351
|
wasm.__wbindgen_free(r0, r1 * 4, 4);
|
2349
2352
|
return v1;
|
@@ -2355,8 +2358,8 @@ class NewAcmeOrder {
|
|
2355
2358
|
try {
|
2356
2359
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
2357
2360
|
wasm.__wbg_get_acmechallenge_delegate(retptr, this.__wbg_ptr);
|
2358
|
-
var r0 =
|
2359
|
-
var r1 =
|
2361
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
2362
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
2360
2363
|
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
2361
2364
|
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
2362
2365
|
return v1;
|
@@ -2367,7 +2370,7 @@ class NewAcmeOrder {
|
|
2367
2370
|
}
|
2368
2371
|
var ProposalBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
2369
2372
|
}, unregister: () => {
|
2370
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_proposalbundle_free(ptr >>> 0));
|
2373
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_proposalbundle_free(ptr >>> 0, 1));
|
2371
2374
|
|
2372
2375
|
class ProposalBundle {
|
2373
2376
|
static __wrap(ptr) {
|
@@ -2385,7 +2388,7 @@ class ProposalBundle {
|
|
2385
2388
|
}
|
2386
2389
|
free() {
|
2387
2390
|
const ptr = this.__destroy_into_raw();
|
2388
|
-
wasm.__wbg_proposalbundle_free(ptr);
|
2391
|
+
wasm.__wbg_proposalbundle_free(ptr, 0);
|
2389
2392
|
}
|
2390
2393
|
get proposal() {
|
2391
2394
|
const ret = wasm.proposalbundle_proposal(this.__wbg_ptr);
|
@@ -2402,7 +2405,7 @@ class ProposalBundle {
|
|
2402
2405
|
}
|
2403
2406
|
var ProteusAutoPrekeyBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
2404
2407
|
}, unregister: () => {
|
2405
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_proteusautoprekeybundle_free(ptr >>> 0));
|
2408
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_proteusautoprekeybundle_free(ptr >>> 0, 1));
|
2406
2409
|
|
2407
2410
|
class ProteusAutoPrekeyBundle {
|
2408
2411
|
static __wrap(ptr) {
|
@@ -2420,7 +2423,7 @@ class ProteusAutoPrekeyBundle {
|
|
2420
2423
|
}
|
2421
2424
|
free() {
|
2422
2425
|
const ptr = this.__destroy_into_raw();
|
2423
|
-
wasm.__wbg_proteusautoprekeybundle_free(ptr);
|
2426
|
+
wasm.__wbg_proteusautoprekeybundle_free(ptr, 0);
|
2424
2427
|
}
|
2425
2428
|
get id() {
|
2426
2429
|
const ret = wasm.__wbg_get_proteusautoprekeybundle_id(this.__wbg_ptr);
|
@@ -2433,8 +2436,8 @@ class ProteusAutoPrekeyBundle {
|
|
2433
2436
|
try {
|
2434
2437
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
2435
2438
|
wasm.__wbg_get_acmechallenge_delegate(retptr, this.__wbg_ptr);
|
2436
|
-
var r0 =
|
2437
|
-
var r1 =
|
2439
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
2440
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
2438
2441
|
var v1 = getArrayU8FromWasm0(r0, r1).slice();
|
2439
2442
|
wasm.__wbindgen_free(r0, r1 * 1, 1);
|
2440
2443
|
return v1;
|
@@ -2450,13 +2453,13 @@ class ProteusAutoPrekeyBundle {
|
|
2450
2453
|
}
|
2451
2454
|
var RotateBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
2452
2455
|
}, unregister: () => {
|
2453
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_rotatebundle_free(ptr >>> 0));
|
2456
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_rotatebundle_free(ptr >>> 0, 1));
|
2454
2457
|
var WelcomeBundleFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
2455
2458
|
}, unregister: () => {
|
2456
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_welcomebundle_free(ptr >>> 0));
|
2459
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_welcomebundle_free(ptr >>> 0, 1));
|
2457
2460
|
var WireIdentityFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
2458
2461
|
}, unregister: () => {
|
2459
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_wireidentity_free(ptr >>> 0));
|
2462
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_wireidentity_free(ptr >>> 0, 1));
|
2460
2463
|
|
2461
2464
|
class WireIdentity {
|
2462
2465
|
static __wrap(ptr) {
|
@@ -2474,7 +2477,7 @@ class WireIdentity {
|
|
2474
2477
|
}
|
2475
2478
|
free() {
|
2476
2479
|
const ptr = this.__destroy_into_raw();
|
2477
|
-
wasm.__wbg_wireidentity_free(ptr);
|
2480
|
+
wasm.__wbg_wireidentity_free(ptr, 0);
|
2478
2481
|
}
|
2479
2482
|
get client_id() {
|
2480
2483
|
let deferred1_0;
|
@@ -2482,8 +2485,8 @@ class WireIdentity {
|
|
2482
2485
|
try {
|
2483
2486
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
2484
2487
|
wasm.wireidentity_client_id(retptr, this.__wbg_ptr);
|
2485
|
-
var r0 =
|
2486
|
-
var r1 =
|
2488
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
2489
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
2487
2490
|
deferred1_0 = r0;
|
2488
2491
|
deferred1_1 = r1;
|
2489
2492
|
return getStringFromWasm0(r0, r1);
|
@@ -2502,8 +2505,8 @@ class WireIdentity {
|
|
2502
2505
|
try {
|
2503
2506
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
2504
2507
|
wasm.wireidentity_thumbprint(retptr, this.__wbg_ptr);
|
2505
|
-
var r0 =
|
2506
|
-
var r1 =
|
2508
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
2509
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
2507
2510
|
deferred1_0 = r0;
|
2508
2511
|
deferred1_1 = r1;
|
2509
2512
|
return getStringFromWasm0(r0, r1);
|
@@ -2523,7 +2526,7 @@ class WireIdentity {
|
|
2523
2526
|
}
|
2524
2527
|
var X509IdentityFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
2525
2528
|
}, unregister: () => {
|
2526
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_x509identity_free(ptr >>> 0));
|
2529
|
+
} } : new FinalizationRegistry((ptr) => wasm.__wbg_x509identity_free(ptr >>> 0, 1));
|
2527
2530
|
|
2528
2531
|
class X509Identity {
|
2529
2532
|
static __wrap(ptr) {
|
@@ -2541,7 +2544,7 @@ class X509Identity {
|
|
2541
2544
|
}
|
2542
2545
|
free() {
|
2543
2546
|
const ptr = this.__destroy_into_raw();
|
2544
|
-
wasm.__wbg_x509identity_free(ptr);
|
2547
|
+
wasm.__wbg_x509identity_free(ptr, 0);
|
2545
2548
|
}
|
2546
2549
|
get handle() {
|
2547
2550
|
let deferred1_0;
|
@@ -2549,8 +2552,8 @@ class X509Identity {
|
|
2549
2552
|
try {
|
2550
2553
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
2551
2554
|
wasm.x509identity_handle(retptr, this.__wbg_ptr);
|
2552
|
-
var r0 =
|
2553
|
-
var r1 =
|
2555
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
2556
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
2554
2557
|
deferred1_0 = r0;
|
2555
2558
|
deferred1_1 = r1;
|
2556
2559
|
return getStringFromWasm0(r0, r1);
|
@@ -2565,8 +2568,8 @@ class X509Identity {
|
|
2565
2568
|
try {
|
2566
2569
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
2567
2570
|
wasm.x509identity_display_name(retptr, this.__wbg_ptr);
|
2568
|
-
var r0 =
|
2569
|
-
var r1 =
|
2571
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
2572
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
2570
2573
|
deferred1_0 = r0;
|
2571
2574
|
deferred1_1 = r1;
|
2572
2575
|
return getStringFromWasm0(r0, r1);
|
@@ -2581,8 +2584,8 @@ class X509Identity {
|
|
2581
2584
|
try {
|
2582
2585
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
2583
2586
|
wasm.x509identity_domain(retptr, this.__wbg_ptr);
|
2584
|
-
var r0 =
|
2585
|
-
var r1 =
|
2587
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
2588
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
2586
2589
|
deferred1_0 = r0;
|
2587
2590
|
deferred1_1 = r1;
|
2588
2591
|
return getStringFromWasm0(r0, r1);
|
@@ -2597,8 +2600,8 @@ class X509Identity {
|
|
2597
2600
|
try {
|
2598
2601
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
2599
2602
|
wasm.x509identity_certificate(retptr, this.__wbg_ptr);
|
2600
|
-
var r0 =
|
2601
|
-
var r1 =
|
2603
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
2604
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
2602
2605
|
deferred1_0 = r0;
|
2603
2606
|
deferred1_1 = r1;
|
2604
2607
|
return getStringFromWasm0(r0, r1);
|
@@ -2613,8 +2616,8 @@ class X509Identity {
|
|
2613
2616
|
try {
|
2614
2617
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
2615
2618
|
wasm.x509identity_serial_number(retptr, this.__wbg_ptr);
|
2616
|
-
var r0 =
|
2617
|
-
var r1 =
|
2619
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
2620
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
2618
2621
|
deferred1_0 = r0;
|
2619
2622
|
deferred1_1 = r1;
|
2620
2623
|
return getStringFromWasm0(r0, r1);
|