@astral-sh/ruff-wasm-bundler 0.5.3

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.
@@ -0,0 +1,804 @@
1
+ let wasm;
2
+ export function __wbg_set_wasm(val) {
3
+ wasm = val;
4
+ }
5
+
6
+
7
+ const heap = new Array(128).fill(undefined);
8
+
9
+ heap.push(undefined, null, true, false);
10
+
11
+ function getObject(idx) { return heap[idx]; }
12
+
13
+ let heap_next = heap.length;
14
+
15
+ function dropObject(idx) {
16
+ if (idx < 132) return;
17
+ heap[idx] = heap_next;
18
+ heap_next = idx;
19
+ }
20
+
21
+ function takeObject(idx) {
22
+ const ret = getObject(idx);
23
+ dropObject(idx);
24
+ return ret;
25
+ }
26
+
27
+ const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
28
+
29
+ let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
30
+
31
+ cachedTextDecoder.decode();
32
+
33
+ let cachedUint8Memory0 = null;
34
+
35
+ function getUint8Memory0() {
36
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
37
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
38
+ }
39
+ return cachedUint8Memory0;
40
+ }
41
+
42
+ function getStringFromWasm0(ptr, len) {
43
+ ptr = ptr >>> 0;
44
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
45
+ }
46
+
47
+ function addHeapObject(obj) {
48
+ if (heap_next === heap.length) heap.push(heap.length + 1);
49
+ const idx = heap_next;
50
+ heap_next = heap[idx];
51
+
52
+ heap[idx] = obj;
53
+ return idx;
54
+ }
55
+
56
+ function isLikeNone(x) {
57
+ return x === undefined || x === null;
58
+ }
59
+
60
+ let cachedFloat64Memory0 = null;
61
+
62
+ function getFloat64Memory0() {
63
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
64
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
65
+ }
66
+ return cachedFloat64Memory0;
67
+ }
68
+
69
+ let cachedInt32Memory0 = null;
70
+
71
+ function getInt32Memory0() {
72
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
73
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
74
+ }
75
+ return cachedInt32Memory0;
76
+ }
77
+
78
+ let WASM_VECTOR_LEN = 0;
79
+
80
+ const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
81
+
82
+ let cachedTextEncoder = new lTextEncoder('utf-8');
83
+
84
+ const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
85
+ ? function (arg, view) {
86
+ return cachedTextEncoder.encodeInto(arg, view);
87
+ }
88
+ : function (arg, view) {
89
+ const buf = cachedTextEncoder.encode(arg);
90
+ view.set(buf);
91
+ return {
92
+ read: arg.length,
93
+ written: buf.length
94
+ };
95
+ });
96
+
97
+ function passStringToWasm0(arg, malloc, realloc) {
98
+
99
+ if (realloc === undefined) {
100
+ const buf = cachedTextEncoder.encode(arg);
101
+ const ptr = malloc(buf.length, 1) >>> 0;
102
+ getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
103
+ WASM_VECTOR_LEN = buf.length;
104
+ return ptr;
105
+ }
106
+
107
+ let len = arg.length;
108
+ let ptr = malloc(len, 1) >>> 0;
109
+
110
+ const mem = getUint8Memory0();
111
+
112
+ let offset = 0;
113
+
114
+ for (; offset < len; offset++) {
115
+ const code = arg.charCodeAt(offset);
116
+ if (code > 0x7F) break;
117
+ mem[ptr + offset] = code;
118
+ }
119
+
120
+ if (offset !== len) {
121
+ if (offset !== 0) {
122
+ arg = arg.slice(offset);
123
+ }
124
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
125
+ const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
126
+ const ret = encodeString(arg, view);
127
+
128
+ offset += ret.written;
129
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
130
+ }
131
+
132
+ WASM_VECTOR_LEN = offset;
133
+ return ptr;
134
+ }
135
+
136
+ let cachedBigInt64Memory0 = null;
137
+
138
+ function getBigInt64Memory0() {
139
+ if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
140
+ cachedBigInt64Memory0 = new BigInt64Array(wasm.memory.buffer);
141
+ }
142
+ return cachedBigInt64Memory0;
143
+ }
144
+
145
+ function debugString(val) {
146
+ // primitive types
147
+ const type = typeof val;
148
+ if (type == 'number' || type == 'boolean' || val == null) {
149
+ return `${val}`;
150
+ }
151
+ if (type == 'string') {
152
+ return `"${val}"`;
153
+ }
154
+ if (type == 'symbol') {
155
+ const description = val.description;
156
+ if (description == null) {
157
+ return 'Symbol';
158
+ } else {
159
+ return `Symbol(${description})`;
160
+ }
161
+ }
162
+ if (type == 'function') {
163
+ const name = val.name;
164
+ if (typeof name == 'string' && name.length > 0) {
165
+ return `Function(${name})`;
166
+ } else {
167
+ return 'Function';
168
+ }
169
+ }
170
+ // objects
171
+ if (Array.isArray(val)) {
172
+ const length = val.length;
173
+ let debug = '[';
174
+ if (length > 0) {
175
+ debug += debugString(val[0]);
176
+ }
177
+ for(let i = 1; i < length; i++) {
178
+ debug += ', ' + debugString(val[i]);
179
+ }
180
+ debug += ']';
181
+ return debug;
182
+ }
183
+ // Test for built-in
184
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
185
+ let className;
186
+ if (builtInMatches.length > 1) {
187
+ className = builtInMatches[1];
188
+ } else {
189
+ // Failed to match the standard '[object ClassName]'
190
+ return toString.call(val);
191
+ }
192
+ if (className == 'Object') {
193
+ // we're a user defined class or Object
194
+ // JSON.stringify avoids problems with cycles, and is generally much
195
+ // easier than looping through ownProperties of `val`.
196
+ try {
197
+ return 'Object(' + JSON.stringify(val) + ')';
198
+ } catch (_) {
199
+ return 'Object';
200
+ }
201
+ }
202
+ // errors
203
+ if (val instanceof Error) {
204
+ return `${val.name}: ${val.message}\n${val.stack}`;
205
+ }
206
+ // TODO we could test for more things here, like `Set`s and `Map`s.
207
+ return className;
208
+ }
209
+ /**
210
+ */
211
+ export function run() {
212
+ wasm.run();
213
+ }
214
+
215
+ function handleError(f, args) {
216
+ try {
217
+ return f.apply(this, args);
218
+ } catch (e) {
219
+ wasm.__wbindgen_exn_store(addHeapObject(e));
220
+ }
221
+ }
222
+
223
+ const WorkspaceFinalization = (typeof FinalizationRegistry === 'undefined')
224
+ ? { register: () => {}, unregister: () => {} }
225
+ : new FinalizationRegistry(ptr => wasm.__wbg_workspace_free(ptr >>> 0));
226
+ /**
227
+ */
228
+ export class Workspace {
229
+
230
+ __destroy_into_raw() {
231
+ const ptr = this.__wbg_ptr;
232
+ this.__wbg_ptr = 0;
233
+ WorkspaceFinalization.unregister(this);
234
+ return ptr;
235
+ }
236
+
237
+ free() {
238
+ const ptr = this.__destroy_into_raw();
239
+ wasm.__wbg_workspace_free(ptr);
240
+ }
241
+ /**
242
+ * @returns {string}
243
+ */
244
+ static version() {
245
+ let deferred1_0;
246
+ let deferred1_1;
247
+ try {
248
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
249
+ wasm.workspace_version(retptr);
250
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
251
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
252
+ deferred1_0 = r0;
253
+ deferred1_1 = r1;
254
+ return getStringFromWasm0(r0, r1);
255
+ } finally {
256
+ wasm.__wbindgen_add_to_stack_pointer(16);
257
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
258
+ }
259
+ }
260
+ /**
261
+ * @param {any} options
262
+ */
263
+ constructor(options) {
264
+ try {
265
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
266
+ wasm.workspace_new(retptr, addHeapObject(options));
267
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
268
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
269
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
270
+ if (r2) {
271
+ throw takeObject(r1);
272
+ }
273
+ this.__wbg_ptr = r0 >>> 0;
274
+ return this;
275
+ } finally {
276
+ wasm.__wbindgen_add_to_stack_pointer(16);
277
+ }
278
+ }
279
+ /**
280
+ * @returns {any}
281
+ */
282
+ static defaultSettings() {
283
+ try {
284
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
285
+ wasm.workspace_defaultSettings(retptr);
286
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
287
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
288
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
289
+ if (r2) {
290
+ throw takeObject(r1);
291
+ }
292
+ return takeObject(r0);
293
+ } finally {
294
+ wasm.__wbindgen_add_to_stack_pointer(16);
295
+ }
296
+ }
297
+ /**
298
+ * @param {string} contents
299
+ * @returns {any}
300
+ */
301
+ check(contents) {
302
+ try {
303
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
304
+ const ptr0 = passStringToWasm0(contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
305
+ const len0 = WASM_VECTOR_LEN;
306
+ wasm.workspace_check(retptr, this.__wbg_ptr, ptr0, len0);
307
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
308
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
309
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
310
+ if (r2) {
311
+ throw takeObject(r1);
312
+ }
313
+ return takeObject(r0);
314
+ } finally {
315
+ wasm.__wbindgen_add_to_stack_pointer(16);
316
+ }
317
+ }
318
+ /**
319
+ * @param {string} contents
320
+ * @returns {string}
321
+ */
322
+ format(contents) {
323
+ let deferred3_0;
324
+ let deferred3_1;
325
+ try {
326
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
327
+ const ptr0 = passStringToWasm0(contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
328
+ const len0 = WASM_VECTOR_LEN;
329
+ wasm.workspace_format(retptr, this.__wbg_ptr, ptr0, len0);
330
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
331
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
332
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
333
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
334
+ var ptr2 = r0;
335
+ var len2 = r1;
336
+ if (r3) {
337
+ ptr2 = 0; len2 = 0;
338
+ throw takeObject(r2);
339
+ }
340
+ deferred3_0 = ptr2;
341
+ deferred3_1 = len2;
342
+ return getStringFromWasm0(ptr2, len2);
343
+ } finally {
344
+ wasm.__wbindgen_add_to_stack_pointer(16);
345
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
346
+ }
347
+ }
348
+ /**
349
+ * @param {string} contents
350
+ * @returns {string}
351
+ */
352
+ format_ir(contents) {
353
+ let deferred3_0;
354
+ let deferred3_1;
355
+ try {
356
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
357
+ const ptr0 = passStringToWasm0(contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
358
+ const len0 = WASM_VECTOR_LEN;
359
+ wasm.workspace_format_ir(retptr, this.__wbg_ptr, ptr0, len0);
360
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
361
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
362
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
363
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
364
+ var ptr2 = r0;
365
+ var len2 = r1;
366
+ if (r3) {
367
+ ptr2 = 0; len2 = 0;
368
+ throw takeObject(r2);
369
+ }
370
+ deferred3_0 = ptr2;
371
+ deferred3_1 = len2;
372
+ return getStringFromWasm0(ptr2, len2);
373
+ } finally {
374
+ wasm.__wbindgen_add_to_stack_pointer(16);
375
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
376
+ }
377
+ }
378
+ /**
379
+ * @param {string} contents
380
+ * @returns {string}
381
+ */
382
+ comments(contents) {
383
+ let deferred3_0;
384
+ let deferred3_1;
385
+ try {
386
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
387
+ const ptr0 = passStringToWasm0(contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
388
+ const len0 = WASM_VECTOR_LEN;
389
+ wasm.workspace_comments(retptr, this.__wbg_ptr, ptr0, len0);
390
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
391
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
392
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
393
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
394
+ var ptr2 = r0;
395
+ var len2 = r1;
396
+ if (r3) {
397
+ ptr2 = 0; len2 = 0;
398
+ throw takeObject(r2);
399
+ }
400
+ deferred3_0 = ptr2;
401
+ deferred3_1 = len2;
402
+ return getStringFromWasm0(ptr2, len2);
403
+ } finally {
404
+ wasm.__wbindgen_add_to_stack_pointer(16);
405
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
406
+ }
407
+ }
408
+ /**
409
+ * Parses the content and returns its AST
410
+ * @param {string} contents
411
+ * @returns {string}
412
+ */
413
+ parse(contents) {
414
+ let deferred3_0;
415
+ let deferred3_1;
416
+ try {
417
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
418
+ const ptr0 = passStringToWasm0(contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
419
+ const len0 = WASM_VECTOR_LEN;
420
+ wasm.workspace_parse(retptr, this.__wbg_ptr, ptr0, len0);
421
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
422
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
423
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
424
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
425
+ var ptr2 = r0;
426
+ var len2 = r1;
427
+ if (r3) {
428
+ ptr2 = 0; len2 = 0;
429
+ throw takeObject(r2);
430
+ }
431
+ deferred3_0 = ptr2;
432
+ deferred3_1 = len2;
433
+ return getStringFromWasm0(ptr2, len2);
434
+ } finally {
435
+ wasm.__wbindgen_add_to_stack_pointer(16);
436
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
437
+ }
438
+ }
439
+ /**
440
+ * @param {string} contents
441
+ * @returns {string}
442
+ */
443
+ tokens(contents) {
444
+ let deferred3_0;
445
+ let deferred3_1;
446
+ try {
447
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
448
+ const ptr0 = passStringToWasm0(contents, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
449
+ const len0 = WASM_VECTOR_LEN;
450
+ wasm.workspace_tokens(retptr, this.__wbg_ptr, ptr0, len0);
451
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
452
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
453
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
454
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
455
+ var ptr2 = r0;
456
+ var len2 = r1;
457
+ if (r3) {
458
+ ptr2 = 0; len2 = 0;
459
+ throw takeObject(r2);
460
+ }
461
+ deferred3_0 = ptr2;
462
+ deferred3_1 = len2;
463
+ return getStringFromWasm0(ptr2, len2);
464
+ } finally {
465
+ wasm.__wbindgen_add_to_stack_pointer(16);
466
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
467
+ }
468
+ }
469
+ }
470
+
471
+ export function __wbindgen_object_drop_ref(arg0) {
472
+ takeObject(arg0);
473
+ };
474
+
475
+ export function __wbindgen_is_string(arg0) {
476
+ const ret = typeof(getObject(arg0)) === 'string';
477
+ return ret;
478
+ };
479
+
480
+ export function __wbindgen_error_new(arg0, arg1) {
481
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
482
+ return addHeapObject(ret);
483
+ };
484
+
485
+ export function __wbindgen_as_number(arg0) {
486
+ const ret = +getObject(arg0);
487
+ return ret;
488
+ };
489
+
490
+ export function __wbindgen_object_clone_ref(arg0) {
491
+ const ret = getObject(arg0);
492
+ return addHeapObject(ret);
493
+ };
494
+
495
+ export function __wbindgen_boolean_get(arg0) {
496
+ const v = getObject(arg0);
497
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
498
+ return ret;
499
+ };
500
+
501
+ export function __wbindgen_is_bigint(arg0) {
502
+ const ret = typeof(getObject(arg0)) === 'bigint';
503
+ return ret;
504
+ };
505
+
506
+ export function __wbindgen_number_get(arg0, arg1) {
507
+ const obj = getObject(arg1);
508
+ const ret = typeof(obj) === 'number' ? obj : undefined;
509
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
510
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
511
+ };
512
+
513
+ export function __wbindgen_string_get(arg0, arg1) {
514
+ const obj = getObject(arg1);
515
+ const ret = typeof(obj) === 'string' ? obj : undefined;
516
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
517
+ var len1 = WASM_VECTOR_LEN;
518
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
519
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
520
+ };
521
+
522
+ export function __wbindgen_is_object(arg0) {
523
+ const val = getObject(arg0);
524
+ const ret = typeof(val) === 'object' && val !== null;
525
+ return ret;
526
+ };
527
+
528
+ export function __wbindgen_in(arg0, arg1) {
529
+ const ret = getObject(arg0) in getObject(arg1);
530
+ return ret;
531
+ };
532
+
533
+ export function __wbindgen_bigint_from_i64(arg0) {
534
+ const ret = arg0;
535
+ return addHeapObject(ret);
536
+ };
537
+
538
+ export function __wbindgen_jsval_eq(arg0, arg1) {
539
+ const ret = getObject(arg0) === getObject(arg1);
540
+ return ret;
541
+ };
542
+
543
+ export function __wbindgen_bigint_from_u64(arg0) {
544
+ const ret = BigInt.asUintN(64, arg0);
545
+ return addHeapObject(ret);
546
+ };
547
+
548
+ export function __wbindgen_is_undefined(arg0) {
549
+ const ret = getObject(arg0) === undefined;
550
+ return ret;
551
+ };
552
+
553
+ export function __wbindgen_number_new(arg0) {
554
+ const ret = arg0;
555
+ return addHeapObject(ret);
556
+ };
557
+
558
+ export function __wbindgen_string_new(arg0, arg1) {
559
+ const ret = getStringFromWasm0(arg0, arg1);
560
+ return addHeapObject(ret);
561
+ };
562
+
563
+ export function __wbindgen_jsval_loose_eq(arg0, arg1) {
564
+ const ret = getObject(arg0) == getObject(arg1);
565
+ return ret;
566
+ };
567
+
568
+ export function __wbg_String_b9412f8799faab3e(arg0, arg1) {
569
+ const ret = String(getObject(arg1));
570
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
571
+ const len1 = WASM_VECTOR_LEN;
572
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
573
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
574
+ };
575
+
576
+ export function __wbg_getwithrefkey_edc2c8960f0f1191(arg0, arg1) {
577
+ const ret = getObject(arg0)[getObject(arg1)];
578
+ return addHeapObject(ret);
579
+ };
580
+
581
+ export function __wbg_set_f975102236d3c502(arg0, arg1, arg2) {
582
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
583
+ };
584
+
585
+ export function __wbg_debug_5fb96680aecf5dc8(arg0) {
586
+ console.debug(getObject(arg0));
587
+ };
588
+
589
+ export function __wbg_error_8e3928cfb8a43e2b(arg0) {
590
+ console.error(getObject(arg0));
591
+ };
592
+
593
+ export function __wbg_info_530a29cb2e4e3304(arg0) {
594
+ console.info(getObject(arg0));
595
+ };
596
+
597
+ export function __wbg_log_5bb5f88f245d7762(arg0) {
598
+ console.log(getObject(arg0));
599
+ };
600
+
601
+ export function __wbg_warn_63bbae1730aead09(arg0) {
602
+ console.warn(getObject(arg0));
603
+ };
604
+
605
+ export function __wbg_new_abda76e883ba8a5f() {
606
+ const ret = new Error();
607
+ return addHeapObject(ret);
608
+ };
609
+
610
+ export function __wbg_stack_658279fe44541cf6(arg0, arg1) {
611
+ const ret = getObject(arg1).stack;
612
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
613
+ const len1 = WASM_VECTOR_LEN;
614
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
615
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
616
+ };
617
+
618
+ export function __wbg_error_f851667af71bcfc6(arg0, arg1) {
619
+ let deferred0_0;
620
+ let deferred0_1;
621
+ try {
622
+ deferred0_0 = arg0;
623
+ deferred0_1 = arg1;
624
+ console.error(getStringFromWasm0(arg0, arg1));
625
+ } finally {
626
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
627
+ }
628
+ };
629
+
630
+ export function __wbindgen_is_function(arg0) {
631
+ const ret = typeof(getObject(arg0)) === 'function';
632
+ return ret;
633
+ };
634
+
635
+ export function __wbg_get_bd8e338fbd5f5cc8(arg0, arg1) {
636
+ const ret = getObject(arg0)[arg1 >>> 0];
637
+ return addHeapObject(ret);
638
+ };
639
+
640
+ export function __wbg_length_cd7af8117672b8b8(arg0) {
641
+ const ret = getObject(arg0).length;
642
+ return ret;
643
+ };
644
+
645
+ export function __wbg_new_16b304a2cfa7ff4a() {
646
+ const ret = new Array();
647
+ return addHeapObject(ret);
648
+ };
649
+
650
+ export function __wbg_new_d9bc3a0147634640() {
651
+ const ret = new Map();
652
+ return addHeapObject(ret);
653
+ };
654
+
655
+ export function __wbg_next_40fc327bfc8770e6(arg0) {
656
+ const ret = getObject(arg0).next;
657
+ return addHeapObject(ret);
658
+ };
659
+
660
+ export function __wbg_next_196c84450b364254() { return handleError(function (arg0) {
661
+ const ret = getObject(arg0).next();
662
+ return addHeapObject(ret);
663
+ }, arguments) };
664
+
665
+ export function __wbg_done_298b57d23c0fc80c(arg0) {
666
+ const ret = getObject(arg0).done;
667
+ return ret;
668
+ };
669
+
670
+ export function __wbg_value_d93c65011f51a456(arg0) {
671
+ const ret = getObject(arg0).value;
672
+ return addHeapObject(ret);
673
+ };
674
+
675
+ export function __wbg_iterator_2cee6dadfd956dfa() {
676
+ const ret = Symbol.iterator;
677
+ return addHeapObject(ret);
678
+ };
679
+
680
+ export function __wbg_get_e3c254076557e348() { return handleError(function (arg0, arg1) {
681
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
682
+ return addHeapObject(ret);
683
+ }, arguments) };
684
+
685
+ export function __wbg_call_27c0f87801dedf93() { return handleError(function (arg0, arg1) {
686
+ const ret = getObject(arg0).call(getObject(arg1));
687
+ return addHeapObject(ret);
688
+ }, arguments) };
689
+
690
+ export function __wbg_new_72fb9a18b5ae2624() {
691
+ const ret = new Object();
692
+ return addHeapObject(ret);
693
+ };
694
+
695
+ export function __wbg_set_d4638f722068f043(arg0, arg1, arg2) {
696
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
697
+ };
698
+
699
+ export function __wbg_isArray_2ab64d95e09ea0ae(arg0) {
700
+ const ret = Array.isArray(getObject(arg0));
701
+ return ret;
702
+ };
703
+
704
+ export function __wbg_instanceof_ArrayBuffer_836825be07d4c9d2(arg0) {
705
+ let result;
706
+ try {
707
+ result = getObject(arg0) instanceof ArrayBuffer;
708
+ } catch (_) {
709
+ result = false;
710
+ }
711
+ const ret = result;
712
+ return ret;
713
+ };
714
+
715
+ export function __wbg_new_28c511d9baebfa89(arg0, arg1) {
716
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
717
+ return addHeapObject(ret);
718
+ };
719
+
720
+ export function __wbg_instanceof_Map_87917e0a7aaf4012(arg0) {
721
+ let result;
722
+ try {
723
+ result = getObject(arg0) instanceof Map;
724
+ } catch (_) {
725
+ result = false;
726
+ }
727
+ const ret = result;
728
+ return ret;
729
+ };
730
+
731
+ export function __wbg_set_8417257aaedc936b(arg0, arg1, arg2) {
732
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
733
+ return addHeapObject(ret);
734
+ };
735
+
736
+ export function __wbg_isSafeInteger_f7b04ef02296c4d2(arg0) {
737
+ const ret = Number.isSafeInteger(getObject(arg0));
738
+ return ret;
739
+ };
740
+
741
+ export function __wbg_entries_95cc2c823b285a09(arg0) {
742
+ const ret = Object.entries(getObject(arg0));
743
+ return addHeapObject(ret);
744
+ };
745
+
746
+ export function __wbg_fromCodePoint_cedd7612a2ff688f() { return handleError(function (arg0) {
747
+ const ret = String.fromCodePoint(arg0 >>> 0);
748
+ return addHeapObject(ret);
749
+ }, arguments) };
750
+
751
+ export function __wbg_buffer_12d079cc21e14bdb(arg0) {
752
+ const ret = getObject(arg0).buffer;
753
+ return addHeapObject(ret);
754
+ };
755
+
756
+ export function __wbg_new_63b92bc8671ed464(arg0) {
757
+ const ret = new Uint8Array(getObject(arg0));
758
+ return addHeapObject(ret);
759
+ };
760
+
761
+ export function __wbg_set_a47bac70306a19a7(arg0, arg1, arg2) {
762
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
763
+ };
764
+
765
+ export function __wbg_length_c20a40f15020d68a(arg0) {
766
+ const ret = getObject(arg0).length;
767
+ return ret;
768
+ };
769
+
770
+ export function __wbg_instanceof_Uint8Array_2b3bbecd033d19f6(arg0) {
771
+ let result;
772
+ try {
773
+ result = getObject(arg0) instanceof Uint8Array;
774
+ } catch (_) {
775
+ result = false;
776
+ }
777
+ const ret = result;
778
+ return ret;
779
+ };
780
+
781
+ export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
782
+ const v = getObject(arg1);
783
+ const ret = typeof(v) === 'bigint' ? v : undefined;
784
+ getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
785
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
786
+ };
787
+
788
+ export function __wbindgen_debug_string(arg0, arg1) {
789
+ const ret = debugString(getObject(arg1));
790
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
791
+ const len1 = WASM_VECTOR_LEN;
792
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
793
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
794
+ };
795
+
796
+ export function __wbindgen_throw(arg0, arg1) {
797
+ throw new Error(getStringFromWasm0(arg0, arg1));
798
+ };
799
+
800
+ export function __wbindgen_memory() {
801
+ const ret = wasm.memory;
802
+ return addHeapObject(ret);
803
+ };
804
+