@carto/ps-react-ui 4.11.1 → 4.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/echart-BMPpj7n_.js +250 -0
  2. package/dist/echart-BMPpj7n_.js.map +1 -0
  3. package/dist/types/widgets-v2/echart/edge-label-clamp.d.ts +57 -0
  4. package/dist/types/widgets-v2/echart/edge-label-clamp.test.d.ts +1 -0
  5. package/dist/types/widgets-v2/wrapper/style.d.ts +5 -12
  6. package/dist/widgets-v2/bar.js +87 -99
  7. package/dist/widgets-v2/bar.js.map +1 -1
  8. package/dist/widgets-v2/echart.js +1 -1
  9. package/dist/widgets-v2/histogram.js +96 -107
  10. package/dist/widgets-v2/histogram.js.map +1 -1
  11. package/dist/widgets-v2/timeseries.js +104 -116
  12. package/dist/widgets-v2/timeseries.js.map +1 -1
  13. package/dist/widgets-v2.js +248 -244
  14. package/dist/widgets-v2.js.map +1 -1
  15. package/package.json +1 -1
  16. package/src/widgets-v2/bar/options.test.ts +31 -4
  17. package/src/widgets-v2/bar/options.ts +18 -22
  18. package/src/widgets-v2/echart/echart-ui.test.tsx +70 -0
  19. package/src/widgets-v2/echart/echart-ui.tsx +28 -0
  20. package/src/widgets-v2/echart/edge-label-clamp.test.ts +198 -0
  21. package/src/widgets-v2/echart/edge-label-clamp.ts +216 -0
  22. package/src/widgets-v2/histogram/options.test.ts +11 -4
  23. package/src/widgets-v2/histogram/options.ts +17 -21
  24. package/src/widgets-v2/timeseries/options.test.ts +9 -4
  25. package/src/widgets-v2/timeseries/options.ts +17 -22
  26. package/src/widgets-v2/wrapper/style.ts +13 -18
  27. package/src/widgets-v2/wrapper/widget-wrapper.test.tsx +66 -0
  28. package/src/widgets-v2/wrapper/widget-wrapper.tsx +7 -4
  29. package/dist/echart-CU0KmClP.js +0 -176
  30. package/dist/echart-CU0KmClP.js.map +0 -1
@@ -1,10 +1,10 @@
1
- import { jsx as a, jsxs as G, Fragment as re } from "react/jsx-runtime";
1
+ import { jsx as a, jsxs as G, Fragment as ie } from "react/jsx-runtime";
2
2
  import { c as T } from "react/compiler-runtime";
3
- import { useState as V, useLayoutEffect as ee, Children as ae, isValidElement as ce, Component as be, useEffect as de, useRef as ve } from "react";
4
- import { W as Se, u as pe } from "./widget-context-DTGO0Yta.js";
5
- import { j as we, i as Ee, e as Ce, n as Te, r as ke, q as _e, v as Ie, u as Ae, s as Le } from "./widget-store-registry-_W4Z4xp-.js";
3
+ import { useState as V, useLayoutEffect as te, Children as ae, isValidElement as ce, Component as be, useEffect as de, useRef as ve } from "react";
4
+ import { W as Se, u as fe } from "./widget-context-DTGO0Yta.js";
5
+ import { j as we, i as Ee, e as Ce, n as Te, r as ke, q as _e, v as Ie, u as Le, s as Ae } from "./widget-store-registry-_W4Z4xp-.js";
6
6
  import "zustand";
7
- import { Box as W, LinearProgress as We, Typography as X, AccordionSummary as $e, AccordionDetails as De, Accordion as Fe, AlertTitle as Be, Alert as Oe, Button as Me, IconButton as Re, Divider as Pe, Popper as Ue, Grow as Ne, Paper as je, Link as fe } from "@mui/material";
7
+ import { Box as W, LinearProgress as We, Typography as Z, AccordionSummary as $e, AccordionDetails as De, Accordion as Fe, AlertTitle as Be, Alert as Oe, Button as Re, IconButton as Me, Divider as Pe, Popper as Ue, Grow as Ne, Paper as je, Link as pe } from "@mui/material";
8
8
  import { ExpandMore as ze, Close as He } from "@mui/icons-material";
9
9
  import { S as Ve } from "./smart-tooltip-D4vwQpFf.js";
10
10
  import { createPortal as Ge } from "react-dom";
@@ -13,12 +13,12 @@ import "./lasso-tool-CDFj4zKY.js";
13
13
  import "./cjs-D4KH3azB.js";
14
14
  import { T as Xe } from "./tooltip-BDnrRKrp.js";
15
15
  import "@carto/ps-utils";
16
- import { o as Ze, a as Ke, E as Ye } from "./echart-CU0KmClP.js";
17
- import { D as Wn } from "./echart-CU0KmClP.js";
16
+ import { o as Ze, a as Ke, E as Ye } from "./echart-BMPpj7n_.js";
17
+ import { D as Wn } from "./echart-BMPpj7n_.js";
18
18
  import { a as Je, b as Qe, M as et } from "./markdown-BD1jcknS.js";
19
- import { C as tt, L as nt, F as ot, j as rt, R as it, B as lt, Z as st, m as at, n as ct, l as dt, k as pt } from "./change-column-DjjwoPt1.js";
19
+ import { C as tt, L as nt, F as ot, j as rt, R as it, B as lt, Z as st, m as at, n as ct, l as dt, k as ft } from "./change-column-DjjwoPt1.js";
20
20
  import "html2canvas";
21
- import { a as ft, F as mt } from "./formula-DuC0NQLH.js";
21
+ import { a as pt, F as mt } from "./formula-DuC0NQLH.js";
22
22
  import "react-markdown";
23
23
  import { b as ut, a as gt } from "./spread-DYNpzgh_.js";
24
24
  import { a as ht, R as yt } from "./range-l4fNHLEg.js";
@@ -31,56 +31,56 @@ function wt(t) {
31
31
  isLoading: o,
32
32
  isFetching: i,
33
33
  error: s,
34
- formatter: c,
35
- labelFormatter: f,
34
+ formatter: d,
35
+ labelFormatter: p,
36
36
  keepAlive: u,
37
37
  children: m
38
- } = t, p = u === void 0 ? !1 : u;
38
+ } = t, f = u === void 0 ? !1 : u;
39
39
  let g;
