@marimo-team/islands 0.26.1-dev6 → 0.26.1-dev60

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 (317) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DtwVgVpX.js → ConnectedDataExplorerComponent-yQVBQBUW.js} +16 -16
  2. package/dist/{ErrorBoundary-CLLMEsVD.js → ErrorBoundary-BdXvplK4.js} +19 -19
  3. package/dist/{abnfDiagram-VCTEODGH-BbZOIueZ.js → abnfDiagram-VCTEODGH-Ck_lXwQR.js} +2 -2
  4. package/dist/{any-language-editor-yG-YmLaK.js → any-language-editor-Cx4idbgX.js} +5 -5
  5. package/dist/{architectureDiagram-5GKGNRK7-qjLjxapm.js → architectureDiagram-5GKGNRK7-XeVhic7Z.js} +1 -1
  6. package/dist/{assertNever-DywGMo-S.js → assertNever-473SFxLt.js} +14 -14
  7. package/dist/{button-qQhINE7z.js → button-Z2R2272J.js} +34 -31
  8. package/dist/{capabilities-DKqMqBzm.js → capabilities-ba3Dyv8n.js} +1 -1
  9. package/dist/{chat-ui-D5YPIONI.js → chat-ui-D1mRz9h6.js} +113 -113
  10. package/dist/{check-jchHMCfs.js → check-DmTIavbZ.js} +1 -1
  11. package/dist/{chunk-IMKFNOWR-BzDY1_I7.js → chunk-IMKFNOWR-DdQni67K.js} +1 -1
  12. package/dist/{chunk-SHT3W25Y-DbHsMKdo.js → chunk-SHT3W25Y-BdK-vMct.js} +1 -1
  13. package/dist/{chunk-SVP7TREG-CtwnwAE6.js → chunk-SVP7TREG-cpFZk4Ca.js} +1 -1
  14. package/dist/{chunk-TICWLB2K-C5Z5QMbO.js → chunk-TICWLB2K-DDgQFRgT.js} +1 -1
  15. package/dist/{classDiagram-ZZMXUADV-B8E5Hn78.js → classDiagram-ZZMXUADV-DeojX9X4.js} +2 -2
  16. package/dist/{classDiagram-v2-VYDZK3BY-DeGsK9bT.js → classDiagram-v2-VYDZK3BY-DPfTAiQ6.js} +2 -2
  17. package/dist/{code-visibility-D8sNdSZw.js → code-visibility-BSe8efVJ.js} +28 -28
  18. package/dist/{common-C1vcGVta.js → common-D4UcPNCP.js} +5102 -5055
  19. package/dist/{config-qTaTHnpE.js → config-D-lhQq-h.js} +31 -32
  20. package/dist/{copy-icon-BI7vZHEW.js → copy-icon-DuxRkh7T.js} +3 -3
  21. package/dist/{createReducer-DdSLRfBT.js → createReducer-D3pBhIVD.js} +2 -2
  22. package/dist/{cynefinDiagram-5FMLGOSQ-NDedRwsw.js → cynefinDiagram-5FMLGOSQ-DyY9TvuI.js} +1 -1
  23. package/dist/{dagre-GXQ25YYZ-De0sSZO7.js → dagre-GXQ25YYZ-BPCOgtKg.js} +1 -1
  24. package/dist/{data-grid-overlay-editor-DbZ4Cn8Q.js → data-grid-overlay-editor-j_uScboj.js} +1 -1
  25. package/dist/{diagram-S7CK7UJ4-wBtVl61y.js → diagram-S7CK7UJ4-KaF-C6kd.js} +1 -1
  26. package/dist/{diagram-UQ7AKVKN-CKWE3c1T.js → diagram-UQ7AKVKN-DkeqoSvK.js} +1 -1
  27. package/dist/{diagram-VX7I27RA-D2Ac5198.js → diagram-VX7I27RA-DExolTAf.js} +1 -1
  28. package/dist/{diagram-Z3DM3KII-CYaFOQcI.js → diagram-Z3DM3KII-BioFuBF3.js} +1 -1
  29. package/dist/{dialog-Ic6dh09m.js → dialog-CvyFEwby.js} +32 -32
  30. package/dist/{dist-BvZpdAuG.js → dist-6B1_Ttbh.js} +1 -1
  31. package/dist/{dist-D1D56-GS.js → dist-B28poF32.js} +2 -2
  32. package/dist/{dist-BozTF_gH.js → dist-BBZ7lnMw.js} +2 -2
  33. package/dist/{dist-BfrgytDR.js → dist-BD8ZKF5t.js} +3 -3
  34. package/dist/{dist-DNkrY12t.js → dist-BG-7Qpaj.js} +3 -3
  35. package/dist/{dist-D92tYjLc.js → dist-BIaGGUbU.js} +13 -11
  36. package/dist/{dist-BagHbFqG.js → dist-BR5PU2Ph.js} +3 -3
  37. package/dist/{dist-DpYpG8Yc.js → dist-BidYR5m4.js} +3 -3
  38. package/dist/{dist-D95Cd4xm.js → dist-BkGYCvFX.js} +3 -3
  39. package/dist/{dist-DneeBk3K.js → dist-BmEyXT7K.js} +2 -2
  40. package/dist/{dist-BdUitvVW.js → dist-Bt0Wt6m9.js} +2 -2
  41. package/dist/{dist-CEomphG1.js → dist-CG2Sl0D4.js} +2 -2
  42. package/dist/{dist-BMz__bo5.js → dist-CQfpgadU.js} +3 -3
  43. package/dist/{dist-BreKIQqQ.js → dist-CVOPvfzN.js} +3 -3
  44. package/dist/{dist-BEcpQbZa.js → dist-Cm0iCeQQ.js} +3 -3
  45. package/dist/{dist-CDVvitRS.js → dist-Cnc14jEq.js} +2 -2
  46. package/dist/{dist-ChcBm3jk.js → dist-D3KPC38e.js} +4 -4
  47. package/dist/{dist-B1qu3Bez.js → dist-D7BXk27E.js} +3 -3
  48. package/dist/{dist-BsE4gQHj.js → dist-D9Qhvxvg.js} +1 -1
  49. package/dist/{dist-OmeAz0fR.js → dist-DJKajXDB.js} +3 -3
  50. package/dist/{dist-ObeTgSmf.js → dist-DYbNRTYG.js} +4 -4
  51. package/dist/{dist-Cshl6jBw.js → dist-DhtDWnzK.js} +2 -2
  52. package/dist/{dist-BunZKA_9.js → dist-_x2Jks2R.js} +2 -2
  53. package/dist/{dist-MggMo7OR.js → dist-m0MWV-aw.js} +1 -1
  54. package/dist/{dist-TGSwzj8a.js → dist-pPbYNVjd.js} +4 -4
  55. package/dist/{dropdown-menu-Dhv4fcNl.js → dropdown-menu-BiXHfje7.js} +2568 -2568
  56. package/dist/{ebnfDiagram-PWID7BFC-Ds7f42dj.js → ebnfDiagram-PWID7BFC-BSb9k1ed.js} +2 -2
  57. package/dist/{erDiagram-RLTQ6QDP-b58Sz2Mc.js → erDiagram-RLTQ6QDP-PWA30a_r.js} +1 -1
  58. package/dist/{error-banner-CJVLr5_a.js → error-banner-B9HQMSaH.js} +35 -35
  59. package/dist/{error-entries-BKlEsuk4.js → error-entries-P6Qpq6wP.js} +1032 -867
  60. package/dist/{esm-B9n0caHs.js → esm-DY8dGAjJ.js} +23 -23
  61. package/dist/{esm-Bwp_FHP0.js → esm-Dw2ZydG_.js} +3 -3
  62. package/dist/{feedback-button-CjWyhzBQ.js → feedback-button-DRcg_ZBP.js} +123 -123
  63. package/dist/{flowDiagram-HODETNUW-BH9U7VZK.js → flowDiagram-HODETNUW-BPtD__Zz.js} +2 -2
  64. package/dist/{formats-BLNFWWhV.js → formats-BF95BoCT.js} +3 -3
  65. package/dist/{glide-data-editor-B0vlSuQn.js → glide-data-editor-DkKBZmyu.js} +43 -43
  66. package/dist/{glide-utils-Ze_7l_91.js → glide-utils-iHKKQPJ8.js} +3 -3
  67. package/dist/{globals-_GdM0yI_.js → globals-D-LCkcIG.js} +3 -3
  68. package/dist/{html-to-image-CNM0ZSFD.js → html-to-image-DhrFZL7t.js} +24150 -24028
  69. package/dist/{infoDiagram-27XIBGKW-xbjwrcNi.js → infoDiagram-27XIBGKW-SJuilBEE.js} +1 -1
  70. package/dist/{ishikawaDiagram-5VMMS53U-DKtukhGS.js → ishikawaDiagram-5VMMS53U-DjzyxMr8.js} +1 -1
  71. package/dist/{kanban-definition-UXKFOSKX-BEhlkZBb.js → kanban-definition-UXKFOSKX-D2_qopGt.js} +1 -1
  72. package/dist/{loader-Bin_dutt.js → loader-qPmiRXZd.js} +1 -1
  73. package/dist/main.js +8860 -8741
  74. package/dist/{mermaid-D1CZDNoB.js → mermaid-DcowNmCx.js} +35 -35
  75. package/dist/{mindmap-definition-YA3MSWOX-DQcnJPcV.js → mindmap-definition-YA3MSWOX-pEra10M0.js} +1 -1
  76. package/dist/{number-overlay-editor-C9qcz20o.js → number-overlay-editor-xQbbd1Ku.js} +1 -1
  77. package/dist/{pegDiagram-XKGWAZYB-BFQuPYfI.js → pegDiagram-XKGWAZYB-CHOPKVOf.js} +2 -2
  78. package/dist/{pencil-DVYzq-iR.js → pencil-FAv6JUvp.js} +1 -1
  79. package/dist/{pieDiagram-E7YTZNPT-l7aqNrem.js → pieDiagram-E7YTZNPT-yGDhsyEN.js} +1 -1
  80. package/dist/{process-output-DthYR2Te.js → process-output-CBPqVQBu.js} +4 -4
  81. package/dist/{railroadDiagram-O6MQD6OU-6R3C1lwQ.js → railroadDiagram-O6MQD6OU-CeKEPdyc.js} +2 -2
  82. package/dist/{requirementDiagram-BXWQKSXE-DdWYu8fn.js → requirementDiagram-BXWQKSXE-DSAbAzKe.js} +1 -1
  83. package/dist/{reveal-component-CGGipwgt.js → reveal-component-DUTEhLsR.js} +1018 -1018
  84. package/dist/{select-CDUxhHZg.js → select-BszV-bbI.js} +135 -135
  85. package/dist/{sequenceDiagram-WJ2MYXX4-Dzp0dgRc.js → sequenceDiagram-WJ2MYXX4-DVhWj_9H.js} +1 -1
  86. package/dist/{spec-ZAt4P01J.js → spec-CRfw-lOm.js} +4 -4
  87. package/dist/{stateDiagram-D77RDMKH-BGnTUhFJ.js → stateDiagram-D77RDMKH-CDQ2MltG.js} +2 -2
  88. package/dist/{stateDiagram-v2-MP3YSRHH-DsJbmDf1.js → stateDiagram-v2-MP3YSRHH-BQmvwBaz.js} +2 -2
  89. package/dist/{static-state-C4bAlKTU.js → static-state-BtDNJuc2.js} +7 -7
  90. package/dist/style.css +1 -1
  91. package/dist/{swimlanes-42K2YHIH-Bd4Bzh9r.js → swimlanes-42K2YHIH-DLOUTCEL.js} +1 -1
  92. package/dist/{swimlanesDiagram-VR7AAH4N-BlY12Jf6.js → swimlanesDiagram-VR7AAH4N-BVKrkNJ6.js} +2 -2
  93. package/dist/{swiper-component-DTdNB9wg.js → swiper-component-B2O8hF7b.js} +2 -2
  94. package/dist/{timeline-definition-24CTP7MA-m0LanyCH.js → timeline-definition-24CTP7MA-Cb2JoCSd.js} +1 -1
  95. package/dist/{toast-U3NpO2x3.js → toast-QsOAIPfq.js} +166 -166
  96. package/dist/{tooltip-UzJukb3F.js → tooltip-BQZ-Bm6h.js} +65 -65
  97. package/dist/{use-restore-focus-DaTVz6S6.js → use-restore-focus-DT1TZACX.js} +1885 -1877
  98. package/dist/{useDateFormatter-LQNtoXyh.js → useDateFormatter-D3gyMY-g.js} +2 -2
  99. package/dist/{useDeepCompareMemoize-CmNbQ9TT.js → useDeepCompareMemoize-CO6rO5Mq.js} +1 -1
  100. package/dist/{useIframeCapabilities-HTZiVlGV.js → useIframeCapabilities-_0KX0nu_.js} +1 -1
  101. package/dist/{useLifecycle-DTMczKkf.js → useLifecycle-C9UTzCY8.js} +2 -2
  102. package/dist/{vega-component-ZTdbCcwI.js → vega-component-i5lZ23n7.js} +19 -19
  103. package/dist/{vennDiagram-4TSXK5OY-BJ7vqDmn.js → vennDiagram-4TSXK5OY-Cm3EcCcP.js} +1 -1
  104. package/dist/{wardleyDiagram-VM6X3IG4-D5kWacsn.js → wardleyDiagram-VM6X3IG4-DjlUs2CC.js} +1 -1
  105. package/dist/{xychartDiagram-S5SC5T6Z-gr15Ws_z.js → xychartDiagram-S5SC5T6Z-DxNDul9l.js} +1 -1
  106. package/package.json +3 -3
  107. package/src/__mocks__/animation-frames.ts +31 -0
  108. package/src/__mocks__/executions.ts +51 -23
  109. package/src/__mocks__/intersection-observer.ts +45 -0
  110. package/src/__mocks__/notebook.ts +1 -1
  111. package/src/__tests__/branded.ts +4 -0
  112. package/src/__tests__/notebook-analysis.ts +48 -0
  113. package/src/__tests__/render-tracker.ts +15 -0
  114. package/src/__tests__/setup.ts +3 -0
  115. package/src/components/data-table/__tests__/export-actions.test.tsx +79 -0
  116. package/src/components/data-table/export-actions.tsx +64 -19
  117. package/src/components/data-table/schemas.ts +1 -0
  118. package/src/components/databases/engine-variable.tsx +2 -2
  119. package/src/components/dependency-graph/panels.tsx +2 -2
  120. package/src/components/editor/__tests__/cell-renders.test.tsx +116 -0
  121. package/src/components/editor/actions/__tests__/name-cell-input.test.tsx +1 -1
  122. package/src/components/editor/actions/useCellActionButton.tsx +2 -8
  123. package/src/components/editor/ai/__tests__/completion-utils.test.ts +28 -61
  124. package/src/components/editor/cell/CreateCellButton.tsx +69 -40
  125. package/src/components/editor/cell/__tests__/CreateCellButton.test.tsx +49 -0
  126. package/src/components/editor/cell/__tests__/cell-context-menu.test.tsx +126 -0
  127. package/src/components/editor/cell/__tests__/useRunCells.test.tsx +5 -5
  128. package/src/components/editor/cell/cell-context-menu.tsx +202 -111
  129. package/src/components/editor/cell/code/__tests__/code-placeholder.test.tsx +40 -0
  130. package/src/components/editor/cell/code/cell-editor.tsx +49 -108
  131. package/src/components/editor/cell/code/code-placeholder.css +61 -11
  132. package/src/components/editor/cell/code/code-placeholder.tsx +52 -27
  133. package/src/components/editor/cell/collapse.tsx +6 -3
  134. package/src/components/editor/cell/useSplitCell.tsx +2 -2
  135. package/src/components/editor/chrome/panels/__tests__/secrets-panel.test.tsx +57 -0
  136. package/src/components/editor/chrome/panels/secrets-panel.tsx +36 -9
  137. package/src/components/editor/chrome/panels/secrets-utils.ts +20 -0
  138. package/src/components/editor/chrome/wrapper/__tests__/document-sync-status.test.tsx +5 -2
  139. package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +6 -10
  140. package/src/components/editor/errors/auto-fix.tsx +8 -7
  141. package/src/components/editor/header/status.tsx +5 -2
  142. package/src/components/editor/navigation/__tests__/navigation.test.ts +3 -16
  143. package/src/components/editor/navigation/focus-utils.ts +20 -8
  144. package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +3 -11
  145. package/src/components/editor/navigation/navigation.ts +2 -2
  146. package/src/components/editor/notebook-cell.tsx +15 -24
  147. package/src/components/editor/output/MarimoTracebackOutput.tsx +2 -2
  148. package/src/components/editor/output/console/ConsoleOutput.tsx +77 -50
  149. package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +28 -0
  150. package/src/components/editor/renderers/cells-renderer.tsx +3 -2
  151. package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +6 -9
  152. package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +2 -5
  153. package/src/components/find-replace/find-replace.tsx +3 -7
  154. package/src/components/icons/__tests__/large-spinner.test.tsx +5 -4
  155. package/src/components/scratchpad/scratchpad.tsx +2 -2
  156. package/src/components/tracing/tracing-keyboard.test.tsx +4 -3
  157. package/src/components/ui/__tests__/button-shortcut.test.tsx +22 -0
  158. package/src/components/ui/__tests__/fullscreen.test.tsx +83 -1
  159. package/src/components/ui/button.tsx +5 -1
  160. package/src/components/ui/fullscreen.tsx +43 -89
  161. package/src/components/variables/__tests__/variables-table.test.tsx +1 -2
  162. package/src/core/MarimoApp.tsx +1 -1
  163. package/src/core/__tests__/MarimoApp.test.tsx +147 -0
  164. package/src/core/ai/__tests__/staged-cells.test.ts +6 -39
  165. package/src/core/ai/context/providers/__tests__/error.test.ts +6 -3
  166. package/src/core/ai/staged-cells.ts +8 -35
  167. package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +15 -13
  168. package/src/core/ai/tools/edit-notebook-tool.ts +13 -8
  169. package/src/core/cells/__tests__/actions.test.ts +2 -2
  170. package/src/core/cells/__tests__/add-missing-import.test.ts +14 -9
  171. package/src/core/cells/__tests__/arrange.test.ts +1 -1
  172. package/src/core/cells/__tests__/cell-editor-view.test.ts +44 -0
  173. package/src/core/cells/__tests__/cells.test.ts +0 -1
  174. package/src/core/cells/__tests__/focus.test.ts +1 -7
  175. package/src/core/cells/__tests__/harness.ts +9 -8
  176. package/src/core/cells/__tests__/layout.test.ts +1 -1
  177. package/src/core/cells/__tests__/pending-delete-service.test.tsx +121 -11
  178. package/src/core/cells/__tests__/runs.test.ts +14 -14
  179. package/src/core/cells/__tests__/utils.test.ts +3 -2
  180. package/src/core/cells/actions.ts +6 -6
  181. package/src/core/cells/add-missing-import.ts +2 -3
  182. package/src/core/cells/cells.ts +40 -27
  183. package/src/core/cells/document.ts +1 -2
  184. package/src/core/cells/execution-console.ts +10 -5
  185. package/src/core/cells/focus.ts +1 -1
  186. package/src/core/cells/ids.ts +2 -4
  187. package/src/core/cells/pending-delete-service.ts +97 -85
  188. package/src/core/cells/runs.ts +7 -5
  189. package/src/core/cells/scrollCellIntoView.ts +4 -14
  190. package/src/core/cells/session.ts +8 -5
  191. package/src/core/cells/utils.ts +0 -13
  192. package/src/core/codemirror/__tests__/cell-documents.test.ts +79 -0
  193. package/src/core/codemirror/__tests__/debounced-editor-update.test.ts +72 -0
  194. package/src/core/codemirror/__tests__/editor-mount-scheduler.test.ts +75 -105
  195. package/src/core/codemirror/__tests__/format.test.ts +85 -63
  196. package/src/core/codemirror/__tests__/setup.test.ts +61 -1
  197. package/src/core/codemirror/__tests__/use-lazy-editor-mount.test.tsx +198 -0
  198. package/src/core/codemirror/cell-documents.ts +132 -0
  199. package/src/core/codemirror/cells/debugger-decorations.ts +22 -18
  200. package/src/core/codemirror/cells/line-timing-decorations.ts +13 -11
  201. package/src/core/codemirror/cells/traceback-decorations.ts +10 -11
  202. package/src/core/codemirror/code-lens/__tests__/entities.test.ts +7 -11
  203. package/src/core/codemirror/code-lens/__tests__/extension.test.ts +38 -12
  204. package/src/core/codemirror/code-lens/__tests__/perf.test.ts +7 -9
  205. package/src/core/codemirror/code-lens/extension.ts +21 -13
  206. package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +9 -14
  207. package/src/core/codemirror/copilot/getCodes.ts +3 -14
  208. package/src/core/codemirror/debounced-editor-update.ts +41 -0
  209. package/src/core/codemirror/editor-mount-scheduler.ts +41 -48
  210. package/src/core/codemirror/extensions.ts +2 -2
  211. package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +42 -16
  212. package/src/core/codemirror/find-replace/__tests__/search-highlight.test.ts +30 -0
  213. package/src/core/codemirror/find-replace/__tests__/unmounted-cells.test.ts +145 -0
  214. package/src/core/codemirror/find-replace/navigate.ts +88 -129
  215. package/src/core/codemirror/find-replace/search-highlight.ts +3 -1
  216. package/src/core/codemirror/find-replace/state.ts +7 -2
  217. package/src/core/codemirror/format.ts +25 -31
  218. package/src/core/codemirror/go-to-definition/__tests__/underline.test.ts +58 -0
  219. package/src/core/codemirror/go-to-definition/__tests__/utils.test.ts +24 -44
  220. package/src/core/codemirror/go-to-definition/extension.ts +9 -7
  221. package/src/core/codemirror/go-to-definition/underline.ts +39 -48
  222. package/src/core/codemirror/language/__tests__/sql.test.ts +36 -0
  223. package/src/core/codemirror/language/cell-code.ts +7 -0
  224. package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +2 -18
  225. package/src/core/codemirror/language/languages/sql/sql.ts +3 -0
  226. package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +25 -0
  227. package/src/core/codemirror/lsp/notebook-lsp.ts +6 -16
  228. package/src/core/codemirror/placeholder/extensions.ts +26 -24
  229. package/src/core/codemirror/reactive-references/__tests__/extension.test.ts +54 -0
  230. package/src/core/codemirror/reactive-references/extension.ts +30 -21
  231. package/src/core/codemirror/use-lazy-editor-mount.ts +70 -0
  232. package/src/core/codemirror/utils.ts +2 -6
  233. package/src/core/datasets/__tests__/data-source.test.ts +15 -17
  234. package/src/core/datasets/data-source-connections.ts +8 -11
  235. package/src/core/datasets/state.ts +7 -12
  236. package/src/core/executions/__tests__/atoms.test.ts +211 -5
  237. package/src/core/executions/__tests__/freshness.test.ts +65 -56
  238. package/src/core/executions/__tests__/interrupt.test.ts +5 -3
  239. package/src/core/executions/__tests__/output-lifecycle.test.ts +95 -7
  240. package/src/core/executions/__tests__/output.test.ts +5 -3
  241. package/src/core/executions/__tests__/run.test.ts +4 -4
  242. package/src/core/executions/__tests__/select.test.ts +108 -69
  243. package/src/core/executions/atoms.ts +248 -83
  244. package/src/core/executions/freshness.ts +7 -7
  245. package/src/core/executions/hooks.ts +15 -59
  246. package/src/core/executions/index.ts +2 -0
  247. package/src/core/executions/output.ts +49 -35
  248. package/src/core/executions/select.ts +90 -37
  249. package/src/core/export/__tests__/hooks.test.ts +1 -1
  250. package/src/core/islands/__tests__/bridge.test.ts +1 -1
  251. package/src/core/islands/bootstrap.ts +7 -7
  252. package/src/core/islands/bridge.ts +1 -1
  253. package/src/core/meta/__tests__/code-visibility.test.tsx +3 -2
  254. package/src/core/notebook/document/__tests__/codemirror.test.ts +8 -6
  255. package/src/core/notebook/document/__tests__/draft.test.ts +56 -58
  256. package/src/core/notebook/document/__tests__/fixtures.ts +8 -7
  257. package/src/core/notebook/document/__tests__/hooks.test.tsx +39 -35
  258. package/src/core/notebook/document/__tests__/lifecycle-scenarios.test.ts +8 -5
  259. package/src/core/notebook/document/__tests__/model.test.ts +8 -5
  260. package/src/core/notebook/document/__tests__/protocol-fixtures.ts +2 -2
  261. package/src/core/notebook/document/__tests__/recovery-scenarios.test.ts +37 -32
  262. package/src/core/notebook/document/__tests__/scenarios.test.ts +49 -45
  263. package/src/core/notebook/document/__tests__/state.test.ts +59 -56
  264. package/src/core/notebook/document/__tests__/submission.test.ts +15 -12
  265. package/src/core/notebook/document/__tests__/test-host.ts +3 -2
  266. package/src/core/notebook/document/__tests__/user.ts +7 -3
  267. package/src/core/notebook/document/draft.ts +29 -11
  268. package/src/core/notebook/document/state.ts +7 -6
  269. package/src/core/notebook/replica/__tests__/document.test.ts +9 -5
  270. package/src/core/notebook/replica/__tests__/executions.test.ts +90 -25
  271. package/src/core/notebook/replica/__tests__/fixtures.ts +6 -2
  272. package/src/core/notebook/replica/__tests__/frame.test.ts +206 -0
  273. package/src/core/notebook/replica/__tests__/once-per-frame.test.ts +95 -0
  274. package/src/core/notebook/replica/__tests__/replica.test.ts +53 -9
  275. package/src/core/notebook/replica/__tests__/results.test.ts +27 -29
  276. package/src/core/notebook/replica/execution-state.ts +2 -2
  277. package/src/core/notebook/replica/frame.ts +54 -0
  278. package/src/core/notebook/replica/index.ts +1 -0
  279. package/src/core/notebook/replica/once-per-frame.ts +60 -0
  280. package/src/core/notebook/replica/replica.ts +27 -6
  281. package/src/core/notebook/replica/resources/analysis.ts +1 -1
  282. package/src/core/notebook/replica/resources/document.ts +9 -8
  283. package/src/core/notebook/replica/resources/executions.ts +197 -78
  284. package/src/core/notebook/replica/resources/results.ts +8 -14
  285. package/src/core/saving/__tests__/document.test.tsx +1 -1
  286. package/src/core/saving/__tests__/state.test.ts +2 -2
  287. package/src/core/session/__tests__/useNotebookReplica.hook.test.tsx +55 -9
  288. package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +230 -12
  289. package/src/core/session/active-notebook.ts +4 -1
  290. package/src/core/session/useNotebookReplica.ts +15 -2
  291. package/src/core/session/useNotebookSession.tsx +38 -46
  292. package/src/core/state/__tests__/atom-with-selected-inputs.test.ts +48 -0
  293. package/src/core/state/__tests__/create-keyed-selector-hook.test.tsx +137 -0
  294. package/src/core/state/atom-with-selected-inputs.ts +24 -0
  295. package/src/core/state/create-keyed-atom-hook.ts +18 -0
  296. package/src/core/state/create-keyed-selector-hook.ts +22 -0
  297. package/src/core/storage/__tests__/state.test.ts +6 -9
  298. package/src/core/storage/state.ts +5 -8
  299. package/src/core/transports/__tests__/static.test.ts +3 -2
  300. package/src/core/transports/static.ts +2 -2
  301. package/src/core/variables/state.ts +73 -68
  302. package/src/core/variables/types.ts +2 -2
  303. package/src/core/vscode/__tests__/is-in-vscode.test.ts +36 -0
  304. package/src/core/vscode/is-in-vscode.ts +2 -2
  305. package/src/core/wasm/__tests__/bridge.test.ts +73 -1
  306. package/src/core/wasm/bridge.ts +5 -4
  307. package/src/plugins/impl/TextInputPlugin.tsx +2 -1
  308. package/src/plugins/impl/__test__/text-labels.test.tsx +46 -1
  309. package/src/utils/__tests__/lazy.test.tsx +33 -0
  310. package/src/utils/__tests__/shared-intersection-observer.test.ts +49 -0
  311. package/src/utils/__tests__/shared-resource.test.ts +107 -0
  312. package/src/utils/arrays.ts +4 -1
  313. package/src/utils/lazy.tsx +74 -0
  314. package/src/utils/shared-intersection-observer.ts +53 -0
  315. package/src/utils/shared-resource.ts +59 -0
  316. package/src/core/variables/__tests__/state.test.ts +0 -148
  317. package/src/utils/lazy.ts +0 -35
