@marimo-team/islands 0.23.16-dev9 → 0.23.17-dev0

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 (164) hide show
  1. package/dist/{chat-ui-JeekqoMH.js → chat-ui-DsZJj75A.js} +3104 -3107
  2. package/dist/{code-visibility-DveLKNtj.js → common-CotPLtrU.js} +1068 -1036
  3. package/dist/{formats-CO8cn5_K.js → formats-Dwq1THhr.js} +1 -1
  4. package/dist/{html-to-image-Bif4utQZ.js → html-to-image-CZ1kLKkq.js} +7336 -6342
  5. package/dist/main.js +211 -147
  6. package/dist/{node-sql-parser-DLl_zNw0.js → node-sql-parser-v1Vi-Fft.js} +16867 -16665
  7. package/dist/{process-output-TAzy-GUk.js → process-output-bVfbcx5_.js} +30 -26
  8. package/dist/{reveal-component-DxV4Ppa2.js → reveal-component-IoHipy82.js} +634 -626
  9. package/dist/style.css +1 -1
  10. package/dist/toDate-CqhBWjvO.js +713 -0
  11. package/dist/{vega-component-DphdxaJ_.js → vega-component-C7nO5zcf.js} +2 -2
  12. package/package.json +3 -4
  13. package/src/__mocks__/requests.ts +56 -4
  14. package/src/components/data-table/__tests__/__snapshots__/chart-spec-model.test.ts.snap +174 -21
  15. package/src/components/data-table/__tests__/chart-spec-model.test.ts +102 -1
  16. package/src/components/data-table/__tests__/columns.test.tsx +9 -1
  17. package/src/components/data-table/column-summary/chart-spec-model.tsx +163 -103
  18. package/src/components/data-table/column-summary/legacy-chart-spec.ts +15 -7
  19. package/src/components/data-table/column-summary/utils.ts +26 -7
  20. package/src/components/data-table/columns.tsx +11 -1
  21. package/src/components/data-table/types.ts +1 -1
  22. package/src/components/editor/__tests__/viewer-banner.test.tsx +14 -0
  23. package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +99 -18
  24. package/src/components/editor/actions/__tests__/pdf-export.test.ts +32 -13
  25. package/src/components/editor/actions/pair-with-agent-commands.ts +21 -10
  26. package/src/components/editor/actions/pair-with-agent-modal.tsx +2 -2
  27. package/src/components/editor/actions/pdf-export.ts +11 -14
  28. package/src/components/editor/actions/useNotebookActions.tsx +28 -19
  29. package/src/components/editor/cell/code/__tests__/cell-editor-activity-lifecycle.test.ts +250 -0
  30. package/src/components/editor/cell/code/cell-editor.tsx +13 -7
  31. package/src/components/editor/chrome/__tests__/state.test.ts +7 -1
  32. package/src/components/editor/chrome/panels/__tests__/logs-panel.test.tsx +25 -0
  33. package/src/components/editor/chrome/panels/__tests__/panel-accordion-state.test.ts +42 -0
  34. package/src/components/editor/chrome/panels/file-explorer-panel.tsx +6 -17
  35. package/src/components/editor/chrome/panels/logs-panel.tsx +12 -2
  36. package/src/components/editor/chrome/panels/panel-accordion-state.ts +51 -0
  37. package/src/components/editor/chrome/panels/session-panel.tsx +5 -16
  38. package/src/components/editor/chrome/panels/write-secret-modal.tsx +40 -12
  39. package/src/components/editor/chrome/state.ts +10 -0
  40. package/src/components/editor/connections/__tests__/json-credentials.test.ts +114 -0
  41. package/src/components/editor/connections/__tests__/paths.test.ts +39 -0
  42. package/src/components/editor/connections/__tests__/quick-add-data-sources.test.tsx +113 -0
  43. package/src/components/editor/connections/add-connection-dialog.tsx +2 -0
  44. package/src/components/editor/connections/components.tsx +6 -2
  45. package/src/components/editor/connections/database/__tests__/__snapshots__/as-code.test.ts.snap +27 -5
  46. package/src/components/editor/connections/database/__tests__/as-code.test.ts +33 -0
  47. package/src/components/editor/connections/database/as-code.ts +37 -13
  48. package/src/components/editor/connections/database/schemas.ts +6 -5
  49. package/src/components/editor/connections/form-renderers.tsx +99 -1
  50. package/src/components/editor/connections/json-credentials.ts +57 -0
  51. package/src/components/editor/connections/paths.ts +21 -0
  52. package/src/components/editor/connections/quick-add-data-sources.tsx +106 -0
  53. package/src/components/editor/connections/secret-combobox.tsx +41 -20
  54. package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +88 -2
  55. package/src/components/editor/connections/storage/__tests__/as-code.test.ts +128 -8
  56. package/src/components/editor/connections/storage/as-code.ts +79 -36
  57. package/src/components/editor/connections/storage/schemas.ts +85 -44
  58. package/src/components/editor/file-tree/__tests__/renderers.test.ts +31 -0
  59. package/src/components/editor/file-tree/file-viewer.tsx +11 -7
  60. package/src/components/editor/file-tree/renderers.tsx +21 -0
  61. package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +2 -2
  62. package/src/components/editor/viewer-banner.tsx +6 -1
  63. package/src/components/forms/form.tsx +59 -24
  64. package/src/components/forms/options.ts +2 -1
  65. package/src/components/slides/__tests__/cell-output-block.test.tsx +40 -0
  66. package/src/components/slides/__tests__/slide-cell-view.test.tsx +33 -0
  67. package/src/components/slides/reveal-component.tsx +22 -17
  68. package/src/components/slides/slide-cell-view.tsx +1 -1
  69. package/src/components/slides/slides.css +4 -2
  70. package/src/components/static-html/share-modal.tsx +1 -1
  71. package/src/core/ai/context/providers/file.ts +8 -29
  72. package/src/core/cells/__tests__/cells.test.ts +12 -2
  73. package/src/core/cells/__tests__/logs.test.ts +5 -5
  74. package/src/core/cells/cells.ts +17 -4
  75. package/src/core/cells/document-changes.ts +1 -0
  76. package/src/core/cells/logs.ts +14 -4
  77. package/src/core/codemirror/cm.ts +3 -0
  78. package/src/core/codemirror/code-lens/__tests__/actions.test.ts +68 -0
  79. package/src/core/codemirror/code-lens/__tests__/analyzer.test.ts +224 -0
  80. package/src/core/codemirror/code-lens/__tests__/entities.test.ts +175 -0
  81. package/src/core/codemirror/code-lens/__tests__/extension.test.ts +325 -0
  82. package/src/core/codemirror/code-lens/__tests__/perf.test.ts +121 -0
  83. package/src/core/codemirror/code-lens/__tests__/popover.test.ts +93 -0
  84. package/src/core/codemirror/code-lens/actions.ts +33 -0
  85. package/src/core/codemirror/code-lens/analyzer.ts +284 -0
  86. package/src/core/codemirror/code-lens/entities.ts +123 -0
  87. package/src/core/codemirror/code-lens/extension.ts +298 -0
  88. package/src/core/codemirror/code-lens/icons.ts +36 -0
  89. package/src/core/codemirror/code-lens/popover.tsx +240 -0
  90. package/src/core/codemirror/copilot/__tests__/language-server.test.ts +396 -100
  91. package/src/core/codemirror/copilot/__tests__/transport.test.ts +128 -540
  92. package/src/core/codemirror/copilot/language-server.ts +182 -70
  93. package/src/core/codemirror/copilot/transport.ts +15 -207
  94. package/src/core/codemirror/copilot/types.ts +9 -2
  95. package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +42 -30
  96. package/src/core/codemirror/find-replace/navigate.ts +2 -0
  97. package/src/core/codemirror/go-to-definition/__tests__/commands.test.ts +24 -3
  98. package/src/core/codemirror/go-to-definition/commands.ts +93 -90
  99. package/src/core/codemirror/language/__tests__/sql.test.ts +627 -61
  100. package/src/core/codemirror/language/languages/python.ts +23 -11
  101. package/src/core/codemirror/language/languages/sql/completion-store.ts +5 -1
  102. package/src/core/codemirror/language/languages/sql/renderers.tsx +3 -3
  103. package/src/core/codemirror/language/languages/sql/sql.ts +251 -16
  104. package/src/core/codemirror/lsp/__tests__/federated-lsp.test.ts +161 -0
  105. package/src/core/codemirror/lsp/__tests__/log-messages.test.ts +53 -0
  106. package/src/core/codemirror/lsp/__tests__/normalize-markdown-math.test.ts +25 -0
  107. package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +598 -156
  108. package/src/core/codemirror/lsp/__tests__/transports.test.ts +112 -0
  109. package/src/core/codemirror/lsp/federated-lsp.ts +76 -23
  110. package/src/core/codemirror/lsp/log-messages.ts +37 -0
  111. package/src/core/codemirror/lsp/normalize-markdown-math.ts +8 -4
  112. package/src/core/codemirror/lsp/notebook-lsp.ts +220 -56
  113. package/src/core/codemirror/lsp/transports.ts +8 -1
  114. package/src/core/codemirror/lsp/types.ts +68 -8
  115. package/src/core/codemirror/lsp/utils.ts +14 -0
  116. package/src/core/codemirror/python-node-names.ts +90 -0
  117. package/src/core/codemirror/reactive-references/analyzer.ts +52 -57
  118. package/src/core/codemirror/utils.ts +28 -0
  119. package/src/core/config/feature-flag.tsx +3 -1
  120. package/src/core/datasets/data-source-discovery.ts +5 -0
  121. package/src/core/datasets/request-registry.ts +11 -0
  122. package/src/core/edit-app.tsx +1 -2
  123. package/src/core/export/__tests__/hooks.test.ts +2 -4
  124. package/src/core/export/hooks.ts +4 -3
  125. package/src/core/islands/__tests__/bridge.test.ts +107 -0
  126. package/src/core/islands/bootstrap.ts +1 -0
  127. package/src/core/islands/bridge.ts +18 -0
  128. package/src/core/kernel/messages.ts +2 -0
  129. package/src/core/lsp/__tests__/transport.test.ts +509 -337
  130. package/src/core/lsp/transport.ts +304 -132
  131. package/src/core/mode.ts +10 -0
  132. package/src/core/network/__tests__/api.test.ts +42 -0
  133. package/src/core/network/__tests__/connection.test.ts +45 -0
  134. package/src/core/network/__tests__/requests-lazy.test.ts +47 -1
  135. package/src/core/network/__tests__/requests-network.test.ts +48 -0
  136. package/src/core/network/api.ts +27 -0
  137. package/src/core/network/connection.ts +15 -0
  138. package/src/core/network/requests-lazy.ts +3 -0
  139. package/src/core/network/requests-network.ts +31 -8
  140. package/src/core/network/requests-static.ts +3 -0
  141. package/src/core/network/requests-toasting.tsx +3 -0
  142. package/src/core/network/types.ts +27 -6
  143. package/src/core/rtc/state.ts +9 -0
  144. package/src/core/static/download-html.ts +5 -14
  145. package/src/core/wasm/__tests__/bridge.test.ts +99 -5
  146. package/src/core/wasm/bridge.ts +42 -9
  147. package/src/core/wasm/worker/types.ts +10 -3
  148. package/src/core/wasm/worker/worker.ts +7 -8
  149. package/src/core/websocket/useMarimoKernelConnection.tsx +4 -0
  150. package/src/css/app/codemirror.css +16 -2
  151. package/src/hooks/__tests__/useDataSourceDiscovery.test.ts +80 -0
  152. package/src/hooks/useDataSourceDiscovery.ts +18 -0
  153. package/src/plugins/impl/DataTablePlugin.tsx +4 -1
  154. package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +158 -0
  155. package/src/plugins/impl/anywidget/__tests__/model.test.ts +55 -0
  156. package/src/plugins/impl/anywidget/model.ts +20 -5
  157. package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +33 -21
  158. package/src/plugins/impl/data-frames/forms/renderers.tsx +11 -8
  159. package/src/stories/log-viewer.stories.tsx +12 -6
  160. package/src/utils/__tests__/blob.test.ts +27 -1
  161. package/src/utils/__tests__/download.test.tsx +44 -4
  162. package/src/utils/blob.ts +24 -1
  163. package/src/utils/download.ts +14 -15
  164. package/dist/toDate-CmR_xR3P.js +0 -692
@@ -6,14 +6,14 @@ import { _ as Functions, f as composeRefs, g as Logger, h as cn, m as Events, n
6
6
  import { t as require_react } from "./react-DA-nE2FX.js";
7
7
  import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
8
8
  import { n as Copy, r as toast, t as copyToClipboard } from "./copy-DNq8q3zw.js";
9
- import { $n as import_lib, An as Close$1, At as toggleBreakpoint, B as isDataURLString, Bn as Minus, C as Accordion, Dn as atomWithStorage, E as AccordionTrigger, Fn as Wrench, Ft as useChromeActions, Gn as Eye, Gt as DATA_TYPE_ICON, H as renderHTML, In as Trash2, It as adaptForLocalStorage, J as getCellEditorView, Kn as ExternalLink, Kt as getDataTypeColor, L as base64ToUint8Array, Lt as jotaiJsonStorage, M as DotFilledIcon, Mt as goToCellLine, N as PinLeftIcon, P as PinRightIcon, Q as notebookAtom, Qn as esm_default, Qt as getRequestClient, T as AccordionItem, Tn as jsonToMarkdown, Un as Info, Ut as PluralWord, Vn as LoaderCircle, Wn as FileText, Yn as CircleX, Zn as Braces, _ as getDatasourceContext, _n as CellOutputId, _t as sanitizeHtml, bt as displayCellName, c as Popover, cn as elementContainsMarimoCellFile, ct as AnsiUp, d as PopoverTrigger, dt as kioskModeAtom, en as useRequestClient, ft as useInstallAllowed, it as useCellNames, j as ChevronRightIcon, k as CheckIcon, l as PopoverClose, ln as extractAllTracebackInfo, m as useExpandedOutput, mt as outputIsLoading, n as Spinner, nt as useCellActions, pn as filenameAtom, pt as viewStateAtom, r as MarkdownRenderer, rt as useCellIds, t as toPng, u as PopoverContent, un as getTracebackInfo, vn as HTMLCellId, vt as DATA_CELL_ID, w as AccordionContent, wn as jsonParseWithSpecialChar, wt as Checkbox, yn as SCRATCH_CELL_ID, yt as getCellDomProps, z as extractBase64FromDataURL, zn as NotebookPen, zt as getFeatureFlag, __tla as __tla_0 } from "./html-to-image-Bif4utQZ.js";
9
+ import { B as isDataURLString, Bn as Info, Bt as PluralWord, C as Accordion, Dn as Close$1, Dt as toggleBreakpoint, E as AccordionTrigger, H as renderHTML, Hn as Eye, Ht as DATA_TYPE_ICON, In as NotebookPen, It as getFeatureFlag, J as getCellEditorView, Jn as Braces, Kn as CircleX, L as base64ToUint8Array, Ln as Minus, M as DotFilledIcon, Mn as Wrench, Mt as useChromeActions, N as PinLeftIcon, Nn as Trash2, Nt as adaptForLocalStorage, Ot as goToCellLine, P as PinRightIcon, Pt as jotaiJsonStorage, Q as notebookAtom, Rn as LoaderCircle, Sn as jsonToMarkdown, St as isRecord, T as AccordionItem, Un as ExternalLink, Ut as getDataTypeColor, Vn as FileText, Xn as import_lib, Yn as esm_default, Yt as getRequestClient, Zt as useRequestClient, _ as getDatasourceContext, an as elementContainsMarimoCellFile, c as Popover, ct as AnsiUp, d as PopoverTrigger, ft as sanitizeHtml, gn as SCRATCH_CELL_ID, hn as HTMLCellId, ht as displayCellName, it as useCellNames, j as ChevronRightIcon, k as CheckIcon, l as PopoverClose, lt as outputIsLoading, m as useExpandedOutput, mn as CellOutputId, mt as getCellDomProps, n as Spinner, nt as useCellActions, on as extractAllTracebackInfo, pt as DATA_CELL_ID, r as MarkdownRenderer, rt as useCellIds, sn as getTracebackInfo, t as toPng, u as PopoverContent, un as filenameAtom, w as AccordionContent, wn as atomWithStorage, xn as jsonParseWithSpecialChar, yt as Checkbox, z as extractBase64FromDataURL, __tla as __tla_0 } from "./html-to-image-CZ1kLKkq.js";
10
10
  import { o as useSize, u as createLucideIcon } from "./dist-DIlxLFXG.js";
11
11
  import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-CMJGqBaY.js";
12
12
  import { a as ListFilter, i as Table$1, n as $fb18d541ea1ad717$export$ad991b66133851cf, o as ChartPie, r as $5a387cc49350e6db$export$722debc0e56fea39, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-Bt2qr_XS.js";
13
13
  import { t as Check } from "./check-DP7U0H0G.js";
14
14
  import { C as logNever, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, I as X, N as usePrevious$1, O as $b5e257d569688ac6$export$535bd6ca7f90a273, P as useDirection, R as ChevronDown, S as assertNever, T as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5, _ as menuControlVariants, b as menuSeparatorVariants, f as selectStyles, g as menuControlCheckVariants, h as menuContentCommon, i as SelectContent, l as SelectTrigger, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, t as Strings, u as SelectValue, v as menuItemVariants, w as $a916eb452884faea$export$b7a616150fdb9f44, x as menuSubTriggerVariants, y as menuLabelVariants } from "./strings-DIy9NAmg.js";
15
15
  import { $ as $e93e671b31057976$export$b8473d3665f3a75a, $t as Item2$2, A as $ee014567cb39d3f0$export$ff05c3ac10437e03, At as $c87311424ea30a05$export$78551043582a6a98, B as $64fa3d84918910a7$export$4d86445c2cf5e3, Bt as $d4ee10de306f2510$export$e58f029f0fbfdb29, C as DropdownMenuTrigger, Ct as $b4b717babfbb907b$export$bebd5a1431fec25d, D as $a049562f99e7db0e$export$f9c6924e160136d1, Dt as $df56164dff5785e2$export$4338b53315abf666, E as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, Et as $8ae05eaa5c114e9c$export$7f54fc3180508a52, F as $01b77f81d0f07f68$export$75b6ee27786ba447, Ft as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, G as $64fa3d84918910a7$export$ef03459518577ad4, Gt as $bdb11010cef70236$export$b4cc09c592e8fdb8, H as $64fa3d84918910a7$export$c245e6201fed2f75, Ht as $431fbd86ca7dc216$export$b204af158042fbac, I as $01b77f81d0f07f68$export$b04be29aa201d4f5, It as $3ef42575df84b30b$export$9d1611c77c2fe928, J as marked, Jt as Anchor2, K as $64fa3d84918910a7$export$fabf2dc03a41866e, Kt as $bdb11010cef70236$export$f680877a34711e37, L as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, Lt as $d4ee10de306f2510$export$4282f70798064fe0, M as $514c0188e459b4c0$export$9afb8bc826b033ea, Mt as $c87311424ea30a05$export$a11b0059900ceec8, N as $d2b4bc8c273e7be6$export$24d547caef80ccd1, Nt as $c87311424ea30a05$export$fedb369cb70207f1, O as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Ot as $313b98861ee5dd6c$export$d6875122194c7b44, P as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, Pt as $7215afc6de606d6b$export$de79e2c695e052f3, Q as $2baaea4c71418dea$export$294aa081a6c6f55d, Qt as Group, R as $64fa3d84918910a7$export$2881499e37b75b9a, Rt as $d4ee10de306f2510$export$b4f377a2b6254582, S as DropdownMenuSubTrigger, St as $b4b717babfbb907b$export$4c063cf1350e6fed, T as $3985021b0ad6602f$export$f5b8910cec6cf069, Tt as $e9faafb641e167db$export$90fc3a17d93f704c, U as $64fa3d84918910a7$export$c62b8e45d58ddad9, Ut as $431fbd86ca7dc216$export$f21a1ffae260145a, V as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, Vt as $f4e2df6bd15f8569$export$98658e8c59125e6a, W as $64fa3d84918910a7$export$df3a06d6289f983e, Wt as $ff5963eb1fccf552$export$e08e3b67e392101e, Xt as CheckboxItem, Yt as Arrow2, Z as $d2e8511e6f209edf$export$e908e06f4b8e3402, Zt as Content2$1, _ as DropdownMenuPortal, _t as $f6c31cce2adf654f$export$45712eceda6fad21, a as NumberField, an as Root3, at as $319e236875307eab$export$a9b970dcc4ae71a9, b as DropdownMenuSub, bt as $9446cca9a3875146$export$7d15b64cf5a3a4c4, c as prettyEngineeringNumber, cn as SubContent, ct as $6c7bd7858deea686$export$cd11ab140839f11d, dn as Item, dt as $6db58dc88e78b024$export$2f817fcdc4b89ae0, en as ItemIndicator, et as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, f as DropdownMenu, fn as Root$3, ft as $5b160d28a433310d$export$c17fa47878dc55b6, g as DropdownMenuLabel, gn as ChevronRight, gt as $507fabe10e71c6fb$export$630ff653c5ada6a9, h as DropdownMenuItem, hn as Circle, ht as $3ad3f6e1647bc98d$export$80f3e147d781571c, in as RadioItem, it as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, j as $514c0188e459b4c0$export$5f1af8db9871e1d6, jt as $c87311424ea30a05$export$9ac100e40613ea10, k as $ee014567cb39d3f0$export$f551688fc98f2e09, kt as $c87311424ea30a05$export$6446a186d09e379e, l as prettyNumber, ln as SubTrigger, lt as $fca6afa0e843324b$export$87b761675e8eaa10, mn as Search, mt as $9ab94262bd0047c7$export$420e68273165f4ec, nn as Portal, nt as $e5be200c675c3b3a$export$aca958c65c314e6c, on as Separator$1, ot as $f7dceffc5ad7768b$export$4e328f61c538687f, p as DropdownMenuContent, pn as createRovingFocusGroupScope, pt as $6179b936705e76d3$export$ae780daf29e6d456, qt as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, r as Input, rn as RadioGroup$2, rt as $e5be200c675c3b3a$export$dad6ae84456c676a, s as maxFractionalDigits, sn as Sub, tn as Label$1, tt as $e5be200c675c3b3a$export$a763b9476acd3eb, u as prettyScientificNumber, un as createMenuScope, ut as $fca6afa0e843324b$export$f12b703ca79dfbb1, v as DropdownMenuSeparator, vt as _class_private_field_init, w as $3985021b0ad6602f$export$37fb8590cf2c088c, wt as $99facab73266f662$export$5add1d006293d136, x as DropdownMenuSubContent, xt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, yt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, z as $64fa3d84918910a7$export$29f1550f4b0d4415, zt as $d4ee10de306f2510$export$cd4e5573fbe2b576 } from "./input-C5K4VBvB.js";
16
- import { _ as isWasm, a as millisecondsInMinute, c as asRemoteURL, d as isStaticNotebook, i as millisecondsInHour, n as constructFrom, o as millisecondsInSecond, p as isUrl, r as millisecondsInDay, s as millisecondsInWeek, t as toDate } from "./toDate-CmR_xR3P.js";
16
+ import { S as isWasm, a as millisecondsInMinute, b as viewStateAtom, c as asRemoteURL, d as isStaticNotebook, i as millisecondsInHour, n as constructFrom, o as millisecondsInSecond, p as isUrl, r as millisecondsInDay, s as millisecondsInWeek, t as toDate, v as kioskModeAtom, y as useInstallAllowed } from "./toDate-CqhBWjvO.js";
17
17
  import { r as Plus, t as ErrorBoundary } from "./ErrorBoundary-DhLqwSWA.js";
18
18
  import { n as clsx_default } from "./clsx-CIWA5tNO.js";
19
19
  import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
@@ -29,13 +29,13 @@ import { c as uniqueBy, t as Arrays } from "./arrays-sEtDRoG4.js";
29
29
  import { t as Objects } from "./objects-De59twF-.js";
30
30
  import { n as once, t as memoizeLastValue } from "./once-B60G2fuJ.js";
31
31
  import { a as parser } from "./dist-CRmSjkLP.js";
32
- import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-CO8cn5_K.js";
32
+ import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-Dwq1THhr.js";
33
33
  import { n as memoize$1, t as isPropValid } from "./emotion-is-prop-valid.esm-DdVSF4FD.js";
34
34
  import { V as getContainerWidth, n as formats } from "./vega-loader.browser-DmpxCJqx.js";
35
35
  import { a as tooltipHandler, n as vegaLoadData, r as createBatchedLoader, t as parseCsvData } from "./loader-DX-IDS7n.js";
36
36
  import { t as useIframeCapabilities } from "./useIframeCapabilities-kA09ykNq.js";
37
37
  import { t as useAsyncData } from "./useAsyncData-CYOQb1EW.js";
38
- let ContextAwarePanelItem, EmotionCacheProvider, prettifyRowColumnCount, loadTableData, useSelectList, dateToLocalISOTime, Filenames, ColumnChartContext, EmptyState, usePrevious, ColumnPreviewContainer, useIntersectionObserver, ContextMenuContent, getMimeValues, ComboboxItem, ChartErrorState, DatePicker, TabsContent, ContextMenuItem, isNullishFilter, CommandInput, LazyVegaEmbed, Command, ChartInfoState, ContextMenuSeparator, Maps, getColumnCountForDisplay, SELECT_COLUMN_ID, getUserColumnVisibilityCounts, TOO_MANY_ROWS, ErrorState, getPageIndexForRow, ContextMenu, toFieldTypes, smartMatch, HtmlOutput, ContextMenuTrigger, dateToLocalISODate, Progress, renderCellValue, ColumnName, DelayMount, DateRangePicker, TabsList, CompactChipRow, Tabs, Combobox, TabsTrigger, CommandList, RenderTextWithLinks, CommandItem, useOverflowDetection, CommandSeparator, Kbd, InstallPackageButton, ChevronLeft, TableHeader, DEFAULT_DECK_VERTICAL_ALIGN, TextWrap, SlotNames, downloadByURL, generateColumns, SlideSidebar, EyeOff, Panel, RadioGroup, Download, Fill, safeLocale, PANEL_TYPES, RadioGroupItem, Code, Provider$1, DataTable, ChevronsDownUp, TableHead, OutputRenderer, ChevronsLeft, TableCell, DEFAULT_DECK_TRANSITION, $fae977aafc393c5c$export$6b862160d295c8e, isCellAwareAtom, prettifyRowCount, INDEX_COLUMN_NAME, LoadingState, loadTableAndRawData, Slide, Expand, PanelGroup, OutputArea, ChevronsRight, TableBody, marimoVersionAtom, isRecord, contextAwarePanelOwner, DEFAULT_SLIDE_TYPE, GripHorizontal, slotsController, JsonOutput, ChevronsUpDown, Table, CommandEmpty, ChartLoadingState, showCodeInRunModeAtom, $fae977aafc393c5c$export$588937bcd60ade55, contextAwarePanelType, SLIDE_TYPE_OPTIONS_BY_VALUE, Funnel, Toggle, useNotebookCodeAvailable, hasFunctionProperty, contextAwarePanelOpen, Switch, Ellipsis, PanelResizeHandle, ADD_PRINTING_CLASS, ArrowDownWideNarrow, TableRow, downloadSizeLimitAtom, ColumnChartSpecModel, downloadHTMLAsImage, inferFieldTypes, downloadBlob, NAMELESS_COLUMN_PREFIX, useInternalStateWithSync, dateToLocalISODateTime;
38
+ let CommandSeparator, Kbd, ErrorState, getPageIndexForRow, ContextMenuTrigger, dateToLocalISODate, downloadHTMLAsImage, inferFieldTypes, ColumnName, DelayMount, downloadSizeLimitAtom, ColumnChartSpecModel, getUserColumnVisibilityCounts, TOO_MANY_ROWS, DateRangePicker, TabsList, useSelectList, dateToLocalISOTime, ContextMenu, toFieldTypes, Command, ChartInfoState, Combobox, TabsTrigger, ContextMenuContent, getMimeValues, prettifyRowColumnCount, loadTableData, prettifyRowCount, INDEX_COLUMN_NAME, ColumnPreviewContainer, useIntersectionObserver, getColumnCountForDisplay, SELECT_COLUMN_ID, CommandList, RenderTextWithLinks, ContextMenuItem, isNullishFilter, downloadExportedFile, generateColumns, Filenames, ColumnChartContext, CompactChipRow, Tabs, useInternalStateWithSync, dateToLocalISODateTime, DatePicker, TabsContent, CommandInput, LazyVegaEmbed, CommandEmpty, ChartLoadingState, CommandItem, useOverflowDetection, DataTable, ChevronLeft, TableCell, DEFAULT_DECK_TRANSITION, TextWrap, contextAwarePanelType, downloadBlob, TableRow, SLIDE_TYPE_OPTIONS_BY_VALUE, EyeOff, slotsController, Switch, Download, PanelGroup, HtmlOutput, smartMatch, RadioGroup, Code, PanelResizeHandle, OutputRenderer, ChevronsDownUp, TableBody, OutputArea, ChevronsLeft, Table, showCodeInRunModeAtom, $fae977aafc393c5c$export$6b862160d295c8e, contextAwarePanelOwner, LoadingState, loadTableAndRawData, EmptyState, usePrevious, SlideSidebar, Expand, Toggle, JsonOutput, ChevronsRight, Provider$1, useNotebookCodeAvailable, safeLocale, PANEL_TYPES, DEFAULT_DECK_VERTICAL_ALIGN, GripHorizontal, isCellAwareAtom, RadioGroupItem, ChevronsUpDown, Fill, ComboboxItem, ChartErrorState, marimoVersionAtom, $fae977aafc393c5c$export$588937bcd60ade55, contextAwarePanelOpen, DEFAULT_SLIDE_TYPE, Funnel, SlotNames, cellDomProps, EmotionCacheProvider, ContextAwarePanelItem, Slide, Ellipsis, Panel, InstallPackageButton, ArrowDownWideNarrow, TableHead, Progress, renderCellValue, downloadByURL, NAMELESS_COLUMN_PREFIX, ADD_PRINTING_CLASS, TableHeader, ContextMenuSeparator, Maps;
39
39
  let __tla = Promise.all([
40
40
  (() => {
41
41
  try {
@@ -2061,21 +2061,21 @@ Defaulting to \`null\`.`;
2061
2061
  function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
2062
2062
  let { block: i = "nearest", inline: a = "nearest" } = n;
2063
2063
  if (e === t) return;
2064
- let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, sJ = c.top - E, cJ = c.bottom + O, lJ = c.left - A, uJ = c.right + M, dJ = e === _ ? 0 : Q + $, fJ = e === _ ? 0 : q + J, pJ = e.offsetWidth - e.clientWidth - dJ, mJ = e.offsetHeight - e.clientHeight - fJ, hJ = v + q + I, gJ = y - J - z - mJ, _J = S + Q + U, vJ = w - $ - K;
2065
- h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? _J += pJ : vJ -= pJ;
2066
- let yJ = sJ < hJ || cJ > gJ, bJ = lJ < _J || uJ > vJ;
2067
- if (yJ && i === "start") o += sJ - hJ;
2068
- else if (yJ && i === "center") o += (sJ + cJ) / 2 - (hJ + gJ) / 2;
2069
- else if (yJ && i === "end") o += cJ - gJ;
2070
- else if (yJ && i === "nearest") {
2071
- let e2 = sJ - hJ, t2 = cJ - gJ;
2064
+ let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, fJ = c.top - E, pJ = c.bottom + O, mJ = c.left - A, hJ = c.right + M, gJ = e === _ ? 0 : Q + $, _J = e === _ ? 0 : q + J, vJ = e.offsetWidth - e.clientWidth - gJ, yJ = e.offsetHeight - e.clientHeight - _J, bJ = v + q + I, xJ = y - J - z - yJ, SJ = S + Q + U, CJ = w - $ - K;
2065
+ h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? SJ += vJ : CJ -= vJ;
2066
+ let wJ = fJ < bJ || pJ > xJ, TJ = mJ < SJ || hJ > CJ;
2067
+ if (wJ && i === "start") o += fJ - bJ;
2068
+ else if (wJ && i === "center") o += (fJ + pJ) / 2 - (bJ + xJ) / 2;
2069
+ else if (wJ && i === "end") o += pJ - xJ;
2070
+ else if (wJ && i === "nearest") {
2071
+ let e2 = fJ - bJ, t2 = pJ - xJ;
2072
2072
  o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
2073
2073
  }
2074
- if (bJ && a === "start") s += lJ - _J;
2075
- else if (bJ && a === "center") s += (lJ + uJ) / 2 - (_J + vJ) / 2;
2076
- else if (bJ && a === "end") s += uJ - vJ;
2077
- else if (bJ && a === "nearest") {
2078
- let e2 = lJ - _J, t2 = uJ - vJ;
2074
+ if (TJ && a === "start") s += mJ - SJ;
2075
+ else if (TJ && a === "center") s += (mJ + hJ) / 2 - (SJ + CJ) / 2;
2076
+ else if (TJ && a === "end") s += hJ - CJ;
2077
+ else if (TJ && a === "nearest") {
2078
+ let e2 = mJ - SJ, t2 = hJ - CJ;
2079
2079
  s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
2080
2080
  }
2081
2081
  e.scrollTo({
@@ -5185,23 +5185,23 @@ Defaulting to \`null\`.`;
5185
5185
  }
5186
5186
  let $ = "bottom";
5187
5187
  A.axis === "top" ? A.placement === "top" ? $ = "top" : A.placement === "bottom" && ($ = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? $ = "bottom" : A.crossPlacement === "bottom" && ($ = "top"));
5188
- let sJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5189
- q[I] += sJ;
5190
- let cJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5191
- y && y < cJ && (cJ = y), n.height = Math.min(n.height, cJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), sJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += sJ;
5192
- let lJ = {}, uJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], dJ = uJ + 0.5 * t[z], fJ = S / 2 + w, pJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), mJ = n[z] - pJ - S / 2 - w;
5193
- lJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(dJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), fJ, mJ), { placement: U, crossPlacement: K } = A, S ? uJ = lJ[I] : K === "right" ? uJ += t[z] : K === "center" && (uJ += t[z] / 2);
5194
- let hJ = U === "left" || U === "top" ? n[M] : 0, gJ = {
5195
- x: U === "top" || U === "bottom" ? uJ : hJ,
5196
- y: U === "left" || U === "right" ? uJ : hJ
5188
+ let fJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5189
+ q[I] += fJ;
5190
+ let pJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5191
+ y && y < pJ && (pJ = y), n.height = Math.min(n.height, pJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), fJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += fJ;
5192
+ let mJ = {}, hJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], gJ = hJ + 0.5 * t[z], _J = S / 2 + w, vJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), yJ = n[z] - vJ - S / 2 - w;
5193
+ mJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(gJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), _J, yJ), { placement: U, crossPlacement: K } = A, S ? hJ = mJ[I] : K === "right" ? hJ += t[z] : K === "center" && (hJ += t[z] / 2);
5194
+ let bJ = U === "left" || U === "top" ? n[M] : 0, xJ = {
5195
+ x: U === "top" || U === "bottom" ? hJ : bJ,
5196
+ y: U === "left" || U === "right" ? hJ : bJ
5197
5197
  };
5198
5198
  return {
5199
5199
  position: q,
5200
- maxHeight: cJ,
5201
- arrowOffsetLeft: lJ.left,
5202
- arrowOffsetTop: lJ.top,
5200
+ maxHeight: pJ,
5201
+ arrowOffsetLeft: mJ.left,
5202
+ arrowOffsetTop: mJ.top,
5203
5203
  placement: U,
5204
- triggerAnchorPoint: gJ
5204
+ triggerAnchorPoint: xJ
5205
5205
  };
5206
5206
  }
5207
5207
  function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
@@ -7056,7 +7056,7 @@ Defaulting to \`null\`.`;
7056
7056
  n,
7057
7057
  h
7058
7058
  ]);
7059
- let sJ = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
7059
+ let fJ = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
7060
7060
  role: "textbox",
7061
7061
  "aria-valuemax": null,
7062
7062
  "aria-valuemin": null,
@@ -7066,8 +7066,8 @@ Defaulting to \`null\`.`;
7066
7066
  e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
7067
7067
  t.segments
7068
7068
  ]) && !t.isInvalid && (f = void 0);
