@marimo-team/islands 0.21.2-dev77 → 0.21.2-dev79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/{any-language-editor-CSvBdMtG.js → any-language-editor-BBegsg-m.js} +17 -17
  2. package/dist/{chat-ui-CedqKBe3.js → chat-ui-D4ay_SFE.js} +9 -9
  3. package/dist/{dist-CEmSeYaL.js → dist-1-E4bC9V.js} +2 -2
  4. package/dist/{dist-DoO66t8e.js → dist-APyhcmvq.js} +1 -1
  5. package/dist/{dist-B6ZvKwIz.js → dist-B5thW2rT.js} +1 -1
  6. package/dist/{dist-mpvRA2Bc.js → dist-BFe8Nc_2.js} +3 -3
  7. package/dist/dist-BHGf2Zey.js +5 -0
  8. package/dist/dist-BImOGJZM.js +5 -0
  9. package/dist/{dist-DKr1M-ru.js → dist-BJvk9DSp.js} +1 -1
  10. package/dist/{dist-fRW2mZtS.js → dist-BLrc9iNb.js} +2 -2
  11. package/dist/{dist-DqweMfpO.js → dist-BYr4a-wE.js} +1 -1
  12. package/dist/dist-BbJfmCHJ.js +5 -0
  13. package/dist/{dist-Bc-mOFlk.js → dist-BrJQDkv_.js} +2 -2
  14. package/dist/dist-C0v-nFs_.js +8 -0
  15. package/dist/{dist-D2nC1On3.js → dist-C16JG-Ok.js} +2 -2
  16. package/dist/{dist-N1lm7LVK.js → dist-C4EV3aDt.js} +37 -71
  17. package/dist/dist-C8N7114Z.js +5 -0
  18. package/dist/dist-C9TDg2aq.js +8 -0
  19. package/dist/{dist-DvjVNme1.js → dist-CGH6Jw-c.js} +1 -1
  20. package/dist/{dist-CXsGjNbR.js → dist-CKVkWFcB.js} +2 -2
  21. package/dist/dist-CN4RKgNR.js +5 -0
  22. package/dist/{dist--MUqhsBh.js → dist-CQ3XmGIH.js} +1 -1
  23. package/dist/{dist-B771Ewvn.js → dist-CSiTW5NO.js} +3 -3
  24. package/dist/dist-CVOkf_3P.js +6 -0
  25. package/dist/{dist-8-jPFKws.js → dist-CYuoqvce.js} +2 -2
  26. package/dist/dist-Cbkga3s5.js +5 -0
  27. package/dist/{dist-TuFHGVp2.js → dist-Cm4SOB1A.js} +1 -1
  28. package/dist/{dist-BsyHyGqX.js → dist-CxczluAk.js} +2 -2
  29. package/dist/dist-D6YTv0Kj.js +5 -0
  30. package/dist/{dist-DlacJSaE.js → dist-D75XqRaT.js} +2 -2
  31. package/dist/dist-D9vawryf.js +8 -0
  32. package/dist/{dist-CpNdP46s.js → dist-DFBjYgbq.js} +2 -2
  33. package/dist/{dist-DqT0O-4m.js → dist-DUg5n_x5.js} +5 -5
  34. package/dist/dist-DasJgTvL.js +6 -0
  35. package/dist/{dist-DNSJBJI7.js → dist-DbyoYfBn.js} +2 -2
  36. package/dist/{dist-CsToCMcA.js → dist-Dd9vDQtp.js} +2 -2
  37. package/dist/{dist-QxBlbqgj.js → dist-Dk13KZ54.js} +3 -3
  38. package/dist/dist-Ui51qXMz.js +8 -0
  39. package/dist/{dist-DEmPLkH9.js → dist-XYBhoeSX.js} +4 -4
  40. package/dist/{dist-CwP9oyR8.js → dist-Y9GfSR6_.js} +2 -2
  41. package/dist/{dist-BjYGwQ65.js → dist-aW74oyUt.js} +1 -1
  42. package/dist/dist-d2msfN-B.js +5 -0
  43. package/dist/{dist-Bg1YGq2b.js → dist-iM9VwH8Z.js} +1 -1
  44. package/dist/{dist-DSSPn3fP.js → dist-uR-o9IVx.js} +2 -2
  45. package/dist/{dist-CJEfzjG5.js → dist-zGOEySUQ.js} +4 -4
  46. package/dist/{esm-B_4hpmV_.js → esm-CCD9xN05.js} +22 -22
  47. package/dist/{esm-Bcbo0Yvz.js → esm-CxoKu9RN.js} +3 -3
  48. package/dist/main.js +948 -334
  49. package/dist/{process-output-Xg5O7mVz.js → process-output-Cv8vQ4At.js} +33 -33
  50. package/package.json +2 -1
  51. package/src/__tests__/setup.ts +15 -0
  52. package/src/components/data-table/TableActions.tsx +8 -2
  53. package/src/components/data-table/__tests__/data-table.test.tsx +63 -0
  54. package/src/components/data-table/data-table.tsx +10 -31
  55. package/src/components/data-table/hooks/use-scroll-container-height.ts +97 -0
  56. package/src/components/data-table/renderers.tsx +103 -46
  57. package/src/components/data-table/types.ts +14 -0
  58. package/src/core/islands/main.ts +0 -1
  59. package/src/core/websocket/useMarimoKernelConnection.tsx +1 -10
  60. package/dist/dist-BK8Ch8me.js +0 -5
  61. package/dist/dist-BPlAe3w3.js +0 -6
  62. package/dist/dist-BQnLGf1A.js +0 -8
  63. package/dist/dist-BZRBnAnM.js +0 -5
  64. package/dist/dist-BmTKj-5m.js +0 -5
  65. package/dist/dist-C1UyhB0b.js +0 -5
  66. package/dist/dist-C1uqqTuH.js +0 -5
  67. package/dist/dist-CCeSY9xv.js +0 -5
  68. package/dist/dist-CMWhb0s1.js +0 -5
  69. package/dist/dist-DYoFz28E.js +0 -8
  70. package/dist/dist-DeSnQwvL.js +0 -6
  71. package/dist/dist-e8VqCQ_P.js +0 -5
  72. package/dist/dist-kGaha3sX.js +0 -8
  73. package/dist/dist-wQD8nhf9.js +0 -8
