@marimo-team/islands 0.23.16-dev26 → 0.23.16-dev29

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 (24) hide show
  1. package/dist/{chat-ui-BMBk8I78.js → chat-ui-DuPGKU9z.js} +12 -12
  2. package/dist/{code-visibility-DQX4c5V7.js → common-CozjhRem.js} +984 -952
  3. package/dist/{html-to-image-27MFfyOf.js → html-to-image-Bza3T2dl.js} +2124 -2114
  4. package/dist/main.js +6 -13
  5. package/dist/{process-output-BpssYna4.js → process-output-pCEXvnhG.js} +1 -1
  6. package/dist/{reveal-component-DyOeuep6.js → reveal-component-BaMyGKAw.js} +624 -616
  7. package/dist/style.css +1 -1
  8. package/package.json +1 -1
  9. package/src/components/data-table/__tests__/__snapshots__/chart-spec-model.test.ts.snap +174 -21
  10. package/src/components/data-table/__tests__/chart-spec-model.test.ts +102 -1
  11. package/src/components/data-table/column-summary/chart-spec-model.tsx +163 -103
  12. package/src/components/data-table/column-summary/legacy-chart-spec.ts +15 -7
  13. package/src/components/data-table/column-summary/utils.ts +26 -7
  14. package/src/components/data-table/types.ts +1 -1
  15. package/src/components/slides/__tests__/cell-output-block.test.tsx +40 -0
  16. package/src/components/slides/__tests__/slide-cell-view.test.tsx +33 -0
  17. package/src/components/slides/reveal-component.tsx +22 -17
  18. package/src/components/slides/slide-cell-view.tsx +1 -1
  19. package/src/components/slides/slides.css +4 -2
  20. package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +42 -30
  21. package/src/core/codemirror/find-replace/navigate.ts +2 -0
  22. package/src/core/codemirror/go-to-definition/__tests__/commands.test.ts +24 -3
  23. package/src/core/codemirror/go-to-definition/commands.ts +3 -0
  24. package/src/core/codemirror/utils.ts +28 -0
@@ -6,7 +6,7 @@ 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 { An as Wrench, At as useChromeActions, B as isDataURLString, Bn as Eye, Bt as DATA_TYPE_ICON, C as Accordion, Dt as goToCellLine, E as AccordionTrigger, Fn as Minus, H as renderHTML, In as LoaderCircle, J as getCellEditorView, Jn as import_lib, Kn as Braces, L as base64ToUint8Array, M as DotFilledIcon, Mt as jotaiJsonStorage, N as PinLeftIcon, P as PinRightIcon, Pn as NotebookPen, Pt as getFeatureFlag, Q as notebookAtom, Rn as Info, Rt as PluralWord, Sn as atomWithStorage, T as AccordionItem, Tn as Close$1, Tt as toggleBreakpoint, Vn as ExternalLink, Vt as getDataTypeColor, Wn as CircleX, Yt as useRequestClient, _ as getDatasourceContext, an as getTracebackInfo, bn as jsonToMarkdown, c as Popover, cn as filenameAtom, ct as AnsiUp, d as PopoverTrigger, fn as CellOutputId, ft as sanitizeHtml, ht as displayCellName, in as extractAllTracebackInfo, it as useCellNames, j as ChevronRightIcon, jn as Trash2, jt as adaptForLocalStorage, k as CheckIcon, l as PopoverClose, lt as outputIsLoading, m as useExpandedOutput, mn as SCRATCH_CELL_ID, mt as getCellDomProps, n as Spinner, nt as useCellActions, pn as HTMLCellId, pt as DATA_CELL_ID, qn as esm_default, qt as getRequestClient, r as MarkdownRenderer, rn as elementContainsMarimoCellFile, rt as useCellIds, t as toPng, u as PopoverContent, w as AccordionContent, yn as jsonParseWithSpecialChar, yt as Checkbox, z as extractBase64FromDataURL, zn as FileText, __tla as __tla_0 } from "./html-to-image-27MFfyOf.js";
9
+ import { An as Wrench, At as useChromeActions, B as isDataURLString, Bn as Eye, Bt as DATA_TYPE_ICON, C as Accordion, E as AccordionTrigger, Et as goToCellLine, Fn as Minus, H as renderHTML, In as LoaderCircle, J as getCellEditorView, Jn as import_lib, Kn as Braces, L as base64ToUint8Array, M as DotFilledIcon, Mt as jotaiJsonStorage, N as PinLeftIcon, P as PinRightIcon, Pn as NotebookPen, Pt as getFeatureFlag, Q as notebookAtom, Rn as Info, Rt as PluralWord, Sn as atomWithStorage, T as AccordionItem, Tn as Close$1, Tt as toggleBreakpoint, Vn as ExternalLink, Vt as getDataTypeColor, Wn as CircleX, Yt as useRequestClient, _ as getDatasourceContext, an as getTracebackInfo, bn as jsonToMarkdown, c as Popover, cn as filenameAtom, ct as AnsiUp, d as PopoverTrigger, fn as CellOutputId, ft as sanitizeHtml, ht as displayCellName, in as extractAllTracebackInfo, it as useCellNames, j as ChevronRightIcon, jn as Trash2, jt as adaptForLocalStorage, k as CheckIcon, l as PopoverClose, lt as outputIsLoading, m as useExpandedOutput, mn as SCRATCH_CELL_ID, mt as getCellDomProps, n as Spinner, nt as useCellActions, pn as HTMLCellId, pt as DATA_CELL_ID, qn as esm_default, qt as getRequestClient, r as MarkdownRenderer, rn as elementContainsMarimoCellFile, rt as useCellIds, t as toPng, u as PopoverContent, w as AccordionContent, yn as jsonParseWithSpecialChar, yt as Checkbox, z as extractBase64FromDataURL, zn as FileText, __tla as __tla_0 } from "./html-to-image-Bza3T2dl.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";
@@ -35,7 +35,7 @@ import { V as getContainerWidth, n as formats } from "./vega-loader.browser-Dmpx
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 smartMatch, HtmlOutput, LoadingState, loadTableAndRawData, useInternalStateWithSync, dateToLocalISODateTime, Progress, renderCellValue, ColumnPreviewContainer, useIntersectionObserver, ColumnName, DelayMount, ContextMenu, toFieldTypes, Combobox, TabsTrigger, CompactChipRow, Tabs, ContextMenuContent, getMimeValues, CommandEmpty, ChartLoadingState, ComboboxItem, ChartErrorState, ContextMenuItem, isNullishFilter, prettifyRowCount, INDEX_COLUMN_NAME, getColumnCountForDisplay, SELECT_COLUMN_ID, EmptyState, usePrevious, getUserColumnVisibilityCounts, TOO_MANY_ROWS, CommandSeparator, Kbd, ContextMenuSeparator, Maps, downloadHTMLAsImage, inferFieldTypes, downloadSizeLimitAtom, ColumnChartSpecModel, DatePicker, TabsContent, useSelectList, dateToLocalISOTime, DateRangePicker, TabsList, CommandItem, useOverflowDetection, CommandInput, LazyVegaEmbed, CommandList, RenderTextWithLinks, InstallPackageButton, ChevronsDownUp, TableHead, DEFAULT_DECK_VERTICAL_ALIGN, $fae977aafc393c5c$export$6b862160d295c8e, isCellAwareAtom, downloadByURL, NAMELESS_COLUMN_PREFIX, SlideSidebar, Funnel, Toggle, RadioGroup, Ellipsis, PanelResizeHandle, EmotionCacheProvider, ContextAwarePanelItem, RadioGroupItem, Download, Fill, DataTable, ChevronsLeft, TableCell, OutputRenderer, ChevronsRight, TableBody, DEFAULT_DECK_TRANSITION, $fae977aafc393c5c$export$588937bcd60ade55, contextAwarePanelType, prettifyRowColumnCount, loadTableData, ErrorState, getPageIndexForRow, Slide, EyeOff, Panel, OutputArea, ChevronsUpDown, Table, marimoVersionAtom, hasFunctionProperty, contextAwarePanelOpen, DEFAULT_SLIDE_TYPE, TextWrap, SlotNames, JsonOutput, Code, Provider$1, Command, ChartInfoState, showCodeInRunModeAtom, isRecord, contextAwarePanelOwner, SLIDE_TYPE_OPTIONS_BY_VALUE, GripHorizontal, slotsController, useNotebookCodeAvailable, safeLocale, PANEL_TYPES, Switch, Expand, PanelGroup, ADD_PRINTING_CLASS, ChevronLeft, TableHeader, Filenames, ColumnChartContext, downloadExportedFile, generateColumns, downloadBlob, ArrowDownWideNarrow, TableRow, ContextMenuTrigger, dateToLocalISODate;
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, ChevronsLeft, TableCell, DEFAULT_DECK_TRANSITION, $fae977aafc393c5c$export$588937bcd60ade55, contextAwarePanelType, downloadBlob, ArrowDownWideNarrow, TableRow, SLIDE_TYPE_OPTIONS_BY_VALUE, GripHorizontal, slotsController, Switch, Expand, PanelGroup, HtmlOutput, smartMatch, RadioGroup, Ellipsis, PanelResizeHandle, OutputRenderer, ChevronsRight, TableBody, OutputArea, ChevronsUpDown, Table, showCodeInRunModeAtom, isRecord, contextAwarePanelOwner, LoadingState, loadTableAndRawData, EmptyState, usePrevious, SlideSidebar, Funnel, Toggle, JsonOutput, Code, Provider$1, useNotebookCodeAvailable, safeLocale, PANEL_TYPES, DEFAULT_DECK_VERTICAL_ALIGN, $fae977aafc393c5c$export$6b862160d295c8e, isCellAwareAtom, RadioGroupItem, Download, Fill, ComboboxItem, ChartErrorState, marimoVersionAtom, hasFunctionProperty, contextAwarePanelOpen, DEFAULT_SLIDE_TYPE, TextWrap, SlotNames, cellDomProps, EmotionCacheProvider, ContextAwarePanelItem, Slide, EyeOff, Panel, InstallPackageButton, ChevronsDownUp, TableHead, Progress, renderCellValue, downloadByURL, NAMELESS_COLUMN_PREFIX, ADD_PRINTING_CLASS, ChevronLeft, 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, cJ = c.top - E, lJ = c.bottom + O, uJ = c.left - A, dJ = c.right + M, fJ = e === _ ? 0 : Q + $, pJ = e === _ ? 0 : q + J, mJ = e.offsetWidth - e.clientWidth - fJ, hJ = e.offsetHeight - e.clientHeight - pJ, gJ = v + q + I, _J = y - J - z - hJ, vJ = S + Q + U, yJ = w - $ - K;
2065
- h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? vJ += mJ : yJ -= mJ;
2066
- let bJ = cJ < gJ || lJ > _J, xJ = uJ < vJ || dJ > yJ;
2067
- if (bJ && i === "start") o += cJ - gJ;
2068
- else if (bJ && i === "center") o += (cJ + lJ) / 2 - (gJ + _J) / 2;
2069
- else if (bJ && i === "end") o += lJ - _J;
2070
- else if (bJ && i === "nearest") {
2071
- let e2 = cJ - gJ, t2 = lJ - _J;
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, pJ = c.top - E, mJ = c.bottom + O, hJ = c.left - A, gJ = c.right + M, _J = e === _ ? 0 : Q + $, vJ = e === _ ? 0 : q + J, yJ = e.offsetWidth - e.clientWidth - _J, bJ = e.offsetHeight - e.clientHeight - vJ, xJ = v + q + I, SJ = y - J - z - bJ, CJ = S + Q + U, wJ = w - $ - K;
2065
+ h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? CJ += yJ : wJ -= yJ;
2066
+ let TJ = pJ < xJ || mJ > SJ, EJ = hJ < CJ || gJ > wJ;
2067
+ if (TJ && i === "start") o += pJ - xJ;
2068
+ else if (TJ && i === "center") o += (pJ + mJ) / 2 - (xJ + SJ) / 2;
2069
+ else if (TJ && i === "end") o += mJ - SJ;
2070
+ else if (TJ && i === "nearest") {
2071
+ let e2 = pJ - xJ, t2 = mJ - SJ;
2072
2072
  o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
2073
2073
  }
2074
- if (xJ && a === "start") s += uJ - vJ;
2075
- else if (xJ && a === "center") s += (uJ + dJ) / 2 - (vJ + yJ) / 2;
2076
- else if (xJ && a === "end") s += dJ - yJ;
2077
- else if (xJ && a === "nearest") {
2078
- let e2 = uJ - vJ, t2 = dJ - yJ;
2074
+ if (EJ && a === "start") s += hJ - CJ;
2075
+ else if (EJ && a === "center") s += (hJ + gJ) / 2 - (CJ + wJ) / 2;
2076
+ else if (EJ && a === "end") s += gJ - wJ;
2077
+ else if (EJ && a === "nearest") {
2078
+ let e2 = hJ - CJ, t2 = gJ - wJ;
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 cJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5189
- q[I] += cJ;
5190
- let lJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5191
- y && y < lJ && (lJ = y), n.height = Math.min(n.height, lJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), cJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += cJ;
5192
- let uJ = {}, dJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], fJ = dJ + 0.5 * t[z], pJ = S / 2 + w, mJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), hJ = n[z] - mJ - S / 2 - w;
5193
- uJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(fJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), pJ, hJ), { placement: U, crossPlacement: K } = A, S ? dJ = uJ[I] : K === "right" ? dJ += t[z] : K === "center" && (dJ += t[z] / 2);
5194
- let gJ = U === "left" || U === "top" ? n[M] : 0, _J = {
5195
- x: U === "top" || U === "bottom" ? dJ : gJ,
5196
- y: U === "left" || U === "right" ? dJ : gJ
5188
+ let pJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5189
+ q[I] += pJ;
5190
+ let mJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5191
+ y && y < mJ && (mJ = y), n.height = Math.min(n.height, mJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), pJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += pJ;
5192
+ let hJ = {}, gJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], _J = gJ + 0.5 * t[z], vJ = S / 2 + w, yJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), bJ = n[z] - yJ - S / 2 - w;
5193
+ hJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(_J, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), vJ, bJ), { placement: U, crossPlacement: K } = A, S ? gJ = hJ[I] : K === "right" ? gJ += t[z] : K === "center" && (gJ += t[z] / 2);
5194
+ let xJ = U === "left" || U === "top" ? n[M] : 0, SJ = {
5195
+ x: U === "top" || U === "bottom" ? gJ : xJ,
5196
+ y: U === "left" || U === "right" ? gJ : xJ
5197
5197
  };
5198
5198
  return {
5199
5199
  position: q,
5200
- maxHeight: lJ,
5201
- arrowOffsetLeft: uJ.left,
5202
- arrowOffsetTop: uJ.top,
5200
+ maxHeight: mJ,
5201
+ arrowOffsetLeft: hJ.left,
5202
+ arrowOffsetTop: hJ.top,
5203
5203
  placement: U,
5204
- triggerAnchorPoint: _J
5204
+ triggerAnchorPoint: SJ
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 cJ = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
7059
+ let pJ = $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 lJ = $bdb11010cef70236$export$f680877a34711e37(), uJ = !t.isDisabled && !t.isReadOnly && e.isEditable, dJ = e.type === "literal" ? "" : s.of(e.type), fJ = $313b98861ee5dd6c$export$d6875122194c7b44({
7070
- "aria-label": `${dJ}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
7069
+ let mJ = $bdb11010cef70236$export$f680877a34711e37(), hJ = !t.isDisabled && !t.isReadOnly && e.isEditable, gJ = e.type === "literal" ? "" : s.of(e.type), _J = $313b98861ee5dd6c$export$d6875122194c7b44({
7070
+ "aria-label": `${gJ}${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 pJ = {
7078
+ let vJ = {
7079
7079
  caretColor: "transparent"
7080
7080
  };
7081
7081
  if (o === "rtl") {
7082
- pJ.unicodeBidi = "embed";
7082
+ vJ.unicodeBidi = "embed";
7083
7083
  let t2 = v[e.type];
7084
- (t2 === "numeric" || t2 === "2-digit") && (pJ.direction = "ltr");
7084
+ (t2 === "numeric" || t2 === "2-digit") && (vJ.direction = "ltr");
7085
7085
  }
7086
7086
  return {
7087
- segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, fJ, {
7088
- id: lJ,
7089
- ...cJ,
7087
+ segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, _J, {
7088
+ id: mJ,
7089
+ ...pJ,
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: uJ,
7095
- suppressContentEditableWarning: uJ,
7096
- spellCheck: uJ ? "false" : void 0,
7097
- autoCorrect: uJ ? "off" : void 0,
7098
- enterKeyHint: uJ ? "next" : void 0,
7099
- inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !uJ ? void 0 : "numeric",
7094
+ contentEditable: hJ,
7095
+ suppressContentEditableWarning: hJ,
7096
+ spellCheck: hJ ? "false" : void 0,
7097
+ autoCorrect: hJ ? "off" : void 0,
7098
+ enterKeyHint: hJ ? "next" : void 0,
7099
+ inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !hJ ? void 0 : "numeric",
7100
7100
  tabIndex: t.isDisabled ? void 0 : 0,
7101
7101
  onKeyDown: A,
7102
7102
  onFocus: Q,
7103
- style: pJ,
7103
+ style: vJ,
7104
7104
  onPointerDown(e2) {
7105
7105
  e2.stopPropagation();
7106
7106
  },
@@ -10349,12 +10349,12 @@ Defaulting to \`null\`.`;
10349
10349
  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
10350
  }
10351
10351
  }
10352
- let cJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10352
+ let pJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10353
10353
  w,
10354
10354
  f,
10355
10355
  s,
10356
10356
  c
10357
- ]), lJ = e.isInvalid || e.validationState === "invalid" || cJ, uJ = lJ ? "invalid" : null, dJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10357
+ ]), mJ = e.isInvalid || e.validationState === "invalid" || pJ, hJ = mJ ? "invalid" : null, gJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10358
10358
  h,
10359
10359
  o
10360
10360
  ]);
@@ -10371,8 +10371,8 @@ Defaulting to \`null\`.`;
10371
10371
  maxValue: c,
10372
10372
  focusedDate: O,
10373
10373
  timeZone: E,
10374
- validationState: uJ,
10375
- isValueInvalid: lJ,
10374
+ validationState: hJ,
10375
+ isValueInvalid: mJ,
10376
10376
  setFocusedDate(e2) {
10377
10377
  Q(e2);
10378
10378
  },
@@ -10397,12 +10397,12 @@ Defaulting to \`null\`.`;
10397
10397
  }));
10398
10398
  },
10399
10399
  focusNextPage() {
10400
- let e2 = M.add(dJ);
10401
- A($f62d864046160412$export$4f5203c0d889109e(O.add(dJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, dJ, i, s, c), dJ, i));
10400
+ let e2 = M.add(gJ);
10401
+ A($f62d864046160412$export$4f5203c0d889109e(O.add(gJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, gJ, i, s, c), gJ, i));
10402
10402
  },
10403
10403
  focusPreviousPage() {
10404
- let e2 = M.subtract(dJ);
10405
- A($f62d864046160412$export$4f5203c0d889109e(O.subtract(dJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, dJ, i, s, c), dJ, i));
10404
+ let e2 = M.subtract(gJ);
10405
+ A($f62d864046160412$export$4f5203c0d889109e(O.subtract(gJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, gJ, i, s, c), gJ, i));
10406
10406
  },
10407
10407
  focusSectionStart() {
10408
10408
  o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
@@ -10539,13 +10539,13 @@ Defaulting to \`null\`.`;
10539
10539
  end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
10540
10540
  }), q(null);
10541
10541
  }
10542
- }, [$, cJ] = (0, import_react.useState)(false), { isDateUnavailable: lJ } = e, uJ = (0, import_react.useMemo)(() => !h || v ? false : lJ && (lJ(h.start) || lJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10543
- lJ,
10542
+ }, [$, pJ] = (0, import_react.useState)(false), { isDateUnavailable: mJ } = e, hJ = (0, import_react.useMemo)(() => !h || v ? false : mJ && (mJ(h.start) || mJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10543
+ mJ,
10544
10544
  h,
10545
10545
  v,
10546
10546
  c,
10547
10547
  d
10548
- ]), dJ = e.isInvalid || e.validationState === "invalid" || uJ, fJ = dJ ? "invalid" : null;
10548
+ ]), gJ = e.isInvalid || e.validationState === "invalid" || hJ, _J = gJ ? "invalid" : null;
10549
10549
  return {
10550
10550
  ...I,
10551
10551
  value: h,
@@ -10553,8 +10553,8 @@ Defaulting to \`null\`.`;
10553
10553
  anchorDate: v,
10554
10554
  setAnchorDate: q,
10555
10555
  highlightedRange: J,
10556
- validationState: fJ,
10557
- isValueInvalid: dJ,
10556
+ validationState: _J,
10557
+ isValueInvalid: gJ,
10558
10558
  selectFocusedDate() {
10559
10559
  Q(I.focusedDate);
10560
10560
  },
@@ -10570,7 +10570,7 @@ Defaulting to \`null\`.`;
10570
10570
  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
10571
  },
