@learncard/didkit-plugin 1.4.10 → 1.4.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,17 +9,17 @@ var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("ut
9
9
  if (typeof TextDecoder !== "undefined") {
10
10
  cachedTextDecoder.decode();
11
11
  }
12
- var cachedUint8Memory0 = null;
13
- function getUint8Memory0() {
14
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
15
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
12
+ var cachedUint8ArrayMemory0 = null;
13
+ function getUint8ArrayMemory0() {
14
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
15
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
16
16
  }
17
- return cachedUint8Memory0;
17
+ return cachedUint8ArrayMemory0;
18
18
  }
19
- __name(getUint8Memory0, "getUint8Memory0");
19
+ __name(getUint8ArrayMemory0, "getUint8ArrayMemory0");
20
20
  function getStringFromWasm0(ptr, len) {
21
21
  ptr = ptr >>> 0;
22
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
22
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
23
23
  }
24
24
  __name(getStringFromWasm0, "getStringFromWasm0");
25
25
  var heap = new Array(128).fill(void 0);
@@ -69,13 +69,13 @@ function passStringToWasm0(arg, malloc, realloc) {
69
69
  if (realloc === void 0) {
70
70
  const buf = cachedTextEncoder.encode(arg);
71
71
  const ptr2 = malloc(buf.length, 1) >>> 0;
72
- getUint8Memory0().subarray(ptr2, ptr2 + buf.length).set(buf);
72
+ getUint8ArrayMemory0().subarray(ptr2, ptr2 + buf.length).set(buf);
73
73
  WASM_VECTOR_LEN = buf.length;
74
74
  return ptr2;
75
75
  }
76
76
  let len = arg.length;
77
77
  let ptr = malloc(len, 1) >>> 0;
78
- const mem = getUint8Memory0();
78
+ const mem = getUint8ArrayMemory0();
79
79
  let offset = 0;
80
80
  for (; offset < len; offset++) {
81
81
  const code = arg.charCodeAt(offset);
@@ -88,9 +88,10 @@ function passStringToWasm0(arg, malloc, realloc) {
88
88
  arg = arg.slice(offset);
89
89
  }
90
90
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
91
- const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
91
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
92
92
  const ret = encodeString(arg, view);
93
93
  offset += ret.written;
94
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
94
95
  }
95
96
  WASM_VECTOR_LEN = offset;
96
97
  return ptr;
@@ -100,14 +101,14 @@ function isLikeNone(x) {
100
101
  return x === void 0 || x === null;
101
102
  }
102
103
  __name(isLikeNone, "isLikeNone");
103
- var cachedInt32Memory0 = null;
104
- function getInt32Memory0() {
105
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
106
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
104
+ var cachedDataViewMemory0 = null;
105
+ function getDataViewMemory0() {
106
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
107
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
107
108
  }
108
- return cachedInt32Memory0;
109
+ return cachedDataViewMemory0;
109
110
  }
110
- __name(getInt32Memory0, "getInt32Memory0");
111
+ __name(getDataViewMemory0, "getDataViewMemory0");
111
112
  function debugString(val) {
112
113
  const type = typeof val;
113
114
  if (type == "number" || type == "boolean" || val == null) {
@@ -165,6 +166,11 @@ ${val.stack}`;
165
166
  return className;
166
167
  }
167
168
  __name(debugString, "debugString");
169
+ var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {
170
+ }, unregister: () => {
171
+ } } : new FinalizationRegistry((state) => {
172
+ wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b);
173
+ });
168
174
  function makeMutClosure(arg0, arg1, dtor, f) {
169
175
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
170
176
  const real = /* @__PURE__ */ __name((...args) => {
@@ -176,17 +182,19 @@ function makeMutClosure(arg0, arg1, dtor, f) {
176
182
  } finally {
177
183
  if (--state.cnt === 0) {
178
184
  wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
185
+ CLOSURE_DTORS.unregister(state);
179
186
  } else {
180
187
  state.a = a;
181
188
  }
182
189
  }
183
190
  }, "real");
184
191
  real.original = state;
192
+ CLOSURE_DTORS.register(real, state, state);
185
193
  return real;
186
194
  }
187
195
  __name(makeMutClosure, "makeMutClosure");
188
196
  function __wbg_adapter_26(arg0, arg1, arg2) {
189
- wasm.wasm_bindgen__convert__closures__invoke1_mut__h45806fd75c456525(arg0, arg1, addHeapObject(arg2));
197
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbfea49efa319d6a8(arg0, arg1, addHeapObject(arg2));
190
198
  }
191
199
  __name(__wbg_adapter_26, "__wbg_adapter_26");
192
200
  function didResolver(did, input_metadata) {
@@ -209,7 +217,7 @@ function resolveDID(did, input_metadata) {
209
217
  __name(resolveDID, "resolveDID");
210
218
  function passArray8ToWasm0(arg, malloc) {
211
219
  const ptr = malloc(arg.length * 1, 1) >>> 0;
212
- getUint8Memory0().set(arg, ptr / 1);
220
+ getUint8ArrayMemory0().set(arg, ptr / 1);
213
221
  WASM_VECTOR_LEN = arg.length;
214
222
  return ptr;
215
223
  }
@@ -222,10 +230,10 @@ function generateEd25519KeyFromBytes(bytes) {
222
230
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
223
231
  const len0 = WASM_VECTOR_LEN;
224
232
  wasm.generateEd25519KeyFromBytes(retptr, ptr0, len0);
225
- var r0 = getInt32Memory0()[retptr / 4 + 0];
226
- var r1 = getInt32Memory0()[retptr / 4 + 1];
227
- var r2 = getInt32Memory0()[retptr / 4 + 2];
228
- var r3 = getInt32Memory0()[retptr / 4 + 3];
233
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
234
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
235
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
236
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
229
237
  var ptr2 = r0;
230
238
  var len2 = r1;
231
239
  if (r3) {
@@ -250,10 +258,10 @@ function generateSecp256k1KeyFromBytes(bytes) {
250
258
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
251
259
  const len0 = WASM_VECTOR_LEN;
252
260
  wasm.generateSecp256k1KeyFromBytes(retptr, ptr0, len0);
253
- var r0 = getInt32Memory0()[retptr / 4 + 0];
254
- var r1 = getInt32Memory0()[retptr / 4 + 1];
255
- var r2 = getInt32Memory0()[retptr / 4 + 2];
256
- var r3 = getInt32Memory0()[retptr / 4 + 3];
261
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
262
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
263
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
264
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
257
265
  var ptr2 = r0;
258
266
  var len2 = r1;
259
267
  if (r3) {
@@ -280,10 +288,10 @@ function keyToDID(method_pattern, jwk) {
280
288
  const ptr1 = passStringToWasm0(jwk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
281
289
  const len1 = WASM_VECTOR_LEN;
282
290
  wasm.keyToDID(retptr, ptr0, len0, ptr1, len1);
283
- var r0 = getInt32Memory0()[retptr / 4 + 0];
284
- var r1 = getInt32Memory0()[retptr / 4 + 1];
285
- var r2 = getInt32Memory0()[retptr / 4 + 2];
286
- var r3 = getInt32Memory0()[retptr / 4 + 3];
291
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
292
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
293
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
294
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
287
295
  var ptr3 = r0;
288
296
  var len3 = r1;
289
297
  if (r3) {
@@ -381,13 +389,15 @@ function handleError(f, args) {
381
389
  __name(handleError, "handleError");
382
390
  function getArrayU8FromWasm0(ptr, len) {
383
391
  ptr = ptr >>> 0;
384
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
392
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
385
393
  }
386
394
  __name(getArrayU8FromWasm0, "getArrayU8FromWasm0");
387
- function __wbg_adapter_139(arg0, arg1, arg2, arg3) {
388
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h46bbe3de5dd3bce3(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
395
+ function __wbg_adapter_155(arg0, arg1, arg2, arg3) {
396
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h7f21b3df1bf974ab(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
389
397
  }
390
- __name(__wbg_adapter_139, "__wbg_adapter_139");
398
+ __name(__wbg_adapter_155, "__wbg_adapter_155");
399
+ var __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
400
+ var __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
391
401
  async function __wbg_load(module2, imports) {
392
402
  if (typeof Response === "function" && module2 instanceof Response) {
393
403
  if (typeof WebAssembly.instantiateStreaming === "function") {
@@ -395,7 +405,7 @@ async function __wbg_load(module2, imports) {
395
405
  return await WebAssembly.instantiateStreaming(module2, imports);
396
406
  } catch (e) {
397
407
  if (module2.headers.get("Content-Type") != "application/wasm") {
398
- 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);
408
+ 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);
399
409
  } else {
400
410
  throw e;
401
411
  }
@@ -436,86 +446,119 @@ function __wbg_get_imports() {
436
446
  const ret = getObject(arg0);
437
447
  return addHeapObject(ret);
438
448
  };
439
- imports.wbg.__wbg_fetch_57429b87be3dcc33 = function(arg0) {
449
+ imports.wbg.__wbg_fetch_bc7c8e27076a5c84 = function(arg0) {
440
450
  const ret = fetch(getObject(arg0));
441
451
  return addHeapObject(ret);
442
452
  };
443
- imports.wbg.__wbg_fetch_8eaf01857a5bb21f = function(arg0, arg1) {
444
- const ret = getObject(arg0).fetch(getObject(arg1));
453
+ imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) {
454
+ const ret = getObject(arg0).queueMicrotask;
445
455
  return addHeapObject(ret);
446
456
  };
447
- imports.wbg.__wbg_instanceof_Response_fc4327dbfcdf5ced = function(arg0) {
448
- let result;
449
- try {
450
- result = getObject(arg0) instanceof Response;
451
- } catch {
452
- result = false;
453
- }
454
- const ret = result;
457
+ imports.wbg.__wbindgen_is_function = function(arg0) {
458
+ const ret = typeof getObject(arg0) === "function";
455
459
  return ret;
456
460
  };
457
- imports.wbg.__wbg_url_8503de97f69da463 = function(arg0, arg1) {
458
- const ret = getObject(arg1).url;
459
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
460
- const len1 = WASM_VECTOR_LEN;
461
- getInt32Memory0()[arg0 / 4 + 1] = len1;
462
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
461
+ imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = function(arg0) {
462
+ queueMicrotask(getObject(arg0));
463
463
  };
464
- imports.wbg.__wbg_status_ac85a3142a84caa2 = function(arg0) {
465
- const ret = getObject(arg0).status;
466
- return ret;
464
+ imports.wbg.__wbg_fetch_1fdc4448ed9eec00 = function(arg0, arg1) {
465
+ const ret = getObject(arg0).fetch(getObject(arg1));
466
+ return addHeapObject(ret);
467
467
  };
468
- imports.wbg.__wbg_headers_b70de86b8e989bc0 = function(arg0) {
469
- const ret = getObject(arg0).headers;
468
+ imports.wbg.__wbg_setbody_aa8b691bec428bf4 = function(arg0, arg1) {
469
+ getObject(arg0).body = getObject(arg1);
470
+ };
471
+ imports.wbg.__wbg_setcredentials_a4e661320cdb9738 = function(arg0, arg1) {
472
+ getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
473
+ };
474
+ imports.wbg.__wbg_setheaders_f5205d36e423a544 = function(arg0, arg1) {
475
+ getObject(arg0).headers = getObject(arg1);
476
+ };
477
+ imports.wbg.__wbg_setmethod_ce2da76000b02f6a = function(arg0, arg1, arg2) {
478
+ getObject(arg0).method = getStringFromWasm0(arg1, arg2);
479
+ };
480
+ imports.wbg.__wbg_setmode_4919fd636102c586 = function(arg0, arg1) {
481
+ getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
482
+ };
483
+ imports.wbg.__wbg_setsignal_812ccb8269a7fd90 = function(arg0, arg1) {
484
+ getObject(arg0).signal = getObject(arg1);
485
+ };
486
+ imports.wbg.__wbg_signal_9acfcec9e7dffc22 = function(arg0) {
487
+ const ret = getObject(arg0).signal;
470
488
  return addHeapObject(ret);
471
489
  };
472
- imports.wbg.__wbg_arrayBuffer_288fb3538806e85c = function() {
473
- return handleError(function(arg0) {
474
- const ret = getObject(arg0).arrayBuffer();
490
+ imports.wbg.__wbg_new_75169ae5a9683c55 = function() {
491
+ return handleError(function() {
492
+ const ret = new AbortController();
475
493
  return addHeapObject(ret);
476
494
  }, arguments);
477
495
  };
478
- imports.wbg.__wbg_newwithstrandinit_cad5cd6038c7ff5d = function() {
496
+ imports.wbg.__wbg_abort_c57daab47a6c1215 = function(arg0) {
497
+ getObject(arg0).abort();
498
+ };
499
+ imports.wbg.__wbg_newwithstrandinit_4b92c89af0a8e383 = function() {
479
500
  return handleError(function(arg0, arg1, arg2) {
480
501
  const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
481
502
  return addHeapObject(ret);
482
503
  }, arguments);
483
504
  };
484
- imports.wbg.__wbg_now_0cfdc90c97d0c24b = function(arg0) {
485
- const ret = getObject(arg0).now();
486
- return ret;
505
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
506
+ const obj = getObject(arg1);
507
+ const ret = typeof obj === "string" ? obj : void 0;
508
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
509
+ var len1 = WASM_VECTOR_LEN;
510
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
511
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
487
512
  };
488
- imports.wbg.__wbg_new_1eead62f64ca15ce = function() {
513
+ imports.wbg.__wbg_new_a9ae04a5200606a5 = function() {
489
514
  return handleError(function() {
490
515
  const ret = new Headers();
491
516
  return addHeapObject(ret);
492
517
  }, arguments);
493
518
  };
494
- imports.wbg.__wbg_append_fda9e3432e3e88da = function() {
519
+ imports.wbg.__wbg_append_8b3e7f74a47ea7d5 = function() {
495
520
  return handleError(function(arg0, arg1, arg2, arg3, arg4) {
496
521
  getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
497
522
  }, arguments);
498
523
  };
499
- imports.wbg.__wbg_signal_4bd18fb489af2d4c = function(arg0) {
500
- const ret = getObject(arg0).signal;
524
+ imports.wbg.__wbg_now_d3cbc9581625f686 = function(arg0) {
525
+ const ret = getObject(arg0).now();
526
+ return ret;
527
+ };
528
+ imports.wbg.__wbg_instanceof_Response_3c0e210a57ff751d = function(arg0) {
529
+ let result;
530
+ try {
531
+ result = getObject(arg0) instanceof Response;
532
+ } catch (_) {
533
+ result = false;
534
+ }
535
+ const ret = result;
536
+ return ret;
537
+ };
538
+ imports.wbg.__wbg_url_58af972663531d16 = function(arg0, arg1) {
539
+ const ret = getObject(arg1).url;
540
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
541
+ const len1 = WASM_VECTOR_LEN;
542
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
543
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
544
+ };
545
+ imports.wbg.__wbg_status_5f4e900d22140a18 = function(arg0) {
546
+ const ret = getObject(arg0).status;
547
+ return ret;
548
+ };
549
+ imports.wbg.__wbg_headers_1b9bf90c73fae600 = function(arg0) {
550
+ const ret = getObject(arg0).headers;
501
551
  return addHeapObject(ret);
502
552
  };
503
- imports.wbg.__wbg_new_55c9955722952374 = function() {
504
- return handleError(function() {
505
- const ret = new AbortController();
553
+ imports.wbg.__wbg_arrayBuffer_144729e09879650e = function() {
554
+ return handleError(function(arg0) {
555
+ const ret = getObject(arg0).arrayBuffer();
506
556
  return addHeapObject(ret);
507
557
  }, arguments);
508
558
  };
509
- imports.wbg.__wbg_abort_654b796176d117aa = function(arg0) {
510
- getObject(arg0).abort();
511
- };
512
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
513
- const obj = getObject(arg1);
514
- const ret = typeof obj === "string" ? obj : void 0;
515
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
516
- var len1 = WASM_VECTOR_LEN;
517
- getInt32Memory0()[arg0 / 4 + 1] = len1;
518
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
559
+ imports.wbg.__wbg_static_accessor_MODULE_ef3aa2eb251158a5 = function() {
560
+ const ret = module;
561
+ return addHeapObject(ret);
519
562
  };
520
563
  imports.wbg.__wbg_self_7eede1f4488bf346 = function() {
521
564
  return handleError(function() {
@@ -535,10 +578,6 @@ function __wbg_get_imports() {
535
578
  const ret = getObject(arg0) === void 0;
536
579
  return ret;
537
580
  };
538
- imports.wbg.__wbg_static_accessor_MODULE_ef3aa2eb251158a5 = function() {
539
- const ret = module;
540
- return addHeapObject(ret);
541
- };
542
581
  imports.wbg.__wbg_require_900d5c3984fe7703 = function(arg0, arg1, arg2) {
543
582
  const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
544
583
  return addHeapObject(ret);
@@ -553,7 +592,7 @@ function __wbg_get_imports() {
553
592
  imports.wbg.__wbg_randomFillSync_85b3f4c52c56c313 = function(arg0, arg1, arg2) {
554
593
  getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
555
594
  };
556
- imports.wbg.__wbg_crypto_c48a774b022d20ac = function(arg0) {
595
+ imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
557
596
  const ret = getObject(arg0).crypto;
558
597
  return addHeapObject(ret);
559
598
  };
@@ -562,15 +601,15 @@ function __wbg_get_imports() {
562
601
  const ret = typeof val === "object" && val !== null;
563
602
  return ret;
564
603
  };
565
- imports.wbg.__wbg_process_298734cf255a885d = function(arg0) {
604
+ imports.wbg.__wbg_process_4a72847cc503995b = function(arg0) {
566
605
  const ret = getObject(arg0).process;
567
606
  return addHeapObject(ret);
568
607
  };
569
- imports.wbg.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
608
+ imports.wbg.__wbg_versions_f686565e586dd935 = function(arg0) {
570
609
  const ret = getObject(arg0).versions;
571
610
  return addHeapObject(ret);
572
611
  };
573
- imports.wbg.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
612
+ imports.wbg.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
574
613
  const ret = getObject(arg0).node;
575
614
  return addHeapObject(ret);
576
615
  };
@@ -578,118 +617,114 @@ function __wbg_get_imports() {
578
617
  const ret = typeof getObject(arg0) === "string";
579
618
  return ret;
580
619
  };
581
- imports.wbg.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
582
- const ret = getObject(arg0).msCrypto;
583
- return addHeapObject(ret);
584
- };
585
- imports.wbg.__wbg_require_8f08ceecec0f4fee = function() {
620
+ imports.wbg.__wbg_require_cca90b1a94a0255b = function() {
586
621
  return handleError(function() {
587
622
  const ret = module.require;
588
623
  return addHeapObject(ret);
589
624
  }, arguments);
590
625
  };
591
- imports.wbg.__wbindgen_is_function = function(arg0) {
592
- const ret = typeof getObject(arg0) === "function";
593
- return ret;
626
+ imports.wbg.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
627
+ const ret = getObject(arg0).msCrypto;
628
+ return addHeapObject(ret);
594
629
  };
595
- imports.wbg.__wbg_randomFillSync_dc1e9a60c158336d = function() {
630
+ imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() {
596
631
  return handleError(function(arg0, arg1) {
597
632
  getObject(arg0).randomFillSync(takeObject(arg1));
598
633
  }, arguments);
599
634
  };
600
- imports.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab = function() {
635
+ imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() {
601
636
  return handleError(function(arg0, arg1) {
602
637
  getObject(arg0).getRandomValues(getObject(arg1));
603
638
  }, arguments);
604
639
  };
605
- imports.wbg.__wbg_newnoargs_581967eacc0e2604 = function(arg0, arg1) {
640
+ imports.wbg.__wbg_newnoargs_1ede4bf2ebbaaf43 = function(arg0, arg1) {
606
641
  const ret = new Function(getStringFromWasm0(arg0, arg1));
607
642
  return addHeapObject(ret);
608
643
  };
609
- imports.wbg.__wbg_next_526fc47e980da008 = function(arg0) {
644
+ imports.wbg.__wbg_next_13b477da1eaa3897 = function(arg0) {
610
645
  const ret = getObject(arg0).next;
611
646
  return addHeapObject(ret);
612
647
  };
613
- imports.wbg.__wbg_next_ddb3312ca1c4e32a = function() {
648
+ imports.wbg.__wbg_next_b06e115d1b01e10b = function() {
614
649
  return handleError(function(arg0) {
615
650
  const ret = getObject(arg0).next();
616
651
  return addHeapObject(ret);
617
652
  }, arguments);
618
653
  };
619
- imports.wbg.__wbg_done_5c1f01fb660d73b5 = function(arg0) {
654
+ imports.wbg.__wbg_done_983b5ffcaec8c583 = function(arg0) {
620
655
  const ret = getObject(arg0).done;
621
656
  return ret;
622
657
  };
623
- imports.wbg.__wbg_value_1695675138684bd5 = function(arg0) {
658
+ imports.wbg.__wbg_value_2ab8a198c834c26a = function(arg0) {
624
659
  const ret = getObject(arg0).value;
625
660
  return addHeapObject(ret);
626
661
  };
627
- imports.wbg.__wbg_iterator_97f0c81209c6c35a = function() {
662
+ imports.wbg.__wbg_iterator_695d699a44d6234c = function() {
628
663
  const ret = Symbol.iterator;
629
664
  return addHeapObject(ret);
630
665
  };
631
- imports.wbg.__wbg_get_97b561fb56f034b5 = function() {
666
+ imports.wbg.__wbg_get_ef828680c64da212 = function() {
632
667
  return handleError(function(arg0, arg1) {
633
668
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
634
669
  return addHeapObject(ret);
635
670
  }, arguments);
636
671
  };
637
- imports.wbg.__wbg_call_cb65541d95d71282 = function() {
672
+ imports.wbg.__wbg_call_a9ef466721e824f2 = function() {
638
673
  return handleError(function(arg0, arg1) {
639
674
  const ret = getObject(arg0).call(getObject(arg1));
640
675
  return addHeapObject(ret);
641
676
  }, arguments);
642
677
  };
643
- imports.wbg.__wbg_new_b51585de1b234aff = function() {
678
+ imports.wbg.__wbg_new_e69b5f66fda8f13c = function() {
644
679
  const ret = new Object();
645
680
  return addHeapObject(ret);
646
681
  };
647
- imports.wbg.__wbg_self_1ff1d729e9aae938 = function() {
682
+ imports.wbg.__wbg_self_bf91bf94d9e04084 = function() {
648
683
  return handleError(function() {
649
684
  const ret = self.self;
650
685
  return addHeapObject(ret);
651
686
  }, arguments);
652
687
  };
653
- imports.wbg.__wbg_window_5f4faef6c12b79ec = function() {
688
+ imports.wbg.__wbg_window_52dd9f07d03fd5f8 = function() {
654
689
  return handleError(function() {
655
690
  const ret = window.window;
656
691
  return addHeapObject(ret);
657
692
  }, arguments);
658
693
  };
659
- imports.wbg.__wbg_globalThis_1d39714405582d3c = function() {
694
+ imports.wbg.__wbg_globalThis_05c129bf37fcf1be = function() {
660
695
  return handleError(function() {
661
696
  const ret = globalThis.globalThis;
662
697
  return addHeapObject(ret);
663
698
  }, arguments);
664
699
  };
665
- imports.wbg.__wbg_global_651f05c6a0944d1c = function() {
700
+ imports.wbg.__wbg_global_3eca19bb09e9c484 = function() {
666
701
  return handleError(function() {
667
702
  const ret = global.global;
668
703
  return addHeapObject(ret);
669
704
  }, arguments);
670
705
  };
671
- imports.wbg.__wbg_call_01734de55d61e11d = function() {
706
+ imports.wbg.__wbg_call_3bfa248576352471 = function() {
672
707
  return handleError(function(arg0, arg1, arg2) {
673
708
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
674
709
  return addHeapObject(ret);
675
710
  }, arguments);
676
711
  };
677
- imports.wbg.__wbg_getTime_5e2054f832d82ec9 = function(arg0) {
712
+ imports.wbg.__wbg_getTime_41225036a0393d63 = function(arg0) {
678
713
  const ret = getObject(arg0).getTime();
679
714
  return ret;
680
715
  };
681
- imports.wbg.__wbg_new0_c0be7df4b6bd481f = function() {
716
+ imports.wbg.__wbg_new0_218ada33b570be35 = function() {
682
717
  const ret = new Date();
683
718
  return addHeapObject(ret);
684
719
  };
685
- imports.wbg.__wbg_new_43f1b47c28813cbd = function(arg0, arg1) {
720
+ imports.wbg.__wbg_new_1073970097e5a420 = function(arg0, arg1) {
686
721
  try {
687
722
  var state0 = { a: arg0, b: arg1 };
688
723
  var cb0 = /* @__PURE__ */ __name((arg02, arg12) => {
689
724
  const a = state0.a;
690
725
  state0.a = 0;
691
726
  try {
692
- return __wbg_adapter_139(a, state0.b, arg02, arg12);
727
+ return __wbg_adapter_155(a, state0.b, arg02, arg12);
693
728
  } finally {
694
729
  state0.a = a;
695
730
  }
@@ -700,69 +735,63 @@ function __wbg_get_imports() {
700
735
  state0.a = state0.b = 0;
701
736
  }
702
737
  };
703
- imports.wbg.__wbg_resolve_53698b95aaf7fcf8 = function(arg0) {
738
+ imports.wbg.__wbg_resolve_0aad7c1484731c99 = function(arg0) {
704
739
  const ret = Promise.resolve(getObject(arg0));
705
740
  return addHeapObject(ret);
706
741
  };
707
- imports.wbg.__wbg_then_f7e06ee3c11698eb = function(arg0, arg1) {
742
+ imports.wbg.__wbg_then_748f75edfb032440 = function(arg0, arg1) {
708
743
  const ret = getObject(arg0).then(getObject(arg1));
709
744
  return addHeapObject(ret);
710
745
  };
711
- imports.wbg.__wbg_then_b2267541e2a73865 = function(arg0, arg1, arg2) {
746
+ imports.wbg.__wbg_then_4866a7d9f55d8f3e = function(arg0, arg1, arg2) {
712
747
  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
713
748
  return addHeapObject(ret);
714
749
  };
715
- imports.wbg.__wbg_buffer_085ec1f694018c4f = function(arg0) {
750
+ imports.wbg.__wbg_buffer_ccaed51a635d8a2d = function(arg0) {
716
751
  const ret = getObject(arg0).buffer;
717
752
  return addHeapObject(ret);
718
753
  };
719
- imports.wbg.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa = function(arg0, arg1, arg2) {
754
+ imports.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730 = function(arg0, arg1, arg2) {
720
755
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
721
756
  return addHeapObject(ret);
722
757
  };
723
- imports.wbg.__wbg_new_8125e318e6245eed = function(arg0) {
758
+ imports.wbg.__wbg_new_fec2611eb9180f95 = function(arg0) {
724
759
  const ret = new Uint8Array(getObject(arg0));
725
760
  return addHeapObject(ret);
726
761
  };
727
- imports.wbg.__wbg_set_5cf90238115182c3 = function(arg0, arg1, arg2) {
762
+ imports.wbg.__wbg_set_ec2fcf81bc573fd9 = function(arg0, arg1, arg2) {
728
763
  getObject(arg0).set(getObject(arg1), arg2 >>> 0);
729
764
  };
730
- imports.wbg.__wbg_length_72e2208bbc0efc61 = function(arg0) {
765
+ imports.wbg.__wbg_length_9254c4bd3b9f23c4 = function(arg0) {
731
766
  const ret = getObject(arg0).length;
732
767
  return ret;
733
768
  };
734
- imports.wbg.__wbg_newwithlength_e5d69174d6984cd7 = function(arg0) {
769
+ imports.wbg.__wbg_newwithlength_76462a666eca145f = function(arg0) {
735
770
  const ret = new Uint8Array(arg0 >>> 0);
736
771
  return addHeapObject(ret);
737
772
  };
738
- imports.wbg.__wbg_subarray_13db269f57aa838d = function(arg0, arg1, arg2) {
773
+ imports.wbg.__wbg_subarray_975a06f9dbd16995 = function(arg0, arg1, arg2) {
739
774
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
740
775
  return addHeapObject(ret);
741
776
  };
742
- imports.wbg.__wbg_has_c5fcd020291e56b8 = function() {
743
- return handleError(function(arg0, arg1) {
744
- const ret = Reflect.has(getObject(arg0), getObject(arg1));
745
- return ret;
746
- }, arguments);
747
- };
748
- imports.wbg.__wbg_set_092e06b0f9d71865 = function() {
749
- return handleError(function(arg0, arg1, arg2) {
750
- const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
751
- return ret;
752
- }, arguments);
753
- };
754
- imports.wbg.__wbg_stringify_e25465938f3f611f = function() {
777
+ imports.wbg.__wbg_stringify_eead5648c09faaf8 = function() {
755
778
  return handleError(function(arg0) {
756
779
  const ret = JSON.stringify(getObject(arg0));
757
780
  return addHeapObject(ret);
758
781
  }, arguments);
759
782
  };
783
+ imports.wbg.__wbg_has_bd717f25f195f23d = function() {
784
+ return handleError(function(arg0, arg1) {
785
+ const ret = Reflect.has(getObject(arg0), getObject(arg1));
786
+ return ret;
787
+ }, arguments);
788
+ };
760
789
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
761
790
  const ret = debugString(getObject(arg1));
762
791
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
763
792
  const len1 = WASM_VECTOR_LEN;
764
- getInt32Memory0()[arg0 / 4 + 1] = len1;
765
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
793
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
794
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
766
795
  };
767
796
  imports.wbg.__wbindgen_throw = function(arg0, arg1) {
768
797
  throw new Error(getStringFromWasm0(arg0, arg1));
@@ -771,33 +800,43 @@ function __wbg_get_imports() {
771
800
  const ret = wasm.memory;
772
801
  return addHeapObject(ret);
773
802
  };
774
- imports.wbg.__wbindgen_closure_wrapper12457 = function(arg0, arg1, arg2) {
775
- const ret = makeMutClosure(arg0, arg1, 4397, __wbg_adapter_26);
803
+ imports.wbg.__wbindgen_closure_wrapper12178 = function(arg0, arg1, arg2) {
804
+ const ret = makeMutClosure(arg0, arg1, 3919, __wbg_adapter_26);
776
805
  return addHeapObject(ret);
777
806
  };
778
807
  return imports;
779
808
  }
780
809
  __name(__wbg_get_imports, "__wbg_get_imports");
781
- function __wbg_init_memory(imports, maybe_memory) {
810
+ function __wbg_init_memory(imports, memory) {
782
811
  }
783
812
  __name(__wbg_init_memory, "__wbg_init_memory");
784
813
  function __wbg_finalize_init(instance, module2) {
785
814
  wasm = instance.exports;
786
815
  __wbg_init.__wbindgen_wasm_module = module2;
787
- cachedInt32Memory0 = null;
788
- cachedUint8Memory0 = null;
816
+ cachedDataViewMemory0 = null;
817
+ cachedUint8ArrayMemory0 = null;
789
818
  return wasm;
790
819
  }
791
820
  __name(__wbg_finalize_init, "__wbg_finalize_init");
792
- async function __wbg_init(input) {
821
+ async function __wbg_init(module_or_path) {
793
822
  if (wasm !== void 0)
794
823
  return wasm;
824
+ if (typeof module_or_path !== "undefined") {
825
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
826
+ ({ module_or_path } = module_or_path);
827
+ } else {
828
+ console.warn("using deprecated parameters for the initialization function; pass a single object instead");
829
+ }
830
+ }
831
+ if (typeof module_or_path === "undefined") {
832
+ module_or_path = new URL("didkit_wasm_bg.wasm", import.meta.url);
833
+ }
795
834
  const imports = __wbg_get_imports();
796
- if (typeof input === "string" || typeof Request === "function" && input instanceof Request || typeof URL === "function" && input instanceof URL) {
797
- input = fetch(input);
835
+ if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
836
+ module_or_path = fetch(module_or_path);
798
837
  }
799
838
  __wbg_init_memory(imports);
800
- const { instance, module: module2 } = await __wbg_load(await input, imports);
839
+ const { instance, module: module2 } = await __wbg_load(await module_or_path, imports);
801
840
  return __wbg_finalize_init(instance, module2);
802
841
  }
803
842
  __name(__wbg_init, "__wbg_init");
@@ -806,7 +845,7 @@ var didkit_wasm_default = __wbg_init;
806
845
  // src/didkit/index.ts
807
846
  var initialized = false;
808
847
  var generating = false;
809
- var init = /* @__PURE__ */ __name(async (arg = "https://cdn.filestackcontent.com/OSz89FZyTr6FIRUhZzKg") => {
848
+ var init = /* @__PURE__ */ __name(async (arg = "https://cdn.filestackcontent.com/A9HwVUqTVG04sEMFuABA") => {
810
849
  while (generating)
811
850
  await new Promise((res) => setTimeout(res, 250));
812
851
  if (initialized)