@perspective-dev/client 4.0.1 → 4.1.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.
Files changed (45) hide show
  1. package/dist/cdn/perspective-server.worker.js +1 -1
  2. package/dist/cdn/perspective-server.worker.js.map +3 -3
  3. package/dist/cdn/perspective.js +2 -2
  4. package/dist/cdn/perspective.js.map +4 -4
  5. package/dist/esm/perspective.browser.d.ts +5 -1
  6. package/dist/esm/perspective.inline.js +2 -2
  7. package/dist/esm/perspective.inline.js.map +4 -4
  8. package/dist/esm/perspective.js +2 -2
  9. package/dist/esm/perspective.js.map +4 -4
  10. package/dist/esm/perspective.node.d.ts +6 -1
  11. package/dist/esm/perspective.node.js +722 -353
  12. package/dist/esm/perspective.node.js.map +4 -4
  13. package/dist/esm/ts-rs/ColumnType.d.ts +4 -0
  14. package/dist/esm/ts-rs/ViewConfig.d.ts +18 -0
  15. package/dist/esm/ts-rs/ViewWindow.d.ts +9 -9
  16. package/dist/esm/virtual_server.d.ts +47 -0
  17. package/dist/esm/virtual_servers/duckdb.d.ts +39 -0
  18. package/dist/esm/virtual_servers/duckdb.js +12 -0
  19. package/dist/esm/virtual_servers/duckdb.js.map +7 -0
  20. package/dist/esm/wasm/browser.d.ts +1 -1
  21. package/dist/wasm/perspective-js.d.ts +52 -13
  22. package/dist/wasm/perspective-js.js +680 -399
  23. package/dist/wasm/perspective-js.wasm +0 -0
  24. package/dist/wasm/perspective-js.wasm.d.ts +20 -8
  25. package/package.json +4 -1
  26. package/src/rust/client.rs +14 -5
  27. package/src/rust/lib.rs +11 -1
  28. package/src/rust/table.rs +3 -2
  29. package/src/rust/table_data.rs +19 -14
  30. package/src/rust/utils/browser.rs +0 -4
  31. package/src/rust/utils/console_logger.rs +3 -2
  32. package/src/rust/utils/errors.rs +10 -28
  33. package/src/rust/utils/futures.rs +3 -3
  34. package/src/rust/utils/json.rs +4 -4
  35. package/src/rust/virtual_server.rs +746 -0
  36. package/src/ts/perspective-server.worker.ts +33 -23
  37. package/src/ts/perspective.browser.ts +17 -2
  38. package/src/ts/perspective.node.ts +46 -11
  39. package/src/ts/ts-rs/ColumnType.ts +6 -0
  40. package/src/ts/ts-rs/ViewConfig.ts +8 -0
  41. package/src/ts/ts-rs/ViewWindow.ts +3 -3
  42. package/src/ts/virtual_server.ts +126 -0
  43. package/src/ts/virtual_servers/duckdb.ts +511 -0
  44. package/src/ts/wasm/browser.ts +17 -9
  45. package/tsconfig.json +1 -0
@@ -1,13 +1,11 @@
1
1
  let wasm;
2
2
 
3
- const heap = new Array(128).fill(undefined);
3
+ let heap = new Array(128).fill(undefined);
4
4
 
5
5
  heap.push(undefined, null, true, false);
6
6
 
7
7
  function getObject(idx) { return heap[idx]; }
8
8
 
9
- let WASM_VECTOR_LEN = 0;
10
-
11
9
  let cachedUint8ArrayMemory0 = null;
12
10
 
13
11
  function getUint8ArrayMemory0() {
@@ -17,11 +15,49 @@ function getUint8ArrayMemory0() {
17
15
  return cachedUint8ArrayMemory0;
18
16
  }
19
17
 
20
- const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
18
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
19
+
20
+ cachedTextDecoder.decode();
21
+
22
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
23
+ let numBytesDecoded = 0;
24
+ function decodeText(ptr, len) {
25
+ numBytesDecoded += len;
26
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
27
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
28
+ cachedTextDecoder.decode();
29
+ numBytesDecoded = len;
30
+ }
31
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
32
+ }
33
+
34
+ function getStringFromWasm0(ptr, len) {
35
+ ptr = ptr >>> 0;
36
+ return decodeText(ptr, len);
37
+ }
38
+
39
+ function getCachedStringFromWasm0(ptr, len) {
40
+ if (ptr === 0) {
41
+ return getObject(len);
42
+ } else {
43
+ return getStringFromWasm0(ptr, len);
44
+ }
45
+ }
46
+
47
+ let heap_next = heap.length;
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;
21
59
 
22
- const encodeString = function (arg, view) {
23
- return cachedTextEncoder.encodeInto(arg, view);
24
- };
60
+ const cachedTextEncoder = new TextEncoder();
25
61
 