10572
10572
  isDragging: $,
10573
- setDragging: cJ
10573
+ setDragging: pJ
10574
10574
  };
10575
10575
  }
10576
10576
  function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
@@ -11757,7 +11757,7 @@ Defaulting to \`null\`.`;
11757
11757
  _,
11758
11758
  S,
11759
11759
  v
11760
- ]), cJ = (0, import_react.useMemo)(() => {
11760
+ ]), pJ = (0, import_react.useMemo)(() => {
11761
11761
  let t2 = w === "h11" || w === "h12", n2 = [
11762
11762
  "era",
11763
11763
  "year",
@@ -11775,15 +11775,15 @@ Defaulting to \`null\`.`;
11775
11775
  e.maxGranularity,
11776
11776
  _,
11777
11777
  w
11778
- ]), [lJ, uJ] = (0, import_react.useState)(M), [dJ, fJ] = (0, import_react.useState)(S), [pJ, mJ] = (0, import_react.useState)(w);
11779
- (M !== lJ || w !== pJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, dJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), uJ(M), fJ(S), mJ(w), z(I));
11780
- let hJ = (t2) => {
11781
- if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(cJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
11778
+ ]), [mJ, hJ] = (0, import_react.useState)(M), [gJ, _J] = (0, import_react.useState)(S), [vJ, yJ] = (0, import_react.useState)(w);
11779
+ (M !== mJ || w !== vJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, gJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), hJ(M), _J(S), yJ(w), z(I));
11780
+ let bJ = (t2) => {
11781
+ if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(pJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
11782
11782
  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
11783
  else {
11784
- if (t2.isComplete(cJ)) {
11784
+ if (t2.isComplete(pJ)) {
11785
11785
  let e2 = t2.toValue(M ?? $);
11786
- if (t2.validate(e2, cJ)) {
11786
+ if (t2.validate(e2, pJ)) {
11787
11787
  let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11788
11788
  if (!E || t3.compare(E) !== 0) {
11789
11789
  z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
@@ -11793,83 +11793,83 @@ Defaulting to \`null\`.`;
11793
11793
  }
11794
11794
  z(t2);
11795
11795
  }
11796
- }, gJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11796
+ }, xJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11797
11797
  I,
11798
11798
  y,
11799
11799
  M,
11800
11800
  $
11801
- ]), _J = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(gJ, I, J, Q, S, t, _), [
11802
- gJ,
11801
+ ]), SJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(xJ, I, J, Q, S, t, _), [
11802
+ xJ,
11803
11803
  J,
11804
11804
  Q,
11805
11805
  I,
11806
11806
  S,
11807
11807
  t,
11808
11808
  _
11809
- ]), vJ = (e2, t2) => {
11810
- hJ(I.cycle(e2, t2, $, cJ));
11811
- }, yJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11809
+ ]), CJ = (e2, t2) => {
11810
+ bJ(I.cycle(e2, t2, $, pJ));
11811
+ }, wJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11812
11812
  E,
11813
11813
  c,
11814
11814
  d,
11815
11815
  f,
11816
11816
  K
11817
- ]), bJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11817
+ ]), TJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11818
11818
  ...e,
11819
11819
  value: E,
11820
- builtinValidation: yJ
11821
- }), xJ = bJ.displayValidation.isInvalid, SJ = e.validationState || (xJ ? "invalid" : null);
11820
+ builtinValidation: wJ
11821
+ }), EJ = TJ.displayValidation.isInvalid, DJ = e.validationState || (EJ ? "invalid" : null);
11822
11822
  return {
11823
- ...bJ,
11823
+ ...TJ,
11824
11824
  value: M,
11825
11825
  defaultValue: e.defaultValue ?? A,
11826
- dateValue: gJ,
11826
+ dateValue: xJ,
11827
11827
  calendar: S,
11828
- setValue: hJ,
11829
- segments: _J,
11828
+ setValue: bJ,
11829
+ segments: SJ,
11830
11830
  dateFormatter: J,
11831
- validationState: SJ,
11832
- isInvalid: xJ,
11831
+ validationState: DJ,
11832
+ isInvalid: EJ,
11833
11833
  granularity: _,
11834
11834
  maxGranularity: e.maxGranularity ?? "year",
11835
11835
  isDisabled: a,
11836
11836
  isReadOnly: o,
11837
11837
  isRequired: s,
11838
11838
  increment(e2) {
11839
- vJ(e2, 1);
11839
+ CJ(e2, 1);
11840
11840
  },
11841
11841
  decrement(e2) {
11842
- vJ(e2, -1);
11842
+ CJ(e2, -1);
11843
11843
  },
11844
11844
  incrementPage(e2) {
11845
- vJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11845
+ CJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11846
11846
  },
11847
11847
  decrementPage(e2) {
11848
- vJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11848
+ CJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11849
11849
  },
11850
11850
  incrementToMax(e2) {
11851
11851
  let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
11852
- hJ(I.set(e2, t2, $));
11852
+ bJ(I.set(e2, t2, $));
11853
11853
  },
11854
11854
  decrementToMin(e2) {
11855
11855
  let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
11856
- hJ(I.set(e2, t2, $));
11856
+ bJ(I.set(e2, t2, $));
11857
11857
  },
11858
11858
  setSegment(e2, t2) {
11859
- hJ(I.set(e2, t2, $));
11859
+ bJ(I.set(e2, t2, $));
11860
11860
  },
11861
11861
  confirmPlaceholder() {
11862
- if (!(e.isDisabled || e.isReadOnly) && I.isComplete(cJ)) {
11862
+ if (!(e.isDisabled || e.isReadOnly) && I.isComplete(pJ)) {
11863
11863
  let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11864
11864
  (!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
11865
11865
  }
11866
11866
  },
11867
11867
  clearSegment(e2) {
11868
11868
  let t2 = I;
11869
- e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), hJ(t2);
11869
+ e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), bJ(t2);
11870
11870
  },
11871
11871
  formatValue(e2) {
11872
- return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(gJ) : "";
11872
+ return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(xJ) : "";
11873
11873
  },
11874
11874
  getDateFormatter(e2, t2) {
11875
11875
  return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
@@ -11989,7 +11989,7 @@ Defaulting to \`null\`.`;
11989
11989
  e.endName
11990
11990
  ]),
11991
11991
  builtinValidation: J
11992
- }), $ = Q.displayValidation.isInvalid, cJ = e.validationState || ($ ? "invalid" : null);
11992
+ }), $ = Q.displayValidation.isInvalid, pJ = e.validationState || ($ ? "invalid" : null);
11993
11993
  return {
11994
11994
  ...Q,
11995
11995
  value: c,
@@ -12035,7 +12035,7 @@ Defaulting to \`null\`.`;
12035
12035
  end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
12036
12036
  }), t.setOpen(n2);
12037
12037
  },
12038
- validationState: cJ,
12038
+ validationState: pJ,
12039
12039
  isInvalid: $,
