@openscout/scout 0.2.102 → 0.2.106

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 (605) hide show
  1. package/README.md +37 -0
  2. package/bin/scout.mjs +6 -0
  3. package/bin/scoutd +0 -0
  4. package/dist/build-manifest.json +4 -4
  5. package/dist/chat.mjs +307 -0
  6. package/dist/client/assets/ActivityScreen-CZmGwQ2U.js +1 -0
  7. package/dist/client/assets/{AddProjectForm-DfbjlFfy.js → AddProjectForm-CusDRiVO.js} +1 -1
  8. package/dist/client/assets/{AdventureEvidence-Dzz9VbuE.js → AdventureEvidence-CyegKk1V.js} +1 -1
  9. package/dist/client/assets/{AdventureReader-ClMxT0e4.js → AdventureReader-X-hbTOi0.js} +1 -1
  10. package/dist/client/assets/{AdventureScenery-D548O0x4.js → AdventureScenery-LPXSVP67.js} +1 -1
  11. package/dist/client/assets/AgentAdventures-BAgxdOF8.js +1 -0
  12. package/dist/client/assets/AgentAvatar-CrP1eXxk.js +1 -0
  13. package/dist/client/assets/AgentConfigurationScreen-1L0IQm2w.js +1 -0
  14. package/dist/client/assets/AgentDefinitionsWorkspace-DguGs7jZ.js +1 -0
  15. package/dist/client/assets/{AgentDetailCard-CFDE8TLi.js → AgentDetailCard-DtHT3sCo.js} +1 -1
  16. package/dist/client/assets/AgentFloorView-DH4jiDgw.js +1 -0
  17. package/dist/client/assets/{AgentFloorWorld-BDJmXl3C.js → AgentFloorWorld-CjoIa6jA.js} +1 -1
  18. package/dist/client/assets/AgentInfoScreen-DYtmKkeE.js +1 -0
  19. package/dist/client/assets/{AgentLaneCard-C6YmwPxQ.js → AgentLaneCard-BaZ2g-f8.js} +1 -1
  20. package/dist/client/assets/{AgentLaneChrome-D9uJ4QY7.js → AgentLaneChrome-TF1SlJSc.js} +1 -1
  21. package/dist/client/assets/{AgentLaneDetailSheet-KYckCBCX.js → AgentLaneDetailSheet-EzEPsn3g.js} +1 -1
  22. package/dist/client/assets/{AgentLaneSummaryResize-BBYBS3DO.js → AgentLaneSummaryResize-dpp7YvrX.js} +1 -1
  23. package/dist/client/assets/AgentLanesEmbedScreen-BlSof_6S.js +1 -0
  24. package/dist/client/assets/{AgentLanesPreflight-pw2vMO3Q.js → AgentLanesPreflight-Ry-aqDTr.js} +1 -1
  25. package/dist/client/assets/AgentLanesView-BJi9xXz6.js +2 -0
  26. package/dist/client/assets/{AgentLiveActions-lYzicnNa.js → AgentLiveActions-CfTupTEl.js} +1 -1
  27. package/dist/client/assets/AgentMasterScreen-EJhmuKgl.js +1 -0
  28. package/dist/client/assets/AgentSessions-B1gOhDBf.js +6 -0
  29. package/dist/client/assets/AgentsConsole-RXGqRvcb.js +1 -0
  30. package/dist/client/assets/AgentsScreen-ChwMBs11.js +1 -0
  31. package/dist/client/assets/AgentsSubnav-DwNX4yy0.js +1 -0
  32. package/dist/client/assets/{AstronautSuit-C-4I5YKi.js → AstronautSuit-Cchnc4Ug.js} +1 -1
  33. package/dist/client/assets/{AtopView-DKm-ERYC.js → AtopView-gkEp4y__.js} +1 -1
  34. package/dist/client/assets/{BackToPicker-Bys9ColC.js → BackToPicker-CUkjnoVk.js} +1 -1
  35. package/dist/client/assets/BriefingDetailScreen-DrlC3qkm.js +1 -0
  36. package/dist/client/assets/{BriefingsScreen-D4Zf31Y6.js → BriefingsScreen-B1HlBMGZ.js} +1 -1
  37. package/dist/client/assets/{BrokerMetadataPanel-1GoSl2BV.js → BrokerMetadataPanel-Dk242Yh_.js} +1 -1
  38. package/dist/client/assets/BrokerScreen-DwOF6bMA.js +8 -0
  39. package/dist/client/assets/Canvas-X9pVSkw3.js +1 -0
  40. package/dist/client/assets/{CastPicker-BuwE_JQp.js → CastPicker-BXUtPAGC.js} +1 -1
  41. package/dist/client/assets/ChannelComposer-DoK7IDGa.js +1 -0
  42. package/dist/client/assets/ChannelSidebar-e9DOPulb.js +1 -0
  43. package/dist/client/assets/{CharacterFamilyPreview-CfO3j8Of.js → CharacterFamilyPreview-DMfw7UM_.js} +1 -1
  44. package/dist/client/assets/ChatAvatar-C3a_o5Hj.js +1 -0
  45. package/dist/client/assets/ChatBits-CsvxbToF.js +1 -0
  46. package/dist/client/assets/{ChatCollapsedStrip-TV0j1xTB.js → ChatCollapsedStrip-FEmQ_G9J.js} +1 -1
  47. package/dist/client/assets/ChatRichInput-DhtwFxQE.js +31 -0
  48. package/dist/client/assets/ChatRightPanel-C1h_aIkn.js +1 -0
  49. package/dist/client/assets/ChatSpaceSurface-BXyLYKHn.js +1 -0
  50. package/dist/client/assets/ChatSpaceTheme-3wLZGsvT.css +1 -0
  51. package/dist/client/assets/ChatSpaceTheme-CUH8bTZc.js +1 -0
  52. package/dist/client/assets/{CodeDiffPane-DB6-mqtX.js → CodeDiffPane-DuQRwpgK.js} +1 -1
  53. package/dist/client/assets/{CodeProjectPicker-B_LNLpIK.js → CodeProjectPicker-ZQ6gSBpg.js} +1 -1
  54. package/dist/client/assets/{CodeScreen-C9H160XS.js → CodeScreen-BXyKeL5T.js} +1 -1
  55. package/dist/client/assets/{CommsCanvas-DOKw3Q8i.js → CommsCanvas-THp0r_U8.js} +1 -1
  56. package/dist/client/assets/{CommsDeck-C18JA7rK.js → CommsDeck-BVmSMV2V.js} +1 -1
  57. package/dist/client/assets/{CommsFlowGraph-Czg-KTS0.js → CommsFlowGraph-DxoOaLF_.js} +1 -1
  58. package/dist/client/assets/{CommsFlowMap-CzBWvSa5.js → CommsFlowMap-Vi8ziCPg.js} +1 -1
  59. package/dist/client/assets/{CommsSelection-g1twA-Lb.js → CommsSelection-BUoRbu9o.js} +1 -1
  60. package/dist/client/assets/ComposerAttachments-DW0AIb8k.js +1 -0
  61. package/dist/client/assets/ConversationComposer-CUQyArlk.js +1 -0
  62. package/dist/client/assets/ConversationFeedRows-DWiOfT-y.js +1 -0
  63. package/dist/client/assets/ConversationHeader-C-ZWscKj.js +1 -0
  64. package/dist/client/assets/{ConversationPanels-C9yCAoJy.js → ConversationPanels-D9oC0xG5.js} +2 -2
  65. package/dist/client/assets/ConversationScreen-9MlMnEo4.css +1 -0
  66. package/dist/client/assets/ConversationScreen-CUfsQ4MR.js +2 -0
  67. package/dist/client/assets/ConversationStatus--IPm2nGh.js +1 -0
  68. package/dist/client/assets/{CrewAvatar-D0c9z5Qr.css → CrewAvatar-BnIPIn_Z.css} +1 -1
  69. package/dist/client/assets/CrewAvatar-kTznzqcO.js +1 -0
  70. package/dist/client/assets/{CrewSprite-hgpA3SWB.js → CrewSprite-Dhryjx2c.js} +1 -1
  71. package/dist/client/assets/CrewStage-vdO0qm3D.js +1 -0
  72. package/dist/client/assets/CrewWorkspaces-DCBzAAS4.js +1 -0
  73. package/dist/client/assets/CrewWorkspaces-DDuYMByu.css +1 -0
  74. package/dist/client/assets/{DataTable-BMOZ1-z8.js → DataTable-aH-jCyDq.js} +1 -1
  75. package/dist/client/assets/{DispatchAftermath-DDlwqSCY.js → DispatchAftermath-66uQAorV.js} +1 -1
  76. package/dist/client/assets/{DocumentFocusViewer-f12RRQpV.js → DocumentFocusViewer-DJr0v0D_.js} +1 -1
  77. package/dist/client/assets/{EmbeddableSurfacesLab-DGl9EMRV.js → EmbeddableSurfacesLab-BBa70EhJ.js} +1 -1
  78. package/dist/client/assets/{EmptyState-uyYN5piI.js → EmptyState-CZlrHXy-.js} +1 -1
  79. package/dist/client/assets/{FileViewerPane-HtiDbj9N.js → FileViewerPane-BAO6mtjD.js} +1 -1
  80. package/dist/client/assets/FleetRollCallHud-C5q2567n.js +1 -0
  81. package/dist/client/assets/FlightObserveScreen-DZ2mrw91.js +1 -0
  82. package/dist/client/assets/{FloorContextSheet-DV-SYA0K.js → FloorContextSheet-2_NVPQor.js} +1 -1
  83. package/dist/client/assets/{FloorExchangePanel-D59nvRCF.js → FloorExchangePanel-BU1pPu8K.js} +1 -1
  84. package/dist/client/assets/{FloorMessagePasses-BCwsz9VS.js → FloorMessagePasses-cLW2UGNP.js} +1 -1
  85. package/dist/client/assets/{FloorReplay-BHo79HCD.js → FloorReplay-VFzA6Kxc.js} +1 -1
  86. package/dist/client/assets/FloorResourcesSheet-C-kQ6Ren.js +1 -0
  87. package/dist/client/assets/{FloorSavedWork-2tjBoy06.js → FloorSavedWork-BeHDejWz.js} +1 -1
  88. package/dist/client/assets/FloorTacticalHUD-CO-iiFpb.js +1 -0
  89. package/dist/client/assets/{FollowScreen-eHXOlK-u.js → FollowScreen-CFfkIbc6.js} +1 -1
  90. package/dist/client/assets/HarnessMark-C4naWc16.js +1 -0
  91. package/dist/client/assets/HarnessesScreen-DX3NLcDG.js +1 -0
  92. package/dist/client/assets/{HerdrSession-CtJOUn7H.js → HerdrSession-_t7yM8vX.js} +2 -2
  93. package/dist/client/assets/{HomeHero-Cvwx2H0w.js → HomeHero-DouPyNmz.js} +1 -1
  94. package/dist/client/assets/{HostAdvisorView-CTJXIc1Q.js → HostAdvisorView-CnM1i8hW.js} +1 -1
  95. package/dist/client/assets/InviteLandingScreen-CEjG2E34.js +1 -0
  96. package/dist/client/assets/InviteSheet-CwxZtWCl.js +1 -0
  97. package/dist/client/assets/JumpPalette-O1aJE9gR.js +1 -0
  98. package/dist/client/assets/{KnowledgeSearchInspector-DwGMVmFL.js → KnowledgeSearchInspector-32n9baT-.js} +1 -1
  99. package/dist/client/assets/KnowledgeSearchScreen-Dd6jrQ0A.js +1 -0
  100. package/dist/client/assets/{LaneToolHoverCard-C6YehJqD.js → LaneToolHoverCard-CJa110yk.js} +1 -1
  101. package/dist/client/assets/LaneTraceDetailSheet-DYrd0BIf.js +1 -0
  102. package/dist/client/assets/{LaneTraceEventFocus-WLNZZVi_.js → LaneTraceEventFocus-TbrNHRj_.js} +1 -1
  103. package/dist/client/assets/{MeshCanvas-FDDGE69h.js → MeshCanvas-DWZHYh1A.js} +2 -2
  104. package/dist/client/assets/{MeshCanvasMinimap-CGRzQCac.js → MeshCanvasMinimap-iswYFpIb.js} +1 -1
  105. package/dist/client/assets/MeshScreen-8nAzQVbm.js +1 -0
  106. package/dist/client/assets/{MeshTopologyView-C2Cv_2gx.js → MeshTopologyView-BVvtqI8q.js} +2 -2
  107. package/dist/client/assets/MessageEmbeds-ksPazAKH.js +1 -0
  108. package/dist/client/assets/MessagesScreen-C3WB4T21.js +1 -0
  109. package/dist/client/assets/{MissionContextRail-CVSZJnvX.js → MissionContextRail-D62-Wis8.js} +1 -1
  110. package/dist/client/assets/MissionControlView-B9cNPXvl.js +1 -0
  111. package/dist/client/assets/{MissionFocusOverlay-B9SiuO-i.js → MissionFocusOverlay-C1zys3Jv.js} +1 -1
  112. package/dist/client/assets/MissionLeftAgentRow-vycMV77n.js +1 -0
  113. package/dist/client/assets/{MissionLogPane-CMBiI29U.js → MissionLogPane-B19lYSY9.js} +1 -1
  114. package/dist/client/assets/NativeAreaScreen-B1RLa85C.js +1 -0
  115. package/dist/client/assets/NativeAreaScreen-CV0OhGra.js +1 -0
  116. package/dist/client/assets/NativeAreaScreen-CzuZt6o1.js +1 -0
  117. package/dist/client/assets/{NewAgentModal-Cl4nsGhu.js → NewAgentModal-Bh-L-emz.js} +1 -1
  118. package/dist/client/assets/NewChatComposer-C97-iTMK.js +19 -0
  119. package/dist/client/assets/{NewChatOrigin-CyPPWTJP.js → NewChatOrigin-DFbF_XvR.js} +1 -1
  120. package/dist/client/assets/{NodeDetailPanel-BUG8rOb-.js → NodeDetailPanel-CElOEpCh.js} +1 -1
  121. package/dist/client/assets/{NodeMenu-Fw8ATWQA.js → NodeMenu-B-jjHf1c.js} +1 -1
  122. package/dist/client/assets/ObserveEmbedScreen-B7Qt69Ms.js +2 -0
  123. package/dist/client/assets/{ObserveTextFlow-ET0dD1wO.js → ObserveTextFlow-PFnG_10h.js} +2 -2
  124. package/dist/client/assets/{ObservedTopologyPanel-DkEkQzo-.js → ObservedTopologyPanel-CUTIoLZJ.js} +1 -1
  125. package/dist/client/assets/OpenScoutAppShell-37PDFfA4.js +31 -0
  126. package/dist/client/assets/OpsAgentsView-DajlX8LO.js +1 -0
  127. package/dist/client/assets/OpsScreen-jVcaBKGi.js +1 -0
  128. package/dist/client/assets/OpsSubnav-BOOYShHE.js +1 -0
  129. package/dist/client/assets/ProjectAgentProfile-D_wlW4sQ.js +1 -0
  130. package/dist/client/assets/{ProjectAgentProfileBar-C1fR65Eh.js → ProjectAgentProfileBar-DHuMKJj-.js} +1 -1
  131. package/dist/client/assets/ProjectAgentProfileHero-Dbebtug1.js +1 -0
  132. package/dist/client/assets/ProjectsInbox-B8zYE4vP.css +1 -0
  133. package/dist/client/assets/ProjectsInbox-Cgu7B4--.js +2 -0
  134. package/dist/client/assets/ProjectsRail-CDWocin_.js +1 -0
  135. package/dist/client/assets/ProjectsScreen-B_CJycqW.js +1 -0
  136. package/dist/client/assets/ProjectsThreadAside-1MMl_qUD.js +1 -0
  137. package/dist/client/assets/Provider-C35yu29I.js +5 -0
  138. package/dist/client/assets/{RailRow-BYguXNm4.js → RailRow-BjmWK420.js} +1 -1
  139. package/dist/client/assets/RawSessionsTable-DzT90hWu.js +1 -0
  140. package/dist/client/assets/RealtimeVoiceScreen-B6ylX3WQ.js +16 -0
  141. package/dist/client/assets/{RenderedWorkerSprite-CvdWO32C.js → RenderedWorkerSprite-Dhlyg89J.js} +1 -1
  142. package/dist/client/assets/{ReplayClock-B7JLTp8A.js → ReplayClock-348f17bW.js} +1 -1
  143. package/dist/client/assets/{ReplayLog-DZTpf2CW.js → ReplayLog-CBnAM3ui.js} +1 -1
  144. package/dist/client/assets/{ReplayOutpost-CvWQa30T.js → ReplayOutpost-DyRPfNFx.js} +1 -1
  145. package/dist/client/assets/{RepoDiffEmbedScreen-Cbu0_PJW.js → RepoDiffEmbedScreen-BWxvRDrS.js} +1 -1
  146. package/dist/client/assets/{RepoDiffPageScreen-Chwm6GXL.js → RepoDiffPageScreen-DN94irmY.js} +1 -1
  147. package/dist/client/assets/{RepoDiffViewer-C2mb0Wj-.js → RepoDiffViewer-_4JVXBIW.js} +1 -1
  148. package/dist/client/assets/RepoDiffViewerLazy-XGVC3WXv.js +2 -0
  149. package/dist/client/assets/{ReposScreen-C7JZQmyh.js → ReposScreen-uMCpt0e9.js} +2 -2
  150. package/dist/client/assets/{RiggedWorkerCharacter-DNe731GE.js → RiggedWorkerCharacter-q6QRc7_o.js} +1 -1
  151. package/dist/client/assets/{SageModelStudio-BR1J2D4R.js → SageModelStudio-CNDhZhgD.js} +1 -1
  152. package/dist/client/assets/{ScoutDeckSurface-flRamdvE.js → ScoutDeckSurface-CUaU4R6T.js} +1 -1
  153. package/dist/client/assets/{ScoutSurface-BpklGmDL.js → ScoutSurface-3_25USO_.js} +1 -1
  154. package/dist/client/assets/{ScoutbotFxLab-DeK7ySWZ.js → ScoutbotFxLab-CRqhYe0a.js} +1 -1
  155. package/dist/client/assets/{SecondaryNav-BkTn5tkq.js → SecondaryNav-D7dbV2qo.js} +1 -1
  156. package/dist/client/assets/SessionContextStrip-CXfs9hUD.js +1 -0
  157. package/dist/client/assets/SessionContextStrip-DAIXwtHd.css +1 -0
  158. package/dist/client/assets/{SessionEmbedScreen-CcQN6xlo.js → SessionEmbedScreen-D0zFmou-.js} +1 -1
  159. package/dist/client/assets/SessionHopMenu-E6VJZrE0.js +1 -0
  160. package/dist/client/assets/{SessionObserve-BOBJSfs0.css → SessionObserve-CDdJ7fAE.css} +1 -1
  161. package/dist/client/assets/SessionObserve-DXxBvejJ.js +12 -0
  162. package/dist/client/assets/SessionObserveEvidence-Cuj_KHxR.js +1 -0
  163. package/dist/client/assets/SessionRefScreen-DqLSUlCE.js +1 -0
  164. package/dist/client/assets/SessionsScreen-BLIRkohT.js +1 -0
  165. package/dist/client/assets/SettingsDrawer-juCpnbH6.js +3 -0
  166. package/dist/client/assets/SettingsScreen-BtGzE2-O.js +1 -0
  167. package/dist/client/assets/{SharedFloorCharacter-CSYG_t9t.js → SharedFloorCharacter-DNEiaOUh.js} +1 -1
  168. package/dist/client/assets/SharedWorkFloor-0rqtdF-n.css +1 -0
  169. package/dist/client/assets/SharedWorkFloor-D9mf9KSg.js +2 -0
  170. package/dist/client/assets/{ShikiPane-BudrOxNK.js → ShikiPane-CRtTYkMj.js} +1 -1
  171. package/dist/client/assets/{SlidePanel-Datu7XG4.js → SlidePanel-_CHAQdOa.js} +1 -1
  172. package/dist/client/assets/SpaceSwitcher-BLgSCf_T.js +1 -0
  173. package/dist/client/assets/{SpriteAvatar-BW1JzkDt.js → SpriteAvatar-CpZWf54-.js} +1 -1
  174. package/dist/client/assets/{SproutActionSprite-DveCzg6l.js → SproutActionSprite-BSiTS4en.js} +1 -1
  175. package/dist/client/assets/{StatusPill-MxYClPG5.js → StatusPill-2gCP6H7A.js} +1 -1
  176. package/dist/client/assets/{TailView-Dn7uWmPz.js → TailView-CYSijNTy.js} +2 -2
  177. package/dist/client/assets/Terminal-Bi97yb5s.js +4 -0
  178. package/dist/client/assets/TerminalEmbedScreen-Bqop67Bq.js +1 -0
  179. package/dist/client/assets/{TerminalHeaderMount-DCGstkZ4.js → TerminalHeaderMount-Cq4OD_xN.js} +1 -1
  180. package/dist/client/assets/TerminalRelay-DrikpUSJ.js +46 -0
  181. package/dist/client/assets/{TextDocumentSurface-BhYvAB0o.js → TextDocumentSurface-D52m7Vd8.js} +1 -1
  182. package/dist/client/assets/{TmuxPeek-BhK0V9Qt.js → TmuxPeek-CXFeweMg.js} +1 -1
  183. package/dist/client/assets/VoiceControlWell-DF3bjcYA.js +1 -0
  184. package/dist/client/assets/VoicePathDiagram-CmpHWfO-.js +1 -0
  185. package/dist/client/assets/{VoicePermissionsPanel-CecFWzva.js → VoicePermissionsPanel-Ok2nfxHw.js} +1 -1
  186. package/dist/client/assets/VoiceTurnDetails-wAByRaNB.js +8 -0
  187. package/dist/client/assets/VoiceTurnStage-edoJalLV.js +1 -0
  188. package/dist/client/assets/VoiceTurnView-D-8g5E4r.js +1 -0
  189. package/dist/client/assets/WorkDetailScreen-zQkNVy2F.js +5 -0
  190. package/dist/client/assets/{WorkFilesViewer-DJHftsH9.js → WorkFilesViewer-vNt01sDd.js} +1 -1
  191. package/dist/client/assets/{WorkRunView-x5PH1byG.js → WorkRunView-BDkR7Edq.js} +1 -1
  192. package/dist/client/assets/WorldActorTalk-BvSg_b1y.js +1 -0
  193. package/dist/client/assets/{WorldCharacter-Dn4sIXNP.js → WorldCharacter-CIIlutQq.js} +1 -1
  194. package/dist/client/assets/WorldMinimap-B6HNgcDe.js +1 -0
  195. package/dist/client/assets/{WorldSky-DV9bpvXj.js → WorldSky-Jm2Z6dfW.js} +1 -1
  196. package/dist/client/assets/{activity-CSUhvjD0.js → activity-CIlFrfPJ.js} +1 -1
  197. package/dist/client/assets/{addon-fit-MR98IWES.js → addon-fit-dFpj9Kfq.js} +1 -1
  198. package/dist/client/assets/{addon-webgl-CIIKXrvK.js → addon-webgl-BFCGRtGh.js} +1 -1
  199. package/dist/client/assets/{agent-essentials-8t2il7PV.js → agent-essentials-BGGvT5G6.js} +1 -1
  200. package/dist/client/assets/{agent-floor-actor-3v9drnxh.js → agent-floor-actor-DW8zLht0.js} +1 -1
  201. package/dist/client/assets/{agent-lane-card-model-l0stnU9N.js → agent-lane-card-model-CeqQGp-8.js} +1 -1
  202. package/dist/client/assets/{agent-lane-detail-Db7KyAlf.js → agent-lane-detail-Ti3trpfH.js} +1 -1
  203. package/dist/client/assets/{agent-lane-preview-B8lsQJOQ.js → agent-lane-preview-Dpa3DuOn.js} +1 -1
  204. package/dist/client/assets/{agent-lanes-model-CX0wTcnF.js → agent-lanes-model-DMAdqCmK.js} +1 -1
  205. package/dist/client/assets/{agent-master-model-C-KdOFDK.js → agent-master-model-Bk_yuUXJ.js} +1 -1
  206. package/dist/client/assets/{agent-specialization-CiVxQsFT.js → agent-specialization-DDc7mLCW.js} +1 -1
  207. package/dist/client/assets/agents-screen-BYakbO50.css +1 -0
  208. package/dist/client/assets/{api-B9_IqFKY.js → api-BQYTwoz6.js} +1 -1
  209. package/dist/client/assets/{api-CaROe5_H.js → api-DSqpVKC7.js} +1 -1
  210. package/dist/client/assets/{arc.es-BzhWalCl.js → arc.es-C1SQHJ3k.js} +1 -1
  211. package/dist/client/assets/{arrow-left-PuKdO3NM.js → arrow-left-MVUKauwQ.js} +1 -1
  212. package/dist/client/assets/{arrow-right-ldbfp4SZ.js → arrow-right-Bp-FpE5V.js} +1 -1
  213. package/dist/client/assets/{arrow-up-right-Hn754ybA.js → arrow-up-right-BPedAgxO.js} +1 -1
  214. package/dist/client/assets/{book-open-BlJnpf2U.js → book-open-CV98WMSp.js} +1 -1
  215. package/dist/client/assets/{bot-CfN9PSBF.js → bot-B4zLQ4IN.js} +1 -1
  216. package/dist/client/assets/{cache-DEy9E34b.js → cache-DGBo3vIf.js} +1 -1
  217. package/dist/client/assets/chat-api-DSJMBYoT.js +2 -0
  218. package/dist/client/assets/chat-message-markup-91DIry6R.js +1 -0
  219. package/dist/client/assets/chat-space-model-aW3Fd8_U.js +4 -0
  220. package/dist/client/assets/chat-transport-DNS5CB2I.js +1 -0
  221. package/dist/client/assets/{check-B8dMv3Is.js → check-lrJ3a73a.js} +1 -1
  222. package/dist/client/assets/{chevron-down-B5eMsn5c.js → chevron-down-l1mrh5S9.js} +1 -1
  223. package/dist/client/assets/{chevron-right-C7UGFpkl.js → chevron-right-DrfqcerI.js} +1 -1
  224. package/dist/client/assets/{chevron-up-BHOEgHcn.js → chevron-up-CETZJzjV.js} +1 -1
  225. package/dist/client/assets/{chunk-HRAB3GC3-C5X-kFhb.js → chunk-HRAB3GC3-DbVLgbWX.js} +1 -1
  226. package/dist/client/assets/{clock-DFcRbtrl.js → clock-BV1aqPkK.js} +1 -1
  227. package/dist/client/assets/{code-xml-BmyLM0I2.js → code-xml-BhcNbLWU.js} +1 -1
  228. package/dist/client/assets/{coffee-C_D9zooM.js → coffee-D7EAOdCk.js} +1 -1
  229. package/dist/client/assets/{compass-DTZdCpv9.js → compass-63TUaz5_.js} +1 -1
  230. package/dist/client/assets/content-B1lgE8qr.js +1 -0
  231. package/dist/client/assets/content-B5l11YyQ.js +1 -0
  232. package/dist/client/assets/content-BNZOZEpX.js +1 -0
  233. package/dist/client/assets/content-BRIxP155.js +1 -0
  234. package/dist/client/assets/content-BWd8gt8L.js +1 -0
  235. package/dist/client/assets/content-BfwS2jAK.js +1 -0
  236. package/dist/client/assets/content-C4p43_eT.js +1 -0
  237. package/dist/client/assets/content-CdYfaoDV.js +1 -0
  238. package/dist/client/assets/content-CzldLxw0.js +1 -0
  239. package/dist/client/assets/content-D-olnc4U.js +1 -0
  240. package/dist/client/assets/content-DTioimq4.js +1 -0
  241. package/dist/client/assets/content-LOebm3_d.js +1 -0
  242. package/dist/client/assets/content-nGlEZhUI.js +1 -0
  243. package/dist/client/assets/content-oyzDM-LK.js +1 -0
  244. package/dist/client/assets/content-x1PHxED7.js +1 -0
  245. package/dist/client/assets/content-zX3ZY3T9.js +1 -0
  246. package/dist/client/assets/{context-budget-DemtXu7E.js → context-budget-8qFKqM-j.js} +1 -1
  247. package/dist/client/assets/{conversation-icons-BQ4OeOmr.js → conversation-icons-Tqba2d56.js} +1 -1
  248. package/dist/client/assets/conversation-model-FxDeWlle.js +1 -0
  249. package/dist/client/assets/conversation-motion-features-C5zjuNwE.js +1 -0
  250. package/dist/client/assets/conversations-DoAAO6kA.js +1 -0
  251. package/dist/client/assets/{copy-D9WUpQRf.js → copy-xKeM5ZtU.js} +1 -1
  252. package/dist/client/assets/{cpu-Ck_4tB_-.js → cpu-BOTa_WLr.js} +1 -1
  253. package/dist/client/assets/{createLucideIcon-DkjnzvcJ.js → createLucideIcon-zZ8Hx7er.js} +1 -1
  254. package/dist/client/assets/{credentials-C4VXz2hr.js → credentials-OeoF-VKJ.js} +1 -1
  255. package/dist/client/assets/ctx-panel-BC8fpcWJ.css +1 -0
  256. package/dist/client/assets/direct-voice-BbLPuJ04.js +2 -0
  257. package/dist/client/assets/direct-voice-DbO7CSv_.css +1 -0
  258. package/dist/client/assets/discover-DJFxyV1k.js +2 -0
  259. package/dist/client/assets/embed-entry-Lyvu0Kfc.js +2 -0
  260. package/dist/client/assets/{external-link-RT4Ph-6-.js → external-link-CUObqmgX.js} +1 -1
  261. package/dist/client/assets/{eye-CtqSV8BS.js → eye-LrO-cXQt.js} +1 -1
  262. package/dist/client/assets/{file-code-corner-D_Aptal2.js → file-code-corner-CsU7jJpu.js} +1 -1
  263. package/dist/client/assets/{file-text-ChtICwub.js → file-text-CnISiiw6.js} +1 -1
  264. package/dist/client/assets/{flag-CqdOxVkI.js → flag-C4wl8z2-.js} +1 -1
  265. package/dist/client/assets/fleet-roll-call-BUgf7w-V.css +1 -0
  266. package/dist/client/assets/{floor-context-model-DZBpo_oD.js → floor-context-model-rWKqaKmV.js} +1 -1
  267. package/dist/client/assets/{floor-message-passes-CJh9f8Jp.js → floor-message-passes-CO3Ix_wR.js} +1 -1
  268. package/dist/client/assets/{folder-0fWevPvQ.js → folder-D5prSkzz.js} +1 -1
  269. package/dist/client/assets/{gauge-Dgtfxf_o.js → gauge-D9_5iJEm.js} +1 -1
  270. package/dist/client/assets/{gestures-BDCZ1FRG.js → gestures-QZub3Ot9.js} +1 -1
  271. package/dist/client/assets/{git-branch-CA3cHKCI.js → git-branch-B0_fPLO7.js} +1 -1
  272. package/dist/client/assets/{go-shortcuts-DKtw4qYx.js → go-shortcuts-DicR7sUf.js} +1 -1
  273. package/dist/client/assets/home-moving-signal-rpMhsOJB.js +1 -0
  274. package/dist/client/assets/home-now-card-ByE6Umcx.js +1 -0
  275. package/dist/client/assets/{home-now-card-nano-D1ScGrgv.js → home-now-card-nano-B5Dv3-pb.js} +1 -1
  276. package/dist/client/assets/hooks-_eCZZPsR.js +2 -0
  277. package/dist/client/assets/index-724SdE6r.js +1 -0
  278. package/dist/client/assets/{index-CvsM3jm8.js → index-CHD0qcfL.js} +1 -1
  279. package/dist/client/assets/index-CN4rBB_s.css +1 -0
  280. package/dist/client/assets/index-D1d98iYf.js +1 -0
  281. package/dist/client/assets/index-EsrkGBcv.js +10 -0
  282. package/dist/client/assets/index-gGHPA-By.js +1 -0
  283. package/dist/client/assets/{inspector-panel-BLhDODb3.js → inspector-panel-BkgUDn6G.js} +2 -2
  284. package/dist/client/assets/{keyboard-nav-CXfav14z.js → keyboard-nav-DDHegDbx.js} +1 -1
  285. package/dist/client/assets/lane-ask-display-BTVSakyo.js +18 -0
  286. package/dist/client/assets/{lane-observe-BD21P8BB.js → lane-observe-CteDwdD-.js} +3 -3
  287. package/dist/client/assets/{lane-roster-store-DzNHP392.js → lane-roster-store-D-RSWjb-.js} +1 -1
  288. package/dist/client/assets/{layers-Bolb8ejU.js → layers-C8PDiMul.js} +1 -1
  289. package/dist/client/assets/{layout-grid-DI9tVJ2E.js → layout-grid-Cor2frzj.js} +1 -1
  290. package/dist/client/assets/left-Bn5X7x2o.js +2 -0
  291. package/dist/client/assets/left-BqS0fYX1.js +1 -0
  292. package/dist/client/assets/left-CTCeeeD3.js +1 -0
  293. package/dist/client/assets/left-DhtVPVux.js +1 -0
  294. package/dist/client/assets/left-K39b-Wvx.js +2 -0
  295. package/dist/client/assets/left-KGmueNPt.js +1 -0
  296. package/dist/client/assets/left-P_GOYB-s.js +1 -0
  297. package/dist/client/assets/left-advisor-B0N47De2.js +1 -0
  298. package/dist/client/assets/left-agents-CsSNc51Y.js +1 -0
  299. package/dist/client/assets/left-default-BlO5LP2T.js +1 -0
  300. package/dist/client/assets/left-lanes-C4PhaJE6.js +1 -0
  301. package/dist/client/assets/left-mission-BjTE5vPa.js +1 -0
  302. package/dist/client/assets/library-CkWNPHRp.js +1 -0
  303. package/dist/client/assets/{loader-circle-DurUYl7E.js → loader-circle-OvccU82H.js} +1 -1
  304. package/dist/client/assets/{local-agents-D9fYYRyj.js → local-agents-BqnoxJrq.js} +1 -1
  305. package/dist/client/assets/log-in-7SnYqW5w.js +1 -0
  306. package/dist/client/assets/{machine-children-RGS4Q0r6.js → machine-children-DxcqCLmd.js} +1 -1
  307. package/dist/client/assets/media-blobs-Bi8pxr1u.js +1 -0
  308. package/dist/client/assets/{mentions-Ctw1ECUC.js → mentions-ByUvhS-v.js} +1 -1
  309. package/dist/client/assets/{mesh-ops-CGpRk4ik.js → mesh-ops-CiZ8xSAx.js} +1 -1
  310. package/dist/client/assets/{mesh-view-store-CliSYsmt.js → mesh-view-store-DZvJC4KU.js} +1 -1
  311. package/dist/client/assets/{message-circle-CSiJj6yo.js → message-circle-CxRVKNE-.js} +1 -1
  312. package/dist/client/assets/message-markup-BQW5jdJw.js +15 -0
  313. package/dist/client/assets/message-markup-Zwo3t4cI.js +1 -0
  314. package/dist/client/assets/{message-square-NmXWtWLR.js → message-square-BxesYglW.js} +1 -1
  315. package/dist/client/assets/mission-control-model-BpJHDV5D.js +1 -0
  316. package/dist/client/assets/{mission-control-store-DZ29Mlj1.js → mission-control-store-elEEsIvb.js} +1 -1
  317. package/dist/client/assets/{mission-wall-DOuGOxQy.js → mission-wall-CAo4BKfa.js} +1 -1
  318. package/dist/client/assets/monitor-DTTYEb73.js +1 -0
  319. package/dist/client/assets/{nav-destinations-CyXnw9kh.js → nav-destinations-uorRqFxf.js} +1 -1
  320. package/dist/client/assets/{observe-CkfOxYx_.js → observe-BJqERJVj.js} +1 -1
  321. package/dist/client/assets/{operator-attention-DGR4kOog.js → operator-attention-DBaRg5ep.js} +1 -1
  322. package/dist/client/assets/{page-status-CkS3SZu-.js → page-status-BswZLqvA.js} +1 -1
  323. package/dist/client/assets/{panel-right-BNTJhy8M.js → panel-right-Bv7sP_fc.js} +1 -1
  324. package/dist/client/assets/paperclip-BjcuP_Hx.js +1 -0
  325. package/dist/client/assets/{pause-DWS7YGQ3.js → pause-C2XTlkjs.js} +1 -1
  326. package/dist/client/assets/{persistent-state-xsuk6Kc-.js → persistent-state-KRk_yb0q.js} +1 -1
  327. package/dist/client/assets/{pin-DWlD1BOF.js → pin-C2mFOV1l.js} +1 -1
  328. package/dist/client/assets/{play-D_Pggug4.js → play-FT6K3It1.js} +1 -1
  329. package/dist/client/assets/{plus-D_wLGJGT.js → plus-DFDDeGKu.js} +1 -1
  330. package/dist/client/assets/profile-DTmzN16I.js +1 -0
  331. package/dist/client/assets/{projects-inbox-DvbqJO3q.js → projects-inbox-C0FUCv_p.js} +1 -1
  332. package/dist/client/assets/projects-inbox-ColX6lpx.css +1 -0
  333. package/dist/client/assets/provider-Dojd8quC.js +1 -0
  334. package/dist/client/assets/{proxy-DOG46ja4.js → proxy-AJsmwA6h.js} +1 -1
  335. package/dist/client/assets/{radio-C_jtwbFP.js → radio-DRoOZsws.js} +1 -1
  336. package/dist/client/assets/{refresh-cw-Da9DDLk2.js → refresh-cw-BmVr7sCD.js} +1 -1
  337. package/dist/client/assets/resolve-panes-pbY1fCWi.js +1 -0
  338. package/dist/client/assets/resolve-sidebar-context-YWkZTq1t.js +1 -0
  339. package/dist/client/assets/right-49kO-6nD.js +1 -0
  340. package/dist/client/assets/right-APtItA8A.js +1 -0
  341. package/dist/client/assets/right-BJwhPqtn.js +1 -0
  342. package/dist/client/assets/right-BPqrf4ek.js +1 -0
  343. package/dist/client/assets/right-D7djOy6K.js +1 -0
  344. package/dist/client/assets/right-DKOUCRob.js +1 -0
  345. package/dist/client/assets/right-DMNrVzg7.js +1 -0
  346. package/dist/client/assets/{right-BLJsc2-p.js → right-DWPVB-nK.js} +1 -1
  347. package/dist/client/assets/right-DppeMCy4.js +1 -0
  348. package/dist/client/assets/right-GAL5Mw1v.js +1 -0
  349. package/dist/client/assets/{rocket-DyrYDo8V.js → rocket-CGl4RTV7.js} +1 -1
  350. package/dist/client/assets/router-DCtl8wqb.js +1 -0
  351. package/dist/client/assets/runtime-picker-DXu2bOTh.js +1 -0
  352. package/dist/client/assets/{scope-views-B7PZGlhY.js → scope-views-RUWwCVAr.js} +1 -1
  353. package/dist/client/assets/scout-voice-CZx60X6E.js +1 -0
  354. package/dist/client/assets/{scoutbot-markdown-Bz0Vbto2.js → scoutbot-markdown-BKEBSbG0.js} +1 -1
  355. package/dist/client/assets/{scroll-text-DwC8r2g6.js → scroll-text-DNjxhyO2.js} +1 -1
  356. package/dist/client/assets/{search-C4VlW_0l.js → search-DT42oyRW.js} +1 -1
  357. package/dist/client/assets/secondaryNavConfig-CS1svh6n.js +1 -0
  358. package/dist/client/assets/secondaryNavConfig-D15P1Y9k.css +1 -0
  359. package/dist/client/assets/{selection-bridge-B5jqyMR9.js → selection-bridge-x3wFUjxj.js} +1 -1
  360. package/dist/client/assets/{send-horizontal-pOtGI7FM.js → send-horizontal-CH0-fbZE.js} +1 -1
  361. package/dist/client/assets/{send-to-agent-session-BZGq_ycy.js → send-to-agent-session-DoKCDBJ4.js} +1 -1
  362. package/dist/client/assets/{server-ms1yxUYJ.js → server-QfsgMLk1.js} +1 -1
  363. package/dist/client/assets/{session-catalog-s-T_w41t.js → session-catalog-CvSdPHPe.js} +1 -1
  364. package/dist/client/assets/session-recap-lanes-D-eVJnpY.js +1 -0
  365. package/dist/client/assets/session-recap-queue-41l2XVkI.js +1 -0
  366. package/dist/client/assets/{session-table-CDx_16xf.js → session-table-L-pns6Zl.js} +1 -1
  367. package/dist/client/assets/{sessions-view-DzYGsKWS.js → sessions-view-Dc-QAa7O.js} +1 -1
  368. package/dist/client/assets/{settings-TJIkkZ0P.js → settings-BVh7kldq.js} +1 -1
  369. package/dist/client/assets/{shared-work-artifacts-4IIQXQfc.js → shared-work-artifacts-DfNl9KTo.js} +1 -1
  370. package/dist/client/assets/{sliders-horizontal-CHf3ntw0.js → sliders-horizontal-782VC_yy.js} +1 -1
  371. package/dist/client/assets/{sparkles-BbOFw3d0.js → sparkles-BjHq_DNK.js} +1 -1
  372. package/dist/client/assets/{sse-v5QLsOHV.js → sse-BCPRocpq.js} +1 -1
  373. package/dist/client/assets/system-surfaces-redesign-q2BmCB7e.css +1 -0
  374. package/dist/client/assets/{tail-events-DQ46QBW1.js → tail-events-d0yAYxR0.js} +1 -1
  375. package/dist/client/assets/{terminal-96JWDYDL.js → terminal-hQKQygcf.js} +1 -1
  376. package/dist/client/assets/{terminal-relay-Bfx8pg80.js → terminal-relay-Bxs1hp-j.js} +1 -1
  377. package/dist/client/assets/{terminal-sessions-Ch9aYlgi.js → terminal-sessions-3RfJpen8.js} +1 -1
  378. package/dist/client/assets/{terminal-takeover-BlpxpvSp.js → terminal-takeover-Ay5C2c-M.js} +1 -1
  379. package/dist/client/assets/theme-vars-DNK0nn3k.js +1 -0
  380. package/dist/client/assets/triangle-alert-CHoRGdVO.js +1 -0
  381. package/dist/client/assets/use-beside-DoRC1nt0.js +1 -0
  382. package/dist/client/assets/{use-conversation-list-A_YUf8lo.js → use-conversation-list-CY4JciOV.js} +1 -1
  383. package/dist/client/assets/{use-fleet-active-asks-DFs_u-vM.js → use-fleet-active-asks-CymmXWH4.js} +1 -1
  384. package/dist/client/assets/{use-mesh-node-state-Ck9CYplv.js → use-mesh-node-state-BvaqtODo.js} +1 -1
  385. package/dist/client/assets/{use-mesh-ops-items-Be1WmwCg.js → use-mesh-ops-items-BSYaqH_0.js} +1 -1
  386. package/dist/client/assets/{use-reduced-motion-D7n3vK8t.js → use-reduced-motion-3gMYZNIp.js} +1 -1
  387. package/dist/client/assets/use-scout-dev-flags-DS_pYYQd.js +1 -0
  388. package/dist/client/assets/{useAgentHoverCard-Dr-OjNFF.js → useAgentHoverCard-BANmpjMh.js} +1 -1
  389. package/dist/client/assets/useContentSecondaryNav-C6OBu-3_.js +1 -0
  390. package/dist/client/assets/{useEmbedHeadline-BL8wQawZ.js → useEmbedHeadline-D6pJRxUg.js} +1 -1
  391. package/dist/client/assets/usePersistentState-B8lP7TRb.js +1 -0
  392. package/dist/client/assets/{usePierreRuntime-DJkRHMoe.js → usePierreRuntime-BAQdiN0L.js} +1 -1
  393. package/dist/client/assets/useSidebarCollapse-OL_8J5cL.js +1 -0
  394. package/dist/client/assets/users-BUjx36gx.js +1 -0
  395. package/dist/client/assets/voice-paths-CJUuBPh3.css +1 -0
  396. package/dist/client/assets/voice-turn-DftA0iIb.css +1 -0
  397. package/dist/client/assets/voice-turn-ledger-BMZxlSjg.js +1 -0
  398. package/dist/client/assets/{wrench-BsMTSeji.js → wrench-DR0i5BU7.js} +1 -1
  399. package/dist/client/assets/{x-DI1ktCYb.js → x-DAehov0E.js} +1 -1
  400. package/dist/client/assets/{xterm-B1YBE4Gq.js → xterm-BXQiLVnI.js} +1 -1
  401. package/dist/client/assets/{zap-sKPkh4sQ.js → zap-CEjZNZbI.js} +1 -1
  402. package/dist/client/crew/sheets/eye-plate-v1/look-down-left.webp +0 -0
  403. package/dist/client/crew/sheets/eye-plate-v1/look-down-right.webp +0 -0
  404. package/dist/client/crew/sheets/eye-plate-v1/look-down.webp +0 -0
  405. package/dist/client/crew/sheets/eye-plate-v1/look-up-left.webp +0 -0
  406. package/dist/client/crew/sheets/eye-plate-v1/look-up-right.webp +0 -0
  407. package/dist/client/crew/sheets/eye-plate-v1/look-up.webp +0 -0
  408. package/dist/client/crew/sheets/sprout/blink-half.webp +0 -0
  409. package/dist/client/crew/sheets/sprout/blink-shut.webp +0 -0
  410. package/dist/client/crew/sheets/sprout/look-down-left.webp +0 -0
  411. package/dist/client/crew/sheets/sprout/look-down-right.webp +0 -0
  412. package/dist/client/crew/sheets/sprout/look-down.webp +0 -0
  413. package/dist/client/crew/sheets/sprout/look-left.webp +0 -0
  414. package/dist/client/crew/sheets/sprout/look-right.webp +0 -0
  415. package/dist/client/crew/sheets/sprout/look-up-left.webp +0 -0
  416. package/dist/client/crew/sheets/sprout/look-up-right.webp +0 -0
  417. package/dist/client/crew/sheets/sprout/look-up.webp +0 -0
  418. package/dist/client/index.html +15 -3
  419. package/dist/drizzle/0019_session_actor_targets.sql +227 -0
  420. package/dist/drizzle/0020_message_reactions.sql +11 -0
  421. package/dist/drizzle/README.md +19 -0
  422. package/dist/drizzle/meta/_journal.json +14 -0
  423. package/dist/highlights-eq9cgrbb.scm +604 -0
  424. package/dist/highlights-ghv9g403.scm +205 -0
  425. package/dist/highlights-hk7bwhj4.scm +284 -0
  426. package/dist/highlights-r812a2qc.scm +150 -0
  427. package/dist/highlights-x6tmsnaa.scm +115 -0
  428. package/dist/injections-73j83es3.scm +27 -0
  429. package/dist/main.mjs +1721 -837
  430. package/dist/node/main.mjs +264 -39
  431. package/dist/pairing-runtime-controller.mjs +1090 -570
  432. package/dist/runtime/base-daemon.mjs +14272 -61
  433. package/dist/runtime/broker-daemon.mjs +16999 -1243
  434. package/dist/runtime/broker-process-manager.mjs +101 -6
  435. package/dist/runtime/mesh-discover.mjs +101 -6
  436. package/dist/scout-control-plane-web.mjs +27057 -6178
  437. package/dist/tree-sitter-javascript-nd0q4pe9.wasm +0 -0
  438. package/dist/tree-sitter-markdown-411r6y9b.wasm +0 -0
  439. package/dist/tree-sitter-markdown_inline-j5349f42.wasm +0 -0
  440. package/dist/tree-sitter-typescript-zxjzwt75.wasm +0 -0
  441. package/dist/tree-sitter-zig-e78zbjpm.wasm +0 -0
  442. package/dist/update-helper.mjs +294 -56
  443. package/package.json +2 -2
  444. package/dist/client/assets/ActivityScreen-DCALiEXY.js +0 -1
  445. package/dist/client/assets/AgentAdventures-NwTKeF0F.js +0 -1
  446. package/dist/client/assets/AgentAvatar-BIwg54Tj.js +0 -1
  447. package/dist/client/assets/AgentConfigurationScreen-B2Hw0ce1.js +0 -1
  448. package/dist/client/assets/AgentDefinitionsWorkspace-CwZJ833X.js +0 -1
  449. package/dist/client/assets/AgentFloorView-l2wNKFob.js +0 -1
  450. package/dist/client/assets/AgentInfoScreen-ClZM1wQb.js +0 -1
  451. package/dist/client/assets/AgentLanesEmbedScreen-DqHwqY0X.js +0 -1
  452. package/dist/client/assets/AgentLanesView-aAyC7lHf.js +0 -2
  453. package/dist/client/assets/AgentMasterScreen-By6DN0jF.js +0 -1
  454. package/dist/client/assets/AgentSessions-Cox2zS-e.js +0 -6
  455. package/dist/client/assets/AgentsConsole-Dq0S_hRA.js +0 -1
  456. package/dist/client/assets/AgentsScreen-Bi9Lx47B.js +0 -1
  457. package/dist/client/assets/AgentsSubnav-BOobgtGE.js +0 -1
  458. package/dist/client/assets/BriefingDetailScreen-sprFl4Nk.js +0 -1
  459. package/dist/client/assets/BrokerScreen-CejzhRsB.js +0 -8
  460. package/dist/client/assets/ConversationComposer-B7RU6LKd.js +0 -1
  461. package/dist/client/assets/ConversationFeedRows-DVqnZQH0.js +0 -1
  462. package/dist/client/assets/ConversationHeader-CCSU8uo_.js +0 -1
  463. package/dist/client/assets/ConversationScreen-Brfas2y0.css +0 -1
  464. package/dist/client/assets/ConversationScreen-tTP6B_F-.js +0 -2
  465. package/dist/client/assets/ConversationStatus-CK-YfLpi.js +0 -1
  466. package/dist/client/assets/CrewAvatar-CJhuqTsJ.js +0 -1
  467. package/dist/client/assets/CrewWorkspaces-4O8dgRUD.js +0 -1
  468. package/dist/client/assets/CrewWorkspaces-Diq11KDq.css +0 -1
  469. package/dist/client/assets/FlightObserveScreen-DDXfNbsw.js +0 -1
  470. package/dist/client/assets/FloorResourcesSheet-Djrgd_ZU.js +0 -1
  471. package/dist/client/assets/FloorTacticalHUD-Bngao6sn.js +0 -1
  472. package/dist/client/assets/HarnessMark-Bt47OeHy.js +0 -1
  473. package/dist/client/assets/HarnessesScreen-M84sFjWY.js +0 -1
  474. package/dist/client/assets/KnowledgeSearchScreen-WC0WhFio.js +0 -1
  475. package/dist/client/assets/LaneTraceDetailSheet-mAhj7MJi.js +0 -1
  476. package/dist/client/assets/MeshScreen-DlfiMlaR.js +0 -1
  477. package/dist/client/assets/MessagesScreen-BZ7yaGJx.js +0 -1
  478. package/dist/client/assets/MissionControlView-DpGhxG4a.js +0 -1
  479. package/dist/client/assets/MissionLeftAgentRow-DhhRRim0.js +0 -1
  480. package/dist/client/assets/NativeAreaScreen-BQyHHRAM.js +0 -1
  481. package/dist/client/assets/NativeAreaScreen-Ditv-TYW.js +0 -1
  482. package/dist/client/assets/NativeAreaScreen-Dq3uPSEI.js +0 -1
  483. package/dist/client/assets/NewChatComposer-JjLbm3W2.js +0 -19
  484. package/dist/client/assets/ObserveEmbedScreen-BPiSXXvm.js +0 -2
  485. package/dist/client/assets/OpenScoutAppShell-CzKbjwCA.js +0 -22
  486. package/dist/client/assets/OpsAgentsView-CZbtkcQH.js +0 -1
  487. package/dist/client/assets/OpsScreen-DJq-aBmX.js +0 -1
  488. package/dist/client/assets/OpsSubnav-9sURjajO.js +0 -1
  489. package/dist/client/assets/ProjectAgentProfile-q_1tMJIL.js +0 -1
  490. package/dist/client/assets/ProjectAgentProfileHero-DyEFyTFs.js +0 -1
  491. package/dist/client/assets/ProjectsInbox-Bs8I__my.js +0 -2
  492. package/dist/client/assets/ProjectsRail-Deb38OJ1.js +0 -1
  493. package/dist/client/assets/ProjectsScreen-CgLiYiss.js +0 -1
  494. package/dist/client/assets/ProjectsThreadAside-C0Yw3yIL.js +0 -1
  495. package/dist/client/assets/Provider-5Hotn7NQ.js +0 -5
  496. package/dist/client/assets/RawSessionsTable-DIhmlvk-.js +0 -1
  497. package/dist/client/assets/RealtimeVoiceScreen-3oU7b7V5.js +0 -1
  498. package/dist/client/assets/RepoDiffViewerLazy-BQ6ZCrsq.js +0 -2
  499. package/dist/client/assets/SessionObserve-DaqDhqDI.js +0 -12
  500. package/dist/client/assets/SessionObserveEvidence-Drv-D8Oh.js +0 -1
  501. package/dist/client/assets/SessionRefScreen-BOQ1_ydg.js +0 -1
  502. package/dist/client/assets/SessionsScreen-R8QKvoey.js +0 -1
  503. package/dist/client/assets/SettingsDrawer-BDapR4E9.js +0 -3
  504. package/dist/client/assets/SettingsScreen-DirtO7Z0.js +0 -1
  505. package/dist/client/assets/SharedWorkFloor-BCmdeb3Q.css +0 -1
  506. package/dist/client/assets/SharedWorkFloor-yPWFLZwX.js +0 -2
  507. package/dist/client/assets/Terminal-D-DsQlmV.js +0 -4
  508. package/dist/client/assets/TerminalEmbedScreen-9Gmln759.js +0 -1
  509. package/dist/client/assets/WorkDetailScreen-CwtRCm_-.js +0 -5
  510. package/dist/client/assets/WorldActorTalk-uIH2jGqA.js +0 -1
  511. package/dist/client/assets/WorldMinimap-Blqg0d5r.js +0 -1
  512. package/dist/client/assets/agent-autocomplete-C7xwIcwd.css +0 -1
  513. package/dist/client/assets/agent-autocomplete-CeHQpuG9.js +0 -10
  514. package/dist/client/assets/agents-screen-BMu6PpRY.css +0 -1
  515. package/dist/client/assets/arrow-down-WoVlkUmg.js +0 -1
  516. package/dist/client/assets/chunk-JTPDIGGW-ZC-98AHT.js +0 -46
  517. package/dist/client/assets/chunk-T65CQEWV-CSVUz2rY.js +0 -1
  518. package/dist/client/assets/chunk-YOZR3KYS-B59jqwO0.js +0 -2
  519. package/dist/client/assets/content-B5Q4pb9R.js +0 -1
  520. package/dist/client/assets/content-BK1IfOZs.js +0 -1
  521. package/dist/client/assets/content-BeEsWLEm.js +0 -1
  522. package/dist/client/assets/content-BkOwEknW.js +0 -1
  523. package/dist/client/assets/content-C32W5kAG.js +0 -1
  524. package/dist/client/assets/content-CoqyLs9v.js +0 -1
  525. package/dist/client/assets/content-CwpdIS5b.js +0 -1
  526. package/dist/client/assets/content-DS2OkJ3Q.js +0 -1
  527. package/dist/client/assets/content-DXKaPDfn.js +0 -1
  528. package/dist/client/assets/content-DZt5-dkI.js +0 -1
  529. package/dist/client/assets/content-DbQJH8L1.js +0 -1
  530. package/dist/client/assets/content-DetoiaHq.js +0 -1
  531. package/dist/client/assets/content-Dhu3wL7J.js +0 -1
  532. package/dist/client/assets/content-Dpv34iZu.js +0 -1
  533. package/dist/client/assets/content-TtQJb61D.js +0 -1
  534. package/dist/client/assets/content-ymNb2R7g.js +0 -1
  535. package/dist/client/assets/conversation-model-BGFHoxQ0.js +0 -1
  536. package/dist/client/assets/conversation-motion-features-9x8uZpwh.js +0 -1
  537. package/dist/client/assets/conversations-Cbg9h_Af.js +0 -1
  538. package/dist/client/assets/ctx-panel-F05jXK4Q.css +0 -1
  539. package/dist/client/assets/discover-C8IOY7_K.js +0 -2
  540. package/dist/client/assets/embed-entry-CG3CfCbm.js +0 -2
  541. package/dist/client/assets/home-moving-signal-B7m-ngb2.js +0 -1
  542. package/dist/client/assets/home-now-card-DduXkHRR.js +0 -1
  543. package/dist/client/assets/hooks-C6VyQTQe.js +0 -2
  544. package/dist/client/assets/index-C5cX8dkl.js +0 -1
  545. package/dist/client/assets/index-C8uS5szO.js +0 -10
  546. package/dist/client/assets/index-Ck1__1yL.css +0 -1
  547. package/dist/client/assets/index-ClOOrVG1.js +0 -1
  548. package/dist/client/assets/index-Crtgfc9I.js +0 -1
  549. package/dist/client/assets/lane-ask-display-B6iCAVcd.js +0 -18
  550. package/dist/client/assets/left-B-_z_nqj.js +0 -2
  551. package/dist/client/assets/left-B1LY7rJc.js +0 -1
  552. package/dist/client/assets/left-C6bdjWcG.js +0 -2
  553. package/dist/client/assets/left-CF4iuqlz.js +0 -1
  554. package/dist/client/assets/left-DLtNyZl1.js +0 -1
  555. package/dist/client/assets/left-Fpxoq-VY.js +0 -1
  556. package/dist/client/assets/left-N2wXfTlp.js +0 -1
  557. package/dist/client/assets/left-advisor-CeIjCKbd.js +0 -1
  558. package/dist/client/assets/left-agents-upjHVlOj.js +0 -1
  559. package/dist/client/assets/left-default-08gmdCtb.js +0 -1
  560. package/dist/client/assets/left-lanes-Cvsp73Hw.js +0 -1
  561. package/dist/client/assets/left-mission-W1LLaz74.js +0 -1
  562. package/dist/client/assets/library-DLKBVUJ6.js +0 -1
  563. package/dist/client/assets/message-markup-DgFSyb3f.js +0 -15
  564. package/dist/client/assets/mission-control-model-C30vU1Fe.js +0 -1
  565. package/dist/client/assets/profile-C3KgiZvc.js +0 -1
  566. package/dist/client/assets/projects-inbox-BIW7nv-H.css +0 -1
  567. package/dist/client/assets/resolve-panes-DuowGRTk.js +0 -1
  568. package/dist/client/assets/resolve-sidebar-context-BkTbqteq.js +0 -1
  569. package/dist/client/assets/right-B9OUA6Ho.js +0 -1
  570. package/dist/client/assets/right-BDQnjetX.js +0 -1
  571. package/dist/client/assets/right-BUbKHmRH.js +0 -1
  572. package/dist/client/assets/right-Ci2IcD4s.js +0 -1
  573. package/dist/client/assets/right-CmCce3e5.js +0 -1
  574. package/dist/client/assets/right-D7w0zM5a.js +0 -1
  575. package/dist/client/assets/right-DIoON_bv.js +0 -1
  576. package/dist/client/assets/right-E0Jr3VN5.js +0 -1
  577. package/dist/client/assets/right-lCdAk9dW.js +0 -1
  578. package/dist/client/assets/router-BKiMcYa7.js +0 -1
  579. package/dist/client/assets/runtime-picker-DdsttHHc.js +0 -1
  580. package/dist/client/assets/scout-voice-DOQ_B77g.js +0 -1
  581. package/dist/client/assets/secondaryNavConfig-DAXIFtVd.js +0 -1
  582. package/dist/client/assets/secondaryNavConfig-xssF_ubT.css +0 -1
  583. package/dist/client/assets/system-surfaces-redesign-DKFg4GB5.css +0 -1
  584. package/dist/client/assets/use-beside-Df-F2Uvg.js +0 -1
  585. package/dist/client/assets/use-scout-dev-flags-0TXfQcG0.js +0 -1
  586. package/dist/client/assets/useContentSecondaryNav-CGvMOVGY.js +0 -1
  587. package/dist/drizzle/meta/0000_snapshot.json +0 -4575
  588. package/dist/drizzle/meta/0001_snapshot.json +0 -4624
  589. package/dist/drizzle/meta/0002_snapshot.json +0 -4631
  590. package/dist/drizzle/meta/0003_snapshot.json +0 -4952
  591. package/dist/drizzle/meta/0004_snapshot.json +0 -5235
  592. package/dist/drizzle/meta/0005_snapshot.json +0 -5599
  593. package/dist/drizzle/meta/0006_snapshot.json +0 -5606
  594. package/dist/drizzle/meta/0007_snapshot.json +0 -5767
  595. package/dist/drizzle/meta/0008_snapshot.json +0 -5774
  596. package/dist/drizzle/meta/0009_snapshot.json +0 -6262
  597. package/dist/drizzle/meta/0010_snapshot.json +0 -6286
  598. package/dist/drizzle/meta/0011_snapshot.json +0 -6337
  599. package/dist/drizzle/meta/0012_snapshot.json +0 -6458
  600. package/dist/drizzle/meta/0013_snapshot.json +0 -6465
  601. package/dist/drizzle/meta/0014_snapshot.json +0 -6503
  602. package/dist/drizzle/meta/0015_snapshot.json +0 -6596
  603. package/dist/drizzle/meta/0016_snapshot.json +0 -6611
  604. package/dist/drizzle/meta/0017_snapshot.json +0 -6785
  605. package/dist/drizzle/meta/0018_snapshot.json +0 -6804
@@ -0,0 +1,31 @@
1
+ import{ab as Ei,u as ly,r as s,j as p,F as Li}from"./index-EsrkGBcv.js";import{u as gn}from"./usePersistentState-B8lP7TRb.js";import{C as v5}from"./Canvas-X9pVSkw3.js";import{r as ft}from"./index-724SdE6r.js";import{u as Si,a as y5,H as w5}from"./TerminalRelay-DrikpUSJ.js";import{b as x5,a as Pr,F as C5}from"./provider-Dojd8quC.js";import{av as k5,u as uy,U as E5,d as dy,S as L5,p as fy,q as S5,t as $5,v as j5}from"./router-DCtl8wqb.js";import{u as py,i as my,e as O5,f as R5,c as M5,d as P5}from"./keyboard-nav-DDHegDbx.js";import{i as Ks,u as hy}from"./use-scout-dev-flags-DS_pYYQd.js";import{X as Rd}from"./x-DAehov0E.js";import{F as T5}from"./flag-C4wl8z2-.js";import{s as A5,S as I5,d as N5}from"./scope-views-RUWwCVAr.js";import{F as gy,B as D5,u as Xt,D as V5}from"./Provider-C35yu29I.js";import{a as Pu}from"./api-DSqpVKC7.js";import"./index-BWHgHrtv.js";import"./AgentDetailCard-DtHT3sCo.js";/* empty css *//* empty css */import"./NewChatComposer-C97-iTMK.js";import"./CrewAvatar-kTznzqcO.js";/* empty css *//* empty css */import"./BackToPicker-CUkjnoVk.js";import"./AgentLiveActions-CfTupTEl.js";import"./ObservedTopologyPanel-CUTIoLZJ.js";/* empty css */import"./secondaryNavConfig-CS1svh6n.js";/* empty css */import"./runtime-picker-DXu2bOTh.js";import"./ConversationScreen-CUfsQ4MR.js";/* empty css */import"./CommsFlowGraph-DxoOaLF_.js";import"./CommsCanvas-THp0r_U8.js";/* empty css */import"./SessionContextStrip-CXfs9hUD.js";import"./SessionObserve-DXxBvejJ.js";/* empty css *//* empty css */import"./projects-inbox-C0FUCv_p.js";import"./ProjectsInbox-Cgu7B4--.js";/* empty css */import"./left-K39b-Wvx.js";/* empty css *//* empty css */import"./cache-DGBo3vIf.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./left-Bn5X7x2o.js";import"./RailRow-BjmWK420.js";import"./content-BNZOZEpX.js";import{u as F5}from"./mesh-view-store-DZvJC4KU.js";import"./NodeMenu-B-jjHf1c.js";import"./left-DhtVPVux.js";/* empty css */import"./mesh-ops-CiZ8xSAx.js";import"./left-mission-BjTE5vPa.js";import"./mission-control-store-elEEsIvb.js";/* empty css *//* empty css *//* empty css */import"./CrewSprite-Dhryjx2c.js";/* empty css *//* empty css *//* empty css */import"./SharedWorkFloor-D9mf9KSg.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./SlidePanel-_CHAQdOa.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./TailView-CYSijNTy.js";/* empty css */import"./RepoDiffViewerLazy-XGVC3WXv.js";/* empty css *//* empty css *//* empty css */import"./CastPicker-BXUtPAGC.js";import"./SettingsDrawer-juCpnbH6.js";import"./left-CTCeeeD3.js";/* empty css */import{F as B5}from"./DocumentFocusViewer-DJr0v0D_.js";import{b as H5,c as W5,a as z5}from"./direct-voice-BbLPuJ04.js";import"./credentials-OeoF-VKJ.js";/* empty css *//* empty css */import{N as xo,f as _5,g as U5,h as $s,i as K5,j as G5,k as Y5}from"./hooks-_eCZZPsR.js";import{G as X5,g as q5}from"./go-shortcuts-DicR7sUf.js";import{o as Z5,i as J5}from"./surface-activity-B1rgWB1i.js";import{L as Q5}from"./loader-circle-OvccU82H.js";import{P as ek}from"./play-FT6K3It1.js";import{f as Nn,P as Gs,g as by,h as vy,s as tk,i as nk}from"./nav-destinations-uorRqFxf.js";import{P as rk}from"./plus-DFDDeGKu.js";import{c as $i}from"./createLucideIcon-zZ8Hx7er.js";import{b as bn,R as js,c as yy,r as Os,u as ok,S as sk,d as ik,e as fa,f as pp,a as ak,g as mp,h as ck,i as lk,j as hp,k as gp}from"./useSidebarCollapse-OL_8J5cL.js";import{resolveSidebarContext as uk}from"./resolve-sidebar-context-YWkZTq1t.js";import{a as Md}from"./colors-CFlbwC25.js";import{n as dk,i as wy}from"./agent-state-DDhnFEEP.js";import{b as xy,m as fk,d as pk}from"./machine-scope-DJt9RZ2w.js";import{a as mk}from"./machine-children-DxcqCLmd.js";import{u as hk}from"./sse-BCPRocpq.js";import{f as gk,a as bk,d as vk}from"./terminal-sessions-3RfJpen8.js";import{o as bp}from"./openAgent-Dbv5wfuL.js";import{A as Cy}from"./AgentAvatar-CrP1eXxk.js";import{C as Hn,a as yk,b as tn,c as Pd,d as wk}from"./ChatCollapsedStrip-FEmQ_G9J.js";import{U as ky,C as xk}from"./users-BUjx36gx.js";import{L as Ck}from"./layout-grid-Cor2frzj.js";import{A as Ey}from"./activity-CIlFrfPJ.js";import{OpsSubnav as kk}from"./OpsSubnav-BOOYShHE.js";import{A as vp}from"./arrow-left-MVUKauwQ.js";import{A as Ek}from"./arrow-right-Bp-FpE5V.js";import{S as Ly}from"./search-DT42oyRW.js";import{M as yp}from"./message-square-BxesYglW.js";import{C as Lk}from"./chevron-down-l1mrh5S9.js";import{C as Sk}from"./chevron-right-DrfqcerI.js";import{P as $k}from"./panel-right-Bv7sP_fc.js";import{P as jk}from"./pin-C2mFOV1l.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./theme-vars-DNK0nn3k.js";import"./scoutbot-Bk3nyrkj.js";import"./model-CBkMvT1w.js";import"./time-Dhsh_2EG.js";import"./index-CHD0qcfL.js";import"./TextDocumentSurface-D52m7Vd8.js";import"./folder-D5prSkzz.js";import"./file-text-CnISiiw6.js";import"./chevron-up-CETZJzjV.js";import"./code-xml-BhcNbLWU.js";import"./scout-voice-CZx60X6E.js";import"./fx-z37u1o2z.js";import"./voice-turn-ledger-BMZxlSjg.js";import"./media-blobs-Bi8pxr1u.js";import"./chunk-HRAB3GC3-DbVLgbWX.js";import"./HarnessMark-C4naWc16.js";import"./conversation-model-FxDeWlle.js";import"./conversations-DoAAO6kA.js";import"./NewChatOrigin-DFbF_XvR.js";import"./terminal-takeover-Ay5C2c-M.js";import"./openContent-C6XO6kr5.js";import"./eye-LrO-cXQt.js";import"./terminal-hQKQygcf.js";import"./voice-levels-Dcr3jglk.js";import"./ComposerAttachments-DW0AIb8k.js";import"./message-markup-Zwo3t4cI.js";import"./message-markup-BQW5jdJw.js";import"./mentions-ByUvhS-v.js";import"./message-visibility-DwxgcgYK.js";import"./operator-attention-DBaRg5ep.js";import"./sessionRead-CvFz2RHv.js";import"./clipboard-e3fSpeo7.js";import"./MessageEmbeds-ksPazAKH.js";import"./types-B0PlfpKc.js";import"./ConversationHeader-C-ZWscKj.js";import"./AstronautSuit-Cchnc4Ug.js";import"./SpriteAvatar-CpZWf54-.js";import"./use-beside-DoRC1nt0.js";import"./use-conversation-list-CY4JciOV.js";import"./agent-master-model-Bk_yuUXJ.js";import"./comms-deck-CBhsXnY-.js";import"./ConversationComposer-CUQyArlk.js";import"./zap-CEjZNZbI.js";import"./ConversationFeedRows-DWiOfT-y.js";import"./ConversationPanels-D9oC0xG5.js";import"./tail-display-DHSNmvor.js";import"./lane-edit-display-BjdT9oZl.js";import"./use-reduced-motion-3gMYZNIp.js";import"./proxy-AJsmwA6h.js";import"./message-circle-CxRVKNE-.js";import"./tail-events-d0yAYxR0.js";import"./ConversationStatus--IPm2nGh.js";import"./check-lrJ3a73a.js";import"./sparkles-BjHq_DNK.js";import"./triangle-alert-CHoRGdVO.js";import"./comms-gesture-_aGFo6g3.js";import"./CommsFlowMap-Vi8ziCPg.js";import"./CommsSelection-BUoRbu9o.js";import"./bash-format-BRV5C6Gv.js";import"./lane-tool-detail-Czggx8oM.js";import"./LaneToolHoverCard-CJa110yk.js";import"./lane-observe-CteDwdD-.js";import"./lane-ask-display-BTVSakyo.js";import"./SessionHopMenu-E6VJZrE0.js";import"./external-link-CUObqmgX.js";import"./ObserveTextFlow-PFnG_10h.js";import"./SessionObserveEvidence-Cuj_KHxR.js";import"./wrench-DR0i5BU7.js";import"./ui-LM8pS8qE.js";import"./SessionRefScreen-DqLSUlCE.js";import"./session-ref-lookup-state-SATH_jAP.js";import"./CrewWorkspaces-DCBzAAS4.js";import"./AddProjectForm-CusDRiVO.js";import"./agent-specialization-DDc7mLCW.js";import"./project-overview-helpers-BQTc_Ous.js";import"./useEmbedHeadline-D6pJRxUg.js";import"./api-BQYTwoz6.js";import"./arrow-up-right-BPedAgxO.js";import"./conversation-prefs-DNre-Lcx.js";import"./use-fleet-active-asks-CymmXWH4.js";import"./sessions-view-Dc-QAa7O.js";import"./HomeHero-DouPyNmz.js";import"./refresh-cw-BmVr7sCD.js";import"./observe-BJqERJVj.js";import"./persistent-state-KRk_yb0q.js";import"./agent-lanes-model-DMAdqCmK.js";import"./context-budget-8qFKqM-j.js";import"./home-moving-signal-rpMhsOJB.js";import"./home-live-action-BkqGLVRY.js";import"./cpu-BOTa_WLr.js";import"./git-branch-B0_fPLO7.js";import"./file-code-corner-CsU7jJpu.js";import"./use-mesh-node-state-BvaqtODo.js";import"./MissionLeftAgentRow-vycMV77n.js";import"./page-status-BswZLqvA.js";import"./WorldMinimap-B6HNgcDe.js";import"./WorldSky-Jm2Z6dfW.js";import"./WorldActorTalk-BvSg_b1y.js";import"./send-to-agent-session-DoKCDBJ4.js";import"./FloorExchangePanel-BU1pPu8K.js";import"./floor-character-name-CqJPOlXb.js";import"./floor-message-passes-CO3Ix_wR.js";import"./floor-preview-text-HrORUJ7D.js";import"./shared-work-artifacts-DfNl9KTo.js";import"./agent-lane-detail-Ti3trpfH.js";import"./floor-memory-YMM8AlLY.js";import"./CharacterFamilyPreview-DMfw7UM_.js";import"./RenderedWorkerSprite-Dhlyg89J.js";import"./FloorMessagePasses-cLW2UGNP.js";import"./WorkRunView-BDkR7Edq.js";import"./floor-context-model-rWKqaKmV.js";import"./agent-floor-actor-DW8zLht0.js";import"./SharedFloorCharacter-DNEiaOUh.js";import"./WorldCharacter-CIIlutQq.js";import"./RiggedWorkerCharacter-q6QRc7_o.js";import"./CrewStage-vdO0qm3D.js";import"./VoicePermissionsPanel-Ok2nfxHw.js";import"./monitor-DTTYEb73.js";import"./copy-xKeM5ZtU.js";import"./terminal-relay-Bxs1hp-j.js";import"./session-table-L-pns6Zl.js";import"./clock-BV1aqPkK.js";import"./layers-C8PDiMul.js";import"./log-in-7SnYqW5w.js";import"./radio-DRoOZsws.js";import"./bot-B4zLQ4IN.js";import"./server-QfsgMLk1.js";import"./session-recap-lanes-D-eVJnpY.js";import"./session-recap-queue-41l2XVkI.js";import"./settings-BVh7kldq.js";import"./compass-63TUaz5_.js";import"./scroll-text-DNjxhyO2.js";import"./left-KGmueNPt.js";import"./ProjectsRail-CDWocin_.js";import"./left-BqS0fYX1.js";import"./use-mesh-ops-items-BSYaqH_0.js";import"./left-P_GOYB-s.js";import"./left-agents-CsSNc51Y.js";import"./left-default-BlO5LP2T.js";import"./left-lanes-C4PhaJE6.js";import"./lane-roster-store-D-RSWjb-.js";import"./left-advisor-B0N47De2.js";import"./gauge-D9_5iJEm.js";import"./MeshCanvasMinimap-iswYFpIb.js";import"./SecondaryNav-D7dbV2qo.js";var pa={exports:{}},ma={};var wp;function Ok(){if(wp)return ma;wp=1;var e=Ei();function t(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function c(f,m){var h=m(),g=r({inst:{value:h,getSnapshot:m}}),v=g[0].inst,w=g[1];return i(function(){v.value=h,v.getSnapshot=m,u(v)&&w({inst:v})},[f,h,m]),o(function(){return u(v)&&w({inst:v}),f(function(){u(v)&&w({inst:v})})},[f]),a(h),h}function u(f){var m=f.getSnapshot;f=f.value;try{var h=m();return!n(f,h)}catch{return!0}}function l(f,m){return m()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:c;return ma.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,ma}var xp;function Sy(){return xp||(xp=1,pa.exports=Ok()),pa.exports}var Rk=Sy();function Mk(e="h",t=12){const n=globalThis.crypto;if(n&&typeof n.randomUUID=="function"){const o=n.randomUUID().replace(/-/g,"").slice(0,t);return e?`${e}_${o}`:o}if(n&&typeof n.getRandomValues=="function"){const o=new Uint8Array(Math.ceil(t/2));n.getRandomValues(o);const i=Array.from(o,a=>a.toString(16).padStart(2,"0")).join("").slice(0,t);return e?`${e}_${i}`:i}const r=Math.random().toString(36).slice(2,2+t);return e?`${e}_${r}`:r}const Pk=200,Tk=()=>Date.now(),Ak=()=>Mk("h",12),Ik=e=>e instanceof Error?{name:e.name,message:e.message}:{message:String(e)},Nk=()=>{const e=globalThis;return e.H_OBSERVABILITY===!0||e.H_DEBUG===!0};class Dk{sinks=new Map;get size(){return this.sinks.size}add(t,n={}){const r=n.kinds?new Set(n.kinds):null;return this.sinks.set(t,{kinds:r}),()=>{this.sinks.delete(t)}}emit(t){for(const[n,r]of this.sinks)if(!(r.kinds&&!r.kinds.has(t.kind)))try{n(t)}catch{}}}class Vk{constructor(t){this.owner=t}owner;log(t,n,r={}){const o={id:this.owner.createId(),kind:"log",timestamp:this.owner.now(),level:t,message:n,category:r.category,data:r.data};return this.owner.emit(o),o}debug(t,n){return this.log("debug",t,n)}info(t,n){return this.log("info",t,n)}warn(t,n){return this.log("warn",t,n)}error(t,n){return this.log("error",t,n)}}class Fk{constructor(t){this.owner=t}owner;counter(t,n=1,r={}){return this.record("counter",t,n,r)}gauge(t,n,r={}){return this.record("gauge",t,n,r)}timing(t,n,r={}){return this.record("timing",t,n,{...r,unit:r.unit??"ms"})}record(t,n,r,o){const i={id:this.owner.createId(),kind:"metric",timestamp:this.owner.now(),metricType:t,name:n,value:r,category:o.category,unit:o.unit,tags:o.tags,data:o.data};return this.owner.emit(i),i}}class Bk{constructor(t,n){this.owner=t,this.event=n,this.owner.emit({...n})}owner;event;ended=!1;end(t){if(this.ended)return this.event;const n=this.owner.now();return this.ended=!0,this.event.endTime=n,this.event.durationMs=Math.max(0,n-this.event.startTime),this.event.status="ok",t&&(this.event.data={...this.event.data,...t}),this.owner.emit({...this.event}),this.event}error(t,n){if(this.ended)return this.event;const r=this.owner.now();return this.ended=!0,this.event.endTime=r,this.event.durationMs=Math.max(0,r-this.event.startTime),this.event.status="error",this.event.error=Ik(t),n&&(this.event.data={...this.event.data,...n}),this.owner.emit({...this.event}),this.event}}class Hk{constructor(t){this.owner=t}owner;start(t,n={}){const r=this.owner.createId(),o=this.owner.now(),i={id:r,kind:"span",timestamp:o,name:t,traceId:n.traceId??r,parentId:n.parentId,startTime:o,status:"active",category:n.category,data:n.data};return new Bk(this.owner,i)}}class Td{logger=new Vk(this);metrics=new Fk(this);trace=new Hk(this);sinks=new Dk;buffer=[];maxBufferSize;enabled;nowFn;createIdFn;constructor(t={}){this.enabled=t.enabled??!0,this.maxBufferSize=Math.max(0,t.maxBufferSize??Pk),this.nowFn=t.now??Tk,this.createIdFn=t.createId??Ak}static global(t={}){return new Td({...t,enabled:t.enabled??Nk()})}get isEnabled(){return this.enabled}setEnabled(t){this.enabled=t}subscribe(t,n={}){const r=this.sinks.add(t,n);if(n.replay)for(const o of this.buffer)n.kinds&&!n.kinds.includes(o.kind)||t(o);return r}flush(){const t=this.buffer.slice();return this.buffer.length=0,t}snapshot(){return this.buffer.slice()}emit(t){return this.enabled&&(this.remember(t),this.sinks.size>0&&this.sinks.emit(t)),t}now(){return this.nowFn()}createId(){return this.createIdFn()}remember(t){this.maxBufferSize!==0&&(this.buffer.push(t),this.buffer.length>this.maxBufferSize&&this.buffer.splice(0,this.buffer.length-this.maxBufferSize))}}const Nt=Td.global(),Tr={panels:{statusBar:"bg-card/95 backdrop-blur-xl border-t border-[var(--hud-chrome-border-subtle)] shadow-[var(--hud-shadow-bar)] fixed bottom-0 left-0 right-0 z-[60]"},zIndex:{navigationStack:50,drawer:70},layout:{navHeight:48,statusBarHeight:28}},Wk=Tr.panels,F=ly.createContext({});var zk=Object.defineProperty,Cp=Object.getOwnPropertySymbols,_k=Object.prototype.hasOwnProperty,Uk=Object.prototype.propertyIsEnumerable,kp=(e,t,n)=>t in e?zk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ha=(e,t)=>{for(var n in t||(t={}))_k.call(t,n)&&kp(e,n,t[n]);if(Cp)for(var n of Cp(t))Uk.call(t,n)&&kp(e,n,t[n]);return e};const Kk=(e,t)=>{const n=s.useContext(F),r=ha(ha({},n),e);return s.createElement("svg",ha({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M3 12H6L9 3L15 21L18 12H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Gk=s.forwardRef(Kk);var Yk=Gk,Xk=Object.defineProperty,Ep=Object.getOwnPropertySymbols,qk=Object.prototype.hasOwnProperty,Zk=Object.prototype.propertyIsEnumerable,Lp=(e,t,n)=>t in e?Xk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ga=(e,t)=>{for(var n in t||(t={}))qk.call(t,n)&&Lp(e,n,t[n]);if(Ep)for(var n of Ep(t))Zk.call(t,n)&&Lp(e,n,t[n]);return e};const Jk=(e,t)=>{const n=s.useContext(F),r=ga(ga({},n),e);return s.createElement("svg",ga({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17.5 8C17.5 8 19 9.5 19 12C19 14.5 17.5 16 17.5 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.5 5C20.5 5 23 7.5 23 12C23 16.5 20.5 19 20.5 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6.5 8C6.5 8 5 9.5 5 12C5 14.5 6.5 16 6.5 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3.5 5C3.5 5 1 7.5 1 12C1 16.5 3.5 19 3.5 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Qk=s.forwardRef(Jk);var eE=Qk,tE=Object.defineProperty,Sp=Object.getOwnPropertySymbols,nE=Object.prototype.hasOwnProperty,rE=Object.prototype.propertyIsEnumerable,$p=(e,t,n)=>t in e?tE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ba=(e,t)=>{for(var n in t||(t={}))nE.call(t,n)&&$p(e,n,t[n]);if(Sp)for(var n of Sp(t))rE.call(t,n)&&$p(e,n,t[n]);return e};const oE=(e,t)=>{const n=s.useContext(F),r=ba(ba({},n),e);return s.createElement("svg",ba({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M2 19V5C2 3.89543 2.89543 3 4 3H20C21.1046 3 22 3.89543 22 5V19C22 20.1046 21.1046 21 20 21H4C2.89543 21 2 20.1046 2 19Z",stroke:"currentColor"}),s.createElement("path",{d:"M2 7L22 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M5 5.01L5.01 4.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 5.01L8.01 4.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M11 5.01L11.01 4.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},sE=s.forwardRef(oE);var iE=sE,aE=Object.defineProperty,jp=Object.getOwnPropertySymbols,cE=Object.prototype.hasOwnProperty,lE=Object.prototype.propertyIsEnumerable,Op=(e,t,n)=>t in e?aE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,va=(e,t)=>{for(var n in t||(t={}))cE.call(t,n)&&Op(e,n,t[n]);if(jp)for(var n of jp(t))lE.call(t,n)&&Op(e,n,t[n]);return e};const uE=(e,t)=>{const n=s.useContext(F),r=va(va({},n),e);return s.createElement("svg",va({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 3L12 21M12 21L20.5 12.5M12 21L3.5 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},dE=s.forwardRef(uE);var fE=dE,pE=Object.defineProperty,Rp=Object.getOwnPropertySymbols,mE=Object.prototype.hasOwnProperty,hE=Object.prototype.propertyIsEnumerable,Mp=(e,t,n)=>t in e?pE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ya=(e,t)=>{for(var n in t||(t={}))mE.call(t,n)&&Mp(e,n,t[n]);if(Rp)for(var n of Rp(t))hE.call(t,n)&&Mp(e,n,t[n]);return e};const gE=(e,t)=>{const n=s.useContext(F),r=ya(ya({},n),e);return s.createElement("svg",ya({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M3 12L21 12M21 12L12.5 3.5M21 12L12.5 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},bE=s.forwardRef(gE);var vE=bE,yE=Object.defineProperty,Pp=Object.getOwnPropertySymbols,wE=Object.prototype.hasOwnProperty,xE=Object.prototype.propertyIsEnumerable,Tp=(e,t,n)=>t in e?yE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wa=(e,t)=>{for(var n in t||(t={}))wE.call(t,n)&&Tp(e,n,t[n]);if(Pp)for(var n of Pp(t))xE.call(t,n)&&Tp(e,n,t[n]);return e};const CE=(e,t)=>{const n=s.useContext(F),r=wa(wa({},n),e);return s.createElement("svg",wa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 16L12 21L7 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},kE=s.forwardRef(CE);var EE=kE,LE=Object.defineProperty,Ap=Object.getOwnPropertySymbols,SE=Object.prototype.hasOwnProperty,$E=Object.prototype.propertyIsEnumerable,Ip=(e,t,n)=>t in e?LE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xa=(e,t)=>{for(var n in t||(t={}))SE.call(t,n)&&Ip(e,n,t[n]);if(Ap)for(var n of Ap(t))$E.call(t,n)&&Ip(e,n,t[n]);return e};const jE=(e,t)=>{const n=s.useContext(F),r=xa(xa({},n),e);return s.createElement("svg",xa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17 4L12 9L7 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 20L12 15L7 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},OE=s.forwardRef(jE);var RE=OE,ME=Object.defineProperty,Np=Object.getOwnPropertySymbols,PE=Object.prototype.hasOwnProperty,TE=Object.prototype.propertyIsEnumerable,Dp=(e,t,n)=>t in e?ME(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ca=(e,t)=>{for(var n in t||(t={}))PE.call(t,n)&&Dp(e,n,t[n]);if(Np)for(var n of Np(t))TE.call(t,n)&&Dp(e,n,t[n]);return e};const AE=(e,t)=>{const n=s.useContext(F),r=Ca(Ca({},n),e);return s.createElement("svg",Ca({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 21L12 3M12 3L20.5 11.5M12 3L3.5 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},IE=s.forwardRef(AE);var NE=IE,DE=Object.defineProperty,Vp=Object.getOwnPropertySymbols,VE=Object.prototype.hasOwnProperty,FE=Object.prototype.propertyIsEnumerable,Fp=(e,t,n)=>t in e?DE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ka=(e,t)=>{for(var n in t||(t={}))VE.call(t,n)&&Fp(e,n,t[n]);if(Vp)for(var n of Vp(t))FE.call(t,n)&&Fp(e,n,t[n]);return e};const BE=(e,t)=>{const n=s.useContext(F),r=ka(ka({},n),e);return s.createElement("svg",ka({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M21.4383 11.6622L12.2483 20.8522C11.1225 21.9781 9.59552 22.6106 8.00334 22.6106C6.41115 22.6106 4.88418 21.9781 3.75834 20.8522C2.63249 19.7264 2 18.1994 2 16.6072C2 15.015 2.63249 13.4881 3.75834 12.3622L12.9483 3.17222C13.6989 2.42166 14.7169 2 15.7783 2C16.8398 2 17.8578 2.42166 18.6083 3.17222C19.3589 3.92279 19.7806 4.94077 19.7806 6.00222C19.7806 7.06368 19.3589 8.08166 18.6083 8.83222L9.40834 18.0222C9.03306 18.3975 8.52406 18.6083 7.99334 18.6083C7.46261 18.6083 6.95362 18.3975 6.57834 18.0222C6.20306 17.6469 5.99222 17.138 5.99222 16.6072C5.99222 16.0765 6.20306 15.5675 6.57834 15.1922L15.0683 6.71222",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},HE=s.forwardRef(BE);var WE=HE,zE=Object.defineProperty,Bp=Object.getOwnPropertySymbols,_E=Object.prototype.hasOwnProperty,UE=Object.prototype.propertyIsEnumerable,Hp=(e,t,n)=>t in e?zE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ea=(e,t)=>{for(var n in t||(t={}))_E.call(t,n)&&Hp(e,n,t[n]);if(Bp)for(var n of Bp(t))UE.call(t,n)&&Hp(e,n,t[n]);return e};const KE=(e,t)=>{const n=s.useContext(F),r=Ea(Ea({},n),e);return s.createElement("svg",Ea({width:"1.5em",strokeWidth:1.5,height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M5 19.5V5C5 3.89543 5.89543 3 7 3H18.4C18.7314 3 19 3.26863 19 3.6V21",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M9 7L15 7",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M6.5 15L19 15",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M6.5 18L19 18",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M6.5 21L19 21",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M6.5 18C5.5 18 5 17.3284 5 16.5C5 15.6716 5.5 15 6.5 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6.5 21C5.5 21 5 20.3284 5 19.5C5 18.6716 5.5 18 6.5 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},GE=s.forwardRef(KE);var YE=GE,XE=Object.defineProperty,Wp=Object.getOwnPropertySymbols,qE=Object.prototype.hasOwnProperty,ZE=Object.prototype.propertyIsEnumerable,zp=(e,t,n)=>t in e?XE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,La=(e,t)=>{for(var n in t||(t={}))qE.call(t,n)&&zp(e,n,t[n]);if(Wp)for(var n of Wp(t))ZE.call(t,n)&&zp(e,n,t[n]);return e};const JE=(e,t)=>{const n=s.useContext(F),r=La(La({},n),e);return s.createElement("svg",La({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M2.6954 7.18536L11.6954 11.1854L12.3046 9.81464L3.3046 5.81464L2.6954 7.18536ZM12.75 21.5V10.5H11.25V21.5H12.75ZM12.3046 11.1854L21.3046 7.18536L20.6954 5.81464L11.6954 9.81464L12.3046 11.1854Z",fill:"currentColor"}),s.createElement("path",{d:"M3 17.1101V6.88992C3 6.65281 3.13964 6.43794 3.35632 6.34164L11.7563 2.6083C11.9115 2.53935 12.0885 2.53935 12.2437 2.6083L20.6437 6.34164C20.8604 6.43794 21 6.65281 21 6.88992V17.1101C21 17.3472 20.8604 17.5621 20.6437 17.6584L12.2437 21.3917C12.0885 21.4606 11.9115 21.4606 11.7563 21.3917L3.35632 17.6584C3.13964 17.5621 3 17.3472 3 17.1101Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.5 4.5L16.1437 8.34164C16.3604 8.43794 16.5 8.65281 16.5 8.88992V12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},QE=s.forwardRef(JE);var e4=QE,t4=Object.defineProperty,_p=Object.getOwnPropertySymbols,n4=Object.prototype.hasOwnProperty,r4=Object.prototype.propertyIsEnumerable,Up=(e,t,n)=>t in e?t4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sa=(e,t)=>{for(var n in t||(t={}))n4.call(t,n)&&Up(e,n,t[n]);if(_p)for(var n of _p(t))r4.call(t,n)&&Up(e,n,t[n]);return e};const o4=(e,t)=>{const n=s.useContext(F),r=Sa(Sa({},n),e);return s.createElement("svg",Sa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7 14C5.34315 14 4 15.3431 4 17C4 18.6569 5.34315 20 7 20C7.35064 20 7.68722 19.9398 8 19.8293",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.26392 15.6046C2.9243 14.9582 2.00004 13.587 2.00004 12C2.00004 10.7883 2.53877 9.70251 3.38978 8.96898",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3.42053 8.8882C3.1549 8.49109 3 8.01363 3 7.5C3 6.11929 4.11929 5 5.5 5C6.06291 5 6.58237 5.18604 7.00024 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.23769 5.56533C7.08524 5.24215 7 4.88103 7 4.5C7 3.11929 8.11929 2 9.5 2C10.8807 2 12 3.11929 12 4.5V20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 20C8 21.1046 8.89543 22 10 22C11.1046 22 12 21.1046 12 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 7C12 8.65685 13.3431 10 15 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.6102 8.96898C21.4612 9.70251 22 10.7883 22 12C22 12.7031 21.8186 13.3638 21.5 13.9379",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.5795 8.8882C20.8451 8.49109 21 8.01363 21 7.5C21 6.11929 19.8807 5 18.5 5C17.9371 5 17.4176 5.18604 16.9998 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 4.5C12 3.11929 13.1193 2 14.5 2C15.8807 2 17 3.11929 17 4.5C17 4.88103 16.9148 5.24215 16.7623 5.56533",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M14 22C12.8954 22 12 21.1046 12 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M18.6667 16L17 19H21L19.3333 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},s4=s.forwardRef(o4);var i4=s4,a4=Object.defineProperty,Kp=Object.getOwnPropertySymbols,c4=Object.prototype.hasOwnProperty,l4=Object.prototype.propertyIsEnumerable,Gp=(e,t,n)=>t in e?a4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$a=(e,t)=>{for(var n in t||(t={}))c4.call(t,n)&&Gp(e,n,t[n]);if(Kp)for(var n of Kp(t))l4.call(t,n)&&Gp(e,n,t[n]);return e};const u4=(e,t)=>{const n=s.useContext(F),r=$a($a({},n),e);return s.createElement("svg",$a({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7 14C5.34315 14 4 15.3431 4 17C4 18.6569 5.34315 20 7 20C7.35064 20 7.68722 19.9398 8 19.8293",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.26392 15.6046C2.9243 14.9582 2.00004 13.587 2.00004 12C2.00004 10.7883 2.53877 9.70251 3.38978 8.96898",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3.42053 8.8882C3.1549 8.49109 3 8.01363 3 7.5C3 6.11929 4.11929 5 5.5 5C6.06291 5 6.58237 5.18604 7.00024 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.23769 5.56533C7.08524 5.24215 7 4.88103 7 4.5C7 3.11929 8.11929 2 9.5 2C10.8807 2 12 3.11929 12 4.5V20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 20C8 21.1046 8.89543 22 10 22C11.1046 22 12 21.1046 12 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 7C12 8.65685 13.3431 10 15 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 14C18.6569 14 20 15.3431 20 17C20 18.6569 18.6569 20 17 20C16.6494 20 16.3128 19.9398 16 19.8293",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M19.7361 15.6046C21.0757 14.9582 22 13.587 22 12C22 10.7883 21.4612 9.70251 20.6102 8.96898",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.5795 8.8882C20.8451 8.49109 21 8.01363 21 7.5C21 6.11929 19.8807 5 18.5 5C17.9371 5 17.4176 5.18604 16.9998 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 4.5C12 3.11929 13.1193 2 14.5 2C15.8807 2 17 3.11929 17 4.5C17 4.88103 16.9148 5.24215 16.7623 5.56533",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M16 20C16 21.1046 15.1046 22 14 22C12.8954 22 12 21.1046 12 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},d4=s.forwardRef(u4);var f4=d4,p4=Object.defineProperty,Yp=Object.getOwnPropertySymbols,m4=Object.prototype.hasOwnProperty,h4=Object.prototype.propertyIsEnumerable,Xp=(e,t,n)=>t in e?p4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ja=(e,t)=>{for(var n in t||(t={}))m4.call(t,n)&&Xp(e,n,t[n]);if(Yp)for(var n of Yp(t))h4.call(t,n)&&Xp(e,n,t[n]);return e};const g4=(e,t)=>{const n=s.useContext(F),r=ja(ja({},n),e);return s.createElement("svg",ja({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M2 15V9C2 5.68629 4.68629 3 8 3H16C19.3137 3 22 5.68629 22 9V15C22 18.3137 19.3137 21 16 21H8C4.68629 21 2 18.3137 2 15Z",stroke:"currentColor"}),s.createElement("path",{d:"M11.6667 8L10 12H14L12.3333 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},b4=s.forwardRef(g4);var v4=b4,y4=Object.defineProperty,qp=Object.getOwnPropertySymbols,w4=Object.prototype.hasOwnProperty,x4=Object.prototype.propertyIsEnumerable,Zp=(e,t,n)=>t in e?y4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oa=(e,t)=>{for(var n in t||(t={}))w4.call(t,n)&&Zp(e,n,t[n]);if(qp)for(var n of qp(t))x4.call(t,n)&&Zp(e,n,t[n]);return e};const C4=(e,t)=>{const n=s.useContext(F),r=Oa(Oa({},n),e);return s.createElement("svg",Oa({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M2 19V9C2 7.89543 2.89543 7 4 7H4.5C5.12951 7 5.72229 6.70361 6.1 6.2L8.32 3.24C8.43331 3.08892 8.61115 3 8.8 3H15.2C15.3889 3 15.5667 3.08892 15.68 3.24L17.9 6.2C18.2777 6.70361 18.8705 7 19.5 7H20C21.1046 7 22 7.89543 22 9V19C22 20.1046 21.1046 21 20 21H4C2.89543 21 2 20.1046 2 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 17C14.2091 17 16 15.2091 16 13C16 10.7909 14.2091 9 12 9C9.79086 9 8 10.7909 8 13C8 15.2091 9.79086 17 12 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},k4=s.forwardRef(C4);var E4=k4,L4=Object.defineProperty,Jp=Object.getOwnPropertySymbols,S4=Object.prototype.hasOwnProperty,$4=Object.prototype.propertyIsEnumerable,Qp=(e,t,n)=>t in e?L4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ra=(e,t)=>{for(var n in t||(t={}))S4.call(t,n)&&Qp(e,n,t[n]);if(Jp)for(var n of Jp(t))$4.call(t,n)&&Qp(e,n,t[n]);return e};const j4=(e,t)=>{const n=s.useContext(F),r=Ra(Ra({},n),e);return s.createElement("svg",Ra({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17 12.5C17.2761 12.5 17.5 12.2761 17.5 12C17.5 11.7239 17.2761 11.5 17 11.5C16.7239 11.5 16.5 11.7239 16.5 12C16.5 12.2761 16.7239 12.5 17 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 12.5C7.27614 12.5 7.5 12.2761 7.5 12C7.5 11.7239 7.27614 11.5 7 11.5C6.72386 11.5 6.5 11.7239 6.5 12C6.5 12.2761 6.72386 12.5 7 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 13.8214 2.48697 15.5291 3.33782 17L2.5 21.5L7 20.6622C8.47087 21.513 10.1786 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},O4=s.forwardRef(j4);var R4=O4,M4=Object.defineProperty,em=Object.getOwnPropertySymbols,P4=Object.prototype.hasOwnProperty,T4=Object.prototype.propertyIsEnumerable,tm=(e,t,n)=>t in e?M4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ma=(e,t)=>{for(var n in t||(t={}))P4.call(t,n)&&tm(e,n,t[n]);if(em)for(var n of em(t))T4.call(t,n)&&tm(e,n,t[n]);return e};const A4=(e,t)=>{const n=s.useContext(F),r=Ma(Ma({},n),e);return s.createElement("svg",Ma({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7 12.5L10 15.5L17 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},I4=s.forwardRef(A4);var N4=I4,D4=Object.defineProperty,nm=Object.getOwnPropertySymbols,V4=Object.prototype.hasOwnProperty,F4=Object.prototype.propertyIsEnumerable,rm=(e,t,n)=>t in e?D4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pa=(e,t)=>{for(var n in t||(t={}))V4.call(t,n)&&rm(e,n,t[n]);if(nm)for(var n of nm(t))F4.call(t,n)&&rm(e,n,t[n]);return e};const B4=(e,t)=>{const n=s.useContext(F),r=Pa(Pa({},n),e);return s.createElement("svg",Pa({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M5 13L9 17L19 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},H4=s.forwardRef(B4);var W4=H4,z4=Object.defineProperty,om=Object.getOwnPropertySymbols,_4=Object.prototype.hasOwnProperty,U4=Object.prototype.propertyIsEnumerable,sm=(e,t,n)=>t in e?z4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ta=(e,t)=>{for(var n in t||(t={}))_4.call(t,n)&&sm(e,n,t[n]);if(om)for(var n of om(t))U4.call(t,n)&&sm(e,n,t[n]);return e};const K4=(e,t)=>{const n=s.useContext(F),r=Ta(Ta({},n),e);return s.createElement("svg",Ta({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},G4=s.forwardRef(K4);var Y4=G4,X4=Object.defineProperty,im=Object.getOwnPropertySymbols,q4=Object.prototype.hasOwnProperty,Z4=Object.prototype.propertyIsEnumerable,am=(e,t,n)=>t in e?X4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Aa=(e,t)=>{for(var n in t||(t={}))q4.call(t,n)&&am(e,n,t[n]);if(im)for(var n of im(t))Z4.call(t,n)&&am(e,n,t[n]);return e};const J4=(e,t)=>{const n=s.useContext(F),r=Aa(Aa({},n),e);return s.createElement("svg",Aa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 6L12 12L18 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21.8883 10.5C21.1645 5.68874 17.013 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C16.1006 22 19.6248 19.5318 21.1679 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 16H21.4C21.7314 16 22 16.2686 22 16.6V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Q4=s.forwardRef(J4);var e6=Q4,t6=Object.defineProperty,cm=Object.getOwnPropertySymbols,n6=Object.prototype.hasOwnProperty,r6=Object.prototype.propertyIsEnumerable,lm=(e,t,n)=>t in e?t6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ia=(e,t)=>{for(var n in t||(t={}))n6.call(t,n)&&lm(e,n,t[n]);if(cm)for(var n of cm(t))r6.call(t,n)&&lm(e,n,t[n]);return e};const o6=(e,t)=>{const n=s.useContext(F),r=Ia(Ia({},n),e);return s.createElement("svg",Ia({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 6L12 12L18 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},s6=s.forwardRef(o6);var i6=s6,a6=Object.defineProperty,um=Object.getOwnPropertySymbols,c6=Object.prototype.hasOwnProperty,l6=Object.prototype.propertyIsEnumerable,dm=(e,t,n)=>t in e?a6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Na=(e,t)=>{for(var n in t||(t={}))c6.call(t,n)&&dm(e,n,t[n]);if(um)for(var n of um(t))l6.call(t,n)&&dm(e,n,t[n]);return e};const u6=(e,t)=>{const n=s.useContext(F),r=Na(Na({},n),e);return s.createElement("svg",Na({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 4C6 4 6 8 6 10C4.33333 10 1 11 1 15C1 19 4.33333 20 6 20H18C19.6667 20 23 19 23 15C23 11 19.6667 10 18 10C18 8 18 4 12 4Z",stroke:"currentColor",strokeLinejoin:"round"}))},d6=s.forwardRef(u6);var f6=d6,p6=Object.defineProperty,fm=Object.getOwnPropertySymbols,m6=Object.prototype.hasOwnProperty,h6=Object.prototype.propertyIsEnumerable,pm=(e,t,n)=>t in e?p6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Da=(e,t)=>{for(var n in t||(t={}))m6.call(t,n)&&pm(e,n,t[n]);if(fm)for(var n of fm(t))h6.call(t,n)&&pm(e,n,t[n]);return e};const g6=(e,t)=>{const n=s.useContext(F),r=Da(Da({},n),e);return s.createElement("svg",Da({width:"1.5em",strokeWidth:1.5,height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M10 17L9.33334 17C8.22877 17 7.33334 16.1047 7.33334 15.0002C7.33334 14.3284 7.33334 13.6211 7.33333 13.1111C7.33333 12.5556 6 12 6 12C6 12 7.33333 11.4444 7.33334 10.8889C7.33334 10.4359 7.33334 9.70586 7.33334 8.99998C7.33334 7.89541 8.22877 7 9.33334 7L10 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M14 17L14.6667 17C15.7712 17 16.6667 16.1047 16.6667 15.0002C16.6667 14.3284 16.6667 13.6211 16.6667 13.1111C16.6667 12.5556 18 12 18 12C18 12 16.6667 11.4444 16.6667 10.8889C16.6667 10.4359 16.6667 9.70586 16.6667 8.99998C16.6667 7.89541 15.7712 7 14.6667 7L14 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21 3.6V20.4C21 20.7314 20.7314 21 20.4 21H3.6C3.26863 21 3 20.7314 3 20.4V3.6C3 3.26863 3.26863 3 3.6 3H20.4C20.7314 3 21 3.26863 21 3.6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},b6=s.forwardRef(g6);var $y=b6,v6=Object.defineProperty,mm=Object.getOwnPropertySymbols,y6=Object.prototype.hasOwnProperty,w6=Object.prototype.propertyIsEnumerable,hm=(e,t,n)=>t in e?v6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Va=(e,t)=>{for(var n in t||(t={}))y6.call(t,n)&&hm(e,n,t[n]);if(mm)for(var n of mm(t))w6.call(t,n)&&hm(e,n,t[n]);return e};const x6=(e,t)=>{const n=s.useContext(F),r=Va(Va({},n),e);return s.createElement("svg",Va({width:"1.5em",strokeWidth:1.5,height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M9.00001 21L8.00001 21C6.89544 21 6.00001 20.1057 6.00001 19.0011C6.00001 17.4501 6.00001 15.3443 6 14C6 13 4.5 12 4.5 12C4.5 12 6.00001 11 6.00001 10C6.00001 8.827 6.00001 6.62207 6.00001 4.99914C6.00001 3.89457 6.89544 3 8.00001 3L9.00001 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M15 21L16 21C17.1046 21 18 20.1057 18 19.0011C18 17.4501 18 15.3443 18 14C18 13 19.5 12 19.5 12C19.5 12 18 11 18 10C18 8.827 18 6.62207 18 4.99914C18 3.89457 17.1046 3 16 3L15 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},C6=s.forwardRef(x6);var k6=C6,E6=Object.defineProperty,gm=Object.getOwnPropertySymbols,L6=Object.prototype.hasOwnProperty,S6=Object.prototype.propertyIsEnumerable,bm=(e,t,n)=>t in e?E6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fa=(e,t)=>{for(var n in t||(t={}))L6.call(t,n)&&bm(e,n,t[n]);if(gm)for(var n of gm(t))S6.call(t,n)&&bm(e,n,t[n]);return e};const $6=(e,t)=>{const n=s.useContext(F),r=Fa(Fa({},n),e);return s.createElement("svg",Fa({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M13.5 6L10 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6.5 8.5L3 12L6.5 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17.5 8.5L21 12L17.5 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},j6=s.forwardRef($6);var O6=j6,R6=Object.defineProperty,vm=Object.getOwnPropertySymbols,M6=Object.prototype.hasOwnProperty,P6=Object.prototype.propertyIsEnumerable,ym=(e,t,n)=>t in e?R6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ba=(e,t)=>{for(var n in t||(t={}))M6.call(t,n)&&ym(e,n,t[n]);if(vm)for(var n of vm(t))P6.call(t,n)&&ym(e,n,t[n]);return e};const T6=(e,t)=>{const n=s.useContext(F),r=Ba(Ba({},n),e);return s.createElement("svg",Ba({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M10.5857 10.5857L16.9496 7.0502L13.4141 13.4142L7.05012 16.9497L10.5857 10.5857Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},A6=s.forwardRef(T6);var I6=A6,N6=Object.defineProperty,wm=Object.getOwnPropertySymbols,D6=Object.prototype.hasOwnProperty,V6=Object.prototype.propertyIsEnumerable,xm=(e,t,n)=>t in e?N6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ha=(e,t)=>{for(var n in t||(t={}))D6.call(t,n)&&xm(e,n,t[n]);if(wm)for(var n of wm(t))V6.call(t,n)&&xm(e,n,t[n]);return e};const F6=(e,t)=>{const n=s.useContext(F),r=Ha(Ha({},n),e);return s.createElement("svg",Ha({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M2 21L17 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21 21L22 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2 16.4V3.6C2 3.26863 2.26863 3 2.6 3H21.4C21.7314 3 22 3.26863 22 3.6V16.4C22 16.7314 21.7314 17 21.4 17H2.6C2.26863 17 2 16.7314 2 16.4Z",stroke:"currentColor"}))},B6=s.forwardRef(F6);var H6=B6,W6=Object.defineProperty,Cm=Object.getOwnPropertySymbols,z6=Object.prototype.hasOwnProperty,_6=Object.prototype.propertyIsEnumerable,km=(e,t,n)=>t in e?W6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wa=(e,t)=>{for(var n in t||(t={}))z6.call(t,n)&&km(e,n,t[n]);if(Cm)for(var n of Cm(t))_6.call(t,n)&&km(e,n,t[n]);return e};const U6=(e,t)=>{const n=s.useContext(F),r=Wa(Wa({},n),e);return s.createElement("svg",Wa({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6.75469 17.2828L5.32612 7.28284C5.154 6.07798 6.08892 5 7.30602 5H10.694C11.9111 5 12.846 6.07797 12.6739 7.28284L11.2453 17.2828C11.1046 18.2681 10.2607 19 9.26541 19H8.73459C7.73929 19 6.89545 18.2681 6.75469 17.2828Z",stroke:"currentColor"}),s.createElement("path",{d:"M2 12L6 12M22 12L12 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},K6=s.forwardRef(U6);var jy=K6,G6=Object.defineProperty,Em=Object.getOwnPropertySymbols,Y6=Object.prototype.hasOwnProperty,X6=Object.prototype.propertyIsEnumerable,Lm=(e,t,n)=>t in e?G6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,za=(e,t)=>{for(var n in t||(t={}))Y6.call(t,n)&&Lm(e,n,t[n]);if(Em)for(var n of Em(t))X6.call(t,n)&&Lm(e,n,t[n]);return e};const q6=(e,t)=>{const n=s.useContext(F),r=za(za({},n),e);return s.createElement("svg",za({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M19.4 20H9.6C9.26863 20 9 19.7314 9 19.4V9.6C9 9.26863 9.26863 9 9.6 9H19.4C19.7314 9 20 9.26863 20 9.6V19.4C20 19.7314 19.7314 20 19.4 20Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M15 9V4.6C15 4.26863 14.7314 4 14.4 4H4.6C4.26863 4 4 4.26863 4 4.6V14.4C4 14.7314 4.26863 15 4.6 15H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Z6=s.forwardRef(q6);var J6=Z6,Q6=Object.defineProperty,Sm=Object.getOwnPropertySymbols,e3=Object.prototype.hasOwnProperty,t3=Object.prototype.propertyIsEnumerable,$m=(e,t,n)=>t in e?Q6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_a=(e,t)=>{for(var n in t||(t={}))e3.call(t,n)&&$m(e,n,t[n]);if(Sm)for(var n of Sm(t))t3.call(t,n)&&$m(e,n,t[n]);return e};const n3=(e,t)=>{const n=s.useContext(F),r=_a(_a({},n),e);return s.createElement("svg",_a({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M4.00047 8.00001L4.01047 8.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.00047 4.00001L4.01047 4.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8.00047 4.00001L8.01047 4.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12.0005 4.00001L12.0105 4.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M16.0005 4.00001L16.0105 4.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.0005 4.00001L20.0105 4.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.0005 8.00001L20.0105 8.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.0005 12L20.0105 12.0111",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.0005 16L20.0105 16.0111",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.0005 20L20.0105 20.0111",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M16.0005 20L16.0105 20.0111",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.00047 12.01V20.01H12.0005V12.01H4.00047Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},r3=s.forwardRef(n3);var o3=r3,s3=Object.defineProperty,jm=Object.getOwnPropertySymbols,i3=Object.prototype.hasOwnProperty,a3=Object.prototype.propertyIsEnumerable,Om=(e,t,n)=>t in e?s3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ua=(e,t)=>{for(var n in t||(t={}))i3.call(t,n)&&Om(e,n,t[n]);if(jm)for(var n of jm(t))a3.call(t,n)&&Om(e,n,t[n]);return e};const c3=(e,t)=>{const n=s.useContext(F),r=Ua(Ua({},n),e);return s.createElement("svg",Ua({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.5027 9.96958C20.7073 10.4588 20.6154 12.1941 19.3658 12.5533L13.0605 14.3658L10.1807 20.2606C9.60996 21.4288 7.88499 21.218 7.6124 19.9468L4.67677 6.25646C4.44638 5.18204 5.5121 4.2878 6.53019 4.70126L19.5027 9.96958Z",stroke:"currentColor"}))},l3=s.forwardRef(c3);var u3=l3,d3=Object.defineProperty,Rm=Object.getOwnPropertySymbols,f3=Object.prototype.hasOwnProperty,p3=Object.prototype.propertyIsEnumerable,Mm=(e,t,n)=>t in e?d3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ka=(e,t)=>{for(var n in t||(t={}))f3.call(t,n)&&Mm(e,n,t[n]);if(Rm)for(var n of Rm(t))p3.call(t,n)&&Mm(e,n,t[n]);return e};const m3=(e,t)=>{const n=s.useContext(F),r=Ka(Ka({},n),e);return s.createElement("svg",Ka({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17 20V4M17 4L20 7M17 4L14 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 4V20M7 20L10 17M7 20L4 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},h3=s.forwardRef(m3);var g3=h3,b3=Object.defineProperty,Pm=Object.getOwnPropertySymbols,v3=Object.prototype.hasOwnProperty,y3=Object.prototype.propertyIsEnumerable,Tm=(e,t,n)=>t in e?b3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ga=(e,t)=>{for(var n in t||(t={}))v3.call(t,n)&&Tm(e,n,t[n]);if(Pm)for(var n of Pm(t))y3.call(t,n)&&Tm(e,n,t[n]);return e};const w3=(e,t)=>{const n=s.useContext(F),r=Ga(Ga({},n),e);return s.createElement("svg",Ga({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M5 12V18C5 18 5 21 12 21C19 21 19 18 19 18V12",stroke:"currentColor"}),s.createElement("path",{d:"M5 6V12C5 12 5 15 12 15C19 15 19 12 19 12V6",stroke:"currentColor"}),s.createElement("path",{d:"M12 3C19 3 19 6 19 6C19 6 19 9 12 9C5 9 5 6 5 6C5 6 5 3 12 3Z",stroke:"currentColor"}))},x3=s.forwardRef(w3);var C3=x3,k3=Object.defineProperty,Am=Object.getOwnPropertySymbols,E3=Object.prototype.hasOwnProperty,L3=Object.prototype.propertyIsEnumerable,Im=(e,t,n)=>t in e?k3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ya=(e,t)=>{for(var n in t||(t={}))E3.call(t,n)&&Im(e,n,t[n]);if(Am)for(var n of Am(t))L3.call(t,n)&&Im(e,n,t[n]);return e};const S3=(e,t)=>{const n=s.useContext(F),r=Ya(Ya({},n),e);return s.createElement("svg",Ya({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17.6744 11.4075L15.7691 17.1233C15.7072 17.309 15.5586 17.4529 15.3709 17.5087L3.69348 20.9803C3.22819 21.1186 2.79978 20.676 2.95328 20.2155L6.74467 8.84131C6.79981 8.67588 6.92419 8.54263 7.08543 8.47624L12.472 6.25822C12.696 6.166 12.9535 6.21749 13.1248 6.38876L17.5294 10.7935C17.6901 10.9542 17.7463 11.1919 17.6744 11.4075Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3.2959 20.6016L9.65986 14.2376",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17.7917 11.0557L20.6202 8.22724C21.4012 7.44619 21.4012 6.17986 20.6202 5.39881L18.4989 3.27749C17.7178 2.49645 16.4515 2.49645 15.6704 3.27749L12.842 6.10592",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M11.7814 12.1163C11.1956 11.5305 10.2458 11.5305 9.66004 12.1163C9.07426 12.7021 9.07426 13.6519 9.66004 14.2376C10.2458 14.8234 11.1956 14.8234 11.7814 14.2376C12.3671 13.6519 12.3671 12.7021 11.7814 12.1163Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},$3=s.forwardRef(S3);var j3=$3,O3=Object.defineProperty,Nm=Object.getOwnPropertySymbols,R3=Object.prototype.hasOwnProperty,M3=Object.prototype.propertyIsEnumerable,Dm=(e,t,n)=>t in e?O3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xa=(e,t)=>{for(var n in t||(t={}))R3.call(t,n)&&Dm(e,n,t[n]);if(Nm)for(var n of Nm(t))M3.call(t,n)&&Dm(e,n,t[n]);return e};const P3=(e,t)=>{const n=s.useContext(F),r=Xa(Xa({},n),e);return s.createElement("svg",Xa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M20.5 20.5L22 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M15 18C15 19.6569 16.3431 21 18 21C18.8299 21 19.581 20.663 20.1241 20.1185C20.6654 19.5758 21 18.827 21 18C21 16.3431 19.6569 15 18 15C16.3431 15 15 16.3431 15 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20 12V5.74853C20 5.5894 19.9368 5.43679 19.8243 5.32426L16.6757 2.17574C16.5632 2.06321 16.4106 2 16.2515 2H4.6C4.26863 2 4 2.26863 4 2.6V21.4C4 21.7314 4.26863 22 4.6 22H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M16 2V5.4C16 5.73137 16.2686 6 16.6 6H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},T3=s.forwardRef(P3);var A3=T3,I3=Object.defineProperty,Vm=Object.getOwnPropertySymbols,N3=Object.prototype.hasOwnProperty,D3=Object.prototype.propertyIsEnumerable,Fm=(e,t,n)=>t in e?I3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qa=(e,t)=>{for(var n in t||(t={}))N3.call(t,n)&&Fm(e,n,t[n]);if(Vm)for(var n of Vm(t))D3.call(t,n)&&Fm(e,n,t[n]);return e};const V3=(e,t)=>{const n=s.useContext(F),r=qa(qa({},n),e);return s.createElement("svg",qa({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 18L18 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 6V14M12 14L15.5 10.5M12 14L8.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3 20.4V3.6C3 3.26863 3.26863 3 3.6 3H20.4C20.7314 3 21 3.26863 21 3.6V20.4C21 20.7314 20.7314 21 20.4 21H3.6C3.26863 21 3 20.7314 3 20.4Z",stroke:"currentColor"}))},F3=s.forwardRef(V3);var B3=F3,H3=Object.defineProperty,Bm=Object.getOwnPropertySymbols,W3=Object.prototype.hasOwnProperty,z3=Object.prototype.propertyIsEnumerable,Hm=(e,t,n)=>t in e?H3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Za=(e,t)=>{for(var n in t||(t={}))W3.call(t,n)&&Hm(e,n,t[n]);if(Bm)for(var n of Bm(t))z3.call(t,n)&&Hm(e,n,t[n]);return e};const _3=(e,t)=>{const n=s.useContext(F),r=Za(Za({},n),e);return s.createElement("svg",Za({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 20L18 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 4V16M12 16L15.5 12.5M12 16L8.5 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},U3=s.forwardRef(_3);var K3=U3,G3=Object.defineProperty,Wm=Object.getOwnPropertySymbols,Y3=Object.prototype.hasOwnProperty,X3=Object.prototype.propertyIsEnumerable,zm=(e,t,n)=>t in e?G3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ja=(e,t)=>{for(var n in t||(t={}))Y3.call(t,n)&&zm(e,n,t[n]);if(Wm)for(var n of Wm(t))X3.call(t,n)&&zm(e,n,t[n]);return e};const q3=(e,t)=>{const n=s.useContext(F),r=Ja(Ja({},n),e);return s.createElement("svg",Ja({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7 10.5L4.99591 13.1721C4.41845 13.9421 4.47127 15.0141 5.1216 15.7236L8.9055 19.8515C9.28432 20.2647 9.81826 20.5 10.3789 20.5C11.4651 20.5 13.2415 20.5 15 20.5C17.4 20.5 19 19 19 16.5C19 16.5 19 16.5 19 16.5C19 16.5 19 9.64287 19 7.92859",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M16 8.49995C16 8.49995 16 8.37483 16 7.92852C16 5.6428 19 5.6428 19 7.92852",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M13 8.50008C13 8.50008 13 7.91978 13 7.02715M13 6.50008C13 6.50008 13 6.804 13 7.02715M16 8.50008C16 8.50008 16 8.37496 16 7.92865C16 7.70549 16 7.25031 16 7.02715C16 4.74144 13 4.74144 13 7.02715",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M13 8.50008C13 8.50008 13 7.91978 13 7.02715C13 4.74144 16 4.74144 16 7.02715C16 7.25031 16 7.70549 16 7.92865C16 8.37496 16 8.50008 16 8.50008",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M10 8.50005C10 8.50005 10 7.85719 10 6.50005C10 4.21434 13 4.21434 13 6.50005C13 6.50005 13 6.50005 13 6.50005C13 6.50005 13 6.80397 13 7.02713C13 7.91975 13 8.50005 13 8.50005",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 13.5001V6.50006C7 5.67164 7.67157 5.00006 8.5 5.00006V5.00006C9.32843 5.00006 10 5.55527 10 6.38369C10 6.42151 10 6.4603 10 6.50006C10 7.85721 10 8.50006 10 8.50006",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Z3=s.forwardRef(q3);var J3=Z3,Q3=Object.defineProperty,_m=Object.getOwnPropertySymbols,eL=Object.prototype.hasOwnProperty,tL=Object.prototype.propertyIsEnumerable,Um=(e,t,n)=>t in e?Q3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qa=(e,t)=>{for(var n in t||(t={}))eL.call(t,n)&&Um(e,n,t[n]);if(_m)for(var n of _m(t))tL.call(t,n)&&Um(e,n,t[n]);return e};const nL=(e,t)=>{const n=s.useContext(F),r=Qa(Qa({},n),e);return s.createElement("svg",Qa({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 12L4 4M4 4V8M4 4H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 12L20 4M20 4V8M20 4H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 12L4 20M4 20V16M4 20H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 12L20 20M20 20V16M20 20H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},rL=s.forwardRef(nL);var Ad=rL,oL=Object.defineProperty,Km=Object.getOwnPropertySymbols,sL=Object.prototype.hasOwnProperty,iL=Object.prototype.propertyIsEnumerable,Gm=(e,t,n)=>t in e?oL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ec=(e,t)=>{for(var n in t||(t={}))sL.call(t,n)&&Gm(e,n,t[n]);if(Km)for(var n of Km(t))iL.call(t,n)&&Gm(e,n,t[n]);return e};const aL=(e,t)=>{const n=s.useContext(F),r=ec(ec({},n),e);return s.createElement("svg",ec({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M14.3632 5.65156L15.8431 4.17157C16.6242 3.39052 17.8905 3.39052 18.6716 4.17157L20.0858 5.58579C20.8668 6.36683 20.8668 7.63316 20.0858 8.41421L18.6058 9.8942M14.3632 5.65156L4.74749 15.2672C4.41542 15.5993 4.21079 16.0376 4.16947 16.5054L3.92738 19.2459C3.87261 19.8659 4.39148 20.3848 5.0115 20.33L7.75191 20.0879C8.21972 20.0466 8.65806 19.8419 8.99013 19.5099L18.6058 9.8942M14.3632 5.65156L18.6058 9.8942",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},cL=s.forwardRef(aL);var lL=cL,uL=Object.defineProperty,Ym=Object.getOwnPropertySymbols,dL=Object.prototype.hasOwnProperty,fL=Object.prototype.propertyIsEnumerable,Xm=(e,t,n)=>t in e?uL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tc=(e,t)=>{for(var n in t||(t={}))dL.call(t,n)&&Xm(e,n,t[n]);if(Ym)for(var n of Ym(t))fL.call(t,n)&&Xm(e,n,t[n]);return e};const pL=(e,t)=>{const n=s.useContext(F),r=tc(tc({},n),e);return s.createElement("svg",tc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M15 9L20 4M20 4V8M20 4H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M9 15L4 20M4 20V16M4 20H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},mL=s.forwardRef(pL);var hL=mL,gL=Object.defineProperty,qm=Object.getOwnPropertySymbols,bL=Object.prototype.hasOwnProperty,vL=Object.prototype.propertyIsEnumerable,Zm=(e,t,n)=>t in e?gL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nc=(e,t)=>{for(var n in t||(t={}))bL.call(t,n)&&Zm(e,n,t[n]);if(qm)for(var n of qm(t))vL.call(t,n)&&Zm(e,n,t[n]);return e};const yL=(e,t)=>{const n=s.useContext(F),r=nc(nc({},n),e);return s.createElement("svg",nc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M19.5 16L17.0248 12.6038",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 17.5V14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.5 16L6.96895 12.6124",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3 8C6.6 16 17.4 16 21 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},wL=s.forwardRef(yL);var xL=wL,CL=Object.defineProperty,Jm=Object.getOwnPropertySymbols,kL=Object.prototype.hasOwnProperty,EL=Object.prototype.propertyIsEnumerable,Qm=(e,t,n)=>t in e?CL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rc=(e,t)=>{for(var n in t||(t={}))kL.call(t,n)&&Qm(e,n,t[n]);if(Jm)for(var n of Jm(t))EL.call(t,n)&&Qm(e,n,t[n]);return e};const LL=(e,t)=>{const n=s.useContext(F),r=rc(rc({},n),e);return s.createElement("svg",rc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M3 13C6.6 5 17.4 5 21 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 17C10.3431 17 9 15.6569 9 14C9 12.3431 10.3431 11 12 11C13.6569 11 15 12.3431 15 14C15 15.6569 13.6569 17 12 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},SL=s.forwardRef(LL);var $L=SL,jL=Object.defineProperty,eh=Object.getOwnPropertySymbols,OL=Object.prototype.hasOwnProperty,RL=Object.prototype.propertyIsEnumerable,th=(e,t,n)=>t in e?jL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oc=(e,t)=>{for(var n in t||(t={}))OL.call(t,n)&&th(e,n,t[n]);if(eh)for(var n of eh(t))RL.call(t,n)&&th(e,n,t[n]);return e};const ML=(e,t)=>{const n=s.useContext(F),r=oc(oc({},n),e);return s.createElement("svg",oc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M13 10V3L5 14H11V21L19 10H13Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},PL=s.forwardRef(ML);var TL=PL,AL=Object.defineProperty,nh=Object.getOwnPropertySymbols,IL=Object.prototype.hasOwnProperty,NL=Object.prototype.propertyIsEnumerable,rh=(e,t,n)=>t in e?AL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sc=(e,t)=>{for(var n in t||(t={}))IL.call(t,n)&&rh(e,n,t[n]);if(nh)for(var n of nh(t))NL.call(t,n)&&rh(e,n,t[n]);return e};const DL=(e,t)=>{const n=s.useContext(F),r=sc(sc({},n),e);return s.createElement("svg",sc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M3 19V5C3 3.89543 3.89543 3 5 3H16.1716C16.702 3 17.2107 3.21071 17.5858 3.58579L20.4142 6.41421C20.7893 6.78929 21 7.29799 21 7.82843V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19Z",stroke:"currentColor"}),s.createElement("path",{d:"M8.6 9H15.4C15.7314 9 16 8.73137 16 8.4V3.6C16 3.26863 15.7314 3 15.4 3H8.6C8.26863 3 8 3.26863 8 3.6V8.4C8 8.73137 8.26863 9 8.6 9Z",stroke:"currentColor"}),s.createElement("path",{d:"M6 13.6V21H18V13.6C18 13.2686 17.7314 13 17.4 13H6.6C6.26863 13 6 13.2686 6 13.6Z",stroke:"currentColor"}))},VL=s.forwardRef(DL);var FL=VL,BL=Object.defineProperty,oh=Object.getOwnPropertySymbols,HL=Object.prototype.hasOwnProperty,WL=Object.prototype.propertyIsEnumerable,sh=(e,t,n)=>t in e?BL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ic=(e,t)=>{for(var n in t||(t={}))HL.call(t,n)&&sh(e,n,t[n]);if(oh)for(var n of oh(t))WL.call(t,n)&&sh(e,n,t[n]);return e};const zL=(e,t)=>{const n=s.useContext(F),r=ic(ic({},n),e);return s.createElement("svg",ic({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M2 11V4.6C2 4.26863 2.26863 4 2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H21.4C21.7314 7 22 7.26863 22 7.6V11M2 11V19.4C2 19.7314 2.26863 20 2.6 20H21.4C21.7314 20 22 19.7314 22 19.4V11M2 11H22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},_L=s.forwardRef(zL);var UL=_L,KL=Object.defineProperty,ih=Object.getOwnPropertySymbols,GL=Object.prototype.hasOwnProperty,YL=Object.prototype.propertyIsEnumerable,ah=(e,t,n)=>t in e?KL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ac=(e,t)=>{for(var n in t||(t={}))GL.call(t,n)&&ah(e,n,t[n]);if(ih)for(var n of ih(t))YL.call(t,n)&&ah(e,n,t[n]);return e};const XL=(e,t)=>{const n=s.useContext(F),r=ac(ac({},n),e);return s.createElement("svg",ac({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M4.9984 2H2V4.9984H4.9984V2Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.99854 3.50098H18.9987",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3.5 4.99854V19.0005",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.4978 5V19.002",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.99854 20.501H18.9987",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.9984 19H2V21.9984H4.9984V19Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21.9974 2.00195H18.999V5.00035H21.9974V2.00195Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21.9974 19.002H18.999V22.0004H21.9974V19.002Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9966 15.002L7.99658 8.00195L14.9966 11.002L11.9986 12.0009L10.9966 15.002Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.999 12.002L14.997 15.002L11.999 12.002Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))},qL=s.forwardRef(XL);var ZL=qL,JL=Object.defineProperty,ch=Object.getOwnPropertySymbols,QL=Object.prototype.hasOwnProperty,eS=Object.prototype.propertyIsEnumerable,lh=(e,t,n)=>t in e?JL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cc=(e,t)=>{for(var n in t||(t={}))QL.call(t,n)&&lh(e,n,t[n]);if(ch)for(var n of ch(t))eS.call(t,n)&&lh(e,n,t[n]);return e};const tS=(e,t)=>{const n=s.useContext(F),r=cc(cc({},n),e);return s.createElement("svg",cc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M4.9984 2.00098H2V4.99938H4.9984V2.00098Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.9984 10.502H2V13.5004H4.9984V10.502Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.4978 5.00049V10.503",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3.5 5.00049V10.503",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.4978 13.5015V19.004",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3.5 13.5015V19.004",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.99902 20.5015H10.4999",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.99902 3.50342H10.4999",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M13.498 20.499H18.9989",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M13.498 3.50098H18.9989",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4.9984 19.001H2V21.9994H4.9984V19.001Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21.9974 2.00195H18.999V5.00035H21.9974V2.00195Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M13.4974 2H10.499V4.9984H13.4974V2Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21.9974 10.5029H18.999V13.5013H21.9974V10.5029Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21.9974 19.002H18.999V22.0004H21.9974V19.002Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M13.4974 19H10.499V21.9984H13.4974V19Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))},nS=s.forwardRef(tS);var rS=nS,oS=Object.defineProperty,uh=Object.getOwnPropertySymbols,sS=Object.prototype.hasOwnProperty,iS=Object.prototype.propertyIsEnumerable,dh=(e,t,n)=>t in e?oS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lc=(e,t)=>{for(var n in t||(t={}))sS.call(t,n)&&dh(e,n,t[n]);if(uh)for(var n of uh(t))iS.call(t,n)&&dh(e,n,t[n]);return e};const aS=(e,t)=>{const n=s.useContext(F),r=lc(lc({},n),e);return s.createElement("svg",lc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M18 8C19.1046 8 20 7.10457 20 6C20 4.89543 19.1046 4 18 4C16.8954 4 16 4.89543 16 6C16 7.10457 16.8954 8 18 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 20C7.10457 20 8 19.1046 8 18C8 16.8954 7.10457 16 6 16C4.89543 16 4 16.8954 4 18C4 19.1046 4.89543 20 6 20Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 16V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 18H9C12.5 18 18 15.9 18 9.5V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},cS=s.forwardRef(aS);var lS=cS,uS=Object.defineProperty,fh=Object.getOwnPropertySymbols,dS=Object.prototype.hasOwnProperty,fS=Object.prototype.propertyIsEnumerable,ph=(e,t,n)=>t in e?uS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uc=(e,t)=>{for(var n in t||(t={}))dS.call(t,n)&&ph(e,n,t[n]);if(fh)for(var n of fh(t))fS.call(t,n)&&ph(e,n,t[n]);return e};const pS=(e,t)=>{const n=s.useContext(F),r=uc(uc({},n),e);return s.createElement("svg",uc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M18 21C19.1046 21 20 20.1046 20 19C20 17.8954 19.1046 17 18 17C16.8954 17 16 17.8954 16 19C16 20.1046 16.8954 21 18 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 7C7.10457 7 8 6.10457 8 5C8 3.89543 7.10457 3 6 3C4.89543 3 4 3.89543 4 5C4 6.10457 4.89543 7 6 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M18 17V7C18 7 18 5 16 5H13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 7V17C6 17 6 19 8 19H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M15.0005 7.50012L12.5005 5.00012L15.0005 2.50012",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8.5 16.5L11 19L8.5 21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},mS=s.forwardRef(pS);var hS=mS,gS=Object.defineProperty,mh=Object.getOwnPropertySymbols,bS=Object.prototype.hasOwnProperty,vS=Object.prototype.propertyIsEnumerable,hh=(e,t,n)=>t in e?gS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dc=(e,t)=>{for(var n in t||(t={}))bS.call(t,n)&&hh(e,n,t[n]);if(mh)for(var n of mh(t))vS.call(t,n)&&hh(e,n,t[n]);return e};const yS=(e,t)=>{const n=s.useContext(F),r=dc(dc({},n),e);return s.createElement("svg",dc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2.5 12.5L8 14.5L7 18L8 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 20.5L16.5 18L14 17V13.5L17 12.5L21.5 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M19 5.5L18.5 7L15 7.5V10.5L17.5 9.5H19.5L21.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2.5 10.5L5 8.5L7.5 8L9.5 5L8.5 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},wS=s.forwardRef(yS);var xS=wS,CS=Object.defineProperty,gh=Object.getOwnPropertySymbols,kS=Object.prototype.hasOwnProperty,ES=Object.prototype.propertyIsEnumerable,bh=(e,t,n)=>t in e?CS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fc=(e,t)=>{for(var n in t||(t={}))kS.call(t,n)&&bh(e,n,t[n]);if(gh)for(var n of gh(t))ES.call(t,n)&&bh(e,n,t[n]);return e};const LS=(e,t)=>{const n=s.useContext(F),r=fc(fc({},n),e);return s.createElement("svg",fc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M10 3L6 21",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M20.5 16H2.5",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M22 7H4",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M18 3L14 21",stroke:"currentColor",strokeLinecap:"round"}))},SS=s.forwardRef(LS);var $S=SS,jS=Object.defineProperty,vh=Object.getOwnPropertySymbols,OS=Object.prototype.hasOwnProperty,RS=Object.prototype.propertyIsEnumerable,yh=(e,t,n)=>t in e?jS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pc=(e,t)=>{for(var n in t||(t={}))OS.call(t,n)&&yh(e,n,t[n]);if(vh)for(var n of vh(t))RS.call(t,n)&&yh(e,n,t[n]);return e};const MS=(e,t)=>{const n=s.useContext(F),r=pc(pc({},n),e);return s.createElement("svg",pc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M2 8L11.7317 3.13416C11.9006 3.04971 12.0994 3.0497 12.2683 3.13416L22 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20 11V19C20 20.1046 19.1046 21 18 21H6C4.89543 21 4 20.1046 4 19V11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},PS=s.forwardRef(MS);var TS=PS,AS=Object.defineProperty,wh=Object.getOwnPropertySymbols,IS=Object.prototype.hasOwnProperty,NS=Object.prototype.propertyIsEnumerable,xh=(e,t,n)=>t in e?AS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mc=(e,t)=>{for(var n in t||(t={}))IS.call(t,n)&&xh(e,n,t[n]);if(wh)for(var n of wh(t))NS.call(t,n)&&xh(e,n,t[n]);return e};const DS=(e,t)=>{const n=s.useContext(F),r=mc(mc({},n),e);return s.createElement("svg",mc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 11.5V16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 7.51L12.01 7.49889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},VS=s.forwardRef(DS);var FS=VS,BS=Object.defineProperty,Ch=Object.getOwnPropertySymbols,HS=Object.prototype.hasOwnProperty,WS=Object.prototype.propertyIsEnumerable,kh=(e,t,n)=>t in e?BS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hc=(e,t)=>{for(var n in t||(t={}))HS.call(t,n)&&kh(e,n,t[n]);if(Ch)for(var n of Ch(t))WS.call(t,n)&&kh(e,n,t[n]);return e};const zS=(e,t)=>{const n=s.useContext(F),r=hc(hc({},n),e);return s.createElement("svg",hc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M9 6V18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M15 6V18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M9 6C9 4.34315 7.65685 3 6 3C4.34315 3 3 4.34315 3 6C3 7.65685 4.34315 9 6 9H18C19.6569 9 21 7.65685 21 6C21 4.34315 19.6569 3 18 3C16.3431 3 15 4.34315 15 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M9 18C9 19.6569 7.65685 21 6 21C4.34315 21 3 19.6569 3 18C3 16.3431 4.34315 15 6 15H18C19.6569 15 21 16.3431 21 18C21 19.6569 19.6569 21 18 21C16.3431 21 15 19.6569 15 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},_S=s.forwardRef(zS);var US=_S,KS=Object.defineProperty,Eh=Object.getOwnPropertySymbols,GS=Object.prototype.hasOwnProperty,YS=Object.prototype.propertyIsEnumerable,Lh=(e,t,n)=>t in e?KS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gc=(e,t)=>{for(var n in t||(t={}))GS.call(t,n)&&Lh(e,n,t[n]);if(Eh)for(var n of Eh(t))YS.call(t,n)&&Lh(e,n,t[n]);return e};const XS=(e,t)=>{const n=s.useContext(F),r=gc(gc({},n),e);return s.createElement("svg",gc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7.14286 16.9953C6.75006 16.9953 6.36756 16.9525 6 16.8715C3.70973 16.3665 2 14.3761 2 11.9977C2 9.284 4.22573 7.07548 7 7.00195",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M13.3184 9.63429C12.7858 8.73635 11.9737 7.96977 11 7.4989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M16.8571 6.99999C17.2499 6.99999 17.6324 7.04278 18 7.12383C20.2903 7.62884 22 9.6192 22 11.9976C22 14.7577 19.6975 16.9952 16.8571 16.9952C16.581 16.9952 15.4776 16.9952 15.1429 16.9952C12.317 16.9952 10 14.4893 10 11.9976C10 11.9976 10 11 10.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3 3L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},qS=s.forwardRef(XS);var ZS=qS,JS=Object.defineProperty,Sh=Object.getOwnPropertySymbols,QS=Object.prototype.hasOwnProperty,e7=Object.prototype.propertyIsEnumerable,$h=(e,t,n)=>t in e?JS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bc=(e,t)=>{for(var n in t||(t={}))QS.call(t,n)&&$h(e,n,t[n]);if(Sh)for(var n of Sh(t))e7.call(t,n)&&$h(e,n,t[n]);return e};const t7=(e,t)=>{const n=s.useContext(F),r=bc(bc({},n),e);return s.createElement("svg",bc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M14 11.9976C14 9.5059 11.683 7 8.85714 7C8.52241 7 7.41904 7.00001 7.14286 7.00001C4.30254 7.00001 2 9.23752 2 11.9976C2 14.376 3.70973 16.3664 6 16.8714C6.36756 16.9525 6.75006 16.9952 7.14286 16.9952",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M10 11.9976C10 14.4893 12.317 16.9952 15.1429 16.9952C15.4776 16.9952 16.581 16.9952 16.8571 16.9952C19.6975 16.9952 22 14.7577 22 11.9976C22 9.6192 20.2903 7.62884 18 7.12383C17.6324 7.04278 17.2499 6.99999 16.8571 6.99999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},n7=s.forwardRef(t7);var r7=n7,o7=Object.defineProperty,jh=Object.getOwnPropertySymbols,s7=Object.prototype.hasOwnProperty,i7=Object.prototype.propertyIsEnumerable,Oh=(e,t,n)=>t in e?o7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vc=(e,t)=>{for(var n in t||(t={}))s7.call(t,n)&&Oh(e,n,t[n]);if(jh)for(var n of jh(t))i7.call(t,n)&&Oh(e,n,t[n]);return e};const a7=(e,t)=>{const n=s.useContext(F),r=vc(vc({},n),e);return s.createElement("svg",vc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M8 6L20 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4 6.01L4.01 5.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4 12.01L4.01 11.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4 18.01L4.01 17.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 12L20 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 18L20 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},c7=s.forwardRef(a7);var Oy=c7,l7=Object.defineProperty,Rh=Object.getOwnPropertySymbols,u7=Object.prototype.hasOwnProperty,d7=Object.prototype.propertyIsEnumerable,Mh=(e,t,n)=>t in e?l7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yc=(e,t)=>{for(var n in t||(t={}))u7.call(t,n)&&Mh(e,n,t[n]);if(Rh)for(var n of Rh(t))d7.call(t,n)&&Mh(e,n,t[n]);return e};const f7=(e,t)=>{const n=s.useContext(F),r=yc(yc({},n),e);return s.createElement("svg",yc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M16 12H17.4C17.7314 12 18 12.2686 18 12.6V19.4C18 19.7314 17.7314 20 17.4 20H6.6C6.26863 20 6 19.7314 6 19.4V12.6C6 12.2686 6.26863 12 6.6 12H8M16 12V8C16 6.66667 15.2 4 12 4C8.8 4 8 6.66667 8 8V12M16 12H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},p7=s.forwardRef(f7);var Ry=p7,m7=Object.defineProperty,Ph=Object.getOwnPropertySymbols,h7=Object.prototype.hasOwnProperty,g7=Object.prototype.propertyIsEnumerable,Th=(e,t,n)=>t in e?m7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wc=(e,t)=>{for(var n in t||(t={}))h7.call(t,n)&&Th(e,n,t[n]);if(Ph)for(var n of Ph(t))g7.call(t,n)&&Th(e,n,t[n]);return e};const b7=(e,t)=>{const n=s.useContext(F),r=wc(wc({},n),e);return s.createElement("svg",wc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M3 21L13 11M18 6L15.5 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M9.5 2L10.4453 4.55468L13 5.5L10.4453 6.44532L9.5 9L8.55468 6.44532L6 5.5L8.55468 4.55468L9.5 2Z",stroke:"currentColor",strokeLinejoin:"round"}),s.createElement("path",{d:"M19 10L19.5402 11.4598L21 12L19.5402 12.5402L19 14L18.4598 12.5402L17 12L18.4598 11.4598L19 10Z",stroke:"currentColor",strokeLinejoin:"round"}))},v7=s.forwardRef(b7);var y7=v7,w7=Object.defineProperty,Ah=Object.getOwnPropertySymbols,x7=Object.prototype.hasOwnProperty,C7=Object.prototype.propertyIsEnumerable,Ih=(e,t,n)=>t in e?w7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xc=(e,t)=>{for(var n in t||(t={}))x7.call(t,n)&&Ih(e,n,t[n]);if(Ah)for(var n of Ah(t))C7.call(t,n)&&Ih(e,n,t[n]);return e};const k7=(e,t)=>{const n=s.useContext(F),r=xc(xc({},n),e);return s.createElement("svg",xc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M9 19L3.78974 20.7368C3.40122 20.8663 3 20.5771 3 20.1675L3 5.43246C3 5.1742 3.16526 4.94491 3.41026 4.86325L9 3M9 19L15 21M9 19L9 3M15 21L20.5897 19.1368C20.8347 19.0551 21 18.8258 21 18.5675L21 3.83246C21 3.42292 20.5988 3.13374 20.2103 3.26325L15 5M15 21L15 5M15 5L9 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},E7=s.forwardRef(k7);var L7=E7,S7=Object.defineProperty,Nh=Object.getOwnPropertySymbols,$7=Object.prototype.hasOwnProperty,j7=Object.prototype.propertyIsEnumerable,Dh=(e,t,n)=>t in e?S7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cc=(e,t)=>{for(var n in t||(t={}))$7.call(t,n)&&Dh(e,n,t[n]);if(Nh)for(var n of Nh(t))j7.call(t,n)&&Dh(e,n,t[n]);return e};const O7=(e,t)=>{const n=s.useContext(F),r=Cc(Cc({},n),e);return s.createElement("svg",Cc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7 4H4V7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 4H20V7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 20H4V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 20H20V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},R7=s.forwardRef(O7);var M7=R7,P7=Object.defineProperty,Vh=Object.getOwnPropertySymbols,T7=Object.prototype.hasOwnProperty,A7=Object.prototype.propertyIsEnumerable,Fh=(e,t,n)=>t in e?P7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kc=(e,t)=>{for(var n in t||(t={}))T7.call(t,n)&&Fh(e,n,t[n]);if(Vh)for(var n of Vh(t))A7.call(t,n)&&Fh(e,n,t[n]);return e};const I7=(e,t)=>{const n=s.useContext(F),r=kc(kc({},n),e);return s.createElement("svg",kc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M21 3.6V20.4C21 20.7314 20.7314 21 20.4 21H3.6C3.26863 21 3 20.7314 3 20.4V3.6C3 3.26863 3.26863 3 3.6 3H20.4C20.7314 3 21 3.26863 21 3.6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3 16L10 13L21 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M16 10C14.8954 10 14 9.10457 14 8C14 6.89543 14.8954 6 16 6C17.1046 6 18 6.89543 18 8C18 9.10457 17.1046 10 16 10Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},N7=s.forwardRef(I7);var My=N7,D7=Object.defineProperty,Bh=Object.getOwnPropertySymbols,V7=Object.prototype.hasOwnProperty,F7=Object.prototype.propertyIsEnumerable,Hh=(e,t,n)=>t in e?D7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ec=(e,t)=>{for(var n in t||(t={}))V7.call(t,n)&&Hh(e,n,t[n]);if(Bh)for(var n of Bh(t))F7.call(t,n)&&Hh(e,n,t[n]);return e};const B7=(e,t)=>{const n=s.useContext(F),r=Ec(Ec({},n),e);return s.createElement("svg",Ec({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M21 7.6V20.4C21 20.7314 20.7314 21 20.4 21H7.6C7.26863 21 7 20.7314 7 20.4V7.6C7 7.26863 7.26863 7 7.6 7H20.4C20.7314 7 21 7.26863 21 7.6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M18 4H4.6C4.26863 4 4 4.26863 4 4.6V18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12.9087 11.5452C12.5088 11.3053 12 11.5933 12 12.0597V15.9403C12 16.4067 12.5088 16.6947 12.9087 16.4548L16.1425 14.5145C16.5309 14.2815 16.5309 13.7185 16.1425 13.4855L12.9087 11.5452Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},H7=s.forwardRef(B7);var W7=H7,z7=Object.defineProperty,Wh=Object.getOwnPropertySymbols,_7=Object.prototype.hasOwnProperty,U7=Object.prototype.propertyIsEnumerable,zh=(e,t,n)=>t in e?z7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lc=(e,t)=>{for(var n in t||(t={}))_7.call(t,n)&&zh(e,n,t[n]);if(Wh)for(var n of Wh(t))U7.call(t,n)&&zh(e,n,t[n]);return e};const K7=(e,t)=>{const n=s.useContext(F),r=Lc(Lc({},n),e);return s.createElement("svg",Lc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("rect",{x:9,y:2,width:6,height:12,rx:3,stroke:"currentColor",strokeWidth:1.5}),s.createElement("path",{d:"M5 10V11C5 14.866 8.13401 18 12 18V18V18C15.866 18 19 14.866 19 11V10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 18V22M12 22H9M12 22H15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},G7=s.forwardRef(K7);var Y7=G7,X7=Object.defineProperty,_h=Object.getOwnPropertySymbols,q7=Object.prototype.hasOwnProperty,Z7=Object.prototype.propertyIsEnumerable,Uh=(e,t,n)=>t in e?X7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sc=(e,t)=>{for(var n in t||(t={}))q7.call(t,n)&&Uh(e,n,t[n]);if(_h)for(var n of _h(t))Z7.call(t,n)&&Uh(e,n,t[n]);return e};const J7=(e,t)=>{const n=s.useContext(F),r=Sc(Sc({},n),e);return s.createElement("svg",Sc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 12H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Q7=s.forwardRef(J7);var e9=Q7,t9=Object.defineProperty,Kh=Object.getOwnPropertySymbols,n9=Object.prototype.hasOwnProperty,r9=Object.prototype.propertyIsEnumerable,Gh=(e,t,n)=>t in e?t9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$c=(e,t)=>{for(var n in t||(t={}))n9.call(t,n)&&Gh(e,n,t[n]);if(Kh)for(var n of Kh(t))r9.call(t,n)&&Gh(e,n,t[n]);return e};const o9=(e,t)=>{const n=s.useContext(F),r=$c($c({},n),e);return s.createElement("svg",$c({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M20 12.5C20.2761 12.5 20.5 12.2761 20.5 12C20.5 11.7239 20.2761 11.5 20 11.5C19.7239 11.5 19.5 11.7239 19.5 12C19.5 12.2761 19.7239 12.5 20 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 12.5C12.2761 12.5 12.5 12.2761 12.5 12C12.5 11.7239 12.2761 11.5 12 11.5C11.7239 11.5 11.5 11.7239 11.5 12C11.5 12.2761 11.7239 12.5 12 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4 12.5C4.27614 12.5 4.5 12.2761 4.5 12C4.5 11.7239 4.27614 11.5 4 11.5C3.72386 11.5 3.5 11.7239 3.5 12C3.5 12.2761 3.72386 12.5 4 12.5Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},s9=s.forwardRef(o9);var i9=s9,a9=Object.defineProperty,Yh=Object.getOwnPropertySymbols,c9=Object.prototype.hasOwnProperty,l9=Object.prototype.propertyIsEnumerable,Xh=(e,t,n)=>t in e?a9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jc=(e,t)=>{for(var n in t||(t={}))c9.call(t,n)&&Xh(e,n,t[n]);if(Yh)for(var n of Yh(t))l9.call(t,n)&&Xh(e,n,t[n]);return e};const u9=(e,t)=>{const n=s.useContext(F),r=jc(jc({},n),e);return s.createElement("svg",jc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7 8.01L7.01 7.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 8.01L17.01 7.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 12.01L7.01 11.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 12.01L17.01 11.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 16.01L7.01 15.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 16.01L17.01 15.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 2H3.6C3.26863 2 3 2.26863 3 2.6V21.4C3 21.7314 3.26863 22 3.6 22H7M7 2V4M7 2H17M17 2H20.4C20.7314 2 21 2.26863 21 2.6V21.4C21 21.7314 20.7314 22 20.4 22H17M17 2V4M17 22V20M17 22H7M7 22V20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},d9=s.forwardRef(u9);var f9=d9,p9=Object.defineProperty,qh=Object.getOwnPropertySymbols,m9=Object.prototype.hasOwnProperty,h9=Object.prototype.propertyIsEnumerable,Zh=(e,t,n)=>t in e?p9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oc=(e,t)=>{for(var n in t||(t={}))m9.call(t,n)&&Zh(e,n,t[n]);if(qh)for(var n of qh(t))h9.call(t,n)&&Zh(e,n,t[n]);return e};const g9=(e,t)=>{const n=s.useContext(F),r=Oc(Oc({},n),e);return s.createElement("svg",Oc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M1.99219 19H4.99219M7.99219 19H4.99219M4.99219 19V16M4.99219 19V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 2L16.5 2L21 6.5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M11 22H16.5C17.3284 22 18 21.3284 18 20.5V8.74853C18 8.5894 17.9368 8.43679 17.8243 8.32426L14.6757 5.17574C14.5632 5.06321 14.4106 5 14.2515 5H4.5C3.67157 5 3 5.67157 3 6.5V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M14 5V8.4C14 8.73137 14.2686 9 14.6 9H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},b9=s.forwardRef(g9);var v9=b9,y9=Object.defineProperty,Jh=Object.getOwnPropertySymbols,w9=Object.prototype.hasOwnProperty,x9=Object.prototype.propertyIsEnumerable,Qh=(e,t,n)=>t in e?y9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rc=(e,t)=>{for(var n in t||(t={}))w9.call(t,n)&&Qh(e,n,t[n]);if(Jh)for(var n of Jh(t))x9.call(t,n)&&Qh(e,n,t[n]);return e};const C9=(e,t)=>{const n=s.useContext(F),r=Rc(Rc({},n),e);return s.createElement("svg",Rc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7 18H10.5H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 14H7.5H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 10H8.5H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7 2L16.5 2L21 6.5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3 20.5V6.5C3 5.67157 3.67157 5 4.5 5H14.2515C14.4106 5 14.5632 5.06321 14.6757 5.17574L17.8243 8.32426C17.9368 8.43679 18 8.5894 18 8.74853V20.5C18 21.3284 17.3284 22 16.5 22H4.5C3.67157 22 3 21.3284 3 20.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M14 5V8.4C14 8.73137 14.2686 9 14.6 9H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},k9=s.forwardRef(C9);var Py=k9,E9=Object.defineProperty,e1=Object.getOwnPropertySymbols,L9=Object.prototype.hasOwnProperty,S9=Object.prototype.propertyIsEnumerable,t1=(e,t,n)=>t in e?E9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mc=(e,t)=>{for(var n in t||(t={}))L9.call(t,n)&&t1(e,n,t[n]);if(e1)for(var n of e1(t))S9.call(t,n)&&t1(e,n,t[n]);return e};const $9=(e,t)=>{const n=s.useContext(F),r=Mc(Mc({},n),e);return s.createElement("svg",Mc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M20 14V3L9 5V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 19H18C19.1046 19 20 18.1046 20 17V14H17C15.8954 14 15 14.8954 15 16V17C15 18.1046 15.8954 19 17 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 21H7C8.10457 21 9 20.1046 9 19V16H6C4.89543 16 4 16.8954 4 18V19C4 20.1046 4.89543 21 6 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},j9=s.forwardRef($9);var O9=j9,R9=Object.defineProperty,n1=Object.getOwnPropertySymbols,M9=Object.prototype.hasOwnProperty,P9=Object.prototype.propertyIsEnumerable,r1=(e,t,n)=>t in e?R9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pc=(e,t)=>{for(var n in t||(t={}))M9.call(t,n)&&r1(e,n,t[n]);if(n1)for(var n of n1(t))P9.call(t,n)&&r1(e,n,t[n]);return e};const T9=(e,t)=>{const n=s.useContext(F),r=Pc(Pc({},n),e);return s.createElement("svg",Pc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 9L12 15L18 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},A9=s.forwardRef(T9);var I9=A9,N9=Object.defineProperty,o1=Object.getOwnPropertySymbols,D9=Object.prototype.hasOwnProperty,V9=Object.prototype.propertyIsEnumerable,s1=(e,t,n)=>t in e?N9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tc=(e,t)=>{for(var n in t||(t={}))D9.call(t,n)&&s1(e,n,t[n]);if(o1)for(var n of o1(t))V9.call(t,n)&&s1(e,n,t[n]);return e};const F9=(e,t)=>{const n=s.useContext(F),r=Tc(Tc({},n),e);return s.createElement("svg",Tc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M9 6L15 12L9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},B9=s.forwardRef(F9);var H9=B9,W9=Object.defineProperty,i1=Object.getOwnPropertySymbols,z9=Object.prototype.hasOwnProperty,_9=Object.prototype.propertyIsEnumerable,a1=(e,t,n)=>t in e?W9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ac=(e,t)=>{for(var n in t||(t={}))z9.call(t,n)&&a1(e,n,t[n]);if(i1)for(var n of i1(t))_9.call(t,n)&&a1(e,n,t[n]);return e};const U9=(e,t)=>{const n=s.useContext(F),r=Ac(Ac({},n),e);return s.createElement("svg",Ac({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 15L12 9L18 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},K9=s.forwardRef(U9);var G9=K9,Y9=Object.defineProperty,c1=Object.getOwnPropertySymbols,X9=Object.prototype.hasOwnProperty,q9=Object.prototype.propertyIsEnumerable,l1=(e,t,n)=>t in e?Y9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ic=(e,t)=>{for(var n in t||(t={}))X9.call(t,n)&&l1(e,n,t[n]);if(c1)for(var n of c1(t))q9.call(t,n)&&l1(e,n,t[n]);return e};const Z9=(e,t)=>{const n=s.useContext(F),r=Ic(Ic({},n),e);return s.createElement("svg",Ic({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("rect",{x:3,y:2,width:7,height:5,rx:.6,stroke:"currentColor",strokeWidth:1.5}),s.createElement("rect",{x:8.5,y:17,width:7,height:5,rx:.6,stroke:"currentColor",strokeWidth:1.5}),s.createElement("rect",{x:14,y:2,width:7,height:5,rx:.6,stroke:"currentColor",strokeWidth:1.5}),s.createElement("path",{d:"M6.5 7V10.5C6.5 11.6046 7.39543 12.5 8.5 12.5H15.5C16.6046 12.5 17.5 11.6046 17.5 10.5V7",stroke:"currentColor"}),s.createElement("path",{d:"M12 12.5V17",stroke:"currentColor"}))},J9=s.forwardRef(Z9);var Ty=J9,Q9=Object.defineProperty,u1=Object.getOwnPropertySymbols,e$=Object.prototype.hasOwnProperty,t$=Object.prototype.propertyIsEnumerable,d1=(e,t,n)=>t in e?Q9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nc=(e,t)=>{for(var n in t||(t={}))e$.call(t,n)&&d1(e,n,t[n]);if(u1)for(var n of u1(t))t$.call(t,n)&&d1(e,n,t[n]);return e};const n$=(e,t)=>{const n=s.useContext(F),r=Nc(Nc({},n),e);return s.createElement("svg",Nc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M19 19L17.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M15.5 15.5L14.5 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},r$=s.forwardRef(n$);var o$=r$,s$=Object.defineProperty,f1=Object.getOwnPropertySymbols,i$=Object.prototype.hasOwnProperty,a$=Object.prototype.propertyIsEnumerable,p1=(e,t,n)=>t in e?s$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dc=(e,t)=>{for(var n in t||(t={}))i$.call(t,n)&&p1(e,n,t[n]);if(f1)for(var n of f1(t))a$.call(t,n)&&p1(e,n,t[n]);return e};const c$=(e,t)=>{const n=s.useContext(F),r=Dc(Dc({},n),e);return s.createElement("svg",Dc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 21V7C12 5.89543 12.8954 5 14 5H21.4C21.7314 5 22 5.26863 22 5.6V18.7143",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M12 21V7C12 5.89543 11.1046 5 10 5H2.6C2.26863 5 2 5.26863 2 5.6V18.7143",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M14 19L22 19",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M10 19L2 19",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M12 21C12 19.8954 12.8954 19 14 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 21C12 19.8954 11.1046 19 10 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},l$=s.forwardRef(c$);var Ay=l$,u$=Object.defineProperty,m1=Object.getOwnPropertySymbols,d$=Object.prototype.hasOwnProperty,f$=Object.prototype.propertyIsEnumerable,h1=(e,t,n)=>t in e?u$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vc=(e,t)=>{for(var n in t||(t={}))d$.call(t,n)&&h1(e,n,t[n]);if(m1)for(var n of m1(t))f$.call(t,n)&&h1(e,n,t[n]);return e};const p$=(e,t)=>{const n=s.useContext(F),r=Vc(Vc({},n),e);return s.createElement("svg",Vc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M21 3L15 3M21 3L12 12M21 3V9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21 13V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19V5C3 3.89543 3.89543 3 5 3H11",stroke:"currentColor",strokeLinecap:"round"}))},m$=s.forwardRef(p$);var h$=m$,g$=Object.defineProperty,g1=Object.getOwnPropertySymbols,b$=Object.prototype.hasOwnProperty,v$=Object.prototype.propertyIsEnumerable,b1=(e,t,n)=>t in e?g$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fc=(e,t)=>{for(var n in t||(t={}))b$.call(t,n)&&b1(e,n,t[n]);if(g1)for(var n of g1(t))v$.call(t,n)&&b1(e,n,t[n]);return e};const y$=(e,t)=>{const n=s.useContext(F),r=Fc(Fc({},n),e);return s.createElement("svg",Fc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M8.5 11L12 14.5L15.5 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},w$=s.forwardRef(y$);var x$=w$,C$=Object.defineProperty,v1=Object.getOwnPropertySymbols,k$=Object.prototype.hasOwnProperty,E$=Object.prototype.propertyIsEnumerable,y1=(e,t,n)=>t in e?C$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bc=(e,t)=>{for(var n in t||(t={}))k$.call(t,n)&&y1(e,n,t[n]);if(v1)for(var n of v1(t))E$.call(t,n)&&y1(e,n,t[n]);return e};const L$=(e,t)=>{const n=s.useContext(F),r=Bc(Bc({},n),e);return s.createElement("svg",Bc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M8.5 13L12 9.5L15.5 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},S$=s.forwardRef(L$);var $$=S$,j$=Object.defineProperty,w1=Object.getOwnPropertySymbols,O$=Object.prototype.hasOwnProperty,R$=Object.prototype.propertyIsEnumerable,x1=(e,t,n)=>t in e?j$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hc=(e,t)=>{for(var n in t||(t={}))O$.call(t,n)&&x1(e,n,t[n]);if(w1)for(var n of w1(t))R$.call(t,n)&&x1(e,n,t[n]);return e};const M$=(e,t)=>{const n=s.useContext(F),r=Hc(Hc({},n),e);return s.createElement("svg",Hc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M4 21.4V2.6C4 2.26863 4.26863 2 4.6 2H16.2515C16.4106 2 16.5632 2.06321 16.6757 2.17574L19.8243 5.32426C19.9368 5.43679 20 5.5894 20 5.74853V21.4C20 21.7314 19.7314 22 19.4 22H4.6C4.26863 22 4 21.7314 4 21.4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 10L16 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 18L16 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 14L12 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M16 2V5.4C16 5.73137 16.2686 6 16.6 6H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},P$=s.forwardRef(M$);var T$=P$,A$=Object.defineProperty,C1=Object.getOwnPropertySymbols,I$=Object.prototype.hasOwnProperty,N$=Object.prototype.propertyIsEnumerable,k1=(e,t,n)=>t in e?A$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wc=(e,t)=>{for(var n in t||(t={}))I$.call(t,n)&&k1(e,n,t[n]);if(C1)for(var n of C1(t))N$.call(t,n)&&k1(e,n,t[n]);return e};const D$=(e,t)=>{const n=s.useContext(F),r=Wc(Wc({},n),e);return s.createElement("svg",Wc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M20.5096 9.54C20.4243 9.77932 20.2918 9.99909 20.12 10.1863C19.9483 10.3735 19.7407 10.5244 19.5096 10.63C18.2796 11.1806 17.2346 12.0745 16.5002 13.2045C15.7659 14.3345 15.3733 15.6524 15.3696 17C15.3711 17.4701 15.418 17.9389 15.5096 18.4C15.5707 18.6818 15.5747 18.973 15.5215 19.2564C15.4682 19.5397 15.3588 19.8096 15.1996 20.05C15.0649 20.2604 14.8877 20.4403 14.6793 20.5781C14.4709 20.7158 14.2359 20.8085 13.9896 20.85C13.4554 20.9504 12.9131 21.0006 12.3696 21C11.1638 21.0006 9.97011 20.7588 8.85952 20.2891C7.74893 19.8194 6.74405 19.1314 5.90455 18.2657C5.06506 17.4001 4.40807 16.3747 3.97261 15.2502C3.53714 14.1257 3.33208 12.9252 3.36959 11.72C3.4472 9.47279 4.3586 7.33495 5.92622 5.72296C7.49385 4.11097 9.60542 3.14028 11.8496 3H12.3596C14.0353 3.00042 15.6777 3.46869 17.1017 4.35207C18.5257 5.23544 19.6748 6.49885 20.4196 8C20.6488 8.47498 20.6812 9.02129 20.5096 9.52V9.54Z",stroke:"currentColor"}),s.createElement("path",{d:"M8 16.01L8.01 15.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 12.01L6.01 11.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 8.01L8.01 7.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 6.01L12.01 5.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M16 8.01L16.01 7.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},V$=s.forwardRef(D$);var Iy=V$,F$=Object.defineProperty,E1=Object.getOwnPropertySymbols,B$=Object.prototype.hasOwnProperty,H$=Object.prototype.propertyIsEnumerable,L1=(e,t,n)=>t in e?F$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zc=(e,t)=>{for(var n in t||(t={}))B$.call(t,n)&&L1(e,n,t[n]);if(E1)for(var n of E1(t))H$.call(t,n)&&L1(e,n,t[n]);return e};const W$=(e,t)=>{const n=s.useContext(F),r=zc(zc({},n),e);return s.createElement("svg",zc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M8.5 4H6C4.89543 4 4 4.89543 4 6V20C4 21.1046 4.89543 22 6 22H18C19.1046 22 20 21.1046 20 20V6C20 4.89543 19.1046 4 18 4H15.5",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M8 6.4V4.5C8 4.22386 8.22386 4 8.5 4C8.77614 4 9.00422 3.77604 9.05152 3.50398C9.19968 2.65171 9.77399 1 12 1C14.226 1 14.8003 2.65171 14.9485 3.50398C14.9958 3.77604 15.2239 4 15.5 4C15.7761 4 16 4.22386 16 4.5V6.4C16 6.73137 15.7314 7 15.4 7H8.6C8.26863 7 8 6.73137 8 6.4Z",stroke:"currentColor",strokeLinecap:"round"}))},z$=s.forwardRef(W$);var _$=z$,U$=Object.defineProperty,S1=Object.getOwnPropertySymbols,K$=Object.prototype.hasOwnProperty,G$=Object.prototype.propertyIsEnumerable,$1=(e,t,n)=>t in e?U$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_c=(e,t)=>{for(var n in t||(t={}))K$.call(t,n)&&$1(e,n,t[n]);if(S1)for(var n of S1(t))G$.call(t,n)&&$1(e,n,t[n]);return e};const Y$=(e,t)=>{const n=s.useContext(F),r=_c(_c({},n),e);return s.createElement("svg",_c({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M18 16.5V3M18 3L21.5 6.5M18 3L14.5 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M18 16.5C18 18.433 16.433 20 14.5 20C12.567 20 11 18.433 11 16.5V7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M11 7.5C11 5.567 9.433 4 7.5 4C5.567 4 4 5.567 4 7.5V19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},X$=s.forwardRef(Y$);var q$=X$,Z$=Object.defineProperty,j1=Object.getOwnPropertySymbols,J$=Object.prototype.hasOwnProperty,Q$=Object.prototype.propertyIsEnumerable,O1=(e,t,n)=>t in e?Z$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Uc=(e,t)=>{for(var n in t||(t={}))J$.call(t,n)&&O1(e,n,t[n]);if(j1)for(var n of j1(t))Q$.call(t,n)&&O1(e,n,t[n]);return e};const ej=(e,t)=>{const n=s.useContext(F),r=Uc(Uc({},n),e);return s.createElement("svg",Uc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 18.4V5.6C6 5.26863 6.26863 5 6.6 5H9.4C9.73137 5 10 5.26863 10 5.6V18.4C10 18.7314 9.73137 19 9.4 19H6.6C6.26863 19 6 18.7314 6 18.4Z",stroke:"currentColor"}),s.createElement("path",{d:"M14 18.4V5.6C14 5.26863 14.2686 5 14.6 5H17.4C17.7314 5 18 5.26863 18 5.6V18.4C18 18.7314 17.7314 19 17.4 19H14.6C14.2686 19 14 18.7314 14 18.4Z",stroke:"currentColor"}))},tj=s.forwardRef(ej);var nj=tj,rj=Object.defineProperty,R1=Object.getOwnPropertySymbols,oj=Object.prototype.hasOwnProperty,sj=Object.prototype.propertyIsEnumerable,M1=(e,t,n)=>t in e?rj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kc=(e,t)=>{for(var n in t||(t={}))oj.call(t,n)&&M1(e,n,t[n]);if(R1)for(var n of R1(t))sj.call(t,n)&&M1(e,n,t[n]);return e};const ij=(e,t)=>{const n=s.useContext(F),r=Kc(Kc({},n),e);return s.createElement("svg",Kc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M9.5 14.5L3 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.67602 7.8896L6.69713 7.78823L5.00007 9.48528L14.1925 18.6777L15.8895 16.9806L15.7879 16M11.4847 7L15.1568 2.67141L21.0065 8.5211L16.6991 12.175",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3 3L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},aj=s.forwardRef(ij);var cj=aj,lj=Object.defineProperty,P1=Object.getOwnPropertySymbols,uj=Object.prototype.hasOwnProperty,dj=Object.prototype.propertyIsEnumerable,T1=(e,t,n)=>t in e?lj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gc=(e,t)=>{for(var n in t||(t={}))uj.call(t,n)&&T1(e,n,t[n]);if(P1)for(var n of P1(t))dj.call(t,n)&&T1(e,n,t[n]);return e};const fj=(e,t)=>{const n=s.useContext(F),r=Gc(Gc({},n),e);return s.createElement("svg",Gc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M9.5 14.5L3 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M5.00007 9.48528L14.1925 18.6777L15.8895 16.9806L15.4974 13.1944L21.0065 8.5211L15.1568 2.67141L10.4834 8.18034L6.69713 7.78823L5.00007 9.48528Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},pj=s.forwardRef(fj);var mj=pj,hj=Object.defineProperty,A1=Object.getOwnPropertySymbols,gj=Object.prototype.hasOwnProperty,bj=Object.prototype.propertyIsEnumerable,I1=(e,t,n)=>t in e?hj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yc=(e,t)=>{for(var n in t||(t={}))gj.call(t,n)&&I1(e,n,t[n]);if(A1)for(var n of A1(t))bj.call(t,n)&&I1(e,n,t[n]);return e};const vj=(e,t)=>{const n=s.useContext(F),r=Yc(Yc({},n),e);return s.createElement("svg",Yc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6.90588 4.53682C6.50592 4.2998 6 4.58808 6 5.05299V18.947C6 19.4119 6.50592 19.7002 6.90588 19.4632L18.629 12.5162C19.0211 12.2838 19.0211 11.7162 18.629 11.4838L6.90588 4.53682Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},yj=s.forwardRef(vj);var wj=yj,xj=Object.defineProperty,N1=Object.getOwnPropertySymbols,Cj=Object.prototype.hasOwnProperty,kj=Object.prototype.propertyIsEnumerable,D1=(e,t,n)=>t in e?xj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xc=(e,t)=>{for(var n in t||(t={}))Cj.call(t,n)&&D1(e,n,t[n]);if(N1)for(var n of N1(t))kj.call(t,n)&&D1(e,n,t[n]);return e};const Ej=(e,t)=>{const n=s.useContext(F),r=Xc(Xc({},n),e);return s.createElement("svg",Xc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M2 11L16 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2 17L13 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2 5L20 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20 18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5C17 17.6716 17.6716 17 18.5 17C19.3284 17 20 17.6716 20 18.5ZM20 18.5V10.6C20 10.2686 20.2686 10 20.6 10H22",stroke:"currentColor",strokeLinecap:"round"}))},Lj=s.forwardRef(Ej);var Sj=Lj,$j=Object.defineProperty,V1=Object.getOwnPropertySymbols,jj=Object.prototype.hasOwnProperty,Oj=Object.prototype.propertyIsEnumerable,F1=(e,t,n)=>t in e?$j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qc=(e,t)=>{for(var n in t||(t={}))jj.call(t,n)&&F1(e,n,t[n]);if(V1)for(var n of V1(t))Oj.call(t,n)&&F1(e,n,t[n]);return e};const Rj=(e,t)=>{const n=s.useContext(F),r=qc(qc({},n),e);return s.createElement("svg",qc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 12H12M18 12H12M12 12V6M12 12V18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Mj=s.forwardRef(Rj);var Pj=Mj,Tj=Object.defineProperty,B1=Object.getOwnPropertySymbols,Aj=Object.prototype.hasOwnProperty,Ij=Object.prototype.propertyIsEnumerable,H1=(e,t,n)=>t in e?Tj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zc=(e,t)=>{for(var n in t||(t={}))Aj.call(t,n)&&H1(e,n,t[n]);if(B1)for(var n of B1(t))Ij.call(t,n)&&H1(e,n,t[n]);return e};const Nj=(e,t)=>{const n=s.useContext(F),r=Zc(Zc({},n),e);return s.createElement("svg",Zc({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 19.0007C3.57111 17.1763 2 14.2716 2 11C2 5.47715 6.47715 1 12 1C17.5228 1 22 5.47715 22 11C22 14.2716 20.4289 17.1763 18 19.0007",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 19.0007C3.57111 17.1763 2 14.2716 2 11C2 5.47715 6.47715 1 12 1C17.5228 1 22 5.47715 22 11C22 14.2716 20.4289 17.1763 18 19.0007",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.52779 15C6.57771 13.9385 6 12.5367 6 11C6 7.68629 8.68629 5 12 5C15.3137 5 18 7.68629 18 11C18 12.5367 17.4223 13.9385 16.4722 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 13C13.1046 13 14 12.1046 14 11C14 9.89543 13.1046 9 12 9C10.8954 9 10 9.89543 10 11C10 12.1046 10.8954 13 12 13Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M10.076 16.2827L10.8906 15.7396C11.5624 15.2917 12.4376 15.2917 13.1094 15.7396L13.924 16.2827C14.5789 16.7192 14.9168 17.4993 14.7874 18.2756L14.2785 21.3288C14.1178 22.2932 13.2834 23 12.3057 23H11.6943C10.7166 23 9.8822 22.2932 9.72147 21.3288L9.2126 18.2756C9.08321 17.4993 9.42114 16.7192 10.076 16.2827Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Dj=s.forwardRef(Nj);var Vj=Dj,Fj=Object.defineProperty,W1=Object.getOwnPropertySymbols,Bj=Object.prototype.hasOwnProperty,Hj=Object.prototype.propertyIsEnumerable,z1=(e,t,n)=>t in e?Fj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Jc=(e,t)=>{for(var n in t||(t={}))Bj.call(t,n)&&z1(e,n,t[n]);if(W1)for(var n of W1(t))Hj.call(t,n)&&z1(e,n,t[n]);return e};const Wj=(e,t)=>{const n=s.useContext(F),r=Jc(Jc({},n),e);return s.createElement("svg",Jc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 6L12 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 16L12 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 12H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M18 12H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},zj=s.forwardRef(Wj);var _j=zj,Uj=Object.defineProperty,_1=Object.getOwnPropertySymbols,Kj=Object.prototype.hasOwnProperty,Gj=Object.prototype.propertyIsEnumerable,U1=(e,t,n)=>t in e?Uj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qc=(e,t)=>{for(var n in t||(t={}))Kj.call(t,n)&&U1(e,n,t[n]);if(_1)for(var n of _1(t))Gj.call(t,n)&&U1(e,n,t[n]);return e};const Yj=(e,t)=>{const n=s.useContext(F),r=Qc(Qc({},n),e);return s.createElement("svg",Qc({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M4 20L9 15M9 15V19M9 15H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20 4L15 9M15 9V5M15 9H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Xj=s.forwardRef(Yj);var qj=Xj,Zj=Object.defineProperty,K1=Object.getOwnPropertySymbols,Jj=Object.prototype.hasOwnProperty,Qj=Object.prototype.propertyIsEnumerable,G1=(e,t,n)=>t in e?Zj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,el=(e,t)=>{for(var n in t||(t={}))Jj.call(t,n)&&G1(e,n,t[n]);if(K1)for(var n of K1(t))Qj.call(t,n)&&G1(e,n,t[n]);return e};const e8=(e,t)=>{const n=s.useContext(F),r=el(el({},n),e);return s.createElement("svg",el({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M21.1679 8C19.6247 4.46819 16.1006 2 11.9999 2C6.81459 2 2.55104 5.94668 2.04932 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 8H21.4C21.7314 8 22 7.73137 22 7.4V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2.88146 16C4.42458 19.5318 7.94874 22 12.0494 22C17.2347 22 21.4983 18.0533 22 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.04932 16H2.64932C2.31795 16 2.04932 16.2686 2.04932 16.6V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},t8=s.forwardRef(e8);var Ny=t8,n8=Object.defineProperty,Y1=Object.getOwnPropertySymbols,r8=Object.prototype.hasOwnProperty,o8=Object.prototype.propertyIsEnumerable,X1=(e,t,n)=>t in e?n8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tl=(e,t)=>{for(var n in t||(t={}))r8.call(t,n)&&X1(e,n,t[n]);if(Y1)for(var n of Y1(t))o8.call(t,n)&&X1(e,n,t[n]);return e};const s8=(e,t)=>{const n=s.useContext(F),r=tl(tl({},n),e);return s.createElement("svg",tl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17 17H8C6.33333 17 3 16 3 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M8 7H16C17.6667 7 21 8 21 12C21 13.4943 20.5348 14.57 19.865 15.3312",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M14.5 14.5L17 17L14.5 19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M4 8V5V3L2 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},i8=s.forwardRef(s8);var a8=i8,c8=Object.defineProperty,q1=Object.getOwnPropertySymbols,l8=Object.prototype.hasOwnProperty,u8=Object.prototype.propertyIsEnumerable,Z1=(e,t,n)=>t in e?c8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nl=(e,t)=>{for(var n in t||(t={}))l8.call(t,n)&&Z1(e,n,t[n]);if(q1)for(var n of q1(t))u8.call(t,n)&&Z1(e,n,t[n]);return e};const d8=(e,t)=>{const n=s.useContext(F),r=nl(nl({},n),e);return s.createElement("svg",nl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17 17H8C6.33333 17 3 16 3 12C3 8 6.33333 7 8 7H16C17.6667 7 21 8 21 12C21 13.4943 20.5348 14.57 19.865 15.3312",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M14.5 14.5L17 17L14.5 19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},f8=s.forwardRef(d8);var p8=f8,m8=Object.defineProperty,J1=Object.getOwnPropertySymbols,h8=Object.prototype.hasOwnProperty,g8=Object.prototype.propertyIsEnumerable,Q1=(e,t,n)=>t in e?m8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rl=(e,t)=>{for(var n in t||(t={}))h8.call(t,n)&&Q1(e,n,t[n]);if(J1)for(var n of J1(t))g8.call(t,n)&&Q1(e,n,t[n]);return e};const b8=(e,t)=>{const n=s.useContext(F),r=rl(rl({},n),e);return s.createElement("svg",rl({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17 17L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M3 11C3 15.4183 6.58172 19 11 19C13.213 19 15.2161 18.1015 16.6644 16.6493C18.1077 15.2022 19 13.2053 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},v8=s.forwardRef(b8);var y8=v8,w8=Object.defineProperty,eg=Object.getOwnPropertySymbols,x8=Object.prototype.hasOwnProperty,C8=Object.prototype.propertyIsEnumerable,tg=(e,t,n)=>t in e?w8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ol=(e,t)=>{for(var n in t||(t={}))x8.call(t,n)&&tg(e,n,t[n]);if(eg)for(var n of eg(t))C8.call(t,n)&&tg(e,n,t[n]);return e};const k8=(e,t)=>{const n=s.useContext(F),r=ol(ol({},n),e);return s.createElement("svg",ol({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M22 12L3 20L6.5625 12L3 4L22 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6.5 12L22 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},E8=s.forwardRef(k8);var L8=E8,S8=Object.defineProperty,ng=Object.getOwnPropertySymbols,$8=Object.prototype.hasOwnProperty,j8=Object.prototype.propertyIsEnumerable,rg=(e,t,n)=>t in e?S8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sl=(e,t)=>{for(var n in t||(t={}))$8.call(t,n)&&rg(e,n,t[n]);if(ng)for(var n of ng(t))j8.call(t,n)&&rg(e,n,t[n]);return e};const O8=(e,t)=>{const n=s.useContext(F),r=sl(sl({},n),e);return s.createElement("svg",sl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 18.01L6.01 17.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 6.01L6.01 5.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2 9.4V2.6C2 2.26863 2.26863 2 2.6 2H21.4C21.7314 2 22 2.26863 22 2.6V9.4C22 9.73137 21.7314 10 21.4 10H2.6C2.26863 10 2 9.73137 2 9.4Z",stroke:"currentColor"}),s.createElement("path",{d:"M2 21.4V14.6C2 14.2686 2.26863 14 2.6 14H21.4C21.7314 14 22 14.2686 22 14.6V21.4C22 21.7314 21.7314 22 21.4 22H2.6C2.26863 22 2 21.7314 2 21.4Z",stroke:"currentColor"}))},R8=s.forwardRef(O8);var M8=R8,P8=Object.defineProperty,og=Object.getOwnPropertySymbols,T8=Object.prototype.hasOwnProperty,A8=Object.prototype.propertyIsEnumerable,sg=(e,t,n)=>t in e?P8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,il=(e,t)=>{for(var n in t||(t={}))T8.call(t,n)&&sg(e,n,t[n]);if(og)for(var n of og(t))A8.call(t,n)&&sg(e,n,t[n]);return e};const I8=(e,t)=>{const n=s.useContext(F),r=il(il({},n),e);return s.createElement("svg",il({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M11.6065 2.34184C11.8322 2.14578 12.1678 2.14578 12.3935 2.34184L14.3418 4.03445C14.4646 4.14111 14.6254 4.19336 14.7874 4.17924L17.3586 3.9551C17.6564 3.92913 17.9279 4.1264 17.9953 4.41768L18.5766 6.93224C18.6133 7.09069 18.7126 7.22748 18.852 7.31129L21.0639 8.64123C21.3201 8.79529 21.4238 9.11447 21.307 9.3897L20.2994 11.7657C20.2359 11.9155 20.2359 12.0845 20.2994 12.2343L21.307 14.6103C21.4238 14.8855 21.3201 15.2047 21.0639 15.3588L18.852 16.6887C18.7126 16.7725 18.6133 16.9093 18.5766 17.0678L17.9953 19.5823C17.9279 19.8736 17.6564 20.0709 17.3586 20.0449L14.7874 19.8208C14.6254 19.8066 14.4646 19.8589 14.3418 19.9655L12.3935 21.6582C12.1678 21.8542 11.8322 21.8542 11.6065 21.6582L9.65816 19.9655C9.53539 19.8589 9.37458 19.8066 9.21256 19.8208L6.64142 20.0449C6.34359 20.0709 6.07208 19.8736 6.00474 19.5823L5.42338 17.0678C5.38675 16.9093 5.28736 16.7725 5.14798 16.6887L2.93615 15.3588C2.67993 15.2047 2.57622 14.8855 2.69295 14.6103L3.70065 12.2343C3.76414 12.0845 3.76414 11.9155 3.70065 11.7657L2.69295 9.3897C2.57622 9.11447 2.67993 8.79529 2.93615 8.64123L5.14798 7.31129C5.28736 7.22748 5.38675 7.09069 5.42338 6.93224L6.00474 4.41768C6.07208 4.1264 6.34359 3.92913 6.64142 3.9551L9.21256 4.17924C9.37458 4.19336 9.53539 4.14111 9.65816 4.03445L11.6065 2.34184Z",stroke:"currentColor"}),s.createElement("path",{d:"M9 13L11 15L16 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},N8=s.forwardRef(I8);var D8=N8,V8=Object.defineProperty,ig=Object.getOwnPropertySymbols,F8=Object.prototype.hasOwnProperty,B8=Object.prototype.propertyIsEnumerable,ag=(e,t,n)=>t in e?V8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,al=(e,t)=>{for(var n in t||(t={}))F8.call(t,n)&&ag(e,n,t[n]);if(ig)for(var n of ig(t))B8.call(t,n)&&ag(e,n,t[n]);return e};const H8=(e,t)=>{const n=s.useContext(F),r=al(al({},n),e);return s.createElement("svg",al({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M19.6224 10.3954L18.5247 7.7448L20 6L18 4L16.2647 5.48295L13.5578 4.36974L12.9353 2H10.981L10.3491 4.40113L7.70441 5.51596L6 4L4 6L5.45337 7.78885L4.3725 10.4463L2 11V13L4.40111 13.6555L5.51575 16.2997L4 18L6 20L7.79116 18.5403L10.397 19.6123L11 22H13L13.6045 19.6132L16.2551 18.5155C16.6969 18.8313 18 20 18 20L20 18L18.5159 16.2494L19.6139 13.598L21.9999 12.9772L22 11L19.6224 10.3954Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},W8=s.forwardRef(H8);var z8=W8,_8=Object.defineProperty,cg=Object.getOwnPropertySymbols,U8=Object.prototype.hasOwnProperty,K8=Object.prototype.propertyIsEnumerable,lg=(e,t,n)=>t in e?_8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cl=(e,t)=>{for(var n in t||(t={}))U8.call(t,n)&&lg(e,n,t[n]);if(cg)for(var n of cg(t))K8.call(t,n)&&lg(e,n,t[n]);return e};const G8=(e,t)=>{const n=s.useContext(F),r=cl(cl({},n),e);return s.createElement("svg",cl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M18 22C19.6569 22 21 20.6569 21 19C21 17.3431 19.6569 16 18 16C16.3431 16 15 17.3431 15 19C15 20.6569 16.3431 22 18 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M18 8C19.6569 8 21 6.65685 21 5C21 3.34315 19.6569 2 18 2C16.3431 2 15 3.34315 15 5C15 6.65685 16.3431 8 18 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 15C7.65685 15 9 13.6569 9 12C9 10.3431 7.65685 9 6 9C4.34315 9 3 10.3431 3 12C3 13.6569 4.34315 15 6 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M15.5 6.5L8.5 10.5",stroke:"currentColor"}),s.createElement("path",{d:"M8.5 13.5L15.5 17.5",stroke:"currentColor"}))},Y8=s.forwardRef(G8);var X8=Y8,q8=Object.defineProperty,ug=Object.getOwnPropertySymbols,Z8=Object.prototype.hasOwnProperty,J8=Object.prototype.propertyIsEnumerable,dg=(e,t,n)=>t in e?q8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ll=(e,t)=>{for(var n in t||(t={}))Z8.call(t,n)&&dg(e,n,t[n]);if(ug)for(var n of ug(t))J8.call(t,n)&&dg(e,n,t[n]);return e};const Q8=(e,t)=>{const n=s.useContext(F),r=ll(ll({},n),e);return s.createElement("svg",ll({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M8.5 11.5L11.5 14.5L16.5 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M5 18L3.13036 4.91253C3.05646 4.39524 3.39389 3.91247 3.90398 3.79912L11.5661 2.09641C11.8519 2.03291 12.1481 2.03291 12.4339 2.09641L20.096 3.79912C20.6061 3.91247 20.9435 4.39524 20.8696 4.91252L19 18C18.9293 18.495 18.5 21.5 12 21.5C5.5 21.5 5.07071 18.495 5 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},eO=s.forwardRef(Q8);var tO=eO,nO=Object.defineProperty,fg=Object.getOwnPropertySymbols,rO=Object.prototype.hasOwnProperty,oO=Object.prototype.propertyIsEnumerable,pg=(e,t,n)=>t in e?nO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ul=(e,t)=>{for(var n in t||(t={}))rO.call(t,n)&&pg(e,n,t[n]);if(fg)for(var n of fg(t))oO.call(t,n)&&pg(e,n,t[n]);return e};const sO=(e,t)=>{const n=s.useContext(F),r=ul(ul({},n),e);return s.createElement("svg",ul({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M22 6.99999C19 6.99999 13.5 6.99999 11.5 12.5C9.5 18 5 18 2 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20 5C20 5 21.219 6.21895 22 7C21.219 7.78105 20 9 20 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M22 18C19 18 13.5 18 11.5 12.5C9.5 6.99999 5 7.00001 2 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20 20C20 20 21.219 18.781 22 18C21.219 17.219 20 16 20 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},iO=s.forwardRef(sO);var aO=iO,cO=Object.defineProperty,mg=Object.getOwnPropertySymbols,lO=Object.prototype.hasOwnProperty,uO=Object.prototype.propertyIsEnumerable,hg=(e,t,n)=>t in e?cO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dl=(e,t)=>{for(var n in t||(t={}))lO.call(t,n)&&hg(e,n,t[n]);if(mg)for(var n of mg(t))uO.call(t,n)&&hg(e,n,t[n]);return e};const dO=(e,t)=>{const n=s.useContext(F),r=dl(dl({},n),e);return s.createElement("svg",dl({width:"1.5em",strokeWidth:1.5,height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M19 21L5 21C3.89543 21 3 20.1046 3 19L3 5C3 3.89543 3.89543 3 5 3L19 3C20.1046 3 21 3.89543 21 5L21 19C21 20.1046 20.1046 21 19 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.25 10L5.5 12L7.25 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M9.5 21V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},fO=s.forwardRef(dO);var Dy=fO,pO=Object.defineProperty,gg=Object.getOwnPropertySymbols,mO=Object.prototype.hasOwnProperty,hO=Object.prototype.propertyIsEnumerable,bg=(e,t,n)=>t in e?pO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fl=(e,t)=>{for(var n in t||(t={}))mO.call(t,n)&&bg(e,n,t[n]);if(gg)for(var n of gg(t))hO.call(t,n)&&bg(e,n,t[n]);return e};const gO=(e,t)=>{const n=s.useContext(F),r=fl(fl({},n),e);return s.createElement("svg",fl({width:"1.5em",strokeWidth:1.5,height:"1.5em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M19 21L5 21C3.89543 21 3 20.1046 3 19L3 5C3 3.89543 3.89543 3 5 3L19 3C20.1046 3 21 3.89543 21 5L21 19C21 20.1046 20.1046 21 19 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M9.5 21V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M5.5 10L7.25 12L5.5 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},bO=s.forwardRef(gO);var Id=bO,vO=Object.defineProperty,vg=Object.getOwnPropertySymbols,yO=Object.prototype.hasOwnProperty,wO=Object.prototype.propertyIsEnumerable,yg=(e,t,n)=>t in e?vO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pl=(e,t)=>{for(var n in t||(t={}))yO.call(t,n)&&yg(e,n,t[n]);if(vg)for(var n of vg(t))wO.call(t,n)&&yg(e,n,t[n]);return e};const xO=(e,t)=>{const n=s.useContext(F),r=pl(pl({},n),e);return s.createElement("svg",pl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M18 7V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6.97179 5.2672C6.57832 4.95657 6 5.23682 6 5.73813V18.2619C6 18.7632 6.57832 19.0434 6.97179 18.7328L14.9035 12.4709C15.2078 12.2307 15.2078 11.7693 14.9035 11.5291L6.97179 5.2672Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},CO=s.forwardRef(xO);var kO=CO,EO=Object.defineProperty,wg=Object.getOwnPropertySymbols,LO=Object.prototype.hasOwnProperty,SO=Object.prototype.propertyIsEnumerable,xg=(e,t,n)=>t in e?EO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ml=(e,t)=>{for(var n in t||(t={}))LO.call(t,n)&&xg(e,n,t[n]);if(wg)for(var n of wg(t))SO.call(t,n)&&xg(e,n,t[n]);return e};const $O=(e,t)=>{const n=s.useContext(F),r=ml(ml({},n),e);return s.createElement("svg",ml({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 7V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17.0282 5.2672C17.4217 4.95657 18 5.23682 18 5.73813V18.2619C18 18.7632 17.4217 19.0434 17.0282 18.7328L9.09651 12.4709C8.79223 12.2307 8.79223 11.7693 9.09651 11.5291L17.0282 5.2672Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},jO=s.forwardRef($O);var OO=jO,RO=Object.defineProperty,Cg=Object.getOwnPropertySymbols,MO=Object.prototype.hasOwnProperty,PO=Object.prototype.propertyIsEnumerable,kg=(e,t,n)=>t in e?RO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hl=(e,t)=>{for(var n in t||(t={}))MO.call(t,n)&&kg(e,n,t[n]);if(Cg)for(var n of Cg(t))PO.call(t,n)&&kg(e,n,t[n]);return e};const TO=(e,t)=>{const n=s.useContext(F),r=hl(hl({},n),e);return s.createElement("svg",hl({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M1 13.8571V10.1429C1 9.03829 1.89543 8.14286 3 8.14286H5.9C6.09569 8.14286 6.28708 8.08544 6.45046 7.97772L12.4495 4.02228C13.1144 3.5839 14 4.06075 14 4.85714V19.1429C14 19.9392 13.1144 20.4161 12.4495 19.9777L6.45046 16.0223C6.28708 15.9146 6.09569 15.8571 5.9 15.8571H3C1.89543 15.8571 1 14.9617 1 13.8571Z",stroke:"currentColor"}),s.createElement("path",{d:"M17.5 7.5C17.5 7.5 19 9 19 11.5C19 14 17.5 15.5 17.5 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M20.5 4.5C20.5 4.5 23 7 23 11.5C23 16 20.5 18.5 20.5 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},AO=s.forwardRef(TO);var Vy=AO,IO=Object.defineProperty,Eg=Object.getOwnPropertySymbols,NO=Object.prototype.hasOwnProperty,DO=Object.prototype.propertyIsEnumerable,Lg=(e,t,n)=>t in e?IO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gl=(e,t)=>{for(var n in t||(t={}))NO.call(t,n)&&Lg(e,n,t[n]);if(Eg)for(var n of Eg(t))DO.call(t,n)&&Lg(e,n,t[n]);return e};const VO=(e,t)=>{const n=s.useContext(F),r=gl(gl({},n),e);return s.createElement("svg",gl({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M19.5 7.5C19.5 7.5 21 9 21 11.5C21 14 19.5 15.5 19.5 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2 13.8571V10.1429C2 9.03829 2.89543 8.14286 4 8.14286H6.9C7.09569 8.14286 7.28708 8.08544 7.45046 7.97772L13.4495 4.02228C14.1144 3.5839 15 4.06075 15 4.85714V19.1429C15 19.9392 14.1144 20.4161 13.4495 19.9777L7.45046 16.0223C7.28708 15.9146 7.09569 15.8571 6.9 15.8571H4C2.89543 15.8571 2 14.9617 2 13.8571Z",stroke:"currentColor"}))},FO=s.forwardRef(VO);var BO=FO,HO=Object.defineProperty,Sg=Object.getOwnPropertySymbols,WO=Object.prototype.hasOwnProperty,zO=Object.prototype.propertyIsEnumerable,$g=(e,t,n)=>t in e?HO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bl=(e,t)=>{for(var n in t||(t={}))WO.call(t,n)&&$g(e,n,t[n]);if(Sg)for(var n of Sg(t))zO.call(t,n)&&$g(e,n,t[n]);return e};const _O=(e,t)=>{const n=s.useContext(F),r=bl(bl({},n),e);return s.createElement("svg",bl({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M18 14L20.0005 12M22 10L20.0005 12M20.0005 12L18 10M20.0005 12L22 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2 13.8571V10.1429C2 9.03829 2.89543 8.14286 4 8.14286H6.9C7.09569 8.14286 7.28708 8.08544 7.45046 7.97772L13.4495 4.02228C14.1144 3.5839 15 4.06075 15 4.85714V19.1429C15 19.9392 14.1144 20.4161 13.4495 19.9777L7.45046 16.0223C7.28708 15.9146 7.09569 15.8571 6.9 15.8571H4C2.89543 15.8571 2 14.9617 2 13.8571Z",stroke:"currentColor"}))},UO=s.forwardRef(_O);var KO=UO,GO=Object.defineProperty,jg=Object.getOwnPropertySymbols,YO=Object.prototype.hasOwnProperty,XO=Object.prototype.propertyIsEnumerable,Og=(e,t,n)=>t in e?GO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vl=(e,t)=>{for(var n in t||(t={}))YO.call(t,n)&&Og(e,n,t[n]);if(jg)for(var n of jg(t))XO.call(t,n)&&Og(e,n,t[n]);return e};const qO=(e,t)=>{const n=s.useContext(F),r=vl(vl({},n),e);return s.createElement("svg",vl({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M8 15C12.8747 15 15 12.949 15 8C15 12.949 17.1104 15 22 15C17.1104 15 15 17.1104 15 22C15 17.1104 12.8747 15 8 15Z",stroke:"currentColor",strokeLinejoin:"round"}),s.createElement("path",{d:"M2 6.5C5.13376 6.5 6.5 5.18153 6.5 2C6.5 5.18153 7.85669 6.5 11 6.5C7.85669 6.5 6.5 7.85669 6.5 11C6.5 7.85669 5.13376 6.5 2 6.5Z",stroke:"currentColor",strokeLinejoin:"round"}))},ZO=s.forwardRef(qO);var JO=ZO,QO=Object.defineProperty,Rg=Object.getOwnPropertySymbols,eR=Object.prototype.hasOwnProperty,tR=Object.prototype.propertyIsEnumerable,Mg=(e,t,n)=>t in e?QO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yl=(e,t)=>{for(var n in t||(t={}))eR.call(t,n)&&Mg(e,n,t[n]);if(Rg)for(var n of Rg(t))tR.call(t,n)&&Mg(e,n,t[n]);return e};const nR=(e,t)=>{const n=s.useContext(F),r=yl(yl({},n),e);return s.createElement("svg",yl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M21 3.6V20.4C21 20.7314 20.7314 21 20.4 21H3.6C3.26863 21 3 20.7314 3 20.4V3.6C3 3.26863 3.26863 3 3.6 3H20.4C20.7314 3 21 3.26863 21 3.6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},rR=s.forwardRef(nR);var oR=rR,sR=Object.defineProperty,Pg=Object.getOwnPropertySymbols,iR=Object.prototype.hasOwnProperty,aR=Object.prototype.propertyIsEnumerable,Tg=(e,t,n)=>t in e?sR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wl=(e,t)=>{for(var n in t||(t={}))iR.call(t,n)&&Tg(e,n,t[n]);if(Pg)for(var n of Pg(t))aR.call(t,n)&&Tg(e,n,t[n]);return e};const cR=(e,t)=>{const n=s.useContext(F),r=wl(wl({},n),e);return s.createElement("svg",wl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7 13C7.55228 13 8 12.5523 8 12C8 11.4477 7.55228 11 7 11C6.44772 11 6 11.4477 6 12C6 12.5523 6.44772 13 7 13Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 17H7C4.23858 17 2 14.7614 2 12C2 9.23858 4.23858 7 7 7H17C19.7614 7 22 9.23858 22 12C22 14.7614 19.7614 17 17 17Z",stroke:"currentColor"}))},lR=s.forwardRef(cR);var uR=lR,dR=Object.defineProperty,Ag=Object.getOwnPropertySymbols,fR=Object.prototype.hasOwnProperty,pR=Object.prototype.propertyIsEnumerable,Ig=(e,t,n)=>t in e?dR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xl=(e,t)=>{for(var n in t||(t={}))fR.call(t,n)&&Ig(e,n,t[n]);if(Ag)for(var n of Ag(t))pR.call(t,n)&&Ig(e,n,t[n]);return e};const mR=(e,t)=>{const n=s.useContext(F),r=xl(xl({},n),e);return s.createElement("svg",xl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M17 13C17.5523 13 18 12.5523 18 12C18 11.4477 17.5523 11 17 11C16.4477 11 16 11.4477 16 12C16 12.5523 16.4477 13 17 13Z",fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M17 17H7C4.23858 17 2 14.7614 2 12C2 9.23858 4.23858 7 7 7H17C19.7614 7 22 9.23858 22 12C22 14.7614 19.7614 17 17 17Z",stroke:"currentColor"}))},hR=s.forwardRef(mR);var gR=hR,bR=Object.defineProperty,Ng=Object.getOwnPropertySymbols,vR=Object.prototype.hasOwnProperty,yR=Object.prototype.propertyIsEnumerable,Dg=(e,t,n)=>t in e?bR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cl=(e,t)=>{for(var n in t||(t={}))vR.call(t,n)&&Dg(e,n,t[n]);if(Ng)for(var n of Ng(t))yR.call(t,n)&&Dg(e,n,t[n]);return e};const wR=(e,t)=>{const n=s.useContext(F),r=Cl(Cl({},n),e);return s.createElement("svg",Cl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 7V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},xR=s.forwardRef(wR);var CR=xR,kR=Object.defineProperty,Vg=Object.getOwnPropertySymbols,ER=Object.prototype.hasOwnProperty,LR=Object.prototype.propertyIsEnumerable,Fg=(e,t,n)=>t in e?kR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kl=(e,t)=>{for(var n in t||(t={}))ER.call(t,n)&&Fg(e,n,t[n]);if(Vg)for(var n of Vg(t))LR.call(t,n)&&Fg(e,n,t[n]);return e};const SR=(e,t)=>{const n=s.useContext(F),r=kl(kl({},n),e);return s.createElement("svg",kl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M3 12H7.5H12H16.5H21M3 12V16.5M3 12V7.5M21 12V16.5M21 12V7.5M3 16.5V20.4C3 20.7314 3.26863 21 3.6 21H7.5H12H16.5H20.4C20.7314 21 21 20.7314 21 20.4V16.5M3 16.5H7.5H12H16.5H21M21 7.5V3.6C21 3.26863 20.7314 3 20.4 3H16.5H12H7.5H3.6C3.26863 3 3 3.26863 3 3.6V7.5M21 7.5H16.5H12H7.5H3",stroke:"currentColor"}))},$R=s.forwardRef(SR);var jR=$R,OR=Object.defineProperty,Bg=Object.getOwnPropertySymbols,RR=Object.prototype.hasOwnProperty,MR=Object.prototype.propertyIsEnumerable,Hg=(e,t,n)=>t in e?OR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,El=(e,t)=>{for(var n in t||(t={}))RR.call(t,n)&&Hg(e,n,t[n]);if(Bg)for(var n of Bg(t))MR.call(t,n)&&Hg(e,n,t[n]);return e};const PR=(e,t)=>{const n=s.useContext(F),r=El(El({},n),e);return s.createElement("svg",El({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M13 16H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M6 8L10 12L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M2 18V6C2 4.89543 2.89543 4 4 4H20C21.1046 4 22 4.89543 22 6V18C22 19.1046 21.1046 20 20 20H4C2.89543 20 2 19.1046 2 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},TR=s.forwardRef(PR);var AR=TR,IR=Object.defineProperty,Wg=Object.getOwnPropertySymbols,NR=Object.prototype.hasOwnProperty,DR=Object.prototype.propertyIsEnumerable,zg=(e,t,n)=>t in e?IR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ll=(e,t)=>{for(var n in t||(t={}))NR.call(t,n)&&zg(e,n,t[n]);if(Wg)for(var n of Wg(t))DR.call(t,n)&&zg(e,n,t[n]);return e};const VR=(e,t)=>{const n=s.useContext(F),r=Ll(Ll({},n),e);return s.createElement("svg",Ll({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M13 17H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M5 7L10 12L5 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},FR=s.forwardRef(VR);var BR=FR,HR=Object.defineProperty,_g=Object.getOwnPropertySymbols,WR=Object.prototype.hasOwnProperty,zR=Object.prototype.propertyIsEnumerable,Ug=(e,t,n)=>t in e?HR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sl=(e,t)=>{for(var n in t||(t={}))WR.call(t,n)&&Ug(e,n,t[n]);if(_g)for(var n of _g(t))zR.call(t,n)&&Ug(e,n,t[n]);return e};const _R=(e,t)=>{const n=s.useContext(F),r=Sl(Sl({},n),e);return s.createElement("svg",Sl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M19 7V5L5 5V7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 5L12 19M12 19H10M12 19H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},UR=s.forwardRef(_R);var KR=UR,GR=Object.defineProperty,Kg=Object.getOwnPropertySymbols,YR=Object.prototype.hasOwnProperty,XR=Object.prototype.propertyIsEnumerable,Gg=(e,t,n)=>t in e?GR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$l=(e,t)=>{for(var n in t||(t={}))YR.call(t,n)&&Gg(e,n,t[n]);if(Kg)for(var n of Kg(t))XR.call(t,n)&&Gg(e,n,t[n]);return e};const qR=(e,t)=>{const n=s.useContext(F),r=$l($l({},n),e);return s.createElement("svg",$l({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M20 9L18.005 20.3463C17.8369 21.3026 17.0062 22 16.0353 22H7.96474C6.99379 22 6.1631 21.3026 5.99496 20.3463L4 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M21 6L15.375 6M3 6L8.625 6M8.625 6V4C8.625 2.89543 9.52043 2 10.625 2H13.375C14.4796 2 15.375 2.89543 15.375 4V6M8.625 6L15.375 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},ZR=s.forwardRef(qR);var JR=ZR,QR=Object.defineProperty,Yg=Object.getOwnPropertySymbols,eM=Object.prototype.hasOwnProperty,tM=Object.prototype.propertyIsEnumerable,Xg=(e,t,n)=>t in e?QR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jl=(e,t)=>{for(var n in t||(t={}))eM.call(t,n)&&Xg(e,n,t[n]);if(Yg)for(var n of Yg(t))tM.call(t,n)&&Xg(e,n,t[n]);return e};const nM=(e,t)=>{const n=s.useContext(F),r=jl(jl({},n),e);return s.createElement("svg",jl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M7 16.2485C7 16.0894 6.93679 15.9368 6.82426 15.8243L3.17574 12.1757C3.06321 12.0632 3 11.9106 3 11.7515V4C3 2.89543 3.89543 2 5 2H12H19C20.1046 2 21 2.89543 21 4V11.7515C21 11.9106 20.9368 12.0632 20.8243 12.1757L17.1757 15.8243C17.0632 15.9368 17 16.0894 17 16.2485V20C17 21.1046 16.1046 22 15 22H9C7.89543 22 7 21.1046 7 20V16.2485Z",stroke:"currentColor"}),s.createElement("path",{d:"M9.5 11.5L10 10.4M14.5 11.5L14 10.4M14 10.4L12 6L10 10.4M14 10.4H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},rM=s.forwardRef(nM);var Fy=rM,oM=Object.defineProperty,qg=Object.getOwnPropertySymbols,sM=Object.prototype.hasOwnProperty,iM=Object.prototype.propertyIsEnumerable,Zg=(e,t,n)=>t in e?oM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ol=(e,t)=>{for(var n in t||(t={}))sM.call(t,n)&&Zg(e,n,t[n]);if(qg)for(var n of qg(t))iM.call(t,n)&&Zg(e,n,t[n]);return e};const aM=(e,t)=>{const n=s.useContext(F),r=Ol(Ol({},n),e);return s.createElement("svg",Ol({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M4.5 8C8.5 8 11 8 15 8C15 8 15 8 15 8C15 8 20 8 20 12.7059C20 18 15 18 15 18C11.5714 18 9.71429 18 6.28571 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M7.5 11.5C6.13317 10.1332 5.36683 9.36683 4 8C5.36683 6.63317 6.13317 5.86683 7.5 4.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},cM=s.forwardRef(aM);var lM=cM,uM=Object.defineProperty,Jg=Object.getOwnPropertySymbols,dM=Object.prototype.hasOwnProperty,fM=Object.prototype.propertyIsEnumerable,Qg=(e,t,n)=>t in e?uM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rl=(e,t)=>{for(var n in t||(t={}))dM.call(t,n)&&Qg(e,n,t[n]);if(Jg)for(var n of Jg(t))fM.call(t,n)&&Qg(e,n,t[n]);return e};const pM=(e,t)=>{const n=s.useContext(F),r=Rl(Rl({},n),e);return s.createElement("svg",Rl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6 20L18 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 16V4M12 4L15.5 7.5M12 4L8.5 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},mM=s.forwardRef(pM);var hM=mM,gM=Object.defineProperty,eb=Object.getOwnPropertySymbols,bM=Object.prototype.hasOwnProperty,vM=Object.prototype.propertyIsEnumerable,tb=(e,t,n)=>t in e?gM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ml=(e,t)=>{for(var n in t||(t={}))bM.call(t,n)&&tb(e,n,t[n]);if(eb)for(var n of eb(t))vM.call(t,n)&&tb(e,n,t[n]);return e};const yM=(e,t)=>{const n=s.useContext(F),r=Ml(Ml({},n),e);return s.createElement("svg",Ml({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 3H20.4C20.7314 3 21 3.26863 21 3.6V20.4C21 20.7314 20.7314 21 20.4 21H12M12 3H3.6C3.26863 3 3 3.26863 3 3.6V20.4C3 20.7314 3.26863 21 3.6 21H12M12 3V21",stroke:"currentColor"}))},wM=s.forwardRef(yM);var xM=wM,CM=Object.defineProperty,nb=Object.getOwnPropertySymbols,kM=Object.prototype.hasOwnProperty,EM=Object.prototype.propertyIsEnumerable,rb=(e,t,n)=>t in e?CM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pl=(e,t)=>{for(var n in t||(t={}))kM.call(t,n)&&rb(e,n,t[n]);if(nb)for(var n of nb(t))EM.call(t,n)&&rb(e,n,t[n]);return e};const LM=(e,t)=>{const n=s.useContext(F),r=Pl(Pl({},n),e);return s.createElement("svg",Pl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M14 20.4V14.6C14 14.2686 14.2686 14 14.6 14H20.4C20.7314 14 21 14.2686 21 14.6V20.4C21 20.7314 20.7314 21 20.4 21H14.6C14.2686 21 14 20.7314 14 20.4Z",stroke:"currentColor"}),s.createElement("path",{d:"M3 20.4V14.6C3 14.2686 3.26863 14 3.6 14H9.4C9.73137 14 10 14.2686 10 14.6V20.4C10 20.7314 9.73137 21 9.4 21H3.6C3.26863 21 3 20.7314 3 20.4Z",stroke:"currentColor"}),s.createElement("path",{d:"M14 9.4V3.6C14 3.26863 14.2686 3 14.6 3H20.4C20.7314 3 21 3.26863 21 3.6V9.4C21 9.73137 20.7314 10 20.4 10H14.6C14.2686 10 14 9.73137 14 9.4Z",stroke:"currentColor"}),s.createElement("path",{d:"M3 9.4V3.6C3 3.26863 3.26863 3 3.6 3H9.4C9.73137 3 10 3.26863 10 3.6V9.4C10 9.73137 9.73137 10 9.4 10H3.6C3.26863 10 3 9.73137 3 9.4Z",stroke:"currentColor"}))},SM=s.forwardRef(LM);var ji=SM,$M=Object.defineProperty,ob=Object.getOwnPropertySymbols,jM=Object.prototype.hasOwnProperty,OM=Object.prototype.propertyIsEnumerable,sb=(e,t,n)=>t in e?$M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tl=(e,t)=>{for(var n in t||(t={}))jM.call(t,n)&&sb(e,n,t[n]);if(ob)for(var n of ob(t))OM.call(t,n)&&sb(e,n,t[n]);return e};const RM=(e,t)=>{const n=s.useContext(F),r=Tl(Tl({},n),e);return s.createElement("svg",Tl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M12 7L12 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 17.01L12.01 16.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},MM=s.forwardRef(RM);var PM=MM,TM=Object.defineProperty,ib=Object.getOwnPropertySymbols,AM=Object.prototype.hasOwnProperty,IM=Object.prototype.propertyIsEnumerable,ab=(e,t,n)=>t in e?TM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Al=(e,t)=>{for(var n in t||(t={}))AM.call(t,n)&&ab(e,n,t[n]);if(ib)for(var n of ib(t))IM.call(t,n)&&ab(e,n,t[n]);return e};const NM=(e,t)=>{const n=s.useContext(F),r=Al(Al({},n),e);return s.createElement("svg",Al({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M20.0429 21H3.95705C2.41902 21 1.45658 19.3364 2.22324 18.0031L10.2662 4.01533C11.0352 2.67792 12.9648 2.67791 13.7338 4.01532L21.7768 18.0031C22.5434 19.3364 21.581 21 20.0429 21Z",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M12 9V13",stroke:"currentColor",strokeLinecap:"round"}),s.createElement("path",{d:"M12 17.01L12.01 16.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},DM=s.forwardRef(NM);var VM=DM,FM=Object.defineProperty,cb=Object.getOwnPropertySymbols,BM=Object.prototype.hasOwnProperty,HM=Object.prototype.propertyIsEnumerable,lb=(e,t,n)=>t in e?FM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Il=(e,t)=>{for(var n in t||(t={}))BM.call(t,n)&&lb(e,n,t[n]);if(cb)for(var n of cb(t))HM.call(t,n)&&lb(e,n,t[n]);return e};const WM=(e,t)=>{const n=s.useContext(F),r=Il(Il({},n),e);return s.createElement("svg",Il({width:"1.5em",height:"1.5em",viewBox:"0 0 24 24",strokeWidth:1.5,fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M10.0503 10.6066L2.97923 17.6777C2.19818 18.4587 2.19818 19.725 2.97923 20.5061V20.5061C3.76027 21.2871 5.0266 21.2871 5.80765 20.5061L12.8787 13.435",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M10.0502 10.6066C9.20638 8.45358 9.37134 5.6286 11.1109 3.88909C12.8504 2.14957 16.0606 1.76777 17.8284 2.82843L14.7877 5.8691L14.5051 8.98014L17.6161 8.69753L20.6568 5.65685C21.7175 7.42462 21.3357 10.6349 19.5961 12.3744C17.8566 14.1139 15.0316 14.2789 12.8786 13.435",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},zM=s.forwardRef(WM);var _M=zM,UM=Object.defineProperty,ub=Object.getOwnPropertySymbols,KM=Object.prototype.hasOwnProperty,GM=Object.prototype.propertyIsEnumerable,db=(e,t,n)=>t in e?UM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nl=(e,t)=>{for(var n in t||(t={}))KM.call(t,n)&&db(e,n,t[n]);if(ub)for(var n of ub(t))GM.call(t,n)&&db(e,n,t[n]);return e};const YM=(e,t)=>{const n=s.useContext(F),r=Nl(Nl({},n),e);return s.createElement("svg",Nl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M9.17218 14.8284L12.0006 12M14.829 9.17157L12.0006 12M12.0006 12L9.17218 9.17157M12.0006 12L14.829 14.8284",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),s.createElement("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},XM=s.forwardRef(YM);var qM=XM,ZM=Object.defineProperty,fb=Object.getOwnPropertySymbols,JM=Object.prototype.hasOwnProperty,QM=Object.prototype.propertyIsEnumerable,pb=(e,t,n)=>t in e?ZM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dl=(e,t)=>{for(var n in t||(t={}))JM.call(t,n)&&pb(e,n,t[n]);if(fb)for(var n of fb(t))QM.call(t,n)&&pb(e,n,t[n]);return e};const eP=(e,t)=>{const n=s.useContext(F),r=Dl(Dl({},n),e);return s.createElement("svg",Dl({width:"1.5em",height:"1.5em",strokeWidth:1.5,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",color:"currentColor",ref:t},r),s.createElement("path",{d:"M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},tP=s.forwardRef(eP);var nP=tP;function N(e,t,n={}){const r=s.forwardRef(function({size:i=24,width:a,height:c,strokeWidth:u=1.5,absoluteStrokeWidth:l=!1,style:d,...f},m){const h=l&&typeof i=="number"&&typeof u=="number"?u*24/i:u,g=n.mirror?{...d,transform:`scaleX(-1) ${d?.transform??""}`.trim()}:d;return p.jsx(e,{...f,ref:m,width:a??i,height:c??i,strokeWidth:h,style:g})});return r.displayName=t,r}N(Yk,"Activity");N(PM,"AlertCircle");N(VM,"AlertTriangle");N(iE,"AppWindow");const rP=N(fE,"ArrowDown");N(vE,"ArrowRight");const oP=N(NE,"ArrowUp"),sP=N(g3,"ArrowUpDown");N(Vy,"AudioLines");N(Ay,"BookOpen");N(Ay,"BookOpenText");N(i4,"Bot");N(e4,"Boxes");N(k6,"Braces");N($y,"Brackets");N(f4,"Brain");N(E4,"Camera");N(v4,"Cable");N(W4,"Check");N(N4,"CheckCircle2");N(I9,"ChevronDown");N(H9,"ChevronRight");N(RE,"ChevronsDownUp");N(EE,"ChevronsUpDown");N(G9,"ChevronUp");N(Y4,"Circle");N(o$,"CircleDot");N(_$,"Clipboard");const iP=N(i6,"Clock");N(f6,"Cloud");N(O6,"Code2");N(xM,"Columns2");N(US,"Command");N(I6,"Compass");N(J6,"Copy");N(v9,"CopyPlus");const aP=N(o3,"CornerDownLeft");N(_j,"Crosshair");N(C3,"Database");N(K3,"Download");N(h$,"ExternalLink");N($L,"Eye");N(xL,"EyeOff");N($y,"FileCode2");N(hS,"FileDiff");N(T$,"FileText");N(f9,"Film");N(ZL,"Focus");N(UL,"Folder");N(rS,"FrameIcon");N(lS,"GitBranchPlus");N(Ad,"GripVertical");N(Ad,"GripHorizontal");N(xS,"Globe");N(J3,"Hand");N($S,"Hash");N(e6,"History");N(TS,"Home");N(My,"ImageIcon");N(My,"Image");N(B3,"Inbox");N(FS,"Info");N(Fy,"Keyboard");N(Py,"Layers");N(Py,"Layers3");N(ji,"LayoutGrid");N(ji,"Grid3X3");N(Oy,"LayoutList");N(ji,"LayoutTemplate");N(YE,"Library");N(r7,"Link2");N(Oy,"List");N(Sj,"ListMusic");N(Ny,"Loader2");N(Ny,"LoaderCircle");N(Ry,"Lock");N(Ry,"LockKeyhole");const cP=N(L7,"Map");N(M7,"Maximize");const lP=N(hL,"Maximize2");N(R4,"MessageSquare");N(Y7,"Mic");const uP=N(qj,"Minimize2"),dP=N(e9,"Minus");N(u3,"MousePointer2");N(H6,"Monitor");N(i9,"MoreHorizontal");N(Ad,"Move");N(O9,"Music2");N(Ty,"Network");N(Id,"PanelLeft");const fP=N(Dy,"PanelLeftClose"),pP=N(Id,"PanelLeftOpen");N(x$,"PanelBottom");const mP=N(Dy,"PanelRightClose",{mirror:!0}),hP=N(Id,"PanelRightOpen",{mirror:!0});N($$,"PanelTop");N(ji,"PanelsTopLeft");N(j3,"Paintbrush");N(Iy,"Palette");N(WE,"Paperclip");N(nj,"Pause");N(lL,"Pencil");N(W7,"PictureInPicture2");N(mj,"Pin");N(cj,"PinOff");N(wj,"Play");const gP=N(Pj,"Plus");N(CR,"Power");N(eE,"Radar");N(Vj,"Radio");N(p8,"Repeat");N(a8,"Repeat1");N(lM,"RotateCcw");N(jR,"Rows3");N(FL,"Save");N(A3,"ScanSearch");const By=N(y8,"Search");N(L8,"Send");N(M8,"Server");N(z8,"Settings");N(D8,"Settings2");N(X8,"Share2");N(tO,"ShieldCheck");N(aO,"Shuffle");N(OO,"SkipBack");N(kO,"SkipForward");N(jy,"Sliders");N(jy,"SlidersHorizontal");N(JO,"Sparkles");N(oR,"Square");const bP=N(BR,"Terminal");N(AR,"TerminalSquare");N(KR,"Text");N(uR,"ToggleLeft");N(gR,"ToggleRight");N(JR,"Trash2");N(Fy,"Type");N(ZS,"Unlink");N(hM,"Upload");N(BO,"Volume1");N(Vy,"Volume2");N(KO,"VolumeX");N(_M,"Wrench");N(Iy,"SwatchBook");N(y7,"Wand2");N(q$,"Waypoints");N(Ty,"Workflow");const vP=N(nP,"X");N(qM,"XCircle");N(TL,"Zap");const Hy="hudsonTrace",yP=new Set(["cat","find","fd","grep","head","ls","pwd","rg","sed","tail","wc","which"]),wP=new Set(["branch","diff","ls-files","log","rev-parse","show","status"]),Wy=new Set(["","agent.task"]);function xP(e,t){const n=e.filter(Ar),r=EP(n);if(t==="raw")return{events:n,hiddenDetailEvents:0,collapsedEvents:0,relatedEventsByTrace:r};const o=kP(n),i=[];let a=0;for(const c of o.values())(t==="details"||SP(c))&&(a+=c.length,i.push(LP(c)));return{events:i,hiddenDetailEvents:Math.max(0,n.length-a),collapsedEvents:Math.max(0,a-i.length),relatedEventsByTrace:r}}function Ar(e){const t=vt(e);return e.category==="agent-action"||t.triggeredBy==="agent"||t.source==="workspace-ai"}function vt(e){return e.data&&typeof e.data=="object"&&!Array.isArray(e.data)?e.data:{}}function Pe(e,t){const n=e[t];return typeof n=="string"&&n.trim()?n:null}function Ir(e){return e.kind==="span"?e.traceId:Pe(vt(e),"traceId")}function Nd(e){return Pe(vt(e),"parentTraceId")}function Oi(e){const t=vt(e).metadata;if(!Vd(t))return null;const n=t.command;return Array.isArray(n)&&n.every(r=>typeof r=="string")?n:typeof n=="string"&&n.trim()?n.trim().split(/\s+/):null}function Tu(e){if(!e||e.length===0)return!1;const t=Uy(e[0]);if(yP.has(t))return!0;if(t==="git"){const n=e.find((r,o)=>o>0&&!r.startsWith("-"));return n?wP.has(n):!1}return!1}function Dd(e){const t=vt(e),n=Pe(t,"appId")??Pe(t,"targetAppId");if(n)return n;const r=Pe(t,"action")??Pe(t,"playbook")??Pe(t,"commandId"),o=r&&!Wy.has(r)?jP(r):null;if(o)return o;const i=Oi(e);for(const a of i??[]){const c=_y(a);if(c)return c}return null}function CP(e){const t=vt(e)[Hy];if(!Vd(t))return null;const n=Pe(t,"traceId"),r=co(t,"eventCount"),o=co(t,"startedAt"),i=co(t,"endedAt"),a=co(t,"durationMs"),c=co(t,"hiddenDetailEvents")??0;return!n||r===void 0||o===void 0||i===void 0||a===void 0?null:{traceId:n,eventCount:r,startedAt:o,endedAt:i,durationMs:a,hiddenDetailEvents:c}}function zy(e){if(!e||e.length===0)return null;const t=Uy(e[0]),n=e.map(OP).find(Boolean);return Tu(e)?n?`Read ${n} with ${t}`:`Read with ${t}`:t==="bun"&&e[1]==="run"&&e[2]?`Run bun ${e[2]}`:e.slice(0,4).join(" ")}function mb(e){return!e||e==="agent.task"?"Agent task":e.replace(/^hudson\./,"").replace(/[._:-]+/g," ").replace(/\s+/g," ").trim().split(" ").map((n,r)=>r===0?RP(n):n).join(" ")}function kP(e){const t=new Map;for(const n of e){const r=Ir(n)??n.id,o=t.get(r);o?o.push(n):t.set(r,[n])}return t}function EP(e){const t=new Map,n=(r,o)=>{if(!r)return;const i=t.get(r);i?i.some(a=>a.id===o.id)||i.push(o):t.set(r,[o])};for(const r of e)n(Ir(r)??r.id,r),n(Nd(r),r),n(r.kind==="span"?r.parentId??null:null,r);for(const r of t.values())r.sort((o,i)=>o.timestamp-i.timestamp);return t}function LP(e){const t=[...e].sort((a,c)=>a.timestamp-c.timestamp),n=Fl(t,a=>Vl(a)===3)??Fl(t,a=>Vl(a)===2)??Fl(t,a=>Vl(a)===1)??t[t.length-1],r=Ir(n)??n.id,o=t[0]?.timestamp??n.timestamp,i=t[t.length-1]?.timestamp??n.timestamp;return{...n,data:{...vt(n),[Hy]:{traceId:r,eventCount:t.length,startedAt:o,endedAt:i,durationMs:Math.max(0,i-o),hiddenDetailEvents:Math.max(0,t.length-1)}}}}function SP(e){return e.every(t=>Nd(t))?!1:e.some(t=>{if(t.kind==="span")return!0;const n=vt(t),r=Pe(n,"action")??Pe(n,"playbook")??"",o=!Wy.has(r),i=Oi(t);return o||Pe(n,"commandId")||Dd(t)&&!i||$P(n)&&!Tu(i)?!0:!!(i&&!Tu(i))})}function $P(e){const t=e.args;return Vd(t)&&typeof t.prompt=="string"&&t.prompt.trim().length>0}function Vl(e){if(e.kind==="span")return e.status==="error"?3:e.status==="ok"?2:e.status==="active"?1:0;const t=Pe(vt(e),"status")??(e.kind==="log"?e.level:void 0);return t==="failed"||t==="error"?3:t==="completed"||t==="ok"?2:t==="started"||t==="active"?1:0}function Fl(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return e[n]}function jP(e){if(!e)return null;const[t]=e.split(/[.:_-]/);return t||null}function _y(e){const t=e.match(/(?:^|\/)app\/apps\/([^/\s]+)/);return t?t[1]:null}function OP(e){const t=_y(e);return t||null}function Uy(e){return e.split("/").pop()??e}function Vd(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function co(e,t){const n=e[t];return typeof n=="number"&&Number.isFinite(n)?n:void 0}function RP(e){return e&&`${e[0].toUpperCase()}${e.slice(1)}`}const MP=["debug","info","warn","error"],PP=["log","metric","span"],TP="hudson:open-app",Bl=340,Ys=440,hb=900,AP=420,IP="hudson.hud-logger.inspector-width",NP=1,gb={key:"time",direction:"desc"},bb="grid-cols-[62px_64px_76px_58px_72px_112px_128px_minmax(260px,1fr)_92px]";function DP(e){return typeof e!="number"||e===380?Ys:e}function Ky(e=Nt,t={}){const n=t.maxEvents??200,[r,o]=s.useState(()=>e.snapshot().slice(-n).reverse());return s.useEffect(()=>{const i=()=>{o(e.snapshot().slice(-n).reverse())},a=e.subscribe(i);return i(),a},[n,e]),r}function Gy(e){const t=new Map;for(const n of e){if(n.kind!=="span")continue;(!t.get(n.id)||n.status!=="active")&&t.set(n.id,n.status)}return{total:e.length,errors:e.filter(n=>n.kind==="log"&&n.level==="error").length,warnings:e.filter(n=>n.kind==="log"&&n.level==="warn").length,agentActions:e.filter(Ar).length,activeSpans:Array.from(t.values()).filter(n=>n==="active").length,lastEvent:e[0]??null}}function VP(e=Nt,t={}){const n=Ky(e,t);return s.useMemo(()=>Gy(n),[n])}function FP({observability:e=Nt,maxEvents:t=200,label:n="Logs",className:r="",showCounts:o=!1}){const i=VP(e,{maxEvents:t}),a=i.errors>0?"red":i.warnings>0||i.activeSpans>0?"amber":"emerald";return p.jsxs("span",{className:`inline-flex min-w-0 items-center gap-2 font-mono text-[9px] font-light uppercase tracking-[0.18em] ${aT(a)} ${r}`,title:`${i.total} events, ${i.errors} errors, ${i.activeSpans} active spans`,children:[p.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${cT(a)}`}),p.jsx("span",{children:n}),o&&i.errors>0?p.jsxs("span",{className:"tabular-nums font-semibold",children:[i.errors," err"]}):o&&i.warnings>0?p.jsxs("span",{className:"tabular-nums",children:[i.warnings," warn"]}):null]})}function BP({observability:e=Nt,events:t,replayEvents:n,maxEvents:r=200,title:o="HudLogger",className:i="",emptyMessage:a="No events match the current filters.",showHeader:c=!0,showInspector:u=!0,initialTail:l=!0,initialScope:d="all"}){const f=Ky(e,{maxEvents:r}),m=s.useMemo(()=>t?t.slice(0,r):!n||n.length===0?f:iT(n,f,r),[t,n,f,r]),[h,g]=s.useState(null),[v,w]=s.useState("all"),[b,y]=s.useState("all"),[k,C]=s.useState(d),[x,L]=s.useState(d==="agent-actions"?"actions":"raw"),[S,E]=s.useState(""),[M,P]=s.useState(l),[D,T]=s.useState(gb),[j,H]=s.useState(null),[A,I]=gn(IP,Ys,{version:NP,migrate:DP}),B=s.useRef(null),$=s.useRef(null),[z,R]=s.useState(!1),q=s.useMemo(()=>xP(m,k==="agent-actions"?x:"raw"),[x,m,k]),ee=k==="agent-actions"?q.events:m,te=s.useMemo(()=>ee.filter(W=>{if(b!=="all"&&W.kind!==b||v!=="all"&&(W.kind!=="log"||W.level!==v))return!1;if(!S.trim())return!0;const _=Ir(W)??W.id,ce=q.relatedEventsByTrace.get(_)??[];return JP(W,ce).includes(S.trim().toLowerCase())}),[q.relatedEventsByTrace,b,v,S,ee]),ae=s.useMemo(()=>rT(te,D),[te,D]),ne=M&&D.key==="time"&&D.direction==="desc"?ae[0]?On(ae[0]):null:h,re=ae.find(W=>On(W)===ne)??ae[0]??null,se=re?Ir(re)??re.id:null,ie=se?q.relatedEventsByTrace.get(se)??[]:[],ue=s.useMemo(()=>Gy(m),[m]),O=s.useCallback(async(W,_)=>{await sT(W)&&(H(_),window.setTimeout(()=>{H(Y=>Y===_?null:Y)},1200))},[]),X=s.useCallback(W=>{P(!1),g(On(W))},[]),V=s.useCallback(W=>{P(!1),T(_=>_.key!==W?{key:W,direction:nT(W)}:{key:W,direction:_.direction==="asc"?"desc":"asc"})},[]),ge=s.useCallback(()=>{M||T(gb),P(W=>!W)},[M]),J=s.useCallback(W=>{const _=Au(W);!_||typeof window>"u"||window.dispatchEvent(new CustomEvent(TP,{detail:{appId:_,workspaceId:GP(W),source:"hud-logger"}}))},[]),G=s.useCallback((W,_)=>{const ce=Math.min(hb,Math.max(Bl,_-AP));return Math.max(Bl,Math.min(ce,W))},[]),Z=s.useCallback(W=>{if(W.button!==0)return;const _=B.current,ce=$.current;if(!_||!ce)return;W.preventDefault();const Y=W.clientX,K=ce.getBoundingClientRect().width;R(!0),document.body.style.cursor="col-resize",document.body.style.userSelect="none";const oe=Ee=>{const xe=_.getBoundingClientRect().width,Ae=G(K+(Y-Ee.clientX),xe);ce.style.setProperty("--inspector-width",`${Ae}px`)},ye=Ee=>{const xe=_.getBoundingClientRect().width,Ae=G(K+(Y-Ee.clientX),xe);I(Ae),R(!1),document.body.style.cursor="",document.body.style.userSelect="",window.removeEventListener("pointermove",oe),window.removeEventListener("pointerup",ye),window.removeEventListener("pointercancel",ye)};window.addEventListener("pointermove",oe),window.addEventListener("pointerup",ye),window.addEventListener("pointercancel",ye)},[G,I]),be=s.useCallback(()=>{I(Ys)},[I]);s.useEffect(()=>{if(typeof window>"u")return;const W=B.current;if(!W)return;const _=new ResizeObserver(()=>{const ce=W.getBoundingClientRect().width;I(Y=>{const K=G(Y,ce);return K===Y?Y:K})});return _.observe(W),()=>_.disconnect()},[G,I]);const ve=s.useMemo(()=>({"--inspector-width":`${A}px`}),[A]);return p.jsxs("section",{ref:B,className:`flex min-h-[520px] flex-col overflow-hidden rounded-md border border-border bg-background text-foreground lg:flex-row ${i}`,children:[p.jsxs("main",{className:"flex min-h-0 min-w-0 flex-col border-b border-border/70 lg:flex-1 lg:border-b-0",children:[c&&p.jsxs("div",{className:"shrink-0 border-b border-border/70 bg-card/80 px-3 py-2.5",children:[p.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[p.jsx(WP,{ariaLabel:"copy filtered table",copied:j==="table",disabled:ae.length===0,label:"copy all",onClick:()=>{O(eT(ae),"table")}}),p.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 font-mono text-[11px] font-normal uppercase tracking-[0.14em] text-muted-foreground",children:[p.jsx("span",{children:o}),p.jsxs("span",{className:"text-accent",children:[ae.length," shown"]}),p.jsxs("span",{children:[ue.total," buffered"]}),p.jsxs("span",{children:[ue.agentActions," agent"]}),p.jsxs("span",{children:[ue.errors," errors"]}),ue.activeSpans>0&&p.jsxs("span",{className:"text-warning",children:[ue.activeSpans," active"]}),k==="agent-actions"&&x!=="raw"&&q.hiddenDetailEvents>0&&p.jsxs("span",{children:[q.hiddenDetailEvents," detail hidden"]}),k==="agent-actions"&&q.collapsedEvents>0&&p.jsxs("span",{children:[q.collapsedEvents," collapsed"]})]})]}),p.jsxs("label",{className:"mt-2 flex min-w-0 items-center gap-2 rounded-md border border-border/70 bg-muted/20 px-2.5 py-2 font-mono text-[13px] font-normal text-accent transition-colors focus-within:border-accent/40 focus-within:bg-muted/30",children:[p.jsx("span",{className:"shrink-0 text-success",children:"$"}),p.jsx("input",{value:S,onChange:W=>E(W.target.value),placeholder:"grep message, category, payload",className:"min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted-foreground"})]}),p.jsxs("details",{className:"mt-2 text-left",children:[p.jsx("summary",{className:"cursor-pointer font-mono text-[11px] font-normal uppercase tracking-[0.14em] text-muted-foreground hover:text-foreground",children:"filters / controls"}),p.jsxs("div",{className:"mt-3 grid gap-3 border-t border-border/60 pt-3 md:grid-cols-[1fr_1fr_1fr_1fr_auto]",children:[p.jsxs(ss,{label:"Scope",children:[p.jsx(mn,{active:k==="all",onClick:()=>C("all"),children:"all"}),p.jsx(mn,{active:k==="agent-actions",onClick:()=>C("agent-actions"),children:"agent actions"})]}),k==="agent-actions"?p.jsxs(ss,{label:"Rows",children:[p.jsx(mn,{active:x==="actions",onClick:()=>L("actions"),children:"actions"}),p.jsx(mn,{active:x==="details",onClick:()=>L("details"),children:"details"}),p.jsx(mn,{active:x==="raw",onClick:()=>L("raw"),children:"raw"})]}):p.jsx("div",{}),p.jsxs(ss,{label:"Kind",children:[p.jsx(mn,{active:b==="all",onClick:()=>y("all"),children:"all"}),PP.map(W=>p.jsx(mn,{active:b===W,onClick:()=>y(W),children:W},W))]}),p.jsxs(ss,{label:"Level",children:[p.jsx(mn,{active:v==="all",onClick:()=>w("all"),children:"all"}),MP.map(W=>p.jsx(mn,{active:v===W,onClick:()=>w(W),children:W},W))]}),p.jsx("div",{className:"flex flex-wrap items-end gap-2",children:p.jsxs("button",{type:"button",onClick:ge,className:`rounded-md border px-2.5 py-1.5 font-mono text-[11px] font-normal uppercase tracking-[0.12em] transition-colors ${M?"border-accent/30 bg-accent/10 text-accent":"border-border/70 bg-muted/20 text-muted-foreground hover:border-border hover:text-foreground"}`,children:["tail ",M?"on":"off"]})})]})]})]}),p.jsx("div",{className:"max-h-[650px] overflow-auto lg:max-h-none lg:flex-1 lg:min-h-0",children:p.jsxs("div",{className:"min-w-[980px] font-mono text-[11px] font-normal",children:[p.jsxs("div",{className:`sticky top-0 z-10 grid min-h-8 ${bb} items-center border-b border-border/70 bg-card px-3 py-1.5 font-medium uppercase tracking-[0.12em] text-muted-foreground`,children:[p.jsx("span",{className:"sticky left-0 bg-card pr-2",children:"Copy"}),p.jsx("span",{children:"Open"}),p.jsx(er,{column:"time",label:"Time",sort:D,onSort:V}),p.jsx(er,{column:"kind",label:"Kind",sort:D,onSort:V}),p.jsx(er,{column:"level",label:"Level",sort:D,onSort:V}),p.jsx(er,{column:"category",label:"Category",sort:D,onSort:V}),p.jsx(er,{column:"target",label:"Target",sort:D,onSort:V}),p.jsx(er,{column:"message",label:"Message",sort:D,onSort:V}),p.jsx(er,{column:"id",label:"Id",sort:D,onSort:V})]}),ae.map(W=>{const _=Au(W),ce=On(W);return p.jsxs("div",{role:"button",tabIndex:0,onClick:()=>X(W),onKeyDown:Y=>{(Y.key==="Enter"||Y.key===" ")&&(Y.preventDefault(),X(W))},className:`grid min-h-[34px] w-full ${bb} items-center border-b border-l-2 px-3 py-2 text-left transition-colors ${re&&On(re)===ce?"border-b-border/40 border-l-accent bg-accent/[0.08]":"border-b-border/40 border-l-transparent hover:bg-muted/30"}`,children:[p.jsx("button",{type:"button","aria-label":`copy row ${Iu(W.id)}`,onClick:Y=>{Y.stopPropagation(),O(Nu(W).join(" "),`row:${ce}`)},className:`sticky left-0 z-[1] justify-self-start rounded border border-border/70 px-1.5 py-0.5 font-mono text-[10px] font-normal uppercase tracking-[0.1em] text-muted-foreground transition-colors hover:border-accent/30 hover:text-accent ${re&&On(re)===ce?"bg-accent/[0.08]":"bg-background"}`,children:j===`row:${ce}`?"copied":"copy"}),_?p.jsx("button",{type:"button","aria-label":`open ${To(W)}`,onClick:Y=>{Y.stopPropagation(),J(W)},className:"justify-self-start rounded border border-border/70 bg-muted/20 px-1.5 py-0.5 font-mono text-[10px] font-normal uppercase tracking-[0.1em] text-muted-foreground transition-colors hover:border-accent/30 hover:text-accent",children:"open"}):p.jsx("span",{className:"text-muted-foreground/45",children:"-"}),p.jsx("span",{className:"tabular-nums text-muted-foreground",children:Bd(W)}),p.jsx("span",{className:"uppercase tracking-[0.13em] text-muted-foreground",children:W.kind}),p.jsx("span",{className:`uppercase tracking-[0.13em] ${Fd(W)}`,children:an(W)}),p.jsx("span",{className:"truncate uppercase tracking-[0.13em] text-muted-foreground",children:W.category??"-"}),p.jsx("span",{className:"truncate font-sans text-[12px] font-normal normal-case tracking-normal text-muted-foreground",children:To(W)}),p.jsx("span",{className:"truncate font-sans text-[13px] font-normal normal-case tracking-normal text-foreground",children:Wn(W)}),p.jsx("span",{className:"truncate text-muted-foreground",children:Iu(W.id)})]},ce)}),ae.length===0&&p.jsx("div",{className:"border-b border-border/40 px-3 py-5 font-sans text-[13px] text-muted-foreground",children:a})]})})]}),u&&p.jsxs(p.Fragment,{children:[p.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize payload inspector","aria-valuenow":A,"aria-valuemin":Bl,"aria-valuemax":hb,title:"Drag to resize · Double-click to reset",onPointerDown:Z,onDoubleClick:be,className:`group hidden shrink-0 cursor-col-resize items-stretch justify-center transition-colors lg:flex lg:w-[5px] ${z?"bg-accent/15":"hover:bg-accent/10"}`,children:p.jsx("div",{className:`w-px transition-colors ${z?"bg-accent/80":"bg-border group-hover:bg-accent/60"}`})}),p.jsx("aside",{ref:$,style:ve,className:"flex w-full shrink-0 flex-col bg-background lg:w-[var(--inspector-width)]",children:p.jsx(HP,{copied:re?j===`inspector:${On(re)}`:!1,event:re,relatedEvents:ie,onCopyRow:W=>{O(Nu(W).join(" "),`inspector:${On(W)}`)},onOpenTarget:J})})]})]})}function HP({copied:e,event:t,relatedEvents:n,onCopyRow:r,onOpenTarget:o}){const i=t?Au(t):null;return p.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[p.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-2 border-b border-border/70 bg-card/40 px-3 py-2.5 lg:px-4",children:[p.jsx("div",{className:"font-mono text-[11px] font-medium uppercase tracking-[0.15em] text-foreground/80",children:"Payload inspector"}),t?p.jsxs("div",{className:"flex items-center gap-2",children:[i?p.jsx("button",{type:"button",onClick:()=>o(t),className:"rounded-md border border-border/70 bg-muted/20 px-2 py-1 font-mono text-[11px] font-normal uppercase tracking-[0.11em] text-muted-foreground transition hover:border-accent/30 hover:text-accent",children:"open app"}):null,p.jsx("button",{type:"button",onClick:()=>r(t),className:"rounded-md border border-border/70 bg-muted/20 px-2 py-1 font-mono text-[11px] font-normal uppercase tracking-[0.11em] text-muted-foreground transition hover:border-accent/30 hover:text-accent",children:e?"copied":"copy row"}),p.jsx("div",{className:`font-mono text-[11px] uppercase tracking-[0.12em] ${Fd(t)}`,children:an(t)})]}):null]}),p.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-3 py-3 lg:px-4 lg:py-4",children:t?p.jsxs("div",{className:"grid gap-3",children:[p.jsxs("div",{className:"overflow-hidden rounded-md border border-accent/25 bg-accent/[0.07]",children:[p.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-accent/15 px-3 py-2",children:[p.jsx(zP,{event:t}),p.jsx("span",{className:"font-mono text-[11px] uppercase tracking-[0.12em] text-muted-foreground",children:t.kind})]}),p.jsxs("div",{className:"px-3 py-2",children:[p.jsx("div",{className:"font-mono text-[11px] font-medium uppercase tracking-[0.13em] text-accent",children:"selected event"}),p.jsx("div",{className:"mt-1 break-words text-[14px] font-normal leading-5 text-foreground",children:Wn(t)})]})]}),YP(t).map(a=>p.jsx(_P,{section:a},a.title)),p.jsx(UP,{events:n,selectedId:t.id}),p.jsx(Hl,{label:"payload.data",value:t.data??{}}),t.kind==="metric"&&t.tags?p.jsx(Hl,{label:"metric.tags",value:t.tags}):null,t.kind==="span"&&t.error?p.jsx(Hl,{label:"span.error",value:t.error}):null]}):p.jsx("div",{className:"rounded-md border border-border/60 bg-muted/20 p-4 text-[13px] leading-6 text-muted-foreground",children:"No event selected."})})]})}function ss({label:e,children:t}){return p.jsxs("div",{children:[p.jsx("div",{className:"font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground",children:e}),p.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:t})]})}function mn({active:e,onClick:t,children:n}){return p.jsx("button",{type:"button",onClick:t,className:`rounded-md border px-2 py-1 font-mono text-[11px] uppercase tracking-[0.1em] transition-colors ${e?"border-accent/30 bg-accent/10 text-accent":"border-border/70 bg-muted/20 text-muted-foreground hover:border-border hover:text-foreground"}`,children:n})}function er({column:e,label:t,sort:n,onSort:r}){const o=n.key===e,i=o?n.direction==="asc"?oP:rP:sP,a=n.direction==="asc"?"ascending":"descending";return p.jsxs("button",{type:"button","aria-label":`Sort by ${t}${o?`, currently ${a}`:""}`,"aria-pressed":o,onClick:()=>r(e),className:`flex min-w-0 items-center gap-1.5 text-left uppercase tracking-[0.14em] transition ${o?"text-accent":"text-muted-foreground hover:text-foreground"}`,children:[p.jsx("span",{className:"min-w-0 truncate",children:t}),p.jsx(i,{size:10,strokeWidth:1.75,"aria-hidden":"true",className:"shrink-0"})]})}function WP({ariaLabel:e,copied:t,disabled:n=!1,label:r,onClick:o}){return p.jsx("button",{type:"button","aria-label":e,disabled:n,onClick:o,className:"rounded-md border border-border/70 bg-muted/20 px-2 py-1 font-mono text-[11px] font-normal uppercase tracking-[0.11em] text-muted-foreground transition hover:border-accent/30 hover:text-accent disabled:cursor-not-allowed disabled:opacity-40",children:t?"copied":r})}function zP({event:e}){const t=an(e),n=go(e),r=n==="red"?"border-destructive/30 bg-destructive/10 text-destructive":n==="amber"?"border-warning/30 bg-warning/10 text-warning":n==="emerald"?"border-success/30 bg-success/10 text-success":"border-accent/30 bg-accent/10 text-accent";return p.jsx("span",{className:`rounded-full border px-2 py-0.5 font-mono text-[10px] uppercase tracking-[0.11em] ${r}`,children:t})}function _P({section:e}){return p.jsxs("section",{className:"overflow-hidden rounded-md border border-border/60 bg-muted/15",children:[p.jsx("div",{className:"border-b border-border/50 bg-muted/30 px-3 py-2 font-mono text-[10px] font-medium uppercase tracking-[0.14em] text-foreground/70",children:e.title}),p.jsx("div",{className:"divide-y divide-border/40",children:e.rows.map(t=>p.jsx(KP,{row:t},`${e.title}-${t.label}`))})]})}function UP({events:e,selectedId:t}){return e.length<=1?null:p.jsxs("section",{className:"overflow-hidden rounded-md border border-border/60 bg-muted/15",children:[p.jsxs("div",{className:"flex items-center justify-between border-b border-border/50 bg-muted/30 px-3 py-2",children:[p.jsx("div",{className:"font-mono text-[10px] font-medium uppercase tracking-[0.14em] text-foreground/70",children:"Trace lines"}),p.jsx("div",{className:"font-mono text-[10px] font-light uppercase tracking-[0.12em] text-muted-foreground",children:e.length})]}),p.jsx("div",{className:"divide-y divide-border/40",children:e.map(n=>{const r=zy(Oi(n));return p.jsxs("div",{className:`grid grid-cols-[74px_82px_minmax(0,1fr)] gap-2 px-3 py-1.5 ${n.id===t?"bg-accent/10":""}`,children:[p.jsx("span",{className:"font-mono text-[10px] tabular-nums text-muted-foreground",children:Bd(n)}),p.jsx("span",{className:`font-mono text-[10px] uppercase tracking-[0.11em] ${Fd(n)}`,children:an(n)}),p.jsx("span",{className:"min-w-0 truncate text-[12px] text-foreground/80",children:r??Wn(n)})]},`${n.id}-${n.timestamp}`)})})]})}function KP({row:e}){return p.jsxs("div",{className:"grid grid-cols-[96px_minmax(0,1fr)] items-start gap-3 px-3 py-2",children:[p.jsx("div",{className:"font-mono text-[10px] font-light uppercase tracking-[0.12em] text-muted-foreground",children:e.label}),p.jsx("div",{className:`min-w-0 break-words text-[12px] leading-5 ${e.mono?"font-mono tabular-nums":"font-sans"} ${XP(e.tone)}`,children:e.value})]})}function Hl({label:e,value:t}){return p.jsxs("div",{className:"overflow-hidden rounded-md border border-border/60 bg-muted/15",children:[p.jsx("div",{className:"border-b border-border/50 bg-muted/30 px-3 py-2 font-mono text-[10px] font-medium uppercase tracking-[0.14em] text-foreground/70",children:e}),p.jsx("pre",{className:"max-h-[360px] overflow-auto whitespace-pre-wrap break-words p-3 font-mono text-[12px] font-light leading-5 text-foreground/80 lg:max-h-none lg:overflow-x-auto",children:JSON.stringify(t,null,2)})]})}function Au(e){return Dd(e)}function GP(e){const t=vt(e);return Pe(t,"workspaceId")??Pe(t,"targetWorkspaceId")}function To(e){const t=vt(e),n=Dd(e);return Pe(t,"appName")??Pe(t,"appId")??n??Pe(t,"workspaceName")??Pe(t,"workspaceId")??Pe(t,"serviceId")??Pe(t,"target")??"-"}function YP(e){const t=[{title:"Identity",rows:[{label:"id",value:e.id,mono:!0},{label:"kind",value:e.kind,tone:"cyan",mono:!0},{label:"category",value:e.category??"none",mono:!0}]},{title:"Signal",rows:[{label:qP(e),value:an(e),tone:go(e),mono:!0},{label:"timestamp",value:Wl(e.timestamp),mono:!0}]}];if(Ar(e)){const n=vt(e),r=Ir(e),o=Nd(e);t.push({title:"Agent Action",rows:[{label:"source",value:Pe(n,"source")??"agent",mono:!0},{label:"status",value:Pe(n,"status")??an(e),tone:go(e),mono:!0},{label:"action",value:Pe(n,"action")??Wn(e),mono:!0},{label:"target",value:To(e),mono:!0},{label:"workspace",value:Pe(n,"workspaceName")??Pe(n,"workspaceId")??"unknown",mono:!0},...r?[{label:"trace",value:r,mono:!0}]:[],...o?[{label:"parent",value:o,mono:!0}]:[]]});const i=QP(e),a=CP(e);(i||a)&&t.push({title:"Request",rows:[...i?[{label:"prompt",value:i}]:[],...a?[{label:"lines",value:String(a.eventCount),mono:!0},{label:"duration",value:`${a.durationMs}ms`,mono:!0}]:[]]})}return e.kind==="log"&&t.push({title:"Log",rows:[{label:"message",value:e.message},{label:"level",value:e.level,tone:go(e),mono:!0}]}),e.kind==="metric"&&t.push({title:"Metric",rows:[{label:"name",value:e.name},{label:"type",value:e.metricType,tone:"emerald",mono:!0},{label:"value",value:ZP(e),tone:"emerald",mono:!0},{label:"unit",value:e.unit??"none",mono:!0}]}),e.kind==="span"&&t.push({title:"Trace",rows:[{label:"name",value:e.name},{label:"trace id",value:e.traceId,mono:!0},{label:"parent id",value:e.parentId??"none",mono:!0},{label:"status",value:e.status,tone:go(e),mono:!0},{label:"duration",value:e.durationMs===void 0?"active":`${e.durationMs}ms`,mono:!0},{label:"started",value:Wl(e.startTime),mono:!0},{label:"ended",value:e.endTime===void 0?"pending":Wl(e.endTime),mono:!0}]}),t}function Wn(e){if(e.kind==="log"){if(Ar(e)){const t=vt(e),n=zy(Oi(e));if(n){const a=Pe(t,"status");return a?`${n} ${a}`:n}const r=Pe(t,"action")??Pe(t,"commandId")??e.message,o=Pe(t,"status"),i=mb(r);return o?`${i} ${o}`:i}return e.message}return Ar(e)?mb(e.name):e.name}function an(e){return e.kind==="log"?Ar(e)?Pe(vt(e),"status")??e.level:e.level:e.kind==="metric"?e.metricType:e.status}function Fd(e){const t=an(e);return t==="error"||t==="failed"?"text-destructive":t==="warn"||t==="active"||t==="started"?"text-warning":e.kind==="metric"||t==="ok"||t==="completed"?"text-success":"text-accent"}function go(e){const t=an(e);return t==="error"||t==="failed"?"red":t==="warn"||t==="active"||t==="started"?"amber":e.kind==="metric"||t==="ok"||t==="completed"?"emerald":"cyan"}function XP(e="neutral"){return e==="red"?"text-destructive":e==="amber"?"text-warning":e==="emerald"?"text-success":e==="cyan"?"text-accent":"text-foreground"}function qP(e){return e.kind==="log"?"level":e.kind==="metric"?"type":"status"}function ZP(e){return`${e.value}${e.unit?` ${e.unit}`:""}`}function Wl(e){const t=new Date(e);return`${t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}.${String(t.getMilliseconds()).padStart(3,"0")}`}function Iu(e){return e.length>10?e.slice(-10):e}function On(e){return e.kind==="span"?`${e.kind}:${e.id}:${e.status}:${e.endTime??"active"}`:`${e.kind}:${e.id}:${e.timestamp}`}function Bd(e){return new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function Nu(e){return[Bd(e),e.kind,an(e),e.category??"",To(e),Wn(e),e.id,JSON.stringify(e.data??{})].map(tT)}function JP(e,t){return[Wn(e),e.category??"",JSON.stringify(e.data??{}),...t.map(r=>`${Wn(r)} ${JSON.stringify(r.data??{})}`)].join(" ").toLowerCase()}function QP(e){const n=vt(e).args,r=n&&typeof n=="object"&&!Array.isArray(n)?n.prompt:void 0;return typeof r!="string"||!r.trim()?null:r.replace(/\s+/g," ").trim().slice(0,360)}function eT(e){return[["time","kind","signal","category","target","message","id","payload"].join(" "),...e.map(t=>Nu(t).join(" "))].join(`
2
+ `)}function tT(e){return e.replace(/\s+/g," ").trim()}function nT(e){return e==="time"?"desc":"asc"}function rT(e,t){const n=t.direction==="asc"?1:-1;return e.map((r,o)=>({event:r,index:o})).sort((r,o)=>{const i=oT(vb(r.event,t.key),vb(o.event,t.key));return i===0?r.index-o.index:i*n}).map(({event:r})=>r)}function vb(e,t){switch(t){case"time":return e.timestamp;case"kind":return e.kind;case"level":return an(e);case"category":return e.category??"";case"target":return To(e);case"message":return Wn(e);case"id":return Iu(e.id)}}function oT(e,t){return typeof e=="number"&&typeof t=="number"?e-t:String(e).localeCompare(String(t),void 0,{numeric:!0,sensitivity:"base"})}async function sT(e){if(navigator.clipboard?.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly","true"),t.style.position="fixed",t.style.left="-9999px",t.style.top="0",document.body.appendChild(t),t.focus(),t.select();try{return document.execCommand("copy")}finally{document.body.removeChild(t)}}function iT(e,t,n){const r=new Set,o=[];for(const i of t)r.has(i.id)||(r.add(i.id),o.push(i));for(let i=e.length-1;i>=0;i--){const a=e[i];r.has(a.id)||(r.add(a.id),o.push(a))}return o.sort((i,a)=>a.timestamp-i.timestamp),o.slice(0,n)}function aT(e){return e==="red"?"text-destructive":e==="amber"?"text-warning":"text-success"}function cT(e){return e==="red"?"bg-destructive":e==="amber"?"bg-warning":"bg-success"}function Hd(){const{titleBarInset:e}=Si();return s.useMemo(()=>{const t=Tr.layout.navHeight+e;return{navTotalHeight:t,panelTopOffset:t}},[e])}const yb={borderColor:"var(--hud-chrome-border, oklch(var(--border)))"},lT=({scale:e,onZoom:t,min:n=.2,max:r=3,step:o=.1})=>{const[i,a]=s.useState(!1),[c,u]=s.useState(""),l=s.useRef(null),d=s.useCallback(w=>Math.min(r,Math.max(n,w)),[n,r]),f=s.useCallback(()=>{t(d(e+o))},[e,o,t,d]),m=s.useCallback(()=>{t(d(e-o))},[e,o,t,d]),h=s.useCallback(()=>{u(Math.round(e*100).toString()),a(!0)},[e]),g=s.useCallback(()=>{a(!1);const w=parseInt(c,10);!isNaN(w)&&w>0&&t(d(w/100))},[c,t,d]),v=s.useCallback(w=>{w.key==="Enter"?g():w.key==="Escape"&&a(!1)},[g]);return s.useEffect(()=>{i&&l.current&&(l.current.focus(),l.current.select())},[i]),p.jsxs("div",{className:"pointer-events-auto flex flex-col items-center bg-card/95 border rounded-none shadow-[var(--hud-shadow-panel)] overflow-hidden",style:yb,children:[p.jsx("button",{onClick:f,className:"w-9 h-8 flex items-center justify-center hover:bg-accent/10 text-muted-foreground hover:text-foreground transition-colors",title:"Zoom in",children:p.jsx(gP,{size:14})}),p.jsx("div",{className:"w-full border-t border-b",style:yb,children:i?p.jsx("input",{ref:l,type:"text",value:c,onChange:w=>u(w.target.value.replace(/[^0-9]/g,"")),onBlur:g,onKeyDown:v,className:"w-9 py-1.5 text-center text-[11px] font-mono text-foreground bg-background/60 outline-none tabular-nums"}):p.jsxs("button",{onClick:h,className:"w-9 py-1.5 text-center text-[11px] font-mono text-foreground hover:bg-accent/10 transition-colors cursor-text tabular-nums",title:"Click to set zoom",children:[Math.round(e*100),"%"]})}),p.jsx("button",{onClick:m,className:"w-9 h-8 flex items-center justify-center hover:bg-accent/10 text-muted-foreground hover:text-foreground transition-colors",title:"Zoom out",children:p.jsx(dP,{size:14})})]})},uT={...Li};let wb=0;function dT(e,t="mui"){const[n,r]=s.useState(e),o=e||n;return s.useEffect(()=>{n==null&&(wb+=1,r(`${t}-${wb}`))},[n,t]),o}const xb=uT.useId;function _n(e,t){if(xb!==void 0){const n=xb();return e??(t?`${t}-${n}`:n)}return dT(e,t)}function hr(e,...t){const n=new URL(`https://base-ui.com/production-error/${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Base UI error #${e}; visit ${n} for the full message.`}const Yy=s.createContext(void 0);function Ri(e=!0){const t=s.useContext(Yy);if(t===void 0&&!e)throw new Error(hr(25));return t}const Xy=s.createContext(void 0);function qy(e){const t=s.useContext(Xy);if(t===void 0&&!e)throw new Error(hr(33));return t}const Wd=s.createContext(void 0);function Wr(e){const t=s.useContext(Wd);if(t===void 0&&!e)throw new Error(hr(36));return t}const Cb={};function Vt(e,t){const n=s.useRef(Cb);return n.current===Cb&&(n.current=e(t)),n}function Ao(e,t,n,r){const o=Vt(Zy).current;return pT(o,e,t,n,r)&&Jy(o,[e,t,n,r]),o.callback}function fT(e){const t=Vt(Zy).current;return mT(t,e)&&Jy(t,e),t.callback}function Zy(){return{callback:null,cleanup:null,refs:[]}}function pT(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}function mT(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function Jy(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let o=0;o<t.length;o+=1){const i=t[o];if(i!=null)switch(typeof i){case"function":{const a=i(n);typeof a=="function"&&(r[o]=a);break}case"object":{i.current=n;break}}}e.cleanup=()=>{for(let o=0;o<t.length;o+=1){const i=t[o];if(i!=null)switch(typeof i){case"function":{const a=r[o];typeof a=="function"?a():i(null);break}case"object":{i.current=null;break}}}}}}}const hT=parseInt(s.version,10);function zd(e){return hT>=e}function kb(e){if(!s.isValidElement(e))return null;const t=e,n=t.props;return(zd(19)?n?.ref:t.ref)??null}function Du(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function gT(e,t){const n={};for(const r in e){const o=e[r];if(t?.hasOwnProperty(r)){const i=t[r](o);i!=null&&Object.assign(n,i);continue}o===!0?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}function bT(e,t){return typeof e=="function"?e(t):e}function vT(e,t){return typeof e=="function"?e(t):e}const Co={};function Mi(e,t,n,r,o){let i={...Vu(e,Co)};return t&&(i=Rs(i,t)),n&&(i=Rs(i,n)),r&&(i=Rs(i,r)),i}function yT(e){if(e.length===0)return Co;if(e.length===1)return Vu(e[0],Co);let t={...Vu(e[0],Co)};for(let n=1;n<e.length;n+=1)t=Rs(t,e[n]);return t}function Rs(e,t){return Qy(t)?t(e):wT(e,t)}function wT(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=Du(e.style,r);break}case"className":{e[n]=e2(e.className,r);break}default:xT(n,r)?e[n]=CT(e[n],r):e[n]=r}}return e}function xT(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return n===111&&r===110&&o>=65&&o<=90&&(typeof t=="function"||typeof t>"u")}function Qy(e){return typeof e=="function"}function Vu(e,t){return Qy(e)?e(t):e??Co}function CT(e,t){return t?e?n=>{if(kT(n)){const o=n;Fu(o);const i=t(o);return o.baseUIHandlerPrevented||e?.(o),i}const r=t(n);return e?.(n),r}:t:e}function Fu(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function e2(e,t){return t?e?t+" "+e:t:e}function kT(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function t2(){}const n2=Object.freeze([]),Ct=Object.freeze({}),ET=500,LT={style:{transition:"none"}},ST="data-base-ui-click-trigger",$T={fallbackAxisSide:"none"},jT={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function Un(e,t,n={}){const r=t.render,o=OT(t,n);if(n.enabled===!1)return null;const i=n.state??Ct;return RT(e,r,o,i)}function OT(e,t={}){const{className:n,style:r,render:o}=e,{state:i=Ct,ref:a,props:c,stateAttributesMapping:u,enabled:l=!0}=t,d=l?bT(n,i):void 0,f=l?vT(r,i):void 0,m=l?gT(i,u):Ct,h=l?Du(m,Array.isArray(c)?yT(c):c)??Ct:Ct;return typeof document<"u"&&(l?Array.isArray(a)?h.ref=fT([h.ref,kb(o),...a]):h.ref=Ao(h.ref,kb(o),a):Ao(null,null)),l?(d!==void 0&&(h.className=e2(h.className,d)),f!==void 0&&(h.style=Du(h.style,f)),h):Ct}function RT(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const o=Mi(n,t.props);return o.ref=n.ref,s.cloneElement(t,o)}return MT(e,n)}function MT(e,t){return s.createElement(e,t)}let Xs=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const PT={[Xs.startingStyle]:""},TT={[Xs.endingStyle]:""},AT={transitionStatus(e){return e==="starting"?PT:e==="ending"?TT:null}};let _d=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Xs.startingStyle]="startingStyle",e[e.endingStyle=Xs.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e})({}),Eb=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const IT={[Eb.popupOpen]:"",[Eb.pressed]:""},NT={[_d.open]:""},DT={[_d.closed]:""},VT={[_d.anchorHidden]:""},FT={open(e){return e?IT:null}},r2={open(e){return e?NT:DT},anchorHidden(e){return e?VT:null}},BT="none",qs="trigger-press",cr="trigger-hover",Lb="trigger-focus",Ud="outside-press",o2="item-press",Pi="focus-out",s2="escape-key",Ms="list-navigation",HT="cancel-open",bo="sibling-open",WT="imperative-action",zl=Li[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],zT=zl&&zl!==s.useLayoutEffect?zl:e=>e();function ke(e){const t=Vt(_T).current;return t.next=e,zT(t.effect),t.trampoline}function _T(){const e={next:void 0,callback:UT,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function UT(){}function Ti(){return typeof window<"u"}function Kn(e){return Kd(e)?(e.nodeName||"").toLowerCase():"#document"}function at(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function un(e){var t;return(t=(Kd(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Kd(e){return Ti()?e instanceof Node||e instanceof at(e).Node:!1}function We(e){return Ti()?e instanceof Element||e instanceof at(e).Element:!1}function Xe(e){return Ti()?e instanceof HTMLElement||e instanceof at(e).HTMLElement:!1}function Bu(e){return!Ti()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof at(e).ShadowRoot}const KT=new Set(["inline","contents"]);function gr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Rt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!KT.has(o)}const GT=new Set(["table","td","th"]);function YT(e){return GT.has(Kn(e))}const XT=[":popover-open",":modal"];function Ai(e){return XT.some(t=>{try{return e.matches(t)}catch{return!1}})}const qT=["transform","translate","scale","rotate","perspective"],ZT=["transform","translate","scale","rotate","perspective","filter"],JT=["paint","layout","strict","content"];function Gd(e){const t=Ii(),n=We(e)?Rt(e):e;return qT.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ZT.some(r=>(n.willChange||"").includes(r))||JT.some(r=>(n.contain||"").includes(r))}function QT(e){let t=cn(e);for(;Xe(t)&&!nn(t);){if(Gd(t))return t;if(Ai(t))return null;t=cn(t)}return null}function Ii(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const eA=new Set(["html","body","#document"]);function nn(e){return eA.has(Kn(e))}function Rt(e){return at(e).getComputedStyle(e)}function Ni(e){return We(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function cn(e){if(Kn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bu(e)&&e.host||un(e);return Bu(t)?t.host:t}function i2(e){const t=cn(e);return nn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xe(t)&&gr(t)?t:i2(t)}function Dn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=i2(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=at(o);if(i){const c=Hu(a);return t.concat(a,a.visualViewport||[],gr(o)?o:[],c&&n?Dn(c):[])}return t.concat(o,Dn(o,[],n))}function Hu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const tA=()=>{},we=typeof document<"u"?s.useLayoutEffect:tA,nA=s.createContext(void 0);function rA(e=!1){const t=s.useContext(nA);if(t===void 0&&!e)throw new Error(hr(16));return t}function oA(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:o=0,isNativeButton:i}=e,a=r&&t!==!1,c=r&&t===!1;return{props:s.useMemo(()=>{const l={onKeyDown(d){n&&t&&d.key!=="Tab"&&d.preventDefault()}};return r||(l.tabIndex=o,!i&&n&&(l.tabIndex=t?o:-1)),(i&&(t||a)||!i&&n)&&(l["aria-disabled"]=n),i&&(!t||c)&&(l.disabled=n),l},[r,n,t,a,c,i,o])}}function sA(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:o=!0}=e,i=s.useRef(null),a=rA(!0)!==void 0,c=ke(()=>{const m=i.current;return!!(m?.tagName==="A"&&m?.href)}),{props:u}=oA({focusableWhenDisabled:n,disabled:t,composite:a,tabIndex:r,isNativeButton:o}),l=s.useCallback(()=>{const m=i.current;iA(m)&&a&&t&&u.disabled===void 0&&m.disabled&&(m.disabled=!1)},[t,u.disabled,a]);we(l,[l]);const d=s.useCallback((m={})=>{const{onClick:h,onMouseDown:g,onKeyUp:v,onKeyDown:w,onPointerDown:b,...y}=m;return Mi({type:o?"button":void 0,onClick(C){if(t){C.preventDefault();return}h?.(C)},onMouseDown(C){t||g?.(C)},onKeyDown(C){if(t||(Fu(C),w?.(C)),C.baseUIHandlerPrevented)return;const x=C.target===C.currentTarget&&!o&&!c()&&!t,L=C.key==="Enter",S=C.key===" ";x&&((S||L)&&C.preventDefault(),L&&h?.(C))},onKeyUp(C){t||(Fu(C),v?.(C)),!C.baseUIHandlerPrevented&&C.target===C.currentTarget&&!o&&!t&&C.key===" "&&h?.(C)},onPointerDown(C){if(t){C.preventDefault();return}b?.(C)}},o?void 0:{role:"button"},u,y)},[t,u,o,c]),f=ke(m=>{i.current=m,l()});return{getButtonProps:d,buttonRef:f}}function iA(e){return Xe(e)&&e.tagName==="BUTTON"}const aA={type:"regular-item"};function cA(e){const{closeOnClick:t,disabled:n=!1,highlighted:r,id:o,store:i,nativeButton:a,itemMetadata:c,nodeId:u}=e,l=s.useRef(null),d=Ri(!0),f=d!==void 0,{events:m}=i.useState("floatingTreeRoot"),{getButtonProps:h,buttonRef:g}=sA({disabled:n,focusableWhenDisabled:!0,native:a}),v=s.useCallback(b=>Mi({id:o,role:"menuitem",tabIndex:r?0:-1,onMouseMove(y){u&&m.emit("itemhover",{nodeId:u,target:y.currentTarget})},onMouseEnter(){c.type==="submenu-trigger"&&c.setActive()},onKeyUp(y){y.key===" "&&i.context.typingRef.current&&y.preventBaseUIHandler()},onClick(y){t&&m.emit("close",{domEvent:y,reason:o2})},onMouseUp(y){if(d){const k=d.initialCursorPointRef.current;if(d.initialCursorPointRef.current=null,f&&k&&Math.abs(y.clientX-k.x)<=1&&Math.abs(y.clientY-k.y)<=1)return}l.current&&i.context.allowMouseUpTriggerRef.current&&(!f||y.button===2)&&c.type==="regular-item"&&l.current.click()}},b,h),[o,r,h,t,m,i,f,d,c,u]),w=Ao(l,g);return s.useMemo(()=>({getItemProps:v,itemRef:w}),[v,w])}const a2=s.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function lA(){return s.useContext(a2)}let uA=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function dA(e={}){const{label:t,metadata:n,textRef:r,indexGuessBehavior:o,index:i}=e,{register:a,unregister:c,subscribeMapChange:u,elementsRef:l,labelsRef:d,nextIndexRef:f}=lA(),m=s.useRef(-1),[h,g]=s.useState(i??(o===uA.GuessFromOrder?()=>{if(m.current===-1){const b=f.current;f.current+=1,m.current=b}return m.current}:-1)),v=s.useRef(null),w=s.useCallback(b=>{if(v.current=b,h!==-1&&b!==null&&(l.current[h]=b,d)){const y=t!==void 0;d.current[h]=y?t:r?.current?.textContent??b.textContent}},[h,l,d,t,r]);return we(()=>{if(i!=null)return;const b=v.current;if(b)return a(b,n),()=>{c(b)}},[i,a,c,n]),we(()=>{if(i==null)return u(b=>{const y=v.current?b.get(v.current)?.index:null;y!=null&&g(y)})},[i,u,g]),s.useMemo(()=>({ref:w,index:h}),[h,w])}function c2(e){return _n(e,"base-ui")}function Je(e,t,n,r){let o=!1,i=!1;const a=Ct;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){i=!0},get isCanceled(){return o},get isPropagationAllowed(){return i},trigger:n,...a}}const fA=[];function l2(e){s.useEffect(e,fA)}const is=null;let pA=class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let o=0;o<n.length;o+=1)n[o]?.(t)};request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}};const as=new pA;let Pn=class u2{static create(){return new u2}static request(t){return as.request(t)}static cancel(t){return as.cancel(t)}currentId=is;request(t){this.cancel(),this.currentId=as.request(()=>{this.currentId=is,t()})}cancel=()=>{this.currentId!==is&&(as.cancel(this.currentId),this.currentId=is)};disposeEffect=()=>this.cancel};function Yd(){const e=Vt(Pn.create).current;return l2(e.disposeEffect),e}function mA(e,t=!1,n=!1){const[r,o]=s.useState(e&&t?"idle":void 0),[i,a]=s.useState(e);return e&&!i&&(a(!0),o("starting")),!e&&i&&r!=="ending"&&!n&&o("ending"),!e&&!i&&r==="ending"&&o(void 0),we(()=>{if(!e&&i&&r!=="ending"&&n){const c=Pn.request(()=>{o("ending")});return()=>{Pn.cancel(c)}}},[e,i,r,n]),we(()=>{if(!e||t)return;const c=Pn.request(()=>{ft.flushSync(()=>{o(void 0)})});return()=>{Pn.cancel(c)}},[t,e]),we(()=>{if(!e||!t)return;e&&i&&r!=="idle"&&o("starting");const c=Pn.request(()=>{o("idle")});return()=>{Pn.cancel(c)}},[t,e,i,o,r]),s.useMemo(()=>({mounted:i,setMounted:a,transitionStatus:r}),[i,r])}function wt(e){const t=Vt(hA,e).current;return t.next=e,we(t.effect),t}function hA(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function or(e){return e==null?e:"current"in e?e.current:e}function gA(e,t=!1,n=!0){const r=Yd();return ke((o,i=null)=>{r.cancel();const a=or(e);a!=null&&(typeof a.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED?o():r.request(()=>{function c(){a&&Promise.all(a.getAnimations().map(u=>u.finished)).then(()=>{i!=null&&i.aborted||ft.flushSync(o)}).catch(()=>{if(n){if(i!=null&&i.aborted)return;ft.flushSync(o)}else a.getAnimations().length>0&&a.getAnimations().some(u=>u.pending||u.playState!=="finished")&&c()})}t?r.request(c):c()}))})}function d2(e){const{enabled:t=!0,open:n,ref:r,onComplete:o}=e,i=wt(n),a=ke(o),c=gA(r,n);s.useEffect(()=>{t&&c(()=>{n===i.current&&a()})},[t,n,a,c,i])}const f2=s.createContext(void 0);function bA(){const e=s.useContext(f2);if(e===void 0)throw new Error(hr(31));return e}const vA=s.forwardRef(function(t,n){const{render:r,className:o,...i}=t,[a,c]=s.useState(void 0),u=s.useMemo(()=>({setLabelId:c}),[c]),l=Un("div",t,{ref:n,props:{role:"group","aria-labelledby":a,...i}});return p.jsx(f2.Provider,{value:u,children:l})}),yA=s.forwardRef(function(t,n){const{className:r,render:o,id:i,...a}=t,c=c2(i),{setLabelId:u}=bA();return we(()=>(u(c),()=>{u(void 0)}),[u,c]),Un("div",t,{ref:n,props:{id:c,role:"presentation",...a}})}),wA=s.forwardRef(function(t,n){const{render:r,className:o,id:i,label:a,nativeButton:c=!1,disabled:u=!1,closeOnClick:l=!0,...d}=t,f=dA({label:a}),m=qy(!0),h=c2(i),{store:g}=Wr(),v=g.useState("isActive",f.index),w=g.useState("itemProps"),{getItemProps:b,itemRef:y}=cA({closeOnClick:l,disabled:u,highlighted:v,id:h,store:g,nativeButton:c,nodeId:m?.nodeId,itemMetadata:aA}),k=s.useMemo(()=>({disabled:u,highlighted:v}),[u,v]);return Un("div",t,{state:k,props:[w,d,b],ref:[y,n,f.ref]})}),lo=0;let Zs=class p2{static create(){return new p2}currentId=lo;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=lo,n()},t)}isStarted(){return this.currentId!==lo}clear=()=>{this.currentId!==lo&&(clearTimeout(this.currentId),this.currentId=lo)};disposeEffect=()=>this.clear};function Yt(){const e=Vt(Zs.create).current;return l2(e.disposeEffect),e}const zr=typeof navigator<"u",_l=LA(),m2=$A(),h2=SA(),xA=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),CA=_l.platform==="MacIntel"&&_l.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(_l.platform),kA=zr&&/apple/i.test(navigator.vendor),Wu=zr&&/android/i.test(m2)||/android/i.test(h2);zr&&m2.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;const EA=h2.includes("jsdom/");function LA(){if(!zr)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function SA(){if(!zr)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function $A(){if(!zr)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const zu="data-base-ui-focusable",g2="active",b2="selected",v2="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",Vn="ArrowLeft",Fn="ArrowRight",Xd="ArrowUp",Wo="ArrowDown";function Tn(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function He(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Bu(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function xt(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Wt(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function jA(e){return e.matches("html,body")}function ot(e){return e?.ownerDocument||document}function OA(e){return Xe(e)&&e.matches(v2)}function _u(e){return e?e.getAttribute("role")==="combobox"&&OA(e):!1}function Js(e){return e?e.hasAttribute(zu)?e:e.querySelector(`[${zu}]`)||e:null}function $r(e,t,n=!0){return e.filter(o=>o.parentId===t&&(!n||o.context?.open)).flatMap(o=>[o,...$r(e,o.id,n)])}function Sb(e,t){let n=[],r=e.find(o=>o.id===t)?.parentId;for(;r;){const o=e.find(i=>i.id===r);r=o?.parentId,o&&(n=n.concat(o))}return n}function st(e){e.preventDefault(),e.stopPropagation()}function RA(e){return"nativeEvent"in e}function y2(e){return e.mozInputSource===0&&e.isTrusted?!0:Wu&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function w2(e){return EA?!1:!Wu&&e.width===0&&e.height===0||Wu&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function MA(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function PA(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const TA=["top","right","bottom","left"],Nr=Math.min,St=Math.max,Qs=Math.round,xr=Math.floor,rn=e=>({x:e,y:e}),AA={left:"right",right:"left",bottom:"top",top:"bottom"},IA={start:"end",end:"start"};function Uu(e,t,n){return St(e,Nr(t,n))}function xn(e,t){return typeof e=="function"?e(t):e}function Ot(e){return e.split("-")[0]}function Gn(e){return e.split("-")[1]}function qd(e){return e==="x"?"y":"x"}function Zd(e){return e==="y"?"height":"width"}const NA=new Set(["top","bottom"]);function Tt(e){return NA.has(Ot(e))?"y":"x"}function Jd(e){return qd(Tt(e))}function DA(e,t,n){n===void 0&&(n=!1);const r=Gn(e),o=Jd(e),i=Zd(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ei(a)),[a,ei(a)]}function VA(e){const t=ei(e);return[Ku(e),t,Ku(t)]}function Ku(e){return e.replace(/start|end/g,t=>IA[t])}const $b=["left","right"],jb=["right","left"],FA=["top","bottom"],BA=["bottom","top"];function HA(e,t,n){switch(e){case"top":case"bottom":return n?t?jb:$b:t?$b:jb;case"left":case"right":return t?FA:BA;default:return[]}}function WA(e,t,n,r){const o=Gn(e);let i=HA(Ot(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Ku)))),i}function ei(e){return e.replace(/left|right|bottom|top/g,t=>AA[t])}function zA(e){return{top:0,right:0,bottom:0,left:0,...e}}function x2(e){return typeof e!="number"?zA(e):{top:e,right:e,bottom:e,left:e}}function ti(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function cs(e,t,n){return Math.floor(e/t)!==n}function ko(e,t){return t<0||t>=e.current.length}function Ul(e,t){return lt(e,{disabledIndices:t})}function Ob(e,t){return lt(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function lt(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:o=1}={}){let i=t;do i+=n?-o:o;while(i>=0&&i<=e.current.length-1&&Eo(e,i,r));return i}function _A(e,{event:t,orientation:n,loopFocus:r,rtl:o,cols:i,disabledIndices:a,minIndex:c,maxIndex:u,prevIndex:l,stopEvent:d=!1}){let f=l;const m=[],h={};let g=!1;{let b=null,y=-1;e.current.forEach((k,C)=>{if(k==null)return;const x=k.closest('[role="row"]');x&&(g=!0),(x!==b||y===-1)&&(b=x,y+=1,m[y]=[]),m[y].push(C),h[C]=y})}const v=g&&m.length>0&&m.some(b=>b.length!==i);function w(b){if(!v||l===-1)return;const y=h[l];if(y==null)return;const k=m[y].indexOf(l);let C=b==="up"?y-1:y+1;r&&(C<0?C=m.length-1:C>=m.length&&(C=0));const x=new Set;for(;C>=0&&C<m.length&&!x.has(C);){x.add(C);const L=m[C];if(L.length===0){C=b==="up"?C-1:C+1;continue}const S=Math.min(k,L.length-1);for(let E=S;E>=0;E-=1){const M=L[E];if(!Eo(e,M,a))return M}C=b==="up"?C-1:C+1,r&&(C<0?C=m.length-1:C>=m.length&&(C=0))}}if(t.key===Xd){const b=w("up");if(b!==void 0)d&&st(t),f=b;else{if(d&&st(t),l===-1)f=u;else if(f=lt(e,{startingIndex:f,amount:i,decrement:!0,disabledIndices:a}),r&&(l-i<c||f<0)){const y=l%i,k=u%i,C=u-(k-y);k===y?f=u:f=k>y?C:C-i}ko(e,f)&&(f=l)}}if(t.key===Wo){const b=w("down");b!==void 0?(d&&st(t),f=b):(d&&st(t),l===-1?f=c:(f=lt(e,{startingIndex:l,amount:i,disabledIndices:a}),r&&l+i>u&&(f=lt(e,{startingIndex:l%i-i,amount:i,disabledIndices:a}))),ko(e,f)&&(f=l))}if(n==="both"){const b=xr(l/i);t.key===(o?Vn:Fn)&&(d&&st(t),l%i!==i-1?(f=lt(e,{startingIndex:l,disabledIndices:a}),r&&cs(f,i,b)&&(f=lt(e,{startingIndex:l-l%i-1,disabledIndices:a}))):r&&(f=lt(e,{startingIndex:l-l%i-1,disabledIndices:a})),cs(f,i,b)&&(f=l)),t.key===(o?Fn:Vn)&&(d&&st(t),l%i!==0?(f=lt(e,{startingIndex:l,decrement:!0,disabledIndices:a}),r&&cs(f,i,b)&&(f=lt(e,{startingIndex:l+(i-l%i),decrement:!0,disabledIndices:a}))):r&&(f=lt(e,{startingIndex:l+(i-l%i),decrement:!0,disabledIndices:a})),cs(f,i,b)&&(f=l));const y=xr(u/i)===b;ko(e,f)&&(r&&y?f=t.key===(o?Fn:Vn)?u:lt(e,{startingIndex:l-l%i-1,disabledIndices:a}):f=l)}return f}function UA(e,t,n){const r=[];let o=0;return e.forEach(({width:i,height:a},c)=>{let u=!1;for(n&&(o=0);!u;){const l=[];for(let d=0;d<i;d+=1)for(let f=0;f<a;f+=1)l.push(o+d+f*t);o%t+i<=t&&l.every(d=>r[d]==null)?(l.forEach(d=>{r[d]=c}),u=!0):o+=1}}),[...r]}function KA(e,t,n,r,o){if(e===-1)return-1;const i=n.indexOf(e),a=t[e];switch(o){case"tl":return i;case"tr":return a?i+a.width-1:i;case"bl":return a?i+(a.height-1)*r:i;case"br":return n.lastIndexOf(e);default:return-1}}function GA(e,t){return t.flatMap((n,r)=>e.includes(n)?[r]:[])}function Eo(e,t,n){if(typeof n=="function")return n(t);if(n)return n.includes(t);const r=e.current[t];return r?r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true":!1}var YA=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ni=YA.join(","),C2=typeof Element>"u",Dr=C2?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ri=!C2&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},oi=function(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",a=i||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):oi(t.parentNode));return a},XA=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},k2=function(t,n,r){if(oi(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(ni));return n&&Dr.call(t,ni)&&o.unshift(t),o=o.filter(r),o},si=function(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!oi(a,!1))if(a.tagName==="SLOT"){var c=a.assignedElements(),u=c.length?c:a.children,l=si(u,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{var d=Dr.call(a,ni);d&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var f=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),m=!oi(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(f&&m){var h=si(f===!0?a.children:f.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:a,candidates:h})}else i.unshift.apply(i,a.children)}}return o},E2=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},L2=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||XA(t))&&!E2(t)?0:t.tabIndex},qA=function(t,n){var r=L2(t);return r<0&&n&&!E2(t)?0:r},ZA=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},S2=function(t){return t.tagName==="INPUT"},JA=function(t){return S2(t)&&t.type==="hidden"},QA=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},eI=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},tI=function(t){if(!t.name)return!0;var n=t.form||ri(t),r=function(c){return n.querySelectorAll('input[type="radio"][name="'+c+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var i=eI(o,t.form);return!i||i===t},nI=function(t){return S2(t)&&t.type==="radio"},rI=function(t){return nI(t)&&!tI(t)},oI=function(t){var n,r=t&&ri(t),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==t){var a,c,u;for(i=!!((a=o)!==null&&a!==void 0&&(c=a.ownerDocument)!==null&&c!==void 0&&c.contains(o)||t!=null&&(u=t.ownerDocument)!==null&&u!==void 0&&u.contains(t));!i&&o;){var l,d,f;r=ri(o),o=(l=r)===null||l===void 0?void 0:l.host,i=!!((d=o)!==null&&d!==void 0&&(f=d.ownerDocument)!==null&&f!==void 0&&f.contains(o))}}return i},Rb=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},sI=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var i=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!i}if(getComputedStyle(t).visibility==="hidden")return!0;var a=Dr.call(t,"details>summary:first-of-type"),c=a?t.parentElement:t;if(Dr.call(c,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var u=t;t;){var l=t.parentElement,d=ri(t);if(l&&!l.shadowRoot&&o(l)===!0)return Rb(t);t.assignedSlot?t=t.assignedSlot:!l&&d!==t.ownerDocument?t=d.host:t=l}t=u}if(oI(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Rb(t);return!1},iI=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return Dr.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},Gu=function(t,n){return!(n.disabled||JA(n)||sI(n,t)||QA(n)||iI(n))},Yu=function(t,n){return!(rI(n)||L2(n)<0||!Gu(t,n))},aI=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},$2=function(t){var n=[],r=[];return t.forEach(function(o,i){var a=!!o.scopeParent,c=a?o.scopeParent:o,u=qA(c,a),l=a?$2(o.candidates):c;u===0?a?n.push.apply(n,l):n.push(c):r.push({documentOrder:i,tabIndex:u,item:o,isScope:a,content:l})}),r.sort(ZA).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},Di=function(t,n){n=n||{};var r;return n.getShadowRoot?r=si([t],n.includeContainer,{filter:Yu.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:aI}):r=k2(t,n.includeContainer,Yu.bind(null,n)),$2(r)},cI=function(t,n){n=n||{};var r;return n.getShadowRoot?r=si([t],n.includeContainer,{filter:Gu.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=k2(t,n.includeContainer,Gu.bind(null,n)),r},j2=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Dr.call(t,ni)===!1?!1:Yu(n,t)};const zo=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function O2(e,t){const n=Di(e,zo()),r=n.length;if(r===0)return;const o=Tn(ot(e)),i=n.indexOf(o),a=i===-1?t===1?0:r-1:i+t;return n[a]}function R2(e){return O2(ot(e).body,1)||e}function M2(e){return O2(ot(e).body,-1)||e}function Lo(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!He(n,r)}function lI(e){Di(e,zo()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Mb(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}function P2(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}class T2{nodesRef={current:[]};events=P2();addNode(t){this.nodesRef.current.push(t)}removeNode(t){const n=this.nodesRef.current.findIndex(r=>r===t);n!==-1&&this.nodesRef.current.splice(n,1)}}const A2=s.createContext(null),I2=s.createContext(null),Yn=()=>s.useContext(A2)?.id||null,_r=e=>{const t=s.useContext(I2);return e??t};function uI(e){const t=_n(),n=_r(e),r=Yn();return we(()=>{if(!t)return;const o={id:t,parentId:r};return n?.addNode(o),()=>{n?.removeNode(o)}},[n,t,r]),t}function dI(e){const{children:t,id:n}=e,r=Yn();return p.jsx(A2.Provider,{value:s.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function fI(e){const{children:t,externalTree:n}=e,r=Vt(()=>n??new T2).current;return p.jsx(I2.Provider,{value:r,children:t})}function Io(e){return`data-base-ui-${e}`}const N2={clip:"rect(0 0 0 0)",overflow:"hidden",whiteSpace:"nowrap",position:"fixed",top:0,left:0,border:0,padding:0,width:1,height:1,margin:-1};function dr(e){return e?.ownerDocument||document}const ii=s.forwardRef(function(t,n){const[r,o]=s.useState();we(()=>{kA&&o("button")},[]);const i={tabIndex:0,role:r};return p.jsx("span",{...t,ref:n,style:N2,"aria-hidden":r?void 0:!0,...i,"data-base-ui-focus-guard":""})});let Pb=0;function Ps(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Pb);const i=()=>e?.focus({preventScroll:n});o?i():Pb=requestAnimationFrame(i)}const jr={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Tb(e){return e==="inert"?jr.inert:e==="aria-hidden"?jr["aria-hidden"]:jr.none}let ls=new WeakSet,us={},Kl=0;const D2=e=>e&&(e.host||D2(e.parentNode)),pI=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=D2(n);return e.contains(r)?r:null}).filter(n=>n!=null);function mI(e,t,n,r){const o="data-base-ui-inert",i=r?"inert":n?"aria-hidden":null,a=pI(t,e),c=new Set,u=new Set(a),l=[];us[o]||(us[o]=new WeakMap);const d=us[o];a.forEach(f),m(t),c.clear();function f(h){!h||c.has(h)||(c.add(h),h.parentNode&&f(h.parentNode))}function m(h){!h||u.has(h)||[].forEach.call(h.children,g=>{if(Kn(g)!=="script")if(c.has(g))m(g);else{const v=i?g.getAttribute(i):null,w=v!==null&&v!=="false",b=Tb(i),y=(b.get(g)||0)+1,k=(d.get(g)||0)+1;b.set(g,y),d.set(g,k),l.push(g),y===1&&w&&ls.add(g),k===1&&g.setAttribute(o,""),!w&&i&&g.setAttribute(i,i==="inert"?"":"true")}})}return Kl+=1,()=>{l.forEach(h=>{const g=Tb(i),w=(g.get(h)||0)-1,b=(d.get(h)||0)-1;g.set(h,w),d.set(h,b),w||(!ls.has(h)&&i&&h.removeAttribute(i),ls.delete(h)),b||h.removeAttribute(o)}),Kl-=1,Kl||(jr.inert=new WeakMap,jr["aria-hidden"]=new WeakMap,jr.none=new WeakMap,ls=new WeakSet,us={})}}function hI(e,t=!1,n=!1){const r=ot(e[0]).body;return mI(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const V2=s.createContext(null),F2=()=>s.useContext(V2),gI=Io("portal");function bI(e={}){const{ref:t,container:n,componentProps:r=Ct,elementProps:o,elementState:i}=e,a=_n(),u=F2()?.portalNode,[l,d]=s.useState(null),[f,m]=s.useState(null),h=s.useRef(null);we(()=>{if(n===null){h.current&&(h.current=null,m(null),d(null));return}if(a==null)return;const w=(n&&(Kd(n)?n:n.current))??u??document.body;if(w==null){h.current&&(h.current=null,m(null),d(null));return}h.current!==w&&(h.current=w,m(null),d(w))},[n,u,a]);const g=Un("div",r,{ref:[t,m],state:i,props:[{id:a,[gI]:""},o]});return{portalNode:f,portalSubtree:l&&g?ft.createPortal(g,l):null}}const vI=s.forwardRef(function(t,n){const{children:r,container:o,className:i,render:a,renderGuards:c,...u}=t,{portalNode:l,portalSubtree:d}=bI({container:o,ref:n,componentProps:t,elementProps:u}),f=s.useRef(null),m=s.useRef(null),h=s.useRef(null),g=s.useRef(null),[v,w]=s.useState(null),b=v?.modal,y=v?.open,k=typeof c=="boolean"?c:!!v&&!v.modal&&v.open&&!!l;s.useEffect(()=>{if(!l||b)return;function x(L){l&&Lo(L)&&(L.type==="focusin"?Mb:lI)(l)}return l.addEventListener("focusin",x,!0),l.addEventListener("focusout",x,!0),()=>{l.removeEventListener("focusin",x,!0),l.removeEventListener("focusout",x,!0)}},[l,b]),s.useEffect(()=>{!l||y||Mb(l)},[y,l]);const C=s.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:m,beforeInsideRef:h,afterInsideRef:g,portalNode:l,setFocusManagerState:w}),[l]);return p.jsxs(s.Fragment,{children:[d,p.jsxs(V2.Provider,{value:C,children:[k&&l&&p.jsx(ii,{"data-type":"outside",ref:f,onFocus:x=>{if(Lo(x,l))h.current?.focus();else{const L=v?v.domReference:null;M2(L)?.focus()}}}),k&&l&&p.jsx("span",{"aria-owns":l.id,style:jT}),l&&ft.createPortal(r,l),k&&l&&p.jsx(ii,{"data-type":"outside",ref:m,onFocus:x=>{if(Lo(x,l))g.current?.focus();else{const L=v?v.domReference:null;R2(L)?.focus(),v?.closeOnFocusOut&&v?.onOpenChange(!1,Je(Pi,x.nativeEvent))}}})]})]})});function yI(e,t){const n=at(e.target);return e instanceof n.KeyboardEvent?"keyboard":e instanceof n.FocusEvent?t||"keyboard":"pointerType"in e?e.pointerType||"keyboard":"touches"in e?"touch":e instanceof n.MouseEvent?t||(e.detail===0?"keyboard":"mouse"):""}const Ab=20;let An=[];function Qd(){An=An.filter(e=>e.isConnected)}function wI(e){Qd(),e&&Kn(e)!=="body"&&(An.push(e),An.length>Ab&&(An=An.slice(-Ab)))}function Gl(){return Qd(),An[An.length-1]}function xI(e){if(!e)return null;const t=zo();return j2(e,t)?e:Di(e,t)[0]||e}function CI(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():Rt(e).display!=="none"}function Ib(e,t){if(!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;const n=zo(),o=cI(e,n).filter(a=>{const c=a.getAttribute("data-tabindex")||"";return j2(a,n)||a.hasAttribute("data-tabindex")&&!c.startsWith("-")}),i=e.getAttribute("tabindex");t.current.includes("floating")||o.length===0?i!=="0"&&e.setAttribute("tabindex","0"):(i!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function kI(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],initialFocus:i=!0,returnFocus:a=!0,restoreFocus:c=!1,modal:u=!0,closeOnFocusOut:l=!0,openInteractionType:d="",getInsideElements:f=()=>[],nextFocusableElement:m,previousFocusableElement:h,beforeContentFocusGuardRef:g,externalTree:v}=e,w="rootStore"in t?t.rootStore:t,b=w.useState("open"),y=w.useState("domReferenceElement"),k=w.useState("floatingElement"),{events:C,dataRef:x}=w.context,L=ke(()=>x.current.floatingContext?.nodeId),S=ke(f),E=i===!1,M=_u(y)&&E,P=wt(o),D=wt(i),T=wt(a),j=wt(d),H=_r(v),A=F2(),I=s.useRef(null),B=s.useRef(null),$=s.useRef(!1),z=s.useRef(!1),R=s.useRef(!1),q=s.useRef(-1),ee=s.useRef(""),te=s.useRef(""),ae=Yt(),le=Yt(),ne=Yd(),re=A!=null,se=Js(k),ie=ke((G=se)=>G?Di(G,zo()):[]),ue=ke(G=>{const Z=ie(G);return P.current.map(()=>Z).filter(Boolean).flat()});s.useEffect(()=>{if(r||!u)return;function G(be){be.key==="Tab"&&He(se,Tn(ot(se)))&&ie().length===0&&!M&&st(be)}const Z=ot(se);return Z.addEventListener("keydown",G),()=>{Z.removeEventListener("keydown",G)}},[r,y,se,u,P,M,ie,ue]),s.useEffect(()=>{if(r||!k)return;function G(Z){const be=xt(Z),W=ie().indexOf(be);W!==-1&&(q.current=W)}return k.addEventListener("focusin",G),()=>{k.removeEventListener("focusin",G)}},[r,k,ie]),s.useEffect(()=>{if(r||!b)return;const G=ot(se);function Z(){R.current=!1}function be(W){const _=xt(W),ce=He(k,_)||He(y,_)||He(A?.portalNode,_);R.current=!ce,te.current=W.pointerType||"keyboard"}function ve(){te.current="keyboard"}return G.addEventListener("pointerdown",be,!0),G.addEventListener("pointerup",Z,!0),G.addEventListener("pointercancel",Z,!0),G.addEventListener("keydown",ve,!0),()=>{G.removeEventListener("pointerdown",be,!0),G.removeEventListener("pointerup",Z,!0),G.removeEventListener("pointercancel",Z,!0),G.removeEventListener("keydown",ve,!0)}},[r,k,y,se,b,A]),s.useEffect(()=>{if(r||!l)return;function G(){z.current=!0,le.start(0,()=>{z.current=!1})}function Z(_){const ce=_.relatedTarget,Y=_.currentTarget,K=xt(_);queueMicrotask(()=>{const oe=L(),ye=w.context.triggerElements,Ee=!(He(y,ce)||He(k,ce)||He(ce,k)||He(A?.portalNode,ce)||ce!=null&&ye.hasElement(ce)||ye.hasMatchingElement(xe=>He(xe,ce))||ce?.hasAttribute(Io("focus-guard"))||H&&($r(H.nodesRef.current,oe).find(xe=>He(xe.context?.elements.floating,ce)||He(xe.context?.elements.domReference,ce))||Sb(H.nodesRef.current,oe).find(xe=>[xe.context?.elements.floating,Js(xe.context?.elements.floating)].includes(ce)||xe.context?.elements.domReference===ce)));if(Y===y&&se&&Ib(se,P),c&&Y!==y&&!CI(K)&&Tn(ot(se))===ot(se).body){if(Xe(se)&&(se.focus(),c==="popup")){ne.request(()=>{se.focus()});return}const xe=q.current,Ae=ie(),Ie=Ae[xe]||Ae[Ae.length-1]||se;Xe(Ie)&&Ie.focus()}if(x.current.insideReactTree){x.current.insideReactTree=!1;return}(M||!u)&&ce&&Ee&&!z.current&&(M||ce!==Gl())&&($.current=!0,w.setOpen(!1,Je(Pi,_)))})}function be(){R.current||(x.current.insideReactTree=!0,ae.start(0,()=>{x.current.insideReactTree=!1}))}const ve=Xe(y)?y:null,W=[];if(!(!k&&!ve))return ve&&(ve.addEventListener("focusout",Z),ve.addEventListener("pointerdown",G),W.push(()=>{ve.removeEventListener("focusout",Z),ve.removeEventListener("pointerdown",G)})),k&&(k.addEventListener("focusout",Z),A&&(k.addEventListener("focusout",be,!0),W.push(()=>{k.removeEventListener("focusout",be,!0)})),W.push(()=>{k.removeEventListener("focusout",Z)})),()=>{W.forEach(_=>{_()})}},[r,y,k,se,u,H,A,w,l,c,ie,M,L,P,x,ae,le,ne]);const O=s.useRef(null),X=s.useRef(null),V=Ao(O,g,A?.beforeInsideRef),ge=Ao(X,A?.afterInsideRef);s.useEffect(()=>{if(r||!k||!b)return;const G=Array.from(A?.portalNode?.querySelectorAll(`[${Io("portal")}]`)||[]),be=(H?Sb(H.nodesRef.current,L()):[]).find(_=>_u(_.context?.elements.domReference||null))?.context?.elements.domReference,ve=[k,be,...G,...S(),I.current,B.current,O.current,X.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,or(h),or(m),M?y:null].filter(_=>_!=null),W=hI(ve,u||M);return()=>{W()}},[b,r,y,k,u,P,A,M,H,L,S,m,h]),we(()=>{if(!b||r||!Xe(se))return;const G=ot(se),Z=Tn(G);queueMicrotask(()=>{const be=ue(se),ve=D.current,W=typeof ve=="function"?ve(j.current||""):ve;if(W===void 0||W===!1)return;let _;W===!0||W===null?_=be[0]||se:_=or(W),_=_||be[0]||se,!He(se,Z)&&Ps(_,{preventScroll:_===se})})},[r,b,se,E,ue,D,j]),we(()=>{if(r||!se)return;const G=ot(se),Z=Tn(G);wI(Z);function be(_){if(_.open||(ee.current=yI(_.nativeEvent,te.current)),_.reason===cr&&_.nativeEvent.type==="mouseleave"&&($.current=!0),_.reason===Ud)if(_.nested)$.current=!1;else if(y2(_.nativeEvent)||w2(_.nativeEvent))$.current=!1;else{let ce=!1;document.createElement("div").focus({get preventScroll(){return ce=!0,!1}}),ce?$.current=!1:$.current=!0}}C.on("openchange",be);const ve=G.createElement("span");ve.setAttribute("tabindex","-1"),ve.setAttribute("aria-hidden","true"),Object.assign(ve.style,N2),re&&y&&y.insertAdjacentElement("afterend",ve);function W(){const _=T.current;let ce=typeof _=="function"?_(ee.current):_;if(ce===void 0||ce===!1)return null;if(ce===null&&(ce=!0),typeof ce=="boolean"){const K=y||Gl();return K&&K.isConnected?K:ve}const Y=y||Gl()||ve;return or(ce)||Y}return()=>{C.off("openchange",be);const _=Tn(G),ce=He(k,_)||H&&$r(H.nodesRef.current,L(),!1).some(K=>He(K.context?.elements.floating,_)),Y=W();queueMicrotask(()=>{const K=xI(Y),oe=typeof T.current!="boolean";T.current&&!$.current&&Xe(K)&&(!(!oe&&K!==_&&_!==G.body)||ce)&&K.focus({preventScroll:!0}),ve.remove()})}},[r,k,se,T,x,C,H,re,y,L]),s.useEffect(()=>{queueMicrotask(()=>{$.current=!1})},[r]),s.useEffect(()=>{if(r||!b)return;function G(be){xt(be)?.closest(`[${ST}]`)&&(z.current=!0)}const Z=ot(se);return Z.addEventListener("pointerdown",G,!0),()=>{Z.removeEventListener("pointerdown",G,!0)}},[r,b,se]),we(()=>{if(!r&&A)return A.setFocusManagerState({modal:u,closeOnFocusOut:l,open:b,onOpenChange:w.setOpen,domReference:y}),()=>{A.setFocusManagerState(null)}},[r,A,u,b,w,l,y]),we(()=>{if(!(r||!se))return Ib(se,P),()=>{queueMicrotask(Qd)}},[r,se,P]);const J=!r&&(u?!M:!0)&&(re||u);return p.jsxs(s.Fragment,{children:[J&&p.jsx(ii,{"data-type":"inside",ref:V,onFocus:G=>{if(u){const Z=ue();Ps(Z[Z.length-1])}else A?.portalNode&&($.current=!1,Lo(G,A.portalNode)?R2(y)?.focus():or(h??A.beforeOutsideRef)?.focus())}}),n,J&&p.jsx(ii,{"data-type":"inside",ref:ge,onFocus:G=>{u?Ps(ue()[0]):A?.portalNode&&(l&&($.current=!0),Lo(G,A.portalNode)?M2(y)?.focus():or(m??A.afterOutsideRef)?.focus())}})]})}function Nb(e,t,n){let{reference:r,floating:o}=e;const i=Tt(t),a=Jd(t),c=Zd(a),u=Ot(t),l=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[c]/2-o[c]/2;let h;switch(u){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Gn(t)){case"start":h[a]-=m*(n&&l?-1:1);break;case"end":h[a]+=m*(n&&l?-1:1);break}return h}async function EI(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:c,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=xn(t,e),g=x2(h),w=c[m?f==="floating"?"reference":"floating":f],b=ti(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:l,rootBoundary:d,strategy:u})),y=f==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),C=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},x=ti(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:k,strategy:u}):y);return{top:(b.top-x.top+g.top)/C.y,bottom:(x.bottom-b.bottom+g.bottom)/C.y,left:(b.left-x.left+g.left)/C.x,right:(x.right-b.right+g.right)/C.x}}const LI=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,c=i.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Nb(l,r,u),m=r,h={},g=0;for(let w=0;w<c.length;w++){var v;const{name:b,fn:y}=c[w],{x:k,y:C,data:x,reset:L}=await y({x:d,y:f,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:l,platform:{...a,detectOverflow:(v=a.detectOverflow)!=null?v:EI},elements:{reference:e,floating:t}});d=k??d,f=C??f,h={...h,[b]:{...h[b],...x}},L&&g<=50&&(g++,typeof L=="object"&&(L.placement&&(m=L.placement),L.rects&&(l=L.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):L.rects),{x:d,y:f}=Nb(l,m,u)),w=-1)}return{x:d,y:f,placement:m,strategy:o,middlewareData:h}},SI=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:c,platform:u,elements:l}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...w}=xn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=Ot(o),y=Tt(c),k=Ot(c)===c,C=await(u.isRTL==null?void 0:u.isRTL(l.floating)),x=m||(k||!v?[ei(c)]:VA(c)),L=g!=="none";!m&&L&&x.push(...WA(c,v,g,C));const S=[c,...x],E=await u.detectOverflow(t,w),M=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&M.push(E[b]),f){const H=DA(o,a,C);M.push(E[H[0]],E[H[1]])}if(P=[...P,{placement:o,overflows:M}],!M.every(H=>H<=0)){var D,T;const H=(((D=i.flip)==null?void 0:D.index)||0)+1,A=S[H];if(A&&(!(f==="alignment"?y!==Tt(A):!1)||P.every($=>Tt($.placement)===y?$.overflows[0]>0:!0)))return{data:{index:H,overflows:P},reset:{placement:A}};let I=(T=P.filter(B=>B.overflows[0]<=0).sort((B,$)=>B.overflows[1]-$.overflows[1])[0])==null?void 0:T.placement;if(!I)switch(h){case"bestFit":{var j;const B=(j=P.filter($=>{if(L){const z=Tt($.placement);return z===y||z==="y"}return!0}).map($=>[$.placement,$.overflows.filter(z=>z>0).reduce((z,R)=>z+R,0)]).sort(($,z)=>$[1]-z[1])[0])==null?void 0:j[0];B&&(I=B);break}case"initialPlacement":I=c;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function Db(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vb(e){return TA.some(t=>e[t]>=0)}const $I=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=xn(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...i,elementContext:"reference"}),c=Db(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Vb(c)}}}case"escaped":{const a=await r.detectOverflow(t,{...i,altBoundary:!0}),c=Db(a,n.floating);return{data:{escapedOffsets:c,escaped:Vb(c)}}}default:return{}}}}},B2=new Set(["left","top"]);async function jI(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Ot(n),c=Gn(n),u=Tt(n)==="y",l=B2.has(a)?-1:1,d=i&&u?-1:1,f=xn(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof g=="number"&&(h=c==="end"?g*-1:g),u?{x:h*d,y:m*l}:{x:m*l,y:h*d}}const OI=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:c}=t,u=await jI(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}}},RI=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:u={fn:b=>{let{x:y,y:k}=b;return{x:y,y:k}}},...l}=xn(e,t),d={x:n,y:r},f=await i.detectOverflow(t,l),m=Tt(Ot(o)),h=qd(m);let g=d[h],v=d[m];if(a){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",k=g+f[b],C=g-f[y];g=Uu(k,g,C)}if(c){const b=m==="y"?"top":"left",y=m==="y"?"bottom":"right",k=v+f[b],C=v-f[y];v=Uu(k,v,C)}const w=u.fn({...t,[h]:g,[m]:v});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[h]:a,[m]:c}}}}}},MI=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:c=0,mainAxis:u=!0,crossAxis:l=!0}=xn(e,t),d={x:n,y:r},f=Tt(o),m=qd(f);let h=d[m],g=d[f];const v=xn(c,t),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const k=m==="y"?"height":"width",C=i.reference[m]-i.floating[k]+w.mainAxis,x=i.reference[m]+i.reference[k]-w.mainAxis;h<C?h=C:h>x&&(h=x)}if(l){var b,y;const k=m==="y"?"width":"height",C=B2.has(Ot(o)),x=i.reference[f]-i.floating[k]+(C&&((b=a.offset)==null?void 0:b[f])||0)+(C?0:w.crossAxis),L=i.reference[f]+i.reference[k]+(C?0:((y=a.offset)==null?void 0:y[f])||0)-(C?w.crossAxis:0);g<x?g=x:g>L&&(g=L)}return{[m]:h,[f]:g}}}},PI=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:c}=t,{apply:u=()=>{},...l}=xn(e,t),d=await a.detectOverflow(t,l),f=Ot(o),m=Gn(o),h=Tt(o)==="y",{width:g,height:v}=i.floating;let w,b;f==="top"||f==="bottom"?(w=f,b=m===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(b=f,w=m==="end"?"top":"bottom");const y=v-d.top-d.bottom,k=g-d.left-d.right,C=Nr(v-d[w],y),x=Nr(g-d[b],k),L=!t.middlewareData.shift;let S=C,E=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=y),L&&!m){const P=St(d.left,0),D=St(d.right,0),T=St(d.top,0),j=St(d.bottom,0);h?E=g-2*(P!==0||D!==0?P+D:St(d.left,d.right)):S=v-2*(T!==0||j!==0?T+j:St(d.top,d.bottom))}await u({...t,availableWidth:E,availableHeight:S});const M=await a.getDimensions(c.floating);return g!==M.width||v!==M.height?{reset:{rects:!0}}:{}}}};function H2(e){const t=Rt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Xe(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=Qs(n)!==i||Qs(r)!==a;return c&&(n=i,r=a),{width:n,height:r,$:c}}function ef(e){return We(e)?e:e.contextElement}function Or(e){const t=ef(e);if(!Xe(t))return rn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=H2(t);let a=(i?Qs(n.width):n.width)/r,c=(i?Qs(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const TI=rn(0);function W2(e){const t=at(e);return!Ii()||!t.visualViewport?TI:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function AI(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==at(e)?!1:t}function fr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=ef(e);let a=rn(1);t&&(r?We(r)&&(a=Or(r)):a=Or(e));const c=AI(i,n,r)?W2(i):rn(0);let u=(o.left+c.x)/a.x,l=(o.top+c.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(i){const m=at(i),h=r&&We(r)?at(r):r;let g=m,v=Hu(g);for(;v&&r&&h!==g;){const w=Or(v),b=v.getBoundingClientRect(),y=Rt(v),k=b.left+(v.clientLeft+parseFloat(y.paddingLeft))*w.x,C=b.top+(v.clientTop+parseFloat(y.paddingTop))*w.y;u*=w.x,l*=w.y,d*=w.x,f*=w.y,u+=k,l+=C,g=at(v),v=Hu(g)}}return ti({width:d,height:f,x:u,y:l})}function Vi(e,t){const n=Ni(e).scrollLeft;return t?t.left+n:fr(un(e)).left+n}function z2(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Vi(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function II(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=un(r),c=t?Ai(t.floating):!1;if(r===a||c&&i)return n;let u={scrollLeft:0,scrollTop:0},l=rn(1);const d=rn(0),f=Xe(r);if((f||!f&&!i)&&((Kn(r)!=="body"||gr(a))&&(u=Ni(r)),Xe(r))){const h=fr(r);l=Or(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const m=a&&!f&&!i?z2(a,u):rn(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+d.x+m.x,y:n.y*l.y-u.scrollTop*l.y+d.y+m.y}}function NI(e){return Array.from(e.getClientRects())}function DI(e){const t=un(e),n=Ni(e),r=e.ownerDocument.body,o=St(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=St(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Vi(e);const c=-n.scrollTop;return Rt(r).direction==="rtl"&&(a+=St(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:c}}const Fb=25;function VI(e,t){const n=at(e),r=un(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,c=0,u=0;if(o){i=o.width,a=o.height;const d=Ii();(!d||d&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}const l=Vi(r);if(l<=0){const d=r.ownerDocument,f=d.body,m=getComputedStyle(f),h=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(r.clientWidth-f.clientWidth-h);g<=Fb&&(i-=g)}else l<=Fb&&(i+=l);return{width:i,height:a,x:c,y:u}}const FI=new Set(["absolute","fixed"]);function BI(e,t){const n=fr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Xe(e)?Or(e):rn(1),a=e.clientWidth*i.x,c=e.clientHeight*i.y,u=o*i.x,l=r*i.y;return{width:a,height:c,x:u,y:l}}function Bb(e,t,n){let r;if(t==="viewport")r=VI(e,n);else if(t==="document")r=DI(un(e));else if(We(t))r=BI(t,n);else{const o=W2(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return ti(r)}function _2(e,t){const n=cn(e);return n===t||!We(n)||nn(n)?!1:Rt(n).position==="fixed"||_2(n,t)}function HI(e,t){const n=t.get(e);if(n)return n;let r=Dn(e,[],!1).filter(c=>We(c)&&Kn(c)!=="body"),o=null;const i=Rt(e).position==="fixed";let a=i?cn(e):e;for(;We(a)&&!nn(a);){const c=Rt(a),u=Gd(a);!u&&c.position==="fixed"&&(o=null),(i?!u&&!o:!u&&c.position==="static"&&!!o&&FI.has(o.position)||gr(a)&&!u&&_2(e,a))?r=r.filter(d=>d!==a):o=c,a=cn(a)}return t.set(e,r),r}function WI(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Ai(t)?[]:HI(t,this._c):[].concat(n),r],c=a[0],u=a.reduce((l,d)=>{const f=Bb(t,d,o);return l.top=St(f.top,l.top),l.right=Nr(f.right,l.right),l.bottom=Nr(f.bottom,l.bottom),l.left=St(f.left,l.left),l},Bb(t,c,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function zI(e){const{width:t,height:n}=H2(e);return{width:t,height:n}}function _I(e,t,n){const r=Xe(t),o=un(t),i=n==="fixed",a=fr(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const u=rn(0);function l(){u.x=Vi(o)}if(r||!r&&!i)if((Kn(t)!=="body"||gr(o))&&(c=Ni(t)),r){const h=fr(t,!0,i,t);u.x=h.x+t.clientLeft,u.y=h.y+t.clientTop}else o&&l();i&&!r&&o&&l();const d=o&&!r&&!i?z2(o,c):rn(0),f=a.left+c.scrollLeft-u.x-d.x,m=a.top+c.scrollTop-u.y-d.y;return{x:f,y:m,width:a.width,height:a.height}}function Yl(e){return Rt(e).position==="static"}function Hb(e,t){if(!Xe(e)||Rt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return un(e)===n&&(n=n.ownerDocument.body),n}function U2(e,t){const n=at(e);if(Ai(e))return n;if(!Xe(e)){let o=cn(e);for(;o&&!nn(o);){if(We(o)&&!Yl(o))return o;o=cn(o)}return n}let r=Hb(e,t);for(;r&&YT(r)&&Yl(r);)r=Hb(r,t);return r&&nn(r)&&Yl(r)&&!Gd(r)?n:r||QT(e)||n}const UI=async function(e){const t=this.getOffsetParent||U2,n=this.getDimensions,r=await n(e.floating);return{reference:_I(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function KI(e){return Rt(e).direction==="rtl"}const GI={convertOffsetParentRelativeRectToViewportRelativeRect:II,getDocumentElement:un,getClippingRect:WI,getOffsetParent:U2,getElementRects:UI,getClientRects:NI,getDimensions:zI,getScale:Or,isElement:We,isRTL:KI};function K2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function YI(e,t){let n=null,r;const o=un(e);function i(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),i();const l=e.getBoundingClientRect(),{left:d,top:f,width:m,height:h}=l;if(c||t(),!m||!h)return;const g=xr(f),v=xr(o.clientWidth-(d+m)),w=xr(o.clientHeight-(f+h)),b=xr(d),k={rootMargin:-g+"px "+-v+"px "+-w+"px "+-b+"px",threshold:St(0,Nr(1,u))||1};let C=!0;function x(L){const S=L[0].intersectionRatio;if(S!==u){if(!C)return a();S?a(!1,S):r=setTimeout(()=>{a(!1,1e-7)},1e3)}S===1&&!K2(l,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(x,{...k,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,k)}n.observe(e)}return a(!0),i}function Wb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=ef(e),d=o||i?[...l?Dn(l):[],...Dn(t)]:[];d.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const f=l&&c?YI(l,n):null;let m=-1,h=null;a&&(h=new ResizeObserver(b=>{let[y]=b;y&&y.target===l&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var k;(k=h)==null||k.observe(t)})),n()}),l&&!u&&h.observe(l),h.observe(t));let g,v=u?fr(e):null;u&&w();function w(){const b=fr(e);v&&!K2(v,b)&&n(),v=b,g=requestAnimationFrame(w)}return n(),()=>{var b;d.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),f?.(),(b=h)==null||b.disconnect(),h=null,u&&cancelAnimationFrame(g)}}const XI=OI,qI=RI,ZI=SI,JI=PI,QI=$I,eN=MI,tN=(e,t,n)=>{const r=new Map,o={platform:GI,...n},i={...o.platform,_c:r};return LI(e,t,{...o,platform:i})};var nN=typeof document<"u",rN=function(){},Ts=nN?s.useLayoutEffect:rN;function ai(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ai(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ai(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function G2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function zb(e,t){const n=G2(e);return Math.round(t*n)/n}function Xl(e){const t=s.useRef(e);return Ts(()=>{t.current=e}),t}function oN(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:c=!0,whileElementsMounted:u,open:l}=e,[d,f]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=s.useState(r);ai(m,r)||h(r);const[g,v]=s.useState(null),[w,b]=s.useState(null),y=s.useCallback($=>{$!==L.current&&(L.current=$,v($))},[]),k=s.useCallback($=>{$!==S.current&&(S.current=$,b($))},[]),C=i||g,x=a||w,L=s.useRef(null),S=s.useRef(null),E=s.useRef(d),M=u!=null,P=Xl(u),D=Xl(o),T=Xl(l),j=s.useCallback(()=>{if(!L.current||!S.current)return;const $={placement:t,strategy:n,middleware:m};D.current&&($.platform=D.current),tN(L.current,S.current,$).then(z=>{const R={...z,isPositioned:T.current!==!1};H.current&&!ai(E.current,R)&&(E.current=R,ft.flushSync(()=>{f(R)}))})},[m,t,n,D,T]);Ts(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f($=>({...$,isPositioned:!1})))},[l]);const H=s.useRef(!1);Ts(()=>(H.current=!0,()=>{H.current=!1}),[]),Ts(()=>{if(C&&(L.current=C),x&&(S.current=x),C&&x){if(P.current)return P.current(C,x,j);j()}},[C,x,j,P,M]);const A=s.useMemo(()=>({reference:L,floating:S,setReference:y,setFloating:k}),[y,k]),I=s.useMemo(()=>({reference:C,floating:x}),[C,x]),B=s.useMemo(()=>{const $={position:n,left:0,top:0};if(!I.floating)return $;const z=zb(I.floating,d.x),R=zb(I.floating,d.y);return c?{...$,transform:"translate("+z+"px, "+R+"px)",...G2(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:R}},[n,c,I.floating,d.x,d.y]);return s.useMemo(()=>({...d,update:j,refs:A,elements:I,floatingStyles:B}),[d,j,A,I,B])}const sN=(e,t)=>({...XI(e),options:[e,t]}),iN=(e,t)=>({...qI(e),options:[e,t]}),aN=(e,t)=>({...eN(e),options:[e,t]}),cN=(e,t)=>({...ZI(e),options:[e,t]}),lN=(e,t)=>({...JI(e),options:[e,t]}),uN=(e,t)=>({...QI(e),options:[e,t]}),dN={intentional:"onClick",sloppy:"onPointerDown"};function fN(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function pN(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("referenceElement"),a=n.useState("domReferenceElement"),{onOpenChange:c,dataRef:u}=n.context,{enabled:l=!0,escapeKey:d=!0,outsidePress:f=!0,outsidePressEvent:m="sloppy",referencePress:h=!1,referencePressEvent:g="sloppy",ancestorScroll:v=!1,bubbles:w,externalTree:b}=t,y=_r(b),k=ke(typeof f=="function"?f:()=>!1),C=typeof f=="function"?k:f,x=s.useRef(!1),{escapeKey:L,outsidePress:S}=fN(w),E=s.useRef(null),M=Yt(),P=Yt(),D=ke(()=>{P.clear(),u.current.insideReactTree=!1}),T=s.useRef(!1),j=s.useRef(""),H=ke(O=>{j.current=O.pointerType}),A=ke(()=>{const O=j.current,X=O==="pen"||!O?"mouse":O,V=typeof m=="function"?m():m;return typeof V=="string"?V:V[X]}),I=ke(O=>{if(!r||!l||!d||O.key!=="Escape"||T.current)return;const X=u.current.floatingContext?.nodeId,V=y?$r(y.nodesRef.current,X):[];if(!L&&V.length>0){let G=!0;if(V.forEach(Z=>{Z.context?.open&&!Z.context.dataRef.current.__escapeKeyBubbles&&(G=!1)}),!G)return}const ge=RA(O)?O.nativeEvent:O,J=Je(s2,ge);n.setOpen(!1,J),!L&&!J.isPropagationAllowed&&O.stopPropagation()}),B=ke(O=>{const X=A();return X==="intentional"&&O.type!=="click"||X==="sloppy"&&O.type==="click"}),$=ke(()=>{u.current.insideReactTree=!0,P.start(0,D)}),z=ke((O,X=!1)=>{if(B(O)){D();return}if(u.current.insideReactTree){D();return}if(A()==="intentional"&&X||typeof C=="function"&&!C(O))return;const V=xt(O),ge=`[${Io("inert")}]`,J=ot(n.select("floatingElement")).querySelectorAll(ge),G=n.context.triggerElements;if(V&&(G.hasElement(V)||G.hasMatchingElement(_=>He(_,V))))return;let Z=We(V)?V:null;for(;Z&&!nn(Z);){const _=cn(Z);if(nn(_)||!We(_))break;Z=_}if(J.length&&We(V)&&!jA(V)&&!He(V,n.select("floatingElement"))&&Array.from(J).every(_=>!He(Z,_)))return;if(Xe(V)&&!("touches"in O)){const _=nn(V),ce=Rt(V),Y=/auto|scroll/,K=_||Y.test(ce.overflowX),oe=_||Y.test(ce.overflowY),ye=K&&V.clientWidth>0&&V.scrollWidth>V.clientWidth,Ee=oe&&V.clientHeight>0&&V.scrollHeight>V.clientHeight,xe=ce.direction==="rtl",Ae=Ee&&(xe?O.offsetX<=V.offsetWidth-V.clientWidth:O.offsetX>V.clientWidth),Ie=ye&&O.offsetY>V.clientHeight;if(Ae||Ie)return}const be=u.current.floatingContext?.nodeId,ve=y&&$r(y.nodesRef.current,be).some(_=>Wt(O,_.context?.elements.floating));if(Wt(O,n.select("floatingElement"))||Wt(O,n.select("domReferenceElement"))||ve)return;const W=y?$r(y.nodesRef.current,be):[];if(W.length>0){let _=!0;if(W.forEach(ce=>{ce.context?.open&&!ce.context.dataRef.current.__outsidePressBubbles&&(_=!1)}),!_)return}n.setOpen(!1,Je(Ud,O)),D()}),R=ke(O=>{A()!=="sloppy"||O.pointerType==="touch"||!n.select("open")||!l||Wt(O,n.select("floatingElement"))||Wt(O,n.select("domReferenceElement"))||z(O)}),q=ke(O=>{if(A()!=="sloppy"||!n.select("open")||!l||Wt(O,n.select("floatingElement"))||Wt(O,n.select("domReferenceElement")))return;const X=O.touches[0];X&&(E.current={startTime:Date.now(),startX:X.clientX,startY:X.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},M.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}),ee=ke(O=>{const X=xt(O);function V(){q(O),X?.removeEventListener(O.type,V)}X?.addEventListener(O.type,V)}),te=ke(O=>{const X=x.current;if(x.current=!1,M.clear(),O.type==="mousedown"&&E.current&&!E.current.dismissOnMouseDown)return;const V=xt(O);function ge(){O.type==="pointerdown"?R(O):z(O,X),V?.removeEventListener(O.type,ge)}V?.addEventListener(O.type,ge)}),ae=ke(O=>{if(A()!=="sloppy"||!E.current||Wt(O,n.select("floatingElement"))||Wt(O,n.select("domReferenceElement")))return;const X=O.touches[0];if(!X)return;const V=Math.abs(X.clientX-E.current.startX),ge=Math.abs(X.clientY-E.current.startY),J=Math.sqrt(V*V+ge*ge);J>5&&(E.current.dismissOnTouchEnd=!0),J>10&&(z(O),M.clear(),E.current=null)}),le=ke(O=>{const X=xt(O);function V(){ae(O),X?.removeEventListener(O.type,V)}X?.addEventListener(O.type,V)}),ne=ke(O=>{A()!=="sloppy"||!E.current||Wt(O,n.select("floatingElement"))||Wt(O,n.select("domReferenceElement"))||(E.current.dismissOnTouchEnd&&z(O),M.clear(),E.current=null)}),re=ke(O=>{const X=xt(O);function V(){ne(O),X?.removeEventListener(O.type,V)}X?.addEventListener(O.type,V)});s.useEffect(()=>{if(!r||!l)return;u.current.__escapeKeyBubbles=L,u.current.__outsidePressBubbles=S;const O=new Zs;function X(Z){n.setOpen(!1,Je(BT,Z))}function V(){O.clear(),T.current=!0}function ge(){O.start(Ii()?5:0,()=>{T.current=!1})}const J=ot(o);J.addEventListener("pointerdown",H,!0),d&&(J.addEventListener("keydown",I),J.addEventListener("compositionstart",V),J.addEventListener("compositionend",ge)),C&&(J.addEventListener("click",te,!0),J.addEventListener("pointerdown",te,!0),J.addEventListener("touchstart",ee,!0),J.addEventListener("touchmove",le,!0),J.addEventListener("touchend",re,!0),J.addEventListener("mousedown",te,!0));let G=[];return v&&(We(a)&&(G=Dn(a)),We(o)&&(G=G.concat(Dn(o))),!We(i)&&i&&i.contextElement&&(G=G.concat(Dn(i.contextElement)))),G=G.filter(Z=>Z!==J.defaultView?.visualViewport),G.forEach(Z=>{Z.addEventListener("scroll",X,{passive:!0})}),()=>{J.removeEventListener("pointerdown",H,!0),d&&(J.removeEventListener("keydown",I),J.removeEventListener("compositionstart",V),J.removeEventListener("compositionend",ge)),C&&(J.removeEventListener("click",te,!0),J.removeEventListener("pointerdown",te,!0),J.removeEventListener("touchstart",ee,!0),J.removeEventListener("touchmove",le,!0),J.removeEventListener("touchend",re,!0),J.removeEventListener("mousedown",te,!0)),G.forEach(Z=>{Z.removeEventListener("scroll",X)}),O.clear()}},[u,o,i,a,d,C,r,c,v,l,L,S,I,z,te,R,ee,le,re,H,n]),s.useEffect(D,[C,D]);const se=s.useMemo(()=>({onKeyDown:I,...h&&{[dN[g]]:O=>{n.setOpen(!1,Je(qs,O.nativeEvent))},...g!=="intentional"&&{onClick(O){n.setOpen(!1,Je(qs,O.nativeEvent))}}}}),[I,n,h,g]),ie=ke(O=>{const X=xt(O.nativeEvent);!He(n.select("floatingElement"),X)||O.button!==0||(x.current=!0)}),ue=s.useMemo(()=>({onKeyDown:I,onPointerDown:ie,onMouseDown:ie,onMouseUp:ie,onClickCapture:$,onMouseDownCapture:$,onPointerDownCapture:$,onMouseUpCapture:$,onTouchEndCapture:$,onTouchMoveCapture:$}),[I,ie,$]);return s.useMemo(()=>l?{reference:se,floating:ue,trigger:se}:{},[l,se,ue])}var ci=Symbol("NOT_FOUND");function mN(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function hN(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function gN(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var _b=e=>Array.isArray(e)?e:[e];function bN(e){const t=Array.isArray(e[0])?e[0]:e;return gN(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function vN(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}function yN(e){let t;return{get(n){return t&&e(t.key,n)?t.value:ci},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function wN(e,t){let n=[];function r(c){const u=n.findIndex(l=>t(c,l.key));if(u>-1){const l=n[u];return u>0&&(n.splice(u,1),n.unshift(l)),l.value}return ci}function o(c,u){r(c)===ci&&(n.unshift({key:c,value:u}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var xN=(e,t)=>e===t;function CN(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function kN(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=xN,maxSize:o=1,resultEqualityCheck:i}=n,a=CN(r);let c=0;const u=o<=1?yN(a):wN(o,a);function l(){let d=u.get(arguments);if(d===ci){if(d=e.apply(null,arguments),c++,i){const m=u.getEntries().find(h=>i(h.value,d));m&&(d=m.value,c!==0&&c--)}u.put(arguments,d)}return d}return l.clearCache=()=>{u.clear(),l.resetResultsCount()},l.resultsCount=()=>c,l.resetResultsCount=()=>{c=0},l}var EN=class{constructor(t){this.value=t}deref(){return this.value}},LN=typeof WeakRef<"u"?WeakRef:EN,SN=0,Ub=1;function ds(){return{s:SN,v:void 0,o:null,p:null}}function Y2(e,t={}){let n=ds();const{resultEqualityCheck:r}=t;let o,i=0;function a(){let c=n;const{length:u}=arguments;for(let f=0,m=u;f<m;f++){const h=arguments[f];if(typeof h=="function"||typeof h=="object"&&h!==null){let g=c.o;g===null&&(c.o=g=new WeakMap);const v=g.get(h);v===void 0?(c=ds(),g.set(h,c)):c=v}else{let g=c.p;g===null&&(c.p=g=new Map);const v=g.get(h);v===void 0?(c=ds(),g.set(h,c)):c=v}}const l=c;let d;if(c.s===Ub)d=c.v;else if(d=e.apply(null,arguments),i++,r){const f=o?.deref?.()??o;f!=null&&r(f,d)&&(d=f,i!==0&&i--),o=typeof d=="object"&&d!==null||typeof d=="function"?new LN(d):d}return l.s=Ub,l.v=d,d}return a.clearCache=()=>{n=ds(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function X2(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,a=0,c,u={},l=o.pop();typeof l=="object"&&(u=l,l=o.pop()),mN(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);const d={...n,...u},{memoize:f,memoizeOptions:m=[],argsMemoize:h=Y2,argsMemoizeOptions:g=[]}=d,v=_b(m),w=_b(g),b=bN(o),y=f(function(){return i++,l.apply(null,arguments)},...v),k=h(function(){a++;const x=vN(b,arguments);return c=y.apply(null,x),c},...w);return Object.assign(k,{resultFunc:l,memoizedResultFunc:y,dependencies:b,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>c,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var $N=X2(Y2),jN=Object.assign((e,t=$N)=>{hN(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((a,c,u)=>(a[n[u]]=c,a),{}))},{withTypes:()=>jN});X2({memoize:kN,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const Se=(e,t,n,r,o,i,...a)=>{if(a.length>0)throw new Error(hr(1));let c;if(e)c=e;else throw new Error("Missing arguments");return c};var ql={exports:{}},Zl={};var Kb;function ON(){if(Kb)return Zl;Kb=1;var e=Ei();function t(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function c(f,m){var h=m(),g=r({inst:{value:h,getSnapshot:m}}),v=g[0].inst,w=g[1];return i(function(){v.value=h,v.getSnapshot=m,u(v)&&w({inst:v})},[f,h,m]),o(function(){return u(v)&&w({inst:v}),f(function(){u(v)&&w({inst:v})})},[f]),a(h),h}function u(f){var m=f.getSnapshot;f=f.value;try{var h=m();return!n(f,h)}catch{return!0}}function l(f,m){return m()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:c;return Zl.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Zl}var Gb;function q2(){return Gb||(Gb=1,ql.exports=ON()),ql.exports}var RN=q2(),Jl={exports:{}},Ql={};var Yb;function MN(){if(Yb)return Ql;Yb=1;var e=Ei(),t=q2();function n(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,c=e.useMemo,u=e.useDebugValue;return Ql.useSyncExternalStoreWithSelector=function(l,d,f,m,h){var g=i(null);if(g.current===null){var v={hasValue:!1,value:null};g.current=v}else v=g.current;g=c(function(){function b(L){if(!y){if(y=!0,k=L,L=m(L),h!==void 0&&v.hasValue){var S=v.value;if(h(S,L))return C=S}return C=L}if(S=C,r(k,L))return S;var E=m(L);return h!==void 0&&h(S,E)?(k=L,S):(k=L,C=E)}var y=!1,k,C,x=f===void 0?null:f;return[function(){return b(d())},x===null?void 0:function(){return b(x())}]},[d,f,m,h]);var w=o(l,g[0],g[1]);return a(function(){v.hasValue=!0,v.value=w},[w]),u(w),w},Ql}var Xb;function PN(){return Xb||(Xb=1,Jl.exports=MN()),Jl.exports}var TN=PN();const AN=zd(19),IN=AN?DN:VN;function NN(e,t,n,r,o){return IN(e,t,n,r,o)}function DN(e,t,n,r,o){const i=s.useCallback(()=>t(e.getSnapshot(),n,r,o),[e,t,n,r,o]);return RN.useSyncExternalStore(e.subscribe,i,i)}function VN(e,t,n,r,o){return TN.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,n,r,o))}let FN=class As{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){As.prototype.setState.call(this,{...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||As.prototype.setState.call(this,{...this.state,[t]:n})}notifyAll(){const t={...this.state};As.prototype.setState.call(this,t)}},Z2=class extends FN{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}controlledValues=new Map;useSyncedValue(t,n){s.useDebugValue(t),we(()=>{this.state[t]!==n&&this.set(t,n)},[t,n])}useSyncedValueWithCleanup(t,n){we(()=>(this.state[t]!==n&&this.set(t,n),()=>{this.set(t,void 0)}),[t,n])}useSyncedValues(t){const n=Object.values(t);we(()=>{this.update(t)},n)}useControlledProp(t,n,r){s.useDebugValue(t);const o=n!==void 0;this.controlledValues.has(t)||(this.controlledValues.set(t,o),!o&&!Object.is(this.state[t],r)&&super.setState({...this.state,[t]:r})),we(()=>{o&&!Object.is(this.state[t],n)&&super.setState({...this.state,[t]:n})},[t,n,r,o])}set(t,n){this.controlledValues.get(t)!==!0&&super.set(t,n)}update(t){const n={...t};for(const r in n)if(Object.hasOwn(n,r)&&this.controlledValues.get(r)===!0){delete n[r];continue}super.update(n)}setState(t){const n={...t};for(const r in n)if(Object.hasOwn(n,r)&&this.controlledValues.get(r)===!0){delete n[r];continue}super.setState({...this.state,...n})}select=(t,n,r,o)=>{const i=this.selectors[t];return i(this.state,n,r,o)};useState=(t,n,r,o)=>{s.useDebugValue(t);const i=this.selectors[t];return NN(this,i,n,r,o)};useContextCallback(t,n){s.useDebugValue(t);const r=ke(n??t2);this.context[t]=r}useStateSetter(t){const n=s.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t=="function"?r=t:r=this.selectors[t];let o=r(this.state);return n(o,o,this),this.subscribe(i=>{const a=r(i);if(!Object.is(o,a)){const c=o;o=a,n(a,c,this)}})}};const BN={open:Se(e=>e.open),domReferenceElement:Se(e=>e.domReferenceElement),referenceElement:Se(e=>e.positionReference??e.referenceElement),floatingElement:Se(e=>e.floatingElement),floatingId:Se(e=>e.floatingId)};let tf=class extends Z2{constructor(t){const{nested:n,noEmit:r,onOpenChange:o,triggerElements:i,...a}=t;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:o,dataRef:{current:{}},events:P2(),nested:n,noEmit:r,triggerElements:i},BN)}setOpen=(t,n)=>{if((!t||!this.state.open||PA(n.event))&&(this.context.dataRef.current.openEvent=t?n.event:void 0),!this.context.noEmit){const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)}this.context.onOpenChange?.(t,n)}};function HN(e){const t=e.useState("open");we(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const n=e.context.triggerElements.entries().next();if(!n.done){const[r,o]=n.value;e.update({activeTriggerId:r,activeTriggerElement:o})}}},[t,e])}function WN(e,t,n){const{mounted:r,setMounted:o,transitionStatus:i}=mA(e);t.useSyncedValues({mounted:r,transitionStatus:i});const a=ke(()=>{o(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),c=t.useState("preventUnmountingOnClose");return d2({enabled:!c,open:e,ref:t.context.popupRef,onComplete(){e||a()}}),{forceUnmount:a,transitionStatus:i}}let nf=class{constructor(){this.elements=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elements.delete(r),this.elements.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elements.delete(n),this.idMap.delete(t))}hasElement(t){return this.elements.has(t)}hasMatchingElement(t){for(const n of this.elements)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}get size(){return this.idMap.size}};function zN(){return new tf({open:!1,floatingElement:null,referenceElement:null,triggerElements:new nf,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function _N(){return{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:zN(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:Ct,inactiveTriggerProps:Ct,popupProps:Ct}}const UN={open:Se(e=>e.open),mounted:Se(e=>e.mounted),transitionStatus:Se(e=>e.transitionStatus),floatingRootContext:Se(e=>e.floatingRootContext),preventUnmountingOnClose:Se(e=>e.preventUnmountingOnClose),payload:Se(e=>e.payload),activeTriggerId:Se(e=>e.activeTriggerId),activeTriggerElement:Se(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:Se((e,t)=>t!==void 0&&e.activeTriggerId===t),isOpenedByTrigger:Se((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.open),isMountedByTrigger:Se((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.mounted),triggerProps:Se((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:Se(e=>e.popupProps),popupElement:Se(e=>e.popupElement),positionerElement:Se(e=>e.positionerElement)};function KN(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,o=_n(),i=Yn()!=null,a=Vt(()=>new tf({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:r.triggers??new nf,floatingId:o,nested:i,noEmit:e.noEmit||!1})).current;return we(()=>{const c={open:t,floatingId:o};r.reference!==void 0&&(c.referenceElement=r.reference,c.domReferenceElement=We(r.reference)?r.reference:null),r.floating!==void 0&&(c.floatingElement=r.floating),a.update(c)},[t,o,r.reference,r.floating,a]),a.context.onOpenChange=n,a.context.nested=i,a.context.noEmit=e.noEmit||!1,a}function GN(e={}){const{nodeId:t,externalTree:n}=e,r=KN(e),o=e.rootContext||r,i={reference:o.useState("referenceElement"),floating:o.useState("floatingElement"),domReference:o.useState("domReferenceElement")},[a,c]=s.useState(null),u=s.useRef(null),l=_r(n);we(()=>{i.domReference&&(u.current=i.domReference)},[i.domReference]);const d=oN({...e,elements:{...i,...a&&{reference:a}}}),f=s.useCallback(S=>{const E=We(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),getClientRects:()=>S.getClientRects(),contextElement:S}:S;c(E),d.refs.setReference(E)},[d.refs]),[m,h]=s.useState(null),[g,v]=s.useState(null);o.useSyncedValue("referenceElement",m),o.useSyncedValue("domReferenceElement",We(m)?m:null),o.useSyncedValue("floatingElement",g);const w=s.useCallback(S=>{(We(S)||S===null)&&(u.current=S,h(S)),(We(d.refs.reference.current)||d.refs.reference.current===null||S!==null&&!We(S))&&d.refs.setReference(S)},[d.refs,h]),b=s.useCallback(S=>{v(S),d.refs.setFloating(S)},[d.refs]),y=s.useMemo(()=>({...d.refs,setReference:w,setFloating:b,setPositionReference:f,domReference:u}),[d.refs,w,b,f]),k=s.useMemo(()=>({...d.elements,domReference:i.domReference}),[d.elements,i.domReference]),C=o.useState("open"),x=o.useState("floatingId"),L=s.useMemo(()=>({...d,dataRef:o.context.dataRef,open:C,onOpenChange:o.setOpen,events:o.context.events,floatingId:x,refs:y,elements:k,nodeId:t,rootStore:o}),[d,y,k,t,o,C,x]);return we(()=>{o.context.dataRef.current.floatingContext=L;const S=l?.nodesRef.current.find(E=>E.id===t);S&&(S.context=L)}),s.useMemo(()=>({...d,context:L,refs:y,elements:k,rootStore:o}),[d,y,k,L,o])}function YN(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:o}=e,i=_n(),a=Yn()!=null,c=t.useState("open"),u=t.useState("activeTriggerElement"),l=t.useState(r?"popupElement":"positionerElement"),d=t.context.triggerElements,f=Vt(()=>new tf({open:c,referenceElement:u,floatingElement:l,triggerElements:d,onOpenChange:o,floatingId:i,nested:a,noEmit:n})).current;return we(()=>{const m={open:c,floatingId:i,referenceElement:u,floatingElement:l};We(u)&&(m.domReferenceElement=u),f.update(m)},[c,i,u,l,f]),f.context.onOpenChange=o,f.context.nested=a,f.context.noEmit=n,f}const qb=Io("safe-polygon"),XN=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${v2}`;function qN(e){return e?!!e.closest(XN):!1}function ZN(e){const t=s.useRef(void 0),n=s.useRef(!1),r=s.useRef(void 0),o=s.useRef(!0),i=s.useRef(!1),a=s.useRef(()=>{}),c=s.useRef(!1),u=Yt(),l=Yt(),d=s.useRef(void 0);return s.useMemo(()=>{const f=e.context.dataRef.current;return f.hoverInteractionState||(f.hoverInteractionState={pointerTypeRef:t,interactedInsideRef:n,handlerRef:r,blockMouseMoveRef:o,performedPointerEventsMutationRef:i,unbindMouseMoveRef:a,restTimeoutPendingRef:c,openChangeTimeout:u,restTimeout:l,handleCloseOptionsRef:d}),f.hoverInteractionState},[e,t,n,r,o,i,a,c,u,l,d])}const JN=new Set(["click","mousedown"]);function QN(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("domReferenceElement"),{dataRef:a}=n.context,{enabled:c=!0,closeDelay:u=0,externalTree:l}=t,{pointerTypeRef:d,interactedInsideRef:f,handlerRef:m,performedPointerEventsMutationRef:h,unbindMouseMoveRef:g,restTimeoutPendingRef:v,openChangeTimeout:w,handleCloseOptionsRef:b}=ZN(n),y=_r(l),k=Yn(),C=ke(()=>f.current?!0:a.current.openEvent?JN.has(a.current.openEvent.type):!1),x=ke(()=>{const P=a.current.openEvent?.type;return P?.includes("mouse")&&P!=="mousedown"}),L=s.useCallback((P,D=!0)=>{const T=eD(u,d.current);T&&!m.current?w.start(T,()=>n.setOpen(!1,Je(cr,P))):D&&(w.clear(),n.setOpen(!1,Je(cr,P)))},[u,m,n,d,w]),S=ke(()=>{g.current(),m.current=void 0}),E=ke(()=>{if(h.current){const P=ot(o).body;P.style.pointerEvents="",P.removeAttribute(qb),h.current=!1}}),M=ke(P=>{const D=xt(P);if(!qN(D)){f.current=!1;return}f.current=!0});we(()=>{r||(d.current=void 0,v.current=!1,f.current=!1,S(),E())},[r,d,v,f,S,E]),s.useEffect(()=>()=>{S()},[S]),s.useEffect(()=>E,[E]),we(()=>{if(c&&r&&b.current?.blockPointerEvents&&x()&&We(i)&&o){h.current=!0;const P=ot(o).body;P.setAttribute(qb,"");const D=i,T=o,j=y?.nodesRef.current.find(H=>H.id===k)?.context?.elements.floating;return j&&(j.style.pointerEvents=""),P.style.pointerEvents="none",D.style.pointerEvents="auto",T.style.pointerEvents="auto",()=>{P.style.pointerEvents="",D.style.pointerEvents="",T.style.pointerEvents=""}}},[c,r,i,o,b,x,y,k,h]),s.useEffect(()=>{if(!c)return;function P(H){if(C()||!a.current.floatingContext)return;const A=n.context.triggerElements;H.relatedTarget&&A.hasElement(H.relatedTarget)||(E(),S(),C()||L(H))}function D(H){w.clear(),E(),m.current?.(H),S()}function T(H){C()||L(H,!1)}const j=o;return j&&(j.addEventListener("mouseleave",P),j.addEventListener("mouseenter",D),j.addEventListener("mouseleave",T),j.addEventListener("pointerdown",M,!0)),()=>{j&&(j.removeEventListener("mouseleave",P),j.removeEventListener("mouseenter",D),j.removeEventListener("mouseleave",T),j.removeEventListener("pointerdown",M,!0))}})}function eD(e,t){return t&&!MA(t)?0:typeof e=="function"?e():e}function tD(e=[]){const t=e.map(l=>l?.reference),n=e.map(l=>l?.floating),r=e.map(l=>l?.item),o=e.map(l=>l?.trigger),i=s.useCallback(l=>fs(l,e,"reference"),t),a=s.useCallback(l=>fs(l,e,"floating"),n),c=s.useCallback(l=>fs(l,e,"item"),r),u=s.useCallback(l=>fs(l,e,"trigger"),o);return s.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:c,getTriggerProps:u}),[i,a,c,u])}function fs(e,t,n){const r=new Map,o=n==="item",i={};n==="floating"&&(i.tabIndex=-1,i[zu]="");for(const a in e)o&&e&&(a===g2||a===b2)||(i[a]=e[a]);for(let a=0;a<t.length;a+=1){let c;const u=t[a]?.[n];typeof u=="function"?c=e?u(e):null:c=u,c&&Zb(i,c,o,r)}return Zb(i,e,o,r),i}function Zb(e,t,n,r){for(const o in t){const i=t[o];n&&(o===g2||o===b2)||(o.startsWith("on")?(r.has(o)||r.set(o,[]),typeof i=="function"&&(r.get(o)?.push(i),e[o]=(...a)=>r.get(o)?.map(c=>c(...a)).find(c=>c!==void 0))):e[o]=i)}}const nD="Escape";function Fi(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function ps(e,t){return Fi(t,e===Xd||e===Wo,e===Vn||e===Fn)}function eu(e,t,n){return Fi(t,e===Wo,n?e===Vn:e===Fn)||e==="Enter"||e===" "||e===""}function rD(e,t,n){return Fi(t,n?e===Vn:e===Fn,e===Wo)}function oD(e,t,n,r){const o=n?e===Fn:e===Vn,i=e===Xd;return t==="both"||t==="horizontal"&&r&&r>1?e===nD:Fi(t,o,i)}function sD(e,t){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("domReferenceElement"),a=n.context.dataRef,{listRef:c,activeIndex:u,onNavigate:l=()=>{},enabled:d=!0,selectedIndex:f=null,allowEscape:m=!1,loopFocus:h=!1,nested:g=!1,rtl:v=!1,virtual:w=!1,focusItemOnOpen:b="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:k=!0,disabledIndices:C=void 0,orientation:x="vertical",parentOrientation:L,cols:S=1,scrollItemIntoView:E=!0,itemSizes:M,dense:P=!1,id:D,resetOnPointerLeave:T=!0,externalTree:j}=t,H=Js(o),A=wt(H),I=Yn(),B=_r(j);we(()=>{a.current.orientation=x},[a,x]);const $=_u(i),z=s.useRef(b),R=s.useRef(f??-1),q=s.useRef(null),ee=s.useRef(!0),te=ke(Y=>{l(R.current===-1?null:R.current,Y)}),ae=s.useRef(te),le=s.useRef(!!o),ne=s.useRef(r),re=s.useRef(!1),se=s.useRef(!1),ie=wt(C),ue=wt(r),O=wt(E),X=wt(f),V=wt(T),ge=ke(()=>{function Y(Ee){w?B?.events.emit("virtualfocus",Ee):Ps(Ee,{sync:re.current,preventScroll:!0})}const K=c.current[R.current],oe=se.current;K&&Y(K),(re.current?Ee=>Ee():requestAnimationFrame)(()=>{const Ee=c.current[R.current]||K;if(!Ee)return;K||Y(Ee);const xe=O.current;xe&&G&&(oe||!ee.current)&&Ee.scrollIntoView?.(typeof xe=="boolean"?{block:"nearest",inline:"nearest"}:xe)})});we(()=>{d&&(r&&o?(R.current=f??-1,z.current&&f!=null&&(se.current=!0,te())):le.current&&(R.current=-1,ae.current()))},[d,r,o,f,te]),we(()=>{if(d){if(!r){re.current=!1;return}if(o)if(u==null){if(re.current=!1,X.current!=null)return;if(le.current&&(R.current=-1,ge()),(!ne.current||!le.current)&&z.current&&(q.current!=null||z.current===!0&&q.current==null)){let Y=0;const K=()=>{c.current[0]==null?(Y<2&&(Y?requestAnimationFrame:queueMicrotask)(K),Y+=1):(R.current=q.current==null||eu(q.current,x,v)||g?Ul(c):Ob(c),q.current=null,te())};K()}}else ko(c,u)||(R.current=u,ge(),se.current=!1)}},[d,r,o,u,X,g,c,x,v,te,ge,ie]),we(()=>{if(!d||o||!B||w||!le.current)return;const Y=B.nodesRef.current,K=Y.find(Ee=>Ee.id===I)?.context?.elements.floating,oe=Tn(ot(o)),ye=Y.some(Ee=>Ee.context&&He(Ee.context.elements.floating,oe));K&&!ye&&ee.current&&K.focus({preventScroll:!0})},[d,o,B,I,w]),we(()=>{ae.current=te,ne.current=r,le.current=!!o}),we(()=>{r||(q.current=null,z.current=b)},[r,b]);const J=u!=null,G=s.useMemo(()=>{function Y(oe){if(!ue.current)return;const ye=c.current.indexOf(oe.currentTarget);ye!==-1&&R.current!==ye&&(R.current=ye,te(oe))}return{onFocus(oe){re.current=!0,Y(oe)},onClick:({currentTarget:oe})=>oe.focus({preventScroll:!0}),onMouseMove(oe){re.current=!0,se.current=!1,y&&Y(oe)},onPointerLeave(oe){if(!ue.current||!ee.current||oe.pointerType==="touch")return;re.current=!0;const ye=oe.relatedTarget;!y||c.current.includes(ye)||V.current&&(R.current=-1,te(oe),w||A.current?.focus({preventScroll:!0}))}}},[ue,A,y,c,te,V,w]),Z=s.useCallback(()=>L??B?.nodesRef.current.find(Y=>Y.id===I)?.context?.dataRef?.current.orientation,[I,B,L]),be=ke(Y=>{if(ee.current=!1,re.current=!0,Y.which===229||!ue.current&&Y.currentTarget===A.current)return;if(g&&oD(Y.key,x,v,S)){ps(Y.key,Z())||st(Y),n.setOpen(!1,Je(Ms,Y.nativeEvent)),Xe(i)&&(w?B?.events.emit("virtualfocus",i):i.focus());return}const K=R.current,oe=Ul(c,C),ye=Ob(c,C);if($||(Y.key==="Home"&&(st(Y),R.current=oe,te(Y)),Y.key==="End"&&(st(Y),R.current=ye,te(Y))),S>1){const Ee=M||Array.from({length:c.current.length},()=>({width:1,height:1})),xe=UA(Ee,S,P),Ae=xe.findIndex(tt=>tt!=null&&!Eo(c,tt,C)),Ie=xe.reduce((tt,nt,Ce)=>nt!=null&&!Eo(c,nt,C)?Ce:tt,-1),Ue=xe[_A({current:xe.map(tt=>tt!=null?c.current[tt]:null)},{event:Y,orientation:x,loopFocus:h,rtl:v,cols:S,disabledIndices:GA([...(typeof C!="function"?C:null)||c.current.map((tt,nt)=>Eo(c,nt,C)?nt:void 0),void 0],xe),minIndex:Ae,maxIndex:Ie,prevIndex:KA(R.current>ye?oe:R.current,Ee,xe,S,Y.key===Wo?"bl":Y.key===(v?Vn:Fn)?"tr":"tl"),stopEvent:!0})];if(Ue!=null&&(R.current=Ue,te(Y)),x==="both")return}if(ps(Y.key,x)){if(st(Y),r&&!w&&Tn(Y.currentTarget.ownerDocument)===Y.currentTarget){R.current=eu(Y.key,x,v)?oe:ye,te(Y);return}eu(Y.key,x,v)?h?K>=ye?m&&K!==c.current.length?R.current=-1:(re.current=!1,R.current=oe):R.current=lt(c,{startingIndex:K,disabledIndices:C}):R.current=Math.min(ye,lt(c,{startingIndex:K,disabledIndices:C})):h?K<=oe?m&&K!==-1?R.current=c.current.length:(re.current=!1,R.current=ye):R.current=lt(c,{startingIndex:K,decrement:!0,disabledIndices:C}):R.current=Math.max(oe,lt(c,{startingIndex:K,decrement:!0,disabledIndices:C})),ko(c,R.current)&&(R.current=-1),te(Y)}}),ve=s.useMemo(()=>w&&r&&J&&{"aria-activedescendant":`${D}-${u}`},[w,r,J,D,u]),W=s.useMemo(()=>({"aria-orientation":x==="both"?void 0:x,...$?{}:ve,onKeyDown(Y){if(Y.key==="Tab"&&Y.shiftKey&&r&&!w){const K=xt(Y.nativeEvent);if(K&&!He(A.current,K))return;st(Y),n.setOpen(!1,Je(Pi,Y.nativeEvent)),Xe(i)&&i.focus();return}be(Y)},onPointerMove(){ee.current=!0}}),[ve,be,A,x,$,n,r,w,i]),_=s.useMemo(()=>{function Y(oe){b==="auto"&&y2(oe.nativeEvent)&&(z.current=!w)}function K(oe){z.current=b,b==="auto"&&w2(oe.nativeEvent)&&(z.current=!0)}return{onKeyDown(oe){const ye=n.select("open");ee.current=!1;const Ee=oe.key.startsWith("Arrow"),xe=rD(oe.key,Z(),v),Ae=ps(oe.key,x),Ie=(g?xe:Ae)||oe.key==="Enter"||oe.key.trim()==="";if(w&&ye)return be(oe);if(!(!ye&&!k&&Ee)){if(Ie){const Ue=ps(oe.key,Z());q.current=g&&Ue?null:oe.key}if(g){xe&&(st(oe),ye?(R.current=Ul(c,ie.current),te(oe)):n.setOpen(!0,Je(Ms,oe.nativeEvent,oe.currentTarget)));return}Ae&&(X.current!=null&&(R.current=X.current),st(oe),!ye&&k?n.setOpen(!0,Je(Ms,oe.nativeEvent,oe.currentTarget)):be(oe),ye&&te(oe))}},onFocus(oe){n.select("open")&&!w&&(R.current=-1,te(oe))},onPointerDown:K,onPointerEnter:K,onMouseDown:Y,onClick:Y}},[be,ie,b,c,g,te,n,k,x,Z,v,X,w]),ce=s.useMemo(()=>({...ve,..._}),[ve,_]);return s.useMemo(()=>d?{reference:ce,floating:W,item:G,trigger:_}:{},[d,ce,W,_,G])}const iD=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function aD(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingId"),i=n.useState("domReferenceElement"),a=n.useState("floatingElement"),{enabled:c=!0,role:u="dialog"}=t,l=_n(),d=i?.id||l,f=s.useMemo(()=>Js(a)?.id||o,[a,o]),m=iD.get(u)??u,g=Yn()!=null,v=s.useMemo(()=>m==="tooltip"||u==="label"?Ct:{"aria-haspopup":m==="alertdialog"?"dialog":m,"aria-expanded":"false",...m==="listbox"&&{role:"combobox"},...m==="menu"&&g&&{role:"menuitem"},...u==="select"&&{"aria-autocomplete":"none"},...u==="combobox"&&{"aria-autocomplete":"list"}},[m,g,u]),w=s.useMemo(()=>m==="tooltip"||u==="label"?{[`aria-${u==="label"?"labelledby":"describedby"}`]:r?f:void 0}:{...v,"aria-expanded":r?"true":"false","aria-controls":r?f:void 0,...m==="menu"&&{id:d}},[m,f,r,d,u,v]),b=s.useMemo(()=>{const k={id:f,...m&&{role:m}};return m==="tooltip"||u==="label"?k:{...k,...m==="menu"&&{"aria-labelledby":d}}},[m,f,d,u]),y=s.useCallback(({active:k,selected:C})=>{const x={role:"option",...k&&{id:`${f}-fui-option`}};switch(u){case"select":case"combobox":return{...x,"aria-selected":C}}return{}},[f,u]);return s.useMemo(()=>c?{reference:w,floating:b,item:y,trigger:v}:{},[c,w,b,v,y])}function cD(e,t){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.context.dataRef,{listRef:i,activeIndex:a,onMatch:c,onTypingChange:u,enabled:l=!0,findMatch:d=null,resetMs:f=750,ignoreKeys:m=n2,selectedIndex:h=null}=t,g=Yt(),v=s.useRef(""),w=s.useRef(h??a??-1),b=s.useRef(null);we(()=>{r&&(g.clear(),b.current=null,v.current="")},[r,g]),we(()=>{r&&v.current===""&&(w.current=h??a??-1)},[r,h,a]);const y=ke(L=>{L?o.current.typing||(o.current.typing=L,u?.(L)):o.current.typing&&(o.current.typing=L,u?.(L))}),k=ke(L=>{function S(T,j,H){const A=d?d(j,H):j.find(I=>I?.toLocaleLowerCase().indexOf(H.toLocaleLowerCase())===0);return A?T.indexOf(A):-1}const E=i.current;if(v.current.length>0&&v.current[0]!==" "&&(S(E,E,v.current)===-1?y(!1):L.key===" "&&st(L)),E==null||m.includes(L.key)||L.key.length!==1||L.ctrlKey||L.metaKey||L.altKey)return;r&&L.key!==" "&&(st(L),y(!0)),E.every(T=>T?T[0]?.toLocaleLowerCase()!==T[1]?.toLocaleLowerCase():!0)&&v.current===L.key&&(v.current="",w.current=b.current),v.current+=L.key,g.start(f,()=>{v.current="",w.current=b.current,y(!1)});const P=w.current,D=S(E,[...E.slice((P||0)+1),...E.slice(0,(P||0)+1)],v.current);D!==-1?(c?.(D),b.current=D):L.key!==" "&&(v.current="",y(!1))}),C=s.useMemo(()=>({onKeyDown:k}),[k]),x=s.useMemo(()=>({onKeyDown:k,onKeyUp(L){L.key===" "&&y(!1)}}),[k,y]);return s.useMemo(()=>l?{reference:C,floating:x}:{},[l,C,x])}const lD=s.createContext(void 0);function uD(e){return s.useContext(lD)}const J2="ArrowUp",Q2="ArrowDown",ew="ArrowLeft",tw="ArrowRight",nw="Home",rw="End",dD=new Set([ew,tw]),fD=new Set([J2,Q2]),pD=new Set([...dD,...fD]);[...pD];const mD=new Set([J2,Q2,ew,tw,nw,rw]);function hD(e){return e==="starting"?LT:Ct}const gD={...r2,...AT},bD=s.forwardRef(function(t,n){const{render:r,className:o,finalFocus:i,...a}=t,{store:c}=Wr(),{side:u,align:l}=qy(),d=uD()!=null,f=c.useState("open"),m=c.useState("transitionStatus"),h=c.useState("popupProps"),g=c.useState("mounted"),v=c.useState("instantType"),w=c.useState("activeTriggerElement"),b=c.useState("parent"),y=c.useState("lastOpenChangeReason"),k=c.useState("rootId"),C=c.useState("floatingRootContext"),x=c.useState("floatingTreeRoot"),L=c.useState("closeDelay"),S=c.useState("activeTriggerElement");d2({open:f,ref:c.context.popupRef,onComplete(){f&&c.context.onOpenChangeComplete?.(!0)}}),s.useEffect(()=>{function j(H){c.setOpen(!1,Je(H.reason,H.domEvent))}return x.events.on("close",j),()=>{x.events.off("close",j)}},[x.events,c]);const E=c.useState("hoverEnabled"),M=c.useState("disabled");QN(C,{enabled:E&&!M&&b.type!=="context-menu"&&b.type!=="menubar",closeDelay:L});const P=s.useMemo(()=>({transitionStatus:m,side:u,align:l,open:f,nested:b.type==="menu",instant:v}),[m,u,l,f,b.type,v]),D=Un("div",t,{state:P,ref:[n,c.context.popupRef],stateAttributesMapping:gD,props:[h,{onKeyDown(j){d&&mD.has(j.key)&&j.stopPropagation()}},hD(m),a,{"data-rootownerid":k}]});let T=b.type===void 0||b.type==="context-menu";return(w||b.type==="menubar"&&y!==Ud)&&(T=!0),p.jsx(kI,{context:C,modal:!1,disabled:!g,returnFocus:i===void 0?T:i,initialFocus:b.type!=="menu",restoreFocus:!0,externalTree:b.type!=="menubar"?x:void 0,previousFocusableElement:S,nextFocusableElement:b.type===void 0?c.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:b.type===void 0?c.context.beforeContentFocusGuardRef:void 0,children:D})}),ow=s.createContext(void 0);function vD(){const e=s.useContext(ow);if(e===void 0)throw new Error(hr(32));return e}const yD=s.forwardRef(function(t,n){const{keepMounted:r=!1,...o}=t,{store:i}=Wr();return i.useState("mounted")||r?p.jsx(ow.Provider,{value:r,children:p.jsx(vI,{ref:n,...o})}):null});function wD(e){return zd(19)?e:e?"true":void 0}const xD=s.createContext(void 0);function sw(){return s.useContext(xD)?.direction??"ltr"}const CD=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:c,middlewareData:u}=t,{element:l,padding:d=0,offsetParent:f="real"}=xn(e,t)||{};if(l==null)return{};const m=x2(d),h={x:n,y:r},g=Jd(o),v=Zd(g),w=await a.getDimensions(l),b=g==="y",y=b?"top":"left",k=b?"bottom":"right",C=b?"clientHeight":"clientWidth",x=i.reference[v]+i.reference[g]-h[g]-i.floating[v],L=h[g]-i.reference[g],S=f==="real"?await a.getOffsetParent?.(l):c.floating;let E=c.floating[C]||i.floating[v];(!E||!await a.isElement?.(S))&&(E=c.floating[C]||i.floating[v]);const M=x/2-L/2,P=E/2-w[v]/2-1,D=Math.min(m[y],P),T=Math.min(m[k],P),j=D,H=E-w[v]-T,A=E/2-w[v]/2+M,I=Uu(j,A,H),B=!u.arrow&&Gn(o)!=null&&A!==I&&i.reference[v]/2-(A<j?D:T)-w[v]/2<0,$=B?A<j?A-j:A-H:0;return{[g]:h[g]+$,data:{[g]:I,centerOffset:A-I-$,...B&&{alignmentOffset:$}},reset:B}}}),kD=(e,t)=>({...CD(e),options:[e,t]}),ED={name:"hide",async fn(e){const{width:t,height:n,x:r,y:o}=e.rects.reference,i=t===0&&n===0&&r===0&&o===0;return{data:{referenceHidden:(await uN().fn(e)).data?.referenceHidden||i}}}},LD={sideX:"left",sideY:"top"};function iw(e,t,n){const r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function Jb(e,t,n){const{rects:r,placement:o}=e;return{side:iw(t,Ot(o),n),align:Gn(o)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function SD(e){const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,collisionBoundary:c,collisionPadding:u=5,sticky:l=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:v,shiftCrossAxis:w=!1,nodeId:b,adaptiveOrigin:y,lazyFlip:k=!1,externalTree:C}=e,[x,L]=s.useState(null);!g&&x!==null&&L(null);const S=v.side||"flip",E=v.align||"flip",M=v.fallbackAxisSide||"end",P=typeof t=="function"?t:void 0,D=ke(P),T=P?D:t,j=wt(t),A=sw()==="rtl",I=x||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":A?"left":"right","inline-start":A?"right":"left"}[r],B=i==="center"?I:`${I}-${i}`;let $=u;const z=1,R=r==="bottom"?z:0,q=r==="top"?z:0,ee=r==="right"?z:0,te=r==="left"?z:0;typeof $=="number"?$={top:$+R,right:$+te,bottom:$+q,left:$+ee}:$&&($={top:($.top||0)+R,right:($.right||0)+te,bottom:($.bottom||0)+q,left:($.left||0)+ee});const ae={boundary:c==="clipping-ancestors"?"clippingAncestors":c,padding:$},le=s.useRef(null),ne=wt(o),re=wt(a),ue=[sN(he=>{const $e=Jb(he,r,A),Be=typeof ne.current=="function"?ne.current($e):ne.current,Re=typeof re.current=="function"?re.current($e):re.current;return{mainAxis:Be,crossAxis:Re,alignmentAxis:Re}},[typeof o!="function"?o:0,typeof a!="function"?a:0,A,r])],O=E==="none"&&S!=="shift",X=!O&&(l||w||S==="shift"),V=S==="none"?null:cN({...ae,padding:{top:$.top+z,right:$.right+z,bottom:$.bottom+z,left:$.left+z},mainAxis:!w&&S==="flip",crossAxis:E==="flip"?"alignment":!1,fallbackAxisSideDirection:M}),ge=O?null:iN(he=>{const $e=dr(he.elements.floating).documentElement;return{...ae,rootBoundary:w?{x:0,y:0,width:$e.clientWidth,height:$e.clientHeight}:void 0,mainAxis:E!=="none",crossAxis:X,limiter:l||w?void 0:aN(Be=>{if(!le.current)return{};const{width:Re,height:ze}=le.current.getBoundingClientRect(),Ye=Tt(Ot(Be.placement)),yt=Ye==="y"?Re:ze,fn=Ye==="y"?$.left+$.right:$.top+$.bottom;return{offset:yt/2+fn/2}})}},[ae,l,w,$,E]);S==="shift"||E==="shift"||i==="center"?ue.push(ge,V):ue.push(V,ge),ue.push(lN({...ae,apply({elements:{floating:he},rects:{reference:$e},availableWidth:Be,availableHeight:Re}){Object.entries({"--available-width":`${Be}px`,"--available-height":`${Re}px`,"--anchor-width":`${$e.width}px`,"--anchor-height":`${$e.height}px`}).forEach(([ze,Ye])=>{he.style.setProperty(ze,Ye)})}}),kD(()=>({element:le.current||document.createElement("div"),padding:d,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(he){const{elements:$e,middlewareData:Be,placement:Re,rects:ze,y:Ye}=he,yt=Ot(Re),fn=Tt(yt),Jn=le.current,Zr=Be.arrow?.x||0,Jr=Be.arrow?.y||0,Ft=Jn?.clientWidth||0,qt=Jn?.clientHeight||0,pn=Zr+Ft/2,Qn=Jr+qt/2,Qr=Math.abs(Be.shift?.y||0),eo=ze.reference.height/2,pt=typeof o=="function"?o(Jb(he,r,A)):o,to=Qr>pt,Sn={top:`${pn}px calc(100% + ${pt}px)`,bottom:`${pn}px ${-pt}px`,left:`calc(100% + ${pt}px) ${Qn}px`,right:`${-pt}px ${Qn}px`}[yt],no=`${pn}px ${ze.reference.y+eo-Ye}px`;return $e.floating.style.setProperty("--transform-origin",X&&fn==="y"&&to?no:Sn),{}}},ED,y),we(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[g,h]);const J=s.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:G,elements:Z,x:be,y:ve,middlewareData:W,update:_,placement:ce,context:Y,isPositioned:K,floatingStyles:oe}=GN({rootContext:h,placement:B,middleware:ue,strategy:n,whileElementsMounted:m?void 0:(...he)=>Wb(...he,J),nodeId:b,externalTree:C}),{sideX:ye,sideY:Ee}=W.adaptiveOrigin||LD,xe=K?n:"fixed",Ae=s.useMemo(()=>y?{position:xe,[ye]:be,[Ee]:ve}:{position:xe,...oe},[y,xe,ye,be,Ee,ve,oe]),Ie=s.useRef(null);we(()=>{if(!g)return;const he=j.current,$e=typeof he=="function"?he():he,Re=(Qb($e)?$e.current:$e)||null||null;Re!==Ie.current&&(G.setPositionReference(Re),Ie.current=Re)},[g,G,T,j]),s.useEffect(()=>{if(!g)return;const he=j.current;typeof he!="function"&&Qb(he)&&he.current!==Ie.current&&(G.setPositionReference(he.current),Ie.current=he.current)},[g,G,T,j]),s.useEffect(()=>{if(m&&g&&Z.domReference&&Z.floating)return Wb(Z.domReference,Z.floating,_,J)},[m,g,Z,_,J]);const Ue=Ot(ce),tt=iw(r,Ue,A),nt=Gn(ce)||"center",Ce=!!W.hide?.referenceHidden;we(()=>{k&&g&&K&&L(Ue)},[k,g,K,Ue]);const Oe=s.useMemo(()=>({position:"absolute",top:W.arrow?.y,left:W.arrow?.x}),[W.arrow]),Ne=W.arrow?.centerOffset!==0;return s.useMemo(()=>({positionerStyles:Ae,arrowStyles:Oe,arrowRef:le,arrowUncentered:Ne,side:tt,align:nt,physicalSide:Ue,anchorHidden:Ce,refs:G,context:Y,isPositioned:K,update:_}),[Ae,Oe,le,Ne,tt,nt,Ue,Ce,G,Y,K,_])}function Qb(e){return e!=null&&"current"in e}function $D(e){const{children:t,elementsRef:n,labelsRef:r,onMapChange:o}=e,i=ke(o),a=s.useRef(0),c=Vt(OD).current,u=Vt(jD).current,[l,d]=s.useState(0),f=s.useRef(l),m=ke((b,y)=>{u.set(b,y??null),f.current+=1,d(f.current)}),h=ke(b=>{u.delete(b),f.current+=1,d(f.current)}),g=s.useMemo(()=>{const b=new Map;return Array.from(u.keys()).filter(k=>k.isConnected).sort(RD).forEach((k,C)=>{const x=u.get(k)??{};b.set(k,{...x,index:C})}),b},[u,l]);we(()=>{if(typeof MutationObserver!="function"||g.size===0)return;const b=new MutationObserver(y=>{const k=new Set,C=x=>k.has(x)?k.delete(x):k.add(x);y.forEach(x=>{x.removedNodes.forEach(C),x.addedNodes.forEach(C)}),k.size===0&&(f.current+=1,d(f.current))});return g.forEach((y,k)=>{k.parentElement&&b.observe(k.parentElement,{childList:!0})}),()=>{b.disconnect()}},[g]),we(()=>{f.current===l&&(n.current.length!==g.size&&(n.current.length=g.size),r&&r.current.length!==g.size&&(r.current.length=g.size),a.current=g.size),i(g)},[i,g,n,r,l]),we(()=>()=>{n.current=[]},[n]),we(()=>()=>{r&&(r.current=[])},[r]);const v=ke(b=>(c.add(b),()=>{c.delete(b)}));we(()=>{c.forEach(b=>b(g))},[c,g]);const w=s.useMemo(()=>({register:m,unregister:h,subscribeMapChange:v,elementsRef:n,labelsRef:r,nextIndexRef:a}),[m,h,v,n,r,a]);return p.jsx(a2.Provider,{value:w,children:t})}function jD(){return new Map}function OD(){return new Set}function RD(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const MD=s.forwardRef(function(t,n){const{cutout:r,...o}=t;let i;if(r){const a=r?.getBoundingClientRect();i=`polygon(
3
+ 0% 0%,
4
+ 100% 0%,
5
+ 100% 100%,
6
+ 0% 100%,
7
+ 0% 0%,
8
+ ${a.left}px ${a.top}px,
9
+ ${a.left}px ${a.bottom}px,
10
+ ${a.right}px ${a.bottom}px,
11
+ ${a.right}px ${a.top}px,
12
+ ${a.left}px ${a.top}px
13
+ )`}return p.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:i}})}),PD=s.forwardRef(function(t,n){const{anchor:r,positionMethod:o="absolute",className:i,render:a,side:c,align:u,sideOffset:l=0,alignOffset:d=0,collisionBoundary:f="clipping-ancestors",collisionPadding:m=5,arrowPadding:h=5,sticky:g=!1,disableAnchorTracking:v=!1,collisionAvoidance:w=$T,...b}=t,{store:y}=Wr(),k=vD(),C=Ri(!0),x=y.useState("parent"),L=y.useState("floatingRootContext"),S=y.useState("floatingTreeRoot"),E=y.useState("mounted"),M=y.useState("open"),P=y.useState("modal"),D=y.useState("activeTriggerElement"),T=y.useState("lastOpenChangeReason"),j=y.useState("floatingNodeId"),H=y.useState("floatingParentNodeId");let A=r,I=l,B=d,$=u;x.type==="context-menu"&&(A=r??x.context?.anchor,$=$??"start",!c&&$!=="center"&&(B=t.alignOffset??2,I=t.sideOffset??-5));let z=c,R=$;x.type==="menu"?(z=z??"inline-end",R=R??"start"):x.type==="menubar"&&(z=z??"bottom",R=R??"start");const q=x.type==="context-menu",ee=SD({anchor:A,floatingRootContext:L,positionMethod:C?"fixed":o,mounted:E,side:z,sideOffset:I,align:R,alignOffset:B,arrowPadding:q?0:h,collisionBoundary:f,collisionPadding:m,sticky:g,nodeId:j,keepMounted:k,disableAnchorTracking:v,collisionAvoidance:w,shiftCrossAxis:q,externalTree:S}),te=s.useMemo(()=>{const ie={};return M||(ie.pointerEvents="none"),{role:"presentation",hidden:!E,style:{...ee.positionerStyles,...ie}}},[M,E,ee.positionerStyles]);s.useEffect(()=>{function ie(ue){ue.open?(ue.parentNodeId===j&&y.set("hoverEnabled",!1),ue.nodeId!==j&&ue.parentNodeId===y.select("floatingParentNodeId")&&y.setOpen(!1,Je(bo))):ue.parentNodeId===j&&ue.reason!==bo&&y.set("hoverEnabled",!0)}return S.events.on("menuopenchange",ie),()=>{S.events.off("menuopenchange",ie)}},[y,S.events,j]),s.useEffect(()=>{if(y.select("floatingParentNodeId")==null)return;function ie(ue){if(ue.open||ue.nodeId!==y.select("floatingParentNodeId"))return;const O=ue.reason??bo;y.setOpen(!1,Je(O))}return S.events.on("menuopenchange",ie),()=>{S.events.off("menuopenchange",ie)}},[S.events,y]),s.useEffect(()=>{function ie(ue){!M||ue.nodeId!==y.select("floatingParentNodeId")||ue.target&&D&&D!==ue.target&&y.setOpen(!1,Je(bo))}return S.events.on("itemhover",ie),()=>{S.events.off("itemhover",ie)}},[S.events,M,D,y]),s.useEffect(()=>{const ie={open:M,nodeId:j,parentNodeId:H,reason:y.select("lastOpenChangeReason")};S.events.emit("menuopenchange",ie)},[S.events,M,y,j,H]);const ae=s.useMemo(()=>({open:M,side:ee.side,align:ee.align,anchorHidden:ee.anchorHidden,nested:x.type==="menu"}),[M,ee.side,ee.align,ee.anchorHidden,x.type]),le=s.useMemo(()=>({side:ee.side,align:ee.align,arrowRef:ee.arrowRef,arrowUncentered:ee.arrowUncentered,arrowStyles:ee.arrowStyles,nodeId:ee.context.nodeId}),[ee.side,ee.align,ee.arrowRef,ee.arrowUncentered,ee.arrowStyles,ee.context.nodeId]),ne=Un("div",t,{state:ae,stateAttributesMapping:r2,ref:[n,y.useStateSetter("positionerElement")],props:[te,b]}),re=E&&x.type!=="menu"&&(x.type!=="menubar"&&P&&T!==cr||x.type==="menubar"&&x.context.modal);let se=null;return x.type==="menubar"?se=x.context.contentElement:x.type===void 0&&(se=D),p.jsxs(Xy.Provider,{value:le,children:[re&&p.jsx(MD,{ref:x.type==="context-menu"||x.type==="nested-context-menu"?x.context.internalBackdropRef:null,inert:wD(!M),cutout:se}),p.jsx(dI,{id:j,children:p.jsx($D,{elementsRef:y.context.itemDomElements,labelsRef:y.context.itemLabels,children:ne})})]})});let e0={},t0={},n0="";function TD(e){if(typeof document>"u")return!1;const t=dr(e);return at(t).innerWidth-t.documentElement.clientWidth>0}function AD(e){const t=dr(e),n=t.documentElement,r=t.body,o=gr(n)?n:r,i=o.style.overflow;return o.style.overflow="hidden",()=>{o.style.overflow=i}}function ID(e){const t=dr(e),n=t.documentElement,r=t.body,o=at(n);let i=0,a=0;const c=Pn.create(),u=typeof CSS<"u"&&CSS.supports?.("scrollbar-gutter","stable");if(xA&&(o.visualViewport?.scale??1)!==1)return()=>{};function l(){const m=o.getComputedStyle(n),h=o.getComputedStyle(r),w=(m.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";i=n.scrollTop,a=n.scrollLeft,e0={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},n0=n.style.scrollBehavior,t0={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};const b=n.scrollHeight>n.clientHeight,y=n.scrollWidth>n.clientWidth,k=m.overflowY==="scroll"||h.overflowY==="scroll",C=m.overflowX==="scroll"||h.overflowX==="scroll",x=Math.max(0,o.innerWidth-n.clientWidth),L=Math.max(0,o.innerHeight-n.clientHeight),S=parseFloat(h.marginTop)+parseFloat(h.marginBottom),E=parseFloat(h.marginLeft)+parseFloat(h.marginRight),M=gr(n)?n:r;if(u){n.style.scrollbarGutter=w,M.style.overflowY="hidden",M.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:w,overflowY:"hidden",overflowX:"hidden"}),(b||k)&&(n.style.overflowY="scroll"),(y||C)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:S||L?`calc(100dvh - ${S+L}px)`:"100dvh",width:E||x?`calc(100vw - ${E+x}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=i,r.scrollLeft=a,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function d(){Object.assign(n.style,e0),Object.assign(r.style,t0),u||(n.scrollTop=i,n.scrollLeft=a,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=n0)}function f(){d(),c.request(l)}return l(),o.addEventListener("resize",f),()=>{c.cancel(),d(),typeof o.removeEventListener=="function"&&o.removeEventListener("resize",f)}}class ND{lockCount=0;restore=null;timeoutLock=Zs.create();timeoutUnlock=Zs.create();acquire(t){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(t)),this.release}release=()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(t){if(this.lockCount===0||this.restore!==null)return;const r=dr(t).documentElement,o=at(r).getComputedStyle(r).overflowY;if(o==="hidden"||o==="clip"){this.restore=t2;return}const i=CA||!TD(t);this.restore=i?AD(t):ID(t)}}const DD=new ND;function VD(e=!0,t=null){we(()=>{if(e)return DD.acquire(t)},[e,t])}const FD=s.createContext(null);function BD(e){return s.useContext(FD)}function HD(e){const t=s.useRef(""),n=s.useCallback(o=>{o.defaultPrevented||(t.current=o.pointerType,e(o,o.pointerType))},[e]);return{onClick:s.useCallback(o=>{if(o.detail===0){e(o,"keyboard");return}"pointerType"in o&&e(o,o.pointerType),e(o,t.current),t.current=""},[e]),onPointerDown:n}}function WD(e){const[t,n]=s.useState(null),r=ke((c,u)=>{e||n(u)}),o=s.useCallback(()=>{n(null)},[]),{onClick:i,onPointerDown:a}=HD(r);return s.useMemo(()=>({openMethod:t,reset:o,triggerProps:{onClick:i,onPointerDown:a}}),[t,o,i,a])}const zD={...UN,disabled:Se(e=>e.parent.type==="menubar"&&e.parent.context.disabled||e.disabled),modal:Se(e=>(e.parent.type===void 0||e.parent.type==="context-menu")&&(e.modal??!0)),allowMouseEnter:Se(e=>e.parent.type==="menu"?e.parent.store.select("allowMouseEnter"):e.allowMouseEnter),stickIfOpen:Se(e=>e.stickIfOpen),parent:Se(e=>e.parent),rootId:Se(e=>e.parent.type==="menu"?e.parent.store.select("rootId"):e.parent.type!==void 0?e.parent.context.rootId:e.rootId),activeIndex:Se(e=>e.activeIndex),isActive:Se((e,t)=>e.activeIndex===t),hoverEnabled:Se(e=>e.hoverEnabled),instantType:Se(e=>e.instantType),lastOpenChangeReason:Se(e=>e.openChangeReason),floatingTreeRoot:Se(e=>e.parent.type==="menu"?e.parent.store.select("floatingTreeRoot"):e.floatingTreeRoot),floatingNodeId:Se(e=>e.floatingNodeId),floatingParentNodeId:Se(e=>e.floatingParentNodeId),itemProps:Se(e=>e.itemProps),closeDelay:Se(e=>e.closeDelay),keyboardEventRelay:Se(e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type==="menu")return e.parent.store.select("keyboardEventRelay")})};class rf extends Z2{constructor(t){super({..._D(),...t},{positionerRef:s.createRef(),popupRef:s.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:s.createRef(),beforeContentFocusGuardRef:s.createRef(),onOpenChangeComplete:void 0,triggerElements:new nf},zD),this.observe(Se(n=>n.allowMouseEnter),(n,r)=>{this.state.parent.type==="menu"&&n!==r&&this.state.parent.store.set("allowMouseEnter",n)}),this.unsubscribeParentListener=this.observe("parent",n=>{if(this.unsubscribeParentListener?.(),n.type==="menu"){this.unsubscribeParentListener=n.store.subscribe(()=>{this.notifyAll()}),this.context.allowMouseUpTriggerRef=n.store.context.allowMouseUpTriggerRef;return}n.type!==void 0&&(this.context.allowMouseUpTriggerRef=n.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(t,n){this.state.floatingRootContext.context.events.emit("setOpen",{open:t,eventDetails:n})}static useStore(t,n){return Vt(()=>t??new rf(n)).current}unsubscribeParentListener=null}function _D(){return{..._N(),disabled:!1,modal:!0,allowMouseEnter:!0,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new T2,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:Ct,keyboardEventRelay:void 0,closeDelay:0}}const UD=s.createContext(void 0);function KD(){return s.useContext(UD)}function GD(e){const{children:t,open:n,onOpenChange:r,onOpenChangeComplete:o,defaultOpen:i=!1,disabled:a=!1,modal:c,loopFocus:u=!0,orientation:l="vertical",actionsRef:d,closeParentOnEsc:f=!0,handle:m,triggerId:h,defaultTriggerId:g=null,highlightItemOnHover:v=!0}=e,w=Ri(!0),b=Wr(!0),y=BD(),k=KD(),C=s.useMemo(()=>k&&b?{type:"menu",store:b.store}:y?{type:"menubar",context:y}:w&&!b?{type:"context-menu",context:w}:{type:void 0},[w,b,y,k]),x=rf.useStore(m?.store,{parent:C}),L=x.useState("floatingTreeRoot"),S=uI(L),E=Yn();we(()=>{w&&!b?x.update({parent:{type:"context-menu",context:w},floatingNodeId:S,floatingParentNodeId:E}):b&&x.update({floatingNodeId:S,floatingParentNodeId:E})},[w,b,S,E,x]),x.useControlledProp("open",n,i),x.useControlledProp("activeTriggerId",h,g),x.useContextCallback("onOpenChangeComplete",o);const M=x.useState("open"),P=x.useState("activeTriggerElement"),D=x.useState("positionerElement"),T=x.useState("hoverEnabled"),j=x.useState("modal"),H=x.useState("disabled"),A=x.useState("lastOpenChangeReason"),I=x.useState("parent"),B=x.useState("activeIndex"),$=x.useState("payload"),z=x.useState("floatingParentNodeId"),R=s.useRef(null),q=z!=null;let ee;x.useSyncedValues({disabled:a,modal:I.type===void 0?c:void 0,rootId:_n()});const{openMethod:te,triggerProps:ae,reset:le}=WD(M);HN(x);const{forceUnmount:ne}=WN(M,x,()=>{x.update({allowMouseEnter:!1,stickIfOpen:!0}),le()}),re=s.useRef(I.type!=="context-menu"),se=Yt();s.useEffect(()=>{if(M||(R.current=null),I.type==="context-menu"){if(!M){se.clear(),re.current=!1;return}se.start(500,()=>{re.current=!0})}},[se,M,I.type]),VD(M&&j&&A!==cr&&te!=="touch",D),we(()=>{!M&&!T&&x.set("hoverEnabled",!0)},[M,T,x]);const ie=s.useRef(!0),ue=Yt(),O=ke((Ce,Oe)=>{const Ne=Oe.reason;if(M===Ce&&Oe.trigger===P||(Oe.preventUnmountOnClose=()=>{x.set("preventUnmountingOnClose",!0)},!Ce&&Oe.trigger==null&&(Oe.trigger=P??void 0),r?.(Ce,Oe),Oe.isCanceled))return;const he={open:Ce,nativeEvent:Oe.event,reason:Oe.reason,nested:q};ee?.emit("openchange",he);const $e=Oe.event;if(Ce===!1&&$e?.type==="click"&&$e.pointerType==="touch"&&!ie.current)return;if(!Ce&&B!==null){const Ye=x.context.itemDomElements.current[B];queueMicrotask(()=>{Ye?.setAttribute("tabindex","-1")})}Ce&&Ne===Lb?(ie.current=!1,ue.start(300,()=>{ie.current=!0})):(ie.current=!0,ue.clear());const Be=(Ne===qs||Ne===o2)&&$e.detail===0&&$e?.isTrusted,Re=!Ce&&(Ne===s2||Ne==null);function ze(){const Ye={open:Ce,openChangeReason:Ne};R.current=Oe.event??null;const yt=Oe.trigger?.id??null;(yt||Ce)&&(Ye.activeTriggerId=yt,Ye.activeTriggerElement=Oe.trigger??null),x.update(Ye)}Ne===cr?ft.flushSync(ze):ze(),I.type==="menubar"&&(Ne===Lb||Ne===Pi||Ne===cr||Ne===Ms||Ne===bo)?x.set("instantType","group"):Be||Re?x.set("instantType",Be?"click":"dismiss"):x.set("instantType",void 0)}),X=s.useCallback(Ce=>{const Oe=Je(Ce);return Oe.preventUnmountOnClose=()=>{x.set("preventUnmountingOnClose",!0)},Oe},[x]),V=s.useCallback(()=>{x.setOpen(!1,X(WT))},[x,X]);s.useImperativeHandle(d,()=>({unmount:ne,close:V}),[ne,V]);let ge;I.type==="context-menu"&&(ge=I.context),s.useImperativeHandle(ge?.positionerRef,()=>D,[D]),s.useImperativeHandle(ge?.actionsRef,()=>({setOpen:O}),[O]);const J=YN({popupStore:x,onOpenChange:O});ee=J.context.events,s.useEffect(()=>{const Ce=({open:Oe,eventDetails:Ne})=>O(Oe,Ne);return ee.on("setOpen",Ce),()=>{ee?.off("setOpen",Ce)}},[ee,O]);const G=pN(J,{enabled:!H,bubbles:f&&I.type==="menu",outsidePress(){return I.type!=="context-menu"||R.current?.type==="contextmenu"?!0:re.current},externalTree:q?L:void 0}),Z=aD(J,{role:"menu"}),be=sw(),ve=s.useCallback(Ce=>{x.select("activeIndex")!==Ce&&x.set("activeIndex",Ce)},[x]),W=sD(J,{enabled:!H,listRef:x.context.itemDomElements,activeIndex:B,nested:I.type!==void 0,loopFocus:u,orientation:l,parentOrientation:I.type==="menubar"?I.context.orientation:void 0,rtl:be==="rtl",disabledIndices:n2,onNavigate:ve,openOnArrowKeyDown:I.type!=="context-menu",externalTree:q?L:void 0,focusItemOnHover:v}),_=s.useCallback(Ce=>{x.context.typingRef.current=Ce},[x]),ce=cD(J,{listRef:x.context.itemLabels,activeIndex:B,resetMs:ET,onMatch:Ce=>{M&&Ce!==B&&x.set("activeIndex",Ce)},onTypingChange:_}),{getReferenceProps:Y,getFloatingProps:K,getItemProps:oe,getTriggerProps:ye}=tD([G,Z,W,ce]),Ee=s.useMemo(()=>{const Ce=Mi(Y(),{onMouseEnter(){x.set("hoverEnabled",!0)},onMouseMove(){x.set("allowMouseEnter",!0)}},ae);return delete Ce.role,Ce},[Y,x,ae]),xe=s.useMemo(()=>{const Ce=ye();if(!Ce)return Ce;const{role:Oe,["aria-controls"]:Ne,...he}=Ce;return he},[ye]),Ae=Yd(),Ie=s.useMemo(()=>K({onMouseEnter(){I.type==="menu"&&Ae.request(()=>x.set("hoverEnabled",!1))},onMouseMove(){x.set("allowMouseEnter",!0)},onClick(){x.select("hoverEnabled")&&x.set("hoverEnabled",!1)},onKeyDown(Ce){const Oe=x.select("keyboardEventRelay");Oe&&!Ce.isPropagationStopped()&&Oe(Ce)}}),[K,I.type,Ae,x]),Ue=s.useMemo(()=>oe(),[oe]);x.useSyncedValues({floatingRootContext:J,activeTriggerProps:Ee,inactiveTriggerProps:xe,popupProps:Ie,itemProps:Ue});const tt=s.useMemo(()=>({store:x,parent:C}),[x,C]),nt=p.jsx(Wd.Provider,{value:tt,children:typeof t=="function"?t({payload:$}):t});return I.type===void 0||I.type==="context-menu"?p.jsx(fI,{externalTree:L,children:nt}):nt}function aw(e){if(Xe(e)&&e.hasAttribute("data-rootownerid"))return e.getAttribute("data-rootownerid")??void 0;if(!nn(e))return aw(cn(e))}const YD=s.forwardRef(function(t,n){const{className:r,render:o,orientation:i="horizontal",...a}=t,c=s.useMemo(()=>({orientation:i}),[i]);return Un("div",t,{state:c,ref:n,props:[{role:"separator","aria-orientation":i},a]})});function XD(e){const[t,n]=s.useState({getBoundingClientRect(){return DOMRect.fromRect({width:0,height:0,x:0,y:0})}}),r=s.useRef(null),o=s.useRef(null),i=s.useRef(null),a=s.useRef(null),c=s.useRef(!0),u=s.useRef(null),l=_n(),d=s.useMemo(()=>({anchor:t,setAnchor:n,actionsRef:i,backdropRef:r,internalBackdropRef:o,positionerRef:a,allowMouseUpTriggerRef:c,initialCursorPointRef:u,rootId:l}),[t,l]);return p.jsx(Yy.Provider,{value:d,children:p.jsx(Wd.Provider,{value:void 0,children:p.jsx(GD,{...e})})})}const r0=500,qD=s.forwardRef(function(t,n){const{render:r,className:o,...i}=t,{setAnchor:a,actionsRef:c,internalBackdropRef:u,backdropRef:l,positionerRef:d,allowMouseUpTriggerRef:f,initialCursorPointRef:m,rootId:h}=Ri(!1),{store:g}=Wr(!1),v=g.useState("open"),w=s.useRef(null),b=s.useRef(null),y=Yt(),k=Yt(),C=s.useRef(!1);function x(T,j,H){const A=H.type.startsWith("touch");m.current={x:T,y:j},a({getBoundingClientRect(){return DOMRect.fromRect({width:A?10:0,height:A?10:0,x:T,y:j})}}),C.current=!1,c.current?.setOpen(!0,Je(qs,H)),k.start(r0,()=>{C.current=!0})}function L(T){f.current=!0,st(T),x(T.clientX,T.clientY,T.nativeEvent),dr(w.current).addEventListener("mouseup",H=>{if(f.current=!1,!C.current)return;k.clear(),C.current=!1;const A=xt(H);He(d.current,A)||h&&A&&aw(A)===h||c.current?.setOpen(!1,Je(HT,H))},{once:!0})}function S(T){if(f.current=!1,T.touches.length===1){T.stopPropagation();const j=T.touches[0];b.current={x:j.clientX,y:j.clientY},y.start(r0,()=>{b.current&&x(b.current.x,b.current.y,T.nativeEvent)})}}function E(T){if(y.isStarted()&&b.current&&T.touches.length===1){const j=T.touches[0],H=10,A=Math.abs(j.clientX-b.current.x),I=Math.abs(j.clientY-b.current.y);(A>H||I>H)&&y.clear()}}function M(){y.clear(),b.current=null}s.useEffect(()=>{function T(H){const I=xt(H);(He(w.current,I)||He(u.current,I)||He(l.current,I))&&H.preventDefault()}const j=dr(w.current);return j.addEventListener("contextmenu",T),()=>{j.removeEventListener("contextmenu",T)}},[l,u]);const P=s.useMemo(()=>({open:v}),[v]);return Un("div",t,{state:P,ref:[w,n],props:[{onContextMenu:L,onTouchStart:S,onTouchMove:E,onTouchEnd:M,onTouchCancel:M,style:{WebkitTouchCallout:"none"}},i],stateAttributesMapping:FT})}),of=s.createContext({});function sf(e){const t=s.useRef(null);return t.current===null&&(t.current=e()),t.current}const cw=typeof window<"u",lw=cw?s.useLayoutEffect:s.useEffect,Bi=s.createContext(null);function af(e,t){e.indexOf(t)===-1&&e.push(t)}function li(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ln=(e,t,n)=>n>t?t:n<e?e:n;let cf=()=>{};const Cn={},uw=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function dw(e){return typeof e=="object"&&e!==null}const fw=e=>/^0[^.\s]+$/u.test(e);function pw(e){let t;return()=>(t===void 0&&(t=e()),t)}const Dt=e=>e,ZD=(e,t)=>n=>t(e(n)),_o=(...e)=>e.reduce(ZD),No=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class lf{constructor(){this.subscriptions=[]}add(t){return af(this.subscriptions,t),()=>li(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Kt=e=>e*1e3,At=e=>e/1e3;function mw(e,t){return t?e*(1e3/t):0}const hw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,JD=1e-7,QD=12;function eV(e,t,n,r,o){let i,a,c=0;do a=t+(n-t)/2,i=hw(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>JD&&++c<QD);return a}function Uo(e,t,n,r){if(e===t&&n===r)return Dt;const o=i=>eV(i,0,1,e,n);return i=>i===0||i===1?i:hw(o(i),t,r)}const gw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,bw=e=>t=>1-e(1-t),vw=Uo(.33,1.53,.69,.99),uf=bw(vw),yw=gw(uf),ww=e=>(e*=2)<1?.5*uf(e):.5*(2-Math.pow(2,-10*(e-1))),df=e=>1-Math.sin(Math.acos(e)),xw=bw(df),Cw=gw(df),tV=Uo(.42,0,1,1),nV=Uo(0,0,.58,1),kw=Uo(.42,0,.58,1),rV=e=>Array.isArray(e)&&typeof e[0]!="number",Ew=e=>Array.isArray(e)&&typeof e[0]=="number",oV={linear:Dt,easeIn:tV,easeInOut:kw,easeOut:nV,circIn:df,circInOut:Cw,circOut:xw,backIn:uf,backInOut:yw,backOut:vw,anticipate:ww},sV=e=>typeof e=="string",o0=e=>{if(Ew(e)){cf(e.length===4);const[t,n,r,o]=e;return Uo(t,n,r,o)}else if(sV(e))return oV[e];return e},ms=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function iV(e,t){let n=new Set,r=new Set,o=!1,i=!1;const a=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function u(d){a.has(d)&&(l.schedule(d),e()),d(c)}const l={schedule:(d,f=!1,m=!1)=>{const g=m&&o?n:r;return f&&a.add(d),g.has(d)||g.add(d),d},cancel:d=>{r.delete(d),a.delete(d)},process:d=>{if(c=d,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(u),n.clear(),o=!1,i&&(i=!1,l.process(d))}};return l}const aV=40;function Lw(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=ms.reduce((k,C)=>(k[C]=iV(i),k),{}),{setup:c,read:u,resolveKeyframes:l,preUpdate:d,update:f,preRender:m,render:h,postRender:g}=a,v=()=>{const k=Cn.useManualTiming?o.timestamp:performance.now();n=!1,Cn.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(k-o.timestamp,aV),1)),o.timestamp=k,o.isProcessing=!0,c.process(o),u.process(o),l.process(o),d.process(o),f.process(o),m.process(o),h.process(o),g.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(v))},w=()=>{n=!0,r=!0,o.isProcessing||e(v)};return{schedule:ms.reduce((k,C)=>{const x=a[C];return k[C]=(L,S=!1,E=!1)=>(n||w(),x.schedule(L,S,E)),k},{}),cancel:k=>{for(let C=0;C<ms.length;C++)a[ms[C]].cancel(k)},state:o,steps:a}}const{schedule:Fe,cancel:zn,state:rt,steps:tu}=Lw(typeof requestAnimationFrame<"u"?requestAnimationFrame:Dt,!0);let Is;function cV(){Is=void 0}const gt={now:()=>(Is===void 0&&gt.set(rt.isProcessing||Cn.useManualTiming?rt.timestamp:performance.now()),Is),set:e=>{Is=e,queueMicrotask(cV)}},Sw=e=>t=>typeof t=="string"&&t.startsWith(e),$w=Sw("--"),lV=Sw("var(--"),ff=e=>lV(e)?uV.test(e.split("/*")[0].trim()):!1,uV=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function s0(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ur={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Do={...Ur,transform:e=>ln(0,1,e)},hs={...Ur,default:1},So=e=>Math.round(e*1e5)/1e5,pf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function dV(e){return e==null}const fV=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mf=(e,t)=>n=>!!(typeof n=="string"&&fV.test(n)&&n.startsWith(e)||t&&!dV(n)&&Object.prototype.hasOwnProperty.call(n,t)),jw=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,a,c]=r.match(pf);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},pV=e=>ln(0,255,e),nu={...Ur,transform:e=>Math.round(pV(e))},ir={test:mf("rgb","red"),parse:jw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+nu.transform(e)+", "+nu.transform(t)+", "+nu.transform(n)+", "+So(Do.transform(r))+")"};function mV(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Xu={test:mf("#"),parse:mV,transform:ir.transform},Ko=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mn=Ko("deg"),on=Ko("%"),me=Ko("px"),hV=Ko("vh"),gV=Ko("vw"),i0={...on,parse:e=>on.parse(e)/100,transform:e=>on.transform(e*100)},Cr={test:mf("hsl","hue"),parse:jw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+on.transform(So(t))+", "+on.transform(So(n))+", "+So(Do.transform(r))+")"},Ze={test:e=>ir.test(e)||Xu.test(e)||Cr.test(e),parse:e=>ir.test(e)?ir.parse(e):Cr.test(e)?Cr.parse(e):Xu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ir.transform(e):Cr.transform(e),getAnimatableNone:e=>{const t=Ze.parse(e);return t.alpha=0,Ze.transform(t)}},bV=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function vV(e){return isNaN(e)&&typeof e=="string"&&(e.match(pf)?.length||0)+(e.match(bV)?.length||0)>0}const Ow="number",Rw="color",yV="var",wV="var(",a0="${}",xV=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Vo(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const c=t.replace(xV,u=>(Ze.test(u)?(r.color.push(i),o.push(Rw),n.push(Ze.parse(u))):u.startsWith(wV)?(r.var.push(i),o.push(yV),n.push(u)):(r.number.push(i),o.push(Ow),n.push(parseFloat(u))),++i,a0)).split(a0);return{values:n,split:c,indexes:r,types:o}}function Mw(e){return Vo(e).values}function Pw(e){const{split:t,types:n}=Vo(e),r=t.length;return o=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],o[a]!==void 0){const c=n[a];c===Ow?i+=So(o[a]):c===Rw?i+=Ze.transform(o[a]):i+=o[a]}return i}}const CV=e=>typeof e=="number"?0:Ze.test(e)?Ze.getAnimatableNone(e):e;function kV(e){const t=Mw(e);return Pw(e)(t.map(CV))}const Gt={test:vV,parse:Mw,createTransformer:Pw,getAnimatableNone:kV};function ru(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function EV({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;o=ru(u,c,e+1/3),i=ru(u,c,e),a=ru(u,c,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}function ui(e,t){return n=>n>0?t:e}const _e=(e,t,n)=>e+(t-e)*n,ou=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},LV=[Xu,ir,Cr],SV=e=>LV.find(t=>t.test(e));function c0(e){const t=SV(e);if(!t)return!1;let n=t.parse(e);return t===Cr&&(n=EV(n)),n}const l0=(e,t)=>{const n=c0(e),r=c0(t);if(!n||!r)return ui(e,t);const o={...n};return i=>(o.red=ou(n.red,r.red,i),o.green=ou(n.green,r.green,i),o.blue=ou(n.blue,r.blue,i),o.alpha=_e(n.alpha,r.alpha,i),ir.transform(o))},qu=new Set(["none","hidden"]);function $V(e,t){return qu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function jV(e,t){return n=>_e(e,t,n)}function hf(e){return typeof e=="number"?jV:typeof e=="string"?ff(e)?ui:Ze.test(e)?l0:MV:Array.isArray(e)?Tw:typeof e=="object"?Ze.test(e)?l0:OV:ui}function Tw(e,t){const n=[...e],r=n.length,o=e.map((i,a)=>hf(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}}function OV(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=hf(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function RV(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],a=e.indexes[i][r[i]],c=e.values[a]??0;n[o]=c,r[i]++}return n}const MV=(e,t)=>{const n=Gt.createTransformer(t),r=Vo(e),o=Vo(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?qu.has(e)&&!o.values.length||qu.has(t)&&!r.values.length?$V(e,t):_o(Tw(RV(r,o),o.values),n):ui(e,t)};function Aw(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?_e(e,t,n):hf(e)(e,t)}const PV=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Fe.update(t,n),stop:()=>zn(t),now:()=>rt.isProcessing?rt.timestamp:gt.now()}},Iw=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},di=2e4;function gf(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<di;)t+=n,r=e.next(t);return t>=di?1/0:t}function TV(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(gf(r),di);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:At(o)}}const AV=5;function Nw(e,t,n){const r=Math.max(t-AV,0);return mw(n-e(r),t-r)}const Ke={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},su=.001;function IV({duration:e=Ke.duration,bounce:t=Ke.bounce,velocity:n=Ke.velocity,mass:r=Ke.mass}){let o,i,a=1-t;a=ln(Ke.minDamping,Ke.maxDamping,a),e=ln(Ke.minDuration,Ke.maxDuration,At(e)),a<1?(o=l=>{const d=l*a,f=d*e,m=d-n,h=Zu(l,a),g=Math.exp(-f);return su-m/h*g},i=l=>{const f=l*a*e,m=f*n+n,h=Math.pow(a,2)*Math.pow(l,2)*e,g=Math.exp(-f),v=Zu(Math.pow(l,2),a);return(-o(l)+su>0?-1:1)*((m-h)*g)/v}):(o=l=>{const d=Math.exp(-l*e),f=(l-n)*e+1;return-su+d*f},i=l=>{const d=Math.exp(-l*e),f=(n-l)*(e*e);return d*f});const c=5/e,u=DV(o,i,c);if(e=Kt(e),isNaN(u))return{stiffness:Ke.stiffness,damping:Ke.damping,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:a*2*Math.sqrt(r*l),duration:e}}}const NV=12;function DV(e,t,n){let r=n;for(let o=1;o<NV;o++)r=r-e(r)/t(r);return r}function Zu(e,t){return e*Math.sqrt(1-t*t)}const VV=["duration","bounce"],FV=["stiffness","damping","mass"];function u0(e,t){return t.some(n=>e[n]!==void 0)}function BV(e){let t={velocity:Ke.velocity,stiffness:Ke.stiffness,damping:Ke.damping,mass:Ke.mass,isResolvedFromDuration:!1,...e};if(!u0(e,FV)&&u0(e,VV))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*ln(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Ke.mass,stiffness:o,damping:i}}else{const n=IV({...e,velocity:0});t={...t,...n,mass:Ke.mass},t.isResolvedFromDuration=!0}return t}function fi(e=Ke.visualDuration,t=Ke.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:i},{stiffness:u,damping:l,mass:d,duration:f,velocity:m,isResolvedFromDuration:h}=BV({...n,velocity:-At(n.velocity||0)}),g=m||0,v=l/(2*Math.sqrt(u*d)),w=a-i,b=At(Math.sqrt(u/d)),y=Math.abs(w)<5;r||(r=y?Ke.restSpeed.granular:Ke.restSpeed.default),o||(o=y?Ke.restDelta.granular:Ke.restDelta.default);let k;if(v<1){const x=Zu(b,v);k=L=>{const S=Math.exp(-v*b*L);return a-S*((g+v*b*w)/x*Math.sin(x*L)+w*Math.cos(x*L))}}else if(v===1)k=x=>a-Math.exp(-b*x)*(w+(g+b*w)*x);else{const x=b*Math.sqrt(v*v-1);k=L=>{const S=Math.exp(-v*b*L),E=Math.min(x*L,300);return a-S*((g+v*b*w)*Math.sinh(E)+x*w*Math.cosh(E))/x}}const C={calculatedDuration:h&&f||null,next:x=>{const L=k(x);if(h)c.done=x>=f;else{let S=x===0?g:0;v<1&&(S=x===0?Kt(g):Nw(k,x,L));const E=Math.abs(S)<=r,M=Math.abs(a-L)<=o;c.done=E&&M}return c.value=c.done?a:L,c},toString:()=>{const x=Math.min(gf(C),di),L=Iw(S=>C.next(x*S).value,x,30);return x+"ms "+L},toTransition:()=>{}};return C}fi.applyToOptions=e=>{const t=TV(e,100,fi);return e.ease=t.ease,e.duration=Kt(t.duration),e.type="keyframes",e};function Ju({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:c,max:u,restDelta:l=.5,restSpeed:d}){const f=e[0],m={done:!1,value:f},h=E=>c!==void 0&&E<c||u!==void 0&&E>u,g=E=>c===void 0?u:u===void 0||Math.abs(c-E)<Math.abs(u-E)?c:u;let v=n*t;const w=f+v,b=a===void 0?w:a(w);b!==w&&(v=b-f);const y=E=>-v*Math.exp(-E/r),k=E=>b+y(E),C=E=>{const M=y(E),P=k(E);m.done=Math.abs(M)<=l,m.value=m.done?b:P};let x,L;const S=E=>{h(m.value)&&(x=E,L=fi({keyframes:[m.value,g(m.value)],velocity:Nw(k,E,m.value),damping:o,stiffness:i,restDelta:l,restSpeed:d}))};return S(0),{calculatedDuration:null,next:E=>{let M=!1;return!L&&x===void 0&&(M=!0,C(E),S(E)),x!==void 0&&E>=x?L.next(E-x):(!M&&C(E),m)}}}function HV(e,t,n){const r=[],o=n||Cn.mix||Aw,i=e.length-1;for(let a=0;a<i;a++){let c=o(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]||Dt:t;c=_o(u,c)}r.push(c)}return r}function WV(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(cf(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=HV(t,r,o),u=c.length,l=d=>{if(a&&d<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const m=No(e[f],e[f+1],d);return c[f](m)};return n?d=>l(ln(e[0],e[i-1],d)):l}function zV(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=No(0,t,r);e.push(_e(n,1,o))}}function _V(e){const t=[0];return zV(t,e.length-1),t}function UV(e,t){return e.map(n=>n*t)}function KV(e,t){return e.map(()=>t||kw).splice(0,e.length-1)}function $o({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=rV(r)?r.map(o0):o0(r),i={done:!1,value:t[0]},a=UV(n&&n.length===t.length?n:_V(t),e),c=WV(a,t,{ease:Array.isArray(o)?o:KV(t,o)});return{calculatedDuration:e,next:u=>(i.value=c(u),i.done=u>=e,i)}}const GV=e=>e!==null;function bf(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(GV),c=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!c||r===void 0?i[c]:r}const YV={decay:Ju,inertia:Ju,tween:$o,keyframes:$o,spring:fi};function Dw(e){typeof e.type=="string"&&(e.type=YV[e.type])}class vf{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const XV=e=>e/100;class yf extends vf{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==gt.now()&&this.tick(gt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Dw(t);const{type:n=$o,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:a=0}=t;let{keyframes:c}=t;const u=n||$o;u!==$o&&typeof c[0]!="number"&&(this.mixKeyframes=_o(XV,Aw(c[0],c[1])),c=[0,100]);const l=u({...t,keyframes:c});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...c].reverse(),velocity:-a})),l.calculatedDuration===null&&(l.calculatedDuration=gf(l));const{calculatedDuration:d}=l;this.calculatedDuration=d,this.resolvedDuration=d+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:c,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:d,repeat:f,repeatType:m,repeatDelay:h,type:g,onUpdate:v,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const b=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?b<0:b>o;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let k=this.currentTime,C=r;if(f){const E=Math.min(this.currentTime,o)/c;let M=Math.floor(E),P=E%1;!P&&E>=1&&(P=1),P===1&&M--,M=Math.min(M,f+1),M%2&&(m==="reverse"?(P=1-P,h&&(P-=h/c)):m==="mirror"&&(C=a)),k=ln(0,1,P)*c}const x=y?{done:!1,value:d[0]}:C.next(k);i&&(x.value=i(x.value));let{done:L}=x;!y&&u!==null&&(L=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return S&&g!==Ju&&(x.value=bf(d,this.options,w,this.speed)),v&&v(x.value),S&&this.finish(),x}then(t,n){return this.finished.then(t,n)}get duration(){return At(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+At(t)}get time(){return At(this.currentTime)}set time(t){t=Kt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(gt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=At(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=PV,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(gt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function qV(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ar=e=>e*180/Math.PI,Qu=e=>{const t=ar(Math.atan2(e[1],e[0]));return ed(t)},ZV={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Qu,rotateZ:Qu,skewX:e=>ar(Math.atan(e[1])),skewY:e=>ar(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ed=e=>(e=e%360,e<0&&(e+=360),e),d0=Qu,f0=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),p0=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),JV={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:f0,scaleY:p0,scale:e=>(f0(e)+p0(e))/2,rotateX:e=>ed(ar(Math.atan2(e[6],e[5]))),rotateY:e=>ed(ar(Math.atan2(-e[2],e[0]))),rotateZ:d0,rotate:d0,skewX:e=>ar(Math.atan(e[4])),skewY:e=>ar(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function td(e){return e.includes("scale")?1:0}function nd(e,t){if(!e||e==="none")return td(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=JV,o=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ZV,o=c}if(!o)return td(t);const i=r[t],a=o[1].split(",").map(eF);return typeof i=="function"?i(a):a[i]}const QV=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return nd(n,t)};function eF(e){return parseFloat(e.trim())}const Kr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Gr=new Set(Kr),m0=e=>e===Ur||e===me,tF=new Set(["x","y","z"]),nF=Kr.filter(e=>!tF.has(e));function rF(e){const t=[];return nF.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const In={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>nd(t,"x"),y:(e,{transform:t})=>nd(t,"y")};In.translateX=In.x;In.translateY=In.y;const lr=new Set;let rd=!1,od=!1,sd=!1;function Vw(){if(od){const e=Array.from(lr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=rF(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,a])=>{r.getValue(i)?.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}od=!1,rd=!1,lr.forEach(e=>e.complete(sd)),lr.clear()}function Fw(){lr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(od=!0)})}function oF(){sd=!0,Fw(),Vw(),sd=!1}class wf{constructor(t,n,r,o,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(lr.add(this),rd||(rd=!0,Fe.read(Fw),Fe.resolveKeyframes(Vw))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o?.get(),a=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const c=r.readValue(n,a);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=a),o&&i===void 0&&o.set(t[0])}qV(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),lr.delete(this)}cancel(){this.state==="scheduled"&&(lr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const sF=e=>e.startsWith("--");function iF(e,t,n){sF(t)?e.style.setProperty(t,n):e.style[t]=n}const aF={};function Bw(e,t){const n=pw(e);return()=>aF[t]??n()}const cF=Bw(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Hw=Bw(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),vo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,h0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vo([0,.65,.55,1]),circOut:vo([.55,0,1,.45]),backIn:vo([.31,.01,.66,-.59]),backOut:vo([.33,1.53,.69,.99])};function Ww(e,t){if(e)return typeof e=="function"?Hw()?Iw(e,t):"ease-out":Ew(e)?vo(e):Array.isArray(e)?e.map(n=>Ww(n,t)||h0.easeOut):h0[e]}function lF(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:c="easeOut",times:u}={},l=void 0){const d={[t]:n};u&&(d.offset=u);const f=Ww(c,o);Array.isArray(f)&&(d.easing=f);const m={delay:r,duration:o,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"};return l&&(m.pseudoElement=l),e.animate(d,m)}function zw(e){return typeof e=="function"&&"applyToOptions"in e}function uF({type:e,...t}){return zw(e)&&Hw()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class _w extends vf{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:c,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=t,cf(typeof t.type!="string");const l=uF(t);this.animation=lF(n,r,o,l,i),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=bf(o,this.options,c,this.speed);this.updateMotionValue?this.updateMotionValue(d):iF(n,r,d),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return At(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+At(t)}get time(){return At(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Kt(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&cF()?(this.animation.timeline=t,Dt):n(this)}}const Uw={anticipate:ww,backInOut:yw,circInOut:Cw};function dF(e){return e in Uw}function fF(e){typeof e.ease=="string"&&dF(e.ease)&&(e.ease=Uw[e.ease])}const iu=10;class pF extends _w{constructor(t){fF(t),Dw(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new yf({...a,autoplay:!1}),u=Math.max(iu,gt.now()-this.startTime),l=ln(0,iu,u-iu);n.setWithVelocity(c.sample(Math.max(0,u-l)).value,c.sample(u).value,l),c.stop()}}const g0=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gt.test(e)||e==="0")&&!e.startsWith("url("));function mF(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function hF(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],a=g0(o,t),c=g0(i,t);return!a||!c?!1:mF(e)||(n==="spring"||zw(n))&&r}function id(e){e.duration=0,e.type="keyframes"}const gF=new Set(["opacity","clipPath","filter","transform"]),bF=pw(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function vF(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=t.owner.getProps();return bF()&&n&&gF.has(n)&&(n!=="transform"||!l)&&!u&&!r&&o!=="mirror"&&i!==0&&a!=="inertia"}const yF=40;class wF extends vf{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",keyframes:c,name:u,motionValue:l,element:d,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=gt.now();const m={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:a,name:u,motionValue:l,element:d,...f},h=d?.KeyframeResolver||wf;this.keyframeResolver=new h(c,(g,v,w)=>this.onKeyframesResolved(g,v,m,!w),u,l,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:a,velocity:c,delay:u,isHandoff:l,onUpdate:d}=r;this.resolvedAt=gt.now(),hF(t,i,a,c)||((Cn.instantAnimations||!u)&&d?.(bf(t,r,n)),t[0]=t[t.length-1],id(r),r.repeat=0);const m={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>yF?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!l&&vF(m),g=m.motionValue?.owner?.current,v=h?new pF({...m,element:g}):new yf(m);v.finished.then(()=>{this.notifyFinished()}).catch(Dt),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),oF()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Kw(e,t,n,r=0,o=1){const i=Array.from(e).sort((l,d)=>l.sortNodePosition(d)).indexOf(t),a=e.size,c=(a-1)*r;return typeof n=="function"?n(i,a):o===1?i*r:c-i*r}const xF=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function CF(e){const t=xF.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function Gw(e,t,n=1){const[r,o]=CF(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return uw(a)?parseFloat(a):a}return ff(o)?Gw(o,t,n+1):o}const kF={type:"spring",stiffness:500,damping:25,restSpeed:10},EF=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),LF={type:"keyframes",duration:.8},SF={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},$F=(e,{keyframes:t})=>t.length>2?LF:Gr.has(e)?e.startsWith("scale")?EF(t[1]):kF:SF,jF=e=>e!==null;function OF(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(jF),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}function Yw(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function xf(e,t){const n=e?.[t]??e?.default??e;return n!==e?Yw(n,e):n}function RF({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:c,from:u,elapsed:l,...d}){return!!Object.keys(d).length}const Cf=(e,t,n,r={},o,i)=>a=>{const c=xf(r,e)||{},u=c.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Kt(u);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-l,onUpdate:m=>{t.set(m),c.onUpdate&&c.onUpdate(m)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:i?void 0:o};RF(c)||Object.assign(d,$F(e,d)),d.duration&&(d.duration=Kt(d.duration)),d.repeatDelay&&(d.repeatDelay=Kt(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(id(d),d.delay===0&&(f=!0)),(Cn.instantAnimations||Cn.skipAnimations||o?.shouldSkipAnimations)&&(f=!0,id(d),d.delay=0),d.allowFlatten=!c.type&&!c.ease,f&&!i&&t.get()!==void 0){const m=OF(d.keyframes,c);if(m!==void 0){Fe.update(()=>{d.onUpdate(m),d.onComplete()});return}}return c.isSync?new yf(d):new wF(d)};function b0(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function kf(e,t,n,r){if(typeof t=="function"){const[o,i]=b0(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=b0(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function Rr(e,t,n){const r=e.getProps();return kf(r,t,n!==void 0?n:r.custom,e)}const Xw=new Set(["width","height","top","left","right","bottom",...Kr]),v0=30,MF=e=>!isNaN(parseFloat(e));class PF{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=gt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=gt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=MF(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new lf);const r=this.events[t].add(n);return t==="change"?()=>{r(),Fe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=gt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>v0)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,v0);return mw(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Vr(e,t){return new PF(e,t)}const ad=e=>Array.isArray(e);function TF(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Vr(n))}function AF(e){return ad(e)?e[e.length-1]||0:e}function IF(e,t){const n=Rr(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const a in i){const c=AF(i[a]);TF(e,a,c)}}const ut=e=>!!(e&&e.getVelocity);function NF(e){return!!(ut(e)&&e.add)}function cd(e,t){const n=e.getValue("willChange");if(NF(n))return n.add(t);if(!n&&Cn.WillChange){const r=new Cn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ef(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const DF="framerAppearId",qw="data-"+Ef(DF);function Zw(e){return e.props[qw]}function VF({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Jw(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i,transitionEnd:a,...c}=t;const u=e.getDefaultTransition();i=i?Yw(i,u):u;const l=i?.reduceMotion;r&&(i=r);const d=[],f=o&&e.animationState&&e.animationState.getState()[o];for(const m in c){const h=e.getValue(m,e.latestValues[m]??null),g=c[m];if(g===void 0||f&&VF(f,m))continue;const v={delay:n,...xf(i||{},m)},w=h.get();if(w!==void 0&&!h.isAnimating&&!Array.isArray(g)&&g===w&&!v.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const C=Zw(e);if(C){const x=window.MotionHandoffAnimation(C,m,Fe);x!==null&&(v.startTime=x,b=!0)}}cd(e,m);const y=l??e.shouldReduceMotion;h.start(Cf(m,h,g,y&&Xw.has(m)?{type:!1}:v,e,b));const k=h.animation;k&&d.push(k)}if(a){const m=()=>Fe.update(()=>{a&&IF(e,a)});d.length?Promise.all(d).then(m):m()}return d}function ld(e,t,n={}){const r=Rr(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Jw(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:d,staggerDirection:f}=o;return FF(e,t,u,l,d,f,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[u,l]=c==="beforeChildren"?[i,a]:[a,i];return u().then(()=>l())}else return Promise.all([i(),a(n.delay)])}function FF(e,t,n=0,r=0,o=0,i=1,a){const c=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),c.push(ld(u,t,{...a,delay:n+(typeof r=="function"?0:r)+Kw(e.variantChildren,u,r,o,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(c)}function BF(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>ld(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=ld(e,t,n);else{const o=typeof t=="function"?Rr(e,t,n.custom):t;r=Promise.all(Jw(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const HF={test:e=>e==="auto",parse:e=>e},Qw=e=>t=>t.test(e),ex=[Ur,me,on,Mn,gV,hV,HF],y0=e=>ex.find(Qw(e));function WF(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||fw(e):!0}const zF=new Set(["brightness","contrast","saturate","opacity"]);function _F(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(pf)||[];if(!r)return e;const o=n.replace(r,"");let i=zF.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const UF=/\b([a-z-]*)\(.*?\)/gu,ud={...Gt,getAnimatableNone:e=>{const t=e.match(UF);return t?t.map(_F).join(" "):e}},dd={...Gt,getAnimatableNone:e=>{const t=Gt.parse(e);return Gt.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},w0={...Ur,transform:Math.round},KF={rotate:Mn,rotateX:Mn,rotateY:Mn,rotateZ:Mn,scale:hs,scaleX:hs,scaleY:hs,scaleZ:hs,skew:Mn,skewX:Mn,skewY:Mn,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:Do,originX:i0,originY:i0,originZ:me},Lf={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,top:me,right:me,bottom:me,left:me,inset:me,insetBlock:me,insetBlockStart:me,insetBlockEnd:me,insetInline:me,insetInlineStart:me,insetInlineEnd:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,paddingBlock:me,paddingBlockStart:me,paddingBlockEnd:me,paddingInline:me,paddingInlineStart:me,paddingInlineEnd:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,marginBlock:me,marginBlockStart:me,marginBlockEnd:me,marginInline:me,marginInlineStart:me,marginInlineEnd:me,fontSize:me,backgroundPositionX:me,backgroundPositionY:me,...KF,zIndex:w0,fillOpacity:Do,strokeOpacity:Do,numOctaves:w0},GF={...Lf,color:Ze,backgroundColor:Ze,outlineColor:Ze,fill:Ze,stroke:Ze,borderColor:Ze,borderTopColor:Ze,borderRightColor:Ze,borderBottomColor:Ze,borderLeftColor:Ze,filter:ud,WebkitFilter:ud,mask:dd,WebkitMask:dd},tx=e=>GF[e],YF=new Set([ud,dd]);function nx(e,t){let n=tx(e);return YF.has(n)||(n=Gt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const XF=new Set(["auto","none","0"]);function qF(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!XF.has(i)&&Vo(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=nx(n,o)}class ZF extends wf{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),ff(f))){const m=Gw(f,n.current);m!==void 0&&(t[d]=m),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!Xw.has(r)||t.length!==2)return;const[o,i]=t,a=y0(o),c=y0(i),u=s0(o),l=s0(i);if(u!==l&&In[r]){this.needsMeasurement=!0;return}if(a!==c)if(m0(a)&&m0(c))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else In[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||WF(t[o]))&&r.push(o);r.length&&qF(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=In[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,a=r[i];r[i]=In[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([c,u])=>{t.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const JF=new Set(["opacity","clipPath","filter","transform"]);function rx(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(r=>r!=null)}const ox=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function fd(e){return dw(e)&&"offsetHeight"in e}const{schedule:Sf}=Lw(queueMicrotask,!1),Ut={x:!1,y:!1};function sx(){return Ut.x||Ut.y}function QF(e){return e==="x"||e==="y"?Ut[e]?null:(Ut[e]=!0,()=>{Ut[e]=!1}):Ut.x||Ut.y?null:(Ut.x=Ut.y=!0,()=>{Ut.x=Ut.y=!1})}function ix(e,t){const n=rx(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function eB(e){return!(e.pointerType==="touch"||sx())}function tB(e,t,n={}){const[r,o,i]=ix(e,n);return r.forEach(a=>{let c=!1,u=!1,l;const d=()=>{a.removeEventListener("pointerleave",g)},f=w=>{l&&(l(w),l=void 0),d()},m=w=>{c=!1,window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",m),u&&(u=!1,f(w))},h=()=>{c=!0,window.addEventListener("pointerup",m,o),window.addEventListener("pointercancel",m,o)},g=w=>{if(w.pointerType!=="touch"){if(c){u=!0;return}f(w)}},v=w=>{if(!eB(w))return;u=!1;const b=t(a,w);typeof b=="function"&&(l=b,a.addEventListener("pointerleave",g,o))};a.addEventListener("pointerenter",v,o),a.addEventListener("pointerdown",h,o)}),i}const ax=(e,t)=>t?e===t?!0:ax(e,t.parentElement):!1,$f=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,nB=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function rB(e){return nB.has(e.tagName)||e.isContentEditable===!0}const oB=new Set(["INPUT","SELECT","TEXTAREA"]);function sB(e){return oB.has(e.tagName)||e.isContentEditable===!0}const Ns=new WeakSet;function x0(e){return t=>{t.key==="Enter"&&e(t)}}function au(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const iB=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=x0(()=>{if(Ns.has(n))return;au(n,"down");const o=x0(()=>{au(n,"up")}),i=()=>au(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function C0(e){return $f(e)&&!sx()}const k0=new WeakSet;function aB(e,t,n={}){const[r,o,i]=ix(e,n),a=c=>{const u=c.currentTarget;if(!C0(c)||k0.has(c))return;Ns.add(u),n.stopPropagation&&k0.add(c);const l=t(u,c),d=(h,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",m),Ns.has(u)&&Ns.delete(u),C0(h)&&typeof l=="function"&&l(h,{success:g})},f=h=>{d(h,u===window||u===document||n.useGlobalTarget||ax(u,h.target))},m=h=>{d(h,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",m,o)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,o),fd(c)&&(c.addEventListener("focus",l=>iB(l,o)),!rB(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),i}function jf(e){return dw(e)&&"ownerSVGElement"in e}const Ds=new WeakMap;let Vs;const cx=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:jf(r)&&"getBBox"in r?r.getBBox()[t]:r[n],cB=cx("inline","width","offsetWidth"),lB=cx("block","height","offsetHeight");function uB({target:e,borderBoxSize:t}){Ds.get(e)?.forEach(n=>{n(e,{get width(){return cB(e,t)},get height(){return lB(e,t)}})})}function dB(e){e.forEach(uB)}function fB(){typeof ResizeObserver>"u"||(Vs=new ResizeObserver(dB))}function pB(e,t){Vs||fB();const n=rx(e);return n.forEach(r=>{let o=Ds.get(r);o||(o=new Set,Ds.set(r,o)),o.add(t),Vs?.observe(r)}),()=>{n.forEach(r=>{const o=Ds.get(r);o?.delete(t),o?.size||Vs?.unobserve(r)})}}const Fs=new Set;let kr;function mB(){kr=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Fs.forEach(t=>t(e))},window.addEventListener("resize",kr)}function hB(e){return Fs.add(e),kr||mB(),()=>{Fs.delete(e),!Fs.size&&typeof kr=="function"&&(window.removeEventListener("resize",kr),kr=void 0)}}function E0(e,t){return typeof e=="function"?hB(e):pB(e,t)}function gB(e){return jf(e)&&e.tagName==="svg"}const bB=[...ex,Ze,Gt],vB=e=>bB.find(Qw(e)),L0=()=>({translate:0,scale:1,origin:0,originPoint:0}),Er=()=>({x:L0(),y:L0()}),S0=()=>({min:0,max:0}),et=()=>({x:S0(),y:S0()}),yB=new WeakMap;function Hi(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Fo(e){return typeof e=="string"||Array.isArray(e)}const Of=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Rf=["initial",...Of];function Wi(e){return Hi(e.animate)||Rf.some(t=>Fo(e[t]))}function lx(e){return!!(Wi(e)||e.variants)}function wB(e,t,n){for(const r in t){const o=t[r],i=n[r];if(ut(o))e.addValue(r,o);else if(ut(i))e.addValue(r,Vr(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(r);e.addValue(r,Vr(a!==void 0?a:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const pd={current:null},ux={current:!1},xB=typeof window<"u";function CB(){if(ux.current=!0,!!xB)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>pd.current=e.matches;e.addEventListener("change",t),t()}else pd.current=!1}const $0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let pi={};function dx(e){pi=e}function kB(){return pi}class EB{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,skipAnimations:i,blockInitialAnimation:a,visualState:c},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=wf,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=gt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,Fe.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=c;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=i,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=Wi(n),this.isVariantNode=lx(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in m){const g=m[h];l[h]!==void 0&&ut(g)&&g.set(l[h])}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,yB.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(ux.current||CB(),this.shouldReduceMotion=pd.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),zn(this.notifyUpdate),zn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&JF.has(t)&&this.current instanceof HTMLElement){const{factory:a,keyframes:c,times:u,ease:l,duration:d}=n.accelerate,f=new _w({element:this.current,name:t,keyframes:c,times:u,ease:l,duration:Kt(d)}),m=a(f);this.valueSubscriptions.set(t,()=>{m(),f.cancel()});return}const r=Gr.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Fe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in pi){const n=pi[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):et()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<$0.length;r++){const o=$0[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,a=t[i];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=wB(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Vr(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(uw(r)||fw(r))?r=parseFloat(r):!vB(r)&&Gt.test(n)&&(r=nx(t,n)),this.setBaseTarget(t,ut(r)?r.get():r)),ut(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const i=kf(this.props,n,this.presenceContext?.custom);i&&(r=i[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ut(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new lf),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Sf.render(this.render)}}class fx extends EB{constructor(){super(...arguments),this.KeyframeResolver=ZF}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ut(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Xn{constructor(t){this.isMounted=!1,this.node=t}update(){}}function px({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function LB({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function SB(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function cu(e){return e===void 0||e===1}function md({scale:e,scaleX:t,scaleY:n}){return!cu(e)||!cu(t)||!cu(n)}function sr(e){return md(e)||mx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function mx(e){return j0(e.x)||j0(e.y)}function j0(e){return e&&e!=="0%"}function mi(e,t,n){const r=e-n,o=t*r;return n+o}function O0(e,t,n,r,o){return o!==void 0&&(e=mi(e,o,r)),mi(e,n,r)+t}function hd(e,t=0,n=1,r,o){e.min=O0(e.min,t,n,r,o),e.max=O0(e.max,t,n,r,o)}function hx(e,{x:t,y:n}){hd(e.x,t.translate,t.scale,t.originPoint),hd(e.y,n.translate,n.scale,n.originPoint)}const R0=.999999999999,M0=1.0000000000001;function $B(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let c=0;c<o;c++){i=n[c],a=i.projectionDelta;const{visualElement:u}=i.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Sr(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,hx(e,a)),r&&sr(i.latestValues)&&Sr(e,i.latestValues))}t.x<M0&&t.x>R0&&(t.x=1),t.y<M0&&t.y>R0&&(t.y=1)}function Lr(e,t){e.min=e.min+t,e.max=e.max+t}function P0(e,t,n,r,o=.5){const i=_e(e.min,e.max,o);hd(e,t,n,i,r)}function Sr(e,t){P0(e.x,t.x,t.scaleX,t.scale,t.originX),P0(e.y,t.y,t.scaleY,t.scale,t.originY)}function gx(e,t){return px(SB(e.getBoundingClientRect(),t))}function jB(e,t,n){const r=gx(e,n),{scroll:o}=t;return o&&(Lr(r.x,o.offset.x),Lr(r.y,o.offset.y)),r}const OB={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},RB=Kr.length;function MB(e,t,n){let r="",o=!0;for(let i=0;i<RB;i++){const a=Kr[i],c=e[a];if(c===void 0)continue;let u=!0;if(typeof c=="number")u=c===(a.startsWith("scale")?1:0);else{const l=parseFloat(c);u=a.startsWith("scale")?l===1:l===0}if(!u||n){const l=ox(c,Lf[a]);if(!u){o=!1;const d=OB[a]||a;r+=`${d}(${l}) `}n&&(t[a]=l)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Mf(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let a=!1,c=!1;for(const u in t){const l=t[u];if(Gr.has(u)){a=!0;continue}else if($w(u)){o[u]=l;continue}else{const d=ox(l,Lf[u]);u.startsWith("origin")?(c=!0,i[u]=d):r[u]=d}}if(t.transform||(a||n?r.transform=MB(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:l="50%",originZ:d=0}=i;r.transformOrigin=`${u} ${l} ${d}`}}function bx(e,{style:t,vars:n},r,o){const i=e.style;let a;for(a in t)i[a]=t[a];o?.applyProjectionStyles(i,r);for(a in n)i.setProperty(a,n[a])}function T0(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const uo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(me.test(e))e=parseFloat(e);else return e;const n=T0(e,t.target.x),r=T0(e,t.target.y);return`${n}% ${r}%`}},PB={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Gt.parse(e);if(o.length>5)return r;const i=Gt.createTransformer(e),a=typeof o[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;o[0+a]/=c,o[1+a]/=u;const l=_e(c,u,.5);return typeof o[2+a]=="number"&&(o[2+a]/=l),typeof o[3+a]=="number"&&(o[3+a]/=l),i(o)}},gd={borderRadius:{...uo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:uo,borderTopRightRadius:uo,borderBottomLeftRadius:uo,borderBottomRightRadius:uo,boxShadow:PB};function vx(e,{layout:t,layoutId:n}){return Gr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!gd[e]||e==="opacity")}function Pf(e,t,n){const r=e.style,o=t?.style,i={};if(!r)return i;for(const a in r)(ut(r[a])||o&&ut(o[a])||vx(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}function TB(e){return window.getComputedStyle(e)}class AB extends fx{constructor(){super(...arguments),this.type="html",this.renderInstance=bx}readValueFromInstance(t,n){if(Gr.has(n))return this.projection?.isProjecting?td(n):QV(t,n);{const r=TB(t),o=($w(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return gx(t,n)}build(t,n,r){Mf(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Pf(t,n,r)}}const IB={offset:"stroke-dashoffset",array:"stroke-dasharray"},NB={offset:"strokeDashoffset",array:"strokeDasharray"};function DB(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?IB:NB;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const VB=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function yx(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:a=0,...c},u,l,d){if(Mf(e,c,l),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:m}=e;f.transform&&(m.transform=f.transform,delete f.transform),(m.transform||f.transformOrigin)&&(m.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),m.transform&&(m.transformBox=d?.transformBox??"fill-box",delete f.transformBox);for(const h of VB)f[h]!==void 0&&(m[h]=f[h],delete f[h]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&DB(f,o,i,a,!1)}const wx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),xx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function FB(e,t,n,r){bx(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(wx.has(o)?o:Ef(o),t.attrs[o])}function Cx(e,t,n){const r=Pf(e,t,n);for(const o in e)if(ut(e[o])||ut(t[o])){const i=Kr.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}class BB extends fx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=et}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Gr.has(n)){const r=tx(n);return r&&r.default||0}return n=wx.has(n)?n:Ef(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Cx(t,n,r)}build(t,n,r){yx(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){FB(t,n,r,o)}mount(t){this.isSVGTag=xx(t.tagName),super.mount(t)}}const HB=Rf.length;function kx(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?kx(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<HB;n++){const r=Rf[n],o=e.props[r];(Fo(o)||o===!1)&&(t[r]=o)}return t}function Ex(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const WB=[...Of].reverse(),zB=Of.length;function _B(e){return t=>Promise.all(t.map(({animation:n,options:r})=>BF(e,n,r)))}function UB(e){let t=_B(e),n=A0(),r=!0;const o=u=>(l,d)=>{const f=Rr(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:m,transitionEnd:h,...g}=f;l={...l,...g,...h}}return l};function i(u){t=u(e)}function a(u){const{props:l}=e,d=kx(e.parent)||{},f=[],m=new Set;let h={},g=1/0;for(let w=0;w<zB;w++){const b=WB[w],y=n[b],k=l[b]!==void 0?l[b]:d[b],C=Fo(k),x=b===u?y.isActive:null;x===!1&&(g=w);let L=k===d[b]&&k!==l[b]&&C;if(L&&r&&e.manuallyAnimateOnMount&&(L=!1),y.protectedKeys={...h},!y.isActive&&x===null||!k&&!y.prevProp||Hi(k)||typeof k=="boolean")continue;if(b==="exit"&&y.isActive&&x!==!0){y.prevResolvedValues&&(h={...h,...y.prevResolvedValues});continue}const S=KB(y.prevProp,k);let E=S||b===u&&y.isActive&&!L&&C||w>g&&C,M=!1;const P=Array.isArray(k)?k:[k];let D=P.reduce(o(b),{});x===!1&&(D={});const{prevResolvedValues:T={}}=y,j={...T,...D},H=B=>{E=!0,m.has(B)&&(M=!0,m.delete(B)),y.needsAnimating[B]=!0;const $=e.getValue(B);$&&($.liveStyle=!1)};for(const B in j){const $=D[B],z=T[B];if(h.hasOwnProperty(B))continue;let R=!1;ad($)&&ad(z)?R=!Ex($,z):R=$!==z,R?$!=null?H(B):m.add(B):$!==void 0&&m.has(B)?H(B):y.protectedKeys[B]=!0}y.prevProp=k,y.prevResolvedValues=D,y.isActive&&(h={...h,...D}),r&&e.blockInitialAnimation&&(E=!1);const A=L&&S;E&&(!A||M)&&f.push(...P.map(B=>{const $={type:b};if(typeof B=="string"&&r&&!A&&e.manuallyAnimateOnMount&&e.parent){const{parent:z}=e,R=Rr(z,B);if(z.enteringChildren&&R){const{delayChildren:q}=R.transition||{};$.delay=Kw(z.enteringChildren,e,q)}}return{animation:B,options:$}}))}if(m.size){const w={};if(typeof l.initial!="boolean"){const b=Rr(e,Array.isArray(l.initial)?l.initial[0]:l.initial);b&&b.transition&&(w.transition=b.transition)}m.forEach(b=>{const y=e.getBaseTarget(b),k=e.getValue(b);k&&(k.liveStyle=!0),w[b]=y??null}),f.push({animation:w})}let v=!!f.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(f):Promise.resolve()}function c(u,l){if(n[u].isActive===l)return Promise.resolve();e.variantChildren?.forEach(f=>f.animationState?.setActive(u,l)),n[u].isActive=l;const d=a(u);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:a,setActive:c,setAnimateFunction:i,getState:()=>n,reset:()=>{n=A0()}}}function KB(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ex(t,e):!1}function tr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function A0(){return{animate:tr(!0),whileInView:tr(),whileHover:tr(),whileTap:tr(),whileDrag:tr(),whileFocus:tr(),exit:tr()}}function I0(e,t){e.min=t.min,e.max=t.max}function zt(e,t){I0(e.x,t.x),I0(e.y,t.y)}function N0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Lx=1e-4,GB=1-Lx,YB=1+Lx,Sx=.01,XB=0-Sx,qB=0+Sx;function bt(e){return e.max-e.min}function ZB(e,t,n){return Math.abs(e-t)<=n}function D0(e,t,n,r=.5){e.origin=r,e.originPoint=_e(t.min,t.max,e.origin),e.scale=bt(n)/bt(t),e.translate=_e(n.min,n.max,e.origin)-e.originPoint,(e.scale>=GB&&e.scale<=YB||isNaN(e.scale))&&(e.scale=1),(e.translate>=XB&&e.translate<=qB||isNaN(e.translate))&&(e.translate=0)}function jo(e,t,n,r){D0(e.x,t.x,n.x,r?r.originX:void 0),D0(e.y,t.y,n.y,r?r.originY:void 0)}function V0(e,t,n){e.min=n.min+t.min,e.max=e.min+bt(t)}function JB(e,t,n){V0(e.x,t.x,n.x),V0(e.y,t.y,n.y)}function F0(e,t,n){e.min=t.min-n.min,e.max=e.min+bt(t)}function hi(e,t,n){F0(e.x,t.x,n.x),F0(e.y,t.y,n.y)}function B0(e,t,n,r,o){return e-=t,e=mi(e,1/n,r),o!==void 0&&(e=mi(e,1/o,r)),e}function QB(e,t=0,n=1,r=.5,o,i=e,a=e){if(on.test(t)&&(t=parseFloat(t),t=_e(a.min,a.max,t/100)-a.min),typeof t!="number")return;let c=_e(i.min,i.max,r);e===i&&(c-=t),e.min=B0(e.min,t,n,c,o),e.max=B0(e.max,t,n,c,o)}function H0(e,t,[n,r,o],i,a){QB(e,t[n],t[r],t[o],t.scale,i,a)}const eH=["x","scaleX","originX"],tH=["y","scaleY","originY"];function W0(e,t,n,r){H0(e.x,t,eH,n?n.x:void 0,r?r.x:void 0),H0(e.y,t,tH,n?n.y:void 0,r?r.y:void 0)}function z0(e){return e.translate===0&&e.scale===1}function $x(e){return z0(e.x)&&z0(e.y)}function _0(e,t){return e.min===t.min&&e.max===t.max}function nH(e,t){return _0(e.x,t.x)&&_0(e.y,t.y)}function U0(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function jx(e,t){return U0(e.x,t.x)&&U0(e.y,t.y)}function K0(e){return bt(e.x)/bt(e.y)}function G0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Qt(e){return[e("x"),e("y")]}function rH(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=n?.z||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:d,rotateX:f,rotateY:m,skewX:h,skewY:g}=n;l&&(r=`perspective(${l}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),m&&(r+=`rotateY(${m}deg) `),h&&(r+=`skewX(${h}deg) `),g&&(r+=`skewY(${g}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const Ox=["TopLeft","TopRight","BottomLeft","BottomRight"],oH=Ox.length,Y0=e=>typeof e=="string"?parseFloat(e):e,X0=e=>typeof e=="number"||me.test(e);function sH(e,t,n,r,o,i){o?(e.opacity=_e(0,n.opacity??1,iH(r)),e.opacityExit=_e(t.opacity??1,0,aH(r))):i&&(e.opacity=_e(t.opacity??1,n.opacity??1,r));for(let a=0;a<oH;a++){const c=`border${Ox[a]}Radius`;let u=q0(t,c),l=q0(n,c);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||X0(u)===X0(l)?(e[c]=Math.max(_e(Y0(u),Y0(l),r),0),(on.test(l)||on.test(u))&&(e[c]+="%")):e[c]=l}(t.rotate||n.rotate)&&(e.rotate=_e(t.rotate||0,n.rotate||0,r))}function q0(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const iH=Rx(0,.5,xw),aH=Rx(.5,.95,Dt);function Rx(e,t,n){return r=>r<e?0:r>t?1:n(No(e,t,r))}function cH(e,t,n){const r=ut(e)?e:Vr(e);return r.start(Cf("",r,t,n)),r.animation}function Bo(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const lH=(e,t)=>e.depth-t.depth;class uH{constructor(){this.children=[],this.isDirty=!1}add(t){af(this.children,t),this.isDirty=!0}remove(t){li(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(lH),this.isDirty=!1,this.children.forEach(t)}}function dH(e,t){const n=gt.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(zn(r),e(i-t))};return Fe.setup(r,!0),()=>zn(r)}function Bs(e){return ut(e)?e.get():e}class fH{constructor(){this.members=[]}add(t){af(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const o=r.instance;o&&o.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&li(this.members,r)}t.scheduleRender()}remove(t){if(li(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o],a=i.instance;if(i.isPresent!==!1&&(!a||a.isConnected!==!1)){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender();const o=r.options.layoutDependency,i=t.options.layoutDependency;if(!(o!==void 0&&i!==void 0&&o===i)){const u=r.instance;u&&u.isConnected===!1&&!r.snapshot||(t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:c}=t.options;c===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Hs={hasAnimatedSinceResize:!0,hasEverUpdated:!1},lu=["","X","Y","Z"],pH=1e3;let mH=0;function uu(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Mx(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Zw(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Fe,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Mx(r)}function Px({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},c=t?.()){this.id=mH++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(bH),this.nodes.forEach(xH),this.nodes.forEach(CH),this.nodes.forEach(vH)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new uH)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new lf),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const u=this.eventHandlers.get(a);u&&u.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=jf(a)&&!gB(a),this.instance=a;const{layoutId:c,layout:u,visualElement:l}=this.options;if(l&&!l.current&&l.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||c)&&(this.isLayoutDirty=!0),e){let d,f=0;const m=()=>this.root.updateBlockedByResize=!1;Fe.read(()=>{f=window.innerWidth}),e(a,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,d&&d(),d=dH(m,250),Hs.hasAnimatedSinceResize&&(Hs.hasAnimatedSinceResize=!1,this.nodes.forEach(Q0)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&l&&(c||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:m,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||l.getDefaultTransition()||$H,{onLayoutAnimationStart:v,onLayoutAnimationComplete:w}=l.getProps(),b=!this.targetLayout||!jx(this.targetLayout,h),y=!f&&m;if(this.options.layoutRoot||this.resumeFrom||y||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const k={...xf(g,"layout"),onPlay:v,onComplete:w};(l.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k),this.setAnimationOrigin(d,y)}else f||Q0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),zn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(kH),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Mx(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:c,layout:u}=this.options;if(c===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Z0);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(J0);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(wH),this.nodes.forEach(hH),this.nodes.forEach(gH)):this.nodes.forEach(J0),this.clearAllSnapshots();const c=gt.now();rt.delta=ln(0,1e3/60,c-rt.timestamp),rt.timestamp=c,rt.isProcessing=!0,tu.update.process(rt),tu.preRender.process(rt),tu.render.process(rt),rt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(yH),this.sharedNodes.forEach(EH)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Fe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Fe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!bt(this.snapshot.measuredBox.x)&&!bt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u<this.path.length;u++)this.path[u].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=et(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c&&this.instance){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!$x(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,d=l!==this.prevTransformTemplateValue;a&&this.instance&&(c||sr(this.latestValues)||d)&&(o(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let u=this.removeElementScroll(c);return a&&(u=this.removeTransform(u)),jH(u),{animationId:this.root.animationId,measuredBox:c,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return et();const c=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(OH))){const{scroll:l}=this.root;l&&(Lr(c.x,l.offset.x),Lr(c.y,l.offset.y))}return c}removeElementScroll(a){const c=et();if(zt(c,a),this.scroll?.wasRoot)return c;for(let u=0;u<this.path.length;u++){const l=this.path[u],{scroll:d,options:f}=l;l!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&zt(c,a),Lr(c.x,d.offset.x),Lr(c.y,d.offset.y))}return c}applyTransform(a,c=!1){const u=et();zt(u,a);for(let l=0;l<this.path.length;l++){const d=this.path[l];!c&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Sr(u,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),sr(d.latestValues)&&Sr(u,d.latestValues)}return sr(this.latestValues)&&Sr(u,this.latestValues),u}removeTransform(a){const c=et();zt(c,a);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!sr(l.latestValues))continue;md(l.latestValues)&&l.updateSnapshot();const d=et(),f=l.measurePageBox();zt(d,f),W0(c,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,d)}return sr(this.latestValues)&&W0(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==rt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(a||u&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!this.layout||!(d||f))return;this.resolvedRelativeTargetAt=rt.timestamp;const m=this.getClosestProjectingParent();m&&this.linkedParentVersion!==m.layoutVersion&&!m.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(m&&m.layout?this.createRelativeTarget(m,this.layout.layoutBox,m.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=et(),this.targetWithTransforms=et()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),JB(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):zt(this.target,this.layout.layoutBox),hx(this.target,this.targetDelta)):zt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?this.createRelativeTarget(m,this.target,m.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||md(this.parent.latestValues)||mx(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,c,u){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=et(),this.relativeTargetOrigin=et(),hi(this.relativeTargetOrigin,c,u),zt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const a=this.getLead(),c=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===rt.timestamp&&(u=!1),u)return;const{layout:l,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(l||d))return;zt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,m=this.treeScale.y;$B(this.layoutCorrected,this.treeScale,this.path,c),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=et());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(N0(this.prevProjectionDelta.x,this.projectionDelta.x),N0(this.prevProjectionDelta.y,this.projectionDelta.y)),jo(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==m||!G0(this.projectionDelta.x,this.prevProjectionDelta.x)||!G0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Er(),this.projectionDelta=Er(),this.projectionDeltaWithTransform=Er()}setAnimationOrigin(a,c=!1){const u=this.snapshot,l=u?u.latestValues:{},d={...this.latestValues},f=Er();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const m=et(),h=u?u.source:void 0,g=this.layout?this.layout.source:void 0,v=h!==g,w=this.getStack(),b=!w||w.members.length<=1,y=!!(v&&!b&&this.options.crossfade===!0&&!this.path.some(SH));this.animationProgress=0;let k;this.mixTargetDelta=C=>{const x=C/1e3;ev(f.x,a.x,x),ev(f.y,a.y,x),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(hi(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),LH(this.relativeTarget,this.relativeTargetOrigin,m,x),k&&nH(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=et()),zt(k,this.relativeTarget)),v&&(this.animationValues=d,sH(d,l,this.latestValues,x,y,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(zn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Fe.update(()=>{Hs.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Vr(0)),this.motionValue.jump(0,!1),this.currentAnimation=cH(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(pH),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:u,layout:l,latestValues:d}=a;if(!(!c||!u||!l)){if(this!==a&&this.layout&&l&&Tx(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||et();const f=bt(this.layout.layoutBox.x);u.x.min=a.target.x.min,u.x.max=u.x.min+f;const m=bt(this.layout.layoutBox.y);u.y.min=a.target.y.min,u.y.max=u.y.min+m}zt(c,u),Sr(c,d),jo(this.projectionDeltaWithTransform,this.layoutCorrected,c,d)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new fH),this.sharedNodes.get(a).add(c);const l=c.options.initialPromotionConfig;c.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){const{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:u}=a;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(c=!0),!c)return;const l={};u.z&&uu("z",a,l,this.animationValues);for(let d=0;d<lu.length;d++)uu(`rotate${lu[d]}`,a,l,this.animationValues),uu(`skew${lu[d]}`,a,l,this.animationValues);a.render();for(const d in l)a.setStaticValue(d,l[d]),this.animationValues&&(this.animationValues[d]=l[d]);a.scheduleRender()}applyProjectionStyles(a,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Bs(c?.pointerEvents)||"",a.transform=u?u(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Bs(c?.pointerEvents)||""),this.hasProjected&&!sr(this.latestValues)&&(a.transform=u?u({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=l.animationValues||l.latestValues;this.applyTransformsToTarget();let f=rH(this.projectionDeltaWithTransform,this.treeScale,d);u&&(f=u(d,f)),a.transform=f;const{x:m,y:h}=this.projectionDelta;a.transformOrigin=`${m.origin*100}% ${h.origin*100}% 0`,l.animationValues?a.opacity=l===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:a.opacity=l===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in gd){if(d[g]===void 0)continue;const{correct:v,applyTo:w,isCSSVariable:b}=gd[g],y=f==="none"?d[g]:v(d[g],l);if(w){const k=w.length;for(let C=0;C<k;C++)a[w[C]]=y}else b?this.options.visualElement.renderState.vars[g]=y:a[g]=y}this.options.layoutId&&(a.pointerEvents=l===this?Bs(c?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(Z0),this.root.sharedNodes.clear()}}}function hH(e){e.updateLayout()}function gH(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;o==="size"?Qt(d=>{const f=i?t.measuredBox[d]:t.layoutBox[d],m=bt(f);f.min=n[d].min,f.max=f.min+m}):Tx(o,t.layoutBox,n)&&Qt(d=>{const f=i?t.measuredBox[d]:t.layoutBox[d],m=bt(n[d]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+m)});const a=Er();jo(a,n,t.layoutBox);const c=Er();i?jo(c,e.applyTransform(r,!0),t.measuredBox):jo(c,n,t.layoutBox);const u=!$x(a);let l=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:m}=d;if(f&&m){const h=et();hi(h,t.layoutBox,f.layoutBox);const g=et();hi(g,n,m.layoutBox),jx(h,g)||(l=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=h,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:c,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function bH(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function vH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function yH(e){e.clearSnapshot()}function Z0(e){e.clearMeasurements()}function J0(e){e.isLayoutDirty=!1}function wH(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Q0(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function xH(e){e.resolveTargetDelta()}function CH(e){e.calcProjection()}function kH(e){e.resetSkewAndRotation()}function EH(e){e.removeLeadSnapshot()}function ev(e,t,n){e.translate=_e(t.translate,0,n),e.scale=_e(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function tv(e,t,n,r){e.min=_e(t.min,n.min,r),e.max=_e(t.max,n.max,r)}function LH(e,t,n,r){tv(e.x,t.x,n.x,r),tv(e.y,t.y,n.y,r)}function SH(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const $H={duration:.45,ease:[.4,0,.1,1]},nv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rv=nv("applewebkit/")&&!nv("chrome/")?Math.round:Dt;function ov(e){e.min=rv(e.min),e.max=rv(e.max)}function jH(e){ov(e.x),ov(e.y)}function Tx(e,t,n){return e==="position"||e==="preserve-aspect"&&!ZB(K0(t),K0(n),.2)}function OH(e){return e!==e.root&&e.scroll?.wasRoot}const RH=Px({attachResizeListener:(e,t)=>Bo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),du={current:void 0},Ax=Px({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!du.current){const e=new RH({});e.mount(window),e.setOptions({layoutScroll:!0}),du.current=e}return du.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Tf=s.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function sv(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function MH(...e){return t=>{let n=!1;const r=e.map(o=>{const i=sv(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():sv(e[o],null)}}}}function PH(...e){return s.useCallback(MH(...e),e)}class TH extends s.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,o=fd(r)&&r.offsetWidth||0,i=fd(r)&&r.offsetHeight||0,a=this.props.sizeRef.current;a.height=n.offsetHeight||0,a.width=n.offsetWidth||0,a.top=n.offsetTop,a.left=n.offsetLeft,a.right=o-a.width-a.left,a.bottom=i-a.height-a.top}return null}componentDidUpdate(){}render(){return this.props.children}}function AH({children:e,isPresent:t,anchorX:n,anchorY:r,root:o,pop:i}){const a=s.useId(),c=s.useRef(null),u=s.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=s.useContext(Tf),d=e.props?.ref??e?.ref,f=PH(c,d);return s.useInsertionEffect(()=>{const{width:m,height:h,top:g,left:v,right:w,bottom:b}=u.current;if(t||i===!1||!c.current||!m||!h)return;const y=n==="left"?`left: ${v}`:`right: ${w}`,k=r==="bottom"?`bottom: ${b}`:`top: ${g}`;c.current.dataset.motionPopId=a;const C=document.createElement("style");l&&(C.nonce=l);const x=o??document.head;return x.appendChild(C),C.sheet&&C.sheet.insertRule(`
14
+ [data-motion-pop-id="${a}"] {
15
+ position: absolute !important;
16
+ width: ${m}px !important;
17
+ height: ${h}px !important;
18
+ ${y}px !important;
19
+ ${k}px !important;
20
+ }
21
+ `),()=>{x.contains(C)&&x.removeChild(C)}},[t]),p.jsx(TH,{isPresent:t,childRef:c,sizeRef:u,pop:i,children:i===!1?e:s.cloneElement(e,{ref:f})})}const IH=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a,anchorX:c,anchorY:u,root:l})=>{const d=sf(NH),f=s.useId();let m=!0,h=s.useMemo(()=>(m=!1,{id:f,initial:t,isPresent:n,custom:o,onExitComplete:g=>{d.set(g,!0);for(const v of d.values())if(!v)return;r&&r()},register:g=>(d.set(g,!1),()=>d.delete(g))}),[n,d,r]);return i&&m&&(h={...h}),s.useMemo(()=>{d.forEach((g,v)=>d.set(v,!1))},[n]),s.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),e=p.jsx(AH,{pop:a==="popLayout",isPresent:n,anchorX:c,anchorY:u,root:l,children:e}),p.jsx(Bi.Provider,{value:h,children:e})};function NH(){return new Map}function Ix(e=!0){const t=s.useContext(Bi);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=s.useId();s.useEffect(()=>{if(e)return o(i)},[e]);const a=s.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,a]:[!0]}const gs=e=>e.key||"";function iv(e){const t=[];return s.Children.forEach(e,n=>{s.isValidElement(n)&&t.push(n)}),t}const DH=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:a=!1,anchorX:c="left",anchorY:u="top",root:l})=>{const[d,f]=Ix(a),m=s.useMemo(()=>iv(e),[e]),h=a&&!d?[]:m.map(gs),g=s.useRef(!0),v=s.useRef(m),w=sf(()=>new Map),b=s.useRef(new Set),[y,k]=s.useState(m),[C,x]=s.useState(m);lw(()=>{g.current=!1,v.current=m;for(let E=0;E<C.length;E++){const M=gs(C[E]);h.includes(M)?(w.delete(M),b.current.delete(M)):w.get(M)!==!0&&w.set(M,!1)}},[C,h.length,h.join("-")]);const L=[];if(m!==y){let E=[...m];for(let M=0;M<C.length;M++){const P=C[M],D=gs(P);h.includes(D)||(E.splice(M,0,P),L.push(P))}return i==="wait"&&L.length&&(E=L),x(iv(E)),k(m),null}const{forceRender:S}=s.useContext(of);return p.jsx(p.Fragment,{children:C.map(E=>{const M=gs(E),P=a&&!d?!1:m===C||h.includes(M),D=()=>{if(b.current.has(M))return;if(b.current.add(M),w.has(M))w.set(M,!0);else return;let T=!0;w.forEach(j=>{j||(T=!1)}),T&&(S?.(),x(v.current),a&&f?.(),r&&r())};return p.jsx(IH,{isPresent:P,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:P?void 0:D,anchorX:c,anchorY:u,children:E},M)})})},Nx=s.createContext({strict:!1}),av={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let cv=!1;function VH(){if(cv)return;const e={};for(const t in av)e[t]={isEnabled:n=>av[t].some(r=>!!n[r])};dx(e),cv=!0}function Dx(){return VH(),kB()}function FH(e){const t=Dx();for(const n in e)t[n]={...t[n],...e[n]};dx(t)}const BH=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function gi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||BH.has(e)}let Vx=e=>!gi(e);function HH(e){typeof e=="function"&&(Vx=t=>t.startsWith("on")?!gi(t):e(t))}try{HH(require("@emotion/is-prop-valid").default)}catch{}function WH(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Vx(o)||n===!0&&gi(o)||!t&&!gi(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const zi=s.createContext({});function zH(e,t){if(Wi(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Fo(n)?n:void 0,animate:Fo(r)?r:void 0}}return e.inherit!==!1?t:{}}function _H(e){const{initial:t,animate:n}=zH(e,s.useContext(zi));return s.useMemo(()=>({initial:t,animate:n}),[lv(t),lv(n)])}function lv(e){return Array.isArray(e)?e.join(" "):e}const Af=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fx(e,t,n){for(const r in t)!ut(t[r])&&!vx(r,n)&&(e[r]=t[r])}function UH({transformTemplate:e},t){return s.useMemo(()=>{const n=Af();return Mf(n,t,e),Object.assign({},n.vars,n.style)},[t])}function KH(e,t){const n=e.style||{},r={};return Fx(r,n,e),Object.assign(r,UH(e,t)),r}function GH(e,t){const n={},r=KH(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Bx=()=>({...Af(),attrs:{}});function YH(e,t,n,r){const o=s.useMemo(()=>{const i=Bx();return yx(i,t,xx(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Fx(i,e.style,e),o.style={...i,...o.style}}return o}const XH=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function If(e){return typeof e!="string"||e.includes("-")?!1:!!(XH.indexOf(e)>-1||/[A-Z]/u.test(e))}function qH(e,t,n,{latestValues:r},o,i=!1,a){const u=(a??If(e)?YH:GH)(t,r,o,e),l=WH(t,typeof e=="string",i),d=e!==s.Fragment?{...l,...u,ref:n}:{},{children:f}=t,m=s.useMemo(()=>ut(f)?f.get():f,[f]);return s.createElement(e,{...d,children:m})}function ZH({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:JH(n,r,o,e),renderState:t()}}function JH(e,t,n,r){const o={},i=r(e,{});for(const m in i)o[m]=Bs(i[m]);let{initial:a,animate:c}=e;const u=Wi(e),l=lx(e);t&&l&&!u&&e.inherit!==!1&&(a===void 0&&(a=t.initial),c===void 0&&(c=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?c:a;if(f&&typeof f!="boolean"&&!Hi(f)){const m=Array.isArray(f)?f:[f];for(let h=0;h<m.length;h++){const g=kf(e,m[h]);if(g){const{transitionEnd:v,transition:w,...b}=g;for(const y in b){let k=b[y];if(Array.isArray(k)){const C=d?k.length-1:0;k=k[C]}k!==null&&(o[y]=k)}for(const y in v)o[y]=v[y]}}}return o}const Hx=e=>(t,n)=>{const r=s.useContext(zi),o=s.useContext(Bi),i=()=>ZH(e,t,r,o);return n?i():sf(i)},QH=Hx({scrapeMotionValuesFromProps:Pf,createRenderState:Af}),eW=Hx({scrapeMotionValuesFromProps:Cx,createRenderState:Bx}),tW=Symbol.for("motionComponentSymbol");function nW(e,t,n){const r=s.useRef(n);s.useInsertionEffect(()=>{r.current=n});const o=s.useRef(null);return s.useCallback(i=>{i&&e.onMount?.(i),t&&(i?t.mount(i):t.unmount());const a=r.current;if(typeof a=="function")if(i){const c=a(i);typeof c=="function"&&(o.current=c)}else o.current?(o.current(),o.current=null):a(i);else a&&(a.current=i)},[t])}const Wx=s.createContext({});function wr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function rW(e,t,n,r,o,i){const{visualElement:a}=s.useContext(zi),c=s.useContext(Nx),u=s.useContext(Bi),l=s.useContext(Tf),d=l.reducedMotion,f=l.skipAnimations,m=s.useRef(null),h=s.useRef(!1);r=r||c.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:i}),h.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));const g=m.current,v=s.useContext(Wx);g&&!g.projection&&o&&(g.type==="html"||g.type==="svg")&&oW(m.current,n,o,v);const w=s.useRef(!1);s.useInsertionEffect(()=>{g&&w.current&&g.update(n,u)});const b=n[qw],y=s.useRef(!!b&&!window.MotionHandoffIsComplete?.(b)&&window.MotionHasOptimisedAnimation?.(b));return lw(()=>{h.current=!0,g&&(w.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),y.current&&g.animationState&&g.animationState.animateChanges())}),s.useEffect(()=>{g&&(!y.current&&g.animationState&&g.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(b)}),y.current=!1),g.enteringChildren=void 0)}),g}function oW(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:c,layoutScroll:u,layoutRoot:l,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:zx(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!a||c&&wr(c),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:u,layoutRoot:l})}function zx(e){if(e)return e.options.allowProjection!==!1?e.projection:zx(e.parent)}function fu(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&FH(r);const i=n?n==="svg":If(e),a=i?eW:QH;function c(l,d){let f;const m={...s.useContext(Tf),...l,layoutId:sW(l)},{isStatic:h}=m,g=_H(l),v=a(l,h);if(!h&&cw){iW();const w=aW(m);f=w.MeasureLayout,g.visualElement=rW(e,v,m,o,w.ProjectionNode,i)}return p.jsxs(zi.Provider,{value:g,children:[f&&g.visualElement?p.jsx(f,{visualElement:g.visualElement,...m}):null,qH(e,l,nW(v,g.visualElement,d),v,h,t,i)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=s.forwardRef(c);return u[tW]=e,u}function sW({layoutId:e}){const t=s.useContext(of).id;return t&&e!==void 0?t+"-"+e:e}function iW(e,t){s.useContext(Nx).strict}function aW(e){const t=Dx(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function cW(e,t){if(typeof Proxy>"u")return fu;const n=new Map,r=(i,a)=>fu(i,a,e,t),o=(i,a)=>r(i,a);return new Proxy(o,{get:(i,a)=>a==="create"?r:(n.has(a)||n.set(a,fu(a,void 0,e,t)),n.get(a))})}const lW=(e,t)=>t.isSVG??If(e)?new BB(t):new AB(t,{allowProjection:e!==s.Fragment});class uW extends Xn{constructor(t){super(t),t.animationState||(t.animationState=UB(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Hi(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let dW=0;class fW extends Xn{constructor(){super(...arguments),this.id=dW++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const pW={animation:{Feature:uW},exit:{Feature:fW}};function Go(e){return{point:{x:e.pageX,y:e.pageY}}}const mW=e=>t=>$f(t)&&e(t,Go(t));function Oo(e,t,n,r){return Bo(e,t,mW(n),r)}const _x=({current:e})=>e?e.ownerDocument.defaultView:null,uv=(e,t)=>Math.abs(e-t);function hW(e,t){const n=uv(e.x,t.x),r=uv(e.y,t.y);return Math.sqrt(n**2+r**2)}const dv=new Set(["auto","scroll"]);class Ux{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:c}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=h=>{this.handleScroll(h.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=mu(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,v=hW(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!v)return;const{point:w}=h,{timestamp:b}=rt;this.history.push({...w,timestamp:b});const{onStart:y,onMove:k}=this.handlers;g||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,h)},this.handlePointerMove=(h,g)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=pu(g,this.transformPagePoint),Fe.update(this.updatePoint,!0)},this.handlePointerUp=(h,g)=>{this.end();const{onEnd:v,onSessionEnd:w,resumeAnimation:b}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=mu(h.type==="pointercancel"?this.lastMoveEventInfo:pu(g,this.transformPagePoint),this.history);this.startEvent&&v&&v(h,y),w&&w(h,y)},!$f(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=o||window;const u=Go(t),l=pu(u,this.transformPagePoint),{point:d}=l,{timestamp:f}=rt;this.history=[{...d,timestamp:f}];const{onSessionStart:m}=n;m&&m(t,mu(l,this.history)),this.removeListeners=_o(Oo(this.contextWindow,"pointermove",this.handlePointerMove),Oo(this.contextWindow,"pointerup",this.handlePointerUp),Oo(this.contextWindow,"pointercancel",this.handlePointerUp)),c&&this.startScrollTracking(c)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(dv.has(r.overflowX)||dv.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:o.x-n.x,y:o.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,o),Fe.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),zn(this.updatePoint)}}function pu(e,t){return t?{point:t(e.point)}:e}function fv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mu({point:e},t){return{point:e,delta:fv(e,Kx(t)),offset:fv(e,gW(t)),velocity:bW(t,.1)}}function gW(e){return e[0]}function Kx(e){return e[e.length-1]}function bW(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Kx(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Kt(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>Kt(t)*2&&(r=e[1]);const i=At(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function vW(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?_e(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?_e(n,e,r.max):Math.min(e,n)),e}function pv(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function yW(e,{top:t,left:n,bottom:r,right:o}){return{x:pv(e.x,n,o),y:pv(e.y,t,r)}}function mv(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function wW(e,t){return{x:mv(e.x,t.x),y:mv(e.y,t.y)}}function xW(e,t){let n=.5;const r=bt(e),o=bt(t);return o>r?n=No(t.min,t.max-r,e.min):r>o&&(n=No(e.min,e.max-o,t.min)),ln(0,1,n)}function CW(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const bd=.35;function kW(e=bd){return e===!1?e=0:e===!0&&(e=bd),{x:hv(e,"left","right"),y:hv(e,"top","bottom")}}function hv(e,t,n){return{min:gv(e,t),max:gv(e,n)}}function gv(e,t){return typeof e=="number"?e:e[t]||0}const EW=new WeakMap;class LW{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=et(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=f=>{n&&this.snapToCursor(Go(f).point),this.stopAnimation()},a=(f,m)=>{const{drag:h,dragPropagation:g,onDragStart:v}=this.getProps();if(h&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=QF(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=m,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Qt(b=>{let y=this.getAxisMotionValue(b).get()||0;if(on.test(y)){const{projection:k}=this.visualElement;if(k&&k.layout){const C=k.layout.layoutBox[b];C&&(y=bt(C)*(parseFloat(y)/100))}}this.originPoint[b]=y}),v&&Fe.update(()=>v(f,m),!1,!0),cd(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},c=(f,m)=>{this.latestPointerEvent=f,this.latestPanInfo=m;const{dragPropagation:h,dragDirectionLock:g,onDirectionLock:v,onDrag:w}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:b}=m;if(g&&this.currentDirection===null){this.currentDirection=$W(b),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",m.point,b),this.updateAxis("y",m.point,b),this.visualElement.render(),w&&Fe.update(()=>w(f,m),!1,!0)},u=(f,m)=>{this.latestPointerEvent=f,this.latestPanInfo=m,this.stop(f,m),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new Ux(t,{onSessionStart:i,onStart:a,onMove:c,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:_x(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:a}=o;this.startAnimation(a);const{onDragEnd:c}=this.getProps();c&&Fe.postRender(()=>c(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!bs(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=vW(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&wr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=yW(r.layoutBox,t):this.constraints=!1,this.elastic=kW(n),o!==this.constraints&&!wr(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Qt(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=CW(r.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!wr(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=jB(r,o.root,this.visualElement.getTransformPagePoint());let a=wW(o.layout.layoutBox,i);if(n){const c=n(LB(a));this.hasMutatedConstraints=!!c,c&&(a=px(c))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},l=Qt(d=>{if(!bs(d,n,this.currentDirection))return;let f=u&&u[d]||{};a&&(f={min:0,max:0});const m=o?200:1e6,h=o?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:m,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,g)});return Promise.all(l).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return cd(this.visualElement,t),r.start(Cf(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qt(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Qt(n=>{const{drag:r}=this.getProps();if(!bs(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:c}=o.layout.layoutBox[n],u=i.get()||0;i.set(t[n]-_e(a,c,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!wr(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Qt(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const u=c.get();o[a]=xW({min:u,max:u},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Qt(a=>{if(!bs(a,t,null))return;const c=this.getAxisMotionValue(a),{min:u,max:l}=this.constraints[a];c.set(_e(u,l,o[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;EW.set(this.visualElement,this);const t=this.visualElement.current,n=Oo(t,"pointerdown",l=>{const{drag:d,dragListener:f=!0}=this.getProps(),m=l.target,h=m!==t&&sB(m);d&&f&&!h&&this.start(l)});let r;const o=()=>{const{dragConstraints:l}=this.getProps();wr(l)&&l.current&&(this.constraints=this.resolveRefConstraints(),r||(r=SW(t,l.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,a=i.addEventListener("measure",o);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Fe.read(o);const c=Bo(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(Qt(f=>{const m=this.getAxisMotionValue(f);m&&(this.originPoint[f]+=l[f].translate,m.set(m.get()+l[f].translate))}),this.visualElement.render())}));return()=>{c(),n(),a(),u&&u(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=bd,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:c}}}function bv(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function SW(e,t,n){const r=E0(e,bv(n)),o=E0(t,bv(n));return()=>{r(),o()}}function bs(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function $W(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class jW extends Xn{constructor(t){super(t),this.removeGroupControls=Dt,this.removeListeners=Dt,this.controls=new LW(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Dt}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const hu=e=>(t,n)=>{e&&Fe.update(()=>e(t,n),!1,!0)};class OW extends Xn{constructor(){super(...arguments),this.removePointerDownListener=Dt}onPointerDown(t){this.session=new Ux(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:_x(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:hu(t),onStart:hu(n),onMove:hu(r),onEnd:(i,a)=>{delete this.session,o&&Fe.postRender(()=>o(i,a))}}}mount(){this.removePointerDownListener=Oo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let gu=!1;class RW extends s.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),gu&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Hs.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:a}=r;return a&&(a.isPresent=i,t.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),gu=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Fe.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Sf.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;gu=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Gx(e){const[t,n]=Ix(),r=s.useContext(of);return p.jsx(RW,{...e,layoutGroup:r,switchLayoutGroup:s.useContext(Wx),isPresent:t,safeToRemove:n})}const MW={pan:{Feature:OW},drag:{Feature:jW,ProjectionNode:Ax,MeasureLayout:Gx}};function vv(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&Fe.postRender(()=>i(t,Go(t)))}class PW extends Xn{mount(){const{current:t}=this.node;t&&(this.unmount=tB(t,(n,r)=>(vv(this.node,r,"Start"),o=>vv(this.node,o,"End"))))}unmount(){}}class TW extends Xn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=_o(Bo(this.node.current,"focus",()=>this.onFocus()),Bo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function yv(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&Fe.postRender(()=>i(t,Go(t)))}class AW extends Xn{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=aB(t,(o,i)=>(yv(this.node,i,"Start"),(a,{success:c})=>yv(this.node,a,c?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:r?.tap===!1})}unmount(){}}const vd=new WeakMap,bu=new WeakMap,IW=e=>{const t=vd.get(e.target);t&&t(e)},NW=e=>{e.forEach(IW)};function DW({root:e,...t}){const n=e||document;bu.has(n)||bu.set(n,{});const r=bu.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(NW,{root:e,...t})),r[o]}function VW(e,t,n){const r=DW(t);return vd.set(e,n),r.observe(e),()=>{vd.delete(e),r.unobserve(e)}}const FW={some:0,all:1};class BW extends Xn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:FW[o]},c=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),m=l?d:f;m&&m(u)};return VW(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(HW(t,n))&&this.startObserver()}unmount(){}}function HW({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const WW={inView:{Feature:BW},tap:{Feature:AW},focus:{Feature:TW},hover:{Feature:PW}},zW={layout:{ProjectionNode:Ax,MeasureLayout:Gx}},_W={...pW,...WW,...MW,...zW},UW=cW(_W,lW),KW={borderColor:"var(--hud-chrome-border, oklch(var(--border)))"},GW={backgroundColor:"var(--hud-chrome-border, oklch(var(--border)))"},YW="bg-popover/95 backdrop-blur-xl border rounded-lg shadow-2xl py-1 min-w-[180px] z-[200] outline-none",XW="flex items-center gap-3 w-full px-3 py-1.5 text-[12px] font-mono text-popover-foreground outline-none select-none data-[highlighted]:bg-accent/10 data-[highlighted]:text-accent data-[selected]:bg-accent/10 data-[selected]:text-accent data-[disabled]:opacity-40 data-[disabled]:pointer-events-none cursor-default text-left border-0 bg-transparent box-border",qW="w-4 h-4 flex items-center justify-center shrink-0 text-muted-foreground",ZW="flex-1 min-w-0 truncate",JW="text-muted-foreground text-[10px] ml-4 tracking-wider",QW="px-3 py-1 text-[10px] font-mono uppercase tracking-widest text-muted-foreground",ez="h-px my-1 border-0",tz="z-[200]";function nz(e){return"type"in e&&e.type==="separator"}function rz(e){return"type"in e&&e.type==="group"}function wv({item:e}){return p.jsxs(wA,{disabled:e.disabled,onClick:e.action,label:e.label,className:XW,children:[e.icon&&p.jsx("span",{className:qW,children:e.icon}),p.jsx("span",{className:ZW,children:e.label}),e.shortcut&&p.jsx("span",{className:JW,children:e.shortcut})]})}const Yx=ly.forwardRef(({items:e},t)=>p.jsx(UW.div,{ref:t,initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96},transition:{duration:.1,ease:"easeOut"},children:p.jsx(bD,{className:YW,style:KW,"aria-label":"Context menu",children:e.map((n,r)=>nz(n)?p.jsx(YD,{className:ez,style:GW},`sep-${r}`):rz(n)?p.jsxs(vA,{children:[p.jsx(yA,{className:QW,children:n.label}),n.items.map(o=>p.jsx(wv,{item:o},o.id))]},`grp-${r}`):p.jsx(wv,{item:n},n.id))})}));Yx.displayName="PopupContent";function oz(e,t){switch(t){case"alt":return e.altKey;case"meta":return e.metaKey;case"ctrl":return e.ctrlKey;default:return e.shiftKey}}function sz({items:e,children:t,nativeMenuModifier:n="alt",activationMode:r="default"}){const o=s.useRef(!1);return e.length===0?p.jsx(p.Fragment,{children:t}):p.jsxs(XD,{children:[p.jsx(qD,{render:p.jsx("div",{style:{display:"contents"},"aria-haspopup":"menu",onKeyDownCapture:i=>{if(i.defaultPrevented||!(i.key==="ContextMenu"||i.shiftKey&&i.key==="F10"))return;i.preventDefault(),i.stopPropagation();const u=(i.target instanceof HTMLElement?i.target:i.currentTarget).getBoundingClientRect(),l=u.left+Math.min(24,Math.max(0,u.width/2)),d=u.top+Math.min(24,Math.max(0,u.height/2));o.current=!0;try{i.currentTarget.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,cancelable:!0,view:window,clientX:l,clientY:d,button:2}))}finally{o.current=!1}},onContextMenuCapture:i=>{if(o.current)return;const a=oz(i,n);(r==="modifier"?!a:a)&&i.stopPropagation()}}),children:t}),p.jsx(yD,{children:p.jsx(PD,{className:tz,sideOffset:4,children:p.jsx(DH,{children:p.jsx(Yx,{items:e})})})})]})}const xv=()=>{},iz={x:0,y:0},az=({children:e,hud:t,mode:n="canvas",panOffset:r=iz,scale:o=1,onPan:i=xv,onZoom:a=xv,onPanStart:c,onPanEnd:u,isTransitioning:l=!1,onViewportChange:d,onCanvasClick:f,canvasProps:m,zoomSensitivity:h,zoomControlsRightOffset:g,zoomControlsBottomOffset:v,showZoomControls:w=!0,viewportShiftX:b=0,canvasContextMenuItems:y,canvasContextMenuActivationMode:k})=>{const C=s.useRef(null),x=s.useRef(o);x.current=o;const L=s.useRef(a);L.current=a;const S=s.useRef(i);S.current=i;const E=s.useRef(c);E.current=c;const M=s.useRef(u);M.current=u;const P=s.useRef(h);P.current=h;const[D,T]=s.useState(!1),j=s.useRef(!1),[H,A]=s.useState(!1),I=s.useRef(!1),B=s.useRef({x:0,y:0}),$=s.useRef(R=>{const q=R.target||document.activeElement;if(!q)return!1;const ee=q.tagName;return!!(ee==="INPUT"||ee==="TEXTAREA"||q.isContentEditable||q.closest?.(".xterm"))});s.useEffect(()=>{if(n!=="canvas")return;const R=te=>{te.key!==" "||te.repeat||$.current(te)||l||(te.preventDefault(),j.current=!0,T(!0))},q=te=>{te.key===" "&&j.current&&(j.current=!1,T(!1),I.current&&(I.current=!1,A(!1),M.current?.()))},ee=()=>{j.current&&(j.current=!1,T(!1),I.current&&(I.current=!1,A(!1),M.current?.()))};return window.addEventListener("keydown",R),window.addEventListener("keyup",q),window.addEventListener("blur",ee),()=>{window.removeEventListener("keydown",R),window.removeEventListener("keyup",q),window.removeEventListener("blur",ee)}},[n,l]);const z=s.useCallback(R=>{R.button===0&&(R.preventDefault(),I.current=!0,A(!0),B.current={x:R.clientX,y:R.clientY},E.current?.())},[]);return s.useEffect(()=>{if(!D)return;const R=ee=>{if(!I.current)return;const te=(ee.clientX-B.current.x)/x.current,ae=(ee.clientY-B.current.y)/x.current;B.current={x:ee.clientX,y:ee.clientY},S.current({x:te,y:ae})},q=()=>{I.current&&(I.current=!1,A(!1),M.current?.())};return window.addEventListener("mousemove",R),window.addEventListener("mouseup",q),()=>{window.removeEventListener("mousemove",R),window.removeEventListener("mouseup",q)}},[D]),s.useEffect(()=>{if(n!=="canvas")return;const R=q=>{if(q.ctrlKey||q.metaKey){q.preventDefault();const ee=x.current,te=-q.deltaY*.001*(P.current??1),ae=Math.min(Math.max(.2,ee+te),3);x.current=ae,L.current(ae)}};return window.addEventListener("wheel",R,{passive:!1}),()=>window.removeEventListener("wheel",R)},[n]),s.useEffect(()=>{if(!d)return;let R=null;const q=()=>{R&&cancelAnimationFrame(R),R=requestAnimationFrame(()=>{d({width:window.innerWidth,height:window.innerHeight})})};return q(),window.addEventListener("resize",q),()=>{window.removeEventListener("resize",q),R&&cancelAnimationFrame(R)}},[d]),n==="panel"?p.jsxs("div",{ref:C,className:"fixed inset-0 bg-background text-foreground overflow-hidden font-sans select-none z-0",children:[p.jsx("div",{className:"absolute inset-0 z-10 overflow-auto frame-scrollbar",children:e}),p.jsx("div",{className:"fixed inset-0 pointer-events-none overflow-hidden",style:{zIndex:Tr.zIndex.navigationStack},children:t})]}):p.jsxs("div",{ref:C,className:"fixed inset-0 bg-background text-foreground overflow-hidden font-sans select-none z-0",children:[p.jsx(sz,{items:y??[],activationMode:k,children:p.jsx(v5,{panOffset:r,scale:o,onPan:i,onPanStart:c,onPanEnd:u,isPanLocked:l,onClick:f,showGuides:m?.showGuides,onGuidesChange:m?.onGuidesChange,gridOpacity:m?.gridOpacity})}),p.jsx("div",{className:"absolute z-10 pointer-events-none",style:{left:"50%",top:"50%",zoom:o,transform:b?`translateX(${b}px)`:void 0,transition:"transform 240ms cubic-bezier(0.34, 1.7, 0.64, 1)"},children:p.jsx("div",{style:{position:"absolute",left:r.x,top:r.y},children:e})}),D&&p.jsx("div",{className:`fixed inset-0 z-20 ${H?"cursor-grabbing":"cursor-grab"}`,onMouseDown:z}),w&&p.jsx("div",{className:"absolute z-30 transition-[bottom,right] duration-200",style:{bottom:`calc(${44+(v??0)}px + var(--hud-player-panel-offset, 0px))`,right:16+(g??0)},children:p.jsx(lT,{scale:o,onZoom:R=>a(R)})}),p.jsx("div",{className:"fixed inset-0 pointer-events-none overflow-hidden",style:{zIndex:Tr.zIndex.navigationStack},children:t})]})},yd=({side:e,title:t,icon:n,isCollapsed:r=!1,onToggleCollapse:o,headerActions:i,footer:a,style:c,width:u,onResizeStart:l,floating:d=!1,children:f})=>{const m="var(--hud-chrome-border, oklch(var(--border) / 0.8))",{panelTopOffset:h}=Hd();if(r){const C=e==="left"?pP:hP;return p.jsx("button",{onClick:o,className:`fixed top-1/2 -translate-y-1/2 z-40 ${e==="left"?"left-3":"right-3"} p-2.5 rounded bg-card/95 border hover:border-accent/60 shadow-[var(--hud-shadow-panel)] hover:shadow-[var(--hud-shadow-panel-hover,var(--hud-shadow-panel))] transition-all duration-200 group pointer-events-auto focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background focus-visible:outline-none`,style:{borderColor:"var(--hud-chrome-border, oklch(var(--border) / 0.8))"},title:`Expand ${t||"panel"}`,children:p.jsx(C,{size:14,className:"text-muted-foreground group-hover:text-accent transition-colors",strokeWidth:1.5})})}const g=e==="left"?fP:mP,b=`bg-card/95 border shadow-[var(--hud-shadow-panel)] fixed z-40 rounded-none border-t-0 overflow-hidden ${e==="left"?"border-l-0 border-r-0":"border-r-0 border-l-0"}`,y=d?{boxShadow:`var(--hud-shadow-panel-float, 0 0 0 1px ${m}, ${e==="left"?"18px":"-18px"} 0 48px -12px rgba(0, 0, 0, 0.55))`,backdropFilter:"blur(24px) saturate(140%)",WebkitBackdropFilter:"blur(24px) saturate(140%)"}:{},k={position:"fixed",top:h,bottom:28,left:e==="left"?0:void 0,right:e==="right"?0:void 0,width:`${u||280}px`,borderColor:m,...y,...c};return p.jsxs("div",{"data-frame-panel":e==="left"?"manifest":"inspector","data-floating":d?"true":void 0,className:`${b} pointer-events-none select-none font-mono text-[11px] flex flex-col`,style:k,children:[l&&p.jsxs("div",{className:`absolute top-0 ${e==="left"?"right-0":"left-0"} bottom-0 w-[7px] cursor-ew-resize z-50 pointer-events-auto group flex items-center justify-center`,onMouseDown:l,children:[p.jsx("div",{className:`absolute top-0 bottom-0 ${e==="left"?"right-0":"left-0"} w-px transition-colors group-hover:bg-accent/30`,style:{backgroundColor:m}}),p.jsxs("div",{className:"flex flex-col gap-[3px] opacity-0 group-hover:opacity-100 transition-opacity",children:[p.jsx("div",{className:"w-[3px] h-[3px] rounded-full bg-muted-foreground/70 group-hover:bg-accent/70"}),p.jsx("div",{className:"w-[3px] h-[3px] rounded-full bg-muted-foreground/70 group-hover:bg-accent/70"}),p.jsx("div",{className:"w-[3px] h-[3px] rounded-full bg-muted-foreground/70 group-hover:bg-accent/70"})]})]}),!l&&p.jsx("div",{className:`absolute top-0 ${e==="left"?"right-0":"left-0"} bottom-0 w-px`,style:{backgroundColor:m}}),p.jsx("div",{className:"absolute top-0 left-0 right-0 h-px bg-gradient-to-r from-transparent via-foreground/4 to-transparent z-10"}),p.jsxs("div",{className:"pointer-events-auto flex-1 flex flex-col overflow-hidden",children:[t&&p.jsx("div",{className:"shrink-0 p-4",style:{borderBottom:`1px dashed ${m}`},children:p.jsxs("div",{className:"flex items-center justify-between text-foreground text-[10px]",children:[p.jsxs("div",{className:"flex items-center gap-1.5",children:[n&&p.jsx("span",{className:"text-muted-foreground",children:n}),p.jsx("span",{className:"tracking-[0.18em] font-normal uppercase text-muted-foreground",children:t})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[i,o&&p.jsx("button",{onClick:o,className:"p-1 hover:bg-accent/10 rounded transition-colors text-muted-foreground hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",title:"Collapse panel",children:p.jsx(g,{size:12})})]})]})}),p.jsx("div",{className:"flex-1 overflow-y-auto frame-scrollbar",children:f}),a&&p.jsx("div",{className:"shrink-0",children:a})]})]})},cz={emerald:{dot:"bg-success",ping:"bg-success",text:"text-success"},amber:{dot:"bg-warning",ping:"bg-warning",text:"text-warning"},red:{dot:"bg-destructive",ping:"bg-destructive",text:"text-destructive"},neutral:{dot:"bg-muted-foreground",ping:"bg-muted-foreground",text:"text-muted-foreground"}},lz={borderColor:"var(--hud-chrome-border, oklch(var(--border)))"},uz=({left:e,viewport:t,right:n,isMinimapCollapsed:r=!1,onExpandMinimap:o,status:i={label:"READY",color:"emerald"},onStatusClick:a,onToggleTerminal:c,isTerminalOpen:u=!1,terminalLabel:l="Console",embedded:d=!1})=>{const[f,m]=s.useState(new Date),[h,g]=s.useState(!1),[v,w]=s.useState(!1);s.useEffect(()=>{w(!0);const S=setInterval(()=>m(new Date),1e3);return()=>clearInterval(S)},[]);const b=cz[i.color],y=i.title??i.label,k=`shrink-0 flex items-center gap-2 ${b.text}`,C=p.jsxs(p.Fragment,{children:[p.jsx("span",{className:`inline-block h-1.5 w-1.5 rounded-full ${b.dot}`}),p.jsx("span",{className:"font-light tracking-[0.18em] uppercase text-[9px]",children:i.label})]}),x=async()=>{if(!t)return;const S=`PAN: ${t.pan.x.toFixed(0)},${t.pan.y.toFixed(0)} | SIZE: ${t.canvasSize?.w??1024}x${t.canvasSize?.h??1024} | ZOOM: ${(t.zoom*100).toFixed(0)}%`;try{await navigator.clipboard.writeText(S),g(!0),setTimeout(()=>g(!1),1500)}catch{}},L=d?"relative h-full w-full bg-card/95 backdrop-blur-xl":Wk.statusBar;return p.jsxs("div",{"data-frame-panel":"status-bar",className:`${L} h-7 flex items-center justify-between gap-3 px-3 select-none font-mono text-[9px] md:text-[10px] text-foreground pointer-events-auto overflow-hidden`,style:lz,children:[p.jsxs("div",{className:"min-w-0 flex items-center gap-3 md:gap-4 overflow-hidden",children:[r&&o&&p.jsxs(p.Fragment,{children:[p.jsxs("button",{onClick:o,className:"flex items-center gap-1.5 text-muted-foreground hover:text-foreground transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none rounded",title:"Expand minimap",children:[p.jsx(cP,{size:10}),p.jsx("span",{className:"text-[9px] font-light tracking-[0.18em] uppercase",children:"Map"})]}),p.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/40 select-none",children:"·"})]}),a?p.jsx("button",{type:"button",onClick:a,className:`${k} rounded transition-opacity hover:opacity-85 focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none`,title:y,"aria-label":y,children:C}):p.jsx("div",{className:k,title:i.title,children:C}),e&&p.jsxs(p.Fragment,{children:[p.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/40 select-none",children:"·"}),e]})]}),t&&p.jsx("div",{className:"hidden lg:flex absolute -translate-x-1/2 items-center gap-3 opacity-70 hover:opacity-100 transition-[left,opacity] duration-200",style:{left:"calc(50% - var(--hud-player-status-inline-offset, 0px))"},children:p.jsxs("button",{onClick:x,className:"flex items-center gap-3 hover:text-foreground transition-colors cursor-pointer focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none rounded",title:"Copy viewport data",children:[p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("span",{className:"text-muted-foreground tracking-[0.18em] text-[9px] uppercase",children:"Pan"}),p.jsxs("span",{className:`tabular-nums ${h?"text-accent":""}`,children:[t.pan.x.toFixed(0),",",t.pan.y.toFixed(0)]})]}),p.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/40 select-none",children:"·"}),p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("span",{className:"text-muted-foreground tracking-[0.18em] text-[9px] uppercase",children:"Size"}),p.jsxs("span",{className:`tabular-nums ${h?"text-accent":""}`,children:[t.canvasSize?.w??1024,"x",t.canvasSize?.h??1024]})]}),p.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/40 select-none",children:"·"}),p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("span",{className:"text-muted-foreground tracking-[0.18em] text-[9px] uppercase",children:"Zoom"}),p.jsxs("span",{className:`tabular-nums ${h?"text-accent":""}`,children:[(t.zoom*100).toFixed(0),"%"]})]})]})}),p.jsxs("div",{className:"shrink-0 flex items-center gap-3 md:gap-4",children:[c&&p.jsxs(p.Fragment,{children:[p.jsxs("button",{onClick:c,className:`flex items-center gap-1.5 transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none rounded ${u?"text-accent":"text-muted-foreground hover:text-foreground"}`,title:`Toggle ${l} (Ctrl+\`)`,children:[p.jsxs("span",{className:"text-[10px]",children:[">","_"]}),p.jsx("span",{className:"uppercase text-[9px] font-light tracking-[0.18em]",children:l})]}),p.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/40 select-none",children:"·"})]}),n,n&&p.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/40 select-none",children:"·"}),p.jsxs("div",{className:"flex items-center gap-1.5 text-foreground min-w-[60px] justify-end",children:[p.jsx(iP,{size:11,className:"text-muted-foreground"}),p.jsx("span",{children:v?f.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"--:--"})]})]})]})},dz=({onOpenCommandPalette:e,extraControls:t})=>p.jsx("div",{className:"select-none font-mono text-[11px]",style:{borderTop:"1px dashed var(--hud-chrome-border, oklch(var(--border) / 0.6))"},children:p.jsxs("div",{className:"px-3 py-2 flex items-center justify-between",children:[p.jsxs("button",{onClick:e,className:"flex items-center gap-1.5 text-muted-foreground hover:text-foreground transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none rounded",children:[p.jsx(By,{size:10}),p.jsx("span",{className:"tracking-[0.18em] font-normal uppercase text-[10px]",children:"Command Palette"})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[t,p.jsx("kbd",{className:"text-[10px] text-muted-foreground font-mono",children:"⌘K"})]})]})});const fz=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],pz=$i("bell",fz);const mz=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],hz=$i("list-todo",mz);const gz=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 15h18",key:"5xshup"}]],bz=$i("panel-bottom",gz);const vz=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],yz=$i("pin-off",vz),Cv={"light-prod":"Lean launch","max-pro":"Max pro","scope-instrument":"Scope"};function wz(e){const t=k5(e);return t===!0?"on":t===!1?"off":"default"}function xz(e,t){const n=new Set([t]);for(const r of e)r.requiredTier&&n.add(String(r.requiredTier));return[...n]}function Cz({isOpen:e,onClose:t,audienceOptions:n}){const r=x5(),{ref:o,onKeyDown:i}=py(e),a=Ks(),{activeBundle:c,applyBundle:u,resetBundle:l}=hy(),d=s.useMemo(()=>r?.all()??[],[r]);if(s.useEffect(()=>{if(!e)return;const g=v=>{v.key==="Escape"&&(v.preventDefault(),t())};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[e,t]),!e||!r)return null;const f=r.audience(),m=r.layers.local?.audience??"",h=n??xz(d,f.tier);return p.jsx("div",{className:"scout-flag-backdrop",onClick:t,children:p.jsxs("div",{...o,className:"scout-flag-panel",role:"dialog","aria-modal":"true","aria-labelledby":"scout-flag-title",onKeyDown:i,onClick:g=>g.stopPropagation(),children:[p.jsxs("header",{className:"scout-flag-head",children:[p.jsxs("div",{className:"scout-flag-head-copy",children:[p.jsx("h2",{id:"scout-flag-title",className:"scout-flag-title",children:"Feature flags"}),p.jsxs("p",{className:"scout-flag-subtitle",children:["Audience ",p.jsx("strong",{children:f.tier})," · local overrides apply instantly"]})]}),p.jsx("button",{type:"button",className:"btn btn--ghost btn--sm btn--icon","aria-label":"Close feature flags",onClick:t,children:p.jsx(Rd,{size:14,strokeWidth:1.8})})]}),p.jsxs("div",{className:"scout-flag-toolbar",children:[p.jsx("label",{className:"scout-flag-toolbar-label",htmlFor:"scout-flag-audience",children:"Local audience"}),p.jsxs("select",{id:"scout-flag-audience",className:"scout-flag-select",value:m,onChange:g=>r.setLocalAudienceOverride(g.target.value||null),children:[p.jsxs("option",{value:"",children:["Default (",f.tier,")"]}),h.map(g=>p.jsx("option",{value:g,children:g},g))]}),a&&p.jsx("div",{className:"scout-flag-bundles",children:Object.keys(Cv).map(g=>p.jsx("button",{type:"button",className:`chip chip--mono chip--caps chip--sm${c===g?" chip--working":" chip--ghost"}`,onClick:()=>u(g),children:Cv[g]},g))})]}),p.jsx("div",{className:"scout-flag-list",children:d.map(g=>{const v=r.layers.local?.flags?.[g.key];return p.jsxs("div",{className:"scout-flag-row",children:[p.jsxs("div",{className:"scout-flag-key",children:[p.jsx("div",{className:"scout-flag-key-name",children:g.key}),p.jsx("div",{className:"scout-flag-key-desc",children:g.definition?.description??g.definition?.label??g.reason})]}),p.jsx("span",{className:`chip chip--mono chip--caps chip--sm ${g.enabled?"chip--success":"chip--neutral"}`,children:g.enabled?"on":"off"}),p.jsx("span",{className:"scout-flag-meta",title:`${g.layer} · ${g.reason}`,children:g.layer}),p.jsxs("select",{className:"scout-flag-select","aria-label":`Override ${g.key}`,value:wz(v),onChange:w=>{const b=w.target.value;r.setLocalOverride(g.key,b==="default"?null:b==="on")},children:[p.jsx("option",{value:"default",children:"default"}),p.jsx("option",{value:"on",children:"on"}),p.jsx("option",{value:"off",children:"off"})]})]},g.key)})}),p.jsxs("footer",{className:"scout-flag-foot",children:[p.jsxs("span",{className:"scout-flag-count",children:[d.length," flags"]}),p.jsx("button",{type:"button",className:"btn btn--ghost btn--sm btn--mono",onClick:l,children:"Reset flags"})]})]})})}const kz="3.35 3.35 13.3 13.3";function Xx({className:e=""}){return p.jsxs("svg",{viewBox:kz,"aria-hidden":"true",className:e,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("polygon",{points:"10,4.3 14.8,7.1 14.8,12.9 10,15.7 5.2,12.9 5.2,7.1",strokeWidth:"1.9",fill:"currentColor",fillOpacity:"0.12"}),p.jsx("polygon",{points:"10,7 12.4,8.4 12.4,10.6 10,12 7.6,10.6 7.6,8.4",strokeWidth:"0.9",fill:"currentColor",fillOpacity:"0.9"})]})}const Ez={"light-prod":"lean","max-pro":"max","scope-instrument":"scope"};function Lz({onOpenPanel:e}){const{activeBundle:t,toggleBundle:n}=hy();return Ks()?p.jsxs("div",{className:"scout-dev-flag",children:[p.jsx("button",{type:"button",className:"chip chip--mono chip--caps chip--sm chip--warning",title:`Experience bundle: ${t}. Click to flip lean/max.`,onClick:n,children:Ez[t]}),p.jsx("button",{type:"button",className:"btn btn--ghost btn--sm btn--icon",title:"Open feature flags","aria-label":"Open feature flags",onClick:e,children:p.jsx(T5,{size:11,strokeWidth:1.8})})]}):null}const{statusBarHeight:vs}=Tr.layout,kv=120,Ev={borderColor:"var(--hud-chrome-border, oklch(var(--border)))"},Sz={backgroundColor:"var(--hud-chrome-border, oklch(var(--border)))"},$z=({isOpen:e,onClose:t,closeLabel:n="Close console",onToggleMaximize:r,isMaximized:o=!1,height:i=320,onHeightChange:a,title:c,headerActions:u,contentOverlay:l,children:d})=>{const f=s.useRef(!1),m=s.useRef(null),h=s.useCallback(v=>{if(!a)return;v.preventDefault(),f.current=!0;const w=v.clientY,b=i;m.current&&(m.current.style.transition="none");const y=C=>{const x=w-C.clientY,L=window.innerHeight-vs,S=Math.max(kv,Math.min(L,b+x));m.current&&(m.current.style.height=`${S}px`)},k=C=>{f.current=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",k),m.current&&(m.current.style.transition="");const x=w-C.clientY,L=window.innerHeight-vs;a(Math.max(kv,Math.min(L,b+x)))};document.addEventListener("mousemove",y),document.addEventListener("mouseup",k)},[i,a]),g=o?`calc(100vh - ${vs}px)`:`${i}px`;return p.jsxs("div",{ref:m,"data-hudson-terminal-drawer":"true",className:`
22
+ fixed left-0 right-0 shadow-[0_-2px_12px_rgba(0,0,0,0.16)] flex flex-col border-t text-card-foreground
23
+ bg-card
24
+ ${e?"translate-y-0 opacity-100 pointer-events-auto":"translate-y-full opacity-0 pointer-events-none"}
25
+ transition-all duration-300 ease-in-out
26
+ `,style:{bottom:vs,height:g,zIndex:Tr.zIndex.drawer,...Ev},children:[p.jsxs("div",{className:"h-9 bg-card/80 border-b flex items-center justify-between px-3 shrink-0 select-none backdrop-blur-sm",style:Ev,children:[p.jsxs("div",{className:"flex items-center gap-3",children:[c||p.jsxs("div",{className:"flex items-center gap-2 text-accent",children:[p.jsx(bP,{size:14}),p.jsx("span",{className:"text-[10px] font-light tracking-[0.18em] font-mono uppercase",children:"TERMINAL"})]}),u]}),p.jsx("div",{className:"flex-1 flex items-center justify-center h-full cursor-ns-resize text-muted-foreground hover:text-foreground transition-colors group",title:"Drag to Resize",onMouseDown:h,children:p.jsx("div",{className:"w-16 h-1 rounded-full group-hover:bg-muted-foreground transition-colors",style:Sz})}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("button",{onClick:r,className:"p-1.5 rounded hover:bg-accent/10 text-muted-foreground hover:text-foreground transition-colors",title:o?"Restore":"Maximize",children:o?p.jsx(uP,{size:14}):p.jsx(lP,{size:14})}),p.jsx("button",{onClick:t,className:"p-1.5 rounded hover:bg-destructive/10 text-muted-foreground hover:text-destructive transition-colors",title:n,"aria-label":n,children:p.jsx(vP,{size:14})})]})]}),p.jsx(y5.Provider,{value:w5,children:p.jsxs("div",{"data-hudson-terminal-drawer-content":"true",className:"flex-1 relative overflow-hidden flex flex-col bg-transparent",children:[d,l&&p.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-3 z-30 flex justify-center px-4",children:p.jsx("div",{className:"pointer-events-auto",children:l})})]})})]})},fo={borderColor:"var(--hud-chrome-border, oklch(var(--border)))"},jz={"--tw-ring-color":"color-mix(in srgb, var(--hud-accent, currentColor) 34%, transparent)"},Oz=({isOpen:e,onClose:t,commands:n})=>{const[r,o]=s.useState(""),[i,a]=s.useState(0),c=s.useId(),u=`${c}-listbox`,l=s.useRef(null),d=s.useRef(null),f=s.useRef(null),m=n.filter(b=>b.label.toLowerCase().includes(r.toLowerCase()));s.useEffect(()=>{e&&(Nt.logger.info("hudson.command_palette.open",{category:"command",data:{commandCount:n.length}}),l.current?.focus({preventScroll:!0}),o(""),a(0))},[n.length,e]),s.useEffect(()=>{a(0)},[r]),s.useEffect(()=>{f.current?.scrollIntoView({behavior:"smooth",block:"nearest"})},[i]);const h=(b,y)=>{const k=Nt.trace.start("hudson.command.execute",{category:"command",data:{commandId:b.id,surface:"command_palette",source:y,queryLength:r.length,resultCount:m.length}});try{b.action(),k.end(),t()}catch(C){throw k.error(C),C}},g=b=>{if((b.key==="ArrowDown"||b.key==="ArrowUp")&&m.length===0){b.preventDefault();return}b.key==="ArrowDown"?(b.preventDefault(),a(y=>(y+1)%m.length)):b.key==="ArrowUp"?(b.preventDefault(),a(y=>(y-1+m.length)%m.length)):b.key==="Enter"?(b.preventDefault(),m[i]&&h(m[i],"keyboard")):b.key==="Escape"&&t()},v=b=>{if(b.key!=="Tab")return;const y=d.current;if(!y)return;const k=Array.from(y.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(S=>!S.hasAttribute("disabled")&&S.getAttribute("aria-hidden")!=="true");if(k.length===0){b.preventDefault();return}const C=k[0],x=k[k.length-1],L=document.activeElement;b.shiftKey?(L===C||!y.contains(L))&&(b.preventDefault(),x.focus()):L===x&&(b.preventDefault(),C.focus())},w=m[i]?`${c}-option-${i}`:void 0;return e?p.jsx("div",{className:"fixed inset-0 z-[100] flex items-start justify-center pt-[15vh] bg-background/45 backdrop-blur-[2px] pointer-events-auto",onClick:t,children:p.jsxs("div",{ref:d,role:"dialog","aria-modal":"true","aria-label":"Command palette",className:"w-[640px] max-w-[90vw] bg-popover border shadow-2xl rounded-lg overflow-hidden flex flex-col animate-in fade-in zoom-in-95 duration-100",style:fo,onClick:b=>b.stopPropagation(),onKeyDown:v,children:[p.jsxs("div",{className:"flex items-center px-4 py-3 border-b gap-3 focus-within:ring-2 focus-within:outline-none",style:{...fo,...jz},children:[p.jsx(By,{className:"text-muted-foreground",size:16,strokeWidth:1.5,"aria-hidden":"true"}),p.jsx("input",{ref:l,className:"flex-1 bg-transparent border-none outline-none text-popover-foreground placeholder:text-muted-foreground font-mono text-[12px] font-normal",style:{boxShadow:"none"},placeholder:"Type a command or search",value:r,onChange:b=>o(b.target.value),onKeyDown:g,role:"combobox","aria-expanded":"true","aria-haspopup":"listbox","aria-controls":u,"aria-activedescendant":w,"aria-autocomplete":"list"}),p.jsx("div",{className:"px-1.5 py-0.5 rounded bg-muted border text-[10px] text-muted-foreground font-mono tracking-[0.12em]",style:fo,"aria-hidden":"true",children:"ESC"})]}),p.jsxs("div",{className:"max-h-[300px] overflow-y-auto py-2 relative",children:[p.jsx("div",{id:u,role:"listbox","aria-label":"Command results",className:"pb-2",children:m.length===0?p.jsx("div",{className:"px-4 py-8 text-center text-muted-foreground text-[11px] font-mono",role:"status",children:"No matching commands"}):m.map((b,y)=>p.jsxs("div",{id:`${c}-option-${y}`,ref:y===i?f:null,role:"option","aria-selected":y===i,className:`px-4 py-2.5 flex items-center gap-3 cursor-pointer transition-colors ${y===i?"bg-accent/10 border-l-2 border-accent":"border-l-2 border-transparent hover:bg-muted/70"}`,onClick:()=>h(b,"pointer"),onMouseEnter:()=>a(y),children:[b.icon&&p.jsx("div",{className:`${y===i?"text-accent":"text-muted-foreground"}`,children:b.icon}),p.jsx("div",{className:"flex-1",children:p.jsx("div",{className:`text-[12px] ${y===i?"text-accent font-medium":"text-foreground/80 font-normal"}`,children:b.label})}),b.shortcut&&p.jsx("div",{className:"text-[10px] font-mono text-muted-foreground bg-muted px-1.5 py-0.5 rounded border tracking-[0.04em]",style:fo,children:b.shortcut}),y===i&&p.jsx(aP,{size:14,className:"text-accent ml-2","aria-hidden":"true"})]},b.id))}),m.length>6&&p.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-8 bg-gradient-to-t from-popover to-transparent pointer-events-none"})]}),p.jsxs("div",{className:"px-4 py-1.5 bg-card/90 backdrop-blur-sm border-t flex justify-between items-center text-[10px] text-muted-foreground font-mono relative z-10 tracking-[0.18em] uppercase",style:fo,children:[p.jsx("span",{children:"Command Palette"}),p.jsxs("span",{className:"tracking-[0.04em] normal-case",children:[m.length," matches"]})]})]})}):null},qx=s.createContext(null),Rz=s.createContext(null);function Mz({children:e}){const[t,n]=s.useState(null);return p.jsx(qx.Provider,{value:t,children:p.jsx(Rz.Provider,{value:n,children:e})})}function Pz(){return s.useContext(qx)}const de=(...e)=>e,Tz=[{title:"App shell",bindings:[{chords:[_5,U5],label:xo},{chords:[de("⌘","K")],label:"Command palette"},{chords:[de("⌘","["),de("⌘","B")],label:"Toggle sidebar / left panel"},{chords:[de("⌘","]")],label:"Toggle right panel"},{chords:[de("⌘","⇧","]")],label:"Toggle inspector overlay"},{chords:[de("Ctrl","`")],label:"Toggle terminal drawer"},{chords:[de("⌘","J")],label:"Toggle terminal"}]},{title:"Navigation",bindings:X5.map(e=>({chords:[de("g",e.key)],label:e.label}))},{title:"Global",bindings:[{chords:[de("?")],label:"Toggle this help"},{chords:[de("Esc")],label:"Close dialog / clear search"},{chords:[de("Tab"),de("⇧","Tab")],label:"Move focus"},{chords:[de("[")],label:"Focus previous pane"},{chords:[de("]")],label:"Focus next pane"}]},{title:"Lists",bindings:[{chords:[de("↓"),de("j")],label:"Next item"},{chords:[de("↑"),de("k")],label:"Previous item"},{chords:[de("g"),de("Home")],label:"First item"},{chords:[de("G"),de("End")],label:"Last item"},{chords:[de("Enter")],label:"Open / activate"}]},{title:"Search",bindings:[{chords:[de("/")],label:"Focus filter input"},{chords:[de("↓")],label:"From filter → first match"},{chords:[de("Esc")],label:"Clear filter (while focused)"}]},{title:"Composers",bindings:[{chords:[de("Enter"),de("⇧","Enter")],label:"Insert line break"},{chords:[de("⌘","Enter"),de("Ctrl","Enter")],label:"Send message"}]},{title:"Capture routing",bindings:[{chords:[de("Drop")],label:"Drop screenshot/video anywhere"},{chords:[de("⌘","V")],label:"Paste image into route composer"},{chords:[de("Existing chat"),de("New session")],label:"Choose delivery in composer"}]},{title:"Dispatch",bindings:[{chords:[de("↓"),de("j")],label:"Next ledger row"},{chords:[de("↑"),de("k")],label:"Previous ledger row"},{chords:[de("Enter")],label:"Inspect row / open dialogue thread"},{chords:[de("←"),de("→")],label:"Switch dispatch tabs"},{chords:[de("Esc")],label:"Clear inspector selection"}]},{title:"Agent lanes",bindings:[{chords:[de("↓"),de("j")],label:"Next lane"},{chords:[de("↑"),de("k")],label:"Previous lane"},{chords:[de("g"),de("Home")],label:"First lane"},{chords:[de("G"),de("End")],label:"Last lane"},{chords:[de("Enter"),de("i")],label:"Inspect lane"},{chords:[de("p")],label:"Pin / unpin lane"},{chords:[de("1","…","4")],label:"Switch trace window (5m → 24h)"},{chords:[de("o")],label:"Open session (detail sheet)"},{chords:[de("t")],label:"Open traces (detail sheet)"},{chords:[de("Esc")],label:"Close detail sheet"}]},{title:"Tail · Atop",bindings:[{chords:[de("/")],label:"Open filter (Tail)"},{chords:[de("G")],label:"Jump to live (Tail)"},{chords:[de("j"),de("k")],label:"Walk rows (Atop)"}]},{title:"Session scrubber",bindings:[{chords:[de("←"),de("→")],label:"Seek ±1%"},{chords:[de("⇧","←"),de("⇧","→")],label:"Seek ±5%"},{chords:[de("Home"),de("End")],label:"Jump to start / end"}]}];function Az({open:e,onClose:t}){const{ref:n,onKeyDown:r}=py(e);return e?p.jsx("div",{className:"kb-help-backdrop",onClick:t,role:"presentation",children:p.jsxs("div",{ref:n,className:"kb-help-panel",role:"dialog","aria-modal":"true","aria-labelledby":"kb-help-title",onClick:o=>o.stopPropagation(),onKeyDown:r,tabIndex:-1,children:[p.jsxs("header",{className:"kb-help-head",children:[p.jsx("h2",{id:"kb-help-title",className:"kb-help-title",children:"Keyboard shortcuts"}),p.jsx("button",{type:"button",className:"kb-help-close",onClick:t,"aria-label":"Close (Esc)",children:"✕"})]}),p.jsx("div",{className:"kb-help-grid",children:Tz.map(o=>p.jsxs("section",{className:"kb-help-group",children:[p.jsx("h3",{className:"kb-help-group-title",children:o.title}),p.jsx("dl",{className:"kb-help-list",children:o.bindings.map((i,a)=>p.jsxs("div",{className:"kb-help-row",children:[p.jsx("dt",{className:"kb-help-keys",children:i.chords.map((c,u)=>p.jsxs("span",{className:"kb-help-chord-wrap",children:[u>0&&p.jsx("span",{className:"kb-help-or",children:"or"}),p.jsx("span",{className:"kb-help-chord",children:c.map((l,d)=>p.jsx("kbd",{className:"kb-help-kbd",children:l},`${l}-${d}`))})]},`${u}-${c.join("+")}`))}),p.jsx("dd",{className:"kb-help-label",children:i.label})]},`${o.title}-${a}`))})]},o.title))}),p.jsxs("footer",{className:"kb-help-foot",children:["Press ",p.jsx("kbd",{className:"kb-help-kbd",children:"?"})," to toggle · ",p.jsx("kbd",{className:"kb-help-kbd",children:"Esc"})," to close"]})]})}):null}function Iz(){const[e,t]=s.useState(!1);return s.useEffect(()=>{const n=r=>{if(r.key==="Escape"&&e){r.preventDefault(),t(!1);return}r.key==="?"&&(my(r.target)||(r.preventDefault(),t(o=>!o)))};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[e]),{open:e,setOpen:t}}const Nz=15e3,Dz=3e4;function Vz(){const[e,t]=s.useState([]),[n,r]=s.useState(null),[o,i]=s.useState(null),a=s.useRef(!0),c=s.useRef(null),u=s.useCallback(async()=>{try{const h=await Pu("/api/notifications?type=pairing_request");if(!a.current)return!0;const g=h.notifications.map(v=>v.data?.request).filter(v=>v?.status==="pending");return t(g),!0}catch{return!1}},[]);s.useEffect(()=>{a.current=!0;let h=!1;const g=()=>{c.current!==null&&(window.clearTimeout(c.current),c.current=null)},v=y=>{g(),c.current=window.setTimeout(()=>{w()},y)},w=async()=>{if(g(),!J5())return;const y=await u();h||!a.current||v(y?Nz:Dz)};w();const b=Z5(()=>{w()});return()=>{h=!0,a.current=!1,g(),b()}},[u]);const l=s.useCallback(async(h,g)=>{r(h),i(null);try{await Pu(`/api/pairing/requests/${encodeURIComponent(h)}/decide`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({decision:g})}),t(v=>v.filter(w=>w.token!==h)),u()}catch(v){i(v instanceof Error?v.message:String(v))}finally{r(null)}},[u]);if(e.length===0)return null;const d=e[0],f=d.requesterLabel?.trim()||"A device",m=n===d.token;return p.jsx("div",{className:"scout-pair-prompt",role:"alertdialog","aria-label":"Pairing request",children:p.jsxs("div",{className:"scout-pair-prompt-card",children:[p.jsx("div",{className:"scout-pair-prompt-eyebrow",children:"Pairing request"}),p.jsxs("div",{className:"scout-pair-prompt-title",children:[f," wants to pair"]}),p.jsxs("div",{className:"scout-pair-prompt-detail",children:["On your network",d.requesterIp?` · ${d.requesterIp}`:"",". Allowing trusts this device and starts pair mode."]}),o?p.jsx("div",{className:"scout-pair-prompt-error",children:o}):null,p.jsxs("div",{className:"scout-pair-prompt-actions",children:[p.jsx("button",{type:"button",className:"scout-pair-prompt-btn scout-pair-prompt-deny",disabled:m,onClick:()=>{l(d.token,"deny")},children:"Deny"}),p.jsx("button",{type:"button",className:"scout-pair-prompt-btn scout-pair-prompt-allow",disabled:m,onClick:()=>{l(d.token,"approve")},children:m?"Allowing…":"Allow"})]}),e.length>1?p.jsxs("div",{className:"scout-pair-prompt-more",children:["+",e.length-1," more waiting"]}):null]})})}const Zx=200;function Fz({onOpen:e}){return p.jsx("button",{type:"button",onClick:e,className:"flex min-w-0 items-center rounded px-1 py-0.5 transition-colors hover:bg-muted/70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:"Open activity log","aria-label":"Open activity log",children:p.jsx(FP,{maxEvents:Zx,showCounts:!0})})}function Bz({open:e,onClose:t}){return s.useEffect(()=>{if(!e)return;const n=r=>{r.key==="Escape"&&t()};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[t,e]),e?p.jsx("div",{className:"fixed inset-0 z-[70] flex bg-background/88 p-3 text-foreground backdrop-blur-md md:p-5",role:"dialog","aria-modal":"true","aria-label":"Activity log",children:p.jsxs("div",{className:"flex min-h-0 w-full flex-col",children:[p.jsxs("div",{className:"flex h-10 shrink-0 items-center justify-between border border-border border-b-0 bg-card/95 px-3 shadow-[var(--hud-shadow-nav)]",children:[p.jsx("div",{className:"min-w-0 font-mono text-sm font-semibold uppercase tracking-[0.18em] text-foreground",children:"Activity Log"}),p.jsx("button",{type:"button",onClick:t,className:"rounded p-1 text-muted-foreground transition-colors hover:bg-muted/70 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:"Close activity log","aria-label":"Close activity log",children:p.jsx(Rd,{size:14})})]}),p.jsx(BP,{observability:Nt,maxEvents:Zx,title:"activity",className:"min-h-0 flex-1 rounded-t-none",emptyMessage:"No activity yet. Connection and status events will appear here."})]})}):null}function Hz({dictationActive:e}){const t=Pr(gy,!0),{open:n,setOpen:r,state:o}=D5(),{navigate:i}=Xt(),a=s.useRef(null),[c,u]=s.useState({left:12,bottom:36});if(s.useEffect(()=>()=>r(!1),[r]),s.useEffect(()=>{if(!n)return;const m=h=>{h.key==="Escape"&&(h.preventDefault(),r(!1),a.current?.focus())};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[n,r]),s.useLayoutEffect(()=>{if(!n)return;const m=()=>{const h=a.current;if(!h)return;const g=h.getBoundingClientRect(),v=Math.min(384,window.innerWidth-16);u({left:Math.max(8,Math.min(g.left,window.innerWidth-v-8)),bottom:Math.max(36,window.innerHeight-g.top+8)})};return m(),window.addEventListener("resize",m),window.addEventListener("scroll",m,!0),()=>{window.removeEventListener("resize",m),window.removeEventListener("scroll",m,!0)}},[n]),!t)return null;const d=o==="connecting"||o==="live"?o==="connecting"?"Scoutbot voice is connecting":"Scoutbot voice is live":n?"Hide Scoutbot voice":"Open Scoutbot voice controls",f=typeof document>"u"?null:document.querySelector("[data-scout-theme]")??document.body;return p.jsxs("div",{className:"flex items-center",children:[p.jsxs("button",{ref:a,type:"button",onClick:()=>r(m=>!m),title:d,"aria-label":d,"aria-expanded":n,"aria-controls":"scoutbot-realtime-voice-menu",className:`flex h-[18px] items-center gap-1.5 rounded border px-1.5 font-mono text-2xs uppercase tracking-[0.1em] transition-colors ${o==="live"?"border-lime-300/35 bg-lime-300/[0.08] text-lime-100":o==="connecting"?"border-amber-300/30 bg-amber-300/[0.07] text-amber-100/90":o==="error"?"border-red-400/30 bg-red-400/[0.07] text-red-100":n?"border-[var(--scout-chrome-border-soft)] bg-[var(--scout-chrome-hover)] text-[var(--scout-chrome-ink)]":"border-transparent text-[var(--scout-chrome-ink-faint)] hover:text-[var(--scout-chrome-ink)]"}`,children:[o==="connecting"?p.jsx(Q5,{size:10,className:"animate-spin","aria-hidden":"true"}):o==="live"?p.jsxs("span",{className:"relative flex size-1.5 shrink-0","aria-hidden":"true",children:[p.jsx("span",{className:"absolute inline-flex size-full animate-ping rounded-full bg-lime-300/30"}),p.jsx("span",{className:"relative inline-flex size-1.5 rounded-full bg-lime-300/90"})]}):p.jsx(ek,{size:10,fill:"currentColor","aria-hidden":"true"}),p.jsx("span",{children:o==="live"?"Voice live":o==="connecting"?"Voice connecting":"Voice"})]}),n&&f&&ft.createPortal(p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"fixed inset-0 z-[80]","aria-hidden":"true",onMouseDown:()=>r(!1)}),p.jsxs("div",{id:"scoutbot-realtime-voice-menu",className:"fixed z-[81] flex h-[min(31rem,calc(100vh-3rem))] min-h-80 w-[min(24rem,calc(100vw-1rem))] min-w-80 resize flex-col overflow-hidden rounded-xl border border-[color-mix(in_srgb,var(--hud-ink)_13%,transparent)] bg-[color-mix(in_srgb,var(--scout-chrome-bg)_96%,black)] shadow-[0_18px_44px_rgba(0,0,0,0.46)] backdrop-blur-md",style:{left:c.left,bottom:c.bottom},role:"dialog","aria-label":"Scoutbot live voice",onMouseDown:m=>m.stopPropagation(),children:[p.jsx(H5,{state:o,onExpand:()=>{r(!1),i({view:"voice"})}}),p.jsx(W5,{dictationActive:e})]})]}),f)]})}let Lv=!1;function Wz(){Lv||(Lv=!0,Nt.setEnabled(!0),Nt.logger.info("Scout web shell booted",{category:"shell"}))}function zz(e,t){const n=s.useRef(null),r=s.useRef(null),o=s.useRef(null);s.useEffect(()=>{if(Wz(),t.status==="offline"||t.status==="degraded"){const i=t.message?.trim()||"Scout web API unreachable";i!==n.current&&(n.current=i,Nt.logger.log(t.status==="offline"?"error":"warn",i,{category:"connection"}))}else n.current=null;if(e.status.color==="red"){const i=e.status.label.trim();i&&i!==r.current&&(r.current=i,Nt.logger.error(i,{category:"status"}))}else r.current=null;if(e.mesh.color==="amber"||e.mesh.color==="red"){const i=`${e.mesh.label}: ${e.mesh.value}`;if(i!==o.current){o.current=i;const a=e.mesh.color==="red"?"error":"warn";Nt.logger.log(a,i,{category:"mesh"})}}else o.current=null},[t.message,t.status,e.mesh,e.status])}function wd(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}const Ro={};function _i(e,t,n,r,o){let i={...xd(e,Ro)};return t&&(i=Jx(i,t)),i}function _z(e){if(e.length===0)return Ro;if(e.length===1)return xd(e[0],Ro);let t={...xd(e[0],Ro)};for(let n=1;n<e.length;n+=1)t=Jx(t,e[n]);return t}function Jx(e,t){return Qx(t)?t(e):Uz(e,t)}function Uz(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=wd(e.style,r);break}case"className":{e[n]=eC(e.className,r);break}default:Kz(n,r)?e[n]=Gz(e[n],r):e[n]=r}}return e}function Kz(e,t){const n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return n===111&&r===110&&o>=65&&o<=90&&(typeof t=="function"||typeof t>"u")}function Qx(e){return typeof e=="function"}function xd(e,t){return Qx(e)?e(t):e??Ro}function Gz(e,t){return t?e?n=>{if(Xz(n)){const o=n;Yz(o);const i=t(o);return o.baseUIHandlerPrevented||e?.(o),i}const r=t(n);return e?.(n),r}:t:e}function Yz(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function eC(e,t){return t?e?t+" "+e:t:e}function Xz(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Yr(e,...t){const n=new URL(`https://base-ui.com/production-error/${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Base UI error #${e}; visit ${n} for the full message.`}const Sv={};function Ln(e,t){const n=s.useRef(Sv);return n.current===Sv&&(n.current=e(t)),n}function $v(e,t,n,r){const o=Ln(tC).current;return Zz(o,e,t,n,r)&&nC(o,[e,t,n,r]),o.callback}function qz(e){const t=Ln(tC).current;return Jz(t,e)&&nC(t,e),t.callback}function tC(){return{callback:null,cleanup:null,refs:[]}}function Zz(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}function Jz(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function nC(e,t){if(e.refs=t,t.every(n=>n==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),n!=null){const r=Array(t.length).fill(null);for(let o=0;o<t.length;o+=1){const i=t[o];if(i!=null)switch(typeof i){case"function":{const a=i(n);typeof a=="function"&&(r[o]=a);break}case"object":{i.current=n;break}}}e.cleanup=()=>{for(let o=0;o<t.length;o+=1){const i=t[o];if(i!=null)switch(typeof i){case"function":{const a=r[o];typeof a=="function"?a():i(null);break}case"object":{i.current=null;break}}}}}}}const Qz=parseInt(s.version,10);function rC(e){return Qz>=e}function jv(e){if(!s.isValidElement(e))return null;const t=e,n=t.props;return(rC(19)?n?.ref:t.ref)??null}function e_(e,t){const n={};for(const r in e){const o=e[r];if(t?.hasOwnProperty(r)){const i=t[r](o);i!=null&&Object.assign(n,i);continue}o===!0?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}function t_(e,t){return typeof e=="function"?e(t):e}function n_(e,t){return typeof e=="function"?e(t):e}function r_(){}const jt=Object.freeze({}),o_={style:{transition:"none"}},s_={fallbackAxisSide:"end"};function Yo(e,t,n={}){const r=t.render,o=i_(t,n);if(n.enabled===!1)return null;const i=n.state??jt;return a_(e,r,o,i)}function i_(e,t={}){const{className:n,style:r,render:o}=e,{state:i=jt,ref:a,props:c,stateAttributesMapping:u,enabled:l=!0}=t,d=l?t_(n,i):void 0,f=l?n_(r,i):void 0,m=l?e_(i,u):jt,h=l?wd(m,Array.isArray(c)?_z(c):c)??jt:jt;return typeof document<"u"&&(l?Array.isArray(a)?h.ref=qz([h.ref,jv(o),...a]):h.ref=$v(h.ref,jv(o),a):$v(null,null)),l?(d!==void 0&&(h.className=eC(h.className,d)),f!==void 0&&(h.style=wd(h.style,f)),h):jt}function a_(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const o=_i(n,t.props);return o.ref=n.ref,s.cloneElement(t,o)}if(e&&typeof e=="string")return c_(e,n);throw new Error(Yr(8))}function c_(e,t){return e==="button"?s.createElement("button",{type:"button",...t,key:t.key}):e==="img"?s.createElement("img",{alt:"",...t,key:t.key}):s.createElement(e,t)}function Nf(e){return Yo(e.defaultTagName??"div",e,e)}function oC(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=oC(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function sC(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=oC(e))&&(r&&(r+=" "),r+=t);return r}const Ov=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Rv=sC,l_=(e,t)=>n=>{var r;if(t?.variants==null)return Rv(e,n?.class,n?.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map(l=>{const d=n?.[l],f=i?.[l];if(d===null)return null;const m=Ov(d)||Ov(f);return o[l][m]}),c=n&&Object.entries(n).reduce((l,d)=>{let[f,m]=d;return m===void 0||(l[f]=m),l},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,d)=>{let{class:f,className:m,...h}=d;return Object.entries(h).every(g=>{let[v,w]=g;return Array.isArray(w)?w.includes({...i,...c}[v]):{...i,...c}[v]===w})?[...l,f,m]:l},[]);return Rv(e,a,u,n?.class,n?.className)},u_=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},d_=(e,t)=>({classGroupId:e,validator:t}),iC=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),bi="-",Mv=[],f_="arbitrary..",p_=e=>{const t=h_(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return m_(a);const c=a.split(bi),u=c[0]===""&&c.length>1?1:0;return aC(c,u,t)},getConflictingClassGroupIds:(a,c)=>{if(c){const u=r[a],l=n[a];return u?l?u_(l,u):u:l||Mv}return n[a]||Mv}}},aC=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const l=aC(e,t+1,i);if(l)return l}const a=n.validators;if(a===null)return;const c=t===0?e.join(bi):e.slice(t).join(bi),u=a.length;for(let l=0;l<u;l++){const d=a[l];if(d.validator(c))return d.classGroupId}},m_=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?f_+r:void 0})(),h_=e=>{const{theme:t,classGroups:n}=e;return g_(n,t)},g_=(e,t)=>{const n=iC();for(const r in e){const o=e[r];Df(o,n,r,t)}return n},Df=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const a=e[i];b_(a,t,n,r)}},b_=(e,t,n,r)=>{if(typeof e=="string"){v_(e,t,n);return}if(typeof e=="function"){y_(e,t,n,r);return}w_(e,t,n,r)},v_=(e,t,n)=>{const r=e===""?t:cC(t,e);r.classGroupId=n},y_=(e,t,n,r)=>{if(x_(e)){Df(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(d_(n,e))},w_=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){const[c,u]=o[a];Df(u,cC(t,c),n,r)}},cC=(e,t)=>{let n=e;const r=t.split(bi),o=r.length;for(let i=0;i<o;i++){const a=r[i];let c=n.nextPart.get(a);c||(c=iC(),n.nextPart.set(a,c)),n=c}return n},x_=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,C_=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let a=n[i];if(a!==void 0)return a;if((a=r[i])!==void 0)return o(i,a),a},set(i,a){i in n?n[i]=a:o(i,a)}}},Cd="!",Pv=":",k_=[],Tv=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),E_=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let a=0,c=0,u=0,l;const d=o.length;for(let v=0;v<d;v++){const w=o[v];if(a===0&&c===0){if(w===Pv){i.push(o.slice(u,v)),u=v+1;continue}if(w==="/"){l=v;continue}}w==="["?a++:w==="]"?a--:w==="("?c++:w===")"&&c--}const f=i.length===0?o:o.slice(u);let m=f,h=!1;f.endsWith(Cd)?(m=f.slice(0,-1),h=!0):f.startsWith(Cd)&&(m=f.slice(1),h=!0);const g=l&&l>u?l-u:void 0;return Tv(i,h,m,g)};if(t){const o=t+Pv,i=r;r=a=>a.startsWith(o)?i(a.slice(o.length)):Tv(k_,!1,a,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},L_=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const a=n[i],c=a[0]==="[",u=t.has(a);c||u?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(a)):o.push(a)}return o.length>0&&(o.sort(),r.push(...o)),r}},S_=e=>({cache:C_(e.cacheSize),parseClassName:E_(e),sortModifiers:L_(e),postfixLookupClassGroupIds:$_(e),...p_(e)}),$_=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},j_=/\s+/,O_=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:a}=t,c=[],u=e.trim().split(j_);let l="";for(let d=u.length-1;d>=0;d-=1){const f=u[d],{isExternal:m,modifiers:h,hasImportantModifier:g,baseClassName:v,maybePostfixModifierPosition:w}=n(f);if(m){l=f+(l.length>0?" "+l:l);continue}let b=!!w,y;if(b){const S=v.substring(0,w);y=r(S);const E=y&&a[y]?r(v):void 0;E&&E!==y&&(y=E,b=!1)}else y=r(v);if(!y){if(!b){l=f+(l.length>0?" "+l:l);continue}if(y=r(v),!y){l=f+(l.length>0?" "+l:l);continue}b=!1}const k=h.length===0?"":h.length===1?h[0]:i(h).join(":"),C=g?k+Cd:k,x=C+y;if(c.indexOf(x)>-1)continue;c.push(x);const L=o(y,b);for(let S=0;S<L.length;++S){const E=L[S];c.push(C+E)}l=f+(l.length>0?" "+l:l)}return l},R_=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=lC(n))&&(o&&(o+=" "),o+=r);return o},lC=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=lC(e[r]))&&(n&&(n+=" "),n+=t);return n},M_=(e,...t)=>{let n,r,o,i;const a=u=>{const l=t.reduce((d,f)=>f(d),e());return n=S_(l),r=n.cache.get,o=n.cache.set,i=c,c(u)},c=u=>{const l=r(u);if(l)return l;const d=O_(u,n);return o(u,d),d};return i=a,(...u)=>i(R_(...u))},P_=[],Qe=e=>{const t=n=>n[e]||P_;return t.isThemeGetter=!0,t},uC=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,dC=/^\((?:(\w[\w-]*):)?(.+)\)$/i,T_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,A_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,I_=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,N_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,D_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,V_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rn=e=>T_.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),Jt=e=>!!e&&Number.isInteger(Number(e)),vu=e=>e.endsWith("%")&&Le(e.slice(0,-1)),hn=e=>A_.test(e),fC=()=>!0,F_=e=>I_.test(e)&&!N_.test(e),Vf=()=>!1,B_=e=>D_.test(e),H_=e=>V_.test(e),W_=e=>!fe(e)&&!pe(e),z_=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),__=e=>qn(e,hC,Vf),fe=e=>uC.test(e),nr=e=>qn(e,gC,F_),Av=e=>qn(e,J_,Le),U_=e=>qn(e,vC,fC),K_=e=>qn(e,bC,Vf),Iv=e=>qn(e,pC,Vf),G_=e=>qn(e,mC,H_),ys=e=>qn(e,yC,B_),pe=e=>dC.test(e),po=e=>br(e,gC),Y_=e=>br(e,bC),Nv=e=>br(e,pC),X_=e=>br(e,hC),q_=e=>br(e,mC),ws=e=>br(e,yC,!0),Z_=e=>br(e,vC,!0),qn=(e,t,n)=>{const r=uC.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},br=(e,t,n=!1)=>{const r=dC.exec(e);return r?r[1]?t(r[1]):n:!1},pC=e=>e==="position"||e==="percentage",mC=e=>e==="image"||e==="url",hC=e=>e==="length"||e==="size"||e==="bg-size",gC=e=>e==="length",J_=e=>e==="number",bC=e=>e==="family-name",vC=e=>e==="number"||e==="weight",yC=e=>e==="shadow",Q_=()=>{const e=Qe("color"),t=Qe("font"),n=Qe("text"),r=Qe("font-weight"),o=Qe("tracking"),i=Qe("leading"),a=Qe("breakpoint"),c=Qe("container"),u=Qe("spacing"),l=Qe("radius"),d=Qe("shadow"),f=Qe("inset-shadow"),m=Qe("text-shadow"),h=Qe("drop-shadow"),g=Qe("blur"),v=Qe("perspective"),w=Qe("aspect"),b=Qe("ease"),y=Qe("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...C(),pe,fe],L=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],E=()=>[pe,fe,u],M=()=>[Rn,"full","auto",...E()],P=()=>[Jt,"none","subgrid",pe,fe],D=()=>["auto",{span:["full",Jt,pe,fe]},Jt,pe,fe],T=()=>[Jt,"auto",pe,fe],j=()=>["auto","min","max","fr",pe,fe],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],A=()=>["start","end","center","stretch","center-safe","end-safe"],I=()=>["auto",...E()],B=()=>[Rn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],$=()=>[Rn,"screen","full","dvw","lvw","svw","min","max","fit",...E()],z=()=>[Rn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],R=()=>[e,pe,fe],q=()=>[...C(),Nv,Iv,{position:[pe,fe]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],te=()=>["auto","cover","contain",X_,__,{size:[pe,fe]}],ae=()=>[vu,po,nr],le=()=>["","none","full",l,pe,fe],ne=()=>["",Le,po,nr],re=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[Le,vu,Nv,Iv],ue=()=>["","none",g,pe,fe],O=()=>["none",Le,pe,fe],X=()=>["none",Le,pe,fe],V=()=>[Le,pe,fe],ge=()=>[Rn,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[hn],breakpoint:[hn],color:[fC],container:[hn],"drop-shadow":[hn],ease:["in","out","in-out"],font:[W_],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[hn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[hn],shadow:[hn],spacing:["px",Le],text:[hn],"text-shadow":[hn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Rn,fe,pe,w]}],container:["container"],"container-type":[{"@container":["","normal","size",pe,fe]}],"container-named":[z_],columns:[{columns:[Le,fe,pe,c]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{"inset-s":M(),start:M()}],end:[{"inset-e":M(),end:M()}],"inset-bs":[{"inset-bs":M()}],"inset-be":[{"inset-be":M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[Jt,"auto",pe,fe]}],basis:[{basis:[Rn,"full","auto",c,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,Rn,"auto","initial","none",fe]}],grow:[{grow:["",Le,pe,fe]}],shrink:[{shrink:["",Le,pe,fe]}],order:[{order:[Jt,"first","last","none",pe,fe]}],"grid-cols":[{"grid-cols":P()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...A(),"normal"]}],"justify-self":[{"justify-self":["auto",...A()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...A(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...A(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...A(),"baseline"]}],"place-self":[{"place-self":["auto",...A()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:I()}],mx:[{mx:I()}],my:[{my:I()}],ms:[{ms:I()}],me:[{me:I()}],mbs:[{mbs:I()}],mbe:[{mbe:I()}],mt:[{mt:I()}],mr:[{mr:I()}],mb:[{mb:I()}],ml:[{ml:I()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],"inline-size":[{inline:["auto",...$()]}],"min-inline-size":[{"min-inline":["auto",...$()]}],"max-inline-size":[{"max-inline":["none",...$()]}],"block-size":[{block:["auto",...z()]}],"min-block-size":[{"min-block":["auto",...z()]}],"max-block-size":[{"max-block":["none",...z()]}],w:[{w:[c,"screen",...B()]}],"min-w":[{"min-w":[c,"screen","none",...B()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[a]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",n,po,nr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Z_,U_]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vu,fe]}],"font-family":[{font:[Y_,K_,t]}],"font-features":[{"font-features":[fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,pe,fe]}],"line-clamp":[{"line-clamp":[Le,"none",pe,Av]}],leading:[{leading:[i,...E()]}],"list-image":[{"list-image":["none",pe,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",pe,nr]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[Le,"auto",pe,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"tab-size":[{tab:[Jt,pe,fe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Jt,pe,fe],radial:["",pe,fe],conic:[Jt,pe,fe]},q_,G_]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:ae()}],"gradient-via-pos":[{via:ae()}],"gradient-to-pos":[{to:ae()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-bs":[{"border-bs":ne()}],"border-w-be":[{"border-be":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-bs":[{"border-bs":R()}],"border-color-be":[{"border-be":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,pe,fe]}],"outline-w":[{outline:["",Le,po,nr]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",d,ws,ys]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",f,ws,ys]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[Le,nr]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",m,ws,ys]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[Le,pe,fe]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[pe,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,fe]}],filter:[{filter:["","none",pe,fe]}],blur:[{blur:ue()}],brightness:[{brightness:[Le,pe,fe]}],contrast:[{contrast:[Le,pe,fe]}],"drop-shadow":[{"drop-shadow":["","none",h,ws,ys]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",Le,pe,fe]}],"hue-rotate":[{"hue-rotate":[Le,pe,fe]}],invert:[{invert:["",Le,pe,fe]}],saturate:[{saturate:[Le,pe,fe]}],sepia:[{sepia:["",Le,pe,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,fe]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[Le,pe,fe]}],"backdrop-contrast":[{"backdrop-contrast":[Le,pe,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,pe,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,pe,fe]}],"backdrop-invert":[{"backdrop-invert":["",Le,pe,fe]}],"backdrop-opacity":[{"backdrop-opacity":[Le,pe,fe]}],"backdrop-saturate":[{"backdrop-saturate":[Le,pe,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,pe,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",pe,fe]}],ease:[{ease:["linear","initial",b,pe,fe]}],delay:[{delay:[Le,pe,fe]}],animate:[{animate:["none",y,pe,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,pe,fe]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:O()}],"rotate-x":[{"rotate-x":O()}],"rotate-y":[{"rotate-y":O()}],"rotate-z":[{"rotate-z":O()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:V()}],"skew-x":[{"skew-x":V()}],"skew-y":[{"skew-y":V()}],transform:[{transform:[pe,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ge()}],"translate-x":[{"translate-x":ge()}],"translate-y":[{"translate-y":ge()}],"translate-z":[{"translate-z":ge()}],"translate-none":["translate-none"],zoom:[{zoom:[Jt,pe,fe]}],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pe,fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":R()}],"scrollbar-track-color":[{"scrollbar-track":R()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,fe]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[Le,po,nr,Av]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},eU=M_(Q_);function Ge(...e){return eU(sC(e))}function Ui(){return typeof window<"u"}function Xr(e){return Ff(e)?(e.nodeName||"").toLowerCase():"#document"}function dt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function dn(e){var t;return(t=(Ff(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ff(e){return Ui()?e instanceof Node||e instanceof dt(e).Node:!1}function Te(e){return Ui()?e instanceof Element||e instanceof dt(e).Element:!1}function Pt(e){return Ui()?e instanceof HTMLElement||e instanceof dt(e).HTMLElement:!1}function kd(e){return!Ui()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof dt(e).ShadowRoot}function Xo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Mt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function tU(e){return/^(table|td|th)$/.test(Xr(e))}function Ki(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const nU=/transform|translate|scale|rotate|perspective|filter/,rU=/paint|layout|strict|content/,rr=e=>!!e&&e!=="none";let yu;function Bf(e){const t=Te(e)?Mt(e):e;return rr(t.transform)||rr(t.translate)||rr(t.scale)||rr(t.rotate)||rr(t.perspective)||!Gi()&&(rr(t.backdropFilter)||rr(t.filter))||nU.test(t.willChange||"")||rU.test(t.contain||"")}function oU(e){let t=kn(e);for(;Pt(t)&&!wn(t);){if(Bf(t))return t;if(Ki(t))return null;t=kn(t)}return null}function Gi(){return yu==null&&(yu=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),yu}function wn(e){return/^(html|body|#document)$/.test(Xr(e))}function Mt(e){return dt(e).getComputedStyle(e)}function Yi(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function kn(e){if(Xr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||kd(e)&&e.host||dn(e);return kd(t)?t.host:t}function wC(e){const t=kn(e);return wn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pt(t)&&Xo(t)?t:wC(t)}function Bn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=wC(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=dt(o);if(i){const c=Ed(a);return t.concat(a,a.visualViewport||[],Xo(o)?o:[],c&&n?Bn(c):[])}else return t.concat(o,Bn(o,[],n))}function Ed(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const wu=Li[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],sU=wu&&wu!==s.useLayoutEffect?wu:e=>e();function je(e){const t=Ln(iU).current;return t.next=e,sU(t.effect),t.trampoline}function iU(){const e={next:void 0,callback:aU,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function aU(){}const cU=()=>{},De=typeof document<"u"?s.useLayoutEffect:cU,xC=s.createContext(void 0);function Xi(e){const t=s.useContext(xC);if(t===void 0&&!e)throw new Error(Yr(72));return t}const lU=[];function CC(e){s.useEffect(e,lU)}const mo=0;class qr{static create(){return new qr}currentId=mo;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=mo,n()},t)}isStarted(){return this.currentId!==mo}clear=()=>{this.currentId!==mo&&(clearTimeout(this.currentId),this.currentId=mo)};disposeEffect=()=>this.clear}function Fr(){const e=Ln(qr.create).current;return CC(e.disposeEffect),e}function ur(e){const t=Ln(uU,e).current;return t.next=e,De(t.effect),t}function uU(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const qo=typeof navigator<"u",xu=gU(),dU=vU(),fU=bU();typeof CSS>"u"||!CSS.supports||CSS.supports("-webkit-backdrop-filter:none");xu.platform==="MacIntel"&&xu.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(xu.platform);const pU=qo&&/apple/i.test(navigator.vendor),mU=qo&&dU.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,hU=fU.includes("jsdom/");function gU(){if(!qo)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function bU(){if(!qo)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function vU(){if(!qo)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const yU="data-base-ui-focusable",kC="active",EC="selected",LC="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Dv(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function ht(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&kd(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function en(e){return"composedPath"in e?e.composedPath()[0]:e.target}function _t(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function wU(e){return e.matches("html,body")}function pr(e){return e?.ownerDocument||document}function xU(e){return Pt(e)&&e.matches(LC)}function CU(e){if(!e||hU)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Mo(e,t,n=!0){return e.filter(o=>o.parentId===t&&(!n||o.context?.open)).flatMap(o=>[o,...Mo(e,o.id,n)])}function kU(e){return"nativeEvent"in e}function Ho(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function EU(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const LU=["top","right","bottom","left"],Br=Math.min,$t=Math.max,Hr=Math.round,xs=Math.floor,sn=e=>({x:e,y:e}),SU={left:"right",right:"left",bottom:"top",top:"bottom"};function Ld(e,t,n){return $t(e,Br(t,n))}function En(e,t){return typeof e=="function"?e(t):e}function kt(e){return e.split("-")[0]}function Zn(e){return e.split("-")[1]}function Hf(e){return e==="x"?"y":"x"}function Wf(e){return e==="y"?"height":"width"}function It(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function zf(e){return Hf(It(e))}function $U(e,t,n){n===void 0&&(n=!1);const r=Zn(e),o=zf(e),i=Wf(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=vi(a)),[a,vi(a)]}function jU(e){const t=vi(e);return[Sd(e),t,Sd(t)]}function Sd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Vv=["left","right"],Fv=["right","left"],OU=["top","bottom"],RU=["bottom","top"];function MU(e,t,n){switch(e){case"top":case"bottom":return n?t?Fv:Vv:t?Vv:Fv;case"left":case"right":return t?OU:RU;default:return[]}}function PU(e,t,n,r){const o=Zn(e);let i=MU(kt(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Sd)))),i}function vi(e){const t=kt(e);return SU[t]+e.slice(t.length)}function TU(e){return{top:0,right:0,bottom:0,left:0,...e}}function SC(e){return typeof e!="number"?TU(e):{top:e,right:e,bottom:e,left:e}}function yi(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}const AU={...Li};let Bv=0;function IU(e,t="mui"){const[n,r]=s.useState(e),o=e||n;return s.useEffect(()=>{n==null&&(Bv+=1,r(`${t}-${Bv}`))},[n,t]),o}const Hv=AU.useId;function qi(e,t){if(Hv!==void 0){const n=Hv();return e??(t?`${t}-${n}`:n)}return IU(e,t)}function NU(){const e=new Map;return{emit(t,n){e.get(t)?.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}const DU=s.createContext(null),VU=s.createContext(null),_f=()=>s.useContext(DU)?.id||null,Zi=e=>{const t=s.useContext(VU);return e??t},Uf="none",wi="trigger-press",yn="trigger-hover",$d="trigger-focus",FU="outside-press",Kf="escape-key",BU="disabled",HU="imperative-action";function it(e,t,n,r){let o=!1,i=!1;const a=jt;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){i=!0},get isCanceled(){return o},get isPropagationAllowed(){return i},trigger:n,...a}}function Ji(e){return`data-base-ui-${e}`}function Ws(e,t,n){if(n&&!Ho(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r?.[t]}return e?.[t]}const $C=s.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new qr,currentIdRef:{current:null},currentContextRef:{current:null}});function WU(e){const{children:t,delay:n,timeoutMs:r=0}=e,o=s.useRef(n),i=s.useRef(n),a=s.useRef(null),c=s.useRef(null),u=Fr();return p.jsx($C.Provider,{value:s.useMemo(()=>({hasProvider:!0,delayRef:o,initialDelayRef:i,currentIdRef:a,timeoutMs:r,currentContextRef:c,timeout:u}),[r,u]),children:t})}function zU(e,t={open:!1}){const n="rootStore"in e?e.rootStore:e,r=n.useState("floatingId"),{enabled:o=!0,open:i}=t,a=s.useContext($C),{currentIdRef:c,delayRef:u,timeoutMs:l,initialDelayRef:d,currentContextRef:f,hasProvider:m,timeout:h}=a,[g,v]=s.useState(!1);return De(()=>{function w(){v(!1),f.current?.setIsInstantPhase(!1),c.current=null,f.current=null,u.current=d.current}if(o&&c.current&&!i&&c.current===r){if(v(!1),l)return h.start(l,w),()=>{h.clear()};w()}},[o,i,r,c,u,l,d,f,h]),De(()=>{if(!o||!i)return;const w=f.current,b=c.current;f.current={onOpenChange:n.setOpen,setIsInstantPhase:v},c.current=r,u.current={open:0,close:Ws(d.current,"close")},b!==null&&b!==r?(h.clear(),v(!0),w?.setIsInstantPhase(!0),w?.onOpenChange(!1,it(Uf))):(v(!1),w?.setIsInstantPhase(!1))},[o,i,r,n,c,u,l,d,f,h]),De(()=>()=>{f.current=null},[f]),s.useMemo(()=>({hasProvider:m,delayRef:u,isInstantPhase:g}),[m,u,g])}const Cs=null;class _U{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=t=>{this.isScheduled=!1;const n=this.callbacks,r=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,r>0)for(let o=0;o<n.length;o+=1)n[o]?.(t)};request(t){const n=this.nextId;return this.nextId+=1,this.callbacks.push(t),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),n}cancel(t){const n=t-this.startId;n<0||n>=this.callbacks.length||(this.callbacks[n]=null,this.callbacksCount-=1)}}const ks=new _U;class vn{static create(){return new vn}static request(t){return ks.request(t)}static cancel(t){return ks.cancel(t)}currentId=Cs;request(t){this.cancel(),this.currentId=ks.request(()=>{this.currentId=Cs,t()})}cancel=()=>{this.currentId!==Cs&&(ks.cancel(this.currentId),this.currentId=Cs)};disposeEffect=()=>this.cancel}function jC(){const e=Ln(vn.create).current;return CC(e.disposeEffect),e}function OC(e){return e?.ownerDocument||document}const UU=s.createContext(null),KU=()=>s.useContext(UU),GU=Ji("portal");function YU(e={}){const{ref:t,container:n,componentProps:r=jt,elementProps:o,elementState:i}=e,a=qi(),u=KU()?.portalNode,[l,d]=s.useState(null),[f,m]=s.useState(null),h=s.useRef(null);De(()=>{if(n===null){h.current&&(h.current=null,m(null),d(null));return}if(a==null)return;const w=(n&&(Ff(n)?n:n.current))??u??document.body;if(w==null){h.current&&(h.current=null,m(null),d(null));return}h.current!==w&&(h.current=w,m(null),d(w))},[n,u,a]);const g=Yo("div",r,{ref:[t,m],state:i,props:[{id:a,[GU]:""},o]});return{portalNode:f,portalSubtree:l&&g?ft.createPortal(g,l):null}}function XU(e){return e==null?e:"current"in e?e.current:e}function qU(e,t){let n=null,r=null,o=!1;return{contextElement:e||void 0,getBoundingClientRect(){const i=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},a=t.axis==="x"||t.axis==="both",c=t.axis==="y"||t.axis==="both",u=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch";let l=i.width,d=i.height,f=i.x,m=i.y;return n==null&&t.x&&a&&(n=i.x-t.x),r==null&&t.y&&c&&(r=i.y-t.y),f-=n||0,m-=r||0,l=0,d=0,!o||u?(l=t.axis==="y"?i.width:0,d=t.axis==="x"?i.height:0,f=a&&t.x!=null?t.x:f,m=c&&t.y!=null?t.y:m):o&&!u&&(d=t.axis==="x"?i.height:d,l=t.axis==="y"?i.width:l),o=!0,{width:l,height:d,x:f,y:m,top:m,right:f+l,bottom:m+d,left:f}}}}function Wv(e){return e!=null&&e.clientX!=null}function ZU(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("domReferenceElement"),a=n.context.dataRef,{enabled:c=!0,axis:u="both",x:l=null,y:d=null}=t,f=s.useRef(!1),m=s.useRef(null),[h,g]=s.useState(),[v,w]=s.useState([]),b=je((L,S)=>{f.current||a.current.openEvent&&!Wv(a.current.openEvent)||n.set("positionReference",qU(i,{x:L,y:S,axis:u,dataRef:a,pointerType:h}))}),y=je(L=>{l!=null||d!=null||(r?m.current||w([]):b(L.clientX,L.clientY))}),k=Ho(h)?o:r,C=s.useCallback(()=>{if(!k||!c||l!=null||d!=null)return;const L=dt(o);function S(E){const M=en(E);ht(o,M)?(L.removeEventListener("mousemove",S),m.current=null):b(E.clientX,E.clientY)}if(!a.current.openEvent||Wv(a.current.openEvent)){L.addEventListener("mousemove",S);const E=()=>{L.removeEventListener("mousemove",S),m.current=null};return m.current=E,E}n.set("positionReference",i)},[k,c,l,d,o,a,i,n,b]);s.useEffect(()=>C(),[C,v]),s.useEffect(()=>{c&&!o&&(f.current=!1)},[c,o]),s.useEffect(()=>{!c&&r&&(f.current=!0)},[c,r]),De(()=>{c&&(l!=null||d!=null)&&(f.current=!1,b(l,d))},[c,l,d,b]);const x=s.useMemo(()=>{function L(S){g(S.pointerType)}return{onPointerDown:L,onPointerEnter:L,onMouseMove:y,onMouseEnter:y}},[y]);return s.useMemo(()=>c?{reference:x}:{},[c,x])}function zv(e,t,n){let{reference:r,floating:o}=e;const i=It(t),a=zf(t),c=Wf(a),u=kt(t),l=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,m=r[c]/2-o[c]/2;let h;switch(u){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-o.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Zn(t)){case"start":h[a]-=m*(n&&l?-1:1);break;case"end":h[a]+=m*(n&&l?-1:1);break}return h}async function JU(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:c,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:m=!1,padding:h=0}=En(t,e),g=SC(h),w=c[m?f==="floating"?"reference":"floating":f],b=yi(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:l,rootBoundary:d,strategy:u})),y=f==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),C=await(i.isElement==null?void 0:i.isElement(k))?await(i.getScale==null?void 0:i.getScale(k))||{x:1,y:1}:{x:1,y:1},x=yi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:k,strategy:u}):y);return{top:(b.top-x.top+g.top)/C.y,bottom:(x.bottom-b.bottom+g.bottom)/C.y,left:(b.left-x.left+g.left)/C.x,right:(x.right-b.right+g.right)/C.x}}const QU=50,eK=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,c=a.detectOverflow?a:{...a,detectOverflow:JU},u=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=zv(l,r,u),m=r,h=0;const g={};for(let v=0;v<i.length;v++){const w=i[v];if(!w)continue;const{name:b,fn:y}=w,{x:k,y:C,data:x,reset:L}=await y({x:d,y:f,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:l,platform:c,elements:{reference:e,floating:t}});d=k??d,f=C??f,g[b]={...g[b],...x},L&&h<QU&&(h++,typeof L=="object"&&(L.placement&&(m=L.placement),L.rects&&(l=L.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):L.rects),{x:d,y:f}=zv(l,m,u)),v=-1)}return{x:d,y:f,placement:m,strategy:o,middlewareData:g}},tK=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:c,platform:u,elements:l}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,...w}=En(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const b=kt(o),y=It(c),k=kt(c)===c,C=await(u.isRTL==null?void 0:u.isRTL(l.floating)),x=m||(k||!v?[vi(c)]:jU(c)),L=g!=="none";!m&&L&&x.push(...PU(c,v,g,C));const S=[c,...x],E=await u.detectOverflow(t,w),M=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&M.push(E[b]),f){const H=$U(o,a,C);M.push(E[H[0]],E[H[1]])}if(P=[...P,{placement:o,overflows:M}],!M.every(H=>H<=0)){var D,T;const H=(((D=i.flip)==null?void 0:D.index)||0)+1,A=S[H];if(A&&(!(f==="alignment"?y!==It(A):!1)||P.every($=>It($.placement)===y?$.overflows[0]>0:!0)))return{data:{index:H,overflows:P},reset:{placement:A}};let I=(T=P.filter(B=>B.overflows[0]<=0).sort((B,$)=>B.overflows[1]-$.overflows[1])[0])==null?void 0:T.placement;if(!I)switch(h){case"bestFit":{var j;const B=(j=P.filter($=>{if(L){const z=It($.placement);return z===y||z==="y"}return!0}).map($=>[$.placement,$.overflows.filter(z=>z>0).reduce((z,R)=>z+R,0)]).sort(($,z)=>$[1]-z[1])[0])==null?void 0:j[0];B&&(I=B);break}case"initialPlacement":I=c;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function _v(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Uv(e){return LU.some(t=>e[t]>=0)}const nK=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=En(e,t);switch(o){case"referenceHidden":{const a=await r.detectOverflow(t,{...i,elementContext:"reference"}),c=_v(a,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Uv(c)}}}case"escaped":{const a=await r.detectOverflow(t,{...i,altBoundary:!0}),c=_v(a,n.floating);return{data:{escapedOffsets:c,escaped:Uv(c)}}}default:return{}}}}},RC=new Set(["left","top"]);async function rK(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=kt(n),c=Zn(n),u=It(n)==="y",l=RC.has(a)?-1:1,d=i&&u?-1:1,f=En(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&typeof g=="number"&&(h=c==="end"?g*-1:g),u?{x:h*d,y:m*l}:{x:m*l,y:h*d}}const oK=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:c}=t,u=await rK(t,e);return a===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}}},sK=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:c=!1,limiter:u={fn:b=>{let{x:y,y:k}=b;return{x:y,y:k}}},...l}=En(e,t),d={x:n,y:r},f=await i.detectOverflow(t,l),m=It(kt(o)),h=Hf(m);let g=d[h],v=d[m];if(a){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",k=g+f[b],C=g-f[y];g=Ld(k,g,C)}if(c){const b=m==="y"?"top":"left",y=m==="y"?"bottom":"right",k=v+f[b],C=v-f[y];v=Ld(k,v,C)}const w=u.fn({...t,[h]:g,[m]:v});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[h]:a,[m]:c}}}}}},iK=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:c=0,mainAxis:u=!0,crossAxis:l=!0}=En(e,t),d={x:n,y:r},f=It(o),m=Hf(f);let h=d[m],g=d[f];const v=En(c,t),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const k=m==="y"?"height":"width",C=i.reference[m]-i.floating[k]+w.mainAxis,x=i.reference[m]+i.reference[k]-w.mainAxis;h<C?h=C:h>x&&(h=x)}if(l){var b,y;const k=m==="y"?"width":"height",C=RC.has(kt(o)),x=i.reference[f]-i.floating[k]+(C&&((b=a.offset)==null?void 0:b[f])||0)+(C?0:w.crossAxis),L=i.reference[f]+i.reference[k]+(C?0:((y=a.offset)==null?void 0:y[f])||0)-(C?w.crossAxis:0);g<x?g=x:g>L&&(g=L)}return{[m]:h,[f]:g}}}},aK=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:c}=t,{apply:u=()=>{},...l}=En(e,t),d=await a.detectOverflow(t,l),f=kt(o),m=Zn(o),h=It(o)==="y",{width:g,height:v}=i.floating;let w,b;f==="top"||f==="bottom"?(w=f,b=m===(await(a.isRTL==null?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(b=f,w=m==="end"?"top":"bottom");const y=v-d.top-d.bottom,k=g-d.left-d.right,C=Br(v-d[w],y),x=Br(g-d[b],k),L=!t.middlewareData.shift;let S=C,E=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=k),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(S=y),L&&!m){const P=$t(d.left,0),D=$t(d.right,0),T=$t(d.top,0),j=$t(d.bottom,0);h?E=g-2*(P!==0||D!==0?P+D:$t(d.left,d.right)):S=v-2*(T!==0||j!==0?T+j:$t(d.top,d.bottom))}await u({...t,availableWidth:E,availableHeight:S});const M=await a.getDimensions(c.floating);return g!==M.width||v!==M.height?{reset:{rects:!0}}:{}}}};function MC(e){const t=Mt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Pt(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,c=Hr(n)!==i||Hr(r)!==a;return c&&(n=i,r=a),{width:n,height:r,$:c}}function Gf(e){return Te(e)?e:e.contextElement}function Mr(e){const t=Gf(e);if(!Pt(t))return sn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=MC(t);let a=(i?Hr(n.width):n.width)/r,c=(i?Hr(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!c||!Number.isFinite(c))&&(c=1),{x:a,y:c}}const cK=sn(0);function PC(e){const t=dt(e);return!Gi()||!t.visualViewport?cK:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function lK(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==dt(e)?!1:t}function mr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Gf(e);let a=sn(1);t&&(r?Te(r)&&(a=Mr(r)):a=Mr(e));const c=lK(i,n,r)?PC(i):sn(0);let u=(o.left+c.x)/a.x,l=(o.top+c.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(i){const m=dt(i),h=r&&Te(r)?dt(r):r;let g=m,v=Ed(g);for(;v&&r&&h!==g;){const w=Mr(v),b=v.getBoundingClientRect(),y=Mt(v),k=b.left+(v.clientLeft+parseFloat(y.paddingLeft))*w.x,C=b.top+(v.clientTop+parseFloat(y.paddingTop))*w.y;u*=w.x,l*=w.y,d*=w.x,f*=w.y,u+=k,l+=C,g=dt(v),v=Ed(g)}}return yi({width:d,height:f,x:u,y:l})}function Qi(e,t){const n=Yi(e).scrollLeft;return t?t.left+n:mr(dn(e)).left+n}function TC(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Qi(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function uK(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=dn(r),c=t?Ki(t.floating):!1;if(r===a||c&&i)return n;let u={scrollLeft:0,scrollTop:0},l=sn(1);const d=sn(0),f=Pt(r);if((f||!f&&!i)&&((Xr(r)!=="body"||Xo(a))&&(u=Yi(r)),f)){const h=mr(r);l=Mr(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const m=a&&!f&&!i?TC(a,u):sn(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+d.x+m.x,y:n.y*l.y-u.scrollTop*l.y+d.y+m.y}}function dK(e){return Array.from(e.getClientRects())}function fK(e){const t=dn(e),n=Yi(e),r=e.ownerDocument.body,o=$t(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=$t(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Qi(e);const c=-n.scrollTop;return Mt(r).direction==="rtl"&&(a+=$t(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:c}}const Kv=25;function pK(e,t){const n=dt(e),r=dn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,c=0,u=0;if(o){i=o.width,a=o.height;const d=Gi();(!d||d&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}const l=Qi(r);if(l<=0){const d=r.ownerDocument,f=d.body,m=getComputedStyle(f),h=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(r.clientWidth-f.clientWidth-h);g<=Kv&&(i-=g)}else l<=Kv&&(i+=l);return{width:i,height:a,x:c,y:u}}function mK(e,t){const n=mr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Pt(e)?Mr(e):sn(1),a=e.clientWidth*i.x,c=e.clientHeight*i.y,u=o*i.x,l=r*i.y;return{width:a,height:c,x:u,y:l}}function Gv(e,t,n){let r;if(t==="viewport")r=pK(e,n);else if(t==="document")r=fK(dn(e));else if(Te(t))r=mK(t,n);else{const o=PC(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return yi(r)}function AC(e,t){const n=kn(e);return n===t||!Te(n)||wn(n)?!1:Mt(n).position==="fixed"||AC(n,t)}function hK(e,t){const n=t.get(e);if(n)return n;let r=Bn(e,[],!1).filter(c=>Te(c)&&Xr(c)!=="body"),o=null;const i=Mt(e).position==="fixed";let a=i?kn(e):e;for(;Te(a)&&!wn(a);){const c=Mt(a),u=Bf(a);!u&&c.position==="fixed"&&(o=null),(i?!u&&!o:!u&&c.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Xo(a)&&!u&&AC(e,a))?r=r.filter(d=>d!==a):o=c,a=kn(a)}return t.set(e,r),r}function gK(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Ki(t)?[]:hK(t,this._c):[].concat(n),r],c=Gv(t,a[0],o);let u=c.top,l=c.right,d=c.bottom,f=c.left;for(let m=1;m<a.length;m++){const h=Gv(t,a[m],o);u=$t(h.top,u),l=Br(h.right,l),d=Br(h.bottom,d),f=$t(h.left,f)}return{width:l-f,height:d-u,x:f,y:u}}function bK(e){const{width:t,height:n}=MC(e);return{width:t,height:n}}function vK(e,t,n){const r=Pt(t),o=dn(t),i=n==="fixed",a=mr(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const u=sn(0);function l(){u.x=Qi(o)}if(r||!r&&!i)if((Xr(t)!=="body"||Xo(o))&&(c=Yi(t)),r){const h=mr(t,!0,i,t);u.x=h.x+t.clientLeft,u.y=h.y+t.clientTop}else o&&l();i&&!r&&o&&l();const d=o&&!r&&!i?TC(o,c):sn(0),f=a.left+c.scrollLeft-u.x-d.x,m=a.top+c.scrollTop-u.y-d.y;return{x:f,y:m,width:a.width,height:a.height}}function Cu(e){return Mt(e).position==="static"}function Yv(e,t){if(!Pt(e)||Mt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return dn(e)===n&&(n=n.ownerDocument.body),n}function IC(e,t){const n=dt(e);if(Ki(e))return n;if(!Pt(e)){let o=kn(e);for(;o&&!wn(o);){if(Te(o)&&!Cu(o))return o;o=kn(o)}return n}let r=Yv(e,t);for(;r&&tU(r)&&Cu(r);)r=Yv(r,t);return r&&wn(r)&&Cu(r)&&!Bf(r)?n:r||oU(e)||n}const yK=async function(e){const t=this.getOffsetParent||IC,n=this.getDimensions,r=await n(e.floating);return{reference:vK(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function wK(e){return Mt(e).direction==="rtl"}const xK={convertOffsetParentRelativeRectToViewportRelativeRect:uK,getDocumentElement:dn,getClippingRect:gK,getOffsetParent:IC,getElementRects:yK,getClientRects:dK,getDimensions:bK,getScale:Mr,isElement:Te,isRTL:wK};function NC(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function CK(e,t){let n=null,r;const o=dn(e);function i(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function a(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),i();const l=e.getBoundingClientRect(),{left:d,top:f,width:m,height:h}=l;if(c||t(),!m||!h)return;const g=xs(f),v=xs(o.clientWidth-(d+m)),w=xs(o.clientHeight-(f+h)),b=xs(d),k={rootMargin:-g+"px "+-v+"px "+-w+"px "+-b+"px",threshold:$t(0,Br(1,u))||1};let C=!0;function x(L){const S=L[0].intersectionRatio;if(S!==u){if(!C)return a();S?a(!1,S):r=setTimeout(()=>{a(!1,1e-7)},1e3)}S===1&&!NC(l,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(x,{...k,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,k)}n.observe(e)}return a(!0),i}function Xv(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=Gf(e),d=o||i?[...l?Bn(l):[],...t?Bn(t):[]]:[];d.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),i&&b.addEventListener("resize",n)});const f=l&&c?CK(l,n):null;let m=-1,h=null;a&&(h=new ResizeObserver(b=>{let[y]=b;y&&y.target===l&&h&&t&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var k;(k=h)==null||k.observe(t)})),n()}),l&&!u&&h.observe(l),t&&h.observe(t));let g,v=u?mr(e):null;u&&w();function w(){const b=mr(e);v&&!NC(v,b)&&n(),v=b,g=requestAnimationFrame(w)}return n(),()=>{var b;d.forEach(y=>{o&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),f?.(),(b=h)==null||b.disconnect(),h=null,u&&cancelAnimationFrame(g)}}const kK=oK,EK=sK,LK=tK,SK=aK,$K=nK,jK=iK,OK=(e,t,n)=>{const r=new Map,o={platform:xK,...n},i={...o.platform,_c:r};return eK(e,t,{...o,platform:i})};var RK=typeof document<"u",MK=function(){},zs=RK?s.useLayoutEffect:MK;function xi(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!xi(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!xi(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function DC(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qv(e,t){const n=DC(e);return Math.round(t*n)/n}function ku(e){const t=s.useRef(e);return zs(()=>{t.current=e}),t}function PK(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:c=!0,whileElementsMounted:u,open:l}=e,[d,f]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=s.useState(r);xi(m,r)||h(r);const[g,v]=s.useState(null),[w,b]=s.useState(null),y=s.useCallback($=>{$!==L.current&&(L.current=$,v($))},[]),k=s.useCallback($=>{$!==S.current&&(S.current=$,b($))},[]),C=i||g,x=a||w,L=s.useRef(null),S=s.useRef(null),E=s.useRef(d),M=u!=null,P=ku(u),D=ku(o),T=ku(l),j=s.useCallback(()=>{if(!L.current||!S.current)return;const $={placement:t,strategy:n,middleware:m};D.current&&($.platform=D.current),OK(L.current,S.current,$).then(z=>{const R={...z,isPositioned:T.current!==!1};H.current&&!xi(E.current,R)&&(E.current=R,ft.flushSync(()=>{f(R)}))})},[m,t,n,D,T]);zs(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,f($=>({...$,isPositioned:!1})))},[l]);const H=s.useRef(!1);zs(()=>(H.current=!0,()=>{H.current=!1}),[]),zs(()=>{if(C&&(L.current=C),x&&(S.current=x),C&&x){if(P.current)return P.current(C,x,j);j()}},[C,x,j,P,M]);const A=s.useMemo(()=>({reference:L,floating:S,setReference:y,setFloating:k}),[y,k]),I=s.useMemo(()=>({reference:C,floating:x}),[C,x]),B=s.useMemo(()=>{const $={position:n,left:0,top:0};if(!I.floating)return $;const z=qv(I.floating,d.x),R=qv(I.floating,d.y);return c?{...$,transform:"translate("+z+"px, "+R+"px)",...DC(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:R}},[n,c,I.floating,d.x,d.y]);return s.useMemo(()=>({...d,update:j,refs:A,elements:I,floatingStyles:B}),[d,j,A,I,B])}const TK=(e,t)=>{const n=kK(e);return{name:n.name,fn:n.fn,options:[e,t]}},AK=(e,t)=>{const n=EK(e);return{name:n.name,fn:n.fn,options:[e,t]}},IK=(e,t)=>({fn:jK(e).fn,options:[e,t]}),NK=(e,t)=>{const n=LK(e);return{name:n.name,fn:n.fn,options:[e,t]}},DK=(e,t)=>{const n=SK(e);return{name:n.name,fn:n.fn,options:[e,t]}},VK=(e,t)=>{const n=$K(e);return{name:n.name,fn:n.fn,options:[e,t]}},FK={intentional:"onClick",sloppy:"onPointerDown"};function BK(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function HK(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("referenceElement"),a=n.useState("domReferenceElement"),{onOpenChange:c,dataRef:u}=n.context,{enabled:l=!0,escapeKey:d=!0,outsidePress:f=!0,outsidePressEvent:m="sloppy",referencePress:h=!1,referencePressEvent:g="sloppy",ancestorScroll:v=!1,bubbles:w,externalTree:b}=t,y=Zi(b),k=je(typeof f=="function"?f:()=>!1),C=typeof f=="function"?k:f,x=s.useRef(!1),{escapeKey:L,outsidePress:S}=BK(w),E=s.useRef(null),M=Fr(),P=Fr(),D=je(()=>{P.clear(),u.current.insideReactTree=!1}),T=s.useRef(!1),j=s.useRef(""),H=je(O=>{j.current=O.pointerType}),A=je(()=>{const O=j.current,X=O==="pen"||!O?"mouse":O,V=typeof m=="function"?m():m;return typeof V=="string"?V:V[X]}),I=je(O=>{if(!r||!l||!d||O.key!=="Escape"||T.current)return;const X=u.current.floatingContext?.nodeId,V=y?Mo(y.nodesRef.current,X):[];if(!L&&V.length>0){let G=!0;if(V.forEach(Z=>{Z.context?.open&&!Z.context.dataRef.current.__escapeKeyBubbles&&(G=!1)}),!G)return}const ge=kU(O)?O.nativeEvent:O,J=it(Kf,ge);n.setOpen(!1,J),!L&&!J.isPropagationAllowed&&O.stopPropagation()}),B=je(O=>{const X=A();return X==="intentional"&&O.type!=="click"||X==="sloppy"&&O.type==="click"}),$=je(()=>{u.current.insideReactTree=!0,P.start(0,D)}),z=je((O,X=!1)=>{if(B(O)){D();return}if(u.current.insideReactTree){D();return}if(A()==="intentional"&&X||typeof C=="function"&&!C(O))return;const V=en(O),ge=`[${Ji("inert")}]`,J=pr(n.select("floatingElement")).querySelectorAll(ge),G=n.context.triggerElements;if(V&&(G.hasElement(V)||G.hasMatchingElement(_=>ht(_,V))))return;let Z=Te(V)?V:null;for(;Z&&!wn(Z);){const _=kn(Z);if(wn(_)||!Te(_))break;Z=_}if(J.length&&Te(V)&&!wU(V)&&!ht(V,n.select("floatingElement"))&&Array.from(J).every(_=>!ht(Z,_)))return;if(Pt(V)&&!("touches"in O)){const _=wn(V),ce=Mt(V),Y=/auto|scroll/,K=_||Y.test(ce.overflowX),oe=_||Y.test(ce.overflowY),ye=K&&V.clientWidth>0&&V.scrollWidth>V.clientWidth,Ee=oe&&V.clientHeight>0&&V.scrollHeight>V.clientHeight,xe=ce.direction==="rtl",Ae=Ee&&(xe?O.offsetX<=V.offsetWidth-V.clientWidth:O.offsetX>V.clientWidth),Ie=ye&&O.offsetY>V.clientHeight;if(Ae||Ie)return}const be=u.current.floatingContext?.nodeId,ve=y&&Mo(y.nodesRef.current,be).some(_=>_t(O,_.context?.elements.floating));if(_t(O,n.select("floatingElement"))||_t(O,n.select("domReferenceElement"))||ve)return;const W=y?Mo(y.nodesRef.current,be):[];if(W.length>0){let _=!0;if(W.forEach(ce=>{ce.context?.open&&!ce.context.dataRef.current.__outsidePressBubbles&&(_=!1)}),!_)return}n.setOpen(!1,it(FU,O)),D()}),R=je(O=>{A()!=="sloppy"||O.pointerType==="touch"||!n.select("open")||!l||_t(O,n.select("floatingElement"))||_t(O,n.select("domReferenceElement"))||z(O)}),q=je(O=>{if(A()!=="sloppy"||!n.select("open")||!l||_t(O,n.select("floatingElement"))||_t(O,n.select("domReferenceElement")))return;const X=O.touches[0];X&&(E.current={startTime:Date.now(),startX:X.clientX,startY:X.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},M.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}),ee=je(O=>{const X=en(O);function V(){q(O),X?.removeEventListener(O.type,V)}X?.addEventListener(O.type,V)}),te=je(O=>{const X=x.current;if(x.current=!1,M.clear(),O.type==="mousedown"&&E.current&&!E.current.dismissOnMouseDown)return;const V=en(O);function ge(){O.type==="pointerdown"?R(O):z(O,X),V?.removeEventListener(O.type,ge)}V?.addEventListener(O.type,ge)}),ae=je(O=>{if(A()!=="sloppy"||!E.current||_t(O,n.select("floatingElement"))||_t(O,n.select("domReferenceElement")))return;const X=O.touches[0];if(!X)return;const V=Math.abs(X.clientX-E.current.startX),ge=Math.abs(X.clientY-E.current.startY),J=Math.sqrt(V*V+ge*ge);J>5&&(E.current.dismissOnTouchEnd=!0),J>10&&(z(O),M.clear(),E.current=null)}),le=je(O=>{const X=en(O);function V(){ae(O),X?.removeEventListener(O.type,V)}X?.addEventListener(O.type,V)}),ne=je(O=>{A()!=="sloppy"||!E.current||_t(O,n.select("floatingElement"))||_t(O,n.select("domReferenceElement"))||(E.current.dismissOnTouchEnd&&z(O),M.clear(),E.current=null)}),re=je(O=>{const X=en(O);function V(){ne(O),X?.removeEventListener(O.type,V)}X?.addEventListener(O.type,V)});s.useEffect(()=>{if(!r||!l)return;u.current.__escapeKeyBubbles=L,u.current.__outsidePressBubbles=S;const O=new qr;function X(Z){n.setOpen(!1,it(Uf,Z))}function V(){O.clear(),T.current=!0}function ge(){O.start(Gi()?5:0,()=>{T.current=!1})}const J=pr(o);J.addEventListener("pointerdown",H,!0),d&&(J.addEventListener("keydown",I),J.addEventListener("compositionstart",V),J.addEventListener("compositionend",ge)),C&&(J.addEventListener("click",te,!0),J.addEventListener("pointerdown",te,!0),J.addEventListener("touchstart",ee,!0),J.addEventListener("touchmove",le,!0),J.addEventListener("touchend",re,!0),J.addEventListener("mousedown",te,!0));let G=[];return v&&(Te(a)&&(G=Bn(a)),Te(o)&&(G=G.concat(Bn(o))),!Te(i)&&i&&i.contextElement&&(G=G.concat(Bn(i.contextElement)))),G=G.filter(Z=>Z!==J.defaultView?.visualViewport),G.forEach(Z=>{Z.addEventListener("scroll",X,{passive:!0})}),()=>{J.removeEventListener("pointerdown",H,!0),d&&(J.removeEventListener("keydown",I),J.removeEventListener("compositionstart",V),J.removeEventListener("compositionend",ge)),C&&(J.removeEventListener("click",te,!0),J.removeEventListener("pointerdown",te,!0),J.removeEventListener("touchstart",ee,!0),J.removeEventListener("touchmove",le,!0),J.removeEventListener("touchend",re,!0),J.removeEventListener("mousedown",te,!0)),G.forEach(Z=>{Z.removeEventListener("scroll",X)}),O.clear()}},[u,o,i,a,d,C,r,c,v,l,L,S,I,z,te,R,ee,le,re,H,n]),s.useEffect(D,[C,D]);const se=s.useMemo(()=>({onKeyDown:I,...h&&{[FK[g]]:O=>{n.setOpen(!1,it(wi,O.nativeEvent))},...g!=="intentional"&&{onClick(O){n.setOpen(!1,it(wi,O.nativeEvent))}}}}),[I,n,h,g]),ie=je(O=>{const X=en(O.nativeEvent);!ht(n.select("floatingElement"),X)||O.button!==0||(x.current=!0)}),ue=s.useMemo(()=>({onKeyDown:I,onPointerDown:ie,onMouseDown:ie,onMouseUp:ie,onClickCapture:$,onMouseDownCapture:$,onPointerDownCapture:$,onMouseUpCapture:$,onTouchEndCapture:$,onTouchMoveCapture:$}),[I,ie,$]);return s.useMemo(()=>l?{reference:se,floating:ue,trigger:se}:{},[l,se,ue])}var Ci=Symbol("NOT_FOUND");function WK(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function zK(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function _K(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Zv=e=>Array.isArray(e)?e:[e];function UK(e){const t=Array.isArray(e[0])?e[0]:e;return _K(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function KK(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}function GK(e){let t;return{get(n){return t&&e(t.key,n)?t.value:Ci},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function YK(e,t){let n=[];function r(c){const u=n.findIndex(l=>t(c,l.key));if(u>-1){const l=n[u];return u>0&&(n.splice(u,1),n.unshift(l)),l.value}return Ci}function o(c,u){r(c)===Ci&&(n.unshift({key:c,value:u}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var XK=(e,t)=>e===t;function qK(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function ZK(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=XK,maxSize:o=1,resultEqualityCheck:i}=n,a=qK(r);let c=0;const u=o<=1?GK(a):YK(o,a);function l(){let d=u.get(arguments);if(d===Ci){if(d=e.apply(null,arguments),c++,i){const m=u.getEntries().find(h=>i(h.value,d));m&&(d=m.value,c!==0&&c--)}u.put(arguments,d)}return d}return l.clearCache=()=>{u.clear(),l.resetResultsCount()},l.resultsCount=()=>c,l.resetResultsCount=()=>{c=0},l}var JK=class{constructor(e){this.value=e}deref(){return this.value}},QK=typeof WeakRef<"u"?WeakRef:JK,eG=0,Jv=1;function Es(){return{s:eG,v:void 0,o:null,p:null}}function VC(e,t={}){let n=Es();const{resultEqualityCheck:r}=t;let o,i=0;function a(){let c=n;const{length:u}=arguments;for(let f=0,m=u;f<m;f++){const h=arguments[f];if(typeof h=="function"||typeof h=="object"&&h!==null){let g=c.o;g===null&&(c.o=g=new WeakMap);const v=g.get(h);v===void 0?(c=Es(),g.set(h,c)):c=v}else{let g=c.p;g===null&&(c.p=g=new Map);const v=g.get(h);v===void 0?(c=Es(),g.set(h,c)):c=v}}const l=c;let d;if(c.s===Jv)d=c.v;else if(d=e.apply(null,arguments),i++,r){const f=o?.deref?.()??o;f!=null&&r(f,d)&&(d=f,i!==0&&i--),o=typeof d=="object"&&d!==null||typeof d=="function"?new QK(d):d}return l.s=Jv,l.v=d,d}return a.clearCache=()=>{n=Es(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function FC(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,a=0,c,u={},l=o.pop();typeof l=="object"&&(u=l,l=o.pop()),WK(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);const d={...n,...u},{memoize:f,memoizeOptions:m=[],argsMemoize:h=VC,argsMemoizeOptions:g=[]}=d,v=Zv(m),w=Zv(g),b=UK(o),y=f(function(){return i++,l.apply(null,arguments)},...v),k=h(function(){a++;const x=KK(b,arguments);return c=y.apply(null,x),c},...w);return Object.assign(k,{resultFunc:l,memoizedResultFunc:y,dependencies:b,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>c,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var tG=FC(VC),nG=Object.assign((e,t=tG)=>{zK(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((a,c,u)=>(a[n[u]]=c,a),{}))},{withTypes:()=>nG});FC({memoize:ZK,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const Ve=(e,t,n,r,o,i,...a)=>{if(a.length>0)throw new Error(Yr(1));let c;if(e)c=e;else throw new Error("Missing arguments");return c};var Eu={exports:{}},Lu={};var Qv;function rG(){if(Qv)return Lu;Qv=1;var e=Ei(),t=Sy();function n(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,c=e.useMemo,u=e.useDebugValue;return Lu.useSyncExternalStoreWithSelector=function(l,d,f,m,h){var g=i(null);if(g.current===null){var v={hasValue:!1,value:null};g.current=v}else v=g.current;g=c(function(){function b(L){if(!y){if(y=!0,k=L,L=m(L),h!==void 0&&v.hasValue){var S=v.value;if(h(S,L))return C=S}return C=L}if(S=C,r(k,L))return S;var E=m(L);return h!==void 0&&h(S,E)?(k=L,S):(k=L,C=E)}var y=!1,k,C,x=f===void 0?null:f;return[function(){return b(d())},x===null?void 0:function(){return b(x())}]},[d,f,m,h]);var w=o(l,g[0],g[1]);return a(function(){v.hasValue=!0,v.value=w},[w]),u(w),w},Lu}var ey;function oG(){return ey||(ey=1,Eu.exports=rG()),Eu.exports}var sG=oG();const iG=rC(19),aG=iG?lG:uG;function cG(e,t,n,r,o){return aG(e,t,n,r,o)}function lG(e,t,n,r,o){const i=s.useCallback(()=>t(e.getSnapshot(),n,r,o),[e,t,n,r,o]);return Rk.useSyncExternalStore(e.subscribe,i,i)}function uG(e,t,n,r,o){return sG.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,i=>t(i,n,r,o))}class Po{constructor(t){this.state=t,this.listeners=new Set,this.updateTick=0}subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});getSnapshot=()=>this.state;setState(t){if(this.state===t)return;this.state=t,this.updateTick+=1;const n=this.updateTick;for(const r of this.listeners){if(n!==this.updateTick)return;r(t)}}update(t){for(const n in t)if(!Object.is(this.state[n],t[n])){Po.prototype.setState.call(this,{...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||Po.prototype.setState.call(this,{...this.state,[t]:n})}notifyAll(){const t={...this.state};Po.prototype.setState.call(this,t)}}class BC extends Po{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}controlledValues=new Map;useSyncedValue(t,n){s.useDebugValue(t),De(()=>{this.state[t]!==n&&this.set(t,n)},[t,n])}useSyncedValueWithCleanup(t,n){De(()=>(this.state[t]!==n&&this.set(t,n),()=>{this.set(t,void 0)}),[t,n])}useSyncedValues(t){const n=Object.values(t);De(()=>{this.update(t)},n)}useControlledProp(t,n,r){s.useDebugValue(t);const o=n!==void 0;this.controlledValues.has(t)||(this.controlledValues.set(t,o),!o&&!Object.is(this.state[t],r)&&super.setState({...this.state,[t]:r})),De(()=>{o&&!Object.is(this.state[t],n)&&super.setState({...this.state,[t]:n})},[t,n,r,o])}set(t,n){this.controlledValues.get(t)!==!0&&super.set(t,n)}update(t){const n={...t};for(const r in n)if(Object.hasOwn(n,r)&&this.controlledValues.get(r)===!0){delete n[r];continue}super.update(n)}setState(t){const n={...t};for(const r in n)if(Object.hasOwn(n,r)&&this.controlledValues.get(r)===!0){delete n[r];continue}super.setState({...this.state,...n})}select=(t,n,r,o)=>{const i=this.selectors[t];return i(this.state,n,r,o)};useState=(t,n,r,o)=>{s.useDebugValue(t);const i=this.selectors[t];return cG(this,i,n,r,o)};useContextCallback(t,n){s.useDebugValue(t);const r=je(n??r_);this.context[t]=r}useStateSetter(t){const n=s.useRef(void 0);return n.current===void 0&&(n.current=r=>{this.set(t,r)}),n.current}observe(t,n){let r;typeof t=="function"?r=t:r=this.selectors[t];let o=r(this.state);return n(o,o,this),this.subscribe(i=>{const a=r(i);if(!Object.is(o,a)){const c=o;o=a,n(a,c,this)}})}}const dG={open:Ve(e=>e.open),domReferenceElement:Ve(e=>e.domReferenceElement),referenceElement:Ve(e=>e.positionReference??e.referenceElement),floatingElement:Ve(e=>e.floatingElement),floatingId:Ve(e=>e.floatingId)};class Yf extends BC{constructor(t){const{nested:n,noEmit:r,onOpenChange:o,triggerElements:i,...a}=t;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:o,dataRef:{current:{}},events:NU(),nested:n,noEmit:r,triggerElements:i},dG)}setOpen=(t,n)=>{if((!t||!this.state.open||EU(n.event))&&(this.context.dataRef.current.openEvent=t?n.event:void 0),!this.context.noEmit){const r={open:t,reason:n.reason,nativeEvent:n.event,nested:this.context.nested,triggerElement:n.trigger};this.context.events.emit("openchange",r)}this.context.onOpenChange?.(t,n)}}function fG(e,t=!1,n=!1){const[r,o]=s.useState(e&&t?"idle":void 0),[i,a]=s.useState(e);return e&&!i&&(a(!0),o("starting")),!e&&i&&r!=="ending"&&!n&&o("ending"),!e&&!i&&r==="ending"&&o(void 0),De(()=>{if(!e&&i&&r!=="ending"&&n){const c=vn.request(()=>{o("ending")});return()=>{vn.cancel(c)}}},[e,i,r,n]),De(()=>{if(!e||t)return;const c=vn.request(()=>{ft.flushSync(()=>{o(void 0)})});return()=>{vn.cancel(c)}},[t,e]),De(()=>{if(!e||!t)return;e&&i&&r!=="idle"&&o("starting");const c=vn.request(()=>{o("idle")});return()=>{vn.cancel(c)}},[t,e,i,o,r]),s.useMemo(()=>({mounted:i,setMounted:a,transitionStatus:r}),[i,r])}function HC(e,t=!1,n=!0){const r=jC();return je((o,i=null)=>{r.cancel();const a=XU(e);a!=null&&(typeof a.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED?o():r.request(()=>{function c(){a&&Promise.all(a.getAnimations().map(u=>u.finished)).then(()=>{i!=null&&i.aborted||ft.flushSync(o)}).catch(()=>{if(n){if(i!=null&&i.aborted)return;ft.flushSync(o)}else a.getAnimations().length>0&&a.getAnimations().some(u=>u.pending||u.playState!=="finished")&&c()})}t?r.request(c):c()}))})}function WC(e){const{enabled:t=!0,open:n,ref:r,onComplete:o}=e,i=ur(n),a=je(o),c=HC(r,n);s.useEffect(()=>{t&&c(()=>{n===i.current&&a()})},[t,n,a,c,i])}function pG(e,t){const n=s.useRef(null);return s.useCallback(r=>{if(e!==void 0&&(n.current!==null&&(t.context.triggerElements.delete(n.current),n.current=null),r!==null))return n.current=e,t.context.triggerElements.add(e,r),()=>{n.current!==null&&(t.context.triggerElements.delete(n.current),n.current=null)}},[t,e])}function mG(e,t,n,r){const o=n.useState("isMountedByTrigger",e),i=pG(e,n),a=je(c=>{const u=i(c);return c!==null&&n.select("open")&&n.select("activeTriggerId")==null&&n.update({activeTriggerId:e,activeTriggerElement:c,...r}),u});return De(()=>{o&&n.update({activeTriggerElement:t.current,...r})},[o,n,t,...Object.values(r)]),{registerTrigger:a,isMountedByThisTrigger:o}}function hG(e){const t=e.useState("open");De(()=>{if(t&&!e.select("activeTriggerId")&&e.context.triggerElements.size===1){const n=e.context.triggerElements.entries().next();if(!n.done){const[r,o]=n.value;e.update({activeTriggerId:r,activeTriggerElement:o})}}},[t,e])}function gG(e,t,n){const{mounted:r,setMounted:o,transitionStatus:i}=fG(e);t.useSyncedValues({mounted:r,transitionStatus:i});const a=je(()=>{o(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),t.context.onOpenChangeComplete?.(!1)}),c=t.useState("preventUnmountingOnClose");return WC({enabled:!c,open:e,ref:t.context.popupRef,onComplete(){e||a()}}),{forceUnmount:a,transitionStatus:i}}class Xf{constructor(){this.elements=new Set,this.idMap=new Map}add(t,n){const r=this.idMap.get(t);r!==n&&(r!==void 0&&this.elements.delete(r),this.elements.add(n),this.idMap.set(t,n))}delete(t){const n=this.idMap.get(t);n&&(this.elements.delete(n),this.idMap.delete(t))}hasElement(t){return this.elements.has(t)}hasMatchingElement(t){for(const n of this.elements)if(t(n))return!0;return!1}getById(t){return this.idMap.get(t)}entries(){return this.idMap.entries()}get size(){return this.idMap.size}}function bG(){return new Yf({open:!1,floatingElement:null,referenceElement:null,triggerElements:new Xf,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function vG(){return{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:bG(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:jt,inactiveTriggerProps:jt,popupProps:jt}}const yG={open:Ve(e=>e.open),mounted:Ve(e=>e.mounted),transitionStatus:Ve(e=>e.transitionStatus),floatingRootContext:Ve(e=>e.floatingRootContext),preventUnmountingOnClose:Ve(e=>e.preventUnmountingOnClose),payload:Ve(e=>e.payload),activeTriggerId:Ve(e=>e.activeTriggerId),activeTriggerElement:Ve(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:Ve((e,t)=>t!==void 0&&e.activeTriggerId===t),isOpenedByTrigger:Ve((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.open),isMountedByTrigger:Ve((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.mounted),triggerProps:Ve((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:Ve(e=>e.popupProps),popupElement:Ve(e=>e.popupElement),positionerElement:Ve(e=>e.positionerElement)};function wG(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,o=qi(),i=_f()!=null,a=Ln(()=>new Yf({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:r.triggers??new Xf,floatingId:o,nested:i,noEmit:e.noEmit||!1})).current;return De(()=>{const c={open:t,floatingId:o};r.reference!==void 0&&(c.referenceElement=r.reference,c.domReferenceElement=Te(r.reference)?r.reference:null),r.floating!==void 0&&(c.floatingElement=r.floating),a.update(c)},[t,o,r.reference,r.floating,a]),a.context.onOpenChange=n,a.context.nested=i,a.context.noEmit=e.noEmit||!1,a}function xG(e={}){const{nodeId:t,externalTree:n}=e,r=wG(e),o=e.rootContext||r,i={reference:o.useState("referenceElement"),floating:o.useState("floatingElement"),domReference:o.useState("domReferenceElement")},[a,c]=s.useState(null),u=s.useRef(null),l=Zi(n);De(()=>{i.domReference&&(u.current=i.domReference)},[i.domReference]);const d=PK({...e,elements:{...i,...a&&{reference:a}}}),f=s.useCallback(S=>{const E=Te(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),getClientRects:()=>S.getClientRects(),contextElement:S}:S;c(E),d.refs.setReference(E)},[d.refs]),[m,h]=s.useState(null),[g,v]=s.useState(null);o.useSyncedValue("referenceElement",m),o.useSyncedValue("domReferenceElement",Te(m)?m:null),o.useSyncedValue("floatingElement",g);const w=s.useCallback(S=>{(Te(S)||S===null)&&(u.current=S,h(S)),(Te(d.refs.reference.current)||d.refs.reference.current===null||S!==null&&!Te(S))&&d.refs.setReference(S)},[d.refs,h]),b=s.useCallback(S=>{v(S),d.refs.setFloating(S)},[d.refs]),y=s.useMemo(()=>({...d.refs,setReference:w,setFloating:b,setPositionReference:f,domReference:u}),[d.refs,w,b,f]),k=s.useMemo(()=>({...d.elements,domReference:i.domReference}),[d.elements,i.domReference]),C=o.useState("open"),x=o.useState("floatingId"),L=s.useMemo(()=>({...d,dataRef:o.context.dataRef,open:C,onOpenChange:o.setOpen,events:o.context.events,floatingId:x,refs:y,elements:k,nodeId:t,rootStore:o}),[d,y,k,t,o,C,x]);return De(()=>{o.context.dataRef.current.floatingContext=L;const S=l?.nodesRef.current.find(E=>E.id===t);S&&(S.context=L)}),s.useMemo(()=>({...d,context:L,refs:y,elements:k,rootStore:o}),[d,y,k,L,o])}function CG(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:o}=e,i=qi(),a=_f()!=null,c=t.useState("open"),u=t.useState("activeTriggerElement"),l=t.useState(r?"popupElement":"positionerElement"),d=t.context.triggerElements,f=Ln(()=>new Yf({open:c,referenceElement:u,floatingElement:l,triggerElements:d,onOpenChange:o,floatingId:i,nested:a,noEmit:n})).current;return De(()=>{const m={open:c,floatingId:i,referenceElement:u,floatingElement:l};Te(u)&&(m.domReferenceElement=u),f.update(m)},[c,i,u,l,f]),f.context.onOpenChange=o,f.context.nested=a,f.context.noEmit=n,f}const Su=mU&&pU;function kG(e,t={}){const n="rootStore"in e?e.rootStore:e,{events:r,dataRef:o}=n.context,{enabled:i=!0,visibleOnly:a=!0}=t,c=s.useRef(!1),u=Fr(),l=s.useRef(!0);s.useEffect(()=>{const f=n.select("domReferenceElement");if(!i)return;const m=dt(f);function h(){!n.select("open")&&Pt(f)&&f===Dv(pr(f))&&(c.current=!0)}function g(){l.current=!0}function v(){l.current=!1}return m.addEventListener("blur",h),Su&&(m.addEventListener("keydown",g,!0),m.addEventListener("pointerdown",v,!0)),()=>{m.removeEventListener("blur",h),Su&&(m.removeEventListener("keydown",g,!0),m.removeEventListener("pointerdown",v,!0))}},[n,i]),s.useEffect(()=>{if(!i)return;function f(m){(m.reason===wi||m.reason===Kf)&&(c.current=!0)}return r.on("openchange",f),()=>{r.off("openchange",f)}},[r,i]);const d=s.useMemo(()=>({onMouseLeave(){c.current=!1},onFocus(f){if(c.current)return;const m=en(f.nativeEvent);if(a&&Te(m)){if(Su&&!f.relatedTarget){if(!l.current&&!xU(m))return}else if(!CU(m))return}n.setOpen(!0,it($d,f.nativeEvent,f.currentTarget))},onBlur(f){c.current=!1;const m=f.relatedTarget,h=f.nativeEvent,g=Te(m)&&m.hasAttribute(Ji("focus-guard"))&&m.getAttribute("data-type")==="outside";u.start(0,()=>{const v=n.select("domReferenceElement"),w=Dv(v?v.ownerDocument:document);!m&&w===v||ht(o.current.floatingContext?.refs.floating.current,w)||ht(v,w)||g||n.context.triggerElements.hasElement(f.relatedTarget)||n.setOpen(!1,it($d,h))})}}),[o,n,a,u]);return s.useMemo(()=>i?{reference:d,trigger:d}:{},[i,d])}const jd=Ji("safe-polygon"),EG=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${LC}`;function LG(e){return e?!!e.closest(EG):!1}function zC(e){const t=s.useRef(void 0),n=s.useRef(!1),r=s.useRef(void 0),o=s.useRef(!0),i=s.useRef(!1),a=s.useRef(()=>{}),c=s.useRef(!1),u=Fr(),l=Fr(),d=s.useRef(void 0);return s.useMemo(()=>{const f=e.context.dataRef.current;return f.hoverInteractionState||(f.hoverInteractionState={pointerTypeRef:t,interactedInsideRef:n,handlerRef:r,blockMouseMoveRef:o,performedPointerEventsMutationRef:i,unbindMouseMoveRef:a,restTimeoutPendingRef:c,openChangeTimeout:u,restTimeout:l,handleCloseOptionsRef:d}),f.hoverInteractionState},[e,t,n,r,o,i,a,c,u,l,d])}const SG=new Set(["click","mousedown"]);function $G(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),i=n.useState("domReferenceElement"),{dataRef:a}=n.context,{enabled:c=!0,closeDelay:u=0,externalTree:l}=t,{pointerTypeRef:d,interactedInsideRef:f,handlerRef:m,performedPointerEventsMutationRef:h,unbindMouseMoveRef:g,restTimeoutPendingRef:v,openChangeTimeout:w,handleCloseOptionsRef:b}=zC(n),y=Zi(l),k=_f(),C=je(()=>f.current?!0:a.current.openEvent?SG.has(a.current.openEvent.type):!1),x=je(()=>{const P=a.current.openEvent?.type;return P?.includes("mouse")&&P!=="mousedown"}),L=s.useCallback((P,D=!0)=>{const T=jG(u,d.current);T&&!m.current?w.start(T,()=>n.setOpen(!1,it(yn,P))):D&&(w.clear(),n.setOpen(!1,it(yn,P)))},[u,m,n,d,w]),S=je(()=>{g.current(),m.current=void 0}),E=je(()=>{if(h.current){const P=pr(o).body;P.style.pointerEvents="",P.removeAttribute(jd),h.current=!1}}),M=je(P=>{const D=en(P);if(!LG(D)){f.current=!1;return}f.current=!0});De(()=>{r||(d.current=void 0,v.current=!1,f.current=!1,S(),E())},[r,d,v,f,S,E]),s.useEffect(()=>()=>{S()},[S]),s.useEffect(()=>E,[E]),De(()=>{if(c&&r&&b.current?.blockPointerEvents&&x()&&Te(i)&&o){h.current=!0;const P=pr(o).body;P.setAttribute(jd,"");const D=i,T=o,j=y?.nodesRef.current.find(H=>H.id===k)?.context?.elements.floating;return j&&(j.style.pointerEvents=""),P.style.pointerEvents="none",D.style.pointerEvents="auto",T.style.pointerEvents="auto",()=>{P.style.pointerEvents="",D.style.pointerEvents="",T.style.pointerEvents=""}}},[c,r,i,o,b,x,y,k,h]),s.useEffect(()=>{if(!c)return;function P(H){if(C()||!a.current.floatingContext)return;const A=n.context.triggerElements;H.relatedTarget&&A.hasElement(H.relatedTarget)||(E(),S(),C()||L(H))}function D(H){w.clear(),E(),m.current?.(H),S()}function T(H){C()||L(H,!1)}const j=o;return j&&(j.addEventListener("mouseleave",P),j.addEventListener("mouseenter",D),j.addEventListener("mouseleave",T),j.addEventListener("pointerdown",M,!0)),()=>{j&&(j.removeEventListener("mouseleave",P),j.removeEventListener("mouseenter",D),j.removeEventListener("mouseleave",T),j.removeEventListener("pointerdown",M,!0))}})}function jG(e,t){return t&&!Ho(t)?0:typeof e=="function"?e():e}function $u(e){return typeof e=="function"?e():e}const OG={current:null};function RG(e,t={}){const n="rootStore"in e?e.rootStore:e,{dataRef:r,events:o}=n.context,{enabled:i=!0,delay:a=0,handleClose:c=null,mouseOnly:u=!1,restMs:l=0,move:d=!0,triggerElementRef:f=OG,externalTree:m,isActiveTrigger:h=!0}=t,g=Zi(m),{pointerTypeRef:v,interactedInsideRef:w,handlerRef:b,blockMouseMoveRef:y,performedPointerEventsMutationRef:k,unbindMouseMoveRef:C,restTimeoutPendingRef:x,openChangeTimeout:L,restTimeout:S,handleCloseOptionsRef:E}=zC(n),M=ur(c),P=ur(a),D=ur(l);h&&(E.current=M.current?.__options);const T=je(()=>w.current?!0:r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1),j=s.useCallback((B,$=!0)=>{const z=Ws(P.current,"close",v.current);z&&!b.current?L.start(z,()=>n.setOpen(!1,it(yn,B))):$&&(L.clear(),n.setOpen(!1,it(yn,B)))},[P,b,n,v,L]),H=je(()=>{C.current(),b.current=void 0}),A=je(()=>{if(k.current){const B=pr(n.select("domReferenceElement")).body;B.style.pointerEvents="",B.removeAttribute(jd),k.current=!1}});s.useEffect(()=>{if(!i)return;function B($){$.open||(L.clear(),S.clear(),y.current=!0,x.current=!1)}return o.on("openchange",B),()=>{o.off("openchange",B)}},[i,o,L,S,y,x]);const I=je(B=>{if(T()||!r.current.floatingContext)return;const $=n.context.triggerElements;B.relatedTarget&&$.hasElement(B.relatedTarget)||M.current?.({...r.current.floatingContext,tree:g,x:B.clientX,y:B.clientY,onClose(){A(),H(),T()||j(B)}})(B)});return s.useEffect(()=>{if(!i)return;const B=f.current??(h?n.select("domReferenceElement"):null);if(!Te(B))return;function $(q){if(L.clear(),y.current=!1,u&&!Ho(v.current)||$u(D.current)>0&&!Ws(P.current,"open"))return;const ee=Ws(P.current,"open",v.current),te=n.select("domReferenceElement"),ae=n.context.triggerElements,le=(ae.hasElement(q.target)||ae.hasMatchingElement(re=>ht(re,q.target)))&&(!te||!ht(te,q.target)),ne=q.currentTarget??null;ee?L.start(ee,()=>{n.select("open")||n.setOpen(!0,it(yn,q,ne))}):(!n.select("open")||le)&&n.setOpen(!0,it(yn,q,ne))}function z(q){if(T()){A();return}C.current();const ee=n.select("domReferenceElement"),te=pr(ee);S.clear(),x.current=!1;const ae=n.context.triggerElements;if(q.relatedTarget&&ae.hasElement(q.relatedTarget))return;if(M.current&&r.current.floatingContext){n.select("open")||L.clear(),b.current=M.current({...r.current.floatingContext,tree:g,x:q.clientX,y:q.clientY,onClose(){A(),H(),T()||j(q,!0)}});const ne=b.current;ne(q),te.addEventListener("mousemove",ne),C.current=()=>{te.removeEventListener("mousemove",ne)};return}(v.current!=="touch"||!ht(n.select("floatingElement"),q.relatedTarget))&&j(q)}function R(q){I(q)}return n.select("open")&&B.addEventListener("mouseleave",R),d&&B.addEventListener("mousemove",$,{once:!0}),B.addEventListener("mouseenter",$),B.addEventListener("mouseleave",z),()=>{B.removeEventListener("mouseleave",R),d&&B.removeEventListener("mousemove",$),B.removeEventListener("mouseenter",$),B.removeEventListener("mouseleave",z)}},[H,A,y,r,P,j,n,i,M,I,h,T,u,d,v,D,S,x,L,f,g,C,b]),s.useMemo(()=>{function B($){v.current=$.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove($){const{nativeEvent:z}=$,R=$.currentTarget,q=n.select("domReferenceElement"),ee=n.context.triggerElements,te=n.select("open"),ae=(ee.hasElement($.target)||ee.hasMatchingElement(ne=>ht(ne,$.target)))&&(!q||!ht(q,$.target));if(u&&!Ho(v.current)||te&&!ae||$u(D.current)===0||!ae&&x.current&&$.movementX**2+$.movementY**2<2)return;S.clear();function le(){!y.current&&(!te||ae)&&n.setOpen(!0,it(yn,z,R))}v.current==="touch"?ft.flushSync(()=>{le()}):ae&&te?le():(x.current=!0,S.start($u(D.current),le))}}},[y,u,n,v,D,S,x])}function MG(e=[]){const t=e.map(l=>l?.reference),n=e.map(l=>l?.floating),r=e.map(l=>l?.item),o=e.map(l=>l?.trigger),i=s.useCallback(l=>Ls(l,e,"reference"),t),a=s.useCallback(l=>Ls(l,e,"floating"),n),c=s.useCallback(l=>Ls(l,e,"item"),r),u=s.useCallback(l=>Ls(l,e,"trigger"),o);return s.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:c,getTriggerProps:u}),[i,a,c,u])}function Ls(e,t,n){const r=new Map,o=n==="item",i={};n==="floating"&&(i.tabIndex=-1,i[yU]="");for(const a in e)o&&e&&(a===kC||a===EC)||(i[a]=e[a]);for(let a=0;a<t.length;a+=1){let c;const u=t[a]?.[n];typeof u=="function"?c=e?u(e):null:c=u,c&&ty(i,c,o,r)}return ty(i,e,o,r),i}function ty(e,t,n,r){for(const o in t){const i=t[o];n&&(o===kC||o===EC)||(o.startsWith("on")?(r.has(o)||r.set(o,[]),typeof i=="function"&&(r.get(o)?.push(i),e[o]=(...a)=>r.get(o)?.map(c=>c(...a)).find(c=>c!==void 0))):e[o]=i)}}function ny(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,c=i-1;a<i;c=a++){const[u,l]=t[a]||[0,0],[d,f]=t[c]||[0,0];l>=r!=f>=r&&n<=(d-u)*(r-l)/(f-l)+u&&(o=!o)}return o}function PG(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function TG(e={}){const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,o=new qr;let i=!1,a=null,c=null,u=typeof performance<"u"?performance.now():0;function l(f,m){const h=performance.now(),g=h-u;if(a===null||c===null||g===0)return a=f,c=m,u=h,null;const v=f-a,w=m-c,y=Math.sqrt(v*v+w*w)/g;return a=f,c=m,u=h,y}const d=({x:f,y:m,placement:h,elements:g,onClose:v,nodeId:w,tree:b})=>function(k){function C(){o.clear(),v()}if(o.clear(),!g.domReference||!g.floating||h==null||f==null||m==null)return;const{clientX:x,clientY:L}=k,S=[x,L],E=en(k),M=k.type==="mouseleave",P=ht(g.floating,E),D=ht(g.domReference,E),T=g.domReference.getBoundingClientRect(),j=g.floating.getBoundingClientRect(),H=h.split("-")[0],A=f>j.right-j.width/2,I=m>j.bottom-j.height/2,B=PG(S,T),$=j.width>T.width,z=j.height>T.height,R=($?T:j).left,q=($?T:j).right,ee=(z?T:j).top,te=(z?T:j).bottom;if(P&&(i=!0,!M))return;if(D&&(i=!1),D&&!M){i=!0;return}if(M&&Te(k.relatedTarget)&&ht(g.floating,k.relatedTarget)||b&&Mo(b.nodesRef.current,w).some(({context:ne})=>ne?.open))return;if(H==="top"&&m>=T.bottom-1||H==="bottom"&&m<=T.top+1||H==="left"&&f>=T.right-1||H==="right"&&f<=T.left+1)return C();let ae=[];switch(H){case"top":ae=[[R,T.top+1],[R,j.bottom-1],[q,j.bottom-1],[q,T.top+1]];break;case"bottom":ae=[[R,j.top+1],[R,T.bottom-1],[q,T.bottom-1],[q,j.top+1]];break;case"left":ae=[[j.right-1,te],[j.right-1,ee],[T.left+1,ee],[T.left+1,te]];break;case"right":ae=[[T.right-1,te],[T.right-1,ee],[j.left+1,ee],[j.left+1,te]];break}function le([ne,re]){switch(H){case"top":{const se=[$?ne+t/2:A?ne+t*4:ne-t*4,re+t+1],ie=[$?ne-t/2:A?ne+t*4:ne-t*4,re+t+1],ue=[[j.left,A||$?j.bottom-t:j.top],[j.right,A?$?j.bottom-t:j.top:j.bottom-t]];return[se,ie,...ue]}case"bottom":{const se=[$?ne+t/2:A?ne+t*4:ne-t*4,re-t],ie=[$?ne-t/2:A?ne+t*4:ne-t*4,re-t],ue=[[j.left,A||$?j.top+t:j.bottom],[j.right,A?$?j.top+t:j.bottom:j.top+t]];return[se,ie,...ue]}case"left":{const se=[ne+t+1,z?re+t/2:I?re+t*4:re-t*4],ie=[ne+t+1,z?re-t/2:I?re+t*4:re-t*4];return[...[[I||z?j.right-t:j.left,j.top],[I?z?j.right-t:j.left:j.right-t,j.bottom]],se,ie]}case"right":{const se=[ne-t,z?re+t/2:I?re+t*4:re-t*4],ie=[ne-t,z?re-t/2:I?re+t*4:re-t*4],ue=[[I||z?j.left+t:j.right,j.top],[I?z?j.left+t:j.right:j.left+t,j.bottom]];return[se,ie,...ue]}default:return[]}}if(!ny([x,L],ae)){if(i&&!B)return C();if(!M&&r){const ne=l(k.clientX,k.clientY);if(ne!==null&&ne<.1)return C()}ny([x,L],le([f,m]))?!i&&r&&o.start(40,C):C()}};return d.__options={blockPointerEvents:n},d}const AG={...yG,disabled:Ve(e=>e.disabled),instantType:Ve(e=>e.instantType),isInstantPhase:Ve(e=>e.isInstantPhase),trackCursorAxis:Ve(e=>e.trackCursorAxis),disableHoverablePopup:Ve(e=>e.disableHoverablePopup),lastOpenChangeReason:Ve(e=>e.openChangeReason),closeDelay:Ve(e=>e.closeDelay)};class qf extends BC{constructor(t){super({...IG(),...t},{popupRef:s.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new Xf},AG)}setOpen=(t,n)=>{const r=n.reason,o=r===yn,i=t&&r===$d,a=!t&&(r===wi||r===Kf);if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(t,n),n.isCanceled)return;const c=()=>{const u={open:t,openChangeReason:r};i?u.instantType="focus":a?u.instantType="dismiss":r===yn&&(u.instantType=void 0);const l=n.trigger?.id??null;(l||t)&&(u.activeTriggerId=l,u.activeTriggerElement=n.trigger??null),this.update(u)};o?ft.flushSync(c):c()};static useStore(t,n){const r=Ln(()=>t??new qf(n)).current,o=CG({popupStore:r,onOpenChange:r.setOpen});return r.state.floatingRootContext=o,r}}function IG(){return{...vG(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0}}function NG(e){const{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:o=!1,trackCursorAxis:i="none",actionsRef:a,onOpenChange:c,onOpenChangeComplete:u,handle:l,triggerId:d,defaultTriggerId:f=null,children:m}=e,h=qf.useStore(l?.store,{open:r??n,activeTriggerId:d!==void 0?d:f});h.useControlledProp("open",r,n),h.useControlledProp("activeTriggerId",d,f),h.useContextCallback("onOpenChange",c),h.useContextCallback("onOpenChangeComplete",u);const g=h.useState("open"),v=h.useState("activeTriggerId"),w=h.useState("payload");h.useSyncedValues({trackCursorAxis:i,disableHoverablePopup:o});const b=!t&&g;De(()=>{g&&t&&h.setOpen(!1,it(BU))},[g,t,h]),h.useSyncedValue("disabled",t),hG(h);const{forceUnmount:y,transitionStatus:k}=gG(b,h),C=h.useState("isInstantPhase"),x=h.useState("instantType"),L=h.useState("lastOpenChangeReason"),S=s.useRef(null);De(()=>{k==="ending"&&L===Uf||k!=="ending"&&C?(x!=="delay"&&(S.current=x),h.set("instantType","delay")):S.current!==null&&(h.set("instantType",S.current),S.current=null)},[k,C,L,x,h]),De(()=>{b&&v==null&&h.set("payload",void 0)},[h,v,b]);const E=s.useCallback(()=>{h.setOpen(!1,DG(h,HU))},[h]);s.useImperativeHandle(a,()=>({unmount:y,close:E}),[y,E]);const M=h.useState("floatingRootContext"),P=kG(M,{enabled:!t}),D=HK(M,{enabled:!t,referencePress:!0}),T=ZU(M,{enabled:!t&&i!=="none",axis:i==="none"?void 0:i}),{getReferenceProps:j,getFloatingProps:H,getTriggerProps:A}=MG([P,D,T]),I=s.useMemo(()=>j(),[j]),B=s.useMemo(()=>A(),[A]),$=s.useMemo(()=>H(),[H]);return h.useSyncedValues({floatingRootContext:M,activeTriggerProps:I,inactiveTriggerProps:B,popupProps:$}),p.jsx(xC.Provider,{value:h,children:typeof m=="function"?m({payload:w}):m})}function DG(e,t){const n=it(t);return n.preventUnmountOnClose=()=>{e.set("preventUnmountingOnClose",!0)},n}let ki=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const VG={[ki.startingStyle]:""},FG={[ki.endingStyle]:""},BG={transitionStatus(e){return e==="starting"?VG:e==="ending"?FG:null}};let Zf=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=ki.startingStyle]="startingStyle",e[e.endingStyle=ki.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e})({}),HG=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const WG={[HG.popupOpen]:""},zG={[Zf.open]:""},_G={[Zf.closed]:""},UG={[Zf.anchorHidden]:""},KG={open(e){return e?WG:null}},_C={open(e){return e?zG:_G},anchorHidden(e){return e?UG:null}};function GG(e){return qi(e,"base-ui")}const UC=s.createContext(void 0);function YG(){return s.useContext(UC)}const XG=600,qG=s.forwardRef(function(t,n){const{className:r,render:o,handle:i,payload:a,disabled:c,delay:u,closeDelay:l,id:d,...f}=t,m=Xi(!0),h=i?.store??m;if(!h)throw new Error(Yr(82));const g=GG(d),v=h.useState("isTriggerActive",g),w=h.useState("floatingRootContext"),b=h.useState("isOpenedByTrigger",g),y=s.useRef(null),k=u??XG,C=l??0,{registerTrigger:x,isMountedByThisTrigger:L}=mG(g,y,h,{payload:a,closeDelay:C}),S=YG(),{delayRef:E,isInstantPhase:M,hasProvider:P}=zU(w,{open:b});h.useSyncedValue("isInstantPhase",M);const D=h.useState("disabled"),T=c??D,j=h.useState("trackCursorAxis"),H=h.useState("disableHoverablePopup"),A=RG(w,{enabled:!T,mouseOnly:!0,move:!1,handleClose:!H&&j!=="both"?TG():null,restMs(){const z=S?.delay,R=typeof E.current=="object"?E.current.open:void 0;let q=k;return P&&(R!==0?q=u??z??k:q=0),q},delay(){const z=typeof E.current=="object"?E.current.close:void 0;let R=C;return l==null&&P&&(R=z),{close:R}},triggerElementRef:y,isActiveTrigger:v}),I=s.useMemo(()=>({open:b}),[b]),B=h.useState("triggerProps",L);return Yo("button",t,{state:I,ref:[n,x,y],props:[A,B,{id:g},f],stateAttributesMapping:KG})}),KC=s.createContext(void 0);function ZG(){const e=s.useContext(KC);if(e===void 0)throw new Error(Yr(70));return e}const JG=s.forwardRef(function(t,n){const{children:r,container:o,className:i,render:a,...c}=t,{portalNode:u,portalSubtree:l}=YU({container:o,ref:n,componentProps:t,elementProps:c});return!l&&!u?null:p.jsxs(s.Fragment,{children:[l,u&&ft.createPortal(r,u)]})}),QG=s.forwardRef(function(t,n){const{keepMounted:r=!1,...o}=t;return Xi().useState("mounted")||r?p.jsx(KC.Provider,{value:r,children:p.jsx(JG,{ref:n,...o})}):null}),GC=s.createContext(void 0);function eY(){const e=s.useContext(GC);if(e===void 0)throw new Error(Yr(71));return e}const tY=s.createContext(void 0);function YC(){return s.useContext(tY)?.direction??"ltr"}const nY=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:c,middlewareData:u}=t,{element:l,padding:d=0,offsetParent:f="real"}=En(e,t)||{};if(l==null)return{};const m=SC(d),h={x:n,y:r},g=zf(o),v=Wf(g),w=await a.getDimensions(l),b=g==="y",y=b?"top":"left",k=b?"bottom":"right",C=b?"clientHeight":"clientWidth",x=i.reference[v]+i.reference[g]-h[g]-i.floating[v],L=h[g]-i.reference[g],S=f==="real"?await a.getOffsetParent?.(l):c.floating;let E=c.floating[C]||i.floating[v];(!E||!await a.isElement?.(S))&&(E=c.floating[C]||i.floating[v]);const M=x/2-L/2,P=E/2-w[v]/2-1,D=Math.min(m[y],P),T=Math.min(m[k],P),j=D,H=E-w[v]-T,A=E/2-w[v]/2+M,I=Ld(j,A,H),B=!u.arrow&&Zn(o)!=null&&A!==I&&i.reference[v]/2-(A<j?D:T)-w[v]/2<0,$=B?A<j?A-j:A-H:0;return{[g]:h[g]+$,data:{[g]:I,centerOffset:A-I-$,...B&&{alignmentOffset:$}},reset:B}}}),rY=(e,t)=>({...nY(e),options:[e,t]}),oY={name:"hide",async fn(e){const{width:t,height:n,x:r,y:o}=e.rects.reference,i=t===0&&n===0&&r===0&&o===0;return{data:{referenceHidden:(await VK().fn(e)).data?.referenceHidden||i}}}},_s={sideX:"left",sideY:"top"},sY={name:"adaptiveOrigin",async fn(e){const{x:t,y:n,rects:{floating:r},elements:{floating:o},platform:i,strategy:a,placement:c}=e,u=dt(o),l=u.getComputedStyle(o);if(!(l.transitionDuration!=="0s"&&l.transitionDuration!==""))return{x:t,y:n,data:_s};const f=await i.getOffsetParent?.(o);let m={width:0,height:0};if(a==="fixed"&&u?.visualViewport)m={width:u.visualViewport.width,height:u.visualViewport.height};else if(f===u){const y=OC(o);m={width:y.documentElement.clientWidth,height:y.documentElement.clientHeight}}else await i.isElement?.(f)&&(m=await i.getDimensions(f));const h=kt(c);let g=t,v=n;h==="left"&&(g=m.width-(t+r.width)),h==="top"&&(v=m.height-(n+r.height));const w=h==="left"?"right":_s.sideX,b=h==="top"?"bottom":_s.sideY;return{x:g,y:v,data:{sideX:w,sideY:b}}}};function XC(e,t,n){const r=e==="inline-start"||e==="inline-end";return{top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"}[t]}function ry(e,t,n){const{rects:r,placement:o}=e;return{side:XC(t,kt(o),n),align:Zn(o)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function iY(e){const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,collisionBoundary:c,collisionPadding:u=5,sticky:l=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:v,shiftCrossAxis:w=!1,nodeId:b,adaptiveOrigin:y,lazyFlip:k=!1,externalTree:C}=e,[x,L]=s.useState(null);!g&&x!==null&&L(null);const S=v.side||"flip",E=v.align||"flip",M=v.fallbackAxisSide||"end",P=typeof t=="function"?t:void 0,D=je(P),T=P?D:t,j=ur(t),A=YC()==="rtl",I=x||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":A?"left":"right","inline-start":A?"right":"left"}[r],B=i==="center"?I:`${I}-${i}`;let $=u;const z=1,R=r==="bottom"?z:0,q=r==="top"?z:0,ee=r==="right"?z:0,te=r==="left"?z:0;typeof $=="number"?$={top:$+R,right:$+te,bottom:$+q,left:$+ee}:$&&($={top:($.top||0)+R,right:($.right||0)+te,bottom:($.bottom||0)+q,left:($.left||0)+ee});const ae={boundary:c==="clipping-ancestors"?"clippingAncestors":c,padding:$},le=s.useRef(null),ne=ur(o),re=ur(a),ue=[TK(he=>{const $e=ry(he,r,A),Be=typeof ne.current=="function"?ne.current($e):ne.current,Re=typeof re.current=="function"?re.current($e):re.current;return{mainAxis:Be,crossAxis:Re,alignmentAxis:Re}},[typeof o!="function"?o:0,typeof a!="function"?a:0,A,r])],O=E==="none"&&S!=="shift",X=!O&&(l||w||S==="shift"),V=S==="none"?null:NK({...ae,padding:{top:$.top+z,right:$.right+z,bottom:$.bottom+z,left:$.left+z},mainAxis:!w&&S==="flip",crossAxis:E==="flip"?"alignment":!1,fallbackAxisSideDirection:M}),ge=O?null:AK(he=>{const $e=OC(he.elements.floating).documentElement;return{...ae,rootBoundary:w?{x:0,y:0,width:$e.clientWidth,height:$e.clientHeight}:void 0,mainAxis:E!=="none",crossAxis:X,limiter:l||w?void 0:IK(Be=>{if(!le.current)return{};const{width:Re,height:ze}=le.current.getBoundingClientRect(),Ye=It(kt(Be.placement)),yt=Ye==="y"?Re:ze,fn=Ye==="y"?$.left+$.right:$.top+$.bottom;return{offset:yt/2+fn/2}})}},[ae,l,w,$,E]);S==="shift"||E==="shift"||i==="center"?ue.push(ge,V):ue.push(V,ge),ue.push(DK({...ae,apply({elements:{floating:he},rects:{reference:$e},availableWidth:Be,availableHeight:Re}){Object.entries({"--available-width":`${Be}px`,"--available-height":`${Re}px`,"--anchor-width":`${$e.width}px`,"--anchor-height":`${$e.height}px`}).forEach(([ze,Ye])=>{he.style.setProperty(ze,Ye)})}}),rY(()=>({element:le.current||document.createElement("div"),padding:d,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(he){const{elements:$e,middlewareData:Be,placement:Re,rects:ze,y:Ye}=he,yt=kt(Re),fn=It(yt),Jn=le.current,Zr=Be.arrow?.x||0,Jr=Be.arrow?.y||0,Ft=Jn?.clientWidth||0,qt=Jn?.clientHeight||0,pn=Zr+Ft/2,Qn=Jr+qt/2,Qr=Math.abs(Be.shift?.y||0),eo=ze.reference.height/2,pt=typeof o=="function"?o(ry(he,r,A)):o,to=Qr>pt,Sn={top:`${pn}px calc(100% + ${pt}px)`,bottom:`${pn}px ${-pt}px`,left:`calc(100% + ${pt}px) ${Qn}px`,right:`${-pt}px ${Qn}px`}[yt],no=`${pn}px ${ze.reference.y+eo-Ye}px`;return $e.floating.style.setProperty("--transform-origin",X&&fn==="y"&&to?no:Sn),{}}},oY,y),De(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[g,h]);const J=s.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:G,elements:Z,x:be,y:ve,middlewareData:W,update:_,placement:ce,context:Y,isPositioned:K,floatingStyles:oe}=xG({rootContext:h,placement:B,middleware:ue,strategy:n,whileElementsMounted:m?void 0:(...he)=>Xv(...he,J),nodeId:b,externalTree:C}),{sideX:ye,sideY:Ee}=W.adaptiveOrigin||_s,xe=K?n:"fixed",Ae=s.useMemo(()=>y?{position:xe,[ye]:be,[Ee]:ve}:{position:xe,...oe},[y,xe,ye,be,Ee,ve,oe]),Ie=s.useRef(null);De(()=>{if(!g)return;const he=j.current,$e=typeof he=="function"?he():he,Re=(oy($e)?$e.current:$e)||null||null;Re!==Ie.current&&(G.setPositionReference(Re),Ie.current=Re)},[g,G,T,j]),s.useEffect(()=>{if(!g)return;const he=j.current;typeof he!="function"&&oy(he)&&he.current!==Ie.current&&(G.setPositionReference(he.current),Ie.current=he.current)},[g,G,T,j]),s.useEffect(()=>{if(m&&g&&Z.domReference&&Z.floating)return Xv(Z.domReference,Z.floating,_,J)},[m,g,Z,_,J]);const Ue=kt(ce),tt=XC(r,Ue,A),nt=Zn(ce)||"center",Ce=!!W.hide?.referenceHidden;De(()=>{k&&g&&K&&L(Ue)},[k,g,K,Ue]);const Oe=s.useMemo(()=>({position:"absolute",top:W.arrow?.y,left:W.arrow?.x}),[W.arrow]),Ne=W.arrow?.centerOffset!==0;return s.useMemo(()=>({positionerStyles:Ae,arrowStyles:Oe,arrowRef:le,arrowUncentered:Ne,side:tt,align:nt,physicalSide:Ue,anchorHidden:Ce,refs:G,context:Y,isPositioned:K,update:_}),[Ae,Oe,le,Ne,tt,nt,Ue,Ce,G,Y,K,_])}function oy(e){return e!=null&&"current"in e}function qC(e){return e==="starting"?o_:jt}const aY=s.forwardRef(function(t,n){const{render:r,className:o,anchor:i,positionMethod:a="absolute",side:c="top",align:u="center",sideOffset:l=0,alignOffset:d=0,collisionBoundary:f="clipping-ancestors",collisionPadding:m=5,arrowPadding:h=5,sticky:g=!1,disableAnchorTracking:v=!1,collisionAvoidance:w=s_,...b}=t,y=Xi(),k=ZG(),C=y.useState("open"),x=y.useState("mounted"),L=y.useState("trackCursorAxis"),S=y.useState("disableHoverablePopup"),E=y.useState("floatingRootContext"),M=y.useState("instantType"),P=y.useState("transitionStatus"),D=iY({anchor:i,positionMethod:a,floatingRootContext:E,mounted:x,side:c,sideOffset:l,align:u,alignOffset:d,collisionBoundary:f,collisionPadding:m,sticky:g,arrowPadding:h,disableAnchorTracking:v,keepMounted:k,collisionAvoidance:w,adaptiveOrigin:sY}),T=s.useMemo(()=>{const I={};return(!C||L==="both"||S)&&(I.pointerEvents="none"),{role:"presentation",hidden:!x,style:{...D.positionerStyles,...I}}},[C,L,S,x,D.positionerStyles]),j=s.useMemo(()=>({open:C,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:L!=="none"?"tracking-cursor":M}),[C,D.side,D.align,D.anchorHidden,L,M]),H=s.useMemo(()=>({...j,arrowRef:D.arrowRef,arrowStyles:D.arrowStyles,arrowUncentered:D.arrowUncentered}),[j,D.arrowRef,D.arrowStyles,D.arrowUncentered]),A=Yo("div",t,{state:j,props:[T,qC(P),b],ref:[n,y.useStateSetter("positionerElement")],stateAttributesMapping:_C});return p.jsx(GC.Provider,{value:H,children:A})});function sy(e){const t=Mt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Pt(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r;return(Hr(n)!==i||Hr(r)!==a)&&(n=i,r=a),{width:n,height:r}}const cY=typeof ResizeObserver<"u",lY=()=>!0;function uY(e){const{popupElement:t,positionerElement:n,content:r,mounted:o,enabled:i=lY,onMeasureLayout:a,onMeasureLayoutComplete:c,side:u,direction:l}=e,d=s.useRef(!0),f=HC(t,!0,!1),m=jC(),h=s.useRef(null),g=je(a),v=je(c),w=s.useMemo(()=>{let b=u==="top",y=u==="left";return l==="rtl"?(b=b||u==="inline-end",y=y||u==="inline-end"):(b=b||u==="inline-start",y=y||u==="inline-start"),b?{position:"absolute",[u==="top"?"bottom":"top"]:"0",[y?"right":"left"]:"0"}:jt},[u,l]);De(()=>{if(!o||!i()||!cY){d.current=!0,h.current=null;return}if(!t||!n)return;Object.entries(w).forEach(([M,P])=>{t.style.setProperty(M,P)});const b=new ResizeObserver(M=>{const P=M[0];P&&(h.current===null?h.current={width:Math.ceil(P.borderBoxSize[0].inlineSize),height:Math.ceil(P.borderBoxSize[0].blockSize)}:(h.current.width=Math.ceil(P.borderBoxSize[0].inlineSize),h.current.height=Math.ceil(P.borderBoxSize[0].blockSize)))});b.observe(t),t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto");const y=ho(t,"position","static"),k=ho(t,"transform","none"),C=ho(t,"scale","1"),x=ho(n,"--available-width","max-content"),L=ho(n,"--available-height","max-content");if(g?.(),d.current||h.current===null){n.style.setProperty("--positioner-width","max-content"),n.style.setProperty("--positioner-height","max-content");const M=sy(t);return n.style.setProperty("--positioner-width",`${M.width}px`),n.style.setProperty("--positioner-height",`${M.height}px`),y(),k(),C(),x(),L(),v?.(null,M),d.current=!1,()=>{b.disconnect()}}t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto"),n.style.setProperty("--positioner-width","max-content"),n.style.setProperty("--positioner-height","max-content");const S=sy(t);t.style.setProperty("--popup-width",`${h.current.width}px`),t.style.setProperty("--popup-height",`${h.current.height}px`),y(),k(),x(),L(),v?.(h.current,S),n.style.setProperty("--positioner-width",`${S.width}px`),n.style.setProperty("--positioner-height",`${S.height}px`);const E=new AbortController;return m.request(()=>{t.style.setProperty("--popup-width",`${S.width}px`),t.style.setProperty("--popup-height",`${S.height}px`),f(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},E.signal)}),()=>{b.disconnect(),E.abort(),m.cancel()}},[r,t,n,f,m,i,o,g,v,w])}function ho(e,t,n){const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}const dY={..._C,...BG},fY=s.forwardRef(function(t,n){const{className:r,render:o,...i}=t,a=Xi(),{side:c,align:u}=eY(),l=a.useState("open"),d=a.useState("mounted"),f=a.useState("instantType"),m=a.useState("transitionStatus"),h=a.useState("popupProps"),g=a.useState("payload"),v=a.useState("popupElement"),w=a.useState("positionerElement"),b=a.useState("floatingRootContext"),y=YC();WC({open:l,ref:a.context.popupRef,onComplete(){l&&a.context.onOpenChangeComplete?.(!0)}});function k(){b.context.events.emit("measure-layout")}function C(P,D){b.context.events.emit("measure-layout-complete",{previousDimensions:P,nextDimensions:D})}uY({popupElement:v,positionerElement:w,mounted:d,content:g,enabled:()=>a.context.triggerElements.size>1,onMeasureLayout:k,onMeasureLayoutComplete:C,side:c,direction:y});const L=a.useState("disabled"),S=a.useState("closeDelay");$G(b,{enabled:!L,closeDelay:S});const E=s.useMemo(()=>({open:l,side:c,align:u,instant:f,transitionStatus:m}),[l,c,u,f,m]);return Yo("div",t,{state:E,ref:[n,a.context.popupRef,a.useStateSetter("popupElement")],props:[h,qC(m),i],stateAttributesMapping:dY})}),pY=function(t){const{delay:n,closeDelay:r,timeout:o=400}=t,i=s.useMemo(()=>({delay:n,closeDelay:r}),[n,r]),a=s.useMemo(()=>({open:n,close:r}),[n,r]);return p.jsx(UC.Provider,{value:i,children:p.jsx(WU,{delay:a,timeoutMs:o,children:t.children})})};function mY({delay:e=500,...t}){return p.jsx(pY,{delay:e,...t})}function hY({...e}){return p.jsx(NG,{"data-slot":"tooltip",...e})}function gY({...e}){return p.jsx(qG,{"data-slot":"tooltip-trigger",...e})}function bY({className:e,side:t="top",sideOffset:n=8,align:r="center",alignOffset:o=0,children:i,hidden:a,...c}){return a?null:p.jsx(QG,{children:p.jsx(aY,{align:r,alignOffset:o,side:t,sideOffset:n,className:"isolate z-[80]",children:p.jsx(fY,{"data-slot":"tooltip-content",className:Ge("z-[80] w-fit max-w-xs rounded-md border border-[var(--hud-border)] bg-[var(--hud-surface)] px-2.5 py-1.5 text-sm font-medium text-sidebar-foreground shadow-md",e),...c,children:i})})})}const vY="260px",yY="48px",ZC=s.createContext(null);function Jf(){const e=s.useContext(ZC);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function wY({defaultOpen:e=!1,open:t,onOpenChange:n,className:r,style:o,children:i,...a}){const[c,u]=s.useState(e),l=t??c,d=s.useCallback(g=>{const v=typeof g=="function"?g(l):g;n?n(v):u(v)},[n,l]),f=s.useCallback(()=>{d(g=>!g)},[d]),m=l?"expanded":"collapsed",h=s.useMemo(()=>({state:m,open:l,setOpen:d,toggleSidebar:f}),[m,l,d,f]);return p.jsx(ZC.Provider,{value:h,children:p.jsx(mY,{delay:200,children:p.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":vY,"--sidebar-width-icon":yY,...o},className:Ge("group/sidebar-wrapper contents",r),...a,children:i})})})}function xY({side:e="left",variant:t="sidebar",collapsible:n="icon",className:r,children:o,...i}){const{state:a}=Jf();return n==="none"?p.jsx("div",{"data-slot":"sidebar","data-sidebar":"primary",className:Ge("pointer-events-auto flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...i,children:o}):p.jsx("div",{className:"group peer text-sidebar-foreground","data-state":a,"data-collapsible":a==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:p.jsx("div",{"data-slot":"sidebar-container","data-sidebar":"primary","data-side":e,className:Ge("pointer-events-auto fixed z-40 flex w-(--sidebar-width) flex-col transition-[left,right,width] duration-200 ease-linear","top-[var(--scout-sidebar-top,0px)] bottom-[28px]","data-[side=left]:left-0 data-[side=right]:right-0",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l border-sidebar-border",r),...i,children:p.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full min-h-0 flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:o})})})}function CY({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:Ge("flex flex-col gap-2 p-2",e),...t})}function kY({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:Ge("flex flex-col gap-2 p-2",e),...t})}function EY({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:Ge("flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function ju({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:Ge("relative flex w-full min-w-0 flex-col p-2",e),...t})}function Ou({className:e,render:t,...n}){return Nf({defaultTagName:"div",props:_i({className:Ge("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",e)},n),render:t,state:{slot:"sidebar-group-label",sidebar:"group-label"}})}function Ru({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:Ge("w-full text-sm",e),...t})}function Us({className:e,...t}){return p.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:Ge("flex w-full min-w-0 flex-col gap-0",e),...t})}function yo({className:e,...t}){return p.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:Ge("group/menu-item relative",e),...t})}const LY=l_("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function wo({render:e,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:i,...a}){const{state:c}=Jf(),[u,l]=s.useState(!1);s.useEffect(()=>{l(!1)},[c]);const d=Nf({defaultTagName:"button",props:_i({className:Ge(LY({variant:n,size:r}),i)},a),render:o?p.jsx(gY,{render:e}):e,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:r,active:t}});return o?(typeof o=="string"&&(o={children:o}),p.jsxs(hY,{open:c==="collapsed"&&u,onOpenChange:f=>l(c==="collapsed"&&f),children:[d,p.jsx(bY,{side:"right",align:"center",...o})]})):d}function SY({className:e,...t}){return p.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:Ge("pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 peer-data-active/menu-button:text-sidebar-accent-foreground",e),...t})}function $Y({className:e,...t}){return p.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:Ge("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden",e),...t})}function jY({className:e,...t}){return p.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:Ge("group/menu-sub-item relative",e),...t})}function OY({render:e,size:t="md",isActive:n=!1,className:r,...o}){return Nf({defaultTagName:"a",props:_i({className:Ge("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",r)},o),render:e,state:{slot:"sidebar-menu-sub-button",sidebar:"menu-sub-button",size:t,active:n}})}function JC(e){const{pathname:t}=uy(),n=Pr("nav.sidebar",!1),r=E5(t);return s.useMemo(()=>{if(r){const a=A5(e);return{kind:"scope",items:I5.map(c=>({id:c.key,label:c.label,route:c.route,active:c.key===a})),activeId:a,sidebarChromeEnabled:n,scopePresentation:!0}}const o=Nn(e);return{kind:"scout",items:Gs.map(a=>({id:a.id,label:a.label,route:by(a.id),active:a.id===o})),activeId:o,sidebarChromeEnabled:n,scopePresentation:!1}},[e,r,n])}const Od="data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground data-active:shadow-[inset_2px_0_0_0_var(--sidebar-primary,var(--hud-accent,oklch(0.86_0.17_125)))]";function iy({areas:e,activeAreaId:t,onNavigateArea:n,route:r,navigate:o,opsControlEnabled:i,presentation:a}){const{state:c}=Jf(),u=c==="expanded",l=tk(r,{opsControlEnabled:i});return p.jsx(Us,{children:e.map(d=>{const f=a==="slack"&&d.id==="home",m=a==="slack"&&d.id==="chat",h=f?"chat":m?"home":d.id,g=m?pz:d.icon,v=m?"Activity":d.label,w=h===t,b=u&&w&&l&&l.areaId===h?l.items:null;return p.jsxs(yo,{children:[p.jsxs(wo,{type:"button",isActive:w,tooltip:v,"aria-label":v,"aria-current":w?"page":void 0,"data-area":d.id,className:Ge("font-mono text-sm font-medium tracking-[0.02em]",Od),onClick:()=>n(d.id),children:[p.jsx(g,{size:16,strokeWidth:1.6,"aria-hidden":!0}),p.jsx("span",{children:v})]}),b&&b.length>0?p.jsx($Y,{children:b.map(y=>{const k=y.active(r);return p.jsx(jY,{children:p.jsx(OY,{render:p.jsx("button",{type:"button"}),isActive:k,"aria-current":k?"page":void 0,"data-subnav":y.id,className:"font-mono text-xs",onClick:()=>o(y.route),children:p.jsx("span",{children:y.label})})},y.id)})}):null]},d.id)})})}function RY({brandLabel:e="Scout",presentation:t="scout"}){const{route:n,navigate:r,openSettings:o,openContextCapture:i}=Xt(),{titleBarInset:a,dragRegionProps:c,onInteractiveMouseDown:u}=Si(),l=Pr("ops.control",!0),d=JC(n),f=Nn(n),m=Gs.filter(C=>C.section==="navigate"),h=Gs.filter(C=>C.section==="system"&&C.id!=="settings"),g=vy("settings"),v=g.icon,w=f==="settings",b=()=>r(t==="slack"?{view:"messages"}:{view:"inbox"}),y=()=>i(),k=C=>{if(t==="slack"&&C==="home"){if(f==="chat")return;r({view:"messages"});return}if(t==="slack"&&C==="chat"){if(f==="home")return;r({view:"activity"});return}Nn(n)!==C&&r(by(C,{opsControlEnabled:l}))};return p.jsxs(xY,{side:"left",variant:"sidebar",collapsible:"icon","aria-label":d.kind==="scope"?"Scope navigation":"Primary navigation","data-sidebar-kind":d.kind,"data-presentation":t,children:[p.jsx(CY,{className:"border-b border-sidebar-border",style:{paddingTop:a||0,...c?.style??{}},...Object.fromEntries(Object.entries(c??{}).filter(([C])=>C!=="style")),"data-sidebar-drag-region":"",children:p.jsx("div",{className:"flex items-center gap-0.5","data-sidebar":"brand-row",children:p.jsx(Us,{className:"min-w-0 flex-1",children:p.jsx(yo,{children:p.jsxs(wo,{type:"button",size:"lg",tooltip:"Home",onClick:b,onMouseDown:u,"aria-label":"Scout Home",title:"Home",className:Ge("data-[slot=sidebar-menu-button]:!p-2",t==="slack"?"font-sans":"font-mono"),children:[p.jsx(Xx,{className:"size-[22px] shrink-0"}),p.jsx("span",{className:Ge("truncate text-sm font-bold",t==="slack"?"tracking-[-0.01em]":"tracking-[0.08em] uppercase"),children:e})]})})})})}),p.jsx(EY,{className:"gap-0",children:d.kind==="scope"?p.jsxs(ju,{children:[p.jsx(Ou,{"data-sidebar-head":"",className:"font-mono uppercase",children:"Surfaces"}),p.jsx(Ru,{children:p.jsx(Us,{children:d.items.map(C=>p.jsx(yo,{children:p.jsxs(wo,{type:"button",isActive:C.active,tooltip:C.label,"aria-current":C.active?"page":void 0,"data-area":C.id,"aria-label":C.label,title:C.label,className:Ge("font-mono text-sm font-medium",Od),onClick:()=>r(C.route),children:[p.jsx("span",{className:"flex size-4 shrink-0 items-center justify-center text-sm font-bold uppercase","aria-hidden":!0,children:C.label.slice(0,1)}),p.jsx("span",{children:C.label})]})},C.id))})})]}):p.jsxs(p.Fragment,{children:[p.jsxs(ju,{children:[p.jsx(Ou,{"data-sidebar-head":"",className:"font-mono uppercase",children:"Navigate"}),p.jsx(Ru,{children:p.jsx(iy,{areas:m,activeAreaId:f,onNavigateArea:k,route:n,navigate:r,opsControlEnabled:l,presentation:t})})]}),p.jsxs(ju,{children:[p.jsx(Ou,{className:"font-mono text-2xs tracking-[0.12em] uppercase",children:"System"}),p.jsx(Ru,{children:p.jsx(iy,{areas:h,activeAreaId:f,onNavigateArea:k,route:n,navigate:r,opsControlEnabled:l,presentation:t})})]})]})}),p.jsx(kY,{className:"border-t border-sidebar-border",children:p.jsxs(Us,{className:"gap-1",children:[p.jsxs(yo,{children:[p.jsxs(wo,{type:"button",tooltip:`${xo} (${$s})`,"aria-label":xo,"aria-keyshortcuts":$s,"data-action":"new-task",className:"font-mono text-sm font-semibold tracking-[0.02em] [&_svg]:text-[var(--hud-accent)]",onClick:y,children:[p.jsx(rk,{size:16,strokeWidth:1.8,"aria-hidden":!0}),p.jsx("span",{children:xo})]}),p.jsx(SY,{className:"font-mono text-2xs text-sidebar-foreground/55",children:$s})]}),p.jsx(yo,{children:p.jsxs(wo,{type:"button",isActive:w,tooltip:g.label,"aria-label":g.label,"aria-current":w?"page":void 0,"data-area":"settings",className:Ge("font-mono text-sm font-medium tracking-[0.02em]",Od),onClick:()=>o(),children:[p.jsx(v,{size:16,strokeWidth:1.6,"aria-hidden":!0}),p.jsx("span",{children:g.label})]})})]})})]})}function QC({side:e,title:t,onToggle:n,edgeOffset:r=0,top:o=0,width:i=bn,glyph:a,body:c,style:u,className:l=""}){const d=!!c;return p.jsx("aside",{"data-scout-collapsed-rail":"","data-side":e,"data-pane":e==="left"?"side-rail-collapsed":"inspector-collapsed",className:["scout-collapsed-rail",d?"scout-collapsed-rail--rich":"",l].filter(Boolean).join(" "),style:{position:"fixed",top:o,bottom:28,width:i,zIndex:40,...e==="left"?{left:r}:{right:r},...u},"aria-label":`${t} (collapsed)`,onDoubleClick:f=>{f.target.closest("button, a, [role='button']")||n()},children:p.jsx("div",{className:"scout-collapsed-rail-body",children:c||(a?p.jsx("div",{className:"scout-collapsed-rail-glyph","aria-hidden":"true",children:a}):null)})})}const ea=10;function MY({route:e,onExpand:t}){switch(e.view){case"messages":case"conversation":return p.jsx(yk,{onExpand:t});case"inbox":case"activity":case"briefings":return p.jsx(PY,{onExpand:t});case"agents-v2":case"agent-info":return p.jsx(TY,{onExpand:t});case"terminal":return p.jsx(AY,{onExpand:t});case"ops":return p.jsx(IY,{onExpand:t});case"mesh":return p.jsx(NY,{onExpand:t});default:return p.jsx(Hn,{label:"Context",emptyMark:"·",onLabelClick:t,children:null})}}function PY({onExpand:e}){const{agents:t,navigate:n,route:r}=Xt(),[o,i]=s.useState(null),a=dy(r),c=s.useMemo(()=>xy(t,a),[t,a]),u=s.useMemo(()=>fk(t,a),[t,a]),l=s.useMemo(()=>pk(o,u),[o,u]),d=s.useCallback(async()=>{i(await Pu("/api/fleet").catch(()=>null))},[]);s.useEffect(()=>{d()},[d]),hk(g=>{(g.kind==="message.posted"||g.kind==="flight.updated"||g.kind==="presence.updated")&&d()});const f=s.useMemo(()=>{const g=new Set;for(const v of l?.needsAttention??[])v.agentId&&g.add(v.agentId);return g},[l]),m=s.useMemo(()=>c.filter(g=>f.has(g.id)).slice(0,4),[c,f]),h=s.useMemo(()=>{const g=new Set(m.map(v=>v.id));return[...c].filter(v=>!g.has(v.id)).sort((v,w)=>(w.updatedAt??w.createdAt??0)-(v.updatedAt??v.createdAt??0)).slice(0,ea-m.length)},[c,m]);return p.jsxs(Hn,{label:"Home",emptyMark:"H",labelTone:m.length>0?"attention":"default",labelCount:m.length>0?m.length:c.length||void 0,onLabelClick:e,children:[m.map(g=>p.jsx(ay,{agent:g,attention:!0,onClick:()=>bp(n,g,{returnTo:r})},`att-${g.id}`)),m.length>0&&h.length>0?p.jsx(wk,{}):null,h.map(g=>p.jsx(ay,{agent:g,onClick:()=>bp(n,g,{returnTo:r})},g.id))]})}function TY({onExpand:e}){const{agents:t,navigate:n,route:r}=Xt(),o=dy(r),i=s.useMemo(()=>xy(t,o),[t,o]),a=s.useMemo(()=>{const u=new Map;for(const l of i){const d=(l.project??DY(l.projectRoot)??l.name??"project").trim(),f=d.toLowerCase(),m=u.get(f)??{name:d,needs:0,working:0,latest:0},h=dk(l.state);(h==="needs_attention"||h==="blocked")&&(m.needs+=1),(h==="in_turn"||h==="in_flight"||wy(l.state))&&(m.working+=1),m.latest=Math.max(m.latest,l.updatedAt??l.createdAt??0),u.set(f,m)}return[...u.values()].sort((l,d)=>d.needs>0!=l.needs>0?d.needs>0?1:-1:d.latest-l.latest).slice(0,ea)},[i]),c=a.reduce((u,l)=>u+l.needs,0);return p.jsx(Hn,{label:"Crew",emptyMark:"C",labelTone:c>0?"attention":"default",labelCount:c>0?c:a.length||void 0,onLabelClick:e,children:a.map(u=>p.jsx(tn,{title:`${u.name}${u.needs?` · ${u.needs} need you`:""}`,tone:u.needs>0?"attention":"default",ava:Pd(u.name),avaColor:Md(u.name),dot:u.needs>0?"attention":u.working>0?"live":null,onClick:()=>n({view:"agents-v2",...o?{machineId:o}:{}})},u.name))})}function AY({onExpand:e}){const{route:t,navigate:n}=Xt(),[r,o]=s.useState([]);s.useEffect(()=>{gk({includeDiscovered:!0}).then(o).catch(()=>{})},[]);const i=s.useMemo(()=>bk(r).slice(0,ea),[r]),a=t.view==="terminal"?t.terminalSurfaceKey??null:null;return p.jsx(Hn,{label:"Term",emptyMark:"T",labelTone:i.length>0?"live":"default",labelCount:i.length||void 0,onLabelClick:e,children:i.map(c=>p.jsx(tn,{title:c.title,active:vk(c.key,a),tone:"neutral",ava:Pd(c.title),avaColor:Md(c.title),onClick:()=>n({view:"terminal",terminalSurfaceKey:c.key,terminalSessionId:c.session.id})},c.key))})}function IY({onExpand:e}){const{route:t,navigate:n}=Xt(),r=t.view==="ops"?t.mode:void 0,o=[{id:"mission",title:"Mission",glyph:p.jsx(hz,{size:13,strokeWidth:1.7,"aria-hidden":!0})},{id:"agents",title:"Agents",glyph:p.jsx(ky,{size:13,strokeWidth:1.7,"aria-hidden":!0})},{id:"lanes",title:"Agent Lanes",glyph:p.jsx(Ck,{size:13,strokeWidth:1.7,"aria-hidden":!0})},{id:"advisor",title:"Host Advisor",glyph:p.jsx(Ey,{size:13,strokeWidth:1.7,"aria-hidden":!0})}];return p.jsx(Hn,{label:"Operations",emptyMark:"O",labelTone:"default",onLabelClick:e,children:o.map(i=>p.jsx(tn,{title:i.title,active:r===i.id||!r&&i.id==="mission",tone:"neutral",glyph:i.glyph,onClick:()=>n({view:"ops",mode:i.id})},i.id))})}function NY({onExpand:e}){const{agents:t,navigate:n}=Xt(),{meshSnapshot:r}=F5(),o=s.useMemo(()=>r?mk(t,r):[],[t,r]),i=s.useMemo(()=>[...o].sort((c,u)=>u.agents.length-c.agents.length).slice(0,ea),[o]),a=i.filter(c=>c.online).length;return p.jsx(Hn,{label:"Network",emptyMark:"M",labelTone:a>0?"live":"default",labelCount:i.length||void 0,onLabelClick:e,children:i.map(c=>p.jsx(tn,{title:`${c.machineLabel} · ${c.agents.length}`,tone:c.online?"default":"neutral",ava:Pd(c.machineLabel),avaColor:Md(c.machineLabel),dot:c.online?"live":null,onClick:()=>n({view:"mesh"})},c.machineId))})}function ay({agent:e,attention:t,onClick:n}){const r=e.name??e.id,o=wy(e.state);return p.jsx(tn,{title:t?`${r} · needs you`:r,tone:t?"attention":"default",avatarNode:p.jsx(Cy,{agent:e,name:r,size:28,tile:!0,presence:!1}),dot:t?"attention":o?"live":null,onClick:n})}function DY(e){if(!e)return null;const t=e.replace(/\/+$/,"").split("/");return t[t.length-1]||null}function VY(e,t){if(t)return!1;switch(e.view){case"inbox":case"activity":case"briefings":case"agents-v2":case"agent-info":case"terminal":case"messages":case"conversation":case"ops":case"mesh":case"mesh-ops":return!0;default:return!1}}function FY({presentation:e="scout",navRailWidth:t,isCollapsed:n,onToggleCollapse:r,width:o,style:i,hideWhenEmpty:a=!0}){const{route:c,navigate:u}=Xt(),l=JC(c),d=l.kind==="scope"?{body:null,footer:null}:uk(c,u),f=!d.body&&!d.footer;if(a&&f)return null;const m=Nn(c),h=Gs.find(y=>y.id===m),g=l.kind==="scope"?"Scope":e==="slack"&&m==="chat"?"Scout":e==="slack"&&m==="home"?"Activity":h?.label??"Context",v=typeof i?.top=="number"?i.top:typeof i?.top=="string"&&Number.parseFloat(i.top)||0,b=t+Os(n?bn:o,n);return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"scout-side-rail-expanded-host","data-presentation":e,"data-collapsed":n?"true":"false",hidden:n,"aria-hidden":n,style:n?{display:"none"}:void 0,children:p.jsx(yd,{side:"left",title:g,isCollapsed:!1,width:o,style:{left:t,...i},footer:d.footer?d.footer:void 0,children:p.jsx("div",{"data-pane":"side-rail","data-scout-side-rail":"",style:{display:"contents"},children:d.body})})}),p.jsx("div",{className:"scout-side-rail-collapsed-host","data-presentation":e,"data-collapsed":n?"true":"false",hidden:!n,"aria-hidden":!n,style:n?void 0:{display:"none"},children:p.jsx(QC,{side:"left",title:g,onToggle:r,edgeOffset:t,top:v,style:i,body:p.jsx(MY,{route:c,onExpand:r})})}),p.jsx(js,{side:"left",collapsed:n,label:g,onToggle:r,onMouseDown:y=>y.stopPropagation(),className:"scout-rail-toggle--band",style:{position:"fixed",left:b,top:v+yy,zIndex:45}})]})}function BY(e){return Nn(e)==="ops"?"ops":null}function HY({items:e,route:t,navigate:n,className:r=""}){return e.length===0?null:p.jsx("nav",{className:`scout-area-subnav${r?` ${r}`:""}`,"aria-label":"Area sub-navigation","data-scout-area-subnav":"",children:e.map(o=>{const i=o.active(t);return p.jsx("button",{type:"button","aria-current":i?"page":void 0,className:`scout-area-subnav-item${i?" scout-area-subnav-item--active":""}`,onClick:()=>n(o.route),children:o.label},o.id)})})}function WY({rightUtility:e,centerUtility:t,crumbUtility:n,variant:r,presentation:o="scout",onOpenSearch:i,onInteractiveMouseDown:a}={}){const{route:c,navigate:u,navigateBack:l,canNavigateBack:d}=Xt(),f=K5(c),m=nk(c),h=BY(c),g=r==="top-row",v=!!m||h!==null;if(!g&&!f&&!m&&!h&&!e)return null;const w=v?p.jsxs(p.Fragment,{children:[m?p.jsx(HY,{items:m.items,route:c,navigate:u}):null,h==="ops"?p.jsx("div",{className:"scout-center-pane-secondary","data-scout-secondary-nav":"ops",children:p.jsx(kk,{activeRoute:c,navigate:u})}):null]}):null;if(g){const b=vy(Nn(c)).label;if(o==="slack"){const y=Nn(c)==="chat"?"Home":Nn(c)==="home"?"Activity":b;return p.jsxs("div",{className:"scout-center-pane-header scout-center-pane-header--top-row scout-slack-topbar","data-scout-center-pane-header":"","data-scout-top-row":"","data-presentation":"slack",children:[p.jsxs("div",{className:"scout-slack-topbar-history",onMouseDown:a,children:[p.jsx("button",{type:"button","aria-label":"Go back",title:"Go back",onClick:()=>window.history.back(),children:p.jsx(vp,{size:16,strokeWidth:1.8,"aria-hidden":!0})}),p.jsx("button",{type:"button","aria-label":"Go forward",title:"Go forward",onClick:()=>window.history.forward(),children:p.jsx(Ek,{size:16,strokeWidth:1.8,"aria-hidden":!0})}),p.jsx("span",{children:y})]}),p.jsxs("button",{type:"button",className:"scout-slack-topbar-search","aria-label":"Search Scout",onMouseDown:a,onClick:i,children:[p.jsx(Ly,{size:15,strokeWidth:1.8,"aria-hidden":!0}),p.jsx("span",{children:"Search Scout"}),p.jsx("kbd",{children:"⌘K"})]}),e?p.jsx("div",{className:"scout-center-pane-header-utility scout-slack-topbar-utility","data-scout-header-utility":"",onMouseDown:a,children:e}):p.jsx("span",{})]})}return p.jsxs("div",{className:`scout-center-pane-header scout-center-pane-header--top-row${t?" scout-center-pane-header--centered":""}`,"data-scout-center-pane-header":"","data-scout-top-row":"","data-scout-has-secondary-row":v&&!n?"":void 0,children:[p.jsxs("div",{className:"scout-center-pane-header-main",onMouseDown:a,children:[p.jsx("button",{type:"button",className:"scout-top-row-back","aria-label":"Back","aria-keyshortcuts":"Meta+[",title:"Back (⌘[)",disabled:!d,onClick:l,children:p.jsx(vp,{size:16,strokeWidth:1.9,"aria-hidden":"true"})}),p.jsx("div",{className:"scout-center-pane-breadcrumb","data-scout-breadcrumb":"",children:p.jsx("span",{className:"scout-nav-crumb",children:b})}),n?p.jsxs(p.Fragment,{children:[p.jsx("span",{className:"scout-top-row-sep","aria-hidden":"true",children:"/"}),p.jsx("div",{className:"scout-center-pane-crumb-utility","data-scout-crumb-utility":"",children:n})]}):p.jsxs(p.Fragment,{children:[v?p.jsx("span",{className:"scout-top-row-sep","aria-hidden":"true",children:"/"}):null,w]})]}),t?p.jsx("div",{className:"scout-center-pane-header-center","data-scout-header-center":"",onMouseDown:a,children:t}):null,e?p.jsx("div",{className:"scout-center-pane-header-utility","data-scout-header-utility":"",onMouseDown:a,children:e}):null]})}return p.jsxs("div",{className:"scout-center-pane-header","data-scout-center-pane-header":"",children:[p.jsxs("div",{className:"scout-center-pane-header-main",onMouseDown:a,children:[f?p.jsx("div",{className:"scout-center-pane-breadcrumb","data-scout-breadcrumb":"",children:p.jsx("span",{className:"scout-nav-crumb",children:f})}):null,w]}),e?p.jsx("div",{className:"scout-center-pane-header-utility","data-scout-header-utility":"",onMouseDown:a,children:e}):null]})}const zY="https://openscout.app/docs";function _Y({presentation:e="scout"}){const{onboarding:t,operatorName:n,refreshOnboarding:r}=Xt(),o=n||t?.operatorName?.trim()||t?.operatorNameSuggestion?.trim()||null,i=s.useRef(o==null),a=s.useRef(!1);return s.useEffect(()=>{o||!t||a.current||(a.current=!0,r())},[t,o,r]),p.jsxs("div",{className:"scout-top-row-identity","data-presentation":e,children:[p.jsx("a",{className:"scout-top-row-docs",href:zY,target:"_blank",rel:"noreferrer",title:"OpenScout documentation",children:e==="slack"?p.jsx(xk,{size:16,strokeWidth:1.8,"aria-hidden":!0}):"docs"}),p.jsxs("span",{className:"scout-top-row-operator",title:o??void 0,"aria-label":o?`Operator ${o}`:"Operator",children:[p.jsx(Cy,{name:o??"operator",size:28,presence:!1,scaleWithPreference:!1}),e==="slack"?null:p.jsx("span",{className:"scout-top-row-handle","data-arriving":o==null||void 0,"data-arrived":o!=null&&i.current?"":void 0,children:o?`@${o.toLowerCase()}`:null})]})]})}function UY({route:e,onExpand:t}){return e.view==="messages"||e.view==="conversation"?p.jsxs(Hn,{label:"Context",showLabel:!1,emptyMark:"·",children:[p.jsx(tn,{title:"Conversation",tone:"neutral",glyph:p.jsx(yp,{size:14,strokeWidth:1.7,"aria-hidden":!0}),onClick:t}),p.jsx(tn,{title:"Members",tone:"neutral",glyph:p.jsx(ky,{size:14,strokeWidth:1.7,"aria-hidden":!0}),onClick:t}),p.jsx(tn,{title:"Workspace",tone:"neutral",glyph:p.jsx(B5,{size:14,strokeWidth:1.7,"aria-hidden":!0}),onClick:t}),p.jsx(tn,{title:"Activity",tone:"neutral",glyph:p.jsx(Ey,{size:14,strokeWidth:1.7,"aria-hidden":!0}),onClick:t})]}):p.jsx(Hn,{label:"Context",showLabel:!1,emptyMark:"·",children:p.jsx(tn,{title:"Expand context",tone:"neutral",glyph:p.jsx(yp,{size:14,strokeWidth:1.7,"aria-hidden":!0}),onClick:t})})}function KY(e){return e.view==="ops"&&e.mode==="lanes"}function GY(e,t){return!KY(e)||!t||t.loading?!1:t.messageCount===0}function YY(e){return e.empty?!e.forceOpen:e.baseCollapsed}function XY(e){return(e.empty?!e.forceOpen:e.rightCollapsed)?{forceOpen:!0,rightCollapsed:e.empty?e.rightCollapsed:!1}:{forceOpen:!1,rightCollapsed:e.empty?e.rightCollapsed:!0}}function qY(e,t){switch(e.view){case"agents-v2":return!!(e.agentId||e.selectedAgentId||e.sessionId);case"agent-info":case"conversation":case"mesh":case"mesh-ops":case"repos":case"terminal":case"work":return!0;case"ops":return e.mode!=="lanes"&&e.mode!=="world";case"sessions":return!e.flightId;case"messages":return!!e.conversationId;case"search":return!!(e.hitId&&t.hasKnowledgeHit);case"broker":return!!(e.attemptId&&t.hasBrokerAttempt);case"activity":case"briefings":case"code":case"follow":case"harnesses":case"inbox":case"repo-diff":case"settings":case"voice":return!1}}function ZY(e){if(!e.available)return null;if(e.terminalFocusActive)return{terminalFocusActive:!1,lanesContextForceOpen:e.lanesContextForceOpen,rightCollapsed:!1};if(e.lanesContextRoute){const t=XY({empty:e.lanesContextEmpty,forceOpen:e.lanesContextForceOpen,rightCollapsed:e.rightCollapsed});return{terminalFocusActive:!1,lanesContextForceOpen:t.forceOpen,rightCollapsed:t.rightCollapsed}}return{terminalFocusActive:!1,lanesContextForceOpen:e.lanesContextForceOpen,rightCollapsed:!e.rightCollapsed}}const Ss=240,JY=900,QY=.45,eX=500,tX=420,nX=480,rX=520,Mu=560,oX=1500,sX=40;function cy(e){return Math.min(JY,Math.max(eX,Math.floor(e*QY)))}function iX({title:e,center:t,actions:n,search:r}){const{dragRegionProps:o,onInteractiveMouseDown:i}=Si(),{navTotalHeight:a}=Hd(),c=!!r?.value,u=s.useRef(null),l=s.useRef(null),d=s.useRef(null),f=s.useRef(null);return s.useEffect(()=>{const m=u.current;if(!m)return;const h=()=>{const w=(l.current?.offsetWidth??0)+16,b=(d.current?.offsetWidth??0)+16,y=f.current?.firstElementChild?.clientWidth??0;m.style.setProperty("--scout-nav-left-w",`${w}px`),m.style.setProperty("--scout-nav-right-w",`${b}px`),m.style.setProperty("--scout-nav-strip-w",`${y}px`)};h();const g=new ResizeObserver(h),v=f.current?.firstElementChild;for(const w of[l.current,d.current,v])w&&g.observe(w);return window.addEventListener("resize",h),()=>{g.disconnect(),window.removeEventListener("resize",h)}},[]),p.jsx("div",{ref:u,"data-frame-panel":"navigation",className:"fixed top-0 left-0 right-0 z-50 pointer-events-auto",...o,children:p.jsxs("div",{className:"bg-background/95 border-b shadow-[var(--hud-shadow-nav)] flex items-end px-4",style:{height:a,borderColor:"var(--hud-chrome-border, oklch(var(--border) / 0.8))"},children:[p.jsx("div",{ref:l,className:"absolute left-4 bottom-0 h-12 z-10 flex items-center gap-2.5 select-none",onMouseDown:i,children:p.jsxs("div",{"aria-label":e,className:"flex items-center gap-2 rounded-sm px-0.5 -mx-0.5 leading-none text-foreground/90",children:[p.jsx(Xx,{className:"h-[22px] w-[22px] text-[var(--scout-chrome-ink-strong,currentColor)]"}),p.jsx("span",{className:"font-mono text-sm font-medium tracking-[0.06em] leading-none",children:e})]})}),t&&p.jsx("div",{ref:f,className:"flex-1 flex justify-center h-12 items-center",onMouseDown:i,children:t}),p.jsxs("div",{ref:d,className:"absolute right-4 bottom-0 h-12 z-10 flex items-center gap-3",onMouseDown:i,children:[n,r&&p.jsxs("div",{className:"hidden sm:block relative w-[220px] max-w-[34vw] bg-card border border-input rounded px-2.5 shadow-[inset_0_1px_0_oklch(var(--foreground)/0.02)] hover:border-ring/60 focus-within:border-ring focus-within:bg-card transition-colors duration-200",children:[p.jsx(Ly,{size:11,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),p.jsx("input",{type:"text",value:r.value,onChange:m=>r.onChange(m.target.value),placeholder:r.placeholder??"Search",className:`
27
+ w-full h-7 pl-5 pr-6 bg-transparent text-sm font-mono font-normal tracking-[0.02em]
28
+ placeholder:text-muted-foreground/80 placeholder:font-light text-foreground
29
+ focus:outline-none transition-all duration-200
30
+ ${c?"text-accent":""}
31
+ `}),c&&p.jsx("button",{type:"button",onClick:()=>r.onChange(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground transition-colors focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none rounded-sm",children:p.jsx(Rd,{size:12})})]})]})]})})}function vee({app:e}){return p.jsx(C5,{registry:$5,audience:S5,audienceOrder:fy,storageKey:L5,initialLayers:j5(),children:p.jsx(e.Provider,{children:p.jsx(Mz,{children:p.jsx(lX,{app:e})})})})}function aX({statusBar:e,dictationActive:t}){const n=Pr("surface.scoutbot",!0),r=Pr(gy,!0),o=e.mesh.color==="amber"?"text-amber-400":e.mesh.color==="red"?"text-red-400":"text-foreground";return p.jsxs("div",{className:"flex items-center gap-3 font-mono leading-none",children:[p.jsxs("div",{className:"flex items-center gap-1.5",children:[p.jsx("span",{className:"text-2xs font-normal uppercase tracking-[0.16em] text-muted-foreground",children:e.mesh.label}),p.jsx("span",{className:`text-xs ${o}`,children:e.mesh.value})]}),(n||r)&&p.jsxs(p.Fragment,{children:[p.jsx("span",{"aria-hidden":"true",className:"select-none text-muted-foreground/40 text-xs",children:"·"}),p.jsxs("div",{className:"flex items-center gap-1",children:[n&&p.jsx(z5,{}),r&&p.jsx(Hz,{dictationActive:t})]})]})]})}function cX({statusBar:e,onOpenFlagPanel:t,onOpenActivityLog:n}){return p.jsxs("div",{className:"flex max-w-[42vw] items-center gap-3",children:[p.jsx(Fz,{onOpen:n}),p.jsx("span",{"aria-hidden":"true",className:"select-none text-muted-foreground/40 text-xs",children:"·"}),p.jsx(Lz,{onOpenPanel:t}),p.jsx("div",{className:"truncate font-mono text-xs leading-none text-muted-foreground",title:e.build.title,children:e.build.label})]})}function lX({app:e}){const{navTotalHeight:t}=Hd(),{titleBarInset:n,dragRegionProps:r,onInteractiveMouseDown:o}=Si(),i=Iz();O5();const{route:a,openContextCapture:c,apiConnection:u,navigate:l,navigateBack:d,selectedBrokerAttempt:f,selectedKnowledgeHit:m,appearanceDetails:h}=Xt(),g=uy(),v=h.shell==="slack",w=Pr("nav.sidebar",!1),b=v||w,y=b?n:t,k=b,C=k?sX:0,x=y+C,L=x+yy,S=V5(),E=e.hooks.useCommands(),M=e.hooks.useSearch?.()??null,P=e.hooks.useNavCenter?.()??null,D=e.hooks.useNavActions?.()??null,T=e.hooks.useLayoutMode?.()??e.mode,j=T==="focus"?"panel":T,H=e.hooks.useActiveToolHint?.()??null,A=e.hooks.useTakeover?.()??null,I=A?.active===!0,B=I&&A?.dismissible===!0,$=A?.onDismiss,z=e.slots.Takeover,R=G5();zz(R,u);const q=Pz(),[ee,te]=s.useState(!1),[ae,le]=gn(`appshell.${e.id}.left`,!1),[ne,re]=gn(`appshell.${e.id}.right`,!1),[se,ie]=gn(`appshell.${e.id}.rightOverlay`,!1),[ue,O]=gn(`appshell.${e.id}.leftW`,260),[X,V]=gn(`appshell.${e.id}.rightW`,280),[ge,J]=gn("openscout.ops.minimap.collapsed",!1),[G,Z]=gn(`appshell.${e.id}.terminalFocus`,!1),[be,ve]=s.useState(()=>typeof window<"u"?window.innerWidth:1280),[W,_]=s.useState(()=>cy(typeof window<"u"?window.innerWidth:1280)),ce=a.view==="search"||g.pathname==="/search",Y=v?sk:ik,K=ok(e.id,be,Y),oe=b&&a.view==="terminal"&&G,[ye,Ee]=s.useState(null),[xe,Ae]=s.useState(!1),Ie=s.useRef(null),Ue=s.useRef(null),tt=ye!=null,nt=ye!=null?lk(ye,{min:hp,max:gp,startedCollapsed:xe}):null,[Ce,Oe]=s.useState(null),Ne=s.useRef(null);s.useEffect(()=>{const U=()=>{ve(window.innerWidth),_(cy(window.innerWidth))};return U(),window.addEventListener("resize",U),()=>window.removeEventListener("resize",U)},[]);const{active:he,brandLabel:$e}=N5({route:a});s.useEffect(()=>(document.documentElement.style.setProperty("--scout-rail-collapsed-width",`${bn}px`),b?(document.documentElement.setAttribute("data-scout-sidebar-chrome",""),document.documentElement.style.setProperty("--scout-nav-rail-width",`${K.width}px`),K.isSidebarResizing?document.documentElement.setAttribute("data-scout-sidebar-resizing",""):document.documentElement.removeAttribute("data-scout-sidebar-resizing")):(document.documentElement.removeAttribute("data-scout-sidebar-chrome"),document.documentElement.removeAttribute("data-scout-sidebar-resizing"),document.documentElement.style.removeProperty("--scout-nav-rail-width")),()=>{document.documentElement.removeAttribute("data-scout-sidebar-chrome"),document.documentElement.removeAttribute("data-scout-sidebar-resizing"),document.documentElement.style.removeProperty("--scout-nav-rail-width")}),[b,K.width,K.isSidebarResizing]),s.useEffect(()=>{O(b?U=>fa(U):U=>Math.min(W,Math.max(Ss,U))),V(U=>Math.min(W,Math.max(Ss,U)))},[b,W,O,V]),s.useEffect(()=>{!ce||ne||se||V(U=>Math.max(U,Math.min(W,tX)))},[ce,ne,se,V,W]);const Re=a.view==="agents-v2"&&!a.agentId&&!a.sessionId&&!!a.selectedAgentId||a.view==="agents-v2"&&!!a.agentId;s.useEffect(()=>{!Re||ne||se||V(U=>Math.max(U,Math.min(W,nX)))},[Re,ne,se,V,W]);const ze=a.view==="broker"&&!!a.attemptId;s.useEffect(()=>{ze&&(re(!1),V(U=>Math.max(U,Math.min(W,rX))))},[ze,re,V,W]);const[Ye,yt]=s.useState({x:0,y:0}),[fn,Jn]=s.useState(1),Zr=s.useCallback(U=>{yt(Q=>({x:Q.x+U.x,y:Q.y+U.y}))},[]),Jr=s.useCallback(U=>{Jn(U)},[]),[Ft,qt]=s.useState(!1),[pn,Qn]=s.useState(!1),[Qr,eo]=gn(`appshell.${e.id}.termH`,320),pt=!!e.slots.Terminal,[to,Sn]=s.useState(!1),[no,vr]=s.useState(!1),[e5,t5]=s.useState(new Set),ta=s.useRef(!1),yr=s.useRef(null),$n=s.useCallback(()=>{ta.current=!1,yr.current!==null&&(window.clearTimeout(yr.current),yr.current=null)},[]),Qf=s.useCallback(()=>{ta.current=!0,yr.current!==null&&window.clearTimeout(yr.current),yr.current=window.setTimeout($n,oX)},[$n]);s.useEffect(()=>$n,[$n]);const n5=s.useCallback(U=>{t5(Q=>{const Me=new Set(Q);return Me.has(U)?Me.delete(U):Me.add(U),Me})},[]),ep=s.useCallback(U=>Q=>{Q.preventDefault();const Me=Q.clientX,Et=U==="left"?ue:X,mt=U==="left"?O:V,qe=U==="left"?1:-1,jn=Lt=>{const ct=(Lt.clientX-Me)*qe;mt(Math.max(Ss,Math.min(W,Et+ct)))},Bt=()=>{document.removeEventListener("mousemove",jn),document.removeEventListener("mouseup",Ht),window.removeEventListener("blur",Bt)},Ht=()=>Bt();document.addEventListener("mousemove",jn),document.addEventListener("mouseup",Ht),window.addEventListener("blur",Bt)},[ue,X,O,V,W]),[Zo,r5]=s.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches);s.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;const U=window.matchMedia("(prefers-reduced-motion: reduce)"),Q=()=>r5(U.matches);return Q(),U.addEventListener?.("change",Q),()=>U.removeEventListener?.("change",Q)},[]);const Jo=s.useCallback(U=>{Zo||(Oe(U),Ne.current!==null&&window.clearTimeout(Ne.current),Ne.current=window.setTimeout(()=>{Oe(null),Ne.current=null},150))},[Zo]);s.useEffect(()=>()=>{Ne.current!==null&&window.clearTimeout(Ne.current)},[]);const o5=s.useCallback(U=>{U.preventDefault(),U.stopPropagation();const Q=K.effectiveCollapsed,Me=U.clientX,Et=Q?Y:K.expandedWidth;Ue.current=Et,K.beginResize(Et,Q);const mt=()=>{document.removeEventListener("pointermove",qe),document.removeEventListener("pointerup",jn),document.removeEventListener("pointercancel",Bt),window.removeEventListener("blur",Bt)},qe=Ht=>{const Lt=Et+(Ht.clientX-Me);Ue.current=Lt,K.updateResize(Lt)},jn=()=>{const Ht=Ue.current??Et,Lt=K.commitDrag(Ht,Q),ct=Lt.kind==="collapse"?Y:Lt.kind==="expand"?K.expandedWidth:Lt.kind==="resize"?Lt.width:null;ct!=null&&Jo(ct),mt()},Bt=()=>{K.clearDrag(),mt()};document.addEventListener("pointermove",qe),document.addEventListener("pointerup",jn),document.addEventListener("pointercancel",Bt),window.addEventListener("blur",Bt)},[K,Y,Jo]),s5=s.useCallback((U,Q)=>Me=>{Me.preventDefault(),Me.stopPropagation();const Et=Me.clientX,mt=Q?bn:fa(ue);Ie.current=mt,Ee(mt),Ae(Q);const qe=()=>{document.removeEventListener("pointermove",jn),document.removeEventListener("pointerup",Bt),document.removeEventListener("pointercancel",Ht),window.removeEventListener("blur",Ht)},jn=Lt=>{const ct=mt+(Lt.clientX-Et);Ie.current=ct,Ee(ct)},Bt=()=>{const Lt=Ie.current??mt,ct=ck({startedCollapsed:Q,rawWidth:Lt},{min:hp,max:gp});ct.kind==="collapse"?le(!0):ct.kind==="expand"?le(!1):ct.kind==="resize"&&O(ct.width),Ee(null),Ie.current=null;const fp=ct.kind==="collapse"?U+bn:ct.kind==="expand"?U+fa(ue):ct.kind==="resize"?U+ct.width:null;fp!=null&&Jo(fp),qe()},Ht=()=>{Ee(null),Ie.current=null,qe()};document.addEventListener("pointermove",jn),document.addEventListener("pointerup",Bt),document.addEventListener("pointercancel",Ht),window.addEventListener("blur",Ht)},[ue,le,O,Jo]),tp=a.view==="agents-v2",np=qY(a,{hasBrokerAttempt:!!f,hasKnowledgeHit:!!m}),Qo=a.view==="ops"&&a.mode==="lanes",[es,na]=s.useState(!1),i5=S.state.conversation,ro=GY(a,i5);s.useEffect(()=>{Qo||na(!1)},[Qo]),s.useEffect(()=>{ro||na(!1)},[ro]);const oo=YY({empty:ro,forceOpen:es,baseCollapsed:ne||he}),ra=!oe&&!he&&np,oa=pt,so=!he&&np,ts=ra&&!oo,Zt=s.useCallback(()=>{const U=ZY({available:so,terminalFocusActive:oe,lanesContextRoute:Qo,lanesContextEmpty:ro,lanesContextForceOpen:es,rightCollapsed:ne});U&&(U.terminalFocusActive!==oe&&Z(U.terminalFocusActive),U.lanesContextForceOpen!==es&&na(U.lanesContextForceOpen),U.rightCollapsed!==ne&&re(U.rightCollapsed))},[ro,es,Qo,ne,so,re,Z,oe]),rp=s.useMemo(()=>[{id:"nav:back",label:"Back",shortcut:"Cmd+[",action:d},{id:"shell:toggle-sidebar-b",label:"Toggle Sidebar",shortcut:"Cmd+B",action:()=>{b?K.toggleCollapsed():le(Me=>!Me)}},{id:"shell:toggle-right",label:"Toggle Right Panel",shortcut:"Cmd+]",action:Zt},{id:"shell:toggle-right-overlay",label:"Toggle Inspector Overlay",shortcut:"Cmd+Shift+]",action:()=>ie(Me=>!Me)},{id:"shell:new-session",label:xo,shortcut:$s,action:()=>c()},{id:"shell:toggle-terminal",label:"Toggle Terminal",shortcut:"Ctrl+`",action:()=>qt(Me=>!Me)},...b&&a.view==="terminal"?[{id:"shell:terminal-focus",label:G?"Exit Terminal Focus":"Focus Terminal",shortcut:"Cmd+Shift+B",action:()=>Z(Me=>!Me)}]:[],{id:"shell:feature-flags",label:"Feature Flags",shortcut:Ks()?"Cmd+Shift+F":void 0,action:()=>vr(!0)}],[c,d,a,le,ie,vr,Z,b,K,G,Zt]),a5=s.useMemo(()=>[...E,...rp],[E,rp]);s.useEffect(()=>{const U=Q=>{if(R5(Q)&&!I&&!i.open&&!M5()&&b&&a.view==="terminal"){Q.preventDefault(),Q.stopPropagation(),Z(qe=>!qe);return}if(P5(Q.target)||I||i.open)return;const Me=Q.key.toLowerCase(),Et=Q.metaKey||Q.ctrlKey||Q.altKey,mt=my(Q.target);if(ta.current)if(Q.key==="Escape"||Et||mt)$n();else{const qe=q5(Me);if(qe){Q.preventDefault(),Q.stopPropagation(),$n(),l(qe.route);return}else $n()}if(!Et&&!Q.shiftKey&&Me==="g"&&!mt){Q.preventDefault(),Q.stopPropagation(),Qf();return}if((Q.metaKey||Q.ctrlKey)&&Q.key==="k"&&(Q.preventDefault(),Sn(!0)),Y5(Q)&&(Q.preventDefault(),c()),(Q.metaKey||Q.ctrlKey)&&Q.key==="["&&(Q.preventDefault(),d()),(Q.metaKey||Q.ctrlKey)&&Q.key.toLowerCase()==="b"){if(mt)return;Q.preventDefault(),b?K.toggleCollapsed():le(qe=>!qe)}(Q.metaKey||Q.ctrlKey)&&Q.key==="]"&&(Q.preventDefault(),Q.shiftKey?ie(qe=>!qe):Zt()),Q.ctrlKey&&Q.key==="`"&&(Q.preventDefault(),qt(qe=>!qe)),pt&&(Q.metaKey||Q.ctrlKey)&&Q.key==="j"&&(Q.preventDefault(),qt(qe=>!qe)),Ks()&&(Q.metaKey||Q.ctrlKey)&&Q.shiftKey&&!Q.altKey&&Q.code==="KeyF"&&(Q.preventDefault(),Q.stopPropagation(),vr(!0))};return window.addEventListener("keydown",U,!0),()=>window.removeEventListener("keydown",U,!0)},[$n,pt,i.open,d,l,c,a,le,re,ie,vr,Z,b,K,Qf,I,Zt]),s.useEffect(()=>{const U=Q=>{const Me=Q.detail,Et=typeof Me?.width=="number"?Me.width:420;re(!1),V(mt=>Math.max(mt,Math.min(W,Math.max(Ss,Et))))};return window.addEventListener("scout:set-inspector-width",U),()=>window.removeEventListener("scout:set-inspector-width",U)},[re,V,W]),s.useEffect(()=>{const U=()=>Z(Q=>!Q);return window.addEventListener("scout:terminal-focus-toggle",U),()=>window.removeEventListener("scout:terminal-focus-toggle",U)},[Z]);const sa=e.slots.Inspector,op=e.slots.RightPanel,c5=e.tools&&e.tools.length>0,l5=p.jsxs(p.Fragment,{children:[sa&&p.jsx(sa,{}),!sa&&op&&p.jsx(op,{}),c5&&p.jsx("div",{className:"border-t border-neutral-700/50",children:e.tools.map(U=>{const Q=e5.has(U.id);return p.jsxs("div",{children:[p.jsxs("button",{onClick:()=>n5(U.id),className:`w-full flex items-center gap-2 px-4 py-2.5 text-sm font-mono tracking-wider uppercase transition-colors hover:bg-white/5 ${H===U.id?"text-emerald-400":"text-neutral-300"}`,children:[Q?p.jsx(Lk,{size:10}):p.jsx(Sk,{size:10}),p.jsx("span",{className:"text-neutral-400",children:U.icon}),p.jsx("span",{className:"font-bold",children:U.name})]}),Q&&p.jsx("div",{className:"px-4 pb-3",children:p.jsx(U.Component,{})})]},U.id)})})]}),u5=p.jsx(dz,{onOpenCommandPalette:()=>Sn(!0)}),sp=s.useMemo(()=>({isCollapsed:ge,onToggleCollapse:()=>J(U=>!U)}),[ge,J]),d5=q?p.jsx("div",{className:`scout-canvas-minimap-shell${ge?" scout-canvas-minimap-shell--collapsed":""}`,children:q.render(sp)}):null,f5=q?p.jsx("div",{className:`scout-canvas-minimap-shell scout-canvas-minimap-shell--floating${ge?" scout-canvas-minimap-shell--collapsed":""}`,children:q.render(sp)}):null,ip=s.useRef(null),ap=s.useRef(null);s.useEffect(()=>{const U=ip.current;U&&(I?U.setAttribute("inert",""):U.removeAttribute("inert"))},[I]),s.useEffect(()=>{if(!I)return;const U=ap.current;if(U&&(U.querySelector("button, [href], input, select, textarea, [tabindex]:not([tabindex='-1'])")??U).focus(),!B)return;const Q=Me=>{Me.key==="Escape"&&(Me.preventDefault(),$?.())};return window.addEventListener("keydown",Q),()=>window.removeEventListener("keydown",Q)},[I,B,$]);const ns=he&&!b,p5=he,io=!oe&&b&&VY(a,he),ia=io?ae?bn:ue:0,cp=io&&K.effectiveCollapsed&&ae;s.useEffect(()=>(cp?document.documentElement.setAttribute("data-scout-double-rail",""):document.documentElement.removeAttribute("data-scout-double-rail"),()=>document.documentElement.removeAttribute("data-scout-double-rail")),[cp]);const ao=oe?0:b?K.width+ia:ae||ns?0:ue,rs=oe||!ra||se||ze||p5?0:oo?b?bn:0:X,m5=be-ao-rs,lp=T==="panel"&&m5<Mu&&(ao>0||rs>0),aa=lp&&rs>0,ca=lp&&(b?ia>0&&be-K.width-ia<Mu:ao>0&&be-ao<Mu),os=ze||se||aa,la=ca?b?K.width:0:ao,ua=os?0:rs,h5=T==="panel"?{position:"absolute",top:x,bottom:28,left:la,right:ua,overflow:"auto"}:{},up=b?{top:x}:{},g5=b?{top:x}:{},b5={display:"contents","--scout-shell-left-inset":`${T==="panel"?la:0}px`,"--scout-shell-right-inset":`${T==="panel"?ua:0}px`,...b?{"--scout-nav-rail-width":`${K.width}px`}:{}},dp=se?"Pin inspector (push content)":aa?"Keep inspector floating when there is room":"Float inspector (overlay content)",da=s.useCallback((U,Q=!1)=>({backgroundColor:"rgba(13, 14, 16, 0.72)",backdropFilter:"blur(24px) saturate(140%)",WebkitBackdropFilter:"blur(24px) saturate(140%)",boxShadow:U==="left"?"18px 0 48px -12px rgba(0,0,0,0.7), inset -1px 0 0 0 rgba(255,255,255,0.06)":"-18px 0 48px -12px rgba(0,0,0,0.7), inset 1px 0 0 0 rgba(255,255,255,0.06)",...Q?{right:12,bottom:40,borderWidth:1,borderStyle:"solid",borderColor:"rgba(255,255,255,0.09)",borderRadius:12,boxShadow:"-24px 18px 72px -18px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.025)"}:{}}),[]);return p.jsxs(p.Fragment,{children:[p.jsx("div",{ref:ip,"aria-hidden":I?!0:void 0,style:b5,children:p.jsx(az,{mode:j,panOffset:Ye,scale:fn,onPan:Zr,onZoom:Jr,hud:p.jsxs(p.Fragment,{children:[b?null:p.jsx(iX,{title:he?$e:e.name,search:he?void 0:M??void 0,center:P,actions:D}),b?oe?null:p.jsxs(p.Fragment,{children:[p.jsx(wY,{open:!K.effectiveCollapsed,onOpenChange:U=>K.setCollapsed(!U),style:{"--sidebar-width":`${K.expandedWidth}px`,"--sidebar-width-icon":`${Y}px`,"--scout-sidebar-top":"0px"},"data-sidebar-resizing":K.isSidebarResizing?"":void 0,children:p.jsx(RY,{brandLabel:e.name,presentation:v?"slack":"scout"})}),p.jsx(js,{side:"left",collapsed:K.effectiveCollapsed,label:"Sidebar",onToggle:K.toggleCollapsed,onMouseDown:U=>U.stopPropagation(),className:"scout-rail-toggle--band",style:{position:"fixed",left:Os(K.width,K.effectiveCollapsed,Y),top:L,zIndex:46}}),p.jsx("div",{"data-scout-sidebar-resize-handle":"",role:"separator","aria-orientation":"vertical","aria-label":K.effectiveCollapsed?"Expand sidebar (drag out)":"Resize or collapse sidebar",title:K.effectiveCollapsed?"Drag out to expand · double-click to expand":"Drag to resize · drag in to collapse · double-click to reset",onPointerDown:o5,onDoubleClick:U=>{U.preventDefault(),K.effectiveCollapsed?(K.setExpandedWidth(ak),K.setCollapsed(!1)):K.resetExpandedWidth()},onMouseDown:U=>{U.stopPropagation()},style:{position:"fixed",left:Math.max(0,K.width-3),top:x+pp,bottom:28,width:6,zIndex:50,cursor:"ew-resize",pointerEvents:"auto",touchAction:"none"}}),!Zo&&K.isSidebarResizing&&K.dragGhostWidth!=null?p.jsx("div",{"data-scout-sidebar-resize-ghost":"","aria-hidden":"true",className:"scout-sidebar-resize-ghost",style:{position:"fixed",left:K.dragGhostWidth,top:x,bottom:28,width:2,transform:"translateX(-50%)",zIndex:55,pointerEvents:"none"}}):null,io?p.jsx(FY,{presentation:v?"slack":"scout",navRailWidth:K.width,isCollapsed:ae,onToggleCollapse:()=>le(!ae),width:ue,style:{...g5,...ca?da("left"):{}}}):null,io?p.jsx("div",{"data-scout-sidebar-resize-handle":"","data-scout-side-rail-resize-handle":"",role:"separator","aria-orientation":"vertical","aria-label":ae?"Expand context rail (drag out)":"Resize or collapse context rail",title:ae?"Drag out to expand · double-click to expand":"Drag to resize · drag in to collapse · double-click to reset",onPointerDown:s5(K.width,ae),onDoubleClick:U=>{U.preventDefault(),ae?(O(mp),le(!1)):O(mp)},onMouseDown:U=>{U.stopPropagation()},style:{position:"fixed",left:Math.max(0,K.width+(ae?bn:ue)-3),top:x+pp,bottom:28,width:6,zIndex:50,cursor:"ew-resize",pointerEvents:"auto",touchAction:"none"}}):null,!Zo&&io&&tt&&nt!=null?p.jsx("div",{"data-scout-side-rail-resize-ghost":"","aria-hidden":"true",className:"scout-sidebar-resize-ghost",style:{position:"fixed",left:K.width+nt,top:x,bottom:28,width:2,transform:"translateX(-50%)",zIndex:55,pointerEvents:"none"}}):null,Ce!=null?p.jsx("div",{"data-scout-rail-settle-ghost":"","aria-hidden":"true",className:"scout-sidebar-resize-ghost scout-sidebar-resize-ghost--settle",style:{position:"fixed",left:Ce,top:x,bottom:28,width:2,transform:"translateX(-50%)",zIndex:55,pointerEvents:"none"}}):null]}):p.jsxs(p.Fragment,{children:[p.jsx(yd,{side:"left",title:tp?"Browse":a.view==="agent-info"?"Projects":e.leftPanel?.title??"Navigation",icon:e.leftPanel?.icon,isCollapsed:ae||ns,onToggleCollapse:()=>le(!ae),width:ue,onResizeStart:ep("left"),style:ca?da("left"):void 0,footer:!ae&&!ns?d5:void 0,headerActions:e.leftPanel?.headerActions&&p.jsx(e.leftPanel.headerActions,{}),children:p.jsx("div",{"data-pane":"left",style:{display:"contents"},children:e.slots.LeftPanel&&p.jsx(e.slots.LeftPanel,{})})}),ae||ns?f5:null]}),k?p.jsx("div",{"data-scout-top-row-frame":"",className:"scout-top-row-frame",style:{position:"fixed",top:y,left:oe?0:K.width,right:0,height:C,zIndex:30,...r?.style??{}},...Object.fromEntries(Object.entries(r??{}).filter(([U])=>U!=="style")),children:p.jsx(WY,{variant:"top-row",presentation:v?"slack":"scout",onOpenSearch:()=>Sn(!0),crumbUtility:a.view==="terminal"?p.jsx("div",{id:"scout-terminal-header-crumb-slot","data-scout-terminal-header-crumb-slot":""}):void 0,centerUtility:a.view==="terminal"?p.jsx("div",{id:"scout-terminal-header-search-slot","data-scout-terminal-header-search-slot":""}):void 0,rightUtility:p.jsxs(p.Fragment,{children:[a.view!=="terminal"?p.jsx(_Y,{presentation:v?"slack":"scout"}):null,a.view==="terminal"?p.jsx("div",{id:"scout-terminal-header-slot","data-scout-terminal-header-slot":""}):null,p.jsxs("span",{className:"scout-top-row-panel-toggles",role:"group","aria-label":"Layout panels",children:[a.view!=="terminal"?p.jsx("button",{type:"button","data-scout-bottom-panel-toggle":"","aria-label":oa?Ft?"Hide terminal":"Show terminal":"Terminal unavailable","aria-pressed":Ft,"aria-keyshortcuts":"Control+`",title:oa?Ft?"Hide terminal (⌃`)":"Show terminal (⌃`)":"No terminal is available in this app",className:`scout-top-row-panel-toggle${Ft?" scout-top-row-panel-toggle--active":""}`,disabled:!oa,onClick:()=>qt(U=>!U),children:p.jsx(bz,{size:14,strokeWidth:1.8,"aria-hidden":"true"})}):null,p.jsx("button",{type:"button","data-scout-right-panel-toggle":"","aria-label":so?ts?"Hide right panel":"Show right panel":"Right panel unavailable for this view","aria-pressed":ts,"aria-keyshortcuts":"Meta+] Control+]",title:so?ts?"Hide right panel (⌘])":"Show right panel (⌘])":"No right panel is available for this view",className:`scout-top-row-panel-toggle${ts?" scout-top-row-panel-toggle--active":""}`,disabled:!so,onClick:Zt,children:p.jsx($k,{size:14,strokeWidth:1.8,"aria-hidden":"true"})})]})]}),onInteractiveMouseDown:o})}):null,ra&&(()=>{const U=ze?"Dispatch detail":tp?"Detail":e.rightPanel?.title??"Inspector";return b&&oo?p.jsxs(p.Fragment,{children:[p.jsx(QC,{side:"right",title:U,onToggle:Zt,edgeOffset:0,top:x,style:up,body:p.jsx(UY,{route:a,onExpand:Zt})}),p.jsx(js,{side:"right",collapsed:!0,label:U,onToggle:Zt,onMouseDown:Q=>Q.stopPropagation(),className:"scout-rail-toggle--band",style:{position:"fixed",right:Os(bn,!0),top:L,zIndex:45}})]}):p.jsxs(p.Fragment,{children:[p.jsx(yd,{side:"right",title:U,icon:e.rightPanel?.icon,isCollapsed:b?!1:oo,onToggleCollapse:b?void 0:Zt,width:X,onResizeStart:ep("right"),floating:os,style:{...up,...os?da("right",ze):{}},footer:u5,headerActions:p.jsxs(p.Fragment,{children:[!ze&&p.jsx("button",{type:"button",onClick:()=>ie(Q=>aa&&!Q?!0:!Q),title:dp,"aria-label":dp,className:"p-1 hover:bg-accent/10 rounded transition-colors text-muted-foreground hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",children:os?p.jsx(yz,{size:12}):p.jsx(jk,{size:12})}),e.rightPanel?.headerActions&&p.jsx(e.rightPanel.headerActions,{})]}),children:p.jsx("div",{"data-pane":"right",style:{display:"contents"},children:l5})}),b&&!oo?p.jsx(js,{side:"right",collapsed:!1,label:U,onToggle:Zt,onMouseDown:Q=>Q.stopPropagation(),className:"scout-rail-toggle--band",style:{position:"fixed",right:Os(X,!1),top:L,zIndex:45}}):null]})})(),p.jsx(uz,{status:R.status,left:p.jsx(aX,{statusBar:R,dictationActive:S.state.activity==="listening"}),right:p.jsx(cX,{statusBar:R,onOpenFlagPanel:()=>vr(!0),onOpenActivityLog:()=>te(!0)}),onToggleTerminal:()=>qt(U=>!U),isTerminalOpen:Ft,terminalLabel:"Terminal"}),p.jsx(Bz,{open:ee,onClose:()=>te(!1)}),p.jsx("div",{className:"pointer-events-none",style:{position:"fixed",left:la,right:ua,bottom:0,top:0,zIndex:45,transform:"translateZ(0)"},children:p.jsx($z,{isOpen:Ft,onClose:()=>qt(!1),onToggleMaximize:()=>Qn(U=>!U),isMaximized:pn,height:Math.min(Qr,window.innerHeight*.8),onHeightChange:U=>eo(Math.min(U,window.innerHeight*.8)),closeLabel:"Close terminal",children:Ft&&e.slots.Terminal&&p.jsx(e.slots.Terminal,{})})}),p.jsx(Oz,{isOpen:to,onClose:()=>Sn(!1),commands:a5})]}),children:p.jsx("div",{style:h5,className:"frame-scrollbar","data-pane":"center",children:p.jsx(e.slots.Content,{})})})}),I&&z?p.jsxs("div",{ref:ap,tabIndex:-1,role:"dialog","aria-modal":"true",style:{position:"fixed",inset:0,zIndex:80,outline:"none"},children:[p.jsx("div",{"data-scout-takeover-drag-region":"","aria-hidden":"true",style:{position:"absolute",top:0,left:0,right:0,height:Math.max(28,n||28),zIndex:1,...r?.style??{}},...Object.fromEntries(Object.entries(r??{}).filter(([U])=>U!=="style"))}),p.jsx(z,{})]}):null,p.jsx(Az,{open:i.open,onClose:()=>i.setOpen(!1)}),p.jsx(Cz,{isOpen:no,onClose:()=>vr(!1),audienceOptions:fy}),p.jsx(Vz,{})]})}export{vee as OpenScoutAppShell};