@next/swc-wasm-web 15.4.0-canary.8 → 15.4.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/package.json +1 -1
- package/wasm.d.ts +25 -60
- package/wasm.js +502 -542
- package/wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/wasm.d.ts
CHANGED
|
@@ -1,74 +1,39 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* @param {string} value
|
|
5
|
-
* @param {any} opts
|
|
6
|
-
* @returns {any}
|
|
7
|
-
*/
|
|
8
|
-
export function mdxCompileSync(value: string, opts: any): any;
|
|
9
|
-
/**
|
|
10
|
-
* @param {string} value
|
|
11
|
-
* @param {any} opts
|
|
12
|
-
* @returns {Promise<any>}
|
|
13
|
-
*/
|
|
14
|
-
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
15
|
-
/**
|
|
16
|
-
* @param {string} s
|
|
17
|
-
* @param {any} opts
|
|
18
|
-
* @returns {any}
|
|
19
|
-
*/
|
|
20
3
|
export function minifySync(s: string, opts: any): any;
|
|
21
|
-
/**
|
|
22
|
-
* @param {string} s
|
|
23
|
-
* @param {any} opts
|
|
24
|
-
* @returns {Promise<any>}
|
|
25
|
-
*/
|
|
26
4
|
export function minify(s: string, opts: any): Promise<any>;
|
|
27
|
-
/**
|
|
28
|
-
* @param {any} s
|
|
29
|
-
* @param {any} opts
|
|
30
|
-
* @returns {any}
|
|
31
|
-
*/
|
|
32
5
|
export function transformSync(s: any, opts: any): any;
|
|
33
|
-
/**
|
|
34
|
-
* @param {any} s
|
|
35
|
-
* @param {any} opts
|
|
36
|
-
* @returns {Promise<any>}
|
|
37
|
-
*/
|
|
38
6
|
export function transform(s: any, opts: any): Promise<any>;
|
|
39
|
-
/**
|
|
40
|
-
* @param {string} s
|
|
41
|
-
* @param {any} opts
|
|
42
|
-
* @returns {any}
|
|
43
|
-
*/
|
|
44
7
|
export function parseSync(s: string, opts: any): any;
|
|
45
|
-
/**
|
|
46
|
-
* @param {string} s
|
|
47
|
-
* @param {any} opts
|
|
48
|
-
* @returns {Promise<any>}
|
|
49
|
-
*/
|
|
50
8
|
export function parse(s: string, opts: any): Promise<any>;
|
|
9
|
+
export function mdxCompileSync(value: string, opts: any): any;
|
|
10
|
+
export function mdxCompile(value: string, opts: any): Promise<any>;
|
|
51
11
|
|
|
52
12
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
53
13
|
|
|
54
14
|
export interface InitOutput {
|
|
55
15
|
readonly memory: WebAssembly.Memory;
|
|
56
|
-
readonly
|
|
57
|
-
readonly
|
|
58
|
-
readonly minifySync: (a:
|
|
59
|
-
readonly minify: (a:
|
|
60
|
-
readonly transformSync: (a:
|
|
61
|
-
readonly transform: (a:
|
|
62
|
-
readonly parseSync: (a:
|
|
63
|
-
readonly parse: (a:
|
|
64
|
-
readonly
|
|
65
|
-
readonly
|
|
16
|
+
readonly napi_register_wasm_v1: (a: number, b: number) => number;
|
|
17
|
+
readonly napi_register_module_v1: (a: number, b: number) => number;
|
|
18
|
+
readonly minifySync: (a: any, b: any) => [number, number, number];
|
|
19
|
+
readonly minify: (a: any, b: any) => any;
|
|
20
|
+
readonly transformSync: (a: any, b: any) => [number, number, number];
|
|
21
|
+
readonly transform: (a: any, b: any) => any;
|
|
22
|
+
readonly parseSync: (a: any, b: any) => [number, number, number];
|
|
23
|
+
readonly parse: (a: any, b: any) => any;
|
|
24
|
+
readonly mdxCompileSync: (a: any, b: any) => [number, number, number];
|
|
25
|
+
readonly mdxCompile: (a: any, b: any) => any;
|
|
26
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
27
|
+
readonly __externref_table_alloc: () => number;
|
|
66
28
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
67
|
-
readonly _dyn_core_d740453d92c4907d___ops__function__FnMut_______Output______as_wasm_bindgen_b3e6b9209ca1af04___closure__WasmClosure___describe__invoke___wasm_bindgen_b3e6b9209ca1af04___JsValue_____: (a: number, b: number, c: number) => void;
|
|
68
29
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
69
|
-
readonly
|
|
70
|
-
readonly
|
|
71
|
-
readonly
|
|
30
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
31
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
32
|
+
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
33
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
34
|
+
readonly closure1082_externref_shim: (a: number, b: number, c: any) => void;
|
|
35
|
+
readonly closure145_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
36
|
+
readonly __wbindgen_start: () => void;
|
|
72
37
|
}
|
|
73
38
|
|
|
74
39
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
@@ -76,18 +41,18 @@ export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
|
76
41
|
* Instantiates the given `module`, which can either be bytes or
|
|
77
42
|
* a precompiled `WebAssembly.Module`.
|
|
78
43
|
*
|
|
79
|
-
* @param {SyncInitInput} module
|
|
44
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
80
45
|
*
|
|
81
46
|
* @returns {InitOutput}
|
|
82
47
|
*/
|
|
83
|
-
export function initSync(module: SyncInitInput): InitOutput;
|
|
48
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
84
49
|
|
|
85
50
|
/**
|
|
86
51
|
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
87
52
|
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
88
53
|
*
|
|
89
|
-
* @param {InitInput | Promise<InitInput>} module_or_path
|
|
54
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
90
55
|
*
|
|
91
56
|
* @returns {Promise<InitOutput>}
|
|
92
57
|
*/
|
|
93
|
-
export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
|
|
58
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|
package/wasm.js
CHANGED
|
@@ -1,72 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const heap = new Array(128).fill(undefined);
|
|
4
|
-
|
|
5
|
-
heap.push(undefined, null, true, false);
|
|
1
|
+
import * as __wbg_star0 from 'env';
|
|
6
2
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
let heap_next = heap.length;
|
|
3
|
+
let wasm;
|
|
10
4
|
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
function addToExternrefTable0(obj) {
|
|
6
|
+
const idx = wasm.__externref_table_alloc();
|
|
7
|
+
wasm.__wbindgen_export_2.set(idx, obj);
|
|
8
|
+
return idx;
|
|
15
9
|
}
|
|
16
10
|
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
function handleError(f, args) {
|
|
12
|
+
try {
|
|
13
|
+
return f.apply(this, args);
|
|
14
|
+
} catch (e) {
|
|
15
|
+
const idx = addToExternrefTable0(e);
|
|
16
|
+
wasm.__wbindgen_exn_store(idx);
|
|
17
|
+
}
|
|
21
18
|
}
|
|
22
19
|
|
|
23
|
-
function
|
|
24
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
25
|
-
const idx = heap_next;
|
|
26
|
-
heap_next = heap[idx];
|
|
27
|
-
|
|
28
|
-
heap[idx] = obj;
|
|
29
|
-
return idx;
|
|
30
|
-
}
|
|
20
|
+
function getFromExternrefTable0(idx) { return wasm.__wbindgen_export_2.get(idx); }
|
|
31
21
|
|
|
32
22
|
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
|
33
23
|
|
|
34
24
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
35
25
|
|
|
36
|
-
let
|
|
26
|
+
let cachedUint8ArrayMemory0 = null;
|
|
37
27
|
|
|
38
|
-
function
|
|
39
|
-
if (
|
|
40
|
-
|
|
28
|
+
function getUint8ArrayMemory0() {
|
|
29
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
30
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
41
31
|
}
|
|
42
|
-
return
|
|
32
|
+
return cachedUint8ArrayMemory0;
|
|
43
33
|
}
|
|
44
34
|
|
|
45
35
|
function getStringFromWasm0(ptr, len) {
|
|
46
36
|
ptr = ptr >>> 0;
|
|
47
|
-
return cachedTextDecoder.decode(
|
|
37
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
48
38
|
}
|
|
49
39
|
|
|
50
|
-
function
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
function getFloat64Memory0() {
|
|
57
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
58
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
59
|
-
}
|
|
60
|
-
return cachedFloat64Memory0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
let cachedInt32Memory0 = null;
|
|
64
|
-
|
|
65
|
-
function getInt32Memory0() {
|
|
66
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
67
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
40
|
+
function getCachedStringFromWasm0(ptr, len) {
|
|
41
|
+
if (ptr === 0) {
|
|
42
|
+
return getFromExternrefTable0(len);
|
|
43
|
+
} else {
|
|
44
|
+
return getStringFromWasm0(ptr, len);
|
|
68
45
|
}
|
|
69
|
-
return cachedInt32Memory0;
|
|
70
46
|
}
|
|
71
47
|
|
|
72
48
|
let WASM_VECTOR_LEN = 0;
|
|
@@ -91,7 +67,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
91
67
|
if (realloc === undefined) {
|
|
92
68
|
const buf = cachedTextEncoder.encode(arg);
|
|
93
69
|
const ptr = malloc(buf.length, 1) >>> 0;
|
|
94
|
-
|
|
70
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
95
71
|
WASM_VECTOR_LEN = buf.length;
|
|
96
72
|
return ptr;
|
|
97
73
|
}
|
|
@@ -99,7 +75,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
99
75
|
let len = arg.length;
|
|
100
76
|
let ptr = malloc(len, 1) >>> 0;
|
|
101
77
|
|
|
102
|
-
const mem =
|
|
78
|
+
const mem = getUint8ArrayMemory0();
|
|
103
79
|
|
|
104
80
|
let offset = 0;
|
|
105
81
|
|
|
@@ -114,7 +90,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
114
90
|
arg = arg.slice(offset);
|
|
115
91
|
}
|
|
116
92
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
117
|
-
const view =
|
|
93
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
118
94
|
const ret = encodeString(arg, view);
|
|
119
95
|
|
|
120
96
|
offset += ret.written;
|
|
@@ -125,13 +101,48 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
125
101
|
return ptr;
|
|
126
102
|
}
|
|
127
103
|
|
|
128
|
-
let
|
|
104
|
+
let cachedDataViewMemory0 = null;
|
|
129
105
|
|
|
130
|
-
function
|
|
131
|
-
if (
|
|
132
|
-
|
|
106
|
+
function getDataViewMemory0() {
|
|
107
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
108
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
133
109
|
}
|
|
134
|
-
return
|
|
110
|
+
return cachedDataViewMemory0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function isLikeNone(x) {
|
|
114
|
+
return x === undefined || x === null;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
118
|
+
? { register: () => {}, unregister: () => {} }
|
|
119
|
+
: new FinalizationRegistry(state => {
|
|
120
|
+
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
124
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
125
|
+
const real = (...args) => {
|
|
126
|
+
// First up with a closure we increment the internal reference
|
|
127
|
+
// count. This ensures that the Rust closure environment won't
|
|
128
|
+
// be deallocated while we're invoking it.
|
|
129
|
+
state.cnt++;
|
|
130
|
+
const a = state.a;
|
|
131
|
+
state.a = 0;
|
|
132
|
+
try {
|
|
133
|
+
return f(a, state.b, ...args);
|
|
134
|
+
} finally {
|
|
135
|
+
if (--state.cnt === 0) {
|
|
136
|
+
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
137
|
+
CLOSURE_DTORS.unregister(state);
|
|
138
|
+
} else {
|
|
139
|
+
state.a = a;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
real.original = state;
|
|
144
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
145
|
+
return real;
|
|
135
146
|
}
|
|
136
147
|
|
|
137
148
|
function debugString(val) {
|
|
@@ -175,7 +186,7 @@ function debugString(val) {
|
|
|
175
186
|
// Test for built-in
|
|
176
187
|
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
177
188
|
let className;
|
|
178
|
-
if (builtInMatches.length > 1) {
|
|
189
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
179
190
|
className = builtInMatches[1];
|
|
180
191
|
} else {
|
|
181
192
|
// Failed to match the standard '[object ClassName]'
|
|
@@ -199,181 +210,109 @@ function debugString(val) {
|
|
|
199
210
|
return className;
|
|
200
211
|
}
|
|
201
212
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
});
|
|
207
|
-
|
|
208
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
209
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
210
|
-
const real = (...args) => {
|
|
211
|
-
// First up with a closure we increment the internal reference
|
|
212
|
-
// count. This ensures that the Rust closure environment won't
|
|
213
|
-
// be deallocated while we're invoking it.
|
|
214
|
-
state.cnt++;
|
|
215
|
-
const a = state.a;
|
|
216
|
-
state.a = 0;
|
|
217
|
-
try {
|
|
218
|
-
return f(a, state.b, ...args);
|
|
219
|
-
} finally {
|
|
220
|
-
if (--state.cnt === 0) {
|
|
221
|
-
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
|
|
222
|
-
CLOSURE_DTORS.unregister(state);
|
|
223
|
-
} else {
|
|
224
|
-
state.a = a;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
real.original = state;
|
|
229
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
230
|
-
return real;
|
|
213
|
+
function takeFromExternrefTable0(idx) {
|
|
214
|
+
const value = wasm.__wbindgen_export_2.get(idx);
|
|
215
|
+
wasm.__externref_table_dealloc(idx);
|
|
216
|
+
return value;
|
|
231
217
|
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
218
|
+
/**
|
|
219
|
+
* @param {string} s
|
|
220
|
+
* @param {any} opts
|
|
221
|
+
* @returns {any}
|
|
222
|
+
*/
|
|
223
|
+
export function minifySync(s, opts) {
|
|
224
|
+
const ret = wasm.minifySync(s, opts);
|
|
225
|
+
if (ret[2]) {
|
|
226
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
241
227
|
}
|
|
228
|
+
return takeFromExternrefTable0(ret[0]);
|
|
242
229
|
}
|
|
243
230
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
wasm.wasm_bindgen_b3e6b9209ca1af04___convert__closures__invoke2_mut___wasm_bindgen_b3e6b9209ca1af04___JsValue__wasm_bindgen_b3e6b9209ca1af04___JsValue_____(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
231
|
+
/**
|
|
232
|
+
* @param {string} s
|
|
233
|
+
* @param {any} opts
|
|
234
|
+
* @returns {Promise<any>}
|
|
235
|
+
*/
|
|
236
|
+
export function minify(s, opts) {
|
|
237
|
+
const ret = wasm.minify(s, opts);
|
|
238
|
+
return ret;
|
|
253
239
|
}
|
|
254
240
|
|
|
255
241
|
/**
|
|
256
|
-
* @param {
|
|
257
|
-
* @param {any} opts
|
|
258
|
-
* @returns {any}
|
|
259
|
-
*/
|
|
260
|
-
export function
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
265
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
266
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
267
|
-
if (r2) {
|
|
268
|
-
throw takeObject(r1);
|
|
269
|
-
}
|
|
270
|
-
return takeObject(r0);
|
|
271
|
-
} finally {
|
|
272
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
242
|
+
* @param {any} s
|
|
243
|
+
* @param {any} opts
|
|
244
|
+
* @returns {any}
|
|
245
|
+
*/
|
|
246
|
+
export function transformSync(s, opts) {
|
|
247
|
+
const ret = wasm.transformSync(s, opts);
|
|
248
|
+
if (ret[2]) {
|
|
249
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
273
250
|
}
|
|
251
|
+
return takeFromExternrefTable0(ret[0]);
|
|
274
252
|
}
|
|
275
253
|
|
|
276
254
|
/**
|
|
277
|
-
* @param {
|
|
278
|
-
* @param {any} opts
|
|
279
|
-
* @returns {Promise<any>}
|
|
280
|
-
*/
|
|
281
|
-
export function
|
|
282
|
-
const ret = wasm.
|
|
283
|
-
return
|
|
255
|
+
* @param {any} s
|
|
256
|
+
* @param {any} opts
|
|
257
|
+
* @returns {Promise<any>}
|
|
258
|
+
*/
|
|
259
|
+
export function transform(s, opts) {
|
|
260
|
+
const ret = wasm.transform(s, opts);
|
|
261
|
+
return ret;
|
|
284
262
|
}
|
|
285
263
|
|
|
286
264
|
/**
|
|
287
|
-
* @param {string} s
|
|
288
|
-
* @param {any} opts
|
|
289
|
-
* @returns {any}
|
|
290
|
-
*/
|
|
291
|
-
export function
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
296
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
297
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
298
|
-
if (r2) {
|
|
299
|
-
throw takeObject(r1);
|
|
300
|
-
}
|
|
301
|
-
return takeObject(r0);
|
|
302
|
-
} finally {
|
|
303
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
265
|
+
* @param {string} s
|
|
266
|
+
* @param {any} opts
|
|
267
|
+
* @returns {any}
|
|
268
|
+
*/
|
|
269
|
+
export function parseSync(s, opts) {
|
|
270
|
+
const ret = wasm.parseSync(s, opts);
|
|
271
|
+
if (ret[2]) {
|
|
272
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
304
273
|
}
|
|
274
|
+
return takeFromExternrefTable0(ret[0]);
|
|
305
275
|
}
|
|
306
276
|
|
|
307
277
|
/**
|
|
308
|
-
* @param {string} s
|
|
309
|
-
* @param {any} opts
|
|
310
|
-
* @returns {Promise<any>}
|
|
311
|
-
*/
|
|
312
|
-
export function
|
|
313
|
-
const ret = wasm.
|
|
314
|
-
return
|
|
278
|
+
* @param {string} s
|
|
279
|
+
* @param {any} opts
|
|
280
|
+
* @returns {Promise<any>}
|
|
281
|
+
*/
|
|
282
|
+
export function parse(s, opts) {
|
|
283
|
+
const ret = wasm.parse(s, opts);
|
|
284
|
+
return ret;
|
|
315
285
|
}
|
|
316
286
|
|
|
317
287
|
/**
|
|
318
|
-
* @param {
|
|
319
|
-
* @param {any} opts
|
|
320
|
-
* @returns {any}
|
|
321
|
-
*/
|
|
322
|
-
export function
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
327
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
328
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
329
|
-
if (r2) {
|
|
330
|
-
throw takeObject(r1);
|
|
331
|
-
}
|
|
332
|
-
return takeObject(r0);
|
|
333
|
-
} finally {
|
|
334
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
288
|
+
* @param {string} value
|
|
289
|
+
* @param {any} opts
|
|
290
|
+
* @returns {any}
|
|
291
|
+
*/
|
|
292
|
+
export function mdxCompileSync(value, opts) {
|
|
293
|
+
const ret = wasm.mdxCompileSync(value, opts);
|
|
294
|
+
if (ret[2]) {
|
|
295
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
335
296
|
}
|
|
297
|
+
return takeFromExternrefTable0(ret[0]);
|
|
336
298
|
}
|
|
337
299
|
|
|
338
300
|
/**
|
|
339
|
-
* @param {
|
|
340
|
-
* @param {any} opts
|
|
341
|
-
* @returns {Promise<any>}
|
|
342
|
-
*/
|
|
343
|
-
export function
|
|
344
|
-
const ret = wasm.
|
|
345
|
-
return
|
|
301
|
+
* @param {string} value
|
|
302
|
+
* @param {any} opts
|
|
303
|
+
* @returns {Promise<any>}
|
|
304
|
+
*/
|
|
305
|
+
export function mdxCompile(value, opts) {
|
|
306
|
+
const ret = wasm.mdxCompile(value, opts);
|
|
307
|
+
return ret;
|
|
346
308
|
}
|
|
347
309
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
* @param {any} opts
|
|
351
|
-
* @returns {any}
|
|
352
|
-
*/
|
|
353
|
-
export function parseSync(s, opts) {
|
|
354
|
-
try {
|
|
355
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
356
|
-
wasm.parseSync(retptr, addHeapObject(s), addHeapObject(opts));
|
|
357
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
358
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
359
|
-
var r2 = getInt32Memory0()[retptr / 4 + 2];
|
|
360
|
-
if (r2) {
|
|
361
|
-
throw takeObject(r1);
|
|
362
|
-
}
|
|
363
|
-
return takeObject(r0);
|
|
364
|
-
} finally {
|
|
365
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
366
|
-
}
|
|
310
|
+
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
311
|
+
wasm.closure1082_externref_shim(arg0, arg1, arg2);
|
|
367
312
|
}
|
|
368
313
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
* @param {any} opts
|
|
372
|
-
* @returns {Promise<any>}
|
|
373
|
-
*/
|
|
374
|
-
export function parse(s, opts) {
|
|
375
|
-
const ret = wasm.parse(addHeapObject(s), addHeapObject(opts));
|
|
376
|
-
return takeObject(ret);
|
|
314
|
+
function __wbg_adapter_115(arg0, arg1, arg2, arg3) {
|
|
315
|
+
wasm.closure145_externref_shim(arg0, arg1, arg2, arg3);
|
|
377
316
|
}
|
|
378
317
|
|
|
379
318
|
async function __wbg_load(module, imports) {
|
|
@@ -384,7 +323,7 @@ async function __wbg_load(module, imports) {
|
|
|
384
323
|
|
|
385
324
|
} catch (e) {
|
|
386
325
|
if (module.headers.get('Content-Type') != 'application/wasm') {
|
|
387
|
-
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve
|
|
326
|
+
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);
|
|
388
327
|
|
|
389
328
|
} else {
|
|
390
329
|
throw e;
|
|
@@ -410,374 +349,386 @@ async function __wbg_load(module, imports) {
|
|
|
410
349
|
function __wbg_get_imports() {
|
|
411
350
|
const imports = {};
|
|
412
351
|
imports.wbg = {};
|
|
413
|
-
imports.wbg.
|
|
414
|
-
|
|
352
|
+
imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
353
|
+
const ret = arg0.buffer;
|
|
354
|
+
return ret;
|
|
415
355
|
};
|
|
416
|
-
imports.wbg.
|
|
417
|
-
const ret = arg0;
|
|
418
|
-
return
|
|
356
|
+
imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
|
|
357
|
+
const ret = arg0.call(arg1);
|
|
358
|
+
return ret;
|
|
359
|
+
}, arguments) };
|
|
360
|
+
imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
361
|
+
const ret = arg0.call(arg1, arg2);
|
|
362
|
+
return ret;
|
|
363
|
+
}, arguments) };
|
|
364
|
+
imports.wbg.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
|
|
365
|
+
const ret = arg0.crypto;
|
|
366
|
+
return ret;
|
|
419
367
|
};
|
|
420
|
-
imports.wbg.
|
|
421
|
-
const ret =
|
|
422
|
-
return
|
|
368
|
+
imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
|
|
369
|
+
const ret = arg0.done;
|
|
370
|
+
return ret;
|
|
423
371
|
};
|
|
424
|
-
imports.wbg.
|
|
425
|
-
const ret =
|
|
372
|
+
imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
|
|
373
|
+
const ret = Object.entries(arg0);
|
|
426
374
|
return ret;
|
|
427
375
|
};
|
|
428
|
-
imports.wbg.
|
|
429
|
-
|
|
430
|
-
|
|
376
|
+
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
|
377
|
+
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
378
|
+
if (arg0 !== 0) { wasm.__wbindgen_free(arg0, arg1, 1); }
|
|
379
|
+
console.error(v0);
|
|
431
380
|
};
|
|
432
|
-
imports.wbg.
|
|
433
|
-
|
|
434
|
-
|
|
381
|
+
imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
|
|
382
|
+
arg0.getRandomValues(arg1);
|
|
383
|
+
}, arguments) };
|
|
384
|
+
imports.wbg.__wbg_getTime_46267b1c24877e30 = function(arg0) {
|
|
385
|
+
const ret = arg0.getTime();
|
|
386
|
+
return ret;
|
|
435
387
|
};
|
|
436
|
-
imports.wbg.
|
|
437
|
-
const ret =
|
|
438
|
-
return
|
|
388
|
+
imports.wbg.__wbg_getTimezoneOffset_6b5752021c499c47 = function(arg0) {
|
|
389
|
+
const ret = arg0.getTimezoneOffset();
|
|
390
|
+
return ret;
|
|
439
391
|
};
|
|
440
|
-
imports.wbg.
|
|
441
|
-
|
|
392
|
+
imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
|
|
393
|
+
const ret = Reflect.get(arg0, arg1);
|
|
394
|
+
return ret;
|
|
442
395
|
}, arguments) };
|
|
443
|
-
imports.wbg.
|
|
444
|
-
const ret =
|
|
445
|
-
return
|
|
396
|
+
imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
|
397
|
+
const ret = arg0[arg1 >>> 0];
|
|
398
|
+
return ret;
|
|
446
399
|
};
|
|
447
|
-
imports.wbg.
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
imports.wbg.__wbg_new_b1f2d6842d615181 = function(arg0) {
|
|
451
|
-
const ret = new Uint8Array(getObject(arg0));
|
|
452
|
-
return addHeapObject(ret);
|
|
400
|
+
imports.wbg.__wbg_getwithrefkey_bb8f74a92cb2e784 = function(arg0, arg1) {
|
|
401
|
+
const ret = arg0[arg1];
|
|
402
|
+
return ret;
|
|
453
403
|
};
|
|
454
|
-
imports.wbg.
|
|
455
|
-
|
|
404
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
|
|
405
|
+
let result;
|
|
406
|
+
try {
|
|
407
|
+
result = arg0 instanceof ArrayBuffer;
|
|
408
|
+
} catch (_) {
|
|
409
|
+
result = false;
|
|
410
|
+
}
|
|
411
|
+
const ret = result;
|
|
412
|
+
return ret;
|
|
413
|
+
};
|
|
414
|
+
imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
|
|
415
|
+
let result;
|
|
416
|
+
try {
|
|
417
|
+
result = arg0 instanceof Uint8Array;
|
|
418
|
+
} catch (_) {
|
|
419
|
+
result = false;
|
|
420
|
+
}
|
|
421
|
+
const ret = result;
|
|
422
|
+
return ret;
|
|
423
|
+
};
|
|
424
|
+
imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
|
|
425
|
+
const ret = Array.isArray(arg0);
|
|
426
|
+
return ret;
|
|
427
|
+
};
|
|
428
|
+
imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
|
|
429
|
+
const ret = Number.isSafeInteger(arg0);
|
|
430
|
+
return ret;
|
|
456
431
|
};
|
|
457
|
-
imports.wbg.
|
|
432
|
+
imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
|
|
433
|
+
const ret = Symbol.iterator;
|
|
434
|
+
return ret;
|
|
435
|
+
};
|
|
436
|
+
imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
437
|
+
const ret = arg0.length;
|
|
438
|
+
return ret;
|
|
439
|
+
};
|
|
440
|
+
imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
|
|
441
|
+
const ret = arg0.length;
|
|
442
|
+
return ret;
|
|
443
|
+
};
|
|
444
|
+
imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
|
|
445
|
+
const ret = arg0.msCrypto;
|
|
446
|
+
return ret;
|
|
447
|
+
};
|
|
448
|
+
imports.wbg.__wbg_new0_f788a2397c7ca929 = function() {
|
|
458
449
|
const ret = new Date();
|
|
459
|
-
return
|
|
450
|
+
return ret;
|
|
460
451
|
};
|
|
461
|
-
imports.wbg.
|
|
462
|
-
|
|
452
|
+
imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
453
|
+
try {
|
|
454
|
+
var state0 = {a: arg0, b: arg1};
|
|
455
|
+
var cb0 = (arg0, arg1) => {
|
|
456
|
+
const a = state0.a;
|
|
457
|
+
state0.a = 0;
|
|
458
|
+
try {
|
|
459
|
+
return __wbg_adapter_115(a, state0.b, arg0, arg1);
|
|
460
|
+
} finally {
|
|
461
|
+
state0.a = a;
|
|
462
|
+
}
|
|
463
|
+
};
|
|
464
|
+
const ret = new Promise(cb0);
|
|
465
|
+
return ret;
|
|
466
|
+
} finally {
|
|
467
|
+
state0.a = state0.b = 0;
|
|
468
|
+
}
|
|
469
|
+
};
|
|
470
|
+
imports.wbg.__wbg_new_31a97dac4f10fab7 = function(arg0) {
|
|
471
|
+
const ret = new Date(arg0);
|
|
472
|
+
return ret;
|
|
473
|
+
};
|
|
474
|
+
imports.wbg.__wbg_new_405e22f390576ce2 = function() {
|
|
475
|
+
const ret = new Object();
|
|
476
|
+
return ret;
|
|
477
|
+
};
|
|
478
|
+
imports.wbg.__wbg_new_78feb108b6472713 = function() {
|
|
479
|
+
const ret = new Array();
|
|
463
480
|
return ret;
|
|
464
481
|
};
|
|
465
|
-
imports.wbg.
|
|
482
|
+
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
466
483
|
const ret = new Error();
|
|
467
|
-
return
|
|
484
|
+
return ret;
|
|
468
485
|
};
|
|
469
|
-
imports.wbg.
|
|
470
|
-
const ret =
|
|
486
|
+
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
487
|
+
const ret = new Uint8Array(arg0);
|
|
488
|
+
return ret;
|
|
489
|
+
};
|
|
490
|
+
imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
491
|
+
var v0 = getCachedStringFromWasm0(arg0, arg1);
|
|
492
|
+
const ret = new Function(v0);
|
|
493
|
+
return ret;
|
|
494
|
+
};
|
|
495
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
|
|
496
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
497
|
+
return ret;
|
|
498
|
+
};
|
|
499
|
+
imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
|
|
500
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
501
|
+
return ret;
|
|
502
|
+
};
|
|
503
|
+
imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
|
|
504
|
+
const ret = arg0.next;
|
|
505
|
+
return ret;
|
|
506
|
+
};
|
|
507
|
+
imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
|
|
508
|
+
const ret = arg0.next();
|
|
509
|
+
return ret;
|
|
510
|
+
}, arguments) };
|
|
511
|
+
imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
|
|
512
|
+
const ret = arg0.node;
|
|
513
|
+
return ret;
|
|
514
|
+
};
|
|
515
|
+
imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
|
|
516
|
+
const ret = arg0.process;
|
|
517
|
+
return ret;
|
|
518
|
+
};
|
|
519
|
+
imports.wbg.__wbg_queueMicrotask_6c22d88054515cb4 = function(arg0) {
|
|
520
|
+
const ret = arg0.queueMicrotask;
|
|
521
|
+
return ret;
|
|
522
|
+
};
|
|
523
|
+
imports.wbg.__wbg_queueMicrotask_b81e3a75ab81ca62 = function(arg0) {
|
|
524
|
+
queueMicrotask(arg0);
|
|
525
|
+
};
|
|
526
|
+
imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
|
|
527
|
+
arg0.randomFillSync(arg1);
|
|
528
|
+
}, arguments) };
|
|
529
|
+
imports.wbg.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
|
|
530
|
+
const ret = module.require;
|
|
531
|
+
return ret;
|
|
532
|
+
}, arguments) };
|
|
533
|
+
imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
|
534
|
+
const ret = Promise.resolve(arg0);
|
|
535
|
+
return ret;
|
|
536
|
+
};
|
|
537
|
+
imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
|
|
538
|
+
arg0[arg1 >>> 0] = arg2;
|
|
539
|
+
};
|
|
540
|
+
imports.wbg.__wbg_set_3fda3bac07393de4 = function(arg0, arg1, arg2) {
|
|
541
|
+
arg0[arg1] = arg2;
|
|
542
|
+
};
|
|
543
|
+
imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
544
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
545
|
+
};
|
|
546
|
+
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
|
547
|
+
const ret = arg1.stack;
|
|
471
548
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
472
549
|
const len1 = WASM_VECTOR_LEN;
|
|
473
|
-
|
|
474
|
-
|
|
550
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
551
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
475
552
|
};
|
|
476
|
-
imports.wbg.
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
};
|
|
522
|
-
imports.wbg.
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
};
|
|
598
|
-
imports.wbg.
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
};
|
|
616
|
-
imports.wbg.
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
return ret;
|
|
625
|
-
};
|
|
626
|
-
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
627
|
-
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
628
|
-
return ret;
|
|
629
|
-
};
|
|
630
|
-
imports.wbg.__wbg_isArray_e783c41d0dd19b44 = function(arg0) {
|
|
631
|
-
const ret = Array.isArray(getObject(arg0));
|
|
632
|
-
return ret;
|
|
633
|
-
};
|
|
634
|
-
imports.wbg.__wbg_isSafeInteger_a23a66ee7c41b273 = function(arg0) {
|
|
635
|
-
const ret = Number.isSafeInteger(getObject(arg0));
|
|
636
|
-
return ret;
|
|
637
|
-
};
|
|
638
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
639
|
-
const ret = getObject(arg0) in getObject(arg1);
|
|
640
|
-
return ret;
|
|
641
|
-
};
|
|
642
|
-
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
643
|
-
const v = getObject(arg1);
|
|
644
|
-
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
645
|
-
getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
|
|
646
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
647
|
-
};
|
|
648
|
-
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
649
|
-
const ret = arg0;
|
|
650
|
-
return addHeapObject(ret);
|
|
651
|
-
};
|
|
652
|
-
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
653
|
-
const ret = getObject(arg0) === getObject(arg1);
|
|
654
|
-
return ret;
|
|
655
|
-
};
|
|
656
|
-
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
657
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
658
|
-
return addHeapObject(ret);
|
|
659
|
-
};
|
|
660
|
-
imports.wbg.__wbg_length_161c0d89c6535c1d = function(arg0) {
|
|
661
|
-
const ret = getObject(arg0).length;
|
|
662
|
-
return ret;
|
|
663
|
-
};
|
|
664
|
-
imports.wbg.__wbg_get_0ee8ea3c7c984c45 = function(arg0, arg1) {
|
|
665
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
666
|
-
return addHeapObject(ret);
|
|
667
|
-
};
|
|
668
|
-
imports.wbg.__wbg_next_b2d3366343a208b3 = function() { return handleError(function (arg0) {
|
|
669
|
-
const ret = getObject(arg0).next();
|
|
670
|
-
return addHeapObject(ret);
|
|
671
|
-
}, arguments) };
|
|
672
|
-
imports.wbg.__wbg_done_90b14d6f6eacc42f = function(arg0) {
|
|
673
|
-
const ret = getObject(arg0).done;
|
|
674
|
-
return ret;
|
|
675
|
-
};
|
|
676
|
-
imports.wbg.__wbg_value_3158be908c80a75e = function(arg0) {
|
|
677
|
-
const ret = getObject(arg0).value;
|
|
678
|
-
return addHeapObject(ret);
|
|
679
|
-
};
|
|
680
|
-
imports.wbg.__wbg_entries_488960b196cfb6a5 = function(arg0) {
|
|
681
|
-
const ret = Object.entries(getObject(arg0));
|
|
682
|
-
return addHeapObject(ret);
|
|
683
|
-
};
|
|
684
|
-
imports.wbg.__wbg_getwithrefkey_15c62c2b8546208d = function(arg0, arg1) {
|
|
685
|
-
const ret = getObject(arg0)[getObject(arg1)];
|
|
686
|
-
return addHeapObject(ret);
|
|
687
|
-
};
|
|
688
|
-
imports.wbg.__wbg_new_70828a4353259d4b = function(arg0, arg1) {
|
|
689
|
-
try {
|
|
690
|
-
var state0 = {a: arg0, b: arg1};
|
|
691
|
-
var cb0 = (arg0, arg1) => {
|
|
692
|
-
const a = state0.a;
|
|
693
|
-
state0.a = 0;
|
|
694
|
-
try {
|
|
695
|
-
return __wbg_adapter_113(a, state0.b, arg0, arg1);
|
|
696
|
-
} finally {
|
|
697
|
-
state0.a = a;
|
|
698
|
-
}
|
|
699
|
-
};
|
|
700
|
-
const ret = new Promise(cb0);
|
|
701
|
-
return addHeapObject(ret);
|
|
702
|
-
} finally {
|
|
703
|
-
state0.a = state0.b = 0;
|
|
704
|
-
}
|
|
705
|
-
};
|
|
706
|
-
imports.wbg.__wbg_new_632630b5cec17f21 = function() {
|
|
707
|
-
const ret = new Object();
|
|
708
|
-
return addHeapObject(ret);
|
|
709
|
-
};
|
|
710
|
-
imports.wbg.__wbg_set_20cbc34131e76824 = function(arg0, arg1, arg2) {
|
|
711
|
-
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
712
|
-
};
|
|
713
|
-
imports.wbg.__wbg_new_75208e29bddfd88c = function() {
|
|
714
|
-
const ret = new Array();
|
|
715
|
-
return addHeapObject(ret);
|
|
716
|
-
};
|
|
717
|
-
imports.wbg.__wbg_set_79c308ecd9a1d091 = function(arg0, arg1, arg2) {
|
|
718
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
719
|
-
};
|
|
720
|
-
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
721
|
-
const ret = debugString(getObject(arg1));
|
|
722
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
723
|
-
const len1 = WASM_VECTOR_LEN;
|
|
724
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
725
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
726
|
-
};
|
|
727
|
-
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
728
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
729
|
-
};
|
|
730
|
-
imports.wbg.__wbg_then_f9e58f5a50f43eae = function(arg0, arg1) {
|
|
731
|
-
const ret = getObject(arg0).then(getObject(arg1));
|
|
732
|
-
return addHeapObject(ret);
|
|
733
|
-
};
|
|
734
|
-
imports.wbg.__wbg_queueMicrotask_f61ee94ee663068b = function(arg0) {
|
|
735
|
-
queueMicrotask(getObject(arg0));
|
|
736
|
-
};
|
|
737
|
-
imports.wbg.__wbg_queueMicrotask_f82fc5d1e8f816ae = function(arg0) {
|
|
738
|
-
const ret = getObject(arg0).queueMicrotask;
|
|
739
|
-
return addHeapObject(ret);
|
|
740
|
-
};
|
|
741
|
-
imports.wbg.__wbg_resolve_5da6faf2c96fd1d5 = function(arg0) {
|
|
742
|
-
const ret = Promise.resolve(getObject(arg0));
|
|
743
|
-
return addHeapObject(ret);
|
|
744
|
-
};
|
|
745
|
-
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
746
|
-
const obj = takeObject(arg0).original;
|
|
747
|
-
if (obj.cnt-- == 1) {
|
|
748
|
-
obj.a = 0;
|
|
749
|
-
return true;
|
|
750
|
-
}
|
|
751
|
-
const ret = false;
|
|
752
|
-
return ret;
|
|
753
|
-
};
|
|
754
|
-
imports.wbg.__wbindgen_closure_wrapper24142 = function(arg0, arg1, arg2) {
|
|
755
|
-
const ret = makeMutClosure(arg0, arg1, 1088, __wbg_adapter_48);
|
|
756
|
-
return addHeapObject(ret);
|
|
757
|
-
};
|
|
553
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
|
554
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
555
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
556
|
+
};
|
|
557
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
|
|
558
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
559
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
560
|
+
};
|
|
561
|
+
imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
|
562
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
563
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
564
|
+
};
|
|
565
|
+
imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
566
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
567
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
568
|
+
};
|
|
569
|
+
imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
|
|
570
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
571
|
+
return ret;
|
|
572
|
+
};
|
|
573
|
+
imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
574
|
+
const ret = arg0.then(arg1);
|
|
575
|
+
return ret;
|
|
576
|
+
};
|
|
577
|
+
imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
|
578
|
+
const ret = arg0.value;
|
|
579
|
+
return ret;
|
|
580
|
+
};
|
|
581
|
+
imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
|
|
582
|
+
const ret = arg0.versions;
|
|
583
|
+
return ret;
|
|
584
|
+
};
|
|
585
|
+
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
|
586
|
+
const ret = arg0;
|
|
587
|
+
return ret;
|
|
588
|
+
};
|
|
589
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
590
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
591
|
+
return ret;
|
|
592
|
+
};
|
|
593
|
+
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
594
|
+
const v = arg1;
|
|
595
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
596
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
597
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
598
|
+
};
|
|
599
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
600
|
+
const v = arg0;
|
|
601
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
602
|
+
return ret;
|
|
603
|
+
};
|
|
604
|
+
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
605
|
+
const obj = arg0.original;
|
|
606
|
+
if (obj.cnt-- == 1) {
|
|
607
|
+
obj.a = 0;
|
|
608
|
+
return true;
|
|
609
|
+
}
|
|
610
|
+
const ret = false;
|
|
611
|
+
return ret;
|
|
612
|
+
};
|
|
613
|
+
imports.wbg.__wbindgen_closure_wrapper24272 = function(arg0, arg1, arg2) {
|
|
614
|
+
const ret = makeMutClosure(arg0, arg1, 1083, __wbg_adapter_50);
|
|
615
|
+
return ret;
|
|
616
|
+
};
|
|
617
|
+
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
618
|
+
const ret = debugString(arg1);
|
|
619
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
620
|
+
const len1 = WASM_VECTOR_LEN;
|
|
621
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
622
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
623
|
+
};
|
|
624
|
+
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
625
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
626
|
+
return ret;
|
|
627
|
+
};
|
|
628
|
+
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
629
|
+
const ret = arg0 in arg1;
|
|
630
|
+
return ret;
|
|
631
|
+
};
|
|
632
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
633
|
+
const table = wasm.__wbindgen_export_2;
|
|
634
|
+
const offset = table.grow(4);
|
|
635
|
+
table.set(0, undefined);
|
|
636
|
+
table.set(offset + 0, undefined);
|
|
637
|
+
table.set(offset + 1, null);
|
|
638
|
+
table.set(offset + 2, true);
|
|
639
|
+
table.set(offset + 3, false);
|
|
640
|
+
;
|
|
641
|
+
};
|
|
642
|
+
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
643
|
+
const ret = typeof(arg0) === 'bigint';
|
|
644
|
+
return ret;
|
|
645
|
+
};
|
|
646
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
|
647
|
+
const ret = typeof(arg0) === 'function';
|
|
648
|
+
return ret;
|
|
649
|
+
};
|
|
650
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
651
|
+
const val = arg0;
|
|
652
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
653
|
+
return ret;
|
|
654
|
+
};
|
|
655
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
656
|
+
const ret = typeof(arg0) === 'string';
|
|
657
|
+
return ret;
|
|
658
|
+
};
|
|
659
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
660
|
+
const ret = arg0 === undefined;
|
|
661
|
+
return ret;
|
|
662
|
+
};
|
|
663
|
+
imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
|
|
664
|
+
const ret = arg0 === arg1;
|
|
665
|
+
return ret;
|
|
666
|
+
};
|
|
667
|
+
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
668
|
+
const ret = arg0 == arg1;
|
|
669
|
+
return ret;
|
|
670
|
+
};
|
|
671
|
+
imports.wbg.__wbindgen_memory = function() {
|
|
672
|
+
const ret = wasm.memory;
|
|
673
|
+
return ret;
|
|
674
|
+
};
|
|
675
|
+
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
676
|
+
const obj = arg1;
|
|
677
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
678
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
679
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
680
|
+
};
|
|
681
|
+
imports.wbg.__wbindgen_number_new = function(arg0) {
|
|
682
|
+
const ret = arg0;
|
|
683
|
+
return ret;
|
|
684
|
+
};
|
|
685
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
686
|
+
const obj = arg1;
|
|
687
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
688
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
689
|
+
var len1 = WASM_VECTOR_LEN;
|
|
690
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
691
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
692
|
+
};
|
|
693
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
694
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
695
|
+
return ret;
|
|
696
|
+
};
|
|
697
|
+
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
698
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
699
|
+
};
|
|
700
|
+
imports['env'] = __wbg_star0;
|
|
758
701
|
|
|
759
|
-
return imports;
|
|
702
|
+
return imports;
|
|
760
703
|
}
|
|
761
704
|
|
|
762
|
-
function __wbg_init_memory(imports,
|
|
705
|
+
function __wbg_init_memory(imports, memory) {
|
|
763
706
|
|
|
764
707
|
}
|
|
765
708
|
|
|
766
709
|
function __wbg_finalize_init(instance, module) {
|
|
767
710
|
wasm = instance.exports;
|
|
768
711
|
__wbg_init.__wbindgen_wasm_module = module;
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
cachedInt32Memory0 = null;
|
|
772
|
-
cachedUint8Memory0 = null;
|
|
712
|
+
cachedDataViewMemory0 = null;
|
|
713
|
+
cachedUint8ArrayMemory0 = null;
|
|
773
714
|
|
|
774
715
|
|
|
716
|
+
wasm.__wbindgen_start();
|
|
775
717
|
return wasm;
|
|
776
718
|
}
|
|
777
719
|
|
|
778
720
|
function initSync(module) {
|
|
779
721
|
if (wasm !== undefined) return wasm;
|
|
780
722
|
|
|
723
|
+
|
|
724
|
+
if (typeof module !== 'undefined') {
|
|
725
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
726
|
+
({module} = module)
|
|
727
|
+
} else {
|
|
728
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
|
|
781
732
|
const imports = __wbg_get_imports();
|
|
782
733
|
|
|
783
734
|
__wbg_init_memory(imports);
|
|
@@ -791,24 +742,33 @@ function initSync(module) {
|
|
|
791
742
|
return __wbg_finalize_init(instance, module);
|
|
792
743
|
}
|
|
793
744
|
|
|
794
|
-
async function __wbg_init(
|
|
745
|
+
async function __wbg_init(module_or_path) {
|
|
795
746
|
if (wasm !== undefined) return wasm;
|
|
796
747
|
|
|
797
|
-
|
|
798
|
-
|
|
748
|
+
|
|
749
|
+
if (typeof module_or_path !== 'undefined') {
|
|
750
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
751
|
+
({module_or_path} = module_or_path)
|
|
752
|
+
} else {
|
|
753
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
if (typeof module_or_path === 'undefined') {
|
|
758
|
+
module_or_path = new URL('wasm_bg.wasm', import.meta.url);
|
|
799
759
|
}
|
|
800
760
|
const imports = __wbg_get_imports();
|
|
801
761
|
|
|
802
|
-
if (typeof
|
|
803
|
-
|
|
762
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
763
|
+
module_or_path = fetch(module_or_path);
|
|
804
764
|
}
|
|
805
765
|
|
|
806
766
|
__wbg_init_memory(imports);
|
|
807
767
|
|
|
808
|
-
const { instance, module } = await __wbg_load(await
|
|
768
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
809
769
|
|
|
810
770
|
return __wbg_finalize_init(instance, module);
|
|
811
771
|
}
|
|
812
772
|
|
|
813
|
-
export { initSync }
|
|
773
|
+
export { initSync };
|
|
814
774
|
export default __wbg_init;
|
package/wasm_bg.wasm
CHANGED
|
Binary file
|