@stadiamaps/ferrostar 0.9.1 → 0.10.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.
@@ -0,0 +1,848 @@
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
+ function isLikeNone(x) {
28
+ return x === undefined || x === null;
29
+ }
30
+
31
+ let cachedFloat64Memory0 = null;
32
+
33
+ function getFloat64Memory0() {
34
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
35
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
36
+ }
37
+ return cachedFloat64Memory0;
38
+ }
39
+
40
+ let cachedInt32Memory0 = null;
41
+
42
+ function getInt32Memory0() {
43
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
44
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
45
+ }
46
+ return cachedInt32Memory0;
47
+ }
48
+
49
+ function addHeapObject(obj) {
50
+ if (heap_next === heap.length) heap.push(heap.length + 1);
51
+ const idx = heap_next;
52
+ heap_next = heap[idx];
53
+
54
+ heap[idx] = obj;
55
+ return idx;
56
+ }
57
+
58
+ let WASM_VECTOR_LEN = 0;
59
+
60
+ let cachedUint8Memory0 = null;
61
+
62
+ function getUint8Memory0() {
63
+ if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
64
+ cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
65
+ }
66
+ return cachedUint8Memory0;
67
+ }
68
+
69
+ const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
70
+
71
+ let cachedTextEncoder = new lTextEncoder('utf-8');
72
+
73
+ const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
74
+ ? function (arg, view) {
75
+ return cachedTextEncoder.encodeInto(arg, view);
76
+ }
77
+ : function (arg, view) {
78
+ const buf = cachedTextEncoder.encode(arg);
79
+ view.set(buf);
80
+ return {
81
+ read: arg.length,
82
+ written: buf.length
83
+ };
84
+ });
85
+
86
+ function passStringToWasm0(arg, malloc, realloc) {
87
+
88
+ if (realloc === undefined) {
89
+ const buf = cachedTextEncoder.encode(arg);
90
+ const ptr = malloc(buf.length, 1) >>> 0;
91
+ getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
92
+ WASM_VECTOR_LEN = buf.length;
93
+ return ptr;
94
+ }
95
+
96
+ let len = arg.length;
97
+ let ptr = malloc(len, 1) >>> 0;
98
+
99
+ const mem = getUint8Memory0();
100
+
101
+ let offset = 0;
102
+
103
+ for (; offset < len; offset++) {
104
+ const code = arg.charCodeAt(offset);
105
+ if (code > 0x7F) break;
106
+ mem[ptr + offset] = code;
107
+ }
108
+
109
+ if (offset !== len) {
110
+ if (offset !== 0) {
111
+ arg = arg.slice(offset);
112
+ }
113
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
114
+ const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
115
+ const ret = encodeString(arg, view);
116
+
117
+ offset += ret.written;
118
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
119
+ }
120
+
121
+ WASM_VECTOR_LEN = offset;
122
+ return ptr;
123
+ }
124
+
125
+ const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
126
+
127
+ let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
128
+
129
+ cachedTextDecoder.decode();
130
+
131
+ function getStringFromWasm0(ptr, len) {
132
+ ptr = ptr >>> 0;
133
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
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
+ * JavaScript wrapper for `location_simulation_from_coordinates`.
211
+ * @param {any} coordinates
212
+ * @param {number | undefined} [resample_distance]
213
+ * @returns {any}
214
+ */
215
+ export function locationSimulationFromCoordinates(coordinates, resample_distance) {
216
+ try {
217
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
218
+ wasm.locationSimulationFromCoordinates(retptr, addHeapObject(coordinates), !isLikeNone(resample_distance), isLikeNone(resample_distance) ? 0 : resample_distance);
219
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
220
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
221
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
222
+ if (r2) {
223
+ throw takeObject(r1);
224
+ }
225
+ return takeObject(r0);
226
+ } finally {
227
+ wasm.__wbindgen_add_to_stack_pointer(16);
228
+ }
229
+ }
230
+
231
+ /**
232
+ * JavaScript wrapper for `location_simulation_from_route`.
233
+ * @param {any} route
234
+ * @param {number | undefined} [resample_distance]
235
+ * @returns {any}
236
+ */
237
+ export function locationSimulationFromRoute(route, resample_distance) {
238
+ try {
239
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
240
+ wasm.locationSimulationFromRoute(retptr, addHeapObject(route), !isLikeNone(resample_distance), isLikeNone(resample_distance) ? 0 : resample_distance);
241
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
242
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
243
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
244
+ if (r2) {
245
+ throw takeObject(r1);
246
+ }
247
+ return takeObject(r0);
248
+ } finally {
249
+ wasm.__wbindgen_add_to_stack_pointer(16);
250
+ }
251
+ }
252
+
253
+ /**
254
+ * JavaScript wrapper for `location_simulation_from_polyline`.
255
+ * @param {string} polyline
256
+ * @param {number} precision
257
+ * @param {number | undefined} [resample_distance]
258
+ * @returns {any}
259
+ */
260
+ export function locationSimulationFromPolyline(polyline, precision, resample_distance) {
261
+ try {
262
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
263
+ const ptr0 = passStringToWasm0(polyline, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
264
+ const len0 = WASM_VECTOR_LEN;
265
+ wasm.locationSimulationFromPolyline(retptr, ptr0, len0, precision, !isLikeNone(resample_distance), isLikeNone(resample_distance) ? 0 : resample_distance);
266
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
267
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
268
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
269
+ if (r2) {
270
+ throw takeObject(r1);
271
+ }
272
+ return takeObject(r0);
273
+ } finally {
274
+ wasm.__wbindgen_add_to_stack_pointer(16);
275
+ }
276
+ }
277
+
278
+ /**
279
+ * JavaScript wrapper for `advance_location_simulation`.
280
+ * @param {any} state
281
+ * @returns {any}
282
+ */
283
+ export function advanceLocationSimulation(state) {
284
+ const ret = wasm.advanceLocationSimulation(addHeapObject(state));
285
+ return takeObject(ret);
286
+ }
287
+
288
+ function passArray8ToWasm0(arg, malloc) {
289
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
290
+ getUint8Memory0().set(arg, ptr / 1);
291
+ WASM_VECTOR_LEN = arg.length;
292
+ return ptr;
293
+ }
294
+
295
+ function handleError(f, args) {
296
+ try {
297
+ return f.apply(this, args);
298
+ } catch (e) {
299
+ wasm.__wbindgen_exn_store(addHeapObject(e));
300
+ }
301
+ }
302
+
303
+ const NavigationControllerFinalization = (typeof FinalizationRegistry === 'undefined')
304
+ ? { register: () => {}, unregister: () => {} }
305
+ : new FinalizationRegistry(ptr => wasm.__wbg_navigationcontroller_free(ptr >>> 0));
306
+ /**
307
+ * JavaScript wrapper for `NavigationController`.
308
+ */
309
+ export class NavigationController {
310
+
311
+ __destroy_into_raw() {
312
+ const ptr = this.__wbg_ptr;
313
+ this.__wbg_ptr = 0;
314
+ NavigationControllerFinalization.unregister(this);
315
+ return ptr;
316
+ }
317
+
318
+ free() {
319
+ const ptr = this.__destroy_into_raw();
320
+ wasm.__wbg_navigationcontroller_free(ptr);
321
+ }
322
+ /**
323
+ * @param {any} route
324
+ * @param {any} config
325
+ */
326
+ constructor(route, config) {
327
+ try {
328
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
329
+ wasm.navigationcontroller_new(retptr, addHeapObject(route), addHeapObject(config));
330
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
331
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
332
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
333
+ if (r2) {
334
+ throw takeObject(r1);
335
+ }
336
+ this.__wbg_ptr = r0 >>> 0;
337
+ return this;
338
+ } finally {
339
+ wasm.__wbindgen_add_to_stack_pointer(16);
340
+ }
341
+ }
342
+ /**
343
+ * @param {any} location
344
+ * @returns {any}
345
+ */
346
+ getInitialState(location) {
347
+ try {
348
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
349
+ wasm.navigationcontroller_getInitialState(retptr, this.__wbg_ptr, addHeapObject(location));
350
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
351
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
352
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
353
+ if (r2) {
354
+ throw takeObject(r1);
355
+ }
356
+ return takeObject(r0);
357
+ } finally {
358
+ wasm.__wbindgen_add_to_stack_pointer(16);
359
+ }
360
+ }
361
+ /**
362
+ * @param {any} state
363
+ * @returns {any}
364
+ */
365
+ advance_to_next_step(state) {
366
+ try {
367
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
368
+ wasm.navigationcontroller_advance_to_next_step(retptr, this.__wbg_ptr, addHeapObject(state));
369
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
370
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
371
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
372
+ if (r2) {
373
+ throw takeObject(r1);
374
+ }
375
+ return takeObject(r0);
376
+ } finally {
377
+ wasm.__wbindgen_add_to_stack_pointer(16);
378
+ }
379
+ }
380
+ /**
381
+ * @param {any} location
382
+ * @param {any} state
383
+ * @returns {any}
384
+ */
385
+ updateUserLocation(location, state) {
386
+ try {
387
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
388
+ wasm.navigationcontroller_updateUserLocation(retptr, this.__wbg_ptr, addHeapObject(location), addHeapObject(state));
389
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
390
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
391
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
392
+ if (r2) {
393
+ throw takeObject(r1);
394
+ }
395
+ return takeObject(r0);
396
+ } finally {
397
+ wasm.__wbindgen_add_to_stack_pointer(16);
398
+ }
399
+ }
400
+ }
401
+
402
+ const RouteAdapterFinalization = (typeof FinalizationRegistry === 'undefined')
403
+ ? { register: () => {}, unregister: () => {} }
404
+ : new FinalizationRegistry(ptr => wasm.__wbg_routeadapter_free(ptr >>> 0));
405
+ /**
406
+ * JavaScript wrapper for `RouteAdapter`.
407
+ */
408
+ export class RouteAdapter {
409
+
410
+ __destroy_into_raw() {
411
+ const ptr = this.__wbg_ptr;
412
+ this.__wbg_ptr = 0;
413
+ RouteAdapterFinalization.unregister(this);
414
+ return ptr;
415
+ }
416
+
417
+ free() {
418
+ const ptr = this.__destroy_into_raw();
419
+ wasm.__wbg_routeadapter_free(ptr);
420
+ }
421
+ /**
422
+ * Creates a new RouteAdapter with a Valhalla HTTP request generator and an OSRM response parser.
423
+ * At the moment, this is the only supported combination.
424
+ * @param {string} endpoint_url
425
+ * @param {string} profile
426
+ * @param {string | undefined} [costing_options_json]
427
+ */
428
+ constructor(endpoint_url, profile, costing_options_json) {
429
+ try {
430
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
431
+ const ptr0 = passStringToWasm0(endpoint_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
432
+ const len0 = WASM_VECTOR_LEN;
433
+ const ptr1 = passStringToWasm0(profile, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
434
+ const len1 = WASM_VECTOR_LEN;
435
+ var ptr2 = isLikeNone(costing_options_json) ? 0 : passStringToWasm0(costing_options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
436
+ var len2 = WASM_VECTOR_LEN;
437
+ wasm.routeadapter_new(retptr, ptr0, len0, ptr1, len1, ptr2, len2);
438
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
439
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
440
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
441
+ if (r2) {
442
+ throw takeObject(r1);
443
+ }
444
+ this.__wbg_ptr = r0 >>> 0;
445
+ return this;
446
+ } finally {
447
+ wasm.__wbindgen_add_to_stack_pointer(16);
448
+ }
449
+ }
450
+ /**
451
+ * @param {any} user_location
452
+ * @param {any} waypoints
453
+ * @returns {any}
454
+ */
455
+ generateRequest(user_location, waypoints) {
456
+ try {
457
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
458
+ wasm.routeadapter_generateRequest(retptr, this.__wbg_ptr, addHeapObject(user_location), addHeapObject(waypoints));
459
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
460
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
461
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
462
+ if (r2) {
463
+ throw takeObject(r1);
464
+ }
465
+ return takeObject(r0);
466
+ } finally {
467
+ wasm.__wbindgen_add_to_stack_pointer(16);
468
+ }
469
+ }
470
+ /**
471
+ * @param {Uint8Array} response
472
+ * @returns {any}
473
+ */
474
+ parseResponse(response) {
475
+ try {
476
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
477
+ const ptr0 = passArray8ToWasm0(response, wasm.__wbindgen_malloc);
478
+ const len0 = WASM_VECTOR_LEN;
479
+ wasm.routeadapter_parseResponse(retptr, this.__wbg_ptr, ptr0, len0);
480
+ var r0 = getInt32Memory0()[retptr / 4 + 0];
481
+ var r1 = getInt32Memory0()[retptr / 4 + 1];
482
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
483
+ if (r2) {
484
+ throw takeObject(r1);
485
+ }
486
+ return takeObject(r0);
487
+ } finally {
488
+ wasm.__wbindgen_add_to_stack_pointer(16);
489
+ }
490
+ }
491
+ }
492
+
493
+ export function __wbindgen_object_drop_ref(arg0) {
494
+ takeObject(arg0);
495
+ };
496
+
497
+ export function __wbindgen_is_undefined(arg0) {
498
+ const ret = getObject(arg0) === undefined;
499
+ return ret;
500
+ };
501
+
502
+ export function __wbindgen_in(arg0, arg1) {
503
+ const ret = getObject(arg0) in getObject(arg1);
504
+ return ret;
505
+ };
506
+
507
+ export function __wbindgen_number_get(arg0, arg1) {
508
+ const obj = getObject(arg1);
509
+ const ret = typeof(obj) === 'number' ? obj : undefined;
510
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
511
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
512
+ };
513
+
514
+ export function __wbindgen_is_bigint(arg0) {
515
+ const ret = typeof(getObject(arg0)) === 'bigint';
516
+ return ret;
517
+ };
518
+
519
+ export function __wbindgen_bigint_from_u64(arg0) {
520
+ const ret = BigInt.asUintN(64, arg0);
521
+ return addHeapObject(ret);
522
+ };
523
+
524
+ export function __wbindgen_jsval_eq(arg0, arg1) {
525
+ const ret = getObject(arg0) === getObject(arg1);
526
+ return ret;
527
+ };
528
+
529
+ export function __wbindgen_is_string(arg0) {
530
+ const ret = typeof(getObject(arg0)) === 'string';
531
+ return ret;
532
+ };
533
+
534
+ export function __wbindgen_string_get(arg0, arg1) {
535
+ const obj = getObject(arg1);
536
+ const ret = typeof(obj) === 'string' ? obj : undefined;
537
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
538
+ var len1 = WASM_VECTOR_LEN;
539
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
540
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
541
+ };
542
+
543
+ export function __wbindgen_is_object(arg0) {
544
+ const val = getObject(arg0);
545
+ const ret = typeof(val) === 'object' && val !== null;
546
+ return ret;
547
+ };
548
+
549
+ export function __wbindgen_string_new(arg0, arg1) {
550
+ const ret = getStringFromWasm0(arg0, arg1);
551
+ return addHeapObject(ret);
552
+ };
553
+
554
+ export function __wbindgen_error_new(arg0, arg1) {
555
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
556
+ return addHeapObject(ret);
557
+ };
558
+
559
+ export function __wbindgen_object_clone_ref(arg0) {
560
+ const ret = getObject(arg0);
561
+ return addHeapObject(ret);
562
+ };
563
+
564
+ export function __wbindgen_jsval_loose_eq(arg0, arg1) {
565
+ const ret = getObject(arg0) == getObject(arg1);
566
+ return ret;
567
+ };
568
+
569
+ export function __wbindgen_boolean_get(arg0) {
570
+ const v = getObject(arg0);
571
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
572
+ return ret;
573
+ };
574
+
575
+ export function __wbindgen_as_number(arg0) {
576
+ const ret = +getObject(arg0);
577
+ return ret;
578
+ };
579
+
580
+ export function __wbg_String_b9412f8799faab3e(arg0, arg1) {
581
+ const ret = String(getObject(arg1));
582
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
583
+ const len1 = WASM_VECTOR_LEN;
584
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
585
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
586
+ };
587
+
588
+ export function __wbindgen_number_new(arg0) {
589
+ const ret = arg0;
590
+ return addHeapObject(ret);
591
+ };
592
+
593
+ export function __wbindgen_bigint_from_i64(arg0) {
594
+ const ret = arg0;
595
+ return addHeapObject(ret);
596
+ };
597
+
598
+ export function __wbg_getwithrefkey_edc2c8960f0f1191(arg0, arg1) {
599
+ const ret = getObject(arg0)[getObject(arg1)];
600
+ return addHeapObject(ret);
601
+ };
602
+
603
+ export function __wbg_set_f975102236d3c502(arg0, arg1, arg2) {
604
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
605
+ };
606
+
607
+ export function __wbg_crypto_1d1f22824a6a080c(arg0) {
608
+ const ret = getObject(arg0).crypto;
609
+ return addHeapObject(ret);
610
+ };
611
+
612
+ export function __wbg_process_4a72847cc503995b(arg0) {
613
+ const ret = getObject(arg0).process;
614
+ return addHeapObject(ret);
615
+ };
616
+
617
+ export function __wbg_versions_f686565e586dd935(arg0) {
618
+ const ret = getObject(arg0).versions;
619
+ return addHeapObject(ret);
620
+ };
621
+
622
+ export function __wbg_node_104a2ff8d6ea03a2(arg0) {
623
+ const ret = getObject(arg0).node;
624
+ return addHeapObject(ret);
625
+ };
626
+
627
+ export function __wbg_require_cca90b1a94a0255b() { return handleError(function () {
628
+ const ret = module.require;
629
+ return addHeapObject(ret);
630
+ }, arguments) };
631
+
632
+ export function __wbg_msCrypto_eb05e62b530a1508(arg0) {
633
+ const ret = getObject(arg0).msCrypto;
634
+ return addHeapObject(ret);
635
+ };
636
+
637
+ export function __wbg_randomFillSync_5c9c955aa56b6049() { return handleError(function (arg0, arg1) {
638
+ getObject(arg0).randomFillSync(takeObject(arg1));
639
+ }, arguments) };
640
+
641
+ export function __wbg_getRandomValues_3aa56aa6edec874c() { return handleError(function (arg0, arg1) {
642
+ getObject(arg0).getRandomValues(getObject(arg1));
643
+ }, arguments) };
644
+
645
+ export function __wbg_get_bd8e338fbd5f5cc8(arg0, arg1) {
646
+ const ret = getObject(arg0)[arg1 >>> 0];
647
+ return addHeapObject(ret);
648
+ };
649
+
650
+ export function __wbg_length_cd7af8117672b8b8(arg0) {
651
+ const ret = getObject(arg0).length;
652
+ return ret;
653
+ };
654
+
655
+ export function __wbg_new_16b304a2cfa7ff4a() {
656
+ const ret = new Array();
657
+ return addHeapObject(ret);
658
+ };
659
+
660
+ export function __wbindgen_is_function(arg0) {
661
+ const ret = typeof(getObject(arg0)) === 'function';
662
+ return ret;
663
+ };
664
+
665
+ export function __wbg_newnoargs_e258087cd0daa0ea(arg0, arg1) {
666
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
667
+ return addHeapObject(ret);
668
+ };
669
+
670
+ export function __wbg_new_d9bc3a0147634640() {
671
+ const ret = new Map();
672
+ return addHeapObject(ret);
673
+ };
674
+
675
+ export function __wbg_next_40fc327bfc8770e6(arg0) {
676
+ const ret = getObject(arg0).next;
677
+ return addHeapObject(ret);
678
+ };
679
+
680
+ export function __wbg_next_196c84450b364254() { return handleError(function (arg0) {
681
+ const ret = getObject(arg0).next();
682
+ return addHeapObject(ret);
683
+ }, arguments) };
684
+
685
+ export function __wbg_done_298b57d23c0fc80c(arg0) {
686
+ const ret = getObject(arg0).done;
687
+ return ret;
688
+ };
689
+
690
+ export function __wbg_value_d93c65011f51a456(arg0) {
691
+ const ret = getObject(arg0).value;
692
+ return addHeapObject(ret);
693
+ };
694
+
695
+ export function __wbg_iterator_2cee6dadfd956dfa() {
696
+ const ret = Symbol.iterator;
697
+ return addHeapObject(ret);
698
+ };
699
+
700
+ export function __wbg_get_e3c254076557e348() { return handleError(function (arg0, arg1) {
701
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
702
+ return addHeapObject(ret);
703
+ }, arguments) };
704
+
705
+ export function __wbg_call_27c0f87801dedf93() { return handleError(function (arg0, arg1) {
706
+ const ret = getObject(arg0).call(getObject(arg1));
707
+ return addHeapObject(ret);
708
+ }, arguments) };
709
+
710
+ export function __wbg_new_72fb9a18b5ae2624() {
711
+ const ret = new Object();
712
+ return addHeapObject(ret);
713
+ };
714
+
715
+ export function __wbg_self_ce0dbfc45cf2f5be() { return handleError(function () {
716
+ const ret = self.self;
717
+ return addHeapObject(ret);
718
+ }, arguments) };
719
+
720
+ export function __wbg_window_c6fb939a7f436783() { return handleError(function () {
721
+ const ret = window.window;
722
+ return addHeapObject(ret);
723
+ }, arguments) };
724
+
725
+ export function __wbg_globalThis_d1e6af4856ba331b() { return handleError(function () {
726
+ const ret = globalThis.globalThis;
727
+ return addHeapObject(ret);
728
+ }, arguments) };
729
+
730
+ export function __wbg_global_207b558942527489() { return handleError(function () {
731
+ const ret = global.global;
732
+ return addHeapObject(ret);
733
+ }, arguments) };
734
+
735
+ export function __wbg_set_d4638f722068f043(arg0, arg1, arg2) {
736
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
737
+ };
738
+
739
+ export function __wbg_isArray_2ab64d95e09ea0ae(arg0) {
740
+ const ret = Array.isArray(getObject(arg0));
741
+ return ret;
742
+ };
743
+
744
+ export function __wbg_instanceof_ArrayBuffer_836825be07d4c9d2(arg0) {
745
+ let result;
746
+ try {
747
+ result = getObject(arg0) instanceof ArrayBuffer;
748
+ } catch (_) {
749
+ result = false;
750
+ }
751
+ const ret = result;
752
+ return ret;
753
+ };
754
+
755
+ export function __wbg_call_b3ca7c6051f9bec1() { return handleError(function (arg0, arg1, arg2) {
756
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
757
+ return addHeapObject(ret);
758
+ }, arguments) };
759
+
760
+ export function __wbg_set_8417257aaedc936b(arg0, arg1, arg2) {
761
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
762
+ return addHeapObject(ret);
763
+ };
764
+
765
+ export function __wbg_isSafeInteger_f7b04ef02296c4d2(arg0) {
766
+ const ret = Number.isSafeInteger(getObject(arg0));
767
+ return ret;
768
+ };
769
+
770
+ export function __wbg_now_3014639a94423537() {
771
+ const ret = Date.now();
772
+ return ret;
773
+ };
774
+
775
+ export function __wbg_entries_95cc2c823b285a09(arg0) {
776
+ const ret = Object.entries(getObject(arg0));
777
+ return addHeapObject(ret);
778
+ };
779
+
780
+ export function __wbg_buffer_12d079cc21e14bdb(arg0) {
781
+ const ret = getObject(arg0).buffer;
782
+ return addHeapObject(ret);
783
+ };
784
+
785
+ export function __wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb(arg0, arg1, arg2) {
786
+ const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
787
+ return addHeapObject(ret);
788
+ };
789
+
790
+ export function __wbg_new_63b92bc8671ed464(arg0) {
791
+ const ret = new Uint8Array(getObject(arg0));
792
+ return addHeapObject(ret);
793
+ };
794
+
795
+ export function __wbg_set_a47bac70306a19a7(arg0, arg1, arg2) {
796
+ getObject(arg0).set(getObject(arg1), arg2 >>> 0);
797
+ };
798
+
799
+ export function __wbg_length_c20a40f15020d68a(arg0) {
800
+ const ret = getObject(arg0).length;
801
+ return ret;
802
+ };
803
+
804
+ export function __wbg_instanceof_Uint8Array_2b3bbecd033d19f6(arg0) {
805
+ let result;
806
+ try {
807
+ result = getObject(arg0) instanceof Uint8Array;
808
+ } catch (_) {
809
+ result = false;
810
+ }
811
+ const ret = result;
812
+ return ret;
813
+ };
814
+
815
+ export function __wbg_newwithlength_e9b4878cebadb3d3(arg0) {
816
+ const ret = new Uint8Array(arg0 >>> 0);
817
+ return addHeapObject(ret);
818
+ };
819
+
820
+ export function __wbg_subarray_a1f73cd4b5b42fe1(arg0, arg1, arg2) {
821
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
822
+ return addHeapObject(ret);
823
+ };
824
+
825
+ export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
826
+ const v = getObject(arg1);
827
+ const ret = typeof(v) === 'bigint' ? v : undefined;
828
+ getBigInt64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? BigInt(0) : ret;
829
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
830
+ };
831
+
832
+ export function __wbindgen_debug_string(arg0, arg1) {
833
+ const ret = debugString(getObject(arg1));
834
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
835
+ const len1 = WASM_VECTOR_LEN;
836
+ getInt32Memory0()[arg0 / 4 + 1] = len1;
837
+ getInt32Memory0()[arg0 / 4 + 0] = ptr1;
838
+ };
839
+
840
+ export function __wbindgen_throw(arg0, arg1) {
841
+ throw new Error(getStringFromWasm0(arg0, arg1));
842
+ };
843
+
844
+ export function __wbindgen_memory() {
845
+ const ret = wasm.memory;
846
+ return addHeapObject(ret);
847
+ };
848
+