@perspective-dev/viewer 5.5.1 → 5.6.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 (194) hide show
  1. package/README.md +82 -3
  2. package/dist/cdn/perspective-viewer.js +9 -9
  3. package/dist/cdn/perspective-viewer.js.map +3 -3
  4. package/dist/css/blueprint.css +1 -1
  5. package/dist/css/botanical.css +1 -1
  6. package/dist/css/dracula.css +1 -1
  7. package/dist/css/eggplant.css +1 -1
  8. package/dist/css/gruvbox-dark.css +1 -1
  9. package/dist/css/gruvbox.css +1 -1
  10. package/dist/css/icons.css +1 -1
  11. package/dist/css/intl/ar.css +1 -1
  12. package/dist/css/intl/de.css +1 -1
  13. package/dist/css/intl/es.css +1 -1
  14. package/dist/css/intl/fr.css +1 -1
  15. package/dist/css/intl/ja.css +1 -1
  16. package/dist/css/intl/pt.css +1 -1
  17. package/dist/css/intl/zh.css +1 -1
  18. package/dist/css/intl.css +1 -1
  19. package/dist/css/ledger.css +1 -1
  20. package/dist/css/monokai.css +1 -1
  21. package/dist/css/nord.css +1 -1
  22. package/dist/css/phosphor.css +1 -1
  23. package/dist/css/pro-dark.css +1 -1
  24. package/dist/css/pro.css +1 -1
  25. package/dist/css/solarized-dark.css +1 -1
  26. package/dist/css/solarized.css +1 -1
  27. package/dist/css/themes.css +1 -1
  28. package/dist/css/vaporwave.css +1 -1
  29. package/dist/css/velvet.css +1 -1
  30. package/dist/docs/perspective-docs.json +1 -1
  31. package/dist/esm/column-format.js +2 -0
  32. package/dist/esm/column-format.js.map +7 -0
  33. package/dist/esm/extensions.d.ts +3 -13
  34. package/dist/esm/perspective-viewer.d.ts +1 -1
  35. package/dist/esm/perspective-viewer.js +9 -9
  36. package/dist/esm/perspective-viewer.js.map +3 -3
  37. package/dist/esm/plugin.d.ts +4 -1
  38. package/dist/esm/select-detail.d.ts +15 -0
  39. package/dist/esm/select-detail.js +2 -0
  40. package/dist/esm/select-detail.js.map +7 -0
  41. package/dist/esm/ts-rs/DerivedTableConfig.d.ts +35 -0
  42. package/dist/esm/ts-rs/PanelViewerConfig.d.ts +7 -6
  43. package/dist/esm/ts-rs/RestoreOptions.d.ts +3 -7
  44. package/dist/esm/ts-rs/TableRef.d.ts +9 -0
  45. package/dist/esm/ts-rs/ViewerConfig.d.ts +7 -6
  46. package/dist/esm/ts-rs/ViewerConfigUpdate.d.ts +7 -5
  47. package/dist/esm/ts-rs/WorkspaceConfig.d.ts +9 -1
  48. package/dist/esm/ts-rs/WorkspaceConfigUpdate.d.ts +9 -0
  49. package/dist/wasm/perspective-viewer.d.ts +115 -35
  50. package/dist/wasm/perspective-viewer.js +314 -190
  51. package/dist/wasm/perspective-viewer.wasm +0 -0
  52. package/dist/wasm/perspective-viewer.wasm.d.ts +21 -17
  53. package/package.json +31 -18
  54. package/src/css/column-selector.css +205 -50
  55. package/src/css/ui/containers/context-menu.css +12 -1
  56. package/src/css/ui/containers/dropdown-menu-items.css +29 -0
  57. package/src/css/ui/containers/scroll-panel.css +4 -1
  58. package/src/rust/agent/client/protocol.rs +0 -89
  59. package/src/rust/agent/markdown/mod.rs +0 -238
  60. package/src/rust/agent/preamble.md +1 -0
  61. package/src/rust/agent/tools.rs +2 -16
  62. package/src/rust/components/column_selector/active_column.rs +15 -5
  63. package/src/rust/components/column_selector/add_expression_button.rs +9 -26
  64. package/src/rust/components/column_selector/config_selector.rs +34 -6
  65. package/src/rust/components/column_selector/derived_control.rs +229 -0
  66. package/src/rust/components/column_selector/expr_edit_button.rs +3 -2
  67. package/src/rust/components/column_selector/filter_column.rs +0 -2
  68. package/src/rust/components/column_selector/inactive_column.rs +4 -5
  69. package/src/rust/components/column_selector/pivot_column.rs +21 -1
  70. package/src/rust/components/column_selector/sort_column.rs +4 -3
  71. package/src/rust/components/column_selector.rs +21 -1
  72. package/src/rust/components/column_settings_sidebar/save_settings.rs +5 -3
  73. package/src/rust/components/column_settings_sidebar/style_tab.rs +1 -0
  74. package/src/rust/components/column_settings_sidebar.rs +25 -19
  75. package/src/rust/components/debug_panel.rs +38 -29
  76. package/src/rust/components/dragdrop_list.rs +8 -9
  77. package/src/rust/components/main_panel/msg.rs +6 -4
  78. package/src/rust/components/main_panel/reconcile.rs +6 -1
  79. package/src/rust/components/main_panel/render.rs +70 -51
  80. package/src/rust/components/main_panel/update.rs +39 -1
  81. package/src/rust/components/main_panel.rs +97 -59
  82. package/src/rust/components/new_panel_menu.rs +69 -1
  83. package/src/rust/components/panel_menu.rs +63 -12
  84. package/src/rust/components/plugin_tab.rs +3 -2
  85. package/src/rust/components/render_warning.rs +2 -1
  86. package/src/rust/components/settings_panel.rs +4 -4
  87. package/src/rust/components/status_bar.rs +74 -24
  88. package/src/rust/components/status_indicator.rs +8 -1
  89. package/src/rust/components/viewer/filters.rs +13 -1
  90. package/src/rust/components/viewer/msg.rs +4 -0
  91. package/src/rust/components/viewer/panels.rs +41 -1
  92. package/src/rust/components/viewer/render.rs +1 -0
  93. package/src/rust/components/viewer/settings.rs +0 -22
  94. package/src/rust/components/viewer/snapshots.rs +2 -2
  95. package/src/rust/components/viewer/wiring.rs +14 -0
  96. package/src/rust/components/viewer.rs +45 -25
  97. package/src/rust/components/window_editor.rs +5 -4
  98. package/src/rust/config/column_config_schema.rs +38 -377
  99. package/src/rust/config/number_string_format.rs +0 -94
  100. package/src/rust/config/options.rs +3 -7
  101. package/src/rust/config/plugin_static_config.rs +0 -42
  102. package/src/rust/config/viewer_config.rs +47 -17
  103. package/src/rust/config/workspace_config.rs +158 -128
  104. package/src/rust/custom_elements/viewer.rs +187 -131
  105. package/src/rust/custom_events.rs +33 -18
  106. package/src/rust/derived.rs +266 -0
  107. package/src/rust/exprtk/tokenize.rs +0 -54
  108. package/src/rust/js/plugin.rs +1 -1
  109. package/src/rust/lib.rs +3 -0
  110. package/src/rust/presentation.rs +23 -4
  111. package/src/rust/queries/column_locator.rs +55 -48
  112. package/src/rust/queries/get_viewer_config.rs +1 -1
  113. package/src/rust/queries/plugin_column_styles.rs +22 -23
  114. package/src/rust/renderer/dispatch.rs +2 -0
  115. package/src/rust/renderer/plugin_config.rs +652 -487
  116. package/src/rust/renderer/props.rs +4 -0
  117. package/src/rust/renderer/registry.rs +2 -6
  118. package/src/rust/renderer/state.rs +205 -0
  119. package/src/rust/renderer.rs +201 -59
  120. package/src/rust/session/metadata.rs +30 -9
  121. package/src/rust/session/op_queue.rs +430 -0
  122. package/src/rust/session/panel_state.rs +327 -0
  123. package/src/rust/session/view_subscription.rs +42 -3
  124. package/src/rust/session.rs +900 -395
  125. package/src/rust/tasks/apply_global_filters.rs +49 -35
  126. package/src/rust/tasks/auto_pause.rs +22 -12
  127. package/src/rust/tasks/copy_export.rs +5 -0
  128. package/src/rust/tasks/create_panel.rs +34 -9
  129. package/src/rust/tasks/derive.rs +312 -0
  130. package/src/rust/tasks/mod.rs +6 -2
  131. package/src/rust/tasks/pipeline.rs +145 -89
  132. package/src/rust/tasks/reset_all.rs +31 -20
  133. package/src/rust/tasks/restore_derived.rs +200 -0
  134. package/src/rust/tasks/restore_panel.rs +153 -141
  135. package/src/rust/tasks/send_column_config.rs +56 -29
  136. package/src/rust/tasks/send_plugin_config.rs +52 -23
  137. package/src/rust/tasks/set_edit_mode.rs +33 -25
  138. package/src/rust/tasks/sync_update_panels.rs +39 -12
  139. package/src/rust/tasks/table_lifecycle.rs +70 -34
  140. package/src/rust/tasks/transactional_restore.rs +387 -0
  141. package/src/rust/tasks/update_theme.rs +45 -6
  142. package/src/rust/ui/containers/scroll_panel.rs +17 -10
  143. package/src/rust/ui/containers/split_panel.rs +0 -41
  144. package/src/rust/ui/context_menu.rs +157 -18
  145. package/src/rust/ui/font_loader.rs +23 -35
  146. package/src/rust/ui/form/mirrored_textarea.rs +0 -12
  147. package/src/rust/ui/form/multi_stop_gradient_selector.rs +0 -89
  148. package/src/rust/ui/form/palette_selector.rs +0 -51
  149. package/src/rust/ui/portal.rs +4 -10
  150. package/src/rust/utils/browser/mod.rs +2 -3
  151. package/src/{ts/perspective-viewer.inline.ts → rust/utils/browser/mouse.rs} +11 -10
  152. package/src/rust/utils/browser/request_animation_frame.rs +27 -8
  153. package/src/rust/utils/css.rs +0 -360
  154. package/src/rust/utils/local_fonts.rs +0 -36
  155. package/src/rust/utils/mod.rs +2 -3
  156. package/src/rust/utils/modal_position.rs +15 -21
  157. package/src/rust/utils/{browser/tests/mod.rs → plugin_host_state.rs} +31 -1
  158. package/src/rust/utils/pubsub.rs +0 -1
  159. package/src/rust/workspace.rs +187 -140
  160. package/src/svg/derived.svg +6 -0
  161. package/src/themes/icons.css +1 -0
  162. package/src/themes/intl/ar.css +10 -0
  163. package/src/themes/intl/de.css +10 -0
  164. package/src/themes/intl/es.css +10 -0
  165. package/src/themes/intl/fr.css +10 -0
  166. package/src/themes/intl/ja.css +10 -0
  167. package/src/themes/intl/pt.css +10 -0
  168. package/src/themes/intl/zh.css +10 -0
  169. package/src/themes/intl.css +10 -0
  170. package/src/ts/extensions.ts +3 -36
  171. package/src/ts/perspective-viewer.ts +1 -1
  172. package/src/ts/plugin.ts +4 -1
  173. package/src/{rust/utils/tests/request_animation_frame.rs → ts/select-detail.ts} +32 -26
  174. package/src/ts/ts-rs/DerivedTableConfig.ts +22 -0
  175. package/src/ts/ts-rs/PanelViewerConfig.ts +7 -6
  176. package/src/ts/ts-rs/RestoreOptions.ts +3 -7
  177. package/src/ts/ts-rs/TableRef.ts +9 -0
  178. package/src/ts/ts-rs/ViewerConfig.ts +7 -6
  179. package/src/ts/ts-rs/ViewerConfigUpdate.ts +7 -5
  180. package/src/ts/ts-rs/WorkspaceConfig.ts +7 -1
  181. package/src/ts/ts-rs/WorkspaceConfigUpdate.ts +7 -0
  182. package/dist/esm/perspective-viewer.inline.d.ts +0 -3
  183. package/dist/esm/perspective-viewer.inline.js +0 -21
  184. package/dist/esm/perspective-viewer.inline.js.map +0 -7
  185. package/src/rust/tasks/restore_and_render.rs +0 -107
  186. package/src/rust/utils/browser/tests/debounce.rs +0 -163
  187. package/src/rust/utils/tests/mod.rs +0 -14
  188. package/src/rust/utils/tests/pubsub.rs +0 -95
  189. /package/dist/wasm/snippets/{perspective-viewer-6813b568219c6763 → perspective-viewer-d0d525977a1acba2}/inline0.js +0 -0
  190. /package/dist/wasm/snippets/{perspective-viewer-6813b568219c6763 → perspective-viewer-d0d525977a1acba2}/inline1.js +0 -0
  191. /package/dist/wasm/snippets/{perspective-viewer-6813b568219c6763 → perspective-viewer-d0d525977a1acba2}/inline2.js +0 -0
  192. /package/dist/wasm/snippets/{perspective-viewer-6813b568219c6763 → perspective-viewer-d0d525977a1acba2}/inline3.js +0 -0
  193. /package/dist/wasm/snippets/{perspective-viewer-6813b568219c6763 → perspective-viewer-d0d525977a1acba2}/inline4.js +0 -0
  194. /package/dist/wasm/snippets/{perspective-viewer-6813b568219c6763 → perspective-viewer-d0d525977a1acba2}/inline5.js +0 -0
