@marimo-team/islands 0.24.1-dev32 → 0.24.1-dev35

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.
@@ -2062,21 +2062,21 @@ Defaulting to \`null\`.`;
2062
2062
  function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
2063
2063
  let { block: i = "nearest", inline: a = "nearest" } = n;
2064
2064
  if (e === t) return;
2065
- let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, mJ = c.top - E, hJ = c.bottom + O, gJ = c.left - A, _J = c.right + M, vJ = e === _ ? 0 : Q + $, yJ = e === _ ? 0 : q + J, bJ = e.offsetWidth - e.clientWidth - vJ, xJ = e.offsetHeight - e.clientHeight - yJ, SJ = v + q + I, CJ = y - J - z - xJ, wJ = S + Q + U, TJ = w - $ - K;
2066
- h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? wJ += bJ : TJ -= bJ;
2067
- let EJ = mJ < SJ || hJ > CJ, DJ = gJ < wJ || _J > TJ;
2068
- if (EJ && i === "start") o += mJ - SJ;
2069
- else if (EJ && i === "center") o += (mJ + hJ) / 2 - (SJ + CJ) / 2;
2070
- else if (EJ && i === "end") o += hJ - CJ;
2071
- else if (EJ && i === "nearest") {
2072
- let e2 = mJ - SJ, t2 = hJ - CJ;
2065
+ let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, hJ = c.top - E, gJ = c.bottom + O, _J = c.left - A, vJ = c.right + M, yJ = e === _ ? 0 : Q + $, bJ = e === _ ? 0 : q + J, xJ = e.offsetWidth - e.clientWidth - yJ, SJ = e.offsetHeight - e.clientHeight - bJ, CJ = v + q + I, wJ = y - J - z - SJ, TJ = S + Q + U, EJ = w - $ - K;
2066
+ h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? TJ += xJ : EJ -= xJ;
2067
+ let DJ = hJ < CJ || gJ > wJ, OJ = _J < TJ || vJ > EJ;
2068
+ if (DJ && i === "start") o += hJ - CJ;
2069
+ else if (DJ && i === "center") o += (hJ + gJ) / 2 - (CJ + wJ) / 2;
2070
+ else if (DJ && i === "end") o += gJ - wJ;
2071
+ else if (DJ && i === "nearest") {
2072
+ let e2 = hJ - CJ, t2 = gJ - wJ;
2073
2073
  o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
2074
2074
  }
2075
- if (DJ && a === "start") s += gJ - wJ;
2076
- else if (DJ && a === "center") s += (gJ + _J) / 2 - (wJ + TJ) / 2;
2077
- else if (DJ && a === "end") s += _J - TJ;
2078
- else if (DJ && a === "nearest") {
2079
- let e2 = gJ - wJ, t2 = _J - TJ;
2075
+ if (OJ && a === "start") s += _J - TJ;
2076
+ else if (OJ && a === "center") s += (_J + vJ) / 2 - (TJ + EJ) / 2;
2077
+ else if (OJ && a === "end") s += vJ - EJ;
2078
+ else if (OJ && a === "nearest") {
2079
+ let e2 = _J - TJ, t2 = vJ - EJ;
2080
2080
  s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
2081
2081
  }
2082
2082
  e.scrollTo({
@@ -5186,23 +5186,23 @@ Defaulting to \`null\`.`;
5186
5186
  }
5187
5187
  let $ = "bottom";
5188
5188
  A.axis === "top" ? A.placement === "top" ? $ = "top" : A.placement === "bottom" && ($ = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? $ = "bottom" : A.crossPlacement === "bottom" && ($ = "top"));
5189
- let mJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5190
- q[I] += mJ;
5191
- let hJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5192
- y && y < hJ && (hJ = y), n.height = Math.min(n.height, hJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), mJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += mJ;
5193
- let gJ = {}, _J = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], vJ = _J + 0.5 * t[z], yJ = S / 2 + w, bJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), xJ = n[z] - bJ - S / 2 - w;
5194
- gJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(vJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), yJ, xJ), { placement: U, crossPlacement: K } = A, S ? _J = gJ[I] : K === "right" ? _J += t[z] : K === "center" && (_J += t[z] / 2);
5195
- let SJ = U === "left" || U === "top" ? n[M] : 0, CJ = {
5196
- x: U === "top" || U === "bottom" ? _J : SJ,
5197
- y: U === "left" || U === "right" ? _J : SJ
5189
+ let hJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5190
+ q[I] += hJ;
5191
+ let gJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5192
+ y && y < gJ && (gJ = y), n.height = Math.min(n.height, gJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), hJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += hJ;
5193
+ let _J = {}, vJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], yJ = vJ + 0.5 * t[z], bJ = S / 2 + w, xJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), SJ = n[z] - xJ - S / 2 - w;
5194
+ _J[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(yJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), bJ, SJ), { placement: U, crossPlacement: K } = A, S ? vJ = _J[I] : K === "right" ? vJ += t[z] : K === "center" && (vJ += t[z] / 2);
5195
+ let CJ = U === "left" || U === "top" ? n[M] : 0, wJ = {
5196
+ x: U === "top" || U === "bottom" ? vJ : CJ,
5197
+ y: U === "left" || U === "right" ? vJ : CJ
5198
5198
  };
5199
5199
  return {
5200
5200
  position: q,
5201
- maxHeight: hJ,
5202
- arrowOffsetLeft: gJ.left,
5203
- arrowOffsetTop: gJ.top,
5201
+ maxHeight: gJ,
5202
+ arrowOffsetLeft: _J.left,
5203
+ arrowOffsetTop: _J.top,
5204
5204
  placement: U,
5205
- triggerAnchorPoint: CJ
5205
+ triggerAnchorPoint: wJ
5206
5206
  };
5207
5207
  }
5208
5208
  function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
@@ -7057,7 +7057,7 @@ Defaulting to \`null\`.`;
7057
7057
  n,
7058
7058
  h
7059
7059
  ]);
7060
- let mJ = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
7060
+ let hJ = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
7061
7061
  role: "textbox",
7062
7062
  "aria-valuemax": null,
7063
7063
  "aria-valuemin": null,
@@ -7067,8 +7067,8 @@ Defaulting to \`null\`.`;
7067
7067
  e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
7068
7068
  t.segments
7069
7069
  ]) && !t.isInvalid && (f = void 0);
7070
- let hJ = $bdb11010cef70236$export$f680877a34711e37(), gJ = !t.isDisabled && !t.isReadOnly && e.isEditable, _J = e.type === "literal" ? "" : s.of(e.type), vJ = $313b98861ee5dd6c$export$d6875122194c7b44({
7071
- "aria-label": `${_J}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
7070
+ let gJ = $bdb11010cef70236$export$f680877a34711e37(), _J = !t.isDisabled && !t.isReadOnly && e.isEditable, vJ = e.type === "literal" ? "" : s.of(e.type), yJ = $313b98861ee5dd6c$export$d6875122194c7b44({
7071
+ "aria-label": `${vJ}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
7072
7072
  "aria-labelledby": d
7073
7073
  });
7074
7074
  if (e.type === "literal") return {
@@ -7076,32 +7076,32 @@ Defaulting to \`null\`.`;
7076
7076
  "aria-hidden": true
7077
7077
  }
7078
7078
  };
7079
- let yJ = {
7079
+ let bJ = {
7080
7080
  caretColor: "transparent"
7081
7081
  };
7082
7082
  if (o === "rtl") {
7083
- yJ.unicodeBidi = "embed";
7083
+ bJ.unicodeBidi = "embed";
7084
7084
  let t2 = v[e.type];
7085
- (t2 === "numeric" || t2 === "2-digit") && (yJ.direction = "ltr");
7085
+ (t2 === "numeric" || t2 === "2-digit") && (bJ.direction = "ltr");
7086
7086
  }
7087
7087
  return {
7088
- segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, vJ, {
7089
- id: hJ,
7090
- ...mJ,
7088
+ segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, yJ, {
7089
+ id: gJ,
7090
+ ...hJ,
7091
7091
  "aria-invalid": t.isInvalid ? "true" : void 0,
7092
7092
  "aria-describedby": f,
7093
7093
  "aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
7094
7094
  "data-placeholder": e.isPlaceholder || void 0,
7095
- contentEditable: gJ,
7096
- suppressContentEditableWarning: gJ,
7097
- spellCheck: gJ ? "false" : void 0,
7098
- autoCorrect: gJ ? "off" : void 0,
7099
- enterKeyHint: gJ ? "next" : void 0,
7100
- inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !gJ ? void 0 : "numeric",
7095
+ contentEditable: _J,
7096
+ suppressContentEditableWarning: _J,
7097
+ spellCheck: _J ? "false" : void 0,
7098
+ autoCorrect: _J ? "off" : void 0,
7099
+ enterKeyHint: _J ? "next" : void 0,
7100
+ inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !_J ? void 0 : "numeric",
7101
7101
  tabIndex: t.isDisabled ? void 0 : 0,
7102
7102
  onKeyDown: A,
7103
7103
  onFocus: Q,
7104
- style: yJ,
7104
+ style: bJ,
7105
7105
  onPointerDown(e2) {
7106
7106
  e2.stopPropagation();
7107
7107
  },
@@ -10344,12 +10344,12 @@ Defaulting to \`null\`.`;
10344
10344
  e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (y == null ? void 0 : y.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), y && "hour" in y ? S(y.set(e2)) : S(e2);
10345
10345
  }
10346
10346
  }
10347
- let mJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10347
+ let hJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
10348
10348
  w,
10349
10349
  f,
10350
10350
  s,
10351
10351
  c
10352
- ]), hJ = e.isInvalid || e.validationState === "invalid" || mJ, gJ = hJ ? "invalid" : null, _J = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10352
+ ]), gJ = e.isInvalid || e.validationState === "invalid" || hJ, _J = gJ ? "invalid" : null, vJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
10353
10353
  h,
10354
10354
  o
10355
10355
  ]);
@@ -10366,8 +10366,8 @@ Defaulting to \`null\`.`;
10366
10366
  maxValue: c,
10367
10367
  focusedDate: O,
10368
10368
  timeZone: E,
10369
- validationState: gJ,
10370
- isValueInvalid: hJ,
10369
+ validationState: _J,
10370
+ isValueInvalid: gJ,
10371
10371
  setFocusedDate(e2) {
10372
10372
  Q(e2);
10373
10373
  },
@@ -10392,12 +10392,12 @@ Defaulting to \`null\`.`;
10392
10392
  }));
10393
10393
  },
10394
10394
  focusNextPage() {
10395
- let e2 = M.add(_J);
10396
- A($f62d864046160412$export$4f5203c0d889109e(O.add(_J), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, _J, i, s, c), _J, i));
10395
+ let e2 = M.add(vJ);
10396
+ A($f62d864046160412$export$4f5203c0d889109e(O.add(vJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, vJ, i, s, c), vJ, i));
10397
10397
  },
10398
10398
  focusPreviousPage() {
10399
- let e2 = M.subtract(_J);
10400
- A($f62d864046160412$export$4f5203c0d889109e(O.subtract(_J), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, _J, i, s, c), _J, i));
10399
+ let e2 = M.subtract(vJ);
10400
+ A($f62d864046160412$export$4f5203c0d889109e(O.subtract(vJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, vJ, i, s, c), vJ, i));
10401
10401
  },
10402
10402
  focusSectionStart() {
10403
10403
  o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
@@ -10534,13 +10534,13 @@ Defaulting to \`null\`.`;
10534
10534
  end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
10535
10535
  }), q(null);
10536
10536
  }
10537
- }, [$, mJ] = (0, import_react.useState)(false), { isDateUnavailable: hJ } = e, gJ = (0, import_react.useMemo)(() => !h || v ? false : hJ && (hJ(h.start) || hJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10538
- hJ,
10537
+ }, [$, hJ] = (0, import_react.useState)(false), { isDateUnavailable: gJ } = e, _J = (0, import_react.useMemo)(() => !h || v ? false : gJ && (gJ(h.start) || gJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10538
+ gJ,
10539
10539
  h,
10540
10540
  v,
10541
10541
  c,
10542
10542
  d
10543
- ]), _J = e.isInvalid || e.validationState === "invalid" || gJ, vJ = _J ? "invalid" : null;
10543
+ ]), vJ = e.isInvalid || e.validationState === "invalid" || _J, yJ = vJ ? "invalid" : null;
10544
10544
  return {
10545
10545
  ...I,
10546
10546
  value: h,
@@ -10548,8 +10548,8 @@ Defaulting to \`null\`.`;
10548
10548
  anchorDate: v,
10549
10549
  setAnchorDate: q,
10550
10550
  highlightedRange: J,
10551
- validationState: vJ,
10552
- isValueInvalid: _J,
10551
+ validationState: yJ,
10552
+ isValueInvalid: vJ,
10553
10553
  selectFocusedDate() {
10554
10554
  Q(I.focusedDate);
10555
10555
  },
@@ -10565,7 +10565,7 @@ Defaulting to \`null\`.`;
10565
10565
  return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
10566
10566
  },
10567
10567
  isDragging: $,
10568
- setDragging: mJ
10568
+ setDragging: hJ
10569
10569
  };
10570
10570
  }
10571
10571
  function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
@@ -11752,7 +11752,7 @@ Defaulting to \`null\`.`;
11752
11752
  _,
11753
11753
  S,
11754
11754
  v
11755
- ]), mJ = (0, import_react.useMemo)(() => {
11755
+ ]), hJ = (0, import_react.useMemo)(() => {
11756
11756
  let t2 = w === "h11" || w === "h12", n2 = [
11757
11757
  "era",
11758
11758
  "year",
@@ -11770,15 +11770,15 @@ Defaulting to \`null\`.`;
11770
11770
  e.maxGranularity,
11771
11771
  _,
11772
11772
  w
11773
- ]), [hJ, gJ] = (0, import_react.useState)(M), [_J, vJ] = (0, import_react.useState)(S), [yJ, bJ] = (0, import_react.useState)(w);
11774
- (M !== hJ || w !== yJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, _J)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), gJ(M), vJ(S), bJ(w), z(I));
11775
- let xJ = (t2) => {
11776
- if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(mJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
11773
+ ]), [gJ, _J] = (0, import_react.useState)(M), [vJ, yJ] = (0, import_react.useState)(S), [bJ, xJ] = (0, import_react.useState)(w);
11774
+ (M !== gJ || w !== bJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, vJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), _J(M), yJ(S), xJ(w), z(I));
11775
+ let SJ = (t2) => {
11776
+ if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(hJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
11777
11777
  else if (!(t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef)) t2 = $11d87f3f76e88657$export$b4a036af3fc0b032(t2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t2);
11778
11778
  else {
11779
- if (t2.isComplete(mJ)) {
11779
+ if (t2.isComplete(hJ)) {
11780
11780
  let e2 = t2.toValue(M ?? $);
11781
- if (t2.validate(e2, mJ)) {
11781
+ if (t2.validate(e2, hJ)) {
11782
11782
  let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11783
11783
  if (!E || t3.compare(E) !== 0) {
11784
11784
  z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
@@ -11788,83 +11788,83 @@ Defaulting to \`null\`.`;
11788
11788
  }
11789
11789
  z(t2);
11790
11790
  }
11791
- }, SJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11791
+ }, CJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11792
11792
  I,
11793
11793
  y,
11794
11794
  M,
11795
11795
  $
11796
- ]), CJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(SJ, I, J, Q, S, t, _), [
11797
- SJ,
11796
+ ]), wJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(CJ, I, J, Q, S, t, _), [
11797
+ CJ,
11798
11798
  J,
11799
11799
  Q,
11800
11800
  I,
11801
11801
  S,
11802
11802
  t,
11803
11803
  _
11804
- ]), wJ = (e2, t2) => {
11805
- xJ(I.cycle(e2, t2, $, mJ));
11806
- }, TJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11804
+ ]), TJ = (e2, t2) => {
11805
+ SJ(I.cycle(e2, t2, $, hJ));
11806
+ }, EJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11807
11807
  E,
11808
11808
  c,
11809
11809
  d,
11810
11810
  f,
11811
11811
  K
11812
- ]), EJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11812
+ ]), DJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11813
11813
  ...e,
11814
11814
  value: E,
11815
- builtinValidation: TJ
11816
- }), DJ = EJ.displayValidation.isInvalid, OJ = e.validationState || (DJ ? "invalid" : null);
11815
+ builtinValidation: EJ
11816
+ }), OJ = DJ.displayValidation.isInvalid, kJ = e.validationState || (OJ ? "invalid" : null);
11817
11817
  return {
11818
- ...EJ,
11818
+ ...DJ,
11819
11819
  value: M,
11820
11820
  defaultValue: e.defaultValue ?? A,
11821
- dateValue: SJ,
11821
+ dateValue: CJ,
11822
11822
  calendar: S,
11823
- setValue: xJ,
11824
- segments: CJ,
11823
+ setValue: SJ,
11824
+ segments: wJ,
11825
11825
  dateFormatter: J,
11826
- validationState: OJ,
11827
- isInvalid: DJ,
11826
+ validationState: kJ,
11827
+ isInvalid: OJ,
11828
11828
  granularity: _,
11829
11829
  maxGranularity: e.maxGranularity ?? "year",
11830
11830
  isDisabled: a,
11831
11831
  isReadOnly: o,
11832
11832
  isRequired: s,
11833
11833
  increment(e2) {
11834
- wJ(e2, 1);
11834
+ TJ(e2, 1);
11835
11835
  },
11836
11836
  decrement(e2) {
11837
- wJ(e2, -1);
11837
+ TJ(e2, -1);
11838
11838
  },
11839
11839
  incrementPage(e2) {
11840
- wJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11840
+ TJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11841
11841
  },
11842
11842
  decrementPage(e2) {
11843
- wJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11843
+ TJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11844
11844
  },
11845
11845
  incrementToMax(e2) {
11846
11846
  let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
11847
- xJ(I.set(e2, t2, $));
11847
+ SJ(I.set(e2, t2, $));
11848
11848
  },
11849
11849
  decrementToMin(e2) {
11850
11850
  let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
11851
- xJ(I.set(e2, t2, $));
11851
+ SJ(I.set(e2, t2, $));
11852
11852
  },
11853
11853
  setSegment(e2, t2) {
11854
- xJ(I.set(e2, t2, $));
11854
+ SJ(I.set(e2, t2, $));
11855
11855
  },
11856
11856
  confirmPlaceholder() {
11857
- if (!(e.isDisabled || e.isReadOnly) && I.isComplete(mJ)) {
11857
+ if (!(e.isDisabled || e.isReadOnly) && I.isComplete(hJ)) {
11858
11858
  let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
11859
11859
  (!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
11860
11860
  }
11861
11861
  },
11862
11862
  clearSegment(e2) {
11863
11863
  let t2 = I;
11864
- e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), xJ(t2);
11864
+ e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), SJ(t2);
11865
11865
  },
11866
11866
  formatValue(e2) {
11867
- return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(SJ) : "";
11867
+ return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(CJ) : "";
11868
11868
  },
11869
11869
  getDateFormatter(e2, t2) {
11870
11870
  return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
@@ -11984,7 +11984,7 @@ Defaulting to \`null\`.`;
11984
11984
  e.endName
11985
11985
  ]),
