@marimo-team/islands 0.23.1-dev9 → 0.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/{ConnectedDataExplorerComponent-tho8l5GC.js → ConnectedDataExplorerComponent-P92i6wYx.js} +148 -148
  2. package/dist/{ImageComparisonComponent-DY3J_vIU.js → ImageComparisonComponent-HF4AY8_n.js} +2 -2
  3. package/dist/{Plot-BxlSHo0G.js → Plot-CK0oVgQL.js} +2 -2
  4. package/dist/{any-language-editor-Caoda-MR.js → any-language-editor-BCvLfvzI.js} +7 -7
  5. package/dist/{button-Cn59RsBF.js → button-D1C3g5GI.js} +72 -71
  6. package/dist/{capabilities-Bml77Di-.js → capabilities-BwpUgo4S.js} +1 -1
  7. package/dist/{chat-ui-Bs4egzxg.js → chat-ui-CNHw9Osh.js} +2829 -2829
  8. package/dist/{check-C51PA02v.js → check-BgrdTLuv.js} +1 -1
  9. package/dist/{chunk-5FQGJX7Z-C428iZBW.js → chunk-5FQGJX7Z-VIref9gx.js} +4 -4
  10. package/dist/{click-outside-container-vCXhHl-R.js → click-outside-container-D3t6KDni.js} +1 -1
  11. package/dist/{code-block-37QAKDTI-D9EnJeBI.js → code-block-37QAKDTI-FQEoMOU1.js} +2 -2
  12. package/dist/{compiler-runtime-B_OLMU9S.js → compiler-runtime-CEbnTgxf.js} +1 -1
  13. package/dist/{copy-DzOz_Au7.js → copy-Bp6CK_Fg.js} +9 -9
  14. package/dist/{data-grid-overlay-editor-lKF301ME.js → data-grid-overlay-editor-C_sKPpLu.js} +4 -4
  15. package/dist/{dist-CjLQ79mo.js → dist-CTtLBPLZ.js} +11 -11
  16. package/dist/{dist-BoNJsA65.js → dist-DUFd1bhm.js} +1 -1
  17. package/dist/{error-banner-BQcJXy6k.js → error-banner-B_ioHva3.js} +121 -121
  18. package/dist/{esm-hRljRgfG.js → esm-CDHI9cuO.js} +15 -15
  19. package/dist/{glide-data-editor-D2X4D_xi.js → glide-data-editor-BFqEJGJW.js} +948 -948
  20. package/dist/{input-BRN2Mjzx.js → input-CSVEkmaZ.js} +288 -288
  21. package/dist/{label-J1N4mVcg.js → label-BebYlsDV.js} +257 -257
  22. package/dist/{loader-JmfPBSx5.js → loader-ZFbGsMN1.js} +15 -15
  23. package/dist/main.js +7178 -7046
  24. package/dist/mermaid-4DMBBIKO-BjtqcdX4.js +6 -0
  25. package/dist/{mermaid-UMKVHs_g.js → mermaid-BbhZNQeB.js} +18 -18
  26. package/dist/{number-overlay-editor-DxLoVuuE.js → number-overlay-editor-B02-t7Ar.js} +2 -2
  27. package/dist/{process-output-BK6F4vqt.js → process-output-Bekznt_B.js} +865 -864
  28. package/dist/{react-dom-BSUuJjCR.js → react-dom-D5FDLRUB.js} +1 -1
  29. package/dist/{react-vega-DayQmZjG.js → react-vega-BkjdpVsR.js} +2 -2
  30. package/dist/{react-vega-CzRAIHrv.js → react-vega-DBwal82H.js} +1 -1
  31. package/dist/{slides-component-_3tukGh-.js → slides-component-DLxprlqo.js} +26 -26
  32. package/dist/{spec-rP6otrXw.js → spec-3EPbPQZH.js} +4 -4
  33. package/dist/style.css +1 -1
  34. package/dist/{toDate-CfGr2xZ1.js → toDate-B1AzlBoW.js} +15 -15
  35. package/dist/{tooltip-CygUI9oH.js → tooltip-DwNnFsxZ.js} +132 -133
  36. package/dist/{types-D4CFUmPq.js → types-pwjdK009.js} +15 -15
  37. package/dist/{useAsyncData-BzS3Ai32.js → useAsyncData-BL98MPIy.js} +3 -3
  38. package/dist/{useDeepCompareMemoize-AjORjhpL.js → useDeepCompareMemoize-CsyOnnjc.js} +25 -25
  39. package/dist/{useIframeCapabilities---aRgGdv.js → useIframeCapabilities-CsTUYYj7.js} +3 -3
  40. package/dist/{useLifecycle-B90lJH4p.js → useLifecycle-DrGGIsgp.js} +36 -36
  41. package/dist/{useTheme-ytmywQ5O.js → useTheme-CzwDokKe.js} +4 -4
  42. package/dist/{vega-component-1icm1Ykb.js → vega-component-KBJXEDZz.js} +42 -42
  43. package/dist/{zod-D4UoCYGu.js → zod-W5ZEjzaE.js} +23 -23
  44. package/package.json +4 -4
  45. package/src/core/islands/__tests__/bridge.test.ts +2 -12
  46. package/src/core/islands/__tests__/islands-harness.test.ts +348 -0
  47. package/src/core/islands/__tests__/parse.test.ts +466 -24
  48. package/src/core/islands/__tests__/test-utils.tsx +263 -0
  49. package/src/core/islands/bootstrap.ts +265 -0
  50. package/src/core/islands/bridge.ts +154 -75
  51. package/src/core/islands/components/IslandControls.tsx +103 -0
  52. package/src/core/islands/components/__tests__/IslandControls.test.tsx +185 -0
  53. package/src/core/islands/components/__tests__/useIslandControls.test.ts +208 -0
  54. package/src/core/islands/components/output-wrapper.tsx +76 -93
  55. package/src/core/islands/components/useIslandControls.ts +60 -0
  56. package/src/core/islands/components/web-components.tsx +168 -40
  57. package/src/core/islands/constants.ts +28 -0
  58. package/src/core/islands/main.ts +7 -205
  59. package/src/core/islands/parse.ts +73 -26
  60. package/src/core/islands/worker-factory.ts +86 -0
  61. package/src/plugins/core/RenderHTML.tsx +9 -0
  62. package/src/plugins/core/__test__/RenderHTML.test.ts +27 -0
  63. package/src/plugins/core/__test__/trusted-url.test.ts +48 -0
  64. package/src/plugins/core/registerReactComponent.tsx +11 -8
  65. package/src/plugins/core/trusted-url.ts +20 -0
  66. package/src/plugins/impl/ButtonPlugin.tsx +4 -6
  67. package/src/plugins/impl/CodeEditorPlugin.tsx +15 -18
  68. package/src/plugins/impl/DataEditorPlugin.tsx +8 -14
  69. package/src/plugins/impl/DataTablePlugin.tsx +8 -9
  70. package/src/plugins/impl/FileUploadPlugin.tsx +39 -43
  71. package/src/plugins/impl/FormPlugin.tsx +2 -6
  72. package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +27 -1
  73. package/src/plugins/impl/anywidget/widget-binding.ts +13 -0
  74. package/src/plugins/impl/chat/ChatPlugin.tsx +17 -20
  75. package/src/plugins/impl/data-explorer/DataExplorerPlugin.tsx +5 -8
  76. package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +21 -0
  77. package/src/plugins/impl/mpl-interactive/__tests__/MplInteractivePlugin.test.tsx +119 -0
  78. package/src/plugins/impl/panel/PanelPlugin.tsx +31 -10
  79. package/src/plugins/impl/panel/__tests__/PanelPlugin.test.ts +60 -0
  80. package/src/plugins/impl/vega/VegaPlugin.tsx +5 -8
  81. package/src/plugins/layout/NavigationMenuPlugin.tsx +2 -6
  82. package/dist/mermaid-4DMBBIKO-Cw46o6DN.js +0 -6
  83. /package/dist/{clsx-yW_RAw0K.js → clsx-CwTY0BxM.js} +0 -0
  84. /package/dist/{react-Bs6Z0kvn.js → react-DA-nE2FX.js} +0 -0
@@ -1,12 +1,12 @@
1
1
  import { s as __toESM } from "./chunk-BNovOVIE.js";
2
- import { t as require_react } from "./react-Bs6Z0kvn.js";
3
- import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
4
- import { a as createPopperScope, c as VISUALLY_HIDDEN_STYLES, i as Root2$1, n as Arrow, r as Content, t as Anchor, u as createLucideIcon } from "./dist-CjLQ79mo.js";
5
- import { t as Check } from "./check-C51PA02v.js";
6
- import { d as createSlot, g as Logger, h as Events, m as useComposedRefs, r as cva, y as cn } from "./button-Cn59RsBF.js";
7
- import { t as require_react_dom } from "./react-dom-BSUuJjCR.js";
2
+ import { _ as Logger, d as createSlot, g as cn, h as Events, m as useComposedRefs, r as cva } from "./button-D1C3g5GI.js";
3
+ import { t as require_react } from "./react-DA-nE2FX.js";
4
+ import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
5
+ import { a as createPopperScope, c as VISUALLY_HIDDEN_STYLES, i as Root2$1, n as Arrow, r as Content, t as Anchor, u as createLucideIcon } from "./dist-CTtLBPLZ.js";
6
+ import { t as Check } from "./check-BgrdTLuv.js";
7
+ import { t as require_react_dom } from "./react-dom-D5FDLRUB.js";
8
8
  import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
