@sanity/ui 2.8.22 → 2.8.24-canary.0

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.
package/dist/index.js CHANGED
@@ -148,11 +148,20 @@ function responsiveTextFont(props) {
148
148
  return responsiveFont("text", props);
149
149
  }
150
150
  function useArrayProp(val, defaultVal) {
151
- const $ = reactCompilerRuntime.c(3);
151
+ const $ = reactCompilerRuntime.c(9);
152
152
  let t0;
153
- $[0] !== val || $[1] !== defaultVal ? (t0 = () => [_getArrayProp(val, defaultVal), JSON.stringify(val ?? defaultVal)], $[0] = val, $[1] = defaultVal, $[2] = t0) : t0 = $[2];
154
- const [t1, setCache] = react.useState(t0), [cachedVal, cachedHash] = t1, hash = JSON.stringify(val ?? defaultVal);
155
- return hash !== cachedHash && setCache([_getArrayProp(val, defaultVal), hash]), cachedVal;
153
+ $[0] !== defaultVal || $[1] !== val ? (t0 = () => [_getArrayProp(val, defaultVal), JSON.stringify(val ?? defaultVal)], $[0] = defaultVal, $[1] = val, $[2] = t0) : t0 = $[2];
154
+ const [t1, setCache] = react.useState(t0), [cachedVal, cachedHash] = t1;
155
+ let result = cachedVal, t2;
156
+ $[3] !== defaultVal || $[4] !== val ? (t2 = JSON.stringify(val ?? defaultVal), $[3] = defaultVal, $[4] = val, $[5] = t2) : t2 = $[5];
157
+ const hash = t2;
158
+ if (hash !== cachedHash) {
159
+ let t3;
160
+ $[6] !== defaultVal || $[7] !== val ? (t3 = _getArrayProp(val, defaultVal), $[6] = defaultVal, $[7] = val, $[8] = t3) : t3 = $[8];
161
+ const current = t3;
162
+ setCache([current, hash]), result = current;
163
+ }
164
+ return result;
156
165
  }
157
166
  function _getElements(element, elementsArg) {
158
167
  const ret = [element];
@@ -184,7 +193,7 @@ function useClickOutside(listener, t0, boundaryElement) {
184
193
  }
185
194
  }, t3 = [element, elementsArg], $[3] = element, $[4] = elementsArg, $[5] = t2, $[6] = t3) : (t2 = $[5], t3 = $[6]), react.useEffect(t2, t3);
186
195
  let t4, t5;
187
- return $[7] !== listener || $[8] !== boundaryElement || $[9] !== elements ? (t4 = () => {
196
+ return $[7] !== boundaryElement || $[8] !== elements || $[9] !== listener ? (t4 = () => {
188
197
  if (!listener)
189
198
  return;
190
199
  const handleWindowMouseDown = (evt) => {
@@ -199,12 +208,12 @@ function useClickOutside(listener, t0, boundaryElement) {
199
208
  return window.addEventListener("mousedown", handleWindowMouseDown), () => {
200
209
  window.removeEventListener("mousedown", handleWindowMouseDown);
201
210
  };
202
- }, t5 = [boundaryElement, listener, elements], $[7] = listener, $[8] = boundaryElement, $[9] = elements, $[10] = t4, $[11] = t5) : (t4 = $[10], t5 = $[11]), react.useEffect(t4, t5), setElement;
211
+ }, t5 = [boundaryElement, listener, elements], $[7] = boundaryElement, $[8] = elements, $[9] = listener, $[10] = t4, $[11] = t5) : (t4 = $[10], t5 = $[11]), react.useEffect(t4, t5), setElement;
203
212
  }
204
213
  function useClickOutsideEvent(listener, t0, boundaryElement) {
205
214
  const $ = reactCompilerRuntime.c(8), elementsArg = t0 === void 0 ? _temp$6 : t0;
206
215
  let t1;
207
- $[0] !== listener || $[1] !== boundaryElement || $[2] !== elementsArg ? (t1 = (evt) => {
216
+ $[0] !== boundaryElement || $[1] !== elementsArg || $[2] !== listener ? (t1 = (evt) => {
208
217
  if (!listener)
209
218
  return;
210
219
  const target = evt.target;
@@ -218,7 +227,7 @@ function useClickOutsideEvent(listener, t0, boundaryElement) {
218
227
  if (el && (target === el || el.contains(target)))
219
228
  return;
220
229
  listener(evt);
221
- }, $[0] = listener, $[1] = boundaryElement, $[2] = elementsArg, $[3] = t1) : t1 = $[3];
230
+ }, $[0] = boundaryElement, $[1] = elementsArg, $[2] = listener, $[3] = t1) : t1 = $[3];
222
231
  const onEvent = useEffectEvent.useEffectEvent(t1), hasListener = !!listener;
223
232
  let t2, t3;
224
233
  $[4] !== hasListener || $[5] !== onEvent ? (t2 = () => {
@@ -236,9 +245,9 @@ function _temp$6() {
236
245
  function useCustomValidity(ref, customValidity) {
237
246
  const $ = reactCompilerRuntime.c(6);
238
247
  let t0;
239
- $[0] !== ref.current || $[1] !== customValidity ? (t0 = () => {
248
+ $[0] !== customValidity || $[1] !== ref.current ? (t0 = () => {
240
249
  ref.current?.setCustomValidity(customValidity || "");
241
- }, $[0] = ref.current, $[1] = customValidity, $[2] = t0) : t0 = $[2];
250
+ }, $[0] = customValidity, $[1] = ref.current, $[2] = t0) : t0 = $[2];
242
251
  let t1;
243
252
  $[3] !== customValidity || $[4] !== ref ? (t1 = [customValidity, ref], $[3] = customValidity, $[4] = ref, $[5] = t1) : t1 = $[5], react.useEffect(t0, t1);
244
253
  }
@@ -650,9 +659,9 @@ function ThemeProvider(props) {
650
659
  return $[8] === Symbol.for("react.memo_cache_sentinel") ? (t22 = /* @__PURE__ */ jsxRuntime.jsx("pre", { children: 'ThemeProvider: no "theme" property provided' }), $[8] = t22) : t22 = $[8], t22;
651
660
  }
652
661
  let t2;
653
- $[9] !== theme$1 || $[10] !== children ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(styledComponents.ThemeProvider, { theme: theme$1, children }), $[9] = theme$1, $[10] = children, $[11] = t2) : t2 = $[11];
662
+ $[9] !== children || $[10] !== theme$1 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(styledComponents.ThemeProvider, { theme: theme$1, children }), $[9] = children, $[10] = theme$1, $[11] = t2) : t2 = $[11];
654
663
  let t3;
655
- return $[12] !== themeContext || $[13] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(ThemeContext.Provider, { value: themeContext, children: t2 }), $[12] = themeContext, $[13] = t2, $[14] = t3) : t3 = $[14], t3;
664
+ return $[12] !== t2 || $[13] !== themeContext ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(ThemeContext.Provider, { value: themeContext, children: t2 }), $[12] = t2, $[13] = themeContext, $[14] = t3) : t3 = $[14], t3;
656
665
  }
657
666
  ThemeProvider.displayName = "ThemeProvider";
658
667
  function useRootTheme() {
@@ -668,7 +677,7 @@ function ThemeColorProvider(props) {
668
677
  tone
669
678
  } = props, root = useRootTheme(), t0 = scheme || root.scheme;
670
679
  let t1;
671
- return $[0] !== t0 || $[1] !== root.theme || $[2] !== tone || $[3] !== children ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(ThemeProvider, { scheme: t0, theme: root.theme, tone, children }), $[0] = t0, $[1] = root.theme, $[2] = tone, $[3] = children, $[4] = t1) : t1 = $[4], t1;
680
+ return $[0] !== children || $[1] !== root.theme || $[2] !== t0 || $[3] !== tone ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(ThemeProvider, { scheme: t0, theme: root.theme, tone, children }), $[0] = children, $[1] = root.theme, $[2] = t0, $[3] = tone, $[4] = t1) : t1 = $[4], t1;
672
681
  }
673
682
  ThemeColorProvider.displayName = "ThemeColorProvider";
674
683
  function useTheme() {
@@ -1461,7 +1470,7 @@ const Root$C = styledComponents.styled.div(responsiveLabelFont, responsiveTextAl
1461
1470
  overflow: clip;
1462
1471
  `, Label = react.forwardRef(function(props, ref) {
1463
1472
  const $ = reactCompilerRuntime.c(22);
1464
- let t0, t1, childrenProp, textOverflow, align, restProps, accent, weight;
1473
+ let accent, align, childrenProp, restProps, t0, t1, textOverflow, weight;
1465
1474
  $[0] !== props ? ({
1466
1475
  accent,
1467
1476
  align,
@@ -1471,7 +1480,7 @@ const Root$C = styledComponents.styled.div(responsiveLabelFont, responsiveTextAl
1471
1480
  textOverflow,
1472
1481
  weight,
1473
1482
  ...restProps
1474
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = childrenProp, $[4] = textOverflow, $[5] = align, $[6] = restProps, $[7] = accent, $[8] = weight) : (t0 = $[1], t1 = $[2], childrenProp = $[3], textOverflow = $[4], align = $[5], restProps = $[6], accent = $[7], weight = $[8]);
1483
+ } = props, $[0] = props, $[1] = accent, $[2] = align, $[3] = childrenProp, $[4] = restProps, $[5] = t0, $[6] = t1, $[7] = textOverflow, $[8] = weight) : (accent = $[1], align = $[2], childrenProp = $[3], restProps = $[4], t0 = $[5], t1 = $[6], textOverflow = $[7], weight = $[8]);
1475
1484
  const muted = t0 === void 0 ? !1 : t0, size2 = t1 === void 0 ? 2 : t1;
1476
1485
  let children = childrenProp;
1477
1486
  if (textOverflow === "ellipsis") {
@@ -1483,7 +1492,7 @@ const Root$C = styledComponents.styled.div(responsiveLabelFont, responsiveTextAl
1483
1492
  }
1484
1493
  const t2 = useArrayProp(align), t3 = useArrayProp(size2);
1485
1494
  let t4;
1486
- return $[13] !== restProps || $[14] !== accent || $[15] !== t2 || $[16] !== muted || $[17] !== t3 || $[18] !== weight || $[19] !== ref || $[20] !== children ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(Root$C, { "data-ui": "Label", ...restProps, $accent: accent, $align: t2, $muted: muted, $size: t3, $weight: weight, ref, children }), $[13] = restProps, $[14] = accent, $[15] = t2, $[16] = muted, $[17] = t3, $[18] = weight, $[19] = ref, $[20] = children, $[21] = t4) : t4 = $[21], t4;
1495
+ return $[13] !== accent || $[14] !== children || $[15] !== muted || $[16] !== ref || $[17] !== restProps || $[18] !== t2 || $[19] !== t3 || $[20] !== weight ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(Root$C, { "data-ui": "Label", ...restProps, $accent: accent, $align: t2, $muted: muted, $size: t3, $weight: weight, ref, children }), $[13] = accent, $[14] = children, $[15] = muted, $[16] = ref, $[17] = restProps, $[18] = t2, $[19] = t3, $[20] = weight, $[21] = t4) : t4 = $[21], t4;
1487
1496
  });
1488
1497
  Label.displayName = "ForwardRef(Label)";
1489
1498
  const avatarStyle = {
@@ -1633,7 +1642,7 @@ const Root$B = styledComponents.styled.div(responsiveAvatarSizeStyle, avatarStyl
1633
1642
  color: "inherit"
1634
1643
  }), Image = styledComponents.styled.svg(avatarStyle.image), Avatar = react.forwardRef(function(props, ref) {
1635
1644
  const $ = reactCompilerRuntime.c(53);
1636
- let t0, t1, t2, asProp, animateArrowFrom, arrowPositionProp, src, onImageLoadError, __unstable_hideInnerStroke, initials, restProps, title;
1645
+ let __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, asProp, initials, onImageLoadError, restProps, src, t0, t1, t2, title;
1637
1646
  $[0] !== props ? ({
1638
1647
  __unstable_hideInnerStroke,
1639
1648
  as: asProp,
@@ -1647,7 +1656,7 @@ const Root$B = styledComponents.styled.div(responsiveAvatarSizeStyle, avatarStyl
1647
1656
  status: t1,
1648
1657
  size: t2,
1649
1658
  ...restProps
1650
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = asProp, $[5] = animateArrowFrom, $[6] = arrowPositionProp, $[7] = src, $[8] = onImageLoadError, $[9] = __unstable_hideInnerStroke, $[10] = initials, $[11] = restProps, $[12] = title) : (t0 = $[1], t1 = $[2], t2 = $[3], asProp = $[4], animateArrowFrom = $[5], arrowPositionProp = $[6], src = $[7], onImageLoadError = $[8], __unstable_hideInnerStroke = $[9], initials = $[10], restProps = $[11], title = $[12]);
1659
+ } = props, $[0] = props, $[1] = __unstable_hideInnerStroke, $[2] = animateArrowFrom, $[3] = arrowPositionProp, $[4] = asProp, $[5] = initials, $[6] = onImageLoadError, $[7] = restProps, $[8] = src, $[9] = t0, $[10] = t1, $[11] = t2, $[12] = title) : (__unstable_hideInnerStroke = $[1], animateArrowFrom = $[2], arrowPositionProp = $[3], asProp = $[4], initials = $[5], onImageLoadError = $[6], restProps = $[7], src = $[8], t0 = $[9], t1 = $[10], t2 = $[11], title = $[12]);
1651
1660
  const color = t0 === void 0 ? "gray" : t0, status = t1 === void 0 ? "online" : t1, sizeProp = t2 === void 0 ? 1 : t2, {
1652
1661
  avatar
1653
1662
  } = useTheme_v2(), as = ReactIs__default.default.isValidElementType(asProp) ? asProp : "div", size2 = useArrayProp(sizeProp), _sizeRem = (avatar.sizes[size2[0]] || avatar.sizes[0]).size, _radius = _sizeRem / 2, elementId = react.useId(), [arrowPosition, setArrowPosition] = react.useState(animateArrowFrom || arrowPositionProp || "inside"), [imageFailed, setImageFailed] = react.useState(!1), imageId = `avatar-image-${elementId}`;
@@ -1678,20 +1687,20 @@ const Root$B = styledComponents.styled.div(responsiveAvatarSizeStyle, avatarStyl
1678
1687
  let t11;
1679
1688
  $[25] !== color ? (t11 = /* @__PURE__ */ jsxRuntime.jsx(Arrow$1, { children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "11", height: "7", viewBox: "0 0 11 7", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z", fill: color }) }) }), $[25] = color, $[26] = t11) : t11 = $[26];
1680
1689
  let t12;
1681
- $[27] !== imageFailed || $[28] !== src || $[29] !== _sizeRem || $[30] !== handleImageError || $[31] !== imageId || $[32] !== _radius || $[33] !== __unstable_hideInnerStroke ? (t12 = !imageFailed && src && /* @__PURE__ */ jsxRuntime.jsxs(Image, { viewBox: `0 0 ${_sizeRem} ${_sizeRem}`, fill: "none", children: [
1690
+ $[27] !== __unstable_hideInnerStroke || $[28] !== _radius || $[29] !== _sizeRem || $[30] !== handleImageError || $[31] !== imageFailed || $[32] !== imageId || $[33] !== src ? (t12 = !imageFailed && src && /* @__PURE__ */ jsxRuntime.jsxs(Image, { viewBox: `0 0 ${_sizeRem} ${_sizeRem}`, fill: "none", children: [
1682
1691
  /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("pattern", { id: imageId, patternContentUnits: "objectBoundingBox", width: "1", height: "1", children: /* @__PURE__ */ jsxRuntime.jsx("image", { href: src, width: "1", height: "1", onError: handleImageError }) }) }),
1683
1692
  /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: _radius, cy: _radius, r: _radius, fill: `url(#${imageId})` }),
1684
1693
  !__unstable_hideInnerStroke && /* @__PURE__ */ jsxRuntime.jsx(BgStroke, { cx: _radius, cy: _radius, rx: _radius, ry: _radius, vectorEffect: "non-scaling-stroke" }),
1685
1694
  /* @__PURE__ */ jsxRuntime.jsx(Stroke, { cx: _radius, cy: _radius, rx: _radius, ry: _radius, vectorEffect: "non-scaling-stroke" })
1686
- ] }), $[27] = imageFailed, $[28] = src, $[29] = _sizeRem, $[30] = handleImageError, $[31] = imageId, $[32] = _radius, $[33] = __unstable_hideInnerStroke, $[34] = t12) : t12 = $[34];
1695
+ ] }), $[27] = __unstable_hideInnerStroke, $[28] = _radius, $[29] = _sizeRem, $[30] = handleImageError, $[31] = imageFailed, $[32] = imageId, $[33] = src, $[34] = t12) : t12 = $[34];
1687
1696
  let t13;
1688
- $[35] !== imageFailed || $[36] !== src || $[37] !== initials || $[38] !== initialsSize ? (t13 = (imageFailed || !src) && initials && /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(Initials, { children: /* @__PURE__ */ jsxRuntime.jsx(InitialsLabel, { forwardedAs: "span", size: initialsSize, weight: "medium", children: initials }) }) }), $[35] = imageFailed, $[36] = src, $[37] = initials, $[38] = initialsSize, $[39] = t13) : t13 = $[39];
1697
+ $[35] !== imageFailed || $[36] !== initials || $[37] !== initialsSize || $[38] !== src ? (t13 = (imageFailed || !src) && initials && /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(Initials, { children: /* @__PURE__ */ jsxRuntime.jsx(InitialsLabel, { forwardedAs: "span", size: initialsSize, weight: "medium", children: initials }) }) }), $[35] = imageFailed, $[36] = initials, $[37] = initialsSize, $[38] = src, $[39] = t13) : t13 = $[39];
1689
1698
  let t14;
1690
- return $[40] !== as || $[41] !== t10 || $[42] !== restProps || $[43] !== color || $[44] !== size2 || $[45] !== title || $[46] !== arrowPosition || $[47] !== status || $[48] !== ref || $[49] !== t11 || $[50] !== t12 || $[51] !== t13 ? (t14 = /* @__PURE__ */ jsxRuntime.jsxs(Root$B, { as, "data-as": t10, "data-ui": "Avatar", ...restProps, $color: color, $size: size2, "aria-label": title, "data-arrow-position": arrowPosition, "data-status": status, ref, title, children: [
1699
+ return $[40] !== arrowPosition || $[41] !== as || $[42] !== color || $[43] !== ref || $[44] !== restProps || $[45] !== size2 || $[46] !== status || $[47] !== t10 || $[48] !== t11 || $[49] !== t12 || $[50] !== t13 || $[51] !== title ? (t14 = /* @__PURE__ */ jsxRuntime.jsxs(Root$B, { as, "data-as": t10, "data-ui": "Avatar", ...restProps, $color: color, $size: size2, "aria-label": title, "data-arrow-position": arrowPosition, "data-status": status, ref, title, children: [
1691
1700
  t11,
1692
1701
  t12,
1693
1702
  t13
1694
- ] }), $[40] = as, $[41] = t10, $[42] = restProps, $[43] = color, $[44] = size2, $[45] = title, $[46] = arrowPosition, $[47] = status, $[48] = ref, $[49] = t11, $[50] = t12, $[51] = t13, $[52] = t14) : t14 = $[52], t14;
1703
+ ] }), $[40] = arrowPosition, $[41] = as, $[42] = color, $[43] = ref, $[44] = restProps, $[45] = size2, $[46] = status, $[47] = t10, $[48] = t11, $[49] = t12, $[50] = t13, $[51] = title, $[52] = t14) : t14 = $[52], t14;
1695
1704
  });
1696
1705
  Avatar.displayName = "ForwardRef(Avatar)";
1697
1706
  function _responsiveAvatarCounterSizeStyle(props) {
@@ -1744,9 +1753,9 @@ const Root$A = styledComponents.styled.div(_responsiveAvatarCounterSizeStyle, _a
1744
1753
  t1 = t2;
1745
1754
  const fontSize2 = t1;
1746
1755
  let t3;
1747
- $[3] !== fontSize2 || $[4] !== count ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(Label, { as: "span", size: fontSize2, weight: "medium", children: count }), $[3] = fontSize2, $[4] = count, $[5] = t3) : t3 = $[5];
1756
+ $[3] !== count || $[4] !== fontSize2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(Label, { as: "span", size: fontSize2, weight: "medium", children: count }), $[3] = count, $[4] = fontSize2, $[5] = t3) : t3 = $[5];
1748
1757
  let t4;
1749
- return $[6] !== size2 || $[7] !== ref || $[8] !== t3 ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(Root$A, { $size: size2, "data-ui": "AvatarCounter", ref, children: t3 }), $[6] = size2, $[7] = ref, $[8] = t3, $[9] = t4) : t4 = $[9], t4;
1758
+ return $[6] !== ref || $[7] !== size2 || $[8] !== t3 ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(Root$A, { $size: size2, "data-ui": "AvatarCounter", ref, children: t3 }), $[6] = ref, $[7] = size2, $[8] = t3, $[9] = t4) : t4 = $[9], t4;
1750
1759
  });
1751
1760
  AvatarCounter.displayName = "ForwardRef(AvatarCounter)";
1752
1761
  const BASE_STYLES = styledComponents.css`
@@ -1779,13 +1788,13 @@ function responsiveAvatarStackSizeStyle(props) {
1779
1788
  }
1780
1789
  const Root$z = styledComponents.styled.div(responsiveAvatarStackSizeStyle, avatarStackStyle), AvatarStack = react.forwardRef(function(props, ref) {
1781
1790
  const $ = reactCompilerRuntime.c(15);
1782
- let t0, t1, childrenProp, restProps;
1791
+ let childrenProp, restProps, t0, t1;
1783
1792
  $[0] !== props ? ({
1784
1793
  children: childrenProp,
1785
1794
  maxLength: t0,
1786
1795
  size: t1,
1787
1796
  ...restProps
1788
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = childrenProp, $[4] = restProps) : (t0 = $[1], t1 = $[2], childrenProp = $[3], restProps = $[4]);
1797
+ } = props, $[0] = props, $[1] = childrenProp, $[2] = restProps, $[3] = t0, $[4] = t1) : (childrenProp = $[1], restProps = $[2], t0 = $[3], t1 = $[4]);
1789
1798
  const maxLengthProp = t0 === void 0 ? 4 : t0, sizeProp = t1 === void 0 ? 1 : t1, children = react.Children.toArray(childrenProp).filter(react.isValidElement), maxLength = Math.max(maxLengthProp, 0), size2 = useArrayProp(sizeProp), len = children.length, visibleCount = maxLength - 1, extraCount = len - visibleCount, visibleChildren = extraCount > 1 ? children.slice(extraCount, len) : children, T0 = Root$z, t2 = "AvatarStack", t3 = len === 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(AvatarCounter, { count: len, size: size2 }) }), t4 = len !== 0 && extraCount > 1 && /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(AvatarCounter, { count: extraCount, size: size2 }) });
1790
1799
  let t5;
1791
1800
  $[5] !== size2 ? (t5 = (child, childIndex) => /* @__PURE__ */ jsxRuntime.jsx("div", { children: react.cloneElement(child, {
@@ -1793,16 +1802,16 @@ const Root$z = styledComponents.styled.div(responsiveAvatarStackSizeStyle, avata
1793
1802
  }) }, String(childIndex)), $[5] = size2, $[6] = t5) : t5 = $[6];
1794
1803
  const t6 = visibleChildren.map(t5);
1795
1804
  let t7;
1796
- return $[7] !== T0 || $[8] !== restProps || $[9] !== ref || $[10] !== size2 || $[11] !== t3 || $[12] !== t4 || $[13] !== t6 ? (t7 = /* @__PURE__ */ jsxRuntime.jsxs(T0, { "data-ui": t2, ...restProps, ref, $size: size2, children: [
1805
+ return $[7] !== T0 || $[8] !== ref || $[9] !== restProps || $[10] !== size2 || $[11] !== t3 || $[12] !== t4 || $[13] !== t6 ? (t7 = /* @__PURE__ */ jsxRuntime.jsxs(T0, { "data-ui": t2, ...restProps, ref, $size: size2, children: [
1797
1806
  t3,
1798
1807
  t4,
1799
1808
  t6
1800
- ] }), $[7] = T0, $[8] = restProps, $[9] = ref, $[10] = size2, $[11] = t3, $[12] = t4, $[13] = t6, $[14] = t7) : t7 = $[14], t7;
1809
+ ] }), $[7] = T0, $[8] = ref, $[9] = restProps, $[10] = size2, $[11] = t3, $[12] = t4, $[13] = t6, $[14] = t7) : t7 = $[14], t7;
1801
1810
  });
1802
1811
  AvatarStack.displayName = "ForwardRef(AvatarStack)";
1803
1812
  const Root$y = styledComponents.styled.div(boxStyle, flexItemStyle, responsiveBoxStyle, responsiveGridItemStyle, responsiveMarginStyle, responsivePaddingStyle), Box = react.forwardRef(function(props, ref) {
1804
1813
  const $ = reactCompilerRuntime.c(59);
1805
- let t0, t1, t2, t3, column, columnStart, columnEnd, flex, height, marginX, marginY, marginTop, marginRight, marginBottom, marginLeft, overflow, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, row, rowStart, rowEnd, sizing, restProps;
1814
+ let column, columnEnd, columnStart, flex, height, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, overflow, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, restProps, row, rowEnd, rowStart, sizing, t0, t1, t2, t3;
1806
1815
  $[0] !== props ? ({
1807
1816
  as: t0,
1808
1817
  column,
@@ -1831,10 +1840,10 @@ const Root$y = styledComponents.styled.div(boxStyle, flexItemStyle, responsiveBo
1831
1840
  rowEnd,
1832
1841
  sizing,
1833
1842
  ...restProps
1834
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = column, $[6] = columnStart, $[7] = columnEnd, $[8] = flex, $[9] = height, $[10] = marginX, $[11] = marginY, $[12] = marginTop, $[13] = marginRight, $[14] = marginBottom, $[15] = marginLeft, $[16] = overflow, $[17] = paddingX, $[18] = paddingY, $[19] = paddingTop, $[20] = paddingRight, $[21] = paddingBottom, $[22] = paddingLeft, $[23] = row, $[24] = rowStart, $[25] = rowEnd, $[26] = sizing, $[27] = restProps) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], column = $[5], columnStart = $[6], columnEnd = $[7], flex = $[8], height = $[9], marginX = $[10], marginY = $[11], marginTop = $[12], marginRight = $[13], marginBottom = $[14], marginLeft = $[15], overflow = $[16], paddingX = $[17], paddingY = $[18], paddingTop = $[19], paddingRight = $[20], paddingBottom = $[21], paddingLeft = $[22], row = $[23], rowStart = $[24], rowEnd = $[25], sizing = $[26], restProps = $[27]);
1843
+ } = props, $[0] = props, $[1] = column, $[2] = columnEnd, $[3] = columnStart, $[4] = flex, $[5] = height, $[6] = marginBottom, $[7] = marginLeft, $[8] = marginRight, $[9] = marginTop, $[10] = marginX, $[11] = marginY, $[12] = overflow, $[13] = paddingBottom, $[14] = paddingLeft, $[15] = paddingRight, $[16] = paddingTop, $[17] = paddingX, $[18] = paddingY, $[19] = restProps, $[20] = row, $[21] = rowEnd, $[22] = rowStart, $[23] = sizing, $[24] = t0, $[25] = t1, $[26] = t2, $[27] = t3) : (column = $[1], columnEnd = $[2], columnStart = $[3], flex = $[4], height = $[5], marginBottom = $[6], marginLeft = $[7], marginRight = $[8], marginTop = $[9], marginX = $[10], marginY = $[11], overflow = $[12], paddingBottom = $[13], paddingLeft = $[14], paddingRight = $[15], paddingTop = $[16], paddingX = $[17], paddingY = $[18], restProps = $[19], row = $[20], rowEnd = $[21], rowStart = $[22], sizing = $[23], t0 = $[24], t1 = $[25], t2 = $[26], t3 = $[27]);
1835
1844
  const asProp = t0 === void 0 ? "div" : t0, display = t1 === void 0 ? "block" : t1, margin = t2 === void 0 ? 0 : t2, padding = t3 === void 0 ? 0 : t3, t4 = typeof asProp == "string" ? asProp : void 0, t5 = useArrayProp(column), t6 = useArrayProp(columnStart), t7 = useArrayProp(columnEnd), t8 = useArrayProp(display), t9 = useArrayProp(flex), t10 = useArrayProp(height), t11 = useArrayProp(margin), t12 = useArrayProp(marginX), t13 = useArrayProp(marginY), t14 = useArrayProp(marginTop), t15 = useArrayProp(marginRight), t16 = useArrayProp(marginBottom), t17 = useArrayProp(marginLeft), t18 = useArrayProp(overflow), t19 = useArrayProp(padding), t20 = useArrayProp(paddingX), t21 = useArrayProp(paddingY), t22 = useArrayProp(paddingTop), t23 = useArrayProp(paddingRight), t24 = useArrayProp(paddingBottom), t25 = useArrayProp(paddingLeft), t26 = useArrayProp(row), t27 = useArrayProp(rowStart), t28 = useArrayProp(rowEnd), t29 = useArrayProp(sizing);
1836
1845
  let t30;
1837
- return $[28] !== t4 || $[29] !== restProps || $[30] !== t5 || $[31] !== t6 || $[32] !== t7 || $[33] !== t8 || $[34] !== t9 || $[35] !== t10 || $[36] !== t11 || $[37] !== t12 || $[38] !== t13 || $[39] !== t14 || $[40] !== t15 || $[41] !== t16 || $[42] !== t17 || $[43] !== t18 || $[44] !== t19 || $[45] !== t20 || $[46] !== t21 || $[47] !== t22 || $[48] !== t23 || $[49] !== t24 || $[50] !== t25 || $[51] !== t26 || $[52] !== t27 || $[53] !== t28 || $[54] !== t29 || $[55] !== asProp || $[56] !== ref || $[57] !== props.children ? (t30 = /* @__PURE__ */ jsxRuntime.jsx(Root$y, { "data-as": t4, "data-ui": "Box", ...restProps, $column: t5, $columnStart: t6, $columnEnd: t7, $display: t8, $flex: t9, $height: t10, $margin: t11, $marginX: t12, $marginY: t13, $marginTop: t14, $marginRight: t15, $marginBottom: t16, $marginLeft: t17, $overflow: t18, $padding: t19, $paddingX: t20, $paddingY: t21, $paddingTop: t22, $paddingRight: t23, $paddingBottom: t24, $paddingLeft: t25, $row: t26, $rowStart: t27, $rowEnd: t28, $sizing: t29, as: asProp, ref, children: props.children }), $[28] = t4, $[29] = restProps, $[30] = t5, $[31] = t6, $[32] = t7, $[33] = t8, $[34] = t9, $[35] = t10, $[36] = t11, $[37] = t12, $[38] = t13, $[39] = t14, $[40] = t15, $[41] = t16, $[42] = t17, $[43] = t18, $[44] = t19, $[45] = t20, $[46] = t21, $[47] = t22, $[48] = t23, $[49] = t24, $[50] = t25, $[51] = t26, $[52] = t27, $[53] = t28, $[54] = t29, $[55] = asProp, $[56] = ref, $[57] = props.children, $[58] = t30) : t30 = $[58], t30;
1846
+ return $[28] !== asProp || $[29] !== props.children || $[30] !== ref || $[31] !== restProps || $[32] !== t10 || $[33] !== t11 || $[34] !== t12 || $[35] !== t13 || $[36] !== t14 || $[37] !== t15 || $[38] !== t16 || $[39] !== t17 || $[40] !== t18 || $[41] !== t19 || $[42] !== t20 || $[43] !== t21 || $[44] !== t22 || $[45] !== t23 || $[46] !== t24 || $[47] !== t25 || $[48] !== t26 || $[49] !== t27 || $[50] !== t28 || $[51] !== t29 || $[52] !== t4 || $[53] !== t5 || $[54] !== t6 || $[55] !== t7 || $[56] !== t8 || $[57] !== t9 ? (t30 = /* @__PURE__ */ jsxRuntime.jsx(Root$y, { "data-as": t4, "data-ui": "Box", ...restProps, $column: t5, $columnStart: t6, $columnEnd: t7, $display: t8, $flex: t9, $height: t10, $margin: t11, $marginX: t12, $marginY: t13, $marginTop: t14, $marginRight: t15, $marginBottom: t16, $marginLeft: t17, $overflow: t18, $padding: t19, $paddingX: t20, $paddingY: t21, $paddingTop: t22, $paddingRight: t23, $paddingBottom: t24, $paddingLeft: t25, $row: t26, $rowStart: t27, $rowEnd: t28, $sizing: t29, as: asProp, ref, children: props.children }), $[28] = asProp, $[29] = props.children, $[30] = ref, $[31] = restProps, $[32] = t10, $[33] = t11, $[34] = t12, $[35] = t13, $[36] = t14, $[37] = t15, $[38] = t16, $[39] = t17, $[40] = t18, $[41] = t19, $[42] = t20, $[43] = t21, $[44] = t22, $[45] = t23, $[46] = t24, $[47] = t25, $[48] = t26, $[49] = t27, $[50] = t28, $[51] = t29, $[52] = t4, $[53] = t5, $[54] = t6, $[55] = t7, $[56] = t8, $[57] = t9, $[58] = t30) : t30 = $[58], t30;
1838
1847
  });
1839
1848
  Box.displayName = "ForwardRef(Box)";
1840
1849
  function textBaseStyle(props) {
@@ -1913,7 +1922,7 @@ const Root$x = styledComponents.styled.div(responsiveTextFont, responsiveTextAli
1913
1922
  overflow: clip;
1914
1923
  `, Text = react.forwardRef(function(props, ref) {
1915
1924
  const $ = reactCompilerRuntime.c(22);
1916
- let t0, t1, t2, childrenProp, textOverflow, align, restProps, weight;
1925
+ let align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
1917
1926
  $[0] !== props ? ({
1918
1927
  accent: t0,
1919
1928
  align,
@@ -1923,7 +1932,7 @@ const Root$x = styledComponents.styled.div(responsiveTextFont, responsiveTextAli
1923
1932
  textOverflow,
1924
1933
  weight,
1925
1934
  ...restProps
1926
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = childrenProp, $[5] = textOverflow, $[6] = align, $[7] = restProps, $[8] = weight) : (t0 = $[1], t1 = $[2], t2 = $[3], childrenProp = $[4], textOverflow = $[5], align = $[6], restProps = $[7], weight = $[8]);
1935
+ } = props, $[0] = props, $[1] = align, $[2] = childrenProp, $[3] = restProps, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = textOverflow, $[8] = weight) : (align = $[1], childrenProp = $[2], restProps = $[3], t0 = $[4], t1 = $[5], t2 = $[6], textOverflow = $[7], weight = $[8]);
1927
1936
  const accent = t0 === void 0 ? !1 : t0, muted = t1 === void 0 ? !1 : t1, size2 = t2 === void 0 ? 2 : t2;
1928
1937
  let children = childrenProp;
1929
1938
  if (textOverflow === "ellipsis") {
@@ -1934,7 +1943,7 @@ const Root$x = styledComponents.styled.div(responsiveTextFont, responsiveTextAli
1934
1943
  let t5;
1935
1944
  $[11] !== children ? (t5 = /* @__PURE__ */ jsxRuntime.jsx("span", { children }), $[11] = children, $[12] = t5) : t5 = $[12];
1936
1945
  let t6;
1937
- return $[13] !== restProps || $[14] !== accent || $[15] !== t3 || $[16] !== muted || $[17] !== ref || $[18] !== t4 || $[19] !== weight || $[20] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Root$x, { "data-ui": "Text", ...restProps, $accent: accent, $align: t3, $muted: muted, ref, $size: t4, $weight: weight, children: t5 }), $[13] = restProps, $[14] = accent, $[15] = t3, $[16] = muted, $[17] = ref, $[18] = t4, $[19] = weight, $[20] = t5, $[21] = t6) : t6 = $[21], t6;
1946
+ return $[13] !== accent || $[14] !== muted || $[15] !== ref || $[16] !== restProps || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== weight ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Root$x, { "data-ui": "Text", ...restProps, $accent: accent, $align: t3, $muted: muted, ref, $size: t4, $weight: weight, children: t5 }), $[13] = accent, $[14] = muted, $[15] = ref, $[16] = restProps, $[17] = t3, $[18] = t4, $[19] = t5, $[20] = weight, $[21] = t6) : t6 = $[21], t6;
1938
1947
  });