11986
11986
  builtinValidation: J
11987
- }), $ = Q.displayValidation.isInvalid, mJ = e.validationState || ($ ? "invalid" : null);
11987
+ }), $ = Q.displayValidation.isInvalid, hJ = e.validationState || ($ ? "invalid" : null);
11988
11988
  return {
11989
11989
  ...Q,
11990
11990
  value: c,
@@ -12030,7 +12030,7 @@ Defaulting to \`null\`.`;
12030
12030
  end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
12031
12031
  }), t.setOpen(n2);
12032
12032
  },
12033
- validationState: mJ,
12033
+ validationState: hJ,
12034
12034
  isInvalid: $,
12035
12035
  formatValue(t2, n2) {
12036
12036
  if (!c || !c.start || !c.end) return null;
@@ -15924,33 +15924,33 @@ try {
15924
15924
  }, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
15925
15925
  function y(e2) {
15926
15926
  var _a2, _b, _c, _d;
15927
- let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), $ = !!Q && !I, mJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
15927
+ let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), $ = !!Q && !I, hJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
15928
15928
  h2
15929
- ]), hJ = mJ[t], gJ = hJ || mJ, { colorSchemes: _J = _, components: vJ = v, cssVarPrefix: yJ } = gJ, bJ = Object.keys(_J).filter((e3) => !!_J[e3]).join(","), xJ = import_react.useMemo(() => bJ.split(","), [
15930
- bJ
15931
- ]), SJ = typeof s == "string" ? s : s.light, CJ = typeof s == "string" ? s : s.dark, { mode: wJ, setMode: TJ, systemMode: EJ, lightColorScheme: DJ, darkColorScheme: OJ, colorScheme: kJ, setColorScheme: AJ } = useCurrentColorScheme({
15932
- supportedColorSchemes: xJ,
15933
- defaultLightColorScheme: SJ,
15934
- defaultDarkColorScheme: CJ,
15929
+ ]), gJ = hJ[t], _J = gJ || hJ, { colorSchemes: vJ = _, components: yJ = v, cssVarPrefix: bJ } = _J, xJ = Object.keys(vJ).filter((e3) => !!vJ[e3]).join(","), SJ = import_react.useMemo(() => xJ.split(","), [
15930
+ xJ
15931
+ ]), CJ = typeof s == "string" ? s : s.light, wJ = typeof s == "string" ? s : s.dark, { mode: TJ, setMode: EJ, systemMode: DJ, lightColorScheme: OJ, darkColorScheme: kJ, colorScheme: AJ, setColorScheme: jJ } = useCurrentColorScheme({
15932
+ supportedColorSchemes: SJ,
15933
+ defaultLightColorScheme: CJ,
15934
+ defaultDarkColorScheme: wJ,
15935
15935
  modeStorageKey: y2,
15936
15936
  colorSchemeStorageKey: S2,
15937
- defaultMode: _J[SJ] && _J[CJ] ? U : ((_b = (_a2 = _J[gJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = gJ.palette) == null ? void 0 : _c.mode),
15937
+ defaultMode: vJ[CJ] && vJ[wJ] ? U : ((_b = (_a2 = vJ[_J.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = _J.palette) == null ? void 0 : _c.mode),
15938
15938
  storageManager: E,
15939
15939
  storageWindow: O,
15940
15940
  noSsr: K
15941
- }), jJ = wJ, MJ = kJ;
15942
- $ && (jJ = Q.mode, MJ = Q.colorScheme);
15943
- let NJ = import_react.useMemo(() => {
15941
+ }), MJ = TJ, NJ = AJ;
15942
+ $ && (MJ = Q.mode, NJ = Q.colorScheme);
15943
+ let PJ = import_react.useMemo(() => {
15944
15944
  var _a3;
15945
- let e3 = MJ || gJ.defaultColorScheme, t2 = ((_a3 = gJ.generateThemeVars) == null ? void 0 : _a3.call(gJ)) || gJ.vars, n2 = {
15946
- ...gJ,
15947
- components: vJ,
15948
- colorSchemes: _J,
15949
- cssVarPrefix: yJ,
15945
+ let e3 = NJ || _J.defaultColorScheme, t2 = ((_a3 = _J.generateThemeVars) == null ? void 0 : _a3.call(_J)) || _J.vars, n2 = {
15946
+ ..._J,
15947
+ components: yJ,
15948
+ colorSchemes: vJ,
15949
+ cssVarPrefix: bJ,
15950
15950
  vars: t2
15951
15951
  };
15952
15952
  if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
15953
- let t3 = _J[e3];
15953
+ let t3 = vJ[e3];
15954
15954
  t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
15955
15955
  t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
15956
15956
  ...n2[e4],
@@ -15960,31 +15960,31 @@ try {
15960
15960
  }
15961
15961
  return c ? c(n2) : n2;
15962
15962
  }, [
15963
- gJ,
15964
- MJ,
15965
- vJ,
15966
15963
  _J,
15967
- yJ
15968
- ]), PJ = gJ.colorSchemeSelector;
15964
+ NJ,
15965
+ yJ,
15966
+ vJ,
15967
+ bJ
15968
+ ]), FJ = _J.colorSchemeSelector;
15969
15969
  useEnhancedEffect_default(() => {
15970
- if (MJ && M && PJ && PJ !== "media") {
15971
- let e3 = PJ, t2 = PJ;
15972
- 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(...xJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", MJ));
15970
+ if (NJ && M && FJ && FJ !== "media") {
15971
+ let e3 = FJ, t2 = FJ;
15972
+ 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(...SJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", NJ));
15973
15973
  else {
15974
- let e4 = t2.replace("%s", MJ).match(/\[([^\]]+)\]/);
15974
+ let e4 = t2.replace("%s", NJ).match(/\[([^\]]+)\]/);
15975
15975
  if (e4) {
15976
15976
  let [t3, n2] = e4[1].split("=");
15977
- n2 || xJ.forEach((e5) => {
15978
- M.removeAttribute(t3.replace(MJ, e5));
15977
+ n2 || SJ.forEach((e5) => {
15978
+ M.removeAttribute(t3.replace(NJ, e5));
15979
15979
  }), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
15980
- } else M.setAttribute(t2, MJ);
15980
+ } else M.setAttribute(t2, NJ);
15981
15981
  }
15982
15982
  }
15983
15983
  }, [
15984
- MJ,
15985
- PJ,
15984
+ NJ,
15985
+ FJ,
15986
15986
  M,
15987
- xJ
15987
+ SJ
15988
15988
  ]), import_react.useEffect(() => {
15989
15989
  let e3;
15990
15990
  if (w2 && q.current && A) {
@@ -15997,48 +15997,48 @@ try {
15997
15997
  clearTimeout(e3);
15998
15998
  };
15999
15999
  }, [
16000
- MJ,
16000
+ NJ,
16001
16001
  w2,
16002
16002
  A
16003
16003
  ]), import_react.useEffect(() => (q.current = true, () => {
16004
16004
  q.current = false;
16005
16005
  }), []);
16006
- let FJ = import_react.useMemo(() => ({
16007
- allColorSchemes: xJ,
16008
- colorScheme: MJ,
16009
- darkColorScheme: OJ,
16010
- lightColorScheme: DJ,
16011
- mode: jJ,
16012
- setColorScheme: AJ,
16013
- setMode: TJ,
16014
- systemMode: EJ
16006
+ let IJ = import_react.useMemo(() => ({
16007
+ allColorSchemes: SJ,
16008
+ colorScheme: NJ,
16009
+ darkColorScheme: kJ,
16010
+ lightColorScheme: OJ,
16011
+ mode: MJ,
16012
+ setColorScheme: jJ,
16013
+ setMode: EJ,
16014
+ systemMode: DJ
16015
16015
  }), [
16016
- xJ,
16017
- MJ,
16016
+ SJ,
16017
+ NJ,
16018
+ kJ,
16018
16019
  OJ,
16019
- DJ,
16020
+ MJ,
16020
16021
  jJ,
16021
- AJ,
16022
- TJ,
16023
16022
  EJ,
16024
- NJ.colorSchemeSelector
16025
- ]), IJ = true;
16026
- (z || gJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === yJ) && (IJ = false);
16027
- let LJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
16023
+ DJ,
16024
+ PJ.colorSchemeSelector
16025
+ ]), LJ = true;
16026
+ (z || _J.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === bJ) && (LJ = false);
16027
+ let RJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
16028
16028
  children: [
16029
16029
  (0, import_jsx_runtime.jsx)(ThemeProvider_default, {
16030
- themeId: hJ ? t : void 0,
16031
- theme: NJ,
16030
+ themeId: gJ ? t : void 0,
16031
+ theme: PJ,
16032
16032
  children: d2
16033
16033
  }),
16034
- IJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
16035
- styles: ((_d = NJ.generateStyleSheets) == null ? void 0 : _d.call(NJ)) || []
16034
+ LJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
16035
+ styles: ((_d = PJ.generateStyleSheets) == null ? void 0 : _d.call(PJ)) || []
16036
16036
  })
16037
16037
  ]
16038
16038
  });
16039
- return $ ? LJ : (0, import_jsx_runtime.jsx)(f.Provider, {
16040
- value: FJ,
16041
- children: LJ
16039
+ return $ ? RJ : (0, import_jsx_runtime.jsx)(f.Provider, {
16040
+ value: IJ,
16041
+ children: RJ
16042
16042
  });
16043
16043
  }
16044
16044
  let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
@@ -17538,10 +17538,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17538
17538
  let n = useDefaultProps({
17539
17539
  props: e,
17540
17540
  name: "MuiInputBase"
17541
- }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: $, onFocus: mJ, onKeyDown: hJ, onKeyUp: gJ, placeholder: _J, readOnly: vJ, renderSuffix: yJ, rows: bJ, size: xJ, slotProps: SJ = {}, slots: CJ = {}, startAdornment: wJ, type: TJ = "text", value: EJ, ...DJ } = n, OJ = A.value == null ? EJ : A.value, { current: kJ } = import_react.useRef(OJ != null), AJ = import_react.useRef(), jJ = import_react.useCallback((e2) => {
17542
- }, []), MJ = useForkRef_default(AJ, M, A.ref, jJ), [NJ, PJ] = import_react.useState(false), FJ = useFormControl(), IJ = formControlState({
17541
+ }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: $, onFocus: hJ, onKeyDown: gJ, onKeyUp: _J, placeholder: vJ, readOnly: yJ, renderSuffix: bJ, rows: xJ, size: SJ, slotProps: CJ = {}, slots: wJ = {}, startAdornment: TJ, type: EJ = "text", value: DJ, ...OJ } = n, kJ = A.value == null ? DJ : A.value, { current: AJ } = import_react.useRef(kJ != null), jJ = import_react.useRef(), MJ = import_react.useCallback((e2) => {
17542
+ }, []), NJ = useForkRef_default(jJ, M, A.ref, MJ), [PJ, FJ] = import_react.useState(false), IJ = useFormControl(), LJ = formControlState({
17543
17543
  props: n,
17544
- muiFormControl: FJ,
17544
+ muiFormControl: IJ,
17545
17545
  states: [
17546
17546
  "color",
17547
17547
  "disabled",
@@ -17552,145 +17552,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17552
17552
  "filled"
17553
17553
  ]
17554
17554
  });
17555
- IJ.focused = FJ ? FJ.focused : NJ, import_react.useEffect(() => {
17556
- !FJ && _ && NJ && (PJ(false), J && J());
17555
+ LJ.focused = IJ ? IJ.focused : PJ, import_react.useEffect(() => {
17556
+ !IJ && _ && PJ && (FJ(false), J && J());
17557
17557
  }, [
17558
- FJ,
17558
+ IJ,
17559
17559
  _,
17560
- NJ,
17560
+ PJ,
17561
17561
  J
17562
17562
  ]);
17563
- let LJ = FJ && FJ.onFilled, RJ = FJ && FJ.onEmpty, zJ = import_react.useCallback((e2) => {
17564
- isFilled(e2) ? LJ && LJ() : RJ && RJ();
17563
+ let RJ = IJ && IJ.onFilled, zJ = IJ && IJ.onEmpty, BJ = import_react.useCallback((e2) => {
17564
+ isFilled(e2) ? RJ && RJ() : zJ && zJ();
17565
17565
  }, [
17566
- LJ,
17567
- RJ
17566
+ RJ,
17567
+ zJ
17568
17568
  ]);
17569
17569
  useEnhancedEffect_default$1(() => {
17570
- kJ && zJ({
17571
- value: OJ
17570
+ AJ && BJ({
17571
+ value: kJ
17572
17572
  });
17573
17573
  }, [
17574
- OJ,
17575
- zJ,
17576
- kJ
17574
+ kJ,
17575
+ BJ,
17576
+ AJ
17577
17577
  ]);
17578
- let BJ = (e2) => {
17579
- mJ && mJ(e2), A.onFocus && A.onFocus(e2), FJ && FJ.onFocus ? FJ.onFocus(e2) : PJ(true);
17580
- }, VJ = (e2) => {
17581
- J && J(e2), A.onBlur && A.onBlur(e2), FJ && FJ.onBlur ? FJ.onBlur(e2) : PJ(false);
17582
- }, HJ = (e2, ...t2) => {
17583
- if (!kJ) {
17584
- let t3 = e2.target || AJ.current;
17578
+ let VJ = (e2) => {
17579
+ hJ && hJ(e2), A.onFocus && A.onFocus(e2), IJ && IJ.onFocus ? IJ.onFocus(e2) : FJ(true);
17580
+ }, HJ = (e2) => {
17581
+ J && J(e2), A.onBlur && A.onBlur(e2), IJ && IJ.onBlur ? IJ.onBlur(e2) : FJ(false);
17582
+ }, UJ = (e2, ...t2) => {
17583
+ if (!AJ) {
17584
+ let t3 = e2.target || jJ.current;
17585
17585
  if (t3 == null) throw Error(formatMuiErrorMessage(1));
17586
- zJ({
17586
+ BJ({
17587
17587
  value: t3.value
17588
17588
  });
17589
17589
  }
17590
17590
  A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
17591
17591
  };
17592
17592
  import_react.useEffect(() => {
17593
- zJ(AJ.current);
17593
+ BJ(jJ.current);
17594
17594
  }, []);
17595
- let UJ = (e2) => {
17596
- AJ.current && e2.currentTarget === e2.target && AJ.current.focus(), $ && $(e2);
17597
- }, WJ = O, GJ = A;
17598
- K && WJ === "input" && (GJ = bJ ? {
17595
+ let WJ = (e2) => {
17596
+ jJ.current && e2.currentTarget === e2.target && jJ.current.focus(), $ && $(e2);
17597
+ }, GJ = O, KJ = A;
17598
+ K && GJ === "input" && (KJ = xJ ? {
17599
17599
  type: void 0,
17600
- minRows: bJ,
17601
- maxRows: bJ,
17602
- ...GJ
17600
+ minRows: xJ,
17601
+ maxRows: xJ,
17602
+ ...KJ
17603
17603
  } : {
17604
17604
  type: void 0,
17605
17605
  maxRows: z,
17606
17606
  minRows: U,
17607
- ...GJ
17608
- }, WJ = TextareaAutosize_default);
17609
- let KJ = (e2) => {
17610
- zJ(e2.animationName === "mui-auto-fill-cancel" ? AJ.current : {
17607
+ ...KJ
17608
+ }, GJ = TextareaAutosize_default);
17609
+ let qJ = (e2) => {
17610
+ BJ(e2.animationName === "mui-auto-fill-cancel" ? jJ.current : {
17611
17611
  value: "x"
17612
17612
  });
17613
17613
  };
17614
17614
  import_react.useEffect(() => {
17615
- FJ && FJ.setAdornedStart(!!wJ);
17615
+ IJ && IJ.setAdornedStart(!!TJ);
17616
17616
  }, [
17617
- FJ,
17618
- wJ
17617
+ IJ,
17618
+ TJ
17619
17619
  ]);
17620
- let qJ = {
17620
+ let JJ = {
17621
17621
  ...n,
17622
- color: IJ.color || "primary",
17623
- disabled: IJ.disabled,
17622
+ color: LJ.color || "primary",
17623
+ disabled: LJ.disabled,
17624
17624
  endAdornment: y,
17625
- error: IJ.error,
17626
- focused: IJ.focused,
17627
- formControl: FJ,
17625
+ error: LJ.error,
17626
+ focused: LJ.focused,
17627
+ formControl: IJ,
17628
17628
  fullWidth: w,
17629
- hiddenLabel: IJ.hiddenLabel,
17629
+ hiddenLabel: LJ.hiddenLabel,
17630
17630
  multiline: K,
17631
- size: IJ.size,
17632
- startAdornment: wJ,
17633
- type: TJ
17634
- }, JJ = useUtilityClasses(qJ), YJ = CJ.root || d.Root || InputBaseRoot, XJ = SJ.root || f.root || {}, ZJ = CJ.input || d.Input || InputBaseInput;
17635
- return GJ = {
17636
- ...GJ,
17637
- ...SJ.input ?? f.input
17631
+ size: LJ.size,
17632
+ startAdornment: TJ,
17633
+ type: EJ
17634
+ }, YJ = useUtilityClasses(JJ), XJ = wJ.root || d.Root || InputBaseRoot, ZJ = CJ.root || f.root || {}, QJ = wJ.input || d.Input || InputBaseInput;
17635
+ return KJ = {
17636
+ ...KJ,
17637
+ ...CJ.input ?? f.input
17638
17638
  }, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
17639
17639
  children: [
17640
17640
  !v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
17641
- (0, import_jsx_runtime.jsxs)(YJ, {
17642
- ...XJ,
17641
+ (0, import_jsx_runtime.jsxs)(XJ, {
17642
+ ...ZJ,
17643
17643
  ref: t,
17644
- onClick: UJ,
17645
- ...DJ,
17646
- ...!isHostComponent_default(YJ) && {
17644
+ onClick: WJ,
17645
+ ...OJ,
17646
+ ...!isHostComponent_default(XJ) && {
17647
17647
  ownerState: {
17648
- ...qJ,
17649
- ...XJ.ownerState
17648
+ ...JJ,
17649
+ ...ZJ.ownerState
17650
17650
  }
17651
17651
  },
17652
- className: clsx_default(JJ.root, XJ.className, s, vJ && "MuiInputBase-readOnly"),
17652
+ className: clsx_default(YJ.root, ZJ.className, s, yJ && "MuiInputBase-readOnly"),
17653
17653
  children: [
17654
- wJ,
17654
+ TJ,
17655
17655
  (0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
17656
17656
  value: null,
17657
- children: (0, import_jsx_runtime.jsx)(ZJ, {
17658
- "aria-invalid": IJ.error,
17657
+ children: (0, import_jsx_runtime.jsx)(QJ, {
17658
+ "aria-invalid": LJ.error,
17659
17659
  "aria-describedby": i,
17660
17660
  autoComplete: a,
17661
17661
  autoFocus: o,
17662
17662
  defaultValue: h,
17663
- disabled: IJ.disabled,
17663
+ disabled: LJ.disabled,
17664
17664
  id: E,
17665
- onAnimationStart: KJ,
17665
+ onAnimationStart: qJ,
17666
17666
  name: q,
17667
- placeholder: _J,
17668
- readOnly: vJ,
17669
- required: IJ.required,
17670
- rows: bJ,
17671
- value: OJ,
17672
- onKeyDown: hJ,
17673
- onKeyUp: gJ,
17674
- type: TJ,
17675
- ...GJ,
17676
- ...!isHostComponent_default(ZJ) && {
17677
- as: WJ,
17667
+ placeholder: vJ,
17668
+ readOnly: yJ,
17669
+ required: LJ.required,
17670
+ rows: xJ,
17671
+ value: kJ,
17672
+ onKeyDown: gJ,
17673
+ onKeyUp: _J,
17674
+ type: EJ,
17675
+ ...KJ,
17676
+ ...!isHostComponent_default(QJ) && {
17677
+ as: GJ,
17678
17678
  ownerState: {
17679
- ...qJ,
17680
- ...GJ.ownerState
17679
+ ...JJ,
17680
+ ...KJ.ownerState
17681
17681
  }
17682
17682
  },
17683
- ref: MJ,
17684
- className: clsx_default(JJ.input, GJ.className, vJ && "MuiInputBase-readOnly"),
17685
- onBlur: VJ,
17686
- onChange: HJ,
17687
- onFocus: BJ
17683
+ ref: NJ,
17684
+ className: clsx_default(YJ.input, KJ.className, yJ && "MuiInputBase-readOnly"),
17685
+ onBlur: HJ,
17686
+ onChange: UJ,
17687
+ onFocus: VJ
17688
17688
  })
17689
17689
  }),
17690
17690
  y,
17691
- yJ ? yJ({
17692
- ...IJ,
17693
- startAdornment: wJ
17691
+ bJ ? bJ({
17692
+ ...LJ,
17693
+ startAdornment: TJ
17694
17694
  }) : null
17695
17695
  ]
17696
17696
  })
@@ -18766,30 +18766,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18766
18766
  M,
18767
18767
  i,
18768
18768
  a
18769
- ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), mJ = useTextColor(), hJ = useJsonViewerStore((e2) => e2.colorspace.base0C), gJ = useJsonViewerStore((e2) => e2.colorspace.base0A), _J = useJsonViewerStore((e2) => e2.displayComma), vJ = useJsonViewerStore((e2) => e2.quotesOnKeys), yJ = useJsonViewerStore((e2) => e2.rootName), bJ = U === t, xJ = Number.isInteger(Number(A)), SJ = useJsonViewerStore((e2) => e2.enableAdd), CJ = useJsonViewerStore((e2) => e2.onAdd), wJ = (0, import_react.useMemo)(() => !CJ || a !== void 0 || SJ === false || v === false ? false : typeof SJ == "function" ? !!SJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18770
- CJ,
18769
+ ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), hJ = useTextColor(), gJ = useJsonViewerStore((e2) => e2.colorspace.base0C), _J = useJsonViewerStore((e2) => e2.colorspace.base0A), vJ = useJsonViewerStore((e2) => e2.displayComma), yJ = useJsonViewerStore((e2) => e2.quotesOnKeys), bJ = useJsonViewerStore((e2) => e2.rootName), xJ = U === t, SJ = Number.isInteger(Number(A)), CJ = useJsonViewerStore((e2) => e2.enableAdd), wJ = useJsonViewerStore((e2) => e2.onAdd), TJ = (0, import_react.useMemo)(() => !wJ || a !== void 0 || CJ === false || v === false ? false : typeof CJ == "function" ? !!CJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18770
+ wJ,
18771
18771
  a,
18772
18772
  i,
18773
- SJ,
18773
+ CJ,
18774
18774
  v,
18775
18775
  t
18776
- ]), TJ = useJsonViewerStore((e2) => e2.enableDelete), EJ = useJsonViewerStore((e2) => e2.onDelete), DJ = (0, import_react.useMemo)(() => !EJ || a !== void 0 || bJ || TJ === false || v === false ? false : typeof TJ == "function" ? !!TJ(i, t) : TJ, [
18777
- EJ,
18776
+ ]), EJ = useJsonViewerStore((e2) => e2.enableDelete), DJ = useJsonViewerStore((e2) => e2.onDelete), OJ = (0, import_react.useMemo)(() => !DJ || a !== void 0 || xJ || EJ === false || v === false ? false : typeof EJ == "function" ? !!EJ(i, t) : EJ, [
18777
+ DJ,
18778
18778
  a,
18779
- bJ,
18779
+ xJ,
18780
18780
  i,
18781
- TJ,
18781
+ EJ,
18782
18782
  v,
18783
18783
  t
18784
- ]), OJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: kJ, copied: AJ } = useClipboard(), jJ = useJsonViewerStore((e2) => e2.highlightUpdates), MJ = (0, import_react.useMemo)(() => !jJ || 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, [
18785
- jJ,
18784
+ ]), kJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: AJ, copied: jJ } = useClipboard(), MJ = useJsonViewerStore((e2) => e2.highlightUpdates), NJ = (0, import_react.useMemo)(() => !MJ || 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, [
18785
+ MJ,
18786
18786
  n,
18787
18787
  t
18788
- ]), NJ = (0, import_react.useRef)();
18788
+ ]), PJ = (0, import_react.useRef)();
18789
18789
  (0, import_react.useEffect)(() => {
18790
- NJ.current && MJ && "animate" in NJ.current && NJ.current.animate([
18790
+ PJ.current && NJ && "animate" in PJ.current && PJ.current.animate([
18791
18791
  {
18792
- backgroundColor: gJ
18792
+ backgroundColor: _J
18793
18793
  },
18794
18794
  {
18795
18795
  backgroundColor: ""
@@ -18799,22 +18799,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18799
18799
  easing: "ease-in"
18800
18800
  });
18801
18801
  }, [
18802
- gJ,
18803
- MJ,
18802
+ _J,
18803
+ NJ,
18804
18804
  n,
18805
18805
  t
18806
18806
  ]);
18807
- let PJ = (0, import_react.useCallback)((e2) => {
18807
+ let FJ = (0, import_react.useCallback)((e2) => {
18808
18808
  e2.preventDefault(), h && E(h(t)), Q(true);
18809
18809
  }, [
18810
18810
  h,
18811
18811
  t
18812
- ]), FJ = (0, import_react.useCallback)(() => {
18812
+ ]), IJ = (0, import_react.useCallback)(() => {
18813
18813
  Q(false), E("");
18814
18814
  }, [
18815
18815
  Q,
18816
18816
  E
18817
- ]), IJ = (0, import_react.useCallback)((e2) => {
18817
+ ]), LJ = (0, import_react.useCallback)((e2) => {
18818
18818
  if (Q(false), _) try {
18819
18819
  $(i, t, _(e2));
18820
18820
  } catch {
@@ -18825,14 +18825,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18825
18825
  $,
18826
18826
  i,
18827
18827
  t
18828
- ]), LJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18828
+ ]), RJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18829
18829
  children: [
18830
18830
  (0, import_jsx_runtime.jsx)(IconBox, {
18831
18831
  children: (0, import_jsx_runtime.jsx)(CloseIcon, {
18832
18832
  sx: {
18833
18833
  fontSize: ".8rem"
18834
18834
  },
18835
- onClick: FJ
18835
+ onClick: IJ
18836
18836
  })
18837
18837
  }),
18838
18838
  (0, import_jsx_runtime.jsx)(IconBox, {
@@ -18840,22 +18840,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18840
18840
  sx: {
18841
18841
  fontSize: ".8rem"
18842
18842
  },
18843
- onClick: () => IJ(w)
18843
+ onClick: () => LJ(w)
18844
18844
  })
18845
18845
  })
18846
18846
  ]
18847
18847
  }) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18848
18848
  children: [
18849
- OJ && (0, import_jsx_runtime.jsx)(IconBox, {
18849
+ kJ && (0, import_jsx_runtime.jsx)(IconBox, {
18850
18850
  onClick: (e2) => {
18851
18851
  e2.preventDefault();
18852
18852
  try {
18853
- kJ(i, t, copyString);
18853
+ AJ(i, t, copyString);
18854
18854
  } catch (e3) {
18855
18855
  console.error(e3);
18856
18856
  }
18857
18857
  },
18858
- children: AJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18858
+ children: jJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18859
18859
  sx: {
18860
18860
  fontSize: ".8rem"
18861
18861
  }
@@ -18866,16 +18866,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18866
18866
  })
18867
18867
  }),
18868
18868
  f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
18869
- onClick: PJ,
18869
+ onClick: FJ,
18870
18870
  children: (0, import_jsx_runtime.jsx)(EditIcon, {
18871
18871
  sx: {
18872
18872
  fontSize: ".8rem"
18873
18873
  }
18874
18874
  })
18875
18875
  }),
18876
- wJ && (0, import_jsx_runtime.jsx)(IconBox, {
18876
+ TJ && (0, import_jsx_runtime.jsx)(IconBox, {
18877
18877
  onClick: (e2) => {
18878
- e2.preventDefault(), CJ == null ? void 0 : CJ(i);
18878
+ e2.preventDefault(), wJ == null ? void 0 : wJ(i);
18879
18879
  },
18880
18880
  children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
18881
18881
  sx: {
@@ -18883,9 +18883,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18883
18883
  }
18884
18884
  })
18885
18885
  }),
18886
- DJ && (0, import_jsx_runtime.jsx)(IconBox, {
18886
+ OJ && (0, import_jsx_runtime.jsx)(IconBox, {
18887
18887
  onClick: (e2) => {
18888
- e2.preventDefault(), EJ == null ? void 0 : EJ(i, t);
18888
+ e2.preventDefault(), DJ == null ? void 0 : DJ(i, t);
18889
18889
  },
18890
18890
  children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
18891
18891
  sx: {
@@ -18898,24 +18898,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18898
18898
  f,
18899
18899
  h,
18900
18900
  _,
18901
+ jJ,
18901
18902
  AJ,
18902
- kJ,
18903
18903
  S,
18904
18904
  J,
18905
+ kJ,
18906
+ TJ,
18905
18907
  OJ,
18906
- wJ,
18907
- DJ,
18908
18908
  w,
18909
18909
  i,
18910
18910
  t,
18911
- CJ,
18912
- EJ,
18913
- PJ,
18911
+ wJ,
18912
+ DJ,
18914
18913
  FJ,
18915
- IJ
18916
- ]), RJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18914
+ IJ,
18915
+ LJ
18916
+ ]), zJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18917
18917
  t
18918
- ]), zJ = !RJ && !!(c && d), BJ = useJsonViewerStore((e2) => e2.keyRenderer), VJ = (0, import_react.useMemo)(() => ({
18918
+ ]), BJ = !zJ && !!(c && d), VJ = useJsonViewerStore((e2) => e2.keyRenderer), HJ = (0, import_react.useMemo)(() => ({
18919
18919
  path: i,
18920
18920
  inspect: K,
18921
18921
  setInspect: q,
@@ -18947,18 +18947,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18947
18947
  className: "data-key",
18948
18948
  sx: {
18949
18949
  lineHeight: 1.5,
18950
- color: mJ,
18950
+ color: hJ,
18951
18951
  letterSpacing: 0.5,
18952
18952
  opacity: 0.8
18953
18953
  },
18954
18954
  onClick: (0, import_react.useCallback)((e2) => {
18955
- e2.isDefaultPrevented() || RJ || q((e3) => !e3);
18955
+ e2.isDefaultPrevented() || zJ || q((e3) => !e3);
18956
18956
  }, [
18957
- RJ,
18957
+ zJ,
18958
18958
  q
18959
18959
  ]),
18960
18960
  children: [
18961
- zJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18961
+ BJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18962
18962
  className: "data-key-toggle-expanded",
18963
18963
  sx: {
18964
18964
  fontSize: ".8rem",
@@ -18976,27 +18976,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18976
18976
  }
18977
18977
  }) : null,
18978
18978
  (0, import_jsx_runtime.jsx)(Box_default, {
18979
- ref: NJ,
18979
+ ref: PJ,
18980
18980
  className: "data-key-key",
18981
18981
  component: "span",
18982
- children: bJ && O === 0 ? yJ === false ? null : vJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18982
+ children: xJ && O === 0 ? bJ === false ? null : yJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18983
18983
  children: [
18984
18984
  '"',
18985
- yJ,
18985
+ bJ,
18986
18986
  '"'
18987
18987
  ]
18988
18988
  }) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
18989
- children: yJ
18990
- }) : BJ.when(VJ) ? (0, import_jsx_runtime.jsx)(BJ, {
18991
- ...VJ
18992
- }) : a === void 0 && (xJ ? (0, import_jsx_runtime.jsx)(Box_default, {
18989
+ children: bJ
18990
+ }) : VJ.when(HJ) ? (0, import_jsx_runtime.jsx)(VJ, {
18991
+ ...HJ
18992
+ }) : a === void 0 && (SJ ? (0, import_jsx_runtime.jsx)(Box_default, {
18993
18993
  component: "span",
18994
18994
  style: {
18995
- color: hJ,
18996
- userSelect: xJ ? "none" : "auto"
18995
+ color: gJ,
18996
+ userSelect: SJ ? "none" : "auto"
18997
18997
  },
18998
18998
  children: A
18999
- }) : vJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18999
+ }) : yJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
19000
19000
  children: [
19001
19001
  '"',
19002
19002
  A,
@@ -19006,7 +19006,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19006
19006
  children: A
19007
19007
  }))
19008
19008
  }),
19009
- bJ ? yJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
19009
+ xJ ? bJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
19010
19010
  className: "data-key-colon",
19011
19011
  sx: {
19012
19012
  mr: 0.5
@@ -19019,38 +19019,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19019
19019
  ".data-key-key:empty + &": {
19020
19020
  display: "none"
19021
19021
  },
19022
- userSelect: xJ ? "none" : "auto"
19022
+ userSelect: SJ ? "none" : "auto"
19023
19023
  },
19024
19024
  children: ":"
19025
19025
  }),
19026
19026
  c && (0, import_jsx_runtime.jsx)(c, {
19027
- ...VJ
19027
+ ...HJ
19028
19028
  }),
19029
- I && zJ && K && LJ
19029
+ I && BJ && K && RJ
19030
19030
  ]
19031
19031
  }),
19032
19032
  J && S ? f && (0, import_jsx_runtime.jsx)(f, {
19033
19033
  path: i,
19034
19034
  value: w,
19035
19035
  setValue: E,
19036
- abortEditing: FJ,
19037
- commitEditing: IJ
19036
+ abortEditing: IJ,
19037
+ commitEditing: LJ
19038
19038
  }) : s ? (0, import_jsx_runtime.jsx)(s, {
19039
- ...VJ
19039
+ ...HJ
19040
19040
  }) : (0, import_jsx_runtime.jsx)(Box_default, {
19041
19041
  component: "span",
19042
19042
  className: "data-value-fallback",
19043
19043
  children: `fallback: ${t}`
19044
19044
  }),
19045
19045
  d && (0, import_jsx_runtime.jsx)(d, {
19046
- ...VJ
19046
+ ...HJ
19047
19047
  }),
19048
- !o && _J && (0, import_jsx_runtime.jsx)(DataBox, {
19048
+ !o && vJ && (0, import_jsx_runtime.jsx)(DataBox, {
19049
19049
  children: ","
19050
19050
  }),
19051
- I && zJ && !K && LJ,
19052
- I && !zJ && LJ,
19053
- !I && J && LJ
19051
+ I && BJ && !K && RJ,
19052
+ I && !BJ && RJ,
19053
+ !I && J && RJ
19054
19054
  ]
19055
19055
  });
19056
19056
  }, query = "(prefers-color-scheme: dark)";
@@ -20130,18 +20130,18 @@ ${n}` : "Please fix this error.";
20130
20130
  }
20131
20131
  let y, S, w, E, O, A;
20132
20132
  if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== a || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
20133
- let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), hJ = n.filter(_temp16), gJ = n.filter(_temp17), _J = n.filter(_temp18), vJ;
20134
- t[17] === s ? vJ = t[18] : (vJ = () => {
20133
+ let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), gJ = n.filter(_temp16), _J = n.filter(_temp17), vJ = n.filter(_temp18), yJ;
20134
+ t[17] === s ? yJ = t[18] : (yJ = () => {
20135
20135
  s.openApplication("scratchpad");
20136
- }, t[17] = s, t[18] = vJ);
20137
- let yJ = vJ, bJ = () => {
20136
+ }, t[17] = s, t[18] = yJ);
20137
+ let bJ = yJ, xJ = () => {
20138
20138
  let t2 = [];
20139
- if (hJ.length > 0 || gJ.length > 0) {
20140
- let e3 = hJ.some(_temp19), n2 = !e3 && hJ.some(_temp20);
20139
+ if (gJ.length > 0 || _J.length > 0) {
20140
+ let e3 = gJ.some(_temp19), n2 = !e3 && gJ.some(_temp20);
20141
20141
  t2.push((0, import_jsx_runtime.jsxs)("div", {
20142
20142
  children: [
20143
- hJ.map(_temp21),
20144
- gJ.map(_temp22),
20143
+ gJ.map(_temp21),
20144
+ _J.map(_temp22),
20145
20145
  e3 && (0, import_jsx_runtime.jsxs)(Button, {
20146
20146
  size: "xs",
20147
20147
  variant: "outline",
@@ -20172,8 +20172,8 @@ ${n}` : "Please fix this error.";
20172
20172
  }),
20173
20173
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20174
20174
  errors: [
20175
- ...hJ,
20176
- ...gJ
20175
+ ...gJ,
20176
+ ..._J
20177
20177
  ],
20178
20178
  cellId: i
20179
20179
  })
@@ -20334,7 +20334,7 @@ ${n}` : "Please fix this error.";
20334
20334
  size: "xs",
20335
20335
  variant: "link",
20336
20336
  className: "my-2 font-normal mx-0 px-0",
20337
- onClick: yJ,
20337
+ onClick: bJ,
20338
20338
  children: [
20339
20339
  (0, import_jsx_runtime.jsx)(NotebookPen, {
20340
20340
  className: "h-3"
@@ -20533,18 +20533,18 @@ ${n}` : "Please fix this error.";
20533
20533
  cellId: i
20534
20534
  })
20535
20535
  ]
20536
- }, "ancestor-stopped")), _J.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20536
+ }, "ancestor-stopped")), vJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20537
20537
  children: [
20538
- _J.map(_temp35),
20538
+ vJ.map(_temp35),
20539
20539
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20540
- errors: _J,
20540
+ errors: vJ,
20541
20541
  cellId: i,
20542
20542
  className: "mt-2.5"
20543
20543
  })