9
- import { $ as StyleNamespace, X as withFullScreenAsRoot, Z as withSmartCollisionBoundary, _t as Primitive, at as FocusScope, et as hideOthers, ft as useControllableState, gt as createContextScope, it as Portal, lt as useCallbackRef, mt as composeEventHandlers, pt as useLayoutEffect2, rt as useFocusGuards, st as DismissableLayer, tt as Combination_default, ut as useId } from "./zod-D4UoCYGu.js";
9
+ import { $ as StyleNamespace, X as withFullScreenAsRoot, Z as withSmartCollisionBoundary, _t as Primitive, at as FocusScope, et as hideOthers, ft as useControllableState, gt as createContextScope, it as Portal, lt as useCallbackRef, mt as composeEventHandlers, pt as useLayoutEffect2, rt as useFocusGuards, st as DismissableLayer, tt as Combination_default, ut as useId } from "./zod-W5ZEjzaE.js";
10
10
  import { t as invariant } from "./invariant-e8eBgdux.js";
11
11
  var ChevronDown = createLucideIcon("chevron-down", [["path", {
12
12
  d: "m6 9 6 6 6-6",
@@ -22,56 +22,56 @@ var ChevronDown = createLucideIcon("chevron-down", [["path", {
22
22
  key: "d8bk6v"
23
23
  }]]), import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
24
24
  function createCollection(e) {
25
- let i = e + "CollectionProvider", [a, o] = createContextScope(i), [s, c] = a(i, {
25
+ let i = e + "CollectionProvider", [o, s] = createContextScope(i), [l, u] = o(i, {
26
26
  collectionRef: { current: null },
27
27
  itemMap: /* @__PURE__ */ new Map()
28
- }), l = (e2) => {
29
- let { scope: i2, children: a2 } = e2, o2 = import_react.useRef(null), c2 = import_react.useRef(/* @__PURE__ */ new Map()).current;
30
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(s, {
28
+ }), d = (e2) => {
29
+ let { scope: i2, children: a } = e2, o2 = import_react.useRef(null), s2 = import_react.useRef(/* @__PURE__ */ new Map()).current;
30
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(l, {
31
31
  scope: i2,
32
- itemMap: c2,
32
+ itemMap: s2,
33
33
  collectionRef: o2,
34
- children: a2
34
+ children: a
35
35
  });
36
36
  };
37
- l.displayName = i;
38
- let u = e + "CollectionSlot", d = createSlot(u), f = import_react.forwardRef((e2, i2) => {
39
- let { scope: a2, children: o2 } = e2;
40
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(d, {
41
- ref: useComposedRefs(i2, c(u, a2).collectionRef),
37
+ d.displayName = i;
38
+ let f = e + "CollectionSlot", p = createSlot(f), m = import_react.forwardRef((e2, i2) => {
39
+ let { scope: a, children: o2 } = e2;
40
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, {
41
+ ref: useComposedRefs(i2, u(f, a).collectionRef),
42
42
  children: o2
43
43
  });
44
44
  });
45
- f.displayName = u;
46
- let p = e + "CollectionItemSlot", h = "data-radix-collection-item", g = createSlot(p), v = import_react.forwardRef((e2, i2) => {
47
- let { scope: a2, children: o2, ...s2 } = e2, l2 = import_react.useRef(null), u2 = useComposedRefs(i2, l2), d2 = c(p, a2);
48
- return import_react.useEffect(() => (d2.itemMap.set(l2, {
45
+ m.displayName = f;
46
+ let h = e + "CollectionItemSlot", g = "data-radix-collection-item", _ = createSlot(h), v = import_react.forwardRef((e2, i2) => {
47
+ let { scope: a, children: o2, ...s2 } = e2, l2 = import_react.useRef(null), d2 = useComposedRefs(i2, l2), f2 = u(h, a);
48
+ return import_react.useEffect(() => (f2.itemMap.set(l2, {
49
49
  ref: l2,
50
50
  ...s2
51
- }), () => void d2.itemMap.delete(l2))), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(g, {
52
- [h]: "",
53
- ref: u2,
51
+ }), () => void f2.itemMap.delete(l2))), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(_, {
52
+ [g]: "",
53
+ ref: d2,
54
54
  children: o2
55
55
  });
56
56
  });
57
- v.displayName = p;
57
+ v.displayName = h;
58
58
  function y(i2) {
59
- let a2 = c(e + "CollectionConsumer", i2);
59
+ let a = u(e + "CollectionConsumer", i2);
60
60
  return import_react.useCallback(() => {
61
- let e2 = a2.collectionRef.current;
61
+ let e2 = a.collectionRef.current;
62
62
  if (!e2) return [];
63
- let i3 = Array.from(e2.querySelectorAll(`[${h}]`));
64
- return Array.from(a2.itemMap.values()).sort((e3, a3) => i3.indexOf(e3.ref.current) - i3.indexOf(a3.ref.current));
65
- }, [a2.collectionRef, a2.itemMap]);
63
+ let i3 = Array.from(e2.querySelectorAll(`[${g}]`));
64
+ return Array.from(a.itemMap.values()).sort((e3, a2) => i3.indexOf(e3.ref.current) - i3.indexOf(a2.ref.current));
65
+ }, [a.collectionRef, a.itemMap]);
66
66
  }
67
67
  return [
68
68
  {
69
- Provider: l,
70
- Slot: f,
69
+ Provider: d,
70
+ Slot: m,
71
71
  ItemSlot: v
72
72
  },
73
73
  y,
74
- o
74
+ s
75
75
  ];
76
76
  }
77
77
  var DirectionContext = import_react.createContext(void 0);
@@ -105,15 +105,15 @@ var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1), OPEN_KEY
105
105
  "ArrowUp",
106
106
  "ArrowDown"
107
107
  ], SELECTION_KEYS = [" ", "Enter"], SELECT_NAME = "Select", [Collection, useCollection, createCollectionScope] = createCollection(SELECT_NAME), [createSelectContext, createSelectScope] = createContextScope(SELECT_NAME, [createCollectionScope, createPopperScope]), usePopperScope = createPopperScope(), [SelectProvider, useSelectContext] = createSelectContext(SELECT_NAME), [SelectNativeOptionsProvider, useSelectNativeOptionsContext] = createSelectContext(SELECT_NAME), Select$1 = (e) => {
108
- let { __scopeSelect: i, children: a, open: o, defaultOpen: s, onOpenChange: l, value: u, defaultValue: d, onValueChange: f, dir: p, name: m, autoComplete: h, disabled: g, required: _, form: v } = e, y = usePopperScope(i), [b, x] = import_react.useState(null), [S, C] = import_react.useState(null), [w, T] = import_react.useState(false), E = useDirection(p), [D, k] = useControllableState({
108
+ let { __scopeSelect: i, children: a, open: o, defaultOpen: s, onOpenChange: c, value: l, defaultValue: u, onValueChange: d, dir: f, name: p, autoComplete: h, disabled: g, required: _, form: v } = e, y = usePopperScope(i), [b, x] = import_react.useState(null), [S, C] = import_react.useState(null), [w, T] = import_react.useState(false), E = useDirection(f), [D, k] = useControllableState({
109
109
  prop: o,
110
110
  defaultProp: s ?? false,
111
- onChange: l,
111
+ onChange: c,
112
112
  caller: SELECT_NAME
113
113
  }), [A, j] = useControllableState({
114
- prop: u,
115
- defaultProp: d,
116
- onChange: f,
114
+ prop: l,
115
+ defaultProp: u,
116
+ onChange: d,
117
117
  caller: SELECT_NAME
118
118
  }), M = import_react.useRef(null), N = b ? v || !!b.closest("form") : true, [P, F] = import_react.useState(/* @__PURE__ */ new Set()), I = Array.from(P).map((e2) => e2.props.value).join(";");
119
119
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root2$1, {
@@ -154,7 +154,7 @@ var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1), OPEN_KEY
154
154
  "aria-hidden": true,
155
155
  required: _,
156
156
  tabIndex: -1,
157
- name: m,
157
+ name: p,
158
158
  autoComplete: h,
159
159
  value: A,
160
160
  onChange: (e2) => j(e2.target.value),
@@ -167,30 +167,30 @@ var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1), OPEN_KEY
167
167
  };
168
168
  Select$1.displayName = SELECT_NAME;
169
169
  var TRIGGER_NAME = "SelectTrigger", SelectTrigger$1 = import_react.forwardRef((e, i) => {
170
- let { __scopeSelect: a, disabled: o = false, ...s } = e, c = usePopperScope(a), l = useSelectContext(TRIGGER_NAME, a), u = l.disabled || o, f = useComposedRefs(i, l.onTriggerChange), p = useCollection(a), m = import_react.useRef("touch"), [h, g, v] = useTypeaheadSearch((e2) => {
171
- let i2 = p().filter((e3) => !e3.disabled), a2 = findNextItem(i2, e2, i2.find((e3) => e3.value === l.value));
172
- a2 !== void 0 && l.onValueChange(a2.value);
170
+ let { __scopeSelect: a, disabled: o = false, ...s } = e, l = usePopperScope(a), u = useSelectContext(TRIGGER_NAME, a), d = u.disabled || o, f = useComposedRefs(i, u.onTriggerChange), p = useCollection(a), m = import_react.useRef("touch"), [h, g, v] = useTypeaheadSearch((e2) => {
171
+ let i2 = p().filter((e3) => !e3.disabled), a2 = findNextItem(i2, e2, i2.find((e3) => e3.value === u.value));
172
+ a2 !== void 0 && u.onValueChange(a2.value);
173
173
  }), y = (e2) => {
174
- u || (l.onOpenChange(true), v()), e2 && (l.triggerPointerDownPosRef.current = {
174
+ d || (u.onOpenChange(true), v()), e2 && (u.triggerPointerDownPosRef.current = {
175
175
  x: Math.round(e2.pageX),
176
176
  y: Math.round(e2.pageY)
177
177
  });
178
178
  };
179
179
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Anchor, {
180
180
  asChild: true,
181
- ...c,
181
+ ...l,
182
182
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.button, {
183
183
  type: "button",
184
184
  role: "combobox",
185
- "aria-controls": l.contentId,
186
- "aria-expanded": l.open,
187
- "aria-required": l.required,
185
+ "aria-controls": u.contentId,
186
+ "aria-expanded": u.open,
187
+ "aria-required": u.required,
188
188
  "aria-autocomplete": "none",
189
- dir: l.dir,
190
- "data-state": l.open ? "open" : "closed",
191
- disabled: u,
192
- "data-disabled": u ? "" : void 0,
193
- "data-placeholder": shouldShowPlaceholder(l.value) ? "" : void 0,
189
+ dir: u.dir,
190
+ "data-state": u.open ? "open" : "closed",
191
+ disabled: d,
192
+ "data-disabled": d ? "" : void 0,
193
+ "data-placeholder": shouldShowPlaceholder(u.value) ? "" : void 0,
194
194
  ...s,
195
195
  ref: f,
196
196
  onClick: composeEventHandlers(s.onClick, (e2) => {
@@ -210,14 +210,14 @@ var TRIGGER_NAME = "SelectTrigger", SelectTrigger$1 = import_react.forwardRef((e
210
210
  });
211
211
  SelectTrigger$1.displayName = TRIGGER_NAME;
212
212
  var VALUE_NAME = "SelectValue", SelectValue$1 = import_react.forwardRef((e, i) => {
213
- let { __scopeSelect: a, className: o, style: s, children: c, placeholder: l = "", ...u } = e, d = useSelectContext(VALUE_NAME, a), { onValueNodeHasChildrenChange: f } = d, p = c !== void 0, m = useComposedRefs(i, d.onValueNodeChange);
213
+ let { __scopeSelect: a, className: o, style: s, children: l, placeholder: u = "", ...d } = e, f = useSelectContext(VALUE_NAME, a), { onValueNodeHasChildrenChange: p } = f, m = l !== void 0, h = useComposedRefs(i, f.onValueNodeChange);
214
214
  return useLayoutEffect2(() => {
215
- f(p);
216
- }, [f, p]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.span, {
217
- ...u,
218
- ref: m,
215
+ p(m);
216
+ }, [p, m]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.span, {
217
+ ...d,
218
+ ref: h,
219
219
  style: { pointerEvents: "none" },
220
- children: shouldShowPlaceholder(d.value) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: l }) : c
220
+ children: shouldShowPlaceholder(f.value) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: u }) : l
221
221
  });
222
222
  });
223
223
  SelectValue$1.displayName = VALUE_NAME;
@@ -257,7 +257,7 @@ var CONTENT_NAME = "SelectContent", SelectContent$1 = import_react.forwardRef((e
257
257
  });
258
258
  SelectContent$1.displayName = CONTENT_NAME;
259
259
  var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME), CONTENT_IMPL_NAME = "SelectContentImpl", Slot = createSlot("SelectContent.RemoveScroll"), SelectContentImpl = import_react.forwardRef((e, i) => {
260
- let { __scopeSelect: a, position: o = "item-aligned", onCloseAutoFocus: s, onEscapeKeyDown: c, onPointerDownOutside: l, side: u, sideOffset: d, align: f, alignOffset: p, arrowPadding: m, collisionBoundary: h, collisionPadding: g, sticky: v, hideWhenDetached: y, avoidCollisions: b, ...x } = e, S = useSelectContext(CONTENT_NAME, a), [C, w] = import_react.useState(null), [T, O] = import_react.useState(null), k = useComposedRefs(i, (e2) => w(e2)), [A, j] = import_react.useState(null), [N, L] = import_react.useState(null), R = useCollection(a), [z, B] = import_react.useState(false), V = import_react.useRef(false);
260
+ let { __scopeSelect: a, position: o = "item-aligned", onCloseAutoFocus: s, onEscapeKeyDown: l, onPointerDownOutside: u, side: d, sideOffset: f, align: p, alignOffset: m, arrowPadding: h, collisionBoundary: g, collisionPadding: _, sticky: v, hideWhenDetached: y, avoidCollisions: b, ...x } = e, S = useSelectContext(CONTENT_NAME, a), [C, w] = import_react.useState(null), [T, O] = import_react.useState(null), k = useComposedRefs(i, (e2) => w(e2)), [A, j] = import_react.useState(null), [N, L] = import_react.useState(null), R = useCollection(a), [z, B] = import_react.useState(false), V = import_react.useRef(false);
261
261
  import_react.useEffect(() => {
262
262
  if (C) return hideOthers(C);
263
263
  }, [C]), useFocusGuards();
@@ -314,13 +314,13 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
314
314
  let o2 = !V.current && !a2;
315
315
  (S.value !== void 0 && S.value === i2 || o2) && L(e2);
316
316
  }, [S.value]), Q = o === "popper" ? SelectPopperPosition : SelectItemAlignedPosition, $ = Q === SelectPopperPosition ? {
317
- side: u,
318
- sideOffset: d,
319
- align: f,
320
- alignOffset: p,
321
- arrowPadding: m,
322
- collisionBoundary: h,
323
- collisionPadding: g,
317
+ side: d,
318
+ sideOffset: f,
319
+ align: p,
320
+ alignOffset: m,
321
+ arrowPadding: h,
322
+ collisionBoundary: g,
323
+ collisionPadding: _,
324
324
  sticky: v,
325
325
  hideWhenDetached: y,
326
326
  avoidCollisions: b
@@ -355,8 +355,8 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
355
355
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DismissableLayer, {
356
356
  asChild: true,
357
357
  disableOutsidePointerEvents: true,
358
- onEscapeKeyDown: c,
359
- onPointerDownOutside: l,
358
+ onEscapeKeyDown: l,
359
+ onPointerDownOutside: u,
360
360
  onFocusOutside: (e2) => e2.preventDefault(),
361
361
  onDismiss: () => S.onOpenChange(false),
362
362
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Q, {
@@ -399,55 +399,55 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
399
399
  });
400
400
  SelectContentImpl.displayName = CONTENT_IMPL_NAME;
401
401
  var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedPosition = import_react.forwardRef((e, i) => {
402
- let { __scopeSelect: a, onPlaced: o, ...s } = e, c = useSelectContext(CONTENT_NAME, a), l = useSelectContentContext(CONTENT_NAME, a), [u, d] = import_react.useState(null), [f, p] = import_react.useState(null), m = useComposedRefs(i, (e2) => p(e2)), h = useCollection(a), g = import_react.useRef(false), v = import_react.useRef(true), { viewport: y, selectedItem: b, selectedItemText: x, focusSelectedItem: S } = l, C = import_react.useCallback(() => {
403
- if (c.trigger && c.valueNode && u && f && y && b && x) {
404
- let e2 = c.trigger.getBoundingClientRect(), i2 = f.getBoundingClientRect(), a2 = c.valueNode.getBoundingClientRect(), s2 = x.getBoundingClientRect();
405
- if (c.dir !== "rtl") {
406
- let o2 = s2.left - i2.left, c2 = a2.left - o2, l3 = e2.left - c2, d3 = e2.width + l3, f2 = Math.max(d3, i2.width), p3 = window.innerWidth - CONTENT_MARGIN, m3 = clamp(c2, [CONTENT_MARGIN, Math.max(CONTENT_MARGIN, p3 - f2)]);
407
- u.style.minWidth = d3 + "px", u.style.left = m3 + "px";
402
+ let { __scopeSelect: a, onPlaced: o, ...s } = e, l = useSelectContext(CONTENT_NAME, a), u = useSelectContentContext(CONTENT_NAME, a), [d, f] = import_react.useState(null), [p, m] = import_react.useState(null), h = useComposedRefs(i, (e2) => m(e2)), g = useCollection(a), _ = import_react.useRef(false), v = import_react.useRef(true), { viewport: y, selectedItem: b, selectedItemText: x, focusSelectedItem: S } = u, C = import_react.useCallback(() => {
403
+ if (l.trigger && l.valueNode && d && p && y && b && x) {
404
+ let e2 = l.trigger.getBoundingClientRect(), i2 = p.getBoundingClientRect(), a2 = l.valueNode.getBoundingClientRect(), s2 = x.getBoundingClientRect();
405
+ if (l.dir !== "rtl") {
406
+ let o2 = s2.left - i2.left, c2 = a2.left - o2, l2 = e2.left - c2, u3 = e2.width + l2, f3 = Math.max(u3, i2.width), p2 = window.innerWidth - CONTENT_MARGIN, m3 = clamp(c2, [CONTENT_MARGIN, Math.max(CONTENT_MARGIN, p2 - f3)]);
407
+ d.style.minWidth = u3 + "px", d.style.left = m3 + "px";
408
408
  } else {
409
- let o2 = i2.right - s2.right, c2 = window.innerWidth - a2.right - o2, l3 = window.innerWidth - e2.right - c2, d3 = e2.width + l3, f2 = Math.max(d3, i2.width), p3 = window.innerWidth - CONTENT_MARGIN, m3 = clamp(c2, [CONTENT_MARGIN, Math.max(CONTENT_MARGIN, p3 - f2)]);
410
- u.style.minWidth = d3 + "px", u.style.right = m3 + "px";
409
+ let o2 = i2.right - s2.right, c2 = window.innerWidth - a2.right - o2, l2 = window.innerWidth - e2.right - c2, u3 = e2.width + l2, f3 = Math.max(u3, i2.width), p2 = window.innerWidth - CONTENT_MARGIN, m3 = clamp(c2, [CONTENT_MARGIN, Math.max(CONTENT_MARGIN, p2 - f3)]);
410
+ d.style.minWidth = u3 + "px", d.style.right = m3 + "px";
411
411
  }
412
- let l2 = h(), d2 = window.innerHeight - CONTENT_MARGIN * 2, p2 = y.scrollHeight, m2 = window.getComputedStyle(f), _ = parseInt(m2.borderTopWidth, 10), v2 = parseInt(m2.paddingTop, 10), S2 = parseInt(m2.borderBottomWidth, 10), C2 = parseInt(m2.paddingBottom, 10), w2 = _ + v2 + p2 + C2 + S2, T = Math.min(b.offsetHeight * 5, w2), E2 = window.getComputedStyle(y), D = parseInt(E2.paddingTop, 10), O = parseInt(E2.paddingBottom, 10), k = e2.top + e2.height / 2 - CONTENT_MARGIN, A = d2 - k, j = b.offsetHeight / 2, M = b.offsetTop + j, N = _ + v2 + M, P = w2 - N;
412
+ let c = g(), u2 = window.innerHeight - CONTENT_MARGIN * 2, f2 = y.scrollHeight, m2 = window.getComputedStyle(p), h2 = parseInt(m2.borderTopWidth, 10), v2 = parseInt(m2.paddingTop, 10), S2 = parseInt(m2.borderBottomWidth, 10), C2 = parseInt(m2.paddingBottom, 10), w2 = h2 + v2 + f2 + C2 + S2, T = Math.min(b.offsetHeight * 5, w2), E2 = window.getComputedStyle(y), D = parseInt(E2.paddingTop, 10), O = parseInt(E2.paddingBottom, 10), k = e2.top + e2.height / 2 - CONTENT_MARGIN, A = u2 - k, j = b.offsetHeight / 2, M = b.offsetTop + j, N = h2 + v2 + M, P = w2 - N;
413
413
  if (N <= k) {
414
- let e3 = l2.length > 0 && b === l2[l2.length - 1].ref.current;
415
- u.style.bottom = "0px";
416
- let i3 = f.clientHeight - y.offsetTop - y.offsetHeight, a3 = N + Math.max(A, j + (e3 ? O : 0) + i3 + S2);
417
- u.style.height = a3 + "px";
414
+ let e3 = c.length > 0 && b === c[c.length - 1].ref.current;
415
+ d.style.bottom = "0px";
416
+ let i3 = p.clientHeight - y.offsetTop - y.offsetHeight, a3 = N + Math.max(A, j + (e3 ? O : 0) + i3 + S2);
417
+ d.style.height = a3 + "px";
418
418
  } else {
419
- let e3 = l2.length > 0 && b === l2[0].ref.current;
420
- u.style.top = "0px";
421
- let i3 = Math.max(k, _ + y.offsetTop + (e3 ? D : 0) + j) + P;
422
- u.style.height = i3 + "px", y.scrollTop = N - k + y.offsetTop;
419
+ let e3 = c.length > 0 && b === c[0].ref.current;
420
+ d.style.top = "0px";
421
+ let i3 = Math.max(k, h2 + y.offsetTop + (e3 ? D : 0) + j) + P;
422
+ d.style.height = i3 + "px", y.scrollTop = N - k + y.offsetTop;
423
423
  }
424
- u.style.margin = `${CONTENT_MARGIN}px 0`, u.style.minHeight = T + "px", u.style.maxHeight = d2 + "px", o == null ? void 0 : o(), requestAnimationFrame(() => g.current = true);
424
+ d.style.margin = `${CONTENT_MARGIN}px 0`, d.style.minHeight = T + "px", d.style.maxHeight = u2 + "px", o == null ? void 0 : o(), requestAnimationFrame(() => _.current = true);
425
425
  }
426
426
  }, [
427
- h,
428
- c.trigger,
429
- c.valueNode,
430
- u,
431
- f,
427
+ g,
428
+ l.trigger,
429
+ l.valueNode,
430
+ d,
431
+ p,
432
432
  y,
433
433
  b,
434
434
  x,
435
- c.dir,
435
+ l.dir,
436
436
  o
437
437
  ]);
438
438
  useLayoutEffect2(() => C(), [C]);
439
439
  let [w, E] = import_react.useState();
440
440
  return useLayoutEffect2(() => {
441
- f && E(window.getComputedStyle(f).zIndex);
442
- }, [f]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectViewportProvider, {
441
+ p && E(window.getComputedStyle(p).zIndex);
442
+ }, [p]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectViewportProvider, {
443
443
  scope: a,
444
- contentWrapper: u,
445
- shouldExpandOnScrollRef: g,
444
+ contentWrapper: d,
445
+ shouldExpandOnScrollRef: _,
446
446
  onScrollButtonChange: import_react.useCallback((e2) => {
447
447
  e2 && v.current === true && (C(), S == null ? void 0 : S(), v.current = false);
448
448
  }, [C, S]),
449
449
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
450
- ref: d,
450
+ ref: f,
451
451
  style: {
452
452
  display: "flex",
453
453
  flexDirection: "column",
@@ -456,7 +456,7 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
456
456
  },
457
457
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
458
458
  ...s,
459
- ref: m,
459
+ ref: h,
460
460
  style: {
461
461
  boxSizing: "border-box",
462
462
  maxHeight: "100%",
@@ -488,7 +488,7 @@ var POPPER_POSITION_NAME = "SelectPopperPosition", SelectPopperPosition = import
488
488
  });
489
489
  SelectPopperPosition.displayName = POPPER_POSITION_NAME;
490
490
  var [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CONTENT_NAME, {}), VIEWPORT_NAME = "SelectViewport", SelectViewport = import_react.forwardRef((e, i) => {
491
- let { __scopeSelect: a, nonce: o, ...s } = e, c = useSelectContentContext(VIEWPORT_NAME, a), l = useSelectViewportContext(VIEWPORT_NAME, a), u = useComposedRefs(i, c.onViewportChange), d = import_react.useRef(0);
491
+ let { __scopeSelect: a, nonce: o, ...s } = e, l = useSelectContentContext(VIEWPORT_NAME, a), u = useSelectViewportContext(VIEWPORT_NAME, a), d = useComposedRefs(i, l.onViewportChange), f = import_react.useRef(0);
492
492
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("style", {
493
493
  dangerouslySetInnerHTML: { __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}" },
494
494
  nonce: o
@@ -498,7 +498,7 @@ var [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CON
498
498
  "data-radix-select-viewport": "",
499
499
  role: "presentation",
500
500
  ...s,
501
- ref: u,
501
+ ref: d,
502
502
  style: {
503
503
  position: "relative",
504
504
  flex: 1,
@@ -506,18 +506,18 @@ var [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CON
506
506
  ...s.style
507
507
  },
508
508
  onScroll: composeEventHandlers(s.onScroll, (e2) => {
509
- let i2 = e2.currentTarget, { contentWrapper: a2, shouldExpandOnScrollRef: o2 } = l;
509
+ let i2 = e2.currentTarget, { contentWrapper: a2, shouldExpandOnScrollRef: o2 } = u;
510
510
  if ((o2 == null ? void 0 : o2.current) && a2) {
511
- let e3 = Math.abs(d.current - i2.scrollTop);
511
+ let e3 = Math.abs(f.current - i2.scrollTop);
512
512
  if (e3 > 0) {
513
- let o3 = window.innerHeight - CONTENT_MARGIN * 2, s2 = parseFloat(a2.style.minHeight), c2 = parseFloat(a2.style.height), l2 = Math.max(s2, c2);
513
+ let o3 = window.innerHeight - CONTENT_MARGIN * 2, s2 = parseFloat(a2.style.minHeight), c = parseFloat(a2.style.height), l2 = Math.max(s2, c);
514
514
  if (l2 < o3) {
515
- let s3 = l2 + e3, c3 = Math.min(o3, s3), u2 = s3 - c3;
516
- a2.style.height = c3 + "px", a2.style.bottom === "0px" && (i2.scrollTop = u2 > 0 ? u2 : 0, a2.style.justifyContent = "flex-end");
515
+ let s3 = l2 + e3, c2 = Math.min(o3, s3), u2 = s3 - c2;
516
+ a2.style.height = c2 + "px", a2.style.bottom === "0px" && (i2.scrollTop = u2 > 0 ? u2 : 0, a2.style.justifyContent = "flex-end");
517
517
  }
518
518
  }
519
519
  }
520
- d.current = i2.scrollTop;
520
+ f.current = i2.scrollTop;
521
521
  })
522
522
  })
523
523
  })] });
@@ -547,11 +547,11 @@ var LABEL_NAME = "SelectLabel", SelectLabel$1 = import_react.forwardRef((e, i) =
547
547
  });
548
548
  SelectLabel$1.displayName = LABEL_NAME;
549
549
  var ITEM_NAME = "SelectItem", [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME), SelectItem$1 = import_react.forwardRef((e, i) => {
550
- let { __scopeSelect: a, value: o, disabled: s = false, textValue: c, ...l } = e, u = useSelectContext(ITEM_NAME, a), d = useSelectContentContext(ITEM_NAME, a), f = u.value === o, [p, m] = import_react.useState(c ?? ""), [h, g] = import_react.useState(false), v = useComposedRefs(i, (e2) => {
550
+ let { __scopeSelect: a, value: o, disabled: s = false, textValue: l, ...u } = e, d = useSelectContext(ITEM_NAME, a), f = useSelectContentContext(ITEM_NAME, a), p = d.value === o, [m, h] = import_react.useState(l ?? ""), [g, _] = import_react.useState(false), v = useComposedRefs(i, (e2) => {
551
551
  var _a;
552
- return (_a = d.itemRefCallback) == null ? void 0 : _a.call(d, e2, o, s);
552
+ return (_a = f.itemRefCallback) == null ? void 0 : _a.call(f, e2, o, s);
553
553
  }), y = useId(), b = import_react.useRef("touch"), x = () => {
554
- s || (u.onValueChange(o), u.onOpenChange(false));
554
+ s || (d.onValueChange(o), d.onOpenChange(false));
555
555
  };
556
556
  if (o === "") throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");
557
557
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItemContextProvider, {
@@ -559,48 +559,48 @@ var ITEM_NAME = "SelectItem", [SelectItemContextProvider, useSelectItemContext]
559
559
  value: o,
560
560
  disabled: s,
561
561
  textId: y,
562
- isSelected: f,
562
+ isSelected: p,
563
563
  onItemTextChange: import_react.useCallback((e2) => {
564
- m((i2) => i2 || ((e2 == null ? void 0 : e2.textContent) ?? "").trim());
564
+ h((i2) => i2 || ((e2 == null ? void 0 : e2.textContent) ?? "").trim());
565
565
  }, []),
566
566
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collection.ItemSlot, {
567
567
  scope: a,
568
568
  value: o,
569
569
  disabled: s,
570
- textValue: p,
570
+ textValue: m,
571
571
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
572
572
  role: "option",
573
573
  "aria-labelledby": y,
574
- "data-highlighted": h ? "" : void 0,
575
- "aria-selected": f && h,
576
- "data-state": f ? "checked" : "unchecked",
574
+ "data-highlighted": g ? "" : void 0,
575
+ "aria-selected": p && g,
576
+ "data-state": p ? "checked" : "unchecked",
577
577
  "aria-disabled": s || void 0,
578
578
  "data-disabled": s ? "" : void 0,
579
579
  tabIndex: s ? void 0 : -1,
580
- ...l,
580
+ ...u,
581
581
  ref: v,
582
- onFocus: composeEventHandlers(l.onFocus, () => g(true)),
583
- onBlur: composeEventHandlers(l.onBlur, () => g(false)),
584
- onClick: composeEventHandlers(l.onClick, () => {
582
+ onFocus: composeEventHandlers(u.onFocus, () => _(true)),
583
+ onBlur: composeEventHandlers(u.onBlur, () => _(false)),
584
+ onClick: composeEventHandlers(u.onClick, () => {
585
585
  b.current !== "mouse" && x();
586
586
  }),
587
- onPointerUp: composeEventHandlers(l.onPointerUp, () => {
587
+ onPointerUp: composeEventHandlers(u.onPointerUp, () => {
588
588
  b.current === "mouse" && x();
589
589
  }),
590
- onPointerDown: composeEventHandlers(l.onPointerDown, (e2) => {
590
+ onPointerDown: composeEventHandlers(u.onPointerDown, (e2) => {
591
591
  b.current = e2.pointerType;
592
592
  }),
593
- onPointerMove: composeEventHandlers(l.onPointerMove, (e2) => {
593
+ onPointerMove: composeEventHandlers(u.onPointerMove, (e2) => {
594
594
  var _a;
595
- b.current = e2.pointerType, s ? (_a = d.onItemLeave) == null ? void 0 : _a.call(d) : b.current === "mouse" && e2.currentTarget.focus({ preventScroll: true });
595
+ b.current = e2.pointerType, s ? (_a = f.onItemLeave) == null ? void 0 : _a.call(f) : b.current === "mouse" && e2.currentTarget.focus({ preventScroll: true });
596
596
  }),
597
- onPointerLeave: composeEventHandlers(l.onPointerLeave, (e2) => {
597
+ onPointerLeave: composeEventHandlers(u.onPointerLeave, (e2) => {
598
598
  var _a;
599
- e2.currentTarget === document.activeElement && ((_a = d.onItemLeave) == null ? void 0 : _a.call(d));
599
+ e2.currentTarget === document.activeElement && ((_a = f.onItemLeave) == null ? void 0 : _a.call(f));
600
600
  }),
601
- onKeyDown: composeEventHandlers(l.onKeyDown, (e2) => {
601
+ onKeyDown: composeEventHandlers(u.onKeyDown, (e2) => {
602
602
  var _a;
603
- ((_a = d.searchRef) == null ? void 0 : _a.current) !== "" && e2.key === " " || (SELECTION_KEYS.includes(e2.key) && x(), e2.key === " " && e2.preventDefault());
603
+ ((_a = f.searchRef) == null ? void 0 : _a.current) !== "" && e2.key === " " || (SELECTION_KEYS.includes(e2.key) && x(), e2.key === " " && e2.preventDefault());
604
604
  })
605
605
  })
606
606
  })
@@ -608,27 +608,27 @@ var ITEM_NAME = "SelectItem", [SelectItemContextProvider, useSelectItemContext]
608
608
  });
609
609
  SelectItem$1.displayName = ITEM_NAME;
610
610
  var ITEM_TEXT_NAME = "SelectItemText", SelectItemText = import_react.forwardRef((e, i) => {
611
- let { __scopeSelect: a, className: o, style: s, ...c } = e, l = useSelectContext(ITEM_TEXT_NAME, a), u = useSelectContentContext(ITEM_TEXT_NAME, a), d = useSelectItemContext(ITEM_TEXT_NAME, a), f = useSelectNativeOptionsContext(ITEM_TEXT_NAME, a), [p, m] = import_react.useState(null), h = useComposedRefs(i, (e2) => m(e2), d.onItemTextChange, (e2) => {
611
+ let { __scopeSelect: a, className: o, style: s, ...l } = e, u = useSelectContext(ITEM_TEXT_NAME, a), d = useSelectContentContext(ITEM_TEXT_NAME, a), f = useSelectItemContext(ITEM_TEXT_NAME, a), p = useSelectNativeOptionsContext(ITEM_TEXT_NAME, a), [m, h] = import_react.useState(null), g = useComposedRefs(i, (e2) => h(e2), f.onItemTextChange, (e2) => {
612
612
  var _a;
613
- return (_a = u.itemTextRefCallback) == null ? void 0 : _a.call(u, e2, d.value, d.disabled);
614
- }), g = p == null ? void 0 : p.textContent, v = import_react.useMemo(() => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
615
- value: d.value,
616
- disabled: d.disabled,
617
- children: g
618
- }, d.value), [
619
- d.disabled,
620
- d.value,
621
- g
622
- ]), { onNativeOptionAdd: y, onNativeOptionRemove: b } = f;
613
+ return (_a = d.itemTextRefCallback) == null ? void 0 : _a.call(d, e2, f.value, f.disabled);
614
+ }), _ = m == null ? void 0 : m.textContent, v = import_react.useMemo(() => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
615
+ value: f.value,
616
+ disabled: f.disabled,
617
+ children: _
618
+ }, f.value), [
619
+ f.disabled,
620
+ f.value,
621
+ _
622
+ ]), { onNativeOptionAdd: y, onNativeOptionRemove: b } = p;
623
623
  return useLayoutEffect2(() => (y(v), () => b(v)), [
624
624
  y,
625
625
  b,
626
626
  v
627
627
  ]), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.span, {
628
- id: d.textId,
629
- ...c,
630
- ref: h
631
- }), d.isSelected && l.valueNode && !l.valueNodeHasChildren ? import_react_dom.createPortal(c.children, l.valueNode) : null] });
628
+ id: f.textId,
629
+ ...l,
630
+ ref: g
631
+ }), f.isSelected && u.valueNode && !u.valueNodeHasChildren ? import_react_dom.createPortal(l.children, u.valueNode) : null] });
632
632
  });
633
633
  SelectItemText.displayName = ITEM_TEXT_NAME;
634
634
  var ITEM_INDICATOR_NAME = "SelectItemIndicator", SelectItemIndicator = import_react.forwardRef((e, i) => {
@@ -641,17 +641,17 @@ var ITEM_INDICATOR_NAME = "SelectItemIndicator", SelectItemIndicator = import_re
641
641
  });
642
642
  SelectItemIndicator.displayName = ITEM_INDICATOR_NAME;
643
643
  var SCROLL_UP_BUTTON_NAME = "SelectScrollUpButton", SelectScrollUpButton = import_react.forwardRef((e, i) => {
644
- let a = useSelectContentContext(SCROLL_UP_BUTTON_NAME, e.__scopeSelect), o = useSelectViewportContext(SCROLL_UP_BUTTON_NAME, e.__scopeSelect), [s, c] = import_react.useState(false), l = useComposedRefs(i, o.onScrollButtonChange);
644
+ let a = useSelectContentContext(SCROLL_UP_BUTTON_NAME, e.__scopeSelect), o = useSelectViewportContext(SCROLL_UP_BUTTON_NAME, e.__scopeSelect), [s, l] = import_react.useState(false), u = useComposedRefs(i, o.onScrollButtonChange);
645
645
  return useLayoutEffect2(() => {
646
646
  if (a.viewport && a.isPositioned) {
647
647
  let e2 = function() {
648
- c(i2.scrollTop > 0);
648
+ l(i2.scrollTop > 0);
649
649
  }, i2 = a.viewport;
650
650
  return e2(), i2.addEventListener("scroll", e2), () => i2.removeEventListener("scroll", e2);
651
651
  }
652
652
  }, [a.viewport, a.isPositioned]), s ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectScrollButtonImpl, {
653
653
  ...e,
654
- ref: l,
654
+ ref: u,
655
655
  onAutoScroll: () => {
656
656
  let { viewport: e2, selectedItem: i2 } = a;
657
657
  e2 && i2 && (e2.scrollTop -= i2.offsetHeight);
@@ -660,18 +660,18 @@ var SCROLL_UP_BUTTON_NAME = "SelectScrollUpButton", SelectScrollUpButton = impor
660
660
  });
661
661
  SelectScrollUpButton.displayName = SCROLL_UP_BUTTON_NAME;
662
662
  var SCROLL_DOWN_BUTTON_NAME = "SelectScrollDownButton", SelectScrollDownButton = import_react.forwardRef((e, i) => {
663
- let a = useSelectContentContext(SCROLL_DOWN_BUTTON_NAME, e.__scopeSelect), o = useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME, e.__scopeSelect), [s, c] = import_react.useState(false), l = useComposedRefs(i, o.onScrollButtonChange);
663
+ let a = useSelectContentContext(SCROLL_DOWN_BUTTON_NAME, e.__scopeSelect), o = useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME, e.__scopeSelect), [s, l] = import_react.useState(false), u = useComposedRefs(i, o.onScrollButtonChange);
664
664
  return useLayoutEffect2(() => {
665
665
  if (a.viewport && a.isPositioned) {
666
666
  let e2 = function() {
667
667
  let e3 = i2.scrollHeight - i2.clientHeight;
668
- c(Math.ceil(i2.scrollTop) < e3);
668
+ l(Math.ceil(i2.scrollTop) < e3);
669
669
  }, i2 = a.viewport;
670
670
  return e2(), i2.addEventListener("scroll", e2), () => i2.removeEventListener("scroll", e2);
671
671
  }
672
672
  }, [a.viewport, a.isPositioned]), s ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectScrollButtonImpl, {
673
673
  ...e,
674
- ref: l,
674
+ ref: u,
675
675
  onAutoScroll: () => {
676
676
  let { viewport: e2, selectedItem: i2 } = a;
677
677
  e2 && i2 && (e2.scrollTop += i2.offsetHeight);
@@ -715,8 +715,8 @@ var SelectScrollButtonImpl = import_react.forwardRef((e, i) => {
715
715
  });
716
716
  SelectSeparator$1.displayName = SEPARATOR_NAME;
717
717
  var ARROW_NAME = "SelectArrow", SelectArrow = import_react.forwardRef((e, i) => {
718
- let { __scopeSelect: a, ...o } = e, s = usePopperScope(a), c = useSelectContext(ARROW_NAME, a), u = useSelectContentContext(ARROW_NAME, a);
719
- return c.open && u.position === "popper" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arrow, {
718
+ let { __scopeSelect: a, ...o } = e, s = usePopperScope(a), c = useSelectContext(ARROW_NAME, a), l = useSelectContentContext(ARROW_NAME, a);
719
+ return c.open && l.position === "popper" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arrow, {
720
720
  ...s,
721
721
  ...o,
722
722
  ref: i
@@ -724,9 +724,9 @@ var ARROW_NAME = "SelectArrow", SelectArrow = import_react.forwardRef((e, i) =>
724
724
  });
725
725
  SelectArrow.displayName = ARROW_NAME;
726
726
  var BUBBLE_INPUT_NAME = "SelectBubbleInput", SelectBubbleInput = import_react.forwardRef(({ __scopeSelect: e, value: i, ...a }, o) => {
727
- let c = import_react.useRef(null), l = useComposedRefs(o, c), u = usePrevious(i);
727
+ let s = import_react.useRef(null), l = useComposedRefs(o, s), u = usePrevious(i);
728
728
  return import_react.useEffect(() => {
729
- let e2 = c.current;
729
+ let e2 = s.current;
730
730
  if (!e2) return;
731
731
  let a2 = window.HTMLSelectElement.prototype, o2 = Object.getOwnPropertyDescriptor(a2, "value").set;
732
732
  if (u !== i && o2) {
@@ -1032,15 +1032,15 @@ const menuContentCommon = cva("z-50 min-w-32 overflow-hidden rounded-md border b
1032
1032
  },
1033
1033
  defaultVariants: { variant: "default" }
1034
1034
  }), menuSeparatorVariants = cva("-mx-1 my-1 h-px bg-border last:hidden", { variants: {} }), MenuShortcut = (e) => {
1035
- let i = (0, import_compiler_runtime$3.c)(8), a, o;
1036
- i[0] === e ? (a = i[1], o = i[2]) : ({ className: a, ...o } = e, i[0] = e, i[1] = a, i[2] = o);
1037
- let s;
1038
- i[3] === a ? s = i[4] : (s = cn("ml-auto text-xs tracking-widest opacity-60", a), i[3] = a, i[4] = s);
1035
+ let i = (0, import_compiler_runtime$3.c)(8), a, s;
1036
+ i[0] === e ? (a = i[1], s = i[2]) : ({ className: a, ...s } = e, i[0] = e, i[1] = a, i[2] = s);
1039
1037
  let c;
1040
- return i[5] !== o || i[6] !== s ? (c = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1041
- className: s,
1042
- ...o
1043
- }), i[5] = o, i[6] = s, i[7] = c) : c = i[7], c;
1038
+ i[3] === a ? c = i[4] : (c = cn("ml-auto text-xs tracking-widest opacity-60", a), i[3] = a, i[4] = c);
1039
+ let l;
1040
+ return i[5] !== s || i[6] !== c ? (l = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1041
+ className: c,
1042
+ ...s
1043
+ }), i[5] = s, i[6] = c, i[7] = l) : l = i[7], l;
1044
1044
  };
1045
1045
  MenuShortcut.displayName = "MenuShortcut";
1046
1046
  var import_compiler_runtime$2 = require_compiler_runtime();
@@ -1052,137 +1052,137 @@ const selectStyles = cva("flex h-6 w-fit mb-1 items-center justify-between round
1052
1052
  defaultVariants: { variant: "default" }
1053
1053
  });
1054
1054
  var NativeSelect = import_react.forwardRef((e, i) => {
1055
- let a = (0, import_compiler_runtime$2.c)(12), o, s, c;
1056
- a[0] === e ? (o = a[1], s = a[2], c = a[3]) : ({ className: s, children: o, ...c } = e, a[0] = e, a[1] = o, a[2] = s, a[3] = c);
1057
- let l;
1058
- a[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = Events.stopPropagation(), a[4] = l) : l = a[4];
1059
- let u;
1060
- a[5] === s ? u = a[6] : (u = cn(selectStyles({}), s), a[5] = s, a[6] = u);
1055
+ let a = (0, import_compiler_runtime$2.c)(12), c, l, u;
1056
+ a[0] === e ? (c = a[1], l = a[2], u = a[3]) : ({ className: l, children: c, ...u } = e, a[0] = e, a[1] = c, a[2] = l, a[3] = u);
1061
1057
  let d;
1062
- return a[7] !== o || a[8] !== c || a[9] !== i || a[10] !== u ? (d = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("select", {
1058
+ a[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = Events.stopPropagation(), a[4] = d) : d = a[4];
1059
+ let f;
1060
+ a[5] === l ? f = a[6] : (f = cn(selectStyles({}), l), a[5] = l, a[6] = f);
1061
+ let p;
1062
+ return a[7] !== c || a[8] !== u || a[9] !== i || a[10] !== f ? (p = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("select", {
1063
1063
  ref: i,
1064
- onClick: l,
1065
- className: u,
1066
- ...c,
1067
- children: o
1068
- }), a[7] = o, a[8] = c, a[9] = i, a[10] = u, a[11] = d) : d = a[11], d;
1064
+ onClick: d,
1065
+ className: f,
1066
+ ...u,
1067
+ children: c
1068
+ }), a[7] = c, a[8] = u, a[9] = i, a[10] = f, a[11] = p) : p = a[11], p;
1069
1069
  });
1070
1070
  NativeSelect.displayName = "NativeSelect";
1071
1071
  var import_compiler_runtime$1 = require_compiler_runtime(), Select = Root2, SelectGroup = Group, SelectPortal = withFullScreenAsRoot(Portal$1), SelectValue = Value, SelectTrigger = import_react.forwardRef((e, i) => {
1072
- let a = (0, import_compiler_runtime$1.c)(21), o, s, c, l, u, d;
1073
- a[0] === e ? (o = a[1], s = a[2], c = a[3], l = a[4], u = a[5], d = a[6]) : ({ className: s, children: o, onClear: c, variant: d, hideChevron: u, ...l } = e, a[0] = e, a[1] = o, a[2] = s, a[3] = c, a[4] = l, a[5] = u, a[6] = d);
1074
- let f = u === void 0 ? false : u, p;
1075
- a[7] !== s || a[8] !== d ? (p = cn(selectStyles({ variant: d }), "mb-0", s), a[7] = s, a[8] = d, a[9] = p) : p = a[9];
1076
- let m;
1077
- a[10] !== f || a[11] !== c ? (m = c ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1072
+ let a = (0, import_compiler_runtime$1.c)(21), s, c, l, u, d, f;
1073
+ a[0] === e ? (s = a[1], c = a[2], l = a[3], u = a[4], d = a[5], f = a[6]) : ({ className: c, children: s, onClear: l, variant: f, hideChevron: d, ...u } = e, a[0] = e, a[1] = s, a[2] = c, a[3] = l, a[4] = u, a[5] = d, a[6] = f);
1074
+ let p = d === void 0 ? false : d, m;
1075
+ a[7] !== c || a[8] !== f ? (m = cn(selectStyles({ variant: f }), "mb-0", c), a[7] = c, a[8] = f, a[9] = m) : m = a[9];
1076
+ let h;
1077
+ a[10] !== p || a[11] !== l ? (h = l ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1078
1078
  onPointerDown: (e2) => {
1079
- e2.preventDefault(), e2.stopPropagation(), c();
1079
+ e2.preventDefault(), e2.stopPropagation(), l();
1080
1080
  },
1081
1081
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(X, { className: "h-4 w-4 opacity-50 hover:opacity-90" })
1082
- }) : !f && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronDown, { className: "h-4 w-4 opacity-50" }), a[10] = f, a[11] = c, a[12] = m) : m = a[12];
1083
- let h;
1084
- a[13] === m ? h = a[14] : (h = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, {
1085
- asChild: true,
1086
- children: m
1087
- }), a[13] = m, a[14] = h);
1082
+ }) : !p && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronDown, { className: "h-4 w-4 opacity-50" }), a[10] = p, a[11] = l, a[12] = h) : h = a[12];
1088
1083
  let g;
1089
- return a[15] !== o || a[16] !== l || a[17] !== i || a[18] !== p || a[19] !== h ? (g = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Trigger, {
1084
+ a[13] === h ? g = a[14] : (g = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, {
1085
+ asChild: true,
1086
+ children: h
1087
+ }), a[13] = h, a[14] = g);
1088
+ let _;
1089
+ return a[15] !== s || a[16] !== u || a[17] !== i || a[18] !== m || a[19] !== g ? (_ = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Trigger, {
1090
1090
  ref: i,
1091
- className: p,
1092
- ...l,
1093
- children: [o, h]
1094
- }), a[15] = o, a[16] = l, a[17] = i, a[18] = p, a[19] = h, a[20] = g) : g = a[20], g;
1091
+ className: m,
1092
+ ...u,
1093
+ children: [s, g]
1094
+ }), a[15] = s, a[16] = u, a[17] = i, a[18] = m, a[19] = g, a[20] = _) : _ = a[20], _;
1095
1095
  });
1096
1096
  SelectTrigger.displayName = Trigger.displayName;
1097
1097
  var InternalSelectContent = withSmartCollisionBoundary(Content2), SelectContent = import_react.forwardRef((e, i) => {
1098
- let a = (0, import_compiler_runtime$1.c)(21), o, s, c, l;
1099
- a[0] === e ? (o = a[1], s = a[2], c = a[3], l = a[4]) : ({ className: s, children: o, position: l, ...c } = e, a[0] = e, a[1] = o, a[2] = s, a[3] = c, a[4] = l);
1100
- let u = l === void 0 ? "popper" : l, d = u === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", f;
1101
- a[5] !== s || a[6] !== d ? (f = cn("max-h-[300px] relative z-50 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", d, s), a[5] = s, a[6] = d, a[7] = f) : f = a[7];
1102
- let p;
1103
- a[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScrollUpButton, {
1098
+ let a = (0, import_compiler_runtime$1.c)(21), s, c, l, u;
1099
+ a[0] === e ? (s = a[1], c = a[2], l = a[3], u = a[4]) : ({ className: c, children: s, position: u, ...l } = e, a[0] = e, a[1] = s, a[2] = c, a[3] = l, a[4] = u);
1100
+ let d = u === void 0 ? "popper" : u, f = d === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", p;
1101
+ a[5] !== c || a[6] !== f ? (p = cn("max-h-[300px] relative z-50 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", f, c), a[5] = c, a[6] = f, a[7] = p) : p = a[7];
1102
+ let m;
1103
+ a[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScrollUpButton, {
1104
1104
  className: "flex items-center justify-center h-[20px] bg-background text-muted-foreground cursor-default",
1105
1105
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronUp, { className: "h-4 w-4" })
1106
- }), a[8] = p) : p = a[8];
1107
- let m = u === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)", h;
1108
- a[9] === m ? h = a[10] : (h = cn("p-1", m), a[9] = m, a[10] = h);
1109
- let g;
1110
- a[11] !== o || a[12] !== h ? (g = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Viewport, {
1111
- className: h,
1112
- children: o
1113
- }), a[11] = o, a[12] = h, a[13] = g) : g = a[13];
1106
+ }), a[8] = m) : m = a[8];
1107
+ let h = d === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)", g;
1108
+ a[9] === h ? g = a[10] : (g = cn("p-1", h), a[9] = h, a[10] = g);
1114
1109
  let _;
1115
- a[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScrollDownButton, {
1110
+ a[11] !== s || a[12] !== g ? (_ = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Viewport, {
1111
+ className: g,
1112
+ children: s
1113
+ }), a[11] = s, a[12] = g, a[13] = _) : _ = a[13];
1114
+ let v;
1115
+ a[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ScrollDownButton, {
1116
1116
  className: "flex items-center justify-center h-[20px] bg-background text-muted-foreground cursor-default",
1117
1117
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronDown, { className: "h-4 w-4 opacity-50" })
1118
- }), a[14] = _) : _ = a[14];
1119
- let v;
1120
- return a[15] !== u || a[16] !== c || a[17] !== i || a[18] !== f || a[19] !== g ? (v = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyleNamespace, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(InternalSelectContent, {
1118
+ }), a[14] = v) : v = a[14];
1119
+ let y;
1120
+ return a[15] !== d || a[16] !== l || a[17] !== i || a[18] !== p || a[19] !== _ ? (y = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyleNamespace, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(InternalSelectContent, {
1121
1121
  ref: i,
1122
- className: f,
1123
- position: u,
1124
- ...c,
1122
+ className: p,
1123
+ position: d,
1124
+ ...l,
1125
1125
  children: [
1126
- p,
1127
- g,
1128
- _
1126
+ m,
1127
+ _,
1128
+ v
1129
1129
  ]
1130
- }) }) }), a[15] = u, a[16] = c, a[17] = i, a[18] = f, a[19] = g, a[20] = v) : v = a[20], v;
1130
+ }) }) }), a[15] = d, a[16] = l, a[17] = i, a[18] = p, a[19] = _, a[20] = y) : y = a[20], y;
1131
1131
  });
