@marimo-team/islands 0.23.4-dev18 → 0.23.4-dev21

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.
@@ -7464,33 +7464,33 @@ try {
7464
7464
  }, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
7465
7465
  function y(e2) {
7466
7466
  var _a2, _b, _c, _d;
7467
- let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), BM = !!Q && !I, $ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
7467
+ let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), VM = !!Q && !I, $ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
7468
7468
  h2
7469
- ]), VM = $[t], HM = VM || $, { colorSchemes: UM = _, components: WM = v, cssVarPrefix: GM } = HM, KM = Object.keys(UM).filter((e3) => !!UM[e3]).join(","), qM = import_react.useMemo(() => KM.split(","), [
7470
- KM
7471
- ]), JM = typeof s == "string" ? s : s.light, YM = typeof s == "string" ? s : s.dark, { mode: XM, setMode: ZM, systemMode: QM, lightColorScheme: $M, darkColorScheme: eN, colorScheme: tN, setColorScheme: nN } = useCurrentColorScheme({
7472
- supportedColorSchemes: qM,
7473
- defaultLightColorScheme: JM,
7474
- defaultDarkColorScheme: YM,
7469
+ ]), HM = $[t], UM = HM || $, { colorSchemes: WM = _, components: GM = v, cssVarPrefix: KM } = UM, qM = Object.keys(WM).filter((e3) => !!WM[e3]).join(","), JM = import_react.useMemo(() => qM.split(","), [
7470
+ qM
7471
+ ]), YM = typeof s == "string" ? s : s.light, XM = typeof s == "string" ? s : s.dark, { mode: ZM, setMode: QM, systemMode: $M, lightColorScheme: eN, darkColorScheme: tN, colorScheme: nN, setColorScheme: rN } = useCurrentColorScheme({
7472
+ supportedColorSchemes: JM,
7473
+ defaultLightColorScheme: YM,
7474
+ defaultDarkColorScheme: XM,
7475
7475
  modeStorageKey: y2,
7476
7476
  colorSchemeStorageKey: S2,
7477
- defaultMode: UM[JM] && UM[YM] ? U : ((_b = (_a2 = UM[HM.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = HM.palette) == null ? void 0 : _c.mode),
7477
+ defaultMode: WM[YM] && WM[XM] ? U : ((_b = (_a2 = WM[UM.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = UM.palette) == null ? void 0 : _c.mode),
7478
7478
  storageManager: E,
7479
7479
  storageWindow: O,
7480
7480
  noSsr: K
7481
- }), rN = XM, iN = tN;
7482
- BM && (rN = Q.mode, iN = Q.colorScheme);
7483
- let aN = import_react.useMemo(() => {
7481
+ }), iN = ZM, aN = nN;
7482
+ VM && (iN = Q.mode, aN = Q.colorScheme);
7483
+ let oN = import_react.useMemo(() => {
7484
7484
  var _a3;
7485
- let e3 = iN || HM.defaultColorScheme, t2 = ((_a3 = HM.generateThemeVars) == null ? void 0 : _a3.call(HM)) || HM.vars, n2 = {
7486
- ...HM,
7487
- components: WM,
7488
- colorSchemes: UM,
7489
- cssVarPrefix: GM,
7485
+ let e3 = aN || UM.defaultColorScheme, t2 = ((_a3 = UM.generateThemeVars) == null ? void 0 : _a3.call(UM)) || UM.vars, n2 = {
7486
+ ...UM,
7487
+ components: GM,
7488
+ colorSchemes: WM,
7489
+ cssVarPrefix: KM,
7490
7490
  vars: t2
7491
7491
  };
7492
7492
  if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
7493
- let t3 = UM[e3];
7493
+ let t3 = WM[e3];
7494
7494
  t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
7495
7495
  t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
7496
7496
  ...n2[e4],
@@ -7500,31 +7500,31 @@ try {
7500
7500
  }
7501
7501
  return c ? c(n2) : n2;
7502
7502
  }, [
7503
- HM,
7504
- iN,
7505
- WM,
7506
7503
  UM,
7507
- GM
7508
- ]), oN = HM.colorSchemeSelector;
7504
+ aN,
7505
+ GM,
7506
+ WM,
7507
+ KM
7508
+ ]), sN = UM.colorSchemeSelector;
7509
7509
  useEnhancedEffect_default(() => {
7510
- if (iN && M && oN && oN !== "media") {
7511
- let e3 = oN, t2 = oN;
7512
- if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...qM.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", iN));
7510
+ if (aN && M && sN && sN !== "media") {
7511
+ let e3 = sN, t2 = sN;
7512
+ if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...JM.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", aN));
7513
7513
  else {
7514
- let e4 = t2.replace("%s", iN).match(/\[([^\]]+)\]/);
7514
+ let e4 = t2.replace("%s", aN).match(/\[([^\]]+)\]/);
7515
7515
  if (e4) {
7516
7516
  let [t3, n2] = e4[1].split("=");
7517
- n2 || qM.forEach((e5) => {
7518
- M.removeAttribute(t3.replace(iN, e5));
7517
+ n2 || JM.forEach((e5) => {
7518
+ M.removeAttribute(t3.replace(aN, e5));
7519
7519
  }), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
7520
- } else M.setAttribute(t2, iN);
7520
+ } else M.setAttribute(t2, aN);
7521
7521
  }
7522
7522
  }
7523
7523
  }, [
7524
- iN,
7525
- oN,
7524
+ aN,
7525
+ sN,
7526
7526
  M,
7527
- qM
7527
+ JM
7528
7528
  ]), import_react.useEffect(() => {
7529
7529
  let e3;
7530
7530
  if (w2 && q.current && A) {
@@ -7537,48 +7537,48 @@ try {
7537
7537
  clearTimeout(e3);
7538
7538
  };
7539
7539
  }, [
7540
- iN,
7540
+ aN,
7541
7541
  w2,
7542
7542
  A
7543
7543
  ]), import_react.useEffect(() => (q.current = true, () => {
7544
7544
  q.current = false;
7545
7545
  }), []);
7546
- let sN = import_react.useMemo(() => ({
7547
- allColorSchemes: qM,
7548
- colorScheme: iN,
7549
- darkColorScheme: eN,
7550
- lightColorScheme: $M,
7551
- mode: rN,
7552
- setColorScheme: nN,
7553
- setMode: ZM,
7554
- systemMode: QM
7546
+ let cN = import_react.useMemo(() => ({
7547
+ allColorSchemes: JM,
7548
+ colorScheme: aN,
7549
+ darkColorScheme: tN,
7550
+ lightColorScheme: eN,
7551
+ mode: iN,
7552
+ setColorScheme: rN,
7553
+ setMode: QM,
7554
+ systemMode: $M
7555
7555
  }), [
7556
- qM,
7557
- iN,
7556
+ JM,
7557
+ aN,
7558
+ tN,
7558
7559
  eN,
7559
- $M,
7560
+ iN,
7560
7561
  rN,
7561
- nN,
7562
- ZM,
7563
7562
  QM,
7564
- aN.colorSchemeSelector
7565
- ]), cN = true;
7566
- (z || HM.cssVariables === false || BM && (J == null ? void 0 : J.cssVarPrefix) === GM) && (cN = false);
7567
- let lN = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
7563
+ $M,
7564
+ oN.colorSchemeSelector
7565
+ ]), lN = true;
7566
+ (z || UM.cssVariables === false || VM && (J == null ? void 0 : J.cssVarPrefix) === KM) && (lN = false);
7567
+ let uN = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
7568
7568
  children: [
7569
7569
  (0, import_jsx_runtime.jsx)(ThemeProvider_default, {
7570
- themeId: VM ? t : void 0,
7571
- theme: aN,
7570
+ themeId: HM ? t : void 0,
7571
+ theme: oN,
7572
7572
  children: d2
7573
7573
  }),
7574
- cN && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
7575
- styles: ((_d = aN.generateStyleSheets) == null ? void 0 : _d.call(aN)) || []
7574
+ lN && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
7575
+ styles: ((_d = oN.generateStyleSheets) == null ? void 0 : _d.call(oN)) || []
7576
7576
  })
7577
7577
  ]
7578
7578
  });
7579
- return BM ? lN : (0, import_jsx_runtime.jsx)(f.Provider, {
7580
- value: sN,
7581
- children: lN
7579
+ return VM ? uN : (0, import_jsx_runtime.jsx)(f.Provider, {
7580
+ value: cN,
7581
+ children: uN
7582
7582
  });
7583
7583
  }
7584
7584
  let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
@@ -9078,10 +9078,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
9078
9078
  let n = useDefaultProps({
9079
9079
  props: e,
9080
9080
  name: "MuiInputBase"
9081
- }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: BM, onFocus: $, onKeyDown: VM, onKeyUp: HM, placeholder: UM, readOnly: WM, renderSuffix: GM, rows: KM, size: qM, slotProps: JM = {}, slots: YM = {}, startAdornment: XM, type: ZM = "text", value: QM, ...$M } = n, eN = A.value == null ? QM : A.value, { current: tN } = import_react.useRef(eN != null), nN = import_react.useRef(), rN = import_react.useCallback((e2) => {
9082
- }, []), iN = useForkRef_default(nN, M, A.ref, rN), [aN, oN] = import_react.useState(false), sN = useFormControl(), cN = formControlState({
9081
+ }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: VM, onFocus: $, onKeyDown: HM, onKeyUp: UM, placeholder: WM, readOnly: GM, renderSuffix: KM, rows: qM, size: JM, slotProps: YM = {}, slots: XM = {}, startAdornment: ZM, type: QM = "text", value: $M, ...eN } = n, tN = A.value == null ? $M : A.value, { current: nN } = import_react.useRef(tN != null), rN = import_react.useRef(), iN = import_react.useCallback((e2) => {
9082
+ }, []), aN = useForkRef_default(rN, M, A.ref, iN), [oN, sN] = import_react.useState(false), cN = useFormControl(), lN = formControlState({
9083
9083
  props: n,
9084
- muiFormControl: sN,
9084
+ muiFormControl: cN,
9085
9085
  states: [
9086
9086
  "color",
9087
9087
  "disabled",
@@ -9092,145 +9092,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
9092
9092
  "filled"
9093
9093
  ]
9094
9094
  });
9095
- cN.focused = sN ? sN.focused : aN, import_react.useEffect(() => {
9096
- !sN && _ && aN && (oN(false), J && J());
9095
+ lN.focused = cN ? cN.focused : oN, import_react.useEffect(() => {
9096
+ !cN && _ && oN && (sN(false), J && J());
9097
9097
  }, [
9098
- sN,
9098
+ cN,
9099
9099
  _,
9100
- aN,
9100
+ oN,
9101
9101
  J
9102
9102
  ]);
9103
- let lN = sN && sN.onFilled, uN = sN && sN.onEmpty, dN = import_react.useCallback((e2) => {
9104
- isFilled(e2) ? lN && lN() : uN && uN();
9103
+ let uN = cN && cN.onFilled, dN = cN && cN.onEmpty, fN = import_react.useCallback((e2) => {
9104
+ isFilled(e2) ? uN && uN() : dN && dN();
9105
9105
  }, [
9106
- lN,
9107
- uN
9106
+ uN,
9107
+ dN
9108
9108
  ]);
9109
9109
  useEnhancedEffect_default$1(() => {
9110
- tN && dN({
9111
- value: eN
9110
+ nN && fN({
9111
+ value: tN
9112
9112
  });
9113
9113
  }, [
9114
- eN,
9115
- dN,
9116
- tN
9114
+ tN,
9115
+ fN,
9116
+ nN
9117
9117
  ]);
9118
- let fN = (e2) => {
9119
- $ && $(e2), A.onFocus && A.onFocus(e2), sN && sN.onFocus ? sN.onFocus(e2) : oN(true);
9120
- }, pN = (e2) => {
9121
- J && J(e2), A.onBlur && A.onBlur(e2), sN && sN.onBlur ? sN.onBlur(e2) : oN(false);
9122
- }, mN = (e2, ...t2) => {
9123
- if (!tN) {
9124
- let t3 = e2.target || nN.current;
9118
+ let pN = (e2) => {
9119
+ $ && $(e2), A.onFocus && A.onFocus(e2), cN && cN.onFocus ? cN.onFocus(e2) : sN(true);
9120
+ }, mN = (e2) => {
9121
+ J && J(e2), A.onBlur && A.onBlur(e2), cN && cN.onBlur ? cN.onBlur(e2) : sN(false);
9122
+ }, hN = (e2, ...t2) => {
9123
+ if (!nN) {
9124
+ let t3 = e2.target || rN.current;
9125
9125
  if (t3 == null) throw Error(formatMuiErrorMessage(1));
9126
- dN({
9126
+ fN({
9127
9127
  value: t3.value
9128
9128
  });
9129
9129
  }
9130
9130
  A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
9131
9131
  };
9132
9132
  import_react.useEffect(() => {
9133
- dN(nN.current);
9133
+ fN(rN.current);
9134
9134
  }, []);
9135
- let hN = (e2) => {
9136
- nN.current && e2.currentTarget === e2.target && nN.current.focus(), BM && BM(e2);
9137
- }, gN = O, _N = A;
9138
- K && gN === "input" && (_N = KM ? {
9135
+ let gN = (e2) => {
9136
+ rN.current && e2.currentTarget === e2.target && rN.current.focus(), VM && VM(e2);
9137
+ }, _N = O, vN = A;
9138
+ K && _N === "input" && (vN = qM ? {
9139
9139
  type: void 0,
9140
- minRows: KM,
9141
- maxRows: KM,
9142
- ..._N
9140
+ minRows: qM,
9141
+ maxRows: qM,
9142
+ ...vN
9143
9143
  } : {
9144
9144
  type: void 0,
9145
9145
  maxRows: z,
9146
9146
  minRows: U,
9147
- ..._N
9148
- }, gN = TextareaAutosize_default);
9149
- let vN = (e2) => {
9150
- dN(e2.animationName === "mui-auto-fill-cancel" ? nN.current : {
9147
+ ...vN
9148
+ }, _N = TextareaAutosize_default);
9149
+ let yN = (e2) => {
9150
+ fN(e2.animationName === "mui-auto-fill-cancel" ? rN.current : {
9151
9151
  value: "x"
9152
9152
  });
9153
9153
  };
9154
9154
  import_react.useEffect(() => {
9155
- sN && sN.setAdornedStart(!!XM);
9155
+ cN && cN.setAdornedStart(!!ZM);
9156
9156
  }, [
9157
- sN,
9158
- XM
9157
+ cN,
9158
+ ZM
9159
9159
  ]);
9160
- let yN = {
9160
+ let bN = {
9161
9161
  ...n,
9162
- color: cN.color || "primary",
9163
- disabled: cN.disabled,
9162
+ color: lN.color || "primary",
9163
+ disabled: lN.disabled,
9164
9164
  endAdornment: y,
9165
- error: cN.error,
9166
- focused: cN.focused,
9167
- formControl: sN,
9165
+ error: lN.error,
9166
+ focused: lN.focused,
9167
+ formControl: cN,
9168
9168
  fullWidth: w,
9169
- hiddenLabel: cN.hiddenLabel,
9169
+ hiddenLabel: lN.hiddenLabel,
9170
9170
  multiline: K,
9171
- size: cN.size,
9172
- startAdornment: XM,
9173
- type: ZM
9174
- }, bN = useUtilityClasses(yN), xN = YM.root || d.Root || InputBaseRoot, SN = JM.root || f.root || {}, CN = YM.input || d.Input || InputBaseInput;
9175
- return _N = {
9176
- ..._N,
9177
- ...JM.input ?? f.input
9171
+ size: lN.size,
9172
+ startAdornment: ZM,
9173
+ type: QM
9174
+ }, xN = useUtilityClasses(bN), SN = XM.root || d.Root || InputBaseRoot, CN = YM.root || f.root || {}, wN = XM.input || d.Input || InputBaseInput;
9175
+ return vN = {
9176
+ ...vN,
9177
+ ...YM.input ?? f.input
9178
9178
  }, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
9179
9179
  children: [
9180
9180
  !v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
9181
- (0, import_jsx_runtime.jsxs)(xN, {
9182
- ...SN,
9181
+ (0, import_jsx_runtime.jsxs)(SN, {
9182
+ ...CN,
9183
9183
  ref: t,
9184
- onClick: hN,
9185
- ...$M,
9186
- ...!isHostComponent_default(xN) && {
9184
+ onClick: gN,
9185
+ ...eN,
9186
+ ...!isHostComponent_default(SN) && {
9187
9187
  ownerState: {
9188
- ...yN,
9189
- ...SN.ownerState
9188
+ ...bN,
9189
+ ...CN.ownerState
9190
9190
  }
9191
9191
  },
9192
- className: clsx_default(bN.root, SN.className, s, WM && "MuiInputBase-readOnly"),
9192
+ className: clsx_default(xN.root, CN.className, s, GM && "MuiInputBase-readOnly"),
9193
9193
  children: [
9194
- XM,
9194
+ ZM,
9195
9195
  (0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
9196
9196
  value: null,
9197
- children: (0, import_jsx_runtime.jsx)(CN, {
9198
- "aria-invalid": cN.error,
9197
+ children: (0, import_jsx_runtime.jsx)(wN, {
9198
+ "aria-invalid": lN.error,
9199
9199
  "aria-describedby": i,
9200
9200
  autoComplete: a,
9201
9201
  autoFocus: o,
9202
9202
  defaultValue: h,
9203
- disabled: cN.disabled,
9203
+ disabled: lN.disabled,
9204
9204
  id: E,
9205
- onAnimationStart: vN,
9205
+ onAnimationStart: yN,
9206
9206
  name: q,
9207
- placeholder: UM,
9208
- readOnly: WM,
9209
- required: cN.required,
9210
- rows: KM,
9211
- value: eN,
9212
- onKeyDown: VM,
9213
- onKeyUp: HM,
9214
- type: ZM,
9215
- ..._N,
9216
- ...!isHostComponent_default(CN) && {
9217
- as: gN,
9207
+ placeholder: WM,
9208
+ readOnly: GM,
9209
+ required: lN.required,
9210
+ rows: qM,
9211
+ value: tN,
9212
+ onKeyDown: HM,
9213
+ onKeyUp: UM,
9214
+ type: QM,
9215
+ ...vN,
9216
+ ...!isHostComponent_default(wN) && {
9217
+ as: _N,
9218
9218
  ownerState: {
9219
- ...yN,
9220
- ..._N.ownerState
9219
+ ...bN,
9220
+ ...vN.ownerState
9221
9221
  }
9222
9222
  },
9223
- ref: iN,
9224
- className: clsx_default(bN.input, _N.className, WM && "MuiInputBase-readOnly"),
9225
- onBlur: pN,
9226
- onChange: mN,
9227
- onFocus: fN
9223
+ ref: aN,
9224
+ className: clsx_default(xN.input, vN.className, GM && "MuiInputBase-readOnly"),
9225
+ onBlur: mN,
9226
+ onChange: hN,
9227
+ onFocus: pN
9228
9228
  })
9229
9229
  }),
9230
9230
  y,
9231
- GM ? GM({
9232
- ...cN,
9233
- startAdornment: XM
9231
+ KM ? KM({
9232
+ ...lN,
9233
+ startAdornment: ZM
9234
9234
  }) : null
9235
9235
  ]
9236
9236
  })
@@ -10306,30 +10306,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10306
10306
  M,
10307
10307
  i,
10308
10308
  a
10309
- ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), BM = useJsonViewerStore((e2) => e2.onChange), $ = useTextColor(), VM = useJsonViewerStore((e2) => e2.colorspace.base0C), HM = useJsonViewerStore((e2) => e2.colorspace.base0A), UM = useJsonViewerStore((e2) => e2.displayComma), WM = useJsonViewerStore((e2) => e2.quotesOnKeys), GM = useJsonViewerStore((e2) => e2.rootName), KM = U === t, qM = Number.isInteger(Number(A)), JM = useJsonViewerStore((e2) => e2.enableAdd), YM = useJsonViewerStore((e2) => e2.onAdd), XM = (0, import_react.useMemo)(() => !YM || a !== void 0 || JM === false || v === false ? false : typeof JM == "function" ? !!JM(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
10310
- YM,
10309
+ ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), VM = useJsonViewerStore((e2) => e2.onChange), $ = useTextColor(), HM = useJsonViewerStore((e2) => e2.colorspace.base0C), UM = useJsonViewerStore((e2) => e2.colorspace.base0A), WM = useJsonViewerStore((e2) => e2.displayComma), GM = useJsonViewerStore((e2) => e2.quotesOnKeys), KM = useJsonViewerStore((e2) => e2.rootName), qM = U === t, JM = Number.isInteger(Number(A)), YM = useJsonViewerStore((e2) => e2.enableAdd), XM = useJsonViewerStore((e2) => e2.onAdd), ZM = (0, import_react.useMemo)(() => !XM || a !== void 0 || YM === false || v === false ? false : typeof YM == "function" ? !!YM(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
10310
+ XM,
10311
10311
  a,
10312
10312
  i,
10313
- JM,
10313
+ YM,
10314
10314
  v,
10315
10315
  t
10316
- ]), ZM = useJsonViewerStore((e2) => e2.enableDelete), QM = useJsonViewerStore((e2) => e2.onDelete), $M = (0, import_react.useMemo)(() => !QM || a !== void 0 || KM || ZM === false || v === false ? false : typeof ZM == "function" ? !!ZM(i, t) : ZM, [
10317
- QM,
10316
+ ]), QM = useJsonViewerStore((e2) => e2.enableDelete), $M = useJsonViewerStore((e2) => e2.onDelete), eN = (0, import_react.useMemo)(() => !$M || a !== void 0 || qM || QM === false || v === false ? false : typeof QM == "function" ? !!QM(i, t) : QM, [
10317
+ $M,
10318
10318
  a,
10319
- KM,
10319
+ qM,
10320
10320
  i,
10321
- ZM,
10321
+ QM,
10322
10322
  v,
10323
10323
  t
10324
- ]), eN = useJsonViewerStore((e2) => e2.enableClipboard), { copy: tN, copied: nN } = useClipboard(), rN = useJsonViewerStore((e2) => e2.highlightUpdates), iN = (0, import_react.useMemo)(() => !rN || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
10325
- rN,
10324
+ ]), tN = useJsonViewerStore((e2) => e2.enableClipboard), { copy: nN, copied: rN } = useClipboard(), iN = useJsonViewerStore((e2) => e2.highlightUpdates), aN = (0, import_react.useMemo)(() => !iN || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
10325
+ iN,
10326
10326
  n,
10327
10327
  t
10328
- ]), aN = (0, import_react.useRef)();
10328
+ ]), oN = (0, import_react.useRef)();
10329
10329
  (0, import_react.useEffect)(() => {
10330
- aN.current && iN && "animate" in aN.current && aN.current.animate([
10330
+ oN.current && aN && "animate" in oN.current && oN.current.animate([
10331
10331
  {
10332
- backgroundColor: HM
10332
+ backgroundColor: UM
10333
10333
  },
10334
10334
  {
10335
10335
  backgroundColor: ""
@@ -10339,40 +10339,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10339
10339
  easing: "ease-in"
10340
10340
  });
10341
10341
  }, [
10342
- HM,
10343
- iN,
10342
+ UM,
10343
+ aN,
10344
10344
  n,
10345
10345
  t
10346
10346
  ]);
10347
- let oN = (0, import_react.useCallback)((e2) => {
10347
+ let sN = (0, import_react.useCallback)((e2) => {
10348
10348
  e2.preventDefault(), h && E(h(t)), Q(true);
10349
10349
  }, [
10350
10350
  h,
10351
10351
  t
10352
- ]), sN = (0, import_react.useCallback)(() => {
10352
+ ]), cN = (0, import_react.useCallback)(() => {
10353
10353
  Q(false), E("");
10354
10354
  }, [
10355
10355
  Q,
10356
10356
  E
10357
- ]), cN = (0, import_react.useCallback)((e2) => {
10357
+ ]), lN = (0, import_react.useCallback)((e2) => {
10358
10358
  if (Q(false), _) try {
10359
- BM(i, t, _(e2));
10359
+ VM(i, t, _(e2));
10360
10360
  } catch {
10361
10361
  }
10362
10362
  }, [
10363
10363
  Q,
10364
10364
  _,
10365
- BM,
10365
+ VM,
10366
10366
  i,
10367
10367
  t
10368
- ]), lN = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10368
+ ]), uN = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10369
10369
  children: [
10370
10370
  (0, import_jsx_runtime.jsx)(IconBox, {
10371
10371
  children: (0, import_jsx_runtime.jsx)(CloseIcon, {
10372
10372
  sx: {
10373
10373
  fontSize: ".8rem"
10374
10374
  },
10375
- onClick: sN
10375
+ onClick: cN
10376
10376
  })
10377
10377
  }),
10378
10378
  (0, import_jsx_runtime.jsx)(IconBox, {
@@ -10380,22 +10380,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10380
10380
  sx: {
10381
10381
  fontSize: ".8rem"
10382
10382
  },
10383
- onClick: () => cN(w)
10383
+ onClick: () => lN(w)
10384
10384
  })
10385
10385
  })
10386
10386
  ]
10387
10387
  }) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10388
10388
  children: [
10389
- eN && (0, import_jsx_runtime.jsx)(IconBox, {
10389
+ tN && (0, import_jsx_runtime.jsx)(IconBox, {
10390
10390
  onClick: (e2) => {
10391
10391
  e2.preventDefault();
10392
10392
  try {
10393
- tN(i, t, copyString);
10393
+ nN(i, t, copyString);
10394
10394
  } catch (e3) {
10395
10395
  console.error(e3);
10396
10396
  }
10397
10397
  },
10398
- children: nN ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
10398
+ children: rN ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
10399
10399
  sx: {
10400
10400
  fontSize: ".8rem"
10401
10401
  }
@@ -10406,16 +10406,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10406
10406
  })
10407
10407
  }),
10408
10408
  f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
10409
- onClick: oN,
10409
+ onClick: sN,
10410
10410
  children: (0, import_jsx_runtime.jsx)(EditIcon, {
10411
10411
  sx: {
10412
10412
  fontSize: ".8rem"
10413
10413
  }
10414
10414
  })
10415
10415
  }),
10416
- XM && (0, import_jsx_runtime.jsx)(IconBox, {
10416
+ ZM && (0, import_jsx_runtime.jsx)(IconBox, {
10417
10417
  onClick: (e2) => {
10418
- e2.preventDefault(), YM == null ? void 0 : YM(i);
10418
+ e2.preventDefault(), XM == null ? void 0 : XM(i);
10419
10419
  },
10420
10420
  children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
10421
10421
  sx: {
@@ -10423,9 +10423,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10423
10423
  }
10424
10424
  })
10425
10425
  }),
10426
- $M && (0, import_jsx_runtime.jsx)(IconBox, {
10426
+ eN && (0, import_jsx_runtime.jsx)(IconBox, {
10427
10427
  onClick: (e2) => {
10428
- e2.preventDefault(), QM == null ? void 0 : QM(i, t);
10428
+ e2.preventDefault(), $M == null ? void 0 : $M(i, t);
10429
10429
  },
10430
10430
  children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
10431
10431
  sx: {
@@ -10438,24 +10438,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10438
10438
  f,
10439
10439
  h,
10440
10440
  _,
10441
+ rN,
10441
10442
  nN,
10442
- tN,
10443
10443
  S,
10444
10444
  J,
10445
+ tN,
10446
+ ZM,
10445
10447
  eN,
10446
- XM,
10447
- $M,
10448
10448
  w,
10449
10449
  i,
10450
10450
  t,
10451
- YM,
10452
- QM,
10453
- oN,
10451
+ XM,
10452
+ $M,
10454
10453
  sN,
10455
- cN
10456
- ]), uN = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
10454
+ cN,
10455
+ lN
10456
+ ]), dN = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
10457
10457
  t
10458
- ]), dN = !uN && !!(c && d), fN = useJsonViewerStore((e2) => e2.keyRenderer), pN = (0, import_react.useMemo)(() => ({
10458
+ ]), fN = !dN && !!(c && d), pN = useJsonViewerStore((e2) => e2.keyRenderer), mN = (0, import_react.useMemo)(() => ({
10459
10459
  path: i,
10460
10460
  inspect: K,
10461
10461
  setInspect: q,
@@ -10492,13 +10492,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10492
10492
  opacity: 0.8
10493
10493
  },
10494
10494
  onClick: (0, import_react.useCallback)((e2) => {
10495
- e2.isDefaultPrevented() || uN || q((e3) => !e3);
10495
+ e2.isDefaultPrevented() || dN || q((e3) => !e3);
10496
10496
  }, [
10497
- uN,
10497
+ dN,
10498
10498
  q
10499
10499
  ]),
10500
10500
  children: [
10501
- dN ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
10501
+ fN ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
10502
10502
  className: "data-key-toggle-expanded",
10503
10503
  sx: {
10504
10504
  fontSize: ".8rem",
@@ -10516,27 +10516,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10516
10516
  }
10517
10517
  }) : null,
10518
10518
  (0, import_jsx_runtime.jsx)(Box_default, {
10519
- ref: aN,
10519
+ ref: oN,
10520
10520
  className: "data-key-key",
10521
10521
  component: "span",
10522
- children: KM && O === 0 ? GM === false ? null : WM ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10522
+ children: qM && O === 0 ? KM === false ? null : GM ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10523
10523
  children: [
10524
10524
  '"',
10525
- GM,
10525
+ KM,
10526
10526
  '"'
10527
10527
  ]
10528
10528
  }) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
10529
- children: GM
10530
- }) : fN.when(pN) ? (0, import_jsx_runtime.jsx)(fN, {
10531
- ...pN
10532
- }) : a === void 0 && (qM ? (0, import_jsx_runtime.jsx)(Box_default, {
10529
+ children: KM
10530
+ }) : pN.when(mN) ? (0, import_jsx_runtime.jsx)(pN, {
10531
+ ...mN
10532
+ }) : a === void 0 && (JM ? (0, import_jsx_runtime.jsx)(Box_default, {
10533
10533
  component: "span",
10534
10534
  style: {
10535
- color: VM,
10536
- userSelect: qM ? "none" : "auto"
10535
+ color: HM,
10536
+ userSelect: JM ? "none" : "auto"
10537
10537
  },
10538
10538
  children: A
10539
- }) : WM ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10539
+ }) : GM ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10540
10540
  children: [
10541
10541
  '"',
10542
10542
  A,
@@ -10546,7 +10546,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10546
10546
  children: A
10547
10547
  }))
10548
10548
  }),
10549
- KM ? GM !== false && (0, import_jsx_runtime.jsx)(DataBox, {
10549
+ qM ? KM !== false && (0, import_jsx_runtime.jsx)(DataBox, {
10550
10550
  className: "data-key-colon",
10551
10551
  sx: {
10552
10552
  mr: 0.5
@@ -10559,38 +10559,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
10559
10559
  ".data-key-key:empty + &": {
10560
10560
  display: "none"
10561
10561
  },
10562
- userSelect: qM ? "none" : "auto"
10562
+ userSelect: JM ? "none" : "auto"
10563
10563
  },
10564
10564
  children: ":"
10565
10565
  }),
10566
10566
  c && (0, import_jsx_runtime.jsx)(c, {
10567
- ...pN
10567
+ ...mN
10568
10568
  }),
10569
- I && dN && K && lN
10569
+ I && fN && K && uN
10570
10570
  ]
10571
10571
  }),
10572
10572
  J && S ? f && (0, import_jsx_runtime.jsx)(f, {
10573
10573
  path: i,
10574
10574
  value: w,
10575
10575
  setValue: E,
10576
- abortEditing: sN,
10577
- commitEditing: cN
10576
+ abortEditing: cN,
10577
+ commitEditing: lN
10578
10578
  }) : s ? (0, import_jsx_runtime.jsx)(s, {
10579
- ...pN
10579
+ ...mN
10580
10580
  }) : (0, import_jsx_runtime.jsx)(Box_default, {
10581
10581
  component: "span",
10582
10582
  className: "data-value-fallback",
10583
10583
  children: `fallback: ${t}`
10584
10584
  }),
10585
10585
  d && (0, import_jsx_runtime.jsx)(d, {
10586
- ...pN
10586
+ ...mN
10587
10587
  }),
10588
- !o && UM && (0, import_jsx_runtime.jsx)(DataBox, {
10588
+ !o && WM && (0, import_jsx_runtime.jsx)(DataBox, {
10589
10589
  children: ","
10590
10590
  }),
10591
- I && dN && !K && lN,
10592
- I && !dN && lN,
10593
- !I && J && lN
10591
+ I && fN && !K && uN,
10592
+ I && !fN && uN,
10593
+ !I && J && uN
10594
10594
  ]
10595
10595
  });
10596
10596
  }, query = "(prefers-color-scheme: dark)";
@@ -11431,18 +11431,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11431
11431
  }
11432
11432
  let _, v, y, S, w, E;
11433
11433
  if (t[2] !== d || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== h || t[8] !== c) {
11434
- let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15), BM = n.filter(_temp16), $ = n.filter(_temp17), VM;
11435
- t[15] === s ? VM = t[16] : (VM = () => {
11434
+ let e2 = n.filter(_temp7), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15), VM = n.filter(_temp16), $ = n.filter(_temp17), HM;
11435
+ t[15] === s ? HM = t[16] : (HM = () => {
11436
11436
  s.openApplication("scratchpad");
11437
- }, t[15] = s, t[16] = VM);
11438
- let HM = VM, UM = () => {
11437
+ }, t[15] = s, t[16] = HM);
11438
+ let UM = HM, WM = () => {
11439
11439
  let t2 = [];
11440
- if (Q.length > 0 || BM.length > 0) {
11440
+ if (Q.length > 0 || VM.length > 0) {
11441
11441
  let e3 = Q.some(_temp18), n2 = !e3 && Q.some(_temp19);
11442
11442
  t2.push((0, import_jsx_runtime.jsxs)("div", {
11443
11443
  children: [
11444
11444
  Q.map(_temp20),
11445
- BM.map(_temp21),
11445
+ VM.map(_temp21),
11446
11446
  e3 && (0, import_jsx_runtime.jsxs)(Button, {
11447
11447
  size: "xs",
11448
11448
  variant: "outline",
@@ -11474,7 +11474,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11474
11474
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
11475
11475
  errors: [
11476
11476
  ...Q,
11477
- ...BM
11477
+ ...VM
11478
11478
  ],
11479
11479
  cellId: i
11480
11480
  })
@@ -11635,7 +11635,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11635
11635
  size: "xs",
11636
11636
  variant: "link",
11637
11637
  className: "my-2 font-normal mx-0 px-0",
11638
- onClick: HM,
11638
+ onClick: UM,
11639
11639
  children: [
11640
11640
  (0, import_jsx_runtime.jsx)(NotebookPen, {
11641
11641
  className: "h-3"
@@ -11760,13 +11760,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
11760
11760
  })
11761
11761
  ]
11762
11762
  }, "sql-errors")), t2;
11763
- }, WM = `font-code font-medium tracking-wide ${h}`, GM;
11764
- t[17] !== WM || t[18] !== c ? (GM = (0, import_jsx_runtime.jsx)(AlertTitle, {
11765
- className: WM,
11763
+ }, GM = `font-code font-medium tracking-wide ${h}`, KM;
11764
+ t[17] !== GM || t[18] !== c ? (KM = (0, import_jsx_runtime.jsx)(AlertTitle, {
11765
+ className: GM,
11766
11766
  children: c
11767
- }), t[17] = WM, t[18] = c, t[19] = GM) : GM = t[19];
11768
- let KM = GM;
11769
- _ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = KM, v = "flex flex-col gap-8", y = UM(), t[2] = d, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = h, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
11767
+ }), t[17] = GM, t[18] = c, t[19] = KM) : KM = t[19];
11768
+ let qM = KM;
11769
+ _ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = qM, v = "flex flex-col gap-8", y = WM(), t[2] = d, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = h, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
11770
11770
  } else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
11771
11771
  let O;
11772
11772
  t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
@@ -12217,7 +12217,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12217
12217
  ]
12218
12218
  };
12219
12219
  }
12220
- LazyVegaEmbed = import_react.lazy(() => import("./react-vega-jy3CfYys.js").then((e) => ({
12220
+ LazyVegaEmbed = import_react.lazy(() => import("./react-vega-B-rkEqtS.js").then((e) => ({
12221
12221
  default: e.VegaEmbed
12222
12222
  })));
12223
12223
  var import_compiler_runtime$34 = require_compiler_runtime();
@@ -12753,7 +12753,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12753
12753
  }, [
12754
12754
  h
12755
12755
  ]), k(() => {
12756
- U(6, VM);
12756
+ U(6, HM);
12757
12757
  }, []);
12758
12758
  let K = import_react.useMemo(() => ({
12759
12759
  subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
@@ -12762,7 +12762,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12762
12762
  var _a2;
12763
12763
  var a2, o2, s2;
12764
12764
  if (!Object.is(n.current[e2], t2)) {
12765
- if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1, BM);
12765
+ if (n.current[e2] = t2, e2 === "search") $(), Q(), U(1, VM);
12766
12766
  else if (e2 === "value") {
12767
12767
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
12768
12768
  let e3 = document.getElementById(I);
@@ -12770,8 +12770,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12770
12770
  }
12771
12771
  if (U(7, () => {
12772
12772
  var _a3;
12773
- n.current.selectedItemId = (_a3 = HM()) == null ? void 0 : _a3.id, K.emit();
12774
- }), i2 || U(5, VM), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
12773
+ n.current.selectedItemId = (_a3 = UM()) == null ? void 0 : _a3.id, K.emit();
12774
+ }), i2 || U(5, HM), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
12775
12775
  let e3 = t2 ?? "";
12776
12776
  (s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
12777
12777
  return;
@@ -12796,12 +12796,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12796
12796
  item: (e2, t2) => (i.current.add(e2), t2 && (a.current.has(t2) ? a.current.get(t2).add(e2) : a.current.set(t2, /* @__PURE__ */ new Set([
12797
12797
  e2
12798
12798
  ]))), U(3, () => {
12799
- $(), Q(), n.current.value || BM(), K.emit();
12799
+ $(), Q(), n.current.value || VM(), K.emit();
12800
12800
  }), () => {
12801
12801
  o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
12802
- let t3 = HM();
12802
+ let t3 = UM();
12803
12803
  U(4, () => {
12804
- $(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && BM(), K.emit();
12804
+ $(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && VM(), K.emit();
12805
12805
  });
12806
12806
  }),
12807
12807
  group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
@@ -12834,7 +12834,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12834
12834
  ]);
12835
12835
  });
12836
12836
  let i2 = z.current;
12837
- UM().sort((t3, n2) => {
12837
+ WM().sort((t3, n2) => {
12838
12838
  let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
12839
12839
  return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
12840
12840
  }).forEach((e3) => {
@@ -12846,9 +12846,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12846
12846
  t3 == null ? void 0 : t3.parentElement.appendChild(t3);
12847
12847
  });
12848
12848
  }
12849
- function BM() {
12849
+ function VM() {
12850
12850
  var _a2;
12851
- let e2 = (_a2 = UM().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
12851
+ let e2 = (_a2 = WM().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
12852
12852
  K.setState("value", e2 || void 0);
12853
12853
  }
12854
12854
  function $() {
@@ -12869,43 +12869,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12869
12869
  }
12870
12870
  n.current.filtered.count = e2;
12871
12871
  }
12872
- function VM() {
12872
+ function HM() {
12873
12873
  var _a2, _b;
12874
12874
  var e2;
12875
- let t2 = HM();
12875
+ let t2 = UM();
12876
12876
  t2 && (((_a2 = t2.parentElement) == null ? void 0 : _a2.firstChild) === t2 && ((e2 = (_b = t2.closest(N$1)) == null ? void 0 : _b.querySelector(be)) == null || e2.scrollIntoView({
12877
12877
  block: "nearest"
12878
12878
  })), t2.scrollIntoView({
12879
12879
  block: "nearest"
12880
12880
  }));
12881
12881
  }
12882
- function HM() {
12882
+ function UM() {
12883
12883
  var _a2;
12884
12884
  return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
12885
12885
  }
12886
- function UM() {
12886
+ function WM() {
12887
12887
  var _a2;
12888
12888
  return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
12889
12889
  }
12890
- function WM(e2) {
12891
- let t2 = UM()[e2];
12890
+ function GM(e2) {
12891
+ let t2 = WM()[e2];
12892
12892
  t2 && K.setState("value", t2.getAttribute(T));
12893
12893
  }
12894
- function GM(e2) {
12894
+ function KM(e2) {
12895
12895
  var t2;
12896
- let n2 = HM(), i2 = UM(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
12896
+ let n2 = UM(), i2 = WM(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
12897
12897
  (t2 = c.current) != null && t2.loop && (o2 = a2 + e2 < 0 ? i2[i2.length - 1] : a2 + e2 === i2.length ? i2[0] : i2[a2 + e2]), o2 && K.setState("value", o2.getAttribute(T));
12898
12898
  }
12899
- function KM(e2) {
12899
+ function qM(e2) {
12900
12900
  var _a2;
12901
- let t2 = (_a2 = HM()) == null ? void 0 : _a2.closest(N$1), n2;
12901
+ let t2 = (_a2 = UM()) == null ? void 0 : _a2.closest(N$1), n2;
12902
12902
  for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
12903
- n2 ? K.setState("value", n2.getAttribute(T)) : GM(e2);
12903
+ n2 ? K.setState("value", n2.getAttribute(T)) : KM(e2);
12904
12904
  }
12905
- let qM = () => WM(UM().length - 1), JM = (e2) => {
12906
- e2.preventDefault(), e2.metaKey ? qM() : e2.altKey ? KM(1) : GM(1);
12907
- }, YM = (e2) => {
12908
- e2.preventDefault(), e2.metaKey ? WM(0) : e2.altKey ? KM(-1) : GM(-1);
12905
+ let JM = () => GM(WM().length - 1), YM = (e2) => {
12906
+ e2.preventDefault(), e2.metaKey ? JM() : e2.altKey ? qM(1) : KM(1);
12907
+ }, XM = (e2) => {
12908
+ e2.preventDefault(), e2.metaKey ? GM(0) : e2.altKey ? qM(-1) : KM(-1);
12909
12909
  };
12910
12910
  return import_react.createElement(Primitive.div, {
12911
12911
  ref: t,
@@ -12919,27 +12919,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
12919
12919
  if (!(e2.defaultPrevented || n2)) switch (e2.key) {
12920
12920
  case "n":
12921
12921
  case "j":
12922
- E && e2.ctrlKey && JM(e2);
12922
+ E && e2.ctrlKey && YM(e2);
12923
12923
  break;
12924
12924
  case "ArrowDown":
12925
- JM(e2);
12925
+ YM(e2);
12926
12926
  break;
12927
12927
  case "p":
12928
12928
  case "k":
12929
- E && e2.ctrlKey && YM(e2);
12929
+ E && e2.ctrlKey && XM(e2);
12930
12930
  break;
12931
12931
  case "ArrowUp":
12932
- YM(e2);
12932
+ XM(e2);
12933
12933
  break;
12934
12934
  case "Home":
12935
- e2.preventDefault(), WM(0);
12935
+ e2.preventDefault(), GM(0);
12936
12936
  break;
12937
12937
  case "End":
12938
- e2.preventDefault(), qM();
12938
+ e2.preventDefault(), JM();
12939
12939
  break;
12940
12940
  case "Enter": {
12941
12941
  e2.preventDefault();
12942
- let t3 = HM();
12942
+ let t3 = UM();
12943
12943
  if (t3) {
12944
12944
  let e3 = new Event(Z);
12945
12945
  t3.dispatchEvent(e3);
@@ -16239,30 +16239,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16239
16239
  s
16240
16240
  ]
16241
16241
  }), t[5] = o, t[6] = s, t[7] = c) : c = t[7], c;
16242
- }, DataTableColumnHeader = ({ column: e, header: t, subheader: n, className: i, calculateTopKRows: o, table: s }) => {
16243
- let [c, d] = (0, import_react.useState)(false), { locale: f } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
16242
+ }, DataTableColumnHeader = ({ column: e, header: t, subheader: n, justify: i, className: o, calculateTopKRows: s, table: c }) => {
16243
+ let [d, f] = (0, import_react.useState)(false), { locale: h } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
16244
16244
  if (!t) return null;
16245
16245
  if (!e.getCanSort() && !e.getCanFilter()) return (0, import_jsx_runtime.jsxs)("div", {
16246
- className: cn(i),
16246
+ className: cn(i === "center" && "text-center", i === "right" && "text-right", o),
16247
16247
  children: [
16248
16248
  t,
16249
16249
  n
16250
16250
  ]
16251
16251
  });
16252
- let h = e.getFilterValue() !== void 0;
16252
+ let _ = e.getFilterValue() !== void 0;
16253
16253
  return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
16254
16254
  children: [
16255
16255
  (0, import_jsx_runtime.jsxs)("div", {
16256
- className: cn("group flex flex-col my-1 w-full select-none", i),
16256
+ className: cn("group flex flex-col my-1 w-full select-none", o),
16257
16257
  children: [
16258
16258
  (0, import_jsx_runtime.jsxs)("div", {
16259
- className: "flex items-center gap-1",
16259
+ className: cn("flex items-center gap-1", i === "right" && "flex-row-reverse", i === "center" && "mx-auto"),
16260
16260
  children: [
16261
- (0, import_jsx_runtime.jsx)("span", {
16262
- children: t
16263
- }),
16264
- e.getCanSort() && (0, import_jsx_runtime.jsx)(SortButton, {
16265
- column: e
16261
+ i === "center" ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
16262
+ children: [
16263
+ e.getCanSort() && (0, import_jsx_runtime.jsx)(SortButton, {
16264
+ column: e
16265
+ }),
16266
+ (0, import_jsx_runtime.jsx)("span", {
16267
+ children: t
16268
+ })
16269
+ ]
16270
+ }) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
16271
+ children: [
16272
+ (0, import_jsx_runtime.jsx)("span", {
16273
+ children: t
16274
+ }),
16275
+ e.getCanSort() && (0, import_jsx_runtime.jsx)(SortButton, {
16276
+ column: e
16277
+ })
16278
+ ]
16266
16279
  }),
16267
16280
  (0, import_jsx_runtime.jsxs)(DropdownMenu, {
16268
16281
  modal: false,
@@ -16283,15 +16296,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16283
16296
  align: "start",
16284
16297
  children: [
16285
16298
  renderDataType(e),
16286
- renderSorts(e, s),
16299
+ renderSorts(e, c),
16287
16300
  renderCopyColumn(e),
16288
16301
  renderColumnPinning(e),
16289
16302
  renderColumnWrapping(e),
16290
- renderFormatOptions(e, f),
16303
+ renderFormatOptions(e, h),
16291
16304
  (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}),
16292
16305
  renderMenuItemFilter(e),
16293
- renderFilterByValues(e, d),
16294
- h && (0, import_jsx_runtime.jsx)(ClearFilterMenuItem, {
16306
+ renderFilterByValues(e, f),
16307
+ _ && (0, import_jsx_runtime.jsx)(ClearFilterMenuItem, {
16295
16308
  column: e
16296
16309
  })
16297
16310
  ]
@@ -16303,9 +16316,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
16303
16316
  n
16304
16317
  ]
16305
16318
  }),
16306
- c && (0, import_jsx_runtime.jsx)(PopoverFilterByValues, {
16307
- setIsFilterValueOpen: d,
16308
- calculateTopKRows: o,
16319
+ d && (0, import_jsx_runtime.jsx)(PopoverFilterByValues, {
16320
+ setIsFilterValueOpen: f,
16321
+ calculateTopKRows: s,
16309
16322
  column: e
16310
16323
  })
16311
16324
  ]
@@ -18287,40 +18300,41 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18287
18300
  accessorFn: (t2) => t2[e2],
18288
18301
  header: ({ column: t2, table: n3 }) => {
18289
18302
  var _a2;
18290
- let o2 = i == null ? void 0 : i.getColumnStats(e2), s2 = (_a2 = t2.columnDef.meta) == null ? void 0 : _a2.dtype, h2 = c == null ? void 0 : c[e2], v2 = d && s2 ? (0, import_jsx_runtime.jsxs)("div", {
18291
- className: "flex flex-row gap-1",
18303
+ let s2 = i == null ? void 0 : i.getColumnStats(e2), h2 = (_a2 = t2.columnDef.meta) == null ? void 0 : _a2.dtype, v2 = c == null ? void 0 : c[e2], y2 = o == null ? void 0 : o[e2], S2 = d && h2 ? (0, import_jsx_runtime.jsxs)("div", {
18304
+ className: cn("flex flex-row gap-1", y2 === "center" && "justify-center", y2 === "right" && "justify-end"),
18292
18305
  children: [
18293
18306
  (0, import_jsx_runtime.jsx)("span", {
18294
18307
  className: "text-xs text-muted-foreground",
18295
- children: s2
18308
+ children: h2
18296
18309
  }),
18297
- o2 && typeof o2.nulls == "number" && o2.nulls > 0 && (0, import_jsx_runtime.jsxs)("span", {
18310
+ s2 && typeof s2.nulls == "number" && s2.nulls > 0 && (0, import_jsx_runtime.jsxs)("span", {
18298
18311
  className: "text-xs text-muted-foreground",
18299
18312
  children: [
18300
18313
  "(nulls: ",
18301
- o2.nulls,
18314
+ s2.nulls,
18302
18315
  ")"
18303
18316
  ]
18304
18317
  })
18305
18318
  ]
18306
- }) : null, y2 = (0, import_jsx_runtime.jsx)("span", {
18307
- className: cn("font-bold", h2 && "underline decoration-dotted"),
18319
+ }) : null, w2 = (0, import_jsx_runtime.jsx)("span", {
18320
+ className: cn("font-bold", v2 && "underline decoration-dotted"),
18308
18321
  children: e2 === "" ? " " : e2
18309
- }), S2 = (0, import_jsx_runtime.jsx)(DataTableColumnHeader, {
18310
- header: h2 ? (0, import_jsx_runtime.jsx)(Tooltip, {
18311
- content: h2,
18322
+ }), E2 = (0, import_jsx_runtime.jsx)(DataTableColumnHeader, {
18323
+ header: v2 ? (0, import_jsx_runtime.jsx)(Tooltip, {
18324
+ content: v2,
18312
18325
  delayDuration: 300,
18313
- children: y2
18314
- }) : y2,
18315
- subheader: v2,
18326
+ children: w2
18327
+ }) : w2,
18328
+ subheader: S2,
18316
18329
  column: t2,
18330
+ justify: y2,
18317
18331
  calculateTopKRows: f,
18318
18332
  table: n3
18319
18333
  });
18320
- return _.has(e2) ? S2 : (0, import_jsx_runtime.jsxs)("div", {
18321
- className: cn("flex flex-col h-full pt-0.5 pb-3 justify-between items-start"),
18334
+ return _.has(e2) ? E2 : (0, import_jsx_runtime.jsxs)("div", {
18335
+ className: cn("flex flex-col h-full pt-0.5 pb-3 justify-between items-start", y2 === "center" && "items-center", y2 === "right" && "items-end"),
18322
18336
  children: [
18323
- S2,
18337
+ E2,
18324
18338
  (0, import_jsx_runtime.jsx)(TableColumnSummary, {
18325
18339
  columnId: e2
18326
18340
  })
@@ -18915,7 +18929,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18915
18929
  function PanelWithForwardedRef({ children: e, className: t = "", collapsedSize: n, collapsible: i, defaultSize: a, forwardedRef: o, id: s, maxSize: c, minSize: d, onCollapse: f, onExpand: h, onResize: _, order: v, style: y, tagName: S = "div", ...w }) {
18916
18930
  let E = (0, import_react.useContext)(PanelGroupContext);
18917
18931
  if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
18918
- let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, BM = useUniqueId(s), $ = (0, import_react.useRef)({
18932
+ let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, VM = useUniqueId(s), $ = (0, import_react.useRef)({
18919
18933
  callbacks: {
18920
18934
  onCollapse: f,
18921
18935
  onExpand: h,
@@ -18928,7 +18942,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18928
18942
  maxSize: c,
18929
18943
  minSize: d
18930
18944
  },
18931
- id: BM,
18945
+ id: VM,
18932
18946
  idIsFromProps: s !== void 0,
18933
18947
  order: v
18934
18948
  });
@@ -18938,7 +18952,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18938
18952
  let { callbacks: e2, constraints: t2 } = $.current, o2 = {
18939
18953
  ...t2
18940
18954
  };
18941
- $.current.id = BM, $.current.idIsFromProps = s !== void 0, $.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K($.current, o2);
18955
+ $.current.id = VM, $.current.idIsFromProps = s !== void 0, $.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K($.current, o2);
18942
18956
  }), useIsomorphicLayoutEffect$1(() => {
18943
18957
  let e2 = $.current;
18944
18958
  return q(e2), () => {
@@ -18946,7 +18960,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18946
18960
  };
18947
18961
  }, [
18948
18962
  v,
18949
- BM,
18963
+ VM,
18950
18964
  q,
18951
18965
  Q
18952
18966
  ]), (0, import_react.useImperativeHandle)(o, () => ({
@@ -18957,7 +18971,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18957
18971
  A($.current, e2);
18958
18972
  },
18959
18973
  getId() {
18960
- return BM;
18974
+ return VM;
18961
18975
  },
18962
18976
  getSize() {
18963
18977
  return M($.current);
@@ -18976,24 +18990,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
18976
18990
  A,
18977
18991
  M,
18978
18992
  U,
18979
- BM,
18993
+ VM,
18980
18994
  J
18981
18995
  ]);
18982
- let VM = I($.current, a);
18996
+ let HM = I($.current, a);
18983
18997
  return (0, import_react.createElement)(S, {
18984
18998
  ...w,
18985
18999
  children: e,
18986
19000
  className: t,
18987
- id: BM,
19001
+ id: VM,
18988
19002
  style: {
18989
- ...VM,
19003
+ ...HM,
18990
19004
  ...y
18991
19005
  },
18992
19006
  [DATA_ATTRIBUTES.groupId]: z,
18993
19007
  [DATA_ATTRIBUTES.panel]: "",
18994
19008
  [DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
18995
- [DATA_ATTRIBUTES.panelId]: BM,
18996
- [DATA_ATTRIBUTES.panelSize]: parseFloat("" + VM.flexGrow).toFixed(1)
19009
+ [DATA_ATTRIBUTES.panelId]: VM,
19010
+ [DATA_ATTRIBUTES.panelSize]: parseFloat("" + HM.flexGrow).toFixed(1)
18997
19011
  });
18998
19012
  }
18999
19013
  var Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
@@ -19766,7 +19780,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19766
19780
  }, []), Q = (0, import_react.useCallback)((e2) => {
19767
19781
  let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
19768
19782
  return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
19769
- }, []), BM = (0, import_react.useCallback)((e2, t2) => {
19783
+ }, []), VM = (0, import_react.useCallback)((e2, t2) => {
19770
19784
  let { panelDataArray: n2 } = K.current;
19771
19785
  return computePanelFlexBoxStyle({
19772
19786
  defaultSize: t2,
@@ -19781,10 +19795,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19781
19795
  ]), $ = (0, import_react.useCallback)((e2) => {
19782
19796
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
19783
19797
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
19784
- }, []), VM = (0, import_react.useCallback)((e2) => {
19798
+ }, []), HM = (0, import_react.useCallback)((e2) => {
19785
19799
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
19786
19800
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
19787
- }, []), HM = (0, import_react.useCallback)((e2) => {
19801
+ }, []), UM = (0, import_react.useCallback)((e2) => {
19788
19802
  let { panelDataArray: t2 } = K.current;
19789
19803
  t2.push(e2), t2.sort((e3, t3) => {
19790
19804
  let n2 = e3.order, i2 = t3.order;
@@ -19816,7 +19830,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19816
19830
  e2.layout = [];
19817
19831
  };
19818
19832
  }, []);
19819
- let UM = (0, import_react.useCallback)((e2) => {
19833
+ let WM = (0, import_react.useCallback)((e2) => {
19820
19834
  let t2 = false, n2 = y.current;
19821
19835
  return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
19822
19836
  n3.preventDefault();
@@ -19834,7 +19848,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19834
19848
  }), I2 = !compareLayouts(f2, A2);
19835
19849
  (isPointerEvent(n3) || isMouseEvent(n3)) && z.current != S2 && (z.current = S2, !I2 && S2 !== 0 ? w2 ? reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_HORIZONTAL_MIN : EXCEEDED_HORIZONTAL_MAX) : reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_VERTICAL_MIN : EXCEEDED_VERTICAL_MAX) : reportConstraintsViolation(e2, 0)), I2 && (O(A2), K.current.layout = A2, d2 && d2(A2), callPanelCallbacks(h2, A2, M.current));
19836
19850
  };
19837
- }, []), WM = (0, import_react.useCallback)((e2, t2) => {
19851
+ }, []), GM = (0, import_react.useCallback)((e2, t2) => {
19838
19852
  let { onLayout: n2 } = U.current, { layout: i2, panelDataArray: a2 } = K.current, o2 = a2.map((e3) => e3.constraints), { panelSize: s2, pivotIndices: c2 } = panelDataHelper(a2, e2, i2);
19839
19853
  assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
19840
19854
  let d2 = adjustLayoutByDelta({
@@ -19846,12 +19860,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19846
19860
  trigger: "imperative-api"
19847
19861
  });
19848
19862
  compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
19849
- }, []), GM = (0, import_react.useCallback)((e2, t2) => {
19863
+ }, []), KM = (0, import_react.useCallback)((e2, t2) => {
19850
19864
  let { layout: n2, panelDataArray: i2 } = K.current, { collapsedSize: a2 = 0, collapsible: o2 } = t2, { collapsedSize: s2 = 0, collapsible: c2, maxSize: d2 = 100, minSize: f2 = 0 } = e2.constraints, { panelSize: h2 } = panelDataHelper(i2, e2, n2);
19851
- h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || WM(e2, s2) : h2 < f2 ? WM(e2, f2) : h2 > d2 && WM(e2, d2));
19865
+ h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || GM(e2, s2) : h2 < f2 ? GM(e2, f2) : h2 > d2 && GM(e2, d2));
19852
19866
  }, [
19853
- WM
19854
- ]), KM = (0, import_react.useCallback)((e2, t2) => {
19867
+ GM
19868
+ ]), qM = (0, import_react.useCallback)((e2, t2) => {
19855
19869
  let { direction: n2 } = U.current, { layout: i2 } = K.current;
19856
19870
  if (!y.current) return;
19857
19871
  let a2 = getResizeHandleElement(e2, y.current);
@@ -19863,30 +19877,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19863
19877
  initialCursorPosition: o2,
19864
19878
  initialLayout: i2
19865
19879
  });
19866
- }, []), qM = (0, import_react.useCallback)(() => {
19880
+ }, []), JM = (0, import_react.useCallback)(() => {
19867
19881
  w(null);
19868
- }, []), JM = (0, import_react.useCallback)((e2) => {
19882
+ }, []), YM = (0, import_react.useCallback)((e2) => {
19869
19883
  let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
19870
19884
  n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
19871
19885
  }, [
19872
19886
  A
19873
- ]), YM = (0, import_react.useMemo)(() => ({
19887
+ ]), XM = (0, import_react.useMemo)(() => ({
19874
19888
  collapsePanel: q,
19875
19889
  direction: i,
19876
19890
  dragState: S,
19877
19891
  expandPanel: J,
19878
19892
  getPanelSize: Q,
19879
- getPanelStyle: BM,
19893
+ getPanelStyle: VM,
19880
19894
  groupId: v,
19881
19895
  isPanelCollapsed: $,
19882
- isPanelExpanded: VM,
19883
- reevaluatePanelConstraints: GM,
19884
- registerPanel: HM,
19885
- registerResizeHandle: UM,
19886
- resizePanel: WM,
19887
- startDragging: KM,
19888
- stopDragging: qM,
19889
- unregisterPanel: JM,
19896
+ isPanelExpanded: HM,
19897
+ reevaluatePanelConstraints: KM,
19898
+ registerPanel: UM,
19899
+ registerResizeHandle: WM,
19900
+ resizePanel: GM,
19901
+ startDragging: qM,
19902
+ stopDragging: JM,
19903
+ unregisterPanel: YM,
19890
19904
  panelGroupElement: y.current
19891
19905
  }), [
19892
19906
  q,
@@ -19894,18 +19908,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19894
19908
  i,
19895
19909
  J,
19896
19910
  Q,
19897
- BM,
19911
+ VM,
19898
19912
  v,
19899
19913
  $,
19900
- VM,
19901
- GM,
19902
19914
  HM,
19915
+ KM,
19903
19916
  UM,
19904
19917
  WM,
19905
- KM,
19918
+ GM,
19906
19919
  qM,
19907
- JM
19908
- ]), XM = {
19920
+ JM,
19921
+ YM
19922
+ ]), ZM = {
19909
19923
  display: "flex",
19910
19924
  flexDirection: i === "horizontal" ? "row" : "column",
19911
19925
  height: "100%",
@@ -19913,7 +19927,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19913
19927
  width: "100%"
19914
19928
  };
19915
19929
  return (0, import_react.createElement)(PanelGroupContext.Provider, {
19916
- value: YM
19930
+ value: XM
19917
19931
  }, (0, import_react.createElement)(h, {
19918
19932
  ..._,
19919
19933
  children: t,
@@ -19921,7 +19935,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19921
19935
  id: o,
19922
19936
  ref: y,
19923
19937
  style: {
19924
- ...XM,
19938
+ ...ZM,
19925
19939
  ...f
19926
19940
  },
19927
19941
  [DATA_ATTRIBUTES.group]: "",
@@ -19998,31 +20012,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19998
20012
  });
19999
20013
  let O = (0, import_react.useContext)(PanelGroupContext);
20000
20014
  if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
20001
- let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [BM, $] = (0, import_react.useState)(false), [VM, HM] = (0, import_react.useState)(null), UM = (0, import_react.useRef)({
20015
+ let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [VM, $] = (0, import_react.useState)(false), [HM, UM] = (0, import_react.useState)(null), WM = (0, import_react.useRef)({
20002
20016
  state: J
20003
20017
  });
20004
20018
  useIsomorphicLayoutEffect$1(() => {
20005
- UM.current.state = J;
20019
+ WM.current.state = J;
20006
20020
  }), (0, import_react.useEffect)(() => {
20007
- if (n) HM(null);
20021
+ if (n) UM(null);
20008
20022
  else {
20009
20023
  let e2 = I(q);
20010
- HM(() => e2);
20024
+ UM(() => e2);
20011
20025
  }
20012
20026
  }, [
20013
20027
  n,
20014
20028
  q,
20015
20029
  I
20016
20030
  ]);
20017
- let WM = (i == null ? void 0 : i.coarse) ?? 15, GM = (i == null ? void 0 : i.fine) ?? 5;
20031
+ let GM = (i == null ? void 0 : i.coarse) ?? 15, KM = (i == null ? void 0 : i.fine) ?? 5;
20018
20032
  (0, import_react.useEffect)(() => {
20019
- if (n || VM == null) return;
20033
+ if (n || HM == null) return;
20020
20034
  let e2 = w.current;
20021
20035
  assert(e2, "Element ref not attached");
20022
20036
  let t2 = false;
20023
20037
  return registerResizeHandle(q, e2, A, {
20024
- coarse: WM,
20025
- fine: GM
20038
+ coarse: GM,
20039
+ fine: KM
20026
20040
  }, (e3, n2, i2) => {
20027
20041
  if (!n2) {
20028
20042
  Q("inactive");
@@ -20036,8 +20050,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20036
20050
  break;
20037
20051
  }
20038
20052
  case "move": {
20039
- let { state: e4 } = UM.current;
20040
- t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), VM(i2);
20053
+ let { state: e4 } = WM.current;
20054
+ t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), HM(i2);
20041
20055
  break;
20042
20056
  }
20043
20057
  case "up": {
@@ -20049,22 +20063,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20049
20063
  }
20050
20064
  });
20051
20065
  }, [
20052
- WM,
20066
+ GM,
20053
20067
  A,
20054
20068
  n,
20055
- GM,
20069
+ KM,
20056
20070
  I,
20057
20071
  q,
20058
- VM,
20072
+ HM,
20059
20073
  z,
20060
20074
  U
20061
20075
  ]), useWindowSplitterResizeHandlerBehavior({
20062
20076
  disabled: n,
20063
20077
  handleId: q,
20064
- resizeHandler: VM,
20078
+ resizeHandler: HM,
20065
20079
  panelGroupElement: K
20066
20080
  });
20067
- let KM = {
20081
+ let qM = {
20068
20082
  touchAction: "none",
20069
20083
  userSelect: "none"
20070
20084
  };
@@ -20082,14 +20096,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20082
20096
  ref: w,
20083
20097
  role: "separator",
20084
20098
  style: {
20085
- ...KM,
20099
+ ...qM,
20086
20100
  ..._
20087
20101
  },
20088
20102
  tabIndex: v,
20089
20103
  [DATA_ATTRIBUTES.groupDirection]: A,
20090
20104
  [DATA_ATTRIBUTES.groupId]: M,
20091
20105
  [DATA_ATTRIBUTES.resizeHandle]: "",
20092
- [DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : BM ? "keyboard" : void 0,
20106
+ [DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : VM ? "keyboard" : void 0,
20093
20107
  [DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
20094
20108
  [DATA_ATTRIBUTES.resizeHandleId]: q,
20095
20109
  [DATA_ATTRIBUTES.resizeHandleState]: J
@@ -20256,147 +20270,147 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20256
20270
  Combobox = (e) => {
20257
20271
  let t = (0, import_compiler_runtime$18.c)(96), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q;
20258
20272
  t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: q, defaultValue: c, onValueChange: S, multiple: M, shouldFilter: I, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: z, search: A, onSearchChange: y, emptyState: U, chips: K, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, ...O } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q);
20259
- let J = M === void 0 ? false : M, Q = I === void 0 ? true : I, BM = z === void 0 ? "Search..." : z, $ = U === void 0 ? "Nothing found." : U, VM = K === void 0 ? false : K, HM = s ?? false, UM;
20260
- t[23] !== v || t[24] !== w || t[25] !== HM ? (UM = {
20273
+ let J = M === void 0 ? false : M, Q = I === void 0 ? true : I, VM = z === void 0 ? "Search..." : z, $ = U === void 0 ? "Nothing found." : U, HM = K === void 0 ? false : K, UM = s ?? false, WM;
20274
+ t[23] !== v || t[24] !== w || t[25] !== UM ? (WM = {
20261
20275
  prop: w,
20262
- defaultProp: HM,
20276
+ defaultProp: UM,
20263
20277
  onChange: v
20264
- }, t[23] = v, t[24] = w, t[25] = HM, t[26] = UM) : UM = t[26];
20265
- let [WM, GM] = useControllableState(UM), KM = WM === void 0 ? false : WM, qM;
20266
- t[27] === S ? qM = t[28] : (qM = (e2) => {
20278
+ }, t[23] = v, t[24] = w, t[25] = UM, t[26] = WM) : WM = t[26];
20279
+ let [GM, KM] = useControllableState(WM), qM = GM === void 0 ? false : GM, JM;
20280
+ t[27] === S ? JM = t[28] : (JM = (e2) => {
20267
20281
  S == null ? void 0 : S(e2);
20268
- }, t[27] = S, t[28] = qM);
20269
- let JM;
20270
- t[29] !== c || t[30] !== qM || t[31] !== q ? (JM = {
20282
+ }, t[27] = S, t[28] = JM);
20283
+ let YM;
20284
+ t[29] !== c || t[30] !== JM || t[31] !== q ? (YM = {
20271
20285
  prop: q,
20272
20286
  defaultProp: c,
20273
- onChange: qM
20274
- }, t[29] = c, t[30] = qM, t[31] = q, t[32] = JM) : JM = t[32];
20275
- let [XM, ZM] = useControllableState(JM), QM;
20276
- t[33] === XM ? QM = t[34] : (QM = (e2) => Array.isArray(XM) ? XM.includes(e2) : XM === e2, t[33] = XM, t[34] = QM);
20277
- let $M = QM, eN;
20278
- t[35] !== _ || t[36] !== J || t[37] !== GM || t[38] !== ZM || t[39] !== XM ? (eN = (e2) => {
20287
+ onChange: JM
20288
+ }, t[29] = c, t[30] = JM, t[31] = q, t[32] = YM) : YM = t[32];
20289
+ let [ZM, QM] = useControllableState(YM), $M;
20290
+ t[33] === ZM ? $M = t[34] : ($M = (e2) => Array.isArray(ZM) ? ZM.includes(e2) : ZM === e2, t[33] = ZM, t[34] = $M);
20291
+ let eN = $M, tN;
20292
+ t[35] !== _ || t[36] !== J || t[37] !== KM || t[38] !== QM || t[39] !== ZM ? (tN = (e2) => {
20279
20293
  let t2 = e2;
20280
- if (J) if (Array.isArray(XM)) if (XM.includes(t2)) {
20281
- let n2 = XM.filter((t3) => t3 !== e2);
20294
+ if (J) if (Array.isArray(ZM)) if (ZM.includes(t2)) {
20295
+ let n2 = ZM.filter((t3) => t3 !== e2);
20282
20296
  t2 = n2.length > 0 ? n2 : [];
20283
20297
  } else t2 = [
20284
- ...XM,
20298
+ ...ZM,
20285
20299
  t2
20286
20300
  ];
20287
20301
  else t2 = [
20288
20302
  t2
20289
20303
  ];
20290
- else XM === e2 && (t2 = null);
20291
- ZM(t2), (_ ?? J) || GM(false);
20292
- }, t[35] = _, t[36] = J, t[37] = GM, t[38] = ZM, t[39] = XM, t[40] = eN) : eN = t[40];
20293
- let tN = eN, nN;
20294
- t[41] !== VM || t[42] !== d || t[43] !== J || t[44] !== E || t[45] !== XM ? (nN = () => J && VM && E ? E : XM == null ? E ?? "--" : Array.isArray(XM) ? XM.length === 0 ? E ?? "--" : XM.length === 1 && d !== void 0 ? d(XM[0]) : `${XM.length} selected` : d === void 0 ? E ?? "--" : d(XM), t[41] = VM, t[42] = d, t[43] = J, t[44] = E, t[45] = XM, t[46] = nN) : nN = t[46];
20295
- let rN = nN, iN;
20296
- t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iN = cn("relative"), t[47] = iN) : iN = t[47];
20297
- let aN;
20298
- t[48] === o ? aN = t[49] : (aN = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50", o), t[48] = o, t[49] = aN);
20304
+ else ZM === e2 && (t2 = null);
20305
+ QM(t2), (_ ?? J) || KM(false);
20306
+ }, t[35] = _, t[36] = J, t[37] = KM, t[38] = QM, t[39] = ZM, t[40] = tN) : tN = t[40];
20307
+ let nN = tN, rN;
20308
+ t[41] !== HM || t[42] !== d || t[43] !== J || t[44] !== E || t[45] !== ZM ? (rN = () => J && HM && E ? E : ZM == null ? E ?? "--" : Array.isArray(ZM) ? ZM.length === 0 ? E ?? "--" : ZM.length === 1 && d !== void 0 ? d(ZM[0]) : `${ZM.length} selected` : d === void 0 ? E ?? "--" : d(ZM), t[41] = HM, t[42] = d, t[43] = J, t[44] = E, t[45] = ZM, t[46] = rN) : rN = t[46];
20309
+ let iN = rN, aN;
20310
+ t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (aN = cn("relative"), t[47] = aN) : aN = t[47];
20299
20311
  let oN;
20300
- t[50] === rN ? oN = t[51] : (oN = rN(), t[50] = rN, t[51] = oN);
20312
+ t[48] === o ? oN = t[49] : (oN = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid disabled:cursor-not-allowed disabled:opacity-50", o), t[48] = o, t[49] = oN);
20301
20313
  let sN;
20302
- t[52] === oN ? sN = t[53] : (sN = (0, import_jsx_runtime.jsx)("span", {
20314
+ t[50] === iN ? sN = t[51] : (sN = iN(), t[50] = iN, t[51] = sN);
20315
+ let cN;
20316
+ t[52] === sN ? cN = t[53] : (cN = (0, import_jsx_runtime.jsx)("span", {
20303
20317
  className: "truncate flex-1 min-w-0",
20304
- children: oN
20305
- }), t[52] = oN, t[53] = sN);
20306
- let lN;
20307
- t[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (lN = (0, import_jsx_runtime.jsx)(ChevronDown, {
20318
+ children: sN
20319
+ }), t[52] = sN, t[53] = cN);
20320
+ let uN;
20321
+ t[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (uN = (0, import_jsx_runtime.jsx)(ChevronDown, {
20308
20322
  className: "ml-3 w-4 h-4 opacity-50 shrink-0"
20309
- }), t[54] = lN) : lN = t[54];
20310
- let dN;
20311
- t[55] !== h || t[56] !== KM || t[57] !== aN || t[58] !== sN ? (dN = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
20323
+ }), t[54] = uN) : uN = t[54];
20324
+ let fN;
20325
+ t[55] !== h || t[56] !== qM || t[57] !== oN || t[58] !== cN ? (fN = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
20312
20326
  asChild: true,
20313
20327
  children: (0, import_jsx_runtime.jsxs)("div", {
20314
20328
  id: h,
20315
- className: aN,
20316
- "aria-expanded": KM,
20329
+ className: oN,
20330
+ "aria-expanded": qM,
20317
20331
  children: [
20318
- sN,
20319
- lN
20332
+ cN,
20333
+ uN
20320
20334
  ]
20321
20335
  })
20322
- }), t[55] = h, t[56] = KM, t[57] = aN, t[58] = sN, t[59] = dN) : dN = t[59];
20323
- let fN;
20324
- t[60] !== BM || t[61] !== y || t[62] !== A ? (fN = (0, import_jsx_runtime.jsx)(CommandInput, {
20325
- placeholder: BM,
20336
+ }), t[55] = h, t[56] = qM, t[57] = oN, t[58] = cN, t[59] = fN) : fN = t[59];
20337
+ let pN;
20338
+ t[60] !== VM || t[61] !== y || t[62] !== A ? (pN = (0, import_jsx_runtime.jsx)(CommandInput, {
20339
+ placeholder: VM,
20326
20340
  rootClassName: "px-1 h-8",
20327
20341
  autoFocus: true,
20328
20342
  value: A,
20329
20343
  onValueChange: y
20330
- }), t[60] = BM, t[61] = y, t[62] = A, t[63] = fN) : fN = t[63];
20331
- let pN;
20332
- t[64] === $ ? pN = t[65] : (pN = (0, import_jsx_runtime.jsx)(CommandEmpty, {
20333
- children: $
20334
- }), t[64] = $, t[65] = pN);
20344
+ }), t[60] = VM, t[61] = y, t[62] = A, t[63] = pN) : pN = t[63];
20335
20345
  let mN;
20336
- t[66] !== tN || t[67] !== $M ? (mN = {
20337
- isSelected: $M,
20338
- onSelect: tN
20339
- }, t[66] = tN, t[67] = $M, t[68] = mN) : mN = t[68];
20346
+ t[64] === $ ? mN = t[65] : (mN = (0, import_jsx_runtime.jsx)(CommandEmpty, {
20347
+ children: $
20348
+ }), t[64] = $, t[65] = mN);
20340
20349
  let hN;
20341
- t[69] !== n || t[70] !== mN ? (hN = (0, import_jsx_runtime.jsx)(ComboboxContext, {
20342
- value: mN,
20343
- children: n
20344
- }), t[69] = n, t[70] = mN, t[71] = hN) : hN = t[71];
20350
+ t[66] !== nN || t[67] !== eN ? (hN = {
20351
+ isSelected: eN,
20352
+ onSelect: nN
20353
+ }, t[66] = nN, t[67] = eN, t[68] = hN) : hN = t[68];
20345
20354
  let gN;
20346
- t[72] !== pN || t[73] !== hN ? (gN = (0, import_jsx_runtime.jsxs)(CommandList, {
20355
+ t[69] !== n || t[70] !== hN ? (gN = (0, import_jsx_runtime.jsx)(ComboboxContext, {
20356
+ value: hN,
20357
+ children: n
20358
+ }), t[69] = n, t[70] = hN, t[71] = gN) : gN = t[71];
20359
+ let _N;
20360
+ t[72] !== mN || t[73] !== gN ? (_N = (0, import_jsx_runtime.jsxs)(CommandList, {
20347
20361
  className: "max-h-60 py-.5",
20348
20362
  children: [
20349
- pN,
20350
- hN
20363
+ mN,
20364
+ gN
20351
20365
  ]
20352
- }), t[72] = pN, t[73] = hN, t[74] = gN) : gN = t[74];
20353
- let _N;
20354
- t[75] !== f || t[76] !== Q || t[77] !== fN || t[78] !== gN ? (_N = (0, import_jsx_runtime.jsx)(PopoverContent, {
20366
+ }), t[72] = mN, t[73] = gN, t[74] = _N) : _N = t[74];
20367
+ let vN;
20368
+ t[75] !== f || t[76] !== Q || t[77] !== pN || t[78] !== _N ? (vN = (0, import_jsx_runtime.jsx)(PopoverContent, {
20355
20369
  className: "w-full min-w-(--radix-popover-trigger-width) p-0",
20356
20370
  align: "start",
20357
20371
  children: (0, import_jsx_runtime.jsxs)(Command, {
20358
20372
  filter: f,
20359
20373
  shouldFilter: Q,
20360
20374
  children: [
20361
- fN,
20362
- gN
20375
+ pN,
20376
+ _N
20363
20377
  ]
20364
20378
  })
20365
- }), t[75] = f, t[76] = Q, t[77] = fN, t[78] = gN, t[79] = _N) : _N = t[79];
20366
- let vN;
20367
- t[80] !== KM || t[81] !== GM || t[82] !== dN || t[83] !== _N ? (vN = (0, import_jsx_runtime.jsxs)(Popover, {
20368
- open: KM,
20369
- onOpenChange: GM,
20379
+ }), t[75] = f, t[76] = Q, t[77] = pN, t[78] = _N, t[79] = vN) : vN = t[79];
20380
+ let yN;
20381
+ t[80] !== qM || t[81] !== KM || t[82] !== fN || t[83] !== vN ? (yN = (0, import_jsx_runtime.jsxs)(Popover, {
20382
+ open: qM,
20383
+ onOpenChange: KM,
20370
20384
  children: [
20371
- dN,
20372
- _N
20385
+ fN,
20386
+ vN
20373
20387
  ]
20374
- }), t[80] = KM, t[81] = GM, t[82] = dN, t[83] = _N, t[84] = vN) : vN = t[84];
20375
- let yN;
20376
- t[85] !== VM || t[86] !== i || t[87] !== d || t[88] !== tN || t[89] !== J || t[90] !== XM ? (yN = J && VM && (0, import_jsx_runtime.jsx)("div", {
20388
+ }), t[80] = qM, t[81] = KM, t[82] = fN, t[83] = vN, t[84] = yN) : yN = t[84];
20389
+ let bN;
20390
+ t[85] !== HM || t[86] !== i || t[87] !== d || t[88] !== nN || t[89] !== J || t[90] !== ZM ? (bN = J && HM && (0, import_jsx_runtime.jsx)("div", {
20377
20391
  className: cn("flex flex-col gap-1 items-start", i),
20378
- children: Array.isArray(XM) && XM.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
20392
+ children: Array.isArray(ZM) && ZM.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
20379
20393
  variant: "secondary",
20380
20394
  children: [
20381
20395
  (d == null ? void 0 : d(e2)) ?? String(e2),
20382
20396
  (0, import_jsx_runtime.jsx)(CircleX, {
20383
20397
  onClick: () => {
20384
- tN(e2);
20398
+ nN(e2);
20385
20399
  },
20386
20400
  className: "w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer"
20387
20401
  })
20388
20402
  ]
20389
20403
  }, String(e2)))
20390
- }), t[85] = VM, t[86] = i, t[87] = d, t[88] = tN, t[89] = J, t[90] = XM, t[91] = yN) : yN = t[91];
20391
- let bN;
20392
- return t[92] !== O || t[93] !== vN || t[94] !== yN ? (bN = (0, import_jsx_runtime.jsxs)("div", {
20393
- className: iN,
20404
+ }), t[85] = HM, t[86] = i, t[87] = d, t[88] = nN, t[89] = J, t[90] = ZM, t[91] = bN) : bN = t[91];
20405
+ let xN;
20406
+ return t[92] !== O || t[93] !== yN || t[94] !== bN ? (xN = (0, import_jsx_runtime.jsxs)("div", {
20407
+ className: aN,
20394
20408
  ...O,
20395
20409
  children: [
20396
- vN,
20397
- yN
20410
+ yN,
20411
+ bN
20398
20412
  ]
20399
- }), t[92] = O, t[93] = vN, t[94] = yN, t[95] = bN) : bN = t[95], bN;
20413
+ }), t[92] = O, t[93] = yN, t[94] = bN, t[95] = xN) : xN = t[95], xN;
20400
20414
  };
20401
20415
  ComboboxItem = import_react.forwardRef((e, t) => {
20402
20416
  let n = (0, import_compiler_runtime$18.c)(17), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
@@ -22469,10 +22483,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
22469
22483
  clearSelection: i.clearSelection
22470
22484
  }, t[22] = i.clearSelection, t[23] = S, t[24] = A, t[25] = E, t[26] = v, t[27] = s, t[28] = d, t[29] = M) : M = t[29], M;
22471
22485
  };
22472
- var INTERACTIVE_SELECTOR = 'input, button, select, textarea, a, label, [role="checkbox"], [role="button"], [contenteditable="true"], marimo-ui-element';
22486
+ var INTERACTIVE_SELECTOR = 'input, button, select, textarea, a, label, [role="checkbox"], [role="button"], [contenteditable="true"], marimo-ui-element', CONTENT_WRAPPER_MARIMO_TAGS = /* @__PURE__ */ new Set([
22487
+ "marimo-lazy",
22488
+ "marimo-routes"
22489
+ ]);
22473
22490
  function isInteractiveTarget(e) {
22474
- let t = e.target;
22475
- return t === e.currentTarget || !(t instanceof Element) ? false : t.closest(INTERACTIVE_SELECTOR) !== null;
22491
+ var _a2;
22492
+ let t = typeof ((_a2 = e.nativeEvent) == null ? void 0 : _a2.composedPath) == "function" ? e.nativeEvent.composedPath() : [
22493
+ e.target
22494
+ ];
22495
+ for (let n of t) {
22496
+ if (n === e.currentTarget) break;
22497
+ if (!(!(n instanceof Element) || !n.matches(INTERACTIVE_SELECTOR))) {
22498
+ if (n.localName === "marimo-ui-element") {
22499
+ let e2 = n.firstElementChild;
22500
+ if (e2 && CONTENT_WRAPPER_MARIMO_TAGS.has(e2.localName)) continue;
22501
+ }
22502
+ return true;
22503
+ }
22504
+ }
22505
+ return false;
22476
22506
  }
22477
22507
  var import_compiler_runtime$11 = require_compiler_runtime(), focusedCellAtom = atom((e) => e(cellSelectionStateAtom).focusedCell);
22478
22508
  function useScrollIntoViewOnFocus(e) {
@@ -23407,7 +23437,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23407
23437
  filename: i2.filename
23408
23438
  };
23409
23439
  }, t[5] = e, t[6] = v);
23410
- let y = v, E, O, A, M, I, z, U, K, q, J, Q, BM, $;
23440
+ let y = v, E, O, A, M, I, z, U, K, q, J, Q, VM, $;
23411
23441
  if (t[7] !== _ || t[8] !== n || t[9] !== i || t[10] !== y) {
23412
23442
  let e2 = async (t2) => {
23413
23443
  let n2 = await y(t2, () => {
@@ -23457,7 +23487,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23457
23487
  }), t[26] = s2, t[27] = c2, t[28] = K) : K = t[28], E = DropdownMenuContent, q = "bottom", J = "print:hidden", t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
23458
23488
  className: "text-xs text-muted-foreground",
23459
23489
  children: "Download"
23460
- }), t[29] = Q) : Q = t[29], BM = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
23490
+ }), t[29] = Q) : Q = t[29], VM = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
23461
23491
  onSelect: () => {
23462
23492
  e2(t2.format);
23463
23493
  },
@@ -23510,30 +23540,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23510
23540
  ]
23511
23541
  })
23512
23542
  ]
23513
- }, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = y, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] = q, t[20] = J, t[21] = Q, t[22] = BM, t[23] = $;
23514
- } else E = t[11], O = t[12], A = t[13], M = t[14], I = t[15], z = t[16], U = t[17], K = t[18], q = t[19], J = t[20], Q = t[21], BM = t[22], $ = t[23];
23515
- let VM;
23516
- t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !== BM || t[39] !== $ ? (VM = (0, import_jsx_runtime.jsxs)(E, {
23543
+ }, e3.label)), t[7] = _, t[8] = n, t[9] = i, t[10] = y, t[11] = E, t[12] = O, t[13] = A, t[14] = M, t[15] = I, t[16] = z, t[17] = U, t[18] = K, t[19] = q, t[20] = J, t[21] = Q, t[22] = VM, t[23] = $;
23544
+ } else E = t[11], O = t[12], A = t[13], M = t[14], I = t[15], z = t[16], U = t[17], K = t[18], q = t[19], J = t[20], Q = t[21], VM = t[22], $ = t[23];
23545
+ let HM;
23546
+ t[32] !== E || t[33] !== A || t[34] !== M || t[35] !== q || t[36] !== J || t[37] !== Q || t[38] !== VM || t[39] !== $ ? (HM = (0, import_jsx_runtime.jsxs)(E, {
23517
23547
  side: q,
23518
23548
  className: J,
23519
23549
  children: [
23520
23550
  Q,
23521
- BM,
23551
+ VM,
23522
23552
  $,
23523
23553
  A,
23524
23554
  M
23525
23555
  ]
23526
- }), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] = BM, t[39] = $, t[40] = VM) : VM = t[40];
23527
- let HM;
23528
- return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== VM ? (HM = (0, import_jsx_runtime.jsxs)(O, {
23556
+ }), t[32] = E, t[33] = A, t[34] = M, t[35] = q, t[36] = J, t[37] = Q, t[38] = VM, t[39] = $, t[40] = HM) : HM = t[40];
23557
+ let UM;
23558
+ return t[41] !== O || t[42] !== I || t[43] !== z || t[44] !== U || t[45] !== K || t[46] !== HM ? (UM = (0, import_jsx_runtime.jsxs)(O, {
23529
23559
  modal: I,
23530
23560
  open: z,
23531
23561
  onOpenChange: U,
23532
23562
  children: [
23533
23563
  K,
23534
- VM
23564
+ HM
23535
23565
  ]
23536
- }), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = VM, t[47] = HM) : HM = t[47], HM;
23566
+ }), t[41] = O, t[42] = I, t[43] = z, t[44] = U, t[45] = K, t[46] = HM, t[47] = UM) : UM = t[47], UM;
23537
23567
  };
23538
23568
  function fetchJson(e) {
23539
23569
  return fetchText(e).then(jsonParseWithSpecialChar);
@@ -23624,22 +23654,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23624
23654
  ]
23625
23655
  }) : null;
23626
23656
  };
23627
- DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange: q, getRowIds: J, enableSearch: Q = false, searchQuery: BM, onSearchQueryChange: $, showFilters: VM = false, filters: HM, onFiltersChange: UM, calculateTopKRows: WM, reloading: GM, freezeColumnsLeft: KM, freezeColumnsRight: qM, toggleDisplayHeader: JM, showChartBuilder: YM, isChartBuilderOpen: XM, showPageSizeSelector: ZM, showTableExplorer: QM, togglePanel: $M, isPanelOpen: eN, isAnyPanelOpen: tN, viewedRowIdx: nN, onViewedRowChange: rN }) => {
23628
- let [iN, aN] = import_react.useState(false), { locale: oN } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: sN, setColumnPinning: cN } = useColumnPinning(KM, qM);
23657
+ DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, manualSorting: h = false, sorting: _, setSorting: v, rowSelection: y, cellSelection: S, cellStyling: w, hoverTemplate: E, cellHoverTexts: O, paginationState: A, setPaginationState: M, downloadAs: I, manualPagination: z = false, pagination: U = false, onRowSelectionChange: K, onCellSelectionChange: q, getRowIds: J, enableSearch: Q = false, searchQuery: VM, onSearchQueryChange: $, showFilters: HM = false, filters: UM, onFiltersChange: WM, calculateTopKRows: GM, reloading: KM, freezeColumnsLeft: qM, freezeColumnsRight: JM, toggleDisplayHeader: YM, showChartBuilder: XM, isChartBuilderOpen: ZM, showPageSizeSelector: QM, showTableExplorer: $M, togglePanel: eN, isPanelOpen: tN, isAnyPanelOpen: nN, viewedRowIdx: rN, onViewedRowChange: iN }) => {
23658
+ let [aN, oN] = import_react.useState(false), { locale: sN } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: cN, setColumnPinning: lN } = useColumnPinning(qM, JM);
23629
23659
  import_react.useEffect(() => {
23630
23660
  let e2;
23631
- return GM ? e2 = setTimeout(() => {
23632
- aN(true);
23633
- }, 300) : aN(false), () => {
23661
+ return KM ? e2 = setTimeout(() => {
23662
+ oN(true);
23663
+ }, 300) : oN(false), () => {
23634
23664
  e2 && clearTimeout(e2);
23635
23665
  };
23636
23666
  }, [
23637
- GM
23667
+ KM
23638
23668
  ]);
23639
- function lN(e2, t2) {
23669
+ function uN(e2, t2) {
23640
23670
  return A ? t2 + (z ? A.pageIndex * A.pageSize : 0) : t2;
23641
23671
  }
23642
- let uN = useReactTable({
23672
+ let dN = useReactTable({
23643
23673
  _features: [
23644
23674
  ColumnPinning,
23645
23675
  ColumnWrappingFeature,
@@ -23663,11 +23693,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23663
23693
  getRowId: (e2, t2) => {
23664
23694
  let n2 = getStableRowId(e2);
23665
23695
  if (n2) return n2;
23666
- let i2 = lN(e2, t2);
23696
+ let i2 = uN(e2, t2);
23667
23697
  return String(i2);
23668
23698
  }
23669
23699
  } : {},
23670
- locale: oN,
23700
+ locale: sN,
23671
23701
  manualPagination: z,
23672
23702
  getPaginationRowModel: getPaginationRowModel(),
23673
23703
  ...v ? {
@@ -23677,21 +23707,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23677
23707
  enableMultiSort: true,
23678
23708
  getSortedRowModel: getSortedRowModel(),
23679
23709
  manualFiltering: true,
23680
- enableColumnFilters: VM,
23710
+ enableColumnFilters: HM,
23681
23711
  getFilteredRowModel: getFilteredRowModel(),
23682
- onColumnFiltersChange: UM,
23712
+ onColumnFiltersChange: WM,
23683
23713
  onRowSelectionChange: K,
23684
23714
  onCellSelectionChange: q,
23685
23715
  enableCellSelection: c === "single-cell" || c === "multi-cell",
23686
23716
  enableMultiCellSelection: c === "multi-cell",
23687
- onColumnPinningChange: cN,
23717
+ onColumnPinningChange: lN,
23688
23718
  enableFocusRow: true,
23689
- onFocusRowChange: rN,
23719
+ onFocusRowChange: iN,
23690
23720
  state: {
23691
23721
  ..._ ? {
23692
23722
  sorting: _
23693
23723
  } : {},
23694
- columnFilters: HM,
23724
+ columnFilters: UM,
23695
23725
  ...A ? {
23696
23726
  pagination: A
23697
23727
  } : U && !A ? {} : {
@@ -23703,21 +23733,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23703
23733
  rowSelection: y ?? {},
23704
23734
  cellSelection: S ?? [],
23705
23735
  cellStyling: w,
23706
- columnPinning: sN,
23736
+ columnPinning: cN,
23707
23737
  cellHoverTemplate: E,
23708
23738
  cellHoverTexts: O ?? {}
23709
23739
  }
23710
- }), dN = (eN == null ? void 0 : eN(PANEL_TYPES.ROW_VIEWER)) ?? false, fN = !U && o.length > 100, pN = useScrollContainerHeight({
23740
+ }), fN = (tN == null ? void 0 : tN(PANEL_TYPES.ROW_VIEWER)) ?? false, pN = !U && o.length > 100, mN = useScrollContainerHeight({
23711
23741
  maxHeight: n,
23712
- virtualize: fN
23742
+ virtualize: pN
23713
23743
  });
23714
23744
  return (0, import_jsx_runtime.jsxs)("div", {
23715
23745
  className: cn(e, "flex flex-col space-y-1"),
23716
23746
  children: [
23717
23747
  (0, import_jsx_runtime.jsx)(FilterPills, {
23718
- filters: HM,
23719
- table: uN,
23720
- calculateTopKRows: WM
23748
+ filters: UM,
23749
+ table: dN,
23750
+ calculateTopKRows: GM
23721
23751
  }),
23722
23752
  (0, import_jsx_runtime.jsx)(CellSelectionProvider, {
23723
23753
  children: (0, import_jsx_runtime.jsxs)("div", {
@@ -23726,32 +23756,32 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23726
23756
  children: [
23727
23757
  (0, import_jsx_runtime.jsx)(TableTopBar, {
23728
23758
  enableSearch: Q,
23729
- searchQuery: BM,
23759
+ searchQuery: VM,
23730
23760
  onSearchQueryChange: $,
23731
- reloading: GM,
23732
- showChartBuilder: YM,
23733
- isChartBuilderOpen: XM,
23734
- toggleDisplayHeader: JM,
23735
- showTableExplorer: QM,
23736
- togglePanel: $M,
23737
- isAnyPanelOpen: tN,
23761
+ reloading: KM,
23762
+ showChartBuilder: XM,
23763
+ isChartBuilderOpen: ZM,
23764
+ toggleDisplayHeader: YM,
23765
+ showTableExplorer: $M,
23766
+ togglePanel: eN,
23767
+ isAnyPanelOpen: nN,
23738
23768
  downloadAs: I
23739
23769
  }),
23740
23770
  (0, import_jsx_runtime.jsxs)(Table, {
23741
23771
  className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
23742
- ref: pN,
23772
+ ref: mN,
23743
23773
  children: [
23744
- iN && (0, import_jsx_runtime.jsx)("thead", {
23774
+ aN && (0, import_jsx_runtime.jsx)("thead", {
23745
23775
  className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
23746
23776
  }),
23747
- renderTableHeader(uN, fN || !!n),
23777
+ renderTableHeader(dN, pN || !!n),
23748
23778
  (0, import_jsx_runtime.jsx)(DataTableBody, {
23749
- table: uN,
23779
+ table: dN,
23750
23780
  columns: i,
23751
- rowViewerPanelOpen: dN,
23752
- getRowIndex: lN,
23753
- viewedRowIdx: nN,
23754
- virtualize: fN
23781
+ rowViewerPanelOpen: fN,
23782
+ getRowIndex: uN,
23783
+ viewedRowIdx: rN,
23784
+ virtualize: pN
23755
23785
  })
23756
23786
  ]
23757
23787
  }),
@@ -23762,10 +23792,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23762
23792
  pagination: U,
23763
23793
  selection: c,
23764
23794
  onRowSelectionChange: K,
23765
- table: uN,
23795
+ table: dN,
23766
23796
  getRowIds: J,
23767
- showPageSizeSelector: ZM,
23768
- tableLoading: GM
23797
+ showPageSizeSelector: QM,
23798
+ tableLoading: KM
23769
23799
  })
23770
23800
  ]
23771
23801
  })
@@ -23855,67 +23885,67 @@ ${_}`,
23855
23885
  });
23856
23886
  }, [q, J] = _.split(":", 2), Q = d ? KEY : "", $;
23857
23887
  t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = () => h(_temp$2), t[10] = $) : $ = t[10];
23858
- let VM = d ? "rotate-180" : "rotate-0", HM;
23859
- t[11] === VM ? HM = t[12] : (HM = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", VM), t[11] = VM, t[12] = HM);
23860
- let UM;
23861
- t[13] === HM ? UM = t[14] : (UM = (0, import_jsx_runtime.jsx)(ChevronDown, {
23862
- className: HM
23863
- }), t[13] = HM, t[14] = UM);
23864
- let WM = q || "Error", GM;
23865
- t[15] === WM ? GM = t[16] : (GM = (0, import_jsx_runtime.jsxs)("span", {
23888
+ let HM = d ? "rotate-180" : "rotate-0", UM;
23889
+ t[11] === HM ? UM = t[12] : (UM = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", HM), t[11] = HM, t[12] = UM);
23890
+ let WM;
23891
+ t[13] === UM ? WM = t[14] : (WM = (0, import_jsx_runtime.jsx)(ChevronDown, {
23892
+ className: UM
23893
+ }), t[13] = UM, t[14] = WM);
23894
+ let GM = q || "Error", KM;
23895
+ t[15] === GM ? KM = t[16] : (KM = (0, import_jsx_runtime.jsxs)("span", {
23866
23896
  className: "text-destructive",
23867
23897
  children: [
23868
- WM,
23898
+ GM,
23869
23899
  ":"
23870
23900
  ]
23871
- }), t[15] = WM, t[16] = GM);
23872
- let KM;
23873
- t[17] !== J || t[18] !== GM ? (KM = (0, import_jsx_runtime.jsxs)("div", {
23901
+ }), t[15] = GM, t[16] = KM);
23902
+ let qM;
23903
+ t[17] !== J || t[18] !== KM ? (qM = (0, import_jsx_runtime.jsxs)("div", {
23874
23904
  className: "text-sm inline font-mono",
23875
23905
  children: [
23876
- GM,
23906
+ KM,
23877
23907
  " ",
23878
23908
  J
23879
23909
  ]
23880
- }), t[17] = J, t[18] = GM, t[19] = KM) : KM = t[19];
23881
- let JM;
23882
- t[20] !== KM || t[21] !== UM ? (JM = (0, import_jsx_runtime.jsxs)("div", {
23910
+ }), t[17] = J, t[18] = KM, t[19] = qM) : qM = t[19];
23911
+ let YM;
23912
+ t[20] !== qM || t[21] !== WM ? (YM = (0, import_jsx_runtime.jsxs)("div", {
23883
23913
  className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
23884
23914
  onClick: $,
23885
23915
  children: [
23886
- UM,
23887
- KM
23916
+ WM,
23917
+ qM
23888
23918
  ]
23889
- }), t[20] = KM, t[21] = UM, t[22] = JM) : JM = t[22];
23890
- let YM;
23891
- t[23] === c ? YM = t[24] : (YM = (0, import_jsx_runtime.jsx)(AccordionContent, {
23919
+ }), t[20] = qM, t[21] = WM, t[22] = YM) : YM = t[22];
23920
+ let XM;
23921
+ t[23] === c ? XM = t[24] : (XM = (0, import_jsx_runtime.jsx)(AccordionContent, {
23892
23922
  className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
23893
23923
  children: c
23894
- }), t[23] = c, t[24] = YM);
23895
- let ZM;
23896
- t[25] !== JM || t[26] !== YM ? (ZM = (0, import_jsx_runtime.jsxs)(AccordionItem, {
23924
+ }), t[23] = c, t[24] = XM);
23925
+ let QM;
23926
+ t[25] !== YM || t[26] !== XM ? (QM = (0, import_jsx_runtime.jsxs)(AccordionItem, {
23897
23927
  value: KEY,
23898
23928
  className: "border-none",
23899
23929
  children: [
23900
- JM,
23901
- YM
23930
+ YM,
23931
+ XM
23902
23932
  ]
23903
- }), t[25] = JM, t[26] = YM, t[27] = ZM) : ZM = t[27];
23904
- let QM;
23905
- t[28] !== ZM || t[29] !== Q ? (QM = (0, import_jsx_runtime.jsx)(Accordion, {
23933
+ }), t[25] = YM, t[26] = XM, t[27] = QM) : QM = t[27];
23934
+ let $M;
23935
+ t[28] !== QM || t[29] !== Q ? ($M = (0, import_jsx_runtime.jsx)(Accordion, {
23906
23936
  type: "single",
23907
23937
  collapsible: true,
23908
23938
  value: Q,
23909
- children: ZM
23910
- }), t[28] = ZM, t[29] = Q, t[30] = QM) : QM = t[30];
23911
- let $M;
23912
- t[31] !== K || t[32] !== I ? ($M = I && (0, import_jsx_runtime.jsx)(AIFixButton, {
23939
+ children: QM
23940
+ }), t[28] = QM, t[29] = Q, t[30] = $M) : $M = t[30];
23941
+ let eN;
23942
+ t[31] !== K || t[32] !== I ? (eN = I && (0, import_jsx_runtime.jsx)(AIFixButton, {
23913
23943
  tooltip: "Fix with AI",
23914
23944
  openPrompt: () => K(false),
23915
23945
  applyAutofix: () => K(true)
23916
- }), t[31] = K, t[32] = I, t[33] = $M) : $M = t[33];
23917
- let tN;
23918
- t[34] !== A || t[35] !== E ? (tN = A && (0, import_jsx_runtime.jsx)(Tooltip, {
23946
+ }), t[31] = K, t[32] = I, t[33] = eN) : eN = t[33];
23947
+ let nN;
23948
+ t[34] !== A || t[35] !== E ? (nN = A && (0, import_jsx_runtime.jsx)(Tooltip, {
23919
23949
  content: "Attach pdb to the exception point.",
23920
23950
  children: (0, import_jsx_runtime.jsxs)(Button, {
23921
23951
  size: "xs",
@@ -23932,9 +23962,9 @@ ${_}`,
23932
23962
  "Launch debugger"
23933
23963
  ]
23934
23964
  })
23935
- }), t[34] = A, t[35] = E, t[36] = tN) : tN = t[36];
23936
- let nN;
23937
- t[37] !== _ || t[38] !== i ? (nN = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
23965
+ }), t[34] = A, t[35] = E, t[36] = nN) : nN = t[36];
23966
+ let rN;
23967
+ t[37] !== _ || t[38] !== i ? (rN = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
23938
23968
  children: [
23939
23969
  (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
23940
23970
  asChild: true,
@@ -24002,24 +24032,24 @@ ${_}`,
24002
24032
  ]
24003
24033
  })
24004
24034
  ]
24005
- }), t[37] = _, t[38] = i, t[39] = nN) : nN = t[39];
24006
- let rN;
24007
- t[40] !== $M || t[41] !== tN || t[42] !== nN ? (rN = (0, import_jsx_runtime.jsxs)("div", {
24035
+ }), t[37] = _, t[38] = i, t[39] = rN) : rN = t[39];
24036
+ let iN;
24037
+ t[40] !== eN || t[41] !== nN || t[42] !== rN ? (iN = (0, import_jsx_runtime.jsxs)("div", {
24008
24038
  className: "flex gap-2",
24009
24039
  children: [
24010
- $M,
24011
- tN,
24012
- nN
24040
+ eN,
24041
+ nN,
24042
+ rN
24013
24043
  ]
24014
- }), t[40] = $M, t[41] = tN, t[42] = nN, t[43] = rN) : rN = t[43];
24015
- let iN;
24016
- return t[44] !== QM || t[45] !== rN ? (iN = (0, import_jsx_runtime.jsxs)("div", {
24044
+ }), t[40] = eN, t[41] = nN, t[42] = rN, t[43] = iN) : iN = t[43];
24045
+ let aN;
24046
+ return t[44] !== $M || t[45] !== iN ? (aN = (0, import_jsx_runtime.jsxs)("div", {
24017
24047
  className: "flex flex-col gap-2 min-w-full w-fit",
24018
24048
  children: [
24019
- QM,
24020
- rN
24049
+ $M,
24050
+ iN
24021
24051
  ]
24022
- }), t[44] = QM, t[45] = rN, t[46] = iN) : iN = t[46], iN;
24052
+ }), t[44] = $M, t[45] = iN, t[46] = aN) : aN = t[46], aN;
24023
24053
  };
24024
24054
  function lastLine(e) {
24025
24055
  var _a2, _b;