40
- e[0] !== r || e[1] !== s || e[2] !== c || e[3] !== n || e[4] !== i || e[5] !== o || e[6] !== f ? (g = () => {
40
+ e[0] !== r || e[1] !== s || e[2] !== d || e[3] !== n || e[4] !== i || e[5] !== o || e[6] !== p ? (g = () => {
41
41
  if (we(n))
42
42
  return Ee(n);
43
- const E = Ce(n, {
43
+ const C = Ce(n, {
44
44
  data: r,
45
45
  isLoading: o,
46
46
  isFetching: i,
47
47
  error: s,
48
- formatter: c,
49
- labelFormatter: f
48
+ formatter: d,
49
+ labelFormatter: p
50
50
  });
51
- return Te(n, E), E;
52
- }, e[0] = r, e[1] = s, e[2] = c, e[3] = n, e[4] = i, e[5] = o, e[6] = f, e[7] = g) : g = e[7];
51
+ return Te(n, C), C;
52
+ }, e[0] = r, e[1] = s, e[2] = d, e[3] = n, e[4] = i, e[5] = o, e[6] = p, e[7] = g) : g = e[7];
53
53
  const [l] = V(g);
54
- let d, h;
55
- e[8] !== n || e[9] !== p || e[10] !== l ? (d = () => (ke(n, l), () => {
54
+ let c, h;
55
+ e[8] !== n || e[9] !== f || e[10] !== l ? (c = () => (ke(n, l), () => {
56
56
  _e(n, {
57
- keepAlive: p
57
+ keepAlive: f
58
58
  });
59
- }), h = [n, l, p], e[8] = n, e[9] = p, e[10] = l, e[11] = d, e[12] = h) : (d = e[11], h = e[12]), ee(d, h);
59
+ }), h = [n, l, f], e[8] = n, e[9] = f, e[10] = l, e[11] = c, e[12] = h) : (c = e[11], h = e[12]), te(c, h);
60
60
  let y, x;
61
61
  e[13] !== r || e[14] !== l ? (y = () => {
62
62
  l.setState({
63
63
  rawData: r
64
64
  });
65
- }, x = [l, r], e[13] = r, e[14] = l, e[15] = y, e[16] = x) : (y = e[15], x = e[16]), ee(y, x);
66
- let b, w;
65
+ }, x = [l, r], e[13] = r, e[14] = l, e[15] = y, e[16] = x) : (y = e[15], x = e[16]), te(y, x);
66
+ let b, E;
67
67
  e[17] !== s || e[18] !== i || e[19] !== o || e[20] !== l ? (b = () => {
68
68
  l.setState({
69
69
  isLoading: o ?? !1,
70
70
  isFetching: i ?? !1,
71
71
  error: s
72
72
  });
73
- }, w = [l, o, i, s], e[17] = s, e[18] = i, e[19] = o, e[20] = l, e[21] = b, e[22] = w) : (b = e[21], w = e[22]), ee(b, w);
73
+ }, E = [l, o, i, s], e[17] = s, e[18] = i, e[19] = o, e[20] = l, e[21] = b, e[22] = E) : (b = e[21], E = e[22]), te(b, E);
74
74
  let k, _;
75
- e[23] !== c || e[24] !== f || e[25] !== l ? (_ = () => {
75
+ e[23] !== d || e[24] !== p || e[25] !== l ? (_ = () => {
76
76
  l.setState({
77
- rawFormatter: c,
78
- formatter: c,
79
- labelFormatter: f
77
+ rawFormatter: d,
78
+ formatter: d,
79
+ labelFormatter: p
80
80
  });
81
- }, k = [l, c, f], e[23] = c, e[24] = f, e[25] = l, e[26] = k, e[27] = _) : (k = e[26], _ = e[27]), ee(_, k);
82
- let A;
83
- return e[28] !== m || e[29] !== n ? (A = /* @__PURE__ */ a(Se.Provider, { value: n, children: m }), e[28] = m, e[29] = n, e[30] = A) : A = e[30], A;
81
+ }, k = [l, d, p], e[23] = d, e[24] = p, e[25] = l, e[26] = k, e[27] = _) : (k = e[26], _ = e[27]), te(_, k);
82
+ let L;
83
+ return e[28] !== m || e[29] !== n ? (L = /* @__PURE__ */ a(Se.Provider, { value: n, children: m }), e[28] = m, e[29] = n, e[30] = L) : L = e[30], L;
84
84
  }
