@contentauth/c2pa-wasm 0.4.2 → 0.4.3

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/pkg/c2pa.js CHANGED
@@ -1,47 +1,14 @@
1
1
  let wasm;
2
2
 
3
- let cachedUint8ArrayMemory0 = null;
4
-
5
- function getUint8ArrayMemory0() {
6
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
7
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
8
- }
9
- return cachedUint8ArrayMemory0;
10
- }
11
-
12
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
13
-
14
- cachedTextDecoder.decode();
15
-
16
- const MAX_SAFARI_DECODE_BYTES = 2146435072;
17
- let numBytesDecoded = 0;
18
- function decodeText(ptr, len) {
19
- numBytesDecoded += len;
20
- if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
21
- cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
22
- cachedTextDecoder.decode();
23
- numBytesDecoded = len;
24
- }
25
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
26
- }
27
-
28
- function getStringFromWasm0(ptr, len) {
29
- ptr = ptr >>> 0;
30
- return decodeText(ptr, len);
31
- }
32
-
33
- function isLikeNone(x) {
34
- return x === undefined || x === null;
3
+ function addToExternrefTable0(obj) {
4
+ const idx = wasm.__externref_table_alloc();
5
+ wasm.__wbindgen_externrefs.set(idx, obj);
6
+ return idx;
35
7
  }
36
8
 
37
- let cachedDataViewMemory0 = null;
38
-
39
- function getDataViewMemory0() {
40
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
41
- cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
42
- }
43
- return cachedDataViewMemory0;
44
- }
9
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
10
+ ? { register: () => {}, unregister: () => {} }
11
+ : new FinalizationRegistry(state => state.dtor(state.a, state.b));
45
12
 