26
62
  function passStringToWasm0(arg, malloc, realloc) {
27
63
 
@@ -52,7 +88,7 @@ function passStringToWasm0(arg, malloc, realloc) {
52
88
  }
53
89
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
54
90
  const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
55
- const ret = encodeString(arg, view);
91
+ const ret = cachedTextEncoder.encodeInto(arg, view);
56
92
 
57
93
  offset += ret.written;
58
94
  ptr = realloc(ptr, len, offset, 1) >>> 0;
@@ -71,108 +107,10 @@ function getDataViewMemory0() {
71
107
  return cachedDataViewMemory0;
72
108
  }
73
109
 
74
- let heap_next = heap.length;
75
-
76
- function addHeapObject(obj) {
77
- if (heap_next === heap.length) heap.push(heap.length + 1);
78
- const idx = heap_next;
79
- heap_next = heap[idx];
80
-
81
- heap[idx] = obj;
82
- return idx;
83
- }
84
-
85
- function handleError(f, args) {
86
- try {
87
- return f.apply(this, args);
88
- } catch (e) {
89
- wasm.__wbindgen_export_2(addHeapObject(e));
90
- }
91
- }
92
-
93
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
94
-
95
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
96
-
97
- function getStringFromWasm0(ptr, len) {
98
- ptr = ptr >>> 0;
99
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
100
- }
101
-
102
- function getArrayU8FromWasm0(ptr, len) {
103
- ptr = ptr >>> 0;
104
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
105
- }
106
-
107
110
  function isLikeNone(x) {
108
111
  return x === undefined || x === null;
109
112
  }
110
113
 
111
- function dropObject(idx) {
112
- if (idx < 132) return;
113
- heap[idx] = heap_next;
114
- heap_next = idx;
115
- }
116
-
117
- function takeObject(idx) {
118
- const ret = getObject(idx);
119
- dropObject(idx);
120
- return ret;
121
- }
122
-
123
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
124
- ? { register: () => {}, unregister: () => {} }
125
- : new FinalizationRegistry(state => {
126
- wasm.__wbindgen_export_4.get(state.dtor)(state.a, state.b)
127
- });
128
-
129
- function makeMutClosure(arg0, arg1, dtor, f) {
130
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
131
- const real = (...args) => {
132
- // First up with a closure we increment the internal reference
133
- // count. This ensures that the Rust closure environment won't
134
- // be deallocated while we're invoking it.
135
- state.cnt++;
136
- const a = state.a;
137
- state.a = 0;
138
- try {
139
- return f(a, state.b, ...args);
140
- } finally {
141
- if (--state.cnt === 0) {
142
- wasm.__wbindgen_export_4.get(state.dtor)(a, state.b);
143
- CLOSURE_DTORS.unregister(state);
144
- } else {
145
- state.a = a;
146
- }
147
- }
148
- };
149
- real.original = state;
150
- CLOSURE_DTORS.register(real, state, state);
151
- return real;
152
- }
153
-
154
- function makeClosure(arg0, arg1, dtor, f) {
155
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
156
- const real = (...args) => {
157
- // First up with a closure we increment the internal reference
158
- // count. This ensures that the Rust closure environment won't
159
- // be deallocated while we're invoking it.
160
- state.cnt++;
161
- try {
162
- return f(state.a, state.b, ...args);
163
- } finally {
164
- if (--state.cnt === 0) {
165
- wasm.__wbindgen_export_4.get(state.dtor)(state.a, state.b);
166
- state.a = 0;
167
- CLOSURE_DTORS.unregister(state);
168
- }
169
- }
170
- };
171
- real.original = state;
172
- CLOSURE_DTORS.register(real, state, state);
173
- return real;
174
- }
175
-
176
114
  function debugString(val) {
177
115
  // primitive types
178
116
  const type = typeof val;
@@ -238,6 +176,98 @@ function debugString(val) {
238
176
  return className;
239
177
  }
240
178
 
179
+ function handleError(f, args) {
180
+ try {
181
+ return f.apply(this, args);
182
+ } catch (e) {
183
+ wasm.__wbindgen_export3(addHeapObject(e));
184
+ }
185
+ }
186
+
187
+ function getArrayU8FromWasm0(ptr, len) {
188
+ ptr = ptr >>> 0;
189
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
190
+ }
191
+
192
+ function dropObject(idx) {
193
+ if (idx < 132) return;
194
+ heap[idx] = heap_next;
195
+ heap_next = idx;
196
+ }
197
+
198
+ function takeObject(idx) {
199
+ const ret = getObject(idx);
200
+ dropObject(idx);
201
+ return ret;
202
+ }
203
+
204
+ function getArrayJsValueFromWasm0(ptr, len) {
205
+ ptr = ptr >>> 0;
206
+ const mem = getDataViewMemory0();
207
+ const result = [];
208
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
209
+ result.push(takeObject(mem.getUint32(i, true)));
210
+ }
211
+ return result;
212
+ }
213
+
214
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
215
+ ? { register: () => {}, unregister: () => {} }
216
+ : new FinalizationRegistry(state => state.dtor(state.a, state.b));
217
+
218
+ function makeMutClosure(arg0, arg1, dtor, f) {
219
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
220
+ const real = (...args) => {
221
+
222
+ // First up with a closure we increment the internal reference
223
+ // count. This ensures that the Rust closure environment won't
224
+ // be deallocated while we're invoking it.
225
+ state.cnt++;
226
+ const a = state.a;
227
+ state.a = 0;
228
+ try {
229
+ return f(a, state.b, ...args);
230
+ } finally {
231
+ state.a = a;
232
+ real._wbg_cb_unref();
233
+ }
234
+ };
235
+ real._wbg_cb_unref = () => {
236
+ if (--state.cnt === 0) {
237
+ state.dtor(state.a, state.b);
238
+ state.a = 0;
239
+ CLOSURE_DTORS.unregister(state);
240
+ }
241
+ };
242
+ CLOSURE_DTORS.register(real, state, state);
243
+ return real;
244
+ }
245
+
246
+ function makeClosure(arg0, arg1, dtor, f) {
247
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
248
+ const real = (...args) => {
249
+
250
+ // First up with a closure we increment the internal reference
251
+ // count. This ensures that the Rust closure environment won't
252
+ // be deallocated while we're invoking it.
253
+ state.cnt++;
254
+ try {
255
+ return f(state.a, state.b, ...args);
256
+ } finally {
257
+ real._wbg_cb_unref();
258
+ }
259
+ };
260
+ real._wbg_cb_unref = () => {
261
+ if (--state.cnt === 0) {
262
+ state.dtor(state.a, state.b);
263
+ state.a = 0;
264
+ CLOSURE_DTORS.unregister(state);
265
+ }
266
+ };
267
+ CLOSURE_DTORS.register(real, state, state);
268
+ return real;
269
+ }
270
+
241
271
  function _assertClass(instance, klass) {
242
272
  if (!(instance instanceof klass)) {
243
273
  throw new Error(`expected instance of ${klass.name}`);
@@ -252,21 +282,28 @@ function addBorrowedObject(obj) {
252
282
  return stack_pointer;
253
283
  }
254
284
 
285
+ function passArray8ToWasm0(arg, malloc) {
286
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
287
+ getUint8ArrayMemory0().set(arg, ptr / 1);
288
+ WASM_VECTOR_LEN = arg.length;
289
+ return ptr;
290
+ }
291
+
255
292
  export function init() {
256
293
  wasm.init();
257
294
  }
258
295
 
259
- function __wbg_adapter_50(arg0, arg1) {
260
- const ret = wasm.__wbindgen_export_5(arg0, arg1);
261
- return takeObject(ret);
296
+ function __wasm_bindgen_func_elem_3509(arg0, arg1, arg2) {
297
+ wasm.__wasm_bindgen_func_elem_3509(arg0, arg1, addHeapObject(arg2));
262
298
  }
263
299
 
264
- function __wbg_adapter_53(arg0, arg1, arg2) {
265
- wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2));
300
+ function __wasm_bindgen_func_elem_553(arg0, arg1) {
301
+ const ret = wasm.__wasm_bindgen_func_elem_553(arg0, arg1);
302
+ return takeObject(ret);
266
303
  }
267
304
 
268
- function __wbg_adapter_251(arg0, arg1, arg2, arg3) {
269
- wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
305
+ function __wasm_bindgen_func_elem_5064(arg0, arg1, arg2, arg3) {
306
+ wasm.__wasm_bindgen_func_elem_5064(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
270
307
  }
271
308
 
272
309
  const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -335,19 +372,16 @@ export class Client {
335
372
  * @returns {string}
336
373
  */
337
374
  __getClassname() {
338
- let deferred1_0;
339
- let deferred1_1;
340
375
  try {
341
376
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
342
377
  wasm.client___getClassname(retptr, this.__wbg_ptr);
343
378
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
344
379
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
345
- deferred1_0 = r0;
346
- deferred1_1 = r1;
347
- return getStringFromWasm0(r0, r1);
380
+ var v1 = getCachedStringFromWasm0(r0, r1);
381
+ if (r0 !== 0) { wasm.__wbindgen_export4(r0, r1, 1); }
382
+ return v1;
348
383
  } finally {
349
384
  wasm.__wbindgen_add_to_stack_pointer(16);
350
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
351
385
  }
352
386
  }
353
387
  /**
@@ -397,7 +431,7 @@ export class Client {
397
431
  * @returns {Promise<void>}
398
432
  */
399
433
  handle_error(error, reconnect) {
400
- const ptr0 = passStringToWasm0(error, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
434
+ const ptr0 = passStringToWasm0(error, wasm.__wbindgen_export, wasm.__wbindgen_export2);
401
435
  const len0 = WASM_VECTOR_LEN;
402
436
  const ret = wasm.client_handle_error(this.__wbg_ptr, ptr0, len0, isLikeNone(reconnect) ? 0 : addHeapObject(reconnect));
403
437
  return takeObject(ret);
@@ -484,7 +518,7 @@ export class Client {
484
518
  * ```javascript
485
519
  * const table = await client.table(data, { index: "Row ID" });
486
520
  * ```
487
- * @param {string | ArrayBuffer | Record<string, unknown[]> | Record<string, unknown>[]} value
521
+ * @param {string | ArrayBuffer | Record<string, unknown[]> | Record<string, unknown>[] | Record<string, ColumnType>} value
488
522
  * @param {TableInitOptions | null} [options]
489
523
  * @returns {Promise<Table>}
490
524
  */
@@ -531,7 +565,7 @@ export class Client {
531
565
  * @returns {Promise<Table>}
532
566
  */
533
567
  open_table(entity_id) {
534
- const ptr0 = passStringToWasm0(entity_id, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
568
+ const ptr0 = passStringToWasm0(entity_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
535
569
  const len0 = WASM_VECTOR_LEN;
536
570
  const ret = wasm.client_open_table(this.__wbg_ptr, ptr0, len0);
537
571
  return takeObject(ret);
@@ -549,52 +583,266 @@ export class Client {
549
583
  * ```javascript
550
584
  * const tables = await client.get_hosted_table_names();
551
585
  * ```
552
- * @returns {Promise<any>}
586
+ * @returns {Promise<string[]>}
553
587
  */
554
588
  get_hosted_table_names() {
555
589
  const ret = wasm.client_get_hosted_table_names(this.__wbg_ptr);
556
590
  return takeObject(ret);
557
591
  }
558
- /**
559
- * Register a callback which is invoked whenever [`Client::table`] (on this
560
- * [`Client`]) or [`Table::delete`] (on a [`Table`] belinging to this
561
- * [`Client`]) are called.
562
- * @param {Function} on_update_js
563
- * @returns {Promise<number>}
564
- */
565
- on_hosted_tables_update(on_update_js) {
566
- const ret = wasm.client_on_hosted_tables_update(this.__wbg_ptr, addHeapObject(on_update_js));
567
- return takeObject(ret);
592
+ /**
593
+ * Register a callback which is invoked whenever [`Client::table`] (on this
594
+ * [`Client`]) or [`Table::delete`] (on a [`Table`] belinging to this
595
+ * [`Client`]) are called.
596
+ * @param {Function} on_update_js
597
+ * @returns {Promise<number>}
598
+ */
599
+ on_hosted_tables_update(on_update_js) {
600
+ const ret = wasm.client_on_hosted_tables_update(this.__wbg_ptr, addHeapObject(on_update_js));
601
+ return takeObject(ret);
602
+ }
603
+ /**
604
+ * Remove a callback previously registered via
605
+ * `Client::on_hosted_tables_update`.
606
+ * @param {number} update_id
607
+ * @returns {Promise<void>}
608
+ */
609
+ remove_hosted_tables_update(update_id) {
610
+ const ret = wasm.client_remove_hosted_tables_update(this.__wbg_ptr, update_id);
611
+ return takeObject(ret);
612
+ }
613
+ /**
614
+ * Provides the [`SystemInfo`] struct, implementation-specific metadata
615
+ * about the [`perspective_server::Server`] runtime such as Memory and
616
+ * CPU usage.
617
+ *
618
+ * For WebAssembly servers, this method includes the WebAssembly heap size.
619
+ *
620
+ * # JavaScript Examples
621
+ *
622
+ * ```javascript
623
+ * const info = await client.system_info();
624
+ * ```
625
+ * @returns {Promise<SystemInfo>}
626
+ */
627
+ system_info() {
628
+ const ret = wasm.client_system_info(this.__wbg_ptr);
629
+ return takeObject(ret);
630
+ }
631
+ }
632
+ if (Symbol.dispose) Client.prototype[Symbol.dispose] = Client.prototype.free;
633
+
634
+ const JsVirtualDataSliceFinalization = (typeof FinalizationRegistry === 'undefined')
635
+ ? { register: () => {}, unregister: () => {} }
636
+ : new FinalizationRegistry(ptr => wasm.__wbg_jsvirtualdataslice_free(ptr >>> 0, 1));
637
+
638
+ export class JsVirtualDataSlice {
639
+
640
+ static __wrap(ptr) {
641
+ ptr = ptr >>> 0;
642
+ const obj = Object.create(JsVirtualDataSlice.prototype);
643
+ obj.__wbg_ptr = ptr;
644
+ JsVirtualDataSliceFinalization.register(obj, obj.__wbg_ptr, obj);
645
+ return obj;
646
+ }
647
+
648
+ __destroy_into_raw() {
649
+ const ptr = this.__wbg_ptr;
650
+ this.__wbg_ptr = 0;
651
+ JsVirtualDataSliceFinalization.unregister(this);
652
+ return ptr;
653
+ }
654
+
655
+ free() {
656
+ const ptr = this.__destroy_into_raw();
657
+ wasm.__wbg_jsvirtualdataslice_free(ptr, 0);
658
+ }
659
+ constructor() {
660
+ const ret = wasm.jsvirtualdataslice_new();
661
+ this.__wbg_ptr = ret >>> 0;
662
+ JsVirtualDataSliceFinalization.register(this, this.__wbg_ptr, this);
663
+ return this;
664
+ }
665
+ /**
666
+ * @param {string} dtype
667
+ * @param {string} name
668
+ * @param {number} index
669
+ * @param {any} val
670
+ * @param {number | null} [group_by_index]
671
+ */
672
+ setCol(dtype, name, index, val, group_by_index) {
673
+ try {
674
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
675
+ const ptr0 = passStringToWasm0(dtype, wasm.__wbindgen_export, wasm.__wbindgen_export2);
676
+ const len0 = WASM_VECTOR_LEN;
677
+ const ptr1 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
678
+ const len1 = WASM_VECTOR_LEN;
679
+ wasm.jsvirtualdataslice_setCol(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, index, addHeapObject(val), isLikeNone(group_by_index) ? 0x100000001 : (group_by_index) >>> 0);
680
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
681
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
682
+ if (r1) {
683
+ throw takeObject(r0);
684
+ }
685
+ } finally {
686
+ wasm.__wbindgen_add_to_stack_pointer(16);
687
+ }
688
+ }
689
+ /**
690
+ * @param {string} name
691
+ * @param {number} index
692
+ * @param {any} val
693
+ * @param {number | null} [group_by_index]
694
+ */
695
+ setStringCol(name, index, val, group_by_index) {
696
+ try {
697
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
698
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
699
+ const len0 = WASM_VECTOR_LEN;
700
+ wasm.jsvirtualdataslice_setStringCol(retptr, this.__wbg_ptr, ptr0, len0, index, addHeapObject(val), isLikeNone(group_by_index) ? 0x100000001 : (group_by_index) >>> 0);
701
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
702
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
703
+ if (r1) {
704
+ throw takeObject(r0);
705
+ }
706
+ } finally {
707
+ wasm.__wbindgen_add_to_stack_pointer(16);
708
+ }
709
+ }
710
+ /**
711
+ * @param {string} name
712
+ * @param {number} index
713
+ * @param {any} val
714
+ * @param {number | null} [group_by_index]
715
+ */
716
+ setIntegerCol(name, index, val, group_by_index) {
717
+ try {
718
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
719
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
720
+ const len0 = WASM_VECTOR_LEN;
721
+ wasm.jsvirtualdataslice_setIntegerCol(retptr, this.__wbg_ptr, ptr0, len0, index, addHeapObject(val), isLikeNone(group_by_index) ? 0x100000001 : (group_by_index) >>> 0);
722
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
723
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
724
+ if (r1) {
725
+ throw takeObject(r0);
726
+ }
727
+ } finally {
728
+ wasm.__wbindgen_add_to_stack_pointer(16);
729
+ }
730
+ }
731
+ /**
732
+ * @param {string} name
733
+ * @param {number} index
734
+ * @param {any} val
735
+ * @param {number | null} [group_by_index]
736
+ */
737
+ setFloatCol(name, index, val, group_by_index) {
738
+ try {
739
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
740
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
741
+ const len0 = WASM_VECTOR_LEN;
742
+ wasm.jsvirtualdataslice_setFloatCol(retptr, this.__wbg_ptr, ptr0, len0, index, addHeapObject(val), isLikeNone(group_by_index) ? 0x100000001 : (group_by_index) >>> 0);
743
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
744
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
745
+ if (r1) {
746
+ throw takeObject(r0);
747
+ }
748
+ } finally {
749
+ wasm.__wbindgen_add_to_stack_pointer(16);
750
+ }
751
+ }
752
+ /**
753
+ * @param {string} name
754
+ * @param {number} index
755
+ * @param {any} val
756
+ * @param {number | null} [group_by_index]
757
+ */
758
+ setBooleanCol(name, index, val, group_by_index) {
759
+ try {
760
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
761
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
762
+ const len0 = WASM_VECTOR_LEN;
763
+ wasm.jsvirtualdataslice_setBooleanCol(retptr, this.__wbg_ptr, ptr0, len0, index, addHeapObject(val), isLikeNone(group_by_index) ? 0x100000001 : (group_by_index) >>> 0);
764
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
765
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
766
+ if (r1) {
767
+ throw takeObject(r0);
768
+ }
769
+ } finally {
770
+ wasm.__wbindgen_add_to_stack_pointer(16);
771
+ }
772
+ }
773
+ /**
774
+ * @param {string} name
775
+ * @param {number} index
776
+ * @param {any} val
777
+ * @param {number | null} [group_by_index]
778
+ */
779
+ setDatetimeCol(name, index, val, group_by_index) {
780
+ try {
781
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
782
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
783
+ const len0 = WASM_VECTOR_LEN;
784
+ wasm.jsvirtualdataslice_setDatetimeCol(retptr, this.__wbg_ptr, ptr0, len0, index, addHeapObject(val), isLikeNone(group_by_index) ? 0x100000001 : (group_by_index) >>> 0);
785
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
786
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
787
+ if (r1) {
788
+ throw takeObject(r0);
789
+ }
790
+ } finally {
791
+ wasm.__wbindgen_add_to_stack_pointer(16);
792
+ }
793
+ }
794
+ }
795
+ if (Symbol.dispose) JsVirtualDataSlice.prototype[Symbol.dispose] = JsVirtualDataSlice.prototype.free;
796
+
797
+ const JsVirtualServerFinalization = (typeof FinalizationRegistry === 'undefined')
798
+ ? { register: () => {}, unregister: () => {} }
799
+ : new FinalizationRegistry(ptr => wasm.__wbg_jsvirtualserver_free(ptr >>> 0, 1));
800
+
801
+ export class JsVirtualServer {
802
+
803
+ __destroy_into_raw() {
804
+ const ptr = this.__wbg_ptr;
805
+ this.__wbg_ptr = 0;
806
+ JsVirtualServerFinalization.unregister(this);
807
+ return ptr;
808
+ }
809
+
810
+ free() {
811
+ const ptr = this.__destroy_into_raw();
812
+ wasm.__wbg_jsvirtualserver_free(ptr, 0);
568
813
  }
569
814
  /**
570
- * Remove a callback previously registered via
571
- * `Client::on_hosted_tables_update`.
572
- * @param {number} update_id
573
- * @returns {Promise<void>}
815
+ * @param {object} handler
574
816
  */
575
- remove_hosted_tables_update(update_id) {
576
- const ret = wasm.client_remove_hosted_tables_update(this.__wbg_ptr, update_id);
577
- return takeObject(ret);
817
+ constructor(handler) {
818
+ try {
819
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
820
+ wasm.jsvirtualserver_new(retptr, addHeapObject(handler));
821
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
822
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
823
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
824
+ if (r2) {
825
+ throw takeObject(r1);
826
+ }
827
+ this.__wbg_ptr = r0 >>> 0;
828
+ JsVirtualServerFinalization.register(this, this.__wbg_ptr, this);
829
+ return this;
830
+ } finally {
831
+ wasm.__wbindgen_add_to_stack_pointer(16);
832
+ }
578
833
  }
579
834
  /**
580
- * Provides the [`SystemInfo`] struct, implementation-specific metadata
581
- * about the [`perspective_server::Server`] runtime such as Memory and
582
- * CPU usage.
583
- *
584
- * For WebAssembly servers, this method includes the WebAssembly heap size.
585
- *
586
- * # JavaScript Examples
587
- *
588
- * ```javascript
589
- * const info = await client.system_info();
590
- * ```
591
- * @returns {Promise<SystemInfo>}
835
+ * @param {Uint8Array} bytes
836
+ * @returns {Promise<any>}
592
837
  */
593
- system_info() {
594
- const ret = wasm.client_system_info(this.__wbg_ptr);
838
+ handleRequest(bytes) {
839
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export);
840
+ const len0 = WASM_VECTOR_LEN;
841
+ const ret = wasm.jsvirtualserver_handleRequest(this.__wbg_ptr, ptr0, len0);
595
842
  return takeObject(ret);
596
843
  }
597
844
  }
845
+ if (Symbol.dispose) JsVirtualServer.prototype[Symbol.dispose] = JsVirtualServer.prototype.free;
598
846
 
599
847
  const ProxySessionFinalization = (typeof FinalizationRegistry === 'undefined')
600
848
  ? { register: () => {}, unregister: () => {} }
@@ -653,6 +901,7 @@ export class ProxySession {
653
901
  return takeObject(ret);
654
902
  }
655
903
  }
904
+ if (Symbol.dispose) ProxySession.prototype[Symbol.dispose] = ProxySession.prototype.free;
656
905
 
657
906
  const TableFinalization = (typeof FinalizationRegistry === 'undefined')
658
907
  ? { register: () => {}, unregister: () => {} }
@@ -683,19 +932,16 @@ export class Table {
683
932
  * @returns {string}
684
933
  */
685
934
  __getClassname() {
686
- let deferred1_0;
687
- let deferred1_1;
688
935
  try {
689
936
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
690
937
  wasm.table___getClassname(retptr, this.__wbg_ptr);
691
938
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
692
939
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
693
- deferred1_0 = r0;
694
- deferred1_1 = r1;
695
- return getStringFromWasm0(r0, r1);
940
+ var v1 = getCachedStringFromWasm0(r0, r1);
941
+ if (r0 !== 0) { wasm.__wbindgen_export4(r0, r1, 1); }
942
+ return v1;
696
943
  } finally {
697
944
  wasm.__wbindgen_add_to_stack_pointer(16);
698
- wasm.__wbindgen_export_3(deferred1_0, deferred1_1, 1);
699
945
  }
700
946
  }
701
947
  /**
@@ -707,7 +953,7 @@ export class Table {
707
953
  * const table = await client.table("x,y\n1,2\n3,4", { index: "x" });
708
954
  * const index = table.get_index(); // "x"
709
955
  * ```
710
- * @returns {Promise<string | undefined>}
956
+ * @returns {Promise<string>}
711
957
  */
712
958
  get_index() {
713
959
  const ret = wasm.table_get_index(this.__wbg_ptr);
@@ -813,7 +1059,7 @@ export class Table {
813
1059
  *
814
1060
  * Note that all [`Table`] columns are _nullable_, regardless of the data
815
1061
  * type.
816
- * @returns {Promise<any>}
1062
+ * @returns {Record<string, ColumnType>}
817
1063
  */
818
1064
  schema() {
819
1065
  const ret = wasm.table_schema(this.__wbg_ptr);
@@ -936,7 +1182,7 @@ export class Table {
936
1182
  * ```javascript
937
1183
  * await table.update("x,y\n1,2");
938
1184
  * ```
939
- * @param {string | ArrayBuffer | Record<string, unknown[]> | Record<string, unknown>[]} input
1185
+ * @param {string | ArrayBuffer | Record<string, unknown[]> | Record<string, unknown>[] | Record<string, ColumnType>} input
940
1186
  * @param {UpdateOptions | null} [options]
941
1187
  * @returns {Promise<any>}
942
1188
  */
@@ -977,6 +1223,7 @@ export class Table {
977
1223
  return takeObject(ret);
978
1224
  }
979
1225
  }
1226
+ if (Symbol.dispose) Table.prototype[Symbol.dispose] = Table.prototype.free;
980
1227
 
981
1228
  const ViewFinalization = (typeof FinalizationRegistry === 'undefined')
982
1229
  ? { register: () => {}, unregister: () => {} }
@@ -1107,7 +1354,7 @@ export class View {
1107
1354
  * @returns {Promise<Array<any>>}
1108
1355
  */
1109
1356
  get_min_max(name) {
1110
- const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1357
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1111
1358
  const len0 = WASM_VECTOR_LEN;
1112
1359
  const ret = wasm.view_get_min_max(this.__wbg_ptr, ptr0, len0);
1113
1360
  return takeObject(ret);
@@ -1318,6 +1565,9 @@ export class View {
1318
1565
  return takeObject(ret);
1319
1566
  }
1320
1567
  }
1568
+ if (Symbol.dispose) View.prototype[Symbol.dispose] = View.prototype.free;
1569
+
1570
+ const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
1321
1571
 
1322
1572
  async function __wbg_load(module, imports) {
1323
1573
  if (typeof Response === 'function' && module instanceof Response) {
@@ -1326,7 +1576,9 @@ async function __wbg_load(module, imports) {
1326
1576
  return await WebAssembly.instantiateStreaming(module, imports);
1327
1577
 
1328
1578
  } catch (e) {
1329
- if (module.headers.get('Content-Type') != 'application/wasm') {
1579
+ const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
1580
+
1581
+ if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
1330
1582
  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);
1331
1583
 
1332
1584
  } else {
@@ -1353,113 +1605,194 @@ async function __wbg_load(module, imports) {
1353
1605
  function __wbg_get_imports() {
1354
1606
  const imports = {};
1355
1607
  imports.wbg = {};
1608
+ imports.wbg.__wbg_Error_e83987f665cf5504 = function(arg0, arg1) {
1609
+ var v0 = getCachedStringFromWasm0(arg0, arg1);
1610
+ const ret = Error(v0);
1611
+ return addHeapObject(ret);
1612
+ };
1613
+ imports.wbg.__wbg_Number_bb48ca12f395cd08 = function(arg0) {
1614
+ const ret = Number(getObject(arg0));
1615
+ return ret;
1616
+ };
1356
1617
  imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
1357
1618
  const ret = String(getObject(arg1));
1358
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1619
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1359
1620
  const len1 = WASM_VECTOR_LEN;
1360
1621
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1361
1622
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1362
1623
  };
1363
- imports.wbg.__wbg_at_7d852dd9f194d43e = function(arg0, arg1) {
1364
- const ret = getObject(arg0).at(arg1);
1365
- return addHeapObject(ret);
1624
+ imports.wbg.__wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd = function(arg0, arg1) {
1625
+ const v = getObject(arg1);
1626
+ const ret = typeof(v) === 'bigint' ? v : undefined;
1627
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1628
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1366
1629
  };
1367
- imports.wbg.__wbg_buffer_09165b52af8c5237 = function(arg0) {
1368
- const ret = getObject(arg0).buffer;
1630
+ imports.wbg.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
1631
+ const v = getObject(arg0);
1632
+ const ret = typeof(v) === 'boolean' ? v : undefined;
1633
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
1634
+ };
1635
+ imports.wbg.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
1636
+ const ret = debugString(getObject(arg1));
1637
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1638
+ const len1 = WASM_VECTOR_LEN;
1639
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1640
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1641
+ };
1642
+ imports.wbg.__wbg___wbindgen_in_bb933bd9e1b3bc0f = function(arg0, arg1) {
1643
+ const ret = getObject(arg0) in getObject(arg1);
1644
+ return ret;
1645
+ };
1646
+ imports.wbg.__wbg___wbindgen_is_bigint_cb320707dcd35f0b = function(arg0) {
1647
+ const ret = typeof(getObject(arg0)) === 'bigint';
1648
+ return ret;
1649
+ };
1650
+ imports.wbg.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
1651
+ const ret = typeof(getObject(arg0)) === 'function';
1652
+ return ret;
1653
+ };
1654
+ imports.wbg.__wbg___wbindgen_is_null_5e69f72e906cc57c = function(arg0) {
1655
+ const ret = getObject(arg0) === null;
1656
+ return ret;
1657
+ };
1658
+ imports.wbg.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
1659
+ const val = getObject(arg0);
1660
+ const ret = typeof(val) === 'object' && val !== null;
1661
+ return ret;
1662
+ };
1663
+ imports.wbg.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
1664
+ const ret = typeof(getObject(arg0)) === 'string';
1665
+ return ret;
1666
+ };
1667
+ imports.wbg.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
1668
+ const ret = getObject(arg0) === undefined;
1669
+ return ret;
1670
+ };
1671
+ imports.wbg.__wbg___wbindgen_jsval_eq_6b13ab83478b1c50 = function(arg0, arg1) {
1672
+ const ret = getObject(arg0) === getObject(arg1);
1673
+ return ret;
1674
+ };
1675
+ imports.wbg.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
1676
+ const ret = getObject(arg0) == getObject(arg1);
1677
+ return ret;
1678
+ };
1679
+ imports.wbg.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
1680
+ const obj = getObject(arg1);
1681
+ const ret = typeof(obj) === 'number' ? obj : undefined;
1682
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1683
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1684
+ };
1685
+ imports.wbg.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
1686
+ const obj = getObject(arg1);
1687
+ const ret = typeof(obj) === 'string' ? obj : undefined;
1688
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1689
+ var len1 = WASM_VECTOR_LEN;
1690
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1691
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1692
+ };
1693
+ imports.wbg.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
1694
+ var v0 = getCachedStringFromWasm0(arg0, arg1);
1695
+ throw new Error(v0);
1696
+ };
1697
+ imports.wbg.__wbg__wbg_cb_unref_2454a539ea5790d9 = function(arg0) {
1698
+ getObject(arg0)._wbg_cb_unref();
1699
+ };
1700
+ imports.wbg.__wbg_apply_04097a755e1e4a1e = function() { return handleError(function (arg0, arg1, arg2) {
1701
+ const ret = getObject(arg0).apply(getObject(arg1), getObject(arg2));
1702
+ return addHeapObject(ret);
1703
+ }, arguments) };
1704
+ imports.wbg.__wbg_at_a848c0ce365c6832 = function(arg0, arg1) {
1705
+ const ret = getObject(arg0).at(arg1);
1369
1706
  return addHeapObject(ret);
1370
1707
  };
1371
- imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
1708
+ imports.wbg.__wbg_buffer_ccc4520b36d3ccf4 = function(arg0) {
1372
1709
  const ret = getObject(arg0).buffer;
1373
1710
  return addHeapObject(ret);
1374
1711
  };
1375
- imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
1376
- const ret = getObject(arg0).call(getObject(arg1));
1377
- return addHeapObject(ret);
1378
- }, arguments) };
1379
- imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
1712
+ imports.wbg.__wbg_call_525440f72fbfc0ea = function() { return handleError(function (arg0, arg1, arg2) {
1380
1713
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
1381
1714
  return addHeapObject(ret);
1382
1715
  }, arguments) };
1383
- imports.wbg.__wbg_call_833bed5770ea2041 = function() { return handleError(function (arg0, arg1, arg2, arg3) {
1716
+ imports.wbg.__wbg_call_e45d2cf9fc925fcf = function() { return handleError(function (arg0, arg1, arg2, arg3) {
1384
1717
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2), getObject(arg3));
1385
1718
  return addHeapObject(ret);
1386
1719
  }, arguments) };
1720
+ imports.wbg.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (arg0, arg1) {
1721
+ const ret = getObject(arg0).call(getObject(arg1));
1722
+ return addHeapObject(ret);
1723
+ }, arguments) };
1387
1724
  imports.wbg.__wbg_client_new = function(arg0) {
1388
1725
  const ret = Client.__wrap(arg0);
1389
1726
  return addHeapObject(ret);
1390
1727
  };
1391
- imports.wbg.__wbg_debug_3cb59063b29f58c1 = function(arg0) {
1392
- console.debug(getObject(arg0));
1393
- };
1394
- imports.wbg.__wbg_debug_e17b51583ca6a632 = function(arg0, arg1, arg2, arg3) {
1728
+ imports.wbg.__wbg_debug_e55e1461940eb14d = function(arg0, arg1, arg2, arg3) {
1395
1729
  console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1396
1730
  };
1397
- imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
1731
+ imports.wbg.__wbg_debug_f4b0c59db649db48 = function(arg0) {
1732
+ console.debug(getObject(arg0));
1733
+ };
1734
+ imports.wbg.__wbg_done_2042aa2670fb1db1 = function(arg0) {
1398
1735
  const ret = getObject(arg0).done;
1399
1736
  return ret;
1400
1737
  };
1401
- imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
1738
+ imports.wbg.__wbg_entries_e171b586f8f6bdbf = function(arg0) {
1402
1739
  const ret = Object.entries(getObject(arg0));
1403
1740
  return addHeapObject(ret);
1404
1741
  };
1405
- imports.wbg.__wbg_error_1004b8c64097413f = function(arg0, arg1) {
1742
+ imports.wbg.__wbg_error_6f1d0762f6c8ae2f = function(arg0, arg1) {
1406
1743
  console.error(getObject(arg0), getObject(arg1));
1407
1744
  };
1408
- imports.wbg.__wbg_error_524f506f44df1645 = function(arg0) {
1745
+ imports.wbg.__wbg_error_a7f8fbb0523dae15 = function(arg0) {
1409
1746
  console.error(getObject(arg0));
1410
1747
  };
1411
- imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
1412
- let deferred0_0;
1413
- let deferred0_1;
1414
- try {
1415
- deferred0_0 = arg0;
1416
- deferred0_1 = arg1;
1417
- console.error(getStringFromWasm0(arg0, arg1));
1418
- } finally {
1419
- wasm.__wbindgen_export_3(deferred0_0, deferred0_1, 1);
1420
- }
1421
- };
1422
- imports.wbg.__wbg_error_80de38b3f7cc3c3c = function(arg0, arg1, arg2, arg3) {
1748
+ imports.wbg.__wbg_error_d8b22cf4e59a6791 = function(arg0, arg1, arg2, arg3) {
1423
1749
  console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1424
1750
  };
1425
- imports.wbg.__wbg_from_2a5d3e218e67aa85 = function(arg0) {
1751
+ imports.wbg.__wbg_from_a4ad7cbddd0d7135 = function(arg0) {
1426
1752
  const ret = Array.from(getObject(arg0));
1427
1753
  return addHeapObject(ret);
1428
1754
  };
1429
- imports.wbg.__wbg_getEntriesByName_2a5a14d4b09f36a4 = function(arg0, arg1, arg2, arg3, arg4) {
1430
- const ret = getObject(arg0).getEntriesByName(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1755
+ imports.wbg.__wbg_getEntriesByName_b49d266abfb2e9af = function(arg0, arg1, arg2, arg3, arg4) {
1756
+ var v0 = getCachedStringFromWasm0(arg1, arg2);
1757
+ var v1 = getCachedStringFromWasm0(arg3, arg4);
1758
+ const ret = getObject(arg0).getEntriesByName(v0, v1);
1431
1759
  return addHeapObject(ret);
1432
1760
  };
1433
- imports.wbg.__wbg_getRandomValues_21a0191e74d0e1d3 = function() { return handleError(function (arg0, arg1) {
1761
+ imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
1434
1762
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
1435
1763
  }, arguments) };
1436
- imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
1437
- const ret = Reflect.get(getObject(arg0), getObject(arg1));
1438
- return addHeapObject(ret);
1439
- }, arguments) };
1440
- imports.wbg.__wbg_get_74b8744f6a23f4fa = function(arg0, arg1, arg2) {
1441
- const ret = getObject(arg0)[getStringFromWasm0(arg1, arg2)];
1442
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
1764
+ imports.wbg.__wbg_getTime_14776bfb48a1bff9 = function(arg0) {
1765
+ const ret = getObject(arg0).getTime();
1766
+ return ret;
1443
1767
  };
1444
- imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
1768
+ imports.wbg.__wbg_get_7bed016f185add81 = function(arg0, arg1) {
1445
1769
  const ret = getObject(arg0)[arg1 >>> 0];
1446
1770
  return addHeapObject(ret);
1447
1771
  };
1448
- imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
1772
+ imports.wbg.__wbg_get_a499fc4db8c05b3b = function(arg0, arg1, arg2) {
1773
+ var v0 = getCachedStringFromWasm0(arg1, arg2);
1774
+ const ret = getObject(arg0)[v0];
1775
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
1776
+ };
1777
+ imports.wbg.__wbg_get_efcb449f58ec27c2 = function() { return handleError(function (arg0, arg1) {
1778
+ const ret = Reflect.get(getObject(arg0), getObject(arg1));
1779
+ return addHeapObject(ret);
1780
+ }, arguments) };
1781
+ imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
1449
1782
  const ret = getObject(arg0)[getObject(arg1)];
1450
1783
  return addHeapObject(ret);
1451
1784
  };
1452
- imports.wbg.__wbg_has_a5ea9117f258a0ec = function() { return handleError(function (arg0, arg1) {
1785
+ imports.wbg.__wbg_has_787fafc980c3ccdb = function() { return handleError(function (arg0, arg1) {
1453
1786
  const ret = Reflect.has(getObject(arg0), getObject(arg1));
1454
1787
  return ret;
1455
1788
  }, arguments) };
1456
- imports.wbg.__wbg_info_033d8b8a0838f1d3 = function(arg0, arg1, arg2, arg3) {
1789
+ imports.wbg.__wbg_info_68cd5b51ef7e5137 = function(arg0, arg1, arg2, arg3) {
1457
1790
  console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1458
1791
  };
1459
- imports.wbg.__wbg_info_3daf2e093e091b66 = function(arg0) {
1792
+ imports.wbg.__wbg_info_e674a11f4f50cc0c = function(arg0) {
1460
1793
  console.info(getObject(arg0));
1461
1794
  };
1462
- imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
1795
+ imports.wbg.__wbg_instanceof_ArrayBuffer_70beb1189ca63b38 = function(arg0) {
1463
1796
  let result;
1464
1797
  try {
1465
1798
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -1469,7 +1802,7 @@ function __wbg_get_imports() {
1469
1802
  const ret = result;
1470
1803
  return ret;
1471
1804
  };
1472
- imports.wbg.__wbg_instanceof_Array_6ac07133d621675a = function(arg0) {
1805
+ imports.wbg.__wbg_instanceof_Array_fca44e0f4a7f6240 = function(arg0) {
1473
1806
  let result;
1474
1807
  try {
1475
1808
  result = getObject(arg0) instanceof Array;
@@ -1479,7 +1812,17 @@ function __wbg_get_imports() {
1479
1812
  const ret = result;
1480
1813
  return ret;
1481
1814
  };
1482
- imports.wbg.__wbg_instanceof_Error_4d54113b22d20306 = function(arg0) {
1815
+ imports.wbg.__wbg_instanceof_Date_79a0f671f36947f2 = function(arg0) {
1816
+ let result;
1817
+ try {
1818
+ result = getObject(arg0) instanceof Date;
1819
+ } catch (_) {
1820
+ result = false;
1821
+ }
1822
+ const ret = result;
1823
+ return ret;
1824
+ };
1825
+ imports.wbg.__wbg_instanceof_Error_a944ec10920129e2 = function(arg0) {
1483
1826
  let result;
1484
1827
  try {
1485
1828
  result = getObject(arg0) instanceof Error;
@@ -1489,7 +1832,7 @@ function __wbg_get_imports() {
1489
1832
  const ret = result;
1490
1833
  return ret;
1491
1834
  };
1492
- imports.wbg.__wbg_instanceof_Map_f3469ce2244d2430 = function(arg0) {
1835
+ imports.wbg.__wbg_instanceof_Map_8579b5e2ab5437c7 = function(arg0) {
1493
1836
  let result;
1494
1837
  try {
1495
1838
  result = getObject(arg0) instanceof Map;
@@ -1499,7 +1842,7 @@ function __wbg_get_imports() {
1499
1842
  const ret = result;
1500
1843
  return ret;
1501
1844
  };
1502
- imports.wbg.__wbg_instanceof_Object_7f2dcef8f78644a4 = function(arg0) {
1845
+ imports.wbg.__wbg_instanceof_Object_10bb762262230c68 = function(arg0) {
1503
1846
  let result;
1504
1847
  try {
1505
1848
  result = getObject(arg0) instanceof Object;
@@ -1509,7 +1852,17 @@ function __wbg_get_imports() {
1509
1852
  const ret = result;
1510
1853
  return ret;
1511
1854
  };
1512
- imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
1855
+ imports.wbg.__wbg_instanceof_Promise_001fdd42afa1b7ef = function(arg0) {
1856
+ let result;
1857
+ try {
1858
+ result = getObject(arg0) instanceof Promise;
1859
+ } catch (_) {
1860
+ result = false;
1861
+ }
1862
+ const ret = result;
1863
+ return ret;
1864
+ };
1865
+ imports.wbg.__wbg_instanceof_Uint8Array_20c8e73002f7af98 = function(arg0) {
1513
1866
  let result;
1514
1867
  try {
1515
1868
  result = getObject(arg0) instanceof Uint8Array;
@@ -1519,7 +1872,7 @@ function __wbg_get_imports() {
1519
1872
  const ret = result;
1520
1873
  return ret;
1521
1874
  };
1522
- imports.wbg.__wbg_instanceof_Window_def73ea0955fc569 = function(arg0) {
1875
+ imports.wbg.__wbg_instanceof_Window_4846dbb3de56c84c = function(arg0) {
1523
1876
  let result;
1524
1877
  try {
1525
1878
  result = getObject(arg0) instanceof Window;
@@ -1529,48 +1882,59 @@ function __wbg_get_imports() {
1529
1882
  const ret = result;
1530
1883
  return ret;
1531
1884
  };
1532
- imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
1885
+ imports.wbg.__wbg_isArray_96e0af9891d0945d = function(arg0) {
1533
1886
  const ret = Array.isArray(getObject(arg0));
1534
1887
  return ret;
1535
1888
  };
1536
- imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
1889
+ imports.wbg.__wbg_isSafeInteger_d216eda7911dde36 = function(arg0) {
1537
1890
  const ret = Number.isSafeInteger(getObject(arg0));
1538
1891
  return ret;
1539
1892
  };
1540
- imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
1893
+ imports.wbg.__wbg_iterator_e5822695327a3c39 = function() {
1541
1894
  const ret = Symbol.iterator;
1542
1895
  return addHeapObject(ret);
1543
1896
  };
1544
- imports.wbg.__wbg_keys_5c77a08ddc2fb8a6 = function(arg0) {
1897
+ imports.wbg.__wbg_jsvirtualdataslice_new = function(arg0) {
1898
+ const ret = JsVirtualDataSlice.__wrap(arg0);
1899
+ return addHeapObject(ret);
1900
+ };
1901
+ imports.wbg.__wbg_keys_b4d27b02ad14f4be = function(arg0) {
1545
1902
  const ret = Object.keys(getObject(arg0));
1546
1903
  return addHeapObject(ret);
1547
1904
  };
1548
- imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
1905
+ imports.wbg.__wbg_length_69bca3cb64fc8748 = function(arg0) {
1549
1906
  const ret = getObject(arg0).length;
1550
1907
  return ret;
1551
1908
  };
1552
- imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
1909
+ imports.wbg.__wbg_length_cdd215e10d9dd507 = function(arg0) {
1553
1910
  const ret = getObject(arg0).length;
1554
1911
  return ret;
1555
1912
  };
1556
- imports.wbg.__wbg_mark_001da84b098c950f = function() { return handleError(function (arg0, arg1, arg2) {
1557
- getObject(arg0).mark(getStringFromWasm0(arg1, arg2));
1913
+ imports.wbg.__wbg_mark_4411b340bdf62a5f = function() { return handleError(function (arg0, arg1, arg2) {
1914
+ var v0 = getCachedStringFromWasm0(arg1, arg2);
1915
+ getObject(arg0).mark(v0);
1558
1916
  }, arguments) };
1559
- imports.wbg.__wbg_measure_65e49f8bc0e203a8 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1560
- getObject(arg0).measure(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1917
+ imports.wbg.__wbg_measure_ef89c90a92de6f43 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1918
+ var v0 = getCachedStringFromWasm0(arg1, arg2);
1919
+ var v1 = getCachedStringFromWasm0(arg3, arg4);
1920
+ getObject(arg0).measure(v0, v1);
1561
1921
  }, arguments) };
1562
- imports.wbg.__wbg_message_97a2af9b89d693a3 = function(arg0) {
1922
+ imports.wbg.__wbg_message_1ee258909d7264fd = function(arg0) {
1563
1923
  const ret = getObject(arg0).message;
1564
1924
  return addHeapObject(ret);
1565
1925
  };
1566
- imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
1926
+ imports.wbg.__wbg_new_1acc0b6eea89d040 = function() {
1927
+ const ret = new Object();
1928
+ return addHeapObject(ret);
1929
+ };
1930
+ imports.wbg.__wbg_new_3c3d849046688a66 = function(arg0, arg1) {
1567
1931
  try {
1568
1932
  var state0 = {a: arg0, b: arg1};
1569
1933
  var cb0 = (arg0, arg1) => {
1570
1934
  const a = state0.a;
1571
1935
  state0.a = 0;
1572
1936
  try {
1573
- return __wbg_adapter_251(a, state0.b, arg0, arg1);
1937
+ return __wasm_bindgen_func_elem_5064(a, state0.b, arg0, arg1);
1574
1938
  } finally {
1575
1939
  state0.a = a;
1576
1940
  }
@@ -1581,118 +1945,106 @@ function __wbg_get_imports() {
1581
1945
  state0.a = state0.b = 0;
1582
1946
  }
1583
1947
  };
1584
- imports.wbg.__wbg_new_405e22f390576ce2 = function() {
1585
- const ret = new Object();
1948
+ imports.wbg.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
1949
+ const ret = new Uint8Array(getObject(arg0));
1586
1950
  return addHeapObject(ret);
1587
1951
  };
1588
- imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
1952
+ imports.wbg.__wbg_new_68651c719dcda04e = function() {
1589
1953
  const ret = new Map();
1590
1954
  return addHeapObject(ret);
1591
1955
  };
1592
- imports.wbg.__wbg_new_78feb108b6472713 = function() {
1593
- const ret = new Array();
1594
- return addHeapObject(ret);
1595
- };
1596
- imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
1597
- const ret = new Error();
1956
+ imports.wbg.__wbg_new_a7442b4b19c1a356 = function(arg0, arg1) {
1957
+ var v0 = getCachedStringFromWasm0(arg0, arg1);
1958
+ const ret = new Error(v0);
1598
1959
  return addHeapObject(ret);
1599
1960
  };
1600
- imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
1601
- const ret = new Uint8Array(getObject(arg0));
1961
+ imports.wbg.__wbg_new_e17d9f43105b08be = function() {
1962
+ const ret = new Array();
1602
1963
  return addHeapObject(ret);
1603
1964
  };
1604
- imports.wbg.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
1605
- const ret = new Error(getStringFromWasm0(arg0, arg1));
1965
+ imports.wbg.__wbg_new_from_slice_92f4d78ca282a2d2 = function(arg0, arg1) {
1966
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1606
1967
  return addHeapObject(ret);
1607
1968
  };
1608
- imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
1609
- const ret = new Function(getStringFromWasm0(arg0, arg1));
1969
+ imports.wbg.__wbg_new_no_args_ee98eee5275000a4 = function(arg0, arg1) {
1970
+ var v0 = getCachedStringFromWasm0(arg0, arg1);
1971
+ const ret = new Function(v0);
1610
1972
  return addHeapObject(ret);
1611
1973
  };
1612
- imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
1613
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
1974
+ imports.wbg.__wbg_next_020810e0ae8ebcb0 = function() { return handleError(function (arg0) {
1975
+ const ret = getObject(arg0).next();
1614
1976
  return addHeapObject(ret);
1615
- };
1616
- imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
1977
+ }, arguments) };
1978
+ imports.wbg.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
1617
1979
  const ret = getObject(arg0).next;
1618
1980
  return addHeapObject(ret);
1619
1981
  };
1620
- imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
1621
- const ret = getObject(arg0).next();
1622
- return addHeapObject(ret);
1623
- }, arguments) };
1624
- imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
1982
+ imports.wbg.__wbg_now_f5ba683d8ce2c571 = function(arg0) {
1625
1983
  const ret = getObject(arg0).now();
1626
1984
  return ret;
1627
1985
  };
1628
- imports.wbg.__wbg_parse_def2e24ef1252aff = function() { return handleError(function (arg0, arg1) {
1629
- const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
1986
+ imports.wbg.__wbg_parse_2a704d6b78abb2b8 = function() { return handleError(function (arg0, arg1) {
1987
+ var v0 = getCachedStringFromWasm0(arg0, arg1);
1988
+ const ret = JSON.parse(v0);
1630
1989
  return addHeapObject(ret);
1631
1990
  }, arguments) };
1632
- imports.wbg.__wbg_performance_c185c0cdc2766575 = function(arg0) {
1991
+ imports.wbg.__wbg_performance_e8315b5ae987e93f = function(arg0) {
1633
1992
  const ret = getObject(arg0).performance;
1634
1993
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1635
1994
  };
1636
- imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
1995
+ imports.wbg.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
1996
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
1997
+ };
1998
+ imports.wbg.__wbg_push_df81a39d04db858c = function(arg0, arg1) {
1637
1999
  const ret = getObject(arg0).push(getObject(arg1));
1638
2000
  return ret;
1639
2001
  };
1640
- imports.wbg.__wbg_queueMicrotask_6808622725a52272 = function(arg0) {
2002
+ imports.wbg.__wbg_queueMicrotask_34d692c25c47d05b = function(arg0) {
1641
2003
  const ret = getObject(arg0).queueMicrotask;
1642
2004
  return addHeapObject(ret);
1643
2005
  };
1644
- imports.wbg.__wbg_queueMicrotask_ef0e86b0263a71ee = function(arg0) {
2006
+ imports.wbg.__wbg_queueMicrotask_9d76cacb20c84d58 = function(arg0) {
1645
2007
  queueMicrotask(getObject(arg0));
1646
2008
  };
1647
- imports.wbg.__wbg_reject_b3fcf99063186ff7 = function(arg0) {
2009
+ imports.wbg.__wbg_reject_9d4761245c015a33 = function(arg0) {
1648
2010
  const ret = Promise.reject(getObject(arg0));
1649
2011
  return addHeapObject(ret);
1650
2012
  };
1651
- imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
2013
+ imports.wbg.__wbg_resolve_caf97c30b83f7053 = function(arg0) {
1652
2014
  const ret = Promise.resolve(getObject(arg0));
1653
2015
  return addHeapObject(ret);
1654
2016
  };
1655
- imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
1656
- getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
1657
- };
1658
2017
  imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
1659
2018
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
1660
2019
  };
1661
- imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
1662
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
1663
- };
1664
- imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
2020
+ imports.wbg.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
1665
2021
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
1666
2022
  return addHeapObject(ret);
1667
2023
  };
1668
- imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
1669
- const ret = getObject(arg1).stack;
1670
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1671
- const len1 = WASM_VECTOR_LEN;
1672
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1673
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2024
+ imports.wbg.__wbg_set_c213c871859d6500 = function(arg0, arg1, arg2) {
2025
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
1674
2026
  };
1675
- imports.wbg.__wbg_startTime_c051731d0a31602f = function(arg0) {
2027
+ imports.wbg.__wbg_startTime_539df5e9647037f7 = function(arg0) {
1676
2028
  const ret = getObject(arg0).startTime;
1677
2029
  return ret;
1678
2030
  };
1679
- imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
2031
+ imports.wbg.__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e = function() {
1680
2032
  const ret = typeof global === 'undefined' ? null : global;
1681
2033
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1682
2034
  };
1683
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
2035
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac = function() {
1684
2036
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
1685
2037
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1686
2038
  };
1687
- imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
2039
+ imports.wbg.__wbg_static_accessor_SELF_6fdf4b64710cc91b = function() {
1688
2040
  const ret = typeof self === 'undefined' ? null : self;
1689
2041
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1690
2042
  };
1691
- imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
2043
+ imports.wbg.__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2 = function() {
1692
2044
  const ret = typeof window === 'undefined' ? null : window;
1693
2045
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
1694
2046
  };
1695
- imports.wbg.__wbg_stringify_f7ed6987935b4a24 = function() { return handleError(function (arg0) {
2047
+ imports.wbg.__wbg_stringify_b5fb28f6465d9c3e = function() { return handleError(function (arg0) {
1696
2048
  const ret = JSON.stringify(getObject(arg0));
1697
2049
  return addHeapObject(ret);
1698
2050
  }, arguments) };
@@ -1700,29 +2052,29 @@ function __wbg_get_imports() {
1700
2052
  const ret = Table.__wrap(arg0);
1701
2053
  return addHeapObject(ret);
1702
2054
  };
1703
- imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
2055
+ imports.wbg.__wbg_then_4f46f6544e6b4a28 = function(arg0, arg1) {
1704
2056
  const ret = getObject(arg0).then(getObject(arg1));
1705
2057
  return addHeapObject(ret);
1706
2058
  };
1707
- imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
2059
+ imports.wbg.__wbg_then_70d05cf780a18d77 = function(arg0, arg1, arg2) {
1708
2060
  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
1709
2061
  return addHeapObject(ret);
1710
2062
  };
1711
- imports.wbg.__wbg_toString_5285597960676b7b = function(arg0) {
2063
+ imports.wbg.__wbg_toString_7da7c8dbec78fcb8 = function(arg0) {
1712
2064
  const ret = getObject(arg0).toString();
1713
2065
  return addHeapObject(ret);
1714
2066
  };
1715
- imports.wbg.__wbg_trace_d12a9ac890a2cbb8 = function(arg0, arg1, arg2, arg3) {
1716
- console.trace(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1717
- };
1718
- imports.wbg.__wbg_trace_e758b839df8d34f1 = function(arg0) {
2067
+ imports.wbg.__wbg_trace_8e50cd754f118df3 = function(arg0) {
1719
2068
  console.trace(getObject(arg0));
1720
2069
  };
1721
- imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
2070
+ imports.wbg.__wbg_trace_cf9f10b8c61bd472 = function(arg0, arg1, arg2, arg3) {
2071
+ console.trace(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
2072
+ };
2073
+ imports.wbg.__wbg_value_692627309814bb8c = function(arg0) {
1722
2074
  const ret = getObject(arg0).value;
1723
2075
  return addHeapObject(ret);
1724
2076
  };
1725
- imports.wbg.__wbg_values_fcb8ba8c0aad8b58 = function(arg0) {
2077
+ imports.wbg.__wbg_values_6f4c6a6a11564d83 = function(arg0) {
1726
2078
  const ret = Object.values(getObject(arg0));
1727
2079
  return addHeapObject(ret);
1728
2080
  };
@@ -1734,107 +2086,59 @@ function __wbg_get_imports() {
1734
2086
  const ret = View.__unwrap(takeObject(arg0));
1735
2087
  return ret;
1736
2088
  };
1737
- imports.wbg.__wbg_warn_4ca3906c248c47c4 = function(arg0) {
2089
+ imports.wbg.__wbg_warn_1d74dddbe2fd1dbb = function(arg0) {
1738
2090
  console.warn(getObject(arg0));
1739
2091
  };
1740
- imports.wbg.__wbg_warn_aaf1f4664a035bd6 = function(arg0, arg1, arg2, arg3) {
2092
+ imports.wbg.__wbg_warn_8f5b5437666d0885 = function(arg0, arg1, arg2, arg3) {
1741
2093
  console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1742
2094
  };
1743
- imports.wbg.__wbindgen_as_number = function(arg0) {
1744
- const ret = +getObject(arg0);
1745
- return ret;
1746
- };
1747
- imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
1748
- const ret = arg0;
2095
+ imports.wbg.__wbindgen_cast_25a0a844437d0e92 = function(arg0, arg1) {
2096
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
2097
+ wasm.__wbindgen_export4(arg0, arg1 * 4, 4);
2098
+ // Cast intrinsic for `Vector(NamedExternref("string")) -> Externref`.
2099
+ const ret = v0;
1749
2100
  return addHeapObject(ret);
1750
2101
  };
1751
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
2102
+ imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
2103
+ // Cast intrinsic for `U64 -> Externref`.
1752
2104
  const ret = BigInt.asUintN(64, arg0);
1753
2105
  return addHeapObject(ret);
1754
2106
  };
1755
- imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
1756
- const v = getObject(arg1);
1757
- const ret = typeof(v) === 'bigint' ? v : undefined;
1758
- getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1759
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1760
- };
1761
- imports.wbg.__wbindgen_boolean_get = function(arg0) {
1762
- const v = getObject(arg0);
1763
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1764
- return ret;
1765
- };
1766
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
1767
- const obj = takeObject(arg0).original;
1768
- if (obj.cnt-- == 1) {
1769
- obj.a = 0;
1770
- return true;
1771
- }
1772
- const ret = false;
1773
- return ret;
1774
- };
1775
- imports.wbg.__wbindgen_closure_wrapper3223 = function(arg0, arg1, arg2) {
1776
- const ret = makeMutClosure(arg0, arg1, 468, __wbg_adapter_53);
2107
+ imports.wbg.__wbindgen_cast_58f1ec65de0445ab = function(arg0, arg1) {
2108
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 534, function: Function { arguments: [Externref], shim_idx: 535, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2109
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_3494, __wasm_bindgen_func_elem_3509);
1777
2110
  return addHeapObject(ret);
1778
2111
  };
1779
- imports.wbg.__wbindgen_closure_wrapper367 = function(arg0, arg1, arg2) {
1780
- const ret = makeClosure(arg0, arg1, 7, __wbg_adapter_50);
2112
+ imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function(arg0, arg1) {
2113
+ var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
2114
+ wasm.__wbindgen_export4(arg0, arg1 * 1, 1);
2115
+ // Cast intrinsic for `Vector(U8) -> Externref`.
2116
+ const ret = v0;
1781
2117
  return addHeapObject(ret);
1782
2118
  };
1783
- imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
1784
- const ret = debugString(getObject(arg1));
1785
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1786
- const len1 = WASM_VECTOR_LEN;
1787
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1788
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1789
- };
1790
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
1791
- const ret = new Error(getStringFromWasm0(arg0, arg1));
2119
+ imports.wbg.__wbindgen_cast_7e9c58eeb11b0a6f = function(arg0, arg1) {
2120
+ var v0 = getCachedStringFromWasm0(arg0, arg1);
2121
+ // Cast intrinsic for `Ref(CachedString) -> Externref`.
2122
+ const ret = v0;
1792
2123
  return addHeapObject(ret);
1793
2124
  };
1794
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
1795
- const ret = getObject(arg0) in getObject(arg1);
1796
- return ret;
1797
- };
1798
- imports.wbg.__wbindgen_is_bigint = function(arg0) {
1799
- const ret = typeof(getObject(arg0)) === 'bigint';
1800
- return ret;
1801
- };
1802
- imports.wbg.__wbindgen_is_function = function(arg0) {
1803
- const ret = typeof(getObject(arg0)) === 'function';
1804
- return ret;
1805
- };
1806
- imports.wbg.__wbindgen_is_object = function(arg0) {
1807
- const val = getObject(arg0);
1808
- const ret = typeof(val) === 'object' && val !== null;
1809
- return ret;
1810
- };
1811
- imports.wbg.__wbindgen_is_string = function(arg0) {
1812
- const ret = typeof(getObject(arg0)) === 'string';
1813
- return ret;
1814
- };
1815
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
1816
- const ret = getObject(arg0) === undefined;
1817
- return ret;
1818
- };
1819
- imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
1820
- const ret = getObject(arg0) === getObject(arg1);
1821
- return ret;
1822
- };
1823
- imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
1824
- const ret = getObject(arg0) == getObject(arg1);
1825
- return ret;
2125
+ imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
2126
+ // Cast intrinsic for `I64 -> Externref`.
2127
+ const ret = arg0;
2128
+ return addHeapObject(ret);
1826
2129
  };
1827
- imports.wbg.__wbindgen_memory = function() {
1828
- const ret = wasm.memory;
2130
+ imports.wbg.__wbindgen_cast_b4f8efd6e03d7eb3 = function(arg0, arg1) {
2131
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 2, function: Function { arguments: [], shim_idx: 3, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: false }) -> Externref`.
2132
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_123, __wasm_bindgen_func_elem_553);
1829
2133
  return addHeapObject(ret);
1830
2134
  };
1831
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
1832
- const obj = getObject(arg1);
1833
- const ret = typeof(obj) === 'number' ? obj : undefined;
1834
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1835
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2135
+ imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
2136
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
2137
+ const ret = getArrayU8FromWasm0(arg0, arg1);
2138
+ return addHeapObject(ret);
1836
2139
  };
1837
- imports.wbg.__wbindgen_number_new = function(arg0) {
2140
+ imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
2141
+ // Cast intrinsic for `F64 -> Externref`.
1838
2142
  const ret = arg0;
1839
2143
  return addHeapObject(ret);
1840
2144
  };
@@ -1845,29 +2149,10 @@ function __wbg_get_imports() {
1845
2149
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
1846
2150
  takeObject(arg0);
1847
2151
  };
1848
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
1849
- const obj = getObject(arg1);
1850
- const ret = typeof(obj) === 'string' ? obj : undefined;
1851
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
1852
- var len1 = WASM_VECTOR_LEN;
1853
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1854
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1855
- };
1856
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
1857
- const ret = getStringFromWasm0(arg0, arg1);
1858
- return addHeapObject(ret);
1859
- };
1860
- imports.wbg.__wbindgen_throw = function(arg0, arg1) {
1861
- throw new Error(getStringFromWasm0(arg0, arg1));
1862
- };
1863
2152
 
1864
2153
  return imports;
1865
2154
  }
1866
2155
 
1867
- function __wbg_init_memory(imports, memory) {
1868
-
1869
- }
1870
-
1871
2156
  function __wbg_finalize_init(instance, module) {
1872
2157
  wasm = instance.exports;
1873
2158
  __wbg_init.__wbindgen_wasm_module = module;
@@ -1893,8 +2178,6 @@ function initSync(module) {
1893
2178
 
1894
2179
  const imports = __wbg_get_imports();
1895
2180
 
1896
- __wbg_init_memory(imports);
1897
-
1898
2181
  if (!(module instanceof WebAssembly.Module)) {
1899
2182
  module = new WebAssembly.Module(module);
1900
2183
  }
@@ -1923,8 +2206,6 @@ async function __wbg_init(module_or_path) {
1923
2206
  module_or_path = fetch(module_or_path);
1924
2207
  }
1925
2208
 
1926
- __wbg_init_memory(imports);
1927
-
1928
2209
  const { instance, module } = await __wbg_load(await module_or_path, imports);
1929
2210
 
1930
2211
  return __wbg_finalize_init(instance, module);