20544
20544
  ]
20545
20545
  }, "sql-errors")), t2;
20546
- }, xJ;
20547
- t[19] === v ? xJ = t[20] : (xJ = v && (0, import_jsx_runtime.jsxs)("div", {
20546
+ }, SJ;
20547
+ t[19] === v ? SJ = t[20] : (SJ = v && (0, import_jsx_runtime.jsxs)("div", {
20548
20548
  className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
20549
20549
  children: [
20550
20550
  v,
@@ -20556,22 +20556,22 @@ ${n}` : "Please fix this error.";
20556
20556
  })
20557
20557
  })
20558
20558
  ]
20559
- }), t[19] = v, t[20] = xJ);
20560
- let SJ;
20561
- t[21] !== _ || t[22] !== d ? (SJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20559
+ }), t[19] = v, t[20] = SJ);
20560
+ let CJ;
20561
+ t[21] !== _ || t[22] !== d ? (CJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20562
20562
  className: `font-code font-medium ${_}`,
20563
20563
  children: d
20564
- }), t[21] = _, t[22] = d, t[23] = SJ) : SJ = t[23];
20565
- let CJ;
20566
- t[24] !== xJ || t[25] !== SJ ? (CJ = (0, import_jsx_runtime.jsxs)("div", {
20564
+ }), t[21] = _, t[22] = d, t[23] = CJ) : CJ = t[23];
20565
+ let wJ;
20566
+ t[24] !== SJ || t[25] !== CJ ? (wJ = (0, import_jsx_runtime.jsxs)("div", {
20567
20567
  className: "space-y-0.5",
20568
20568
  children: [
20569
- xJ,
20570
- SJ
20569
+ SJ,
20570
+ CJ
20571
20571
  ]
20572
- }), t[24] = xJ, t[25] = SJ, t[26] = CJ) : CJ = t[26];
20573
- let wJ = CJ;
20574
- y = Alert, E = f, t[27] === a ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", a), t[27] = a, t[28] = O), A = wJ, S = "flex flex-col gap-4", w = bJ(), t[2] = f, t[3] = i, t[4] = s, t[5] = a, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
20572
+ }), t[24] = SJ, t[25] = CJ, t[26] = wJ) : wJ = t[26];
20573
+ let TJ = wJ;
20574
+ y = Alert, E = f, t[27] === a ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", a), t[27] = a, t[28] = O), A = TJ, S = "flex flex-col gap-4", w = xJ(), t[2] = f, t[3] = i, t[4] = s, t[5] = a, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
20575
20575
  } else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
20576
20576
  let M;
20577
20577
  t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
@@ -26114,26 +26114,27 @@ ${n}` : "Please fix this error.";
26114
26114
  enableHiding: false
26115
26115
  }), M;
26116
26116
  };
26117
- var PopoutColumn = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: i, contentClassName: a, buttonText: s, wrapped: c, children: d }) => {
26118
- let f = i !== void 0 && (i.leading.length > 0 || i.trailing.length > 0) ? n.slice(i.leading.length, n.length - i.trailing.length) : n;
26117
+ var PopoutColumn = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: i, contentClassName: a, scrollable: c = false, wrapped: d, children: f, buttonText: _ }) => {
26118
+ let v = (0, import_react.useRef)(null), y = i !== void 0 && (i.leading.length > 0 || i.trailing.length > 0) ? n.slice(i.leading.length, n.length - i.trailing.length) : n;
26119
26119
  return (0, import_jsx_runtime.jsx)(EmotionCacheProvider, {
26120
26120
  container: null,
26121
26121
  children: (0, import_jsx_runtime.jsxs)(Popover, {
26122
26122
  children: [
26123
26123
  (0, import_jsx_runtime.jsx)(PopoverTrigger, {
26124
+ ref: v,
26124
26125
  className: cn(e, "max-w-fit outline-hidden"),
26125
26126
  onClick: t,
26126
26127
  onMouseDown: (e2) => {
26127
26128
  e2.stopPropagation();
26128
26129
  },
26129
26130
  children: (0, import_jsx_runtime.jsxs)("span", {
26130
- className: cn("cursor-pointer hover:text-link", c && "whitespace-pre-wrap min-w-[200px]"),
26131
+ className: cn("cursor-pointer hover:text-link", d && "whitespace-pre-wrap min-w-[200px]"),
26131
26132
  title: n,
26132
26133
  children: [
26133
26134
  i ? (0, import_jsx_runtime.jsx)(WhitespaceMarkers, {
26134
26135
  value: i.leading
26135
26136
  }) : null,
26136
- f,
26137
+ y,
26137
26138
  i ? (0, import_jsx_runtime.jsx)(WhitespaceMarkers, {
26138
26139
  value: i.trailing
26139
26140
  }) : null
@@ -26141,34 +26142,54 @@ ${n}` : "Please fix this error.";
26141
26142
  })
26142
26143
  }),
26143
26144
  (0, import_jsx_runtime.jsxs)(PopoverContent, {
26144
- className: a,
26145
+ className: cn(a, c && "flex flex-col overflow-hidden"),
26145
26146
  align: "start",
26146
26147
  alignOffset: 10,
26148
+ onInteractOutside: (e2) => {
26149
+ var _a2;
26150
+ let t2 = Events.composedTarget(e2.detail.originalEvent);
26151
+ ((_a2 = v.current) == null ? void 0 : _a2.contains(t2)) && e2.preventDefault();
26152
+ },
26147
26153
  children: [
26148
26154
  (0, import_jsx_runtime.jsxs)("div", {
26149
- className: "absolute top-2 right-2",
26155
+ className: cn("flex -mt-3 -mr-2", c ? "shrink-0 justify-end" : "float-right"),
26150
26156
  children: [
26151
26157
  (0, import_jsx_runtime.jsx)(CopyClipboardIcon, {
26152
26158
  value: n,
26153
- className: "w-2.5 h-2.5",
26159
+ className: "size-3 hover:text-link",
26160
+ buttonClassName: "flex size-5 items-center justify-center",
26154
26161
  tooltip: false
26155
26162
  }),
26156
26163
  (0, import_jsx_runtime.jsx)(PopoverClose$1, {
26164
+ asChild: true,
26157
26165
  children: (0, import_jsx_runtime.jsx)(Button, {
26158
26166
  variant: "link",
26159
26167
  size: "xs",
26160
- children: s ?? "Close"
26168
+ className: cn("size-5 p-0", !_ && "ml-1.5 mr-1"),
26169
+ "aria-label": "Close",
26170
+ children: _ ?? "Close"
26161
26171
  })
26162
26172
  })
26163
26173
  ]
26164
26174
  }),
26165
- d
26175
+ c ? (0, import_jsx_runtime.jsx)("div", {
26176
+ className: "min-h-0 overflow-auto",
26177
+ children: f
26178
+ }) : f
26166
26179
  ]
26167
26180
  })
26168
26181
  ]
26169
26182
  })
26170
26183
  });
26171
26184
  };
26185
+ function parseJsonDocument(e) {
26186
+ let t = e.trim(), n = t[0], i = t[t.length - 1];
26187
+ if (n === "{" && i === "}" || n === "[" && i === "]") try {
26188
+ return JSON.parse(t);
26189
+ } catch {
26190
+ return;
26191
+ }
26192
+ }
26172
26193
  function isPrimitiveOrNullish(e) {
26173
26194
  return e == null ? true : typeof e != "object";
26174
26195
  }
@@ -26255,8 +26276,25 @@ ${n}` : "Please fix this error.";
26255
26276
  children: c.toString()
26256
26277
  });
26257
26278
  if (typeof c == "string") {
26258
- let n2 = d ? String(e.applyColumnFormatting(c)) : String(t()), { leading: a, middle: f2, trailing: h2 } = splitLeadingTrailingWhitespace(n2), v2 = parseContent(a.length > 0 || h2.length > 0 ? f2 : n2);
26259
- return v2.every((e2) => e2.type !== "text") || n2.length < MAX_STRING_LENGTH || _ ? (0, import_jsx_runtime.jsxs)("div", {
26279
+ let n2 = d ? String(e.applyColumnFormatting(c)) : String(t()), { leading: a, middle: f2, trailing: h2 } = splitLeadingTrailingWhitespace(n2), v2 = a.length > 0 || h2.length > 0, y2 = parseJsonDocument(f2);
26280
+ if (y2 !== void 0) return (0, import_jsx_runtime.jsx)(PopoutColumn, {
26281
+ cellStyles: s,
26282
+ selectCell: i,
26283
+ rawStringValue: n2,
26284
+ edges: {
26285
+ leading: a,
26286
+ trailing: h2
26287
+ },
26288
+ wrapped: _,
26289
+ children: (0, import_jsx_runtime.jsx)(JsonOutput, {
26290
+ data: y2,
26291
+ format: "tree",
26292
+ valueTypes: "json",
26293
+ className: "max-h-64"
26294
+ })
26295
+ });
26296
+ let S = parseContent(v2 ? f2 : n2);
26297
+ return S.every((e2) => e2.type !== "text") || n2.length < MAX_STRING_LENGTH || _ ? (0, import_jsx_runtime.jsxs)("div", {
26260
26298
  onClick: i,
26261
26299
  className: cn(s, _ && "whitespace-pre-wrap min-w-[200px]"),
26262
26300
  children: [
@@ -26264,7 +26302,7 @@ ${n}` : "Please fix this error.";
26264
26302
  value: a
26265
26303
  }),
26266
26304
  (0, import_jsx_runtime.jsx)(UrlDetector, {
26267
- parts: v2
26305
+ parts: S
26268
26306
  }),
26269
26307
  (0, import_jsx_runtime.jsx)(WhitespaceMarkers, {
26270
26308
  value: h2
@@ -26278,9 +26316,10 @@ ${n}` : "Please fix this error.";
26278
26316
  leading: a,
26279
26317
  trailing: h2
26280
26318
  },
26281
- contentClassName: "max-h-64 overflow-auto whitespace-pre-wrap wrap-break-word text-sm w-96",
26282
- buttonText: "X",
26319
+ contentClassName: "max-h-64 whitespace-pre-wrap wrap-break-word text-sm w-96",
26320
+ scrollable: true,
26283
26321
  wrapped: _,
26322
+ buttonText: "X",
26284
26323
  children: (0, import_jsx_runtime.jsx)(MarkdownUrlDetector, {
26285
26324
  content: n2,
26286
26325
  parts: parseContent(n2)
@@ -26653,7 +26692,7 @@ ${n}` : "Please fix this error.";
26653
26692
  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 }) {
26654
26693
  let E = (0, import_react.useContext)(PanelGroupContext);
26655
26694
  if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
26656
- let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), mJ = (0, import_react.useRef)({
26695
+ let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), hJ = (0, import_react.useRef)({
26657
26696
  callbacks: {
26658
26697
  onCollapse: f,
26659
26698
  onExpand: h,
@@ -26673,12 +26712,12 @@ ${n}` : "Please fix this error.";
26673
26712
  (0, import_react.useRef)({
26674
26713
  didLogMissingDefaultSizeWarning: false
26675
26714
  }), useIsomorphicLayoutEffect$1(() => {
26676
- let { callbacks: e2, constraints: t2 } = mJ.current, o2 = {
26715
+ let { callbacks: e2, constraints: t2 } = hJ.current, o2 = {
26677
26716
  ...t2
26678
26717
  };
26679
- mJ.current.id = $, mJ.current.idIsFromProps = s !== void 0, mJ.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(mJ.current, o2);
26718
+ hJ.current.id = $, hJ.current.idIsFromProps = s !== void 0, hJ.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(hJ.current, o2);
26680
26719
  }), useIsomorphicLayoutEffect$1(() => {
26681
- let e2 = mJ.current;
26720
+ let e2 = hJ.current;
26682
26721
  return q(e2), () => {
26683
26722
  Q(e2);
26684
26723
  };
@@ -26689,25 +26728,25 @@ ${n}` : "Please fix this error.";
26689
26728
  Q
26690
26729
  ]), (0, import_react.useImperativeHandle)(o, () => ({
26691
26730
  collapse: () => {
26692
- O(mJ.current);
26731
+ O(hJ.current);
26693
26732
  },
26694
26733
  expand: (e2) => {
26695
- A(mJ.current, e2);
26734
+ A(hJ.current, e2);
26696
26735
  },
26697
26736
  getId() {
26698
26737
  return $;
26699
26738
  },
26700
26739
  getSize() {
26701
- return M(mJ.current);
26740
+ return M(hJ.current);
26702
26741
  },
26703
26742
  isCollapsed() {
26704
- return U(mJ.current);
26743
+ return U(hJ.current);
26705
26744
  },
26706
26745
  isExpanded() {
26707
- return !U(mJ.current);
26746
+ return !U(hJ.current);
26708
26747
  },
26709
26748
  resize: (e2) => {
26710
- J(mJ.current, e2);
26749
+ J(hJ.current, e2);
26711
26750
  }
26712
26751
  }), [
26713
26752
  O,
@@ -26717,21 +26756,21 @@ ${n}` : "Please fix this error.";
26717
26756
  $,
26718
26757
  J
26719
26758
  ]);
26720
- let hJ = I(mJ.current, a);
26759
+ let gJ = I(hJ.current, a);
26721
26760
  return (0, import_react.createElement)(S, {
26722
26761
  ...w,
26723
26762
  children: e,
26724
26763
  className: t,
26725
26764
  id: $,
26726
26765
  style: {
26727
- ...hJ,
26766
+ ...gJ,
26728
26767
  ...y
26729
26768
  },
26730
26769
  [DATA_ATTRIBUTES.groupId]: z,
26731
26770
  [DATA_ATTRIBUTES.panel]: "",
26732
26771
  [DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
26733
26772
  [DATA_ATTRIBUTES.panelId]: $,
26734
- [DATA_ATTRIBUTES.panelSize]: parseFloat("" + hJ.flexGrow).toFixed(1)
26773
+ [DATA_ATTRIBUTES.panelSize]: parseFloat("" + gJ.flexGrow).toFixed(1)
26735
26774
  });
26736
26775
  }
26737
26776
  Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
@@ -27516,13 +27555,13 @@ ${n}` : "Please fix this error.";
27516
27555
  }, [
27517
27556
  S,
27518
27557
  E
27519
- ]), mJ = (0, import_react.useCallback)((e2) => {
27558
+ ]), hJ = (0, import_react.useCallback)((e2) => {
27520
27559
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27521
27560
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
27522
- }, []), hJ = (0, import_react.useCallback)((e2) => {
27561
+ }, []), gJ = (0, import_react.useCallback)((e2) => {
27523
27562
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27524
27563
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
27525
- }, []), gJ = (0, import_react.useCallback)((e2) => {
27564
+ }, []), _J = (0, import_react.useCallback)((e2) => {
27526
27565
  let { panelDataArray: t2 } = K.current;
27527
27566
  t2.push(e2), t2.sort((e3, t3) => {
27528
27567
  let n2 = e3.order, i2 = t3.order;
@@ -27554,7 +27593,7 @@ ${n}` : "Please fix this error.";
27554
27593
  e2.layout = [];
27555
27594
  };
27556
27595
  }, []);
27557
- let _J = (0, import_react.useCallback)((e2) => {
27596
+ let vJ = (0, import_react.useCallback)((e2) => {
27558
27597
  let t2 = false, n2 = y.current;
27559
27598
  return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
27560
27599
  n3.preventDefault();
@@ -27572,7 +27611,7 @@ ${n}` : "Please fix this error.";
27572
27611
  }), I2 = !compareLayouts(f2, A2);
27573
27612
  (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));
27574
27613
  };
27575
- }, []), vJ = (0, import_react.useCallback)((e2, t2) => {
27614
+ }, []), yJ = (0, import_react.useCallback)((e2, t2) => {
27576
27615
  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);
27577
27616
  assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
27578
27617
  let d2 = adjustLayoutByDelta({
@@ -27584,12 +27623,12 @@ ${n}` : "Please fix this error.";
27584
27623
  trigger: "imperative-api"
27585
27624
  });
27586
27625
  compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
27587
- }, []), yJ = (0, import_react.useCallback)((e2, t2) => {
27626
+ }, []), bJ = (0, import_react.useCallback)((e2, t2) => {
27588
27627
  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);
27589
- h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || vJ(e2, s2) : h2 < f2 ? vJ(e2, f2) : h2 > d2 && vJ(e2, d2));
27628
+ h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || yJ(e2, s2) : h2 < f2 ? yJ(e2, f2) : h2 > d2 && yJ(e2, d2));
27590
27629
  }, [
27591
- vJ
27592
- ]), bJ = (0, import_react.useCallback)((e2, t2) => {
27630
+ yJ
27631
+ ]), xJ = (0, import_react.useCallback)((e2, t2) => {
27593
27632
  let { direction: n2 } = U.current, { layout: i2 } = K.current;
27594
27633
  if (!y.current) return;
27595
27634
  let a2 = getResizeHandleElement(e2, y.current);
@@ -27601,14 +27640,14 @@ ${n}` : "Please fix this error.";
27601
27640
  initialCursorPosition: o2,
27602
27641
  initialLayout: i2
27603
27642
  });
27604
- }, []), xJ = (0, import_react.useCallback)(() => {
27643
+ }, []), SJ = (0, import_react.useCallback)(() => {
27605
27644
  w(null);
27606
- }, []), SJ = (0, import_react.useCallback)((e2) => {
27645
+ }, []), CJ = (0, import_react.useCallback)((e2) => {
27607
27646
  let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
27608
27647
  n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
27609
27648
  }, [
27610
27649
  A
27611
- ]), CJ = (0, import_react.useMemo)(() => ({
27650
+ ]), wJ = (0, import_react.useMemo)(() => ({
27612
27651
  collapsePanel: q,
27613
27652
  direction: i,
27614
27653
  dragState: S,
@@ -27616,15 +27655,15 @@ ${n}` : "Please fix this error.";
27616
27655
  getPanelSize: Q,
27617
27656
  getPanelStyle: $,
27618
27657
  groupId: v,
27619
- isPanelCollapsed: mJ,
27620
- isPanelExpanded: hJ,
27621
- reevaluatePanelConstraints: yJ,
27622
- registerPanel: gJ,
27623
- registerResizeHandle: _J,
27624
- resizePanel: vJ,
27625
- startDragging: bJ,
27626
- stopDragging: xJ,
27627
- unregisterPanel: SJ,
27658
+ isPanelCollapsed: hJ,
27659
+ isPanelExpanded: gJ,
27660
+ reevaluatePanelConstraints: bJ,
27661
+ registerPanel: _J,
27662
+ registerResizeHandle: vJ,
27663
+ resizePanel: yJ,
27664
+ startDragging: xJ,
27665
+ stopDragging: SJ,
27666
+ unregisterPanel: CJ,
27628
27667
  panelGroupElement: y.current
27629
27668
  }), [
27630
27669
  q,
@@ -27634,16 +27673,16 @@ ${n}` : "Please fix this error.";
27634
27673
  Q,
27635
27674
  $,
27636
27675
  v,
27637
- mJ,
27638
27676
  hJ,
27639
- yJ,
27640
27677
  gJ,
27678
+ bJ,
27641
27679
  _J,
27642
27680
  vJ,
27643
- bJ,
27681
+ yJ,
27644
27682
  xJ,
27645
- SJ
27646
- ]), wJ = {
27683
+ SJ,
27684
+ CJ
27685
+ ]), TJ = {
27647
27686
  display: "flex",
27648
27687
  flexDirection: i === "horizontal" ? "row" : "column",
27649
27688
  height: "100%",
@@ -27651,7 +27690,7 @@ ${n}` : "Please fix this error.";
27651
27690
  width: "100%"
27652
27691
  };
27653
27692
  return (0, import_react.createElement)(PanelGroupContext.Provider, {
27654
- value: CJ
27693
+ value: wJ
27655
27694
  }, (0, import_react.createElement)(h, {
27656
27695
  ..._,
27657
27696
  children: t,
@@ -27659,7 +27698,7 @@ ${n}` : "Please fix this error.";
27659
27698
  id: o,
27660
27699
  ref: y,
27661
27700
  style: {
27662
- ...wJ,
27701
+ ...TJ,
27663
27702
  ...f
27664
27703
  },
27665
27704
  [DATA_ATTRIBUTES.group]: "",
@@ -27736,31 +27775,31 @@ ${n}` : "Please fix this error.";
27736
27775
  });
27737
27776
  let O = (0, import_react.useContext)(PanelGroupContext);
27738
27777
  if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
27739
- let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, mJ] = (0, import_react.useState)(false), [hJ, gJ] = (0, import_react.useState)(null), _J = (0, import_react.useRef)({
27778
+ let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, hJ] = (0, import_react.useState)(false), [gJ, _J] = (0, import_react.useState)(null), vJ = (0, import_react.useRef)({
27740
27779
  state: J
27741
27780
  });
27742
27781
  useIsomorphicLayoutEffect$1(() => {
27743
- _J.current.state = J;
27782
+ vJ.current.state = J;
27744
27783
  }), (0, import_react.useEffect)(() => {
27745
- if (n) gJ(null);
27784
+ if (n) _J(null);
27746
27785
  else {
27747
27786
  let e2 = I(q);
27748
- gJ(() => e2);
27787
+ _J(() => e2);
27749
27788
  }
27750
27789
  }, [
27751
27790
  n,
27752
27791
  q,
27753
27792
  I
27754
27793
  ]);
27755
- let vJ = (i == null ? void 0 : i.coarse) ?? 15, yJ = (i == null ? void 0 : i.fine) ?? 5;
27794
+ let yJ = (i == null ? void 0 : i.coarse) ?? 15, bJ = (i == null ? void 0 : i.fine) ?? 5;
27756
27795
  (0, import_react.useEffect)(() => {
27757
- if (n || hJ == null) return;
27796
+ if (n || gJ == null) return;
27758
27797
  let e2 = w.current;
27759
27798
  assert(e2, "Element ref not attached");
27760
27799
  let t2 = false;
27761
27800
  return registerResizeHandle(q, e2, A, {
27762
- coarse: vJ,
27763
- fine: yJ
27801
+ coarse: yJ,
27802
+ fine: bJ
27764
27803
  }, (e3, n2, i2) => {
27765
27804
  if (!n2) {
27766
27805
  Q("inactive");
@@ -27774,8 +27813,8 @@ ${n}` : "Please fix this error.";
27774
27813
  break;
27775
27814
  }
27776
27815
  case "move": {
27777
- let { state: e4 } = _J.current;
27778
- t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), hJ(i2);
27816
+ let { state: e4 } = vJ.current;
27817
+ t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), gJ(i2);
27779
27818
  break;
27780
27819
  }
27781
27820
  case "up": {
@@ -27787,22 +27826,22 @@ ${n}` : "Please fix this error.";
27787
27826
  }
27788
27827
  });
27789
27828
  }, [
27790
- vJ,
27829
+ yJ,
27791
27830
  A,
27792
27831
  n,
27793
- yJ,
27832
+ bJ,
27794
27833
  I,
27795
27834
  q,
27796
- hJ,
27835
+ gJ,
27797
27836
  z,
27798
27837
  U
27799
27838
  ]), useWindowSplitterResizeHandlerBehavior({
27800
27839
  disabled: n,
27801
27840
  handleId: q,
27802
- resizeHandler: hJ,
27841
+ resizeHandler: gJ,
27803
27842
  panelGroupElement: K
27804
27843
  });
27805
- let bJ = {
27844
+ let xJ = {
27806
27845
  touchAction: "none",
27807
27846
  userSelect: "none"
27808
27847
  };
@@ -27812,15 +27851,15 @@ ${n}` : "Please fix this error.";
27812
27851
  className: t,
27813
27852
  id: a,
27814
27853
  onBlur: () => {
27815
- mJ(false), o == null ? void 0 : o();
27854
+ hJ(false), o == null ? void 0 : o();
27816
27855
  },
27817
27856
  onFocus: () => {
27818
- mJ(true), d == null ? void 0 : d();
27857
+ hJ(true), d == null ? void 0 : d();
27819
27858
  },
27820
27859
  ref: w,
27821
27860
  role: "separator",
27822
27861
  style: {
27823
- ...bJ,
27862
+ ...xJ,
27824
27863
  ..._
27825
27864
  },
27826
27865
  tabIndex: v,
@@ -28119,7 +28158,7 @@ ${n}` : "Please fix this error.";
28119
28158
  }, [
28120
28159
  h
28121
28160
  ]), k(() => {
28122
- U(6, hJ);
28161
+ U(6, gJ);
28123
28162
  }, []);
28124
28163
  let K = import_react.useMemo(() => ({
28125
28164
  subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
@@ -28128,7 +28167,7 @@ ${n}` : "Please fix this error.";
28128
28167
  var _a2;
28129
28168
  var a2, o2, s2;
28130
28169
  if (!Object.is(n.current[e2], t2)) {
28131
- if (n.current[e2] = t2, e2 === "search") mJ(), Q(), U(1, $);
28170
+ if (n.current[e2] = t2, e2 === "search") hJ(), Q(), U(1, $);
28132
28171
  else if (e2 === "value") {
28133
28172
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
28134
28173
  let e3 = document.getElementById(I);
@@ -28136,8 +28175,8 @@ ${n}` : "Please fix this error.";
28136
28175
  }
28137
28176
  if (U(7, () => {
28138
28177
  var _a3;
28139
- n.current.selectedItemId = (_a3 = gJ()) == null ? void 0 : _a3.id, K.emit();
28140
- }), i2 || U(5, hJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
28178
+ n.current.selectedItemId = (_a3 = _J()) == null ? void 0 : _a3.id, K.emit();
28179
+ }), i2 || U(5, gJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
28141
28180
  let e3 = t2 ?? "";
28142
28181
  (s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
28143
28182
  return;
@@ -28162,12 +28201,12 @@ ${n}` : "Please fix this error.";
28162
28201
  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([
28163
28202
  e2
28164
28203
  ]))), U(3, () => {
28165
- mJ(), Q(), n.current.value || $(), K.emit();
28204
+ hJ(), Q(), n.current.value || $(), K.emit();
28166
28205
  }), () => {
28167
28206
  o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
28168
- let t3 = gJ();
28207
+ let t3 = _J();
28169
28208
  U(4, () => {
28170
- mJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
28209
+ hJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
28171
28210
  });
28172
28211
  }),
28173
28212
  group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
@@ -28200,7 +28239,7 @@ ${n}` : "Please fix this error.";
28200
28239
  ]);
28201
28240
  });
28202
28241
  let i2 = z.current;
28203
- _J().sort((t3, n2) => {
28242
+ vJ().sort((t3, n2) => {
28204
28243
  let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
28205
28244
  return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
28206
28245
  }).forEach((e3) => {
@@ -28214,10 +28253,10 @@ ${n}` : "Please fix this error.";
28214
28253
  }
28215
28254
  function $() {
28216
28255
  var _a2;
28217
- let e2 = (_a2 = _J().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
28256
+ let e2 = (_a2 = vJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
28218
28257
  K.setState("value", e2 || void 0);
28219
28258
  }
28220
- function mJ() {
28259
+ function hJ() {
28221
28260
  var _a2, _b;
28222
28261
  if (!n.current.search || c.current.shouldFilter === false) {
28223
28262
  n.current.filtered.count = i.current.size;
@@ -28235,43 +28274,43 @@ ${n}` : "Please fix this error.";
28235
28274
  }
28236
28275
  n.current.filtered.count = e2;
28237
28276
  }
28238
- function hJ() {
28277
+ function gJ() {
28239
28278
  var _a2, _b;
28240
28279
  var e2;
28241
- let t2 = gJ();
28280
+ let t2 = _J();
28242
28281
  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({
28243
28282
  block: "nearest"
28244
28283
  })), t2.scrollIntoView({
28245
28284
  block: "nearest"
28246
28285
  }));
28247
28286
  }
28248
- function gJ() {
28287
+ function _J() {
28249
28288
  var _a2;
28250
28289
  return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
28251
28290
  }
28252
- function _J() {
28291
+ function vJ() {
28253
28292
  var _a2;
28254
28293
  return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
28255
28294
  }
28256
- function vJ(e2) {
28257
- let t2 = _J()[e2];
28295
+ function yJ(e2) {
28296
+ let t2 = vJ()[e2];
28258
28297
  t2 && K.setState("value", t2.getAttribute(T));
28259
28298
  }
28260
- function yJ(e2) {
28299
+ function bJ(e2) {
28261
28300
  var t2;
28262
- let n2 = gJ(), i2 = _J(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28301
+ let n2 = _J(), i2 = vJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
28263
28302
  (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));
28264
28303
  }
28265
- function bJ(e2) {
28304
+ function xJ(e2) {
28266
28305
  var _a2;
28267
- let t2 = (_a2 = gJ()) == null ? void 0 : _a2.closest(N$1), n2;
28306
+ let t2 = (_a2 = _J()) == null ? void 0 : _a2.closest(N$1), n2;
28268
28307
  for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
28269
- n2 ? K.setState("value", n2.getAttribute(T)) : yJ(e2);
28308
+ n2 ? K.setState("value", n2.getAttribute(T)) : bJ(e2);
28270
28309
  }
28271
- let xJ = () => vJ(_J().length - 1), SJ = (e2) => {
28272
- e2.preventDefault(), e2.metaKey ? xJ() : e2.altKey ? bJ(1) : yJ(1);
28273
- }, CJ = (e2) => {
28274
- e2.preventDefault(), e2.metaKey ? vJ(0) : e2.altKey ? bJ(-1) : yJ(-1);
28310
+ let SJ = () => yJ(vJ().length - 1), CJ = (e2) => {
28311
+ e2.preventDefault(), e2.metaKey ? SJ() : e2.altKey ? xJ(1) : bJ(1);
28312
+ }, wJ = (e2) => {
28313
+ e2.preventDefault(), e2.metaKey ? yJ(0) : e2.altKey ? xJ(-1) : bJ(-1);
28275
28314
  };
28276
28315
  return import_react.createElement(Primitive.div, {
28277
28316
  ref: t,
@@ -28285,27 +28324,27 @@ ${n}` : "Please fix this error.";
28285
28324
  if (!(e2.defaultPrevented || n2)) switch (e2.key) {
28286
28325
  case "n":
28287
28326
  case "j":
28288
- E && e2.ctrlKey && SJ(e2);
28327
+ E && e2.ctrlKey && CJ(e2);
28289
28328
  break;
28290
28329
  case "ArrowDown":
28291
- SJ(e2);
28330
+ CJ(e2);
28292
28331
  break;
28293
28332
  case "p":
28294
28333
  case "k":
28295
- E && e2.ctrlKey && CJ(e2);
28334
+ E && e2.ctrlKey && wJ(e2);
28296
28335
  break;
28297
28336
  case "ArrowUp":
28298
- CJ(e2);
28337
+ wJ(e2);
28299
28338
  break;
28300
28339
  case "Home":
28301
- e2.preventDefault(), vJ(0);
28340
+ e2.preventDefault(), yJ(0);
28302
28341
  break;
28303
28342
  case "End":
28304
- e2.preventDefault(), xJ();
28343
+ e2.preventDefault(), SJ();
28305
28344
  break;
28306
28345
  case "Enter": {
28307
28346
  e2.preventDefault();
28308
- let t3 = gJ();
28347
+ let t3 = _J();
28309
28348
  if (t3) {
28310
28349
  let e3 = new Event(Z);
28311
28350
  t3.dispatchEvent(e3);
@@ -28714,153 +28753,153 @@ ${n}` : "Please fix this error.";
28714
28753
  Combobox = (e) => {
28715
28754
  let t = (0, import_compiler_runtime$35.c)(106), n, i, a, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J, Q;
28716
28755
  t[0] === e ? (n = t[1], i = t[2], a = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22], J = t[23], Q = t[24]) : ({ children: n, displayValue: d, className: a, placeholder: E, value: Q, defaultValue: c, onValueChange: S, multiple: I, shouldFilter: z, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: U, search: M, onSearchChange: y, emptyState: K, chips: q, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: J, renderValue: O, ...A } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q, t[23] = J, t[24] = Q);
28717
- let $ = I === void 0 ? false : I, mJ = z === void 0 ? true : z, hJ = U === void 0 ? "Search..." : U, gJ = K === void 0 ? "Nothing found." : K, _J = q === void 0 ? false : q, vJ = J === void 0 ? false : J, yJ = s ?? false, bJ;
28718
- t[25] !== v || t[26] !== w || t[27] !== yJ ? (bJ = {
28756
+ let $ = I === void 0 ? false : I, hJ = z === void 0 ? true : z, gJ = U === void 0 ? "Search..." : U, _J = K === void 0 ? "Nothing found." : K, vJ = q === void 0 ? false : q, yJ = J === void 0 ? false : J, bJ = s ?? false, xJ;
28757
+ t[25] !== v || t[26] !== w || t[27] !== bJ ? (xJ = {
28719
28758
  prop: w,
28720
- defaultProp: yJ,
28759
+ defaultProp: bJ,
28721
28760
  onChange: v
28722
- }, t[25] = v, t[26] = w, t[27] = yJ, t[28] = bJ) : bJ = t[28];
28723
- let [xJ, SJ] = useControllableState(bJ), CJ = xJ === void 0 ? false : xJ, wJ;
28724
- t[29] === S ? wJ = t[30] : (wJ = (e2) => {
28761
+ }, t[25] = v, t[26] = w, t[27] = bJ, t[28] = xJ) : xJ = t[28];
28762
+ let [SJ, CJ] = useControllableState(xJ), wJ = SJ === void 0 ? false : SJ, TJ;
28763
+ t[29] === S ? TJ = t[30] : (TJ = (e2) => {
28725
28764
  S == null ? void 0 : S(e2);
28726
- }, t[29] = S, t[30] = wJ);
28727
- let TJ;
28728
- t[31] !== c || t[32] !== wJ || t[33] !== Q ? (TJ = {
28765
+ }, t[29] = S, t[30] = TJ);
28766
+ let EJ;
28767
+ t[31] !== c || t[32] !== TJ || t[33] !== Q ? (EJ = {
28729
28768
  prop: Q,
28730
28769
  defaultProp: c,
28731
- onChange: wJ
28732
- }, t[31] = c, t[32] = wJ, t[33] = Q, t[34] = TJ) : TJ = t[34];
28733
- let [EJ, DJ] = useControllableState(TJ), OJ;
28734
- t[35] === EJ ? OJ = t[36] : (OJ = (e2) => Array.isArray(EJ) ? EJ.includes(e2) : EJ === e2, t[35] = EJ, t[36] = OJ);
28735
- let kJ = OJ, AJ;
28736
- t[37] !== _ || t[38] !== $ || t[39] !== SJ || t[40] !== DJ || t[41] !== EJ ? (AJ = (e2) => {
28770
+ onChange: TJ
28771
+ }, t[31] = c, t[32] = TJ, t[33] = Q, t[34] = EJ) : EJ = t[34];
28772
+ let [DJ, OJ] = useControllableState(EJ), kJ;
28773
+ t[35] === DJ ? kJ = t[36] : (kJ = (e2) => Array.isArray(DJ) ? DJ.includes(e2) : DJ === e2, t[35] = DJ, t[36] = kJ);
28774
+ let AJ = kJ, jJ;
28775
+ t[37] !== _ || t[38] !== $ || t[39] !== CJ || t[40] !== OJ || t[41] !== DJ ? (jJ = (e2) => {
28737
28776
  let t2 = e2;
28738
- if ($) if (Array.isArray(EJ)) if (EJ.includes(t2)) {
28739
- let n2 = EJ.filter((t3) => t3 !== e2);
28777
+ if ($) if (Array.isArray(DJ)) if (DJ.includes(t2)) {
28778
+ let n2 = DJ.filter((t3) => t3 !== e2);
28740
28779
  t2 = n2.length > 0 ? n2 : [];
28741
28780
  } else t2 = [
28742
- ...EJ,
28781
+ ...DJ,
28743
28782
  t2
28744
28783
  ];
28745
28784
  else t2 = [
28746
28785
  t2
28747
28786
  ];
28748
- else EJ === e2 && (t2 = null);
28749
- DJ(t2), (_ ?? $) || SJ(false);
28750
- }, t[37] = _, t[38] = $, t[39] = SJ, t[40] = DJ, t[41] = EJ, t[42] = AJ) : AJ = t[42];
28751
- let jJ = AJ, MJ;
28752
- t[43] !== _J || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== EJ ? (MJ = () => $ && _J && E ? E : EJ == null ? E ?? "--" : Array.isArray(EJ) ? EJ.length === 0 ? E ?? "--" : EJ.length === 1 && d !== void 0 ? d(EJ[0]) : `${EJ.length} selected` : d === void 0 ? E ?? "--" : d(EJ), t[43] = _J, t[44] = d, t[45] = $, t[46] = E, t[47] = EJ, t[48] = MJ) : MJ = t[48];
28753
- let NJ = MJ, PJ;
28754
- t[49] !== jJ || t[50] !== kJ ? (PJ = {
28755
- isSelected: kJ,
28756
- onSelect: jJ
28757
- }, t[49] = jJ, t[50] = kJ, t[51] = PJ) : PJ = t[51];
28758
- let FJ = PJ, IJ;
28759
- t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (IJ = cn("relative"), t[52] = IJ) : IJ = t[52];
28760
- let LJ;
28761
- t[53] !== vJ || t[54] !== SJ ? (LJ = (e2) => {
28762
- vJ && e2 || SJ(e2);
28763
- }, t[53] = vJ, t[54] = SJ, t[55] = LJ) : LJ = t[55];
28764
- let RJ = vJ && "cursor-not-allowed opacity-50", zJ;
28765
- t[56] !== a || t[57] !== RJ ? (zJ = 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", RJ, a), t[56] = a, t[57] = RJ, t[58] = zJ) : zJ = t[58];
28766
- let BJ;
28767
- t[59] !== O || t[60] !== NJ || t[61] !== EJ ? (BJ = O ? O(EJ ?? null) : NJ(), t[59] = O, t[60] = NJ, t[61] = EJ, t[62] = BJ) : BJ = t[62];
28787
+ else DJ === e2 && (t2 = null);
28788
+ OJ(t2), (_ ?? $) || CJ(false);
28789
+ }, t[37] = _, t[38] = $, t[39] = CJ, t[40] = OJ, t[41] = DJ, t[42] = jJ) : jJ = t[42];
28790
+ let MJ = jJ, NJ;
28791
+ t[43] !== vJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== DJ ? (NJ = () => $ && vJ && E ? E : DJ == null ? E ?? "--" : Array.isArray(DJ) ? DJ.length === 0 ? E ?? "--" : DJ.length === 1 && d !== void 0 ? d(DJ[0]) : `${DJ.length} selected` : d === void 0 ? E ?? "--" : d(DJ), t[43] = vJ, t[44] = d, t[45] = $, t[46] = E, t[47] = DJ, t[48] = NJ) : NJ = t[48];
28792
+ let PJ = NJ, FJ;
28793
+ t[49] !== MJ || t[50] !== AJ ? (FJ = {
28794
+ isSelected: AJ,
28795
+ onSelect: MJ
28796
+ }, t[49] = MJ, t[50] = AJ, t[51] = FJ) : FJ = t[51];
28797
+ let IJ = FJ, LJ;
28798
+ t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (LJ = cn("relative"), t[52] = LJ) : LJ = t[52];
28799
+ let RJ;
28800
+ t[53] !== yJ || t[54] !== CJ ? (RJ = (e2) => {
28801
+ yJ && e2 || CJ(e2);
28802
+ }, t[53] = yJ, t[54] = CJ, t[55] = RJ) : RJ = t[55];
28803
+ let zJ = yJ && "cursor-not-allowed opacity-50", BJ;
28804
+ t[56] !== a || t[57] !== zJ ? (BJ = 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", zJ, a), t[56] = a, t[57] = zJ, t[58] = BJ) : BJ = t[58];
28768
28805
  let VJ;
28769
- t[63] === BJ ? VJ = t[64] : (VJ = (0, import_jsx_runtime.jsx)("span", {
28770
- className: "truncate flex-1 min-w-0",
28771
- children: BJ
28772
- }), t[63] = BJ, t[64] = VJ);
28806
+ t[59] !== O || t[60] !== PJ || t[61] !== DJ ? (VJ = O ? O(DJ ?? null) : PJ(), t[59] = O, t[60] = PJ, t[61] = DJ, t[62] = VJ) : VJ = t[62];
28773
28807
  let HJ;
28774
- t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (HJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28808
+ t[63] === VJ ? HJ = t[64] : (HJ = (0, import_jsx_runtime.jsx)("span", {
28809
+ className: "truncate flex-1 min-w-0",
28810
+ children: VJ
28811
+ }), t[63] = VJ, t[64] = HJ);
28812
+ let UJ;
28813
+ t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (UJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
28775
28814
  className: "ml-3 w-4 h-4 opacity-50 shrink-0"
28776
- }), t[65] = HJ) : HJ = t[65];
28777
- let WJ;
28778
- t[66] !== vJ || t[67] !== h || t[68] !== CJ || t[69] !== zJ || t[70] !== VJ ? (WJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28815
+ }), t[65] = UJ) : UJ = t[65];
28816
+ let GJ;
28817
+ t[66] !== yJ || t[67] !== h || t[68] !== wJ || t[69] !== BJ || t[70] !== HJ ? (GJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
28779
28818
  asChild: true,
28780
28819
  children: (0, import_jsx_runtime.jsxs)("button", {
28781
28820
  id: h,
28782
28821
  type: "button",
28783
- className: zJ,
28784
- "aria-expanded": CJ,
28785
- "aria-disabled": vJ,
28822
+ className: BJ,
28823
+ "aria-expanded": wJ,
28824
+ "aria-disabled": yJ,
28786
28825
  children: [
28787
- VJ,
28788
- HJ
28826
+ HJ,
28827
+ UJ
28789
28828
  ]
28790
28829
  })
28791
- }), t[66] = vJ, t[67] = h, t[68] = CJ, t[69] = zJ, t[70] = VJ, t[71] = WJ) : WJ = t[71];
28792
- let GJ;
28793
- t[72] !== hJ || t[73] !== y || t[74] !== M ? (GJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28794
- placeholder: hJ,
28830
+ }), t[66] = yJ, t[67] = h, t[68] = wJ, t[69] = BJ, t[70] = HJ, t[71] = GJ) : GJ = t[71];
28831
+ let KJ;
28832
+ t[72] !== gJ || t[73] !== y || t[74] !== M ? (KJ = (0, import_jsx_runtime.jsx)(CommandInput, {
28833
+ placeholder: gJ,
28795
28834
  rootClassName: "px-1 h-8",
28796
28835
  autoFocus: true,
28797
28836
  value: M,
28798
28837
  onValueChange: y
28799
- }), t[72] = hJ, t[73] = y, t[74] = M, t[75] = GJ) : GJ = t[75];
28800
- let qJ;
28801
- t[76] === gJ ? qJ = t[77] : (qJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28802
- children: gJ
28803
- }), t[76] = gJ, t[77] = qJ);
28838
+ }), t[72] = gJ, t[73] = y, t[74] = M, t[75] = KJ) : KJ = t[75];
28804
28839
  let JJ;
28805
- t[78] !== n || t[79] !== FJ ? (JJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28806
- value: FJ,
28807
- children: n
28808
- }), t[78] = n, t[79] = FJ, t[80] = JJ) : JJ = t[80];
28840
+ t[76] === _J ? JJ = t[77] : (JJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28841
+ children: _J
28842
+ }), t[76] = _J, t[77] = JJ);
28809
28843
  let YJ;
28810
- t[81] !== qJ || t[82] !== JJ ? (YJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28844
+ t[78] !== n || t[79] !== IJ ? (YJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28845
+ value: IJ,
28846
+ children: n
28847
+ }), t[78] = n, t[79] = IJ, t[80] = YJ) : YJ = t[80];
28848
+ let XJ;
28849
+ t[81] !== JJ || t[82] !== YJ ? (XJ = (0, import_jsx_runtime.jsxs)(CommandList, {
28811
28850
  className: "max-h-60 py-.5",
28812
28851
  children: [
28813
- qJ,
28814
- JJ
28852
+ JJ,
28853
+ YJ
28815
28854
  ]
28816
- }), t[81] = qJ, t[82] = JJ, t[83] = YJ) : YJ = t[83];
28817
- let XJ;
28818
- t[84] !== f || t[85] !== mJ || t[86] !== GJ || t[87] !== YJ ? (XJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28855
+ }), t[81] = JJ, t[82] = YJ, t[83] = XJ) : XJ = t[83];
28856
+ let ZJ;
28857
+ t[84] !== f || t[85] !== hJ || t[86] !== KJ || t[87] !== XJ ? (ZJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
28819
28858
  className: "w-full min-w-(--radix-popover-trigger-width) p-0",
28820
28859
  align: "start",
28821
28860
  children: (0, import_jsx_runtime.jsxs)(Command, {
28822
28861
  filter: f,
28823
- shouldFilter: mJ,
28862
+ shouldFilter: hJ,
28824
28863
  children: [
28825
- GJ,
28826
- YJ
28864
+ KJ,
28865
+ XJ
28827
28866
  ]
28828
28867
  })
28829
- }), t[84] = f, t[85] = mJ, t[86] = GJ, t[87] = YJ, t[88] = XJ) : XJ = t[88];
28830
- let ZJ;
28831
- t[89] !== CJ || t[90] !== LJ || t[91] !== WJ || t[92] !== XJ ? (ZJ = (0, import_jsx_runtime.jsxs)(Popover, {
28832
- open: CJ,
28833
- onOpenChange: LJ,
28868
+ }), t[84] = f, t[85] = hJ, t[86] = KJ, t[87] = XJ, t[88] = ZJ) : ZJ = t[88];
28869
+ let QJ;
28870
+ t[89] !== wJ || t[90] !== RJ || t[91] !== GJ || t[92] !== ZJ ? (QJ = (0, import_jsx_runtime.jsxs)(Popover, {
28871
+ open: wJ,
28872
+ onOpenChange: RJ,
28834
28873
  children: [
28835
- WJ,
28836
- XJ
28874
+ GJ,
28875
+ ZJ
28837
28876
  ]
28838
- }), t[89] = CJ, t[90] = LJ, t[91] = WJ, t[92] = XJ, t[93] = ZJ) : ZJ = t[93];
28839
- let QJ;
28840
- t[94] !== _J || t[95] !== i || t[96] !== vJ || t[97] !== d || t[98] !== jJ || t[99] !== $ || t[100] !== EJ ? (QJ = $ && _J && (0, import_jsx_runtime.jsx)("div", {
28877
+ }), t[89] = wJ, t[90] = RJ, t[91] = GJ, t[92] = ZJ, t[93] = QJ) : QJ = t[93];
28878
+ let $J;
28879
+ t[94] !== vJ || t[95] !== i || t[96] !== yJ || t[97] !== d || t[98] !== MJ || t[99] !== $ || t[100] !== DJ ? ($J = $ && vJ && (0, import_jsx_runtime.jsx)("div", {
28841
28880
  className: cn("flex flex-col gap-1 items-start", i),
28842
- children: Array.isArray(EJ) && EJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28881
+ children: Array.isArray(DJ) && DJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28843
28882
  variant: "secondary",
28844
28883
  children: [
28845
28884
  (d == null ? void 0 : d(e2)) ?? String(e2),
28846
28885
  (0, import_jsx_runtime.jsx)(CircleX, {
28847
28886
  onClick: () => {
28848
- vJ || jJ(e2);
28887
+ yJ || MJ(e2);
28849
28888
  },
28850
- className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", vJ && "pointer-events-none")
28889
+ className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", yJ && "pointer-events-none")
28851
28890
  })
28852
28891
  ]
28853
28892
  }, String(e2)))
28854
- }), t[94] = _J, t[95] = i, t[96] = vJ, t[97] = d, t[98] = jJ, t[99] = $, t[100] = EJ, t[101] = QJ) : QJ = t[101];
28855
- let $J;
28856
- return t[102] !== A || t[103] !== ZJ || t[104] !== QJ ? ($J = (0, import_jsx_runtime.jsxs)("div", {
28857
- className: IJ,
28893
+ }), t[94] = vJ, t[95] = i, t[96] = yJ, t[97] = d, t[98] = MJ, t[99] = $, t[100] = DJ, t[101] = $J) : $J = t[101];
28894
+ let eY;
28895
+ return t[102] !== A || t[103] !== QJ || t[104] !== $J ? (eY = (0, import_jsx_runtime.jsxs)("div", {
28896
+ className: LJ,
28858
28897
  ...A,
28859
28898
  children: [
28860
- ZJ,
28861
- QJ
28899
+ QJ,
28900
+ $J
28862
28901
  ]
28863
- }), t[102] = A, t[103] = ZJ, t[104] = QJ, t[105] = $J) : $J = t[105], $J;
28902
+ }), t[102] = A, t[103] = QJ, t[104] = $J, t[105] = eY) : eY = t[105], eY;
28864
28903
  };
