@perspective-dev/viewer 5.4.0 → 5.5.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 (129) hide show
  1. package/dist/cdn/perspective-viewer.js +4 -4
  2. package/dist/cdn/perspective-viewer.js.map +2 -2
  3. package/dist/css/blueprint.css +1 -1
  4. package/dist/css/botanical.css +1 -1
  5. package/dist/css/dracula.css +1 -1
  6. package/dist/css/eggplant.css +1 -1
  7. package/dist/css/gruvbox-dark.css +1 -1
  8. package/dist/css/gruvbox.css +1 -1
  9. package/dist/css/icons.css +1 -1
  10. package/dist/css/intl/ar.css +1 -1
  11. package/dist/css/intl/de.css +1 -1
  12. package/dist/css/intl/es.css +1 -1
  13. package/dist/css/intl/fr.css +1 -1
  14. package/dist/css/intl/ja.css +1 -1
  15. package/dist/css/intl/pt.css +1 -1
  16. package/dist/css/intl/zh.css +1 -1
  17. package/dist/css/intl.css +1 -1
  18. package/dist/css/ledger.css +1 -1
  19. package/dist/css/monokai.css +1 -1
  20. package/dist/css/nord.css +1 -1
  21. package/dist/css/phosphor.css +1 -1
  22. package/dist/css/pro-dark.css +1 -1
  23. package/dist/css/pro.css +1 -1
  24. package/dist/css/solarized-dark.css +1 -1
  25. package/dist/css/solarized.css +1 -1
  26. package/dist/css/themes.css +1 -1
  27. package/dist/css/vaporwave.css +1 -1
  28. package/dist/css/velvet.css +1 -1
  29. package/dist/docs/perspective-docs.json +1 -1
  30. package/dist/esm/perspective-viewer.d.ts +2 -0
  31. package/dist/esm/perspective-viewer.inline.js +9 -9
  32. package/dist/esm/perspective-viewer.inline.js.map +3 -3
  33. package/dist/esm/perspective-viewer.js +4 -4
  34. package/dist/esm/perspective-viewer.js.map +2 -2
  35. package/dist/esm/plugin.d.ts +9 -0
  36. package/dist/esm/ts-rs/AddPanelOptions.d.ts +9 -0
  37. package/dist/esm/ts-rs/GetViewMode.d.ts +4 -0
  38. package/dist/esm/ts-rs/GetViewOptions.d.ts +8 -0
  39. package/dist/esm/ts-rs/RestoreOptions.d.ts +6 -0
  40. package/dist/esm/ts-rs/RestoreWorkspaceOptions.d.ts +9 -0
  41. package/dist/esm/ts-rs/WorkspaceConfigUpdate.d.ts +30 -22
  42. package/dist/wasm/perspective-viewer.d.ts +91 -47
  43. package/dist/wasm/perspective-viewer.js +216 -136
  44. package/dist/wasm/perspective-viewer.wasm +0 -0
  45. package/dist/wasm/perspective-viewer.wasm.d.ts +18 -18
  46. package/package.json +5 -5
  47. package/src/css/column-selector.css +11 -3
  48. package/src/css/column-style.css +162 -0
  49. package/src/css/config-selector.css +1 -1
  50. package/src/css/form/debug.css +9 -0
  51. package/src/css/status-bar.css +11 -0
  52. package/src/css/ui/containers/tabs.css +2 -1
  53. package/src/rust/agent/tools.rs +80 -7
  54. package/src/rust/components/column_selector/active_column.rs +9 -0
  55. package/src/rust/components/column_selector.rs +11 -0
  56. package/src/rust/components/column_settings_sidebar/style_tab/alignment_field.rs +90 -0
  57. package/src/rust/components/column_settings_sidebar/style_tab/font_field.rs +267 -0
  58. package/src/rust/components/column_settings_sidebar/style_tab/primitive_field.rs +1 -1
  59. package/src/rust/components/column_settings_sidebar/style_tab.rs +68 -9
  60. package/src/rust/components/debug_panel.rs +107 -50
  61. package/src/rust/components/main_panel/msg.rs +4 -0
  62. package/src/rust/components/main_panel.rs +14 -0
  63. package/src/rust/components/mod.rs +0 -1
  64. package/src/rust/components/plugin_tab.rs +57 -3
  65. package/src/rust/components/settings_panel.rs +6 -0
  66. package/src/rust/components/status_indicator.rs +4 -0
  67. package/src/rust/components/viewer/panels.rs +3 -0
  68. package/src/rust/components/viewer/render.rs +1 -0
  69. package/src/rust/components/viewer/wiring.rs +10 -1
  70. package/src/rust/config/column_config_schema.rs +312 -8
  71. package/src/rust/config/datetime_column_style.rs +0 -11
  72. package/src/rust/config/mod.rs +0 -2
  73. package/src/rust/config/options.rs +50 -0
  74. package/src/rust/config/workspace_config.rs +69 -24
  75. package/src/rust/custom_elements/viewer.rs +194 -97
  76. package/src/rust/js/plugin.rs +3 -1
  77. package/src/rust/lib.rs +7 -3
  78. package/src/rust/queries/plugin_column_styles.rs +6 -5
  79. package/src/rust/renderer/plugin_config.rs +200 -41
  80. package/src/rust/renderer/plugin_store.rs +2 -1
  81. package/src/rust/renderer/props.rs +5 -0
  82. package/src/rust/renderer.rs +9 -0
  83. package/src/rust/session/props.rs +4 -0
  84. package/src/rust/session.rs +151 -80
  85. package/src/rust/tasks/create_panel.rs +4 -1
  86. package/src/rust/tasks/pipeline.rs +18 -7
  87. package/src/rust/tasks/restore_panel.rs +129 -30
  88. package/src/rust/tasks/send_column_config.rs +3 -0
  89. package/src/rust/tasks/sync_update_panels.rs +147 -67
  90. package/src/rust/tasks/table_lifecycle.rs +7 -1
  91. package/src/rust/ui/containers/tab_list.rs +1 -1
  92. package/src/rust/ui/form/intl_label.rs +4 -23
  93. package/src/rust/ui/portal.rs +1 -0
  94. package/src/rust/utils/css_vars.rs +13 -0
  95. package/src/rust/utils/local_fonts.rs +395 -0
  96. package/src/rust/utils/mod.rs +2 -0
  97. package/src/rust/workspace.rs +12 -0
  98. package/src/svg/status_pending.svg +3 -0
  99. package/src/themes/icons.css +1 -0
  100. package/src/themes/intl/ar.css +20 -7
  101. package/src/themes/intl/de.css +20 -7
  102. package/src/themes/intl/es.css +20 -7
  103. package/src/themes/intl/fr.css +20 -7
  104. package/src/themes/intl/ja.css +20 -7
  105. package/src/themes/intl/pt.css +20 -7
  106. package/src/themes/intl/zh.css +20 -7
  107. package/src/themes/intl.css +20 -7
  108. package/src/ts/perspective-viewer.ts +2 -0
  109. package/src/ts/plugin.ts +9 -0
  110. package/src/ts/ts-rs/AddPanelOptions.ts +10 -0
  111. package/src/ts/ts-rs/{DatetimeColorMode.ts → GetViewMode.ts} +4 -1
  112. package/src/ts/ts-rs/GetViewOptions.ts +7 -0
  113. package/src/ts/ts-rs/RestoreOptions.ts +7 -1
  114. package/src/ts/ts-rs/RestoreWorkspaceOptions.ts +10 -0
  115. package/src/ts/ts-rs/WorkspaceConfigUpdate.ts +31 -20
  116. package/dist/esm/ts-rs/DatetimeColorMode.d.ts +0 -1
  117. package/dist/esm/ts-rs/FormatMode.d.ts +0 -1
  118. package/dist/esm/ts-rs/StringColorMode.d.ts +0 -1
  119. package/src/rust/components/string_column_style.rs +0 -120
  120. package/src/rust/config/datetime_column_style/color_mode.rs +0 -62
  121. package/src/rust/config/string_column_style.rs +0 -135
  122. package/src/ts/ts-rs/FormatMode.ts +0 -3
  123. package/src/ts/ts-rs/StringColorMode.ts +0 -3
  124. /package/dist/wasm/snippets/{perspective-viewer-adc6f3f79141112b → perspective-viewer-ea71a3990cad35d7}/inline0.js +0 -0
  125. /package/dist/wasm/snippets/{perspective-viewer-adc6f3f79141112b → perspective-viewer-ea71a3990cad35d7}/inline1.js +0 -0
  126. /package/dist/wasm/snippets/{perspective-viewer-adc6f3f79141112b → perspective-viewer-ea71a3990cad35d7}/inline2.js +0 -0
  127. /package/dist/wasm/snippets/{perspective-viewer-adc6f3f79141112b → perspective-viewer-ea71a3990cad35d7}/inline3.js +0 -0
  128. /package/dist/wasm/snippets/{perspective-viewer-adc6f3f79141112b → perspective-viewer-ea71a3990cad35d7}/inline4.js +0 -0
  129. /package/dist/wasm/snippets/{perspective-viewer-adc6f3f79141112b → perspective-viewer-ea71a3990cad35d7}/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-adc6f3f79141112b/inline0.js';
