@learncard/core 8.0.4 → 8.0.6
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/dist/core.cjs.development.js +79 -55
- package/dist/core.cjs.development.js.map +2 -2
- package/dist/core.cjs.production.min.js +32 -32
- package/dist/core.cjs.production.min.js.map +3 -3
- package/dist/core.esm.js +79 -55
- package/dist/core.esm.js.map +2 -2
- package/dist/didkit/didkit_wasm.d.ts +2 -2
- package/dist/didkit/didkit_wasm.js +298 -356
- package/dist/didkit/didkit_wasm_bg.wasm +0 -0
- package/dist/didkit/didkit_wasm_bg.wasm.d.ts +2 -2
- package/dist/didkit_wasm.d.ts +2 -2
- package/dist/didkit_wasm.js +298 -356
- package/dist/didkit_wasm_bg.wasm +0 -0
- package/dist/didkit_wasm_bg.wasm.d.ts +2 -2
- package/package.json +4 -4
@@ -1,5 +1,26 @@
|
|
1
|
+
|
1
2
|
let wasm;
|
2
3
|
|
4
|
+
const heap = new Array(32).fill(undefined);
|
5
|
+
|
6
|
+
heap.push(undefined, null, true, false);
|
7
|
+
|
8
|
+
function getObject(idx) { return heap[idx]; }
|
9
|
+
|
10
|
+
let heap_next = heap.length;
|
11
|
+
|
12
|
+
function dropObject(idx) {
|
13
|
+
if (idx < 36) return;
|
14
|
+
heap[idx] = heap_next;
|
15
|
+
heap_next = idx;
|
16
|
+
}
|
17
|
+
|
18
|
+
function takeObject(idx) {
|
19
|
+
const ret = getObject(idx);
|
20
|
+
dropObject(idx);
|
21
|
+
return ret;
|
22
|
+
}
|
23
|
+
|
3
24
|
const cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
4
25
|
|
5
26
|
cachedTextDecoder.decode();
|
@@ -17,12 +38,6 @@ function getStringFromWasm0(ptr, len) {
|
|
17
38
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
18
39
|
}
|
19
40
|
|
20
|
-
const heap = new Array(32).fill(undefined);
|
21
|
-
|
22
|
-
heap.push(undefined, null, true, false);
|
23
|
-
|
24
|
-
let heap_next = heap.length;
|
25
|
-
|
26
41
|
function addHeapObject(obj) {
|
27
42
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
28
43
|
const idx = heap_next;
|
@@ -32,47 +47,29 @@ function addHeapObject(obj) {
|
|
32
47
|
return idx;
|
33
48
|
}
|
34
49
|
|
35
|
-
function getObject(idx) {
|
36
|
-
return heap[idx];
|
37
|
-
}
|
38
|
-
|
39
|
-
function dropObject(idx) {
|
40
|
-
if (idx < 36) return;
|
41
|
-
heap[idx] = heap_next;
|
42
|
-
heap_next = idx;
|
43
|
-
}
|
44
|
-
|
45
|
-
function takeObject(idx) {
|
46
|
-
const ret = getObject(idx);
|
47
|
-
dropObject(idx);
|
48
|
-
return ret;
|
49
|
-
}
|
50
|
-
|
51
50
|
let WASM_VECTOR_LEN = 0;
|
52
51
|
|
53
52
|
const cachedTextEncoder = new TextEncoder('utf-8');
|
54
53
|
|
55
|
-
const encodeString =
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
};
|
54
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
55
|
+
? function (arg, view) {
|
56
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
57
|
+
}
|
58
|
+
: function (arg, view) {
|
59
|
+
const buf = cachedTextEncoder.encode(arg);
|
60
|
+
view.set(buf);
|
61
|
+
return {
|
62
|
+
read: arg.length,
|
63
|
+
written: buf.length
|
64
|
+
};
|
65
|
+
});
|
68
66
|
|
69
67
|
function passStringToWasm0(arg, malloc, realloc) {
|
68
|
+
|
70
69
|
if (realloc === undefined) {
|
71
70
|
const buf = cachedTextEncoder.encode(arg);
|
72
71
|
const ptr = malloc(buf.length);
|
73
|
-
getUint8Memory0()
|
74
|
-
.subarray(ptr, ptr + buf.length)
|
75
|
-
.set(buf);
|
72
|
+
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
|
76
73
|
WASM_VECTOR_LEN = buf.length;
|
77
74
|
return ptr;
|
78
75
|
}
|
@@ -86,7 +83,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
86
83
|
|
87
84
|
for (; offset < len; offset++) {
|
88
85
|
const code = arg.charCodeAt(offset);
|
89
|
-
if (code >
|
86
|
+
if (code > 0x7F) break;
|
90
87
|
mem[ptr + offset] = code;
|
91
88
|
}
|
92
89
|
|
@@ -94,7 +91,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
94
91
|
if (offset !== 0) {
|
95
92
|
arg = arg.slice(offset);
|
96
93
|
}
|
97
|
-
ptr = realloc(ptr, len,
|
94
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3);
|
98
95
|
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
|
99
96
|
const ret = encodeString(arg, view);
|
100
97
|
|
@@ -122,7 +119,7 @@ function debugString(val) {
|
|
122
119
|
// primitive types
|
123
120
|
const type = typeof val;
|
124
121
|
if (type == 'number' || type == 'boolean' || val == null) {
|
125
|
-
return
|
122
|
+
return `${val}`;
|
126
123
|
}
|
127
124
|
if (type == 'string') {
|
128
125
|
return `"${val}"`;
|
@@ -150,7 +147,7 @@ function debugString(val) {
|
|
150
147
|
if (length > 0) {
|
151
148
|
debug += debugString(val[0]);
|
152
149
|
}
|
153
|
-
for
|
150
|
+
for(let i = 1; i < length; i++) {
|
154
151
|
debug += ', ' + debugString(val[i]);
|
155
152
|
}
|
156
153
|
debug += ']';
|
@@ -197,6 +194,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
197
194
|
} finally {
|
198
195
|
if (--state.cnt === 0) {
|
199
196
|
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
|
197
|
+
|
200
198
|
} else {
|
201
199
|
state.a = a;
|
202
200
|
}
|
@@ -206,17 +204,13 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
206
204
|
|
207
205
|
return real;
|
208
206
|
}
|
209
|
-
function
|
210
|
-
wasm.
|
211
|
-
arg0,
|
212
|
-
arg1,
|
213
|
-
addHeapObject(arg2)
|
214
|
-
);
|
207
|
+
function __wbg_adapter_26(arg0, arg1, arg2) {
|
208
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h93b9577b462bda3f(arg0, arg1, addHeapObject(arg2));
|
215
209
|
}
|
216
210
|
|
217
211
|
/**
|
218
|
-
|
219
|
-
|
212
|
+
* @returns {string}
|
213
|
+
*/
|
220
214
|
export function getVersion() {
|
221
215
|
try {
|
222
216
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
@@ -231,10 +225,10 @@ export function getVersion() {
|
|
231
225
|
}
|
232
226
|
|
233
227
|
/**
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
228
|
+
* @param {string} did
|
229
|
+
* @param {string} input_metadata
|
230
|
+
* @returns {Promise<any>}
|
231
|
+
*/
|
238
232
|
export function resolveDID(did, input_metadata) {
|
239
233
|
const ptr0 = passStringToWasm0(did, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
240
234
|
const len0 = WASM_VECTOR_LEN;
|
@@ -245,8 +239,8 @@ export function resolveDID(did, input_metadata) {
|
|
245
239
|
}
|
246
240
|
|
247
241
|
/**
|
248
|
-
|
249
|
-
|
242
|
+
* @returns {string}
|
243
|
+
*/
|
250
244
|
export function generateEd25519Key() {
|
251
245
|
try {
|
252
246
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
@@ -258,8 +252,7 @@ export function generateEd25519Key() {
|
|
258
252
|
var ptr0 = r0;
|
259
253
|
var len0 = r1;
|
260
254
|
if (r3) {
|
261
|
-
ptr0 = 0;
|
262
|
-
len0 = 0;
|
255
|
+
ptr0 = 0; len0 = 0;
|
263
256
|
throw takeObject(r2);
|
264
257
|
}
|
265
258
|
return getStringFromWasm0(ptr0, len0);
|
@@ -276,9 +269,9 @@ function passArray8ToWasm0(arg, malloc) {
|
|
276
269
|
return ptr;
|
277
270
|
}
|
278
271
|
/**
|
279
|
-
|
280
|
-
|
281
|
-
|
272
|
+
* @param {Uint8Array} bytes
|
273
|
+
* @returns {string}
|
274
|
+
*/
|
282
275
|
export function generateEd25519KeyFromBytes(bytes) {
|
283
276
|
try {
|
284
277
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
@@ -292,8 +285,7 @@ export function generateEd25519KeyFromBytes(bytes) {
|
|
292
285
|
var ptr1 = r0;
|
293
286
|
var len1 = r1;
|
294
287
|
if (r3) {
|
295
|
-
ptr1 = 0;
|
296
|
-
len1 = 0;
|
288
|
+
ptr1 = 0; len1 = 0;
|
297
289
|
throw takeObject(r2);
|
298
290
|
}
|
299
291
|
return getStringFromWasm0(ptr1, len1);
|
@@ -304,8 +296,8 @@ export function generateEd25519KeyFromBytes(bytes) {
|
|
304
296
|
}
|
305
297
|
|
306
298
|
/**
|
307
|
-
|
308
|
-
|
299
|
+
* @returns {string}
|
300
|
+
*/
|
309
301
|
export function generateSecp256k1Key() {
|
310
302
|
try {
|
311
303
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
@@ -317,8 +309,7 @@ export function generateSecp256k1Key() {
|
|
317
309
|
var ptr0 = r0;
|
318
310
|
var len0 = r1;
|
319
311
|
if (r3) {
|
320
|
-
ptr0 = 0;
|
321
|
-
len0 = 0;
|
312
|
+
ptr0 = 0; len0 = 0;
|
322
313
|
throw takeObject(r2);
|
323
314
|
}
|
324
315
|
return getStringFromWasm0(ptr0, len0);
|
@@ -329,9 +320,9 @@ export function generateSecp256k1Key() {
|
|
329
320
|
}
|
330
321
|
|
331
322
|
/**
|
332
|
-
|
333
|
-
|
334
|
-
|
323
|
+
* @param {Uint8Array} bytes
|
324
|
+
* @returns {string}
|
325
|
+
*/
|
335
326
|
export function generateSecp256k1KeyFromBytes(bytes) {
|
336
327
|
try {
|
337
328
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
@@ -345,8 +336,7 @@ export function generateSecp256k1KeyFromBytes(bytes) {
|
|
345
336
|
var ptr1 = r0;
|
346
337
|
var len1 = r1;
|
347
338
|
if (r3) {
|
348
|
-
ptr1 = 0;
|
349
|
-
len1 = 0;
|
339
|
+
ptr1 = 0; len1 = 0;
|
350
340
|
throw takeObject(r2);
|
351
341
|
}
|
352
342
|
return getStringFromWasm0(ptr1, len1);
|
@@ -357,18 +347,14 @@ export function generateSecp256k1KeyFromBytes(bytes) {
|
|
357
347
|
}
|
358
348
|
|
359
349
|
/**
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
350
|
+
* @param {string} method_pattern
|
351
|
+
* @param {string} jwk
|
352
|
+
* @returns {string}
|
353
|
+
*/
|
364
354
|
export function keyToDID(method_pattern, jwk) {
|
365
355
|
try {
|
366
356
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
367
|
-
const ptr0 = passStringToWasm0(
|
368
|
-
method_pattern,
|
369
|
-
wasm.__wbindgen_malloc,
|
370
|
-
wasm.__wbindgen_realloc
|
371
|
-
);
|
357
|
+
const ptr0 = passStringToWasm0(method_pattern, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
372
358
|
const len0 = WASM_VECTOR_LEN;
|
373
359
|
const ptr1 = passStringToWasm0(jwk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
374
360
|
const len1 = WASM_VECTOR_LEN;
|
@@ -380,8 +366,7 @@ export function keyToDID(method_pattern, jwk) {
|
|
380
366
|
var ptr2 = r0;
|
381
367
|
var len2 = r1;
|
382
368
|
if (r3) {
|
383
|
-
ptr2 = 0;
|
384
|
-
len2 = 0;
|
369
|
+
ptr2 = 0; len2 = 0;
|
385
370
|
throw takeObject(r2);
|
386
371
|
}
|
387
372
|
return getStringFromWasm0(ptr2, len2);
|
@@ -392,10 +377,10 @@ export function keyToDID(method_pattern, jwk) {
|
|
392
377
|
}
|
393
378
|
|
394
379
|
/**
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
380
|
+
* @param {string} method_pattern
|
381
|
+
* @param {string} jwk
|
382
|
+
* @returns {Promise<any>}
|
383
|
+
*/
|
399
384
|
export function keyToVerificationMethod(method_pattern, jwk) {
|
400
385
|
const ptr0 = passStringToWasm0(method_pattern, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
401
386
|
const len0 = WASM_VECTOR_LEN;
|
@@ -406,11 +391,11 @@ export function keyToVerificationMethod(method_pattern, jwk) {
|
|
406
391
|
}
|
407
392
|
|
408
393
|
/**
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
394
|
+
* @param {string} credential
|
395
|
+
* @param {string} proof_options
|
396
|
+
* @param {string} key
|
397
|
+
* @returns {Promise<any>}
|
398
|
+
*/
|
414
399
|
export function issueCredential(credential, proof_options, key) {
|
415
400
|
const ptr0 = passStringToWasm0(credential, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
416
401
|
const len0 = WASM_VECTOR_LEN;
|
@@ -423,19 +408,15 @@ export function issueCredential(credential, proof_options, key) {
|
|
423
408
|
}
|
424
409
|
|
425
410
|
/**
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
411
|
+
* @param {string} credential
|
412
|
+
* @param {string} linked_data_proof_options
|
413
|
+
* @param {string} public_key
|
414
|
+
* @returns {Promise<any>}
|
415
|
+
*/
|
431
416
|
export function prepareIssueCredential(credential, linked_data_proof_options, public_key) {
|
432
417
|
const ptr0 = passStringToWasm0(credential, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
433
418
|
const len0 = WASM_VECTOR_LEN;
|
434
|
-
const ptr1 = passStringToWasm0(
|
435
|
-
linked_data_proof_options,
|
436
|
-
wasm.__wbindgen_malloc,
|
437
|
-
wasm.__wbindgen_realloc
|
438
|
-
);
|
419
|
+
const ptr1 = passStringToWasm0(linked_data_proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
439
420
|
const len1 = WASM_VECTOR_LEN;
|
440
421
|
const ptr2 = passStringToWasm0(public_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
441
422
|
const len2 = WASM_VECTOR_LEN;
|
@@ -444,11 +425,11 @@ export function prepareIssueCredential(credential, linked_data_proof_options, pu
|
|
444
425
|
}
|
445
426
|
|
446
427
|
/**
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
428
|
+
* @param {string} credential
|
429
|
+
* @param {string} preparation
|
430
|
+
* @param {string} signature
|
431
|
+
* @returns {Promise<any>}
|
432
|
+
*/
|
452
433
|
export function completeIssueCredential(credential, preparation, signature) {
|
453
434
|
const ptr0 = passStringToWasm0(credential, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
454
435
|
const len0 = WASM_VECTOR_LEN;
|
@@ -461,10 +442,10 @@ export function completeIssueCredential(credential, preparation, signature) {
|
|
461
442
|
}
|
462
443
|
|
463
444
|
/**
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
445
|
+
* @param {string} vc
|
446
|
+
* @param {string} proof_options
|
447
|
+
* @returns {Promise<any>}
|
448
|
+
*/
|
468
449
|
export function verifyCredential(vc, proof_options) {
|
469
450
|
const ptr0 = passStringToWasm0(vc, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
470
451
|
const len0 = WASM_VECTOR_LEN;
|
@@ -475,11 +456,11 @@ export function verifyCredential(vc, proof_options) {
|
|
475
456
|
}
|
476
457
|
|
477
458
|
/**
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
459
|
+
* @param {string} presentation
|
460
|
+
* @param {string} proof_options
|
461
|
+
* @param {string} key
|
462
|
+
* @returns {Promise<any>}
|
463
|
+
*/
|
483
464
|
export function issuePresentation(presentation, proof_options, key) {
|
484
465
|
const ptr0 = passStringToWasm0(presentation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
485
466
|
const len0 = WASM_VECTOR_LEN;
|
@@ -492,19 +473,15 @@ export function issuePresentation(presentation, proof_options, key) {
|
|
492
473
|
}
|
493
474
|
|
494
475
|
/**
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
476
|
+
* @param {string} presentation
|
477
|
+
* @param {string} linked_data_proof_options
|
478
|
+
* @param {string} public_key
|
479
|
+
* @returns {Promise<any>}
|
480
|
+
*/
|
500
481
|
export function prepareIssuePresentation(presentation, linked_data_proof_options, public_key) {
|
501
482
|
const ptr0 = passStringToWasm0(presentation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
502
483
|
const len0 = WASM_VECTOR_LEN;
|
503
|
-
const ptr1 = passStringToWasm0(
|
504
|
-
linked_data_proof_options,
|
505
|
-
wasm.__wbindgen_malloc,
|
506
|
-
wasm.__wbindgen_realloc
|
507
|
-
);
|
484
|
+
const ptr1 = passStringToWasm0(linked_data_proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
508
485
|
const len1 = WASM_VECTOR_LEN;
|
509
486
|
const ptr2 = passStringToWasm0(public_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
510
487
|
const len2 = WASM_VECTOR_LEN;
|
@@ -513,11 +490,11 @@ export function prepareIssuePresentation(presentation, linked_data_proof_options
|
|
513
490
|
}
|
514
491
|
|
515
492
|
/**
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
493
|
+
* @param {string} presentation
|
494
|
+
* @param {string} preparation
|
495
|
+
* @param {string} signature
|
496
|
+
* @returns {Promise<any>}
|
497
|
+
*/
|
521
498
|
export function completeIssuePresentation(presentation, preparation, signature) {
|
522
499
|
const ptr0 = passStringToWasm0(presentation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
523
500
|
const len0 = WASM_VECTOR_LEN;
|
@@ -530,10 +507,10 @@ export function completeIssuePresentation(presentation, preparation, signature)
|
|
530
507
|
}
|
531
508
|
|
532
509
|
/**
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
510
|
+
* @param {string} vp
|
511
|
+
* @param {string} proof_options
|
512
|
+
* @returns {Promise<any>}
|
513
|
+
*/
|
537
514
|
export function verifyPresentation(vp, proof_options) {
|
538
515
|
const ptr0 = passStringToWasm0(vp, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
539
516
|
const len0 = WASM_VECTOR_LEN;
|
@@ -544,19 +521,15 @@ export function verifyPresentation(vp, proof_options) {
|
|
544
521
|
}
|
545
522
|
|
546
523
|
/**
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
524
|
+
* @param {string} holder
|
525
|
+
* @param {string} linked_data_proof_options
|
526
|
+
* @param {string} key
|
527
|
+
* @returns {Promise<any>}
|
528
|
+
*/
|
552
529
|
export function DIDAuth(holder, linked_data_proof_options, key) {
|
553
530
|
const ptr0 = passStringToWasm0(holder, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
554
531
|
const len0 = WASM_VECTOR_LEN;
|
555
|
-
const ptr1 = passStringToWasm0(
|
556
|
-
linked_data_proof_options,
|
557
|
-
wasm.__wbindgen_malloc,
|
558
|
-
wasm.__wbindgen_realloc
|
559
|
-
);
|
532
|
+
const ptr1 = passStringToWasm0(linked_data_proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
560
533
|
const len1 = WASM_VECTOR_LEN;
|
561
534
|
const ptr2 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
562
535
|
const len2 = WASM_VECTOR_LEN;
|
@@ -565,9 +538,9 @@ export function DIDAuth(holder, linked_data_proof_options, key) {
|
|
565
538
|
}
|
566
539
|
|
567
540
|
/**
|
568
|
-
|
569
|
-
|
570
|
-
|
541
|
+
* @param {string} tz
|
542
|
+
* @returns {Promise<any>}
|
543
|
+
*/
|
571
544
|
export function JWKFromTezos(tz) {
|
572
545
|
const ptr0 = passStringToWasm0(tz, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
573
546
|
const len0 = WASM_VECTOR_LEN;
|
@@ -576,20 +549,16 @@ export function JWKFromTezos(tz) {
|
|
576
549
|
}
|
577
550
|
|
578
551
|
/**
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
552
|
+
* @param {string} capability
|
553
|
+
* @param {string} linked_data_proof_options
|
554
|
+
* @param {string} parents
|
555
|
+
* @param {string} key
|
556
|
+
* @returns {Promise<any>}
|
557
|
+
*/
|
585
558
|
export function delegateCapability(capability, linked_data_proof_options, parents, key) {
|
586
559
|
const ptr0 = passStringToWasm0(capability, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
587
560
|
const len0 = WASM_VECTOR_LEN;
|
588
|
-
const ptr1 = passStringToWasm0(
|
589
|
-
linked_data_proof_options,
|
590
|
-
wasm.__wbindgen_malloc,
|
591
|
-
wasm.__wbindgen_realloc
|
592
|
-
);
|
561
|
+
const ptr1 = passStringToWasm0(linked_data_proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
593
562
|
const len1 = WASM_VECTOR_LEN;
|
594
563
|
const ptr2 = passStringToWasm0(parents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
595
564
|
const len2 = WASM_VECTOR_LEN;
|
@@ -600,25 +569,16 @@ export function delegateCapability(capability, linked_data_proof_options, parent
|
|
600
569
|
}
|
601
570
|
|
602
571
|
/**
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
export function prepareDelegateCapability(
|
610
|
-
capability,
|
611
|
-
linked_data_proof_options,
|
612
|
-
parents,
|
613
|
-
public_key
|
614
|
-
) {
|
572
|
+
* @param {string} capability
|
573
|
+
* @param {string} linked_data_proof_options
|
574
|
+
* @param {string} parents
|
575
|
+
* @param {string} public_key
|
576
|
+
* @returns {Promise<any>}
|
577
|
+
*/
|
578
|
+
export function prepareDelegateCapability(capability, linked_data_proof_options, parents, public_key) {
|
615
579
|
const ptr0 = passStringToWasm0(capability, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
616
580
|
const len0 = WASM_VECTOR_LEN;
|
617
|
-
const ptr1 = passStringToWasm0(
|
618
|
-
linked_data_proof_options,
|
619
|
-
wasm.__wbindgen_malloc,
|
620
|
-
wasm.__wbindgen_realloc
|
621
|
-
);
|
581
|
+
const ptr1 = passStringToWasm0(linked_data_proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
622
582
|
const len1 = WASM_VECTOR_LEN;
|
623
583
|
const ptr2 = passStringToWasm0(parents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
624
584
|
const len2 = WASM_VECTOR_LEN;
|
@@ -629,11 +589,11 @@ export function prepareDelegateCapability(
|
|
629
589
|
}
|
630
590
|
|
631
591
|
/**
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
592
|
+
* @param {string} capability
|
593
|
+
* @param {string} preparation
|
594
|
+
* @param {string} signature
|
595
|
+
* @returns {Promise<any>}
|
596
|
+
*/
|
637
597
|
export function completeDelegateCapability(capability, preparation, signature) {
|
638
598
|
const ptr0 = passStringToWasm0(capability, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
639
599
|
const len0 = WASM_VECTOR_LEN;
|
@@ -646,9 +606,9 @@ export function completeDelegateCapability(capability, preparation, signature) {
|
|
646
606
|
}
|
647
607
|
|
648
608
|
/**
|
649
|
-
|
650
|
-
|
651
|
-
|
609
|
+
* @param {string} delegation
|
610
|
+
* @returns {Promise<any>}
|
611
|
+
*/
|
652
612
|
export function verifyDelegation(delegation) {
|
653
613
|
const ptr0 = passStringToWasm0(delegation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
654
614
|
const len0 = WASM_VECTOR_LEN;
|
@@ -657,22 +617,18 @@ export function verifyDelegation(delegation) {
|
|
657
617
|
}
|
658
618
|
|
659
619
|
/**
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
620
|
+
* @param {string} invocation
|
621
|
+
* @param {string} target_id
|
622
|
+
* @param {string} linked_data_proof_options
|
623
|
+
* @param {string} key
|
624
|
+
* @returns {Promise<any>}
|
625
|
+
*/
|
666
626
|
export function invokeCapability(invocation, target_id, linked_data_proof_options, key) {
|
667
627
|
const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
668
628
|
const len0 = WASM_VECTOR_LEN;
|
669
629
|
const ptr1 = passStringToWasm0(target_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
670
630
|
const len1 = WASM_VECTOR_LEN;
|
671
|
-
const ptr2 = passStringToWasm0(
|
672
|
-
linked_data_proof_options,
|
673
|
-
wasm.__wbindgen_malloc,
|
674
|
-
wasm.__wbindgen_realloc
|
675
|
-
);
|
631
|
+
const ptr2 = passStringToWasm0(linked_data_proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
676
632
|
const len2 = WASM_VECTOR_LEN;
|
677
633
|
const ptr3 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
678
634
|
const len3 = WASM_VECTOR_LEN;
|
@@ -681,27 +637,18 @@ export function invokeCapability(invocation, target_id, linked_data_proof_option
|
|
681
637
|
}
|
682
638
|
|
683
639
|
/**
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
export function prepareInvokeCapability(
|
691
|
-
invocation,
|
692
|
-
target_id,
|
693
|
-
linked_data_proof_options,
|
694
|
-
public_key
|
695
|
-
) {
|
640
|
+
* @param {string} invocation
|
641
|
+
* @param {string} target_id
|
642
|
+
* @param {string} linked_data_proof_options
|
643
|
+
* @param {string} public_key
|
644
|
+
* @returns {Promise<any>}
|
645
|
+
*/
|
646
|
+
export function prepareInvokeCapability(invocation, target_id, linked_data_proof_options, public_key) {
|
696
647
|
const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
697
648
|
const len0 = WASM_VECTOR_LEN;
|
698
649
|
const ptr1 = passStringToWasm0(target_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
699
650
|
const len1 = WASM_VECTOR_LEN;
|
700
|
-
const ptr2 = passStringToWasm0(
|
701
|
-
linked_data_proof_options,
|
702
|
-
wasm.__wbindgen_malloc,
|
703
|
-
wasm.__wbindgen_realloc
|
704
|
-
);
|
651
|
+
const ptr2 = passStringToWasm0(linked_data_proof_options, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
705
652
|
const len2 = WASM_VECTOR_LEN;
|
706
653
|
const ptr3 = passStringToWasm0(public_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
707
654
|
const len3 = WASM_VECTOR_LEN;
|
@@ -710,11 +657,11 @@ export function prepareInvokeCapability(
|
|
710
657
|
}
|
711
658
|
|
712
659
|
/**
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
660
|
+
* @param {string} invocation
|
661
|
+
* @param {string} preparation
|
662
|
+
* @param {string} signature
|
663
|
+
* @returns {Promise<any>}
|
664
|
+
*/
|
718
665
|
export function completeInvokeCapability(invocation, preparation, signature) {
|
719
666
|
const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
720
667
|
const len0 = WASM_VECTOR_LEN;
|
@@ -727,9 +674,9 @@ export function completeInvokeCapability(invocation, preparation, signature) {
|
|
727
674
|
}
|
728
675
|
|
729
676
|
/**
|
730
|
-
|
731
|
-
|
732
|
-
|
677
|
+
* @param {string} invocation
|
678
|
+
* @returns {Promise<any>}
|
679
|
+
*/
|
733
680
|
export function verifyInvocationSignature(invocation) {
|
734
681
|
const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
735
682
|
const len0 = WASM_VECTOR_LEN;
|
@@ -738,10 +685,10 @@ export function verifyInvocationSignature(invocation) {
|
|
738
685
|
}
|
739
686
|
|
740
687
|
/**
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
688
|
+
* @param {string} invocation
|
689
|
+
* @param {string} delegation
|
690
|
+
* @returns {Promise<any>}
|
691
|
+
*/
|
745
692
|
export function verifyInvocation(invocation, delegation) {
|
746
693
|
const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
747
694
|
const len0 = WASM_VECTOR_LEN;
|
@@ -752,9 +699,9 @@ export function verifyInvocation(invocation, delegation) {
|
|
752
699
|
}
|
753
700
|
|
754
701
|
/**
|
755
|
-
|
756
|
-
|
757
|
-
|
702
|
+
* @param {string} url
|
703
|
+
* @returns {Promise<any>}
|
704
|
+
*/
|
758
705
|
export function contextLoader(url) {
|
759
706
|
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
760
707
|
const len0 = WASM_VECTOR_LEN;
|
@@ -773,13 +720,8 @@ function handleError(f, args) {
|
|
773
720
|
function getArrayU8FromWasm0(ptr, len) {
|
774
721
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
775
722
|
}
|
776
|
-
function
|
777
|
-
wasm.
|
778
|
-
arg0,
|
779
|
-
arg1,
|
780
|
-
addHeapObject(arg2),
|
781
|
-
addHeapObject(arg3)
|
782
|
-
);
|
723
|
+
function __wbg_adapter_131(arg0, arg1, arg2, arg3) {
|
724
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h5199611bd19f62fe(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
783
725
|
}
|
784
726
|
|
785
727
|
async function load(module, imports) {
|
@@ -787,12 +729,11 @@ async function load(module, imports) {
|
|
787
729
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
788
730
|
try {
|
789
731
|
return await WebAssembly.instantiateStreaming(module, imports);
|
732
|
+
|
790
733
|
} catch (e) {
|
791
734
|
if (module.headers.get('Content-Type') != 'application/wasm') {
|
792
|
-
console.warn(
|
793
|
-
|
794
|
-
e
|
795
|
-
);
|
735
|
+
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);
|
736
|
+
|
796
737
|
} else {
|
797
738
|
throw e;
|
798
739
|
}
|
@@ -801,11 +742,13 @@ async function load(module, imports) {
|
|
801
742
|
|
802
743
|
const bytes = await module.arrayBuffer();
|
803
744
|
return await WebAssembly.instantiate(bytes, imports);
|
745
|
+
|
804
746
|
} else {
|
805
747
|
const instance = await WebAssembly.instantiate(module, imports);
|
806
748
|
|
807
749
|
if (instance instanceof WebAssembly.Instance) {
|
808
750
|
return { instance, module };
|
751
|
+
|
809
752
|
} else {
|
810
753
|
return instance;
|
811
754
|
}
|
@@ -815,13 +758,13 @@ async function load(module, imports) {
|
|
815
758
|
function getImports() {
|
816
759
|
const imports = {};
|
817
760
|
imports.wbg = {};
|
761
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
762
|
+
takeObject(arg0);
|
763
|
+
};
|
818
764
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
819
765
|
const ret = getStringFromWasm0(arg0, arg1);
|
820
766
|
return addHeapObject(ret);
|
821
767
|
};
|
822
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
823
|
-
takeObject(arg0);
|
824
|
-
};
|
825
768
|
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
826
769
|
const obj = takeObject(arg0).original;
|
827
770
|
if (obj.cnt-- == 1) {
|
@@ -843,23 +786,17 @@ function getImports() {
|
|
843
786
|
const ret = getObject(arg0).fetch(getObject(arg1));
|
844
787
|
return addHeapObject(ret);
|
845
788
|
};
|
846
|
-
imports.wbg.__wbg_new_4cba26249c1686cd = function() {
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
return handleError(function(arg0, arg1, arg2, arg3, arg4) {
|
854
|
-
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
855
|
-
}, arguments);
|
856
|
-
};
|
789
|
+
imports.wbg.__wbg_new_4cba26249c1686cd = function() { return handleError(function () {
|
790
|
+
const ret = new Headers();
|
791
|
+
return addHeapObject(ret);
|
792
|
+
}, arguments) };
|
793
|
+
imports.wbg.__wbg_append_9c6d4d7f71076e48 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
794
|
+
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
795
|
+
}, arguments) };
|
857
796
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
858
797
|
const obj = getObject(arg1);
|
859
|
-
const ret = typeof
|
860
|
-
var ptr0 = isLikeNone(ret)
|
861
|
-
? 0
|
862
|
-
: passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
798
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
799
|
+
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
863
800
|
var len0 = WASM_VECTOR_LEN;
|
864
801
|
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
865
802
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
@@ -883,35 +820,67 @@ function getImports() {
|
|
883
820
|
const ret = getObject(arg0).headers;
|
884
821
|
return addHeapObject(ret);
|
885
822
|
};
|
886
|
-
imports.wbg.__wbg_arrayBuffer_ccd485f4d2929b08 = function() {
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
823
|
+
imports.wbg.__wbg_arrayBuffer_ccd485f4d2929b08 = function() { return handleError(function (arg0) {
|
824
|
+
const ret = getObject(arg0).arrayBuffer();
|
825
|
+
return addHeapObject(ret);
|
826
|
+
}, arguments) };
|
827
|
+
imports.wbg.__wbg_newwithstrandinit_de7c409ec8538105 = function() { return handleError(function (arg0, arg1, arg2) {
|
828
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
829
|
+
return addHeapObject(ret);
|
830
|
+
}, arguments) };
|
831
|
+
imports.wbg.__wbg_process_e56fd54cf6319b6c = function(arg0) {
|
832
|
+
const ret = getObject(arg0).process;
|
833
|
+
return addHeapObject(ret);
|
897
834
|
};
|
898
835
|
imports.wbg.__wbindgen_is_object = function(arg0) {
|
899
836
|
const val = getObject(arg0);
|
900
|
-
const ret = typeof
|
837
|
+
const ret = typeof(val) === 'object' && val !== null;
|
838
|
+
return ret;
|
839
|
+
};
|
840
|
+
imports.wbg.__wbg_versions_77e21455908dad33 = function(arg0) {
|
841
|
+
const ret = getObject(arg0).versions;
|
842
|
+
return addHeapObject(ret);
|
843
|
+
};
|
844
|
+
imports.wbg.__wbg_node_0dd25d832e4785d5 = function(arg0) {
|
845
|
+
const ret = getObject(arg0).node;
|
846
|
+
return addHeapObject(ret);
|
847
|
+
};
|
848
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
849
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
901
850
|
return ret;
|
902
851
|
};
|
852
|
+
imports.wbg.__wbg_static_accessor_NODE_MODULE_26b231378c1be7dd = function() {
|
853
|
+
const ret = module;
|
854
|
+
return addHeapObject(ret);
|
855
|
+
};
|
856
|
+
imports.wbg.__wbg_require_0db1598d9ccecb30 = function() { return handleError(function (arg0, arg1, arg2) {
|
857
|
+
const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
|
858
|
+
return addHeapObject(ret);
|
859
|
+
}, arguments) };
|
860
|
+
imports.wbg.__wbg_crypto_b95d7173266618a9 = function(arg0) {
|
861
|
+
const ret = getObject(arg0).crypto;
|
862
|
+
return addHeapObject(ret);
|
863
|
+
};
|
864
|
+
imports.wbg.__wbg_msCrypto_5a86d77a66230f81 = function(arg0) {
|
865
|
+
const ret = getObject(arg0).msCrypto;
|
866
|
+
return addHeapObject(ret);
|
867
|
+
};
|
868
|
+
imports.wbg.__wbg_getRandomValues_b14734aa289bc356 = function() { return handleError(function (arg0, arg1) {
|
869
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
870
|
+
}, arguments) };
|
871
|
+
imports.wbg.__wbg_randomFillSync_91e2b39becca6147 = function() { return handleError(function (arg0, arg1, arg2) {
|
872
|
+
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
873
|
+
}, arguments) };
|
903
874
|
imports.wbg.__wbg_randomFillSync_d2ba53160aec6aba = function(arg0, arg1, arg2) {
|
904
875
|
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
905
876
|
};
|
906
877
|
imports.wbg.__wbg_getRandomValues_e57c9b75ddead065 = function(arg0, arg1) {
|
907
878
|
getObject(arg0).getRandomValues(getObject(arg1));
|
908
879
|
};
|
909
|
-
imports.wbg.__wbg_self_86b4b13392c7af56 = function() {
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
}, arguments);
|
914
|
-
};
|
880
|
+
imports.wbg.__wbg_self_86b4b13392c7af56 = function() { return handleError(function () {
|
881
|
+
const ret = self.self;
|
882
|
+
return addHeapObject(ret);
|
883
|
+
}, arguments) };
|
915
884
|
imports.wbg.__wbg_crypto_b8c92eaac23d0d80 = function(arg0) {
|
916
885
|
const ret = getObject(arg0).crypto;
|
917
886
|
return addHeapObject(ret);
|
@@ -937,7 +906,7 @@ function getImports() {
|
|
937
906
|
return addHeapObject(ret);
|
938
907
|
};
|
939
908
|
imports.wbg.__wbindgen_is_function = function(arg0) {
|
940
|
-
const ret = typeof
|
909
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
941
910
|
return ret;
|
942
911
|
};
|
943
912
|
imports.wbg.__wbg_newnoargs_971e9a5abe185139 = function(arg0, arg1) {
|
@@ -948,12 +917,10 @@ function getImports() {
|
|
948
917
|
const ret = getObject(arg0).next;
|
949
918
|
return addHeapObject(ret);
|
950
919
|
};
|
951
|
-
imports.wbg.__wbg_next_3d0c4cc33e7418c9 = function() {
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
}, arguments);
|
956
|
-
};
|
920
|
+
imports.wbg.__wbg_next_3d0c4cc33e7418c9 = function() { return handleError(function (arg0) {
|
921
|
+
const ret = getObject(arg0).next();
|
922
|
+
return addHeapObject(ret);
|
923
|
+
}, arguments) };
|
957
924
|
imports.wbg.__wbg_done_e5655b169bb04f60 = function(arg0) {
|
958
925
|
const ret = getObject(arg0).done;
|
959
926
|
return ret;
|
@@ -966,52 +933,38 @@ function getImports() {
|
|
966
933
|
const ret = Symbol.iterator;
|
967
934
|
return addHeapObject(ret);
|
968
935
|
};
|
969
|
-
imports.wbg.__wbg_get_72332cd2bc57924c = function() {
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
const ret = getObject(arg0).call(getObject(arg1));
|
978
|
-
return addHeapObject(ret);
|
979
|
-
}, arguments);
|
980
|
-
};
|
936
|
+
imports.wbg.__wbg_get_72332cd2bc57924c = function() { return handleError(function (arg0, arg1) {
|
937
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
938
|
+
return addHeapObject(ret);
|
939
|
+
}, arguments) };
|
940
|
+
imports.wbg.__wbg_call_33d7bcddbbfa394a = function() { return handleError(function (arg0, arg1) {
|
941
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
942
|
+
return addHeapObject(ret);
|
943
|
+
}, arguments) };
|
981
944
|
imports.wbg.__wbg_new_e6a9fecc2bf26696 = function() {
|
982
945
|
const ret = new Object();
|
983
946
|
return addHeapObject(ret);
|
984
947
|
};
|
985
|
-
imports.wbg.__wbg_self_fd00a1ef86d1b2ed = function() {
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
};
|
997
|
-
imports.wbg.
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
const ret = global.global;
|
1006
|
-
return addHeapObject(ret);
|
1007
|
-
}, arguments);
|
1008
|
-
};
|
1009
|
-
imports.wbg.__wbg_call_65af9f665ab6ade5 = function() {
|
1010
|
-
return handleError(function(arg0, arg1, arg2) {
|
1011
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
1012
|
-
return addHeapObject(ret);
|
1013
|
-
}, arguments);
|
1014
|
-
};
|
948
|
+
imports.wbg.__wbg_self_fd00a1ef86d1b2ed = function() { return handleError(function () {
|
949
|
+
const ret = self.self;
|
950
|
+
return addHeapObject(ret);
|
951
|
+
}, arguments) };
|
952
|
+
imports.wbg.__wbg_window_6f6e346d8bbd61d7 = function() { return handleError(function () {
|
953
|
+
const ret = window.window;
|
954
|
+
return addHeapObject(ret);
|
955
|
+
}, arguments) };
|
956
|
+
imports.wbg.__wbg_globalThis_3348936ac49df00a = function() { return handleError(function () {
|
957
|
+
const ret = globalThis.globalThis;
|
958
|
+
return addHeapObject(ret);
|
959
|
+
}, arguments) };
|
960
|
+
imports.wbg.__wbg_global_67175caf56f55ca9 = function() { return handleError(function () {
|
961
|
+
const ret = global.global;
|
962
|
+
return addHeapObject(ret);
|
963
|
+
}, arguments) };
|
964
|
+
imports.wbg.__wbg_call_65af9f665ab6ade5 = function() { return handleError(function (arg0, arg1, arg2) {
|
965
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
966
|
+
return addHeapObject(ret);
|
967
|
+
}, arguments) };
|
1015
968
|
imports.wbg.__wbg_getTime_58b0bdbebd4ef11d = function(arg0) {
|
1016
969
|
const ret = getObject(arg0).getTime();
|
1017
970
|
return ret;
|
@@ -1022,12 +975,12 @@ function getImports() {
|
|
1022
975
|
};
|
1023
976
|
imports.wbg.__wbg_new_52205195aa880fc2 = function(arg0, arg1) {
|
1024
977
|
try {
|
1025
|
-
var state0 = {
|
978
|
+
var state0 = {a: arg0, b: arg1};
|
1026
979
|
var cb0 = (arg0, arg1) => {
|
1027
980
|
const a = state0.a;
|
1028
981
|
state0.a = 0;
|
1029
982
|
try {
|
1030
|
-
return
|
983
|
+
return __wbg_adapter_131(a, state0.b, arg0, arg1);
|
1031
984
|
} finally {
|
1032
985
|
state0.a = a;
|
1033
986
|
}
|
@@ -1077,24 +1030,18 @@ function getImports() {
|
|
1077
1030
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
1078
1031
|
return addHeapObject(ret);
|
1079
1032
|
};
|
1080
|
-
imports.wbg.__wbg_has_3be27932089d278e = function() {
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
};
|
1092
|
-
imports.wbg.__wbg_stringify_d8d1ee75d5b55ce4 = function() {
|
1093
|
-
return handleError(function(arg0) {
|
1094
|
-
const ret = JSON.stringify(getObject(arg0));
|
1095
|
-
return addHeapObject(ret);
|
1096
|
-
}, arguments);
|
1097
|
-
};
|
1033
|
+
imports.wbg.__wbg_has_3be27932089d278e = function() { return handleError(function (arg0, arg1) {
|
1034
|
+
const ret = Reflect.has(getObject(arg0), getObject(arg1));
|
1035
|
+
return ret;
|
1036
|
+
}, arguments) };
|
1037
|
+
imports.wbg.__wbg_set_2762e698c2f5b7e0 = function() { return handleError(function (arg0, arg1, arg2) {
|
1038
|
+
const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
|
1039
|
+
return ret;
|
1040
|
+
}, arguments) };
|
1041
|
+
imports.wbg.__wbg_stringify_d8d1ee75d5b55ce4 = function() { return handleError(function (arg0) {
|
1042
|
+
const ret = JSON.stringify(getObject(arg0));
|
1043
|
+
return addHeapObject(ret);
|
1044
|
+
}, arguments) };
|
1098
1045
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
1099
1046
|
const ret = debugString(getObject(arg1));
|
1100
1047
|
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -1109,19 +1056,17 @@ function getImports() {
|
|
1109
1056
|
const ret = wasm.memory;
|
1110
1057
|
return addHeapObject(ret);
|
1111
1058
|
};
|
1112
|
-
imports.wbg.
|
1113
|
-
const ret = makeMutClosure(arg0, arg1,
|
1114
|
-
return addHeapObject(ret);
|
1115
|
-
};
|
1116
|
-
imports.wbg.__wbindgen_closure_wrapper9985 = function(arg0, arg1, arg2) {
|
1117
|
-
const ret = makeMutClosure(arg0, arg1, 3544, __wbg_adapter_24);
|
1059
|
+
imports.wbg.__wbindgen_closure_wrapper11031 = function(arg0, arg1, arg2) {
|
1060
|
+
const ret = makeMutClosure(arg0, arg1, 3193, __wbg_adapter_26);
|
1118
1061
|
return addHeapObject(ret);
|
1119
1062
|
};
|
1120
1063
|
|
1121
1064
|
return imports;
|
1122
1065
|
}
|
1123
1066
|
|
1124
|
-
function initMemory(imports, maybe_memory) {
|
1067
|
+
function initMemory(imports, maybe_memory) {
|
1068
|
+
|
1069
|
+
}
|
1125
1070
|
|
1126
1071
|
function finalizeInit(instance, module) {
|
1127
1072
|
wasm = instance.exports;
|
@@ -1129,6 +1074,7 @@ function finalizeInit(instance, module) {
|
|
1129
1074
|
cachedInt32Memory0 = new Int32Array();
|
1130
1075
|
cachedUint8Memory0 = new Uint8Array();
|
1131
1076
|
|
1077
|
+
|
1132
1078
|
return wasm;
|
1133
1079
|
}
|
1134
1080
|
|
@@ -1149,11 +1095,7 @@ async function init(input) {
|
|
1149
1095
|
}
|
1150
1096
|
const imports = getImports();
|
1151
1097
|
|
1152
|
-
if (
|
1153
|
-
typeof input === 'string' ||
|
1154
|
-
(typeof Request === 'function' && input instanceof Request) ||
|
1155
|
-
(typeof URL === 'function' && input instanceof URL)
|
1156
|
-
) {
|
1098
|
+
if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) {
|
1157
1099
|
input = fetch(input);
|
1158
1100
|
}
|
1159
1101
|
|
@@ -1164,5 +1106,5 @@ async function init(input) {
|
|
1164
1106
|
return finalizeInit(instance, module);
|
1165
1107
|
}
|
1166
1108
|
|
1167
|
-
export { initSync }
|
1109
|
+
export { initSync }
|
1168
1110
|
export default init;
|