ryco-cli 0.1.23 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcpNativeLogging-COepku4a.cjs → AcpNativeLogging-CA6XYzIS.cjs} +1 -1
- package/dist/{AcpNativeLogging-D7e1dn7s.mjs → AcpNativeLogging-D4-VoHrq.mjs} +1 -1
- package/dist/{AzureDevOpsSourceControlProvider-BNGEg1R8.mjs → AzureDevOpsSourceControlProvider-B_E0XXfD.mjs} +2 -2
- package/dist/{AzureDevOpsSourceControlProvider-CrvgKNf2.cjs → AzureDevOpsSourceControlProvider-COmd21c-.cjs} +2 -2
- package/dist/{BitbucketSourceControlProvider-BzhsQwH-.cjs → BitbucketSourceControlProvider-CD8IvXQK.cjs} +2 -2
- package/dist/{BitbucketSourceControlProvider-Bt21jw68.mjs → BitbucketSourceControlProvider-pUKsNXcg.mjs} +2 -2
- package/dist/{ClaudeDriver-C4yu7Jit.mjs → ClaudeDriver-CGifBixr.mjs} +2 -2
- package/dist/{ClaudeDriver-B7mbf51W.cjs → ClaudeDriver-Dry5uJfX.cjs} +2 -2
- package/dist/{CodexDriver-CR0S17Lb.cjs → CodexDriver-BzR8gA8w.cjs} +3 -3
- package/dist/{CodexDriver-DnnqkGoY.mjs → CodexDriver-V4CL9APE.mjs} +3 -3
- package/dist/{CodexTextGeneration-tlfe1S5W.cjs → CodexTextGeneration-DTrSzY-I.cjs} +1 -1
- package/dist/{CodexTextGeneration-Cw-FZbSS.mjs → CodexTextGeneration-DoCidwvI.mjs} +1 -1
- package/dist/{CopilotDriver-GxKLX5pL.mjs → CopilotDriver-Dt13X60f.mjs} +3 -3
- package/dist/{CopilotDriver-IBd27Ji2.cjs → CopilotDriver-rLcA8PSN.cjs} +3 -3
- package/dist/{CursorDriver-C4Enoe9N.cjs → CursorDriver-C3s-8s9F.cjs} +3 -3
- package/dist/{CursorDriver-CNo9Uzo8.mjs → CursorDriver-HIPUs7cz.mjs} +3 -3
- package/dist/{ForgejoSourceControlProvider-BGXysSX6.mjs → ForgejoSourceControlProvider-CmvOAzEG.mjs} +2 -2
- package/dist/{ForgejoSourceControlProvider-Dh6DOoc8.cjs → ForgejoSourceControlProvider-JgiyrMqp.cjs} +2 -2
- package/dist/{GitHubSourceControlProvider-CPCYV8Xo.mjs → GitHubSourceControlProvider-BYuvbcBf.mjs} +2 -2
- package/dist/{GitHubSourceControlProvider-8hsv_kCE.cjs → GitHubSourceControlProvider-CItCpOcC.cjs} +2 -2
- package/dist/{GitLabSourceControlProvider-B0ZbF9Zx.cjs → GitLabSourceControlProvider-CMce22nU.cjs} +2 -2
- package/dist/{GitLabSourceControlProvider-Bvknpaon.mjs → GitLabSourceControlProvider-DZzEaVSi.mjs} +2 -2
- package/dist/{GrokDriver-DSPEmiwq.mjs → GrokDriver-CduUwiOH.mjs} +3 -3
- package/dist/{GrokDriver-RyyFeh_q.cjs → GrokDriver-D0jraOC_.cjs} +3 -3
- package/dist/{OpenCodeDriver-0q44rSQX.mjs → OpenCodeDriver-Bz_uJdMA.mjs} +2 -2
- package/dist/{OpenCodeDriver-CDcvPT9v.cjs → OpenCodeDriver-DxGpgtDS.cjs} +2 -2
- package/dist/{SourceControlProviderDiscoveryCatalog-DreaAH1H.cjs → SourceControlProviderDiscoveryCatalog-Dm_lhrhv.cjs} +1 -1
- package/dist/{SourceControlProviderDiscoveryCatalog-B37RHe2u.mjs → SourceControlProviderDiscoveryCatalog-ZtwPWoxE.mjs} +1 -1
- package/dist/bin.cjs +518 -263
- package/dist/bin.mjs +519 -264
- package/dist/client/assets/AccountSettings-Bv57-JYy.js +1 -0
- package/dist/client/assets/AiFocusSettings-DCPHmJpA.js +1 -0
- package/dist/client/assets/{AnimatedHeight-D9bpLPqe.js → AnimatedHeight-DPqb09B0.js} +1 -1
- package/dist/client/assets/AppearanceSettings-EmTrtb_U.js +1 -0
- package/dist/client/assets/BranchToolbar.logic-CHRK3hDt.js +1 -0
- package/dist/client/assets/BrowserPanel-2Xu08il5.js +1 -0
- package/dist/client/assets/ChatRightPanel-C1VD6GCV.js +194 -0
- package/dist/client/assets/ChatThreadRouteView-CNww3i2J.js +1 -0
- package/dist/client/assets/CommandPaletteDialog-B_f3fKp7.js +1 -0
- package/dist/client/assets/CompositeRoot-B40iitmH.js +1 -0
- package/dist/client/assets/ComputerUseSettings-BJs7jqR0.js +1 -0
- package/dist/client/assets/ConnectionsSettings-B9nfvgLG.js +7 -0
- package/dist/client/assets/ContextHandoffEndpointLabel-BSQOArMR.js +4 -0
- package/dist/client/assets/DiagnosticsSettings-BmrqOKMe.js +2 -0
- package/dist/client/assets/DialogHandle-pelzaaiH.js +1 -0
- package/dist/client/assets/DialogPopup-BLM0vN4N.js +1 -0
- package/dist/client/assets/DialogRoot-CY6ZzEUS.js +1 -0
- package/dist/client/assets/DialogTitle-BvIjMtMm.js +1 -0
- package/dist/client/assets/DialogTrigger-CIeVAA-a.js +1 -0
- package/dist/client/assets/DialogViewport-Cz0OadGI.js +1 -0
- package/dist/client/assets/DraftChatThreadRouteView-DMIGMESb.js +1 -0
- package/dist/client/assets/{ExternalIdentityWeb.logic-pjD4pCDd.js → ExternalIdentityWeb.logic-3rlDV7lT.js} +1 -1
- package/dist/client/assets/GlassSurface-CEVIdyfP.js +1 -0
- package/dist/client/assets/HostedConnectionControls-r9cyZPyF.js +1 -0
- package/dist/client/assets/HostedHubRoot-BkfafJ5x.js +2 -0
- package/dist/client/assets/HostedNativeAuthorizationRoute-CqHuW853.js +2 -0
- package/dist/client/assets/HostedNodeRenameDialog-C7m-nvTj.js +1 -0
- package/dist/client/assets/HostedRelayTrustNotice-DNZQyAX0.js +1 -0
- package/dist/client/assets/IntegrationsSettingsPanel-hul3ysgL.js +2 -0
- package/dist/client/assets/KeybindingsSettings-Cme6omBM.js +7 -0
- package/dist/client/assets/LazyBrowserPanel-COJFwNK7.js +2 -0
- package/dist/client/assets/McpServersSettings-CPeNF8_u.js +6 -0
- package/dist/client/assets/MobileSheet-BZo-RAfm.js +1 -0
- package/dist/client/assets/NodeSecuritySettings-CwT5nEW9.js +1 -0
- package/dist/client/assets/OpinionatedPluginsSettings-D8A1CbMG.js +1 -0
- package/dist/client/assets/PhoneGetAppInterstitial-BBnGXVkR.js +1 -0
- package/dist/client/assets/PhoneHome-BTKOPVjw.js +1 -0
- package/dist/client/assets/PhoneSettingsSurface-DdVCndyt.js +2 -0
- package/dist/client/assets/ProviderModelPicker-DoYEUZrn.js +1 -0
- package/dist/client/assets/ProvidersSettingsPanel-ldDCPVIY.js +1 -0
- package/dist/client/assets/QuitShortcutFeedback-mF7X0WMD.js +1 -0
- package/dist/client/assets/RedactedSensitiveText-DovqFcmM.js +1 -0
- package/dist/client/assets/RootAppShell-CzmEWO9w.js +7 -0
- package/dist/client/assets/Separator-BhAVTIOc.js +1 -0
- package/dist/client/assets/SettingsDialog-ByXgBN0U.js +2 -0
- package/dist/client/assets/SettingsPanels-Bgf4vkrJ.js +3 -0
- package/dist/client/assets/SettingsPanels.editor-d-rVlbeN.js +1 -0
- package/dist/client/assets/SourceControlSettings-dKw0FaN1.js +1 -0
- package/dist/client/assets/StatisticsPage-C2RuqDIK.js +1 -0
- package/dist/client/assets/StatisticsPanel-DqoXnrhQ.js +1 -0
- package/dist/client/assets/StatisticsSettingsLink-C_f31sb4.js +1 -0
- package/dist/client/assets/{ThreadTerminalDrawer-DcZk76Y9.js → ThreadTerminalDrawer-DaLrSTn9.js} +11 -11
- package/dist/client/assets/ThreadWorkspacePanel-BvRZIxZQ.js +2073 -0
- package/dist/client/assets/activity-bn_fBQGf.js +1 -0
- package/dist/client/assets/alert-BmLJh6DH.js +1 -0
- package/dist/client/assets/{appChrome-CiOQzE1d.js → appChrome-Dy57Ve9N.js} +1 -1
- package/dist/client/assets/arrow-left-pzj1cbX3.js +1 -0
- package/dist/client/assets/arrow-right-BW5jU-vo.js +1 -0
- package/dist/client/assets/arrow-up-right-AfC5AaSO.js +1 -0
- package/dist/client/assets/authorization-7xVVtCBu.js +1 -0
- package/dist/client/assets/badge-DnBuGHGL.js +1 -0
- package/dist/client/assets/bot-CsKkSRlb.js +1 -0
- package/dist/client/assets/{capabilities-BTd0MRtv.js → capabilities-DskyVNd2.js} +1 -1
- package/dist/client/assets/chart-column-DhvWXIiH.js +1 -0
- package/dist/client/assets/chevron-right-CITtTwME.js +1 -0
- package/dist/client/assets/clipboard-copy-fJnfdl4H.js +1 -0
- package/dist/client/assets/data-list-_E-Al1sf.js +1 -0
- package/dist/client/assets/desktopWorkspace-DycXKuMm.js +1 -0
- package/dist/client/assets/download-CLQzE1di.js +1 -0
- package/dist/client/assets/editorPreferences-Bg624RVT.js +1 -0
- package/dist/client/assets/empty-YXFtCUDN.js +1 -0
- package/dist/client/assets/group-DOCkUmuY.js +1 -0
- package/dist/client/assets/hostedConnectionCoordinator-JZ1dLx4v.js +1 -0
- package/dist/client/assets/{hostedPairing-PogXRAb7.js → hostedPairing-B_ylEEDa.js} +1 -1
- package/dist/client/assets/hubRoutes-C2S5of9_.js +1 -0
- package/dist/client/assets/{index-D5j6WG7w.js → index-CvRFRkBK.js} +2 -2
- package/dist/client/assets/input-C2xv8mMt.js +1 -0
- package/dist/client/assets/kbd-4-4mGdIa.js +1 -0
- package/dist/client/assets/key-round-CYcb9lAa.js +1 -0
- package/dist/client/assets/layers-CGlOWYxu.js +1 -0
- package/dist/client/assets/log-out-CZW2EpNJ.js +1 -0
- package/dist/client/assets/{logging-DfaR8ACp.js → logging-BpmZOfmu.js} +1 -1
- package/dist/client/assets/main-CC-U8LrA.css +2 -0
- package/dist/client/assets/main-CzDOnLFw.js +9 -0
- package/dist/client/assets/palette-CQOuNfSO.js +1 -0
- package/dist/client/assets/play-CPVy9wwV.js +1 -0
- package/dist/client/assets/primary-CjhRI8fe.js +2 -0
- package/dist/client/assets/providerDriverMeta-BVHpFupf.js +1 -0
- package/dist/client/assets/providerModels-BsybzP4P.js +1 -0
- package/dist/client/assets/{qr-code-Bun4dpvz.js → qr-code-BPqDlVMn.js} +1 -1
- package/dist/client/assets/qr-code-C6BVTc4V.js +1 -0
- package/dist/client/assets/radio-group-C8qudOQH.js +2 -0
- package/dist/client/assets/refresh-cw-B5Cz1z3e.js +1 -0
- package/dist/client/assets/runtime-Bxg7k81u.js +17 -0
- package/dist/client/assets/save-C7zM6ey6.js +1 -0
- package/dist/client/assets/scroll-area-5OU_pvTW.js +1 -0
- package/dist/client/assets/scrollEdges-qnEXfIOg.js +1 -0
- package/dist/client/assets/separator-B5HfRiaO.js +1 -0
- package/dist/client/assets/settingsLayout-CfKq88KD.js +1 -0
- package/dist/client/assets/sheet-B9gQDy_I.js +1 -0
- package/dist/client/assets/shield-alert-7yBlEyOs.js +1 -0
- package/dist/client/assets/shield-check-CnKgVJ0F.js +1 -0
- package/dist/client/assets/shield-rdjnBE2Q.js +1 -0
- package/dist/client/assets/sidebar-BdvL1Pbj.js +1 -0
- package/dist/client/assets/sidebarProjectFolders-BH8XBqNe.js +4 -0
- package/dist/client/assets/sidebarStatusText-CZKsUFBD.js +1 -0
- package/dist/client/assets/skeleton-CoyLqyaB.js +1 -0
- package/dist/client/assets/smartphone-CBgpMHXR.js +1 -0
- package/dist/client/assets/sparkles-w-UZXQx1.js +1 -0
- package/dist/client/assets/src-Bi-5Nw9C.js +14 -0
- package/dist/client/assets/star-BZ-RtSFD.js +1 -0
- package/dist/client/assets/switch-CEJEmLe7.js +48 -0
- package/dist/client/assets/toastHelpers-CSQRKo4F.js +1 -0
- package/dist/client/assets/toggle-DVGrNHjq.js +1 -0
- package/dist/client/assets/toggle-group-CNDOfNhH.js +1 -0
- package/dist/client/assets/tokenModePresentation-CQNdC9CW.js +1 -0
- package/dist/client/assets/tooltip-B7Z4qomY.js +1 -0
- package/dist/client/assets/unplug-CRUwFNFw.js +1 -0
- package/dist/client/assets/useAppSidebarCollapsed-wq6czkNJ.js +1 -0
- package/dist/client/assets/useBaseUiId-OYaGjnkh.js +1 -0
- package/dist/client/assets/useLabelableId-VMc-yITe.js +1 -0
- package/dist/client/assets/useNavigate-DVi0rBlf.js +1 -0
- package/dist/client/assets/usePhoneThreadActions-CwwHikjB.js +1 -0
- package/dist/client/assets/usePopupViewport-BcSIK_ph.js +1 -0
- package/dist/client/assets/useScrollLock-BQf9VYJT.js +1 -0
- package/dist/client/assets/{useStatistics-DfLU9_Qu.js → useStatistics-DczKdEfy.js} +15 -15
- package/dist/client/assets/useTriggerFocusGuards-DjP-D0_a.js +1 -0
- package/dist/client/assets/useValueChanged-CRwCkFdy.js +1 -0
- package/dist/client/assets/user-round-DStbWN3z.js +1 -0
- package/dist/client/assets/{vscode-icons-Dgo7Sslf.js → vscode-icons-BihBo3tb.js} +1 -1
- package/dist/client/assets/{workspaceMetadataProjection-UiprkDbH.js → workspaceMetadataProjection-j3BGlVOB.js} +1 -1
- package/dist/client/assets/wrench-BBIgGxy9.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/{collectUint8StreamText-C_VNyArd.mjs → collectUint8StreamText-CE1Re5Ij.mjs} +41 -3
- package/dist/{collectUint8StreamText-DStwNTTK.cjs → collectUint8StreamText-whblCEfg.cjs} +52 -2
- package/dist/{makeManagedServerProvider-GZcpSLrW.mjs → makeManagedServerProvider-CwYhl_P-.mjs} +1 -1
- package/dist/{makeManagedServerProvider-VzxWN-04.cjs → makeManagedServerProvider-Dy2Ny9tk.cjs} +1 -1
- package/dist/resource-monitor/ryco-resource-monitor +0 -0
- package/dist/resource-monitor/ryco-resource-monitor.exe +0 -0
- package/dist/resource-monitor/win32-arm64/ryco-resource-monitor.exe +0 -0
- package/dist/resource-monitor/win32-x64/ryco-resource-monitor.exe +0 -0
- package/package.json +1 -1
- package/dist/client/assets/AccountSettings-DGvZzAqN.js +0 -1
- package/dist/client/assets/AiFocusSettings-D8wZfNES.js +0 -1
- package/dist/client/assets/AppearanceSettings-BFo6g6_s.js +0 -1
- package/dist/client/assets/BranchToolbar.logic-CmO2U1U7.js +0 -1
- package/dist/client/assets/BrowserPanel-r6is5C3e.js +0 -1
- package/dist/client/assets/ChatRightPanel-BewXBRFZ.js +0 -194
- package/dist/client/assets/ChatThreadRouteView-CC_6FmHd.js +0 -1
- package/dist/client/assets/CommandPaletteDialog-ftA_Xg2G.js +0 -1
- package/dist/client/assets/CompositeRoot-arlgwzfX.js +0 -1
- package/dist/client/assets/ComputerUseSettings-V-oMtddy.js +0 -1
- package/dist/client/assets/ConnectionsSettings-BrFvrRjz.js +0 -7
- package/dist/client/assets/ContextHandoffEndpointLabel-CPeU4K5A.js +0 -4
- package/dist/client/assets/DiagnosticsSettings-Dk3JaIOU.js +0 -2
- package/dist/client/assets/DialogHandle-00ZXxxpz.js +0 -1
- package/dist/client/assets/DialogPopup-mazVJKyB.js +0 -1
- package/dist/client/assets/DialogRoot-CWlzx19Z.js +0 -1
- package/dist/client/assets/DialogTitle-CKaEtTky.js +0 -1
- package/dist/client/assets/DialogTrigger-CiElTNmo.js +0 -1
- package/dist/client/assets/DialogViewport-a5beR5bY.js +0 -1
- package/dist/client/assets/DraftChatThreadRouteView-DMwnSfgh.js +0 -1
- package/dist/client/assets/FloatingPortalLite-DWdtHKob.js +0 -1
- package/dist/client/assets/GlassSurface-BqfxDYiR.js +0 -1
- package/dist/client/assets/HostedConnectionControls-BmJd89CC.js +0 -1
- package/dist/client/assets/HostedHubRoot-CRIiJ67A.js +0 -2
- package/dist/client/assets/HostedNativeAuthorizationRoute-DcksCt9n.js +0 -2
- package/dist/client/assets/HostedRelayTrustNotice-C9pl5h2a.js +0 -1
- package/dist/client/assets/IntegrationsSettingsPanel-BnfjyLrM.js +0 -2
- package/dist/client/assets/KeybindingsSettings-CkW7lzvz.js +0 -7
- package/dist/client/assets/LazyBrowserPanel-C6uMUmoV.js +0 -2
- package/dist/client/assets/McpServersSettings-BdXgS-Pm.js +0 -6
- package/dist/client/assets/MobileSheet-D19YdeQ9.js +0 -1
- package/dist/client/assets/NodeSecuritySettings-BfcBgtEg.js +0 -1
- package/dist/client/assets/OpinionatedPluginsSettings-YY54IT7P.js +0 -1
- package/dist/client/assets/PhoneGetAppInterstitial-9r6NwJP8.js +0 -1
- package/dist/client/assets/PhoneHome-DnEJp0bU.js +0 -1
- package/dist/client/assets/PhoneSettingsSurface-NKJrLCxU.js +0 -2
- package/dist/client/assets/ProviderModelPicker-CYGv-4fE.js +0 -1
- package/dist/client/assets/ProvidersSettingsPanel-DsXHij4h.js +0 -1
- package/dist/client/assets/QuitShortcutFeedback-BVyYaNtd.js +0 -1
- package/dist/client/assets/RedactedSensitiveText-D8j7kpow.js +0 -1
- package/dist/client/assets/RootAppShell-D7c8sbA0.js +0 -7
- package/dist/client/assets/Separator-Bn8l1oSK.js +0 -1
- package/dist/client/assets/SettingsDialog-BlPX1mT8.js +0 -2
- package/dist/client/assets/SettingsPanels-CeuvwIV_.js +0 -3
- package/dist/client/assets/SettingsPanels.editor-CLJJeKLI.js +0 -1
- package/dist/client/assets/SourceControlSettings-D-GeZ6PW.js +0 -1
- package/dist/client/assets/StatisticsPage-poomFDoQ.js +0 -1
- package/dist/client/assets/StatisticsPanel-DbGgCCpZ.js +0 -1
- package/dist/client/assets/StatisticsSettingsLink-Brc9--O7.js +0 -1
- package/dist/client/assets/ThreadWorkspacePanel-Shhau2BD.js +0 -2073
- package/dist/client/assets/activity-Dy-wOS-S.js +0 -1
- package/dist/client/assets/alert-4WZo8oMe.js +0 -1
- package/dist/client/assets/arrow-left-gLRAasih.js +0 -1
- package/dist/client/assets/arrow-right-CAK2t4QL.js +0 -1
- package/dist/client/assets/arrow-up-right-DP0hmMEB.js +0 -1
- package/dist/client/assets/authorization-K_UCP_xh.js +0 -1
- package/dist/client/assets/badge-CYDyJZRJ.js +0 -1
- package/dist/client/assets/bot-CCrx5oCt.js +0 -1
- package/dist/client/assets/button-QrCU0tNP.js +0 -1
- package/dist/client/assets/chart-column-BvK6lSzG.js +0 -1
- package/dist/client/assets/chevron-down-yka18-iP.js +0 -1
- package/dist/client/assets/chevron-right-CHyIXx5W.js +0 -1
- package/dist/client/assets/clamp-D0kAXd-u.js +0 -1
- package/dist/client/assets/clipboard-copy-DfdkWOiT.js +0 -1
- package/dist/client/assets/copy-riIPLkKV.js +0 -1
- package/dist/client/assets/data-list-CsiYTho5.js +0 -1
- package/dist/client/assets/download-B0lbSdq5.js +0 -1
- package/dist/client/assets/editorPreferences-Cf2Smgu1.js +0 -1
- package/dist/client/assets/empty-CHk0OiOB.js +0 -1
- package/dist/client/assets/group-DfFZdj79.js +0 -1
- package/dist/client/assets/hostedConnectionCoordinator-DZh1yVqz.js +0 -1
- package/dist/client/assets/input-BAC5Cd3b.js +0 -1
- package/dist/client/assets/kbd-CMUW8K7b.js +0 -1
- package/dist/client/assets/key-round-Cm6itp2V.js +0 -1
- package/dist/client/assets/layers-DoDpJao_.js +0 -1
- package/dist/client/assets/loader-circle-D0CNb5GI.js +0 -1
- package/dist/client/assets/log-out-BuoOiS45.js +0 -1
- package/dist/client/assets/main-CRk9p9SC.css +0 -2
- package/dist/client/assets/main-DaXSCt8g.js +0 -9
- package/dist/client/assets/monitor-Dyigmrl2.js +0 -1
- package/dist/client/assets/palette-kIM_geXk.js +0 -1
- package/dist/client/assets/play-Dh8XDMnw.js +0 -1
- package/dist/client/assets/primary-DjXNHNGV.js +0 -2
- package/dist/client/assets/providerDriverMeta-Cl-ADdmZ.js +0 -1
- package/dist/client/assets/providerModels-dpugJUmV.js +0 -1
- package/dist/client/assets/qr-code-CkI1p05P.js +0 -1
- package/dist/client/assets/radio-group-Hh0oQGyf.js +0 -2
- package/dist/client/assets/react-dom-x9LNwWQc.js +0 -1
- package/dist/client/assets/refresh-cw-MqmsC7V0.js +0 -1
- package/dist/client/assets/runtime-L56puJDA.js +0 -17
- package/dist/client/assets/save-BSB81i-r.js +0 -1
- package/dist/client/assets/scroll-area-DCGCzd6v.js +0 -1
- package/dist/client/assets/scrollEdges-DIzjkUJG.js +0 -1
- package/dist/client/assets/separator-YeH3P39x.js +0 -1
- package/dist/client/assets/settingsLayout-CmNqO2kB.js +0 -1
- package/dist/client/assets/settingsSections.logic-Bg960p_I.js +0 -1
- package/dist/client/assets/sheet-CTbjQ5Bv.js +0 -1
- package/dist/client/assets/shield-DlqCO-0N.js +0 -1
- package/dist/client/assets/shield-alert-BrZ-Rb8N.js +0 -1
- package/dist/client/assets/shield-check-DHxdM6te.js +0 -1
- package/dist/client/assets/sidebar-4cwEndEB.js +0 -1
- package/dist/client/assets/sidebarProjectFolders-C7WDwUYJ.js +0 -4
- package/dist/client/assets/sidebarStatusText-Cq_MMykN.js +0 -1
- package/dist/client/assets/skeleton-BlostfCS.js +0 -1
- package/dist/client/assets/smartphone-OaA-Xj_d.js +0 -1
- package/dist/client/assets/sparkles-BXwkPX2M.js +0 -1
- package/dist/client/assets/src-gDjuIvMO.js +0 -14
- package/dist/client/assets/star-BjaAYD-x.js +0 -1
- package/dist/client/assets/switch-COrEGDkz.js +0 -48
- package/dist/client/assets/toast-C_F1LeME.js +0 -1
- package/dist/client/assets/toggle-BPNEBXg_.js +0 -1
- package/dist/client/assets/toggle-group-BC1zJ9xi.js +0 -1
- package/dist/client/assets/tokenModePresentation-DUJ8DMTy.js +0 -1
- package/dist/client/assets/tooltip-iy3_osu5.js +0 -1
- package/dist/client/assets/triangle-alert-YXqtFxD6.js +0 -1
- package/dist/client/assets/unplug-e3z4rXgY.js +0 -1
- package/dist/client/assets/useAppSidebarCollapsed-mtvJ7qbW.js +0 -1
- package/dist/client/assets/useLabelableId-NJQsKdL6.js +0 -1
- package/dist/client/assets/useNavigate-2tVq4iZ2.js +0 -1
- package/dist/client/assets/usePhoneThreadActions-97AsVVIR.js +0 -1
- package/dist/client/assets/usePopupViewport-8OM2irPK.js +0 -1
- package/dist/client/assets/usePositioner-0Kb-C4al.js +0 -1
- package/dist/client/assets/useRenderElement-D0HVF5g_.js +0 -1
- package/dist/client/assets/useRouter-CcIDS3PN.js +0 -1
- package/dist/client/assets/useScrollLock-AUqaSAkf.js +0 -1
- package/dist/client/assets/useSwipeDismiss-CcW-GPO_.js +0 -1
- package/dist/client/assets/useTriggerFocusGuards-ChBvppef.js +0 -1
- package/dist/client/assets/useValueChanged-CThCTn4h.js +0 -1
- package/dist/client/assets/user-round-evbX_eto.js +0 -1
- package/dist/client/assets/utils-5-6TOrS1.js +0 -1
- package/dist/client/assets/visuallyHidden-BRaogTVF.js +0 -1
- package/dist/client/assets/wrench-mA--bcId.js +0 -1
- package/dist/client/assets/x-_SjFRYll.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{ia as n}from"./runtime-L56puJDA.js";import{t as r}from"./compiler-runtime-qmuS0Svy.js";import{At as i,Bt as a,C as o,Dt as s,E as c,Et as l,Ft as u,G as d,J as f,Jt as p,K as m,Lt as h,Mt as g,Rt as _,St as v,Tt as y,U as b,Vt as x,Y as S,Z as C,_t as w,at as T,bt as E,d as D,dt as O,f as k,gt as A,h as j,ht as M,it as N,j as P,l as F,m as I,mt as L,n as R,nt as ee,q as z,r as B,t as te,tt as V,u as ne,ut as re,v as H,w as ie,wt as ae,xt as oe,yt as se}from"./usePositioner-0Kb-C4al.js";import{a as U,c as ce,d as le,f as W,i as ue,l as de,r as G,s as fe,t as K}from"./useRenderElement-D0HVF5g_.js";import{t as pe}from"./chevron-down-yka18-iP.js";import{r as me}from"./button-QrCU0tNP.js";import{t as q,u as he}from"./utils-5-6TOrS1.js";import{A as J,B as ge,H as _e,O as ve,U as ye,a as Y,b as be,i as X,j as Z,k as xe,n as Se,p as Ce,r as we,s as Te,t as Ee,v as De,x as Oe}from"./visuallyHidden-BRaogTVF.js";import{n as ke,t as Ae}from"./useValueChanged-CThCTn4h.js";import{O as je,T as Me,f as Ne,r as Pe}from"./usePopupViewport-8OM2irPK.js";import{m as Fe,n as Ie,p as Le,s as Re,t as ze}from"./useScrollLock-AUqaSAkf.js";import{t as Be}from"./useControlled-DQwgzrEC.js";import{i as Ve,n as He,r as Ue,s as We,t as Ge,u as Ke}from"./useLabelableId-NJQsKdL6.js";import{i as qe,n as Je,r as Ye,t as Xe}from"./scrollEdges-DIzjkUJG.js";import{t as Ze}from"./clamp-D0kAXd-u.js";var Qe={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};Qe.node;var $e=W(Qe),et={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};et.node;var tt=W(et),Q=e(t(),1);function nt(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=ve}=t,l=`rootStore`in e?e.rootStore:e,d=l.context.dataRef,f=Q.useRef(void 0),p=V(),m=u(),h=Q.useMemo(()=>{function e(e,t,n,r){let i=Y(c,t,n);e&&r===`touch`&&s>0?m.start(s,()=>{l.setOpen(!0,i)}):l.setOpen(e,i)}function t(e,t,n){let r=d.current.openEvent,a=l.select(`domReferenceElement`)!==t;return e&&a||!e||!i?!0:r&&o?!n(r.type):!1}return{onPointerDown(e){f.current=v(e.pointerType,!0)&&y(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(n){let i=f.current,o=n.nativeEvent,s=l.select(`open`);if(n.button!==0||r===`click`||v(i,!0)&&a)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),u=oe(o);if(O(u)){e(c,o,u,i);return}let d=n.currentTarget;p.request(()=>{e(c,o,d,i)})},onClick(n){if(r===`mousedown-only`)return;let i=f.current;if(r===`mousedown`&&i){f.current=void 0;return}v(i,!0)&&a||e(t(l.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,i)},onKeyDown(){f.current=void 0}}},[d,r,a,c,l,o,i,p,m,s]);return Q.useMemo(()=>n?{reference:h}:ue,[n,h])}function rt(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=X(),a=o()!=null,s=ce(()=>new I({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new D,floatingId:i,syncOnly:!1,nested:a})).current;return J(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=_e(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),s.update(e)},[t,i,r.reference,r.floating,s]),s.context.onOpenChange=n,s.context.nested=a,s}var it=`Escape`;function at(e){return i&&e.movementX===0&&e.movementY===0}function ot(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function st(e,t){return ot(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function ct(e,t,n){return ot(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function lt(e,t,n){return ot(t,n?e===M:e===A,e===L)}function ut(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===it:ot(t,n?e===A:e===M,e===w)}function dt(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:s=null,allowEscape:c=!1,loopFocus:u=!1,nested:p=!1,rtl:g=!1,virtual:_=!1,focusItemOnOpen:v=`auto`,focusItemOnHover:x=!0,openOnArrowKeyDown:S=!0,disabledIndices:C=void 0,orientation:w=`vertical`,parentOrientation:D,id:O,resetOnPointerLeave:k=!0,externalTree:A,grid:j}=t,M=j!=null,N=`rootStore`in e?e.rootStore:e,P=N.useState(`open`),F=N.useState(`floatingElement`),I=N.useState(`domReferenceElement`),L=N.context.dataRef,R=T(F),z=re(I),B=ee(R),te=o(),ne=ie(A),H=Q.useRef(v),U=Q.useRef(s??-1),ce=Q.useRef(null),le=Q.useRef(!0),W=Z(e=>{i(U.current===-1?null:U.current,e)}),ue=Q.useRef(!!F),de=Q.useRef(P),G=Q.useRef(!1),fe=Q.useRef(!1),K=Q.useRef(null),pe=ee(C),me=ee(P),q=ee(s),he=ee(k),ge=V(),_e=V(),ve=Z(()=>{function e(e){_?ne?.events.emit(`virtualfocus`,e):K.current=Fe(e,{sync:G.current,preventScroll:!0})}let t=n.current[U.current],r=fe.current;t&&e(t),(G.current?e=>e():e=>ge.request(e))(()=>{let i=n.current[U.current]||t;i&&(t||e(i),Ee&&(r||!le.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});J(()=>{L.current.orientation=w},[L,w]),J(()=>{a&&(P&&F?(U.current=s??-1,H.current&&s!=null&&(fe.current=!0,W())):ue.current&&(U.current=-1,W()))},[a,P,F,s,W]),J(()=>{if(a){if(!P){G.current=!1;return}if(F){if(r==null){if(G.current=!1,q.current!=null)return;if(ue.current&&(U.current=-1,ve()),(!de.current||!ue.current)&&H.current&&(ce.current!=null||H.current===!0&&ce.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>_e.request(e):queueMicrotask)(t),e+=1):(U.current=ce.current==null||ct(ce.current,w,g)||p?m(n):d(n),ce.current=null,W())};t()}}else f(n.current,r)||(U.current=r,ve(),fe.current=!1)}}},[a,P,F,r,q,p,n,w,g,W,ve,_e]),J(()=>{if(!a||F||!ne||_||!ue.current)return;let e=ne.nodesRef.current,t=e.find(e=>e.id===te)?.context?.elements.floating,n=se(h(I??t??null)),r=e.some(e=>e.context&&E(e.context.elements.floating,n));t&&!r&&le.current&&t.focus({preventScroll:!0})},[a,F,I,ne,te,_]),J(()=>{de.current=P,ue.current=!!F}),J(()=>{P||(ce.current=null,H.current=v)},[P,v]);let X=r!=null,xe=Z(e=>{if(!me.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(U.current!==t||r!==t)&&(U.current=t,W(e))}),Se=Z(()=>D??ne?.nodesRef.current.find(e=>e.id===te)?.context?.dataRef?.current.orientation),we=Z(()=>m(n,pe.current)),Te=Z(e=>{if(le.current=!1,G.current=!0,e.which===229||!me.current&&e.currentTarget===B.current)return;if(p&&ut(e.key,w,g,M)){st(e.key,Se())||l(e),N.setOpen(!1,Y(be,e.nativeEvent)),ye(I)&&(_?ne?.events.emit(`virtualfocus`,I):I.focus());return}let t=U.current,r=m(n,C),i=d(n,C);if(z||(e.key===`Home`&&(l(e),U.current=r,W(e)),e.key===`End`&&(l(e),U.current=i,W(e))),j!=null){let t=j(e,U.current,n,w,u,g,C,r,i);if(t!=null&&(U.current=t,W(e)),w===`both`)return}if(st(e.key,w)){if(l(e),P&&!_&&se(e.currentTarget.ownerDocument)===e.currentTarget){U.current=ct(e.key,w,g)?r:i,W(e);return}ct(e.key,w,g)?u?t>=i?c&&t!==n.current.length?U.current=-1:(G.current=!1,U.current=r):U.current=b(n.current,{startingIndex:t,disabledIndices:C}):U.current=Math.min(i,b(n.current,{startingIndex:t,disabledIndices:C})):u?t<=r?c&&t!==-1?U.current=n.current.length:(G.current=!1,U.current=i):U.current=b(n.current,{startingIndex:t,decrement:!0,disabledIndices:C}):U.current=Math.max(r,b(n.current,{startingIndex:t,decrement:!0,disabledIndices:C})),f(n.current,U.current)&&(U.current=-1),W(e)}}),Ee=Q.useMemo(()=>({onFocus(e){G.current=!0,xe(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){at(e)||(G.current=!0,fe.current=!1,x&&xe(e))},onPointerLeave(e){if(!me.current||!le.current||e.pointerType===`touch`)return;G.current=!0;let t=e.relatedTarget;if(x&&!n.current.includes(t)&&he.current&&(K.current?.(),K.current=null,U.current=-1,W(e),!_)){let e=B.current,t=se(h(e));e&&E(e,t)&&e.focus({preventScroll:!0})}}}),[xe,me,B,x,n,W,he,_]),De=Q.useMemo(()=>_&&P&&X&&{"aria-activedescendant":`${O}-${r}`},[_,P,X,O,r]),Oe=Q.useMemo(()=>({...z?{}:De,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&P&&!_){let t=oe(e.nativeEvent);if(t&&!E(B.current,t))return;l(e),N.setOpen(!1,Y(Ce,e.nativeEvent)),ye(I)&&I.focus();return}Te(e)},onPointerMove(e){at(e)||(le.current=!0)}}),[De,Te,B,z,N,P,_,I]),ke=Q.useMemo(()=>{function e(e){N.setOpen(!0,Y(be,e.nativeEvent,e.currentTarget))}function t(e){v===`auto`&&ae(e.nativeEvent)&&(H.current=!_)}function n(e){H.current=v,v===`auto`&&y(e.nativeEvent)&&(H.current=!0)}return{onKeyDown(t){let n=N.select(`open`);le.current=!1;let r=t.key.startsWith(`Arrow`),i=lt(t.key,Se(),g),a=st(t.key,w),o=(p?i:a)||t.key===`Enter`||t.key.trim()===``;if(_&&n)return Te(t);if(n||S||!r){if(o){let e=st(t.key,Se());ce.current=p&&e?null:t.key}if(p){i&&(l(t),n?(U.current=we(),W(t)):e(t));return}a&&(q.current!=null&&(U.current=q.current),l(t),!n&&S?e(t):Te(t),n&&W(t))}},onFocus(e){N.select(`open`)&&!_&&(U.current=-1,W(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[Te,v,we,p,W,N,S,w,Se,g,q,_]),Ae=Q.useMemo(()=>({...De,...ke}),[De,ke]);return Q.useMemo(()=>a?{reference:Ae,floating:Oe,item:Ee,trigger:ke}:{},[a,Ae,Oe,ke,Ee])}function ft(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:s,enabled:c=!0,resetMs:d=750,selectedIndex:f=null}=t,p=`rootStore`in e?e.rootStore:e,m=p.useState(`open`),h=u(),g=Q.useRef(``),_=Q.useRef(f??i??-1),v=Q.useRef(null),y=Z(e=>{function t(e){return r?.current[e]}function c(e){let n=t(e);return n&&!z(n)||n?.matches(`:disabled`)?!1:o==null||!S(G,e,o)}function u(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&c(n))return n}return-1}let p=n.current;if(g.current.length>0&&e.key===` `&&(l(e),s?.(!0)),g.current.length>0&&g.current[0]!==` `&&u(p,g.current)===-1&&e.key!==` `&&s?.(!1),p==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;m&&e.key!==` `&&(l(e),s?.(!0));let y=g.current===``;y&&(_.current=f??i??-1),p.every((e,t)=>e&&c(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&g.current===e.key&&(g.current=``,_.current=v.current),g.current+=e.key,h.start(d,()=>{g.current=``,_.current=v.current,s?.(!1)});let b=((y?f??i??-1:_.current)??0)+1,x=u(p,g.current,b);x===-1?e.key!==` `&&(g.current=``,s?.(!1)):(a?.(x),v.current=x)}),b=Z(e=>{let t=e.relatedTarget,n=p.select(`domReferenceElement`),r=p.select(`floatingElement`);E(n,t)||E(r,t)||(h.clear(),g.current=``,_.current=v.current,s?.(!1))});J(()=>{(m||f===null)&&(h.clear(),v.current=null,g.current!==``&&(g.current=``))},[m,f,h]);let x=Q.useMemo(()=>({onKeyDown:y,onBlur:b}),[y,b]);return Q.useMemo(()=>c?{reference:x,floating:x}:{},[c,x])}var $=n();function pt(e){let t=Q.useRef(``),n=Q.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:Q.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function mt(e,t){let{onClick:n,onPointerDown:r}=pt(Z((n,r)=>{(typeof e==`function`?e():e)||t(r||(g?`touch`:``))}));return Q.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function ht(e){let[t,n]=Q.useState(null),r=mt(e,n);return Ae(e,t=>{t&&!e&&n(null)}),Q.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}function gt(e){let t=Q.useRef(!0);t.current&&(t.current=!1,e())}function _t(e,t,n=Object.is){let{length:r}=e;if(r!==t.length)return!1;for(let i=0;i<r;i+=1)if(!n(e[i],t[i]))return!1;return!0}var vt=(e,t)=>Object.is(e,t);function yt(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function bt(e,t,n){return Array.isArray(e)&&Array.isArray(t)?!_t(e,t,(e,t)=>yt(e,t,n)):e!==t}function xt(e,t,n){return e?e.some(e=>e!==void 0&&yt(t,e,n)):!1}function St(e,t,n){return e?e.findIndex(e=>e!==void 0&&yt(e,t,n)):-1}function Ct(e,t){if(t!==vt)return n=>xt(e,n,t);let n=new Set(e);return n.delete(void 0),t=>n.has(t)&&(t!==0||e.some(e=>Object.is(t,e)))}function wt(e,t,n,r){let i=r&&Array.isArray(t)?e.findIndex(Ct(t,n)):St(e,t,n);return i===-1?null:i}function Tt(e,t,n,r,i,a){return xt(r,t,i)?a!=null&&e>a&&xt(r,n[a],i)?a:e:e===a?wt(n,r,i,!0):a}function Et(e,t,n){return e.filter(e=>!yt(t,e,n))}function Dt(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function Ot(e){return typeof e==`object`&&!!e&&Array.isArray(e.items)}function kt(e){return Ot(e?.[0])}function At(e){return kt(e)?e.flatMap(e=>e.items):e}function jt(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(kt(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function Mt(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return Dt(e)}function Nt(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?Dt(e.value):Dt(e)}function Pt(e,t,n){function r(){return Mt(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??r();if(Array.isArray(t)){let n=At(t);if(typeof e!=`object`||!e){let t=n.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=n.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function Ft(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,$.jsx)(Q.Fragment,{children:Pt(r,t,n)},i)),e),[])}var It=5;function Lt(e,t){let n=Rt(t);return e.clientX>=n.left-It&&e.clientX<=n.right+It&&e.clientY>=n.top-It&&e.clientY<=n.bottom+It}function Rt(e){let t=e.getBoundingClientRect(),n=ge(e);if(s)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,c=parseFloat(i.width)||0,l=parseFloat(i.height)||0,u=Math.max(t.width,a,c),d=Math.max(t.height,o,l),f=u-t.width,p=d-t.height;return{left:t.left-f/2,right:t.right+f/2,top:t.top-p/2,bottom:t.bottom+p/2}}function zt(e,t){return e??t}var Bt=Q.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function Vt(){return Q.useContext(Bt)}function Ht(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=Z(i),[,o]=Q.useState(!1),s=ce(Wt).current,c=ce(Ut).current,l=Q.useRef(0),u=Q.useRef(!0),d=Q.useRef(null),f=Q.useRef(null),p=Z(()=>{u.current||(u.current=!0,o(e=>!e))}),m=Z((e,t)=>{c.set(e,t),p()}),h=Z(e=>{c.delete(e),p()}),g=Z(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!qt(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&Jt(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=Kt(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=Z(()=>{let[e,t]=Gt(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});J(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),J(()=>{u.current&&v()}),J(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=Z(e=>(s.add(e),()=>{s.delete(e)})),b=Q.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,$.jsx)(Bt.Provider,{value:b,children:t})}function Ut(){return new Map}function Wt(){return new Set}function Gt(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>Jt(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function Kt(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function qt(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function Jt(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}var Yt=20;function Xt(e,t,n,r){let[i,a]=Q.useState(!1);J(()=>{if(!e||!t||n==null){a(!1);return}let r=h(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-Yt)},[e,t,n]),ze(e&&(!t||i),r)}function Zt(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=Vt(),u=Q.useRef(-1),[d,f]=Q.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=Q.useRef(null),h=Q.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return J(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}var Qt=Q.createContext(void 0);function $t(e){let t=Q.useContext(Qt);if(t===void 0&&!e)throw Error(de(69));return t}function en(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var tn=Q.createContext(void 0),nn=Q.createContext(void 0),rn=Q.createContext(void 0);function an(){let e=Q.useContext(tn);if(e===void 0)throw Error(de(60));return e}function on(){let e=Q.useContext(nn);if(e===void 0)throw Error(de(101));return e}function sn(){let e=Q.useContext(rn);if(e===void 0)throw Error(de(61));return e}var cn={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Nt(t,r)!==``},hasNullItemLabel:(e,t)=>t?jt(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>yt(t,e,n)):yt(t,r,n)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows};function ln(e){let{id:t,value:n,defaultValue:r=null,onValueChange:i,open:a,defaultOpen:o=!1,onOpenChange:s,name:c,form:l,autoComplete:u,disabled:d=!1,readOnly:f=!1,required:p=!1,modal:m=!0,actionsRef:h,inputRef:g,onOpenChangeComplete:_,items:v,multiple:y=!1,itemToStringLabel:b,itemToStringValue:x,isItemEqualToValue:S=vt,highlightItemOnHover:C=!0,children:w}=e,{clearErrors:T}=Ue(),{setDirty:E,setTouched:D,setFocused:O,validityData:A,setFilled:M,name:N,disabled:P,validation:F,validationMode:I}=We(),L=Ge({id:t}),R=P||d,z=N??c,[B,te]=Be({controlled:n,default:y?r??G:r,name:`Select`,state:`value`}),[V,ne]=Be({controlled:a,default:o,name:`Select`,state:`open`}),re=Q.useRef([]),H=Q.useRef([]),ie=Q.useRef(null),ae=Q.useRef(null),oe=Q.useRef(0),se=Q.useRef(null),W=Q.useRef([]),de=Q.useRef(!1),K=Q.useRef(null),pe=Q.useRef(null),me=Q.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),q=Q.useRef(!1),he=Q.useRef(B),{mounted:ge,setMounted:_e,transitionStatus:ve}=Me(V),{openMethod:ye,triggerProps:be}=ht(V),X=ce(()=>new j({id:L,labelId:void 0,modal:m,multiple:y,itemToStringLabel:b,itemToStringValue:x,isItemEqualToValue:S,value:B,open:V,mounted:ge,transitionStatus:ve,items:v,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:ue,triggerProps:ue,triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:U,setOpen:U,handleScrollArrowVisibility:U,onOpenChangeComplete:U,listRef:re,popupRef:ie,scrollHandlerRef:ae,scrollArrowsMountedCountRef:oe,valueRef:se,valuesRef:W,labelsRef:H,typingRef:de,selectionRef:me,firstItemTextRef:K,selectedItemTextRef:pe,alignItemWithTriggerActiveRef:q,initialValueRef:he},cn)).current,xe=X.useState(`activeIndex`),Ce=X.useState(`selectedIndex`),we=X.useState(`triggerElement`),Te=X.useState(`positionerElement`),De=Pe(ye),ke=ye??De,Fe=Q.useMemo(()=>y?``:Nt(B,x),[y,B,x]),Ie=Q.useMemo(()=>y&&Array.isArray(B)?B.map(e=>Nt(e,x)):Nt(B,x),[y,B,x]),Le=ee(we),Re=Z(()=>Ie);Ve(Le,L,B,Re,!R,c);let ze=y?Array.isArray(B)&&B.length>0:B!=null&&Fe!==``;J(()=>{M(ze)},[ze,M]),J(function(){let e=wt(W.current,B,S,y);e===null&&(pe.current=null),!V&&X.set(`selectedIndex`,e)},[y,V,B,S,X]),Ae(B,()=>{T(z),E(bt(B,A.initialValue,S)),F.change(B)});let He=Z((e,t)=>{s?.(e,t),!t.isCanceled&&(ne(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(D(!0),O(!1),I===`onBlur`&&F.commit(B)))}),Ke=Z(()=>{_e(!1),X.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),_?.(!1)});k({enabled:!h,open:V,ref:ie,onComplete(){V||Ke()}}),Q.useImperativeHandle(h,()=>({unmount:Ke}),[Ke]);let qe=Z((e,t)=>{i?.(e,t),!t.isCanceled&&te(e)}),Ye=Z(e=>{let t=Xe(e.scrollHeight,e.clientHeight),n=Je(e.scrollTop,t),r=n>0,i=n<t;X.set(`scrollUpArrowVisible`,r),X.set(`scrollDownArrowVisible`,i)}),Ze=rt({open:V,onOpenChange:He,elements:{reference:we,floating:Te}}),Qe=nt(Ze,{enabled:!R,event:`mousedown`}),$e=je(Ze),et=dt(Ze,{enabled:!R,listRef:re,activeIndex:xe,selectedIndex:Ce,disabledIndices:G,onNavigate(e){(e!==null||V)&&X.set(`activeIndex`,e)},focusItemOnHover:C}),tt=ft(Ze,{enabled:!R&&(V||!f&&!y),listRef:H,activeIndex:xe,selectedIndex:Ce,disabledIndices:e=>en(re.current[e]),onMatch(e){V?X.set(`activeIndex`,e):qe(W.current[e],Y(Oe))},onTyping(e){de.current=e}}),it=Q.useMemo(()=>le(tt.reference,et.reference,$e.reference,Qe.reference,be),[Qe.reference,tt.reference,et.reference,$e.reference,be]),at=Q.useMemo(()=>le(Ne,tt.floating,et.floating,$e.floating),[tt.floating,et.floating,$e.floating]),ot=et.item??ue;X.useContextCallback(`setValue`,qe),X.useContextCallback(`setOpen`,He),X.useContextCallback(`handleScrollArrowVisibility`,Ye),X.useContextCallback(`onOpenChangeComplete`,_),gt(()=>{X.update({popupProps:at,triggerProps:it})}),X.useSyncedValues({id:L,modal:m,multiple:y,value:B,open:V,mounted:ge,transitionStatus:ve,popupProps:at,triggerProps:it,items:v,itemToStringLabel:b,itemToStringValue:x,isItemEqualToValue:S,openMethod:ke});let st=Q.useMemo(()=>({disabled:R,readOnly:f,required:p,multiple:y,highlightItemOnHover:C,itemProps:ot}),[R,f,p,y,C,ot]),ct=fe(g,F.inputRef),lt=y?void 0:z,ut=Q.useMemo(()=>!y||!Array.isArray(B)||!z?null:B.map(e=>{let t=Nt(e,x);return(0,$.jsx)(`input`,{type:`hidden`,form:l,name:z,value:t,disabled:R},t)}),[y,B,l,z,x,R]);return(0,$.jsxs)(tn.Provider,{value:X,children:[(0,$.jsx)(nn.Provider,{value:st,children:(0,$.jsx)(rn.Provider,{value:Ze,children:w})}),(0,$.jsx)(`input`,{...F.getValidationProps(R,{onFocus(){X.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||R||f)return;let t=e.currentTarget.value,n=Y(Oe,e.nativeEvent);function r(){if(y)return;let e=t.toLowerCase(),r=W.current.findIndex(t=>Nt(t,x).toLowerCase()===e||Mt(t,b).toLowerCase()===e);r===-1&&(r=W.current.findIndex((t,n)=>{let r=H.current[n];return r!=null&&r.toLowerCase()===e}));let i=W.current[r];i!=null&&qe(i,n)}X.set(`forceMount`,!0),queueMicrotask(r)}}),id:L&<==null?`${L}-hidden-input`:void 0,form:l,name:lt,autoComplete:u,value:Fe,disabled:R,required:p&&!(y&&ze),readOnly:f,ref:ct,style:z?Se:Ee,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),ut]})}var un=`data-popup-side`,dn=400,fn={...a,...Ke,popupSide:e=>e?{[un]:e}:null,value:()=>null},pn=Q.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{setTouched:l,setFocused:d,validationMode:f,validation:p,state:m,disabled:g}=We(),{labelId:_}=He(),v=an(),{readOnly:y,required:b,disabled:x}=on(),S=g||x||a,C=v.useState(`open`),w=v.useState(`mounted`),D=v.useState(`value`),O=v.useState(`triggerProps`),k=v.useState(`positionerElement`),A=v.useState(`listElement`),j=v.useState(`popupSide`),M=v.useState(`id`),N=v.useState(`labelId`),P=v.useState(`hasSelectedValue`),F=w&&k?j:null,I=i??M,L=zt(_,N);Ge({id:i});let R=ee(k),z=Q.useRef(null),{getButtonProps:B,buttonRef:te}=ke({disabled:S,native:o}),V=v.useStateSetter(`triggerElement`),ne=u(),re=u(),H=u();Q.useEffect(()=>{if(C)return H.start(dn,()=>{v.context.selectionRef.current.allowUnselectedMouseUp=!0,v.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{H.clear()};v.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},re.clear()},[C,v,re,H]);let ie=le(O,{id:I,role:`combobox`,"aria-expanded":C,"aria-haspopup":`listbox`,"aria-controls":C?A?.id??T(k)?.id:void 0,"aria-labelledby":L,"aria-readonly":y||void 0,"aria-required":b||void 0,tabIndex:S?-1:0,onFocus(e){d(!0),C&&v.context.alignItemWithTriggerActiveRef.current&&v.context.setOpen(!1,Y(Oe,e.nativeEvent)),ne.start(0,()=>{v.set(`forceMount`,!0)})},onBlur(e){E(k,e.relatedTarget)||(l(!0),d(!1),f===`onBlur`&&p.commit(D))},onMouseDown(e){if(C)return;let t=h(e.currentTarget);function n(e){if(!z.current)return;let t=e.target;E(z.current,t)||E(R.current,t)||Lt(e,z.current)||v.context.setOpen(!1,Y(Te,e))}re.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},c,B),ae=p.getValidationProps(S,ie);ae.role=`combobox`;let oe={...m,open:C,disabled:S,value:D,readOnly:y,popupSide:F,placeholder:!P};return K(`button`,e,{ref:[t,z,te,V],state:oe,stateAttributesMapping:fn,props:ae})}),mn={value:()=>null},hn=Q.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,c=an(),l=c.useState(`value`),u=c.useState(`items`),d=c.useState(`itemToStringLabel`),f=c.useState(`hasSelectedValue`),p=!f&&a!=null&&i==null,m=c.useState(`hasNullItemLabel`,p),h={value:l,placeholder:!f},g=null;return g=typeof i==`function`?i(l):i??(p&&!m?a:Array.isArray(l)?Ft(l,u,d):Pt(l,u,d)),K(`span`,e,{state:h,ref:[t,c.context.valueRef],props:[{children:g},s],stateAttributesMapping:mn})}),gn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o={open:an().useState(`open`)};return K(`span`,e,{state:o,ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:x})}),_n=Q.forwardRef(function(e,t){let n=an(),r=n.useState(`mounted`),i=n.useState(`forceMount`);return r||i?(0,$.jsx)(c,{ref:t,...e}):null}),vn=Q.createContext(void 0);function yn(){let e=Q.useContext(vn);if(!e)throw Error(de(59));return e}function bn(e,t){e&&Object.assign(e.style,t)}var xn={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},Sn={position:`fixed`},Cn=Q.forwardRef(function(e,t){let{anchor:n,className:r,render:i,positionMethod:a,side:o,align:s,sideOffset:c,alignOffset:l,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f,sticky:p,disableAnchorTracking:m,alignItemWithTrigger:h=!0,collisionAvoidance:g=P,style:_,...v}=e,y=an(),b=sn(),x=y.useState(`open`),S=y.useState(`mounted`),C=y.useState(`modal`),w=y.useState(`value`),T=y.useState(`openMethod`),E=y.useState(`positionerElement`),D=y.useState(`triggerElement`),O=y.useState(`isItemEqualToValue`),k=y.useState(`transitionStatus`),A=Q.useRef(null),j=Q.useRef(null),[M,N]=Q.useState(h),F=S&&M&&T!==`touch`;!S&&M!==h&&N(h),Q.useImperativeHandle(y.context.alignItemWithTriggerActiveRef,()=>F),Xt((F||C)&&x,T===`touch`,E,D);let I=B({anchor:n,floatingRootContext:b,positionMethod:a,mounted:S,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m??F,collisionAvoidance:g,keepMounted:!0}),L=F?`none`:I.side,R=F?Sn:I.positionerStyles,ee={open:x,side:L,align:I.align,anchorHidden:I.anchorHidden};J(()=>{y.set(`popupSide`,I.side)},[y,I.side]);let z=y.useStateSetter(`positionerElement`),V=te(e,ee,{styles:R,transitionStatus:k,props:v,refs:[t,z],hidden:!S,inert:!x}),re=Q.useRef(0),H=Z(e=>{if(y.context.valuesRef.current.length===0)return;let t=re.current;re.current=e.size;let n=Y(Oe);if(t!==0&&!y.state.multiple&&w!==null&&St(y.context.valuesRef.current,w,O)===-1){let e=y.context.initialValueRef.current,t=e!=null&&St(y.context.valuesRef.current,e,O)!==-1?e:null;y.context.setValue(t,n),t===null&&(y.set(`selectedIndex`,null),y.context.selectedItemTextRef.current=null)}if(t!==0&&y.state.multiple&&Array.isArray(w)){let e=w.filter(e=>St(y.context.valuesRef.current,e,O)!==-1);e.length!==w.length&&(y.context.setValue(e,n),e.length===0&&(y.set(`selectedIndex`,null),y.context.selectedItemTextRef.current=null))}if(x&&F){y.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};bn(E,e),bn(y.context.popupRef.current,e)}}),ie=Q.useMemo(()=>({...I,side:L,alignItemWithTriggerActive:F,setControlledAlignItemWithTrigger:N,scrollUpArrowRef:A,scrollDownArrowRef:j}),[I,L,F,N]);return(0,$.jsx)(Ht,{elementsRef:y.context.listRef,labelsRef:y.context.labelsRef,onMapChange:H,children:(0,$.jsxs)(vn.Provider,{value:ie,children:[S&&C&&(0,$.jsx)(Ie,{inert:ne(!x),cutout:D}),V]})})}),wn=`--transform-origin`,Tn={..._,...p},En=Q.forwardRef(function(e,t){let{render:n,className:r,style:a,finalFocus:o,...s}=e,c=an(),{multiple:l,readOnly:u,highlightItemOnHover:d}=on(),f=sn(),{side:p,align:m,alignItemWithTriggerActive:g,isPositioned:_,setControlledAlignItemWithTrigger:v}=yn(),y=$t(!0)!=null,b=F(),{nonce:x,disableStyleElements:S}=Ye(),C=c.useState(`id`),w=c.useState(`open`),T=c.useState(`openMethod`),E=c.useState(`mounted`),D=c.useState(`popupProps`),O=c.useState(`transitionStatus`),A=c.useState(`triggerElement`),j=c.useState(`positionerElement`),M=c.useState(`listElement`),P=Q.useRef(!1),I=Q.useRef(!1),L=Q.useRef({}),ee=V(),z=Z(e=>{if(!j||!c.context.popupRef.current||!I.current)return;let t=j.style.top===`0px`,n=j.style.bottom===`0px`;if(P.current||!g||!t&&!n){c.context.handleScrollArrowVisibility(e);return}let r=kn(j),i=An(j.getBoundingClientRect().height,`y`,r),a=h(j),o=ge(j),s=o.getComputedStyle(j),l=parseFloat(s.marginTop),u=parseFloat(s.marginBottom),d=Dn(o.getComputedStyle(c.context.popupRef.current)),f=Math.min(a.documentElement.clientHeight-l-u,d),p=e.scrollTop,m=On(e),_=null,v=e=>{j.style.height=`${e}px`},y=t?m-p:p,b=Math.min(i+y,f);if(y<=1){let n=Ze(y,0,f-i);n>0&&v(i+n),e.scrollTop=t?m:0,f-(i+n)<=1&&(P.current=!0),c.context.handleScrollArrowVisibility(e);return}f-b>1?_=t?1/0:0:n&&p<m&&(_=p-(y-(i+y-f)));let x=Math.ceil(b);if(x!==0&&v(x),_!=null){let t=Ze(_,0,On(e));Math.abs(e.scrollTop-t)>1&&(e.scrollTop=t)}x>=f-1&&(P.current=!0),c.context.handleScrollArrowVisibility(e)});Q.useImperativeHandle(c.context.scrollHandlerRef,()=>z,[z]),k({open:w,ref:c.context.popupRef,onComplete(){w&&c.context.onOpenChangeComplete(!0)}});let B={open:w,transitionStatus:O,side:p,align:m};J(()=>{j&&c.context.popupRef.current&&!Object.keys(L.current).length&&(L.current={top:j.style.top||`0`,left:j.style.left||`0`,right:j.style.right,height:j.style.height,bottom:j.style.bottom,minHeight:j.style.minHeight,maxHeight:j.style.maxHeight,marginTop:j.style.marginTop,marginBottom:j.style.marginBottom})},[c,j]),J(()=>{w||g||(I.current=!1,P.current=!1,bn(j,L.current))},[w,g,j]),J(()=>{let e=c.context.popupRef.current;if(!w||!A||!j||!e||g&&!_||c.state.transitionStatus===`ending`)return;if(I.current=!0,e.style.removeProperty(wn),!g){ee.request(()=>c.context.handleScrollArrowVisibility(M||e));return}let t=Nn(e);try{let t=c.context.selectedItemTextRef.current;t?.isConnected||(t=!c.select(`hasSelectedValue`)&&c.context.firstItemTextRef.current?.isConnected?c.context.firstItemTextRef.current:null);let n=c.context.valueRef.current,r=ge(j),a=r.getComputedStyle(j),o=r.getComputedStyle(e),s=h(A),l=kn(A),u=jn(A.getBoundingClientRect(),l),f=jn(j.getBoundingClientRect(),l),p=u.height,m=M||e,g=m.scrollHeight,_=parseFloat(o.borderBottomWidth),y=parseFloat(a.marginTop)||10,x=parseFloat(a.marginBottom)||10,S=parseFloat(a.minHeight)||100,C=Dn(o),w=s.documentElement.clientHeight-y-x,T=s.documentElement.clientWidth,E=w-u.bottom+p,D,O=b===`rtl`?u.right-f.width:u.left,k=0;if(t&&n){let e=jn(n.getBoundingClientRect(),l);D=jn(t.getBoundingClientRect(),l),O=f.left+(b===`rtl`?e.right-D.right:e.left-D.left);let r=e.top-u.top+e.height/2;k=D.top-f.top+D.height/2-r}let N=E+k+x+_,F=Math.min(w,N),I=w-y-x,R=N-F,ee=T-5;j.style.left=`${Ze(O,5,ee-f.width)}px`,j.style.height=`${F}px`,j.style.maxHeight=`none`,j.style.marginTop=`${y}px`,j.style.marginBottom=`${x}px`,e.style.height=`100%`;let z=On(m),B=R>=z-1;B&&(F=Math.min(w,f.height)-(R-z));let te=u.top<20||u.bottom>w-20||Math.ceil(F)+1<Math.min(g,S),V=(r.visualViewport?.scale??1)!==1&&i;if(te||V){bn(j,L.current),v(!1);return}let ne=Math.max(S,F);if(B){let e=Math.max(0,w-N);j.style.top=f.height>=I?`0`:`${e}px`,j.style.height=`${F}px`,m.scrollTop=On(m)}else j.style.bottom=`0`,m.scrollTop=R;if(D){let t=f.top,n=f.height,r=D.top+D.height/2,i=Ze(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(wn,`50% ${i}%`)}(ne===w||F>=C)&&(P.current=!0),c.context.handleScrollArrowVisibility(m),d&&c.state.selectedIndex===null&&c.state.activeIndex===null&&c.context.listRef.current[0]!=null&&c.set(`activeIndex`,0)}finally{t()}},[c,w,j,A,g,v,ee,M,d,b,_]),Q.useEffect(()=>{if(!g||!j||!w)return;let e=ge(j);function t(e){c.context.setOpen(!1,Y(xe,e))}return N(e,`resize`,t)},[c,g,j,w]);let te={...M?{role:`presentation`}:{role:`listbox`,"aria-multiselectable":l||void 0,"aria-readonly":u||void 0,id:`${C}-list`},onKeyDown(e){y&&Re.has(e.key)&&e.stopPropagation()},onScroll(e){M||z(e.currentTarget)},...g&&{style:M?{height:`100%`}:xn},className:!M&&g?qe.className:void 0},ne=K(`div`,e,{ref:[t,c.context.popupRef],state:B,stateAttributesMapping:Tn,props:[D,te,R(O),s]});return(0,$.jsxs)(Q.Fragment,{children:[!S&&qe.getElement(x),(0,$.jsx)(Le,{context:f,modal:!1,disabled:!E,openInteractionType:T,returnFocus:o,restoreFocus:!0,children:ne})]})});function Dn(e){let t=e.maxHeight;return t.endsWith(`px`)&&parseFloat(t)||1/0}function On(e){return Xe(e.scrollHeight,e.clientHeight)}function kn(e){return H.getScale(e)}function An(e,t,n){return e/n[t]}function jn(e,t){return C({x:An(e.x,`x`,t),y:An(e.y,`y`,t),width:An(e.width,`x`,t),height:An(e.height,`y`,t)})}var Mn=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function Nn(e){let{style:t}=e,n={};for(let[e,r]of Mn)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of Mn){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var Pn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=an(),{multiple:s,readOnly:c}=on(),{alignItemWithTriggerActive:l}=yn(),u=o.useState(`hasScrollArrows`),d=o.useState(`openMethod`),f={id:`${o.useState(`id`)}-list`,role:`listbox`,"aria-multiselectable":s||void 0,"aria-readonly":c||void 0,onScroll(e){o.context.scrollHandlerRef.current?.(e.currentTarget)},...l&&{style:xn},className:u&&d!==`touch`?qe.className:void 0},p=o.useStateSetter(`listElement`);return K(`div`,e,{ref:[t,p],props:[f,a]})}),Fn=Q.createContext(void 0);function In(){let e=Q.useContext(Fn);if(!e)throw Error(de(57));return e}var Ln=Q.memo(Q.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,label:o,disabled:s=!1,nativeButton:c=!1,...l}=e,u=Q.useRef(null),d=Zt({guess:!0,label:o,textRef:u}),f=an(),{itemProps:p,multiple:m,disabled:h,readOnly:g}=on(),_=h||s,v=f.useState(`isActive`,d.index),y=f.useState(`open`),b=f.useState(`isSelected`,a),x=f.useState(`isSelectedByFocus`,d.index),S=f.useState(`isItemEqualToValue`),C=d.index,w=Q.useRef(null);J(()=>{let e=f.context.valuesRef.current;return e[C]=a,()=>{delete e[C]}},[C,a,f]),J(()=>{let e=f.state.value,t=f.state.selectedIndex,n=t,r;m&&Array.isArray(e)?(n=Tt(C,a,f.context.valuesRef.current,e,S,t),r=n===C,C===t&&!r&&(f.context.selectedItemTextRef.current=null)):(r=e!==void 0&&yt(a,e,S),r&&(n=C)),f.set(`selectedIndex`,n),r&&u.current&&(f.context.selectedItemTextRef.current=u.current)},[C,m,S,f,a]);let T=Q.useRef(`mouse`),E=Q.useRef(!1),{getButtonProps:D,buttonRef:O}=ke({disabled:_,focusableWhenDisabled:!0,native:c,composite:!0}),k={disabled:_,selected:b,highlighted:v};function A(e){if(h||g)return;let t=f.state.value;if(m){let n=Array.isArray(t)?t:[],r=b?Et(n,a,S):[...n,a];f.context.setValue(r,Y(De,e))}else f.context.setValue(a,Y(De,e)),f.context.setOpen(!1,Y(De,e))}function j(){f.context.selectionRef.current.dragY=0}let M={role:`option`,"aria-selected":b,tabIndex:y&&v?0:-1,onKeyDown(e){f.set(`activeIndex`,C),e.key===` `&&f.context.typingRef.current&&e.preventDefault()},onClick(e){let t=T.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&ae(e.nativeEvent)&&(n!==void 0||v),i=t&&!r&&!E.current;E.current=!1,!(_||i)&&A(e.nativeEvent)},onPointerEnter(e){T.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=f.context.selectionRef.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){T.current=e.pointerType,E.current=!0,j()},onMouseUp(){if(j(),_||T.current===`touch`||E.current)return;let e=!f.context.selectionRef.current.allowSelectedMouseUp&&b,t=!f.context.selectionRef.current.allowUnselectedMouseUp&&!b;e||t||(E.current=!0,w.current?.click(),E.current=!1)}},N=K(`div`,e,{ref:[O,t,d.ref,w],state:k,props:[p,M,l,D]}),P=Q.useMemo(()=>({selected:b,index:C,textRef:u,selectedByFocus:x}),[b,C,u,x]);return(0,$.jsx)(Fn.Provider,{value:P,children:N})})),Rn=Q.forwardRef(function(e,t){let{selected:n}=In();return e.keepMounted||n?(0,$.jsx)(zn,{...e,ref:t}):null}),zn=Q.memo(Q.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=In(),c=Q.useRef(null),{transitionStatus:l,setMounted:u}=Me(s),d=K(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:p});return k({batch:!0,enabled:!s,open:s,ref:c,onComplete(){s||u(!1)}}),d})),Bn=Q.memo(Q.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i}=In(),a=an(),{render:o,className:s,style:c,...l}=e,u=Q.useCallback(e=>{e&&(n===0&&(a.context.firstItemTextRef.current=e),i&&(a.context.selectedItemTextRef.current=e))},[a,n,i]);return K(`div`,e,{ref:[u,t,r],props:l})})),Vn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o,...s}=e,c=a===`up`,l=an(),{side:d,scrollDownArrowRef:f,scrollUpArrowRef:m}=yn(),h=c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,g=l.useState(h),_=l.useState(`openMethod`),v=g&&_!==`touch`,y=u(),b=c?m:f,{mounted:x,transitionStatus:S,setMounted:C}=Me(v);J(()=>(l.context.scrollArrowsMountedCountRef.current+=1,l.set(`hasScrollArrows`,!0),()=>{l.context.scrollArrowsMountedCountRef.current=Math.max(0,l.context.scrollArrowsMountedCountRef.current-1),l.context.scrollArrowsMountedCountRef.current===0&&l.set(`hasScrollArrows`,!1)}),[l]),k({open:v,ref:b,onComplete(){v||C(!1)}});let w=K(`div`,e,{ref:[t,b],state:{direction:a,visible:v,side:d,transitionStatus:S},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||y.isStarted())return;l.set(`activeIndex`,null);function t(){let e=l.state.listElement??l.context.popupRef.current;if(!e)return;l.set(`activeIndex`,null),l.context.handleScrollArrowVisibility(e);let n=Xe(e.scrollHeight,e.clientHeight),r=Je(e.scrollTop,n),i=r===(c?0:n),a=l.context.listRef.current;if(r!==e.scrollTop&&(e.scrollTop=r),i){y.clear();return}if(a.length>0){let t=b.current?.offsetHeight||0;e.scrollTop=Hn(a,c,r,e.clientHeight,t,n)}y.start(40,t)}y.start(40,t)},onMouseLeave(){y.clear()}},s],stateAttributesMapping:p});return x||o?w:null});function Hn(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n<e.length;n+=1){let i=e[n];if(i&&i.offsetTop>=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return o<t&&s?Je(s.offsetTop-i,a):0}let o=e.length-1,s=n+r-i+1;for(let t=0;t<e.length;t+=1){let n=e[t];if(n&&n.offsetTop+n.offsetHeight>s){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?Je(l.offsetTop+l.offsetHeight-r+i,a):a}var Un=Q.forwardRef(function(e,t){return(0,$.jsx)(Vn,{...e,ref:t,direction:`down`})}),Wn=Q.forwardRef(function(e,t){return(0,$.jsx)(Vn,{...e,ref:t,direction:`up`})}),Gn=Q.createContext(void 0);function Kn(){let e=Q.useContext(Gn);if(e===void 0)throw Error(de(56));return e}var qn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=Q.useState(),c=Q.useMemo(()=>({labelId:o,setLabelId:s}),[o,s]),l=K(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":o},a]});return(0,$.jsx)(Gn.Provider,{value:c,children:l})}),Jn=Q.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=Kn(),c=we(a);return J(()=>(s(c),()=>{s(e=>e===c?void 0:e)}),[c,s]),K(`div`,e,{ref:t,props:[{id:c,"aria-hidden":!0},o]})}),Yn=r(),Xn=ln,Zn=he(`relative inline-flex cursor-pointer select-none items-center justify-between gap-2 border rounded-lg text-left text-base outline-none transition-[color,box-shadow,background-color] data-disabled:pointer-events-none data-disabled:opacity-64 sm:text-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4`,{defaultVariants:{size:`default`,variant:`default`},variants:{variant:{default:`w-full min-w-36 border-input bg-background not-dark:bg-clip-padding text-foreground shadow-xs/5 ring-ring/24 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] not-data-disabled:not-focus-visible:not-aria-invalid:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 focus-visible:border-ring focus-visible:ring-[3px] aria-invalid:border-destructive/36 focus-visible:aria-invalid:border-destructive/64 focus-visible:aria-invalid:ring-destructive/16 dark:bg-input/32 dark:aria-invalid:ring-destructive/24 dark:not-data-disabled:not-focus-visible:not-aria-invalid:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] [&_svg:not([class*='opacity-'])]:opacity-80 [[data-disabled],:focus-visible,[aria-invalid],[data-pressed]]:shadow-none`,ghost:`border-transparent text-muted-foreground/70 focus-visible:ring-2 focus-visible:ring-ring data-pressed:bg-accent [:hover,[data-pressed]]:bg-accent [:hover,[data-pressed]]:text-foreground/80`},size:{default:`min-h-9 px-[calc(--spacing(3)-1px)] sm:min-h-8`,lg:`min-h-10 px-[calc(--spacing(3)-1px)] sm:min-h-9`,sm:`min-h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] sm:min-h-7`,xs:`h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-sm before:rounded-[calc(var(--radius-md)-1px)] sm:h-6 sm:text-xs [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5`}}});function Qn(e){let t=(0,Yn.c)(15),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,size:a,variant:o,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=a===void 0?`default`:a,c=o===void 0?`default`:o,l;t[6]!==r||t[7]!==s||t[8]!==c?(l=q(Zn({size:s,variant:c}),r),t[6]=r,t[7]=s,t[8]=c,t[9]=l):l=t[9];let u;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,$.jsx)(gn,{"data-slot":`select-icon`,children:(0,$.jsx)(pe,{className:`size-3 opacity-50`})}),t[10]=u):u=t[10];let d;return t[11]!==n||t[12]!==i||t[13]!==l?(d=(0,$.jsxs)(pn,{className:l,"data-slot":`select-trigger`,...i,children:[n,u]}),t[11]=n,t[12]=i,t[13]=l,t[14]=d):d=t[14],d}function $n(e){let t=(0,Yn.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=q(`flex-1 truncate data-placeholder:text-muted-foreground`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(hn,{className:i,"data-slot":`select-value`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function er(e){let t=(0,Yn.c)(28),n,r,i,a,o,s,c,l,u;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8],u=t[9]):({className:i,children:r,side:o,sideOffset:s,align:c,alignOffset:l,alignItemWithTrigger:u,anchor:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l,t[9]=u);let d=o===void 0?`bottom`:o,f=s===void 0?4:s,p=c===void 0?`start`:c,m=l===void 0?0:l,h=u===void 0||u,g;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,$.jsx)(Wn,{className:`top-0 z-50 flex h-6 w-full cursor-default items-center justify-center before:pointer-events-none before:absolute before:inset-x-px before:top-px before:h-[200%] before:rounded-t-[calc(var(--radius-lg)-1px)] before:bg-linear-to-b before:from-50% before:from-popover/85`,"data-slot":`select-scroll-up-arrow`,children:(0,$.jsx)($e,{className:`relative size-4.5 sm:size-4`})}),t[10]=g):g=t[10];let _;t[11]===i?_=t[12]:(_=q(`max-h-(--available-height) overflow-y-auto p-1`,i),t[11]=i,t[12]=_);let v;t[13]!==r||t[14]!==_?(v=(0,$.jsx)(`div`,{className:`selection-glass-surface relative h-full min-w-(--anchor-width) origin-(--transform-origin) rounded-lg border text-popover-foreground transition-[scale,opacity] duration-(--app-motion-duration-pop) ease-(--app-motion-spring-gentle) in-data-starting-style:scale-98 in-data-starting-style:opacity-0 in-data-ending-style:scale-98 in-data-ending-style:opacity-0`,children:(0,$.jsx)(Pn,{className:_,"data-slot":`select-list`,children:r})}),t[13]=r,t[14]=_,t[15]=v):v=t[15];let y;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,$.jsx)(Un,{className:`bottom-0 z-50 flex h-6 w-full cursor-default items-center justify-center before:pointer-events-none before:absolute before:inset-x-px before:bottom-px before:h-[200%] before:rounded-b-[calc(var(--radius-lg)-1px)] before:bg-linear-to-t before:from-50% before:from-popover/85`,"data-slot":`select-scroll-down-arrow`,children:(0,$.jsx)(pe,{className:`relative size-4.5 sm:size-4`})}),t[16]=y):y=t[16];let b;t[17]!==a||t[18]!==v?(b=(0,$.jsxs)(En,{className:`text-foreground transition-opacity duration-(--app-motion-duration-pop) ease-(--app-motion-spring-gentle) data-ending-style:opacity-0`,"data-slot":`select-popup`,...a,children:[g,v,y]}),t[17]=a,t[18]=v,t[19]=b):b=t[19];let x;return t[20]!==p||t[21]!==h||t[22]!==m||t[23]!==n||t[24]!==d||t[25]!==f||t[26]!==b?(x=(0,$.jsx)(_n,{children:(0,$.jsx)(Cn,{align:p,alignItemWithTrigger:h,alignOffset:m,anchor:n,className:`z-50 select-none`,"data-slot":`select-positioner`,side:d,sideOffset:f,children:b})}),t[20]=p,t[21]=h,t[22]=m,t[23]=n,t[24]=d,t[25]=f,t[26]=b,t[27]=x):x=t[27],x}function tr(e){let t=(0,Yn.c)(20),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,children:n,hideIndicator:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a!==void 0&&a,s=o?`grid-cols-[1fr] ps-3 pe-3`:`grid-cols-[1rem_1fr] ps-2 pe-4`,c;t[5]!==r||t[6]!==s?(c=q(`grid min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-default items-center gap-2 rounded-sm py-1 text-base outline-none data-disabled:pointer-events-none data-highlighted:bg-accent/80 data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,s,r),t[5]=r,t[6]=s,t[7]=c):c=t[7];let l;t[8]===o?l=t[9]:(l=o?null:(0,$.jsx)(Rn,{className:`col-start-1`,"data-slot":`select-item-indicator`,children:(0,$.jsx)(`svg`,{fill:`none`,height:`24`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,viewBox:`0 0 24 24`,width:`24`,xmlns:`http://www.w3.org/1500/svg`,children:(0,$.jsx)(`path`,{d:`M5.252 12.7 10.2 18.63 18.748 5.37`})})}),t[8]=o,t[9]=l);let u=o?`col-start-1`:`col-start-2`,d;t[10]===u?d=t[11]:(d=q(`min-w-0`,u),t[10]=u,t[11]=d);let f;t[12]!==n||t[13]!==d?(f=(0,$.jsx)(Bn,{className:d,"data-slot":`select-item-text`,children:n}),t[12]=n,t[13]=d,t[14]=f):f=t[14];let p;return t[15]!==i||t[16]!==c||t[17]!==l||t[18]!==f?(p=(0,$.jsxs)(Ln,{className:c,"data-slot":`select-item`,...i,children:[l,f]}),t[15]=i,t[16]=c,t[17]=l,t[18]=f,t[19]=p):p=t[19],p}function nr(e){let t=(0,Yn.c)(2),n;return t[0]===e?n=t[1]:(n=(0,$.jsx)(qn,{"data-slot":`select-group`,...e}),t[0]=e,t[1]=n),n}function rr(e){let t=(0,Yn.c)(2),n;return t[0]===e?n=t[1]:(n=(0,$.jsx)(Jn,{className:`px-2 py-1.5 font-medium text-muted-foreground text-xs`,"data-slot":`select-group-label`,...e}),t[0]=e,t[1]=n),n}var ir=he(`relative inline-flex shrink-0 items-center justify-center gap-1 whitespace-nowrap rounded-sm border border-transparent font-medium outline-none transition-shadow focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-3.5 sm:[&_svg:not([class*='size-'])]:size-3 [&_svg]:pointer-events-none [&_svg]:shrink-0 [button&,a&]:cursor-pointer [button&,a&]:pointer-coarse:after:absolute [button&,a&]:pointer-coarse:after:size-full [button&,a&]:pointer-coarse:after:min-h-11 [button&,a&]:pointer-coarse:after:min-w-11`,{defaultVariants:{size:`default`,variant:`default`},variants:{size:{default:`h-5.5 min-w-5.5 px-[calc(--spacing(1)-1px)] text-sm sm:h-4.5 sm:min-w-4.5 sm:text-xs`,lg:`h-6.5 min-w-6.5 px-[calc(--spacing(1.5)-1px)] text-base sm:h-5.5 sm:min-w-5.5 sm:text-sm`,sm:`h-5 min-w-5 rounded-sm px-[calc(--spacing(1)-1px)] text-xs sm:h-4 sm:min-w-4 sm:text-[.625rem]`},variant:{default:`bg-primary text-primary-foreground [button&,a&]:hover:bg-primary/90`,destructive:`bg-destructive text-white [button&,a&]:hover:bg-destructive/90`,error:`bg-destructive/8 text-destructive-foreground dark:bg-destructive/16`,info:`bg-info/8 text-info-foreground dark:bg-info/16`,outline:`border-input bg-background text-foreground dark:bg-input/32 [button&,a&]:hover:bg-accent/50 dark:[button&,a&]:hover:bg-input/48`,secondary:`bg-secondary text-secondary-foreground [button&,a&]:hover:bg-secondary/90`,success:`bg-success/8 text-success-foreground dark:bg-success/16`,warning:`bg-warning/8 text-warning-foreground dark:bg-warning/16`}}});function ar(e){let t=(0,Yn.c)(9),n,r,i,a;if(t[0]!==e){let{className:o,variant:s,size:c,render:l,...u}=e;n=l;let d={className:q(ir({className:o,size:c,variant:s})),"data-slot":`badge`};a=me,r=`span`,i=le(d,u),t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a}else n=t[1],r=t[2],i=t[3],a=t[4];let o;return t[5]!==n||t[6]!==r||t[7]!==i?(o={defaultTagName:r,props:i,render:n},t[5]=n,t[6]=r,t[7]=i,t[8]=o):o=t[8],a(o)}export{gt as A,vt as C,Et as D,bt as E,rt as F,nt as I,tt as L,mt as M,ft as N,Tt as O,dt as P,$e as R,yt as S,wt as T,jt as _,tr as a,Nt as b,$n as c,Zt as d,Xt as f,At as g,Lt as h,rr as i,ht as j,xt as k,en as l,zt as m,Xn as n,er as o,Ht as p,nr as r,Qn as s,ar as t,$t as u,kt as v,St as w,Dt as x,Mt as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as e}from"./useRenderElement-D0HVF5g_.js";var t={name:`bot`,size:24,node:[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./compiler-runtime-qmuS0Svy.js";import{d as t,t as n}from"./useRenderElement-D0HVF5g_.js";import{t as r,u as i}from"./utils-5-6TOrS1.js";function a(e){return n(e.defaultTagName??`div`,e,e)}var o=e(),s=i(`[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-lg border font-medium text-base outline-none transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] pointer-coarse:after:absolute pointer-coarse:after:top-1/2 pointer-coarse:after:left-1/2 pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 pointer-coarse:after:-translate-x-1/2 pointer-coarse:after:-translate-y-1/2 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{defaultVariants:{size:`default`,variant:`default`},variants:{size:{cta:`h-auto min-h-11 whitespace-normal px-[calc(--spacing(4)-1px)] py-2 text-base [&_svg:not([class*='size-'])]:size-5`,default:`h-9 px-[calc(--spacing(3)-1px)] sm:h-8`,icon:`size-9 sm:size-8`,"icon-lg":`size-10 sm:size-9`,"icon-sm":`size-8 sm:size-7`,"icon-xl":`size-11 sm:size-10 [&_svg:not([class*='size-'])]:size-5 sm:[&_svg:not([class*='size-'])]:size-4.5`,"icon-xs":`size-7 rounded-md before:rounded-[calc(var(--radius-md)-1px)] sm:size-6 not-in-data-[slot=input-group]:[&_svg:not([class*='size-'])]:size-4 sm:not-in-data-[slot=input-group]:[&_svg:not([class*='size-'])]:size-3.5`,lg:`h-10 px-[calc(--spacing(3.5)-1px)] sm:h-9`,sm:`h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] sm:h-7`,xl:`h-11 px-[calc(--spacing(4)-1px)] text-lg sm:h-10 sm:text-base [&_svg:not([class*='size-'])]:size-5 sm:[&_svg:not([class*='size-'])]:size-4.5`,xs:`h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-sm before:rounded-[calc(var(--radius-md)-1px)] sm:h-6 sm:text-xs [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5`},variant:{default:`not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-primary bg-primary text-primary-foreground shadow-primary/24 shadow-xs [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-primary/90`,destructive:`not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-destructive bg-destructive text-white shadow-destructive/24 shadow-xs [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-destructive/90`,"destructive-outline":`border-input bg-popover not-dark:bg-clip-padding text-destructive-foreground shadow-xs/5 not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/2%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:border-destructive/32 [:hover,[data-pressed]]:bg-destructive/4`,ghost:`border-transparent text-foreground data-pressed:bg-accent [:hover,[data-pressed]]:bg-accent`,link:`border-transparent underline-offset-4 [:hover,[data-pressed]]:underline`,outline:`border-input bg-popover not-dark:bg-clip-padding text-foreground shadow-xs/5 not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/2%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-accent/50 dark:[:hover,[data-pressed]]:bg-input/64`,secondary:`border-transparent bg-secondary text-secondary-foreground [:active,[data-pressed]]:bg-secondary/80 [:hover,[data-pressed]]:bg-secondary/90`}}});function c(e){let n=(0,o.c)(9),i,c,l,u;if(n[0]!==e){let{className:o,variant:d,size:f,render:p,...m}=e;i=p;let h=i?void 0:`button`,g={className:r(s({className:o,size:f,variant:d})),"data-slot":`button`,type:h};u=a,c=`button`,l=t(g,m),n[0]=e,n[1]=i,n[2]=c,n[3]=l,n[4]=u}else i=n[1],c=n[2],l=n[3],u=n[4];let d;return n[5]!==i||n[6]!==c||n[7]!==l?(d={defaultTagName:c,props:l,render:i},n[5]=i,n[6]=c,n[7]=l,n[8]=d):d=n[8],u(d)}export{s as n,a as r,c as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as e}from"./useRenderElement-D0HVF5g_.js";var t={name:`chart-column`,size:24,node:[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]],aliases:[`bar-chart-3`]};t.node;var n=e(t);export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as e}from"./useRenderElement-D0HVF5g_.js";var t={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as e}from"./useRenderElement-D0HVF5g_.js";var t={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}export{e as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as e}from"./useRenderElement-D0HVF5g_.js";var t={name:`clipboard-copy`,size:24,node:[[`rect`,{width:`8`,height:`4`,x:`8`,y:`2`,rx:`1`,ry:`1`,key:`tgr4d6`}],[`path`,{d:`M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2`,key:`4jdomd`}],[`path`,{d:`M16 4h2a2 2 0 0 1 2 2v4`,key:`3hqy98`}],[`path`,{d:`M21 14H11`,key:`1bme5i`}],[`path`,{d:`m15 10-4 4 4 4`,key:`5dvupr`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as e}from"./useRenderElement-D0HVF5g_.js";var t={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ia as e}from"./runtime-L56puJDA.js";import{t}from"./compiler-runtime-qmuS0Svy.js";import{t as n}from"./utils-5-6TOrS1.js";var r=t(),i=e();function a(e){let t=(0,r.c)(8),a,o;t[0]===e?(a=t[1],o=t[2]):({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o);let s;t[3]===a?s=t[4]:(s=n(`grid grid-cols-[auto_1fr] gap-x-4 gap-y-2`,a),t[3]=a,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,i.jsx)(`dl`,{className:s,"data-slot":`data-list`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function o(e){let t=(0,r.c)(16),{term:a,children:o,mono:s,action:c,className:l}=e,u=s!==void 0&&s,d;t[0]===a?d=t[1]:(d=(0,i.jsx)(`dt`,{className:`text-xs text-muted-foreground`,"data-slot":`data-list-term`,children:a}),t[0]=a,t[1]=d);let f=u&&`font-mono text-xs break-all`,p;t[2]!==l||t[3]!==f?(p=n(`flex min-w-0 items-start gap-2 text-sm`,f,l),t[2]=l,t[3]=f,t[4]=p):p=t[4];let m;t[5]===o?m=t[6]:(m=(0,i.jsx)(`span`,{className:`min-w-0`,children:o}),t[5]=o,t[6]=m);let h;t[7]===c?h=t[8]:(h=c?(0,i.jsx)(`span`,{className:`shrink-0 font-sans text-sm`,children:c}):null,t[7]=c,t[8]=h);let g;t[9]!==p||t[10]!==m||t[11]!==h?(g=(0,i.jsxs)(`dd`,{className:p,"data-slot":`data-list-detail`,children:[m,h]}),t[9]=p,t[10]=m,t[11]=h,t[12]=g):g=t[12];let _;return t[13]!==d||t[14]!==g?(_=(0,i.jsxs)(i.Fragment,{children:[d,g]}),t[13]=d,t[14]=g,t[15]=_):_=t[15],_}export{o as n,a as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as e}from"./useRenderElement-D0HVF5g_.js";var t={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{lt as e,ut as t}from"./src-gDjuIvMO.js";import{Ci as n,Gi as r,Si as i,Wi as a,xi as o}from"./runtime-L56puJDA.js";import{t as s}from"./compiler-runtime-qmuS0Svy.js";import{f as c}from"./useRenderElement-D0HVF5g_.js";var l={name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]};l.node;var u=c(l),d=s(),f=`ryco:last-editor`;function p(t){let n=e.find(e=>e.id===t);return!(!n||`workspaceOnly`in n&&n.workspaceOnly)}function m(i){let a=(0,d.c)(5),[o,s]=n(f,null,t),c=r(h),l;bb0:{if(c&&i.includes(c)&&p(c)){l=c;break bb0}if(o&&i.includes(o)&&p(o)){l=o;break bb0}let t;a[0]===i?t=a[1]:(t=e.find(e=>i.includes(e.id)&&p(e.id))?.id??null,a[0]=i,a[1]=t),l=t}let u=l,m;return a[2]!==u||a[3]!==s?(m=[u,s],a[2]=u,a[3]=s,a[4]=m):m=a[4],m}function h(e){return e.preferredEditor}function g(n){let r=new Set(n),s=a().preferredEditor;if(s&&r.has(s)&&p(s))return s;let c=o(f,t);if(c&&r.has(c)&&p(c))return c;let l=e.find(e=>r.has(e.id)&&p(e.id))?.id??null;return l&&i(f,l,t),l??null}async function _(e,t){let{availableEditors:n}=await e.server.getConfig(),r=g(n);if(!r)throw Error(`No available editors found.`);return await e.shell.openInEditor(t,r),r}export{u as a,m as i,_ as n,g as r,p as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ia as e}from"./runtime-L56puJDA.js";import{t}from"./compiler-runtime-qmuS0Svy.js";import{t as n,u as r}from"./utils-5-6TOrS1.js";var i=t(),a=e();function o(e){let t=(0,i.c)(8),r,o;t[0]===e?(r=t[1],o=t[2]):({className:r,...o}=e,t[0]=e,t[1]=r,t[2]=o);let s;t[3]===r?s=t[4]:(s=n(`flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance p-6 text-center md:p-12`,r),t[3]=r,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{className:s,"data-slot":`empty`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function s(e){let t=(0,i.c)(8),r,o;t[0]===e?(r=t[1],o=t[2]):({className:r,...o}=e,t[0]=e,t[1]=r,t[2]=o);let s;t[3]===r?s=t[4]:(s=n(`flex max-w-sm flex-col items-center text-center`,r),t[3]=r,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{className:s,"data-slot":`empty-header`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}var c=r(`flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,{defaultVariants:{variant:`default`},variants:{variant:{default:`bg-transparent`,icon:`relative flex size-9 shrink-0 items-center justify-center rounded-md border bg-card not-dark:bg-clip-padding text-foreground shadow-sm/5 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-md)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)] [&_svg:not([class*='size-'])]:size-4.5`}}});function l(e){let t=(0,i.c)(21),r,o,s;t[0]===e?(r=t[1],o=t[2],s=t[3]):({className:r,variant:s,...o}=e,t[0]=e,t[1]=r,t[2]=o,t[3]=s);let l=s===void 0?`default`:s,u;t[4]===r?u=t[5]:(u=n(`relative mb-6`,r),t[4]=r,t[5]=u);let d;t[6]!==r||t[7]!==l?(d=l===`icon`&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`div`,{"aria-hidden":`true`,className:n(c({className:r,variant:l}),`-translate-x-0.5 -rotate-10 pointer-events-none absolute bottom-px origin-bottom-left scale-84 shadow-none`)}),(0,a.jsx)(`div`,{"aria-hidden":`true`,className:n(c({className:r,variant:l}),`pointer-events-none absolute bottom-px origin-bottom-right translate-x-0.5 rotate-10 scale-84 shadow-none`)})]}),t[6]=r,t[7]=l,t[8]=d):d=t[8];let f;t[9]!==r||t[10]!==l?(f=n(c({className:r,variant:l})),t[9]=r,t[10]=l,t[11]=f):f=t[11];let p;t[12]!==o||t[13]!==f?(p=(0,a.jsx)(`div`,{className:f,...o}),t[12]=o,t[13]=f,t[14]=p):p=t[14];let m;return t[15]!==o||t[16]!==u||t[17]!==d||t[18]!==p||t[19]!==l?(m=(0,a.jsxs)(`div`,{className:u,"data-slot":`empty-media`,"data-variant":l,...o,children:[d,p]}),t[15]=o,t[16]=u,t[17]=d,t[18]=p,t[19]=l,t[20]=m):m=t[20],m}function u(e){let t=(0,i.c)(8),r,o;t[0]===e?(r=t[1],o=t[2]):({className:r,...o}=e,t[0]=e,t[1]=r,t[2]=o);let s;t[3]===r?s=t[4]:(s=n(`font-heading font-semibold text-xl`,r),t[3]=r,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{className:s,"data-slot":`empty-title`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function d(e){let t=(0,i.c)(8),r,o;t[0]===e?(r=t[1],o=t[2]):({className:r,...o}=e,t[0]=e,t[1]=r,t[2]=o);let s;t[3]===r?s=t[4]:(s=n(`text-muted-foreground text-sm [&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4 [[data-slot=empty-title]+&]:mt-1`,r),t[3]=r,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{className:s,"data-slot":`empty-description`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function f(e){let t=(0,i.c)(8),r,o;t[0]===e?(r=t[1],o=t[2]):({className:r,...o}=e,t[0]=e,t[1]=r,t[2]=o);let s;t[3]===r?s=t[4]:(s=n(`flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm`,r),t[3]=r,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{className:s,"data-slot":`empty-content`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}export{l as a,s as i,f as n,u as o,d as r,o as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ia as e}from"./runtime-L56puJDA.js";import{t}from"./compiler-runtime-qmuS0Svy.js";import{t as n,u as r}from"./utils-5-6TOrS1.js";import{t as i}from"./separator-YeH3P39x.js";var a=t(),o=e(),s=r(`flex w-fit *:focus-visible:z-1 has-[>[data-slot=group]]:gap-2 *:has-focus-visible:z-1 dark:*:[[data-slot=button]:hover~[data-slot=separator]:not([data-slot]:hover~[data-slot=separator]~[data-slot=separator]),[data-slot][data-pressed]~[data-slot=separator]:not([data-slot][data-pressed]~[data-slot=separator]~[data-slot=separator])]:before:bg-input/64 dark:*:[[data-slot=separator]:has(~[data-slot=button]:hover):not(:has(~[data-slot=separator]~[data-slot]:hover)),[data-slot=separator]:has(~[data-slot][data-pressed]):not(:has(~[data-slot=separator]~[data-slot][data-pressed]))]:before:bg-input/64`,{defaultVariants:{orientation:`horizontal`},variants:{orientation:{horizontal:`*:[[data-slot]~[data-slot]:not([data-slot=separator])]:before:-start-[0.5px] *:data-slot:not-data-[slot=separator]:has-[~[data-slot]]:before:-end-[0.5px] *:pointer-coarse:after:min-w-auto *:data-slot:has-[~[data-slot]]:rounded-e-none *:data-slot:has-[~[data-slot]]:border-e-0 *:data-slot:has-[~[data-slot]]:before:rounded-e-none *:[[data-slot]~[data-slot]]:rounded-s-none *:[[data-slot]~[data-slot]]:border-s-0 *:[[data-slot]~[data-slot]]:before:rounded-s-none`,vertical:`*:[[data-slot]~[data-slot]:not([data-slot=separator])]:before:-top-[0.5px] *:data-slot:not-data-[slot=separator]:has-[~[data-slot]]:before:-bottom-[0.5px] flex-col *:pointer-coarse:after:min-h-auto *:data-slot:has-[~[data-slot]]:rounded-b-none *:data-slot:has-[~[data-slot]]:border-b-0 *:data-slot:not-data-[slot=separator]:has-[~[data-slot]]:before:hidden *:data-slot:has-[~[data-slot]]:before:rounded-b-none dark:*:last:before:hidden dark:*:first:before:block *:[[data-slot]~[data-slot]]:rounded-t-none *:[[data-slot]~[data-slot]]:border-t-0 *:[[data-slot]~[data-slot]]:before:rounded-t-none`}}});function c(e){let t=(0,a.c)(13),r,i,c,l;t[0]===e?(r=t[1],i=t[2],c=t[3],l=t[4]):({className:i,orientation:c,children:r,...l}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=c,t[4]=l);let u;t[5]!==i||t[6]!==c?(u=n(s({orientation:c}),i),t[5]=i,t[6]=c,t[7]=u):u=t[7];let d;return t[8]!==r||t[9]!==c||t[10]!==l||t[11]!==u?(d=(0,o.jsx)(`div`,{className:u,"data-orientation":c,"data-slot":`group`,role:`group`,...l,children:r}),t[8]=r,t[9]=c,t[10]=l,t[11]=u,t[12]=d):d=t[12],d}function l(e){let t=(0,a.c)(10),r,s,c;t[0]===e?(r=t[1],s=t[2],c=t[3]):({className:r,orientation:c,...s}=e,t[0]=e,t[1]=r,t[2]=s,t[3]=c);let l=c===void 0?`vertical`:c,u;t[4]===r?u=t[5]:(u=n(`[[data-slot=input-control]:focus-within+&,[data-slot=input-group]:focus-within+&,[data-slot=select-trigger]:focus-visible+*+&,[data-slot=number-field]:focus-within+input+&]:-translate-x-px pointer-events-none relative z-2 bg-input before:absolute before:inset-0 has-[+[data-slot=input-control]:focus-within,+[data-slot=input-group]:focus-within,+[data-slot=select-trigger]:focus-visible+*,+[data-slot=number-field]:focus-within]:translate-x-px has-[+[data-slot=input-control]:focus-within,+[data-slot=input-group]:focus-within,+[data-slot=select-trigger]:focus-visible+*,+[data-slot=number-field]:focus-within]:bg-ring dark:before:bg-input/32 [[data-slot=input-control]:focus-within+&,[data-slot=input-group]:focus-within+&,[data-slot=select-trigger]:focus-visible+*+&,[data-slot=number-field]:focus-within+&,[data-slot=number-field]:focus-within+input+&]:bg-ring`,r),t[4]=r,t[5]=u);let d;return t[6]!==l||t[7]!==s||t[8]!==u?(d=(0,o.jsx)(i,{className:u,orientation:l,...s}),t[6]=l,t[7]=s,t[8]=u,t[9]=d):d=t[9],d}export{l as n,c as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{D as n,L as r,Tn as i,w as a}from"./runtime-L56puJDA.js";import{o,s}from"./authorization-K_UCP_xh.js";import{a as c,i as l,o as u,r as d,s as f,t as p}from"./workspaceMetadataProjection-UiprkDbH.js";function m(e){return Number.isSafeInteger(e)&&e>=0}function h(e){return e.environmentId===null||!m(e.selectionGeneration)||!m(e.snapshotGeneration)||e.effectiveRole!==`owner`||!e.directoryReady||!e.relayReady||!e.shellReady?null:{environmentId:e.environmentId,selectionGeneration:e.selectionGeneration,snapshotGeneration:e.snapshotGeneration,effectiveRole:e.effectiveRole,directoryReady:!0,relayReady:!0,shellReady:!0}}function g(e,t,n){let r=h(n);return r!==null&&e.environmentId===t&&r.environmentId===t&&e.selectionGeneration===r.selectionGeneration&&e.snapshotGeneration===r.snapshotGeneration&&e.effectiveRole===r.effectiveRole}function _(){let e=new Set,t={environmentId:null,selectionGeneration:0,snapshotGeneration:0,effectiveRole:null,directoryReady:!1,relayReady:!1,shellReady:!1};return{update(n){let r=t.environmentId!==n.environmentId||t.effectiveRole!==n.effectiveRole||t.directoryReady!==n.directoryReady||t.relayReady!==n.relayReady||t.shellReady!==n.shellReady;t={...n,selectionGeneration:r?t.selectionGeneration+1:t.selectionGeneration};for(let t of Array.from(e))t()},read:()=>t,lease(e){let n=h(t);return n?.environmentId===e?n:null},validate:(e,n)=>g(e,n,t),subscribe(t){return e.add(t),()=>e.delete(t)}}}var v=45e3;function y(e){if(!Number.isInteger(e)||e<1||e>3)throw RangeError(`platformMaxConnections must be between 1 and 3`);return{platformMaxConnections:e,backgrounded:!1,leases:[],connections:[]}}function b(e,t,n){let r=e.connections.find(e=>e.environmentId===t)??{environmentId:t,connected:!1,lastAccessedAt:0};return{...e,connections:[...e.connections.filter(e=>e.environmentId!==t),n(r)]}}function x(e,t,n){return b(e,t,e=>({...e,lastAccessedAt:Math.max(e.lastAccessedAt,n)}))}function S(e,t,n,r){return b(e,t,e=>({...e,connected:n,lastAccessedAt:Math.max(e.lastAccessedAt,r)}))}function C(e,t){if(t.leaseId.length===0)throw TypeError(`leaseId must not be empty`);if(e.leases.some(e=>e.leaseId===t.leaseId))throw Error(`Duplicate workspace connection lease: ${t.leaseId}`);let n=t.ttlMs??45e3;if(!Number.isFinite(n)||n<=0)throw RangeError(`ttlMs must be positive`);return x({...e,leases:[...e.leases,{leaseId:t.leaseId,environmentId:t.environmentId,scope:t.scope,retainedAt:t.now,expiresAt:t.now+n}]},t.environmentId,t.now)}function w(e,t,n,r=v){if(!Number.isFinite(r)||r<=0)throw RangeError(`ttlMs must be positive`);return{...e,leases:e.leases.map(e=>e.leaseId===t?{...e,expiresAt:n+r}:e)}}function ee(e,t){return{...e,leases:e.leases.filter(e=>e.leaseId!==t)}}function T(e,t){return e.backgrounded===t?e:{...e,backgrounded:t}}function te(e,t){let n=e.leases.filter(e=>e.expiresAt>t);return n.length===e.leases.length?e:{...e,leases:n}}function E(e,t){let n=te(e,t.now),r=new Map;for(let e of n.leases)r.set(e.environmentId,Math.max(r.get(e.environmentId)??0,e.retainedAt));let i=Array.from(r.keys()),a=new Set(i),o=n.connections.filter(e=>e.connected),s=new Set(o.map(e=>e.environmentId)),c=o.filter(e=>!a.has(e.environmentId)).toSorted((e,t)=>e.lastAccessedAt-t.lastAccessedAt||String(e.environmentId).localeCompare(String(t.environmentId))),l=i.filter(e=>!s.has(e)).toSorted((e,t)=>(r.get(t)??0)-(r.get(e)??0)||String(e).localeCompare(String(t))),u=[];if(n.backgrounded)return u.push(...c.map(e=>e.environmentId)),{state:n,retain:i.filter(e=>s.has(e)),release:u,connect:[],queued:l};let d=o.length,f=[...c];for(;f.length>0&&(d>n.platformMaxConnections||d+l.length>n.platformMaxConnections);){let e=f.shift();u.push(e.environmentId),--d}let p=Math.max(0,n.platformMaxConnections-d),m=l.slice(0,p),h=Math.max(0,t.wakeStaggerMs??0);return{state:n,retain:i.filter(e=>s.has(e)),release:u,connect:m.map((e,t)=>({environmentId:e,delayMs:t*h})),queued:l.slice(m.length)}}var ne={os:`unknown`,arch:`other`};function re(e){return Array.from(new Set(e.filter(e=>e!==null)))}function ie(e){let t=e.revokedAt!=null,n=e.removed===!0,r=e.clientTier===`hosted-web`&&e.capabilities?.nativeClientRequired===!0,i=e.clientTier===`native`&&e.requiresNativeVerification&&e.nativeTrust===`unknown`,a=e.clientTier===`native`&&e.requiresNativeVerification&&e.nativeTrust===`unverified`,o=e.nativeTrust===`identity-conflict`,s=e.clientTier===`hosted-web`?!r:!e.requiresNativeVerification||e.nativeTrust===`verified`||e.nativeTrust===`account-trusted`,c=!t&&!n&&s&&!o,l=c&&e.online,u=l&&e.effectiveRole!==null&&e.effectiveRole!==`viewer`,d=re([t?`revoked`:null,n?`removed`:null,r?`native-client-required`:null,i?`trust-unknown`:null,a?`not-verified`:null,o?`identity-conflict`:null,e.online?null:`offline`,e.effectiveRole===null?`role-unknown`:null,e.effectiveRole===`viewer`?`viewer`:null]);return{environmentId:e.environmentId,nodeId:e.nodeId??null,label:e.label,platform:e.platform??ne,serverVersion:e.serverVersion??null,capabilities:{repositoryIdentity:e.capabilities?.repositoryIdentity??!1,nativeClientRequired:e.capabilities?.nativeClientRequired??!1,threadSettlement:e.capabilities?.threadSettlement??!1,...e.capabilities?.threadSnooze===void 0?{}:{threadSnooze:e.capabilities.threadSnooze}},clientTier:e.clientTier,nativeTrust:e.nativeTrust,effectiveRole:e.effectiveRole,presence:{online:e.online,lastSeenAt:e.lastSeenAt,observedAt:e.observedAt},connectionState:e.connectionState??`disconnected`,deliveryUnknown:e.deliveryUnknown??!1,revokedAt:e.revokedAt??null,removed:n,canReadMetadata:c,canConnect:l,canMutate:u,cacheDisposition:t||n||r||i||a?`purge`:o?`locked-stale`:`available`,accessReasons:d}}function ae(e){let t=new Map;for(let n of e)t.set(n.environmentId,ie(n));return Array.from(t.values()).toSorted((e,t)=>e.label.localeCompare(t.label)||String(e.environmentId).localeCompare(String(t.environmentId)))}function oe(e){if(e===null)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null}function se(e){let t=new Map(e.machines.map(e=>[e.environmentId,e])),r=new Map;for(let t of e.snapshots){let e=r.get(t.environmentId);(!e||t.capturedAt>e.capturedAt)&&r.set(t.environmentId,t)}let i=[],o=[];for(let[e,n]of r){let r=t.get(e);if(r&&r.cacheDisposition!==`purge`){if(r.cacheDisposition===`locked-stale`){o.push({status:`locked-stale`,environmentId:e,capturedAt:n.capturedAt});continue}r.canReadMetadata&&(o.push({status:`available`,snapshot:n}),i.push(n))}}let s=i.flatMap(e=>e.projects),c=i.flatMap(e=>e.worktrees),l=i.flatMap(e=>{let n=t.get(e.environmentId);return e.threads.map(e=>({...e,deliveryUnknown:e.deliveryUnknown||n?.deliveryUnknown===!0}))}),u=s.flatMap(n=>{let r=t.get(n.environmentId);if(!r)return[];let i=a(n);return[{environmentId:n.environmentId,projectId:n.id,physicalKey:i,name:n.name,cwd:n.cwd,repositoryIdentity:n.repositoryIdentity,machineLabel:r.label,online:r.presence.online,canMutate:r.canMutate,nativeTrust:r.nativeTrust,effectiveRole:r.effectiveRole,lastUsedAt:e.lastUsedAtByPhysicalProjectKey?.[i]??null,lastLiveAt:oe(n.updatedAt)??r.presence.lastSeenAt,localDesktop:e.localDesktopEnvironmentId===n.environmentId}]});return{machines:e.machines,snapshots:o.toSorted((e,t)=>{let n=e.status===`available`?e.snapshot.environmentId:e.environmentId,r=t.status===`available`?t.snapshot.environmentId:t.environmentId;return String(n).localeCompare(String(r))}),projects:s,worktrees:c,threads:l,logicalProjects:n(u)}}var D=`__TSR_index`,ce=`popstate`,le=`beforeunload`;function ue(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=k(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[D];i=de(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[D];i=de(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t,n?.ignoreBlocker??!1),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[D]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function de(e,t){t||={};let n=A();return{...t,key:n,__TSR_key:n,[D]:e}}function O(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>k(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=A();t.history.replaceState({[D]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(e,t,n)=>{let r=s(t),i=!!g;i||(u=l),l=k(t,n),g=[r,n,g?.[2]||e],i||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(m=!1,f){f=!1;return}let e=c(),n=e.state[D]-l.state[D],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=ue({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0,m=!0),t.history.back()),forward:e=>{e&&(p=!0,m=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:e=>s(e),flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(le,x,{capture:!0}),t.removeEventListener(ce,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(le,x,{capture:!0}),t.addEventListener(ce,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function fe(e){let t=e?.window??(typeof document<`u`?window:void 0);return O({window:t,parseLocation:()=>{let e=t.location.hash.split(`#`).slice(1),n=e[0]??`/`,r=t.location.search,i=e.slice(1);return k(`${n}${r}${i.length===0?``:`#${i.join(`#`)}`}`,t.history.state)},createHref:e=>`${t.location.pathname}${t.location.search}#${e}`})}function pe(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function k(e,t){let n=pe(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=A();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[D]:0,key:a,__TSR_key:a}}}function A(){return(Math.random()+1).toString(36).substring(7)}var me=e(t(),1),j=`ryco:hosted-workspace-metadata:v1`,M=1;function N(e){try{return new URL(e).origin.toLowerCase()}catch{return e.replace(/\/+$/gu,``).toLowerCase()}}function P(e){return{...e,hubOrigin:N(e.hubOrigin)}}function he(e){return{...e,namespace:P(e.namespace)}}function ge(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=e;return typeof t.hubOrigin==`string`&&t.hubOrigin.length>0&&t.hubOrigin.length<=2048&&typeof t.accountId==`string`&&t.accountId.length>0&&t.accountId.length<=2048&&typeof t.environmentId==`string`&&t.environmentId.length>0&&t.environmentId.length<=2048}function _e(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=e;return ge(t.namespace)&&l(t.snapshot,t.namespace.environmentId)&&Number.isSafeInteger(t.payloadBytes)&&t.payloadBytes===f(t.snapshot)&&Number.isSafeInteger(t.updatedAt)&&Number(t.updatedAt)>=0}function F(e){try{let t=e.getItem(j);if(!t)return{version:M,records:[]};let n=JSON.parse(t);if(typeof n!=`object`||!n||Array.isArray(n))return{version:M,records:[]};let r=n;if(r.version!==M||!Array.isArray(r.records))return{version:M,records:[]};let i=new Map;for(let e of r.records){if(!_e(e))continue;let t=he(e),n=u(t.namespace),r=i.get(n);(!r||t.updatedAt>r.updatedAt)&&i.set(n,t)}return{version:M,records:Array.from(i.values())}}catch{return{version:M,records:[]}}}function I(e,t){if(t.length===0){e.removeItem(j);return}e.setItem(j,JSON.stringify({version:M,records:t}))}function ve(e){let t=Promise.resolve(),n=e=>{let n=t.then(e,e);return t=n.then(()=>void 0,()=>void 0),n};return{load:async t=>{let n=u(P(t));return F(e).records.find(e=>u(e.namespace)===n)??null},list:async({hubOrigin:t,accountId:n})=>F(e).records.filter(e=>N(e.namespace.hubOrigin)===N(t)&&e.namespace.accountId===n),replace:t=>n(async()=>{if(!_e(t))throw TypeError(`Invalid hosted workspace metadata record.`);let n=he(t),r=F(e),i=c({existing:r.records,incoming:n});if(!i.accepted)return;let a=u(n.namespace),o=new Set(i.evict.map(u));I(e,[...r.records.filter(e=>{let t=u(e.namespace);return t!==a&&!o.has(t)}),n])}),purgeEnvironment:t=>n(async()=>{let n=u(P(t));I(e,F(e).records.filter(e=>u(e.namespace)!==n))}),purgeAccount:({hubOrigin:t,accountId:r})=>n(async()=>{I(e,F(e).records.filter(e=>N(e.namespace.hubOrigin)!==N(t)||e.namespace.accountId!==r))})}}var ye=null;function be(){return ye||=ve(window.localStorage),ye}var L=`/node`,xe=/^[A-Za-z0-9_-]{1,128}$/,Se={nodeId:null,malformed:!1,logicalPathname:`/`},Ce={nodeId:null,malformed:!0},we={nodeId:null,malformed:!1};function R(e){return xe.test(e)}function z(e){let t=e.indexOf(`#`),n=t===-1?e:e.slice(0,t),r=n.indexOf(`?`),i=r===-1?n:n.slice(0,r);return{pathname:i,suffix:e.slice(i.length)}}function Te(e){let{pathname:t,suffix:n}=z(e);if(t!==L&&!t.startsWith(`${L}/`))return{routed:we,logicalHref:e};let r=t.slice(6),i=r.indexOf(`/`),a=i===-1?r:r.slice(0,i);if(!R(a))return{routed:Ce,logicalHref:`/`};let o=i===-1?`/`:r.slice(i)||`/`;return{routed:{nodeId:a,malformed:!1},logicalHref:`${o}${n}`}}var Ee=new Set([`sign-in`,`sign-up`,`public-signup`,`password-reset`,`invitation`,`setup`,`email-verification`,`nodes`,`account`]),B=()=>null;function De(e){return B=e,()=>{B===e&&(B=()=>null)}}function Oe(e){let t=/^\/([^/]+)\/[^/]+\/?$/u.exec(e)?.[1];if(!t||Ee.has(t)||t===`draft`||t===`node`)return null;try{return decodeURIComponent(t)}catch{return t}}function ke(e){if(!e.startsWith(`/`))return!1;let t=e.slice(1).split(`/`,1)[0]??``;return Ee.has(t)}function Ae(e,t){let{pathname:n,suffix:r}=z(e);if(ke(n))return e;let i=Oe(n),a=i?B(i)??t:t;return a===null||!R(a)?e:`${n===``||n===`/`?`${L}/${a}`:`${L}/${a}${n}`}${r}`}var V=Se,H=new Set,U=null;function W(e){if(e.nodeId!==V.nodeId||e.malformed!==V.malformed||e.logicalPathname!==V.logicalPathname){V=e;for(let e of Array.from(H))e()}}function je(e){let{pathname:t}=z(e);return t===``?`/`:t}function Me(){return V}function Ne(e){return H.add(e),()=>{H.delete(e)}}function Pe(e,t){let n=e.indexOf(`#`),r=n===-1?e:e.slice(0,n),i=r.indexOf(`?`);return{href:e,pathname:i===-1?r:r.slice(0,i),search:i===-1?``:r.slice(i),hash:n===-1?``:e.slice(n),state:t??{__TSR_index:0}}}function Fe(e=window){let t=O({window:e,parseLocation:()=>{let t=Te(`${e.location.pathname}${e.location.search}${e.location.hash}`);return W({...t.routed,logicalPathname:je(t.logicalHref)}),Pe(t.logicalHref,e.history.state)},createHref:e=>Ae(e,V.nodeId)}),n=t.subscribe(({location:e,action:t})=>{if(t.type!==`PUSH`&&t.type!==`REPLACE`)return;let n=Te(Ae(e.href,V.nodeId));W({...n.routed,logicalPathname:je(n.logicalHref)})}),r=t.destroy.bind(t);return t.destroy=()=>{n(),r()},U=t,t}function Ie(){return U}function Le(e){let t=U;return!t||!R(e)?!1:(W({nodeId:e,malformed:!1,logicalPathname:`/`}),t.push(`/`),!0)}function Re(e){let t=U;return!t||!R(e)?!1:(W({nodeId:e,malformed:!1,logicalPathname:V.logicalPathname}),t.replace(t.location.href),!0)}function ze(){let e=U;return e?(W({nodeId:null,malformed:!1,logicalPathname:`/nodes`}),e.push(`/nodes`),!0):!1}function Be(){let e=U;e&&(W(Se),e.replace(`/`))}var Ve=25e3,He=v;function Ue(e,t){switch(t.type){case`interactive`:return JSON.stringify([e,t.type]);case`thread-detail`:return JSON.stringify([e,t.type,t.threadId]);case`vcs-status`:return JSON.stringify([e,t.type,t.cwd]);case`provider-status`:return JSON.stringify([e,t.type,t.instanceId??null])}}function We(){let e=new Map,t=new Set,n=()=>{for(let e of Array.from(t))e()};return{retain(t,r){let i=Ue(t,r),a=e.get(i);e.set(i,{key:i,environmentId:t,scope:r,refCount:(a?.refCount??0)+1}),a||n();let o=!1;return()=>{if(o)return;o=!0;let t=e.get(i);if(t){if(t.refCount>1){e.set(i,{...t,refCount:t.refCount-1});return}e.delete(i),n()}}},list:()=>Array.from(e.values()),subscribe(e){return t.add(e),()=>t.delete(e)},reset(){e.size!==0&&(e.clear(),n())}}}var G=We();function Ge(e,t){return G.retain(e,{type:`thread-detail`,threadId:t})}function Ke(e,t){return G.retain(e,{type:`vcs-status`,cwd:t})}function qe(e,t){return G.retain(e,{type:`provider-status`,...t?{instanceId:t}:{}})}function Je(e){let t=y(1),n=[],r=Promise.resolve(),i=!1,a=0,o=new Map,s=new Set,c=()=>{for(let e of Array.from(s))e()},l=()=>{let n=new Map(e.scopes.list().map(e=>[e.key,e]));for(let[e,r]of Array.from(o))n.has(e)||(o.delete(e),t=ee(t,r));for(let[r,i]of n){let n=o.get(r);if(n){t=w(t,n,e.now(),He);continue}let s=`hosted-web-${++a}`;o.set(r,s),t=C(t,{leaseId:s,environmentId:i.environmentId,scope:i.scope,now:e.now(),ttlMs:He})}},u=async()=>{if(i)return;l();let r=E(t,{now:e.now(),wakeStaggerMs:750});t=r.state,n=r.queued,c();for(let n of r.release)await e.release(n).catch(()=>void 0),t=S(t,n,!1,e.now());for(let n of r.connect)try{await e.connect(n.environmentId,n.delayMs),t=S(t,n.environmentId,!0,e.now())}catch{t=S(t,n.environmentId,!1,e.now())}n=E(t,{now:e.now(),wakeStaggerMs:750}).queued,c()},d=()=>{let e=r.catch(()=>void 0).then(u);return r=e.catch(()=>void 0),e},f=e.scopes.subscribe(()=>void d()),p=e.setInterval(()=>void d(),Ve);return{snapshot:()=>({demand:t,queuedEnvironmentIds:n,activeConnectionCount:t.connections.filter(e=>e.connected).length}),subscribe(e){return s.add(e),()=>s.delete(e)},reportConnected(n,r){t=S(t,n,r,e.now()),c()},setBackgrounded(e){return t=T(t,e),d()},reconcile:d,dispose(){i||(i=!0,f(),e.clearInterval(p),s.clear())}}}var Ye={machines:[],snapshots:[],projects:[],worktrees:[],threads:[],logicalProjects:[]},K={status:`signed-out`,accountId:null,machines:[],workspace:Ye,demand:{demand:y(1),queuedEnvironmentIds:[],activeConnectionCount:0}},q=new Set,J=null,Y=_();function X(e){return Y.lease(e)}function Xe(e,t=3e4){let n=X(e);return n?Promise.resolve(n):new Promise(n=>{let r=!1,i=e=>{r||(r=!0,globalThis.clearTimeout(o),a(),n(e))},a=Y.subscribe(()=>{let t=X(e);t&&i(t)}),o=globalThis.setTimeout(()=>i(null),t)})}function Z(e){K=e;for(let e of Array.from(q))e()}function Ze(){return K}function Qe(){return(0,me.useSyncExternalStore)($e,Ze,Ze)}function $e(e){return q.add(e),()=>q.delete(e)}function Q(e){return e.capabilities?.nativeClientRequired===!0}function et(e,t,n,r,i){return ae(e.map(e=>({environmentId:e.environmentId,nodeId:e.id,label:e.label,platform:{os:e.platformOs,arch:e.platformArch},serverVersion:e.clientVersion,capabilities:{repositoryIdentity:e.capabilities?.repositoryIdentity??!0,threadSettlement:e.capabilities?.threadSettlement??!1,nativeClientRequired:e.capabilities?.nativeClientRequired??!1},clientTier:`hosted-web`,nativeTrust:`not-required`,requiresNativeVerification:!1,effectiveRole:e.effectiveRole,online:e.presence.online,lastSeenAt:e.presence.lastHeartbeatAt,observedAt:i,connectionState:e.environmentId===t&&n?`connected`:`disconnected`,deliveryUnknown:e.environmentId===t&&r,revokedAt:e.revokedAt})))}function tt(e){let t=e?.cache??be(),n=e?.now??Date.now,a=e?.setTimeout??((e,t)=>globalThis.setTimeout(e,t)),c=e?.clearTimeout??(e=>globalThis.clearTimeout(e)),l=e?.setInterval??((e,t)=>globalThis.setInterval(e,t)),u=e?.clearInterval??(e=>globalThis.clearInterval(e)),m=e?.hubOrigin??window.location.origin,h=new Map,g=null,_=null,v=null,y=!1,b=0,x=null,S=Je({scopes:G,now:n,setInterval:l,clearInterval:u,connect:async(e,t)=>{t>0&&await new Promise(e=>a(e,t));let n=s.getState();if(n.directoryStatus!==`ready`||n.browserStatus!==`current`)throw Error(`Hosted Web directory is not current.`);let r=n.nodes.find(t=>t.environmentId===e&&t.revokedAt===null&&t.presence.online&&!Q(t));if(!r)throw Error(`Hosted Web environment is not eligible.`);await o.selectNode(r.id)},release:async e=>{s.getState().selectedNode?.environmentId===e&&await o.returnToDirectory()}});J=S;let C=e=>{let t=s.getState(),n=t.accountStatus===`authenticated`?t.directoryStatus===`ready`?`ready`:t.directoryStatus===`stale`?`stale`:`loading`:`signed-out`,r=t.selectedNode?.environmentId??null,i=r===null?void 0:h.get(r);Y.update({environmentId:r,snapshotGeneration:i?.capturedAt??0,effectiveRole:t.effectiveRole,directoryReady:t.directoryStatus===`ready`&&t.browserStatus===`current`,relayReady:t.transportStatus===`online`&&t.sessionEstablished&&r!==null,shellReady:i!==void 0&&e.some(e=>e.environmentId===r&&e.connectionState===`connected`&&e.canMutate)}),Z({status:n,accountId:t.account?.id??null,machines:e,workspace:se({machines:e,snapshots:Array.from(h.values())}),demand:S.snapshot()})},w=async()=>{let e=++b,a=s.getState(),o=a.accountStatus===`authenticated`?a.account?.id??null:null,c=o?JSON.stringify([m,o]):null,l=_;if(_=o,l&&o!==l&&(await t.purgeAccount({hubOrigin:m,accountId:l}).catch(()=>void 0),h.clear(),G.reset(),r()),!o){g=null,C([]);return}if(c!==g&&a.directoryStatus===`ready`){g=c;let n=await t.list({hubOrigin:m,accountId:o});if(y||e!==b)return;let r=new Set(a.nodes.filter(e=>e.revokedAt===null&&!Q(e)).map(e=>e.environmentId));for(let e of n){if(!r.has(e.namespace.environmentId)){await t.purgeEnvironment(e.namespace).catch(()=>void 0);continue}h.set(e.namespace.environmentId,e.snapshot),i.getState().hydrateEnvironmentStateFromCache(d(e.snapshot),e.namespace.environmentId)}}let u=a.selectedNode?.environmentId??null,f=u!==null&&a.transportStatus!==`idle`&&a.transportStatus!==`terminal-failure`,p=a.transportStatus===`online`&&a.sessionEstablished;x&&x!==u&&S.reportConnected(x,!1),u&&S.reportConnected(u,f),x=u;let v=et(a.nodes,u,p,a.sessionStatus===`delivery-unknown`,n()),w=new Map(v.map(e=>[e.environmentId,e]));if(a.directoryStatus===`ready`)for(let[e]of Array.from(h))w.get(e)?.cacheDisposition!==`available`&&(h.delete(e),i.getState().removeEnvironmentState(e),await t.purgeEnvironment({hubOrigin:m,accountId:o,environmentId:e}).catch(()=>void 0));y||e!==b||C(v)},ee=()=>{v!==null&&c(v),v=a(()=>{if(v=null,y||!_)return;let e=K.machines;for(let r of e){if(!r.canReadMetadata)continue;let e=p(r.environmentId,n(),r.deliveryUnknown);e&&(h.set(r.environmentId,e),t.replace({namespace:{hubOrigin:m,accountId:_,environmentId:r.environmentId},snapshot:e,payloadBytes:f(e),updatedAt:n()}).catch(()=>void 0))}C(e)},100)},T=s.subscribe(()=>void w()),te=i.subscribe(ee),E=S.subscribe(()=>C(K.machines)),ne=De($);return S.reconcile(),w(),()=>{y=!0,b+=1,v!==null&&c(v),T(),te(),E(),ne(),S.dispose(),J===S&&(J=null,Y.update({environmentId:null,snapshotGeneration:0,effectiveRole:null,directoryReady:!1,relayReady:!1,shellReady:!1}),Z({status:`signed-out`,accountId:null,machines:[],workspace:Ye,demand:S.snapshot()}))}}function nt(e){return J?.setBackgrounded(e)??Promise.resolve()}function rt(){return J!==null}function $(e){return s.getState().nodes.find(t=>t.environmentId===e&&t.revokedAt===null&&!Q(t))?.id??null}export{k as S,Fe as _,nt as a,O as b,Xe as c,Ke as d,Re as f,Me as g,Ie as h,X as i,qe as l,Le as m,Q as n,tt as o,Be as p,$ as r,Qe as s,rt as t,Ge as u,ze as v,fe as x,Ne as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{ia as n}from"./runtime-L56puJDA.js";import{t as r}from"./compiler-runtime-qmuS0Svy.js";import{Ft as i,Lt as a,yt as o}from"./usePositioner-0Kb-C4al.js";import{t as s}from"./useRenderElement-D0HVF5g_.js";import{t as c}from"./utils-5-6TOrS1.js";import{A as l,a as u,j as d,x as f}from"./visuallyHidden-BRaogTVF.js";import{t as p}from"./useValueChanged-CThCTn4h.js";import{t as m}from"./useControlled-DQwgzrEC.js";import{i as h,n as g,r as _,s as v,t as y,u as b}from"./useLabelableId-NJQsKdL6.js";var x=e(t(),1),S=x.forwardRef(function(e,t){let{render:n,className:r,id:c,name:S,value:C,disabled:w=!1,onValueChange:T,defaultValue:E,autoFocus:D=!1,style:ee,...O}=e,{state:k,name:A,disabled:j,setTouched:M,setDirty:N,validityData:P,setFocused:F,setFilled:I,validationMode:L,validation:R}=v(),{clearErrors:z,elementRef:B,submitCountRef:V}=_(),H=j||w,U=A??S,W={...k,disabled:H},{labelId:G}=g(),K=y({id:c}),[q]=m({controlled:C,default:E,name:`FieldControl`,state:`value`}),J=C!==void 0,Y=J?q:void 0,X=Y==null?void 0:String(Y),Z=d(()=>R.inputRef.current?.value);h(R.inputRef,K,X,Z,!H,S),l(()=>{let e=X??R.inputRef.current?.value;e!==void 0&&I(e!==``)},[X,R.inputRef,I]),p(X,()=>{X!==void 0&&(z(U),N(X!==(P.initialValue??``)),R.change(X))});let Q=x.useRef(null),$=i();return l(()=>{D&&Q.current===o(a(Q.current))&&F(!0)},[D,F]),s(`input`,e,{ref:[t,Q],state:W,props:[{id:K,disabled:H,name:U,ref:R.inputRef,"aria-labelledby":G,autoFocus:D,...J?{value:Y}:{defaultValue:E},onChange(e){let t=e.currentTarget.value,n=u(f,e.nativeEvent);T?.(t,n),!J&&(N(t!==(P.initialValue??``)),I(t!==``),!e.nativeEvent.defaultPrevented&&!n.isCanceled&&(z(U),R.change(t)))},onFocus(){F(!0)},onBlur(e){if(M(!0),F(!1),L===`onBlur`){let t=e.currentTarget.value;R.commit(t),J&&queueMicrotask(()=>{let e=R.inputRef.current?.value;e!==void 0&&e!==t&&e!==(P.initialValue??``)&&R.commit(e)})}},onKeyDown(e){if(e.currentTarget.tagName===`INPUT`&&e.key===`Enter`){M(!0);let t=e.currentTarget.value,n=e.currentTarget.form;if(n&&n===B.current&&!e.defaultPrevented){let t=e.currentTarget,n=V.current;$.start(0,()=>{V.current===n&&R.commit(t.value)})}else R.commit(t)}}},O,e=>R.getValidationProps(H,e)],stateAttributesMapping:b})}),C=n(),w=x.forwardRef(function(e,t){return(0,C.jsx)(S,{ref:t,...e})}),T=r(),E=`phone:h-11 phone:[&_[data-slot=input]]:h-11 phone:[&_[data-slot=input]]:leading-11`;function D(e){let t=(0,T.c)(25),n,r,i,a,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6]):({className:n,size:a,unstyled:o,nativeInput:s,style:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s);let l=a===void 0?`default`:a,u=o!==void 0&&o,d=s!==void 0&&s,f=l===`sm`&&`h-7.5 px-[calc(--spacing(2.5)-1px)] leading-7.5 sm:h-6.5 sm:leading-6.5`,p=l===`lg`&&`h-9.5 leading-9.5 sm:h-8.5 sm:leading-8.5`,m=r.type===`search`&&`[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none [&::-webkit-search-results-button]:appearance-none [&::-webkit-search-results-decoration]:appearance-none`,h=r.type===`file`&&`text-muted-foreground file:me-3 file:bg-transparent file:font-medium file:text-foreground file:text-sm`,g;t[7]!==f||t[8]!==p||t[9]!==m||t[10]!==h?(g=c(`h-8.5 w-full min-w-0 rounded-[inherit] px-[calc(--spacing(3)-1px)] leading-8.5 outline-none placeholder:text-muted-foreground/72 sm:h-7.5 sm:leading-7.5 [transition:background-color_5000000s_ease-in-out_0s]`,f,p,m,h),t[7]=f,t[8]=p,t[9]=m,t[10]=h,t[11]=g):g=t[11];let _=g,v;t[12]!==n||t[13]!==u?(v=c(!u&&`relative inline-flex w-full rounded-lg border border-input bg-background not-dark:bg-clip-padding text-base text-foreground shadow-xs/5 ring-ring/24 transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] not-has-disabled:not-has-focus-visible:not-has-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] has-focus-visible:has-aria-invalid:border-destructive/64 has-focus-visible:has-aria-invalid:ring-destructive/16 has-aria-invalid:border-destructive/36 has-focus-visible:border-ring has-autofill:bg-foreground/4 has-disabled:opacity-64 has-[:disabled,:focus-visible,[aria-invalid]]:shadow-none has-focus-visible:ring-[3px] sm:text-sm dark:bg-input/32 dark:has-autofill:bg-foreground/8 dark:has-aria-invalid:ring-destructive/24 dark:not-has-disabled:not-has-focus-visible:not-has-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)]`,n)||void 0,t[12]=n,t[13]=u,t[14]=v):v=t[14];let y;t[15]!==_||t[16]!==d||t[17]!==r||t[18]!==l||t[19]!==i?(y=d?(0,C.jsx)(`input`,{...r,className:_,"data-slot":`input`,size:typeof l==`number`?l:void 0,style:typeof i==`function`?void 0:i}):(0,C.jsx)(w,{...r,className:_,"data-slot":`input`,size:typeof l==`number`?l:void 0,style:i}),t[15]=_,t[16]=d,t[17]=r,t[18]=l,t[19]=i,t[20]=y):y=t[20];let b;return t[21]!==l||t[22]!==y||t[23]!==v?(b=(0,C.jsx)(`span`,{className:v,"data-size":l,"data-slot":`input-control`,children:y}),t[21]=l,t[22]=y,t[23]=v,t[24]=b):b=t[24],b}export{E as n,S as r,D as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{ia as n}from"./runtime-L56puJDA.js";import{t as r}from"./compiler-runtime-qmuS0Svy.js";import{Bt as i,Et as a,Ft as o,J as ee,Jt as s,Lt as c,Vt as l,W as te,bt as u,f as ne,h as re,jt as d,kt as f,l as ie,nt as ae,xt as p}from"./usePositioner-0Kb-C4al.js";import{a as m,c as h,d as g,f as _,i as v,l as y,r as b,s as x,t as S}from"./useRenderElement-D0HVF5g_.js";import{A as oe,C as se,D as C,E as ce,F as le,I as ue,N as de,O as w,P as fe,S as T,T as pe,_ as E,b as me,d as he,g as ge,h as D,j as _e,k as ve,m as ye,p as be,v as xe,w as Se,y as O}from"./badge-CYDyJZRJ.js";import{t as Ce}from"./utils-5-6TOrS1.js";import{o as we}from"./useSwipeDismiss-CcW-GPO_.js";import{A as Te,C as Ee,R as De,U as Oe,_ as ke,a as k,b as Ae,c as je,f as Me,g as Ne,h as Pe,j as A,l as Fe,n as Ie,o as Le,r as Re,s as ze,t as Be,v as Ve,x as j,y as He}from"./visuallyHidden-BRaogTVF.js";import{n as M,t as Ue}from"./useValueChanged-CThCTn4h.js";import{O as We,T as Ge,f as Ke}from"./usePopupViewport-8OM2irPK.js";import{t as qe}from"./react-dom-x9LNwWQc.js";import{t as Je}from"./useControlled-DQwgzrEC.js";import{a as Ye,c as Xe,i as Ze,n as Qe,o as $e,r as et,s as tt,t as nt,u as rt}from"./useLabelableId-NJQsKdL6.js";var it={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};it.node;var at=_(it),N=e(t(),1);function ot(e,t,n,r,i,a,o,s,c,l=2){let u=te(n.current,{event:e,orientation:r,loopFocus:i,rtl:a,cols:l,disabledIndices:o,minIndex:s,maxIndex:c,prevIndex:t>c?s:t,stopEvent:!0});return ee(n.current,u)?void 0:u}var st=N.createContext(void 0),ct=N.createContext(void 0),lt=N.createContext(void 0),ut=N.createContext(!1),dt=N.createContext(``);function P(){let e=N.useContext(st);if(!e)throw Error(y(22));return e}function ft(){let e=N.useContext(ct);if(!e)throw Error(y(23));return e}function pt(){let e=N.useContext(lt);if(!e)throw Error(y(24));return e}function mt(){return N.useContext(dt)}function ht(){return N.useContext(ut)}var gt={id:e=>e.id,labelId:e=>e.labelId,items:e=>e.items,selectedValue:e=>e.selectedValue,hasSelectionChips:e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0},hasSelectedValue:e=>{let{selectedValue:t,selectionMode:n}=e;return t==null?!1:n===`multiple`&&Array.isArray(t)?t.length>0:!0},hasNullItemLabel:(e,t)=>t?E(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMounted:e=>e.forceMounted,inline:e=>e.inline,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>T(t,e,n)):T(t,r,n)},transitionStatus:e=>e.transitionStatus,popupProps:e=>e.popupProps,listProps:e=>e.listProps,inputProps:e=>e.inputProps,triggerProps:e=>e.triggerProps,itemProps:e=>e.itemProps,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupId:e=>e.popupId,triggerElement:e=>e.triggerElement,inputElement:e=>e.inputElement,inputGroupElement:e=>e.inputGroupElement,popupSide:e=>e.popupSide,openMethod:e=>e.openMethod,inputInsidePopup:e=>e.inputInsidePopup,inputOwnsFormValue:e=>e.inputOwnsFormValue,selectionMode:e=>e.selectionMode,name:e=>e.name,form:e=>e.form,disabled:e=>e.disabled,readOnly:e=>e.readOnly,required:e=>e.required,grid:e=>e.grid,virtualized:e=>e.virtualized,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,modal:e=>e.modal,autoHighlight:e=>e.autoHighlight};function _t(e){return e==null?void 0:`${e}-popup`}function vt(e,t){return(n,r)=>n!=null&&e.contains(n,r,t)}function yt(e,t,n){return(r,i)=>{if(r==null)return!1;if(!i)return!0;let a=t?.selected??t,o=n==null?``:O(n,a);return o&&e.contains(o,i)&&o.length===i.length?!0:e.contains(r,i,t)}}function bt(e){return Array.isArray(e)?e.map(e=>bt(e)).join(`,`):e==null?``:String(e)}var xt=new Map;function St(e={}){let t={usage:`search`,sensitivity:`base`,ignorePunctuation:!0,...e},n=`${bt(e.locale)}|${JSON.stringify(t)}`,r=xt.get(n);if(r)return r;let i=new Intl.Collator(e.locale,t),a={contains(e,t,n){if(!t)return!0;let r=O(e,n);for(let e=0;e<=r.length-t.length;e+=1)if(i.compare(r.slice(e,e+t.length),t)===0)return!0;return!1},startsWith(e,t,n){if(!t)return!0;let r=O(e,n);return i.compare(r.slice(0,t.length),t)===0},endsWith(e,t,n){if(!t)return!0;let r=O(e,n),a=t.length;return r.length>=a&&i.compare(r.slice(r.length-a),t)===0}};return xt.set(n,a),a}var Ct=St;function wt(e={}){let{multiple:t=!1,value:n,...r}=e,i=St(r),a=N.useCallback((e,r,a)=>t?vt(i,a)(e,r):yt(i,a,n)(e,r),[i,n,t]);return N.useMemo(()=>({...i,contains:a}),[a,i])}var Tt=Symbol(`none`),Et={value:Tt,index:-1};function Dt(e,t,n){let r=e.get(t);if(r!==void 0||n===se)return r;for(let[r,i]of e)if(T(r,t,n))return i}var F=n();function Ot(e){let{id:t,onOpenChangeComplete:n,defaultSelectedValue:r=null,selectedValue:i,onSelectedValueChange:a,defaultInputValue:o,inputValue:ee,open:s,defaultOpen:c=!1,selectionMode:l,onItemHighlighted:te,name:d,form:f,disabled:_=!1,readOnly:S=!1,required:de=!1,inputRef:w,grid:E=!1,items:he,filteredItems:D,filter:ye,filterQuery:be,openOnInputClick:Ce=!0,autoHighlight:Ae=!1,keepHighlight:je=!1,highlightItemOnHover:Me=!0,loopFocus:Fe=!0,itemToStringLabel:Re,itemToStringValue:ze,isItemEqualToValue:M=se,virtualized:qe=!1,inline:Ye=!1,fillInputOnItemPress:Xe=!0,modal:Qe=!1,limit:$e=-1,autoComplete:rt=`list`,formAutoComplete:it,locale:at,submitOnItemClick:P=!1}=e,{clearErrors:ft}=et(),{setDirty:pt,validityData:mt,setFilled:ht,name:_t,disabled:yt,setTouched:bt,setFocused:xt,validationMode:St,validation:wt}=tt(),Ot=ie(),kt=nt({id:t}),At=Ct({locale:at}),I=Array.isArray(he)?null:he;if(I&&typeof I.label!=`function`)throw Error(y(100));let L=I?I.data:he,R=I?.value,jt=R?void 0:L,Mt=N.useMemo(()=>{if(!D||!R)return;let e=ge(D),t=e.map(R),n;return{values:t,findItem(r,i){if(!n){n=new Map;for(let r=0;r<t.length;r+=1)n.has(t[r])||n.set(t[r],e[r])}return Dt(n,r,i)}}},[D,R]),Nt=N.useMemo(()=>I?e=>I.label(e,M,e=>{let t=Mt?.findItem(e,M);return t==null?O(e,Re):I.itemLabel(t)}):Re,[I,Re,Mt,M]),Pt=N.useMemo(()=>I?Object.assign(e=>I.itemLabel(e),{selected:e=>O(e,Nt)}):Re,[I,Nt,Re]);function Ft(e){return O(e,Nt)}let[It,Lt]=N.useState(!1),[z,Rt]=N.useState(null),zt=N.useRef(z),Bt=N.useRef([]),Vt=N.useRef([]),Ht=N.useRef(null),B=N.useRef(null),Ut=N.useRef(null),Wt=N.useRef(null),Gt=N.useRef(null),Kt=N.useRef(!0),qt=N.useRef(!1),Jt=N.useRef(null),Yt=N.useRef(null),Xt=N.useRef(null),Zt=N.useRef(Et),Qt=N.useRef(null),V=N.useRef([]),$t=N.useRef(null),H=yt||_,en=_t??d,U=l===`multiple`,tn=l===`single`,nn=ee!==void 0||o!==void 0,W=L!==void 0,rn=D!==void 0,G;G=Ae===`always`?`always`:Ae?`input-change`:!1;let[K,an]=Je({controlled:i,default:U?r??b:r,name:`Combobox`,state:`selectedValue`}),on=N.useMemo(()=>ye===null?()=>!0:ye===void 0?vt(At,Pt):ye,[ye,At,Pt]),sn=h(()=>nn?o??``:tn?Ft(K):``).current,[q,cn]=Je({controlled:ee,default:sn,name:`Combobox`,state:`inputValue`}),[J,ln]=Je({controlled:s,default:c,name:`Combobox`,state:`open`}),un=xe(L),Y=!J&&z!==null?z:String(q).trim(),dn=tn?Ft(K):``,fn=tn&&!It&&Y!==``&&dn.length===Y.length&&At.contains(dn,Y),pn=fn?``:be??Y,mn=W&&rn&&fn&&(!I||I.hasValue(K,M)),hn=N.useMemo(()=>L?ge(L):b,[L]),gn=N.useMemo(()=>{if(D&&!mn)return D;if(!L)return b;if(un){let e=L,t=[],n=0;for(let r of e){if($e>-1&&n>=$e)break;let e=$e>-1?$e-n:1/0,i=pn===``?r.items.slice(0,e):[];if(pn!==``)for(let t of r.items){if(i.length>=e)break;on(t,pn,Pt)&&i.push(t)}if(i.length>0){let e={...r,items:i};t.push(e),n+=i.length}}return t}if(pn===``)return $e>-1?hn.slice(0,$e):hn;let e=[];for(let t of hn){if($e>-1&&e.length>=$e)break;on(t,pn,Pt)&&e.push(t)}return e},[D,mn,L,un,pn,$e,on,Pt,hn]),X=N.useMemo(()=>{if(Mt&&gn===D)return Mt.values;let e=ge(gn);return R?e.map(e=>R(e)):e},[gn,D,Mt,R]),Z=h(()=>{let e=null;return Ye&&J&&W&&l!==`none`&&(e=pe(X,K,M,U)),new re({id:kt,labelId:void 0,selectedValue:K,open:J,items:jt,selectionMode:l,name:en,form:f,disabled:H,readOnly:S,required:de,grid:E,virtualized:qe,openOnInputClick:Ce,itemToStringLabel:Nt,isItemEqualToValue:M,modal:Qe,autoHighlight:G,submitOnItemClick:P,hasInputValue:nn,mounted:!1,forceMounted:!1,transitionStatus:`idle`,inline:Ye,activeIndex:null,selectedIndex:e,popupProps:{},listProps:{},inputProps:{},triggerProps:{},itemProps:v,positionerElement:null,listElement:null,popupId:void 0,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:l===`none`},{onOpenChangeComplete:m,setOpen:m,setInputValue:m,setSelectedValue:m,setIndices:m,handleSelection:m,forceMount:m,requestSubmit:m,listRef:Bt,labelsRef:Vt,popupRef:Ht,emptyRef:Gt,inputRef:B,startDismissRef:Ut,endDismissRef:Wt,keyboardActiveRef:Kt,chipsContainerRef:Jt,clearRef:Yt,valuesRef:V,pointerDownItemRef:$t,selectionEventRef:Xt},gt)}).current,_n=l===`none`?q:K,vn=N.useMemo(()=>l===`none`?_n:Array.isArray(K)?K.map(e=>me(e,ze)):me(K,ze),[_n,ze,l,K]),yn=A(te),bn=A(n),xn=Z.useState(`activeIndex`),Sn=Z.useState(`selectedIndex`),Cn=Z.useState(`positionerElement`),wn=Z.useState(`listElement`),Tn=Z.useState(`triggerElement`),En=Z.useState(`inputElement`),Dn=Z.useState(`inputGroupElement`),Q=Z.useState(`inline`),$=Z.useState(`inputInsidePopup`),On=Z.useState(`inputOwnsFormValue`),kn=tn&&!$&&q===dn,An=ae(Tn),{mounted:jn,setMounted:Mn,transitionStatus:Nn}=Ge(J),{openMethod:Pn,triggerProps:Fn}=_e(J),In=A(()=>vn);Ze($?An:B,kt,_n,In,!H,d);let Ln=A(()=>{L?Vt.current=X.map(Ft):Z.set(`forceMounted`,!0)}),Rn=A((e,t,n)=>{if(t===-1){if(Zt.current===Et)return;Zt.current=Et}else Zt.current={value:e,index:t};yn(e,Le(n,void 0,{index:t}))}),zn=A(e=>{let t={};e.activeIndex!==void 0&&(t.activeIndex=e.activeIndex),e.selectedIndex!==void 0&&(t.selectedIndex=e.selectedIndex),Z.update(t);let n=e.activeIndex;if(n===void 0)return;let r=e.type||`none`;n===null?Rn(void 0,-1,r):Rn(V.current[n],n,r)}),Bn=A((t,n)=>{if(e.onInputValueChange?.(t,n),!n.isCanceled){if(qt.current=n.reason===Ne,n.reason===`input-change`){J&&z!==null&&Rt(null);let e=n.event,r=e.inputType;if(e.type===`compositionend`||r!=null&&r!==``&&r!==`insertReplacementText`){let e=t.trim()!==``;e&&Lt(!0),Qt.current={hasQuery:e};let n=Z.state.listElement;if(!Z.state.virtualized&&n){let e=Ht.current;for(let t of De(n.firstElementChild??n)){if(!Oe(t)||(e?!u(e,t):t.getAttribute(`role`)===`dialog`))break;if(we(t)){t.scrollTop=0;break}}}e&&G&&Z.state.activeIndex==null&&(J||Q)&&Z.set(`activeIndex`,0)}}else n.reason===`input-clear`&&t===``&&Z.state.inputInsidePopup&&(Qt.current={hasQuery:!1,selection:!0});cn(t)}}),Vn=A(e=>{let t=!e&&$&&!Q&&q!==``&&(String(q).trim()===z||q===dn);!e&&(t||q===``||kn)&&Lt(!1),Rt(null),t&&Bn(``,k(Ne))}),Hn=A((t,n)=>{if(J!==t&&(n.reason===`escape-key`&&W&&X.length===0&&!Gt.current&&n.allowPropagation(),e.onOpenChange?.(t,n),!n.isCanceled&&(t&&z!==null&&Vn(n.reason===Pe),!t&&It&&(tn?(Q||Rt(Y),Y===``&&Lt(!1)):U&&(Q||Rt(Y),$&&zn({activeIndex:null}),(!$||Q)&&Bn(``,k(Ne,n.event,void 0,{isItemPress:n.reason===Ve})))),ln(t),!t&&$&&(n.reason===`focus-out`||n.reason===`outside-press`)&&(bt(!0),xt(!1),St===`onBlur`)))){let e=l===`none`?q:K;wt.commit(e)}}),Un=A((e,t)=>{a?.(e,t),!t.isCanceled&&(an(e),(l===`none`&&Ht.current&&Xe||tn&&!Z.state.inputInsidePopup)&&Bn(Ft(e),k(t.reason,t.event)))}),Wn=A((e,t)=>{let n=p(e),r=Xt.current??e;Xt.current=null;let i=k(Ve,r),a=n?.closest(`a`)?.getAttribute(`href`);if(a){a.startsWith(`#`)&&Hn(!1,i);return}if(U){let e=Array.isArray(K)?K:[],n=ve(e,t,M),r=n?C(e,t,M):[...e,t];if(Un(r,i),i.isCanceled||!(B.current&&B.current.value.trim()!==``))return;if(Z.state.inputInsidePopup){Bn(``,k(Ne,i.event,void 0,{isItemPress:!0}));let e=Qt.current;e&&!n&&(e.toggledValue=t)}else Hn(!1,i)}else{if(Un(t,i),i.isCanceled)return;Hn(!1,i)}}),Gn=A(()=>{let e=wt.inputRef.current?.form??Z.state.inputElement?.form;e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}),Kn=A(()=>{if(Mn(!1),bn?.(!1),Lt(!1),Rt(null),zn(l===`none`?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),U&&B.current&&B.current.value!==``&&!qt.current&&Bn(``,k(Ne)),tn){if(Z.state.inputInsidePopup)B.current&&B.current.value!==``&&Bn(``,k(Ne));else{let e=Ft(K);B.current&&B.current.value!==e&&Bn(e,k(e===``?Ne:j))}}}),qn=N.useMemo(()=>Q&&Cn?{current:Cn.closest(`[role="dialog"]`)}:Ht,[Q,Cn]);ne({enabled:!e.actionsRef,open:J,ref:qn,onComplete(){J||Kn()}}),N.useImperativeHandle(e.actionsRef,()=>({unmount:Kn}),[Kn]),Te(function(){let e=zt.current!==null&&z===null;if(zt.current=z,J&&(!e||!W)||(J||($t.current=null),l===`none`))return;let t=W?X:V.current;zn({selectedIndex:pe(t,K,M,U)})},[J,z,K,l,U,W,X,M,zn]),Te(()=>{L&&(V.current=X,Bt.current.length=X.length)},[L,X]),Te(()=>{let e=Qt.current;if(e){let t=J||Q||Z.state.positionerElement?.hidden===!1;if(e.hasQuery)G&&t&&Z.set(`activeIndex`,0),Qt.current=null;else if(String(q).trim()===``&&(Qt.current=null,t)){let t=e.selection;G===`always`&&!t&&Z.state.selectionMode===`none`&&Z.set(`activeIndex`,0),queueMicrotask(()=>{if(!Z.state.open&&!Z.state.inline||B.current&&B.current.value.trim()!==``)return;let n=Z.state.selectedValue,r=Z.state.selectionMode===`multiple`;if(r&&Array.isArray(n)?n.length>0:Z.state.selectionMode!==`none`&&n!=null){let t=W||rn?X:V.current,i=Se(t,e.toggledValue,Z.state.isItemEqualToValue);Z.set(`activeIndex`,i===-1?pe(t,n,Z.state.isItemEqualToValue,r):i)}else t?Z.set(`activeIndex`,null):G===`always`&&Z.set(`activeIndex`,0)})}}if(!J&&!Q)return;let t=W||rn?X:V.current,n=Z.state.activeIndex;if(n==null){if(G===`always`&&t.length>0){Z.set(`activeIndex`,0);return}Rn(void 0,-1,j);return}if(n>=t.length){Rn(void 0,-1,j),Z.set(`activeIndex`,null);return}let r=t[n],i=Zt.current.value,a=i!==Tt&&T(r,i,Z.state.isItemEqualToValue);(Zt.current.index!==n||!a)&&Rn(r,n,j)},[xn,G,Rn,rn,W,X,Q,J,Z,q]),Te(()=>{if(l===`none`){ht(String(q)!==``);return}ht(U?Array.isArray(K)&&K.length>0:K!=null)},[ht,l,q,K,U]),N.useEffect(()=>{W&&G&&X.length===0&&zn({activeIndex:null})},[W,G,X.length,zn]);function Jn(){J&&Y!==``&&Y!==String(sn)&&!kn&&Lt(!0)}function Yn(){J&&z!==null&&Vn(!1)}let Xn=!1;function Zn(){!Xn&&q!==dn&&(Xn=!0,Bn(dn,k(j)))}function Qn(){l!==`none`&&(ft(en),pt(ce(K,mt.initialValue,M)),wt.change(K),tn&&!nn&&!$&&Zn())}function $n(){tn&&!nn&&!$&&!It&&Zn()}function er(){l===`none`&&(ft(en),pt(q!==mt.initialValue),wt.change(q))}Ue(Y,Jn),Ue(J,Yn),Ue(K,Qn),Ue(dn,$n),Ue(L,$n),Ue(q,er);let tr=le({open:Q?!0:J,onOpenChange:Hn,elements:{reference:$?Tn:En,floating:Cn}}),nr=E?`grid`:`listbox`,rr=J||Q,ir=rr?`true`:`false`,ar=N.useMemo(()=>{let e=En?.tagName===`INPUT`,t=En==null||e,n=t||rr,r=t?{autoComplete:`off`,spellCheck:`false`,autoCorrect:`off`,autoCapitalize:`none`}:{};return n&&(r.role=`combobox`,r[`aria-expanded`]=ir,r[`aria-haspopup`]=nr,r[`aria-controls`]=rr?wn?.id:void 0,r[`aria-autocomplete`]=S?`none`:rt),{reference:r,floating:{role:`presentation`}}},[En,rr,ir,nr,wn?.id,rt,S]),or=ue(tr,{enabled:!H&&Ce,event:`mousedown-only`,toggle:!1,touchOpenDelay:$?0:100,reason:ke}),sr=We(tr,{enabled:!H&&!Q,outsidePressEvent:{mouse:`sloppy`,touch:`intentional`},bubbles:Q?!0:void 0,outsidePress(e){let t=p(e);return!u(Tn,t)&&!u(Yt.current,t)&&!u(Jt.current,t)&&!u(Dn,t)}}),cr=fe(tr,{enabled:!H,id:kt,listRef:Bt,activeIndex:xn,selectedIndex:Sn,virtual:!0,loopFocus:Fe,allowEscape:Fe&&!G,focusItemOnOpen:It||l===`none`&&!G?!1:`auto`,focusItemOnHover:Me,resetOnPointerLeave:!je,orientation:E?`horizontal`:void 0,rtl:Ot===`rtl`,disabledIndices:b,grid:E?ot:void 0,onNavigate(e,t){(t||J)&&Nn!==`ending`&&zn(t?{activeIndex:e,type:Kt.current?He:Ee}:{activeIndex:e})}}),lr=N.useMemo(()=>g(cr.reference,{onKeyDown(e){E&&Z.state.activeIndex==null&&(e.key===`ArrowLeft`||e.key===`ArrowRight`)&&e.preventBaseUIHandler()}},sr.reference,or.reference,ar.reference),[cr.reference,sr.reference,or.reference,ar.reference,E,Z]),ur=N.useMemo(()=>g(Ke,sr.floating),[sr.floating]),dr=N.useMemo(()=>g(cr.floating,ar.floating),[cr.floating,ar.floating]),fr=N.useMemo(()=>{let e=cr.item;return e?{...e,onFocus:void 0}:v},[cr.item]);Z.useContextCallback(`setOpen`,Hn),Z.useContextCallback(`setInputValue`,Bn),Z.useContextCallback(`setSelectedValue`,Un),Z.useContextCallback(`setIndices`,zn),Z.useContextCallback(`handleSelection`,Wn),Z.useContextCallback(`forceMount`,Ln),Z.useContextCallback(`requestSubmit`,Gn),Z.useContextCallback(`onOpenChangeComplete`,n),oe(()=>{Z.update({inline:Ye,popupProps:ur,listProps:dr,inputProps:lr,triggerProps:Fn,itemProps:fr})});let pr={id:kt,selectedValue:K,open:J,mounted:jn,transitionStatus:Nn,items:jt,inline:Ye,popupProps:ur,listProps:dr,inputProps:lr,triggerProps:Fn,itemProps:fr,openMethod:Pn,selectionMode:l,name:en,form:f,disabled:H,readOnly:S,required:de,grid:E,virtualized:qe,openOnInputClick:Ce,itemToStringLabel:Nt,modal:Qe,autoHighlight:G,isItemEqualToValue:M,submitOnItemClick:P,hasInputValue:nn};Te(()=>{Z.update({...pr,inputOwnsFormValue:l===`none`&&(Ye||!Z.state.inputInsidePopup)})},[Z,...Object.values(pr)]);let mr=x(w,wt.inputRef),hr=N.useMemo(()=>({query:Y,hasItems:W,filteredItems:gn,flatFilteredValues:X}),[Y,W,gn,X]),gr=N.useMemo(()=>Array.isArray(_n)?``:me(_n,ze),[_n,ze]),_r=U&&Array.isArray(K)&&K.length>0,vr=U||l===`none`&&On?void 0:en,yr=N.useMemo(()=>!U||!Array.isArray(K)||!en?null:K.map(e=>{let t=me(e,ze);return(0,F.jsx)(`input`,{type:`hidden`,form:f,name:en,value:t,disabled:H},t)}),[U,K,f,en,ze,H]),br=(0,F.jsxs)(N.Fragment,{children:[e.children,(0,F.jsx)(`input`,{...wt.getValidationProps(H,{onFocus(){if($){Tn?.focus();return}(B.current||Tn)?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||H||S)return;let t=e.currentTarget.value,n=t.toLowerCase(),r=k(j,e.nativeEvent),i=()=>V.current.findIndex(e=>me(e,ze).toLowerCase()===n||Ft(e).toLowerCase()===n);function a(){if(U)return;if(l===`none`){Bn(t,r);return}let e=i();e===-1&&(e=V.current.findIndex((e,t)=>{let r=Vt.current[t];return r!=null&&r.toLowerCase()===n}));let a=e===-1?void 0:V.current[e];a!=null&&Un?.(a,r)}tn&&(Ln(),L&&i()===-1&&Z.set(`forceMounted`,!0)),queueMicrotask(a)}}),id:kt&&vr==null?`${kt}-hidden-input`:void 0,form:f,name:vr,autoComplete:it,disabled:H,required:de&&!_r,readOnly:S,value:gr,ref:mr,style:vr?Ie:Be,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),yr]});return(0,F.jsx)(st.Provider,{value:Z,children:(0,F.jsx)(ct.Provider,{value:tr,children:(0,F.jsx)(ut.Provider,{value:W,children:(0,F.jsx)(lt.Provider,{value:hr,children:(0,F.jsx)(dt.Provider,{value:q,children:br})})})})})}var kt=`data-popup-side`,At=`data-list-empty`,I={...i,...rt,popupSide:e=>e?{[kt]:e}:null,listEmpty:e=>e?{[At]:``}:null};function L(e){let t=e.useState(`mounted`),n=e.useState(`popupSide`),r=e.useState(`positionerElement`);return t&&r?n:null}function R(){return pt().filteredItems.length===0}function jt(e){return e===`rtl`?[`ArrowRight`,`ArrowLeft`]:[`ArrowLeft`,`ArrowRight`]}function Mt(e,t){let n=e>=t-1?t-2:e;return n>=0?n:void 0}function Nt(e,t,n){let r=e.context.listRef.current[t];r&&(e.context.selectionEventRef.current=n,r.click(),e.context.selectionEventRef.current=null)}var Pt=N.forwardRef(function(e,t){let{render:n,className:r,nativeButton:i=!0,disabled:ee=!1,id:s,style:l,...te}=e,{state:ne,disabled:re,setTouched:d,setFocused:f,validationMode:ie,validation:ae}=tt(),{labelId:m}=Qe(),h=P(),g=h.useState(`selectionMode`),_=h.useState(`disabled`),v=h.useState(`readOnly`),y=h.useState(`required`),b=h.useState(`positionerElement`),x=h.useState(`listElement`),oe=h.useState(`popupId`),se=h.useState(`triggerProps`),C=h.useState(`inputInsidePopup`),ce=h.useState(`id`),le=h.useState(`labelId`),w=h.useState(`open`),fe=h.useState(`selectedValue`),T=h.useState(`activeIndex`),pe=h.useState(`selectedIndex`),E=h.useState(`hasSelectedValue`),me=ft(),he=mt(),ge=o(),_e=re||_||ee,ve=R(),be=L(h);nt({id:C?s:void 0});let xe=C?s??ce:s,Se=ye(m,le),O;w&&C?O=oe??_t(ce):w&&(O=x?.id);let Ce=N.useRef(``);function we(e){Ce.current=e.pointerType}let{reference:Te}=de(me,{enabled:!w&&!v&&!_&&g===`single`,listRef:h.context.labelsRef,activeIndex:T,selectedIndex:pe,onMatch(e){let t=h.context.valuesRef.current[e];t!==void 0&&h.context.setSelectedValue(t,k(j))}}),{reference:Ee}=ue(me,{enabled:!_,event:`mousedown`}),{buttonRef:De,getButtonProps:Oe}=M({native:i,disabled:_e}),ke={...ne,readOnly:v,open:w,disabled:_e,popupSide:be,listEmpty:ve,placeholder:g!==`none`&&!E},je=A(e=>{h.set(`triggerElement`,e)});return S(`button`,e,{ref:[t,De,je],state:ke,props:[se,Ee,Te,{id:xe,tabIndex:C?0:-1,role:C?`combobox`:void 0,"aria-expanded":w,"aria-haspopup":C?`dialog`:`listbox`,"aria-controls":O,"aria-required":C&&y||void 0,"aria-readonly":C&&v||void 0,"aria-labelledby":Se,onPointerDown:we,onPointerEnter:we,onFocus(){f(!0),!_e&&ge.start(0,h.context.forceMount)},onBlur(e){if(!u(b,e.relatedTarget)&&(d(!0),f(!1),ie===`onBlur`)){let e=g===`none`?he:fe;ae.commit(e)}},onMouseDown(e){if(_e||(C||me.set(`domReferenceElement`,e.currentTarget),h.context.forceMount(),Ce.current!==`touch`&&(h.context.inputRef.current?.focus(),C||e.preventDefault()),w))return;let t=c(e.currentTarget);function n(e){let t=h.state.triggerElement;if(!t)return;let n=p(e),r=h.state.positionerElement,i=h.state.listElement;u(t,n)||u(r,n)||u(i,n)||D(e,t)||h.context.setOpen(!1,k(ze,e))}C&&t.addEventListener(`mouseup`,n,{once:!0})},onKeyDown(e){(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(a(e),h.context.setOpen(!0,k(Ae,e.nativeEvent)),h.context.inputRef.current?.focus())}},ae.getValidationProps(_e,te),Oe],stateAttributesMapping:I})}),Ft=N.createContext(void 0);function It(){return N.useContext(Ft)}var Lt=N.createContext(void 0);function z(e){let t=N.useContext(Lt);if(t===void 0&&!e)throw Error(y(21));return t}var Rt=N.forwardRef(function(e,t){let n=P(),{buttonRef:r,getButtonProps:i}=M({native:!1}),a=x(t,r);function o(e){n.context.setOpen(!1,k(Fe,e.nativeEvent,e.currentTarget))}let ee=i({onClick:o});return(0,F.jsx)(`span`,{ref:a,...ee,"aria-label":`Dismiss`,tabIndex:void 0,style:Ie})}),zt=N.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,id:o,style:ee,...s}=e,{state:c,disabled:l,setTouched:te,setFocused:u,validationMode:ne,validation:re}=tt(),{labelId:ae}=Qe(),p=It(),m=!!z(!0),h=P(),g=mt(),_=ie(),v=h.useState(`required`),y=h.useState(`disabled`),b=h.useState(`readOnly`),x=h.useState(`name`),oe=h.useState(`form`),se=h.useState(`selectionMode`),C=h.useState(`autoHighlight`),ce=h.useState(`inputProps`),le=h.useState(`triggerProps`),ue=h.useState(`open`),de=h.useState(`mounted`),w=h.useState(`selectedValue`),fe=h.useState(`id`),T=h.useState(`inline`),pe=h.useState(`modal`),E=!!C,me=L(h),he=l||y||i,ge=R(),D=m||T,_e=!D||pe,ve=Re(o??(D?void 0:fe)),ye=m?Xe:c,[be,xe]=N.useState(null),Se=N.useRef(!1),O=N.useRef(null),Ce=N.useRef(!1),we=se===`none`&&!m,Te=A(e=>{let t=m||h.state.inline;t&&!h.state.hasInputValue&&h.context.setInputValue(``,k(j)),h.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:we})}),De=m?s:re.getValidationProps(he,s);function Oe(){h.context.setIndices({activeIndex:null,selectedIndex:null,type:h.context.keyboardActiveRef.current?He:Ee})}function ke(){h.context.keyboardActiveRef.current=!1}let Ae={...ye,open:ue,disabled:he,readOnly:b,popupSide:me,listEmpty:ge};function je(e){if(!p)return;let t,{highlightedChipIndex:n}=p,r=p.chipsRef.current.length,[i,a]=jt(_);return n===void 0?(e.key===i&&(e.currentTarget.selectionStart??0)===0&&w.length>0&&(e.preventDefault(),t=r>0?r-1:void 0),t):(e.key===i?(e.preventDefault(),t=n>0?n-1:void 0):e.key===a?(e.preventDefault(),t=n<r-1?n+1:void 0):(e.key===`Backspace`||e.key===`Delete`)&&(e.preventDefault(),t=Mt(n,w.length),Oe()),t)}let Fe=S(`input`,e,{state:Ae,ref:[t,h.context.inputRef,Te],props:[ce,le,{value:be??g,"aria-readonly":b||void 0,"aria-required":v||void 0,"aria-labelledby":ae,disabled:he,readOnly:b,required:se===`none`?v:void 0,form:oe,...we&&x&&{name:x},id:ve,onFocus(){if(u(!0),!T||!Ce.current)return;Ce.current=!1;let e=O.current;e!=null&&Object.hasOwn(h.context.valuesRef.current,e)&&h.context.setIndices({activeIndex:e})},onBlur(){te(!0),u(!1);let e=h.state.activeIndex;if(T&&e!==null&&C!==`always`&&(O.current=e,Ce.current=!0,h.context.setIndices({activeIndex:null})),ne===`onBlur`){let e=se===`none`?g:w;re.commit(e)}},onCompositionStart(e){d||(Se.current=!0,xe(e.currentTarget.value))},onCompositionEnd(e){Se.current=!1;let t=e.currentTarget.value;xe(null),h.context.setInputValue(t,k(Pe,e.nativeEvent))},onChange(e){let t=e.nativeEvent,n=t.inputType,r=!n||n===`insertReplacementText`,i=Se.current||!r;function a(e){!b&&!he&&e&&i&&(h.context.setOpen(!0,k(Pe,t)),E||Oe())}if(Se.current){let n=e.currentTarget.value;xe(n),n===``&&!h.state.openOnInputClick&&!h.state.inputInsidePopup&&h.context.setOpen(!1,k(Ne,t));let r=n.trim(),i=E&&r!==``;a(r),ue&&h.state.activeIndex!==null&&!i&&Oe();return}let o=k(Pe,t);if(h.context.setInputValue(e.currentTarget.value,o),o.isCanceled)return;let ee=e.currentTarget.value===``,s=k(Ne,t);ee&&!h.state.inputInsidePopup&&(se===`single`&&h.context.setSelectedValue(null,s),h.state.openOnInputClick||h.context.setOpen(!1,s)),a(e.currentTarget.value.trim()),ue&&h.state.activeIndex!==null&&!E&&Oe()},onKeyDown(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;if(h.context.keyboardActiveRef.current=!0,he||b){b&&e.key===`Enter`&&ue&&h.state.activeIndex!==null&&a(e);return}let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r=_===`rtl`;if(e.key===`Home`){a(e);let n=f&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if(e.key===`End`){a(e);let i=f&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!de&&e.key===`Escape`){let t=se===`multiple`&&Array.isArray(w)?w.length===0:w===null,n=k(Me,e.nativeEvent),r=se===`multiple`?[]:null;h.context.setInputValue(``,n),h.context.setSelectedValue(r,n),!t&&!h.state.inline&&!n.isPropagationAllowed&&e.stopPropagation();return}if(p&&e.key===`Backspace`&&t.value===``&&p.highlightedChipIndex===void 0&&Array.isArray(w)&&w.length>0){let t=p.chipsRef.current.length,n=t>0?t-1:w.length-1,r=w.filter((e,t)=>t!==n);Oe(),h.context.setSelectedValue(r,k(j,e.nativeEvent));return}let i=p?.highlightedChipIndex!==void 0,o=je(e);if(p?.setHighlightedChipIndex(o),o===void 0?i&&h.context.inputRef.current?.focus():p?.chipsRef.current[o]?.focus(),e.which!==229&&e.key===`Enter`&&ue){let t=h.state.activeIndex,n=e.nativeEvent;if(t===null){if(T)return;h.context.setOpen(!1,k(j,n));return}a(e),Nt(h,t,n)}},onPointerMove:ke,onPointerDown:ke},De],stateAttributesMapping:I}),Ie=m?(0,F.jsx)($e.Provider,{value:Ye,children:Fe}):Fe;return(0,F.jsxs)(N.Fragment,{children:[ue&&_e&&(0,F.jsx)(Rt,{ref:h.context.startDismissRef}),Ie]})}),Bt=N.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return S(`span`,e,{ref:t,props:[{"aria-hidden":!0,children:`▼`},a]})}),Vt={...s,...l},Ht=N.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,keepMounted:o=!1,style:ee,...s}=e,{disabled:c}=tt(),l=P(),te=l.useState(`selectionMode`),u=l.useState(`disabled`),re=l.useState(`readOnly`),d=l.useState(`open`),f=l.useState(`selectedValue`),ie=l.useState(`hasSelectionChips`),ae=mt(),p=!1;p=te===`none`?ae!==``:te===`single`?f!=null:ie;let m=c||u||i,{buttonRef:h,getButtonProps:g}=M({native:a,disabled:m}),{mounted:_,transitionStatus:v,setMounted:y}=Ge(p),b={disabled:m,visible:p,open:d,transitionStatus:v};ne({open:p,ref:l.context.clearRef,onComplete(){p||y(!1)}});let x=S(`button`,e,{state:b,ref:[t,h,l.context.clearRef],props:[{tabIndex:-1,children:`x`,onMouseDown(e){e.preventDefault()},onClick(e){if(m||re)return;let t=l.context.keyboardActiveRef.current?He:Ee;l.context.setInputValue(``,k(je,e.nativeEvent)),te===`none`?l.context.setIndices({activeIndex:null,type:t}):(l.context.setSelectedValue(Array.isArray(f)?[]:null,k(je,e.nativeEvent)),l.context.setIndices({activeIndex:null,selectedIndex:null,type:t})),l.context.inputRef.current?.focus()}},s,g],stateAttributesMapping:Vt});return o||_?x:null}),B=N.createContext(null);function Ut(){return N.useContext(B)}function Wt(e){let{children:t,items:n}=e,r=N.useMemo(()=>({items:n}),[n]);return(0,F.jsx)(B.Provider,{value:r,children:t})}function Gt(e){let{children:t}=e,{filteredItems:n}=pt(),r=Ut(),i=r?r.items:n;return(0,F.jsx)(N.Fragment,{children:i.map(t)})}var Kt=N.forwardRef(function(e,t){var n;let{render:r,className:i,style:o,children:ee,...s}=e,c=P(),l=ft(),te=!!z(!0),{filteredItems:u,hasItems:ne}=pt(),re=c.useState(`selectionMode`),d=c.useState(`grid`),f=c.useState(`readOnly`),ie=c.useState(`listProps`),ae=c.useState(`virtualized`),p=c.useState(`forceMounted`),m=re===`multiple`,h=u.length===0,g=A(e=>{c.set(`positionerElement`,e)}),_=A(e=>{c.set(`listElement`,e)}),v=N.useMemo(()=>typeof ee==`function`?n||=(0,F.jsx)(Gt,{children:ee}):ee,[ee]),y={empty:h},b=l.useState(`floatingId`),x=S(`div`,e,{state:y,ref:[t,_,te?null:g],props:[ie,{children:v,tabIndex:-1,id:b,role:d?`grid`:`listbox`,"aria-multiselectable":m?`true`:void 0,"aria-readonly":!d&&f?!0:void 0,onKeyDown(e){if(!(c.state.disabled||c.state.readOnly)&&e.key===`Enter`){let t=c.state.activeIndex;if(t==null)return;a(e),Nt(c,t,e.nativeEvent)}},onKeyDownCapture(){c.context.keyboardActiveRef.current=!0},onPointerMoveCapture(){c.context.keyboardActiveRef.current=!1}},s]});if(ae)return x;let oe=ne&&!p?void 0:c.context.labelsRef;return(0,F.jsx)(be,{elementsRef:c.context.listRef,labelsRef:oe,children:x})}),qt=e(qe(),1),Jt=N.createContext(void 0);function Yt(){let e=N.useContext(Jt);if(!e)throw Error(y(19));return e}var Xt=N.createContext(!1);function Zt(){return N.useContext(Xt)}function Qt(e){let{componentProps:t,forwardedRef:n,virtualized:r,indexFromFilter:i}=e,{render:a,className:o,style:ee,value:s=null,index:c,disabled:l=!1,nativeButton:te=!1,...u}=t,ne=N.useRef(null),re=he({guess:!0,index:c,textRef:ne}),d=P(),f=Zt(),ie=ht(),ae=d.useState(`selectionMode`),p=d.useState(`disabled`),m=d.useState(`readOnly`),h=d.useState(`isItemEqualToValue`),g=p||l,_=ae!==`none`,v=c??i??re.index,y=v!==-1,b=d.useState(`id`),x=d.useState(`isActive`,v),oe=d.useState(`isSelected`,s),se=d.useState(`itemProps`),C=N.useRef(null),ce=b!=null&&y?`${b}-${v}`:void 0,le=oe&&_;Te(()=>{if(!y||!r&&c==null)return;let e=d.context.listRef.current;return e[v]=C.current,()=>{delete e[v]}},[y,r,v,c,d]),Te(()=>{if(!y||ie)return;let e=d.context.valuesRef.current;return e[v]=s,()=>{delete e[v]}},[y,ie,v,s,d]),Te(()=>{if(!y||ie)return;let e=d.state.selectedValue,t=d.state.selectedIndex;d.state.selectionMode===`multiple`&&Array.isArray(e)?t=w(v,s,d.context.valuesRef.current,e,h,t):T(s,e,h)&&(t=v),d.set(`selectedIndex`,t)},[y,ie,d,v,s,h]);let{getButtonProps:ue,buttonRef:de}=M({disabled:g,focusableWhenDisabled:!0,native:te,composite:!0}),fe={disabled:g,selected:le,highlighted:x};function pe(e){function t(){d.context.handleSelection(e,s)}d.state.submitOnItemClick?(qt.flushSync(t),d.context.requestSubmit()):t()}let E={id:ce,role:f?`gridcell`:`option`,"aria-selected":_?le:void 0,tabIndex:void 0,onPointerDownCapture(e){e.isPrimary&&(d.context.pointerDownItemRef.current=e.currentTarget),e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){g||m||pe(e.nativeEvent)},onMouseUp(e){let t=d.context.pointerDownItemRef.current===e.currentTarget;d.context.pointerDownItemRef.current=null,!(g||m||e.button!==0||t||!x)&&pe(e.nativeEvent)}},me=S(`div`,t,{ref:[de,n,re.ref,C],state:fe,props:[se,E,u,ue]}),ge=N.useMemo(()=>({selected:le,textRef:ne}),[le,ne]);return(0,F.jsx)(Jt.Provider,{value:ge,children:me})}function V(e){let{componentProps:t,forwardedRef:n}=e,r=P().useState(`isItemEqualToValue`),{flatFilteredValues:i}=pt(),a=t.value??null,o=Se(i,a,r);return(0,F.jsx)(Qt,{componentProps:t,forwardedRef:n,virtualized:!0,indexFromFilter:o})}var $t=N.memo(N.forwardRef(function(e,t){let n=P().useState(`virtualized`);return n&&e.index==null?(0,F.jsx)(V,{componentProps:e,forwardedRef:t}):(0,F.jsx)(Qt,{componentProps:e,forwardedRef:t,virtualized:n,indexFromFilter:void 0})})),H=r();function en(e){let t=(0,H.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Ce(`pointer-events-none inline-flex h-5 min-w-5 select-none items-center justify-center gap-1 rounded bg-muted px-1 font-medium font-sans text-muted-foreground text-xs [&_svg:not([class*='size-'])]:size-3`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(`kbd`,{className:i,"data-slot":`kbd`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function U(e){let t=(0,H.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Ce(`inline-flex items-center gap-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,F.jsx)(`kbd`,{className:i,"data-slot":`kbd-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{at as C,P as S,wt as _,Kt as a,pt as b,Ht as c,Rt as d,Lt as f,Ot as g,R as h,Yt as i,Bt as l,Pt as m,U as n,Gt as o,z as p,$t as r,Wt as s,en as t,zt as u,Ct as v,ft as x,_t as y};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as e}from"./useRenderElement-D0HVF5g_.js";var t={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};t.node;var n=e(t);export{n as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as e}from"./useRenderElement-D0HVF5g_.js";var t={name:`file-diff`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M9 10h6`,key:`9gxzsh`}],[`path`,{d:`M12 13V7`,key:`h0r20n`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}]]};t.node;var n=e(t),r={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};r.node;var i=e(r);export{n,i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as e}from"./useRenderElement-D0HVF5g_.js";var t={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};t.node;var n=e(t),r={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};r.node;var i=e(r);export{n,i as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as e}from"./useRenderElement-D0HVF5g_.js";var t={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};t.node;var n=e(t);export{n as t};
|