@applemusic-like-lyrics/lyric 0.1.1 → 0.2.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/pkg/lyric_bg.js CHANGED
@@ -4,53 +4,53 @@ export function __wbg_set_wasm(val) {
4
4
  }
5
5
 
6
6
 
7
- const heap = new Array(128).fill(undefined);
7
+ const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
8
8
 
9
- heap.push(undefined, null, true, false);
9
+ let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
10
10
 
11
- function getObject(idx) { return heap[idx]; }
11
+ cachedTextDecoder.decode();
12
12
 
13
- let heap_next = heap.length;
13
+ let cachedUint8Memory0 = null;
14
14
 
15
- function dropObject(idx) {
16
- if (idx < 132) return;
17
- heap[idx] = heap_next;
18
- heap_next = idx;
15
+ function getUint8Memory0() {
16
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
17
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
18
+ }
19
+ return cachedUint8Memory0;
19
20
  }
20
21
 
21
- function takeObject(idx) {
22
- const ret = getObject(idx);
23
- dropObject(idx);
24
- return ret;
22
+ function getStringFromWasm0(ptr, len) {
23
+ ptr = ptr >>> 0;
24
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
25
25
  }
26
26
 
27
+ const heap = new Array(128).fill(undefined);
28
+
29
+ heap.push(undefined, null, true, false);
30
+
31
+ let heap_next = heap.length;
32
+
27
33
  function addHeapObject(obj) {
28
34
  if (heap_next === heap.length) heap.push(heap.length + 1);
29
35
  const idx = heap_next;
30
36
  heap_next = heap[idx];
31
37
 
38
+ if (typeof(heap_next) !== 'number') throw new Error('corrupt heap');
39
+
32
40
  heap[idx] = obj;
33
41
  return idx;
34
42
  }
35
43
 
36
- const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
37
-
38
- let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
39
-
40
- cachedTextDecoder.decode();
41
-
42
- let cachedUint8Memory0 = null;
44
+ function getObject(idx) { return heap[idx]; }
43
45
 
44
- function getUint8Memory0() {
45
- if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
46
- cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
46
+ function _assertBoolean(n) {
47
+ if (typeof(n) !== 'boolean') {
48
+ throw new Error('expected a boolean argument');
47
49
  }
48
- return cachedUint8Memory0;
49
50
  }
50
51
 
51
- function getStringFromWasm0(ptr, len) {
52
- ptr = ptr >>> 0;
53
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
52
+ function _assertNum(n) {
53
+ if (typeof(n) !== 'number') throw new Error('expected a number argument');
54
54
  }
55
55
 
56
56
  let WASM_VECTOR_LEN = 0;
@@ -74,6 +74,8 @@ const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
74
74
 
75
75
  function passStringToWasm0(arg, malloc, realloc) {
76
76
 
77
+ if (typeof(arg) !== 'string') throw new Error('expected a string argument');
78
+
77
79
  if (realloc === undefined) {
78
80
  const buf = cachedTextEncoder.encode(arg);
79
81
  const ptr = malloc(buf.length, 1) >>> 0;
@@ -102,7 +104,7 @@ function passStringToWasm0(arg, malloc, realloc) {
102
104
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
103
105
  const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
104
106
  const ret = encodeString(arg, view);
105
-
107
+ if (ret.read !== arg.length) throw new Error('failed to pass whole string');
106
108
  offset += ret.written;
107
109
  }
108
110
 
@@ -123,6 +125,18 @@ function getInt32Memory0() {
123
125
  return cachedInt32Memory0;
124
126
  }
125
127
 
128
+ function dropObject(idx) {
129
+ if (idx < 132) return;
130
+ heap[idx] = heap_next;
131
+ heap_next = idx;
132
+ }
133
+
134
+ function takeObject(idx) {
135
+ const ret = getObject(idx);
136
+ dropObject(idx);
137
+ return ret;
138
+ }
139
+
126
140
  let cachedFloat64Memory0 = null;
127
141
 
128
142
  function getFloat64Memory0() {
@@ -132,15 +146,6 @@ function getFloat64Memory0() {
132
146
  return cachedFloat64Memory0;
133
147
  }
134
148
 
135
- let cachedBigInt64Memory0 = null;
136
-
137
- function getBigInt64Memory0() {
138
- if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
139
- cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
140
- }
141
- return cachedBigInt64Memory0;
142
- }
143
-
144
149
  function debugString(val) {
145
150
  // primitive types
146
151
  const type = typeof val;
@@ -205,16 +210,40 @@ function debugString(val) {
205
210
  // TODO we could test for more things here, like `Set`s and `Map`s.
206
211
  return className;
207
212
  }
213
+
214
+ function _assertBigInt(n) {
215
+ if (typeof(n) !== 'bigint') throw new Error('expected a bigint argument');
216
+ }
217
+
218
+ let cachedBigInt64Memory0 = null;
219
+
220
+ function getBigInt64Memory0() {
221
+ if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
222
+ cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
223
+ }
224
+ return cachedBigInt64Memory0;
225
+ }
226
+ /**
227
+ * @param {string} src
228
+ * @returns {any}
229
+ */
230
+ export function parseLrc(src) {
231
+ const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
232
+ const len0 = WASM_VECTOR_LEN;
233
+ const ret = wasm.parseLrc(ptr0, len0);
234
+ return takeObject(ret);
235
+ }
236
+
208
237
  /**
209
238
  * @param {any} lrc
210
239
  * @returns {string}
211
240
  */
212
- export function stringifyAss(lrc) {
241
+ export function stringifyLrc(lrc) {
213
242
  let deferred1_0;
214
243
  let deferred1_1;
215
244
  try {
216
245
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
217
- wasm.stringifyAss(retptr, addHeapObject(lrc));
246
+ wasm.stringifyLrc(retptr, addHeapObject(lrc));
218
247
  var r0 = getInt32Memory0()[retptr / 4 + 0];
219
248
  var r1 = getInt32Memory0()[retptr / 4 + 1];
220
249
  deferred1_0 = r0;
@@ -253,10 +282,10 @@ export function decryptQrcHex(hex_data) {
253
282
  * @param {string} src
254
283
  * @returns {any}
255
284
  */
256
- export function parseEslrc(src) {
285
+ export function parseLys(src) {
257
286
  const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
258
287
  const len0 = WASM_VECTOR_LEN;
259
- const ret = wasm.parseEslrc(ptr0, len0);
288
+ const ret = wasm.parseLys(ptr0, len0);
260
289
  return takeObject(ret);
261
290
  }
262
291
 
@@ -264,12 +293,12 @@ export function parseEslrc(src) {
264
293
  * @param {any} lrc
265
294
  * @returns {string}
266
295
  */
267
- export function stringifyEslrc(lrc) {
296
+ export function stringifyLys(lrc) {
268
297
  let deferred1_0;
269
298
  let deferred1_1;
270
299
  try {
271
300
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
272
- wasm.stringifyEslrc(retptr, addHeapObject(lrc));
301
+ wasm.stringifyLys(retptr, addHeapObject(lrc));
273
302
  var r0 = getInt32Memory0()[retptr / 4 + 0];
274
303
  var r1 = getInt32Memory0()[retptr / 4 + 1];
275
304
  deferred1_0 = r0;
@@ -285,10 +314,10 @@ export function stringifyEslrc(lrc) {
285
314
  * @param {string} src
286
315
  * @returns {any}
287
316
  */
288
- export function parseLrc(src) {
317
+ export function parseEslrc(src) {
289
318
  const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
290
319
  const len0 = WASM_VECTOR_LEN;
291
- const ret = wasm.parseLrc(ptr0, len0);
320
+ const ret = wasm.parseEslrc(ptr0, len0);
292
321
  return takeObject(ret);
293
322
  }
294
323
 
@@ -296,12 +325,12 @@ export function parseLrc(src) {
296
325
  * @param {any} lrc
297
326
  * @returns {string}
298
327
  */
299
- export function stringifyLrc(lrc) {
328
+ export function stringifyEslrc(lrc) {
300
329
  let deferred1_0;
301
330
  let deferred1_1;
302
331
  try {
303
332
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
304
- wasm.stringifyLrc(retptr, addHeapObject(lrc));
333
+ wasm.stringifyEslrc(retptr, addHeapObject(lrc));
305
334
  var r0 = getInt32Memory0()[retptr / 4 + 0];
306
335
  var r1 = getInt32Memory0()[retptr / 4 + 1];
307
336
  deferred1_0 = r0;
@@ -317,10 +346,10 @@ export function stringifyLrc(lrc) {
317
346
  * @param {string} src
318
347
  * @returns {any}
319
348
  */
320
- export function parseLys(src) {
349
+ export function parseYrc(src) {
321
350
  const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
322
351
  const len0 = WASM_VECTOR_LEN;
323
- const ret = wasm.parseLys(ptr0, len0);
352
+ const ret = wasm.parseYrc(ptr0, len0);
324
353
  return takeObject(ret);
325
354
  }
326
355
 
@@ -328,12 +357,12 @@ export function parseLys(src) {
328
357
  * @param {any} lrc
329
358
  * @returns {string}
330
359
  */
331
- export function stringifyLys(lrc) {
360
+ export function stringifyYrc(lrc) {
332
361
  let deferred1_0;
333
362
  let deferred1_1;
334
363
  try {
335
364
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
336
- wasm.stringifyLys(retptr, addHeapObject(lrc));
365
+ wasm.stringifyYrc(retptr, addHeapObject(lrc));
337
366
  var r0 = getInt32Memory0()[retptr / 4 + 0];
338
367
  var r1 = getInt32Memory0()[retptr / 4 + 1];
339
368
  deferred1_0 = r0;
@@ -377,39 +406,16 @@ export function stringifyQrc(lrc) {
377
406
  }
378
407
  }
379
408
 
380
- /**
381
- * When the `console_error_panic_hook` feature is enabled, we can call the
382
- * `set_panic_hook` function at least once during initialization, and then
383
- * we will get better error messages if our code ever panics.
384
- *
385
- * For more details see
386
- * https://github.com/rustwasm/console_error_panic_hook#readme
387
- */
388
- export function set_panic_hook() {
389
- wasm.set_panic_hook();
390
- }
391
-
392
- /**
393
- * @param {string} src
394
- * @returns {any}
395
- */
396
- export function parseYrc(src) {
397
- const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
398
- const len0 = WASM_VECTOR_LEN;
399
- const ret = wasm.parseYrc(ptr0, len0);
400
- return takeObject(ret);
401
- }
402
-
403
409
  /**
404
410
  * @param {any} lrc
405
411
  * @returns {string}
406
412
  */
407
- export function stringifyYrc(lrc) {
413
+ export function stringifyAss(lrc) {
408
414
  let deferred1_0;
409
415
  let deferred1_1;
410
416
  try {
411
417
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
412
- wasm.stringifyYrc(retptr, addHeapObject(lrc));
418
+ wasm.stringifyAss(retptr, addHeapObject(lrc));
413
419
  var r0 = getInt32Memory0()[retptr / 4 + 0];
414
420
  var r1 = getInt32Memory0()[retptr / 4 + 1];
415
421
  deferred1_0 = r0;
@@ -421,6 +427,34 @@ export function stringifyYrc(lrc) {
421
427
  }
422
428
  }
423
429
 
430
+ /**
431
+ * When the `console_error_panic_hook` feature is enabled, we can call the
432
+ * `set_panic_hook` function at least once during initialization, and then
433
+ * we will get better error messages if our code ever panics.
434
+ *
435
+ * For more details see
436
+ * https://github.com/rustwasm/console_error_panic_hook#readme
437
+ */
438
+ export function set_panic_hook() {
439
+ wasm.set_panic_hook();
440
+ }
441
+
442
+ function logError(f, args) {
443
+ try {
444
+ return f.apply(this, args);
445
+ } catch (e) {
446
+ let error = (function () {
447
+ try {
448
+ return e instanceof Error ? `${e.message}\n\nStack:\n${e.stack}` : e.toString();
449
+ } catch(_) {
450
+ return "<failed to stringify thrown value>";
451
+ }
452
+ }());
453
+ console.error("wasm-bindgen: imported JS function that was not marked as `catch` threw an error:", error);
454
+ throw e;
455
+ }
456
+ }
457
+
424
458
  function handleError(f, args) {
425
459
  try {
426
460
  return f.apply(this, args);
@@ -429,43 +463,27 @@ function handleError(f, args) {
429
463
  }
430
464
  }
431
465
 
432
- export function __wbindgen_object_drop_ref(arg0) {
433
- takeObject(arg0);
434
- };
435
-
436
- export function __wbindgen_is_bigint(arg0) {
437
- const ret = typeof(getObject(arg0)) === 'bigint';
438
- return ret;
439
- };
440
-
441
- export function __wbindgen_bigint_from_u64(arg0) {
442
- const ret = BigInt.asUintN(64, arg0);
443
- return addHeapObject(ret);
444
- };
445
-
446
- export function __wbindgen_jsval_eq(arg0, arg1) {
447
- const ret = getObject(arg0) === getObject(arg1);
448
- return ret;
449
- };
450
-
451
466
  export function __wbindgen_error_new(arg0, arg1) {
452
467
  const ret = new Error(getStringFromWasm0(arg0, arg1));
453
468
  return addHeapObject(ret);
454
469
  };
455
470
 
456
- export function __wbindgen_is_object(arg0) {
457
- const val = getObject(arg0);
458
- const ret = typeof(val) === 'object' && val !== null;
459
- return ret;
460
- };
461
-
462
471
  export function __wbindgen_is_undefined(arg0) {
463
472
  const ret = getObject(arg0) === undefined;
473
+ _assertBoolean(ret);
464
474
  return ret;
465
475
  };
466
476
 
467
477
  export function __wbindgen_in(arg0, arg1) {
468
478
  const ret = getObject(arg0) in getObject(arg1);
479
+ _assertBoolean(ret);
480
+ return ret;
481
+ };
482
+
483
+ export function __wbindgen_boolean_get(arg0) {
484
+ const v = getObject(arg0);
485
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
486
+ _assertNum(ret);
469
487
  return ret;
470
488
  };
471
489
 
@@ -478,26 +496,35 @@ export function __wbindgen_string_get(arg0, arg1) {
478
496
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
479
497
  };
480
498
 
481
- export function __wbindgen_boolean_get(arg0) {
482
- const v = getObject(arg0);
483
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
499
+ export function __wbindgen_is_bigint(arg0) {
500
+ const ret = typeof(getObject(arg0)) === 'bigint';
501
+ _assertBoolean(ret);
484
502
  return ret;
485
503
  };
486
504
 
487
- export function __wbg_new_abda76e883ba8a5f() {
488
- const ret = new Error();
505
+ export function __wbindgen_is_object(arg0) {
506
+ const val = getObject(arg0);
507
+ const ret = typeof(val) === 'object' && val !== null;
508
+ _assertBoolean(ret);
509
+ return ret;
510
+ };
511
+
512
+ export function __wbindgen_jsval_eq(arg0, arg1) {
513
+ const ret = getObject(arg0) === getObject(arg1);
514
+ _assertBoolean(ret);
515
+ return ret;
516
+ };
517
+
518
+ export function __wbindgen_bigint_from_u64(arg0) {
519
+ const ret = BigInt.asUintN(64, arg0);
489
520
  return addHeapObject(ret);
490
521
  };
491
522
 
492
- export function __wbg_stack_658279fe44541cf6(arg0, arg1) {
493
- const ret = getObject(arg1).stack;
494
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
495
- const len1 = WASM_VECTOR_LEN;
496
- getInt32Memory0()[arg0 / 4 + 1] = len1;
497
- getInt32Memory0()[arg0 / 4 + 0] = ptr1;
523
+ export function __wbindgen_object_drop_ref(arg0) {
524
+ takeObject(arg0);
498
525
  };
499
526
 
500
- export function __wbg_error_f851667af71bcfc6(arg0, arg1) {
527
+ export function __wbg_error_f851667af71bcfc6() { return logError(function (arg0, arg1) {
501
528
  let deferred0_0;
502
529
  let deferred0_1;
503
530
  try {
@@ -507,170 +534,188 @@ export function __wbg_error_f851667af71bcfc6(arg0, arg1) {
507
534
  } finally {
508
535
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
509
536
  }
510
- };
537
+ }, arguments) };
511
538
 
512
- export function __wbindgen_jsval_loose_eq(arg0, arg1) {
513
- const ret = getObject(arg0) == getObject(arg1);
539
+ export function __wbg_new_abda76e883ba8a5f() { return logError(function () {
540
+ const ret = new Error();
541
+ return addHeapObject(ret);
542
+ }, arguments) };
543
+
544
+ export function __wbg_stack_658279fe44541cf6() { return logError(function (arg0, arg1) {
545
+ const ret = getObject(arg1).stack;
546
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
547
+ const len1 = WASM_VECTOR_LEN;
548
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
549
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
550
+ }, arguments) };
551
+
552
+ export function __wbindgen_as_number(arg0) {
553
+ const ret = +getObject(arg0);
514
554
  return ret;
515
555
  };
516
556
 
517
557
  export function __wbindgen_number_get(arg0, arg1) {
518
558
  const obj = getObject(arg1);
519
559
  const ret = typeof(obj) === 'number' ? obj : undefined;
560
+ if (!isLikeNone(ret)) {
561
+ _assertNum(ret);
562
+ }
520
563
  getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
521
564
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
522
565
  };
523
566
 
524
- export function __wbindgen_as_number(arg0) {
525
- const ret = +getObject(arg0);
526
- return ret;
527
- };
528
-
529
567
  export function __wbindgen_number_new(arg0) {
530
568
  const ret = arg0;
531
569
  return addHeapObject(ret);
532
570
  };
533
571
 
534
- export function __wbindgen_object_clone_ref(arg0) {
535
- const ret = getObject(arg0);
572
+ export function __wbindgen_string_new(arg0, arg1) {
573
+ const ret = getStringFromWasm0(arg0, arg1);
536
574
  return addHeapObject(ret);
537
575
  };
538
576
 
539
- export function __wbindgen_string_new(arg0, arg1) {
540
- const ret = getStringFromWasm0(arg0, arg1);
577
+ export function __wbindgen_jsval_loose_eq(arg0, arg1) {
578
+ const ret = getObject(arg0) == getObject(arg1);
579
+ _assertBoolean(ret);
580
+ return ret;
581
+ };
582
+
583
+ export function __wbindgen_object_clone_ref(arg0) {
584
+ const ret = getObject(arg0);
541
585
  return addHeapObject(ret);
542
586
  };
543
587
 
544
- export function __wbg_getwithrefkey_4a92a5eca60879b9(arg0, arg1) {
588
+ export function __wbg_getwithrefkey_4a92a5eca60879b9() { return logError(function (arg0, arg1) {
545
589
  const ret = getObject(arg0)[getObject(arg1)];
546
590
  return addHeapObject(ret);
547
- };
591
+ }, arguments) };
548
592
 
549
- export function __wbg_set_9182712abebf82ef(arg0, arg1, arg2) {
593
+ export function __wbg_set_9182712abebf82ef() { return logError(function (arg0, arg1, arg2) {
550
594
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
551
- };
595
+ }, arguments) };
552
596
 
553
- export function __wbg_get_44be0491f933a435(arg0, arg1) {
597
+ export function __wbg_new_898a68150f225f2e() { return logError(function () {
598
+ const ret = new Array();
599
+ return addHeapObject(ret);
600
+ }, arguments) };
601
+
602
+ export function __wbg_get_44be0491f933a435() { return logError(function (arg0, arg1) {
554
603
  const ret = getObject(arg0)[arg1 >>> 0];
555
604
  return addHeapObject(ret);
556
- };
605
+ }, arguments) };
557
606
 
558
- export function __wbg_length_fff51ee6522a1a18(arg0) {
559
- const ret = getObject(arg0).length;
607
+ export function __wbg_set_502d29070ea18557() { return logError(function (arg0, arg1, arg2) {
608
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
609
+ }, arguments) };
610
+
611
+ export function __wbg_isArray_4c24b343cb13cfb1() { return logError(function (arg0) {
612
+ const ret = Array.isArray(getObject(arg0));
613
+ _assertBoolean(ret);
560
614
  return ret;
561
- };
615
+ }, arguments) };
562
616
 
563
- export function __wbg_new_898a68150f225f2e() {
564
- const ret = new Array();
565
- return addHeapObject(ret);
566
- };
617
+ export function __wbg_length_fff51ee6522a1a18() { return logError(function (arg0) {
618
+ const ret = getObject(arg0).length;
619
+ _assertNum(ret);
620
+ return ret;
621
+ }, arguments) };
567
622
 
568
- export function __wbindgen_is_function(arg0) {
569
- const ret = typeof(getObject(arg0)) === 'function';
623
+ export function __wbg_instanceof_ArrayBuffer_39ac22089b74fddb() { return logError(function (arg0) {
624
+ let result;
625
+ try {
626
+ result = getObject(arg0) instanceof ArrayBuffer;
627
+ } catch {
628
+ result = false;
629
+ }
630
+ const ret = result;
631
+ _assertBoolean(ret);
570
632
  return ret;
571
- };
633
+ }, arguments) };
572
634
 
573
- export function __wbg_next_526fc47e980da008(arg0) {
574
- const ret = getObject(arg0).next;
635
+ export function __wbg_call_cb65541d95d71282() { return handleError(function (arg0, arg1) {
636
+ const ret = getObject(arg0).call(getObject(arg1));
575
637
  return addHeapObject(ret);
576
- };
638
+ }, arguments) };
577
639
 
578
640
  export function __wbg_next_ddb3312ca1c4e32a() { return handleError(function (arg0) {
579
641
  const ret = getObject(arg0).next();
580
642
  return addHeapObject(ret);
581
643
  }, arguments) };
582
644
 
583
- export function __wbg_done_5c1f01fb660d73b5(arg0) {
645
+ export function __wbg_next_526fc47e980da008() { return logError(function (arg0) {
646
+ const ret = getObject(arg0).next;
647
+ return addHeapObject(ret);
648
+ }, arguments) };
649
+
650
+ export function __wbg_done_5c1f01fb660d73b5() { return logError(function (arg0) {
584
651
  const ret = getObject(arg0).done;
652
+ _assertBoolean(ret);
585
653
  return ret;
586
- };
654
+ }, arguments) };
587
655
 
588
- export function __wbg_value_1695675138684bd5(arg0) {
656
+ export function __wbg_value_1695675138684bd5() { return logError(function (arg0) {
589
657
  const ret = getObject(arg0).value;
590
658
  return addHeapObject(ret);
591
- };
592
-
593
- export function __wbg_iterator_97f0c81209c6c35a() {
594
- const ret = Symbol.iterator;
595
- return addHeapObject(ret);
596
- };
597
-
598
- export function __wbg_get_97b561fb56f034b5() { return handleError(function (arg0, arg1) {
599
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
600
- return addHeapObject(ret);
601
659
  }, arguments) };
602
660
 
603
- export function __wbg_call_cb65541d95d71282() { return handleError(function (arg0, arg1) {
604
- const ret = getObject(arg0).call(getObject(arg1));
605
- return addHeapObject(ret);
661
+ export function __wbg_isSafeInteger_bb8e18dd21c97288() { return logError(function (arg0) {
662
+ const ret = Number.isSafeInteger(getObject(arg0));
663
+ _assertBoolean(ret);
664
+ return ret;
606
665
  }, arguments) };
607
666
 
608
- export function __wbg_new_b51585de1b234aff() {
667
+ export function __wbg_new_b51585de1b234aff() { return logError(function () {
609
668
  const ret = new Object();
610
669
  return addHeapObject(ret);
611
- };
612
-
613
- export function __wbg_set_502d29070ea18557(arg0, arg1, arg2) {
614
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
615
- };
670
+ }, arguments) };
616
671
 
617
- export function __wbg_isArray_4c24b343cb13cfb1(arg0) {
618
- const ret = Array.isArray(getObject(arg0));
619
- return ret;
620
- };
672
+ export function __wbg_iterator_97f0c81209c6c35a() { return logError(function () {
673
+ const ret = Symbol.iterator;
674
+ return addHeapObject(ret);
675
+ }, arguments) };
621
676
 
622
- export function __wbg_instanceof_ArrayBuffer_39ac22089b74fddb(arg0) {
677
+ export function __wbg_instanceof_Uint8Array_d8d9cb2b8e8ac1d4() { return logError(function (arg0) {
623
678
  let result;
624
679
  try {
625
- result = getObject(arg0) instanceof ArrayBuffer;
680
+ result = getObject(arg0) instanceof Uint8Array;
626
681
  } catch {
627
682
  result = false;
628
683
  }
629
684
  const ret = result;
685
+ _assertBoolean(ret);
630
686
  return ret;
631
- };
632
-
633
- export function __wbg_isSafeInteger_bb8e18dd21c97288(arg0) {
634
- const ret = Number.isSafeInteger(getObject(arg0));
635
- return ret;
636
- };
637
-
638
- export function __wbg_buffer_085ec1f694018c4f(arg0) {
639
- const ret = getObject(arg0).buffer;
640
- return addHeapObject(ret);
641
- };
687
+ }, arguments) };
642
688
 
643
- export function __wbg_new_8125e318e6245eed(arg0) {
689
+ export function __wbg_new_8125e318e6245eed() { return logError(function (arg0) {
644
690
  const ret = new Uint8Array(getObject(arg0));
645
691
  return addHeapObject(ret);
646
- };
647
-
648
- export function __wbg_set_5cf90238115182c3(arg0, arg1, arg2) {
649
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
650
- };
692
+ }, arguments) };
651
693
 
652
- export function __wbg_length_72e2208bbc0efc61(arg0) {
694
+ export function __wbg_length_72e2208bbc0efc61() { return logError(function (arg0) {
653
695
  const ret = getObject(arg0).length;
696
+ _assertNum(ret);
654
697
  return ret;
655
- };
698
+ }, arguments) };
656
699
 
657
- export function __wbg_instanceof_Uint8Array_d8d9cb2b8e8ac1d4(arg0) {
658
- let result;
659
- try {
660
- result = getObject(arg0) instanceof Uint8Array;
661
- } catch {
662
- result = false;
663
- }
664
- const ret = result;
700
+ export function __wbg_set_5cf90238115182c3() { return logError(function (arg0, arg1, arg2) {
701
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
702
+ }, arguments) };
703
+
704
+ export function __wbindgen_is_function(arg0) {
705
+ const ret = typeof(getObject(arg0)) === 'function';
706
+ _assertBoolean(ret);
665
707
  return ret;
666
708
  };
667
709
 
668
- export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
669
- const v = getObject(arg1);
670
- const ret = typeof(v) === 'bigint' ? v : undefined;
671
- getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
672
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
673
- };
710
+ export function __wbg_get_97b561fb56f034b5() { return handleError(function (arg0, arg1) {
711
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
712
+ return addHeapObject(ret);
713
+ }, arguments) };
714
+
715
+ export function __wbg_buffer_085ec1f694018c4f() { return logError(function (arg0) {
716
+ const ret = getObject(arg0).buffer;
717
+ return addHeapObject(ret);
718
+ }, arguments) };
674
719
 
675
720
  export function __wbindgen_debug_string(arg0, arg1) {
676
721
  const ret = debugString(getObject(arg1));
@@ -680,6 +725,16 @@ export function __wbindgen_debug_string(arg0, arg1) {
680
725
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
681
726
  };
682
727
 
728
+ export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
729
+ const v = getObject(arg1);
730
+ const ret = typeof(v) === 'bigint' ? v : undefined;
731
+ if (!isLikeNone(ret)) {
732
+ _assertBigInt(ret);
733
+ }
734
+ getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
735
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
736
+ };
737
+
683
738
  export function __wbindgen_throw(arg0, arg1) {
684
739
  throw new Error(getStringFromWasm0(arg0, arg1));
685
740
  };