7069
- let cJ = $bdb11010cef70236$export$f680877a34711e37(), lJ = !t.isDisabled && !t.isReadOnly && e.isEditable, uJ = e.type === "literal" ? "" : s.of(e.type), dJ = $313b98861ee5dd6c$export$d6875122194c7b44({
7070
- "aria-label": `${uJ}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
7069
+ let pJ = $bdb11010cef70236$export$f680877a34711e37(), mJ = !t.isDisabled && !t.isReadOnly && e.isEditable, hJ = e.type === "literal" ? "" : s.of(e.type), gJ = $313b98861ee5dd6c$export$d6875122194c7b44({
7070
+ "aria-label": `${hJ}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
7071
7071
  "aria-labelledby": d
7072
7072
  });
7073
7073
  if (e.type === "literal") return {
@@ -7075,32 +7075,32 @@ Defaulting to \`null\`.`;
7075
7075
  "aria-hidden": true
7076
7076
  }
7077
7077
  };
7078
- let fJ = {
7078
+ let _J = {
7079
7079
  caretColor: "transparent"
7080
7080
  };
7081
7081
  if (o === "rtl") {
7082
- fJ.unicodeBidi = "embed";
7082
+ _J.unicodeBidi = "embed";
7083
7083
  let t2 = v[e.type];
7084
- (t2 === "numeric" || t2 === "2-digit") && (fJ.direction = "ltr");
7084
+ (t2 === "numeric" || t2 === "2-digit") && (_J.direction = "ltr");
7085
7085
  }
7086
7086
  return {
7087
- segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, dJ, {
7088
- id: cJ,
7089
- ...sJ,
7087
+ segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, gJ, {
7088
+ id: pJ,
7089
+ ...fJ,
7090
7090
  "aria-invalid": t.isInvalid ? "true" : void 0,
7091
7091
  "aria-describedby": f,
7092
7092
  "aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
7093
7093
  "data-placeholder": e.isPlaceholder || void 0,
7094
- contentEditable: lJ,
7095
- suppressContentEditableWarning: lJ,
7096
- spellCheck: lJ ? "false" : void 0,
7097
- autoCorrect: lJ ? "off" : void 0,
7098
- enterKeyHint: lJ ? "next" : void 0,
7099
- inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !lJ ? void 0 : "numeric",
7094
+ contentEditable: mJ,
7095
+ suppressContentEditableWarning: mJ,
7096
+ spellCheck: mJ ? "false" : void 0,
7097
+ autoCorrect: mJ ? "off" : void 0,
7098
+ enterKeyHint: mJ ? "next" : void 0,
7099
+ inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !mJ ? void 0 : "numeric",
7100
7100
  tabIndex: t.isDisabled ? void 0 : 0,
7101
7101
  onKeyDown: A,
7102
7102
  onFocus: Q,
7103
- style: fJ,
7103
+ style: _J,
7104
7104
  onPointerDown(e2) {
7105
7105
  e2.stopPropagation();
7106
7106
  },
@@ -10227,12 +10227,6 @@ Defaulting to \`null\`.`;
10227
10227
  function isMatch(e, t, n) {
10228
10228
  return isValid(parse$1(e, t, /* @__PURE__ */ new Date(), n));
10229
10229
  }
10230
- isRecord = function(e) {
10231
- return typeof e == "object" && !!e && !Array.isArray(e);
10232
- };
10233
- hasFunctionProperty = function(e, t) {
10234
- return typeof e[t] == "function";
10235
- };
10236
10230
  (0, import_react.createContext)(null), (0, import_react.createContext)(null), (0, import_react.createContext)(null), (0, import_react.createContext)(null), (0, import_react.createContext)(null);
10237
10231
  var $4e85f108e88277b8$export$d688439359537581 = (0, import_react.createContext)({});
10238
10232
  (0, import_react.createContext)(null), (0, import_react.createContext)(null);
@@ -10349,12 +10343,12 @@ Defaulting to \`null\`.`;
10349
10343
  e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (y == null ? void 0 : y.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), y && "hour" in y ? S(y.set(e2)) : S(e2);
10350
10344
  }
10351
10345
  }
10352
- let sJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10346
+ let fJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10353
10347
  w,
10354
10348
  f,
10355
10349
  s,
10356
10350
  c
10357
- ]), cJ = e.isInvalid || e.validationState === "invalid" || sJ, lJ = cJ ? "invalid" : null, uJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10351
+ ]), pJ = e.isInvalid || e.validationState === "invalid" || fJ, mJ = pJ ? "invalid" : null, hJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10358
10352
  h,
10359
10353
  o
10360
10354
  ]);
@@ -10371,8 +10365,8 @@ Defaulting to \`null\`.`;
10371
10365
  maxValue: c,
10372
10366
  focusedDate: O,
10373
10367
  timeZone: E,
10374
- validationState: lJ,
10375
- isValueInvalid: cJ,
10368
+ validationState: mJ,
10369
+ isValueInvalid: pJ,
10376
10370
  setFocusedDate(e2) {
10377
10371
  Q(e2);
10378
10372
  },
@@ -10397,12 +10391,12 @@ Defaulting to \`null\`.`;
10397
10391
  }));
10398
10392
  },
10399
10393
  focusNextPage() {
10400
- let e2 = M.add(uJ);
10401
- A($f62d864046160412$export$4f5203c0d889109e(O.add(uJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, uJ, i, s, c), uJ, i));
10394
+ let e2 = M.add(hJ);
10395
+ A($f62d864046160412$export$4f5203c0d889109e(O.add(hJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, hJ, i, s, c), hJ, i));
10402
10396
  },
10403
10397
  focusPreviousPage() {
10404
- let e2 = M.subtract(uJ);
10405
- A($f62d864046160412$export$4f5203c0d889109e(O.subtract(uJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, uJ, i, s, c), uJ, i));
10398
+ let e2 = M.subtract(hJ);
10399
+ A($f62d864046160412$export$4f5203c0d889109e(O.subtract(hJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, hJ, i, s, c), hJ, i));
10406
10400
  },
10407
10401
  focusSectionStart() {
10408
10402
  o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
@@ -10539,13 +10533,13 @@ Defaulting to \`null\`.`;
10539
10533
  end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
10540
10534
  }), q(null);
10541
10535
  }
10542
- }, [$, sJ] = (0, import_react.useState)(false), { isDateUnavailable: cJ } = e, lJ = (0, import_react.useMemo)(() => !h || v ? false : cJ && (cJ(h.start) || cJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10543
- cJ,
10536
+ }, [$, fJ] = (0, import_react.useState)(false), { isDateUnavailable: pJ } = e, mJ = (0, import_react.useMemo)(() => !h || v ? false : pJ && (pJ(h.start) || pJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10537
+ pJ,
10544
10538
  h,
10545
10539
  v,
10546
10540
  c,
10547
10541
  d
10548
- ]), uJ = e.isInvalid || e.validationState === "invalid" || lJ, dJ = uJ ? "invalid" : null;
10542
+ ]), hJ = e.isInvalid || e.validationState === "invalid" || mJ, gJ = hJ ? "invalid" : null;
10549
10543
  return {
10550
10544
  ...I,
10551
10545
  value: h,
@@ -10553,8 +10547,8 @@ Defaulting to \`null\`.`;
10553
10547
  anchorDate: v,
10554
10548
  setAnchorDate: q,
10555
10549
  highlightedRange: J,
10556
- validationState: dJ,
10557
- isValueInvalid: uJ,
10550
+ validationState: gJ,
10551
+ isValueInvalid: hJ,
10558
10552
  selectFocusedDate() {
10559
10553
  Q(I.focusedDate);
10560
10554
  },
@@ -10570,7 +10564,7 @@ Defaulting to \`null\`.`;
10570
10564
  return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
10571
10565
  },
10572
10566
  isDragging: $,
10573
- setDragging: sJ
10567
+ setDragging: fJ
10574
10568
  };
10575
10569
  }
10576
10570
  function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
@@ -11757,7 +11751,7 @@ Defaulting to \`null\`.`;
11757
11751
  _,
11758
11752
  S,
11759
11753
  v
11760
- ]), sJ = (0, import_react.useMemo)(() => {
11754
+ ]), fJ = (0, import_react.useMemo)(() => {
11761
11755
  let t2 = w === "h11" || w === "h12", n2 = [
11762
11756
  "era",
11763
11757
  "year",
@@ -11775,15 +11769,15 @@ Defaulting to \`null\`.`;
11775
11769
  e.maxGranularity,
11776
11770
  _,
11777
11771
  w
11778
- ]), [cJ, lJ] = (0, import_react.useState)(M), [uJ, dJ] = (0, import_react.useState)(S), [fJ, pJ] = (0, import_react.useState)(w);
11779
- (M !== cJ || w !== fJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, uJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), lJ(M), dJ(S), pJ(w), z(I));
11780
- let mJ = (t2) => {
11781
- if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(sJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
11772
+ ]), [pJ, mJ] = (0, import_react.useState)(M), [hJ, gJ] = (0, import_react.useState)(S), [_J, vJ] = (0, import_react.useState)(w);
11773
+ (M !== pJ || w !== _J || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, hJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), mJ(M), gJ(S), vJ(w), z(I));
11774
+ let yJ = (t2) => {
11775
+ if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(fJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
11782
11776
  else if (!(t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef)) t2 = $11d87f3f76e88657$export$b4a036af3fc0b032(t2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t2);
11783
11777
  else {
11784
- if (t2.isComplete(sJ)) {
11778
+ if (t2.isComplete(fJ)) {
11785
11779
  let e2 = t2.toValue(M ?? $);
11786
- if (t2.validate(e2, sJ)) {
11780
+ if (t2.validate(e2, fJ)) {
11787
11781
  let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11788
11782
  if (!E || t3.compare(E) !== 0) {
11789
11783
  z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
@@ -11793,83 +11787,83 @@ Defaulting to \`null\`.`;
11793
11787
  }
11794
11788
  z(t2);
11795
11789
  }
11796
- }, hJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11790
+ }, bJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11797
11791
  I,
11798
11792
  y,
11799
11793
  M,
11800
11794
  $
11801
- ]), gJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(hJ, I, J, Q, S, t, _), [
11802
- hJ,
11795
+ ]), xJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(bJ, I, J, Q, S, t, _), [
11796
+ bJ,
11803
11797
  J,
11804
11798
  Q,
11805
11799
  I,
11806
11800
  S,
11807
11801
  t,
11808
11802
  _
11809
- ]), _J = (e2, t2) => {
11810
- mJ(I.cycle(e2, t2, $, sJ));
11811
- }, vJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11803
+ ]), SJ = (e2, t2) => {
11804
+ yJ(I.cycle(e2, t2, $, fJ));
11805
+ }, CJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11812
11806
  E,
11813
11807
  c,
11814
11808
  d,
11815
11809
  f,
11816
11810
  K
11817
- ]), yJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11811
+ ]), wJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11818
11812
  ...e,
11819
11813
  value: E,
11820
- builtinValidation: vJ
11821
- }), bJ = yJ.displayValidation.isInvalid, xJ = e.validationState || (bJ ? "invalid" : null);
11814
+ builtinValidation: CJ
11815
+ }), TJ = wJ.displayValidation.isInvalid, EJ = e.validationState || (TJ ? "invalid" : null);
11822
11816
  return {
11823
- ...yJ,
11817
+ ...wJ,
11824
11818
  value: M,
11825
11819
  defaultValue: e.defaultValue ?? A,
11826
- dateValue: hJ,
11820
+ dateValue: bJ,
11827
11821
  calendar: S,
11828
- setValue: mJ,
11829
- segments: gJ,
11822
+ setValue: yJ,
11823
+ segments: xJ,
11830
11824
  dateFormatter: J,
11831
- validationState: xJ,
11832
- isInvalid: bJ,
11825
+ validationState: EJ,
11826
+ isInvalid: TJ,
11833
11827
  granularity: _,
11834
11828
  maxGranularity: e.maxGranularity ?? "year",
11835
11829
  isDisabled: a,
11836
11830
  isReadOnly: o,
11837
11831
  isRequired: s,
11838
11832
  increment(e2) {
11839
- _J(e2, 1);
11833
+ SJ(e2, 1);
11840
11834
  },
11841
11835
  decrement(e2) {
11842
- _J(e2, -1);
11836
+ SJ(e2, -1);
11843
11837
  },
11844
11838
  incrementPage(e2) {
11845
- _J(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11839
+ SJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11846
11840
  },
11847
11841
  decrementPage(e2) {
11848
- _J(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11842
+ SJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11849
11843
  },
11850
11844
  incrementToMax(e2) {
11851
11845
  let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
11852
- mJ(I.set(e2, t2, $));
11846
+ yJ(I.set(e2, t2, $));
11853
11847
  },
11854
11848
  decrementToMin(e2) {
11855
11849
  let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
11856
- mJ(I.set(e2, t2, $));
11850
+ yJ(I.set(e2, t2, $));
11857
11851
  },
11858
11852
  setSegment(e2, t2) {
11859
- mJ(I.set(e2, t2, $));
11853
+ yJ(I.set(e2, t2, $));
11860
11854
  },
11861
11855
  confirmPlaceholder() {
11862
- if (!(e.isDisabled || e.isReadOnly) && I.isComplete(sJ)) {
11856
+ if (!(e.isDisabled || e.isReadOnly) && I.isComplete(fJ)) {
11863
11857
  let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11864
11858
  (!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
11865
11859
  }
11866
11860
  },
11867
11861
  clearSegment(e2) {
11868
11862
  let t2 = I;
11869
- e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), mJ(t2);
11863
+ e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), yJ(t2);
11870
11864
  },
11871
11865
  formatValue(e2) {
11872
- return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(hJ) : "";
11866
+ return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(bJ) : "";
11873
11867
  },
11874
11868
  getDateFormatter(e2, t2) {
11875
11869
  return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
@@ -11989,7 +11983,7 @@ Defaulting to \`null\`.`;
11989
11983
  e.endName
11990
11984
  ]),
11991
11985
  builtinValidation: J
11992
- }), $ = Q.displayValidation.isInvalid, sJ = e.validationState || ($ ? "invalid" : null);
11986
+ }), $ = Q.displayValidation.isInvalid, fJ = e.validationState || ($ ? "invalid" : null);
11993
11987
  return {
11994
11988
  ...Q,
11995
11989
  value: c,
@@ -12035,7 +12029,7 @@ Defaulting to \`null\`.`;
12035
12029
  end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
12036
12030
  }), t.setOpen(n2);
12037
12031
  },
12038
- validationState: sJ,
12032
+ validationState: fJ,
12039
12033
  isInvalid: $,
12040
12034
  formatValue(t2, n2) {
12041
12035
  if (!c || !c.start || !c.end) return null;
@@ -15929,33 +15923,33 @@ try {
15929
15923
  }, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
15930
15924
  function y(e2) {
15931
15925
  var _a2, _b, _c, _d;
15932
- let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), $ = !!Q && !I, sJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
15926
+ let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), $ = !!Q && !I, fJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
15933
15927
  h2
