@marimo-team/islands 0.23.10-dev29 → 0.23.10-dev30

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.
@@ -6,7 +6,7 @@ import { _ as Logger, c as Objects, g as cn, h as Events, m as useComposedRefs,
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-UqRYxiOg.js";
9
- import { $t as extractAllTracebackInfo, A as ChevronRightIcon, An as Minus, At as goToCellLine, Bt as DATA_TYPE_ICON, C as AccordionContent, Ct as Checkbox, En as Trash2, Ft as adaptForLocalStorage, Hn as esm_default, I as base64ToUint8Array, In as ExternalLink, It as jotaiJsonStorage, M as PinLeftIcon, N as PinRightIcon, Nn as Info, Nt as useChromeActions, O as CheckIcon, Pn as FileText, Qt as elementContainsMarimoCellFile, R as extractBase64FromDataURL, Rt as PluralWord, S as Accordion, T as AccordionTrigger, Tn as Wrench, Un as import_lib, V as renderHTML, Vn as Braces, X as notebookAtom, Yt as useRequestClient, _n as atomWithStorage, _t as DATA_CELL_ID, bn as Close$1, c as Popover, cn as HTMLCellId, d as PopoverTrigger, dt as viewStateAtom, en as getTracebackInfo, et as useCellActions, ft as outputIsLoading, g as getDatasourceContext, gt as sanitizeHtml, hn as jsonToMarkdown, j as DotFilledIcon, jn as LoaderCircle, kn as NotebookPen, l as PopoverClose, ln as SCRATCH_CELL_ID, lt as kioskModeAtom, m as useExpandedOutput, mn as jsonParseWithSpecialChar, n as Spinner, nt as useCellNames, ot as AnsiUp, q as getCellEditorView, qt as getRequestClient, r as MarkdownRenderer, rn as filenameAtom, sn as CellOutputId, t as toPng, tt as useCellIds, u as PopoverContent, ut as useInstallAllowed, vt as getCellDomProps, w as AccordionItem, yt as displayCellName, z as isDataURLString, zn as CircleX, __tla as __tla_0 } from "./html-to-image-UEH5lFDZ.js";
9
+ import { $t as extractAllTracebackInfo, A as ChevronRightIcon, An as Minus, At as goToCellLine, Bt as DATA_TYPE_ICON, C as AccordionContent, Ct as Checkbox, En as Trash2, Fn as Eye, Ft as adaptForLocalStorage, Hn as esm_default, I as base64ToUint8Array, In as ExternalLink, It as jotaiJsonStorage, M as PinLeftIcon, N as PinRightIcon, Nn as Info, Nt as useChromeActions, O as CheckIcon, Pn as FileText, Qt as elementContainsMarimoCellFile, R as extractBase64FromDataURL, Rt as PluralWord, S as Accordion, T as AccordionTrigger, Tn as Wrench, Un as import_lib, V as renderHTML, Vn as Braces, Vt as getDataTypeColor, X as notebookAtom, Yt as useRequestClient, _n as atomWithStorage, _t as DATA_CELL_ID, bn as Close$1, c as Popover, cn as HTMLCellId, d as PopoverTrigger, dt as viewStateAtom, en as getTracebackInfo, et as useCellActions, ft as outputIsLoading, g as getDatasourceContext, gt as sanitizeHtml, hn as jsonToMarkdown, j as DotFilledIcon, jn as LoaderCircle, kn as NotebookPen, l as PopoverClose, ln as SCRATCH_CELL_ID, lt as kioskModeAtom, m as useExpandedOutput, mn as jsonParseWithSpecialChar, n as Spinner, nt as useCellNames, ot as AnsiUp, q as getCellEditorView, qt as getRequestClient, r as MarkdownRenderer, rn as filenameAtom, sn as CellOutputId, t as toPng, tt as useCellIds, u as PopoverContent, ut as useInstallAllowed, vt as getCellDomProps, w as AccordionItem, yt as displayCellName, z as isDataURLString, zn as CircleX, __tla as __tla_0 } from "./html-to-image-UEH5lFDZ.js";
10
10
  import { o as useSize, u as createLucideIcon } from "./dist-Dk6PV_d3.js";
11
11
  import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-00mO3OSS.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-QB-3MpYr.js";
@@ -35,7 +35,7 @@ import { n as formats } from "./vega-loader.browser-CZ-J8Py3.js";
35
35
  import { a as getContainerWidth, n as vegaLoadData, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-BWLPpjKK.js";
36
36
  import { t as useIframeCapabilities } from "./useIframeCapabilities-C4JTXTIh.js";
37
37
  import { t as useAsyncData } from "./useAsyncData-PonK__yh.js";
38
- let slotsController, Expand, ContextMenuSeparator, Maps, CommandEmpty, ChartLoadingState, downloadSizeLimitAtom, loadTableData, ContextMenu, toFieldTypes, getColumnCountForDisplay, TOO_MANY_ROWS, DatePicker, TabsContent, smartMatch, HtmlOutput, CommandItem, useOverflowDetection, DateRangePicker, TabsList, contextAwarePanelOpen, $fae977aafc393c5c$export$6b862160d295c8e, ContextAwarePanelItem, EmotionCacheProvider, Combobox, TabsTrigger, useInternalStateWithSync, dateToLocalISODateTime, useSelectList, dateToLocalISOTime, ContextMenuContent, getMimeValues, CompactChipRow, Tabs, SlotNames, EyeOff, ComboboxItem, ChartErrorState, Filenames, loadTableAndRawData, prettifyRowCount, SELECT_COLUMN_ID, CommandList, RenderTextWithLinks, CommandInput, LazyVegaEmbed, CommandSeparator, Kbd, contextAwarePanelType, GripHorizontal, contextAwarePanelOwner, TextWrap, isCellAwareAtom, Funnel, ADD_PRINTING_CLASS, ColumnChartSpecModel, DEFAULT_SLIDE_TYPE, ChevronsLeft, Provider$1, downloadHTMLAsImage, usePrevious, Slide, ArrowDownWideNarrow, TableCell, RadioGroupItem, TableRow, Ellipsis, Toggle, JsonOutput, NAMELESS_COLUMN_PREFIX, InstallPackageButton, ColumnChartContext, DataTable, renderCellValue, DEFAULT_DECK_TRANSITION, ChevronsRight, Fill, ContextMenuTrigger, dateToLocalISODate, ContextMenuItem, isNullishFilter, Switch, TableHead, OutputRenderer, inferFieldTypes, marimoVersionAtom, Code, PanelGroup, SLIDE_TYPE_OPTIONS_BY_VALUE, ChevronsDownUp, Table, OutputArea, generateColumns, PANEL_TYPES, $fae977aafc393c5c$export$588937bcd60ade55, showCodeInRunModeAtom, ChevronsUpDown, PanelResizeHandle, SlideSidebar, ChevronLeft, TableBody, useNotebookCodeAvailable, Download, Panel, RadioGroup, TableHeader, downloadBlob, DelayMount, prettifyRowColumnCount, INDEX_COLUMN_NAME, Progress, getPageIndexForRow, downloadByURL, useIntersectionObserver, Command, ChartInfoState;
38
+ let contextAwarePanelOpen, $fae977aafc393c5c$export$6b862160d295c8e, prettifyRowCount, SELECT_COLUMN_ID, DatePicker, TabsContent, downloadSizeLimitAtom, DelayMount, ErrorState, loadTableAndRawData, EmptyState, getPageIndexForRow, ContextMenuSeparator, Maps, CommandEmpty, ChartLoadingState, Combobox, TabsTrigger, ContextMenuTrigger, dateToLocalISODate, CommandList, RenderTextWithLinks, CommandInput, LazyVegaEmbed, useInternalStateWithSync, dateToLocalISODateTime, ContextMenu, toFieldTypes, ContextMenuContent, getMimeValues, LoadingState, loadTableData, ContextMenuItem, isNullishFilter, PANEL_TYPES, $fae977aafc393c5c$export$588937bcd60ade55, useSelectList, dateToLocalISOTime, Filenames, ColumnChartSpecModel, ColumnPreviewContainer, usePrevious, ComboboxItem, ChartErrorState, DateRangePicker, TabsList, Command, ChartInfoState, smartMatch, HtmlOutput, CommandSeparator, Kbd, ContextAwarePanelItem, EmotionCacheProvider, ADD_PRINTING_CLASS, NAMELESS_COLUMN_PREFIX, DEFAULT_SLIDE_TYPE, Ellipsis, Toggle, downloadHTMLAsImage, renderCellValue, Slide, ChevronsUpDown, PanelResizeHandle, RadioGroupItem, ChevronsDownUp, Table, TextWrap, contextAwarePanelOwner, JsonOutput, ChevronLeft, TableBody, InstallPackageButton, TableRow, DataTable, TableHeader, DEFAULT_DECK_TRANSITION, Expand, slotsController, getColumnCountForDisplay, TOO_MANY_ROWS, prettifyRowColumnCount, INDEX_COLUMN_NAME, Switch, ChevronsRight, Fill, OutputRenderer, TableHead, marimoVersionAtom, Funnel, isCellAwareAtom, SLIDE_TYPE_OPTIONS_BY_VALUE, Download, Panel, OutputArea, ArrowDownWideNarrow, TableCell, CommandItem, useOverflowDetection, showCodeInRunModeAtom, EyeOff, SlotNames, SlideSidebar, Code, PanelGroup, useNotebookCodeAvailable, GripHorizontal, contextAwarePanelType, RadioGroup, ChevronsLeft, Provider$1, downloadBlob, generateColumns, ColumnName, useIntersectionObserver, Progress, ColumnChartContext, downloadByURL, inferFieldTypes, CompactChipRow, Tabs;
39
39
  let __tla = Promise.all([
40
40
  (() => {
41
41
  try {
@@ -45,7 +45,7 @@ let __tla = Promise.all([
45
45
  })()
46
46
  ]).then(async () => {
47
47
  var _a;
48
- let ArrowUpNarrowWide, BrickWall, BugPlay, ChartSpline, Cookie, FunnelX, Keyboard, LayoutTemplate, MessageCircle, Package, PanelRightClose, PanelRightOpen, PanelRight, PinOff, Rows2, Sparkles, SquareArrowOutUpRight, SquareStack, Terminal, TextAlignJustify, require_use_sync_external_store_shim_production, require_shim, import_react, import_jsx_runtime, CONTEXT_MENU_NAME, createContextMenuContext, createContextMenuScope, useMenuScope, ContextMenuProvider, useContextMenuContext, ContextMenu$1;
48
+ let ArrowUpNarrowWide, BrickWall, BugPlay, ChartSpline, Columns3, Cookie, FunnelX, Keyboard, LayoutTemplate, MessageCircle, Package, PanelRightClose, PanelRightOpen, PanelRight, PinOff, Rows2, Sparkles, SquareArrowOutUpRight, SquareStack, Terminal, TextAlignJustify, require_use_sync_external_store_shim_production, require_shim, import_react, import_jsx_runtime, CONTEXT_MENU_NAME, createContextMenuContext, createContextMenuScope, useMenuScope, ContextMenuProvider, useContextMenuContext, ContextMenu$1;
49
49
  ArrowDownWideNarrow = createLucideIcon("arrow-down-wide-narrow", [
50
50
  [
51
51
  "path",
@@ -352,6 +352,33 @@ let __tla = Promise.all([
352
352
  }
353
353
  ]
354
354
  ]);
355
+ Columns3 = createLucideIcon("columns-3", [
356
+ [
357
+ "rect",
358
+ {
359
+ width: "18",
360
+ height: "18",
361
+ x: "3",
362
+ y: "3",
363
+ rx: "2",
364
+ key: "afitv7"
365
+ }
366
+ ],
367
+ [
368
+ "path",
369
+ {
370
+ d: "M9 3v18",
371
+ key: "fh3hqa"
372
+ }
373
+ ],
374
+ [
375
+ "path",
376
+ {
377
+ d: "M15 3v18",
378
+ key: "14nvp0"
379
+ }
380
+ ]
381
+ ]);
355
382
  Cookie = createLucideIcon("cookie", [
356
383
  [
357
384
  "path",
@@ -1993,21 +2020,21 @@ Defaulting to \`null\`.`;
1993
2020
  function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
1994
2021
  let { block: i = "nearest", inline: a = "nearest" } = n;
1995
2022
  if (e === t) return;
1996
- 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, Tq = c.top - E, Eq = c.bottom + O, Dq = c.left - A, Oq = c.right + M, kq = e === _ ? 0 : Q + $, Aq = e === _ ? 0 : q + J, jq = e.offsetWidth - e.clientWidth - kq, Mq = e.offsetHeight - e.clientHeight - Aq, Nq = v + q + I, Pq = y - J - z - Mq, Fq = S + Q + U, Iq = w - $ - K;
1997
- h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? Fq += jq : Iq -= jq;
1998
- let Lq = Tq < Nq || Eq > Pq, Rq = Dq < Fq || Oq > Iq;
1999
- if (Lq && i === "start") o += Tq - Nq;
2000
- else if (Lq && i === "center") o += (Tq + Eq) / 2 - (Nq + Pq) / 2;
2001
- else if (Lq && i === "end") o += Eq - Pq;
2002
- else if (Lq && i === "nearest") {
2003
- let e2 = Tq - Nq, t2 = Eq - Pq;
2023
+ 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, Iq = c.top - E, Lq = c.bottom + O, Rq = c.left - A, zq = c.right + M, Bq = e === _ ? 0 : Q + $, Vq = e === _ ? 0 : q + J, Hq = e.offsetWidth - e.clientWidth - Bq, Uq = e.offsetHeight - e.clientHeight - Vq, Wq = v + q + I, Gq = y - J - z - Uq, Kq = S + Q + U, qq = w - $ - K;
2024
+ h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? Kq += Hq : qq -= Hq;
2025
+ let Jq = Iq < Wq || Lq > Gq, Yq = Rq < Kq || zq > qq;
2026
+ if (Jq && i === "start") o += Iq - Wq;
2027
+ else if (Jq && i === "center") o += (Iq + Lq) / 2 - (Wq + Gq) / 2;
2028
+ else if (Jq && i === "end") o += Lq - Gq;
2029
+ else if (Jq && i === "nearest") {
2030
+ let e2 = Iq - Wq, t2 = Lq - Gq;
2004
2031
  o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
2005
2032
  }
2006
- if (Rq && a === "start") s += Dq - Fq;
2007
- else if (Rq && a === "center") s += (Dq + Oq) / 2 - (Fq + Iq) / 2;
2008
- else if (Rq && a === "end") s += Oq - Iq;
2009
- else if (Rq && a === "nearest") {
2010
- let e2 = Dq - Fq, t2 = Oq - Iq;
2033
+ if (Yq && a === "start") s += Rq - Kq;
2034
+ else if (Yq && a === "center") s += (Rq + zq) / 2 - (Kq + qq) / 2;
2035
+ else if (Yq && a === "end") s += zq - qq;
2036
+ else if (Yq && a === "nearest") {
2037
+ let e2 = Rq - Kq, t2 = zq - qq;
2011
2038
  s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
2012
2039
  }
2013
2040
  e.scrollTo({
@@ -5117,23 +5144,23 @@ Defaulting to \`null\`.`;
5117
5144
  }
5118
5145
  let $ = "bottom";
5119
5146
  A.axis === "top" ? A.placement === "top" ? $ = "top" : A.placement === "bottom" && ($ = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? $ = "bottom" : A.crossPlacement === "bottom" && ($ = "top"));
5120
- let Tq = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5121
- q[I] += Tq;
5122
- let Eq = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5123
- y && y < Eq && (Eq = y), n.height = Math.min(n.height, Eq), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), Tq = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += Tq;
5124
- let Dq = {}, Oq = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], kq = Oq + 0.5 * t[z], Aq = S / 2 + w, jq = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), Mq = n[z] - jq - S / 2 - w;
5125
- Dq[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(kq, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), Aq, Mq), { placement: U, crossPlacement: K } = A, S ? Oq = Dq[I] : K === "right" ? Oq += t[z] : K === "center" && (Oq += t[z] / 2);
5126
- let Nq = U === "left" || U === "top" ? n[M] : 0, Pq = {
5127
- x: U === "top" || U === "bottom" ? Oq : Nq,
5128
- y: U === "left" || U === "right" ? Oq : Nq
5147
+ let Iq = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5148
+ q[I] += Iq;
5149
+ let Lq = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5150
+ y && y < Lq && (Lq = y), n.height = Math.min(n.height, Lq), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), Iq = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += Iq;
5151
+ let Rq = {}, zq = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], Bq = zq + 0.5 * t[z], Vq = S / 2 + w, Hq = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), Uq = n[z] - Hq - S / 2 - w;
5152
+ Rq[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(Bq, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), Vq, Uq), { placement: U, crossPlacement: K } = A, S ? zq = Rq[I] : K === "right" ? zq += t[z] : K === "center" && (zq += t[z] / 2);
5153
+ let Wq = U === "left" || U === "top" ? n[M] : 0, Gq = {
5154
+ x: U === "top" || U === "bottom" ? zq : Wq,
5155
+ y: U === "left" || U === "right" ? zq : Wq
5129
5156
  };
5130
5157
  return {
5131
5158
  position: q,
5132
- maxHeight: Eq,
5133
- arrowOffsetLeft: Dq.left,
5134
- arrowOffsetTop: Dq.top,
5159
+ maxHeight: Lq,
5160
+ arrowOffsetLeft: Rq.left,
5161
+ arrowOffsetTop: Rq.top,
5135
5162
  placement: U,
5136
- triggerAnchorPoint: Pq
5163
+ triggerAnchorPoint: Gq
5137
5164
  };
5138
5165
  }
5139
5166
  function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
@@ -6988,7 +7015,7 @@ Defaulting to \`null\`.`;
6988
7015
  n,
6989
7016
  h
6990
7017
  ]);
6991
- let Tq = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
7018
+ let Iq = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
6992
7019
  role: "textbox",
6993
7020
  "aria-valuemax": null,
6994
7021
  "aria-valuemin": null,
@@ -6998,8 +7025,8 @@ Defaulting to \`null\`.`;
6998
7025
  e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
6999
7026
  t.segments
7000
7027
  ]) && !t.isInvalid && (f = void 0);
7001
- let Eq = $bdb11010cef70236$export$f680877a34711e37(), Dq = !t.isDisabled && !t.isReadOnly && e.isEditable, Oq = e.type === "literal" ? "" : s.of(e.type), kq = $313b98861ee5dd6c$export$d6875122194c7b44({
7002
- "aria-label": `${Oq}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
7028
+ let Lq = $bdb11010cef70236$export$f680877a34711e37(), Rq = !t.isDisabled && !t.isReadOnly && e.isEditable, zq = e.type === "literal" ? "" : s.of(e.type), Bq = $313b98861ee5dd6c$export$d6875122194c7b44({
7029
+ "aria-label": `${zq}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
7003
7030
  "aria-labelledby": d
7004
7031
  });
7005
7032
  if (e.type === "literal") return {
@@ -7007,32 +7034,32 @@ Defaulting to \`null\`.`;
7007
7034
  "aria-hidden": true
7008
7035
  }
7009
7036
  };
7010
- let Aq = {
7037
+ let Vq = {
7011
7038
  caretColor: "transparent"
7012
7039
  };
7013
7040
  if (o === "rtl") {
7014
- Aq.unicodeBidi = "embed";
7041
+ Vq.unicodeBidi = "embed";
7015
7042
  let t2 = v[e.type];
7016
- (t2 === "numeric" || t2 === "2-digit") && (Aq.direction = "ltr");
7043
+ (t2 === "numeric" || t2 === "2-digit") && (Vq.direction = "ltr");
7017
7044
  }
7018
7045
  return {
7019
- segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, kq, {
7020
- id: Eq,
7021
- ...Tq,
7046
+ segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, Bq, {
7047
+ id: Lq,
7048
+ ...Iq,
7022
7049
  "aria-invalid": t.isInvalid ? "true" : void 0,
7023
7050
  "aria-describedby": f,
7024
7051
  "aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
7025
7052
  "data-placeholder": e.isPlaceholder || void 0,
7026
- contentEditable: Dq,
7027
- suppressContentEditableWarning: Dq,
7028
- spellCheck: Dq ? "false" : void 0,
7029
- autoCorrect: Dq ? "off" : void 0,
7030
- enterKeyHint: Dq ? "next" : void 0,
7031
- inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !Dq ? void 0 : "numeric",
7053
+ contentEditable: Rq,
7054
+ suppressContentEditableWarning: Rq,
7055
+ spellCheck: Rq ? "false" : void 0,
7056
+ autoCorrect: Rq ? "off" : void 0,
7057
+ enterKeyHint: Rq ? "next" : void 0,
7058
+ inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !Rq ? void 0 : "numeric",
7032
7059
  tabIndex: t.isDisabled ? void 0 : 0,
7033
7060
  onKeyDown: A,
7034
7061
  onFocus: Q,
7035
- style: Aq,
7062
+ style: Vq,
7036
7063
  onPointerDown(e2) {
7037
7064
  e2.stopPropagation();
7038
7065
  },
@@ -10275,12 +10302,12 @@ Defaulting to \`null\`.`;
10275
10302
  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);
10276
10303
  }
10277
10304
  }
10278
- let Tq = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10305
+ let Iq = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10279
10306
  w,
10280
10307
  f,
10281
10308
  s,
10282
10309
  c
10283
- ]), Eq = e.isInvalid || e.validationState === "invalid" || Tq, Dq = Eq ? "invalid" : null, Oq = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10310
+ ]), Lq = e.isInvalid || e.validationState === "invalid" || Iq, Rq = Lq ? "invalid" : null, zq = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10284
10311
  h,
10285
10312
  o
10286
10313
  ]);
@@ -10297,8 +10324,8 @@ Defaulting to \`null\`.`;
10297
10324
  maxValue: c,
10298
10325
  focusedDate: O,
10299
10326
  timeZone: E,
10300
- validationState: Dq,
10301
- isValueInvalid: Eq,
10327
+ validationState: Rq,
10328
+ isValueInvalid: Lq,
10302
10329
  setFocusedDate(e2) {
10303
10330
  Q(e2);
10304
10331
  },
@@ -10323,12 +10350,12 @@ Defaulting to \`null\`.`;
10323
10350
  }));
10324
10351
  },
10325
10352
  focusNextPage() {
10326
- let e2 = M.add(Oq);
10327
- A($f62d864046160412$export$4f5203c0d889109e(O.add(Oq), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, Oq, i, s, c), Oq, i));
10353
+ let e2 = M.add(zq);
10354
+ A($f62d864046160412$export$4f5203c0d889109e(O.add(zq), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, zq, i, s, c), zq, i));
10328
10355
  },
10329
10356
  focusPreviousPage() {
10330
- let e2 = M.subtract(Oq);
10331
- A($f62d864046160412$export$4f5203c0d889109e(O.subtract(Oq), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, Oq, i, s, c), Oq, i));
10357
+ let e2 = M.subtract(zq);
10358
+ A($f62d864046160412$export$4f5203c0d889109e(O.subtract(zq), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, zq, i, s, c), zq, i));
10332
10359
  },
10333
10360
  focusSectionStart() {
10334
10361
  o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
@@ -10465,13 +10492,13 @@ Defaulting to \`null\`.`;
10465
10492
  end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
10466
10493
  }), q(null);
10467
10494
  }
10468
- }, [$, Tq] = (0, import_react.useState)(false), { isDateUnavailable: Eq } = e, Dq = (0, import_react.useMemo)(() => !h || v ? false : Eq && (Eq(h.start) || Eq(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10469
- Eq,
10495
+ }, [$, Iq] = (0, import_react.useState)(false), { isDateUnavailable: Lq } = e, Rq = (0, import_react.useMemo)(() => !h || v ? false : Lq && (Lq(h.start) || Lq(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10496
+ Lq,
10470
10497
  h,
10471
10498
  v,
10472
10499
  c,
10473
10500
  d
10474
- ]), Oq = e.isInvalid || e.validationState === "invalid" || Dq, kq = Oq ? "invalid" : null;
10501
+ ]), zq = e.isInvalid || e.validationState === "invalid" || Rq, Bq = zq ? "invalid" : null;
10475
10502
  return {
10476
10503
  ...I,
10477
10504
  value: h,
@@ -10479,8 +10506,8 @@ Defaulting to \`null\`.`;
10479
10506
  anchorDate: v,
10480
10507
  setAnchorDate: q,
10481
10508
  highlightedRange: J,
10482
- validationState: kq,
10483
- isValueInvalid: Oq,
10509
+ validationState: Bq,
10510
+ isValueInvalid: zq,
10484
10511
  selectFocusedDate() {
10485
10512
  Q(I.focusedDate);
10486
10513
  },
@@ -10496,7 +10523,7 @@ Defaulting to \`null\`.`;
10496
10523
  return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
10497
10524
  },
10498
10525
  isDragging: $,
10499
- setDragging: Tq
10526
+ setDragging: Iq
10500
10527
  };
10501
10528
  }
10502
10529
  function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
@@ -11683,7 +11710,7 @@ Defaulting to \`null\`.`;
11683
11710
  _,
11684
11711
  S,
11685
11712
  v
11686
- ]), Tq = (0, import_react.useMemo)(() => {
11713
+ ]), Iq = (0, import_react.useMemo)(() => {
11687
11714
  let t2 = w === "h11" || w === "h12", n2 = [
11688
11715
  "era",
11689
11716
  "year",
@@ -11701,15 +11728,15 @@ Defaulting to \`null\`.`;
11701
11728
  e.maxGranularity,
11702
11729
  _,
11703
11730
  w
11704
- ]), [Eq, Dq] = (0, import_react.useState)(M), [Oq, kq] = (0, import_react.useState)(S), [Aq, jq] = (0, import_react.useState)(w);
11705
- (M !== Eq || w !== Aq || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, Oq)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), Dq(M), kq(S), jq(w), z(I));
11706
- let Mq = (t2) => {
11707
- if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(Tq)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
11731
+ ]), [Lq, Rq] = (0, import_react.useState)(M), [zq, Bq] = (0, import_react.useState)(S), [Vq, Hq] = (0, import_react.useState)(w);
11732
+ (M !== Lq || w !== Vq || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, zq)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), Rq(M), Bq(S), Hq(w), z(I));
11733
+ let Uq = (t2) => {
11734
+ if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(Iq)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
11708
11735
  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);
11709
11736
  else {
11710
- if (t2.isComplete(Tq)) {
11737
+ if (t2.isComplete(Iq)) {
11711
11738
  let e2 = t2.toValue(M ?? $);
11712
- if (t2.validate(e2, Tq)) {
11739
+ if (t2.validate(e2, Iq)) {
11713
11740
  let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11714
11741
  if (!E || t3.compare(E) !== 0) {
11715
11742
  z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
@@ -11719,83 +11746,83 @@ Defaulting to \`null\`.`;
11719
11746
  }
11720
11747
  z(t2);
11721
11748
  }
11722
- }, Nq = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11749
+ }, Wq = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11723
11750
  I,
11724
11751
  y,
11725
11752
  M,
11726
11753
  $
11727
- ]), Pq = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(Nq, I, J, Q, S, t, _), [
11728
- Nq,
11754
+ ]), Gq = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(Wq, I, J, Q, S, t, _), [
11755
+ Wq,
11729
11756
  J,
11730
11757
  Q,
11731
11758
  I,
11732
11759
  S,
11733
11760
  t,
11734
11761
  _
11735
- ]), Fq = (e2, t2) => {
11736
- Mq(I.cycle(e2, t2, $, Tq));
11737
- }, Iq = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11762
+ ]), Kq = (e2, t2) => {
11763
+ Uq(I.cycle(e2, t2, $, Iq));
11764
+ }, qq = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11738
11765
  E,
11739
11766
  c,
11740
11767
  d,
11741
11768
  f,
11742
11769
  K
11743
- ]), Lq = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11770
+ ]), Jq = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11744
11771
  ...e,
11745
11772
  value: E,
11746
- builtinValidation: Iq
11747
- }), Rq = Lq.displayValidation.isInvalid, zq = e.validationState || (Rq ? "invalid" : null);
11773
+ builtinValidation: qq
11774
+ }), Yq = Jq.displayValidation.isInvalid, Xq = e.validationState || (Yq ? "invalid" : null);
11748
11775
  return {
11749
- ...Lq,
11776
+ ...Jq,
11750
11777
  value: M,
11751
11778
  defaultValue: e.defaultValue ?? A,
11752
- dateValue: Nq,
11779
+ dateValue: Wq,
11753
11780
  calendar: S,
11754
- setValue: Mq,
11755
- segments: Pq,
11781
+ setValue: Uq,
11782
+ segments: Gq,
11756
11783
  dateFormatter: J,
11757
- validationState: zq,
11758
- isInvalid: Rq,
11784
+ validationState: Xq,
11785
+ isInvalid: Yq,
11759
11786
  granularity: _,
11760
11787
  maxGranularity: e.maxGranularity ?? "year",
11761
11788
  isDisabled: a,
11762
11789
  isReadOnly: o,
11763
11790
  isRequired: s,
11764
11791
  increment(e2) {
11765
- Fq(e2, 1);
11792
+ Kq(e2, 1);
11766
11793
  },
11767
11794
  decrement(e2) {
11768
- Fq(e2, -1);
11795
+ Kq(e2, -1);
11769
11796
  },
11770
11797
  incrementPage(e2) {
11771
- Fq(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11798
+ Kq(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11772
11799
  },
11773
11800
  decrementPage(e2) {
11774
- Fq(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11801
+ Kq(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11775
11802
  },
11776
11803
  incrementToMax(e2) {
11777
11804
  let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
11778
- Mq(I.set(e2, t2, $));
11805
+ Uq(I.set(e2, t2, $));
11779
11806
  },
11780
11807
  decrementToMin(e2) {
11781
11808
  let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
11782
- Mq(I.set(e2, t2, $));
11809
+ Uq(I.set(e2, t2, $));
11783
11810
  },
11784
11811
  setSegment(e2, t2) {
11785
- Mq(I.set(e2, t2, $));
11812
+ Uq(I.set(e2, t2, $));
11786
11813
  },
11787
11814
  confirmPlaceholder() {
11788
- if (!(e.isDisabled || e.isReadOnly) && I.isComplete(Tq)) {
11815
+ if (!(e.isDisabled || e.isReadOnly) && I.isComplete(Iq)) {
11789
11816
  let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11790
11817
  (!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
11791
11818
  }
11792
11819
  },
11793
11820
  clearSegment(e2) {
11794
11821
  let t2 = I;
11795
- e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), Mq(t2);
11822
+ e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), Uq(t2);
11796
11823
  },
11797
11824
  formatValue(e2) {
11798
- return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(Nq) : "";
11825
+ return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(Wq) : "";
11799
11826
  },
11800
11827
  getDateFormatter(e2, t2) {
11801
11828
  return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
@@ -11915,7 +11942,7 @@ Defaulting to \`null\`.`;
11915
11942
  e.endName
11916
11943
  ]),
11917
11944
  builtinValidation: J
11918
- }), $ = Q.displayValidation.isInvalid, Tq = e.validationState || ($ ? "invalid" : null);
11945
+ }), $ = Q.displayValidation.isInvalid, Iq = e.validationState || ($ ? "invalid" : null);
11919
11946
  return {
11920
11947
  ...Q,
11921
11948
  value: c,
@@ -11961,7 +11988,7 @@ Defaulting to \`null\`.`;
11961
11988
  end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
11962
11989
  }), t.setOpen(n2);
11963
11990
  },
11964
- validationState: Tq,
11991
+ validationState: Iq,
11965
11992
  isInvalid: $,
11966
11993
  formatValue(t2, n2) {
11967
11994
  if (!c || !c.start || !c.end) return null;
@@ -13918,9 +13945,9 @@ Defaulting to \`null\`.`;
13918
13945
  t,
13919
13946
  i.name
13920
13947
  ]), null;
