@next/swc-wasm-nodejs 14.1.2-canary.5 → 14.1.2-canary.7
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.d.ts +7 -11
- package/wasm.js +291 -292
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -37,18 +37,14 @@ export function transformSync(s: any, opts: any): any;
|
|
|
37
37
|
*/
|
|
38
38
|
export function transform(s: any, opts: any): Promise<any>;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* sine our wasm bindings does not have access to the file system
|
|
44
|
-
* @param {string} page_file_path
|
|
45
|
-
* @param {string} page_contents
|
|
46
|
-
* @returns {Promise<any>}
|
|
40
|
+
* @param {string} s
|
|
41
|
+
* @param {any} opts
|
|
42
|
+
* @returns {any}
|
|
47
43
|
*/
|
|
48
|
-
export function
|
|
44
|
+
export function parseSync(s: string, opts: any): any;
|
|
49
45
|
/**
|
|
50
|
-
* @param {string}
|
|
51
|
-
* @param {
|
|
46
|
+
* @param {string} s
|
|
47
|
+
* @param {any} opts
|
|
52
48
|
* @returns {Promise<any>}
|
|
53
49
|
*/
|
|
54
|
-
export function
|
|
50
|
+
export function parse(s: string, opts: any): Promise<any>;
|
package/wasm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
|
@@ -23,18 +23,7 @@ function takeObject(idx) {
|
|
|
23
23
|
return ret;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
28
|
-
const idx = heap_next;
|
|
29
|
-
heap_next = heap[idx];
|
|
30
|
-
|
|
31
|
-
heap[idx] = obj;
|
|
32
|
-
return idx;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
36
|
-
|
|
37
|
-
cachedTextDecoder.decode();
|
|
26
|
+
let WASM_VECTOR_LEN = 0;
|
|
38
27
|
|
|
39
28
|
let cachedUint8Memory0 = null;
|
|
40
29
|
|
|
@@ -45,35 +34,6 @@ function getUint8Memory0() {
|
|
|
45
34
|
return cachedUint8Memory0;
|
|
46
35
|
}
|
|
47
36
|
|
|
48
|
-
function getStringFromWasm0(ptr, len) {
|
|
49
|
-
ptr = ptr >>> 0;
|
|
50
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function isLikeNone(x) {
|
|
54
|
-
return x === undefined || x === null;
|
|
55
|
-
}
|
|
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
|
-
|
|
66
|
-
let cachedInt32Memory0 = null;
|
|
67
|
-
|
|
68
|
-
function getInt32Memory0() {
|
|
69
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
70
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
71
|
-
}
|
|
72
|
-
return cachedInt32Memory0;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
let WASM_VECTOR_LEN = 0;
|
|
76
|
-
|
|
77
37
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
78
38
|
|
|
79
39
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
@@ -128,6 +88,46 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
128
88
|
return ptr;
|
|
129
89
|
}
|
|
130
90
|
|
|
91
|
+
function isLikeNone(x) {
|
|
92
|
+
return x === undefined || x === null;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
let cachedInt32Memory0 = null;
|
|
96
|
+
|
|
97
|
+
function getInt32Memory0() {
|
|
98
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
99
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
100
|
+
}
|
|
101
|
+
return cachedInt32Memory0;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function addHeapObject(obj) {
|
|
105
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
106
|
+
const idx = heap_next;
|
|
107
|
+
heap_next = heap[idx];
|
|
108
|
+
|
|
109
|
+
heap[idx] = obj;
|
|
110
|
+
return idx;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
let cachedFloat64Memory0 = null;
|
|
114
|
+
|
|
115
|
+
function getFloat64Memory0() {
|
|
116
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
117
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
118
|
+
}
|
|
119
|
+
return cachedFloat64Memory0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
123
|
+
|
|
124
|
+
cachedTextDecoder.decode();
|
|
125
|
+
|
|
126
|
+
function getStringFromWasm0(ptr, len) {
|
|
127
|
+
ptr = ptr >>> 0;
|
|
128
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
129
|
+
}
|
|
130
|
+
|
|
131
131
|
let cachedBigInt64Memory0 = null;
|
|
132
132
|
|
|
133
133
|
function getBigInt64Memory0() {
|
|
@@ -233,26 +233,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
233
233
|
return real;
|
|
234
234
|
}
|
|
235
235
|
function __wbg_adapter_48(arg0, arg1, arg2) {
|
|
236
|
-
wasm.
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
function getCachedStringFromWasm0(ptr, len) {
|
|
240
|
-
if (ptr === 0) {
|
|
241
|
-
return getObject(len);
|
|
242
|
-
} else {
|
|
243
|
-
return getStringFromWasm0(ptr, len);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
function handleError(f, args) {
|
|
248
|
-
try {
|
|
249
|
-
return f.apply(this, args);
|
|
250
|
-
} catch (e) {
|
|
251
|
-
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
function __wbg_adapter_109(arg0, arg1, arg2, arg3) {
|
|
255
|
-
wasm.wasm_bindgen_db1a10163f1cae81___convert__closures__invoke2_mut___wasm_bindgen_db1a10163f1cae81___JsValue__wasm_bindgen_db1a10163f1cae81___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
236
|
+
wasm._dyn_core_80dd73c7ef3d55e5___ops__function__FnMut_______Output______as_wasm_bindgen_19194eebc680be5___closure__WasmClosure___describe__invoke___wasm_bindgen_19194eebc680be5___JsValue_____(arg0, arg1, addHeapObject(arg2));
|
|
256
237
|
}
|
|
257
238
|
|
|
258
239
|
/**
|
|
@@ -349,66 +330,132 @@ module.exports.transform = function(s, opts) {
|
|
|
349
330
|
};
|
|
350
331
|
|
|
351
332
|
/**
|
|
352
|
-
*
|
|
353
|
-
*
|
|
354
|
-
*
|
|
355
|
-
* sine our wasm bindings does not have access to the file system
|
|
356
|
-
* @param {string} page_file_path
|
|
357
|
-
* @param {string} page_contents
|
|
358
|
-
* @returns {Promise<any>}
|
|
333
|
+
* @param {string} s
|
|
334
|
+
* @param {any} opts
|
|
335
|
+
* @returns {any}
|
|
359
336
|
*/
|
|
360
|
-
module.exports.
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
337
|
+
module.exports.parseSync = function(s, opts) {
|
|
338
|
+
try {
|
|
339
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
340
|
+
wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
341
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
342
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
343
|
+
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
344
|
+
if (r2) {
|
|
345
|
+
throw takeObject(r1);
|
|
346
|
+
}
|
|
347
|
+
return takeObject(r0);
|
|
348
|
+
} finally {
|
|
349
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
350
|
+
}
|
|
367
351
|
};
|
|
368
352
|
|
|
369
353
|
/**
|
|
370
|
-
* @param {string}
|
|
371
|
-
* @param {
|
|
354
|
+
* @param {string} s
|
|
355
|
+
* @param {any} opts
|
|
372
356
|
* @returns {Promise<any>}
|
|
373
357
|
*/
|
|
374
|
-
module.exports.
|
|
375
|
-
const
|
|
376
|
-
const len0 = WASM_VECTOR_LEN;
|
|
377
|
-
const ptr1 = passStringToWasm0(page_contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
378
|
-
const len1 = WASM_VECTOR_LEN;
|
|
379
|
-
const ret = wasm.getPageStaticInfo(ptr0, len0, ptr1, len1);
|
|
358
|
+
module.exports.parse = function(s, opts) {
|
|
359
|
+
const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
|
|
380
360
|
return takeObject(ret);
|
|
381
361
|
};
|
|
382
362
|
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
}
|
|
363
|
+
function getCachedStringFromWasm0(ptr, len) {
|
|
364
|
+
if (ptr === 0) {
|
|
365
|
+
return getObject(len);
|
|
366
|
+
} else {
|
|
367
|
+
return getStringFromWasm0(ptr, len);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
function handleError(f, args) {
|
|
372
|
+
try {
|
|
373
|
+
return f.apply(this, args);
|
|
374
|
+
} catch (e) {
|
|
375
|
+
wasm.__wbindgen_exn_store(addHeapObject(e));
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
function __wbg_adapter_125(arg0, arg1, arg2, arg3) {
|
|
379
|
+
wasm.wasm_bindgen_19194eebc680be5___convert__closures__invoke2_mut___wasm_bindgen_19194eebc680be5___JsValue__wasm_bindgen_19194eebc680be5___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
380
|
+
}
|
|
387
381
|
|
|
388
382
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
389
383
|
takeObject(arg0);
|
|
390
384
|
};
|
|
391
385
|
|
|
392
|
-
module.exports.
|
|
386
|
+
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
387
|
+
const obj = getObject(arg1);
|
|
388
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
389
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
390
|
+
var len1 = WASM_VECTOR_LEN;
|
|
391
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
392
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
396
|
+
const v = getObject(arg0);
|
|
397
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
398
|
+
return ret;
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
module.exports.__wbindgen_is_bigint = function(arg0) {
|
|
402
|
+
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
403
|
+
return ret;
|
|
404
|
+
};
|
|
405
|
+
|
|
406
|
+
module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
393
407
|
const ret = arg0;
|
|
394
408
|
return addHeapObject(ret);
|
|
395
409
|
};
|
|
396
410
|
|
|
397
|
-
module.exports.
|
|
398
|
-
const ret =
|
|
411
|
+
module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
412
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
413
|
+
return ret;
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
417
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
399
418
|
return addHeapObject(ret);
|
|
400
419
|
};
|
|
401
420
|
|
|
402
|
-
module.exports.
|
|
403
|
-
const
|
|
421
|
+
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
422
|
+
const obj = getObject(arg1);
|
|
423
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
424
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
425
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
module.exports.__wbindgen_is_object = function(arg0) {
|
|
429
|
+
const val = getObject(arg0);
|
|
430
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
404
431
|
return ret;
|
|
405
432
|
};
|
|
406
433
|
|
|
407
|
-
module.exports.
|
|
408
|
-
const ret = getObject(arg0)
|
|
434
|
+
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
435
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
436
|
+
return ret;
|
|
437
|
+
};
|
|
438
|
+
|
|
439
|
+
module.exports.__wbindgen_is_string = function(arg0) {
|
|
440
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
409
441
|
return ret;
|
|
410
442
|
};
|
|
411
443
|
|
|
444
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
445
|
+
const ret = getObject(arg0) === undefined;
|
|
446
|
+
return ret;
|
|
447
|
+
};
|
|
448
|
+
|
|
449
|
+
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
450
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
451
|
+
return addHeapObject(ret);
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
455
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
456
|
+
return addHeapObject(ret);
|
|
457
|
+
};
|
|
458
|
+
|
|
412
459
|
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
413
460
|
const ret = new Error();
|
|
414
461
|
return addHeapObject(ret);
|
|
@@ -428,52 +475,57 @@ if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
|
|
|
428
475
|
console.error(v0);
|
|
429
476
|
};
|
|
430
477
|
|
|
431
|
-
module.exports.
|
|
432
|
-
const ret =
|
|
478
|
+
module.exports.__wbg_queueMicrotask_f82fc5d1e8f816ae = function(arg0) {
|
|
479
|
+
const ret = getObject(arg0).queueMicrotask;
|
|
433
480
|
return addHeapObject(ret);
|
|
434
481
|
};
|
|
435
482
|
|
|
436
|
-
module.exports.
|
|
437
|
-
const ret = getObject(arg0)
|
|
438
|
-
return
|
|
483
|
+
module.exports.__wbindgen_is_function = function(arg0) {
|
|
484
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
485
|
+
return ret;
|
|
439
486
|
};
|
|
440
487
|
|
|
441
|
-
module.exports.
|
|
442
|
-
const
|
|
443
|
-
|
|
488
|
+
module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
489
|
+
const obj = takeObject(arg0).original;
|
|
490
|
+
if (obj.cnt-- == 1) {
|
|
491
|
+
obj.a = 0;
|
|
492
|
+
return true;
|
|
493
|
+
}
|
|
494
|
+
const ret = false;
|
|
495
|
+
return ret;
|
|
444
496
|
};
|
|
445
497
|
|
|
446
|
-
module.exports.
|
|
447
|
-
getObject(arg0)
|
|
448
|
-
}, arguments) };
|
|
449
|
-
|
|
450
|
-
module.exports.__wbg_subarray_adc418253d76e2f1 = function(arg0, arg1, arg2) {
|
|
451
|
-
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
452
|
-
return addHeapObject(ret);
|
|
498
|
+
module.exports.__wbg_queueMicrotask_f61ee94ee663068b = function(arg0) {
|
|
499
|
+
queueMicrotask(getObject(arg0));
|
|
453
500
|
};
|
|
454
501
|
|
|
455
|
-
module.exports.
|
|
456
|
-
getObject(arg0)
|
|
457
|
-
}, arguments) };
|
|
458
|
-
|
|
459
|
-
module.exports.__wbg_new_b1f2d6842d615181 = function(arg0) {
|
|
460
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
502
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
503
|
+
const ret = getObject(arg0);
|
|
461
504
|
return addHeapObject(ret);
|
|
462
505
|
};
|
|
463
506
|
|
|
464
|
-
module.exports.
|
|
465
|
-
getObject(arg0)
|
|
507
|
+
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
508
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
509
|
+
return ret;
|
|
466
510
|
};
|
|
467
511
|
|
|
468
|
-
module.exports.
|
|
469
|
-
const ret =
|
|
512
|
+
module.exports.__wbindgen_number_new = function(arg0) {
|
|
513
|
+
const ret = arg0;
|
|
470
514
|
return addHeapObject(ret);
|
|
471
515
|
};
|
|
472
516
|
|
|
473
|
-
module.exports.
|
|
474
|
-
const
|
|
475
|
-
|
|
476
|
-
|
|
517
|
+
module.exports.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
518
|
+
const ret = getObject(arg0)[getObject(arg1)];
|
|
519
|
+
return addHeapObject(ret);
|
|
520
|
+
};
|
|
521
|
+
|
|
522
|
+
module.exports.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
523
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
524
|
+
};
|
|
525
|
+
|
|
526
|
+
module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
|
|
527
|
+
const ret = getObject(arg0).crypto;
|
|
528
|
+
return addHeapObject(ret);
|
|
477
529
|
};
|
|
478
530
|
|
|
479
531
|
module.exports.__wbg_process_298734cf255a885d = function(arg0) {
|
|
@@ -491,41 +543,60 @@ module.exports.__wbg_node_1cd7a5d853dbea79 = function(arg0) {
|
|
|
491
543
|
return addHeapObject(ret);
|
|
492
544
|
};
|
|
493
545
|
|
|
494
|
-
module.exports.__wbindgen_is_string = function(arg0) {
|
|
495
|
-
const ret = typeof(getObject(arg0)) === 'string';
|
|
496
|
-
return ret;
|
|
497
|
-
};
|
|
498
|
-
|
|
499
546
|
module.exports.__wbg_msCrypto_bcb970640f50a1e8 = function(arg0) {
|
|
500
547
|
const ret = getObject(arg0).msCrypto;
|
|
501
548
|
return addHeapObject(ret);
|
|
502
549
|
};
|
|
503
550
|
|
|
504
|
-
module.exports.__wbg_newwithlength_0d03cef43b68a530 = function(arg0) {
|
|
505
|
-
const ret = new Uint8Array(arg0 >>> 0);
|
|
506
|
-
return addHeapObject(ret);
|
|
507
|
-
};
|
|
508
|
-
|
|
509
551
|
module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(function () {
|
|
510
552
|
const ret = module.require;
|
|
511
553
|
return addHeapObject(ret);
|
|
512
554
|
}, arguments) };
|
|
513
555
|
|
|
514
|
-
module.exports.
|
|
515
|
-
|
|
556
|
+
module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
|
|
557
|
+
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
558
|
+
}, arguments) };
|
|
559
|
+
|
|
560
|
+
module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
|
|
561
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
|
562
|
+
}, arguments) };
|
|
563
|
+
|
|
564
|
+
module.exports.__wbg_get_0ee8ea3c7c984c45 = function(arg0, arg1) {
|
|
565
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
566
|
+
return addHeapObject(ret);
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
module.exports.__wbg_length_161c0d89c6535c1d = function(arg0) {
|
|
570
|
+
const ret = getObject(arg0).length;
|
|
516
571
|
return ret;
|
|
517
572
|
};
|
|
518
573
|
|
|
519
|
-
module.exports.
|
|
520
|
-
|
|
574
|
+
module.exports.__wbg_newnoargs_cfecb3965268594c = function(arg0, arg1) {
|
|
575
|
+
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
576
|
+
const ret = new Function(v0);
|
|
521
577
|
return addHeapObject(ret);
|
|
522
578
|
};
|
|
523
579
|
|
|
524
|
-
module.exports.
|
|
525
|
-
const ret = getObject(arg0).
|
|
580
|
+
module.exports.__wbg_next_586204376d2ed373 = function(arg0) {
|
|
581
|
+
const ret = getObject(arg0).next;
|
|
582
|
+
return addHeapObject(ret);
|
|
583
|
+
};
|
|
584
|
+
|
|
585
|
+
module.exports.__wbg_next_b2d3366343a208b3 = function() { return handleError(function (arg0) {
|
|
586
|
+
const ret = getObject(arg0).next();
|
|
526
587
|
return addHeapObject(ret);
|
|
527
588
|
}, arguments) };
|
|
528
589
|
|
|
590
|
+
module.exports.__wbg_done_90b14d6f6eacc42f = function(arg0) {
|
|
591
|
+
const ret = getObject(arg0).done;
|
|
592
|
+
return ret;
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
module.exports.__wbg_value_3158be908c80a75e = function(arg0) {
|
|
596
|
+
const ret = getObject(arg0).value;
|
|
597
|
+
return addHeapObject(ret);
|
|
598
|
+
};
|
|
599
|
+
|
|
529
600
|
module.exports.__wbg_iterator_40027cdd598da26b = function() {
|
|
530
601
|
const ret = Symbol.iterator;
|
|
531
602
|
return addHeapObject(ret);
|
|
@@ -541,11 +612,6 @@ module.exports.__wbg_call_3f093dd26d5569f8 = function() { return handleError(fun
|
|
|
541
612
|
return addHeapObject(ret);
|
|
542
613
|
}, arguments) };
|
|
543
614
|
|
|
544
|
-
module.exports.__wbg_next_586204376d2ed373 = function(arg0) {
|
|
545
|
-
const ret = getObject(arg0).next;
|
|
546
|
-
return addHeapObject(ret);
|
|
547
|
-
};
|
|
548
|
-
|
|
549
615
|
module.exports.__wbg_self_05040bd9523805b9 = function() { return handleError(function () {
|
|
550
616
|
const ret = self.self;
|
|
551
617
|
return addHeapObject(ret);
|
|
@@ -566,72 +632,8 @@ module.exports.__wbg_global_f56b013ed9bcf359 = function() { return handleError(f
|
|
|
566
632
|
return addHeapObject(ret);
|
|
567
633
|
}, arguments) };
|
|
568
634
|
|
|
569
|
-
module.exports.
|
|
570
|
-
const ret = getObject(arg0)
|
|
571
|
-
return ret;
|
|
572
|
-
};
|
|
573
|
-
|
|
574
|
-
module.exports.__wbg_newnoargs_cfecb3965268594c = function(arg0, arg1) {
|
|
575
|
-
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
576
|
-
const ret = new Function(v0);
|
|
577
|
-
return addHeapObject(ret);
|
|
578
|
-
};
|
|
579
|
-
|
|
580
|
-
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
581
|
-
const ret = getObject(arg0);
|
|
582
|
-
return addHeapObject(ret);
|
|
583
|
-
};
|
|
584
|
-
|
|
585
|
-
module.exports.__wbg_length_21c4b0ae73cba59d = function(arg0) {
|
|
586
|
-
const ret = getObject(arg0).length;
|
|
587
|
-
return ret;
|
|
588
|
-
};
|
|
589
|
-
|
|
590
|
-
module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
591
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
592
|
-
return addHeapObject(ret);
|
|
593
|
-
};
|
|
594
|
-
|
|
595
|
-
module.exports.__wbg_entries_488960b196cfb6a5 = function(arg0) {
|
|
596
|
-
const ret = Object.entries(getObject(arg0));
|
|
597
|
-
return addHeapObject(ret);
|
|
598
|
-
};
|
|
599
|
-
|
|
600
|
-
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
601
|
-
const ret = getObject(arg0) == getObject(arg1);
|
|
602
|
-
return ret;
|
|
603
|
-
};
|
|
604
|
-
|
|
605
|
-
module.exports.__wbindgen_boolean_get = function(arg0) {
|
|
606
|
-
const v = getObject(arg0);
|
|
607
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
608
|
-
return ret;
|
|
609
|
-
};
|
|
610
|
-
|
|
611
|
-
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
612
|
-
const obj = getObject(arg1);
|
|
613
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
614
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
615
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
616
|
-
};
|
|
617
|
-
|
|
618
|
-
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
619
|
-
const obj = getObject(arg1);
|
|
620
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
621
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
622
|
-
var len1 = WASM_VECTOR_LEN;
|
|
623
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
624
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
625
|
-
};
|
|
626
|
-
|
|
627
|
-
module.exports.__wbg_instanceof_Uint8Array_c299a4ee232e76ba = function(arg0) {
|
|
628
|
-
let result;
|
|
629
|
-
try {
|
|
630
|
-
result = getObject(arg0) instanceof Uint8Array;
|
|
631
|
-
} catch (_) {
|
|
632
|
-
result = false;
|
|
633
|
-
}
|
|
634
|
-
const ret = result;
|
|
635
|
+
module.exports.__wbg_isArray_e783c41d0dd19b44 = function(arg0) {
|
|
636
|
+
const ret = Array.isArray(getObject(arg0));
|
|
635
637
|
return ret;
|
|
636
638
|
};
|
|
637
639
|
|
|
@@ -646,75 +648,43 @@ module.exports.__wbg_instanceof_ArrayBuffer_9221fa854ffb71b5 = function(arg0) {
|
|
|
646
648
|
return ret;
|
|
647
649
|
};
|
|
648
650
|
|
|
649
|
-
module.exports.
|
|
650
|
-
const ret = getObject(arg0)
|
|
651
|
-
return addHeapObject(ret);
|
|
652
|
-
};
|
|
653
|
-
|
|
654
|
-
module.exports.__wbg_next_b2d3366343a208b3 = function() { return handleError(function (arg0) {
|
|
655
|
-
const ret = getObject(arg0).next();
|
|
651
|
+
module.exports.__wbg_call_67f2111acd2dfdb6 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
652
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
656
653
|
return addHeapObject(ret);
|
|
657
654
|
}, arguments) };
|
|
658
655
|
|
|
659
|
-
module.exports.
|
|
660
|
-
const ret = getObject(arg0)
|
|
656
|
+
module.exports.__wbg_isSafeInteger_a23a66ee7c41b273 = function(arg0) {
|
|
657
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
|
661
658
|
return ret;
|
|
662
659
|
};
|
|
663
660
|
|
|
664
|
-
module.exports.
|
|
665
|
-
const ret = getObject(arg0).
|
|
666
|
-
return addHeapObject(ret);
|
|
667
|
-
};
|
|
668
|
-
|
|
669
|
-
module.exports.__wbindgen_is_bigint = function(arg0) {
|
|
670
|
-
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
661
|
+
module.exports.__wbg_getTime_0e03c3f524be31ef = function(arg0) {
|
|
662
|
+
const ret = getObject(arg0).getTime();
|
|
671
663
|
return ret;
|
|
672
664
|
};
|
|
673
665
|
|
|
674
|
-
module.exports.
|
|
675
|
-
const
|
|
676
|
-
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
677
|
-
getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
|
|
678
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
679
|
-
};
|
|
680
|
-
|
|
681
|
-
module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
682
|
-
const ret = arg0;
|
|
683
|
-
return addHeapObject(ret);
|
|
684
|
-
};
|
|
685
|
-
|
|
686
|
-
module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
687
|
-
const ret = getObject(arg0) === getObject(arg1);
|
|
666
|
+
module.exports.__wbg_getTimezoneOffset_840b552f34917133 = function(arg0) {
|
|
667
|
+
const ret = getObject(arg0).getTimezoneOffset();
|
|
688
668
|
return ret;
|
|
689
669
|
};
|
|
690
670
|
|
|
691
|
-
module.exports.
|
|
692
|
-
const ret =
|
|
671
|
+
module.exports.__wbg_new_a9d80688888b4894 = function(arg0) {
|
|
672
|
+
const ret = new Date(getObject(arg0));
|
|
693
673
|
return addHeapObject(ret);
|
|
694
674
|
};
|
|
695
675
|
|
|
696
|
-
module.exports.
|
|
697
|
-
const ret =
|
|
698
|
-
return ret;
|
|
699
|
-
};
|
|
700
|
-
|
|
701
|
-
module.exports.__wbg_isArray_e783c41d0dd19b44 = function(arg0) {
|
|
702
|
-
const ret = Array.isArray(getObject(arg0));
|
|
703
|
-
return ret;
|
|
704
|
-
};
|
|
705
|
-
|
|
706
|
-
module.exports.__wbindgen_in = function(arg0, arg1) {
|
|
707
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
708
|
-
return ret;
|
|
676
|
+
module.exports.__wbg_new0_7a6141101f2206da = function() {
|
|
677
|
+
const ret = new Date();
|
|
678
|
+
return addHeapObject(ret);
|
|
709
679
|
};
|
|
710
680
|
|
|
711
|
-
module.exports.
|
|
712
|
-
const ret = getObject(arg0)
|
|
713
|
-
return ret;
|
|
681
|
+
module.exports.__wbg_entries_488960b196cfb6a5 = function(arg0) {
|
|
682
|
+
const ret = Object.entries(getObject(arg0));
|
|
683
|
+
return addHeapObject(ret);
|
|
714
684
|
};
|
|
715
685
|
|
|
716
|
-
module.exports.
|
|
717
|
-
const ret =
|
|
686
|
+
module.exports.__wbg_new_632630b5cec17f21 = function() {
|
|
687
|
+
const ret = new Object();
|
|
718
688
|
return addHeapObject(ret);
|
|
719
689
|
};
|
|
720
690
|
|
|
@@ -725,7 +695,7 @@ module.exports.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
|
|
|
725
695
|
const a = state0.a;
|
|
726
696
|
state0.a = 0;
|
|
727
697
|
try {
|
|
728
|
-
return
|
|
698
|
+
return __wbg_adapter_125(a, state0.b, arg0, arg1);
|
|
729
699
|
} finally {
|
|
730
700
|
state0.a = a;
|
|
731
701
|
}
|
|
@@ -737,58 +707,87 @@ module.exports.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
|
|
|
737
707
|
}
|
|
738
708
|
};
|
|
739
709
|
|
|
740
|
-
module.exports.
|
|
741
|
-
const ret =
|
|
710
|
+
module.exports.__wbg_resolve_5da6faf2c96fd1d5 = function(arg0) {
|
|
711
|
+
const ret = Promise.resolve(getObject(arg0));
|
|
742
712
|
return addHeapObject(ret);
|
|
743
713
|
};
|
|
744
714
|
|
|
745
|
-
module.exports.
|
|
746
|
-
getObject(arg0)
|
|
715
|
+
module.exports.__wbg_then_f9e58f5a50f43eae = function(arg0, arg1) {
|
|
716
|
+
const ret = getObject(arg0).then(getObject(arg1));
|
|
717
|
+
return addHeapObject(ret);
|
|
747
718
|
};
|
|
748
719
|
|
|
749
|
-
module.exports.
|
|
750
|
-
const ret =
|
|
751
|
-
|
|
752
|
-
const len1 = WASM_VECTOR_LEN;
|
|
753
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
754
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
720
|
+
module.exports.__wbg_buffer_b914fb8b50ebbc3e = function(arg0) {
|
|
721
|
+
const ret = getObject(arg0).buffer;
|
|
722
|
+
return addHeapObject(ret);
|
|
755
723
|
};
|
|
756
724
|
|
|
757
|
-
module.exports.
|
|
758
|
-
|
|
725
|
+
module.exports.__wbg_newwithbyteoffsetandlength_0de9ee56e9f6ee6e = function(arg0, arg1, arg2) {
|
|
726
|
+
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
|
727
|
+
return addHeapObject(ret);
|
|
759
728
|
};
|
|
760
729
|
|
|
761
|
-
module.exports.
|
|
762
|
-
const ret = getObject(arg0)
|
|
730
|
+
module.exports.__wbg_new_b1f2d6842d615181 = function(arg0) {
|
|
731
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
763
732
|
return addHeapObject(ret);
|
|
764
733
|
};
|
|
765
734
|
|
|
766
|
-
module.exports.
|
|
767
|
-
|
|
735
|
+
module.exports.__wbg_set_7d988c98e6ced92d = function(arg0, arg1, arg2) {
|
|
736
|
+
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
|
768
737
|
};
|
|
769
738
|
|
|
770
|
-
module.exports.
|
|
771
|
-
const ret = getObject(arg0).
|
|
739
|
+
module.exports.__wbg_length_21c4b0ae73cba59d = function(arg0) {
|
|
740
|
+
const ret = getObject(arg0).length;
|
|
741
|
+
return ret;
|
|
742
|
+
};
|
|
743
|
+
|
|
744
|
+
module.exports.__wbg_instanceof_Uint8Array_c299a4ee232e76ba = function(arg0) {
|
|
745
|
+
let result;
|
|
746
|
+
try {
|
|
747
|
+
result = getObject(arg0) instanceof Uint8Array;
|
|
748
|
+
} catch (_) {
|
|
749
|
+
result = false;
|
|
750
|
+
}
|
|
751
|
+
const ret = result;
|
|
752
|
+
return ret;
|
|
753
|
+
};
|
|
754
|
+
|
|
755
|
+
module.exports.__wbg_newwithlength_0d03cef43b68a530 = function(arg0) {
|
|
756
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
772
757
|
return addHeapObject(ret);
|
|
773
758
|
};
|
|
774
759
|
|
|
775
|
-
module.exports.
|
|
776
|
-
const ret =
|
|
760
|
+
module.exports.__wbg_subarray_adc418253d76e2f1 = function(arg0, arg1, arg2) {
|
|
761
|
+
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
|
777
762
|
return addHeapObject(ret);
|
|
778
763
|
};
|
|
779
764
|
|
|
780
|
-
module.exports.
|
|
781
|
-
const
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
765
|
+
module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
766
|
+
const v = getObject(arg1);
|
|
767
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
768
|
+
getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
|
|
769
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
module.exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
773
|
+
const ret = debugString(getObject(arg1));
|
|
774
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
775
|
+
const len1 = WASM_VECTOR_LEN;
|
|
776
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
777
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
778
|
+
};
|
|
779
|
+
|
|
780
|
+
module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
781
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
782
|
+
};
|
|
783
|
+
|
|
784
|
+
module.exports.__wbindgen_memory = function() {
|
|
785
|
+
const ret = wasm.memory;
|
|
786
|
+
return addHeapObject(ret);
|
|
788
787
|
};
|
|
789
788
|
|
|
790
|
-
module.exports.
|
|
791
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
789
|
+
module.exports.__wbindgen_closure_wrapper15367 = function(arg0, arg1, arg2) {
|
|
790
|
+
const ret = makeMutClosure(arg0, arg1, 3593, __wbg_adapter_48);
|
|
792
791
|
return addHeapObject(ret);
|
|
793
792
|
};
|
|
794
793
|
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|