28865
28904
  ComboboxItem = import_react.forwardRef((e, t) => {
28866
28905
  let n = (0, import_compiler_runtime$35.c)(20), { children: i, className: a, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
@@ -29916,17 +29955,17 @@ ${n}` : "Please fix this error.";
29916
29955
  searchQuery: M,
29917
29956
  filteredOptions: z
29918
29957
  }, t[9] = z, t[10] = n, t[11] = _, t[12] = M, t[13] = i, t[14] = U) : U = t[14];
29919
- let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), mJ;
29920
- t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (mJ = {
29958
+ let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), hJ;
29959
+ t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (hJ = {
29921
29960
  value: i,
29922
29961
  onChange: a,
29923
29962
  multiple: o,
29924
29963
  maxSelections: s,
29925
29964
  allowSelectNone: c,
29926
29965
  selected: y
29927
- }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = mJ) : mJ = t[21];
29928
- let { isChecked: hJ, toggle: gJ } = useToggle(mJ), _J;
29929
- t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (_J = {
29966
+ }, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = hJ) : hJ = t[21];
29967
+ let { isChecked: gJ, toggle: _J } = useToggle(hJ), vJ;
29968
+ t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (vJ = {
29930
29969
  value: i,
29931
29970
  onChange: a,
29932
29971
  multiple: o,
@@ -29934,24 +29973,24 @@ ${n}` : "Please fix this error.";
29934
29973
  filteredOptions: z,
29935
29974
  searchQuery: M,
29936
29975
  maxSelections: s
29937
- }, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = _J) : _J = t[29];
29938
- let { bulkActions: vJ } = useBulk(_J), yJ;
29939
- t[30] !== J || t[31] !== I ? (yJ = (e2) => {
29976
+ }, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = vJ) : vJ = t[29];
29977
+ let { bulkActions: yJ } = useBulk(vJ), bJ;
29978
+ t[30] !== J || t[31] !== I ? (bJ = (e2) => {
29940
29979
  I(e2), e2 === "" && J();
29941
- }, t[30] = J, t[31] = I, t[32] = yJ) : yJ = t[32];
29942
- let bJ = yJ, xJ;
29943
- return t[33] !== vJ || t[34] !== hJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== bJ || t[41] !== gJ || t[42] !== Q ? (xJ = {
29980
+ }, t[30] = J, t[31] = I, t[32] = bJ) : bJ = t[32];
29981
+ let xJ = bJ, SJ;
29982
+ return t[33] !== yJ || t[34] !== gJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== xJ || t[41] !== _J || t[42] !== Q ? (SJ = {
29944
29983
  searchQuery: M,
29945
- setSearchQuery: bJ,
29984
+ setSearchQuery: xJ,
29946
29985
  open: K,
29947
29986
  setOpen: q,
29948
29987
  visibleOptions: Q,
29949
29988
  pinnedCount: $,
29950
- isChecked: hJ,
29951
- toggle: gJ,
29952
- bulkActions: vJ,
29989
+ isChecked: gJ,
29990
+ toggle: _J,
29991
+ bulkActions: yJ,
29953
29992
  labelOf: O
29954
- }, t[33] = vJ, t[34] = hJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = bJ, t[41] = gJ, t[42] = Q, t[43] = xJ) : xJ = t[43], xJ;
29993
+ }, t[33] = yJ, t[34] = gJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = xJ, t[41] = _J, t[42] = Q, t[43] = SJ) : SJ = t[43], SJ;
29955
29994
  };