13921
- }), import_compiler_runtime$64 = require_compiler_runtime();
13948
+ }), import_compiler_runtime$65 = require_compiler_runtime();
13922
13949
  EmotionCacheProvider = (e) => {
13923
- let t = (0, import_compiler_runtime$64.c)(6), { container: n, children: i } = e, a;
13950
+ let t = (0, import_compiler_runtime$65.c)(6), { container: n, children: i } = e, a;
13924
13951
  bb0: {
13925
13952
  if (!n) {
13926
13953
  let e3;
@@ -15833,33 +15860,33 @@ try {
15833
15860
  }, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
15834
15861
  function y(e2) {
15835
15862
  var _a2, _b, _c, _d;
15836
- 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, Tq = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
15863
+ 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, Iq = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
15837
15864
  h2
15838
- ]), Eq = Tq[t], Dq = Eq || Tq, { colorSchemes: Oq = _, components: kq = v, cssVarPrefix: Aq } = Dq, jq = Object.keys(Oq).filter((e3) => !!Oq[e3]).join(","), Mq = import_react.useMemo(() => jq.split(","), [
15839
- jq
15840
- ]), Nq = typeof s == "string" ? s : s.light, Pq = typeof s == "string" ? s : s.dark, { mode: Fq, setMode: Iq, systemMode: Lq, lightColorScheme: Rq, darkColorScheme: zq, colorScheme: Bq, setColorScheme: Vq } = useCurrentColorScheme({
15841
- supportedColorSchemes: Mq,
15842
- defaultLightColorScheme: Nq,
15843
- defaultDarkColorScheme: Pq,
15865
+ ]), Lq = Iq[t], Rq = Lq || Iq, { colorSchemes: zq = _, components: Bq = v, cssVarPrefix: Vq } = Rq, Hq = Object.keys(zq).filter((e3) => !!zq[e3]).join(","), Uq = import_react.useMemo(() => Hq.split(","), [
15866
+ Hq
15867
+ ]), Wq = typeof s == "string" ? s : s.light, Gq = typeof s == "string" ? s : s.dark, { mode: Kq, setMode: qq, systemMode: Jq, lightColorScheme: Yq, darkColorScheme: Xq, colorScheme: Zq, setColorScheme: Qq } = useCurrentColorScheme({
15868
+ supportedColorSchemes: Uq,
15869
+ defaultLightColorScheme: Wq,
15870
+ defaultDarkColorScheme: Gq,
15844
15871
  modeStorageKey: y2,
15845
15872
  colorSchemeStorageKey: S2,
15846
- defaultMode: Oq[Nq] && Oq[Pq] ? U : ((_b = (_a2 = Oq[Dq.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = Dq.palette) == null ? void 0 : _c.mode),
15873
+ defaultMode: zq[Wq] && zq[Gq] ? U : ((_b = (_a2 = zq[Rq.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = Rq.palette) == null ? void 0 : _c.mode),
15847
15874
  storageManager: E,
15848
15875
  storageWindow: O,
15849
15876
  noSsr: K
15850
- }), Hq = Fq, Uq = Bq;
15851
- $ && (Hq = Q.mode, Uq = Q.colorScheme);
15852
- let Wq = import_react.useMemo(() => {
15877
+ }), $q = Kq, eJ = Zq;
15878
+ $ && ($q = Q.mode, eJ = Q.colorScheme);
15879
+ let tJ = import_react.useMemo(() => {
15853
15880
  var _a3;
15854
- let e3 = Uq || Dq.defaultColorScheme, t2 = ((_a3 = Dq.generateThemeVars) == null ? void 0 : _a3.call(Dq)) || Dq.vars, n2 = {
15855
- ...Dq,
15856
- components: kq,
15857
- colorSchemes: Oq,
15858
- cssVarPrefix: Aq,
15881
+ let e3 = eJ || Rq.defaultColorScheme, t2 = ((_a3 = Rq.generateThemeVars) == null ? void 0 : _a3.call(Rq)) || Rq.vars, n2 = {
15882
+ ...Rq,
15883
+ components: Bq,
15884
+ colorSchemes: zq,
15885
+ cssVarPrefix: Vq,
15859
15886
  vars: t2
15860
15887
  };
15861
15888
  if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
15862
- let t3 = Oq[e3];
15889
+ let t3 = zq[e3];
15863
15890
  t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
15864
15891
  t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
15865
15892
  ...n2[e4],
@@ -15869,31 +15896,31 @@ try {
15869
15896
  }
15870
15897
  return c ? c(n2) : n2;
15871
15898
  }, [
15872
- Dq,
15873
- Uq,
15874
- kq,
15875
- Oq,
15876
- Aq
15877
- ]), Gq = Dq.colorSchemeSelector;
15899
+ Rq,
15900
+ eJ,
15901
+ Bq,
15902
+ zq,
15903
+ Vq
15904
+ ]), nJ = Rq.colorSchemeSelector;
15878
15905
  useEnhancedEffect_default(() => {
15879
- if (Uq && M && Gq && Gq !== "media") {
15880
- let e3 = Gq, t2 = Gq;
15881
- 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(...Mq.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", Uq));
15906
+ if (eJ && M && nJ && nJ !== "media") {
15907
+ let e3 = nJ, t2 = nJ;
15908
+ 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(...Uq.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", eJ));
15882
15909
  else {
15883
- let e4 = t2.replace("%s", Uq).match(/\[([^\]]+)\]/);
15910
+ let e4 = t2.replace("%s", eJ).match(/\[([^\]]+)\]/);
15884
15911
  if (e4) {
15885
15912
  let [t3, n2] = e4[1].split("=");
15886
- n2 || Mq.forEach((e5) => {
15887
- M.removeAttribute(t3.replace(Uq, e5));
15913
+ n2 || Uq.forEach((e5) => {
15914
+ M.removeAttribute(t3.replace(eJ, e5));
15888
15915
  }), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
15889
- } else M.setAttribute(t2, Uq);
15916
+ } else M.setAttribute(t2, eJ);
15890
15917
  }
15891
15918
  }
15892
15919
  }, [
15893
- Uq,
15894
- Gq,
15920
+ eJ,
15921
+ nJ,
15895
15922
  M,
15896
- Mq
15923
+ Uq
15897
15924
  ]), import_react.useEffect(() => {
15898
15925
  let e3;
15899
15926
  if (w2 && q.current && A) {
@@ -15906,48 +15933,48 @@ try {
15906
15933
  clearTimeout(e3);
15907
15934
  };
15908
15935
  }, [
15909
- Uq,
15936
+ eJ,
15910
15937
  w2,
15911
15938
  A
15912
15939
  ]), import_react.useEffect(() => (q.current = true, () => {
15913
15940
  q.current = false;
15914
15941
  }), []);
15915
- let Kq = import_react.useMemo(() => ({
15916
- allColorSchemes: Mq,
15917
- colorScheme: Uq,
15918
- darkColorScheme: zq,
15919
- lightColorScheme: Rq,
15920
- mode: Hq,
15921
- setColorScheme: Vq,
15922
- setMode: Iq,
15923
- systemMode: Lq
15942
+ let rJ = import_react.useMemo(() => ({
15943
+ allColorSchemes: Uq,
15944
+ colorScheme: eJ,
15945
+ darkColorScheme: Xq,
15946
+ lightColorScheme: Yq,
15947
+ mode: $q,
15948
+ setColorScheme: Qq,
15949
+ setMode: qq,
15950
+ systemMode: Jq
15924
15951
  }), [
15925
- Mq,
15926
15952
  Uq,
15927
- zq,
15928
- Rq,
15929
- Hq,
15930
- Vq,
15931
- Iq,
15932
- Lq,
15933
- Wq.colorSchemeSelector
15934
- ]), qq = true;
15935
- (z || Dq.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === Aq) && (qq = false);
15936
- let Jq = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
15953
+ eJ,
15954
+ Xq,
15955
+ Yq,
15956
+ $q,
15957
+ Qq,
15958
+ qq,
15959
+ Jq,
15960
+ tJ.colorSchemeSelector
15961
+ ]), iJ = true;
15962
+ (z || Rq.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === Vq) && (iJ = false);
15963
+ let aJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
15937
15964
  children: [
15938
15965
  (0, import_jsx_runtime.jsx)(ThemeProvider_default, {
15939
- themeId: Eq ? t : void 0,
15940
- theme: Wq,
15966
+ themeId: Lq ? t : void 0,
15967
+ theme: tJ,
15941
15968
  children: d2
15942
15969
  }),
15943
- qq && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
15944
- styles: ((_d = Wq.generateStyleSheets) == null ? void 0 : _d.call(Wq)) || []
15970
+ iJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
15971
+ styles: ((_d = tJ.generateStyleSheets) == null ? void 0 : _d.call(tJ)) || []
15945
15972
  })
15946
15973
  ]
15947
15974
  });
15948
- return $ ? Jq : (0, import_jsx_runtime.jsx)(f.Provider, {
15949
- value: Kq,
15950
- children: Jq
15975
+ return $ ? aJ : (0, import_jsx_runtime.jsx)(f.Provider, {
15976
+ value: rJ,
15977
+ children: aJ
15951
15978
  });
15952
15979
  }
15953
15980
  let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
@@ -17447,10 +17474,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17447
17474
  let n = useDefaultProps({
17448
17475
  props: e,
17449
17476
  name: "MuiInputBase"
17450
- }), { "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: Tq, onKeyDown: Eq, onKeyUp: Dq, placeholder: Oq, readOnly: kq, renderSuffix: Aq, rows: jq, size: Mq, slotProps: Nq = {}, slots: Pq = {}, startAdornment: Fq, type: Iq = "text", value: Lq, ...Rq } = n, zq = A.value == null ? Lq : A.value, { current: Bq } = import_react.useRef(zq != null), Vq = import_react.useRef(), Hq = import_react.useCallback((e2) => {
17451
- }, []), Uq = useForkRef_default(Vq, M, A.ref, Hq), [Wq, Gq] = import_react.useState(false), Kq = useFormControl(), qq = formControlState({
17477
+ }), { "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: Iq, onKeyDown: Lq, onKeyUp: Rq, placeholder: zq, readOnly: Bq, renderSuffix: Vq, rows: Hq, size: Uq, slotProps: Wq = {}, slots: Gq = {}, startAdornment: Kq, type: qq = "text", value: Jq, ...Yq } = n, Xq = A.value == null ? Jq : A.value, { current: Zq } = import_react.useRef(Xq != null), Qq = import_react.useRef(), $q = import_react.useCallback((e2) => {
17478
+ }, []), eJ = useForkRef_default(Qq, M, A.ref, $q), [tJ, nJ] = import_react.useState(false), rJ = useFormControl(), iJ = formControlState({
17452
17479
  props: n,
17453
- muiFormControl: Kq,
17480
+ muiFormControl: rJ,
17454
17481
  states: [
17455
17482
  "color",
17456
17483
  "disabled",
@@ -17461,145 +17488,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17461
17488
  "filled"
17462
17489
  ]
17463
17490
  });
17464
- qq.focused = Kq ? Kq.focused : Wq, import_react.useEffect(() => {
17465
- !Kq && _ && Wq && (Gq(false), J && J());
17491
+ iJ.focused = rJ ? rJ.focused : tJ, import_react.useEffect(() => {
17492
+ !rJ && _ && tJ && (nJ(false), J && J());
17466
17493
  }, [
17467
- Kq,
17494
+ rJ,
17468
17495
  _,
17469
- Wq,
17496
+ tJ,
17470
17497
  J
17471
17498
  ]);
17472
- let Jq = Kq && Kq.onFilled, Yq = Kq && Kq.onEmpty, Xq = import_react.useCallback((e2) => {
17473
- isFilled(e2) ? Jq && Jq() : Yq && Yq();
17499
+ let aJ = rJ && rJ.onFilled, oJ = rJ && rJ.onEmpty, sJ = import_react.useCallback((e2) => {
17500
+ isFilled(e2) ? aJ && aJ() : oJ && oJ();
17474
17501
  }, [
17475
- Jq,
17476
- Yq
17502
+ aJ,
17503
+ oJ
17477
17504
  ]);
17478
17505
  useEnhancedEffect_default$1(() => {
17479
- Bq && Xq({
17480
- value: zq
17506
+ Zq && sJ({
17507
+ value: Xq
17481
17508
  });
17482
17509
  }, [
17483
- zq,
17484
17510
  Xq,
17485
- Bq
17511
+ sJ,
17512
+ Zq
17486
17513
  ]);
17487
- let Zq = (e2) => {
17488
- Tq && Tq(e2), A.onFocus && A.onFocus(e2), Kq && Kq.onFocus ? Kq.onFocus(e2) : Gq(true);
17489
- }, Qq = (e2) => {
17490
- J && J(e2), A.onBlur && A.onBlur(e2), Kq && Kq.onBlur ? Kq.onBlur(e2) : Gq(false);
17491
- }, $q = (e2, ...t2) => {
17492
- if (!Bq) {
17493
- let t3 = e2.target || Vq.current;
17514
+ let cJ = (e2) => {
17515
+ Iq && Iq(e2), A.onFocus && A.onFocus(e2), rJ && rJ.onFocus ? rJ.onFocus(e2) : nJ(true);
17516
+ }, lJ = (e2) => {
17517
+ J && J(e2), A.onBlur && A.onBlur(e2), rJ && rJ.onBlur ? rJ.onBlur(e2) : nJ(false);
17518
+ }, uJ = (e2, ...t2) => {
17519
+ if (!Zq) {
17520
+ let t3 = e2.target || Qq.current;
17494
17521
  if (t3 == null) throw Error(formatMuiErrorMessage(1));
17495
- Xq({
17522
+ sJ({
17496
17523
  value: t3.value
17497
17524
  });
17498
17525
  }
17499
17526
  A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
17500
17527
  };
17501
17528
  import_react.useEffect(() => {
17502
- Xq(Vq.current);
17529
+ sJ(Qq.current);
17503
17530
  }, []);
17504
- let eJ = (e2) => {
17505
- Vq.current && e2.currentTarget === e2.target && Vq.current.focus(), $ && $(e2);
17506
- }, tJ = O, nJ = A;
17507
- K && tJ === "input" && (nJ = jq ? {
17531
+ let dJ = (e2) => {
17532
+ Qq.current && e2.currentTarget === e2.target && Qq.current.focus(), $ && $(e2);
17533
+ }, fJ = O, pJ = A;
17534
+ K && fJ === "input" && (pJ = Hq ? {
17508
17535
  type: void 0,
17509
- minRows: jq,
17510
- maxRows: jq,
17511
- ...nJ
17536
+ minRows: Hq,
17537
+ maxRows: Hq,
17538
+ ...pJ
17512
17539
  } : {
17513
17540
  type: void 0,
17514
17541
  maxRows: z,
17515
17542
  minRows: U,
17516
- ...nJ
17517
- }, tJ = TextareaAutosize_default);
17518
- let rJ = (e2) => {
17519
- Xq(e2.animationName === "mui-auto-fill-cancel" ? Vq.current : {
17543
+ ...pJ
17544
+ }, fJ = TextareaAutosize_default);
17545
+ let mJ = (e2) => {
17546
+ sJ(e2.animationName === "mui-auto-fill-cancel" ? Qq.current : {
17520
17547
  value: "x"
17521
17548
  });
17522
17549
  };
17523
17550
  import_react.useEffect(() => {
17524
- Kq && Kq.setAdornedStart(!!Fq);
17551
+ rJ && rJ.setAdornedStart(!!Kq);
17525
17552
  }, [
17526
- Kq,
17527
- Fq
17553
+ rJ,
17554
+ Kq
17528
17555
  ]);
17529
- let iJ = {
17556
+ let hJ = {
17530
17557
  ...n,
17531
- color: qq.color || "primary",
17532
- disabled: qq.disabled,
17558
+ color: iJ.color || "primary",
17559
+ disabled: iJ.disabled,
17533
17560
  endAdornment: y,
17534
- error: qq.error,
17535
- focused: qq.focused,
17536
- formControl: Kq,
17561
+ error: iJ.error,
17562
+ focused: iJ.focused,
17563
+ formControl: rJ,
17537
17564
  fullWidth: w,
17538
- hiddenLabel: qq.hiddenLabel,
17565
+ hiddenLabel: iJ.hiddenLabel,
17539
17566
  multiline: K,
17540
- size: qq.size,
17541
- startAdornment: Fq,
17542
- type: Iq
17543
- }, aJ = useUtilityClasses(iJ), oJ = Pq.root || d.Root || InputBaseRoot, sJ = Nq.root || f.root || {}, cJ = Pq.input || d.Input || InputBaseInput;
17544
- return nJ = {
17545
- ...nJ,
17546
- ...Nq.input ?? f.input
17567
+ size: iJ.size,
17568
+ startAdornment: Kq,
17569
+ type: qq
17570
+ }, gJ = useUtilityClasses(hJ), _J = Gq.root || d.Root || InputBaseRoot, vJ = Wq.root || f.root || {}, yJ = Gq.input || d.Input || InputBaseInput;
17571
+ return pJ = {
17572
+ ...pJ,
17573
+ ...Wq.input ?? f.input
17547
17574
  }, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
17548
17575
  children: [
17549
17576
  !v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
17550
- (0, import_jsx_runtime.jsxs)(oJ, {
17551
- ...sJ,
17577
+ (0, import_jsx_runtime.jsxs)(_J, {
17578
+ ...vJ,
17552
17579
  ref: t,
17553
- onClick: eJ,
17554
- ...Rq,
17555
- ...!isHostComponent_default(oJ) && {
17580
+ onClick: dJ,
17581
+ ...Yq,
17582
+ ...!isHostComponent_default(_J) && {
17556
17583
  ownerState: {
17557
- ...iJ,
17558
- ...sJ.ownerState
17584
+ ...hJ,
17585
+ ...vJ.ownerState
17559
17586
  }
17560
17587
  },
17561
- className: clsx_default(aJ.root, sJ.className, s, kq && "MuiInputBase-readOnly"),
17588
+ className: clsx_default(gJ.root, vJ.className, s, Bq && "MuiInputBase-readOnly"),
17562
17589
  children: [
17563
- Fq,
17590
+ Kq,
17564
17591
  (0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
17565
17592
  value: null,
17566
- children: (0, import_jsx_runtime.jsx)(cJ, {
17567
- "aria-invalid": qq.error,
17593
+ children: (0, import_jsx_runtime.jsx)(yJ, {
17594
+ "aria-invalid": iJ.error,
17568
17595
  "aria-describedby": i,
17569
17596
  autoComplete: a,
17570
17597
  autoFocus: o,
17571
17598
  defaultValue: h,
17572
- disabled: qq.disabled,
17599
+ disabled: iJ.disabled,
17573
17600
  id: E,
17574
- onAnimationStart: rJ,
17601
+ onAnimationStart: mJ,
17575
17602
  name: q,
17576
- placeholder: Oq,
17577
- readOnly: kq,
17578
- required: qq.required,
17579
- rows: jq,
17580
- value: zq,
17581
- onKeyDown: Eq,
17582
- onKeyUp: Dq,
17583
- type: Iq,
17584
- ...nJ,
17585
- ...!isHostComponent_default(cJ) && {
17586
- as: tJ,
17603
+ placeholder: zq,
17604
+ readOnly: Bq,
17605
+ required: iJ.required,
17606
+ rows: Hq,
17607
+ value: Xq,
17608
+ onKeyDown: Lq,
17609
+ onKeyUp: Rq,
17610
+ type: qq,
17611
+ ...pJ,
17612
+ ...!isHostComponent_default(yJ) && {
17613
+ as: fJ,
17587
17614
  ownerState: {
17588
- ...iJ,
17589
- ...nJ.ownerState
17615
+ ...hJ,
17616
+ ...pJ.ownerState
17590
17617
  }
17591
17618
  },
17592
- ref: Uq,
17593
- className: clsx_default(aJ.input, nJ.className, kq && "MuiInputBase-readOnly"),
17594
- onBlur: Qq,
17595
- onChange: $q,
17596
- onFocus: Zq
17619
+ ref: eJ,
17620
+ className: clsx_default(gJ.input, pJ.className, Bq && "MuiInputBase-readOnly"),
17621
+ onBlur: lJ,
17622
+ onChange: uJ,
17623
+ onFocus: cJ
17597
17624
  })
17598
17625
  }),
17599
17626
  y,
17600
- Aq ? Aq({
17601
- ...qq,
17602
- startAdornment: Fq
17627
+ Vq ? Vq({
17628
+ ...iJ,
17629
+ startAdornment: Kq
17603
17630
  }) : null
17604
17631
  ]
17605
17632
  })
@@ -18675,30 +18702,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18675
18702
  M,
18676
18703
  i,
18677
18704
  a
18678
- ]), 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), Tq = useTextColor(), Eq = useJsonViewerStore((e2) => e2.colorspace.base0C), Dq = useJsonViewerStore((e2) => e2.colorspace.base0A), Oq = useJsonViewerStore((e2) => e2.displayComma), kq = useJsonViewerStore((e2) => e2.quotesOnKeys), Aq = useJsonViewerStore((e2) => e2.rootName), jq = U === t, Mq = Number.isInteger(Number(A)), Nq = useJsonViewerStore((e2) => e2.enableAdd), Pq = useJsonViewerStore((e2) => e2.onAdd), Fq = (0, import_react.useMemo)(() => !Pq || a !== void 0 || Nq === false || v === false ? false : typeof Nq == "function" ? !!Nq(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18679
- Pq,
18705
+ ]), 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), Iq = useTextColor(), Lq = useJsonViewerStore((e2) => e2.colorspace.base0C), Rq = useJsonViewerStore((e2) => e2.colorspace.base0A), zq = useJsonViewerStore((e2) => e2.displayComma), Bq = useJsonViewerStore((e2) => e2.quotesOnKeys), Vq = useJsonViewerStore((e2) => e2.rootName), Hq = U === t, Uq = Number.isInteger(Number(A)), Wq = useJsonViewerStore((e2) => e2.enableAdd), Gq = useJsonViewerStore((e2) => e2.onAdd), Kq = (0, import_react.useMemo)(() => !Gq || a !== void 0 || Wq === false || v === false ? false : typeof Wq == "function" ? !!Wq(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18706
+ Gq,
18680
18707
  a,
18681
18708
  i,
18682
- Nq,
18709
+ Wq,
18683
18710
  v,
18684
18711
  t
18685
- ]), Iq = useJsonViewerStore((e2) => e2.enableDelete), Lq = useJsonViewerStore((e2) => e2.onDelete), Rq = (0, import_react.useMemo)(() => !Lq || a !== void 0 || jq || Iq === false || v === false ? false : typeof Iq == "function" ? !!Iq(i, t) : Iq, [
18686
- Lq,
18712
+ ]), qq = useJsonViewerStore((e2) => e2.enableDelete), Jq = useJsonViewerStore((e2) => e2.onDelete), Yq = (0, import_react.useMemo)(() => !Jq || a !== void 0 || Hq || qq === false || v === false ? false : typeof qq == "function" ? !!qq(i, t) : qq, [
18713
+ Jq,
18687
18714
  a,
18688
- jq,
18715
+ Hq,
18689
18716
  i,
18690
- Iq,
18717
+ qq,
18691
18718
  v,
18692
18719
  t
18693
- ]), zq = useJsonViewerStore((e2) => e2.enableClipboard), { copy: Bq, copied: Vq } = useClipboard(), Hq = useJsonViewerStore((e2) => e2.highlightUpdates), Uq = (0, import_react.useMemo)(() => !Hq || 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, [
18694
- Hq,
18720
+ ]), Xq = useJsonViewerStore((e2) => e2.enableClipboard), { copy: Zq, copied: Qq } = useClipboard(), $q = useJsonViewerStore((e2) => e2.highlightUpdates), eJ = (0, import_react.useMemo)(() => !$q || 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, [
18721
+ $q,
18695
18722
  n,
18696
18723
  t
18697
- ]), Wq = (0, import_react.useRef)();
18724
+ ]), tJ = (0, import_react.useRef)();
18698
18725
  (0, import_react.useEffect)(() => {
18699
- Wq.current && Uq && "animate" in Wq.current && Wq.current.animate([
18726
+ tJ.current && eJ && "animate" in tJ.current && tJ.current.animate([
18700
18727
  {
18701
- backgroundColor: Dq
18728
+ backgroundColor: Rq
18702
18729
  },
18703
18730
  {
18704
18731
  backgroundColor: ""
@@ -18708,22 +18735,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18708
18735
  easing: "ease-in"
18709
18736
  });
18710
18737
  }, [
18711
- Dq,
18712
- Uq,
18738
+ Rq,
18739
+ eJ,
18713
18740
  n,
18714
18741
  t
18715
18742
  ]);
18716
- let Gq = (0, import_react.useCallback)((e2) => {
18743
+ let nJ = (0, import_react.useCallback)((e2) => {
18717
18744
  e2.preventDefault(), h && E(h(t)), Q(true);
18718
18745
  }, [
18719
18746
  h,
18720
18747
  t
18721
- ]), Kq = (0, import_react.useCallback)(() => {
18748
+ ]), rJ = (0, import_react.useCallback)(() => {
18722
18749
  Q(false), E("");
18723
18750
  }, [
18724
18751
  Q,
18725
18752
  E
18726
- ]), qq = (0, import_react.useCallback)((e2) => {
18753
+ ]), iJ = (0, import_react.useCallback)((e2) => {
18727
18754
  if (Q(false), _) try {
18728
18755
  $(i, t, _(e2));
18729
18756
  } catch {
@@ -18734,14 +18761,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18734
18761
  $,
18735
18762
  i,
18736
18763
  t
18737
- ]), Jq = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18764
+ ]), aJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18738
18765
  children: [
18739
18766
  (0, import_jsx_runtime.jsx)(IconBox, {
18740
18767
  children: (0, import_jsx_runtime.jsx)(CloseIcon, {
18741
18768
  sx: {
18742
18769
  fontSize: ".8rem"
18743
18770
  },
18744
- onClick: Kq
18771
+ onClick: rJ
18745
18772
  })
18746
18773
  }),
18747
18774
  (0, import_jsx_runtime.jsx)(IconBox, {
@@ -18749,22 +18776,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18749
18776
  sx: {
18750
18777
  fontSize: ".8rem"
18751
18778
  },
18752
- onClick: () => qq(w)
18779
+ onClick: () => iJ(w)
18753
18780
  })
18754
18781
  })
18755
18782
  ]
18756
18783
  }) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18757
18784
  children: [
18758
- zq && (0, import_jsx_runtime.jsx)(IconBox, {
18785
+ Xq && (0, import_jsx_runtime.jsx)(IconBox, {
18759
18786
  onClick: (e2) => {
18760
18787
  e2.preventDefault();
18761
18788
  try {
18762
- Bq(i, t, copyString);
18789
+ Zq(i, t, copyString);
18763
18790
  } catch (e3) {
18764
18791
  console.error(e3);
18765
18792
  }
18766
18793
  },
18767
- children: Vq ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18794
+ children: Qq ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18768
18795
  sx: {
18769
18796
  fontSize: ".8rem"
18770
18797
  }
@@ -18775,16 +18802,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18775
18802
  })
18776
18803
  }),
18777
18804
  f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
18778
- onClick: Gq,
18805
+ onClick: nJ,
18779
18806
  children: (0, import_jsx_runtime.jsx)(EditIcon, {
18780
18807
  sx: {
18781
18808
  fontSize: ".8rem"
18782
18809
  }
18783
18810
  })
18784
18811
  }),
18785
- Fq && (0, import_jsx_runtime.jsx)(IconBox, {
18812
+ Kq && (0, import_jsx_runtime.jsx)(IconBox, {
18786
18813
  onClick: (e2) => {
18787
- e2.preventDefault(), Pq == null ? void 0 : Pq(i);
18814
+ e2.preventDefault(), Gq == null ? void 0 : Gq(i);
18788
18815
  },
18789
18816
  children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
18790
18817
  sx: {
@@ -18792,9 +18819,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18792
18819
  }
18793
18820
  })
18794
18821
  }),
18795
- Rq && (0, import_jsx_runtime.jsx)(IconBox, {
18822
+ Yq && (0, import_jsx_runtime.jsx)(IconBox, {
18796
18823
  onClick: (e2) => {
18797
- e2.preventDefault(), Lq == null ? void 0 : Lq(i, t);
18824
+ e2.preventDefault(), Jq == null ? void 0 : Jq(i, t);
18798
18825
  },
18799
18826
  children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
18800
18827
  sx: {
@@ -18807,24 +18834,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18807
18834
  f,
18808
18835
  h,
18809
18836
  _,
18810
- Vq,
18811
- Bq,
18837
+ Qq,
18838
+ Zq,
18812
18839
  S,
18813
18840
  J,
18814
- zq,
18815
- Fq,
18816
- Rq,
18841
+ Xq,
18842
+ Kq,
18843
+ Yq,
18817
18844
  w,
18818
18845
  i,
18819
18846
  t,
18820
- Pq,
18821
- Lq,
18822
18847
  Gq,
18823
- Kq,
18824
- qq
18825
- ]), Yq = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18848
+ Jq,
18849
+ nJ,
18850
+ rJ,
18851
+ iJ
18852
+ ]), oJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18826
18853
  t
18827
- ]), Xq = !Yq && !!(c && d), Zq = useJsonViewerStore((e2) => e2.keyRenderer), Qq = (0, import_react.useMemo)(() => ({
18854
+ ]), sJ = !oJ && !!(c && d), cJ = useJsonViewerStore((e2) => e2.keyRenderer), lJ = (0, import_react.useMemo)(() => ({
18828
18855
  path: i,
18829
18856
  inspect: K,
18830
18857
  setInspect: q,
@@ -18856,18 +18883,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18856
18883
  className: "data-key",
18857
18884
  sx: {
18858
18885
  lineHeight: 1.5,
18859
- color: Tq,
18886
+ color: Iq,
18860
18887
  letterSpacing: 0.5,
18861
18888
  opacity: 0.8
18862
18889
  },
18863
18890
  onClick: (0, import_react.useCallback)((e2) => {
18864
- e2.isDefaultPrevented() || Yq || q((e3) => !e3);
18891
+ e2.isDefaultPrevented() || oJ || q((e3) => !e3);
18865
18892
  }, [
18866
- Yq,
18893
+ oJ,
18867
18894
  q
18868
18895
  ]),
18869
18896
  children: [
18870
- Xq ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18897
+ sJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18871
18898
  className: "data-key-toggle-expanded",
18872
18899
  sx: {
18873
18900
  fontSize: ".8rem",
@@ -18885,27 +18912,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18885
18912
  }
18886
18913
  }) : null,
18887
18914
  (0, import_jsx_runtime.jsx)(Box_default, {
18888
- ref: Wq,
18915
+ ref: tJ,
18889
18916
  className: "data-key-key",
18890
18917
  component: "span",
18891
- children: jq && O === 0 ? Aq === false ? null : kq ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18918
+ children: Hq && O === 0 ? Vq === false ? null : Bq ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18892
18919
  children: [
18893
18920
  '"',
18894
- Aq,
18921
+ Vq,
18895
18922
  '"'
18896
18923
  ]
18897
18924
  }) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
18898
- children: Aq
18899
- }) : Zq.when(Qq) ? (0, import_jsx_runtime.jsx)(Zq, {
18900
- ...Qq
18901
- }) : a === void 0 && (Mq ? (0, import_jsx_runtime.jsx)(Box_default, {
18925
+ children: Vq
18926
+ }) : cJ.when(lJ) ? (0, import_jsx_runtime.jsx)(cJ, {
18927
+ ...lJ
18928
+ }) : a === void 0 && (Uq ? (0, import_jsx_runtime.jsx)(Box_default, {
18902
18929
  component: "span",
18903
18930
  style: {
18904
- color: Eq,
18905
- userSelect: Mq ? "none" : "auto"
18931
+ color: Lq,
18932
+ userSelect: Uq ? "none" : "auto"
18906
18933
  },
18907
18934
  children: A
18908
- }) : kq ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18935
+ }) : Bq ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18909
18936
  children: [
18910
18937
  '"',
18911
18938
  A,
@@ -18915,7 +18942,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18915
18942
  children: A
18916
18943
  }))
18917
18944
  }),
18918
- jq ? Aq !== false && (0, import_jsx_runtime.jsx)(DataBox, {
18945
+ Hq ? Vq !== false && (0, import_jsx_runtime.jsx)(DataBox, {
18919
18946
  className: "data-key-colon",
18920
18947
  sx: {
18921
18948
  mr: 0.5
@@ -18928,38 +18955,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18928
18955
  ".data-key-key:empty + &": {
18929
18956
  display: "none"
18930
18957
  },
18931
- userSelect: Mq ? "none" : "auto"
18958
+ userSelect: Uq ? "none" : "auto"
18932
18959
  },
18933
18960
  children: ":"
18934
18961
  }),
18935
18962
  c && (0, import_jsx_runtime.jsx)(c, {
18936
- ...Qq
18963
+ ...lJ
18937
18964
  }),
18938
- I && Xq && K && Jq
18965
+ I && sJ && K && aJ
18939
18966
  ]
18940
18967
  }),
18941
18968
  J && S ? f && (0, import_jsx_runtime.jsx)(f, {
18942
18969
  path: i,
18943
18970
  value: w,
18944
18971
  setValue: E,
18945
- abortEditing: Kq,
18946
- commitEditing: qq
18972
+ abortEditing: rJ,
18973
+ commitEditing: iJ
18947
18974
  }) : s ? (0, import_jsx_runtime.jsx)(s, {
18948
- ...Qq
18975
+ ...lJ
18949
18976
  }) : (0, import_jsx_runtime.jsx)(Box_default, {
18950
18977
  component: "span",
18951
18978
  className: "data-value-fallback",
18952
18979
  children: `fallback: ${t}`
18953
18980
  }),
18954
18981
  d && (0, import_jsx_runtime.jsx)(d, {
18955
- ...Qq
18982
+ ...lJ
18956
18983
  }),
18957
- !o && Oq && (0, import_jsx_runtime.jsx)(DataBox, {
18984
+ !o && zq && (0, import_jsx_runtime.jsx)(DataBox, {
18958
18985
  children: ","
18959
18986
  }),
18960
- I && Xq && !K && Jq,
18961
- I && !Xq && Jq,
18962
- !I && J && Jq
18987
+ I && sJ && !K && aJ,
18988
+ I && !sJ && aJ,
18989
+ !I && J && aJ
18963
18990
  ]
18964
18991
  });
18965
18992
  }, query = "(prefers-color-scheme: dark)";
@@ -19088,9 +19115,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19088
19115
  })
19089
19116
  })
19090
19117
  });
19091
- }, import_compiler_runtime$63 = require_compiler_runtime();
19118
+ }, import_compiler_runtime$64 = require_compiler_runtime();
19092
19119
  HtmlOutput = (0, import_react.memo)((e) => {
19093
- let t = (0, import_compiler_runtime$63.c)(10), { html: n, inline: i, className: o, alwaysSanitizeHtml: s } = e, c = i === void 0 ? false : i;
19120
+ let t = (0, import_compiler_runtime$64.c)(10), { html: n, inline: i, className: o, alwaysSanitizeHtml: s } = e, c = i === void 0 ? false : i;
19094
19121
  if (!n) return null;
19095
19122
  let d = !c, f;
19096
19123
  t[0] !== o || t[1] !== c || t[2] !== d ? (f = cn(o, {
@@ -19109,9 +19136,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19109
19136
  }), t[7] = f, t[8] = h, t[9] = _) : _ = t[9], _;
19110
19137
  });
19111
19138
  HtmlOutput.displayName = "HtmlOutput";
19112
- var import_compiler_runtime$62 = require_compiler_runtime();
19139
+ var import_compiler_runtime$63 = require_compiler_runtime();
19113
19140
  const ImageOutput = (e) => {
19114
- let t = (0, import_compiler_runtime$62.c)(8), { src: n, alt: i, width: a, height: o, className: s } = e, c = i === void 0 ? "" : i, d;
19141
+ let t = (0, import_compiler_runtime$63.c)(8), { src: n, alt: i, width: a, height: o, className: s } = e, c = i === void 0 ? "" : i, d;
19115
19142
  t[0] !== c || t[1] !== o || t[2] !== n || t[3] !== a ? (d = (0, import_jsx_runtime.jsx)("img", {
19116
19143
  src: n,
19117
19144
  alt: c,
@@ -19124,9 +19151,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19124
19151
  children: d
19125
19152
  }), t[5] = s, t[6] = d, t[7] = f) : f = t[7], f;
19126
19153
  };
19127
- var import_compiler_runtime$61 = require_compiler_runtime();
19154
+ var import_compiler_runtime$62 = require_compiler_runtime();
19128
19155
  Kbd = (e) => {
19129
- let t = (0, import_compiler_runtime$61.c)(5), n;
19156
+ let t = (0, import_compiler_runtime$62.c)(5), n;
19130
19157
  t[0] === e.className ? n = t[1] : (n = clsx_default(e.className, "rounded-md bg-muted/40 px-2 text-[0.75rem] font-prose center border border-foreground/20 text-muted-foreground block whitespace-nowrap"), t[0] = e.className, t[1] = n);
19131
19158
  let i;
19132
19159
  return t[2] !== e.children || t[3] !== n ? (i = (0, import_jsx_runtime.jsx)("kbd", {
@@ -19134,9 +19161,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19134
19161
  children: e.children
19135
19162
  }), t[2] = e.children, t[3] = n, t[4] = i) : i = t[4], i;
19136
19163
  };
19137
- var import_compiler_runtime$60 = require_compiler_runtime();
19164
+ var import_compiler_runtime$61 = require_compiler_runtime();
19138
19165
  const ExternalLink$1 = (e) => {
19139
- let t = (0, import_compiler_runtime$60.c)(3), { href: n, children: i } = e, a;
19166
+ let t = (0, import_compiler_runtime$61.c)(3), { href: n, children: i } = e, a;
19140
19167
  return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("a", {
19141
19168
  href: n,
19142
19169
  target: "_blank",
@@ -19323,17 +19350,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19323
19350
  os: "os",
19324
19351
  re: "re",
19325
19352
  sys: "sys"
19326
- }, import_compiler_runtime$59 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
19353
+ }, import_compiler_runtime$60 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
19327
19354
  function useFixMode() {
19328
- let e = (0, import_compiler_runtime$59.c)(3), [t, n] = useAtom(fixModeAtom), i;
19355
+ let e = (0, import_compiler_runtime$60.c)(3), [t, n] = useAtom(fixModeAtom), i;
19329
19356
  return e[0] !== t || e[1] !== n ? (i = {
19330
19357
  fixMode: t,
19331
19358
  setFixMode: n
19332
19359
  }, e[0] = t, e[1] = n, e[2] = i) : i = e[2], i;
19333
19360
  }
19334
- var import_compiler_runtime$58 = require_compiler_runtime();
19361
+ var import_compiler_runtime$59 = require_compiler_runtime();
19335
19362
  const AutoFixButton = (e) => {
19336
- let t = (0, import_compiler_runtime$58.c)(21), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), d = useAtomValue(aiFeaturesEnabledAtom), f;
19363
+ let t = (0, import_compiler_runtime$59.c)(21), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), d = useAtomValue(aiFeaturesEnabledAtom), f;
19337
19364
  if (t[0] !== d || t[1] !== n) {
19338
19365
  let e2;
19339
19366
  t[3] === d ? e2 = t[4] : (e2 = (e3) => getAutoFixes(e3, {
@@ -19394,7 +19421,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19394
19421
  };
19395
19422
  var PromptIcon = Sparkles, AutofixIcon = Wrench, PromptTitle = "Suggest a prompt", AutofixTitle = "Fix with AI";
19396
19423
  const AIFixButton = (e) => {
19397
- let t = (0, import_compiler_runtime$58.c)(21), { tooltip: n, openPrompt: i, applyAutofix: a } = e, { fixMode: o, setFixMode: s } = useFixMode(), c = o === "prompt" ? i : a, d;
19424
+ let t = (0, import_compiler_runtime$59.c)(21), { tooltip: n, openPrompt: i, applyAutofix: a } = e, { fixMode: o, setFixMode: s } = useFixMode(), c = o === "prompt" ? i : a, d;
19398
19425
  t[0] === o ? d = t[1] : (d = o === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
19399
19426
  className: "h-3 w-3 mr-2 mb-0.5"
19400
19427
  }) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
@@ -19463,7 +19490,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19463
19490
  }), t[18] = O, t[19] = v, t[20] = A) : A = t[20], A;
19464
19491
  };
19465
19492
  var AiModeItem = (e) => {
19466
- let t = (0, import_compiler_runtime$58.c)(12), { mode: n } = e, i;
19493
+ let t = (0, import_compiler_runtime$59.c)(12), { mode: n } = e, i;
19467
19494
  t[0] === n ? i = t[1] : (i = n === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
19468
19495
  className: "h-4 w-4"
19469
19496
  }) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
@@ -19500,9 +19527,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19500
19527
  function useFilename() {
19501
19528
  return useAtomValue(filenameAtom);
19502
19529
  }
19503
- var import_compiler_runtime$56 = require_compiler_runtime();
19530
+ var import_compiler_runtime$57 = require_compiler_runtime();
19504
19531
  const CellLink = (e) => {
19505
- let t = (0, import_compiler_runtime$56.c)(12), { className: n, cellId: i, variant: o, onClick: s, formatCellName: c, skipScroll: d } = e, f = useCellNames()[i] ?? "", h = useCellIds().inOrderIds.indexOf(i), { showCellIfHidden: _ } = useCellActions(), v = c ?? _temp$12, y;
19532
+ let t = (0, import_compiler_runtime$57.c)(12), { className: n, cellId: i, variant: o, onClick: s, formatCellName: c, skipScroll: d } = e, f = useCellNames()[i] ?? "", h = useCellIds().inOrderIds.indexOf(i), { showCellIfHidden: _ } = useCellActions(), v = c ?? _temp$12, y;
19506
19533
  t[0] === n ? y = t[1] : (y = cn("inline-block cursor-pointer text-link hover:underline", n), t[0] = n, t[1] = y);
19507
19534
  let S;
19508
19535
  t[2] !== i || t[3] !== s || t[4] !== _ || t[5] !== d || t[6] !== o ? (S = (e2) => {
@@ -19522,13 +19549,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19522
19549
  children: w
19523
19550
  }), t[8] = y, t[9] = S, t[10] = w, t[11] = E) : E = t[11], E;
19524
19551
  }, CellLinkError = (e) => {
19525
- let t = (0, import_compiler_runtime$56.c)(2), n;
19552
+ let t = (0, import_compiler_runtime$57.c)(2), n;
19526
19553
  return t[0] === e ? n = t[1] : (n = (0, import_jsx_runtime.jsx)(CellLink, {
19527
19554
  ...e,
19528
19555
  variant: "destructive"
19529
19556
  }), t[0] = e, t[1] = n), n;
19530
19557
  }, CellLinkTraceback = (e) => {
19531
- let t = (0, import_compiler_runtime$56.c)(10), { cellId: n, lineNumber: i } = e, a = useFilename(), o;
19558
+ let t = (0, import_compiler_runtime$57.c)(10), { cellId: n, lineNumber: i } = e, a = useFilename(), o;
19532
19559
  t[0] !== n || t[1] !== i ? (o = () => goToCellLine(n, i), t[0] = n, t[1] = i, t[2] = o) : o = t[2];
19533
19560
  let s;
19534
19561
  t[3] !== n || t[4] !== a ? (s = (e2) => n === "__scratch__" ? "scratch" : `marimo://${a || "untitled"}#cell=${e2}`, t[3] = n, t[4] = a, t[5] = s) : s = t[5];
@@ -19556,9 +19583,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19556
19583
  function _temp$12(e) {
19557
19584
  return e;
19558
19585
  }
19559
- var import_compiler_runtime$55 = require_compiler_runtime();
19586
+ var import_compiler_runtime$56 = require_compiler_runtime();
19560
19587
  const MangledLocalChip = (e) => {
19561
- let t = (0, import_compiler_runtime$55.c)(12), { local: n } = e, i;
19588
+ let t = (0, import_compiler_runtime$56.c)(12), { local: n } = e, i;
19562
19589
  t[0] === n.name ? i = t[1] : (i = (0, import_jsx_runtime.jsx)("span", {
19563
19590
  className: "font-code",
19564
19591
  children: n.name
@@ -19590,7 +19617,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19590
19617
  children: c
19591
19618
  }), t[9] = c, t[10] = s, t[11] = d) : d = t[11], d;
19592
19619
  }, MangledSegments = (e) => {
19593
- let t = (0, import_compiler_runtime$55.c)(4), { segments: n } = e, i;
19620
+ let t = (0, import_compiler_runtime$56.c)(4), { segments: n } = e, i;
19594
19621
  t[0] === n ? i = t[1] : (i = n.map(_temp$11), t[0] = n, t[1] = i);
19595
19622
  let a;
19596
19623
  return t[2] === i ? a = t[3] : (a = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
@@ -19673,7 +19700,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19673
19700
  value: e2
19674
19701
  });
19675
19702
  }
19676
- var import_compiler_runtime$54 = require_compiler_runtime(), ansiUp = new AnsiUp();
19703
+ var import_compiler_runtime$55 = require_compiler_runtime(), ansiUp = new AnsiUp();
19677
19704
  const cleanAnsiCodes = (e) => {
19678
19705
  let t = RegExp("\x1B\\[[0-9;]*m", "g");
19679
19706
  return e.replaceAll(t, "");
@@ -19741,7 +19768,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19741
19768
  });
19742
19769
  }