package/dist/main.js CHANGED
@@ -21,7 +21,7 @@ import { a as __toCommonJS, n as __esmMin, r as __export, s as __toESM, t as __c
21
21
  import { t as require_react } from "./react-Bs6Z0kvn.js";
22
22
  import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
23
23
  import { n as Copy, r as toast, t as copyToClipboard } from "./copy-B7XqFjF_.js";
24
- import { $ as dataViewToBase64, A as AccordionItem, An as Table2, At as normalizeName, B as createInputEvent, Bn as Columns2, Bt as generateUUID, Cn as jsonToMarkdown, Ct as isErrorMime, Dn as selectAtom, Dt as displayCellName, En as atomWithStorage, Et as getCellDomProps, F as AccordionTrigger$1, Fn as Info, Ft as PathBuilder, G as ChevronRightIcon, Gn as import_lib, Hn as CircleAlert, Ht as repl, I as MarimoIncomingMessageEvent, In as File, It as Paths, J as PinRightIcon, Jt as DATA_TYPE_ICON, K as DotFilledIcon, Kt as PluralWord, L as MarimoValueInputEvent, Ln as FileText, M as Accordion$1, Mn as NotebookPen, Mt as customPythonLanguageSupport, N as AccordionContent$1, Nn as LoaderCircle, Nt as MarkdownLanguageAdapter, O as Accordion, On as Wrench, Ot as getValidName, P as AccordionItem$1, Pn as Layers, Q as base64ToUint8Array, R as MarimoValueReadyEvent, Rn as Eye, Rt as goToCellLine, S as getDatasourceContext, Sn as jsonParseWithSpecialChar, St as outputIsStale, Tn as atomWithReducer, Tt as DATA_CELL_ID, U as CheckIcon, Un as Braces, Ut as adaptForLocalStorage, V as BorderAllIcon, Vn as CircleX, Vt as useChromeActions, W as ChevronDownIcon, Wn as esm_default$1, Wt as jotaiJsonStorage, Xt as require_client, Y as deserializeBlob, Yt as getDataTypeColor, Z as base64ToDataView, _ as PopoverClose, _n as SCRATCH_CELL_ID, _t as getInitialAppMode, a as toPng, at as createActions, b as useExpandedOutput, bn as OBJECT_ID_ATTR, bt as viewStateAtom, c as useCellFocusActions, cn as getTracebackInfo, ct as notebookAtom, d as Spinner, dn as filenameAtom, dt as useCellActions, en as convertStatsName, et as extractBase64FromDataURL, f as Popover$1, fn as parseAttrValue, ft as useCellIds, gn as HTMLCellId, gt as AnsiUp, h as PopoverTrigger, hn as CellOutputId, ht as Strings, i as PythonIcon, in as isUninstantiated, j as AccordionTrigger, jn as PaintRoller, jt as Checkbox, k as AccordionContent, kn as Trash2, kt as isInternalCellName, l as useLastFocusedCellId, ln as NotebookScopedLocalStorage, lt as notebookOutline, m as PopoverContent, mn as parseInitialValue, mt as createCell, n as blobToString, nn as requestClientAtom, nt as safeExtractSetUIElementMessageBuffers, o as MarkdownRenderer, on as elementContainsMarimoCellFile, ot as getCellEditorView, p as PopoverClose$1, pn as parseDataset, pt as useCellNames, q as PinLeftIcon, qt as PluralWords, r as filesToBase64, rn as useRequestClient, rt as renderHTML, s as LazyAnyLanguageCodeMirror, sn as extractAllTracebackInfo, st as getCellNames, t as processOutput, tn as getRequestClient, tt as isDataURLString, u as maybeAddAltairImport, ut as reducer, v as isOutputEmpty, vn as UIElementId, vt as initialModeAtom, wn as jsonToTSV, wt as headingToIdentifier, xn as RANDOM_ID_ATTR, xt as outputIsLoading, y as useExpandedConsoleOutput, yn as findCellId, yt as kioskModeAtom, z as MarimoValueUpdateEvent, zn as Database, zt as DeferredRequestRegistry, __tla as __tla_0 } from "./process-output-Xg5O7mVz.js";
24
+ import { $ as dataViewToBase64, A as AccordionItem, An as Table2, At as normalizeName, B as createInputEvent, Bn as Columns2, Bt as generateUUID, Cn as jsonToMarkdown, Ct as isErrorMime, Dn as selectAtom, Dt as displayCellName, En as atomWithStorage, Et as getCellDomProps, F as AccordionTrigger$1, Fn as Info, Ft as PathBuilder, G as ChevronRightIcon, Gn as import_lib, Hn as CircleAlert, Ht as repl, I as MarimoIncomingMessageEvent, In as File, It as Paths, J as PinRightIcon, Jt as DATA_TYPE_ICON, K as DotFilledIcon, Kt as PluralWord, L as MarimoValueInputEvent, Ln as FileText, M as Accordion$1, Mn as NotebookPen, Mt as customPythonLanguageSupport, N as AccordionContent$1, Nn as LoaderCircle, Nt as MarkdownLanguageAdapter, O as Accordion, On as Wrench, Ot as getValidName, P as AccordionItem$1, Pn as Layers, Q as base64ToUint8Array, R as MarimoValueReadyEvent, Rn as Eye, Rt as goToCellLine, S as getDatasourceContext, Sn as jsonParseWithSpecialChar, St as outputIsStale, Tn as atomWithReducer, Tt as DATA_CELL_ID, U as CheckIcon, Un as Braces, Ut as adaptForLocalStorage, V as BorderAllIcon, Vn as CircleX, Vt as useChromeActions, W as ChevronDownIcon, Wn as esm_default$1, Wt as jotaiJsonStorage, Xt as require_client, Y as deserializeBlob, Yt as getDataTypeColor, Z as base64ToDataView, _ as PopoverClose, _n as SCRATCH_CELL_ID, _t as getInitialAppMode, a as toPng, at as createActions, b as useExpandedOutput, bn as OBJECT_ID_ATTR, bt as viewStateAtom, c as useCellFocusActions, cn as getTracebackInfo, ct as notebookAtom, d as Spinner, dn as filenameAtom, dt as useCellActions, en as convertStatsName, et as extractBase64FromDataURL, f as Popover$1, fn as parseAttrValue, ft as useCellIds, gn as HTMLCellId, gt as AnsiUp, h as PopoverTrigger, hn as CellOutputId, ht as Strings, i as PythonIcon, in as isUninstantiated, j as AccordionTrigger, jn as PaintRoller, jt as Checkbox, k as AccordionContent, kn as Trash2, kt as isInternalCellName, l as useLastFocusedCellId, ln as NotebookScopedLocalStorage, lt as notebookOutline, m as PopoverContent, mn as parseInitialValue, mt as createCell, n as blobToString, nn as requestClientAtom, nt as safeExtractSetUIElementMessageBuffers, o as MarkdownRenderer, on as elementContainsMarimoCellFile, ot as getCellEditorView, p as PopoverClose$1, pn as parseDataset, pt as useCellNames, q as PinLeftIcon, qt as PluralWords, r as filesToBase64, rn as useRequestClient, rt as renderHTML, s as LazyAnyLanguageCodeMirror, sn as extractAllTracebackInfo, st as getCellNames, t as processOutput, tn as getRequestClient, tt as isDataURLString, u as maybeAddAltairImport, ut as reducer, v as isOutputEmpty, vn as UIElementId, vt as initialModeAtom, wn as jsonToTSV, wt as headingToIdentifier, xn as RANDOM_ID_ATTR, xt as outputIsLoading, y as useExpandedConsoleOutput, yn as findCellId, yt as kioskModeAtom, z as MarimoValueUpdateEvent, zn as Database, zt as DeferredRequestRegistry, __tla as __tla_0 } from "./process-output-Cv8vQ4At.js";
25
25
  import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-Cz2QbNIw.js";
26
26
  import { c as useSize, l as createLucideIcon, t as Root$4 } from "./dist-BiNtCiQ9.js";
27
27
  import { A as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as ListFilter, I as ChartPie, L as ChartColumn, M as $5a387cc49350e6db$export$722debc0e56fea39, N as Table$1, O as TIME_UNIT_DESCRIPTIONS, P as SquareFunction, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as $fb18d541ea1ad717$export$ad991b66133851cf, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON } from "./spec-UGFYIDJb.js";
@@ -37,23 +37,23 @@ import { $ as __awaiter, B as record, C as ZodUnion, D as any, E as _null, F as
37
37
  import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
38
38
  import { t as require_react_dom } from "./react-dom-BKwCWYPW.js";
39
39
  import { a as TooltipRoot, i as TooltipProvider, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, s as TooltipProvider$1, t as Tooltip } from "./tooltip-DnI4CwIS.js";
40
- import { n as minimalSetup, r as _extends$5, t as esm_default, u as CopyClipboardIcon } from "./esm-Bcbo0Yvz.js";
40
+ import { n as minimalSetup, r as _extends$5, t as esm_default, u as CopyClipboardIcon } from "./esm-CxoKu9RN.js";
41
41
  import { i as get_default } from "./hasIn-eLCPDloT.js";
42
42
  import { n as _baseSet_default } from "./_basePickBy-Do49cXgl.js";
43
43
  import { n as pick_default, t as range_default } from "./range-DffmqG6L.js";
44
44
  import { i as debounce_default, r as KnownQueryParams, t as CSSClasses } from "./constants-LmeAawHa.js";
45
45
  import { C as useEvent_default, S as getBuildingBlocks, _ as useSetAtom, c as AppConfigSchema, d as useJotaiEffect, g as useAtomValue, h as useAtom, i as autoInstantiateAtom, m as Provider, n as useTheme, o as localeAtom, r as aiEnabledAtom, s as useResolvedMarimoConfig, u as store, v as useStore, w as isEqual_default, x as buildStore, y as atom } from "./useTheme-5GTtjXjy.js";
46
46
  import { a as getContainerWidth, n as vegaLoadData, o as getVegaFieldTypes, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-C51Irhxm.js";
47
- import { Z as EditorView } from "./dist-N1lm7LVK.js";
47
+ import { Z as EditorView } from "./dist-C4EV3aDt.js";
48
48
  import { t as invariant } from "./invariant-Ctm_8TNZ.js";
49
49
  import { c as arrayShallowEquals, l as uniqueBy, n as once, r as Arrays, t as memoizeLastValue, u as clamp } from "./once-DjP4Kbhy.js";
50
50
  import "./main-sxFlUO_N.js";
51
- import { f as sql } from "./dist-DlacJSaE.js";
52
- import "./dist-B771Ewvn.js";
53
- import "./dist-mpvRA2Bc.js";
54
- import "./dist-TuFHGVp2.js";
55
- import "./dist-Bc-mOFlk.js";
56
- import { a as parser, r as python } from "./dist-D2nC1On3.js";
51
+ import { f as sql } from "./dist-D75XqRaT.js";
52
+ import "./dist-CSiTW5NO.js";
53
+ import "./dist-BFe8Nc_2.js";
54
+ import "./dist-Cm4SOB1A.js";
55
+ import "./dist-BrJQDkv_.js";
56
+ import { a as parser, r as python } from "./dist-C16JG-Ok.js";
57
57
  import "./purify.es-Co_dANLh.js";
58
58
  import { a as AlertTitle, i as AlertDescription, n as arrow, o as isValid, r as Alert, t as useDeepCompareMemoize } from "./useDeepCompareMemoize-9dXEtK7u.js";
59
59
  import { a as Portal$1, c as prettyError, i as Overlay, n as ErrorBanner, o as Root$6, r as Content$2, s as CellNotInitializedError, t as Banner } from "./error-banner-D-KBGvBj.js";
@@ -63,16 +63,16 @@ import { t as useIframeCapabilities } from "./useIframeCapabilities-CzVvBDe8.js"
63
63
  import { t as useAsyncData } from "./useAsyncData-BtHYXgXF.js";
64
64
  import "./defaultLocale-I3_GfJ4U.js";
65
65
  import "./defaultLocale-Dr6Bz4JK.js";
66
- import "./dist-DKr1M-ru.js";
67
- import "./dist-DNSJBJI7.js";
68
- import "./dist-BjYGwQ65.js";
69
- import "./dist-DvjVNme1.js";
70
- import "./dist-CEmSeYaL.js";
71
- import "./dist-B6ZvKwIz.js";
72
- import "./dist-8-jPFKws.js";
73
- import "./dist-Bg1YGq2b.js";
74
- import "./dist--MUqhsBh.js";
75
- import { t as langs } from "./esm-B_4hpmV_.js";
66
+ import "./dist-BJvk9DSp.js";
67
+ import "./dist-DbyoYfBn.js";
68
+ import "./dist-aW74oyUt.js";
69
+ import "./dist-CGH6Jw-c.js";
70
+ import "./dist-1-E4bC9V.js";
71
+ import "./dist-B5thW2rT.js";
72
+ import "./dist-CYuoqvce.js";
73
+ import "./dist-iM9VwH8Z.js";
74
+ import "./dist-CQ3XmGIH.js";
75
+ import { t as langs } from "./esm-CCD9xN05.js";
76
76
  let initialize;
77
77
  let __tla = Promise.all([
78
78
  (() => {
@@ -3621,7 +3621,7 @@ let __tla = Promise.all([
3621
3621
  }
3622
3622
  }
3623
3623
  }
3624
- var import_react_dom$3 = require_react_dom();
3624
+ var import_react_dom$4 = require_react_dom();
3625
3625
  function $d3f049242431219c$export$6d3443f2c48bfc20(e, r = true) {
3626
3626
  let [c, d] = (0, import_react.useState)(true), f = c && r;
3627
3627
  return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
@@ -3661,7 +3661,7 @@ let __tla = Promise.all([
3661
3661
  }
3662
3662
  let d = false;
3663
3663
  return Promise.all(r2.map((e2) => e2.finished)).then(() => {
3664
- d || (0, import_react_dom$3.flushSync)(() => {
3664
+ d || (0, import_react_dom$4.flushSync)(() => {
3665
3665
  c();
3666
3666
  });
3667
3667
  }).catch(() => {
@@ -7429,7 +7429,7 @@ let __tla = Promise.all([
7429
7429
  triggerAnchorPoint: z
7430
7430
  };
7431
7431
  }
7432
- var import_react_dom$2 = __toESM(require_react_dom(), 1), $337b884510726a0d$export$a2200b96afd16271 = import_react.createContext(null);
7432
+ var import_react_dom$3 = __toESM(require_react_dom(), 1), $337b884510726a0d$export$a2200b96afd16271 = import_react.createContext(null);
7433
7433
  function $337b884510726a0d$export$c6fdb837b070b4ff(e) {
7434
7434
  let r = $b5e257d569688ac6$export$535bd6ca7f90a273(), { portalContainer: c = r ? null : document.body, isExiting: d } = e, [f, h] = (0, import_react.useState)(false), _ = (0, import_react.useMemo)(() => ({
7435
7435
  contain: f,
@@ -7445,7 +7445,7 @@ let __tla = Promise.all([
7445
7445
  contain: (e.shouldContainFocus || f) && !d
7446
7446
  }, y)), y = import_react.createElement($337b884510726a0d$export$a2200b96afd16271.Provider, {
7447
7447
  value: _
7448
- }, import_react.createElement($f1ab8c75478c6f73$export$cf75428e0b9ed1ea, null, y)), import_react_dom$2.createPortal(y, c);
7448
+ }, import_react.createElement($f1ab8c75478c6f73$export$cf75428e0b9ed1ea, null, y)), import_react_dom$3.createPortal(y, c);
7449
7449
  }
7450
7450
  function $337b884510726a0d$export$14c98a7594375490() {
7451
7451
  var _a3;
@@ -8897,7 +8897,7 @@ let __tla = Promise.all([
8897
8897
  function set$1(e, r, c) {
8898
8898
  return e == null ? e : _baseSet_default(e, r, c);
8899
8899
  }
8900
- var set_default = set$1, import_jsx_runtime = __toESM(require_jsx_runtime(), 1), import_compiler_runtime$137 = require_compiler_runtime(), hydratedMap = /* @__PURE__ */ new WeakMap();
8900
+ var set_default = set$1, import_jsx_runtime = __toESM(require_jsx_runtime(), 1), import_compiler_runtime$138 = require_compiler_runtime(), hydratedMap = /* @__PURE__ */ new WeakMap();
8901
8901
  function useHydrateAtoms(e, r) {
8902
8902
  let c = useStore(r), d = getHydratedSet(c);
8903
8903
  for (let [f, ...h] of e) (!d.has(f) || (r == null ? void 0 : r.dangerouslyForceHydrate)) && (d.add(f), c.set(f, ...h));
@@ -12185,7 +12185,7 @@ let __tla = Promise.all([
12185
12185
  }
12186
12186
  }
12187
12187
  repl(MODEL_MANAGER, "MODEL_MANAGER");
12188
- var import_react_dom$1 = __toESM(require_react_dom(), 1), NAVIGATION_MENU_NAME = "NavigationMenu", [Collection$1, useCollection$1, createCollectionScope$1] = createCollection(NAVIGATION_MENU_NAME), [FocusGroupCollection, useFocusGroupCollection, createFocusGroupCollectionScope] = createCollection(NAVIGATION_MENU_NAME), [createNavigationMenuContext, createNavigationMenuScope] = createContextScope(NAVIGATION_MENU_NAME, [
12188
+ var import_react_dom$2 = __toESM(require_react_dom(), 1), NAVIGATION_MENU_NAME = "NavigationMenu", [Collection$1, useCollection$1, createCollectionScope$1] = createCollection(NAVIGATION_MENU_NAME), [FocusGroupCollection, useFocusGroupCollection, createFocusGroupCollectionScope] = createCollection(NAVIGATION_MENU_NAME), [createNavigationMenuContext, createNavigationMenuScope] = createContextScope(NAVIGATION_MENU_NAME, [
12189
12189
  createCollectionScope$1,
12190
12190
  createFocusGroupCollectionScope
12191
12191
  ]), [NavigationMenuProviderImpl, useNavigationMenuContext] = createNavigationMenuContext(NAVIGATION_MENU_NAME), [ViewportContentProvider, useViewportContentContext] = createNavigationMenuContext(NAVIGATION_MENU_NAME), NavigationMenu$1 = import_react.forwardRef((e, r) => {
@@ -12448,7 +12448,7 @@ let __tla = Promise.all([
12448
12448
  NavigationMenuLink$1.displayName = LINK_NAME;
12449
12449
  var INDICATOR_NAME$3 = "NavigationMenuIndicator", NavigationMenuIndicator$1 = import_react.forwardRef((e, r) => {
12450
12450
  let { forceMount: c, ...d } = e, f = useNavigationMenuContext(INDICATOR_NAME$3, e.__scopeNavigationMenu), h = !!f.value;
12451
- return f.indicatorTrack ? import_react_dom$1.createPortal((0, import_jsx_runtime.jsx)(Presence, {
12451
+ return f.indicatorTrack ? import_react_dom$2.createPortal((0, import_jsx_runtime.jsx)(Presence, {
12452
12452
  present: c || h,
12453
12453
  children: (0, import_jsx_runtime.jsx)(NavigationMenuIndicatorImpl, {
12454
12454
  ...d,
@@ -12765,7 +12765,7 @@ let __tla = Promise.all([
12765
12765
  return (r) => r.pointerType === "mouse" ? e(r) : void 0;
12766
12766
  }
12767
12767
  var Root2$3 = NavigationMenu$1, List$1 = NavigationMenuList$1, Item = NavigationMenuItem$1, Trigger$2 = NavigationMenuTrigger$1, Link = NavigationMenuLink$1, Indicator$3 = NavigationMenuIndicator$1, Content$1 = NavigationMenuContent$1, Viewport = NavigationMenuViewport$1, NavigationMenu = import_react.forwardRef((e, r) => {
12768
- let c = (0, import_compiler_runtime$137.c)(16), d, f, h, _;
12768
+ let c = (0, import_compiler_runtime$138.c)(16), d, f, h, _;
12769
12769
  c[0] === e ? (d = c[1], f = c[2], h = c[3], _ = c[4]) : ({ className: f, children: d, orientation: h, ..._ } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h, c[4] = _);
12770
12770
  let v = h === "horizontal" && "max-w-max flex-1 items-center justify-center", y = h === "vertical" && "", S;
12771
12771
  c[5] !== f || c[6] !== v || c[7] !== y ? (S = cn(v, y, "relative z-10", f), c[5] = f, c[6] = v, c[7] = y, c[8] = S) : S = c[8];
@@ -12795,7 +12795,7 @@ let __tla = Promise.all([
12795
12795
  orientation: "horizontal"
12796
12796
  }
12797
12797
  }), NavigationMenuList = import_react.forwardRef((e, r) => {
12798
- let c = (0, import_compiler_runtime$137.c)(11), d, f, h;
12798
+ let c = (0, import_compiler_runtime$138.c)(11), d, f, h;
12799
12799
  c[0] === e ? (d = c[1], f = c[2], h = c[3]) : ({ className: d, orientation: f, ...h } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h);
12800
12800
  let _;
12801
12801
  c[4] !== d || c[5] !== f ? (_ = cn(navigationMenuListStyle({
@@ -12820,7 +12820,7 @@ let __tla = Promise.all([
12820
12820
  orientation: "horizontal"
12821
12821
  }
12822
12822
  }), NavigationMenuTrigger = import_react.forwardRef((e, r) => {
12823
- let c = (0, import_compiler_runtime$137.c)(12), d, f, h;
12823
+ let c = (0, import_compiler_runtime$138.c)(12), d, f, h;
12824
12824
  c[0] === e ? (d = c[1], f = c[2], h = c[3]) : ({ className: f, children: d, ...h } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h);
12825
12825
  let _;
12826
12826
  c[4] === f ? _ = c[5] : (_ = cn(navigationMenuTriggerStyle(), "group", f), c[4] = f, c[5] = _);
@@ -12843,7 +12843,7 @@ let __tla = Promise.all([
12843
12843
  });
12844
12844
  NavigationMenuTrigger.displayName = Trigger$2.displayName;
12845
12845
  var NavigationMenuContent = import_react.forwardRef((e, r) => {
12846
- let c = (0, import_compiler_runtime$137.c)(9), d, f;
12846
+ let c = (0, import_compiler_runtime$138.c)(9), d, f;
12847
12847
  c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
12848
12848
  let h;
12849
12849
  c[3] === d ? h = c[4] : (h = cn("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ", d), c[3] = d, c[4] = h);
@@ -12856,7 +12856,7 @@ let __tla = Promise.all([
12856
12856
  });
12857
12857
  NavigationMenuContent.displayName = Content$1.displayName;
12858
12858
  var NavigationMenuLink = Link, NavigationMenuViewport = import_react.forwardRef((e, r) => {
12859
- let c = (0, import_compiler_runtime$137.c)(10), d, f;
12859
+ let c = (0, import_compiler_runtime$138.c)(10), d, f;
12860
12860
  c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
12861
12861
  let h;
12862
12862
  c[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = cn("absolute left-0 top-full flex justify-center"), c[3] = h) : h = c[3];
@@ -12874,7 +12874,7 @@ let __tla = Promise.all([
12874
12874
  });
12875
12875
  NavigationMenuViewport.displayName = Viewport.displayName;
12876
12876
  var NavigationMenuIndicator = import_react.forwardRef((e, r) => {
12877
- let c = (0, import_compiler_runtime$137.c)(10), d, f;
12877
+ let c = (0, import_compiler_runtime$138.c)(10), d, f;
12878
12878
  c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
12879
12879
  let h;
12880
12880
  c[3] === d ? h = c[4] : (h = cn("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", d), c[3] = d, c[4] = h);
@@ -12891,7 +12891,7 @@ let __tla = Promise.all([
12891
12891
  }), c[6] = f, c[7] = r, c[8] = h, c[9] = v) : v = c[9], v;
12892
12892
  });
12893
12893
  NavigationMenuIndicator.displayName = Indicator$3.displayName;
12894
- var import_compiler_runtime$136 = require_compiler_runtime(), NavigationMenuPlugin = class {
12894
+ var import_compiler_runtime$137 = require_compiler_runtime(), NavigationMenuPlugin = class {
12895
12895
  constructor() {
12896
12896
  __publicField(this, "tagName", "marimo-nav-menu");
12897
12897
  __publicField(this, "menuItemValidator", object({
@@ -12922,7 +12922,7 @@ let __tla = Promise.all([
12922
12922
  });
12923
12923
  }
12924
12924
  }, NavMenuComponent = (e) => {
12925
- let r = (0, import_compiler_runtime$136.c)(13), { items: c, orientation: d } = e, f = _temp$36, h = _temp2$25, _ = _temp3$17, v;
12925
+ let r = (0, import_compiler_runtime$137.c)(13), { items: c, orientation: d } = e, f = _temp$36, h = _temp2$25, _ = _temp3$17, v;
12926
12926
  r[0] === d ? v = r[1] : (v = (e2) => "items" in e2 ? d === "horizontal" ? (0, import_jsx_runtime.jsx)(NavigationMenu, {
12927
12927
  orientation: "horizontal",
12928
12928
  children: (0, import_jsx_runtime.jsx)(NavigationMenuList, {
@@ -13003,7 +13003,7 @@ let __tla = Promise.all([
13003
13003
  children: w
13004
13004
  }), r[10] = d, r[11] = w, r[12] = E) : E = r[12], E;
13005
13005
  }, ListItem = import_react.forwardRef((e, r) => {
13006
- let c = (0, import_compiler_runtime$136.c)(19), d, f, h, _;
13006
+ let c = (0, import_compiler_runtime$137.c)(19), d, f, h, _;
13007
13007
  c[0] === e ? (d = c[1], f = c[2], h = c[3], _ = c[4]) : ({ className: f, label: h, children: d, ..._ } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h, c[4] = _);
13008
13008
  let v;
13009
13009
  c[5] === f ? v = c[6] : (v = cn("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground", f), c[5] = f, c[6] = v);
@@ -15882,9 +15882,9 @@ let __tla = Promise.all([
15882
15882
  isSelected: _
15883
15883
  }
15884
15884
  }, M.children));
15885
- }), import_compiler_runtime$135 = require_compiler_runtime();
15885
+ }), import_compiler_runtime$136 = require_compiler_runtime();
15886
15886
  const LocaleProvider = (e) => {
15887
- let r = (0, import_compiler_runtime$135.c)(5), { children: c } = e, d = useAtomValue(localeAtom), f;
15887
+ let r = (0, import_compiler_runtime$136.c)(5), { children: c } = e, d = useAtomValue(localeAtom), f;
15888
15888
  r[0] === d ? f = r[1] : (f = safeLocale(d), r[0] = d, r[1] = f);
15889
15889
  let h;
15890
15890
  return r[2] !== c || r[3] !== f ? (h = (0, import_jsx_runtime.jsx)($18f2051aff69b9bf$export$a54013f0d02a8f82, {
@@ -16863,9 +16863,9 @@ let __tla = Promise.all([
16863
16863
  r,
16864
16864
  d.name
16865
16865
  ]), null;
16866
- }), import_compiler_runtime$134 = require_compiler_runtime();
16866
+ }), import_compiler_runtime$135 = require_compiler_runtime();
16867
16867
  const EmotionCacheProvider = (e) => {
16868
- let r = (0, import_compiler_runtime$134.c)(6), { container: c, children: d } = e, f;
16868
+ let r = (0, import_compiler_runtime$135.c)(6), { container: c, children: d } = e, f;
16869
16869
  bb0: {
16870
16870
  if (!c) {
16871
16871
  let e3;
@@ -18335,7 +18335,7 @@ let __tla = Promise.all([
18335
18335
  return e;
18336
18336
  }
18337
18337
  }
18338
- function debounce$1(e, r = 166) {
18338
+ function debounce$2(e, r = 166) {
18339
18339
  let c;
18340
18340
  function d(...d2) {
18341
18341
  clearTimeout(c), c = setTimeout(() => {
@@ -20095,7 +20095,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
20095
20095
  M
20096
20096
  ]), G = import_react.useRef(-1);
20097
20097
  return useEnhancedEffect_default(() => {
20098
- let e2 = debounce$1(z), r2 = S == null ? void 0 : S.current;
20098
+ let e2 = debounce$2(z), r2 = S == null ? void 0 : S.current;
20099
20099
  if (!r2) return;
20100
20100
  let c2 = ownerWindow(r2);
20101
20101
  c2.addEventListener("resize", e2);
@@ -22033,9 +22033,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
22033
22033
  })
22034
22034
  })
22035
22035
  });
22036
- }, import_compiler_runtime$133 = require_compiler_runtime();
22036
+ }, import_compiler_runtime$134 = require_compiler_runtime();
22037
22037
  const HtmlOutput = (0, import_react.memo)((e) => {
22038
- let r = (0, import_compiler_runtime$133.c)(10), { html: c, inline: d, className: f, alwaysSanitizeHtml: h } = e, _ = d === void 0 ? false : d;
22038
+ let r = (0, import_compiler_runtime$134.c)(10), { html: c, inline: d, className: f, alwaysSanitizeHtml: h } = e, _ = d === void 0 ? false : d;
22039
22039
  if (!c) return null;
22040
22040
  let v = !_, y;
22041
22041
  r[0] !== f || r[1] !== _ || r[2] !== v ? (y = cn(f, {
@@ -22054,9 +22054,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
22054
22054
  }), r[7] = y, r[8] = S, r[9] = w) : w = r[9], w;
22055
22055
  });
22056
22056
  HtmlOutput.displayName = "HtmlOutput";
22057
- var import_compiler_runtime$132 = require_compiler_runtime();
22057
+ var import_compiler_runtime$133 = require_compiler_runtime();
22058
22058
  const ImageOutput = (e) => {
22059
- let r = (0, import_compiler_runtime$132.c)(8), { src: c, alt: d, width: f, height: h, className: _ } = e, v = d === void 0 ? "" : d, y;
22059
+ let r = (0, import_compiler_runtime$133.c)(8), { src: c, alt: d, width: f, height: h, className: _ } = e, v = d === void 0 ? "" : d, y;
22060
22060
  r[0] !== v || r[1] !== h || r[2] !== c || r[3] !== f ? (y = (0, import_jsx_runtime.jsx)("img", {
22061
22061
  src: c,
22062
22062
  alt: v,
@@ -22069,9 +22069,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
22069
22069
  children: y
22070
22070
  }), r[5] = _, r[6] = y, r[7] = S) : S = r[7], S;
22071
22071
  };
22072
- var import_compiler_runtime$131 = require_compiler_runtime();
22072
+ var import_compiler_runtime$132 = require_compiler_runtime();
22073
22073
  const Kbd = (e) => {
22074
- let r = (0, import_compiler_runtime$131.c)(5), c;
22074
+ let r = (0, import_compiler_runtime$132.c)(5), c;
22075
22075
  r[0] === e.className ? c = r[1] : (c = 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"), r[0] = e.className, r[1] = c);
22076
22076
  let d;
22077
22077
  return r[2] !== e.children || r[3] !== c ? (d = (0, import_jsx_runtime.jsx)("kbd", {
@@ -22079,9 +22079,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
22079
22079
  children: e.children
22080
22080
  }), r[2] = e.children, r[3] = c, r[4] = d) : d = r[4], d;
22081
22081
  };
22082
- var import_compiler_runtime$130 = require_compiler_runtime();
22082
+ var import_compiler_runtime$131 = require_compiler_runtime();
22083
22083
  const ExternalLink$1 = (e) => {
22084
- let r = (0, import_compiler_runtime$130.c)(3), { href: c, children: d } = e, f;
22084
+ let r = (0, import_compiler_runtime$131.c)(3), { href: c, children: d } = e, f;
22085
22085
  return r[0] !== d || r[1] !== c ? (f = (0, import_jsx_runtime.jsx)("a", {
22086
22086
  href: c,
22087
22087
  target: "_blank",
@@ -22252,17 +22252,17 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
22252
22252
  os: "os",
22253
22253
  re: "re",
22254
22254
  sys: "sys"
22255
- }, import_compiler_runtime$129 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
22255
+ }, import_compiler_runtime$130 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
22256
22256
  function useFixMode() {
22257
- let e = (0, import_compiler_runtime$129.c)(3), [r, c] = useAtom(fixModeAtom), d;
22257
+ let e = (0, import_compiler_runtime$130.c)(3), [r, c] = useAtom(fixModeAtom), d;
22258
22258
  return e[0] !== r || e[1] !== c ? (d = {
22259
22259
  fixMode: r,
22260
22260
  setFixMode: c
22261
22261
  }, e[0] = r, e[1] = c, e[2] = d) : d = e[2], d;
22262
22262
  }
22263
- var import_compiler_runtime$128 = require_compiler_runtime();
22263
+ var import_compiler_runtime$129 = require_compiler_runtime();
22264
22264
  const AutoFixButton = (e) => {
22265
- let r = (0, import_compiler_runtime$128.c)(21), { errors: c, cellId: d, className: f } = e, h = useStore(), { createNewCell: _ } = useCellActions(), v = useAtomValue(aiEnabledAtom), y;
22265
+ let r = (0, import_compiler_runtime$129.c)(21), { errors: c, cellId: d, className: f } = e, h = useStore(), { createNewCell: _ } = useCellActions(), v = useAtomValue(aiEnabledAtom), y;
22266
22266
  if (r[0] !== v || r[1] !== c) {
22267
22267
  let e2;
22268
22268
  r[3] === v ? e2 = r[4] : (e2 = (e3) => getAutoFixes(e3, {
@@ -22323,7 +22323,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
22323
22323
  };
22324
22324
  var PromptIcon = Sparkles, AutofixIcon = Wrench, PromptTitle = "Suggest a prompt", AutofixTitle = "Fix with AI";
22325
22325
  const AIFixButton = (e) => {
22326
- let r = (0, import_compiler_runtime$128.c)(21), { tooltip: c, openPrompt: d, applyAutofix: f } = e, { fixMode: h, setFixMode: _ } = useFixMode(), v = h === "prompt" ? d : f, y;
22326
+ let r = (0, import_compiler_runtime$129.c)(21), { tooltip: c, openPrompt: d, applyAutofix: f } = e, { fixMode: h, setFixMode: _ } = useFixMode(), v = h === "prompt" ? d : f, y;
22327
22327
  r[0] === h ? y = r[1] : (y = h === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
22328
22328
  className: "h-3 w-3 mr-2 mb-0.5"
22329
22329
  }) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
@@ -22392,7 +22392,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
22392
22392
  }), r[18] = G, r[19] = E, r[20] = q) : q = r[20], q;
22393
22393
  };
22394
22394
  var AiModeItem = (e) => {
22395
- let r = (0, import_compiler_runtime$128.c)(12), { mode: c } = e, d;
22395
+ let r = (0, import_compiler_runtime$129.c)(12), { mode: c } = e, d;
22396
22396
  r[0] === c ? d = r[1] : (d = c === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
22397
22397
  className: "h-4 w-4"
22398
22398
  }) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
@@ -22429,9 +22429,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
22429
22429
  function useFilename() {
22430
22430
  return useAtomValue(filenameAtom);
22431
22431
  }
22432
- var import_compiler_runtime$126 = require_compiler_runtime();
22432
+ var import_compiler_runtime$127 = require_compiler_runtime();
22433
22433
  const CellLink = (e) => {
22434
- let r = (0, import_compiler_runtime$126.c)(12), { className: c, cellId: d, variant: f, onClick: h, formatCellName: _, skipScroll: v } = e, y = useCellNames()[d] ?? "", S = useCellIds().inOrderIds.indexOf(d), { showCellIfHidden: w } = useCellActions(), E = _ ?? _temp$35, O;
22434
+ let r = (0, import_compiler_runtime$127.c)(12), { className: c, cellId: d, variant: f, onClick: h, formatCellName: _, skipScroll: v } = e, y = useCellNames()[d] ?? "", S = useCellIds().inOrderIds.indexOf(d), { showCellIfHidden: w } = useCellActions(), E = _ ?? _temp$35, O;
22435
22435
  r[0] === c ? O = r[1] : (O = cn("inline-block cursor-pointer text-link hover:underline", c), r[0] = c, r[1] = O);
22436
22436
  let M;
22437
22437
  r[2] !== d || r[3] !== h || r[4] !== w || r[5] !== v || r[6] !== f ? (M = (e2) => {
@@ -22451,13 +22451,13 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
22451
22451
  children: I
22452
22452
  }), r[8] = O, r[9] = M, r[10] = I, r[11] = z) : z = r[11], z;
22453
22453
  }, CellLinkError = (e) => {
22454
- let r = (0, import_compiler_runtime$126.c)(2), c;
22454
+ let r = (0, import_compiler_runtime$127.c)(2), c;
22455
22455
  return r[0] === e ? c = r[1] : (c = (0, import_jsx_runtime.jsx)(CellLink, {
22456
22456
  ...e,
22457
22457
  variant: "destructive"
22458
22458
  }), r[0] = e, r[1] = c), c;
22459
22459
  }, CellLinkTraceback = (e) => {
22460
- let r = (0, import_compiler_runtime$126.c)(10), { cellId: c, lineNumber: d } = e, f = useFilename(), h;
22460
+ let r = (0, import_compiler_runtime$127.c)(10), { cellId: c, lineNumber: d } = e, f = useFilename(), h;
22461
22461
  r[0] !== c || r[1] !== d ? (h = () => goToCellLine(c, d), r[0] = c, r[1] = d, r[2] = h) : h = r[2];
22462
22462
  let _;
22463
22463
  r[3] !== c || r[4] !== f ? (_ = (e2) => c === "__scratch__" ? "scratch" : `marimo://${f || "untitled"}#cell=${e2}`, r[3] = c, r[4] = f, r[5] = _) : _ = r[5];
@@ -22554,7 +22554,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
22554
22554
  value: e2
22555
22555
  });
22556
22556
  }
22557
- var import_compiler_runtime$125 = require_compiler_runtime(), ansiUp = new AnsiUp();
22557
+ var import_compiler_runtime$126 = require_compiler_runtime(), ansiUp = new AnsiUp();
22558
22558
  const cleanAnsiCodes = (e) => {
22559
22559
  let r = RegExp("\x1B\\[[0-9;]*m", "g");
22560
22560
  return e.replaceAll(r, "");
@@ -22622,7 +22622,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
22622
22622
  });
22623
22623
  }
22624
22624
  var InstallPackageLink = (e) => {
22625
- let r = (0, import_compiler_runtime$125.c)(6), { packages: c, children: d } = e, { handleInstallPackages: f } = useInstallPackages(), h;
22625
+ let r = (0, import_compiler_runtime$126.c)(6), { packages: c, children: d } = e, { handleInstallPackages: f } = useInstallPackages(), h;
22626
22626
  r[0] !== f || r[1] !== c ? (h = (e2) => {
22627
22627
  f(c), e2.preventDefault();
22628
22628
  }, r[0] = f, r[1] = c, r[2] = h) : h = r[2];
@@ -22690,15 +22690,15 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
22690
22690
  replace: (e2) => r(e2)
22691
22691
  })
22692
22692
  }), RenderTextWithLinks = (e) => {
22693
- let r = (0, import_compiler_runtime$125.c)(4), { text: c } = e, d;
22693
+ let r = (0, import_compiler_runtime$126.c)(4), { text: c } = e, d;
22694
22694
  r[0] === c ? d = r[1] : (d = renderTextWithReplacers(c, composeReplacers(pipInstallReplacer, urlReplacer)), r[0] = c, r[1] = d);
22695
22695
  let f = d, h;
22696
22696
  return r[2] === f ? h = r[3] : (h = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
22697
22697
  children: f
22698
22698
  }), r[2] = f, r[3] = h), h;
22699
22699
  };
22700
- var import_compiler_runtime$124 = require_compiler_runtime(), Tip = (e) => {
22701
- let r = (0, import_compiler_runtime$124.c)(10), c = e.title ?? "Tip", d;
22700
+ var import_compiler_runtime$125 = require_compiler_runtime(), Tip = (e) => {
22701
+ let r = (0, import_compiler_runtime$125.c)(10), c = e.title ?? "Tip", d;
22702
22702
  r[0] === c ? d = r[1] : (d = (0, import_jsx_runtime.jsx)(AccordionTrigger, {
22703
22703
  className: "pt-2 pb-2 font-normal",
22704
22704
  children: c
@@ -22726,7 +22726,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
22726
22726
  }), r[7] = e.className, r[8] = h, r[9] = _) : _ = r[9], _;
22727
22727
  };
22728
22728
  const MarimoErrorOutput = (e) => {
22729
- let r = (0, import_compiler_runtime$124.c)(31), { errors: c, cellId: d, className: f } = e, h = useChromeActions(), _ = "This cell wasn't run because it has errors", v = "destructive", y = "text-error";
22729
+ let r = (0, import_compiler_runtime$125.c)(31), { errors: c, cellId: d, className: f } = e, h = useChromeActions(), _ = "This cell wasn't run because it has errors", v = "destructive", y = "text-error";
22730
22730
  if (c.some(_temp$34)) _ = "Interrupted";
22731
22731
  else if (c.some(_temp2$24)) _ = "An internal error occurred";
22732
22732
  else if (c.some(_temp3$16)) _ = "Ancestor prevented from running", v = "default", y = "text-secondary-foreground";
@@ -23392,9 +23392,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
23392
23392
  })
23393
23393
  }, `sql-error-${r}`);
23394
23394
  }
23395
- var import_compiler_runtime$123 = require_compiler_runtime();
23395
+ var import_compiler_runtime$124 = require_compiler_runtime();
23396
23396
  const TextOutput = (e) => {
23397
- let r = (0, import_compiler_runtime$123.c)(13), { text: c, channel: d, wrapText: f } = e, h = d === "stdout" || d === "stderr", _;
23397
+ let r = (0, import_compiler_runtime$124.c)(13), { text: c, channel: d, wrapText: f } = e, h = d === "stdout" || d === "stderr", _;
23398
23398
  r[0] === f ? _ = r[1] : (_ = (e2) => (0, import_jsx_runtime.jsx)("span", {
23399
23399
  className: f ? "whitespace-pre-wrap break-words" : "whitespace-pre",
23400
23400
  children: (0, import_jsx_runtime.jsx)(RenderTextWithLinks, {
@@ -23411,17 +23411,17 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
23411
23411
  children: E
23412
23412
  }), r[10] = w, r[11] = E, r[12] = O) : O = r[12], O;
23413
23413
  };
23414
- var import_compiler_runtime$122 = require_compiler_runtime();
23414
+ var import_compiler_runtime$123 = require_compiler_runtime();
23415
23415
  const VideoOutput = (e) => {
23416
- let r = (0, import_compiler_runtime$122.c)(3), { src: c, className: d } = e, f;
23416
+ let r = (0, import_compiler_runtime$123.c)(3), { src: c, className: d } = e, f;
23417
23417
  return r[0] !== d || r[1] !== c ? (f = (0, import_jsx_runtime.jsx)("iframe", {
23418
23418
  className: d,
23419
23419
  src: c
23420
23420
  }), r[0] = d, r[1] = c, r[2] = f) : f = r[2], f;
23421
23421
  };
23422
- var import_compiler_runtime$121 = require_compiler_runtime();
23422
+ var import_compiler_runtime$122 = require_compiler_runtime();
23423
23423
  function useOverflowDetection(e, r) {
23424
- let c = (0, import_compiler_runtime$121.c)(4), d = r === void 0 ? true : r, [f, h] = (0, import_react.useState)(false), _, v;
23424
+ let c = (0, import_compiler_runtime$122.c)(4), d = r === void 0 ? true : r, [f, h] = (0, import_react.useState)(false), _, v;
23425
23425
  return c[0] !== d || c[1] !== e ? (_ = () => {
23426
23426
  let r2 = e.current;
23427
23427
  if (!r2 || !d) return;
@@ -23520,9 +23520,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
23520
23520
  const LazyVegaEmbed = import_react.lazy(() => import("./react-vega-Cs3lfDw8.js").then((e) => ({
23521
23521
  default: e.VegaEmbed
23522
23522
  })));
23523
- var import_compiler_runtime$120 = require_compiler_runtime();
23523
+ var import_compiler_runtime$121 = require_compiler_runtime();
23524
23524
  const ChartLoadingState = () => {
23525
- let e = (0, import_compiler_runtime$120.c)(1), r;
23525
+ let e = (0, import_compiler_runtime$121.c)(1), r;
23526
23526
  return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = (0, import_jsx_runtime.jsxs)("div", {
23527
23527
  className: "flex items-center gap-2 justify-center",
23528
23528
  children: [
@@ -23536,7 +23536,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
23536
23536
  ]
23537
23537
  }), e[0] = r) : r = e[0], r;
23538
23538
  }, ChartErrorState = (e) => {
23539
- let r = (0, import_compiler_runtime$120.c)(2), { error: c } = e, d;
23539
+ let r = (0, import_compiler_runtime$121.c)(2), { error: c } = e, d;
23540
23540
  return r[0] === c ? d = r[1] : (d = (0, import_jsx_runtime.jsx)("div", {
23541
23541
  className: "flex items-center justify-center",
23542
23542
  children: (0, import_jsx_runtime.jsx)(ErrorBanner, {
@@ -23544,7 +23544,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
23544
23544
  })
23545
23545
  }), r[0] = c, r[1] = d), d;
23546
23546
  }, ChartInfoState = (e) => {
23547
- let r = (0, import_compiler_runtime$120.c)(8), { children: c, className: d } = e, f;
23547
+ let r = (0, import_compiler_runtime$121.c)(8), { children: c, className: d } = e, f;
23548
23548
  r[0] === d ? f = r[1] : (f = cn("flex flex-col items-center justify-center gap-4", d), r[0] = d, r[1] = f);
23549
23549
  let h;
23550
23550
  r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = (0, import_jsx_runtime.jsx)(ChartPie, {
@@ -23674,8 +23674,8 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
23674
23674
  function makeContentId(e, r) {
23675
23675
  return `${e}-content-${r}`;
23676
23676
  }
23677
- var Root2$2 = Tabs$1, List = TabsList$1, Trigger$1 = TabsTrigger$1, Content = TabsContent$1, import_compiler_runtime$119 = require_compiler_runtime(), Tabs = Root2$2, TabsList = import_react.forwardRef((e, r) => {
23678
- let c = (0, import_compiler_runtime$119.c)(9), d, f;
23677
+ var Root2$2 = Tabs$1, List = TabsList$1, Trigger$1 = TabsTrigger$1, Content = TabsContent$1, import_compiler_runtime$120 = require_compiler_runtime(), Tabs = Root2$2, TabsList = import_react.forwardRef((e, r) => {
23678
+ let c = (0, import_compiler_runtime$120.c)(9), d, f;
23679
23679
  c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
23680
23680
  let h;
23681
23681
  c[3] === d ? h = c[4] : (h = cn("inline-flex max-h-14 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", d), c[3] = d, c[4] = h);
@@ -23688,7 +23688,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
23688
23688
  });
23689
23689
  TabsList.displayName = List.displayName;
23690
23690
  var TabsTrigger = import_react.forwardRef((e, r) => {
23691
- let c = (0, import_compiler_runtime$119.c)(9), d, f;
23691
+ let c = (0, import_compiler_runtime$120.c)(9), d, f;
23692
23692
  c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
23693
23693
  let h;
23694
23694
  c[3] === d ? h = c[4] : (h = 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", d), c[3] = d, c[4] = h);
@@ -23701,7 +23701,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
23701
23701
  });
23702
23702
  TabsTrigger.displayName = Trigger$1.displayName;
23703
23703
  var TabsContent = import_react.forwardRef((e, r) => {
23704
- let c = (0, import_compiler_runtime$119.c)(9), d, f;
23704
+ let c = (0, import_compiler_runtime$120.c)(9), d, f;
23705
23705
  c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
23706
23706
  let h;
23707
23707
  c[3] === d ? h = c[4] : (h = cn("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2", d), c[3] = d, c[4] = h);
@@ -23713,9 +23713,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
23713
23713
  }), c[5] = f, c[6] = r, c[7] = h, c[8] = _) : _ = c[8], _;
23714
23714
  });
23715
23715
  TabsContent.displayName = Content.displayName;
23716
- var import_compiler_runtime$118 = require_compiler_runtime();
23716
+ var import_compiler_runtime$119 = require_compiler_runtime();
23717
23717
  const WithLocale = (e) => {
23718
- let r = (0, import_compiler_runtime$118.c)(3), { children: c } = e, { locale: d } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), f;
23718
+ let r = (0, import_compiler_runtime$119.c)(3), { children: c } = e, { locale: d } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), f;
23719
23719
  return r[0] !== c || r[1] !== d ? (f = c(d), r[0] = c, r[1] = d, r[2] = f) : f = r[2], f;
23720
23720
  };
23721
23721
  function tzName(e, r, c = "long") {
@@ -24433,8 +24433,8 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
24433
24433
  function smartMatchFilter(e, r, c) {
24434
24434
  return smartMatch(r, e) ? 1 : c && smartMatch(r, c) ? 0.8 : 0;
24435
24435
  }
24436
- var import_compiler_runtime$117 = require_compiler_runtime(), Command = import_react.forwardRef((e, r) => {
24437
- let c = (0, import_compiler_runtime$117.c)(9), d, f;
24436
+ var import_compiler_runtime$118 = require_compiler_runtime(), Command = import_react.forwardRef((e, r) => {
24437
+ let c = (0, import_compiler_runtime$118.c)(9), d, f;
24438
24438
  c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
24439
24439
  let h;
24440
24440
  c[3] === d ? h = c[4] : (h = cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", d), c[3] = d, c[4] = h);
@@ -24448,7 +24448,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
24448
24448
  });
24449
24449
  Command.displayName = _e$1.displayName;
24450
24450
  var CommandInput = import_react.forwardRef((e, r) => {
24451
- let c = (0, import_compiler_runtime$117.c)(19), d, f, h, _;
24451
+ let c = (0, import_compiler_runtime$118.c)(19), d, f, h, _;
24452
24452
  c[0] === e ? (d = c[1], f = c[2], h = c[3], _ = c[4]) : ({ className: d, icon: f, rootClassName: _, ...h } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h, c[4] = _);
24453
24453
  let v;
24454
24454
  c[5] === _ ? v = c[6] : (v = cn("flex items-center border-b px-3", _), c[5] = _, c[6] = v);
@@ -24476,7 +24476,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
24476
24476
  });
24477
24477
  CommandInput.displayName = _e$1.Input.displayName;
24478
24478
  var CommandList = import_react.forwardRef((e, r) => {
24479
- let c = (0, import_compiler_runtime$117.c)(9), d, f;
24479
+ let c = (0, import_compiler_runtime$118.c)(9), d, f;
24480
24480
  c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
24481
24481
  let h;
24482
24482
  c[3] === d ? h = c[4] : (h = cn("max-h-[300px] overflow-y-auto overflow-x-hidden", d), c[3] = d, c[4] = h);
@@ -24489,7 +24489,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
24489
24489
  });
24490
24490
  CommandList.displayName = _e$1.List.displayName;
24491
24491
  var CommandEmpty = import_react.forwardRef((e, r) => {
24492
- let c = (0, import_compiler_runtime$117.c)(3), d;
24492
+ let c = (0, import_compiler_runtime$118.c)(3), d;
24493
24493
  return c[0] !== e || c[1] !== r ? (d = (0, import_jsx_runtime.jsx)(_e$1.Empty, {
24494
24494
  ref: r,
24495
24495
  className: "py-6 text-center text-sm",
@@ -24498,7 +24498,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
24498
24498
  });
24499
24499
  CommandEmpty.displayName = _e$1.Empty.displayName;
24500
24500
  var CommandGroup = import_react.forwardRef((e, r) => {
24501
- let c = (0, import_compiler_runtime$117.c)(9), d, f;
24501
+ let c = (0, import_compiler_runtime$118.c)(9), d, f;
24502
24502
  c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
24503
24503
  let h;
24504
24504
  c[3] === d ? h = c[4] : (h = 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", d), c[3] = d, c[4] = h);
@@ -24511,7 +24511,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
24511
24511
  });
24512
24512
  CommandGroup.displayName = _e$1.Group.displayName;
24513
24513
  var CommandSeparator = import_react.forwardRef((e, r) => {
24514
- let c = (0, import_compiler_runtime$117.c)(9), d, f;
24514
+ let c = (0, import_compiler_runtime$118.c)(9), d, f;
24515
24515
  c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
24516
24516
  let h;
24517
24517
  c[3] === d ? h = c[4] : (h = menuSeparatorVariants({
@@ -24526,7 +24526,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
24526
24526
  });
24527
24527
  CommandSeparator.displayName = _e$1.Separator.displayName;
24528
24528
  var CommandItem = import_react.forwardRef((e, r) => {
24529
- let c = (0, import_compiler_runtime$117.c)(17), d, f, h, _, v;
24529
+ let c = (0, import_compiler_runtime$118.c)(17), d, f, h, _, v;
24530
24530
  if (c[0] !== r || c[1] !== e) {
24531
24531
  let { className: y2, variant: S, inset: w, ...E } = e;
24532
24532
  d = _e$1.Item, f = r, c[7] !== y2 || c[8] !== w || c[9] !== S ? (h = cn(menuItemVariants({
@@ -24543,9 +24543,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
24543
24543
  }), c[11] = d, c[12] = f, c[13] = h, c[14] = _, c[15] = v, c[16] = y) : y = c[16], y;
24544
24544
  });
24545
24545
  CommandItem.displayName = _e$1.Item.displayName;
24546
- var import_compiler_runtime$116 = require_compiler_runtime();
24546
+ var import_compiler_runtime$117 = require_compiler_runtime();
24547
24547
  const DraggablePopover = (e) => {
24548
- let r = (0, import_compiler_runtime$116.c)(25), c, d, f;
24548
+ let r = (0, import_compiler_runtime$117.c)(25), c, d, f;
24549
24549
  r[0] === e ? (c = r[1], d = r[2], f = r[3]) : ({ children: c, className: d, ...f } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f);
24550
24550
  let h;
24551
24551
  r[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
@@ -24768,7 +24768,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
24768
24768
  };
24769
24769
  return d(e), c;
24770
24770
  }
24771
- function memo$14(e, r, c) {
24771
+ function memo$15(e, r, c) {
24772
24772
  let d = [], f;
24773
24773
  return (h) => {
24774
24774
  let _;
@@ -24804,7 +24804,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
24804
24804
  column: c,
24805
24805
  getValue: () => r.getValue(d),
24806
24806
  renderValue: () => f.getValue() ?? e.options.renderFallbackValue,
24807
- getContext: memo$14(() => [
24807
+ getContext: memo$15(() => [
24808
24808
  e,
24809
24809
  c,
24810
24810
  r,
@@ -24839,7 +24839,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
24839
24839
  depth: c,
24840
24840
  columnDef: f,
24841
24841
  columns: [],
24842
- getFlatColumns: memo$14(() => [
24842
+ getFlatColumns: memo$15(() => [
24843
24843
  true
24844
24844
  ], () => {
24845
24845
  var _a3;
@@ -24848,7 +24848,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
24848
24848
  ...(_a3 = y.columns) == null ? void 0 : _a3.flatMap((e2) => e2.getFlatColumns())
24849
24849
  ];
24850
24850
  }, getMemoOptions(e.options, "debugColumns", "column.getFlatColumns")),
24851
- getLeafColumns: memo$14(() => [
24851
+ getLeafColumns: memo$15(() => [
24852
24852
  e._getOrderColumnsFn()
24853
24853
  ], (e2) => {
24854
24854
  var r2;
@@ -24891,7 +24891,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
24891
24891
  }
24892
24892
  var Headers = {
24893
24893
  createTable: (e) => {
24894
- e.getHeaderGroups = memo$14(() => [
24894
+ e.getHeaderGroups = memo$15(() => [
24895
24895
  e.getAllColumns(),
24896
24896
  e.getVisibleLeafColumns(),
24897
24897
  e.getState().columnPinning.left,
@@ -24903,59 +24903,59 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
24903
24903
  ...v,
24904
24904
  ..._
24905
24905
  ], e);
24906
- }, getMemoOptions(e.options, debug, "getHeaderGroups")), e.getCenterHeaderGroups = memo$14(() => [
24906
+ }, getMemoOptions(e.options, debug, "getHeaderGroups")), e.getCenterHeaderGroups = memo$15(() => [
24907
24907
  e.getAllColumns(),
24908
24908
  e.getVisibleLeafColumns(),
24909
24909
  e.getState().columnPinning.left,
24910
24910
  e.getState().columnPinning.right
24911
- ], (r, c, d, f) => (c = c.filter((e2) => !(d != null && d.includes(e2.id)) && !(f != null && f.includes(e2.id))), buildHeaderGroups(r, c, e, "center")), getMemoOptions(e.options, debug, "getCenterHeaderGroups")), e.getLeftHeaderGroups = memo$14(() => [
24911
+ ], (r, c, d, f) => (c = c.filter((e2) => !(d != null && d.includes(e2.id)) && !(f != null && f.includes(e2.id))), buildHeaderGroups(r, c, e, "center")), getMemoOptions(e.options, debug, "getCenterHeaderGroups")), e.getLeftHeaderGroups = memo$15(() => [
24912
24912
  e.getAllColumns(),
24913
24913
  e.getVisibleLeafColumns(),
24914
24914
  e.getState().columnPinning.left
24915
- ], (r, c, d) => buildHeaderGroups(r, (d == null ? void 0 : d.map((e2) => c.find((r2) => r2.id === e2)).filter(Boolean)) ?? [], e, "left"), getMemoOptions(e.options, debug, "getLeftHeaderGroups")), e.getRightHeaderGroups = memo$14(() => [
24915
+ ], (r, c, d) => buildHeaderGroups(r, (d == null ? void 0 : d.map((e2) => c.find((r2) => r2.id === e2)).filter(Boolean)) ?? [], e, "left"), getMemoOptions(e.options, debug, "getLeftHeaderGroups")), e.getRightHeaderGroups = memo$15(() => [
24916
24916
  e.getAllColumns(),
24917
24917
  e.getVisibleLeafColumns(),
24918
24918
  e.getState().columnPinning.right
24919
- ], (r, c, d) => buildHeaderGroups(r, (d == null ? void 0 : d.map((e2) => c.find((r2) => r2.id === e2)).filter(Boolean)) ?? [], e, "right"), getMemoOptions(e.options, debug, "getRightHeaderGroups")), e.getFooterGroups = memo$14(() => [
24919
+ ], (r, c, d) => buildHeaderGroups(r, (d == null ? void 0 : d.map((e2) => c.find((r2) => r2.id === e2)).filter(Boolean)) ?? [], e, "right"), getMemoOptions(e.options, debug, "getRightHeaderGroups")), e.getFooterGroups = memo$15(() => [
24920
24920
  e.getHeaderGroups()
24921
24921
  ], (e2) => [
24922
24922
  ...e2
24923
- ].reverse(), getMemoOptions(e.options, debug, "getFooterGroups")), e.getLeftFooterGroups = memo$14(() => [
24923
+ ].reverse(), getMemoOptions(e.options, debug, "getFooterGroups")), e.getLeftFooterGroups = memo$15(() => [
24924
24924
  e.getLeftHeaderGroups()
24925
24925
  ], (e2) => [
24926
24926
  ...e2
24927
- ].reverse(), getMemoOptions(e.options, debug, "getLeftFooterGroups")), e.getCenterFooterGroups = memo$14(() => [
24927
+ ].reverse(), getMemoOptions(e.options, debug, "getLeftFooterGroups")), e.getCenterFooterGroups = memo$15(() => [
24928
24928
  e.getCenterHeaderGroups()
24929
24929
  ], (e2) => [
24930
24930
  ...e2
24931
- ].reverse(), getMemoOptions(e.options, debug, "getCenterFooterGroups")), e.getRightFooterGroups = memo$14(() => [
24931
+ ].reverse(), getMemoOptions(e.options, debug, "getCenterFooterGroups")), e.getRightFooterGroups = memo$15(() => [
24932
24932
  e.getRightHeaderGroups()
24933
24933
  ], (e2) => [
24934
24934
  ...e2
24935
- ].reverse(), getMemoOptions(e.options, debug, "getRightFooterGroups")), e.getFlatHeaders = memo$14(() => [
24935
+ ].reverse(), getMemoOptions(e.options, debug, "getRightFooterGroups")), e.getFlatHeaders = memo$15(() => [
24936
24936
  e.getHeaderGroups()
24937
- ], (e2) => e2.map((e3) => e3.headers).flat(), getMemoOptions(e.options, debug, "getFlatHeaders")), e.getLeftFlatHeaders = memo$14(() => [
24937
+ ], (e2) => e2.map((e3) => e3.headers).flat(), getMemoOptions(e.options, debug, "getFlatHeaders")), e.getLeftFlatHeaders = memo$15(() => [
24938
24938
  e.getLeftHeaderGroups()
24939
- ], (e2) => e2.map((e3) => e3.headers).flat(), getMemoOptions(e.options, debug, "getLeftFlatHeaders")), e.getCenterFlatHeaders = memo$14(() => [
24939
+ ], (e2) => e2.map((e3) => e3.headers).flat(), getMemoOptions(e.options, debug, "getLeftFlatHeaders")), e.getCenterFlatHeaders = memo$15(() => [
24940
24940
  e.getCenterHeaderGroups()
24941
- ], (e2) => e2.map((e3) => e3.headers).flat(), getMemoOptions(e.options, debug, "getCenterFlatHeaders")), e.getRightFlatHeaders = memo$14(() => [
24941
+ ], (e2) => e2.map((e3) => e3.headers).flat(), getMemoOptions(e.options, debug, "getCenterFlatHeaders")), e.getRightFlatHeaders = memo$15(() => [
24942
24942
  e.getRightHeaderGroups()
24943
- ], (e2) => e2.map((e3) => e3.headers).flat(), getMemoOptions(e.options, debug, "getRightFlatHeaders")), e.getCenterLeafHeaders = memo$14(() => [
24943
+ ], (e2) => e2.map((e3) => e3.headers).flat(), getMemoOptions(e.options, debug, "getRightFlatHeaders")), e.getCenterLeafHeaders = memo$15(() => [
24944
24944
  e.getCenterFlatHeaders()
24945
24945
  ], (e2) => e2.filter((e3) => {
24946
24946
  var r;
24947
24947
  return !((r = e3.subHeaders) != null && r.length);
24948
- }), getMemoOptions(e.options, debug, "getCenterLeafHeaders")), e.getLeftLeafHeaders = memo$14(() => [
24948
+ }), getMemoOptions(e.options, debug, "getCenterLeafHeaders")), e.getLeftLeafHeaders = memo$15(() => [
24949
24949
  e.getLeftFlatHeaders()
24950
24950
  ], (e2) => e2.filter((e3) => {
24951
24951
  var r;
24952
24952
  return !((r = e3.subHeaders) != null && r.length);
24953
- }), getMemoOptions(e.options, debug, "getLeftLeafHeaders")), e.getRightLeafHeaders = memo$14(() => [
24953
+ }), getMemoOptions(e.options, debug, "getLeftLeafHeaders")), e.getRightLeafHeaders = memo$15(() => [
24954
24954
  e.getRightFlatHeaders()
24955
24955
  ], (e2) => e2.filter((e3) => {
24956
24956
  var r;
24957
24957
  return !((r = e3.subHeaders) != null && r.length);
24958
- }), getMemoOptions(e.options, debug, "getRightLeafHeaders")), e.getLeafHeaders = memo$14(() => [
24958
+ }), getMemoOptions(e.options, debug, "getRightLeafHeaders")), e.getLeafHeaders = memo$15(() => [
24959
24959
  e.getLeftHeaderGroups(),
24960
24960
  e.getCenterHeaderGroups(),
24961
24961
  e.getRightHeaderGroups()
@@ -25064,10 +25064,10 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
25064
25064
  }
25065
25065
  return e2.reverse();
25066
25066
  },
25067
- getAllCells: memo$14(() => [
25067
+ getAllCells: memo$15(() => [
25068
25068
  e.getAllLeafColumns()
25069
25069
  ], (r2) => r2.map((r3) => createCell$1(e, v, r3, r3.id)), getMemoOptions(e.options, "debugRows", "getAllCells")),
25070
- _getAllCellsByColumnId: memo$14(() => [
25070
+ _getAllCellsByColumnId: memo$15(() => [
25071
25071
  v.getAllCells()
25072
25072
  ], (e2) => e2.reduce((e3, r2) => (e3[r2.column.id] = r2, e3), {}), getMemoOptions(e.options, "debugRows", "getAllCellsByColumnId"))
25073
25073
  };
@@ -25340,7 +25340,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
25340
25340
  onColumnOrderChange: makeStateUpdater("columnOrder", e)
25341
25341
  }),
25342
25342
  createColumn: (e, r) => {
25343
- e.getIndex = memo$14((e2) => [
25343
+ e.getIndex = memo$15((e2) => [
25344
25344
  _getVisibleLeafColumns(r, e2)
25345
25345
  ], (r2) => r2.findIndex((r3) => r3.id === e.id), getMemoOptions(r.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (c) => {
25346
25346
  var _a3;
@@ -25354,7 +25354,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
25354
25354
  createTable: (e) => {
25355
25355
  e.setColumnOrder = (r) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(r), e.resetColumnOrder = (r) => {
25356
25356
  e.setColumnOrder(r ? [] : e.initialState.columnOrder ?? []);
25357
- }, e._getOrderColumnsFn = memo$14(() => [
25357
+ }, e._getOrderColumnsFn = memo$15(() => [
25358
25358
  e.getState().columnOrder,
25359
25359
  e.getState().grouping,
25360
25360
  e.options.groupedColumnMode
@@ -25419,7 +25419,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
25419
25419
  };
25420
25420
  },
25421
25421
  createRow: (e, r) => {
25422
- e.getCenterVisibleCells = memo$14(() => [
25422
+ e.getCenterVisibleCells = memo$15(() => [
25423
25423
  e._getAllVisibleCells(),
25424
25424
  r.getState().columnPinning.left,
25425
25425
  r.getState().columnPinning.right
@@ -25429,13 +25429,13 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
25429
25429
  ...c ?? []
25430
25430
  ];
25431
25431
  return e2.filter((e3) => !d.includes(e3.column.id));
25432
- }, getMemoOptions(r.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = memo$14(() => [
25432
+ }, getMemoOptions(r.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = memo$15(() => [
25433
25433
  e._getAllVisibleCells(),
25434
25434
  r.getState().columnPinning.left
25435
25435
  ], (e2, r2) => (r2 ?? []).map((r3) => e2.find((e3) => e3.column.id === r3)).filter(Boolean).map((e3) => ({
25436
25436
  ...e3,
25437
25437
  position: "left"
25438
- })), getMemoOptions(r.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = memo$14(() => [
25438
+ })), getMemoOptions(r.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = memo$15(() => [
25439
25439
  e._getAllVisibleCells(),
25440
25440
  r.getState().columnPinning.right
25441
25441
  ], (e2, r2) => (r2 ?? []).map((r3) => e2.find((e3) => e3.column.id === r3)).filter(Boolean).map((e3) => ({
@@ -25451,13 +25451,13 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
25451
25451
  var _a3, _b3, _c3;
25452
25452
  let c = e.getState().columnPinning;
25453
25453
  return r ? !!((_a3 = c[r]) == null ? void 0 : _a3.length) : !!(((_b3 = c.left) == null ? void 0 : _b3.length) || ((_c3 = c.right) == null ? void 0 : _c3.length));
25454
- }, e.getLeftLeafColumns = memo$14(() => [
25454
+ }, e.getLeftLeafColumns = memo$15(() => [
25455
25455
  e.getAllLeafColumns(),
25456
25456
  e.getState().columnPinning.left
25457
- ], (e2, r) => (r ?? []).map((r2) => e2.find((e3) => e3.id === r2)).filter(Boolean), getMemoOptions(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = memo$14(() => [
25457
+ ], (e2, r) => (r ?? []).map((r2) => e2.find((e3) => e3.id === r2)).filter(Boolean), getMemoOptions(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = memo$15(() => [
25458
25458
  e.getAllLeafColumns(),
25459
25459
  e.getState().columnPinning.right
25460
- ], (e2, r) => (r ?? []).map((r2) => e2.find((e3) => e3.id === r2)).filter(Boolean), getMemoOptions(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = memo$14(() => [
25460
+ ], (e2, r) => (r ?? []).map((r2) => e2.find((e3) => e3.id === r2)).filter(Boolean), getMemoOptions(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = memo$15(() => [
25461
25461
  e.getAllLeafColumns(),
25462
25462
  e.getState().columnPinning.left,
25463
25463
  e.getState().columnPinning.right
@@ -25501,11 +25501,11 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
25501
25501
  e.getSize = () => {
25502
25502
  let c = r.getState().columnSizing[e.id];
25503
25503
  return Math.min(Math.max(e.columnDef.minSize ?? defaultColumnSizing.minSize, c ?? e.columnDef.size ?? defaultColumnSizing.size), e.columnDef.maxSize ?? defaultColumnSizing.maxSize);
25504
- }, e.getStart = memo$14((e2) => [
25504
+ }, e.getStart = memo$15((e2) => [
25505
25505
  e2,
25506
25506
  _getVisibleLeafColumns(r, e2),
25507
25507
  r.getState().columnSizing
25508
- ], (r2, c) => c.slice(0, e.getIndex(r2)).reduce((e2, r3) => e2 + r3.getSize(), 0), getMemoOptions(r.options, "debugColumns", "getStart")), e.getAfter = memo$14((e2) => [
25508
+ ], (r2, c) => c.slice(0, e.getIndex(r2)).reduce((e2, r3) => e2 + r3.getSize(), 0), getMemoOptions(r.options, "debugColumns", "getStart")), e.getAfter = memo$15((e2) => [
25509
25509
  e2,
25510
25510
  _getVisibleLeafColumns(r, e2),
25511
25511
  r.getState().columnSizing
@@ -25653,10 +25653,10 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
25653
25653
  };
25654
25654
  },
25655
25655
  createRow: (e, r) => {
25656
- e._getAllVisibleCells = memo$14(() => [
25656
+ e._getAllVisibleCells = memo$15(() => [
25657
25657
  e.getAllCells(),
25658
25658
  r.getState().columnVisibility
25659
- ], (e2) => e2.filter((e3) => e3.column.getIsVisible()), getMemoOptions(r.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = memo$14(() => [
25659
+ ], (e2) => e2.filter((e3) => e3.column.getIsVisible()), getMemoOptions(r.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = memo$15(() => [
25660
25660
  e.getLeftVisibleCells(),
25661
25661
  e.getCenterVisibleCells(),
25662
25662
  e.getRightVisibleCells()
@@ -25667,7 +25667,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
25667
25667
  ], getMemoOptions(r.options, "debugRows", "getVisibleCells"));
25668
25668
  },
25669
25669
  createTable: (e) => {
25670
- let r = (r2, c) => memo$14(() => [
25670
+ let r = (r2, c) => memo$15(() => [
25671
25671
  c(),
25672
25672
  c().filter((e2) => e2.getIsVisible()).map((e2) => e2.id).join("_")
25673
25673
  ], (e2) => e2.filter((e3) => e3.getIsVisible == null ? void 0 : e3.getIsVisible()), getMemoOptions(e.options, "debugColumns", r2));
@@ -25859,7 +25859,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
25859
25859
  ...c2,
25860
25860
  pageCount: d
25861
25861
  };
25862
- }), e.getPageOptions = memo$14(() => [
25862
+ }), e.getPageOptions = memo$15(() => [
25863
25863
  e.getPageCount()
25864
25864
  ], (e2) => {
25865
25865
  let r2 = [];
@@ -25942,13 +25942,13 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
25942
25942
  }) : (c ?? []).map((e2) => r.find((r2) => r2.id === e2))).filter(Boolean).map((e2) => ({
25943
25943
  ...e2,
25944
25944
  position: d
25945
- })), e.getTopRows = memo$14(() => [
25945
+ })), e.getTopRows = memo$15(() => [
25946
25946
  e.getRowModel().rows,
25947
25947
  e.getState().rowPinning.top
25948
- ], (r, c) => e._getPinnedRows(r, c, "top"), getMemoOptions(e.options, "debugRows", "getTopRows")), e.getBottomRows = memo$14(() => [
25948
+ ], (r, c) => e._getPinnedRows(r, c, "top"), getMemoOptions(e.options, "debugRows", "getTopRows")), e.getBottomRows = memo$15(() => [
25949
25949
  e.getRowModel().rows,
25950
25950
  e.getState().rowPinning.bottom
25951
- ], (r, c) => e._getPinnedRows(r, c, "bottom"), getMemoOptions(e.options, "debugRows", "getBottomRows")), e.getCenterRows = memo$14(() => [
25951
+ ], (r, c) => e._getPinnedRows(r, c, "bottom"), getMemoOptions(e.options, "debugRows", "getBottomRows")), e.getCenterRows = memo$15(() => [
25952
25952
  e.getRowModel().rows,
25953
25953
  e.getState().rowPinning.top,
25954
25954
  e.getState().rowPinning.bottom
@@ -25991,21 +25991,21 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
25991
25991
  return e.getRowModel().rows.forEach((r2) => {
25992
25992
  mutateRowIsSelected(f, r2.id, d, true, e);
25993
25993
  }), f;
25994
- }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = memo$14(() => [
25994
+ }), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = memo$15(() => [
25995
25995
  e.getState().rowSelection,
25996
25996
  e.getCoreRowModel()
25997
25997
  ], (r, c) => Object.keys(r).length ? selectRowsFn(e, c) : {
25998
25998
  rows: [],
25999
25999
  flatRows: [],
26000
26000
  rowsById: {}
26001
- }, getMemoOptions(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = memo$14(() => [
26001
+ }, getMemoOptions(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = memo$15(() => [
26002
26002
  e.getState().rowSelection,
26003
26003
  e.getFilteredRowModel()
26004
26004
  ], (r, c) => Object.keys(r).length ? selectRowsFn(e, c) : {
26005
26005
  rows: [],
26006
26006
  flatRows: [],
26007
26007
  rowsById: {}
26008
- }, getMemoOptions(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = memo$14(() => [
26008
+ }, getMemoOptions(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = memo$15(() => [
26009
26009
  e.getState().rowSelection,
26010
26010
  e.getSortedRowModel()
26011
26011
  ], (r, c) => Object.keys(r).length ? selectRowsFn(e, c) : {
@@ -26270,7 +26270,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
26270
26270
  if (!d2 && (d2 = c.getCoreRowModel().rowsById[e2], !d2)) throw Error();
26271
26271
  return d2;
26272
26272
  },
26273
- _getDefaultColumnDef: memo$14(() => [
26273
+ _getDefaultColumnDef: memo$15(() => [
26274
26274
  c.options.defaultColumn
26275
26275
  ], (e2) => (e2 ?? (e2 = {}), {
26276
26276
  header: (e3) => {
@@ -26285,7 +26285,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
26285
26285
  ...e2
26286
26286
  }), getMemoOptions(e, "debugColumns", "_getDefaultColumnDef")),
26287
26287
  _getColumnDefs: () => c.options.columns,
26288
- getAllColumns: memo$14(() => [
26288
+ getAllColumns: memo$15(() => [
26289
26289
  c._getColumnDefs()
26290
26290
  ], (e2) => {
26291
26291
  let r2 = function(e3, d2, f2) {
@@ -26296,13 +26296,13 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
26296
26296
  };
26297
26297
  return r2(e2);
26298
26298
  }, getMemoOptions(e, "debugColumns", "getAllColumns")),
26299
- getAllFlatColumns: memo$14(() => [
26299
+ getAllFlatColumns: memo$15(() => [
26300
26300
  c.getAllColumns()
26301
26301
  ], (e2) => e2.flatMap((e3) => e3.getFlatColumns()), getMemoOptions(e, "debugColumns", "getAllFlatColumns")),
26302
- _getAllFlatColumnsById: memo$14(() => [
26302
+ _getAllFlatColumnsById: memo$15(() => [
26303
26303
  c.getAllFlatColumns()
26304
26304
  ], (e2) => e2.reduce((e3, r2) => (e3[r2.id] = r2, e3), {}), getMemoOptions(e, "debugColumns", "getAllFlatColumnsById")),
26305
- getAllLeafColumns: memo$14(() => [
26305
+ getAllLeafColumns: memo$15(() => [
26306
26306
  c.getAllColumns(),
26307
26307
  c._getOrderColumnsFn()
26308
26308
  ], (e2, r2) => r2(e2.flatMap((e3) => e3.getLeafColumns())), getMemoOptions(e, "debugColumns", "getAllLeafColumns")),
@@ -26316,7 +26316,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
26316
26316
  return c;
26317
26317
  }
26318
26318
  function getCoreRowModel() {
26319
- return (e) => memo$14(() => [
26319
+ return (e) => memo$15(() => [
26320
26320
  e.options.data
26321
26321
  ], (r) => {
26322
26322
  let c = {
@@ -26402,7 +26402,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
26402
26402
  };
26403
26403
  }
26404
26404
  function getFilteredRowModel() {
26405
- return (e) => memo$14(() => [
26405
+ return (e) => memo$15(() => [
26406
26406
  e.getPreFilteredRowModel(),
26407
26407
  e.getState().columnFilters,
26408
26408
  e.getState().globalFilter
@@ -26461,7 +26461,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
26461
26461
  }, getMemoOptions(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
26462
26462
  }
26463
26463
  function getPaginationRowModel(e) {
26464
- return (e2) => memo$14(() => [
26464
+ return (e2) => memo$15(() => [
26465
26465
  e2.getState().pagination,
26466
26466
  e2.getPrePaginationRowModel(),
26467
26467
  e2.options.paginateExpandedRows ? void 0 : e2.getState().expanded
@@ -26486,7 +26486,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
26486
26486
  }, getMemoOptions(e2.options, "debugTable", "getPaginationRowModel"));
26487
26487
  }
26488
26488
  function getSortedRowModel() {
26489
- return (e) => memo$14(() => [
26489
+ return (e) => memo$15(() => [
26490
26490
  e.getState().sorting,
26491
26491
  e.getPreSortedRowModel()
26492
26492
  ], (r, c) => {
@@ -26786,7 +26786,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
26786
26786
  ],
26787
26787
  unknown: []
26788
26788
  };
26789
- var import_compiler_runtime$115 = require_compiler_runtime();
26789
+ var import_compiler_runtime$116 = require_compiler_runtime();
26790
26790
  function renderFormatOptions(e, r) {
26791
26791
  var _a3, _b3, _c3;
26792
26792
  let c = (_a3 = e.columnDef.meta) == null ? void 0 : _a3.dataType, d = c ? formatOptions[c] : [];
@@ -26985,7 +26985,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
26985
26985
  }) : null;
26986
26986
  }
26987
26987
  const ClearFilterMenuItem = (e) => {
26988
- let r = (0, import_compiler_runtime$115.c)(5), { column: c } = e, d;
26988
+ let r = (0, import_compiler_runtime$116.c)(5), { column: c } = e, d;
26989
26989
  r[0] === c ? d = r[1] : (d = () => c.setFilterValue(void 0), r[0] = c, r[1] = d);
26990
26990
  let f;
26991
26991
  r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (0, import_jsx_runtime.jsx)(FunnelX, {
@@ -27015,7 +27015,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
27015
27015
  });
27016
27016
  }
27017
27017
  const FilterButtons = (e) => {
27018
- let r = (0, import_compiler_runtime$115.c)(8), { onApply: c, onClear: d, clearButtonDisabled: f } = e, h;
27018
+ let r = (0, import_compiler_runtime$116.c)(8), { onApply: c, onClear: d, clearButtonDisabled: f } = e, h;
27019
27019
  r[0] === c ? h = r[1] : (h = (0, import_jsx_runtime.jsx)(Button, {
27020
27020
  variant: "link",
27021
27021
  size: "sm",
@@ -27040,9 +27040,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
27040
27040
  ]
27041
27041
  }), r[5] = h, r[6] = _, r[7] = v) : v = r[7], v;
27042
27042
  };
27043
- var import_compiler_runtime$114 = require_compiler_runtime();
27043
+ var import_compiler_runtime$115 = require_compiler_runtime();
27044
27044
  const MimeCell = (e) => {
27045
- let r = (0, import_compiler_runtime$114.c)(6), { value: c } = e, d;
27045
+ let r = (0, import_compiler_runtime$115.c)(6), { value: c } = e, d;
27046
27046
  r[0] !== c.data || r[1] !== c.mimetype ? (d = {
27047
27047
  channel: "output",
27048
27048
  data: c.data,
@@ -27626,9 +27626,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
27626
27626
  let [r, c] = import_react.useState(e), [d, f] = import_react.useState(null);
27627
27627
  return e !== r && (f(r), c(e)), d;
27628
27628
  }
27629
- var import_compiler_runtime$113 = require_compiler_runtime();
27629
+ var import_compiler_runtime$114 = require_compiler_runtime();
27630
27630
  const DelayMount = (e) => {
27631
- let r = (0, import_compiler_runtime$113.c)(13), { milliseconds: c, children: d, fallback: f, visibility: h, threshold: _, rootMargin: v } = e, y = h === void 0 ? false : h, S = _ === void 0 ? 0 : _, w = v === void 0 ? "0px" : v, [E, O] = (0, import_react.useState)(false), [M, I] = (0, import_react.useState)(false), z;
27631
+ let r = (0, import_compiler_runtime$114.c)(13), { milliseconds: c, children: d, fallback: f, visibility: h, threshold: _, rootMargin: v } = e, y = h === void 0 ? false : h, S = _ === void 0 ? 0 : _, w = v === void 0 ? "0px" : v, [E, O] = (0, import_react.useState)(false), [M, I] = (0, import_react.useState)(false), z;
27632
27632
  r[0] !== w || r[1] !== S ? (z = {
27633
27633
  threshold: S,
27634
27634
  root: null,
@@ -27659,9 +27659,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
27659
27659
  children: s9
27660
27660
  }), r[10] = o9, r[11] = s9, r[12] = c9) : c9 = r[12], c9;
27661
27661
  };
27662
- var import_compiler_runtime$112 = require_compiler_runtime();
27662
+ var import_compiler_runtime$113 = require_compiler_runtime();
27663
27663
  const DatePopover = (e) => {
27664
- let r = (0, import_compiler_runtime$112.c)(15), { date: c, type: d, children: f } = e;
27664
+ let r = (0, import_compiler_runtime$113.c)(15), { date: c, type: d, children: f } = e;
27665
27665
  if (!c || Number.isNaN(new Date(c).getTime())) return f;
27666
27666
  let h;
27667
27667
  r[0] === c ? h = r[1] : (h = new Date(c), r[0] = c, r[1] = h);
@@ -27701,7 +27701,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
27701
27701
  }), r[12] = w, r[13] = E, r[14] = O) : O = r[14], O;
27702
27702
  };
27703
27703
  var TimezoneDisplay = (e) => {
27704
- let r = (0, import_compiler_runtime$112.c)(26), { date: c } = e, { locale: d } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), f;
27704
+ let r = (0, import_compiler_runtime$113.c)(26), { date: c } = e, { locale: d } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), f;
27705
27705
  r[0] === d ? f = r[1] : (f = Intl.DateTimeFormat(d).resolvedOptions(), r[0] = d, r[1] = f);
27706
27706
  let h = f.timeZone, _ = c.getUTCMilliseconds() !== 0, v;
27707
27707
  r[2] === _ ? v = r[3] : (v = _ ? {
@@ -27777,7 +27777,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
27777
27777
  ]
27778
27778
  }), r[23] = q, r[24] = M, r[25] = e9) : e9 = r[25], e9;
27779
27779
  }, DateDisplay = (e) => {
27780
- let r = (0, import_compiler_runtime$112.c)(6), { date: c } = e, d;
27780
+ let r = (0, import_compiler_runtime$113.c)(6), { date: c } = e, d;
27781
27781
  r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
27782
27782
  timeZone: "UTC",
27783
27783
  dateStyle: "long"
@@ -27789,7 +27789,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
27789
27789
  children: h
27790
27790
  }), r[4] = h, r[5] = _), _;
27791
27791
  }, RelativeTime = (e) => {
27792
- let r = (0, import_compiler_runtime$112.c)(6), { date: c } = e, { locale: d } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), f, h;
27792
+ let r = (0, import_compiler_runtime$113.c)(6), { date: c } = e, { locale: d } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), f, h;
27793
27793
  if (r[0] !== c || r[1] !== d) {
27794
27794
  h = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
27795
27795
  bb0: {
@@ -27841,7 +27841,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
27841
27841
  return r[4] === f ? _ = r[5] : (_ = (0, import_jsx_runtime.jsx)("span", {
27842
27842
  children: f
27843
27843
  }), r[4] = f, r[5] = _), _;
27844
- }, import_compiler_runtime$111 = require_compiler_runtime(), hashString = (e) => {
27844
+ }, import_compiler_runtime$112 = require_compiler_runtime(), hashString = (e) => {
27845
27845
  let r = 0;
27846
27846
  for (let c = 0; c < e.length; c++) {
27847
27847
  let d = e.charCodeAt(c);
@@ -27858,7 +27858,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
27858
27858
  return d;
27859
27859
  };
27860
27860
  const ChartSkeleton = (e) => {
27861
- let r = (0, import_compiler_runtime$111.c)(11), { seed: c, width: d, height: f } = e, h = d / 9, _ = f - 15, v;
27861
+ let r = (0, import_compiler_runtime$112.c)(11), { seed: c, width: d, height: f } = e, h = d / 9, _ = f - 15, v;
27862
27862
  if (r[0] !== h || r[1] !== f || r[2] !== c || r[3] !== _ || r[4] !== d) {
27863
27863
  let e2 = generateHeights({
27864
27864
  numBars: 9,
@@ -28863,11 +28863,11 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
28863
28863
  }
28864
28864
  }, __publicField(_g, "EMPTY", new _g([], {}, {}, {}, {}, {
28865
28865
  includeCharts: false
28866
- })), _g), import_compiler_runtime$110 = require_compiler_runtime();
28866
+ })), _g), import_compiler_runtime$111 = require_compiler_runtime();
28867
28867
  const ColumnChartContext = import_react.createContext(ColumnChartSpecModel.EMPTY);
28868
28868
  var batchedLoader = createBatchedLoader();
28869
28869
  const TableColumnSummary = (e) => {
28870
- let r = (0, import_compiler_runtime$110.c)(21), { columnId: c } = e, { locale: d } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), f = import_react.use(ColumnChartContext), { theme: h } = useTheme(), _, v, y;
28870
+ let r = (0, import_compiler_runtime$111.c)(21), { columnId: c } = e, { locale: d } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), f = import_react.use(ColumnChartContext), { theme: h } = useTheme(), _, v, y;
28871
28871
  if (r[0] !== f || r[1] !== c || r[2] !== d || r[3] !== h) {
28872
28872
  let { spec: e2, type: S2, stats: w } = f.getHeaderSummary(c), E = null;
28873
28873
  if (e2) {
@@ -29078,8 +29078,8 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
29078
29078
  let f = e.at(-1);
29079
29079
  return c.push(f), c;
29080
29080
  }
29081
- var import_compiler_runtime$109 = require_compiler_runtime(), ImageWithFallback = (e) => {
29082
- let r = (0, import_compiler_runtime$109.c)(14), { url: c } = e, [d, f] = (0, import_react.useState)(false), [h, _] = (0, import_react.useState)(false);
29081
+ var import_compiler_runtime$110 = require_compiler_runtime(), ImageWithFallback = (e) => {
29082
+ let r = (0, import_compiler_runtime$110.c)(14), { url: c } = e, [d, f] = (0, import_react.useState)(false), [h, _] = (0, import_react.useState)(false);
29083
29083
  if (d) {
29084
29084
  let e2;
29085
29085
  return r[0] === c ? e2 = r[1] : (e2 = (0, import_jsx_runtime.jsx)(URLAnchor, {
@@ -29153,7 +29153,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
29153
29153
  return r.some((e2) => c.has(e2.type));
29154
29154
  }
29155
29155
  const MarkdownUrlDetector = (e) => {
29156
- let r = (0, import_compiler_runtime$109.c)(4), { content: c, parts: d } = e;
29156
+ let r = (0, import_compiler_runtime$110.c)(4), { content: c, parts: d } = e;
29157
29157
  if (isMarkdown(c)) {
29158
29158
  let e2;
29159
29159
  return r[0] === c ? e2 = r[1] : (e2 = (0, import_jsx_runtime.jsx)(MarkdownRenderer, {
@@ -29170,7 +29170,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
29170
29170
  url: e2.url
29171
29171
  }, r) : e2.value);
29172
29172
  var URLAnchor = (e) => {
29173
- let r = (0, import_compiler_runtime$109.c)(3), { url: c } = e, d;
29173
+ let r = (0, import_compiler_runtime$110.c)(3), { url: c } = e, d;
29174
29174
  r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = Events.stopPropagation(), r[0] = d) : d = r[0];
29175
29175
  let f;
29176
29176
  return r[1] === c ? f = r[2] : (f = (0, import_jsx_runtime.jsx)("a", {
@@ -29531,8 +29531,8 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
29531
29531
  maximumFractionDigits: maxFractionalDigits(c)
29532
29532
  }).format(e);
29533
29533
  };
29534
- var import_compiler_runtime$108 = require_compiler_runtime(), Table = import_react.forwardRef((e, r) => {
29535
- let c = (0, import_compiler_runtime$108.c)(9), d, f;
29534
+ var import_compiler_runtime$109 = require_compiler_runtime(), Table = import_react.forwardRef((e, r) => {
29535
+ let c = (0, import_compiler_runtime$109.c)(9), d, f;
29536
29536
  c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
29537
29537
  let h;
29538
29538
  c[3] === d ? h = c[4] : (h = cn("w-full caption-bottom text-sm", d), c[3] = d, c[4] = h);
@@ -29548,7 +29548,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
29548
29548
  });
29549
29549
  Table.displayName = "Table";
29550
29550
  var TableHeader = import_react.forwardRef((e, r) => {
29551
- let c = (0, import_compiler_runtime$108.c)(9), d, f;
29551
+ let c = (0, import_compiler_runtime$109.c)(9), d, f;
29552
29552
  c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
29553
29553
  let h;
29554
29554
  c[3] === d ? h = c[4] : (h = cn("[&_tr]:border-b bg-background", d), c[3] = d, c[4] = h);
@@ -29561,7 +29561,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
29561
29561
  });
29562
29562
  TableHeader.displayName = "TableHeader";
29563
29563
  var TableBody = import_react.forwardRef((e, r) => {
29564
- let c = (0, import_compiler_runtime$108.c)(9), d, f;
29564
+ let c = (0, import_compiler_runtime$109.c)(9), d, f;
29565
29565
  c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
29566
29566
  let h;
29567
29567
  c[3] === d ? h = c[4] : (h = cn("[&_tr:last-child]:border-0", d), c[3] = d, c[4] = h);
@@ -29574,7 +29574,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
29574
29574
  });
29575
29575
  TableBody.displayName = "TableBody";
29576
29576
  var TableFooter = import_react.forwardRef((e, r) => {
29577
- let c = (0, import_compiler_runtime$108.c)(9), d, f;
29577
+ let c = (0, import_compiler_runtime$109.c)(9), d, f;
29578
29578
  c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
29579
29579
  let h;
29580
29580
  c[3] === d ? h = c[4] : (h = cn("bg-primary font-medium text-primary-foreground", d), c[3] = d, c[4] = h);
@@ -29587,7 +29587,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
29587
29587
  });
29588
29588
  TableFooter.displayName = "TableFooter";
29589
29589
  var TableRow = import_react.forwardRef((e, r) => {
29590
- let c = (0, import_compiler_runtime$108.c)(9), d, f;
29590
+ let c = (0, import_compiler_runtime$109.c)(9), d, f;
29591
29591
  c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
29592
29592
  let h;
29593
29593
  c[3] === d ? h = c[4] : (h = cn("border-b transition-colors bg-background hover:bg-(--slate-2) data-[state=selected]:bg-(--slate-3)", d), c[3] = d, c[4] = h);
@@ -29600,7 +29600,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
29600
29600
  });
29601
29601
  TableRow.displayName = "TableRow";
29602
29602
  var TableHead = import_react.forwardRef((e, r) => {
29603
- let c = (0, import_compiler_runtime$108.c)(9), d, f;
29603
+ let c = (0, import_compiler_runtime$109.c)(9), d, f;
29604
29604
  c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
29605
29605
  let h;
29606
29606
  c[3] === d ? h = c[4] : (h = cn("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", d), c[3] = d, c[4] = h);
@@ -29613,7 +29613,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
29613
29613
  });
29614
29614
  TableHead.displayName = "TableHead";
29615
29615
  var TableCell = import_react.forwardRef((e, r) => {
29616
- let c = (0, import_compiler_runtime$108.c)(9), d, f;
29616
+ let c = (0, import_compiler_runtime$109.c)(9), d, f;
29617
29617
  c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
29618
29618
  let h;
29619
29619
  c[3] === d ? h = c[4] : (h = cn("p-1.5 align-middle [&:has([role=checkbox])]:pr-0", d), c[3] = d, c[4] = h);
@@ -29626,7 +29626,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
29626
29626
  });
29627
29627
  TableCell.displayName = "TableCell";
29628
29628
  var TableCaption = import_react.forwardRef((e, r) => {
29629
- let c = (0, import_compiler_runtime$108.c)(9), d, f;
29629
+ let c = (0, import_compiler_runtime$109.c)(9), d, f;
29630
29630
  c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
29631
29631
  let h;
29632
29632
  c[3] === d ? h = c[4] : (h = cn("mt-4 text-sm text-muted-foreground", d), c[3] = d, c[4] = h);
@@ -29830,6 +29830,37 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
29830
29830
  ...e
29831
29831
  ];
29832
29832
  }
29833
+ var import_compiler_runtime$108 = require_compiler_runtime();
29834
+ function useScrollContainerHeight(e) {
29835
+ let r = (0, import_compiler_runtime$108.c)(8), { maxHeight: c, virtualize: d } = e, f = (0, import_react.useRef)(null), h, _;
29836
+ r[0] !== c || r[1] !== d ? (h = () => {
29837
+ if (!f.current) return;
29838
+ let e2 = f.current.parentElement;
29839
+ e2 && (c ? (e2.style.maxHeight = `${c}px`, e2.style.overflow || (e2.style.overflow = "auto")) : d || e2.style.removeProperty("max-height"));
29840
+ }, _ = [
29841
+ c,
29842
+ d
29843
+ ], r[0] = c, r[1] = d, r[2] = h, r[3] = _) : (h = r[2], _ = r[3]), (0, import_react.useLayoutEffect)(h, _);
29844
+ let v, y;
29845
+ return r[4] !== c || r[5] !== d ? (v = () => {
29846
+ if (!d || c) return;
29847
+ let e2 = f.current;
29848
+ if (!e2) return;
29849
+ let r2 = e2.parentElement, h2 = e2.querySelector("thead");
29850
+ if (!r2 || !h2) return;
29851
+ let _2 = () => {
29852
+ var _a3;
29853
+ let c2 = h2.getBoundingClientRect().height || 40, d2 = ((_a3 = e2.querySelector("tbody tr:not([data-virtual-spacer])")) == null ? void 0 : _a3.getBoundingClientRect().height) || 24;
29854
+ r2.style.maxHeight = `${15 * d2 + c2}px`;
29855
+ };
29856
+ _2();
29857
+ let v2 = new ResizeObserver(_2);
29858
+ return v2.observe(h2), () => v2.disconnect();
29859
+ }, y = [
29860
+ d,
29861
+ c
29862
+ ], r[4] = c, r[5] = d, r[6] = v, r[7] = y) : (v = r[6], y = r[7]), (0, import_react.useEffect)(v, y), f;
29863
+ }
29833
29864
  function getCellValues(e, r) {
29834
29865
  let c = /* @__PURE__ */ new Map(), d = false;
29835
29866
  for (let f2 of r) {
@@ -30492,6 +30523,551 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
30492
30523
  children: c
30493
30524
  }), r[1] = c, r[2] = f), f;
30494
30525
  };
30526
+ function memo$14(e, r, c) {
30527
+ let d = c.initialDeps ?? [], f, h = true;
30528
+ function _() {
30529
+ var _a3, _b3, _c3;
30530
+ let _2;
30531
+ c.key && ((_a3 = c.debug) == null ? void 0 : _a3.call(c)) && (_2 = Date.now());
30532
+ let v = e();
30533
+ if (!(v.length !== d.length || v.some((e2, r2) => d[r2] !== e2))) return f;
30534
+ d = v;
30535
+ let y;
30536
+ if (c.key && ((_b3 = c.debug) == null ? void 0 : _b3.call(c)) && (y = Date.now()), f = r(...v), c.key && ((_c3 = c.debug) == null ? void 0 : _c3.call(c))) {
30537
+ let e2 = Math.round((Date.now() - _2) * 100) / 100, r2 = Math.round((Date.now() - y) * 100) / 100, d2 = r2 / 16, f2 = (e3, r3) => {
30538
+ for (e3 = String(e3); e3.length < r3; ) e3 = " " + e3;
30539
+ return e3;
30540
+ };
30541
+ console.info(`%c\u23F1 ${f2(r2, 5)} /${f2(e2, 5)} ms`, `
30542
+ font-size: .6rem;
30543
+ font-weight: bold;
30544
+ color: hsl(${Math.max(0, Math.min(120 - 120 * d2, 120))}deg 100% 31%);`, c == null ? void 0 : c.key);
30545
+ }
30546
+ return (c == null ? void 0 : c.onChange) && !(h && c.skipInitialOnChange) && c.onChange(f), h = false, f;
30547
+ }
30548
+ return _.updateDeps = (e2) => {
30549
+ d = e2;
30550
+ }, _;
30551
+ }
30552
+ function notUndefined(e, r) {
30553
+ if (e === void 0) throw Error(`Unexpected undefined${r ? `: ${r}` : ""}`);
30554
+ return e;
30555
+ }
30556
+ var approxEqual = (e, r) => Math.abs(e - r) < 1.01, debounce$1 = (e, r, c) => {
30557
+ let d;
30558
+ return function(...f) {
30559
+ e.clearTimeout(d), d = e.setTimeout(() => r.apply(this, f), c);
30560
+ };
30561
+ }, getRect = (e) => {
30562
+ let { offsetWidth: r, offsetHeight: c } = e;
30563
+ return {
30564
+ width: r,
30565
+ height: c
30566
+ };
30567
+ }, defaultKeyExtractor = (e) => e, defaultRangeExtractor = (e) => {
30568
+ let r = Math.max(e.startIndex - e.overscan, 0), c = Math.min(e.endIndex + e.overscan, e.count - 1), d = [];
30569
+ for (let e2 = r; e2 <= c; e2++) d.push(e2);
30570
+ return d;
30571
+ }, observeElementRect = (e, r) => {
30572
+ let c = e.scrollElement;
30573
+ if (!c) return;
30574
+ let d = e.targetWindow;
30575
+ if (!d) return;
30576
+ let f = (e2) => {
30577
+ let { width: c2, height: d2 } = e2;
30578
+ r({
30579
+ width: Math.round(c2),
30580
+ height: Math.round(d2)
30581
+ });
30582
+ };
30583
+ if (f(getRect(c)), !d.ResizeObserver) return () => {
30584
+ };
30585
+ let h = new d.ResizeObserver((r2) => {
30586
+ let d2 = () => {
30587
+ let e2 = r2[0];
30588
+ if (e2 == null ? void 0 : e2.borderBoxSize) {
30589
+ let r3 = e2.borderBoxSize[0];
30590
+ if (r3) {
30591
+ f({
30592
+ width: r3.inlineSize,
30593
+ height: r3.blockSize
30594
+ });
30595
+ return;
30596
+ }
30597
+ }
30598
+ f(getRect(c));
30599
+ };
30600
+ e.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(d2) : d2();
30601
+ });
30602
+ return h.observe(c, {
30603
+ box: "border-box"
30604
+ }), () => {
30605
+ h.unobserve(c);
30606
+ };
30607
+ }, addEventListenerOptions = {
30608
+ passive: true
30609
+ }, supportsScrollend = typeof window > "u" ? true : "onscrollend" in window, observeElementOffset = (e, r) => {
30610
+ let c = e.scrollElement;
30611
+ if (!c) return;
30612
+ let d = e.targetWindow;
30613
+ if (!d) return;
30614
+ let f = 0, h = e.options.useScrollendEvent && supportsScrollend ? () => void 0 : debounce$1(d, () => {
30615
+ r(f, false);
30616
+ }, e.options.isScrollingResetDelay), _ = (d2) => () => {
30617
+ let { horizontal: _2, isRtl: v2 } = e.options;
30618
+ f = _2 ? c.scrollLeft * (v2 && -1 || 1) : c.scrollTop, h(), r(f, d2);
30619
+ }, v = _(true), y = _(false);
30620
+ c.addEventListener("scroll", v, addEventListenerOptions);
30621
+ let S = e.options.useScrollendEvent && supportsScrollend;
30622
+ return S && c.addEventListener("scrollend", y, addEventListenerOptions), () => {
30623
+ c.removeEventListener("scroll", v), S && c.removeEventListener("scrollend", y);
30624
+ };
30625
+ }, measureElement = (e, r, c) => {
30626
+ if (r == null ? void 0 : r.borderBoxSize) {
30627
+ let e2 = r.borderBoxSize[0];
30628
+ if (e2) return Math.round(e2[c.options.horizontal ? "inlineSize" : "blockSize"]);
30629
+ }
30630
+ return e[c.options.horizontal ? "offsetWidth" : "offsetHeight"];
30631
+ }, elementScroll = (e, { adjustments: r = 0, behavior: c }, d) => {
30632
+ var _a3;
30633
+ var f, h;
30634
+ let _ = e + r;
30635
+ (h = (_a3 = f = d.scrollElement) == null ? void 0 : _a3.scrollTo) == null || h.call(f, {
30636
+ [d.options.horizontal ? "left" : "top"]: _,
30637
+ behavior: c
30638
+ });
30639
+ }, Virtualizer = class {
30640
+ constructor(e) {
30641
+ this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = false, this.scrollState = null, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.prevLanes = void 0, this.lanesChangedFlag = false, this.lanesSettling = false, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.now = () => {
30642
+ var _a3, _b3, _c3;
30643
+ var e2;
30644
+ return ((_c3 = (_b3 = e2 = (_a3 = this.targetWindow) == null ? void 0 : _a3.performance) == null ? void 0 : _b3.now) == null ? void 0 : _c3.call(e2)) ?? Date.now();
30645
+ }, this.observer = /* @__PURE__ */ (() => {
30646
+ let e2 = null, r = () => e2 || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : e2 = new this.targetWindow.ResizeObserver((e3) => {
30647
+ e3.forEach((e4) => {
30648
+ let r2 = () => {
30649
+ let r3 = e4.target, c = this.indexFromElement(r3);
30650
+ if (!r3.isConnected) {
30651
+ this.observer.unobserve(r3);
30652
+ return;
30653
+ }
30654
+ this.shouldMeasureDuringScroll(c) && this.resizeItem(c, this.options.measureElement(r3, e4, this));
30655
+ };
30656
+ this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(r2) : r2();
30657
+ });
30658
+ }));
30659
+ return {
30660
+ disconnect: () => {
30661
+ var c;
30662
+ (c = r()) == null || c.disconnect(), e2 = null;
30663
+ },
30664
+ observe: (e3) => {
30665
+ var _a3;
30666
+ return (_a3 = r()) == null ? void 0 : _a3.observe(e3, {
30667
+ box: "border-box"
30668
+ });
30669
+ },
30670
+ unobserve: (e3) => {
30671
+ var _a3;
30672
+ return (_a3 = r()) == null ? void 0 : _a3.unobserve(e3);
30673
+ }
30674
+ };
30675
+ })(), this.range = null, this.setOptions = (e2) => {
30676
+ Object.entries(e2).forEach(([r, c]) => {
30677
+ c === void 0 && delete e2[r];
30678
+ }), this.options = {
30679
+ debug: false,
30680
+ initialOffset: 0,
30681
+ overscan: 1,
30682
+ paddingStart: 0,
30683
+ paddingEnd: 0,
30684
+ scrollPaddingStart: 0,
30685
+ scrollPaddingEnd: 0,
30686
+ horizontal: false,
30687
+ getItemKey: defaultKeyExtractor,
30688
+ rangeExtractor: defaultRangeExtractor,
30689
+ onChange: () => {
30690
+ },
30691
+ measureElement,
30692
+ initialRect: {
30693
+ width: 0,
30694
+ height: 0
30695
+ },
30696
+ scrollMargin: 0,
30697
+ gap: 0,
30698
+ indexAttribute: "data-index",
30699
+ initialMeasurementsCache: [],
30700
+ lanes: 1,
30701
+ isScrollingResetDelay: 150,
30702
+ enabled: true,
30703
+ isRtl: false,
30704
+ useScrollendEvent: false,
30705
+ useAnimationFrameWithResizeObserver: false,
30706
+ ...e2
30707
+ };
30708
+ }, this.notify = (e2) => {
30709
+ var r, c;
30710
+ (c = (r = this.options).onChange) == null || c.call(r, this, e2);
30711
+ }, this.maybeNotify = memo$14(() => (this.calculateRange(), [
30712
+ this.isScrolling,
30713
+ this.range ? this.range.startIndex : null,
30714
+ this.range ? this.range.endIndex : null
30715
+ ]), (e2) => {
30716
+ this.notify(e2);
30717
+ }, {
30718
+ key: false,
30719
+ debug: () => this.options.debug,
30720
+ initialDeps: [
30721
+ this.isScrolling,
30722
+ this.range ? this.range.startIndex : null,
30723
+ this.range ? this.range.endIndex : null
30724
+ ]
30725
+ }), this.cleanup = () => {
30726
+ this.unsubs.filter(Boolean).forEach((e2) => e2()), this.unsubs = [], this.observer.disconnect(), this.rafId != null && this.targetWindow && (this.targetWindow.cancelAnimationFrame(this.rafId), this.rafId = null), this.scrollState = null, this.scrollElement = null, this.targetWindow = null;
30727
+ }, this._didMount = () => () => {
30728
+ this.cleanup();
30729
+ }, this._willUpdate = () => {
30730
+ var _a3;
30731
+ let e2 = this.options.enabled ? this.options.getScrollElement() : null;
30732
+ if (this.scrollElement !== e2) {
30733
+ if (this.cleanup(), !e2) {
30734
+ this.maybeNotify();
30735
+ return;
30736
+ }
30737
+ this.scrollElement = e2, this.scrollElement && "ownerDocument" in this.scrollElement ? this.targetWindow = this.scrollElement.ownerDocument.defaultView : this.targetWindow = ((_a3 = this.scrollElement) == null ? void 0 : _a3.window) ?? null, this.elementsCache.forEach((e3) => {
30738
+ this.observer.observe(e3);
30739
+ }), this.unsubs.push(this.options.observeElementRect(this, (e3) => {
30740
+ this.scrollRect = e3, this.maybeNotify();
30741
+ })), this.unsubs.push(this.options.observeElementOffset(this, (e3, r) => {
30742
+ this.scrollAdjustments = 0, this.scrollDirection = r ? this.getScrollOffset() < e3 ? "forward" : "backward" : null, this.scrollOffset = e3, this.isScrolling = r, this.scrollState && this.scheduleScrollReconcile(), this.maybeNotify();
30743
+ })), this._scrollToOffset(this.getScrollOffset(), {
30744
+ adjustments: void 0,
30745
+ behavior: void 0
30746
+ });
30747
+ }
30748
+ }, this.rafId = null, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (e2, r) => {
30749
+ let c = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
30750
+ for (let f = r - 1; f >= 0; f--) {
30751
+ let r2 = e2[f];
30752
+ if (c.has(r2.lane)) continue;
30753
+ let h = d.get(r2.lane);
30754
+ if (h == null || r2.end > h.end ? d.set(r2.lane, r2) : r2.end < h.end && c.set(r2.lane, true), c.size === this.options.lanes) break;
30755
+ }
30756
+ return d.size === this.options.lanes ? Array.from(d.values()).sort((e3, r2) => e3.end === r2.end ? e3.index - r2.index : e3.end - r2.end)[0] : void 0;
30757
+ }, this.getMeasurementOptions = memo$14(() => [
30758
+ this.options.count,
30759
+ this.options.paddingStart,
30760
+ this.options.scrollMargin,
30761
+ this.options.getItemKey,
30762
+ this.options.enabled,
30763
+ this.options.lanes
30764
+ ], (e2, r, c, d, f, h) => (this.prevLanes !== void 0 && this.prevLanes !== h && (this.lanesChangedFlag = true), this.prevLanes = h, this.pendingMeasuredCacheIndexes = [], {
30765
+ count: e2,
30766
+ paddingStart: r,
30767
+ scrollMargin: c,
30768
+ getItemKey: d,
30769
+ enabled: f,
30770
+ lanes: h
30771
+ }), {
30772
+ key: false
30773
+ }), this.getMeasurements = memo$14(() => [
30774
+ this.getMeasurementOptions(),
30775
+ this.itemSizeCache
30776
+ ], ({ count: e2, paddingStart: r, scrollMargin: c, getItemKey: d, enabled: f, lanes: h }, _) => {
30777
+ if (!f) return this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), [];
30778
+ if (this.laneAssignments.size > e2) for (let r2 of this.laneAssignments.keys()) r2 >= e2 && this.laneAssignments.delete(r2);
30779
+ this.lanesChangedFlag && (this.lanesChangedFlag = false, this.lanesSettling = true, this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), this.pendingMeasuredCacheIndexes = []), this.measurementsCache.length === 0 && !this.lanesSettling && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((e3) => {
30780
+ this.itemSizeCache.set(e3.key, e3.size);
30781
+ }));
30782
+ let v = this.lanesSettling ? 0 : this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
30783
+ this.pendingMeasuredCacheIndexes = [], this.lanesSettling && this.measurementsCache.length === e2 && (this.lanesSettling = false);
30784
+ let y = this.measurementsCache.slice(0, v), S = Array(h).fill(void 0);
30785
+ for (let e3 = 0; e3 < v; e3++) {
30786
+ let r2 = y[e3];
30787
+ r2 && (S[r2.lane] = e3);
30788
+ }
30789
+ for (let f2 = v; f2 < e2; f2++) {
30790
+ let e3 = d(f2), h2 = this.laneAssignments.get(f2), v2, w;
30791
+ if (h2 !== void 0 && this.options.lanes > 1) {
30792
+ v2 = h2;
30793
+ let e4 = S[v2], d2 = e4 === void 0 ? void 0 : y[e4];
30794
+ w = d2 ? d2.end + this.options.gap : r + c;
30795
+ } else {
30796
+ let e4 = this.options.lanes === 1 ? y[f2 - 1] : this.getFurthestMeasurement(y, f2);
30797
+ w = e4 ? e4.end + this.options.gap : r + c, v2 = e4 ? e4.lane : f2 % this.options.lanes, this.options.lanes > 1 && this.laneAssignments.set(f2, v2);
30798
+ }
30799
+ let E = _.get(e3), O = typeof E == "number" ? E : this.options.estimateSize(f2), M = w + O;
30800
+ y[f2] = {
30801
+ index: f2,
30802
+ start: w,
30803
+ size: O,
30804
+ end: M,
30805
+ key: e3,
30806
+ lane: v2
30807
+ }, S[v2] = f2;
30808
+ }
30809
+ return this.measurementsCache = y, y;
30810
+ }, {
30811
+ key: false,
30812
+ debug: () => this.options.debug
30813
+ }), this.calculateRange = memo$14(() => [
30814
+ this.getMeasurements(),
30815
+ this.getSize(),
30816
+ this.getScrollOffset(),
30817
+ this.options.lanes
30818
+ ], (e2, r, c, d) => this.range = e2.length > 0 && r > 0 ? calculateRange({
30819
+ measurements: e2,
30820
+ outerSize: r,
30821
+ scrollOffset: c,
30822
+ lanes: d
30823
+ }) : null, {
30824
+ key: false,
30825
+ debug: () => this.options.debug
30826
+ }), this.getVirtualIndexes = memo$14(() => {
30827
+ let e2 = null, r = null, c = this.calculateRange();
30828
+ return c && (e2 = c.startIndex, r = c.endIndex), this.maybeNotify.updateDeps([
30829
+ this.isScrolling,
30830
+ e2,
30831
+ r
30832
+ ]), [
30833
+ this.options.rangeExtractor,
30834
+ this.options.overscan,
30835
+ this.options.count,
30836
+ e2,
30837
+ r
30838
+ ];
30839
+ }, (e2, r, c, d, f) => d === null || f === null ? [] : e2({
30840
+ startIndex: d,
30841
+ endIndex: f,
30842
+ overscan: r,
30843
+ count: c
30844
+ }), {
30845
+ key: false,
30846
+ debug: () => this.options.debug
30847
+ }), this.indexFromElement = (e2) => {
30848
+ let r = this.options.indexAttribute, c = e2.getAttribute(r);
30849
+ return c ? parseInt(c, 10) : (console.warn(`Missing attribute name '${r}={index}' on measured element.`), -1);
30850
+ }, this.shouldMeasureDuringScroll = (e2) => {
30851
+ var _a3;
30852
+ if (!this.scrollState || this.scrollState.behavior !== "smooth") return true;
30853
+ let r = this.scrollState.index ?? ((_a3 = this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)) == null ? void 0 : _a3.index);
30854
+ if (r !== void 0 && this.range) {
30855
+ let c = Math.max(this.options.overscan, Math.ceil((this.range.endIndex - this.range.startIndex) / 2)), d = Math.max(0, r - c), f = Math.min(this.options.count - 1, r + c);
30856
+ return e2 >= d && e2 <= f;
30857
+ }
30858
+ return true;
30859
+ }, this.measureElement = (e2) => {
30860
+ if (!e2) {
30861
+ this.elementsCache.forEach((e3, r2) => {
30862
+ e3.isConnected || (this.observer.unobserve(e3), this.elementsCache.delete(r2));
30863
+ });
30864
+ return;
30865
+ }
30866
+ let r = this.indexFromElement(e2), c = this.options.getItemKey(r), d = this.elementsCache.get(c);
30867
+ d !== e2 && (d && this.observer.unobserve(d), this.observer.observe(e2), this.elementsCache.set(c, e2)), (!this.isScrolling || this.scrollState) && this.shouldMeasureDuringScroll(r) && this.resizeItem(r, this.options.measureElement(e2, void 0, this));
30868
+ }, this.resizeItem = (e2, r) => {
30869
+ var _a3;
30870
+ let c = this.measurementsCache[e2];
30871
+ if (!c) return;
30872
+ let d = r - (this.itemSizeCache.get(c.key) ?? c.size);
30873
+ d !== 0 && (((_a3 = this.scrollState) == null ? void 0 : _a3.behavior) !== "smooth" && (this.shouldAdjustScrollPositionOnItemSizeChange === void 0 ? c.start < this.getScrollOffset() + this.scrollAdjustments : this.shouldAdjustScrollPositionOnItemSizeChange(c, d, this)) && this._scrollToOffset(this.getScrollOffset(), {
30874
+ adjustments: this.scrollAdjustments += d,
30875
+ behavior: void 0
30876
+ }), this.pendingMeasuredCacheIndexes.push(c.index), this.itemSizeCache = new Map(this.itemSizeCache.set(c.key, r)), this.notify(false));
30877
+ }, this.getVirtualItems = memo$14(() => [
30878
+ this.getVirtualIndexes(),
30879
+ this.getMeasurements()
30880
+ ], (e2, r) => {
30881
+ let c = [];
30882
+ for (let d = 0, f = e2.length; d < f; d++) {
30883
+ let f2 = r[e2[d]];
30884
+ c.push(f2);
30885
+ }
30886
+ return c;
30887
+ }, {
30888
+ key: false,
30889
+ debug: () => this.options.debug
30890
+ }), this.getVirtualItemForOffset = (e2) => {
30891
+ let r = this.getMeasurements();
30892
+ if (r.length !== 0) return notUndefined(r[findNearestBinarySearch(0, r.length - 1, (e3) => notUndefined(r[e3]).start, e2)]);
30893
+ }, this.getMaxScrollOffset = () => {
30894
+ if (!this.scrollElement) return 0;
30895
+ if ("scrollHeight" in this.scrollElement) return this.options.horizontal ? this.scrollElement.scrollWidth - this.scrollElement.clientWidth : this.scrollElement.scrollHeight - this.scrollElement.clientHeight;
30896
+ {
30897
+ let e2 = this.scrollElement.document.documentElement;
30898
+ return this.options.horizontal ? e2.scrollWidth - this.scrollElement.innerWidth : e2.scrollHeight - this.scrollElement.innerHeight;
30899
+ }
30900
+ }, this.getOffsetForAlignment = (e2, r, c = 0) => {
30901
+ if (!this.scrollElement) return 0;
30902
+ let d = this.getSize(), f = this.getScrollOffset();
30903
+ r === "auto" && (r = e2 >= f + d ? "end" : "start"), r === "center" ? e2 += (c - d) / 2 : r === "end" && (e2 -= d);
30904
+ let h = this.getMaxScrollOffset();
30905
+ return Math.max(Math.min(h, e2), 0);
30906
+ }, this.getOffsetForIndex = (e2, r = "auto") => {
30907
+ e2 = Math.max(0, Math.min(e2, this.options.count - 1));
30908
+ let c = this.getSize(), d = this.getScrollOffset(), f = this.measurementsCache[e2];
30909
+ if (!f) return;
30910
+ if (r === "auto") if (f.end >= d + c - this.options.scrollPaddingEnd) r = "end";
30911
+ else if (f.start <= d + this.options.scrollPaddingStart) r = "start";
30912
+ else return [
30913
+ d,
30914
+ r
30915
+ ];
30916
+ if (r === "end" && e2 === this.options.count - 1) return [
30917
+ this.getMaxScrollOffset(),
30918
+ r
30919
+ ];
30920
+ let h = r === "end" ? f.end + this.options.scrollPaddingEnd : f.start - this.options.scrollPaddingStart;
30921
+ return [
30922
+ this.getOffsetForAlignment(h, r, f.size),
30923
+ r
30924
+ ];
30925
+ }, this.scrollToOffset = (e2, { align: r = "start", behavior: c = "auto" } = {}) => {
30926
+ let d = this.getOffsetForAlignment(e2, r);
30927
+ this.scrollState = {
30928
+ index: null,
30929
+ align: r,
30930
+ behavior: c,
30931
+ startedAt: this.now(),
30932
+ lastTargetOffset: d,
30933
+ stableFrames: 0
30934
+ }, this._scrollToOffset(d, {
30935
+ adjustments: void 0,
30936
+ behavior: c
30937
+ }), this.scheduleScrollReconcile();
30938
+ }, this.scrollToIndex = (e2, { align: r = "auto", behavior: c = "auto" } = {}) => {
30939
+ e2 = Math.max(0, Math.min(e2, this.options.count - 1));
30940
+ let d = this.getOffsetForIndex(e2, r);
30941
+ if (!d) return;
30942
+ let [f, h] = d, _ = this.now();
30943
+ this.scrollState = {
30944
+ index: e2,
30945
+ align: h,
30946
+ behavior: c,
30947
+ startedAt: _,
30948
+ lastTargetOffset: f,
30949
+ stableFrames: 0
30950
+ }, this._scrollToOffset(f, {
30951
+ adjustments: void 0,
30952
+ behavior: c
30953
+ }), this.scheduleScrollReconcile();
30954
+ }, this.scrollBy = (e2, { behavior: r = "auto" } = {}) => {
30955
+ let c = this.getScrollOffset() + e2;
30956
+ this.scrollState = {
30957
+ index: null,
30958
+ align: "start",
30959
+ behavior: r,
30960
+ startedAt: this.now(),
30961
+ lastTargetOffset: c,
30962
+ stableFrames: 0
30963
+ }, this._scrollToOffset(c, {
30964
+ adjustments: void 0,
30965
+ behavior: r
30966
+ }), this.scheduleScrollReconcile();
30967
+ }, this.getTotalSize = () => {
30968
+ var _a3;
30969
+ let e2 = this.getMeasurements(), r;
30970
+ if (e2.length === 0) r = this.options.paddingStart;
30971
+ else if (this.options.lanes === 1) r = ((_a3 = e2[e2.length - 1]) == null ? void 0 : _a3.end) ?? 0;
30972
+ else {
30973
+ let c = Array(this.options.lanes).fill(null), d = e2.length - 1;
30974
+ for (; d >= 0 && c.some((e3) => e3 === null); ) {
30975
+ let r2 = e2[d];
30976
+ c[r2.lane] === null && (c[r2.lane] = r2.end), d--;
30977
+ }
30978
+ r = Math.max(...c.filter((e3) => e3 !== null));
30979
+ }
30980
+ return Math.max(r - this.options.scrollMargin + this.options.paddingEnd, 0);
30981
+ }, this._scrollToOffset = (e2, { adjustments: r, behavior: c }) => {
30982
+ this.options.scrollToFn(e2, {
30983
+ behavior: c,
30984
+ adjustments: r
30985
+ }, this);
30986
+ }, this.measure = () => {
30987
+ this.itemSizeCache = /* @__PURE__ */ new Map(), this.laneAssignments = /* @__PURE__ */ new Map(), this.notify(false);
30988
+ }, this.setOptions(e);
30989
+ }
30990
+ scheduleScrollReconcile() {
30991
+ if (!this.targetWindow) {
30992
+ this.scrollState = null;
30993
+ return;
30994
+ }
30995
+ this.rafId ?? (this.rafId = this.targetWindow.requestAnimationFrame(() => {
30996
+ this.rafId = null, this.reconcileScroll();
30997
+ }));
30998
+ }
30999
+ reconcileScroll() {
31000
+ if (!this.scrollState || !this.scrollElement) return;
31001
+ if (this.now() - this.scrollState.startedAt > 5e3) {
31002
+ this.scrollState = null;
31003
+ return;
31004
+ }
31005
+ let e = this.scrollState.index == null ? void 0 : this.getOffsetForIndex(this.scrollState.index, this.scrollState.align), r = e ? e[0] : this.scrollState.lastTargetOffset, c = r !== this.scrollState.lastTargetOffset;
31006
+ if (!c && approxEqual(r, this.getScrollOffset())) {
31007
+ if (this.scrollState.stableFrames++, this.scrollState.stableFrames >= 1) {
31008
+ this.scrollState = null;
31009
+ return;
31010
+ }
31011
+ } else this.scrollState.stableFrames = 0, c && (this.scrollState.lastTargetOffset = r, this.scrollState.behavior = "auto", this._scrollToOffset(r, {
31012
+ adjustments: void 0,
31013
+ behavior: "auto"
31014
+ }));
31015
+ this.scheduleScrollReconcile();
31016
+ }
31017
+ }, findNearestBinarySearch = (e, r, c, d) => {
31018
+ for (; e <= r; ) {
31019
+ let f = (e + r) / 2 | 0, h = c(f);
31020
+ if (h < d) e = f + 1;
31021
+ else if (h > d) r = f - 1;
31022
+ else return f;
31023
+ }
31024
+ return e > 0 ? e - 1 : 0;
31025
+ };
31026
+ function calculateRange({ measurements: e, outerSize: r, scrollOffset: c, lanes: d }) {
31027
+ let f = e.length - 1, h = (r2) => e[r2].start;
31028
+ if (e.length <= d) return {
31029
+ startIndex: 0,
31030
+ endIndex: f
31031
+ };
31032
+ let _ = findNearestBinarySearch(0, f, h, c), v = _;
31033
+ if (d === 1) for (; v < f && e[v].end < c + r; ) v++;
31034
+ else if (d > 1) {
31035
+ let h2 = Array(d).fill(0);
31036
+ for (; v < f && h2.some((e2) => e2 < c + r); ) {
31037
+ let r2 = e[v];
31038
+ h2[r2.lane] = r2.end, v++;
31039
+ }
31040
+ let y = Array(d).fill(c + r);
31041
+ for (; _ >= 0 && y.some((e2) => e2 >= c); ) {
31042
+ let r2 = e[_];
31043
+ y[r2.lane] = r2.start, _--;
31044
+ }
31045
+ _ = Math.max(0, _ - _ % d), v = Math.min(f, v + (d - 1 - v % d));
31046
+ }
31047
+ return {
31048
+ startIndex: _,
31049
+ endIndex: v
31050
+ };
31051
+ }
31052
+ var import_react_dom$1 = require_react_dom(), useIsomorphicLayoutEffect$1 = typeof document < "u" ? import_react.useLayoutEffect : import_react.useEffect;
31053
+ function useVirtualizerBase({ useFlushSync: e = true, ...r }) {
31054
+ let c = import_react.useReducer(() => ({}), {})[1], d = {
31055
+ ...r,
31056
+ onChange: (d2, f2) => {
31057
+ var h;
31058
+ e && f2 ? (0, import_react_dom$1.flushSync)(c) : c(), (h = r.onChange) == null || h.call(r, d2, f2);
31059
+ }
31060
+ }, [f] = import_react.useState(() => new Virtualizer(d));
31061
+ return f.setOptions(d), useIsomorphicLayoutEffect$1(() => f._didMount(), []), useIsomorphicLayoutEffect$1(() => f._willUpdate()), f;
31062
+ }
31063
+ function useVirtualizer(e) {
31064
+ return useVirtualizerBase({
31065
+ observeElementRect,
31066
+ observeElementOffset,
31067
+ scrollToFn: elementScroll,
31068
+ ...e
31069
+ });
31070
+ }
30495
31071
  var CONTEXT_MENU_NAME = "ContextMenu", [createContextMenuContext, createContextMenuScope] = createContextScope(CONTEXT_MENU_NAME, [
30496
31072
  createMenuScope
30497
31073
  ]), useMenuScope = createMenuScope(), [ContextMenuProvider, useContextMenuContext] = createContextMenuContext(CONTEXT_MENU_NAME), ContextMenu$1 = (e) => {
@@ -31152,16 +31728,25 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
31152
31728
  })
31153
31729
  });
31154
31730
  }
31155
- const DataTableBody = ({ table: e, columns: r, rowViewerPanelOpen: c, getRowIndex: d, viewedRowIdx: f }) => {
31156
- var _a3;
31157
- let h = (0, import_react.useRef)(null);
31158
- useScrollIntoViewOnFocus(h);
31159
- let { handleCellMouseDown: _, handleCellMouseUp: v, handleCellMouseOver: y, handleCellsKeyDown: S, handleCopy: w } = useCellRangeSelection({
31731
+ const DataTableBody = ({ table: e, columns: r, rowViewerPanelOpen: c, getRowIndex: d, viewedRowIdx: f, virtualize: h = false }) => {
31732
+ let _ = e.getRowModel().rows, [v, y] = (0, import_react.useState)(null), S = (0, import_react.useRef)(null);
31733
+ (0, import_react.useLayoutEffect)(() => {
31734
+ var _a3, _b3;
31735
+ y(((_b3 = (_a3 = S.current) == null ? void 0 : _a3.parentElement) == null ? void 0 : _b3.parentElement) ?? null);
31736
+ }, []);
31737
+ let w = useVirtualizer({
31738
+ count: h ? _.length : 0,
31739
+ getScrollElement: () => v,
31740
+ estimateSize: () => 24,
31741
+ overscan: 10
31742
+ });
31743
+ useScrollIntoViewOnFocus(S);
31744
+ let { handleCellMouseDown: E, handleCellMouseUp: O, handleCellMouseOver: M, handleCellsKeyDown: I, handleCopy: z } = useCellRangeSelection({
31160
31745
  table: e
31161
- }), E = (0, import_react.useRef)(null), O = useEvent_default((e2) => {
31162
- E.current = e2;
31746
+ }), G = (0, import_react.useRef)(null), q = useEvent_default((e2) => {
31747
+ G.current = e2;
31163
31748
  });
31164
- function M(e2, r2) {
31749
+ function e9(e2, r2) {
31165
31750
  let c2 = /{{(\w+)}}/g, d2 = /* @__PURE__ */ new Map();
31166
31751
  for (let e3 of r2) {
31167
31752
  let r3 = stringifyUnknownValue({
@@ -31175,9 +31760,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
31175
31760
  return c3 === void 0 ? `{{${r3}}}` : c3;
31176
31761
  });
31177
31762
  }
31178
- let I = (e2) => e2.map((e3) => {
31179
- var _a4, _b3, _c3, _d3;
31180
- let { className: r2, style: c2 } = getPinningStyles(e3.column), d2 = Object.assign({}, ((_a4 = e3.getUserStyling) == null ? void 0 : _a4.call(e3)) || {}, c2), f2 = ((_b3 = e3.getHoverTitle) == null ? void 0 : _b3.call(e3)) ?? void 0;
31763
+ let t9 = (e2) => e2.map((e3) => {
31764
+ var _a3, _b3, _c3, _d3;
31765
+ let { className: r2, style: c2 } = getPinningStyles(e3.column), d2 = Object.assign({}, ((_a3 = e3.getUserStyling) == null ? void 0 : _a3.call(e3)) || {}, c2), f2 = ((_b3 = e3.getHoverTitle) == null ? void 0 : _b3.call(e3)) ?? void 0;
31181
31766
  return (0, import_react.createElement)(TableCell, {
31182
31767
  tabIndex: 0,
31183
31768
  ...getCellDomProps(e3.id),
@@ -31185,60 +31770,86 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
31185
31770
  className: cn("whitespace-pre truncate max-w-[300px] outline-hidden", e3.column.getColumnWrapping && ((_d3 = (_c3 = e3.column).getColumnWrapping) == null ? void 0 : _d3.call(_c3)) === "wrap" && "whitespace-pre-wrap min-w-[200px]", "px-1.5 py-[0.18rem]", r2),
31186
31771
  style: d2,
31187
31772
  title: f2,
31188
- onMouseDown: (r3) => _(r3, e3),
31189
- onMouseUp: v,
31190
- onMouseOver: (r3) => y(r3, e3),
31191
- onContextMenu: () => O(e3)
31773
+ onMouseDown: (r3) => E(r3, e3),
31774
+ onMouseUp: O,
31775
+ onMouseOver: (r3) => M(r3, e3),
31776
+ onContextMenu: () => q(e3)
31192
31777
  }, (0, import_jsx_runtime.jsx)(CellRangeSelectionIndicator, {
31193
31778
  cellId: e3.id
31194
31779
  }), (0, import_jsx_runtime.jsx)("div", {
31195
31780
  className: "relative",
31196
31781
  children: flexRender(e3.column.columnDef.cell, e3.getContext())
31197
31782
  }));
31198
- }), z = (e2) => {
31199
- var _a4;
31783
+ }), n9 = (e2) => {
31784
+ var _a3;
31200
31785
  if (c) {
31201
31786
  let r2 = (d == null ? void 0 : d(e2.original, e2.index)) ?? e2.index;
31202
- (_a4 = e2.focusRow) == null ? void 0 : _a4.call(e2, r2);
31787
+ (_a3 = e2.focusRow) == null ? void 0 : _a3.call(e2, r2);
31203
31788
  }
31204
- }, G = e.getState().cellHoverTemplate || null;
31789
+ }, r9 = e.getState().cellHoverTemplate || null, a9 = (e2) => {
31790
+ var _a3;
31791
+ let r2 = c ? (d == null ? void 0 : d(e2.original, e2.index)) ?? e2.index : void 0, h2 = c && f === r2, _2;
31792
+ return r9 && (_2 = e9(r9, ((_a3 = e2.getVisibleCells) == null ? void 0 : _a3.call(e2)) ?? [
31793
+ ...e2.getLeftVisibleCells(),
31794
+ ...e2.getCenterVisibleCells(),
31795
+ ...e2.getRightVisibleCells()
31796
+ ])), (0, import_jsx_runtime.jsxs)(TableRow, {
31797
+ "data-state": e2.getIsSelected() && "selected",
31798
+ title: _2,
31799
+ className: cn("border-t h-6", c && "cursor-pointer", h2 && "bg-(--blue-3) hover:bg-(--blue-3) data-[state=selected]:bg-(--blue-4)"),
31800
+ onClick: () => n9(e2),
31801
+ children: [
31802
+ t9(e2.getLeftVisibleCells()),
31803
+ t9(e2.getCenterVisibleCells()),
31804
+ t9(e2.getRightVisibleCells())
31805
+ ]
31806
+ }, e2.id);
31807
+ };
31205
31808
  return (0, import_jsx_runtime.jsx)(DataTableContextMenu, {
31206
31809
  tableBody: (0, import_jsx_runtime.jsx)(TableBody, {
31207
- onKeyDown: S,
31208
- ref: h,
31209
- children: ((_a3 = e.getRowModel().rows) == null ? void 0 : _a3.length) ? e.getRowModel().rows.map((e2) => {
31210
- var _a4;
31211
- let r2 = c ? (d == null ? void 0 : d(e2.original, e2.index)) ?? e2.index : void 0, h2 = c && f === r2, _2;
31212
- if (G) {
31213
- let r3 = ((_a4 = e2.getVisibleCells) == null ? void 0 : _a4.call(e2)) ?? [
31214
- ...e2.getLeftVisibleCells(),
31215
- ...e2.getCenterVisibleCells(),
31216
- ...e2.getRightVisibleCells()
31217
- ];
31218
- _2 = G ? M(G, r3) : void 0;
31810
+ onKeyDown: I,
31811
+ ref: S,
31812
+ children: (() => {
31813
+ var _a3, _b3;
31814
+ if (_.length === 0) return (0, import_jsx_runtime.jsx)(TableRow, {
31815
+ children: (0, import_jsx_runtime.jsx)(TableCell, {
31816
+ colSpan: r.length,
31817
+ className: "h-24 text-center",
31818
+ children: "No results."
31819
+ })
31820
+ });
31821
+ if (h) {
31822
+ let e2 = w.getVirtualItems(), c2 = w.getTotalSize();
31823
+ return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
31824
+ children: [
31825
+ ((_a3 = e2[0]) == null ? void 0 : _a3.start) > 0 && (0, import_jsx_runtime.jsx)("tr", {
31826
+ "data-virtual-spacer": "",
31827
+ style: {
31828
+ height: e2[0].start
31829
+ },
31830
+ children: (0, import_jsx_runtime.jsx)("td", {
31831
+ colSpan: r.length
31832
+ })
31833
+ }),
31834
+ e2.map((e3) => a9(_[e3.index])),
31835
+ e2.length > 0 && (0, import_jsx_runtime.jsx)("tr", {
31836
+ "data-virtual-spacer": "",
31837
+ style: {
31838
+ height: c2 - (((_b3 = e2.at(-1)) == null ? void 0 : _b3.end) ?? c2)
31839
+ },
31840
+ children: (0, import_jsx_runtime.jsx)("td", {
31841
+ colSpan: r.length
31842
+ })
31843
+ })
31844
+ ]
31845
+ });
31219
31846
  }
31220
- return (0, import_jsx_runtime.jsxs)(TableRow, {
31221
- "data-state": e2.getIsSelected() && "selected",
31222
- title: _2,
31223
- className: cn("border-t h-6", c && "cursor-pointer", h2 && "bg-(--blue-3) hover:bg-(--blue-3) data-[state=selected]:bg-(--blue-4)"),
31224
- onClick: () => z(e2),
31225
- children: [
31226
- I(e2.getLeftVisibleCells()),
31227
- I(e2.getCenterVisibleCells()),
31228
- I(e2.getRightVisibleCells())
31229
- ]
31230
- }, e2.id);
31231
- }) : (0, import_jsx_runtime.jsx)(TableRow, {
31232
- children: (0, import_jsx_runtime.jsx)(TableCell, {
31233
- colSpan: r.length,
31234
- className: "h-24 text-center",
31235
- children: "No results."
31236
- })
31237
- })
31847
+ return _.map((e2) => a9(e2));
31848
+ })()
31238
31849
  }),
31239
- contextMenuRef: E,
31240
- tableRef: h,
31241
- copyAllCells: w
31850
+ contextMenuRef: G,
31851
+ tableRef: S,
31852
+ copyAllCells: z
31242
31853
  });
31243
31854
  };
31244
31855
  function getPinningStyles(e) {
@@ -32034,111 +32645,117 @@ Defaulting to \`null\`.`;
32034
32645
  const prettifyRowColumnCount = (e, r, c) => [
32035
32646
  e === "too_many" ? "Unknown" : prettifyRowCount(e, c),
32036
32647
  `${prettyNumber(r, c)} ${new PluralWord("column").pluralize(r)}`
32037
- ].join(", "), TableActions = ({ enableSearch: e, onSearchQueryChange: r, isSearchEnabled: c, setIsSearchEnabled: d, pagination: f, totalColumns: h, selection: _, onRowSelectionChange: v, table: S, downloadAs: w, downloadFileName: E, getRowIds: O, toggleDisplayHeader: M, showChartBuilder: I, showColumnExplorer: z, showRowExplorer: G, showPageSizeSelector: q, togglePanel: e9, isPanelOpen: t9, tableLoading: n9 }) => (0, import_jsx_runtime.jsxs)("div", {
32038
- className: "flex items-center shrink-0 pt-1",
32039
- children: [
32040
- r && e && (0, import_jsx_runtime.jsx)(Tooltip, {
32041
- content: "Search",
32042
- children: (0, import_jsx_runtime.jsx)(Button, {
32043
- variant: "text",
32044
- size: "xs",
32045
- className: "mb-0 print:hidden",
32046
- onClick: () => d(!c),
32047
- children: (0, import_jsx_runtime.jsx)(Search, {
32048
- className: "w-4 h-4 text-muted-foreground"
32648
+ ].join(", "), TableActions = ({ enableSearch: e, onSearchQueryChange: r, isSearchEnabled: c, setIsSearchEnabled: d, pagination: f, totalColumns: h, selection: _, onRowSelectionChange: v, table: S, downloadAs: w, downloadFileName: E, getRowIds: O, toggleDisplayHeader: M, showChartBuilder: I, showColumnExplorer: z, showRowExplorer: G, showPageSizeSelector: q, togglePanel: e9, isPanelOpen: t9, tableLoading: n9 }) => {
32649
+ let { locale: r9 } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
32650
+ return (0, import_jsx_runtime.jsxs)("div", {
32651
+ className: "flex items-center shrink-0 pt-1",
32652
+ children: [
32653
+ r && e && (0, import_jsx_runtime.jsx)(Tooltip, {
32654
+ content: "Search",
32655
+ children: (0, import_jsx_runtime.jsx)(Button, {
32656
+ variant: "text",
32657
+ size: "xs",
32658
+ className: "mb-0 print:hidden",
32659
+ onClick: () => d(!c),
32660
+ children: (0, import_jsx_runtime.jsx)(Search, {
32661
+ className: "w-4 h-4 text-muted-foreground"
32662
+ })
32049
32663
  })
32050
- })
32051
- }),
32052
- I && (0, import_jsx_runtime.jsx)(Tooltip, {
32053
- content: "Chart builder",
32054
- children: (0, import_jsx_runtime.jsx)(Button, {
32055
- variant: "text",
32056
- size: "xs",
32057
- className: "mb-0 print:hidden",
32058
- onClick: M,
32059
- children: (0, import_jsx_runtime.jsx)(ChartSpline, {
32060
- className: "w-4 h-4 text-muted-foreground"
32664
+ }),
32665
+ I && (0, import_jsx_runtime.jsx)(Tooltip, {
32666
+ content: "Chart builder",
32667
+ children: (0, import_jsx_runtime.jsx)(Button, {
32668
+ variant: "text",
32669
+ size: "xs",
32670
+ className: "mb-0 print:hidden",
32671
+ onClick: M,
32672
+ children: (0, import_jsx_runtime.jsx)(ChartSpline, {
32673
+ className: "w-4 h-4 text-muted-foreground"
32674
+ })
32061
32675
  })
32062
- })
32063
- }),
32064
- e9 && t9 !== void 0 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
32065
- children: [
32066
- G && (0, import_jsx_runtime.jsx)(Tooltip, {
32067
- content: "Toggle row viewer",
32068
- children: (0, import_jsx_runtime.jsx)(Button, {
32069
- variant: "text",
32070
- size: "xs",
32071
- onClick: () => e9("row-viewer"),
32072
- className: "print:hidden",
32073
- children: (0, import_jsx_runtime.jsx)(PanelRight, {
32074
- className: cn("w-4 h-4 text-muted-foreground", t9("row-viewer") && "text-primary")
32676
+ }),
32677
+ e9 && t9 !== void 0 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
32678
+ children: [
32679
+ G && (0, import_jsx_runtime.jsx)(Tooltip, {
32680
+ content: "Toggle row viewer",
32681
+ children: (0, import_jsx_runtime.jsx)(Button, {
32682
+ variant: "text",
32683
+ size: "xs",
32684
+ onClick: () => e9("row-viewer"),
32685
+ className: "print:hidden",
32686
+ children: (0, import_jsx_runtime.jsx)(PanelRight, {
32687
+ className: cn("w-4 h-4 text-muted-foreground", t9("row-viewer") && "text-primary")
32688
+ })
32075
32689
  })
32076
- })
32077
- }),
32078
- z && (0, import_jsx_runtime.jsx)(Tooltip, {
32079
- content: "Toggle column explorer",
32080
- children: (0, import_jsx_runtime.jsx)(Button, {
32081
- variant: "text",
32082
- size: "xs",
32083
- onClick: () => e9("column-explorer"),
32084
- className: "print:hidden",
32085
- children: (0, import_jsx_runtime.jsx)(ChartColumnStacked, {
32086
- className: cn("w-4 h-4 text-muted-foreground", t9("column-explorer") && "text-primary")
32690
+ }),
32691
+ z && (0, import_jsx_runtime.jsx)(Tooltip, {
32692
+ content: "Toggle column explorer",
32693
+ children: (0, import_jsx_runtime.jsx)(Button, {
32694
+ variant: "text",
32695
+ size: "xs",
32696
+ onClick: () => e9("column-explorer"),
32697
+ className: "print:hidden",
32698
+ children: (0, import_jsx_runtime.jsx)(ChartColumnStacked, {
32699
+ className: cn("w-4 h-4 text-muted-foreground", t9("column-explorer") && "text-primary")
32700
+ })
32087
32701
  })
32088
32702
  })
32089
- })
32090
- ]
32091
- }),
32092
- f && (0, import_jsx_runtime.jsx)(DataTablePagination, {
32093
- totalColumns: h,
32094
- selection: _,
32095
- onSelectAllRowsChange: (e2) => {
32096
- if (!v) return;
32097
- if (!e2) {
32098
- v({});
32099
- return;
32100
- }
32101
- let r2 = () => {
32102
- let e3 = Array.from({
32103
- length: S.getRowCount()
32104
- }, (e4, r3) => [
32105
- r3,
32106
- true
32107
- ]);
32108
- v(Object.fromEntries(e3));
32109
- };
32110
- if (!O) {
32111
- r2();
32112
- return;
32113
- }
32114
- O({}).then((e3) => {
32115
- if (e3.error) {
32116
- toast({
32117
- title: "Not available",
32118
- description: e3.error,
32119
- variant: "danger"
32120
- });
32703
+ ]
32704
+ }),
32705
+ f ? (0, import_jsx_runtime.jsx)(DataTablePagination, {
32706
+ totalColumns: h,
32707
+ selection: _,
32708
+ onSelectAllRowsChange: (e2) => {
32709
+ if (!v) return;
32710
+ if (!e2) {
32711
+ v({});
32121
32712
  return;
32122
32713
  }
32123
- e3.all_rows ? r2() : v(Object.fromEntries(e3.row_ids.map((e4) => [
32124
- e4,
32125
- true
32126
- ])));
32127
- });
32128
- },
32129
- table: S,
32130
- tableLoading: n9,
32131
- showPageSizeSelector: q
32132
- }),
32133
- (0, import_jsx_runtime.jsx)("div", {
32134
- className: "ml-auto",
32135
- children: w && (0, import_jsx_runtime.jsx)(DownloadAs, {
32136
- downloadAs: w,
32137
- downloadFileName: E
32714
+ let r2 = () => {
32715
+ let e3 = Array.from({
32716
+ length: S.getRowCount()
32717
+ }, (e4, r3) => [
32718
+ r3,
32719
+ true
32720
+ ]);
32721
+ v(Object.fromEntries(e3));
32722
+ };
32723
+ if (!O) {
32724
+ r2();
32725
+ return;
32726
+ }
32727
+ O({}).then((e3) => {
32728
+ if (e3.error) {
32729
+ toast({
32730
+ title: "Not available",
32731
+ description: e3.error,
32732
+ variant: "danger"
32733
+ });
32734
+ return;
32735
+ }
32736
+ e3.all_rows ? r2() : v(Object.fromEntries(e3.row_ids.map((e4) => [
32737
+ e4,
32738
+ true
32739
+ ])));
32740
+ });
32741
+ },
32742
+ table: S,
32743
+ tableLoading: n9,
32744
+ showPageSizeSelector: q
32745
+ }) : (0, import_jsx_runtime.jsx)("span", {
32746
+ className: "text-xs text-muted-foreground px-2",
32747
+ children: prettifyRowColumnCount(S.getRowCount(), h, r9)
32748
+ }),
32749
+ (0, import_jsx_runtime.jsx)("div", {
32750
+ className: "ml-auto",
32751
+ children: w && (0, import_jsx_runtime.jsx)(DownloadAs, {
32752
+ downloadAs: w,
32753
+ downloadFileName: E
32754
+ })
32138
32755
  })
32139
- })
32140
- ]
32141
- }), DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: r, maxHeight: c, columns: d, data: f, rawData: h, selection: _, totalColumns: v, totalRows: y, manualSorting: S = false, sorting: w, setSorting: E, rowSelection: O, cellSelection: M, cellStyling: I, hoverTemplate: z, cellHoverTexts: G, paginationState: q, setPaginationState: e9, downloadAs: t9, downloadFileName: n9, manualPagination: r9 = false, pagination: i9 = false, onRowSelectionChange: a9, onCellSelectionChange: o9, getRowIds: s9, enableSearch: c9 = false, searchQuery: l9, onSearchQueryChange: u9, showFilters: d9 = false, filters: f9, onFiltersChange: p9, reloading: m9, freezeColumnsLeft: h9, freezeColumnsRight: g9, toggleDisplayHeader: _9, showChartBuilder: v9, showPageSizeSelector: y9, showColumnExplorer: b9, showRowExplorer: x9, togglePanel: S9, isPanelOpen: C9, viewedRowIdx: w9, onViewedRowChange: T9 }) => {
32756
+ ]
32757
+ });
32758
+ }, DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: r, maxHeight: c, columns: d, data: f, rawData: h, selection: _, totalColumns: v, totalRows: y, manualSorting: S = false, sorting: w, setSorting: E, rowSelection: O, cellSelection: M, cellStyling: I, hoverTemplate: z, cellHoverTexts: G, paginationState: q, setPaginationState: e9, downloadAs: t9, downloadFileName: n9, manualPagination: r9 = false, pagination: i9 = false, onRowSelectionChange: a9, onCellSelectionChange: o9, getRowIds: s9, enableSearch: c9 = false, searchQuery: l9, onSearchQueryChange: u9, showFilters: d9 = false, filters: f9, onFiltersChange: p9, reloading: m9, freezeColumnsLeft: h9, freezeColumnsRight: g9, toggleDisplayHeader: _9, showChartBuilder: v9, showPageSizeSelector: y9, showColumnExplorer: b9, showRowExplorer: x9, togglePanel: S9, isPanelOpen: C9, viewedRowIdx: w9, onViewedRowChange: T9 }) => {
32142
32759
  let [E9, D9] = import_react.useState(false), [O9, k9] = import_react.useState(false), { locale: A9 } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: j9, setColumnPinning: M9 } = useColumnPinning(h9, g9);
32143
32760
  import_react.useEffect(() => {
32144
32761
  let e2;
@@ -32221,14 +32838,11 @@ Defaulting to \`null\`.`;
32221
32838
  cellHoverTemplate: z,
32222
32839
  cellHoverTexts: G ?? {}
32223
32840
  }
32224
- }), F9 = (C9 == null ? void 0 : C9("row-viewer")) ?? false, I9 = import_react.useRef(null);
32225
- return import_react.useEffect(() => {
32226
- if (!I9.current) return;
32227
- let e2 = I9.current.parentElement;
32228
- e2 && (c ? (e2.style.maxHeight = `${c}px`, e2.style.overflow || (e2.style.overflow = "auto")) : e2.style.removeProperty("max-height"));
32229
- }, [
32230
- c
32231
- ]), (0, import_jsx_runtime.jsxs)("div", {
32841
+ }), F9 = (C9 == null ? void 0 : C9("row-viewer")) ?? false, I9 = !i9 && f.length > 100, L9 = useScrollContainerHeight({
32842
+ maxHeight: c,
32843
+ virtualize: I9
32844
+ });
32845
+ return (0, import_jsx_runtime.jsxs)("div", {
32232
32846
  className: cn(e, "flex flex-col space-y-1"),
32233
32847
  children: [
32234
32848
  (0, import_jsx_runtime.jsx)(FilterPills, {
@@ -32249,18 +32863,19 @@ Defaulting to \`null\`.`;
32249
32863
  }),
32250
32864
  (0, import_jsx_runtime.jsxs)(Table, {
32251
32865
  className: "relative",
32252
- ref: I9,
32866
+ ref: L9,
32253
32867
  children: [
32254
32868
  O9 && (0, import_jsx_runtime.jsx)("thead", {
32255
32869
  className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
32256
32870
  }),
32257
- renderTableHeader(P9, !!c),
32871
+ renderTableHeader(P9, I9 || !!c),
32258
32872
  (0, import_jsx_runtime.jsx)(DataTableBody, {
32259
32873
  table: P9,
32260
32874
  columns: d,
32261
32875
  rowViewerPanelOpen: F9,
32262
32876
  getRowIndex: N9,
32263
- viewedRowIdx: w9
32877
+ viewedRowIdx: w9,
32878
+ virtualize: I9
32264
32879
  })
32265
32880
  ]
32266
32881
  })
@@ -34560,7 +35175,7 @@ ${O}`,
34560
35175
  };
34561
35176
  }
34562
35177
  };
34563
- var LazyChatbot = import_react.lazy(() => import("./chat-ui-CedqKBe3.js").then((e) => ({
35178
+ var LazyChatbot = import_react.lazy(() => import("./chat-ui-D4ay_SFE.js").then((e) => ({
34564
35179
  default: e.Chatbot
34565
35180
  }))), messageSchema = array(object({
34566
35181
  id: string(),
@@ -64766,7 +65381,7 @@ ${c}
64766
65381
  return Logger.warn("Failed to get version from mount config"), null;
64767
65382
  }
64768
65383
  }
64769
- const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.21.2-dev77"), showCodeInRunModeAtom = atom(true);
65384
+ const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.21.2-dev79"), showCodeInRunModeAtom = atom(true);
64770
65385
  atom(null);
64771
65386
  var VIRTUAL_FILE_REGEX = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
64772
65387
  constructor() {
@@ -66026,7 +66641,6 @@ ${r}
66026
66641
  case "installing-package-alert":
66027
66642
  case "completion-result":
66028
66643
  case "reload":
66029
- case "update-cell-codes":
66030
66644
  case "update-cell-ids":
66031
66645
  case "focus-cell":
66032
66646
  case "variables":