46
13
  function debugString(val) {
47
14
  // primitive types
@@ -108,64 +75,30 @@ function debugString(val) {
108
75
  return className;
109
76
  }
110
77
 
111
- let WASM_VECTOR_LEN = 0;
112
-
113
- const cachedTextEncoder = new TextEncoder();
114
-
115
- if (!('encodeInto' in cachedTextEncoder)) {
116
- cachedTextEncoder.encodeInto = function (arg, view) {
117
- const buf = cachedTextEncoder.encode(arg);
118
- view.set(buf);
119
- return {
120
- read: arg.length,
121
- written: buf.length
122
- };
123
- }
78
+ function getArrayU8FromWasm0(ptr, len) {
79
+ ptr = ptr >>> 0;
80
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
124
81
  }
125
82
 
126
- function passStringToWasm0(arg, malloc, realloc) {
127
-
128
- if (realloc === undefined) {
129
- const buf = cachedTextEncoder.encode(arg);
130
- const ptr = malloc(buf.length, 1) >>> 0;
131
- getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
132
- WASM_VECTOR_LEN = buf.length;
133
- return ptr;
134
- }
135
-
136
- let len = arg.length;
137
- let ptr = malloc(len, 1) >>> 0;
138
-
139
- const mem = getUint8ArrayMemory0();
140
-
141
- let offset = 0;
142
-
143
- for (; offset < len; offset++) {
144
- const code = arg.charCodeAt(offset);
145
- if (code > 0x7F) break;
146
- mem[ptr + offset] = code;
147
- }
148
-
149
- if (offset !== len) {
150
- if (offset !== 0) {
151
- arg = arg.slice(offset);
152
- }
153
- ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
154
- const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
155
- const ret = cachedTextEncoder.encodeInto(arg, view);
156
-
157
- offset += ret.written;
158
- ptr = realloc(ptr, len, offset, 1) >>> 0;
83
+ let cachedDataViewMemory0 = null;
84
+ function getDataViewMemory0() {
85
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
86
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
159
87
  }
88
+ return cachedDataViewMemory0;
89
+ }
160
90
 
161
- WASM_VECTOR_LEN = offset;
162
- return ptr;
91
+ function getStringFromWasm0(ptr, len) {
92
+ ptr = ptr >>> 0;
93
+ return decodeText(ptr, len);
163
94
  }
164
95
 
165
- function addToExternrefTable0(obj) {
166
- const idx = wasm.__externref_table_alloc();
167
- wasm.__wbindgen_externrefs.set(idx, obj);
168
- return idx;
96
+ let cachedUint8ArrayMemory0 = null;
97
+ function getUint8ArrayMemory0() {
98
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
99
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
100
+ }
101
+ return cachedUint8ArrayMemory0;
169
102
  }
170
103
 
171
104
  function handleError(f, args) {
@@ -177,15 +110,10 @@ function handleError(f, args) {
177
110
  }
178
111
  }
179
112
 
180
- function getArrayU8FromWasm0(ptr, len) {
181
- ptr = ptr >>> 0;
182
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
113
+ function isLikeNone(x) {
114
+ return x === undefined || x === null;
183
115
  }
184
116
 
185
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
186
- ? { register: () => {}, unregister: () => {} }
187
- : new FinalizationRegistry(state => state.dtor(state.a, state.b));
188
-
189
117
  function makeMutClosure(arg0, arg1, dtor, f) {
190
118
  const state = { a: arg0, b: arg1, cnt: 1, dtor };
191
119
  const real = (...args) => {
@@ -214,41 +142,88 @@ function makeMutClosure(arg0, arg1, dtor, f) {
214
142
  return real;
215
143
  }
216
144
 
145
+ function passStringToWasm0(arg, malloc, realloc) {
146
+ if (realloc === undefined) {
147
+ const buf = cachedTextEncoder.encode(arg);
148
+ const ptr = malloc(buf.length, 1) >>> 0;
149
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
150
+ WASM_VECTOR_LEN = buf.length;
151
+ return ptr;
152
+ }
153
+
154
+ let len = arg.length;
155
+ let ptr = malloc(len, 1) >>> 0;
156
+
157
+ const mem = getUint8ArrayMemory0();
158
+
159
+ let offset = 0;
160
+
161
+ for (; offset < len; offset++) {
162
+ const code = arg.charCodeAt(offset);
163
+ if (code > 0x7F) break;
164
+ mem[ptr + offset] = code;
165
+ }
166
+ if (offset !== len) {
167
+ if (offset !== 0) {
168
+ arg = arg.slice(offset);
169
+ }
170
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
171
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
172
+ const ret = cachedTextEncoder.encodeInto(arg, view);
173
+
174
+ offset += ret.written;
175
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
176
+ }
177
+
178
+ WASM_VECTOR_LEN = offset;
179
+ return ptr;
180
+ }
181
+
217
182
  function takeFromExternrefTable0(idx) {
218
183
  const value = wasm.__wbindgen_externrefs.get(idx);
219
184
  wasm.__externref_table_dealloc(idx);
220
185
  return value;
221
186
  }
222
- /**
223
- * Called when the WASM binary is initialized.
224
- */
225
- export function run() {
226
- wasm.run();
187
+
188
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
189
+ cachedTextDecoder.decode();
190
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
191
+ let numBytesDecoded = 0;
192
+ function decodeText(ptr, len) {
193
+ numBytesDecoded += len;
194
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
195
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
196
+ cachedTextDecoder.decode();
197
+ numBytesDecoded = len;
198
+ }
199
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
227
200
  }
228
201
 
229
- /**
230
- * Accepts a JSON-serialized string to be loaded as c2pa-rs settings.
231
- * @param {string} settings
232
- */
233
- export function loadSettings(settings) {
234
- const ptr0 = passStringToWasm0(settings, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
235
- const len0 = WASM_VECTOR_LEN;
236
- const ret = wasm.loadSettings(ptr0, len0);
237
- if (ret[1]) {
238
- throw takeFromExternrefTable0(ret[0]);
202
+ const cachedTextEncoder = new TextEncoder();
203
+
204
+ if (!('encodeInto' in cachedTextEncoder)) {
205
+ cachedTextEncoder.encodeInto = function (arg, view) {
206
+ const buf = cachedTextEncoder.encode(arg);
207
+ view.set(buf);
208
+ return {
209
+ read: arg.length,
210
+ written: buf.length
211
+ };
239
212
  }
240
213
  }
241
214
 
242
- function wasm_bindgen__convert__closures_____invoke__hedbe22ff1e6181ec(arg0, arg1, arg2) {
243
- wasm.wasm_bindgen__convert__closures_____invoke__hedbe22ff1e6181ec(arg0, arg1, arg2);
215
+ let WASM_VECTOR_LEN = 0;
216
+
217
+ function wasm_bindgen__convert__closures_____invoke__hbb62da5b17229099(arg0, arg1) {
218
+ wasm.wasm_bindgen__convert__closures_____invoke__hbb62da5b17229099(arg0, arg1);
244
219
  }
245
220
 
246
- function wasm_bindgen__convert__closures_____invoke__hbb73f02d9cb5eeb0(arg0, arg1) {
247
- wasm.wasm_bindgen__convert__closures_____invoke__hbb73f02d9cb5eeb0(arg0, arg1);
221
+ function wasm_bindgen__convert__closures_____invoke__h6e57fd9fec4e535c(arg0, arg1, arg2) {
222
+ wasm.wasm_bindgen__convert__closures_____invoke__h6e57fd9fec4e535c(arg0, arg1, arg2);
248
223
  }
249
224
 
250
- function wasm_bindgen__convert__closures_____invoke__h1fd2c9ff95892b8d(arg0, arg1, arg2, arg3) {
251
- wasm.wasm_bindgen__convert__closures_____invoke__h1fd2c9ff95892b8d(arg0, arg1, arg2, arg3);
225
+ function wasm_bindgen__convert__closures_____invoke__ha15b80997070ee79(arg0, arg1, arg2, arg3) {
226
+ wasm.wasm_bindgen__convert__closures_____invoke__ha15b80997070ee79(arg0, arg1, arg2, arg3);
252
227
  }
253
228
 
254
229
  const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
@@ -260,11 +235,19 @@ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate
260
235
  const WasmBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
261
236
  ? { register: () => {}, unregister: () => {} }
262
237
  : new FinalizationRegistry(ptr => wasm.__wbg_wasmbuilder_free(ptr >>> 0, 1));
238
+
239
+ const WasmReaderFinalization = (typeof FinalizationRegistry === 'undefined')
240
+ ? { register: () => {}, unregister: () => {} }
241
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmreader_free(ptr >>> 0, 1));
242
+
243
+ const WasmSignerFinalization = (typeof FinalizationRegistry === 'undefined')
244
+ ? { register: () => {}, unregister: () => {} }
245
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmsigner_free(ptr >>> 0, 1));
246
+
263
247
  /**
264
248
  * Wraps a `c2pa::Builder`.
265
249
  */
266
250
  export class WasmBuilder {
267
-
268
251
  static __wrap(ptr) {
269
252
  ptr = ptr >>> 0;
270
253
  const obj = Object.create(WasmBuilder.prototype);
@@ -272,14 +255,12 @@ export class WasmBuilder {
272
255
  WasmBuilderFinalization.register(obj, obj.__wbg_ptr, obj);
273
256
  return obj;
274
257
  }
275
-
276
258
  __destroy_into_raw() {
277
259
  const ptr = this.__wbg_ptr;
278
260
  this.__wbg_ptr = 0;
279
261
  WasmBuilderFinalization.unregister(this);
280
262
  return ptr;
281
263
  }
282
-
283
264
  free() {
284
265
  const ptr = this.__destroy_into_raw();
285
266
  wasm.__wbg_wasmbuilder_free(ptr, 0);
@@ -317,11 +298,15 @@ export class WasmBuilder {
317
298
  }
318
299
  /**
319
300
  * Attempts to create a new `WasmBuilder` from a builder archive.
301
+ * Optionally accepts a context JSON string to configure the builder.
320
302
  * @param {Blob} archive
303
+ * @param {string | null} [_context_json]
321
304
  * @returns {WasmBuilder}
322
305
  */
323
- static fromArchive(archive) {
324
- const ret = wasm.wasmbuilder_fromArchive(archive);
306
+ static fromArchive(archive, _context_json) {
307
+ var ptr0 = isLikeNone(_context_json) ? 0 : passStringToWasm0(_context_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
308
+ var len0 = WASM_VECTOR_LEN;
309
+ const ret = wasm.wasmbuilder_fromArchive(archive, ptr0, len0);
325
310
  if (ret[2]) {
326
311
  throw takeFromExternrefTable0(ret[1]);
327
312
  }
@@ -435,10 +420,14 @@ export class WasmBuilder {
435
420
  }
436
421
  /**
437
422
  * Creates a new `WasmBuilder` with a minimal manifest definition.
423
+ * Optionally accepts a context JSON string to configure the builder.
424
+ * @param {string | null} [context_json]
438
425
  * @returns {WasmBuilder}
439
426
  */
440
- static new() {
441
- const ret = wasm.wasmbuilder_new();
427
+ static new(context_json) {
428
+ var ptr0 = isLikeNone(context_json) ? 0 : passStringToWasm0(context_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
429
+ var len0 = WASM_VECTOR_LEN;
430
+ const ret = wasm.wasmbuilder_new(ptr0, len0);
442
431
  if (ret[2]) {
443
432
  throw takeFromExternrefTable0(ret[1]);
444
433
  }
@@ -459,13 +448,17 @@ export class WasmBuilder {
459
448
  }
460
449
  /**
461
450
  * Attempts to create a new `WasmBuilder` from a JSON ManifestDefinition string.
451
+ * Optionally accepts a context JSON string to configure the builder.
462
452
  * @param {string} json
453
+ * @param {string | null} [context_json]
463
454
  * @returns {WasmBuilder}
464
455
  */
465
- static fromJson(json) {
456
+ static fromJson(json, context_json) {
466
457
  const ptr0 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
467
458
  const len0 = WASM_VECTOR_LEN;
468
- const ret = wasm.wasmbuilder_fromJson(ptr0, len0);
459
+ var ptr1 = isLikeNone(context_json) ? 0 : passStringToWasm0(context_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
460
+ var len1 = WASM_VECTOR_LEN;
461
+ const ret = wasm.wasmbuilder_fromJson(ptr0, len0, ptr1, len1);
469
462
  if (ret[2]) {
470
463
  throw takeFromExternrefTable0(ret[1]);
471
464
  }
@@ -474,14 +467,10 @@ export class WasmBuilder {
474
467
  }
475
468
  if (Symbol.dispose) WasmBuilder.prototype[Symbol.dispose] = WasmBuilder.prototype.free;
476
469
 
477
- const WasmReaderFinalization = (typeof FinalizationRegistry === 'undefined')
478
- ? { register: () => {}, unregister: () => {} }
479
- : new FinalizationRegistry(ptr => wasm.__wbg_wasmreader_free(ptr >>> 0, 1));
480
470
  /**
481
471
  * Wraps a `c2pa::Reader`.
482
472
  */
483
473
  export class WasmReader {
484
-
485
474
  static __wrap(ptr) {
486
475
  ptr = ptr >>> 0;
487
476
  const obj = Object.create(WasmReader.prototype);
@@ -489,14 +478,12 @@ export class WasmReader {
489
478
  WasmReaderFinalization.register(obj, obj.__wbg_ptr, obj);
490
479
  return obj;
491
480
  }
492
-
493
481
  __destroy_into_raw() {
494
482
  const ptr = this.__wbg_ptr;
495
483
  this.__wbg_ptr = 0;
496
484
  WasmReaderFinalization.unregister(this);
497
485
  return ptr;
498
486
  }
499
-
500
487
  free() {
501
488
  const ptr = this.__destroy_into_raw();
502
489
  wasm.__wbg_wasmreader_free(ptr, 0);
@@ -552,15 +539,19 @@ export class WasmReader {
552
539
  }
553
540
  /**
554
541
  * Attempts to create a new `WasmReader` from an asset format, a `Blob` of the bytes of the initial segment, and a fragment `Blob`.
542
+ * Optionally accepts a context JSON string to configure the reader.
555
543
  * @param {string} format
556
544
  * @param {Blob} init
557
545
  * @param {Blob} fragment
546
+ * @param {string | null} [context_json]
558
547
  * @returns {Promise<WasmReader>}
559
548
  */
560
- static fromBlobFragment(format, init, fragment) {
549
+ static fromBlobFragment(format, init, fragment, context_json) {
561
550
  const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
562
551
  const len0 = WASM_VECTOR_LEN;
563
- const ret = wasm.wasmreader_fromBlobFragment(ptr0, len0, init, fragment);
552
+ var ptr1 = isLikeNone(context_json) ? 0 : passStringToWasm0(context_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
553
+ var len1 = WASM_VECTOR_LEN;
554
+ const ret = wasm.wasmreader_fromBlobFragment(ptr0, len0, init, fragment, ptr1, len1);
564
555
  return ret;
565
556
  }
566
557
  /**
@@ -581,25 +572,24 @@ export class WasmReader {
581
572
  }
582
573
  /**
583
574
  * Attempts to create a new `WasmReader` from an asset format and `Blob` of the asset's bytes.
575
+ * Optionally accepts a context JSON string to configure the reader.
584
576
  * @param {string} format
585
577
  * @param {Blob} blob
578
+ * @param {string | null} [context_json]
586
579
  * @returns {Promise<WasmReader>}
587
580
  */
588
- static fromBlob(format, blob) {
581
+ static fromBlob(format, blob, context_json) {
589
582
  const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
590
583
  const len0 = WASM_VECTOR_LEN;
591
- const ret = wasm.wasmreader_fromBlob(ptr0, len0, blob);
584
+ var ptr1 = isLikeNone(context_json) ? 0 : passStringToWasm0(context_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
585
+ var len1 = WASM_VECTOR_LEN;
586
+ const ret = wasm.wasmreader_fromBlob(ptr0, len0, blob, ptr1, len1);
592
587
  return ret;
593
588
  }
594
589
  }
595
590
  if (Symbol.dispose) WasmReader.prototype[Symbol.dispose] = WasmReader.prototype.free;
596
591
 
597
- const WasmSignerFinalization = (typeof FinalizationRegistry === 'undefined')
598
- ? { register: () => {}, unregister: () => {} }
599
- : new FinalizationRegistry(ptr => wasm.__wbg_wasmsigner_free(ptr >>> 0, 1));
600
-
601
592
  export class WasmSigner {
602
-
603
593
  static __wrap(ptr) {
604
594
  ptr = ptr >>> 0;
605
595
  const obj = Object.create(WasmSigner.prototype);
@@ -607,14 +597,12 @@ export class WasmSigner {
607
597
  WasmSignerFinalization.register(obj, obj.__wbg_ptr, obj);
608
598
  return obj;
609
599
  }
610
-
611
600
  __destroy_into_raw() {
612
601
  const ptr = this.__wbg_ptr;
613
602
  this.__wbg_ptr = 0;
614
603
  WasmSignerFinalization.unregister(this);
615
604
  return ptr;
616
605
  }
617
-
618
606
  free() {
619
607
  const ptr = this.__destroy_into_raw();
620
608
  wasm.__wbg_wasmsigner_free(ptr, 0);
@@ -634,6 +622,26 @@ export class WasmSigner {
634
622
  }
635
623
  if (Symbol.dispose) WasmSigner.prototype[Symbol.dispose] = WasmSigner.prototype.free;
636
624
 
625
+ /**
626
+ * Accepts a JSON-serialized string to be loaded as c2pa-rs settings.
627
+ * @param {string} settings
628
+ */
629
+ export function loadSettings(settings) {
630
+ const ptr0 = passStringToWasm0(settings, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
631
+ const len0 = WASM_VECTOR_LEN;
632
+ const ret = wasm.loadSettings(ptr0, len0);
633
+ if (ret[1]) {
634
+ throw takeFromExternrefTable0(ret[0]);
635
+ }
636
+ }
637
+
638
+ /**
639
+ * Called when the WASM binary is initialized.
640
+ */
641
+ export function run() {
642
+ wasm.run();
643
+ }
644
+
637
645
  const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
638
646
 
639
647
  async function __wbg_load(module, imports) {
@@ -641,7 +649,6 @@ async function __wbg_load(module, imports) {
641
649
  if (typeof WebAssembly.instantiateStreaming === 'function') {
642
650
  try {
643
651
  return await WebAssembly.instantiateStreaming(module, imports);
644
-
645
652
  } catch (e) {
646
653
  const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
647
654
 
@@ -656,13 +663,11 @@ async function __wbg_load(module, imports) {
656
663
 
657
664
  const bytes = await module.arrayBuffer();
658
665
  return await WebAssembly.instantiate(bytes, imports);
659
-
660
666
  } else {
661
667
  const instance = await WebAssembly.instantiate(module, imports);
662
668
 
663
669
  if (instance instanceof WebAssembly.Instance) {
664
670
  return { instance, module };
665
-
666
671
  } else {
667
672
  return instance;
668
673
  }
@@ -672,72 +677,72 @@ async function __wbg_load(module, imports) {
672
677
  function __wbg_get_imports() {
673
678
  const imports = {};
674
679
  imports.wbg = {};
675
- imports.wbg.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
680
+ imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
676
681
  const ret = Error(getStringFromWasm0(arg0, arg1));
677
682
  return ret;
678
683
  };
679
- imports.wbg.__wbg_Number_bb48ca12f395cd08 = function(arg0) {
684
+ imports.wbg.__wbg_Number_2d1dcfcf4ec51736 = function(arg0) {
680
685
  const ret = Number(arg0);
681
686
  return ret;
682
687
  };
683
- imports.wbg.__wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd = function(arg0, arg1) {
688
+ imports.wbg.__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d = function(arg0, arg1) {
684
689
  const v = arg1;
685
690
  const ret = typeof(v) === 'bigint' ? v : undefined;
686
691
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
687
692
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
688
693
  };
689
- imports.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
694
+ imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
690
695
  const v = arg0;
691
696
  const ret = typeof(v) === 'boolean' ? v : undefined;
692
697
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
693
698
  };
694
- imports.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
699
+ imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
695
700
  const ret = debugString(arg1);
696
701
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
697
702
  const len1 = WASM_VECTOR_LEN;
698
703
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
699
704
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
700
705
  };
701
- imports.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f = function(arg0, arg1) {
706
+ imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
702
707
  const ret = arg0 in arg1;
703
708
  return ret;
704
709
  };
705
- imports.wbg.__wbg___wbindgen_is_bigint_cb320707dcd35f0b = function(arg0) {
710
+ imports.wbg.__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27 = function(arg0) {
706
711
  const ret = typeof(arg0) === 'bigint';
707
712
  return ret;
708
713
  };
709
- imports.wbg.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
714
+ imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
710
715
  const ret = typeof(arg0) === 'function';
711
716
  return ret;
712
717
  };
713
- imports.wbg.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
718
+ imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
714
719
  const val = arg0;
715
720
  const ret = typeof(val) === 'object' && val !== null;
716
721
  return ret;
717
722
  };
718
- imports.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
723
+ imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
719
724
  const ret = typeof(arg0) === 'string';
720
725
  return ret;
721
726
  };
722
- imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
727
+ imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
723
728
  const ret = arg0 === undefined;
724
729
  return ret;
725
730
  };
726
- imports.wbg.__wbg___wbindgen_jsval_eq_6b13ab83478b1c50 = function(arg0, arg1) {
731
+ imports.wbg.__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36 = function(arg0, arg1) {
727
732
  const ret = arg0 === arg1;
728
733
  return ret;
729
734
  };
730
- imports.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
735
+ imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
731
736
  const ret = arg0 == arg1;
732
737
  return ret;
733
738
  };
734
- imports.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
739
+ imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
735
740
  const obj = arg1;
736
741
  const ret = typeof(obj) === 'number' ? obj : undefined;
737
742
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
738
743
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
739
744
  };
740
- imports.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
745
+ imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
741
746
  const obj = arg1;
742
747
  const ret = typeof(obj) === 'string' ? obj : undefined;
743
748
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -745,34 +750,34 @@ function __wbg_get_imports() {
745
750
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
746
751
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
747
752
  };
748
- imports.wbg.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
753
+ imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
749
754
  throw new Error(getStringFromWasm0(arg0, arg1));
750
755
  };
751
- imports.wbg.__wbg__wbg_cb_unref_2454a539ea5790d9 = function(arg0) {
756
+ imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
752
757
  arg0._wbg_cb_unref();
753
758
  };
754
- imports.wbg.__wbg_abort_28ad55c5825b004d = function(arg0, arg1) {
755
- arg0.abort(arg1);
756
- };
757
- imports.wbg.__wbg_abort_e7eb059f72f9ed0c = function(arg0) {
759
+ imports.wbg.__wbg_abort_07646c894ebbf2bd = function(arg0) {
758
760
  arg0.abort();
759
761
  };
760
- imports.wbg.__wbg_append_b577eb3a177bc0fa = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
762
+ imports.wbg.__wbg_abort_399ecbcfd6ef3c8e = function(arg0, arg1) {
763
+ arg0.abort(arg1);
764
+ };
765
+ imports.wbg.__wbg_append_c5cbdf46455cc776 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
761
766
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
762
767
  }, arguments) };
763
- imports.wbg.__wbg_arrayBuffer_b375eccb84b4ddf3 = function() { return handleError(function (arg0) {
768
+ imports.wbg.__wbg_arrayBuffer_c04af4fce566092d = function() { return handleError(function (arg0) {
764
769
  const ret = arg0.arrayBuffer();
765
770
  return ret;
766
771
  }, arguments) };
767
- imports.wbg.__wbg_byteLength_bcd42e4025299788 = function(arg0) {
772
+ imports.wbg.__wbg_byteLength_faa9938885bdeee6 = function(arg0) {
768
773
  const ret = arg0.byteLength;
769
774
  return ret;
770
775
  };
771
- imports.wbg.__wbg_call_525440f72fbfc0ea = function() { return handleError(function (arg0, arg1, arg2) {
776
+ imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
772
777
  const ret = arg0.call(arg1, arg2);
773
778
  return ret;
774
779
  }, arguments) };
775
- imports.wbg.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (arg0, arg1) {
780
+ imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
776
781
  const ret = arg0.call(arg1);
777
782
  return ret;
778
783
  }, arguments) };
@@ -784,11 +789,11 @@ function __wbg_get_imports() {
784
789
  const ret = arg0.crypto;
785
790
  return ret;
786
791
  };
787
- imports.wbg.__wbg_done_2042aa2670fb1db1 = function(arg0) {
792
+ imports.wbg.__wbg_done_62ea16af4ce34b24 = function(arg0) {
788
793
  const ret = arg0.done;
789
794
  return ret;
790
795
  };
791
- imports.wbg.__wbg_entries_e171b586f8f6bdbf = function(arg0) {
796
+ imports.wbg.__wbg_entries_83c79938054e065f = function(arg0) {
792
797
  const ret = Object.entries(arg0);
793
798
  return ret;
794
799
  };
@@ -807,29 +812,32 @@ function __wbg_get_imports() {
807
812
  const ret = fetch(arg0);
808
813
  return ret;
809
814
  };
810
- imports.wbg.__wbg_fetch_f8ba0e29a9d6de0d = function(arg0, arg1) {
815
+ imports.wbg.__wbg_fetch_90447c28cc0b095e = function(arg0, arg1) {
811
816
  const ret = arg0.fetch(arg1);
812
817
  return ret;
813
818
  };
814
- imports.wbg.__wbg_from_a4ad7cbddd0d7135 = function(arg0) {
819
+ imports.wbg.__wbg_from_29a8414a7a7cd19d = function(arg0) {
815
820
  const ret = Array.from(arg0);
816
821
  return ret;
817
822
  };
823
+ imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
824
+ globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
825
+ }, arguments) };
818
826
  imports.wbg.__wbg_getRandomValues_38a1ff1ea09f6cc7 = function() { return handleError(function (arg0, arg1) {
819
827
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
820
828
  }, arguments) };
821
829
  imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
822
830
  arg0.getRandomValues(arg1);
823
831
  }, arguments) };
824
- imports.wbg.__wbg_getTime_14776bfb48a1bff9 = function(arg0) {
832
+ imports.wbg.__wbg_getTime_ad1e9878a735af08 = function(arg0) {
825
833
  const ret = arg0.getTime();
826
834
  return ret;
827
835
  };
828
- imports.wbg.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
836
+ imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
829
837
  const ret = arg0[arg1 >>> 0];
830
838
  return ret;
831
839
  };
832
- imports.wbg.__wbg_get_efcb449f58ec27c2 = function() { return handleError(function (arg0, arg1) {
840
+ imports.wbg.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
833
841
  const ret = Reflect.get(arg0, arg1);
834
842
  return ret;
835
843
  }, arguments) };
@@ -837,15 +845,15 @@ function __wbg_get_imports() {
837
845
  const ret = arg0[arg1];
838
846
  return ret;
839
847
  };
840
- imports.wbg.__wbg_has_787fafc980c3ccdb = function() { return handleError(function (arg0, arg1) {
848
+ imports.wbg.__wbg_has_0e670569d65d3a45 = function() { return handleError(function (arg0, arg1) {
841
849
  const ret = Reflect.has(arg0, arg1);
842
850
  return ret;
843
851
  }, arguments) };
844
- imports.wbg.__wbg_headers_b87d7eaba61c3278 = function(arg0) {
852
+ imports.wbg.__wbg_headers_654c30e1bcccc552 = function(arg0) {
845
853
  const ret = arg0.headers;
846
854
  return ret;
847
855
  };
848
- imports.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
856
+ imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
849
857
  let result;
850
858
  try {
851
859
  result = arg0 instanceof ArrayBuffer;
@@ -855,7 +863,7 @@ function __wbg_get_imports() {
855
863
  const ret = result;
856
864
  return ret;
857
865
  };
858
- imports.wbg.__wbg_instanceof_Map_8579b5e2ab5437c7 = function(arg0) {
866
+ imports.wbg.__wbg_instanceof_Map_084be8da74364158 = function(arg0) {
859
867
  let result;
860
868
  try {
861
869
  result = arg0 instanceof Map;
@@ -865,7 +873,7 @@ function __wbg_get_imports() {
865
873
  const ret = result;
866
874
  return ret;
867
875
  };
868
- imports.wbg.__wbg_instanceof_Promise_001fdd42afa1b7ef = function(arg0) {
876
+ imports.wbg.__wbg_instanceof_Promise_eca6c43a2610558d = function(arg0) {
869
877
  let result;
870
878
  try {
871
879
  result = arg0 instanceof Promise;
@@ -875,7 +883,7 @@ function __wbg_get_imports() {
875
883
  const ret = result;
876
884
  return ret;
877
885
  };
878
- imports.wbg.__wbg_instanceof_Response_f4f3e87e07f3135c = function(arg0) {
886
+ imports.wbg.__wbg_instanceof_Response_cd74d1c2ac92cb0b = function(arg0) {
879
887
  let result;
880
888
  try {
881
889
  result = arg0 instanceof Response;
@@ -885,7 +893,7 @@ function __wbg_get_imports() {
885
893
  const ret = result;
886
894
  return ret;
887
895
  };
888
- imports.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
896
+ imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
889
897
  let result;
890
898
  try {
891
899
  result = arg0 instanceof Uint8Array;
@@ -895,23 +903,23 @@ function __wbg_get_imports() {
895
903
  const ret = result;
896
904
  return ret;
897
905
  };
898
- imports.wbg.__wbg_isArray_96e0af9891d0945d = function(arg0) {
906
+ imports.wbg.__wbg_isArray_51fd9e6422c0a395 = function(arg0) {
899
907
  const ret = Array.isArray(arg0);
900
908
  return ret;
901
909
  };
902
- imports.wbg.__wbg_isSafeInteger_d216eda7911dde36 = function(arg0) {
910
+ imports.wbg.__wbg_isSafeInteger_ae7d3f054d55fa16 = function(arg0) {
903
911
  const ret = Number.isSafeInteger(arg0);
904
912
  return ret;
905
913
  };
906
- imports.wbg.__wbg_iterator_e5822695327a3c39 = function() {
914
+ imports.wbg.__wbg_iterator_27b7c8b35ab3e86b = function() {
907
915
  const ret = Symbol.iterator;
908
916
  return ret;
909
917
  };
910
- imports.wbg.__wbg_length_69bca3cb64fc8748 = function(arg0) {
918
+ imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
911
919
  const ret = arg0.length;
912
920
  return ret;
913
921
  };
914
- imports.wbg.__wbg_length_cdd215e10d9dd507 = function(arg0) {
922
+ imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
915
923
  const ret = arg0.length;
916
924
  return ret;
917
925
  };
@@ -919,30 +927,54 @@ function __wbg_get_imports() {
919
927
  const ret = arg0.msCrypto;
920
928
  return ret;
921
929
  };
922
- imports.wbg.__wbg_new_0_f9740686d739025c = function() {
930
+ imports.wbg.__wbg_new_0_23cedd11d9b40c9d = function() {
923
931
  const ret = new Date();
924
932
  return ret;
925
933
  };
926
- imports.wbg.__wbg_new_0d96c0bf6ceac0b0 = function() { return handleError(function () {
927
- const ret = new FileReaderSync();
934
+ imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
935
+ const ret = new Object();
936
+ return ret;
937
+ };
938
+ imports.wbg.__wbg_new_25f239778d6112b9 = function() {
939
+ const ret = new Array();
940
+ return ret;
941
+ };
942
+ imports.wbg.__wbg_new_3c79b3bb1b32b7d3 = function() { return handleError(function () {
943
+ const ret = new Headers();
928
944
  return ret;
929
945
  }, arguments) };
930
- imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
931
- const ret = new Object();
946
+ imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
947
+ const ret = new Uint8Array(arg0);
932
948
  return ret;
933
949
  };
934
- imports.wbg.__wbg_new_2531773dac38ebb3 = function() { return handleError(function () {
950
+ imports.wbg.__wbg_new_881a222c65f168fc = function() { return handleError(function () {
935
951
  const ret = new AbortController();
936
952
  return ret;
937
953
  }, arguments) };
938
- imports.wbg.__wbg_new_3c3d849046688a66 = function(arg0, arg1) {
954
+ imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
955
+ const ret = new Error();
956
+ return ret;
957
+ };
958
+ imports.wbg.__wbg_new_b546ae120718850e = function() {
959
+ const ret = new Map();
960
+ return ret;
961
+ };
962
+ imports.wbg.__wbg_new_bd4ee84941f474fa = function() { return handleError(function () {
963
+ const ret = new FileReaderSync();
964
+ return ret;
965
+ }, arguments) };
966
+ imports.wbg.__wbg_new_df1173567d5ff028 = function(arg0, arg1) {
967
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
968
+ return ret;
969
+ };
970
+ imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) {
939
971
  try {
940
972
  var state0 = {a: arg0, b: arg1};
941
973
  var cb0 = (arg0, arg1) => {
942
974
  const a = state0.a;
943
975
  state0.a = 0;
944
976
  try {
945
- return wasm_bindgen__convert__closures_____invoke__h1fd2c9ff95892b8d(a, state0.b, arg0, arg1);
977
+ return wasm_bindgen__convert__closures_____invoke__ha15b80997070ee79(a, state0.b, arg0, arg1);
946
978
  } finally {
947
979
  state0.a = a;
948
980
  }
@@ -953,59 +985,35 @@ function __wbg_get_imports() {
953
985
  state0.a = state0.b = 0;
954
986
  }
955
987
  };
956
- imports.wbg.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
957
- const ret = new Uint8Array(arg0);
958
- return ret;
959
- };
960
- imports.wbg.__wbg_new_68651c719dcda04e = function() {
961
- const ret = new Map();
962
- return ret;
963
- };
964
- imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
965
- const ret = new Error();
966
- return ret;
967
- };
968
- imports.wbg.__wbg_new_9edf9838a2def39c = function() { return handleError(function () {
969
- const ret = new Headers();
970
- return ret;
971
- }, arguments) };
972
- imports.wbg.__wbg_new_a7442b4b19c1a356 = function(arg0, arg1) {
973
- const ret = new Error(getStringFromWasm0(arg0, arg1));
974
- return ret;
975
- };
976
- imports.wbg.__wbg_new_e17d9f43105b08be = function() {
977
- const ret = new Array();
978
- return ret;
979
- };
980
- imports.wbg.__wbg_new_from_slice_92f4d78ca282a2d2 = function(arg0, arg1) {
988
+ imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
981
989
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
982
990
  return ret;
983
991
  };
984
- imports.wbg.__wbg_new_no_args_ee98eee5275000a4 = function(arg0, arg1) {
992
+ imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
985
993
  const ret = new Function(getStringFromWasm0(arg0, arg1));
986
994
  return ret;
987
995
  };
988
- imports.wbg.__wbg_new_with_length_01aa0dc35aa13543 = function(arg0) {
996
+ imports.wbg.__wbg_new_with_length_aa5eaf41d35235e5 = function(arg0) {
989
997
  const ret = new Uint8Array(arg0 >>> 0);
990
998
  return ret;
991
999
  };
992
- imports.wbg.__wbg_new_with_str_and_init_0ae7728b6ec367b1 = function() { return handleError(function (arg0, arg1, arg2) {
1000
+ imports.wbg.__wbg_new_with_str_and_init_c5748f76f5108934 = function() { return handleError(function (arg0, arg1, arg2) {
993
1001
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
994
1002
  return ret;
995
1003
  }, arguments) };
996
- imports.wbg.__wbg_next_020810e0ae8ebcb0 = function() { return handleError(function (arg0) {
997
- const ret = arg0.next();
998
- return ret;
999
- }, arguments) };
1000
- imports.wbg.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
1004
+ imports.wbg.__wbg_next_138a17bbf04e926c = function(arg0) {
1001
1005
  const ret = arg0.next;
1002
1006
  return ret;
1003
1007
  };
1008
+ imports.wbg.__wbg_next_3cfe5c0fe2a4cc53 = function() { return handleError(function (arg0) {
1009
+ const ret = arg0.next();
1010
+ return ret;
1011
+ }, arguments) };
1004
1012
  imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
1005
1013
  const ret = arg0.node;
1006
1014
  return ret;
1007
1015
  };
1008
- imports.wbg.__wbg_now_793306c526e2e3b6 = function() {
1016
+ imports.wbg.__wbg_now_69d776cd24f5215b = function() {
1009
1017
  const ret = Date.now();
1010
1018
  return ret;
1011
1019
  };
@@ -1013,20 +1021,20 @@ function __wbg_get_imports() {
1013
1021
  const ret = arg0.process;
1014
1022
  return ret;
1015
1023
  };
1016
- imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
1024
+ imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
1017
1025
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1018
1026
  };
1019
- imports.wbg.__wbg_queueMicrotask_34d692c25c47d05b = function(arg0) {
1027
+ imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
1020
1028
  const ret = arg0.queueMicrotask;
1021
1029
  return ret;
1022
1030
  };
1023
- imports.wbg.__wbg_queueMicrotask_9d76cacb20c84d58 = function(arg0) {
1031
+ imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
1024
1032
  queueMicrotask(arg0);
1025
1033
  };
1026
1034
  imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
1027
1035
  arg0.randomFillSync(arg1);
1028
1036
  }, arguments) };
1029
- imports.wbg.__wbg_readAsArrayBuffer_36927e3348e676c3 = function() { return handleError(function (arg0, arg1) {
1037
+ imports.wbg.__wbg_readAsArrayBuffer_5a7ad12aa99daa2f = function() { return handleError(function (arg0, arg1) {
1030
1038
  const ret = arg0.readAsArrayBuffer(arg1);
1031
1039
  return ret;
1032
1040
  }, arguments) };
@@ -1034,7 +1042,7 @@ function __wbg_get_imports() {
1034
1042
  const ret = module.require;
1035
1043
  return ret;
1036
1044
  }, arguments) };
1037
- imports.wbg.__wbg_resolve_caf97c30b83f7053 = function(arg0) {
1045
+ imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
1038
1046
  const ret = Promise.resolve(arg0);
1039
1047
  return ret;
1040
1048
  };
@@ -1042,49 +1050,49 @@ function __wbg_get_imports() {
1042
1050
  const ret = setTimeout(arg0, arg1);
1043
1051
  return ret;
1044
1052
  };
1053
+ imports.wbg.__wbg_set_169e13b608078b7b = function(arg0, arg1, arg2) {
1054
+ arg0.set(getArrayU8FromWasm0(arg1, arg2));
1055
+ };
1045
1056
  imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
1046
1057
  arg0[arg1] = arg2;
1047
1058
  };
1048
- imports.wbg.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
1049
- const ret = arg0.set(arg1, arg2);
1050
- return ret;
1051
- };
1052
- imports.wbg.__wbg_set_9e6516df7b7d0f19 = function(arg0, arg1, arg2) {
1053
- arg0.set(getArrayU8FromWasm0(arg1, arg2));
1059
+ imports.wbg.__wbg_set_7df433eea03a5c14 = function(arg0, arg1, arg2) {
1060
+ arg0[arg1 >>> 0] = arg2;
1054
1061
  };
1055
- imports.wbg.__wbg_set_body_3c365989753d61f4 = function(arg0, arg1) {
1062
+ imports.wbg.__wbg_set_body_8e743242d6076a4f = function(arg0, arg1) {
1056
1063
  arg0.body = arg1;
1057
1064
  };
1058
- imports.wbg.__wbg_set_c213c871859d6500 = function(arg0, arg1, arg2) {
1059
- arg0[arg1 >>> 0] = arg2;
1060
- };
1061
- imports.wbg.__wbg_set_cache_2f9deb19b92b81e3 = function(arg0, arg1) {
1065
+ imports.wbg.__wbg_set_cache_0e437c7c8e838b9b = function(arg0, arg1) {
1062
1066
  arg0.cache = __wbindgen_enum_RequestCache[arg1];
1063
1067
  };
1064
- imports.wbg.__wbg_set_credentials_f621cd2d85c0c228 = function(arg0, arg1) {
1068
+ imports.wbg.__wbg_set_credentials_55ae7c3c106fd5be = function(arg0, arg1) {
1065
1069
  arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
1066
1070
  };
1067
- imports.wbg.__wbg_set_headers_6926da238cd32ee4 = function(arg0, arg1) {
1071
+ imports.wbg.__wbg_set_efaaf145b9377369 = function(arg0, arg1, arg2) {
1072
+ const ret = arg0.set(arg1, arg2);
1073
+ return ret;
1074
+ };
1075
+ imports.wbg.__wbg_set_headers_5671cf088e114d2b = function(arg0, arg1) {
1068
1076
  arg0.headers = arg1;
1069
1077
  };
1070
- imports.wbg.__wbg_set_method_c02d8cbbe204ac2d = function(arg0, arg1, arg2) {
1078
+ imports.wbg.__wbg_set_method_76c69e41b3570627 = function(arg0, arg1, arg2) {
1071
1079
  arg0.method = getStringFromWasm0(arg1, arg2);
1072
1080
  };
1073
- imports.wbg.__wbg_set_mode_52ef73cfa79639cb = function(arg0, arg1) {
1081
+ imports.wbg.__wbg_set_mode_611016a6818fc690 = function(arg0, arg1) {
1074
1082
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
1075
1083
  };
1076
- imports.wbg.__wbg_set_signal_dda2cf7ccb6bee0f = function(arg0, arg1) {
1084
+ imports.wbg.__wbg_set_signal_e89be862d0091009 = function(arg0, arg1) {
1077
1085
  arg0.signal = arg1;
1078
1086
  };
1079
- imports.wbg.__wbg_signal_4db5aa055bf9eb9a = function(arg0) {
1087
+ imports.wbg.__wbg_signal_3c14fbdc89694b39 = function(arg0) {
1080
1088
  const ret = arg0.signal;
1081
1089
  return ret;
1082
1090
  };
1083
- imports.wbg.__wbg_size_0a5a003dbf5dfee8 = function(arg0) {
1091
+ imports.wbg.__wbg_size_82fbdb656de23326 = function(arg0) {
1084
1092
  const ret = arg0.size;
1085
1093
  return ret;
1086
1094
  };
1087
- imports.wbg.__wbg_slice_4947c0e051116da5 = function() { return handleError(function (arg0, arg1, arg2) {
1095
+ imports.wbg.__wbg_slice_3518c924243cda3a = function() { return handleError(function (arg0, arg1, arg2) {
1088
1096
  const ret = arg0.slice(arg1, arg2);
1089
1097
  return ret;
1090
1098
  }, arguments) };
@@ -1095,54 +1103,54 @@ function __wbg_get_imports() {
1095
1103
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1096
1104
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1097
1105
  };
1098
- imports.wbg.__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e = function() {
1106
+ imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
1099
1107
  const ret = typeof global === 'undefined' ? null : global;
1100
1108
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1101
1109
  };
1102
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac = function() {
1110
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
1103
1111
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
1104
1112
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1105
1113
  };
1106
- imports.wbg.__wbg_static_accessor_SELF_6fdf4b64710cc91b = function() {
1114
+ imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
1107
1115
  const ret = typeof self === 'undefined' ? null : self;
1108
1116
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1109
1117
  };
1110
- imports.wbg.__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2 = function() {
1118
+ imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
1111
1119
  const ret = typeof window === 'undefined' ? null : window;
1112
1120
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1113
1121
  };
1114
- imports.wbg.__wbg_status_de7eed5a7a5bfd5d = function(arg0) {
1122
+ imports.wbg.__wbg_status_9bfc680efca4bdfd = function(arg0) {
1115
1123
  const ret = arg0.status;
1116
1124
  return ret;
1117
1125
  };
1118
- imports.wbg.__wbg_stringify_b5fb28f6465d9c3e = function() { return handleError(function (arg0) {
1126
+ imports.wbg.__wbg_stringify_655a6390e1f5eb6b = function() { return handleError(function (arg0) {
1119
1127
  const ret = JSON.stringify(arg0);
1120
1128
  return ret;
1121
1129
  }, arguments) };
1122
- imports.wbg.__wbg_subarray_480600f3d6a9f26c = function(arg0, arg1, arg2) {
1130
+ imports.wbg.__wbg_subarray_845f2f5bce7d061a = function(arg0, arg1, arg2) {
1123
1131
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1124
1132
  return ret;
1125
1133
  };
1126
- imports.wbg.__wbg_then_4f46f6544e6b4a28 = function(arg0, arg1) {
1127
- const ret = arg0.then(arg1);
1134
+ imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
1135
+ const ret = arg0.then(arg1, arg2);
1128
1136
  return ret;
1129
1137
  };
1130
- imports.wbg.__wbg_then_70d05cf780a18d77 = function(arg0, arg1, arg2) {
1131
- const ret = arg0.then(arg1, arg2);
1138
+ imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
1139
+ const ret = arg0.then(arg1);
1132
1140
  return ret;
1133
1141
  };
1134
- imports.wbg.__wbg_url_b36d2a5008eb056f = function(arg0, arg1) {
1142
+ imports.wbg.__wbg_url_b6d11838a4f95198 = function(arg0, arg1) {
1135
1143
  const ret = arg1.url;
1136
1144
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1137
1145
  const len1 = WASM_VECTOR_LEN;
1138
1146
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1139
1147
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1140
1148
  };
1141
- imports.wbg.__wbg_valueOf_e1f2752ef9caddb2 = function(arg0) {
1149
+ imports.wbg.__wbg_valueOf_17c63ed1b225597a = function(arg0) {
1142
1150
  const ret = arg0.valueOf();
1143
1151
  return ret;
1144
1152
  };
1145
- imports.wbg.__wbg_value_692627309814bb8c = function(arg0) {
1153
+ imports.wbg.__wbg_value_57b7b035e117f7ee = function(arg0) {
1146
1154
  const ret = arg0.value;
1147
1155
  return ret;
1148
1156
  };
@@ -1164,16 +1172,21 @@ function __wbg_get_imports() {
1164
1172
  const ret = (BigInt.asUintN(64, arg0) | (arg1 << BigInt(64)));
1165
1173
  return ret;
1166
1174
  };
1167
- imports.wbg.__wbindgen_cast_3f8afe4d69afce15 = function(arg0, arg1) {
1168
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1274, function: Function { arguments: [Externref], shim_idx: 1285, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1169
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h4e2af4dd32e0f9a7, wasm_bindgen__convert__closures_____invoke__hedbe22ff1e6181ec);
1170
- return ret;
1171
- };
1172
1175
  imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
1173
1176
  // Cast intrinsic for `U64 -> Externref`.
1174
1177
  const ret = BigInt.asUintN(64, arg0);
1175
1178
  return ret;
1176
1179
  };
1180
+ imports.wbg.__wbindgen_cast_64ef26ec64f5f42c = function(arg0, arg1) {
1181
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1274, function: Function { arguments: [], shim_idx: 1275, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1182
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h4cef5599c1857d46, wasm_bindgen__convert__closures_____invoke__hbb62da5b17229099);
1183
+ return ret;
1184
+ };
1185
+ imports.wbg.__wbindgen_cast_72eba34e55316203 = function(arg0, arg1) {
1186
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1277, function: Function { arguments: [Externref], shim_idx: 1278, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1187
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h1529e0ff12464e8c, wasm_bindgen__convert__closures_____invoke__h6e57fd9fec4e535c);
1188
+ return ret;
1189
+ };
1177
1190
  imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function(arg0, arg1) {
1178
1191
  var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
1179
1192
  wasm.__wbindgen_free(arg0, arg1 * 1, 1);
@@ -1196,11 +1209,6 @@ function __wbg_get_imports() {
1196
1209
  const ret = arg0;
1197
1210
  return ret;
1198
1211
  };
1199
- imports.wbg.__wbindgen_cast_eea71553507a2f52 = function(arg0, arg1) {
1200
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1266, function: Function { arguments: [], shim_idx: 1267, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1201
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h3685db4568587cc8, wasm_bindgen__convert__closures_____invoke__hbb73f02d9cb5eeb0);
1202
- return ret;
1203
- };
1204
1212
  imports.wbg.__wbindgen_init_externref_table = function() {
1205
1213
  const table = wasm.__wbindgen_externrefs;
1206
1214
  const offset = table.grow(4);
@@ -1209,7 +1217,6 @@ function __wbg_get_imports() {
1209
1217
  table.set(offset + 1, null);
1210
1218
  table.set(offset + 2, true);
1211
1219
  table.set(offset + 3, false);
1212
- ;
1213
1220
  };
1214
1221
 
1215
1222
  return imports;
@@ -1239,13 +1246,10 @@ function initSync(module) {
1239
1246
  }
1240
1247
 
1241
1248
  const imports = __wbg_get_imports();
1242
-
1243
1249
  if (!(module instanceof WebAssembly.Module)) {
1244
1250
  module = new WebAssembly.Module(module);
1245
1251
  }
1246
-
1247
1252
  const instance = new WebAssembly.Instance(module, imports);
1248
-
1249
1253
  return __wbg_finalize_init(instance, module);
1250
1254
  }
1251
1255
 
@@ -1275,4 +1279,4 @@ async function __wbg_init(module_or_path) {
1275
1279
 
1276
1280
  export { initSync };
1277
1281
  export default __wbg_init;
1278
- export const WASM_SRI = "sha512-mvv3tkp789UIo4Du/FiVuZKK8UIPpYPWN7b80iHP1QJafkNJBfsMda2T1wG2+S8CFFR35L16GS/9EgEXl8vVaw==";
1282
+ export const WASM_SRI = "sha512-fv1B1BIidzRL6nbH1VGEzrOgV11YILPbAPmbiDp6oA9S5s5Y1Wo5UfHueeDihW+gQkBqx18+Exy0lmMd1DUtLw==";