@css-inline/css-inline-wasm 0.17.0 → 0.19.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/index.d.ts +3 -1
- package/index.js +111 -112
- package/index.min.js +2 -2
- package/index.mjs +111 -112
- package/index_bg.wasm +0 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v9.1
|
|
1
|
+
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
@@ -7,10 +7,12 @@ export interface InlineOptions {
|
|
|
7
7
|
keepStyleTags?: boolean;
|
|
8
8
|
keepLinkTags?: boolean;
|
|
9
9
|
keepAtRules?: boolean;
|
|
10
|
+
minifyCss?: boolean;
|
|
10
11
|
baseUrl?: string;
|
|
11
12
|
loadRemoteStylesheets?: boolean;
|
|
12
13
|
extraCss?: string;
|
|
13
14
|
preallocateNodeCapacity?: number;
|
|
15
|
+
removeInlinedSelectors?: boolean;
|
|
14
16
|
}
|
|
15
17
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
16
18
|
/**
|
package/index.js
CHANGED
|
@@ -85,7 +85,21 @@ ${val.stack}`;
|
|
|
85
85
|
}
|
|
86
86
|
return className;
|
|
87
87
|
}
|
|
88
|
-
|
|
88
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
89
|
+
ptr = ptr >>> 0;
|
|
90
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
91
|
+
}
|
|
92
|
+
var cachedDataViewMemory0 = null;
|
|
93
|
+
function getDataViewMemory0() {
|
|
94
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
95
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
96
|
+
}
|
|
97
|
+
return cachedDataViewMemory0;
|
|
98
|
+
}
|
|
99
|
+
function getStringFromWasm0(ptr, len) {
|
|
100
|
+
ptr = ptr >>> 0;
|
|
101
|
+
return decodeText(ptr, len);
|
|
102
|
+
}
|
|
89
103
|
var cachedUint8ArrayMemory0 = null;
|
|
90
104
|
function getUint8ArrayMemory0() {
|
|
91
105
|
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
@@ -93,19 +107,9 @@ function getUint8ArrayMemory0() {
|
|
|
93
107
|
}
|
|
94
108
|
return cachedUint8ArrayMemory0;
|
|
95
109
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function(arg, view) {
|
|
100
|
-
return cachedTextEncoder.encodeInto(arg, view);
|
|
101
|
-
} : function(arg, view) {
|
|
102
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
103
|
-
view.set(buf);
|
|
104
|
-
return {
|
|
105
|
-
read: arg.length,
|
|
106
|
-
written: buf.length
|
|
107
|
-
};
|
|
108
|
-
};
|
|
110
|
+
function isLikeNone(x) {
|
|
111
|
+
return x === void 0 || x === null;
|
|
112
|
+
}
|
|
109
113
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
110
114
|
if (realloc === void 0) {
|
|
111
115
|
const buf = cachedTextEncoder.encode(arg);
|
|
@@ -129,38 +133,43 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
129
133
|
}
|
|
130
134
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
131
135
|
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
132
|
-
const ret =
|
|
136
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
133
137
|
offset += ret.written;
|
|
134
138
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
135
139
|
}
|
|
136
140
|
WASM_VECTOR_LEN = offset;
|
|
137
141
|
return ptr;
|
|
138
142
|
}
|
|
139
|
-
var cachedDataViewMemory0 = null;
|
|
140
|
-
function getDataViewMemory0() {
|
|
141
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
142
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
143
|
-
}
|
|
144
|
-
return cachedDataViewMemory0;
|
|
145
|
-
}
|
|
146
|
-
var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
|
|
147
|
-
throw Error("TextDecoder not available");
|
|
148
|
-
} };
|
|
149
|
-
if (typeof TextDecoder !== "undefined") {
|
|
150
|
-
cachedTextDecoder.decode();
|
|
151
|
-
}
|
|
152
|
-
function getStringFromWasm0(ptr, len) {
|
|
153
|
-
ptr = ptr >>> 0;
|
|
154
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
155
|
-
}
|
|
156
|
-
function isLikeNone(x) {
|
|
157
|
-
return x === void 0 || x === null;
|
|
158
|
-
}
|
|
159
143
|
function takeFromExternrefTable0(idx) {
|
|
160
|
-
const value = wasm.
|
|
144
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
161
145
|
wasm.__externref_table_dealloc(idx);
|
|
162
146
|
return value;
|
|
163
147
|
}
|
|
148
|
+
var cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
|
149
|
+
cachedTextDecoder.decode();
|
|
150
|
+
var MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
151
|
+
var numBytesDecoded = 0;
|
|
152
|
+
function decodeText(ptr, len) {
|
|
153
|
+
numBytesDecoded += len;
|
|
154
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
155
|
+
cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
|
156
|
+
cachedTextDecoder.decode();
|
|
157
|
+
numBytesDecoded = len;
|
|
158
|
+
}
|
|
159
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
160
|
+
}
|
|
161
|
+
var cachedTextEncoder = new TextEncoder();
|
|
162
|
+
if (!("encodeInto" in cachedTextEncoder)) {
|
|
163
|
+
cachedTextEncoder.encodeInto = function(arg, view) {
|
|
164
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
165
|
+
view.set(buf);
|
|
166
|
+
return {
|
|
167
|
+
read: arg.length,
|
|
168
|
+
written: buf.length
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
var WASM_VECTOR_LEN = 0;
|
|
164
173
|
function inline(html, options) {
|
|
165
174
|
let deferred3_0;
|
|
166
175
|
let deferred3_1;
|
|
@@ -217,13 +226,15 @@ function version() {
|
|
|
217
226
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
218
227
|
}
|
|
219
228
|
}
|
|
229
|
+
var EXPECTED_RESPONSE_TYPES = /* @__PURE__ */ new Set(["basic", "cors", "default"]);
|
|
220
230
|
async function __wbg_load(module2, imports) {
|
|
221
231
|
if (typeof Response === "function" && module2 instanceof Response) {
|
|
222
232
|
if (typeof WebAssembly.instantiateStreaming === "function") {
|
|
223
233
|
try {
|
|
224
234
|
return await WebAssembly.instantiateStreaming(module2, imports);
|
|
225
235
|
} catch (e) {
|
|
226
|
-
|
|
236
|
+
const validResponse = module2.ok && EXPECTED_RESPONSE_TYPES.has(module2.type);
|
|
237
|
+
if (validResponse && module2.headers.get("Content-Type") !== "application/wasm") {
|
|
227
238
|
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);
|
|
228
239
|
} else {
|
|
229
240
|
throw e;
|
|
@@ -244,15 +255,65 @@ async function __wbg_load(module2, imports) {
|
|
|
244
255
|
function __wbg_get_imports() {
|
|
245
256
|
const imports = {};
|
|
246
257
|
imports.wbg = {};
|
|
247
|
-
imports.wbg.
|
|
248
|
-
const ret = arg0
|
|
258
|
+
imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
|
|
259
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
260
|
+
return ret;
|
|
261
|
+
};
|
|
262
|
+
imports.wbg.__wbg_Number_2d1dcfcf4ec51736 = function(arg0) {
|
|
263
|
+
const ret = Number(arg0);
|
|
264
|
+
return ret;
|
|
265
|
+
};
|
|
266
|
+
imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
|
|
267
|
+
const v = arg0;
|
|
268
|
+
const ret = typeof v === "boolean" ? v : void 0;
|
|
269
|
+
return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
|
|
270
|
+
};
|
|
271
|
+
imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
|
|
272
|
+
const ret = debugString(arg1);
|
|
273
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
274
|
+
const len1 = WASM_VECTOR_LEN;
|
|
275
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
276
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
277
|
+
};
|
|
278
|
+
imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
|
|
279
|
+
const ret = arg0 in arg1;
|
|
280
|
+
return ret;
|
|
281
|
+
};
|
|
282
|
+
imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
|
|
283
|
+
const val = arg0;
|
|
284
|
+
const ret = typeof val === "object" && val !== null;
|
|
285
|
+
return ret;
|
|
286
|
+
};
|
|
287
|
+
imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
|
|
288
|
+
const ret = arg0 === void 0;
|
|
289
|
+
return ret;
|
|
290
|
+
};
|
|
291
|
+
imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
|
|
292
|
+
const ret = arg0 == arg1;
|
|
249
293
|
return ret;
|
|
250
294
|
};
|
|
251
|
-
imports.wbg.
|
|
295
|
+
imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
|
|
296
|
+
const obj = arg1;
|
|
297
|
+
const ret = typeof obj === "number" ? obj : void 0;
|
|
298
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
299
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
300
|
+
};
|
|
301
|
+
imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
|
|
302
|
+
const obj = arg1;
|
|
303
|
+
const ret = typeof obj === "string" ? obj : void 0;
|
|
304
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
305
|
+
var len1 = WASM_VECTOR_LEN;
|
|
306
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
307
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
308
|
+
};
|
|
309
|
+
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
310
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
311
|
+
};
|
|
312
|
+
imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
|
|
252
313
|
const ret = arg0[arg1];
|
|
253
314
|
return ret;
|
|
254
315
|
};
|
|
255
|
-
imports.wbg.
|
|
316
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
|
|
256
317
|
let result;
|
|
257
318
|
try {
|
|
258
319
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -262,7 +323,7 @@ function __wbg_get_imports() {
|
|
|
262
323
|
const ret = result;
|
|
263
324
|
return ret;
|
|
264
325
|
};
|
|
265
|
-
imports.wbg.
|
|
326
|
+
imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
|
|
266
327
|
let result;
|
|
267
328
|
try {
|
|
268
329
|
result = arg0 instanceof Uint8Array;
|
|
@@ -272,97 +333,36 @@ function __wbg_get_imports() {
|
|
|
272
333
|
const ret = result;
|
|
273
334
|
return ret;
|
|
274
335
|
};
|
|
275
|
-
imports.wbg.
|
|
336
|
+
imports.wbg.__wbg_isSafeInteger_ae7d3f054d55fa16 = function(arg0) {
|
|
276
337
|
const ret = Number.isSafeInteger(arg0);
|
|
277
338
|
return ret;
|
|
278
339
|
};
|
|
279
|
-
imports.wbg.
|
|
340
|
+
imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
280
341
|
const ret = arg0.length;
|
|
281
342
|
return ret;
|
|
282
343
|
};
|
|
283
|
-
imports.wbg.
|
|
344
|
+
imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
|
|
284
345
|
const ret = new Uint8Array(arg0);
|
|
285
346
|
return ret;
|
|
286
347
|
};
|
|
287
|
-
imports.wbg.
|
|
288
|
-
|
|
348
|
+
imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
|
|
349
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
289
350
|
};
|
|
290
|
-
imports.wbg.
|
|
291
|
-
const ret =
|
|
292
|
-
return ret;
|
|
293
|
-
};
|
|
294
|
-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
295
|
-
const v = arg0;
|
|
296
|
-
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
|
|
297
|
-
return ret;
|
|
298
|
-
};
|
|
299
|
-
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
300
|
-
const ret = debugString(arg1);
|
|
301
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
302
|
-
const len1 = WASM_VECTOR_LEN;
|
|
303
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
304
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
305
|
-
};
|
|
306
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
307
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
308
|
-
return ret;
|
|
309
|
-
};
|
|
310
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
311
|
-
const ret = arg0 in arg1;
|
|
351
|
+
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
352
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
312
353
|
return ret;
|
|
313
354
|
};
|
|
314
355
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
315
|
-
const table = wasm.
|
|
356
|
+
const table = wasm.__wbindgen_externrefs;
|
|
316
357
|
const offset = table.grow(4);
|
|
317
358
|
table.set(0, void 0);
|
|
318
359
|
table.set(offset + 0, void 0);
|
|
319
360
|
table.set(offset + 1, null);
|
|
320
361
|
table.set(offset + 2, true);
|
|
321
362
|
table.set(offset + 3, false);
|
|
322
|
-
;
|
|
323
|
-
};
|
|
324
|
-
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
325
|
-
const val = arg0;
|
|
326
|
-
const ret = typeof val === "object" && val !== null;
|
|
327
|
-
return ret;
|
|
328
|
-
};
|
|
329
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
330
|
-
const ret = arg0 === void 0;
|
|
331
|
-
return ret;
|
|
332
|
-
};
|
|
333
|
-
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
334
|
-
const ret = arg0 == arg1;
|
|
335
|
-
return ret;
|
|
336
|
-
};
|
|
337
|
-
imports.wbg.__wbindgen_memory = function() {
|
|
338
|
-
const ret = wasm.memory;
|
|
339
|
-
return ret;
|
|
340
|
-
};
|
|
341
|
-
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
342
|
-
const obj = arg1;
|
|
343
|
-
const ret = typeof obj === "number" ? obj : void 0;
|
|
344
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
345
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
346
|
-
};
|
|
347
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
348
|
-
const obj = arg1;
|
|
349
|
-
const ret = typeof obj === "string" ? obj : void 0;
|
|
350
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
351
|
-
var len1 = WASM_VECTOR_LEN;
|
|
352
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
353
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
354
|
-
};
|
|
355
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
356
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
357
|
-
return ret;
|
|
358
|
-
};
|
|
359
|
-
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
360
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
361
363
|
};
|
|
362
364
|
return imports;
|
|
363
365
|
}
|
|
364
|
-
function __wbg_init_memory(imports, memory) {
|
|
365
|
-
}
|
|
366
366
|
function __wbg_finalize_init(instance, module2) {
|
|
367
367
|
wasm = instance.exports;
|
|
368
368
|
__wbg_init.__wbindgen_wasm_module = module2;
|
|
@@ -387,7 +387,6 @@ async function __wbg_init(module_or_path) {
|
|
|
387
387
|
if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
|
|
388
388
|
module_or_path = fetch(module_or_path);
|
|
389
389
|
}
|
|
390
|
-
__wbg_init_memory(imports);
|
|
391
390
|
const { instance, module: module2 } = await __wbg_load(await module_or_path, imports);
|
|
392
391
|
return __wbg_finalize_init(instance, module2);
|
|
393
392
|
}
|
package/index.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var cssInline=(()=>{var
|
|
2
|
-
${e.stack}`:r}
|
|
1
|
+
"use strict";var cssInline=(()=>{var A=Object.defineProperty;var U=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var k=(e,n)=>{for(var t in n)A(e,t,{get:n[t],enumerable:!0})},B=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of D(n))!N.call(e,i)&&i!==t&&A(e,i,{get:()=>n[i],enumerable:!(r=U(n,i))||r.enumerable});return e};var P=e=>B(A({},"__esModule",{value:!0}),e);var H={};k(H,{initWasm:()=>X,inline:()=>Y,inlineFragment:()=>J,version:()=>G});var o;function x(e){let n=typeof e;if(n=="number"||n=="boolean"||e==null)return`${e}`;if(n=="string")return`"${e}"`;if(n=="symbol"){let i=e.description;return i==null?"Symbol":`Symbol(${i})`}if(n=="function"){let i=e.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(e)){let i=e.length,c="[";i>0&&(c+=x(e[0]));for(let s=1;s<i;s++)c+=", "+x(e[s]);return c+="]",c}let t=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(t&&t.length>1)r=t[1];else return toString.call(e);if(r=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
|
|
2
|
+
${e.stack}`:r}function $(e,n){return e=e>>>0,l().subarray(e/1,e/1+n)}var a=null;function b(){return(a===null||a.buffer.detached===!0||a.buffer.detached===void 0&&a.buffer!==o.memory.buffer)&&(a=new DataView(o.memory.buffer)),a}function g(e,n){return e=e>>>0,v(e,n)}var d=null;function l(){return(d===null||d.byteLength===0)&&(d=new Uint8Array(o.memory.buffer)),d}function m(e){return e==null}function y(e,n,t){if(t===void 0){let f=w.encode(e),_=n(f.length,1)>>>0;return l().subarray(_,_+f.length).set(f),u=f.length,_}let r=e.length,i=n(r,1)>>>0,c=l(),s=0;for(;s<r;s++){let f=e.charCodeAt(s);if(f>127)break;c[i+s]=f}if(s!==r){s!==0&&(e=e.slice(s)),i=t(i,r,r=s+e.length*3,1)>>>0;let f=l().subarray(i+s,i+r),_=w.encodeInto(e,f);s+=_.written,i=t(i,r,s,1)>>>0}return u=s,i}function S(e){let n=o.__wbindgen_externrefs.get(e);return o.__externref_table_dealloc(e),n}var h=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});h.decode();var L=2146435072,I=0;function v(e,n){return I+=n,I>=L&&(h=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),h.decode(),I=n),h.decode(l().subarray(e,e+n))}var w=new TextEncoder;"encodeInto"in w||(w.encodeInto=function(e,n){let t=w.encode(e);return n.set(t),{read:e.length,written:t.length}});var u=0;function E(e,n){let t,r;try{let s=y(e,o.__wbindgen_malloc,o.__wbindgen_realloc),f=u,_=o.inline(s,f,n);var i=_[0],c=_[1];if(_[3])throw i=0,c=0,S(_[2]);return t=i,r=c,g(i,c)}finally{o.__wbindgen_free(t,r,1)}}function F(e,n,t){let r,i;try{let f=y(e,o.__wbindgen_malloc,o.__wbindgen_realloc),_=u,M=y(n,o.__wbindgen_malloc,o.__wbindgen_realloc),R=u,p=o.inlineFragment(f,_,M,R,t);var c=p[0],s=p[1];if(p[3])throw c=0,s=0,S(p[2]);return r=c,i=s,g(c,s)}finally{o.__wbindgen_free(r,i,1)}}function O(){let e,n;try{let t=o.version();return e=t[0],n=t[1],g(t[0],t[1])}finally{o.__wbindgen_free(e,n,1)}}var C=new Set(["basic","cors","default"]);async function z(e,n){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,n)}catch(r){if(e.ok&&C.has(e.type)&&e.headers.get("Content-Type")!=="application/wasm")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",r);else throw r}let t=await e.arrayBuffer();return await WebAssembly.instantiate(t,n)}else{let t=await WebAssembly.instantiate(e,n);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}}function V(){let e={};return e.wbg={},e.wbg.__wbg_Error_52673b7de5a0ca89=function(n,t){return Error(g(n,t))},e.wbg.__wbg_Number_2d1dcfcf4ec51736=function(n){return Number(n)},e.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b=function(n){let t=n,r=typeof t=="boolean"?t:void 0;return m(r)?16777215:r?1:0},e.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6=function(n,t){let r=x(t),i=y(r,o.__wbindgen_malloc,o.__wbindgen_realloc),c=u;b().setInt32(n+4,c,!0),b().setInt32(n+0,i,!0)},e.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317=function(n,t){return n in t},e.wbg.__wbg___wbindgen_is_object_ce774f3490692386=function(n){let t=n;return typeof t=="object"&&t!==null},e.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(n){return n===void 0},e.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d=function(n,t){return n==t},e.wbg.__wbg___wbindgen_number_get_9619185a74197f95=function(n,t){let r=t,i=typeof r=="number"?r:void 0;b().setFloat64(n+8,m(i)?0:i,!0),b().setInt32(n+0,!m(i),!0)},e.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42=function(n,t){let r=t,i=typeof r=="string"?r:void 0;var c=m(i)?0:y(i,o.__wbindgen_malloc,o.__wbindgen_realloc),s=u;b().setInt32(n+4,s,!0),b().setInt32(n+0,c,!0)},e.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(n,t){throw new Error(g(n,t))},e.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe=function(n,t){return n[t]},e.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355=function(n){let t;try{t=n instanceof ArrayBuffer}catch{t=!1}return t},e.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434=function(n){let t;try{t=n instanceof Uint8Array}catch{t=!1}return t},e.wbg.__wbg_isSafeInteger_ae7d3f054d55fa16=function(n){return Number.isSafeInteger(n)},e.wbg.__wbg_length_22ac23eaec9d8053=function(n){return n.length},e.wbg.__wbg_new_6421f6084cc5bc5a=function(n){return new Uint8Array(n)},e.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd=function(n,t,r){Uint8Array.prototype.set.call($(n,t),r)},e.wbg.__wbindgen_cast_2241b6af4c4b2941=function(n,t){return g(n,t)},e.wbg.__wbindgen_init_externref_table=function(){let n=o.__wbindgen_externrefs,t=n.grow(4);n.set(0,void 0),n.set(t+0,void 0),n.set(t+1,null),n.set(t+2,!0),n.set(t+3,!1)},e}function q(e,n){return o=e.exports,W.__wbindgen_wasm_module=n,a=null,d=null,o.__wbindgen_start(),o}async function W(e){if(o!==void 0)return o;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("index_bg.wasm",void 0));let n=V();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:t,module:r}=await z(await e,n);return q(t,r)}var j=W;var T=!1,X=async e=>{if(T)throw new Error("Already initialized. The `initWasm()` function can be used only once.");await j(await e),T=!0};function Y(e,n){return E(e,n)}function J(e,n,t){return F(e,n,t)}function G(){return O()}return P(H);})();
|
package/index.mjs
CHANGED
|
@@ -56,7 +56,21 @@ ${val.stack}`;
|
|
|
56
56
|
}
|
|
57
57
|
return className;
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
60
|
+
ptr = ptr >>> 0;
|
|
61
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
62
|
+
}
|
|
63
|
+
var cachedDataViewMemory0 = null;
|
|
64
|
+
function getDataViewMemory0() {
|
|
65
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
66
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
67
|
+
}
|
|
68
|
+
return cachedDataViewMemory0;
|
|
69
|
+
}
|
|
70
|
+
function getStringFromWasm0(ptr, len) {
|
|
71
|
+
ptr = ptr >>> 0;
|
|
72
|
+
return decodeText(ptr, len);
|
|
73
|
+
}
|
|
60
74
|
var cachedUint8ArrayMemory0 = null;
|
|
61
75
|
function getUint8ArrayMemory0() {
|
|
62
76
|
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
@@ -64,19 +78,9 @@ function getUint8ArrayMemory0() {
|
|
|
64
78
|
}
|
|
65
79
|
return cachedUint8ArrayMemory0;
|
|
66
80
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function(arg, view) {
|
|
71
|
-
return cachedTextEncoder.encodeInto(arg, view);
|
|
72
|
-
} : function(arg, view) {
|
|
73
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
74
|
-
view.set(buf);
|
|
75
|
-
return {
|
|
76
|
-
read: arg.length,
|
|
77
|
-
written: buf.length
|
|
78
|
-
};
|
|
79
|
-
};
|
|
81
|
+
function isLikeNone(x) {
|
|
82
|
+
return x === void 0 || x === null;
|
|
83
|
+
}
|
|
80
84
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
81
85
|
if (realloc === void 0) {
|
|
82
86
|
const buf = cachedTextEncoder.encode(arg);
|
|
@@ -100,38 +104,43 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
100
104
|
}
|
|
101
105
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
102
106
|
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
103
|
-
const ret =
|
|
107
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
104
108
|
offset += ret.written;
|
|
105
109
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
106
110
|
}
|
|
107
111
|
WASM_VECTOR_LEN = offset;
|
|
108
112
|
return ptr;
|
|
109
113
|
}
|
|
110
|
-
var cachedDataViewMemory0 = null;
|
|
111
|
-
function getDataViewMemory0() {
|
|
112
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === void 0 && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
113
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
114
|
-
}
|
|
115
|
-
return cachedDataViewMemory0;
|
|
116
|
-
}
|
|
117
|
-
var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
|
|
118
|
-
throw Error("TextDecoder not available");
|
|
119
|
-
} };
|
|
120
|
-
if (typeof TextDecoder !== "undefined") {
|
|
121
|
-
cachedTextDecoder.decode();
|
|
122
|
-
}
|
|
123
|
-
function getStringFromWasm0(ptr, len) {
|
|
124
|
-
ptr = ptr >>> 0;
|
|
125
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
126
|
-
}
|
|
127
|
-
function isLikeNone(x) {
|
|
128
|
-
return x === void 0 || x === null;
|
|
129
|
-
}
|
|
130
114
|
function takeFromExternrefTable0(idx) {
|
|
131
|
-
const value = wasm.
|
|
115
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
132
116
|
wasm.__externref_table_dealloc(idx);
|
|
133
117
|
return value;
|
|
134
118
|
}
|
|
119
|
+
var cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
|
120
|
+
cachedTextDecoder.decode();
|
|
121
|
+
var MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
122
|
+
var numBytesDecoded = 0;
|
|
123
|
+
function decodeText(ptr, len) {
|
|
124
|
+
numBytesDecoded += len;
|
|
125
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
126
|
+
cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
|
|
127
|
+
cachedTextDecoder.decode();
|
|
128
|
+
numBytesDecoded = len;
|
|
129
|
+
}
|
|
130
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
131
|
+
}
|
|
132
|
+
var cachedTextEncoder = new TextEncoder();
|
|
133
|
+
if (!("encodeInto" in cachedTextEncoder)) {
|
|
134
|
+
cachedTextEncoder.encodeInto = function(arg, view) {
|
|
135
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
136
|
+
view.set(buf);
|
|
137
|
+
return {
|
|
138
|
+
read: arg.length,
|
|
139
|
+
written: buf.length
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
var WASM_VECTOR_LEN = 0;
|
|
135
144
|
function inline(html, options) {
|
|
136
145
|
let deferred3_0;
|
|
137
146
|
let deferred3_1;
|
|
@@ -188,13 +197,15 @@ function version() {
|
|
|
188
197
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
189
198
|
}
|
|
190
199
|
}
|
|
200
|
+
var EXPECTED_RESPONSE_TYPES = /* @__PURE__ */ new Set(["basic", "cors", "default"]);
|
|
191
201
|
async function __wbg_load(module, imports) {
|
|
192
202
|
if (typeof Response === "function" && module instanceof Response) {
|
|
193
203
|
if (typeof WebAssembly.instantiateStreaming === "function") {
|
|
194
204
|
try {
|
|
195
205
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
196
206
|
} catch (e) {
|
|
197
|
-
|
|
207
|
+
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
|
208
|
+
if (validResponse && module.headers.get("Content-Type") !== "application/wasm") {
|
|
198
209
|
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);
|
|
199
210
|
} else {
|
|
200
211
|
throw e;
|
|
@@ -215,15 +226,65 @@ async function __wbg_load(module, imports) {
|
|
|
215
226
|
function __wbg_get_imports() {
|
|
216
227
|
const imports = {};
|
|
217
228
|
imports.wbg = {};
|
|
218
|
-
imports.wbg.
|
|
219
|
-
const ret = arg0
|
|
229
|
+
imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
|
|
230
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
231
|
+
return ret;
|
|
232
|
+
};
|
|
233
|
+
imports.wbg.__wbg_Number_2d1dcfcf4ec51736 = function(arg0) {
|
|
234
|
+
const ret = Number(arg0);
|
|
235
|
+
return ret;
|
|
236
|
+
};
|
|
237
|
+
imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
|
|
238
|
+
const v = arg0;
|
|
239
|
+
const ret = typeof v === "boolean" ? v : void 0;
|
|
240
|
+
return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
|
|
241
|
+
};
|
|
242
|
+
imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
|
|
243
|
+
const ret = debugString(arg1);
|
|
244
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
245
|
+
const len1 = WASM_VECTOR_LEN;
|
|
246
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
247
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
248
|
+
};
|
|
249
|
+
imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
|
|
250
|
+
const ret = arg0 in arg1;
|
|
251
|
+
return ret;
|
|
252
|
+
};
|
|
253
|
+
imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
|
|
254
|
+
const val = arg0;
|
|
255
|
+
const ret = typeof val === "object" && val !== null;
|
|
256
|
+
return ret;
|
|
257
|
+
};
|
|
258
|
+
imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
|
|
259
|
+
const ret = arg0 === void 0;
|
|
260
|
+
return ret;
|
|
261
|
+
};
|
|
262
|
+
imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
|
|
263
|
+
const ret = arg0 == arg1;
|
|
220
264
|
return ret;
|
|
221
265
|
};
|
|
222
|
-
imports.wbg.
|
|
266
|
+
imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
|
|
267
|
+
const obj = arg1;
|
|
268
|
+
const ret = typeof obj === "number" ? obj : void 0;
|
|
269
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
270
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
271
|
+
};
|
|
272
|
+
imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
|
|
273
|
+
const obj = arg1;
|
|
274
|
+
const ret = typeof obj === "string" ? obj : void 0;
|
|
275
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
276
|
+
var len1 = WASM_VECTOR_LEN;
|
|
277
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
278
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
279
|
+
};
|
|
280
|
+
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
281
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
282
|
+
};
|
|
283
|
+
imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
|
|
223
284
|
const ret = arg0[arg1];
|
|
224
285
|
return ret;
|
|
225
286
|
};
|
|
226
|
-
imports.wbg.
|
|
287
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
|
|
227
288
|
let result;
|
|
228
289
|
try {
|
|
229
290
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -233,7 +294,7 @@ function __wbg_get_imports() {
|
|
|
233
294
|
const ret = result;
|
|
234
295
|
return ret;
|
|
235
296
|
};
|
|
236
|
-
imports.wbg.
|
|
297
|
+
imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
|
|
237
298
|
let result;
|
|
238
299
|
try {
|
|
239
300
|
result = arg0 instanceof Uint8Array;
|
|
@@ -243,97 +304,36 @@ function __wbg_get_imports() {
|
|
|
243
304
|
const ret = result;
|
|
244
305
|
return ret;
|
|
245
306
|
};
|
|
246
|
-
imports.wbg.
|
|
307
|
+
imports.wbg.__wbg_isSafeInteger_ae7d3f054d55fa16 = function(arg0) {
|
|
247
308
|
const ret = Number.isSafeInteger(arg0);
|
|
248
309
|
return ret;
|
|
249
310
|
};
|
|
250
|
-
imports.wbg.
|
|
311
|
+
imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
251
312
|
const ret = arg0.length;
|
|
252
313
|
return ret;
|
|
253
314
|
};
|
|
254
|
-
imports.wbg.
|
|
315
|
+
imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
|
|
255
316
|
const ret = new Uint8Array(arg0);
|
|
256
317
|
return ret;
|
|
257
318
|
};
|
|
258
|
-
imports.wbg.
|
|
259
|
-
|
|
319
|
+
imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
|
|
320
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
260
321
|
};
|
|
261
|
-
imports.wbg.
|
|
262
|
-
const ret =
|
|
263
|
-
return ret;
|
|
264
|
-
};
|
|
265
|
-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
266
|
-
const v = arg0;
|
|
267
|
-
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
|
|
268
|
-
return ret;
|
|
269
|
-
};
|
|
270
|
-
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
|
271
|
-
const ret = debugString(arg1);
|
|
272
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
273
|
-
const len1 = WASM_VECTOR_LEN;
|
|
274
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
275
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
276
|
-
};
|
|
277
|
-
imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
|
|
278
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
279
|
-
return ret;
|
|
280
|
-
};
|
|
281
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
282
|
-
const ret = arg0 in arg1;
|
|
322
|
+
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
323
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
283
324
|
return ret;
|
|
284
325
|
};
|
|
285
326
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
286
|
-
const table = wasm.
|
|
327
|
+
const table = wasm.__wbindgen_externrefs;
|
|
287
328
|
const offset = table.grow(4);
|
|
288
329
|
table.set(0, void 0);
|
|
289
330
|
table.set(offset + 0, void 0);
|
|
290
331
|
table.set(offset + 1, null);
|
|
291
332
|
table.set(offset + 2, true);
|
|
292
333
|
table.set(offset + 3, false);
|
|
293
|
-
;
|
|
294
|
-
};
|
|
295
|
-
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
296
|
-
const val = arg0;
|
|
297
|
-
const ret = typeof val === "object" && val !== null;
|
|
298
|
-
return ret;
|
|
299
|
-
};
|
|
300
|
-
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
301
|
-
const ret = arg0 === void 0;
|
|
302
|
-
return ret;
|
|
303
|
-
};
|
|
304
|
-
imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
305
|
-
const ret = arg0 == arg1;
|
|
306
|
-
return ret;
|
|
307
|
-
};
|
|
308
|
-
imports.wbg.__wbindgen_memory = function() {
|
|
309
|
-
const ret = wasm.memory;
|
|
310
|
-
return ret;
|
|
311
|
-
};
|
|
312
|
-
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
313
|
-
const obj = arg1;
|
|
314
|
-
const ret = typeof obj === "number" ? obj : void 0;
|
|
315
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
316
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
317
|
-
};
|
|
318
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
319
|
-
const obj = arg1;
|
|
320
|
-
const ret = typeof obj === "string" ? obj : void 0;
|
|
321
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
322
|
-
var len1 = WASM_VECTOR_LEN;
|
|
323
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
324
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
325
|
-
};
|
|
326
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
327
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
328
|
-
return ret;
|
|
329
|
-
};
|
|
330
|
-
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
331
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
332
334
|
};
|
|
333
335
|
return imports;
|
|
334
336
|
}
|
|
335
|
-
function __wbg_init_memory(imports, memory) {
|
|
336
|
-
}
|
|
337
337
|
function __wbg_finalize_init(instance, module) {
|
|
338
338
|
wasm = instance.exports;
|
|
339
339
|
__wbg_init.__wbindgen_wasm_module = module;
|
|
@@ -358,7 +358,6 @@ async function __wbg_init(module_or_path) {
|
|
|
358
358
|
if (typeof module_or_path === "string" || typeof Request === "function" && module_or_path instanceof Request || typeof URL === "function" && module_or_path instanceof URL) {
|
|
359
359
|
module_or_path = fetch(module_or_path);
|
|
360
360
|
}
|
|
361
|
-
__wbg_init_memory(imports);
|
|
362
361
|
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
363
362
|
return __wbg_finalize_init(instance, module);
|
|
364
363
|
}
|
package/index_bg.wasm
CHANGED
|
Binary file
|