pshenmic-dpp 1.0.26 → 1.1.0-dev.2

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.
@@ -1,3 +1,5 @@
1
+ import { stringify } from './snippets/pshenmic_dpp_utils-23ab7381b198778d/stringify.js';
2
+
1
3
  let wasm;
2
4
 
3
5
  const heap = new Array(128).fill(undefined);
@@ -17,6 +19,36 @@ function addHeapObject(obj) {
17
19
  return idx;
18
20
  }
19
21
 
22
+ let cachedUint8ArrayMemory0 = null;
23
+
24
+ function getUint8ArrayMemory0() {
25
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
26
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
27
+ }
28
+ return cachedUint8ArrayMemory0;
29
+ }
30
+
31
+ let cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
32
+
33
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
34
+
35
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
36
+ let numBytesDecoded = 0;
37
+ function decodeText(ptr, len) {
38
+ numBytesDecoded += len;
39
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
40
+ cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
41
+ cachedTextDecoder.decode();
42
+ numBytesDecoded = len;
43
+ }
44
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
45
+ }
46
+
47
+ function getStringFromWasm0(ptr, len) {
48
+ ptr = ptr >>> 0;
49
+ return decodeText(ptr, len);
50
+ }
51
+
20
52
  function handleError(f, args) {
21
53
  try {
22
54
  return f.apply(this, args);
@@ -27,15 +59,6 @@ function handleError(f, args) {
27
59
 
28
60
  let WASM_VECTOR_LEN = 0;
29
61
 
30
- let cachedUint8ArrayMemory0 = null;
31
-
32
- function getUint8ArrayMemory0() {
33
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
34
- cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
35
- }
36
- return cachedUint8ArrayMemory0;
37
- }
38
-
39
62
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
40
63
 
41
64
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -99,13 +122,9 @@ function getDataViewMemory0() {
99
122
  return cachedDataViewMemory0;
100
123
  }
101
124
 
102
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
103
-
104
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
105
-
106
- function getStringFromWasm0(ptr, len) {
125
+ function getArrayU8FromWasm0(ptr, len) {
107
126
  ptr = ptr >>> 0;
108
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
127
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
109
128
  }
110
129
 
111
130
  function dropObject(idx) {
@@ -189,11 +208,6 @@ function debugString(val) {
189
208
  return className;
190
209
  }
191
210
 
192
- function getArrayU8FromWasm0(ptr, len) {
193
- ptr = ptr >>> 0;
194
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
195
- }
196
-
197
211
  let stack_pointer = 128;
198
212
 
199
213
  function addBorrowedObject(obj) {
@@ -19214,6 +19228,357 @@ export class TotalSingleTokenBalanceWASM {
19214
19228
  }
19215
19229
  }
19216
19230
 
19231
+ const TransactionWASMFinalization = (typeof FinalizationRegistry === 'undefined')
19232
+ ? { register: () => {}, unregister: () => {} }
19233
+ : new FinalizationRegistry(ptr => wasm.__wbg_transactionwasm_free(ptr >>> 0, 1));
19234
+
19235
+ export class TransactionWASM {
19236
+
19237
+ __destroy_into_raw() {
19238
+ const ptr = this.__wbg_ptr;
19239
+ this.__wbg_ptr = 0;
19240
+ TransactionWASMFinalization.unregister(this);
19241
+ return ptr;
19242
+ }
19243
+
19244
+ /** @ignore */
19245
+ /** */
19246
+ free() {
19247
+ const ptr = this.__destroy_into_raw();
19248
+ wasm.__wbg_transactionwasm_free(ptr, 0);
19249
+ }
19250
+ /**
19251
+ * @returns {string}
19252
+ */
19253
+ get __type() {
19254
+ let deferred1_0;
19255
+ let deferred1_1;
19256
+ try {
19257
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
19258
+ wasm.transactionwasm_type_name(retptr, this.__wbg_ptr);
19259
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
19260
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
19261
+ deferred1_0 = r0;
19262
+ deferred1_1 = r1;
19263
+ return getStringFromWasm0(r0, r1);
19264
+ } finally {
19265
+ wasm.__wbindgen_add_to_stack_pointer(16);
19266
+ wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
19267
+ }
19268
+ }
19269
+ /**
19270
+ * @returns {string}
19271
+ */
19272
+ static get __struct() {
19273
+ let deferred1_0;
19274
+ let deferred1_1;
19275
+ try {
19276
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
19277
+ wasm.transactionwasm_struct_name(retptr);
19278
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
19279
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
19280
+ deferred1_0 = r0;
19281
+ deferred1_1 = r1;
19282
+ return getStringFromWasm0(r0, r1);
19283
+ } finally {
19284
+ wasm.__wbindgen_add_to_stack_pointer(16);
19285
+ wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
19286
+ }
19287
+ }
19288
+ /**
19289
+ * @param {number} version
19290
+ * @param {number} lock_time
19291
+ * @param {any} js_input
19292
+ * @param {any} js_output
19293
+ */
19294
+ constructor(version, lock_time, js_input, js_output) {
19295
+ try {
19296
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
19297
+ wasm.transactionwasm_new(retptr, version, lock_time, addBorrowedObject(js_input), addBorrowedObject(js_output));
19298
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
19299
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
19300
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
19301
+ if (r2) {
19302
+ throw takeObject(r1);
19303
+ }
19304
+ this.__wbg_ptr = r0 >>> 0;
19305
+ TransactionWASMFinalization.register(this, this.__wbg_ptr, this);
19306
+ return this;
19307
+ } finally {
19308
+ wasm.__wbindgen_add_to_stack_pointer(16);
19309
+ heap[stack_pointer++] = undefined;
19310
+ heap[stack_pointer++] = undefined;
19311
+ }
19312
+ }
19313
+ /**
19314
+ * @returns {number}
19315
+ */
19316
+ get version() {
19317
+ const ret = wasm.transactionwasm_version(this.__wbg_ptr);
19318
+ return ret;
19319
+ }
19320
+ /**
19321
+ * @returns {number}
19322
+ */
19323
+ get lockTime() {
19324
+ const ret = wasm.transactionwasm_lock_time(this.__wbg_ptr);
19325
+ return ret >>> 0;
19326
+ }
19327
+ /**
19328
+ * @returns {Array<any>}
19329
+ */
19330
+ get input() {
19331
+ const ret = wasm.transactionwasm_input(this.__wbg_ptr);
19332
+ return takeObject(ret);
19333
+ }
19334
+ /**
19335
+ * @returns {Array<any>}
19336
+ */
19337
+ get output() {
19338
+ const ret = wasm.transactionwasm_output(this.__wbg_ptr);
19339
+ return takeObject(ret);
19340
+ }
19341
+ /**
19342
+ * @param {number} version
19343
+ */
19344
+ set version(version) {
19345
+ wasm.transactionwasm_set_version(this.__wbg_ptr, version);
19346
+ }
19347
+ /**
19348
+ * @param {number} lock_time
19349
+ */
19350
+ set lockTime(lock_time) {
19351
+ wasm.transactionwasm_set_lock_time(this.__wbg_ptr, lock_time);
19352
+ }
19353
+ /**
19354
+ * @param {any} js_input
19355
+ */
19356
+ set input(js_input) {
19357
+ try {
19358
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
19359
+ wasm.transactionwasm_set_input(retptr, this.__wbg_ptr, addBorrowedObject(js_input));
19360
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
19361
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
19362
+ if (r1) {
19363
+ throw takeObject(r0);
19364
+ }
19365
+ } finally {
19366
+ wasm.__wbindgen_add_to_stack_pointer(16);
19367
+ heap[stack_pointer++] = undefined;
19368
+ }
19369
+ }
19370
+ /**
19371
+ * @param {any} js_output
19372
+ */
19373
+ set output(js_output) {
19374
+ try {
19375
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
19376
+ wasm.transactionwasm_set_output(retptr, this.__wbg_ptr, addBorrowedObject(js_output));
19377
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
19378
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
19379
+ if (r1) {
19380
+ throw takeObject(r0);
19381
+ }
19382
+ } finally {
19383
+ wasm.__wbindgen_add_to_stack_pointer(16);
19384
+ heap[stack_pointer++] = undefined;
19385
+ }
19386
+ }
19387
+ /**
19388
+ * @returns {boolean}
19389
+ */
19390
+ isCoinBase() {
19391
+ const ret = wasm.transactionwasm_isCoinBase(this.__wbg_ptr);
19392
+ return ret !== 0;
19393
+ }
19394
+ /**
19395
+ * @returns {string}
19396
+ */
19397
+ getTxType() {
19398
+ let deferred1_0;
19399
+ let deferred1_1;
19400
+ try {
19401
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
19402
+ wasm.transactionwasm_getTxType(retptr, this.__wbg_ptr);
19403
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
19404
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
19405
+ deferred1_0 = r0;
19406
+ deferred1_1 = r1;
19407
+ return getStringFromWasm0(r0, r1);
19408
+ } finally {
19409
+ wasm.__wbindgen_add_to_stack_pointer(16);
19410
+ wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
19411
+ }
19412
+ }
19413
+ /**
19414
+ * @returns {string}
19415
+ */
19416
+ getTxId() {
19417
+ let deferred1_0;
19418
+ let deferred1_1;
19419
+ try {
19420
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
19421
+ wasm.transactionwasm_getTxId(retptr, this.__wbg_ptr);
19422
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
19423
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
19424
+ deferred1_0 = r0;
19425
+ deferred1_1 = r1;
19426
+ return getStringFromWasm0(r0, r1);
19427
+ } finally {
19428
+ wasm.__wbindgen_add_to_stack_pointer(16);
19429
+ wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
19430
+ }
19431
+ }
19432
+ }
19433
+
19434
+ const TxInWASMFinalization = (typeof FinalizationRegistry === 'undefined')
19435
+ ? { register: () => {}, unregister: () => {} }
19436
+ : new FinalizationRegistry(ptr => wasm.__wbg_txinwasm_free(ptr >>> 0, 1));
19437
+
19438
+ export class TxInWASM {
19439
+
19440
+ static __wrap(ptr) {
19441
+ ptr = ptr >>> 0;
19442
+ const obj = Object.create(TxInWASM.prototype);
19443
+ obj.__wbg_ptr = ptr;
19444
+ TxInWASMFinalization.register(obj, obj.__wbg_ptr, obj);
19445
+ return obj;
19446
+ }
19447
+
19448
+ __destroy_into_raw() {
19449
+ const ptr = this.__wbg_ptr;
19450
+ this.__wbg_ptr = 0;
19451
+ TxInWASMFinalization.unregister(this);
19452
+ return ptr;
19453
+ }
19454
+
19455
+ /** @ignore */
19456
+ /** */
19457
+ free() {
19458
+ const ptr = this.__destroy_into_raw();
19459
+ wasm.__wbg_txinwasm_free(ptr, 0);
19460
+ }
19461
+ /**
19462
+ * @returns {string}
19463
+ */
19464
+ get __type() {
19465
+ let deferred1_0;
19466
+ let deferred1_1;
19467
+ try {
19468
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
19469
+ wasm.txinwasm_type_name(retptr, this.__wbg_ptr);
19470
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
19471
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
19472
+ deferred1_0 = r0;
19473
+ deferred1_1 = r1;
19474
+ return getStringFromWasm0(r0, r1);
19475
+ } finally {
19476
+ wasm.__wbindgen_add_to_stack_pointer(16);
19477
+ wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
19478
+ }
19479
+ }
19480
+ /**
19481
+ * @returns {string}
19482
+ */
19483
+ static get __struct() {
19484
+ let deferred1_0;
19485
+ let deferred1_1;
19486
+ try {
19487
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
19488
+ wasm.txinwasm_struct_name(retptr);
19489
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
19490
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
19491
+ deferred1_0 = r0;
19492
+ deferred1_1 = r1;
19493
+ return getStringFromWasm0(r0, r1);
19494
+ } finally {
19495
+ wasm.__wbindgen_add_to_stack_pointer(16);
19496
+ wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
19497
+ }
19498
+ }
19499
+ /**
19500
+ * @param {OutPointWASM} previous_output
19501
+ * @param {Uint8Array} script_sig
19502
+ * @param {number} sequence
19503
+ * @param {WitnessWASM} witness
19504
+ */
19505
+ constructor(previous_output, script_sig, sequence, witness) {
19506
+ _assertClass(previous_output, OutPointWASM);
19507
+ const ptr0 = passArray8ToWasm0(script_sig, wasm.__wbindgen_export_1);
19508
+ const len0 = WASM_VECTOR_LEN;
19509
+ _assertClass(witness, WitnessWASM);
19510
+ const ret = wasm.txinwasm_new(previous_output.__wbg_ptr, ptr0, len0, sequence, witness.__wbg_ptr);
19511
+ this.__wbg_ptr = ret >>> 0;
19512
+ TxInWASMFinalization.register(this, this.__wbg_ptr, this);
19513
+ return this;
19514
+ }
19515
+ /**
19516
+ * @returns {OutPointWASM}
19517
+ */
19518
+ get previousOutput() {
19519
+ const ret = wasm.txinwasm_previous_output(this.__wbg_ptr);
19520
+ return OutPointWASM.__wrap(ret);
19521
+ }
19522
+ /**
19523
+ * @returns {Uint8Array}
19524
+ */
19525
+ get scriptSig() {
19526
+ try {
19527
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
19528
+ wasm.txinwasm_script_sig(retptr, this.__wbg_ptr);
19529
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
19530
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
19531
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
19532
+ wasm.__wbindgen_export_3(r0, r1 * 1, 1);
19533
+ return v1;
19534
+ } finally {
19535
+ wasm.__wbindgen_add_to_stack_pointer(16);
19536
+ }
19537
+ }
19538
+ /**
19539
+ * @returns {number}
19540
+ */
19541
+ get sequence() {
19542
+ const ret = wasm.txinwasm_sequence(this.__wbg_ptr);
19543
+ return ret >>> 0;
19544
+ }
19545
+ /**
19546
+ * @returns {WitnessWASM}
19547
+ */
19548
+ get witnesses() {
19549
+ const ret = wasm.txinwasm_witness(this.__wbg_ptr);
19550
+ return WitnessWASM.__wrap(ret);
19551
+ }
19552
+ /**
19553
+ * @param {OutPointWASM} previous_output
19554
+ */
19555
+ set previousOutput(previous_output) {
19556
+ _assertClass(previous_output, OutPointWASM);
19557
+ wasm.txinwasm_set_previous_output(this.__wbg_ptr, previous_output.__wbg_ptr);
19558
+ }
19559
+ /**
19560
+ * @param {Uint8Array} script_sig
19561
+ */
19562
+ set scriptSig(script_sig) {
19563
+ const ptr0 = passArray8ToWasm0(script_sig, wasm.__wbindgen_export_1);
19564
+ const len0 = WASM_VECTOR_LEN;
19565
+ wasm.txinwasm_set_script_sig(this.__wbg_ptr, ptr0, len0);
19566
+ }
19567
+ /**
19568
+ * @param {number} sequence
19569
+ */
19570
+ set sequence(sequence) {
19571
+ wasm.txinwasm_set_sequence(this.__wbg_ptr, sequence);
19572
+ }
19573
+ /**
19574
+ * @param {WitnessWASM} witness
19575
+ */
19576
+ set witnesses(witness) {
19577
+ _assertClass(witness, WitnessWASM);
19578
+ wasm.txinwasm_set_witness(this.__wbg_ptr, witness.__wbg_ptr);
19579
+ }
19580
+ }
19581
+
19217
19582
  const TxOutWASMFinalization = (typeof FinalizationRegistry === 'undefined')
19218
19583
  ? { register: () => {}, unregister: () => {} }
19219
19584
  : new FinalizationRegistry(ptr => wasm.__wbg_txoutwasm_free(ptr >>> 0, 1));
@@ -21063,6 +21428,121 @@ export class VoteWASM {
21063
21428
  }
21064
21429
  }
21065
21430
 
21431
+ const WitnessWASMFinalization = (typeof FinalizationRegistry === 'undefined')
21432
+ ? { register: () => {}, unregister: () => {} }
21433
+ : new FinalizationRegistry(ptr => wasm.__wbg_witnesswasm_free(ptr >>> 0, 1));
21434
+
21435
+ export class WitnessWASM {
21436
+
21437
+ static __wrap(ptr) {
21438
+ ptr = ptr >>> 0;
21439
+ const obj = Object.create(WitnessWASM.prototype);
21440
+ obj.__wbg_ptr = ptr;
21441
+ WitnessWASMFinalization.register(obj, obj.__wbg_ptr, obj);
21442
+ return obj;
21443
+ }
21444
+
21445
+ __destroy_into_raw() {
21446
+ const ptr = this.__wbg_ptr;
21447
+ this.__wbg_ptr = 0;
21448
+ WitnessWASMFinalization.unregister(this);
21449
+ return ptr;
21450
+ }
21451
+
21452
+ /** @ignore */
21453
+ /** */
21454
+ free() {
21455
+ const ptr = this.__destroy_into_raw();
21456
+ wasm.__wbg_witnesswasm_free(ptr, 0);
21457
+ }
21458
+ /**
21459
+ * @returns {string}
21460
+ */
21461
+ get __type() {
21462
+ let deferred1_0;
21463
+ let deferred1_1;
21464
+ try {
21465
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
21466
+ wasm.witnesswasm_type_name(retptr, this.__wbg_ptr);
21467
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
21468
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
21469
+ deferred1_0 = r0;
21470
+ deferred1_1 = r1;
21471
+ return getStringFromWasm0(r0, r1);
21472
+ } finally {
21473
+ wasm.__wbindgen_add_to_stack_pointer(16);
21474
+ wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
21475
+ }
21476
+ }
21477
+ /**
21478
+ * @returns {string}
21479
+ */
21480
+ static get __struct() {
21481
+ let deferred1_0;
21482
+ let deferred1_1;
21483
+ try {
21484
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
21485
+ wasm.witnesswasm_struct_name(retptr);
21486
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
21487
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
21488
+ deferred1_0 = r0;
21489
+ deferred1_1 = r1;
21490
+ return getStringFromWasm0(r0, r1);
21491
+ } finally {
21492
+ wasm.__wbindgen_add_to_stack_pointer(16);
21493
+ wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
21494
+ }
21495
+ }
21496
+ /**
21497
+ * @param {Uint8Array[] | null} [optional_bytes]
21498
+ */
21499
+ constructor(optional_bytes) {
21500
+ var ptr0 = isLikeNone(optional_bytes) ? 0 : passArrayJsValueToWasm0(optional_bytes, wasm.__wbindgen_export_1);
21501
+ var len0 = WASM_VECTOR_LEN;
21502
+ const ret = wasm.witnesswasm_new(ptr0, len0);
21503
+ this.__wbg_ptr = ret >>> 0;
21504
+ WitnessWASMFinalization.register(this, this.__wbg_ptr, this);
21505
+ return this;
21506
+ }
21507
+ /**
21508
+ * @returns {Uint8Array[]}
21509
+ */
21510
+ getBytes() {
21511
+ try {
21512
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
21513
+ wasm.witnesswasm_getBytes(retptr, this.__wbg_ptr);
21514
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
21515
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
21516
+ var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
21517
+ wasm.__wbindgen_export_3(r0, r1 * 4, 4);
21518
+ return v1;
21519
+ } finally {
21520
+ wasm.__wbindgen_add_to_stack_pointer(16);
21521
+ }
21522
+ }
21523
+ /**
21524
+ * @returns {boolean}
21525
+ */
21526
+ isEmpty() {
21527
+ const ret = wasm.witnesswasm_isEmpty(this.__wbg_ptr);
21528
+ return ret !== 0;
21529
+ }
21530
+ /** */
21531
+ clear() {
21532
+ wasm.witnesswasm_clear(this.__wbg_ptr);
21533
+ }
21534
+ /**
21535
+ * @param {Uint8Array} new_element
21536
+ */
21537
+ push(new_element) {
21538
+ const ptr0 = passArray8ToWasm0(new_element, wasm.__wbindgen_export_1);
21539
+ const len0 = WASM_VECTOR_LEN;
21540
+ wasm.witnesswasm_push(this.__wbg_ptr, ptr0, len0);
21541
+ }
21542
+ }
21543
+
21544
+ const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
21545
+
21066
21546
  async function __wbg_load(module, imports) {
21067
21547
  if (typeof Response === 'function' && module instanceof Response) {
21068
21548
  if (typeof WebAssembly.instantiateStreaming === 'function') {
@@ -21070,7 +21550,9 @@ async function __wbg_load(module, imports) {
21070
21550
  return await WebAssembly.instantiateStreaming(module, imports);
21071
21551
 
21072
21552
  } catch (e) {
21073
- if (module.headers.get('Content-Type') != 'application/wasm') {
21553
+ const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
21554
+
21555
+ if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
21074
21556
  console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
21075
21557
 
21076
21558
  } else {
@@ -21097,14 +21579,22 @@ async function __wbg_load(module, imports) {
21097
21579
  function __wbg_get_imports() {
21098
21580
  const imports = {};
21099
21581
  imports.wbg = {};
21100
- imports.wbg.__wbg_BigInt_470dd987b8190f8e = function(arg0) {
21582
+ imports.wbg.__wbg_BigInt_6e3a01c3311ee796 = function(arg0) {
21101
21583
  const ret = BigInt(getObject(arg0));
21102
21584
  return addHeapObject(ret);
21103
21585
  };
21104
- imports.wbg.__wbg_BigInt_ddea6d2f55558acb = function() { return handleError(function (arg0) {
21586
+ imports.wbg.__wbg_BigInt_c7a77e48606f849e = function(arg0, arg1) {
21587
+ const ret = BigInt(getStringFromWasm0(arg0, arg1));
21588
+ return addHeapObject(ret);
21589
+ };
21590
+ imports.wbg.__wbg_BigInt_dda186faea58f4e9 = function() { return handleError(function (arg0) {
21105
21591
  const ret = BigInt(getObject(arg0));
21106
21592
  return addHeapObject(ret);
21107
21593
  }, arguments) };
21594
+ imports.wbg.__wbg_Error_0497d5bdba9362e5 = function(arg0, arg1) {
21595
+ const ret = Error(getStringFromWasm0(arg0, arg1));
21596
+ return addHeapObject(ret);
21597
+ };
21108
21598
  imports.wbg.__wbg_String_eecc4a11987127d6 = function(arg0, arg1) {
21109
21599
  const ret = String(getObject(arg1));
21110
21600
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
@@ -21128,16 +21618,16 @@ function __wbg_get_imports() {
21128
21618
  const ret = BlockBasedDistributionWASM.__wrap(arg0);
21129
21619
  return addHeapObject(ret);
21130
21620
  };
21131
- imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
21621
+ imports.wbg.__wbg_buffer_a1a27a0dfa70165d = function(arg0) {
21132
21622
  const ret = getObject(arg0).buffer;
21133
21623
  return addHeapObject(ret);
21134
21624
  };
21135
- imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
21136
- const ret = getObject(arg0).call(getObject(arg1));
21625
+ imports.wbg.__wbg_call_f2db6205e5c51dc8 = function() { return handleError(function (arg0, arg1, arg2) {
21626
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
21137
21627
  return addHeapObject(ret);
21138
21628
  }, arguments) };
21139
- imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
21140
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
21629
+ imports.wbg.__wbg_call_fbe8be8bf6436ce5 = function() { return handleError(function (arg0, arg1) {
21630
+ const ret = getObject(arg0).call(getObject(arg1));
21141
21631
  return addHeapObject(ret);
21142
21632
  }, arguments) };
21143
21633
  imports.wbg.__wbg_contenderwithserializeddocumentwasm_new = function(arg0) {
@@ -21192,11 +21682,11 @@ function __wbg_get_imports() {
21192
21682
  const ret = DocumentWASM.__wrap(arg0);
21193
21683
  return addHeapObject(ret);
21194
21684
  };
21195
- imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
21685
+ imports.wbg.__wbg_done_4d01f352bade43b7 = function(arg0) {
21196
21686
  const ret = getObject(arg0).done;
21197
21687
  return ret;
21198
21688
  };
21199
- imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
21689
+ imports.wbg.__wbg_entries_41651c850143b957 = function(arg0) {
21200
21690
  const ret = Object.entries(getObject(arg0));
21201
21691
  return addHeapObject(ret);
21202
21692
  };
@@ -21208,18 +21698,18 @@ function __wbg_get_imports() {
21208
21698
  const ret = ExtendedEpochInfoWASM.__wrap(arg0);
21209
21699
  return addHeapObject(ret);
21210
21700
  };
21211
- imports.wbg.__wbg_from_2a5d3e218e67aa85 = function(arg0) {
21701
+ imports.wbg.__wbg_from_12ff8e47307bd4c7 = function(arg0) {
21212
21702
  const ret = Array.from(getObject(arg0));
21213
21703
  return addHeapObject(ret);
21214
21704
  };
21215
21705
  imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
21216
21706
  getObject(arg0).getRandomValues(getObject(arg1));
21217
21707
  }, arguments) };
21218
- imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
21708
+ imports.wbg.__wbg_get_92470be87867c2e5 = function() { return handleError(function (arg0, arg1) {
21219
21709
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
21220
21710
  return addHeapObject(ret);
21221
21711
  }, arguments) };
21222
- imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
21712
+ imports.wbg.__wbg_get_a131a44bd1eb6979 = function(arg0, arg1) {
21223
21713
  const ret = getObject(arg0)[arg1 >>> 0];
21224
21714
  return addHeapObject(ret);
21225
21715
  };
@@ -21243,7 +21733,7 @@ function __wbg_get_imports() {
21243
21733
  const ret = IdentityPublicKeyWASM.__wrap(arg0);
21244
21734
  return addHeapObject(ret);
21245
21735
  };
21246
- imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
21736
+ imports.wbg.__wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc = function(arg0) {
21247
21737
  let result;
21248
21738
  try {
21249
21739
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -21253,7 +21743,7 @@ function __wbg_get_imports() {
21253
21743
  const ret = result;
21254
21744
  return ret;
21255
21745
  };
21256
- imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
21746
+ imports.wbg.__wbg_instanceof_Uint8Array_ca460677bc155827 = function(arg0) {
21257
21747
  let result;
21258
21748
  try {
21259
21749
  result = getObject(arg0) instanceof Uint8Array;
@@ -21263,27 +21753,31 @@ function __wbg_get_imports() {
21263
21753
  const ret = result;
21264
21754
  return ret;
21265
21755
  };
21266
- imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
21756
+ imports.wbg.__wbg_isArray_2a07fd175d45c496 = function(arg0) {
21267
21757
  const ret = Array.isArray(getObject(arg0));
21268
21758
  return ret;
21269
21759
  };
21270
- imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
21760
+ imports.wbg.__wbg_isArray_5f090bed72bd4f89 = function(arg0) {
21761
+ const ret = Array.isArray(getObject(arg0));
21762
+ return ret;
21763
+ };
21764
+ imports.wbg.__wbg_isSafeInteger_90d7c4674047d684 = function(arg0) {
21271
21765
  const ret = Number.isSafeInteger(getObject(arg0));
21272
21766
  return ret;
21273
21767
  };
21274
- imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
21768
+ imports.wbg.__wbg_iterator_4068add5b2aef7a6 = function() {
21275
21769
  const ret = Symbol.iterator;
21276
21770
  return addHeapObject(ret);
21277
21771
  };
21278
- imports.wbg.__wbg_keys_5c77a08ddc2fb8a6 = function(arg0) {
21772
+ imports.wbg.__wbg_keys_42062809bf87339e = function(arg0) {
21279
21773
  const ret = Object.keys(getObject(arg0));
21280
21774
  return addHeapObject(ret);
21281
21775
  };
21282
- imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
21776
+ imports.wbg.__wbg_length_ab6d22b5ead75c72 = function(arg0) {
21283
21777
  const ret = getObject(arg0).length;
21284
21778
  return ret;
21285
21779
  };
21286
- imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
21780
+ imports.wbg.__wbg_length_f00ec12454a5d9fd = function(arg0) {
21287
21781
  const ret = getObject(arg0).length;
21288
21782
  return ret;
21289
21783
  };
@@ -21291,43 +21785,43 @@ function __wbg_get_imports() {
21291
21785
  const ret = getObject(arg0).msCrypto;
21292
21786
  return addHeapObject(ret);
21293
21787
  };
21294
- imports.wbg.__wbg_new_405e22f390576ce2 = function() {
21788
+ imports.wbg.__wbg_new_07b483f72211fd66 = function() {
21295
21789
  const ret = new Object();
21296
21790
  return addHeapObject(ret);
21297
21791
  };
21298
- imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
21299
- const ret = new Map();
21792
+ imports.wbg.__wbg_new_58353953ad2097cc = function() {
21793
+ const ret = new Array();
21300
21794
  return addHeapObject(ret);
21301
21795
  };
21302
- imports.wbg.__wbg_new_78feb108b6472713 = function() {
21303
- const ret = new Array();
21796
+ imports.wbg.__wbg_new_a979b4b45bd55c7f = function() {
21797
+ const ret = new Map();
21304
21798
  return addHeapObject(ret);
21305
21799
  };
21306
- imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
21800
+ imports.wbg.__wbg_new_e52b3efaaa774f96 = function(arg0) {
21307
21801
  const ret = new Uint8Array(getObject(arg0));
21308
21802
  return addHeapObject(ret);
21309
21803
  };
21310
- imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
21311
- const ret = new Function(getStringFromWasm0(arg0, arg1));
21804
+ imports.wbg.__wbg_newfromslice_7c05ab1297cb2d88 = function(arg0, arg1) {
21805
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
21312
21806
  return addHeapObject(ret);
21313
21807
  };
21314
- imports.wbg.__wbg_newwithargs_ab6ffe8cd6c19c04 = function(arg0, arg1, arg2, arg3) {
21315
- const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
21808
+ imports.wbg.__wbg_newnoargs_ff528e72d35de39a = function(arg0, arg1) {
21809
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
21316
21810
  return addHeapObject(ret);
21317
21811
  };
21318
- imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
21812
+ imports.wbg.__wbg_newwithbyteoffsetandlength_3b01ecda099177e8 = function(arg0, arg1, arg2) {
21319
21813
  const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
21320
21814
  return addHeapObject(ret);
21321
21815
  };
21322
- imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
21816
+ imports.wbg.__wbg_newwithlength_08f872dc1e3ada2e = function(arg0) {
21323
21817
  const ret = new Uint8Array(arg0 >>> 0);
21324
21818
  return addHeapObject(ret);
21325
21819
  };
21326
- imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
21820
+ imports.wbg.__wbg_next_8bb824d217961b5d = function(arg0) {
21327
21821
  const ret = getObject(arg0).next;
21328
21822
  return addHeapObject(ret);
21329
21823
  };
21330
- imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
21824
+ imports.wbg.__wbg_next_e2da48d8fff7439a = function() { return handleError(function (arg0) {
21331
21825
  const ret = getObject(arg0).next();
21332
21826
  return addHeapObject(ret);
21333
21827
  }, arguments) };
@@ -21343,7 +21837,7 @@ function __wbg_get_imports() {
21343
21837
  const ret = getObject(arg0).process;
21344
21838
  return addHeapObject(ret);
21345
21839
  };
21346
- imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
21840
+ imports.wbg.__wbg_push_73fd7b5550ebf707 = function(arg0, arg1) {
21347
21841
  const ret = getObject(arg0).push(getObject(arg1));
21348
21842
  return ret;
21349
21843
  };
@@ -21354,44 +21848,47 @@ function __wbg_get_imports() {
21354
21848
  const ret = module.require;
21355
21849
  return addHeapObject(ret);
21356
21850
  }, arguments) };
21357
- imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
21358
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
21359
- };
21360
21851
  imports.wbg.__wbg_set_3807d5f0bfc24aa7 = function(arg0, arg1, arg2) {
21361
21852
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
21362
21853
  };
21363
- imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
21364
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
21365
- };
21366
- imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
21367
- const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
21368
- return addHeapObject(ret);
21854
+ imports.wbg.__wbg_set_7422acbe992d64ab = function(arg0, arg1, arg2) {
21855
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
21369
21856
  };
21370
- imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
21857
+ imports.wbg.__wbg_set_c43293f93a35998a = function() { return handleError(function (arg0, arg1, arg2) {
21371
21858
  const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
21372
21859
  return ret;
21373
21860
  }, arguments) };
21374
- imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
21861
+ imports.wbg.__wbg_set_d6bdfd275fb8a4ce = function(arg0, arg1, arg2) {
21862
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
21863
+ return addHeapObject(ret);
21864
+ };
21865
+ imports.wbg.__wbg_set_fe4e79d1ed3b0e9b = function(arg0, arg1, arg2) {
21866
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
21867
+ };
21868
+ imports.wbg.__wbg_static_accessor_GLOBAL_487c52c58d65314d = function() {
21375
21869
  const ret = typeof global === 'undefined' ? null : global;
21376
21870
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
21377
21871
  };
21378
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
21872
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_ee9704f328b6b291 = function() {
21379
21873
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
21380
21874
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
21381
21875
  };
21382
- imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
21876
+ imports.wbg.__wbg_static_accessor_SELF_78c9e3071b912620 = function() {
21383
21877
  const ret = typeof self === 'undefined' ? null : self;
21384
21878
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
21385
21879
  };
21386
- imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
21880
+ imports.wbg.__wbg_static_accessor_WINDOW_a093d21393777366 = function() {
21387
21881
  const ret = typeof window === 'undefined' ? null : window;
21388
21882
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
21389
21883
  };
21390
- imports.wbg.__wbg_stringify_b1b3844ae02664a1 = function() { return handleError(function (arg0, arg1) {
21391
- const ret = JSON.stringify(getObject(arg0), getObject(arg1));
21392
- return addHeapObject(ret);
21393
- }, arguments) };
21394
- imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
21884
+ imports.wbg.__wbg_stringify_163f24f3789f7316 = function(arg0, arg1) {
21885
+ const ret = stringify(takeObject(arg1));
21886
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
21887
+ const len1 = WASM_VECTOR_LEN;
21888
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
21889
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
21890
+ };
21891
+ imports.wbg.__wbg_subarray_dd4ade7d53bd8e26 = function(arg0, arg1, arg2) {
21395
21892
  const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
21396
21893
  return addHeapObject(ret);
21397
21894
  };
@@ -21399,21 +21896,21 @@ function __wbg_get_imports() {
21399
21896
  const ret = TimeBasedDistributionWASM.__wrap(arg0);
21400
21897
  return addHeapObject(ret);
21401
21898
  };
21402
- imports.wbg.__wbg_toString_2f76f493957b63da = function(arg0, arg1, arg2) {
21899
+ imports.wbg.__wbg_toString_21791a66666b3afd = function(arg0) {
21900
+ const ret = getObject(arg0).toString();
21901
+ return addHeapObject(ret);
21902
+ };
21903
+ imports.wbg.__wbg_toString_2a748bb7135f7e4d = function(arg0, arg1, arg2) {
21403
21904
  const ret = getObject(arg1).toString(arg2);
21404
21905
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
21405
21906
  const len1 = WASM_VECTOR_LEN;
21406
21907
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
21407
21908
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
21408
21909
  };
21409
- imports.wbg.__wbg_toString_b5d4438bc26b267c = function() { return handleError(function (arg0, arg1) {
21910
+ imports.wbg.__wbg_toString_e0223ef317f43fb7 = function() { return handleError(function (arg0, arg1) {
21410
21911
  const ret = getObject(arg0).toString(arg1);
21411
21912
  return addHeapObject(ret);
21412
21913
  }, arguments) };
21413
- imports.wbg.__wbg_toString_c813bbd34d063839 = function(arg0) {
21414
- const ret = getObject(arg0).toString();
21415
- return addHeapObject(ret);
21416
- };
21417
21914
  imports.wbg.__wbg_tokenburntransitionwasm_new = function(arg0) {
21418
21915
  const ret = TokenBurnTransitionWASM.__wrap(arg0);
21419
21916
  return addHeapObject(ret);
@@ -21486,7 +21983,15 @@ function __wbg_get_imports() {
21486
21983
  const ret = TokenUnFreezeTransitionWASM.__wrap(arg0);
21487
21984
  return addHeapObject(ret);
21488
21985
  };
21489
- imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
21986
+ imports.wbg.__wbg_txinwasm_new = function(arg0) {
21987
+ const ret = TxInWASM.__wrap(arg0);
21988
+ return addHeapObject(ret);
21989
+ };
21990
+ imports.wbg.__wbg_txoutwasm_new = function(arg0) {
21991
+ const ret = TxOutWASM.__wrap(arg0);
21992
+ return addHeapObject(ret);
21993
+ };
21994
+ imports.wbg.__wbg_value_17b896954e14f896 = function(arg0) {
21490
21995
  const ret = getObject(arg0).value;
21491
21996
  return addHeapObject(ret);
21492
21997
  };
@@ -21509,10 +22014,6 @@ function __wbg_get_imports() {
21509
22014
  const ret = arg0;
21510
22015
  return addHeapObject(ret);
21511
22016
  };
21512
- imports.wbg.__wbindgen_bigint_from_str = function(arg0, arg1) {
21513
- const ret = BigInt(getStringFromWasm0(arg0, arg1));
21514
- return addHeapObject(ret);
21515
- };
21516
22017
  imports.wbg.__wbindgen_bigint_from_u128 = function(arg0, arg1) {
21517
22018
  const ret = BigInt.asUintN(64, arg0) << BigInt(64) | BigInt.asUintN(64, arg1);
21518
22019
  return addHeapObject(ret);
@@ -21539,18 +22040,10 @@ function __wbg_get_imports() {
21539
22040
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
21540
22041
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
21541
22042
  };
21542
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
21543
- const ret = new Error(getStringFromWasm0(arg0, arg1));
21544
- return addHeapObject(ret);
21545
- };
21546
22043
  imports.wbg.__wbindgen_in = function(arg0, arg1) {
21547
22044
  const ret = getObject(arg0) in getObject(arg1);
21548
22045
  return ret;
21549
22046
  };
21550
- imports.wbg.__wbindgen_is_array = function(arg0) {
21551
- const ret = Array.isArray(getObject(arg0));
21552
- return ret;
21553
- };
21554
22047
  imports.wbg.__wbindgen_is_bigint = function(arg0) {
21555
22048
  const ret = typeof(getObject(arg0)) === 'bigint';
21556
22049
  return ret;