windmill-parser-wasm-ts 1.538.0 → 1.565.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/windmill_parser_wasm.js +107 -94
- package/windmill_parser_wasm_bg.wasm +0 -0
package/package.json
CHANGED
package/windmill_parser_wasm.js
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
let wasm;
|
|
2
2
|
|
|
3
|
+
let cachedUint8ArrayMemory0 = null;
|
|
4
|
+
|
|
5
|
+
function getUint8ArrayMemory0() {
|
|
6
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
7
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
8
|
+
}
|
|
9
|
+
return cachedUint8ArrayMemory0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
13
|
+
|
|
14
|
+
cachedTextDecoder.decode();
|
|
15
|
+
|
|
16
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
17
|
+
let numBytesDecoded = 0;
|
|
18
|
+
function decodeText(ptr, len) {
|
|
19
|
+
numBytesDecoded += len;
|
|
20
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
21
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
22
|
+
cachedTextDecoder.decode();
|
|
23
|
+
numBytesDecoded = len;
|
|
24
|
+
}
|
|
25
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function getStringFromWasm0(ptr, len) {
|
|
29
|
+
ptr = ptr >>> 0;
|
|
30
|
+
return decodeText(ptr, len);
|
|
31
|
+
}
|
|
32
|
+
|
|
3
33
|
function addToExternrefTable0(obj) {
|
|
4
34
|
const idx = wasm.__externref_table_alloc();
|
|
5
35
|
wasm.__wbindgen_export_2.set(idx, obj);
|
|
@@ -15,22 +45,9 @@ function handleError(f, args) {
|
|
|
15
45
|
}
|
|
16
46
|
}
|
|
17
47
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
|
21
|
-
|
|
22
|
-
let cachedUint8ArrayMemory0 = null;
|
|
23
|
-
|
|
24
|
-
function getUint8ArrayMemory0() {
|
|
25
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
26
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
27
|
-
}
|
|
28
|
-
return cachedUint8ArrayMemory0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function getStringFromWasm0(ptr, len) {
|
|
48
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
32
49
|
ptr = ptr >>> 0;
|
|
33
|
-
return
|
|
50
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
34
51
|
}
|
|
35
52
|
|
|
36
53
|
function isLikeNone(x) {
|
|
@@ -113,20 +130,18 @@ function debugString(val) {
|
|
|
113
130
|
|
|
114
131
|
let WASM_VECTOR_LEN = 0;
|
|
115
132
|
|
|
116
|
-
const cachedTextEncoder =
|
|
133
|
+
const cachedTextEncoder = new TextEncoder();
|
|
117
134
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
135
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
136
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
137
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
138
|
+
view.set(buf);
|
|
139
|
+
return {
|
|
140
|
+
read: arg.length,
|
|
141
|
+
written: buf.length
|
|
142
|
+
};
|
|
143
|
+
}
|
|
121
144
|
}
|
|
122
|
-
: function (arg, view) {
|
|
123
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
124
|
-
view.set(buf);
|
|
125
|
-
return {
|
|
126
|
-
read: arg.length,
|
|
127
|
-
written: buf.length
|
|
128
|
-
};
|
|
129
|
-
});
|
|
130
145
|
|
|
131
146
|
function passStringToWasm0(arg, malloc, realloc) {
|
|
132
147
|
|
|
@@ -157,7 +172,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
157
172
|
}
|
|
158
173
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
159
174
|
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
160
|
-
const ret =
|
|
175
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
161
176
|
|
|
162
177
|
offset += ret.written;
|
|
163
178
|
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
@@ -245,6 +260,8 @@ export function parse_assets_ts(code) {
|
|
|
245
260
|
}
|
|
246
261
|
}
|
|
247
262
|
|
|
263
|
+
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
264
|
+
|
|
248
265
|
async function __wbg_load(module, imports) {
|
|
249
266
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
250
267
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
@@ -252,7 +269,9 @@ async function __wbg_load(module, imports) {
|
|
|
252
269
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
253
270
|
|
|
254
271
|
} catch (e) {
|
|
255
|
-
|
|
272
|
+
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
|
273
|
+
|
|
274
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
256
275
|
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);
|
|
257
276
|
|
|
258
277
|
} else {
|
|
@@ -279,35 +298,35 @@ async function __wbg_load(module, imports) {
|
|
|
279
298
|
function __wbg_get_imports() {
|
|
280
299
|
const imports = {};
|
|
281
300
|
imports.wbg = {};
|
|
282
|
-
imports.wbg.
|
|
283
|
-
const ret = arg0
|
|
301
|
+
imports.wbg.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
|
|
302
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
284
303
|
return ret;
|
|
285
304
|
};
|
|
286
|
-
imports.wbg.
|
|
305
|
+
imports.wbg.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
|
|
287
306
|
const ret = arg0.call(arg1);
|
|
288
307
|
return ret;
|
|
289
308
|
}, arguments) };
|
|
290
|
-
imports.wbg.
|
|
309
|
+
imports.wbg.__wbg_done_75ed0ee6dd243d9d = function(arg0) {
|
|
291
310
|
const ret = arg0.done;
|
|
292
311
|
return ret;
|
|
293
312
|
};
|
|
294
|
-
imports.wbg.
|
|
313
|
+
imports.wbg.__wbg_entries_2be2f15bd5554996 = function(arg0) {
|
|
295
314
|
const ret = Object.entries(arg0);
|
|
296
315
|
return ret;
|
|
297
316
|
};
|
|
298
|
-
imports.wbg.
|
|
317
|
+
imports.wbg.__wbg_eval_5088487c29e8df77 = function(arg0, arg1) {
|
|
299
318
|
const ret = eval(getStringFromWasm0(arg0, arg1));
|
|
300
319
|
return ret;
|
|
301
320
|
};
|
|
302
|
-
imports.wbg.
|
|
303
|
-
const ret = Reflect.get(arg0, arg1);
|
|
304
|
-
return ret;
|
|
305
|
-
}, arguments) };
|
|
306
|
-
imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
|
|
321
|
+
imports.wbg.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) {
|
|
307
322
|
const ret = arg0[arg1 >>> 0];
|
|
308
323
|
return ret;
|
|
309
324
|
};
|
|
310
|
-
imports.wbg.
|
|
325
|
+
imports.wbg.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
|
|
326
|
+
const ret = Reflect.get(arg0, arg1);
|
|
327
|
+
return ret;
|
|
328
|
+
}, arguments) };
|
|
329
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) {
|
|
311
330
|
let result;
|
|
312
331
|
try {
|
|
313
332
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -317,7 +336,7 @@ function __wbg_get_imports() {
|
|
|
317
336
|
const ret = result;
|
|
318
337
|
return ret;
|
|
319
338
|
};
|
|
320
|
-
imports.wbg.
|
|
339
|
+
imports.wbg.__wbg_instanceof_Map_ebb01a5b6b5ffd0b = function(arg0) {
|
|
321
340
|
let result;
|
|
322
341
|
try {
|
|
323
342
|
result = arg0 instanceof Map;
|
|
@@ -327,7 +346,7 @@ function __wbg_get_imports() {
|
|
|
327
346
|
const ret = result;
|
|
328
347
|
return ret;
|
|
329
348
|
};
|
|
330
|
-
imports.wbg.
|
|
349
|
+
imports.wbg.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function(arg0) {
|
|
331
350
|
let result;
|
|
332
351
|
try {
|
|
333
352
|
result = arg0 instanceof Uint8Array;
|
|
@@ -337,121 +356,95 @@ function __wbg_get_imports() {
|
|
|
337
356
|
const ret = result;
|
|
338
357
|
return ret;
|
|
339
358
|
};
|
|
340
|
-
imports.wbg.
|
|
359
|
+
imports.wbg.__wbg_isArray_030cce220591fb41 = function(arg0) {
|
|
341
360
|
const ret = Array.isArray(arg0);
|
|
342
361
|
return ret;
|
|
343
362
|
};
|
|
344
|
-
imports.wbg.
|
|
363
|
+
imports.wbg.__wbg_isSafeInteger_1c0d1af5542e102a = function(arg0) {
|
|
345
364
|
const ret = Number.isSafeInteger(arg0);
|
|
346
365
|
return ret;
|
|
347
366
|
};
|
|
348
|
-
imports.wbg.
|
|
367
|
+
imports.wbg.__wbg_iterator_f370b34483c71a1c = function() {
|
|
349
368
|
const ret = Symbol.iterator;
|
|
350
369
|
return ret;
|
|
351
370
|
};
|
|
352
|
-
imports.wbg.
|
|
371
|
+
imports.wbg.__wbg_length_186546c51cd61acd = function(arg0) {
|
|
353
372
|
const ret = arg0.length;
|
|
354
373
|
return ret;
|
|
355
374
|
};
|
|
356
|
-
imports.wbg.
|
|
375
|
+
imports.wbg.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
|
|
357
376
|
const ret = arg0.length;
|
|
358
377
|
return ret;
|
|
359
378
|
};
|
|
360
|
-
imports.wbg.
|
|
379
|
+
imports.wbg.__wbg_new_638ebfaedbf32a5e = function(arg0) {
|
|
361
380
|
const ret = new Uint8Array(arg0);
|
|
362
381
|
return ret;
|
|
363
382
|
};
|
|
364
|
-
imports.wbg.
|
|
383
|
+
imports.wbg.__wbg_next_5b3530e612fde77d = function(arg0) {
|
|
365
384
|
const ret = arg0.next;
|
|
366
385
|
return ret;
|
|
367
386
|
};
|
|
368
|
-
imports.wbg.
|
|
387
|
+
imports.wbg.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) {
|
|
369
388
|
const ret = arg0.next();
|
|
370
389
|
return ret;
|
|
371
390
|
}, arguments) };
|
|
372
|
-
imports.wbg.
|
|
373
|
-
|
|
391
|
+
imports.wbg.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
|
|
392
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
374
393
|
};
|
|
375
|
-
imports.wbg.
|
|
394
|
+
imports.wbg.__wbg_value_dd9372230531eade = function(arg0) {
|
|
376
395
|
const ret = arg0.value;
|
|
377
396
|
return ret;
|
|
378
397
|
};
|
|
379
|
-
imports.wbg.
|
|
380
|
-
const ret = arg0;
|
|
381
|
-
return ret;
|
|
382
|
-
};
|
|
383
|
-
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
384
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
385
|
-
return ret;
|
|
386
|
-
};
|
|
387
|
-
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
|
398
|
+
imports.wbg.__wbg_wbindgenbigintgetasi64_ac743ece6ab9bba1 = function(arg0, arg1) {
|
|
388
399
|
const v = arg1;
|
|
389
400
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
390
401
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
391
402
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
392
403
|
};
|
|
393
|
-
imports.wbg.
|
|
404
|
+
imports.wbg.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) {
|
|
394
405
|
const v = arg0;
|
|
395
|
-
const ret = typeof(v) === 'boolean' ?
|
|
396
|
-
return ret;
|
|
406
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
407
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
397
408
|
};
|
|
398
|
-
imports.wbg.
|
|
409
|
+
imports.wbg.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
|
|
399
410
|
const ret = debugString(arg1);
|
|
400
411
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
401
412
|
const len1 = WASM_VECTOR_LEN;
|
|
402
413
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
403
414
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
404
415
|
};
|
|
405
|
-
imports.wbg.
|
|
406
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
407
|
-
return ret;
|
|
408
|
-
};
|
|
409
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
|
416
|
+
imports.wbg.__wbg_wbindgenin_d7a1ee10933d2d55 = function(arg0, arg1) {
|
|
410
417
|
const ret = arg0 in arg1;
|
|
411
418
|
return ret;
|
|
412
419
|
};
|
|
413
|
-
imports.wbg.
|
|
414
|
-
const table = wasm.__wbindgen_export_2;
|
|
415
|
-
const offset = table.grow(4);
|
|
416
|
-
table.set(0, undefined);
|
|
417
|
-
table.set(offset + 0, undefined);
|
|
418
|
-
table.set(offset + 1, null);
|
|
419
|
-
table.set(offset + 2, true);
|
|
420
|
-
table.set(offset + 3, false);
|
|
421
|
-
;
|
|
422
|
-
};
|
|
423
|
-
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
|
420
|
+
imports.wbg.__wbg_wbindgenisbigint_ecb90cc08a5a9154 = function(arg0) {
|
|
424
421
|
const ret = typeof(arg0) === 'bigint';
|
|
425
422
|
return ret;
|
|
426
423
|
};
|
|
427
|
-
imports.wbg.
|
|
424
|
+
imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
|
|
428
425
|
const ret = typeof(arg0) === 'function';
|
|
429
426
|
return ret;
|
|
430
427
|
};
|
|
431
|
-
imports.wbg.
|
|
428
|
+
imports.wbg.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
|
|
432
429
|
const val = arg0;
|
|
433
430
|
const ret = typeof(val) === 'object' && val !== null;
|
|
434
431
|
return ret;
|
|
435
432
|
};
|
|
436
|
-
imports.wbg.
|
|
433
|
+
imports.wbg.__wbg_wbindgenjsvaleq_e6f2ad59ccae1b58 = function(arg0, arg1) {
|
|
437
434
|
const ret = arg0 === arg1;
|
|
438
435
|
return ret;
|
|
439
436
|
};
|
|
440
|
-
imports.wbg.
|
|
437
|
+
imports.wbg.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function(arg0, arg1) {
|
|
441
438
|
const ret = arg0 == arg1;
|
|
442
439
|
return ret;
|
|
443
440
|
};
|
|
444
|
-
imports.wbg.
|
|
445
|
-
const ret = wasm.memory;
|
|
446
|
-
return ret;
|
|
447
|
-
};
|
|
448
|
-
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
441
|
+
imports.wbg.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) {
|
|
449
442
|
const obj = arg1;
|
|
450
443
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
451
444
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
452
445
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
453
446
|
};
|
|
454
|
-
imports.wbg.
|
|
447
|
+
imports.wbg.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
|
|
455
448
|
const obj = arg1;
|
|
456
449
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
457
450
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -459,9 +452,29 @@ function __wbg_get_imports() {
|
|
|
459
452
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
460
453
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
461
454
|
};
|
|
462
|
-
imports.wbg.
|
|
455
|
+
imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
|
|
463
456
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
464
457
|
};
|
|
458
|
+
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
459
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
460
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
461
|
+
return ret;
|
|
462
|
+
};
|
|
463
|
+
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
464
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
465
|
+
const ret = arg0;
|
|
466
|
+
return ret;
|
|
467
|
+
};
|
|
468
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
469
|
+
const table = wasm.__wbindgen_export_2;
|
|
470
|
+
const offset = table.grow(4);
|
|
471
|
+
table.set(0, undefined);
|
|
472
|
+
table.set(offset + 0, undefined);
|
|
473
|
+
table.set(offset + 1, null);
|
|
474
|
+
table.set(offset + 2, true);
|
|
475
|
+
table.set(offset + 3, false);
|
|
476
|
+
;
|
|
477
|
+
};
|
|
465
478
|
|
|
466
479
|
return imports;
|
|
467
480
|
}
|
|
Binary file
|