12040
12040
  formatValue(t2, n2) {
12041
12041
  if (!c || !c.start || !c.end) return null;
@@ -15929,33 +15929,33 @@ try {
15929
15929
  }, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
15930
15930
  function y(e2) {
15931
15931
  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, cJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
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, pJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
15933
15933
  h2
15934
- ]), lJ = cJ[t], uJ = lJ || cJ, { colorSchemes: dJ = _, components: fJ = v, cssVarPrefix: pJ } = uJ, mJ = Object.keys(dJ).filter((e3) => !!dJ[e3]).join(","), hJ = import_react.useMemo(() => mJ.split(","), [
15935
- mJ
15936
- ]), gJ = typeof s == "string" ? s : s.light, _J = typeof s == "string" ? s : s.dark, { mode: vJ, setMode: yJ, systemMode: bJ, lightColorScheme: xJ, darkColorScheme: SJ, colorScheme: CJ, setColorScheme: wJ } = useCurrentColorScheme({
15937
- supportedColorSchemes: hJ,
15938
- defaultLightColorScheme: gJ,
15939
- defaultDarkColorScheme: _J,
15934
+ ]), mJ = pJ[t], hJ = mJ || pJ, { colorSchemes: gJ = _, components: _J = v, cssVarPrefix: vJ } = hJ, yJ = Object.keys(gJ).filter((e3) => !!gJ[e3]).join(","), bJ = import_react.useMemo(() => yJ.split(","), [
15935
+ yJ
15936
+ ]), xJ = typeof s == "string" ? s : s.light, SJ = typeof s == "string" ? s : s.dark, { mode: CJ, setMode: wJ, systemMode: TJ, lightColorScheme: EJ, darkColorScheme: DJ, colorScheme: OJ, setColorScheme: kJ } = useCurrentColorScheme({
15937
+ supportedColorSchemes: bJ,
15938
+ defaultLightColorScheme: xJ,
15939
+ defaultDarkColorScheme: SJ,
15940
15940
  modeStorageKey: y2,
15941
15941
  colorSchemeStorageKey: S2,
15942
- defaultMode: dJ[gJ] && dJ[_J] ? U : ((_b = (_a2 = dJ[uJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = uJ.palette) == null ? void 0 : _c.mode),
15942
+ defaultMode: gJ[xJ] && gJ[SJ] ? U : ((_b = (_a2 = gJ[hJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = hJ.palette) == null ? void 0 : _c.mode),
15943
15943
  storageManager: E,
15944
15944
  storageWindow: O,
15945
15945
  noSsr: K
15946
- }), TJ = vJ, EJ = CJ;
15947
- $ && (TJ = Q.mode, EJ = Q.colorScheme);
15948
- let DJ = import_react.useMemo(() => {
15946
+ }), AJ = CJ, jJ = OJ;
15947
+ $ && (AJ = Q.mode, jJ = Q.colorScheme);
15948
+ let MJ = import_react.useMemo(() => {
15949
15949
  var _a3;
15950
- let e3 = EJ || uJ.defaultColorScheme, t2 = ((_a3 = uJ.generateThemeVars) == null ? void 0 : _a3.call(uJ)) || uJ.vars, n2 = {
15951
- ...uJ,
15952
- components: fJ,
15953
- colorSchemes: dJ,
15954
- cssVarPrefix: pJ,
15950
+ let e3 = jJ || hJ.defaultColorScheme, t2 = ((_a3 = hJ.generateThemeVars) == null ? void 0 : _a3.call(hJ)) || hJ.vars, n2 = {
15951
+ ...hJ,
15952
+ components: _J,
15953
+ colorSchemes: gJ,
15954
+ cssVarPrefix: vJ,
15955
15955
  vars: t2
15956
15956
  };
15957
15957
  if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
15958
- let t3 = dJ[e3];
15958
+ let t3 = gJ[e3];
15959
15959
  t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
15960
15960
  t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
15961
15961
  ...n2[e4],
@@ -15965,31 +15965,31 @@ try {
15965
15965
  }
15966
15966
  return c ? c(n2) : n2;
15967
15967
  }, [
15968
- uJ,
15969
- EJ,
15970
- fJ,
15971
- dJ,
15972
- pJ
15973
- ]), OJ = uJ.colorSchemeSelector;
15968
+ hJ,
15969
+ jJ,
15970
+ _J,
15971
+ gJ,
15972
+ vJ
15973
+ ]), NJ = hJ.colorSchemeSelector;
15974
15974
  useEnhancedEffect_default(() => {
15975
- if (EJ && M && OJ && OJ !== "media") {
15976
- let e3 = OJ, t2 = OJ;
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(...hJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", EJ));
15975
+ if (jJ && M && NJ && NJ !== "media") {
15976
+ let e3 = NJ, t2 = NJ;
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(...bJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", jJ));
15978
15978
  else {
15979
- let e4 = t2.replace("%s", EJ).match(/\[([^\]]+)\]/);
15979
+ let e4 = t2.replace("%s", jJ).match(/\[([^\]]+)\]/);
15980
15980
  if (e4) {
15981
15981
  let [t3, n2] = e4[1].split("=");
15982
- n2 || hJ.forEach((e5) => {
15983
- M.removeAttribute(t3.replace(EJ, e5));
15982
+ n2 || bJ.forEach((e5) => {
15983
+ M.removeAttribute(t3.replace(jJ, e5));
15984
15984
  }), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
15985
- } else M.setAttribute(t2, EJ);
15985
+ } else M.setAttribute(t2, jJ);
15986
15986
  }
15987
15987
  }
15988
15988
  }, [
15989
- EJ,
15990
- OJ,
15989
+ jJ,
15990
+ NJ,
15991
15991
  M,
15992
- hJ
15992
+ bJ
15993
15993
  ]), import_react.useEffect(() => {
15994
15994
  let e3;
15995
15995
  if (w2 && q.current && A) {
@@ -16002,48 +16002,48 @@ try {
16002
16002
  clearTimeout(e3);
16003
16003
  };
16004
16004
  }, [
16005
- EJ,
16005
+ jJ,
16006
16006
  w2,
16007
16007
  A
16008
16008
  ]), import_react.useEffect(() => (q.current = true, () => {
16009
16009
  q.current = false;
16010
16010
  }), []);
16011
- let kJ = import_react.useMemo(() => ({
16012
- allColorSchemes: hJ,
16013
- colorScheme: EJ,
16014
- darkColorScheme: SJ,
16015
- lightColorScheme: xJ,
16016
- mode: TJ,
16017
- setColorScheme: wJ,
16018
- setMode: yJ,
16019
- systemMode: bJ
16011
+ let PJ = import_react.useMemo(() => ({
16012
+ allColorSchemes: bJ,
16013
+ colorScheme: jJ,
16014
+ darkColorScheme: DJ,
16015
+ lightColorScheme: EJ,
16016
+ mode: AJ,
16017
+ setColorScheme: kJ,
16018
+ setMode: wJ,
16019
+ systemMode: TJ
16020
16020
  }), [
16021
- hJ,
16021
+ bJ,
16022
+ jJ,
16023
+ DJ,
16022
16024
  EJ,
16023
- SJ,
16024
- xJ,
16025
- TJ,
16025
+ AJ,
16026
+ kJ,
16026
16027
  wJ,
16027
- yJ,
16028
- bJ,
16029
- DJ.colorSchemeSelector
16030
- ]), AJ = true;
16031
- (z || uJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === pJ) && (AJ = false);
16032
- let jJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
16028
+ TJ,
16029
+ MJ.colorSchemeSelector
16030
+ ]), FJ = true;
16031
+ (z || hJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === vJ) && (FJ = false);
16032
+ let IJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
16033
16033
  children: [
16034
16034
  (0, import_jsx_runtime.jsx)(ThemeProvider_default, {
16035
- themeId: lJ ? t : void 0,
16036
- theme: DJ,
16035
+ themeId: mJ ? t : void 0,
16036
+ theme: MJ,
16037
16037
  children: d2
16038
16038
  }),
16039
- AJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
16040
- styles: ((_d = DJ.generateStyleSheets) == null ? void 0 : _d.call(DJ)) || []
16039
+ FJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
16040
+ styles: ((_d = MJ.generateStyleSheets) == null ? void 0 : _d.call(MJ)) || []
16041
16041
  })
16042
16042
  ]
16043
16043
  });
16044
- return $ ? jJ : (0, import_jsx_runtime.jsx)(f.Provider, {
16045
- value: kJ,
16046
- children: jJ
16044
+ return $ ? IJ : (0, import_jsx_runtime.jsx)(f.Provider, {
16045
+ value: PJ,
16046
+ children: IJ
16047
16047
  });
16048
16048
  }
16049
16049
  let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
@@ -17543,10 +17543,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17543
17543
  let n = useDefaultProps({
17544
17544
  props: e,
17545
17545
  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: cJ, onKeyDown: lJ, onKeyUp: uJ, placeholder: dJ, readOnly: fJ, renderSuffix: pJ, rows: mJ, size: hJ, slotProps: gJ = {}, slots: _J = {}, startAdornment: vJ, type: yJ = "text", value: bJ, ...xJ } = n, SJ = A.value == null ? bJ : A.value, { current: CJ } = import_react.useRef(SJ != null), wJ = import_react.useRef(), TJ = import_react.useCallback((e2) => {
17547
- }, []), EJ = useForkRef_default(wJ, M, A.ref, TJ), [DJ, OJ] = import_react.useState(false), kJ = useFormControl(), AJ = formControlState({
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: pJ, onKeyDown: mJ, onKeyUp: hJ, placeholder: gJ, readOnly: _J, renderSuffix: vJ, rows: yJ, size: bJ, slotProps: xJ = {}, slots: SJ = {}, startAdornment: CJ, type: wJ = "text", value: TJ, ...EJ } = n, DJ = A.value == null ? TJ : A.value, { current: OJ } = import_react.useRef(DJ != null), kJ = import_react.useRef(), AJ = import_react.useCallback((e2) => {
17547
+ }, []), jJ = useForkRef_default(kJ, M, A.ref, AJ), [MJ, NJ] = import_react.useState(false), PJ = useFormControl(), FJ = formControlState({
17548
17548
  props: n,
17549
- muiFormControl: kJ,
17549
+ muiFormControl: PJ,
17550
17550
  states: [
17551
17551
  "color",
17552
17552
  "disabled",
@@ -17557,145 +17557,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17557
17557
  "filled"
17558
17558
  ]
17559
17559
  });
17560
- AJ.focused = kJ ? kJ.focused : DJ, import_react.useEffect(() => {
17561
- !kJ && _ && DJ && (OJ(false), J && J());
17560
+ FJ.focused = PJ ? PJ.focused : MJ, import_react.useEffect(() => {
17561
+ !PJ && _ && MJ && (NJ(false), J && J());
17562
17562
  }, [
17563
- kJ,
17563
+ PJ,
17564
17564
  _,
17565
- DJ,
17565
+ MJ,
17566
17566
  J
17567
17567
  ]);
17568
- let jJ = kJ && kJ.onFilled, MJ = kJ && kJ.onEmpty, NJ = import_react.useCallback((e2) => {
17569
- isFilled(e2) ? jJ && jJ() : MJ && MJ();
17568
+ let IJ = PJ && PJ.onFilled, LJ = PJ && PJ.onEmpty, RJ = import_react.useCallback((e2) => {
17569
+ isFilled(e2) ? IJ && IJ() : LJ && LJ();
17570
17570
  }, [
17571
- jJ,
17572
- MJ
17571
+ IJ,
17572
+ LJ
17573
17573
  ]);
17574
17574
  useEnhancedEffect_default$1(() => {
17575
- CJ && NJ({
17576
- value: SJ
17575
+ OJ && RJ({
17576
+ value: DJ
17577
17577
  });
17578
17578
  }, [
17579
- SJ,
17580
- NJ,
17581
- CJ
17579
+ DJ,
17580
+ RJ,
17581
+ OJ
17582
17582
  ]);
17583
- let PJ = (e2) => {
17584
- cJ && cJ(e2), A.onFocus && A.onFocus(e2), kJ && kJ.onFocus ? kJ.onFocus(e2) : OJ(true);
17585
- }, FJ = (e2) => {
17586
- J && J(e2), A.onBlur && A.onBlur(e2), kJ && kJ.onBlur ? kJ.onBlur(e2) : OJ(false);
17587
- }, IJ = (e2, ...t2) => {
17588
- if (!CJ) {
17589
- let t3 = e2.target || wJ.current;
17583
+ let zJ = (e2) => {
17584
+ pJ && pJ(e2), A.onFocus && A.onFocus(e2), PJ && PJ.onFocus ? PJ.onFocus(e2) : NJ(true);
17585
+ }, BJ = (e2) => {
17586
+ J && J(e2), A.onBlur && A.onBlur(e2), PJ && PJ.onBlur ? PJ.onBlur(e2) : NJ(false);
17587
+ }, VJ = (e2, ...t2) => {
17588
+ if (!OJ) {
17589
+ let t3 = e2.target || kJ.current;
17590
17590
  if (t3 == null) throw Error(formatMuiErrorMessage(1));
17591
- NJ({
17591
+ RJ({
17592
17592
  value: t3.value
17593
17593
  });
17594
17594
  }
17595
17595
  A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
17596
17596
  };
17597
17597
  import_react.useEffect(() => {
17598
- NJ(wJ.current);
17598
+ RJ(kJ.current);
17599
17599
  }, []);
17600
- let LJ = (e2) => {
17601
- wJ.current && e2.currentTarget === e2.target && wJ.current.focus(), $ && $(e2);
17602
- }, RJ = O, zJ = A;
17603
- K && RJ === "input" && (zJ = mJ ? {
17600
+ let HJ = (e2) => {
17601
+ kJ.current && e2.currentTarget === e2.target && kJ.current.focus(), $ && $(e2);
17602
+ }, UJ = O, WJ = A;
17603
+ K && UJ === "input" && (WJ = yJ ? {
17604
17604
  type: void 0,
17605
- minRows: mJ,
17606
- maxRows: mJ,
17607
- ...zJ
17605
+ minRows: yJ,
17606
+ maxRows: yJ,
17607
+ ...WJ
17608
17608
  } : {
17609
17609
  type: void 0,
17610
17610
  maxRows: z,
17611
17611
  minRows: U,
17612
- ...zJ
17613
- }, RJ = TextareaAutosize_default);
17614
- let BJ = (e2) => {
17615
- NJ(e2.animationName === "mui-auto-fill-cancel" ? wJ.current : {
17612
+ ...WJ
17613
+ }, UJ = TextareaAutosize_default);
17614
+ let GJ = (e2) => {
17615
+ RJ(e2.animationName === "mui-auto-fill-cancel" ? kJ.current : {
17616
17616
  value: "x"
17617
17617
  });
17618
17618
  };
17619
17619
  import_react.useEffect(() => {
17620
- kJ && kJ.setAdornedStart(!!vJ);
17620
+ PJ && PJ.setAdornedStart(!!CJ);
17621
17621
  }, [
17622
- kJ,
17623
- vJ
17622
+ PJ,
17623
+ CJ
17624
17624
  ]);
17625
- let VJ = {
17625
+ let KJ = {
17626
17626
  ...n,
17627
- color: AJ.color || "primary",
17628
- disabled: AJ.disabled,
17627
+ color: FJ.color || "primary",
17628
+ disabled: FJ.disabled,
17629
17629
  endAdornment: y,
17630
- error: AJ.error,
17631
- focused: AJ.focused,
17632
- formControl: kJ,
17630
+ error: FJ.error,
17631
+ focused: FJ.focused,
17632
+ formControl: PJ,
17633
17633
  fullWidth: w,
17634
- hiddenLabel: AJ.hiddenLabel,
17634
+ hiddenLabel: FJ.hiddenLabel,
17635
17635
  multiline: K,
17636
- size: AJ.size,
17637
- startAdornment: vJ,
17638
- type: yJ
17639
- }, HJ = useUtilityClasses(VJ), UJ = _J.root || d.Root || InputBaseRoot, WJ = gJ.root || f.root || {}, GJ = _J.input || d.Input || InputBaseInput;
17640
- return zJ = {
17641
- ...zJ,
17642
- ...gJ.input ?? f.input
17636
+ size: FJ.size,
17637
+ startAdornment: CJ,
17638
+ type: wJ
17639
+ }, qJ = useUtilityClasses(KJ), JJ = SJ.root || d.Root || InputBaseRoot, YJ = xJ.root || f.root || {}, XJ = SJ.input || d.Input || InputBaseInput;
17640
+ return WJ = {
17641
+ ...WJ,
17642
+ ...xJ.input ?? f.input
17643
17643
  }, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
17644
17644
  children: [
17645
17645
  !v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
17646
- (0, import_jsx_runtime.jsxs)(UJ, {
17647
- ...WJ,
17646
+ (0, import_jsx_runtime.jsxs)(JJ, {
17647
+ ...YJ,
17648
17648
  ref: t,
17649
- onClick: LJ,
17650
- ...xJ,
17651
- ...!isHostComponent_default(UJ) && {
17649
+ onClick: HJ,
17650
+ ...EJ,
17651
+ ...!isHostComponent_default(JJ) && {
17652
17652
  ownerState: {
17653
- ...VJ,
17654
- ...WJ.ownerState
17653
+ ...KJ,
17654
+ ...YJ.ownerState
17655
17655
  }
17656
17656
  },
17657
- className: clsx_default(HJ.root, WJ.className, s, fJ && "MuiInputBase-readOnly"),
17657
+ className: clsx_default(qJ.root, YJ.className, s, _J && "MuiInputBase-readOnly"),
17658
17658
  children: [
17659
- vJ,
17659
+ CJ,
17660
17660
  (0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
17661
17661
  value: null,
17662
- children: (0, import_jsx_runtime.jsx)(GJ, {
17663
- "aria-invalid": AJ.error,
17662
+ children: (0, import_jsx_runtime.jsx)(XJ, {
17663
+ "aria-invalid": FJ.error,
17664
17664
  "aria-describedby": i,
17665
17665
  autoComplete: a,
17666
17666
  autoFocus: o,
17667
17667
  defaultValue: h,
17668
- disabled: AJ.disabled,
17668
+ disabled: FJ.disabled,
17669
17669
  id: E,
17670
- onAnimationStart: BJ,
17670
+ onAnimationStart: GJ,
17671
17671
  name: q,
17672
- placeholder: dJ,
17673
- readOnly: fJ,
17674
- required: AJ.required,
17675
- rows: mJ,
17676
- value: SJ,
17677
- onKeyDown: lJ,
17678
- onKeyUp: uJ,
17679
- type: yJ,
17680
- ...zJ,
17681
- ...!isHostComponent_default(GJ) && {
17682
- as: RJ,
17672
+ placeholder: gJ,
17673
+ readOnly: _J,
17674
+ required: FJ.required,
17675
+ rows: yJ,
17676
+ value: DJ,
17677
+ onKeyDown: mJ,
17678
+ onKeyUp: hJ,
17679
+ type: wJ,
17680
+ ...WJ,
17681
+ ...!isHostComponent_default(XJ) && {
17682
+ as: UJ,
17683
17683
  ownerState: {
17684
- ...VJ,
17685
- ...zJ.ownerState
17684
+ ...KJ,
17685
+ ...WJ.ownerState
17686
17686
  }
17687
17687
  },
17688
- ref: EJ,
17689
- className: clsx_default(HJ.input, zJ.className, fJ && "MuiInputBase-readOnly"),
17690
- onBlur: FJ,
17691
- onChange: IJ,
17692
- onFocus: PJ
17688
+ ref: jJ,
17689
+ className: clsx_default(qJ.input, WJ.className, _J && "MuiInputBase-readOnly"),
17690
+ onBlur: BJ,
17691
+ onChange: VJ,
17692
+ onFocus: zJ
17693
17693
  })
17694
17694
  }),
17695
17695
  y,
17696
- pJ ? pJ({
17697
- ...AJ,
17698
- startAdornment: vJ
17696
+ vJ ? vJ({
17697
+ ...FJ,
17698
+ startAdornment: CJ
17699
17699
  }) : null
17700
17700
  ]
17701
17701
  })
@@ -18771,30 +18771,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18771
18771
  M,
18772
18772
  i,
18773
18773
  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), cJ = useTextColor(), lJ = useJsonViewerStore((e2) => e2.colorspace.base0C), uJ = useJsonViewerStore((e2) => e2.colorspace.base0A), dJ = useJsonViewerStore((e2) => e2.displayComma), fJ = useJsonViewerStore((e2) => e2.quotesOnKeys), pJ = useJsonViewerStore((e2) => e2.rootName), mJ = U === t, hJ = Number.isInteger(Number(A)), gJ = useJsonViewerStore((e2) => e2.enableAdd), _J = useJsonViewerStore((e2) => e2.onAdd), vJ = (0, import_react.useMemo)(() => !_J || a !== void 0 || gJ === false || v === false ? false : typeof gJ == "function" ? !!gJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18775
- _J,
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), pJ = useTextColor(), mJ = useJsonViewerStore((e2) => e2.colorspace.base0C), hJ = useJsonViewerStore((e2) => e2.colorspace.base0A), gJ = useJsonViewerStore((e2) => e2.displayComma), _J = useJsonViewerStore((e2) => e2.quotesOnKeys), vJ = useJsonViewerStore((e2) => e2.rootName), yJ = U === t, bJ = Number.isInteger(Number(A)), xJ = useJsonViewerStore((e2) => e2.enableAdd), SJ = useJsonViewerStore((e2) => e2.onAdd), CJ = (0, import_react.useMemo)(() => !SJ || a !== void 0 || xJ === false || v === false ? false : typeof xJ == "function" ? !!xJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18775
+ SJ,
18776
18776
  a,
18777
18777
  i,
18778
- gJ,
18778
+ xJ,
18779
18779
  v,
18780
18780
  t
18781
- ]), yJ = useJsonViewerStore((e2) => e2.enableDelete), bJ = useJsonViewerStore((e2) => e2.onDelete), xJ = (0, import_react.useMemo)(() => !bJ || a !== void 0 || mJ || yJ === false || v === false ? false : typeof yJ == "function" ? !!yJ(i, t) : yJ, [
18782
- bJ,
18781
+ ]), wJ = useJsonViewerStore((e2) => e2.enableDelete), TJ = useJsonViewerStore((e2) => e2.onDelete), EJ = (0, import_react.useMemo)(() => !TJ || a !== void 0 || yJ || wJ === false || v === false ? false : typeof wJ == "function" ? !!wJ(i, t) : wJ, [
18782
+ TJ,
18783
18783
  a,
18784
- mJ,
18785
- i,
18786
18784
  yJ,
18785
+ i,
18786
+ wJ,
18787
18787
  v,
18788
18788
  t
18789
- ]), SJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: CJ, copied: wJ } = useClipboard(), TJ = useJsonViewerStore((e2) => e2.highlightUpdates), EJ = (0, import_react.useMemo)(() => !TJ || 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
- TJ,
18789
+ ]), DJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: OJ, copied: kJ } = useClipboard(), AJ = useJsonViewerStore((e2) => e2.highlightUpdates), jJ = (0, import_react.useMemo)(() => !AJ || 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
+ AJ,
18791
18791
  n,
18792
18792
  t
18793
- ]), DJ = (0, import_react.useRef)();
18793
+ ]), MJ = (0, import_react.useRef)();
18794
18794
  (0, import_react.useEffect)(() => {
18795
- DJ.current && EJ && "animate" in DJ.current && DJ.current.animate([
18795
+ MJ.current && jJ && "animate" in MJ.current && MJ.current.animate([
18796
18796
  {
18797
- backgroundColor: uJ
18797
+ backgroundColor: hJ
18798
18798
  },
18799
18799
  {
18800
18800
  backgroundColor: ""
@@ -18804,22 +18804,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18804
18804
  easing: "ease-in"
18805
18805
  });
18806
18806
  }, [
18807
- uJ,
18808
- EJ,
18807
+ hJ,
18808
+ jJ,
18809
18809
  n,
18810
18810
  t
18811
18811
  ]);
18812
- let OJ = (0, import_react.useCallback)((e2) => {
18812
+ let NJ = (0, import_react.useCallback)((e2) => {
18813
18813
  e2.preventDefault(), h && E(h(t)), Q(true);
18814
18814
  }, [
18815
18815
  h,
18816
18816
  t
18817
- ]), kJ = (0, import_react.useCallback)(() => {
18817
+ ]), PJ = (0, import_react.useCallback)(() => {
18818
18818
  Q(false), E("");
18819
18819
  }, [
18820
18820
  Q,
18821
18821
  E
18822
- ]), AJ = (0, import_react.useCallback)((e2) => {
18822
+ ]), FJ = (0, import_react.useCallback)((e2) => {
18823
18823
  if (Q(false), _) try {
18824
18824
  $(i, t, _(e2));
18825
18825
  } catch {
@@ -18830,14 +18830,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18830
18830
  $,
18831
18831
  i,
18832
18832
  t
18833
- ]), jJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18833
+ ]), IJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18834
18834
  children: [
18835
18835
  (0, import_jsx_runtime.jsx)(IconBox, {
18836
18836
  children: (0, import_jsx_runtime.jsx)(CloseIcon, {
18837
18837
  sx: {
18838
18838
  fontSize: ".8rem"
18839
18839
  },
18840
- onClick: kJ
18840
+ onClick: PJ
18841
18841
  })
18842
18842
  }),
18843
18843
  (0, import_jsx_runtime.jsx)(IconBox, {
@@ -18845,22 +18845,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18845
18845
  sx: {
18846
18846
  fontSize: ".8rem"
18847
18847
  },
18848
- onClick: () => AJ(w)
18848
+ onClick: () => FJ(w)
18849
18849
  })
18850
18850
  })
18851
18851
  ]
18852
18852
  }) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18853
18853
  children: [
18854
- SJ && (0, import_jsx_runtime.jsx)(IconBox, {
18854
+ DJ && (0, import_jsx_runtime.jsx)(IconBox, {
18855
18855
  onClick: (e2) => {
18856
18856
  e2.preventDefault();
18857
18857
  try {
18858
- CJ(i, t, copyString);
18858
+ OJ(i, t, copyString);
18859
18859
  } catch (e3) {
18860
18860
  console.error(e3);
18861
18861
  }
18862
18862
  },
18863
- children: wJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18863
+ children: kJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18864
18864
  sx: {
18865
18865
  fontSize: ".8rem"
18866
18866
  }
@@ -18871,16 +18871,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18871
18871
  })
18872
18872
  }),
18873
18873
  f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
18874
- onClick: OJ,
18874
+ onClick: NJ,
18875
18875
  children: (0, import_jsx_runtime.jsx)(EditIcon, {
18876
18876
  sx: {
18877
18877
  fontSize: ".8rem"
18878
18878
  }
18879
18879
  })
18880
18880
  }),
18881
- vJ && (0, import_jsx_runtime.jsx)(IconBox, {
18881
+ CJ && (0, import_jsx_runtime.jsx)(IconBox, {
18882
18882
  onClick: (e2) => {
18883
- e2.preventDefault(), _J == null ? void 0 : _J(i);
18883
+ e2.preventDefault(), SJ == null ? void 0 : SJ(i);
18884
18884
  },
18885
18885
  children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
18886
18886
  sx: {
@@ -18888,9 +18888,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18888
18888
  }
18889
18889
  })
18890
18890
  }),
18891
- xJ && (0, import_jsx_runtime.jsx)(IconBox, {
18891
+ EJ && (0, import_jsx_runtime.jsx)(IconBox, {
18892
18892
  onClick: (e2) => {
18893
- e2.preventDefault(), bJ == null ? void 0 : bJ(i, t);
18893
+ e2.preventDefault(), TJ == null ? void 0 : TJ(i, t);
18894
18894
  },
18895
18895
  children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
18896
18896
  sx: {
@@ -18903,24 +18903,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18903
18903
  f,
18904
18904
  h,
18905
18905
  _,
18906
- wJ,
18907
- CJ,
18906
+ kJ,
18907
+ OJ,
18908
18908
  S,
18909
18909
  J,
18910
- SJ,
18911
- vJ,
18912
- xJ,
18910
+ DJ,
18911
+ CJ,
18912
+ EJ,
18913
18913
  w,
18914
18914
  i,
18915
18915
  t,
18916
- _J,
18917
- bJ,
18918
- OJ,
18919
- kJ,
18920
- AJ
18921
- ]), MJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18916
+ SJ,
18917
+ TJ,
18918
+ NJ,
18919
+ PJ,
18920
+ FJ
18921
+ ]), LJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18922
18922
  t
18923
- ]), NJ = !MJ && !!(c && d), PJ = useJsonViewerStore((e2) => e2.keyRenderer), FJ = (0, import_react.useMemo)(() => ({
18923
+ ]), RJ = !LJ && !!(c && d), zJ = useJsonViewerStore((e2) => e2.keyRenderer), BJ = (0, import_react.useMemo)(() => ({
18924
18924
  path: i,
18925
18925
  inspect: K,
18926
18926
  setInspect: q,
@@ -18952,18 +18952,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18952
18952
  className: "data-key",
18953
18953
  sx: {
18954
18954
  lineHeight: 1.5,
18955
- color: cJ,
18955
+ color: pJ,
18956
18956
  letterSpacing: 0.5,
18957
18957
  opacity: 0.8
18958
18958
  },
18959
18959
  onClick: (0, import_react.useCallback)((e2) => {
18960
- e2.isDefaultPrevented() || MJ || q((e3) => !e3);
18960
+ e2.isDefaultPrevented() || LJ || q((e3) => !e3);
18961
18961
  }, [
18962
- MJ,
18962
+ LJ,
18963
18963
  q
18964
18964
  ]),
18965
18965
  children: [
18966
- NJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18966
+ RJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18967
18967
  className: "data-key-toggle-expanded",
18968
18968
  sx: {
18969
18969
  fontSize: ".8rem",
@@ -18981,27 +18981,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18981
18981
  }
18982
18982
  }) : null,
18983
18983
  (0, import_jsx_runtime.jsx)(Box_default, {
18984
- ref: DJ,
18984
+ ref: MJ,
18985
18985
  className: "data-key-key",
18986
18986
  component: "span",
18987
- children: mJ && O === 0 ? pJ === false ? null : fJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18987
+ children: yJ && O === 0 ? vJ === false ? null : _J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18988
18988
  children: [
18989
18989
  '"',
18990
- pJ,
18990
+ vJ,
18991
18991
  '"'
18992
18992
  ]
18993
18993
  }) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
18994
- children: pJ
18995
- }) : PJ.when(FJ) ? (0, import_jsx_runtime.jsx)(PJ, {
18996
- ...FJ
18997
- }) : a === void 0 && (hJ ? (0, import_jsx_runtime.jsx)(Box_default, {
18994
+ children: vJ
18995
+ }) : zJ.when(BJ) ? (0, import_jsx_runtime.jsx)(zJ, {
18996
+ ...BJ
18997
+ }) : a === void 0 && (bJ ? (0, import_jsx_runtime.jsx)(Box_default, {
18998
18998
  component: "span",
18999
18999
  style: {
19000
- color: lJ,
19001
- userSelect: hJ ? "none" : "auto"
19000
+ color: mJ,
19001
+ userSelect: bJ ? "none" : "auto"
19002
19002
  },
19003
19003
  children: A
19004
- }) : fJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
19004
+ }) : _J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
19005
19005
  children: [
19006
19006
  '"',
19007
19007
  A,
@@ -19011,7 +19011,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19011
19011
  children: A
19012
19012
  }))
19013
19013
  }),
19014
- mJ ? pJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
19014
+ yJ ? vJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
19015
19015
  className: "data-key-colon",
19016
19016
  sx: {
19017
19017
  mr: 0.5
@@ -19024,38 +19024,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19024
19024
  ".data-key-key:empty + &": {
19025
19025
  display: "none"
19026
19026
  },
19027
- userSelect: hJ ? "none" : "auto"
19027
+ userSelect: bJ ? "none" : "auto"
19028
19028
  },
19029
19029
  children: ":"
19030
19030
  }),
19031
19031
  c && (0, import_jsx_runtime.jsx)(c, {
19032
- ...FJ
19032
+ ...BJ
19033
19033
  }),
19034
- I && NJ && K && jJ
19034
+ I && RJ && K && IJ
19035
19035
  ]
19036
19036
  }),
19037
19037
  J && S ? f && (0, import_jsx_runtime.jsx)(f, {
19038
19038
  path: i,
19039
19039
  value: w,
19040
19040
  setValue: E,
19041
- abortEditing: kJ,
19042
- commitEditing: AJ
19041
+ abortEditing: PJ,
19042
+ commitEditing: FJ
19043
19043
  }) : s ? (0, import_jsx_runtime.jsx)(s, {
19044
- ...FJ
19044
+ ...BJ
19045
19045
  }) : (0, import_jsx_runtime.jsx)(Box_default, {
19046
19046
  component: "span",
19047
19047
  className: "data-value-fallback",
19048
19048
  children: `fallback: ${t}`
19049
19049
  }),
19050
19050
  d && (0, import_jsx_runtime.jsx)(d, {
19051
- ...FJ
19051
+ ...BJ
19052
19052
  }),
19053
- !o && dJ && (0, import_jsx_runtime.jsx)(DataBox, {
19053
+ !o && gJ && (0, import_jsx_runtime.jsx)(DataBox, {
19054
19054
  children: ","
19055
19055
  }),
19056
- I && NJ && !K && jJ,
19057
- I && !NJ && jJ,
19058
- !I && J && jJ
19056
+ I && RJ && !K && IJ,
19057
+ I && !RJ && IJ,
19058
+ !I && J && IJ
19059
19059
  ]
19060
19060
  });
19061
19061
  }, query = "(prefers-color-scheme: dark)";
@@ -20143,18 +20143,18 @@ ${n}` : "Please fix this error.";
20143
20143
  }
20144
20144
  let y, S, w, E, A, M;
20145
20145
  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), O = n.filter(_temp9), I2 = n.filter(_temp0), z2 = 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), cJ = n.filter(_temp16), lJ = n.filter(_temp17), uJ = n.filter(_temp18), dJ;
20147
- t[17] === s ? dJ = t[18] : (dJ = () => {
20146
+ let e2 = n.filter(_temp8), O = n.filter(_temp9), I2 = n.filter(_temp0), z2 = 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), pJ = n.filter(_temp16), mJ = n.filter(_temp17), hJ = n.filter(_temp18), gJ;
20147
+ t[17] === s ? gJ = t[18] : (gJ = () => {
20148
20148
  s.openApplication("scratchpad");
20149
- }, t[17] = s, t[18] = dJ);
20150
- let fJ = dJ, pJ = () => {
20149
+ }, t[17] = s, t[18] = gJ);
20150
+ let _J = gJ, vJ = () => {
20151
20151
  let t2 = [];
20152
- if (cJ.length > 0 || lJ.length > 0) {
20153
- let e3 = cJ.some(_temp19), n2 = !e3 && cJ.some(_temp20);
20152
+ if (pJ.length > 0 || mJ.length > 0) {
20153
+ let e3 = pJ.some(_temp19), n2 = !e3 && pJ.some(_temp20);
20154
20154
  t2.push((0, import_jsx_runtime.jsxs)("div", {
20155
20155
  children: [
20156
- cJ.map(_temp21),
20157
- lJ.map(_temp22),
20156
+ pJ.map(_temp21),
20157
+ mJ.map(_temp22),
20158
20158
  e3 && (0, import_jsx_runtime.jsxs)(Button, {
20159
20159
  size: "xs",
20160
20160
  variant: "outline",
@@ -20185,8 +20185,8 @@ ${n}` : "Please fix this error.";
20185
20185
  }),
20186
20186
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20187
20187
  errors: [
20188
- ...cJ,
20189
- ...lJ
20188
+ ...pJ,
20189
+ ...mJ
20190
20190
  ],
20191
20191
  cellId: i
20192
20192
  })
@@ -20347,7 +20347,7 @@ ${n}` : "Please fix this error.";
20347
20347
  size: "xs",
20348
20348
  variant: "link",
20349
20349
  className: "my-2 font-normal mx-0 px-0",
20350
- onClick: fJ,
20350
+ onClick: _J,
20351
20351
  children: [
20352
20352
  (0, import_jsx_runtime.jsx)(NotebookPen, {
20353
20353
  className: "h-3"
@@ -20546,18 +20546,18 @@ ${n}` : "Please fix this error.";
20546
20546
  cellId: i
20547
20547
  })
20548
20548
  ]
20549
- }, "ancestor-stopped")), uJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20549
+ }, "ancestor-stopped")), hJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20550
20550
  children: [
20551
- uJ.map(_temp35),
20551
+ hJ.map(_temp35),
20552
20552
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20553
- errors: uJ,
20553
+ errors: hJ,
20554
20554
  cellId: i,
20555
20555
  className: "mt-2.5"
20556
20556
  })