15934
- ]), cJ = sJ[t], lJ = cJ || sJ, { colorSchemes: uJ = _, components: dJ = v, cssVarPrefix: fJ } = lJ, pJ = Object.keys(uJ).filter((e3) => !!uJ[e3]).join(","), mJ = import_react.useMemo(() => pJ.split(","), [
15935
- pJ
15936
- ]), hJ = typeof s == "string" ? s : s.light, gJ = typeof s == "string" ? s : s.dark, { mode: _J, setMode: vJ, systemMode: yJ, lightColorScheme: bJ, darkColorScheme: xJ, colorScheme: SJ, setColorScheme: CJ } = useCurrentColorScheme({
15937
- supportedColorSchemes: mJ,
15938
- defaultLightColorScheme: hJ,
15939
- defaultDarkColorScheme: gJ,
15928
+ ]), pJ = fJ[t], mJ = pJ || fJ, { colorSchemes: hJ = _, components: gJ = v, cssVarPrefix: _J } = mJ, vJ = Object.keys(hJ).filter((e3) => !!hJ[e3]).join(","), yJ = import_react.useMemo(() => vJ.split(","), [
15929
+ vJ
15930
+ ]), bJ = typeof s == "string" ? s : s.light, xJ = typeof s == "string" ? s : s.dark, { mode: SJ, setMode: CJ, systemMode: wJ, lightColorScheme: TJ, darkColorScheme: EJ, colorScheme: DJ, setColorScheme: OJ } = useCurrentColorScheme({
15931
+ supportedColorSchemes: yJ,
15932
+ defaultLightColorScheme: bJ,
15933
+ defaultDarkColorScheme: xJ,
15940
15934
  modeStorageKey: y2,
15941
15935
  colorSchemeStorageKey: S2,
15942
- defaultMode: uJ[hJ] && uJ[gJ] ? U : ((_b = (_a2 = uJ[lJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = lJ.palette) == null ? void 0 : _c.mode),
15936
+ defaultMode: hJ[bJ] && hJ[xJ] ? U : ((_b = (_a2 = hJ[mJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = mJ.palette) == null ? void 0 : _c.mode),
15943
15937
  storageManager: E,
15944
15938
  storageWindow: O,
15945
15939
  noSsr: K
15946
- }), wJ = _J, TJ = SJ;
15947
- $ && (wJ = Q.mode, TJ = Q.colorScheme);
15948
- let EJ = import_react.useMemo(() => {
15940
+ }), kJ = SJ, AJ = DJ;
15941
+ $ && (kJ = Q.mode, AJ = Q.colorScheme);
15942
+ let jJ = import_react.useMemo(() => {
15949
15943
  var _a3;
15950
- let e3 = TJ || lJ.defaultColorScheme, t2 = ((_a3 = lJ.generateThemeVars) == null ? void 0 : _a3.call(lJ)) || lJ.vars, n2 = {
15951
- ...lJ,
15952
- components: dJ,
15953
- colorSchemes: uJ,
15954
- cssVarPrefix: fJ,
15944
+ let e3 = AJ || mJ.defaultColorScheme, t2 = ((_a3 = mJ.generateThemeVars) == null ? void 0 : _a3.call(mJ)) || mJ.vars, n2 = {
15945
+ ...mJ,
15946
+ components: gJ,
15947
+ colorSchemes: hJ,
15948
+ cssVarPrefix: _J,
15955
15949
  vars: t2
15956
15950
  };
15957
15951
  if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
15958
- let t3 = uJ[e3];
15952
+ let t3 = hJ[e3];
15959
15953
  t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
15960
15954
  t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
15961
15955
  ...n2[e4],
@@ -15965,31 +15959,31 @@ try {
15965
15959
  }
15966
15960
  return c ? c(n2) : n2;
15967
15961
  }, [
15968
- lJ,
15969
- TJ,
15970
- dJ,
15971
- uJ,
15972
- fJ
15973
- ]), DJ = lJ.colorSchemeSelector;
15962
+ mJ,
15963
+ AJ,
15964
+ gJ,
15965
+ hJ,
15966
+ _J
15967
+ ]), MJ = mJ.colorSchemeSelector;
15974
15968
  useEnhancedEffect_default(() => {
15975
- if (TJ && M && DJ && DJ !== "media") {
15976
- let e3 = DJ, t2 = DJ;
15977
- if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...mJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", TJ));
15969
+ if (AJ && M && MJ && MJ !== "media") {
15970
+ let e3 = MJ, t2 = MJ;
15971
+ if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...yJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", AJ));
15978
15972
  else {
15979
- let e4 = t2.replace("%s", TJ).match(/\[([^\]]+)\]/);
15973
+ let e4 = t2.replace("%s", AJ).match(/\[([^\]]+)\]/);
15980
15974
  if (e4) {
15981
15975
  let [t3, n2] = e4[1].split("=");
15982
- n2 || mJ.forEach((e5) => {
15983
- M.removeAttribute(t3.replace(TJ, e5));
15976
+ n2 || yJ.forEach((e5) => {
15977
+ M.removeAttribute(t3.replace(AJ, e5));
15984
15978
  }), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
15985
- } else M.setAttribute(t2, TJ);
15979
+ } else M.setAttribute(t2, AJ);
15986
15980
  }
15987
15981
  }
15988
15982
  }, [
15989
- TJ,
15990
- DJ,
15983
+ AJ,
15984
+ MJ,
15991
15985
  M,
15992
- mJ
15986
+ yJ
15993
15987
  ]), import_react.useEffect(() => {
15994
15988
  let e3;
15995
15989
  if (w2 && q.current && A) {
@@ -16002,48 +15996,48 @@ try {
16002
15996
  clearTimeout(e3);
16003
15997
  };
16004
15998
  }, [
16005
- TJ,
15999
+ AJ,
16006
16000
  w2,
16007
16001
  A
16008
16002
  ]), import_react.useEffect(() => (q.current = true, () => {
16009
16003
  q.current = false;
16010
16004
  }), []);
16011
- let OJ = import_react.useMemo(() => ({
16012
- allColorSchemes: mJ,
16013
- colorScheme: TJ,
16014
- darkColorScheme: xJ,
16015
- lightColorScheme: bJ,
16016
- mode: wJ,
16017
- setColorScheme: CJ,
16018
- setMode: vJ,
16019
- systemMode: yJ
16005
+ let NJ = import_react.useMemo(() => ({
16006
+ allColorSchemes: yJ,
16007
+ colorScheme: AJ,
16008
+ darkColorScheme: EJ,
16009
+ lightColorScheme: TJ,
16010
+ mode: kJ,
16011
+ setColorScheme: OJ,
16012
+ setMode: CJ,
16013
+ systemMode: wJ
16020
16014
  }), [
16021
- mJ,
16015
+ yJ,
16016
+ AJ,
16017
+ EJ,
16022
16018
  TJ,
16023
- xJ,
16024
- bJ,
16025
- wJ,
16019
+ kJ,
16020
+ OJ,
16026
16021
  CJ,
16027
- vJ,
16028
- yJ,
16029
- EJ.colorSchemeSelector
16030
- ]), kJ = true;
16031
- (z || lJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === fJ) && (kJ = false);
16032
- let AJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
16022
+ wJ,
16023
+ jJ.colorSchemeSelector
16024
+ ]), PJ = true;
16025
+ (z || mJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === _J) && (PJ = false);
16026
+ let FJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
16033
16027
  children: [
16034
16028
  (0, import_jsx_runtime.jsx)(ThemeProvider_default, {
16035
- themeId: cJ ? t : void 0,
16036
- theme: EJ,
16029
+ themeId: pJ ? t : void 0,
16030
+ theme: jJ,
16037
16031
  children: d2
16038
16032
  }),
16039
- kJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
16040
- styles: ((_d = EJ.generateStyleSheets) == null ? void 0 : _d.call(EJ)) || []
16033
+ PJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
16034
+ styles: ((_d = jJ.generateStyleSheets) == null ? void 0 : _d.call(jJ)) || []
16041
16035
  })
16042
16036
  ]
16043
16037
  });
16044
- return $ ? AJ : (0, import_jsx_runtime.jsx)(f.Provider, {
16045
- value: OJ,
16046
- children: AJ
16038
+ return $ ? FJ : (0, import_jsx_runtime.jsx)(f.Provider, {
16039
+ value: NJ,
16040
+ children: FJ
16047
16041
  });
16048
16042
  }
16049
16043
  let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
@@ -17543,10 +17537,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17543
17537
  let n = useDefaultProps({
17544
17538
  props: e,
17545
17539
  name: "MuiInputBase"
17546
- }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: $, onFocus: sJ, onKeyDown: cJ, onKeyUp: lJ, placeholder: uJ, readOnly: dJ, renderSuffix: fJ, rows: pJ, size: mJ, slotProps: hJ = {}, slots: gJ = {}, startAdornment: _J, type: vJ = "text", value: yJ, ...bJ } = n, xJ = A.value == null ? yJ : A.value, { current: SJ } = import_react.useRef(xJ != null), CJ = import_react.useRef(), wJ = import_react.useCallback((e2) => {
17547
- }, []), TJ = useForkRef_default(CJ, M, A.ref, wJ), [EJ, DJ] = import_react.useState(false), OJ = useFormControl(), kJ = formControlState({
17540
+ }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: $, onFocus: fJ, onKeyDown: pJ, onKeyUp: mJ, placeholder: hJ, readOnly: gJ, renderSuffix: _J, rows: vJ, size: yJ, slotProps: bJ = {}, slots: xJ = {}, startAdornment: SJ, type: CJ = "text", value: wJ, ...TJ } = n, EJ = A.value == null ? wJ : A.value, { current: DJ } = import_react.useRef(EJ != null), OJ = import_react.useRef(), kJ = import_react.useCallback((e2) => {
17541
+ }, []), AJ = useForkRef_default(OJ, M, A.ref, kJ), [jJ, MJ] = import_react.useState(false), NJ = useFormControl(), PJ = formControlState({
17548
17542
  props: n,
17549
- muiFormControl: OJ,
17543
+ muiFormControl: NJ,
17550
17544
  states: [
17551
17545
  "color",
17552
17546
  "disabled",
@@ -17557,145 +17551,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17557
17551
  "filled"
17558
17552
  ]
17559
17553
  });
17560
- kJ.focused = OJ ? OJ.focused : EJ, import_react.useEffect(() => {
17561
- !OJ && _ && EJ && (DJ(false), J && J());
17554
+ PJ.focused = NJ ? NJ.focused : jJ, import_react.useEffect(() => {
17555
+ !NJ && _ && jJ && (MJ(false), J && J());
17562
17556
  }, [
17563
- OJ,
17557
+ NJ,
17564
17558
  _,
17565
- EJ,
17559
+ jJ,
17566
17560
  J
17567
17561
  ]);
17568
- let AJ = OJ && OJ.onFilled, jJ = OJ && OJ.onEmpty, MJ = import_react.useCallback((e2) => {
17569
- isFilled(e2) ? AJ && AJ() : jJ && jJ();
17562
+ let FJ = NJ && NJ.onFilled, IJ = NJ && NJ.onEmpty, LJ = import_react.useCallback((e2) => {
17563
+ isFilled(e2) ? FJ && FJ() : IJ && IJ();
17570
17564
  }, [
17571
- AJ,
17572
- jJ
17565
+ FJ,
17566
+ IJ
17573
17567
  ]);
17574
17568
  useEnhancedEffect_default$1(() => {
17575
- SJ && MJ({
17576
- value: xJ
17569
+ DJ && LJ({
17570
+ value: EJ
17577
17571
  });
17578
17572
  }, [
17579
- xJ,
17580
- MJ,
17581
- SJ
17573
+ EJ,
17574
+ LJ,
17575
+ DJ
17582
17576
  ]);
17583
- let NJ = (e2) => {
17584
- sJ && sJ(e2), A.onFocus && A.onFocus(e2), OJ && OJ.onFocus ? OJ.onFocus(e2) : DJ(true);
17585
- }, PJ = (e2) => {
17586
- J && J(e2), A.onBlur && A.onBlur(e2), OJ && OJ.onBlur ? OJ.onBlur(e2) : DJ(false);
17587
- }, FJ = (e2, ...t2) => {
17588
- if (!SJ) {
17589
- let t3 = e2.target || CJ.current;
17577
+ let RJ = (e2) => {
17578
+ fJ && fJ(e2), A.onFocus && A.onFocus(e2), NJ && NJ.onFocus ? NJ.onFocus(e2) : MJ(true);
17579
+ }, zJ = (e2) => {
17580
+ J && J(e2), A.onBlur && A.onBlur(e2), NJ && NJ.onBlur ? NJ.onBlur(e2) : MJ(false);
17581
+ }, BJ = (e2, ...t2) => {
17582
+ if (!DJ) {
17583
+ let t3 = e2.target || OJ.current;
17590
17584
  if (t3 == null) throw Error(formatMuiErrorMessage(1));
17591
- MJ({
17585
+ LJ({
17592
17586
  value: t3.value
17593
17587
  });
17594
17588
  }
17595
17589
  A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
17596
17590
  };
17597
17591
  import_react.useEffect(() => {
17598
- MJ(CJ.current);
17592
+ LJ(OJ.current);
17599
17593
  }, []);
17600
- let IJ = (e2) => {
17601
- CJ.current && e2.currentTarget === e2.target && CJ.current.focus(), $ && $(e2);
17602
- }, LJ = O, RJ = A;
17603
- K && LJ === "input" && (RJ = pJ ? {
17594
+ let VJ = (e2) => {
17595
+ OJ.current && e2.currentTarget === e2.target && OJ.current.focus(), $ && $(e2);
17596
+ }, HJ = O, UJ = A;
17597
+ K && HJ === "input" && (UJ = vJ ? {
17604
17598
  type: void 0,
17605
- minRows: pJ,
17606
- maxRows: pJ,
17607
- ...RJ
17599
+ minRows: vJ,
17600
+ maxRows: vJ,
17601
+ ...UJ
17608
17602
  } : {
17609
17603
  type: void 0,
17610
17604
  maxRows: z,
17611
17605
  minRows: U,
17612
- ...RJ
17613
- }, LJ = TextareaAutosize_default);
17614
- let zJ = (e2) => {
17615
- MJ(e2.animationName === "mui-auto-fill-cancel" ? CJ.current : {
17606
+ ...UJ
17607
+ }, HJ = TextareaAutosize_default);
17608
+ let WJ = (e2) => {
17609
+ LJ(e2.animationName === "mui-auto-fill-cancel" ? OJ.current : {
17616
17610
  value: "x"
17617
17611
  });
17618
17612
  };
17619
17613
  import_react.useEffect(() => {
17620
- OJ && OJ.setAdornedStart(!!_J);
17614
+ NJ && NJ.setAdornedStart(!!SJ);
17621
17615
  }, [
17622
- OJ,
17623
- _J
17616
+ NJ,
17617
+ SJ
17624
17618
  ]);
17625
- let BJ = {
17619
+ let GJ = {
17626
17620
  ...n,
17627
- color: kJ.color || "primary",
17628
- disabled: kJ.disabled,
17621
+ color: PJ.color || "primary",
17622
+ disabled: PJ.disabled,
17629
17623
  endAdornment: y,
17630
- error: kJ.error,
17631
- focused: kJ.focused,
17632
- formControl: OJ,
17624
+ error: PJ.error,
17625
+ focused: PJ.focused,
17626
+ formControl: NJ,
17633
17627
  fullWidth: w,
17634
- hiddenLabel: kJ.hiddenLabel,
17628
+ hiddenLabel: PJ.hiddenLabel,
17635
17629
  multiline: K,
17636
- size: kJ.size,
17637
- startAdornment: _J,
17638
- type: vJ
17639
- }, VJ = useUtilityClasses(BJ), HJ = gJ.root || d.Root || InputBaseRoot, UJ = hJ.root || f.root || {}, WJ = gJ.input || d.Input || InputBaseInput;
17640
- return RJ = {
17641
- ...RJ,
17642
- ...hJ.input ?? f.input
17630
+ size: PJ.size,
17631
+ startAdornment: SJ,
17632
+ type: CJ
17633
+ }, KJ = useUtilityClasses(GJ), qJ = xJ.root || d.Root || InputBaseRoot, JJ = bJ.root || f.root || {}, YJ = xJ.input || d.Input || InputBaseInput;
17634
+ return UJ = {
17635
+ ...UJ,
17636
+ ...bJ.input ?? f.input
17643
17637
  }, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
17644
17638
  children: [
17645
17639
  !v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
17646
- (0, import_jsx_runtime.jsxs)(HJ, {
17647
- ...UJ,
17640
+ (0, import_jsx_runtime.jsxs)(qJ, {
17641
+ ...JJ,
17648
17642
  ref: t,
17649
- onClick: IJ,
17650
- ...bJ,
17651
- ...!isHostComponent_default(HJ) && {
17643
+ onClick: VJ,
17644
+ ...TJ,
17645
+ ...!isHostComponent_default(qJ) && {
17652
17646
  ownerState: {
17653
- ...BJ,
17654
- ...UJ.ownerState
17647
+ ...GJ,
17648
+ ...JJ.ownerState
17655
17649
  }
17656
17650
  },
17657
- className: clsx_default(VJ.root, UJ.className, s, dJ && "MuiInputBase-readOnly"),
17651
+ className: clsx_default(KJ.root, JJ.className, s, gJ && "MuiInputBase-readOnly"),
17658
17652
  children: [
17659
- _J,
17653
+ SJ,
17660
17654
  (0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
17661
17655
  value: null,
17662
- children: (0, import_jsx_runtime.jsx)(WJ, {
17663
- "aria-invalid": kJ.error,
17656
+ children: (0, import_jsx_runtime.jsx)(YJ, {
17657
+ "aria-invalid": PJ.error,
17664
17658
  "aria-describedby": i,
17665
17659
  autoComplete: a,
17666
17660
  autoFocus: o,
17667
17661
  defaultValue: h,
17668
- disabled: kJ.disabled,
17662
+ disabled: PJ.disabled,
17669
17663
  id: E,
17670
- onAnimationStart: zJ,
17664
+ onAnimationStart: WJ,
17671
17665
  name: q,
17672
- placeholder: uJ,
17673
- readOnly: dJ,
17674
- required: kJ.required,
17675
- rows: pJ,
17676
- value: xJ,
17677
- onKeyDown: cJ,
17678
- onKeyUp: lJ,
17679
- type: vJ,
17680
- ...RJ,
17681
- ...!isHostComponent_default(WJ) && {
17682
- as: LJ,
17666
+ placeholder: hJ,
17667
+ readOnly: gJ,
17668
+ required: PJ.required,
17669
+ rows: vJ,
17670
+ value: EJ,
17671
+ onKeyDown: pJ,
17672
+ onKeyUp: mJ,
17673
+ type: CJ,
17674
+ ...UJ,
17675
+ ...!isHostComponent_default(YJ) && {
17676
+ as: HJ,
17683
17677
  ownerState: {
17684
- ...BJ,
17685
- ...RJ.ownerState
17678
+ ...GJ,
17679
+ ...UJ.ownerState
17686
17680
  }
17687
17681
  },
17688
- ref: TJ,
17689
- className: clsx_default(VJ.input, RJ.className, dJ && "MuiInputBase-readOnly"),
17690
- onBlur: PJ,
17691
- onChange: FJ,
17692
- onFocus: NJ
17682
+ ref: AJ,
17683
+ className: clsx_default(KJ.input, UJ.className, gJ && "MuiInputBase-readOnly"),
17684
+ onBlur: zJ,
17685
+ onChange: BJ,
17686
+ onFocus: RJ
17693
17687
  })
17694
17688
  }),
17695
17689
  y,
17696
- fJ ? fJ({
17697
- ...kJ,
17698
- startAdornment: _J
17690
+ _J ? _J({
17691
+ ...PJ,
17692
+ startAdornment: SJ
17699
17693
  }) : null
17700
17694
  ]
17701
17695
  })
@@ -18771,30 +18765,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18771
18765
  M,
18772
18766
  i,
18773
18767
  a
18774
- ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), sJ = useTextColor(), cJ = useJsonViewerStore((e2) => e2.colorspace.base0C), lJ = useJsonViewerStore((e2) => e2.colorspace.base0A), uJ = useJsonViewerStore((e2) => e2.displayComma), dJ = useJsonViewerStore((e2) => e2.quotesOnKeys), fJ = useJsonViewerStore((e2) => e2.rootName), pJ = U === t, mJ = Number.isInteger(Number(A)), hJ = useJsonViewerStore((e2) => e2.enableAdd), gJ = useJsonViewerStore((e2) => e2.onAdd), _J = (0, import_react.useMemo)(() => !gJ || a !== void 0 || hJ === false || v === false ? false : typeof hJ == "function" ? !!hJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18775
- gJ,
18768
+ ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), fJ = useTextColor(), pJ = useJsonViewerStore((e2) => e2.colorspace.base0C), mJ = useJsonViewerStore((e2) => e2.colorspace.base0A), hJ = useJsonViewerStore((e2) => e2.displayComma), gJ = useJsonViewerStore((e2) => e2.quotesOnKeys), _J = useJsonViewerStore((e2) => e2.rootName), vJ = U === t, yJ = Number.isInteger(Number(A)), bJ = useJsonViewerStore((e2) => e2.enableAdd), xJ = useJsonViewerStore((e2) => e2.onAdd), SJ = (0, import_react.useMemo)(() => !xJ || a !== void 0 || bJ === false || v === false ? false : typeof bJ == "function" ? !!bJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18769
+ xJ,
18776
18770
  a,
18777
18771
  i,
18778
- hJ,
18772
+ bJ,
18779
18773
  v,
18780
18774
  t
18781
- ]), vJ = useJsonViewerStore((e2) => e2.enableDelete), yJ = useJsonViewerStore((e2) => e2.onDelete), bJ = (0, import_react.useMemo)(() => !yJ || a !== void 0 || pJ || vJ === false || v === false ? false : typeof vJ == "function" ? !!vJ(i, t) : vJ, [
18782
- yJ,
18775
+ ]), CJ = useJsonViewerStore((e2) => e2.enableDelete), wJ = useJsonViewerStore((e2) => e2.onDelete), TJ = (0, import_react.useMemo)(() => !wJ || a !== void 0 || vJ || CJ === false || v === false ? false : typeof CJ == "function" ? !!CJ(i, t) : CJ, [
18776
+ wJ,
18783
18777
  a,
18784
- pJ,
18785
- i,
18786
18778
  vJ,
18779
+ i,
18780
+ CJ,
18787
18781
  v,
18788
18782
  t
18789
- ]), xJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: SJ, copied: CJ } = useClipboard(), wJ = useJsonViewerStore((e2) => e2.highlightUpdates), TJ = (0, import_react.useMemo)(() => !wJ || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
18790
- wJ,
18783
+ ]), EJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: DJ, copied: OJ } = useClipboard(), kJ = useJsonViewerStore((e2) => e2.highlightUpdates), AJ = (0, import_react.useMemo)(() => !kJ || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
18784
+ kJ,
18791
18785
  n,
18792
18786
  t
18793
- ]), EJ = (0, import_react.useRef)();
18787
+ ]), jJ = (0, import_react.useRef)();
18794
18788
  (0, import_react.useEffect)(() => {
18795
- EJ.current && TJ && "animate" in EJ.current && EJ.current.animate([
18789
+ jJ.current && AJ && "animate" in jJ.current && jJ.current.animate([
18796
18790
  {
18797
- backgroundColor: lJ
18791
+ backgroundColor: mJ
18798
18792
  },
18799
18793
  {
18800
18794
  backgroundColor: ""
@@ -18804,22 +18798,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18804
18798
  easing: "ease-in"
18805
18799
  });
18806
18800
  }, [
18807
- lJ,
18808
- TJ,
18801
+ mJ,
18802
+ AJ,
18809
18803
  n,
18810
18804
  t
18811
18805
  ]);
18812
- let DJ = (0, import_react.useCallback)((e2) => {
18806
+ let MJ = (0, import_react.useCallback)((e2) => {
18813
18807
  e2.preventDefault(), h && E(h(t)), Q(true);
18814
18808
  }, [
18815
18809
  h,
18816
18810
  t
18817
- ]), OJ = (0, import_react.useCallback)(() => {
18811
+ ]), NJ = (0, import_react.useCallback)(() => {
18818
18812
  Q(false), E("");
18819
18813
  }, [
18820
18814
  Q,
18821
18815
  E
18822
- ]), kJ = (0, import_react.useCallback)((e2) => {
18816
+ ]), PJ = (0, import_react.useCallback)((e2) => {
18823
18817
  if (Q(false), _) try {
18824
18818
  $(i, t, _(e2));
18825
18819
  } catch {
@@ -18830,14 +18824,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18830
18824
  $,
18831
18825
  i,
18832
18826
  t
18833
- ]), AJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18827
+ ]), FJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18834
18828
  children: [
18835
18829
  (0, import_jsx_runtime.jsx)(IconBox, {
18836
18830
  children: (0, import_jsx_runtime.jsx)(CloseIcon, {
18837
18831
  sx: {
18838
18832
  fontSize: ".8rem"
18839
18833
  },
18840
- onClick: OJ
18834
+ onClick: NJ
18841
18835
  })
18842
18836
  }),
18843
18837
  (0, import_jsx_runtime.jsx)(IconBox, {
@@ -18845,22 +18839,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18845
18839
  sx: {
18846
18840
  fontSize: ".8rem"
18847
18841
  },
18848
- onClick: () => kJ(w)
18842
+ onClick: () => PJ(w)
18849
18843
  })
18850
18844
  })
18851
18845
  ]
18852
18846
  }) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18853
18847
  children: [
18854
- xJ && (0, import_jsx_runtime.jsx)(IconBox, {
18848
+ EJ && (0, import_jsx_runtime.jsx)(IconBox, {
18855
18849
  onClick: (e2) => {
18856
18850
  e2.preventDefault();
18857
18851
  try {
18858
- SJ(i, t, copyString);
18852
+ DJ(i, t, copyString);
18859
18853
  } catch (e3) {
18860
18854
  console.error(e3);
18861
18855
  }
18862
18856
  },
18863
- children: CJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18857
+ children: OJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18864
18858
  sx: {
18865
18859
  fontSize: ".8rem"
18866
18860
  }
@@ -18871,16 +18865,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18871
18865
  })
18872
18866
  }),
18873
18867
  f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
18874
- onClick: DJ,
18868
+ onClick: MJ,
18875
18869
  children: (0, import_jsx_runtime.jsx)(EditIcon, {
18876
18870
  sx: {
18877
18871
  fontSize: ".8rem"
18878
18872
  }
18879
18873
  })
18880
18874
  }),
18881
- _J && (0, import_jsx_runtime.jsx)(IconBox, {
18875
+ SJ && (0, import_jsx_runtime.jsx)(IconBox, {
18882
18876
  onClick: (e2) => {
18883
- e2.preventDefault(), gJ == null ? void 0 : gJ(i);
18877
+ e2.preventDefault(), xJ == null ? void 0 : xJ(i);
18884
18878
  },
18885
18879
  children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
18886
18880
  sx: {
@@ -18888,9 +18882,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18888
18882
  }
18889
18883
  })
18890
18884
  }),
18891
- bJ && (0, import_jsx_runtime.jsx)(IconBox, {
18885
+ TJ && (0, import_jsx_runtime.jsx)(IconBox, {
18892
18886
  onClick: (e2) => {
18893
- e2.preventDefault(), yJ == null ? void 0 : yJ(i, t);
18887
+ e2.preventDefault(), wJ == null ? void 0 : wJ(i, t);
18894
18888
  },
18895
18889
  children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
18896
18890
  sx: {
@@ -18903,24 +18897,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18903
18897
  f,
18904
18898
  h,
18905
18899
  _,
18906
- CJ,
18907
- SJ,
18900
+ OJ,
18901
+ DJ,
18908
18902
  S,
18909
18903
  J,
18910
- xJ,
18911
- _J,
18912
- bJ,
18904
+ EJ,
18905
+ SJ,
18906
+ TJ,
18913
18907
  w,
18914
18908
  i,
18915
18909
  t,
18916
- gJ,
18917
- yJ,
18918
- DJ,
18919
- OJ,
18920
- kJ
18921
- ]), jJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18910
+ xJ,
18911
+ wJ,
18912
+ MJ,
18913
+ NJ,
18914
+ PJ
18915
+ ]), IJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18922
18916
  t
18923
- ]), MJ = !jJ && !!(c && d), NJ = useJsonViewerStore((e2) => e2.keyRenderer), PJ = (0, import_react.useMemo)(() => ({
18917
+ ]), LJ = !IJ && !!(c && d), RJ = useJsonViewerStore((e2) => e2.keyRenderer), zJ = (0, import_react.useMemo)(() => ({
18924
18918
  path: i,
18925
18919
  inspect: K,
18926
18920
  setInspect: q,
@@ -18952,18 +18946,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18952
18946
  className: "data-key",
18953
18947
  sx: {
18954
18948
  lineHeight: 1.5,
18955
- color: sJ,
18949
+ color: fJ,
18956
18950
  letterSpacing: 0.5,
18957
18951
  opacity: 0.8
18958
18952
  },
18959
18953
  onClick: (0, import_react.useCallback)((e2) => {
18960
- e2.isDefaultPrevented() || jJ || q((e3) => !e3);
18954
+ e2.isDefaultPrevented() || IJ || q((e3) => !e3);
18961
18955
  }, [
18962
- jJ,
18956
+ IJ,
18963
18957
  q
18964
18958
  ]),
18965
18959
  children: [
18966
- MJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18960
+ LJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18967
18961
  className: "data-key-toggle-expanded",
18968
18962
  sx: {
18969
18963
  fontSize: ".8rem",
@@ -18981,27 +18975,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18981
18975
  }
18982
18976
  }) : null,
18983
18977
  (0, import_jsx_runtime.jsx)(Box_default, {
18984
- ref: EJ,
18978
+ ref: jJ,
18985
18979
  className: "data-key-key",
18986
18980
  component: "span",
18987
- children: pJ && O === 0 ? fJ === false ? null : dJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18981
+ children: vJ && O === 0 ? _J === false ? null : gJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18988
18982
  children: [
18989
18983
  '"',
18990
- fJ,
18984
+ _J,
18991
18985
  '"'
18992
18986
  ]
18993
18987
  }) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
18994
- children: fJ
18995
- }) : NJ.when(PJ) ? (0, import_jsx_runtime.jsx)(NJ, {
18996
- ...PJ
18997
- }) : a === void 0 && (mJ ? (0, import_jsx_runtime.jsx)(Box_default, {
18988
+ children: _J
18989
+ }) : RJ.when(zJ) ? (0, import_jsx_runtime.jsx)(RJ, {
18990
+ ...zJ
18991
+ }) : a === void 0 && (yJ ? (0, import_jsx_runtime.jsx)(Box_default, {
18998
18992
  component: "span",
18999
18993
  style: {
19000
- color: cJ,
19001
- userSelect: mJ ? "none" : "auto"
18994
+ color: pJ,
18995
+ userSelect: yJ ? "none" : "auto"
19002
18996
  },
19003
18997
  children: A
19004
- }) : dJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18998
+ }) : gJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
19005
18999
  children: [
19006
19000
  '"',
19007
19001
  A,
@@ -19011,7 +19005,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19011
19005
  children: A
19012
19006
  }))
19013
19007
  }),
19014
- pJ ? fJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
19008
+ vJ ? _J !== false && (0, import_jsx_runtime.jsx)(DataBox, {
19015
19009
  className: "data-key-colon",
19016
19010
  sx: {
19017
19011
  mr: 0.5
@@ -19024,38 +19018,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19024
19018
  ".data-key-key:empty + &": {
19025
19019
  display: "none"
19026
19020
  },
19027
- userSelect: mJ ? "none" : "auto"
19021
+ userSelect: yJ ? "none" : "auto"
19028
19022
  },
19029
19023
  children: ":"
19030
19024
  }),
19031
19025
  c && (0, import_jsx_runtime.jsx)(c, {
19032
- ...PJ
19026
+ ...zJ
19033
19027
  }),
19034
- I && MJ && K && AJ
19028
+ I && LJ && K && FJ
19035
19029
  ]
19036
19030
  }),
19037
19031
  J && S ? f && (0, import_jsx_runtime.jsx)(f, {
19038
19032
  path: i,
19039
19033
  value: w,
19040
19034
  setValue: E,
19041
- abortEditing: OJ,
19042
- commitEditing: kJ
19035
+ abortEditing: NJ,
19036
+ commitEditing: PJ
19043
19037
  }) : s ? (0, import_jsx_runtime.jsx)(s, {
19044
- ...PJ
19038
+ ...zJ
19045
19039
  }) : (0, import_jsx_runtime.jsx)(Box_default, {
19046
19040
  component: "span",
19047
19041
  className: "data-value-fallback",
19048
19042
  children: `fallback: ${t}`
19049
19043
  }),
19050
19044
  d && (0, import_jsx_runtime.jsx)(d, {
19051
- ...PJ
19045
+ ...zJ
19052
19046
  }),
19053
- !o && uJ && (0, import_jsx_runtime.jsx)(DataBox, {
19047
+ !o && hJ && (0, import_jsx_runtime.jsx)(DataBox, {
19054
19048
  children: ","
19055
19049
  }),
19056
- I && MJ && !K && AJ,
19057
- I && !MJ && AJ,
19058
- !I && J && AJ
19050
+ I && LJ && !K && FJ,
19051
+ I && !LJ && FJ,
19052
+ !I && J && FJ
19059
19053
  ]
19060
19054
  });
19061
19055
  }, query = "(prefers-color-scheme: dark)";
@@ -20141,20 +20135,20 @@ ${n}` : "Please fix this error.";
20141
20135
  let i2 = e2;
20142
20136
  i2 && "exception_type" in i2 && (d = i2.exception_type);
20143
20137
  }
20144
- let y, S, w, E, O, A;
20138
+ let y, S, w, E, A, M;
20145
20139
  if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== a || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
20146
- let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), sJ = n.filter(_temp16), cJ = n.filter(_temp17), lJ = n.filter(_temp18), uJ;
20147
- t[17] === s ? uJ = t[18] : (uJ = () => {
20140
+ let e2 = n.filter(_temp8), I2 = n.filter(_temp9), z2 = n.filter(_temp0), U = n.filter(_temp1), K = n.filter(_temp10), q = n.filter(_temp11), J = n.filter(_temp12), $ = n.filter(_temp13), fJ = n.filter(_temp14), pJ = n.filter(_temp15), mJ = n.filter(_temp16), hJ = n.filter(_temp17), gJ = n.filter(_temp18), _J;
20141
+ t[17] === s ? _J = t[18] : (_J = () => {
20148
20142
  s.openApplication("scratchpad");
20149
- }, t[17] = s, t[18] = uJ);
20150
- let dJ = uJ, fJ = () => {
20143
+ }, t[17] = s, t[18] = _J);
20144
+ let vJ = _J, yJ = () => {
20151
20145
  let t2 = [];
20152
- if (sJ.length > 0 || cJ.length > 0) {
20153
- let e3 = sJ.some(_temp19), n2 = !e3 && sJ.some(_temp20);
20146
+ if (mJ.length > 0 || hJ.length > 0) {
20147
+ let e3 = mJ.some(_temp19), n2 = !e3 && mJ.some(_temp20);
20154
20148
  t2.push((0, import_jsx_runtime.jsxs)("div", {
20155
20149
  children: [
20156
- sJ.map(_temp21),
20157
- cJ.map(_temp22),
20150
+ mJ.map(_temp21),
20151
+ hJ.map(_temp22),
20158
20152
  e3 && (0, import_jsx_runtime.jsxs)(Button, {
20159
20153
  size: "xs",
20160
20154
  variant: "outline",
@@ -20185,8 +20179,8 @@ ${n}` : "Please fix this error.";
20185
20179
  }),
20186
20180
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20187
20181
  errors: [
20188
- ...sJ,
20189
- ...cJ
20182
+ ...mJ,
20183
+ ...hJ
20190
20184
  ],
20191
20185
  cellId: i
20192
20186
  })
@@ -20239,7 +20233,7 @@ ${n}` : "Please fix this error.";
20239
20233
  ]
20240
20234
  })
20241
20235
  ]
20242
- }, "setup-refs")), M2.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20236
+ }, "setup-refs")), I2.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20243
20237
  children: [
20244
20238
  (0, import_jsx_runtime.jsx)("p", {
20245
20239
  className: "text-muted-foreground font-medium",
@@ -20247,10 +20241,10 @@ ${n}` : "Please fix this error.";
20247
20241
  }),