@@ -1,10 +1,10 @@
1
1
  /* @ts-self-types="./perspective-viewer.wasm.d.ts" */
2
- import { define_panel_tab } from './snippets/perspective-viewer-6813b568219c6763/inline0.js';
3
- import { ClipboardItem } from './snippets/perspective-viewer-6813b568219c6763/inline1.js';
4
- import { ResizeObserver } from './snippets/perspective-viewer-6813b568219c6763/inline2.js';
5
- import { IntersectionObserver } from './snippets/perspective-viewer-6813b568219c6763/inline3.js';
6
- import { bootstrap } from './snippets/perspective-viewer-6813b568219c6763/inline4.js';
7
- import { psp } from './snippets/perspective-viewer-6813b568219c6763/inline5.js';
2
+ import { define_panel_tab } from './snippets/perspective-viewer-d0d525977a1acba2/inline0.js';
3
+ import { ClipboardItem } from './snippets/perspective-viewer-d0d525977a1acba2/inline1.js';
4
+ import { ResizeObserver } from './snippets/perspective-viewer-d0d525977a1acba2/inline2.js';
5
+ import { IntersectionObserver } from './snippets/perspective-viewer-d0d525977a1acba2/inline3.js';
6
+ import { bootstrap } from './snippets/perspective-viewer-d0d525977a1acba2/inline4.js';
7
+ import { psp } from './snippets/perspective-viewer-d0d525977a1acba2/inline5.js';
8
8
 