1939
1948
  Text.displayName = "ForwardRef(Text)";
1940
1949
  function badgeStyle(props) {
@@ -1954,7 +1963,7 @@ function badgeStyle(props) {
1954
1963
  }
1955
1964
  const Root$w = styledComponents.styled(Box)(responsiveRadiusStyle, badgeStyle), Badge = react.forwardRef(function(props, ref) {
1956
1965
  const $ = reactCompilerRuntime.c(17);
1957
- let t0, t1, t2, t3, children, restProps;
1966
+ let children, restProps, t0, t1, t2, t3;
1958
1967
  if ($[0] !== props) {
1959
1968
  const {
1960
1969
  children: t42,
@@ -1965,19 +1974,19 @@ const Root$w = styledComponents.styled(Box)(responsiveRadiusStyle, badgeStyle),
1965
1974
  tone: t8,
1966
1975
  ...t9
1967
1976
  } = props;
1968
- children = t42, t0 = t52, t1 = t62, t2 = t72, t3 = t8, restProps = t9, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = children, $[6] = restProps;
1977
+ children = t42, t0 = t52, t1 = t62, t2 = t72, t3 = t8, restProps = t9, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0, $[4] = t1, $[5] = t2, $[6] = t3;
1969
1978
  } else
1970
- t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], children = $[5], restProps = $[6];
1979
+ children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5], t3 = $[6];
1971
1980
  const fontSize2 = t0 === void 0 ? 1 : t0, padding = t1 === void 0 ? 1 : t1, radius = t2 === void 0 ? "full" : t2, tone = t3 === void 0 ? "default" : t3, t4 = useArrayProp(radius), t5 = useArrayProp(padding);
1972
1981
  let t6;
1973
- $[7] !== fontSize2 || $[8] !== children ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Text, { size: fontSize2, children }), $[7] = fontSize2, $[8] = children, $[9] = t6) : t6 = $[9];
1982
+ $[7] !== children || $[8] !== fontSize2 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Text, { size: fontSize2, children }), $[7] = children, $[8] = fontSize2, $[9] = t6) : t6 = $[9];
1974
1983
  let t7;
1975
- return $[10] !== restProps || $[11] !== tone || $[12] !== t4 || $[13] !== t5 || $[14] !== ref || $[15] !== t6 ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(Root$w, { "data-ui": "Badge", ...restProps, $tone: tone, $radius: t4, padding: t5, ref, children: t6 }), $[10] = restProps, $[11] = tone, $[12] = t4, $[13] = t5, $[14] = ref, $[15] = t6, $[16] = t7) : t7 = $[16], t7;
1984
+ return $[10] !== ref || $[11] !== restProps || $[12] !== t4 || $[13] !== t5 || $[14] !== t6 || $[15] !== tone ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(Root$w, { "data-ui": "Badge", ...restProps, $tone: tone, $radius: t4, padding: t5, ref, children: t6 }), $[10] = ref, $[11] = restProps, $[12] = t4, $[13] = t5, $[14] = t6, $[15] = tone, $[16] = t7) : t7 = $[16], t7;
1976
1985
  });
1977
1986
  Badge.displayName = "ForwardRef(Badge)";
1978
1987
  const Root$v = styledComponents.styled(Box)(flexItemStyle, responsiveFlexStyle), Flex = react.forwardRef(function(props, ref) {
1979
1988
  const $ = reactCompilerRuntime.c(17);
1980
- let t0, align, gap, justify, wrap, restProps, as;
1989
+ let align, as, gap, justify, restProps, t0, wrap;
1981
1990
  $[0] !== props ? ({
1982
1991
  align,
1983
1992
  as,
@@ -1986,10 +1995,10 @@ const Root$v = styledComponents.styled(Box)(flexItemStyle, responsiveFlexStyle),
1986
1995
  justify,
1987
1996
  wrap,
1988
1997
  ...restProps
1989
- } = props, $[0] = props, $[1] = t0, $[2] = align, $[3] = gap, $[4] = justify, $[5] = wrap, $[6] = restProps, $[7] = as) : (t0 = $[1], align = $[2], gap = $[3], justify = $[4], wrap = $[5], restProps = $[6], as = $[7]);
1998
+ } = props, $[0] = props, $[1] = align, $[2] = as, $[3] = gap, $[4] = justify, $[5] = restProps, $[6] = t0, $[7] = wrap) : (align = $[1], as = $[2], gap = $[3], justify = $[4], restProps = $[5], t0 = $[6], wrap = $[7]);
1990
1999
  const direction = t0 === void 0 ? "row" : t0, t1 = useArrayProp(align), t2 = useArrayProp(direction), t3 = useArrayProp(gap), t4 = useArrayProp(justify), t5 = useArrayProp(wrap);
1991
2000
  let t6;
1992
- return $[8] !== restProps || $[9] !== t1 || $[10] !== t2 || $[11] !== t3 || $[12] !== t4 || $[13] !== t5 || $[14] !== as || $[15] !== ref ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Root$v, { "data-ui": "Flex", ...restProps, $align: t1, $direction: t2, $gap: t3, $justify: t4, $wrap: t5, forwardedAs: as, ref }), $[8] = restProps, $[9] = t1, $[10] = t2, $[11] = t3, $[12] = t4, $[13] = t5, $[14] = as, $[15] = ref, $[16] = t6) : t6 = $[16], t6;
2001
+ return $[8] !== as || $[9] !== ref || $[10] !== restProps || $[11] !== t1 || $[12] !== t2 || $[13] !== t3 || $[14] !== t4 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Root$v, { "data-ui": "Flex", ...restProps, $align: t1, $direction: t2, $gap: t3, $justify: t4, $wrap: t5, forwardedAs: as, ref }), $[8] = as, $[9] = ref, $[10] = restProps, $[11] = t1, $[12] = t2, $[13] = t3, $[14] = t4, $[15] = t5, $[16] = t6) : t6 = $[16], t6;
1993
2002
  });
1994
2003
  Flex.displayName = "ForwardRef(Flex)";
1995
2004
  const rotate$1 = styledComponents.keyframes`
@@ -2187,7 +2196,7 @@ const Root$t = styledComponents.styled.button(responsiveRadiusStyle, buttonBaseS
2187
2196
  box-shadow: inherit;
2188
2197
  `, Button = react.forwardRef(function(props, ref) {
2189
2198
  const $ = reactCompilerRuntime.c(64);
2190
- let t0, t1, t2, t3, t4, t5, t6, t7, t8, paddingXProp, paddingYProp, paddingTopProp, paddingBottomProp, paddingLeftProp, paddingRightProp, loading, disabled, selected, IconComponent, text, IconRightComponent, textAlign, children, restProps, width;
2199
+ let IconComponent, IconRightComponent, children, disabled, loading, paddingBottomProp, paddingLeftProp, paddingRightProp, paddingTopProp, paddingXProp, paddingYProp, restProps, selected, t0, t1, t2, t3, t4, t5, t6, t7, t8, text, textAlign, width;
2191
2200
  $[0] !== props ? ({
2192
2201
  children,
2193
2202
  disabled,
@@ -2214,12 +2223,12 @@ const Root$t = styledComponents.styled.button(responsiveRadiusStyle, buttonBaseS
2214
2223
  muted: t8,
2215
2224
  width,
2216
2225
  ...restProps
2217
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = t4, $[6] = t5, $[7] = t6, $[8] = t7, $[9] = t8, $[10] = paddingXProp, $[11] = paddingYProp, $[12] = paddingTopProp, $[13] = paddingBottomProp, $[14] = paddingLeftProp, $[15] = paddingRightProp, $[16] = loading, $[17] = disabled, $[18] = selected, $[19] = IconComponent, $[20] = text, $[21] = IconRightComponent, $[22] = textAlign, $[23] = children, $[24] = restProps, $[25] = width) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], t4 = $[5], t5 = $[6], t6 = $[7], t7 = $[8], t8 = $[9], paddingXProp = $[10], paddingYProp = $[11], paddingTopProp = $[12], paddingBottomProp = $[13], paddingLeftProp = $[14], paddingRightProp = $[15], loading = $[16], disabled = $[17], selected = $[18], IconComponent = $[19], text = $[20], IconRightComponent = $[21], textAlign = $[22], children = $[23], restProps = $[24], width = $[25]);
2226
+ } = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = children, $[4] = disabled, $[5] = loading, $[6] = paddingBottomProp, $[7] = paddingLeftProp, $[8] = paddingRightProp, $[9] = paddingTopProp, $[10] = paddingXProp, $[11] = paddingYProp, $[12] = restProps, $[13] = selected, $[14] = t0, $[15] = t1, $[16] = t2, $[17] = t3, $[18] = t4, $[19] = t5, $[20] = t6, $[21] = t7, $[22] = t8, $[23] = text, $[24] = textAlign, $[25] = width) : (IconComponent = $[1], IconRightComponent = $[2], children = $[3], disabled = $[4], loading = $[5], paddingBottomProp = $[6], paddingLeftProp = $[7], paddingRightProp = $[8], paddingTopProp = $[9], paddingXProp = $[10], paddingYProp = $[11], restProps = $[12], selected = $[13], t0 = $[14], t1 = $[15], t2 = $[16], t3 = $[17], t4 = $[18], t5 = $[19], t6 = $[20], t7 = $[21], t8 = $[22], text = $[23], textAlign = $[24], width = $[25]);
2218
2227
  const fontSize2 = t0 === void 0 ? 1 : t0, justifyProp = t1 === void 0 ? "center" : t1, mode = t2 === void 0 ? "default" : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, spaceProp = t5 === void 0 ? 3 : t5, tone = t6 === void 0 ? "default" : t6, type = t7 === void 0 ? "button" : t7, muted = t8 === void 0 ? !1 : t8, {
2219
2228
  button
2220
2229
  } = useTheme_v2(), justify = useArrayProp(justifyProp), padding = useArrayProp(paddingProp), paddingX = useArrayProp(paddingXProp), paddingY = useArrayProp(paddingYProp), paddingTop = useArrayProp(paddingTopProp), paddingBottom = useArrayProp(paddingBottomProp), paddingLeft = useArrayProp(paddingLeftProp), paddingRight = useArrayProp(paddingRightProp), radius = useArrayProp(radiusProp), space = useArrayProp(spaceProp);
2221
2230
  let t9, t10;
2222
- $[26] !== padding || $[27] !== paddingX || $[28] !== paddingY || $[29] !== paddingTop || $[30] !== paddingBottom || $[31] !== paddingLeft || $[32] !== paddingRight ? (t10 = {
2231
+ $[26] !== padding || $[27] !== paddingBottom || $[28] !== paddingLeft || $[29] !== paddingRight || $[30] !== paddingTop || $[31] !== paddingX || $[32] !== paddingY ? (t10 = {
2223
2232
  padding,
2224
2233
  paddingX,
2225
2234
  paddingY,
@@ -2227,12 +2236,12 @@ const Root$t = styledComponents.styled.button(responsiveRadiusStyle, buttonBaseS
2227
2236
  paddingBottom,
2228
2237
  paddingLeft,
2229
2238
  paddingRight
2230
- }, $[26] = padding, $[27] = paddingX, $[28] = paddingY, $[29] = paddingTop, $[30] = paddingBottom, $[31] = paddingLeft, $[32] = paddingRight, $[33] = t10) : t10 = $[33], t9 = t10;
2239
+ }, $[26] = padding, $[27] = paddingBottom, $[28] = paddingLeft, $[29] = paddingRight, $[30] = paddingTop, $[31] = paddingX, $[32] = paddingY, $[33] = t10) : t10 = $[33], t9 = t10;
2231
2240
  const boxProps = t9, t11 = !!(loading || disabled), t12 = selected ? "" : void 0, t13 = !!(loading || disabled);
2232
2241
  let t14;
2233
2242
  $[34] !== loading ? (t14 = !!loading && /* @__PURE__ */ jsxRuntime.jsx(LoadingBox, { children: /* @__PURE__ */ jsxRuntime.jsx(Spinner, {}) }), $[34] = loading, $[35] = t14) : t14 = $[35];
2234
2243
  let t15;
2235
- $[36] !== IconComponent || $[37] !== text || $[38] !== IconRightComponent || $[39] !== fontSize2 || $[40] !== muted || $[41] !== textAlign || $[42] !== button || $[43] !== justify || $[44] !== space || $[45] !== boxProps ? (t15 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsxs(Flex, { as: "span", justify, gap: space, children: [
2244
+ $[36] !== IconComponent || $[37] !== IconRightComponent || $[38] !== boxProps || $[39] !== button || $[40] !== fontSize2 || $[41] !== justify || $[42] !== muted || $[43] !== space || $[44] !== text || $[45] !== textAlign ? (t15 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", ...boxProps, children: /* @__PURE__ */ jsxRuntime.jsxs(Flex, { as: "span", justify, gap: space, children: [
2236
2245
  IconComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
2237
2246
  react.isValidElement(IconComponent) && IconComponent,
2238
2247
  ReactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
@@ -2242,15 +2251,15 @@ const Root$t = styledComponents.styled.button(responsiveRadiusStyle, buttonBaseS
2242
2251
  react.isValidElement(IconRightComponent) && IconRightComponent,
2243
2252
  ReactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
2244
2253
  ] })
2245
- ] }) }), $[36] = IconComponent, $[37] = text, $[38] = IconRightComponent, $[39] = fontSize2, $[40] = muted, $[41] = textAlign, $[42] = button, $[43] = justify, $[44] = space, $[45] = boxProps, $[46] = t15) : t15 = $[46];
2254
+ ] }) }), $[36] = IconComponent, $[37] = IconRightComponent, $[38] = boxProps, $[39] = button, $[40] = fontSize2, $[41] = justify, $[42] = muted, $[43] = space, $[44] = text, $[45] = textAlign, $[46] = t15) : t15 = $[46];
2246
2255
  let t16;
2247
- $[47] !== children || $[48] !== boxProps ? (t16 = children && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", ...boxProps, children }), $[47] = children, $[48] = boxProps, $[49] = t16) : t16 = $[49];
2256
+ $[47] !== boxProps || $[48] !== children ? (t16 = children && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", ...boxProps, children }), $[47] = boxProps, $[48] = children, $[49] = t16) : t16 = $[49];
2248
2257
  let t17;
2249
- return $[50] !== restProps || $[51] !== mode || $[52] !== radius || $[53] !== tone || $[54] !== t11 || $[55] !== t12 || $[56] !== t13 || $[57] !== ref || $[58] !== type || $[59] !== width || $[60] !== t14 || $[61] !== t15 || $[62] !== t16 ? (t17 = /* @__PURE__ */ jsxRuntime.jsxs(Root$t, { "data-ui": "Button", ...restProps, $mode: mode, $radius: radius, $tone: tone, "data-disabled": t11, "data-selected": t12, disabled: t13, ref, type, $width: width, children: [
2258
+ return $[50] !== mode || $[51] !== radius || $[52] !== ref || $[53] !== restProps || $[54] !== t11 || $[55] !== t12 || $[56] !== t13 || $[57] !== t14 || $[58] !== t15 || $[59] !== t16 || $[60] !== tone || $[61] !== type || $[62] !== width ? (t17 = /* @__PURE__ */ jsxRuntime.jsxs(Root$t, { "data-ui": "Button", ...restProps, $mode: mode, $radius: radius, $tone: tone, "data-disabled": t11, "data-selected": t12, disabled: t13, ref, type, $width: width, children: [
2250
2259
  t14,
2251
2260
  t15,
2252
2261
  t16
2253
- ] }), $[50] = restProps, $[51] = mode, $[52] = radius, $[53] = tone, $[54] = t11, $[55] = t12, $[56] = t13, $[57] = ref, $[58] = type, $[59] = width, $[60] = t14, $[61] = t15, $[62] = t16, $[63] = t17) : t17 = $[63], t17;
2262
+ ] }), $[50] = mode, $[51] = radius, $[52] = ref, $[53] = restProps, $[54] = t11, $[55] = t12, $[56] = t13, $[57] = t14, $[58] = t15, $[59] = t16, $[60] = tone, $[61] = type, $[62] = width, $[63] = t17) : t17 = $[63], t17;
2254
2263
  });
2255
2264
  Button.displayName = "ForwardRef(Button)";
2256
2265
  function cardStyle(props) {
@@ -2403,7 +2412,7 @@ function cardColorStyle(props) {
2403
2412
  }
2404
2413
  const Root$s = styledComponents.styled(Box)(responsiveBorderStyle, responsiveRadiusStyle, responsiveShadowStyle, cardStyle), Card = react.forwardRef(function(props, ref) {
2405
2414
  const $ = reactCompilerRuntime.c(42);
2406
- let t0, t1, t2, t3, asProp, border2, borderTop2, borderRight2, borderBottom2, borderLeft2, shadow, pressed, selected, restProps, muted, scheme;
2415
+ let asProp, border2, borderBottom2, borderLeft2, borderRight2, borderTop2, muted, pressed, restProps, scheme, selected, shadow, t0, t1, t2, t3;
2407
2416
  $[0] !== props ? ({
2408
2417
  __unstable_checkered: t0,
2409
2418
  __unstable_focusRing: t1,
@@ -2421,12 +2430,12 @@ const Root$s = styledComponents.styled(Box)(responsiveBorderStyle, responsiveRad
2421
2430
  shadow,
2422
2431
  tone: t3,
2423
2432
  ...restProps
2424
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = asProp, $[6] = border2, $[7] = borderTop2, $[8] = borderRight2, $[9] = borderBottom2, $[10] = borderLeft2, $[11] = shadow, $[12] = pressed, $[13] = selected, $[14] = restProps, $[15] = muted, $[16] = scheme) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], asProp = $[5], border2 = $[6], borderTop2 = $[7], borderRight2 = $[8], borderBottom2 = $[9], borderLeft2 = $[10], shadow = $[11], pressed = $[12], selected = $[13], restProps = $[14], muted = $[15], scheme = $[16]);
2433
+ } = props, $[0] = props, $[1] = asProp, $[2] = border2, $[3] = borderBottom2, $[4] = borderLeft2, $[5] = borderRight2, $[6] = borderTop2, $[7] = muted, $[8] = pressed, $[9] = restProps, $[10] = scheme, $[11] = selected, $[12] = shadow, $[13] = t0, $[14] = t1, $[15] = t2, $[16] = t3) : (asProp = $[1], border2 = $[2], borderBottom2 = $[3], borderLeft2 = $[4], borderRight2 = $[5], borderTop2 = $[6], muted = $[7], pressed = $[8], restProps = $[9], scheme = $[10], selected = $[11], shadow = $[12], t0 = $[13], t1 = $[14], t2 = $[15], t3 = $[16]);
2425
2434
  const checkered = t0 === void 0 ? !1 : t0, focusRing = t1 === void 0 ? !1 : t1, radius = t2 === void 0 ? 0 : t2, toneProp = t3 === void 0 ? "default" : t3, as = ReactIs.isValidElementType(asProp) ? asProp : "div", rootTheme = useRootTheme(), tone = toneProp === "inherit" ? rootTheme.tone : toneProp, t4 = typeof as == "string" ? as : void 0, t5 = rootTheme.scheme, t6 = useArrayProp(border2), t7 = useArrayProp(borderTop2), t8 = useArrayProp(borderRight2), t9 = useArrayProp(borderBottom2), t10 = useArrayProp(borderLeft2), t11 = useArrayProp(radius), t12 = useArrayProp(shadow), t13 = checkered ? "" : void 0, t14 = pressed ? "" : void 0, t15 = selected ? "" : void 0;
2426
2435
  let t16;
2427
- $[17] !== t4 || $[18] !== rootTheme.scheme || $[19] !== tone || $[20] !== restProps || $[21] !== t6 || $[22] !== t7 || $[23] !== t8 || $[24] !== t9 || $[25] !== t10 || $[26] !== checkered || $[27] !== focusRing || $[28] !== muted || $[29] !== t11 || $[30] !== t12 || $[31] !== t13 || $[32] !== t14 || $[33] !== t15 || $[34] !== as || $[35] !== ref || $[36] !== selected ? (t16 = /* @__PURE__ */ jsxRuntime.jsx(Root$s, { "data-as": t4, "data-scheme": t5, "data-ui": "Card", "data-tone": tone, ...restProps, $border: t6, $borderTop: t7, $borderRight: t8, $borderBottom: t9, $borderLeft: t10, $checkered: checkered, $focusRing: focusRing, $muted: muted, $radius: t11, $shadow: t12, $tone: tone, "data-checkered": t13, "data-pressed": t14, "data-selected": t15, forwardedAs: as, ref, selected }), $[17] = t4, $[18] = rootTheme.scheme, $[19] = tone, $[20] = restProps, $[21] = t6, $[22] = t7, $[23] = t8, $[24] = t9, $[25] = t10, $[26] = checkered, $[27] = focusRing, $[28] = muted, $[29] = t11, $[30] = t12, $[31] = t13, $[32] = t14, $[33] = t15, $[34] = as, $[35] = ref, $[36] = selected, $[37] = t16) : t16 = $[37];
2436
+ $[17] !== as || $[18] !== checkered || $[19] !== focusRing || $[20] !== muted || $[21] !== ref || $[22] !== restProps || $[23] !== rootTheme.scheme || $[24] !== selected || $[25] !== t10 || $[26] !== t11 || $[27] !== t12 || $[28] !== t13 || $[29] !== t14 || $[30] !== t15 || $[31] !== t4 || $[32] !== t6 || $[33] !== t7 || $[34] !== t8 || $[35] !== t9 || $[36] !== tone ? (t16 = /* @__PURE__ */ jsxRuntime.jsx(Root$s, { "data-as": t4, "data-scheme": t5, "data-ui": "Card", "data-tone": tone, ...restProps, $border: t6, $borderTop: t7, $borderRight: t8, $borderBottom: t9, $borderLeft: t10, $checkered: checkered, $focusRing: focusRing, $muted: muted, $radius: t11, $shadow: t12, $tone: tone, "data-checkered": t13, "data-pressed": t14, "data-selected": t15, forwardedAs: as, ref, selected }), $[17] = as, $[18] = checkered, $[19] = focusRing, $[20] = muted, $[21] = ref, $[22] = restProps, $[23] = rootTheme.scheme, $[24] = selected, $[25] = t10, $[26] = t11, $[27] = t12, $[28] = t13, $[29] = t14, $[30] = t15, $[31] = t4, $[32] = t6, $[33] = t7, $[34] = t8, $[35] = t9, $[36] = tone, $[37] = t16) : t16 = $[37];
2428
2437
  let t17;
2429
- return $[38] !== scheme || $[39] !== tone || $[40] !== t16 ? (t17 = /* @__PURE__ */ jsxRuntime.jsx(ThemeColorProvider, { scheme, tone, children: t16 }), $[38] = scheme, $[39] = tone, $[40] = t16, $[41] = t17) : t17 = $[41], t17;
2438
+ return $[38] !== scheme || $[39] !== t16 || $[40] !== tone ? (t17 = /* @__PURE__ */ jsxRuntime.jsx(ThemeColorProvider, { scheme, tone, children: t16 }), $[38] = scheme, $[39] = t16, $[40] = tone, $[41] = t17) : t17 = $[41], t17;
2430
2439
  });
2431
2440
  Card.displayName = "ForwardRef(Card)";