20557
20557
  ]
20558
20558
  }, "sql-errors")), t2;
20559
- }, mJ;
20560
- t[19] === v ? mJ = t[20] : (mJ = v && (0, import_jsx_runtime.jsxs)("div", {
20559
+ }, yJ;
20560
+ t[19] === v ? yJ = t[20] : (yJ = v && (0, import_jsx_runtime.jsxs)("div", {
20561
20561
  className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
20562
20562
  children: [
20563
20563
  v,
@@ -20569,22 +20569,22 @@ ${n}` : "Please fix this error.";
20569
20569
  })
20570
20570
  })
20571
20571
  ]
20572
- }), t[19] = v, t[20] = mJ);
20573
- let gJ;
20574
- t[21] !== _ || t[22] !== d ? (gJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20572
+ }), t[19] = v, t[20] = yJ);
20573
+ let xJ;
20574
+ t[21] !== _ || t[22] !== d ? (xJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20575
20575
  className: `font-code font-medium ${_}`,
20576
20576
  children: d
20577
- }), t[21] = _, t[22] = d, t[23] = gJ) : gJ = t[23];
20578
- let _J;
20579
- t[24] !== mJ || t[25] !== gJ ? (_J = (0, import_jsx_runtime.jsxs)("div", {
20577
+ }), t[21] = _, t[22] = d, t[23] = xJ) : xJ = t[23];
20578
+ let SJ;
20579
+ t[24] !== yJ || t[25] !== xJ ? (SJ = (0, import_jsx_runtime.jsxs)("div", {
20580
20580
  className: "space-y-0.5",
20581
20581
  children: [
20582
- mJ,
20583
- gJ
20582
+ yJ,
20583
+ xJ
20584
20584
  ]
20585
- }), t[24] = mJ, t[25] = gJ, t[26] = _J) : _J = t[26];
20586
- let yJ = _J;
20587
- 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 = yJ, S = "flex flex-col gap-4", w = pJ(), 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;
20585
+ }), t[24] = yJ, t[25] = xJ, t[26] = SJ) : SJ = t[26];
20586
+ let wJ = SJ;
20587
+ 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 = wJ, S = "flex flex-col gap-4", w = vJ(), 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;
20588
20588
  } else y = t[11], S = t[12], w = t[13], E = t[14], A = t[15], M = t[16];
20589
20589
  let I;
20590
20590
  t[29] !== S || t[30] !== w ? (I = (0, import_jsx_runtime.jsx)("div", {
@@ -24596,9 +24596,10 @@ ${n}` : "Please fix this error.";
24596
24596
  }
24597
24597
  },
24598
24598
  y: {
24599
- aggregate: "max",
24600
- type: "quantitative",
24601
- axis: null
24599
+ value: 0
24600
+ },
24601
+ y2: {
24602
+ value: 100
24602
24603
  },
24603
24604
  tooltip: [
24604
24605
  {
@@ -24666,9 +24667,10 @@ ${n}` : "Please fix this error.";
24666
24667
  scale: i
24667
24668
  },
24668
24669
  y: {
24669
- aggregate: "max",
24670
- type: "quantitative",
24671
- axis: null
24670
+ value: 0
24671
+ },
24672
+ y2: {
24673
+ value: 100
24672
24674
  },
24673
24675
  tooltip: [
24674
24676
  {
@@ -24813,11 +24815,15 @@ ${n}` : "Please fix this error.";
24813
24815
  };
24814
24816
  }
24815
24817
  var READABLE_TIME_FORMAT = "%-I:%M:%S %p";
24818
+ function isValidBinValue(e) {
24819
+ let { bin_start: t, bin_end: n } = e;
24820
+ return !(t == null || n == null || typeof t == "number" && !Number.isFinite(t) || typeof n == "number" && !Number.isFinite(n));
24821
+ }
24816
24822
  function getPartialTimeTooltip(e) {
24817
24823
  var _a2;
24818
24824
  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 {};
24825
+ let t = (_a2 = e.find((e2) => isValidBinValue(e2))) == null ? void 0 : _a2.bin_start;
24826
+ if (t == null || typeof t == "number" && t.toString().length === 4) return {};
24821
24827
  if (typeof t == "string" && t.length === 8) return {
24822
24828
  type: "temporal",
24823
24829
  timeUnit: "hoursminutesseconds",
@@ -24851,7 +24857,7 @@ ${n}` : "Please fix this error.";
24851
24857
  }
24852
24858
  function calculateBinStep(e) {
24853
24859
  if (e.length === 0) return 1;
24854
- let t = e.filter((e2) => e2.bin_start !== null && e2.bin_end !== null);
24860
+ let t = e.filter(isValidBinValue);
24855
24861
  if (t.length === 0) return 1;
24856
24862
  let n = t[0].bin_start, i = t[0].bin_end, a, o;
24857
24863
  if (typeof n == "number" && typeof i == "number") {
@@ -24869,15 +24875,70 @@ ${n}` : "Please fix this error.";
24869
24875
  let c = s / t.length;
24870
24876
  return Math.max(c, 1);
24871
24877
  }
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;
24878
+ 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 = {
24879
+ y: {
24880
+ value: 0
24881
+ },
24882
+ y2: {
24883
+ value: CONCAT_CHART_HEIGHT
24884
+ }
24885
+ }, NULLS_TOOLTIP = [
24886
+ {
24887
+ field: "count",
24888
+ type: "quantitative",
24889
+ title: "nulls",
24890
+ format: ",d"
24891
+ }
24892
+ ];
24893
+ function buildNullBarSpec(e) {
24894
+ return {
24895
+ height: CONCAT_CHART_HEIGHT,
24896
+ width: e.width,
24897
+ layer: [
24898
+ {
24899
+ mark: {
24900
+ type: "bar",
24901
+ color: NULL_BAR_COLOR
24902
+ },
24903
+ encoding: {
24904
+ x: {
24905
+ field: "bin_start",
24906
+ type: "nominal",
24907
+ axis: null
24908
+ },
24909
+ y: {
24910
+ field: "count",
24911
+ type: "quantitative",
24912
+ axis: null
24913
+ }
24914
+ }
24915
+ },
24916
+ {
24917
+ mark: {
24918
+ type: "bar",
24919
+ opacity: 0
24920
+ },
24921
+ encoding: {
24922
+ x: {
24923
+ field: "bin_start",
24924
+ type: "nominal",
24925
+ axis: null
24926
+ },
24927
+ ...FULL_HEIGHT_TOOLTIP_Y,
24928
+ tooltip: NULLS_TOOLTIP
24929
+ }
24930
+ }
24931
+ ],
24932
+ ...e.filterNullOnly ? {
24933
+ transform: [
24934
+ {
24935
+ filter: "datum['bin_start'] === null && datum['bin_end'] === null"
24936
+ }
24937
+ ]
24938
+ } : {}
24939
+ };
24940
+ }
24941
+ let import_compiler_runtime$42;
24881
24942
  ColumnChartSpecModel = (_a = class {
24882
24943
  constructor(e, t, n, i, a, o) {
24883
24944
  __publicField(this, "columnStats", /* @__PURE__ */ new Map());
@@ -24913,31 +24974,40 @@ ${n}` : "Please fix this error.";
24913
24974
  };
24914
24975
  }
24915
24976
  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 = {
24977
+ 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;
24978
+ i ? c = {
24918
24979
  values: n,
24919
24980
  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,
24981
+ } : t !== void 0 && (c = {
24982
+ values: o > 0 ? [
24983
+ ...s,
24984
+ {
24985
+ bin_start: null,
24986
+ bin_end: null,
24987
+ count: o
24988
+ }
24989
+ ] : s,
24926
24990
  name: "bin_values"
24927
24991
  });
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) {
24992
+ let d = this.createBase(c), f = this.fieldTypes.get(e);
24993
+ if (f === void 0) return null;
24994
+ switch (e = e.replaceAll(".", "\\."), e = e.replaceAll("[", "\\[").replaceAll("]", "\\]"), e = e.replaceAll(":", "\\:"), f) {
24931
24995
  case "date":
24932
24996
  case "datetime":
24933
24997
  case "time": {
24934
- if (!t) {
24998
+ if (t === void 0) {
24935
24999
  let t2 = this.createBase(this.legacyDataSpec), n3 = getScale(this.legacySourceName);
24936
- return getLegacyTemporalSpec(e, c, t2, n3);
25000
+ return getLegacyTemporalSpec(e, f, t2, n3);
24937
25001
  }
24938
- let n2 = getPartialTimeTooltip(t || []);
24939
- if ((t == null ? void 0 : t.length) === 1) return {
24940
- ...s,
25002
+ if (s.length === 0) return o === 0 ? null : {
25003
+ ...d,
25004
+ ...buildNullBarSpec({
25005
+ width: CONCAT_CHART_WIDTH
25006
+ })
25007
+ };
25008
+ let n2 = getPartialTimeTooltip(s);
25009
+ if (s.length === 1 && o === 0) return {
25010
+ ...d,
24941
25011
  mark: {
24942
25012
  type: "bar",
24943
25013
  color: BAR_COLOR
@@ -25031,11 +25101,7 @@ ${n}` : "Please fix this error.";
25031
25101
  type: "ordinal",
25032
25102
  axis: null
25033
25103
  },
25034
- y: {
25035
- aggregate: "max",
25036
- type: "quantitative",
25037
- axis: null
25038
- },
25104
+ ...FULL_HEIGHT_TOOLTIP_Y,
25039
25105
  tooltip: [
25040
25106
  {
25041
25107
  field: "bin_start",
@@ -25061,20 +25127,43 @@ ${n}` : "Please fix this error.";
25061
25127
  ]
25062
25128
  };
25063
25129
  return {
25064
- ...s,
25130
+ ...d,
25065
25131
  ...i2
25066
25132
  };
25067
25133
  }
25068
25134
  case "integer":
25069
25135
  case "number": {
25070
- let n2 = c === "integer" ? ",d" : ".2f";
25071
- if (!t) {
25136
+ let n2 = f === "integer" ? ",d" : ".2f";
25137
+ if (t === void 0) {
25072
25138
  let t2 = this.createBase(this.legacyDataSpec);
25073
25139
  return getLegacyNumericSpec(e, n2, t2);
25074
25140
  }
25075
- let i2 = calculateBinStep(t || []), a2 = {
25141
+ if (s.length === 0) return o === 0 ? null : {
25142
+ ...d,
25143
+ ...buildNullBarSpec({
25144
+ width: CONCAT_CHART_WIDTH
25145
+ })
25146
+ };
25147
+ let i2 = buildNullBarSpec({
25148
+ width: CONCAT_NULL_BAR_WIDTH,
25149
+ filterNullOnly: true
25150
+ }), c2 = calculateBinStep(s), h = [
25151
+ a == null ? void 0 : a.min,
25152
+ a == null ? void 0 : a.p25,
25153
+ a == null ? void 0 : a.median,
25154
+ a == null ? void 0 : a.p75,
25155
+ a == null ? void 0 : a.p95,
25156
+ a == null ? void 0 : a.max
25157
+ ].filter((e2) => typeof e2 == "number" && Number.isFinite(e2)), _ = {
25076
25158
  height: CONCAT_CHART_HEIGHT,
25077
25159
  width: CONCAT_CHART_WIDTH,
25160
+ ...o > 0 ? {
25161
+ transform: [
25162
+ {
25163
+ filter: "datum['bin_start'] !== null && datum['bin_end'] !== null"
25164
+ }
25165
+ ]
25166
+ } : {},
25078
25167
  layer: [
25079
25168
  {
25080
25169
  mark: {
@@ -25087,7 +25176,7 @@ ${n}` : "Please fix this error.";
25087
25176
  type: "quantitative",
25088
25177
  bin: {
25089
25178
  binned: true,
25090
- step: i2
25179
+ step: c2
25091
25180
  }
25092
25181
  },
25093
25182
  x2: {
@@ -25131,31 +25220,20 @@ ${n}` : "Please fix this error.";
25131
25220
  type: "quantitative",
25132
25221
  bin: {
25133
25222
  binned: true,
25134
- step: i2
25223
+ step: c2
25135
25224
  },
25136
25225
  axis: {
25137
25226
  title: null,
25138
25227
  labelFontSize: 8.5,
25139
25228
  labelOpacity: 0.5,
25140
25229
  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)
25230
+ values: h
25149
25231
  }
25150
25232
  },
25151
25233
  x2: {
25152
25234
  field: "bin_end_extended"
25153
25235
  },
25154
- y: {
25155
- aggregate: "max",
25156
- type: "quantitative",
25157
- axis: null
25158
- },
25236
+ ...FULL_HEIGHT_TOOLTIP_Y,
25159
25237
  tooltip: [
25160
25238
  {
25161
25239
  field: "bin_range",
@@ -25176,71 +25254,17 @@ ${n}` : "Please fix this error.";
25176
25254
  as: "bin_range"
25177
25255
  },
25178
25256
  {
25179
- calculate: `datum.bin_end + ${i2 * BIN_END_EXTENSION_FACTOR}`,
25257
+ calculate: `datum.bin_end + ${c2 * BIN_END_EXTENSION_FACTOR}`,
25180
25258
  as: "bin_end_extended"
25181
25259
  }
25182
25260
  ]
25183
25261
  }
25184
25262
  ]
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,
25263
+ }, v = _, y = d;
25264
+ return o > 0 && (y = {
25265
+ ...d,
25242
25266
  config: {
25243
- ...s.config,
25267
+ ...d.config,
25244
25268
  concat: {
25245
25269
  spacing: 0
25246
25270
  }
@@ -25250,48 +25274,48 @@ ${n}` : "Please fix this error.";
25250
25274
  y: "shared"
25251
25275
  }
25252
25276
  }
25253
- }, f = {
25277
+ }, v = {
25254
25278
  hconcat: [
25255
- d,
25256
- a2
25279
+ i2,
25280
+ _
25257
25281
  ]
25258
25282
  }), {
25259
- ...h,
25260
- ...f
25283
+ ...y,
25284
+ ...v
25261
25285
  };
25262
25286
  }
25263
25287
  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 = [
25288
+ if (!(a == null ? void 0 : a.true) || !(a == null ? void 0 : a.false)) return getLegacyBooleanSpec(e, d, MAX_BAR_HEIGHT);
25289
+ let t2 = (a == null ? void 0 : a.nulls) ? 11 : MAX_BAR_HEIGHT, n2 = [
25266
25290
  {
25267
25291
  value: "true",
25268
- count: o.true
25292
+ count: a.true
25269
25293
  },
25270
25294
  {
25271
25295
  value: "false",
25272
- count: o.false
25296
+ count: a.false
25273
25297
  }
25274
25298
  ];
25275
- (o == null ? void 0 : o.nulls) && n2.push({
25299
+ (a == null ? void 0 : a.nulls) && n2.push({
25276
25300
  value: "null",
25277
- count: o.nulls
25301
+ count: a.nulls
25278
25302
  });
25279
25303
  let i2 = {
25280
25304
  field: "count",
25281
25305
  type: "quantitative",
25282
25306
  format: ",d"
25283
- }, a2 = [], c2 = Number(o.total) || Number(o.true) + Number(o.false) + Number(o.nulls);
25284
- return Number.isNaN(c2) || (i2 = {
25307
+ }, o2 = [], s2 = Number(a.total) || Number(a.true) + Number(a.false) + Number(a.nulls);
25308
+ return Number.isNaN(s2) || (i2 = {
25285
25309
  field: "count_with_percent",
25286
25310
  type: "nominal",
25287
25311
  title: "Count"
25288
- }, a2 = [
25312
+ }, o2 = [
25289
25313
  {
25290
- calculate: `format(datum.count, ',d') + ' (' + format(datum.count / ${c2} * 100, '.1f') + '%)'`,
25314
+ calculate: `format(datum.count, ',d') + ' (' + format(datum.count / ${s2} * 100, '.1f') + '%)'`,
25291
25315
  as: "count_with_percent"
25292
25316
  }
25293
25317
  ]), {
25294
- ...s,
25318
+ ...d,
25295
25319
  data: {
25296
25320
  values: n2,
25297
25321
  name: "boolean_values"
@@ -25309,7 +25333,7 @@ ${n}` : "Please fix this error.";
25309
25333
  "false",
25310
25334
  "null"
25311
25335
  ],
25312
- scale: (o == null ? void 0 : o.nulls) ? {
25336
+ scale: (a == null ? void 0 : a.nulls) ? {
25313
25337
  paddingInner: 1
25314
25338
  } : void 0,
25315
25339
  axis: {
@@ -25353,7 +25377,7 @@ ${n}` : "Please fix this error.";
25353
25377
  i2
25354
25378
  ]
25355
25379
  },
25356
- transform: a2,
25380
+ transform: o2,
25357
25381
  layer: [
25358
25382
  {
25359
25383
  mark: {
@@ -25383,19 +25407,19 @@ ${n}` : "Please fix this error.";
25383
25407
  }
25384
25408
  case "string": {
25385
25409
  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;
25410
+ let t2 = Number(a == null ? void 0 : a.total) || n.reduce((e2, t3) => e2 + t3.count, 0), o2 = "value", s2 = [], c2 = 0;
25387
25411
  for (let e2 of n) {
25388
- let n2 = d + e2.count, i2 = (d + n2) / 2, a3 = (n2 - d) / t2;
25389
- c2.push({
25412
+ let n2 = c2 + e2.count, i2 = (c2 + n2) / 2, a2 = (n2 - c2) / t2;
25413
+ s2.push({
25390
25414
  count: e2.count,
25391
25415
  value: e2.value,
25392
- xStart: d,
25416
+ xStart: c2,
25393
25417
  xEnd: n2,
25394
25418
  xMid: i2,
25395
- proportion: a3
25396
- }), d = n2;
25419
+ proportion: a2
25420
+ }), c2 = n2;
25397
25421
  }
25398
- let f = [
25422
+ let f2 = [
25399
25423
  {
25400
25424
  calculate: t2 ? `datum.count / ${t2}` : "0",
25401
25425
  as: "percent"
@@ -25426,7 +25450,7 @@ ${n}` : "Please fix this error.";
25426
25450
  },
25427
25451
  color: {
25428
25452
  condition: {
25429
- test: `datum.${a2} == "None" || datum.${a2} == "null"`,
25453
+ test: `datum.${o2} == "None" || datum.${o2} == "null"`,
25430
25454
  value: NULL_BAR_COLOR
25431
25455
  },
25432
25456
  value: BAR_COLOR
@@ -25442,7 +25466,7 @@ ${n}` : "Please fix this error.";
25442
25466
  },
25443
25467
  tooltip: [
25444
25468
  {
25445
- field: a2,
25469
+ field: o2,
25446
25470
  type: "nominal",
25447
25471
  title: e
25448
25472
  },
@@ -25479,28 +25503,28 @@ ${n}` : "Please fix this error.";
25479
25503
  },
25480
25504
  transform: [
25481
25505
  {
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) : ''`,
25506
+ 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
25507
  as: "clipped_text"
25484
25508
  }
25485
25509
  ]
25486
25510
  };
25487
25511
  return {
25488
- ...s,
25512
+ ...d,
25489
25513
  data: {
25490
- values: c2,
25514
+ values: s2,
25491
25515
  name: "value_counts"
25492
25516
  },
25493
25517
  layer: [
25494
25518
  h,
25495
25519
  _
25496
25520
  ],
25497
- transform: f
25521
+ transform: f2
25498
25522
  };
25499
25523
  }
25500
25524
  case "unknown":
25501
25525
  return null;
25502
25526
  default:
25503
- return logNever(c), null;
25527
+ return logNever(f), null;
25504
25528
  }
25505
25529
  }
25506
25530
  }, __publicField(_a, "EMPTY", new _a([], /* @__PURE__ */ new Map(), {}, {}, {}, {
@@ -26636,7 +26660,7 @@ ${n}` : "Please fix this error.";
26636
26660
  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
26661
  let E = (0, import_react.useContext)(PanelGroupContext);
26638
26662
  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), cJ = (0, import_react.useRef)({
26663
+ let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), pJ = (0, import_react.useRef)({
26640
26664
  callbacks: {
26641
26665
  onCollapse: f,
26642
26666
  onExpand: h,
@@ -26656,12 +26680,12 @@ ${n}` : "Please fix this error.";
26656
26680
  (0, import_react.useRef)({
26657
26681
  didLogMissingDefaultSizeWarning: false
26658
26682
  }), useIsomorphicLayoutEffect$1(() => {
26659
- let { callbacks: e2, constraints: t2 } = cJ.current, o2 = {
26683
+ let { callbacks: e2, constraints: t2 } = pJ.current, o2 = {
26660
26684
  ...t2
26661
26685
  };
26662
- cJ.current.id = $, cJ.current.idIsFromProps = s !== void 0, cJ.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(cJ.current, o2);
26686
+ pJ.current.id = $, pJ.current.idIsFromProps = s !== void 0, pJ.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(pJ.current, o2);
26663
26687
  }), useIsomorphicLayoutEffect$1(() => {
26664
- let e2 = cJ.current;
26688
+ let e2 = pJ.current;
26665
26689
  return q(e2), () => {
26666
26690
  Q(e2);
26667
26691
  };
@@ -26672,25 +26696,25 @@ ${n}` : "Please fix this error.";
26672
26696
  Q
26673
26697
  ]), (0, import_react.useImperativeHandle)(o, () => ({
26674
26698
  collapse: () => {
26675
- O(cJ.current);
26699
+ O(pJ.current);
26676
26700
  },
26677
26701
  expand: (e2) => {
26678
- A(cJ.current, e2);
26702
+ A(pJ.current, e2);
26679
26703
  },
26680
26704
  getId() {
26681
26705
  return $;
26682
26706
  },
26683
26707
  getSize() {
26684
- return M(cJ.current);
26708
+ return M(pJ.current);
26685
26709
  },
26686
26710
  isCollapsed() {
26687
- return U(cJ.current);
26711
+ return U(pJ.current);
26688
26712
  },
26689
26713
  isExpanded() {
26690
- return !U(cJ.current);
26714
+ return !U(pJ.current);
26691
26715
  },
26692
26716
  resize: (e2) => {
26693
- J(cJ.current, e2);
26717
+ J(pJ.current, e2);
26694
26718
  }
26695
26719
  }), [
26696
26720
  O,
@@ -26700,21 +26724,21 @@ ${n}` : "Please fix this error.";
26700
26724
  $,
26701
26725
  J
26702
26726
  ]);
26703
- let lJ = I(cJ.current, a);
26727
+ let mJ = I(pJ.current, a);
26704
26728
  return (0, import_react.createElement)(S, {
26705
26729
  ...w,
26706
26730
  children: e,
26707
26731
  className: t,
26708
26732
  id: $,
26709
26733
  style: {
26710
- ...lJ,
26734
+ ...mJ,
26711
26735
  ...y
26712
26736
  },
26713
26737
  [DATA_ATTRIBUTES.groupId]: z,
26714
26738
  [DATA_ATTRIBUTES.panel]: "",
26715
26739
  [DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
26716
26740
  [DATA_ATTRIBUTES.panelId]: $,
26717
- [DATA_ATTRIBUTES.panelSize]: parseFloat("" + lJ.flexGrow).toFixed(1)
26741
+ [DATA_ATTRIBUTES.panelSize]: parseFloat("" + mJ.flexGrow).toFixed(1)
26718
26742
  });
26719
26743
  }
26720
26744
  Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
@@ -27499,13 +27523,13 @@ ${n}` : "Please fix this error.";
27499
27523
  }, [
27500
27524
  S,
27501
27525
  E
27502
- ]), cJ = (0, import_react.useCallback)((e2) => {
27526
+ ]), pJ = (0, import_react.useCallback)((e2) => {
27503
27527
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27504
27528
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
27505
- }, []), lJ = (0, import_react.useCallback)((e2) => {
27529
+ }, []), mJ = (0, import_react.useCallback)((e2) => {
27506
27530
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27507
27531
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
27508
- }, []), uJ = (0, import_react.useCallback)((e2) => {
27532
+ }, []), hJ = (0, import_react.useCallback)((e2) => {
27509
27533
  let { panelDataArray: t2 } = K.current;
27510
27534
  t2.push(e2), t2.sort((e3, t3) => {
27511
27535
  let n2 = e3.order, i2 = t3.order;
@@ -27537,7 +27561,7 @@ ${n}` : "Please fix this error.";
27537
27561
  e2.layout = [];
27538
27562
  };
27539
27563
  }, []);
27540
- let dJ = (0, import_react.useCallback)((e2) => {
27564
+ let gJ = (0, import_react.useCallback)((e2) => {
27541
27565
  let t2 = false, n2 = y.current;
27542
27566
  return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
27543
27567
  n3.preventDefault();
@@ -27555,7 +27579,7 @@ ${n}` : "Please fix this error.";
27555
27579
  }), I2 = !compareLayouts(f2, A2);
27556
27580
  (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
27581
  };
27558
- }, []), fJ = (0, import_react.useCallback)((e2, t2) => {
27582
+ }, []), _J = (0, import_react.useCallback)((e2, t2) => {
27559
27583
  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
27584
  assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
27561
27585
  let d2 = adjustLayoutByDelta({
@@ -27567,12 +27591,12 @@ ${n}` : "Please fix this error.";
27567
27591
  trigger: "imperative-api"
27568
27592
  });
27569
27593
  compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
27570
- }, []), pJ = (0, import_react.useCallback)((e2, t2) => {
27594
+ }, []), vJ = (0, import_react.useCallback)((e2, t2) => {
27571
27595
  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) || fJ(e2, s2) : h2 < f2 ? fJ(e2, f2) : h2 > d2 && fJ(e2, d2));
27596
+ h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || _J(e2, s2) : h2 < f2 ? _J(e2, f2) : h2 > d2 && _J(e2, d2));
27573
27597
  }, [
27574
- fJ
27575
- ]), mJ = (0, import_react.useCallback)((e2, t2) => {
27598
+ _J
27599
+ ]), yJ = (0, import_react.useCallback)((e2, t2) => {
27576
27600
  let { direction: n2 } = U.current, { layout: i2 } = K.current;
27577
27601
  if (!y.current) return;
27578
27602
  let a2 = getResizeHandleElement(e2, y.current);
@@ -27584,14 +27608,14 @@ ${n}` : "Please fix this error.";
27584
27608
  initialCursorPosition: o2,
27585
27609
  initialLayout: i2
27586
27610
  });
27587
- }, []), hJ = (0, import_react.useCallback)(() => {
27611
+ }, []), bJ = (0, import_react.useCallback)(() => {
27588
27612
  w(null);
27589
- }, []), gJ = (0, import_react.useCallback)((e2) => {
27613
+ }, []), xJ = (0, import_react.useCallback)((e2) => {
27590
27614
  let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
27591
27615
  n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
27592
27616
  }, [
27593
27617
  A
27594
- ]), _J = (0, import_react.useMemo)(() => ({
27618
+ ]), SJ = (0, import_react.useMemo)(() => ({
27595
27619
  collapsePanel: q,
27596
27620
  direction: i,
27597
27621
  dragState: S,
@@ -27599,15 +27623,15 @@ ${n}` : "Please fix this error.";
27599
27623
  getPanelSize: Q,
27600
27624
  getPanelStyle: $,
27601
27625
  groupId: v,
27602
- isPanelCollapsed: cJ,
27603
- isPanelExpanded: lJ,
27604
- reevaluatePanelConstraints: pJ,
27605
- registerPanel: uJ,
27606
- registerResizeHandle: dJ,
27607
- resizePanel: fJ,
27608
- startDragging: mJ,
27609
- stopDragging: hJ,
27610
- unregisterPanel: gJ,
27626
+ isPanelCollapsed: pJ,
27627
+ isPanelExpanded: mJ,
27628
+ reevaluatePanelConstraints: vJ,
27629
+ registerPanel: hJ,
27630
+ registerResizeHandle: gJ,
27631
+ resizePanel: _J,
27632
+ startDragging: yJ,
27633
+ stopDragging: bJ,
27634
+ unregisterPanel: xJ,
27611
27635
  panelGroupElement: y.current
27612
27636
  }), [
27613
27637
  q,
@@ -27617,16 +27641,16 @@ ${n}` : "Please fix this error.";
27617
27641
  Q,
27618
27642
  $,
27619
27643
  v,
27620
- cJ,
27621
- lJ,
27622
27644
  pJ,
27623
- uJ,
27624
- dJ,
27625
- fJ,
27626
27645
  mJ,
27646
+ vJ,
27627
27647
  hJ,
27628
- gJ
27629
- ]), vJ = {
27648
+ gJ,
27649
+ _J,
27650
+ yJ,
27651
+ bJ,
27652
+ xJ
27653
+ ]), CJ = {
27630
27654
  display: "flex",
27631
27655
  flexDirection: i === "horizontal" ? "row" : "column",
27632
27656
  height: "100%",
@@ -27634,7 +27658,7 @@ ${n}` : "Please fix this error.";
27634
27658
  width: "100%"
27635
27659
  };
27636
27660
  return (0, import_react.createElement)(PanelGroupContext.Provider, {
27637
- value: _J
27661
+ value: SJ
27638
27662
  }, (0, import_react.createElement)(h, {
27639
27663
  ..._,
27640
27664
  children: t,
@@ -27642,7 +27666,7 @@ ${n}` : "Please fix this error.";
27642
27666
  id: o,
27643
27667
  ref: y,
27644
27668
  style: {
27645
- ...vJ,
27669
+ ...CJ,
27646
27670
  ...f
27647
27671
  },
27648
27672
  [DATA_ATTRIBUTES.group]: "",
@@ -27719,31 +27743,31 @@ ${n}` : "Please fix this error.";
27719
27743
  });
27720
27744
  let O = (0, import_react.useContext)(PanelGroupContext);
27721
27745
  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"), [$, cJ] = (0, import_react.useState)(false), [lJ, uJ] = (0, import_react.useState)(null), dJ = (0, import_react.useRef)({
27746
+ let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, pJ] = (0, import_react.useState)(false), [mJ, hJ] = (0, import_react.useState)(null), gJ = (0, import_react.useRef)({
27723
27747
  state: J
27724
27748
  });
27725
27749
  useIsomorphicLayoutEffect$1(() => {
27726
- dJ.current.state = J;
27750
+ gJ.current.state = J;
27727
27751
  }), (0, import_react.useEffect)(() => {
27728
- if (n) uJ(null);
27752
+ if (n) hJ(null);
27729
27753
  else {
27730
27754
  let e2 = I(q);
27731
- uJ(() => e2);
27755
+ hJ(() => e2);
27732
27756
  }
27733
27757
  }, [
27734
27758
  n,
27735
27759
  q,
27736
27760
  I
27737
27761
  ]);
27738
- let fJ = (i == null ? void 0 : i.coarse) ?? 15, pJ = (i == null ? void 0 : i.fine) ?? 5;
27762
+ let _J = (i == null ? void 0 : i.coarse) ?? 15, vJ = (i == null ? void 0 : i.fine) ?? 5;
27739
27763
  (0, import_react.useEffect)(() => {
27740
- if (n || lJ == null) return;
27764
+ if (n || mJ == null) return;
27741
27765
  let e2 = w.current;
27742
27766
  assert(e2, "Element ref not attached");
27743
27767
  let t2 = false;
27744
27768
  return registerResizeHandle(q, e2, A, {
27745
- coarse: fJ,
27746
- fine: pJ
27769
+ coarse: _J,
27770
+ fine: vJ
27747
27771
  }, (e3, n2, i2) => {
27748
27772
  if (!n2) {
27749
27773
  Q("inactive");
@@ -27757,8 +27781,8 @@ ${n}` : "Please fix this error.";
27757
27781
  break;
27758
27782
  }
27759
27783
  case "move": {
27760
- let { state: e4 } = dJ.current;
27761
- t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), lJ(i2);
27784
+ let { state: e4 } = gJ.current;
27785
+ t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), mJ(i2);
27762
27786
  break;
27763
27787
  }
27764
27788
  case "up": {
@@ -27770,22 +27794,22 @@ ${n}` : "Please fix this error.";
27770
27794
  }
27771
27795
  });
27772
27796
  }, [
27773
- fJ,
27797
+ _J,
27774
27798
  A,
27775
27799
  n,
27776
- pJ,
27800
+ vJ,
27777
27801
  I,
27778
27802
  q,
27779
- lJ,
27803
+ mJ,
27780
27804
  z,
27781
27805
  U
27782
27806
  ]), useWindowSplitterResizeHandlerBehavior({
27783
27807
  disabled: n,
27784
27808
  handleId: q,
27785
- resizeHandler: lJ,
27809
+ resizeHandler: mJ,
27786
27810
  panelGroupElement: K
27787
27811
  });
27788
- let mJ = {
27812
+ let yJ = {
27789
27813
  touchAction: "none",
27790
27814
  userSelect: "none"
27791
27815
  };
@@ -27795,15 +27819,15 @@ ${n}` : "Please fix this error.";
27795
27819
  className: t,
27796
27820
  id: a,
27797
27821
  onBlur: () => {
27798
- cJ(false), o == null ? void 0 : o();
27822
+ pJ(false), o == null ? void 0 : o();
27799
27823
  },
27800
27824
  onFocus: () => {
27801
- cJ(true), d == null ? void 0 : d();
27825
+ pJ(true), d == null ? void 0 : d();
27802
27826
  },
27803
27827
  ref: w,
27804
27828
  role: "separator",
27805
27829
  style: {
27806
- ...mJ,
27830
+ ...yJ,
27807
27831
  ..._
27808
27832
  },
27809
27833
  tabIndex: v,
@@ -28102,7 +28126,7 @@ ${n}` : "Please fix this error.";
28102
28126
  }, [
28103
28127
  h
28104
28128
  ]), k(() => {
28105
- U(6, lJ);
28129
+ U(6, mJ);
28106
28130
  }, []);
28107
28131
  let K = import_react.useMemo(() => ({
28108
28132
  subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
@@ -28111,7 +28135,7 @@ ${n}` : "Please fix this error.";
28111
28135
  var _a2;
28112
28136
  var a2, o2, s2;
28113
28137
  if (!Object.is(n.current[e2], t2)) {
28114
- if (n.current[e2] = t2, e2 === "search") cJ(), Q(), U(1, $);
28138
+ if (n.current[e2] = t2, e2 === "search") pJ(), Q(), U(1, $);
28115
28139
  else if (e2 === "value") {
28116
28140
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
28117
28141
  let e3 = document.getElementById(I);
@@ -28119,8 +28143,8 @@ ${n}` : "Please fix this error.";
28119
28143
  }
28120
28144
  if (U(7, () => {
28121
28145
  var _a3;
28122
- n.current.selectedItemId = (_a3 = uJ()) == null ? void 0 : _a3.id, K.emit();
28123
- }), i2 || U(5, lJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
28146
+ n.current.selectedItemId = (_a3 = hJ()) == null ? void 0 : _a3.id, K.emit();
28147
+ }), i2 || U(5, mJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
28124
28148
  let e3 = t2 ?? "";
28125
28149
  (s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
28126
28150
  return;
@@ -28145,12 +28169,12 @@ ${n}` : "Please fix this error.";
28145
28169
  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
28170
  e2
28147
28171
  ]))), U(3, () => {
28148
- cJ(), Q(), n.current.value || $(), K.emit();
28172
+ pJ(), Q(), n.current.value || $(), K.emit();
28149
28173
  }), () => {
28150
28174
  o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
28151
- let t3 = uJ();
28175
+ let t3 = hJ();
28152
28176
  U(4, () => {
28153
- cJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
28177
+ pJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
28154
28178
  });
28155
28179
  }),
28156
28180
  group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
@@ -28183,7 +28207,7 @@ ${n}` : "Please fix this error.";
28183
28207
  ]);
28184
28208
  });
28185
28209
  let i2 = z.current;
28186
- dJ().sort((t3, n2) => {
28210
+ gJ().sort((t3, n2) => {
28187
28211
  let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
28188
28212
  return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
28189
28213
  }).forEach((e3) => {
@@ -28197,10 +28221,10 @@ ${n}` : "Please fix this error.";
28197
28221
  }
28198
28222
  function $() {
28199
28223
  var _a2;
28200
- let e2 = (_a2 = dJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
28224
+ let e2 = (_a2 = gJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
28201
28225
  K.setState("value", e2 || void 0);
28202
28226
  }
28203
- function cJ() {
28227
+ function pJ() {
28204
28228
  var _a2, _b;
28205
28229
  if (!n.current.search || c.current.shouldFilter === false) {
28206
28230
  n.current.filtered.count = i.current.size;
@@ -28218,43 +28242,43 @@ ${n}` : "Please fix this error.";
28218
28242
  }
28219
28243
  n.current.filtered.count = e2;
28220
28244
  }
28221
- function lJ() {
28245
+ function mJ() {
28222
28246
  var _a2, _b;
28223
28247
  var e2;
28224
- let t2 = uJ();
28248
+ let t2 = hJ();
28225
28249
  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
28250
  block: "nearest"
28227
28251
  })), t2.scrollIntoView({
28228
28252
  block: "nearest"
28229
28253
  }));
28230
28254
  }
