@noir-lang/acvm_js 0.46.0-7936262.nightly → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/web/acvm_js.js CHANGED
@@ -6,28 +6,6 @@ heap.push(undefined, null, true, false);
6
6
 
7
7
  function getObject(idx) { return heap[idx]; }
8
8
 
9
- function isLikeNone(x) {
10
- return x === undefined || x === null;
11
- }
12
-
13
- let cachedFloat64Memory0 = null;
14
-
15
- function getFloat64Memory0() {
16
- if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
17
- cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
18
- }
19
- return cachedFloat64Memory0;
20
- }
21
-
22
- let cachedInt32Memory0 = null;
23
-
24
- function getInt32Memory0() {
25
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
26
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
27
- }
28
- return cachedInt32Memory0;
29
- }
30
-
31
9
  let heap_next = heap.length;
32
10
 
33
11
  function dropObject(idx) {
@@ -42,15 +20,6 @@ function takeObject(idx) {
42
20
  return ret;
43
21
  }
44
22
 
45
- function addHeapObject(obj) {
46
- if (heap_next === heap.length) heap.push(heap.length + 1);
47
- const idx = heap_next;
48
- heap_next = heap[idx];
49
-
50
- heap[idx] = obj;
51
- return idx;
52
- }
53
-
54
23
  const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
55
24
 
56
25
  if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
@@ -69,6 +38,15 @@ function getStringFromWasm0(ptr, len) {
69
38
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
70
39
  }
71
40
 
41
+ function addHeapObject(obj) {
42
+ if (heap_next === heap.length) heap.push(heap.length + 1);
43
+ const idx = heap_next;
44
+ heap_next = heap[idx];
45
+
46
+ heap[idx] = obj;
47
+ return idx;
48
+ }
49
+
72
50
  let WASM_VECTOR_LEN = 0;
73
51
 
74
52
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
@@ -124,6 +102,37 @@ function passStringToWasm0(arg, malloc, realloc) {
124
102
  return ptr;
125
103
  }
126
104
 
105
+ function isLikeNone(x) {
106
+ return x === undefined || x === null;
107
+ }
108
+
109
+ let cachedInt32Memory0 = null;
110
+
111
+ function getInt32Memory0() {
112
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
113
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
114
+ }
115
+ return cachedInt32Memory0;
116
+ }
117
+
118
+ let cachedFloat64Memory0 = null;
119
+
120
+ function getFloat64Memory0() {
121
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
122
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
123
+ }
124
+ return cachedFloat64Memory0;
125
+ }
126
+
127
+ let cachedBigInt64Memory0 = null;
128
+
129
+ function getBigInt64Memory0() {
130
+ if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
131
+ cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
132
+ }
133
+ return cachedBigInt64Memory0;
134
+ }
135
+
127
136
  function debugString(val) {
128
137
  // primitive types
129
138
  const type = typeof val;
@@ -213,201 +222,38 @@ function makeMutClosure(arg0, arg1, dtor, f) {
213
222
 
214
223
  return real;
215
224
  }
216
- function __wbg_adapter_22(arg0, arg1, arg2) {
217
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h36bac5ff3ea3c380(arg0, arg1, addHeapObject(arg2));
218
- }
219
-
220
- function getArrayU8FromWasm0(ptr, len) {
221
- ptr = ptr >>> 0;
222
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
223
- }
224
- /**
225
- * Compresses a `WitnessMap` into the binary format outputted by Nargo.
226
- *
227
- * @param {WitnessMap} witness_map - A witness map.
228
- * @returns {Uint8Array} A compressed witness map
229
- */
230
- export function compressWitness(witness_map) {
231
- try {
232
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
233
- wasm.compressWitness(retptr, addHeapObject(witness_map));
234
- var r0 = getInt32Memory0()[retptr / 4 + 0];
235
- var r1 = getInt32Memory0()[retptr / 4 + 1];
236
- var r2 = getInt32Memory0()[retptr / 4 + 2];
237
- var r3 = getInt32Memory0()[retptr / 4 + 3];
238
- if (r3) {
239
- throw takeObject(r2);
240
- }
241
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
242
- wasm.__wbindgen_free(r0, r1 * 1);
243
- return v1;
244
- } finally {
245
- wasm.__wbindgen_add_to_stack_pointer(16);
246
- }
247
- }
248
-
249
- function passArray8ToWasm0(arg, malloc) {
250
- const ptr = malloc(arg.length * 1) >>> 0;
251
- getUint8Memory0().set(arg, ptr / 1);
252
- WASM_VECTOR_LEN = arg.length;
253
- return ptr;
254
- }
255
- /**
256
- * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
257
- * This should be used to only fetch the witness map for the main function.
258
- *
259
- * @param {Uint8Array} compressed_witness - A compressed witness.
260
- * @returns {WitnessMap} The decompressed witness map.
261
- */
262
- export function decompressWitness(compressed_witness) {
263
- try {
264
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
265
- const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
266
- const len0 = WASM_VECTOR_LEN;
267
- wasm.decompressWitness(retptr, ptr0, len0);
268
- var r0 = getInt32Memory0()[retptr / 4 + 0];
269
- var r1 = getInt32Memory0()[retptr / 4 + 1];
270
- var r2 = getInt32Memory0()[retptr / 4 + 2];
271
- if (r2) {
272
- throw takeObject(r1);
273
- }
274
- return takeObject(r0);
275
- } finally {
276
- wasm.__wbindgen_add_to_stack_pointer(16);
277
- }
278
- }
279
-
280
- /**
281
- * Compresses a `WitnessStack` into the binary format outputted by Nargo.
282
- *
283
- * @param {WitnessStack} witness_stack - A witness stack.
284
- * @returns {Uint8Array} A compressed witness stack
285
- */
286
- export function compressWitnessStack(witness_stack) {
287
- try {
288
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
289
- wasm.compressWitnessStack(retptr, addHeapObject(witness_stack));
290
- var r0 = getInt32Memory0()[retptr / 4 + 0];
291
- var r1 = getInt32Memory0()[retptr / 4 + 1];
292
- var r2 = getInt32Memory0()[retptr / 4 + 2];
293
- var r3 = getInt32Memory0()[retptr / 4 + 3];
294
- if (r3) {
295
- throw takeObject(r2);
296
- }
297
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
298
- wasm.__wbindgen_free(r0, r1 * 1);
299
- return v1;
300
- } finally {
301
- wasm.__wbindgen_add_to_stack_pointer(16);
302
- }
303
- }
304
-
305
- /**
306
- * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
307
- *
308
- * @param {Uint8Array} compressed_witness - A compressed witness.
309
- * @returns {WitnessStack} The decompressed witness stack.
310
- */
311
- export function decompressWitnessStack(compressed_witness) {
312
- try {
313
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
314
- const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
315
- const len0 = WASM_VECTOR_LEN;
316
- wasm.decompressWitnessStack(retptr, ptr0, len0);
317
- var r0 = getInt32Memory0()[retptr / 4 + 0];
318
- var r1 = getInt32Memory0()[retptr / 4 + 1];
319
- var r2 = getInt32Memory0()[retptr / 4 + 2];
320
- if (r2) {
321
- throw takeObject(r1);
322
- }
323
- return takeObject(r0);
324
- } finally {
325
- wasm.__wbindgen_add_to_stack_pointer(16);
326
- }
327
- }
328
-
329
- /**
330
- * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
331
- *
332
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
333
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
334
- * @returns {WitnessMap} A witness map containing the circuit's return values.
335
- * @param {Uint8Array} program
336
- * @param {WitnessMap} witness_map
337
- * @returns {WitnessMap}
338
- */
339
- export function getReturnWitness(program, witness_map) {
340
- try {
341
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
342
- const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
343
- const len0 = WASM_VECTOR_LEN;
344
- wasm.getReturnWitness(retptr, ptr0, len0, addHeapObject(witness_map));
345
- var r0 = getInt32Memory0()[retptr / 4 + 0];
346
- var r1 = getInt32Memory0()[retptr / 4 + 1];
347
- var r2 = getInt32Memory0()[retptr / 4 + 2];
348
- if (r2) {
349
- throw takeObject(r1);
350
- }
351
- return takeObject(r0);
352
- } finally {
353
- wasm.__wbindgen_add_to_stack_pointer(16);
354
- }
225
+ function __wbg_adapter_52(arg0, arg1, arg2) {
226
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc5258430255de068(arg0, arg1, addHeapObject(arg2));
355
227
  }
356
228
 
357
229
  /**
358
- * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public parameters.
230
+ * Sets the package's logging level.
359
231
  *
360
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
361
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
362
- * @returns {WitnessMap} A witness map containing the circuit's public parameters.
363
- * @param {Uint8Array} program
364
- * @param {WitnessMap} solved_witness
365
- * @returns {WitnessMap}
232
+ * @param {LogLevel} level - The maximum level of logging to be emitted.
366
233
  */
367
- export function getPublicParametersWitness(program, solved_witness) {
234
+ export function initLogLevel(filter) {
368
235
  try {
369
236
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
370
- const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
237
+ const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
371
238
  const len0 = WASM_VECTOR_LEN;
372
- wasm.getPublicParametersWitness(retptr, ptr0, len0, addHeapObject(solved_witness));
239
+ wasm.initLogLevel(retptr, ptr0, len0);
373
240
  var r0 = getInt32Memory0()[retptr / 4 + 0];
374
241
  var r1 = getInt32Memory0()[retptr / 4 + 1];
375
- var r2 = getInt32Memory0()[retptr / 4 + 2];
376
- if (r2) {
377
- throw takeObject(r1);
242
+ if (r1) {
243
+ throw takeObject(r0);
378
244
  }
379
- return takeObject(r0);
380
245
  } finally {
381
246
  wasm.__wbindgen_add_to_stack_pointer(16);
382
247
  }
383
248
  }
384
249
 
385
250
  /**
386
- * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public inputs.
387
- *
388
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
389
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
390
- * @returns {WitnessMap} A witness map containing the circuit's public inputs.
391
- * @param {Uint8Array} program
392
- * @param {WitnessMap} solved_witness
393
- * @returns {WitnessMap}
251
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
252
+ * @returns {BuildInfo} - Information on how the installed package was built.
394
253
  */
395
- export function getPublicWitness(program, solved_witness) {
396
- try {
397
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
398
- const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
399
- const len0 = WASM_VECTOR_LEN;
400
- wasm.getPublicWitness(retptr, ptr0, len0, addHeapObject(solved_witness));
401
- var r0 = getInt32Memory0()[retptr / 4 + 0];
402
- var r1 = getInt32Memory0()[retptr / 4 + 1];
403
- var r2 = getInt32Memory0()[retptr / 4 + 2];
404
- if (r2) {
405
- throw takeObject(r1);
406
- }
407
- return takeObject(r0);
408
- } finally {
409
- wasm.__wbindgen_add_to_stack_pointer(16);
410
- }
254
+ export function buildInfo() {
255
+ const ret = wasm.buildInfo();
256
+ return takeObject(ret);
411
257
  }
412
258
 
413
259
  /**
@@ -432,6 +278,17 @@ export function xor(lhs, rhs) {
432
278
  return takeObject(ret);
433
279
  }
434
280
 
281
+ function passArray8ToWasm0(arg, malloc) {
282
+ const ptr = malloc(arg.length * 1) >>> 0;
283
+ getUint8Memory0().set(arg, ptr / 1);
284
+ WASM_VECTOR_LEN = arg.length;
285
+ return ptr;
286
+ }
287
+
288
+ function getArrayU8FromWasm0(ptr, len) {
289
+ ptr = ptr >>> 0;
290
+ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
291
+ }
435
292
  /**
436
293
  * Calculates the SHA256 hash of the input bytes
437
294
  * @param {Uint8Array} inputs
@@ -537,6 +394,105 @@ export function ecdsa_secp256r1_verify(hashed_msg, public_key_x_bytes, public_ke
537
394
  return ret !== 0;
538
395
  }
539
396
 
397
+ /**
398
+ * Compresses a `WitnessMap` into the binary format outputted by Nargo.
399
+ *
400
+ * @param {WitnessMap} witness_map - A witness map.
401
+ * @returns {Uint8Array} A compressed witness map
402
+ */
403
+ export function compressWitness(witness_map) {
404
+ try {
405
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
406
+ wasm.compressWitness(retptr, addHeapObject(witness_map));
407
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
408
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
409
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
410
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
411
+ if (r3) {
412
+ throw takeObject(r2);
413
+ }
414
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
415
+ wasm.__wbindgen_free(r0, r1 * 1);
416
+ return v1;
417
+ } finally {
418
+ wasm.__wbindgen_add_to_stack_pointer(16);
419
+ }
420
+ }
421
+
422
+ /**
423
+ * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
424
+ * This should be used to only fetch the witness map for the main function.
425
+ *
426
+ * @param {Uint8Array} compressed_witness - A compressed witness.
427
+ * @returns {WitnessMap} The decompressed witness map.
428
+ */
429
+ export function decompressWitness(compressed_witness) {
430
+ try {
431
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
432
+ const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
433
+ const len0 = WASM_VECTOR_LEN;
434
+ wasm.decompressWitness(retptr, ptr0, len0);
435
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
436
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
437
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
438
+ if (r2) {
439
+ throw takeObject(r1);
440
+ }
441
+ return takeObject(r0);
442
+ } finally {
443
+ wasm.__wbindgen_add_to_stack_pointer(16);
444
+ }
445
+ }
446
+
447
+ /**
448
+ * Compresses a `WitnessStack` into the binary format outputted by Nargo.
449
+ *
450
+ * @param {WitnessStack} witness_stack - A witness stack.
451
+ * @returns {Uint8Array} A compressed witness stack
452
+ */
453
+ export function compressWitnessStack(witness_stack) {
454
+ try {
455
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
456
+ wasm.compressWitnessStack(retptr, addHeapObject(witness_stack));
457
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
458
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
459
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
460
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
461
+ if (r3) {
462
+ throw takeObject(r2);
463
+ }
464
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
465
+ wasm.__wbindgen_free(r0, r1 * 1);
466
+ return v1;
467
+ } finally {
468
+ wasm.__wbindgen_add_to_stack_pointer(16);
469
+ }
470
+ }
471
+
472
+ /**
473
+ * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
474
+ *
475
+ * @param {Uint8Array} compressed_witness - A compressed witness.
476
+ * @returns {WitnessStack} The decompressed witness stack.
477
+ */
478
+ export function decompressWitnessStack(compressed_witness) {
479
+ try {
480
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
481
+ const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
482
+ const len0 = WASM_VECTOR_LEN;
483
+ wasm.decompressWitnessStack(retptr, ptr0, len0);
484
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
485
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
486
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
487
+ if (r2) {
488
+ throw takeObject(r1);
489
+ }
490
+ return takeObject(r0);
491
+ } finally {
492
+ wasm.__wbindgen_add_to_stack_pointer(16);
493
+ }
494
+ }
495
+
540
496
  /**
541
497
  * @returns {Promise<WasmBlackBoxFunctionSolver>}
542
498
  */
@@ -612,46 +568,96 @@ export function executeProgram(program, initial_witness, foreign_call_handler) {
612
568
 
613
569
  /**
614
570
  */
615
- export function executeProgramWithBlackBoxSolver(solver, program, initial_witness, foreign_call_executor) {
616
- _assertClass(solver, WasmBlackBoxFunctionSolver);
617
- const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
618
- const len0 = WASM_VECTOR_LEN;
619
- const ret = wasm.executeProgramWithBlackBoxSolver(solver.__wbg_ptr, ptr0, len0, addHeapObject(initial_witness), addHeapObject(foreign_call_executor));
620
- return takeObject(ret);
571
+ export function executeProgramWithBlackBoxSolver(solver, program, initial_witness, foreign_call_executor) {
572
+ _assertClass(solver, WasmBlackBoxFunctionSolver);
573
+ const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
574
+ const len0 = WASM_VECTOR_LEN;
575
+ const ret = wasm.executeProgramWithBlackBoxSolver(solver.__wbg_ptr, ptr0, len0, addHeapObject(initial_witness), addHeapObject(foreign_call_executor));
576
+ return takeObject(ret);
577
+ }
578
+
579
+ /**
580
+ * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
581
+ *
582
+ * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
583
+ * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
584
+ * @returns {WitnessMap} A witness map containing the circuit's return values.
585
+ * @param {Uint8Array} program
586
+ * @param {WitnessMap} witness_map
587
+ * @returns {WitnessMap}
588
+ */
589
+ export function getReturnWitness(program, witness_map) {
590
+ try {
591
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
592
+ const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
593
+ const len0 = WASM_VECTOR_LEN;
594
+ wasm.getReturnWitness(retptr, ptr0, len0, addHeapObject(witness_map));
595
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
596
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
597
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
598
+ if (r2) {
599
+ throw takeObject(r1);
600
+ }
601
+ return takeObject(r0);
602
+ } finally {
603
+ wasm.__wbindgen_add_to_stack_pointer(16);
604
+ }
621
605
  }
622
606
 
623
607
  /**
624
- * Sets the package's logging level.
608
+ * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public parameters.
625
609
  *
626
- * @param {LogLevel} level - The maximum level of logging to be emitted.
610
+ * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
611
+ * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
612
+ * @returns {WitnessMap} A witness map containing the circuit's public parameters.
613
+ * @param {Uint8Array} program
614
+ * @param {WitnessMap} solved_witness
615
+ * @returns {WitnessMap}
627
616
  */
628
- export function initLogLevel(filter) {
617
+ export function getPublicParametersWitness(program, solved_witness) {
629
618
  try {
630
619
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
631
- const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
620
+ const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
632
621
  const len0 = WASM_VECTOR_LEN;
633
- wasm.initLogLevel(retptr, ptr0, len0);
622
+ wasm.getPublicParametersWitness(retptr, ptr0, len0, addHeapObject(solved_witness));
634
623
  var r0 = getInt32Memory0()[retptr / 4 + 0];
635
624
  var r1 = getInt32Memory0()[retptr / 4 + 1];
636
- if (r1) {
637
- throw takeObject(r0);
625
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
626
+ if (r2) {
627
+ throw takeObject(r1);
638
628
  }
629
+ return takeObject(r0);
639
630
  } finally {
640
631
  wasm.__wbindgen_add_to_stack_pointer(16);
641
632
  }
642
633
  }
643
634
 
644
635
  /**
645
- * Returns the `BuildInfo` object containing information about how the installed package was built.
646
- * @returns {BuildInfo} - Information on how the installed package was built.
636
+ * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public inputs.
637
+ *
638
+ * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
639
+ * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
640
+ * @returns {WitnessMap} A witness map containing the circuit's public inputs.
641
+ * @param {Uint8Array} program
642
+ * @param {WitnessMap} solved_witness
643
+ * @returns {WitnessMap}
647
644
  */
648
- export function buildInfo() {
649
- const ret = wasm.buildInfo();
650
- return takeObject(ret);
651
- }
652
-
653
- function __wbg_adapter_81(arg0, arg1, arg2, arg3, arg4) {
654
- wasm.wasm_bindgen__convert__closures__invoke3_mut__h629417323d5efbaa(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));
645
+ export function getPublicWitness(program, solved_witness) {
646
+ try {
647
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
648
+ const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
649
+ const len0 = WASM_VECTOR_LEN;
650
+ wasm.getPublicWitness(retptr, ptr0, len0, addHeapObject(solved_witness));
651
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
652
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
653
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
654
+ if (r2) {
655
+ throw takeObject(r1);
656
+ }
657
+ return takeObject(r0);
658
+ } finally {
659
+ wasm.__wbindgen_add_to_stack_pointer(16);
660
+ }
655
661
  }
656
662
 
657
663
  function handleError(f, args) {
@@ -661,10 +667,38 @@ function handleError(f, args) {
661
667
  wasm.__wbindgen_exn_store(addHeapObject(e));
662
668
  }
663
669
  }
664
- function __wbg_adapter_98(arg0, arg1, arg2, arg3) {
665
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h4efdd1050cfb3ea7(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
670
+ function __wbg_adapter_134(arg0, arg1, arg2, arg3, arg4) {
671
+ wasm.wasm_bindgen__convert__closures__invoke3_mut__h1e7d8ac96c74bd35(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));
672
+ }
673
+
674
+ function __wbg_adapter_171(arg0, arg1, arg2, arg3) {
675
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h188e918906ff9a40(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
666
676
  }
667
677
 
678
+ /**
679
+ * A struct representing a Trap
680
+ */
681
+ export class Trap {
682
+
683
+ __destroy_into_raw() {
684
+ const ptr = this.__wbg_ptr;
685
+ this.__wbg_ptr = 0;
686
+
687
+ return ptr;
688
+ }
689
+
690
+ free() {
691
+ const ptr = this.__destroy_into_raw();
692
+ wasm.__wbg_trap_free(ptr);
693
+ }
694
+ /**
695
+ * A marker method to indicate that an object is an instance of the `Trap`
696
+ * class.
697
+ */
698
+ static __wbg_wasmer_trap() {
699
+ wasm.trap___wbg_wasmer_trap();
700
+ }
701
+ }
668
702
  /**
669
703
  */
670
704
  export class WasmBlackBoxFunctionSolver {
@@ -724,15 +758,17 @@ async function __wbg_load(module, imports) {
724
758
  function __wbg_get_imports() {
725
759
  const imports = {};
726
760
  imports.wbg = {};
727
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
728
- const obj = getObject(arg1);
729
- const ret = typeof(obj) === 'number' ? obj : undefined;
730
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
731
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
732
- };
733
761
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
734
762
  takeObject(arg0);
735
763
  };
764
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
765
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
766
+ return addHeapObject(ret);
767
+ };
768
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
769
+ const ret = getObject(arg0);
770
+ return addHeapObject(ret);
771
+ };
736
772
  imports.wbg.__wbg_new_6f6c75f9324b78e8 = function() {
737
773
  const ret = new Map();
738
774
  return addHeapObject(ret);
@@ -753,6 +789,14 @@ function __wbg_get_imports() {
753
789
  getInt32Memory0()[arg0 / 4 + 1] = len1;
754
790
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
755
791
  };
792
+ imports.wbg.__wbg_wasmblackboxfunctionsolver_new = function(arg0) {
793
+ const ret = WasmBlackBoxFunctionSolver.__wrap(arg0);
794
+ return addHeapObject(ret);
795
+ };
796
+ imports.wbg.__wbg_constructor_81b34c49dcbdd2af = function(arg0) {
797
+ const ret = new Error(takeObject(arg0));
798
+ return addHeapObject(ret);
799
+ };
756
800
  imports.wbg.__wbindgen_cb_drop = function(arg0) {
757
801
  const obj = takeObject(arg0).original;
758
802
  if (obj.cnt-- == 1) {
@@ -762,9 +806,15 @@ function __wbg_get_imports() {
762
806
  const ret = false;
763
807
  return ret;
764
808
  };
765
- imports.wbg.__wbg_wasmblackboxfunctionsolver_new = function(arg0) {
766
- const ret = WasmBlackBoxFunctionSolver.__wrap(arg0);
767
- return addHeapObject(ret);
809
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
810
+ const ret = getObject(arg0) === undefined;
811
+ return ret;
812
+ };
813
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
814
+ const obj = getObject(arg1);
815
+ const ret = typeof(obj) === 'number' ? obj : undefined;
816
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
817
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
768
818
  };
769
819
  imports.wbg.__wbindgen_is_array = function(arg0) {
770
820
  const ret = Array.isArray(getObject(arg0));
@@ -774,10 +824,6 @@ function __wbg_get_imports() {
774
824
  const ret = typeof(getObject(arg0)) === 'string';
775
825
  return ret;
776
826
  };
777
- imports.wbg.__wbg_constructor_81b34c49dcbdd2af = function(arg0) {
778
- const ret = new Error(takeObject(arg0));
779
- return addHeapObject(ret);
780
- };
781
827
  imports.wbg.__wbg_new_ee5ac63ff3b0fa4d = function() {
782
828
  const ret = new Array();
783
829
  return addHeapObject(ret);
@@ -804,6 +850,53 @@ function __wbg_get_imports() {
804
850
  wasm.__wbindgen_free(deferred0_0, deferred0_1);
805
851
  }
806
852
  };
853
+ imports.wbg.__wbindgen_ge = function(arg0, arg1) {
854
+ const ret = getObject(arg0) >= getObject(arg1);
855
+ return ret;
856
+ };
857
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
858
+ const ret = BigInt.asUintN(64, arg0);
859
+ return addHeapObject(ret);
860
+ };
861
+ imports.wbg.__wbindgen_shr = function(arg0, arg1) {
862
+ const ret = getObject(arg0) >> getObject(arg1);
863
+ return addHeapObject(ret);
864
+ };
865
+ imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
866
+ const ret = getObject(arg0) === getObject(arg1);
867
+ return ret;
868
+ };
869
+ imports.wbg.__wbindgen_is_bigint = function(arg0) {
870
+ const ret = typeof(getObject(arg0)) === 'bigint';
871
+ return ret;
872
+ };
873
+ imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
874
+ const ret = arg0;
875
+ return addHeapObject(ret);
876
+ };
877
+ imports.wbg.__wbindgen_bigint_from_u128 = function(arg0, arg1) {
878
+ const ret = BigInt.asUintN(64, arg0) << BigInt(64) | BigInt.asUintN(64, arg1);
879
+ return addHeapObject(ret);
880
+ };
881
+ imports.wbg.__wbindgen_is_object = function(arg0) {
882
+ const val = getObject(arg0);
883
+ const ret = typeof(val) === 'object' && val !== null;
884
+ return ret;
885
+ };
886
+ imports.wbg.__wbindgen_is_function = function(arg0) {
887
+ const ret = typeof(getObject(arg0)) === 'function';
888
+ return ret;
889
+ };
890
+ imports.wbg.__wbg_instanceof_Global_f4b019d2b45e18ab = function(arg0) {
891
+ let result;
892
+ try {
893
+ result = getObject(arg0) instanceof WebAssembly.Global;
894
+ } catch {
895
+ result = false;
896
+ }
897
+ const ret = result;
898
+ return ret;
899
+ };
807
900
  imports.wbg.__wbg_debug_e3f6a1578e6d45ca = function(arg0) {
808
901
  console.debug(getObject(arg0));
809
902
  };
@@ -828,6 +921,36 @@ function __wbg_get_imports() {
828
921
  imports.wbg.__wbg_warn_8342bfbc6028193a = function(arg0, arg1, arg2, arg3) {
829
922
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
830
923
  };
924
+ imports.wbg.__wbg_crypto_c48a774b022d20ac = function(arg0) {
925
+ const ret = getObject(arg0).crypto;
926
+ return addHeapObject(ret);
927
+ };
928
+ imports.wbg.__wbg_process_298734cf255a885d = function(arg0) {
929
+ const ret = getObject(arg0).process;
930
+ return addHeapObject(ret);
931
+ };
932
+ imports.wbg.__wbg_versions_e2e78e134e3e5d01 = function(arg0) {
933
+ const ret = getObject(arg0).versions;
934
+ return addHeapObject(ret);
935
+ };
936
+ imports.wbg.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
937
+ const ret = getObject(arg0).node;
938
+ return addHeapObject(ret);
939
+ };
940
+ imports.wbg.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
941
+ const ret = getObject(arg0).msCrypto;
942
+ return addHeapObject(ret);
943
+ };
944
+ imports.wbg.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
945
+ const ret = module.require;
946
+ return addHeapObject(ret);
947
+ }, arguments) };
948
+ imports.wbg.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
949
+ getObject(arg0).randomFillSync(takeObject(arg1));
950
+ }, arguments) };
951
+ imports.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
952
+ getObject(arg0).getRandomValues(getObject(arg1));
953
+ }, arguments) };
831
954
  imports.wbg.__wbg_get_7303ed2ef026b2f5 = function(arg0, arg1) {
832
955
  const ret = getObject(arg0)[arg1 >>> 0];
833
956
  return addHeapObject(ret);
@@ -840,10 +963,53 @@ function __wbg_get_imports() {
840
963
  const ret = new Array();
841
964
  return addHeapObject(ret);
842
965
  };
966
+ imports.wbg.__wbg_BigInt_9523742cb675bb6f = function(arg0) {
967
+ const ret = BigInt(getObject(arg0));
968
+ return addHeapObject(ret);
969
+ };
970
+ imports.wbg.__wbg_newnoargs_c9e6043b8ad84109 = function(arg0, arg1) {
971
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
972
+ return addHeapObject(ret);
973
+ };
843
974
  imports.wbg.__wbg_new_0f2b71ca2f2a6029 = function() {
844
975
  const ret = new Map();
845
976
  return addHeapObject(ret);
846
977
  };
978
+ imports.wbg.__wbg_get_f53c921291c381bd = function() { return handleError(function (arg0, arg1) {
979
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
980
+ return addHeapObject(ret);
981
+ }, arguments) };
982
+ imports.wbg.__wbg_call_557a2f2deacc4912 = function() { return handleError(function (arg0, arg1) {
983
+ const ret = getObject(arg0).call(getObject(arg1));
984
+ return addHeapObject(ret);
985
+ }, arguments) };
986
+ imports.wbg.__wbg_new_2b6fea4ea03b1b95 = function() {
987
+ const ret = new Object();
988
+ return addHeapObject(ret);
989
+ };
990
+ imports.wbg.__wbg_self_742dd6eab3e9211e = function() { return handleError(function () {
991
+ const ret = self.self;
992
+ return addHeapObject(ret);
993
+ }, arguments) };
994
+ imports.wbg.__wbg_window_c409e731db53a0e2 = function() { return handleError(function () {
995
+ const ret = window.window;
996
+ return addHeapObject(ret);
997
+ }, arguments) };
998
+ imports.wbg.__wbg_globalThis_b70c095388441f2d = function() { return handleError(function () {
999
+ const ret = globalThis.globalThis;
1000
+ return addHeapObject(ret);
1001
+ }, arguments) };
1002
+ imports.wbg.__wbg_global_1c72617491ed7194 = function() { return handleError(function () {
1003
+ const ret = global.global;
1004
+ return addHeapObject(ret);
1005
+ }, arguments) };
1006
+ imports.wbg.__wbg_newwithlength_cd1db47a173e3944 = function(arg0) {
1007
+ const ret = new Array(arg0 >>> 0);
1008
+ return addHeapObject(ret);
1009
+ };
1010
+ imports.wbg.__wbg_set_b4da98d504ac6091 = function(arg0, arg1, arg2) {
1011
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
1012
+ };
847
1013
  imports.wbg.__wbg_from_6bc98a09a0b58bb1 = function(arg0) {
848
1014
  const ret = Array.from(getObject(arg0));
849
1015
  return addHeapObject(ret);
@@ -855,7 +1021,7 @@ function __wbg_get_imports() {
855
1021
  const a = state0.a;
856
1022
  state0.a = 0;
857
1023
  try {
858
- return __wbg_adapter_81(a, state0.b, arg0, arg1, arg2);
1024
+ return __wbg_adapter_134(a, state0.b, arg0, arg1, arg2);
859
1025
  } finally {
860
1026
  state0.a = a;
861
1027
  }
@@ -873,6 +1039,27 @@ function __wbg_get_imports() {
873
1039
  const ret = getObject(arg0).reverse();
874
1040
  return addHeapObject(ret);
875
1041
  };
1042
+ imports.wbg.__wbg_byteLength_1a59a59856fc656a = function(arg0) {
1043
+ const ret = getObject(arg0).byteLength;
1044
+ return ret;
1045
+ };
1046
+ imports.wbg.__wbg_toString_68dcf9fa017bbb08 = function(arg0, arg1, arg2) {
1047
+ const ret = getObject(arg1).toString(arg2);
1048
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1049
+ const len1 = WASM_VECTOR_LEN;
1050
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
1051
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1052
+ };
1053
+ imports.wbg.__wbg_instanceof_Error_fac23a8832b241da = function(arg0) {
1054
+ let result;
1055
+ try {
1056
+ result = getObject(arg0) instanceof Error;
1057
+ } catch {
1058
+ result = false;
1059
+ }
1060
+ const ret = result;
1061
+ return ret;
1062
+ };
876
1063
  imports.wbg.__wbg_new_87297f22973157c8 = function(arg0, arg1) {
877
1064
  const ret = new Error(getStringFromWasm0(arg0, arg1));
878
1065
  return addHeapObject(ret);
@@ -880,6 +1067,20 @@ function __wbg_get_imports() {
880
1067
  imports.wbg.__wbg_setcause_394738aae0ce9341 = function(arg0, arg1) {
881
1068
  getObject(arg0).cause = getObject(arg1);
882
1069
  };
1070
+ imports.wbg.__wbg_message_eab7d45ec69a2135 = function(arg0) {
1071
+ const ret = getObject(arg0).message;
1072
+ return addHeapObject(ret);
1073
+ };
1074
+ imports.wbg.__wbg_instanceof_Function_8e1bcaacb89c4438 = function(arg0) {
1075
+ let result;
1076
+ try {
1077
+ result = getObject(arg0) instanceof Function;
1078
+ } catch {
1079
+ result = false;
1080
+ }
1081
+ const ret = result;
1082
+ return ret;
1083
+ };
883
1084
  imports.wbg.__wbg_call_587b30eea3e09332 = function() { return handleError(function (arg0, arg1, arg2) {
884
1085
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
885
1086
  return addHeapObject(ret);
@@ -888,6 +1089,14 @@ function __wbg_get_imports() {
888
1089
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
889
1090
  return addHeapObject(ret);
890
1091
  }, arguments) };
1092
+ imports.wbg.__wbg_bind_7d5ce7224bedd5b8 = function(arg0, arg1, arg2) {
1093
+ const ret = getObject(arg0).bind(getObject(arg1), getObject(arg2));
1094
+ return addHeapObject(ret);
1095
+ };
1096
+ imports.wbg.__wbg_bind_f5218b29220675c3 = function(arg0, arg1, arg2, arg3) {
1097
+ const ret = getObject(arg0).bind(getObject(arg1), getObject(arg2), getObject(arg3));
1098
+ return addHeapObject(ret);
1099
+ };
891
1100
  imports.wbg.__wbg_forEach_942772130a8d06a6 = function(arg0, arg1, arg2) {
892
1101
  try {
893
1102
  var state0 = {a: arg1, b: arg2};
@@ -895,7 +1104,7 @@ function __wbg_get_imports() {
895
1104
  const a = state0.a;
896
1105
  state0.a = 0;
897
1106
  try {
898
- return __wbg_adapter_98(a, state0.b, arg0, arg1);
1107
+ return __wbg_adapter_171(a, state0.b, arg0, arg1);
899
1108
  } finally {
900
1109
  state0.a = a;
901
1110
  }
@@ -909,10 +1118,28 @@ function __wbg_get_imports() {
909
1118
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
910
1119
  return addHeapObject(ret);
911
1120
  };
1121
+ imports.wbg.__wbg_instanceof_Object_a9e9e5766628e8b5 = function(arg0) {
1122
+ let result;
1123
+ try {
1124
+ result = getObject(arg0) instanceof Object;
1125
+ } catch {
1126
+ result = false;
1127
+ }
1128
+ const ret = result;
1129
+ return ret;
1130
+ };
1131
+ imports.wbg.__wbg_constructor_f2623999a1f453eb = function(arg0) {
1132
+ const ret = getObject(arg0).constructor;
1133
+ return addHeapObject(ret);
1134
+ };
912
1135
  imports.wbg.__wbg_fromEntries_d1b310956d20d858 = function() { return handleError(function (arg0) {
913
1136
  const ret = Object.fromEntries(getObject(arg0));
914
1137
  return addHeapObject(ret);
915
1138
  }, arguments) };
1139
+ imports.wbg.__wbg_toString_e2b23ac99490a381 = function(arg0) {
1140
+ const ret = getObject(arg0).toString();
1141
+ return addHeapObject(ret);
1142
+ };
916
1143
  imports.wbg.__wbg_values_099fd000c271c313 = function(arg0) {
917
1144
  const ret = Object.values(getObject(arg0));
918
1145
  return addHeapObject(ret);
@@ -924,7 +1151,7 @@ function __wbg_get_imports() {
924
1151
  const a = state0.a;
925
1152
  state0.a = 0;
926
1153
  try {
927
- return __wbg_adapter_98(a, state0.b, arg0, arg1);
1154
+ return __wbg_adapter_171(a, state0.b, arg0, arg1);
928
1155
  } finally {
929
1156
  state0.a = a;
930
1157
  }
@@ -947,14 +1174,99 @@ function __wbg_get_imports() {
947
1174
  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
948
1175
  return addHeapObject(ret);
949
1176
  };
1177
+ imports.wbg.__wbg_buffer_55ba7a6b1b92e2ac = function(arg0) {
1178
+ const ret = getObject(arg0).buffer;
1179
+ return addHeapObject(ret);
1180
+ };
1181
+ imports.wbg.__wbg_newwithbyteoffsetandlength_88d1d8be5df94b9b = function(arg0, arg1, arg2) {
1182
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
1183
+ return addHeapObject(ret);
1184
+ };
1185
+ imports.wbg.__wbg_new_09938a7d020f049b = function(arg0) {
1186
+ const ret = new Uint8Array(getObject(arg0));
1187
+ return addHeapObject(ret);
1188
+ };
1189
+ imports.wbg.__wbg_set_3698e3ca519b3c3c = function(arg0, arg1, arg2) {
1190
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
1191
+ };
1192
+ imports.wbg.__wbg_length_0aab7ffd65ad19ed = function(arg0) {
1193
+ const ret = getObject(arg0).length;
1194
+ return ret;
1195
+ };
1196
+ imports.wbg.__wbg_newwithlength_89eeca401d8918c2 = function(arg0) {
1197
+ const ret = new Uint8Array(arg0 >>> 0);
1198
+ return addHeapObject(ret);
1199
+ };
1200
+ imports.wbg.__wbg_subarray_d82be056deb4ad27 = function(arg0, arg1, arg2) {
1201
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
1202
+ return addHeapObject(ret);
1203
+ };
950
1204
  imports.wbg.__wbg_parse_76a8a18ca3f8730b = function() { return handleError(function (arg0, arg1) {
951
1205
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
952
1206
  return addHeapObject(ret);
953
1207
  }, arguments) };
1208
+ imports.wbg.__wbg_compile_eefe73dfb19bff3d = function(arg0) {
1209
+ const ret = WebAssembly.compile(getObject(arg0));
1210
+ return addHeapObject(ret);
1211
+ };
1212
+ imports.wbg.__wbg_instantiate_e61ee50cd947cd36 = function(arg0, arg1) {
1213
+ const ret = WebAssembly.instantiate(getObject(arg0), getObject(arg1));
1214
+ return addHeapObject(ret);
1215
+ };
1216
+ imports.wbg.__wbg_exports_311291a1333429a3 = function(arg0) {
1217
+ const ret = getObject(arg0).exports;
1218
+ return addHeapObject(ret);
1219
+ };
1220
+ imports.wbg.__wbg_exports_12505982ae149cb0 = function(arg0) {
1221
+ const ret = WebAssembly.Module.exports(getObject(arg0));
1222
+ return addHeapObject(ret);
1223
+ };
1224
+ imports.wbg.__wbg_instanceof_Table_b0af5234a12a19f9 = function(arg0) {
1225
+ let result;
1226
+ try {
1227
+ result = getObject(arg0) instanceof WebAssembly.Table;
1228
+ } catch {
1229
+ result = false;
1230
+ }
1231
+ const ret = result;
1232
+ return ret;
1233
+ };
1234
+ imports.wbg.__wbg_get_b5def15f90c3e295 = function() { return handleError(function (arg0, arg1) {
1235
+ const ret = getObject(arg0).get(arg1 >>> 0);
1236
+ return addHeapObject(ret);
1237
+ }, arguments) };
1238
+ imports.wbg.__wbg_instanceof_Memory_331618ccd3fa615d = function(arg0) {
1239
+ let result;
1240
+ try {
1241
+ result = getObject(arg0) instanceof WebAssembly.Memory;
1242
+ } catch {
1243
+ result = false;
1244
+ }
1245
+ const ret = result;
1246
+ return ret;
1247
+ };
1248
+ imports.wbg.__wbg_new_e40873b83efb2dcd = function() { return handleError(function (arg0) {
1249
+ const ret = new WebAssembly.Memory(getObject(arg0));
1250
+ return addHeapObject(ret);
1251
+ }, arguments) };
1252
+ imports.wbg.__wbg_apply_46ea2bb0ad750196 = function() { return handleError(function (arg0, arg1, arg2) {
1253
+ const ret = Reflect.apply(getObject(arg0), getObject(arg1), getObject(arg2));
1254
+ return addHeapObject(ret);
1255
+ }, arguments) };
1256
+ imports.wbg.__wbg_getPrototypeOf_7dc7a2328db2bc0e = function() { return handleError(function (arg0) {
1257
+ const ret = Reflect.getPrototypeOf(getObject(arg0));
1258
+ return addHeapObject(ret);
1259
+ }, arguments) };
954
1260
  imports.wbg.__wbg_set_07da13cc24b69217 = function() { return handleError(function (arg0, arg1, arg2) {
955
1261
  const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
956
1262
  return ret;
957
1263
  }, arguments) };
1264
+ imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
1265
+ const v = getObject(arg1);
1266
+ const ret = typeof(v) === 'bigint' ? v : undefined;
1267
+ getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
1268
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
1269
+ };
958
1270
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
959
1271
  const ret = debugString(getObject(arg1));
960
1272
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -965,8 +1277,16 @@ function __wbg_get_imports() {
965
1277
  imports.wbg.__wbindgen_throw = function(arg0, arg1) {
966
1278
  throw new Error(getStringFromWasm0(arg0, arg1));
967
1279
  };
968
- imports.wbg.__wbindgen_closure_wrapper491 = function(arg0, arg1, arg2) {
969
- const ret = makeMutClosure(arg0, arg1, 201, __wbg_adapter_22);
1280
+ imports.wbg.__wbindgen_memory = function() {
1281
+ const ret = wasm.memory;
1282
+ return addHeapObject(ret);
1283
+ };
1284
+ imports.wbg.__wbindgen_function_table = function() {
1285
+ const ret = wasm.__wbindgen_export_2;
1286
+ return addHeapObject(ret);
1287
+ };
1288
+ imports.wbg.__wbindgen_closure_wrapper2147 = function(arg0, arg1, arg2) {
1289
+ const ret = makeMutClosure(arg0, arg1, 720, __wbg_adapter_52);
970
1290
  return addHeapObject(ret);
971
1291
  };
972
1292
 
@@ -980,6 +1300,7 @@ function __wbg_init_memory(imports, maybe_memory) {
980
1300
  function __wbg_finalize_init(instance, module) {
981
1301
  wasm = instance.exports;
982
1302
  __wbg_init.__wbindgen_wasm_module = module;
1303
+ cachedBigInt64Memory0 = null;
983
1304
  cachedFloat64Memory0 = null;
984
1305
  cachedInt32Memory0 = null;
985
1306
  cachedUint8Memory0 = null;