2432
2441
  function checkboxBaseStyles() {
@@ -2569,7 +2578,7 @@ function inputElementStyles(props) {
2569
2578
  }
2570
2579
  const Root$r = styledComponents.styled.div(checkboxBaseStyles), Input$5 = styledComponents.styled.input(inputElementStyles), Checkbox = react.forwardRef(function(props, forwardedRef) {
2571
2580
  const $ = reactCompilerRuntime.c(25);
2572
- let indeterminate, customValidity, disabled, readOnly, restProps, checked, className, style;
2581
+ let checked, className, customValidity, disabled, indeterminate, readOnly, restProps, style;
2573
2582
  $[0] !== props ? ({
2574
2583
  checked,
2575
2584
  className,
@@ -2579,7 +2588,7 @@ const Root$r = styledComponents.styled.div(checkboxBaseStyles), Input$5 = styled
2579
2588
  readOnly,
2580
2589
  style,
2581
2590
  ...restProps
2582
- } = props, $[0] = props, $[1] = indeterminate, $[2] = customValidity, $[3] = disabled, $[4] = readOnly, $[5] = restProps, $[6] = checked, $[7] = className, $[8] = style) : (indeterminate = $[1], customValidity = $[2], disabled = $[3], readOnly = $[4], restProps = $[5], checked = $[6], className = $[7], style = $[8]);
2591
+ } = props, $[0] = props, $[1] = checked, $[2] = className, $[3] = customValidity, $[4] = disabled, $[5] = indeterminate, $[6] = readOnly, $[7] = restProps, $[8] = style) : (checked = $[1], className = $[2], customValidity = $[3], disabled = $[4], indeterminate = $[5], readOnly = $[6], restProps = $[7], style = $[8]);
2583
2592
  const ref = react.useRef(null);
2584
2593
  let t0;
2585
2594
  $[9] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[9] = t0) : t0 = $[9], react.useImperativeHandle(forwardedRef, t0);
@@ -2589,7 +2598,7 @@ const Root$r = styledComponents.styled.div(checkboxBaseStyles), Input$5 = styled
2589
2598
  }, t2 = [indeterminate], $[10] = indeterminate, $[11] = t1, $[12] = t2) : (t1 = $[11], t2 = $[12]), react.useEffect(t1, t2), useCustomValidity(ref, customValidity);
2590
2599
  const t3 = !disabled && readOnly ? "" : void 0, t4 = customValidity ? "" : void 0, t5 = disabled || readOnly;
2591
2600
  let t6;
2592
- $[13] !== t3 || $[14] !== t4 || $[15] !== restProps || $[16] !== checked || $[17] !== t5 || $[18] !== readOnly ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Input$5, { "data-read-only": t3, "data-error": t4, ...restProps, checked, disabled: t5, type: "checkbox", readOnly, ref }), $[13] = t3, $[14] = t4, $[15] = restProps, $[16] = checked, $[17] = t5, $[18] = readOnly, $[19] = t6) : t6 = $[19];
2601
+ $[13] !== checked || $[14] !== readOnly || $[15] !== restProps || $[16] !== t3 || $[17] !== t4 || $[18] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Input$5, { "data-read-only": t3, "data-error": t4, ...restProps, checked, disabled: t5, type: "checkbox", readOnly, ref }), $[13] = checked, $[14] = readOnly, $[15] = restProps, $[16] = t3, $[17] = t4, $[18] = t5, $[19] = t6) : t6 = $[19];
2593
2602
  let t7;
2594
2603
  $[20] === Symbol.for("react.memo_cache_sentinel") ? (t7 = /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
2595
2604
  /* @__PURE__ */ jsxRuntime.jsx(icons.CheckmarkIcon, {}),
@@ -2752,27 +2761,27 @@ function codeBaseStyle() {
2752
2761
  }
2753
2762
  const Root$q = styledComponents.styled.pre(codeBaseStyle, responsiveCodeFontStyle), Code = react.forwardRef(function(props, ref) {
2754
2763
  const $ = reactCompilerRuntime.c(23);
2755
- let t0, languageProp, children, restProps, weight;
2764
+ let children, languageProp, restProps, t0, weight;
2756
2765
  $[0] !== props ? ({
2757
2766
  children,
2758
2767
  language: languageProp,
2759
2768
  size: t0,
2760
2769
  weight,
2761
2770
  ...restProps
2762
- } = props, $[0] = props, $[1] = t0, $[2] = languageProp, $[3] = children, $[4] = restProps, $[5] = weight) : (t0 = $[1], languageProp = $[2], children = $[3], restProps = $[4], weight = $[5]);
2771
+ } = props, $[0] = props, $[1] = children, $[2] = languageProp, $[3] = restProps, $[4] = t0, $[5] = weight) : (children = $[1], languageProp = $[2], restProps = $[3], t0 = $[4], weight = $[5]);
2763
2772
  const size2 = t0 === void 0 ? 2 : t0, language = typeof languageProp == "string" ? languageProp : void 0;
2764
2773
  let t1;
2765
2774
  $[6] !== language ? (t1 = language ? Refractor__default.default.hasLanguage(language) : !1, $[6] = language, $[7] = t1) : t1 = $[7];
2766
2775
  const registered = t1, t2 = useArrayProp(size2);
2767
2776
  let t3;
2768
- $[8] !== language || $[9] !== registered || $[10] !== children ? (t3 = !(language && registered) && /* @__PURE__ */ jsxRuntime.jsx("code", { children }), $[8] = language, $[9] = registered, $[10] = children, $[11] = t3) : t3 = $[11];
2777
+ $[8] !== children || $[9] !== language || $[10] !== registered ? (t3 = !(language && registered) && /* @__PURE__ */ jsxRuntime.jsx("code", { children }), $[8] = children, $[9] = language, $[10] = registered, $[11] = t3) : t3 = $[11];
2769
2778
  let t4;
2770
- $[12] !== language || $[13] !== registered || $[14] !== children ? (t4 = language && registered && /* @__PURE__ */ jsxRuntime.jsx(Refractor__default.default, { inline: !0, language, value: String(children) }), $[12] = language, $[13] = registered, $[14] = children, $[15] = t4) : t4 = $[15];
2779
+ $[12] !== children || $[13] !== language || $[14] !== registered ? (t4 = language && registered && /* @__PURE__ */ jsxRuntime.jsx(Refractor__default.default, { inline: !0, language, value: String(children) }), $[12] = children, $[13] = language, $[14] = registered, $[15] = t4) : t4 = $[15];
2771
2780
  let t5;
2772
- return $[16] !== restProps || $[17] !== t2 || $[18] !== weight || $[19] !== ref || $[20] !== t3 || $[21] !== t4 ? (t5 = /* @__PURE__ */ jsxRuntime.jsxs(Root$q, { "data-ui": "Code", ...restProps, $size: t2, $weight: weight, ref, children: [
2781
+ return $[16] !== ref || $[17] !== restProps || $[18] !== t2 || $[19] !== t3 || $[20] !== t4 || $[21] !== weight ? (t5 = /* @__PURE__ */ jsxRuntime.jsxs(Root$q, { "data-ui": "Code", ...restProps, $size: t2, $weight: weight, ref, children: [
2773
2782
  t3,
2774
2783
  t4
2775
- ] }), $[16] = restProps, $[17] = t2, $[18] = weight, $[19] = ref, $[20] = t3, $[21] = t4, $[22] = t5) : t5 = $[22], t5;
2784
+ ] }), $[16] = ref, $[17] = restProps, $[18] = t2, $[19] = t3, $[20] = t4, $[21] = weight, $[22] = t5) : t5 = $[22], t5;
2776
2785
  });
2777
2786
  Code.displayName = "ForwardRef(Code)";
2778
2787
  const BASE_STYLE$1 = {
@@ -2793,20 +2802,20 @@ function responsiveContainerWidthStyle(props) {
2793
2802
  }
2794
2803
  const Root$p = styledComponents.styled(Box)(containerBaseStyle, responsiveContainerWidthStyle), Container = react.forwardRef(function(props, ref) {
2795
2804
  const $ = reactCompilerRuntime.c(9);
2796
- let t0, restProps, as;
2805
+ let as, restProps, t0;
2797
2806
  $[0] !== props ? ({
2798
2807
  as,
2799
2808
  width: t0,
2800
2809
  ...restProps
2801
- } = props, $[0] = props, $[1] = t0, $[2] = restProps, $[3] = as) : (t0 = $[1], restProps = $[2], as = $[3]);
2810
+ } = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = t0) : (as = $[1], restProps = $[2], t0 = $[3]);
2802
2811
  const t1 = useArrayProp(t0 === void 0 ? 2 : t0);
2803
2812
  let t2;
2804
- return $[4] !== restProps || $[5] !== t1 || $[6] !== as || $[7] !== ref ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(Root$p, { "data-ui": "Container", ...restProps, $width: t1, forwardedAs: as, ref }), $[4] = restProps, $[5] = t1, $[6] = as, $[7] = ref, $[8] = t2) : t2 = $[8], t2;
2813
+ return $[4] !== as || $[5] !== ref || $[6] !== restProps || $[7] !== t1 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(Root$p, { "data-ui": "Container", ...restProps, $width: t1, forwardedAs: as, ref }), $[4] = as, $[5] = ref, $[6] = restProps, $[7] = t1, $[8] = t2) : t2 = $[8], t2;
2805
2814
  });
2806
2815
  Container.displayName = "ForwardRef(Container)";
2807
2816
  const Root$o = styledComponents.styled(Box)(responsiveGridStyle), Grid = react.forwardRef(function(props, ref) {
2808
2817
  const $ = reactCompilerRuntime.c(26);
2809
- let as, autoRows, autoCols, autoFlow, columns, gap, gapX, gapY, rows, restProps, children;
2818
+ let as, autoCols, autoFlow, autoRows, children, columns, gap, gapX, gapY, restProps, rows;
2810
2819
  $[0] !== props ? ({
2811
2820
  as,
2812
2821
  autoRows,
@@ -2819,10 +2828,10 @@ const Root$o = styledComponents.styled(Box)(responsiveGridStyle), Grid = react.f
2819
2828
  rows,
2820
2829
  children,
2821
2830
  ...restProps
2822
- } = props, $[0] = props, $[1] = as, $[2] = autoRows, $[3] = autoCols, $[4] = autoFlow, $[5] = columns, $[6] = gap, $[7] = gapX, $[8] = gapY, $[9] = rows, $[10] = restProps, $[11] = children) : (as = $[1], autoRows = $[2], autoCols = $[3], autoFlow = $[4], columns = $[5], gap = $[6], gapX = $[7], gapY = $[8], rows = $[9], restProps = $[10], children = $[11]);
2831
+ } = props, $[0] = props, $[1] = as, $[2] = autoCols, $[3] = autoFlow, $[4] = autoRows, $[5] = children, $[6] = columns, $[7] = gap, $[8] = gapX, $[9] = gapY, $[10] = restProps, $[11] = rows) : (as = $[1], autoCols = $[2], autoFlow = $[3], autoRows = $[4], children = $[5], columns = $[6], gap = $[7], gapX = $[8], gapY = $[9], restProps = $[10], rows = $[11]);
2823
2832
  const t0 = typeof as == "string" ? as : void 0, t1 = useArrayProp(autoRows), t2 = useArrayProp(autoCols), t3 = useArrayProp(autoFlow), t4 = useArrayProp(columns), t5 = useArrayProp(gap), t6 = useArrayProp(gapX), t7 = useArrayProp(gapY), t8 = useArrayProp(rows);
2824
2833
  let t9;
2825
- return $[12] !== t0 || $[13] !== restProps || $[14] !== t1 || $[15] !== t2 || $[16] !== t3 || $[17] !== t4 || $[18] !== t5 || $[19] !== t6 || $[20] !== t7 || $[21] !== t8 || $[22] !== as || $[23] !== ref || $[24] !== children ? (t9 = /* @__PURE__ */ jsxRuntime.jsx(Root$o, { "data-as": t0, "data-ui": "Grid", ...restProps, $autoRows: t1, $autoCols: t2, $autoFlow: t3, $columns: t4, $gap: t5, $gapX: t6, $gapY: t7, $rows: t8, forwardedAs: as, ref, children }), $[12] = t0, $[13] = restProps, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4, $[18] = t5, $[19] = t6, $[20] = t7, $[21] = t8, $[22] = as, $[23] = ref, $[24] = children, $[25] = t9) : t9 = $[25], t9;
2834
+ return $[12] !== as || $[13] !== children || $[14] !== ref || $[15] !== restProps || $[16] !== t0 || $[17] !== t1 || $[18] !== t2 || $[19] !== t3 || $[20] !== t4 || $[21] !== t5 || $[22] !== t6 || $[23] !== t7 || $[24] !== t8 ? (t9 = /* @__PURE__ */ jsxRuntime.jsx(Root$o, { "data-as": t0, "data-ui": "Grid", ...restProps, $autoRows: t1, $autoCols: t2, $autoFlow: t3, $columns: t4, $gap: t5, $gapX: t6, $gapY: t7, $rows: t8, forwardedAs: as, ref, children }), $[12] = as, $[13] = children, $[14] = ref, $[15] = restProps, $[16] = t0, $[17] = t1, $[18] = t2, $[19] = t3, $[20] = t4, $[21] = t5, $[22] = t6, $[23] = t7, $[24] = t8, $[25] = t9) : t9 = $[25], t9;
2826
2835
  });
2827
2836
  Grid.displayName = "ForwardRef(Grid)";
2828
2837
  function headingBaseStyle(props) {
@@ -2892,7 +2901,7 @@ const Root$n = styledComponents.styled.div(headingBaseStyle, responsiveTextAlign
2892
2901
  overflow: clip;
2893
2902
  `, Heading = react.forwardRef(function(props, ref) {
2894
2903
  const $ = reactCompilerRuntime.c(22);
2895
- let t0, t1, t2, childrenProp, textOverflow, align, restProps, weight;
2904
+ let align, childrenProp, restProps, t0, t1, t2, textOverflow, weight;
2896
2905
  $[0] !== props ? ({
2897
2906
  accent: t0,
2898
2907
  align,
@@ -2902,7 +2911,7 @@ const Root$n = styledComponents.styled.div(headingBaseStyle, responsiveTextAlign
2902
2911
  textOverflow,
2903
2912
  weight,
2904
2913
  ...restProps
2905
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = childrenProp, $[5] = textOverflow, $[6] = align, $[7] = restProps, $[8] = weight) : (t0 = $[1], t1 = $[2], t2 = $[3], childrenProp = $[4], textOverflow = $[5], align = $[6], restProps = $[7], weight = $[8]);
2914
+ } = props, $[0] = props, $[1] = align, $[2] = childrenProp, $[3] = restProps, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = textOverflow, $[8] = weight) : (align = $[1], childrenProp = $[2], restProps = $[3], t0 = $[4], t1 = $[5], t2 = $[6], textOverflow = $[7], weight = $[8]);
2906
2915
  const accent = t0 === void 0 ? !1 : t0, muted = t1 === void 0 ? !1 : t1, size2 = t2 === void 0 ? 2 : t2;
2907
2916
  let children = childrenProp;
2908
2917
  if (textOverflow === "ellipsis") {
@@ -2913,7 +2922,7 @@ const Root$n = styledComponents.styled.div(headingBaseStyle, responsiveTextAlign
2913
2922
  let t5;
2914
2923
  $[11] !== children ? (t5 = /* @__PURE__ */ jsxRuntime.jsx("span", { children }), $[11] = children, $[12] = t5) : t5 = $[12];
2915
2924
  let t6;
2916
- return $[13] !== restProps || $[14] !== accent || $[15] !== t3 || $[16] !== muted || $[17] !== t4 || $[18] !== weight || $[19] !== ref || $[20] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Root$n, { "data-ui": "Heading", ...restProps, $accent: accent, $align: t3, $muted: muted, $size: t4, $weight: weight, ref, children: t5 }), $[13] = restProps, $[14] = accent, $[15] = t3, $[16] = muted, $[17] = t4, $[18] = weight, $[19] = ref, $[20] = t5, $[21] = t6) : t6 = $[21], t6;
2925
+ return $[13] !== accent || $[14] !== muted || $[15] !== ref || $[16] !== restProps || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== weight ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Root$n, { "data-ui": "Heading", ...restProps, $accent: accent, $align: t3, $muted: muted, $size: t4, $weight: weight, ref, children: t5 }), $[13] = accent, $[14] = muted, $[15] = ref, $[16] = restProps, $[17] = t3, $[18] = t4, $[19] = t5, $[20] = weight, $[21] = t6) : t6 = $[21], t6;
2917
2926
  });
2918
2927
  Heading.displayName = "ForwardRef(Heading)";
2919
2928
  function inlineBaseStyle() {
@@ -2945,13 +2954,13 @@ function inlineSpaceStyle(props) {
2945
2954
  }
2946
2955
  const Root$m = styledComponents.styled(Box)(inlineBaseStyle, inlineSpaceStyle), Inline = react.forwardRef(function(props, ref) {
2947
2956
  const $ = reactCompilerRuntime.c(13);
2948
- let childrenProp, space, restProps, as;
2957
+ let as, childrenProp, restProps, space;
2949
2958
  $[0] !== props ? ({
2950
2959
  as,
2951
2960
  children: childrenProp,
2952
2961
  space,
2953
2962
  ...restProps
2954
- } = props, $[0] = props, $[1] = childrenProp, $[2] = space, $[3] = restProps, $[4] = as) : (childrenProp = $[1], space = $[2], restProps = $[3], as = $[4]);
2963
+ } = props, $[0] = props, $[1] = as, $[2] = childrenProp, $[3] = restProps, $[4] = space) : (as = $[1], childrenProp = $[2], restProps = $[3], space = $[4]);
2955
2964
  let t0, t1;
2956
2965
  if ($[5] !== childrenProp) {
2957
2966
  let t22;
@@ -2961,7 +2970,7 @@ const Root$m = styledComponents.styled(Box)(inlineBaseStyle, inlineSpaceStyle),
2961
2970
  t0 = t1;
2962
2971
  const children = t0, t2 = useArrayProp(space);
2963
2972
  let t3;
2964
- return $[8] !== restProps || $[9] !== t2 || $[10] !== as || $[11] !== children ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(Root$m, { "data-ui": "Inline", ...restProps, $space: t2, forwardedAs: as, ref, children }), $[8] = restProps, $[9] = t2, $[10] = as, $[11] = children, $[12] = t3) : t3 = $[12], t3;
2973
+ return $[8] !== as || $[9] !== children || $[10] !== restProps || $[11] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(Root$m, { "data-ui": "Inline", ...restProps, $space: t2, forwardedAs: as, ref, children }), $[8] = as, $[9] = children, $[10] = restProps, $[11] = t2, $[12] = t3) : t3 = $[12], t3;
2965
2974
  });
2966
2975
  Inline.displayName = "ForwardRef(Inline)";
2967
2976
  function kbdStyle() {
@@ -2983,21 +2992,21 @@ function kbdStyle() {
2983
2992
  }
2984
2993
  const Root$l = styledComponents.styled.kbd(responsiveRadiusStyle, kbdStyle), KBD = react.forwardRef(function(props, ref) {
2985
2994
  const $ = reactCompilerRuntime.c(17);
2986
- let t0, t1, t2, children, restProps;
2995
+ let children, restProps, t0, t1, t2;
2987
2996
  $[0] !== props ? ({
2988
2997
  children,
2989
2998
  fontSize: t0,
2990
2999
  padding: t1,
2991
3000
  radius: t2,
2992
3001
  ...restProps
2993
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = children, $[5] = restProps) : (t0 = $[1], t1 = $[2], t2 = $[3], children = $[4], restProps = $[5]);
3002
+ } = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0, $[4] = t1, $[5] = t2) : (children = $[1], restProps = $[2], t0 = $[3], t1 = $[4], t2 = $[5]);
2994
3003
  const fontSize2 = t0 === void 0 ? 0 : t0, padding = t1 === void 0 ? 1 : t1, t3 = useArrayProp(t2 === void 0 ? 2 : t2);
2995
3004
  let t4;
2996
- $[6] !== fontSize2 || $[7] !== children ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(Text, { as: "span", size: fontSize2, weight: "semibold", children }), $[6] = fontSize2, $[7] = children, $[8] = t4) : t4 = $[8];
3005
+ $[6] !== children || $[7] !== fontSize2 ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(Text, { as: "span", size: fontSize2, weight: "semibold", children }), $[6] = children, $[7] = fontSize2, $[8] = t4) : t4 = $[8];
2997
3006
  let t5;
2998
3007
  $[9] !== padding || $[10] !== t4 ? (t5 = /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", padding, children: t4 }), $[9] = padding, $[10] = t4, $[11] = t5) : t5 = $[11];
2999
3008
  let t6;
3000
- return $[12] !== restProps || $[13] !== t3 || $[14] !== ref || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Root$l, { "data-ui": "KBD", ...restProps, $radius: t3, ref, children: t5 }), $[12] = restProps, $[13] = t3, $[14] = ref, $[15] = t5, $[16] = t6) : t6 = $[16], t6;
3009
+ return $[12] !== ref || $[13] !== restProps || $[14] !== t3 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Root$l, { "data-ui": "KBD", ...restProps, $radius: t3, ref, children: t5 }), $[12] = ref, $[13] = restProps, $[14] = t3, $[15] = t5, $[16] = t6) : t6 = $[16], t6;
3001
3010
  });
3002
3011
  KBD.displayName = "ForwardRef(KBD)";
3003
3012
  const origin = {
@@ -3121,13 +3130,13 @@ const Root$k = styledComponents.styled.div(({
3121
3130
  fill: var(--card-bg-color);
3122
3131
  `, Arrow = react.forwardRef(function(props, ref) {
3123
3132
  const $ = reactCompilerRuntime.c(24);
3124
- let t0, w, h, restProps;
3133
+ let h, restProps, t0, w;
3125
3134
  $[0] !== props ? ({
3126
3135
  width: w,
3127
3136
  height: h,
3128
3137
  radius: t0,
3129
3138
  ...restProps
3130
- } = props, $[0] = props, $[1] = t0, $[2] = w, $[3] = h, $[4] = restProps) : (t0 = $[1], w = $[2], h = $[3], restProps = $[4]);
3139
+ } = props, $[0] = props, $[1] = h, $[2] = restProps, $[3] = t0, $[4] = w) : (h = $[1], restProps = $[2], t0 = $[3], w = $[4]);
3131
3140
  const radius = t0 === void 0 ? 0 : t0, {
3132
3141
  card
3133
3142
  } = useTheme_v2(), strokeWidth = card.shadow.outline, center = w / 2, points = [{
@@ -3157,13 +3166,13 @@ const Root$k = styledComponents.styled.div(({
3157
3166
  let t5;
3158
3167
  $[11] !== fillPath ? (t5 = /* @__PURE__ */ jsxRuntime.jsx(ShapePath, { d: fillPath }), $[11] = fillPath, $[12] = t5) : t5 = $[12];
3159
3168
  let t6;
3160
- $[13] !== w || $[14] !== t1 || $[15] !== t2 || $[16] !== t4 || $[17] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: w, height: w, viewBox: t1, children: [
3169
+ $[13] !== t1 || $[14] !== t2 || $[15] !== t4 || $[16] !== t5 || $[17] !== w ? (t6 = /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: w, height: w, viewBox: t1, children: [
3161
3170
  t2,
3162
3171
  t4,
3163
3172
  t5
3164
- ] }), $[13] = w, $[14] = t1, $[15] = t2, $[16] = t4, $[17] = t5, $[18] = t6) : t6 = $[18];
3173
+ ] }), $[13] = t1, $[14] = t2, $[15] = t4, $[16] = t5, $[17] = w, $[18] = t6) : t6 = $[18];
3165
3174
  let t7;
3166
- return $[19] !== restProps || $[20] !== w || $[21] !== ref || $[22] !== t6 ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(Root$k, { ...restProps, $w: w, ref, children: t6 }), $[19] = restProps, $[20] = w, $[21] = ref, $[22] = t6, $[23] = t7) : t7 = $[23], t7;
3175
+ return $[19] !== ref || $[20] !== restProps || $[21] !== t6 || $[22] !== w ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(Root$k, { ...restProps, $w: w, ref, children: t6 }), $[19] = ref, $[20] = restProps, $[21] = t6, $[22] = w, $[23] = t7) : t7 = $[23], t7;
3167
3176
  });
3168
3177
  Arrow.displayName = "ForwardRef(Arrow)";
3169
3178
  const BoundaryElementContext = createGlobalScopedContext("@sanity/ui/context/boundaryElement", null);
@@ -3179,7 +3188,7 @@ function BoundaryElementProvider(props) {
3179
3188
  }, $[0] = element, $[1] = t1) : t1 = $[1], t0 = t1;
3180
3189
  const value = t0;
3181
3190
  let t2;
3182
- return $[2] !== value || $[3] !== children ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(BoundaryElementContext.Provider, { value, children }), $[2] = value, $[3] = children, $[4] = t2) : t2 = $[4], t2;
3191
+ return $[2] !== children || $[3] !== value ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(BoundaryElementContext.Provider, { value, children }), $[2] = children, $[3] = value, $[4] = t2) : t2 = $[4], t2;
3183
3192
  }
3184
3193
  BoundaryElementProvider.displayName = "BoundaryElementProvider";
3185
3194
  function isRecord(value) {
@@ -3217,12 +3226,12 @@ function findMinBreakpoints(media, width) {
3217
3226
  }
3218
3227
  const ElementQuery = react.forwardRef(function(props, forwardedRef) {
3219
3228
  const $ = reactCompilerRuntime.c(18), theme2 = useTheme_v2();
3220
- let _media, restProps, children;
3229
+ let _media, children, restProps;
3221
3230
  $[0] !== props ? ({
3222
3231
  children,
3223
3232
  media: _media,
3224
3233
  ...restProps
3225
- } = props, $[0] = props, $[1] = _media, $[2] = restProps, $[3] = children) : (_media = $[1], restProps = $[2], children = $[3]);
3234
+ } = props, $[0] = props, $[1] = _media, $[2] = children, $[3] = restProps) : (_media = $[1], children = $[2], restProps = $[3]);
3226
3235
  const media = _media ?? theme2.media, [element, setElement] = react.useState(null), elementSize = useElementSize(element);
3227
3236
  let t0;
3228
3237
  t0 = elementSize?.border.width ?? window.innerWidth;
@@ -3246,7 +3255,7 @@ const ElementQuery = react.forwardRef(function(props, forwardedRef) {
3246
3255
  let t5, t6;
3247
3256
  $[10] !== element ? (t5 = () => element, t6 = [element], $[10] = element, $[11] = t5, $[12] = t6) : (t5 = $[11], t6 = $[12]), react.useImperativeHandle(forwardedRef, t5, t6);
3248
3257
  let t7;
3249
- return $[13] !== restProps || $[14] !== max || $[15] !== min || $[16] !== children ? (t7 = /* @__PURE__ */ jsxRuntime.jsx("div", { "data-ui": "ElementQuery", ...restProps, "data-eq-max": max, "data-eq-min": min, ref: setElement, children }), $[13] = restProps, $[14] = max, $[15] = min, $[16] = children, $[17] = t7) : t7 = $[17], t7;
3258
+ return $[13] !== children || $[14] !== max || $[15] !== min || $[16] !== restProps ? (t7 = /* @__PURE__ */ jsxRuntime.jsx("div", { "data-ui": "ElementQuery", ...restProps, "data-eq-max": max, "data-eq-min": min, ref: setElement, children }), $[13] = children, $[14] = max, $[15] = min, $[16] = restProps, $[17] = t7) : t7 = $[17], t7;
3250
3259
  });
3251
3260
  ElementQuery.displayName = "ForwardRef(ElementQuery)";
3252
3261
  class ErrorBoundary extends react.Component {
@@ -3403,7 +3412,7 @@ function LayerProvider(props) {
3403
3412
  }, $[3] = parentRegisterChild, $[4] = setChildLayers, $[5] = t3) : t3 = $[5];
3404
3413
  const registerChild = t3;
3405
3414
  let t4, t5;
3406
- $[6] !== parentRegisterChild || $[7] !== level ? (t4 = () => parentRegisterChild?.(level), t5 = [level, parentRegisterChild], $[6] = parentRegisterChild, $[7] = level, $[8] = t4, $[9] = t5) : (t4 = $[8], t5 = $[9]), react.useEffect(t4, t5);
3415
+ $[6] !== level || $[7] !== parentRegisterChild ? (t4 = () => parentRegisterChild?.(level), t5 = [level, parentRegisterChild], $[6] = level, $[7] = parentRegisterChild, $[8] = t4, $[9] = t5) : (t4 = $[8], t5 = $[9]), react.useEffect(t4, t5);
3407
3416
  let t6, t7;
3408
3417
  $[10] !== isTopLayer || $[11] !== level || $[12] !== registerChild || $[13] !== size2 || $[14] !== zIndex ? (t7 = {
3409
3418
  version: 0,
@@ -3415,21 +3424,21 @@ function LayerProvider(props) {
3415
3424
  }, $[10] = isTopLayer, $[11] = level, $[12] = registerChild, $[13] = size2, $[14] = zIndex, $[15] = t7) : t7 = $[15], t6 = t7;
3416
3425
  const value = t6;
3417
3426
  let t8;
3418
- return $[16] !== value || $[17] !== children ? (t8 = /* @__PURE__ */ jsxRuntime.jsx(LayerContext.Provider, { value, children }), $[16] = value, $[17] = children, $[18] = t8) : t8 = $[18], t8;
3427
+ return $[16] !== children || $[17] !== value ? (t8 = /* @__PURE__ */ jsxRuntime.jsx(LayerContext.Provider, { value, children }), $[16] = children, $[17] = value, $[18] = t8) : t8 = $[18], t8;
3419
3428
  }
3420
3429
  LayerProvider.displayName = "LayerProvider";
3421
3430
  const Root$j = styledComponents.styled.div({
3422
3431
  position: "relative"
3423
3432
  }), LayerChildren = react.forwardRef(function(props, forwardedRef) {
3424
3433
  const $ = reactCompilerRuntime.c(22);
3425
- let t0, onActivate, onFocus, restProps, children;
3434
+ let children, onActivate, onFocus, restProps, t0;
3426
3435
  $[0] !== props ? ({
3427
3436
  children,
3428
3437
  onActivate,
3429
3438
  onFocus,
3430
3439
  style: t0,
3431
3440
  ...restProps
3432
- } = props, $[0] = props, $[1] = t0, $[2] = onActivate, $[3] = onFocus, $[4] = restProps, $[5] = children) : (t0 = $[1], onActivate = $[2], onFocus = $[3], restProps = $[4], children = $[5]);
3441
+ } = props, $[0] = props, $[1] = children, $[2] = onActivate, $[3] = onFocus, $[4] = restProps, $[5] = t0) : (children = $[1], onActivate = $[2], onFocus = $[3], restProps = $[4], t0 = $[5]);
3433
3442
  const style = t0 === void 0 ? EMPTY_RECORD : t0, {
3434
3443
  zIndex,
3435
3444
  isTopLayer
@@ -3443,11 +3452,11 @@ const Root$j = styledComponents.styled.div({
3443
3452
  }), isTopLayerRef.current = isTopLayer;
3444
3453
  }, t3 = [isTopLayer, onActivate], $[7] = isTopLayer, $[8] = onActivate, $[9] = t2, $[10] = t3) : (t2 = $[9], t3 = $[10]), react.useEffect(t2, t3);