20248
20242
  (0, import_jsx_runtime.jsx)("ul", {
20249
20243
  className: "list-disc",
20250
- children: M2.flatMap(_temp24)
20244
+ children: I2.flatMap(_temp24)
20251
20245
  }),
20252
20246
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20253
- errors: M2,
20247
+ errors: I2,
20254
20248
  cellId: i
20255
20249
  }),
20256
20250
  (0, import_jsx_runtime.jsxs)(Tip, {
@@ -20285,17 +20279,17 @@ ${n}` : "Please fix this error.";
20285
20279
  ]
20286
20280
  })
20287
20281
  ]
20288
- }, "cycle")), I2.length > 0) {
20289
- let e3 = I2[0].name;
20282
+ }, "cycle")), z2.length > 0) {
20283
+ let e3 = z2[0].name;
20290
20284
  t2.push((0, import_jsx_runtime.jsxs)("div", {
20291
20285
  children: [
20292
20286
  (0, import_jsx_runtime.jsx)("p", {
20293
20287
  className: "text-muted-foreground font-medium",
20294
20288
  children: "This cell redefines variables from other cells."
20295
20289
  }),
20296
- I2.map(_temp26),
20290
+ z2.map(_temp26),
20297
20291
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20298
- errors: I2,
20292
+ errors: z2,
20299
20293
  cellId: i
20300
20294
  }),
20301
20295
  (0, import_jsx_runtime.jsxs)(Tip, {
@@ -20347,7 +20341,7 @@ ${n}` : "Please fix this error.";
20347
20341
  size: "xs",
20348
20342
  variant: "link",
20349
20343
  className: "my-2 font-normal mx-0 px-0",
20350
- onClick: dJ,
20344
+ onClick: vJ,
20351
20345
  children: [
20352
20346
  (0, import_jsx_runtime.jsx)(NotebookPen, {
20353
20347
  className: "h-3"
@@ -20366,11 +20360,11 @@ ${n}` : "Please fix this error.";
20366
20360
  ]
20367
20361
  }, "multiple-defs"));
20368
20362
  }
20369
- return z.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20363
+ return U.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20370
20364
  children: [
20371
- z.map(_temp27),
20365
+ U.map(_temp27),
20372
20366
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20373
- errors: z,
20367
+ errors: U,
20374
20368
  cellId: i
20375
20369
  }),
20376
20370
  (0, import_jsx_runtime.jsxs)(Tip, {
@@ -20408,17 +20402,17 @@ ${n}` : "Please fix this error.";
20408
20402
  ]
20409
20403
  })
20410
20404
  ]
20411
- }, "import-star")), U.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20405
+ }, "import-star")), K.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20412
20406
  children: [
20413
- U.map(_temp28),
20407
+ K.map(_temp28),
20414
20408
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20415
- errors: U,
20409
+ errors: K,
20416
20410
  cellId: i
20417
20411
  })
20418
20412
  ]
20419
- }, "interruption")), K.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
20413
+ }, "interruption")), q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
20420
20414
  children: [
20421
- K.map((e3, t3) => e3.exception_type === "NameError" && e3.msg.startsWith("name 'mo'") ? (0, import_jsx_runtime.jsx)("li", {
20415
+ q.map((e3, t3) => e3.exception_type === "NameError" && e3.msg.startsWith("name 'mo'") ? (0, import_jsx_runtime.jsx)("li", {
20422
20416
  className: "my-2",
20423
20417
  children: (0, import_jsx_runtime.jsxs)("div", {
20424
20418
  children: [
@@ -20503,61 +20497,61 @@ ${n}` : "Please fix this error.";
20503
20497
  ]
20504
20498
  })
20505
20499
  }, `exception-${t3}`)),
20506
- K.some(_temp29) && (0, import_jsx_runtime.jsx)(Tip, {
20500
+ q.some(_temp29) && (0, import_jsx_runtime.jsx)(Tip, {
20507
20501
  children: "Fix the error in the mentioned cells, or handle the exceptions with try/except blocks."
20508
20502
  }),
20509
20503
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20510
- errors: K,
20504
+ errors: q,
20511
20505
  cellId: i
20512
20506
  })
20513
20507
  ]
20514
- }, "exception")), q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
20508
+ }, "exception")), J.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
20515
20509
  children: [
20516
- q.map(_temp30),
20510
+ J.map(_temp30),
20517
20511
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20518
- errors: q,
20512
+ errors: J,
20519
20513
  cellId: i
20520
20514
  }),
20521
20515
  (0, import_jsx_runtime.jsx)(Tip, {
20522
- children: q.some(_temp31) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution."
20516
+ children: J.some(_temp31) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution."
20523
20517
  })
20524
20518
  ]
20525
- }, "strict-exception")), J.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20519
+ }, "strict-exception")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20526
20520
  children: [
20527
- J.map(_temp32),
20521
+ $.map(_temp32),
20528
20522
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20529
- errors: J,
20523
+ errors: $,
20530
20524
  cellId: i
20531
20525
  })
20532
20526
  ]
20533
- }, "internal")), Q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20527
+ }, "internal")), fJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20534
20528
  children: [
20535
- Q.map(_temp33),
20529
+ fJ.map(_temp33),
20536
20530
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20537
- errors: Q,
20531
+ errors: fJ,
20538
20532
  cellId: i
20539
20533
  })
20540
20534
  ]
20541
- }, "ancestor-prevented")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20535
+ }, "ancestor-prevented")), pJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20542
20536
  children: [
20543
- $.map(_temp34),
20537
+ pJ.map(_temp34),
20544
20538
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20545
- errors: $,
20539
+ errors: pJ,
20546
20540
  cellId: i
20547
20541
  })
20548
20542
  ]
20549
- }, "ancestor-stopped")), lJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20543
+ }, "ancestor-stopped")), gJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20550
20544
  children: [
20551
- lJ.map(_temp35),
20545
+ gJ.map(_temp35),
20552
20546
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20553
- errors: lJ,
20547
+ errors: gJ,
20554
20548
  cellId: i,
20555
20549
  className: "mt-2.5"
20556
20550
  })
20557
20551
  ]
20558
20552
  }, "sql-errors")), t2;
20559
- }, pJ;
20560
- t[19] === v ? pJ = t[20] : (pJ = v && (0, import_jsx_runtime.jsxs)("div", {
20553
+ }, bJ;
20554
+ t[19] === v ? bJ = t[20] : (bJ = v && (0, import_jsx_runtime.jsxs)("div", {
20561
20555
  className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
20562
20556
  children: [
20563
20557
  v,
@@ -20569,37 +20563,37 @@ ${n}` : "Please fix this error.";
20569
20563
  })
20570
20564
  })
20571
20565
  ]
20572
- }), t[19] = v, t[20] = pJ);
20573
- let mJ;
20574
- t[21] !== _ || t[22] !== d ? (mJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20566
+ }), t[19] = v, t[20] = bJ);
20567
+ let xJ;
20568
+ t[21] !== _ || t[22] !== d ? (xJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20575
20569
  className: `font-code font-medium ${_}`,
20576
20570
  children: d
20577
- }), t[21] = _, t[22] = d, t[23] = mJ) : mJ = t[23];
20578
- let hJ;
20579
- t[24] !== pJ || t[25] !== mJ ? (hJ = (0, import_jsx_runtime.jsxs)("div", {
20571
+ }), t[21] = _, t[22] = d, t[23] = xJ) : xJ = t[23];
20572
+ let SJ;
20573
+ t[24] !== bJ || t[25] !== xJ ? (SJ = (0, import_jsx_runtime.jsxs)("div", {
20580
20574
  className: "space-y-0.5",
20581
20575
  children: [
20582
- pJ,
20583
- mJ
20576
+ bJ,
20577
+ xJ
20584
20578
  ]
20585
- }), t[24] = pJ, t[25] = mJ, t[26] = hJ) : hJ = t[26];
20586
- let gJ = hJ;
20587
- y = Alert, E = f, t[27] === a ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", a), t[27] = a, t[28] = O), A = gJ, S = "flex flex-col gap-4", w = fJ(), t[2] = f, t[3] = i, t[4] = s, t[5] = a, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
20588
- } else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
20589
- let M;
20590
- t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
20579
+ }), t[24] = bJ, t[25] = xJ, t[26] = SJ) : SJ = t[26];
20580
+ let CJ = SJ;
20581
+ y = Alert, E = f, t[27] === a ? A = t[28] : (A = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", a), t[27] = a, t[28] = A), M = CJ, S = "flex flex-col gap-4", w = yJ(), t[2] = f, t[3] = i, t[4] = s, t[5] = a, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = A, t[16] = M;
20582
+ } else y = t[11], S = t[12], w = t[13], E = t[14], A = t[15], M = t[16];
20583
+ let I;
20584
+ t[29] !== S || t[30] !== w ? (I = (0, import_jsx_runtime.jsx)("div", {
20591
20585
  className: S,
20592
20586
  children: w
20593
- }), t[29] = S, t[30] = w, t[31] = M) : M = t[31];
20594
- let I;
20595
- return t[32] !== y || t[33] !== E || t[34] !== O || t[35] !== A || t[36] !== M ? (I = (0, import_jsx_runtime.jsxs)(y, {
20587
+ }), t[29] = S, t[30] = w, t[31] = I) : I = t[31];
20588
+ let z;
20589
+ return t[32] !== y || t[33] !== E || t[34] !== A || t[35] !== M || t[36] !== I ? (z = (0, import_jsx_runtime.jsxs)(y, {
20596
20590
  variant: E,
20597
- className: O,
20591
+ className: A,
20598
20592
  children: [
20599
- A,
20600
- M
20593
+ M,
20594
+ I
20601
20595
  ]
20602
- }), t[32] = y, t[33] = E, t[34] = O, t[35] = A, t[36] = M, t[37] = I) : I = t[37], I;
20596
+ }), t[32] = y, t[33] = E, t[34] = A, t[35] = M, t[36] = I, t[37] = z) : z = t[37], z;
20603
20597
  };
20604
20598
  function _temp$10(e) {
20605
20599
  return e.type === "interruption";
@@ -24596,9 +24590,10 @@ ${n}` : "Please fix this error.";
24596
24590
  }
24597
24591
  },
24598
24592
  y: {
24599
- aggregate: "max",
24600
- type: "quantitative",
24601
- axis: null
24593
+ value: 0
24594
+ },
24595
+ y2: {
24596
+ value: 100
24602
24597
  },
24603
24598
  tooltip: [
24604
24599
  {
@@ -24666,9 +24661,10 @@ ${n}` : "Please fix this error.";
24666
24661
  scale: i
24667
24662
  },
24668
24663
  y: {
24669
- aggregate: "max",
24670
- type: "quantitative",
24671
- axis: null
24664
+ value: 0
24665
+ },
24666
+ y2: {
24667
+ value: 100
24672
24668
  },