19743
19770
  var InstallPackageLink = (e) => {
19744
- let t = (0, import_compiler_runtime$54.c)(6), { packages: n, children: i } = e, { handleInstallPackages: a } = useInstallPackages(), o;
19771
+ let t = (0, import_compiler_runtime$55.c)(6), { packages: n, children: i } = e, { handleInstallPackages: a } = useInstallPackages(), o;
19745
19772
  t[0] !== a || t[1] !== n ? (o = (e2) => {
19746
19773
  a(n), e2.preventDefault();
19747
19774
  }, t[0] = a, t[1] = n, t[2] = o) : o = t[2];
@@ -19814,15 +19841,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19814
19841
  })
19815
19842
  });
19816
19843
  RenderTextWithLinks = (e) => {
19817
- let t = (0, import_compiler_runtime$54.c)(4), { text: n } = e, i;
19844
+ let t = (0, import_compiler_runtime$55.c)(4), { text: n } = e, i;
19818
19845
  t[0] === n ? i = t[1] : (i = renderTextWithReplacers(n, composeReplacers(pipInstallReplacer, urlReplacer)), t[0] = n, t[1] = i);
19819
19846
  let a = i, o;
19820
19847
  return t[2] === a ? o = t[3] : (o = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
19821
19848
  children: a
19822
19849
  }), t[2] = a, t[3] = o), o;
19823
19850
  };
19824
- var import_compiler_runtime$53 = require_compiler_runtime(), CollapsibleTraceback = (e) => {
19825
- let t = (0, import_compiler_runtime$53.c)(16), { traceback: n } = e, [i, a] = (0, import_react.useState)(true), o;
19851
+ var import_compiler_runtime$54 = require_compiler_runtime(), CollapsibleTraceback = (e) => {
19852
+ let t = (0, import_compiler_runtime$54.c)(16), { traceback: n } = e, [i, a] = (0, import_react.useState)(true), o;
19826
19853
  t[0] === i ? o = t[1] : (o = () => a(!i), t[0] = i, t[1] = o);
19827
19854
  let s = i ? "Collapse traceback" : "Expand traceback", c;
19828
19855
  t[2] === i ? c = t[3] : (c = i ? (0, import_jsx_runtime.jsx)(ChevronDown, {
@@ -19863,7 +19890,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19863
19890
  ]
19864
19891
  }), t[13] = f, t[14] = h, t[15] = _) : _ = t[15], _;
19865
19892
  }, Tip = (e) => {
19866
- let t = (0, import_compiler_runtime$53.c)(10), n = e.title ?? "Tip", i;
19893
+ let t = (0, import_compiler_runtime$54.c)(10), n = e.title ?? "Tip", i;
19867
19894
  t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)(AccordionTrigger, {
19868
19895
  className: "pt-2 pb-0 font-normal",
19869
19896
  children: n
@@ -19892,7 +19919,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19892
19919
  }), t[7] = e.className, t[8] = o, t[9] = s) : s = t[9], s;
19893
19920
  };
19894
19921
  const MarimoErrorOutput = (e) => {
19895
- let t = (0, import_compiler_runtime$53.c)(38), { errors: n, cellId: i, className: o } = e, s = useChromeActions(), c = useAtomValue(resolvedMarimoConfigAtom).display.cell_output === "above", d = "This cell wasn't run because it has errors", f = "destructive", _ = "text-error", v = null;
19922
+ let t = (0, import_compiler_runtime$54.c)(38), { errors: n, cellId: i, className: o } = e, s = useChromeActions(), c = useAtomValue(resolvedMarimoConfigAtom).display.cell_output === "above", d = "This cell wasn't run because it has errors", f = "destructive", _ = "text-error", v = null;
19896
19923
  if (n.some(_temp$10)) d = "Interrupted";
19897
19924
  else if (n.some(_temp2$8)) d = "An internal error occurred";
19898
19925
  else if (n.some(_temp3$5)) d = "Ancestor prevented from running", f = "default", _ = "text-secondary-foreground";
@@ -19907,18 +19934,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19907
19934
  }
19908
19935
  let y, S, w, E, O, A;
19909
19936
  if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
19910
- let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), Tq = n.filter(_temp16), Eq = n.filter(_temp17), Dq = n.filter(_temp18), Oq;
19911
- t[17] === s ? Oq = t[18] : (Oq = () => {
19937
+ let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), Iq = n.filter(_temp16), Lq = n.filter(_temp17), Rq = n.filter(_temp18), zq;
19938
+ t[17] === s ? zq = t[18] : (zq = () => {
19912
19939
  s.openApplication("scratchpad");
19913
- }, t[17] = s, t[18] = Oq);
19914
- let Aq = Oq, jq = () => {
19940
+ }, t[17] = s, t[18] = zq);
19941
+ let Bq = zq, Hq = () => {
19915
19942
  let t2 = [];
19916
- if (Tq.length > 0 || Eq.length > 0) {
19917
- let e3 = Tq.some(_temp19), n2 = !e3 && Tq.some(_temp20);
19943
+ if (Iq.length > 0 || Lq.length > 0) {
19944
+ let e3 = Iq.some(_temp19), n2 = !e3 && Iq.some(_temp20);
19918
19945
  t2.push((0, import_jsx_runtime.jsxs)("div", {
19919
19946
  children: [
19920
- Tq.map(_temp21),
19921
- Eq.map(_temp22),
19947
+ Iq.map(_temp21),
19948
+ Lq.map(_temp22),
19922
19949
  e3 && (0, import_jsx_runtime.jsxs)(Button, {
19923
19950
  size: "xs",
19924
19951
  variant: "outline",
@@ -19949,8 +19976,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19949
19976
  }),
19950
19977
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
19951
19978
  errors: [
19952
- ...Tq,
19953
- ...Eq
19979
+ ...Iq,
19980
+ ...Lq
19954
19981
  ],
19955
19982
  cellId: i
19956
19983
  })
@@ -20111,7 +20138,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20111
20138
  size: "xs",
20112
20139
  variant: "link",
20113
20140
  className: "my-2 font-normal mx-0 px-0",
20114
- onClick: Aq,
20141
+ onClick: Bq,
20115
20142
  children: [
20116
20143
  (0, import_jsx_runtime.jsx)(NotebookPen, {
20117
20144
  className: "h-3"
@@ -20310,18 +20337,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20310
20337
  cellId: i
20311
20338
  })
20312
20339
  ]
20313
- }, "ancestor-stopped")), Dq.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20340
+ }, "ancestor-stopped")), Rq.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20314
20341
  children: [
20315
- Dq.map(_temp35),
20342
+ Rq.map(_temp35),
20316
20343
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20317
- errors: Dq,
20344
+ errors: Rq,
20318
20345
  cellId: i,
20319
20346
  className: "mt-2.5"
20320
20347
  })
20321
20348
  ]
20322
20349
  }, "sql-errors")), t2;
20323
- }, Mq;
20324
- t[19] === v ? Mq = t[20] : (Mq = v && (0, import_jsx_runtime.jsxs)("div", {
20350
+ }, Uq;
20351
+ t[19] === v ? Uq = t[20] : (Uq = v && (0, import_jsx_runtime.jsxs)("div", {
20325
20352
  className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
20326
20353
  children: [
20327
20354
  v,
@@ -20333,22 +20360,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20333
20360
  })
20334
20361
  })
20335
20362
  ]
20336
- }), t[19] = v, t[20] = Mq);
20337
- let Nq;
20338
- t[21] !== _ || t[22] !== d ? (Nq = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20363
+ }), t[19] = v, t[20] = Uq);
20364
+ let Wq;
20365
+ t[21] !== _ || t[22] !== d ? (Wq = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20339
20366
  className: `font-code font-medium ${_}`,
20340
20367
  children: d
20341
- }), t[21] = _, t[22] = d, t[23] = Nq) : Nq = t[23];
20342
- let Pq;
20343
- t[24] !== Mq || t[25] !== Nq ? (Pq = (0, import_jsx_runtime.jsxs)("div", {
20368
+ }), t[21] = _, t[22] = d, t[23] = Wq) : Wq = t[23];
20369
+ let Gq;
20370
+ t[24] !== Uq || t[25] !== Wq ? (Gq = (0, import_jsx_runtime.jsxs)("div", {
20344
20371
  className: "space-y-0.5",
20345
20372
  children: [
20346
- Mq,
20347
- Nq
20373
+ Uq,
20374
+ Wq
20348
20375
  ]
20349
- }), t[24] = Mq, t[25] = Nq, t[26] = Pq) : Pq = t[26];
20350
- let Fq = Pq;
20351
- y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A = Fq, S = "flex flex-col gap-4", w = jq(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
20376
+ }), t[24] = Uq, t[25] = Wq, t[26] = Gq) : Gq = t[26];
20377
+ let Kq = Gq;
20378
+ y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A = Kq, S = "flex flex-col gap-4", w = Hq(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
20352
20379
  } else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
20353
20380
  let M;
20354
20381
  t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
@@ -20586,9 +20613,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20586
20613
  })
20587
20614
  }, `sql-error-${t}`);
20588
20615
  }
20589
- var import_compiler_runtime$52 = require_compiler_runtime();
20616
+ var import_compiler_runtime$53 = require_compiler_runtime();
20590
20617
  const TextOutput = (e) => {
20591
- let t = (0, import_compiler_runtime$52.c)(13), { text: n, channel: i, wrapText: o } = e, s = i === "stdout" || i === "stderr", c;
20618
+ let t = (0, import_compiler_runtime$53.c)(13), { text: n, channel: i, wrapText: o } = e, s = i === "stdout" || i === "stderr", c;
20592
20619
  t[0] === o ? c = t[1] : (c = (e2) => (0, import_jsx_runtime.jsx)("span", {
20593
20620
  className: o ? "whitespace-pre-wrap break-words" : "whitespace-pre",
20594
20621
  children: (0, import_jsx_runtime.jsx)(RenderTextWithLinks, {
@@ -20605,17 +20632,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20605
20632
  children: v
20606
20633
  }), t[10] = _, t[11] = v, t[12] = y) : y = t[12], y;
20607
20634
  };
20608
- var import_compiler_runtime$51 = require_compiler_runtime();
20635
+ var import_compiler_runtime$52 = require_compiler_runtime();
20609
20636
  const VideoOutput = (e) => {
20610
- let t = (0, import_compiler_runtime$51.c)(3), { src: n, className: i } = e, a;
20637
+ let t = (0, import_compiler_runtime$52.c)(3), { src: n, className: i } = e, a;
20611
20638
  return t[0] !== i || t[1] !== n ? (a = (0, import_jsx_runtime.jsx)("iframe", {
20612
20639
  className: i,
20613
20640
  src: n
20614
20641
  }), t[0] = i, t[1] = n, t[2] = a) : a = t[2], a;
20615
20642
  };
20616
- var import_compiler_runtime$50 = require_compiler_runtime();
20643
+ var import_compiler_runtime$51 = require_compiler_runtime();
20617
20644
  useOverflowDetection = function(e, t) {
20618
- let n = (0, import_compiler_runtime$50.c)(4), i = t === void 0 ? true : t, [a, o] = (0, import_react.useState)(false), s, c;
20645
+ let n = (0, import_compiler_runtime$51.c)(4), i = t === void 0 ? true : t, [a, o] = (0, import_react.useState)(false), s, c;
20619
20646
  return n[0] !== i || n[1] !== e ? (s = () => {
20620
20647
  let t2 = e.current;
20621
20648
  if (!t2 || !i) return;
@@ -20712,9 +20739,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20712
20739
  LazyVegaEmbed = import_react.lazy(() => import("./react-vega-B6ncY2Tp.js").then((e) => ({
20713
20740
  default: e.VegaEmbed
20714
20741
  })));
20715
- var import_compiler_runtime$49 = require_compiler_runtime();
20742
+ var import_compiler_runtime$50 = require_compiler_runtime();
20716
20743
  ChartLoadingState = () => {
20717
- let e = (0, import_compiler_runtime$49.c)(1), t;
20744
+ let e = (0, import_compiler_runtime$50.c)(1), t;
20718
20745
  return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = (0, import_jsx_runtime.jsxs)("div", {
20719
20746
  className: "flex items-center gap-2 justify-center",
20720
20747
  children: [
@@ -20729,7 +20756,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20729
20756
  }), e[0] = t) : t = e[0], t;
20730
20757
  };
20731
20758
  ChartErrorState = (e) => {
20732
- let t = (0, import_compiler_runtime$49.c)(2), { error: n } = e, i;
20759
+ let t = (0, import_compiler_runtime$50.c)(2), { error: n } = e, i;
20733
20760
  return t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)("div", {
20734
20761
  className: "flex items-center justify-center",
20735
20762
  children: (0, import_jsx_runtime.jsx)(ErrorBanner, {
@@ -20738,7 +20765,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20738
20765
  }), t[0] = n, t[1] = i), i;
20739
20766
  };
20740
20767
  ChartInfoState = (e) => {
20741
- let t = (0, import_compiler_runtime$49.c)(8), { children: n, className: i } = e, o;
20768
+ let t = (0, import_compiler_runtime$50.c)(8), { children: n, className: i } = e, o;
20742
20769
  t[0] === i ? o = t[1] : (o = cn("flex flex-col items-center justify-center gap-4", i), t[0] = i, t[1] = o);
20743
20770
  let s;
20744
20771
  t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = (0, import_jsx_runtime.jsx)(ChartPie, {
@@ -20758,11 +20785,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20758
20785
  ]
20759
20786
  }), t[5] = o, t[6] = c, t[7] = d) : d = t[7], d;
20760
20787
  };
20761
- let import_compiler_runtime$48;
20762
- import_compiler_runtime$48 = require_compiler_runtime();
20788
+ let import_compiler_runtime$49;
20789
+ import_compiler_runtime$49 = require_compiler_runtime();
20763
20790
  Tabs = Root2;
20764
20791
  TabsList = import_react.forwardRef((e, t) => {
20765
- let n = (0, import_compiler_runtime$48.c)(9), i, o;
20792
+ let n = (0, import_compiler_runtime$49.c)(9), i, o;
20766
20793
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
20767
20794
  let s;
20768
20795
  n[3] === i ? s = n[4] : (s = cn("inline-flex max-h-14 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", i), n[3] = i, n[4] = s);
@@ -20775,7 +20802,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20775
20802
  });
20776
20803
  TabsList.displayName = List.displayName;
20777
20804
  TabsTrigger = import_react.forwardRef((e, t) => {
20778
- let n = (0, import_compiler_runtime$48.c)(9), i, o;
20805
+ let n = (0, import_compiler_runtime$49.c)(9), i, o;
20779
20806
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
20780
20807
  let s;
20781
20808
  n[3] === i ? s = n[4] : (s = cn("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm", i), n[3] = i, n[4] = s);
@@ -20788,7 +20815,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20788
20815
  });
20789
20816
  TabsTrigger.displayName = Trigger.displayName;
20790
20817
  TabsContent = import_react.forwardRef((e, t) => {
20791
- let n = (0, import_compiler_runtime$48.c)(9), i, o;
20818
+ let n = (0, import_compiler_runtime$49.c)(9), i, o;
20792
20819
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
20793
20820
  let s;
20794
20821
  n[3] === i ? s = n[4] : (s = cn("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2", i), n[3] = i, n[4] = s);
@@ -20800,9 +20827,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20800
20827
  }), n[5] = o, n[6] = t, n[7] = s, n[8] = c) : c = n[8], c;
20801
20828
  });
20802
20829
  TabsContent.displayName = Content.displayName;
20803
- var import_compiler_runtime$47 = require_compiler_runtime();
20830
+ var import_compiler_runtime$48 = require_compiler_runtime();
20804
20831
  const WithLocale = (e) => {
20805
- let t = (0, import_compiler_runtime$47.c)(3), { children: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
20832
+ let t = (0, import_compiler_runtime$48.c)(3), { children: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
20806
20833
  return t[0] !== n || t[1] !== i ? (a = n(i), t[0] = n, t[1] = i, t[2] = a) : a = t[2], a;
20807
20834
  };
20808
20835
  function tzName(e, t, n = "long") {
@@ -21198,9 +21225,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
21198
21225
  is_null: "Is null",
21199
21226
  is_not_null: "Is not null"
21200
21227
  };
21201
- var import_compiler_runtime$46 = require_compiler_runtime();
21228
+ var import_compiler_runtime$47 = require_compiler_runtime();
21202
21229
  const MimeCell = (e) => {
21203
- let t = (0, import_compiler_runtime$46.c)(6), { value: n } = e, i;
21230
+ let t = (0, import_compiler_runtime$47.c)(6), { value: n } = e, i;
21204
21231
  t[0] !== n.data || t[1] !== n.mimetype ? (i = {
21205
21232
  channel: "output",
21206
21233
  data: n.data,
@@ -23517,10 +23544,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23517
23544
  ],
23518
23545
  unknown: []
23519
23546
  };
23520
- var import_compiler_runtime$45 = require_compiler_runtime();
23547
+ var import_compiler_runtime$46 = require_compiler_runtime();
23521
23548
  function FormatOptions(e) {
23522
23549
  var _a2, _b, _c;
23523
- let t = (0, import_compiler_runtime$45.c)(36), { column: n, locale: i } = e, o = (_a2 = n.columnDef.meta) == null ? void 0 : _a2.dataType, s, c, d, f, h, _, v, y;
23550
+ let t = (0, import_compiler_runtime$46.c)(36), { column: n, locale: i } = e, o = (_a2 = n.columnDef.meta) == null ? void 0 : _a2.dataType, s, c, d, f, h, _, v, y;
23524
23551
  if (t[0] !== n || t[1] !== o || t[2] !== i) {
23525
23552
  y = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
23526
23553
  bb0: {
@@ -23595,7 +23622,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23595
23622
  }
23596
23623
  function ColumnWrapping(e) {
23597
23624
  var _a2;
23598
- let t = (0, import_compiler_runtime$45.c)(10), { column: n } = e;
23625
+ let t = (0, import_compiler_runtime$46.c)(10), { column: n } = e;
23599
23626
  if (!((_a2 = n.getCanWrap) == null ? void 0 : _a2.call(n)) || !n.getColumnWrapping) return null;
23600
23627
  if (n.getColumnWrapping() === "wrap") {
23601
23628
  let e2;
@@ -23630,7 +23657,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23630
23657
  }
23631
23658
  function ColumnPinning$1(e) {
23632
23659
  var _a2;
23633
- let t = (0, import_compiler_runtime$45.c)(18), { column: n } = e;
23660
+ let t = (0, import_compiler_runtime$46.c)(18), { column: n } = e;
23634
23661
  if (!((_a2 = n.getCanPin) == null ? void 0 : _a2.call(n)) || !n.getIsPinned) return null;
23635
23662
  if (n.getIsPinned() !== false) {
23636
23663
  let e2;
@@ -23685,7 +23712,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23685
23712
  }), t[15] = o, t[16] = d, t[17] = f) : f = t[17], f;
23686
23713
  }
23687
23714
  function HideColumn(e) {
23688
- let t = (0, import_compiler_runtime$45.c)(5), { column: n } = e;
23715
+ let t = (0, import_compiler_runtime$46.c)(5), { column: n } = e;
23689
23716
  if (!n.getCanHide()) return null;
23690
23717
  let i;
23691
23718
  t[0] === n ? i = t[1] : (i = () => n.toggleVisibility(false), t[0] = n, t[1] = i);
@@ -23704,7 +23731,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23704
23731
  }
23705
23732
  function CopyColumn(e) {
23706
23733
  var _a2;
23707
- let t = (0, import_compiler_runtime$45.c)(5), { column: n } = e;
23734
+ let t = (0, import_compiler_runtime$46.c)(5), { column: n } = e;
23708
23735
  if (!((_a2 = n.getCanCopy) == null ? void 0 : _a2.call(n)) || n.id.startsWith("__m_column__")) return null;
23709
23736
  let i;
23710
23737
  t[0] === n.id ? i = t[1] : (i = async () => await copyToClipboard(n.id), t[0] = n.id, t[1] = i);
@@ -23723,7 +23750,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23723
23750
  }
23724
23751
  var AscIcon = ArrowUpNarrowWide, DescIcon = ArrowDownWideNarrow;
23725
23752
  function Sorts(e) {
23726
- let t = (0, import_compiler_runtime$45.c)(40), { column: n, table: i } = e;
23753
+ let t = (0, import_compiler_runtime$46.c)(40), { column: n, table: i } = e;
23727
23754
  if (!n.getCanSort()) return null;
23728
23755
  let a;
23729
23756
  t[0] === n ? a = t[1] : (a = n.getIsSorted(), t[0] = n, t[1] = a);
@@ -23816,7 +23843,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23816
23843
  }
23817
23844
  function DataType(e) {
23818
23845
  var _a2;
23819
- let t = (0, import_compiler_runtime$45.c)(5), { column: n } = e, i = (_a2 = n.columnDef.meta) == null ? void 0 : _a2.dtype;
23846
+ let t = (0, import_compiler_runtime$46.c)(5), { column: n } = e, i = (_a2 = n.columnDef.meta) == null ? void 0 : _a2.dtype;
23820
23847
  if (!i) return null;
23821
23848
  let a;
23822
23849
  t[0] === i ? a = t[1] : (a = (0, import_jsx_runtime.jsx)("div", {
@@ -23834,7 +23861,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23834
23861
  }), t[3] = a, t[4] = s), s;
23835
23862
  }
23836
23863
  const ClearFilterMenuItem = (e) => {
23837
- let t = (0, import_compiler_runtime$45.c)(5), { column: n } = e, i;
23864
+ let t = (0, import_compiler_runtime$46.c)(5), { column: n } = e, i;
23838
23865
  t[0] === n ? i = t[1] : (i = () => n.setFilterValue(void 0), t[0] = n, t[1] = i);
23839
23866
  let a;
23840
23867
  t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = (0, import_jsx_runtime.jsx)(FunnelX, {
@@ -24025,9 +24052,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
24025
24052
  let [t, n] = import_react.useState(e), [i, a] = import_react.useState(null);
24026
24053
  return e !== t && (a(t), n(e)), i;
24027
24054
  };
24028
- var import_compiler_runtime$44 = require_compiler_runtime();
24055
+ var import_compiler_runtime$45 = require_compiler_runtime();
24029
24056
  DelayMount = (e) => {
24030
- let t = (0, import_compiler_runtime$44.c)(13), { milliseconds: n, children: i, fallback: a, visibility: o, threshold: s, rootMargin: c } = e, d = o === void 0 ? false : o, f = s === void 0 ? 0 : s, h = c === void 0 ? "0px" : c, [_, v] = (0, import_react.useState)(false), [y, S] = (0, import_react.useState)(false), w;
24057
+ let t = (0, import_compiler_runtime$45.c)(13), { milliseconds: n, children: i, fallback: a, visibility: o, threshold: s, rootMargin: c } = e, d = o === void 0 ? false : o, f = s === void 0 ? 0 : s, h = c === void 0 ? "0px" : c, [_, v] = (0, import_react.useState)(false), [y, S] = (0, import_react.useState)(false), w;
24031
24058
  t[0] !== h || t[1] !== f ? (w = {
24032
24059
  threshold: f,
24033
24060
  root: null,
@@ -24058,9 +24085,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
24058
24085
  children: J
24059
24086
  }), t[10] = q, t[11] = J, t[12] = Q) : Q = t[12], Q;
24060
24087
  };
24061
- var import_compiler_runtime$43 = require_compiler_runtime();
24088
+ var import_compiler_runtime$44 = require_compiler_runtime();
24062
24089
  const DatePopover = (e) => {
24063
- let t = (0, import_compiler_runtime$43.c)(15), { date: n, type: i, children: a } = e;
24090
+ let t = (0, import_compiler_runtime$44.c)(15), { date: n, type: i, children: a } = e;
24064
24091
  if (!n || Number.isNaN(new Date(n).getTime())) return a;
24065
24092
  let o;
24066
24093
  t[0] === n ? o = t[1] : (o = new Date(n), t[0] = n, t[1] = o);
@@ -24100,7 +24127,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
24100
24127
  }), t[12] = h, t[13] = _, t[14] = v) : v = t[14], v;
24101
24128
  };
24102
24129
  var TimezoneDisplay = (e) => {
24103
- let t = (0, import_compiler_runtime$43.c)(26), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
24130
+ let t = (0, import_compiler_runtime$44.c)(26), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a;
24104
24131
  t[0] === i ? a = t[1] : (a = Intl.DateTimeFormat(i).resolvedOptions(), t[0] = i, t[1] = a);
24105
24132
  let o = a.timeZone, s = n.getUTCMilliseconds() !== 0, c;
24106
24133
  t[2] === s ? c = t[3] : (c = s ? {
@@ -24176,7 +24203,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
24176
24203
  ]
24177
24204
  }), t[23] = O, t[24] = y, t[25] = A) : A = t[25], A;
24178
24205
  }, DateDisplay = (e) => {
24179
- let t = (0, import_compiler_runtime$43.c)(6), { date: n } = e, i;
24206
+ let t = (0, import_compiler_runtime$44.c)(6), { date: n } = e, i;
24180
24207
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
24181
24208
  timeZone: "UTC",
24182
24209
  dateStyle: "long"
@@ -24188,7 +24215,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
24188
24215
  children: o
24189
24216
  }), t[4] = o, t[5] = s), s;