28231
- function uJ() {
28255
+ function hJ() {
28232
28256
  var _a2;
28233
28257
  return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
28234
28258
  }
28235
- function dJ() {
28259
+ function gJ() {
28236
28260
  var _a2;
28237
28261
  return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
28238
28262
  }
28239
- function fJ(e2) {
28240
- let t2 = dJ()[e2];
28263
+ function _J(e2) {
28264
+ let t2 = gJ()[e2];
28241
28265
  t2 && K.setState("value", t2.getAttribute(T));
28242
28266
  }
28243
- function pJ(e2) {
28267
+ function vJ(e2) {
28244
28268
  var t2;
28245
- let n2 = uJ(), i2 = dJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28269
+ let n2 = hJ(), i2 = gJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28246
28270
  (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
28271
  }
28248
- function mJ(e2) {
28272
+ function yJ(e2) {
28249
28273
  var _a2;
28250
- let t2 = (_a2 = uJ()) == null ? void 0 : _a2.closest(N$1), n2;
28274
+ let t2 = (_a2 = hJ()) == null ? void 0 : _a2.closest(N$1), n2;
28251
28275
  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)) : pJ(e2);
28276
+ n2 ? K.setState("value", n2.getAttribute(T)) : vJ(e2);
28253
28277
  }
28254
- let hJ = () => fJ(dJ().length - 1), gJ = (e2) => {
28255
- e2.preventDefault(), e2.metaKey ? hJ() : e2.altKey ? mJ(1) : pJ(1);
28256
- }, _J = (e2) => {
28257
- e2.preventDefault(), e2.metaKey ? fJ(0) : e2.altKey ? mJ(-1) : pJ(-1);
28278
+ let bJ = () => _J(gJ().length - 1), xJ = (e2) => {
28279
+ e2.preventDefault(), e2.metaKey ? bJ() : e2.altKey ? yJ(1) : vJ(1);
28280
+ }, SJ = (e2) => {
28281
+ e2.preventDefault(), e2.metaKey ? _J(0) : e2.altKey ? yJ(-1) : vJ(-1);
28258
28282
  };
28259
28283
  return import_react.createElement(Primitive.div, {
28260
28284
  ref: t,
@@ -28268,27 +28292,27 @@ ${n}` : "Please fix this error.";
28268
28292
  if (!(e2.defaultPrevented || n2)) switch (e2.key) {
28269
28293
  case "n":
28270
28294
  case "j":
28271
- E && e2.ctrlKey && gJ(e2);
28295
+ E && e2.ctrlKey && xJ(e2);
28272
28296
  break;
28273
28297
  case "ArrowDown":
28274
- gJ(e2);
28298
+ xJ(e2);
28275
28299
  break;
28276
28300
  case "p":
28277
28301
  case "k":
28278
- E && e2.ctrlKey && _J(e2);
28302
+ E && e2.ctrlKey && SJ(e2);
28279
28303
  break;
28280
28304
  case "ArrowUp":
28281
- _J(e2);
28305
+ SJ(e2);
28282
28306
  break;
28283
28307
  case "Home":
28284
- e2.preventDefault(), fJ(0);
28308
+ e2.preventDefault(), _J(0);
28285
28309
  break;
28286
28310
  case "End":
28287
- e2.preventDefault(), hJ();
28311
+ e2.preventDefault(), bJ();
28288
28312
  break;
28289
28313
  case "Enter": {
28290
28314
  e2.preventDefault();
28291
- let t3 = uJ();
28315
+ let t3 = hJ();
28292
28316
  if (t3) {
28293
28317
  let e3 = new Event(Z);
28294
28318
  t3.dispatchEvent(e3);
@@ -28697,153 +28721,153 @@ ${n}` : "Please fix this error.";
28697
28721
  Combobox = (e) => {
28698
28722
  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
28723
  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, cJ = z === void 0 ? true : z, lJ = U === void 0 ? "Search..." : U, uJ = K === void 0 ? "Nothing found." : K, dJ = q === void 0 ? false : q, fJ = J === void 0 ? false : J, pJ = s ?? false, mJ;
28701
- t[25] !== v || t[26] !== w || t[27] !== pJ ? (mJ = {
28724
+ let $ = I === void 0 ? false : I, pJ = z === void 0 ? true : z, mJ = 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;
28725
+ t[25] !== v || t[26] !== w || t[27] !== vJ ? (yJ = {
28702
28726
  prop: w,
28703
- defaultProp: pJ,
28727
+ defaultProp: vJ,
28704
28728
  onChange: v
28705
- }, t[25] = v, t[26] = w, t[27] = pJ, t[28] = mJ) : mJ = t[28];
28706
- let [hJ, gJ] = useControllableState(mJ), _J = hJ === void 0 ? false : hJ, vJ;
28707
- t[29] === S ? vJ = t[30] : (vJ = (e2) => {
28729
+ }, t[25] = v, t[26] = w, t[27] = vJ, t[28] = yJ) : yJ = t[28];
28730
+ let [bJ, xJ] = useControllableState(yJ), SJ = bJ === void 0 ? false : bJ, CJ;
28731
+ t[29] === S ? CJ = t[30] : (CJ = (e2) => {
28708
28732
  S == null ? void 0 : S(e2);
28709
- }, t[29] = S, t[30] = vJ);
28710
- let yJ;
28711
- t[31] !== c || t[32] !== vJ || t[33] !== Q ? (yJ = {
28733
+ }, t[29] = S, t[30] = CJ);
28734
+ let wJ;
28735
+ t[31] !== c || t[32] !== CJ || t[33] !== Q ? (wJ = {
28712
28736
  prop: Q,
28713
28737
  defaultProp: c,
28714
- onChange: vJ
28715
- }, t[31] = c, t[32] = vJ, t[33] = Q, t[34] = yJ) : yJ = t[34];
28716
- let [bJ, xJ] = useControllableState(yJ), SJ;
28717
- t[35] === bJ ? SJ = t[36] : (SJ = (e2) => Array.isArray(bJ) ? bJ.includes(e2) : bJ === e2, t[35] = bJ, t[36] = SJ);
28718
- let CJ = SJ, wJ;
28719
- t[37] !== _ || t[38] !== $ || t[39] !== gJ || t[40] !== xJ || t[41] !== bJ ? (wJ = (e2) => {
28738
+ onChange: CJ
28739
+ }, t[31] = c, t[32] = CJ, t[33] = Q, t[34] = wJ) : wJ = t[34];
28740
+ let [TJ, EJ] = useControllableState(wJ), DJ;
28741
+ t[35] === TJ ? DJ = t[36] : (DJ = (e2) => Array.isArray(TJ) ? TJ.includes(e2) : TJ === e2, t[35] = TJ, t[36] = DJ);
28742
+ let OJ = DJ, kJ;
28743
+ t[37] !== _ || t[38] !== $ || t[39] !== xJ || t[40] !== EJ || t[41] !== TJ ? (kJ = (e2) => {
28720
28744
  let t2 = e2;
28721
- if ($) if (Array.isArray(bJ)) if (bJ.includes(t2)) {
28722
- let n2 = bJ.filter((t3) => t3 !== e2);
28745
+ if ($) if (Array.isArray(TJ)) if (TJ.includes(t2)) {
28746
+ let n2 = TJ.filter((t3) => t3 !== e2);
28723
28747
  t2 = n2.length > 0 ? n2 : [];
28724
28748
  } else t2 = [
28725
- ...bJ,
28749
+ ...TJ,
28726
28750
  t2
28727
28751
  ];
28728
28752
  else t2 = [
28729
28753
  t2
28730
28754
  ];
28731
- else bJ === e2 && (t2 = null);
28732
- xJ(t2), (_ ?? $) || gJ(false);
28733
- }, t[37] = _, t[38] = $, t[39] = gJ, t[40] = xJ, t[41] = bJ, t[42] = wJ) : wJ = t[42];
28734
- let TJ = wJ, DJ;
28735
- t[43] !== dJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== bJ ? (DJ = () => $ && dJ && E ? E : bJ == null ? E ?? "--" : Array.isArray(bJ) ? bJ.length === 0 ? E ?? "--" : bJ.length === 1 && d !== void 0 ? d(bJ[0]) : `${bJ.length} selected` : d === void 0 ? E ?? "--" : d(bJ), t[43] = dJ, t[44] = d, t[45] = $, t[46] = E, t[47] = bJ, t[48] = DJ) : DJ = t[48];
28736
- let OJ = DJ, kJ;
28737
- t[49] !== TJ || t[50] !== CJ ? (kJ = {
28738
- isSelected: CJ,
28739
- onSelect: TJ
28740
- }, t[49] = TJ, t[50] = CJ, t[51] = kJ) : kJ = t[51];
28755
+ else TJ === e2 && (t2 = null);
28756
+ EJ(t2), (_ ?? $) || xJ(false);
28757
+ }, t[37] = _, t[38] = $, t[39] = xJ, t[40] = EJ, t[41] = TJ, t[42] = kJ) : kJ = t[42];
28741
28758
  let AJ = kJ, MJ;
28742
- t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (MJ = cn("relative"), t[52] = MJ) : MJ = t[52];
28743
- let NJ;
28744
- t[53] !== fJ || t[54] !== gJ ? (NJ = (e2) => {
28745
- fJ && e2 || gJ(e2);
28746
- }, t[53] = fJ, t[54] = gJ, t[55] = NJ) : NJ = t[55];
28747
- let FJ = fJ && "cursor-not-allowed opacity-50", IJ;
28748
- t[56] !== a || t[57] !== FJ ? (IJ = 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", FJ, a), t[56] = a, t[57] = FJ, t[58] = IJ) : IJ = t[58];
28749
- let LJ;
28750
- t[59] !== O || t[60] !== OJ || t[61] !== bJ ? (LJ = O ? O(bJ ?? null) : OJ(), t[59] = O, t[60] = OJ, t[61] = bJ, t[62] = LJ) : LJ = t[62];
28759
+ t[43] !== gJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== TJ ? (MJ = () => $ && 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] = MJ) : MJ = t[48];
28760
+ let NJ = MJ, PJ;
28761
+ t[49] !== AJ || t[50] !== OJ ? (PJ = {
28762
+ isSelected: OJ,
28763
+ onSelect: AJ
28764
+ }, t[49] = AJ, t[50] = OJ, t[51] = PJ) : PJ = t[51];
28765
+ let FJ = PJ, LJ;
28766
+ t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (LJ = cn("relative"), t[52] = LJ) : LJ = t[52];
28751
28767
  let RJ;
28752
- t[63] === LJ ? RJ = t[64] : (RJ = (0, import_jsx_runtime.jsx)("span", {
28768
+ t[53] !== _J || t[54] !== xJ ? (RJ = (e2) => {
28769
+ _J && e2 || xJ(e2);
28770
+ }, t[53] = _J, t[54] = xJ, t[55] = RJ) : RJ = t[55];
28771
+ let BJ = _J && "cursor-not-allowed opacity-50", VJ;
28772
+ t[56] !== a || t[57] !== BJ ? (VJ = 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", BJ, a), t[56] = a, t[57] = BJ, t[58] = VJ) : VJ = t[58];
28773
+ let HJ;
28774
+ t[59] !== O || t[60] !== NJ || t[61] !== TJ ? (HJ = O ? O(TJ ?? null) : NJ(), t[59] = O, t[60] = NJ, t[61] = TJ, t[62] = HJ) : HJ = t[62];
28775
+ let UJ;
28776
+ t[63] === HJ ? UJ = t[64] : (UJ = (0, import_jsx_runtime.jsx)("span", {
28753
28777
  className: "truncate flex-1 min-w-0",
28754
- children: LJ
28755
- }), t[63] = LJ, t[64] = RJ);
28756
- let zJ;
28757
- t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (zJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28778
+ children: HJ
28779
+ }), t[63] = HJ, t[64] = UJ);
28780
+ let WJ;
28781
+ t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (WJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28758
28782
  className: "ml-3 w-4 h-4 opacity-50 shrink-0"
28759
- }), t[65] = zJ) : zJ = t[65];
28760
- let BJ;
28761
- t[66] !== fJ || t[67] !== h || t[68] !== _J || t[69] !== IJ || t[70] !== RJ ? (BJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28783
+ }), t[65] = WJ) : WJ = t[65];
28784
+ let GJ;
28785
+ t[66] !== _J || t[67] !== h || t[68] !== SJ || t[69] !== VJ || t[70] !== UJ ? (GJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28762
28786
  asChild: true,
28763
28787
  children: (0, import_jsx_runtime.jsxs)("button", {
28764
28788
  id: h,
28765
28789
  type: "button",
28766
- className: IJ,
28767
- "aria-expanded": _J,
28768
- "aria-disabled": fJ,
28790
+ className: VJ,
28791
+ "aria-expanded": SJ,
28792
+ "aria-disabled": _J,
28769
28793
  children: [
28770
- RJ,
28771
- zJ
28794
+ UJ,
28795
+ WJ
28772
28796
  ]
28773
28797
  })
28774
- }), t[66] = fJ, t[67] = h, t[68] = _J, t[69] = IJ, t[70] = RJ, t[71] = BJ) : BJ = t[71];
28775
- let VJ;
28776
- t[72] !== lJ || t[73] !== y || t[74] !== M ? (VJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28777
- placeholder: lJ,
28798
+ }), t[66] = _J, t[67] = h, t[68] = SJ, t[69] = VJ, t[70] = UJ, t[71] = GJ) : GJ = t[71];
28799
+ let KJ;
28800
+ t[72] !== mJ || t[73] !== y || t[74] !== M ? (KJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28801
+ placeholder: mJ,
28778
28802
  rootClassName: "px-1 h-8",
28779
28803
  autoFocus: true,
28780
28804
  value: M,
28781
28805
  onValueChange: y
28782
- }), t[72] = lJ, t[73] = y, t[74] = M, t[75] = VJ) : VJ = t[75];
28783
- let HJ;
28784
- t[76] === uJ ? HJ = t[77] : (HJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28785
- children: uJ
28786
- }), t[76] = uJ, t[77] = HJ);
28787
- let UJ;
28788
- t[78] !== n || t[79] !== AJ ? (UJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28789
- value: AJ,
28806
+ }), t[72] = mJ, t[73] = y, t[74] = M, t[75] = KJ) : KJ = t[75];
28807
+ let qJ;
28808
+ t[76] === hJ ? qJ = t[77] : (qJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28809
+ children: hJ
28810
+ }), t[76] = hJ, t[77] = qJ);
28811
+ let JJ;
28812
+ t[78] !== n || t[79] !== FJ ? (JJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28813
+ value: FJ,
28790
28814
  children: n
28791
- }), t[78] = n, t[79] = AJ, t[80] = UJ) : UJ = t[80];
28792
- let WJ;
28793
- t[81] !== HJ || t[82] !== UJ ? (WJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28815
+ }), t[78] = n, t[79] = FJ, t[80] = JJ) : JJ = t[80];
28816
+ let YJ;
28817
+ t[81] !== qJ || t[82] !== JJ ? (YJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28794
28818
  className: "max-h-60 py-.5",
28795
28819
  children: [
28796
- HJ,
28797
- UJ
28820
+ qJ,
28821
+ JJ
28798
28822
  ]
28799
- }), t[81] = HJ, t[82] = UJ, t[83] = WJ) : WJ = t[83];
28800
- let GJ;
28801
- t[84] !== f || t[85] !== cJ || t[86] !== VJ || t[87] !== WJ ? (GJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28823
+ }), t[81] = qJ, t[82] = JJ, t[83] = YJ) : YJ = t[83];
28824
+ let XJ;
28825
+ t[84] !== f || t[85] !== pJ || t[86] !== KJ || t[87] !== YJ ? (XJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28802
28826
  className: "w-full min-w-(--radix-popover-trigger-width) p-0",
28803
28827
  align: "start",
28804
28828
  children: (0, import_jsx_runtime.jsxs)(Command, {
28805
28829
  filter: f,
28806
- shouldFilter: cJ,
28830
+ shouldFilter: pJ,
28807
28831
  children: [
28808
- VJ,
28809
- WJ
28832
+ KJ,
28833
+ YJ
28810
28834
  ]
28811
28835
  })
28812
- }), t[84] = f, t[85] = cJ, t[86] = VJ, t[87] = WJ, t[88] = GJ) : GJ = t[88];
28813
- let KJ;
28814
- t[89] !== _J || t[90] !== NJ || t[91] !== BJ || t[92] !== GJ ? (KJ = (0, import_jsx_runtime.jsxs)(Popover, {
28815
- open: _J,
28816
- onOpenChange: NJ,
28836
+ }), t[84] = f, t[85] = pJ, t[86] = KJ, t[87] = YJ, t[88] = XJ) : XJ = t[88];
28837
+ let ZJ;
28838
+ t[89] !== SJ || t[90] !== RJ || t[91] !== GJ || t[92] !== XJ ? (ZJ = (0, import_jsx_runtime.jsxs)(Popover, {
28839
+ open: SJ,
28840
+ onOpenChange: RJ,
28817
28841
  children: [
28818
- BJ,
28819
- GJ
28842
+ GJ,
28843
+ XJ
28820
28844
  ]
28821
- }), t[89] = _J, t[90] = NJ, t[91] = BJ, t[92] = GJ, t[93] = KJ) : KJ = t[93];
28822
- let qJ;
28823
- t[94] !== dJ || t[95] !== i || t[96] !== fJ || t[97] !== d || t[98] !== TJ || t[99] !== $ || t[100] !== bJ ? (qJ = $ && dJ && (0, import_jsx_runtime.jsx)("div", {
28845
+ }), t[89] = SJ, t[90] = RJ, t[91] = GJ, t[92] = XJ, t[93] = ZJ) : ZJ = t[93];
28846
+ let QJ;
28847
+ t[94] !== gJ || t[95] !== i || t[96] !== _J || t[97] !== d || t[98] !== AJ || t[99] !== $ || t[100] !== TJ ? (QJ = $ && gJ && (0, import_jsx_runtime.jsx)("div", {
28824
28848
  className: cn("flex flex-col gap-1 items-start", i),
28825
- children: Array.isArray(bJ) && bJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28849
+ children: Array.isArray(TJ) && TJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28826
28850
  variant: "secondary",
28827
28851
  children: [
28828
28852
  (d == null ? void 0 : d(e2)) ?? String(e2),
28829
28853
  (0, import_jsx_runtime.jsx)(CircleX, {
28830
28854
  onClick: () => {
28831
- fJ || TJ(e2);
28855
+ _J || AJ(e2);
28832
28856
  },
28833
- className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", fJ && "pointer-events-none")
28857
+ className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", _J && "pointer-events-none")
28834
28858
  })
28835
28859
  ]
28836
28860
  }, String(e2)))