24673
24669
  tooltip: [
24674
24670
  {
@@ -24813,11 +24809,15 @@ ${n}` : "Please fix this error.";
24813
24809
  };
24814
24810
  }
24815
24811
  var READABLE_TIME_FORMAT = "%-I:%M:%S %p";
24812
+ function isValidBinValue(e) {
24813
+ let { bin_start: t, bin_end: n } = e;
24814
+ return !(t == null || n == null || typeof t == "number" && !Number.isFinite(t) || typeof n == "number" && !Number.isFinite(n));
24815
+ }
24816
24816
  function getPartialTimeTooltip(e) {
24817
24817
  var _a2;
24818
24818
  if (e.length === 0) return {};
24819
- let t = (_a2 = e.find((e2) => e2.bin_start !== null)) == null ? void 0 : _a2.bin_start;
24820
- if (!t || typeof t == "number" && t.toString().length === 4) return {};
24819
+ let t = (_a2 = e.find((e2) => isValidBinValue(e2))) == null ? void 0 : _a2.bin_start;
24820
+ if (t == null || typeof t == "number" && t.toString().length === 4) return {};
24821
24821
  if (typeof t == "string" && t.length === 8) return {
24822
24822
  type: "temporal",
24823
24823
  timeUnit: "hoursminutesseconds",
@@ -24851,7 +24851,7 @@ ${n}` : "Please fix this error.";
24851
24851
  }
24852
24852
  function calculateBinStep(e) {
24853
24853
  if (e.length === 0) return 1;
24854
- let t = e.filter((e2) => e2.bin_start !== null && e2.bin_end !== null);
24854
+ let t = e.filter(isValidBinValue);
24855
24855
  if (t.length === 0) return 1;
24856
24856
  let n = t[0].bin_start, i = t[0].bin_end, a, o;
24857
24857
  if (typeof n == "number" && typeof i == "number") {
@@ -24869,15 +24869,70 @@ ${n}` : "Please fix this error.";
24869
24869
  let c = s / t.length;
24870
24870
  return Math.max(c, 1);
24871
24871
  }
24872
- let MAX_BAR_HEIGHT, BIN_END_EXTENSION_FACTOR, CONCAT_CHART_HEIGHT, CONCAT_CHART_WIDTH, CONCAT_NULL_BAR_WIDTH, BAR_COLOR, UNHOVERED_BAR_OPACITY, NULL_BAR_COLOR, import_compiler_runtime$42;
24873
- MAX_BAR_HEIGHT = 20;
24874
- BIN_END_EXTENSION_FACTOR = 0.1;
24875
- CONCAT_CHART_HEIGHT = 30;
24876
- CONCAT_CHART_WIDTH = 70;
24877
- CONCAT_NULL_BAR_WIDTH = 5;
24878
- BAR_COLOR = mint.mint11;
24879
- UNHOVERED_BAR_OPACITY = 0.6;
24880
- NULL_BAR_COLOR = orange.orange11;
24872
+ var MAX_BAR_HEIGHT = 20, BIN_END_EXTENSION_FACTOR = 0.1, CONCAT_CHART_HEIGHT = 30, CONCAT_CHART_WIDTH = 70, CONCAT_NULL_BAR_WIDTH = 5, BAR_COLOR = mint.mint11, UNHOVERED_BAR_OPACITY = 0.6, NULL_BAR_COLOR = orange.orange11, FULL_HEIGHT_TOOLTIP_Y = {
24873
+ y: {
24874
+ value: 0
24875
+ },
24876
+ y2: {
24877
+ value: CONCAT_CHART_HEIGHT
24878
+ }
24879
+ }, NULLS_TOOLTIP = [
24880
+ {
24881
+ field: "count",
24882
+ type: "quantitative",
24883
+ title: "nulls",
24884
+ format: ",d"
24885
+ }
24886
+ ];
24887
+ function buildNullBarSpec(e) {
24888
+ return {
24889
+ height: CONCAT_CHART_HEIGHT,
24890
+ width: e.width,
24891
+ layer: [
24892
+ {
24893
+ mark: {
24894
+ type: "bar",
24895
+ color: NULL_BAR_COLOR
24896
+ },
24897
+ encoding: {
24898
+ x: {
24899
+ field: "bin_start",
24900
+ type: "nominal",
24901
+ axis: null
24902
+ },
24903
+ y: {
24904
+ field: "count",
24905
+ type: "quantitative",
24906
+ axis: null
24907
+ }
24908
+ }
24909
+ },
24910
+ {
24911
+ mark: {
24912
+ type: "bar",
24913
+ opacity: 0
24914
+ },
24915
+ encoding: {
24916
+ x: {
24917
+ field: "bin_start",
24918
+ type: "nominal",
24919
+ axis: null
24920
+ },
24921
+ ...FULL_HEIGHT_TOOLTIP_Y,
24922
+ tooltip: NULLS_TOOLTIP
24923
+ }
24924
+ }
24925
+ ],
24926
+ ...e.filterNullOnly ? {
24927
+ transform: [
24928
+ {
24929
+ filter: "datum['bin_start'] === null && datum['bin_end'] === null"
24930
+ }
24931
+ ]
24932
+ } : {}
24933
+ };
24934
+ }
24935
+ let import_compiler_runtime$42;
24881
24936
  ColumnChartSpecModel = (_a = class {
24882
24937
  constructor(e, t, n, i, a, o) {
24883
24938
  __publicField(this, "columnStats", /* @__PURE__ */ new Map());
@@ -24913,31 +24968,40 @@ ${n}` : "Please fix this error.";
24913
24968
  };
24914
24969
  }
24915
24970
  getVegaSpec(e) {
24916
- let t = this.columnBinValues.get(e), n = this.columnValueCounts.get(e), i = n && n.length > 0, a = this.dataSpec, o = this.columnStats.get(e);
24917
- i ? a = {
24971
+ let t = this.columnBinValues.get(e), n = this.columnValueCounts.get(e), i = n && n.length > 0, a = this.columnStats.get(e), o = typeof (a == null ? void 0 : a.nulls) == "number" ? a.nulls : 0, s = (t ?? []).filter(isValidBinValue), c = this.dataSpec;
24972
+ i ? c = {
24918
24973
  values: n,
24919
24974
  name: "value_counts"
24920
- } : ((o == null ? void 0 : o.nulls) && (t == null ? void 0 : t.push({
24921
- bin_start: null,
24922
- bin_end: null,
24923
- count: o.nulls
24924
- })), a = {
24925
- values: t,
24975
+ } : t !== void 0 && (c = {
24976
+ values: o > 0 ? [
24977
+ ...s,
24978
+ {
24979
+ bin_start: null,
24980
+ bin_end: null,
24981
+ count: o
24982
+ }
24983
+ ] : s,
24926
24984
  name: "bin_values"
24927
24985
  });
24928
- let s = this.createBase(a), c = this.fieldTypes.get(e);
24929
- if (c === void 0) return null;
24930
- switch (e = e.replaceAll(".", "\\."), e = e.replaceAll("[", "\\[").replaceAll("]", "\\]"), e = e.replaceAll(":", "\\:"), c) {
24986
+ let d = this.createBase(c), f = this.fieldTypes.get(e);
24987
+ if (f === void 0) return null;
24988
+ switch (e = e.replaceAll(".", "\\."), e = e.replaceAll("[", "\\[").replaceAll("]", "\\]"), e = e.replaceAll(":", "\\:"), f) {
24931
24989
  case "date":
24932
24990
  case "datetime":
24933
24991
  case "time": {
24934
- if (!t) {
24992
+ if (t === void 0) {
24935
24993
  let t2 = this.createBase(this.legacyDataSpec), n3 = getScale(this.legacySourceName);
24936
- return getLegacyTemporalSpec(e, c, t2, n3);
24994
+ return getLegacyTemporalSpec(e, f, t2, n3);
24937
24995
  }
24938
- let n2 = getPartialTimeTooltip(t || []);
24939
- if ((t == null ? void 0 : t.length) === 1) return {
24940
- ...s,
24996
+ if (s.length === 0) return o === 0 ? null : {
24997
+ ...d,
24998
+ ...buildNullBarSpec({
24999
+ width: CONCAT_CHART_WIDTH
25000
+ })
25001
+ };
25002
+ let n2 = getPartialTimeTooltip(s);
25003
+ if (s.length === 1 && o === 0) return {
25004
+ ...d,
24941
25005
  mark: {
24942
25006
  type: "bar",
24943
25007
  color: BAR_COLOR
@@ -25031,11 +25095,7 @@ ${n}` : "Please fix this error.";
25031
25095
  type: "ordinal",
25032
25096
  axis: null
25033
25097
  },
25034
- y: {
25035
- aggregate: "max",
25036
- type: "quantitative",
25037
- axis: null
25038
- },
25098
+ ...FULL_HEIGHT_TOOLTIP_Y,
25039
25099
  tooltip: [
25040
25100
  {
25041
25101
  field: "bin_start",
@@ -25061,20 +25121,43 @@ ${n}` : "Please fix this error.";
25061
25121
  ]
25062
25122
  };
25063
25123
  return {
25064
- ...s,
25124
+ ...d,
25065
25125
  ...i2
25066
25126
  };
25067
25127
  }
25068
25128
  case "integer":
25069
25129
  case "number": {
25070
- let n2 = c === "integer" ? ",d" : ".2f";
25071
- if (!t) {
25130
+ let n2 = f === "integer" ? ",d" : ".2f";
25131
+ if (t === void 0) {
25072
25132
  let t2 = this.createBase(this.legacyDataSpec);
25073
25133
  return getLegacyNumericSpec(e, n2, t2);
25074
25134
  }
25075
- let i2 = calculateBinStep(t || []), a2 = {
25135
+ if (s.length === 0) return o === 0 ? null : {
25136
+ ...d,
25137
+ ...buildNullBarSpec({
25138
+ width: CONCAT_CHART_WIDTH
25139
+ })
25140
+ };
25141
+ let i2 = buildNullBarSpec({
25142
+ width: CONCAT_NULL_BAR_WIDTH,
25143
+ filterNullOnly: true
25144
+ }), c2 = calculateBinStep(s), h = [
25145
+ a == null ? void 0 : a.min,
25146
+ a == null ? void 0 : a.p25,
25147
+ a == null ? void 0 : a.median,
25148
+ a == null ? void 0 : a.p75,
25149
+ a == null ? void 0 : a.p95,
25150
+ a == null ? void 0 : a.max
25151
+ ].filter((e2) => typeof e2 == "number" && Number.isFinite(e2)), _ = {
25076
25152
  height: CONCAT_CHART_HEIGHT,
25077
25153
  width: CONCAT_CHART_WIDTH,
25154
+ ...o > 0 ? {
25155
+ transform: [
25156
+ {
25157
+ filter: "datum['bin_start'] !== null && datum['bin_end'] !== null"
25158
+ }
25159
+ ]
25160
+ } : {},
25078
25161
  layer: [
25079
25162
  {
25080
25163
  mark: {
@@ -25087,7 +25170,7 @@ ${n}` : "Please fix this error.";
25087
25170
  type: "quantitative",
25088
25171
  bin: {
25089
25172
  binned: true,
25090
- step: i2
25173
+ step: c2
25091
25174
  }
25092
25175
  },
25093
25176
  x2: {
@@ -25131,31 +25214,20 @@ ${n}` : "Please fix this error.";
25131
25214
  type: "quantitative",
25132
25215
  bin: {
25133
25216
  binned: true,
25134
- step: i2
25217
+ step: c2
25135
25218
  },
25136
25219
  axis: {
25137
25220
  title: null,
25138
25221
  labelFontSize: 8.5,
25139
25222
  labelOpacity: 0.5,
25140
25223
  labelExpr: "(datum.value >= 10000 || datum.value <= -10000) ? format(datum.value, '.2e') : format(datum.value, '.2~f')",
25141
- values: [
25142
- o == null ? void 0 : o.min,
25143
- o == null ? void 0 : o.p25,
25144
- o == null ? void 0 : o.median,
25145
- o == null ? void 0 : o.p75,
25146
- o == null ? void 0 : o.p95,
25147
- o == null ? void 0 : o.max
25148
- ].filter((e2) => e2 !== void 0)
25224
+ values: h
25149
25225
  }
25150
25226
  },
25151
25227
  x2: {
25152
25228
  field: "bin_end_extended"
25153
25229
  },
25154
- y: {
25155
- aggregate: "max",
25156
- type: "quantitative",
25157
- axis: null
25158
- },
25230
+ ...FULL_HEIGHT_TOOLTIP_Y,
25159
25231
  tooltip: [
25160
25232
  {
25161
25233
  field: "bin_range",
@@ -25176,71 +25248,17 @@ ${n}` : "Please fix this error.";
25176
25248
  as: "bin_range"
25177
25249
  },
25178
25250
  {
25179
- calculate: `datum.bin_end + ${i2 * BIN_END_EXTENSION_FACTOR}`,
25251
+ calculate: `datum.bin_end + ${c2 * BIN_END_EXTENSION_FACTOR}`,
25180
25252
  as: "bin_end_extended"
25181
25253
  }
25182
25254
  ]
25183
25255
  }
25184
25256
  ]
25185
- }, d = {
25186
- height: CONCAT_CHART_HEIGHT,
25187
- width: CONCAT_NULL_BAR_WIDTH,
25188
- layer: [
25189
- {
25190
- mark: {
25191
- type: "bar",
25192
- color: NULL_BAR_COLOR
25193
- },
25194
- encoding: {
25195
- x: {
25196
- field: "bin_start",
25197
- type: "nominal",
25198
- axis: null
25199
- },
25200
- y: {
25201
- field: "count",
25202
- type: "quantitative",
25203
- axis: null
25204
- }
25205
- }
25206
- },
25207
- {
25208
- mark: {
25209
- type: "bar",
25210
- opacity: 0
25211
- },
25212
- encoding: {
25213
- x: {
25214
- field: "bin_start",
25215
- type: "nominal",
25216
- axis: null
25217
- },
25218
- y: {
25219
- aggregate: "max",
25220
- type: "quantitative",
25221
- axis: null
25222
- },
25223
- tooltip: [
25224
- {
25225
- field: "count",
25226
- type: "quantitative",
25227
- title: "nulls",
25228
- format: ",d"
25229
- }
25230
- ]
25231
- }
25232
- }
25233
- ],
25234
- transform: [
25235
- {
25236
- filter: "datum['bin_start'] === null && datum['bin_end'] === null"
25237
- }
25238
- ]
25239
- }, f = a2, h = s;
25240
- return (o == null ? void 0 : o.nulls) && (h = {
25241
- ...s,
25257
+ }, v = _, y = d;
25258
+ return o > 0 && (y = {
25259
+ ...d,
25242
25260
  config: {
25243
- ...s.config,
25261
+ ...d.config,
25244
25262
  concat: {
25245
25263
  spacing: 0
25246
25264
  }
@@ -25250,48 +25268,48 @@ ${n}` : "Please fix this error.";
25250
25268
  y: "shared"
25251
25269
  }
25252
25270
  }
25253
- }, f = {
25271
+ }, v = {
25254
25272
  hconcat: [
25255
- d,
25256
- a2
25273
+ i2,
25274
+ _
25257
25275
  ]
25258
25276
  }), {
25259
- ...h,
25260
- ...f
25277
+ ...y,
25278
+ ...v
25261
25279
  };
25262
25280
  }
25263
25281
  case "boolean": {
25264
- if (!(o == null ? void 0 : o.true) || !(o == null ? void 0 : o.false)) return getLegacyBooleanSpec(e, s, MAX_BAR_HEIGHT);
25265
- let t2 = (o == null ? void 0 : o.nulls) ? 11 : MAX_BAR_HEIGHT, n2 = [
25282
+ if (!(a == null ? void 0 : a.true) || !(a == null ? void 0 : a.false)) return getLegacyBooleanSpec(e, d, MAX_BAR_HEIGHT);
25283
+ let t2 = (a == null ? void 0 : a.nulls) ? 11 : MAX_BAR_HEIGHT, n2 = [
25266
25284
  {
25267
25285
  value: "true",
25268
- count: o.true
25286
+ count: a.true
25269
25287
  },
25270
25288
  {
25271
25289
  value: "false",
25272
- count: o.false
25290
+ count: a.false
25273
25291
  }
25274
25292
  ];
25275
- (o == null ? void 0 : o.nulls) && n2.push({
25293
+ (a == null ? void 0 : a.nulls) && n2.push({
25276
25294
  value: "null",
25277
- count: o.nulls
25295
+ count: a.nulls
25278
25296
  });
25279
25297
  let i2 = {
25280
25298
  field: "count",
25281
25299
  type: "quantitative",
25282
25300
  format: ",d"
25283
- }, a2 = [], c2 = Number(o.total) || Number(o.true) + Number(o.false) + Number(o.nulls);
25284
- return Number.isNaN(c2) || (i2 = {
25301
+ }, o2 = [], s2 = Number(a.total) || Number(a.true) + Number(a.false) + Number(a.nulls);
25302
+ return Number.isNaN(s2) || (i2 = {
25285
25303
  field: "count_with_percent",
25286
25304
  type: "nominal",
25287
25305
  title: "Count"
25288
- }, a2 = [
25306
+ }, o2 = [
25289
25307
  {
25290
- calculate: `format(datum.count, ',d') + ' (' + format(datum.count / ${c2} * 100, '.1f') + '%)'`,
25308
+ calculate: `format(datum.count, ',d') + ' (' + format(datum.count / ${s2} * 100, '.1f') + '%)'`,
25291
25309
  as: "count_with_percent"
25292
25310
  }
25293
25311
  ]), {
25294
- ...s,
25312
+ ...d,
25295
25313
  data: {
25296
25314
  values: n2,
25297
25315
  name: "boolean_values"
@@ -25309,7 +25327,7 @@ ${n}` : "Please fix this error.";
25309
25327
  "false",
25310
25328
  "null"
25311
25329
  ],
25312
- scale: (o == null ? void 0 : o.nulls) ? {
25330
+ scale: (a == null ? void 0 : a.nulls) ? {
25313
25331
  paddingInner: 1
25314
25332
  } : void 0,
25315
25333
  axis: {
@@ -25353,7 +25371,7 @@ ${n}` : "Please fix this error.";
25353
25371
  i2
25354
25372
  ]
25355
25373
  },
25356
- transform: a2,
25374
+ transform: o2,
25357
25375
  layer: [
25358
25376
  {
25359
25377
  mark: {
@@ -25383,19 +25401,19 @@ ${n}` : "Please fix this error.";
25383
25401
  }
25384
25402
  case "string": {
25385
25403
  if (!i) return null;
25386
- let t2 = Number(o == null ? void 0 : o.total) || n.reduce((e2, t3) => e2 + t3.count, 0), a2 = "value", c2 = [], d = 0;
25404
+ let t2 = Number(a == null ? void 0 : a.total) || n.reduce((e2, t3) => e2 + t3.count, 0), o2 = "value", s2 = [], c2 = 0;
25387
25405
  for (let e2 of n) {
25388
- let n2 = d + e2.count, i2 = (d + n2) / 2, a3 = (n2 - d) / t2;
25389
- c2.push({
25406
+ let n2 = c2 + e2.count, i2 = (c2 + n2) / 2, a2 = (n2 - c2) / t2;
25407
+ s2.push({
25390
25408
  count: e2.count,
25391
25409
  value: e2.value,
25392
- xStart: d,
25410
+ xStart: c2,
25393
25411
  xEnd: n2,
25394
25412
  xMid: i2,
25395
- proportion: a3
25396
- }), d = n2;
25413
+ proportion: a2
25414
+ }), c2 = n2;
25397
25415
  }
25398
- let f = [
25416
+ let f2 = [
25399
25417
  {
25400
25418
  calculate: t2 ? `datum.count / ${t2}` : "0",
25401
25419
  as: "percent"
@@ -25426,7 +25444,7 @@ ${n}` : "Please fix this error.";
25426
25444
  },
25427
25445
  color: {
25428
25446
  condition: {
25429
- test: `datum.${a2} == "None" || datum.${a2} == "null"`,
25447
+ test: `datum.${o2} == "None" || datum.${o2} == "null"`,
25430
25448
  value: NULL_BAR_COLOR
25431
25449
  },
25432
25450
  value: BAR_COLOR
@@ -25442,7 +25460,7 @@ ${n}` : "Please fix this error.";
25442
25460
  },
25443
25461
  tooltip: [
25444
25462
  {
25445
- field: a2,
25463
+ field: o2,
25446
25464
  type: "nominal",
25447
25465
  title: e
25448
25466
  },
@@ -25479,28 +25497,28 @@ ${n}` : "Please fix this error.";
25479
25497
  },
25480
25498
  transform: [
25481
25499
  {
25482
- calculate: `datum.proportion > 0.5 ? slice(datum.${a2}, 0, 8) : datum.proportion > 0.2 ? slice(datum.${a2}, 0, 3) : datum.proportion > 0.1 ? slice(datum.${a2}, 0, 1) : ''`,
25500
+ calculate: `datum.proportion > 0.5 ? slice(datum.${o2}, 0, 8) : datum.proportion > 0.2 ? slice(datum.${o2}, 0, 3) : datum.proportion > 0.1 ? slice(datum.${o2}, 0, 1) : ''`,
25483
25501
  as: "clipped_text"
25484
25502
  }
25485
25503
  ]
25486
25504
  };
25487
25505
  return {
25488
- ...s,
25506
+ ...d,
25489
25507
  data: {
25490
- values: c2,
25508
+ values: s2,
25491
25509
  name: "value_counts"
25492
25510
  },
25493
25511
  layer: [
25494
25512
  h,
25495
25513
  _
25496
25514
  ],
25497
- transform: f
25515
+ transform: f2
25498
25516
  };
25499
25517
  }
25500
25518
  case "unknown":
25501
25519
  return null;
25502
25520
  default:
25503
- return logNever(c), null;
25521
+ return logNever(f), null;
25504
25522
  }
25505
25523
  }
25506
25524
  }, __publicField(_a, "EMPTY", new _a([], /* @__PURE__ */ new Map(), {}, {}, {}, {
@@ -25964,17 +25982,17 @@ ${n}` : "Please fix this error.";
25964
25982
  });
25965
25983
  }), Objects.entries(t);
25966
25984
  };
25967
- generateColumns = function({ rowHeaders: e, selection: t, fieldTypes: n, chartSpecModel: i, textJustifyColumns: a, wrappedColumns: s, headerTooltip: c, showDataTypes: d, calculateTopKRows: f, fractionDigitsByColumn: h, columnWidths: _ }) {
25968
- let v = new Set(e.map(([e2]) => e2)), y = Maps.keyBy(n, (e2) => e2[0]), S = (t2) => {
25985
+ generateColumns = function({ rowHeaders: e, selection: t, fieldTypes: n, chartSpecModel: i, textJustifyColumns: s, wrappedColumns: c, headerTooltip: d, showDataTypes: f, calculateTopKRows: h, fractionDigitsByColumn: _, columnWidths: v }) {
25986
+ let y = new Set(e.map(([e2]) => e2)), S = Maps.keyBy(n, (e2) => e2[0]), w = (t2) => {
25969
25987
  var _a2, _b;
25970
- let n2 = (_a2 = y.get(t2)) == null ? void 0 : _a2[1], i2 = v.has(t2);
25988
+ let n2 = (_a2 = S.get(t2)) == null ? void 0 : _a2[1], i2 = y.has(t2);
25971
25989
  if (i2 || !n2) {
25972
25990
  let n3 = (_b = e.find(([e2]) => e2 === t2)) == null ? void 0 : _b[1];
25973
25991
  return {
25974
25992
  rowHeader: i2,
25975
25993
  dtype: n3 == null ? void 0 : n3[1],
25976
25994
  dataType: n3 == null ? void 0 : n3[0],
25977
- minFractionDigits: h == null ? void 0 : h[t2]
25995
+ minFractionDigits: _ == null ? void 0 : _[t2]
25978
25996
  };
25979
25997
  }
25980
25998
  return {
@@ -25982,35 +26000,35 @@ ${n}` : "Please fix this error.";
25982
26000
  filterType: getFilterTypeForFieldType(n2[0]),
25983
26001
  dtype: n2[1],
25984
26002
  dataType: n2[0],
25985
- minFractionDigits: h == null ? void 0 : h[t2]
26003
+ minFractionDigits: _ == null ? void 0 : _[t2]
25986
26004
  };
25987
- }, w = (e2) => {
25988
- if (a == null ? void 0 : a[e2]) return a[e2];
25989
- let t2 = S(e2).dataType;
26005
+ }, E = (e2) => {
26006
+ if (s == null ? void 0 : s[e2]) return s[e2];
26007
+ let t2 = w(e2).dataType;
25990
26008
  if (isNumericType(t2)) return "right";
25991
- }, E = [
25992
- ...v,
25993
- ...n.map(([e2]) => e2)
25994
- ], O = E.indexOf(INDEX_COLUMN_NAME);
25995
- O !== -1 && E.splice(O, 1);
25996
- let A = E.map((e2, n2) => ({
26009
+ }, O = [
26010
+ ...y,
26011
+ ...n.filter(([e2]) => y.has(e2) ? (Logger.warn(`Skipping field type for row header column ${e2}`), false) : true).map(([e2]) => e2)
26012
+ ], A = O.indexOf(INDEX_COLUMN_NAME);
26013
+ A !== -1 && O.splice(A, 1);
26014
+ let M = O.map((e2, n2) => ({
25997
26015
  id: e2 || `__m_column__${n2}`,
25998
26016
  accessorFn: (t2) => t2[e2],
25999
- enableHiding: !v.has(e2) && e2 !== "",
26017
+ enableHiding: !y.has(e2) && e2 !== "",
26000
26018
  header: ({ column: t2, table: n3 }) => {
26001
26019
  var _a2;
26002
- let s2 = i == null ? void 0 : i.getColumnStats(e2), h2 = (_a2 = t2.columnDef.meta) == null ? void 0 : _a2.dtype, _2 = c == null ? void 0 : c[e2], y2 = a == null ? void 0 : a[e2], S2 = d && h2 ? (0, import_jsx_runtime.jsxs)("div", {
26003
- className: cn("flex flex-row gap-1", y2 === "center" && "justify-center", y2 === "right" && "justify-end"),
26020
+ let a = i == null ? void 0 : i.getColumnStats(e2), c2 = (_a2 = t2.columnDef.meta) == null ? void 0 : _a2.dtype, _2 = d == null ? void 0 : d[e2], v2 = s == null ? void 0 : s[e2], S2 = f && c2 ? (0, import_jsx_runtime.jsxs)("div", {
26021
+ className: cn("flex flex-row gap-1", v2 === "center" && "justify-center", v2 === "right" && "justify-end"),
26004
26022
  children: [
26005
26023
  (0, import_jsx_runtime.jsx)("span", {
26006
26024
  className: "text-xs text-muted-foreground",
26007
- children: h2
26025
+ children: c2
26008
26026
  }),
26009
- s2 && typeof s2.nulls == "number" && s2.nulls > 0 && (0, import_jsx_runtime.jsxs)("span", {
26027
+ a && typeof a.nulls == "number" && a.nulls > 0 && (0, import_jsx_runtime.jsxs)("span", {
26010
26028
  className: "text-xs text-muted-foreground",
26011
26029
  children: [
26012
26030
  "(nulls: ",
26013
- s2.nulls,
26031
+ a.nulls,
26014
26032
  ")"
26015
26033
  ]
26016
26034
  })
@@ -26026,12 +26044,12 @@ ${n}` : "Please fix this error.";
26026
26044
  }) : w2,
26027
26045
  subheader: S2,
26028
26046
  column: t2,
26029
- justify: y2,
26030
- calculateTopKRows: f,
26047
+ justify: v2,
26048
+ calculateTopKRows: h,
26031
26049
  table: n3
26032
26050
  });
26033
- return v.has(e2) ? E2 : (0, import_jsx_runtime.jsxs)("div", {
26034
- className: cn("flex flex-col h-full pt-0.5 pb-3 justify-between items-start", y2 === "center" && "items-center", y2 === "right" && "items-end"),
26051
+ return y.has(e2) ? E2 : (0, import_jsx_runtime.jsxs)("div", {
26052
+ className: cn("flex flex-col h-full pt-0.5 pb-3 justify-between items-start", v2 === "center" && "items-center", v2 === "right" && "items-end"),
26035
26053
  children: [
26036
26054
  E2,
26037
26055
  (0, import_jsx_runtime.jsx)(TableColumnSummary, {
@@ -26040,42 +26058,42 @@ ${n}` : "Please fix this error.";
26040
26058
  ]
26041
26059
  });
26042
26060
  },
26043
- cell: ({ column: n3, renderValue: i2, getValue: a2, cell: o }) => {
26061
+ cell: ({ column: n3, renderValue: i2, getValue: a, cell: o }) => {
26044
26062
  var _a2, _b;
26045
- function c2() {
26063
+ function s2() {
26046
26064
  var _a3;
26047
26065
  t !== "single-cell" && t !== "multi-cell" || ((_a3 = o.toggleSelected) == null ? void 0 : _a3.call(o));
26048
26066
  }
26049
- let d2 = w(e2), f2 = s == null ? void 0 : s.includes(e2), h2 = ((_a2 = o == null ? void 0 : o.getIsSelected) == null ? void 0 : _a2.call(o)) || false, _2 = (t === "single-cell" || t === "multi-cell") && !h2, y2 = (_b = n3.columnDef.meta) == null ? void 0 : _b.dataType, S2 = renderCellValue({
26067
+ let d2 = E(e2), f2 = c == null ? void 0 : c.includes(e2), h2 = ((_a2 = o == null ? void 0 : o.getIsSelected) == null ? void 0 : _a2.call(o)) || false, _2 = (t === "single-cell" || t === "multi-cell") && !h2, v2 = (_b = n3.columnDef.meta) == null ? void 0 : _b.dataType, S2 = renderCellValue({
26050
26068
  column: n3,
26051
26069
  renderValue: i2,
26052
- getValue: a2,
26053
- selectCell: c2,
26070
+ getValue: a,
26071
+ selectCell: s2,
26054
26072
  cellStyles: getCellStyleClass({
26055
26073
  justify: d2,
26056
26074
  wrapped: f2,
26057
26075
  canSelectCell: _2,
26058
26076
  isSelected: h2,
26059
- isNumeric: isNumericType(y2)
26077
+ isNumeric: isNumericType(v2)
26060
26078
  })
26061
26079
  });
26062
- return v.has(e2) ? (0, import_jsx_runtime.jsx)("b", {
26080
+ return y.has(e2) ? (0, import_jsx_runtime.jsx)("b", {
26063
26081
  children: S2
26064
26082
  }) : S2;
26065
26083
  },
26066
26084
  filterFn: void 0,
26067
26085
  enableSorting: !!e2,
26068
26086
  meta: {
26069
- ...S(e2),
26070
- width: _ == null ? void 0 : _[e2]
26087
+ ...w(e2),
26088
+ width: v == null ? void 0 : v[e2]
26071
26089
  },
26072
- ...(_ == null ? void 0 : _[e2]) === void 0 ? {} : {
26073
- size: _[e2],
26074
- minSize: _[e2],
26075
- maxSize: _[e2]
26090
+ ...(v == null ? void 0 : v[e2]) === void 0 ? {} : {
26091
+ size: v[e2],
26092
+ minSize: v[e2],
26093
+ maxSize: v[e2]
26076
26094
  }
26077
26095
  }));
26078
- return (t === "single" || t === "multi") && A.unshift({
26096
+ return (t === "single" || t === "multi") && M.unshift({
26079
26097
  id: "__select__",
26080
26098
  maxSize: 40,
26081
26099
  header: ({ table: e2 }) => t === "multi" ? (0, import_jsx_runtime.jsx)(Checkbox, {
@@ -26097,7 +26115,7 @@ ${n}` : "Please fix this error.";
26097
26115
  }),
26098
26116
  enableSorting: false,
26099
26117
  enableHiding: false
26100
- }), A;
26118
+ }), M;
26101
26119
  };
26102
26120
  var PopoutColumn = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: i, contentClassName: a, buttonText: s, wrapped: c, children: d }) => {
26103
26121
  let f = i !== void 0 && (i.leading.length > 0 || i.trailing.length > 0) ? n.slice(i.leading.length, n.length - i.trailing.length) : n;
@@ -26636,7 +26654,7 @@ ${n}` : "Please fix this error.";
26636
26654
  function PanelWithForwardedRef({ children: e, className: t = "", collapsedSize: n, collapsible: i, defaultSize: a, forwardedRef: o, id: s, maxSize: c, minSize: d, onCollapse: f, onExpand: h, onResize: _, order: v, style: y, tagName: S = "div", ...w }) {
26637
26655
  let E = (0, import_react.useContext)(PanelGroupContext);
26638
26656
  if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
26639
- let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), sJ = (0, import_react.useRef)({
26657
+ let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), fJ = (0, import_react.useRef)({
26640
26658
  callbacks: {
26641
26659
  onCollapse: f,
26642
26660
  onExpand: h,
@@ -26656,12 +26674,12 @@ ${n}` : "Please fix this error.";
26656
26674
  (0, import_react.useRef)({
26657
26675
  didLogMissingDefaultSizeWarning: false
26658
26676
  }), useIsomorphicLayoutEffect$1(() => {
26659
- let { callbacks: e2, constraints: t2 } = sJ.current, o2 = {
26677
+ let { callbacks: e2, constraints: t2 } = fJ.current, o2 = {
26660
26678
  ...t2
26661
26679
  };
26662
- sJ.current.id = $, sJ.current.idIsFromProps = s !== void 0, sJ.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K(sJ.current, o2);
26680
+ fJ.current.id = $, fJ.current.idIsFromProps = s !== void 0, fJ.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K(fJ.current, o2);
26663
26681
  }), useIsomorphicLayoutEffect$1(() => {
26664
- let e2 = sJ.current;
26682
+ let e2 = fJ.current;
26665
26683
  return q(e2), () => {
26666
26684
  Q(e2);
26667
26685
  };
@@ -26672,25 +26690,25 @@ ${n}` : "Please fix this error.";
26672
26690
  Q
26673
26691
  ]), (0, import_react.useImperativeHandle)(o, () => ({
26674
26692
  collapse: () => {
26675
- O(sJ.current);
26693
+ O(fJ.current);
26676
26694
  },
26677
26695
  expand: (e2) => {
26678
- A(sJ.current, e2);
26696
+ A(fJ.current, e2);
26679
26697
  },
26680
26698
  getId() {
26681
26699
  return $;
26682
26700
  },
26683
26701
  getSize() {
26684
- return M(sJ.current);
26702
+ return M(fJ.current);
26685
26703
  },
26686
26704
  isCollapsed() {
26687
- return U(sJ.current);
26705
+ return U(fJ.current);
26688
26706
  },
26689
26707
  isExpanded() {
26690
- return !U(sJ.current);
26708
+ return !U(fJ.current);
26691
26709
  },
26692
26710
  resize: (e2) => {
26693
- J(sJ.current, e2);
26711
+ J(fJ.current, e2);
26694
26712
  }
26695
26713
  }), [
26696
26714
  O,
@@ -26700,21 +26718,21 @@ ${n}` : "Please fix this error.";
26700
26718
  $,
26701
26719
  J
26702
26720
  ]);
26703
- let cJ = I(sJ.current, a);
26721
+ let pJ = I(fJ.current, a);
26704
26722
  return (0, import_react.createElement)(S, {
26705
26723
  ...w,
26706
26724
  children: e,
26707
26725
  className: t,
26708
26726
  id: $,
26709
26727
  style: {
26710
- ...cJ,
26728
+ ...pJ,
26711
26729
  ...y
26712
26730
  },
26713
26731
  [DATA_ATTRIBUTES.groupId]: z,
26714
26732
  [DATA_ATTRIBUTES.panel]: "",
26715
26733
  [DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
26716
26734
  [DATA_ATTRIBUTES.panelId]: $,
26717
- [DATA_ATTRIBUTES.panelSize]: parseFloat("" + cJ.flexGrow).toFixed(1)
26735
+ [DATA_ATTRIBUTES.panelSize]: parseFloat("" + pJ.flexGrow).toFixed(1)
26718
26736
  });
26719
26737
  }
26720
26738
  Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
@@ -27499,13 +27517,13 @@ ${n}` : "Please fix this error.";
27499
27517
  }, [
27500
27518
  S,
27501
27519
  E
27502
- ]), sJ = (0, import_react.useCallback)((e2) => {
27520
+ ]), fJ = (0, import_react.useCallback)((e2) => {
27503
27521
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27504
27522
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
27505
- }, []), cJ = (0, import_react.useCallback)((e2) => {
27523
+ }, []), pJ = (0, import_react.useCallback)((e2) => {
27506
27524
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27507
27525
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
27508
- }, []), lJ = (0, import_react.useCallback)((e2) => {
27526
+ }, []), mJ = (0, import_react.useCallback)((e2) => {
27509
27527
  let { panelDataArray: t2 } = K.current;
27510
27528
  t2.push(e2), t2.sort((e3, t3) => {
27511
27529
  let n2 = e3.order, i2 = t3.order;
@@ -27537,7 +27555,7 @@ ${n}` : "Please fix this error.";
27537
27555
  e2.layout = [];
27538
27556
  };
27539
27557
  }, []);
27540
- let uJ = (0, import_react.useCallback)((e2) => {
27558
+ let hJ = (0, import_react.useCallback)((e2) => {
27541
27559
  let t2 = false, n2 = y.current;
27542
27560
  return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
27543
27561
  n3.preventDefault();
@@ -27555,7 +27573,7 @@ ${n}` : "Please fix this error.";
27555
27573
  }), I2 = !compareLayouts(f2, A2);
27556
27574
  (isPointerEvent(n3) || isMouseEvent(n3)) && z.current != S2 && (z.current = S2, !I2 && S2 !== 0 ? w2 ? reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_HORIZONTAL_MIN : EXCEEDED_HORIZONTAL_MAX) : reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_VERTICAL_MIN : EXCEEDED_VERTICAL_MAX) : reportConstraintsViolation(e2, 0)), I2 && (O(A2), K.current.layout = A2, d2 && d2(A2), callPanelCallbacks(h2, A2, M.current));
27557
27575
  };
27558
- }, []), dJ = (0, import_react.useCallback)((e2, t2) => {
27576
+ }, []), gJ = (0, import_react.useCallback)((e2, t2) => {
27559
27577
  let { onLayout: n2 } = U.current, { layout: i2, panelDataArray: a2 } = K.current, o2 = a2.map((e3) => e3.constraints), { panelSize: s2, pivotIndices: c2 } = panelDataHelper(a2, e2, i2);
27560
27578
  assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
27561
27579
  let d2 = adjustLayoutByDelta({
@@ -27567,12 +27585,12 @@ ${n}` : "Please fix this error.";
27567
27585
  trigger: "imperative-api"
27568
27586
  });
27569
27587
  compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
27570
- }, []), fJ = (0, import_react.useCallback)((e2, t2) => {
27588
+ }, []), _J = (0, import_react.useCallback)((e2, t2) => {
27571
27589
  let { layout: n2, panelDataArray: i2 } = K.current, { collapsedSize: a2 = 0, collapsible: o2 } = t2, { collapsedSize: s2 = 0, collapsible: c2, maxSize: d2 = 100, minSize: f2 = 0 } = e2.constraints, { panelSize: h2 } = panelDataHelper(i2, e2, n2);
27572
- h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || dJ(e2, s2) : h2 < f2 ? dJ(e2, f2) : h2 > d2 && dJ(e2, d2));
27590
+ h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || gJ(e2, s2) : h2 < f2 ? gJ(e2, f2) : h2 > d2 && gJ(e2, d2));
27573
27591
  }, [
27574
- dJ
27575
- ]), pJ = (0, import_react.useCallback)((e2, t2) => {
27592
+ gJ
27593
+ ]), vJ = (0, import_react.useCallback)((e2, t2) => {
27576
27594
  let { direction: n2 } = U.current, { layout: i2 } = K.current;
27577
27595
  if (!y.current) return;
27578
27596
  let a2 = getResizeHandleElement(e2, y.current);
@@ -27584,14 +27602,14 @@ ${n}` : "Please fix this error.";
27584
27602
  initialCursorPosition: o2,
27585
27603
  initialLayout: i2
27586
27604
  });
27587
- }, []), mJ = (0, import_react.useCallback)(() => {
27605
+ }, []), yJ = (0, import_react.useCallback)(() => {
27588
27606
  w(null);
27589
- }, []), hJ = (0, import_react.useCallback)((e2) => {
27607
+ }, []), bJ = (0, import_react.useCallback)((e2) => {
27590
27608
  let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
27591
27609
  n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
27592
27610
  }, [
27593
27611
  A
27594
- ]), gJ = (0, import_react.useMemo)(() => ({
27612
+ ]), xJ = (0, import_react.useMemo)(() => ({
27595
27613
  collapsePanel: q,
27596
27614
  direction: i,
27597
27615
  dragState: S,
@@ -27599,15 +27617,15 @@ ${n}` : "Please fix this error.";
27599
27617
  getPanelSize: Q,
27600
27618
  getPanelStyle: $,
27601
27619
  groupId: v,
27602
- isPanelCollapsed: sJ,
27603
- isPanelExpanded: cJ,
27604
- reevaluatePanelConstraints: fJ,
27605
- registerPanel: lJ,
27606
- registerResizeHandle: uJ,
27607
- resizePanel: dJ,
27608
- startDragging: pJ,
27609
- stopDragging: mJ,
27610
- unregisterPanel: hJ,
27620
+ isPanelCollapsed: fJ,
27621
+ isPanelExpanded: pJ,
27622
+ reevaluatePanelConstraints: _J,
27623
+ registerPanel: mJ,
27624
+ registerResizeHandle: hJ,
27625
+ resizePanel: gJ,
27626
+ startDragging: vJ,
27627
+ stopDragging: yJ,
27628
+ unregisterPanel: bJ,
27611
27629
  panelGroupElement: y.current
27612
27630
  }), [
27613
27631
  q,
@@ -27617,16 +27635,16 @@ ${n}` : "Please fix this error.";
27617
27635
  Q,
27618
27636
  $,
27619
27637
  v,
27620
- sJ,
27621
- cJ,
27622
27638
  fJ,
27623
- lJ,
27624
- uJ,
27625
- dJ,
27626
27639
  pJ,
27640
+ _J,
27627
27641
  mJ,
27628
- hJ
27629
- ]), _J = {
27642
+ hJ,
27643
+ gJ,
27644
+ vJ,
27645
+ yJ,
27646
+ bJ
27647
+ ]), SJ = {
27630
27648
  display: "flex",
27631
27649
  flexDirection: i === "horizontal" ? "row" : "column",
27632
27650
  height: "100%",
@@ -27634,7 +27652,7 @@ ${n}` : "Please fix this error.";
27634
27652
  width: "100%"
27635
27653
  };
27636
27654
  return (0, import_react.createElement)(PanelGroupContext.Provider, {
27637
- value: gJ
27655
+ value: xJ
27638
27656
  }, (0, import_react.createElement)(h, {
27639
27657
  ..._,
27640
27658
  children: t,
@@ -27642,7 +27660,7 @@ ${n}` : "Please fix this error.";
27642
27660
  id: o,
27643
27661
  ref: y,
27644
27662
  style: {
27645
- ..._J,
27663
+ ...SJ,
27646
27664
  ...f
27647
27665
  },
27648
27666
  [DATA_ATTRIBUTES.group]: "",
@@ -27719,31 +27737,31 @@ ${n}` : "Please fix this error.";
27719
27737
  });
27720
27738
  let O = (0, import_react.useContext)(PanelGroupContext);
27721
27739
  if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
27722
- let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, sJ] = (0, import_react.useState)(false), [cJ, lJ] = (0, import_react.useState)(null), uJ = (0, import_react.useRef)({
27740
+ let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, fJ] = (0, import_react.useState)(false), [pJ, mJ] = (0, import_react.useState)(null), hJ = (0, import_react.useRef)({
27723
27741
  state: J
27724
27742
  });
27725
27743
  useIsomorphicLayoutEffect$1(() => {
27726
- uJ.current.state = J;
27744
+ hJ.current.state = J;
27727
27745
  }), (0, import_react.useEffect)(() => {
27728
- if (n) lJ(null);
27746
+ if (n) mJ(null);
27729
27747
  else {
27730
27748
  let e2 = I(q);
27731
- lJ(() => e2);
27749
+ mJ(() => e2);
27732
27750
  }
27733
27751
  }, [
27734
27752
  n,
27735
27753
  q,
27736
27754
  I
27737
27755
  ]);
27738
- let dJ = (i == null ? void 0 : i.coarse) ?? 15, fJ = (i == null ? void 0 : i.fine) ?? 5;
27756
+ let gJ = (i == null ? void 0 : i.coarse) ?? 15, _J = (i == null ? void 0 : i.fine) ?? 5;
27739
27757
  (0, import_react.useEffect)(() => {
27740
- if (n || cJ == null) return;
27758
+ if (n || pJ == null) return;
27741
27759
  let e2 = w.current;
27742
27760
  assert(e2, "Element ref not attached");
27743
27761
  let t2 = false;
27744
27762
  return registerResizeHandle(q, e2, A, {
27745
- coarse: dJ,
27746
- fine: fJ
27763
+ coarse: gJ,
27764
+ fine: _J
27747
27765
  }, (e3, n2, i2) => {
27748
27766
  if (!n2) {
27749
27767
  Q("inactive");
@@ -27757,8 +27775,8 @@ ${n}` : "Please fix this error.";
27757
27775
  break;
27758
27776
  }
27759
27777
  case "move": {
27760
- let { state: e4 } = uJ.current;
27761
- t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), cJ(i2);
27778
+ let { state: e4 } = hJ.current;
27779
+ t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), pJ(i2);
27762
27780
  break;
27763
27781
  }
27764
27782
  case "up": {
@@ -27770,22 +27788,22 @@ ${n}` : "Please fix this error.";
27770
27788
  }
27771
27789
  });
27772
27790
  }, [
27773
- dJ,
27791
+ gJ,
27774
27792
  A,
27775
27793
  n,
27776
- fJ,
27794
+ _J,
27777
27795
  I,
27778
27796
  q,
27779
- cJ,
27797
+ pJ,
27780
27798
  z,
27781
27799
  U
27782
27800
  ]), useWindowSplitterResizeHandlerBehavior({
27783
27801
  disabled: n,
27784
27802
  handleId: q,
27785
- resizeHandler: cJ,
27803
+ resizeHandler: pJ,
27786
27804
  panelGroupElement: K
27787
27805
  });
27788
- let pJ = {
27806
+ let vJ = {
27789
27807
  touchAction: "none",
27790
27808
  userSelect: "none"
27791
27809
  };
@@ -27795,15 +27813,15 @@ ${n}` : "Please fix this error.";
27795
27813
  className: t,
27796
27814
  id: a,
27797
27815
  onBlur: () => {
27798
- sJ(false), o == null ? void 0 : o();
27816
+ fJ(false), o == null ? void 0 : o();
27799
27817
  },
27800
27818
  onFocus: () => {
27801
- sJ(true), d == null ? void 0 : d();
27819
+ fJ(true), d == null ? void 0 : d();
27802
27820
  },
27803
27821
  ref: w,
27804
27822
  role: "separator",
27805
27823
  style: {
27806
- ...pJ,
27824
+ ...vJ,
27807
27825
  ..._
27808
27826
  },
27809
27827
  tabIndex: v,
@@ -28102,7 +28120,7 @@ ${n}` : "Please fix this error.";
28102
28120
  }, [
28103
28121
  h
28104
28122
  ]), k(() => {
28105
- U(6, cJ);
28123
+ U(6, pJ);
28106
28124
  }, []);
28107
28125
  let K = import_react.useMemo(() => ({
28108
28126
  subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
@@ -28111,7 +28129,7 @@ ${n}` : "Please fix this error.";
28111
28129
  var _a2;
28112
28130
  var a2, o2, s2;
28113
28131
  if (!Object.is(n.current[e2], t2)) {
28114
- if (n.current[e2] = t2, e2 === "search") sJ(), Q(), U(1, $);
28132
+ if (n.current[e2] = t2, e2 === "search") fJ(), Q(), U(1, $);
28115
28133
  else if (e2 === "value") {
28116
28134
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
28117
28135
  let e3 = document.getElementById(I);
@@ -28119,8 +28137,8 @@ ${n}` : "Please fix this error.";
28119
28137
  }
28120
28138
  if (U(7, () => {
28121
28139
  var _a3;
28122
- n.current.selectedItemId = (_a3 = lJ()) == null ? void 0 : _a3.id, K.emit();
28123
- }), i2 || U(5, cJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
28140
+ n.current.selectedItemId = (_a3 = mJ()) == null ? void 0 : _a3.id, K.emit();
28141
+ }), i2 || U(5, pJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
28124
28142
  let e3 = t2 ?? "";
28125
28143
  (s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
28126
28144
  return;
@@ -28145,12 +28163,12 @@ ${n}` : "Please fix this error.";
28145
28163
  item: (e2, t2) => (i.current.add(e2), t2 && (a.current.has(t2) ? a.current.get(t2).add(e2) : a.current.set(t2, /* @__PURE__ */ new Set([
28146
28164
  e2
28147
28165
  ]))), U(3, () => {
28148
- sJ(), Q(), n.current.value || $(), K.emit();
28166
+ fJ(), Q(), n.current.value || $(), K.emit();
28149
28167
  }), () => {
28150
28168
  o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
28151
- let t3 = lJ();
28169
+ let t3 = mJ();
28152
28170
  U(4, () => {
28153
- sJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
28171
+ fJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
28154
28172
  });
28155
28173
  }),
28156
28174
  group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
@@ -28183,7 +28201,7 @@ ${n}` : "Please fix this error.";
28183
28201
  ]);
28184
28202
  });
28185
28203
  let i2 = z.current;
28186
- uJ().sort((t3, n2) => {
28204
+ hJ().sort((t3, n2) => {
28187
28205
  let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
28188
28206
  return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
28189
28207
  }).forEach((e3) => {
@@ -28197,10 +28215,10 @@ ${n}` : "Please fix this error.";
28197
28215
  }
28198
28216
  function $() {
28199
28217
  var _a2;
28200
- let e2 = (_a2 = uJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
28218
+ let e2 = (_a2 = hJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
28201
28219
  K.setState("value", e2 || void 0);
28202
28220
  }
28203
- function sJ() {
28221
+ function fJ() {
28204
28222
  var _a2, _b;
28205
28223
  if (!n.current.search || c.current.shouldFilter === false) {
28206
28224
  n.current.filtered.count = i.current.size;
@@ -28218,43 +28236,43 @@ ${n}` : "Please fix this error.";
28218
28236
  }
28219
28237
  n.current.filtered.count = e2;
28220
28238
  }
28221
- function cJ() {
28239
+ function pJ() {
28222
28240
  var _a2, _b;
28223
28241
  var e2;
28224
- let t2 = lJ();
28242
+ let t2 = mJ();
28225
28243
  t2 && (((_a2 = t2.parentElement) == null ? void 0 : _a2.firstChild) === t2 && ((e2 = (_b = t2.closest(N$1)) == null ? void 0 : _b.querySelector(be)) == null || e2.scrollIntoView({
28226
28244
  block: "nearest"
28227
28245
  })), t2.scrollIntoView({
28228
28246
  block: "nearest"
28229
28247
  }));
28230
28248
  }
28231
- function lJ() {
28249
+ function mJ() {
28232
28250
  var _a2;
28233
28251
  return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
28234
28252
  }
28235
- function uJ() {
28253
+ function hJ() {
28236
28254
  var _a2;
28237
28255
  return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
28238
28256
  }
28239
- function dJ(e2) {
28240
- let t2 = uJ()[e2];
28257
+ function gJ(e2) {
28258
+ let t2 = hJ()[e2];
28241
28259
  t2 && K.setState("value", t2.getAttribute(T));
28242
28260
  }
28243
- function fJ(e2) {
28261
+ function _J(e2) {
28244
28262
  var t2;
28245
- let n2 = lJ(), i2 = uJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28263
+ let n2 = mJ(), i2 = hJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28246
28264
  (t2 = c.current) != null && t2.loop && (o2 = a2 + e2 < 0 ? i2[i2.length - 1] : a2 + e2 === i2.length ? i2[0] : i2[a2 + e2]), o2 && K.setState("value", o2.getAttribute(T));
28247
28265
  }
28248
- function pJ(e2) {
28266
+ function vJ(e2) {
28249
28267
  var _a2;
28250
- let t2 = (_a2 = lJ()) == null ? void 0 : _a2.closest(N$1), n2;
28268
+ let t2 = (_a2 = mJ()) == null ? void 0 : _a2.closest(N$1), n2;
28251
28269
  for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
28252
- n2 ? K.setState("value", n2.getAttribute(T)) : fJ(e2);
28270
+ n2 ? K.setState("value", n2.getAttribute(T)) : _J(e2);
28253
28271
  }
28254
- let mJ = () => dJ(uJ().length - 1), hJ = (e2) => {
28255
- e2.preventDefault(), e2.metaKey ? mJ() : e2.altKey ? pJ(1) : fJ(1);
28256
- }, gJ = (e2) => {
28257
- e2.preventDefault(), e2.metaKey ? dJ(0) : e2.altKey ? pJ(-1) : fJ(-1);
28272
+ let yJ = () => gJ(hJ().length - 1), bJ = (e2) => {
28273
+ e2.preventDefault(), e2.metaKey ? yJ() : e2.altKey ? vJ(1) : _J(1);
28274
+ }, xJ = (e2) => {
28275
+ e2.preventDefault(), e2.metaKey ? gJ(0) : e2.altKey ? vJ(-1) : _J(-1);
28258
28276
  };
28259
28277
  return import_react.createElement(Primitive.div, {
28260
28278
  ref: t,
@@ -28268,27 +28286,27 @@ ${n}` : "Please fix this error.";
28268
28286
  if (!(e2.defaultPrevented || n2)) switch (e2.key) {
28269
28287
  case "n":
28270
28288
  case "j":
28271
- E && e2.ctrlKey && hJ(e2);
28289
+ E && e2.ctrlKey && bJ(e2);
28272
28290
  break;
28273
28291
  case "ArrowDown":
28274
- hJ(e2);
28292
+ bJ(e2);
28275
28293
  break;
28276
28294
  case "p":
28277
28295
  case "k":
28278
- E && e2.ctrlKey && gJ(e2);
28296
+ E && e2.ctrlKey && xJ(e2);
28279
28297
  break;
28280
28298
  case "ArrowUp":
28281
- gJ(e2);
28299
+ xJ(e2);
28282
28300
  break;
28283
28301
  case "Home":
28284
- e2.preventDefault(), dJ(0);
28302
+ e2.preventDefault(), gJ(0);
28285
28303
  break;
28286
28304
  case "End":
28287
- e2.preventDefault(), mJ();
28305
+ e2.preventDefault(), yJ();
28288
28306
  break;
28289
28307
  case "Enter": {
28290
28308
  e2.preventDefault();
28291
- let t3 = lJ();
28309
+ let t3 = mJ();
28292
28310
  if (t3) {
28293
28311
  let e3 = new Event(Z);
28294
28312
  t3.dispatchEvent(e3);
@@ -28697,153 +28715,153 @@ ${n}` : "Please fix this error.";
28697
28715
  Combobox = (e) => {
28698
28716
  let t = (0, import_compiler_runtime$35.c)(106), n, i, a, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J, Q;
28699
28717
  t[0] === e ? (n = t[1], i = t[2], a = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22], J = t[23], Q = t[24]) : ({ children: n, displayValue: d, className: a, placeholder: E, value: Q, defaultValue: c, onValueChange: S, multiple: I, shouldFilter: z, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: U, search: M, onSearchChange: y, emptyState: K, chips: q, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: J, renderValue: O, ...A } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q, t[23] = J, t[24] = Q);
28700
- let $ = I === void 0 ? false : I, sJ = z === void 0 ? true : z, cJ = U === void 0 ? "Search..." : U, lJ = K === void 0 ? "Nothing found." : K, uJ = q === void 0 ? false : q, dJ = J === void 0 ? false : J, fJ = s ?? false, pJ;
28701
- t[25] !== v || t[26] !== w || t[27] !== fJ ? (pJ = {
28718
+ let $ = I === void 0 ? false : I, fJ = z === void 0 ? true : z, pJ = U === void 0 ? "Search..." : U, hJ = K === void 0 ? "Nothing found." : K, gJ = q === void 0 ? false : q, _J = J === void 0 ? false : J, vJ = s ?? false, yJ;
28719
+ t[25] !== v || t[26] !== w || t[27] !== vJ ? (yJ = {
28702
28720
  prop: w,
28703
- defaultProp: fJ,
28721
+ defaultProp: vJ,
28704
28722
  onChange: v
28705
- }, t[25] = v, t[26] = w, t[27] = fJ, t[28] = pJ) : pJ = t[28];
28706
- let [mJ, hJ] = useControllableState(pJ), gJ = mJ === void 0 ? false : mJ, _J;
28707
- t[29] === S ? _J = t[30] : (_J = (e2) => {
28723
+ }, t[25] = v, t[26] = w, t[27] = vJ, t[28] = yJ) : yJ = t[28];
28724
+ let [bJ, xJ] = useControllableState(yJ), SJ = bJ === void 0 ? false : bJ, CJ;
28725
+ t[29] === S ? CJ = t[30] : (CJ = (e2) => {
28708
28726
  S == null ? void 0 : S(e2);
28709
- }, t[29] = S, t[30] = _J);
28710
- let vJ;
28711
- t[31] !== c || t[32] !== _J || t[33] !== Q ? (vJ = {
28727
+ }, t[29] = S, t[30] = CJ);
28728
+ let wJ;
28729
+ t[31] !== c || t[32] !== CJ || t[33] !== Q ? (wJ = {
28712
28730
  prop: Q,
28713
28731
  defaultProp: c,
28714
- onChange: _J
28715
- }, t[31] = c, t[32] = _J, t[33] = Q, t[34] = vJ) : vJ = t[34];
28716
- let [yJ, bJ] = useControllableState(vJ), xJ;
28717
- t[35] === yJ ? xJ = t[36] : (xJ = (e2) => Array.isArray(yJ) ? yJ.includes(e2) : yJ === e2, t[35] = yJ, t[36] = xJ);
28718
- let SJ = xJ, CJ;
28719
- t[37] !== _ || t[38] !== $ || t[39] !== hJ || t[40] !== bJ || t[41] !== yJ ? (CJ = (e2) => {
28732
+ onChange: CJ
28733
+ }, t[31] = c, t[32] = CJ, t[33] = Q, t[34] = wJ) : wJ = t[34];
28734
+ let [TJ, EJ] = useControllableState(wJ), DJ;
28735
+ t[35] === TJ ? DJ = t[36] : (DJ = (e2) => Array.isArray(TJ) ? TJ.includes(e2) : TJ === e2, t[35] = TJ, t[36] = DJ);
28736
+ let OJ = DJ, kJ;
28737
+ t[37] !== _ || t[38] !== $ || t[39] !== xJ || t[40] !== EJ || t[41] !== TJ ? (kJ = (e2) => {
28720
28738
  let t2 = e2;
28721
- if ($) if (Array.isArray(yJ)) if (yJ.includes(t2)) {
28722
- let n2 = yJ.filter((t3) => t3 !== e2);
28739
+ if ($) if (Array.isArray(TJ)) if (TJ.includes(t2)) {
28740
+ let n2 = TJ.filter((t3) => t3 !== e2);
28723
28741
  t2 = n2.length > 0 ? n2 : [];
28724
28742
  } else t2 = [
28725
- ...yJ,
28743
+ ...TJ,
28726
28744
  t2
28727
28745
  ];
28728
28746
  else t2 = [
28729
28747
  t2
28730
28748
  ];
28731
- else yJ === e2 && (t2 = null);
28732
- bJ(t2), (_ ?? $) || hJ(false);
28733
- }, t[37] = _, t[38] = $, t[39] = hJ, t[40] = bJ, t[41] = yJ, t[42] = CJ) : CJ = t[42];
28734
- let wJ = CJ, TJ;
28735
- t[43] !== uJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== yJ ? (TJ = () => $ && uJ && E ? E : yJ == null ? E ?? "--" : Array.isArray(yJ) ? yJ.length === 0 ? E ?? "--" : yJ.length === 1 && d !== void 0 ? d(yJ[0]) : `${yJ.length} selected` : d === void 0 ? E ?? "--" : d(yJ), t[43] = uJ, t[44] = d, t[45] = $, t[46] = E, t[47] = yJ, t[48] = TJ) : TJ = t[48];
28736
- let EJ = TJ, DJ;
28737
- t[49] !== wJ || t[50] !== SJ ? (DJ = {
28738
- isSelected: SJ,
28739
- onSelect: wJ
28740
- }, t[49] = wJ, t[50] = SJ, t[51] = DJ) : DJ = t[51];
28741
- let kJ = DJ, AJ;
28742
- t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (AJ = cn("relative"), t[52] = AJ) : AJ = t[52];
28743
- let jJ;
28744
- t[53] !== dJ || t[54] !== hJ ? (jJ = (e2) => {
28745
- dJ && e2 || hJ(e2);
28746
- }, t[53] = dJ, t[54] = hJ, t[55] = jJ) : jJ = t[55];
28747
- let MJ = dJ && "cursor-not-allowed opacity-50", NJ;
28748
- t[56] !== a || t[57] !== MJ ? (NJ = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", MJ, a), t[56] = a, t[57] = MJ, t[58] = NJ) : NJ = t[58];
28749
- let FJ;
28750
- t[59] !== O || t[60] !== EJ || t[61] !== yJ ? (FJ = O ? O(yJ ?? null) : EJ(), t[59] = O, t[60] = EJ, t[61] = yJ, t[62] = FJ) : FJ = t[62];
28749
+ else TJ === e2 && (t2 = null);
28750
+ EJ(t2), (_ ?? $) || xJ(false);
28751
+ }, t[37] = _, t[38] = $, t[39] = xJ, t[40] = EJ, t[41] = TJ, t[42] = kJ) : kJ = t[42];
28752
+ let AJ = kJ, jJ;
28753
+ t[43] !== gJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== TJ ? (jJ = () => $ && gJ && E ? E : TJ == null ? E ?? "--" : Array.isArray(TJ) ? TJ.length === 0 ? E ?? "--" : TJ.length === 1 && d !== void 0 ? d(TJ[0]) : `${TJ.length} selected` : d === void 0 ? E ?? "--" : d(TJ), t[43] = gJ, t[44] = d, t[45] = $, t[46] = E, t[47] = TJ, t[48] = jJ) : jJ = t[48];
28754
+ let MJ = jJ, NJ;
28755
+ t[49] !== AJ || t[50] !== OJ ? (NJ = {
28756
+ isSelected: OJ,
28757
+ onSelect: AJ
28758
+ }, t[49] = AJ, t[50] = OJ, t[51] = NJ) : NJ = t[51];
28759
+ let PJ = NJ, FJ;
28760
+ t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (FJ = cn("relative"), t[52] = FJ) : FJ = t[52];
28751
28761
  let IJ;
28752
- t[63] === FJ ? IJ = t[64] : (IJ = (0, import_jsx_runtime.jsx)("span", {
28762
+ t[53] !== _J || t[54] !== xJ ? (IJ = (e2) => {
28763
+ _J && e2 || xJ(e2);
28764
+ }, t[53] = _J, t[54] = xJ, t[55] = IJ) : IJ = t[55];
28765
+ let LJ = _J && "cursor-not-allowed opacity-50", RJ;
28766
+ t[56] !== a || t[57] !== LJ ? (RJ = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", LJ, a), t[56] = a, t[57] = LJ, t[58] = RJ) : RJ = t[58];
28767
+ let zJ;
28768
+ t[59] !== O || t[60] !== MJ || t[61] !== TJ ? (zJ = O ? O(TJ ?? null) : MJ(), t[59] = O, t[60] = MJ, t[61] = TJ, t[62] = zJ) : zJ = t[62];
28769
+ let VJ;
28770
+ t[63] === zJ ? VJ = t[64] : (VJ = (0, import_jsx_runtime.jsx)("span", {
28753
28771
  className: "truncate flex-1 min-w-0",
28754
- children: FJ
28755
- }), t[63] = FJ, t[64] = IJ);
28756
- let RJ;
28757
- t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (RJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28772
+ children: zJ
28773
+ }), t[63] = zJ, t[64] = VJ);
28774
+ let UJ;
28775
+ t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (UJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28758
28776
  className: "ml-3 w-4 h-4 opacity-50 shrink-0"
28759
- }), t[65] = RJ) : RJ = t[65];
28760
- let zJ;
28761
- t[66] !== dJ || t[67] !== h || t[68] !== gJ || t[69] !== NJ || t[70] !== IJ ? (zJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28777
+ }), t[65] = UJ) : UJ = t[65];
28778
+ let WJ;
28779
+ t[66] !== _J || t[67] !== h || t[68] !== SJ || t[69] !== RJ || t[70] !== VJ ? (WJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28762
28780
  asChild: true,
28763
28781
  children: (0, import_jsx_runtime.jsxs)("button", {
28764
28782
  id: h,
28765
28783
  type: "button",
28766
- className: NJ,
28767
- "aria-expanded": gJ,
28768
- "aria-disabled": dJ,
28784
+ className: RJ,
28785
+ "aria-expanded": SJ,
28786
+ "aria-disabled": _J,
28769
28787
  children: [
28770
- IJ,
28771
- RJ
28788
+ VJ,
28789
+ UJ
28772
28790
  ]
28773
28791
  })
28774
- }), t[66] = dJ, t[67] = h, t[68] = gJ, t[69] = NJ, t[70] = IJ, t[71] = zJ) : zJ = t[71];
28775
- let BJ;
28776
- t[72] !== cJ || t[73] !== y || t[74] !== M ? (BJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28777
- placeholder: cJ,
28792
+ }), t[66] = _J, t[67] = h, t[68] = SJ, t[69] = RJ, t[70] = VJ, t[71] = WJ) : WJ = t[71];
28793
+ let GJ;
28794
+ t[72] !== pJ || t[73] !== y || t[74] !== M ? (GJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28795
+ placeholder: pJ,
28778
28796
  rootClassName: "px-1 h-8",
28779
28797
  autoFocus: true,
28780
28798
  value: M,
28781
28799
  onValueChange: y
28782
- }), t[72] = cJ, t[73] = y, t[74] = M, t[75] = BJ) : BJ = t[75];
28783
- let VJ;
28784
- t[76] === lJ ? VJ = t[77] : (VJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28785
- children: lJ
28786
- }), t[76] = lJ, t[77] = VJ);
28787
- let HJ;
28788
- t[78] !== n || t[79] !== kJ ? (HJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28789
- value: kJ,
28800
+ }), t[72] = pJ, t[73] = y, t[74] = M, t[75] = GJ) : GJ = t[75];
28801
+ let KJ;
28802
+ t[76] === hJ ? KJ = t[77] : (KJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28803
+ children: hJ
28804
+ }), t[76] = hJ, t[77] = KJ);
28805
+ let qJ;
28806
+ t[78] !== n || t[79] !== PJ ? (qJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28807
+ value: PJ,
28790
28808
  children: n
28791
- }), t[78] = n, t[79] = kJ, t[80] = HJ) : HJ = t[80];
28792
- let UJ;
28793
- t[81] !== VJ || t[82] !== HJ ? (UJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28809
+ }), t[78] = n, t[79] = PJ, t[80] = qJ) : qJ = t[80];
28810
+ let JJ;
28811
+ t[81] !== KJ || t[82] !== qJ ? (JJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28794
28812
  className: "max-h-60 py-.5",
28795
28813
  children: [
28796
- VJ,
28797
- HJ
28814
+ KJ,
28815
+ qJ
28798
28816
  ]
28799
- }), t[81] = VJ, t[82] = HJ, t[83] = UJ) : UJ = t[83];
28800
- let WJ;
28801
- t[84] !== f || t[85] !== sJ || t[86] !== BJ || t[87] !== UJ ? (WJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28817
+ }), t[81] = KJ, t[82] = qJ, t[83] = JJ) : JJ = t[83];
28818
+ let YJ;
28819
+ t[84] !== f || t[85] !== fJ || t[86] !== GJ || t[87] !== JJ ? (YJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28802
28820
  className: "w-full min-w-(--radix-popover-trigger-width) p-0",
28803
28821
  align: "start",
28804
28822
  children: (0, import_jsx_runtime.jsxs)(Command, {
28805
28823
  filter: f,
28806
- shouldFilter: sJ,
28824
+ shouldFilter: fJ,
28807
28825
  children: [
28808
- BJ,
28809
- UJ
28826
+ GJ,
28827
+ JJ
28810
28828
  ]
28811
28829
  })
28812
- }), t[84] = f, t[85] = sJ, t[86] = BJ, t[87] = UJ, t[88] = WJ) : WJ = t[88];
28813
- let GJ;
28814
- t[89] !== gJ || t[90] !== jJ || t[91] !== zJ || t[92] !== WJ ? (GJ = (0, import_jsx_runtime.jsxs)(Popover, {
28815
- open: gJ,
28816
- onOpenChange: jJ,
28830
+ }), t[84] = f, t[85] = fJ, t[86] = GJ, t[87] = JJ, t[88] = YJ) : YJ = t[88];
28831
+ let XJ;
28832
+ t[89] !== SJ || t[90] !== IJ || t[91] !== WJ || t[92] !== YJ ? (XJ = (0, import_jsx_runtime.jsxs)(Popover, {
28833
+ open: SJ,
28834
+ onOpenChange: IJ,
28817
28835
  children: [
28818
- zJ,
28819
- WJ
28836
+ WJ,
28837
+ YJ
28820
28838
  ]
28821
- }), t[89] = gJ, t[90] = jJ, t[91] = zJ, t[92] = WJ, t[93] = GJ) : GJ = t[93];
28822
- let KJ;
28823
- t[94] !== uJ || t[95] !== i || t[96] !== dJ || t[97] !== d || t[98] !== wJ || t[99] !== $ || t[100] !== yJ ? (KJ = $ && uJ && (0, import_jsx_runtime.jsx)("div", {
28839
+ }), t[89] = SJ, t[90] = IJ, t[91] = WJ, t[92] = YJ, t[93] = XJ) : XJ = t[93];
28840
+ let ZJ;
28841
+ t[94] !== gJ || t[95] !== i || t[96] !== _J || t[97] !== d || t[98] !== AJ || t[99] !== $ || t[100] !== TJ ? (ZJ = $ && gJ && (0, import_jsx_runtime.jsx)("div", {
28824
28842
  className: cn("flex flex-col gap-1 items-start", i),
28825
- children: Array.isArray(yJ) && yJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28843
+ children: Array.isArray(TJ) && TJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28826
28844
  variant: "secondary",
28827
28845
  children: [
28828
28846
  (d == null ? void 0 : d(e2)) ?? String(e2),
28829
28847
  (0, import_jsx_runtime.jsx)(CircleX, {
28830
28848
  onClick: () => {
28831
- dJ || wJ(e2);
28849
+ _J || AJ(e2);
28832
28850
  },
28833
- className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", dJ && "pointer-events-none")
28851
+ className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", _J && "pointer-events-none")
28834
28852
  })
28835
28853
  ]
28836
28854
  }, String(e2)))
28837
- }), t[94] = uJ, t[95] = i, t[96] = dJ, t[97] = d, t[98] = wJ, t[99] = $, t[100] = yJ, t[101] = KJ) : KJ = t[101];
28838
- let qJ;
28839
- return t[102] !== A || t[103] !== GJ || t[104] !== KJ ? (qJ = (0, import_jsx_runtime.jsxs)("div", {
28840
- className: AJ,
28855
+ }), t[94] = gJ, t[95] = i, t[96] = _J, t[97] = d, t[98] = AJ, t[99] = $, t[100] = TJ, t[101] = ZJ) : ZJ = t[101];
28856
+ let QJ;
28857
+ return t[102] !== A || t[103] !== XJ || t[104] !== ZJ ? (QJ = (0, import_jsx_runtime.jsxs)("div", {
28858
+ className: FJ,
28841
28859
  ...A,
28842
28860
  children: [
28843
- GJ,
28844
- KJ
28861
+ XJ,
28862
+ ZJ
28845
28863
  ]
28846
- }), t[102] = A, t[103] = GJ, t[104] = KJ, t[105] = qJ) : qJ = t[105], qJ;
28864
+ }), t[102] = A, t[103] = XJ, t[104] = ZJ, t[105] = QJ) : QJ = t[105], QJ;
28847
28865
  };
28848
28866
  ComboboxItem = import_react.forwardRef((e, t) => {
28849
28867
  let n = (0, import_compiler_runtime$35.c)(20), { children: i, className: a, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
@@ -29594,12 +29612,12 @@ ${n}` : "Please fix this error.";
29594
29612
  onChange: E,
29595
29613
  className: s
29596
29614
  }, c), t[31] = s, t[32] = n, t[33] = E, t[34] = c, t[35] = A, t[36] = M) : M = t[36];
29597
- let z;
29598
- return t[37] !== S || t[38] !== M ? (z = (0, import_jsx_runtime.jsx)("div", {
29615
+ let I;
29616
+ return t[37] !== S || t[38] !== M ? (I = (0, import_jsx_runtime.jsx)("div", {
29599
29617
  onPasteCapture: S,
29600
29618
  className: "contents",
29601
29619
  children: M
29602
- }), t[37] = S, t[38] = M, t[39] = z) : z = t[39], z;
29620
+ }), t[37] = S, t[38] = M, t[39] = I) : I = t[39], I;
29603
29621
  };
29604
29622
  function _temp$5(e) {
29605
29623
  return e + 1;
@@ -29899,17 +29917,17 @@ ${n}` : "Please fix this error.";
29899
29917
  searchQuery: M,
29900
29918
  filteredOptions: z
29901
29919
  }, t[9] = z, t[10] = n, t[11] = _, t[12] = M, t[13] = i, t[14] = U) : U = t[14];
29902
- let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), sJ;
29903
- t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (sJ = {
29920
+ let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), fJ;
29921
+ t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (fJ = {
29904
29922
  value: i,
29905
29923
  onChange: a,
29906
29924
  multiple: o,
29907
29925
  maxSelections: s,
29908
29926
  allowSelectNone: c,
29909
29927
  selected: y
29910
- }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = sJ) : sJ = t[21];
29911
- let { isChecked: cJ, toggle: lJ } = useToggle(sJ), uJ;
29912
- t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (uJ = {
29928
+ }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = fJ) : fJ = t[21];
29929
+ let { isChecked: pJ, toggle: mJ } = useToggle(fJ), hJ;
29930
+ t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (hJ = {
29913
29931
  value: i,
29914
29932
  onChange: a,
29915
29933
  multiple: o,
@@ -29917,24 +29935,24 @@ ${n}` : "Please fix this error.";
29917
29935
  filteredOptions: z,
29918
29936
  searchQuery: M,
29919
29937
  maxSelections: s
29920
- }, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = uJ) : uJ = t[29];
29921
- let { bulkActions: dJ } = useBulk(uJ), fJ;
29922
- t[30] !== J || t[31] !== I ? (fJ = (e2) => {
29938
+ }, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = hJ) : hJ = t[29];
29939
+ let { bulkActions: gJ } = useBulk(hJ), _J;
29940
+ t[30] !== J || t[31] !== I ? (_J = (e2) => {
29923
29941
  I(e2), e2 === "" && J();
29924
- }, t[30] = J, t[31] = I, t[32] = fJ) : fJ = t[32];
29925
- let pJ = fJ, mJ;
29926
- return t[33] !== dJ || t[34] !== cJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== pJ || t[41] !== lJ || t[42] !== Q ? (mJ = {
29942
+ }, t[30] = J, t[31] = I, t[32] = _J) : _J = t[32];
29943
+ let vJ = _J, yJ;
29944
+ return t[33] !== gJ || t[34] !== pJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== vJ || t[41] !== mJ || t[42] !== Q ? (yJ = {
29927
29945
  searchQuery: M,
29928
- setSearchQuery: pJ,
29946
+ setSearchQuery: vJ,
29929
29947
  open: K,
29930
29948
  setOpen: q,
29931
29949
  visibleOptions: Q,
29932
29950
  pinnedCount: $,
29933
- isChecked: cJ,
29934
- toggle: lJ,
29935
- bulkActions: dJ,
29951
+ isChecked: pJ,
29952
+ toggle: mJ,
29953
+ bulkActions: gJ,
29936
29954
  labelOf: O
29937
- }, t[33] = dJ, t[34] = cJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = pJ, t[41] = lJ, t[42] = Q, t[43] = mJ) : mJ = t[43], mJ;
29955
+ }, t[33] = gJ, t[34] = pJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = vJ, t[41] = mJ, t[42] = Q, t[43] = yJ) : yJ = t[43], yJ;
29938
29956
  };
29939
29957
  const Sets = {
29940
29958
  merge(...e) {
@@ -30263,7 +30281,7 @@ ${n}` : "Please fix this error.";
30263
30281
  type: S,
30264
30282
  operator: E,
30265
30283
  draft: mergeNumberTextDraft(A, I)
30266
- }), $ = Q === void 0, sJ = $ ? getMissingValueMessage(S, E) : "Apply filter", lJ = () => {
30284
+ }), $ = Q === void 0, fJ = $ ? getMissingValueMessage(S, E) : "Apply filter", pJ = () => {
30267
30285
  if (!Q) return;
30268
30286
  let e2 = Q;
30269
30287
  t.setColumnFilters((t2) => {
@@ -30282,20 +30300,20 @@ ${n}` : "Please fix this error.";
30282
30300
  value: e2
30283
30301
  }, n2;
30284
30302
  }), i();
30285
- }, uJ = () => {
30303
+ }, mJ = () => {
30286
30304
  a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
30287
- }, dJ = !OPERATORS_WITHOUT_VALUE.has(E), fJ = OPERATORS_BY_TYPE[S], pJ = (0, import_react.useRef)(null), mJ = (0, import_react.useRef)(null);
30305
+ }, hJ = !OPERATORS_WITHOUT_VALUE.has(E), gJ = OPERATORS_BY_TYPE[S], _J = (0, import_react.useRef)(null), vJ = (0, import_react.useRef)(null);
30288
30306
  return (0, import_react.useEffect)(() => {
30289
30307
  var _a2, _b;
30290
- let e2 = (_a2 = pJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30291
- e2 ? e2.focus() : (_b = mJ.current) == null ? void 0 : _b.focus();
30308
+ let e2 = (_a2 = _J.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30309
+ e2 ? e2.focus() : (_b = vJ.current) == null ? void 0 : _b.focus();
30292
30310
  }, [
30293
30311
  S,
30294
30312
  E
30295
30313
  ]), (0, import_jsx_runtime.jsxs)("form", {
30296
30314
  className: "flex flex-row gap-4 items-end p-3",
30297
30315
  onSubmit: (e2) => {
30298
- e2.preventDefault(), lJ();
30316
+ e2.preventDefault(), pJ();
30299
30317
  },
30300
30318
  onKeyDownCapture: (e2) => {
30301
30319
  e2.key === "Tab" && e2.stopPropagation();
@@ -30336,13 +30354,13 @@ ${n}` : "Please fix this error.";
30336
30354
  onValueChange: (e2) => J(e2),
30337
30355
  children: [
30338
30356
  (0, import_jsx_runtime.jsx)(SelectTrigger, {
30339
- ref: mJ,
30357
+ ref: vJ,
30340
30358
  id: s,
30341
30359
  className: "h-6 mb-1 bg-transparent",
30342
30360
  children: (0, import_jsx_runtime.jsx)(SelectValue, {})
30343
30361
  }),
30344
30362
  (0, import_jsx_runtime.jsx)(SelectContent, {
30345
- children: fJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30363
+ children: gJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30346
30364
  value: e2,
30347
30365
  children: OPERATOR_LABELS[e2]
30348
30366
  }, e2))
@@ -30351,8 +30369,8 @@ ${n}` : "Please fix this error.";
30351
30369
  }, S)
30352
30370
  ]
30353
30371
  }),
30354
- dJ && (0, import_jsx_runtime.jsxs)("div", {
30355
- ref: pJ,
30372
+ hJ && (0, import_jsx_runtime.jsxs)("div", {
30373
+ ref: _J,
30356
30374
  className: "flex flex-col gap-1",
30357
30375
  children: [
30358
30376
  (0, import_jsx_runtime.jsx)("label", {
@@ -30379,7 +30397,7 @@ ${n}` : "Please fix this error.";
30379
30397
  className: "flex gap-1 mb-1",
30380
30398
  children: [
30381
30399
  (0, import_jsx_runtime.jsx)(Tooltip, {
30382
- content: sJ,
30400
+ content: fJ,
30383
30401
  children: (0, import_jsx_runtime.jsx)("span", {
30384
30402
  className: "inline-flex",
30385
30403
  children: (0, import_jsx_runtime.jsx)(Button, {
@@ -30418,7 +30436,7 @@ ${n}` : "Please fix this error.";
30418
30436
  size: "icon",
30419
30437
  variant: "ghost",
30420
30438
  className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
30421
- onClick: uJ,
30439
+ onClick: mJ,
30422
30440
  "aria-label": "Remove filter",
30423
30441
  children: (0, import_jsx_runtime.jsx)(Trash2, {
30424
30442
  className: "h-3.5 w-3.5",
@@ -32626,29 +32644,29 @@ ${n}` : "Please fix this error.";
32626
32644
  }, t[16] = a, t[17] = J);
32627
32645
  let Q = useEvent_default(J), $;
32628
32646
  t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
32629
- let sJ = useEvent_default($), cJ, lJ;
32630
- t[20] === S ? (cJ = t[21], lJ = t[22]) : (cJ = () => (window.addEventListener("scroll", S, {
32647
+ let fJ = useEvent_default($), pJ, mJ;
32648
+ t[20] === S ? (pJ = t[21], mJ = t[22]) : (pJ = () => (window.addEventListener("scroll", S, {
32631
32649
  passive: true,
32632
32650
  capture: true
32633
32651
  }), window.addEventListener("resize", S), () => {
32634
32652
  window.removeEventListener("scroll", S, {
32635
32653
  capture: true
32636
32654
  }), window.removeEventListener("resize", S);
32637
- }), lJ = [
32655
+ }), mJ = [
32638
32656
  S
32639
- ], t[20] = S, t[21] = cJ, t[22] = lJ), (0, import_react.useEffect)(cJ, lJ);
32640
- let uJ, dJ;
32641
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uJ = () => v, dJ = [], t[23] = uJ, t[24] = dJ) : (uJ = t[23], dJ = t[24]), (0, import_react.useEffect)(uJ, dJ);
32642
- let fJ;
32643
- return t[25] !== sJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (fJ = {
32657
+ ], t[20] = S, t[21] = pJ, t[22] = mJ), (0, import_react.useEffect)(pJ, mJ);
32658
+ let hJ, gJ;
32659
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (hJ = () => v, gJ = [], t[23] = hJ, t[24] = gJ) : (hJ = t[23], gJ = t[24]), (0, import_react.useEffect)(hJ, gJ);
32660
+ let _J;
32661
+ return t[25] !== fJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (_J = {
32644
32662
  tooltipState: o,
32645
32663
  tooltipContentId: d,
32646
32664
  hideTooltip: S,
32647
32665
  handleCellMouseOver: U,
32648
32666
  handleCellMouseLeave: q,
32649
32667
  handleCellFocus: Q,
32650
- handleCellBlur: sJ
32651
- }, t[25] = sJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = fJ) : fJ = t[32], fJ;
32668
+ handleCellBlur: fJ
32669
+ }, t[25] = fJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = _J) : _J = t[32], _J;
32652
32670
  }
32653
32671
  var import_compiler_runtime$18 = require_compiler_runtime();
32654
32672
  const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
@@ -33925,6 +33943,13 @@ ${n}` : "Please fix this error.";
33925
33943
  let n = URL.createObjectURL(e);
33926
33944
  downloadByURL(n, t), URL.revokeObjectURL(n);
33927
33945
  };
33946
+ downloadExportedFile = function({ contents: e, filename: t, mediaType: n }) {
33947
+ downloadBlob(new Blob([
33948
+ e
33949
+ ], {
33950
+ type: n
33951
+ }), t);
33952
+ };
33928
33953
  var import_compiler_runtime$11 = require_compiler_runtime();
33929
33954
  InstallPackageButton = (e) => {
33930
33955
  let t = (0, import_compiler_runtime$11.c)(13), { packages: n, showMaxPackages: i, className: a, onInstall: s } = e, { handleInstallPackages: c } = useInstallPackages(), d = useInstallAllowed();
@@ -34086,7 +34111,7 @@ ${n}` : "Please fix this error.";
34086
34111
  filename: i2.filename
34087
34112
  };
34088
34113
  }, t[6] = e, t[7] = O);
34089
- let A = O, M, I, z, U, K, q, J, Q, $, sJ, cJ, lJ, uJ;
34114
+ let A = O, M, I, z, U, K, q, J, Q, $, fJ, pJ, mJ, hJ;
34090
34115
  if (t[8] !== E || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
34091
34116
  let e2 = async (t2) => {
34092
34117
  let n2 = labelForDownloadFormat(t2);
@@ -34152,10 +34177,10 @@ ${n}` : "Please fix this error.";
34152
34177
  content: d,
34153
34178
  open: o,
34154
34179
  children: h
34155
- }), t[32] = o, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", sJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (cJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34180
+ }), t[32] = o, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", fJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34156
34181
  className: "text-xs text-muted-foreground",
34157
34182
  children: "Download"
34158
- }), t[36] = cJ) : cJ = t[36], lJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34183
+ }), t[36] = pJ) : pJ = t[36], mJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34159
34184
  onSelect: () => {
34160
34185
  e2(t2.format);
34161
34186
  },
@@ -34176,10 +34201,10 @@ ${n}` : "Please fix this error.";
34176
34201
  ]
34177
34202
  })
34178
34203
  ]
34179
- }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34204
+ }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (hJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34180
34205
  className: "text-xs text-muted-foreground",
34181
34206
  children: "Copy to clipboard"
34182
- }), t[37] = z, t[38] = uJ) : (z = t[37], uJ = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34207
+ }), t[37] = z, t[38] = hJ) : (z = t[37], hJ = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34183
34208
  onSelect: async () => {
34184
34209
  try {
34185
34210
  await a2(e3.format);
@@ -34208,30 +34233,30 @@ ${n}` : "Please fix this error.";
34208
34233
  ]
34209
34234
  })
34210
34235
  ]
34211
- }, e3.label)), t[8] = E, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] = $, t[22] = sJ, t[23] = cJ, t[24] = lJ, t[25] = uJ;
34212
- } else M = t[13], I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21], sJ = t[22], cJ = t[23], lJ = t[24], uJ = t[25];
34213
- let dJ;
34214
- t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== sJ || t[44] !== cJ || t[45] !== lJ || t[46] !== uJ ? (dJ = (0, import_jsx_runtime.jsxs)(M, {
34236
+ }, e3.label)), t[8] = E, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] = $, t[22] = fJ, t[23] = pJ, t[24] = mJ, t[25] = hJ;
34237
+ } else M = t[13], I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21], fJ = t[22], pJ = t[23], mJ = t[24], hJ = t[25];
34238
+ let gJ;
34239
+ t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== fJ || t[44] !== pJ || t[45] !== mJ || t[46] !== hJ ? (gJ = (0, import_jsx_runtime.jsxs)(M, {
34215
34240
  side: $,
34216
- className: sJ,
34241
+ className: fJ,
34217
34242
  children: [
34218
- cJ,
34219
- lJ,
34220
- uJ,
34243
+ pJ,
34244
+ mJ,
34245
+ hJ,
34221
34246
  z,
34222
34247
  U
34223
34248
  ]
34224
- }), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = sJ, t[44] = cJ, t[45] = lJ, t[46] = uJ, t[47] = dJ) : dJ = t[47];
34225
- let fJ;
34226
- return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== dJ ? (fJ = (0, import_jsx_runtime.jsxs)(I, {
34249
+ }), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = fJ, t[44] = pJ, t[45] = mJ, t[46] = hJ, t[47] = gJ) : gJ = t[47];
34250
+ let _J;
34251
+ return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== gJ ? (_J = (0, import_jsx_runtime.jsxs)(I, {
34227
34252
  modal: K,
34228
34253
  open: q,
34229
34254
  onOpenChange: J,
34230
34255
  children: [
34231
34256
  Q,
34232
- dJ
34257
+ gJ
34233
34258
  ]
34234
- }), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = dJ, t[54] = fJ) : fJ = t[54], fJ;
34259
+ }), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = gJ, t[54] = _J) : _J = t[54], _J;
34235
34260
  };
34236
34261
  function fetchJson(e) {
34237
34262
  return fetchText(e).then(jsonParseWithSpecialChar);
@@ -34327,22 +34352,22 @@ ${n}` : "Please fix this error.";
34327
34352
  ]
34328
34353
  });
34329
34354
  };
34330
- DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: a, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds: sJ, showSearch: cJ = false, searchQuery: lJ, onSearchQueryChange: uJ, showFilters: dJ = false, filters: fJ, onFiltersChange: pJ, calculateTopKRows: mJ, reloading: hJ, freezeColumnsLeft: gJ, freezeColumnsRight: _J, hiddenColumns: vJ, toggleDisplayHeader: yJ, showChartBuilder: bJ, isChartBuilderOpen: xJ, showPageSizeSelector: SJ, showTableExplorer: CJ, togglePanel: wJ, isPanelOpen: TJ, isAnyPanelOpen: EJ, viewedRowIdx: DJ, onViewedRowChange: OJ, renderTableExplorerPanel: kJ }) => {
34331
- let AJ = isStaticNotebook(), jJ = !AJ, [MJ, NJ] = import_react.useState(false), { locale: PJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: FJ, setColumnPinning: IJ } = useColumnPinning(gJ, _J), { columnVisibility: LJ, setColumnVisibility: RJ } = useColumnVisibility(vJ);
34355
+ DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: a, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds: fJ, showSearch: pJ = false, searchQuery: mJ, onSearchQueryChange: hJ, showFilters: gJ = false, filters: _J, onFiltersChange: vJ, calculateTopKRows: yJ, reloading: bJ, freezeColumnsLeft: xJ, freezeColumnsRight: SJ, hiddenColumns: CJ, toggleDisplayHeader: wJ, showChartBuilder: TJ, isChartBuilderOpen: EJ, showPageSizeSelector: DJ, showTableExplorer: OJ, togglePanel: kJ, isPanelOpen: AJ, isAnyPanelOpen: jJ, viewedRowIdx: MJ, onViewedRowChange: NJ, renderTableExplorerPanel: PJ }) => {
34356
+ let FJ = isStaticNotebook(), IJ = !FJ, [LJ, RJ] = import_react.useState(false), { locale: zJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: BJ, setColumnPinning: VJ } = useColumnPinning(xJ, SJ), { columnVisibility: HJ, setColumnVisibility: UJ } = useColumnVisibility(CJ);
34332
34357
  import_react.useEffect(() => {
34333
34358
  let e2;
34334
- return hJ ? e2 = setTimeout(() => {
34335
- NJ(true);
34336
- }, 300) : NJ(false), () => {
34359
+ return bJ ? e2 = setTimeout(() => {
34360
+ RJ(true);
34361
+ }, 300) : RJ(false), () => {
34337
34362
  e2 && clearTimeout(e2);
34338
34363
  };
34339
34364
  }, [
34340
- hJ
34365
+ bJ
34341
34366
  ]);
34342
- function zJ(e2, t2) {
34367
+ function WJ(e2, t2) {
34343
34368
  return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
34344
34369
  }
34345
- let BJ = useReactTable({
34370
+ let GJ = useReactTable({
34346
34371
  _features: [
34347
34372
  ColumnPinning,
34348
34373
  ColumnWrappingFeature,
@@ -34366,37 +34391,37 @@ ${n}` : "Please fix this error.";
34366
34391
  getRowId: (e2, t2) => {
34367
34392
  let n2 = getStableRowId(e2);
34368
34393
  if (n2) return n2;
34369
- let i2 = zJ(e2, t2);
34394
+ let i2 = WJ(e2, t2);
34370
34395
  return String(i2);
34371
34396
  }
34372
34397
  } : {},
34373
- locale: PJ,
34398
+ locale: zJ,
34374
34399
  manualPagination: q,
34375
34400
  getPaginationRowModel: getPaginationRowModel(),
34376
34401
  ...w ? {
34377
34402
  onSortingChange: w
34378
34403
  } : {},
34379
34404
  manualSorting: y,
34380
- enableSorting: !AJ,
34405
+ enableSorting: !FJ,
34381
34406
  enableMultiSort: true,
34382
34407
  getSortedRowModel: getSortedRowModel(),
34383
34408
  manualFiltering: true,
34384
- enableColumnFilters: dJ && !AJ,
34409
+ enableColumnFilters: gJ && !FJ,
34385
34410
  getFilteredRowModel: getFilteredRowModel(),
34386
- onColumnFiltersChange: pJ,
34411
+ onColumnFiltersChange: vJ,
34387
34412
  onRowSelectionChange: Q,
34388
34413
  onCellSelectionChange: $,
34389
34414
  enableCellSelection: c === "single-cell" || c === "multi-cell",
34390
34415
  enableMultiCellSelection: c === "multi-cell",
34391
- onColumnPinningChange: IJ,
34392
- onColumnVisibilityChange: RJ,
34416
+ onColumnPinningChange: VJ,
34417
+ onColumnVisibilityChange: UJ,
34393
34418
  enableFocusRow: true,
34394
- onFocusRowChange: OJ,
34419
+ onFocusRowChange: NJ,
34395
34420
  state: {
34396
34421
  ...S ? {
34397
34422
  sorting: S
34398
34423
  } : {},
34399
- columnFilters: fJ,
34424
+ columnFilters: _J,
34400
34425
  ...z ? {
34401
34426
  pagination: z
34402
34427
  } : J && !z ? {} : {
@@ -34407,60 +34432,60 @@ ${n}` : "Please fix this error.";
34407
34432
  },
34408
34433
  rowSelection: E ?? {},
34409
34434
  cellSelection: O ?? [],
34410
- columnVisibility: LJ,
34435
+ columnVisibility: HJ,
34411
34436
  cellStyling: A,
34412
- columnPinning: FJ,
34437
+ columnPinning: BJ,
34413
34438
  cellHoverTemplate: M,
34414
34439
  cellHoverTexts: I ?? {}
34415
34440
  }
34416
- }), VJ = (TJ == null ? void 0 : TJ(PANEL_TYPES.ROW_VIEWER)) ?? false, HJ = !J && a.length > 100, UJ = useScrollContainerHeight({
34441
+ }), KJ = (AJ == null ? void 0 : AJ(PANEL_TYPES.ROW_VIEWER)) ?? false, qJ = !J && a.length > 100, JJ = useScrollContainerHeight({
34417
34442
  maxHeight: n,
34418
- virtualize: HJ
34419
- }), [WJ, GJ] = import_react.useState(null), KJ = import_react.useMemo(() => ({
34443
+ virtualize: qJ
34444
+ }), [YJ, XJ] = import_react.useState(null), ZJ = import_react.useMemo(() => ({
34420
34445
  requestAddFilter: (e2) => {
34421
- let t2 = BJ.getColumn(e2.columnId);
34422
- t2 && GJ(buildEditorSnapshot(t2, {
34446
+ let t2 = GJ.getColumn(e2.columnId);
34447
+ t2 && XJ(buildEditorSnapshot(t2, {
34423
34448
  operator: e2.operator
34424
34449
  }));
34425
34450
  }
34426
34451
  }), [
34427
- BJ
34428
- ]), qJ = getUserColumnVisibilityCounts(BJ), JJ = qJ.total > 0 && qJ.visible === 0;
34452
+ GJ
34453
+ ]), QJ = getUserColumnVisibilityCounts(GJ), $J = QJ.total > 0 && QJ.visible === 0;
34429
34454
  return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
34430
- value: KJ,
34455
+ value: ZJ,
34431
34456
  children: (0, import_jsx_runtime.jsxs)("div", {
34432
34457
  className: cn(e, "flex flex-col space-y-1"),
34433
34458
  children: [
34434
34459
  (0, import_jsx_runtime.jsx)(FilterPills, {
34435
- filters: fJ,
34436
- table: BJ,
34437
- calculateTopKRows: mJ,
34438
- addFilterSnapshot: WJ,
34439
- onAddFilterSnapshotChange: GJ
34460
+ filters: _J,
34461
+ table: GJ,
34462
+ calculateTopKRows: yJ,
34463
+ addFilterSnapshot: YJ,
34464
+ onAddFilterSnapshotChange: XJ
34440
34465
  }),
34441
- kJ == null ? void 0 : kJ(BJ),
34466
+ PJ == null ? void 0 : PJ(GJ),
34442
34467
  (0, import_jsx_runtime.jsx)(CellSelectionProvider, {
34443
34468
  children: (0, import_jsx_runtime.jsxs)("div", {
34444
34469
  part: "table-wrapper",
34445
34470
  className: cn(t || "rounded-md border overflow-hidden"),
34446
34471
  children: [
34447
- jJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
34448
- table: BJ,
34449
- showSearch: cJ,
34450
- searchQuery: lJ,
34451
- onSearchQueryChange: uJ,
34452
- reloading: hJ,
34453
- showChartBuilder: bJ,
34454
- isChartBuilderOpen: xJ,
34455
- toggleDisplayHeader: yJ,
34456
- showTableExplorer: CJ,
34457
- togglePanel: wJ,
34458
- isAnyPanelOpen: EJ,
34472
+ IJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
34473
+ table: GJ,
34474
+ showSearch: pJ,
34475
+ searchQuery: mJ,
34476
+ onSearchQueryChange: hJ,
34477
+ reloading: bJ,
34478
+ showChartBuilder: TJ,
34479
+ isChartBuilderOpen: EJ,
34480
+ toggleDisplayHeader: wJ,
34481
+ showTableExplorer: OJ,
34482
+ togglePanel: kJ,
34483
+ isAnyPanelOpen: jJ,
34459
34484
  downloadAs: K,
34460
34485
  sizeBytes: _,
34461
34486
  sizeBytesIsLoading: v
34462
34487
  }),
34463
- JJ && (0, import_jsx_runtime.jsxs)(Banner, {
34488
+ $J && (0, import_jsx_runtime.jsxs)(Banner, {
34464
34489
  className: "mb-1 mx-2 rounded flex items-center justify-between",
34465
34490
  children: [
34466
34491
  (0, import_jsx_runtime.jsx)("span", {
@@ -34469,26 +34494,26 @@ ${n}` : "Please fix this error.";
34469
34494
  (0, import_jsx_runtime.jsx)(Button, {
34470
34495
  variant: "link",
34471
34496
  size: "xs",
34472
- onClick: () => BJ.resetColumnVisibility(true),
34497
+ onClick: () => GJ.resetColumnVisibility(true),
34473
34498
  children: "Unhide all"
34474
34499
  })
34475
34500
  ]
34476
34501
  }),
34477
34502
  (0, import_jsx_runtime.jsxs)(Table, {
34478
34503
  className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
34479
- ref: UJ,
34504
+ ref: JJ,
34480
34505
  children: [
34481
- MJ && (0, import_jsx_runtime.jsx)("thead", {
34506
+ LJ && (0, import_jsx_runtime.jsx)("thead", {
34482
34507
  className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
34483
34508
  }),
34484
- renderTableHeader(BJ, HJ || !!n),
34509
+ renderTableHeader(GJ, qJ || !!n),
34485
34510
  (0, import_jsx_runtime.jsx)(DataTableBody, {
34486
- table: BJ,
34511
+ table: GJ,
34487
34512
  columns: i,
34488
- rowViewerPanelOpen: VJ,
34489
- getRowIndex: zJ,
34490
- viewedRowIdx: DJ,
34491
- virtualize: HJ
34513
+ rowViewerPanelOpen: KJ,
34514
+ getRowIndex: WJ,
34515
+ viewedRowIdx: MJ,
34516
+ virtualize: qJ
34492
34517
  })
34493
34518
  ]
34494
34519
  }),
@@ -34499,10 +34524,10 @@ ${n}` : "Please fix this error.";
34499
34524
  pagination: J,
34500
34525
  selection: c,
34501
34526
  onRowSelectionChange: Q,
34502
- table: BJ,
34503
- getRowIds: sJ,
34504
- showPageSizeSelector: SJ,
34505
- tableLoading: hJ
34527
+ table: GJ,
34528
+ getRowIds: fJ,
34529
+ showPageSizeSelector: DJ,
34530
+ tableLoading: bJ
34506
34531
  })
34507
34532
  ]
34508
34533
  })
@@ -34587,60 +34612,60 @@ ${n}` : "Please fix this error.";
34587
34612
  t[6] !== a || t[7] !== S ? (E = S && S.kind === "cell" && !isWasm() && !isStaticNotebook() && a !== "__scratch__", t[6] = a, t[7] = S, t[8] = E) : E = t[8];
34588
34613
  let O = E, A;
34589
34614
  t[9] !== f || t[10] !== n ? (A = n && f && !isStaticNotebook(), t[9] = f, t[10] = n, t[11] = A) : A = t[11];
34590
- let M = A, I = !isStaticNotebook(), [z, U] = (0, import_react.useState)(true), K;
34591
- t[12] !== d || t[13] !== n ? (K = (e2) => {
34615
+ let M = A, I = !isStaticNotebook(), [z, U] = (0, import_react.useState)(true), q;
34616
+ t[12] !== d || t[13] !== n ? (q = (e2) => {
34592
34617
  n == null ? void 0 : n({
34593
34618
  prompt: `My code gives the following error:
34594
34619
 
34595
34620
  ${d}`,
34596
34621
  triggerImmediately: e2
34597
34622
  });
34598
- }, t[12] = d, t[13] = n, t[14] = K) : K = t[14];
34599
- let q = K, J;
34600
- t[15] !== a || t[16] !== d || t[17] !== _ ? (J = () => {
34623
+ }, t[12] = d, t[13] = n, t[14] = q) : q = t[14];
34624
+ let J = q, Q;
34625
+ t[15] !== a || t[16] !== d || t[17] !== _ ? (Q = () => {
34601
34626
  _({
34602
34627
  prompt: buildFixInChatPrompt(a, d)
34603
34628
  });
34604
- }, t[15] = a, t[16] = d, t[17] = _, t[18] = J) : J = t[18];
34605
- let Q = J, $;
34606
- t[19] === z ? $ = t[20] : ($ = () => U(!z), t[19] = z, t[20] = $);
34607
- let cJ = z ? "Collapse traceback" : "Expand traceback", lJ;
34608
- t[21] === z ? lJ = t[22] : (lJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
34629
+ }, t[15] = a, t[16] = d, t[17] = _, t[18] = Q) : Q = t[18];
34630
+ let $ = Q, fJ;
34631
+ t[19] === z ? fJ = t[20] : (fJ = () => U(!z), t[19] = z, t[20] = fJ);
34632
+ let pJ = z ? "Collapse traceback" : "Expand traceback", mJ;
34633
+ t[21] === z ? mJ = t[22] : (mJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
34609
34634
  className: "h-3 w-3"
34610
34635
  }) : (0, import_jsx_runtime.jsx)(ChevronRight, {
34611
34636
  className: "h-3 w-3"
34612
- }), t[21] = z, t[22] = lJ);
34613
- let uJ;
34614
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uJ = (0, import_jsx_runtime.jsx)("span", {
34637
+ }), t[21] = z, t[22] = mJ);
34638
+ let hJ;
34639
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (hJ = (0, import_jsx_runtime.jsx)("span", {
34615
34640
  className: "text-[0.6875rem] uppercase tracking-wider",
34616
34641
  children: "Traceback"
34617
- }), t[23] = uJ) : uJ = t[23];
34618
- let fJ;
34619
- t[24] !== z || t[25] !== lJ || t[26] !== $ || t[27] !== cJ ? (fJ = (0, import_jsx_runtime.jsxs)("button", {
34642
+ }), t[23] = hJ) : hJ = t[23];
34643
+ let gJ;
34644
+ t[24] !== z || t[25] !== mJ || t[26] !== fJ || t[27] !== pJ ? (gJ = (0, import_jsx_runtime.jsxs)("button", {
34620
34645
  type: "button",
34621
- onClick: $,
34646
+ onClick: fJ,
34622
34647
  "aria-expanded": z,
34623
- "aria-label": cJ,
34648
+ "aria-label": pJ,
34624
34649
  className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
34625
34650
  children: [
34626
- lJ,
34627
- uJ
34651
+ mJ,
34652
+ hJ
34628
34653
  ]
34629
- }), t[24] = z, t[25] = lJ, t[26] = $, t[27] = cJ, t[28] = fJ) : fJ = t[28];
34630
- let pJ;
34631
- t[29] !== s || t[30] !== z ? (pJ = z && (0, import_jsx_runtime.jsx)("div", {
34654
+ }), t[24] = z, t[25] = mJ, t[26] = fJ, t[27] = pJ, t[28] = gJ) : gJ = t[28];
34655
+ let _J;
34656
+ t[29] !== s || t[30] !== z ? (_J = z && (0, import_jsx_runtime.jsx)("div", {
34632
34657
  className: "text-muted-foreground pr-4 text-xs overflow-auto",
34633
34658
  children: s
34634
- }), t[29] = s, t[30] = z, t[31] = pJ) : pJ = t[31];
34635
- let mJ;
34636
- t[32] !== q || t[33] !== Q || t[34] !== M ? (mJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34659
+ }), t[29] = s, t[30] = z, t[31] = _J) : _J = t[31];
34660
+ let vJ;
34661
+ t[32] !== J || t[33] !== $ || t[34] !== M ? (vJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34637
34662
  tooltip: "Fix with AI",
34638
- openPrompt: () => q(false),
34639
- applyAutofix: () => q(true),
34640
- openChat: Q
34641
- }), t[32] = q, t[33] = Q, t[34] = M, t[35] = mJ) : mJ = t[35];
34642
- let hJ;
34643
- t[36] !== O || t[37] !== S ? (hJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
34663
+ openPrompt: () => J(false),
34664
+ applyAutofix: () => J(true),
34665
+ openChat: $
34666
+ }), t[32] = J, t[33] = $, t[34] = M, t[35] = vJ) : vJ = t[35];
34667
+ let yJ;
34668
+ t[36] !== O || t[37] !== S ? (yJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
34644
34669
  content: "Attach pdb to the exception point.",
34645
34670
  children: (0, import_jsx_runtime.jsxs)(Button, {
34646
34671
  size: "xs",
@@ -34657,9 +34682,9 @@ ${d}`,
34657
34682
  "Launch debugger"
34658
34683
  ]
34659
34684
  })
34660
- }), t[36] = O, t[37] = S, t[38] = hJ) : hJ = t[38];
34661
- let gJ;
34662
- t[39] !== d || t[40] !== i ? (gJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34685
+ }), t[36] = O, t[37] = S, t[38] = yJ) : yJ = t[38];
34686
+ let bJ;
34687
+ t[39] !== d || t[40] !== i ? (bJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34663
34688
  children: [
34664
34689
  (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
34665
34690
  asChild: true,
@@ -34727,25 +34752,25 @@ ${d}`,
34727
34752
  ]
34728
34753
  })
34729
34754
  ]
34730
- }), t[39] = d, t[40] = i, t[41] = gJ) : gJ = t[41];
34731
- let _J;
34732
- t[42] !== mJ || t[43] !== hJ || t[44] !== gJ ? (_J = (0, import_jsx_runtime.jsxs)("div", {
34755
+ }), t[39] = d, t[40] = i, t[41] = bJ) : bJ = t[41];
34756
+ let xJ;
34757
+ t[42] !== vJ || t[43] !== yJ || t[44] !== bJ ? (xJ = (0, import_jsx_runtime.jsxs)("div", {
34733
34758
  className: "flex gap-2",
34734
34759
  children: [
34735
- mJ,
34736
- hJ,
34737
- gJ
34760
+ vJ,
34761
+ yJ,
34762
+ bJ
34738
34763
  ]
34739
- }), t[42] = mJ, t[43] = hJ, t[44] = gJ, t[45] = _J) : _J = t[45];
34740
- let vJ;
34741
- return t[46] !== fJ || t[47] !== pJ || t[48] !== _J ? (vJ = (0, import_jsx_runtime.jsxs)("div", {
34764
+ }), t[42] = vJ, t[43] = yJ, t[44] = bJ, t[45] = xJ) : xJ = t[45];
34765
+ let SJ;
34766
+ return t[46] !== gJ || t[47] !== _J || t[48] !== xJ ? (SJ = (0, import_jsx_runtime.jsxs)("div", {
34742
34767
  className: "flex flex-col gap-2 min-w-full w-fit",
34743
34768
  children: [
34744
- fJ,
34745
- pJ,
34746
- _J
34769
+ gJ,
34770
+ _J,
34771
+ xJ
34747
34772
  ]
34748
- }), t[46] = fJ, t[47] = pJ, t[48] = _J, t[49] = vJ) : vJ = t[49], vJ;
34773
+ }), t[46] = gJ, t[47] = _J, t[48] = xJ, t[49] = SJ) : SJ = t[49], SJ;
34749
34774
  };