24190
24217
  }, RelativeTime = (e) => {
24191
- let t = (0, import_compiler_runtime$43.c)(6), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a, o;
24218
+ let t = (0, import_compiler_runtime$44.c)(6), { date: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a, o;
24192
24219
  if (t[0] !== n || t[1] !== i) {
24193
24220
  o = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
24194
24221
  bb0: {
@@ -24240,7 +24267,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
24240
24267
  return t[4] === a ? s = t[5] : (s = (0, import_jsx_runtime.jsx)("span", {
24241
24268
  children: a
24242
24269
  }), t[4] = a, t[5] = s), s;
24243
- }, import_compiler_runtime$42 = require_compiler_runtime(), hashString = (e) => {
24270
+ }, import_compiler_runtime$43 = require_compiler_runtime(), hashString = (e) => {
24244
24271
  let t = 0;
24245
24272
  for (let n = 0; n < e.length; n++) {
24246
24273
  let i = e.charCodeAt(n);
@@ -24257,7 +24284,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
24257
24284
  return i;
24258
24285
  };
24259
24286
  const ChartSkeleton = (e) => {
24260
- let t = (0, import_compiler_runtime$42.c)(11), { seed: n, width: i, height: a } = e, o = i / 9, s = a - 15, c;
24287
+ let t = (0, import_compiler_runtime$43.c)(11), { seed: n, width: i, height: a } = e, o = i / 9, s = a - 15, c;
24261
24288
  if (t[0] !== o || t[1] !== a || t[2] !== n || t[3] !== s || t[4] !== i) {
24262
24289
  let e2 = generateHeights({
24263
24290
  numBars: 9,
@@ -24636,7 +24663,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
24636
24663
  let c = s / t.length;
24637
24664
  return Math.max(c, 1);
24638
24665
  }
24639
- 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$41;
24666
+ 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;
24640
24667
  MAX_BAR_HEIGHT = 20;
24641
24668
  BIN_END_EXTENSION_FACTOR = 0.1;
24642
24669
  CONCAT_CHART_HEIGHT = 30;
@@ -25273,11 +25300,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
25273
25300
  }, __publicField(_a, "EMPTY", new _a([], /* @__PURE__ */ new Map(), {}, {}, {}, {
25274
25301
  includeCharts: false
25275
25302
  })), _a);
25276
- import_compiler_runtime$41 = require_compiler_runtime();
25303
+ import_compiler_runtime$42 = require_compiler_runtime();
25277
25304
  ColumnChartContext = import_react.createContext(ColumnChartSpecModel.EMPTY);
25278
25305
  var batchedLoader = createBatchedLoader();
25279
25306
  const TableColumnSummary = (e) => {
25280
- let t = (0, import_compiler_runtime$41.c)(21), { columnId: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a = import_react.use(ColumnChartContext), { theme: o } = useTheme(), s, c, d;
25307
+ let t = (0, import_compiler_runtime$42.c)(21), { columnId: n } = e, { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), a = import_react.use(ColumnChartContext), { theme: o } = useTheme(), s, c, d;
25281
25308
  if (t[0] !== a || t[1] !== n || t[2] !== i || t[3] !== o) {
25282
25309
  let { spec: e2, type: f2, stats: h } = a.getHeaderSummary(n), _ = null;
25283
25310
  if (e2) {
@@ -25478,7 +25505,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
25478
25505
  };
25479
25506
  }
25480
25507
  };
25481
- var import_compiler_runtime$40 = require_compiler_runtime(), WHITESPACE_CHARS = {
25508
+ var import_compiler_runtime$41 = require_compiler_runtime(), WHITESPACE_CHARS = {
25482
25509
  " ": {
25483
25510
  marker: "\u2423",
25484
25511
  name: "space"
@@ -25554,7 +25581,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
25554
25581
  }
25555
25582
  };
25556
25583
  function WhitespaceMarkers(e) {
25557
- let t = (0, import_compiler_runtime$40.c)(7), { value: n } = e;
25584
+ let t = (0, import_compiler_runtime$41.c)(7), { value: n } = e;
25558
25585
  if (!n) return null;
25559
25586
  let i;
25560
25587
  t[0] === n ? i = t[1] : (i = describeWhitespace(n), t[0] = n, t[1] = i);
@@ -25569,7 +25596,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
25569
25596
  }), t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
25570
25597
  }
25571
25598
  function SentinelCell(e) {
25572
- let t = (0, import_compiler_runtime$40.c)(15), { sentinel: n } = e, i = SENTINEL_CONFIG[n.type], a;
25599
+ let t = (0, import_compiler_runtime$41.c)(15), { sentinel: n } = e, i = SENTINEL_CONFIG[n.type], a;
25573
25600
  t[0] !== i || t[1] !== n.value ? (a = i.label(n.value), t[0] = i, t[1] = n.value, t[2] = a) : a = t[2];
25574
25601
  let o = a, s;
25575
25602
  t[3] !== i || t[4] !== n.value ? (s = i.tooltip(n.value), t[3] = i, t[4] = n.value, t[5] = s) : s = t[5];
@@ -25598,8 +25625,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
25598
25625
  let a = e.at(-1);
25599
25626
  return n.push(a), n;
25600
25627
  }
25601
- var import_compiler_runtime$39 = require_compiler_runtime(), ImageWithFallback = (e) => {
25602
- let t = (0, import_compiler_runtime$39.c)(14), { url: n } = e, [i, a] = (0, import_react.useState)(false), [o, s] = (0, import_react.useState)(false);
25628
+ var import_compiler_runtime$40 = require_compiler_runtime(), ImageWithFallback = (e) => {
25629
+ let t = (0, import_compiler_runtime$40.c)(14), { url: n } = e, [i, a] = (0, import_react.useState)(false), [o, s] = (0, import_react.useState)(false);
25603
25630
  if (i) {
25604
25631
  let e2;
25605
25632
  return t[0] === n ? e2 = t[1] : (e2 = (0, import_jsx_runtime.jsx)(URLAnchor, {
@@ -25673,7 +25700,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
25673
25700
  return t.some((e2) => n.has(e2.type));
25674
25701
  }
25675
25702
  const MarkdownUrlDetector = (e) => {
25676
- let t = (0, import_compiler_runtime$39.c)(4), { content: n, parts: i } = e;
25703
+ let t = (0, import_compiler_runtime$40.c)(4), { content: n, parts: i } = e;
25677
25704
  if (isMarkdown(n)) {
25678
25705
  let e2;
25679
25706
  return t[0] === n ? e2 = t[1] : (e2 = (0, import_jsx_runtime.jsx)(MarkdownRenderer, {
@@ -25690,7 +25717,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
25690
25717
  url: e2.url
25691
25718
  }, t) : e2.value);
25692
25719
  var URLAnchor = (e) => {
25693
- let t = (0, import_compiler_runtime$39.c)(3), { url: n } = e, i;
25720
+ let t = (0, import_compiler_runtime$40.c)(3), { url: n } = e, i;
25694
25721
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = Events.stopPropagation(), t[0] = i) : i = t[0];
25695
25722
  let a;
25696
25723
  return t[1] === n ? a = t[2] : (a = (0, import_jsx_runtime.jsx)("a", {
@@ -26085,10 +26112,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26085
26112
  maximumFractionDigits: maxFractionalDigits(n)
26086
26113
  }).format(e);
26087
26114
  };
26088
- let import_compiler_runtime$38;
26089
- import_compiler_runtime$38 = require_compiler_runtime();
26115
+ let import_compiler_runtime$39;
26116
+ import_compiler_runtime$39 = require_compiler_runtime();
26090
26117
  Table = import_react.forwardRef((e, t) => {
26091
- let n = (0, import_compiler_runtime$38.c)(9), i, o;
26118
+ let n = (0, import_compiler_runtime$39.c)(9), i, o;
26092
26119
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
26093
26120
  let s;
26094
26121
  n[3] === i ? s = n[4] : (s = cn("w-full caption-bottom text-sm", i), n[3] = i, n[4] = s);
@@ -26104,7 +26131,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26104
26131
  });
26105
26132
  Table.displayName = "Table";
26106
26133
  TableHeader = import_react.forwardRef((e, t) => {
26107
- let n = (0, import_compiler_runtime$38.c)(9), i, o;
26134
+ let n = (0, import_compiler_runtime$39.c)(9), i, o;
26108
26135
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
26109
26136
  let s;
26110
26137
  n[3] === i ? s = n[4] : (s = cn("[&_tr]:border-b bg-background", i), n[3] = i, n[4] = s);
@@ -26117,7 +26144,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26117
26144
  });
26118
26145
  TableHeader.displayName = "TableHeader";
26119
26146
  TableBody = import_react.forwardRef((e, t) => {
26120
- let n = (0, import_compiler_runtime$38.c)(9), i, o;
26147
+ let n = (0, import_compiler_runtime$39.c)(9), i, o;
26121
26148
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
26122
26149
  let s;
26123
26150
  n[3] === i ? s = n[4] : (s = cn("[&_tr:last-child]:border-0", i), n[3] = i, n[4] = s);
@@ -26130,7 +26157,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26130
26157
  });
26131
26158
  TableBody.displayName = "TableBody";
26132
26159
  var TableFooter = import_react.forwardRef((e, t) => {
26133
- let n = (0, import_compiler_runtime$38.c)(9), i, o;
26160
+ let n = (0, import_compiler_runtime$39.c)(9), i, o;
26134
26161
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
26135
26162
  let s;
26136
26163
  n[3] === i ? s = n[4] : (s = cn("bg-primary font-medium text-primary-foreground", i), n[3] = i, n[4] = s);
@@ -26143,7 +26170,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26143
26170
  });
26144
26171
  TableFooter.displayName = "TableFooter";
26145
26172
  TableRow = import_react.forwardRef((e, t) => {
26146
- let n = (0, import_compiler_runtime$38.c)(9), i, o;
26173
+ let n = (0, import_compiler_runtime$39.c)(9), i, o;
26147
26174
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
26148
26175
  let s;
26149
26176
  n[3] === i ? s = n[4] : (s = cn("border-b transition-colors bg-background hover:bg-(--slate-2) data-[state=selected]:bg-(--slate-3)", i), n[3] = i, n[4] = s);
@@ -26156,7 +26183,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26156
26183
  });
26157
26184
  TableRow.displayName = "TableRow";
26158
26185
  TableHead = import_react.forwardRef((e, t) => {
26159
- let n = (0, import_compiler_runtime$38.c)(9), i, o;
26186
+ let n = (0, import_compiler_runtime$39.c)(9), i, o;
26160
26187
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
26161
26188
  let s;
26162
26189
  n[3] === i ? s = n[4] : (s = cn("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", i), n[3] = i, n[4] = s);
@@ -26169,7 +26196,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26169
26196
  });
26170
26197
  TableHead.displayName = "TableHead";
26171
26198
  TableCell = import_react.forwardRef((e, t) => {
26172
- let n = (0, import_compiler_runtime$38.c)(9), i, o;
26199
+ let n = (0, import_compiler_runtime$39.c)(9), i, o;
26173
26200
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
26174
26201
  let s;
26175
26202
  n[3] === i ? s = n[4] : (s = cn("p-1.5 align-middle [&:has([role=checkbox])]:pr-0", i), n[3] = i, n[4] = s);
@@ -26182,7 +26209,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26182
26209
  });
26183
26210
  TableCell.displayName = "TableCell";
26184
26211
  var TableCaption = import_react.forwardRef((e, t) => {
26185
- let n = (0, import_compiler_runtime$38.c)(9), i, o;
26212
+ let n = (0, import_compiler_runtime$39.c)(9), i, o;
26186
26213
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
26187
26214
  let s;
26188
26215
  n[3] === i ? s = n[4] : (s = cn("mt-4 text-sm text-muted-foreground", i), n[3] = i, n[4] = s);
@@ -26395,7 +26422,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26395
26422
  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 }) {
26396
26423
  let E = (0, import_react.useContext)(PanelGroupContext);
26397
26424
  if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
26398
- let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), Tq = (0, import_react.useRef)({
26425
+ let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), Iq = (0, import_react.useRef)({
26399
26426
  callbacks: {
26400
26427
  onCollapse: f,
26401
26428
  onExpand: h,
@@ -26415,12 +26442,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26415
26442
  (0, import_react.useRef)({
26416
26443
  didLogMissingDefaultSizeWarning: false
26417
26444
  }), useIsomorphicLayoutEffect$1(() => {
26418
- let { callbacks: e2, constraints: t2 } = Tq.current, o2 = {
26445
+ let { callbacks: e2, constraints: t2 } = Iq.current, o2 = {
26419
26446
  ...t2
26420
26447
  };
26421
- Tq.current.id = $, Tq.current.idIsFromProps = s !== void 0, Tq.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(Tq.current, o2);
26448
+ Iq.current.id = $, Iq.current.idIsFromProps = s !== void 0, Iq.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(Iq.current, o2);
26422
26449
  }), useIsomorphicLayoutEffect$1(() => {
26423
- let e2 = Tq.current;
26450
+ let e2 = Iq.current;
26424
26451
  return q(e2), () => {
26425
26452
  Q(e2);
26426
26453
  };
@@ -26431,25 +26458,25 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26431
26458
  Q
26432
26459
  ]), (0, import_react.useImperativeHandle)(o, () => ({
26433
26460
  collapse: () => {
26434
- O(Tq.current);
26461
+ O(Iq.current);
26435
26462
  },
26436
26463
  expand: (e2) => {
26437
- A(Tq.current, e2);
26464
+ A(Iq.current, e2);
26438
26465
  },
26439
26466
  getId() {
26440
26467
  return $;
26441
26468
  },
26442
26469
  getSize() {
26443
- return M(Tq.current);
26470
+ return M(Iq.current);
26444
26471
  },
26445
26472
  isCollapsed() {
26446
- return U(Tq.current);
26473
+ return U(Iq.current);
26447
26474
  },
26448
26475
  isExpanded() {
26449
- return !U(Tq.current);
26476
+ return !U(Iq.current);
26450
26477
  },
26451
26478
  resize: (e2) => {
26452
- J(Tq.current, e2);
26479
+ J(Iq.current, e2);
26453
26480
  }
26454
26481
  }), [
26455
26482
  O,
@@ -26459,21 +26486,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26459
26486
  $,
26460
26487
  J
26461
26488
  ]);
26462
- let Eq = I(Tq.current, a);
26489
+ let Lq = I(Iq.current, a);
26463
26490
  return (0, import_react.createElement)(S, {
26464
26491
  ...w,
26465
26492
  children: e,
26466
26493
  className: t,
26467
26494
  id: $,
26468
26495
  style: {
26469
- ...Eq,
26496
+ ...Lq,
26470
26497
  ...y
26471
26498
  },
26472
26499
  [DATA_ATTRIBUTES.groupId]: z,
26473
26500
  [DATA_ATTRIBUTES.panel]: "",
26474
26501
  [DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
26475
26502
  [DATA_ATTRIBUTES.panelId]: $,
26476
- [DATA_ATTRIBUTES.panelSize]: parseFloat("" + Eq.flexGrow).toFixed(1)
26503
+ [DATA_ATTRIBUTES.panelSize]: parseFloat("" + Lq.flexGrow).toFixed(1)
26477
26504
  });
26478
26505
  }
26479
26506
  Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
@@ -27258,13 +27285,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27258
27285
  }, [
27259
27286
  S,
27260
27287
  E
27261
- ]), Tq = (0, import_react.useCallback)((e2) => {
27288
+ ]), Iq = (0, import_react.useCallback)((e2) => {
27262
27289
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27263
27290
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
27264
- }, []), Eq = (0, import_react.useCallback)((e2) => {
27291
+ }, []), Lq = (0, import_react.useCallback)((e2) => {
27265
27292
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27266
27293
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
27267
- }, []), Dq = (0, import_react.useCallback)((e2) => {
27294
+ }, []), Rq = (0, import_react.useCallback)((e2) => {
27268
27295
  let { panelDataArray: t2 } = K.current;
27269
27296
  t2.push(e2), t2.sort((e3, t3) => {
27270
27297
  let n2 = e3.order, i2 = t3.order;
@@ -27296,7 +27323,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27296
27323
  e2.layout = [];
27297
27324
  };
27298
27325
  }, []);
27299
- let Oq = (0, import_react.useCallback)((e2) => {
27326
+ let zq = (0, import_react.useCallback)((e2) => {
27300
27327
  let t2 = false, n2 = y.current;
27301
27328
  return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
27302
27329
  n3.preventDefault();
@@ -27314,7 +27341,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27314
27341
  }), I2 = !compareLayouts(f2, A2);
27315
27342
  (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));
27316
27343
  };
27317
- }, []), kq = (0, import_react.useCallback)((e2, t2) => {
27344
+ }, []), Bq = (0, import_react.useCallback)((e2, t2) => {
27318
27345
  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);
27319
27346
  assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
27320
27347
  let d2 = adjustLayoutByDelta({
@@ -27326,12 +27353,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27326
27353
  trigger: "imperative-api"
27327
27354
  });
27328
27355
  compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
27329
- }, []), Aq = (0, import_react.useCallback)((e2, t2) => {
27356
+ }, []), Vq = (0, import_react.useCallback)((e2, t2) => {
27330
27357
  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);
27331
- h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || kq(e2, s2) : h2 < f2 ? kq(e2, f2) : h2 > d2 && kq(e2, d2));
27358
+ h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || Bq(e2, s2) : h2 < f2 ? Bq(e2, f2) : h2 > d2 && Bq(e2, d2));
27332
27359
  }, [
27333
- kq
27334
- ]), jq = (0, import_react.useCallback)((e2, t2) => {
27360
+ Bq
27361
+ ]), Hq = (0, import_react.useCallback)((e2, t2) => {
27335
27362
  let { direction: n2 } = U.current, { layout: i2 } = K.current;
27336
27363
  if (!y.current) return;
27337
27364
  let a2 = getResizeHandleElement(e2, y.current);
@@ -27343,14 +27370,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27343
27370
  initialCursorPosition: o2,
27344
27371
  initialLayout: i2
27345
27372
  });
27346
- }, []), Mq = (0, import_react.useCallback)(() => {
27373
+ }, []), Uq = (0, import_react.useCallback)(() => {
27347
27374
  w(null);
27348
- }, []), Nq = (0, import_react.useCallback)((e2) => {
27375
+ }, []), Wq = (0, import_react.useCallback)((e2) => {
27349
27376
  let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
27350
27377
  n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
27351
27378
  }, [
27352
27379
  A
27353
- ]), Pq = (0, import_react.useMemo)(() => ({
27380
+ ]), Gq = (0, import_react.useMemo)(() => ({
27354
27381
  collapsePanel: q,
27355
27382
  direction: i,
27356
27383
  dragState: S,
@@ -27358,15 +27385,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27358
27385
  getPanelSize: Q,
27359
27386
  getPanelStyle: $,
27360
27387
  groupId: v,
27361
- isPanelCollapsed: Tq,
27362
- isPanelExpanded: Eq,
27363
- reevaluatePanelConstraints: Aq,
27364
- registerPanel: Dq,
27365
- registerResizeHandle: Oq,
27366
- resizePanel: kq,
27367
- startDragging: jq,
27368
- stopDragging: Mq,
27369
- unregisterPanel: Nq,
27388
+ isPanelCollapsed: Iq,
27389
+ isPanelExpanded: Lq,
27390
+ reevaluatePanelConstraints: Vq,
27391
+ registerPanel: Rq,
27392
+ registerResizeHandle: zq,
27393
+ resizePanel: Bq,
27394
+ startDragging: Hq,
27395
+ stopDragging: Uq,
27396
+ unregisterPanel: Wq,
27370
27397
  panelGroupElement: y.current
27371
27398
  }), [
27372
27399
  q,
@@ -27376,16 +27403,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27376
27403
  Q,
27377
27404
  $,
27378
27405
  v,
27379
- Tq,
27380
- Eq,
27381
- Aq,
27382
- Dq,
27383
- Oq,
27384
- kq,
27385
- jq,
27386
- Mq,
27387
- Nq
27388
- ]), Fq = {
27406
+ Iq,
27407
+ Lq,
27408
+ Vq,
27409
+ Rq,
27410
+ zq,
27411
+ Bq,
27412
+ Hq,
27413
+ Uq,
27414
+ Wq
27415
+ ]), Kq = {
27389
27416
  display: "flex",
27390
27417
  flexDirection: i === "horizontal" ? "row" : "column",
27391
27418
  height: "100%",
@@ -27393,7 +27420,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27393
27420
  width: "100%"
27394
27421
  };
27395
27422
  return (0, import_react.createElement)(PanelGroupContext.Provider, {
27396
- value: Pq
27423
+ value: Gq
27397
27424
  }, (0, import_react.createElement)(h, {
27398
27425
  ..._,
27399
27426
  children: t,
@@ -27401,7 +27428,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27401
27428
  id: o,
27402
27429
  ref: y,
27403
27430
  style: {
27404
- ...Fq,
27431
+ ...Kq,
27405
27432
  ...f
27406
27433
  },
27407
27434
  [DATA_ATTRIBUTES.group]: "",
@@ -27478,31 +27505,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27478
27505
  });
27479
27506
  let O = (0, import_react.useContext)(PanelGroupContext);
27480
27507
  if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
27481
- let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, Tq] = (0, import_react.useState)(false), [Eq, Dq] = (0, import_react.useState)(null), Oq = (0, import_react.useRef)({
27508
+ let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, Iq] = (0, import_react.useState)(false), [Lq, Rq] = (0, import_react.useState)(null), zq = (0, import_react.useRef)({
27482
27509
  state: J
27483
27510
  });
27484
27511
  useIsomorphicLayoutEffect$1(() => {
27485
- Oq.current.state = J;
27512
+ zq.current.state = J;
27486
27513
  }), (0, import_react.useEffect)(() => {
27487
- if (n) Dq(null);
27514
+ if (n) Rq(null);
27488
27515
  else {
27489
27516
  let e2 = I(q);
27490
- Dq(() => e2);
27517
+ Rq(() => e2);
27491
27518
  }
27492
27519
  }, [
27493
27520
  n,
27494
27521
  q,
27495
27522
  I
27496
27523
  ]);
27497
- let kq = (i == null ? void 0 : i.coarse) ?? 15, Aq = (i == null ? void 0 : i.fine) ?? 5;
27524
+ let Bq = (i == null ? void 0 : i.coarse) ?? 15, Vq = (i == null ? void 0 : i.fine) ?? 5;
27498
27525
  (0, import_react.useEffect)(() => {
27499
- if (n || Eq == null) return;
27526
+ if (n || Lq == null) return;
27500
27527
  let e2 = w.current;
27501
27528
  assert(e2, "Element ref not attached");
27502
27529
  let t2 = false;
27503
27530
  return registerResizeHandle(q, e2, A, {
27504
- coarse: kq,
27505
- fine: Aq
27531
+ coarse: Bq,
27532
+ fine: Vq
27506
27533
  }, (e3, n2, i2) => {
27507
27534
  if (!n2) {
27508
27535
  Q("inactive");
@@ -27516,8 +27543,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27516
27543
  break;
27517
27544
  }
27518
27545
  case "move": {
27519
- let { state: e4 } = Oq.current;
27520
- t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), Eq(i2);
27546
+ let { state: e4 } = zq.current;
27547
+ t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), Lq(i2);
27521
27548
  break;
27522
27549
  }
27523
27550
  case "up": {
@@ -27529,22 +27556,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27529
27556
  }
27530
27557
  });
27531
27558
  }, [
27532
- kq,
27559
+ Bq,
27533
27560
  A,
27534
27561
  n,
27535
- Aq,
27562
+ Vq,
27536
27563
  I,
27537
27564
  q,
27538
- Eq,
27565
+ Lq,
27539
27566
  z,
27540
27567
  U
27541
27568
  ]), useWindowSplitterResizeHandlerBehavior({
27542
27569
  disabled: n,
27543
27570
  handleId: q,
27544
- resizeHandler: Eq,
27571
+ resizeHandler: Lq,
27545
27572
  panelGroupElement: K
27546
27573
  });
27547
- let jq = {
27574
+ let Hq = {
27548
27575
  touchAction: "none",
27549
27576
  userSelect: "none"
27550
27577
  };
@@ -27554,15 +27581,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27554
27581
  className: t,
27555
27582
  id: a,
27556
27583
  onBlur: () => {
27557
- Tq(false), o == null ? void 0 : o();
27584
+ Iq(false), o == null ? void 0 : o();
27558
27585
  },
27559
27586
  onFocus: () => {
27560
- Tq(true), d == null ? void 0 : d();
27587
+ Iq(true), d == null ? void 0 : d();
27561
27588
  },
27562
27589
  ref: w,
27563
27590
  role: "separator",
27564
27591
  style: {
27565
- ...jq,
27592
+ ...Hq,
27566
27593
  ..._
27567
27594
  },
27568
27595
  tabIndex: v,
@@ -27576,8 +27603,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27576
27603
  });
27577
27604
  };
27578
27605
  PanelResizeHandle.displayName = "PanelResizeHandle";
27579
- let import_compiler_runtime$37, toggleVariants;
27580
- import_compiler_runtime$37 = require_compiler_runtime();
27606
+ let import_compiler_runtime$38, toggleVariants;
27607
+ import_compiler_runtime$38 = require_compiler_runtime();
27581
27608
  toggleVariants = cva(cn("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", "data-[state=on]:bg-muted data-[state=on]:text-muted-foreground"), {
27582
27609
  variants: {
27583
27610
  variant: {
@@ -27597,7 +27624,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27597
27624
  }
27598
27625
  });
27599
27626
  Toggle = import_react.forwardRef((e, t) => {
27600
- let n = (0, import_compiler_runtime$37.c)(13), i, o, s, c;
27627
+ let n = (0, import_compiler_runtime$38.c)(13), i, o, s, c;
27601
27628
  n[0] === e ? (i = n[1], o = n[2], s = n[3], c = n[4]) : ({ className: i, variant: c, size: s, ...o } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s, n[4] = c);
27602
27629
  let d;
27603
27630
  n[5] !== i || n[6] !== s || n[7] !== c ? (d = cn(toggleVariants({
@@ -27624,14 +27651,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27624
27651
  contextAwarePanelOpen = atom(false);
27625
27652
  atom(false);
27626
27653
  isCellAwareAtom = atom(false);
27627
- var import_compiler_runtime$36 = require_compiler_runtime();
27654
+ var import_compiler_runtime$37 = require_compiler_runtime();
27628
27655
  let CellHoverTemplateFeature;
27629
27656
  PANEL_TYPES = {
27630
27657
  ROW_VIEWER: "row-viewer",
27631
27658
  COLUMN_EXPLORER: "column-explorer"
27632
27659
  };
27633
27660
  ContextAwarePanelItem = (e) => {
27634
- let t = (0, import_compiler_runtime$36.c)(2), { children: n } = e, i;
27661
+ let t = (0, import_compiler_runtime$37.c)(2), { children: n } = e, i;
27635
27662
  return t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)(ErrorBoundary, {
27636
27663
  children: (0, import_jsx_runtime.jsx)(Fill, {
27637
27664
  name: SlotNames.CONTEXT_AWARE_PANEL,
@@ -27861,7 +27888,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27861
27888
  }, [
27862
27889
  h
27863
27890
  ]), k(() => {
27864
- U(6, Eq);
27891
+ U(6, Lq);
27865
27892
  }, []);
27866
27893
  let K = import_react.useMemo(() => ({
27867
27894
  subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
@@ -27870,7 +27897,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27870
27897
  var _a2;
27871
27898
  var a2, o2, s2;
27872
27899
  if (!Object.is(n.current[e2], t2)) {
27873
- if (n.current[e2] = t2, e2 === "search") Tq(), Q(), U(1, $);
27900
+ if (n.current[e2] = t2, e2 === "search") Iq(), Q(), U(1, $);
27874
27901
  else if (e2 === "value") {
27875
27902
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
27876
27903
  let e3 = document.getElementById(I);
@@ -27878,8 +27905,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27878
27905
  }
27879
27906
  if (U(7, () => {
27880
27907
  var _a3;
27881
- n.current.selectedItemId = (_a3 = Dq()) == null ? void 0 : _a3.id, K.emit();
27882
- }), i2 || U(5, Eq), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
27908
+ n.current.selectedItemId = (_a3 = Rq()) == null ? void 0 : _a3.id, K.emit();
27909
+ }), i2 || U(5, Lq), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
27883
27910
  let e3 = t2 ?? "";
27884
27911
  (s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
27885
27912
  return;
@@ -27904,12 +27931,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27904
27931
  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([
27905
27932
  e2
27906
27933
  ]))), U(3, () => {
27907
- Tq(), Q(), n.current.value || $(), K.emit();
27934
+ Iq(), Q(), n.current.value || $(), K.emit();
27908
27935
  }), () => {
27909
27936
  o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
27910
- let t3 = Dq();
27937
+ let t3 = Rq();
27911
27938
  U(4, () => {
27912
- Tq(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
27939
+ Iq(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
27913
27940
  });
27914
27941
  }),
27915
27942
  group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
@@ -27942,7 +27969,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27942
27969
  ]);
27943
27970
  });
27944
27971
  let i2 = z.current;
27945
- Oq().sort((t3, n2) => {
27972
+ zq().sort((t3, n2) => {
27946
27973
  let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
27947
27974
  return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
27948
27975
  }).forEach((e3) => {
@@ -27956,10 +27983,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27956
27983
  }
27957
27984
  function $() {
27958
27985
  var _a2;
27959
- let e2 = (_a2 = Oq().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
27986
+ let e2 = (_a2 = zq().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
27960
27987
  K.setState("value", e2 || void 0);
27961
27988
  }
27962
- function Tq() {
27989
+ function Iq() {
27963
27990
  var _a2, _b;
27964
27991
  if (!n.current.search || c.current.shouldFilter === false) {
27965
27992
  n.current.filtered.count = i.current.size;
@@ -27977,43 +28004,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27977
28004
  }
27978
28005
  n.current.filtered.count = e2;
27979
28006
  }
27980
- function Eq() {
28007
+ function Lq() {
27981
28008
  var _a2, _b;
27982
28009
  var e2;
27983
- let t2 = Dq();
28010
+ let t2 = Rq();
27984
28011
  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({
27985
28012
  block: "nearest"
27986
28013
  })), t2.scrollIntoView({
27987
28014
  block: "nearest"
27988
28015
  }));
27989
28016
  }
27990
- function Dq() {
28017
+ function Rq() {
27991
28018
  var _a2;
27992
28019
  return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
27993
28020
  }
27994
- function Oq() {
28021
+ function zq() {
27995
28022
  var _a2;
27996
28023
  return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
27997
28024
  }
27998
- function kq(e2) {
27999
- let t2 = Oq()[e2];
28025
+ function Bq(e2) {
28026
+ let t2 = zq()[e2];
28000
28027
  t2 && K.setState("value", t2.getAttribute(T));
28001
28028
  }
28002
- function Aq(e2) {
28029
+ function Vq(e2) {
28003
28030
  var t2;
28004
- let n2 = Dq(), i2 = Oq(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28031
+ let n2 = Rq(), i2 = zq(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28005
28032
  (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));
28006
28033
  }
28007
- function jq(e2) {
28034
+ function Hq(e2) {
28008
28035
  var _a2;
28009
- let t2 = (_a2 = Dq()) == null ? void 0 : _a2.closest(N$1), n2;
28036
+ let t2 = (_a2 = Rq()) == null ? void 0 : _a2.closest(N$1), n2;
28010
28037
  for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
28011
- n2 ? K.setState("value", n2.getAttribute(T)) : Aq(e2);
28038
+ n2 ? K.setState("value", n2.getAttribute(T)) : Vq(e2);
28012
28039
  }
28013
- let Mq = () => kq(Oq().length - 1), Nq = (e2) => {
28014
- e2.preventDefault(), e2.metaKey ? Mq() : e2.altKey ? jq(1) : Aq(1);
28015
- }, Pq = (e2) => {
28016
- e2.preventDefault(), e2.metaKey ? kq(0) : e2.altKey ? jq(-1) : Aq(-1);
28040
+ let Uq = () => Bq(zq().length - 1), Wq = (e2) => {
28041
+ e2.preventDefault(), e2.metaKey ? Uq() : e2.altKey ? Hq(1) : Vq(1);
28042
+ }, Gq = (e2) => {
28043
+ e2.preventDefault(), e2.metaKey ? Bq(0) : e2.altKey ? Hq(-1) : Vq(-1);
28017
28044
  };
28018
28045
  return import_react.createElement(Primitive.div, {
28019
28046
  ref: t,
@@ -28027,27 +28054,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28027
28054
  if (!(e2.defaultPrevented || n2)) switch (e2.key) {
28028
28055
  case "n":
28029
28056
  case "j":
28030
- E && e2.ctrlKey && Nq(e2);
28057
+ E && e2.ctrlKey && Wq(e2);
28031
28058
  break;
28032
28059
  case "ArrowDown":
28033
- Nq(e2);
28060
+ Wq(e2);
28034
28061
  break;
28035
28062
  case "p":
28036
28063
  case "k":
28037
- E && e2.ctrlKey && Pq(e2);
28064
+ E && e2.ctrlKey && Gq(e2);
28038
28065
  break;
28039
28066
  case "ArrowUp":
28040
- Pq(e2);
28067
+ Gq(e2);
28041
28068
  break;
28042
28069
  case "Home":
28043
- e2.preventDefault(), kq(0);
28070
+ e2.preventDefault(), Bq(0);
28044
28071
  break;
28045
28072
  case "End":
28046
- e2.preventDefault(), Mq();
28073
+ e2.preventDefault(), Uq();
28047
28074
  break;
28048
28075
  case "Enter": {
28049
28076
  e2.preventDefault();
28050
- let t3 = Dq();
28077
+ let t3 = Rq();
28051
28078
  if (t3) {
28052
28079
  let e3 = new Event(Z);
28053
28080
  t3.dispatchEvent(e3);
@@ -28335,10 +28362,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28335
28362
  function smartMatchFilter(e, t, n) {
28336
28363
  return smartMatch(t, e) ? 1 : n && smartMatch(t, n) ? 0.8 : 0;
28337
28364
  }
28338
- let import_compiler_runtime$35;
28339
- import_compiler_runtime$35 = require_compiler_runtime();
28365
+ let import_compiler_runtime$36;
28366
+ import_compiler_runtime$36 = require_compiler_runtime();
28340
28367
  Command = import_react.forwardRef((e, t) => {
28341
- let n = (0, import_compiler_runtime$35.c)(9), i, o;
28368
+ let n = (0, import_compiler_runtime$36.c)(9), i, o;
28342
28369
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
28343
28370
  let s;
28344
28371
  n[3] === i ? s = n[4] : (s = cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", i), n[3] = i, n[4] = s);
@@ -28352,7 +28379,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28352
28379
  });
28353
28380
  Command.displayName = _e.displayName;
28354
28381
  CommandInput = import_react.forwardRef((e, t) => {
28355
- let n = (0, import_compiler_runtime$35.c)(19), i, o, s, c;
28382
+ let n = (0, import_compiler_runtime$36.c)(19), i, o, s, c;
28356
28383
  n[0] === e ? (i = n[1], o = n[2], s = n[3], c = n[4]) : ({ className: i, icon: o, rootClassName: c, ...s } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s, n[4] = c);
28357
28384
  let d;
28358
28385
  n[5] === c ? d = n[6] : (d = cn("flex items-center border-b px-3", c), n[5] = c, n[6] = d);
@@ -28380,7 +28407,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28380
28407
  });
28381
28408
  CommandInput.displayName = _e.Input.displayName;
28382
28409
  CommandList = import_react.forwardRef((e, t) => {
28383
- let n = (0, import_compiler_runtime$35.c)(9), i, o;
28410
+ let n = (0, import_compiler_runtime$36.c)(9), i, o;
28384
28411
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
28385
28412
  let s;
28386
28413
  n[3] === i ? s = n[4] : (s = cn("max-h-[300px] overflow-y-auto overflow-x-hidden", i), n[3] = i, n[4] = s);
@@ -28393,7 +28420,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28393
28420
  });
28394
28421
  CommandList.displayName = _e.List.displayName;
28395
28422
  CommandEmpty = import_react.forwardRef((e, t) => {
28396
- let n = (0, import_compiler_runtime$35.c)(3), i;
28423
+ let n = (0, import_compiler_runtime$36.c)(3), i;
28397
28424
  return n[0] !== e || n[1] !== t ? (i = (0, import_jsx_runtime.jsx)(_e.Empty, {
28398
28425
  ref: t,
28399
28426
  className: "py-6 text-center text-sm",
@@ -28402,7 +28429,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28402
28429
  });
28403
28430
  CommandEmpty.displayName = _e.Empty.displayName;
28404
28431
  var CommandGroup = import_react.forwardRef((e, t) => {
28405
- let n = (0, import_compiler_runtime$35.c)(9), i, o;
28432
+ let n = (0, import_compiler_runtime$36.c)(9), i, o;
28406
28433
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
28407
28434
  let s;
28408
28435
  n[3] === i ? s = n[4] : (s = cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", i), n[3] = i, n[4] = s);
@@ -28415,7 +28442,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28415
28442
  });
28416
28443
  CommandGroup.displayName = _e.Group.displayName;
28417
28444
  CommandSeparator = import_react.forwardRef((e, t) => {
28418
- let n = (0, import_compiler_runtime$35.c)(9), i, a;
28445
+ let n = (0, import_compiler_runtime$36.c)(9), i, a;
28419
28446
  n[0] === e ? (i = n[1], a = n[2]) : ({ className: i, ...a } = e, n[0] = e, n[1] = i, n[2] = a);
28420
28447
  let o;
28421
28448
  n[3] === i ? o = n[4] : (o = menuSeparatorVariants({
@@ -28430,7 +28457,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28430
28457
  });
28431
28458
  CommandSeparator.displayName = _e.Separator.displayName;
28432
28459
  CommandItem = import_react.forwardRef((e, t) => {
28433
- let n = (0, import_compiler_runtime$35.c)(17), i, o, s, c, d;
28460
+ let n = (0, import_compiler_runtime$36.c)(17), i, o, s, c, d;
28434
28461
  if (n[0] !== t || n[1] !== e) {
28435
28462
  let { className: f2, variant: h, inset: _, ...v } = e;
28436
28463
  i = _e.Item, o = t, n[7] !== f2 || n[8] !== _ || n[9] !== h ? (s = cn(menuItemVariants({
@@ -28447,165 +28474,165 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28447
28474
  }), n[11] = i, n[12] = o, n[13] = s, n[14] = c, n[15] = d, n[16] = f) : f = n[16], f;
28448
28475
  });
28449
28476
  CommandItem.displayName = _e.Item.displayName;
28450
- var import_compiler_runtime$34 = require_compiler_runtime();
28477
+ var import_compiler_runtime$35 = require_compiler_runtime();
28451
28478
  let ComboboxContext;
28452
28479
  ComboboxContext = (0, import_react.createContext)({
28453
28480
  isSelected: () => false,
28454
28481
  onSelect: Functions.NOOP
28455
28482
  });
28456
28483
  Combobox = (e) => {
28457
- let t = (0, import_compiler_runtime$34.c)(106), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J, Q;
28484
+ let t = (0, import_compiler_runtime$35.c)(106), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J, Q;
28458
28485
  t[0] === e ? (n = t[1], i = t[2], o = 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: o, 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] = o, 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);
28459
- let $ = I === void 0 ? false : I, Tq = z === void 0 ? true : z, Eq = U === void 0 ? "Search..." : U, Dq = K === void 0 ? "Nothing found." : K, Oq = q === void 0 ? false : q, kq = J === void 0 ? false : J, Aq = s ?? false, jq;
28460
- t[25] !== v || t[26] !== w || t[27] !== Aq ? (jq = {
28486
+ let $ = I === void 0 ? false : I, Iq = z === void 0 ? true : z, Lq = U === void 0 ? "Search..." : U, Rq = K === void 0 ? "Nothing found." : K, zq = q === void 0 ? false : q, Bq = J === void 0 ? false : J, Vq = s ?? false, Hq;
28487
+ t[25] !== v || t[26] !== w || t[27] !== Vq ? (Hq = {
28461
28488
  prop: w,
28462
- defaultProp: Aq,
28489
+ defaultProp: Vq,
28463
28490
  onChange: v
28464
- }, t[25] = v, t[26] = w, t[27] = Aq, t[28] = jq) : jq = t[28];
28465
- let [Mq, Nq] = useControllableState(jq), Pq = Mq === void 0 ? false : Mq, Fq;
28466
- t[29] === S ? Fq = t[30] : (Fq = (e2) => {
28491
+ }, t[25] = v, t[26] = w, t[27] = Vq, t[28] = Hq) : Hq = t[28];
28492
+ let [Uq, Wq] = useControllableState(Hq), Gq = Uq === void 0 ? false : Uq, Kq;
28493
+ t[29] === S ? Kq = t[30] : (Kq = (e2) => {
28467
28494
  S == null ? void 0 : S(e2);
28468
- }, t[29] = S, t[30] = Fq);
28469
- let Iq;
28470
- t[31] !== c || t[32] !== Fq || t[33] !== Q ? (Iq = {
28495
+ }, t[29] = S, t[30] = Kq);
28496
+ let qq;
28497
+ t[31] !== c || t[32] !== Kq || t[33] !== Q ? (qq = {
28471
28498
  prop: Q,
28472
28499
  defaultProp: c,
28473
- onChange: Fq
28474
- }, t[31] = c, t[32] = Fq, t[33] = Q, t[34] = Iq) : Iq = t[34];
28475
- let [Lq, Rq] = useControllableState(Iq), zq;
28476
- t[35] === Lq ? zq = t[36] : (zq = (e2) => Array.isArray(Lq) ? Lq.includes(e2) : Lq === e2, t[35] = Lq, t[36] = zq);
28477
- let Bq = zq, Vq;
28478
- t[37] !== _ || t[38] !== $ || t[39] !== Nq || t[40] !== Rq || t[41] !== Lq ? (Vq = (e2) => {
28500
+ onChange: Kq
28501
+ }, t[31] = c, t[32] = Kq, t[33] = Q, t[34] = qq) : qq = t[34];
28502
+ let [Jq, Yq] = useControllableState(qq), Xq;
28503
+ t[35] === Jq ? Xq = t[36] : (Xq = (e2) => Array.isArray(Jq) ? Jq.includes(e2) : Jq === e2, t[35] = Jq, t[36] = Xq);
28504
+ let Zq = Xq, Qq;
28505
+ t[37] !== _ || t[38] !== $ || t[39] !== Wq || t[40] !== Yq || t[41] !== Jq ? (Qq = (e2) => {
28479
28506
  let t2 = e2;
28480
- if ($) if (Array.isArray(Lq)) if (Lq.includes(t2)) {
28481
- let n2 = Lq.filter((t3) => t3 !== e2);
28507
+ if ($) if (Array.isArray(Jq)) if (Jq.includes(t2)) {
28508
+ let n2 = Jq.filter((t3) => t3 !== e2);
28482
28509
  t2 = n2.length > 0 ? n2 : [];
28483
28510
  } else t2 = [
28484
- ...Lq,
28511
+ ...Jq,
28485
28512
  t2
28486
28513
  ];
28487
28514
  else t2 = [
28488
28515
  t2
28489
28516
  ];
28490
- else Lq === e2 && (t2 = null);
28491
- Rq(t2), (_ ?? $) || Nq(false);
28492
- }, t[37] = _, t[38] = $, t[39] = Nq, t[40] = Rq, t[41] = Lq, t[42] = Vq) : Vq = t[42];
28493
- let Hq = Vq, Uq;
28494
- t[43] !== Oq || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== Lq ? (Uq = () => $ && Oq && E ? E : Lq == null ? E ?? "--" : Array.isArray(Lq) ? Lq.length === 0 ? E ?? "--" : Lq.length === 1 && d !== void 0 ? d(Lq[0]) : `${Lq.length} selected` : d === void 0 ? E ?? "--" : d(Lq), t[43] = Oq, t[44] = d, t[45] = $, t[46] = E, t[47] = Lq, t[48] = Uq) : Uq = t[48];
28495
- let Wq = Uq, Gq;
28496
- t[49] !== Hq || t[50] !== Bq ? (Gq = {
28497
- isSelected: Bq,
28498
- onSelect: Hq
28499
- }, t[49] = Hq, t[50] = Bq, t[51] = Gq) : Gq = t[51];
28500
- let Kq = Gq, Jq;
28501
- t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Jq = cn("relative"), t[52] = Jq) : Jq = t[52];
28502
- let Xq;
28503
- t[53] !== kq || t[54] !== Nq ? (Xq = (e2) => {
28504
- kq && e2 || Nq(e2);
28505
- }, t[53] = kq, t[54] = Nq, t[55] = Xq) : Xq = t[55];
28506
- let Zq = kq && "cursor-not-allowed opacity-50", Qq;
28507
- t[56] !== o || t[57] !== Zq ? (Qq = 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", Zq, o), t[56] = o, t[57] = Zq, t[58] = Qq) : Qq = t[58];
28508
- let $q;
28509
- t[59] !== O || t[60] !== Wq || t[61] !== Lq ? ($q = O ? O(Lq ?? null) : Wq(), t[59] = O, t[60] = Wq, t[61] = Lq, t[62] = $q) : $q = t[62];
28510
- let eJ;
28511
- t[63] === $q ? eJ = t[64] : (eJ = (0, import_jsx_runtime.jsx)("span", {
28517
+ else Jq === e2 && (t2 = null);
28518
+ Yq(t2), (_ ?? $) || Wq(false);
28519
+ }, t[37] = _, t[38] = $, t[39] = Wq, t[40] = Yq, t[41] = Jq, t[42] = Qq) : Qq = t[42];
28520
+ let $q = Qq, eJ;
28521
+ t[43] !== zq || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== Jq ? (eJ = () => $ && zq && E ? E : Jq == null ? E ?? "--" : Array.isArray(Jq) ? Jq.length === 0 ? E ?? "--" : Jq.length === 1 && d !== void 0 ? d(Jq[0]) : `${Jq.length} selected` : d === void 0 ? E ?? "--" : d(Jq), t[43] = zq, t[44] = d, t[45] = $, t[46] = E, t[47] = Jq, t[48] = eJ) : eJ = t[48];
28522
+ let tJ = eJ, nJ;
28523
+ t[49] !== $q || t[50] !== Zq ? (nJ = {
28524
+ isSelected: Zq,
28525
+ onSelect: $q
28526
+ }, t[49] = $q, t[50] = Zq, t[51] = nJ) : nJ = t[51];
28527
+ let rJ = nJ, iJ;
28528
+ t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iJ = cn("relative"), t[52] = iJ) : iJ = t[52];
28529
+ let aJ;
28530
+ t[53] !== Bq || t[54] !== Wq ? (aJ = (e2) => {
28531
+ Bq && e2 || Wq(e2);
28532
+ }, t[53] = Bq, t[54] = Wq, t[55] = aJ) : aJ = t[55];
28533
+ let sJ = Bq && "cursor-not-allowed opacity-50", lJ;
28534
+ t[56] !== o || t[57] !== sJ ? (lJ = 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", sJ, o), t[56] = o, t[57] = sJ, t[58] = lJ) : lJ = t[58];
28535
+ let uJ;
28536
+ t[59] !== O || t[60] !== tJ || t[61] !== Jq ? (uJ = O ? O(Jq ?? null) : tJ(), t[59] = O, t[60] = tJ, t[61] = Jq, t[62] = uJ) : uJ = t[62];
28537
+ let dJ;
28538
+ t[63] === uJ ? dJ = t[64] : (dJ = (0, import_jsx_runtime.jsx)("span", {
28512
28539
  className: "truncate flex-1 min-w-0",
28513
- children: $q
28514
- }), t[63] = $q, t[64] = eJ);
28515
- let tJ;
28516
- t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (tJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28540
+ children: uJ
28541
+ }), t[63] = uJ, t[64] = dJ);
28542
+ let fJ;
28543
+ t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28517
28544
  className: "ml-3 w-4 h-4 opacity-50 shrink-0"
28518
- }), t[65] = tJ) : tJ = t[65];
28519
- let nJ;
28520
- t[66] !== kq || t[67] !== h || t[68] !== Pq || t[69] !== Qq || t[70] !== eJ ? (nJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28545
+ }), t[65] = fJ) : fJ = t[65];
28546
+ let pJ;
28547
+ t[66] !== Bq || t[67] !== h || t[68] !== Gq || t[69] !== lJ || t[70] !== dJ ? (pJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28521
28548
  asChild: true,
28522
28549
  children: (0, import_jsx_runtime.jsxs)("button", {
28523
28550
  id: h,
28524
28551
  type: "button",
28525
- className: Qq,
28526
- "aria-expanded": Pq,
28527
- "aria-disabled": kq,
28552
+ className: lJ,
28553
+ "aria-expanded": Gq,
28554
+ "aria-disabled": Bq,
28528
28555
  children: [
28529
- eJ,
28530
- tJ
28556
+ dJ,
28557
+ fJ
28531
28558
  ]
28532
28559
  })
28533
- }), t[66] = kq, t[67] = h, t[68] = Pq, t[69] = Qq, t[70] = eJ, t[71] = nJ) : nJ = t[71];
28534
- let rJ;
28535
- t[72] !== Eq || t[73] !== y || t[74] !== M ? (rJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28536
- placeholder: Eq,
28560
+ }), t[66] = Bq, t[67] = h, t[68] = Gq, t[69] = lJ, t[70] = dJ, t[71] = pJ) : pJ = t[71];
28561
+ let mJ;
28562
+ t[72] !== Lq || t[73] !== y || t[74] !== M ? (mJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28563
+ placeholder: Lq,
28537
28564
  rootClassName: "px-1 h-8",
28538
28565
  autoFocus: true,
28539
28566
  value: M,
28540
28567
  onValueChange: y
28541
- }), t[72] = Eq, t[73] = y, t[74] = M, t[75] = rJ) : rJ = t[75];
28542
- let iJ;
28543
- t[76] === Dq ? iJ = t[77] : (iJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28544
- children: Dq
28545
- }), t[76] = Dq, t[77] = iJ);
28546
- let aJ;
28547
- t[78] !== n || t[79] !== Kq ? (aJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28548
- value: Kq,
28568
+ }), t[72] = Lq, t[73] = y, t[74] = M, t[75] = mJ) : mJ = t[75];
28569
+ let hJ;
28570
+ t[76] === Rq ? hJ = t[77] : (hJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28571
+ children: Rq
28572
+ }), t[76] = Rq, t[77] = hJ);
28573
+ let gJ;
28574
+ t[78] !== n || t[79] !== rJ ? (gJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28575
+ value: rJ,
28549
28576
  children: n
28550
- }), t[78] = n, t[79] = Kq, t[80] = aJ) : aJ = t[80];
28551
- let oJ;
28552
- t[81] !== iJ || t[82] !== aJ ? (oJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28577
+ }), t[78] = n, t[79] = rJ, t[80] = gJ) : gJ = t[80];
28578
+ let _J;
28579
+ t[81] !== hJ || t[82] !== gJ ? (_J = (0, import_jsx_runtime.jsxs)(CommandList, {
28553
28580
  className: "max-h-60 py-.5",
28554
28581
  children: [
28555
- iJ,
28556
- aJ
28582
+ hJ,
28583
+ gJ
28557
28584
  ]
28558
- }), t[81] = iJ, t[82] = aJ, t[83] = oJ) : oJ = t[83];
28559
- let sJ;
28560
- t[84] !== f || t[85] !== Tq || t[86] !== rJ || t[87] !== oJ ? (sJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28585
+ }), t[81] = hJ, t[82] = gJ, t[83] = _J) : _J = t[83];
28586
+ let vJ;
28587
+ t[84] !== f || t[85] !== Iq || t[86] !== mJ || t[87] !== _J ? (vJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28561
28588
  className: "w-full min-w-(--radix-popover-trigger-width) p-0",
28562
28589
  align: "start",
28563
28590
  children: (0, import_jsx_runtime.jsxs)(Command, {
28564
28591
  filter: f,
28565
- shouldFilter: Tq,
28592
+ shouldFilter: Iq,
28566
28593
  children: [
28567
- rJ,
28568
- oJ
28594
+ mJ,
28595
+ _J
28569
28596
  ]
28570
28597
  })
28571
- }), t[84] = f, t[85] = Tq, t[86] = rJ, t[87] = oJ, t[88] = sJ) : sJ = t[88];
28572
- let cJ;
28573
- t[89] !== Pq || t[90] !== Xq || t[91] !== nJ || t[92] !== sJ ? (cJ = (0, import_jsx_runtime.jsxs)(Popover, {
28574
- open: Pq,
28575
- onOpenChange: Xq,
28598
+ }), t[84] = f, t[85] = Iq, t[86] = mJ, t[87] = _J, t[88] = vJ) : vJ = t[88];
28599
+ let yJ;
28600
+ t[89] !== Gq || t[90] !== aJ || t[91] !== pJ || t[92] !== vJ ? (yJ = (0, import_jsx_runtime.jsxs)(Popover, {
28601
+ open: Gq,
28602
+ onOpenChange: aJ,
28576
28603
  children: [
28577
- nJ,
28578
- sJ
28604
+ pJ,
28605
+ vJ
28579
28606
  ]
28580
- }), t[89] = Pq, t[90] = Xq, t[91] = nJ, t[92] = sJ, t[93] = cJ) : cJ = t[93];
28581
- let lJ;
28582
- t[94] !== Oq || t[95] !== i || t[96] !== kq || t[97] !== d || t[98] !== Hq || t[99] !== $ || t[100] !== Lq ? (lJ = $ && Oq && (0, import_jsx_runtime.jsx)("div", {
28607
+ }), t[89] = Gq, t[90] = aJ, t[91] = pJ, t[92] = vJ, t[93] = yJ) : yJ = t[93];
28608
+ let bJ;
28609
+ t[94] !== zq || t[95] !== i || t[96] !== Bq || t[97] !== d || t[98] !== $q || t[99] !== $ || t[100] !== Jq ? (bJ = $ && zq && (0, import_jsx_runtime.jsx)("div", {
28583
28610
  className: cn("flex flex-col gap-1 items-start", i),
28584
- children: Array.isArray(Lq) && Lq.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28611
+ children: Array.isArray(Jq) && Jq.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28585
28612
  variant: "secondary",
28586
28613
  children: [
28587
28614
  (d == null ? void 0 : d(e2)) ?? String(e2),
28588
28615
  (0, import_jsx_runtime.jsx)(CircleX, {
28589
28616
  onClick: () => {
28590
- kq || Hq(e2);
28617
+ Bq || $q(e2);
28591
28618
  },
28592
- className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", kq && "pointer-events-none")
28619
+ className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", Bq && "pointer-events-none")
28593
28620
  })
28594
28621
  ]
28595
28622
  }, String(e2)))
28596
- }), t[94] = Oq, t[95] = i, t[96] = kq, t[97] = d, t[98] = Hq, t[99] = $, t[100] = Lq, t[101] = lJ) : lJ = t[101];
28597
- let uJ;
28598
- return t[102] !== A || t[103] !== cJ || t[104] !== lJ ? (uJ = (0, import_jsx_runtime.jsxs)("div", {
28599
- className: Jq,
28623
+ }), t[94] = zq, t[95] = i, t[96] = Bq, t[97] = d, t[98] = $q, t[99] = $, t[100] = Jq, t[101] = bJ) : bJ = t[101];
28624
+ let xJ;
28625
+ return t[102] !== A || t[103] !== yJ || t[104] !== bJ ? (xJ = (0, import_jsx_runtime.jsxs)("div", {
28626
+ className: iJ,
28600
28627
  ...A,
28601
28628
  children: [
28602
- cJ,
28603
- lJ
28629
+ yJ,
28630
+ bJ
28604
28631
  ]
28605
- }), t[102] = A, t[103] = cJ, t[104] = lJ, t[105] = uJ) : uJ = t[105], uJ;
28632
+ }), t[102] = A, t[103] = yJ, t[104] = bJ, t[105] = xJ) : xJ = t[105], xJ;
28606
28633
  };
28607
28634
  ComboboxItem = import_react.forwardRef((e, t) => {
28608
- let n = (0, import_compiler_runtime$34.c)(20), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
28635
+ let n = (0, import_compiler_runtime$35.c)(20), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
28609
28636
  n[0] !== h || n[1] !== s ? (_ = h.isSelected(s), n[0] = h, n[1] = s, n[2] = _) : _ = n[2];
28610
28637
  let v = _, y;
28611
28638
  n[3] === o ? y = n[4] : (y = cn("pl-6 m-1 py-1", o), n[3] = o, n[4] = y);
@@ -28633,12 +28660,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28633
28660
  }), n[11] = i, n[12] = d, n[13] = v, n[14] = t, n[15] = y, n[16] = S, n[17] = w, n[18] = f, n[19] = E) : E = n[19], E;
28634
28661
  });
28635
28662
  ComboboxItem.displayName = "ComboboxItem";
28636
- var import_compiler_runtime$33 = require_compiler_runtime(), labelVariants = cva([
28663
+ var import_compiler_runtime$34 = require_compiler_runtime(), labelVariants = cva([
28637
28664
  "text-sm font-medium leading-none",
28638
28665
  "data-disabled:cursor-not-allowed data-disabled:opacity-70",
28639
28666
  "group-data-invalid:text-destructive"
28640
28667
  ]), Label = (e) => {
28641
- let t = (0, import_compiler_runtime$33.c)(8), n, i;
28668
+ let t = (0, import_compiler_runtime$34.c)(8), n, i;
28642
28669
  t[0] === e ? (n = t[1], i = t[2]) : ({ className: n, ...i } = e, t[0] = e, t[1] = n, t[2] = i);
28643
28670
  let o;
28644
28671
  t[3] === n ? o = t[4] : (o = cn(labelVariants(), n), t[3] = n, t[4] = o);
@@ -28648,7 +28675,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28648
28675
  ...i
28649
28676
  }), t[5] = i, t[6] = o, t[7] = s) : s = t[7], s;
28650
28677
  }, FieldError = (e) => {
28651
- let t = (0, import_compiler_runtime$33.c)(8), n, i;
28678
+ let t = (0, import_compiler_runtime$34.c)(8), n, i;
28652
28679
  t[0] === e ? (n = t[1], i = t[2]) : ({ className: n, ...i } = e, t[0] = e, t[1] = n, t[2] = i);
28653
28680
  let o;
28654
28681
  t[3] === n ? o = t[4] : (o = cn("text-sm font-medium text-destructive", n), t[3] = n, t[4] = o);
@@ -28673,7 +28700,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28673
28700
  variant: "default"
28674
28701
  }
28675
28702
  }), FieldGroup = (e) => {
28676
- let t = (0, import_compiler_runtime$33.c)(12), n, i, o;
28703
+ let t = (0, import_compiler_runtime$34.c)(12), n, i, o;
28677
28704
  t[0] === e ? (n = t[1], i = t[2], o = t[3]) : ({ className: n, variant: o, ...i } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o);
28678
28705
  let s;
28679
28706
  t[4] === o ? s = t[5] : (s = (e2) => cn(fieldGroupVariants({
@@ -28686,8 +28713,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28686
28713
  className: c,
28687
28714
  ...i
28688
28715
  }), t[9] = i, t[10] = c, t[11] = d) : d = t[11], d;
28689
- }, import_compiler_runtime$32 = require_compiler_runtime(), DateSegment = (e) => {
28690
- let t = (0, import_compiler_runtime$32.c)(8), n, i;
28716
+ }, import_compiler_runtime$33 = require_compiler_runtime(), DateSegment = (e) => {
28717
+ let t = (0, import_compiler_runtime$33.c)(8), n, i;
28691
28718
  t[0] === e ? (n = t[1], i = t[2]) : ({ className: n, ...i } = e, t[0] = e, t[1] = n, t[2] = i);
28692
28719
  let a;
28693
28720
  t[3] === n ? a = t[4] : (a = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp$9), t[3] = n, t[4] = a);
@@ -28697,7 +28724,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28697
28724
  ...i
28698
28725
  }), t[5] = i, t[6] = a, t[7] = o) : o = t[7], o;
28699
28726
  }, DateInput = (e) => {
28700
- let t = (0, import_compiler_runtime$32.c)(12), n, i, o;
28727
+ let t = (0, import_compiler_runtime$33.c)(12), n, i, o;
28701
28728
  t[0] === e ? (n = t[1], i = t[2], o = t[3]) : ({ className: n, variant: o, ...i } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o);
28702
28729
  let s;
28703
28730
  t[4] === o ? s = t[5] : (s = (e2) => cn(fieldGroupVariants({
@@ -28712,7 +28739,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28712
28739
  children: _temp2$7
28713
28740
  }), t[9] = i, t[10] = c, t[11] = d) : d = t[11], d;
28714
28741
  }, TimeField = (e) => {
28715
- let t = (0, import_compiler_runtime$32.c)(21), n, i, a, o, s;
28742
+ let t = (0, import_compiler_runtime$33.c)(21), n, i, a, o, s;
28716
28743
  t[0] === e ? (n = t[1], i = t[2], a = t[3], o = t[4], s = t[5]) : ({ label: o, description: i, errorMessage: a, className: n, ...s } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a, t[4] = o, t[5] = s);
28717
28744
  let c;
28718
28745
  t[6] === n ? c = t[7] : (c = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp4$4), t[6] = n, t[7] = c);
@@ -28754,8 +28781,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28754
28781
  function _temp4$4(e) {
28755
28782
  return cn("group flex flex-col gap-2", e);
28756
28783
  }
28757
- var import_compiler_runtime$31 = require_compiler_runtime(), Popover$1 = (e) => {
28758
- let t = (0, import_compiler_runtime$31.c)(10), n, i, a;
28784
+ var import_compiler_runtime$32 = require_compiler_runtime(), Popover$1 = (e) => {
28785
+ let t = (0, import_compiler_runtime$32.c)(10), n, i, a;
28759
28786
  t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({ className: n, offset: a, ...i } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
28760
28787
  let o = a === void 0 ? 4 : a, s;
28761
28788
  t[4] === n ? s = t[5] : (s = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp$8), t[4] = n, t[5] = s);
@@ -28769,8 +28796,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28769
28796
  function _temp$8(e) {
28770
28797
  return cn("z-50 rounded-md border bg-popover text-popover-foreground shadow-md outline-hidden", "data-entering:animate-in data-entering:fade-in-0 data-entering:zoom-in-95", "data-exiting:animate-out data-exiting:fade-out-0 data-exiting:zoom-out-95", "data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2", e);
28771
28798
  }
28772
- var import_compiler_runtime$30 = require_compiler_runtime(), CalendarHeading = (e) => {
28773
- let t = (0, import_compiler_runtime$30.c)(11), { direction: n } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), i;
28799
+ var import_compiler_runtime$31 = require_compiler_runtime(), CalendarHeading = (e) => {
28800
+ let t = (0, import_compiler_runtime$31.c)(11), { direction: n } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), i;
28774
28801
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = cn(buttonVariants({
28775
28802
  variant: "outline"
28776
28803
  }), "size-7 bg-transparent p-0 opacity-50", "data-hovered:opacity-100"), t[0] = i) : i = t[0];
@@ -28817,7 +28844,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28817
28844
  ]
28818
28845
  }), t[7] = e, t[8] = o, t[9] = f, t[10] = h) : h = t[10], h;