28837
- }), t[94] = dJ, t[95] = i, t[96] = fJ, t[97] = d, t[98] = TJ, t[99] = $, t[100] = bJ, t[101] = qJ) : qJ = t[101];
28838
- let JJ;
28839
- return t[102] !== A || t[103] !== KJ || t[104] !== qJ ? (JJ = (0, import_jsx_runtime.jsxs)("div", {
28840
- className: MJ,
28861
+ }), t[94] = gJ, t[95] = i, t[96] = _J, t[97] = d, t[98] = AJ, t[99] = $, t[100] = TJ, t[101] = QJ) : QJ = t[101];
28862
+ let $J;
28863
+ return t[102] !== A || t[103] !== ZJ || t[104] !== QJ ? ($J = (0, import_jsx_runtime.jsxs)("div", {
28864
+ className: LJ,
28841
28865
  ...A,
28842
28866
  children: [
28843
- KJ,
28844
- qJ
28867
+ ZJ,
28868
+ QJ
28845
28869
  ]
28846
- }), t[102] = A, t[103] = KJ, t[104] = qJ, t[105] = JJ) : JJ = t[105], JJ;
28870
+ }), t[102] = A, t[103] = ZJ, t[104] = QJ, t[105] = $J) : $J = t[105], $J;
28847
28871
  };
28848
28872
  ComboboxItem = import_react.forwardRef((e, t) => {
28849
28873
  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), _;
@@ -29899,17 +29923,17 @@ ${n}` : "Please fix this error.";
29899
29923
  searchQuery: M,
29900
29924
  filteredOptions: z
29901
29925
  }, 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), cJ;
29903
- t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (cJ = {
29926
+ let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), pJ;
29927
+ t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (pJ = {
29904
29928
  value: i,
29905
29929
  onChange: a,
29906
29930
  multiple: o,
29907
29931
  maxSelections: s,
29908
29932
  allowSelectNone: c,
29909
29933
  selected: y
29910
- }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = cJ) : cJ = t[21];
29911
- let { isChecked: lJ, toggle: uJ } = useToggle(cJ), dJ;
29912
- t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (dJ = {
29934
+ }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = pJ) : pJ = t[21];
29935
+ let { isChecked: mJ, toggle: hJ } = useToggle(pJ), gJ;
29936
+ t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (gJ = {
29913
29937
  value: i,
29914
29938
  onChange: a,
29915
29939
  multiple: o,
@@ -29917,24 +29941,24 @@ ${n}` : "Please fix this error.";
29917
29941
  filteredOptions: z,
29918
29942
  searchQuery: M,
29919
29943
  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] = dJ) : dJ = t[29];
29921
- let { bulkActions: fJ } = useBulk(dJ), pJ;
29922
- t[30] !== J || t[31] !== I ? (pJ = (e2) => {
29944
+ }, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = gJ) : gJ = t[29];
29945
+ let { bulkActions: _J } = useBulk(gJ), vJ;
29946
+ t[30] !== J || t[31] !== I ? (vJ = (e2) => {
29923
29947
  I(e2), e2 === "" && J();
29924
- }, t[30] = J, t[31] = I, t[32] = pJ) : pJ = t[32];
29925
- let mJ = pJ, hJ;
29926
- return t[33] !== fJ || t[34] !== lJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== mJ || t[41] !== uJ || t[42] !== Q ? (hJ = {
29948
+ }, t[30] = J, t[31] = I, t[32] = vJ) : vJ = t[32];
29949
+ let yJ = vJ, bJ;
29950
+ return t[33] !== _J || t[34] !== mJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== yJ || t[41] !== hJ || t[42] !== Q ? (bJ = {
29927
29951
  searchQuery: M,
29928
- setSearchQuery: mJ,
29952
+ setSearchQuery: yJ,
29929
29953
  open: K,
29930
29954
  setOpen: q,
29931
29955
  visibleOptions: Q,
29932
29956
  pinnedCount: $,
29933
- isChecked: lJ,
29934
- toggle: uJ,
29935
- bulkActions: fJ,
29957
+ isChecked: mJ,
29958
+ toggle: hJ,
29959
+ bulkActions: _J,
29936
29960
  labelOf: O
29937
- }, t[33] = fJ, t[34] = lJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = mJ, t[41] = uJ, t[42] = Q, t[43] = hJ) : hJ = t[43], hJ;
29961
+ }, t[33] = _J, t[34] = mJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = yJ, t[41] = hJ, t[42] = Q, t[43] = bJ) : bJ = t[43], bJ;
29938
29962
  };