9
9
  /**
10
10
  * An instance of a [`Client`] is a connection to a single
@@ -406,6 +406,63 @@ export class GenericSQLVirtualServerModel {
406
406
  const ptr = this.__destroy_into_raw();
407
407
  wasm.__wbg_genericsqlvirtualservermodel_free(ptr, 0);
408
408
  }
409
+ /**
410
+ * Returns the SQL query that plans ONE expression against a table - for
411
+ * attributing a failed `expressionsDescribe` to the expressions at fault.
412
+ * @param {string} table_id
413
+ * @param {string} expression
414
+ * @returns {string}
415
+ */
416
+ expressionDescribe(table_id, expression) {
417
+ try {
418
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
419
+ const ptr0 = passStringToWasm0(table_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
420
+ const len0 = WASM_VECTOR_LEN;
421
+ const ptr1 = passStringToWasm0(expression, wasm.__wbindgen_export, wasm.__wbindgen_export2);
422
+ const len1 = WASM_VECTOR_LEN;
423
+ wasm.genericsqlvirtualservermodel_expressionDescribe(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
424
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
425
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
426
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
427
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
428
+ if (r3) {
429
+ throw takeObject(r2);
430
+ }
431
+ var v3 = getCachedStringFromWasm0(r0, r1);
432
+ if (r0 !== 0) { wasm.__wbindgen_export4(r0, r1, 1); }
433
+ return v3;
434
+ } finally {
435
+ wasm.__wbindgen_add_to_stack_pointer(16);
436
+ }
437
+ }
438
+ /**
439
+ * Returns the SQL query that plans every expression of `config` at once
440
+ * against a table, one result column per expression alias, or `undefined`
441
+ * when the config has no expressions.
442
+ * @param {string} table_id
443
+ * @param {any} config
444
+ * @returns {string}
445
+ */
446
+ expressionsDescribe(table_id, config) {
447
+ try {
448
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
449
+ const ptr0 = passStringToWasm0(table_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
450
+ const len0 = WASM_VECTOR_LEN;
451
+ wasm.genericsqlvirtualservermodel_expressionsDescribe(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(config));
452
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
453
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
454
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
455
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
456
+ if (r3) {
457
+ throw takeObject(r2);
458
+ }
459
+ var v2 = getCachedStringFromWasm0(r0, r1);
460
+ if (r0 !== 0) { wasm.__wbindgen_export4(r0, r1, 1); }
461
+ return v2;
462
+ } finally {
463
+ wasm.__wbindgen_add_to_stack_pointer(16);
464
+ }
465
+ }
409
466
  /**
410
467
  * Returns the SQL query to list all hosted tables.
411
468
  * @returns {string}
@@ -450,22 +507,21 @@ export class GenericSQLVirtualServerModel {
450
507
  }
451
508
  }
452
509
  /**
453
- * Returns the SQL query to create a view from a table with the given
454
- * configuration.
510
+ * Returns the SQL query that plans the view `config` would build and
511
+ * reports its result columns without materializing it (`split_by` folded
512
+ * into `group_by`, no `PIVOT`), or `undefined` when the config selects no
513
+ * columns.
455
514
  * @param {string} table_id
456
- * @param {string} view_id
457
515
  * @param {any} config
458
516
  * @param {any} schema
459
517
  * @returns {string}
460
518
  */
461
- tableMakeView(table_id, view_id, config, schema) {
519
+ tableDescribe(table_id, config, schema) {
462
520
  try {
463
521
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
464
522
  const ptr0 = passStringToWasm0(table_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
465
523
  const len0 = WASM_VECTOR_LEN;
466
- const ptr1 = passStringToWasm0(view_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
467
- const len1 = WASM_VECTOR_LEN;
468
- wasm.genericsqlvirtualservermodel_tableMakeView(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, addHeapObject(config), addHeapObject(schema));
524
+ wasm.genericsqlvirtualservermodel_tableDescribe(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(config), addHeapObject(schema));
469
525
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
470
526
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
471
527
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -473,24 +529,30 @@ export class GenericSQLVirtualServerModel {
473
529
  if (r3) {
474
530
  throw takeObject(r2);
475
531
  }
476
- var v3 = getCachedStringFromWasm0(r0, r1);
532
+ var v2 = getCachedStringFromWasm0(r0, r1);
477
533
  if (r0 !== 0) { wasm.__wbindgen_export4(r0, r1, 1); }
478
- return v3;
534
+ return v2;
479
535
  } finally {
480
536
  wasm.__wbindgen_add_to_stack_pointer(16);
481
537
  }
482
538
  }
483
539
  /**
484
- * Returns the SQL query to describe a table's schema.
540
+ * Returns the SQL query to create a view from a table with the given
541
+ * configuration.
485
542
  * @param {string} table_id
543
+ * @param {string} view_id
544
+ * @param {any} config
545
+ * @param {any} schema
486
546
  * @returns {string}
487
547
  */
488
- tableSchema(table_id) {
548
+ tableMakeView(table_id, view_id, config, schema) {
489
549
  try {
490
550
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
491
551
  const ptr0 = passStringToWasm0(table_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
492
552
  const len0 = WASM_VECTOR_LEN;
493
- wasm.genericsqlvirtualservermodel_tableSchema(retptr, this.__wbg_ptr, ptr0, len0);
553
+ const ptr1 = passStringToWasm0(view_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
554
+ const len1 = WASM_VECTOR_LEN;
555
+ wasm.genericsqlvirtualservermodel_tableMakeView(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, addHeapObject(config), addHeapObject(schema));
494
556
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
495
557
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
496
558
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -498,24 +560,24 @@ export class GenericSQLVirtualServerModel {
498
560
  if (r3) {
499
561
  throw takeObject(r2);
500
562
  }
501
- var v2 = getCachedStringFromWasm0(r0, r1);
563
+ var v3 = getCachedStringFromWasm0(r0, r1);
502
564
  if (r0 !== 0) { wasm.__wbindgen_export4(r0, r1, 1); }
503
- return v2;
565
+ return v3;
504
566
  } finally {
505
567
  wasm.__wbindgen_add_to_stack_pointer(16);
506
568
  }
507
569
  }
508
570
  /**
509
- * Returns the SQL query to get the row count of a table.
571
+ * Returns the SQL query to describe a table's schema.
510
572
  * @param {string} table_id
511
573
  * @returns {string}
512
574
  */
513
- tableSize(table_id) {
575
+ tableSchema(table_id) {
514
576
  try {
515
577
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
516
578
  const ptr0 = passStringToWasm0(table_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
517
579
  const len0 = WASM_VECTOR_LEN;
518
- wasm.genericsqlvirtualservermodel_tableSize(retptr, this.__wbg_ptr, ptr0, len0);
580
+ wasm.genericsqlvirtualservermodel_tableSchema(retptr, this.__wbg_ptr, ptr0, len0);
519
581
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
520
582
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
521
583
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -531,19 +593,16 @@ export class GenericSQLVirtualServerModel {
531
593
  }
532
594
  }
533
595
  /**
534
- * Returns the SQL query to validate an expression against a table.
596
+ * Returns the SQL query to get the row count of a table.
535
597
  * @param {string} table_id
536
- * @param {string} expression
537
598
  * @returns {string}
538
599
  */
539
- tableValidateExpression(table_id, expression) {
600
+ tableSize(table_id) {
540
601
  try {
541
602
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
542
603
  const ptr0 = passStringToWasm0(table_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
543
604
  const len0 = WASM_VECTOR_LEN;
544
- const ptr1 = passStringToWasm0(expression, wasm.__wbindgen_export, wasm.__wbindgen_export2);
545
- const len1 = WASM_VECTOR_LEN;
546
- wasm.genericsqlvirtualservermodel_tableValidateExpression(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
605
+ wasm.genericsqlvirtualservermodel_tableSize(retptr, this.__wbg_ptr, ptr0, len0);
547
606
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
548
607
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
549
608
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -551,9 +610,9 @@ export class GenericSQLVirtualServerModel {
551
610
  if (r3) {
552
611
  throw takeObject(r2);
553
612
  }
554
- var v3 = getCachedStringFromWasm0(r0, r1);
613
+ var v2 = getCachedStringFromWasm0(r0, r1);
555
614
  if (r0 !== 0) { wasm.__wbindgen_export4(r0, r1, 1); }
556
- return v3;
615
+ return v2;
557
616
  } finally {
558
617
  wasm.__wbindgen_add_to_stack_pointer(16);
559
618
  }
@@ -665,6 +724,37 @@ export class GenericSQLVirtualServerModel {
665
724
  wasm.__wbindgen_add_to_stack_pointer(16);
666
725
  }
667
726
  }
727
+ /**
728
+ * Returns the SQL query to create a table from a view.
729
+ * @param {string} view_id
730
+ * @param {string} table_id
731
+ * @param {any} config
732
+ * @param {any} view_schema
733
+ * @param {any} schema
734
+ * @returns {string}
735
+ */
736
+ viewMakeTable(view_id, table_id, config, view_schema, schema) {
737
+ try {
738
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
739
+ const ptr0 = passStringToWasm0(view_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
740
+ const len0 = WASM_VECTOR_LEN;
741
+ const ptr1 = passStringToWasm0(table_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
742
+ const len1 = WASM_VECTOR_LEN;
743
+ wasm.genericsqlvirtualservermodel_viewMakeTable(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, addHeapObject(config), addHeapObject(view_schema), addHeapObject(schema));
744
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
745
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
746
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
747
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
748
+ if (r3) {
749
+ throw takeObject(r2);
750
+ }
751
+ var v3 = getCachedStringFromWasm0(r0, r1);
752
+ if (r0 !== 0) { wasm.__wbindgen_export4(r0, r1, 1); }
753
+ return v3;
754
+ } finally {
755
+ wasm.__wbindgen_add_to_stack_pointer(16);
756
+ }
757
+ }
668
758
  /**
669
759
  * Returns the SQL query to describe a view's schema.
670
760
  * @param {string} view_id
@@ -1601,7 +1691,9 @@ export class PerspectiveViewerElement {
1601
1691
  * # Arguments
1602
1692
  *
1603
1693
  * - `reset_all` - If set, will clear expressions and column settings as
1604
- * well.
1694
+ * well, and tear down the element's ENTIRE derived-table state: every
1695
+ * panel bound to a derived `Table` is released to its root table, and
1696
+ * every derivation (pending ones included) is deleted.
1605
1697
  * - `options` - An optional `{panel?: string}`; the panel to reset, or
1606
1698
  * every panel when omitted.
1607
1699
  *
@@ -1715,11 +1807,9 @@ export class PerspectiveViewerElement {
1715
1807
  * either "json", "string" or "arraybuffer" format.
1716
1808
  * - `options.panel` - The panel to target, or the active panel when
1717
1809
  * omitted.
1718
- * - `options.suppress_errors` - when `true`, a failed restore only rejects
1719
- * the returned `Promise` and rolls the view config back, leaving the
1720
- * viewer's visible error state and any element-level state the call
1721
- * already applied (theme, title, plugin, a successful `table` change)
1722
- * untouched.
1810
+ * - `options.suppress_errors` - when `true`, a config that was applied and
1811
+ * then failed to render only rejects the returned `Promise`, without
1812
+ * raising the panel's visible error state.
1723
1813
  * - `options.wait_for_table` - when `true`, a `table` no loaded client
1724
1814
  * hosts yet leaves the panel empty and pending until the table is
1725
1815
  * created, instead of the default error.
@@ -2160,6 +2250,30 @@ export class Table {
2160
2250
  const ret = wasm.table_delete(ptr, isLikeNone(options) ? 0 : addHeapObject(options));
2161
2251
  return takeObject(ret);
2162
2252
  }
2253
+ /**
2254
+ * Validate a complete view config against this table and report the
2255
+ * schema a [`View`] built from it would have, WITHOUT creating one.
2256
+ *
2257
+ * # JavaScript Examples
2258
+ *
2259
+ * ```javascript
2260
+ * const verdict = await table.describe({
2261
+ * columns: ["Sales", "margin"],
2262
+ * group_by: ["Region"],
2263
+ * expressions: { margin: '"Profit" / "Sales"' },
2264
+ * });
2265
+ *
2266
+ * if ("view_schema" in verdict) {
2267
+ * const view = await table.view(config);
2268
+ * }
2269
+ * ```
2270
+ * @param {ViewConfigUpdate | null} [config]
2271
+ * @returns {Promise<any>}
2272
+ */
2273
+ describe(config) {
2274
+ const ret = wasm.table_describe(this.__wbg_ptr, isLikeNone(config) ? 0 : addHeapObject(config));
2275
+ return takeObject(ret);
2276
+ }
2163
2277
  /**
2164
2278
  * Get a copy of the [`Client`] this [`Table`] came from.
2165
2279
  * @returns {Promise<Client>}
@@ -2450,13 +2564,22 @@ export class View {
2450
2564
  return takeObject(ret);
2451
2565
  }
2452
2566
  /**
2453
- * Returns an array of strings containing the column paths of the [`View`]
2454
- * without any of the source columns.
2567
+ * Returns this [`View`]'s column header area for `window`, transposed as
2568
+ * `area[level][column]`.
2455
2569
  *
2456
2570
  * A column path shows the columns that a given cell belongs to after
2457
- * pivots are applied.
2571
+ * pivots are applied. The area is rectangular with one level per
2572
+ * `split_by` plus one: a column's split values occupy the leading levels
2573
+ * and its name always occupies the last, so a subtotal or grand total
2574
+ * under `split_rollup_mode: "rollup"` reads `null` at the levels it does
2575
+ * not pivot on. Values keep their column's type - a `datetime` split value
2576
+ * is epoch milliseconds, not text - so formatting them is the caller's
2577
+ * choice.
2578
+ *
2579
+ * `window` slices the *column* axis; the number of levels does not depend
2580
+ * on it.
2458
2581
  * @param {ColumnWindow | null} [window]
2459
- * @returns {Promise<any>}
2582
+ * @returns {(string | number | boolean | null)[][]}
2460
2583
  */
2461
2584
  column_paths(window) {
2462
2585
  const ret = wasm.view_column_paths(this.__wbg_ptr, isLikeNone(window) ? 0 : addHeapObject(window));
@@ -3233,12 +3356,16 @@ function __wbg_get_imports() {
3233
3356
  const ret = getObject(arg0).body;
3234
3357
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
3235
3358
  },
3236
- __wbg_bootstrap_bcc629c36202c787: function(arg0, arg1, arg2, arg3, arg4, arg5) {
3359
+ __wbg_bootstrap_7468c2821998c724: function(arg0, arg1, arg2, arg3, arg4, arg5) {
3237
3360
  var v0 = getCachedStringFromWasm0(arg1, arg2);
3238
3361
  var v1 = getCachedStringFromWasm0(arg3, arg4);
3239
3362
  const ret = bootstrap(getObject(arg0), v0, v1, takeObject(arg5));
3240
3363
  return addHeapObject(ret);
3241
3364
  },
3365
+ __wbg_bottom_c7ec510a18034add: function(arg0) {
3366
+ const ret = getObject(arg0).bottom;
3367
+ return ret;
3368
+ },
3242
3369
  __wbg_bubbles_ad88192d3c29e6f9: function(arg0) {
3243
3370
  const ret = getObject(arg0).bubbles;
3244
3371
  return ret;
@@ -3255,12 +3382,12 @@ function __wbg_get_imports() {
3255
3382
  const ret = getObject(arg0).__yew_subtree_cache_key;
3256
3383
  return isLikeNone(ret) ? 0x100000001 : (ret) >>> 0;
3257
3384
  },
3258
- __wbg_calculatePath_cd9a0a6d046055b6: function(arg0, arg1, arg2) {
3385
+ __wbg_calculatePath_6bd3b277086d3eba: function(arg0, arg1, arg2) {
3259
3386
  var v0 = getCachedStringFromWasm0(arg1, arg2);
3260
3387
  const ret = getObject(arg0).calculatePath(v0);
3261
3388
  return addHeapObject(ret);
3262
3389
  },
3263
- __wbg_calculatePresizePaths_28421b3816152acf: function(arg0) {
3390
+ __wbg_calculatePresizePaths_65a90be0f192e074: function(arg0) {
3264
3391
  const ret = getObject(arg0).calculatePresizePaths();
3265
3392
  return addHeapObject(ret);
3266
3393
  },
@@ -3307,7 +3434,7 @@ function __wbg_get_imports() {
3307
3434
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3308
3435
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3309
3436
  },
3310
- __wbg_clear_e92315b79199e73e: function() { return handleError(function (arg0) {
3437
+ __wbg_clear_3d4dcadea7bc0856: function() { return handleError(function (arg0) {
3311
3438
  const ret = getObject(arg0).clear();
3312
3439
  return addHeapObject(ret);
3313
3440
  }, arguments); },
@@ -3354,11 +3481,12 @@ function __wbg_get_imports() {
3354
3481
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3355
3482
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3356
3483
  },
3357
- __wbg_column_config_schema_70ce008fc8aab6f1: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
3484
+ __wbg_column_config_schema_194b1e58d9c3b38a: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
3358
3485
  var v0 = getCachedStringFromWasm0(arg1, arg2);
3359
3486
  var v1 = getCachedStringFromWasm0(arg3, arg4);
3360
3487
  var v2 = getCachedStringFromWasm0(arg5, arg6);
3361
- const ret = getObject(arg0).column_config_schema(v0, v1, v2, getObject(arg7), getObject(arg8), getObject(arg9));
3488
+ var v3 = getCachedStringFromWasm0(arg10, arg11);
3489
+ const ret = getObject(arg0).column_config_schema(v0, v1, v2, getObject(arg7), getObject(arg8), getObject(arg9), v3);
3362
3490
  return addHeapObject(ret);
3363
3491
  }, arguments); },
3364
3492
  __wbg_composedPath_9154ab2547c668d5: function(arg0) {
@@ -3374,7 +3502,7 @@ function __wbg_get_imports() {
3374
3502
  const ret = getObject(arg0).contains(v0);
3375
3503
  return ret;
3376
3504
  },
3377
- __wbg_contentRect_dfad24916e198802: function(arg0) {
3505
+ __wbg_contentRect_53c41af7c9e6e913: function(arg0) {
3378
3506
  const ret = getObject(arg0).contentRect;
3379
3507
  return addHeapObject(ret);
3380
3508
  },
@@ -3412,10 +3540,6 @@ function __wbg_get_imports() {
3412
3540
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3413
3541
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3414
3542
  },
3415
- __wbg_currentTarget_d1f347b3b9bddd6e: function(arg0) {
3416
- const ret = getObject(arg0).currentTarget;
3417
- return isLikeNone(ret) ? 0 : addHeapObject(ret);
3418
- },
3419
3543
  __wbg_dataTransfer_d924a622fbe51b06: function(arg0) {
3420
3544
  const ret = getObject(arg0).dataTransfer;
3421
3545
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
@@ -3437,18 +3561,18 @@ function __wbg_get_imports() {
3437
3561
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3438
3562
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3439
3563
  }, arguments); },
3440
- __wbg_define_panel_tab_fee5f3fc7762b065: function(arg0, arg1) {
3564
+ __wbg_define_panel_tab_0d4b5e78be60b8f2: function(arg0, arg1) {
3441
3565
  var v0 = getCachedStringFromWasm0(arg0, arg1);
3442
3566
  define_panel_tab(v0);
3443
3567
  },
3444
- __wbg_delete_48886d8bcf17907c: function(arg0) {
3445
- getObject(arg0).delete();
3446
- },
3447
3568
  __wbg_delete_8318b529ff42aa20: function(arg0, arg1, arg2) {
3448
3569
  var v0 = getCachedStringFromWasm0(arg1, arg2);
3449
3570
  delete getObject(arg0)[v0];
3450
3571
  },
3451
- __wbg_deselect_94737f98e0d020fd: function() { return handleError(function (arg0) {
3572
+ __wbg_delete_ceb365c62edd0d43: function(arg0) {
3573
+ getObject(arg0).delete();
3574
+ },
3575
+ __wbg_deselect_845965b4ab881f1b: function() { return handleError(function (arg0) {
3452
3576
  const ret = getObject(arg0).deselect();
3453
3577
  return addHeapObject(ret);
3454
3578
  }, arguments); },
@@ -3468,7 +3592,7 @@ function __wbg_get_imports() {
3468
3592
  const ret = getObject(arg0).done;
3469
3593
  return ret;
3470
3594
  },
3471
- __wbg_draw_f1656ba493338e2f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3595
+ __wbg_draw_a2de0fa2a1465ff7: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3472
3596
  const ret = getObject(arg0).draw(View.__wrap(arg1), arg2 === 0x100000001 ? undefined : arg2, arg3 === 0x100000001 ? undefined : arg3, arg4 !== 0);
3473
3597
  return addHeapObject(ret);
3474
3598
  }, arguments); },
@@ -3495,13 +3619,6 @@ function __wbg_get_imports() {
3495
3619
  __wbg_error_f852e41c69b0bd84: function(arg0, arg1) {
3496
3620
  console.error(getObject(arg0), getObject(arg1));
3497
3621
  },
3498
- __wbg_family_345f1736ce506756: function(arg0, arg1) {
3499
- const ret = getObject(arg1).family;
3500
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
3501
- const len1 = WASM_VECTOR_LEN;
3502
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3503
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3504
- },
3505
3622
  __wbg_fetch_e6e8e0a221783759: function(arg0, arg1) {
3506
3623
  const ret = getObject(arg0).fetch(getObject(arg1));
3507
3624
  return addHeapObject(ret);
@@ -3612,7 +3729,7 @@ function __wbg_get_imports() {
3612
3729
  const ret = getObject(arg0)[arg1 >>> 0];
3613
3730
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
3614
3731
  },
3615
- __wbg_get_static_config_63f724040cd26a11: function(arg0) {
3732
+ __wbg_get_static_config_9d973a245c170cab: function(arg0) {
3616
3733
  const ret = getObject(arg0).get_static_config();
3617
3734
  return addHeapObject(ret);
3618
3735
  },
@@ -3682,7 +3799,7 @@ function __wbg_get_imports() {
3682
3799
  const ret = getObject(arg0).insertBefore(getObject(arg1), getObject(arg2));
3683
3800
  return addHeapObject(ret);
3684
3801
  }, arguments); },
3685
- __wbg_insertPanel_ba71bdc751d5e29b: function(arg0, arg1, arg2, arg3, arg4) {
3802
+ __wbg_insertPanel_618acea7b103d85c: function(arg0, arg1, arg2, arg3, arg4) {
3686
3803
  var v0 = getCachedStringFromWasm0(arg1, arg2);
3687
3804
  const ret = getObject(arg0).insertPanel(v0, takeObject(arg3), takeObject(arg4));
3688
3805
  return addHeapObject(ret);
@@ -3767,40 +3884,40 @@ function __wbg_get_imports() {
3767
3884
  const ret = result;
3768
3885
  return ret;
3769
3886
  },
3770
- __wbg_instanceof_FontFace_90d3e62f39397791: function(arg0) {
3887
+ __wbg_instanceof_HtmlCanvasElement_3f2f6e1edb1c9792: function(arg0) {
3771
3888
  let result;
3772
3889
  try {
3773
- result = getObject(arg0) instanceof FontFace;
3890
+ result = getObject(arg0) instanceof HTMLCanvasElement;
3774
3891
  } catch (_) {
3775
3892
  result = false;
3776
3893
  }
3777
3894
  const ret = result;
3778
3895
  return ret;
3779
3896
  },
3780
- __wbg_instanceof_HtmlCanvasElement_3f2f6e1edb1c9792: function(arg0) {
3897
+ __wbg_instanceof_HtmlElement_5abfac207260fd6f: function(arg0) {
3781
3898
  let result;
3782
3899
  try {
3783
- result = getObject(arg0) instanceof HTMLCanvasElement;
3900
+ result = getObject(arg0) instanceof HTMLElement;
3784
3901
  } catch (_) {
3785
3902
  result = false;
3786
3903
  }
3787
3904
  const ret = result;
3788
3905
  return ret;
3789
3906
  },
3790
- __wbg_instanceof_HtmlElement_5abfac207260fd6f: function(arg0) {
3907
+ __wbg_instanceof_HtmlInputElement_c10b7260b4e0710a: function(arg0) {
3791
3908
  let result;
3792
3909
  try {
3793
- result = getObject(arg0) instanceof HTMLElement;
3910
+ result = getObject(arg0) instanceof HTMLInputElement;
3794
3911
  } catch (_) {
3795
3912
  result = false;
3796
3913
  }
3797
3914
  const ret = result;
3798
3915
  return ret;
3799
3916
  },
3800
- __wbg_instanceof_HtmlInputElement_c10b7260b4e0710a: function(arg0) {
3917
+ __wbg_instanceof_HtmlLinkElement_5eb5b0855a17d0fc: function(arg0) {
3801
3918
  let result;
3802
3919
  try {
3803
- result = getObject(arg0) instanceof HTMLInputElement;
3920
+ result = getObject(arg0) instanceof HTMLLinkElement;
3804
3921
  } catch (_) {
3805
3922
  result = false;
3806
3923
  }
@@ -3909,7 +4026,11 @@ function __wbg_get_imports() {
3909
4026
  const ret = getObject(arg0).isConnected;
3910
4027
  return ret;
3911
4028
  },
3912
- __wbg_isIntersecting_ee173c3ac0a789ff: function(arg0) {
4029
+ __wbg_isContentEditable_f5b0ce009dbd035b: function(arg0) {
4030
+ const ret = getObject(arg0).isContentEditable;
4031
+ return ret;
4032
+ },
4033
+ __wbg_isIntersecting_bc26c0acce04af1a: function(arg0) {
3913
4034
  const ret = getObject(arg0).isIntersecting;
3914
4035
  return ret;
3915
4036
  },
@@ -4011,10 +4132,12 @@ function __wbg_get_imports() {
4011
4132
  const ret = getObject(arg0).__yew_listener_id;
4012
4133
  return isLikeNone(ret) ? 0x100000001 : (ret) >>> 0;
4013
4134
  },
4014
- __wbg_loaded_27fa3bdfd9239e89: function() { return handleError(function (arg0) {
4015
- const ret = getObject(arg0).loaded;
4135
+ __wbg_load_f8d29f3c1bda8dd1: function(arg0, arg1, arg2, arg3, arg4) {
4136
+ var v0 = getCachedStringFromWasm0(arg1, arg2);
4137
+ var v1 = getCachedStringFromWasm0(arg3, arg4);
4138
+ const ret = getObject(arg0).load(v0, v1);
4016
4139
  return addHeapObject(ret);
4017
- }, arguments); },
4140
+ },
4018
4141
  __wbg_mark_3b530a64b09ba08a: function() { return handleError(function (arg0, arg1, arg2) {
4019
4142
  var v0 = getCachedStringFromWasm0(arg1, arg2);
4020
4143
  getObject(arg0).mark(v0);
@@ -4024,7 +4147,7 @@ function __wbg_get_imports() {
4024
4147
  const ret = getObject(arg0).matches(v0);
4025
4148
  return ret;
4026
4149
  }, arguments); },
4027
- __wbg_maximize_1565a64f119d9b4b: function(arg0, arg1, arg2) {
4150
+ __wbg_maximize_b88dc171d839281a: function(arg0, arg1, arg2) {
4028
4151
  var v0 = getCachedStringFromWasm0(arg1, arg2);
4029
4152
  getObject(arg0).maximize(v0);
4030
4153
  },
@@ -4042,7 +4165,7 @@ function __wbg_get_imports() {
4042
4165
  const ret = getObject(arg0).message;
4043
4166
  return addHeapObject(ret);
4044
4167
  },
4045
- __wbg_minimize_06345975e97908b4: function(arg0) {
4168
+ __wbg_minimize_7a8842fdebe6a580: function(arg0) {
4046
4169
  getObject(arg0).minimize();
4047
4170
  },
4048
4171
  __wbg_namespaceURI_86e2062c65f0f341: function(arg0, arg1) {
@@ -4086,6 +4209,14 @@ function __wbg_get_imports() {
4086
4209
  const ret = new Array();
4087
4210
  return addHeapObject(ret);
4088
4211
  },
4212
+ __wbg_new_48a9f8a48a8d3375: function(arg0) {
4213
+ const ret = new ResizeObserver(getObject(arg0));
4214
+ return addHeapObject(ret);
4215
+ },
4216
+ __wbg_new_5d3b54e66993488c: function(arg0) {
4217
+ const ret = new IntersectionObserver(getObject(arg0));
4218
+ return addHeapObject(ret);
4219
+ },
4089
4220
  __wbg_new_64284bd487f9d239: function() { return handleError(function () {
4090
4221
  const ret = new Headers();
4091
4222
  return addHeapObject(ret);
@@ -4099,18 +4230,10 @@ function __wbg_get_imports() {
4099
4230
  const ret = new Intl.NumberFormat(getObject(arg0), getObject(arg1));
4100
4231
  return addHeapObject(ret);
4101
4232
  },
4102
- __wbg_new_88e66413498f3e3d: function(arg0) {
4103
- const ret = new ClipboardItem(getObject(arg0));
4104
- return addHeapObject(ret);
4105
- },
4106
4233
  __wbg_new_8a6f238a6ece86ea: function() {
4107
4234
  const ret = new Error();
4108
4235
  return addHeapObject(ret);
4109
4236
  },
4110
- __wbg_new_98450e70584646af: function(arg0) {
4111
- const ret = new IntersectionObserver(getObject(arg0));
4112
- return addHeapObject(ret);
4113
- },
4114
4237
  __wbg_new_b5d9e2fb389fef91: function(arg0, arg1) {
4115
4238
  try {
4116
4239
  var state0 = {a: arg0, b: arg1};
@@ -4118,7 +4241,7 @@ function __wbg_get_imports() {
4118
4241
  const a = state0.a;
4119
4242
  state0.a = 0;
4120
4243
  try {
4121
- return __wasm_bindgen_func_elem_33507(a, state0.b, arg0, arg1);
4244
+ return __wasm_bindgen_func_elem_35042(a, state0.b, arg0, arg1);
4122
4245
  } finally {
4123
4246
  state0.a = a;
4124
4247
  }
@@ -4137,6 +4260,10 @@ function __wbg_get_imports() {
4137
4260
  const ret = new Intl.DateTimeFormat(getObject(arg0), getObject(arg1));
4138
4261
  return addHeapObject(ret);
4139
4262
  },
4263
+ __wbg_new_d2c1db2122463dba: function(arg0) {
4264
+ const ret = new ClipboardItem(getObject(arg0));
4265
+ return addHeapObject(ret);
4266
+ },
4140
4267
  __wbg_new_dca287b076112a51: function() {
4141
4268
  const ret = new Map();
4142
4269
  return addHeapObject(ret);
@@ -4145,10 +4272,6 @@ function __wbg_get_imports() {
4145
4272
  const ret = new Uint8Array(getObject(arg0));
4146
4273
  return addHeapObject(ret);
4147
4274
  },
4148
- __wbg_new_ef89e494c7dddd8a: function(arg0) {
4149
- const ret = new ResizeObserver(getObject(arg0));
4150
- return addHeapObject(ret);
4151
- },
4152
4275
  __wbg_new_from_slice_a3d2629dc1826784: function(arg0, arg1) {
4153
4276
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
4154
4277
  return addHeapObject(ret);
@@ -4192,10 +4315,6 @@ function __wbg_get_imports() {
4192
4315
  const ret = getObject(arg0).next;
4193
4316
  return addHeapObject(ret);
4194
4317
  },
4195
- __wbg_next_a74fa8e233e5b7bf: function() { return handleError(function (arg0) {
4196
- const ret = getObject(arg0).next();
4197
- return addHeapObject(ret);
4198
- }, arguments); },
4199
4318
  __wbg_now_a3af9a2f4bbaa4d1: function() {
4200
4319
  const ret = Date.now();
4201
4320
  return ret;
@@ -4204,10 +4323,10 @@ function __wbg_get_imports() {
4204
4323
  const ret = getObject(arg0).now();
4205
4324
  return ret;
4206
4325
  },
4207
- __wbg_observe_54866f50769e08ca: function(arg0, arg1) {
4326
+ __wbg_observe_76d0de4e35b048ba: function(arg0, arg1) {
4208
4327
  getObject(arg0).observe(getObject(arg1));
4209
4328
  },
4210
- __wbg_observe_627a58df471ce4f7: function(arg0, arg1) {
4329
+ __wbg_observe_9e3086661d5a3fe9: function(arg0, arg1) {
4211
4330
  getObject(arg0).observe(getObject(arg1));
4212
4331
  },
4213
4332
  __wbg_of_f915f7cd925b21a5: function(arg0) {
@@ -4255,7 +4374,7 @@ function __wbg_get_imports() {
4255
4374
  const ret = getObject(arg0).performance;
4256
4375
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4257
4376
  },
4258
- __wbg_plugin_config_schema_af1a897a0339ced6: function() { return handleError(function (arg0, arg1, arg2) {
4377
+ __wbg_plugin_config_schema_949fc5809ea480fe: function() { return handleError(function (arg0, arg1, arg2) {
4259
4378
  const ret = getObject(arg0).plugin_config_schema(getObject(arg1), getObject(arg2));
4260
4379
  return addHeapObject(ret);
4261
4380
  }, arguments); },
@@ -4270,7 +4389,7 @@ function __wbg_get_imports() {
4270
4389
  __wbg_prepend_12ed960547d9dfe1: function() { return handleError(function (arg0, arg1) {
4271
4390
  getObject(arg0).prepend(getObject(arg1));
4272
4391
  }, arguments); },
4273
- __wbg_presize_6d1b3d3b70ce9325: function() { return handleError(function (arg0, arg1, arg2) {
4392
+ __wbg_presize_992fa0f0607ce495: function() { return handleError(function (arg0, arg1, arg2) {
4274
4393
  const ret = getObject(arg0).presize(arg1, arg2);
4275
4394
  return addHeapObject(ret);
4276
4395
  }, arguments); },
@@ -4284,6 +4403,11 @@ function __wbg_get_imports() {
4284
4403
  const ret = getObject(arg0).push(getObject(arg1));
4285
4404
  return ret;
4286
4405
  },
4406
+ __wbg_querySelectorAll_1283aae52043a951: function() { return handleError(function (arg0, arg1, arg2) {
4407
+ var v0 = getCachedStringFromWasm0(arg1, arg2);
4408
+ const ret = getObject(arg0).querySelectorAll(v0);
4409
+ return addHeapObject(ret);
4410
+ }, arguments); },
4287
4411
  __wbg_querySelectorAll_5875742f4e11f759: function() { return handleError(function (arg0, arg1, arg2) {
4288
4412
  var v0 = getCachedStringFromWasm0(arg1, arg2);
4289
4413
  const ret = getObject(arg0).querySelectorAll(v0);
@@ -4321,7 +4445,7 @@ function __wbg_get_imports() {
4321
4445
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4322
4446
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4323
4447
  },
4324
- __wbg_realCoordinates_95d090434c040179: function(arg0, arg1) {
4448
+ __wbg_realCoordinates_cd631d39634cdcd7: function(arg0, arg1) {
4325
4449
  const ret = getObject(arg0).realCoordinates(getObject(arg1));
4326
4450
  return addHeapObject(ret);
4327
4451
  },
@@ -4355,7 +4479,7 @@ function __wbg_get_imports() {
4355
4479
  var v0 = getCachedStringFromWasm0(arg1, arg2);
4356
4480
  getObject(arg0).removeEventListener(v0, getObject(arg3));
4357
4481
  }, arguments); },
4358
- __wbg_removePanel_89f2af880f0f91a2: function(arg0, arg1, arg2) {
4482
+ __wbg_removePanel_b13d14b95a1fd15c: function(arg0, arg1, arg2) {
4359
4483
  var v0 = getCachedStringFromWasm0(arg1, arg2);
4360
4484
  const ret = getObject(arg0).removePanel(v0);
4361
4485
  return addHeapObject(ret);
@@ -4375,7 +4499,7 @@ function __wbg_get_imports() {
4375
4499
  var v0 = getCachedStringFromWasm0(arg1, arg2);
4376
4500
  getObject(arg0).remove(v0);
4377
4501
  }, arguments); },
4378
- __wbg_render_73a123e524099b60: function() { return handleError(function (arg0, arg1, arg2) {
4502
+ __wbg_render_6d439453abd7774b: function() { return handleError(function (arg0, arg1, arg2) {
4379
4503
  const ret = getObject(arg0).render(View.__wrap(arg1), takeObject(arg2));
4380
4504
  return addHeapObject(ret);
4381
4505
  }, arguments); },
@@ -4387,7 +4511,7 @@ function __wbg_get_imports() {
4387
4511
  const ret = getObject(arg0).requestAnimationFrame(getObject(arg1));
4388
4512
  return ret;
4389
4513
  }, arguments); },
4390
- __wbg_resize_2dfb18995e43d301: function() { return handleError(function (arg0) {
4514
+ __wbg_resize_4041582e1c85f802: function() { return handleError(function (arg0) {
4391
4515
  const ret = getObject(arg0).resize();
4392
4516
  return addHeapObject(ret);
4393
4517
  }, arguments); },
@@ -4399,30 +4523,30 @@ function __wbg_get_imports() {
4399
4523
  const ret = getObject(arg0).resolvedOptions();
4400
4524
  return addHeapObject(ret);
4401
4525
  },
4402
- __wbg_restorePhysics_66df17074d08ef49: function(arg0, arg1) {
4526
+ __wbg_restorePhysics_61ba524dc37976b6: function(arg0, arg1) {
4403
4527
  getObject(arg0).restorePhysics(getObject(arg1));
4404
4528
  },
4405
- __wbg_restoreSync_6ea54baceed6f8ca: function(arg0, arg1) {
4529
+ __wbg_restoreSync_175e728d420d7c33: function(arg0, arg1) {
4406
4530
  getObject(arg0).restoreSync(getObject(arg1));
4407
4531
  },
4408
- __wbg_restore_43960e31bf4c37c7: function() { return handleError(function (arg0, arg1, arg2) {
4532
+ __wbg_restore_9e03dc0853d57a24: function() { return handleError(function (arg0, arg1, arg2) {
4409
4533
  getObject(arg0).restore(getObject(arg1), getObject(arg2));
4410
4534
  }, arguments); },
4411
- __wbg_restyle_949fb0d4d0c355a5: function(arg0) {
4535
+ __wbg_restyle_0f65a11fd3216635: function(arg0) {
4412
4536
  getObject(arg0).restyle();
4413
4537
  },
4414
- __wbg_resumeResize_b4054c5d47d4f1b0: function(arg0) {
4538
+ __wbg_resumeResize_47f412fe468a86e6: function(arg0) {
4415
4539
  getObject(arg0).resumeResize();
4416
4540
  },
4417
4541
  __wbg_right_154af6c2b1bf0c89: function(arg0) {
4418
4542
  const ret = getObject(arg0).right;
4419
4543
  return ret;
4420
4544
  },
4421
- __wbg_run_556972011e45ec00: function() { return handleError(function (arg0, arg1) {
4545
+ __wbg_run_56500aec144102b2: function() { return handleError(function (arg0, arg1) {
4422
4546
  const ret = getObject(arg0).run(getObject(arg1));
4423
4547
  return addHeapObject(ret);
4424
4548
  }, arguments); },
4425
- __wbg_save_363646e98431790c: function(arg0) {
4549
+ __wbg_save_bc7e03c0026cef07: function(arg0) {
4426
4550
  const ret = getObject(arg0).save();
4427
4551
  return addHeapObject(ret);
4428
4552
  },
@@ -4442,7 +4566,7 @@ function __wbg_get_imports() {
4442
4566
  const ret = getObject(arg0).scrollTop;
4443
4567
  return ret;
4444
4568
  },
4445
- __wbg_select_312040969b7499fa: function(arg0, arg1, arg2) {
4569
+ __wbg_select_6cdd9a77e39c4c9c: function(arg0, arg1, arg2) {
4446
4570
  var v0 = getCachedStringFromWasm0(arg1, arg2);
4447
4571
  const ret = getObject(arg0).select(v0);
4448
4572
  return addHeapObject(ret);
@@ -4628,6 +4752,10 @@ function __wbg_get_imports() {
4628
4752
  const ret = getObject(arg0).shadowRoot;
4629
4753
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4630
4754
  },
4755
+ __wbg_sheet_38c9043b5f37d85d: function(arg0) {
4756
+ const ret = getObject(arg0).sheet;
4757
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
4758
+ },
4631
4759
  __wbg_shiftKey_5558a3288542c985: function(arg0) {
4632
4760
  const ret = getObject(arg0).shiftKey;
4633
4761
  return ret;
@@ -4646,6 +4774,13 @@ function __wbg_get_imports() {
4646
4774
  const ret = getObject(arg0).signal;
4647
4775
  return addHeapObject(ret);
4648
4776
  },
4777
+ __wbg_slot_7d421d6c9d6c8352: function(arg0, arg1) {
4778
+ const ret = getObject(arg1).slot;
4779
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
4780
+ const len1 = WASM_VECTOR_LEN;
4781
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4782
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4783
+ },
4649
4784
  __wbg_stack_0ed75d68575b0f3c: function(arg0, arg1) {
4650
4785
  const ret = getObject(arg1).stack;
4651
4786
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
@@ -4665,7 +4800,7 @@ function __wbg_get_imports() {
4665
4800
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
4666
4801
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4667
4802
  },
4668
- __wbg_static_accessor_PSP_d1c7a0dfe6e2f550: function() {
4803
+ __wbg_static_accessor_PSP_0c543191e55f65a5: function() {
4669
4804
  const ret = psp;
4670
4805
  return addHeapObject(ret);
4671
4806
  },
@@ -4715,7 +4850,7 @@ function __wbg_get_imports() {
4715
4850
  const ret = getObject(arg0).__yew_subtree_id;
4716
4851
  return isLikeNone(ret) ? 0x100000001 : (ret) >>> 0;
4717
4852
  },
4718
- __wbg_supportedValuesOf_070cb26b0fcb2822: function(arg0) {
4853
+ __wbg_supportedValuesOf_781c0f8a47dc524a: function(arg0) {
4719
4854
  const ret = Intl.supportedValuesOf(getObject(arg0));
4720
4855
  return addHeapObject(ret);
4721
4856
  },
@@ -4786,13 +4921,13 @@ function __wbg_get_imports() {
4786
4921
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4787
4922
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4788
4923
  },
4789
- __wbg_unobserve_78e51c229e9cb74c: function(arg0, arg1) {
4924
+ __wbg_unobserve_e4daa9e2d49e0257: function(arg0, arg1) {
4790
4925
  getObject(arg0).unobserve(getObject(arg1));
4791
4926
  },
4792
- __wbg_unobserve_84dd6ded6f59337d: function(arg0, arg1) {
4927
+ __wbg_unobserve_faaba3d545795ea3: function(arg0, arg1) {
4793
4928
  getObject(arg0).unobserve(getObject(arg1));
4794
4929
  },
4795
- __wbg_update_3f59793335531aa0: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
4930
+ __wbg_update_7acd874ac3bcbaf9: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
4796
4931
  const ret = getObject(arg0).update(View.__wrap(arg1), arg2 === 0x100000001 ? undefined : arg2, arg3 === 0x100000001 ? undefined : arg3, arg4 !== 0);
4797
4932
  return addHeapObject(ret);
4798
4933
  }, arguments); },
@@ -4829,10 +4964,6 @@ function __wbg_get_imports() {
4829
4964
  const ret = Object.values(getObject(arg0));
4830
4965
  return addHeapObject(ret);
4831
4966
  },
4832
- __wbg_values_725507e0ae05aa44: function(arg0) {
4833
- const ret = getObject(arg0).values();
4834
- return addHeapObject(ret);
4835
- },
4836
4967
  __wbg_view_new: function(arg0) {
4837
4968
  const ret = View.__wrap(arg0);
4838
4969
  return addHeapObject(ret);
@@ -4851,13 +4982,6 @@ function __wbg_get_imports() {
4851
4982
  __wbg_warn_f7ae1b2e66ccb930: function(arg0) {
4852
4983
  console.warn(getObject(arg0));
4853
4984
  },
4854
- __wbg_weight_984b87b81f2dde65: function(arg0, arg1) {
4855
- const ret = getObject(arg1).weight;
4856
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
4857
- const len1 = WASM_VECTOR_LEN;
4858
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4859
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4860
- },
4861
4985
  __wbg_which_78ecd90ab7c6bdd6: function(arg0) {
4862
4986
  const ret = getObject(arg0).which;
4863
4987
  return ret;
@@ -4879,83 +5003,83 @@ function __wbg_get_imports() {
4879
5003
  return addHeapObject(ret);
4880
5004
  },
4881
5005
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
4882
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4789, function: Function { arguments: [Ref(NamedExternref("Event"))], shim_idx: 4791, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
4883
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_18919, __wasm_bindgen_func_elem_19039);
5006
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [Externref], shim_idx: 90, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
5007
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7435, __wasm_bindgen_func_elem_8469);
4884
5008
  return addHeapObject(ret);
4885
5009
  },
4886
5010
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
4887
- // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [Externref], shim_idx: 90, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
4888
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4482, __wasm_bindgen_func_elem_7893);
5011
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 92, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5012
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7435, __wasm_bindgen_func_elem_8470);
4889
5013
  return addHeapObject(ret);
4890
5014
  },
4891
5015
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
4892
- // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 92, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4893
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4482, __wasm_bindgen_func_elem_7894);
5016
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [NamedExternref("DragEvent")], shim_idx: 92, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5017
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7435, __wasm_bindgen_func_elem_8470);
4894
5018
  return addHeapObject(ret);
4895
5019
  },
4896
5020
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
4897
- // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [NamedExternref("DragEvent")], shim_idx: 92, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4898
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4482, __wasm_bindgen_func_elem_7894);
5021
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx: 92, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5022
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7435, __wasm_bindgen_func_elem_8470);
4899
5023
  return addHeapObject(ret);
4900
5024
  },
4901
5025
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
4902
- // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx: 92, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4903
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4482, __wasm_bindgen_func_elem_7894);
5026
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 92, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5027
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7435, __wasm_bindgen_func_elem_8470);
4904
5028
  return addHeapObject(ret);
4905
5029
  },
4906
5030
  __wbindgen_cast_0000000000000006: function(arg0, arg1) {
4907
- // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 92, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4908
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4482, __wasm_bindgen_func_elem_7894);
5031
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [NamedExternref("MouseEvent")], shim_idx: 90, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
5032
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7435, __wasm_bindgen_func_elem_8469);
4909
5033
  return addHeapObject(ret);
4910
5034
  },
4911
5035
  __wbindgen_cast_0000000000000007: function(arg0, arg1) {
4912
- // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [NamedExternref("MouseEvent")], shim_idx: 90, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
4913
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4482, __wasm_bindgen_func_elem_7893);
5036
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [NamedExternref("MouseEvent")], shim_idx: 92, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5037
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7435, __wasm_bindgen_func_elem_8470);
4914
5038
  return addHeapObject(ret);
4915
5039
  },
4916
5040
  __wbindgen_cast_0000000000000008: function(arg0, arg1) {
4917
- // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [NamedExternref("MouseEvent")], shim_idx: 92, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4918
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4482, __wasm_bindgen_func_elem_7894);
5041
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 92, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5042
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7435, __wasm_bindgen_func_elem_8470);
4919
5043
  return addHeapObject(ret);
4920
5044
  },
4921
5045
  __wbindgen_cast_0000000000000009: function(arg0, arg1) {
4922
- // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 92, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4923
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4482, __wasm_bindgen_func_elem_7894);
5046
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [], shim_idx: 91, ret: Result(Externref), inner_ret: Some(Result(Externref)) }, mutable: false }) -> Externref`.
5047
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7435, __wasm_bindgen_func_elem_8471);
4924
5048
  return addHeapObject(ret);
4925
5049
  },
4926
5050
  __wbindgen_cast_000000000000000a: function(arg0, arg1) {
4927
- // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [], shim_idx: 91, ret: Result(Externref), inner_ret: Some(Result(Externref)) }, mutable: false }) -> Externref`.
4928
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4482, __wasm_bindgen_func_elem_7895);
5051
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [], shim_idx: 93, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
5052
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_7435, __wasm_bindgen_func_elem_8467);
4929
5053
  return addHeapObject(ret);
4930
5054
  },
4931
5055
  __wbindgen_cast_000000000000000b: function(arg0, arg1) {
4932
- // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [], shim_idx: 93, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
4933
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4482, __wasm_bindgen_func_elem_7891);
5056
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4956, function: Function { arguments: [Ref(NamedExternref("Event"))], shim_idx: 4958, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
5057
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_20133, __wasm_bindgen_func_elem_20156);
4934
5058
  return addHeapObject(ret);
4935
5059
  },
4936
5060
  __wbindgen_cast_000000000000000c: function(arg0, arg1) {
4937
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4873, function: Function { arguments: [NamedExternref("Event")], shim_idx: 4874, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4938
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_19628, __wasm_bindgen_func_elem_19633);
5061
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 5040, function: Function { arguments: [NamedExternref("Event")], shim_idx: 5041, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5062
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_20746, __wasm_bindgen_func_elem_20750);
4939
5063
  return addHeapObject(ret);
4940
5064
  },
4941
5065
  __wbindgen_cast_000000000000000d: function(arg0, arg1) {
4942
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4873, function: Function { arguments: [], shim_idx: 4875, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4943
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_19628, __wasm_bindgen_func_elem_19632);
5066
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 5040, function: Function { arguments: [], shim_idx: 5042, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5067
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_20746, __wasm_bindgen_func_elem_20749);
4944
5068
  return addHeapObject(ret);
4945
5069
  },
4946
5070
  __wbindgen_cast_000000000000000e: function(arg0, arg1) {
4947
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4890, function: Function { arguments: [], shim_idx: 4905, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: false }) -> Externref`.
4948
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_20538, __wasm_bindgen_func_elem_21577);
5071
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 5053, function: Function { arguments: [], shim_idx: 5071, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: false }) -> Externref`.
5072
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_22147, __wasm_bindgen_func_elem_22772);
4949
5073
  return addHeapObject(ret);
4950
5074
  },
4951
5075
  __wbindgen_cast_000000000000000f: function(arg0, arg1) {
4952
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4890, function: Function { arguments: [], shim_idx: 4906, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
4953
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_20538, __wasm_bindgen_func_elem_21578);
5076
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 5053, function: Function { arguments: [], shim_idx: 5072, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
5077
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_22147, __wasm_bindgen_func_elem_22773);
4954
5078
  return addHeapObject(ret);
4955
5079
  },
4956
5080
  __wbindgen_cast_0000000000000010: function(arg0, arg1) {
4957
- // Cast intrinsic for `Closure(Closure { dtor_idx: 5450, function: Function { arguments: [Externref], shim_idx: 5451, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4958
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_25347, __wasm_bindgen_func_elem_25364);
5081
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 5625, function: Function { arguments: [Externref], shim_idx: 5626, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
5082
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_26709, __wasm_bindgen_func_elem_26711);
4959
5083
  return addHeapObject(ret);
4960
5084
  },
4961
5085
  __wbindgen_cast_0000000000000011: function(arg0) {
@@ -5036,39 +5160,31 @@ function __wbg_get_imports() {
5036
5160
  };
5037
5161
  }
5038
5162
 
5039
- function __wasm_bindgen_func_elem_19632(arg0, arg1) {
5040
- wasm.__wasm_bindgen_func_elem_19632(arg0, arg1);
5163
+ function __wasm_bindgen_func_elem_20749(arg0, arg1) {
5164
+ wasm.__wasm_bindgen_func_elem_20749(arg0, arg1);
5041
5165
  }
5042
5166
 
5043
- function __wasm_bindgen_func_elem_21578(arg0, arg1) {
5044
- wasm.__wasm_bindgen_func_elem_21578(arg0, arg1);
5167
+ function __wasm_bindgen_func_elem_22773(arg0, arg1) {
5168
+ wasm.__wasm_bindgen_func_elem_22773(arg0, arg1);
5045
5169
  }
5046
5170
 
5047
- function __wasm_bindgen_func_elem_21577(arg0, arg1) {
5048
- const ret = wasm.__wasm_bindgen_func_elem_21577(arg0, arg1);
5171
+ function __wasm_bindgen_func_elem_22772(arg0, arg1) {
5172
+ const ret = wasm.__wasm_bindgen_func_elem_22772(arg0, arg1);
5049
5173
  return takeObject(ret);
5050
5174
  }
5051
5175
 
5052
- function __wasm_bindgen_func_elem_19039(arg0, arg1, arg2) {
5053
- try {
5054
- wasm.__wasm_bindgen_func_elem_19039(arg0, arg1, addBorrowedObject(arg2));
5055
- } finally {
5056
- heap[stack_pointer++] = undefined;
5057
- }
5058
- }
5059
-
5060
- function __wasm_bindgen_func_elem_7893(arg0, arg1, arg2) {
5061
- wasm.__wasm_bindgen_func_elem_7893(arg0, arg1, addHeapObject(arg2));
5176
+ function __wasm_bindgen_func_elem_8469(arg0, arg1, arg2) {
5177
+ wasm.__wasm_bindgen_func_elem_8469(arg0, arg1, addHeapObject(arg2));
5062
5178
  }
5063
5179
 
5064
- function __wasm_bindgen_func_elem_7894(arg0, arg1, arg2) {
5065
- wasm.__wasm_bindgen_func_elem_7894(arg0, arg1, addHeapObject(arg2));
5180
+ function __wasm_bindgen_func_elem_8470(arg0, arg1, arg2) {
5181
+ wasm.__wasm_bindgen_func_elem_8470(arg0, arg1, addHeapObject(arg2));
5066
5182
  }
5067
5183
 
5068
- function __wasm_bindgen_func_elem_7895(arg0, arg1) {
5184
+ function __wasm_bindgen_func_elem_8471(arg0, arg1) {
5069
5185
  try {
5070
5186
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5071
- wasm.__wasm_bindgen_func_elem_7895(retptr, arg0, arg1);
5187
+ wasm.__wasm_bindgen_func_elem_8471(retptr, arg0, arg1);
5072
5188
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5073
5189
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5074
5190
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -5081,10 +5197,10 @@ function __wasm_bindgen_func_elem_7895(arg0, arg1) {
5081
5197
  }
5082
5198
  }
5083
5199
 
5084
- function __wasm_bindgen_func_elem_7891(arg0, arg1) {
5200
+ function __wasm_bindgen_func_elem_8467(arg0, arg1) {
5085
5201
  try {
5086
5202
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5087
- wasm.__wasm_bindgen_func_elem_7891(retptr, arg0, arg1);
5203
+ wasm.__wasm_bindgen_func_elem_8467(retptr, arg0, arg1);
5088
5204
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5089
5205
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5090
5206
  if (r1) {
@@ -5095,16 +5211,24 @@ function __wasm_bindgen_func_elem_7891(arg0, arg1) {
5095
5211
  }
5096
5212
  }
5097
5213
 
5098
- function __wasm_bindgen_func_elem_19633(arg0, arg1, arg2) {
5099
- wasm.__wasm_bindgen_func_elem_19633(arg0, arg1, addHeapObject(arg2));
5214
+ function __wasm_bindgen_func_elem_20156(arg0, arg1, arg2) {
5215
+ try {
5216
+ wasm.__wasm_bindgen_func_elem_20156(arg0, arg1, addBorrowedObject(arg2));
5217
+ } finally {
5218
+ heap[stack_pointer++] = undefined;
5219
+ }
5220
+ }
5221
+
5222
+ function __wasm_bindgen_func_elem_20750(arg0, arg1, arg2) {
5223
+ wasm.__wasm_bindgen_func_elem_20750(arg0, arg1, addHeapObject(arg2));
5100
5224
  }
5101
5225
 
5102
- function __wasm_bindgen_func_elem_25364(arg0, arg1, arg2) {
5103
- wasm.__wasm_bindgen_func_elem_25364(arg0, arg1, addHeapObject(arg2));
5226
+ function __wasm_bindgen_func_elem_26711(arg0, arg1, arg2) {
5227
+ wasm.__wasm_bindgen_func_elem_26711(arg0, arg1, addHeapObject(arg2));
5104
5228
  }
5105
5229
 
5106
- function __wasm_bindgen_func_elem_33507(arg0, arg1, arg2, arg3) {
5107
- wasm.__wasm_bindgen_func_elem_33507(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
5230
+ function __wasm_bindgen_func_elem_35042(arg0, arg1, arg2, arg3) {
5231
+ wasm.__wasm_bindgen_func_elem_35042(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
5108
5232
  }
5109
5233
 
5110
5234