85
85
  const j = {
86
86
  root: {
@@ -131,23 +131,6 @@ const j = {
131
131
  "&.active": {
132
132
  opacity: 1
133
133
  }
134
- },
135
- // Disabled state — only block interaction; keep visuals unchanged.
136
- // MUI's default `.Mui-disabled` rules dim the AccordionSummary's color
137
- // and add a faded background; we override them so the wrapper looks
138
- // identical to its enabled form. The single behavioral change is
139
- // `pointer-events: none`, which propagates to every descendant.
140
- "&.Mui-disabled": {
141
- pointerEvents: "none",
142
- bgcolor: "background.paper",
143
- "& .MuiAccordionSummary-root.Mui-disabled": {
144
- opacity: 1,
145
- color: "inherit",
146
- backgroundColor: "transparent"
147
- },
148
- "& .MuiAccordionSummary-expandIconWrapper": {
149
- display: "none"
150
- }
151
134
  }
152
135
  },
153
136
  loading: {
@@ -174,6 +157,19 @@ const j = {
174
157
  alignItems: "center"
175
158
  }
176
159
  },
160
+ // Disabled state — only the collapse toggle is inert (enforced by the
161
+ // guarded `onChange` handler, not `pointer-events`). Actions and Options in
162
+ // the summary row, and the details panel, all keep their events. We just
163
+ // drop the toggle affordance: hide the chevron (handled in the component)
164
+ // and clear the pointer cursor. MUI's AccordionSummary sets
165
+ // `cursor: pointer` via `&:hover:not(.Mui-disabled)` — a two-class selector
166
+ // that outranks a plain `cursor` rule — so we override at matching
167
+ // specificity. Action/Option buttons restore their own pointer cursor.
168
+ summaryDisabled: {
169
+ "&, &:hover:not(.Mui-disabled)": {
170
+ cursor: "default"
171
+ }
172
+ },
177
173
  titleCell: {
178
174
  flexGrow: 1,
179
175
  flexShrink: 1,
@@ -266,68 +262,76 @@ const Tt = {
266
262
  errorFallbackTitle: "Widget failed to render"
267
263
  };
268
264
  function kt(t) {
269
- const e = T(35), {
265
+ const e = T(40), {
270
266
  title: n,
271
267
  collapsed: r,
272
268
  onCollapseChange: o,
273
269
  defaultCollapsed: i,
274
270
  disabled: s,
275
- variant: c,
276
- labels: f,
271
+ variant: d,
272
+ labels: p,
277
273
  expandIcon: u,
278
274
  iconProps: m,
279
- sx: p,
275
+ sx: f,
280
276
  children: g
281
- } = t, l = i === void 0 ? !1 : i, d = s === void 0 ? !1 : s, h = c === void 0 ? "elevation" : c, y = u === void 0 ? ze : u, x = pe(), b = Ie(x, _t), w = r !== void 0, [k, _] = V(l), A = w ? r : k;
282
- let E;
283
- e[0] !== o ? (E = (H, N) => {
284
- const K = !N;
285
- o?.(K), _(K);
286
- }, e[0] = o, e[1] = E) : E = e[1];
287
- const F = E;
277
+ } = t, l = i === void 0 ? !1 : i, c = s === void 0 ? !1 : s, h = d === void 0 ? "elevation" : d, y = u === void 0 ? ze : u, x = fe(), b = Ie(x, _t), E = r !== void 0, [k, _] = V(l), L = E ? r : k;
278
+ let C;
279
+ e[0] !== c || e[1] !== o ? (C = (S, z) => {
280
+ if (c)
281
+ return;
282
+ const Q = !z;
283
+ o?.(Q), _(Q);
284
+ }, e[0] = c, e[1] = o, e[2] = C) : C = e[2];
285
+ const O = C;
288
286
  let I;
289
- e[2] !== f ? (I = {
287
+ e[3] !== p ? (I = {
290
288
  ...Tt,
291
- ...f
292
- }, e[2] = f, e[3] = I) : I = e[3];
293
- const L = I;
294
- let S;
295
- e[4] !== g ? (S = It(g), e[4] = g, e[5] = S) : S = e[5];
289
+ ...p
290
+ }, e[3] = p, e[4] = I) : I = e[4];
291
+ const A = I;
292
+ let w;
293
+ e[5] !== g ? (w = It(g), e[5] = g, e[6] = w) : w = e[6];
296
294
  const {
297
295
  summary: v,
298
296
  details: q
299
- } = S, te = A ? L.expand : L.collapse, B = A ? "true" : void 0, Z = !A;
300
- let O;
301
- e[6] !== p ? (O = {
302
- ...j.root,
303
- ...p
304
- }, e[6] = p, e[7] = O) : O = e[7];
297
+ } = w, ne = L ? A.expand : A.collapse, R = L ? "true" : void 0, K = !L;
305
298
  let M;
306
- e[8] !== b ? (M = b ? /* @__PURE__ */ a(We, { sx: j.loading, color: "primary" }) : null, e[8] = b, e[9] = M) : M = e[9];
307
- let R;
308
- e[10] !== y || e[11] !== m ? (R = /* @__PURE__ */ a(y, { fontSize: "small", ...m }), e[10] = y, e[11] = m, e[12] = R) : R = e[12];
299
+ e[7] !== f ? (M = {
300
+ ...j.root,
301
+ ...f
302
+ }, e[7] = f, e[8] = M) : M = e[8];
309
303
  let P;
310
- e[13] !== n ? (P = (H) => {
311
- const {
312
- ref: N
313
- } = H;
314
- return /* @__PURE__ */ a(W, { sx: j.titleCell, children: /* @__PURE__ */ a(X, { ref: N, variant: "subtitle1", sx: j.titleText, textTransform: "none", children: n }) });
315
- }, e[13] = n, e[14] = P) : P = e[14];
304
+ e[9] !== b ? (P = b ? /* @__PURE__ */ a(We, { sx: j.loading, color: "primary" }) : null, e[9] = b, e[10] = P) : P = e[10];
316
305
  let U;
317
- e[15] !== P || e[16] !== n ? (U = /* @__PURE__ */ a(Ve, { title: n, children: P }), e[15] = P, e[16] = n, e[17] = U) : U = e[17];
306
+ e[11] !== y || e[12] !== c || e[13] !== m ? (U = c ? null : /* @__PURE__ */ a(y, { fontSize: "small", ...m }), e[11] = y, e[12] = c, e[13] = m, e[14] = U) : U = e[14];
307
+ const X = c || void 0, Y = c ? j.summaryDisabled : null;
318
308
  let $;
319
- e[18] !== te || e[19] !== v || e[20] !== R || e[21] !== U ? ($ = /* @__PURE__ */ G($e, { expandIcon: R, "aria-label": te, sx: j.summary, children: [
320
- U,
321
- v
322
- ] }), e[18] = te, e[19] = v, e[20] = R, e[21] = U, e[22] = $) : $ = e[22];
309
+ e[15] !== Y ? ($ = {
310
+ ...j.summary,
311
+ ...Y
312
+ }, e[15] = Y, e[16] = $) : $ = e[16];
323
313
  let D;
324
- e[23] !== q ? (D = /* @__PURE__ */ a(De, { sx: j.detail, children: q }), e[23] = q, e[24] = D) : D = e[24];
325
- let z;
326
- return e[25] !== d || e[26] !== F || e[27] !== O || e[28] !== M || e[29] !== $ || e[30] !== D || e[31] !== B || e[32] !== Z || e[33] !== h ? (z = /* @__PURE__ */ G(Fe, { "data-collapsed": B, expanded: Z, onChange: F, disabled: d, disableGutters: !0, elevation: 0, variant: h, square: !0, sx: O, children: [
327
- M,
328
- $,
329
- D
330
- ] }), e[25] = d, e[26] = F, e[27] = O, e[28] = M, e[29] = $, e[30] = D, e[31] = B, e[32] = Z, e[33] = h, e[34] = z) : z = e[34], z;
314
+ e[17] !== n ? (D = (S) => {
315
+ const {
316
+ ref: z
317
+ } = S;
318
+ return /* @__PURE__ */ a(W, { sx: j.titleCell, children: /* @__PURE__ */ a(Z, { ref: z, variant: "subtitle1", sx: j.titleText, textTransform: "none", children: n }) });
319
+ }, e[17] = n, e[18] = D) : D = e[18];
320
+ let N;
321
+ e[19] !== D || e[20] !== n ? (N = /* @__PURE__ */ a(Ve, { title: n, children: D }), e[19] = D, e[20] = n, e[21] = N) : N = e[21];
322
+ let F;
323
+ e[22] !== ne || e[23] !== v || e[24] !== U || e[25] !== X || e[26] !== $ || e[27] !== N ? (F = /* @__PURE__ */ G($e, { expandIcon: U, "aria-label": ne, "aria-disabled": X, sx: $, children: [
324
+ N,
325
+ v
326
+ ] }), e[22] = ne, e[23] = v, e[24] = U, e[25] = X, e[26] = $, e[27] = N, e[28] = F) : F = e[28];
327
+ let B;
328
+ e[29] !== q ? (B = /* @__PURE__ */ a(De, { sx: j.detail, children: q }), e[29] = q, e[30] = B) : B = e[30];
329
+ let H;
330
+ return e[31] !== O || e[32] !== M || e[33] !== P || e[34] !== F || e[35] !== B || e[36] !== R || e[37] !== K || e[38] !== h ? (H = /* @__PURE__ */ G(Fe, { "data-collapsed": R, expanded: K, onChange: O, disableGutters: !0, elevation: 0, variant: h, square: !0, sx: M, children: [
331
+ P,
332
+ F,
333
+ B
334
+ ] }), e[31] = O, e[32] = M, e[33] = P, e[34] = F, e[35] = B, e[36] = R, e[37] = K, e[38] = h, e[39] = H) : H = e[39], H;
331
335
  }
332
336
  function _t(t) {
333
337
  return t.isFetching;
@@ -344,7 +348,7 @@ function It(t) {
344
348
  function se(t, e) {
345
349
  return ce(t) && t.type === e;
346
350
  }
347
- function At(t) {
351
+ function Lt(t) {
348
352
  const e = T(5), {
349
353
  sx: n,
350
354
  children: r
@@ -357,7 +361,7 @@ function At(t) {
357
361
  let i;
358
362
  return e[2] !== r || e[3] !== o ? (i = /* @__PURE__ */ a(W, { "data-slot": "content", sx: o, children: r }), e[2] = r, e[3] = o, e[4] = i) : i = e[4], i;
359
363
  }
360
- function Lt(t) {
364
+ function At(t) {
361
365
  const e = T(5), {
362
366
  sx: n,
363
367
  children: r
@@ -433,34 +437,34 @@ function Bt(t) {
433
437
  isEmpty: o,
434
438
  fallback: i,
435
439
  labels: s
436
- } = t, c = o === void 0 ? Pt : o, f = pe(), u = Ae(f, Ft);
440
+ } = t, d = o === void 0 ? Pt : o, p = fe(), u = Le(p, Ft);
437
441
  let m;
438
442
  e[0] !== s ? (m = {
439
443
  ...Dt,
440
444
  ...s
441
445
  }, e[0] = s, e[1] = m) : m = e[1];
442
- const p = m;
446
+ const f = m;
443
447
  if (u.isLoading) {
444
- let d;
445
- return e[2] !== n ? (d = /* @__PURE__ */ a(re, { children: n }), e[2] = n, e[3] = d) : d = e[3], d;
448
+ let c;
449
+ return e[2] !== n ? (c = /* @__PURE__ */ a(ie, { children: n }), e[2] = n, e[3] = c) : c = e[3], c;
446
450
  }
447
451
  if (u.error !== void 0 && u.error !== null) {
448
- let d;
449
- if (e[4] !== p || e[5] !== i || e[6] !== u.error) {
452
+ let c;
453
+ if (e[4] !== f || e[5] !== i || e[6] !== u.error) {
450
454
  const h = Ut(u.error);
451
- d = i ? /* @__PURE__ */ a(re, { children: i(h) }) : /* @__PURE__ */ a(he, { error: h, labels: p }), e[4] = p, e[5] = i, e[6] = u.error, e[7] = d;
455
+ c = i ? /* @__PURE__ */ a(ie, { children: i(h) }) : /* @__PURE__ */ a(he, { error: h, labels: f }), e[4] = f, e[5] = i, e[6] = u.error, e[7] = c;
452
456
  } else
453
- d = e[7];
454
- return d;
457
+ c = e[7];
458
+ return c;
455
459
  }
456
- if (c(u.rawData)) {
457
- let d;
458
- return e[8] !== p ? (d = /* @__PURE__ */ a(Mt, { labels: p }), e[8] = p, e[9] = d) : d = e[9], d;
460
+ if (d(u.rawData)) {
461
+ let c;
462
+ return e[8] !== f ? (c = /* @__PURE__ */ a(Rt, { labels: f }), e[8] = f, e[9] = c) : c = e[9], c;
459
463
  }
460
464
  let g;
461
- e[10] !== r || e[11] !== f ? (g = /* @__PURE__ */ a(Ot, { id: f, children: r }), e[10] = r, e[11] = f, e[12] = g) : g = e[12];
465
+ e[10] !== r || e[11] !== p ? (g = /* @__PURE__ */ a(Ot, { id: p, children: r }), e[10] = r, e[11] = p, e[12] = g) : g = e[12];
462
466
  let l;
463
- return e[13] !== p || e[14] !== i || e[15] !== g ? (l = /* @__PURE__ */ a(Rt, { fallback: i, labels: p, children: g }), e[13] = p, e[14] = i, e[15] = g, e[16] = l) : l = e[16], l;
467
+ return e[13] !== f || e[14] !== i || e[15] !== g ? (l = /* @__PURE__ */ a(Mt, { fallback: i, labels: f, children: g }), e[13] = f, e[14] = i, e[15] = g, e[16] = l) : l = e[16], l;
464
468
  }
465
469
  function Ot(t) {
466
470
  const e = T(5), {
@@ -468,7 +472,7 @@ function Ot(t) {
468
472
  children: r
469
473
  } = t;
470
474
  let o;
471
- e[0] !== n ? (o = (c) => Le(n, c), e[0] = n, e[1] = o) : o = e[1];
475
+ e[0] !== n ? (o = (d) => Ae(n, d), e[0] = n, e[1] = o) : o = e[1];
472
476
  const i = o;
473
477
  let s;
474
478
  return e[2] !== r || e[3] !== i ? (s = /* @__PURE__ */ a(W, { ref: i, sx: ge.captureBox, children: r }), e[2] = r, e[3] = i, e[4] = s) : s = e[4], s;
@@ -488,21 +492,21 @@ function he(t) {
488
492
  i
489
493
  ] }), e[5] = o, e[6] = i, e[7] = s) : s = e[7], s;
490
494
  }
491
- function Mt(t) {
495
+ function Rt(t) {
492
496
  const e = T(7), {
493
497
  labels: n
494
498
  } = t;
495
499
  let r;
496
- e[0] !== n.emptyTitle ? (r = /* @__PURE__ */ a(X, { variant: "body2", color: "text.primary", children: n.emptyTitle }), e[0] = n.emptyTitle, e[1] = r) : r = e[1];
500
+ e[0] !== n.emptyTitle ? (r = /* @__PURE__ */ a(Z, { variant: "body2", color: "text.primary", children: n.emptyTitle }), e[0] = n.emptyTitle, e[1] = r) : r = e[1];
497
501
  let o;
498
- e[2] !== n.emptyDescription ? (o = /* @__PURE__ */ a(X, { variant: "caption", color: "text.secondary", children: n.emptyDescription }), e[2] = n.emptyDescription, e[3] = o) : o = e[3];
502
+ e[2] !== n.emptyDescription ? (o = /* @__PURE__ */ a(Z, { variant: "caption", color: "text.secondary", children: n.emptyDescription }), e[2] = n.emptyDescription, e[3] = o) : o = e[3];
499
503
  let i;
500
504
  return e[4] !== r || e[5] !== o ? (i = /* @__PURE__ */ G(W, { sx: ge.emptyRoot, children: [
501
505
  r,
502
506
  o
503
507
  ] }), e[4] = r, e[5] = o, e[6] = i) : i = e[6], i;
504
508
  }
505
- class Rt extends be {
509
+ class Mt extends be {
506
510
  state = {
507
511
  error: null
508
512
  };
@@ -536,7 +540,7 @@ function Ut(t) {
536
540
  }
537
541
  const Nt = {
538
542
  clear: "Clear"
539
- }, Q = {
543
+ }, ee = {
540
544
  root: {
541
545
  display: "flex",
542
546
  alignItems: "center",
@@ -566,39 +570,39 @@ function jt(t) {
566
570
  onClear: o,
567
571
  labels: i,
568
572
  icon: s,
569
- iconProps: c
573
+ iconProps: d
570
574
  } = t;
571
575
  if (!r)
572
576
  return null;
573
- let f, u, m, p, g, l, d, h, y;
574
- if (e[0] !== s || e[1] !== n || e[2] !== c || e[3] !== i || e[4] !== r) {
577
+ let p, u, m, f, g, l, c, h, y;
578
+ if (e[0] !== s || e[1] !== n || e[2] !== d || e[3] !== i || e[4] !== r) {
575
579
  m = {
576
580
  ...Nt,
577
581
  ...i
578
582
  };
579
583
  const k = n === 0 ? r : n;
580
- u = W, h = Q.root, e[14] !== s || e[15] !== c ? (y = s ? /* @__PURE__ */ a(s, { fontSize: "small", ...c }) : null, e[14] = s, e[15] = c, e[16] = y) : y = e[16], f = W, p = "span", g = Q.count, l = `${k} / ${r}`, d = m.summary ? m.summary(k, r) : /* @__PURE__ */ G(re, { children: [
581
- /* @__PURE__ */ a(X, { component: "span", variant: "caption", sx: Q.selected, children: k }),
582
- /* @__PURE__ */ a(X, { component: "span", variant: "caption", sx: Q.separator, children: "/" }),
583
- /* @__PURE__ */ a(X, { component: "span", variant: "caption", sx: Q.total, children: r })
584
- ] }), e[0] = s, e[1] = n, e[2] = c, e[3] = i, e[4] = r, e[5] = f, e[6] = u, e[7] = m, e[8] = p, e[9] = g, e[10] = l, e[11] = d, e[12] = h, e[13] = y;
584
+ u = W, h = ee.root, e[14] !== s || e[15] !== d ? (y = s ? /* @__PURE__ */ a(s, { fontSize: "small", ...d }) : null, e[14] = s, e[15] = d, e[16] = y) : y = e[16], p = W, f = "span", g = ee.count, l = `${k} / ${r}`, c = m.summary ? m.summary(k, r) : /* @__PURE__ */ G(ie, { children: [
585
+ /* @__PURE__ */ a(Z, { component: "span", variant: "caption", sx: ee.selected, children: k }),
586
+ /* @__PURE__ */ a(Z, { component: "span", variant: "caption", sx: ee.separator, children: "/" }),
587
+ /* @__PURE__ */ a(Z, { component: "span", variant: "caption", sx: ee.total, children: r })
588
+ ] }), e[0] = s, e[1] = n, e[2] = d, e[3] = i, e[4] = r, e[5] = p, e[6] = u, e[7] = m, e[8] = f, e[9] = g, e[10] = l, e[11] = c, e[12] = h, e[13] = y;
585
589
  } else
586
- f = e[5], u = e[6], m = e[7], p = e[8], g = e[9], l = e[10], d = e[11], h = e[12], y = e[13];
590
+ p = e[5], u = e[6], m = e[7], f = e[8], g = e[9], l = e[10], c = e[11], h = e[12], y = e[13];
587
591
  let x;
588
- e[17] !== f || e[18] !== p || e[19] !== g || e[20] !== l || e[21] !== d ? (x = /* @__PURE__ */ a(f, { component: p, sx: g, "aria-label": l, children: d }), e[17] = f, e[18] = p, e[19] = g, e[20] = l, e[21] = d, e[22] = x) : x = e[22];
592
+ e[17] !== p || e[18] !== f || e[19] !== g || e[20] !== l || e[21] !== c ? (x = /* @__PURE__ */ a(p, { component: f, sx: g, "aria-label": l, children: c }), e[17] = p, e[18] = f, e[19] = g, e[20] = l, e[21] = c, e[22] = x) : x = e[22];
589
593
  let b;
590
- e[23] !== m || e[24] !== n || e[25] !== o ? (b = n > 0 && o && /* @__PURE__ */ a(Me, { size: "small", variant: "text", onClick: o, children: m.clear }), e[23] = m, e[24] = n, e[25] = o, e[26] = b) : b = e[26];
591
- let w;
592
- return e[27] !== u || e[28] !== h || e[29] !== y || e[30] !== x || e[31] !== b ? (w = /* @__PURE__ */ G(u, { sx: h, children: [
594
+ e[23] !== m || e[24] !== n || e[25] !== o ? (b = n > 0 && o && /* @__PURE__ */ a(Re, { size: "small", variant: "text", onClick: o, children: m.clear }), e[23] = m, e[24] = n, e[25] = o, e[26] = b) : b = e[26];
595
+ let E;
596
+ return e[27] !== u || e[28] !== h || e[29] !== y || e[30] !== x || e[31] !== b ? (E = /* @__PURE__ */ G(u, { sx: h, children: [
593
597
  y,
594
598
  x,
595
599
  b
596
- ] }), e[27] = u, e[28] = h, e[29] = y, e[30] = x, e[31] = b, e[32] = w) : w = e[32], w;
600
+ ] }), e[27] = u, e[28] = h, e[29] = y, e[30] = x, e[31] = b, e[32] = E) : E = e[32], E;
597
601
  }
598
602
  const zt = {
599
603
  trigger: "More actions",
600
604
  close: "Close"
601
- }, ne = {
605
+ }, oe = {
602
606
  root: {
603
607
  display: "flex",
604
608
  alignItems: "center",
@@ -637,103 +641,103 @@ function Ht(t) {
637
641
  icon: o,
638
642
  iconProps: i,
639
643
  direction: s,
640
- sx: c,
641
- children: f
644
+ sx: d,
645
+ children: p
642
646
  } = t, u = o === void 0 ? qe : o, m = s === void 0 ? "right" : s;
643
- let p;
644
- e[0] !== r ? (p = {
647
+ let f;
648
+ e[0] !== r ? (f = {
645
649
  ...zt,
646
650
  ...r
647
- }, e[0] = r, e[1] = p) : p = e[1];
648
- const g = p, [l, d] = V(!1), [h, y] = V(null), [x, b] = V(null), [w, k] = V(null);
651
+ }, e[0] = r, e[1] = f) : f = e[1];
652
+ const g = f, [l, c] = V(!1), [h, y] = V(null), [x, b] = V(null), [E, k] = V(null);
649
653
  let _;
650
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = () => d(Xt), e[2] = _) : _ = e[2];
651
- const A = _;
652
- let E;
653
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = (C) => {
654
- y(C);
655
- }, e[3] = E) : E = e[3];
656
- const F = E;
657
- let I, L;
654
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = () => c(Xt), e[2] = _) : _ = e[2];
655
+ const L = _;
656
+ let C;
657
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = (S) => {
658
+ y(S);
659
+ }, e[3] = C) : C = e[3];
660
+ const O = C;
661
+ let I, A;
658
662
  e[4] !== l ? (I = () => {
659
663
  if (!l)
660
664
  return;
661
- const C = (J) => {
662
- J.key === "Escape" && d(!1);
665
+ const S = (z) => {
666
+ z.key === "Escape" && c(!1);
663
667
  };
664
- return document.addEventListener("keydown", C), () => document.removeEventListener("keydown", C);
665
- }, L = [l], e[4] = l, e[5] = I, e[6] = L) : (I = e[5], L = e[6]), de(I, L);
666
- const [S] = V(qt);
668
+ return document.addEventListener("keydown", S), () => document.removeEventListener("keydown", S);
669
+ }, A = [l], e[4] = l, e[5] = I, e[6] = A) : (I = e[5], A = e[6]), de(I, A);
670
+ const [w] = V(qt);
667
671
  let v, q;
668
- e[7] !== f ? (v = ae.toArray(f).filter(Gt), q = v.reduce(Vt, 0), e[7] = f, e[8] = v, e[9] = q) : (v = e[8], q = e[9]);
669
- const B = n !== void 0 && q > n;
670
- let Z;
672
+ e[7] !== p ? (v = ae.toArray(p).filter(Gt), q = v.reduce(Vt, 0), e[7] = p, e[8] = v, e[9] = q) : (v = e[8], q = e[9]);
673
+ const R = n !== void 0 && q > n;
674
+ let K;
671
675
  e: {
672
- if (!B || n === void 0) {
673
- Z = null;
676
+ if (!R || n === void 0) {
677
+ K = null;
674
678
  break e;
675
679
  }
676
- let C;
677
- e[10] !== v || e[11] !== n ? (C = Zt(v, n), e[10] = v, e[11] = n, e[12] = C) : C = e[12], Z = C;
680
+ let S;
681
+ e[10] !== v || e[11] !== n ? (S = Zt(v, n), e[10] = v, e[11] = n, e[12] = S) : S = e[12], K = S;
678
682
  }
679
- const O = Z;
680
- !B && l && d(!1);
681
- let M, R;
682
- if (e[13] !== S || e[14] !== x || e[15] !== l || e[16] !== w ? (M = () => {
683
- const C = l && w ? w : x;
684
- S && C && S.parentNode !== C && C.appendChild(S);
685
- }, R = [l, x, w, S], e[13] = S, e[14] = x, e[15] = l, e[16] = w, e[17] = M, e[18] = R) : (M = e[17], R = e[18]), ee(M, R), v.length === 0)
683
+ const M = K;
684
+ !R && l && c(!1);
685
+ let P, U;
686
+ if (e[13] !== w || e[14] !== x || e[15] !== l || e[16] !== E ? (P = () => {
687
+ const S = l && E ? E : x;
688
+ w && S && w.parentNode !== S && S.appendChild(w);
689
+ }, U = [l, x, E, w], e[13] = w, e[14] = x, e[15] = l, e[16] = E, e[17] = P, e[18] = U) : (P = e[17], U = e[18]), te(P, U), v.length === 0)
686
690
  return null;
687
- const P = l ? g.close : g.trigger, U = m === "left" ? "row-reverse" : "row";
691
+ const X = l ? g.close : g.trigger, Y = m === "left" ? "row-reverse" : "row";
688
692
  let $;
689
- e[19] !== U || e[20] !== c ? ($ = {
690
- ...ne.root,
691
- flexDirection: U,
692
- ...c
693
- }, e[19] = U, e[20] = c, e[21] = $) : $ = e[21];
693
+ e[19] !== Y || e[20] !== d ? ($ = {
694
+ ...oe.root,
695
+ flexDirection: Y,
696
+ ...d
697
+ }, e[19] = Y, e[20] = d, e[21] = $) : $ = e[21];
694
698
  let D;
695
- e[22] !== u || e[23] !== i || e[24] !== l || e[25] !== B || e[26] !== P ? (D = B && /* @__PURE__ */ G(re, { children: [
696
- /* @__PURE__ */ a(Xe, { title: P, children: /* @__PURE__ */ a(Re, { ref: F, size: "small", "aria-label": P, "aria-pressed": l, onClick: A, className: l ? "active" : void 0, sx: {
697
- ...l && ne.triggerActive
699
+ e[22] !== u || e[23] !== i || e[24] !== l || e[25] !== R || e[26] !== X ? (D = R && /* @__PURE__ */ G(ie, { children: [
700
+ /* @__PURE__ */ a(Xe, { title: X, children: /* @__PURE__ */ a(Me, { ref: O, size: "small", "aria-label": X, "aria-pressed": l, onClick: L, className: l ? "active" : void 0, sx: {
701
+ ...l && oe.triggerActive
698
702
  }, children: l ? /* @__PURE__ */ a(He, { fontSize: "small" }) : /* @__PURE__ */ a(u, { fontSize: "small", ...i }) }) }),
699
703
  /* @__PURE__ */ a(Pe, { orientation: "vertical", flexItem: !0, sx: {
700
704
  mx: 0.5
701
705
  } })
702
- ] }), e[22] = u, e[23] = i, e[24] = l, e[25] = B, e[26] = P, e[27] = D) : D = e[27];
703
- let z;
704
- e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ a(W, { ref: b, sx: ne.preview }), e[28] = z) : z = e[28];
705
- let H;
706
- e[29] !== h || e[30] !== m || e[31] !== l || e[32] !== B ? (H = B && /* @__PURE__ */ a(Ue, { open: l, anchorEl: h, placement: m === "left" ? "left" : "right", transition: !0, modifiers: [{
706
+ ] }), e[22] = u, e[23] = i, e[24] = l, e[25] = R, e[26] = X, e[27] = D) : D = e[27];
707
+ let N;
708
+ e[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ a(W, { ref: b, sx: oe.preview }), e[28] = N) : N = e[28];
709
+ let F;
710
+ e[29] !== h || e[30] !== m || e[31] !== l || e[32] !== R ? (F = R && /* @__PURE__ */ a(Ue, { open: l, anchorEl: h, placement: m === "left" ? "left" : "right", transition: !0, modifiers: [{
707
711
  name: "flip",
708
712
  enabled: !1
709
713
  }], sx: {
710
714
  zIndex: "tooltip",
711
715
  mt: 0
712
- }, children: (C) => {
716
+ }, children: (S) => {
713
717
  const {
714
- TransitionProps: J
715
- } = C;
716
- return /* @__PURE__ */ a(Ne, { ...J, style: {
718
+ TransitionProps: z
719
+ } = S;
720
+ return /* @__PURE__ */ a(Ne, { ...z, style: {
717
721
  transformOrigin: m === "left" ? "right center" : "left center"
718
- }, children: /* @__PURE__ */ a(je, { ref: k, sx: ne.paper }) });
719
- } }), e[29] = h, e[30] = m, e[31] = l, e[32] = B, e[33] = H) : H = e[33];
720
- let N;
721
- e[34] !== S || e[35] !== O || e[36] !== v || e[37] !== l ? (N = S ? Ge(v.map((C, J) => {
722
- const le = l || !O || O.has(J), xe = C.key ?? J;
723
- return /* @__PURE__ */ a("div", { "data-toolbox-item-visible": le ? "true" : "false", style: {
724
- display: le ? "contents" : "none"
725
- }, children: C }, xe);
726
- }), S) : null, e[34] = S, e[35] = O, e[36] = v, e[37] = l, e[38] = N) : N = e[38];
727
- let K;
728
- return e[39] !== $ || e[40] !== D || e[41] !== H || e[42] !== N ? (K = /* @__PURE__ */ G(W, { sx: $, children: [
722
+ }, children: /* @__PURE__ */ a(je, { ref: k, sx: oe.paper }) });
723
+ } }), e[29] = h, e[30] = m, e[31] = l, e[32] = R, e[33] = F) : F = e[33];
724
+ let B;
725
+ e[34] !== w || e[35] !== M || e[36] !== v || e[37] !== l ? (B = w ? Ge(v.map((S, z) => {
726
+ const Q = l || !M || M.has(z), xe = S.key ?? z;
727
+ return /* @__PURE__ */ a("div", { "data-toolbox-item-visible": Q ? "true" : "false", style: {
728
+ display: Q ? "contents" : "none"
729
+ }, children: S }, xe);
730
+ }), w) : null, e[34] = w, e[35] = M, e[36] = v, e[37] = l, e[38] = B) : B = e[38];
731
+ let H;
732
+ return e[39] !== $ || e[40] !== D || e[41] !== F || e[42] !== B ? (H = /* @__PURE__ */ G(W, { sx: $, children: [
729
733
  D,
730
- z,
731
- H,
732
- N
733
- ] }), e[39] = $, e[40] = D, e[41] = H, e[42] = N, e[43] = K) : K = e[43], K;
734
+ N,
735
+ F,
736
+ B
737
+ ] }), e[39] = $, e[40] = D, e[41] = F, e[42] = B, e[43] = H) : H = e[43], H;
734
738
  }
735
739
  function Vt(t, e) {
736
- return t + (ie(e) ? 0 : 1);
740
+ return t + (le(e) ? 0 : 1);
737
741
  }
738
742
  function Gt(t) {
739
743
  return ce(t);
@@ -747,22 +751,22 @@ function qt() {
747
751
  function Xt(t) {
748
752
  return !t;
749
753
  }
750
- function ie(t) {
754
+ function le(t) {
751
755
  return t.props["data-toolbar-hidden"] === !0;
752
756
  }
753
757
  function Zt(t, e) {
754
758
  const n = [];
755
759
  let r = 0;
756
760
  for (let o = 0; o < t.length && !(r >= e); o++)
757
- n.push(o), ie(t[o]) || r++;
758
- for (; n.length > 0 && ie(t[n[n.length - 1]]); )
761
+ n.push(o), le(t[o]) || r++;
762
+ for (; n.length > 0 && le(t[n[n.length - 1]]); )
759
763
  n.pop();
760
764
  return new Set(n);
761
765
  }
762
766
  const Kt = {
763
767
  showMore: "Show more",
764
768
  showLess: "Show less"
765
- }, oe = {
769
+ }, re = {
766
770
  root: {
767
771
  display: "flex",
768
772
  flexDirection: "column",
@@ -788,7 +792,7 @@ const Kt = {
788
792
  }
789
793
  }
790
794
  };
791
- function Y(t) {
795
+ function J(t) {
792
796
  const e = T(3), {
793
797
  children: n
794
798
  } = t;
@@ -797,23 +801,23 @@ function Y(t) {
797
801
  m: 0
798
802
  }, e[0] = r) : r = e[0];
799
803
  let o;
800
- return e[1] !== n ? (o = /* @__PURE__ */ a(X, { variant: "caption", component: "p", color: "inherit", sx: r, children: n }), e[1] = n, e[2] = o) : o = e[2], o;
804
+ return e[1] !== n ? (o = /* @__PURE__ */ a(Z, { variant: "caption", component: "p", color: "inherit", sx: r, children: n }), e[1] = n, e[2] = o) : o = e[2], o;
801
805
  }
802
806
  const Yt = {
803
807
  // Headings demoted to caption typography — a Note can't introduce a
804
808
  // heading into the page outline.
805
- h1: Y,
806
- h2: Y,
807
- h3: Y,
808
- h4: Y,
809
- h5: Y,
810
- h6: Y,
811
- p: Y,
809
+ h1: J,
810
+ h2: J,
811
+ h3: J,
812
+ h4: J,
813
+ h5: J,
814
+ h6: J,
815
+ p: J,
812
816
  // External-safe link defaults; inherit colour from the muted caption.
813
817
  a: ({
814
818
  children: t,
815
819
  href: e
816
- }) => /* @__PURE__ */ a(fe, { href: e, target: "_blank", rel: "noopener noreferrer", color: "inherit", underline: "always", children: t })
820
+ }) => /* @__PURE__ */ a(pe, { href: e, target: "_blank", rel: "noopener noreferrer", color: "inherit", underline: "always", children: t })
817
821
  };
818
822
  function Jt(t) {
819
823
  const e = T(7), {
@@ -822,9 +826,9 @@ function Jt(t) {
822
826
  children: o
823
827
  } = t, i = n === void 0 ? 3 : n;
824
828
  let s;
825
- e[0] !== o ? (s = /* @__PURE__ */ a(X, { variant: "caption", component: "div", color: "inherit", children: o }), e[0] = o, e[1] = s) : s = e[1];
826
- let c;
827
- return e[2] !== o || e[3] !== r || e[4] !== i || e[5] !== s ? (c = /* @__PURE__ */ a(ye, { lineClamp: i, labels: r, dependency: o, children: s }), e[2] = o, e[3] = r, e[4] = i, e[5] = s, e[6] = c) : c = e[6], c;
829
+ e[0] !== o ? (s = /* @__PURE__ */ a(Z, { variant: "caption", component: "div", color: "inherit", children: o }), e[0] = o, e[1] = s) : s = e[1];
830
+ let d;
831
+ return e[2] !== o || e[3] !== r || e[4] !== i || e[5] !== s ? (d = /* @__PURE__ */ a(ye, { lineClamp: i, labels: r, dependency: o, children: s }), e[2] = o, e[3] = r, e[4] = i, e[5] = s, e[6] = d) : d = e[6], d;
828
832
  }
829
833
  function Qt(t) {
830
834
  const e = T(7), {
@@ -834,8 +838,8 @@ function Qt(t) {
834
838
  } = t, i = r === void 0 ? 3 : r;
835
839
  let s;
836
840
  e[0] !== n ? (s = /* @__PURE__ */ a(Je, { content: n, components: Yt }), e[0] = n, e[1] = s) : s = e[1];
837
- let c;
838
- return e[2] !== n || e[3] !== o || e[4] !== i || e[5] !== s ? (c = /* @__PURE__ */ a(ye, { lineClamp: i, labels: o, dependency: n, children: s }), e[2] = n, e[3] = o, e[4] = i, e[5] = s, e[6] = c) : c = e[6], c;
841
+ let d;
842
+ return e[2] !== n || e[3] !== o || e[4] !== i || e[5] !== s ? (d = /* @__PURE__ */ a(ye, { lineClamp: i, labels: o, dependency: n, children: s }), e[2] = n, e[3] = o, e[4] = i, e[5] = s, e[6] = d) : d = e[6], d;
839
843
  }
840
844
  const en = Object.assign(Jt, {
841
845
  Markdown: Qt
@@ -852,18 +856,18 @@ function ye(t) {
852
856
  ...Kt,
853
857
  ...r
854
858
  }, e[0] = r, e[1] = s) : s = e[1];
855
- const c = s, f = ve(null), [u, m] = V(!1), [p, g] = V(!1), l = n <= 0;
856
- let d;
857
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = () => {
858
- const v = f.current;
859
+ const d = s, p = ve(null), [u, m] = V(!1), [f, g] = V(!1), l = n <= 0;
860
+ let c;
861
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = () => {
862
+ const v = p.current;
859
863
  v && m(v.scrollHeight > v.clientHeight + 1);
860
- }, e[2] = d) : d = e[2];
861
- const h = d;
864
+ }, e[2] = c) : c = e[2];
865
+ const h = c;
862
866
  let y;
863
867
  e[3] !== l ? (y = () => {
864
868
  if (l)
865
869
  return;
866
- const v = f.current;
870
+ const v = p.current;
867
871
  if (v)
868
872
  return h(), Ze(v, h);
869
873
  }, e[3] = l, e[4] = y) : y = e[4];
@@ -871,29 +875,29 @@ function ye(t) {
871
875
  e[5] !== l || e[6] !== o ? (x = [h, o, l], e[5] = l, e[6] = o, e[7] = x) : x = e[7], de(y, x);
872
876
  let b;
873
877
  e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => g(tn), e[8] = b) : b = e[8];
874
- const w = b, k = !p && !l;
878
+ const E = b, k = !f && !l;
875
879
  let _;
876
880
  e[9] !== k || e[10] !== n ? (_ = k ? {
877
- ...oe.clamped,
881
+ ...re.clamped,
878
882
  WebkitLineClamp: n
879
883
  } : null, e[9] = k, e[10] = n, e[11] = _) : _ = e[11];
880
- const A = _;
881
- let E;
882
- e[12] !== A ? (E = A ?? {}, e[12] = A, e[13] = E) : E = e[13];
883
- let F;
884
- e[14] !== E ? (F = {
885
- ...oe.text,
886
- ...E
887
- }, e[14] = E, e[15] = F) : F = e[15];
884
+ const L = _;
885
+ let C;
886
+ e[12] !== L ? (C = L ?? {}, e[12] = L, e[13] = C) : C = e[13];
887
+ let O;
888
+ e[14] !== C ? (O = {
889
+ ...re.text,
890
+ ...C
891
+ }, e[14] = C, e[15] = O) : O = e[15];
888
892
  let I;
889
- e[16] !== i || e[17] !== F ? (I = /* @__PURE__ */ a(W, { ref: f, sx: F, children: i }), e[16] = i, e[17] = F, e[18] = I) : I = e[18];
890
- let L;
891
- e[19] !== c || e[20] !== l || e[21] !== p || e[22] !== u ? (L = !l && (u || p) && /* @__PURE__ */ a(fe, { component: "button", variant: "caption", underline: "none", onClick: w, sx: oe.toggle, children: p ? c.showLess : c.showMore }), e[19] = c, e[20] = l, e[21] = p, e[22] = u, e[23] = L) : L = e[23];
892
- let S;
893
- return e[24] !== L || e[25] !== I ? (S = /* @__PURE__ */ G(W, { sx: oe.root, children: [
893
+ e[16] !== i || e[17] !== O ? (I = /* @__PURE__ */ a(W, { ref: p, sx: O, children: i }), e[16] = i, e[17] = O, e[18] = I) : I = e[18];
894
+ let A;
895
+ e[19] !== d || e[20] !== l || e[21] !== f || e[22] !== u ? (A = !l && (u || f) && /* @__PURE__ */ a(pe, { component: "button", variant: "caption", underline: "none", onClick: E, sx: re.toggle, children: f ? d.showLess : d.showMore }), e[19] = d, e[20] = l, e[21] = f, e[22] = u, e[23] = A) : A = e[23];
896
+ let w;
897
+ return e[24] !== A || e[25] !== I ? (w = /* @__PURE__ */ G(W, { sx: re.root, children: [
894
898
  I,
895
- L
896
- ] }), e[24] = L, e[25] = I, e[26] = S) : S = e[26], S;
899
+ A
900
+ ] }), e[24] = A, e[25] = I, e[26] = w) : w = e[26], w;
897
901
  }
898
902
  function tn(t) {
899
903
  return !t;
@@ -904,8 +908,8 @@ const In = {
904
908
  Wrapper: kt,
905
909
  Actions: me,
906
910
  Options: ue,
907
- Content: At,
908
- Footer: Lt,
911
+ Content: Lt,
912
+ Footer: At,
909
913
  Subheader: $t,
910
914
  State: Bt,
911
915
  SelectionSummary: jt,
@@ -915,7 +919,7 @@ const In = {
915
919
  Echart: Ye,
916
920
  EchartUI: Ke,
917
921
  // Actions
918
- Searcher: pt,
922
+ Searcher: ft,
919
923
  SearcherToggle: dt,
920
924
  StackToggle: ct,
921
925
  ShowAllToggle: at,
@@ -931,7 +935,7 @@ const In = {
931
935
  // compositions of these primitives and live outside the library —
932
936
  // see `apps/storybook/stories/modules/widgets/` for canonical examples.
933
937
  Formula: mt,
934
- FormulaUI: ft,
938
+ FormulaUI: pt,
935
939
  Markdown: et,
936
940
  MarkdownUI: Qe,
937
941
  Spread: gt,