@@ -1,13 +1,13 @@
1
1
  import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
2
- import { h as t, m as n, p as r, r as i, u as a } from "./button-qQhINE7z.js";
2
+ import { h as t, i as n, m as r, p as i, u as a } from "./button-Z2R2272J.js";
3
3
  import { t as o } from "./react-Bgs_wQh3.js";
4
4
  import { t as s } from "./compiler-runtime-C5KHtL5D.js";
5
- import { c, h as l, l as u, p as d, s as f, u as p } from "./tooltip-UzJukb3F.js";
6
- import { t as m } from "./check-jchHMCfs.js";
7
- import { a as h, s as g } from "./assertNever-DywGMo-S.js";
5
+ import { c, h as l, l as u, p as d, s as f, u as p } from "./tooltip-BQZ-Bm6h.js";
6
+ import { t as m } from "./check-DmTIavbZ.js";
7
+ import { a as h, s as g } from "./assertNever-473SFxLt.js";
8
8
  import { t as _ } from "./react-dom-DdqGVp5N.js";
9
9
  import { t as v } from "./jsx-runtime-D8btoEHk.js";
10
- import { _n as y, an as b, dn as x, en as S, fn as C, gn as w, hn as T, in as E, l as ee, ln as D, mn as O, o as k, pn as A, rn as te, s as ne, tn as re, vn as j } from "./use-restore-focus-DaTVz6S6.js";
10
+ import { _n as y, an as b, bn as x, dn as S, gn as C, hn as w, l as T, mn as E, nn as ee, o as D, on as O, pn as k, rn as te, s as ne, sn as re, vn as A, yn as j } from "./use-restore-focus-DT1TZACX.js";
11
11
  var M = l("chevron-down", [["path", {
12
12
  d: "m6 9 6 6 6-6",
13
13
  key: "qrunsl"
@@ -32,7 +32,7 @@ var B = Object.defineProperty, V = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */
32
32
  value: t,
33
33
  configurable: !0
34
34
  }))(function(e, t) {
35
- return /* @__PURE__ */ (0, F.jsx)(j.label, {
35
+ return /* @__PURE__ */ (0, F.jsx)(x.label, {
36
36
  ...e,
37
37
  ref: t,
38
38
  onMouseDown: (t) => {
@@ -63,24 +63,24 @@ var ce = Object.defineProperty, U = (e, t) => ce(e, "name", {
63
63
  "Enter",
64
64
  "ArrowUp",
65
65
  "ArrowDown"
66
- ], fe = [" ", "Enter"], W = "Select", [G, pe, me] = h(W), [K, he] = y(W, [me, p]), ge = p(), [_e, q] = K(W), [ve, ye] = K(W);
66
+ ], fe = [" ", "Enter"], W = "Select", [G, pe, me] = h(W), [K, he] = j(W, [me, p]), ge = p(), [_e, q] = K(W), [ve, ye] = K(W);
67
67
  function be(e) {
68
- let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: p, required: m, form: h, internal_do_not_use_render: g } = e, _ = ge(t), [v, y] = P.useState(null), [b, x] = P.useState(null), [S, w] = P.useState(!1), T = z(l), [E, ee] = O({
68
+ let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: p, required: m, form: h, internal_do_not_use_render: g } = e, _ = ge(t), [v, y] = P.useState(null), [b, x] = P.useState(null), [S, w] = P.useState(!1), T = z(l), [ee, D] = C({
69
69
  prop: r,
70
70
  defaultProp: i ?? !1,
71
71
  onChange: a,
72
72
  caller: W
73
- }), [D, k] = O({
73
+ }), [O, k] = C({
74
74
  prop: o,
75
75
  defaultProp: s,
76
76
  onChange: c,
77
77
  caller: W
78
- }), A = P.useRef(null), te = P.useRef(!1), [ne, re] = P.useState(null), j = /* @__PURE__ */ U((e) => {
79
- re({
78
+ }), te = P.useRef(null), ne = P.useRef(!1), [re, A] = P.useState(null), j = /* @__PURE__ */ U((e) => {
79
+ A({
80
80
  value: e,
81
- hasConsumerStoppedPropagation: te.current
81
+ hasConsumerStoppedPropagation: ne.current
82
82
  }), k(e);
83
- }, "handleUserSelect"), M = P.useRef(D);
83
+ }, "handleUserSelect"), M = P.useRef(O);
84
84
  P.useEffect(() => {
85
85
  let e = h ? v?.ownerDocument.getElementById(h) : v?.form;
86
86
  if (e instanceof HTMLFormElement) {
@@ -92,7 +92,7 @@ function be(e) {
92
92
  v,
93
93
  k
94
94
  ]);
95
- let ie = !v || !!h || !!v.closest("form"), [N, I] = P.useState(/* @__PURE__ */ new Set()), ae = C(), L = Array.from(N).map((e) => e.props.value).join(";"), R = P.useCallback((e) => {
95
+ let ie = !v || !!h || !!v.closest("form"), [N, I] = P.useState(/* @__PURE__ */ new Set()), ae = E(), L = Array.from(N).map((e) => e.props.value).join(";"), R = P.useCallback((e) => {
96
96
  I((t) => new Set(t).add(e));
97
97
  }, []), B = P.useCallback((e) => {
98
98
  I((t) => {
@@ -108,15 +108,15 @@ function be(e) {
108
108
  valueNodeHasChildren: S,
109
109
  onValueNodeHasChildrenChange: w,
110
110
  contentId: ae,
111
- value: D,
111
+ value: O,
112
112
  onValueChange: k,
113
- hasConsumerStoppedPropagationRef: te,
114
- userSelection: ne,
113
+ hasConsumerStoppedPropagationRef: ne,
114
+ userSelection: re,
115
115
  onUserSelect: j,
116
- open: E,
117
- onOpenChange: ee,
116
+ open: ee,
117
+ onOpenChange: D,
118
118
  dir: T,
119
- triggerPointerDownPosRef: A,
119
+ triggerPointerDownPosRef: te,
120
120
  disabled: p,
121
121
  name: u,
122
122
  autoComplete: d,
@@ -151,7 +151,7 @@ var xe = /* @__PURE__ */ U((e) => {
151
151
  internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [n, e ? /* @__PURE__ */ (0, F.jsx)(st, { __scopeSelect: t }) : null] })
152
152
  });
153
153
  }, "Select"), Se = "SelectTrigger", Ce = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
154
- let { __scopeSelect: n, disabled: i = !1, ...a } = e, o = ge(n), s = q(Se, n), l = s.disabled || i, u = r(t, s.onTriggerChange), d = pe(n), f = P.useRef("touch"), [p, m, h] = lt((e) => {
154
+ let { __scopeSelect: n, disabled: r = !1, ...a } = e, o = ge(n), s = q(Se, n), l = s.disabled || r, u = i(t, s.onTriggerChange), d = pe(n), f = P.useRef("touch"), [p, m, h] = lt((e) => {
155
155
  let t = d().filter((e) => !e.disabled), n = ut(t, e, t.find((e) => e.value === s.value));
156
156
  n !== void 0 && s.onUserSelect(n.value);
157
157
  }), g = /* @__PURE__ */ U((e) => {
@@ -163,7 +163,7 @@ var xe = /* @__PURE__ */ U((e) => {
163
163
  return /* @__PURE__ */ (0, F.jsx)(c, {
164
164
  asChild: !0,
165
165
  ...o,
166
- children: /* @__PURE__ */ (0, F.jsx)(j.button, {
166
+ children: /* @__PURE__ */ (0, F.jsx)(x.button, {
167
167
  type: "button",
168
168
  role: "combobox",
169
169
  "aria-controls": s.open ? s.contentId : void 0,
@@ -177,27 +177,27 @@ var xe = /* @__PURE__ */ U((e) => {
177
177
  "data-placeholder": Z(s.value) ? "" : void 0,
178
178
  ...a,
179
179
  ref: u,
180
- onClick: T(a.onClick, (e) => {
180
+ onClick: y(a.onClick, (e) => {
181
181
  e.currentTarget.focus(), f.current !== "mouse" && g(e);
182
182
  }),
183
- onPointerDown: T(a.onPointerDown, (e) => {
183
+ onPointerDown: y(a.onPointerDown, (e) => {
184
184
  f.current = e.pointerType;
185
185
  let t = e.target;
186
186
  t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), e.button === 0 && e.ctrlKey === !1 && e.pointerType === "mouse" && (g(e), e.preventDefault());
187
187
  }),
188
- onKeyDown: T(a.onKeyDown, (e) => {
188
+ onKeyDown: y(a.onKeyDown, (e) => {
189
189
  let t = p.current !== "";
190
190
  !(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && (s.hasConsumerStoppedPropagationRef.current = e.isPropagationStopped(), m(e.key)), !(t && e.key === " ") && de.includes(e.key) && (g(), e.preventDefault());
191
191
  })
192
192
  })
193
193
  });
194
194
  }, "SelectTrigger")), we = "SelectValue", Te = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
195
- let { __scopeSelect: n, className: i, style: a, children: o, placeholder: s = "", ...c } = e, l = q(we, n), { onValueNodeHasChildrenChange: u } = l, d = o !== void 0, f = r(t, l.onValueNodeChange);
196
- w(() => {
195
+ let { __scopeSelect: n, className: r, style: a, children: o, placeholder: s = "", ...c } = e, l = q(we, n), { onValueNodeHasChildrenChange: u } = l, d = o !== void 0, f = i(t, l.onValueNodeChange);
196
+ A(() => {
197
197
  u(d);
198
198
  }, [u, d]);
199
199
  let p = Z(l.value);
200
- return /* @__PURE__ */ (0, F.jsx)(j.span, {
200
+ return /* @__PURE__ */ (0, F.jsx)(x.span, {
201
201
  ...c,
202
202
  asChild: !p && c.asChild,
203
203
  ref: f,
@@ -206,7 +206,7 @@ var xe = /* @__PURE__ */ U((e) => {
206
206
  });
207
207
  }, "SelectValue")), Ee = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
208
208
  let { __scopeSelect: n, children: r, ...i } = e;
209
- return /* @__PURE__ */ (0, F.jsx)(j.span, {
209
+ return /* @__PURE__ */ (0, F.jsx)(x.span, {
210
210
  "aria-hidden": !0,
211
211
  ...i,
212
212
  ref: t,
@@ -217,16 +217,16 @@ var xe = /* @__PURE__ */ U((e) => {
217
217
  return /* @__PURE__ */ (0, F.jsx)(De, {
218
218
  scope: e.__scopeSelect,
219
219
  forceMount: n,
220
- children: /* @__PURE__ */ (0, F.jsx)(E, {
220
+ children: /* @__PURE__ */ (0, F.jsx)(O, {
221
221
  asChild: !0,
222
222
  ...r
223
223
  })
224
224
  });
225
225
  }, "SelectPortal"), J = "SelectContent", Ae = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
226
226
  let n = Oe(J, e.__scopeSelect), { forceMount: r = n.forceMount, ...i } = e, a = q(J, e.__scopeSelect), [o, s] = P.useState();
227
- return w(() => {
227
+ return A(() => {
228
228
  s(new DocumentFragment());
229
- }, []), /* @__PURE__ */ (0, F.jsx)(A, {
229
+ }, []), /* @__PURE__ */ (0, F.jsx)(w, {
230
230
  present: r || a.open,
231
231
  children: ({ present: e }) => e ? /* @__PURE__ */ (0, F.jsx)(Pe, {
232
232
  ...i,
@@ -249,24 +249,24 @@ var xe = /* @__PURE__ */ U((e) => {
249
249
  })
250
250
  }), i) : null;
251
251
  }, "SelectContentFragment")), Y = 10, [Me, X] = K(J), Ne = a("SelectContent.RemoveScroll"), Pe = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
252
- let { __scopeSelect: n } = e, { position: i = le.ItemAligned, onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: s, side: c, sideOffset: l, align: u, alignOffset: d, arrowPadding: f, collisionBoundary: p, collisionPadding: m, sticky: h, hideWhenDetached: g, avoidCollisions: _, ...v } = e, y = q(J, n), [x, C] = P.useState(null), [w, E] = P.useState(null), ee = r(t, C), [O, k] = P.useState(null), [A, ne] = P.useState(null), j = pe(n), [M, ie] = P.useState(!1), N = P.useRef(!1), I = P.useRef(!1), ae = P.useRef(!1);
252
+ let { __scopeSelect: n } = e, { position: r = le.ItemAligned, onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: s, side: c, sideOffset: l, align: u, alignOffset: d, arrowPadding: f, collisionBoundary: p, collisionPadding: m, sticky: h, hideWhenDetached: g, avoidCollisions: _, ...v } = e, x = q(J, n), [C, w] = P.useState(null), [T, E] = P.useState(null), D = i(t, w), [O, k] = P.useState(null), [ne, A] = P.useState(null), j = pe(n), [M, ie] = P.useState(!1), N = P.useRef(!1), I = P.useRef(!1), ae = P.useRef(!1);
253
253
  P.useEffect(() => {
254
- if (x) return S(x);
255
- }, [x]), te();
254
+ if (C) return ee(C);
255
+ }, [C]), b();
256
256
  let L = P.useCallback((e) => {
257
257
  let [t, ...n] = j().map((e) => e.ref.current), [r] = n.slice(-1), i = document.activeElement;
258
- for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t && w && (w.scrollTop = 0), n === r && w && (w.scrollTop = w.scrollHeight), n?.focus(), document.activeElement !== i)) return;
259
- }, [j, w]), R = P.useCallback(() => L([O, x]), [
258
+ for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t && T && (T.scrollTop = 0), n === r && T && (T.scrollTop = T.scrollHeight), n?.focus(), document.activeElement !== i)) return;
259
+ }, [j, T]), R = P.useCallback(() => L([O, C]), [
260
260
  L,
261
261
  O,
262
- x
262
+ C
263
263
  ]);
264
264
  P.useEffect(() => {
265
265
  M && R();
266
266
  }, [M, R]);
267
- let { onOpenChange: z, triggerPointerDownPosRef: B } = y;
267
+ let { onOpenChange: z, triggerPointerDownPosRef: B } = x;
268
268
  P.useEffect(() => {
269
- if (x) {
269
+ if (C) {
270
270
  let e = {
271
271
  x: 0,
272
272
  y: 0
@@ -276,7 +276,7 @@ var xe = /* @__PURE__ */ U((e) => {
276
276
  y: Math.abs(Math.round(t.pageY) - (B.current?.y ?? 0))
277
277
  };
278
278
  }, "handlePointerMove"), n = /* @__PURE__ */ U((n) => {
279
- e.x <= 10 && e.y <= 10 ? n.preventDefault() : n.composedPath().includes(x) || z(!1), document.removeEventListener("pointermove", t), B.current = null;
279
+ e.x <= 10 && e.y <= 10 ? n.preventDefault() : n.composedPath().includes(C) || z(!1), document.removeEventListener("pointermove", t), B.current = null;
280
280
  }, "handlePointerUp");
281
281
  return B.current !== null && (document.addEventListener("pointermove", t), document.addEventListener("pointerup", n, {
282
282
  capture: !0,
@@ -286,7 +286,7 @@ var xe = /* @__PURE__ */ U((e) => {
286
286
  };
287
287
  }
288
288
  }, [
289
- x,
289
+ C,
290
290
  z,
291
291
  B
292
292
  ]), P.useEffect(() => {
@@ -302,14 +302,14 @@ var xe = /* @__PURE__ */ U((e) => {
302
302
  let r = !I.current;
303
303
  r && (I.current = !0);
304
304
  let i = !N.current && !n;
305
- y.value !== void 0 && y.value === t || i ? (k(e), i && (N.current = !0)) : r && k(e);
306
- }, [y.value]), H = P.useCallback(() => x?.focus(), [x]), ce = P.useCallback((e, t, n) => {
305
+ x.value !== void 0 && x.value === t || i ? (k(e), i && (N.current = !0)) : r && k(e);
306
+ }, [x.value]), H = P.useCallback(() => C?.focus(), [C]), ce = P.useCallback((e, t, n) => {
307
307
  if (!e) return;
308
308
  let r = !ae.current;
309
309
  r && (ae.current = !0);
310
310
  let i = !N.current && !n;
311
- (y.value !== void 0 && y.value === t || i || r) && ne(e);
312
- }, [y.value]), ue = i === le.Popper ? Ie : Fe, de = ue === Ie ? {
311
+ (x.value !== void 0 && x.value === t || i || r) && A(e);
312
+ }, [x.value]), ue = r === le.Popper ? Ie : Fe, de = ue === Ie ? {
313
313
  side: c,
314
314
  sideOffset: l,
315
315
  align: u,
@@ -323,54 +323,54 @@ var xe = /* @__PURE__ */ U((e) => {
323
323
  } : {};
324
324
  return /* @__PURE__ */ (0, F.jsx)(Me, {
325
325
  scope: n,
326
- content: x,
327
- viewport: w,
326
+ content: C,
327
+ viewport: T,
328
328
  onViewportChange: E,
329
329
  itemRefCallback: se,
330
330
  selectedItem: O,
331
331
  onItemLeave: H,
332
332
  itemTextRefCallback: ce,
333
333
  focusSelectedItem: R,
334
- selectedItemText: A,
335
- position: i,
334
+ selectedItemText: ne,
335
+ position: r,
336
336
  isPositioned: M,
337
337
  searchRef: V,
338
- children: /* @__PURE__ */ (0, F.jsx)(re, {
338
+ children: /* @__PURE__ */ (0, F.jsx)(te, {
339
339
  as: Ne,
340
340
  allowPinchZoom: !0,
341
- children: /* @__PURE__ */ (0, F.jsx)(b, {
341
+ children: /* @__PURE__ */ (0, F.jsx)(re, {
342
342
  asChild: !0,
343
- trapped: y.open,
343
+ trapped: x.open,
344
344
  onMountAutoFocus: (e) => {
345
345
  e.preventDefault();
346
346
  },
347
- onUnmountAutoFocus: T(a, (e) => {
348
- y.trigger?.focus({ preventScroll: !0 }), e.preventDefault();
347
+ onUnmountAutoFocus: y(a, (e) => {
348
+ x.trigger?.focus({ preventScroll: !0 }), e.preventDefault();
349
349
  }),
350
- children: /* @__PURE__ */ (0, F.jsx)(D, {
350
+ children: /* @__PURE__ */ (0, F.jsx)(S, {
351
351
  asChild: !0,
352
352
  disableOutsidePointerEvents: !0,
353
353
  onEscapeKeyDown: o,
354
354
  onPointerDownOutside: s,
355
355
  onFocusOutside: (e) => e.preventDefault(),
356
- onDismiss: () => y.onOpenChange(!1),
356
+ onDismiss: () => x.onOpenChange(!1),
357
357
  children: /* @__PURE__ */ (0, F.jsx)(ue, {
358
358
  role: "listbox",
359
- id: y.contentId,
360
- "data-state": y.open ? "open" : "closed",
361
- dir: y.dir,
359
+ id: x.contentId,
360
+ "data-state": x.open ? "open" : "closed",
361
+ dir: x.dir,
362
362
  onContextMenu: (e) => e.preventDefault(),
363
363
  ...v,
364
364
  ...de,
365
365
  onPlaced: () => ie(!0),
366
- ref: ee,
366
+ ref: D,
367
367
  style: {
368
368
  display: "flex",
369
369
  flexDirection: "column",
370
370
  outline: "none",
371
371
  ...v.style
372
372
  },
373
- onKeyDown: T(v.onKeyDown, (e) => {
373
+ onKeyDown: y(v.onKeyDown, (e) => {
374
374
  let t = e.ctrlKey || e.altKey || e.metaKey;
375
375
  if (e.key === "Tab" && e.preventDefault(), !t && e.key.length === 1 && oe(e.key), [
376
376
  "ArrowUp",
@@ -392,17 +392,17 @@ var xe = /* @__PURE__ */ U((e) => {
392
392
  })
393
393
  });
394
394
  }, "SelectContentImpl")), Fe = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
395
- let { __scopeSelect: n, onPlaced: i, ...a } = e, o = q(J, n), s = X(J, n), [c, l] = P.useState(null), [u, d] = P.useState(null), f = r(t, d), p = pe(n), m = P.useRef(!1), h = P.useRef(!0), { viewport: g, selectedItem: _, selectedItemText: v, focusSelectedItem: y } = s, b = P.useCallback(() => {
395
+ let { __scopeSelect: n, onPlaced: r, ...a } = e, o = q(J, n), s = X(J, n), [c, l] = P.useState(null), [u, d] = P.useState(null), f = i(t, d), p = pe(n), m = P.useRef(!1), h = P.useRef(!0), { viewport: g, selectedItem: _, selectedItemText: v, focusSelectedItem: y } = s, b = P.useCallback(() => {
396
396
  if (o.trigger && o.valueNode && c && u && g && _ && v) {
397
- let e = o.trigger.getBoundingClientRect(), t = u.getBoundingClientRect(), n = o.valueNode.getBoundingClientRect(), r = v.getBoundingClientRect();
397
+ let e = o.trigger.getBoundingClientRect(), t = u.getBoundingClientRect(), n = o.valueNode.getBoundingClientRect(), i = v.getBoundingClientRect();
398
398
  if (o.dir !== ue.RTL) {
399
- let i = r.left - t.left, a = n.left - i, o = e.left - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - Y, d = H(a, [Y, Math.max(Y, u - l)]);
399
+ let r = i.left - t.left, a = n.left - r, o = e.left - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - Y, d = H(a, [Y, Math.max(Y, u - l)]);
400
400
  c.style.minWidth = s + "px", c.style.left = d + "px";
401
401
  } else {
402
- let i = t.right - r.right, a = window.innerWidth - n.right - i, o = window.innerWidth - e.right - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - Y, d = H(a, [Y, Math.max(Y, u - l)]);
402
+ let r = t.right - i.right, a = window.innerWidth - n.right - r, o = window.innerWidth - e.right - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - Y, d = H(a, [Y, Math.max(Y, u - l)]);
403
403
  c.style.minWidth = s + "px", c.style.right = d + "px";
404
404
  }
405
- let a = p(), s = window.innerHeight - Y * 2, l = g.scrollHeight, d = window.getComputedStyle(u), f = parseInt(d.borderTopWidth, 10), h = parseInt(d.paddingTop, 10), y = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = f + h + l + b + y, S = Math.min(_.offsetHeight * 5, x), C = window.getComputedStyle(g), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - Y, ee = s - E, D = _.offsetHeight / 2, O = _.offsetTop + D, k = f + h + O, A = x - k;
405
+ let a = p(), s = window.innerHeight - Y * 2, l = g.scrollHeight, d = window.getComputedStyle(u), f = parseInt(d.borderTopWidth, 10), h = parseInt(d.paddingTop, 10), y = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = f + h + l + b + y, S = Math.min(_.offsetHeight * 5, x), C = window.getComputedStyle(g), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - Y, ee = s - E, D = _.offsetHeight / 2, O = _.offsetTop + D, k = f + h + O, te = x - k;
406
406
  if (k <= E) {
407
407
  let e = a.length > 0 && _ === a[a.length - 1].ref.current;
408
408
  c.style.bottom = "0px";
@@ -411,10 +411,10 @@ var xe = /* @__PURE__ */ U((e) => {
411
411
  } else {
412
412
  let e = a.length > 0 && _ === a[0].ref.current;
413
413
  c.style.top = "0px";
414
- let t = Math.max(E, f + g.offsetTop + (e ? w : 0) + D) + A;
414
+ let t = Math.max(E, f + g.offsetTop + (e ? w : 0) + D) + te;
415
415
  c.style.height = t + "px", g.scrollTop = k - E + g.offsetTop;
416
416
  }
417
- c.style.margin = `${Y}px 0`, c.style.minHeight = S + "px", c.style.maxHeight = s + "px", i?.(), requestAnimationFrame(() => m.current = !0);
417
+ c.style.margin = `${Y}px 0`, c.style.minHeight = S + "px", c.style.maxHeight = s + "px", r?.(), requestAnimationFrame(() => m.current = !0);
418
418
  }
419
419
  }, [
420
420
  p,
@@ -426,30 +426,30 @@ var xe = /* @__PURE__ */ U((e) => {
426
426
  _,
427
427
  v,
428
428
  o.dir,
429
- i
429
+ r
430
430
  ]);
431
- w(() => b(), [b]);
432
- let [x, S] = P.useState();
433
- w(() => {
434
- u && S(window.getComputedStyle(u).zIndex);
431
+ A(() => b(), [b]);
432
+ let [S, C] = P.useState();
433
+ A(() => {
434
+ u && C(window.getComputedStyle(u).zIndex);
435
435
  }, [u]);
436
- let C = P.useCallback((e) => {
436
+ let w = P.useCallback((e) => {
437
437
  e && h.current === !0 && (b(), y?.(), h.current = !1);
438
438
  }, [b, y]);
439
439
  return /* @__PURE__ */ (0, F.jsx)(Le, {
440
440
  scope: n,
441
441
  contentWrapper: c,
442
442
  shouldExpandOnScrollRef: m,
443
- onScrollButtonChange: C,
443
+ onScrollButtonChange: w,
444
444
  children: /* @__PURE__ */ (0, F.jsx)("div", {
445
445
  ref: l,
446
446
  style: {
447
447
  display: "flex",
448
448
  flexDirection: "column",
449
449
  position: "fixed",
450
- zIndex: x
450
+ zIndex: S
451
451
  },
452
- children: /* @__PURE__ */ (0, F.jsx)(j.div, {
452
+ children: /* @__PURE__ */ (0, F.jsx)(x.div, {
453
453
  ...a,
454
454
  ref: f,
455
455
  style: {
@@ -479,13 +479,13 @@ var xe = /* @__PURE__ */ U((e) => {
479
479
  }
480
480
  });
481
481
  }, "SelectPopperPosition")), [Le, Re] = K(J, {}), ze = "SelectViewport", Be = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
482
- let { __scopeSelect: n, nonce: i, ...a } = e, o = X(ze, n), s = Re(ze, n), c = r(t, o.onViewportChange), l = P.useRef(0);
482
+ let { __scopeSelect: n, nonce: r, ...a } = e, o = X(ze, n), s = Re(ze, n), c = i(t, o.onViewportChange), l = P.useRef(0);
483
483
  return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("style", {
484
484
  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}" },
485
- nonce: i
485
+ nonce: r
486
486
  }), /* @__PURE__ */ (0, F.jsx)(G.Slot, {
487
487
  scope: n,
488
- children: /* @__PURE__ */ (0, F.jsx)(j.div, {
488
+ children: /* @__PURE__ */ (0, F.jsx)(x.div, {
489
489
  "data-radix-select-viewport": "",
490
490
  role: "presentation",
491
491
  ...a,
@@ -496,7 +496,7 @@ var xe = /* @__PURE__ */ U((e) => {
496
496
  overflow: "hidden auto",
497
497
  ...a.style
498
498
  },
499
- onScroll: T(a.onScroll, (e) => {
499
+ onScroll: y(a.onScroll, (e) => {
500
500
  let t = e.currentTarget, { contentWrapper: n, shouldExpandOnScrollRef: r } = s;
501
501
  if (r?.current && n) {
502
502
  let e = Math.abs(l.current - t.scrollTop);
@@ -513,11 +513,11 @@ var xe = /* @__PURE__ */ U((e) => {
513
513
  })
514
514
  })] });
515
515
  }, "SelectViewport")), [Ve, He] = K("SelectGroup"), Ue = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
516
- let { __scopeSelect: n, ...r } = e, i = C();
516
+ let { __scopeSelect: n, ...r } = e, i = E();
517
517
  return /* @__PURE__ */ (0, F.jsx)(Ve, {
518
518
  scope: n,
519
519
  id: i,
520
- children: /* @__PURE__ */ (0, F.jsx)(j.div, {
520
+ children: /* @__PURE__ */ (0, F.jsx)(x.div, {
521
521
  role: "group",
522
522
  "aria-labelledby": i,
523
523
  ...r,
@@ -526,19 +526,19 @@ var xe = /* @__PURE__ */ U((e) => {
526
526
  });
527
527
  }, "SelectGroup")), We = "SelectLabel", Ge = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
528
528
  let { __scopeSelect: n, ...r } = e, i = He(We, n);
529
- return /* @__PURE__ */ (0, F.jsx)(j.div, {
529
+ return /* @__PURE__ */ (0, F.jsx)(x.div, {
530
530
  id: i.id,
531
531
  ...r,
532
532
  ref: t
533
533
  });
534
534
  }, "SelectLabel")), Ke = "SelectItem", [qe, Je] = K(Ke), Ye = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
535
- let { __scopeSelect: n, value: i, disabled: a = !1, textValue: o, ...s } = e, c = q(Ke, n), l = X(Ke, n), u = c.value === i, [d, f] = P.useState(o ?? ""), [p, m] = P.useState(!1), h = x((e) => l.itemRefCallback?.(e, i, a)), g = r(t, h), _ = C(), v = P.useRef("touch");
536
- function y(e) {
537
- c.hasConsumerStoppedPropagationRef.current = e.isPropagationStopped(), c.onUserSelect(i), c.onOpenChange(!1);
535
+ let { __scopeSelect: n, value: r, disabled: a = !1, textValue: o, ...s } = e, c = q(Ke, n), l = X(Ke, n), u = c.value === r, [d, f] = P.useState(o ?? ""), [p, m] = P.useState(!1), h = k((e) => l.itemRefCallback?.(e, r, a)), g = i(t, h), _ = E(), v = P.useRef("touch");
536
+ function b(e) {
537
+ c.hasConsumerStoppedPropagationRef.current = e.isPropagationStopped(), c.onUserSelect(r), c.onOpenChange(!1);
538
538
  }
539
- return U(y, "handleSelect"), /* @__PURE__ */ (0, F.jsx)(qe, {
539
+ return U(b, "handleSelect"), /* @__PURE__ */ (0, F.jsx)(qe, {
540
540
  scope: n,
541
- value: i,
541
+ value: r,
542
542
  disabled: a,
543
543
  textId: _,
544
544
  isSelected: u,
@@ -547,10 +547,10 @@ var xe = /* @__PURE__ */ U((e) => {
547
547
  }, []),
548
548
  children: /* @__PURE__ */ (0, F.jsx)(G.ItemSlot, {
549
549
  scope: n,
550
- value: i,
550
+ value: r,
551
551
  disabled: a,
552
552
  textValue: d,
553
- children: /* @__PURE__ */ (0, F.jsx)(j.div, {
553
+ children: /* @__PURE__ */ (0, F.jsx)(x.div, {
554
554
  role: "option",
555
555
  "aria-labelledby": _,
556
556
  "data-highlighted": p ? "" : void 0,
@@ -561,31 +561,31 @@ var xe = /* @__PURE__ */ U((e) => {
561
561
  tabIndex: a ? void 0 : -1,
562
562
  ...s,
563
563
  ref: g,
564
- onFocus: T(s.onFocus, () => m(!0)),
565
- onBlur: T(s.onBlur, () => m(!1)),
566
- onClick: T(s.onClick, (e) => {
567
- a || v.current !== "mouse" && y(e);
564
+ onFocus: y(s.onFocus, () => m(!0)),
565
+ onBlur: y(s.onBlur, () => m(!1)),
566
+ onClick: y(s.onClick, (e) => {
567
+ a || v.current !== "mouse" && b(e);
568
568
  }),
569
- onPointerUp: T(s.onPointerUp, (e) => {
570
- a || v.current === "mouse" && y(e);
569
+ onPointerUp: y(s.onPointerUp, (e) => {
570
+ a || v.current === "mouse" && b(e);
571
571
  }),
572
- onPointerDown: T(s.onPointerDown, (e) => {
572
+ onPointerDown: y(s.onPointerDown, (e) => {
573
573
  v.current = e.pointerType;
574
574
  }),
575
- onPointerMove: T(s.onPointerMove, (e) => {
575
+ onPointerMove: y(s.onPointerMove, (e) => {
576
576
  v.current = e.pointerType, a ? l.onItemLeave?.() : v.current === "mouse" && e.currentTarget.focus({ preventScroll: !0 });
577
577
  }),
578
- onPointerLeave: T(s.onPointerLeave, (e) => {
578
+ onPointerLeave: y(s.onPointerLeave, (e) => {
579
579
  e.currentTarget === document.activeElement && l.onItemLeave?.();
580
580
  }),
581
- onKeyDown: T(s.onKeyDown, (e) => {
582
- a || e.target !== e.currentTarget || (l.searchRef?.current === "" || e.key !== " ") && (fe.includes(e.key) && y(e), e.key === " " && e.preventDefault());
581
+ onKeyDown: y(s.onKeyDown, (e) => {
582
+ a || e.target !== e.currentTarget || (l.searchRef?.current === "" || e.key !== " ") && (fe.includes(e.key) && b(e), e.key === " " && e.preventDefault());
583
583
  })
584
584
  })
585
585
  })
586
586
  });
587
587
  }, "SelectItem")), Xe = "SelectItemText", Ze = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
588
- let { __scopeSelect: n, className: i, style: a, ...o } = e, s = q(Xe, n), c = X(Xe, n), l = Je(Xe, n), u = ye(Xe, n), [d, f] = P.useState(null), p = x((e) => c.itemTextRefCallback?.(e, l.value, l.disabled)), m = r(t, f, l.onItemTextChange, p), h = d?.textContent, g = P.useMemo(() => /* @__PURE__ */ (0, F.jsx)("option", {
588
+ let { __scopeSelect: n, className: r, style: a, ...o } = e, s = q(Xe, n), c = X(Xe, n), l = Je(Xe, n), u = ye(Xe, n), [d, f] = P.useState(null), p = k((e) => c.itemTextRefCallback?.(e, l.value, l.disabled)), m = i(t, f, l.onItemTextChange, p), h = d?.textContent, g = P.useMemo(() => /* @__PURE__ */ (0, F.jsx)("option", {
589
589
  value: l.value,
590
590
  disabled: l.disabled,
591
591
  children: h
@@ -594,25 +594,25 @@ var xe = /* @__PURE__ */ U((e) => {
594
594
  l.value,
595
595
  h
596
596
  ]), { onNativeOptionAdd: _, onNativeOptionRemove: v } = u;
597
- return w(() => (_(g), () => v(g)), [
597
+ return A(() => (_(g), () => v(g)), [
598
598
  _,
599
599
  v,
600
600
  g
601
- ]), /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(j.span, {
601
+ ]), /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(x.span, {
602
602
  id: l.textId,
603
603
  ...o,
604
604
  ref: m
605
605
  }), l.isSelected && s.valueNode && !s.valueNodeHasChildren && !Z(s.value) ? N.createPortal(o.children, s.valueNode) : null] });
606
606
  }, "SelectItemText")), Qe = "SelectItemIndicator", $e = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
607
607
  let { __scopeSelect: n, ...r } = e;
608
- return Je(Qe, n).isSelected ? /* @__PURE__ */ (0, F.jsx)(j.span, {
608
+ return Je(Qe, n).isSelected ? /* @__PURE__ */ (0, F.jsx)(x.span, {
609
609
  "aria-hidden": !0,
610
610
  ...r,
611
611
  ref: t
612
612
  }) : null;
613
613
  }, "SelectItemIndicator")), et = "SelectScrollUpButton", tt = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
614
- let n = X(et, e.__scopeSelect), i = Re(et, e.__scopeSelect), [a, o] = P.useState(!1), s = r(t, i.onScrollButtonChange);
615
- return w(() => {
614
+ let n = X(et, e.__scopeSelect), r = Re(et, e.__scopeSelect), [a, o] = P.useState(!1), s = i(t, r.onScrollButtonChange);
615
+ return A(() => {
616
616
  if (n.viewport && n.isPositioned) {
617
617
  let e = function() {
618
618
  let e = t.scrollTop > 0;
@@ -631,8 +631,8 @@ var xe = /* @__PURE__ */ U((e) => {
631
631
  }
632
632
  }) : null;
633
633
  }, "SelectScrollUpButton")), nt = "SelectScrollDownButton", rt = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
634
- let n = X(nt, e.__scopeSelect), i = Re(nt, e.__scopeSelect), [a, o] = P.useState(!1), s = r(t, i.onScrollButtonChange);
635
- return w(() => {
634
+ let n = X(nt, e.__scopeSelect), r = Re(nt, e.__scopeSelect), [a, o] = P.useState(!1), s = i(t, r.onScrollButtonChange);
635
+ return A(() => {
636
636
  if (n.viewport && n.isPositioned) {
637
637
  let e = function() {
638
638
  let e = t.scrollHeight - t.clientHeight, n = Math.ceil(t.scrollTop) < e;
@@ -654,9 +654,9 @@ var xe = /* @__PURE__ */ U((e) => {
654
654
  let { __scopeSelect: n, onAutoScroll: r, ...i } = e, a = X("SelectScrollButton", n), o = P.useRef(null), s = pe(n), c = P.useCallback(() => {
655
655
  o.current !== null && (window.clearInterval(o.current), o.current = null);
656
656
  }, []);
657
- return P.useEffect(() => () => c(), [c]), w(() => {
657
+ return P.useEffect(() => () => c(), [c]), A(() => {
658
658
  s().find((e) => e.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
659
- }, [s]), /* @__PURE__ */ (0, F.jsx)(j.div, {
659
+ }, [s]), /* @__PURE__ */ (0, F.jsx)(x.div, {
660
660
  "aria-hidden": !0,
661
661
  ...i,
662
662
  ref: t,
@@ -664,25 +664,25 @@ var xe = /* @__PURE__ */ U((e) => {
664
664
  flexShrink: 0,
665
665
  ...i.style
666
666
  },
667
- onPointerDown: T(i.onPointerDown, () => {
667
+ onPointerDown: y(i.onPointerDown, () => {
668
668
  o.current === null && (o.current = window.setInterval(r, 50));
669
669
  }),
670
- onPointerMove: T(i.onPointerMove, () => {
670
+ onPointerMove: y(i.onPointerMove, () => {
671
671
  a.onItemLeave?.(), o.current === null && (o.current = window.setInterval(r, 50));
672
672
  }),
673
- onPointerLeave: T(i.onPointerLeave, () => {
673
+ onPointerLeave: y(i.onPointerLeave, () => {
674
674
  c();
675
675
  })
676
676
  });
677
677
  }, "SelectScrollButtonImpl")), at = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
678
678
  let { __scopeSelect: n, ...r } = e;
679
- return /* @__PURE__ */ (0, F.jsx)(j.div, {
679
+ return /* @__PURE__ */ (0, F.jsx)(x.div, {
680
680
  "aria-hidden": !0,
681
681
  ...r,
682
682
  ref: t
683
683
  });
684
684
  }, "SelectSeparator")), ot = "SelectBubbleInput", st = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function({ __scopeSelect: e, ...t }, n) {
685
- let i = q(ot, e), { value: a, onValueChange: o, required: s, disabled: c, name: l, autoComplete: u, form: f, userSelection: p } = i, { nativeOptions: m, nativeSelectKey: h } = i, g = P.useRef(null), _ = r(n, g), v = a ?? "", y = P.useRef(v), b = P.useRef(p), x = P.useRef(!1), S = Array.from(m).some((e) => (e.props.value ?? "") === "");
685
+ let r = q(ot, e), { value: a, onValueChange: o, required: s, disabled: c, name: l, autoComplete: u, form: f, userSelection: p } = r, { nativeOptions: m, nativeSelectKey: h } = r, g = P.useRef(null), _ = i(n, g), v = a ?? "", y = P.useRef(v), b = P.useRef(p), S = P.useRef(!1), C = Array.from(m).some((e) => (e.props.value ?? "") === "");
686
686
  return P.useEffect(() => {
687
687
  let e = g.current;
688
688
  if (!e) return;
@@ -692,11 +692,11 @@ var xe = /* @__PURE__ */ U((e) => {
692
692
  y.current = v;
693
693
  let a = r && i;
694
694
  if (r && !i && p.value !== v && !p.hasConsumerStoppedPropagation && n) {
695
- x.current = !0;
695
+ S.current = !0;
696
696
  try {
697
697
  n.call(e, p.value), e.dispatchEvent(new Event("change", { bubbles: !0 }));
698
698
  } finally {
699
- x.current = !1, n.call(e, v);
699
+ S.current = !1, n.call(e, v);
700
700
  }
701
701
  return;
702
702
  }
@@ -705,7 +705,7 @@ var xe = /* @__PURE__ */ U((e) => {
705
705
  let t = new Event("change", { bubbles: o });
706
706
  n.call(e, v), e.dispatchEvent(t);
707
707
  }
708
- }, [v, p]), /* @__PURE__ */ (0, F.jsxs)(j.select, {
708
+ }, [v, p]), /* @__PURE__ */ (0, F.jsxs)(x.select, {
709
709
  "aria-hidden": !0,
710
710
  required: s,
711
711
  tabIndex: -1,
@@ -714,7 +714,7 @@ var xe = /* @__PURE__ */ U((e) => {
714
714
  disabled: c,
715
715
  form: f,
716
716
  onChange: (e) => {
717
- x.current || o(e.target.value);
717
+ S.current || o(e.target.value);
718
718
  },
719
719
  ...t,
720
720
  style: {
@@ -723,7 +723,7 @@ var xe = /* @__PURE__ */ U((e) => {
723
723
  },
724
724
  ref: _,
725
725
  defaultValue: v,
726
- children: [Z(a) && !S ? /* @__PURE__ */ (0, F.jsx)("option", { value: "" }) : null, Array.from(m)]
726
+ children: [Z(a) && !C ? /* @__PURE__ */ (0, F.jsx)("option", { value: "" }) : null, Array.from(m)]
727
727
  }, h);
728
728
  }, "SelectBubbleInput"));
729
729
  function ct(e) {
@@ -735,7 +735,7 @@ function Z(e) {
735
735
  }
736
736
  U(Z, "shouldShowPlaceholder");
737
737
  function lt(e) {
738
- let t = x(e), n = P.useRef(""), r = P.useRef(0), i = P.useCallback((e) => {
738
+ let t = k(e), n = P.useRef(""), r = P.useRef(0), i = P.useCallback((e) => {
739
739
  let i = n.current + e;
740
740
  t(i);
741
741
  function a(e) {
@@ -1013,7 +1013,7 @@ function Wt(e = {}) {
1013
1013
  }
1014
1014
  //#endregion
1015
1015
  //#region src/components/ui/menu-items.tsx
1016
- var $ = s(), Gt = i("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md forced-color-adjust-none forced-colors:border-[CanvasText] forced-colors:bg-[Canvas] forced-colors:text-[CanvasText]", { variants: { subcontent: { true: "shadow-lg" } } }), Kt = i("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground forced-color-adjust-none forced-colors:data-[highlighted]:bg-[Highlight] forced-colors:data-[highlighted]:text-[HighlightText] forced-colors:data-[state=open]:bg-[Highlight] forced-colors:data-[state=open]:text-[HighlightText]", { variants: { inset: { true: "pl-8" } } }), qt = "data-disabled:pointer-events-none data-disabled:opacity-50 forced-colors:data-disabled:text-[GrayText]", Jt = i(t("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground forced-color-adjust-none forced-colors:data-[highlighted]:bg-[Highlight] forced-colors:data-[highlighted]:text-[HighlightText]", qt), { variants: {} }), Yt = i("absolute left-2 flex h-3.5 w-3.5 items-center justify-center", { variants: {} }), Xt = i("px-2 py-1.5 text-sm font-semibold", { variants: { inset: { true: "pl-8" } } }), Zt = i(t("menu-item relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden forced-color-adjust-none forced-colors:data-[highlighted]:bg-[Highlight] forced-colors:data-[highlighted]:text-[HighlightText] forced-colors:aria-selected:bg-[Highlight] forced-colors:aria-selected:text-[HighlightText]", qt), {
1016
+ var $ = s(), Gt = n("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md forced-color-adjust-none forced-colors:border-[CanvasText] forced-colors:bg-[Canvas] forced-colors:text-[CanvasText]", { variants: { subcontent: { true: "shadow-lg" } } }), Kt = n("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground forced-color-adjust-none forced-colors:data-[highlighted]:bg-[Highlight] forced-colors:data-[highlighted]:text-[HighlightText] forced-colors:data-[state=open]:bg-[Highlight] forced-colors:data-[state=open]:text-[HighlightText]", { variants: { inset: { true: "pl-8" } } }), qt = "data-disabled:pointer-events-none data-disabled:opacity-50 forced-colors:data-disabled:text-[GrayText]", Jt = n(t("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground forced-color-adjust-none forced-colors:data-[highlighted]:bg-[Highlight] forced-colors:data-[highlighted]:text-[HighlightText]", qt), { variants: {} }), Yt = n("absolute left-2 flex h-3.5 w-3.5 items-center justify-center", { variants: {} }), Xt = n("px-2 py-1.5 text-sm font-semibold", { variants: { inset: { true: "pl-8" } } }), Zt = n(t("menu-item relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden forced-color-adjust-none forced-colors:data-[highlighted]:bg-[Highlight] forced-colors:data-[highlighted]:text-[HighlightText] forced-colors:aria-selected:bg-[Highlight] forced-colors:aria-selected:text-[HighlightText]", qt), {
1017
1017
  variants: {
1018
1018
  inset: { true: "pl-8" },
1019
1019
  variant: {
@@ -1025,7 +1025,7 @@ var $ = s(), Gt = i("z-50 min-w-32 overflow-hidden rounded-md border bg-popover
1025
1025
  }
1026
1026
  },
1027
1027
  defaultVariants: { variant: "default" }
1028
- }), Qt = i("-mx-1 my-1 h-px bg-border last:hidden", { variants: {} }), $t = (e) => {
1028
+ }), Qt = n("-mx-1 my-1 h-px bg-border last:hidden", { variants: {} }), $t = (e) => {
1029
1029
  let n = (0, $.c)(8), r, i;
1030
1030
  n[0] === e ? (r = n[1], i = n[2]) : ({className: r, ...i} = e, n[0] = e, n[1] = r, n[2] = i);
1031
1031
  let a;
@@ -1039,7 +1039,7 @@ var $ = s(), Gt = i("z-50 min-w-32 overflow-hidden rounded-md border bg-popover
1039
1039
  $t.displayName = "MenuShortcut";
1040
1040
  //#endregion
1041
1041
  //#region src/components/ui/label.tsx
1042
- var en = i("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), tn = P.forwardRef((e, n) => {
1042
+ var en = n("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), tn = P.forwardRef((e, n) => {
1043
1043
  let r = (0, $.c)(9), i, a;
1044
1044
  r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
1045
1045
  let o;
@@ -1054,32 +1054,32 @@ var en = i("text-sm font-medium leading-none peer-disabled:cursor-not-allowed pe
1054
1054
  tn.displayName = V.displayName;
1055
1055
  //#endregion
1056
1056
  //#region src/components/ui/native-select.tsx
1057
- var nn = i("flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer forced-color-adjust-none forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText] forced-colors:disabled:text-[GrayText]", {
1057
+ var nn = n("flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer forced-color-adjust-none forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText] forced-colors:disabled:text-[GrayText]", {
1058
1058
  variants: { variant: {
1059
1059
  default: "shadow-xs-solid border border-input hover:shadow-sm-solid focus-visible:border-primary focus-visible:shadow-md-solid disabled:hover:shadow-xs-solid forced-colors:border-[ButtonText] forced-colors:disabled:border-[GrayText]",
1060
1060
  ghost: "opacity-70 hover:opacity-100 focus:opacity-100"
1061
1061
  } },
1062
1062
  defaultVariants: { variant: "default" }
1063
- }), rn = P.forwardRef((e, r) => {
1063
+ }), rn = P.forwardRef((e, n) => {
1064
1064
  let i = (0, $.c)(12), a, o, s;
1065
1065
  i[0] === e ? (a = i[1], o = i[2], s = i[3]) : ({className: o, children: a, ...s} = e, i[0] = e, i[1] = a, i[2] = o, i[3] = s);
1066
1066
  let c;
1067
- i[4] === Symbol.for("react.memo_cache_sentinel") ? (c = n.stopPropagation(), i[4] = c) : c = i[4];
1067
+ i[4] === Symbol.for("react.memo_cache_sentinel") ? (c = r.stopPropagation(), i[4] = c) : c = i[4];
1068
1068
  let l;
1069
1069
  i[5] === o ? l = i[6] : (l = t(nn({}), o), i[5] = o, i[6] = l);
1070
1070
  let u;
1071
- return i[7] !== a || i[8] !== s || i[9] !== r || i[10] !== l ? (u = /* @__PURE__ */ (0, F.jsx)("select", {
1072
- ref: r,
1071
+ return i[7] !== a || i[8] !== s || i[9] !== n || i[10] !== l ? (u = /* @__PURE__ */ (0, F.jsx)("select", {
1072
+ ref: n,
1073
1073
  onClick: c,
1074
1074
  className: l,
1075
1075
  ...s,
1076
1076
  children: a
1077
- }), i[7] = a, i[8] = s, i[9] = r, i[10] = l, i[11] = u) : u = i[11], u;
1077
+ }), i[7] = a, i[8] = s, i[9] = n, i[10] = l, i[11] = u) : u = i[11], u;
1078
1078
  });
1079
1079
  rn.displayName = "NativeSelect";
1080
1080
  //#endregion
1081
1081
  //#region src/components/ui/select.tsx
1082
- var an = xe, on = Ue, sn = k(ke), cn = Te, ln = P.forwardRef((e, n) => {
1082
+ var an = xe, on = Ue, sn = D(ke), cn = Te, ln = P.forwardRef((e, n) => {
1083
1083
  let r = (0, $.c)(19), i, a, o, s, c, l;
1084
1084
  r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4], c = r[5], l = r[6]) : ({className: a, children: i, onClear: o, variant: l, hideChevron: c, ...s} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = c, r[6] = l);
1085
1085
  let u = c !== void 0 && c, d;
@@ -1126,7 +1126,7 @@ var un = ne(Ae), dn = P.forwardRef((e, n) => {
1126
1126
  children: /* @__PURE__ */ (0, F.jsx)(M, { className: "h-4 w-4 opacity-50" })
1127
1127
  }), r[14] = h) : h = r[14];
1128
1128
  let g;
1129
- return r[15] !== c || r[16] !== o || r[17] !== n || r[18] !== u || r[19] !== m ? (g = /* @__PURE__ */ (0, F.jsx)(sn, { children: /* @__PURE__ */ (0, F.jsx)(ee, { children: /* @__PURE__ */ (0, F.jsxs)(un, {
1129
+ return r[15] !== c || r[16] !== o || r[17] !== n || r[18] !== u || r[19] !== m ? (g = /* @__PURE__ */ (0, F.jsx)(sn, { children: /* @__PURE__ */ (0, F.jsx)(T, { children: /* @__PURE__ */ (0, F.jsxs)(un, {
1130
1130
  ref: n,
1131
1131
  className: u,
1132
1132
  position: c,