34750
34775
  function lastLine(e) {
34751
34776
  var _a2, _b;
@@ -36181,14 +36206,14 @@ ${d}`,
36181
36206
  Q
36182
36207
  ]
36183
36208
  }), t[33] = J, t[34] = Q, t[35] = $) : $ = t[35];
36184
- let sJ;
36185
- return t[36] !== I || t[37] !== $ ? (sJ = (0, import_jsx_runtime.jsxs)("div", {
36209
+ let fJ;
36210
+ return t[36] !== I || t[37] !== $ ? (fJ = (0, import_jsx_runtime.jsxs)("div", {
36186
36211
  className: "flex flex-col gap-3",
36187
36212
  children: [
36188
36213
  I,
36189
36214
  $
36190
36215
  ]
36191
- }), t[36] = I, t[37] = $, t[38] = sJ) : sJ = t[38], sJ;
36216
+ }), t[36] = I, t[37] = $, t[38] = fJ) : fJ = t[38], fJ;
36192
36217
  };
36193
36218
  SlideSidebar = (e) => {
36194
36219
  let t = (0, import_compiler_runtime$1.c)(30), { configWidth: n, layout: i, setLayout: a, activeConfigCell: s } = e, [c, d] = useAtom(slideConfigOpenAtom), f = c ? n : COLLAPSED_CONFIG_WIDTH, _;
@@ -36313,7 +36338,7 @@ ${d}`,
36313
36338
  return Logger.warn("Failed to get version from mount config"), null;
36314
36339
  }