1132
1132
  SelectContent.displayName = Content2.displayName;
1133
1133
  var SelectLabel = import_react.forwardRef((e, i) => {
1134
- let a = (0, import_compiler_runtime$1.c)(9), o, s;
1135
- a[0] === e ? (o = a[1], s = a[2]) : ({ className: o, ...s } = e, a[0] = e, a[1] = o, a[2] = s);
1136
- let c;
1137
- a[3] === o ? c = a[4] : (c = cn("px-2 py-1.5 text-sm font-semibold", o), a[3] = o, a[4] = c);
1134
+ let a = (0, import_compiler_runtime$1.c)(9), s, c;
1135
+ a[0] === e ? (s = a[1], c = a[2]) : ({ className: s, ...c } = e, a[0] = e, a[1] = s, a[2] = c);
1138
1136
  let l;
1139
- return a[5] !== s || a[6] !== i || a[7] !== c ? (l = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label$1, {
1137
+ a[3] === s ? l = a[4] : (l = cn("px-2 py-1.5 text-sm font-semibold", s), a[3] = s, a[4] = l);
1138
+ let u;
1139
+ return a[5] !== c || a[6] !== i || a[7] !== l ? (u = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label$1, {
1140
1140
  ref: i,
1141
- className: c,
1142
- ...s
1143
- }), a[5] = s, a[6] = i, a[7] = c, a[8] = l) : l = a[8], l;
1141
+ className: l,
1142
+ ...c
1143
+ }), a[5] = c, a[6] = i, a[7] = l, a[8] = u) : u = a[8], u;
1144
1144
  });