29956
29995
  const Sets = {
29957
29996
  merge(...e) {
@@ -30280,7 +30319,7 @@ ${n}` : "Please fix this error.";
30280
30319
  type: S,
30281
30320
  operator: E,
30282
30321
  draft: mergeNumberTextDraft(A, I)
30283
- }), $ = Q === void 0, mJ = $ ? getMissingValueMessage(S, E) : "Apply filter", hJ = () => {
30322
+ }), $ = Q === void 0, hJ = $ ? getMissingValueMessage(S, E) : "Apply filter", gJ = () => {
30284
30323
  if (!Q) return;
30285
30324
  let e2 = Q;
30286
30325
  t.setColumnFilters((t2) => {
@@ -30299,20 +30338,20 @@ ${n}` : "Please fix this error.";
30299
30338
  value: e2
30300
30339
  }, n2;
30301
30340
  }), i();
30302
- }, gJ = () => {
30341
+ }, _J = () => {
30303
30342
  a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
30304
- }, _J = !OPERATORS_WITHOUT_VALUE.has(E), vJ = OPERATORS_BY_TYPE[S], yJ = (0, import_react.useRef)(null), bJ = (0, import_react.useRef)(null);
30343
+ }, vJ = !OPERATORS_WITHOUT_VALUE.has(E), yJ = OPERATORS_BY_TYPE[S], bJ = (0, import_react.useRef)(null), xJ = (0, import_react.useRef)(null);
30305
30344
  return (0, import_react.useEffect)(() => {
30306
30345
  var _a2, _b;
30307
- let e2 = (_a2 = yJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30308
- e2 ? e2.focus() : (_b = bJ.current) == null ? void 0 : _b.focus();
30346
+ let e2 = (_a2 = bJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
30347
+ e2 ? e2.focus() : (_b = xJ.current) == null ? void 0 : _b.focus();
30309
30348
  }, [
30310
30349
  S,
30311
30350
  E
30312
30351
  ]), (0, import_jsx_runtime.jsxs)("form", {
30313
30352
  className: "flex flex-row gap-4 items-end p-3",
30314
30353
  onSubmit: (e2) => {
30315
- e2.preventDefault(), hJ();
30354
+ e2.preventDefault(), gJ();
30316
30355
  },
30317
30356
  onKeyDownCapture: (e2) => {
30318
30357
  e2.key === "Tab" && e2.stopPropagation();
@@ -30353,13 +30392,13 @@ ${n}` : "Please fix this error.";
30353
30392
  onValueChange: (e2) => J(e2),
30354
30393
  children: [
30355
30394
  (0, import_jsx_runtime.jsx)(SelectTrigger, {
30356
- ref: bJ,
30395
+ ref: xJ,
30357
30396
  id: s,
30358
30397
  className: "h-6 mb-1 bg-transparent",
30359
30398
  children: (0, import_jsx_runtime.jsx)(SelectValue, {})
30360
30399
  }),
30361
30400
  (0, import_jsx_runtime.jsx)(SelectContent, {
30362
- children: vJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30401
+ children: yJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
30363
30402
  value: e2,
30364
30403
  children: OPERATOR_LABELS[e2]
30365
30404
  }, e2))
@@ -30368,8 +30407,8 @@ ${n}` : "Please fix this error.";
30368
30407
  }, S)
30369
30408
  ]
30370
30409
  }),