36315
36340
  }
36316
- marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.16-dev9");
36341
+ marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.17-dev0");
36317
36342
  showCodeInRunModeAtom = atom(true);
36318
36343
  atom(null);
36319
36344
  var import_compiler_runtime = require_compiler_runtime();
@@ -36339,133 +36364,140 @@ ${d}`,
36339
36364
  function _temp(e) {
36340
36365
  return !!e.code;
36341
36366
  }
36367
+ cellDomProps = function(e, t) {
36368
+ return {
36369
+ "data-cell-id": e,
36370
+ "data-cell-name": t,
36371
+ id: HTMLCellId.create(e)
36372
+ };
36373
+ };
36342
36374
  });
36343
36375
  export {
36344
- ContextAwarePanelItem as $,
36345
- EmotionCacheProvider as $t,
36346
- prettifyRowColumnCount as A,
36347
- loadTableData as At,
36348
- useSelectList as B,
36349
- dateToLocalISOTime as Bt,
36350
- Filenames as C,
36351
- ColumnChartContext as Ct,
36352
- EmptyState as D,
36353
- usePrevious as Dt,
36354
- ColumnPreviewContainer as E,
36355
- useIntersectionObserver as Et,
36356
- ContextMenuContent as F,
36357
- getMimeValues as Ft,
36358
- ComboboxItem as G,
36359
- ChartErrorState as Gt,
36360
- DatePicker as H,
36361
- TabsContent as Ht,
36362
- ContextMenuItem as I,
36363
- isNullishFilter as It,
36364
- CommandInput as J,
36365
- LazyVegaEmbed as Jt,
36366
- Command as K,
36367
- ChartInfoState as Kt,
36368
- ContextMenuSeparator as L,
36369
- Maps as Lt,
36370
- getColumnCountForDisplay as M,
36371
- SELECT_COLUMN_ID as Mt,
36372
- getUserColumnVisibilityCounts as N,
36373
- TOO_MANY_ROWS as Nt,
36374
- ErrorState as O,
36375
- getPageIndexForRow as Ot,
36376
- ContextMenu as P,
36377
- toFieldTypes as Pt,
36378
- smartMatch as Q,
36379
- HtmlOutput as Qt,
36380
- ContextMenuTrigger as R,
36381
- dateToLocalISODate as Rt,
36382
- Progress as S,
36383
- renderCellValue as St,
36384
- ColumnName as T,
36385
- DelayMount as Tt,
36386
- DateRangePicker as U,
36387
- TabsList as Ut,
36388
- CompactChipRow as V,
36389
- Tabs as Vt,
36390
- Combobox as W,
36391
- TabsTrigger as Wt,
36392
- CommandList as X,
36393
- RenderTextWithLinks as Xt,
36394
- CommandItem as Y,
36395
- useOverflowDetection as Yt,
36396
- CommandSeparator as Z,
36397
- Kbd as Zt,
36398
- InstallPackageButton as _,
36376
+ CommandSeparator as $,
36377
+ Kbd as $t,
36378
+ ErrorState as A,
36379
+ getPageIndexForRow as At,
36380
+ ContextMenuTrigger as B,
36381
+ dateToLocalISODate as Bt,
36382
+ downloadHTMLAsImage as C,
36383
+ inferFieldTypes as Ct,
36384
+ ColumnName as D,
36385
+ DelayMount as Dt,
36386
+ downloadSizeLimitAtom as E,
36387
+ ColumnChartSpecModel as Et,
36388
+ getUserColumnVisibilityCounts as F,
36389
+ TOO_MANY_ROWS as Ft,
36390
+ DateRangePicker as G,
36391
+ TabsList as Gt,
36392
+ useSelectList as H,
36393
+ dateToLocalISOTime as Ht,
36394
+ ContextMenu as I,
36395
+ toFieldTypes as It,
36396
+ Command as J,
36397
+ ChartInfoState as Jt,
36398
+ Combobox as K,
36399
+ TabsTrigger as Kt,
36400
+ ContextMenuContent as L,
36401
+ getMimeValues as Lt,
36402
+ prettifyRowColumnCount as M,
36403
+ loadTableData as Mt,
36404
+ prettifyRowCount as N,
36405
+ INDEX_COLUMN_NAME as Nt,
36406
+ ColumnPreviewContainer as O,
36407
+ useIntersectionObserver as Ot,
36408
+ getColumnCountForDisplay as P,
36409
+ SELECT_COLUMN_ID as Pt,
36410
+ CommandList as Q,
36411
+ RenderTextWithLinks as Qt,
36412
+ ContextMenuItem as R,
36413
+ isNullishFilter as Rt,
36414
+ downloadExportedFile as S,
36415
+ generateColumns as St,
36416
+ Filenames as T,
36417
+ ColumnChartContext as Tt,
36418
+ CompactChipRow as U,
36419
+ Tabs as Ut,
36420
+ useInternalStateWithSync as V,
36421
+ dateToLocalISODateTime as Vt,
36422
+ DatePicker as W,
36423
+ TabsContent as Wt,
36424
+ CommandInput as X,
36425
+ LazyVegaEmbed as Xt,
36426
+ CommandEmpty as Y,
36427
+ ChartLoadingState as Yt,
36428
+ CommandItem as Z,
36429
+ useOverflowDetection as Zt,
36430
+ DataTable as _,
36399
36431
  __tla,
36400
36432
  ChevronLeft as _n,
36401
- TableHeader as _t,
36402
- DEFAULT_DECK_VERTICAL_ALIGN as a,
36433
+ TableCell as _t,
36434
+ DEFAULT_DECK_TRANSITION as a,
36403
36435
  TextWrap as an,
36404
- SlotNames as at,
36405
- downloadByURL as b,
36406
- generateColumns as bt,
36407
- SlideSidebar as c,
36436
+ contextAwarePanelType as at,
36437
+ downloadBlob as b,
36438
+ TableRow as bt,
36439
+ SLIDE_TYPE_OPTIONS_BY_VALUE as c,
36408
36440
  EyeOff as cn,
36409
- Panel as ct,
36410
- RadioGroup as d,
36441
+ slotsController as ct,
36442
+ Switch as d,
36411
36443
  Download as dn,
36412
- Fill as dt,
36413
- safeLocale as en,
36414
- PANEL_TYPES as et,
36415
- RadioGroupItem as f,
36444
+ PanelGroup as dt,
36445
+ HtmlOutput as en,
36446
+ smartMatch as et,
36447
+ RadioGroup as f,
36416
36448
  Code as fn,
36417
- Provider$1 as ft,
36418
- DataTable as g,
36449
+ PanelResizeHandle as ft,
36450
+ OutputRenderer as g,
36419
36451
  ChevronsDownUp as gn,
36420
- TableHead as gt,
36421
- OutputRenderer as h,
36452
+ TableBody as gt,
36453
+ OutputArea as h,
36422
36454
  ChevronsLeft as hn,
36423
- TableCell as ht,
36424
- DEFAULT_DECK_TRANSITION as i,
36455
+ Table as ht,
36456
+ showCodeInRunModeAtom as i,
36425
36457
  $fae977aafc393c5c$export$6b862160d295c8e as in,
36426
- isCellAwareAtom as it,
36427
- prettifyRowCount as j,
36428
- INDEX_COLUMN_NAME as jt,
36429
- LoadingState as k,
36430
- loadTableAndRawData as kt,
36431
- Slide as l,
36458
+ contextAwarePanelOwner as it,
36459
+ LoadingState as j,
36460
+ loadTableAndRawData as jt,
36461
+ EmptyState as k,
36462
+ usePrevious as kt,
36463
+ SlideSidebar as l,
36432
36464
  Expand as ln,
36433
- PanelGroup as lt,
36434
- OutputArea as m,
36465
+ Toggle as lt,
36466
+ JsonOutput as m,
36435
36467
  ChevronsRight as mn,
36436
- TableBody as mt,
36437
- marimoVersionAtom as n,
36438
- isRecord as nn,
36439
- contextAwarePanelOwner as nt,
36440
- DEFAULT_SLIDE_TYPE as o,
36468
+ Provider$1 as mt,
36469
+ useNotebookCodeAvailable as n,
36470
+ safeLocale as nn,
36471
+ PANEL_TYPES as nt,
36472
+ DEFAULT_DECK_VERTICAL_ALIGN as o,
36441
36473
  GripHorizontal as on,
36442
- slotsController as ot,
36443
- JsonOutput as p,
36474
+ isCellAwareAtom as ot,
36475
+ RadioGroupItem as p,
36444
36476
  ChevronsUpDown as pn,
36445
- Table as pt,
36446
- CommandEmpty as q,
36447
- ChartLoadingState as qt,
36448
- showCodeInRunModeAtom as r,
36477
+ Fill as pt,
36478
+ ComboboxItem as q,
36479
+ ChartErrorState as qt,
36480
+ marimoVersionAtom as r,
36449
36481
  $fae977aafc393c5c$export$588937bcd60ade55 as rn,
36450
- contextAwarePanelType as rt,
36451
- SLIDE_TYPE_OPTIONS_BY_VALUE as s,
36482
+ contextAwarePanelOpen as rt,
36483
+ DEFAULT_SLIDE_TYPE as s,
36452
36484
  Funnel as sn,
36453
- Toggle as st,
36454
- useNotebookCodeAvailable as t,
36455
- hasFunctionProperty as tn,
36456
- contextAwarePanelOpen as tt,
36457
- Switch as u,
36485
+ SlotNames as st,
36486
+ cellDomProps as t,
36487
+ EmotionCacheProvider as tn,
36488
+ ContextAwarePanelItem as tt,
36489
+ Slide as u,
36458
36490
  Ellipsis as un,
36459
- PanelResizeHandle as ut,
36460
- ADD_PRINTING_CLASS as v,
36491
+ Panel as ut,
36492
+ InstallPackageButton as v,
36461
36493
  ArrowDownWideNarrow as vn,
36462
- TableRow as vt,
36463
- downloadSizeLimitAtom as w,
36464
- ColumnChartSpecModel as wt,
36465
- downloadHTMLAsImage as x,
36466
- inferFieldTypes as xt,
36467
- downloadBlob as y,
36468
- NAMELESS_COLUMN_PREFIX as yt,
36469
- useInternalStateWithSync as z,
36470
- dateToLocalISODateTime as zt
36494
+ TableHead as vt,
36495
+ Progress as w,
36496
+ renderCellValue as wt,
36497
+ downloadByURL as x,
36498
+ NAMELESS_COLUMN_PREFIX as xt,
36499
+ ADD_PRINTING_CLASS as y,
36500
+ TableHeader as yt,
36501
+ ContextMenuSeparator as z,
36502
+ Maps as zt
36471
36503
  };