28819
28846
  }, CalendarGrid = (e) => {
28820
- let t = (0, import_compiler_runtime$30.c)(8), n, i;
28847
+ let t = (0, import_compiler_runtime$31.c)(8), n, i;
28821
28848
  t[0] === e ? (n = t[1], i = t[2]) : ({ className: n, ...i } = e, t[0] = e, t[1] = n, t[2] = i);
28822
28849
  let o;
28823
28850
  t[3] === n ? o = t[4] : (o = cn(" border-separate border-spacing-x-0 border-spacing-y-1 ", n), t[3] = n, t[4] = o);
@@ -28827,14 +28854,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28827
28854
  ...i
28828
28855
  }), t[5] = i, t[6] = o, t[7] = s) : s = t[7], s;
28829
28856
  }, CalendarGridHeader = (e) => {
28830
- let t = (0, import_compiler_runtime$30.c)(4), n;
28857
+ let t = (0, import_compiler_runtime$31.c)(4), n;
28831
28858
  t[0] === e ? n = t[1] : ({ ...n } = e, t[0] = e, t[1] = n);
28832
28859
  let i;
28833
28860
  return t[2] === n ? i = t[3] : (i = (0, import_jsx_runtime.jsx)($dfd62f934fc76fed$export$22e2d15eaa4d2377, {
28834
28861
  ...n
28835
28862
  }), t[2] = n, t[3] = i), i;
28836
28863
  }, CalendarHeaderCell = (e) => {
28837
- let t = (0, import_compiler_runtime$30.c)(8), n, i;
28864
+ let t = (0, import_compiler_runtime$31.c)(8), n, i;
28838
28865
  t[0] === e ? (n = t[1], i = t[2]) : ({ className: n, ...i } = e, t[0] = e, t[1] = n, t[2] = i);
28839
28866
  let o;
28840
28867
  t[3] === n ? o = t[4] : (o = cn("w-9 rounded-md text-[0.8rem] font-normal text-muted-foreground", n), t[3] = n, t[4] = o);
@@ -28844,7 +28871,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28844
28871
  ...i
28845
28872
  }), t[5] = i, t[6] = o, t[7] = s) : s = t[7], s;