3445
3454
  let t4;
3446
- $[11] !== onFocus || $[12] !== isTopLayer ? (t4 = (event) => {
3455
+ $[11] !== isTopLayer || $[12] !== onFocus ? (t4 = (event) => {
3447
3456
  onFocus?.(event);
3448
3457
  const rootElement = ref.current, target = document.activeElement;
3449
3458
  !isTopLayer || !rootElement || !target || isHTMLElement(target) && containsOrEqualsElement(rootElement, target) && (lastFocusedRef.current = target);
3450
- }, $[11] = onFocus, $[12] = isTopLayer, $[13] = t4) : t4 = $[13];
3459
+ }, $[11] = isTopLayer, $[12] = onFocus, $[13] = t4) : t4 = $[13];
3451
3460
  const handleFocus = t4;
3452
3461
  let t5;
3453
3462
  $[14] !== style || $[15] !== zIndex ? (t5 = {
@@ -3455,20 +3464,20 @@ const Root$j = styledComponents.styled.div({
3455
3464
  zIndex
3456
3465
  }, $[14] = style, $[15] = zIndex, $[16] = t5) : t5 = $[16];
3457
3466
  let t6;
3458
- return $[17] !== restProps || $[18] !== handleFocus || $[19] !== t5 || $[20] !== children ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Root$j, { ...restProps, "data-ui": "Layer", onFocus: handleFocus, ref, style: t5, children }), $[17] = restProps, $[18] = handleFocus, $[19] = t5, $[20] = children, $[21] = t6) : t6 = $[21], t6;
3467
+ return $[17] !== children || $[18] !== handleFocus || $[19] !== restProps || $[20] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Root$j, { ...restProps, "data-ui": "Layer", onFocus: handleFocus, ref, style: t5, children }), $[17] = children, $[18] = handleFocus, $[19] = restProps, $[20] = t5, $[21] = t6) : t6 = $[21], t6;
3459
3468
  }), Layer = react.forwardRef(function(props, ref) {
3460
3469
  const $ = reactCompilerRuntime.c(11);
3461
- let t0, restProps, children;
3470
+ let children, restProps, t0;
3462
3471
  $[0] !== props ? ({
3463
3472
  children,
3464
3473
  zOffset: t0,
3465
3474
  ...restProps
3466
- } = props, $[0] = props, $[1] = t0, $[2] = restProps, $[3] = children) : (t0 = $[1], restProps = $[2], children = $[3]);
3475
+ } = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0) : (children = $[1], restProps = $[2], t0 = $[3]);
3467
3476
  const zOffset = t0 === void 0 ? 1 : t0;
3468
3477
  let t1;
3469
- $[4] !== restProps || $[5] !== ref || $[6] !== children ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(LayerChildren, { ...restProps, ref, children }), $[4] = restProps, $[5] = ref, $[6] = children, $[7] = t1) : t1 = $[7];
3478
+ $[4] !== children || $[5] !== ref || $[6] !== restProps ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(LayerChildren, { ...restProps, ref, children }), $[4] = children, $[5] = ref, $[6] = restProps, $[7] = t1) : t1 = $[7];
3470
3479
  let t2;
3471
- return $[8] !== zOffset || $[9] !== t1 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(LayerProvider, { zOffset, children: t1 }), $[8] = zOffset, $[9] = t1, $[10] = t2) : t2 = $[10], t2;
3480
+ return $[8] !== t1 || $[9] !== zOffset ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(LayerProvider, { zOffset, children: t1 }), $[8] = t1, $[9] = zOffset, $[10] = t2) : t2 = $[10], t2;
3472
3481
  });
3473
3482
  Layer.displayName = "ForwardRef(Layer)";
3474
3483
  const key = "@sanity/ui/context/portal", elementKey = Symbol.for(`${key}/element`);
@@ -3509,15 +3518,15 @@ function PortalProvider(props) {
3509
3518
  let t0;
3510
3519
  const t1 = boundaryElement || null, t2 = element || fallbackElement;
3511
3520
  let t3;
3512
- $[0] !== t1 || $[1] !== t2 || $[2] !== elements ? (t3 = {
3521
+ $[0] !== elements || $[1] !== t1 || $[2] !== t2 ? (t3 = {
3513
3522
  version: 0,
3514
3523
  boundaryElement: t1,
3515
3524
  element: t2,
3516
3525
  elements
3517
- }, $[0] = t1, $[1] = t2, $[2] = elements, $[3] = t3) : t3 = $[3], t0 = t3;
3526
+ }, $[0] = elements, $[1] = t1, $[2] = t2, $[3] = t3) : t3 = $[3], t0 = t3;
3518
3527
  const value = t0;
3519
3528
  let t4;
3520
- return $[4] !== value || $[5] !== children ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(PortalContext.Provider, { value, children }), $[4] = value, $[5] = children, $[6] = t4) : t4 = $[6], t4;
3529
+ return $[4] !== children || $[5] !== value ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(PortalContext.Provider, { value, children }), $[4] = children, $[5] = value, $[6] = t4) : t4 = $[6], t4;
3521
3530
  }
3522
3531
  function _temp2$1() {
3523
3532
  return null;
@@ -3529,10 +3538,11 @@ PortalProvider.displayName = "PortalProvider";
3529
3538
  const emptySubscribe = () => () => {
3530
3539
  };
3531
3540
  function useUnique(value) {
3532
- const valueRef = react.useRef(value);
3533
- return _isEqual(valueRef.current, value) || (valueRef.current = value), valueRef.current;
3541
+ const [cachedValue, setCachedValue] = react.useState(value);
3542
+ let result = cachedValue;
3543
+ return isEqual(cachedValue, value) || (setCachedValue(value), result = value), result;
3534
3544
  }
3535
- function _isEqual(objA, objB) {
3545
+ function isEqual(objA, objB) {
3536
3546
  if (!objA || !objB)
3537
3547
  return objA === objB;
3538
3548
  const keysA = Object.keys(objA), keysB = Object.keys(objB);
@@ -3551,7 +3561,7 @@ const Root$i = styledComponents.styled.div`
3551
3561
  children
3552
3562
  } = props;
3553
3563
  let t0;
3554
- return $[0] !== as || $[1] !== ref || $[2] !== children ? (t0 = /* @__PURE__ */ jsxRuntime.jsx(Root$i, { "aria-hidden": !0, as, "data-ui": "SrOnly", ref, children }), $[0] = as, $[1] = ref, $[2] = children, $[3] = t0) : t0 = $[3], t0;
3564
+ return $[0] !== as || $[1] !== children || $[2] !== ref ? (t0 = /* @__PURE__ */ jsxRuntime.jsx(Root$i, { "aria-hidden": !0, as, "data-ui": "SrOnly", ref, children }), $[0] = as, $[1] = children, $[2] = ref, $[3] = t0) : t0 = $[3], t0;
3555
3565
  });
3556
3566
  SrOnly.displayName = "ForwardRef(SrOnly)";
3557
3567
  const Root$h = styledComponents.styled.div`
@@ -3562,7 +3572,7 @@ const Root$h = styledComponents.styled.div`
3562
3572
  right: 0;
3563
3573
  `, VirtualList = react.forwardRef(function(props, forwardedRef) {
3564
3574
  const $ = reactCompilerRuntime.c(56);
3565
- let t0, t1, t2, renderItem, onChange, getItemKey, restProps;
3575
+ let getItemKey, onChange, renderItem, restProps, t0, t1, t2;
3566
3576
  $[0] !== props ? ({
3567
3577
  as: t0,
3568
3578
  gap: t1,
@@ -3571,7 +3581,7 @@ const Root$h = styledComponents.styled.div`
3571
3581
  onChange,
3572
3582
  renderItem,
3573
3583
  ...restProps
3574
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = renderItem, $[5] = onChange, $[6] = getItemKey, $[7] = restProps) : (t0 = $[1], t1 = $[2], t2 = $[3], renderItem = $[4], onChange = $[5], getItemKey = $[6], restProps = $[7]);
3584
+ } = props, $[0] = props, $[1] = getItemKey, $[2] = onChange, $[3] = renderItem, $[4] = restProps, $[5] = t0, $[6] = t1, $[7] = t2) : (getItemKey = $[1], onChange = $[2], renderItem = $[3], restProps = $[4], t0 = $[5], t1 = $[6], t2 = $[7]);
3575
3585
  const as = t0 === void 0 ? "div" : t0, gap = t1 === void 0 ? 0 : t1;
3576
3586
  let t3;
3577
3587
  $[8] !== t2 ? (t3 = t2 === void 0 ? [] : t2, $[8] = t2, $[9] = t3) : t3 = $[9];
@@ -3625,8 +3635,8 @@ const Root$h = styledComponents.styled.div`
3625
3635
  };
3626
3636
  }, t8 = [], $[14] = t7, $[15] = t8) : (t7 = $[14], t8 = $[15]), react.useEffect(t7, t8);
3627
3637
  const len = items.length, height = itemHeight ? len * (itemHeight + space[gap]) - space[gap] : 0, fromIndex = height ? Math.max(Math.floor(scrollTop / height * len) - 2, 0) : 0, toIndex = height ? Math.ceil((scrollTop + scrollHeight) / height * len) + 1 : 0;
3628
- let t9, t10;
3629
- $[16] !== onChange || $[17] !== fromIndex || $[18] !== space || $[19] !== gap || $[20] !== itemHeight || $[21] !== scrollHeight || $[22] !== scrollTop || $[23] !== toIndex ? (t9 = () => {
3638
+ let t10, t9;
3639
+ $[16] !== fromIndex || $[17] !== gap || $[18] !== itemHeight || $[19] !== onChange || $[20] !== scrollHeight || $[21] !== scrollTop || $[22] !== space || $[23] !== toIndex ? (t9 = () => {
3630
3640
  onChange && onChange({
3631
3641
  fromIndex,
3632
3642
  gap: space[gap],
@@ -3635,7 +3645,7 @@ const Root$h = styledComponents.styled.div`
3635
3645
  scrollTop,
3636
3646
  toIndex
3637
3647
  });
3638
- }, t10 = [fromIndex, gap, itemHeight, onChange, scrollHeight, scrollTop, space, toIndex], $[16] = onChange, $[17] = fromIndex, $[18] = space, $[19] = gap, $[20] = itemHeight, $[21] = scrollHeight, $[22] = scrollTop, $[23] = toIndex, $[24] = t9, $[25] = t10) : (t9 = $[24], t10 = $[25]), react.useEffect(t9, t10);
3648
+ }, t10 = [fromIndex, gap, itemHeight, onChange, scrollHeight, scrollTop, space, toIndex], $[16] = fromIndex, $[17] = gap, $[18] = itemHeight, $[19] = onChange, $[20] = scrollHeight, $[21] = scrollTop, $[22] = space, $[23] = toIndex, $[24] = t10, $[25] = t9) : (t10 = $[24], t9 = $[25]), react.useEffect(t9, t10);
3639
3649
  let t11;
3640
3650
  bb0: {
3641
3651
  if (!renderItem || items.length === 0) {
@@ -3651,14 +3661,14 @@ const Root$h = styledComponents.styled.div`
3651
3661
  break bb0;
3652
3662
  }
3653
3663
  let t122;
3654
- if ($[31] !== items || $[32] !== fromIndex || $[33] !== toIndex || $[34] !== renderItem || $[35] !== getItemKey || $[36] !== itemHeight || $[37] !== space || $[38] !== gap) {
3664
+ if ($[31] !== fromIndex || $[32] !== gap || $[33] !== getItemKey || $[34] !== itemHeight || $[35] !== items || $[36] !== renderItem || $[37] !== space || $[38] !== toIndex) {
3655
3665
  let t132;
3656
- $[40] !== fromIndex || $[41] !== renderItem || $[42] !== getItemKey || $[43] !== itemHeight || $[44] !== space || $[45] !== gap ? (t132 = (item, _itemIndex) => {
3666
+ $[40] !== fromIndex || $[41] !== gap || $[42] !== getItemKey || $[43] !== itemHeight || $[44] !== renderItem || $[45] !== space ? (t132 = (item, _itemIndex) => {
3657
3667
  const itemIndex = fromIndex + _itemIndex, node = renderItem(item), key2 = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
3658
3668
  return /* @__PURE__ */ jsxRuntime.jsx(ItemWrapper, { style: {
3659
3669
  top: itemIndex * (itemHeight + space[gap])
3660
3670
  }, children: node }, key2);
3661
- }, $[40] = fromIndex, $[41] = renderItem, $[42] = getItemKey, $[43] = itemHeight, $[44] = space, $[45] = gap, $[46] = t132) : t132 = $[46], t122 = items.slice(fromIndex, toIndex).map(t132), $[31] = items, $[32] = fromIndex, $[33] = toIndex, $[34] = renderItem, $[35] = getItemKey, $[36] = itemHeight, $[37] = space, $[38] = gap, $[39] = t122;
3671
+ }, $[40] = fromIndex, $[41] = gap, $[42] = getItemKey, $[43] = itemHeight, $[44] = renderItem, $[45] = space, $[46] = t132) : t132 = $[46], t122 = items.slice(fromIndex, toIndex).map(t132), $[31] = fromIndex, $[32] = gap, $[33] = getItemKey, $[34] = itemHeight, $[35] = items, $[36] = renderItem, $[37] = space, $[38] = toIndex, $[39] = t122;
3662
3672
  } else
3663
3673
  t122 = $[39];
3664
3674
  t11 = t122;
@@ -3670,7 +3680,7 @@ const Root$h = styledComponents.styled.div`
3670
3680
  }, $[47] = height, $[48] = t13) : t13 = $[48], t12 = t13;
3671
3681
  const wrapperStyle = t12;
3672
3682
  let t14;
3673
- $[49] !== wrapperStyle || $[50] !== children ? (t14 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref: wrapperRef, style: wrapperStyle, children }), $[49] = wrapperStyle, $[50] = children, $[51] = t14) : t14 = $[51];
3683
+ $[49] !== children || $[50] !== wrapperStyle ? (t14 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref: wrapperRef, style: wrapperStyle, children }), $[49] = children, $[50] = wrapperStyle, $[51] = t14) : t14 = $[51];
3674
3684
  let t15;
3675
3685
  return $[52] !== as || $[53] !== restProps || $[54] !== t14 ? (t15 = /* @__PURE__ */ jsxRuntime.jsx(Root$h, { as, "data-ui": "VirtualList", ...restProps, ref, children: t14 }), $[52] = as, $[53] = restProps, $[54] = t14, $[55] = t15) : t15 = $[55], t15;
3676
3686
  });
@@ -3759,7 +3769,7 @@ const MotionCard$1 = styledComponents.styled(framerMotion.motion(Card))`
3759
3769
  }
3760
3770
  `, PopoverCard = react.memo(react.forwardRef(function(props, ref) {
3761
3771
  const $ = reactCompilerRuntime.c(60);
3762
- let marginsProp, xProp, yProp, animate, originX, originY, strategy, style, width, arrowX, arrowY, restProps, padding, children, overflow, arrow, arrowRef, placement, radius, scheme, shadow, tone;
3772
+ let animate, arrow, arrowRef, arrowX, arrowY, children, marginsProp, originX, originY, overflow, padding, placement, radius, restProps, scheme, shadow, strategy, style, tone, width, xProp, yProp;
3763
3773
  $[0] !== props ? ({
3764
3774
  __unstable_margins: marginsProp,
3765
3775
  animate,
@@ -3783,7 +3793,7 @@ const MotionCard$1 = styledComponents.styled(framerMotion.motion(Card))`
3783
3793
  x: xProp,
3784
3794
  y: yProp,
3785
3795
  ...restProps
3786
- } = props, $[0] = props, $[1] = marginsProp, $[2] = xProp, $[3] = yProp, $[4] = animate, $[5] = originX, $[6] = originY, $[7] = strategy, $[8] = style, $[9] = width, $[10] = arrowX, $[11] = arrowY, $[12] = restProps, $[13] = padding, $[14] = children, $[15] = overflow, $[16] = arrow, $[17] = arrowRef, $[18] = placement, $[19] = radius, $[20] = scheme, $[21] = shadow, $[22] = tone) : (marginsProp = $[1], xProp = $[2], yProp = $[3], animate = $[4], originX = $[5], originY = $[6], strategy = $[7], style = $[8], width = $[9], arrowX = $[10], arrowY = $[11], restProps = $[12], padding = $[13], children = $[14], overflow = $[15], arrow = $[16], arrowRef = $[17], placement = $[18], radius = $[19], scheme = $[20], shadow = $[21], tone = $[22]);
3796
+ } = props, $[0] = props, $[1] = animate, $[2] = arrow, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = marginsProp, $[8] = originX, $[9] = originY, $[10] = overflow, $[11] = padding, $[12] = placement, $[13] = radius, $[14] = restProps, $[15] = scheme, $[16] = shadow, $[17] = strategy, $[18] = style, $[19] = tone, $[20] = width, $[21] = xProp, $[22] = yProp) : (animate = $[1], arrow = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], marginsProp = $[7], originX = $[8], originY = $[9], overflow = $[10], padding = $[11], placement = $[12], radius = $[13], restProps = $[14], scheme = $[15], shadow = $[16], strategy = $[17], style = $[18], tone = $[19], width = $[20], xProp = $[21], yProp = $[22]);
3787
3797
  const {
3788
3798
  zIndex
3789
3799
  } = useLayer();
@@ -3793,7 +3803,7 @@ const MotionCard$1 = styledComponents.styled(framerMotion.motion(Card))`
3793
3803
  let t1;
3794
3804
  const t2 = animate ? "transform" : void 0;
3795
3805
  let t3;
3796
- $[23] !== x || $[24] !== originX || $[25] !== originY || $[26] !== strategy || $[27] !== y || $[28] !== width || $[29] !== zIndex || $[30] !== t2 || $[31] !== style ? (t3 = {
3806
+ $[23] !== originX || $[24] !== originY || $[25] !== strategy || $[26] !== style || $[27] !== t2 || $[28] !== width || $[29] !== x || $[30] !== y || $[31] !== zIndex ? (t3 = {
3797
3807
  left: x,
3798
3808
  originX,
3799
3809
  originY,
@@ -3803,7 +3813,7 @@ const MotionCard$1 = styledComponents.styled(framerMotion.motion(Card))`
3803
3813
  zIndex,
3804
3814
  willChange: t2,
3805
3815
  ...style
3806
- }, $[23] = x, $[24] = originX, $[25] = originY, $[26] = strategy, $[27] = y, $[28] = width, $[29] = zIndex, $[30] = t2, $[31] = style, $[32] = t3) : t3 = $[32], t1 = t3;
3816
+ }, $[23] = originX, $[24] = originY, $[25] = strategy, $[26] = style, $[27] = t2, $[28] = width, $[29] = x, $[30] = y, $[31] = zIndex, $[32] = t3) : t3 = $[32], t1 = t3;
3807
3817
  const rootStyle2 = t1;
3808
3818
  let t4;
3809
3819
  const t5 = arrowX !== null ? arrowX : void 0, t6 = arrowY !== null ? arrowY : void 0;
@@ -3818,16 +3828,16 @@ const MotionCard$1 = styledComponents.styled(framerMotion.motion(Card))`
3818
3828
  let t9;
3819
3829
  $[36] !== animate ? (t9 = animate ? POPOVER_MOTION_PROPS : {}, $[36] = animate, $[37] = t9) : t9 = $[37];
3820
3830
  let t10;
3821
- $[38] !== padding || $[39] !== children ? (t10 = /* @__PURE__ */ jsxRuntime.jsx(Flex, { direction: "column", flex: 1, padding, children }), $[38] = padding, $[39] = children, $[40] = t10) : t10 = $[40];
3831
+ $[38] !== children || $[39] !== padding ? (t10 = /* @__PURE__ */ jsxRuntime.jsx(Flex, { direction: "column", flex: 1, padding, children }), $[38] = children, $[39] = padding, $[40] = t10) : t10 = $[40];
3822
3832
  let t11;
3823
3833
  $[41] !== overflow || $[42] !== t10 ? (t11 = /* @__PURE__ */ jsxRuntime.jsx(Flex, { "data-ui": "Popover__wrapper", direction: "column", flex: 1, overflow, children: t10 }), $[41] = overflow, $[42] = t10, $[43] = t11) : t11 = $[43];
3824
3834
  let t12;
3825
3835
  $[44] !== arrow || $[45] !== arrowRef || $[46] !== arrowStyle ? (t12 = arrow && /* @__PURE__ */ jsxRuntime.jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_POPOVER_ARROW_WIDTH, height: DEFAULT_POPOVER_ARROW_HEIGHT, radius: DEFAULT_POPOVER_ARROW_RADIUS }), $[44] = arrow, $[45] = arrowRef, $[46] = arrowStyle, $[47] = t12) : t12 = $[47];
3826
3836
  let t13;
3827
- return $[48] !== t8 || $[49] !== placement || $[50] !== radius || $[51] !== ref || $[52] !== scheme || $[53] !== shadow || $[54] !== rootStyle2 || $[55] !== tone || $[56] !== t9 || $[57] !== t11 || $[58] !== t12 ? (t13 = /* @__PURE__ */ jsxRuntime.jsxs(MotionCard$1, { "data-ui": "Popover", ...t8, "data-placement": placement, radius, ref, scheme, shadow, sizing: "border", style: rootStyle2, tone, ...t9, children: [
3837
+ return $[48] !== placement || $[49] !== radius || $[50] !== ref || $[51] !== rootStyle2 || $[52] !== scheme || $[53] !== shadow || $[54] !== t11 || $[55] !== t12 || $[56] !== t8 || $[57] !== t9 || $[58] !== tone ? (t13 = /* @__PURE__ */ jsxRuntime.jsxs(MotionCard$1, { "data-ui": "Popover", ...t8, "data-placement": placement, radius, ref, scheme, shadow, sizing: "border", style: rootStyle2, tone, ...t9, children: [
3828
3838
  t11,
3829
3839
  t12
3830
- ] }), $[48] = t8, $[49] = placement, $[50] = radius, $[51] = ref, $[52] = scheme, $[53] = shadow, $[54] = rootStyle2, $[55] = tone, $[56] = t9, $[57] = t11, $[58] = t12, $[59] = t13) : t13 = $[59], t13;
3840
+ ] }), $[48] = placement, $[49] = radius, $[50] = ref, $[51] = rootStyle2, $[52] = scheme, $[53] = shadow, $[54] = t11, $[55] = t12, $[56] = t8, $[57] = t9, $[58] = tone, $[59] = t13) : t13 = $[59], t13;
3831
3841
  }));
3832
3842
  PopoverCard.displayName = "Memo(ForwardRef(PopoverCard))";
3833
3843
  const Popover = react.memo(react.forwardRef(function(props, forwardedRef) {
@@ -4081,7 +4091,7 @@ function inputElementStyle(props) {
4081
4091
  }
4082
4092
  const Root$g = styledComponents.styled.div(radioBaseStyle), Input$4 = styledComponents.styled.input(inputElementStyle), Radio = react.forwardRef(function(props, forwardedRef) {
4083
4093
  const $ = reactCompilerRuntime.c(19);
4084
- let customValidity, disabled, readOnly, restProps, className, style;
4094
+ let className, customValidity, disabled, readOnly, restProps, style;
4085
4095
  $[0] !== props ? ({
4086
4096
  className,
4087
4097
  disabled,
@@ -4089,13 +4099,13 @@ const Root$g = styledComponents.styled.div(radioBaseStyle), Input$4 = styledComp
4089
4099
  customValidity,
4090
4100
  readOnly,
4091
4101
  ...restProps
4092
- } = props, $[0] = props, $[1] = customValidity, $[2] = disabled, $[3] = readOnly, $[4] = restProps, $[5] = className, $[6] = style) : (customValidity = $[1], disabled = $[2], readOnly = $[3], restProps = $[4], className = $[5], style = $[6]);
4102
+ } = props, $[0] = props, $[1] = className, $[2] = customValidity, $[3] = disabled, $[4] = readOnly, $[5] = restProps, $[6] = style) : (className = $[1], customValidity = $[2], disabled = $[3], readOnly = $[4], restProps = $[5], style = $[6]);
4093
4103
  const ref = react.useRef(null);
4094
4104
  let t0;
4095
4105
  $[7] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[7] = t0) : t0 = $[7], react.useImperativeHandle(forwardedRef, t0), useCustomValidity(ref, customValidity);
4096
4106
  const t1 = !disabled && readOnly ? "" : void 0, t2 = customValidity ? "" : void 0, t3 = disabled || readOnly;
4097
4107
  let t4;
4098
- $[8] !== t1 || $[9] !== t2 || $[10] !== restProps || $[11] !== t3 || $[12] !== readOnly ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(Input$4, { "data-read-only": t1, "data-error": t2, ...restProps, disabled: t3, readOnly, ref, type: "radio" }), $[8] = t1, $[9] = t2, $[10] = restProps, $[11] = t3, $[12] = readOnly, $[13] = t4) : t4 = $[13];
4108
+ $[8] !== readOnly || $[9] !== restProps || $[10] !== t1 || $[11] !== t2 || $[12] !== t3 ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(Input$4, { "data-read-only": t1, "data-error": t2, ...restProps, disabled: t3, readOnly, ref, type: "radio" }), $[8] = readOnly, $[9] = restProps, $[10] = t1, $[11] = t2, $[12] = t3, $[13] = t4) : t4 = $[13];
4099
4109
  let t5;
4100
4110
  $[14] === Symbol.for("react.memo_cache_sentinel") ? (t5 = /* @__PURE__ */ jsxRuntime.jsx("span", {}), $[14] = t5) : t5 = $[14];
4101
4111
  let t6;
@@ -4249,7 +4259,7 @@ const selectStyle = {
4249
4259
  iconBox: iconBoxStyle
4250
4260
  }, Root$f = styledComponents.styled.div(selectStyle.root), Input$3 = styledComponents.styled.select(selectStyle.input), IconBox = styledComponents.styled(Box)(selectStyle.iconBox), Select = react.forwardRef(function(props, forwardedRef) {
4251
4261
  const $ = reactCompilerRuntime.c(29);
4252
- let t0, t1, t2, t3, customValidity, disabled, readOnly, restProps, children;
4262
+ let children, customValidity, disabled, readOnly, restProps, t0, t1, t2, t3;
4253
4263
  $[0] !== props ? ({
4254
4264
  children,
4255
4265
  customValidity,
@@ -4260,13 +4270,13 @@ const selectStyle = {
4260
4270
  readOnly,
4261
4271
  space: t3,
4262
4272
  ...restProps
4263
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = customValidity, $[6] = disabled, $[7] = readOnly, $[8] = restProps, $[9] = children) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], customValidity = $[5], disabled = $[6], readOnly = $[7], restProps = $[8], children = $[9]);
4273
+ } = props, $[0] = props, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] = readOnly, $[5] = restProps, $[6] = t0, $[7] = t1, $[8] = t2, $[9] = t3) : (children = $[1], customValidity = $[2], disabled = $[3], readOnly = $[4], restProps = $[5], t0 = $[6], t1 = $[7], t2 = $[8], t3 = $[9]);
4264
4274
  const fontSize2 = t0 === void 0 ? 2 : t0, padding = t1 === void 0 ? 3 : t1, radius = t2 === void 0 ? 2 : t2, space = t3 === void 0 ? 3 : t3, ref = react.useRef(null);
4265
4275
  let t4;
4266
4276
  $[10] === Symbol.for("react.memo_cache_sentinel") ? (t4 = () => ref.current, $[10] = t4) : t4 = $[10], react.useImperativeHandle(forwardedRef, t4), useCustomValidity(ref, customValidity);
4267
4277
  const t5 = !disabled && readOnly ? "" : void 0, t6 = useArrayProp(fontSize2), t7 = useArrayProp(padding), t8 = useArrayProp(radius), t9 = useArrayProp(space), t10 = disabled || readOnly;
4268
4278
  let t11;
4269
- $[11] !== t5 || $[12] !== restProps || $[13] !== t6 || $[14] !== t7 || $[15] !== t8 || $[16] !== t9 || $[17] !== t10 || $[18] !== children ? (t11 = /* @__PURE__ */ jsxRuntime.jsx(Input$3, { "data-read-only": t5, "data-ui": "Select", ...restProps, $fontSize: t6, $padding: t7, $radius: t8, $space: t9, disabled: t10, ref, children }), $[11] = t5, $[12] = restProps, $[13] = t6, $[14] = t7, $[15] = t8, $[16] = t9, $[17] = t10, $[18] = children, $[19] = t11) : t11 = $[19];
4279
+ $[11] !== children || $[12] !== restProps || $[13] !== t10 || $[14] !== t5 || $[15] !== t6 || $[16] !== t7 || $[17] !== t8 || $[18] !== t9 ? (t11 = /* @__PURE__ */ jsxRuntime.jsx(Input$3, { "data-read-only": t5, "data-ui": "Select", ...restProps, $fontSize: t6, $padding: t7, $radius: t8, $space: t9, disabled: t10, ref, children }), $[11] = children, $[12] = restProps, $[13] = t10, $[14] = t5, $[15] = t6, $[16] = t7, $[17] = t8, $[18] = t9, $[19] = t11) : t11 = $[19];
4270
4280
  let t12;
4271
4281
  $[20] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(icons.ChevronDownIcon, {}), $[20] = t12) : t12 = $[20];
4272
4282
  let t13;
@@ -4304,15 +4314,15 @@ function responsiveStackSpaceStyle(props) {
4304
4314
  }
4305
4315
  const Root$e = styledComponents.styled(Box)(stackBaseStyle, responsiveStackSpaceStyle), Stack = react.forwardRef(function(props, ref) {
4306
4316
  const $ = reactCompilerRuntime.c(10);
4307
- let as, space, restProps;
4317
+ let as, restProps, space;
4308
4318
  $[0] !== props ? ({
4309
4319
  as,
4310
4320
  space,
4311
4321
  ...restProps
4312
- } = props, $[0] = props, $[1] = as, $[2] = space, $[3] = restProps) : (as = $[1], space = $[2], restProps = $[3]);
4322
+ } = props, $[0] = props, $[1] = as, $[2] = restProps, $[3] = space) : (as = $[1], restProps = $[2], space = $[3]);
4313
4323
  const t0 = typeof as == "string" ? as : void 0, t1 = useArrayProp(space);
4314
4324
  let t2;
4315
- return $[4] !== t0 || $[5] !== restProps || $[6] !== t1 || $[7] !== as || $[8] !== ref ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(Root$e, { "data-as": t0, "data-ui": "Stack", ...restProps, $space: t1, forwardedAs: as, ref }), $[4] = t0, $[5] = restProps, $[6] = t1, $[7] = as, $[8] = ref, $[9] = t2) : t2 = $[9], t2;
4325
+ return $[4] !== as || $[5] !== ref || $[6] !== restProps || $[7] !== t0 || $[8] !== t1 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(Root$e, { "data-as": t0, "data-ui": "Stack", ...restProps, $space: t1, forwardedAs: as, ref }), $[4] = as, $[5] = ref, $[6] = restProps, $[7] = t0, $[8] = t1, $[9] = t2) : t2 = $[9], t2;
4316
4326
  });
4317
4327
  Stack.displayName = "ForwardRef(Stack)";
4318
4328
  function switchBaseStyles() {
@@ -4470,7 +4480,7 @@ function switchThumbStyles(props) {
4470
4480
  }
4471
4481
  const Root$d = styledComponents.styled.span(switchBaseStyles), Input$2 = styledComponents.styled.input(switchInputStyles), Representation = styledComponents.styled.span(switchRepresentationStyles), Track = styledComponents.styled.span(switchTrackStyles), Thumb = styledComponents.styled.span(switchThumbStyles), Switch = react.forwardRef(function(props, forwardedRef) {
4472
4482
  const $ = reactCompilerRuntime.c(26);
4473
- let indeterminate, disabled, readOnly, checked, restProps, className, style;
4483
+ let checked, className, disabled, indeterminate, readOnly, restProps, style;
4474
4484
  $[0] !== props ? ({
4475
4485
  checked,
4476
4486
  className,
@@ -4479,7 +4489,7 @@ const Root$d = styledComponents.styled.span(switchBaseStyles), Input$2 = styledC
4479
4489
  readOnly,
4480
4490
  style,
4481
4491
  ...restProps
4482
- } = props, $[0] = props, $[1] = indeterminate, $[2] = disabled, $[3] = readOnly, $[4] = checked, $[5] = restProps, $[6] = className, $[7] = style) : (indeterminate = $[1], disabled = $[2], readOnly = $[3], checked = $[4], restProps = $[5], className = $[6], style = $[7]);
4492
+ } = props, $[0] = props, $[1] = checked, $[2] = className, $[3] = disabled, $[4] = indeterminate, $[5] = readOnly, $[6] = restProps, $[7] = style) : (checked = $[1], className = $[2], disabled = $[3], indeterminate = $[4], readOnly = $[5], restProps = $[6], style = $[7]);
4483
4493
  const ref = react.useRef(null);
4484
4494
  let t0;
4485
4495
  $[8] === Symbol.for("react.memo_cache_sentinel") ? (t0 = () => ref.current, $[8] = t0) : t0 = $[8], react.useImperativeHandle(forwardedRef, t0);
@@ -4489,7 +4499,7 @@ const Root$d = styledComponents.styled.span(switchBaseStyles), Input$2 = styledC
4489
4499
  }, t2 = [indeterminate], $[9] = indeterminate, $[10] = t1, $[11] = t2) : (t1 = $[10], t2 = $[11]), react.useEffect(t1, t2);
4490
4500
  const t3 = !disabled && readOnly ? "" : void 0, t4 = indeterminate !== !0 && checked, t5 = disabled || readOnly;
4491
4501
  let t6;
4492
- $[12] !== t3 || $[13] !== restProps || $[14] !== t4 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Input$2, { "data-read-only": t3, ...restProps, checked: t4, disabled: t5, type: "checkbox", ref }), $[12] = t3, $[13] = restProps, $[14] = t4, $[15] = t5, $[16] = t6) : t6 = $[16];
4502
+ $[12] !== restProps || $[13] !== t3 || $[14] !== t4 || $[15] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Input$2, { "data-read-only": t3, ...restProps, checked: t4, disabled: t5, type: "checkbox", ref }), $[12] = restProps, $[13] = t3, $[14] = t4, $[15] = t5, $[16] = t6) : t6 = $[16];
4493
4503
  let t7;
4494
4504
  $[17] === Symbol.for("react.memo_cache_sentinel") ? (t7 = /* @__PURE__ */ jsxRuntime.jsx(Track, {}), $[17] = t7) : t7 = $[17];
4495
4505
  let t8;
@@ -4511,7 +4521,7 @@ const Root$c = styledComponents.styled.span(textInputRootStyle), InputRoot$1 = s
4511
4521
  position: relative;
4512
4522
  `, Input$1 = styledComponents.styled.textarea(responsiveInputPaddingStyle, textInputBaseStyle, textInputFontSizeStyle), Presentation$1 = styledComponents.styled.div(responsiveRadiusStyle, textInputRepresentationStyle), TextArea = react.forwardRef(function(props, forwardedRef) {
4513
4523
  const $ = reactCompilerRuntime.c(29);
4514
- let t0, t1, t2, t3, t4, customValidity, restProps, weight, __unstable_disableFocusRing;
4524
+ let __unstable_disableFocusRing, customValidity, restProps, t0, t1, t2, t3, t4, weight;
4515
4525
  $[0] !== props ? ({
4516
4526
  border: t0,
4517
4527
  customValidity,
@@ -4522,16 +4532,16 @@ const Root$c = styledComponents.styled.span(textInputRootStyle), InputRoot$1 = s
4522
4532
  weight,
4523
4533
  __unstable_disableFocusRing,
4524
4534
  ...restProps
4525
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = t4, $[6] = customValidity, $[7] = restProps, $[8] = weight, $[9] = __unstable_disableFocusRing) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], t4 = $[5], customValidity = $[6], restProps = $[7], weight = $[8], __unstable_disableFocusRing = $[9]);
4535
+ } = props, $[0] = props, $[1] = __unstable_disableFocusRing, $[2] = customValidity, $[3] = restProps, $[4] = t0, $[5] = t1, $[6] = t2, $[7] = t3, $[8] = t4, $[9] = weight) : (__unstable_disableFocusRing = $[1], customValidity = $[2], restProps = $[3], t0 = $[4], t1 = $[5], t2 = $[6], t3 = $[7], t4 = $[8], weight = $[9]);
4526
4536
  const border2 = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSize2 = t2 === void 0 ? 2 : t2, padding = t3 === void 0 ? 3 : t3, radius = t4 === void 0 ? 2 : t4, ref = react.useRef(null), rootTheme = useRootTheme();