30371
- _J && (0, import_jsx_runtime.jsxs)("div", {
30372
- ref: yJ,
30410
+ vJ && (0, import_jsx_runtime.jsxs)("div", {
30411
+ ref: bJ,
30373
30412
  className: "flex flex-col gap-1",
30374
30413
  children: [
30375
30414
  (0, import_jsx_runtime.jsx)("label", {
@@ -30396,7 +30435,7 @@ ${n}` : "Please fix this error.";
30396
30435
  className: "flex gap-1 mb-1",
30397
30436
  children: [
30398
30437
  (0, import_jsx_runtime.jsx)(Tooltip, {
30399
- content: mJ,
30438
+ content: hJ,
30400
30439
  children: (0, import_jsx_runtime.jsx)("span", {
30401
30440
  className: "inline-flex",
30402
30441
  children: (0, import_jsx_runtime.jsx)(Button, {
@@ -30435,7 +30474,7 @@ ${n}` : "Please fix this error.";
30435
30474
  size: "icon",
30436
30475
  variant: "ghost",
30437
30476
  className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
30438
- onClick: gJ,
30477
+ onClick: _J,
30439
30478
  "aria-label": "Remove filter",
30440
30479
  children: (0, import_jsx_runtime.jsx)(Trash2, {
30441
30480
  className: "h-3.5 w-3.5",
@@ -32643,29 +32682,29 @@ ${n}` : "Please fix this error.";
32643
32682
  }, t[16] = a, t[17] = J);
32644
32683
  let Q = useEvent_default(J), $;
32645
32684
  t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
32646
- let mJ = useEvent_default($), hJ, gJ;
32647
- t[20] === S ? (hJ = t[21], gJ = t[22]) : (hJ = () => (window.addEventListener("scroll", S, {
32685
+ let hJ = useEvent_default($), gJ, _J;
32686
+ t[20] === S ? (gJ = t[21], _J = t[22]) : (gJ = () => (window.addEventListener("scroll", S, {
32648
32687
  passive: true,
32649
32688
  capture: true
32650
32689
  }), window.addEventListener("resize", S), () => {
32651
32690
  window.removeEventListener("scroll", S, {
32652
32691
  capture: true
32653
32692
  }), window.removeEventListener("resize", S);
32654
- }), gJ = [
32693
+ }), _J = [
32655
32694
  S
32656
- ], t[20] = S, t[21] = hJ, t[22] = gJ), (0, import_react.useEffect)(hJ, gJ);
32657
- let _J, vJ;
32658
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_J = () => v, vJ = [], t[23] = _J, t[24] = vJ) : (_J = t[23], vJ = t[24]), (0, import_react.useEffect)(_J, vJ);
32659
- let yJ;
32660
- return t[25] !== mJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (yJ = {
32695
+ ], t[20] = S, t[21] = gJ, t[22] = _J), (0, import_react.useEffect)(gJ, _J);
32696
+ let vJ, yJ;
32697
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (vJ = () => v, yJ = [], t[23] = vJ, t[24] = yJ) : (vJ = t[23], yJ = t[24]), (0, import_react.useEffect)(vJ, yJ);
32698
+ let bJ;
32699
+ return t[25] !== hJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (bJ = {
32661
32700
  tooltipState: o,
32662
32701
  tooltipContentId: d,
32663
32702
  hideTooltip: S,
32664
32703
  handleCellMouseOver: U,
32665
32704
  handleCellMouseLeave: q,
32666
32705
  handleCellFocus: Q,
32667
- handleCellBlur: mJ
32668
- }, t[25] = mJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = yJ) : yJ = t[32], yJ;
32706
+ handleCellBlur: hJ
32707
+ }, t[25] = hJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = bJ) : bJ = t[32], bJ;
32669
32708
  }
32670
32709
  var import_compiler_runtime$18 = require_compiler_runtime();
32671
32710
  const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
@@ -34110,7 +34149,7 @@ ${n}` : "Please fix this error.";
34110
34149
  filename: i2.filename
34111
34150
  };
34112
34151
  }, t[6] = e, t[7] = O);
34113
- let A = O, I, z, U, K, q, J, Q, $, mJ, hJ, gJ, _J, vJ;
34152
+ let A = O, I, z, U, K, q, J, Q, $, hJ, gJ, _J, vJ, yJ;
34114
34153
  if (t[8] !== E || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
34115
34154
  let e2 = async (t2) => {
34116
34155
  let n2 = labelForDownloadFormat(t2);
@@ -34176,10 +34215,10 @@ ${n}` : "Please fix this error.";
34176
34215
  content: d,
34177
34216
  open: o,
34178
34217
  children: h
34179
- }), t[32] = o, t[33] = h, t[34] = d, t[35] = $) : $ = t[35], I = DropdownMenuContent, mJ = "bottom", hJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (gJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34218
+ }), t[32] = o, t[33] = h, t[34] = d, t[35] = $) : $ = t[35], I = DropdownMenuContent, hJ = "bottom", gJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_J = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34180
34219
  className: "text-xs text-muted-foreground",
34181
34220
  children: "Download"
34182
- }), t[36] = gJ) : gJ = t[36], _J = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34221
+ }), t[36] = _J) : _J = t[36], vJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34183
34222
  onSelect: () => {
34184
34223
  e2(t2.format);
34185
34224
  },
@@ -34200,10 +34239,10 @@ ${n}` : "Please fix this error.";
34200
34239
  ]
34201
34240
  })
34202
34241
  ]
34203
- }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (vJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), U = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34242
+ }, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (yJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), U = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
34204
34243
  className: "text-xs text-muted-foreground",
34205
34244
  children: "Copy to clipboard"
34206
- }), t[37] = U, t[38] = vJ) : (U = t[37], vJ = t[38]), K = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34245
+ }), t[37] = U, t[38] = yJ) : (U = t[37], yJ = t[38]), K = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
34207
34246
  onSelect: async () => {
34208
34247
  try {
34209
34248
  await a2(e3.format);
@@ -34232,30 +34271,30 @@ ${n}` : "Please fix this error.";
34232
34271
  ]
34233
34272
  })
34234
34273
  ]
34235
- }, e3.label)), t[8] = E, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = I, t[14] = z, t[15] = U, t[16] = K, t[17] = q, t[18] = J, t[19] = Q, t[20] = $, t[21] = mJ, t[22] = hJ, t[23] = gJ, t[24] = _J, t[25] = vJ;
34236
- } else I = t[13], z = t[14], U = t[15], K = t[16], q = t[17], J = t[18], Q = t[19], $ = t[20], mJ = t[21], hJ = t[22], gJ = t[23], _J = t[24], vJ = t[25];
34237
- let yJ;
34238
- t[39] !== I || t[40] !== U || t[41] !== K || t[42] !== mJ || t[43] !== hJ || t[44] !== gJ || t[45] !== _J || t[46] !== vJ ? (yJ = (0, import_jsx_runtime.jsxs)(I, {
34239
- side: mJ,
34240
- className: hJ,
34274
+ }, e3.label)), t[8] = E, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = I, t[14] = z, t[15] = U, t[16] = K, t[17] = q, t[18] = J, t[19] = Q, t[20] = $, t[21] = hJ, t[22] = gJ, t[23] = _J, t[24] = vJ, t[25] = yJ;
34275
+ } else I = t[13], z = t[14], U = t[15], K = t[16], q = t[17], J = t[18], Q = t[19], $ = t[20], hJ = t[21], gJ = t[22], _J = t[23], vJ = t[24], yJ = t[25];
34276
+ let bJ;
34277
+ t[39] !== I || t[40] !== U || t[41] !== K || t[42] !== hJ || t[43] !== gJ || t[44] !== _J || t[45] !== vJ || t[46] !== yJ ? (bJ = (0, import_jsx_runtime.jsxs)(I, {
34278
+ side: hJ,
34279
+ className: gJ,
34241
34280
  children: [
34242
- gJ,
34243
34281
  _J,
34244
34282
  vJ,
34283
+ yJ,
34245
34284
  U,
34246
34285
  K
34247
34286
  ]
34248
- }), t[39] = I, t[40] = U, t[41] = K, t[42] = mJ, t[43] = hJ, t[44] = gJ, t[45] = _J, t[46] = vJ, t[47] = yJ) : yJ = t[47];
34249
- let bJ;
34250
- return t[48] !== z || t[49] !== q || t[50] !== J || t[51] !== Q || t[52] !== $ || t[53] !== yJ ? (bJ = (0, import_jsx_runtime.jsxs)(z, {
34287
+ }), t[39] = I, t[40] = U, t[41] = K, t[42] = hJ, t[43] = gJ, t[44] = _J, t[45] = vJ, t[46] = yJ, t[47] = bJ) : bJ = t[47];
34288
+ let xJ;
34289
+ return t[48] !== z || t[49] !== q || t[50] !== J || t[51] !== Q || t[52] !== $ || t[53] !== bJ ? (xJ = (0, import_jsx_runtime.jsxs)(z, {
34251
34290
  modal: q,
34252
34291
  open: J,
34253
34292
  onOpenChange: Q,
34254
34293
  children: [
34255
34294
  $,
34256
- yJ
34295
+ bJ
34257
34296
  ]
34258
- }), t[48] = z, t[49] = q, t[50] = J, t[51] = Q, t[52] = $, t[53] = yJ, t[54] = bJ) : bJ = t[54], bJ;
34297
+ }), t[48] = z, t[49] = q, t[50] = J, t[51] = Q, t[52] = $, t[53] = bJ, t[54] = xJ) : xJ = t[54], xJ;
34259
34298
  };
34260
34299
  function fetchJson(e) {
34261
34300
  return fetchText(e).then(jsonParseWithSpecialChar);
@@ -34351,22 +34390,22 @@ ${n}` : "Please fix this error.";
34351
34390
  ]
34352
34391
  });