28846
28873
  }, CalendarGridBody = (e) => {
28847
- let t = (0, import_compiler_runtime$30.c)(8), n, i;
28874
+ let t = (0, import_compiler_runtime$31.c)(8), n, i;
28848
28875
  t[0] === e ? (n = t[1], i = t[2]) : ({ className: n, ...i } = e, t[0] = e, t[1] = n, t[2] = i);
28849
28876
  let o;
28850
28877
  t[3] === n ? o = t[4] : (o = cn("[&>tr>td]:p-0", n), t[3] = n, t[4] = o);
@@ -28854,7 +28881,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28854
28881
  ...i
28855
28882
  }), t[5] = i, t[6] = o, t[7] = s) : s = t[7], s;
28856
28883
  }, CalendarCell = (e) => {
28857
- let t = (0, import_compiler_runtime$30.c)(11), n, i;
28884
+ let t = (0, import_compiler_runtime$31.c)(11), n, i;
28858
28885
  t[0] === e ? (n = t[1], i = t[2]) : ({ className: n, ...i } = e, t[0] = e, t[1] = n, t[2] = i);
28859
28886
  let o = !!import_react.use($dfd62f934fc76fed$export$5e0fc348c00f87a0), s;
28860
28887
  t[3] === o ? s = t[4] : (s = (e2, t2) => cn(buttonVariants({
@@ -28868,7 +28895,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28868
28895
  ...i
28869
28896
  }), t[8] = i, t[9] = d, t[10] = f) : f = t[10], f;
28870
28897
  }, Calendar$1 = (e) => {
28871
- let t = (0, import_compiler_runtime$30.c)(14), n, i, a;
28898
+ let t = (0, import_compiler_runtime$31.c)(14), n, i, a;
28872
28899
  t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({ errorMessage: i, className: n, ...a } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
28873
28900
  let o;
28874
28901
  t[4] === n ? o = t[5] : (o = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp$7), t[4] = n, t[5] = o);
@@ -28902,7 +28929,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28902
28929
  ]
28903
28930
  }), t[10] = a, t[11] = o, t[12] = d, t[13] = f) : f = t[13], f;
28904
28931
  }, RangeCalendar = (e) => {
28905
- let t = (0, import_compiler_runtime$30.c)(14), n, i, a;
28932
+ let t = (0, import_compiler_runtime$31.c)(14), n, i, a;
28906
28933
  t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({ errorMessage: i, className: n, ...a } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
28907
28934
  let o;
28908
28935
  t[4] === n ? o = t[5] : (o = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp4$3), t[4] = n, t[5] = o);
@@ -28962,10 +28989,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28962
28989
  date: e
28963
28990
  });
28964
28991
  }
28965
- let import_compiler_runtime$29, DatePickerContent;
28966
- import_compiler_runtime$29 = require_compiler_runtime();
28992
+ let import_compiler_runtime$30, DatePickerContent;
28993
+ import_compiler_runtime$30 = require_compiler_runtime();
28967
28994
  DatePickerContent = (e) => {
28968
- let t = (0, import_compiler_runtime$29.c)(14), n, i, o;
28995
+ let t = (0, import_compiler_runtime$30.c)(14), n, i, o;
28969
28996
  t[0] === e ? (n = t[1], i = t[2], o = t[3]) : ({ className: n, popoverClassName: i, ...o } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o);
28970
28997
  let s;
28971
28998
  t[4] === i ? s = t[5] : (s = $64fa3d84918910a7$export$c245e6201fed2f75(i, _temp$6), t[4] = i, t[5] = s);
@@ -28983,7 +29010,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28983
29010
  }), t[11] = s, t[12] = d, t[13] = f) : f = t[13], f;
28984
29011
  };
28985
29012
  DatePicker = (e) => {
28986
- let t = (0, import_compiler_runtime$29.c)(26), n, i, o, s, d;
29013
+ let t = (0, import_compiler_runtime$30.c)(26), n, i, o, s, d;
28987
29014
  t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], d = t[5]) : ({ label: s, description: i, errorMessage: o, className: n, ...d } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = d);
28988
29015
  let [f, h] = (0, import_react.useState)(false), _;
28989
29016
  t[6] === n ? _ = t[7] : (_ = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp2$5), t[6] = n, t[7] = _);
@@ -29066,7 +29093,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29066
29093
  }), t[19] = f, t[20] = d, t[21] = _, t[22] = y, t[23] = E, t[24] = O, t[25] = I) : I = t[25], I;
29067
29094
  };
29068
29095
  DateRangePicker = (e) => {
29069
- let t = (0, import_compiler_runtime$29.c)(28), n, i, o, s, d;
29096
+ let t = (0, import_compiler_runtime$30.c)(28), n, i, o, s, d;
29070
29097
  t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], d = t[5]) : ({ label: s, description: i, errorMessage: o, className: n, ...d } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = d);
29071
29098
  let [f, h] = (0, import_react.useState)(false), _;
29072
29099
  t[6] === n ? _ = t[7] : (_ = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp5$1), t[6] = n, t[7] = _);
@@ -29186,7 +29213,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29186
29213
  date: e
29187
29214
  });
29188
29215
  }
29189
- var import_compiler_runtime$28 = require_compiler_runtime();
29216
+ var import_compiler_runtime$29 = require_compiler_runtime();
29190
29217
  function dateToAria(e, t) {
29191
29218
  switch (e) {
29192
29219
  case "date":
@@ -29250,7 +29277,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29250
29277
  };
29251
29278
  }
29252
29279
  const DateLikeInput = (e) => {
29253
- let t = (0, import_compiler_runtime$28.c)(19), { filterType: n, value: i, onChange: a, "aria-label": o, className: s } = e, [c, d] = (0, import_react.useState)(0), [f, h] = (0, import_react.useState)(i), _;
29280
+ let t = (0, import_compiler_runtime$29.c)(19), { filterType: n, value: i, onChange: a, "aria-label": o, className: s } = e, [c, d] = (0, import_react.useState)(0), [f, h] = (0, import_react.useState)(i), _;
29254
29281
  t[0] !== n || t[1] !== a ? (_ = (e2) => {
29255
29282
  e2 !== null && a(ariaToDate(n, e2));
29256
29283
  }, t[0] = n, t[1] = a, t[2] = _) : _ = t[2];
@@ -29288,7 +29315,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29288
29315
  children: O
29289
29316
  }), t[16] = S, t[17] = O, t[18] = A) : A = t[18], A;
29290
29317
  }, DateLikeRangeInput = (e) => {
29291
- let t = (0, import_compiler_runtime$28.c)(40), { filterType: n, min: i, max: a, onRangeChange: o, className: s } = e, [c, d] = (0, import_react.useState)(0), [f, h] = (0, import_react.useState)(i), [_, v] = (0, import_react.useState)(a), y;
29318
+ let t = (0, import_compiler_runtime$29.c)(40), { filterType: n, min: i, max: a, onRangeChange: o, className: s } = e, [c, d] = (0, import_react.useState)(0), [f, h] = (0, import_react.useState)(i), [_, v] = (0, import_react.useState)(a), y;
29292
29319
  t[0] !== n || t[1] !== o ? (y = (e2) => {
29293
29320
  let t2 = parsePastedRange(n, e2.clipboardData.getData("text"));
29294
29321
  t2 && (e2.preventDefault(), e2.stopPropagation(), o(t2.min, t2.max), h(t2.min), v(t2.max), d(_temp2$4));
@@ -29366,17 +29393,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29366
29393
  function _temp2$4(e) {
29367
29394
  return e + 1;
29368
29395
  }
29369
- var import_compiler_runtime$27 = require_compiler_runtime();
29396
+ var import_compiler_runtime$28 = require_compiler_runtime();
29370
29397
  let Chip, MoreChip, ChipWithComma;
29371
29398
  Chip = (e) => {
29372
- let t = (0, import_compiler_runtime$27.c)(2), { children: n } = e, i;
29399
+ let t = (0, import_compiler_runtime$28.c)(2), { children: n } = e, i;
29373
29400
  return t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)("span", {
29374
29401
  className: "inline-flex items-center rounded-sm bg-muted/50 px-1 font-mono text-xs font-normal leading-tight text-foreground",
29375
29402
  children: n
29376
29403
  }), t[0] = n, t[1] = i), i;
29377
29404
  };
29378
29405
  MoreChip = (e) => {
29379
- let t = (0, import_compiler_runtime$27.c)(2), { count: n } = e, i;
29406
+ let t = (0, import_compiler_runtime$28.c)(2), { count: n } = e, i;
29380
29407
  return t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsxs)("span", {
29381
29408
  className: "inline-flex items-center px-1 text-xs italic text-muted-foreground",
29382
29409
  children: [
@@ -29386,7 +29413,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29386
29413
  }), t[0] = n, t[1] = i), i;
29387
29414
  };
29388
29415
  ChipWithComma = (e) => {
29389
- let t = (0, import_compiler_runtime$27.c)(7), { value: n, showComma: i } = e, a;
29416
+ let t = (0, import_compiler_runtime$28.c)(7), { value: n, showComma: i } = e, a;
29390
29417
  t[0] === n ? a = t[1] : (a = (0, import_jsx_runtime.jsx)(Chip, {
29391
29418
  children: n
29392
29419
  }), t[0] = n, t[1] = a);
@@ -29405,7 +29432,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29405
29432
  }), t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
29406
29433
  };
29407
29434
  CompactChipRow = (e) => {
29408
- let t = (0, import_compiler_runtime$27.c)(11), { items: n, max: i } = e, a = i === void 0 ? 3 : i;
29435
+ let t = (0, import_compiler_runtime$28.c)(11), { items: n, max: i } = e, a = i === void 0 ? 3 : i;
29409
29436
  if (n.length === 0) return null;
29410
29437
  let o, s, c;
29411
29438
  if (t[0] !== n || t[1] !== a) {
@@ -29488,14 +29515,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29488
29515
  enabled: i.length > 0
29489
29516
  }), c;
29490
29517
  }
29491
- var import_compiler_runtime$26 = require_compiler_runtime();
29518
+ var import_compiler_runtime$27 = require_compiler_runtime();
29492
29519
  function asArray(e) {
29493
29520
  return e == null ? [] : Array.isArray(e) ? e : [
29494
29521
  e
29495
29522
  ];
29496
29523
  }
29497
29524
  function useSearch(e) {
29498
- let t = (0, import_compiler_runtime$26.c)(10), { options: n, filterFn: i } = e, [a, o] = (0, import_react.useState)(""), s;
29525
+ let t = (0, import_compiler_runtime$27.c)(10), { options: n, filterFn: i } = e, [a, o] = (0, import_react.useState)(""), s;
29499
29526
  bb0: {
29500
29527
  if (!a) {
29501
29528
  s = n;
@@ -29516,7 +29543,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29516
29543
  }, t[7] = c, t[8] = a, t[9] = d) : d = t[9], d;
29517
29544
  }
29518
29545
  function usePinning(e) {
29519
- let t = (0, import_compiler_runtime$26.c)(17), { value: n, pinSelected: i, options: a, searchQuery: o, filteredOptions: s } = e, [c, d] = (0, import_react.useState)(false), f;
29546
+ let t = (0, import_compiler_runtime$27.c)(17), { value: n, pinSelected: i, options: a, searchQuery: o, filteredOptions: s } = e, [c, d] = (0, import_react.useState)(false), f;
29520
29547
  t[0] === n ? f = t[1] : (f = () => new Set(asArray(n)), t[0] = n, t[1] = f);
29521
29548
  let [h, _] = (0, import_react.useState)(f), v;
29522
29549
  t[2] === n ? v = t[3] : (v = () => _(new Set(asArray(n))), t[2] = n, t[3] = v);
@@ -29572,7 +29599,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29572
29599
  };
29573
29600
  }
29574
29601
  function useBulk(e) {
29575
- let t = (0, import_compiler_runtime$26.c)(14), { value: n, onChange: i, multiple: a, options: o, filteredOptions: s, searchQuery: c, maxSelections: d } = e, f;
29602
+ let t = (0, import_compiler_runtime$27.c)(14), { value: n, onChange: i, multiple: a, options: o, filteredOptions: s, searchQuery: c, maxSelections: d } = e, f;
29576
29603
  bb0: {
29577
29604
  if (!a) {
29578
29605
  let e3;
@@ -29635,7 +29662,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29635
29662
  return !e.disabled;
29636
29663
  }
29637
29664
  useSelectList = function(e) {
29638
- let t = (0, import_compiler_runtime$26.c)(44), { options: n, value: i, onChange: a, multiple: o, maxSelections: s, allowSelectNone: c, filterFn: d, pinSelected: f } = e, h = d === void 0 ? multiselectFilterFn : d, _ = f === void 0 ? false : f, v;
29665
+ let t = (0, import_compiler_runtime$27.c)(44), { options: n, value: i, onChange: a, multiple: o, maxSelections: s, allowSelectNone: c, filterFn: d, pinSelected: f } = e, h = d === void 0 ? multiselectFilterFn : d, _ = f === void 0 ? false : f, v;
29639
29666
  t[0] === i ? v = t[1] : (v = new Set(asArray(i)), t[0] = i, t[1] = v);
29640
29667
  let y = v, S;
29641
29668
  if (t[2] !== n) {
@@ -29658,17 +29685,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29658
29685
  searchQuery: M,
29659
29686
  filteredOptions: z
29660
29687
  }, t[9] = z, t[10] = n, t[11] = _, t[12] = M, t[13] = i, t[14] = U) : U = t[14];
29661
- let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), Tq;
29662
- t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (Tq = {
29688
+ let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), Iq;
29689
+ t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (Iq = {
29663
29690
  value: i,
29664
29691
  onChange: a,
29665
29692
  multiple: o,
29666
29693
  maxSelections: s,
29667
29694
  allowSelectNone: c,
29668
29695
  selected: y
29669
- }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = Tq) : Tq = t[21];
29670
- let { isChecked: Eq, toggle: Dq } = useToggle(Tq), Oq;
29671
- t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (Oq = {
29696
+ }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = Iq) : Iq = t[21];
29697
+ let { isChecked: Lq, toggle: Rq } = useToggle(Iq), zq;
29698
+ t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (zq = {
29672
29699
  value: i,
29673
29700
  onChange: a,
29674
29701
  multiple: o,
@@ -29676,24 +29703,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29676
29703
  filteredOptions: z,
29677
29704
  searchQuery: M,
29678
29705
  maxSelections: s
29679
- }, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = Oq) : Oq = t[29];
29680
- let { bulkActions: kq } = useBulk(Oq), Aq;
29681
- t[30] !== J || t[31] !== I ? (Aq = (e2) => {
29706
+ }, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = zq) : zq = t[29];
29707
+ let { bulkActions: Bq } = useBulk(zq), Vq;
29708
+ t[30] !== J || t[31] !== I ? (Vq = (e2) => {
29682
29709
  I(e2), e2 === "" && J();
29683
- }, t[30] = J, t[31] = I, t[32] = Aq) : Aq = t[32];
29684
- let jq = Aq, Mq;
29685
- return t[33] !== kq || t[34] !== Eq || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== jq || t[41] !== Dq || t[42] !== Q ? (Mq = {
29710
+ }, t[30] = J, t[31] = I, t[32] = Vq) : Vq = t[32];
29711
+ let Hq = Vq, Uq;
29712
+ return t[33] !== Bq || t[34] !== Lq || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== Hq || t[41] !== Rq || t[42] !== Q ? (Uq = {
29686
29713
  searchQuery: M,
29687
- setSearchQuery: jq,
29714
+ setSearchQuery: Hq,
29688
29715
  open: K,
29689
29716
  setOpen: q,
29690
29717
  visibleOptions: Q,
29691
29718
  pinnedCount: $,
29692
- isChecked: Eq,
29693
- toggle: Dq,
29694
- bulkActions: kq,
29719
+ isChecked: Lq,
29720
+ toggle: Rq,
29721
+ bulkActions: Bq,
29695
29722
  labelOf: O
29696
- }, t[33] = kq, t[34] = Eq, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = jq, t[41] = Dq, t[42] = Q, t[43] = Mq) : Mq = t[43], Mq;
29723
+ }, t[33] = Bq, t[34] = Lq, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = Hq, t[41] = Rq, t[42] = Q, t[43] = Uq) : Uq = t[43], Uq;
29697
29724
  };
29698
29725
  const Sets = {
29699
29726
  merge(...e) {
@@ -29928,9 +29955,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29928
29955
  children: "No values available"
29929
29956
  });
29930
29957
  };
29931
- var import_compiler_runtime$25 = require_compiler_runtime();
29958
+ var import_compiler_runtime$26 = require_compiler_runtime();
29932
29959
  const RegexInput = import_react.forwardRef((e, t) => {
29933
- let n = (0, import_compiler_runtime$25.c)(18), { id: i, value: o, onChange: s, onKeyDown: c, placeholder: d, className: f, autoFocus: h, "aria-label": _ } = e, v = d === void 0 ? "pattern" : d, y;
29960
+ let n = (0, import_compiler_runtime$26.c)(18), { id: i, value: o, onChange: s, onKeyDown: c, placeholder: d, className: f, autoFocus: h, "aria-label": _ } = e, v = d === void 0 ? "pattern" : d, y;
29934
29961
  n[0] === f ? y = n[1] : (y = cn("flex items-stretch h-6 mb-1 rounded-sm border border-input bg-background shadow-xs-solid focus-within:shadow-md-solid focus-within:ring-1 focus-within:ring-ring focus-within:border-primary", f), n[0] = f, n[1] = y);
29935
29962
  let S;
29936
29963
  n[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = (0, import_jsx_runtime.jsx)(Slash, {}), n[2] = S) : S = n[2];
@@ -29964,7 +29991,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29964
29991
  });
29965
29992
  RegexInput.displayName = "RegexInput";
29966
29993
  var Slash = () => {
29967
- let e = (0, import_compiler_runtime$25.c)(1), t;
29994
+ let e = (0, import_compiler_runtime$26.c)(1), t;
29968
29995
  return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = (0, import_jsx_runtime.jsx)("span", {
29969
29996
  className: "px-1.5 flex items-center text-muted-foreground font-code text-sm select-none",
29970
29997
  children: "/"
@@ -30022,7 +30049,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30022
30049
  type: S,
30023
30050
  operator: E,
30024
30051
  draft: mergeNumberTextDraft(A, I)
30025
- }), Tq = $ === void 0, Eq = Tq ? getMissingValueMessage(S, E) : "Apply filter", Dq = () => {
30052
+ }), Iq = $ === void 0, Lq = Iq ? getMissingValueMessage(S, E) : "Apply filter", Rq = () => {
30026
30053
  if (!$) return;
30027
30054
  let e2 = $;
30028
30055
  t.setColumnFilters((t2) => {
@@ -30041,20 +30068,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30041
30068
  value: e2
30042
30069
  }, n2;
30043
30070
  }), i();
30044
- }, Oq = () => {
30071
+ }, zq = () => {
30045
30072
  a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
30046
- }, kq = !OPERATORS_WITHOUT_VALUE.has(E), Aq = OPERATORS_BY_TYPE[S], jq = (0, import_react.useRef)(null), Mq = (0, import_react.useRef)(null);
30073
+ }, Bq = !OPERATORS_WITHOUT_VALUE.has(E), Vq = OPERATORS_BY_TYPE[S], Hq = (0, import_react.useRef)(null), Uq = (0, import_react.useRef)(null);
30047
30074
  return (0, import_react.useEffect)(() => {
30048
30075
  var _a2, _b;
30049
- let e2 = (_a2 = jq.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30050
- e2 ? e2.focus() : (_b = Mq.current) == null ? void 0 : _b.focus();
30076
+ let e2 = (_a2 = Hq.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30077
+ e2 ? e2.focus() : (_b = Uq.current) == null ? void 0 : _b.focus();
30051
30078
  }, [
30052
30079
  S,
30053
30080
  E
30054
30081
  ]), (0, import_jsx_runtime.jsxs)("form", {
30055
30082
  className: "flex flex-row gap-4 items-end p-3",
30056
30083
  onSubmit: (e2) => {
30057
- e2.preventDefault(), Dq();
30084
+ e2.preventDefault(), Rq();
30058
30085
  },
30059
30086
  onKeyDownCapture: (e2) => {
30060
30087
  e2.key === "Tab" && e2.stopPropagation();
@@ -30095,13 +30122,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30095
30122
  onValueChange: (e2) => Q(e2),
30096
30123
  children: [
30097
30124
  (0, import_jsx_runtime.jsx)(SelectTrigger, {
30098
- ref: Mq,
30125
+ ref: Uq,
30099
30126
  id: s,
30100
30127
  className: "h-6 mb-1 bg-transparent",
30101
30128
  children: (0, import_jsx_runtime.jsx)(SelectValue, {})
30102
30129
  }),
30103
30130
  (0, import_jsx_runtime.jsx)(SelectContent, {
30104
- children: Aq.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30131
+ children: Vq.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30105
30132
  value: e2,
30106
30133
  children: OPERATOR_LABELS[e2]
30107
30134
  }, e2))
@@ -30110,8 +30137,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30110
30137
  }, S)
30111
30138
  ]
30112
30139
  }),
