@swc/wasm 1.3.61 → 1.3.63
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/package.json +1 -1
- package/wasm.js +141 -141
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.js
CHANGED
|
@@ -1,28 +1,35 @@
|
|
|
1
1
|
let imports = {};
|
|
2
2
|
imports['__wbindgen_placeholder__'] = module.exports;
|
|
3
3
|
let wasm;
|
|
4
|
-
const {
|
|
4
|
+
const { TextEncoder, TextDecoder } = require(`util`);
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
const heap = new Array(128).fill(undefined);
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
heap.push(undefined, null, true, false);
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
function getObject(idx) { return heap[idx]; }
|
|
11
11
|
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
15
|
-
}
|
|
16
|
-
return cachedUint8Memory0;
|
|
12
|
+
function isLikeNone(x) {
|
|
13
|
+
return x === undefined || x === null;
|
|
17
14
|
}
|
|
18
15
|
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
let cachedBigInt64Memory0 = null;
|
|
17
|
+
|
|
18
|
+
function getBigInt64Memory0() {
|
|
19
|
+
if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
|
|
20
|
+
cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
|
|
21
|
+
}
|
|
22
|
+
return cachedBigInt64Memory0;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
|
-
|
|
25
|
+
let cachedInt32Memory0 = null;
|
|
24
26
|
|
|
25
|
-
|
|
27
|
+
function getInt32Memory0() {
|
|
28
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
29
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
30
|
+
}
|
|
31
|
+
return cachedInt32Memory0;
|
|
32
|
+
}
|
|
26
33
|
|
|
27
34
|
let heap_next = heap.length;
|
|
28
35
|
|
|
@@ -35,8 +42,6 @@ function addHeapObject(obj) {
|
|
|
35
42
|
return idx;
|
|
36
43
|
}
|
|
37
44
|
|
|
38
|
-
function getObject(idx) { return heap[idx]; }
|
|
39
|
-
|
|
40
45
|
function dropObject(idx) {
|
|
41
46
|
if (idx < 132) return;
|
|
42
47
|
heap[idx] = heap_next;
|
|
@@ -49,8 +54,26 @@ function takeObject(idx) {
|
|
|
49
54
|
return ret;
|
|
50
55
|
}
|
|
51
56
|
|
|
57
|
+
let cachedFloat64Memory0 = null;
|
|
58
|
+
|
|
59
|
+
function getFloat64Memory0() {
|
|
60
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
61
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
62
|
+
}
|
|
63
|
+
return cachedFloat64Memory0;
|
|
64
|
+
}
|
|
65
|
+
|
|
52
66
|
let WASM_VECTOR_LEN = 0;
|
|
53
67
|
|
|
68
|
+
let cachedUint8Memory0 = null;
|
|
69
|
+
|
|
70
|
+
function getUint8Memory0() {
|
|
71
|
+
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
72
|
+
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
|
|
73
|
+
}
|
|
74
|
+
return cachedUint8Memory0;
|
|
75
|
+
}
|
|
76
|
+
|
|
54
77
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
55
78
|
|
|
56
79
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -104,35 +127,12 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
104
127
|
return ptr;
|
|
105
128
|
}
|
|
106
129
|
|
|
107
|
-
|
|
108
|
-
return x === undefined || x === null;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
let cachedInt32Memory0 = null;
|
|
112
|
-
|
|
113
|
-
function getInt32Memory0() {
|
|
114
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
115
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
116
|
-
}
|
|
117
|
-
return cachedInt32Memory0;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
let cachedBigInt64Memory0 = null;
|
|
121
|
-
|
|
122
|
-
function getBigInt64Memory0() {
|
|
123
|
-
if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
|
|
124
|
-
cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
|
|
125
|
-
}
|
|
126
|
-
return cachedBigInt64Memory0;
|
|
127
|
-
}
|
|
130
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
128
131
|
|
|
129
|
-
|
|
132
|
+
cachedTextDecoder.decode();
|
|
130
133
|
|
|
131
|
-
function
|
|
132
|
-
|
|
133
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
134
|
-
}
|
|
135
|
-
return cachedFloat64Memory0;
|
|
134
|
+
function getStringFromWasm0(ptr, len) {
|
|
135
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
function debugString(val) {
|
|
@@ -396,98 +396,11 @@ function __wbg_adapter_110(arg0, arg1, arg2, arg3) {
|
|
|
396
396
|
wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
-
module.exports.__wbg_new_f9876326328f45ed = function() {
|
|
400
|
-
const ret = new Object();
|
|
401
|
-
return addHeapObject(ret);
|
|
402
|
-
};
|
|
403
|
-
|
|
404
|
-
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
405
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
406
|
-
return addHeapObject(ret);
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
410
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
411
|
-
};
|
|
412
|
-
|
|
413
|
-
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
414
|
-
takeObject(arg0);
|
|
415
|
-
};
|
|
416
|
-
|
|
417
|
-
module.exports.__wbg_new_b525de17f44a8943 = function() {
|
|
418
|
-
const ret = new Array();
|
|
419
|
-
return addHeapObject(ret);
|
|
420
|
-
};
|
|
421
|
-
|
|
422
|
-
module.exports.__wbg_set_17224bc548dd1d7b = function(arg0, arg1, arg2) {
|
|
423
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
424
|
-
};
|
|
425
|
-
|
|
426
|
-
module.exports.__wbg_new_f841cc6f2098f4b5 = function() {
|
|
427
|
-
const ret = new Map();
|
|
428
|
-
return addHeapObject(ret);
|
|
429
|
-
};
|
|
430
|
-
|
|
431
|
-
module.exports.__wbg_set_388c4c6422704173 = function(arg0, arg1, arg2) {
|
|
432
|
-
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
433
|
-
return addHeapObject(ret);
|
|
434
|
-
};
|
|
435
|
-
|
|
436
|
-
module.exports.__wbindgen_is_string = function(arg0) {
|
|
437
|
-
const ret = typeof(getObject(arg0)) === 'string';
|
|
438
|
-
return ret;
|
|
439
|
-
};
|
|
440
|
-
|
|
441
399
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
442
400
|
const ret = getObject(arg0) == getObject(arg1);
|
|
443
401
|
return ret;
|
|
444
402
|
};
|
|
445
403
|
|
|
446
|
-
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
447
|
-
const obj = getObject(arg1);
|
|
448
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
449
|
-
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
450
|
-
var len0 = WASM_VECTOR_LEN;
|
|
451
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
452
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
453
|
-
};
|
|
454
|
-
|
|
455
|
-
module.exports.__wbindgen_is_object = function(arg0) {
|
|
456
|
-
const val = getObject(arg0);
|
|
457
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
458
|
-
return ret;
|
|
459
|
-
};
|
|
460
|
-
|
|
461
|
-
module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
462
|
-
const ret = getObject(arg0)[getObject(arg1)];
|
|
463
|
-
return addHeapObject(ret);
|
|
464
|
-
};
|
|
465
|
-
|
|
466
|
-
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
467
|
-
const ret = getObject(arg0) === undefined;
|
|
468
|
-
return ret;
|
|
469
|
-
};
|
|
470
|
-
|
|
471
|
-
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
472
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
473
|
-
return ret;
|
|
474
|
-
};
|
|
475
|
-
|
|
476
|
-
module.exports.__wbg_entries_4e1315b774245952 = function(arg0) {
|
|
477
|
-
const ret = Object.entries(getObject(arg0));
|
|
478
|
-
return addHeapObject(ret);
|
|
479
|
-
};
|
|
480
|
-
|
|
481
|
-
module.exports.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
|
|
482
|
-
const ret = getObject(arg0).length;
|
|
483
|
-
return ret;
|
|
484
|
-
};
|
|
485
|
-
|
|
486
|
-
module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
|
|
487
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
488
|
-
return addHeapObject(ret);
|
|
489
|
-
};
|
|
490
|
-
|
|
491
404
|
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
492
405
|
const v = getObject(arg0);
|
|
493
406
|
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
@@ -516,6 +429,10 @@ module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
|
516
429
|
return ret;
|
|
517
430
|
};
|
|
518
431
|
|
|
432
|
+
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
433
|
+
takeObject(arg0);
|
|
434
|
+
};
|
|
435
|
+
|
|
519
436
|
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
520
437
|
const obj = getObject(arg1);
|
|
521
438
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
@@ -528,16 +445,41 @@ module.exports.__wbg_isSafeInteger_8c4789029e885159 = function(arg0) {
|
|
|
528
445
|
return ret;
|
|
529
446
|
};
|
|
530
447
|
|
|
448
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
449
|
+
const obj = getObject(arg1);
|
|
450
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
451
|
+
var ptr0 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
452
|
+
var len0 = WASM_VECTOR_LEN;
|
|
453
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
454
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
455
|
+
};
|
|
456
|
+
|
|
531
457
|
module.exports.__wbg_isArray_39d28997bf6b96b4 = function(arg0) {
|
|
532
458
|
const ret = Array.isArray(getObject(arg0));
|
|
533
459
|
return ret;
|
|
534
460
|
};
|
|
535
461
|
|
|
462
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
463
|
+
const val = getObject(arg0);
|
|
464
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
465
|
+
return ret;
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
module.exports.__wbg_length_e498fbc24f9c1d4f = function(arg0) {
|
|
469
|
+
const ret = getObject(arg0).length;
|
|
470
|
+
return ret;
|
|
471
|
+
};
|
|
472
|
+
|
|
536
473
|
module.exports.__wbg_iterator_55f114446221aa5a = function() {
|
|
537
474
|
const ret = Symbol.iterator;
|
|
538
475
|
return addHeapObject(ret);
|
|
539
476
|
};
|
|
540
477
|
|
|
478
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
479
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
480
|
+
return ret;
|
|
481
|
+
};
|
|
482
|
+
|
|
541
483
|
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
542
484
|
const ret = BigInt.asUintN(64, arg0);
|
|
543
485
|
return addHeapObject(ret);
|
|
@@ -558,8 +500,8 @@ module.exports.__wbg_value_6ac8da5cc5b3efda = function(arg0) {
|
|
|
558
500
|
return addHeapObject(ret);
|
|
559
501
|
};
|
|
560
502
|
|
|
561
|
-
module.exports.
|
|
562
|
-
const ret = arg0;
|
|
503
|
+
module.exports.__wbg_get_27fe3dac1c4d0224 = function(arg0, arg1) {
|
|
504
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
563
505
|
return addHeapObject(ret);
|
|
564
506
|
};
|
|
565
507
|
|
|
@@ -568,11 +510,54 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
|
568
510
|
return addHeapObject(ret);
|
|
569
511
|
};
|
|
570
512
|
|
|
513
|
+
module.exports.__wbg_new_f9876326328f45ed = function() {
|
|
514
|
+
const ret = new Object();
|
|
515
|
+
return addHeapObject(ret);
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
519
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
520
|
+
return addHeapObject(ret);
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
524
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
module.exports.__wbindgen_is_string = function(arg0) {
|
|
528
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
529
|
+
return ret;
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
module.exports.__wbg_new_b525de17f44a8943 = function() {
|
|
533
|
+
const ret = new Array();
|
|
534
|
+
return addHeapObject(ret);
|
|
535
|
+
};
|
|
536
|
+
|
|
537
|
+
module.exports.__wbg_set_17224bc548dd1d7b = function(arg0, arg1, arg2) {
|
|
538
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
539
|
+
};
|
|
540
|
+
|
|
541
|
+
module.exports.__wbg_new_f841cc6f2098f4b5 = function() {
|
|
542
|
+
const ret = new Map();
|
|
543
|
+
return addHeapObject(ret);
|
|
544
|
+
};
|
|
545
|
+
|
|
546
|
+
module.exports.__wbg_set_388c4c6422704173 = function(arg0, arg1, arg2) {
|
|
547
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
548
|
+
return addHeapObject(ret);
|
|
549
|
+
};
|
|
550
|
+
|
|
571
551
|
module.exports.__wbindgen_is_null = function(arg0) {
|
|
572
552
|
const ret = getObject(arg0) === null;
|
|
573
553
|
return ret;
|
|
574
554
|
};
|
|
575
555
|
|
|
556
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
557
|
+
const ret = getObject(arg0) === undefined;
|
|
558
|
+
return ret;
|
|
559
|
+
};
|
|
560
|
+
|
|
576
561
|
module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
|
|
577
562
|
try {
|
|
578
563
|
var state0 = {a: arg0, b: arg1};
|
|
@@ -592,6 +577,21 @@ module.exports.__wbg_new_9d3a9ce4282a18a8 = function(arg0, arg1) {
|
|
|
592
577
|
}
|
|
593
578
|
};
|
|
594
579
|
|
|
580
|
+
module.exports.__wbg_entries_4e1315b774245952 = function(arg0) {
|
|
581
|
+
const ret = Object.entries(getObject(arg0));
|
|
582
|
+
return addHeapObject(ret);
|
|
583
|
+
};
|
|
584
|
+
|
|
585
|
+
module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
586
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
587
|
+
return addHeapObject(ret);
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
591
|
+
const ret = arg0;
|
|
592
|
+
return addHeapObject(ret);
|
|
593
|
+
};
|
|
594
|
+
|
|
595
595
|
module.exports.__wbg_call_9495de66fdbe016b = function() { return handleError(function (arg0, arg1, arg2) {
|
|
596
596
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
597
597
|
return addHeapObject(ret);
|
|
@@ -706,6 +706,14 @@ module.exports.__wbg_set_17499e8aa4003ebd = function(arg0, arg1, arg2) {
|
|
|
706
706
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
707
707
|
};
|
|
708
708
|
|
|
709
|
+
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
710
|
+
const ret = debugString(getObject(arg1));
|
|
711
|
+
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
712
|
+
const len0 = WASM_VECTOR_LEN;
|
|
713
|
+
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
714
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
715
|
+
};
|
|
716
|
+
|
|
709
717
|
module.exports.__wbg_instanceof_Uint8Array_01cebe79ca606cca = function(arg0) {
|
|
710
718
|
let result;
|
|
711
719
|
try {
|
|
@@ -736,14 +744,6 @@ module.exports.__wbg_String_91fba7ded13ba54c = function(arg0, arg1) {
|
|
|
736
744
|
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
737
745
|
};
|
|
738
746
|
|
|
739
|
-
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
740
|
-
const ret = debugString(getObject(arg1));
|
|
741
|
-
const ptr0 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
742
|
-
const len0 = WASM_VECTOR_LEN;
|
|
743
|
-
getInt32Memory0()[arg0 / 4 + 1] = len0;
|
|
744
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
|
|
745
|
-
};
|
|
746
|
-
|
|
747
747
|
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
748
748
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
749
749
|
};
|
|
@@ -768,8 +768,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
768
768
|
return ret;
|
|
769
769
|
};
|
|
770
770
|
|
|
771
|
-
module.exports.
|
|
772
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
771
|
+
module.exports.__wbindgen_closure_wrapper14875 = function(arg0, arg1, arg2) {
|
|
772
|
+
const ret = makeMutClosure(arg0, arg1, 241, __wbg_adapter_50);
|
|
773
773
|
return addHeapObject(ret);
|
|
774
774
|
};
|
|
775
775
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|