1145
1145
  SelectLabel.displayName = Label$1.displayName;
1146
1146
  var SelectItem = import_react.forwardRef((e, i) => {
1147
- let a = (0, import_compiler_runtime$1.c)(17), o, s, c, l;
1148
- a[0] === e ? (o = a[1], s = a[2], c = a[3], l = a[4]) : ({ className: s, children: o, subtitle: l, ...c } = e, a[0] = e, a[1] = o, a[2] = s, a[3] = c, a[4] = l);
1149
- let u;
1150
- a[5] === s ? u = a[6] : (u = cn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground", MENU_ITEM_DISABLED, s), a[5] = s, a[6] = u);
1147
+ let a = (0, import_compiler_runtime$1.c)(17), s, c, l, u;
1148
+ a[0] === e ? (s = a[1], c = a[2], l = a[3], u = a[4]) : ({ className: c, children: s, subtitle: u, ...l } = e, a[0] = e, a[1] = s, a[2] = c, a[3] = l, a[4] = u);
1151
1149
  let d;
1152
- a[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1150
+ a[5] === c ? d = a[6] : (d = cn("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground", MENU_ITEM_DISABLED, c), a[5] = c, a[6] = d);
1151
+ let f;
1152
+ a[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
1153
1153
  className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center",
1154
1154
  children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, { className: "h-3 w-3" }) })
1155
- }), a[7] = d) : d = a[7];
1156
- let f = typeof o == "string" ? void 0 : true, m;
1157
- a[8] !== o || a[9] !== f ? (m = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ItemText, {
1158
- asChild: f,
1155
+ }), a[7] = f) : f = a[7];
1156
+ let p = typeof s == "string" ? void 0 : true, m;
1157
+ a[8] !== s || a[9] !== p ? (m = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ItemText, {
1158
+ asChild: p,
1159
1159
  className: "flex w-full flex-1",
1160
- children: o
1161
- }), a[8] = o, a[9] = f, a[10] = m) : m = a[10];
1160
+ children: s
1161
+ }), a[8] = s, a[9] = p, a[10] = m) : m = a[10];
1162
1162
  let h;