3
- import { ClipboardItem } from './snippets/perspective-viewer-adc6f3f79141112b/inline1.js';
4
- import { ResizeObserver } from './snippets/perspective-viewer-adc6f3f79141112b/inline2.js';
5
- import { IntersectionObserver } from './snippets/perspective-viewer-adc6f3f79141112b/inline3.js';
6
- import { bootstrap } from './snippets/perspective-viewer-adc6f3f79141112b/inline4.js';
7
- import { psp } from './snippets/perspective-viewer-adc6f3f79141112b/inline5.js';
2
+ import { define_panel_tab } from './snippets/perspective-viewer-ea71a3990cad35d7/inline0.js';
3
+ import { ClipboardItem } from './snippets/perspective-viewer-ea71a3990cad35d7/inline1.js';
4
+ import { ResizeObserver } from './snippets/perspective-viewer-ea71a3990cad35d7/inline2.js';
5
+ import { IntersectionObserver } from './snippets/perspective-viewer-ea71a3990cad35d7/inline3.js';
6
+ import { bootstrap } from './snippets/perspective-viewer-ea71a3990cad35d7/inline4.js';
7
+ import { psp } from './snippets/perspective-viewer-ea71a3990cad35d7/inline5.js';
8
8
 
9
9
  /**
10
10
  * An instance of a [`Client`] is a connection to a single
@@ -952,11 +952,19 @@ export class PerspectiveViewerElement {
952
952
  *
953
953
  * The element-level `settings` field does not exist on the argument
954
954
  * type (it is shared across the element, not per-panel).
955
+ *
956
+ * # Arguments
957
+ *
958
+ * - `config` - The new panel's initial config, whose `table` is required.
959
+ * - `options.wait_for_table` - when `true`, a `table` no loaded client
960
+ * hosts yet creates the panel empty and pending until the table is
961
+ * created, instead of the default rejection.
955
962
  * @param {ViewerConfigInitial} config
963
+ * @param {AddPanelOptions | null} [options]
956
964
  * @returns {Promise<any>}
957
965
  */