34353
34392
  };
34354
- DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: a, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds: mJ, showSearch: hJ = false, searchQuery: gJ, onSearchQueryChange: _J, showFilters: vJ = false, filters: yJ, onFiltersChange: bJ, calculateTopKRows: xJ, reloading: SJ, freezeColumnsLeft: CJ, freezeColumnsRight: wJ, hiddenColumns: TJ, toggleDisplayHeader: EJ, showChartBuilder: DJ, isChartBuilderOpen: OJ, showPageSizeSelector: kJ, showTableExplorer: AJ, togglePanel: jJ, isPanelOpen: MJ, isAnyPanelOpen: NJ, viewedRowIdx: PJ, onViewedRowChange: FJ, renderTableExplorerPanel: IJ }) => {
34355
- let LJ = isStaticNotebook(), RJ = !LJ, [zJ, BJ] = import_react.useState(false), { locale: VJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: HJ, setColumnPinning: UJ } = useColumnPinning(CJ, wJ), { columnVisibility: WJ, setColumnVisibility: GJ } = useColumnVisibility(TJ);
34393
+ DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: a, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds: hJ, showSearch: gJ = false, searchQuery: _J, onSearchQueryChange: vJ, showFilters: yJ = false, filters: bJ, onFiltersChange: xJ, calculateTopKRows: SJ, reloading: CJ, freezeColumnsLeft: wJ, freezeColumnsRight: TJ, hiddenColumns: EJ, toggleDisplayHeader: DJ, showChartBuilder: OJ, isChartBuilderOpen: kJ, showPageSizeSelector: AJ, showTableExplorer: jJ, togglePanel: MJ, isPanelOpen: NJ, isAnyPanelOpen: PJ, viewedRowIdx: FJ, onViewedRowChange: IJ, renderTableExplorerPanel: LJ }) => {
34394
+ let RJ = isStaticNotebook(), zJ = !RJ, [BJ, VJ] = import_react.useState(false), { locale: HJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: UJ, setColumnPinning: WJ } = useColumnPinning(wJ, TJ), { columnVisibility: GJ, setColumnVisibility: KJ } = useColumnVisibility(EJ);
34356
34395
  import_react.useEffect(() => {
34357
34396
  let e2;
34358
- return SJ ? e2 = setTimeout(() => {
34359
- BJ(true);
34360
- }, 300) : BJ(false), () => {
34397
+ return CJ ? e2 = setTimeout(() => {
34398
+ VJ(true);
34399
+ }, 300) : VJ(false), () => {
34361
34400
  e2 && clearTimeout(e2);
34362
34401
  };
34363
34402
  }, [
34364
- SJ
34403
+ CJ
34365
34404
  ]);
34366
- function KJ(e2, t2) {
34405
+ function qJ(e2, t2) {
34367
34406
  return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
34368
34407
  }
34369
- let qJ = useReactTable({
34408
+ let JJ = useReactTable({
34370
34409
  _features: [
34371
34410
  ColumnPinning,
34372
34411
  ColumnWrappingFeature,
@@ -34390,37 +34429,37 @@ ${n}` : "Please fix this error.";
34390
34429
  getRowId: (e2, t2) => {
34391
34430
  let n2 = getStableRowId(e2);
34392
34431
  if (n2) return n2;
34393
- let i2 = KJ(e2, t2);
34432
+ let i2 = qJ(e2, t2);
34394
34433
  return String(i2);
34395
34434
  }
34396
34435
  } : {},
34397
- locale: VJ,
34436
+ locale: HJ,
34398
34437
  manualPagination: q,
34399
34438
  getPaginationRowModel: getPaginationRowModel(),
34400
34439
  ...w ? {
34401
34440
  onSortingChange: w
34402
34441
  } : {},
34403
34442
  manualSorting: y,
34404
- enableSorting: !LJ,
34443
+ enableSorting: !RJ,
34405
34444
  enableMultiSort: true,
34406
34445
  getSortedRowModel: getSortedRowModel(),
34407
34446
  manualFiltering: true,
34408
- enableColumnFilters: vJ && !LJ,
34447
+ enableColumnFilters: yJ && !RJ,
34409
34448
  getFilteredRowModel: getFilteredRowModel(),
34410
- onColumnFiltersChange: bJ,
34449
+ onColumnFiltersChange: xJ,
34411
34450
  onRowSelectionChange: Q,
34412
34451
  onCellSelectionChange: $,
34413
34452
  enableCellSelection: c === "single-cell" || c === "multi-cell",
34414
34453
  enableMultiCellSelection: c === "multi-cell",
34415
- onColumnPinningChange: UJ,
34416
- onColumnVisibilityChange: GJ,
34454
+ onColumnPinningChange: WJ,
34455
+ onColumnVisibilityChange: KJ,
34417
34456
  enableFocusRow: true,
34418
- onFocusRowChange: FJ,
34457
+ onFocusRowChange: IJ,
34419
34458
  state: {
34420
34459
  ...S ? {
34421
34460
  sorting: S
34422
34461
  } : {},
34423
- columnFilters: yJ,
34462
+ columnFilters: bJ,
34424
34463
  ...z ? {
34425
34464
  pagination: z
34426
34465
  } : J && !z ? {} : {
@@ -34431,60 +34470,60 @@ ${n}` : "Please fix this error.";
34431
34470
  },
34432
34471
  rowSelection: E ?? {},
34433
34472
  cellSelection: O ?? [],
34434
- columnVisibility: WJ,
34473
+ columnVisibility: GJ,
34435
34474
  cellStyling: A,
34436
- columnPinning: HJ,
34475
+ columnPinning: UJ,
34437
34476
  cellHoverTemplate: M,
34438
34477
  cellHoverTexts: I ?? {}
34439
34478
  }
34440
- }), JJ = (MJ == null ? void 0 : MJ(PANEL_TYPES.ROW_VIEWER)) ?? false, YJ = !J && a.length > 100, XJ = useScrollContainerHeight({
34479
+ }), YJ = (NJ == null ? void 0 : NJ(PANEL_TYPES.ROW_VIEWER)) ?? false, XJ = !J && a.length > 100, ZJ = useScrollContainerHeight({
34441
34480
  maxHeight: n,
34442
- virtualize: YJ
34443
- }), [ZJ, QJ] = import_react.useState(null), $J = import_react.useMemo(() => ({
34481
+ virtualize: XJ
34482
+ }), [QJ, $J] = import_react.useState(null), eY = import_react.useMemo(() => ({
34444
34483
  requestAddFilter: (e2) => {
34445
- let t2 = qJ.getColumn(e2.columnId);
34446
- t2 && QJ(buildEditorSnapshot(t2, {
34484
+ let t2 = JJ.getColumn(e2.columnId);
34485
+ t2 && $J(buildEditorSnapshot(t2, {
34447
34486
  operator: e2.operator
34448
34487
  }));
34449
34488
  }
34450
34489
  }), [
34451
- qJ
34452
- ]), eY = getUserColumnVisibilityCounts(qJ), tY = eY.total > 0 && eY.visible === 0;
34490
+ JJ
34491
+ ]), tY = getUserColumnVisibilityCounts(JJ), nY = tY.total > 0 && tY.visible === 0;
34453
34492
  return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
34454
- value: $J,
34493
+ value: eY,
34455
34494
  children: (0, import_jsx_runtime.jsxs)("div", {
34456
34495
  className: cn(e, "flex flex-col space-y-1"),
34457
34496
  children: [
34458
34497
  (0, import_jsx_runtime.jsx)(FilterPills, {
34459
- filters: yJ,
34460
- table: qJ,
34461
- calculateTopKRows: xJ,
34462
- addFilterSnapshot: ZJ,
34463
- onAddFilterSnapshotChange: QJ
34498
+ filters: bJ,
34499
+ table: JJ,
34500
+ calculateTopKRows: SJ,
34501
+ addFilterSnapshot: QJ,
34502
+ onAddFilterSnapshotChange: $J
34464
34503
  }),
34465
- IJ == null ? void 0 : IJ(qJ),
34504
+ LJ == null ? void 0 : LJ(JJ),
34466
34505
  (0, import_jsx_runtime.jsx)(CellSelectionProvider, {
34467
34506
  children: (0, import_jsx_runtime.jsxs)("div", {
34468
34507
  part: "table-wrapper",
34469
34508
  className: cn(t || "rounded-md border overflow-hidden"),
34470
34509
  children: [
34471
- RJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
34472
- table: qJ,
34473
- showSearch: hJ,
34474
- searchQuery: gJ,
34475
- onSearchQueryChange: _J,
34476
- reloading: SJ,
34477
- showChartBuilder: DJ,
34478
- isChartBuilderOpen: OJ,
34479
- toggleDisplayHeader: EJ,
34480
- showTableExplorer: AJ,
34481
- togglePanel: jJ,
34482
- isAnyPanelOpen: NJ,
34510
+ zJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
34511
+ table: JJ,
34512
+ showSearch: gJ,
34513
+ searchQuery: _J,
34514
+ onSearchQueryChange: vJ,
34515
+ reloading: CJ,
34516
+ showChartBuilder: OJ,
34517
+ isChartBuilderOpen: kJ,
34518
+ toggleDisplayHeader: DJ,
34519
+ showTableExplorer: jJ,
34520
+ togglePanel: MJ,
34521
+ isAnyPanelOpen: PJ,
34483
34522
  downloadAs: K,
34484
34523
  sizeBytes: _,
34485
34524
  sizeBytesIsLoading: v
34486
34525
  }),
34487
- tY && (0, import_jsx_runtime.jsxs)(Banner, {
34526
+ nY && (0, import_jsx_runtime.jsxs)(Banner, {
34488
34527
  className: "mb-1 mx-2 rounded flex items-center justify-between",
34489
34528
  children: [
34490
34529
  (0, import_jsx_runtime.jsx)("span", {
@@ -34493,26 +34532,26 @@ ${n}` : "Please fix this error.";
34493
34532
  (0, import_jsx_runtime.jsx)(Button, {
34494
34533
  variant: "link",
34495
34534
  size: "xs",
34496
- onClick: () => qJ.resetColumnVisibility(true),
34535
+ onClick: () => JJ.resetColumnVisibility(true),
34497
34536
  children: "Unhide all"
34498
34537
  })
34499
34538
  ]
34500
34539
  }),
34501
34540
  (0, import_jsx_runtime.jsxs)(Table, {
34502
34541
  className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
34503
- ref: XJ,
34542
+ ref: ZJ,
34504
34543
  children: [
34505
- zJ && (0, import_jsx_runtime.jsx)("thead", {
34544
+ BJ && (0, import_jsx_runtime.jsx)("thead", {
34506
34545
  className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
34507
34546
  }),
34508
- renderTableHeader(qJ, YJ || !!n),
34547
+ renderTableHeader(JJ, XJ || !!n),
34509
34548
  (0, import_jsx_runtime.jsx)(DataTableBody, {
34510
- table: qJ,
34549
+ table: JJ,
34511
34550
  columns: i,
34512
- rowViewerPanelOpen: JJ,
34513
- getRowIndex: KJ,
34514
- viewedRowIdx: PJ,
34515
- virtualize: YJ
34551
+ rowViewerPanelOpen: YJ,
34552
+ getRowIndex: qJ,
34553
+ viewedRowIdx: FJ,
34554
+ virtualize: XJ
34516
34555
  })
34517
34556
  ]
34518
34557
  }),
@@ -34523,10 +34562,10 @@ ${n}` : "Please fix this error.";
34523
34562
  pagination: J,
34524
34563
  selection: c,
34525
34564
  onRowSelectionChange: Q,
34526
- table: qJ,
34527
- getRowIds: mJ,
34528
- showPageSizeSelector: kJ,
34529
- tableLoading: SJ
34565
+ table: JJ,
34566
+ getRowIds: hJ,
34567
+ showPageSizeSelector: AJ,
34568
+ tableLoading: CJ
34530
34569
  })
34531
34570
  ]
34532
34571
  })
@@ -34626,45 +34665,45 @@ ${d}`,
34626
34665
  prompt: buildFixInChatPrompt(a, d)
34627
34666
  });
34628
34667
  }, t[15] = a, t[16] = d, t[17] = _, t[18] = Q) : Q = t[18];
34629
- let $ = Q, mJ;
34630
- t[19] === z ? mJ = t[20] : (mJ = () => K(!z), t[19] = z, t[20] = mJ);
34631
- let hJ = z ? "Collapse traceback" : "Expand traceback", gJ;
34632
- t[21] === z ? gJ = t[22] : (gJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
34668
+ let $ = Q, hJ;
34669
+ t[19] === z ? hJ = t[20] : (hJ = () => K(!z), t[19] = z, t[20] = hJ);
34670
+ let gJ = z ? "Collapse traceback" : "Expand traceback", _J;
34671
+ t[21] === z ? _J = t[22] : (_J = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
34633
34672
  className: "h-3 w-3"
34634
34673
  }) : (0, import_jsx_runtime.jsx)(ChevronRight, {
34635
34674
  className: "h-3 w-3"
34636
- }), t[21] = z, t[22] = gJ);
34637
- let _J;
34638
- t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_J = (0, import_jsx_runtime.jsx)("span", {
34675
+ }), t[21] = z, t[22] = _J);
34676
+ let vJ;
34677
+ t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (vJ = (0, import_jsx_runtime.jsx)("span", {
34639
34678
  className: "text-[0.6875rem] uppercase tracking-wider",
34640
34679
  children: "Traceback"
34641
- }), t[23] = _J) : _J = t[23];
34642
- let vJ;
34643
- t[24] !== z || t[25] !== gJ || t[26] !== mJ || t[27] !== hJ ? (vJ = (0, import_jsx_runtime.jsxs)("button", {
34680
+ }), t[23] = vJ) : vJ = t[23];
34681
+ let yJ;
34682
+ t[24] !== z || t[25] !== _J || t[26] !== hJ || t[27] !== gJ ? (yJ = (0, import_jsx_runtime.jsxs)("button", {
34644
34683
  type: "button",
34645
- onClick: mJ,
34684
+ onClick: hJ,
34646
34685
  "aria-expanded": z,
34647
- "aria-label": hJ,
34686
+ "aria-label": gJ,
34648
34687
  className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
34649
34688
  children: [
34650
- gJ,
34651
- _J
34689
+ _J,
34690
+ vJ
34652
34691
  ]
34653
- }), t[24] = z, t[25] = gJ, t[26] = mJ, t[27] = hJ, t[28] = vJ) : vJ = t[28];
34654
- let yJ;
34655
- t[29] !== s || t[30] !== z ? (yJ = z && (0, import_jsx_runtime.jsx)("div", {
34692
+ }), t[24] = z, t[25] = _J, t[26] = hJ, t[27] = gJ, t[28] = yJ) : yJ = t[28];
34693
+ let bJ;
34694
+ t[29] !== s || t[30] !== z ? (bJ = z && (0, import_jsx_runtime.jsx)("div", {
34656
34695
  className: "text-muted-foreground pr-4 text-xs overflow-auto",
34657
34696
  children: s
34658
- }), t[29] = s, t[30] = z, t[31] = yJ) : yJ = t[31];
34659
- let bJ;
34660
- t[32] !== J || t[33] !== $ || t[34] !== M ? (bJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34697
+ }), t[29] = s, t[30] = z, t[31] = bJ) : bJ = t[31];
34698
+ let xJ;
34699
+ t[32] !== J || t[33] !== $ || t[34] !== M ? (xJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
34661
34700
  tooltip: "Fix with AI",
34662
34701
  openPrompt: () => J(false),
34663
34702
  applyAutofix: () => J(true),
34664
34703
  openChat: $
34665
- }), t[32] = J, t[33] = $, t[34] = M, t[35] = bJ) : bJ = t[35];
34666
- let xJ;
34667
- t[36] !== O || t[37] !== S ? (xJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
34704
+ }), t[32] = J, t[33] = $, t[34] = M, t[35] = xJ) : xJ = t[35];
34705
+ let SJ;
34706
+ t[36] !== O || t[37] !== S ? (SJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
34668
34707
  content: "Attach pdb to the exception point.",
34669
34708
  children: (0, import_jsx_runtime.jsxs)(Button, {
34670
34709
  size: "xs",
@@ -34681,9 +34720,9 @@ ${d}`,
34681
34720
  "Launch debugger"
34682
34721
  ]
34683
34722
  })
34684
- }), t[36] = O, t[37] = S, t[38] = xJ) : xJ = t[38];
34685
- let SJ;
34686
- t[39] !== d || t[40] !== i ? (SJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34723
+ }), t[36] = O, t[37] = S, t[38] = SJ) : SJ = t[38];
34724
+ let CJ;
34725
+ t[39] !== d || t[40] !== i ? (CJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
34687
34726
  children: [
34688
34727
  (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
34689
34728
  asChild: true,
@@ -34751,25 +34790,25 @@ ${d}`,
34751
34790
  ]
34752
34791
  })
34753
34792
  ]
34754
- }), t[39] = d, t[40] = i, t[41] = SJ) : SJ = t[41];
34755
- let CJ;
34756
- t[42] !== bJ || t[43] !== xJ || t[44] !== SJ ? (CJ = (0, import_jsx_runtime.jsxs)("div", {
34793
+ }), t[39] = d, t[40] = i, t[41] = CJ) : CJ = t[41];
34794
+ let wJ;
34795
+ t[42] !== xJ || t[43] !== SJ || t[44] !== CJ ? (wJ = (0, import_jsx_runtime.jsxs)("div", {
34757
34796
  className: "flex gap-2",
34758
34797
  children: [
34759
- bJ,
34760
34798
  xJ,
34761
- SJ
34799
+ SJ,
34800
+ CJ
34762
34801
  ]
34763
- }), t[42] = bJ, t[43] = xJ, t[44] = SJ, t[45] = CJ) : CJ = t[45];
34764
- let wJ;
34765
- return t[46] !== vJ || t[47] !== yJ || t[48] !== CJ ? (wJ = (0, import_jsx_runtime.jsxs)("div", {
34802
+ }), t[42] = xJ, t[43] = SJ, t[44] = CJ, t[45] = wJ) : wJ = t[45];
34803
+ let TJ;
34804
+ return t[46] !== yJ || t[47] !== bJ || t[48] !== wJ ? (TJ = (0, import_jsx_runtime.jsxs)("div", {
34766
34805
  className: "flex flex-col gap-2 min-w-full w-fit",
34767
34806
  children: [
34768
- vJ,
34769
34807
  yJ,
34770
- CJ
34808
+ bJ,
34809
+ wJ
34771
34810
  ]
34772
- }), t[46] = vJ, t[47] = yJ, t[48] = CJ, t[49] = wJ) : wJ = t[49], wJ;
34811
+ }), t[46] = yJ, t[47] = bJ, t[48] = wJ, t[49] = TJ) : TJ = t[49], TJ;
34773
34812
  };
34774
34813
  function lastLine(e) {
34775
34814
  var _a2, _b;
@@ -36205,14 +36244,14 @@ ${d}`,
36205
36244
  Q
36206
36245
  ]
36207
36246
  }), t[33] = J, t[34] = Q, t[35] = $) : $ = t[35];
36208
- let mJ;
36209
- return t[36] !== I || t[37] !== $ ? (mJ = (0, import_jsx_runtime.jsxs)("div", {
36247
+ let hJ;
36248
+ return t[36] !== I || t[37] !== $ ? (hJ = (0, import_jsx_runtime.jsxs)("div", {
36210
36249
  className: "flex flex-col gap-3",
36211
36250
  children: [
36212
36251
  I,
36213
36252
  $
36214
36253
  ]
36215
- }), t[36] = I, t[37] = $, t[38] = mJ) : mJ = t[38], mJ;
36254
+ }), t[36] = I, t[37] = $, t[38] = hJ) : hJ = t[38], hJ;
36216
36255
  };
36217
36256
  SlideSidebar = (e) => {
36218
36257
  let t = (0, import_compiler_runtime$1.c)(30), { configWidth: n, layout: i, setLayout: a, activeConfigCell: s } = e, [c, d] = useAtom(slideConfigOpenAtom), f = c ? n : COLLAPSED_CONFIG_WIDTH, _;
@@ -36337,7 +36376,7 @@ ${d}`,
36337
36376
  return Logger.warn("Failed to get version from mount config"), null;
36338
36377
  }
36339
36378
  }
36340
- marimoVersionAtom = atom(getVersionFromMountConfig() || "0.24.1-dev32");
36379
+ marimoVersionAtom = atom(getVersionFromMountConfig() || "0.24.1-dev35");
36341
36380
  showCodeInRunModeAtom = atom(true);
36342
36381
  atom(null);
36343
36382
  var import_compiler_runtime = require_compiler_runtime();