1163
- return a[11] !== c || a[12] !== i || a[13] !== l || a[14] !== u || a[15] !== m ? (h = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Item, {
1163
+ return a[11] !== l || a[12] !== i || a[13] !== u || a[14] !== d || a[15] !== m ? (h = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Item, {
1164
1164
  ref: i,
1165
- className: u,
1166
- ...c,
1165
+ className: d,
1166
+ ...l,
1167
1167
  children: [
1168
- d,
1168
+ f,
1169
1169
  m,
1170
- l
1170
+ u
1171
1171
  ]
1172
- }), a[11] = c, a[12] = i, a[13] = l, a[14] = u, a[15] = m, a[16] = h) : h = a[16], h;
1172
+ }), a[11] = l, a[12] = i, a[13] = u, a[14] = d, a[15] = m, a[16] = h) : h = a[16], h;
1173
1173
  });
1174
1174
  SelectItem.displayName = Item.displayName;
1175
1175
  var SelectSeparator = import_react.forwardRef((e, i) => {
1176
- let a = (0, import_compiler_runtime$1.c)(9), o, s;
1177
- a[0] === e ? (o = a[1], s = a[2]) : ({ className: o, ...s } = e, a[0] = e, a[1] = o, a[2] = s);
1178
- let c;
1179
- a[3] === o ? c = a[4] : (c = cn("-mx-1 my-1 h-px bg-muted", o), a[3] = o, a[4] = c);
1176
+ let a = (0, import_compiler_runtime$1.c)(9), s, c;
1177
+ a[0] === e ? (s = a[1], c = a[2]) : ({ className: s, ...c } = e, a[0] = e, a[1] = s, a[2] = c);
1180
1178
  let l;
1181
- return a[5] !== s || a[6] !== i || a[7] !== c ? (l = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Separator, {
1179
+ a[3] === s ? l = a[4] : (l = cn("-mx-1 my-1 h-px bg-muted", s), a[3] = s, a[4] = l);
1180
+ let u;
1181
+ return a[5] !== c || a[6] !== i || a[7] !== l ? (u = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Separator, {
1182
1182
  ref: i,
1183
- className: c,
1184
- ...s
1185
- }), a[5] = s, a[6] = i, a[7] = c, a[8] = l) : l = a[8], l;
1183
+ className: l,
1184
+ ...c
1185
+ }), a[5] = c, a[6] = i, a[7] = l, a[8] = u) : u = a[8], u;
1186
1186
  });
