ryco-cli 0.1.28 → 0.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/README.md +37 -0
  2. package/dist/{AcpAdapter-CG1wRWcf.mjs → AcpAdapter-CKWzfB3Q.mjs} +4 -4
  3. package/dist/{AcpAdapter-8CSe4HK7.cjs → AcpAdapter-DjP0IHpH.cjs} +6 -6
  4. package/dist/{AcpNativeLogging-DbjnRnTf.cjs → AcpNativeLogging-5gTPK9Fq.cjs} +1 -1
  5. package/dist/{AcpNativeLogging-B6TtnnKL.mjs → AcpNativeLogging-Do0LktDb.mjs} +1 -1
  6. package/dist/{AcpRegistryDriver-16ZTxUs3.cjs → AcpRegistryDriver-BblCFfev.cjs} +3 -3
  7. package/dist/{AcpRegistryDriver-DZFasKaz.mjs → AcpRegistryDriver-BzohT-PC.mjs} +3 -3
  8. package/dist/{AzureDevOpsSourceControlProvider-DmJD1-WL.cjs → AzureDevOpsSourceControlProvider-CKSvfuDS.cjs} +1 -1
  9. package/dist/{AzureDevOpsSourceControlProvider-d5Ogsspk.mjs → AzureDevOpsSourceControlProvider-DRWSXTml.mjs} +1 -1
  10. package/dist/{BitbucketSourceControlProvider-B-ZwKj72.cjs → BitbucketSourceControlProvider-Bvl_q1o2.cjs} +1 -1
  11. package/dist/{BitbucketSourceControlProvider-DplKc8Wo.mjs → BitbucketSourceControlProvider-D5UVAc9z.mjs} +1 -1
  12. package/dist/{ClaudeDriver-0gGVop27.mjs → ClaudeDriver-BuQ_azDw.mjs} +7 -7
  13. package/dist/{ClaudeDriver-r0lJ9vmE.cjs → ClaudeDriver-DZkz0QPr.cjs} +8 -8
  14. package/dist/{CodexDriver-bJAbhSwY.cjs → CodexDriver-6Ph2cjAW.cjs} +5 -5
  15. package/dist/{CodexDriver-baT02xVb.mjs → CodexDriver-Bi49RIL4.mjs} +4 -4
  16. package/dist/{CodexTextGeneration-Dwp6X3dq.mjs → CodexTextGeneration-C5TIspJA.mjs} +4 -4
  17. package/dist/{CodexTextGeneration-DFZ5y4gj.cjs → CodexTextGeneration-sXPR9eld.cjs} +4 -4
  18. package/dist/{CopilotDriver-C0OhnSB1.mjs → CopilotDriver-Bcdpz6U_.mjs} +5 -5
  19. package/dist/{CopilotDriver-B_jEqfYQ.cjs → CopilotDriver-D6P0xgRX.cjs} +5 -5
  20. package/dist/{CursorDriver-DinXkGP9.mjs → CursorDriver-CRnDGwEv.mjs} +6 -6
  21. package/dist/{CursorDriver-BBFEW7ZI.cjs → CursorDriver-DMJ7sGSx.cjs} +7 -7
  22. package/dist/{ForgejoSourceControlProvider-iG9o7aZB.cjs → ForgejoSourceControlProvider-D4jGdaJX.cjs} +1 -1
  23. package/dist/{ForgejoSourceControlProvider-Dr0fxfud.mjs → ForgejoSourceControlProvider-Dl_Fk3RY.mjs} +1 -1
  24. package/dist/{GitHubSourceControlProvider-CnIu0n2Y.mjs → GitHubSourceControlProvider-DnwKf0ap.mjs} +1 -1
  25. package/dist/{GitHubSourceControlProvider-L1yFpep4.cjs → GitHubSourceControlProvider-QMe-zymI.cjs} +1 -1
  26. package/dist/{GitLabSourceControlProvider-BZdwXdJl.mjs → GitLabSourceControlProvider-Cj07OTBD.mjs} +1 -1
  27. package/dist/{GitLabSourceControlProvider-CrcBR6KQ.cjs → GitLabSourceControlProvider-CvvN5pHt.cjs} +1 -1
  28. package/dist/{GrokDriver-pX-N6HGS.mjs → GrokDriver-Bvq1jP3S.mjs} +7 -7
  29. package/dist/{GrokDriver-D_Ylzh5z.cjs → GrokDriver-jy8JIvYY.cjs} +10 -10
  30. package/dist/{Metrics-Bf96NJ4j.cjs → Metrics-C0LSU8s7.cjs} +979 -976
  31. package/dist/{Metrics-BjqGlIP4.mjs → Metrics-CnmjpbWk.mjs} +979 -976
  32. package/dist/{NodeSqliteClient-BGg70C7Q.cjs → NodeSqliteClient-D8bzGgPN.cjs} +1 -1
  33. package/dist/{OpenCodeDriver-BFEw5t09.cjs → OpenCodeDriver-Bu5D19tl.cjs} +6 -6
  34. package/dist/{OpenCodeDriver-Byu1pf_i.mjs → OpenCodeDriver-DhyVaBMT.mjs} +5 -5
  35. package/dist/{SideQuestionIsolation-81IoAuoi.mjs → SideQuestionIsolation-B-aE6aBz.mjs} +1 -1
  36. package/dist/{SideQuestionIsolation-CMPkCUP0.cjs → SideQuestionIsolation-CtJ4wX83.cjs} +1 -1
  37. package/dist/bin.cjs +8580 -305
  38. package/dist/bin.mjs +8560 -268
  39. package/dist/client/assets/{AccountSettings-DF6okodO.js → AccountSettings-v6-r6gYl.js} +1 -1
  40. package/dist/client/assets/{AiFocusSettings-BNNr6MW3.js → AiFocusSettings-BVdLON0q.js} +1 -1
  41. package/dist/client/assets/{AnimatedHeight-q2A-ikJ5.js → AnimatedHeight-UXn4-nUd.js} +1 -1
  42. package/dist/client/assets/{AppearanceSettings-BD0MZkm7.js → AppearanceSettings-DRChsQnN.js} +1 -1
  43. package/dist/client/assets/{BranchToolbar.logic-DN0He2gp.js → BranchToolbar.logic-YN3KjVr9.js} +1 -1
  44. package/dist/client/assets/{BrowserPanel-C_ddyv_7.js → BrowserPanel-Dxw3stFP.js} +1 -1
  45. package/dist/client/assets/{ChatRightPanel-B62ml3EW.js → ChatRightPanel-CygpcJiF.js} +5 -5
  46. package/dist/client/assets/{ChatThreadRouteView-BnvzR19h.js → ChatThreadRouteView-DYLZFHu0.js} +1 -1
  47. package/dist/client/assets/{CommandPaletteDialog-KtIlImWg.js → CommandPaletteDialog-BRvBzP1R.js} +1 -1
  48. package/dist/client/assets/{CompositeRoot-CTspN_gA.js → CompositeRoot-BeEGGWwn.js} +1 -1
  49. package/dist/client/assets/{ComputerUseSettings-B4KnZnFy.js → ComputerUseSettings-Cq8Pi0ZU.js} +1 -1
  50. package/dist/client/assets/{ConnectionsSettings-BW1hWm-b.js → ConnectionsSettings-RSYtexxd.js} +2 -2
  51. package/dist/client/assets/{ContextHandoffEndpointLabel-BCNMjnEV.js → ContextHandoffEndpointLabel-CeGDLNA4.js} +1 -1
  52. package/dist/client/assets/{DiagnosticsSettings-Biqth29E.js → DiagnosticsSettings-CDa6MVx4.js} +1 -1
  53. package/dist/client/assets/{DialogHandle-B1kG1DEu.js → DialogHandle-BE7egDQQ.js} +1 -1
  54. package/dist/client/assets/{DialogPopup-CZ-twaqA.js → DialogPopup-NfwDyR5c.js} +1 -1
  55. package/dist/client/assets/DialogRoot-C4mtzigX.js +1 -0
  56. package/dist/client/assets/{DialogTitle-D8Vib3Xi.js → DialogTitle-B_Q4DykI.js} +1 -1
  57. package/dist/client/assets/{DialogTrigger-C8WNfJfY.js → DialogTrigger-BSqd4Crj.js} +1 -1
  58. package/dist/client/assets/{DialogViewport-BzuRIust.js → DialogViewport-B6w_ROOE.js} +1 -1
  59. package/dist/client/assets/{DraftChatThreadRouteView-Bf196For.js → DraftChatThreadRouteView-JW_bXVrM.js} +1 -1
  60. package/dist/client/assets/{ExternalIdentityWeb.logic-DsTJQkg-.js → ExternalIdentityWeb.logic-BlKX8J9h.js} +1 -1
  61. package/dist/client/assets/{GlassSurface-R5jo7uZp.js → GlassSurface-DDG4eTlj.js} +1 -1
  62. package/dist/client/assets/{HostedConnectionControls-xi9LAlqs.js → HostedConnectionControls-CscV6hm1.js} +1 -1
  63. package/dist/client/assets/{HostedHubRoot-B5cJPL0b.js → HostedHubRoot-gp7-ClBP.js} +1 -1
  64. package/dist/client/assets/{HostedNativeAuthorizationRoute-BPxYI2S8.js → HostedNativeAuthorizationRoute-j7oSlakZ.js} +1 -1
  65. package/dist/client/assets/{HostedNodeRenameDialog-CZ6B6eOA.js → HostedNodeRenameDialog-D1DSiTpx.js} +1 -1
  66. package/dist/client/assets/{HostedRelayTrustNotice-Da0fanPZ.js → HostedRelayTrustNotice-B9jp4SRh.js} +1 -1
  67. package/dist/client/assets/{IntegrationsSettingsPanel-CVIFEYar.js → IntegrationsSettingsPanel-DH7SfWtV.js} +1 -1
  68. package/dist/client/assets/{KeybindingsSettings-FJVISTz3.js → KeybindingsSettings-DkgYYSHS.js} +1 -1
  69. package/dist/client/assets/{LazyBrowserPanel-ChCZntfd.js → LazyBrowserPanel-D4e76vc_.js} +1 -1
  70. package/dist/client/assets/{McpServersSettings-D5qSFad1.js → McpServersSettings-Dc1kPa-X.js} +1 -1
  71. package/dist/client/assets/{MobileSheet-BZwVUjae.js → MobileSheet-lT--mLEz.js} +1 -1
  72. package/dist/client/assets/{NodeSecuritySettings-C9eJS4Wt.js → NodeSecuritySettings-DcfSx4KT.js} +1 -1
  73. package/dist/client/assets/{NullStore-iCZTvdl5.js → NullStore-8d2s-Re3.js} +1 -1
  74. package/dist/client/assets/{OnboardingDialog-lWnlzsHQ.js → OnboardingDialog-CnLjwM6Z.js} +1 -1
  75. package/dist/client/assets/{OpinionatedPluginsSettings-DQ77FhYa.js → OpinionatedPluginsSettings-BTJyS3rN.js} +1 -1
  76. package/dist/client/assets/{PdfAttachmentPreview-CmCBedSk.js → PdfAttachmentPreview-C8-hT8KQ.js} +1 -1
  77. package/dist/client/assets/{PhoneGetAppInterstitial-DU7Pjbrv.js → PhoneGetAppInterstitial-Zh0zpBgT.js} +1 -1
  78. package/dist/client/assets/{PhoneHome-D91zzTlE.js → PhoneHome-CIMkuDJF.js} +1 -1
  79. package/dist/client/assets/{PhoneSettingsSurface-vyuCLVtH.js → PhoneSettingsSurface-CfZQxJNI.js} +1 -1
  80. package/dist/client/assets/{ProvidersSettingsPanel-QMtod_bc.js → ProvidersSettingsPanel-DAVSiwE1.js} +1 -1
  81. package/dist/client/assets/{QuitShortcutFeedback-Bti16E53.js → QuitShortcutFeedback-Qs9XsuZ4.js} +1 -1
  82. package/dist/client/assets/{RedactedSensitiveText-9r8QC1lJ.js → RedactedSensitiveText-BHGbQJwB.js} +1 -1
  83. package/dist/client/assets/{RootAppShell-CYT2IfYW.js → RootAppShell-T056pByH.js} +2 -2
  84. package/dist/client/assets/{Separator-ClXl-hQH.js → Separator-B6Esv57Y.js} +1 -1
  85. package/dist/client/assets/{SettingsDialog-BUcF48F9.js → SettingsDialog-BERU2Qg7.js} +1 -1
  86. package/dist/client/assets/{SettingsPanels-BydjDF1I.js → SettingsPanels-De_XZOQF.js} +1 -1
  87. package/dist/client/assets/{SettingsPanels.editor-zrq4ZT2j.js → SettingsPanels.editor-Dkva9gX_.js} +1 -1
  88. package/dist/client/assets/{SourceControlSettings-CqVmc4sB.js → SourceControlSettings-B4HS17cB.js} +1 -1
  89. package/dist/client/assets/{StatisticsPage-k-gimGKE.js → StatisticsPage-Bj2ftFdH.js} +1 -1
  90. package/dist/client/assets/{StatisticsPanel-CtShfsl4.js → StatisticsPanel-Dw7GBBmd.js} +1 -1
  91. package/dist/client/assets/{StatisticsSettingsLink-BapVo9aC.js → StatisticsSettingsLink-_XL3ABoI.js} +1 -1
  92. package/dist/client/assets/{ThreadTerminalDrawer-Bfs5NCNv.js → ThreadTerminalDrawer-CPPzQSXN.js} +1 -1
  93. package/dist/client/assets/{ThreadWorkspacePanel-L6uNQRNX.js → ThreadWorkspacePanel-DWKU7Omm.js} +1 -1
  94. package/dist/client/assets/{abnfDiagram-N423BO3Z-BzwwixLv.js → abnfDiagram-N423BO3Z-ByEe3mC0.js} +1 -1
  95. package/dist/client/assets/{activity-CPE_7Kqw.js → activity-CwTUF6lv.js} +1 -1
  96. package/dist/client/assets/{alert-DVbwtykC.js → alert-DQEkrtUJ.js} +1 -1
  97. package/dist/client/assets/{appChrome-B_VWWDFj.js → appChrome-TkWLAGxk.js} +1 -1
  98. package/dist/client/assets/architecture-7GRP2DOG-HS59zfrk.js +1 -0
  99. package/dist/client/assets/{architectureDiagram-T3A2C74G-DEiVciWZ.js → architectureDiagram-T3A2C74G-Bd-yxaTr.js} +1 -1
  100. package/dist/client/assets/{arrow-left-Ce-aUiy1.js → arrow-left-DUOpzEbP.js} +1 -1
  101. package/dist/client/assets/{arrow-right-BEwkAmxp.js → arrow-right-HOYJnPKw.js} +1 -1
  102. package/dist/client/assets/{arrow-up-right-CLCNhOeC.js → arrow-up-right-DHnMKuVA.js} +1 -1
  103. package/dist/client/assets/{authorization-BugIGt5e.js → authorization-D8dOcEYq.js} +1 -1
  104. package/dist/client/assets/{badge-DqZmJa1g.js → badge-2AZ3HfVS.js} +1 -1
  105. package/dist/client/assets/{blockDiagram-VBNYF7ZC-C-PBzm5g.js → blockDiagram-VBNYF7ZC-CPDBonMC.js} +1 -1
  106. package/dist/client/assets/{bot-k1yDQ5mQ.js → bot-DxjPA7Bw.js} +1 -1
  107. package/dist/client/assets/{c4Diagram-5PPSVZJV-DB6SIv2V.js → c4Diagram-5PPSVZJV-BM6pAiqT.js} +1 -1
  108. package/dist/client/assets/{capabilities-C9OPiefV.js → capabilities-CsHjxjab.js} +1 -1
  109. package/dist/client/assets/channel-Dn3_cOkm.js +1 -0
  110. package/dist/client/assets/{chart-column-CVU4MshQ.js → chart-column-Cg7d41tb.js} +1 -1
  111. package/dist/client/assets/chevron-right-Dsw16yGn.js +1 -0
  112. package/dist/client/assets/{chunk-2GRJ4B5K-CFM4Ac_N.js → chunk-2GRJ4B5K-DVKozJ41.js} +1 -1
  113. package/dist/client/assets/{chunk-4I5QYGJK-a9tLNjnj.js → chunk-4I5QYGJK-BRoMwPkW.js} +1 -1
  114. package/dist/client/assets/{chunk-5RXB4S5H-CbEb4Ht8.js → chunk-5RXB4S5H-DFMKyoqP.js} +1 -1
  115. package/dist/client/assets/{chunk-6Q2QTUOP-DPUmSmhc.js → chunk-6Q2QTUOP-Ba6UENe9.js} +1 -1
  116. package/dist/client/assets/{chunk-7Z6QIM7H-Ba8d__CQ.js → chunk-7Z6QIM7H-B87gYLWH.js} +1 -1
  117. package/dist/client/assets/{chunk-GF5L2VYU-BKOdlQ2f.js → chunk-GF5L2VYU-DZ840GRQ.js} +1 -1
  118. package/dist/client/assets/{chunk-I66GZJ75-DAfCveu2.js → chunk-I66GZJ75-BO6p4Aqg.js} +1 -1
  119. package/dist/client/assets/{chunk-JQJVKLGR-CPzgDuD8.js → chunk-JQJVKLGR-5dTfVinz.js} +1 -1
  120. package/dist/client/assets/{chunk-KBJHAD2P-X87J_pHD.js → chunk-KBJHAD2P-BeWfBZdP.js} +1 -1
  121. package/dist/client/assets/{chunk-NSK5VX7P-BgrjQWAz.js → chunk-NSK5VX7P-DuRkdn5k.js} +1 -1
  122. package/dist/client/assets/{chunk-QR6OTTB3-NTX__XXO.js → chunk-QR6OTTB3-Duz4Y_uE.js} +1 -1
  123. package/dist/client/assets/{chunk-UBXNYLIW-BVySE3ty.js → chunk-UBXNYLIW-D-z8URgN.js} +1 -1
  124. package/dist/client/assets/{chunk-W5SLKNZC-0-ctjkBJ.js → chunk-W5SLKNZC-AGjFjjoJ.js} +1 -1
  125. package/dist/client/assets/{chunk-WRU74C26-AGGo_1S7.js → chunk-WRU74C26-BgY3UiXB.js} +1 -1
  126. package/dist/client/assets/classDiagram-JCYQIIEL-ZQvrS8No.js +1 -0
  127. package/dist/client/assets/classDiagram-v2-OCEON4UE-ZQvrS8No.js +1 -0
  128. package/dist/client/assets/{clipboard-copy-C3icJCGA.js → clipboard-copy-BWf3JuTE.js} +1 -1
  129. package/dist/client/assets/{cynefin-OW5HDTMX-BR32cltb.js → cynefin-OW5HDTMX-BuOAGqlK.js} +1 -1
  130. package/dist/client/assets/{cynefinDiagram-MW4NZA55-B7S5bXUw.js → cynefinDiagram-MW4NZA55-DqV0Aokp.js} +1 -1
  131. package/dist/client/assets/{dagre-VZM6K2ZE-BZOfZvme.js → dagre-VZM6K2ZE-D_GFquDW.js} +1 -1
  132. package/dist/client/assets/{data-list-E_dNBqgV.js → data-list-BJCq3CVP.js} +1 -1
  133. package/dist/client/assets/{desktopWorkspace-DIoIhyml.js → desktopWorkspace-_iM6B9Kf.js} +1 -1
  134. package/dist/client/assets/{deviceName-BY2WK012.js → deviceName-C2N8ZRX3.js} +1 -1
  135. package/dist/client/assets/{diagram-7IWD3JNH-CypfFHxI.js → diagram-7IWD3JNH-B1wlsNg2.js} +1 -1
  136. package/dist/client/assets/{diagram-B4RE2ZJO-CaYsJtDz.js → diagram-B4RE2ZJO-D-CYoym7.js} +1 -1
  137. package/dist/client/assets/{diagram-LBJQPF4R-BdhZtcd2.js → diagram-LBJQPF4R-DqJ9NCqt.js} +1 -1
  138. package/dist/client/assets/{diagram-Q27KOJAE-CW1SMIBy.js → diagram-Q27KOJAE-3yp1D2u4.js} +1 -1
  139. package/dist/client/assets/{diagram-UB23O5K3-Cq8GGDkV.js → diagram-UB23O5K3-Byp25nGC.js} +1 -1
  140. package/dist/client/assets/{download-Fq1MsYfI.js → download-DsYNYJeu.js} +1 -1
  141. package/dist/client/assets/{ebnfDiagram-BXEA7PRR-CE78Op8p.js → ebnfDiagram-BXEA7PRR-B_IM1l6o.js} +1 -1
  142. package/dist/client/assets/{editorPreferences-DzxKMQJx.js → editorPreferences-D8q1ItMW.js} +1 -1
  143. package/dist/client/assets/{empty-DXTz-nBL.js → empty-BbJHvskr.js} +1 -1
  144. package/dist/client/assets/{erDiagram-JOGREHBK-Bn6BFae6.js → erDiagram-JOGREHBK--OtcrCRJ.js} +1 -1
  145. package/dist/client/assets/eventmodeling-NTZA5JFV-Dj71kuPV.js +1 -0
  146. package/dist/client/assets/flowDiagram-UKHOOZJN-BaAiwuvL.js +1 -0
  147. package/dist/client/assets/{ganttDiagram-PKOTCBZU-C8NbmUQP.js → ganttDiagram-PKOTCBZU-w0seBi3Q.js} +1 -1
  148. package/dist/client/assets/{gitGraph-4MIJSDKK-Dg7W2mOf.js → gitGraph-4MIJSDKK-BOJ0lcSW.js} +1 -1
  149. package/dist/client/assets/{gitGraphDiagram-DS77QQ5N-XEC1jydW.js → gitGraphDiagram-DS77QQ5N-BMfOCCYn.js} +1 -1
  150. package/dist/client/assets/{group-CcSMHbpZ.js → group-tVMKGp7Q.js} +1 -1
  151. package/dist/client/assets/{hostedConnectionCoordinator-BkxMXc2s.js → hostedConnectionCoordinator-BuRWCvUG.js} +1 -1
  152. package/dist/client/assets/hostedPairing-5n5srRC9.js +1 -0
  153. package/dist/client/assets/{hubRoutes-Ch__ge2L.js → hubRoutes-jcMPIFy3.js} +1 -1
  154. package/dist/client/assets/{index-3zoAo5bo.js → index-BqZvnGNr.js} +1 -1
  155. package/dist/client/assets/{info-A6RAGUB7-CPN5xH7s.js → info-A6RAGUB7-acjBTQ5o.js} +1 -1
  156. package/dist/client/assets/{infoDiagram-6WML65LV-DbXXnE3-.js → infoDiagram-6WML65LV-DB01Nc2m.js} +1 -1
  157. package/dist/client/assets/{input-zI-YDU9i.js → input-BDWSVClC.js} +1 -1
  158. package/dist/client/assets/{ishikawaDiagram-WSZJBQD7-DAjJrXWe.js → ishikawaDiagram-WSZJBQD7-KhZTvm-J.js} +1 -1
  159. package/dist/client/assets/{journeyDiagram-NVQOT4AX-CaGm-K-C.js → journeyDiagram-NVQOT4AX-C3JCYk-2.js} +1 -1
  160. package/dist/client/assets/{kanban-definition-27J2QSJJ-C2YRqY28.js → kanban-definition-27J2QSJJ-Dbo0C1s6.js} +1 -1
  161. package/dist/client/assets/{kbd-DlXUKjl1.js → kbd-Dxm5Elqj.js} +1 -1
  162. package/dist/client/assets/{key-round-DLUapaUr.js → key-round-CETZqe3h.js} +1 -1
  163. package/dist/client/assets/{layers-3D4z3mrk.js → layers-Dqez1Uq8.js} +1 -1
  164. package/dist/client/assets/{log-out-BxEBqpSs.js → log-out-D5-aSBAz.js} +1 -1
  165. package/dist/client/assets/{logging-C6tXZlGQ.js → logging-B_qXVrk6.js} +1 -1
  166. package/dist/client/assets/{main-DsnAjTqg.js → main-DAbEANjY.js} +2 -2
  167. package/dist/client/assets/{mermaid-parser.core-Dhd66igk.js → mermaid-parser.core-B6Q-3x_q.js} +2 -2
  168. package/dist/client/assets/{mermaidEngine-3NZnIFOn.js → mermaidEngine-DksLcesB.js} +3 -3
  169. package/dist/client/assets/{mindmap-definition-FAOFIHXS-SuO77jBW.js → mindmap-definition-FAOFIHXS-LaMzRxqw.js} +1 -1
  170. package/dist/client/assets/{motion-B4mmVewo.js → motion-BdscFixQ.js} +1 -1
  171. package/dist/client/assets/{packet-AYTQ26CC-BZwkWo3N.js → packet-AYTQ26CC-BHhg59Si.js} +1 -1
  172. package/dist/client/assets/{pairingUrl-rQM9kSGT.js → pairingUrl-Dn1e2CVw.js} +1 -1
  173. package/dist/client/assets/{palette-BXA2I3bI.js → palette-92ylWqeC.js} +1 -1
  174. package/dist/client/assets/{pegDiagram-VL7TDLO6-DgWypDaQ.js → pegDiagram-VL7TDLO6-s7l7UD9d.js} +1 -1
  175. package/dist/client/assets/{pie-WAS4IAKB-C1iJ73d9.js → pie-WAS4IAKB-DygX31Z9.js} +1 -1
  176. package/dist/client/assets/{pieDiagram-7S7Q4E2Y-DK1OTG7x.js → pieDiagram-7S7Q4E2Y-bb6I9TtZ.js} +1 -1
  177. package/dist/client/assets/{play-CJNYRuck.js → play-DUvOxTpL.js} +1 -1
  178. package/dist/client/assets/{primary-CQh_KHGG.js → primary-DZjgHvyf.js} +3 -3
  179. package/dist/client/assets/{providerDriverMeta-DJ9TrG26.js → providerDriverMeta-T2YbXzuS.js} +1 -1
  180. package/dist/client/assets/{qr-code-CBzdIN1G.js → qr-code-D4CtBq2F.js} +1 -1
  181. package/dist/client/assets/{qr-code-HMr6crTy.js → qr-code-dbkTo07n.js} +1 -1
  182. package/dist/client/assets/{quadrantDiagram-CIZ2JOQS-CIgZ3afX.js → quadrantDiagram-CIZ2JOQS-Cj1Y68ZF.js} +1 -1
  183. package/dist/client/assets/{radar-RG4KPBEZ-vq15KQ2S.js → radar-RG4KPBEZ-FHM3ftPp.js} +1 -1
  184. package/dist/client/assets/{radio-group-1yuMmVHi.js → radio-group-CRnHYWa8.js} +1 -1
  185. package/dist/client/assets/{railroad-74A4TZTK-DWMARNIs.js → railroad-74A4TZTK-CPMn18Cm.js} +1 -1
  186. package/dist/client/assets/railroad-abnf-HS5TGJTU-DxU7Mt1k.js +1 -0
  187. package/dist/client/assets/railroad-ebnf-LZEXJU2U-BYAPVjRd.js +1 -0
  188. package/dist/client/assets/railroad-peg-WCYAUIDC-BOqgR_X7.js +1 -0
  189. package/dist/client/assets/{railroadDiagram-AXF67PYL-rE9Jx5yK.js → railroadDiagram-AXF67PYL-DyV3SuDj.js} +1 -1
  190. package/dist/client/assets/{refresh-cw-DBJIPv7m.js → refresh-cw-CgDa2Ok_.js} +1 -1
  191. package/dist/client/assets/{requirementDiagram-LRYGKXZP-Dkz6KTug.js → requirementDiagram-LRYGKXZP-_xEAGWaH.js} +1 -1
  192. package/dist/client/assets/runtime-BwHA1GUS.js +18 -0
  193. package/dist/client/assets/{sankeyDiagram-W5VNT64P-qCyqmTya.js → sankeyDiagram-W5VNT64P-Clf6oTLi.js} +1 -1
  194. package/dist/client/assets/{save-BFsP9OG2.js → save-C8h0AMdl.js} +1 -1
  195. package/dist/client/assets/{scroll-area-CxjQJZM9.js → scroll-area-7n2X_RLQ.js} +1 -1
  196. package/dist/client/assets/{scrollEdges-CXvSHaVb.js → scrollEdges-BXYnwntN.js} +1 -1
  197. package/dist/client/assets/{separator-D3j91Nju.js → separator-CL1qjMqJ.js} +1 -1
  198. package/dist/client/assets/{sequenceDiagram-SI44F4Z6-GCGWxGKL.js → sequenceDiagram-SI44F4Z6-CcYtQLSe.js} +1 -1
  199. package/dist/client/assets/{settingsLayout-3SUkadS6.js → settingsLayout-DxsFwhF0.js} +1 -1
  200. package/dist/client/assets/{sheet-BOQ2T2gY.js → sheet-CGiaw8-i.js} +1 -1
  201. package/dist/client/assets/{shield-Colgxqw7.js → shield-DPC4oHTi.js} +1 -1
  202. package/dist/client/assets/{shield-alert-CWQ-fgqm.js → shield-alert-CwH36qZb.js} +1 -1
  203. package/dist/client/assets/{shield-check-Dgpx5EQs.js → shield-check-CGD7sEeF.js} +1 -1
  204. package/dist/client/assets/{sidebar-BIv8pHHx.js → sidebar-Cc6ANbOP.js} +1 -1
  205. package/dist/client/assets/{sidebarProjectFolders-BpKCw8IR.js → sidebarProjectFolders-DO2Uv84F.js} +1 -1
  206. package/dist/client/assets/{sidebarStatusText-DSeDlb-o.js → sidebarStatusText-B4AtFXZo.js} +1 -1
  207. package/dist/client/assets/{sidebarUndo-DzblmE6P.js → sidebarUndo-gdSrfa4O.js} +1 -1
  208. package/dist/client/assets/{skeleton-BdJ4w_TS.js → skeleton-rS3IgBob.js} +1 -1
  209. package/dist/client/assets/{smartphone-DhBEWfKK.js → smartphone-DgVJfbv3.js} +1 -1
  210. package/dist/client/assets/square-Cr9X8U6y.js +1 -0
  211. package/dist/client/assets/{src-DHNjfMxR.js → src-C3Y_imaX.js} +1 -1
  212. package/dist/client/assets/{star-BAzXRepp.js → star-Cqay-Cae.js} +1 -1
  213. package/dist/client/assets/{stateDiagram-OKZ733FA-D8fRUjov.js → stateDiagram-OKZ733FA-DEKURpRP.js} +1 -1
  214. package/dist/client/assets/stateDiagram-v2-UEYNNEHI-CWtHILqh.js +1 -0
  215. package/dist/client/assets/storeSelectors-CTDWheMy.js +1 -0
  216. package/dist/client/assets/{swimlanes-SLNWSIFB-BKy9AxWZ.js → swimlanes-SLNWSIFB-DrR6sbi6.js} +1 -1
  217. package/dist/client/assets/swimlanesDiagram-ULZ7WXOC-DuaPce9O.js +8 -0
  218. package/dist/client/assets/{switch-DgLijJhN.js → switch-DnpJB2xv.js} +1 -1
  219. package/dist/client/assets/{timeline-definition-Z64GVDOM-DV53IwmP.js → timeline-definition-Z64GVDOM-bQJvmJx5.js} +1 -1
  220. package/dist/client/assets/{toggle-BgR-G8hl.js → toggle-D10FsFoE.js} +1 -1
  221. package/dist/client/assets/{toggle-group-DRIEnEQy.js → toggle-group-BhzbQPEQ.js} +1 -1
  222. package/dist/client/assets/{tokenModePresentation-Bh3mJ9H-.js → tokenModePresentation-BkS-mry_.js} +1 -1
  223. package/dist/client/assets/{tooltip-CsNk2GK1.js → tooltip-BlweKBxc.js} +1 -1
  224. package/dist/client/assets/{treeView-Q6P3EWNA-BgFMn3HH.js → treeView-Q6P3EWNA-D4Ex5QTp.js} +1 -1
  225. package/dist/client/assets/{treemap-WGGIJYW6-B45XVWgo.js → treemap-WGGIJYW6-C4B6Y6qM.js} +1 -1
  226. package/dist/client/assets/{unplug-0SZT8Az_.js → unplug-B1dczi-t.js} +1 -1
  227. package/dist/client/assets/{usage-DF8oQrsy.js → usage-BBwaxMif.js} +1 -1
  228. package/dist/client/assets/useAppSidebarCollapsed-CFy476E3.js +1 -0
  229. package/dist/client/assets/useBaseUiId-DKOjzmu3.js +1 -0
  230. package/dist/client/assets/{useLabelableId-CTlGVpp_.js → useLabelableId-DQbY2GG1.js} +1 -1
  231. package/dist/client/assets/{useNavigate-xewFGSmS.js → useNavigate-B8oXtF30.js} +1 -1
  232. package/dist/client/assets/{usePhoneThreadActions-CuSwvIb4.js → usePhoneThreadActions-6DCLiyJ5.js} +1 -1
  233. package/dist/client/assets/{usePopupViewport-CCXjC0oV.js → usePopupViewport-CNWcP7Od.js} +1 -1
  234. package/dist/client/assets/{useScrollLock-DkiskCYn.js → useScrollLock-BbKeKZdj.js} +1 -1
  235. package/dist/client/assets/{useStatistics-C5V0rg9r.js → useStatistics-B76_r68I.js} +1 -1
  236. package/dist/client/assets/{useTriggerFocusGuards-Cd4IS7Sl.js → useTriggerFocusGuards-BC4Wb3GI.js} +1 -1
  237. package/dist/client/assets/{useValueChanged-DUWoN5BG.js → useValueChanged-BkTbyZdO.js} +1 -1
  238. package/dist/client/assets/{user-round-BtyrzbBf.js → user-round-CLy1Qy1Y.js} +1 -1
  239. package/dist/client/assets/{vennDiagram-T6HMQDX7-DAr5h306.js → vennDiagram-T6HMQDX7-8iiroXim.js} +1 -1
  240. package/dist/client/assets/{vscode-icons-LDoILSKI.js → vscode-icons-CJBVQtq5.js} +1 -1
  241. package/dist/client/assets/{wardley-WFR3VGLG-6MSUlbTx.js → wardley-WFR3VGLG-DpyNUbTc.js} +1 -1
  242. package/dist/client/assets/{wardleyDiagram-T6FBY63Y-Bwv8xq6E.js → wardleyDiagram-T6FBY63Y-CI7is3QO.js} +1 -1
  243. package/dist/client/assets/{workspaceMetadataProjection-DzVpakWU.js → workspaceMetadataProjection-aqZEXDrQ.js} +1 -1
  244. package/dist/client/assets/{wrench-BDHgkqDa.js → wrench-7pbbxqrZ.js} +1 -1
  245. package/dist/client/assets/{xychartDiagram-ELKLHX3M-Be0CbWLp.js → xychartDiagram-ELKLHX3M-BTEX3m2y.js} +1 -1
  246. package/dist/client/index.html +1 -1
  247. package/dist/{deviceHostWorker-CYnrwfrv.cjs → deviceHostWorker-D4HauWIV.cjs} +1 -1
  248. package/dist/{git-BKwGfw8A.mjs → git-9xWsJYIH.mjs} +1 -1
  249. package/dist/{git-Dn5wrgFY.cjs → git-xIkXFy_l.cjs} +2 -2
  250. package/dist/{makeManagedServerProvider-B_lPFNpL.mjs → makeManagedServerProvider-B90UKjnv.mjs} +1 -1
  251. package/dist/{makeManagedServerProvider-CUwxc0Pn.cjs → makeManagedServerProvider-CF776SAO.cjs} +2 -2
  252. package/dist/resource-monitor/ryco-resource-monitor +0 -0
  253. package/dist/resource-monitor/ryco-resource-monitor.exe +0 -0
  254. package/dist/resource-monitor/win32-arm64/ryco-resource-monitor.exe +0 -0
  255. package/dist/resource-monitor/win32-x64/ryco-resource-monitor.exe +0 -0
  256. package/dist/{rolldown-runtime-LGfotAqq.cjs → rolldown-runtime-HbSU0i7K.cjs} +7 -0
  257. package/dist/{src-BzVJd3Me.cjs → src-CARHuYkT.cjs} +1059 -178
  258. package/dist/{src-7E1M4gTQ.mjs → src-CtsgPPhb.mjs} +198 -97
  259. package/package.json +1 -1
  260. package/dist/client/assets/DialogRoot-CEU7Xp57.js +0 -1
  261. package/dist/client/assets/architecture-7GRP2DOG-B6OTx_1D.js +0 -1
  262. package/dist/client/assets/channel-D_j9jK0M.js +0 -1
  263. package/dist/client/assets/chevron-right-D3dUAoht.js +0 -1
  264. package/dist/client/assets/classDiagram-JCYQIIEL-Ck79EbLj.js +0 -1
  265. package/dist/client/assets/classDiagram-v2-OCEON4UE-Ck79EbLj.js +0 -1
  266. package/dist/client/assets/eventmodeling-NTZA5JFV-COIUUd8Y.js +0 -1
  267. package/dist/client/assets/flowDiagram-UKHOOZJN-Cdhu8N9G.js +0 -1
  268. package/dist/client/assets/hostedPairing-CqhLPQqG.js +0 -1
  269. package/dist/client/assets/railroad-abnf-HS5TGJTU-DtRRa_PL.js +0 -1
  270. package/dist/client/assets/railroad-ebnf-LZEXJU2U-WQz4QHTw.js +0 -1
  271. package/dist/client/assets/railroad-peg-WCYAUIDC-1gkGEpqz.js +0 -1
  272. package/dist/client/assets/runtime-DpHhg0dl.js +0 -18
  273. package/dist/client/assets/square--aW0vCo4.js +0 -1
  274. package/dist/client/assets/stateDiagram-v2-UEYNNEHI-vKQeXqcV.js +0 -1
  275. package/dist/client/assets/storeSelectors-BFVEGU0F.js +0 -1
  276. package/dist/client/assets/swimlanesDiagram-ULZ7WXOC-qtmvcwUS.js +0 -8
  277. package/dist/client/assets/useAppSidebarCollapsed-CvO9sEQ7.js +0 -1
  278. package/dist/client/assets/useBaseUiId-B5nK6G4h.js +0 -1
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{Bn as t,D as n,L as r,w as i}from"./runtime-DpHhg0dl.js";import{t as a}from"./react-CwJFpaho.js";import{o,s}from"./authorization-BugIGt5e.js";import{a as c,i as l,o as u,r as d,s as f,t as p}from"./workspaceMetadataProjection-DzVpakWU.js";var m=`__TSR_index`,h=`popstate`,g=`beforeunload`;function _(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=S(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[m];i=v(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[m];i=v(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[m]!==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 v(e,t){t||={};let n=C();return{...t,key:n,__TSR_key:n,[m]:e}}function y(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??(()=>S(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=C();t.history.replaceState({[m]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,v=!1,y=()=>l,b,x=()=>{b&&(O._ignoreSubscribers=!0,(b[2]?t.history.pushState:t.history.replaceState)(b[1],``,b[0]),O._ignoreSubscribers=!1,b=void 0,u=void 0)},w=(e,t,n)=>{let r=s(t),i=!!b;i||(u=l),l=S(t,n),b=[r,n,b?.[2]||e],i||queueMicrotask(()=>x())},T=e=>{l=c(),O.notify({type:e})},E=async()=>{if(v=!1,f){f=!1;return}let e=c(),n=e.state[m]-l.state[m],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),O.notify(u);return}}}l=c(),O.notify(u)},D=e=>{if(v){v=!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=``},O=_({getLocation:y,getLength:()=>t.history.length,pushState:(e,t)=>w(!0,e,t),replaceState:(e,t)=>w(!1,e,t),back:e=>(e&&(p=!0,v=!0),t.history.back()),forward:e=>{e&&(p=!0,v=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,v=!0),t.history.go(e)},createHref:e=>s(e),flush:x,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(g,D,{capture:!0}),t.removeEventListener(h,E)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(g,D,{capture:!0}),t.addEventListener(h,E),t.history.pushState=function(...e){let r=n.apply(t.history,e);return O._ignoreSubscribers||T(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return O._ignoreSubscribers||T(`REPLACE`),n},O}function b(e){let t=e?.window??(typeof document<`u`?window:void 0);return y({window:t,parseLocation:()=>{let e=t.location.hash.split(`#`).slice(1),n=e[0]??`/`,r=t.location.search,i=e.slice(1);return S(`${n}${r}${i.length===0?``:`#${i.join(`#`)}`}`,t.history.state)},createHref:e=>`${t.location.pathname}${t.location.search}#${e}`})}function x(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function S(e,t){let n=x(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=C();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||{[m]:0,key:a,__TSR_key:a}}}function C(){return(Math.random()+1).toString(36).substring(7)}function w(e){return Number.isSafeInteger(e)&&e>=0}function T(e){return e.environmentId===null||!w(e.selectionGeneration)||!w(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 E(e,t,n){let r=T(n);return r!==null&&e.environmentId===t&&r.environmentId===t&&e.selectionGeneration===r.selectionGeneration&&e.snapshotGeneration===r.snapshotGeneration&&e.effectiveRole===r.effectiveRole}function D(){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=T(t);return n?.environmentId===e?n:null},validate:(e,n)=>E(e,n,t),subscribe(t){return e.add(t),()=>e.delete(t)}}}var O=45e3;function k(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 ee(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 te(e,t,n){return ee(e,t,e=>({...e,lastAccessedAt:Math.max(e.lastAccessedAt,n)}))}function A(e,t,n,r){return ee(e,t,e=>({...e,connected:n,lastAccessedAt:Math.max(e.lastAccessedAt,r)}))}function ne(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 te({...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 re(e,t,n,r=O){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 ie(e,t){return{...e,leases:e.leases.filter(e=>e.leaseId!==t)}}function ae(e,t){return e.backgrounded===t?e:{...e,backgrounded:t}}function oe(e,t){let n=e.leases.filter(e=>e.expiresAt>t);return n.length===e.leases.length?e:{...e,leases:n}}function se(e,t){let n=oe(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 ce={os:`unknown`,arch:`other`};function le(e){return Array.from(new Set(e.filter(e=>e!==null)))}function ue(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=le([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??ce,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 de(e){let t=new Map;for(let n of e)t.set(n.environmentId,ue(n));return Array.from(t.values()).toSorted((e,t)=>e.label.localeCompare(t.label)||String(e.environmentId).localeCompare(String(t.environmentId)))}function fe(e){if(e===null)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null}function pe(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 a=[],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}),a.push(n))}}let s=a.flatMap(e=>e.projects),c=a.flatMap(e=>e.worktrees),l=a.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 a=i(n);return[{environmentId:n.environmentId,projectId:n.id,physicalKey:a,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?.[a]??null,lastLiveAt:fe(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 me=e(a(),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=y({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=O;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=k(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=ie(t,r));for(let[r,i]of n){let n=o.get(r);if(n){t=re(t,n,e.now(),He);continue}let s=`hosted-web-${++a}`;o.set(r,s),t=ne(t,{leaseId:s,environmentId:i.environmentId,scope:i.scope,now:e.now(),ttlMs:He})}},u=async()=>{if(i)return;l();let r=se(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=A(t,n,!1,e.now());for(let n of r.connect)try{await e.connect(n.environmentId,n.delayMs),t=A(t,n.environmentId,!0,e.now())}catch{t=A(t,n.environmentId,!1,e.now())}n=se(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=A(t,n,r,e.now()),c()},setBackgrounded(e){return t=ae(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:k(1),queuedEnvironmentIds:[],activeConnectionCount:0}},q=new Set,J=null,Y=D();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 Q(){return K}function Ze(){return(0,me.useSyncExternalStore)(Qe,Q,Q)}function Qe(e){return q.add(e),()=>q.delete(e)}function $(e){return e.capabilities?.nativeClientRequired===!0}function $e(e,t,n,r,i){return de(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 et(e){let n=e?.cache??be(),i=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:i,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&&!$(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:pe({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 n.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 r=await n.list({hubOrigin:m,accountId:o});if(y||e!==b)return;let i=new Set(a.nodes.filter(e=>e.revokedAt===null&&!$(e)).map(e=>e.environmentId));for(let e of r){if(!i.has(e.namespace.environmentId)){await n.purgeEnvironment(e.namespace).catch(()=>void 0);continue}h.set(e.namespace.environmentId,e.snapshot),t.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=$e(a.nodes,u,p,a.sessionStatus===`delivery-unknown`,i()),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),t.getState().removeEnvironmentState(e),await n.purgeEnvironment({hubOrigin:m,accountId:o,environmentId:e}).catch(()=>void 0));y||e!==b||C(v)},T=()=>{v!==null&&c(v),v=a(()=>{if(v=null,y||!_)return;let e=K.machines;for(let t of e){if(!t.canReadMetadata)continue;let e=p(t.environmentId,i(),t.deliveryUnknown);e&&(h.set(t.environmentId,e),n.replace({namespace:{hubOrigin:m,accountId:_,environmentId:t.environmentId},snapshot:e,payloadBytes:f(e),updatedAt:i()}).catch(()=>void 0))}C(e)},100)},E=s.subscribe(()=>void w()),D=t.subscribe(T),O=S.subscribe(()=>C(K.machines)),k=De(rt);return S.reconcile(),w(),()=>{y=!0,b+=1,v!==null&&c(v),E(),D(),O(),k(),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 tt(e){return J?.setBackgrounded(e)??Promise.resolve()}function nt(){return J!==null}function rt(e){return s.getState().nodes.find(t=>t.environmentId===e&&t.revokedAt===null&&!$(t))?.id??null}export{b as C,y as S,Me as _,Q as a,Ne as b,Ze as c,Ge as d,Ke as f,Ie as g,Le as h,X as i,Xe as l,Be as m,$ as n,tt as o,Re as p,rt as r,et as s,nt as t,qe as u,Fe as v,S as w,E as x,ze as y};
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{Bn as t,D as n,L as r,w as i}from"./runtime-BwHA1GUS.js";import{t as a}from"./react-CwJFpaho.js";import{o,s}from"./authorization-D8dOcEYq.js";import{a as c,i as l,o as u,r as d,s as f,t as p}from"./workspaceMetadataProjection-aqZEXDrQ.js";var m=`__TSR_index`,h=`popstate`,g=`beforeunload`;function _(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=S(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[m];i=v(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[m];i=v(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[m]!==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 v(e,t){t||={};let n=C();return{...t,key:n,__TSR_key:n,[m]:e}}function y(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??(()=>S(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=C();t.history.replaceState({[m]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,v=!1,y=()=>l,b,x=()=>{b&&(O._ignoreSubscribers=!0,(b[2]?t.history.pushState:t.history.replaceState)(b[1],``,b[0]),O._ignoreSubscribers=!1,b=void 0,u=void 0)},w=(e,t,n)=>{let r=s(t),i=!!b;i||(u=l),l=S(t,n),b=[r,n,b?.[2]||e],i||queueMicrotask(()=>x())},T=e=>{l=c(),O.notify({type:e})},E=async()=>{if(v=!1,f){f=!1;return}let e=c(),n=e.state[m]-l.state[m],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),O.notify(u);return}}}l=c(),O.notify(u)},D=e=>{if(v){v=!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=``},O=_({getLocation:y,getLength:()=>t.history.length,pushState:(e,t)=>w(!0,e,t),replaceState:(e,t)=>w(!1,e,t),back:e=>(e&&(p=!0,v=!0),t.history.back()),forward:e=>{e&&(p=!0,v=!0),t.history.forward()},go:(e,n)=>{d=!0,n&&(p=!0,v=!0),t.history.go(e)},createHref:e=>s(e),flush:x,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(g,D,{capture:!0}),t.removeEventListener(h,E)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(g,D,{capture:!0}),t.addEventListener(h,E),t.history.pushState=function(...e){let r=n.apply(t.history,e);return O._ignoreSubscribers||T(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return O._ignoreSubscribers||T(`REPLACE`),n},O}function b(e){let t=e?.window??(typeof document<`u`?window:void 0);return y({window:t,parseLocation:()=>{let e=t.location.hash.split(`#`).slice(1),n=e[0]??`/`,r=t.location.search,i=e.slice(1);return S(`${n}${r}${i.length===0?``:`#${i.join(`#`)}`}`,t.history.state)},createHref:e=>`${t.location.pathname}${t.location.search}#${e}`})}function x(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function S(e,t){let n=x(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=C();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||{[m]:0,key:a,__TSR_key:a}}}function C(){return(Math.random()+1).toString(36).substring(7)}function w(e){return Number.isSafeInteger(e)&&e>=0}function T(e){return e.environmentId===null||!w(e.selectionGeneration)||!w(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 E(e,t,n){let r=T(n);return r!==null&&e.environmentId===t&&r.environmentId===t&&e.selectionGeneration===r.selectionGeneration&&e.snapshotGeneration===r.snapshotGeneration&&e.effectiveRole===r.effectiveRole}function D(){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=T(t);return n?.environmentId===e?n:null},validate:(e,n)=>E(e,n,t),subscribe(t){return e.add(t),()=>e.delete(t)}}}var O=45e3;function k(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 ee(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 te(e,t,n){return ee(e,t,e=>({...e,lastAccessedAt:Math.max(e.lastAccessedAt,n)}))}function A(e,t,n,r){return ee(e,t,e=>({...e,connected:n,lastAccessedAt:Math.max(e.lastAccessedAt,r)}))}function ne(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 te({...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 re(e,t,n,r=O){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 ie(e,t){return{...e,leases:e.leases.filter(e=>e.leaseId!==t)}}function ae(e,t){return e.backgrounded===t?e:{...e,backgrounded:t}}function oe(e,t){let n=e.leases.filter(e=>e.expiresAt>t);return n.length===e.leases.length?e:{...e,leases:n}}function se(e,t){let n=oe(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 ce={os:`unknown`,arch:`other`};function le(e){return Array.from(new Set(e.filter(e=>e!==null)))}function ue(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=le([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??ce,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 de(e){let t=new Map;for(let n of e)t.set(n.environmentId,ue(n));return Array.from(t.values()).toSorted((e,t)=>e.label.localeCompare(t.label)||String(e.environmentId).localeCompare(String(t.environmentId)))}function fe(e){if(e===null)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null}function pe(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 a=[],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}),a.push(n))}}let s=a.flatMap(e=>e.projects),c=a.flatMap(e=>e.worktrees),l=a.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 a=i(n);return[{environmentId:n.environmentId,projectId:n.id,physicalKey:a,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?.[a]??null,lastLiveAt:fe(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 me=e(a(),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=y({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=O;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=k(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=ie(t,r));for(let[r,i]of n){let n=o.get(r);if(n){t=re(t,n,e.now(),He);continue}let s=`hosted-web-${++a}`;o.set(r,s),t=ne(t,{leaseId:s,environmentId:i.environmentId,scope:i.scope,now:e.now(),ttlMs:He})}},u=async()=>{if(i)return;l();let r=se(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=A(t,n,!1,e.now());for(let n of r.connect)try{await e.connect(n.environmentId,n.delayMs),t=A(t,n.environmentId,!0,e.now())}catch{t=A(t,n.environmentId,!1,e.now())}n=se(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=A(t,n,r,e.now()),c()},setBackgrounded(e){return t=ae(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:k(1),queuedEnvironmentIds:[],activeConnectionCount:0}},q=new Set,J=null,Y=D();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 Q(){return K}function Ze(){return(0,me.useSyncExternalStore)(Qe,Q,Q)}function Qe(e){return q.add(e),()=>q.delete(e)}function $(e){return e.capabilities?.nativeClientRequired===!0}function $e(e,t,n,r,i){return de(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 et(e){let n=e?.cache??be(),i=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:i,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&&!$(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:pe({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 n.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 r=await n.list({hubOrigin:m,accountId:o});if(y||e!==b)return;let i=new Set(a.nodes.filter(e=>e.revokedAt===null&&!$(e)).map(e=>e.environmentId));for(let e of r){if(!i.has(e.namespace.environmentId)){await n.purgeEnvironment(e.namespace).catch(()=>void 0);continue}h.set(e.namespace.environmentId,e.snapshot),t.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=$e(a.nodes,u,p,a.sessionStatus===`delivery-unknown`,i()),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),t.getState().removeEnvironmentState(e),await n.purgeEnvironment({hubOrigin:m,accountId:o,environmentId:e}).catch(()=>void 0));y||e!==b||C(v)},T=()=>{v!==null&&c(v),v=a(()=>{if(v=null,y||!_)return;let e=K.machines;for(let t of e){if(!t.canReadMetadata)continue;let e=p(t.environmentId,i(),t.deliveryUnknown);e&&(h.set(t.environmentId,e),n.replace({namespace:{hubOrigin:m,accountId:_,environmentId:t.environmentId},snapshot:e,payloadBytes:f(e),updatedAt:i()}).catch(()=>void 0))}C(e)},100)},E=s.subscribe(()=>void w()),D=t.subscribe(T),O=S.subscribe(()=>C(K.machines)),k=De(rt);return S.reconcile(),w(),()=>{y=!0,b+=1,v!==null&&c(v),E(),D(),O(),k(),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 tt(e){return J?.setBackgrounded(e)??Promise.resolve()}function nt(){return J!==null}function rt(e){return s.getState().nodes.find(t=>t.environmentId===e&&t.revokedAt===null&&!$(t))?.id??null}export{b as C,y as S,Me as _,Q as a,Ne as b,Ze as c,Ge as d,Ke as f,Ie as g,Le as h,X as i,Xe as l,Be as m,$ as n,tt as o,Re as p,rt as r,et as s,nt as t,qe as u,Fe as v,S as w,E as x,ze as y};
@@ -0,0 +1 @@
1
+ import{n as e}from"./rolldown-runtime-hePW80VL.js";import{n as t,t as n}from"./pairingUrl-Dn1e2CVw.js";var r=`https://app.ryco.space`,i=e({buildHostedPairingUrl:()=>d,hasHostedPairingRequest:()=>u,isHostedStaticApp:()=>c,readHostedPairingRequest:()=>l});function a(){return r}function o(){return``}function s(e){try{return new URL(e).origin}catch{return null}}function c(e=new URL(window.location.href)){if(o())return!1;let t=s(a());return t!==null&&e.origin===t}function l(e=new URL(window.location.href)){let n=e.searchParams.get(`host`)?.trim()??``,r=t(e)?.trim()??``,i=e.searchParams.get(`label`)?.trim()??``;return!n||!r?null:{host:n,token:r,label:i}}function u(e=new URL(window.location.href)){return l(e)!==null}function d(e){return n({hostedAppOrigin:a(),...e})}export{l as i,i as n,c as r,d as t};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";import{t as n}from"./compiler-runtime-C4g8XhC5.js";import{_ as r,b as i,g as a}from"./hostedConnectionCoordinator-BkxMXc2s.js";var o=n(),s=e(t(),1),c=Object.freeze({"":`overview`,security:`security`,appearance:`appearance`}),l=Object.freeze({"sign-in":`/sign-in`,"sign-in-password":`/sign-in/password`,"sign-in-recovery-code":`/sign-in/recovery-code`,"sign-up":`/sign-up`,"sign-up-verify":`/public-signup/verify`,"reset-password":`/password-reset`,invitation:`/invitation`,setup:`/setup`,"email-verification":`/email-verification`,nodes:`/nodes`,"nodes-enroll":`/nodes/enroll`}),u=Object.freeze([`sign-in`,`sign-up`,`public-signup`,`password-reset`,`invitation`,`setup`,`email-verification`,`nodes`,`account`]);function d(e){return e.length>1&&e.endsWith(`/`)?e.slice(0,-1):e===``?`/`:e}function f(e){let t=d(e);if(t.startsWith(`/account`))return{kind:`account`,section:c[t.slice(8).replace(/^\//,``)]??`overview`};for(let[e,n]of Object.entries(l))if(t===n)return{kind:e};return null}function p(e){return e.kind===`account`?e.section===`overview`?`/account`:`/account/${e.section}`:l[e.kind]}function m(e){switch(e.kind){case`sign-in`:return`Sign in`;case`sign-in-password`:return`Sign in with a password`;case`sign-in-recovery-code`:return`Use a recovery code`;case`sign-up`:return`Create your account`;case`sign-up-verify`:return`Verify your email`;case`reset-password`:return`Reset your password`;case`invitation`:return`Redeem your invitation`;case`setup`:return`Claim this Hub`;case`email-verification`:return`Email verification`;case`nodes`:return`Your nodes`;case`nodes-enroll`:return`Enroll a node`;case`account`:return e.section===`overview`?`Account`:e.section===`security`?`Security`:`Appearance`}}var h=typeof window>`u`?`/`:d(window.location.pathname),g=new Set;function _(){for(let e of Array.from(g))e()}function v(e){let t=d(e);t!==h&&(h=t,_())}var y=!1;function b(){y||(y=!0,i(()=>{v(r().logicalPathname)}))}function x(){return a()===null?typeof window>`u`?h:d(window.location.pathname):h}var S=!1;function C(){S||typeof window>`u`||(S=!0,window.addEventListener(`popstate`,()=>{a()===null&&_()}))}function w(e){return b(),C(),g.add(e),()=>{g.delete(e)}}function T(e,t){E(p(e),t)}function E(e,t){let n=d(e),r=a();if(r){t?.replace===!0?r.replace(n):r.push(n),v(n);return}typeof window<`u`&&(t?.replace===!0?window.history.replaceState(window.history.state,``,n):window.history.pushState(window.history.state,``,n)),h=n,_()}function D(){let e=(0,o.c)(2),t=(0,s.useSyncExternalStore)(w,x),n;return e[0]===t?n=e[1]:(n=f(t),e[0]=t,e[1]=n),n}export{E as a,T as i,p as n,D as o,m as r,u as t};
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./react-CwJFpaho.js";import{t as n}from"./compiler-runtime-C4g8XhC5.js";import{_ as r,b as i,g as a}from"./hostedConnectionCoordinator-BuRWCvUG.js";var o=n(),s=e(t(),1),c=Object.freeze({"":`overview`,security:`security`,appearance:`appearance`}),l=Object.freeze({"sign-in":`/sign-in`,"sign-in-password":`/sign-in/password`,"sign-in-recovery-code":`/sign-in/recovery-code`,"sign-up":`/sign-up`,"sign-up-verify":`/public-signup/verify`,"reset-password":`/password-reset`,invitation:`/invitation`,setup:`/setup`,"email-verification":`/email-verification`,nodes:`/nodes`,"nodes-enroll":`/nodes/enroll`}),u=Object.freeze([`sign-in`,`sign-up`,`public-signup`,`password-reset`,`invitation`,`setup`,`email-verification`,`nodes`,`account`]);function d(e){return e.length>1&&e.endsWith(`/`)?e.slice(0,-1):e===``?`/`:e}function f(e){let t=d(e);if(t.startsWith(`/account`))return{kind:`account`,section:c[t.slice(8).replace(/^\//,``)]??`overview`};for(let[e,n]of Object.entries(l))if(t===n)return{kind:e};return null}function p(e){return e.kind===`account`?e.section===`overview`?`/account`:`/account/${e.section}`:l[e.kind]}function m(e){switch(e.kind){case`sign-in`:return`Sign in`;case`sign-in-password`:return`Sign in with a password`;case`sign-in-recovery-code`:return`Use a recovery code`;case`sign-up`:return`Create your account`;case`sign-up-verify`:return`Verify your email`;case`reset-password`:return`Reset your password`;case`invitation`:return`Redeem your invitation`;case`setup`:return`Claim this Hub`;case`email-verification`:return`Email verification`;case`nodes`:return`Your nodes`;case`nodes-enroll`:return`Enroll a node`;case`account`:return e.section===`overview`?`Account`:e.section===`security`?`Security`:`Appearance`}}var h=typeof window>`u`?`/`:d(window.location.pathname),g=new Set;function _(){for(let e of Array.from(g))e()}function v(e){let t=d(e);t!==h&&(h=t,_())}var y=!1;function b(){y||(y=!0,i(()=>{v(r().logicalPathname)}))}function x(){return a()===null?typeof window>`u`?h:d(window.location.pathname):h}var S=!1;function C(){S||typeof window>`u`||(S=!0,window.addEventListener(`popstate`,()=>{a()===null&&_()}))}function w(e){return b(),C(),g.add(e),()=>{g.delete(e)}}function T(e,t){E(p(e),t)}function E(e,t){let n=d(e),r=a();if(r){t?.replace===!0?r.replace(n):r.push(n),v(n);return}typeof window<`u`&&(t?.replace===!0?window.history.replaceState(window.history.state,``,n):window.history.pushState(window.history.state,``,n)),h=n,_()}function D(){let e=(0,o.c)(2),t=(0,s.useSyncExternalStore)(w,x),n;return e[0]===t?n=e[1]:(n=f(t),e[0]=t,e[1]=n),n}export{E as a,T as i,p as n,D as o,m as r,u as t};
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/main-BqSANuAs.css"])))=>i.map(i=>d[i]);
2
- var e=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),t=function(e){return`/`+e},n={},r=function(r,i,a){let o=Promise.resolve();if(i&&i.length>0){let r=document.getElementsByTagName(`link`),s=document.querySelector(`meta[property=csp-nonce]`),c=s?.nonce||s?.getAttribute(`nonce`);function l(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function u(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}o=l(i.map(i=>{if(i=t(i,a),i=u(i),i in n)return;n[i]=!0;let o=i.endsWith(`.css`);for(let e=r.length-1;e>=0;e--){let t=r[e];if(t.href===i&&(!o||t.rel===`stylesheet`))return}let s=document.createElement(`link`);if(s.rel=o?`stylesheet`:e,o||(s.as=`script`),s.crossOrigin=``,s.href=i,c&&s.setAttribute(`nonce`,c),document.head.appendChild(s),o)return new Promise((e,t)=>{s.addEventListener(`load`,e),s.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${i}`)))})}))}function s(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return o.then(e=>{for(let t of e||[])t.status===`rejected`&&s(t.reason);return r().catch(s)})},i=e=>{let t=document.createElement(`link`);for(let[n,r]of Object.entries(e))t.setAttribute(n,r);document.head.append(t)};window.addEventListener(`load`,()=>{i({rel:`icon`,type:`image/png`,href:`/favicon-96x96.png`,sizes:`96x96`}),i({rel:`shortcut icon`,href:`/favicon.ico`}),i({rel:`apple-touch-icon`,sizes:`180x180`,href:`/apple-touch-icon.png`})},{once:!0}),performance.mark(`ryco:startup:web-entry.import-start`),r(()=>import(`./main-DsnAjTqg.js`).then(e=>e.t),__vite__mapDeps([0])).finally(()=>{performance.mark(`ryco:startup:web-entry.import-end`)});export{r as t};
2
+ var e=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),t=function(e){return`/`+e},n={},r=function(r,i,a){let o=Promise.resolve();if(i&&i.length>0){let r=document.getElementsByTagName(`link`),s=document.querySelector(`meta[property=csp-nonce]`),c=s?.nonce||s?.getAttribute(`nonce`);function l(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function u(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}o=l(i.map(i=>{if(i=t(i,a),i=u(i),i in n)return;n[i]=!0;let o=i.endsWith(`.css`);for(let e=r.length-1;e>=0;e--){let t=r[e];if(t.href===i&&(!o||t.rel===`stylesheet`))return}let s=document.createElement(`link`);if(s.rel=o?`stylesheet`:e,o||(s.as=`script`),s.crossOrigin=``,s.href=i,c&&s.setAttribute(`nonce`,c),document.head.appendChild(s),o)return new Promise((e,t)=>{s.addEventListener(`load`,e),s.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${i}`)))})}))}function s(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return o.then(e=>{for(let t of e||[])t.status===`rejected`&&s(t.reason);return r().catch(s)})},i=e=>{let t=document.createElement(`link`);for(let[n,r]of Object.entries(e))t.setAttribute(n,r);document.head.append(t)};window.addEventListener(`load`,()=>{i({rel:`icon`,type:`image/png`,href:`/favicon-96x96.png`,sizes:`96x96`}),i({rel:`shortcut icon`,href:`/favicon.ico`}),i({rel:`apple-touch-icon`,sizes:`180x180`,href:`/apple-touch-icon.png`})},{once:!0}),performance.mark(`ryco:startup:web-entry.import-start`),r(()=>import(`./main-DAbEANjY.js`).then(e=>e.t),__vite__mapDeps([0])).finally(()=>{performance.mark(`ryco:startup:web-entry.import-end`)});export{r as t};
@@ -1 +1 @@
1
- import"./chunk-FOHPRMQF-CoA4358r.js";import{w as e}from"./mermaid-parser.core-Dhd66igk.js";export{e as createInfoServices};
1
+ import"./chunk-FOHPRMQF-CoA4358r.js";import{w as e}from"./mermaid-parser.core-B6Q-3x_q.js";export{e as createInfoServices};
@@ -1,2 +1,2 @@
1
- import{n as e}from"./src-BISxbUej.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{c as n}from"./chunk-I66GZJ75-DAfCveu2.js";import{a as r}from"./mermaidEngine-3NZnIFOn.js";import{n as i}from"./mermaid-parser.core-Dhd66igk.js";var a={parse:t(async t=>{let n=await i(`info`,t);e.debug(n)},`parse`)},o={version:`11.16.1`},s={parser:a,db:{getVersion:t(()=>o.version,`getVersion`)},renderer:{draw:t((t,i,a)=>{e.debug(`rendering info diagram
1
+ import{n as e}from"./src-BISxbUej.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{c as n}from"./chunk-I66GZJ75-BO6p4Aqg.js";import{a as r}from"./mermaidEngine-DksLcesB.js";import{n as i}from"./mermaid-parser.core-B6Q-3x_q.js";var a={parse:t(async t=>{let n=await i(`info`,t);e.debug(n)},`parse`)},o={version:`11.16.1`},s={parser:a,db:{getVersion:t(()=>o.version,`getVersion`)},renderer:{draw:t((t,i,a)=>{e.debug(`rendering info diagram
2
2
  `+t);let o=r(i);n(o,100,400,!0),o.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${a}`)},`draw`)}};export{s as diagram};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{$c as t,$l as n,Ol as r,Pl as i,Ss as a,Xs as o,ei as s,ml as c,os as l,ul as u}from"./runtime-DpHhg0dl.js";import{t as d}from"./react-CwJFpaho.js";import{t as f}from"./compiler-runtime-C4g8XhC5.js";import{t as p}from"./useValueChanged-DUWoN5BG.js";import{t as m}from"./useControlled-CgAAWIy9.js";import{i as h,n as g,r as _,s as v,t as y,u as b}from"./useLabelableId-CTlGVpp_.js";var x=e(d(),1),S=x.forwardRef(function(e,n){let{render:s,className:d,id:f,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:f}),[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=r(()=>R.inputRef.current?.value);h(R.inputRef,K,X,Z,!H,S),i(()=>{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),$=u();return i(()=>{D&&Q.current===t(c(Q.current))&&F(!0)},[D,F]),o(`input`,e,{ref:[n,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=l(a,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=f(),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,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],c=t[6]):({className:n,size:a,unstyled:o,nativeInput:c,style:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=c);let l=a===void 0?`default`:a,u=o!==void 0&&o,d=c!==void 0&&c,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=s(`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=s(!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
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{$c as t,$l as n,Ol as r,Pl as i,Ss as a,Xs as o,ei as s,ml as c,os as l,ul as u}from"./runtime-BwHA1GUS.js";import{t as d}from"./react-CwJFpaho.js";import{t as f}from"./compiler-runtime-C4g8XhC5.js";import{t as p}from"./useValueChanged-BkTbyZdO.js";import{t as m}from"./useControlled-CgAAWIy9.js";import{i as h,n as g,r as _,s as v,t as y,u as b}from"./useLabelableId-DQbY2GG1.js";var x=e(d(),1),S=x.forwardRef(function(e,n){let{render:s,className:d,id:f,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:f}),[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=r(()=>R.inputRef.current?.value);h(R.inputRef,K,X,Z,!H,S),i(()=>{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),$=u();return i(()=>{D&&Q.current===t(c(Q.current))&&F(!0)},[D,F]),o(`input`,e,{ref:[n,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=l(a,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=f(),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,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],c=t[6]):({className:n,size:a,unstyled:o,nativeInput:c,style:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=c);let l=a===void 0?`default`:a,u=o!==void 0&&o,d=c!==void 0&&c,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=s(`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=s(!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,4 +1,4 @@
1
- import{p as e}from"./chunk-NSK5VX7P-BgrjQWAz.js";import"./src-BISxbUej.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as n,K as r,U as i,a,c as o,s,v as c,w as l,x as u,y as d}from"./chunk-I66GZJ75-DAfCveu2.js";import{t as f}from"./rough.esm-Dy-Kn_BL.js";import{a as p}from"./mermaidEngine-3NZnIFOn.js";var m=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,14],i=[1,12],a=[1,13],o=[6,7,8],s=[1,20],c=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`ISHIKAWA`,11:`EOF`,13:`SPACELIST`,14:`TEXT`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(a[s-1].length,a[s].trim());break;case 16:r.addNode(0,a[s].trim())}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:a},e(o,[2,3]),{1:[2,2]},e(o,[2,4]),e(o,[2,5]),{1:[2,6],6:r,12:15,13:i,14:a},{6:r,9:16,12:11,13:i,14:a},{6:s,7:c,10:17,11:l},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:s,7:c,10:22,11:l},{1:[2,7],6:r,12:15,13:i,14:a},e(d,[2,14],{7:f,11:p}),e(m,[2,8]),e(m,[2,9]),e(m,[2,10]),e(u,[2,15]),e(d,[2,13],{7:f,11:p}),e(m,[2,11]),e(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{p as e}from"./chunk-NSK5VX7P-DuRkdn5k.js";import"./src-BISxbUej.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as n,K as r,U as i,a,c as o,s,v as c,w as l,x as u,y as d}from"./chunk-I66GZJ75-BO6p4Aqg.js";import{t as f}from"./rough.esm-Dy-Kn_BL.js";import{a as p}from"./mermaidEngine-DksLcesB.js";var m=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,14],i=[1,12],a=[1,13],o=[6,7,8],s=[1,20],c=[1,18],l=[1,19],u=[6,7,11],d=[1,6,13,14],f=[1,23],p=[1,24],m=[1,6,7,11,13,14],h={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`ISHIKAWA`,11:`EOF`,13:`SPACELIST`,14:`TEXT`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 15:r.addNode(a[s-1].length,a[s].trim());break;case 16:r.addNode(0,a[s].trim())}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:a},e(o,[2,3]),{1:[2,2]},e(o,[2,4]),e(o,[2,5]),{1:[2,6],6:r,12:15,13:i,14:a},{6:r,9:16,12:11,13:i,14:a},{6:s,7:c,10:17,11:l},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:s,7:c,10:22,11:l},{1:[2,7],6:r,12:15,13:i,14:a},e(d,[2,14],{7:f,11:p}),e(m,[2,8]),e(m,[2,9]),e(m,[2,10]),e(u,[2,15]),e(d,[2,13],{7:f,11:p}),e(m,[2,11]),e(m,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};h.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{t as e}from"./arc-BbkdAXW7.js";import{t}from"./src-BISxbUej.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as r,K as i,U as a,a as o,c as s,v as c,w as l,x as u,y as d}from"./chunk-I66GZJ75-DAfCveu2.js";import{t as f}from"./chunk-5VM5RSS4-ZNzvKenW.js";import{a as p,n as m,o as h,s as g}from"./chunk-2GRJ4B5K-CFM4Ac_N.js";var _=(function(){var e=n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,8,10,11,12,14,16,17,18],r=[1,9],i=[1,10],a=[1,11],o=[1,12],s=[1,13],c=[1,14],l={trace:n(function(){},`trace`),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:`error`,4:`journey`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,11:`title`,12:`acc_title`,13:`acc_title_value`,14:`acc_descr`,15:`acc_descr_value`,16:`acc_descr_multiline_value`,17:`section`,18:`taskName`,19:`taskData`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,14:a,16:o,17:s,18:c},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:r,12:i,14:a,16:o,17:s,18:c},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:n(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:n(function(e){var t=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}n(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=t.symbols_[e]||e),e}n(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{t as e}from"./arc-BbkdAXW7.js";import{t}from"./src-BISxbUej.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{H as r,K as i,U as a,a as o,c as s,v as c,w as l,x as u,y as d}from"./chunk-I66GZJ75-BO6p4Aqg.js";import{t as f}from"./chunk-5VM5RSS4-ZNzvKenW.js";import{a as p,n as m,o as h,s as g}from"./chunk-2GRJ4B5K-DVKozJ41.js";var _=(function(){var e=n(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[6,8,10,11,12,14,16,17,18],r=[1,9],i=[1,10],a=[1,11],o=[1,12],s=[1,13],c=[1,14],l={trace:n(function(){},`trace`),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:`error`,4:`journey`,6:`EOF`,8:`SPACE`,10:`NEWLINE`,11:`title`,12:`acc_title`,13:`acc_title_value`,14:`acc_descr`,15:`acc_descr_value`,16:`acc_descr_multiline_value`,17:`section`,18:`taskName`,19:`taskData`},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:n(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=[];break;case 3:a[s-1].push(a[s]),this.$=a[s-1];break;case 4:case 5:this.$=a[s];break;case 6:case 7:this.$=[];break;case 8:r.setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 9:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 10:case 11:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 12:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 13:r.addTask(a[s-1],a[s]),this.$=`task`}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,14:a,16:o,17:s,18:c},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:15,11:r,12:i,14:a,16:o,17:s,18:c},e(t,[2,5]),e(t,[2,6]),e(t,[2,8]),{13:[1,16]},{15:[1,17]},e(t,[2,11]),e(t,[2,12]),{19:[1,18]},e(t,[2,4]),e(t,[2,9]),e(t,[2,10]),e(t,[2,13])],defaultActions:{},parseError:n(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:n(function(e){var t=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}n(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=t.symbols_[e]||e),e}n(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};l.lexer=(function(){return{EOF:1,parseError:n(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:n(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:n(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:n(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:n(function(){return this._more=!0,this},`more`),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:n(function(e){this.unput(this.match.slice(e))},`less`),pastInput:n(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:n(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:n(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import"./chunk-NSK5VX7P-BgrjQWAz.js";import{n as e}from"./src-BISxbUej.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{J as n,et as r,f as i,rt as a,tt as o,x as s,z as c}from"./chunk-I66GZJ75-DAfCveu2.js";import"./chunk-W5SLKNZC-0-ctjkBJ.js";import"./chunk-UBXNYLIW-BVySE3ty.js";import"./chunk-4I5QYGJK-a9tLNjnj.js";import"./chunk-WRU74C26-AGGo_1S7.js";import{a as l,c as u,i as d}from"./chunk-QR6OTTB3-NTX__XXO.js";import{a as f,i as p,r as m}from"./mermaidEngine-3NZnIFOn.js";import{t as h}from"./chunk-5VM5RSS4-ZNzvKenW.js";var g=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:r,9:22,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:u,7:d,10:23,11:f},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:c}),e(p,[2,19]),e(p,[2,21],{15:30,24:m}),e(p,[2,22]),e(p,[2,23]),e(h,[2,25]),e(h,[2,26]),e(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},e(g,[2,14],{7:_,11:v}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,16],{15:37,24:m}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:b}),e(h,[2,31]),{21:[1,39]},{22:[1,40]},e(g,[2,13],{7:_,11:v}),e(y,[2,11]),e(y,[2,12]),e(p,[2,15],{24:b}),e(h,[2,30]),{22:[1,41]},e(h,[2,27]),e(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import"./chunk-NSK5VX7P-DuRkdn5k.js";import{n as e}from"./src-BISxbUej.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{J as n,et as r,f as i,rt as a,tt as o,x as s,z as c}from"./chunk-I66GZJ75-BO6p4Aqg.js";import"./chunk-W5SLKNZC-AGjFjjoJ.js";import"./chunk-UBXNYLIW-D-z8URgN.js";import"./chunk-4I5QYGJK-BRoMwPkW.js";import"./chunk-WRU74C26-BgY3UiXB.js";import{a as l,c as u,i as d}from"./chunk-QR6OTTB3-Duz4Y_uE.js";import{a as f,i as p,r as m}from"./mermaidEngine-DksLcesB.js";import{t as h}from"./chunk-5VM5RSS4-ZNzvKenW.js";var g=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,31],h=[6,7,11,24],g=[1,6,13,16,17,20,23],_=[1,35],v=[1,36],y=[1,6,7,11,13,16,17,20,23],b=[1,38],x={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`KANBAN`,11:`EOF`,13:`SPACELIST`,16:`ICON`,17:`CLASS`,20:`NODE_DSTART`,21:`NODE_DESCR`,22:`NODE_DEND`,23:`NODE_ID`,24:`SHAPE_DATA`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s-1].id),r.addNode(a[s-2].length,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 16:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 17:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 18:case 23:r.decorateNode({class:a[s]});break;case 19:r.getLogger().trace(`SPACELIST`);break;case 20:r.getLogger().trace(`Node: `,a[s-1].id),r.addNode(0,a[s-1].id,a[s-1].descr,a[s-1].type,a[s]);break;case 21:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 22:r.decorateNode({icon:a[s]});break;case 27:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 28:this.$={id:a[s],descr:a[s],type:0};break;case 29:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 30:this.$=a[s-1]+a[s];break;case 31:this.$=a[s]}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:r,9:22,12:11,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},{6:u,7:d,10:23,11:f},e(p,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:s,23:c}),e(p,[2,19]),e(p,[2,21],{15:30,24:m}),e(p,[2,22]),e(p,[2,23]),e(h,[2,25]),e(h,[2,26]),e(h,[2,28],{20:[1,32]}),{21:[1,33]},{6:u,7:d,10:34,11:f},{1:[2,7],6:r,12:21,13:i,14:14,16:a,17:o,18:17,19:18,20:s,23:c},e(g,[2,14],{7:_,11:v}),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(p,[2,16],{15:37,24:m}),e(p,[2,17]),e(p,[2,18]),e(p,[2,20],{24:b}),e(h,[2,31]),{21:[1,39]},{22:[1,40]},e(g,[2,13],{7:_,11:v}),e(y,[2,11]),e(y,[2,12]),e(p,[2,15],{24:b}),e(h,[2,30]),{22:[1,41]},e(h,[2,27]),e(h,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};x.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{$l as t,$s as n,Bs as r,Dl as i,El as a,Fl as o,Gc as s,Go as c,Ks as ee,Lc as te,Ll as l,Nl as u,Ol as d,Pl as f,Rc as ne,Rl as p,Sl as m,Ss as h,Tc as g,Wo as _,Xs as re,Zs as v,_s as y,bs as ie,cs as ae,ei as b,el as x,fc as S,gc as C,gs as oe,ho as w,il as T,js as se,ls as E,ml as ce,nc as le,ol as ue,os as D,ps as O,ss as de,tc as fe,tl as pe,ts as k,ul as me,us as A,vl as he,vs as ge,ws as _e,xs as ve,ys as ye,zl as j}from"./runtime-DpHhg0dl.js";import{t as be}from"./react-CwJFpaho.js";import{t as xe}from"./compiler-runtime-C4g8XhC5.js";import{a as Se,v as Ce,x as we}from"./NullStore-iCZTvdl5.js";import{A as Te,C as Ee,D as De,E as Oe,F as ke,N as Ae,O as je,P as Me,S as Ne,T as Pe,_ as Fe,b as Ie,d as Le,g as Re,h as ze,j as Be,k as Ve,m as He,p as M,v as Ue,w as We,y as Ge}from"./badge-DqZmJa1g.js";import{t as Ke}from"./useBaseUiId-B5nK6G4h.js";import{t as qe}from"./useValueChanged-DUWoN5BG.js";import{t as Je}from"./useControlled-CgAAWIy9.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-CTlGVpp_.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=w(it),N=e(be(),1);function ot(e,t,n,r,i,a,o,s,c,ee=2){let te=S(n.current,{event:e,orientation:r,loopFocus:i,rtl:a,cols:ee,disabledIndices:o,minIndex:s,maxIndex:c,prevIndex:t>c?s:t,stopEvent:!0});return C(n.current,te)?void 0:te}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(u(22));return e}function ft(){let e=N.useContext(ct);if(!e)throw Error(u(23));return e}function pt(){let e=N.useContext(lt);if(!e)throw Error(u(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?Fe(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=>Ne(t,e,n)):Ne(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?``:Ge(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=Ge(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=Ge(e,n);return i.compare(r.slice(0,t.length),t)===0},endsWith(e,t,n){if(!t)return!0;let r=Ge(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===Ee)return r;for(let[r,i]of e)if(Ne(r,t,n))return i}var F=t();function Ot(e){let{id:t,onOpenChangeComplete:a,defaultSelectedValue:s=null,selectedValue:te,onSelectedValueChange:ne,defaultInputValue:g,inputValue:re,open:ae,defaultOpen:b=!1,selectionMode:S,onItemHighlighted:C,name:w,form:T,disabled:se=!1,readOnly:E=!1,required:ce=!1,inputRef:ue,grid:O=!1,items:me,filteredItems:A,filter:ve,filterQuery:be,openOnInputClick:xe=!0,autoHighlight:Ae=!1,keepHighlight:je=!1,highlightItemOnHover:Fe=!0,loopFocus:Le=!0,itemToStringLabel:ze,itemToStringValue:He,isItemEqualToValue:M=Ee,virtualized:Ke=!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=_(),kt=nt({id:t}),At=Ct({locale:at}),I=Array.isArray(me)?null:me;if(I&&typeof I.label!=`function`)throw Error(u(100));let L=I?I.data:me,R=I?.value,jt=R?void 0:L,Mt=N.useMemo(()=>{if(!A||!R)return;let e=Re(A),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)}}},[A,R]),Nt=N.useMemo(()=>I?e=>I.label(e,M,e=>{let t=Mt?.findItem(e,M);return t==null?Ge(e,ze):I.itemLabel(t)}):ze,[I,ze,Mt,M]),Pt=N.useMemo(()=>I?Object.assign(e=>I.itemLabel(e),{selected:e=>Ge(e,Nt)}):ze,[I,Nt,ze]);function Ft(e){return Ge(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||se,en=_t??w,U=S===`multiple`,tn=S===`single`,nn=re!==void 0||g!==void 0,W=L!==void 0,rn=A!==void 0,G;G=Ae===`always`?`always`:Ae?`input-change`:!1;let[K,an]=Je({controlled:te,default:U?s??l:s,name:`Combobox`,state:`selectedValue`}),on=N.useMemo(()=>ve===null?()=>!0:ve===void 0?vt(At,Pt):ve,[ve,At,Pt]),sn=o(()=>nn?g??``:tn?Ft(K):``).current,[q,cn]=Je({controlled:re,default:sn,name:`Combobox`,state:`inputValue`}),[J,ln]=Je({controlled:ae,default:b,name:`Combobox`,state:`open`}),un=Ue(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?Re(L):l,[L]),gn=N.useMemo(()=>{if(A&&!mn)return A;if(!L)return l;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},[A,mn,L,un,pn,$e,on,Pt,hn]),X=N.useMemo(()=>{if(Mt&&gn===A)return Mt.values;let e=Re(gn);return R?e.map(e=>R(e)):e},[gn,A,Mt,R]),Z=o(()=>{let e=null;return Ye&&J&&W&&S!==`none`&&(e=Pe(X,K,M,U)),new i({id:kt,labelId:void 0,selectedValue:K,open:J,items:jt,selectionMode:S,name:en,form:T,disabled:H,readOnly:E,required:ce,grid:O,virtualized:Ke,openOnInputClick:xe,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:p,positionerElement:null,listElement:null,popupId:void 0,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:S===`none`},{onOpenChangeComplete:j,setOpen:j,setInputValue:j,setSelectedValue:j,setIndices:j,handleSelection:j,forceMount:j,requestSubmit:j,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=S===`none`?q:K,vn=N.useMemo(()=>S===`none`?_n:Array.isArray(K)?K.map(e=>Ie(e,He)):Ie(K,He),[_n,He,S,K]),yn=d(C),bn=d(a),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=k(Tn),{mounted:jn,setMounted:Mn,transitionStatus:Nn}=Ce(J),{openMethod:Pn,triggerProps:Fn}=Be(J),In=d(()=>vn);Ze($?An:B,kt,_n,In,!H,w);let Ln=d(()=>{L?Vt.current=X.map(Ft):Z.set(`forceMounted`,!0)}),Rn=d((e,t,n)=>{if(t===-1){if(Zt.current===Et)return;Zt.current=Et}else Zt.current={value:e,index:t};yn(e,de(n,void 0,{index:t}))}),zn=d(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=d((t,n)=>{if(e.onInputValueChange?.(t,n),!n.isCanceled){if(qt.current=n.reason===y,n.reason===`input-change`){J&&z!==null&&Rt(null);let e=n.event,i=e.inputType;if(e.type===`compositionend`||i!=null&&i!==``&&i!==`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 he(n.firstElementChild??n)){if(!m(t)||(e?!x(e,t):t.getAttribute(`role`)===`dialog`))break;if(r(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=d(e=>{let t=!e&&$&&!Q&&q!==``&&(String(q).trim()===z||q===dn);!e&&(t||q===``||kn)&&Lt(!1),Rt(null),t&&Bn(``,D(y))}),Hn=d((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===oe),!t&&It&&(tn?(Q||Rt(Y),Y===``&&Lt(!1)):U&&(Q||Rt(Y),$&&zn({activeIndex:null}),(!$||Q)&&Bn(``,D(y,n.event,void 0,{isItemPress:n.reason===ye})))),ln(t),!t&&$&&(n.reason===`focus-out`||n.reason===`outside-press`)&&(bt(!0),xt(!1),St===`onBlur`)))){let e=S===`none`?q:K;wt.commit(e)}}),Un=d((e,t)=>{ne?.(e,t),!t.isCanceled&&(an(e),(S===`none`&&Ht.current&&Xe||tn&&!Z.state.inputInsidePopup)&&Bn(Ft(e),D(t.reason,t.event)))}),Wn=d((e,t)=>{let n=pe(e),r=Xt.current??e;Xt.current=null;let i=D(ye,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?De(e,t,M):[...e,t];if(Un(r,i),i.isCanceled||!(B.current&&B.current.value.trim()!==``))return;if(Z.state.inputInsidePopup){Bn(``,D(y,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=d(()=>{let e=wt.inputRef.current?.form??Z.state.inputElement?.form;e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}),Kn=d(()=>{if(Mn(!1),bn?.(!1),Lt(!1),Rt(null),zn(S===`none`?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),U&&B.current&&B.current.value!==``&&!qt.current&&Bn(``,D(y)),tn){if(Z.state.inputInsidePopup)B.current&&B.current.value!==``&&Bn(``,D(y));else{let e=Ft(K);B.current&&B.current.value!==e&&Bn(e,D(e===``?y:h))}}}),qn=N.useMemo(()=>Q&&Cn?{current:Cn.closest(`[role="dialog"]`)}:Ht,[Q,Cn]);ee({enabled:!e.actionsRef,open:J,ref:qn,onComplete(){J||Kn()}}),N.useImperativeHandle(e.actionsRef,()=>({unmount:Kn}),[Kn]),f(function(){let e=zt.current!==null&&z===null;if(zt.current=z,J&&(!e||!W)||(J||($t.current=null),S===`none`))return;let t=W?X:V.current;zn({selectedIndex:Pe(t,K,M,U)})},[J,z,K,S,U,W,X,M,zn]),f(()=>{L&&(V.current=X,Bt.current.length=X.length)},[L,X]),f(()=>{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=We(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,h);return}if(n>=t.length){Rn(void 0,-1,h),Z.set(`activeIndex`,null);return}let r=t[n],i=Zt.current.value,a=i!==Tt&&Ne(r,i,Z.state.isItemEqualToValue);(Zt.current.index!==n||!a)&&Rn(r,n,h)},[xn,G,Rn,rn,W,X,Q,J,Z,q]),f(()=>{if(S===`none`){ht(String(q)!==``);return}ht(U?Array.isArray(K)&&K.length>0:K!=null)},[ht,S,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,D(h)))}function Qn(){S!==`none`&&(ft(en),pt(Oe(K,mt.initialValue,M)),wt.change(K),tn&&!nn&&!$&&Zn())}function $n(){tn&&!nn&&!$&&!It&&Zn()}function er(){S===`none`&&(ft(en),pt(q!==mt.initialValue),wt.change(q))}qe(Y,Jn),qe(J,Yn),qe(K,Qn),qe(dn,$n),qe(L,$n),qe(q,er);let tr=c({open:Q?!0:J,onOpenChange:Hn,elements:{reference:$?Tn:En,floating:Cn}}),nr=O?`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`]=E?`none`:rt),{reference:r,floating:{role:`presentation`}}},[En,rr,ir,nr,wn?.id,rt,E]),or=ke(tr,{enabled:!H&&xe,event:`mousedown-only`,toggle:!1,touchOpenDelay:$?0:100,reason:ge}),sr=we(tr,{enabled:!H&&!Q,outsidePressEvent:{mouse:`sloppy`,touch:`intentional`},bubbles:Q?!0:void 0,outsidePress(e){let t=pe(e);return!x(Tn,t)&&!x(Yt.current,t)&&!x(Jt.current,t)&&!x(Dn,t)}}),cr=Me(tr,{enabled:!H,id:kt,listRef:Bt,activeIndex:xn,selectedIndex:Sn,virtual:!0,loopFocus:Le,allowEscape:Le&&!G,focusItemOnOpen:It||S===`none`&&!G?!1:`auto`,focusItemOnHover:Fe,resetOnPointerLeave:!je,orientation:O?`horizontal`:void 0,rtl:Ot===`rtl`,disabledIndices:l,grid:O?ot:void 0,onNavigate(e,t){(t||J)&&Nn!==`ending`&&zn(t?{activeIndex:e,type:Kt.current?ie:_e}:{activeIndex:e})}}),lr=N.useMemo(()=>v(cr.reference,{onKeyDown(e){O&&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,O,Z]),ur=N.useMemo(()=>v(Se,sr.floating),[sr.floating]),dr=N.useMemo(()=>v(cr.floating,ar.floating),[cr.floating,ar.floating]),fr=N.useMemo(()=>{let e=cr.item;return e?{...e,onFocus:void 0}:p},[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`,a),Te(()=>{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:S,name:en,form:T,disabled:H,readOnly:E,required:ce,grid:O,virtualized:Ke,openOnInputClick:xe,itemToStringLabel:Nt,modal:Qe,autoHighlight:G,isItemEqualToValue:M,submitOnItemClick:P,hasInputValue:nn};f(()=>{Z.update({...pr,inputOwnsFormValue:S===`none`&&(Ye||!Z.state.inputInsidePopup)})},[Z,...Object.values(pr)]);let mr=n(ue,wt.inputRef),hr=N.useMemo(()=>({query:Y,hasItems:W,filteredItems:gn,flatFilteredValues:X}),[Y,W,gn,X]),gr=N.useMemo(()=>Array.isArray(_n)?``:Ie(_n,He),[_n,He]),_r=U&&Array.isArray(K)&&K.length>0,vr=U||S===`none`&&On?void 0:en,yr=N.useMemo(()=>!U||!Array.isArray(K)||!en?null:K.map(e=>{let t=Ie(e,He);return(0,F.jsx)(`input`,{type:`hidden`,form:T,name:en,value:t,disabled:H},t)}),[U,K,T,en,He,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||E)return;let t=e.currentTarget.value,n=t.toLowerCase(),r=D(h,e.nativeEvent),i=()=>V.current.findIndex(e=>Ie(e,He).toLowerCase()===n||Ft(e).toLowerCase()===n);function a(){if(U)return;if(S===`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:T,name:vr,autoComplete:it,disabled:H,required:ce&&!_r,readOnly:E,value:gr,ref:mr,style:vr?le:fe,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={...te,...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:a=!1,id:o,style:s,...c}=e,{state:ee,disabled:te,setTouched:l,setFocused:u,validationMode:f,validation:ne}=tt(),{labelId:p}=Qe(),m=P(),_=m.useState(`selectionMode`),v=m.useState(`disabled`),y=m.useState(`readOnly`),ie=m.useState(`required`),b=m.useState(`positionerElement`),S=m.useState(`listElement`),C=m.useState(`popupId`),oe=m.useState(`triggerProps`),w=m.useState(`inputInsidePopup`),T=m.useState(`id`),E=m.useState(`labelId`),le=m.useState(`open`),ue=m.useState(`selectedValue`),O=m.useState(`activeIndex`),de=m.useState(`selectedIndex`),fe=m.useState(`hasSelectedValue`),k=ft(),A=mt(),he=me(),ge=te||v||a,_e=R(),ye=L(m);nt({id:w?o:void 0});let j=w?o??T:o,be=He(p,E),xe;le&&w?xe=C??_t(T):le&&(xe=S?.id);let Se=N.useRef(``);function Ce(e){Se.current=e.pointerType}let{reference:we}=Ae(k,{enabled:!le&&!y&&!v&&_===`single`,listRef:m.context.labelsRef,activeIndex:O,selectedIndex:de,onMatch(e){let t=m.context.valuesRef.current[e];t!==void 0&&m.context.setSelectedValue(t,D(h))}}),{reference:Te}=ke(k,{enabled:!v,event:`mousedown`}),{buttonRef:Ee,getButtonProps:De}=se({native:i,disabled:ge}),Oe={...ee,readOnly:y,open:le,disabled:ge,popupSide:ye,listEmpty:_e,placeholder:_!==`none`&&!fe},je=d(e=>{m.set(`triggerElement`,e)});return re(`button`,e,{ref:[t,Ee,je],state:Oe,props:[oe,Te,we,{id:j,tabIndex:w?0:-1,role:w?`combobox`:void 0,"aria-expanded":le,"aria-haspopup":w?`dialog`:`listbox`,"aria-controls":xe,"aria-required":w&&ie||void 0,"aria-readonly":w&&y||void 0,"aria-labelledby":be,onPointerDown:Ce,onPointerEnter:Ce,onFocus(){u(!0),!ge&&he.start(0,m.context.forceMount)},onBlur(e){if(!x(b,e.relatedTarget)&&(l(!0),u(!1),f===`onBlur`)){let e=_===`none`?A:ue;ne.commit(e)}},onMouseDown(e){if(ge||(w||k.set(`domReferenceElement`,e.currentTarget),m.context.forceMount(),Se.current!==`touch`&&(m.context.inputRef.current?.focus(),w||e.preventDefault()),le))return;let t=ce(e.currentTarget);function n(e){let t=m.state.triggerElement;if(!t)return;let n=pe(e),r=m.state.positionerElement,i=m.state.listElement;x(t,n)||x(r,n)||x(i,n)||ze(e,t)||m.context.setOpen(!1,D(ae,e))}w&&t.addEventListener(`mouseup`,n,{once:!0})},onKeyDown(e){(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(g(e),m.context.setOpen(!0,D(ve,e.nativeEvent)),m.context.inputRef.current?.focus())}},ne.getValidationProps(ge,c),De],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(u(21));return t}var Rt=N.forwardRef(function(e,t){let r=P(),{buttonRef:i,getButtonProps:a}=se({native:!1}),o=n(t,i);function s(e){r.context.setOpen(!1,D(A,e.nativeEvent,e.currentTarget))}let c=a({onClick:s});return(0,F.jsx)(`span`,{ref:o,...c,"aria-label":`Dismiss`,tabIndex:void 0,style:le})}),zt=N.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,id:a,style:o,...s}=e,{state:c,disabled:ee,setTouched:te,setFocused:l,validationMode:u,validation:f}=tt(),{labelId:ne}=Qe(),p=It(),m=!!z(!0),v=P(),ae=mt(),b=_(),x=v.useState(`required`),S=v.useState(`disabled`),C=v.useState(`readOnly`),w=v.useState(`name`),se=v.useState(`form`),E=v.useState(`selectionMode`),ce=v.useState(`autoHighlight`),le=v.useState(`inputProps`),de=v.useState(`triggerProps`),fe=v.useState(`open`),pe=v.useState(`mounted`),k=v.useState(`selectedValue`),me=v.useState(`id`),A=v.useState(`inline`),he=v.useState(`modal`),ge=!!ce,ve=L(v),ye=ee||S||i,j=R(),be=m||A,xe=!be||he,Se=Ke(a??(be?void 0:me)),Ce=m?Xe:c,[we,Te]=N.useState(null),Ee=N.useRef(!1),De=N.useRef(null),Oe=N.useRef(!1),ke=E===`none`&&!m,Ae=d(e=>{let t=m||v.state.inline;t&&!v.state.hasInputValue&&v.context.setInputValue(``,D(h)),v.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:ke})}),je=m?s:f.getValidationProps(ye,s);function Me(){v.context.setIndices({activeIndex:null,selectedIndex:null,type:v.context.keyboardActiveRef.current?ie:_e})}function Ne(){v.context.keyboardActiveRef.current=!1}let Pe={...Ce,open:fe,disabled:ye,readOnly:C,popupSide:ve,listEmpty:j};function Fe(e){if(!p)return;let t,{highlightedChipIndex:n}=p,r=p.chipsRef.current.length,[i,a]=jt(b);return n===void 0?(e.key===i&&(e.currentTarget.selectionStart??0)===0&&k.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,k.length),Me()),t)}let Ie=re(`input`,e,{state:Pe,ref:[t,v.context.inputRef,Ae],props:[le,de,{value:we??ae,"aria-readonly":C||void 0,"aria-required":x||void 0,"aria-labelledby":ne,disabled:ye,readOnly:C,required:E===`none`?x:void 0,form:se,...ke&&w&&{name:w},id:Se,onFocus(){if(l(!0),!A||!Oe.current)return;Oe.current=!1;let e=De.current;e!=null&&Object.hasOwn(v.context.valuesRef.current,e)&&v.context.setIndices({activeIndex:e})},onBlur(){te(!0),l(!1);let e=v.state.activeIndex;if(A&&e!==null&&ce!==`always`&&(De.current=e,Oe.current=!0,v.context.setIndices({activeIndex:null})),u===`onBlur`){let e=E===`none`?ae:k;f.commit(e)}},onCompositionStart(e){ue||(Ee.current=!0,Te(e.currentTarget.value))},onCompositionEnd(e){Ee.current=!1;let t=e.currentTarget.value;Te(null),v.context.setInputValue(t,D(oe,e.nativeEvent))},onChange(e){let t=e.nativeEvent,n=t.inputType,r=!n||n===`insertReplacementText`,i=Ee.current||!r;function a(e){!C&&!ye&&e&&i&&(v.context.setOpen(!0,D(oe,t)),ge||Me())}if(Ee.current){let n=e.currentTarget.value;Te(n),n===``&&!v.state.openOnInputClick&&!v.state.inputInsidePopup&&v.context.setOpen(!1,D(y,t));let r=n.trim(),i=ge&&r!==``;a(r),fe&&v.state.activeIndex!==null&&!i&&Me();return}let o=D(oe,t);if(v.context.setInputValue(e.currentTarget.value,o),o.isCanceled)return;let s=e.currentTarget.value===``,c=D(y,t);s&&!v.state.inputInsidePopup&&(E===`single`&&v.context.setSelectedValue(null,c),v.state.openOnInputClick||v.context.setOpen(!1,c)),a(e.currentTarget.value.trim()),fe&&v.state.activeIndex!==null&&!ge&&Me()},onKeyDown(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;if(v.context.keyboardActiveRef.current=!0,ye||C){C&&e.key===`Enter`&&fe&&v.state.activeIndex!==null&&g(e);return}let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r=b===`rtl`;if(e.key===`Home`){g(e);let n=T&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if(e.key===`End`){g(e);let i=T&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!pe&&e.key===`Escape`){let t=E===`multiple`&&Array.isArray(k)?k.length===0:k===null,n=D(O,e.nativeEvent),r=E===`multiple`?[]:null;v.context.setInputValue(``,n),v.context.setSelectedValue(r,n),!t&&!v.state.inline&&!n.isPropagationAllowed&&e.stopPropagation();return}if(p&&e.key===`Backspace`&&t.value===``&&p.highlightedChipIndex===void 0&&Array.isArray(k)&&k.length>0){let t=p.chipsRef.current.length,n=t>0?t-1:k.length-1,r=k.filter((e,t)=>t!==n);Me(),v.context.setSelectedValue(r,D(h,e.nativeEvent));return}let i=p?.highlightedChipIndex!==void 0,a=Fe(e);if(p?.setHighlightedChipIndex(a),a===void 0?i&&v.context.inputRef.current?.focus():p?.chipsRef.current[a]?.focus(),e.which!==229&&e.key===`Enter`&&fe){let t=v.state.activeIndex,n=e.nativeEvent;if(t===null){if(A)return;v.context.setOpen(!1,D(h,n));return}g(e),Nt(v,t,n)}},onPointerMove:Ne,onPointerDown:Ne},je],stateAttributesMapping:I}),Le=m?(0,F.jsx)($e.Provider,{value:Ye,children:Ie}):Ie;return(0,F.jsxs)(N.Fragment,{children:[fe&&xe&&(0,F.jsx)(Rt,{ref:v.context.startDismissRef}),Le]})}),Bt=N.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return re(`span`,e,{ref:t,props:[{"aria-hidden":!0,children:`▼`},a]})}),Vt={...s,...ne},Ht=N.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,keepMounted:o=!1,style:s,...c}=e,{disabled:te}=tt(),l=P(),u=l.useState(`selectionMode`),d=l.useState(`disabled`),f=l.useState(`readOnly`),ne=l.useState(`open`),p=l.useState(`selectedValue`),m=l.useState(`hasSelectionChips`),h=mt(),g=!1;g=u===`none`?h!==``:u===`single`?p!=null:m;let _=te||d||i,{buttonRef:v,getButtonProps:y}=se({native:a,disabled:_}),{mounted:ae,transitionStatus:b,setMounted:x}=Ce(g),S={disabled:_,visible:g,open:ne,transitionStatus:b};ee({open:g,ref:l.context.clearRef,onComplete(){g||x(!1)}});let C=re(`button`,e,{state:S,ref:[t,v,l.context.clearRef],props:[{tabIndex:-1,children:`x`,onMouseDown(e){e.preventDefault()},onClick(e){if(_||f)return;let t=l.context.keyboardActiveRef.current?ie:_e;l.context.setInputValue(``,D(E,e.nativeEvent)),u===`none`?l.context.setIndices({activeIndex:null,type:t}):(l.context.setSelectedValue(Array.isArray(p)?[]:null,D(E,e.nativeEvent)),l.context.setIndices({activeIndex:null,selectedIndex:null,type:t})),l.context.inputRef.current?.focus()}},c,y],stateAttributesMapping:Vt});return o||ae?C: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:a,children:o,...s}=e,c=P(),ee=ft(),te=!!z(!0),{filteredItems:l,hasItems:u}=pt(),f=c.useState(`selectionMode`),ne=c.useState(`grid`),p=c.useState(`readOnly`),m=c.useState(`listProps`),h=c.useState(`virtualized`),_=c.useState(`forceMounted`),v=f===`multiple`,y=l.length===0,ie=d(e=>{c.set(`positionerElement`,e)}),ae=d(e=>{c.set(`listElement`,e)}),b=N.useMemo(()=>typeof o==`function`?n||=(0,F.jsx)(Gt,{children:o}):o,[o]),x={empty:y},S=ee.useState(`floatingId`),C=re(`div`,e,{state:x,ref:[t,ae,te?null:ie],props:[m,{children:b,tabIndex:-1,id:S,role:ne?`grid`:`listbox`,"aria-multiselectable":v?`true`:void 0,"aria-readonly":!ne&&p?!0:void 0,onKeyDown(e){if(!(c.state.disabled||c.state.readOnly)&&e.key===`Enter`){let t=c.state.activeIndex;if(t==null)return;g(e),Nt(c,t,e.nativeEvent)}},onKeyDownCapture(){c.context.keyboardActiveRef.current=!0},onPointerMoveCapture(){c.context.keyboardActiveRef.current=!1}},s]});if(h)return C;let oe=u&&!_?void 0:c.context.labelsRef;return(0,F.jsx)(M,{elementsRef:c.context.listRef,labelsRef:oe,children:C})}),qt=e(a(),1),Jt=N.createContext(void 0);function Yt(){let e=N.useContext(Jt);if(!e)throw Error(u(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:s,value:c=null,index:ee,disabled:te=!1,nativeButton:l=!1,...u}=t,d=N.useRef(null),ne=Le({guess:!0,index:ee,textRef:d}),p=P(),m=Zt(),h=ht(),g=p.useState(`selectionMode`),_=p.useState(`disabled`),v=p.useState(`readOnly`),y=p.useState(`isItemEqualToValue`),ie=_||te,ae=g!==`none`,b=ee??i??ne.index,x=b!==-1,S=p.useState(`id`),C=p.useState(`isActive`,b),oe=p.useState(`isSelected`,c),w=p.useState(`itemProps`),T=N.useRef(null),E=S!=null&&x?`${S}-${b}`:void 0,ce=oe&&ae;f(()=>{if(!x||!r&&ee==null)return;let e=p.context.listRef.current;return e[b]=T.current,()=>{delete e[b]}},[x,r,b,ee,p]),f(()=>{if(!x||h)return;let e=p.context.valuesRef.current;return e[b]=c,()=>{delete e[b]}},[x,h,b,c,p]),f(()=>{if(!x||h)return;let e=p.state.selectedValue,t=p.state.selectedIndex;p.state.selectionMode===`multiple`&&Array.isArray(e)?t=je(b,c,p.context.valuesRef.current,e,y,t):Ne(c,e,y)&&(t=b),p.set(`selectedIndex`,t)},[x,h,p,b,c,y]);let{getButtonProps:le,buttonRef:ue}=se({disabled:ie,focusableWhenDisabled:!0,native:l,composite:!0}),D={disabled:ie,selected:ce,highlighted:C};function O(e){function t(){p.context.handleSelection(e,c)}p.state.submitOnItemClick?(qt.flushSync(t),p.context.requestSubmit()):t()}let de={id:E,role:m?`gridcell`:`option`,"aria-selected":ae?ce:void 0,tabIndex:void 0,onPointerDownCapture(e){e.isPrimary&&(p.context.pointerDownItemRef.current=e.currentTarget),e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){ie||v||O(e.nativeEvent)},onMouseUp(e){let t=p.context.pointerDownItemRef.current===e.currentTarget;p.context.pointerDownItemRef.current=null,!(ie||v||e.button!==0||t||!C)&&O(e.nativeEvent)}},fe=re(`div`,t,{ref:[ue,n,ne.ref,T],state:D,props:[w,de,u,le]}),pe=N.useMemo(()=>({selected:ce,textRef:d}),[ce,d]);return(0,F.jsx)(Jt.Provider,{value:pe,children:fe})}function V(e){let{componentProps:t,forwardedRef:n}=e,r=P().useState(`isItemEqualToValue`),{flatFilteredValues:i}=pt(),a=t.value??null,o=We(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=xe();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=b(`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=b(`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
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{$l as t,$s as n,Bs as r,Dl as i,El as a,Fl as o,Gc as s,Go as c,Ks as ee,Lc as te,Ll as l,Nl as u,Ol as d,Pl as f,Rc as ne,Rl as p,Sl as m,Ss as h,Tc as g,Wo as _,Xs as re,Zs as v,_s as y,bs as ie,cs as ae,ei as b,el as x,fc as S,gc as C,gs as oe,ho as w,il as T,js as se,ls as E,ml as ce,nc as le,ol as ue,os as D,ps as O,ss as de,tc as fe,tl as pe,ts as k,ul as me,us as A,vl as he,vs as ge,ws as _e,xs as ve,ys as ye,zl as j}from"./runtime-BwHA1GUS.js";import{t as be}from"./react-CwJFpaho.js";import{t as xe}from"./compiler-runtime-C4g8XhC5.js";import{a as Se,v as Ce,x as we}from"./NullStore-8d2s-Re3.js";import{A as Te,C as Ee,D as De,E as Oe,F as ke,N as Ae,O as je,P as Me,S as Ne,T as Pe,_ as Fe,b as Ie,d as Le,g as Re,h as ze,j as Be,k as Ve,m as He,p as M,v as Ue,w as We,y as Ge}from"./badge-2AZ3HfVS.js";import{t as Ke}from"./useBaseUiId-DKOjzmu3.js";import{t as qe}from"./useValueChanged-BkTbyZdO.js";import{t as Je}from"./useControlled-CgAAWIy9.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-DQbY2GG1.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=w(it),N=e(be(),1);function ot(e,t,n,r,i,a,o,s,c,ee=2){let te=S(n.current,{event:e,orientation:r,loopFocus:i,rtl:a,cols:ee,disabledIndices:o,minIndex:s,maxIndex:c,prevIndex:t>c?s:t,stopEvent:!0});return C(n.current,te)?void 0:te}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(u(22));return e}function ft(){let e=N.useContext(ct);if(!e)throw Error(u(23));return e}function pt(){let e=N.useContext(lt);if(!e)throw Error(u(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?Fe(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=>Ne(t,e,n)):Ne(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?``:Ge(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=Ge(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=Ge(e,n);return i.compare(r.slice(0,t.length),t)===0},endsWith(e,t,n){if(!t)return!0;let r=Ge(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===Ee)return r;for(let[r,i]of e)if(Ne(r,t,n))return i}var F=t();function Ot(e){let{id:t,onOpenChangeComplete:a,defaultSelectedValue:s=null,selectedValue:te,onSelectedValueChange:ne,defaultInputValue:g,inputValue:re,open:ae,defaultOpen:b=!1,selectionMode:S,onItemHighlighted:C,name:w,form:T,disabled:se=!1,readOnly:E=!1,required:ce=!1,inputRef:ue,grid:O=!1,items:me,filteredItems:A,filter:ve,filterQuery:be,openOnInputClick:xe=!0,autoHighlight:Ae=!1,keepHighlight:je=!1,highlightItemOnHover:Fe=!0,loopFocus:Le=!0,itemToStringLabel:ze,itemToStringValue:He,isItemEqualToValue:M=Ee,virtualized:Ke=!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=_(),kt=nt({id:t}),At=Ct({locale:at}),I=Array.isArray(me)?null:me;if(I&&typeof I.label!=`function`)throw Error(u(100));let L=I?I.data:me,R=I?.value,jt=R?void 0:L,Mt=N.useMemo(()=>{if(!A||!R)return;let e=Re(A),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)}}},[A,R]),Nt=N.useMemo(()=>I?e=>I.label(e,M,e=>{let t=Mt?.findItem(e,M);return t==null?Ge(e,ze):I.itemLabel(t)}):ze,[I,ze,Mt,M]),Pt=N.useMemo(()=>I?Object.assign(e=>I.itemLabel(e),{selected:e=>Ge(e,Nt)}):ze,[I,Nt,ze]);function Ft(e){return Ge(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||se,en=_t??w,U=S===`multiple`,tn=S===`single`,nn=re!==void 0||g!==void 0,W=L!==void 0,rn=A!==void 0,G;G=Ae===`always`?`always`:Ae?`input-change`:!1;let[K,an]=Je({controlled:te,default:U?s??l:s,name:`Combobox`,state:`selectedValue`}),on=N.useMemo(()=>ve===null?()=>!0:ve===void 0?vt(At,Pt):ve,[ve,At,Pt]),sn=o(()=>nn?g??``:tn?Ft(K):``).current,[q,cn]=Je({controlled:re,default:sn,name:`Combobox`,state:`inputValue`}),[J,ln]=Je({controlled:ae,default:b,name:`Combobox`,state:`open`}),un=Ue(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?Re(L):l,[L]),gn=N.useMemo(()=>{if(A&&!mn)return A;if(!L)return l;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},[A,mn,L,un,pn,$e,on,Pt,hn]),X=N.useMemo(()=>{if(Mt&&gn===A)return Mt.values;let e=Re(gn);return R?e.map(e=>R(e)):e},[gn,A,Mt,R]),Z=o(()=>{let e=null;return Ye&&J&&W&&S!==`none`&&(e=Pe(X,K,M,U)),new i({id:kt,labelId:void 0,selectedValue:K,open:J,items:jt,selectionMode:S,name:en,form:T,disabled:H,readOnly:E,required:ce,grid:O,virtualized:Ke,openOnInputClick:xe,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:p,positionerElement:null,listElement:null,popupId:void 0,triggerElement:null,inputElement:null,inputGroupElement:null,popupSide:null,openMethod:null,inputInsidePopup:!0,inputOwnsFormValue:S===`none`},{onOpenChangeComplete:j,setOpen:j,setInputValue:j,setSelectedValue:j,setIndices:j,handleSelection:j,forceMount:j,requestSubmit:j,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=S===`none`?q:K,vn=N.useMemo(()=>S===`none`?_n:Array.isArray(K)?K.map(e=>Ie(e,He)):Ie(K,He),[_n,He,S,K]),yn=d(C),bn=d(a),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=k(Tn),{mounted:jn,setMounted:Mn,transitionStatus:Nn}=Ce(J),{openMethod:Pn,triggerProps:Fn}=Be(J),In=d(()=>vn);Ze($?An:B,kt,_n,In,!H,w);let Ln=d(()=>{L?Vt.current=X.map(Ft):Z.set(`forceMounted`,!0)}),Rn=d((e,t,n)=>{if(t===-1){if(Zt.current===Et)return;Zt.current=Et}else Zt.current={value:e,index:t};yn(e,de(n,void 0,{index:t}))}),zn=d(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=d((t,n)=>{if(e.onInputValueChange?.(t,n),!n.isCanceled){if(qt.current=n.reason===y,n.reason===`input-change`){J&&z!==null&&Rt(null);let e=n.event,i=e.inputType;if(e.type===`compositionend`||i!=null&&i!==``&&i!==`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 he(n.firstElementChild??n)){if(!m(t)||(e?!x(e,t):t.getAttribute(`role`)===`dialog`))break;if(r(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=d(e=>{let t=!e&&$&&!Q&&q!==``&&(String(q).trim()===z||q===dn);!e&&(t||q===``||kn)&&Lt(!1),Rt(null),t&&Bn(``,D(y))}),Hn=d((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===oe),!t&&It&&(tn?(Q||Rt(Y),Y===``&&Lt(!1)):U&&(Q||Rt(Y),$&&zn({activeIndex:null}),(!$||Q)&&Bn(``,D(y,n.event,void 0,{isItemPress:n.reason===ye})))),ln(t),!t&&$&&(n.reason===`focus-out`||n.reason===`outside-press`)&&(bt(!0),xt(!1),St===`onBlur`)))){let e=S===`none`?q:K;wt.commit(e)}}),Un=d((e,t)=>{ne?.(e,t),!t.isCanceled&&(an(e),(S===`none`&&Ht.current&&Xe||tn&&!Z.state.inputInsidePopup)&&Bn(Ft(e),D(t.reason,t.event)))}),Wn=d((e,t)=>{let n=pe(e),r=Xt.current??e;Xt.current=null;let i=D(ye,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?De(e,t,M):[...e,t];if(Un(r,i),i.isCanceled||!(B.current&&B.current.value.trim()!==``))return;if(Z.state.inputInsidePopup){Bn(``,D(y,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=d(()=>{let e=wt.inputRef.current?.form??Z.state.inputElement?.form;e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}),Kn=d(()=>{if(Mn(!1),bn?.(!1),Lt(!1),Rt(null),zn(S===`none`?{activeIndex:null,selectedIndex:null}:{activeIndex:null}),U&&B.current&&B.current.value!==``&&!qt.current&&Bn(``,D(y)),tn){if(Z.state.inputInsidePopup)B.current&&B.current.value!==``&&Bn(``,D(y));else{let e=Ft(K);B.current&&B.current.value!==e&&Bn(e,D(e===``?y:h))}}}),qn=N.useMemo(()=>Q&&Cn?{current:Cn.closest(`[role="dialog"]`)}:Ht,[Q,Cn]);ee({enabled:!e.actionsRef,open:J,ref:qn,onComplete(){J||Kn()}}),N.useImperativeHandle(e.actionsRef,()=>({unmount:Kn}),[Kn]),f(function(){let e=zt.current!==null&&z===null;if(zt.current=z,J&&(!e||!W)||(J||($t.current=null),S===`none`))return;let t=W?X:V.current;zn({selectedIndex:Pe(t,K,M,U)})},[J,z,K,S,U,W,X,M,zn]),f(()=>{L&&(V.current=X,Bt.current.length=X.length)},[L,X]),f(()=>{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=We(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,h);return}if(n>=t.length){Rn(void 0,-1,h),Z.set(`activeIndex`,null);return}let r=t[n],i=Zt.current.value,a=i!==Tt&&Ne(r,i,Z.state.isItemEqualToValue);(Zt.current.index!==n||!a)&&Rn(r,n,h)},[xn,G,Rn,rn,W,X,Q,J,Z,q]),f(()=>{if(S===`none`){ht(String(q)!==``);return}ht(U?Array.isArray(K)&&K.length>0:K!=null)},[ht,S,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,D(h)))}function Qn(){S!==`none`&&(ft(en),pt(Oe(K,mt.initialValue,M)),wt.change(K),tn&&!nn&&!$&&Zn())}function $n(){tn&&!nn&&!$&&!It&&Zn()}function er(){S===`none`&&(ft(en),pt(q!==mt.initialValue),wt.change(q))}qe(Y,Jn),qe(J,Yn),qe(K,Qn),qe(dn,$n),qe(L,$n),qe(q,er);let tr=c({open:Q?!0:J,onOpenChange:Hn,elements:{reference:$?Tn:En,floating:Cn}}),nr=O?`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`]=E?`none`:rt),{reference:r,floating:{role:`presentation`}}},[En,rr,ir,nr,wn?.id,rt,E]),or=ke(tr,{enabled:!H&&xe,event:`mousedown-only`,toggle:!1,touchOpenDelay:$?0:100,reason:ge}),sr=we(tr,{enabled:!H&&!Q,outsidePressEvent:{mouse:`sloppy`,touch:`intentional`},bubbles:Q?!0:void 0,outsidePress(e){let t=pe(e);return!x(Tn,t)&&!x(Yt.current,t)&&!x(Jt.current,t)&&!x(Dn,t)}}),cr=Me(tr,{enabled:!H,id:kt,listRef:Bt,activeIndex:xn,selectedIndex:Sn,virtual:!0,loopFocus:Le,allowEscape:Le&&!G,focusItemOnOpen:It||S===`none`&&!G?!1:`auto`,focusItemOnHover:Fe,resetOnPointerLeave:!je,orientation:O?`horizontal`:void 0,rtl:Ot===`rtl`,disabledIndices:l,grid:O?ot:void 0,onNavigate(e,t){(t||J)&&Nn!==`ending`&&zn(t?{activeIndex:e,type:Kt.current?ie:_e}:{activeIndex:e})}}),lr=N.useMemo(()=>v(cr.reference,{onKeyDown(e){O&&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,O,Z]),ur=N.useMemo(()=>v(Se,sr.floating),[sr.floating]),dr=N.useMemo(()=>v(cr.floating,ar.floating),[cr.floating,ar.floating]),fr=N.useMemo(()=>{let e=cr.item;return e?{...e,onFocus:void 0}:p},[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`,a),Te(()=>{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:S,name:en,form:T,disabled:H,readOnly:E,required:ce,grid:O,virtualized:Ke,openOnInputClick:xe,itemToStringLabel:Nt,modal:Qe,autoHighlight:G,isItemEqualToValue:M,submitOnItemClick:P,hasInputValue:nn};f(()=>{Z.update({...pr,inputOwnsFormValue:S===`none`&&(Ye||!Z.state.inputInsidePopup)})},[Z,...Object.values(pr)]);let mr=n(ue,wt.inputRef),hr=N.useMemo(()=>({query:Y,hasItems:W,filteredItems:gn,flatFilteredValues:X}),[Y,W,gn,X]),gr=N.useMemo(()=>Array.isArray(_n)?``:Ie(_n,He),[_n,He]),_r=U&&Array.isArray(K)&&K.length>0,vr=U||S===`none`&&On?void 0:en,yr=N.useMemo(()=>!U||!Array.isArray(K)||!en?null:K.map(e=>{let t=Ie(e,He);return(0,F.jsx)(`input`,{type:`hidden`,form:T,name:en,value:t,disabled:H},t)}),[U,K,T,en,He,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||E)return;let t=e.currentTarget.value,n=t.toLowerCase(),r=D(h,e.nativeEvent),i=()=>V.current.findIndex(e=>Ie(e,He).toLowerCase()===n||Ft(e).toLowerCase()===n);function a(){if(U)return;if(S===`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:T,name:vr,autoComplete:it,disabled:H,required:ce&&!_r,readOnly:E,value:gr,ref:mr,style:vr?le:fe,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={...te,...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:a=!1,id:o,style:s,...c}=e,{state:ee,disabled:te,setTouched:l,setFocused:u,validationMode:f,validation:ne}=tt(),{labelId:p}=Qe(),m=P(),_=m.useState(`selectionMode`),v=m.useState(`disabled`),y=m.useState(`readOnly`),ie=m.useState(`required`),b=m.useState(`positionerElement`),S=m.useState(`listElement`),C=m.useState(`popupId`),oe=m.useState(`triggerProps`),w=m.useState(`inputInsidePopup`),T=m.useState(`id`),E=m.useState(`labelId`),le=m.useState(`open`),ue=m.useState(`selectedValue`),O=m.useState(`activeIndex`),de=m.useState(`selectedIndex`),fe=m.useState(`hasSelectedValue`),k=ft(),A=mt(),he=me(),ge=te||v||a,_e=R(),ye=L(m);nt({id:w?o:void 0});let j=w?o??T:o,be=He(p,E),xe;le&&w?xe=C??_t(T):le&&(xe=S?.id);let Se=N.useRef(``);function Ce(e){Se.current=e.pointerType}let{reference:we}=Ae(k,{enabled:!le&&!y&&!v&&_===`single`,listRef:m.context.labelsRef,activeIndex:O,selectedIndex:de,onMatch(e){let t=m.context.valuesRef.current[e];t!==void 0&&m.context.setSelectedValue(t,D(h))}}),{reference:Te}=ke(k,{enabled:!v,event:`mousedown`}),{buttonRef:Ee,getButtonProps:De}=se({native:i,disabled:ge}),Oe={...ee,readOnly:y,open:le,disabled:ge,popupSide:ye,listEmpty:_e,placeholder:_!==`none`&&!fe},je=d(e=>{m.set(`triggerElement`,e)});return re(`button`,e,{ref:[t,Ee,je],state:Oe,props:[oe,Te,we,{id:j,tabIndex:w?0:-1,role:w?`combobox`:void 0,"aria-expanded":le,"aria-haspopup":w?`dialog`:`listbox`,"aria-controls":xe,"aria-required":w&&ie||void 0,"aria-readonly":w&&y||void 0,"aria-labelledby":be,onPointerDown:Ce,onPointerEnter:Ce,onFocus(){u(!0),!ge&&he.start(0,m.context.forceMount)},onBlur(e){if(!x(b,e.relatedTarget)&&(l(!0),u(!1),f===`onBlur`)){let e=_===`none`?A:ue;ne.commit(e)}},onMouseDown(e){if(ge||(w||k.set(`domReferenceElement`,e.currentTarget),m.context.forceMount(),Se.current!==`touch`&&(m.context.inputRef.current?.focus(),w||e.preventDefault()),le))return;let t=ce(e.currentTarget);function n(e){let t=m.state.triggerElement;if(!t)return;let n=pe(e),r=m.state.positionerElement,i=m.state.listElement;x(t,n)||x(r,n)||x(i,n)||ze(e,t)||m.context.setOpen(!1,D(ae,e))}w&&t.addEventListener(`mouseup`,n,{once:!0})},onKeyDown(e){(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(g(e),m.context.setOpen(!0,D(ve,e.nativeEvent)),m.context.inputRef.current?.focus())}},ne.getValidationProps(ge,c),De],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(u(21));return t}var Rt=N.forwardRef(function(e,t){let r=P(),{buttonRef:i,getButtonProps:a}=se({native:!1}),o=n(t,i);function s(e){r.context.setOpen(!1,D(A,e.nativeEvent,e.currentTarget))}let c=a({onClick:s});return(0,F.jsx)(`span`,{ref:o,...c,"aria-label":`Dismiss`,tabIndex:void 0,style:le})}),zt=N.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,id:a,style:o,...s}=e,{state:c,disabled:ee,setTouched:te,setFocused:l,validationMode:u,validation:f}=tt(),{labelId:ne}=Qe(),p=It(),m=!!z(!0),v=P(),ae=mt(),b=_(),x=v.useState(`required`),S=v.useState(`disabled`),C=v.useState(`readOnly`),w=v.useState(`name`),se=v.useState(`form`),E=v.useState(`selectionMode`),ce=v.useState(`autoHighlight`),le=v.useState(`inputProps`),de=v.useState(`triggerProps`),fe=v.useState(`open`),pe=v.useState(`mounted`),k=v.useState(`selectedValue`),me=v.useState(`id`),A=v.useState(`inline`),he=v.useState(`modal`),ge=!!ce,ve=L(v),ye=ee||S||i,j=R(),be=m||A,xe=!be||he,Se=Ke(a??(be?void 0:me)),Ce=m?Xe:c,[we,Te]=N.useState(null),Ee=N.useRef(!1),De=N.useRef(null),Oe=N.useRef(!1),ke=E===`none`&&!m,Ae=d(e=>{let t=m||v.state.inline;t&&!v.state.hasInputValue&&v.context.setInputValue(``,D(h)),v.update({inputElement:e,inputInsidePopup:t,inputOwnsFormValue:ke})}),je=m?s:f.getValidationProps(ye,s);function Me(){v.context.setIndices({activeIndex:null,selectedIndex:null,type:v.context.keyboardActiveRef.current?ie:_e})}function Ne(){v.context.keyboardActiveRef.current=!1}let Pe={...Ce,open:fe,disabled:ye,readOnly:C,popupSide:ve,listEmpty:j};function Fe(e){if(!p)return;let t,{highlightedChipIndex:n}=p,r=p.chipsRef.current.length,[i,a]=jt(b);return n===void 0?(e.key===i&&(e.currentTarget.selectionStart??0)===0&&k.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,k.length),Me()),t)}let Ie=re(`input`,e,{state:Pe,ref:[t,v.context.inputRef,Ae],props:[le,de,{value:we??ae,"aria-readonly":C||void 0,"aria-required":x||void 0,"aria-labelledby":ne,disabled:ye,readOnly:C,required:E===`none`?x:void 0,form:se,...ke&&w&&{name:w},id:Se,onFocus(){if(l(!0),!A||!Oe.current)return;Oe.current=!1;let e=De.current;e!=null&&Object.hasOwn(v.context.valuesRef.current,e)&&v.context.setIndices({activeIndex:e})},onBlur(){te(!0),l(!1);let e=v.state.activeIndex;if(A&&e!==null&&ce!==`always`&&(De.current=e,Oe.current=!0,v.context.setIndices({activeIndex:null})),u===`onBlur`){let e=E===`none`?ae:k;f.commit(e)}},onCompositionStart(e){ue||(Ee.current=!0,Te(e.currentTarget.value))},onCompositionEnd(e){Ee.current=!1;let t=e.currentTarget.value;Te(null),v.context.setInputValue(t,D(oe,e.nativeEvent))},onChange(e){let t=e.nativeEvent,n=t.inputType,r=!n||n===`insertReplacementText`,i=Ee.current||!r;function a(e){!C&&!ye&&e&&i&&(v.context.setOpen(!0,D(oe,t)),ge||Me())}if(Ee.current){let n=e.currentTarget.value;Te(n),n===``&&!v.state.openOnInputClick&&!v.state.inputInsidePopup&&v.context.setOpen(!1,D(y,t));let r=n.trim(),i=ge&&r!==``;a(r),fe&&v.state.activeIndex!==null&&!i&&Me();return}let o=D(oe,t);if(v.context.setInputValue(e.currentTarget.value,o),o.isCanceled)return;let s=e.currentTarget.value===``,c=D(y,t);s&&!v.state.inputInsidePopup&&(E===`single`&&v.context.setSelectedValue(null,c),v.state.openOnInputClick||v.context.setOpen(!1,c)),a(e.currentTarget.value.trim()),fe&&v.state.activeIndex!==null&&!ge&&Me()},onKeyDown(e){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;if(v.context.keyboardActiveRef.current=!0,ye||C){C&&e.key===`Enter`&&fe&&v.state.activeIndex!==null&&g(e);return}let t=e.currentTarget,n=t.scrollWidth-t.clientWidth,r=b===`rtl`;if(e.key===`Home`){g(e);let n=T&&r?t.value.length:0;t.setSelectionRange(n,n),t.scrollLeft=0;return}if(e.key===`End`){g(e);let i=T&&r?0:t.value.length;t.setSelectionRange(i,i),t.scrollLeft=r?-n:n;return}if(!pe&&e.key===`Escape`){let t=E===`multiple`&&Array.isArray(k)?k.length===0:k===null,n=D(O,e.nativeEvent),r=E===`multiple`?[]:null;v.context.setInputValue(``,n),v.context.setSelectedValue(r,n),!t&&!v.state.inline&&!n.isPropagationAllowed&&e.stopPropagation();return}if(p&&e.key===`Backspace`&&t.value===``&&p.highlightedChipIndex===void 0&&Array.isArray(k)&&k.length>0){let t=p.chipsRef.current.length,n=t>0?t-1:k.length-1,r=k.filter((e,t)=>t!==n);Me(),v.context.setSelectedValue(r,D(h,e.nativeEvent));return}let i=p?.highlightedChipIndex!==void 0,a=Fe(e);if(p?.setHighlightedChipIndex(a),a===void 0?i&&v.context.inputRef.current?.focus():p?.chipsRef.current[a]?.focus(),e.which!==229&&e.key===`Enter`&&fe){let t=v.state.activeIndex,n=e.nativeEvent;if(t===null){if(A)return;v.context.setOpen(!1,D(h,n));return}g(e),Nt(v,t,n)}},onPointerMove:Ne,onPointerDown:Ne},je],stateAttributesMapping:I}),Le=m?(0,F.jsx)($e.Provider,{value:Ye,children:Ie}):Ie;return(0,F.jsxs)(N.Fragment,{children:[fe&&xe&&(0,F.jsx)(Rt,{ref:v.context.startDismissRef}),Le]})}),Bt=N.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return re(`span`,e,{ref:t,props:[{"aria-hidden":!0,children:`▼`},a]})}),Vt={...s,...ne},Ht=N.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,nativeButton:a=!0,keepMounted:o=!1,style:s,...c}=e,{disabled:te}=tt(),l=P(),u=l.useState(`selectionMode`),d=l.useState(`disabled`),f=l.useState(`readOnly`),ne=l.useState(`open`),p=l.useState(`selectedValue`),m=l.useState(`hasSelectionChips`),h=mt(),g=!1;g=u===`none`?h!==``:u===`single`?p!=null:m;let _=te||d||i,{buttonRef:v,getButtonProps:y}=se({native:a,disabled:_}),{mounted:ae,transitionStatus:b,setMounted:x}=Ce(g),S={disabled:_,visible:g,open:ne,transitionStatus:b};ee({open:g,ref:l.context.clearRef,onComplete(){g||x(!1)}});let C=re(`button`,e,{state:S,ref:[t,v,l.context.clearRef],props:[{tabIndex:-1,children:`x`,onMouseDown(e){e.preventDefault()},onClick(e){if(_||f)return;let t=l.context.keyboardActiveRef.current?ie:_e;l.context.setInputValue(``,D(E,e.nativeEvent)),u===`none`?l.context.setIndices({activeIndex:null,type:t}):(l.context.setSelectedValue(Array.isArray(p)?[]:null,D(E,e.nativeEvent)),l.context.setIndices({activeIndex:null,selectedIndex:null,type:t})),l.context.inputRef.current?.focus()}},c,y],stateAttributesMapping:Vt});return o||ae?C: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:a,children:o,...s}=e,c=P(),ee=ft(),te=!!z(!0),{filteredItems:l,hasItems:u}=pt(),f=c.useState(`selectionMode`),ne=c.useState(`grid`),p=c.useState(`readOnly`),m=c.useState(`listProps`),h=c.useState(`virtualized`),_=c.useState(`forceMounted`),v=f===`multiple`,y=l.length===0,ie=d(e=>{c.set(`positionerElement`,e)}),ae=d(e=>{c.set(`listElement`,e)}),b=N.useMemo(()=>typeof o==`function`?n||=(0,F.jsx)(Gt,{children:o}):o,[o]),x={empty:y},S=ee.useState(`floatingId`),C=re(`div`,e,{state:x,ref:[t,ae,te?null:ie],props:[m,{children:b,tabIndex:-1,id:S,role:ne?`grid`:`listbox`,"aria-multiselectable":v?`true`:void 0,"aria-readonly":!ne&&p?!0:void 0,onKeyDown(e){if(!(c.state.disabled||c.state.readOnly)&&e.key===`Enter`){let t=c.state.activeIndex;if(t==null)return;g(e),Nt(c,t,e.nativeEvent)}},onKeyDownCapture(){c.context.keyboardActiveRef.current=!0},onPointerMoveCapture(){c.context.keyboardActiveRef.current=!1}},s]});if(h)return C;let oe=u&&!_?void 0:c.context.labelsRef;return(0,F.jsx)(M,{elementsRef:c.context.listRef,labelsRef:oe,children:C})}),qt=e(a(),1),Jt=N.createContext(void 0);function Yt(){let e=N.useContext(Jt);if(!e)throw Error(u(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:s,value:c=null,index:ee,disabled:te=!1,nativeButton:l=!1,...u}=t,d=N.useRef(null),ne=Le({guess:!0,index:ee,textRef:d}),p=P(),m=Zt(),h=ht(),g=p.useState(`selectionMode`),_=p.useState(`disabled`),v=p.useState(`readOnly`),y=p.useState(`isItemEqualToValue`),ie=_||te,ae=g!==`none`,b=ee??i??ne.index,x=b!==-1,S=p.useState(`id`),C=p.useState(`isActive`,b),oe=p.useState(`isSelected`,c),w=p.useState(`itemProps`),T=N.useRef(null),E=S!=null&&x?`${S}-${b}`:void 0,ce=oe&&ae;f(()=>{if(!x||!r&&ee==null)return;let e=p.context.listRef.current;return e[b]=T.current,()=>{delete e[b]}},[x,r,b,ee,p]),f(()=>{if(!x||h)return;let e=p.context.valuesRef.current;return e[b]=c,()=>{delete e[b]}},[x,h,b,c,p]),f(()=>{if(!x||h)return;let e=p.state.selectedValue,t=p.state.selectedIndex;p.state.selectionMode===`multiple`&&Array.isArray(e)?t=je(b,c,p.context.valuesRef.current,e,y,t):Ne(c,e,y)&&(t=b),p.set(`selectedIndex`,t)},[x,h,p,b,c,y]);let{getButtonProps:le,buttonRef:ue}=se({disabled:ie,focusableWhenDisabled:!0,native:l,composite:!0}),D={disabled:ie,selected:ce,highlighted:C};function O(e){function t(){p.context.handleSelection(e,c)}p.state.submitOnItemClick?(qt.flushSync(t),p.context.requestSubmit()):t()}let de={id:E,role:m?`gridcell`:`option`,"aria-selected":ae?ce:void 0,tabIndex:void 0,onPointerDownCapture(e){e.isPrimary&&(p.context.pointerDownItemRef.current=e.currentTarget),e.preventDefault()},onMouseDown(e){e.preventDefault()},onClick(e){ie||v||O(e.nativeEvent)},onMouseUp(e){let t=p.context.pointerDownItemRef.current===e.currentTarget;p.context.pointerDownItemRef.current=null,!(ie||v||e.button!==0||t||!C)&&O(e.nativeEvent)}},fe=re(`div`,t,{ref:[ue,n,ne.ref,T],state:D,props:[w,de,u,le]}),pe=N.useMemo(()=>({selected:ce,textRef:d}),[ce,d]);return(0,F.jsx)(Jt.Provider,{value:pe,children:fe})}function V(e){let{componentProps:t,forwardedRef:n}=e,r=P().useState(`isItemEqualToValue`),{flatFilteredValues:i}=pt(),a=t.value??null,o=We(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=xe();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=b(`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=b(`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 +1 @@
1
- import{ho as e}from"./runtime-DpHhg0dl.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
+ import{ho as e}from"./runtime-BwHA1GUS.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 +1 @@
1
- import{ho as e}from"./runtime-DpHhg0dl.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
+ import{ho as e}from"./runtime-BwHA1GUS.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 +1 @@
1
- import{ho as e}from"./runtime-DpHhg0dl.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};
1
+ import{ho as e}from"./runtime-BwHA1GUS.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};
@@ -1 +1 @@
1
- import"./authorization-BugIGt5e.js";var e=!1;function t(){if(e||typeof console>`u`)return;e=!0;let t=[`debug`,`error`,`info`,`log`,`warn`],n=console;Object.fromEntries(t.map(e=>[e,n[e]]));for(let e of t)n[e]=()=>void 0}export{t as installHostedConsoleBoundary};
1
+ import"./authorization-D8dOcEYq.js";var e=!1;function t(){if(e||typeof console>`u`)return;e=!0;let t=[`debug`,`error`,`info`,`log`,`warn`],n=console;Object.fromEntries(t.map(e=>[e,n[e]]));for(let e of t)n[e]=()=>void 0}export{t as installHostedConsoleBoundary};