4527
4537
  let t5;
4528
4538
  $[10] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[10] = t5) : t5 = $[10], react.useImperativeHandle(forwardedRef, t5), useCustomValidity(ref, customValidity);
4529
4539
  const t6 = rootTheme.scheme, t7 = rootTheme.tone, t8 = useArrayProp(fontSize2), t9 = useArrayProp(padding), t10 = rootTheme.scheme, t11 = useArrayProp(0);
4530
4540
  let t12;
4531
- $[11] !== rootTheme.scheme || $[12] !== rootTheme.tone || $[13] !== restProps || $[14] !== t8 || $[15] !== t9 || $[16] !== t11 || $[17] !== weight || $[18] !== disabled ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(Input$1, { "data-as": "textarea", "data-scheme": t6, "data-tone": t7, ...restProps, $fontSize: t8, $padding: t9, $scheme: t10, $space: t11, $tone: rootTheme.tone, $weight: weight, disabled, ref }), $[11] = rootTheme.scheme, $[12] = rootTheme.tone, $[13] = restProps, $[14] = t8, $[15] = t9, $[16] = t11, $[17] = weight, $[18] = disabled, $[19] = t12) : t12 = $[19];
4541
+ $[11] !== disabled || $[12] !== restProps || $[13] !== rootTheme.scheme || $[14] !== rootTheme.tone || $[15] !== t11 || $[16] !== t8 || $[17] !== t9 || $[18] !== weight ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(Input$1, { "data-as": "textarea", "data-scheme": t6, "data-tone": t7, ...restProps, $fontSize: t8, $padding: t9, $scheme: t10, $space: t11, $tone: rootTheme.tone, $weight: weight, disabled, ref }), $[11] = disabled, $[12] = restProps, $[13] = rootTheme.scheme, $[14] = rootTheme.tone, $[15] = t11, $[16] = t8, $[17] = t9, $[18] = weight, $[19] = t12) : t12 = $[19];
4532
4542
  const t13 = useArrayProp(radius), t14 = border2 ? "" : void 0;
4533
4543
  let t15;
4534
- $[20] !== t13 || $[21] !== __unstable_disableFocusRing || $[22] !== rootTheme.scheme || $[23] !== rootTheme.tone || $[24] !== t14 ? (t15 = /* @__PURE__ */ jsxRuntime.jsx(Presentation$1, { $radius: t13, $unstableDisableFocusRing: __unstable_disableFocusRing, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t14, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone }), $[20] = t13, $[21] = __unstable_disableFocusRing, $[22] = rootTheme.scheme, $[23] = rootTheme.tone, $[24] = t14, $[25] = t15) : t15 = $[25];
4544
+ $[20] !== __unstable_disableFocusRing || $[21] !== rootTheme.scheme || $[22] !== rootTheme.tone || $[23] !== t13 || $[24] !== t14 ? (t15 = /* @__PURE__ */ jsxRuntime.jsx(Presentation$1, { $radius: t13, $unstableDisableFocusRing: __unstable_disableFocusRing, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t14, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone }), $[20] = __unstable_disableFocusRing, $[21] = rootTheme.scheme, $[22] = rootTheme.tone, $[23] = t13, $[24] = t14, $[25] = t15) : t15 = $[25];
4535
4545
  let t16;
4536
4546
  return $[26] !== t12 || $[27] !== t15 ? (t16 = /* @__PURE__ */ jsxRuntime.jsx(Root$c, { "data-ui": "TextArea", children: /* @__PURE__ */ jsxRuntime.jsxs(InputRoot$1, { children: [
4537
4547
  t12,
@@ -4587,7 +4597,7 @@ const CLEAR_BUTTON_BOX_STYLE = {
4587
4597
  }
4588
4598
  }), TextInput = react.forwardRef(function(props, forwardedRef) {
4589
4599
  const $ = reactCompilerRuntime.c(86);
4590
- let t0, t1, t2, t3, t4, t5, t6, clearButton, IconComponent, IconRightComponent, suffix, prefix, customValidity, onClear, __unstable_disableFocusRing, readOnly, restProps, weight;
4600
+ let IconComponent, IconRightComponent, __unstable_disableFocusRing, clearButton, customValidity, onClear, prefix, readOnly, restProps, suffix, t0, t1, t2, t3, t4, t5, t6, weight;
4591
4601
  $[0] !== props ? ({
4592
4602
  __unstable_disableFocusRing,
4593
4603
  border: t0,
@@ -4607,7 +4617,7 @@ const CLEAR_BUTTON_BOX_STYLE = {
4607
4617
  type: t6,
4608
4618
  weight,
4609
4619
  ...restProps
4610
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = t4, $[6] = t5, $[7] = t6, $[8] = clearButton, $[9] = IconComponent, $[10] = IconRightComponent, $[11] = suffix, $[12] = prefix, $[13] = customValidity, $[14] = onClear, $[15] = __unstable_disableFocusRing, $[16] = readOnly, $[17] = restProps, $[18] = weight) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], t4 = $[5], t5 = $[6], t6 = $[7], clearButton = $[8], IconComponent = $[9], IconRightComponent = $[10], suffix = $[11], prefix = $[12], customValidity = $[13], onClear = $[14], __unstable_disableFocusRing = $[15], readOnly = $[16], restProps = $[17], weight = $[18]);
4620
+ } = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = clearButton, $[5] = customValidity, $[6] = onClear, $[7] = prefix, $[8] = readOnly, $[9] = restProps, $[10] = suffix, $[11] = t0, $[12] = t1, $[13] = t2, $[14] = t3, $[15] = t4, $[16] = t5, $[17] = t6, $[18] = weight) : (IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], clearButton = $[4], customValidity = $[5], onClear = $[6], prefix = $[7], readOnly = $[8], restProps = $[9], suffix = $[10], t0 = $[11], t1 = $[12], t2 = $[13], t3 = $[14], t4 = $[15], t5 = $[16], t6 = $[17], weight = $[18]);
4611
4621
  const border2 = t0 === void 0 ? !0 : t0, disabled = t1 === void 0 ? !1 : t1, fontSizeProp = t2 === void 0 ? 2 : t2, paddingProp = t3 === void 0 ? 3 : t3, radiusProp = t4 === void 0 ? 2 : t4, spaceProp = t5 === void 0 ? 3 : t5, type = t6 === void 0 ? "text" : t6, ref = react.useRef(null), rootTheme = useRootTheme(), fontSize2 = useArrayProp(fontSizeProp), padding = useArrayProp(paddingProp), radius = useArrayProp(radiusProp), space = useArrayProp(spaceProp), $hasClearButton = !!clearButton, $hasIcon = !!IconComponent, $hasIconRight = !!IconRightComponent, $hasSuffix = !!suffix, $hasPrefix = !!prefix;
4612
4622
  let t7;
4613
4623
  $[19] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[19] = t7) : t7 = $[19], react.useImperativeHandle(forwardedRef, t7), useCustomValidity(ref, customValidity);
@@ -4633,10 +4643,10 @@ const CLEAR_BUTTON_BOX_STYLE = {
4633
4643
  ReactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
4634
4644
  ] }) }), $[29] = $hasClearButton, $[30] = IconRightComponent, $[31] = fontSize2, $[32] = padding, $[33] = t14) : t14 = $[33];
4635
4645
  let t15;
4636
- $[34] !== $hasPrefix || $[35] !== __unstable_disableFocusRing || $[36] !== $hasSuffix || $[37] !== radius || $[38] !== rootTheme.scheme || $[39] !== rootTheme.tone || $[40] !== t12 || $[41] !== t13 || $[42] !== t14 ? (t15 = /* @__PURE__ */ jsxRuntime.jsxs(Presentation, { $hasPrefix, $unstableDisableFocusRing: __unstable_disableFocusRing, $hasSuffix, $radius: radius, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t12, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, children: [
4646
+ $[34] !== $hasPrefix || $[35] !== $hasSuffix || $[36] !== __unstable_disableFocusRing || $[37] !== radius || $[38] !== rootTheme.scheme || $[39] !== rootTheme.tone || $[40] !== t12 || $[41] !== t13 || $[42] !== t14 ? (t15 = /* @__PURE__ */ jsxRuntime.jsxs(Presentation, { $hasPrefix, $unstableDisableFocusRing: __unstable_disableFocusRing, $hasSuffix, $radius: radius, $scheme: rootTheme.scheme, $tone: rootTheme.tone, "data-border": t12, "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, children: [
4637
4647
  t13,
4638
4648
  t14
4639
- ] }), $[34] = $hasPrefix, $[35] = __unstable_disableFocusRing, $[36] = $hasSuffix, $[37] = radius, $[38] = rootTheme.scheme, $[39] = rootTheme.tone, $[40] = t12, $[41] = t13, $[42] = t14, $[43] = t15) : t15 = $[43], t11 = t15;
4649
+ ] }), $[34] = $hasPrefix, $[35] = $hasSuffix, $[36] = __unstable_disableFocusRing, $[37] = radius, $[38] = rootTheme.scheme, $[39] = rootTheme.tone, $[40] = t12, $[41] = t13, $[42] = t14, $[43] = t15) : t15 = $[43], t11 = t15;
4640
4650
  const presentationNode = t11;
4641
4651
  let t16, t17;