1187
1187
  SelectSeparator.displayName = Separator.displayName;
1188
1188
  function capitalize(e) {
@@ -1215,16 +1215,16 @@ const Strings = {
1215
1215
  }
1216
1216
  };
1217
1217
  var import_compiler_runtime = require_compiler_runtime(), labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), Label = import_react.forwardRef((e, i) => {
1218
- let a = (0, import_compiler_runtime.c)(9), o, s;
1219
- a[0] === e ? (o = a[1], s = a[2]) : ({ className: o, ...s } = e, a[0] = e, a[1] = o, a[2] = s);
1220
- let c;
1221
- a[3] === o ? c = a[4] : (c = cn(labelVariants(), o), a[3] = o, a[4] = c);
1218
+ let a = (0, import_compiler_runtime.c)(9), s, c;
1219
+ a[0] === e ? (s = a[1], c = a[2]) : ({ className: s, ...c } = e, a[0] = e, a[1] = s, a[2] = c);
1222
1220
  let l;
1223
- return a[5] !== s || a[6] !== i || a[7] !== c ? (l = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root, {
1221
+ a[3] === s ? l = a[4] : (l = cn(labelVariants(), s), a[3] = s, a[4] = l);
1222
+ let u;
1223
+ return a[5] !== c || a[6] !== i || a[7] !== l ? (u = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root, {
1224
1224
  ref: i,
1225
- className: c,
1226
- ...s
1227
- }), a[5] = s, a[6] = i, a[7] = c, a[8] = l) : l = a[8], l;
1225
+ className: l,
1226
+ ...c
1227
+ }), a[5] = c, a[6] = i, a[7] = l, a[8] = u) : u = a[8], u;
1228
1228
  });
1229
1229
  Label.displayName = Root.displayName;
1230
1230
  export {