29939
29963
  const Sets = {
29940
29964
  merge(...e) {
@@ -30263,7 +30287,7 @@ ${n}` : "Please fix this error.";
30263
30287
  type: S,
30264
30288
  operator: E,
30265
30289
  draft: mergeNumberTextDraft(A, I)
30266
- }), $ = Q === void 0, cJ = $ ? getMissingValueMessage(S, E) : "Apply filter", lJ = () => {
30290
+ }), $ = Q === void 0, pJ = $ ? getMissingValueMessage(S, E) : "Apply filter", mJ = () => {
30267
30291
  if (!Q) return;
30268
30292
  let e2 = Q;
30269
30293
  t.setColumnFilters((t2) => {
@@ -30282,20 +30306,20 @@ ${n}` : "Please fix this error.";
30282
30306
  value: e2
30283
30307
  }, n2;
30284
30308
  }), i();
30285
- }, uJ = () => {
30309
+ }, hJ = () => {
30286
30310
  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);
30311
+ }, gJ = !OPERATORS_WITHOUT_VALUE.has(E), _J = OPERATORS_BY_TYPE[S], vJ = (0, import_react.useRef)(null), yJ = (0, import_react.useRef)(null);
30288
30312
  return (0, import_react.useEffect)(() => {
30289
30313
  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();
30314
+ let e2 = (_a2 = vJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30315
+ e2 ? e2.focus() : (_b = yJ.current) == null ? void 0 : _b.focus();
30292
30316
  }, [
30293
30317
  S,
30294
30318
  E
30295
30319
  ]), (0, import_jsx_runtime.jsxs)("form", {
30296
30320
  className: "flex flex-row gap-4 items-end p-3",
30297
30321
  onSubmit: (e2) => {
30298
- e2.preventDefault(), lJ();
30322
+ e2.preventDefault(), mJ();
30299
30323
  },
30300
30324
  onKeyDownCapture: (e2) => {
30301
30325
  e2.key === "Tab" && e2.stopPropagation();
@@ -30336,13 +30360,13 @@ ${n}` : "Please fix this error.";
30336
30360
  onValueChange: (e2) => J(e2),
30337
30361
  children: [
30338
30362
  (0, import_jsx_runtime.jsx)(SelectTrigger, {
30339
- ref: mJ,
30363
+ ref: yJ,
30340
30364
  id: s,
30341
30365
  className: "h-6 mb-1 bg-transparent",
30342
30366
  children: (0, import_jsx_runtime.jsx)(SelectValue, {})
30343
30367
  }),
30344
30368
  (0, import_jsx_runtime.jsx)(SelectContent, {
30345
- children: fJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30369
+ children: _J.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30346
30370
  value: e2,
30347
30371
  children: OPERATOR_LABELS[e2]
30348
30372
  }, e2))
@@ -30351,8 +30375,8 @@ ${n}` : "Please fix this error.";
30351
30375
  }, S)
30352
30376
  ]
30353
30377
  }),
30354
- dJ && (0, import_jsx_runtime.jsxs)("div", {
30355
- ref: pJ,
30378
+ gJ && (0, import_jsx_runtime.jsxs)("div", {
30379
+ ref: vJ,
30356
30380
  className: "flex flex-col gap-1",
30357
30381
  children: [
30358
30382
  (0, import_jsx_runtime.jsx)("label", {
@@ -30379,7 +30403,7 @@ ${n}` : "Please fix this error.";
30379
30403
  className: "flex gap-1 mb-1",
30380
30404
  children: [
30381
30405
  (0, import_jsx_runtime.jsx)(Tooltip, {
30382
- content: cJ,
30406
+ content: pJ,
30383
30407
  children: (0, import_jsx_runtime.jsx)("span", {
30384
30408
  className: "inline-flex",
30385
30409
  children: (0, import_jsx_runtime.jsx)(Button, {
@@ -30418,7 +30442,7 @@ ${n}` : "Please fix this error.";
30418
30442
  size: "icon",
30419
30443
  variant: "ghost",
30420
30444
  className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
30421
- onClick: uJ,
30445
+ onClick: hJ,
30422
30446
  "aria-label": "Remove filter",
30423
30447
  children: (0, import_jsx_runtime.jsx)(Trash2, {
30424
30448
  className: "h-3.5 w-3.5",
@@ -32626,29 +32650,29 @@ ${n}` : "Please fix this error.";
32626
32650
  }, t[16] = a, t[17] = J);
32627
32651
  let Q = useEvent_default(J), $;
32628
32652
  t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
32629
- let cJ = useEvent_default($), lJ, uJ;
32630
- t[20] === S ? (lJ = t[21], uJ = t[22]) : (lJ = () => (window.addEventListener("scroll", S, {
32653
+ let pJ = useEvent_default($), mJ, hJ;
32654
+ t[20] === S ? (mJ = t[21], hJ = t[22]) : (mJ = () => (window.addEventListener("scroll", S, {
32631
32655
  passive: true,
32632
32656
  capture: true
32633
32657
  }), window.addEventListener("resize", S), () => {
32634
32658
  window.removeEventListener("scroll", S, {
32635
32659
  capture: true
32636
32660
  }), window.removeEventListener("resize", S);
32637
- }), uJ = [
32661
+ }), hJ = [
32638
32662
  S
32639
- ], t[20] = S, t[21] = lJ, t[22] = uJ), (0, import_react.useEffect)(lJ, uJ);
32640
- let dJ, fJ;
32641
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dJ = () => v, fJ = [], t[23] = dJ, t[24] = fJ) : (dJ = t[23], fJ = t[24]), (0, import_react.useEffect)(dJ, fJ);
32642
- let pJ;
32643
- return t[25] !== cJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (pJ = {
32663
+ ], t[20] = S, t[21] = mJ, t[22] = hJ), (0, import_react.useEffect)(mJ, hJ);
32664
+ let gJ, _J;
32665
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gJ = () => v, _J = [], t[23] = gJ, t[24] = _J) : (gJ = t[23], _J = t[24]), (0, import_react.useEffect)(gJ, _J);
32666
+ let vJ;
32667
+ return t[25] !== pJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (vJ = {
32644
32668
  tooltipState: o,
32645
32669
  tooltipContentId: d,
32646
32670
  hideTooltip: S,
32647
32671
  handleCellMouseOver: U,
32648
32672
  handleCellMouseLeave: q,
32649
32673
  handleCellFocus: Q,
32650
- handleCellBlur: cJ
32651
- }, t[25] = cJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = pJ) : pJ = t[32], pJ;
32674
+ handleCellBlur: pJ
32675
+ }, t[25] = pJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = vJ) : vJ = t[32], vJ;
32652
32676
  }
32653
32677
  var import_compiler_runtime$18 = require_compiler_runtime();
32654
32678
  const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
@@ -34093,7 +34117,7 @@ ${n}` : "Please fix this error.";
34093
34117
  filename: i2.filename
34094
34118
  };
34095
34119
  }, t[6] = e, t[7] = O);
34096
- let A = O, M, I, z, U, K, q, J, Q, $, cJ, lJ, uJ, dJ;
34120
+ let A = O, M, I, z, U, K, q, J, Q, $, pJ, mJ, hJ, gJ;
34097
34121
  if (t[8] !== E || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
34098
34122
  let e2 = async (t2) => {
34099
34123
  let n2 = labelForDownloadFormat(t2);
@@ -34159,10 +34183,10 @@ ${n}` : "Please fix this error.";
34159
34183
  content: d,
34160
34184
  open: o,
34161
34185
  children: h
34162
- }), t[32] = o, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", cJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (lJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34186
+ }), t[32] = o, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", pJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (mJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34163
34187
  className: "text-xs text-muted-foreground",
34164
34188
  children: "Download"
34165
- }), t[36] = lJ) : lJ = t[36], uJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34189
+ }), t[36] = mJ) : mJ = t[36], hJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34166
34190
  onSelect: () => {
34167
34191
  e2(t2.format);
34168
34192
  },
@@ -34183,10 +34207,10 @@ ${n}` : "Please fix this error.";
34183
34207
  ]
34184
34208
  })
34185
34209
  ]
34186
- }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34210
+ }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34187
34211
  className: "text-xs text-muted-foreground",
34188
34212
  children: "Copy to clipboard"
34189
- }), t[37] = z, t[38] = dJ) : (z = t[37], dJ = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34213
+ }), t[37] = z, t[38] = gJ) : (z = t[37], gJ = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34190
34214
  onSelect: async () => {
34191
34215
  try {
34192
34216
  await a2(e3.format);
@@ -34215,30 +34239,30 @@ ${n}` : "Please fix this error.";
34215
34239
  ]
34216
34240
  })
34217
34241
  ]
34218
- }, 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] = cJ, t[23] = lJ, t[24] = uJ, t[25] = dJ;
34219
- } 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], cJ = t[22], lJ = t[23], uJ = t[24], dJ = t[25];
34220
- let fJ;
34221
- t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== cJ || t[44] !== lJ || t[45] !== uJ || t[46] !== dJ ? (fJ = (0, import_jsx_runtime.jsxs)(M, {
34242
+ }, 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] = pJ, t[23] = mJ, t[24] = hJ, t[25] = gJ;
34243
+ } 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], pJ = t[22], mJ = t[23], hJ = t[24], gJ = t[25];
34244
+ let _J;
34245
+ t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== pJ || t[44] !== mJ || t[45] !== hJ || t[46] !== gJ ? (_J = (0, import_jsx_runtime.jsxs)(M, {
34222
34246
  side: $,
34223
- className: cJ,
34247
+ className: pJ,
34224
34248
  children: [
34225
- lJ,
34226
- uJ,
34227
- dJ,
34249
+ mJ,
34250
+ hJ,
34251
+ gJ,
34228
34252
  z,
34229
34253
  U
34230
34254
  ]
34231
- }), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = cJ, t[44] = lJ, t[45] = uJ, t[46] = dJ, t[47] = fJ) : fJ = t[47];
34232
- let pJ;
34233
- return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== fJ ? (pJ = (0, import_jsx_runtime.jsxs)(I, {
34255
+ }), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = pJ, t[44] = mJ, t[45] = hJ, t[46] = gJ, t[47] = _J) : _J = t[47];
34256
+ let vJ;
34257
+ return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== _J ? (vJ = (0, import_jsx_runtime.jsxs)(I, {
34234
34258
  modal: K,
34235
34259
  open: q,
34236
34260
  onOpenChange: J,
34237
34261
  children: [
34238
34262
  Q,
34239
- fJ
34263
+ _J
34240
34264
  ]
34241
- }), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = fJ, t[54] = pJ) : pJ = t[54], pJ;
34265
+ }), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = _J, t[54] = vJ) : vJ = t[54], vJ;
34242
34266
  };
34243
34267
  function fetchJson(e) {
34244
34268
  return fetchText(e).then(jsonParseWithSpecialChar);
@@ -34334,22 +34358,22 @@ ${n}` : "Please fix this error.";
34334
34358
  ]
34335
34359
  });
34336
34360
  };