958
- addPanel(config) {
959
- const ret = wasm.perspectiveviewerelement_addPanel(this.__wbg_ptr, addHeapObject(config));
966
+ addPanel(config, options) {
967
+ const ret = wasm.perspectiveviewerelement_addPanel(this.__wbg_ptr, addHeapObject(config), isLikeNone(options) ? 0 : addHeapObject(options));
960
968
  return takeObject(ret);
961
969
  }
962
970
  /**
@@ -1405,26 +1413,45 @@ export class PerspectiveViewerElement {
1405
1413
  return takeObject(ret);
1406
1414
  }
1407
1415
  /**
1408
- * Get the underlying [`View`] for this viewer.
1416
+ * Get a [`View`] for a panel of this viewer, as currently configured by
1417
+ * the user.
1409
1418
  *
1410
- * Use this method to get promgrammatic access to the [`View`] as currently
1411
- * configured by the user, for e.g. serializing as an
1412
- * [Apache Arrow](https://arrow.apache.org/) before passing to another
1413
- * library.
1419
+ * # Arguments
1414
1420
  *
1415
- * The [`View`] returned by this method is owned by the
1416
- * [`PerspectiveViewerElement`] and may be _invalidated_ by
1417
- * [`View::delete`] at any time. Plugins which rely on this [`View`] for
1418
- * their [`HTMLPerspectiveViewerPluginElement::draw`] implementations
1419
- * should treat this condition as a _cancellation_ by silently aborting on
1420
- * "View already deleted" errors from method calls.
1421
+ * - `mode` - which [`View`] to return:
1422
+ * - `"live"` (default) - the panel's own [`View`], which the viewer
1423
+ * replaces on every config change and deletes when auto-paused or
1424
+ * [`PerspectiveViewerElement::delete`]d, so calls on it may fail with
1425
+ * "View already deleted", it must never be deleted by the caller, and
1426
+ * it rejects with `No View for panel "<name>"` while none is bound
1427
+ * (auto-paused or not yet rendered).
1428
+ * - `"clone"` - a new [`View`] built from the panel's effective config
1429
+ * (global filter included), independent of the render lifecycle, which
1430
+ * the caller owns and must [`View::delete`].
1431
+ * - `"auto"` - `"live"` when the panel has a bound [`View`], else
1432
+ * `"clone"`.
1433
+ * - `panel` - the target panel, or the active panel when omitted.
1434
+ *
1435
+ * Plugins which rely on the live [`View`] for their
1436
+ * [`HTMLPerspectiveViewerPluginElement::draw`] implementations should
1437
+ * treat "View already deleted" as a _cancellation_ by silently aborting.
1421
1438
  *
1422
1439
  * # JavaScript Examples
1423
1440
  *
1424
1441
  * ```javascript
1425
1442
  * const view = await viewer.getView();
1426
1443
  * ```
1427
- * @param {PanelOptions | null} [options]
1444
+ *
1445
+ * Export every panel without borrowing the viewer's own [`View`]:
1446
+ *
1447
+ * ```javascript
1448
+ * for (const panel of viewer.getPanelNames()) {
1449
+ * const view = await viewer.getView({ panel, mode: "clone" });
1450
+ * const arrow = await view.to_arrow();
1451
+ * await view.delete();
1452
+ * }
1453
+ * ```
1454
+ * @param {GetViewOptions | null} [options]
1428
1455
  * @returns {Promise<any>}
1429
1456
  */
1430
1457
  getView(options) {
@@ -1689,12 +1716,13 @@ export class PerspectiveViewerElement {
1689
1716
  * - `options.panel` - The panel to target, or the active panel when
1690
1717
  * omitted.
1691
1718
  * - `options.suppress_errors` - when `true`, a failed restore only rejects
1692
- * the returned `Promise`; the error is NOT committed to the viewer's
1693
- * visible error state and the session remains usable. The view config is
1694
- * rolled back to its pre-call value, so a rejected patch cannot re-merge
1695
- * into a later restore. Element-level state the call already applied
1696
- * (theme, title, a plugin swap) is NOT undone — restore a known-good
1697
- * config to recover those exactly.
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.
1723
+ * - `options.wait_for_table` - when `true`, a `table` no loaded client
1724
+ * hosts yet leaves the panel empty and pending until the table is
1725
+ * created, instead of the default error.
1698
1726
  *
1699
1727
  * # JavaScript Examples
1700
1728
  *
@@ -1720,23 +1748,37 @@ export class PerspectiveViewerElement {
1720
1748
  return takeObject(ret);
1721
1749
  }
1722
1750
  /**
1723
- * Restore the ENTIRE element from a [`WorkspaceConfigUpdate`]
1724
- * (`{version, active?, layout, panels, ...}`) —
1725
- * the multi-panel counterpart of [`Self::restore`]. Every existing panel
1726
- * is replaced by the `panels` entries, and the layout tree + master/detail
1727
- * cross-filter state re-applied. Unlike [`Self::restore`], this never
1728
- * falls back to the single-panel path.
1751
+ * Apply a [`WorkspaceConfigUpdate`] to the element — the multi-panel
1752
+ * counterpart of [`Self::restore`] and like it a field-wise update, where
1753
+ * an absent field is unchanged, `null` resets and a value replaces.
1754
+ *
1755
+ * # Arguments
1756
+ *
1757
+ * - `update` - The workspace config update: a [`Self::saveWorkspace`]
1758
+ * token replaces every panel (`panels` is the whole set), while a token
1759
+ * without `panels` keeps them and `layout`, `active` and `masters` name
1760
+ * them by their existing ids.
1761
+ * - `options.wait_for_table` - when `true`, a panel whose `table` no
1762
+ * loaded client hosts yet is created empty and pending until the table
1763
+ * is created, instead of the default error.
1729
1764
  *
1730
1765
  * # JavaScript Examples
1731
1766
  *
1732
1767
  * ```javascript
1733
1768
  * await viewer.restoreWorkspace(await otherViewer.saveWorkspace());
1734
1769
  * ```
1770
+ *
1771
+ * Cross-filter the current panels without re-creating them:
1772
+ *
1773
+ * ```javascript
1774
+ * await viewer.restoreWorkspace({ global_filters: [["Region", "==", "West"]] });
1775
+ * ```
1735
1776
  * @param {WorkspaceConfigUpdate} update
1777
+ * @param {RestoreWorkspaceOptions | null} [options]
1736
1778
  * @returns {Promise<void>}
1737
1779
  */
1738
- restoreWorkspace(update) {
1739
- const ret = wasm.perspectiveviewerelement_restoreWorkspace(this.__wbg_ptr, addHeapObject(update));
1780
+ restoreWorkspace(update, options) {
1781
+ const ret = wasm.perspectiveviewerelement_restoreWorkspace(this.__wbg_ptr, addHeapObject(update), isLikeNone(options) ? 0 : addHeapObject(options));
1740
1782
  return takeObject(ret);
1741
1783
  }
1742
1784
  /**
@@ -3180,7 +3222,7 @@ function __wbg_get_imports() {
3180
3222
  const ret = getObject(arg0).body;
3181
3223
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
3182
3224
  },
3183
- __wbg_bootstrap_e8763006615dfdad: function(arg0, arg1, arg2, arg3, arg4, arg5) {
3225
+ __wbg_bootstrap_1b08e5d9ee1fdba2: function(arg0, arg1, arg2, arg3, arg4, arg5) {
3184
3226
  var v0 = getCachedStringFromWasm0(arg1, arg2);
3185
3227
  var v1 = getCachedStringFromWasm0(arg3, arg4);
3186
3228
  const ret = bootstrap(getObject(arg0), v0, v1, takeObject(arg5));
@@ -3202,12 +3244,12 @@ function __wbg_get_imports() {
3202
3244
  const ret = getObject(arg0).__yew_subtree_cache_key;
3203
3245
  return isLikeNone(ret) ? 0x100000001 : (ret) >>> 0;
3204
3246
  },
3205
- __wbg_calculatePath_fc87569fb5724c58: function(arg0, arg1, arg2) {
3247
+ __wbg_calculatePath_68a0dcac4df61563: function(arg0, arg1, arg2) {
3206
3248
  var v0 = getCachedStringFromWasm0(arg1, arg2);
3207
3249
  const ret = getObject(arg0).calculatePath(v0);
3208
3250
  return addHeapObject(ret);
3209
3251
  },
3210
- __wbg_calculatePresizePaths_c151a4657bd00462: function(arg0) {
3252
+ __wbg_calculatePresizePaths_e85f027f3cf6c24f: function(arg0) {
3211
3253
  const ret = getObject(arg0).calculatePresizePaths();
3212
3254
  return addHeapObject(ret);
3213
3255
  },
@@ -3254,7 +3296,7 @@ function __wbg_get_imports() {
3254
3296
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3255
3297
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3256
3298
  },
3257
- __wbg_clear_9b05a7a03c3630ae: function() { return handleError(function (arg0) {
3299
+ __wbg_clear_5097eee17f29d84a: function() { return handleError(function (arg0) {
3258
3300
  const ret = getObject(arg0).clear();
3259
3301
  return addHeapObject(ret);
3260
3302
  }, arguments); },
@@ -3301,7 +3343,7 @@ function __wbg_get_imports() {
3301
3343
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3302
3344
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3303
3345
  },
3304
- __wbg_column_config_schema_8f4ac6df501f6073: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
3346
+ __wbg_column_config_schema_c599517f07811415: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
3305
3347
  var v0 = getCachedStringFromWasm0(arg1, arg2);
3306
3348
  var v1 = getCachedStringFromWasm0(arg3, arg4);
3307
3349
  var v2 = getCachedStringFromWasm0(arg5, arg6);
@@ -3321,7 +3363,7 @@ function __wbg_get_imports() {
3321
3363
  const ret = getObject(arg0).contains(v0);
3322
3364
  return ret;
3323
3365
  },
3324
- __wbg_contentRect_1aa8a582e70c2f26: function(arg0) {
3366
+ __wbg_contentRect_d3e66d825ac87d1a: function(arg0) {
3325
3367
  const ret = getObject(arg0).contentRect;
3326
3368
  return addHeapObject(ret);
3327
3369
  },
@@ -3384,7 +3426,7 @@ function __wbg_get_imports() {
3384
3426
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
3385
3427
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3386
3428
  }, arguments); },
3387
- __wbg_define_panel_tab_2ff97a4801ba3043: function(arg0, arg1) {
3429
+ __wbg_define_panel_tab_bc5b2b1cee51481e: function(arg0, arg1) {
3388
3430
  var v0 = getCachedStringFromWasm0(arg0, arg1);
3389
3431
  define_panel_tab(v0);
3390
3432
  },
@@ -3392,10 +3434,10 @@ function __wbg_get_imports() {
3392
3434
  var v0 = getCachedStringFromWasm0(arg1, arg2);
3393
3435
  delete getObject(arg0)[v0];
3394
3436
  },
3395
- __wbg_delete_f8bbbf3664089bb5: function(arg0) {
3437
+ __wbg_delete_ebe3bcf56af4f5d7: function(arg0) {
3396
3438
  getObject(arg0).delete();
3397
3439
  },
3398
- __wbg_deselect_e786fee7f3840ccd: function() { return handleError(function (arg0) {
3440
+ __wbg_deselect_1bc31a1c59a28bd4: function() { return handleError(function (arg0) {
3399
3441
  const ret = getObject(arg0).deselect();
3400
3442
  return addHeapObject(ret);
3401
3443
  }, arguments); },
@@ -3415,7 +3457,7 @@ function __wbg_get_imports() {
3415
3457
  const ret = getObject(arg0).done;
3416
3458
  return ret;
3417
3459
  },
3418
- __wbg_draw_f75c5684c591b916: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3460
+ __wbg_draw_968203d49a1d1979: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3419
3461
  const ret = getObject(arg0).draw(View.__wrap(arg1), arg2 === 0x100000001 ? undefined : arg2, arg3 === 0x100000001 ? undefined : arg3, arg4 !== 0);
3420
3462
  return addHeapObject(ret);
3421
3463
  }, arguments); },
@@ -3484,6 +3526,11 @@ function __wbg_get_imports() {
3484
3526
  const ret = getObject(arg0).getComputedStyle(getObject(arg1));
3485
3527
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
3486
3528
  }, arguments); },
3529
+ __wbg_getContext_2a5764d48600bc43: function() { return handleError(function (arg0, arg1, arg2) {
3530
+ var v0 = getCachedStringFromWasm0(arg1, arg2);
3531
+ const ret = getObject(arg0).getContext(v0);
3532
+ return isLikeNone(ret) ? 0 : addHeapObject(ret);
3533
+ }, arguments); },
3487
3534
  __wbg_getEntriesByName_02488cff0bc7581c: function(arg0, arg1, arg2, arg3, arg4) {
3488
3535
  var v0 = getCachedStringFromWasm0(arg1, arg2);
3489
3536
  var v1 = getCachedStringFromWasm0(arg3, arg4);
@@ -3554,7 +3601,7 @@ function __wbg_get_imports() {
3554
3601
  const ret = getObject(arg0)[arg1 >>> 0];
3555
3602
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
3556
3603
  },
3557
- __wbg_get_static_config_cfb43ffa38301e13: function(arg0) {
3604
+ __wbg_get_static_config_ed2317f8b449523c: function(arg0) {
3558
3605
  const ret = getObject(arg0).get_static_config();
3559
3606
  return addHeapObject(ret);
3560
3607
  },
@@ -3624,7 +3671,7 @@ function __wbg_get_imports() {
3624
3671
  const ret = getObject(arg0).insertBefore(getObject(arg1), getObject(arg2));
3625
3672
  return addHeapObject(ret);
3626
3673
  }, arguments); },
3627
- __wbg_insertPanel_c846a8126064503d: function(arg0, arg1, arg2, arg3, arg4) {
3674
+ __wbg_insertPanel_32ee46d3a844c385: function(arg0, arg1, arg2, arg3, arg4) {
3628
3675
  var v0 = getCachedStringFromWasm0(arg1, arg2);
3629
3676
  const ret = getObject(arg0).insertPanel(v0, takeObject(arg3), takeObject(arg4));
3630
3677
  return addHeapObject(ret);
@@ -3649,6 +3696,16 @@ function __wbg_get_imports() {
3649
3696
  const ret = result;
3650
3697
  return ret;
3651
3698
  },
3699
+ __wbg_instanceof_CanvasRenderingContext2d_4bb052fd1c3d134d: function(arg0) {
3700
+ let result;
3701
+ try {
3702
+ result = getObject(arg0) instanceof CanvasRenderingContext2D;
3703
+ } catch (_) {
3704
+ result = false;
3705
+ }
3706
+ const ret = result;
3707
+ return ret;
3708
+ },
3652
3709
  __wbg_instanceof_CssStyleRule_23e59108346af0df: function(arg0) {
3653
3710
  let result;
3654
3711
  try {
@@ -3709,6 +3766,16 @@ function __wbg_get_imports() {
3709
3766
  const ret = result;
3710
3767
  return ret;
3711
3768
  },
3769
+ __wbg_instanceof_HtmlCanvasElement_3f2f6e1edb1c9792: function(arg0) {
3770
+ let result;
3771
+ try {
3772
+ result = getObject(arg0) instanceof HTMLCanvasElement;
3773
+ } catch (_) {
3774
+ result = false;
3775
+ }
3776
+ const ret = result;
3777
+ return ret;
3778
+ },
3712
3779
  __wbg_instanceof_HtmlElement_5abfac207260fd6f: function(arg0) {
3713
3780
  let result;
3714
3781
  try {
@@ -3831,7 +3898,7 @@ function __wbg_get_imports() {
3831
3898
  const ret = getObject(arg0).isConnected;
3832
3899
  return ret;
3833
3900
  },
3834
- __wbg_isIntersecting_23092bafa808f609: function(arg0) {
3901
+ __wbg_isIntersecting_ce17b70bafc1c91e: function(arg0) {
3835
3902
  const ret = getObject(arg0).isIntersecting;
3836
3903
  return ret;
3837
3904
  },
@@ -3946,10 +4013,15 @@ function __wbg_get_imports() {
3946
4013
  const ret = getObject(arg0).matches(v0);
3947
4014
  return ret;
3948
4015
  }, arguments); },
3949
- __wbg_maximize_c7b5bb75bfc1c4e6: function(arg0, arg1, arg2) {
4016
+ __wbg_maximize_36e392129291faab: function(arg0, arg1, arg2) {
3950
4017
  var v0 = getCachedStringFromWasm0(arg1, arg2);
3951
4018
  getObject(arg0).maximize(v0);
3952
4019
  },
4020
+ __wbg_measureText_9d64a92333bd05ee: function() { return handleError(function (arg0, arg1, arg2) {
4021
+ var v0 = getCachedStringFromWasm0(arg1, arg2);
4022
+ const ret = getObject(arg0).measureText(v0);
4023
+ return addHeapObject(ret);
4024
+ }, arguments); },
3953
4025
  __wbg_measure_288b48c082eae0fe: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3954
4026
  var v0 = getCachedStringFromWasm0(arg1, arg2);
3955
4027
  var v1 = getCachedStringFromWasm0(arg3, arg4);
@@ -3959,7 +4031,7 @@ function __wbg_get_imports() {
3959
4031
  const ret = getObject(arg0).message;
3960
4032
  return addHeapObject(ret);
3961
4033
  },
3962
- __wbg_minimize_186314a6054fcd81: function(arg0) {
4034
+ __wbg_minimize_84e9d183a39f9086: function(arg0) {
3963
4035
  getObject(arg0).minimize();
3964
4036
  },
3965
4037
  __wbg_namespaceURI_86e2062c65f0f341: function(arg0, arg1) {
@@ -3973,8 +4045,8 @@ function __wbg_get_imports() {
3973
4045
  const ret = getObject(arg0).navigator;
3974
4046
  return addHeapObject(ret);
3975
4047
  },
3976
- __wbg_new_0281fff5a8ee0806: function(arg0) {
3977
- const ret = new ClipboardItem(getObject(arg0));
4048
+ __wbg_new_0b4a9c029472d45e: function(arg0) {
4049
+ const ret = new ResizeObserver(getObject(arg0));
3978
4050
  return addHeapObject(ret);
3979
4051
  },
3980
4052
  __wbg_new_16c83877745f8d12: function() { return handleError(function (arg0, arg1) {
@@ -3986,6 +4058,10 @@ function __wbg_get_imports() {
3986
4058
  const ret = new CSSStyleSheet();
3987
4059
  return addHeapObject(ret);
3988
4060
  }, arguments); },
4061
+ __wbg_new_24455da2df1281e8: function(arg0) {
4062
+ const ret = new IntersectionObserver(getObject(arg0));
4063
+ return addHeapObject(ret);
4064
+ },
3989
4065
  __wbg_new_245cd5c49157e602: function(arg0) {
3990
4066
  const ret = new Date(getObject(arg0));
3991
4067
  return addHeapObject(ret);
@@ -3994,10 +4070,6 @@ function __wbg_get_imports() {
3994
4070
  const ret = new TextDecoder();
3995
4071
  return addHeapObject(ret);
3996
4072
  }, arguments); },
3997
- __wbg_new_30ce6a5d63e147bd: function(arg0) {
3998
- const ret = new ResizeObserver(getObject(arg0));
3999
- return addHeapObject(ret);
4000
- },
4001
4073
  __wbg_new_361308b2356cecd0: function() {
4002
4074
  const ret = new Object();
4003
4075
  return addHeapObject(ret);
@@ -4035,7 +4107,7 @@ function __wbg_get_imports() {
4035
4107
  const a = state0.a;
4036
4108
  state0.a = 0;
4037
4109
  try {
4038
- return __wasm_bindgen_func_elem_33110(a, state0.b, arg0, arg1);
4110
+ return __wasm_bindgen_func_elem_33477(a, state0.b, arg0, arg1);
4039
4111
  } finally {
4040
4112
  state0.a = a;
4041
4113
  }
@@ -4054,8 +4126,8 @@ function __wbg_get_imports() {
4054
4126
  const ret = new Intl.DateTimeFormat(getObject(arg0), getObject(arg1));
4055
4127
  return addHeapObject(ret);
4056
4128
  },
4057
- __wbg_new_d42be098c500846c: function(arg0) {
4058
- const ret = new IntersectionObserver(getObject(arg0));
4129
+ __wbg_new_c20487250510f781: function(arg0) {
4130
+ const ret = new ClipboardItem(getObject(arg0));
4059
4131
  return addHeapObject(ret);
4060
4132
  },
4061
4133
  __wbg_new_dca287b076112a51: function() {
@@ -4121,10 +4193,10 @@ function __wbg_get_imports() {
4121
4193
  const ret = getObject(arg0).now();
4122
4194
  return ret;
4123
4195
  },
4124
- __wbg_observe_5217f79856e45ec8: function(arg0, arg1) {
4196
+ __wbg_observe_0e48713016063f2e: function(arg0, arg1) {
4125
4197
  getObject(arg0).observe(getObject(arg1));
4126
4198
  },
4127
- __wbg_observe_fb2fac468b40610f: function(arg0, arg1) {
4199
+ __wbg_observe_4e8c4a5bcaff0c4c: function(arg0, arg1) {
4128
4200
  getObject(arg0).observe(getObject(arg1));
4129
4201
  },
4130
4202
  __wbg_of_f915f7cd925b21a5: function(arg0) {
@@ -4172,8 +4244,8 @@ function __wbg_get_imports() {
4172
4244
  const ret = getObject(arg0).performance;
4173
4245
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4174
4246
  },
4175
- __wbg_plugin_config_schema_1765e319990561b1: function() { return handleError(function (arg0, arg1) {
4176
- const ret = getObject(arg0).plugin_config_schema(getObject(arg1));
4247
+ __wbg_plugin_config_schema_b09832c2446e51de: function() { return handleError(function (arg0, arg1, arg2) {
4248
+ const ret = getObject(arg0).plugin_config_schema(getObject(arg1), getObject(arg2));
4177
4249
  return addHeapObject(ret);
4178
4250
  }, arguments); },
4179
4251
  __wbg_pointerId_466b1bdcaf2fe835: function(arg0) {
@@ -4187,7 +4259,7 @@ function __wbg_get_imports() {
4187
4259
  __wbg_prepend_12ed960547d9dfe1: function() { return handleError(function (arg0, arg1) {
4188
4260
  getObject(arg0).prepend(getObject(arg1));
4189
4261
  }, arguments); },
4190
- __wbg_presize_c53c1bace3e54646: function() { return handleError(function (arg0, arg1, arg2) {
4262
+ __wbg_presize_023f074e1d5096b2: function() { return handleError(function (arg0, arg1, arg2) {
4191
4263
  const ret = getObject(arg0).presize(arg1, arg2);
4192
4264
  return addHeapObject(ret);
4193
4265
  }, arguments); },
@@ -4238,7 +4310,7 @@ function __wbg_get_imports() {
4238
4310
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4239
4311
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4240
4312
  },
4241
- __wbg_realCoordinates_9678e8697e203127: function(arg0, arg1) {
4313
+ __wbg_realCoordinates_d04b4312df7a1abf: function(arg0, arg1) {
4242
4314
  const ret = getObject(arg0).realCoordinates(getObject(arg1));
4243
4315
  return addHeapObject(ret);
4244
4316
  },
@@ -4272,7 +4344,7 @@ function __wbg_get_imports() {
4272
4344
  var v0 = getCachedStringFromWasm0(arg1, arg2);
4273
4345
  getObject(arg0).removeEventListener(v0, getObject(arg3));
4274
4346
  }, arguments); },
4275
- __wbg_removePanel_6c494a1913d24031: function(arg0, arg1, arg2) {
4347
+ __wbg_removePanel_9b5a6cca365472b1: function(arg0, arg1, arg2) {
4276
4348
  var v0 = getCachedStringFromWasm0(arg1, arg2);
4277
4349
  const ret = getObject(arg0).removePanel(v0);
4278
4350
  return addHeapObject(ret);
@@ -4292,7 +4364,7 @@ function __wbg_get_imports() {
4292
4364
  var v0 = getCachedStringFromWasm0(arg1, arg2);
4293
4365
  getObject(arg0).remove(v0);
4294
4366
  }, arguments); },
4295
- __wbg_render_07a66c356e88ff92: function() { return handleError(function (arg0, arg1, arg2) {
4367
+ __wbg_render_99d8e37b0c6356aa: function() { return handleError(function (arg0, arg1, arg2) {
4296
4368
  const ret = getObject(arg0).render(View.__wrap(arg1), takeObject(arg2));
4297
4369
  return addHeapObject(ret);
4298
4370
  }, arguments); },
@@ -4304,7 +4376,7 @@ function __wbg_get_imports() {
4304
4376
  const ret = getObject(arg0).requestAnimationFrame(getObject(arg1));
4305
4377
  return ret;
4306
4378
  }, arguments); },
4307
- __wbg_resize_73d9682be26c1331: function() { return handleError(function (arg0) {
4379
+ __wbg_resize_befba8b36d66d606: function() { return handleError(function (arg0) {
4308
4380
  const ret = getObject(arg0).resize();
4309
4381
  return addHeapObject(ret);
4310
4382
  }, arguments); },
@@ -4316,30 +4388,30 @@ function __wbg_get_imports() {
4316
4388
  const ret = getObject(arg0).resolvedOptions();
4317
4389
  return addHeapObject(ret);
4318
4390
  },
4319
- __wbg_restorePhysics_422e29851ef622f0: function(arg0, arg1) {
4391
+ __wbg_restorePhysics_748a04ff66d464c8: function(arg0, arg1) {
4320
4392
  getObject(arg0).restorePhysics(getObject(arg1));
4321
4393
  },
4322
- __wbg_restoreSync_441eb84e6826e33d: function(arg0, arg1) {
4394
+ __wbg_restoreSync_26f73ff8fe9edf20: function(arg0, arg1) {
4323
4395
  getObject(arg0).restoreSync(getObject(arg1));
4324
4396
  },
4325
- __wbg_restore_0af4bef8aef7ff2f: function() { return handleError(function (arg0, arg1, arg2) {
4397
+ __wbg_restore_a4c0f3727e943cf6: function() { return handleError(function (arg0, arg1, arg2) {
4326
4398
  getObject(arg0).restore(getObject(arg1), getObject(arg2));
4327
4399
  }, arguments); },
4328
- __wbg_restyle_3d21bdb1678b1eac: function(arg0) {
4400
+ __wbg_restyle_213f6d176c94f182: function(arg0) {
4329
4401
  getObject(arg0).restyle();
4330
4402
  },
4331
- __wbg_resumeResize_e1d950e66c409e97: function(arg0) {
4403
+ __wbg_resumeResize_5dce4b0072855629: function(arg0) {
4332
4404
  getObject(arg0).resumeResize();
4333
4405
  },
4334
4406
  __wbg_right_154af6c2b1bf0c89: function(arg0) {
4335
4407
  const ret = getObject(arg0).right;
4336
4408
  return ret;
4337
4409
  },
4338
- __wbg_run_a7d22113de2ff7d8: function() { return handleError(function (arg0, arg1) {
4410
+ __wbg_run_26ff8525c6787d9c: function() { return handleError(function (arg0, arg1) {
4339
4411
  const ret = getObject(arg0).run(getObject(arg1));
4340
4412
  return addHeapObject(ret);
4341
4413
  }, arguments); },
4342
- __wbg_save_afc0f7d8bdb36c40: function(arg0) {
4414
+ __wbg_save_7116a6af623b3ae7: function(arg0) {
4343
4415
  const ret = getObject(arg0).save();
4344
4416
  return addHeapObject(ret);
4345
4417
  },
@@ -4359,7 +4431,7 @@ function __wbg_get_imports() {
4359
4431
  const ret = getObject(arg0).scrollTop;
4360
4432
  return ret;
4361
4433
  },
4362
- __wbg_select_ec337078dc3cebb4: function(arg0, arg1, arg2) {
4434
+ __wbg_select_c652ac9a2ad5048b: function(arg0, arg1, arg2) {
4363
4435
  var v0 = getCachedStringFromWasm0(arg1, arg2);
4364
4436
  const ret = getObject(arg0).select(v0);
4365
4437
  return addHeapObject(ret);
@@ -4469,6 +4541,10 @@ function __wbg_get_imports() {
4469
4541
  var v1 = getCachedStringFromWasm0(arg3, arg4);
4470
4542
  getObject(arg0)[v0] = v1;
4471
4543
  }, arguments); },
4544
+ __wbg_set_font_575685c8f7e56957: function(arg0, arg1, arg2) {
4545
+ var v0 = getCachedStringFromWasm0(arg1, arg2);
4546
+ getObject(arg0).font = v0;
4547
+ },
4472
4548
  __wbg_set_headers_cfc5f4b2c1f20549: function(arg0, arg1) {
4473
4549
  getObject(arg0).headers = getObject(arg1);
4474
4550
  },
@@ -4578,7 +4654,7 @@ function __wbg_get_imports() {
4578
4654
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
4579
4655
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
4580
4656
  },
4581
- __wbg_static_accessor_PSP_841427c4ac73a51d: function() {
4657
+ __wbg_static_accessor_PSP_e1c27ff430710145: function() {
4582
4658
  const ret = psp;
4583
4659
  return addHeapObject(ret);
4584
4660
  },
@@ -4628,7 +4704,7 @@ function __wbg_get_imports() {
4628
4704
  const ret = getObject(arg0).__yew_subtree_id;
4629
4705
  return isLikeNone(ret) ? 0x100000001 : (ret) >>> 0;
4630
4706
  },
4631
- __wbg_supportedValuesOf_089aeb7f9520e5c2: function(arg0) {
4707
+ __wbg_supportedValuesOf_29fc15384bbb4f0f: function(arg0) {
4632
4708
  const ret = Intl.supportedValuesOf(getObject(arg0));
4633
4709
  return addHeapObject(ret);
4634
4710
  },
@@ -4699,13 +4775,13 @@ function __wbg_get_imports() {
4699
4775
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4700
4776
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4701
4777
  },
4702
- __wbg_unobserve_e0d1061312671774: function(arg0, arg1) {
4778
+ __wbg_unobserve_ca92ecf9aaee9946: function(arg0, arg1) {
4703
4779
  getObject(arg0).unobserve(getObject(arg1));
4704
4780
  },
4705
- __wbg_unobserve_fe0bb66ce6935f9c: function(arg0, arg1) {
4781
+ __wbg_unobserve_fe4b3587da57a8b6: function(arg0, arg1) {
4706
4782
  getObject(arg0).unobserve(getObject(arg1));
4707
4783
  },
4708
- __wbg_update_b674fa9e7c8afd2f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
4784
+ __wbg_update_36bd0c0c30fde1bf: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
4709
4785
  const ret = getObject(arg0).update(View.__wrap(arg1), arg2 === 0x100000001 ? undefined : arg2, arg3 === 0x100000001 ? undefined : arg3, arg4 !== 0);
4710
4786
  return addHeapObject(ret);
4711
4787
  }, arguments); },
@@ -4779,6 +4855,10 @@ function __wbg_get_imports() {
4779
4855
  const ret = getObject(arg0).width;
4780
4856
  return ret;
4781
4857
  },
4858
+ __wbg_width_9bbf873307a2ac4e: function(arg0) {
4859
+ const ret = getObject(arg0).width;
4860
+ return ret;
4861
+ },
4782
4862
  __wbg_width_ae46cb8e98ee102f: function(arg0) {
4783
4863
  const ret = getObject(arg0).width;
4784
4864
  return ret;
@@ -4788,83 +4868,83 @@ function __wbg_get_imports() {
4788
4868
  return addHeapObject(ret);
4789
4869
  },
4790
4870
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
4791
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4753, function: Function { arguments: [Ref(NamedExternref("Event"))], shim_idx: 4755, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
4792
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_18575, __wasm_bindgen_func_elem_18694);
4871
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4786, function: Function { arguments: [Ref(NamedExternref("Event"))], shim_idx: 4788, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
4872
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_18885, __wasm_bindgen_func_elem_19005);
4793
4873
  return addHeapObject(ret);
4794
4874
  },
4795
4875
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
4796
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4837, function: Function { arguments: [NamedExternref("Event")], shim_idx: 4838, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4797
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_19286, __wasm_bindgen_func_elem_19291);
4876
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 48, function: Function { arguments: [Externref], shim_idx: 90, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
4877
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4479, __wasm_bindgen_func_elem_7877);
4798
4878
  return addHeapObject(ret);
4799
4879
  },
4800
4880
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
4801
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4837, function: Function { arguments: [], shim_idx: 4839, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4802
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_19286, __wasm_bindgen_func_elem_19290);
4881
+ // 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`.
4882
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4479, __wasm_bindgen_func_elem_7878);
4803
4883
  return addHeapObject(ret);
4804
4884
  },
4805
4885
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
4806
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4853, function: Function { arguments: [], shim_idx: 4870, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: false }) -> Externref`.
4807
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_20199, __wasm_bindgen_func_elem_21238);
4886
+ // 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`.
4887
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4479, __wasm_bindgen_func_elem_7878);
4808
4888
  return addHeapObject(ret);
4809
4889
  },
4810
4890
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
4811
- // Cast intrinsic for `Closure(Closure { dtor_idx: 4853, function: Function { arguments: [], shim_idx: 4871, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
4812
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_20199, __wasm_bindgen_func_elem_21239);
4891
+ // 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`.
4892
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4479, __wasm_bindgen_func_elem_7878);
4813
4893
  return addHeapObject(ret);
4814
4894
  },
4815
4895
  __wbindgen_cast_0000000000000006: function(arg0, arg1) {
4816
- // Cast intrinsic for `Closure(Closure { dtor_idx: 49, function: Function { arguments: [Externref], shim_idx: 89, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
4817
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4417, __wasm_bindgen_func_elem_7737);
4896
+ // 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`.
4897
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4479, __wasm_bindgen_func_elem_7878);
4818
4898
  return addHeapObject(ret);
4819
4899
  },
4820
4900
  __wbindgen_cast_0000000000000007: function(arg0, arg1) {
4821
- // Cast intrinsic for `Closure(Closure { dtor_idx: 49, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 91, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4822
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4417, __wasm_bindgen_func_elem_7738);
4901
+ // 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`.
4902
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4479, __wasm_bindgen_func_elem_7877);
4823
4903
  return addHeapObject(ret);
4824
4904
  },
4825
4905
  __wbindgen_cast_0000000000000008: function(arg0, arg1) {
4826
- // Cast intrinsic for `Closure(Closure { dtor_idx: 49, function: Function { arguments: [NamedExternref("DragEvent")], shim_idx: 91, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4827
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4417, __wasm_bindgen_func_elem_7738);
4906
+ // 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`.
4907
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4479, __wasm_bindgen_func_elem_7878);
4828
4908
  return addHeapObject(ret);
4829
4909
  },
4830
4910
  __wbindgen_cast_0000000000000009: function(arg0, arg1) {
4831
- // Cast intrinsic for `Closure(Closure { dtor_idx: 49, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx: 91, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4832
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4417, __wasm_bindgen_func_elem_7738);
4911
+ // 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`.
4912
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4479, __wasm_bindgen_func_elem_7878);
4833
4913
  return addHeapObject(ret);
4834
4914
  },
4835
4915
  __wbindgen_cast_000000000000000a: function(arg0, arg1) {
4836
- // Cast intrinsic for `Closure(Closure { dtor_idx: 49, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 91, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4837
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4417, __wasm_bindgen_func_elem_7738);
4916
+ // 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`.
4917
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4479, __wasm_bindgen_func_elem_7879);
4838
4918
  return addHeapObject(ret);
4839
4919
  },
4840
4920
  __wbindgen_cast_000000000000000b: function(arg0, arg1) {
4841
- // Cast intrinsic for `Closure(Closure { dtor_idx: 49, function: Function { arguments: [NamedExternref("MouseEvent")], shim_idx: 89, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
4842
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4417, __wasm_bindgen_func_elem_7737);
4921
+ // 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`.
4922
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4479, __wasm_bindgen_func_elem_7875);
4843
4923
  return addHeapObject(ret);
4844
4924
  },
4845
4925
  __wbindgen_cast_000000000000000c: function(arg0, arg1) {
4846
- // Cast intrinsic for `Closure(Closure { dtor_idx: 49, function: Function { arguments: [NamedExternref("MouseEvent")], shim_idx: 91, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4847
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4417, __wasm_bindgen_func_elem_7738);
4926
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4870, function: Function { arguments: [NamedExternref("Event")], shim_idx: 4871, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4927
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_19596, __wasm_bindgen_func_elem_19601);
4848
4928
  return addHeapObject(ret);
4849
4929
  },
4850
4930
  __wbindgen_cast_000000000000000d: function(arg0, arg1) {
4851
- // Cast intrinsic for `Closure(Closure { dtor_idx: 49, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 91, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4852
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4417, __wasm_bindgen_func_elem_7738);
4931
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4870, function: Function { arguments: [], shim_idx: 4872, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4932
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_19596, __wasm_bindgen_func_elem_19600);
4853
4933
  return addHeapObject(ret);
4854
4934
  },
4855
4935
  __wbindgen_cast_000000000000000e: function(arg0, arg1) {
4856
- // Cast intrinsic for `Closure(Closure { dtor_idx: 49, function: Function { arguments: [], shim_idx: 90, ret: Result(Externref), inner_ret: Some(Result(Externref)) }, mutable: false }) -> Externref`.
4857
- const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4417, __wasm_bindgen_func_elem_7739);
4936
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4887, function: Function { arguments: [], shim_idx: 4902, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: false }) -> Externref`.
4937
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_20506, __wasm_bindgen_func_elem_21545);
4858
4938
  return addHeapObject(ret);
4859
4939
  },
4860
4940
  __wbindgen_cast_000000000000000f: function(arg0, arg1) {
4861
- // Cast intrinsic for `Closure(Closure { dtor_idx: 49, function: Function { arguments: [], shim_idx: 92, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
4862
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4417, __wasm_bindgen_func_elem_7735);
4941
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 4887, function: Function { arguments: [], shim_idx: 4903, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
4942
+ const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_20506, __wasm_bindgen_func_elem_21546);
4863
4943
  return addHeapObject(ret);
4864
4944
  },
4865
4945
  __wbindgen_cast_0000000000000010: function(arg0, arg1) {
4866
- // Cast intrinsic for `Closure(Closure { dtor_idx: 5415, function: Function { arguments: [Externref], shim_idx: 5416, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4867
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_24952, __wasm_bindgen_func_elem_24969);
4946
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 5447, function: Function { arguments: [Externref], shim_idx: 5448, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4947
+ const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_25319, __wasm_bindgen_func_elem_25336);
4868
4948
  return addHeapObject(ret);
4869
4949
  },
4870
4950
  __wbindgen_cast_0000000000000011: function(arg0) {
@@ -4945,43 +5025,39 @@ function __wbg_get_imports() {
4945
5025
  };
4946
5026
  }
4947
5027
 
4948
- function __wasm_bindgen_func_elem_19290(arg0, arg1) {
4949
- wasm.__wasm_bindgen_func_elem_19290(arg0, arg1);
5028
+ function __wasm_bindgen_func_elem_19600(arg0, arg1) {
5029
+ wasm.__wasm_bindgen_func_elem_19600(arg0, arg1);
4950
5030
  }
4951
5031
 
4952
- function __wasm_bindgen_func_elem_21239(arg0, arg1) {
4953
- wasm.__wasm_bindgen_func_elem_21239(arg0, arg1);
5032
+ function __wasm_bindgen_func_elem_21546(arg0, arg1) {
5033
+ wasm.__wasm_bindgen_func_elem_21546(arg0, arg1);
4954
5034
  }
4955
5035
 
4956
- function __wasm_bindgen_func_elem_21238(arg0, arg1) {
4957
- const ret = wasm.__wasm_bindgen_func_elem_21238(arg0, arg1);
5036
+ function __wasm_bindgen_func_elem_21545(arg0, arg1) {
5037
+ const ret = wasm.__wasm_bindgen_func_elem_21545(arg0, arg1);
4958
5038
  return takeObject(ret);
4959
5039
  }
4960
5040
 
4961
- function __wasm_bindgen_func_elem_18694(arg0, arg1, arg2) {
5041
+ function __wasm_bindgen_func_elem_19005(arg0, arg1, arg2) {
4962
5042
  try {
4963
- wasm.__wasm_bindgen_func_elem_18694(arg0, arg1, addBorrowedObject(arg2));
5043
+ wasm.__wasm_bindgen_func_elem_19005(arg0, arg1, addBorrowedObject(arg2));
4964
5044
  } finally {
4965
5045
  heap[stack_pointer++] = undefined;
4966
5046
  }
4967
5047
  }
4968
5048
 
4969
- function __wasm_bindgen_func_elem_19291(arg0, arg1, arg2) {
4970
- wasm.__wasm_bindgen_func_elem_19291(arg0, arg1, addHeapObject(arg2));
5049
+ function __wasm_bindgen_func_elem_7877(arg0, arg1, arg2) {
5050
+ wasm.__wasm_bindgen_func_elem_7877(arg0, arg1, addHeapObject(arg2));
4971
5051
  }
4972
5052
 
4973
- function __wasm_bindgen_func_elem_7737(arg0, arg1, arg2) {
4974
- wasm.__wasm_bindgen_func_elem_7737(arg0, arg1, addHeapObject(arg2));
5053
+ function __wasm_bindgen_func_elem_7878(arg0, arg1, arg2) {
5054
+ wasm.__wasm_bindgen_func_elem_7878(arg0, arg1, addHeapObject(arg2));
4975
5055
  }
4976
5056
 
4977
- function __wasm_bindgen_func_elem_7738(arg0, arg1, arg2) {
4978
- wasm.__wasm_bindgen_func_elem_7738(arg0, arg1, addHeapObject(arg2));
4979
- }
4980
-
4981
- function __wasm_bindgen_func_elem_7739(arg0, arg1) {
5057
+ function __wasm_bindgen_func_elem_7879(arg0, arg1) {
4982
5058
  try {
4983
5059
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
4984
- wasm.__wasm_bindgen_func_elem_7739(retptr, arg0, arg1);
5060
+ wasm.__wasm_bindgen_func_elem_7879(retptr, arg0, arg1);
4985
5061
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
4986
5062
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
4987
5063
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -4994,10 +5070,10 @@ function __wasm_bindgen_func_elem_7739(arg0, arg1) {
4994
5070
  }
4995
5071
  }
4996
5072
 
4997
- function __wasm_bindgen_func_elem_7735(arg0, arg1) {
5073
+ function __wasm_bindgen_func_elem_7875(arg0, arg1) {
4998
5074
  try {
4999
5075
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
5000
- wasm.__wasm_bindgen_func_elem_7735(retptr, arg0, arg1);
5076
+ wasm.__wasm_bindgen_func_elem_7875(retptr, arg0, arg1);
5001
5077
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
5002
5078
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
5003
5079
  if (r1) {
@@ -5008,12 +5084,16 @@ function __wasm_bindgen_func_elem_7735(arg0, arg1) {
5008
5084
  }
5009
5085
  }
5010
5086
 
5011
- function __wasm_bindgen_func_elem_24969(arg0, arg1, arg2) {
5012
- wasm.__wasm_bindgen_func_elem_24969(arg0, arg1, addHeapObject(arg2));
5087
+ function __wasm_bindgen_func_elem_19601(arg0, arg1, arg2) {
5088
+ wasm.__wasm_bindgen_func_elem_19601(arg0, arg1, addHeapObject(arg2));
5089
+ }
5090
+
5091
+ function __wasm_bindgen_func_elem_25336(arg0, arg1, arg2) {
5092
+ wasm.__wasm_bindgen_func_elem_25336(arg0, arg1, addHeapObject(arg2));
5013
5093
  }
5014
5094
 
5015
- function __wasm_bindgen_func_elem_33110(arg0, arg1, arg2, arg3) {
5016
- wasm.__wasm_bindgen_func_elem_33110(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
5095
+ function __wasm_bindgen_func_elem_33477(arg0, arg1, arg2, arg3) {
5096
+ wasm.__wasm_bindgen_func_elem_33477(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
5017
5097
  }
5018
5098
 
5019
5099