30113
- kq && (0, import_jsx_runtime.jsxs)("div", {
30114
- ref: jq,
30140
+ Bq && (0, import_jsx_runtime.jsxs)("div", {
30141
+ ref: Hq,
30115
30142
  className: "flex flex-col gap-1",
30116
30143
  children: [
30117
30144
  (0, import_jsx_runtime.jsx)("label", {
@@ -30138,14 +30165,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30138
30165
  className: "flex gap-1 mb-1",
30139
30166
  children: [
30140
30167
  (0, import_jsx_runtime.jsx)(Tooltip, {
30141
- content: Eq,
30168
+ content: Lq,
30142
30169
  children: (0, import_jsx_runtime.jsx)("span", {
30143
30170
  className: "inline-flex",
30144
30171
  children: (0, import_jsx_runtime.jsx)(Button, {
30145
30172
  type: "submit",
30146
30173
  size: "icon",
30147
30174
  variant: "ghost",
30148
- disabled: Tq,
30175
+ disabled: Iq,
30149
30176
  className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
30150
30177
  "aria-label": "Apply filter",
30151
30178
  children: (0, import_jsx_runtime.jsx)(Check, {
@@ -30177,7 +30204,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30177
30204
  size: "icon",
30178
30205
  variant: "ghost",
30179
30206
  className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
30180
- onClick: Oq,
30207
+ onClick: zq,
30181
30208
  "aria-label": "Remove filter",
30182
30209
  children: (0, import_jsx_runtime.jsx)(Trash2, {
30183
30210
  className: "h-3.5 w-3.5",
@@ -30444,9 +30471,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30444
30471
  });
30445
30472
  }
30446
30473
  }
30447
- var import_compiler_runtime$24 = require_compiler_runtime();
30474
+ var import_compiler_runtime$25 = require_compiler_runtime();
30448
30475
  const DraggablePopover = (e) => {
30449
- let t = (0, import_compiler_runtime$24.c)(25), n, i, a;
30476
+ let t = (0, import_compiler_runtime$25.c)(25), n, i, a;
30450
30477
  t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({ children: n, className: i, ...a } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
30451
30478
  let o;
30452
30479
  t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
@@ -30809,9 +30836,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
30809
30836
  ...e
30810
30837
  ];
30811
30838
  }
30812
- var import_compiler_runtime$23 = require_compiler_runtime();
30839
+ var import_compiler_runtime$24 = require_compiler_runtime();
30813
30840
  function useScrollContainerHeight(e) {
30814
- let t = (0, import_compiler_runtime$23.c)(8), { maxHeight: n, virtualize: i } = e, a = (0, import_react.useRef)(null), o, s;
30841
+ let t = (0, import_compiler_runtime$24.c)(8), { maxHeight: n, virtualize: i } = e, a = (0, import_react.useRef)(null), o, s;
30815
30842
  t[0] !== n || t[1] !== i ? (o = () => {
30816
30843
  if (!a.current) return;
30817
30844
  let e2 = a.current.parentElement;
@@ -31408,9 +31435,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
31408
31435
  var _a2;
31409
31436
  window.getSelection && ((_a2 = window.getSelection()) == null ? void 0 : _a2.empty());
31410
31437
  };
31411
- var import_compiler_runtime$22 = require_compiler_runtime();
31438
+ var import_compiler_runtime$23 = require_compiler_runtime();
31412
31439
  const CellSelectionProvider = (e) => {
31413
- let t = (0, import_compiler_runtime$22.c)(3), { children: n } = e, i;
31440
+ let t = (0, import_compiler_runtime$23.c)(3), { children: n } = e, i;
31414
31441
  t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = [
31415
31442
  cellSelectionStateAtom
31416
31443
  ], t[0] = i) : i = t[0];
@@ -31965,15 +31992,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
31965
31992
  ...e
31966
31993
  });
31967
31994
  }
31968
- let import_compiler_runtime$21, ContextMenuPortal, InternalContextMenuContent, InternalContextMenuSubContent, ContextMenuSubTrigger;
31969
- import_compiler_runtime$21 = require_compiler_runtime();
31995
+ let import_compiler_runtime$22, ContextMenuPortal, InternalContextMenuContent, InternalContextMenuSubContent, ContextMenuSubTrigger;
31996
+ import_compiler_runtime$22 = require_compiler_runtime();
31970
31997
  ContextMenu = Root2$2;
31971
31998
  ContextMenuTrigger = Trigger$1;
31972
31999
  ContextMenuPortal = withFullScreenAsRoot(Portal2);
31973
32000
  InternalContextMenuContent = withSmartCollisionBoundary(Content2);
31974
32001
  InternalContextMenuSubContent = withSmartCollisionBoundary(SubContent2);
31975
32002
  ContextMenuSubTrigger = import_react.forwardRef((e, t) => {
31976
- let n = (0, import_compiler_runtime$21.c)(14), i, a, o, s;
32003
+ let n = (0, import_compiler_runtime$22.c)(14), i, a, o, s;
31977
32004
  n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({ className: a, inset: o, children: i, ...s } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
31978
32005
  let c;
31979
32006
  n[5] !== a || n[6] !== o ? (c = menuSubTriggerVariants({
@@ -31997,7 +32024,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
31997
32024
  });
31998
32025
  ContextMenuSubTrigger.displayName = SubTrigger2.displayName;
31999
32026
  var contentCommon = "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", ContextMenuSubContent = import_react.forwardRef((e, t) => {
32000
- let n = (0, import_compiler_runtime$21.c)(9), i, o;
32027
+ let n = (0, import_compiler_runtime$22.c)(9), i, o;
32001
32028
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
32002
32029
  let s;
32003
32030
  n[3] === i ? s = n[4] : (s = cn(menuContentCommon({
@@ -32012,7 +32039,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32012
32039
  });
32013
32040
  ContextMenuSubContent.displayName = SubContent2.displayName;
32014
32041
  ContextMenuContent = import_react.forwardRef((e, t) => {
32015
- let n = (0, import_compiler_runtime$21.c)(15), i, o, s;
32042
+ let n = (0, import_compiler_runtime$22.c)(15), i, o, s;
32016
32043
  n[0] === e ? (i = n[1], o = n[2], s = n[3]) : ({ className: i, scrollable: s, ...o } = e, n[0] = e, n[1] = i, n[2] = o, n[3] = s);
32017
32044
  let c = s === void 0 ? true : s, d;
32018
32045
  n[4] !== i || n[5] !== c ? (d = cn(menuContentCommon(), contentCommon, c && "overflow-auto", i), n[4] = i, n[5] = c, n[6] = d) : d = n[6];
@@ -32035,7 +32062,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32035
32062
  });
32036
32063
  ContextMenuContent.displayName = Content2.displayName;
32037
32064
  ContextMenuItem = import_react.forwardRef((e, t) => {
32038
- let n = (0, import_compiler_runtime$21.c)(13), i, a, o, s;
32065
+ let n = (0, import_compiler_runtime$22.c)(13), i, a, o, s;
32039
32066
  n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({ className: i, inset: a, variant: s, ...o } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
32040
32067
  let c;
32041
32068
  n[5] !== i || n[6] !== a || n[7] !== s ? (c = menuItemVariants({
@@ -32052,7 +32079,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32052
32079
  });
32053
32080
  ContextMenuItem.displayName = Item2$1.displayName;
32054
32081
  var ContextMenuCheckboxItem = import_react.forwardRef((e, t) => {
32055
- let n = (0, import_compiler_runtime$21.c)(15), i, a, o, s;
32082
+ let n = (0, import_compiler_runtime$22.c)(15), i, a, o, s;
32056
32083
  n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({ className: o, children: a, checked: i, ...s } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
32057
32084
  let c;
32058
32085
  n[5] === o ? c = n[6] : (c = menuControlVariants({
@@ -32083,7 +32110,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32083
32110
  });
32084
32111
  ContextMenuCheckboxItem.displayName = CheckboxItem2.displayName;
32085
32112
  var ContextMenuRadioItem = import_react.forwardRef((e, t) => {
32086
- let n = (0, import_compiler_runtime$21.c)(13), i, a, o;
32113
+ let n = (0, import_compiler_runtime$22.c)(13), i, a, o;
32087
32114
  n[0] === e ? (i = n[1], a = n[2], o = n[3]) : ({ className: a, children: i, ...o } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o);
32088
32115
  let s;
32089
32116
  n[4] === a ? s = n[5] : (s = menuControlCheckVariants({
@@ -32113,7 +32140,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32113
32140
  });
32114
32141
  ContextMenuRadioItem.displayName = RadioItem2.displayName;
32115
32142
  var ContextMenuLabel = import_react.forwardRef((e, t) => {
32116
- let n = (0, import_compiler_runtime$21.c)(11), i, a, o;
32143
+ let n = (0, import_compiler_runtime$22.c)(11), i, a, o;
32117
32144
  n[0] === e ? (i = n[1], a = n[2], o = n[3]) : ({ className: i, inset: a, ...o } = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o);
32118
32145
  let s;
32119
32146
  n[4] !== i || n[5] !== a ? (s = menuLabelVariants({
@@ -32129,7 +32156,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32129
32156
  });
32130
32157
  ContextMenuLabel.displayName = Label2.displayName;
32131
32158
  ContextMenuSeparator = import_react.forwardRef((e, t) => {
32132
- let n = (0, import_compiler_runtime$21.c)(9), i, o;
32159
+ let n = (0, import_compiler_runtime$22.c)(9), i, o;
32133
32160
  n[0] === e ? (i = n[1], o = n[2]) : ({ className: i, ...o } = e, n[0] = e, n[1] = i, n[2] = o);
32134
32161
  let s;
32135
32162
  n[3] === i ? s = n[4] : (s = cn(menuSeparatorVariants({
@@ -32143,9 +32170,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32143
32170
  }), n[5] = o, n[6] = t, n[7] = s, n[8] = c) : c = n[8], c;
32144
32171
  });
32145
32172
  ContextMenuSeparator.displayName = Separator2.displayName;
32146
- var import_compiler_runtime$20 = require_compiler_runtime();
32173
+ var import_compiler_runtime$21 = require_compiler_runtime();
32147
32174
  const DataTableContextMenu = (e) => {
32148
- let t = (0, import_compiler_runtime$20.c)(12), { contextMenuRef: i, tableBody: a, tableRef: o, copyAllCells: s } = e, c;
32175
+ let t = (0, import_compiler_runtime$21.c)(12), { contextMenuRef: i, tableBody: a, tableRef: o, copyAllCells: s } = e, c;
32149
32176
  t[0] !== i || t[1] !== o ? (c = (e2) => {
32150
32177
  var _a2;
32151
32178
  let t2 = i.current;
@@ -32251,9 +32278,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32251
32278
  ]
32252
32279
  });
32253
32280
  };
32254
- var import_compiler_runtime$19 = require_compiler_runtime();
32281
+ var import_compiler_runtime$20 = require_compiler_runtime();
32255
32282
  const HoverTooltip = (e) => {
32256
- let t = (0, import_compiler_runtime$19.c)(15), { state: n, contentId: i, onClose: a } = e, o = n != null, s;
32283
+ let t = (0, import_compiler_runtime$20.c)(15), { state: n, contentId: i, onClose: a } = e, o = n != null, s;
32257
32284
  t[0] === a ? s = t[1] : (s = (e2) => {
32258
32285
  e2 || a();
32259
32286
  }, t[0] = a, t[1] = s);
@@ -32311,9 +32338,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32311
32338
  if (n != null && n !== "") return n;
32312
32339
  if (t) return applyHoverTemplate(t, e.row.getVisibleCells());
32313
32340
  }
32314
- var import_compiler_runtime$18 = require_compiler_runtime(), TOOLTIP_DELAY_MS = 400;
32341
+ var import_compiler_runtime$19 = require_compiler_runtime(), TOOLTIP_DELAY_MS = 400;
32315
32342
  function useTableHoverTooltip(e) {
32316
- let t = (0, import_compiler_runtime$18.c)(33), { table: n } = e, i;
32343
+ let t = (0, import_compiler_runtime$19.c)(33), { table: n } = e, i;
32317
32344
  t[0] === n ? i = t[1] : (i = n.getState().cellHoverTemplate || null, t[0] = n, t[1] = i);
32318
32345
  let a = i, [o, s] = (0, import_react.useState)(null), c = (0, import_react.useRef)(null), d = (0, import_react.useId)(), f = (0, import_react.useRef)(null), h = (0, import_react.useRef)(false), _;
32319
32346
  t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = () => {
@@ -32385,33 +32412,33 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32385
32412
  }, t[16] = a, t[17] = J);
32386
32413
  let Q = useEvent_default(J), $;
32387
32414
  t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
32388
- let Tq = useEvent_default($), Eq, Dq;
32389
- t[20] === S ? (Eq = t[21], Dq = t[22]) : (Eq = () => (window.addEventListener("scroll", S, {
32415
+ let Iq = useEvent_default($), Lq, Rq;
32416
+ t[20] === S ? (Lq = t[21], Rq = t[22]) : (Lq = () => (window.addEventListener("scroll", S, {
32390
32417
  passive: true,
32391
32418
  capture: true
32392
32419
  }), window.addEventListener("resize", S), () => {
32393
32420
  window.removeEventListener("scroll", S, {
32394
32421
  capture: true
32395
32422
  }), window.removeEventListener("resize", S);
32396
- }), Dq = [
32423
+ }), Rq = [
32397
32424
  S
32398
- ], t[20] = S, t[21] = Eq, t[22] = Dq), (0, import_react.useEffect)(Eq, Dq);
32399
- let Oq, kq;
32400
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Oq = () => v, kq = [], t[23] = Oq, t[24] = kq) : (Oq = t[23], kq = t[24]), (0, import_react.useEffect)(Oq, kq);
32401
- let Aq;
32402
- return t[25] !== Tq || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (Aq = {
32425
+ ], t[20] = S, t[21] = Lq, t[22] = Rq), (0, import_react.useEffect)(Lq, Rq);
32426
+ let zq, Bq;
32427
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (zq = () => v, Bq = [], t[23] = zq, t[24] = Bq) : (zq = t[23], Bq = t[24]), (0, import_react.useEffect)(zq, Bq);
32428
+ let Vq;
32429
+ return t[25] !== Iq || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (Vq = {
32403
32430
  tooltipState: o,
32404
32431
  tooltipContentId: d,
32405
32432
  hideTooltip: S,
32406
32433
  handleCellMouseOver: U,
32407
32434
  handleCellMouseLeave: q,
32408
32435
  handleCellFocus: Q,
32409
- handleCellBlur: Tq
32410
- }, t[25] = Tq, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = Aq) : Aq = t[32], Aq;
32436
+ handleCellBlur: Iq
32437
+ }, t[25] = Iq, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = Vq) : Vq = t[32], Vq;
32411
32438
  }
32412
- var import_compiler_runtime$17 = require_compiler_runtime();
32439
+ var import_compiler_runtime$18 = require_compiler_runtime();
32413
32440
  const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
32414
- let t = (0, import_compiler_runtime$17.c)(9), { cellId: n, className: i } = e, o;
32441
+ let t = (0, import_compiler_runtime$18.c)(9), { cellId: n, className: i } = e, o;
32415
32442
  t[0] === n ? o = t[1] : (o = createCellStateAtom(n), t[0] = n, t[1] = o);
32416
32443
  let { isSelected: s, isCopied: c } = useAtomValue(o);
32417
32444
  if (!s && !c) return null;
@@ -32424,9 +32451,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32424
32451
  }), t[6] = n, t[7] = h, t[8] = _) : _ = t[8], _;
32425
32452
  });
32426
32453
  CellRangeSelectionIndicator.displayName = "CellRangeSelectionIndicator";
32427
- var import_compiler_runtime$16 = require_compiler_runtime();
32454
+ var import_compiler_runtime$17 = require_compiler_runtime();
32428
32455
  const useCellRangeSelection = (e) => {
32429
- let t = (0, import_compiler_runtime$16.c)(30), { table: n } = e, i = useCellSelectionReducerActions(), a;
32456
+ let t = (0, import_compiler_runtime$17.c)(30), { table: n } = e, i = useCellSelectionReducerActions(), a;
32430
32457
  t[0] !== i || t[1] !== n ? (a = () => {
32431
32458
  i.handleCopy({
32432
32459
  table: n,
@@ -32533,9 +32560,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32533
32560
  }
32534
32561
  return false;
32535
32562
  }
32536
- var import_compiler_runtime$15 = require_compiler_runtime(), focusedCellAtom = atom((e) => e(cellSelectionStateAtom).focusedCell);
32563
+ var import_compiler_runtime$16 = require_compiler_runtime(), focusedCellAtom = atom((e) => e(cellSelectionStateAtom).focusedCell);
32537
32564
  function useScrollIntoViewOnFocus(e) {
32538
- let t = (0, import_compiler_runtime$15.c)(2), i;
32565
+ let t = (0, import_compiler_runtime$16.c)(2), i;
32539
32566
  t[0] === e ? i = t[1] : (i = (t2) => {
32540
32567
  (t2 == null ? void 0 : t2.cellId) && setTimeout(() => {
32541
32568
  var _a2;
@@ -33086,9 +33113,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33086
33113
  hiddenSuffix: o > 0 ? `(${prettyNumber(o, i)} hidden)` : null
33087
33114
  };
33088
33115
  };
33089
- var import_compiler_runtime$14 = require_compiler_runtime(), MAX_FRACTION_DIGITS = 3;
33116
+ var import_compiler_runtime$15 = require_compiler_runtime(), MAX_FRACTION_DIGITS = 3;
33090
33117
  const CellSelectionStats = (e) => {
33091
- let t = (0, import_compiler_runtime$14.c)(21), { table: n, className: i } = e, { locale: o } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), s = useAtomValue(selectedCellsAtom), c = countDataCellsInSelection(s);
33118
+ let t = (0, import_compiler_runtime$15.c)(21), { table: n, className: i } = e, { locale: o } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), s = useAtomValue(selectedCellsAtom), c = countDataCellsInSelection(s);
33092
33119
  if (c < 2) {
33093
33120
  let e2;
33094
33121
  t[0] === i ? e2 = t[1] : (e2 = cn("text-xs text-muted-foreground/80 italic", i), t[0] = i, t[1] = e2);
@@ -33131,7 +33158,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33131
33158
  var formatNumber = (e, t) => e.toLocaleString(t, {
33132
33159
  maximumFractionDigits: MAX_FRACTION_DIGITS
33133
33160
  }), StatSpan = (e) => {
33134
- let t = (0, import_compiler_runtime$14.c)(6), { name: n, value: i, locale: a } = e, o;
33161
+ let t = (0, import_compiler_runtime$15.c)(6), { name: n, value: i, locale: a } = e, o;
33135
33162
  t[0] !== a || t[1] !== i ? (o = formatNumber(i, a), t[0] = a, t[1] = i, t[2] = o) : o = t[2];
33136
33163
  let s;
33137
33164
  return t[3] !== n || t[4] !== o ? (s = (0, import_jsx_runtime.jsxs)("span", {
@@ -33142,14 +33169,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33142
33169
  ]
33143
33170
  }), t[3] = n, t[4] = o, t[5] = s) : s = t[5], s;
33144
33171
  }, CountStat = (e) => {
33145
- let t = (0, import_compiler_runtime$14.c)(3), { count: n, locale: i } = e, a;
33172
+ let t = (0, import_compiler_runtime$15.c)(3), { count: n, locale: i } = e, a;
33146
33173
  return t[0] !== n || t[1] !== i ? (a = (0, import_jsx_runtime.jsx)(StatSpan, {
33147
33174
  name: "Count",
33148
33175
  value: n,
33149
33176
  locale: i
33150
33177
  }), t[0] = n, t[1] = i, t[2] = a) : a = t[2], a;
33151
33178
  }, SumStat = (e) => {
33152
- let t = (0, import_compiler_runtime$14.c)(6), { numericValues: n, locale: i } = e;
33179
+ let t = (0, import_compiler_runtime$15.c)(6), { numericValues: n, locale: i } = e;
33153
33180
  if (n.length === 0) return null;
33154
33181
  let a, o;
33155
33182
  if (t[0] !== n) {
@@ -33163,7 +33190,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33163
33190
  locale: i
33164
33191
  }), t[3] = i, t[4] = s, t[5] = c) : c = t[5], c;
33165
33192
  }, AverageStat = (e) => {
33166
- let t = (0, import_compiler_runtime$14.c)(5), { numericValues: n, locale: i } = e;
33193
+ let t = (0, import_compiler_runtime$15.c)(5), { numericValues: n, locale: i } = e;
33167
33194
  if (n.length === 0) return null;
33168
33195
  let a = n.reduce(_temp2$2, 0) / n.length, o;
33169
33196
  t[0] === a ? o = t[1] : (o = a.toFixed(MAX_FRACTION_DIGITS), t[0] = a, t[1] = o);
@@ -33180,9 +33207,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33180
33207
  function _temp2$2(e, t) {
33181
33208
  return e + t;
33182
33209
  }
33183
- let TableBottomBar;
33184
- TableBottomBar = ({ pagination: e, totalColumns: t, selection: n, onRowSelectionChange: i, table: s, getRowIds: c, showPageSizeSelector: d, tableLoading: f, togglePanel: _, part: v, className: y }) => {
33185
- let { locale: S } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), E = (e2) => {
33210
+ const TableBottomBar = ({ pagination: e, totalColumns: t, selection: n, onRowSelectionChange: i, table: s, getRowIds: c, showPageSizeSelector: d, tableLoading: f, part: _, className: v }) => {
33211
+ let { locale: y } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), S = (e2) => {
33186
33212
  if (!i) return;
33187
33213
  if (!e2) {
33188
33214
  i({});
@@ -33217,8 +33243,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33217
33243
  });
33218
33244
  };
33219
33245
  return (0, import_jsx_runtime.jsxs)("div", {
33220
- part: v,
33221
- className: cn("flex lg:grid lg:grid-cols-[1fr_auto_1fr] items-center shrink-0", y),
33246
+ part: _,
33247
+ className: cn("flex lg:grid lg:grid-cols-[1fr_auto_1fr] items-center shrink-0", v),
33222
33248
  children: [
33223
33249
  (0, import_jsx_runtime.jsxs)("div", {
33224
33250
  className: "flex flex-col text-sm text-muted-foreground px-2 shrink-0",
@@ -33226,12 +33252,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33226
33252
  (0, import_jsx_runtime.jsx)("div", {
33227
33253
  className: "flex items-center gap-1",
33228
33254
  children: (() => {
33229
- let { rowSelection: e2, cellSelection: i2 } = s.getState(), a = Object.keys(e2).length, c2 = s.getIsAllPageRowsSelected(), d2 = s.getRowCount(), f2 = a === d2, v2 = n === "single-cell" || n === "multi-cell";
33230
- if (v2 && (a = i2.length, c2 = false, f2 = false), c2 && !f2) return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
33255
+ let { rowSelection: e2, cellSelection: i2 } = s.getState(), a = Object.keys(e2).length, c2 = s.getIsAllPageRowsSelected(), d2 = s.getRowCount(), f2 = a === d2, _2 = n === "single-cell" || n === "multi-cell";
33256
+ if (_2 && (a = i2.length, c2 = false, f2 = false), c2 && !f2) return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
33231
33257
  children: [
33232
33258
  (0, import_jsx_runtime.jsxs)("span", {
33233
33259
  children: [
33234
- prettyNumber(a, S),
33260
+ prettyNumber(a, y),
33235
33261
  " selected"
33236
33262
  ]
33237
33263
  }),
@@ -33241,10 +33267,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33241
33267
  variant: "link",
33242
33268
  className: "h-4 print:hidden",
33243
33269
  onMouseDown: Events.preventFocus,
33244
- onClick: () => E(true),
33270
+ onClick: () => S(true),
33245
33271
  children: [
33246
33272
  "Select all ",
33247
- prettyNumber(d2, S)
33273
+ prettyNumber(d2, y)
33248
33274
  ]
33249
33275
  })
33250
33276
  ]
@@ -33253,7 +33279,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33253
33279
  children: [
33254
33280
  (0, import_jsx_runtime.jsxs)("span", {
33255
33281
  children: [
33256
- prettyNumber(a, S),
33282
+ prettyNumber(a, y),
33257
33283
  " selected"
33258
33284
  ]
33259
33285
  }),
@@ -33264,29 +33290,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33264
33290
  className: "h-4 print:hidden",
33265
33291
  onMouseDown: Events.preventFocus,
33266
33292
  onClick: () => {
33267
- v2 ? s.resetCellSelection && s.resetCellSelection() : E(false);
33293
+ _2 ? s.resetCellSelection && s.resetCellSelection() : S(false);
33268
33294
  },
33269
33295
  children: "Clear selection"
33270
33296
  })
33271
33297
  ]
33272
33298
  });
33273
- let { totalColumns: y2, hiddenColumns: w } = getColumnCountForDisplay(s, t), { rowsAndColumns: O, hiddenSuffix: A } = prettifyRowColumnCount({
33299
+ let { totalColumns: v2, hiddenColumns: w } = getColumnCountForDisplay(s, t), { rowsAndColumns: E, hiddenSuffix: O } = prettifyRowColumnCount({
33274
33300
  numRows: s.getRowCount(),
33275
- totalColumns: y2,
33301
+ totalColumns: v2,
33276
33302
  hiddenColumns: w,
33277
- locale: S
33303
+ locale: y
33278
33304
  });
33279
33305
  return (0, import_jsx_runtime.jsxs)("span", {
33280
33306
  className: "flex items-center gap-1",
33281
33307
  children: [
33282
33308
  (0, import_jsx_runtime.jsx)("span", {
33283
- children: O
33309
+ children: E
33284
33310
  }),
33285
- A && (0, import_jsx_runtime.jsx)("button", {
33286
- type: "button",
33287
- className: "text-xs underline-offset-2 hover:underline cursor-pointer",
33288
- onClick: () => _ == null ? void 0 : _(PANEL_TYPES.COLUMN_EXPLORER),
33289
- children: A
33311
+ O && (0, import_jsx_runtime.jsx)("span", {
33312
+ className: "text-xs",
33313
+ children: O
33290
33314
  })
33291
33315
  ]
33292
33316
  });
@@ -33316,6 +33340,215 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33316
33340
  ]
33317
33341
  });
33318
33342
  };
33343
+ var import_compiler_runtime$14 = require_compiler_runtime();
33344
+ EmptyState = (e) => {
33345
+ let t = (0, import_compiler_runtime$14.c)(5), { content: n, className: i } = e, o;
33346
+ t[0] === i ? o = t[1] : (o = cn("text-sm text-muted-foreground py-1", i), t[0] = i, t[1] = o);
33347
+ let s;
33348
+ return t[2] !== n || t[3] !== o ? (s = (0, import_jsx_runtime.jsx)("div", {
33349
+ className: o,
33350
+ children: n
33351
+ }), t[2] = n, t[3] = o, t[4] = s) : s = t[4], s;
33352
+ };
33353
+ ErrorState = (e) => {
33354
+ let t = (0, import_compiler_runtime$14.c)(9), { error: n, style: i, className: o, showIcon: s } = e, c = s === void 0 ? true : s, d;
33355
+ t[0] === o ? d = t[1] : (d = cn("text-sm bg-red-50 dark:bg-red-900 text-red-600 dark:text-red-50 flex items-center gap-2 p-2 h-8", o), t[0] = o, t[1] = d);
33356
+ let f;
33357
+ t[2] === c ? f = t[3] : (f = c && (0, import_jsx_runtime.jsx)(X, {
33358
+ className: "h-4 w-4 mt-0.5"
33359
+ }), t[2] = c, t[3] = f);
33360
+ let h;
33361
+ return t[4] !== n.message || t[5] !== i || t[6] !== d || t[7] !== f ? (h = (0, import_jsx_runtime.jsxs)("div", {
33362
+ className: d,
33363
+ style: i,
33364
+ children: [
33365
+ f,
33366
+ n.message
33367
+ ]
33368
+ }), t[4] = n.message, t[5] = i, t[6] = d, t[7] = f, t[8] = h) : h = t[8], h;
33369
+ };
33370
+ LoadingState = (e) => {
33371
+ let t = (0, import_compiler_runtime$14.c)(6), { message: n, className: i } = e, o;
33372
+ t[0] === i ? o = t[1] : (o = cn("text-sm bg-blue-50 dark:bg-(--accent) text-blue-500 dark:text-blue-50 flex items-center gap-2 p-2 h-8", i), t[0] = i, t[1] = o);
33373
+ let s;
33374
+ t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = (0, import_jsx_runtime.jsx)(LoaderCircle, {
33375
+ className: "h-4 w-4 animate-spin"
33376
+ }), t[2] = s) : s = t[2];
33377
+ let c;
33378
+ return t[3] !== n || t[4] !== o ? (c = (0, import_jsx_runtime.jsxs)("div", {
33379
+ className: o,
33380
+ children: [
33381
+ s,
33382
+ n
33383
+ ]
33384
+ }), t[3] = n, t[4] = o, t[5] = c) : c = t[5], c;
33385
+ };
33386
+ ColumnPreviewContainer = (e) => {
33387
+ let t = (0, import_compiler_runtime$14.c)(5), { children: n, className: i } = e, o;
33388
+ t[0] === i ? o = t[1] : (o = cn("flex flex-col gap-2 relative", i), t[0] = i, t[1] = o);
33389
+ let s;
33390
+ return t[2] !== n || t[3] !== o ? (s = (0, import_jsx_runtime.jsx)("div", {
33391
+ className: o,
33392
+ children: n
33393
+ }), t[2] = n, t[3] = o, t[4] = s) : s = t[4], s;
33394
+ };
33395
+ ColumnName = (e) => {
33396
+ let t = (0, import_compiler_runtime$14.c)(6), { columnName: n, dataType: i } = e, a = DATA_TYPE_ICON[i], o = `w-4 h-4 p-0.5 rounded-sm stroke-card-foreground ${getDataTypeColor(i)}`, s;
33397
+ t[0] !== a || t[1] !== o ? (s = (0, import_jsx_runtime.jsx)(a, {
33398
+ className: o
33399
+ }), t[0] = a, t[1] = o, t[2] = s) : s = t[2];
33400
+ let c;
33401
+ return t[3] !== n || t[4] !== s ? (c = (0, import_jsx_runtime.jsxs)("div", {
33402
+ className: "flex flex-row items-center gap-1.5",
33403
+ children: [
33404
+ s,
33405
+ n
33406
+ ]
33407
+ }), t[3] = n, t[4] = s, t[5] = c) : c = t[5], c;
33408
+ };
33409
+ function getUserColumns(e) {
33410
+ return e.getAllLeafColumns().filter((e2) => e2.id !== "__select__" && e2.id !== "_marimo_row_id" && !e2.id.startsWith("__m_column__"));
33411
+ }
33412
+ let ColumnVisibilityDropdown;
33413
+ ColumnVisibilityDropdown = ({ table: e }) => {
33414
+ let t = getUserColumns(e), n = t.map((e2) => {
33415
+ var _a2;
33416
+ return {
33417
+ value: e2.id,
33418
+ label: e2.id,
33419
+ disabled: !e2.getCanHide(),
33420
+ data: {
33421
+ dataType: (_a2 = e2.columnDef.meta) == null ? void 0 : _a2.dataType
33422
+ }
33423
+ };
33424
+ }), i = t.filter((e2) => !e2.getIsVisible()).map((e2) => e2.id), s = (n2) => {
33425
+ let i2 = new Set(Array.isArray(n2) ? n2 : []);
33426
+ e.setColumnVisibility((e2) => ({
33427
+ ...e2,
33428
+ ...Object.fromEntries(t.map((e3) => [
33429
+ e3.id,
33430
+ !i2.has(e3.id)
33431
+ ]))
33432
+ }));
33433
+ }, c = useSelectList({
33434
+ options: n,
33435
+ value: i,
33436
+ onChange: s,
33437
+ multiple: true,
33438
+ filterFn: smartMatchFilter,
33439
+ pinSelected: true
33440
+ }), d = c.bulkActions.filter((e2) => e2.kind === "select-matching" || e2.kind === "deselect-matching");
33441
+ return (0, import_jsx_runtime.jsxs)(Popover, {
33442
+ open: c.open,
33443
+ onOpenChange: c.setOpen,
33444
+ children: [
33445
+ (0, import_jsx_runtime.jsx)(PopoverTrigger, {
33446
+ asChild: true,
33447
+ children: (0, import_jsx_runtime.jsxs)(Button, {
33448
+ variant: "text",
33449
+ size: "xs",
33450
+ "data-testid": "column-visibility-trigger",
33451
+ onMouseDown: Events.preventFocus,
33452
+ className: cn("print:hidden text-xs gap-1", c.open ? "text-primary" : "text-muted-foreground"),
33453
+ children: [
33454
+ (0, import_jsx_runtime.jsx)(Columns3, {
33455
+ className: "w-3.5 h-3.5"
33456
+ }),
33457
+ "Columns"
33458
+ ]
33459
+ })
33460
+ }),
33461
+ (0, import_jsx_runtime.jsx)(PopoverContent, {
33462
+ className: "w-64 p-0",
33463
+ align: "end",
33464
+ children: (0, import_jsx_runtime.jsxs)(Command, {
33465
+ shouldFilter: false,
33466
+ children: [
33467
+ (0, import_jsx_runtime.jsx)(CommandInput, {
33468
+ placeholder: "Search columns...",
33469
+ value: c.searchQuery,
33470
+ onValueChange: c.setSearchQuery
33471
+ }),
33472
+ (0, import_jsx_runtime.jsxs)(CommandList, {
33473
+ children: [
33474
+ (0, import_jsx_runtime.jsx)(CommandEmpty, {
33475
+ children: "No results."
33476
+ }),
33477
+ c.searchQuery === "" ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
33478
+ children: [
33479
+ (0, import_jsx_runtime.jsxs)(CommandItem, {
33480
+ value: "__show_all__",
33481
+ disabled: i.length === 0,
33482
+ onSelect: () => s([]),
33483
+ className: "cursor-pointer",
33484
+ children: [
33485
+ (0, import_jsx_runtime.jsx)(Eye, {
33486
+ className: "w-3 h-3 mr-1.5"
33487
+ }),
33488
+ "Show all"
33489
+ ]
33490
+ }),
33491
+ (0, import_jsx_runtime.jsx)(CommandSeparator, {})
33492
+ ]
33493
+ }) : d.length > 0 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
33494
+ children: [
33495
+ d.map((e2) => (0, import_jsx_runtime.jsxs)(CommandItem, {
33496
+ value: `__bulk_${e2.kind}`,
33497
+ onSelect: e2.run,
33498
+ className: "cursor-pointer",
33499
+ children: [
33500
+ e2.kind === "select-matching" ? (0, import_jsx_runtime.jsx)(EyeOff, {
33501
+ className: "w-3 h-3 mr-1.5"
33502
+ }) : (0, import_jsx_runtime.jsx)(Eye, {
33503
+ className: "w-3 h-3 mr-1.5"
33504
+ }),
33505
+ e2.kind === "select-matching" ? "Hide" : "Show",
33506
+ " ",
33507
+ e2.items.length,
33508
+ " matching"
33509
+ ]
33510
+ }, e2.kind)),
33511
+ (0, import_jsx_runtime.jsx)(CommandSeparator, {})
33512
+ ]
33513
+ }),
33514
+ c.visibleOptions.map((e2, t2) => {
33515
+ let n2 = c.isChecked(e2.value), { dataType: i2 } = e2.data, o = t2 === c.pinnedCount && c.pinnedCount > 0 && c.pinnedCount < c.visibleOptions.length;
33516
+ return (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
33517
+ children: [
33518
+ o && (0, import_jsx_runtime.jsx)(CommandSeparator, {}),
33519
+ (0, import_jsx_runtime.jsxs)(CommandItem, {
33520
+ value: e2.value,
33521
+ disabled: e2.disabled,
33522
+ onSelect: () => c.toggle(e2.value),
33523
+ className: "flex items-center gap-1.5 cursor-pointer",
33524
+ children: [
33525
+ i2 === void 0 ? (0, import_jsx_runtime.jsx)("span", {
33526
+ children: e2.label
33527
+ }) : (0, import_jsx_runtime.jsx)(ColumnName, {
33528
+ columnName: e2.label,
33529
+ dataType: i2
33530
+ }),
33531
+ !e2.disabled && (0, import_jsx_runtime.jsx)("span", {
33532
+ className: cn("ml-auto", n2 ? "text-primary" : "text-muted-foreground"),
33533
+ children: n2 ? (0, import_jsx_runtime.jsx)(EyeOff, {
33534
+ className: "w-3 h-3"
33535
+ }) : (0, import_jsx_runtime.jsx)(Eye, {
33536
+ className: "w-3 h-3"
33537
+ })
33538
+ })
33539
+ ]
33540
+ })
33541
+ ]
33542
+ }, e2.value);
33543
+ })
33544
+ ]
33545
+ })
33546
+ ]
33547
+ })
33548
+ })
33549
+ ]
33550
+ });
33551
+ };
33319
33552
  downloadSizeLimitAtom = atom(null);
33320
33553
  Filenames = {
33321
33554
  toMarkdown: (e) => Filenames.replace(e, "md"),
@@ -33620,7 +33853,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33620
33853
  filename: i2.filename
33621
33854
  };
33622
33855
  }, t[6] = e, t[7] = O);
33623
- let A = O, M, I, z, U, K, q, J, Q, $, Tq, Eq, Dq, Oq;
33856
+ let A = O, M, I, z, U, K, q, J, Q, $, Iq, Lq, Rq, zq;
33624
33857
  if (t[8] !== S || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
33625
33858
  let e2 = async (t2) => {
33626
33859
  let n2 = labelForDownloadFormat(t2);
@@ -33686,10 +33919,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33686
33919
  content: d,
33687
33920
  open: o2,
33688
33921
  children: h
33689
- }), t[32] = o2, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", Tq = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Eq = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
33922
+ }), t[32] = o2, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", Iq = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Lq = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
33690
33923
  className: "text-xs text-muted-foreground",
33691
33924
  children: "Download"
33692
- }), t[36] = Eq) : Eq = t[36], Dq = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
33925
+ }), t[36] = Lq) : Lq = t[36], Rq = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
33693
33926
  onSelect: () => {
33694
33927
  e2(t2.format);
33695
33928
  },
@@ -33710,10 +33943,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33710
33943
  ]
33711
33944
  })
33712
33945
  ]
33713
- }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Oq = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
33946
+ }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (zq = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
33714
33947
  className: "text-xs text-muted-foreground",
33715
33948
  children: "Copy to clipboard"
33716
- }), t[37] = z, t[38] = Oq) : (z = t[37], Oq = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
33949
+ }), t[37] = z, t[38] = zq) : (z = t[37], zq = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
33717
33950
  onSelect: async () => {
33718
33951
  try {
33719
33952
  await a(e3.format);
@@ -33742,30 +33975,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33742
33975
  ]
33743
33976
  })
33744
33977
  ]
33745
- }, e3.label)), t[8] = S, 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] = Tq, t[23] = Eq, t[24] = Dq, t[25] = Oq;
33746
- } 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], Tq = t[22], Eq = t[23], Dq = t[24], Oq = t[25];
33747
- let kq;
33748
- t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== Tq || t[44] !== Eq || t[45] !== Dq || t[46] !== Oq ? (kq = (0, import_jsx_runtime.jsxs)(M, {
33978
+ }, e3.label)), t[8] = S, 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] = Iq, t[23] = Lq, t[24] = Rq, t[25] = zq;
33979
+ } 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], Iq = t[22], Lq = t[23], Rq = t[24], zq = t[25];
33980
+ let Bq;
33981
+ t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== Iq || t[44] !== Lq || t[45] !== Rq || t[46] !== zq ? (Bq = (0, import_jsx_runtime.jsxs)(M, {
33749
33982
  side: $,
33750
- className: Tq,
33983
+ className: Iq,
33751
33984
  children: [
33752
- Eq,
33753
- Dq,
33754
- Oq,
33985
+ Lq,
33986
+ Rq,
33987
+ zq,
33755
33988
  z,
33756
33989
  U
33757
33990
  ]
33758
- }), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = Tq, t[44] = Eq, t[45] = Dq, t[46] = Oq, t[47] = kq) : kq = t[47];
33759
- let Aq;
33760
- return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== kq ? (Aq = (0, import_jsx_runtime.jsxs)(I, {
33991
+ }), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = Iq, t[44] = Lq, t[45] = Rq, t[46] = zq, t[47] = Bq) : Bq = t[47];
33992
+ let Vq;
33993
+ return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== Bq ? (Vq = (0, import_jsx_runtime.jsxs)(I, {
33761
33994
  modal: K,
33762
33995
  open: q,
33763
33996
  onOpenChange: J,
33764
33997
  children: [
33765
33998
  Q,
33766
- kq
33999
+ Bq
33767
34000
  ]
33768
- }), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = kq, t[54] = Aq) : Aq = t[54], Aq;
34001
+ }), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = Bq, t[54] = Vq) : Vq = t[54], Vq;
33769
34002
  };