34337
- 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: cJ, showSearch: lJ = false, searchQuery: uJ, onSearchQueryChange: dJ, showFilters: fJ = false, filters: pJ, onFiltersChange: mJ, calculateTopKRows: hJ, reloading: gJ, freezeColumnsLeft: _J, freezeColumnsRight: vJ, hiddenColumns: yJ, toggleDisplayHeader: bJ, showChartBuilder: xJ, isChartBuilderOpen: SJ, showPageSizeSelector: CJ, showTableExplorer: wJ, togglePanel: TJ, isPanelOpen: EJ, isAnyPanelOpen: DJ, viewedRowIdx: OJ, onViewedRowChange: kJ, renderTableExplorerPanel: AJ }) => {
34338
- let jJ = isStaticNotebook(), MJ = !jJ, [NJ, PJ] = import_react.useState(false), { locale: FJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: IJ, setColumnPinning: LJ } = useColumnPinning(_J, vJ), { columnVisibility: RJ, setColumnVisibility: zJ } = useColumnVisibility(yJ);
34361
+ 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: pJ, showSearch: mJ = false, searchQuery: hJ, onSearchQueryChange: gJ, showFilters: _J = false, filters: vJ, onFiltersChange: yJ, calculateTopKRows: bJ, reloading: xJ, freezeColumnsLeft: SJ, freezeColumnsRight: CJ, hiddenColumns: wJ, toggleDisplayHeader: TJ, showChartBuilder: EJ, isChartBuilderOpen: DJ, showPageSizeSelector: OJ, showTableExplorer: kJ, togglePanel: AJ, isPanelOpen: jJ, isAnyPanelOpen: MJ, viewedRowIdx: NJ, onViewedRowChange: PJ, renderTableExplorerPanel: FJ }) => {
34362
+ let IJ = isStaticNotebook(), LJ = !IJ, [RJ, zJ] = import_react.useState(false), { locale: BJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: VJ, setColumnPinning: HJ } = useColumnPinning(SJ, CJ), { columnVisibility: UJ, setColumnVisibility: WJ } = useColumnVisibility(wJ);
34339
34363
  import_react.useEffect(() => {
34340
34364
  let e2;
34341
- return gJ ? e2 = setTimeout(() => {
34342
- PJ(true);
34343
- }, 300) : PJ(false), () => {
34365
+ return xJ ? e2 = setTimeout(() => {
34366
+ zJ(true);
34367
+ }, 300) : zJ(false), () => {
34344
34368
  e2 && clearTimeout(e2);
34345
34369
  };
34346
34370
  }, [
34347
- gJ
34371
+ xJ
34348
34372
  ]);
34349
- function BJ(e2, t2) {
34373
+ function GJ(e2, t2) {
34350
34374
  return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
34351
34375
  }
34352
- let VJ = useReactTable({
34376
+ let KJ = useReactTable({
34353
34377
  _features: [
34354
34378
  ColumnPinning,
34355
34379
  ColumnWrappingFeature,
@@ -34373,37 +34397,37 @@ ${n}` : "Please fix this error.";
34373
34397
  getRowId: (e2, t2) => {
34374
34398
  let n2 = getStableRowId(e2);
34375
34399
  if (n2) return n2;
34376
- let i2 = BJ(e2, t2);
34400
+ let i2 = GJ(e2, t2);
34377
34401
  return String(i2);
34378
34402
  }
34379
34403
  } : {},
34380
- locale: FJ,
34404
+ locale: BJ,
34381
34405
  manualPagination: q,
34382
34406
  getPaginationRowModel: getPaginationRowModel(),
34383
34407
  ...w ? {
34384
34408
  onSortingChange: w
34385
34409
  } : {},
34386
34410
  manualSorting: y,
34387
- enableSorting: !jJ,
34411
+ enableSorting: !IJ,
34388
34412
  enableMultiSort: true,
34389
34413
  getSortedRowModel: getSortedRowModel(),
34390
34414
  manualFiltering: true,
34391
- enableColumnFilters: fJ && !jJ,
34415
+ enableColumnFilters: _J && !IJ,
34392
34416
  getFilteredRowModel: getFilteredRowModel(),
34393
- onColumnFiltersChange: mJ,
34417
+ onColumnFiltersChange: yJ,
34394
34418
  onRowSelectionChange: Q,
34395
34419
  onCellSelectionChange: $,
34396
34420
  enableCellSelection: c === "single-cell" || c === "multi-cell",
34397
34421
  enableMultiCellSelection: c === "multi-cell",
34398
- onColumnPinningChange: LJ,
34399
- onColumnVisibilityChange: zJ,
34422
+ onColumnPinningChange: HJ,
34423
+ onColumnVisibilityChange: WJ,
34400
34424
  enableFocusRow: true,
34401
- onFocusRowChange: kJ,
34425
+ onFocusRowChange: PJ,
34402
34426
  state: {
34403
34427
  ...S ? {
34404
34428
  sorting: S
34405
34429
  } : {},
34406
- columnFilters: pJ,
34430
+ columnFilters: vJ,
34407
34431
  ...z ? {
34408
34432
  pagination: z
34409
34433
  } : J && !z ? {} : {
@@ -34414,60 +34438,60 @@ ${n}` : "Please fix this error.";
34414
34438
  },
34415
34439
  rowSelection: E ?? {},
34416
34440
  cellSelection: O ?? [],
34417
- columnVisibility: RJ,
34441
+ columnVisibility: UJ,
34418
34442
  cellStyling: A,
34419
- columnPinning: IJ,
34443
+ columnPinning: VJ,
34420
34444
  cellHoverTemplate: M,
34421
34445
  cellHoverTexts: I ?? {}
34422
34446
  }
34423
- }), HJ = (EJ == null ? void 0 : EJ(PANEL_TYPES.ROW_VIEWER)) ?? false, UJ = !J && a.length > 100, WJ = useScrollContainerHeight({
34447
+ }), qJ = (jJ == null ? void 0 : jJ(PANEL_TYPES.ROW_VIEWER)) ?? false, JJ = !J && a.length > 100, YJ = useScrollContainerHeight({
34424
34448
  maxHeight: n,
34425
- virtualize: UJ
34426
- }), [GJ, KJ] = import_react.useState(null), qJ = import_react.useMemo(() => ({
34449
+ virtualize: JJ
34450
+ }), [XJ, ZJ] = import_react.useState(null), QJ = import_react.useMemo(() => ({
34427
34451
  requestAddFilter: (e2) => {
34428
- let t2 = VJ.getColumn(e2.columnId);
34429
- t2 && KJ(buildEditorSnapshot(t2, {
34452
+ let t2 = KJ.getColumn(e2.columnId);
34453
+ t2 && ZJ(buildEditorSnapshot(t2, {
34430
34454
  operator: e2.operator
34431
34455
  }));
34432
34456
  }
34433
34457
  }), [
34434
- VJ
34435
- ]), JJ = getUserColumnVisibilityCounts(VJ), YJ = JJ.total > 0 && JJ.visible === 0;
34458
+ KJ
34459
+ ]), $J = getUserColumnVisibilityCounts(KJ), eY = $J.total > 0 && $J.visible === 0;
34436
34460
  return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
34437
- value: qJ,
34461
+ value: QJ,
34438
34462
  children: (0, import_jsx_runtime.jsxs)("div", {
34439
34463
  className: cn(e, "flex flex-col space-y-1"),
34440
34464
  children: [
34441
34465
  (0, import_jsx_runtime.jsx)(FilterPills, {
34442
- filters: pJ,
34443
- table: VJ,
34444
- calculateTopKRows: hJ,
34445
- addFilterSnapshot: GJ,
34446
- onAddFilterSnapshotChange: KJ
34466
+ filters: vJ,
34467
+ table: KJ,
34468
+ calculateTopKRows: bJ,
34469
+ addFilterSnapshot: XJ,
34470
+ onAddFilterSnapshotChange: ZJ
34447
34471
  }),
34448
- AJ == null ? void 0 : AJ(VJ),
34472
+ FJ == null ? void 0 : FJ(KJ),
34449
34473
  (0, import_jsx_runtime.jsx)(CellSelectionProvider, {
34450
34474
  children: (0, import_jsx_runtime.jsxs)("div", {
34451
34475
  part: "table-wrapper",
34452
34476
  className: cn(t || "rounded-md border overflow-hidden"),
34453
34477
  children: [
34454
- MJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
34455
- table: VJ,
34456
- showSearch: lJ,
34457
- searchQuery: uJ,
34458
- onSearchQueryChange: dJ,
34459
- reloading: gJ,
34460
- showChartBuilder: xJ,
34461
- isChartBuilderOpen: SJ,
34462
- toggleDisplayHeader: bJ,
34463
- showTableExplorer: wJ,
34464
- togglePanel: TJ,
34465
- isAnyPanelOpen: DJ,
34478
+ LJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
34479
+ table: KJ,
34480
+ showSearch: mJ,
34481
+ searchQuery: hJ,
34482
+ onSearchQueryChange: gJ,
34483
+ reloading: xJ,
34484
+ showChartBuilder: EJ,
34485
+ isChartBuilderOpen: DJ,
34486
+ toggleDisplayHeader: TJ,
34487
+ showTableExplorer: kJ,
34488
+ togglePanel: AJ,
34489
+ isAnyPanelOpen: MJ,
34466
34490
  downloadAs: K,
34467
34491
  sizeBytes: _,
34468
34492
  sizeBytesIsLoading: v
34469
34493
  }),
34470
- YJ && (0, import_jsx_runtime.jsxs)(Banner, {
34494
+ eY && (0, import_jsx_runtime.jsxs)(Banner, {
34471
34495
  className: "mb-1 mx-2 rounded flex items-center justify-between",
34472
34496
  children: [
34473
34497
  (0, import_jsx_runtime.jsx)("span", {
@@ -34476,26 +34500,26 @@ ${n}` : "Please fix this error.";
34476
34500
  (0, import_jsx_runtime.jsx)(Button, {
34477
34501
  variant: "link",
34478
34502
  size: "xs",
34479
- onClick: () => VJ.resetColumnVisibility(true),
34503
+ onClick: () => KJ.resetColumnVisibility(true),
34480
34504
  children: "Unhide all"
34481
34505
  })
34482
34506
  ]
34483
34507
  }),
34484
34508
  (0, import_jsx_runtime.jsxs)(Table, {
34485
34509
  className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
34486
- ref: WJ,
34510
+ ref: YJ,
34487
34511
  children: [
34488
- NJ && (0, import_jsx_runtime.jsx)("thead", {
34512
+ RJ && (0, import_jsx_runtime.jsx)("thead", {
34489
34513
  className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
34490
34514
  }),
34491
- renderTableHeader(VJ, UJ || !!n),
34515
+ renderTableHeader(KJ, JJ || !!n),
34492
34516
  (0, import_jsx_runtime.jsx)(DataTableBody, {
34493
- table: VJ,
34517
+ table: KJ,
34494
34518
  columns: i,
34495
- rowViewerPanelOpen: HJ,
34496
- getRowIndex: BJ,
34497
- viewedRowIdx: OJ,
34498
- virtualize: UJ
34519
+ rowViewerPanelOpen: qJ,
34520
+ getRowIndex: GJ,
34521
+ viewedRowIdx: NJ,
34522
+ virtualize: JJ
34499
34523
  })
34500
34524
  ]
34501
34525
  }),
@@ -34506,10 +34530,10 @@ ${n}` : "Please fix this error.";
34506
34530
  pagination: J,
34507
34531
  selection: c,
34508
34532
  onRowSelectionChange: Q,
34509
- table: VJ,
34510
- getRowIds: cJ,
34511
- showPageSizeSelector: CJ,
34512
- tableLoading: gJ
34533
+ table: KJ,
34534
+ getRowIds: pJ,
34535
+ showPageSizeSelector: OJ,
34536
+ tableLoading: xJ
34513
34537
  })
34514
34538
  ]
34515
34539
  })
@@ -34609,45 +34633,45 @@ ${d}`,
34609
34633
  prompt: buildFixInChatPrompt(a, d)
34610
34634
  });
34611
34635
  }, t[15] = a, t[16] = d, t[17] = _, t[18] = Q) : Q = t[18];
34612
- let $ = Q, cJ;
34613
- t[19] === z ? cJ = t[20] : (cJ = () => U(!z), t[19] = z, t[20] = cJ);
34614
- let lJ = z ? "Collapse traceback" : "Expand traceback", uJ;
34615
- t[21] === z ? uJ = t[22] : (uJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
34636
+ let $ = Q, pJ;
34637
+ t[19] === z ? pJ = t[20] : (pJ = () => U(!z), t[19] = z, t[20] = pJ);
34638
+ let mJ = z ? "Collapse traceback" : "Expand traceback", hJ;
34639
+ t[21] === z ? hJ = t[22] : (hJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
34616
34640
  className: "h-3 w-3"
34617
34641
  }) : (0, import_jsx_runtime.jsx)(ChevronRight, {
34618
34642
  className: "h-3 w-3"
34619
- }), t[21] = z, t[22] = uJ);
34620
- let dJ;
34621
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (dJ = (0, import_jsx_runtime.jsx)("span", {
34643
+ }), t[21] = z, t[22] = hJ);
34644
+ let gJ;
34645
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gJ = (0, import_jsx_runtime.jsx)("span", {
34622
34646
  className: "text-[0.6875rem] uppercase tracking-wider",
34623
34647
  children: "Traceback"
34624
- }), t[23] = dJ) : dJ = t[23];
34625
- let fJ;
34626
- t[24] !== z || t[25] !== uJ || t[26] !== cJ || t[27] !== lJ ? (fJ = (0, import_jsx_runtime.jsxs)("button", {
34648
+ }), t[23] = gJ) : gJ = t[23];
34649
+ let _J;
34650
+ t[24] !== z || t[25] !== hJ || t[26] !== pJ || t[27] !== mJ ? (_J = (0, import_jsx_runtime.jsxs)("button", {
34627
34651
  type: "button",
34628
- onClick: cJ,
34652
+ onClick: pJ,
34629
34653
  "aria-expanded": z,
34630
- "aria-label": lJ,
34654
+ "aria-label": mJ,
34631
34655
  className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
34632
34656
  children: [
34633
- uJ,
34634
- dJ
34657
+ hJ,
34658
+ gJ
34635
34659
  ]
34636
- }), t[24] = z, t[25] = uJ, t[26] = cJ, t[27] = lJ, t[28] = fJ) : fJ = t[28];
34637
- let pJ;
34638
- t[29] !== s || t[30] !== z ? (pJ = z && (0, import_jsx_runtime.jsx)("div", {
34660
+ }), t[24] = z, t[25] = hJ, t[26] = pJ, t[27] = mJ, t[28] = _J) : _J = t[28];
34661
+ let vJ;
34662
+ t[29] !== s || t[30] !== z ? (vJ = z && (0, import_jsx_runtime.jsx)("div", {
34639
34663
  className: "text-muted-foreground pr-4 text-xs overflow-auto",
34640
34664
  children: s
34641
- }), t[29] = s, t[30] = z, t[31] = pJ) : pJ = t[31];
34642
- let mJ;
34643
- t[32] !== q || t[33] !== $ || t[34] !== M ? (mJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34665
+ }), t[29] = s, t[30] = z, t[31] = vJ) : vJ = t[31];
34666
+ let yJ;
34667
+ t[32] !== q || t[33] !== $ || t[34] !== M ? (yJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34644
34668
  tooltip: "Fix with AI",
34645
34669
  openPrompt: () => q(false),
34646
34670
  applyAutofix: () => q(true),
34647
34671
  openChat: $
34648
- }), t[32] = q, t[33] = $, t[34] = M, t[35] = mJ) : mJ = t[35];
34649
- let hJ;
34650
- t[36] !== O || t[37] !== S ? (hJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
34672
+ }), t[32] = q, t[33] = $, t[34] = M, t[35] = yJ) : yJ = t[35];
34673
+ let bJ;
34674
+ t[36] !== O || t[37] !== S ? (bJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
34651
34675
  content: "Attach pdb to the exception point.",
34652
34676
  children: (0, import_jsx_runtime.jsxs)(Button, {
34653
34677
  size: "xs",
@@ -34664,9 +34688,9 @@ ${d}`,
34664
34688
  "Launch debugger"
34665
34689
  ]
34666
34690
  })
34667
- }), t[36] = O, t[37] = S, t[38] = hJ) : hJ = t[38];
34668
- let gJ;
34669
- t[39] !== d || t[40] !== i ? (gJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34691
+ }), t[36] = O, t[37] = S, t[38] = bJ) : bJ = t[38];
34692
+ let xJ;
34693
+ t[39] !== d || t[40] !== i ? (xJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34670
34694
  children: [
34671
34695
  (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
34672
34696
  asChild: true,
@@ -34734,25 +34758,25 @@ ${d}`,
34734
34758
  ]
34735
34759
  })
34736
34760
  ]
34737
- }), t[39] = d, t[40] = i, t[41] = gJ) : gJ = t[41];
34738
- let _J;
34739
- t[42] !== mJ || t[43] !== hJ || t[44] !== gJ ? (_J = (0, import_jsx_runtime.jsxs)("div", {
34761
+ }), t[39] = d, t[40] = i, t[41] = xJ) : xJ = t[41];
34762
+ let SJ;
34763
+ t[42] !== yJ || t[43] !== bJ || t[44] !== xJ ? (SJ = (0, import_jsx_runtime.jsxs)("div", {
34740
34764
  className: "flex gap-2",
34741
34765
  children: [
34742
- mJ,
34743
- hJ,
34744
- gJ
34766
+ yJ,
34767
+ bJ,
34768
+ xJ
34745
34769
  ]
34746
- }), t[42] = mJ, t[43] = hJ, t[44] = gJ, t[45] = _J) : _J = t[45];
34747
- let vJ;
34748
- return t[46] !== fJ || t[47] !== pJ || t[48] !== _J ? (vJ = (0, import_jsx_runtime.jsxs)("div", {
34770
+ }), t[42] = yJ, t[43] = bJ, t[44] = xJ, t[45] = SJ) : SJ = t[45];
34771
+ let CJ;
34772
+ return t[46] !== _J || t[47] !== vJ || t[48] !== SJ ? (CJ = (0, import_jsx_runtime.jsxs)("div", {
34749
34773
  className: "flex flex-col gap-2 min-w-full w-fit",
34750
34774
  children: [
34751
- fJ,
34752
- pJ,
34753
- _J
34775
+ _J,
34776
+ vJ,
34777
+ SJ
34754
34778
  ]
34755
- }), t[46] = fJ, t[47] = pJ, t[48] = _J, t[49] = vJ) : vJ = t[49], vJ;
34779
+ }), t[46] = _J, t[47] = vJ, t[48] = SJ, t[49] = CJ) : CJ = t[49], CJ;
34756
34780
  };
34757
34781
  function lastLine(e) {
34758
34782
  var _a2, _b;
@@ -36188,14 +36212,14 @@ ${d}`,
36188
36212
  Q
36189
36213
  ]
36190
36214
  }), t[33] = J, t[34] = Q, t[35] = $) : $ = t[35];
36191
- let cJ;
36192
- return t[36] !== I || t[37] !== $ ? (cJ = (0, import_jsx_runtime.jsxs)("div", {
36215
+ let pJ;
36216
+ return t[36] !== I || t[37] !== $ ? (pJ = (0, import_jsx_runtime.jsxs)("div", {
36193
36217
  className: "flex flex-col gap-3",
36194
36218
  children: [
36195
36219
  I,
36196
36220
  $
36197
36221
  ]
36198
- }), t[36] = I, t[37] = $, t[38] = cJ) : cJ = t[38], cJ;
36222
+ }), t[36] = I, t[37] = $, t[38] = pJ) : pJ = t[38], pJ;
36199
36223
  };
36200
36224
  SlideSidebar = (e) => {
36201
36225
  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, _;
@@ -36320,7 +36344,7 @@ ${d}`,
36320
36344
  return Logger.warn("Failed to get version from mount config"), null;
36321
36345
  }
36322
36346
  }
36323
- marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.16-dev26");
36347
+ marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.16-dev29");
36324
36348
  showCodeInRunModeAtom = atom(true);
36325
36349
  atom(null);
36326
36350
  var import_compiler_runtime = require_compiler_runtime();
@@ -36346,134 +36370,142 @@ ${d}`,
36346
36370
  function _temp(e) {
36347
36371
  return !!e.code;
36348
36372
  }
36373
+ cellDomProps = function(e, t) {
36374
+ return {
36375
+ "data-cell-id": e,
36376
+ "data-cell-name": t,
36377
+ id: HTMLCellId.create(e)
36378
+ };
36379
+ };
36349
36380
  });
36350
36381
  export {
36351
- smartMatch as $,
36352
- HtmlOutput as $t,
36353
- LoadingState as A,
36354
- loadTableAndRawData as At,
36355
- useInternalStateWithSync as B,
36356
- dateToLocalISODateTime as Bt,
36357
- Progress as C,
36358
- renderCellValue as Ct,
36359
- ColumnPreviewContainer as D,
36360
- useIntersectionObserver as Dt,
36361
- ColumnName as E,
36362
- DelayMount as Et,
36363
- ContextMenu as F,
36364
- toFieldTypes as Ft,
36365
- Combobox as G,
36366
- TabsTrigger as Gt,
36367
- CompactChipRow as H,
36368
- Tabs as Ht,
36369
- ContextMenuContent as I,
36370
- getMimeValues as It,
36371
- CommandEmpty as J,
36372
- ChartLoadingState as Jt,
36373
- ComboboxItem as K,
36374
- ChartErrorState as Kt,
36375
- ContextMenuItem as L,
36376
- isNullishFilter as Lt,
36377
- prettifyRowCount as M,
36378
- INDEX_COLUMN_NAME as Mt,
36379
- getColumnCountForDisplay as N,
36380
- SELECT_COLUMN_ID as Nt,
36381
- EmptyState as O,
36382
- usePrevious as Ot,
36383
- getUserColumnVisibilityCounts as P,
36384
- TOO_MANY_ROWS as Pt,
36385
- CommandSeparator as Q,
36386
- Kbd as Qt,
36387
- ContextMenuSeparator as R,
36388
- Maps as Rt,
36389
- downloadHTMLAsImage as S,
36390
- inferFieldTypes as St,
36391
- downloadSizeLimitAtom as T,
36392
- ColumnChartSpecModel as Tt,
36393
- DatePicker as U,
36394
- TabsContent as Ut,
36395
- useSelectList as V,
36396
- dateToLocalISOTime as Vt,
36397
- DateRangePicker as W,
36398
- TabsList as Wt,
36399
- CommandItem as X,
36400
- useOverflowDetection as Xt,
36401
- CommandInput as Y,
36402
- LazyVegaEmbed as Yt,
36403
- CommandList as Z,
36404
- RenderTextWithLinks as Zt,
36405
- InstallPackageButton as _,
36382
+ CommandSeparator as $,
36383
+ Kbd as $t,
36384
+ ErrorState as A,
36385
+ getPageIndexForRow as At,
36386
+ ContextMenuTrigger as B,
36387
+ dateToLocalISODate as Bt,
36388
+ downloadHTMLAsImage as C,
36389
+ inferFieldTypes as Ct,
36390
+ ColumnName as D,
36391
+ DelayMount as Dt,
36392
+ downloadSizeLimitAtom as E,
36393
+ ColumnChartSpecModel as Et,
36394
+ getUserColumnVisibilityCounts as F,
36395
+ TOO_MANY_ROWS as Ft,
36396
+ DateRangePicker as G,
36397
+ TabsList as Gt,
36398
+ useSelectList as H,
36399
+ dateToLocalISOTime as Ht,
36400
+ ContextMenu as I,
36401
+ toFieldTypes as It,
36402
+ Command as J,
36403
+ ChartInfoState as Jt,
36404
+ Combobox as K,
36405
+ TabsTrigger as Kt,
36406
+ ContextMenuContent as L,
36407
+ getMimeValues as Lt,
36408
+ prettifyRowColumnCount as M,
36409
+ loadTableData as Mt,
36410
+ prettifyRowCount as N,
36411
+ INDEX_COLUMN_NAME as Nt,
36412
+ ColumnPreviewContainer as O,
36413
+ useIntersectionObserver as Ot,
36414
+ getColumnCountForDisplay as P,
36415
+ SELECT_COLUMN_ID as Pt,
36416
+ CommandList as Q,
36417
+ RenderTextWithLinks as Qt,
36418
+ ContextMenuItem as R,
36419
+ isNullishFilter as Rt,
36420
+ downloadExportedFile as S,
36421
+ generateColumns as St,
36422
+ Filenames as T,
36423
+ ColumnChartContext as Tt,
36424
+ CompactChipRow as U,
36425
+ Tabs as Ut,
36426
+ useInternalStateWithSync as V,
36427
+ dateToLocalISODateTime as Vt,
36428
+ DatePicker as W,
36429
+ TabsContent as Wt,
36430
+ CommandInput as X,
36431
+ LazyVegaEmbed as Xt,
36432
+ CommandEmpty as Y,
36433
+ ChartLoadingState as Yt,
36434
+ CommandItem as Z,
36435
+ useOverflowDetection as Zt,
36436
+ DataTable as _,
36406
36437
  __tla,
36407
- ChevronsDownUp as _n,
36408
- TableHead as _t,
36409
- DEFAULT_DECK_VERTICAL_ALIGN as a,
36410
- $fae977aafc393c5c$export$6b862160d295c8e as an,
36411
- isCellAwareAtom as at,
36412
- downloadByURL as b,
36413
- NAMELESS_COLUMN_PREFIX as bt,
36414
- SlideSidebar as c,
36415
- Funnel as cn,
36416
- Toggle as ct,
36417
- RadioGroup as d,
36418
- Ellipsis as dn,
36419
- PanelResizeHandle as dt,
36420
- EmotionCacheProvider as en,
36421
- ContextAwarePanelItem as et,
36422
- RadioGroupItem as f,
36423
- Download as fn,
36424
- Fill as ft,
36425
- DataTable as g,
36426
- ChevronsLeft as gn,
36427
- TableCell as gt,
36428
- OutputRenderer as h,
36429
- ChevronsRight as hn,
36430
- TableBody as ht,
36431
- DEFAULT_DECK_TRANSITION as i,
36432
- $fae977aafc393c5c$export$588937bcd60ade55 as in,
36433
- contextAwarePanelType as it,
36434
- prettifyRowColumnCount as j,
36435
- loadTableData as jt,
36436
- ErrorState as k,
36437
- getPageIndexForRow as kt,
36438
- Slide as l,
36439
- EyeOff as ln,
36440
- Panel as lt,
36441
- OutputArea as m,
36442
- ChevronsUpDown as mn,
36443
- Table as mt,
36444
- marimoVersionAtom as n,
36445
- hasFunctionProperty as nn,
36446
- contextAwarePanelOpen as nt,
36447
- DEFAULT_SLIDE_TYPE as o,
36448
- TextWrap as on,
36449
- SlotNames as ot,
36450
- JsonOutput as p,
36451
- Code as pn,
36452
- Provider$1 as pt,
36453
- Command as q,
36454
- ChartInfoState as qt,
36455
- showCodeInRunModeAtom as r,
36456
- isRecord as rn,
36457
- contextAwarePanelOwner as rt,
36458
- SLIDE_TYPE_OPTIONS_BY_VALUE as s,
36459
- GripHorizontal as sn,
36460
- slotsController as st,
36461
- useNotebookCodeAvailable as t,
36462
- safeLocale as tn,
36463
- PANEL_TYPES as tt,
36464
- Switch as u,
36465
- Expand as un,
36466
- PanelGroup as ut,
36467
- ADD_PRINTING_CLASS as v,
36468
- ChevronLeft as vn,
36469
- TableHeader as vt,
36470
- Filenames as w,
36471
- ColumnChartContext as wt,
36472
- downloadExportedFile as x,
36473
- generateColumns as xt,
36474
- downloadBlob as y,
36475
- ArrowDownWideNarrow as yn,
36476
- TableRow as yt,
36477
- ContextMenuTrigger as z,
36478
- dateToLocalISODate as zt
36438
+ ChevronsLeft as _n,
36439
+ TableCell as _t,
36440
+ DEFAULT_DECK_TRANSITION as a,
36441
+ $fae977aafc393c5c$export$588937bcd60ade55 as an,
36442
+ contextAwarePanelType as at,
36443
+ downloadBlob as b,
36444
+ ArrowDownWideNarrow as bn,
36445
+ TableRow as bt,
36446
+ SLIDE_TYPE_OPTIONS_BY_VALUE as c,
36447
+ GripHorizontal as cn,
36448
+ slotsController as ct,
36449
+ Switch as d,
36450
+ Expand as dn,
36451
+ PanelGroup as dt,
36452
+ HtmlOutput as en,
36453
+ smartMatch as et,
36454
+ RadioGroup as f,
36455
+ Ellipsis as fn,
36456
+ PanelResizeHandle as ft,
36457
+ OutputRenderer as g,
36458
+ ChevronsRight as gn,
36459
+ TableBody as gt,
36460
+ OutputArea as h,
36461
+ ChevronsUpDown as hn,
36462
+ Table as ht,
36463
+ showCodeInRunModeAtom as i,
36464
+ isRecord as in,
36465
+ contextAwarePanelOwner as it,
36466
+ LoadingState as j,
36467
+ loadTableAndRawData as jt,
36468
+ EmptyState as k,
36469
+ usePrevious as kt,
36470
+ SlideSidebar as l,
36471
+ Funnel as ln,
36472
+ Toggle as lt,
36473
+ JsonOutput as m,
36474
+ Code as mn,
36475
+ Provider$1 as mt,
36476
+ useNotebookCodeAvailable as n,
36477
+ safeLocale as nn,
36478
+ PANEL_TYPES as nt,
36479
+ DEFAULT_DECK_VERTICAL_ALIGN as o,
36480
+ $fae977aafc393c5c$export$6b862160d295c8e as on,
36481
+ isCellAwareAtom as ot,
36482
+ RadioGroupItem as p,
36483
+ Download as pn,
36484
+ Fill as pt,
36485
+ ComboboxItem as q,
36486
+ ChartErrorState as qt,
36487
+ marimoVersionAtom as r,
36488
+ hasFunctionProperty as rn,
36489
+ contextAwarePanelOpen as rt,
36490
+ DEFAULT_SLIDE_TYPE as s,
36491
+ TextWrap as sn,
36492
+ SlotNames as st,
36493
+ cellDomProps as t,
36494
+ EmotionCacheProvider as tn,
36495
+ ContextAwarePanelItem as tt,
36496
+ Slide as u,
36497
+ EyeOff as un,
36498
+ Panel as ut,
36499
+ InstallPackageButton as v,
36500
+ ChevronsDownUp as vn,
36501
+ TableHead as vt,
36502
+ Progress as w,
36503
+ renderCellValue as wt,
36504
+ downloadByURL as x,
36505
+ NAMELESS_COLUMN_PREFIX as xt,
36506
+ ADD_PRINTING_CLASS as y,
36507
+ ChevronLeft as yn,
36508
+ TableHeader as yt,
36509
+ ContextMenuSeparator as z,
36510
+ Maps as zt
36479
36511
  };