4642
4652
  if ($[44] !== padding) {
@@ -4658,25 +4668,25 @@ const CLEAR_BUTTON_BOX_STYLE = {
4658
4668
  t20 = typeof clearButton == "object" ? clearButton : EMPTY_RECORD;
4659
4669
  const clearButtonProps = t20;
4660
4670
  let t21, t22;
4661
- $[50] !== disabled || $[51] !== readOnly || $[52] !== clearButton || $[53] !== customValidity || $[54] !== fontSize2 || $[55] !== clearButtonPadding || $[56] !== radius || $[57] !== clearButtonProps || $[58] !== handleClearClick || $[59] !== clearButtonBoxPadding ? (t22 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsxRuntime.jsx(RightCard, { forwardedAs: "span", padding: clearButtonBoxPadding, style: CLEAR_BUTTON_BOX_STYLE, tone: customValidity ? "critical" : "inherit", children: /* @__PURE__ */ jsxRuntime.jsx(TextInputClearButton, { "aria-label": "Clear", "data-qa": "clear-button", fontSize: fontSize2, icon: icons.CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[50] = disabled, $[51] = readOnly, $[52] = clearButton, $[53] = customValidity, $[54] = fontSize2, $[55] = clearButtonPadding, $[56] = radius, $[57] = clearButtonProps, $[58] = handleClearClick, $[59] = clearButtonBoxPadding, $[60] = t22) : t22 = $[60], t21 = t22;
4671
+ $[50] !== clearButton || $[51] !== clearButtonBoxPadding || $[52] !== clearButtonPadding || $[53] !== clearButtonProps || $[54] !== customValidity || $[55] !== disabled || $[56] !== fontSize2 || $[57] !== handleClearClick || $[58] !== radius || $[59] !== readOnly ? (t22 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsxRuntime.jsx(RightCard, { forwardedAs: "span", padding: clearButtonBoxPadding, style: CLEAR_BUTTON_BOX_STYLE, tone: customValidity ? "critical" : "inherit", children: /* @__PURE__ */ jsxRuntime.jsx(TextInputClearButton, { "aria-label": "Clear", "data-qa": "clear-button", fontSize: fontSize2, icon: icons.CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[50] = clearButton, $[51] = clearButtonBoxPadding, $[52] = clearButtonPadding, $[53] = clearButtonProps, $[54] = customValidity, $[55] = disabled, $[56] = fontSize2, $[57] = handleClearClick, $[58] = radius, $[59] = readOnly, $[60] = t22) : t22 = $[60], t21 = t22;
4662
4672
  const clearButtonNode = t21;
4663
4673
  let t23, t24;
4664
- $[61] !== suffix || $[62] !== radius ? (t24 = suffix && /* @__PURE__ */ jsxRuntime.jsx(Suffix, { borderTop: !0, borderRight: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: suffix }) }), $[61] = suffix, $[62] = radius, $[63] = t24) : t24 = $[63], t23 = t24;
4674
+ $[61] !== radius || $[62] !== suffix ? (t24 = suffix && /* @__PURE__ */ jsxRuntime.jsx(Suffix, { borderTop: !0, borderRight: !0, borderBottom: !0, radius, sizing: "border", tone: "inherit", children: /* @__PURE__ */ jsxRuntime.jsx("span", { children: suffix }) }), $[61] = radius, $[62] = suffix, $[63] = t24) : t24 = $[63], t23 = t24;
4665
4675
  const suffixNode = t23, t25 = $hasIconRight || $hasClearButton;
4666
4676
  let t26;
4667
- $[64] !== rootTheme.scheme || $[65] !== rootTheme.tone || $[66] !== restProps || $[67] !== fontSize2 || $[68] !== $hasIcon || $[69] !== t25 || $[70] !== padding || $[71] !== space || $[72] !== weight || $[73] !== disabled || $[74] !== readOnly || $[75] !== type ? (t26 = /* @__PURE__ */ jsxRuntime.jsx(Input, { "data-as": "input", "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, ...restProps, $fontSize: fontSize2, $iconLeft: $hasIcon, $iconRight: t25, $padding: padding, $scheme: rootTheme.scheme, $space: space, $tone: rootTheme.tone, $weight: weight, disabled, readOnly, ref, type }), $[64] = rootTheme.scheme, $[65] = rootTheme.tone, $[66] = restProps, $[67] = fontSize2, $[68] = $hasIcon, $[69] = t25, $[70] = padding, $[71] = space, $[72] = weight, $[73] = disabled, $[74] = readOnly, $[75] = type, $[76] = t26) : t26 = $[76];
4677
+ $[64] !== $hasIcon || $[65] !== disabled || $[66] !== fontSize2 || $[67] !== padding || $[68] !== readOnly || $[69] !== restProps || $[70] !== rootTheme.scheme || $[71] !== rootTheme.tone || $[72] !== space || $[73] !== t25 || $[74] !== type || $[75] !== weight ? (t26 = /* @__PURE__ */ jsxRuntime.jsx(Input, { "data-as": "input", "data-scheme": rootTheme.scheme, "data-tone": rootTheme.tone, ...restProps, $fontSize: fontSize2, $iconLeft: $hasIcon, $iconRight: t25, $padding: padding, $scheme: rootTheme.scheme, $space: space, $tone: rootTheme.tone, $weight: weight, disabled, readOnly, ref, type }), $[64] = $hasIcon, $[65] = disabled, $[66] = fontSize2, $[67] = padding, $[68] = readOnly, $[69] = restProps, $[70] = rootTheme.scheme, $[71] = rootTheme.tone, $[72] = space, $[73] = t25, $[74] = type, $[75] = weight, $[76] = t26) : t26 = $[76];
4668
4678
  let t27;
4669
- $[77] !== t26 || $[78] !== presentationNode || $[79] !== clearButtonNode ? (t27 = /* @__PURE__ */ jsxRuntime.jsxs(InputRoot, { children: [
4679
+ $[77] !== clearButtonNode || $[78] !== presentationNode || $[79] !== t26 ? (t27 = /* @__PURE__ */ jsxRuntime.jsxs(InputRoot, { children: [
4670
4680
  t26,
4671
4681
  presentationNode,
4672
4682
  clearButtonNode
4673
- ] }), $[77] = t26, $[78] = presentationNode, $[79] = clearButtonNode, $[80] = t27) : t27 = $[80];
4683
+ ] }), $[77] = clearButtonNode, $[78] = presentationNode, $[79] = t26, $[80] = t27) : t27 = $[80];
4674
4684
  let t28;
4675
- return $[81] !== rootTheme.tone || $[82] !== prefixNode || $[83] !== t27 || $[84] !== suffixNode ? (t28 = /* @__PURE__ */ jsxRuntime.jsxs(Root$b, { "data-ui": "TextInput", tone: rootTheme.tone, children: [
4685
+ return $[81] !== prefixNode || $[82] !== rootTheme.tone || $[83] !== suffixNode || $[84] !== t27 ? (t28 = /* @__PURE__ */ jsxRuntime.jsxs(Root$b, { "data-ui": "TextInput", tone: rootTheme.tone, children: [
4676
4686
  prefixNode,
4677
4687
  t27,
4678
4688
  suffixNode
4679
- ] }), $[81] = rootTheme.tone, $[82] = prefixNode, $[83] = t27, $[84] = suffixNode, $[85] = t28) : t28 = $[85], t28;
4689
+ ] }), $[81] = prefixNode, $[82] = rootTheme.tone, $[83] = suffixNode, $[84] = t27, $[85] = t28) : t28 = $[85], t28;
4680
4690
  });
4681
4691
  TextInput.displayName = "ForwardRef(TextInput)";
4682
4692
  function _temp$2(event) {
@@ -4717,7 +4727,7 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
4717
4727
  }
4718
4728
  `, TooltipCard = react.memo(react.forwardRef(function(props, ref) {
4719
4729
  const $ = reactCompilerRuntime.c(42);
4720
- let animate, originX, originY, style, arrowX, arrowY, restProps, arrow, arrowRef, placement, padding, radius, scheme, shadow, children;
4730
+ let animate, arrow, arrowRef, arrowX, arrowY, children, originX, originY, padding, placement, radius, restProps, scheme, shadow, style;
4721
4731
  $[0] !== props ? ({
4722
4732
  animate,
4723
4733
  arrow,
@@ -4734,16 +4744,16 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
4734
4744
  shadow,
4735
4745
  style,
4736
4746
  ...restProps
4737
- } = props, $[0] = props, $[1] = animate, $[2] = originX, $[3] = originY, $[4] = style, $[5] = arrowX, $[6] = arrowY, $[7] = restProps, $[8] = arrow, $[9] = arrowRef, $[10] = placement, $[11] = padding, $[12] = radius, $[13] = scheme, $[14] = shadow, $[15] = children) : (animate = $[1], originX = $[2], originY = $[3], style = $[4], arrowX = $[5], arrowY = $[6], restProps = $[7], arrow = $[8], arrowRef = $[9], placement = $[10], padding = $[11], radius = $[12], scheme = $[13], shadow = $[14], children = $[15]);
4747
+ } = props, $[0] = props, $[1] = animate, $[2] = arrow, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = originX, $[8] = originY, $[9] = padding, $[10] = placement, $[11] = radius, $[12] = restProps, $[13] = scheme, $[14] = shadow, $[15] = style) : (animate = $[1], arrow = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], originX = $[7], originY = $[8], padding = $[9], placement = $[10], radius = $[11], restProps = $[12], scheme = $[13], shadow = $[14], style = $[15]);
4738
4748
  let t0;
4739
4749
  const t1 = animate ? "transform" : void 0;
4740
4750
  let t2;
4741
- $[16] !== originX || $[17] !== originY || $[18] !== t1 || $[19] !== style ? (t2 = {
4751
+ $[16] !== originX || $[17] !== originY || $[18] !== style || $[19] !== t1 ? (t2 = {
4742
4752
  originX,
4743
4753
  originY,
4744
4754
  willChange: t1,
4745
4755
  ...style
4746
- }, $[16] = originX, $[17] = originY, $[18] = t1, $[19] = style, $[20] = t2) : t2 = $[20], t0 = t2;
4756
+ }, $[16] = originX, $[17] = originY, $[18] = style, $[19] = t1, $[20] = t2) : t2 = $[20], t0 = t2;
4747
4757
  const rootStyle2 = t0;
4748
4758
  let t3;
4749
4759
  const t4 = arrowX !== null ? arrowX : void 0, t5 = arrowY !== null ? arrowY : void 0;
@@ -4760,10 +4770,10 @@ const DEFAULT_TOOLTIP_ARROW_WIDTH = 15, DEFAULT_TOOLTIP_ARROW_HEIGHT = 6, DEFAUL
4760
4770
  let t9;
4761
4771
  $[26] !== arrow || $[27] !== arrowRef || $[28] !== arrowStyle ? (t9 = arrow && /* @__PURE__ */ jsxRuntime.jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_TOOLTIP_ARROW_WIDTH, height: DEFAULT_TOOLTIP_ARROW_HEIGHT, radius: DEFAULT_TOOLTIP_ARROW_RADIUS }), $[26] = arrow, $[27] = arrowRef, $[28] = arrowStyle, $[29] = t9) : t9 = $[29];
4762
4772
  let t10;
4763
- return $[30] !== t7 || $[31] !== placement || $[32] !== padding || $[33] !== radius || $[34] !== ref || $[35] !== scheme || $[36] !== shadow || $[37] !== rootStyle2 || $[38] !== t8 || $[39] !== children || $[40] !== t9 ? (t10 = /* @__PURE__ */ jsxRuntime.jsxs(MotionCard, { "data-ui": "Tooltip__card", ...t7, "data-placement": placement, padding, radius, ref, scheme, shadow, style: rootStyle2, ...t8, children: [
4773
+ return $[30] !== children || $[31] !== padding || $[32] !== placement || $[33] !== radius || $[34] !== ref || $[35] !== rootStyle2 || $[36] !== scheme || $[37] !== shadow || $[38] !== t7 || $[39] !== t8 || $[40] !== t9 ? (t10 = /* @__PURE__ */ jsxRuntime.jsxs(MotionCard, { "data-ui": "Tooltip__card", ...t7, "data-placement": placement, padding, radius, ref, scheme, shadow, style: rootStyle2, ...t8, children: [
4764
4774
  children,
4765
4775
  t9
4766
- ] }), $[30] = t7, $[31] = placement, $[32] = padding, $[33] = radius, $[34] = ref, $[35] = scheme, $[36] = shadow, $[37] = rootStyle2, $[38] = t8, $[39] = children, $[40] = t9, $[41] = t10) : t10 = $[41], t10;
4776
+ ] }), $[30] = children, $[31] = padding, $[32] = placement, $[33] = radius, $[34] = ref, $[35] = rootStyle2, $[36] = scheme, $[37] = shadow, $[38] = t7, $[39] = t8, $[40] = t9, $[41] = t10) : t10 = $[41], t10;
4767
4777
  }));
4768
4778
  TooltipCard.displayName = "Memo(ForwardRef(TooltipCard))";
4769
4779
  const TooltipDelayGroupContext = createGlobalScopedContext("@sanity/ui/context/tooltipDelayGroup", null);
@@ -4778,17 +4788,17 @@ function TooltipDelayGroupProvider(props) {
4778
4788
  let t0;
4779
4789
  const t1 = isGroupActive ? 1 : openDelay;
4780
4790
  let t2;
4781
- $[0] !== isGroupActive || $[1] !== setIsGroupActive || $[2] !== openTooltipId || $[3] !== setOpenTooltipId || $[4] !== t1 || $[5] !== closeDelay ? (t2 = {
4791
+ $[0] !== closeDelay || $[1] !== isGroupActive || $[2] !== openTooltipId || $[3] !== setIsGroupActive || $[4] !== setOpenTooltipId || $[5] !== t1 ? (t2 = {
4782
4792
  isGroupActive,
4783
4793
  setIsGroupActive,
4784
4794
  openTooltipId,
4785
4795
  setOpenTooltipId,
4786
4796
  openDelay: t1,
4787
4797
  closeDelay
4788
- }, $[0] = isGroupActive, $[1] = setIsGroupActive, $[2] = openTooltipId, $[3] = setOpenTooltipId, $[4] = t1, $[5] = closeDelay, $[6] = t2) : t2 = $[6], t0 = t2;
4798
+ }, $[0] = closeDelay, $[1] = isGroupActive, $[2] = openTooltipId, $[3] = setIsGroupActive, $[4] = setOpenTooltipId, $[5] = t1, $[6] = t2) : t2 = $[6], t0 = t2;
4789
4799
  const value = t0;
4790
4800
  let t3;
4791
- return $[7] !== value || $[8] !== children ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(TooltipDelayGroupContext.Provider, { value, children }), $[7] = value, $[8] = children, $[9] = t3) : t3 = $[9], t3;
4801
+ return $[7] !== children || $[8] !== value ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(TooltipDelayGroupContext.Provider, { value, children }), $[7] = children, $[8] = value, $[9] = t3) : t3 = $[9], t3;
4792
4802
  }
4793
4803
  TooltipDelayGroupProvider.displayName = "TooltipDelayGroupProvider";
4794
4804
  const Root$a = styledComponents.styled(Layer)`
@@ -4923,19 +4933,19 @@ function useCloseOnMouseLeave(t0) {
4923
4933
  showTooltip
4924
4934
  } = t0;
4925
4935
  let t1;
4926
- $[0] !== referenceElement || $[1] !== handleIsOpenChange ? (t1 = (target, teardown) => {
4936
+ $[0] !== handleIsOpenChange || $[1] !== referenceElement ? (t1 = (target, teardown) => {
4927
4937
  referenceElement && (referenceElement === target || target instanceof Node && referenceElement.contains(target) || (handleIsOpenChange(!1), teardown()));
4928
- }, $[0] = referenceElement, $[1] = handleIsOpenChange, $[2] = t1) : t1 = $[2];
4938
+ }, $[0] = handleIsOpenChange, $[1] = referenceElement, $[2] = t1) : t1 = $[2];
4929
4939
  const onMouseMove = useEffectEvent.useEffectEvent(t1);
4930
4940
  let t2, t3;
4931
- $[3] !== showTooltip || $[4] !== onMouseMove ? (t2 = () => {
4941
+ $[3] !== onMouseMove || $[4] !== showTooltip ? (t2 = () => {
4932
4942
  if (!showTooltip)
4933
4943
  return;
4934
4944
  const handleMouseMove = (event) => {
4935
4945
  onMouseMove(event.target, () => window.removeEventListener("mousemove", handleMouseMove));
4936
4946
  };
4937
4947
  return window.addEventListener("mousemove", handleMouseMove), () => window.removeEventListener("mousemove", handleMouseMove);
4938
- }, t3 = [onMouseMove, showTooltip], $[3] = showTooltip, $[4] = onMouseMove, $[5] = t2, $[6] = t3) : (t2 = $[5], t3 = $[6]), react.useEffect(t2, t3);
4948
+ }, t3 = [onMouseMove, showTooltip], $[3] = onMouseMove, $[4] = showTooltip, $[5] = t2, $[6] = t3) : (t2 = $[5], t3 = $[6]), react.useEffect(t2, t3);
4939
4949
  }
4940
4950
  const Root$9 = styledComponents.styled.div`
4941
4951
  line-height: 0;
@@ -4977,7 +4987,7 @@ function AutocompleteOption(props) {
4977
4987
  }, $[3] = handleClick, $[4] = t1) : t1 = $[4];
4978
4988
  const handleKeyDown = t1;
4979
4989
  let t2;
4980
- return $[5] !== selected || $[6] !== id || $[7] !== handleClick || $[8] !== handleKeyDown || $[9] !== children ? (t2 = /* @__PURE__ */ jsxRuntime.jsx("li", { "aria-selected": selected, "data-ui": "AutocompleteOption", id, role: "option", onClick: handleClick, onKeyDown: handleKeyDown, children }), $[5] = selected, $[6] = id, $[7] = handleClick, $[8] = handleKeyDown, $[9] = children, $[10] = t2) : t2 = $[10], t2;
4990
+ return $[5] !== children || $[6] !== handleClick || $[7] !== handleKeyDown || $[8] !== id || $[9] !== selected ? (t2 = /* @__PURE__ */ jsxRuntime.jsx("li", { "aria-selected": selected, "data-ui": "AutocompleteOption", id, role: "option", onClick: handleClick, onKeyDown: handleKeyDown, children }), $[5] = children, $[6] = handleClick, $[7] = handleKeyDown, $[8] = id, $[9] = selected, $[10] = t2) : t2 = $[10], t2;
4981
4991
  }
4982
4992
  function autocompleteReducer(state, msg2) {
4983
4993
  return msg2.type === "input/change" ? {
@@ -5375,24 +5385,24 @@ const Root$7 = styledComponents.styled(Layer)(responsivePaddingStyle, dialogStyl
5375
5385
  autoFocus && ref.current && focusFirstDescendant(ref.current);
5376
5386
  }, t3 = [autoFocus, ref], $[2] = autoFocus, $[3] = t2, $[4] = t3) : (t2 = $[3], t3 = $[4]), react.useEffect(t2, t3);
5377
5387
  let t4;
5378
- $[5] !== isTopLayer || $[6] !== onClose || $[7] !== boundaryElement || $[8] !== portalElement ? (t4 = (event) => {
5388
+ $[5] !== boundaryElement || $[6] !== isTopLayer || $[7] !== onClose || $[8] !== portalElement ? (t4 = (event) => {
5379
5389
  if (!isTopLayer || !onClose)
5380
5390
  return;
5381
5391
  const target = document.activeElement;
5382
5392
  target && !isTargetWithinScope(boundaryElement, portalElement, target) || event.key === "Escape" && (event.preventDefault(), event.stopPropagation(), onClose());
5383
- }, $[5] = isTopLayer, $[6] = onClose, $[7] = boundaryElement, $[8] = portalElement, $[9] = t4) : t4 = $[9], useGlobalKeyDown(t4);
5393
+ }, $[5] = boundaryElement, $[6] = isTopLayer, $[7] = onClose, $[8] = portalElement, $[9] = t4) : t4 = $[9], useGlobalKeyDown(t4);
5384
5394
  let t5;
5385
- $[10] !== isTopLayer || $[11] !== onClickOutside || $[12] !== boundaryElement || $[13] !== portalElement ? (t5 = isTopLayer && onClickOutside && ((event_0) => {
5395
+ $[10] !== boundaryElement || $[11] !== isTopLayer || $[12] !== onClickOutside || $[13] !== portalElement ? (t5 = isTopLayer && onClickOutside && ((event_0) => {
5386
5396
  const target_0 = event_0.target;
5387
5397
  target_0 && !isTargetWithinScope(boundaryElement, portalElement, target_0) || onClickOutside();
5388
- }), $[10] = isTopLayer, $[11] = onClickOutside, $[12] = boundaryElement, $[13] = portalElement, $[14] = t5) : t5 = $[14];
5398
+ }), $[10] = boundaryElement, $[11] = isTopLayer, $[12] = onClickOutside, $[13] = portalElement, $[14] = t5) : t5 = $[14];
5389
5399
  let t6;
5390
5400
  $[15] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => [ref.current], $[15] = t6) : t6 = $[15], useClickOutsideEvent(t5, t6);
5391
5401
  let t7;
5392
- $[16] !== showHeader || $[17] !== header || $[18] !== labelId || $[19] !== showCloseButton || $[20] !== onClose ? (t7 = showHeader && /* @__PURE__ */ jsxRuntime.jsx(DialogHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(Flex, { align: "flex-start", padding: 3, children: [
5402
+ $[16] !== header || $[17] !== labelId || $[18] !== onClose || $[19] !== showCloseButton || $[20] !== showHeader ? (t7 = showHeader && /* @__PURE__ */ jsxRuntime.jsx(DialogHeader, { children: /* @__PURE__ */ jsxRuntime.jsxs(Flex, { align: "flex-start", padding: 3, children: [
5393
5403
  /* @__PURE__ */ jsxRuntime.jsx(Box, { flex: 1, padding: 2, children: header && /* @__PURE__ */ jsxRuntime.jsx(Text, { id: labelId, size: 1, weight: "semibold", children: header }) }),
5394
5404
  showCloseButton && /* @__PURE__ */ jsxRuntime.jsx(Box, { flex: "none", children: /* @__PURE__ */ jsxRuntime.jsx(Button, { "aria-label": "Close dialog", disabled: !onClose, icon: icons.CloseIcon, mode: "bleed", onClick: onClose, padding: 2 }) })
5395
- ] }) }), $[16] = showHeader, $[17] = header, $[18] = labelId, $[19] = showCloseButton, $[20] = onClose, $[21] = t7) : t7 = $[21];
5405
+ ] }) }), $[16] = header, $[17] = labelId, $[18] = onClose, $[19] = showCloseButton, $[20] = showHeader, $[21] = t7) : t7 = $[21];
5396
5406
  let t8;
5397
5407
  $[22] !== children ? (t8 = /* @__PURE__ */ jsxRuntime.jsx(DialogContent, { flex: 1, ref: contentRef, tabIndex: -1, children }), $[22] = children, $[23] = t8) : t8 = $[23];
5398
5408
  let t9;
@@ -5406,14 +5416,14 @@ const Root$7 = styledComponents.styled(Layer)(responsivePaddingStyle, dialogStyl
5406
5416
  let t11;
5407
5417
  $[30] !== radius || $[31] !== scheme || $[32] !== shadow || $[33] !== t10 ? (t11 = /* @__PURE__ */ jsxRuntime.jsx(DialogCardRoot, { radius, ref, scheme, shadow, children: t10 }), $[30] = radius, $[31] = scheme, $[32] = shadow, $[33] = t10, $[34] = t11) : t11 = $[34];
5408
5418
  let t12;
5409
- return $[35] !== width || $[36] !== t11 ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(DialogContainer, { "data-ui": "DialogCard", width, children: t11 }), $[35] = width, $[36] = t11, $[37] = t12) : t12 = $[37], t12;
5419
+ return $[35] !== t11 || $[36] !== width ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(DialogContainer, { "data-ui": "DialogCard", width, children: t11 }), $[35] = t11, $[36] = width, $[37] = t12) : t12 = $[37], t12;
5410
5420
  });
5411
5421
  DialogCard.displayName = "ForwardRef(DialogCard)";
5412
5422
  const Dialog = react.forwardRef(function(props, ref) {
5413
5423
  const $ = reactCompilerRuntime.c(60), dialog = useDialog(), {
5414
5424
  layer
5415
5425
  } = useTheme_v2();
5416
- let t0, t1, t2, t3, t4, t5, t6, _positionProp, _zOffsetProp, portalProp, onFocus, id, contentRef, footer, header, onClickOutside, onClose, scheme, children, restProps, onActivate;
5426
+ let _positionProp, _zOffsetProp, children, contentRef, footer, header, id, onActivate, onClickOutside, onClose, onFocus, portalProp, restProps, scheme, t0, t1, t2, t3, t4, t5, t6;
5417
5427
  $[0] !== props ? ({
5418
5428
  __unstable_autoFocus: t0,
5419
5429
  __unstable_hideCloseButton: t1,
@@ -5436,7 +5446,7 @@ const Dialog = react.forwardRef(function(props, ref) {
5436
5446
  zOffset: _zOffsetProp,
5437
5447
  animate: t6,
5438
5448
  ...restProps
5439
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = t4, $[6] = t5, $[7] = t6, $[8] = _positionProp, $[9] = _zOffsetProp, $[10] = portalProp, $[11] = onFocus, $[12] = id, $[13] = contentRef, $[14] = footer, $[15] = header, $[16] = onClickOutside, $[17] = onClose, $[18] = scheme, $[19] = children, $[20] = restProps, $[21] = onActivate) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], t4 = $[5], t5 = $[6], t6 = $[7], _positionProp = $[8], _zOffsetProp = $[9], portalProp = $[10], onFocus = $[11], id = $[12], contentRef = $[13], footer = $[14], header = $[15], onClickOutside = $[16], onClose = $[17], scheme = $[18], children = $[19], restProps = $[20], onActivate = $[21]);
5449
+ } = props, $[0] = props, $[1] = _positionProp, $[2] = _zOffsetProp, $[3] = children, $[4] = contentRef, $[5] = footer, $[6] = header, $[7] = id, $[8] = onActivate, $[9] = onClickOutside, $[10] = onClose, $[11] = onFocus, $[12] = portalProp, $[13] = restProps, $[14] = scheme, $[15] = t0, $[16] = t1, $[17] = t2, $[18] = t3, $[19] = t4, $[20] = t5, $[21] = t6) : (_positionProp = $[1], _zOffsetProp = $[2], children = $[3], contentRef = $[4], footer = $[5], header = $[6], id = $[7], onActivate = $[8], onClickOutside = $[9], onClose = $[10], onFocus = $[11], portalProp = $[12], restProps = $[13], scheme = $[14], t0 = $[15], t1 = $[16], t2 = $[17], t3 = $[18], t4 = $[19], t5 = $[20], t6 = $[21]);
5440
5450
  const autoFocus = t0 === void 0 ? !0 : t0, hideCloseButton = t1 === void 0 ? !1 : t1, cardRadiusProp = t2 === void 0 ? 4 : t2, cardShadow = t3 === void 0 ? 3 : t3, paddingProp = t4 === void 0 ? 3 : t4, widthProp = t5 === void 0 ? 0 : t5, _animate = t6 === void 0 ? !1 : t6, positionProp = _positionProp ?? (dialog.position || "fixed"), zOffsetProp = _zOffsetProp ?? (dialog.zOffset || layer.dialog.zOffset), animate = usePrefersReducedMotion() ? !1 : _animate, portal = usePortal(), portalElement = portalProp ? portal.elements?.[portalProp] || null : portal.element, boundaryElement = useBoundaryElement().element, cardRadius = useArrayProp(cardRadiusProp), padding = useArrayProp(paddingProp), position = useArrayProp(positionProp), width = useArrayProp(widthProp), zOffset = useArrayProp(zOffsetProp), preDivRef = react.useRef(null), postDivRef = react.useRef(null), cardRef = react.useRef(null), focusedElementRef = react.useRef(null);
5441
5451
  let t7;
5442
5452
  $[22] !== onFocus ? (t7 = (event) => {
@@ -5472,15 +5482,15 @@ const Dialog = react.forwardRef(function(props, ref) {
5472
5482
  let t9;
5473
5483
  $[27] === Symbol.for("react.memo_cache_sentinel") ? (t9 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref: preDivRef, tabIndex: 0 }), $[27] = t9) : t9 = $[27];
5474
5484
  let t10;
5475
- $[28] !== autoFocus || $[29] !== hideCloseButton || $[30] !== contentRef || $[31] !== footer || $[32] !== header || $[33] !== id || $[34] !== onClickOutside || $[35] !== onClose || $[36] !== portalProp || $[37] !== cardRadius || $[38] !== scheme || $[39] !== cardShadow || $[40] !== width || $[41] !== children ? (t10 = /* @__PURE__ */ jsxRuntime.jsx(DialogCard, { __unstable_autoFocus: autoFocus, __unstable_hideCloseButton: hideCloseButton, contentRef, footer, header, id, onClickOutside, onClose, portal: portalProp, radius: cardRadius, ref: cardRef, scheme, shadow: cardShadow, width, children }), $[28] = autoFocus, $[29] = hideCloseButton, $[30] = contentRef, $[31] = footer, $[32] = header, $[33] = id, $[34] = onClickOutside, $[35] = onClose, $[36] = portalProp, $[37] = cardRadius, $[38] = scheme, $[39] = cardShadow, $[40] = width, $[41] = children, $[42] = t10) : t10 = $[42];
5485
+ $[28] !== autoFocus || $[29] !== cardRadius || $[30] !== cardShadow || $[31] !== children || $[32] !== contentRef || $[33] !== footer || $[34] !== header || $[35] !== hideCloseButton || $[36] !== id || $[37] !== onClickOutside || $[38] !== onClose || $[39] !== portalProp || $[40] !== scheme || $[41] !== width ? (t10 = /* @__PURE__ */ jsxRuntime.jsx(DialogCard, { __unstable_autoFocus: autoFocus, __unstable_hideCloseButton: hideCloseButton, contentRef, footer, header, id, onClickOutside, onClose, portal: portalProp, radius: cardRadius, ref: cardRef, scheme, shadow: cardShadow, width, children }), $[28] = autoFocus, $[29] = cardRadius, $[30] = cardShadow, $[31] = children, $[32] = contentRef, $[33] = footer, $[34] = header, $[35] = hideCloseButton, $[36] = id, $[37] = onClickOutside, $[38] = onClose, $[39] = portalProp, $[40] = scheme, $[41] = width, $[42] = t10) : t10 = $[42];
5476
5486
  let t11;
5477
5487
  $[43] === Symbol.for("react.memo_cache_sentinel") ? (t11 = /* @__PURE__ */ jsxRuntime.jsx("div", { ref: postDivRef, tabIndex: 0 }), $[43] = t11) : t11 = $[43];
5478
5488
  let t12;
5479
- $[44] !== restProps || $[45] !== animate || $[46] !== padding || $[47] !== position || $[48] !== labelId || $[49] !== id || $[50] !== onActivate || $[51] !== handleRootClick || $[52] !== handleFocus || $[53] !== ref || $[54] !== zOffset || $[55] !== t10 ? (t12 = /* @__PURE__ */ jsxRuntime.jsxs(Root$7, { ...restProps, $animate: animate, $padding: padding, $position: position, "aria-labelledby": labelId, "aria-modal": !0, "data-ui": "Dialog", id, onActivate, onClick: handleRootClick, onFocus: handleFocus, ref, role: "dialog", zOffset, children: [
5489
+ $[44] !== animate || $[45] !== handleFocus || $[46] !== handleRootClick || $[47] !== id || $[48] !== labelId || $[49] !== onActivate || $[50] !== padding || $[51] !== position || $[52] !== ref || $[53] !== restProps || $[54] !== t10 || $[55] !== zOffset ? (t12 = /* @__PURE__ */ jsxRuntime.jsxs(Root$7, { ...restProps, $animate: animate, $padding: padding, $position: position, "aria-labelledby": labelId, "aria-modal": !0, "data-ui": "Dialog", id, onActivate, onClick: handleRootClick, onFocus: handleFocus, ref, role: "dialog", zOffset, children: [
5480
5490
  t9,
5481
5491
  t10,
5482
5492
  t11
5483
- ] }), $[44] = restProps, $[45] = animate, $[46] = padding, $[47] = position, $[48] = labelId, $[49] = id, $[50] = onActivate, $[51] = handleRootClick, $[52] = handleFocus, $[53] = ref, $[54] = zOffset, $[55] = t10, $[56] = t12) : t12 = $[56];
5493
+ ] }), $[44] = animate, $[45] = handleFocus, $[46] = handleRootClick, $[47] = id, $[48] = labelId, $[49] = onActivate, $[50] = padding, $[51] = position, $[52] = ref, $[53] = restProps, $[54] = t10, $[55] = zOffset, $[56] = t12) : t12 = $[56];
5484
5494
  let t13;
5485
5495
  return $[57] !== portalProp || $[58] !== t12 ? (t13 = /* @__PURE__ */ jsxRuntime.jsx(Portal, { __unstable_name: portalProp, children: t12 }), $[57] = portalProp, $[58] = t12, $[59] = t13) : t13 = $[59], t13;
5486
5496
  });
@@ -5499,7 +5509,7 @@ function DialogProvider(props) {
5499
5509
  }, $[0] = position, $[1] = zOffset, $[2] = t1) : t1 = $[2], t0 = t1;
5500
5510
  const contextValue = t0;
5501
5511
  let t2;
5502
- return $[3] !== contextValue || $[4] !== children ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(DialogContext.Provider, { value: contextValue, children }), $[3] = contextValue, $[4] = children, $[5] = t2) : t2 = $[5], t2;
5512
+ return $[3] !== children || $[4] !== contextValue ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(DialogContext.Provider, { value: contextValue, children }), $[3] = children, $[4] = contextValue, $[5] = t2) : t2 = $[5], t2;
5503
5513
  }
5504
5514
  DialogProvider.displayName = "DialogProvider";
5505
5515
  const Root$6 = styledComponents.styled.kbd`
@@ -5515,7 +5525,7 @@ const Root$6 = styledComponents.styled.kbd`
5515
5525
  }
5516
5526
  `, Hotkeys = react.forwardRef(function(props, ref) {
5517
5527
  const $ = reactCompilerRuntime.c(24);
5518
- let t0, keys, fontSize2, padding, radius, restProps;
5528
+ let fontSize2, keys, padding, radius, restProps, t0;
5519
5529
  $[0] !== props ? ({
5520
5530
  fontSize: fontSize2,
5521
5531
  keys,
@@ -5523,22 +5533,22 @@ const Root$6 = styledComponents.styled.kbd`
5523
5533
  radius,
5524
5534
  space: t0,
5525
5535
  ...restProps
5526
- } = props, $[0] = props, $[1] = t0, $[2] = keys, $[3] = fontSize2, $[4] = padding, $[5] = radius, $[6] = restProps) : (t0 = $[1], keys = $[2], fontSize2 = $[3], padding = $[4], radius = $[5], restProps = $[6]);
5536
+ } = props, $[0] = props, $[1] = fontSize2, $[2] = keys, $[3] = padding, $[4] = radius, $[5] = restProps, $[6] = t0) : (fontSize2 = $[1], keys = $[2], padding = $[3], radius = $[4], restProps = $[5], t0 = $[6]);
5527
5537
  const space = useArrayProp(t0 === void 0 ? 0.5 : t0);
5528
5538
  if (!keys || keys.length === 0) {
5529
5539
  let t12;
5530
5540
  return $[7] === Symbol.for("react.memo_cache_sentinel") ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {}), $[7] = t12) : t12 = $[7], t12;
5531
5541
  }
5532
5542
  let t1;
5533
- if ($[8] !== fontSize2 || $[9] !== padding || $[10] !== radius || $[11] !== keys) {
5543
+ if ($[8] !== fontSize2 || $[9] !== keys || $[10] !== padding || $[11] !== radius) {
5534
5544
  let t22;
5535
- $[13] !== fontSize2 || $[14] !== padding || $[15] !== radius ? (t22 = (key2, i) => /* @__PURE__ */ jsxRuntime.jsx(Key, { fontSize: fontSize2, padding, radius, children: key2 }, i), $[13] = fontSize2, $[14] = padding, $[15] = radius, $[16] = t22) : t22 = $[16], t1 = keys.map(t22), $[8] = fontSize2, $[9] = padding, $[10] = radius, $[11] = keys, $[12] = t1;
5545
+ $[13] !== fontSize2 || $[14] !== padding || $[15] !== radius ? (t22 = (key2, i) => /* @__PURE__ */ jsxRuntime.jsx(Key, { fontSize: fontSize2, padding, radius, children: key2 }, i), $[13] = fontSize2, $[14] = padding, $[15] = radius, $[16] = t22) : t22 = $[16], t1 = keys.map(t22), $[8] = fontSize2, $[9] = keys, $[10] = padding, $[11] = radius, $[12] = t1;
5536
5546
  } else
5537
5547
  t1 = $[12];
5538
5548
  let t2;
5539
5549
  $[17] !== space || $[18] !== t1 ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(Inline, { as: "span", space, children: t1 }), $[17] = space, $[18] = t1, $[19] = t2) : t2 = $[19];
5540
5550
  let t3;
5541
- return $[20] !== restProps || $[21] !== ref || $[22] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(Root$6, { "data-ui": "Hotkeys", ...restProps, ref, children: t2 }), $[20] = restProps, $[21] = ref, $[22] = t2, $[23] = t3) : t3 = $[23], t3;
5551
+ return $[20] !== ref || $[21] !== restProps || $[22] !== t2 ? (t3 = /* @__PURE__ */ jsxRuntime.jsx(Root$6, { "data-ui": "Hotkeys", ...restProps, ref, children: t2 }), $[20] = ref, $[21] = restProps, $[22] = t2, $[23] = t3) : t3 = $[23], t3;
5542
5552
  });
5543
5553
  Hotkeys.displayName = "ForwardRef(Hotkeys)";
5544
5554
  const MenuContext = createGlobalScopedContext("@sanity/ui/context/menu", null);
@@ -5684,7 +5694,7 @@ const Root$5 = styledComponents.styled(Box)`
5684
5694
  overflow: auto;
5685
5695
  `, Menu = react.forwardRef(function(props, forwardedRef) {
5686
5696
  const $ = reactCompilerRuntime.c(50);
5687
- let t0, t1, _shouldFocus, onKeyDown, originElement, registerElement, onItemSelect, onClickOutside, onEscape, onItemClick, children, restProps;
5697
+ let _shouldFocus, children, onClickOutside, onEscape, onItemClick, onItemSelect, onKeyDown, originElement, registerElement, restProps, t0, t1;
5688
5698
  if ($[0] !== props) {
5689
5699
  const {
5690
5700
  children: t22,
@@ -5702,9 +5712,9 @@ const Root$5 = styledComponents.styled(Box)`
5702
5712
  space: t122,
5703
5713
  ...t132
5704
5714
  } = props;
5705
- children = t22, onClickOutside = t32, onEscape = t42, onItemClick = t52, onItemSelect = t62, onKeyDown = t72, originElement = t82, t0 = t92, registerElement = t102, _shouldFocus = t112, t1 = t122, restProps = t132, $[0] = props, $[1] = t0, $[2] = t1, $[3] = _shouldFocus, $[4] = onKeyDown, $[5] = originElement, $[6] = registerElement, $[7] = onItemSelect, $[8] = onClickOutside, $[9] = onEscape, $[10] = onItemClick, $[11] = children, $[12] = restProps;
5715
+ children = t22, onClickOutside = t32, onEscape = t42, onItemClick = t52, onItemSelect = t62, onKeyDown = t72, originElement = t82, t0 = t92, registerElement = t102, _shouldFocus = t112, t1 = t122, restProps = t132, $[0] = props, $[1] = _shouldFocus, $[2] = children, $[3] = onClickOutside, $[4] = onEscape, $[5] = onItemClick, $[6] = onItemSelect, $[7] = onKeyDown, $[8] = originElement, $[9] = registerElement, $[10] = restProps, $[11] = t0, $[12] = t1;
5706
5716
  } else
5707
- t0 = $[1], t1 = $[2], _shouldFocus = $[3], onKeyDown = $[4], originElement = $[5], registerElement = $[6], onItemSelect = $[7], onClickOutside = $[8], onEscape = $[9], onItemClick = $[10], children = $[11], restProps = $[12];
5717
+ _shouldFocus = $[1], children = $[2], onClickOutside = $[3], onEscape = $[4], onItemClick = $[5], onItemSelect = $[6], onKeyDown = $[7], originElement = $[8], registerElement = $[9], restProps = $[10], t0 = $[11], t1 = $[12];
5708
5718
  const padding = t0 === void 0 ? 1 : t0, space = t1 === void 0 ? 1 : t1, shouldFocus = _shouldFocus ?? (props.focusFirst && "first" || props.focusLast && "last" || null), ref = react.useRef(null);
5709
5719
  let t2;
5710
5720
  $[13] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[13] = t2) : t2 = $[13], react.useImperativeHandle(forwardedRef, t2);
@@ -5732,9 +5742,9 @@ const Root$5 = styledComponents.styled(Box)`
5732
5742
  }, $[18] = registerElement, $[19] = t4) : t4 = $[19];
5733
5743
  const handleRefChange = t4;
5734
5744
  let t5, t6;
5735
- $[20] !== onItemSelect || $[21] !== activeIndex ? (t5 = () => {
5745
+ $[20] !== activeIndex || $[21] !== onItemSelect ? (t5 = () => {
5736
5746
  onItemSelect && onItemSelect(activeIndex);
5737
- }, t6 = [activeIndex, onItemSelect], $[20] = onItemSelect, $[21] = activeIndex, $[22] = t5, $[23] = t6) : (t5 = $[22], t6 = $[23]), react.useEffect(t5, t6);
5747
+ }, t6 = [activeIndex, onItemSelect], $[20] = activeIndex, $[21] = onItemSelect, $[22] = t5, $[23] = t6) : (t5 = $[22], t6 = $[23]), react.useEffect(t5, t6);
5738
5748
  let t7;
5739
5749
  $[24] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => [ref.current], $[24] = t7) : t7 = $[24], useClickOutsideEvent(isTopLayer && onClickOutside, t7);
5740
5750
  let t8;
@@ -5742,7 +5752,7 @@ const Root$5 = styledComponents.styled(Box)`
5742
5752
  isTopLayer && event.key === "Escape" && (event.stopPropagation(), onEscape && onEscape());
5743
5753
  }, $[25] = isTopLayer, $[26] = onEscape, $[27] = t8) : t8 = $[27], useGlobalKeyDown(t8);
5744
5754
  let t9, t10;
5745
- $[28] !== activeElement || $[29] !== activeIndex || $[30] !== mount || $[31] !== onClickOutside || $[32] !== onEscape || $[33] !== onItemClick || $[34] !== handleItemMouseEnter || $[35] !== handleItemMouseLeave || $[36] !== registerElement ? (t10 = {
5755
+ $[28] !== activeElement || $[29] !== activeIndex || $[30] !== handleItemMouseEnter || $[31] !== handleItemMouseLeave || $[32] !== mount || $[33] !== onClickOutside || $[34] !== onEscape || $[35] !== onItemClick || $[36] !== registerElement ? (t10 = {
5746
5756
  version: 0,
5747
5757
  activeElement,
5748
5758
  activeIndex,
@@ -5755,14 +5765,14 @@ const Root$5 = styledComponents.styled(Box)`
5755
5765
  registerElement,
5756
5766
  onMouseEnter: handleItemMouseEnter,
5757
5767
  onMouseLeave: handleItemMouseLeave
5758
- }, $[28] = activeElement, $[29] = activeIndex, $[30] = mount, $[31] = onClickOutside, $[32] = onEscape, $[33] = onItemClick, $[34] = handleItemMouseEnter, $[35] = handleItemMouseLeave, $[36] = registerElement, $[37] = t10) : t10 = $[37], t9 = t10;
5768
+ }, $[28] = activeElement, $[29] = activeIndex, $[30] = handleItemMouseEnter, $[31] = handleItemMouseLeave, $[32] = mount, $[33] = onClickOutside, $[34] = onEscape, $[35] = onItemClick, $[36] = registerElement, $[37] = t10) : t10 = $[37], t9 = t10;
5759
5769
  const value = t9;
5760
5770
  let t11;
5761
- $[38] !== space || $[39] !== children ? (t11 = /* @__PURE__ */ jsxRuntime.jsx(Stack, { space, children }), $[38] = space, $[39] = children, $[40] = t11) : t11 = $[40];
5771
+ $[38] !== children || $[39] !== space ? (t11 = /* @__PURE__ */ jsxRuntime.jsx(Stack, { space, children }), $[38] = children, $[39] = space, $[40] = t11) : t11 = $[40];
5762
5772
  let t12;
5763
- $[41] !== restProps || $[42] !== handleKeyDown || $[43] !== padding || $[44] !== handleRefChange || $[45] !== t11 ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(Root$5, { "data-ui": "Menu", ...restProps, onKeyDown: handleKeyDown, padding, ref: handleRefChange, role: "menu", tabIndex: -1, children: t11 }), $[41] = restProps, $[42] = handleKeyDown, $[43] = padding, $[44] = handleRefChange, $[45] = t11, $[46] = t12) : t12 = $[46];
5773
+ $[41] !== handleKeyDown || $[42] !== handleRefChange || $[43] !== padding || $[44] !== restProps || $[45] !== t11 ? (t12 = /* @__PURE__ */ jsxRuntime.jsx(Root$5, { "data-ui": "Menu", ...restProps, onKeyDown: handleKeyDown, padding, ref: handleRefChange, role: "menu", tabIndex: -1, children: t11 }), $[41] = handleKeyDown, $[42] = handleRefChange, $[43] = padding, $[44] = restProps, $[45] = t11, $[46] = t12) : t12 = $[46];
5764
5774
  let t13;
5765
- return $[47] !== value || $[48] !== t12 ? (t13 = /* @__PURE__ */ jsxRuntime.jsx(MenuContext.Provider, { value, children: t12 }), $[47] = value, $[48] = t12, $[49] = t13) : t13 = $[49], t13;
5775
+ return $[47] !== t12 || $[48] !== value ? (t13 = /* @__PURE__ */ jsxRuntime.jsx(MenuContext.Provider, { value, children: t12 }), $[47] = t12, $[48] = value, $[49] = t13) : t13 = $[49], t13;
5766
5776
  });
5767
5777
  Menu.displayName = "ForwardRef(Menu)";
5768
5778
  const MenuButton = react.forwardRef(function(props, forwardedRef) {
@@ -5830,9 +5840,9 @@ const MenuButton = react.forwardRef(function(props, forwardedRef) {
5830
5840
  }, $[16] = buttonElement, $[17] = menuElements, $[18] = t12) : t12 = $[18];
5831
5841
  const handleMenuClickOutside = t12;
5832
5842
  let t13;
5833
- $[19] !== disableRestoreFocusOnClose || $[20] !== buttonElement ? (t13 = () => {
5843
+ $[19] !== buttonElement || $[20] !== disableRestoreFocusOnClose ? (t13 = () => {
5834
5844
  setOpen(!1), !disableRestoreFocusOnClose && buttonElement && buttonElement.focus();
5835
- }, $[19] = disableRestoreFocusOnClose, $[20] = buttonElement, $[21] = t13) : t13 = $[21];
5845
+ }, $[19] = buttonElement, $[20] = disableRestoreFocusOnClose, $[21] = t13) : t13 = $[21];
5836
5846
  const handleMenuEscape = t13;
5837
5847
  let t14;
5838
5848
  $[22] !== menuElements ? (t14 = (event_2) => {
@@ -5846,15 +5856,15 @@ const MenuButton = react.forwardRef(function(props, forwardedRef) {
5846
5856
  }, $[22] = menuElements, $[23] = t14) : t14 = $[23];
5847
5857
  const handleBlur = t14;
5848
5858
  let t15;
5849
- $[24] !== disableRestoreFocusOnClose || $[25] !== buttonElement ? (t15 = () => {
5859
+ $[24] !== buttonElement || $[25] !== disableRestoreFocusOnClose ? (t15 = () => {
5850
5860
  setOpen(!1), !disableRestoreFocusOnClose && buttonElement && buttonElement.focus();
5851
- }, $[24] = disableRestoreFocusOnClose, $[25] = buttonElement, $[26] = t15) : t15 = $[26];
5861
+ }, $[24] = buttonElement, $[25] = disableRestoreFocusOnClose, $[26] = t15) : t15 = $[26];
5852
5862
  const handleItemClick = t15;
5853
5863
  let t16;
5854
5864
  $[27] === Symbol.for("react.memo_cache_sentinel") ? (t16 = (el_1) => (setChildMenuElements((els) => els.concat([el_1])), () => setChildMenuElements((els_0) => els_0.filter((_el) => _el !== el_1))), $[27] = t16) : t16 = $[27];
5855
5865
  const registerElement = t16;
5856
5866
  let t17;
5857
- $[28] !== id || $[29] !== handleBlur || $[30] !== handleMenuClickOutside || $[31] !== handleMenuEscape || $[32] !== handleItemClick || $[33] !== buttonElement || $[34] !== shouldFocus || $[35] !== menuProp ? (t17 = menuProp && react.cloneElement(menuProp, {
5867
+ $[28] !== buttonElement || $[29] !== handleBlur || $[30] !== handleItemClick || $[31] !== handleMenuClickOutside || $[32] !== handleMenuEscape || $[33] !== id || $[34] !== menuProp || $[35] !== shouldFocus ? (t17 = menuProp && react.cloneElement(menuProp, {
5858
5868
  "aria-labelledby": id,
5859
5869
  onBlurCapture: handleBlur,
5860
5870
  onClickOutside: handleMenuClickOutside,
@@ -5863,10 +5873,10 @@ const MenuButton = react.forwardRef(function(props, forwardedRef) {
5863
5873
  originElement: buttonElement,
5864
5874
  registerElement,
5865
5875
  shouldFocus
5866
- }), $[28] = id, $[29] = handleBlur, $[30] = handleMenuClickOutside, $[31] = handleMenuEscape, $[32] = handleItemClick, $[33] = buttonElement, $[34] = shouldFocus, $[35] = menuProp, $[36] = t17) : t17 = $[36];
5876
+ }), $[28] = buttonElement, $[29] = handleBlur, $[30] = handleItemClick, $[31] = handleMenuClickOutside, $[32] = handleMenuEscape, $[33] = id, $[34] = menuProp, $[35] = shouldFocus, $[36] = t17) : t17 = $[36];
5867
5877
  const menu = t17;
5868
5878
  let t18, t19;
5869
- $[37] !== buttonProp || $[38] !== open || $[39] !== id || $[40] !== handleMouseDown ? (t19 = buttonProp && react.cloneElement(buttonProp, {
5879
+ $[37] !== buttonProp || $[38] !== handleMouseDown || $[39] !== id || $[40] !== open ? (t19 = buttonProp && react.cloneElement(buttonProp, {
5870
5880
  "data-ui": "MenuButton",
5871
5881
  id,
5872
5882
  onClick: handleButtonClick,
@@ -5876,14 +5886,14 @@ const MenuButton = react.forwardRef(function(props, forwardedRef) {
5876
5886
  "aria-expanded": open,
5877
5887
  ref: setButtonElement,
5878
5888
  selected: buttonProp.props.selected ?? open
5879
- }), $[37] = buttonProp, $[38] = open, $[39] = id, $[40] = handleMouseDown, $[41] = t19) : t19 = $[41], t18 = t19;
5889
+ }), $[37] = buttonProp, $[38] = handleMouseDown, $[39] = id, $[40] = open, $[41] = t19) : t19 = $[41], t18 = t19;
5880
5890
  const button = t18;
5881
5891
  let t20, t21;
5882
5892
  $[42] !== buttonElement ? (t20 = () => buttonElement, t21 = [buttonElement], $[42] = buttonElement, $[43] = t20, $[44] = t21) : (t20 = $[43], t21 = $[44]), react.useImperativeHandle(forwardedRef, t20, t21);
5883
5893
  let t22, t23;
5884
5894
  $[45] !== popover ? (t23 = popover || {}, $[45] = popover, $[46] = t23) : t23 = $[46];
5885
5895
  let t24;
5886
- $[47] !== deprecated_boundaryElement || $[48] !== deprecated_placement || $[49] !== deprecated_portal || $[50] !== deprecated_preventOverflow || $[51] !== deprecated_popoverRadius || $[52] !== deprecated_popoverScheme || $[53] !== t23 ? (t24 = {
5896
+ $[47] !== deprecated_boundaryElement || $[48] !== deprecated_placement || $[49] !== deprecated_popoverRadius || $[50] !== deprecated_popoverScheme || $[51] !== deprecated_portal || $[52] !== deprecated_preventOverflow || $[53] !== t23 ? (t24 = {
5887
5897
  boundaryElement: deprecated_boundaryElement,
5888
5898
  overflow: "auto",
5889
5899
  placement: deprecated_placement,
@@ -5892,12 +5902,12 @@ const MenuButton = react.forwardRef(function(props, forwardedRef) {
5892
5902
  radius: deprecated_popoverRadius,
5893
5903
  scheme: deprecated_popoverScheme,
5894
5904
  ...t23
5895
- }, $[47] = deprecated_boundaryElement, $[48] = deprecated_placement, $[49] = deprecated_portal, $[50] = deprecated_preventOverflow, $[51] = deprecated_popoverRadius, $[52] = deprecated_popoverScheme, $[53] = t23, $[54] = t24) : t24 = $[54], t22 = t24;
5905
+ }, $[47] = deprecated_boundaryElement, $[48] = deprecated_placement, $[49] = deprecated_popoverRadius, $[50] = deprecated_popoverScheme, $[51] = deprecated_portal, $[52] = deprecated_preventOverflow, $[53] = t23, $[54] = t24) : t24 = $[54], t22 = t24;
5896
5906
  const popoverProps = t22;
5897
5907
  let t25;
5898
5908
  $[55] !== button ? (t25 = button || /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {}), $[55] = button, $[56] = t25) : t25 = $[56];
5899
5909
  let t26;
5900
- return $[57] !== popoverProps || $[58] !== menu || $[59] !== open || $[60] !== t25 ? (t26 = /* @__PURE__ */ jsxRuntime.jsx(Popover, { "data-ui": "MenuButton__popover", ...popoverProps, content: menu, open, children: t25 }), $[57] = popoverProps, $[58] = menu, $[59] = open, $[60] = t25, $[61] = t26) : t26 = $[61], t26;
5910
+ return $[57] !== menu || $[58] !== open || $[59] !== popoverProps || $[60] !== t25 ? (t26 = /* @__PURE__ */ jsxRuntime.jsx(Popover, { "data-ui": "MenuButton__popover", ...popoverProps, content: menu, open, children: t25 }), $[57] = menu, $[58] = open, $[59] = popoverProps, $[60] = t25, $[61] = t26) : t26 = $[61], t26;
5901
5911
  });
5902
5912
  MenuButton.displayName = "ForwardRef(MenuButton)";
5903
5913
  const MenuDivider = styledComponents.styled.hr`
@@ -6019,7 +6029,7 @@ function useMenu() {
6019
6029
  }
6020
6030
  function MenuGroup(props) {
6021
6031
  const $ = reactCompilerRuntime.c(77);
6022
- let t0, t1, t2, t3, t4, t5, onClick, children, IconComponent, text, restProps, popover;
6032
+ let IconComponent, children, onClick, popover, restProps, t0, t1, t2, t3, t4, t5, text;
6023
6033
  $[0] !== props ? ({
6024
6034
  as: t0,
6025
6035
  children,
@@ -6033,7 +6043,7 @@ function MenuGroup(props) {
6033
6043
  text,
6034
6044
  tone: t5,
6035
6045
  ...restProps
6036
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = t4, $[6] = t5, $[7] = onClick, $[8] = children, $[9] = IconComponent, $[10] = text, $[11] = restProps, $[12] = popover) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], t4 = $[5], t5 = $[6], onClick = $[7], children = $[8], IconComponent = $[9], text = $[10], restProps = $[11], popover = $[12]);
6046
+ } = props, $[0] = props, $[1] = IconComponent, $[2] = children, $[3] = onClick, $[4] = popover, $[5] = restProps, $[6] = t0, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = t4, $[11] = t5, $[12] = text) : (IconComponent = $[1], children = $[2], onClick = $[3], popover = $[4], restProps = $[5], t0 = $[6], t1 = $[7], t2 = $[8], t3 = $[9], t4 = $[10], t5 = $[11], text = $[12]);
6037
6047
  const as = t0 === void 0 ? "button" : t0, fontSize2 = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3, space = t4 === void 0 ? 3 : t4, tone = t5 === void 0 ? "default" : t5, menu = useMenu(), {
6038
6048
  scheme
6039
6049
  } = useRootTheme(), {
@@ -6088,7 +6098,7 @@ function MenuGroup(props) {
6088
6098
  return () => cancelAnimationFrame(rafId);
6089
6099
  }, t18 = [shouldFocus], $[32] = shouldFocus, $[33] = t17, $[34] = t18) : (t17 = $[33], t18 = $[34]), react.useEffect(t17, t18);
6090
6100
  let t19;
6091
- $[35] !== onClickOutside || $[36] !== onEscape || $[37] !== handleChildItemClick || $[38] !== handleMenuKeyDown || $[39] !== registerElement || $[40] !== shouldFocus || $[41] !== children ? (t19 = /* @__PURE__ */ jsxRuntime.jsx(Menu, { onClickOutside, onEscape, onItemClick: handleChildItemClick, onKeyDown: handleMenuKeyDown, onMouseEnter: handleMenuMouseEnter, registerElement, shouldFocus, children }), $[35] = onClickOutside, $[36] = onEscape, $[37] = handleChildItemClick, $[38] = handleMenuKeyDown, $[39] = registerElement, $[40] = shouldFocus, $[41] = children, $[42] = t19) : t19 = $[42];
6101
+ $[35] !== children || $[36] !== handleChildItemClick || $[37] !== handleMenuKeyDown || $[38] !== onClickOutside || $[39] !== onEscape || $[40] !== registerElement || $[41] !== shouldFocus ? (t19 = /* @__PURE__ */ jsxRuntime.jsx(Menu, { onClickOutside, onEscape, onItemClick: handleChildItemClick, onKeyDown: handleMenuKeyDown, onMouseEnter: handleMenuMouseEnter, registerElement, shouldFocus, children }), $[35] = children, $[36] = handleChildItemClick, $[37] = handleMenuKeyDown, $[38] = onClickOutside, $[39] = onEscape, $[40] = registerElement, $[41] = shouldFocus, $[42] = t19) : t19 = $[42];
6092
6102
  const childMenu = t19;
6093
6103
  let t20;
6094
6104
  $[43] === Symbol.for("react.memo_cache_sentinel") ? (t20 = (event_2) => {
@@ -6111,20 +6121,20 @@ function MenuGroup(props) {
6111
6121
  let t29;
6112
6122
  $[51] !== fontSize2 ? (t29 = /* @__PURE__ */ jsxRuntime.jsx(Text, { size: fontSize2, children: t28 }), $[51] = fontSize2, $[52] = t29) : t29 = $[52];
6113
6123
  let t30;
6114
- $[53] !== space || $[54] !== padding || $[55] !== t26 || $[56] !== t27 || $[57] !== t29 ? (t30 = /* @__PURE__ */ jsxRuntime.jsxs(Flex, { gap: space, padding, children: [
6124
+ $[53] !== padding || $[54] !== space || $[55] !== t26 || $[56] !== t27 || $[57] !== t29 ? (t30 = /* @__PURE__ */ jsxRuntime.jsxs(Flex, { gap: space, padding, children: [
6115
6125
  t26,
6116
6126
  t27,
6117
6127
  t29
6118
- ] }), $[53] = space, $[54] = padding, $[55] = t26, $[56] = t27, $[57] = t29, $[58] = t30) : t30 = $[58];
6128
+ ] }), $[53] = padding, $[54] = space, $[55] = t26, $[56] = t27, $[57] = t29, $[58] = t30) : t30 = $[58];
6119
6129
  let t31;
6120
- $[59] !== as || $[60] !== restProps || $[61] !== t21 || $[62] !== t22 || $[63] !== t23 || $[64] !== t24 || $[65] !== tone || $[66] !== scheme || $[67] !== handleClick || $[68] !== handleMouseEnter || $[69] !== t25 || $[70] !== t30 ? (t31 = /* @__PURE__ */ jsxRuntime.jsx(Selectable, { "data-as": as, "data-ui": "MenuGroup", forwardedAs: as, ...restProps, "aria-pressed": t21, "data-pressed": t22, "data-selected": t23, $radius: t24, $tone: tone, $scheme: scheme, onClick: handleClick, onKeyDown: handleKeyDown, onMouseEnter: handleMouseEnter, ref: setRootElement, tabIndex: -1, type: t25, children: t30 }), $[59] = as, $[60] = restProps, $[61] = t21, $[62] = t22, $[63] = t23, $[64] = t24, $[65] = tone, $[66] = scheme, $[67] = handleClick, $[68] = handleMouseEnter, $[69] = t25, $[70] = t30, $[71] = t31) : t31 = $[71];
6130
+ $[59] !== as || $[60] !== handleClick || $[61] !== handleMouseEnter || $[62] !== restProps || $[63] !== scheme || $[64] !== t21 || $[65] !== t22 || $[66] !== t23 || $[67] !== t24 || $[68] !== t25 || $[69] !== t30 || $[70] !== tone ? (t31 = /* @__PURE__ */ jsxRuntime.jsx(Selectable, { "data-as": as, "data-ui": "MenuGroup", forwardedAs: as, ...restProps, "aria-pressed": t21, "data-pressed": t22, "data-selected": t23, $radius: t24, $tone: tone, $scheme: scheme, onClick: handleClick, onKeyDown: handleKeyDown, onMouseEnter: handleMouseEnter, ref: setRootElement, tabIndex: -1, type: t25, children: t30 }), $[59] = as, $[60] = handleClick, $[61] = handleMouseEnter, $[62] = restProps, $[63] = scheme, $[64] = t21, $[65] = t22, $[66] = t23, $[67] = t24, $[68] = t25, $[69] = t30, $[70] = tone, $[71] = t31) : t31 = $[71];
6121
6131
  let t32;
6122
- return $[72] !== popover || $[73] !== childMenu || $[74] !== open || $[75] !== t31 ? (t32 = /* @__PURE__ */ jsxRuntime.jsx(Popover, { ...popover, content: childMenu, "data-ui": "MenuGroup__popover", open, children: t31 }), $[72] = popover, $[73] = childMenu, $[74] = open, $[75] = t31, $[76] = t32) : t32 = $[76], t32;
6132
+ return $[72] !== childMenu || $[73] !== open || $[74] !== popover || $[75] !== t31 ? (t32 = /* @__PURE__ */ jsxRuntime.jsx(Popover, { ...popover, content: childMenu, "data-ui": "MenuGroup__popover", open, children: t31 }), $[72] = childMenu, $[73] = open, $[74] = popover, $[75] = t31, $[76] = t32) : t32 = $[76], t32;
6123
6133
  }
6124
6134
  MenuGroup.displayName = "MenuGroup";
6125
6135
  const MenuItem = react.forwardRef(function(props, forwardedRef) {
6126
6136
  const $ = reactCompilerRuntime.c(74);
6127
- let t0, t1, t2, t3, t4, t5, selectedProp, disabled, onClick, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, pressed, IconComponent, text, IconRightComponent, hotkeys, children, restProps;
6137
+ let IconComponent, IconRightComponent, children, disabled, hotkeys, onClick, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, pressed, restProps, selectedProp, t0, t1, t2, t3, t4, t5, text;
6128
6138
  $[0] !== props ? ({
6129
6139
  as: t0,
6130
6140
  children,
@@ -6148,7 +6158,7 @@ const MenuItem = react.forwardRef(function(props, forwardedRef) {
6148
6158
  text,
6149
6159
  tone: t5,
6150
6160
  ...restProps
6151
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = t2, $[4] = t3, $[5] = t4, $[6] = t5, $[7] = selectedProp, $[8] = disabled, $[9] = onClick, $[10] = paddingX, $[11] = paddingY, $[12] = paddingTop, $[13] = paddingRight, $[14] = paddingBottom, $[15] = paddingLeft, $[16] = pressed, $[17] = IconComponent, $[18] = text, $[19] = IconRightComponent, $[20] = hotkeys, $[21] = children, $[22] = restProps) : (t0 = $[1], t1 = $[2], t2 = $[3], t3 = $[4], t4 = $[5], t5 = $[6], selectedProp = $[7], disabled = $[8], onClick = $[9], paddingX = $[10], paddingY = $[11], paddingTop = $[12], paddingRight = $[13], paddingBottom = $[14], paddingLeft = $[15], pressed = $[16], IconComponent = $[17], text = $[18], IconRightComponent = $[19], hotkeys = $[20], children = $[21], restProps = $[22]);
6161
+ } = props, $[0] = props, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = children, $[4] = disabled, $[5] = hotkeys, $[6] = onClick, $[7] = paddingBottom, $[8] = paddingLeft, $[9] = paddingRight, $[10] = paddingTop, $[11] = paddingX, $[12] = paddingY, $[13] = pressed, $[14] = restProps, $[15] = selectedProp, $[16] = t0, $[17] = t1, $[18] = t2, $[19] = t3, $[20] = t4, $[21] = t5, $[22] = text) : (IconComponent = $[1], IconRightComponent = $[2], children = $[3], disabled = $[4], hotkeys = $[5], onClick = $[6], paddingBottom = $[7], paddingLeft = $[8], paddingRight = $[9], paddingTop = $[10], paddingX = $[11], paddingY = $[12], pressed = $[13], restProps = $[14], selectedProp = $[15], t0 = $[16], t1 = $[17], t2 = $[18], t3 = $[19], t4 = $[20], t5 = $[21], text = $[22]);
6152
6162
  const as = t0 === void 0 ? "button" : t0, fontSize2 = t1 === void 0 ? 1 : t1, padding = t2 === void 0 ? 3 : t2, radius = t3 === void 0 ? 2 : t3, space = t4 === void 0 ? 3 : t4, tone = t5 === void 0 ? "default" : t5, {
6153
6163
  scheme
6154
6164
  } = useRootTheme(), menu = useMenu(), {
@@ -6168,7 +6178,7 @@ const MenuItem = react.forwardRef(function(props, forwardedRef) {
6168
6178
  }, $[29] = disabled, $[30] = onClick, $[31] = onItemClick, $[32] = t9) : t9 = $[32];
6169
6179
  const handleClick = t9;
6170
6180
  let t10, t11;
6171
- $[33] !== padding || $[34] !== paddingX || $[35] !== paddingY || $[36] !== paddingTop || $[37] !== paddingRight || $[38] !== paddingBottom || $[39] !== paddingLeft ? (t11 = {
6181
+ $[33] !== padding || $[34] !== paddingBottom || $[35] !== paddingLeft || $[36] !== paddingRight || $[37] !== paddingTop || $[38] !== paddingX || $[39] !== paddingY ? (t11 = {
6172
6182
  padding,
6173
6183
  paddingX,
6174
6184
  paddingY,
@@ -6176,7 +6186,7 @@ const MenuItem = react.forwardRef(function(props, forwardedRef) {
6176
6186
  paddingRight,
6177
6187
  paddingBottom,
6178
6188
  paddingLeft
6179
- }, $[33] = padding, $[34] = paddingX, $[35] = paddingY, $[36] = paddingTop, $[37] = paddingRight, $[38] = paddingBottom, $[39] = paddingLeft, $[40] = t11) : t11 = $[40], t10 = t11;
6189
+ }, $[33] = padding, $[34] = paddingBottom, $[35] = paddingLeft, $[36] = paddingRight, $[37] = paddingTop, $[38] = paddingX, $[39] = paddingY, $[40] = t11) : t11 = $[40], t10 = t11;
6180
6190
  const paddingProps = t10, t12 = useArrayProp(fontSize2);
6181
6191
  let t13;
6182
6192
  $[41] !== t12 ? (t13 = t12.map(_temp$1), $[41] = t12, $[42] = t13) : t13 = $[42];
@@ -6187,7 +6197,7 @@ const MenuItem = react.forwardRef(function(props, forwardedRef) {
6187
6197
  }, $[43] = t14) : t14 = $[43];
6188
6198
  const setRef = t14, t15 = as === "button" && pressed, t16 = as !== "button" && pressed ? "" : void 0, t17 = active ? "" : void 0, t18 = disabled ? "" : void 0, t19 = useArrayProp(radius), t20 = useArrayProp(0), t21 = disabled ? "default" : tone, t22 = as === "button" ? "button" : void 0;
6189
6199
  let t23;
6190
- $[44] !== IconComponent || $[45] !== text || $[46] !== IconRightComponent || $[47] !== fontSize2 || $[48] !== hotkeys || $[49] !== hotkeysFontSize || $[50] !== space || $[51] !== paddingProps ? (t23 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsxs(Flex, { as: "span", gap: space, align: "center", ...paddingProps, children: [
6200
+ $[44] !== IconComponent || $[45] !== IconRightComponent || $[46] !== fontSize2 || $[47] !== hotkeys || $[48] !== hotkeysFontSize || $[49] !== paddingProps || $[50] !== space || $[51] !== text ? (t23 = (IconComponent || text || IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsxs(Flex, { as: "span", gap: space, align: "center", ...paddingProps, children: [
6191
6201
  IconComponent && /* @__PURE__ */ jsxRuntime.jsxs(Text, { size: fontSize2, children: [
6192
6202
  react.isValidElement(IconComponent) && IconComponent,
6193
6203
  ReactIs.isValidElementType(IconComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconComponent, {})
@@ -6201,14 +6211,14 @@ const MenuItem = react.forwardRef(function(props, forwardedRef) {
6201
6211
  react.isValidElement(IconRightComponent) && IconRightComponent,
6202
6212
  ReactIs.isValidElementType(IconRightComponent) && /* @__PURE__ */ jsxRuntime.jsx(IconRightComponent, {})
6203
6213
  ] })
6204
- ] }), $[44] = IconComponent, $[45] = text, $[46] = IconRightComponent, $[47] = fontSize2, $[48] = hotkeys, $[49] = hotkeysFontSize, $[50] = space, $[51] = paddingProps, $[52] = t23) : t23 = $[52];
6214
+ ] }), $[44] = IconComponent, $[45] = IconRightComponent, $[46] = fontSize2, $[47] = hotkeys, $[48] = hotkeysFontSize, $[49] = paddingProps, $[50] = space, $[51] = text, $[52] = t23) : t23 = $[52];
6205
6215
  let t24;
6206
6216
  $[53] !== children || $[54] !== paddingProps ? (t24 = children && /* @__PURE__ */ jsxRuntime.jsx(Box, { as: "span", ...paddingProps, children }), $[53] = children, $[54] = paddingProps, $[55] = t24) : t24 = $[55];
6207
6217
  let t25;
6208
- return $[56] !== restProps || $[57] !== t15 || $[58] !== t16 || $[59] !== t17 || $[60] !== t18 || $[61] !== as || $[62] !== t19 || $[63] !== t20 || $[64] !== t21 || $[65] !== scheme || $[66] !== disabled || $[67] !== handleClick || $[68] !== onItemMouseEnter || $[69] !== onItemMouseLeave || $[70] !== t22 || $[71] !== t23 || $[72] !== t24 ? (t25 = /* @__PURE__ */ jsxRuntime.jsxs(Selectable, { "data-ui": "MenuItem", ...restProps, "aria-pressed": t15, "data-pressed": t16, "data-selected": t17, "data-disabled": t18, forwardedAs: as, $radius: t19, $padding: t20, $tone: t21, $scheme: scheme, disabled, onClick: handleClick, onMouseEnter: onItemMouseEnter, onMouseLeave: onItemMouseLeave, ref: setRef, role: "menuitem", tabIndex: -1, type: t22, children: [
6218
+ return $[56] !== as || $[57] !== disabled || $[58] !== handleClick || $[59] !== onItemMouseEnter || $[60] !== onItemMouseLeave || $[61] !== restProps || $[62] !== scheme || $[63] !== t15 || $[64] !== t16 || $[65] !== t17 || $[66] !== t18 || $[67] !== t19 || $[68] !== t20 || $[69] !== t21 || $[70] !== t22 || $[71] !== t23 || $[72] !== t24 ? (t25 = /* @__PURE__ */ jsxRuntime.jsxs(Selectable, { "data-ui": "MenuItem", ...restProps, "aria-pressed": t15, "data-pressed": t16, "data-selected": t17, "data-disabled": t18, forwardedAs: as, $radius: t19, $padding: t20, $tone: t21, $scheme: scheme, disabled, onClick: handleClick, onMouseEnter: onItemMouseEnter, onMouseLeave: onItemMouseLeave, ref: setRef, role: "menuitem", tabIndex: -1, type: t22, children: [
6209
6219
  t23,
6210
6220
  t24
6211
- ] }), $[56] = restProps, $[57] = t15, $[58] = t16, $[59] = t17, $[60] = t18, $[61] = as, $[62] = t19, $[63] = t20, $[64] = t21, $[65] = scheme, $[66] = disabled, $[67] = handleClick, $[68] = onItemMouseEnter, $[69] = onItemMouseLeave, $[70] = t22, $[71] = t23, $[72] = t24, $[73] = t25) : t25 = $[73], t25;
6221
+ ] }), $[56] = as, $[57] = disabled, $[58] = handleClick, $[59] = onItemMouseEnter, $[60] = onItemMouseLeave, $[61] = restProps, $[62] = scheme, $[63] = t15, $[64] = t16, $[65] = t17, $[66] = t18, $[67] = t19, $[68] = t20, $[69] = t21, $[70] = t22, $[71] = t23, $[72] = t24, $[73] = t25) : t25 = $[73], t25;
6212
6222
  });
6213
6223
  MenuItem.displayName = "ForwardRef(MenuItem)";
6214
6224
  function _temp$1(s) {
@@ -6256,13 +6266,13 @@ const keyframe = styledComponents.keyframes`
6256
6266
  }
6257
6267
  `, Root$4 = styledComponents.styled(Box)(responsiveRadiusStyle, skeletonStyle), Skeleton = react.forwardRef(function(props, ref) {
6258
6268
  const $ = reactCompilerRuntime.c(14);
6259
- let t0, delay, radius, restProps;
6269
+ let delay, radius, restProps, t0;
6260
6270
  $[0] !== props ? ({
6261
6271
  animated: t0,
6262
6272
  delay,
6263
6273
  radius,
6264
6274
  ...restProps
6265
- } = props, $[0] = props, $[1] = t0, $[2] = delay, $[3] = radius, $[4] = restProps) : (t0 = $[1], delay = $[2], radius = $[3], restProps = $[4]);
6275
+ } = props, $[0] = props, $[1] = delay, $[2] = radius, $[3] = restProps, $[4] = t0) : (delay = $[1], radius = $[2], restProps = $[3], t0 = $[4]);
6266
6276
  const animated = t0 === void 0 ? !1 : t0, [visible, setVisible] = react.useState(!delay);
6267
6277
  let t1, t2;
6268
6278
  $[5] !== delay ? (t1 = () => {
@@ -6277,7 +6287,7 @@ const keyframe = styledComponents.keyframes`
6277
6287
  }, t2 = [delay], $[5] = delay, $[6] = t1, $[7] = t2) : (t1 = $[6], t2 = $[7]), react.useEffect(t1, t2);
6278
6288
  const t3 = useArrayProp(radius);
6279
6289
  let t4;
6280
- return $[8] !== restProps || $[9] !== animated || $[10] !== t3 || $[11] !== visible || $[12] !== ref ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(Root$4, { ...restProps, $animated: animated, $radius: t3, $visible: visible, ref }), $[8] = restProps, $[9] = animated, $[10] = t3, $[11] = visible, $[12] = ref, $[13] = t4) : t4 = $[13], t4;
6290
+ return $[8] !== animated || $[9] !== ref || $[10] !== restProps || $[11] !== t3 || $[12] !== visible ? (t4 = /* @__PURE__ */ jsxRuntime.jsx(Root$4, { ...restProps, $animated: animated, $radius: t3, $visible: visible, ref }), $[8] = animated, $[9] = ref, $[10] = restProps, $[11] = t3, $[12] = visible, $[13] = t4) : t4 = $[13], t4;
6281
6291
  });
6282
6292
  Skeleton.displayName = "ForwardRef(Skeleton)";
6283
6293
  const Root$3 = styledComponents.styled(Skeleton)((props) => {
@@ -6296,57 +6306,57 @@ const Root$3 = styledComponents.styled(Skeleton)((props) => {
6296
6306
  });
6297
6307
  }), TextSkeleton = react.forwardRef(function(props, ref) {
6298
6308
  const $ = reactCompilerRuntime.c(7);
6299
- let t0, restProps;
6309
+ let restProps, t0;
6300
6310
  $[0] !== props ? ({
6301
6311
  size: t0,
6302
6312
  ...restProps
6303
- } = props, $[0] = props, $[1] = t0, $[2] = restProps) : (t0 = $[1], restProps = $[2]);
6313
+ } = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
6304
6314
  const $size = useArrayProp(t0 === void 0 ? 2 : t0);
6305
6315
  let t1;
6306
- return $[3] !== restProps || $[4] !== $size || $[5] !== ref ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(Root$3, { ...restProps, $size, ref, $style: "text" }), $[3] = restProps, $[4] = $size, $[5] = ref, $[6] = t1) : t1 = $[6], t1;
6316
+ return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(Root$3, { ...restProps, $size, ref, $style: "text" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
6307
6317
  });
6308
6318
  TextSkeleton.displayName = "ForwardRef(TextSkeleton)";
6309
6319
  const LabelSkeleton = react.forwardRef(function(props, ref) {
6310
6320
  const $ = reactCompilerRuntime.c(7);
6311
- let t0, restProps;
6321
+ let restProps, t0;
6312
6322
  $[0] !== props ? ({
6313
6323
  size: t0,
6314
6324
  ...restProps
6315
- } = props, $[0] = props, $[1] = t0, $[2] = restProps) : (t0 = $[1], restProps = $[2]);
6325
+ } = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
6316
6326
  const $size = useArrayProp(t0 === void 0 ? 2 : t0);
6317
6327
  let t1;
6318
- return $[3] !== restProps || $[4] !== $size || $[5] !== ref ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(Root$3, { ...restProps, $size, ref, $style: "label" }), $[3] = restProps, $[4] = $size, $[5] = ref, $[6] = t1) : t1 = $[6], t1;
6328
+ return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(Root$3, { ...restProps, $size, ref, $style: "label" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
6319
6329
  });
6320
6330
  LabelSkeleton.displayName = "ForwardRef(LabelSkeleton)";
6321
6331
  const HeadingSkeleton = react.forwardRef(function(props, ref) {
6322
6332
  const $ = reactCompilerRuntime.c(7);
6323
- let t0, restProps;
6333
+ let restProps, t0;
6324
6334
  $[0] !== props ? ({
6325
6335
  size: t0,
6326
6336
  ...restProps
6327
- } = props, $[0] = props, $[1] = t0, $[2] = restProps) : (t0 = $[1], restProps = $[2]);
6337
+ } = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
6328
6338
  const $size = useArrayProp(t0 === void 0 ? 2 : t0);
6329
6339
  let t1;
6330
- return $[3] !== restProps || $[4] !== $size || $[5] !== ref ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(Root$3, { ...restProps, $size, ref, $style: "heading" }), $[3] = restProps, $[4] = $size, $[5] = ref, $[6] = t1) : t1 = $[6], t1;
6340
+ return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(Root$3, { ...restProps, $size, ref, $style: "heading" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
6331
6341
  });
6332
6342
  HeadingSkeleton.displayName = "ForwardRef(HeadingSkeleton)";
6333
6343
  const CodeSkeleton = react.forwardRef(function(props, ref) {
6334
6344
  const $ = reactCompilerRuntime.c(7);
6335
- let t0, restProps;
6345
+ let restProps, t0;
6336
6346
  $[0] !== props ? ({
6337
6347
  size: t0,
6338
6348
  ...restProps
6339
- } = props, $[0] = props, $[1] = t0, $[2] = restProps) : (t0 = $[1], restProps = $[2]);
6349
+ } = props, $[0] = props, $[1] = restProps, $[2] = t0) : (restProps = $[1], t0 = $[2]);
6340
6350
  const $size = useArrayProp(t0 === void 0 ? 2 : t0);
6341
6351
  let t1;
6342
- return $[3] !== restProps || $[4] !== $size || $[5] !== ref ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(Root$3, { ...restProps, $size, ref, $style: "code" }), $[3] = restProps, $[4] = $size, $[5] = ref, $[6] = t1) : t1 = $[6], t1;
6352
+ return $[3] !== $size || $[4] !== ref || $[5] !== restProps ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(Root$3, { ...restProps, $size, ref, $style: "code" }), $[3] = $size, $[4] = ref, $[5] = restProps, $[6] = t1) : t1 = $[6], t1;
6343
6353
  });
6344
6354
  CodeSkeleton.displayName = "ForwardRef(CodeSkeleton)";
6345
6355
  const CustomButton = styledComponents.styled(Button)`
6346
6356
  max-width: 100%;
6347
6357
  `, Tab = react.forwardRef(function(props, forwardedRef) {
6348
6358
  const $ = reactCompilerRuntime.c(30);
6349
- let t0, t1, onFocus, focused, selected, restProps, icon, id, onClick, label;
6359
+ let focused, icon, id, label, onClick, onFocus, restProps, selected, t0, t1;
6350
6360
  $[0] !== props ? ({
6351
6361
  icon,
6352
6362
  id,
@@ -6358,7 +6368,7 @@ const CustomButton = styledComponents.styled(Button)`
6358
6368
  padding: t1,
6359
6369
  selected,
6360
6370
  ...restProps
6361
- } = props, $[0] = props, $[1] = t0, $[2] = t1, $[3] = onFocus, $[4] = focused, $[5] = selected, $[6] = restProps, $[7] = icon, $[8] = id, $[9] = onClick, $[10] = label) : (t0 = $[1], t1 = $[2], onFocus = $[3], focused = $[4], selected = $[5], restProps = $[6], icon = $[7], id = $[8], onClick = $[9], label = $[10]);
6371
+ } = props, $[0] = props, $[1] = focused, $[2] = icon, $[3] = id, $[4] = label, $[5] = onClick, $[6] = onFocus, $[7] = restProps, $[8] = selected, $[9] = t0, $[10] = t1) : (focused = $[1], icon = $[2], id = $[3], label = $[4], onClick = $[5], onFocus = $[6], restProps = $[7], selected = $[8], t0 = $[9], t1 = $[10]);
6362
6372
  const fontSize2 = t0 === void 0 ? 1 : t0, padding = t1 === void 0 ? 2 : t1, ref = react.useRef(null), focusedRef = react.useRef(!1);
6363
6373
  let t2;
6364
6374
  $[11] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[11] = t2) : t2 = $[11], react.useImperativeHandle(forwardedRef, t2);
@@ -6378,7 +6388,7 @@ const CustomButton = styledComponents.styled(Button)`
6378
6388
  }, t6 = [focused], $[15] = focused, $[16] = t5, $[17] = t6) : (t5 = $[16], t6 = $[17]), react.useEffect(t5, t6);
6379
6389
  const t7 = selected ? "true" : "false", t8 = selected ? 0 : -1;
6380
6390
  let t9;
6381
- return $[18] !== restProps || $[19] !== t7 || $[20] !== fontSize2 || $[21] !== icon || $[22] !== id || $[23] !== onClick || $[24] !== handleFocus || $[25] !== padding || $[26] !== selected || $[27] !== t8 || $[28] !== label ? (t9 = /* @__PURE__ */ jsxRuntime.jsx(CustomButton, { "data-ui": "Tab", ...restProps, "aria-selected": t7, fontSize: fontSize2, icon, id, mode: "bleed", onClick, onBlur: handleBlur, onFocus: handleFocus, padding, ref, role: "tab", selected, tabIndex: t8, text: label, type: "button" }), $[18] = restProps, $[19] = t7, $[20] = fontSize2, $[21] = icon, $[22] = id, $[23] = onClick, $[24] = handleFocus, $[25] = padding, $[26] = selected, $[27] = t8, $[28] = label, $[29] = t9) : t9 = $[29], t9;
6391
+ return $[18] !== fontSize2 || $[19] !== handleFocus || $[20] !== icon || $[21] !== id || $[22] !== label || $[23] !== onClick || $[24] !== padding || $[25] !== restProps || $[26] !== selected || $[27] !== t7 || $[28] !== t8 ? (t9 = /* @__PURE__ */ jsxRuntime.jsx(CustomButton, { "data-ui": "Tab", ...restProps, "aria-selected": t7, fontSize: fontSize2, icon, id, mode: "bleed", onClick, onBlur: handleBlur, onFocus: handleFocus, padding, ref, role: "tab", selected, tabIndex: t8, text: label, type: "button" }), $[18] = fontSize2, $[19] = handleFocus, $[20] = icon, $[21] = id, $[22] = label, $[23] = onClick, $[24] = padding, $[25] = restProps, $[26] = selected, $[27] = t7, $[28] = t8, $[29] = t9) : t9 = $[29], t9;
6382
6392
  });
6383
6393
  Tab.displayName = "ForwardRef(Tab)";
6384
6394
  const CustomInline = styledComponents.styled(Inline)`
@@ -6414,19 +6424,19 @@ const CustomInline = styledComponents.styled(Inline)`
6414
6424
  }, $[8] = numTabs, $[9] = t1) : t1 = $[9];
6415
6425
  const handleKeyDown = t1;
6416
6426
  let t2;
6417
- return $[10] !== restProps || $[11] !== handleKeyDown || $[12] !== ref || $[13] !== tabs ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(CustomInline, { "data-ui": "TabList", ...restProps, onKeyDown: handleKeyDown, ref, role: "tablist", children: tabs }), $[10] = restProps, $[11] = handleKeyDown, $[12] = ref, $[13] = tabs, $[14] = t2) : t2 = $[14], t2;
6427
+ return $[10] !== handleKeyDown || $[11] !== ref || $[12] !== restProps || $[13] !== tabs ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(CustomInline, { "data-ui": "TabList", ...restProps, onKeyDown: handleKeyDown, ref, role: "tablist", children: tabs }), $[10] = handleKeyDown, $[11] = ref, $[12] = restProps, $[13] = tabs, $[14] = t2) : t2 = $[14], t2;
6418
6428
  });
6419
6429
  TabList.displayName = "ForwardRef(TabList)";
6420
6430
  const TabPanel = react.forwardRef(function(props, ref) {
6421
6431
  const $ = reactCompilerRuntime.c(9);
6422
- let restProps, flex;
6432
+ let flex, restProps;
6423
6433
  $[0] !== props ? ({
6424
6434
  flex,
6425
6435
  ...restProps
6426
- } = props, $[0] = props, $[1] = restProps, $[2] = flex) : (restProps = $[1], flex = $[2]);
6436
+ } = props, $[0] = props, $[1] = flex, $[2] = restProps) : (flex = $[1], restProps = $[2]);
6427
6437
  const t0 = props.tabIndex === void 0 ? 0 : props.tabIndex;
6428
6438
  let t1;
6429
- return $[3] !== restProps || $[4] !== flex || $[5] !== ref || $[6] !== t0 || $[7] !== props.children ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "TabPanel", ...restProps, flex, ref, role: "tabpanel", tabIndex: t0, children: props.children }), $[3] = restProps, $[4] = flex, $[5] = ref, $[6] = t0, $[7] = props.children, $[8] = t1) : t1 = $[8], t1;
6439
+ return $[3] !== flex || $[4] !== props.children || $[5] !== ref || $[6] !== restProps || $[7] !== t0 ? (t1 = /* @__PURE__ */ jsxRuntime.jsx(Box, { "data-ui": "TabPanel", ...restProps, flex, ref, role: "tabpanel", tabIndex: t0, children: props.children }), $[3] = flex, $[4] = props.children, $[5] = ref, $[6] = restProps, $[7] = t0, $[8] = t1) : t1 = $[8], t1;
6430
6440
  });
6431
6441
  TabPanel.displayName = "ForwardRef(TabPanel)";
6432
6442
  const TextBox = styledComponents.styled(Flex)`
@@ -6491,7 +6501,7 @@ const STATUS_CARD_TONE = {
6491
6501
  }, Root$2 = styledComponents.styled(Card)(rootStyles);
6492
6502
  function Toast(props) {
6493
6503
  const $ = reactCompilerRuntime.c(30);
6494
- let t0, status, title, description, closable, onClose, restProps, duration;
6504
+ let closable, description, duration, onClose, restProps, status, t0, title;
6495
6505
  $[0] !== props ? ({
6496
6506
  closable,
6497
6507
  description,
@@ -6501,7 +6511,7 @@ function Toast(props) {
6501
6511
  title,
6502
6512
  status,
6503
6513
  ...restProps
6504
- } = props, $[0] = props, $[1] = t0, $[2] = status, $[3] = title, $[4] = description, $[5] = closable, $[6] = onClose, $[7] = restProps, $[8] = duration) : (t0 = $[1], status = $[2], title = $[3], description = $[4], closable = $[5], onClose = $[6], restProps = $[7], duration = $[8]);
6514
+ } = props, $[0] = props, $[1] = closable, $[2] = description, $[3] = duration, $[4] = onClose, $[5] = restProps, $[6] = status, $[7] = t0, $[8] = title) : (closable = $[1], description = $[2], duration = $[3], onClose = $[4], restProps = $[5], status = $[6], t0 = $[7], title = $[8]);
6505
6515
  const radius = t0 === void 0 ? 3 : t0, cardTone = status ? STATUS_CARD_TONE[status] : "default", buttonTone = status ? BUTTON_TONE[status] : "default", role = status ? ROLES[status] : "status";
6506
6516
  let t1;
6507
6517
  $[9] !== title ? (t1 = title && /* @__PURE__ */ jsxRuntime.jsx(Text, { size: 1, weight: "medium", children: title }), $[9] = title, $[10] = t1) : t1 = $[10];
@@ -6513,16 +6523,16 @@ function Toast(props) {
6513
6523
  t2
6514
6524
  ] }) }), $[13] = t1, $[14] = t2, $[15] = t3) : t3 = $[15];
6515
6525
  let t4;
6516
- $[16] !== closable || $[17] !== buttonTone || $[18] !== onClose ? (t4 = closable && /* @__PURE__ */ jsxRuntime.jsx(Box, { padding: 1, children: /* @__PURE__ */ jsxRuntime.jsx(Button, { as: "button", icon: icons.CloseIcon, mode: "bleed", padding: 2, tone: buttonTone, onClick: onClose, style: {
6526
+ $[16] !== buttonTone || $[17] !== closable || $[18] !== onClose ? (t4 = closable && /* @__PURE__ */ jsxRuntime.jsx(Box, { padding: 1, children: /* @__PURE__ */ jsxRuntime.jsx(Button, { as: "button", icon: icons.CloseIcon, mode: "bleed", padding: 2, tone: buttonTone, onClick: onClose, style: {
6517
6527
  verticalAlign: "top"
6518
- } }) }), $[16] = closable, $[17] = buttonTone, $[18] = onClose, $[19] = t4) : t4 = $[19];
6528
+ } }) }), $[16] = buttonTone, $[17] = closable, $[18] = onClose, $[19] = t4) : t4 = $[19];
6519
6529
  let t5;
6520
6530
  $[20] !== t3 || $[21] !== t4 ? (t5 = /* @__PURE__ */ jsxRuntime.jsxs(Flex, { align: "flex-start", children: [
6521
6531
  t3,
6522
6532
  t4
6523
6533
  ] }), $[20] = t3, $[21] = t4, $[22] = t5) : t5 = $[22];
6524
6534
  let t6;
6525
- return $[23] !== role || $[24] !== restProps || $[25] !== radius || $[26] !== cardTone || $[27] !== duration || $[28] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Root$2, { "data-ui": "Toast", role, ...restProps, marginTop: 3, radius, shadow: 2, tone: cardTone, $duration: duration, children: t5 }), $[23] = role, $[24] = restProps, $[25] = radius, $[26] = cardTone, $[27] = duration, $[28] = t5, $[29] = t6) : t6 = $[29], t6;
6535
+ return $[23] !== cardTone || $[24] !== duration || $[25] !== radius || $[26] !== restProps || $[27] !== role || $[28] !== t5 ? (t6 = /* @__PURE__ */ jsxRuntime.jsx(Root$2, { "data-ui": "Toast", role, ...restProps, marginTop: 3, radius, shadow: 2, tone: cardTone, $duration: duration, children: t5 }), $[23] = cardTone, $[24] = duration, $[25] = radius, $[26] = restProps, $[27] = role, $[28] = t5, $[29] = t6) : t6 = $[29], t6;
6526
6536
  }
6527
6537
  Toast.displayName = "Toast";
6528
6538
  function useMounted() {
@@ -6639,7 +6649,7 @@ function ToastProvider(props) {
6639
6649
  toastsRef.current = {};
6640
6650
  }, t13 = [], $[10] = t12, $[11] = t13) : (t12 = $[10], t13 = $[11]), react.useEffect(t12, t13);
6641
6651
  let t14;
6642
- $[12] !== mounted || $[13] !== variants || $[14] !== prefersReducedMotion || $[15] !== state || $[16] !== padding || $[17] !== paddingX || $[18] !== paddingY || $[19] !== zOffset ? (t14 = mounted && /* @__PURE__ */ jsxRuntime.jsx(Root$1, { "data-ui": "ToastProvider", zOffset, children: /* @__PURE__ */ jsxRuntime.jsx(ToastContainer, { children: /* @__PURE__ */ jsxRuntime.jsx(Box, { padding, paddingX, paddingY, children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { initial: !1, children: state.map((t152) => {
6652
+ $[12] !== mounted || $[13] !== padding || $[14] !== paddingX || $[15] !== paddingY || $[16] !== prefersReducedMotion || $[17] !== state || $[18] !== variants || $[19] !== zOffset ? (t14 = mounted && /* @__PURE__ */ jsxRuntime.jsx(Root$1, { "data-ui": "ToastProvider", zOffset, children: /* @__PURE__ */ jsxRuntime.jsx(ToastContainer, { children: /* @__PURE__ */ jsxRuntime.jsx(Box, { padding, paddingX, paddingY, children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { initial: !1, children: state.map((t152) => {
6643
6653
  const {
6644
6654
  dismiss: dismiss_0,
6645
6655
  id: id_0,
@@ -6652,7 +6662,7 @@ function ToastProvider(props) {
6652
6662
  damping: 30,
6653
6663
  stiffness: 400
6654
6664
  }, children: /* @__PURE__ */ jsxRuntime.jsx(Toast, { closable: params_0.closable, description: params_0.description, onClose: dismiss_0, status: params_0.status, title: params_0.title, duration: params_0.duration }) }, id_0);
6655
- }) }) }) }) }), $[12] = mounted, $[13] = variants, $[14] = prefersReducedMotion, $[15] = state, $[16] = padding, $[17] = paddingX, $[18] = paddingY, $[19] = zOffset, $[20] = t14) : t14 = $[20];
6665
+ }) }) }) }) }), $[12] = mounted, $[13] = padding, $[14] = paddingX, $[15] = paddingY, $[16] = prefersReducedMotion, $[17] = state, $[18] = variants, $[19] = zOffset, $[20] = t14) : t14 = $[20];
6656
6666
  let t15;
6657
6667
  return $[21] !== children || $[22] !== t14 ? (t15 = /* @__PURE__ */ jsxRuntime.jsxs(ToastContext.Provider, { value, children: [
6658
6668
  children,
@@ -6724,13 +6734,13 @@ function _focusItemElement(el) {
6724
6734
  }
6725
6735
  const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null), Tree = react.memo(react.forwardRef(function(props, forwardedRef) {
6726
6736
  const $ = reactCompilerRuntime.c(37);
6727
- let t0, onFocus, children, restProps;
6737
+ let children, onFocus, restProps, t0;
6728
6738
  $[0] !== props ? ({
6729
6739
  children,
6730
6740
  space: t0,
6731
6741
  onFocus,
6732
6742
  ...restProps
6733
- } = props, $[0] = props, $[1] = t0, $[2] = onFocus, $[3] = children, $[4] = restProps) : (t0 = $[1], onFocus = $[2], children = $[3], restProps = $[4]);
6743
+ } = props, $[0] = props, $[1] = children, $[2] = onFocus, $[3] = restProps, $[4] = t0) : (children = $[1], onFocus = $[2], restProps = $[3], t0 = $[4]);
6734
6744
  const space = t0 === void 0 ? 1 : t0, ref = react.useRef(null), [focusedElement, setFocusedElement] = react.useState(null), focusedElementRef = react.useRef(focusedElement);
6735
6745
  let t1, t2;
6736
6746
  $[5] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[5] = t2) : t2 = $[5], t1 = t2;
@@ -6784,7 +6794,7 @@ const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null),
6784
6794
  let t12;
6785
6795
  const t13 = focusedElement || itemElements[0] || null;
6786
6796
  let t14;
6787
- $[17] !== t13 || $[18] !== space || $[19] !== state ? (t14 = {
6797
+ $[17] !== space || $[18] !== state || $[19] !== t13 ? (t14 = {
6788
6798
  version: 0,
6789
6799
  focusedElement: t13,
6790
6800
  level: 0,
@@ -6794,7 +6804,7 @@ const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null),
6794
6804
  setFocusedElement,
6795
6805
  space,
6796
6806
  state
6797
- }, $[17] = t13, $[18] = space, $[19] = state, $[20] = t14) : t14 = $[20], t12 = t14;
6807
+ }, $[17] = space, $[18] = state, $[19] = t13, $[20] = t14) : t14 = $[20], t12 = t14;
6798
6808
  const contextValue = t12;
6799
6809
  let t15;
6800
6810
  $[21] !== itemElements ? (t15 = (event) => {
@@ -6873,7 +6883,7 @@ const TreeContext = createGlobalScopedContext("@sanity/ui/context/tree", null),
6873
6883
  let t18;
6874
6884
  $[26] !== children ? (t18 = [children], $[26] = children, $[27] = t18) : t18 = $[27], react.useEffect(t17, t18);
6875
6885
  let t19;
6876
- $[28] !== restProps || $[29] !== handleFocus || $[30] !== handleKeyDown || $[31] !== space || $[32] !== children ? (t19 = /* @__PURE__ */ jsxRuntime.jsx(Stack, { as: "ul", "data-ui": "Tree", ...restProps, onFocus: handleFocus, onKeyDown: handleKeyDown, ref, role: "tree", space, children }), $[28] = restProps, $[29] = handleFocus, $[30] = handleKeyDown, $[31] = space, $[32] = children, $[33] = t19) : t19 = $[33];
6886
+ $[28] !== children || $[29] !== handleFocus || $[30] !== handleKeyDown || $[31] !== restProps || $[32] !== space ? (t19 = /* @__PURE__ */ jsxRuntime.jsx(Stack, { as: "ul", "data-ui": "Tree", ...restProps, onFocus: handleFocus, onKeyDown: handleKeyDown, ref, role: "tree", space, children }), $[28] = children, $[29] = handleFocus, $[30] = handleKeyDown, $[31] = restProps, $[32] = space, $[33] = t19) : t19 = $[33];
6877
6887
  let t20;
6878
6888
  return $[34] !== contextValue || $[35] !== t19 ? (t20 = /* @__PURE__ */ jsxRuntime.jsx(TreeContext.Provider, { value: contextValue, children: t19 }), $[34] = contextValue, $[35] = t19, $[36] = t20) : t20 = $[36], t20;
6879
6889
  }));
@@ -6978,15 +6988,15 @@ function useTree() {
6978
6988
  }
6979
6989
  const TreeGroup = react.memo(function(props) {
6980
6990
  const $ = reactCompilerRuntime.c(9);
6981
- let t0, restProps, children;
6991
+ let children, restProps, t0;
6982
6992
  $[0] !== props ? ({
6983
6993
  children,
6984
6994
  expanded: t0,
6985
6995
  ...restProps
6986
- } = props, $[0] = props, $[1] = t0, $[2] = restProps, $[3] = children) : (t0 = $[1], restProps = $[2], children = $[3]);
6996
+ } = props, $[0] = props, $[1] = children, $[2] = restProps, $[3] = t0) : (children = $[1], restProps = $[2], t0 = $[3]);
6987
6997
  const expanded = t0 === void 0 ? !1 : t0, tree = useTree(), t1 = !expanded;
6988
6998
  let t2;
6989
- return $[4] !== restProps || $[5] !== t1 || $[6] !== tree.space || $[7] !== children ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(Stack, { as: "ul", "data-ui": "TreeGroup", ...restProps, hidden: t1, marginTop: tree.space, role: "group", space: tree.space, children }), $[4] = restProps, $[5] = t1, $[6] = tree.space, $[7] = children, $[8] = t2) : t2 = $[8], t2;
6999
+ return $[4] !== children || $[5] !== restProps || $[6] !== t1 || $[7] !== tree.space ? (t2 = /* @__PURE__ */ jsxRuntime.jsx(Stack, { as: "ul", "data-ui": "TreeGroup", ...restProps, hidden: t1, marginTop: tree.space, role: "group", space: tree.space, children }), $[4] = children, $[5] = restProps, $[6] = t1, $[7] = tree.space, $[8] = t2) : t2 = $[8], t2;
6990
7000
  }), Root = react.memo(styledComponents.styled.li(treeItemRootStyle, treeItemRootColorStyle)), TreeItemBox = styledComponents.styled(Box).attrs({
6991
7001
  forwardedAs: "a"
6992
7002
  })(treeItemBoxStyle), ToggleArrowText = styledComponents.styled(Text)`