33770
34003
  function fetchJson(e) {
33771
34004
  return fetchText(e).then(jsonParseWithSpecialChar);
@@ -33779,42 +34012,42 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33779
34012
  var NOOP_ON_SEARCH = () => {
33780
34013
  };
33781
34014
  let TableTopBar;
33782
- TableTopBar = ({ enableSearch: e, searchQuery: t, onSearchQueryChange: n, reloading: i, showChartBuilder: o, isChartBuilderOpen: s, toggleDisplayHeader: c, showTableExplorer: d, togglePanel: f, isAnyPanelOpen: _, downloadAs: v, sizeBytes: y, sizeBytesIsLoading: S }) => {
33783
- let [w, E] = (0, import_react.useState)(t || ""), O = useDebounce(w, 500), A = useEvent_default(n ?? NOOP_ON_SEARCH), M = import_react.useRef(null);
34015
+ TableTopBar = ({ table: e, enableSearch: t, searchQuery: n, onSearchQueryChange: i, reloading: o, showChartBuilder: s, isChartBuilderOpen: c, toggleDisplayHeader: d, showTableExplorer: f, togglePanel: _, isAnyPanelOpen: v, downloadAs: y, sizeBytes: S, sizeBytesIsLoading: w }) => {
34016
+ let [E, O] = (0, import_react.useState)(n || ""), A = useDebounce(E, 500), M = useEvent_default(i ?? NOOP_ON_SEARCH), I = import_react.useRef(null);
33784
34017
  return (0, import_react.useEffect)(() => {
33785
- A(O);
34018
+ M(A);
33786
34019
  }, [
33787
- O,
33788
- A
33789
- ]), e && n || o || d || v ? (0, import_jsx_runtime.jsxs)("div", {
34020
+ A,
34021
+ M
34022
+ ]), (0, import_jsx_runtime.jsxs)("div", {
33790
34023
  className: "flex items-center h-10 px-2 border-b gap-2",
33791
34024
  children: [
33792
- n && e && (0, import_jsx_runtime.jsxs)("div", {
34025
+ i && t && (0, import_jsx_runtime.jsxs)("div", {
33793
34026
  className: "flex flex-1 items-center gap-1 px-2 rounded-sm focus-within:ring-1 focus-within:ring-border transition-shadow",
33794
34027
  children: [
33795
34028
  (0, import_jsx_runtime.jsx)(Search, {
33796
34029
  className: "w-4 h-4 text-muted-foreground shrink-0"
33797
34030
  }),
33798
34031
  (0, import_jsx_runtime.jsx)("input", {
33799
- ref: M,
34032
+ ref: I,
33800
34033
  type: "text",
33801
34034
  className: "h-6 border-none bg-transparent focus:outline-hidden text-sm w-full min-w-0",
33802
- value: w,
34035
+ value: E,
33803
34036
  onKeyDown: (e2) => {
33804
34037
  var _a2;
33805
- e2.key === "Escape" && (E(""), (_a2 = M.current) == null ? void 0 : _a2.blur());
34038
+ e2.key === "Escape" && (O(""), (_a2 = I.current) == null ? void 0 : _a2.blur());
33806
34039
  },
33807
- onChange: (e2) => E(e2.target.value),
34040
+ onChange: (e2) => O(e2.target.value),
33808
34041
  placeholder: "Search..."
33809
34042
  }),
33810
- i && (0, import_jsx_runtime.jsx)(Spinner, {
34043
+ o && (0, import_jsx_runtime.jsx)(Spinner, {
33811
34044
  size: "small"
33812
34045
  }),
33813
- w && (0, import_jsx_runtime.jsx)(Button, {
34046
+ E && (0, import_jsx_runtime.jsx)(Button, {
33814
34047
  variant: "text",
33815
34048
  size: "xs",
33816
34049
  className: "h-5 w-5 p-0 shrink-0",
33817
- onClick: () => E(""),
34050
+ onClick: () => O(""),
33818
34051
  children: (0, import_jsx_runtime.jsx)(X, {
33819
34052
  className: "w-3 h-3 text-muted-foreground"
33820
34053
  })
@@ -33824,11 +34057,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33824
34057
  (0, import_jsx_runtime.jsxs)("div", {
33825
34058
  className: "flex items-center shrink-0",
33826
34059
  children: [
33827
- o && (0, import_jsx_runtime.jsxs)(Button, {
34060
+ (0, import_jsx_runtime.jsx)(ColumnVisibilityDropdown, {
34061
+ table: e
34062
+ }),
34063
+ s && (0, import_jsx_runtime.jsxs)(Button, {
33828
34064
  variant: "text",
33829
34065
  size: "xs",
33830
- className: cn("print:hidden text-xs gap-1", s ? "text-primary" : "text-muted-foreground"),
33831
- onClick: c,
34066
+ className: cn("print:hidden text-xs gap-1", c ? "text-primary" : "text-muted-foreground"),
34067
+ onClick: d,
33832
34068
  children: [
33833
34069
  (0, import_jsx_runtime.jsx)(ChartSpline, {
33834
34070
  className: "w-3.5 h-3.5"
@@ -33836,11 +34072,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33836
34072
  "Visualize"
33837
34073
  ]
33838
34074
  }),
33839
- d && f && (0, import_jsx_runtime.jsxs)(Button, {
34075
+ f && _ && (0, import_jsx_runtime.jsxs)(Button, {
33840
34076
  variant: "text",
33841
34077
  size: "xs",
33842
- className: cn("print:hidden text-xs gap-1", _ ? "text-primary" : "text-muted-foreground"),
33843
- onClick: () => f(PANEL_TYPES.ROW_VIEWER),
34078
+ className: cn("print:hidden text-xs gap-1", v ? "text-primary" : "text-muted-foreground"),
34079
+ onClick: () => _(PANEL_TYPES.ROW_VIEWER),
33844
34080
  children: [
33845
34081
  (0, import_jsx_runtime.jsx)(PanelRight, {
33846
34082
  className: "w-3.5 h-3.5"
@@ -33848,32 +34084,32 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33848
34084
  "Explore"
33849
34085
  ]
33850
34086
  }),
33851
- v && (0, import_jsx_runtime.jsx)(ExportMenu, {
33852
- downloadAs: v,
33853
- sizeBytes: y,
33854
- sizeBytesIsLoading: S
34087
+ y && (0, import_jsx_runtime.jsx)(ExportMenu, {
34088
+ downloadAs: y,
34089
+ sizeBytes: S,
34090
+ sizeBytesIsLoading: w
33855
34091
  })
33856
34092
  ]
33857
34093
  })
33858
34094
  ]
33859
- }) : null;
34095
+ });
33860
34096
  };
33861
- DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, 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: Tq, enableSearch: Eq = false, searchQuery: Dq, onSearchQueryChange: Oq, showFilters: kq = false, filters: Aq, onFiltersChange: jq, calculateTopKRows: Mq, reloading: Nq, freezeColumnsLeft: Pq, freezeColumnsRight: Fq, hiddenColumns: Iq, toggleDisplayHeader: Lq, showChartBuilder: Rq, isChartBuilderOpen: zq, showPageSizeSelector: Bq, showTableExplorer: Vq, togglePanel: Hq, isPanelOpen: Uq, isAnyPanelOpen: Wq, viewedRowIdx: Gq, onViewedRowChange: Kq, renderTableExplorerPanel: qq }) => {
33862
- let [Jq, Yq] = import_react.useState(false), { locale: Xq } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: Zq, setColumnPinning: Qq } = useColumnPinning(Pq, Fq), { columnVisibility: $q, setColumnVisibility: eJ } = useColumnVisibility(Iq);
34097
+ DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, 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: Iq, enableSearch: Lq = false, searchQuery: Rq, onSearchQueryChange: zq, showFilters: Bq = false, filters: Vq, onFiltersChange: Hq, calculateTopKRows: Uq, reloading: Wq, freezeColumnsLeft: Gq, freezeColumnsRight: Kq, hiddenColumns: qq, toggleDisplayHeader: Jq, showChartBuilder: Yq, isChartBuilderOpen: Xq, showPageSizeSelector: Zq, showTableExplorer: Qq, togglePanel: $q, isPanelOpen: eJ, isAnyPanelOpen: tJ, viewedRowIdx: nJ, onViewedRowChange: rJ, renderTableExplorerPanel: iJ }) => {
34098
+ let [aJ, oJ] = import_react.useState(false), { locale: sJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: cJ, setColumnPinning: lJ } = useColumnPinning(Gq, Kq), { columnVisibility: uJ, setColumnVisibility: dJ } = useColumnVisibility(qq);
33863
34099
  import_react.useEffect(() => {
33864
34100
  let e2;
33865
- return Nq ? e2 = setTimeout(() => {
33866
- Yq(true);
33867
- }, 300) : Yq(false), () => {
34101
+ return Wq ? e2 = setTimeout(() => {
34102
+ oJ(true);
34103
+ }, 300) : oJ(false), () => {
33868
34104
  e2 && clearTimeout(e2);
33869
34105
  };
33870
34106
  }, [
33871
- Nq
34107
+ Wq
33872
34108
  ]);
33873
- function tJ(e2, t2) {
34109
+ function fJ(e2, t2) {
33874
34110
  return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
33875
34111
  }
33876
- let nJ = useReactTable({
34112
+ let pJ = useReactTable({
33877
34113
  _features: [
33878
34114
  ColumnPinning,
33879
34115
  ColumnWrappingFeature,
@@ -33897,11 +34133,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33897
34133
  getRowId: (e2, t2) => {
33898
34134
  let n2 = getStableRowId(e2);
33899
34135
  if (n2) return n2;
33900
- let i2 = tJ(e2, t2);
34136
+ let i2 = fJ(e2, t2);
33901
34137
  return String(i2);
33902
34138
  }
33903
34139
  } : {},
33904
- locale: Xq,
34140
+ locale: sJ,
33905
34141
  manualPagination: q,
33906
34142
  getPaginationRowModel: getPaginationRowModel(),
33907
34143
  ...w ? {
@@ -33911,22 +34147,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33911
34147
  enableMultiSort: true,
33912
34148
  getSortedRowModel: getSortedRowModel(),
33913
34149
  manualFiltering: true,
33914
- enableColumnFilters: kq,
34150
+ enableColumnFilters: Bq,
33915
34151
  getFilteredRowModel: getFilteredRowModel(),
33916
- onColumnFiltersChange: jq,
34152
+ onColumnFiltersChange: Hq,
33917
34153
  onRowSelectionChange: Q,
33918
34154
  onCellSelectionChange: $,
33919
34155
  enableCellSelection: c === "single-cell" || c === "multi-cell",
33920
34156
  enableMultiCellSelection: c === "multi-cell",
33921
- onColumnPinningChange: Qq,
33922
- onColumnVisibilityChange: eJ,
34157
+ onColumnPinningChange: lJ,
34158
+ onColumnVisibilityChange: dJ,
33923
34159
  enableFocusRow: true,
33924
- onFocusRowChange: Kq,
34160
+ onFocusRowChange: rJ,
33925
34161
  state: {
33926
34162
  ...S ? {
33927
34163
  sorting: S
33928
34164
  } : {},
33929
- columnFilters: Aq,
34165
+ columnFilters: Vq,
33930
34166
  ...z ? {
33931
34167
  pagination: z
33932
34168
  } : J && !z ? {} : {
@@ -33937,59 +34173,60 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33937
34173
  },
33938
34174
  rowSelection: E ?? {},
33939
34175
  cellSelection: O ?? [],
33940
- columnVisibility: $q,
34176
+ columnVisibility: uJ,
33941
34177
  cellStyling: A,
33942
- columnPinning: Zq,
34178
+ columnPinning: cJ,
33943
34179
  cellHoverTemplate: M,
33944
34180
  cellHoverTexts: I ?? {}
33945
34181
  }
33946
- }), rJ = (Uq == null ? void 0 : Uq(PANEL_TYPES.ROW_VIEWER)) ?? false, iJ = !J && o.length > 100, aJ = useScrollContainerHeight({
34182
+ }), mJ = (eJ == null ? void 0 : eJ(PANEL_TYPES.ROW_VIEWER)) ?? false, hJ = !J && o.length > 100, gJ = useScrollContainerHeight({
33947
34183
  maxHeight: n,
33948
- virtualize: iJ
33949
- }), [oJ, sJ] = import_react.useState(null), cJ = import_react.useMemo(() => ({
34184
+ virtualize: hJ
34185
+ }), [_J, vJ] = import_react.useState(null), yJ = import_react.useMemo(() => ({
33950
34186
  requestAddFilter: (e2) => {
33951
- let t2 = nJ.getColumn(e2.columnId);
33952
- t2 && sJ(buildEditorSnapshot(t2, {
34187
+ let t2 = pJ.getColumn(e2.columnId);
34188
+ t2 && vJ(buildEditorSnapshot(t2, {
33953
34189
  operator: e2.operator
33954
34190
  }));
33955
34191
  }
33956
34192
  }), [
33957
- nJ
33958
- ]), lJ = getUserColumnVisibilityCounts(nJ), uJ = lJ.total > 0 && lJ.visible === 0;
34193
+ pJ
34194
+ ]), bJ = getUserColumnVisibilityCounts(pJ), xJ = bJ.total > 0 && bJ.visible === 0;
33959
34195
  return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
33960
- value: cJ,
34196
+ value: yJ,
33961
34197
  children: (0, import_jsx_runtime.jsxs)("div", {
33962
34198
  className: cn(e, "flex flex-col space-y-1"),
33963
34199
  children: [
33964
34200
  (0, import_jsx_runtime.jsx)(FilterPills, {
33965
- filters: Aq,
33966
- table: nJ,
33967
- calculateTopKRows: Mq,
33968
- addFilterSnapshot: oJ,
33969
- onAddFilterSnapshotChange: sJ
34201
+ filters: Vq,
34202
+ table: pJ,
34203
+ calculateTopKRows: Uq,
34204
+ addFilterSnapshot: _J,
34205
+ onAddFilterSnapshotChange: vJ
33970
34206
  }),
33971
- qq == null ? void 0 : qq(nJ),
34207
+ iJ == null ? void 0 : iJ(pJ),
33972
34208
  (0, import_jsx_runtime.jsx)(CellSelectionProvider, {
33973
34209
  children: (0, import_jsx_runtime.jsxs)("div", {
33974
34210
  part: "table-wrapper",
33975
34211
  className: cn(t || "rounded-md border overflow-hidden"),
33976
34212
  children: [
33977
34213
  (0, import_jsx_runtime.jsx)(TableTopBar, {
33978
- enableSearch: Eq,
33979
- searchQuery: Dq,
33980
- onSearchQueryChange: Oq,
33981
- reloading: Nq,
33982
- showChartBuilder: Rq,
33983
- isChartBuilderOpen: zq,
33984
- toggleDisplayHeader: Lq,
33985
- showTableExplorer: Vq,
33986
- togglePanel: Hq,
33987
- isAnyPanelOpen: Wq,
34214
+ table: pJ,
34215
+ enableSearch: Lq,
34216
+ searchQuery: Rq,
34217
+ onSearchQueryChange: zq,
34218
+ reloading: Wq,
34219
+ showChartBuilder: Yq,
34220
+ isChartBuilderOpen: Xq,
34221
+ toggleDisplayHeader: Jq,
34222
+ showTableExplorer: Qq,
34223
+ togglePanel: $q,
34224
+ isAnyPanelOpen: tJ,
33988
34225
  downloadAs: K,
33989
34226
  sizeBytes: _,
33990
34227
  sizeBytesIsLoading: v
33991
34228
  }),
33992
- uJ && (0, import_jsx_runtime.jsxs)(Banner, {
34229
+ xJ && (0, import_jsx_runtime.jsxs)(Banner, {
33993
34230
  className: "mb-1 mx-2 rounded flex items-center justify-between",
33994
34231
  children: [
33995
34232
  (0, import_jsx_runtime.jsx)("span", {
@@ -33998,26 +34235,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33998
34235
  (0, import_jsx_runtime.jsx)(Button, {
33999
34236
  variant: "link",
34000
34237
  size: "xs",
34001
- onClick: () => nJ.resetColumnVisibility(true),
34238
+ onClick: () => pJ.resetColumnVisibility(true),
34002
34239
  children: "Unhide all"
34003
34240
  })
34004
34241
  ]
34005
34242
  }),
34006
34243
  (0, import_jsx_runtime.jsxs)(Table, {
34007
34244
  className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
34008
- ref: aJ,
34245
+ ref: gJ,
34009
34246
  children: [
34010
- Jq && (0, import_jsx_runtime.jsx)("thead", {
34247
+ aJ && (0, import_jsx_runtime.jsx)("thead", {
34011
34248
  className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
34012
34249
  }),
34013
- renderTableHeader(nJ, iJ || !!n),
34250
+ renderTableHeader(pJ, hJ || !!n),
34014
34251
  (0, import_jsx_runtime.jsx)(DataTableBody, {
34015
- table: nJ,
34252
+ table: pJ,
34016
34253
  columns: i,
34017
- rowViewerPanelOpen: rJ,
34018
- getRowIndex: tJ,
34019
- viewedRowIdx: Gq,
34020
- virtualize: iJ
34254
+ rowViewerPanelOpen: mJ,
34255
+ getRowIndex: fJ,
34256
+ viewedRowIdx: nJ,
34257
+ virtualize: hJ
34021
34258
  })
34022
34259
  ]
34023
34260
  }),
@@ -34028,11 +34265,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
34028
34265
  pagination: J,
34029
34266
  selection: c,
34030
34267
  onRowSelectionChange: Q,
34031
- table: nJ,
34032
- getRowIds: Tq,
34033
- showPageSizeSelector: Bq,
34034
- tableLoading: Nq,
34035
- togglePanel: Hq
34268
+ table: pJ,
34269
+ getRowIds: Iq,
34270
+ showPageSizeSelector: Zq,
34271
+ tableLoading: Wq
34036
34272
  })
34037
34273
  ]
34038
34274
  })
@@ -34134,13 +34370,13 @@ ${d}`,
34134
34370
  }) : (0, import_jsx_runtime.jsx)(ChevronRight, {
34135
34371
  className: "h-3 w-3"
34136
34372
  }), t[17] = z, t[18] = $);
34137
- let Eq;
34138
- t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Eq = (0, import_jsx_runtime.jsx)("span", {
34373
+ let Iq;
34374
+ t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Iq = (0, import_jsx_runtime.jsx)("span", {
34139
34375
  className: "text-[0.6875rem] uppercase tracking-wider",
34140
34376
  children: "Traceback"
34141
- }), t[19] = Eq) : Eq = t[19];
34142
- let Dq;
34143
- t[20] !== z || t[21] !== J || t[22] !== Q || t[23] !== $ ? (Dq = (0, import_jsx_runtime.jsxs)("button", {
34377
+ }), t[19] = Iq) : Iq = t[19];
34378
+ let Rq;
34379
+ t[20] !== z || t[21] !== J || t[22] !== Q || t[23] !== $ ? (Rq = (0, import_jsx_runtime.jsxs)("button", {
34144
34380
  type: "button",
34145
34381
  onClick: J,
34146
34382
  "aria-expanded": z,
@@ -34148,22 +34384,22 @@ ${d}`,
34148
34384
  className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
34149
34385
  children: [
34150
34386
  $,
34151
- Eq
34387
+ Iq
34152
34388
  ]
34153
- }), t[20] = z, t[21] = J, t[22] = Q, t[23] = $, t[24] = Dq) : Dq = t[24];
34154
- let Oq;
34155
- t[25] !== s || t[26] !== z ? (Oq = z && (0, import_jsx_runtime.jsx)("div", {
34389
+ }), t[20] = z, t[21] = J, t[22] = Q, t[23] = $, t[24] = Rq) : Rq = t[24];
34390
+ let zq;
34391
+ t[25] !== s || t[26] !== z ? (zq = z && (0, import_jsx_runtime.jsx)("div", {
34156
34392
  className: "text-muted-foreground pr-4 text-xs overflow-auto",
34157
34393
  children: s
34158
- }), t[25] = s, t[26] = z, t[27] = Oq) : Oq = t[27];
34159
- let kq;
34160
- t[28] !== q || t[29] !== M ? (kq = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34394
+ }), t[25] = s, t[26] = z, t[27] = zq) : zq = t[27];
34395
+ let Bq;
34396
+ t[28] !== q || t[29] !== M ? (Bq = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34161
34397
  tooltip: "Fix with AI",
34162
34398
  openPrompt: () => q(false),
34163
34399
  applyAutofix: () => q(true)
34164
- }), t[28] = q, t[29] = M, t[30] = kq) : kq = t[30];
34165
- let Aq;
34166
- t[31] !== w || t[32] !== v ? (Aq = w && (0, import_jsx_runtime.jsx)(Tooltip, {
34400
+ }), t[28] = q, t[29] = M, t[30] = Bq) : Bq = t[30];
34401
+ let Vq;
34402
+ t[31] !== w || t[32] !== v ? (Vq = w && (0, import_jsx_runtime.jsx)(Tooltip, {
34167
34403
  content: "Attach pdb to the exception point.",
34168
34404
  children: (0, import_jsx_runtime.jsxs)(Button, {
34169
34405
  size: "xs",
@@ -34180,9 +34416,9 @@ ${d}`,
34180
34416
  "Launch debugger"
34181
34417
  ]
34182
34418
  })
34183
- }), t[31] = w, t[32] = v, t[33] = Aq) : Aq = t[33];
34184
- let jq;
34185
- t[34] !== d || t[35] !== i ? (jq = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34419
+ }), t[31] = w, t[32] = v, t[33] = Vq) : Vq = t[33];
34420
+ let Hq;
34421
+ t[34] !== d || t[35] !== i ? (Hq = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34186
34422
  children: [
34187
34423
  (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
34188
34424
  asChild: true,
@@ -34250,25 +34486,25 @@ ${d}`,
34250
34486
  ]
34251
34487
  })
34252
34488
  ]
34253
- }), t[34] = d, t[35] = i, t[36] = jq) : jq = t[36];
34254
- let Mq;
34255
- t[37] !== kq || t[38] !== Aq || t[39] !== jq ? (Mq = (0, import_jsx_runtime.jsxs)("div", {
34489
+ }), t[34] = d, t[35] = i, t[36] = Hq) : Hq = t[36];
34490
+ let Uq;
34491
+ t[37] !== Bq || t[38] !== Vq || t[39] !== Hq ? (Uq = (0, import_jsx_runtime.jsxs)("div", {
34256
34492
  className: "flex gap-2",
34257
34493
  children: [
34258
- kq,
34259
- Aq,
34260
- jq
34494
+ Bq,
34495
+ Vq,
34496
+ Hq
34261
34497
  ]
34262
- }), t[37] = kq, t[38] = Aq, t[39] = jq, t[40] = Mq) : Mq = t[40];
34263
- let Nq;
34264
- return t[41] !== Dq || t[42] !== Oq || t[43] !== Mq ? (Nq = (0, import_jsx_runtime.jsxs)("div", {
34498
+ }), t[37] = Bq, t[38] = Vq, t[39] = Hq, t[40] = Uq) : Uq = t[40];
34499
+ let Wq;
34500
+ return t[41] !== Rq || t[42] !== zq || t[43] !== Uq ? (Wq = (0, import_jsx_runtime.jsxs)("div", {
34265
34501
  className: "flex flex-col gap-2 min-w-full w-fit",
34266
34502
  children: [
34267
- Dq,
34268
- Oq,
34269
- Mq
34503
+ Rq,
34504
+ zq,
34505
+ Uq
34270
34506
  ]
34271
- }), t[41] = Dq, t[42] = Oq, t[43] = Mq, t[44] = Nq) : Nq = t[44], Nq;
34507
+ }), t[41] = Rq, t[42] = zq, t[43] = Uq, t[44] = Wq) : Wq = t[44], Wq;
34272
34508
  };
34273
34509
  function lastLine(e) {
34274
34510
  var _a2, _b;
@@ -35745,7 +35981,7 @@ ${d}`,
35745
35981
  return Logger.warn("Failed to get version from mount config"), null;
35746
35982
  }
35747
35983
  }
35748
- marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.10-dev29");
35984
+ marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.10-dev30");
35749
35985
  showCodeInRunModeAtom = atom(true);
35750
35986
  atom(null);
35751
35987
  var import_compiler_runtime = require_compiler_runtime();
@@ -35773,121 +36009,126 @@ ${d}`,
35773
36009
  }
35774
36010
  });
35775
36011
  export {
35776
- slotsController as $,
35777
- Expand as $t,
35778
- ContextMenuSeparator as A,
35779
- Maps as At,
35780
- CommandEmpty as B,
35781
- ChartLoadingState as Bt,
36012
+ contextAwarePanelOpen as $,
36013
+ $fae977aafc393c5c$export$6b862160d295c8e as $t,
36014
+ prettifyRowCount as A,
36015
+ SELECT_COLUMN_ID as At,
36016
+ DatePicker as B,
36017
+ TabsContent as Bt,
35782
36018
  downloadSizeLimitAtom as C,
35783
- loadTableData as Ct,
35784
- ContextMenu as D,
35785
- toFieldTypes as Dt,
35786
- getColumnCountForDisplay as E,
35787
- TOO_MANY_ROWS as Et,
35788
- DatePicker as F,
35789
- TabsContent as Ft,
35790
- smartMatch as G,
35791
- HtmlOutput as Gt,
35792
- CommandItem as H,
35793
- useOverflowDetection as Ht,
35794
- DateRangePicker as I,
35795
- TabsList as It,
35796
- contextAwarePanelOpen as J,
35797
- $fae977aafc393c5c$export$6b862160d295c8e as Jt,
35798
- ContextAwarePanelItem as K,
35799
- EmotionCacheProvider as Kt,
35800
- Combobox as L,
35801
- TabsTrigger as Lt,
35802
- useInternalStateWithSync as M,
35803
- dateToLocalISODateTime as Mt,
35804
- useSelectList as N,
35805
- dateToLocalISOTime as Nt,
35806
- ContextMenuContent as O,
35807
- getMimeValues as Ot,
35808
- CompactChipRow as P,
35809
- Tabs as Pt,
35810
- SlotNames as Q,
35811
- EyeOff as Qt,
35812
- ComboboxItem as R,
35813
- ChartErrorState as Rt,
36019
+ DelayMount as Ct,
36020
+ ErrorState as D,
36021
+ loadTableAndRawData as Dt,
36022
+ EmptyState as E,
36023
+ getPageIndexForRow as Et,
36024
+ ContextMenuSeparator as F,
36025
+ Maps as Ft,
36026
+ CommandEmpty as G,
36027
+ ChartLoadingState as Gt,
36028
+ Combobox as H,
36029
+ TabsTrigger as Ht,
36030
+ ContextMenuTrigger as I,
36031
+ dateToLocalISODate as It,
36032
+ CommandList as J,
36033
+ RenderTextWithLinks as Jt,
36034
+ CommandInput as K,
36035
+ LazyVegaEmbed as Kt,
36036
+ useInternalStateWithSync as L,
36037
+ dateToLocalISODateTime as Lt,
36038
+ ContextMenu as M,
36039
+ toFieldTypes as Mt,
36040
+ ContextMenuContent as N,
36041
+ getMimeValues as Nt,
36042
+ LoadingState as O,
36043
+ loadTableData as Ot,
36044
+ ContextMenuItem as P,
36045
+ isNullishFilter as Pt,
36046
+ PANEL_TYPES as Q,
36047
+ $fae977aafc393c5c$export$588937bcd60ade55 as Qt,
36048
+ useSelectList as R,
36049
+ dateToLocalISOTime as Rt,
35814
36050
  Filenames as S,
35815
- loadTableAndRawData as St,
35816
- prettifyRowCount as T,
35817
- SELECT_COLUMN_ID as Tt,
35818
- CommandList as U,
35819
- RenderTextWithLinks as Ut,
35820
- CommandInput as V,
35821
- LazyVegaEmbed as Vt,
35822
- CommandSeparator as W,
35823
- Kbd as Wt,
35824
- contextAwarePanelType as X,
35825
- GripHorizontal as Xt,
35826
- contextAwarePanelOwner as Y,
35827
- TextWrap as Yt,
35828
- isCellAwareAtom as Z,
35829
- Funnel as Zt,
36051
+ ColumnChartSpecModel as St,
36052
+ ColumnPreviewContainer as T,
36053
+ usePrevious as Tt,
36054
+ ComboboxItem as U,
36055
+ ChartErrorState as Ut,
36056
+ DateRangePicker as V,
36057
+ TabsList as Vt,
36058
+ Command as W,
36059
+ ChartInfoState as Wt,
36060
+ smartMatch as X,
36061
+ HtmlOutput as Xt,
36062
+ CommandSeparator as Y,
36063
+ Kbd as Yt,
36064
+ ContextAwarePanelItem as Z,
36065
+ EmotionCacheProvider as Zt,
35830
36066
  ADD_PRINTING_CLASS as _,
35831
36067
  __tla,
35832
- ColumnChartSpecModel as _t,
36068
+ NAMELESS_COLUMN_PREFIX as _t,
35833
36069
  DEFAULT_SLIDE_TYPE as a,
35834
- ChevronsLeft as an,
35835
- Provider$1 as at,
36070
+ Ellipsis as an,
36071
+ Toggle as at,
35836
36072
  downloadHTMLAsImage as b,
35837
- usePrevious as bt,
36073
+ renderCellValue as bt,
35838
36074
  Slide as c,
35839
- ArrowDownWideNarrow as cn,
35840
- TableCell as ct,
36075
+ ChevronsUpDown as cn,
36076
+ PanelResizeHandle as ct,
35841
36077
  RadioGroupItem as d,
35842
- TableRow as dt,
35843
- Ellipsis as en,
35844
- Toggle as et,
36078
+ ChevronsDownUp as dn,
36079
+ Table as dt,
36080
+ TextWrap as en,
36081
+ contextAwarePanelOwner as et,
35845
36082
  JsonOutput as f,
35846
- NAMELESS_COLUMN_PREFIX as ft,
36083
+ ChevronLeft as fn,
36084
+ TableBody as ft,
35847
36085
  InstallPackageButton as g,
35848
- ColumnChartContext as gt,
36086
+ TableRow as gt,
35849
36087
  DataTable as h,
35850
- renderCellValue as ht,
36088
+ TableHeader as ht,
35851
36089
  DEFAULT_DECK_TRANSITION as i,
35852
- ChevronsRight as in,
35853
- Fill as it,
35854
- ContextMenuTrigger as j,
35855
- dateToLocalISODate as jt,
35856
- ContextMenuItem as k,
35857
- isNullishFilter as kt,
36090
+ Expand as in,
36091
+ slotsController as it,
36092
+ getColumnCountForDisplay as j,
36093
+ TOO_MANY_ROWS as jt,
36094
+ prettifyRowColumnCount as k,
36095
+ INDEX_COLUMN_NAME as kt,
35858
36096
  Switch as l,
35859
- TableHead as lt,
36097
+ ChevronsRight as ln,
36098
+ Fill as lt,
35860
36099
  OutputRenderer as m,
35861
- inferFieldTypes as mt,
36100
+ TableHead as mt,
35862
36101
  marimoVersionAtom as n,
35863
- Code as nn,
35864
- PanelGroup as nt,
36102
+ Funnel as nn,
36103
+ isCellAwareAtom as nt,
35865
36104
  SLIDE_TYPE_OPTIONS_BY_VALUE as o,
35866
- ChevronsDownUp as on,
35867
- Table as ot,
36105
+ Download as on,
36106
+ Panel as ot,
35868
36107
  OutputArea as p,
35869
- generateColumns as pt,
35870
- PANEL_TYPES as q,
35871
- $fae977aafc393c5c$export$588937bcd60ade55 as qt,
36108
+ ArrowDownWideNarrow as pn,
36109
+ TableCell as pt,
36110
+ CommandItem as q,
36111
+ useOverflowDetection as qt,
35872
36112
  showCodeInRunModeAtom as r,
35873
- ChevronsUpDown as rn,
35874
- PanelResizeHandle as rt,
36113
+ EyeOff as rn,
36114
+ SlotNames as rt,
35875
36115
  SlideSidebar as s,
35876
- ChevronLeft as sn,
35877
- TableBody as st,
36116
+ Code as sn,
36117
+ PanelGroup as st,
35878
36118
  useNotebookCodeAvailable as t,
35879
- Download as tn,
35880
- Panel as tt,
36119
+ GripHorizontal as tn,
36120
+ contextAwarePanelType as tt,
35881
36121
  RadioGroup as u,
35882
- TableHeader as ut,
36122
+ ChevronsLeft as un,
36123
+ Provider$1 as ut,
35883
36124
  downloadBlob as v,
35884
- DelayMount as vt,
35885
- prettifyRowColumnCount as w,
35886
- INDEX_COLUMN_NAME as wt,
36125
+ generateColumns as vt,
36126
+ ColumnName as w,
36127
+ useIntersectionObserver as wt,
35887
36128
  Progress as x,
35888
- getPageIndexForRow as xt,
36129
+ ColumnChartContext as xt,
35889
36130
  downloadByURL as y,
35890
- useIntersectionObserver as yt,
35891
- Command as z,
35892
- ChartInfoState as zt
36131
+ inferFieldTypes as yt,
36132
+ CompactChipRow as z,
36133
+ Tabs as zt
35893
36134
  };