@openscout/scout 0.2.87 → 0.2.91

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 (486) hide show
  1. package/README.md +10 -5
  2. package/bin/scoutd +0 -0
  3. package/dist/build-manifest.json +4 -4
  4. package/dist/client/assets/ActivityScreen-BUeb4ERK.js +1 -0
  5. package/dist/client/assets/{AddProjectForm-Dw2oyCcz.js → AddProjectForm-DtTfn4Zk.js} +1 -1
  6. package/dist/client/assets/AgentAvatar-CneOa70z.js +1 -0
  7. package/dist/client/assets/AgentConfigurationScreen-CkZ7EjZh.js +1 -0
  8. package/dist/client/assets/AgentDefinitionsWorkspace-0Y3kqMtv.js +1 -0
  9. package/dist/client/assets/{AgentDetailCard-2DZQahiN.js → AgentDetailCard-Dtc02KUO.js} +1 -1
  10. package/dist/client/assets/AgentFloorView-B5raPB_U.js +1 -0
  11. package/dist/client/assets/AgentInfoScreen-DFG4ElZD.js +1 -0
  12. package/dist/client/assets/{AgentLaneCard-CeSjWWwh.js → AgentLaneCard-BRAkw8YJ.js} +1 -1
  13. package/dist/client/assets/{AgentLaneChrome-Do7CXwin.js → AgentLaneChrome-T8QE5742.js} +1 -1
  14. package/dist/client/assets/AgentLaneDetailSheet-C8RYotnv.js +4 -0
  15. package/dist/client/assets/{AgentLaneSummaryResize--lHgnncr.js → AgentLaneSummaryResize-FyYweLo_.js} +1 -1
  16. package/dist/client/assets/AgentLanesEmbedScreen-Br7cmZVO.js +1 -0
  17. package/dist/client/assets/{AgentLanesPreflight-BwkGk8JH.js → AgentLanesPreflight-Cil3dNwu.js} +1 -1
  18. package/dist/client/assets/AgentLanesView-DPfO8MOo.js +2 -0
  19. package/dist/client/assets/{AgentLiveActions-BmXDRxER.js → AgentLiveActions-DwScaVRF.js} +1 -1
  20. package/dist/client/assets/AgentSessions-DKoWA0Lm.js +6 -0
  21. package/dist/client/assets/AgentsConsole-DoBIWGoq.js +1 -0
  22. package/dist/client/assets/AgentsScreen-JuUiSuwY.js +1 -0
  23. package/dist/client/assets/AgentsSubnav-BV0WAgzf.js +1 -0
  24. package/dist/client/assets/{AtopView-DOKJbiJL.js → AtopView-ycxMrRwp.js} +1 -1
  25. package/dist/client/assets/BackToPicker-D6WgIDb-.js +1 -0
  26. package/dist/client/assets/BriefingDetailScreen-Zw-taW1s.js +6 -0
  27. package/dist/client/assets/{BriefingsScreen-DLIJ8eYj.js → BriefingsScreen-BerYOoWS.js} +1 -1
  28. package/dist/client/assets/{BrokerMetadataPanel-C8WERmHF.js → BrokerMetadataPanel-Cu93j-Ga.js} +1 -1
  29. package/dist/client/assets/BrokerScreen-CeN90URH.js +5 -0
  30. package/dist/client/assets/ChatCollapsedStrip-DdKyMSEM.js +1 -0
  31. package/dist/client/assets/{CodeDiffPane-CtgqIuS0.js → CodeDiffPane-BjCOBLze.js} +1 -1
  32. package/dist/client/assets/{CodeProjectPicker-C4W_udc7.js → CodeProjectPicker-NSGdCaK0.js} +1 -1
  33. package/dist/client/assets/{CodeScreen-WhTvVUKY.js → CodeScreen-CA9Sq6Dx.js} +1 -1
  34. package/dist/client/assets/ContextMenu-DnFcmfMR.js +1 -0
  35. package/dist/client/assets/ConversationComposer-CjRXFkvY.js +1 -0
  36. package/dist/client/assets/ConversationFeedRows-CgRTIpAv.js +1 -0
  37. package/dist/client/assets/ConversationHeader-CRmdtuL7.js +1 -0
  38. package/dist/client/assets/ConversationPanels-DCkcLIHk.js +2 -0
  39. package/dist/client/assets/ConversationScreen-Br0QQ3xo.js +1 -0
  40. package/dist/client/assets/ConversationScreen-yIKEsm-8.css +1 -0
  41. package/dist/client/assets/ConversationStatus-BJ1CMbAv.js +1 -0
  42. package/dist/client/assets/{DataTable-DFacT2uu.js → DataTable-Dzqiaha4.js} +1 -1
  43. package/dist/client/assets/{DispatchAftermath-D797PbCe.js → DispatchAftermath-B0WMg_z3.js} +1 -1
  44. package/dist/client/assets/DocumentFocusViewer-CZVVIAD5.js +1 -0
  45. package/dist/client/assets/{EmbeddableSurfacesLab-JczLmmF-.js → EmbeddableSurfacesLab-C3a7hJWO.js} +1 -1
  46. package/dist/client/assets/{EmptyState-uQbB-bvP.js → EmptyState-CYNJZMrZ.js} +1 -1
  47. package/dist/client/assets/{FileViewerPane-ebbCtnHE.js → FileViewerPane-Fwt8_KmD.js} +1 -1
  48. package/dist/client/assets/FleetSearch-Dsi_l2KW.js +1 -0
  49. package/dist/client/assets/FleetSearch-EXOe8ulE.css +1 -0
  50. package/dist/client/assets/FlightObserveScreen-g_tiGmvz.js +1 -0
  51. package/dist/client/assets/{FollowScreen-Bfu2_KtU.js → FollowScreen-Bb_rcrzi.js} +1 -1
  52. package/dist/client/assets/{HarnessMark-CEzmPFHC.js → HarnessMark-DrE57dUq.js} +1 -1
  53. package/dist/client/assets/HarnessesScreen-CAsCJ_tG.js +1 -0
  54. package/dist/client/assets/{HerdrSession-BDLa_rrK.js → HerdrSession-1eVu9Owj.js} +1 -1
  55. package/dist/client/assets/HomeHero-DEl-WBsT.css +1 -0
  56. package/dist/client/assets/HomeHero-W445QrG1.js +1 -0
  57. package/dist/client/assets/{KnowledgeSearchInspector-GjmxYBi_.js → KnowledgeSearchInspector-CbPVg3fr.js} +1 -1
  58. package/dist/client/assets/KnowledgeSearchScreen-C1lN1xJk.js +1 -0
  59. package/dist/client/assets/{LaneToolHoverCard-DCY-m0JK.js → LaneToolHoverCard-BkBcDYm-.js} +1 -1
  60. package/dist/client/assets/LaneTraceDetailSheet-CzTd44rf.js +1 -0
  61. package/dist/client/assets/{LaneTraceEventFocus-BfKZ7G5c.js → LaneTraceEventFocus-BmMmPTyJ.js} +1 -1
  62. package/dist/client/assets/{MeshCanvas-CZYHLTvw.js → MeshCanvas-DwkjsiJ5.js} +2 -2
  63. package/dist/client/assets/{MeshCanvasMinimap-D3mJ78CM.js → MeshCanvasMinimap-vmCpU1sD.js} +1 -1
  64. package/dist/client/assets/MeshScreen-CkMepUpT.js +1 -0
  65. package/dist/client/assets/{MeshTopologyView-A-wh0Ad1.js → MeshTopologyView-BD2xLE2C.js} +2 -2
  66. package/dist/client/assets/MessageComposerSuggestions-qbalTne_.js +1 -0
  67. package/dist/client/assets/MessagesScreen-C8UynyLC.js +1 -0
  68. package/dist/client/assets/{MissionContextRail-MTL2EAnr.js → MissionContextRail-D5MEP2f4.js} +1 -1
  69. package/dist/client/assets/MissionControlView-K_I7eftL.js +1 -0
  70. package/dist/client/assets/MissionFocusOverlay-CWKLdUKG.js +1 -0
  71. package/dist/client/assets/MissionLeftAgentRow-ByGrNAcs.js +1 -0
  72. package/dist/client/assets/MissionLogPane-ZwHJ137T.js +1 -0
  73. package/dist/client/assets/{NewAgentModal-Ctixol4_.js → NewAgentModal-Do9aVvan.js} +1 -1
  74. package/dist/client/assets/NewChatComposer-DKlNX1UA.js +19 -0
  75. package/dist/client/assets/{NewChatOrigin-CCiPg_WR.js → NewChatOrigin-DXPvX-hh.js} +1 -1
  76. package/dist/client/assets/ObserveEmbedScreen-Dghsq2on.js +2 -0
  77. package/dist/client/assets/ObserveTextFlow-DWNlmTVm.js +2 -0
  78. package/dist/client/assets/ObservedTopologyPanel-BlmGoxCE.js +2 -0
  79. package/dist/client/assets/OpenScoutAppShell-DDqQi-oe.js +87 -0
  80. package/dist/client/assets/OpsAgentsView-Bn_fGBdo.js +1 -0
  81. package/dist/client/assets/OpsScreen-DHnT-Q9R.js +1 -0
  82. package/dist/client/assets/OpsSubnav-CJRD7MjM.js +1 -0
  83. package/dist/client/assets/PlanView-B6gKo543.js +1 -0
  84. package/dist/client/assets/ProjectAgentProfile-Be1VOkI4.js +1 -0
  85. package/dist/client/assets/{ProjectAgentProfileBar-B4RqrI0Q.js → ProjectAgentProfileBar-C5QWwZCn.js} +1 -1
  86. package/dist/client/assets/ProjectAgentProfileHero-DC7Dd8VL.js +1 -0
  87. package/dist/client/assets/ProjectsInbox-DCLrDmj1.js +2 -0
  88. package/dist/client/assets/ProjectsRail-C4hiXYSb.js +1 -0
  89. package/dist/client/assets/ProjectsScreen-jruZRjgD.js +1 -0
  90. package/dist/client/assets/ProjectsThreadAside-DYmL2dCY.js +1 -0
  91. package/dist/client/assets/Provider-p-xuaAoE.js +1 -0
  92. package/dist/client/assets/RailRow-Cf9LOiEj.css +1 -0
  93. package/dist/client/assets/RailRow-bRkkXIpR.js +1 -0
  94. package/dist/client/assets/RawSessionsTable-B7WKmXrk.js +1 -0
  95. package/dist/client/assets/RealtimeVoiceScreen-BzP3BQq9.js +1 -0
  96. package/dist/client/assets/{RepoDiffEmbedScreen-Cr1SL5ht.js → RepoDiffEmbedScreen-xjzjcJ_c.js} +1 -1
  97. package/dist/client/assets/{RepoDiffPageScreen-DeC8fsh_.js → RepoDiffPageScreen-DRzIY-dk.js} +1 -1
  98. package/dist/client/assets/RepoDiffViewer-CNDp01KM.js +7 -0
  99. package/dist/client/assets/RepoDiffViewerLazy-b6vjYxez.js +2 -0
  100. package/dist/client/assets/{ReposScreen-BQwIShXf.js → ReposScreen-CpaLC_NU.js} +6 -6
  101. package/dist/client/assets/ScoutDeckSurface-DkpZ-0DH.js +1 -0
  102. package/dist/client/assets/{ScoutSurface-DdVzN3DA.js → ScoutSurface-BENBUt5-.js} +1 -1
  103. package/dist/client/assets/ScoutbotBroadcastChip-CGZyxS5H.js +2 -0
  104. package/dist/client/assets/{agent-autocomplete-C7xwIcwd.css → ScoutbotBroadcastChip-CxtYZWPZ.css} +1 -1
  105. package/dist/client/assets/{ScoutbotFxLab-sLjfSKtS.js → ScoutbotFxLab-Bk2ZsfPp.js} +1 -1
  106. package/dist/client/assets/ScoutbotRealtimeVoiceCall-n63LdBZs.js +1 -0
  107. package/dist/client/assets/{SecondaryNav-CCQqTT3e.js → SecondaryNav-B4IsujYh.js} +1 -1
  108. package/dist/client/assets/{SessionEmbedScreen-BrLMZJ3N.js → SessionEmbedScreen-CPfH-jqN.js} +1 -1
  109. package/dist/client/assets/{SessionObserve-pbozyqVv.js → SessionObserve-B-SkP3tu.js} +1 -1
  110. package/dist/client/assets/{SessionObserveEvidence-C54Xvbps.js → SessionObserveEvidence-CF5jnH3-.js} +1 -1
  111. package/dist/client/assets/SessionRefScreen-C-4jjmVG.js +1 -0
  112. package/dist/client/assets/SessionsScreen-HAjFvmIq.js +1 -0
  113. package/dist/client/assets/SettingsDrawer-DATxwZrn.js +3 -0
  114. package/dist/client/assets/SettingsDrawer-UX7pFJU_.css +1 -0
  115. package/dist/client/assets/SettingsScreen-Bu53X7J_.js +1 -0
  116. package/dist/client/assets/{ShikiPane-CiVH-45m.js → ShikiPane-DH8yYDks.js} +1 -1
  117. package/dist/client/assets/{SlidePanel-BLrLF9dt.js → SlidePanel-RFXJpfUa.js} +1 -1
  118. package/dist/client/assets/{SpriteAvatar-vpHO-rXs.js → SpriteAvatar-CEYdCzem.js} +1 -1
  119. package/dist/client/assets/{StatusPill-a3XBw1GG.js → StatusPill-9uy70ttd.js} +1 -1
  120. package/dist/client/assets/{TailView-C3rjOV7i.js → TailView-6bIrgdxN.js} +2 -2
  121. package/dist/client/assets/Terminal-BI6km7H4.js +1 -0
  122. package/dist/client/assets/TerminalEmbedScreen-D4JOWwtm.js +1 -0
  123. package/dist/client/assets/{TextDocumentSurface-B29xZNlI.js → TextDocumentSurface-BcP9vvji.js} +1 -1
  124. package/dist/client/assets/{TmuxPeek-eVfqPB4m.js → TmuxPeek-IaWqCgyJ.js} +1 -1
  125. package/dist/client/assets/{VoicePermissionsPanel-DpInOlVq.js → VoicePermissionsPanel-C80iZxgy.js} +1 -1
  126. package/dist/client/assets/{WorkDetailScreen-DYwgGaJs.js → WorkDetailScreen-CweZ6fEd.js} +3 -3
  127. package/dist/client/assets/WorkFilesViewer-Dy_-06iI.js +1 -0
  128. package/dist/client/assets/{activity-DTqqWiyV.js → activity-DS0u0Itf.js} +1 -1
  129. package/dist/client/assets/{addon-fit-CcaylYTX.js → addon-fit-CN888B3D.js} +1 -1
  130. package/dist/client/assets/{addon-webgl-B37iuzOG.js → addon-webgl-CoAnanQS.js} +1 -1
  131. package/dist/client/assets/{agent-essentials-DbbJm3ne.js → agent-essentials-CuK4G_zS.js} +1 -1
  132. package/dist/client/assets/agent-identity-BxCsXnDp.js +1 -0
  133. package/dist/client/assets/{agent-lane-card-model-CSugZCdy.js → agent-lane-card-model-q4cwzLX4.js} +1 -1
  134. package/dist/client/assets/{agent-lane-detail-D5EIlX7_.js → agent-lane-detail-BNNm6FNu.js} +1 -1
  135. package/dist/client/assets/{agent-lane-preview-BhplDYGf.js → agent-lane-preview-C33Dwpn7.js} +1 -1
  136. package/dist/client/assets/{agent-lanes-DlqcEf0l.css → agent-lanes-BDNktFBZ.css} +1 -1
  137. package/dist/client/assets/{agent-lanes-model-BKOs_32K.js → agent-lanes-model-VYQ5a68i.js} +2 -2
  138. package/dist/client/assets/{api-BHHEUSS3.js → api-BkjHJfgJ.js} +1 -1
  139. package/dist/client/assets/api-h5zurxmi.js +1 -0
  140. package/dist/client/assets/{arc.es-BRPqOKIx.js → arc.es-BET9ev6q.js} +1 -1
  141. package/dist/client/assets/arrow-down-DxxPnPwh.js +1 -0
  142. package/dist/client/assets/{arrow-left-B0CdJdAC.js → arrow-left-CXDkJuCg.js} +1 -1
  143. package/dist/client/assets/{arrow-up-right-CilNLf4t.js → arrow-up-right-Bj8RjSqW.js} +1 -1
  144. package/dist/client/assets/{bot-Ba3gcRVa.js → bot-BSGSicKC.js} +1 -1
  145. package/dist/client/assets/broker-display-pp33bLsu.js +2 -0
  146. package/dist/client/assets/{cache-BO2Bd_LV.js → cache-Dr0why2k.js} +1 -1
  147. package/dist/client/assets/{check-BdovFDz8.js → check-BfA0T8UD.js} +1 -1
  148. package/dist/client/assets/{chevron-down-Jh540uf3.js → chevron-down-BVg09D6U.js} +1 -1
  149. package/dist/client/assets/{chevron-right-CV7sEVBS.js → chevron-right-CaEwYkxE.js} +1 -1
  150. package/dist/client/assets/{chunk-HRAB3GC3-BYQZ1LOn.js → chunk-HRAB3GC3-HhKwnZCi.js} +1 -1
  151. package/dist/client/assets/chunk-JTPDIGGW-DX2eTIQ_.js +46 -0
  152. package/dist/client/assets/chunk-T65CQEWV-D-bOfuCH.js +1 -0
  153. package/dist/client/assets/chunk-YOZR3KYS-oS9dlQCI.js +2 -0
  154. package/dist/client/assets/{clock-DpfYdWcr.js → clock-C3TUL7D7.js} +1 -1
  155. package/dist/client/assets/{code-xml-CPzpZkhu.js → code-xml-Dbvjk9Kw.js} +1 -1
  156. package/dist/client/assets/collapsed-strip-Dz-of2SM.css +1 -0
  157. package/dist/client/assets/content-BQuEedeL.js +1 -0
  158. package/dist/client/assets/content-BUae-L_N.js +1 -0
  159. package/dist/client/assets/content-BfG98J1k.js +1 -0
  160. package/dist/client/assets/content-BkVTfkAC.js +1 -0
  161. package/dist/client/assets/content-BsNMos_d.js +1 -0
  162. package/dist/client/assets/content-C2TZOKSE.js +1 -0
  163. package/dist/client/assets/content-CCn98eSk.js +1 -0
  164. package/dist/client/assets/content-CJuH5cDP.js +1 -0
  165. package/dist/client/assets/content-CYnPp9yo.js +1 -0
  166. package/dist/client/assets/content-CcrUhm4P.js +1 -0
  167. package/dist/client/assets/content-CiOMtgQc.js +1 -0
  168. package/dist/client/assets/content-CxuVONeQ.js +1 -0
  169. package/dist/client/assets/content-Dmq9n1_L.js +1 -0
  170. package/dist/client/assets/content-DskHP2NI.js +1 -0
  171. package/dist/client/assets/content-DvvzL2HK.js +1 -0
  172. package/dist/client/assets/content-snCAUbwv.js +1 -0
  173. package/dist/client/assets/{conversation-icons-bHIIZ9z3.js → conversation-icons-DmC_Ak3z.js} +1 -1
  174. package/dist/client/assets/conversation-model-CHwHZNw-.js +1 -0
  175. package/dist/client/assets/conversation-motion-features-DPiGTO21.js +1 -0
  176. package/dist/client/assets/{copy-DQAM0eSY.js → copy-C79v_7D-.js} +1 -1
  177. package/dist/client/assets/{createLucideIcon-Da0lq809.js → createLucideIcon-DCq_3fQn.js} +1 -1
  178. package/dist/client/assets/ctx-panel-B4s49N9e.css +1 -0
  179. package/dist/client/assets/discover-IEnbrH8_.js +2 -0
  180. package/dist/client/assets/embed-entry-XUPb-AzL.js +2 -0
  181. package/dist/client/assets/{external-link-BheHazeW.js → external-link-Dd8xaveL.js} +1 -1
  182. package/dist/client/assets/{eye-B908WSFH.js → eye-DkU59kfl.js} +1 -1
  183. package/dist/client/assets/{file-text-BGVkHS4_.js → file-text-BITQqGtF.js} +1 -1
  184. package/dist/client/assets/gestures-B5rLNRpi.js +1 -0
  185. package/dist/client/assets/home-moving-signal-Bs635mVw.js +1 -0
  186. package/dist/client/assets/home-moving-signal-CAa0V91u.css +1 -0
  187. package/dist/client/assets/home-now-card-VxlLjg1A.js +1 -0
  188. package/dist/client/assets/{home-now-card-nano-iwd10r9G.js → home-now-card-nano-C06GMiwD.js} +1 -1
  189. package/dist/client/assets/hooks-BWiLxTw1.js +2 -0
  190. package/dist/client/assets/index-9as_JTUs.css +1 -0
  191. package/dist/client/assets/index-BTj2MguM.js +1 -0
  192. package/dist/client/assets/index-BZovGpDk.js +10 -0
  193. package/dist/client/assets/index-CvF09yvf.css +1 -0
  194. package/dist/client/assets/index-DiiEQwdc.js +1 -0
  195. package/dist/client/assets/index-vbaJ8sin.js +1 -0
  196. package/dist/client/assets/inspector-panel-C96HcyK5.js +2 -0
  197. package/dist/client/assets/{keyboard-nav-feLCB3Zm.js → keyboard-nav-CHo_xmjw.js} +1 -1
  198. package/dist/client/assets/{lane-observe-vfyACHi0.js → lane-observe-BA3g9aVd.js} +1 -1
  199. package/dist/client/assets/{lane-roster-store-BAmj273z.js → lane-roster-store-B6ybJlHJ.js} +1 -1
  200. package/dist/client/assets/left-Bk3XnxPD.css +1 -0
  201. package/dist/client/assets/left-BuJ0wJW1.js +2 -0
  202. package/dist/client/assets/left-C6Zj3cR4.js +1 -0
  203. package/dist/client/assets/left-CCoobxPS.css +1 -0
  204. package/dist/client/assets/left-COMAiMfB.js +2 -0
  205. package/dist/client/assets/left-Ce4WKYPK.js +1 -0
  206. package/dist/client/assets/left-DMJkmJOF.js +1 -0
  207. package/dist/client/assets/left-DrCbY6ja.js +1 -0
  208. package/dist/client/assets/left-agents-BuSyVNGE.js +1 -0
  209. package/dist/client/assets/left-default-DRHywOKX.js +1 -0
  210. package/dist/client/assets/left-l92tw5Kc.js +1 -0
  211. package/dist/client/assets/left-lanes-4-aUyyrV.js +1 -0
  212. package/dist/client/assets/left-mission-e849d_Td.js +1 -0
  213. package/dist/client/assets/left-plan-MchYwAB_.js +2 -0
  214. package/dist/client/assets/library-DygjpA6u.js +1 -0
  215. package/dist/client/assets/{loader-circle-Be0T8xv2.js → loader-circle-B-l2Wj3-.js} +1 -1
  216. package/dist/client/assets/{local-agents-Q6KQ12B9.js → local-agents-Wof5knTJ.js} +1 -1
  217. package/dist/client/assets/{mentions-KNASbAjG.js → mentions-BjXfeF7t.js} +1 -1
  218. package/dist/client/assets/{mesh-ops-C-i8OMiM.js → mesh-ops-C1gq8zKf.js} +1 -1
  219. package/dist/client/assets/{mesh-view-store-B0lqpw8M.js → mesh-view-store-B56D3f77.js} +1 -1
  220. package/dist/client/assets/{message-circle-2v9Udia0.js → message-circle-BwVx5X0q.js} +1 -1
  221. package/dist/client/assets/{message-markup-BP2nH9kQ.js → message-markup-DlVX-iuc.js} +1 -1
  222. package/dist/client/assets/{message-square-DURSOrUr.js → message-square-BnkG6tae.js} +1 -1
  223. package/dist/client/assets/mission-control-m3BTDQ9l.css +1 -0
  224. package/dist/client/assets/{mission-control-store-HeCy97KT.js → mission-control-store-CMgIVjLJ.js} +1 -1
  225. package/dist/client/assets/model-Co0zkMIc.js +1 -0
  226. package/dist/client/assets/{observe-DkAhvkfn.js → observe-DVHAcIrv.js} +1 -1
  227. package/dist/client/assets/{operator-attention-BqoWAlhp.js → operator-attention-BwSPeheT.js} +1 -1
  228. package/dist/client/assets/{page-status-CEP5pGf3.js → page-status-Bg2hd27j.js} +1 -1
  229. package/dist/client/assets/paperclip-DblaLD_N.js +1 -0
  230. package/dist/client/assets/plan-view-D56fneVF.css +1 -0
  231. package/dist/client/assets/{plus-ZReaTFF-.js → plus-BAI0t5g9.js} +1 -1
  232. package/dist/client/assets/profile-3Q4sUtvJ.js +1 -0
  233. package/dist/client/assets/projects-inbox-Da2hYEn6.js +1 -0
  234. package/dist/client/assets/{radio-BC9TO5Pl.js → radio-BGtkyCG9.js} +1 -1
  235. package/dist/client/assets/{refresh-cw-C4E58VJK.js → refresh-cw-DtF8xPqX.js} +1 -1
  236. package/dist/client/assets/resolve-panes-D4tlKNCT.js +1 -0
  237. package/dist/client/assets/resolve-sidebar-context-B27lj3Ci.js +1 -0
  238. package/dist/client/assets/right-B8qg3JdB.js +1 -0
  239. package/dist/client/assets/{right-BarpRgcv.js → right-BU_W1kSH.js} +1 -1
  240. package/dist/client/assets/right-BlR7h0US.js +1 -0
  241. package/dist/client/assets/right-BwgwTGGd.js +1 -0
  242. package/dist/client/assets/right-ByptvkVX.js +1 -0
  243. package/dist/client/assets/right-CUP-NIDG.js +1 -0
  244. package/dist/client/assets/right-Ch_jrNe2.js +1 -0
  245. package/dist/client/assets/right-Dd2DscRz.js +1 -0
  246. package/dist/client/assets/right-DmVHd8Xj.js +1 -0
  247. package/dist/client/assets/{right-CIzaNH58.js → right-c4PAdFYZ.js} +1 -1
  248. package/dist/client/assets/{rocket-BahfIwFz.js → rocket-BWh18pt_.js} +1 -1
  249. package/dist/client/assets/router-63XV_E7f.js +1 -0
  250. package/dist/client/assets/{text-B2UZi3l9.js → runtime-picker-BXKJbLot.js} +1 -1
  251. package/dist/client/assets/runtime-picker-vhm0gtLs.css +1 -0
  252. package/dist/client/assets/{scope-views-CmG2X_S0.js → scope-views-Dm2_-NPi.js} +1 -1
  253. package/dist/client/assets/scout-voice-D8Q5sZOL.js +1 -0
  254. package/dist/client/assets/{scoutbot-D4vuKzOL.js → scoutbot-BTIErYHo.js} +2 -2
  255. package/dist/client/assets/{scroll-text-uulNqrf7.js → scroll-text-DZb3mmYo.js} +1 -1
  256. package/dist/client/assets/{search-HmdKXdtR.js → search-1QMVOxF3.js} +1 -1
  257. package/dist/client/assets/secondaryNavConfig-c0cz3MkJ.js +1 -0
  258. package/dist/client/assets/{selection-bridge-n4wNTm1B.js → selection-bridge-O9C4kGfF.js} +1 -1
  259. package/dist/client/assets/{send-horizontal-DOjHkZCD.js → send-horizontal-DbyEkGql.js} +1 -1
  260. package/dist/client/assets/{server-CX-xQjJA.js → server-Bncn9S7r.js} +1 -1
  261. package/dist/client/assets/{session-catalog-b7B1Sof1.js → session-catalog-DC6BlBBC.js} +1 -1
  262. package/dist/client/assets/{session-table-Djain1Qr.js → session-table-BUPq9Viy.js} +1 -1
  263. package/dist/client/assets/{sliders-horizontal-D2O6QiDN.js → sliders-horizontal-CMe8Bay1.js} +1 -1
  264. package/dist/client/assets/{sparkles-CgTby-ap.js → sparkles-_7cTZsIH.js} +1 -1
  265. package/dist/client/assets/{sse-QSbhyq9A.js → sse-Bb0EOcU9.js} +1 -1
  266. package/dist/client/assets/system-surfaces-redesign-B7GQhfpw.css +1 -0
  267. package/dist/client/assets/{tail-display-DcliDVkW.js → tail-display-BRcJltQa.js} +1 -1
  268. package/dist/client/assets/{tail-events-B7BrDaFi.js → tail-events-C12pfUax.js} +1 -1
  269. package/dist/client/assets/{terminal-relay-C2TUIuh1.js → terminal-relay-BgfVJXIL.js} +1 -1
  270. package/dist/client/assets/{terminal-sessions-D4dHTRkt.js → terminal-sessions-AmSgHklm.js} +1 -1
  271. package/dist/client/assets/{terminal-takeover-BArLfNtd.js → terminal-takeover--05EYhJm.js} +1 -1
  272. package/dist/client/assets/{terminal-DNZTCr6a.js → terminal-xGf_F3y7.js} +1 -1
  273. package/dist/client/assets/text-DsBWV_4k.js +1 -0
  274. package/dist/client/assets/{use-conversation-list-htp0Ui63.js → use-conversation-list-DWX02INv.js} +1 -1
  275. package/dist/client/assets/{use-fleet-active-asks-BhuTn5mV.js → use-fleet-active-asks-Cnwa4hTK.js} +1 -1
  276. package/dist/client/assets/{use-mesh-ops-items-CD-qsvNX.js → use-mesh-ops-items-BRFm37oY.js} +1 -1
  277. package/dist/client/assets/use-reduced-motion-C8cWvIZ3.js +1 -0
  278. package/dist/client/assets/use-scout-dev-flags-FkMreOOb.js +1 -0
  279. package/dist/client/assets/{useAgentHoverCard-BIrm8esH.js → useAgentHoverCard-DvPZSJK3.js} +1 -1
  280. package/dist/client/assets/useContentSecondaryNav-CNlrhvvx.js +1 -0
  281. package/dist/client/assets/{usePierreRuntime-CVTMzChM.js → usePierreRuntime-C8WJ0X3F.js} +1 -1
  282. package/dist/client/assets/{wrench-DwFKomxg.js → wrench-_tHBGTop.js} +1 -1
  283. package/dist/client/assets/{x-DuzAbpk5.js → x-CrGUKNRv.js} +1 -1
  284. package/dist/client/assets/{xterm-xQGYNyB-.js → xterm-Ks-VlLTq.js} +1 -1
  285. package/dist/client/index.html +2 -2
  286. package/dist/main.mjs +38 -169
  287. package/dist/node/main.mjs +240 -272
  288. package/dist/pairing-runtime-controller.mjs +476 -394
  289. package/dist/runtime/base-daemon.mjs +121 -49
  290. package/dist/runtime/broker-daemon.mjs +60 -171
  291. package/dist/runtime/broker-process-manager.mjs +0 -6
  292. package/dist/runtime/mesh-discover.mjs +0 -6
  293. package/dist/scout-control-plane-web.mjs +477 -672
  294. package/dist/scout-web-server.mjs +477 -672
  295. package/package.json +7 -6
  296. package/dist/client/assets/ActivityScreen-DRHTQIxu.js +0 -1
  297. package/dist/client/assets/AgentAvatar-CQqJcwOQ.js +0 -1
  298. package/dist/client/assets/AgentAvatar-CUZZARWG.css +0 -1
  299. package/dist/client/assets/AgentConfigurationScreen-C3OI6JmZ.js +0 -1
  300. package/dist/client/assets/AgentDefinitionsWorkspace-D0LDEqfl.js +0 -1
  301. package/dist/client/assets/AgentFloorView-CoGh2q5f.js +0 -1
  302. package/dist/client/assets/AgentInfoScreen-5ybfIL9p.js +0 -1
  303. package/dist/client/assets/AgentLaneDetailSheet-BD8B51ka.js +0 -4
  304. package/dist/client/assets/AgentLanesEmbedScreen-FRTVASPw.js +0 -1
  305. package/dist/client/assets/AgentLanesView-Bm85ittm.js +0 -2
  306. package/dist/client/assets/AgentSessions-C_tAfGN2.js +0 -6
  307. package/dist/client/assets/AgentsConsole-DsHWsaOJ.js +0 -1
  308. package/dist/client/assets/AgentsScreen-Bod6AHlA.js +0 -1
  309. package/dist/client/assets/AgentsSubnav-CsvYzzQ-.js +0 -1
  310. package/dist/client/assets/AstronautSuit-C05Ezxl9.js +0 -1
  311. package/dist/client/assets/BackToPicker-CXsbxbHM.js +0 -1
  312. package/dist/client/assets/BriefingDetailScreen-Uvnk3t0v.js +0 -1
  313. package/dist/client/assets/BrokerScreen-LZ3T7hGG.js +0 -5
  314. package/dist/client/assets/Canvas-BO9mx5_P.js +0 -1
  315. package/dist/client/assets/ChatCollapsedStrip-CtLPTLTY.js +0 -1
  316. package/dist/client/assets/ConversationComposer-DPWu3HvK.js +0 -1
  317. package/dist/client/assets/ConversationFeedRows-MhcPfxUr.js +0 -1
  318. package/dist/client/assets/ConversationHeader-Ce7TENb9.js +0 -1
  319. package/dist/client/assets/ConversationPanels-D-b5SLO-.js +0 -6
  320. package/dist/client/assets/ConversationScreen-C5HnXd5w.css +0 -1
  321. package/dist/client/assets/ConversationScreen-D77SoLos.js +0 -1
  322. package/dist/client/assets/ConversationStatus-lIvSKRic.js +0 -1
  323. package/dist/client/assets/CrewWorkspaces-CJhBKVoZ.css +0 -1
  324. package/dist/client/assets/CrewWorkspaces-CdojnRMG.js +0 -1
  325. package/dist/client/assets/DocumentFocusViewer-CetjnYut.js +0 -1
  326. package/dist/client/assets/FlightObserveScreen-sqvt7HUO.js +0 -1
  327. package/dist/client/assets/HarnessesScreen-CGhRsqD5.js +0 -1
  328. package/dist/client/assets/HomeHero-7JwycwFY.css +0 -1
  329. package/dist/client/assets/HomeHero-DdxTQ-6a.js +0 -1
  330. package/dist/client/assets/HostAdvisorView-BAUi5ZxX.js +0 -1
  331. package/dist/client/assets/KnowledgeSearchScreen-CRei9pyl.js +0 -1
  332. package/dist/client/assets/LaneTraceDetailSheet-CFsCvKa3.js +0 -1
  333. package/dist/client/assets/MeshScreen-dxNxRtKm.js +0 -1
  334. package/dist/client/assets/MessagesScreen-CR5v-WIE.js +0 -1
  335. package/dist/client/assets/MissionControlView-BGj1qnI2.js +0 -1
  336. package/dist/client/assets/MissionFocusOverlay-hWi6y87j.js +0 -1
  337. package/dist/client/assets/MissionLeftAgentRow-BSRRiiig.js +0 -1
  338. package/dist/client/assets/MissionLogPane-bbG_pM9B.js +0 -1
  339. package/dist/client/assets/NewChatComposer-BPsg8shF.js +0 -19
  340. package/dist/client/assets/ObserveEmbedScreen-Be87Chod.js +0 -2
  341. package/dist/client/assets/ObserveTextFlow-CKYltTPJ.js +0 -2
  342. package/dist/client/assets/ObservedTopologyPanel-CfHYu-4Z.js +0 -2
  343. package/dist/client/assets/OpenScoutAppShell-DPeP1vtK.js +0 -88
  344. package/dist/client/assets/OpsAgentsView-dEtw9yt-.js +0 -1
  345. package/dist/client/assets/OpsScreen-QXRJY8Vf.js +0 -1
  346. package/dist/client/assets/OpsSubnav-BK9Fj3gU.js +0 -1
  347. package/dist/client/assets/ProjectAgentProfile-BjykZ2Xd.js +0 -1
  348. package/dist/client/assets/ProjectAgentProfileHero-Bc0g8rhW.js +0 -1
  349. package/dist/client/assets/ProjectsInbox--ZIqo-IE.js +0 -2
  350. package/dist/client/assets/ProjectsRail-CzS0qTCI.js +0 -1
  351. package/dist/client/assets/ProjectsScreen-0gx7f30h.js +0 -1
  352. package/dist/client/assets/ProjectsThreadAside-BsQRFbdy.js +0 -1
  353. package/dist/client/assets/Provider-Cd-QZltN.js +0 -1
  354. package/dist/client/assets/RailRow-B0sRaJc6.css +0 -1
  355. package/dist/client/assets/RailRow-BY6fxePa.js +0 -1
  356. package/dist/client/assets/RawSessionsTable-CbopOF34.js +0 -1
  357. package/dist/client/assets/RealtimeVoiceScreen-CU4uXz4C.js +0 -9
  358. package/dist/client/assets/RepoDiffViewer-CiTOWK_Z.js +0 -7
  359. package/dist/client/assets/RepoDiffViewerLazy-BU3V7Kwq.js +0 -2
  360. package/dist/client/assets/ScoutDeckSurface-BncYKicb.js +0 -1
  361. package/dist/client/assets/SessionRefScreen-UVNVrwAf.js +0 -1
  362. package/dist/client/assets/SessionsScreen-KeDb5gz4.js +0 -1
  363. package/dist/client/assets/SettingsDrawer-CWdj0VvN.js +0 -3
  364. package/dist/client/assets/SettingsDrawer-J-8x1eII.css +0 -1
  365. package/dist/client/assets/SettingsScreen-C7zJgZzj.js +0 -1
  366. package/dist/client/assets/Terminal-CMQFmHnn.js +0 -1
  367. package/dist/client/assets/TerminalEmbedScreen-GvpoGERN.js +0 -1
  368. package/dist/client/assets/TerminalRelay-CIHlLVf1.js +0 -46
  369. package/dist/client/assets/WorkFilesViewer-C7H5fXaZ.js +0 -1
  370. package/dist/client/assets/agent-autocomplete-cOPLtuhM.js +0 -2
  371. package/dist/client/assets/agent-identity-CIMT7oV6.js +0 -1
  372. package/dist/client/assets/agent-specialization-D3-sqwhU.js +0 -1
  373. package/dist/client/assets/api-DEHEgJ9m.js +0 -1
  374. package/dist/client/assets/archive-DPMdoW_D.js +0 -1
  375. package/dist/client/assets/arrow-right-YRBoTTyf.js +0 -1
  376. package/dist/client/assets/broker-display-Q75fupqG.js +0 -2
  377. package/dist/client/assets/collapsed-strip-raJWthAH.css +0 -1
  378. package/dist/client/assets/compass-D5Io6BIV.js +0 -1
  379. package/dist/client/assets/content-3b_jmxEx.js +0 -1
  380. package/dist/client/assets/content-B-i0XY-t.js +0 -1
  381. package/dist/client/assets/content-BD-DNFmb.js +0 -1
  382. package/dist/client/assets/content-BGeo5tgd.js +0 -1
  383. package/dist/client/assets/content-BMvXPLiQ.js +0 -1
  384. package/dist/client/assets/content-BWTbfMDg.js +0 -1
  385. package/dist/client/assets/content-BwCmeUmF.js +0 -1
  386. package/dist/client/assets/content-C1K3NcZa.js +0 -1
  387. package/dist/client/assets/content-C34J5_Af.js +0 -1
  388. package/dist/client/assets/content-CGRtIS2m.js +0 -1
  389. package/dist/client/assets/content-CIJo_-JS.js +0 -1
  390. package/dist/client/assets/content-CvqIqVAV.js +0 -1
  391. package/dist/client/assets/content-DRnwm-Vu.js +0 -1
  392. package/dist/client/assets/content-Dh39SSvP.js +0 -1
  393. package/dist/client/assets/content-DoypqDj5.js +0 -1
  394. package/dist/client/assets/content-n3mvc6NQ.js +0 -1
  395. package/dist/client/assets/conversation-model-CIzM7aXT.js +0 -1
  396. package/dist/client/assets/conversation-motion-features-CrP5K-dk.js +0 -1
  397. package/dist/client/assets/cpu-CtQc0Z9D.js +0 -1
  398. package/dist/client/assets/credentials-qwds23lv.js +0 -1
  399. package/dist/client/assets/ctx-panel-D_HJ3nhb.css +0 -1
  400. package/dist/client/assets/discover-DdkMhTAV.js +0 -2
  401. package/dist/client/assets/embed-entry-DoSM1GZB.js +0 -2
  402. package/dist/client/assets/file-code-corner-C5Pc6znt.js +0 -1
  403. package/dist/client/assets/gauge-sc_gb5Zw.js +0 -1
  404. package/dist/client/assets/gestures-AzPBSf20.js +0 -1
  405. package/dist/client/assets/git-branch-CdJU49Af.js +0 -1
  406. package/dist/client/assets/home-moving-signal-CZo2bYBi.js +0 -1
  407. package/dist/client/assets/home-moving-signal-DMguaRWR.css +0 -1
  408. package/dist/client/assets/home-now-card-DgxfZHcR.js +0 -1
  409. package/dist/client/assets/hooks-CeCCO6Yg.js +0 -2
  410. package/dist/client/assets/host-advisor-B2Fqs5Dd.css +0 -1
  411. package/dist/client/assets/index-BIiI9gfa.js +0 -1
  412. package/dist/client/assets/index-CD2foMB8.js +0 -1
  413. package/dist/client/assets/index-DReHD_4U.js +0 -1
  414. package/dist/client/assets/index-DzlEgstl.css +0 -1
  415. package/dist/client/assets/index-NRbRrZw-.js +0 -10
  416. package/dist/client/assets/index-wLwc74Pu.css +0 -1
  417. package/dist/client/assets/inspector-panel-CBf8pW7s.js +0 -2
  418. package/dist/client/assets/layers-D9fblkql.js +0 -1
  419. package/dist/client/assets/layout-grid-Vd1chalc.js +0 -1
  420. package/dist/client/assets/left-41_3QKk1.js +0 -1
  421. package/dist/client/assets/left-B3ofA1Pr.js +0 -2
  422. package/dist/client/assets/left-BWBZQhxQ.js +0 -1
  423. package/dist/client/assets/left-BhA6essi.js +0 -1
  424. package/dist/client/assets/left-BmTKCv4f.js +0 -1
  425. package/dist/client/assets/left-CCGR6tIF.js +0 -2
  426. package/dist/client/assets/left-DH44V4I_.css +0 -1
  427. package/dist/client/assets/left-Dfwzkwh_.js +0 -1
  428. package/dist/client/assets/left-R2OOE7VG.css +0 -1
  429. package/dist/client/assets/left-advisor-yrzW1Kwz.js +0 -1
  430. package/dist/client/assets/left-agents-Bgahk0FF.js +0 -1
  431. package/dist/client/assets/left-default-CtkfAquc.js +0 -1
  432. package/dist/client/assets/left-lanes-CpujaVN3.js +0 -1
  433. package/dist/client/assets/left-mission-Bbd-fW6W.js +0 -1
  434. package/dist/client/assets/library-Dx14WNGd.js +0 -1
  435. package/dist/client/assets/mission-control-CnU7dNt1.css +0 -1
  436. package/dist/client/assets/persistent-state-Bm_0TmZL.js +0 -1
  437. package/dist/client/assets/profile-Y0X7HZHc.js +0 -1
  438. package/dist/client/assets/projects-inbox-Cbfj4Hx7.js +0 -1
  439. package/dist/client/assets/provider-Bq0ScH3v.js +0 -1
  440. package/dist/client/assets/proxy-DtC2iXnT.js +0 -1
  441. package/dist/client/assets/resolve-panes-BI3WdDS-.js +0 -1
  442. package/dist/client/assets/resolve-sidebar-context-_g0pIxOr.js +0 -1
  443. package/dist/client/assets/right-BA0F8fPI.js +0 -1
  444. package/dist/client/assets/right-C4GXB45w.js +0 -1
  445. package/dist/client/assets/right-CXetlD8X.js +0 -1
  446. package/dist/client/assets/right-CnRcQS_I.js +0 -1
  447. package/dist/client/assets/right-D2_rmbAH.js +0 -1
  448. package/dist/client/assets/right-Dqp--KwX.js +0 -1
  449. package/dist/client/assets/right-HJJzRuGD.js +0 -1
  450. package/dist/client/assets/right-WCMb8YXJ.js +0 -1
  451. package/dist/client/assets/router-Bx1tiwVe.js +0 -1
  452. package/dist/client/assets/scout-voice-BT3gYDhU.js +0 -1
  453. package/dist/client/assets/scoutbot-markdown-DIhLsYxz.js +0 -6
  454. package/dist/client/assets/secondaryNavConfig-BVQiyAXu.js +0 -1
  455. package/dist/client/assets/settings-BpKRzxOD.js +0 -1
  456. package/dist/client/assets/system-surfaces-redesign-QVXNeGYw.css +0 -1
  457. package/dist/client/assets/text-rLpBg4_z.css +0 -1
  458. package/dist/client/assets/use-reduced-motion-0fAsybdo.js +0 -1
  459. package/dist/client/assets/use-scout-dev-flags-DV_I6URU.js +0 -1
  460. package/dist/client/assets/useContentSecondaryNav-4atpGgFw.js +0 -1
  461. package/dist/client/assets/usePersistentState-InmPXIN4.js +0 -1
  462. package/dist/client/assets/zap-CocRNtyr.js +0 -1
  463. package/dist/client/crew/brik-bust.webp +0 -0
  464. package/dist/client/crew/brik-chip-id.webp +0 -0
  465. package/dist/client/crew/lulu-bust.webp +0 -0
  466. package/dist/client/crew/milo-bust.webp +0 -0
  467. package/dist/client/crew/milo-chip-id.webp +0 -0
  468. package/dist/client/crew/nori-bust.webp +0 -0
  469. package/dist/client/crew/sheets/eye-plate-v1/blink-half.webp +0 -0
  470. package/dist/client/crew/sheets/eye-plate-v1/blink-shut.webp +0 -0
  471. package/dist/client/crew/sheets/eye-plate-v1/look-left.webp +0 -0
  472. package/dist/client/crew/sheets/eye-plate-v1/look-right.webp +0 -0
  473. package/dist/client/crew/sheets/eye-plate-v1/look-up.webp +0 -0
  474. package/dist/client/crew/sheets/eye-plate-v1/rest.webp +0 -0
  475. package/dist/client/crew/sheets/sprout/blink-half.webp +0 -0
  476. package/dist/client/crew/sheets/sprout/blink-shut.webp +0 -0
  477. package/dist/client/crew/sheets/sprout/look-left.webp +0 -0
  478. package/dist/client/crew/sheets/sprout/look-right.webp +0 -0
  479. package/dist/client/crew/sheets/sprout/look-up.webp +0 -0
  480. package/dist/client/crew/sprout-bust.webp +0 -0
  481. package/dist/client/crew/sprout-chip-id.webp +0 -0
  482. package/dist/client/crew/vex-bust.webp +0 -0
  483. package/dist/client/crew/vex-chip-id.webp +0 -0
  484. package/dist/client/crew/wrench-bust.webp +0 -0
  485. package/dist/client/crew/wrench-chip-id.webp +0 -0
  486. /package/dist/client/assets/{DocumentFocusViewer-BSC_JwVE.css → document-focus-viewer-BSC_JwVE.css} +0 -0
@@ -1,88 +0,0 @@
1
- import{i as l6,N as Qa,r as c,g as fx,j as h,F as ec}from"./index-NRbRrZw-.js";import{u as It}from"./usePersistentState-InmPXIN4.js";import{a as Qs,u as u6,T as d6,b as f6,H as p6}from"./TerminalRelay-CIHlLVf1.js";import{C as m6}from"./Canvas-BO9mx5_P.js";import{r as jt}from"./index-CD2foMB8.js";import{b as h6,a as Oo,F as g6}from"./provider-Bq0ScH3v.js";import{at as v6,u as px,T as b6,d as mx,J as y6,L as hx,M as w6,N as x6,O as C6}from"./router-Bx1tiwVe.js";import{u as gx,i as vx,d as k6,e as E6,c as S6,f as $6}from"./keyboard-nav-feLCB3Zm.js";import{i as pa,u as bx}from"./use-scout-dev-flags-DV_I6URU.js";import{X as Ip}from"./x-DuzAbpk5.js";import{c as ei}from"./createLucideIcon-Da0lq809.js";import{s as O6,S as L6,d as j6}from"./scope-views-CmG2X_S0.js";import{p as yx,l as R6,u as Sn,c as wx,m as P6,e as M6,n as T6}from"./Provider-Cd-QZltN.js";import"./index-BWHgHrtv.js";import"./AgentDetailCard-2DZQahiN.js";/* empty css *//* empty css */import"./NewChatComposer-BPsg8shF.js";import{A as xx}from"./AgentAvatar-CQqJcwOQ.js";/* empty css */import"./BackToPicker-CXsbxbHM.js";import"./AgentLiveActions-BmXDRxER.js";import"./ObservedTopologyPanel-CfHYu-4Z.js";/* empty css */import{e as I6,f as dr,P as ma,g as Cx,h as kx,s as A6,i as _6}from"./secondaryNavConfig-BVQiyAXu.js";/* empty css */import"./text-B2UZi3l9.js";import"./ConversationScreen-D77SoLos.js";/* empty css */import"./SessionObserve-pbozyqVv.js";/* empty css *//* empty css *//* empty css */import{a as N6}from"./ProjectsRail-CzS0qTCI.js";import"./ProjectsInbox--ZIqo-IE.js";import"./projects-inbox-Cbfj4Hx7.js";/* empty css */import"./RailRow-BY6fxePa.js";/* empty css */import"./cache-BO2Bd_LV.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./left-B3ofA1Pr.js";import"./content-C34J5_Af.js";import{u as D6}from"./mesh-view-store-B0lqpw8M.js";import"./left-Dfwzkwh_.js";/* empty css */import"./mesh-ops-C-i8OMiM.js";import"./left-mission-Bbd-fW6W.js";import"./mission-control-store-HeCy97KT.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./SlidePanel-BLrLF9dt.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./TailView-C3rjOV7i.js";import"./RepoDiffViewerLazy-BU3V7Kwq.js";/* empty css *//* empty css *//* empty css */import"./SettingsDrawer-CWdj0VvN.js";import"./left-BhA6essi.js";/* empty css */import{a as V6,b as z6,M as F6}from"./DocumentFocusViewer-CetjnYut.js";import{P as B6,b as H6,c as W6,a as Z6}from"./agent-autocomplete-cOPLtuhM.js";import"./credentials-qwds23lv.js";import{N as Cs,f as U6,g as G6,h as Ui,i as K6,j as Y6,k as q6}from"./hooks-CeCCO6Yg.js";import{a as yf}from"./api-DEHEgJ9m.js";import{o as X6,i as J6}from"./surface-activity-B1rgWB1i.js";import{L as Q6}from"./loader-circle-Be0T8xv2.js";import{P as e3}from"./plus-ZReaTFF-.js";import{resolveSidebarContext as t3}from"./resolve-sidebar-context-_g0pIxOr.js";import{d as Ap,n as n3,i as Ex}from"./colors-BtO5_zlx.js";import{b as r3}from"./mesh-buckets-CfAukILK.js";import{u as o3}from"./sse-QSbhyq9A.js";import{f as s3,b as i3,d as a3}from"./terminal-sessions-D4dHTRkt.js";import{o as Oh}from"./openAgent-Dbv5wfuL.js";import{C as vr,a as c3,b as Pn,c as _p,d as l3}from"./ChatCollapsedStrip-CtLPTLTY.js";import{U as Sx}from"./CrewWorkspaces-CdojnRMG.js";import{L as u3}from"./layout-grid-Vd1chalc.js";import{A as $x}from"./activity-DTqqWiyV.js";import{OpsSubnav as d3}from"./OpsSubnav-BK9Fj3gU.js";import{A as Lh}from"./arrow-left-B0CdJdAC.js";import{A as f3}from"./arrow-right-YRBoTTyf.js";import{S as Ox}from"./search-HmdKXdtR.js";import{M as jh}from"./message-square-DURSOrUr.js";import{C as p3}from"./chevron-down-Jh540uf3.js";import{C as m3}from"./chevron-right-CV7sEVBS.js";import{T as h3}from"./terminal-DNZTCr6a.js";import{S as g3}from"./sparkles-CgTby-ap.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./scoutbot-D4vuKzOL.js";import"./TextDocumentSurface-B29xZNlI.js";import"./file-text-BGVkHS4_.js";import"./code-xml-CPzpZkhu.js";import"./scout-voice-BT3gYDhU.js";import"./fx-z37u1o2z.js";import"./chunk-HRAB3GC3-BYQZ1LOn.js";import"./time-Dhsh_2EG.js";import"./conversation-model-CIzM7aXT.js";import"./HarnessMark-CEzmPFHC.js";import"./NewChatOrigin-CCiPg_WR.js";import"./SpriteAvatar-vpHO-rXs.js";import"./agent-identity-CIMT7oV6.js";import"./terminal-takeover-BArLfNtd.js";import"./openContent-C6XO6kr5.js";import"./eye-B908WSFH.js";import"./compass-D5Io6BIV.js";import"./settings-BpKRzxOD.js";import"./git-branch-CdJU49Af.js";import"./scroll-text-uulNqrf7.js";import"./voice-levels-Dcr3jglk.js";import"./ConversationComposer-DPWu3HvK.js";import"./zap-CocRNtyr.js";import"./message-markup-BP2nH9kQ.js";import"./mentions-KNASbAjG.js";import"./message-visibility-kJM8XcSG.js";import"./sessionRead-CvFz2RHv.js";import"./clipboard-e3fSpeo7.js";import"./types-B0PlfpKc.js";import"./ConversationHeader-Ce7TENb9.js";import"./AstronautSuit-C05Ezxl9.js";import"./ConversationFeedRows-MhcPfxUr.js";import"./ConversationPanels-D-b5SLO-.js";import"./tail-display-DcliDVkW.js";import"./lane-edit-display-C_Aujldz.js";import"./use-reduced-motion-0fAsybdo.js";import"./proxy-DtC2iXnT.js";import"./message-circle-2v9Udia0.js";import"./tail-events-B7BrDaFi.js";import"./ConversationStatus-lIvSKRic.js";import"./check-BdovFDz8.js";import"./bash-format-BRV5C6Gv.js";import"./lane-tool-detail-0WhMf4Vj.js";import"./LaneToolHoverCard-DCY-m0JK.js";import"./lane-observe-vfyACHi0.js";import"./lane-ask-display-B6iCAVcd.js";import"./ObserveTextFlow-CKYltTPJ.js";import"./SessionObserveEvidence-C54Xvbps.js";import"./wrench-DwFKomxg.js";import"./external-link-BheHazeW.js";import"./AddProjectForm-Dw2oyCcz.js";import"./project-overview-helpers-BQTc_Ous.js";import"./archive-DPMdoW_D.js";import"./ui-LM8pS8qE.js";import"./SessionRefScreen-UVNVrwAf.js";import"./api-BHHEUSS3.js";import"./arrow-up-right-CilNLf4t.js";import"./model-IGCUEsMy.js";import"./agents-project-model-UYiamtrU.js";import"./agent-specialization-D3-sqwhU.js";import"./cpu-CtQc0Z9D.js";import"./sliders-horizontal-D2O6QiDN.js";import"./operator-attention-BqoWAlhp.js";import"./HomeHero-DdxTQ-6a.js";import"./refresh-cw-C4E58VJK.js";import"./observe-DkAhvkfn.js";import"./persistent-state-Bm_0TmZL.js";import"./agent-lanes-model-BKOs_32K.js";import"./context-budget-DX_fwUs3.js";import"./home-moving-signal-CZo2bYBi.js";import"./home-live-action-BkqGLVRY.js";import"./file-code-corner-C5Pc6znt.js";import"./use-fleet-active-asks-BhuTn5mV.js";import"./MissionLeftAgentRow-BSRRiiig.js";import"./page-status-CEP5pGf3.js";import"./VoicePermissionsPanel-DpInOlVq.js";import"./copy-DQAM0eSY.js";import"./terminal-relay-C2TUIuh1.js";import"./session-table-Djain1Qr.js";import"./clock-DpfYdWcr.js";import"./layers-D9fblkql.js";import"./radio-BC9TO5Pl.js";import"./bot-Ba3gcRVa.js";import"./server-CX-xQjJA.js";import"./left-BWBZQhxQ.js";import"./left-CCGR6tIF.js";import"./conversation-prefs-DNre-Lcx.js";import"./use-conversation-list-htp0Ui63.js";import"./left-BmTKCv4f.js";import"./use-mesh-ops-items-CD-qsvNX.js";import"./left-41_3QKk1.js";import"./left-agents-Bgahk0FF.js";import"./left-default-CtkfAquc.js";import"./left-lanes-CpujaVN3.js";import"./lane-roster-store-BAmj273z.js";import"./left-advisor-yrzW1Kwz.js";import"./gauge-sc_gb5Zw.js";import"./MeshCanvasMinimap-D3mJ78CM.js";import"./SecondaryNav-CCQqTT3e.js";const v3=[["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"}]],b3=ei("bell",v3);const y3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],w3=ei("circle-question-mark",y3);const x3=[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528",key:"1jaruq"}]],C3=ei("flag",x3);const k3=[["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"}]],E3=ei("list-todo",k3);const S3=[["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"}]],$3=ei("pin-off",S3);var Lx="vercel.ai.error",O3=Symbol.for(Lx),Rh,Ph,_n=class jx extends(Ph=Error,Rh=O3,Ph){constructor({name:t,message:n,cause:r}){super(n),this[Rh]=!0,this.name=t,this.cause=r}static isInstance(t){return jx.hasMarker(t,Lx)}static hasMarker(t,n){const r=Symbol.for(n);return t!=null&&typeof t=="object"&&r in t&&typeof t[r]=="boolean"&&t[r]===!0}};function Rx(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var Px="AI_InvalidArgumentError",Mx=`vercel.ai.error.${Px}`,L3=Symbol.for(Mx),Mh,Th,j3=class extends(Th=_n,Mh=L3,Th){constructor({message:e,cause:t,argument:n}){super({name:Px,message:e,cause:t}),this[Mh]=!0,this.argument=n}static isInstance(e){return _n.hasMarker(e,Mx)}},Tx="AI_JSONParseError",Ix=`vercel.ai.error.${Tx}`,R3=Symbol.for(Ix),Ih,Ah,_h=class extends(Ah=_n,Ih=R3,Ah){constructor({text:e,cause:t}){super({name:Tx,message:`JSON parsing failed: Text: ${e}.
2
- Error message: ${Rx(t)}`,cause:t}),this[Ih]=!0,this.text=e}static isInstance(e){return _n.hasMarker(e,Ix)}},Ax="AI_TypeValidationError",_x=`vercel.ai.error.${Ax}`,P3=Symbol.for(_x),Nh,Dh,Lo=class wf extends(Dh=_n,Nh=P3,Dh){constructor({value:t,cause:n,context:r}){let o="Type validation failed";if(r?.field&&(o+=` for ${r.field}`),r?.entityName||r?.entityId){o+=" (";const s=[];r.entityName&&s.push(r.entityName),r.entityId&&s.push(`id: "${r.entityId}"`),o+=s.join(", "),o+=")"}super({name:Ax,message:`${o}: Value: ${JSON.stringify(t)}.
3
- Error message: ${Rx(n)}`,cause:n}),this[Nh]=!0,this.value=t,this.context=r}static isInstance(t){return _n.hasMarker(t,_x)}static wrap({value:t,cause:n,context:r}){var o,s,i;return wf.isInstance(n)&&n.value===t&&((o=n.context)==null?void 0:o.field)===r?.field&&((s=n.context)==null?void 0:s.entityName)===r?.entityName&&((i=n.context)==null?void 0:i.entityId)===r?.entityId?n:new wf({value:t,cause:n,context:r})}};function H(e,t,n){function r(a,u){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:u,constr:i,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,u);const l=i.prototype,d=Object.keys(l);for(let f=0;f<d.length;f++){const p=d[f];p in a||(a[p]=l[p].bind(a))}}const o=n?.Parent??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function i(a){var u;const l=n?.Parent?new s:this;r(l,a),(u=l._zod).deferred??(u.deferred=[]);for(const d of l._zod.deferred)d();return l}return Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:a=>n?.Parent&&a instanceof n.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}class xo extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Nx extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Dx={};function br(e){return Dx}function Vx(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function xf(e,t){return typeof t=="bigint"?t.toString():t}function tc(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Np(e){return e==null}function Dp(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function M3(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let o=(r.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(r)){const u=r.match(/\d?e-(\d?)/);u?.[1]&&(o=Number.parseInt(u[1]))}const s=n>o?n:o,i=Number.parseInt(e.toFixed(s).replace(".","")),a=Number.parseInt(t.toFixed(s).replace(".",""));return i%a/10**s}const Vh=Symbol("evaluating");function _e(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Vh)return r===void 0&&(r=Vh,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Qr(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Cr(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function zh(e){return JSON.stringify(e)}function T3(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const zx="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function As(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const I3=tc(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function jo(e){if(As(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(As(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Fx(e){return jo(e)?{...e}:Array.isArray(e)?[...e]:e}const A3=new Set(["string","number","symbol"]);function Ro(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function kr(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function be(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function _3(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const N3={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function D3(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=Cr(e._zod.def,{get shape(){const i={};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=n.shape[a])}return Qr(this,"shape",i),i},checks:[]});return kr(e,s)}function V3(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=Cr(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete i[a]}return Qr(this,"shape",i),i},checks:[]});return kr(e,s)}function z3(e,t){if(!jo(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const s=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(s,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=Cr(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return Qr(this,"shape",s),s}});return kr(e,o)}function F3(e,t){if(!jo(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Cr(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Qr(this,"shape",r),r}});return kr(e,n)}function B3(e,t){const n=Cr(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return Qr(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return kr(e,n)}function H3(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const i=Cr(t._zod.def,{get shape(){const a=t._zod.def.shape,u={...a};if(n)for(const l in n){if(!(l in a))throw new Error(`Unrecognized key: "${l}"`);n[l]&&(u[l]=e?new e({type:"optional",innerType:a[l]}):a[l])}else for(const l in a)u[l]=e?new e({type:"optional",innerType:a[l]}):a[l];return Qr(this,"shape",u),u},checks:[]});return kr(t,i)}function W3(e,t,n){const r=Cr(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const i in n){if(!(i in s))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(s[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(const i in o)s[i]=new e({type:"nonoptional",innerType:o[i]});return Qr(this,"shape",s),s}});return kr(t,r)}function po(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function mo(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function xi(e){return typeof e=="string"?e:e?.message}function yr(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const o=xi(e.inst?._zod.def?.error?.(e))??xi(t?.error?.(e))??xi(n.customError?.(e))??xi(n.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Vp(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function _s(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Bx=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,xf,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Hx=H("$ZodError",Bx),Wx=H("$ZodError",Bx,{Parent:Error});function Z3(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function U3(e,t=n=>n.message){const n={_errors:[]},r=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(i=>r({issues:i}));else if(s.code==="invalid_key")r({issues:s.issues});else if(s.code==="invalid_element")r({issues:s.issues});else if(s.path.length===0)n._errors.push(t(s));else{let i=n,a=0;for(;a<s.path.length;){const u=s.path[a];a===s.path.length-1?(i[u]=i[u]||{_errors:[]},i[u]._errors.push(t(s))):i[u]=i[u]||{_errors:[]},i=i[u],a++}}};return r(e),n}const zp=e=>(t,n,r,o)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},i=t._zod.run({value:n,issues:[]},s);if(i instanceof Promise)throw new xo;if(i.issues.length){const a=new(o?.Err??e)(i.issues.map(u=>yr(u,s,br())));throw zx(a,o?.callee),a}return i.value},Fp=e=>async(t,n,r,o)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},s);if(i instanceof Promise&&(i=await i),i.issues.length){const a=new(o?.Err??e)(i.issues.map(u=>yr(u,s,br())));throw zx(a,o?.callee),a}return i.value},nc=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new xo;return s.issues.length?{success:!1,error:new(e??Hx)(s.issues.map(i=>yr(i,o,br())))}:{success:!0,data:s.value}},G3=nc(Wx),rc=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(i=>yr(i,o,br())))}:{success:!0,data:s.value}},K3=rc(Wx),Y3=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return zp(e)(t,n,o)},q3=e=>(t,n,r)=>zp(e)(t,n,r),X3=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Fp(e)(t,n,o)},J3=e=>async(t,n,r)=>Fp(e)(t,n,r),Q3=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return nc(e)(t,n,o)},e$=e=>(t,n,r)=>nc(e)(t,n,r),t$=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return rc(e)(t,n,o)},n$=e=>async(t,n,r)=>rc(e)(t,n,r),r$=/^[cC][^\s-]{8,}$/,o$=/^[0-9a-z]+$/,s$=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,i$=/^[0-9a-vA-V]{20}$/,a$=/^[A-Za-z0-9]{27}$/,c$=/^[a-zA-Z0-9_-]{21}$/,l$=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,u$=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Fh=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,d$=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,f$="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function p$(){return new RegExp(f$,"u")}const m$=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,h$=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,g$=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,v$=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,b$=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Zx=/^[A-Za-z0-9_-]*$/,y$=/^\+[1-9]\d{6,14}$/,Ux="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",w$=new RegExp(`^${Ux}$`);function Gx(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function x$(e){return new RegExp(`^${Gx(e)}$`)}function C$(e){const t=Gx({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${Ux}T(?:${r})$`)}const k$=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},E$=/^-?\d+$/,Kx=/^-?\d+(?:\.\d+)?$/,S$=/^(?:true|false)$/i,$$=/^null$/i,O$=/^[^A-Z]*$/,L$=/^[^a-z]*$/,Gt=H("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Yx={number:"number",bigint:"bigint",object:"date"},qx=H("$ZodCheckLessThan",(e,t)=>{Gt.init(e,t);const n=Yx[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,s=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<s&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Xx=H("$ZodCheckGreaterThan",(e,t)=>{Gt.init(e,t);const n=Yx[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,s=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),j$=H("$ZodCheckMultipleOf",(e,t)=>{Gt.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):M3(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),R$=H("$ZodCheckNumberFormat",(e,t)=>{Gt.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[o,s]=N3[t.format];e._zod.onattach.push(i=>{const a=i._zod.bag;a.format=t.format,a.minimum=o,a.maximum=s,n&&(a.pattern=E$)}),e._zod.check=i=>{const a=i.value;if(n){if(!Number.isInteger(a)){i.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?i.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):i.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}a<o&&i.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),a>s&&i.issues.push({origin:"number",input:a,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),P$=H("$ZodCheckMaxLength",(e,t)=>{var n;Gt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Np(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const i=Vp(o);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),M$=H("$ZodCheckMinLength",(e,t)=>{var n;Gt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Np(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const i=Vp(o);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),T$=H("$ZodCheckLengthEquals",(e,t)=>{var n;Gt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Np(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,s=o.length;if(s===t.length)return;const i=Vp(o),a=s>t.length;r.issues.push({origin:i,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),oc=H("$ZodCheckStringFormat",(e,t)=>{var n,r;Gt.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),I$=H("$ZodCheckRegex",(e,t)=>{oc.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),A$=H("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=O$),oc.init(e,t)}),_$=H("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=L$),oc.init(e,t)}),N$=H("$ZodCheckIncludes",(e,t)=>{Gt.init(e,t);const n=Ro(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),D$=H("$ZodCheckStartsWith",(e,t)=>{Gt.init(e,t);const n=new RegExp(`^${Ro(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),V$=H("$ZodCheckEndsWith",(e,t)=>{Gt.init(e,t);const n=new RegExp(`.*${Ro(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),z$=H("$ZodCheckOverwrite",(e,t)=>{Gt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class F${constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
4
- `).filter(i=>i),o=Math.min(...r.map(i=>i.length-i.trimStart().length)),s=r.map(i=>i.slice(o)).map(i=>" ".repeat(this.indent*2)+i);for(const i of s)this.content.push(i)}compile(){const t=Function,n=this?.args,o=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...n,o.join(`
5
- `))}}const B$={major:4,minor:3,patch:6},et=H("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=B$;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const s of o._zod.onattach)s(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(i,a,u)=>{let l=po(i),d;for(const f of a){if(f._zod.def.when){if(!f._zod.def.when(i))continue}else if(l)continue;const p=i.issues.length,m=f._zod.check(i);if(m instanceof Promise&&u?.async===!1)throw new xo;if(d||m instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await m,i.issues.length!==p&&(l||(l=po(i,p)))});else{if(i.issues.length===p)continue;l||(l=po(i,p))}}return d?d.then(()=>i):i},s=(i,a,u)=>{if(po(i))return i.aborted=!0,i;const l=o(a,r,u);if(l instanceof Promise){if(u.async===!1)throw new xo;return l.then(d=>e._zod.parse(d,u))}return e._zod.parse(l,u)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction==="backward"){const l=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return l instanceof Promise?l.then(d=>s(d,i,a)):s(l,i,a)}const u=e._zod.parse(i,a);if(u instanceof Promise){if(a.async===!1)throw new xo;return u.then(l=>o(l,r,a))}return o(u,r,a)}}_e(e,"~standard",()=>({validate:o=>{try{const s=G3(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return K3(e,o).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),Bp=H("$ZodString",(e,t)=>{et.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??k$(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),st=H("$ZodStringFormat",(e,t)=>{oc.init(e,t),Bp.init(e,t)}),H$=H("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=u$),st.init(e,t)}),W$=H("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Fh(r))}else t.pattern??(t.pattern=Fh());st.init(e,t)}),Z$=H("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=d$),st.init(e,t)}),U$=H("$ZodURL",(e,t)=>{st.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),o=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),G$=H("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=p$()),st.init(e,t)}),K$=H("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=c$),st.init(e,t)}),Y$=H("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=r$),st.init(e,t)}),q$=H("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=o$),st.init(e,t)}),X$=H("$ZodULID",(e,t)=>{t.pattern??(t.pattern=s$),st.init(e,t)}),J$=H("$ZodXID",(e,t)=>{t.pattern??(t.pattern=i$),st.init(e,t)}),Q$=H("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=a$),st.init(e,t)}),eO=H("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=C$(t)),st.init(e,t)}),tO=H("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=w$),st.init(e,t)}),nO=H("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=x$(t)),st.init(e,t)}),rO=H("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=l$),st.init(e,t)}),oO=H("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=m$),st.init(e,t),e._zod.bag.format="ipv4"}),sO=H("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=h$),st.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),iO=H("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=g$),st.init(e,t)}),aO=H("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=v$),st.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,s]=r;if(!s)throw new Error;const i=Number(s);if(`${i}`!==s)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Jx(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const cO=H("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=b$),st.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Jx(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function lO(e){if(!Zx.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Jx(n)}const uO=H("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Zx),st.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{lO(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),dO=H("$ZodE164",(e,t)=>{t.pattern??(t.pattern=y$),st.init(e,t)});function fO(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const pO=H("$ZodJWT",(e,t)=>{st.init(e,t),e._zod.check=n=>{fO(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Qx=H("$ZodNumber",(e,t)=>{et.init(e,t),e._zod.pattern=e._zod.bag.pattern??Kx,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const s=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...s?{received:s}:{}}),n}}),mO=H("$ZodNumberFormat",(e,t)=>{R$.init(e,t),Qx.init(e,t)}),hO=H("$ZodBoolean",(e,t)=>{et.init(e,t),e._zod.pattern=S$,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),gO=H("$ZodNull",(e,t)=>{et.init(e,t),e._zod.pattern=$$,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{const o=n.value;return o===null||n.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),n}}),vO=H("$ZodUnknown",(e,t)=>{et.init(e,t),e._zod.parse=n=>n}),bO=H("$ZodNever",(e,t)=>{et.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Bh(e,t,n){e.issues.length&&t.issues.push(...mo(n,e.issues)),t.value[n]=e.value}const yO=H("$ZodArray",(e,t)=>{et.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const s=[];for(let i=0;i<o.length;i++){const a=o[i],u=t.element._zod.run({value:a,issues:[]},r);u instanceof Promise?s.push(u.then(l=>Bh(l,n,i))):Bh(u,n,i)}return s.length?Promise.all(s).then(()=>n):n}});function ha(e,t,n,r,o){if(e.issues.length){if(o&&!(n in r))return;t.issues.push(...mo(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function eC(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=_3(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function tC(e,t,n,r,o,s){const i=[],a=o.keySet,u=o.catchall._zod,l=u.def.type,d=u.optout==="optional";for(const f in t){if(a.has(f))continue;if(l==="never"){i.push(f);continue}const p=u.run({value:t[f],issues:[]},r);p instanceof Promise?e.push(p.then(m=>ha(m,n,f,t,d))):ha(p,n,f,t,d)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:s}),e.length?Promise.all(e).then(()=>n):n}const wO=H("$ZodObject",(e,t)=>{if(et.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const u={...a};return Object.defineProperty(t,"shape",{value:u}),u}})}const r=tc(()=>eC(t));_e(e._zod,"propValues",()=>{const a=t.shape,u={};for(const l in a){const d=a[l]._zod;if(d.values){u[l]??(u[l]=new Set);for(const f of d.values)u[l].add(f)}}return u});const o=As,s=t.catchall;let i;e._zod.parse=(a,u)=>{i??(i=r.value);const l=a.value;if(!o(l))return a.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),a;a.value={};const d=[],f=i.shape;for(const p of i.keys){const m=f[p],g=m._zod.optout==="optional",y=m._zod.run({value:l[p],issues:[]},u);y instanceof Promise?d.push(y.then(x=>ha(x,a,p,l,g))):ha(y,a,p,l,g)}return s?tC(d,l,a,u,r.value,e):d.length?Promise.all(d).then(()=>a):a}}),xO=H("$ZodObjectJIT",(e,t)=>{wO.init(e,t);const n=e._zod.parse,r=tc(()=>eC(t)),o=p=>{const m=new F$(["shape","payload","ctx"]),g=r.value,y=v=>{const C=zh(v);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};m.write("const input = payload.value;");const x=Object.create(null);let w=0;for(const v of g.keys)x[v]=`key_${w++}`;m.write("const newResult = {};");for(const v of g.keys){const C=x[v],k=zh(v),$=p[v]?._zod?.optout==="optional";m.write(`const ${C} = ${y(v)};`),$?m.write(`
6
- if (${C}.issues.length) {
7
- if (${k} in input) {
8
- payload.issues = payload.issues.concat(${C}.issues.map(iss => ({
9
- ...iss,
10
- path: iss.path ? [${k}, ...iss.path] : [${k}]
11
- })));
12
- }
13
- }
14
-
15
- if (${C}.value === undefined) {
16
- if (${k} in input) {
17
- newResult[${k}] = undefined;
18
- }
19
- } else {
20
- newResult[${k}] = ${C}.value;
21
- }
22
-
23
- `):m.write(`
24
- if (${C}.issues.length) {
25
- payload.issues = payload.issues.concat(${C}.issues.map(iss => ({
26
- ...iss,
27
- path: iss.path ? [${k}, ...iss.path] : [${k}]
28
- })));
29
- }
30
-
31
- if (${C}.value === undefined) {
32
- if (${k} in input) {
33
- newResult[${k}] = undefined;
34
- }
35
- } else {
36
- newResult[${k}] = ${C}.value;
37
- }
38
-
39
- `)}m.write("payload.value = newResult;"),m.write("return payload;");const b=m.compile();return(v,C)=>b(p,v,C)};let s;const i=As,a=!Dx.jitless,l=a&&I3.value,d=t.catchall;let f;e._zod.parse=(p,m)=>{f??(f=r.value);const g=p.value;return i(g)?a&&l&&m?.async===!1&&m.jitless!==!0?(s||(s=o(t.shape)),p=s(p,m),d?tC([],g,p,m,f,e):p):n(p,m):(p.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),p)}});function Hh(e,t,n,r){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const o=e.filter(s=>!po(s));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(i=>yr(i,r,br())))}),t)}const nC=H("$ZodUnion",(e,t)=>{et.init(e,t),_e(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),_e(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),_e(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),_e(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>Dp(s.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,s)=>{if(n)return r(o,s);let i=!1;const a=[];for(const u of t.options){const l=u._zod.run({value:o.value,issues:[]},s);if(l instanceof Promise)a.push(l),i=!0;else{if(l.issues.length===0)return l;a.push(l)}}return i?Promise.all(a).then(u=>Hh(u,o,e,s)):Hh(a,o,e,s)}}),CO=H("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,nC.init(e,t);const n=e._zod.parse;_e(e._zod,"propValues",()=>{const o={};for(const s of t.options){const i=s._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const[a,u]of Object.entries(i)){o[a]||(o[a]=new Set);for(const l of u)o[a].add(l)}}return o});const r=tc(()=>{const o=t.options,s=new Map;for(const i of o){const a=i._zod.propValues?.[t.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const u of a){if(s.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);s.set(u,i)}}return s});e._zod.parse=(o,s)=>{const i=o.value;if(!As(i))return o.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),o;const a=r.value.get(i?.[t.discriminator]);return a?a._zod.run(o,s):t.unionFallback?n(o,s):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),o)}}),kO=H("$ZodIntersection",(e,t)=>{et.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,s=t.left._zod.run({value:o,issues:[]},r),i=t.right._zod.run({value:o,issues:[]},r);return s instanceof Promise||i instanceof Promise?Promise.all([s,i]).then(([u,l])=>Wh(n,u,l)):Wh(n,s,i)}});function Cf(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(jo(e)&&jo(t)){const n=Object.keys(t),r=Object.keys(e).filter(s=>n.indexOf(s)!==-1),o={...e,...t};for(const s of r){const i=Cf(e[s],t[s]);if(!i.valid)return{valid:!1,mergeErrorPath:[s,...i.mergeErrorPath]};o[s]=i.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],s=t[r],i=Cf(o,s);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Wh(e,t,n){const r=new Map;let o;for(const a of t.issues)if(a.code==="unrecognized_keys"){o??(o=a);for(const u of a.keys)r.has(u)||r.set(u,{}),r.get(u).l=!0}else e.issues.push(a);for(const a of n.issues)if(a.code==="unrecognized_keys")for(const u of a.keys)r.has(u)||r.set(u,{}),r.get(u).r=!0;else e.issues.push(a);const s=[...r].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(s.length&&o&&e.issues.push({...o,keys:s}),po(e))return e;const i=Cf(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const EO=H("$ZodRecord",(e,t)=>{et.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!jo(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const s=[],i=t.keyType._zod.values;if(i){n.value={};const a=new Set;for(const l of i)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){a.add(typeof l=="number"?l.toString():l);const d=t.valueType._zod.run({value:o[l],issues:[]},r);d instanceof Promise?s.push(d.then(f=>{f.issues.length&&n.issues.push(...mo(l,f.issues)),n.value[l]=f.value})):(d.issues.length&&n.issues.push(...mo(l,d.issues)),n.value[l]=d.value)}let u;for(const l in o)a.has(l)||(u=u??[],u.push(l));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:u})}else{n.value={};for(const a of Reflect.ownKeys(o)){if(a==="__proto__")continue;let u=t.keyType._zod.run({value:a,issues:[]},r);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&Kx.test(a)&&u.issues.length){const f=t.keyType._zod.run({value:Number(a),issues:[]},r);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(u=f)}if(u.issues.length){t.mode==="loose"?n.value[a]=o[a]:n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(f=>yr(f,r,br())),input:a,path:[a],inst:e});continue}const d=t.valueType._zod.run({value:o[a],issues:[]},r);d instanceof Promise?s.push(d.then(f=>{f.issues.length&&n.issues.push(...mo(a,f.issues)),n.value[u.value]=f.value})):(d.issues.length&&n.issues.push(...mo(a,d.issues)),n.value[u.value]=d.value)}}return s.length?Promise.all(s).then(()=>n):n}}),SO=H("$ZodEnum",(e,t)=>{et.init(e,t);const n=Vx(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>A3.has(typeof o)).map(o=>typeof o=="string"?Ro(o):o.toString()).join("|")})$`),e._zod.parse=(o,s)=>{const i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:n,input:i,inst:e}),o}}),$O=H("$ZodLiteral",(e,t)=>{if(et.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?Ro(r):r?Ro(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{const s=r.value;return n.has(s)||r.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),r}}),OO=H("$ZodTransform",(e,t)=>{et.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Nx(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(n.value=i,n));if(o instanceof Promise)throw new xo;return n.value=o,n}});function Zh(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const rC=H("$ZodOptional",(e,t)=>{et.init(e,t),e._zod.optin="optional",e._zod.optout="optional",_e(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),_e(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Dp(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>Zh(s,n.value)):Zh(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),LO=H("$ZodExactOptional",(e,t)=>{rC.init(e,t),_e(e._zod,"values",()=>t.innerType._zod.values),_e(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),jO=H("$ZodNullable",(e,t)=>{et.init(e,t),_e(e._zod,"optin",()=>t.innerType._zod.optin),_e(e._zod,"optout",()=>t.innerType._zod.optout),_e(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Dp(n.source)}|null)$`):void 0}),_e(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),RO=H("$ZodDefault",(e,t)=>{et.init(e,t),e._zod.optin="optional",_e(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>Uh(s,t)):Uh(o,t)}});function Uh(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const PO=H("$ZodPrefault",(e,t)=>{et.init(e,t),e._zod.optin="optional",_e(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),MO=H("$ZodNonOptional",(e,t)=>{et.init(e,t),_e(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>Gh(s,e)):Gh(o,e)}});function Gh(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const TO=H("$ZodCatch",(e,t)=>{et.init(e,t),_e(e._zod,"optin",()=>t.innerType._zod.optin),_e(e._zod,"optout",()=>t.innerType._zod.optout),_e(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(i=>yr(i,r,br()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>yr(s,r,br()))},input:n.value}),n.issues=[]),n)}}),IO=H("$ZodPipe",(e,t)=>{et.init(e,t),_e(e._zod,"values",()=>t.in._zod.values),_e(e._zod,"optin",()=>t.in._zod.optin),_e(e._zod,"optout",()=>t.out._zod.optout),_e(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const s=t.out._zod.run(n,r);return s instanceof Promise?s.then(i=>Ci(i,t.in,r)):Ci(s,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(s=>Ci(s,t.out,r)):Ci(o,t.out,r)}});function Ci(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const AO=H("$ZodReadonly",(e,t)=>{et.init(e,t),_e(e._zod,"propValues",()=>t.innerType._zod.propValues),_e(e._zod,"values",()=>t.innerType._zod.values),_e(e._zod,"optin",()=>t.innerType?._zod?.optin),_e(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(Kh):Kh(o)}});function Kh(e){return e.value=Object.freeze(e.value),e}const _O=H("$ZodLazy",(e,t)=>{et.init(e,t),_e(e._zod,"innerType",()=>t.getter()),_e(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),_e(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),_e(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),_e(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),NO=H("$ZodCustom",(e,t)=>{Gt.init(e,t),et.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(s=>Yh(s,n,r,e));Yh(o,n,r,e)}});function Yh(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(_s(o))}}var qh;class DO{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function VO(){return new DO}(qh=globalThis).__zod_globalRegistry??(qh.__zod_globalRegistry=VO());const ps=globalThis.__zod_globalRegistry;function zO(e,t){return new e({type:"string",...be(t)})}function FO(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...be(t)})}function Xh(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...be(t)})}function BO(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...be(t)})}function HO(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...be(t)})}function WO(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...be(t)})}function ZO(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...be(t)})}function UO(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...be(t)})}function GO(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...be(t)})}function KO(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...be(t)})}function YO(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...be(t)})}function qO(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...be(t)})}function XO(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...be(t)})}function JO(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...be(t)})}function QO(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...be(t)})}function eL(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...be(t)})}function tL(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...be(t)})}function nL(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...be(t)})}function rL(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...be(t)})}function oL(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...be(t)})}function sL(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...be(t)})}function iL(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...be(t)})}function aL(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...be(t)})}function cL(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...be(t)})}function lL(e,t){return new e({type:"string",format:"date",check:"string_format",...be(t)})}function uL(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...be(t)})}function dL(e,t){return new e({type:"string",format:"duration",check:"string_format",...be(t)})}function fL(e,t){return new e({type:"number",checks:[],...be(t)})}function pL(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...be(t)})}function mL(e,t){return new e({type:"boolean",...be(t)})}function hL(e,t){return new e({type:"null",...be(t)})}function gL(e){return new e({type:"unknown"})}function vL(e,t){return new e({type:"never",...be(t)})}function Jh(e,t){return new qx({check:"less_than",...be(t),value:e,inclusive:!1})}function Hc(e,t){return new qx({check:"less_than",...be(t),value:e,inclusive:!0})}function Qh(e,t){return new Xx({check:"greater_than",...be(t),value:e,inclusive:!1})}function Wc(e,t){return new Xx({check:"greater_than",...be(t),value:e,inclusive:!0})}function eg(e,t){return new j$({check:"multiple_of",...be(t),value:e})}function oC(e,t){return new P$({check:"max_length",...be(t),maximum:e})}function ga(e,t){return new M$({check:"min_length",...be(t),minimum:e})}function sC(e,t){return new T$({check:"length_equals",...be(t),length:e})}function bL(e,t){return new I$({check:"string_format",format:"regex",...be(t),pattern:e})}function yL(e){return new A$({check:"string_format",format:"lowercase",...be(e)})}function wL(e){return new _$({check:"string_format",format:"uppercase",...be(e)})}function xL(e,t){return new N$({check:"string_format",format:"includes",...be(t),includes:e})}function CL(e,t){return new D$({check:"string_format",format:"starts_with",...be(t),prefix:e})}function kL(e,t){return new V$({check:"string_format",format:"ends_with",...be(t),suffix:e})}function zo(e){return new z$({check:"overwrite",tx:e})}function EL(e){return zo(t=>t.normalize(e))}function SL(){return zo(e=>e.trim())}function $L(){return zo(e=>e.toLowerCase())}function OL(){return zo(e=>e.toUpperCase())}function LL(){return zo(e=>T3(e))}function jL(e,t,n){return new e({type:"array",element:t,...be(n)})}function RL(e,t,n){const r=be(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function PL(e,t,n){return new e({type:"custom",check:"custom",fn:t,...be(n)})}function ML(e){const t=TL(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(_s(r,n.value,t._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(_s(o))}},e(n.value,n)));return t}function TL(e,t){const n=new Gt({check:"custom",...be(t)});return n._zod.check=e,n}function va(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??ps,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Ye(e,t,n={path:[],schemaPath:[]}){var r;const o=e._zod.def,s=t.seen.get(e);if(s)return s.count++,n.schemaPath.includes(e)&&(s.cycle=n.path),s.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);const a=e._zod.toJSONSchema?.();if(a)i.schema=a;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,d);else{const p=i.schema,m=t.processors[o.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);m(e,t,p,d)}const f=e._zod.parent;f&&(i.ref||(i.ref=f),Ye(f,t,d),t.seen.get(f).isParent=!0)}const u=t.metadataRegistry.get(e);return u&&Object.assign(i.schema,u),t.io==="input"&&Mt(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&i.schema._prefault&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function ba(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const i of e.seen.entries()){const a=e.metadataRegistry.get(i[0])?.id;if(a){const u=r.get(a);if(u&&u!==i[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(a,i[0])}}const o=i=>{const a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const f=e.external.registry.get(i[0])?.id,p=e.external.uri??(g=>g);if(f)return{ref:p(f)};const m=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=m,{defId:m,ref:`${p("__shared")}#/${a}/${m}`}}if(i[1]===n)return{ref:"#"};const l=`#/${a}/`,d=i[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:l+d}},s=i=>{if(i[1].schema.$ref)return;const a=i[1],{ref:u,defId:l}=o(i);a.def={...a.schema},l&&(a.defId=l);const d=a.schema;for(const f in d)delete d[f];d.$ref=u};if(e.cycles==="throw")for(const i of e.seen.entries()){const a=i[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
40
-
41
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const i of e.seen.entries()){const a=i[1];if(t===i[0]){s(i);continue}if(e.external){const l=e.external.registry.get(i[0])?.id;if(t!==i[0]&&l){s(i);continue}}if(e.metadataRegistry.get(i[0])?.id){s(i);continue}if(a.cycle){s(i);continue}if(a.count>1&&e.reused==="ref"){s(i);continue}}}function ya(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=i=>{const a=e.seen.get(i);if(a.ref===null)return;const u=a.def??a.schema,l={...u},d=a.ref;if(a.ref=null,d){r(d);const p=e.seen.get(d),m=p.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(m)):Object.assign(u,m),Object.assign(u,l),i._zod.parent===d)for(const y in u)y==="$ref"||y==="allOf"||y in l||delete u[y];if(m.$ref&&p.def)for(const y in u)y==="$ref"||y==="allOf"||y in p.def&&JSON.stringify(u[y])===JSON.stringify(p.def[y])&&delete u[y]}const f=i._zod.parent;if(f&&f!==d){r(f);const p=e.seen.get(f);if(p?.schema.$ref&&(u.$ref=p.schema.$ref,p.def))for(const m in u)m==="$ref"||m==="allOf"||m in p.def&&JSON.stringify(u[m])===JSON.stringify(p.def[m])&&delete u[m]}e.override({zodSchema:i,jsonSchema:u,path:a.path??[]})};for(const i of[...e.seen.entries()].reverse())r(i[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const i=e.external.registry.get(t)?.id;if(!i)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(i)}Object.assign(o,n.def??n.schema);const s=e.external?.defs??{};for(const i of e.seen.entries()){const a=i[1];a.def&&a.defId&&(s[a.defId]=a.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{const i=JSON.parse(JSON.stringify(o));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:wa(t,"input",e.processors),output:wa(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw new Error("Error converting schema to JSON.")}}function Mt(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Mt(r.element,n);if(r.type==="set")return Mt(r.valueType,n);if(r.type==="lazy")return Mt(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Mt(r.innerType,n);if(r.type==="intersection")return Mt(r.left,n)||Mt(r.right,n);if(r.type==="record"||r.type==="map")return Mt(r.keyType,n)||Mt(r.valueType,n);if(r.type==="pipe")return Mt(r.in,n)||Mt(r.out,n);if(r.type==="object"){for(const o in r.shape)if(Mt(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(Mt(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(Mt(o,n))return!0;return!!(r.rest&&Mt(r.rest,n))}return!1}const IL=(e,t={})=>n=>{const r=va({...n,processors:t});return Ye(e,r),ba(r,e),ya(r,e)},wa=(e,t,n={})=>r=>{const{libraryOptions:o,target:s}=r??{},i=va({...o??{},target:s,io:t,processors:n});return Ye(e,i),ba(i,e),ya(i,e)},AL={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},iC=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:s,maximum:i,format:a,patterns:u,contentEncoding:l}=e._zod.bag;if(typeof s=="number"&&(o.minLength=s),typeof i=="number"&&(o.maxLength=i),a&&(o.format=AL[a]??a,o.format===""&&delete o.format,a==="time"&&delete o.format),l&&(o.contentEncoding=l),u&&u.size>0){const d=[...u];d.length===1?o.pattern=d[0].source:d.length>1&&(o.allOf=[...d.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},aC=(e,t,n,r)=>{const o=n,{minimum:s,maximum:i,format:a,multipleOf:u,exclusiveMaximum:l,exclusiveMinimum:d}=e._zod.bag;typeof a=="string"&&a.includes("int")?o.type="integer":o.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.minimum=d,o.exclusiveMinimum=!0):o.exclusiveMinimum=d),typeof s=="number"&&(o.minimum=s,typeof d=="number"&&t.target!=="draft-04"&&(d>=s?delete o.minimum:delete o.exclusiveMinimum)),typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.maximum=l,o.exclusiveMaximum=!0):o.exclusiveMaximum=l),typeof i=="number"&&(o.maximum=i,typeof l=="number"&&t.target!=="draft-04"&&(l<=i?delete o.maximum:delete o.exclusiveMaximum)),typeof u=="number"&&(o.multipleOf=u)},cC=(e,t,n,r)=>{n.type="boolean"},_L=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},NL=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},lC=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},DL=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},VL=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},uC=(e,t,n,r)=>{n.not={}},zL=(e,t,n,r)=>{},dC=(e,t,n,r)=>{},FL=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},fC=(e,t,n,r)=>{const o=e._zod.def,s=Vx(o.entries);s.every(i=>typeof i=="number")&&(n.type="number"),s.every(i=>typeof i=="string")&&(n.type="string"),n.enum=s},pC=(e,t,n,r)=>{const o=e._zod.def,s=[];for(const i of o.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(i))}else s.push(i);if(s.length!==0)if(s.length===1){const i=s[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else s.every(i=>typeof i=="number")&&(n.type="number"),s.every(i=>typeof i=="string")&&(n.type="string"),s.every(i=>typeof i=="boolean")&&(n.type="boolean"),s.every(i=>i===null)&&(n.type="null"),n.enum=s},BL=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},HL=(e,t,n,r)=>{const o=n,s=e._zod.pattern;if(!s)throw new Error("Pattern not found in template literal");o.type="string",o.pattern=s.source},WL=(e,t,n,r)=>{const o=n,s={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:a,mime:u}=e._zod.bag;i!==void 0&&(s.minLength=i),a!==void 0&&(s.maxLength=a),u?u.length===1?(s.contentMediaType=u[0],Object.assign(o,s)):(Object.assign(o,s),o.anyOf=u.map(l=>({contentMediaType:l}))):Object.assign(o,s)},ZL=(e,t,n,r)=>{n.type="boolean"},mC=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},UL=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},hC=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},GL=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},KL=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},gC=(e,t,n,r)=>{const o=n,s=e._zod.def,{minimum:i,maximum:a}=e._zod.bag;typeof i=="number"&&(o.minItems=i),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=Ye(s.element,t,{...r,path:[...r.path,"items"]})},vC=(e,t,n,r)=>{const o=n,s=e._zod.def;o.type="object",o.properties={};const i=s.shape;for(const l in i)o.properties[l]=Ye(i[l],t,{...r,path:[...r.path,"properties",l]});const a=new Set(Object.keys(i)),u=new Set([...a].filter(l=>{const d=s.shape[l]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));u.size>0&&(o.required=Array.from(u)),s.catchall?._zod.def.type==="never"?o.additionalProperties=!1:s.catchall?s.catchall&&(o.additionalProperties=Ye(s.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},bC=(e,t,n,r)=>{const o=e._zod.def,s=o.inclusive===!1,i=o.options.map((a,u)=>Ye(a,t,{...r,path:[...r.path,s?"oneOf":"anyOf",u]}));s?n.oneOf=i:n.anyOf=i},yC=(e,t,n,r)=>{const o=e._zod.def,s=Ye(o.left,t,{...r,path:[...r.path,"allOf",0]}),i=Ye(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=l=>"allOf"in l&&Object.keys(l).length===1,u=[...a(s)?s.allOf:[s],...a(i)?i.allOf:[i]];n.allOf=u},YL=(e,t,n,r)=>{const o=n,s=e._zod.def;o.type="array";const i=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=s.items.map((p,m)=>Ye(p,t,{...r,path:[...r.path,i,m]})),l=s.rest?Ye(s.rest,t,{...r,path:[...r.path,a,...t.target==="openapi-3.0"?[s.items.length]:[]]}):null;t.target==="draft-2020-12"?(o.prefixItems=u,l&&(o.items=l)):t.target==="openapi-3.0"?(o.items={anyOf:u},l&&o.items.anyOf.push(l),o.minItems=u.length,l||(o.maxItems=u.length)):(o.items=u,l&&(o.additionalItems=l));const{minimum:d,maximum:f}=e._zod.bag;typeof d=="number"&&(o.minItems=d),typeof f=="number"&&(o.maxItems=f)},wC=(e,t,n,r)=>{const o=n,s=e._zod.def;o.type="object";const i=s.keyType,u=i._zod.bag?.patterns;if(s.mode==="loose"&&u&&u.size>0){const d=Ye(s.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const f of u)o.patternProperties[f.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=Ye(s.keyType,t,{...r,path:[...r.path,"propertyNames"]})),o.additionalProperties=Ye(s.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const l=i._zod.values;if(l){const d=[...l].filter(f=>typeof f=="string"||typeof f=="number");d.length>0&&(o.required=d)}},xC=(e,t,n,r)=>{const o=e._zod.def,s=Ye(o.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=o.innerType,n.nullable=!0):n.anyOf=[s,{type:"null"}]},CC=(e,t,n,r)=>{const o=e._zod.def;Ye(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},kC=(e,t,n,r)=>{const o=e._zod.def;Ye(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},EC=(e,t,n,r)=>{const o=e._zod.def;Ye(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},SC=(e,t,n,r)=>{const o=e._zod.def;Ye(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType;let i;try{i=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},$C=(e,t,n,r)=>{const o=e._zod.def,s=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;Ye(s,t,r);const i=t.seen.get(e);i.ref=s},OC=(e,t,n,r)=>{const o=e._zod.def;Ye(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType,n.readOnly=!0},qL=(e,t,n,r)=>{const o=e._zod.def;Ye(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},Hp=(e,t,n,r)=>{const o=e._zod.def;Ye(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},LC=(e,t,n,r)=>{const o=e._zod.innerType;Ye(o,t,r);const s=t.seen.get(e);s.ref=o},tg={string:iC,number:aC,boolean:cC,bigint:_L,symbol:NL,null:lC,undefined:DL,void:VL,never:uC,any:zL,unknown:dC,date:FL,enum:fC,literal:pC,nan:BL,template_literal:HL,file:WL,success:ZL,custom:mC,function:UL,transform:hC,map:GL,set:KL,array:gC,object:vC,union:bC,intersection:yC,tuple:YL,record:wC,nullable:xC,nonoptional:CC,default:kC,prefault:EC,catch:SC,pipe:$C,readonly:OC,promise:qL,optional:Hp,lazy:LC};function XL(e,t){if("_idmap"in e){const r=e,o=va({...t,processors:tg}),s={};for(const u of r._idmap.entries()){const[l,d]=u;Ye(d,o)}const i={},a={registry:r,uri:t?.uri,defs:s};o.external=a;for(const u of r._idmap.entries()){const[l,d]=u;ba(o,d),i[l]=ya(o,d)}if(Object.keys(s).length>0){const u=o.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[u]:s}}return{schemas:i}}const n=va({...t,processors:tg});return Ye(e,n),ba(n,e),ya(n,e)}const JL=H("ZodISODateTime",(e,t)=>{eO.init(e,t),at.init(e,t)});function QL(e){return cL(JL,e)}const ej=H("ZodISODate",(e,t)=>{tO.init(e,t),at.init(e,t)});function tj(e){return lL(ej,e)}const nj=H("ZodISOTime",(e,t)=>{nO.init(e,t),at.init(e,t)});function rj(e){return uL(nj,e)}const oj=H("ZodISODuration",(e,t)=>{rO.init(e,t),at.init(e,t)});function sj(e){return dL(oj,e)}const ij=(e,t)=>{Hx.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>U3(e,n)},flatten:{value:n=>Z3(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,xf,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,xf,2)}},isEmpty:{get(){return e.issues.length===0}}})},pn=H("ZodError",ij,{Parent:Error}),aj=zp(pn),cj=Fp(pn),lj=nc(pn),jC=rc(pn),uj=Y3(pn),dj=q3(pn),fj=X3(pn),pj=J3(pn),mj=Q3(pn),hj=e$(pn),gj=t$(pn),vj=n$(pn),tt=H("ZodType",(e,t)=>(et.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:wa(e,"input"),output:wa(e,"output")}}),e.toJSONSchema=IL(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Cr(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(n,r)=>kr(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>aj(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>lj(e,n,r),e.parseAsync=async(n,r)=>cj(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>jC(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>uj(e,n,r),e.decode=(n,r)=>dj(e,n,r),e.encodeAsync=async(n,r)=>fj(e,n,r),e.decodeAsync=async(n,r)=>pj(e,n,r),e.safeEncode=(n,r)=>mj(e,n,r),e.safeDecode=(n,r)=>hj(e,n,r),e.safeEncodeAsync=async(n,r)=>gj(e,n,r),e.safeDecodeAsync=async(n,r)=>vj(e,n,r),e.refine=(n,r)=>e.check(pR(n,r)),e.superRefine=n=>e.check(mR(n)),e.overwrite=n=>e.check(zo(n)),e.optional=()=>og(e),e.exactOptional=()=>Qj(e),e.nullable=()=>sg(e),e.nullish=()=>og(sg(e)),e.nonoptional=n=>sR(e,n),e.array=()=>Fo(e),e.or=n=>Vt([e,n]),e.and=n=>Gj(e,n),e.transform=n=>ig(e,Xj(n)),e.default=n=>nR(e,n),e.prefault=n=>oR(e,n),e.catch=n=>aR(e,n),e.pipe=n=>ig(e,n),e.readonly=()=>uR(e),e.describe=n=>{const r=e.clone();return ps.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return ps.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return ps.get(e);const r=e.clone();return ps.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),RC=H("_ZodString",(e,t)=>{Bp.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,o,s)=>iC(e,r,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(bL(...r)),e.includes=(...r)=>e.check(xL(...r)),e.startsWith=(...r)=>e.check(CL(...r)),e.endsWith=(...r)=>e.check(kL(...r)),e.min=(...r)=>e.check(ga(...r)),e.max=(...r)=>e.check(oC(...r)),e.length=(...r)=>e.check(sC(...r)),e.nonempty=(...r)=>e.check(ga(1,...r)),e.lowercase=r=>e.check(yL(r)),e.uppercase=r=>e.check(wL(r)),e.trim=()=>e.check(SL()),e.normalize=(...r)=>e.check(EL(...r)),e.toLowerCase=()=>e.check($L()),e.toUpperCase=()=>e.check(OL()),e.slugify=()=>e.check(LL())}),bj=H("ZodString",(e,t)=>{Bp.init(e,t),RC.init(e,t),e.email=n=>e.check(FO(yj,n)),e.url=n=>e.check(UO(wj,n)),e.jwt=n=>e.check(aL(Aj,n)),e.emoji=n=>e.check(GO(xj,n)),e.guid=n=>e.check(Xh(ng,n)),e.uuid=n=>e.check(BO(ki,n)),e.uuidv4=n=>e.check(HO(ki,n)),e.uuidv6=n=>e.check(WO(ki,n)),e.uuidv7=n=>e.check(ZO(ki,n)),e.nanoid=n=>e.check(KO(Cj,n)),e.guid=n=>e.check(Xh(ng,n)),e.cuid=n=>e.check(YO(kj,n)),e.cuid2=n=>e.check(qO(Ej,n)),e.ulid=n=>e.check(XO(Sj,n)),e.base64=n=>e.check(oL(Mj,n)),e.base64url=n=>e.check(sL(Tj,n)),e.xid=n=>e.check(JO($j,n)),e.ksuid=n=>e.check(QO(Oj,n)),e.ipv4=n=>e.check(eL(Lj,n)),e.ipv6=n=>e.check(tL(jj,n)),e.cidrv4=n=>e.check(nL(Rj,n)),e.cidrv6=n=>e.check(rL(Pj,n)),e.e164=n=>e.check(iL(Ij,n)),e.datetime=n=>e.check(QL(n)),e.date=n=>e.check(tj(n)),e.time=n=>e.check(rj(n)),e.duration=n=>e.check(sj(n))});function ce(e){return zO(bj,e)}const at=H("ZodStringFormat",(e,t)=>{st.init(e,t),RC.init(e,t)}),yj=H("ZodEmail",(e,t)=>{Z$.init(e,t),at.init(e,t)}),ng=H("ZodGUID",(e,t)=>{H$.init(e,t),at.init(e,t)}),ki=H("ZodUUID",(e,t)=>{W$.init(e,t),at.init(e,t)}),wj=H("ZodURL",(e,t)=>{U$.init(e,t),at.init(e,t)}),xj=H("ZodEmoji",(e,t)=>{G$.init(e,t),at.init(e,t)}),Cj=H("ZodNanoID",(e,t)=>{K$.init(e,t),at.init(e,t)}),kj=H("ZodCUID",(e,t)=>{Y$.init(e,t),at.init(e,t)}),Ej=H("ZodCUID2",(e,t)=>{q$.init(e,t),at.init(e,t)}),Sj=H("ZodULID",(e,t)=>{X$.init(e,t),at.init(e,t)}),$j=H("ZodXID",(e,t)=>{J$.init(e,t),at.init(e,t)}),Oj=H("ZodKSUID",(e,t)=>{Q$.init(e,t),at.init(e,t)}),Lj=H("ZodIPv4",(e,t)=>{oO.init(e,t),at.init(e,t)}),jj=H("ZodIPv6",(e,t)=>{sO.init(e,t),at.init(e,t)}),Rj=H("ZodCIDRv4",(e,t)=>{iO.init(e,t),at.init(e,t)}),Pj=H("ZodCIDRv6",(e,t)=>{aO.init(e,t),at.init(e,t)}),Mj=H("ZodBase64",(e,t)=>{cO.init(e,t),at.init(e,t)}),Tj=H("ZodBase64URL",(e,t)=>{uO.init(e,t),at.init(e,t)}),Ij=H("ZodE164",(e,t)=>{dO.init(e,t),at.init(e,t)}),Aj=H("ZodJWT",(e,t)=>{pO.init(e,t),at.init(e,t)}),PC=H("ZodNumber",(e,t)=>{Qx.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,o,s)=>aC(e,r,o),e.gt=(r,o)=>e.check(Qh(r,o)),e.gte=(r,o)=>e.check(Wc(r,o)),e.min=(r,o)=>e.check(Wc(r,o)),e.lt=(r,o)=>e.check(Jh(r,o)),e.lte=(r,o)=>e.check(Hc(r,o)),e.max=(r,o)=>e.check(Hc(r,o)),e.int=r=>e.check(rg(r)),e.safe=r=>e.check(rg(r)),e.positive=r=>e.check(Qh(0,r)),e.nonnegative=r=>e.check(Wc(0,r)),e.negative=r=>e.check(Jh(0,r)),e.nonpositive=r=>e.check(Hc(0,r)),e.multipleOf=(r,o)=>e.check(eg(r,o)),e.step=(r,o)=>e.check(eg(r,o)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function _j(e){return fL(PC,e)}const Nj=H("ZodNumberFormat",(e,t)=>{mO.init(e,t),PC.init(e,t)});function rg(e){return pL(Nj,e)}const Dj=H("ZodBoolean",(e,t)=>{hO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>cC(e,n,r)});function Tt(e){return mL(Dj,e)}const Vj=H("ZodNull",(e,t)=>{gO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>lC(e,n,r)});function zj(e){return hL(Vj,e)}const Fj=H("ZodUnknown",(e,t)=>{vO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>dC()});function jn(){return gL(Fj)}const Bj=H("ZodNever",(e,t)=>{bO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>uC(e,n,r)});function MC(e){return vL(Bj,e)}const Hj=H("ZodArray",(e,t)=>{yO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gC(e,n,r,o),e.element=t.element,e.min=(n,r)=>e.check(ga(n,r)),e.nonempty=n=>e.check(ga(1,n)),e.max=(n,r)=>e.check(oC(n,r)),e.length=(n,r)=>e.check(sC(n,r)),e.unwrap=()=>e.element});function Fo(e,t){return jL(Hj,e,t)}const TC=H("ZodObject",(e,t)=>{xO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>vC(e,n,r,o),_e(e,"shape",()=>t.shape),e.keyof=()=>AC(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:jn()}),e.loose=()=>e.clone({...e._zod.def,catchall:jn()}),e.strict=()=>e.clone({...e._zod.def,catchall:MC()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>z3(e,n),e.safeExtend=n=>F3(e,n),e.merge=n=>B3(e,n),e.pick=n=>D3(e,n),e.omit=n=>V3(e,n),e.partial=(...n)=>H3(_C,e,n[0]),e.required=(...n)=>W3(NC,e,n[0])});function Ze(e,t){const n={type:"object",shape:e??{},...be(t)};return new TC(n)}function qe(e,t){return new TC({type:"object",shape:e,catchall:MC(),...be(t)})}const IC=H("ZodUnion",(e,t)=>{nC.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>bC(e,n,r,o),e.options=t.options});function Vt(e,t){return new IC({type:"union",options:e,...be(t)})}const Wj=H("ZodDiscriminatedUnion",(e,t)=>{IC.init(e,t),CO.init(e,t)});function Zj(e,t,n){return new Wj({type:"union",options:t,discriminator:e,...be(n)})}const Uj=H("ZodIntersection",(e,t)=>{kO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>yC(e,n,r,o)});function Gj(e,t){return new Uj({type:"intersection",left:e,right:t})}const Kj=H("ZodRecord",(e,t)=>{EO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>wC(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function Ns(e,t,n){return new Kj({type:"record",keyType:e,valueType:t,...be(n)})}const kf=H("ZodEnum",(e,t)=>{SO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(r,o,s)=>fC(e,r,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const s={};for(const i of r)if(n.has(i))s[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new kf({...t,checks:[],...be(o),entries:s})},e.exclude=(r,o)=>{const s={...t.entries};for(const i of r)if(n.has(i))delete s[i];else throw new Error(`Key ${i} not found in enum`);return new kf({...t,checks:[],...be(o),entries:s})}});function AC(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new kf({type:"enum",entries:n,...be(t)})}const Yj=H("ZodLiteral",(e,t)=>{$O.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>pC(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function xe(e,t){return new Yj({type:"literal",values:Array.isArray(e)?e:[e],...be(t)})}const qj=H("ZodTransform",(e,t)=>{OO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hC(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Nx(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(_s(s,n.value,t));else{const i=s;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(_s(i))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function Xj(e){return new qj({type:"transform",transform:e})}const _C=H("ZodOptional",(e,t)=>{rC.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Hp(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function og(e){return new _C({type:"optional",innerType:e})}const Jj=H("ZodExactOptional",(e,t)=>{LO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Hp(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Qj(e){return new Jj({type:"optional",innerType:e})}const eR=H("ZodNullable",(e,t)=>{jO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>xC(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function sg(e){return new eR({type:"nullable",innerType:e})}const tR=H("ZodDefault",(e,t)=>{RO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>kC(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function nR(e,t){return new tR({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Fx(t)}})}const rR=H("ZodPrefault",(e,t)=>{PO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>EC(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function oR(e,t){return new rR({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Fx(t)}})}const NC=H("ZodNonOptional",(e,t)=>{MO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>CC(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function sR(e,t){return new NC({type:"nonoptional",innerType:e,...be(t)})}const iR=H("ZodCatch",(e,t)=>{TO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>SC(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function aR(e,t){return new iR({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const cR=H("ZodPipe",(e,t)=>{IO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>$C(e,n,r,o),e.in=t.in,e.out=t.out});function ig(e,t){return new cR({type:"pipe",in:e,out:t})}const lR=H("ZodReadonly",(e,t)=>{AO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>OC(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function uR(e){return new lR({type:"readonly",innerType:e})}const dR=H("ZodLazy",(e,t)=>{_O.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>LC(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function fR(e){return new dR({type:"lazy",getter:e})}const Wp=H("ZodCustom",(e,t)=>{NO.init(e,t),tt.init(e,t),e._zod.processJSONSchema=(n,r,o)=>mC(e,n)});function DC(e,t){return RL(Wp,e??(()=>!0),t)}function pR(e,t={}){return PL(Wp,e,t)}function mR(e){return ML(e)}function xa(e,t={}){const n=new Wp({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...be(t)});return n._zod.bag.Class=e,n._zod.check=r=>{r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:n,path:[...n._zod.def.path??[]]})},n}var Ds;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const s={};for(const i of o)s[i]=i;return s},e.getValidEnumValues=o=>{const s=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),i={};for(const a of s)i[a]=o[a];return e.objectValues(i)},e.objectValues=o=>e.objectKeys(o).map(function(s){return o[s]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const s=[];for(const i in o)Object.prototype.hasOwnProperty.call(o,i)&&s.push(i);return s},e.find=(o,s)=>{for(const i of o)if(s(i))return i},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,s=" | "){return o.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}e.joinValues=r,e.jsonStringifyReplacer=(o,s)=>typeof s=="bigint"?s.toString():s})(Ds||(Ds={}));var ag;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(ag||(ag={}));Ds.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);Ds.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Ca extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(s){return s.message},r={_errors:[]},o=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(o);else if(i.code==="invalid_return_type")o(i.returnTypeError);else if(i.code==="invalid_arguments")o(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let a=r,u=0;for(;u<i.path.length;){const l=i.path[u];u===i.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(n(i))):a[l]=a[l]||{_errors:[]},a=a[l],u++}}};return o(this),r}static assert(t){if(!(t instanceof Ca))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ds.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n=Object.create(null),r=[];for(const o of this.issues)if(o.path.length>0){const s=o.path[0];n[s]=n[s]||[],n[s].push(t(o))}else r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Ca.create=e=>new Ca(e);var cg;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(cg||(cg={}));var je;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(je||(je={}));class lg extends Error{constructor(t,n){super(t),this.name="ParseError",this.type=n.type,this.field=n.field,this.value=n.value,this.line=n.line}}const ug=10,hR=13,Ar=32;function Zc(e){}function gR(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");const{onEvent:t=Zc,onError:n=Zc,onRetry:r=Zc,onComment:o}=e;let s="",i=!0,a,u="",l=0,d;function f(b){if(i){i=!1,p(b);return}const v=s===""?b:s+b;s=m(v)}function p(b){b.charCodeAt(0)===239&&b.charCodeAt(1)===187&&b.charCodeAt(2)===191&&(b=b.slice(3));const v=s===""?b:s+b;s=m(v)}function m(b){let v=0;if(b.indexOf("\r")===-1){let C=b.indexOf(`
42
- `,v);for(;C!==-1;){if(v===C){l>0&&t({id:a,event:d,data:u}),a=void 0,u="",l=0,d=void 0,v=C+1,C=b.indexOf(`
43
- `,v);continue}const k=b.charCodeAt(v);if(dg(b,v,k)){const E=b.charCodeAt(v+5)===Ar?v+6:v+5,$=b.slice(E,C);if(l===0&&b.charCodeAt(C+1)===ug){t({id:a,event:d,data:$}),a=void 0,u="",d=void 0,v=C+2,C=b.indexOf(`
44
- `,v);continue}u=l===0?$:`${u}
45
- ${$}`,l++}else fg(b,v,k)?d=b.slice(b.charCodeAt(v+6)===Ar?v+7:v+6,C)||void 0:g(b,v,C);v=C+1,C=b.indexOf(`
46
- `,v)}return b.slice(v)}for(;v<b.length;){const C=b.indexOf("\r",v),k=b.indexOf(`
47
- `,v);let E=-1;if(C!==-1&&k!==-1?E=C<k?C:k:C!==-1?C===b.length-1?E=-1:E=C:k!==-1&&(E=k),E===-1)break;g(b,v,E),v=E+1,b.charCodeAt(v-1)===hR&&b.charCodeAt(v)===ug&&v++}return b.slice(v)}function g(b,v,C){if(v===C){x();return}const k=b.charCodeAt(v);if(dg(b,v,k)){const T=b.charCodeAt(v+5)===Ar?v+6:v+5,A=b.slice(T,C);u=l===0?A:`${u}
48
- ${A}`,l++;return}if(fg(b,v,k)){d=b.slice(b.charCodeAt(v+6)===Ar?v+7:v+6,C)||void 0;return}if(k===105&&b.charCodeAt(v+1)===100&&b.charCodeAt(v+2)===58){const T=b.slice(b.charCodeAt(v+3)===Ar?v+4:v+3,C);a=T.includes("\0")?void 0:T;return}if(k===58){if(o){const T=b.slice(v,C);o(T.slice(b.charCodeAt(v+1)===Ar?2:1))}return}const E=b.slice(v,C),$=E.indexOf(":");if($===-1){y(E,"",E);return}const S=E.slice(0,$),j=E.charCodeAt($+1)===Ar?2:1,R=E.slice($+j);y(S,R,E)}function y(b,v,C){switch(b){case"event":d=v||void 0;break;case"data":u=l===0?v:`${u}
49
- ${v}`,l++;break;case"id":a=v.includes("\0")?void 0:v;break;case"retry":/^\d+$/.test(v)?r(parseInt(v,10)):n(new lg(`Invalid \`retry\` value: "${v}"`,{type:"invalid-retry",value:v,line:C}));break;default:n(new lg(`Unknown field "${b.length>20?`${b.slice(0,20)}…`:b}"`,{type:"unknown-field",field:b,value:v,line:C}));break}}function x(){l>0&&t({id:a,event:d,data:u}),a=void 0,u="",l=0,d=void 0}function w(b={}){s&&b.consume&&g(s,0,s.length),i=!0,a=void 0,u="",l=0,d=void 0,s=""}return{feed:f,reset:w}}function dg(e,t,n){return n===100&&e.charCodeAt(t+1)===97&&e.charCodeAt(t+2)===116&&e.charCodeAt(t+3)===97&&e.charCodeAt(t+4)===58}function fg(e,t,n){return n===101&&e.charCodeAt(t+1)===118&&e.charCodeAt(t+2)===101&&e.charCodeAt(t+3)===110&&e.charCodeAt(t+4)===116&&e.charCodeAt(t+5)===58}class vR extends TransformStream{constructor({onError:t,onRetry:n,onComment:r}={}){let o;super({start(s){o=gR({onEvent:i=>{s.enqueue(i)},onError(i){t==="terminate"?s.error(i):typeof t=="function"&&t(i)},onRetry:n,onComment:r})},transform(s){o.feed(s)}})}}var ti=({prefix:e,size:t=16,alphabet:n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{const o=()=>{const s=n.length,i=new Array(t);for(let a=0;a<t;a++)i[a]=n[Math.random()*s|0];return i.join("")};if(e==null)return o;if(n.includes(r))throw new j3({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${n}".`});return()=>`${e}${r}${o()}`},bR=ti();function ao(e){if(e==null)return{};const t={};if(e instanceof Headers)e.forEach((n,r)=>{t[r.toLowerCase()]=n});else{Array.isArray(e)||(e=Object.entries(e));for(const[n,r]of e)r!=null&&(t[n.toLowerCase()]=r)}return t}var yR=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,wR=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function pg(e){const t=JSON.parse(e);return t===null||typeof t!="object"||yR.test(e)===!1&&wR.test(e)===!1?t:xR(t)}function xR(e){let t=[e];for(;t.length;){const n=t;t=[];for(const r of n){if(Object.prototype.hasOwnProperty.call(r,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(r,"constructor")&&r.constructor!==null&&typeof r.constructor=="object"&&Object.prototype.hasOwnProperty.call(r.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const o in r){const s=r[o];s&&typeof s=="object"&&t.push(s)}}}return e}function CR(e){const{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch{return pg(e)}try{return pg(e)}finally{Error.stackTraceLimit=t}}function Zp(e){if(e.type==="object"||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;const{properties:n}=e;if(n!=null)for(const r of Object.keys(n))n[r]=_r(n[r])}e.items!=null&&(e.items=Array.isArray(e.items)?e.items.map(_r):_r(e.items)),e.anyOf!=null&&(e.anyOf=e.anyOf.map(_r)),e.allOf!=null&&(e.allOf=e.allOf.map(_r)),e.oneOf!=null&&(e.oneOf=e.oneOf.map(_r));const{definitions:t}=e;if(t!=null)for(const n of Object.keys(t))t[n]=_r(t[n]);return e}function _r(e){return typeof e=="boolean"?e:Zp(e)}var kR=Symbol("Let zodToJsonSchema decide on which parser to use"),mg={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},ER=e=>typeof e=="string"?{...mg,name:e}:{...mg,...e};function nn(){return{}}function SR(e,t){var n,r,o;const s={type:"array"};return(n=e.type)!=null&&n._def&&((o=(r=e.type)==null?void 0:r._def)==null?void 0:o.typeName)!==je.ZodAny&&(s.items=ze(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(s.minItems=e.minLength.value),e.maxLength&&(s.maxItems=e.maxLength.value),e.exactLength&&(s.minItems=e.exactLength.value,s.maxItems=e.exactLength.value),s}function $R(e){const t={type:"integer",format:"int64"};if(!e.checks)return t;for(const n of e.checks)switch(n.kind){case"min":n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value;break;case"max":n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value;break;case"multipleOf":t.multipleOf=n.value;break}return t}function OR(){return{type:"boolean"}}function VC(e,t){return ze(e.type._def,t)}var LR=(e,t)=>ze(e.innerType._def,t);function zC(e,t,n){const r=n??t.dateStrategy;if(Array.isArray(r))return{anyOf:r.map((o,s)=>zC(e,t,o))};switch(r){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return jR(e)}}var jR=e=>{const t={type:"integer",format:"unix-time"};for(const n of e.checks)switch(n.kind){case"min":t.minimum=n.value;break;case"max":t.maximum=n.value;break}return t};function RR(e,t){return{...ze(e.innerType._def,t),default:e.defaultValue()}}function PR(e,t){return t.effectStrategy==="input"?ze(e.schema._def,t):nn()}function MR(e){return{type:"string",enum:Array.from(e.values)}}var TR=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function IR(e,t){const n=[ze(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),ze(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(o=>!!o),r=[];return n.forEach(o=>{if(TR(o))r.push(...o.allOf);else{let s=o;if("additionalProperties"in o&&o.additionalProperties===!1){const{additionalProperties:i,...a}=o;s=a}r.push(s)}}),r.length?{allOf:r}:void 0}function AR(e){const t=typeof e.value;return t!=="bigint"&&t!=="number"&&t!=="boolean"&&t!=="string"?{type:Array.isArray(e.value)?"array":"object"}:{type:t==="bigint"?"integer":t,const:e.value}}var Uc=void 0,gn={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(Uc===void 0&&(Uc=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Uc),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function FC(e,t){const n={type:"string"};if(e.checks)for(const r of e.checks)switch(r.kind){case"min":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,r.value):r.value;break;case"max":n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,r.value):r.value;break;case"email":switch(t.emailStrategy){case"format:email":vn(n,"email",r.message,t);break;case"format:idn-email":vn(n,"idn-email",r.message,t);break;case"pattern:zod":Pt(n,gn.email,r.message,t);break}break;case"url":vn(n,"uri",r.message,t);break;case"uuid":vn(n,"uuid",r.message,t);break;case"regex":Pt(n,r.regex,r.message,t);break;case"cuid":Pt(n,gn.cuid,r.message,t);break;case"cuid2":Pt(n,gn.cuid2,r.message,t);break;case"startsWith":Pt(n,RegExp(`^${Gc(r.value,t)}`),r.message,t);break;case"endsWith":Pt(n,RegExp(`${Gc(r.value,t)}$`),r.message,t);break;case"datetime":vn(n,"date-time",r.message,t);break;case"date":vn(n,"date",r.message,t);break;case"time":vn(n,"time",r.message,t);break;case"duration":vn(n,"duration",r.message,t);break;case"length":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,r.value):r.value,n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,r.value):r.value;break;case"includes":{Pt(n,RegExp(Gc(r.value,t)),r.message,t);break}case"ip":{r.version!=="v6"&&vn(n,"ipv4",r.message,t),r.version!=="v4"&&vn(n,"ipv6",r.message,t);break}case"base64url":Pt(n,gn.base64url,r.message,t);break;case"jwt":Pt(n,gn.jwt,r.message,t);break;case"cidr":{r.version!=="v6"&&Pt(n,gn.ipv4Cidr,r.message,t),r.version!=="v4"&&Pt(n,gn.ipv6Cidr,r.message,t);break}case"emoji":Pt(n,gn.emoji(),r.message,t);break;case"ulid":{Pt(n,gn.ulid,r.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{vn(n,"binary",r.message,t);break}case"contentEncoding:base64":{n.contentEncoding="base64";break}case"pattern:zod":{Pt(n,gn.base64,r.message,t);break}}break}case"nanoid":Pt(n,gn.nanoid,r.message,t)}return n}function Gc(e,t){return t.patternStrategy==="escape"?NR(e):e}var _R=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function NR(e){let t="";for(let n=0;n<e.length;n++)_R.has(e[n])||(t+="\\"),t+=e[n];return t}function vn(e,t,n,r){var o;e.format||(o=e.anyOf)!=null&&o.some(s=>s.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...n&&r.errorMessages&&{errorMessage:{format:n}}})):e.format=t}function Pt(e,t,n,r){var o;e.pattern||(o=e.allOf)!=null&&o.some(s=>s.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:hg(t,r),...n&&r.errorMessages&&{errorMessage:{pattern:n}}})):e.pattern=hg(t,r)}function hg(e,t){var n;if(!t.applyRegexFlags||!e.flags)return e.source;const r={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},o=r.i?e.source.toLowerCase():e.source;let s="",i=!1,a=!1,u=!1;for(let l=0;l<o.length;l++){if(i){s+=o[l],i=!1;continue}if(r.i){if(a){if(o[l].match(/[a-z]/)){u?(s+=o[l],s+=`${o[l-2]}-${o[l]}`.toUpperCase(),u=!1):o[l+1]==="-"&&((n=o[l+2])!=null&&n.match(/[a-z]/))?(s+=o[l],u=!0):s+=`${o[l]}${o[l].toUpperCase()}`;continue}}else if(o[l].match(/[a-z]/)){s+=`[${o[l]}${o[l].toUpperCase()}]`;continue}}if(r.m){if(o[l]==="^"){s+=`(^|(?<=[\r
50
- ]))`;continue}else if(o[l]==="$"){s+=`($|(?=[\r
51
- ]))`;continue}}if(r.s&&o[l]==="."){s+=a?`${o[l]}\r
52
- `:`[${o[l]}\r
53
- ]`;continue}s+=o[l],o[l]==="\\"?i=!0:a&&o[l]==="]"?a=!1:!a&&o[l]==="["&&(a=!0)}try{new RegExp(s)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return s}function BC(e,t){var n,r,o,s,i,a;const u={type:"object",additionalProperties:(n=ze(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?n:t.allowedAdditionalProperties};if(((r=e.keyType)==null?void 0:r._def.typeName)===je.ZodString&&((o=e.keyType._def.checks)!=null&&o.length)){const{type:l,...d}=FC(e.keyType._def,t);return{...u,propertyNames:d}}else{if(((s=e.keyType)==null?void 0:s._def.typeName)===je.ZodEnum)return{...u,propertyNames:{enum:e.keyType._def.values}};if(((i=e.keyType)==null?void 0:i._def.typeName)===je.ZodBranded&&e.keyType._def.type._def.typeName===je.ZodString&&((a=e.keyType._def.type._def.checks)!=null&&a.length)){const{type:l,...d}=VC(e.keyType._def,t);return{...u,propertyNames:d}}}return u}function DR(e,t){if(t.mapStrategy==="record")return BC(e,t);const n=ze(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||nn(),r=ze(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||nn();return{type:"array",maxItems:125,items:{type:"array",items:[n,r],minItems:2,maxItems:2}}}function VR(e){const t=e.values,r=Object.keys(e.values).filter(s=>typeof t[t[s]]!="number").map(s=>t[s]),o=Array.from(new Set(r.map(s=>typeof s)));return{type:o.length===1?o[0]==="string"?"string":"number":["string","number"],enum:r}}function zR(){return{not:nn()}}function FR(){return{type:"null"}}var Ef={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function BR(e,t){const n=e.options instanceof Map?Array.from(e.options.values()):e.options;if(n.every(r=>r._def.typeName in Ef&&(!r._def.checks||!r._def.checks.length))){const r=n.reduce((o,s)=>{const i=Ef[s._def.typeName];return i&&!o.includes(i)?[...o,i]:o},[]);return{type:r.length>1?r:r[0]}}else if(n.every(r=>r._def.typeName==="ZodLiteral"&&!r.description)){const r=n.reduce((o,s)=>{const i=typeof s._def.value;switch(i){case"string":case"number":case"boolean":return[...o,i];case"bigint":return[...o,"integer"];case"object":if(s._def.value===null)return[...o,"null"];default:return o}},[]);if(r.length===n.length){const o=r.filter((s,i,a)=>a.indexOf(s)===i);return{type:o.length>1?o:o[0],enum:n.reduce((s,i)=>s.includes(i._def.value)?s:[...s,i._def.value],[])}}}else if(n.every(r=>r._def.typeName==="ZodEnum"))return{type:"string",enum:n.reduce((r,o)=>[...r,...o._def.values.filter(s=>!r.includes(s))],[])};return HR(e,t)}var HR=(e,t)=>{const n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((r,o)=>ze(r._def,{...t,currentPath:[...t.currentPath,"anyOf",`${o}`]})).filter(r=>!!r&&(!t.strictUnions||typeof r=="object"&&Object.keys(r).length>0));return n.length?{anyOf:n}:void 0};function WR(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[Ef[e.innerType._def.typeName],"null"]};const n=ze(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return n&&{anyOf:[n,{type:"null"}]}}function ZR(e){const t={type:"number"};if(!e.checks)return t;for(const n of e.checks)switch(n.kind){case"int":t.type="integer";break;case"min":n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value;break;case"max":n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value;break;case"multipleOf":t.multipleOf=n.value;break}return t}function UR(e,t){const n={type:"object",properties:{}},r=[],o=e.shape();for(const i in o){let a=o[i];if(a===void 0||a._def===void 0)continue;const u=KR(a),l=ze(a._def,{...t,currentPath:[...t.currentPath,"properties",i],propertyPath:[...t.currentPath,"properties",i]});l!==void 0&&(n.properties[i]=l,u||r.push(i))}r.length&&(n.required=r);const s=GR(e,t);return s!==void 0&&(n.additionalProperties=s),n}function GR(e,t){if(e.catchall._def.typeName!=="ZodNever")return ze(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function KR(e){try{return e.isOptional()}catch{return!0}}var YR=(e,t)=>{var n;if(t.currentPath.toString()===((n=t.propertyPath)==null?void 0:n.toString()))return ze(e.innerType._def,t);const r=ze(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return r?{anyOf:[{not:nn()},r]}:nn()},qR=(e,t)=>{if(t.pipeStrategy==="input")return ze(e.in._def,t);if(t.pipeStrategy==="output")return ze(e.out._def,t);const n=ze(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),r=ze(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",n?"1":"0"]});return{allOf:[n,r].filter(o=>o!==void 0)}};function XR(e,t){return ze(e.type._def,t)}function JR(e,t){const r={type:"array",uniqueItems:!0,items:ze(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(r.minItems=e.minSize.value),e.maxSize&&(r.maxItems=e.maxSize.value),r}function QR(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((n,r)=>ze(n._def,{...t,currentPath:[...t.currentPath,"items",`${r}`]})).reduce((n,r)=>r===void 0?n:[...n,r],[]),additionalItems:ze(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((n,r)=>ze(n._def,{...t,currentPath:[...t.currentPath,"items",`${r}`]})).reduce((n,r)=>r===void 0?n:[...n,r],[])}}function e9(){return{not:nn()}}function t9(){return nn()}var n9=(e,t)=>ze(e.innerType._def,t),r9=(e,t,n)=>{switch(t){case je.ZodString:return FC(e,n);case je.ZodNumber:return ZR(e);case je.ZodObject:return UR(e,n);case je.ZodBigInt:return $R(e);case je.ZodBoolean:return OR();case je.ZodDate:return zC(e,n);case je.ZodUndefined:return e9();case je.ZodNull:return FR();case je.ZodArray:return SR(e,n);case je.ZodUnion:case je.ZodDiscriminatedUnion:return BR(e,n);case je.ZodIntersection:return IR(e,n);case je.ZodTuple:return QR(e,n);case je.ZodRecord:return BC(e,n);case je.ZodLiteral:return AR(e);case je.ZodEnum:return MR(e);case je.ZodNativeEnum:return VR(e);case je.ZodNullable:return WR(e,n);case je.ZodOptional:return YR(e,n);case je.ZodMap:return DR(e,n);case je.ZodSet:return JR(e,n);case je.ZodLazy:return()=>e.getter()._def;case je.ZodPromise:return XR(e,n);case je.ZodNaN:case je.ZodNever:return zR();case je.ZodEffects:return PR(e,n);case je.ZodAny:return nn();case je.ZodUnknown:return t9();case je.ZodDefault:return RR(e,n);case je.ZodBranded:return VC(e,n);case je.ZodReadonly:return n9(e,n);case je.ZodCatch:return LR(e,n);case je.ZodPipeline:return qR(e,n);case je.ZodFunction:case je.ZodVoid:case je.ZodSymbol:return;default:return(r=>{})()}},o9=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString(),...t.slice(n)].join("/")};function ze(e,t,n=!1){var r;const o=t.seen.get(e);if(t.override){const u=(r=t.override)==null?void 0:r.call(t,e,t,o,n);if(u!==kR)return u}if(o&&!n){const u=s9(o,t);if(u!==void 0)return u}const s={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,s);const i=r9(e,e.typeName,t),a=typeof i=="function"?ze(i(),t):i;if(a&&i9(e,t,a),t.postProcess){const u=t.postProcess(a,e,t);return s.jsonSchema=a,u}return s.jsonSchema=a,a}var s9=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:o9(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((n,r)=>t.currentPath[r]===n)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),nn()):t.$refStrategy==="seen"?nn():void 0}},i9=(e,t,n)=>(e.description&&(n.description=e.description),n),a9=e=>{const t=ER(e),n=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([r,o])=>[o._def,{def:o._def,path:[...t.basePath,t.definitionPath,r],jsonSchema:void 0}]))}},c9=(e,t)=>{var n;const r=a9(t);let o=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((l,[d,f])=>{var p;return{...l,[d]:(p=ze(f._def,{...r,currentPath:[...r.basePath,r.definitionPath,d]},!0))!=null?p:nn()}},{}):void 0;const s=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,i=(n=ze(e._def,s===void 0?r:{...r,currentPath:[...r.basePath,r.definitionPath,s]},!1))!=null?n:nn(),a=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;a!==void 0&&(i.title=a);const u=s===void 0?o?{...i,[r.definitionPath]:o}:i:{$ref:[...r.$refStrategy==="relative"?[]:r.basePath,r.definitionPath,s].join("/"),[r.definitionPath]:{...o,[s]:i}};return u.$schema="http://json-schema.org/draft-07/schema#",u},Sf=Symbol.for("vercel.ai.schema");function l9(e){let t;return()=>(t==null&&(t=e()),t)}function sc(e,{validate:t}={}){return{[Sf]:!0,_type:void 0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function u9(e){return typeof e=="object"&&e!==null&&Sf in e&&e[Sf]===!0&&"jsonSchema"in e&&"validate"in e}function Up(e){return e==null?sc({properties:{},additionalProperties:!1}):u9(e)?e:"~standard"in e?e["~standard"].vendor==="zod"?HC(e):d9(e):e()}function d9(e){return sc(()=>Zp(e["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async t=>{const n=await e["~standard"].validate(t);return"value"in n?{success:!0,value:n.value}:{success:!1,error:new Lo({value:t,cause:n.issues})}}})}function f9(e,t){var n;const r=(n=void 0)!=null?n:!1;return sc(()=>c9(e,{$refStrategy:r?"root":"none"}),{validate:async o=>{const s=await e.safeParseAsync(o);return s.success?{success:!0,value:s.data}:{success:!1,error:s.error}}})}function p9(e,t){var n;const r=(n=void 0)!=null?n:!1;return sc(()=>Zp(XL(e,{target:"draft-7",io:"input",reused:r?"ref":"inline"})),{validate:async o=>{const s=await jC(e,o);return s.success?{success:!0,value:s.data}:{success:!1,error:s.error}}})}function m9(e){return"_zod"in e}function HC(e,t){return m9(e)?p9(e):f9(e)}async function gg({value:e,schema:t,context:n}){const r=await Vs({value:e,schema:t,context:n});if(!r.success)throw Lo.wrap({value:e,cause:r.error,context:n});return r.value}async function Vs({value:e,schema:t,context:n}){const r=Up(t);try{if(r.validate==null)return{success:!0,value:e,rawValue:e};const o=await r.validate(e);return o.success?{success:!0,value:o.value,rawValue:e}:{success:!1,error:Lo.wrap({value:e,cause:o.error,context:n}),rawValue:e}}catch(o){return{success:!1,error:Lo.wrap({value:e,cause:o,context:n}),rawValue:e}}}async function Kr({text:e,schema:t}){try{const n=CR(e);return t==null?{success:!0,value:n,rawValue:n}:await Vs({value:n,schema:t})}catch(n){return{success:!1,error:_h.isInstance(n)?n:new _h({text:e,cause:n}),rawValue:void 0}}}function h9({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new vR).pipeThrough(new TransformStream({async transform({data:n},r){n!=="[DONE]"&&r.enqueue(await Kr({text:n,schema:t}))}}))}async function ir(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}var g9=Object.defineProperty,v9=(e,t)=>{for(var n in t)g9(e,n,{get:t[n],enumerable:!0})},WC="AI_NoObjectGeneratedError",ZC=`vercel.ai.error.${WC}`,b9=Symbol.for(ZC),UC,fr=class extends _n{constructor({message:e="No object generated.",cause:t,text:n,response:r,usage:o,finishReason:s}){super({name:WC,message:e,cause:t}),this[UC]=!0,this.text=n,this.response=r,this.usage=o,this.finishReason=s}static isInstance(e){return _n.hasMarker(e,ZC)}};UC=b9;var GC="AI_UIMessageStreamError",KC=`vercel.ai.error.${GC}`,y9=Symbol.for(KC),YC,co=class extends _n{constructor({chunkType:e,chunkId:t,message:n}){super({name:GC,message:n}),this[YC]=!0,this.chunkType=e,this.chunkId=t}static isInstance(e){return _n.hasMarker(e,KC)}};YC=y9;var qC=Vt([ce(),xa(Uint8Array),xa(ArrayBuffer),DC(e=>{var t,n;return(n=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null?n:!1},{message:"Must be a Buffer"})]),zs=fR(()=>Vt([zj(),ce(),_j(),Tt(),Ns(ce(),zs.optional()),Fo(zs)])),Ie=Ns(ce(),Ns(ce(),zs.optional())),XC=Ze({type:xe("text"),text:ce(),providerOptions:Ie.optional()}),w9=Ze({type:xe("image"),image:Vt([qC,xa(URL)]),mediaType:ce().optional(),providerOptions:Ie.optional()}),JC=Ze({type:xe("file"),data:Vt([qC,xa(URL)]),filename:ce().optional(),mediaType:ce(),providerOptions:Ie.optional()}),x9=Ze({type:xe("reasoning"),text:ce(),providerOptions:Ie.optional()}),C9=Ze({type:xe("tool-call"),toolCallId:ce(),toolName:ce(),input:jn(),providerOptions:Ie.optional(),providerExecuted:Tt().optional()}),k9=Zj("type",[Ze({type:xe("text"),value:ce(),providerOptions:Ie.optional()}),Ze({type:xe("json"),value:zs,providerOptions:Ie.optional()}),Ze({type:xe("execution-denied"),reason:ce().optional(),providerOptions:Ie.optional()}),Ze({type:xe("error-text"),value:ce(),providerOptions:Ie.optional()}),Ze({type:xe("error-json"),value:zs,providerOptions:Ie.optional()}),Ze({type:xe("content"),value:Fo(Vt([Ze({type:xe("text"),text:ce(),providerOptions:Ie.optional()}),Ze({type:xe("media"),data:ce(),mediaType:ce()}),Ze({type:xe("file-data"),data:ce(),mediaType:ce(),filename:ce().optional(),providerOptions:Ie.optional()}),Ze({type:xe("file-url"),url:ce(),providerOptions:Ie.optional()}),Ze({type:xe("file-id"),fileId:Vt([ce(),Ns(ce(),ce())]),providerOptions:Ie.optional()}),Ze({type:xe("image-data"),data:ce(),mediaType:ce(),providerOptions:Ie.optional()}),Ze({type:xe("image-url"),url:ce(),providerOptions:Ie.optional()}),Ze({type:xe("image-file-id"),fileId:Vt([ce(),Ns(ce(),ce())]),providerOptions:Ie.optional()}),Ze({type:xe("custom"),providerOptions:Ie.optional()})]))})]),QC=Ze({type:xe("tool-result"),toolCallId:ce(),toolName:ce(),output:k9,providerOptions:Ie.optional()}),E9=Ze({type:xe("tool-approval-request"),approvalId:ce(),toolCallId:ce()}),S9=Ze({type:xe("tool-approval-response"),approvalId:ce(),approved:Tt(),reason:ce().optional()}),$9=Ze({role:xe("system"),content:ce(),providerOptions:Ie.optional()}),O9=Ze({role:xe("user"),content:Vt([ce(),Fo(Vt([XC,w9,JC]))]),providerOptions:Ie.optional()}),L9=Ze({role:xe("assistant"),content:Vt([ce(),Fo(Vt([XC,JC,x9,C9,QC,E9]))]),providerOptions:Ie.optional()}),j9=Ze({role:xe("tool"),content:Fo(Vt([QC,S9])),providerOptions:Ie.optional()});Vt([$9,O9,L9,j9]);function ek(e,t){if(e===void 0&&t===void 0)return;if(e===void 0)return t;if(t===void 0)return e;const n={...e};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const o=t[r];if(o===void 0)continue;const s=r in e?e[r]:void 0,i=o!==null&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp),a=s!=null&&typeof s=="object"&&!Array.isArray(s)&&!(s instanceof Date)&&!(s instanceof RegExp);i&&a?n[r]=ek(s,o):n[r]=o}return n}var R9={};v9(R9,{array:()=>I9,choice:()=>A9,json:()=>_9,object:()=>T9,text:()=>M9});function P9(e){const t=["ROOT"];let n=-1,r=null;function o(u,l,d){switch(u){case'"':{n=l,t.pop(),t.push(d),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{n=l,r=l,t.pop(),t.push(d),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(d),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{n=l,t.pop(),t.push(d),t.push("INSIDE_NUMBER");break}case"{":{n=l,t.pop(),t.push(d),t.push("INSIDE_OBJECT_START");break}case"[":{n=l,t.pop(),t.push(d),t.push("INSIDE_ARRAY_START");break}}}function s(u,l){switch(u){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{n=l,t.pop();break}}}function i(u,l){switch(u){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{n=l,t.pop();break}}}for(let u=0;u<e.length;u++){const l=e[u];switch(t[t.length-1]){case"ROOT":o(l,u,"FINISH");break;case"INSIDE_OBJECT_START":{switch(l){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{n=u,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{l==='"'&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break}case"INSIDE_OBJECT_KEY":{l==='"'&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break}case"INSIDE_OBJECT_AFTER_KEY":{l===":"&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break}case"INSIDE_OBJECT_BEFORE_VALUE":{o(l,u,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{s(l,u);break}case"INSIDE_STRING":{switch(l){case'"':{t.pop(),n=u;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:n=u}break}case"INSIDE_ARRAY_START":{l==="]"?(n=u,t.pop()):(n=u,o(l,u,"INSIDE_ARRAY_AFTER_VALUE"));break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(l){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{n=u,t.pop();break}default:{n=u;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{o(l,u,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),n=u;break}case"INSIDE_NUMBER":{switch(l){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{n=u;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(l,u),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(l,u);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(l,u);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(l,u);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{const f=e.substring(r,u+1);!"false".startsWith(f)&&!"true".startsWith(f)&&!"null".startsWith(f)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?s(l,u):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(l,u)):n=u;break}}}let a=e.slice(0,n+1);for(let u=t.length-1;u>=0;u--)switch(t[u]){case"INSIDE_STRING":{a+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{a+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{a+="]";break}case"INSIDE_LITERAL":{const d=e.substring(r,e.length);"true".startsWith(d)?a+="true".slice(d.length):"false".startsWith(d)?a+="false".slice(d.length):"null".startsWith(d)&&(a+="null".slice(d.length))}}return a}async function ni(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await Kr({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await Kr({text:P9(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var M9=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),async parseCompleteOutput({text:e}){return e},async parsePartialOutput({text:e}){return{partial:e}},createElementStreamTransform(){}}),T9=({schema:e,name:t,description:n})=>{const r=Up(e);return{name:"object",responseFormat:ir(r.jsonSchema).then(o=>({type:"json",schema:o,...t!=null&&{name:t},...n!=null&&{description:n}})),async parseCompleteOutput({text:o},s){const i=await Kr({text:o});if(!i.success)throw new fr({message:"No object generated: could not parse the response.",cause:i.error,text:o,response:s.response,usage:s.usage,finishReason:s.finishReason});const a=await Vs({value:i.value,schema:r});if(!a.success)throw new fr({message:"No object generated: response did not match schema.",cause:a.error,text:o,response:s.response,usage:s.usage,finishReason:s.finishReason});return a.value},async parsePartialOutput({text:o}){const s=await ni(o);switch(s.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:s.value}}},createElementStreamTransform(){}}},I9=({element:e,name:t,description:n})=>{const r=Up(e);return{name:"array",responseFormat:ir(r.jsonSchema).then(o=>{const{$schema:s,...i}=o;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{elements:{type:"array",items:i}},required:["elements"],additionalProperties:!1},...t!=null&&{name:t},...n!=null&&{description:n}}}),async parseCompleteOutput({text:o},s){const i=await Kr({text:o});if(!i.success)throw new fr({message:"No object generated: could not parse the response.",cause:i.error,text:o,response:s.response,usage:s.usage,finishReason:s.finishReason});const a=i.value;if(a==null||typeof a!="object"||!("elements"in a)||!Array.isArray(a.elements))throw new fr({message:"No object generated: response did not match schema.",cause:new Lo({value:a,cause:"response must be an object with an elements array"}),text:o,response:s.response,usage:s.usage,finishReason:s.finishReason});for(const u of a.elements){const l=await Vs({value:u,schema:r});if(!l.success)throw new fr({message:"No object generated: response did not match schema.",cause:l.error,text:o,response:s.response,usage:s.usage,finishReason:s.finishReason})}return a.elements},async parsePartialOutput({text:o}){const s=await ni(o);switch(s.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{const i=s.value;if(i==null||typeof i!="object"||!("elements"in i)||!Array.isArray(i.elements))return;const a=s.state==="repaired-parse"&&i.elements.length>0?i.elements.slice(0,-1):i.elements,u=[];for(const l of a){const d=await Vs({value:l,schema:r});d.success&&u.push(d.value)}return{partial:u}}}},createElementStreamTransform(){let o=0;return new TransformStream({transform({partialOutput:s},i){if(s!=null)for(;o<s.length;o++)i.enqueue(s[o])}})}}},A9=({options:e,name:t,description:n})=>({name:"choice",responseFormat:Promise.resolve({type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{result:{type:"string",enum:e}},required:["result"],additionalProperties:!1},...t!=null&&{name:t},...n!=null&&{description:n}}),async parseCompleteOutput({text:r},o){const s=await Kr({text:r});if(!s.success)throw new fr({message:"No object generated: could not parse the response.",cause:s.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});const i=s.value;if(i==null||typeof i!="object"||!("result"in i)||typeof i.result!="string"||!e.includes(i.result))throw new fr({message:"No object generated: response did not match schema.",cause:new Lo({value:i,cause:"response must be an object that contains a choice value."}),text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});return i.result},async parsePartialOutput({text:r}){const o=await ni(r);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{const s=o.value;if(s==null||typeof s!="object"||!("result"in s)||typeof s.result!="string")return;const i=e.filter(a=>a.startsWith(s.result));return o.state==="successful-parse"?i.includes(s.result)?{partial:s.result}:void 0:i.length===1?{partial:i[0]}:void 0}}},createElementStreamTransform(){}}),_9=({name:e,description:t}={})=>({name:"json",responseFormat:Promise.resolve({type:"json",...e!=null&&{name:e},...t!=null&&{description:t}}),async parseCompleteOutput({text:n},r){const o=await Kr({text:n});if(!o.success)throw new fr({message:"No object generated: could not parse the response.",cause:o.error,text:n,response:r.response,usage:r.usage,finishReason:r.finishReason});return o.value},async parsePartialOutput({text:n}){const r=await ni(n);switch(r.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return r.value===void 0?void 0:{partial:r.value}}},createElementStreamTransform(){}});ti({prefix:"aitxt",size:24});(class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)}
54
-
55
- `)},flush(e){e.enqueue(`data: [DONE]
56
-
57
- `)}})}});var N9=l9(()=>HC(Vt([qe({type:xe("text-start"),id:ce(),providerMetadata:Ie.optional()}),qe({type:xe("text-delta"),id:ce(),delta:ce(),providerMetadata:Ie.optional()}),qe({type:xe("text-end"),id:ce(),providerMetadata:Ie.optional()}),qe({type:xe("error"),errorText:ce()}),qe({type:xe("tool-input-start"),toolCallId:ce(),toolName:ce(),providerExecuted:Tt().optional(),providerMetadata:Ie.optional(),dynamic:Tt().optional(),title:ce().optional()}),qe({type:xe("tool-input-delta"),toolCallId:ce(),inputTextDelta:ce()}),qe({type:xe("tool-input-available"),toolCallId:ce(),toolName:ce(),input:jn(),providerExecuted:Tt().optional(),providerMetadata:Ie.optional(),dynamic:Tt().optional(),title:ce().optional()}),qe({type:xe("tool-input-error"),toolCallId:ce(),toolName:ce(),input:jn(),providerExecuted:Tt().optional(),providerMetadata:Ie.optional(),dynamic:Tt().optional(),errorText:ce(),title:ce().optional()}),qe({type:xe("tool-approval-request"),approvalId:ce(),toolCallId:ce()}),qe({type:xe("tool-output-available"),toolCallId:ce(),output:jn(),providerExecuted:Tt().optional(),providerMetadata:Ie.optional(),dynamic:Tt().optional(),preliminary:Tt().optional()}),qe({type:xe("tool-output-error"),toolCallId:ce(),errorText:ce(),providerExecuted:Tt().optional(),providerMetadata:Ie.optional(),dynamic:Tt().optional()}),qe({type:xe("tool-output-denied"),toolCallId:ce()}),qe({type:xe("reasoning-start"),id:ce(),providerMetadata:Ie.optional()}),qe({type:xe("reasoning-delta"),id:ce(),delta:ce(),providerMetadata:Ie.optional()}),qe({type:xe("reasoning-end"),id:ce(),providerMetadata:Ie.optional()}),qe({type:xe("source-url"),sourceId:ce(),url:ce(),title:ce().optional(),providerMetadata:Ie.optional()}),qe({type:xe("source-document"),sourceId:ce(),mediaType:ce(),title:ce(),filename:ce().optional(),providerMetadata:Ie.optional()}),qe({type:xe("file"),url:ce(),mediaType:ce(),providerMetadata:Ie.optional()}),qe({type:DC(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:ce().optional(),data:jn(),transient:Tt().optional()}),qe({type:xe("start-step")}),qe({type:xe("finish-step")}),qe({type:xe("start"),messageId:ce().optional(),messageMetadata:jn().optional()}),qe({type:xe("finish"),finishReason:AC(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:jn().optional()}),qe({type:xe("abort"),reason:ce().optional()}),qe({type:xe("message-metadata"),messageMetadata:jn()})])));function D9(e){return e.type.startsWith("data-")}function $f(e){return e.type.startsWith("tool-")}function tk(e){return e.type==="dynamic-tool"}function Fs(e){return $f(e)||tk(e)}function Of(e){return e.type.split("-").slice(1).join("-")}function V9(e){return tk(e)?e.toolName:Of(e)}function z9({lastMessage:e,messageId:t}){return{message:e?.role==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function F9({stream:e,messageMetadataSchema:t,dataPartSchemas:n,runUpdateMessageJob:r,onError:o,onToolCall:s,onData:i}){return e.pipeThrough(new TransformStream({async transform(a,u){await r(async({state:l,write:d})=>{var f,p,m,g;function y(v){const k=l.message.parts.filter(Fs).find(E=>E.toolCallId===v);if(k==null)throw new co({chunkType:"tool-invocation",chunkId:v,message:`No tool invocation found for tool call ID "${v}".`});return k}function x(v){var C;const k=l.message.parts.find(S=>$f(S)&&S.toolCallId===v.toolCallId),E=v,$=k;if(k!=null){k.state=v.state,$.input=E.input,$.output=E.output,$.errorText=E.errorText,$.rawInput=E.rawInput,$.preliminary=E.preliminary,v.title!==void 0&&($.title=v.title),$.providerExecuted=(C=E.providerExecuted)!=null?C:k.providerExecuted;const S=E.providerMetadata;if(S!=null)if(v.state==="output-available"||v.state==="output-error"){const j=k;j.resultProviderMetadata=S}else k.callProviderMetadata=S}else l.message.parts.push({type:`tool-${v.toolName}`,toolCallId:v.toolCallId,state:v.state,title:v.title,input:E.input,output:E.output,rawInput:E.rawInput,errorText:E.errorText,providerExecuted:E.providerExecuted,preliminary:E.preliminary,...E.providerMetadata!=null&&(v.state==="output-available"||v.state==="output-error")?{resultProviderMetadata:E.providerMetadata}:{},...E.providerMetadata!=null&&!(v.state==="output-available"||v.state==="output-error")?{callProviderMetadata:E.providerMetadata}:{}})}function w(v){var C,k;const E=l.message.parts.find(j=>j.type==="dynamic-tool"&&j.toolCallId===v.toolCallId),$=v,S=E;if(E!=null){E.state=v.state,S.toolName=v.toolName,S.input=$.input,S.output=$.output,S.errorText=$.errorText,S.rawInput=(C=$.rawInput)!=null?C:S.rawInput,S.preliminary=$.preliminary,v.title!==void 0&&(S.title=v.title),S.providerExecuted=(k=$.providerExecuted)!=null?k:E.providerExecuted;const j=$.providerMetadata;if(j!=null)if(v.state==="output-available"||v.state==="output-error"){const R=E;R.resultProviderMetadata=j}else E.callProviderMetadata=j}else l.message.parts.push({type:"dynamic-tool",toolName:v.toolName,toolCallId:v.toolCallId,state:v.state,input:$.input,output:$.output,errorText:$.errorText,preliminary:$.preliminary,providerExecuted:$.providerExecuted,title:v.title,...$.providerMetadata!=null&&(v.state==="output-available"||v.state==="output-error")?{resultProviderMetadata:$.providerMetadata}:{},...$.providerMetadata!=null&&!(v.state==="output-available"||v.state==="output-error")?{callProviderMetadata:$.providerMetadata}:{}})}async function b(v){if(v!=null){const C=l.message.metadata!=null?ek(l.message.metadata,v):v;t!=null&&await gg({value:C,schema:t,context:{field:"message.metadata",entityId:l.message.id}}),l.message.metadata=C}}switch(a.type){case"text-start":{const v={type:"text",text:"",providerMetadata:a.providerMetadata,state:"streaming"};l.activeTextParts[a.id]=v,l.message.parts.push(v),d();break}case"text-delta":{const v=l.activeTextParts[a.id];if(v==null)throw new co({chunkType:"text-delta",chunkId:a.id,message:`Received text-delta for missing text part with ID "${a.id}". Ensure a "text-start" chunk is sent before any "text-delta" chunks.`});v.text+=a.delta,v.providerMetadata=(f=a.providerMetadata)!=null?f:v.providerMetadata,d();break}case"text-end":{const v=l.activeTextParts[a.id];if(v==null)throw new co({chunkType:"text-end",chunkId:a.id,message:`Received text-end for missing text part with ID "${a.id}". Ensure a "text-start" chunk is sent before any "text-end" chunks.`});v.state="done",v.providerMetadata=(p=a.providerMetadata)!=null?p:v.providerMetadata,delete l.activeTextParts[a.id],d();break}case"reasoning-start":{const v={type:"reasoning",text:"",providerMetadata:a.providerMetadata,state:"streaming"};l.activeReasoningParts[a.id]=v,l.message.parts.push(v),d();break}case"reasoning-delta":{const v=l.activeReasoningParts[a.id];if(v==null)throw new co({chunkType:"reasoning-delta",chunkId:a.id,message:`Received reasoning-delta for missing reasoning part with ID "${a.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-delta" chunks.`});v.text+=a.delta,v.providerMetadata=(m=a.providerMetadata)!=null?m:v.providerMetadata,d();break}case"reasoning-end":{const v=l.activeReasoningParts[a.id];if(v==null)throw new co({chunkType:"reasoning-end",chunkId:a.id,message:`Received reasoning-end for missing reasoning part with ID "${a.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-end" chunks.`});v.providerMetadata=(g=a.providerMetadata)!=null?g:v.providerMetadata,v.state="done",delete l.activeReasoningParts[a.id],d();break}case"file":{l.message.parts.push({type:"file",mediaType:a.mediaType,url:a.url,...a.providerMetadata!=null?{providerMetadata:a.providerMetadata}:{}}),d();break}case"source-url":{l.message.parts.push({type:"source-url",sourceId:a.sourceId,url:a.url,title:a.title,providerMetadata:a.providerMetadata}),d();break}case"source-document":{l.message.parts.push({type:"source-document",sourceId:a.sourceId,mediaType:a.mediaType,title:a.title,filename:a.filename,providerMetadata:a.providerMetadata}),d();break}case"tool-input-start":{const v=l.message.parts.filter($f);l.partialToolCalls[a.toolCallId]={text:"",toolName:a.toolName,index:v.length,dynamic:a.dynamic,title:a.title},a.dynamic?w({toolCallId:a.toolCallId,toolName:a.toolName,state:"input-streaming",input:void 0,providerExecuted:a.providerExecuted,title:a.title,providerMetadata:a.providerMetadata}):x({toolCallId:a.toolCallId,toolName:a.toolName,state:"input-streaming",input:void 0,providerExecuted:a.providerExecuted,title:a.title,providerMetadata:a.providerMetadata}),d();break}case"tool-input-delta":{const v=l.partialToolCalls[a.toolCallId];if(v==null)throw new co({chunkType:"tool-input-delta",chunkId:a.toolCallId,message:`Received tool-input-delta for missing tool call with ID "${a.toolCallId}". Ensure a "tool-input-start" chunk is sent before any "tool-input-delta" chunks.`});v.text+=a.inputTextDelta;const{value:C}=await ni(v.text);v.dynamic?w({toolCallId:a.toolCallId,toolName:v.toolName,state:"input-streaming",input:C,title:v.title}):x({toolCallId:a.toolCallId,toolName:v.toolName,state:"input-streaming",input:C,title:v.title}),d();break}case"tool-input-available":{a.dynamic?w({toolCallId:a.toolCallId,toolName:a.toolName,state:"input-available",input:a.input,providerExecuted:a.providerExecuted,providerMetadata:a.providerMetadata,title:a.title}):x({toolCallId:a.toolCallId,toolName:a.toolName,state:"input-available",input:a.input,providerExecuted:a.providerExecuted,providerMetadata:a.providerMetadata,title:a.title}),d(),s&&!a.providerExecuted&&await s({toolCall:a});break}case"tool-input-error":{const v=l.message.parts.filter(Fs).find(k=>k.toolCallId===a.toolCallId);(v!=null?v.type==="dynamic-tool":!!a.dynamic)?w({toolCallId:a.toolCallId,toolName:a.toolName,state:"output-error",input:a.input,errorText:a.errorText,providerExecuted:a.providerExecuted,providerMetadata:a.providerMetadata}):x({toolCallId:a.toolCallId,toolName:a.toolName,state:"output-error",input:void 0,rawInput:a.input,errorText:a.errorText,providerExecuted:a.providerExecuted,providerMetadata:a.providerMetadata}),d();break}case"tool-approval-request":{const v=y(a.toolCallId);v.state="approval-requested",v.approval={id:a.approvalId},d();break}case"tool-output-denied":{const v=y(a.toolCallId);v.state="output-denied",d();break}case"tool-output-available":{const v=y(a.toolCallId);v.type==="dynamic-tool"?w({toolCallId:a.toolCallId,toolName:v.toolName,state:"output-available",input:v.input,output:a.output,preliminary:a.preliminary,providerExecuted:a.providerExecuted,providerMetadata:a.providerMetadata,title:v.title}):x({toolCallId:a.toolCallId,toolName:Of(v),state:"output-available",input:v.input,output:a.output,providerExecuted:a.providerExecuted,preliminary:a.preliminary,providerMetadata:a.providerMetadata,title:v.title}),d();break}case"tool-output-error":{const v=y(a.toolCallId);v.type==="dynamic-tool"?w({toolCallId:a.toolCallId,toolName:v.toolName,state:"output-error",input:v.input,errorText:a.errorText,providerExecuted:a.providerExecuted,providerMetadata:a.providerMetadata,title:v.title}):x({toolCallId:a.toolCallId,toolName:Of(v),state:"output-error",input:v.input,rawInput:v.rawInput,errorText:a.errorText,providerExecuted:a.providerExecuted,providerMetadata:a.providerMetadata,title:v.title}),d();break}case"start-step":{l.message.parts.push({type:"step-start"});break}case"finish-step":{l.activeTextParts={},l.activeReasoningParts={};break}case"start":{a.messageId!=null&&(l.message.id=a.messageId),await b(a.messageMetadata),(a.messageId!=null||a.messageMetadata!=null)&&d();break}case"finish":{a.finishReason!=null&&(l.finishReason=a.finishReason),await b(a.messageMetadata),a.messageMetadata!=null&&d();break}case"message-metadata":{await b(a.messageMetadata),a.messageMetadata!=null&&d();break}case"error":{o?.(new Error(a.errorText));break}default:if(D9(a)){if(n?.[a.type]!=null){const k=l.message.parts.findIndex($=>"id"in $&&"data"in $&&$.id===a.id&&$.type===a.type),E=k>=0?k:l.message.parts.length;await gg({value:a.data,schema:n[a.type],context:{field:`message.parts[${E}].data`,entityName:a.type,entityId:a.id}})}const v=a;if(v.transient){i?.(v);break}const C=v.id!=null?l.message.parts.find(k=>v.type===k.type&&v.id===k.id):void 0;C!=null?C.data=v.data:l.message.parts.push(v),i?.(v),d()}}u.enqueue(a)})}}))}async function B9({stream:e,onError:t}){const n=e.getReader();try{for(;;){const{done:r}=await n.read();if(r)break}}catch(r){t?.(r)}finally{n.releaseLock()}}ti({prefix:"aitxt",size:24});ti({prefix:"aiobj",size:24});var H9=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,n)=>{this.queue.push(async()=>{try{await e(),t()}catch(r){n(r)}}),this.processQueue()})}};ti({prefix:"aiobj",size:24});async function W9(e){if(e==null)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw new Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async t=>{const{name:n,type:r}=t,o=await new Promise((s,i)=>{const a=new FileReader;a.onload=u=>{var l;s((l=u.target)==null?void 0:l.result)},a.onerror=u=>i(u),a.readAsDataURL(t)});return{type:"file",mediaType:r,filename:n,url:o}}))}var Z9=class{constructor({api:e="/api/chat",credentials:t,headers:n,body:r,fetch:o,prepareSendMessagesRequest:s,prepareReconnectToStreamRequest:i}){this.api=e,this.credentials=t,this.headers=n,this.body=r,this.fetch=o,this.prepareSendMessagesRequest=s,this.prepareReconnectToStreamRequest=i}async sendMessages({abortSignal:e,...t}){var n,r,o,s,i;const a=await ir(this.body),u=await ir(this.headers),l=await ir(this.credentials),d={...ao(u),...ao(t.headers)},f=await((n=this.prepareSendMessagesRequest)==null?void 0:n.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...a,...t.body},headers:d,credentials:l,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),p=(r=f?.api)!=null?r:this.api,m=f?.headers!==void 0?ao(f.headers):d,g=f?.body!==void 0?f.body:{...a,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},y=(o=f?.credentials)!=null?o:l,w=await((s=this.fetch)!=null?s:globalThis.fetch)(p,{method:"POST",headers:{"Content-Type":"application/json",...m},body:JSON.stringify(g),credentials:y,signal:e});if(!w.ok)throw new Error((i=await w.text())!=null?i:"Failed to fetch the chat response.");if(!w.body)throw new Error("The response body is empty.");return this.processResponseStream(w.body)}async reconnectToStream(e){var t,n,r,o,s;const i=await ir(this.body),a=await ir(this.headers),u=await ir(this.credentials),l={...ao(a),...ao(e.headers)},d=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...i,...e.body},headers:l,credentials:u,requestMetadata:e.metadata})),f=(n=d?.api)!=null?n:`${this.api}/${e.chatId}/stream`,p=d?.headers!==void 0?ao(d.headers):l,m=(r=d?.credentials)!=null?r:u,y=await((o=this.fetch)!=null?o:globalThis.fetch)(f,{method:"GET",headers:p,credentials:m});if(y.status===204)return null;if(!y.ok)throw new Error((s=await y.text())!=null?s:"Failed to fetch the chat response.");if(!y.body)throw new Error("The response body is empty.");return this.processResponseStream(y.body)}},nk=class extends Z9{constructor(e={}){super(e)}processResponseStream(e){return h9({stream:e,schema:N9}).pipeThrough(new TransformStream({async transform(t,n){if(!t.success)throw t.error;n.enqueue(t.value)}}))}},U9=class{constructor({generateId:e=bR,id:t=e(),transport:n=new nk,messageMetadataSchema:r,dataPartSchemas:o,state:s,onError:i,onToolCall:a,onFinish:u,onData:l,sendAutomaticallyWhen:d}){this.activeResponse=void 0,this.jobExecutor=new H9,this.sendMessage=async(f,p)=>{var m,g,y,x;if(f==null){await this.makeRequest({trigger:"submit-message",messageId:(m=this.lastMessage)==null?void 0:m.id,...p});return}let w;if("text"in f||"files"in f?w={parts:[...Array.isArray(f.files)?f.files:await W9(f.files),..."text"in f&&f.text!=null?[{type:"text",text:f.text}]:[]]}:w=f,f.messageId!=null){const b=this.state.messages.findIndex(v=>v.id===f.messageId);if(b===-1)throw new Error(`message with id ${f.messageId} not found`);if(this.state.messages[b].role!=="user")throw new Error(`message with id ${f.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,b+1),this.state.replaceMessage(b,{...w,id:f.messageId,role:(g=w.role)!=null?g:"user",metadata:f.metadata})}else this.state.pushMessage({...w,id:(y=w.id)!=null?y:this.generateId(),role:(x=w.role)!=null?x:"user",metadata:f.metadata});await this.makeRequest({trigger:"submit-message",messageId:f.messageId,...p})},this.regenerate=async({messageId:f,...p}={})=>{const m=f==null?this.state.messages.length-1:this.state.messages.findIndex(g=>g.id===f);if(m===-1)throw new Error(`message ${f} not found`);this.state.messages=this.state.messages.slice(0,this.messages[m].role==="assistant"?m:m+1),await this.makeRequest({trigger:"regenerate-message",messageId:f,...p})},this.resumeStream=async(f={})=>{await this.makeRequest({trigger:"resume-stream",...f})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolApprovalResponse=async({id:f,approved:p,reason:m,options:g})=>this.jobExecutor.run(async()=>{const y=this.state.messages,x=y[y.length-1],w=b=>Fs(b)&&b.state==="approval-requested"&&b.approval.id===f?{...b,state:"approval-responded",approval:{id:f,approved:p,reason:m}}:b;this.state.replaceMessage(y.length-1,{...x,parts:x.parts.map(w)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(w)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(b=>{var v;b&&this.makeRequest({trigger:"submit-message",messageId:(v=this.lastMessage)==null?void 0:v.id,...g})})}),this.addToolOutput=async({state:f="output-available",toolCallId:p,output:m,errorText:g,options:y})=>this.jobExecutor.run(async()=>{const x=this.state.messages,w=x[x.length-1],b=v=>Fs(v)&&v.toolCallId===p?{...v,state:f,output:m,errorText:g}:v;this.state.replaceMessage(x.length-1,{...w,parts:w.parts.map(b)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(b)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(v=>{var C;v&&this.makeRequest({trigger:"submit-message",messageId:(C=this.lastMessage)==null?void 0:C.id,...y})})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var f;this.status!=="streaming"&&this.status!=="submitted"||(f=this.activeResponse)!=null&&f.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=n,this.generateId=e,this.messageMetadataSchema=r,this.dataPartSchemas=o,this.state=s,this.onError=i,this.onToolCall=a,this.onFinish=u,this.onData=l,this.sendAutomaticallyWhen=d}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async shouldSendAutomatically(){if(!this.sendAutomaticallyWhen)return!1;const e=this.sendAutomaticallyWhen({messages:this.state.messages});return e&&typeof e=="object"&&"then"in e?await e:e}async makeRequest({trigger:e,metadata:t,headers:n,body:r,messageId:o}){var s,i,a;let u;if(e==="resume-stream")try{const m=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:n,body:r});if(m==null)return;u=m}catch(m){this.onError&&m instanceof Error&&this.onError(m),this.setStatus({status:"error",error:m});return}this.setStatus({status:"submitted",error:void 0});const l=this.lastMessage;let d=!1,f=!1,p=!1;try{const m={state:z9({lastMessage:this.state.snapshot(l),messageId:this.generateId()}),abortController:new AbortController};m.abortController.signal.addEventListener("abort",()=>{d=!0}),this.activeResponse=m;let g;e==="resume-stream"?g=u:g=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:m.abortController.signal,metadata:t,headers:n,body:r,trigger:e,messageId:o});const y=x=>this.jobExecutor.run(()=>x({state:m.state,write:()=>{var w;this.setStatus({status:"streaming"}),m.state.message.id===((w=this.lastMessage)==null?void 0:w.id)?this.state.replaceMessage(this.state.messages.length-1,m.state.message):this.state.pushMessage(m.state.message)}}));await B9({stream:F9({stream:g,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:y,onError:x=>{throw x}}),onError:x=>{throw x}}),this.setStatus({status:"ready"})}catch(m){if(d||m.name==="AbortError")return d=!0,this.setStatus({status:"ready"}),null;p=!0,m instanceof TypeError&&(m.message.toLowerCase().includes("fetch")||m.message.toLowerCase().includes("network"))&&(f=!0),this.onError&&m instanceof Error&&this.onError(m),this.setStatus({status:"error",error:m})}finally{try{(i=this.onFinish)==null||i.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:d,isDisconnect:f,isError:p,finishReason:(s=this.activeResponse)==null?void 0:s.state.finishReason})}catch(m){console.error(m)}this.activeResponse=void 0}!p&&await this.shouldSendAutomatically()&&await this.makeRequest({trigger:"submit-message",messageId:(a=this.lastMessage)==null?void 0:a.id,metadata:t,headers:n,body:r})}},Kc,vg;function G9(){if(vg)return Kc;vg=1;function e(t,n){if(typeof t!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof t}\`.`);let r,o=0;return function(...i){clearTimeout(r);const a=Date.now(),u=a-o,l=n-u;l<=0?(o=a,t.apply(this,i)):r=setTimeout(()=>{o=Date.now(),t.apply(this,i)},l)}}return Kc=e,Kc}var K9=G9();const Y9=l6(K9);var Yc={exports:{}},qc={};var bg;function q9(){if(bg)return qc;bg=1;var e=Qa();function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function a(f,p){var m=p(),g=r({inst:{value:m,getSnapshot:p}}),y=g[0].inst,x=g[1];return s(function(){y.value=m,y.getSnapshot=p,u(y)&&x({inst:y})},[f,m,p]),o(function(){return u(y)&&x({inst:y}),f(function(){u(y)&&x({inst:y})})},[f]),i(m),m}function u(f){var p=f.getSnapshot;f=f.value;try{var m=p();return!n(f,m)}catch{return!0}}function l(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:a;return qc.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,qc}var yg;function rk(){return yg||(yg=1,Yc.exports=q9()),Yc.exports}var X9=rk(),ok=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Xe=(e,t,n)=>(ok(e,t,"read from private field"),n?n.call(e):t.get(e)),On=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},or=(e,t,n,r)=>(ok(e,t,"write to private field"),t.set(e,n),n);function J9(e,t){return t!=null?Y9(e,t):e}var an,Gi,Ki,ms,hs,gs,lo,Lf,jf,Q9=class{constructor(e=[]){On(this,an,void 0),On(this,Gi,"ready"),On(this,Ki,void 0),On(this,ms,new Set),On(this,hs,new Set),On(this,gs,new Set),this.pushMessage=t=>{or(this,an,Xe(this,an).concat(t)),Xe(this,lo).call(this)},this.popMessage=()=>{or(this,an,Xe(this,an).slice(0,-1)),Xe(this,lo).call(this)},this.replaceMessage=(t,n)=>{or(this,an,[...Xe(this,an).slice(0,t),this.snapshot(n),...Xe(this,an).slice(t+1)]),Xe(this,lo).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,n)=>{const r=n?J9(t,n):t;return Xe(this,ms).add(r),()=>{Xe(this,ms).delete(r)}},this["~registerStatusCallback"]=t=>(Xe(this,hs).add(t),()=>{Xe(this,hs).delete(t)}),this["~registerErrorCallback"]=t=>(Xe(this,gs).add(t),()=>{Xe(this,gs).delete(t)}),On(this,lo,()=>{Xe(this,ms).forEach(t=>t())}),On(this,Lf,()=>{Xe(this,hs).forEach(t=>t())}),On(this,jf,()=>{Xe(this,gs).forEach(t=>t())}),or(this,an,e)}get status(){return Xe(this,Gi)}set status(e){or(this,Gi,e),Xe(this,Lf).call(this)}get error(){return Xe(this,Ki)}set error(e){or(this,Ki,e),Xe(this,jf).call(this)}get messages(){return Xe(this,an)}set messages(e){or(this,an,[...e]),Xe(this,lo).call(this)}};an=new WeakMap;Gi=new WeakMap;Ki=new WeakMap;ms=new WeakMap;hs=new WeakMap;gs=new WeakMap;lo=new WeakMap;Lf=new WeakMap;jf=new WeakMap;var uo,wg=class extends U9{constructor({messages:e,...t}){const n=new Q9(e);super({...t,state:n}),On(this,uo,void 0),this["~registerMessagesCallback"]=(r,o)=>Xe(this,uo)["~registerMessagesCallback"](r,o),this["~registerStatusCallback"]=r=>Xe(this,uo)["~registerStatusCallback"](r),this["~registerErrorCallback"]=r=>Xe(this,uo)["~registerErrorCallback"](r),or(this,uo,n)}};uo=new WeakMap;function eP({experimental_throttle:e,resume:t=!1,...n}={}){const r=c.useRef("chat"in n?{}:{onToolCall:n.onToolCall,onData:n.onData,onFinish:n.onFinish,onError:n.onError,sendAutomaticallyWhen:n.sendAutomaticallyWhen});"chat"in n||(r.current={onToolCall:n.onToolCall,onData:n.onData,onFinish:n.onFinish,onError:n.onError,sendAutomaticallyWhen:n.sendAutomaticallyWhen});const o={...n,onToolCall:p=>{var m,g;return(g=(m=r.current).onToolCall)==null?void 0:g.call(m,p)},onData:p=>{var m,g;return(g=(m=r.current).onData)==null?void 0:g.call(m,p)},onFinish:p=>{var m,g;return(g=(m=r.current).onFinish)==null?void 0:g.call(m,p)},onError:p=>{var m,g;return(g=(m=r.current).onError)==null?void 0:g.call(m,p)},sendAutomaticallyWhen:p=>{var m,g,y;return(y=(g=(m=r.current).sendAutomaticallyWhen)==null?void 0:g.call(m,p))!=null?y:!1}},s=c.useRef("chat"in n?n.chat:new wg(o));("chat"in n&&n.chat!==s.current||"id"in n&&s.current.id!==n.id)&&(s.current="chat"in n?n.chat:new wg(o));const a=c.useCallback(p=>s.current["~registerMessagesCallback"](p,e),[e,s.current.id]),u=c.useSyncExternalStore(a,()=>s.current.messages,()=>s.current.messages),l=c.useSyncExternalStore(s.current["~registerStatusCallback"],()=>s.current.status,()=>s.current.status),d=c.useSyncExternalStore(s.current["~registerErrorCallback"],()=>s.current.error,()=>s.current.error),f=c.useCallback(p=>{typeof p=="function"&&(p=p(s.current.messages)),s.current.messages=p},[s]);return c.useEffect(()=>{t&&s.current.resumeStream()},[t,s]),{id:s.current.id,messages:u,setMessages:f,sendMessage:s.current.sendMessage,regenerate:s.current.regenerate,clearError:s.current.clearError,stop:s.current.stop,error:d,resumeStream:s.current.resumeStream,status:l,addToolResult:s.current.addToolOutput,addToolOutput:s.current.addToolOutput,addToolApprovalResponse:s.current.addToolApprovalResponse}}function sk(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 s=Array.from(o,i=>i.toString(16).padStart(2,"0")).join("").slice(0,t);return e?`${e}_${s}`:s}const r=Math.random().toString(36).slice(2,2+t);return e?`${e}_${r}`:r}const tP=200,nP=()=>Date.now(),rP=()=>sk("h",12),oP=e=>e instanceof Error?{name:e.name,message:e.message}:{message:String(e)},sP=()=>{const e=globalThis;return e.H_OBSERVABILITY===!0||e.H_DEBUG===!0};class iP{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 aP{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 cP{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 s={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(s),s}}class lP{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=oP(t),n&&(this.event.data={...this.event.data,...n}),this.owner.emit({...this.event}),this.event}}class uP{constructor(t){this.owner=t}owner;start(t,n={}){const r=this.owner.createId(),o=this.owner.now(),s={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 lP(this.owner,s)}}class Gp{logger=new aP(this);metrics=new cP(this);trace=new uP(this);sinks=new iP;buffer=[];maxBufferSize;enabled;nowFn;createIdFn;constructor(t={}){this.enabled=t.enabled??!0,this.maxBufferSize=Math.max(0,t.maxBufferSize??tP),this.nowFn=t.now??nP,this.createIdFn=t.createId??rP}static global(t={}){return new Gp({...t,enabled:t.enabled??sP()})}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 en=Gp.global();function ik(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function dP(e,t){const n=e.toLowerCase();return n.includes("secret")||n.includes("token")||n.includes("password")||n.includes("apikey")||n.includes("api_key")||t[0]==="set_environment_variable"&&n==="value"}function Bs(e,t=[]){if(Array.isArray(e))return e.map(r=>Bs(r,t));if(!ik(e))return e;const n={};for(const[r,o]of Object.entries(e))n[r]=dP(r,t)?"[redacted]":Bs(o,[...t,r]);return n}function fP(e){if(e)return e instanceof Error?{name:e.name,message:e.message}:ik(e)?Bs(e):{message:String(e)}}function pP(e,t=en){const n=e.status??"started",r=n==="failed"?"error":"info";return t.logger[r]("hudson.agent.action",{category:"agent-action",data:{triggeredBy:"agent",source:e.source??"external",origin:e.origin,actor:e.actor,status:n,toolset:e.toolset,chatId:e.chatId,action:e.action,commandId:e.commandId,appId:e.appId,appName:e.appName,workspaceId:e.workspaceId,workspaceName:e.workspaceName,traceId:e.traceId,parentTraceId:e.parentTraceId,args:e.args?Bs(e.args,[e.action??""]):void 0,metadata:e.metadata?Bs(e.metadata):void 0,error:fP(e.error)}})}const mP=c.createContext({});function hP(){return c.useContext(mP)}const gP="about:blank";function vP(e){const t={};for(const n of e.attachmentsRef.current??[])if(e.activeAttachmentsRef.current.has(n.label)){const r=n.content();r!==null&&(t[n.label.toLowerCase()]=r)}return{toolset:e.toolsetRef.current,context:{...e.contextRef.current,...t},mode:e.modeRef.current,provider:e.providerRef.current,model:e.modelRef.current,effort:e.effortRef.current}}function bP(e,t){e.current?.(t)}function Xc(e,t){e.current?.(t)}function ks(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function At(e){return typeof e=="string"&&e.trim()?e:void 0}function yP(e,t){if(!(!t||!ks(e)||!Array.isArray(e.commands)))return e.commands.find(n=>ks(n)&&n.id===t)}function wP(e){if(!ks(e))return{};const t=ks(e.scope)?e.scope:void 0,n=ks(e.workspace)?e.workspace:void 0;return{workspaceId:At(t?.workspaceId)??At(n?.id),workspaceName:At(t?.workspaceName)??At(n?.name)}}function xP(e){const t=e?.parentTraceId;return At(typeof t=="function"?t():t)}function Jc(e){const t=yP(e.context,At(e.args.commandId)),n=wP(e.context),r=e.trace?.appId??At(e.args.appId)??At(e.args.targetAppId)??At(t?.appId),o=e.trace?.appName??At(e.args.appName)??At(e.args.targetAppName)??At(t?.appName),s=e.trace?.workspaceId??At(e.args.workspaceId)??n.workspaceId,i=e.trace?.workspaceName??n.workspaceName;pP({source:e.trace?.source??"useHudsonAI",status:e.status,toolset:e.toolset,chatId:e.chatId,action:e.toolName,commandId:At(e.args.commandId),appId:r,appName:o,workspaceId:s,workspaceName:i,traceId:e.traceId,parentTraceId:xP(e.trace),args:e.args,error:e.error})}function CP({api:e,toolset:t,chatId:n,initialMessages:r,context:o,onToolCall:s,mode:i,attachments:a,provider:u,model:l,effort:d,onFinish:f,onError:p,agentTrace:m}){const g=hP(),y=e??g.aiChat,x=c.useRef(s),w=c.useRef(f),b=c.useRef(p),v=c.useRef(m),[C,k]=c.useState(new Set),E=c.useCallback(K=>{k(ue=>{const se=new Set(ue);return se.has(K)?se.delete(K):se.add(K),se})},[]),[$]=It("hudson.settings",{}),S=i??$.aiMode??"api",j=c.useRef(C),R=c.useRef(a),T=c.useRef(o),A=c.useRef(t),L=c.useRef(S),V=c.useRef(u),I=c.useRef(l),_=c.useRef(d);c.useEffect(()=>{x.current=s},[s]),c.useEffect(()=>{w.current=f},[f]),c.useEffect(()=>{b.current=p},[p]),c.useEffect(()=>{v.current=m},[m]),c.useEffect(()=>{j.current=C},[C]),c.useEffect(()=>{R.current=a},[a]),c.useEffect(()=>{T.current=o},[o]),c.useEffect(()=>{A.current=t},[t]),c.useEffect(()=>{L.current=S},[S]),c.useEffect(()=>{V.current=u},[u]),c.useEffect(()=>{I.current=l},[l]),c.useEffect(()=>{_.current=d},[d]);const N=c.useMemo(()=>new nk({api:y??gP,body:()=>vP({activeAttachmentsRef:j,attachmentsRef:R,contextRef:T,toolsetRef:A,modeRef:L,providerRef:V,modelRef:I,effortRef:_})}),[y]),O=c.useCallback(async({toolCall:K})=>{if(!x.current)return;const ue=K.input&&typeof K.input=="object"&&!Array.isArray(K.input)?K.input:{},se=sk("tr");try{Jc({toolset:A.current,chatId:n,toolName:K.toolName,args:ue,context:T.current,trace:v.current,status:"started",traceId:se}),await x.current(K.toolName,ue),Jc({toolset:A.current,chatId:n,toolName:K.toolName,args:ue,context:T.current,trace:v.current,status:"completed",traceId:se})}catch(re){const oe=re instanceof Error?re:new Error(String(re));throw Jc({toolset:A.current,chatId:n,toolName:K.toolName,args:ue,context:T.current,trace:v.current,status:"failed",traceId:se,error:oe}),Xc(b,oe),oe}},[n]),z=eP({id:n,messages:r,transport:N,onToolCall:O,onFinish:K=>bP(w,K),onError:K=>Xc(b,K)}),M=c.useCallback(()=>{z.setMessages([])},[z]),q=c.useCallback((...K)=>{if(y)return z.sendMessage(...K);const ue=new Error("Hudson AI is not configured for this host. Provide useHudsonAI({ api }) or WorkspaceShell environment.routes.aiChat.");return Xc(b,ue),Promise.reject(ue)},[z,y]),{messages:ee}=z;return{messages:ee,sendMessage:q,stop:z.stop,status:z.status,setMessages:z.setMessages,clearChat:M,error:z.error,mode:S,attachments:a??[],activeAttachments:C,toggleAttachment:E}}function kP({app:e,commands:t,state:n,provider:r,model:o,onFinish:s}){const i=c.useMemo(()=>(e.intents??[]).map(l=>({commandId:l.commandId,title:l.title,description:l.description,category:l.category,keywords:l.keywords,shortcut:l.shortcut,dangerous:l.dangerous,params:l.params?.map(d=>({name:d.name,description:d.description,type:d.type,optional:d.optional,enum:d.enum}))})),[e.intents]),a=c.useMemo(()=>({appId:e.id,appName:e.name,appDescription:e.description,intents:i,state:n}),[e.id,e.name,e.description,i,n]),u=c.useCallback(l=>{const d=t.find(f=>f.id===l);if(!d){console.warn(`[useAssistant] no command for id "${l}"`);return}d.action()},[t]);return CP({toolset:"intents",context:a,provider:r,model:o,onFinish:s,onToolCall:(l,d)=>{if(l!=="dispatch")return;const f=d.commandId;typeof f=="string"&&u(f)}})}const Po={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}},EP=Po.panels,F=fx.createContext({});var SP=Object.defineProperty,xg=Object.getOwnPropertySymbols,$P=Object.prototype.hasOwnProperty,OP=Object.prototype.propertyIsEnumerable,Cg=(e,t,n)=>t in e?SP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qc=(e,t)=>{for(var n in t||(t={}))$P.call(t,n)&&Cg(e,n,t[n]);if(xg)for(var n of xg(t))OP.call(t,n)&&Cg(e,n,t[n]);return e};const LP=(e,t)=>{const n=c.useContext(F),r=Qc(Qc({},n),e);return c.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),c.createElement("path",{d:"M3 12H6L9 3L15 21L18 12H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},jP=c.forwardRef(LP);var RP=jP,PP=Object.defineProperty,kg=Object.getOwnPropertySymbols,MP=Object.prototype.hasOwnProperty,TP=Object.prototype.propertyIsEnumerable,Eg=(e,t,n)=>t in e?PP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,el=(e,t)=>{for(var n in t||(t={}))MP.call(t,n)&&Eg(e,n,t[n]);if(kg)for(var n of kg(t))TP.call(t,n)&&Eg(e,n,t[n]);return e};const IP=(e,t)=>{const n=c.useContext(F),r=el(el({},n),e);return c.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),c.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"}),c.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"}),c.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"}),c.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"}),c.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"}))},AP=c.forwardRef(IP);var _P=AP,NP=Object.defineProperty,Sg=Object.getOwnPropertySymbols,DP=Object.prototype.hasOwnProperty,VP=Object.prototype.propertyIsEnumerable,$g=(e,t,n)=>t in e?NP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tl=(e,t)=>{for(var n in t||(t={}))DP.call(t,n)&&$g(e,n,t[n]);if(Sg)for(var n of Sg(t))VP.call(t,n)&&$g(e,n,t[n]);return e};const zP=(e,t)=>{const n=c.useContext(F),r=tl(tl({},n),e);return c.createElement("svg",tl({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),c.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"}),c.createElement("path",{d:"M2 7L22 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M5 5.01L5.01 4.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M8 5.01L8.01 4.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M11 5.01L11.01 4.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},FP=c.forwardRef(zP);var BP=FP,HP=Object.defineProperty,Og=Object.getOwnPropertySymbols,WP=Object.prototype.hasOwnProperty,ZP=Object.prototype.propertyIsEnumerable,Lg=(e,t,n)=>t in e?HP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nl=(e,t)=>{for(var n in t||(t={}))WP.call(t,n)&&Lg(e,n,t[n]);if(Og)for(var n of Og(t))ZP.call(t,n)&&Lg(e,n,t[n]);return e};const UP=(e,t)=>{const n=c.useContext(F),r=nl(nl({},n),e);return c.createElement("svg",nl({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),c.createElement("path",{d:"M12 3L12 21M12 21L20.5 12.5M12 21L3.5 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},GP=c.forwardRef(UP);var KP=GP,YP=Object.defineProperty,jg=Object.getOwnPropertySymbols,qP=Object.prototype.hasOwnProperty,XP=Object.prototype.propertyIsEnumerable,Rg=(e,t,n)=>t in e?YP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rl=(e,t)=>{for(var n in t||(t={}))qP.call(t,n)&&Rg(e,n,t[n]);if(jg)for(var n of jg(t))XP.call(t,n)&&Rg(e,n,t[n]);return e};const JP=(e,t)=>{const n=c.useContext(F),r=rl(rl({},n),e);return c.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),c.createElement("path",{d:"M3 12L21 12M21 12L12.5 3.5M21 12L12.5 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},QP=c.forwardRef(JP);var eM=QP,tM=Object.defineProperty,Pg=Object.getOwnPropertySymbols,nM=Object.prototype.hasOwnProperty,rM=Object.prototype.propertyIsEnumerable,Mg=(e,t,n)=>t in e?tM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ol=(e,t)=>{for(var n in t||(t={}))nM.call(t,n)&&Mg(e,n,t[n]);if(Pg)for(var n of Pg(t))rM.call(t,n)&&Mg(e,n,t[n]);return e};const oM=(e,t)=>{const n=c.useContext(F),r=ol(ol({},n),e);return c.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),c.createElement("path",{d:"M17 8L12 3L7 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M17 16L12 21L7 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},sM=c.forwardRef(oM);var iM=sM,aM=Object.defineProperty,Tg=Object.getOwnPropertySymbols,cM=Object.prototype.hasOwnProperty,lM=Object.prototype.propertyIsEnumerable,Ig=(e,t,n)=>t in e?aM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sl=(e,t)=>{for(var n in t||(t={}))cM.call(t,n)&&Ig(e,n,t[n]);if(Tg)for(var n of Tg(t))lM.call(t,n)&&Ig(e,n,t[n]);return e};const uM=(e,t)=>{const n=c.useContext(F),r=sl(sl({},n),e);return c.createElement("svg",sl({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),c.createElement("path",{d:"M17 4L12 9L7 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M17 20L12 15L7 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},dM=c.forwardRef(uM);var fM=dM,pM=Object.defineProperty,Ag=Object.getOwnPropertySymbols,mM=Object.prototype.hasOwnProperty,hM=Object.prototype.propertyIsEnumerable,_g=(e,t,n)=>t in e?pM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,il=(e,t)=>{for(var n in t||(t={}))mM.call(t,n)&&_g(e,n,t[n]);if(Ag)for(var n of Ag(t))hM.call(t,n)&&_g(e,n,t[n]);return e};const gM=(e,t)=>{const n=c.useContext(F),r=il(il({},n),e);return c.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),c.createElement("path",{d:"M12 21L12 3M12 3L20.5 11.5M12 3L3.5 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},vM=c.forwardRef(gM);var bM=vM,yM=Object.defineProperty,Ng=Object.getOwnPropertySymbols,wM=Object.prototype.hasOwnProperty,xM=Object.prototype.propertyIsEnumerable,Dg=(e,t,n)=>t in e?yM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,al=(e,t)=>{for(var n in t||(t={}))wM.call(t,n)&&Dg(e,n,t[n]);if(Ng)for(var n of Ng(t))xM.call(t,n)&&Dg(e,n,t[n]);return e};const CM=(e,t)=>{const n=c.useContext(F),r=al(al({},n),e);return c.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),c.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"}))},kM=c.forwardRef(CM);var EM=kM,SM=Object.defineProperty,Vg=Object.getOwnPropertySymbols,$M=Object.prototype.hasOwnProperty,OM=Object.prototype.propertyIsEnumerable,zg=(e,t,n)=>t in e?SM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cl=(e,t)=>{for(var n in t||(t={}))$M.call(t,n)&&zg(e,n,t[n]);if(Vg)for(var n of Vg(t))OM.call(t,n)&&zg(e,n,t[n]);return e};const LM=(e,t)=>{const n=c.useContext(F),r=cl(cl({},n),e);return c.createElement("svg",cl({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),c.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"}),c.createElement("path",{d:"M9 7L15 7",stroke:"currentColor",strokeLinecap:"round"}),c.createElement("path",{d:"M6.5 15L19 15",stroke:"currentColor",strokeLinecap:"round"}),c.createElement("path",{d:"M6.5 18L19 18",stroke:"currentColor",strokeLinecap:"round"}),c.createElement("path",{d:"M6.5 21L19 21",stroke:"currentColor",strokeLinecap:"round"}),c.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"}),c.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"}))},jM=c.forwardRef(LM);var RM=jM,PM=Object.defineProperty,Fg=Object.getOwnPropertySymbols,MM=Object.prototype.hasOwnProperty,TM=Object.prototype.propertyIsEnumerable,Bg=(e,t,n)=>t in e?PM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ll=(e,t)=>{for(var n in t||(t={}))MM.call(t,n)&&Bg(e,n,t[n]);if(Fg)for(var n of Fg(t))TM.call(t,n)&&Bg(e,n,t[n]);return e};const IM=(e,t)=>{const n=c.useContext(F),r=ll(ll({},n),e);return c.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),c.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"}),c.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"}),c.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"}))},AM=c.forwardRef(IM);var _M=AM,NM=Object.defineProperty,Hg=Object.getOwnPropertySymbols,DM=Object.prototype.hasOwnProperty,VM=Object.prototype.propertyIsEnumerable,Wg=(e,t,n)=>t in e?NM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ul=(e,t)=>{for(var n in t||(t={}))DM.call(t,n)&&Wg(e,n,t[n]);if(Hg)for(var n of Hg(t))VM.call(t,n)&&Wg(e,n,t[n]);return e};const zM=(e,t)=>{const n=c.useContext(F),r=ul(ul({},n),e);return c.createElement("svg",ul({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),c.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"}),c.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"}),c.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"}),c.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"}),c.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"}),c.createElement("path",{d:"M12 7C12 8.65685 13.3431 10 15 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}),c.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"}),c.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"}),c.createElement("path",{d:"M14 22C12.8954 22 12 21.1046 12 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M18.6667 16L17 19H21L19.3333 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},FM=c.forwardRef(zM);var BM=FM,HM=Object.defineProperty,Zg=Object.getOwnPropertySymbols,WM=Object.prototype.hasOwnProperty,ZM=Object.prototype.propertyIsEnumerable,Ug=(e,t,n)=>t in e?HM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dl=(e,t)=>{for(var n in t||(t={}))WM.call(t,n)&&Ug(e,n,t[n]);if(Zg)for(var n of Zg(t))ZM.call(t,n)&&Ug(e,n,t[n]);return e};const UM=(e,t)=>{const n=c.useContext(F),r=dl(dl({},n),e);return c.createElement("svg",dl({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),c.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"}),c.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"}),c.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"}),c.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"}),c.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"}),c.createElement("path",{d:"M12 7C12 8.65685 13.3431 10 15 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}),c.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"}),c.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"}),c.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"}),c.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"}))},GM=c.forwardRef(UM);var KM=GM,YM=Object.defineProperty,Gg=Object.getOwnPropertySymbols,qM=Object.prototype.hasOwnProperty,XM=Object.prototype.propertyIsEnumerable,Kg=(e,t,n)=>t in e?YM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fl=(e,t)=>{for(var n in t||(t={}))qM.call(t,n)&&Kg(e,n,t[n]);if(Gg)for(var n of Gg(t))XM.call(t,n)&&Kg(e,n,t[n]);return e};const JM=(e,t)=>{const n=c.useContext(F),r=fl(fl({},n),e);return c.createElement("svg",fl({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),c.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"}),c.createElement("path",{d:"M11.6667 8L10 12H14L12.3333 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},QM=c.forwardRef(JM);var e7=QM,t7=Object.defineProperty,Yg=Object.getOwnPropertySymbols,n7=Object.prototype.hasOwnProperty,r7=Object.prototype.propertyIsEnumerable,qg=(e,t,n)=>t in e?t7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pl=(e,t)=>{for(var n in t||(t={}))n7.call(t,n)&&qg(e,n,t[n]);if(Yg)for(var n of Yg(t))r7.call(t,n)&&qg(e,n,t[n]);return e};const o7=(e,t)=>{const n=c.useContext(F),r=pl(pl({},n),e);return c.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),c.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"}),c.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"}))},s7=c.forwardRef(o7);var i7=s7,a7=Object.defineProperty,Xg=Object.getOwnPropertySymbols,c7=Object.prototype.hasOwnProperty,l7=Object.prototype.propertyIsEnumerable,Jg=(e,t,n)=>t in e?a7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ml=(e,t)=>{for(var n in t||(t={}))c7.call(t,n)&&Jg(e,n,t[n]);if(Xg)for(var n of Xg(t))l7.call(t,n)&&Jg(e,n,t[n]);return e};const u7=(e,t)=>{const n=c.useContext(F),r=ml(ml({},n),e);return c.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),c.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"}),c.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"}),c.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"}),c.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"}))},d7=c.forwardRef(u7);var f7=d7,p7=Object.defineProperty,Qg=Object.getOwnPropertySymbols,m7=Object.prototype.hasOwnProperty,h7=Object.prototype.propertyIsEnumerable,e1=(e,t,n)=>t in e?p7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hl=(e,t)=>{for(var n in t||(t={}))m7.call(t,n)&&e1(e,n,t[n]);if(Qg)for(var n of Qg(t))h7.call(t,n)&&e1(e,n,t[n]);return e};const g7=(e,t)=>{const n=c.useContext(F),r=hl(hl({},n),e);return c.createElement("svg",hl({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),c.createElement("path",{d:"M7 12.5L10 15.5L17 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},v7=c.forwardRef(g7);var b7=v7,y7=Object.defineProperty,t1=Object.getOwnPropertySymbols,w7=Object.prototype.hasOwnProperty,x7=Object.prototype.propertyIsEnumerable,n1=(e,t,n)=>t in e?y7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gl=(e,t)=>{for(var n in t||(t={}))w7.call(t,n)&&n1(e,n,t[n]);if(t1)for(var n of t1(t))x7.call(t,n)&&n1(e,n,t[n]);return e};const C7=(e,t)=>{const n=c.useContext(F),r=gl(gl({},n),e);return c.createElement("svg",gl({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),c.createElement("path",{d:"M5 13L9 17L19 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},k7=c.forwardRef(C7);var E7=k7,S7=Object.defineProperty,r1=Object.getOwnPropertySymbols,$7=Object.prototype.hasOwnProperty,O7=Object.prototype.propertyIsEnumerable,o1=(e,t,n)=>t in e?S7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vl=(e,t)=>{for(var n in t||(t={}))$7.call(t,n)&&o1(e,n,t[n]);if(r1)for(var n of r1(t))O7.call(t,n)&&o1(e,n,t[n]);return e};const L7=(e,t)=>{const n=c.useContext(F),r=vl(vl({},n),e);return c.createElement("svg",vl({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),c.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"}))},j7=c.forwardRef(L7);var R7=j7,P7=Object.defineProperty,s1=Object.getOwnPropertySymbols,M7=Object.prototype.hasOwnProperty,T7=Object.prototype.propertyIsEnumerable,i1=(e,t,n)=>t in e?P7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bl=(e,t)=>{for(var n in t||(t={}))M7.call(t,n)&&i1(e,n,t[n]);if(s1)for(var n of s1(t))T7.call(t,n)&&i1(e,n,t[n]);return e};const I7=(e,t)=>{const n=c.useContext(F),r=bl(bl({},n),e);return c.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),c.createElement("path",{d:"M12 6L12 12L18 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}),c.createElement("path",{d:"M17 16H21.4C21.7314 16 22 16.2686 22 16.6V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},A7=c.forwardRef(I7);var _7=A7,N7=Object.defineProperty,a1=Object.getOwnPropertySymbols,D7=Object.prototype.hasOwnProperty,V7=Object.prototype.propertyIsEnumerable,c1=(e,t,n)=>t in e?N7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yl=(e,t)=>{for(var n in t||(t={}))D7.call(t,n)&&c1(e,n,t[n]);if(a1)for(var n of a1(t))V7.call(t,n)&&c1(e,n,t[n]);return e};const z7=(e,t)=>{const n=c.useContext(F),r=yl(yl({},n),e);return c.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),c.createElement("path",{d:"M12 6L12 12L18 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},F7=c.forwardRef(z7);var B7=F7,H7=Object.defineProperty,l1=Object.getOwnPropertySymbols,W7=Object.prototype.hasOwnProperty,Z7=Object.prototype.propertyIsEnumerable,u1=(e,t,n)=>t in e?H7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wl=(e,t)=>{for(var n in t||(t={}))W7.call(t,n)&&u1(e,n,t[n]);if(l1)for(var n of l1(t))Z7.call(t,n)&&u1(e,n,t[n]);return e};const U7=(e,t)=>{const n=c.useContext(F),r=wl(wl({},n),e);return c.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),c.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"}))},G7=c.forwardRef(U7);var K7=G7,Y7=Object.defineProperty,d1=Object.getOwnPropertySymbols,q7=Object.prototype.hasOwnProperty,X7=Object.prototype.propertyIsEnumerable,f1=(e,t,n)=>t in e?Y7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xl=(e,t)=>{for(var n in t||(t={}))q7.call(t,n)&&f1(e,n,t[n]);if(d1)for(var n of d1(t))X7.call(t,n)&&f1(e,n,t[n]);return e};const J7=(e,t)=>{const n=c.useContext(F),r=xl(xl({},n),e);return c.createElement("svg",xl({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),c.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"}),c.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"}),c.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"}))},Q7=c.forwardRef(J7);var ak=Q7,eT=Object.defineProperty,p1=Object.getOwnPropertySymbols,tT=Object.prototype.hasOwnProperty,nT=Object.prototype.propertyIsEnumerable,m1=(e,t,n)=>t in e?eT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cl=(e,t)=>{for(var n in t||(t={}))tT.call(t,n)&&m1(e,n,t[n]);if(p1)for(var n of p1(t))nT.call(t,n)&&m1(e,n,t[n]);return e};const rT=(e,t)=>{const n=c.useContext(F),r=Cl(Cl({},n),e);return c.createElement("svg",Cl({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),c.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"}),c.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"}))},oT=c.forwardRef(rT);var sT=oT,iT=Object.defineProperty,h1=Object.getOwnPropertySymbols,aT=Object.prototype.hasOwnProperty,cT=Object.prototype.propertyIsEnumerable,g1=(e,t,n)=>t in e?iT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kl=(e,t)=>{for(var n in t||(t={}))aT.call(t,n)&&g1(e,n,t[n]);if(h1)for(var n of h1(t))cT.call(t,n)&&g1(e,n,t[n]);return e};const lT=(e,t)=>{const n=c.useContext(F),r=kl(kl({},n),e);return c.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),c.createElement("path",{d:"M13.5 6L10 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M6.5 8.5L3 12L6.5 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M17.5 8.5L21 12L17.5 15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},uT=c.forwardRef(lT);var dT=uT,fT=Object.defineProperty,v1=Object.getOwnPropertySymbols,pT=Object.prototype.hasOwnProperty,mT=Object.prototype.propertyIsEnumerable,b1=(e,t,n)=>t in e?fT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,El=(e,t)=>{for(var n in t||(t={}))pT.call(t,n)&&b1(e,n,t[n]);if(v1)for(var n of v1(t))mT.call(t,n)&&b1(e,n,t[n]);return e};const hT=(e,t)=>{const n=c.useContext(F),r=El(El({},n),e);return c.createElement("svg",El({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),c.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"}),c.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"}))},gT=c.forwardRef(hT);var vT=gT,bT=Object.defineProperty,y1=Object.getOwnPropertySymbols,yT=Object.prototype.hasOwnProperty,wT=Object.prototype.propertyIsEnumerable,w1=(e,t,n)=>t in e?bT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sl=(e,t)=>{for(var n in t||(t={}))yT.call(t,n)&&w1(e,n,t[n]);if(y1)for(var n of y1(t))wT.call(t,n)&&w1(e,n,t[n]);return e};const xT=(e,t)=>{const n=c.useContext(F),r=Sl(Sl({},n),e);return c.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),c.createElement("path",{d:"M2 21L17 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M21 21L22 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},CT=c.forwardRef(xT);var kT=CT,ET=Object.defineProperty,x1=Object.getOwnPropertySymbols,ST=Object.prototype.hasOwnProperty,$T=Object.prototype.propertyIsEnumerable,C1=(e,t,n)=>t in e?ET(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$l=(e,t)=>{for(var n in t||(t={}))ST.call(t,n)&&C1(e,n,t[n]);if(x1)for(var n of x1(t))$T.call(t,n)&&C1(e,n,t[n]);return e};const OT=(e,t)=>{const n=c.useContext(F),r=$l($l({},n),e);return c.createElement("svg",$l({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),c.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"}),c.createElement("path",{d:"M2 12L6 12M22 12L12 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},LT=c.forwardRef(OT);var ck=LT,jT=Object.defineProperty,k1=Object.getOwnPropertySymbols,RT=Object.prototype.hasOwnProperty,PT=Object.prototype.propertyIsEnumerable,E1=(e,t,n)=>t in e?jT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ol=(e,t)=>{for(var n in t||(t={}))RT.call(t,n)&&E1(e,n,t[n]);if(k1)for(var n of k1(t))PT.call(t,n)&&E1(e,n,t[n]);return e};const MT=(e,t)=>{const n=c.useContext(F),r=Ol(Ol({},n),e);return c.createElement("svg",Ol({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),c.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"}),c.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"}))},TT=c.forwardRef(MT);var IT=TT,AT=Object.defineProperty,S1=Object.getOwnPropertySymbols,_T=Object.prototype.hasOwnProperty,NT=Object.prototype.propertyIsEnumerable,$1=(e,t,n)=>t in e?AT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ll=(e,t)=>{for(var n in t||(t={}))_T.call(t,n)&&$1(e,n,t[n]);if(S1)for(var n of S1(t))NT.call(t,n)&&$1(e,n,t[n]);return e};const DT=(e,t)=>{const n=c.useContext(F),r=Ll(Ll({},n),e);return c.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),c.createElement("path",{d:"M4.00047 8.00001L4.01047 8.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M4.00047 4.00001L4.01047 4.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M8.00047 4.00001L8.01047 4.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M12.0005 4.00001L12.0105 4.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M16.0005 4.00001L16.0105 4.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M20.0005 4.00001L20.0105 4.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M20.0005 8.00001L20.0105 8.01112",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M20.0005 12L20.0105 12.0111",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M20.0005 16L20.0105 16.0111",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M20.0005 20L20.0105 20.0111",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M16.0005 20L16.0105 20.0111",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M4.00047 12.01V20.01H12.0005V12.01H4.00047Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},VT=c.forwardRef(DT);var zT=VT,FT=Object.defineProperty,O1=Object.getOwnPropertySymbols,BT=Object.prototype.hasOwnProperty,HT=Object.prototype.propertyIsEnumerable,L1=(e,t,n)=>t in e?FT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jl=(e,t)=>{for(var n in t||(t={}))BT.call(t,n)&&L1(e,n,t[n]);if(O1)for(var n of O1(t))HT.call(t,n)&&L1(e,n,t[n]);return e};const WT=(e,t)=>{const n=c.useContext(F),r=jl(jl({},n),e);return c.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),c.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"}))},ZT=c.forwardRef(WT);var UT=ZT,GT=Object.defineProperty,j1=Object.getOwnPropertySymbols,KT=Object.prototype.hasOwnProperty,YT=Object.prototype.propertyIsEnumerable,R1=(e,t,n)=>t in e?GT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rl=(e,t)=>{for(var n in t||(t={}))KT.call(t,n)&&R1(e,n,t[n]);if(j1)for(var n of j1(t))YT.call(t,n)&&R1(e,n,t[n]);return e};const qT=(e,t)=>{const n=c.useContext(F),r=Rl(Rl({},n),e);return c.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),c.createElement("path",{d:"M17 20V4M17 4L20 7M17 4L14 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M7 4V20M7 20L10 17M7 20L4 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},XT=c.forwardRef(qT);var JT=XT,QT=Object.defineProperty,P1=Object.getOwnPropertySymbols,e8=Object.prototype.hasOwnProperty,t8=Object.prototype.propertyIsEnumerable,M1=(e,t,n)=>t in e?QT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pl=(e,t)=>{for(var n in t||(t={}))e8.call(t,n)&&M1(e,n,t[n]);if(P1)for(var n of P1(t))t8.call(t,n)&&M1(e,n,t[n]);return e};const n8=(e,t)=>{const n=c.useContext(F),r=Pl(Pl({},n),e);return c.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),c.createElement("path",{d:"M5 12V18C5 18 5 21 12 21C19 21 19 18 19 18V12",stroke:"currentColor"}),c.createElement("path",{d:"M5 6V12C5 12 5 15 12 15C19 15 19 12 19 12V6",stroke:"currentColor"}),c.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"}))},r8=c.forwardRef(n8);var o8=r8,s8=Object.defineProperty,T1=Object.getOwnPropertySymbols,i8=Object.prototype.hasOwnProperty,a8=Object.prototype.propertyIsEnumerable,I1=(e,t,n)=>t in e?s8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ml=(e,t)=>{for(var n in t||(t={}))i8.call(t,n)&&I1(e,n,t[n]);if(T1)for(var n of T1(t))a8.call(t,n)&&I1(e,n,t[n]);return e};const c8=(e,t)=>{const n=c.useContext(F),r=Ml(Ml({},n),e);return c.createElement("svg",Ml({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),c.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"}),c.createElement("path",{d:"M3.2959 20.6016L9.65986 14.2376",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}),c.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"}))},l8=c.forwardRef(c8);var u8=l8,d8=Object.defineProperty,A1=Object.getOwnPropertySymbols,f8=Object.prototype.hasOwnProperty,p8=Object.prototype.propertyIsEnumerable,_1=(e,t,n)=>t in e?d8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tl=(e,t)=>{for(var n in t||(t={}))f8.call(t,n)&&_1(e,n,t[n]);if(A1)for(var n of A1(t))p8.call(t,n)&&_1(e,n,t[n]);return e};const m8=(e,t)=>{const n=c.useContext(F),r=Tl(Tl({},n),e);return c.createElement("svg",Tl({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),c.createElement("path",{d:"M20.5 20.5L22 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}),c.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"}),c.createElement("path",{d:"M16 2V5.4C16 5.73137 16.2686 6 16.6 6H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},h8=c.forwardRef(m8);var g8=h8,v8=Object.defineProperty,N1=Object.getOwnPropertySymbols,b8=Object.prototype.hasOwnProperty,y8=Object.prototype.propertyIsEnumerable,D1=(e,t,n)=>t in e?v8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Il=(e,t)=>{for(var n in t||(t={}))b8.call(t,n)&&D1(e,n,t[n]);if(N1)for(var n of N1(t))y8.call(t,n)&&D1(e,n,t[n]);return e};const w8=(e,t)=>{const n=c.useContext(F),r=Il(Il({},n),e);return c.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),c.createElement("path",{d:"M6 18L18 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M12 6V14M12 14L15.5 10.5M12 14L8.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},x8=c.forwardRef(w8);var C8=x8,k8=Object.defineProperty,V1=Object.getOwnPropertySymbols,E8=Object.prototype.hasOwnProperty,S8=Object.prototype.propertyIsEnumerable,z1=(e,t,n)=>t in e?k8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Al=(e,t)=>{for(var n in t||(t={}))E8.call(t,n)&&z1(e,n,t[n]);if(V1)for(var n of V1(t))S8.call(t,n)&&z1(e,n,t[n]);return e};const $8=(e,t)=>{const n=c.useContext(F),r=Al(Al({},n),e);return c.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),c.createElement("path",{d:"M6 20L18 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M12 4V16M12 16L15.5 12.5M12 16L8.5 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},O8=c.forwardRef($8);var L8=O8,j8=Object.defineProperty,F1=Object.getOwnPropertySymbols,R8=Object.prototype.hasOwnProperty,P8=Object.prototype.propertyIsEnumerable,B1=(e,t,n)=>t in e?j8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_l=(e,t)=>{for(var n in t||(t={}))R8.call(t,n)&&B1(e,n,t[n]);if(F1)for(var n of F1(t))P8.call(t,n)&&B1(e,n,t[n]);return e};const M8=(e,t)=>{const n=c.useContext(F),r=_l(_l({},n),e);return c.createElement("svg",_l({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),c.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"}),c.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"}),c.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"}),c.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"}),c.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"}),c.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"}))},T8=c.forwardRef(M8);var I8=T8,A8=Object.defineProperty,H1=Object.getOwnPropertySymbols,_8=Object.prototype.hasOwnProperty,N8=Object.prototype.propertyIsEnumerable,W1=(e,t,n)=>t in e?A8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nl=(e,t)=>{for(var n in t||(t={}))_8.call(t,n)&&W1(e,n,t[n]);if(H1)for(var n of H1(t))N8.call(t,n)&&W1(e,n,t[n]);return e};const D8=(e,t)=>{const n=c.useContext(F),r=Nl(Nl({},n),e);return c.createElement("svg",Nl({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),c.createElement("path",{d:"M12 12L4 4M4 4V8M4 4H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M12 12L20 4M20 4V8M20 4H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M12 12L4 20M4 20V16M4 20H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M12 12L20 20M20 20V16M20 20H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},V8=c.forwardRef(D8);var Kp=V8,z8=Object.defineProperty,Z1=Object.getOwnPropertySymbols,F8=Object.prototype.hasOwnProperty,B8=Object.prototype.propertyIsEnumerable,U1=(e,t,n)=>t in e?z8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dl=(e,t)=>{for(var n in t||(t={}))F8.call(t,n)&&U1(e,n,t[n]);if(Z1)for(var n of Z1(t))B8.call(t,n)&&U1(e,n,t[n]);return e};const H8=(e,t)=>{const n=c.useContext(F),r=Dl(Dl({},n),e);return c.createElement("svg",Dl({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),c.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"}))},W8=c.forwardRef(H8);var Z8=W8,U8=Object.defineProperty,G1=Object.getOwnPropertySymbols,G8=Object.prototype.hasOwnProperty,K8=Object.prototype.propertyIsEnumerable,K1=(e,t,n)=>t in e?U8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vl=(e,t)=>{for(var n in t||(t={}))G8.call(t,n)&&K1(e,n,t[n]);if(G1)for(var n of G1(t))K8.call(t,n)&&K1(e,n,t[n]);return e};const Y8=(e,t)=>{const n=c.useContext(F),r=Vl(Vl({},n),e);return c.createElement("svg",Vl({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),c.createElement("path",{d:"M15 9L20 4M20 4V8M20 4H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M9 15L4 20M4 20V16M4 20H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},q8=c.forwardRef(Y8);var X8=q8,J8=Object.defineProperty,Y1=Object.getOwnPropertySymbols,Q8=Object.prototype.hasOwnProperty,eI=Object.prototype.propertyIsEnumerable,q1=(e,t,n)=>t in e?J8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zl=(e,t)=>{for(var n in t||(t={}))Q8.call(t,n)&&q1(e,n,t[n]);if(Y1)for(var n of Y1(t))eI.call(t,n)&&q1(e,n,t[n]);return e};const tI=(e,t)=>{const n=c.useContext(F),r=zl(zl({},n),e);return c.createElement("svg",zl({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),c.createElement("path",{d:"M19.5 16L17.0248 12.6038",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M12 17.5V14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M4.5 16L6.96895 12.6124",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M3 8C6.6 16 17.4 16 21 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},nI=c.forwardRef(tI);var rI=nI,oI=Object.defineProperty,X1=Object.getOwnPropertySymbols,sI=Object.prototype.hasOwnProperty,iI=Object.prototype.propertyIsEnumerable,J1=(e,t,n)=>t in e?oI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fl=(e,t)=>{for(var n in t||(t={}))sI.call(t,n)&&J1(e,n,t[n]);if(X1)for(var n of X1(t))iI.call(t,n)&&J1(e,n,t[n]);return e};const aI=(e,t)=>{const n=c.useContext(F),r=Fl(Fl({},n),e);return c.createElement("svg",Fl({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),c.createElement("path",{d:"M3 13C6.6 5 17.4 5 21 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},cI=c.forwardRef(aI);var lI=cI,uI=Object.defineProperty,Q1=Object.getOwnPropertySymbols,dI=Object.prototype.hasOwnProperty,fI=Object.prototype.propertyIsEnumerable,ev=(e,t,n)=>t in e?uI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bl=(e,t)=>{for(var n in t||(t={}))dI.call(t,n)&&ev(e,n,t[n]);if(Q1)for(var n of Q1(t))fI.call(t,n)&&ev(e,n,t[n]);return e};const pI=(e,t)=>{const n=c.useContext(F),r=Bl(Bl({},n),e);return c.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),c.createElement("path",{d:"M13 10V3L5 14H11V21L19 10H13Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},mI=c.forwardRef(pI);var hI=mI,gI=Object.defineProperty,tv=Object.getOwnPropertySymbols,vI=Object.prototype.hasOwnProperty,bI=Object.prototype.propertyIsEnumerable,nv=(e,t,n)=>t in e?gI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hl=(e,t)=>{for(var n in t||(t={}))vI.call(t,n)&&nv(e,n,t[n]);if(tv)for(var n of tv(t))bI.call(t,n)&&nv(e,n,t[n]);return e};const yI=(e,t)=>{const n=c.useContext(F),r=Hl(Hl({},n),e);return c.createElement("svg",Hl({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),c.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"}),c.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"}),c.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"}))},wI=c.forwardRef(yI);var xI=wI,CI=Object.defineProperty,rv=Object.getOwnPropertySymbols,kI=Object.prototype.hasOwnProperty,EI=Object.prototype.propertyIsEnumerable,ov=(e,t,n)=>t in e?CI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wl=(e,t)=>{for(var n in t||(t={}))kI.call(t,n)&&ov(e,n,t[n]);if(rv)for(var n of rv(t))EI.call(t,n)&&ov(e,n,t[n]);return e};const SI=(e,t)=>{const n=c.useContext(F),r=Wl(Wl({},n),e);return c.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),c.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"}))},$I=c.forwardRef(SI);var OI=$I,LI=Object.defineProperty,sv=Object.getOwnPropertySymbols,jI=Object.prototype.hasOwnProperty,RI=Object.prototype.propertyIsEnumerable,iv=(e,t,n)=>t in e?LI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zl=(e,t)=>{for(var n in t||(t={}))jI.call(t,n)&&iv(e,n,t[n]);if(sv)for(var n of sv(t))RI.call(t,n)&&iv(e,n,t[n]);return e};const PI=(e,t)=>{const n=c.useContext(F),r=Zl(Zl({},n),e);return c.createElement("svg",Zl({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),c.createElement("path",{d:"M4.9984 2H2V4.9984H4.9984V2Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M4.99854 3.50098H18.9987",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M3.5 4.99854V19.0005",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M20.4978 5V19.002",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M4.99854 20.501H18.9987",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M4.9984 19H2V21.9984H4.9984V19Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M21.9974 2.00195H18.999V5.00035H21.9974V2.00195Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M21.9974 19.002H18.999V22.0004H21.9974V19.002Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}),c.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"}))},MI=c.forwardRef(PI);var TI=MI,II=Object.defineProperty,av=Object.getOwnPropertySymbols,AI=Object.prototype.hasOwnProperty,_I=Object.prototype.propertyIsEnumerable,cv=(e,t,n)=>t in e?II(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ul=(e,t)=>{for(var n in t||(t={}))AI.call(t,n)&&cv(e,n,t[n]);if(av)for(var n of av(t))_I.call(t,n)&&cv(e,n,t[n]);return e};const NI=(e,t)=>{const n=c.useContext(F),r=Ul(Ul({},n),e);return c.createElement("svg",Ul({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),c.createElement("path",{d:"M4.9984 2.00098H2V4.99938H4.9984V2.00098Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M4.9984 10.502H2V13.5004H4.9984V10.502Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M20.4978 5.00049V10.503",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M3.5 5.00049V10.503",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M20.4978 13.5015V19.004",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M3.5 13.5015V19.004",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M4.99902 20.5015H10.4999",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M4.99902 3.50342H10.4999",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M13.498 20.499H18.9989",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M13.498 3.50098H18.9989",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M4.9984 19.001H2V21.9994H4.9984V19.001Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M21.9974 2.00195H18.999V5.00035H21.9974V2.00195Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M13.4974 2H10.499V4.9984H13.4974V2Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M21.9974 10.5029H18.999V13.5013H21.9974V10.5029Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M21.9974 19.002H18.999V22.0004H21.9974V19.002Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M13.4974 19H10.499V21.9984H13.4974V19Z",stroke:"currentColor",strokeMiterlimit:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))},DI=c.forwardRef(NI);var VI=DI,zI=Object.defineProperty,lv=Object.getOwnPropertySymbols,FI=Object.prototype.hasOwnProperty,BI=Object.prototype.propertyIsEnumerable,uv=(e,t,n)=>t in e?zI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gl=(e,t)=>{for(var n in t||(t={}))FI.call(t,n)&&uv(e,n,t[n]);if(lv)for(var n of lv(t))BI.call(t,n)&&uv(e,n,t[n]);return e};const HI=(e,t)=>{const n=c.useContext(F),r=Gl(Gl({},n),e);return c.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),c.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"}),c.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"}),c.createElement("path",{d:"M6 16V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M8 18H9C12.5 18 18 15.9 18 9.5V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},WI=c.forwardRef(HI);var ZI=WI,UI=Object.defineProperty,dv=Object.getOwnPropertySymbols,GI=Object.prototype.hasOwnProperty,KI=Object.prototype.propertyIsEnumerable,fv=(e,t,n)=>t in e?UI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Kl=(e,t)=>{for(var n in t||(t={}))GI.call(t,n)&&fv(e,n,t[n]);if(dv)for(var n of dv(t))KI.call(t,n)&&fv(e,n,t[n]);return e};const YI=(e,t)=>{const n=c.useContext(F),r=Kl(Kl({},n),e);return c.createElement("svg",Kl({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),c.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"}),c.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"}),c.createElement("path",{d:"M18 17V7C18 7 18 5 16 5H13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M6 7V17C6 17 6 19 8 19H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M15.0005 7.50012L12.5005 5.00012L15.0005 2.50012",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M8.5 16.5L11 19L8.5 21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},qI=c.forwardRef(YI);var XI=qI,JI=Object.defineProperty,pv=Object.getOwnPropertySymbols,QI=Object.prototype.hasOwnProperty,eA=Object.prototype.propertyIsEnumerable,mv=(e,t,n)=>t in e?JI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yl=(e,t)=>{for(var n in t||(t={}))QI.call(t,n)&&mv(e,n,t[n]);if(pv)for(var n of pv(t))eA.call(t,n)&&mv(e,n,t[n]);return e};const tA=(e,t)=>{const n=c.useContext(F),r=Yl(Yl({},n),e);return c.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),c.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"}),c.createElement("path",{d:"M2.5 12.5L8 14.5L7 18L8 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M17 20.5L16.5 18L14 17V13.5L17 12.5L21.5 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M19 5.5L18.5 7L15 7.5V10.5L17.5 9.5H19.5L21.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M2.5 10.5L5 8.5L7.5 8L9.5 5L8.5 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},nA=c.forwardRef(tA);var rA=nA,oA=Object.defineProperty,hv=Object.getOwnPropertySymbols,sA=Object.prototype.hasOwnProperty,iA=Object.prototype.propertyIsEnumerable,gv=(e,t,n)=>t in e?oA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ql=(e,t)=>{for(var n in t||(t={}))sA.call(t,n)&&gv(e,n,t[n]);if(hv)for(var n of hv(t))iA.call(t,n)&&gv(e,n,t[n]);return e};const aA=(e,t)=>{const n=c.useContext(F),r=ql(ql({},n),e);return c.createElement("svg",ql({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),c.createElement("path",{d:"M10 3L6 21",stroke:"currentColor",strokeLinecap:"round"}),c.createElement("path",{d:"M20.5 16H2.5",stroke:"currentColor",strokeLinecap:"round"}),c.createElement("path",{d:"M22 7H4",stroke:"currentColor",strokeLinecap:"round"}),c.createElement("path",{d:"M18 3L14 21",stroke:"currentColor",strokeLinecap:"round"}))},cA=c.forwardRef(aA);var lA=cA,uA=Object.defineProperty,vv=Object.getOwnPropertySymbols,dA=Object.prototype.hasOwnProperty,fA=Object.prototype.propertyIsEnumerable,bv=(e,t,n)=>t in e?uA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xl=(e,t)=>{for(var n in t||(t={}))dA.call(t,n)&&bv(e,n,t[n]);if(vv)for(var n of vv(t))fA.call(t,n)&&bv(e,n,t[n]);return e};const pA=(e,t)=>{const n=c.useContext(F),r=Xl(Xl({},n),e);return c.createElement("svg",Xl({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),c.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"}),c.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"}))},mA=c.forwardRef(pA);var hA=mA,gA=Object.defineProperty,yv=Object.getOwnPropertySymbols,vA=Object.prototype.hasOwnProperty,bA=Object.prototype.propertyIsEnumerable,wv=(e,t,n)=>t in e?gA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Jl=(e,t)=>{for(var n in t||(t={}))vA.call(t,n)&&wv(e,n,t[n]);if(yv)for(var n of yv(t))bA.call(t,n)&&wv(e,n,t[n]);return e};const yA=(e,t)=>{const n=c.useContext(F),r=Jl(Jl({},n),e);return c.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),c.createElement("path",{d:"M12 11.5V16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M12 7.51L12.01 7.49889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},wA=c.forwardRef(yA);var xA=wA,CA=Object.defineProperty,xv=Object.getOwnPropertySymbols,kA=Object.prototype.hasOwnProperty,EA=Object.prototype.propertyIsEnumerable,Cv=(e,t,n)=>t in e?CA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ql=(e,t)=>{for(var n in t||(t={}))kA.call(t,n)&&Cv(e,n,t[n]);if(xv)for(var n of xv(t))EA.call(t,n)&&Cv(e,n,t[n]);return e};const SA=(e,t)=>{const n=c.useContext(F),r=Ql(Ql({},n),e);return c.createElement("svg",Ql({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),c.createElement("path",{d:"M9 6V18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M15 6V18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}),c.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"}))},$A=c.forwardRef(SA);var OA=$A,LA=Object.defineProperty,kv=Object.getOwnPropertySymbols,jA=Object.prototype.hasOwnProperty,RA=Object.prototype.propertyIsEnumerable,Ev=(e,t,n)=>t in e?LA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eu=(e,t)=>{for(var n in t||(t={}))jA.call(t,n)&&Ev(e,n,t[n]);if(kv)for(var n of kv(t))RA.call(t,n)&&Ev(e,n,t[n]);return e};const PA=(e,t)=>{const n=c.useContext(F),r=eu(eu({},n),e);return c.createElement("svg",eu({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),c.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"}),c.createElement("path",{d:"M13.3184 9.63429C12.7858 8.73635 11.9737 7.96977 11 7.4989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}),c.createElement("path",{d:"M3 3L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},MA=c.forwardRef(PA);var TA=MA,IA=Object.defineProperty,Sv=Object.getOwnPropertySymbols,AA=Object.prototype.hasOwnProperty,_A=Object.prototype.propertyIsEnumerable,$v=(e,t,n)=>t in e?IA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tu=(e,t)=>{for(var n in t||(t={}))AA.call(t,n)&&$v(e,n,t[n]);if(Sv)for(var n of Sv(t))_A.call(t,n)&&$v(e,n,t[n]);return e};const NA=(e,t)=>{const n=c.useContext(F),r=tu(tu({},n),e);return c.createElement("svg",tu({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),c.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"}),c.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"}))},DA=c.forwardRef(NA);var VA=DA,zA=Object.defineProperty,Ov=Object.getOwnPropertySymbols,FA=Object.prototype.hasOwnProperty,BA=Object.prototype.propertyIsEnumerable,Lv=(e,t,n)=>t in e?zA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nu=(e,t)=>{for(var n in t||(t={}))FA.call(t,n)&&Lv(e,n,t[n]);if(Ov)for(var n of Ov(t))BA.call(t,n)&&Lv(e,n,t[n]);return e};const HA=(e,t)=>{const n=c.useContext(F),r=nu(nu({},n),e);return c.createElement("svg",nu({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),c.createElement("path",{d:"M8 6L20 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M4 6.01L4.01 5.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M4 12.01L4.01 11.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M4 18.01L4.01 17.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M8 12L20 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M8 18L20 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},WA=c.forwardRef(HA);var lk=WA,ZA=Object.defineProperty,jv=Object.getOwnPropertySymbols,UA=Object.prototype.hasOwnProperty,GA=Object.prototype.propertyIsEnumerable,Rv=(e,t,n)=>t in e?ZA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ru=(e,t)=>{for(var n in t||(t={}))UA.call(t,n)&&Rv(e,n,t[n]);if(jv)for(var n of jv(t))GA.call(t,n)&&Rv(e,n,t[n]);return e};const KA=(e,t)=>{const n=c.useContext(F),r=ru(ru({},n),e);return c.createElement("svg",ru({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),c.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"}))},YA=c.forwardRef(KA);var uk=YA,qA=Object.defineProperty,Pv=Object.getOwnPropertySymbols,XA=Object.prototype.hasOwnProperty,JA=Object.prototype.propertyIsEnumerable,Mv=(e,t,n)=>t in e?qA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ou=(e,t)=>{for(var n in t||(t={}))XA.call(t,n)&&Mv(e,n,t[n]);if(Pv)for(var n of Pv(t))JA.call(t,n)&&Mv(e,n,t[n]);return e};const QA=(e,t)=>{const n=c.useContext(F),r=ou(ou({},n),e);return c.createElement("svg",ou({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),c.createElement("path",{d:"M3 21L13 11M18 6L15.5 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}),c.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"}))},e_=c.forwardRef(QA);var t_=e_,n_=Object.defineProperty,Tv=Object.getOwnPropertySymbols,r_=Object.prototype.hasOwnProperty,o_=Object.prototype.propertyIsEnumerable,Iv=(e,t,n)=>t in e?n_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,su=(e,t)=>{for(var n in t||(t={}))r_.call(t,n)&&Iv(e,n,t[n]);if(Tv)for(var n of Tv(t))o_.call(t,n)&&Iv(e,n,t[n]);return e};const s_=(e,t)=>{const n=c.useContext(F),r=su(su({},n),e);return c.createElement("svg",su({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),c.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"}))},i_=c.forwardRef(s_);var a_=i_,c_=Object.defineProperty,Av=Object.getOwnPropertySymbols,l_=Object.prototype.hasOwnProperty,u_=Object.prototype.propertyIsEnumerable,_v=(e,t,n)=>t in e?c_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iu=(e,t)=>{for(var n in t||(t={}))l_.call(t,n)&&_v(e,n,t[n]);if(Av)for(var n of Av(t))u_.call(t,n)&&_v(e,n,t[n]);return e};const d_=(e,t)=>{const n=c.useContext(F),r=iu(iu({},n),e);return c.createElement("svg",iu({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),c.createElement("path",{d:"M7 4H4V7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M17 4H20V7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M7 20H4V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M17 20H20V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},f_=c.forwardRef(d_);var p_=f_,m_=Object.defineProperty,Nv=Object.getOwnPropertySymbols,h_=Object.prototype.hasOwnProperty,g_=Object.prototype.propertyIsEnumerable,Dv=(e,t,n)=>t in e?m_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,au=(e,t)=>{for(var n in t||(t={}))h_.call(t,n)&&Dv(e,n,t[n]);if(Nv)for(var n of Nv(t))g_.call(t,n)&&Dv(e,n,t[n]);return e};const v_=(e,t)=>{const n=c.useContext(F),r=au(au({},n),e);return c.createElement("svg",au({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),c.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"}),c.createElement("path",{d:"M3 16L10 13L21 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},b_=c.forwardRef(v_);var dk=b_,y_=Object.defineProperty,Vv=Object.getOwnPropertySymbols,w_=Object.prototype.hasOwnProperty,x_=Object.prototype.propertyIsEnumerable,zv=(e,t,n)=>t in e?y_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cu=(e,t)=>{for(var n in t||(t={}))w_.call(t,n)&&zv(e,n,t[n]);if(Vv)for(var n of Vv(t))x_.call(t,n)&&zv(e,n,t[n]);return e};const C_=(e,t)=>{const n=c.useContext(F),r=cu(cu({},n),e);return c.createElement("svg",cu({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),c.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"}),c.createElement("path",{d:"M18 4H4.6C4.26863 4 4 4.26863 4 4.6V18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},k_=c.forwardRef(C_);var E_=k_,S_=Object.defineProperty,Fv=Object.getOwnPropertySymbols,$_=Object.prototype.hasOwnProperty,O_=Object.prototype.propertyIsEnumerable,Bv=(e,t,n)=>t in e?S_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lu=(e,t)=>{for(var n in t||(t={}))$_.call(t,n)&&Bv(e,n,t[n]);if(Fv)for(var n of Fv(t))O_.call(t,n)&&Bv(e,n,t[n]);return e};const L_=(e,t)=>{const n=c.useContext(F),r=lu(lu({},n),e);return c.createElement("svg",lu({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),c.createElement("rect",{x:9,y:2,width:6,height:12,rx:3,stroke:"currentColor",strokeWidth:1.5}),c.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"}),c.createElement("path",{d:"M12 18V22M12 22H9M12 22H15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},j_=c.forwardRef(L_);var R_=j_,P_=Object.defineProperty,Hv=Object.getOwnPropertySymbols,M_=Object.prototype.hasOwnProperty,T_=Object.prototype.propertyIsEnumerable,Wv=(e,t,n)=>t in e?P_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,uu=(e,t)=>{for(var n in t||(t={}))M_.call(t,n)&&Wv(e,n,t[n]);if(Hv)for(var n of Hv(t))T_.call(t,n)&&Wv(e,n,t[n]);return e};const I_=(e,t)=>{const n=c.useContext(F),r=uu(uu({},n),e);return c.createElement("svg",uu({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),c.createElement("path",{d:"M6 12H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},A_=c.forwardRef(I_);var __=A_,N_=Object.defineProperty,Zv=Object.getOwnPropertySymbols,D_=Object.prototype.hasOwnProperty,V_=Object.prototype.propertyIsEnumerable,Uv=(e,t,n)=>t in e?N_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,du=(e,t)=>{for(var n in t||(t={}))D_.call(t,n)&&Uv(e,n,t[n]);if(Zv)for(var n of Zv(t))V_.call(t,n)&&Uv(e,n,t[n]);return e};const z_=(e,t)=>{const n=c.useContext(F),r=du(du({},n),e);return c.createElement("svg",du({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),c.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"}),c.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"}),c.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"}))},F_=c.forwardRef(z_);var B_=F_,H_=Object.defineProperty,Gv=Object.getOwnPropertySymbols,W_=Object.prototype.hasOwnProperty,Z_=Object.prototype.propertyIsEnumerable,Kv=(e,t,n)=>t in e?H_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fu=(e,t)=>{for(var n in t||(t={}))W_.call(t,n)&&Kv(e,n,t[n]);if(Gv)for(var n of Gv(t))Z_.call(t,n)&&Kv(e,n,t[n]);return e};const U_=(e,t)=>{const n=c.useContext(F),r=fu(fu({},n),e);return c.createElement("svg",fu({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),c.createElement("path",{d:"M7 8.01L7.01 7.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M17 8.01L17.01 7.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M7 12.01L7.01 11.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M17 12.01L17.01 11.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M7 16.01L7.01 15.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M17 16.01L17.01 15.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},G_=c.forwardRef(U_);var K_=G_,Y_=Object.defineProperty,Yv=Object.getOwnPropertySymbols,q_=Object.prototype.hasOwnProperty,X_=Object.prototype.propertyIsEnumerable,qv=(e,t,n)=>t in e?Y_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pu=(e,t)=>{for(var n in t||(t={}))q_.call(t,n)&&qv(e,n,t[n]);if(Yv)for(var n of Yv(t))X_.call(t,n)&&qv(e,n,t[n]);return e};const J_=(e,t)=>{const n=c.useContext(F),r=pu(pu({},n),e);return c.createElement("svg",pu({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),c.createElement("path",{d:"M1.99219 19H4.99219M7.99219 19H4.99219M4.99219 19V16M4.99219 19V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M7 2L16.5 2L21 6.5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}),c.createElement("path",{d:"M14 5V8.4C14 8.73137 14.2686 9 14.6 9H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Q_=c.forwardRef(J_);var eN=Q_,tN=Object.defineProperty,Xv=Object.getOwnPropertySymbols,nN=Object.prototype.hasOwnProperty,rN=Object.prototype.propertyIsEnumerable,Jv=(e,t,n)=>t in e?tN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mu=(e,t)=>{for(var n in t||(t={}))nN.call(t,n)&&Jv(e,n,t[n]);if(Xv)for(var n of Xv(t))rN.call(t,n)&&Jv(e,n,t[n]);return e};const oN=(e,t)=>{const n=c.useContext(F),r=mu(mu({},n),e);return c.createElement("svg",mu({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),c.createElement("path",{d:"M7 18H10.5H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M7 14H7.5H8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M7 10H8.5H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M7 2L16.5 2L21 6.5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}),c.createElement("path",{d:"M14 5V8.4C14 8.73137 14.2686 9 14.6 9H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},sN=c.forwardRef(oN);var fk=sN,iN=Object.defineProperty,Qv=Object.getOwnPropertySymbols,aN=Object.prototype.hasOwnProperty,cN=Object.prototype.propertyIsEnumerable,eb=(e,t,n)=>t in e?iN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hu=(e,t)=>{for(var n in t||(t={}))aN.call(t,n)&&eb(e,n,t[n]);if(Qv)for(var n of Qv(t))cN.call(t,n)&&eb(e,n,t[n]);return e};const lN=(e,t)=>{const n=c.useContext(F),r=hu(hu({},n),e);return c.createElement("svg",hu({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),c.createElement("path",{d:"M20 14V3L9 5V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}),c.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"}))},uN=c.forwardRef(lN);var dN=uN,fN=Object.defineProperty,tb=Object.getOwnPropertySymbols,pN=Object.prototype.hasOwnProperty,mN=Object.prototype.propertyIsEnumerable,nb=(e,t,n)=>t in e?fN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gu=(e,t)=>{for(var n in t||(t={}))pN.call(t,n)&&nb(e,n,t[n]);if(tb)for(var n of tb(t))mN.call(t,n)&&nb(e,n,t[n]);return e};const hN=(e,t)=>{const n=c.useContext(F),r=gu(gu({},n),e);return c.createElement("svg",gu({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),c.createElement("path",{d:"M6 9L12 15L18 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},gN=c.forwardRef(hN);var vN=gN,bN=Object.defineProperty,rb=Object.getOwnPropertySymbols,yN=Object.prototype.hasOwnProperty,wN=Object.prototype.propertyIsEnumerable,ob=(e,t,n)=>t in e?bN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vu=(e,t)=>{for(var n in t||(t={}))yN.call(t,n)&&ob(e,n,t[n]);if(rb)for(var n of rb(t))wN.call(t,n)&&ob(e,n,t[n]);return e};const xN=(e,t)=>{const n=c.useContext(F),r=vu(vu({},n),e);return c.createElement("svg",vu({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),c.createElement("path",{d:"M9 6L15 12L9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},CN=c.forwardRef(xN);var kN=CN,EN=Object.defineProperty,sb=Object.getOwnPropertySymbols,SN=Object.prototype.hasOwnProperty,$N=Object.prototype.propertyIsEnumerable,ib=(e,t,n)=>t in e?EN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bu=(e,t)=>{for(var n in t||(t={}))SN.call(t,n)&&ib(e,n,t[n]);if(sb)for(var n of sb(t))$N.call(t,n)&&ib(e,n,t[n]);return e};const ON=(e,t)=>{const n=c.useContext(F),r=bu(bu({},n),e);return c.createElement("svg",bu({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),c.createElement("path",{d:"M6 15L12 9L18 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},LN=c.forwardRef(ON);var jN=LN,RN=Object.defineProperty,ab=Object.getOwnPropertySymbols,PN=Object.prototype.hasOwnProperty,MN=Object.prototype.propertyIsEnumerable,cb=(e,t,n)=>t in e?RN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yu=(e,t)=>{for(var n in t||(t={}))PN.call(t,n)&&cb(e,n,t[n]);if(ab)for(var n of ab(t))MN.call(t,n)&&cb(e,n,t[n]);return e};const TN=(e,t)=>{const n=c.useContext(F),r=yu(yu({},n),e);return c.createElement("svg",yu({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),c.createElement("rect",{x:3,y:2,width:7,height:5,rx:.6,stroke:"currentColor",strokeWidth:1.5}),c.createElement("rect",{x:8.5,y:17,width:7,height:5,rx:.6,stroke:"currentColor",strokeWidth:1.5}),c.createElement("rect",{x:14,y:2,width:7,height:5,rx:.6,stroke:"currentColor",strokeWidth:1.5}),c.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"}),c.createElement("path",{d:"M12 12.5V17",stroke:"currentColor"}))},IN=c.forwardRef(TN);var pk=IN,AN=Object.defineProperty,lb=Object.getOwnPropertySymbols,_N=Object.prototype.hasOwnProperty,NN=Object.prototype.propertyIsEnumerable,ub=(e,t,n)=>t in e?AN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wu=(e,t)=>{for(var n in t||(t={}))_N.call(t,n)&&ub(e,n,t[n]);if(lb)for(var n of lb(t))NN.call(t,n)&&ub(e,n,t[n]);return e};const DN=(e,t)=>{const n=c.useContext(F),r=wu(wu({},n),e);return c.createElement("svg",wu({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),c.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"}),c.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"}),c.createElement("path",{d:"M19 19L17.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M15.5 15.5L14.5 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},VN=c.forwardRef(DN);var zN=VN,FN=Object.defineProperty,db=Object.getOwnPropertySymbols,BN=Object.prototype.hasOwnProperty,HN=Object.prototype.propertyIsEnumerable,fb=(e,t,n)=>t in e?FN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xu=(e,t)=>{for(var n in t||(t={}))BN.call(t,n)&&fb(e,n,t[n]);if(db)for(var n of db(t))HN.call(t,n)&&fb(e,n,t[n]);return e};const WN=(e,t)=>{const n=c.useContext(F),r=xu(xu({},n),e);return c.createElement("svg",xu({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),c.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"}),c.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"}),c.createElement("path",{d:"M14 19L22 19",stroke:"currentColor",strokeLinecap:"round"}),c.createElement("path",{d:"M10 19L2 19",stroke:"currentColor",strokeLinecap:"round"}),c.createElement("path",{d:"M12 21C12 19.8954 12.8954 19 14 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M12 21C12 19.8954 11.1046 19 10 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},ZN=c.forwardRef(WN);var mk=ZN,UN=Object.defineProperty,pb=Object.getOwnPropertySymbols,GN=Object.prototype.hasOwnProperty,KN=Object.prototype.propertyIsEnumerable,mb=(e,t,n)=>t in e?UN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cu=(e,t)=>{for(var n in t||(t={}))GN.call(t,n)&&mb(e,n,t[n]);if(pb)for(var n of pb(t))KN.call(t,n)&&mb(e,n,t[n]);return e};const YN=(e,t)=>{const n=c.useContext(F),r=Cu(Cu({},n),e);return c.createElement("svg",Cu({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),c.createElement("path",{d:"M21 3L15 3M21 3L12 12M21 3V9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},qN=c.forwardRef(YN);var XN=qN,JN=Object.defineProperty,hb=Object.getOwnPropertySymbols,QN=Object.prototype.hasOwnProperty,eD=Object.prototype.propertyIsEnumerable,gb=(e,t,n)=>t in e?JN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ku=(e,t)=>{for(var n in t||(t={}))QN.call(t,n)&&gb(e,n,t[n]);if(hb)for(var n of hb(t))eD.call(t,n)&&gb(e,n,t[n]);return e};const tD=(e,t)=>{const n=c.useContext(F),r=ku(ku({},n),e);return c.createElement("svg",ku({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),c.createElement("path",{d:"M8.5 11L12 14.5L15.5 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},nD=c.forwardRef(tD);var rD=nD,oD=Object.defineProperty,vb=Object.getOwnPropertySymbols,sD=Object.prototype.hasOwnProperty,iD=Object.prototype.propertyIsEnumerable,bb=(e,t,n)=>t in e?oD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Eu=(e,t)=>{for(var n in t||(t={}))sD.call(t,n)&&bb(e,n,t[n]);if(vb)for(var n of vb(t))iD.call(t,n)&&bb(e,n,t[n]);return e};const aD=(e,t)=>{const n=c.useContext(F),r=Eu(Eu({},n),e);return c.createElement("svg",Eu({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),c.createElement("path",{d:"M8.5 13L12 9.5L15.5 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},cD=c.forwardRef(aD);var lD=cD,uD=Object.defineProperty,yb=Object.getOwnPropertySymbols,dD=Object.prototype.hasOwnProperty,fD=Object.prototype.propertyIsEnumerable,wb=(e,t,n)=>t in e?uD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Su=(e,t)=>{for(var n in t||(t={}))dD.call(t,n)&&wb(e,n,t[n]);if(yb)for(var n of yb(t))fD.call(t,n)&&wb(e,n,t[n]);return e};const pD=(e,t)=>{const n=c.useContext(F),r=Su(Su({},n),e);return c.createElement("svg",Su({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),c.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"}),c.createElement("path",{d:"M8 10L16 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M8 18L16 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M8 14L12 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M16 2V5.4C16 5.73137 16.2686 6 16.6 6H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},mD=c.forwardRef(pD);var hD=mD,gD=Object.defineProperty,xb=Object.getOwnPropertySymbols,vD=Object.prototype.hasOwnProperty,bD=Object.prototype.propertyIsEnumerable,Cb=(e,t,n)=>t in e?gD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$u=(e,t)=>{for(var n in t||(t={}))vD.call(t,n)&&Cb(e,n,t[n]);if(xb)for(var n of xb(t))bD.call(t,n)&&Cb(e,n,t[n]);return e};const yD=(e,t)=>{const n=c.useContext(F),r=$u($u({},n),e);return c.createElement("svg",$u({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),c.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"}),c.createElement("path",{d:"M8 16.01L8.01 15.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M6 12.01L6.01 11.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M8 8.01L8.01 7.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M12 6.01L12.01 5.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M16 8.01L16.01 7.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},wD=c.forwardRef(yD);var hk=wD,xD=Object.defineProperty,kb=Object.getOwnPropertySymbols,CD=Object.prototype.hasOwnProperty,kD=Object.prototype.propertyIsEnumerable,Eb=(e,t,n)=>t in e?xD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ou=(e,t)=>{for(var n in t||(t={}))CD.call(t,n)&&Eb(e,n,t[n]);if(kb)for(var n of kb(t))kD.call(t,n)&&Eb(e,n,t[n]);return e};const ED=(e,t)=>{const n=c.useContext(F),r=Ou(Ou({},n),e);return c.createElement("svg",Ou({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),c.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"}),c.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"}))},SD=c.forwardRef(ED);var $D=SD,OD=Object.defineProperty,Sb=Object.getOwnPropertySymbols,LD=Object.prototype.hasOwnProperty,jD=Object.prototype.propertyIsEnumerable,$b=(e,t,n)=>t in e?OD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lu=(e,t)=>{for(var n in t||(t={}))LD.call(t,n)&&$b(e,n,t[n]);if(Sb)for(var n of Sb(t))jD.call(t,n)&&$b(e,n,t[n]);return e};const RD=(e,t)=>{const n=c.useContext(F),r=Lu(Lu({},n),e);return c.createElement("svg",Lu({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),c.createElement("path",{d:"M18 16.5V3M18 3L21.5 6.5M18 3L14.5 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}),c.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"}))},PD=c.forwardRef(RD);var MD=PD,TD=Object.defineProperty,Ob=Object.getOwnPropertySymbols,ID=Object.prototype.hasOwnProperty,AD=Object.prototype.propertyIsEnumerable,Lb=(e,t,n)=>t in e?TD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ju=(e,t)=>{for(var n in t||(t={}))ID.call(t,n)&&Lb(e,n,t[n]);if(Ob)for(var n of Ob(t))AD.call(t,n)&&Lb(e,n,t[n]);return e};const _D=(e,t)=>{const n=c.useContext(F),r=ju(ju({},n),e);return c.createElement("svg",ju({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),c.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"}),c.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"}))},ND=c.forwardRef(_D);var DD=ND,VD=Object.defineProperty,jb=Object.getOwnPropertySymbols,zD=Object.prototype.hasOwnProperty,FD=Object.prototype.propertyIsEnumerable,Rb=(e,t,n)=>t in e?VD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ru=(e,t)=>{for(var n in t||(t={}))zD.call(t,n)&&Rb(e,n,t[n]);if(jb)for(var n of jb(t))FD.call(t,n)&&Rb(e,n,t[n]);return e};const BD=(e,t)=>{const n=c.useContext(F),r=Ru(Ru({},n),e);return c.createElement("svg",Ru({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),c.createElement("path",{d:"M9.5 14.5L3 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}),c.createElement("path",{d:"M3 3L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},HD=c.forwardRef(BD);var WD=HD,ZD=Object.defineProperty,Pb=Object.getOwnPropertySymbols,UD=Object.prototype.hasOwnProperty,GD=Object.prototype.propertyIsEnumerable,Mb=(e,t,n)=>t in e?ZD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pu=(e,t)=>{for(var n in t||(t={}))UD.call(t,n)&&Mb(e,n,t[n]);if(Pb)for(var n of Pb(t))GD.call(t,n)&&Mb(e,n,t[n]);return e};const KD=(e,t)=>{const n=c.useContext(F),r=Pu(Pu({},n),e);return c.createElement("svg",Pu({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),c.createElement("path",{d:"M9.5 14.5L3 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},YD=c.forwardRef(KD);var qD=YD,XD=Object.defineProperty,Tb=Object.getOwnPropertySymbols,JD=Object.prototype.hasOwnProperty,QD=Object.prototype.propertyIsEnumerable,Ib=(e,t,n)=>t in e?XD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mu=(e,t)=>{for(var n in t||(t={}))JD.call(t,n)&&Ib(e,n,t[n]);if(Tb)for(var n of Tb(t))QD.call(t,n)&&Ib(e,n,t[n]);return e};const eV=(e,t)=>{const n=c.useContext(F),r=Mu(Mu({},n),e);return c.createElement("svg",Mu({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),c.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"}))},tV=c.forwardRef(eV);var nV=tV,rV=Object.defineProperty,Ab=Object.getOwnPropertySymbols,oV=Object.prototype.hasOwnProperty,sV=Object.prototype.propertyIsEnumerable,_b=(e,t,n)=>t in e?rV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tu=(e,t)=>{for(var n in t||(t={}))oV.call(t,n)&&_b(e,n,t[n]);if(Ab)for(var n of Ab(t))sV.call(t,n)&&_b(e,n,t[n]);return e};const iV=(e,t)=>{const n=c.useContext(F),r=Tu(Tu({},n),e);return c.createElement("svg",Tu({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),c.createElement("path",{d:"M2 11L16 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M2 17L13 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M2 5L20 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},aV=c.forwardRef(iV);var cV=aV,lV=Object.defineProperty,Nb=Object.getOwnPropertySymbols,uV=Object.prototype.hasOwnProperty,dV=Object.prototype.propertyIsEnumerable,Db=(e,t,n)=>t in e?lV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Iu=(e,t)=>{for(var n in t||(t={}))uV.call(t,n)&&Db(e,n,t[n]);if(Nb)for(var n of Nb(t))dV.call(t,n)&&Db(e,n,t[n]);return e};const fV=(e,t)=>{const n=c.useContext(F),r=Iu(Iu({},n),e);return c.createElement("svg",Iu({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),c.createElement("path",{d:"M6 12H12M18 12H12M12 12V6M12 12V18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},pV=c.forwardRef(fV);var mV=pV,hV=Object.defineProperty,Vb=Object.getOwnPropertySymbols,gV=Object.prototype.hasOwnProperty,vV=Object.prototype.propertyIsEnumerable,zb=(e,t,n)=>t in e?hV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Au=(e,t)=>{for(var n in t||(t={}))gV.call(t,n)&&zb(e,n,t[n]);if(Vb)for(var n of Vb(t))vV.call(t,n)&&zb(e,n,t[n]);return e};const bV=(e,t)=>{const n=c.useContext(F),r=Au(Au({},n),e);return c.createElement("svg",Au({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),c.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"}),c.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"}),c.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"}),c.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"}),c.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"}))},yV=c.forwardRef(bV);var wV=yV,xV=Object.defineProperty,Fb=Object.getOwnPropertySymbols,CV=Object.prototype.hasOwnProperty,kV=Object.prototype.propertyIsEnumerable,Bb=(e,t,n)=>t in e?xV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_u=(e,t)=>{for(var n in t||(t={}))CV.call(t,n)&&Bb(e,n,t[n]);if(Fb)for(var n of Fb(t))kV.call(t,n)&&Bb(e,n,t[n]);return e};const EV=(e,t)=>{const n=c.useContext(F),r=_u(_u({},n),e);return c.createElement("svg",_u({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),c.createElement("path",{d:"M12 6L12 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M12 16L12 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M8 12H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M18 12H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},SV=c.forwardRef(EV);var $V=SV,OV=Object.defineProperty,Hb=Object.getOwnPropertySymbols,LV=Object.prototype.hasOwnProperty,jV=Object.prototype.propertyIsEnumerable,Wb=(e,t,n)=>t in e?OV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Nu=(e,t)=>{for(var n in t||(t={}))LV.call(t,n)&&Wb(e,n,t[n]);if(Hb)for(var n of Hb(t))jV.call(t,n)&&Wb(e,n,t[n]);return e};const RV=(e,t)=>{const n=c.useContext(F),r=Nu(Nu({},n),e);return c.createElement("svg",Nu({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),c.createElement("path",{d:"M4 20L9 15M9 15V19M9 15H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M20 4L15 9M15 9V5M15 9H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},PV=c.forwardRef(RV);var MV=PV,TV=Object.defineProperty,Zb=Object.getOwnPropertySymbols,IV=Object.prototype.hasOwnProperty,AV=Object.prototype.propertyIsEnumerable,Ub=(e,t,n)=>t in e?TV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Du=(e,t)=>{for(var n in t||(t={}))IV.call(t,n)&&Ub(e,n,t[n]);if(Zb)for(var n of Zb(t))AV.call(t,n)&&Ub(e,n,t[n]);return e};const _V=(e,t)=>{const n=c.useContext(F),r=Du(Du({},n),e);return c.createElement("svg",Du({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),c.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"}),c.createElement("path",{d:"M17 8H21.4C21.7314 8 22 7.73137 22 7.4V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}),c.createElement("path",{d:"M7.04932 16H2.64932C2.31795 16 2.04932 16.2686 2.04932 16.6V21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},NV=c.forwardRef(_V);var gk=NV,DV=Object.defineProperty,Gb=Object.getOwnPropertySymbols,VV=Object.prototype.hasOwnProperty,zV=Object.prototype.propertyIsEnumerable,Kb=(e,t,n)=>t in e?DV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vu=(e,t)=>{for(var n in t||(t={}))VV.call(t,n)&&Kb(e,n,t[n]);if(Gb)for(var n of Gb(t))zV.call(t,n)&&Kb(e,n,t[n]);return e};const FV=(e,t)=>{const n=c.useContext(F),r=Vu(Vu({},n),e);return c.createElement("svg",Vu({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),c.createElement("path",{d:"M17 17H8C6.33333 17 3 16 3 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}),c.createElement("path",{d:"M14.5 14.5L17 17L14.5 19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M4 8V5V3L2 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},BV=c.forwardRef(FV);var HV=BV,WV=Object.defineProperty,Yb=Object.getOwnPropertySymbols,ZV=Object.prototype.hasOwnProperty,UV=Object.prototype.propertyIsEnumerable,qb=(e,t,n)=>t in e?WV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,zu=(e,t)=>{for(var n in t||(t={}))ZV.call(t,n)&&qb(e,n,t[n]);if(Yb)for(var n of Yb(t))UV.call(t,n)&&qb(e,n,t[n]);return e};const GV=(e,t)=>{const n=c.useContext(F),r=zu(zu({},n),e);return c.createElement("svg",zu({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),c.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"}),c.createElement("path",{d:"M14.5 14.5L17 17L14.5 19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},KV=c.forwardRef(GV);var YV=KV,qV=Object.defineProperty,Xb=Object.getOwnPropertySymbols,XV=Object.prototype.hasOwnProperty,JV=Object.prototype.propertyIsEnumerable,Jb=(e,t,n)=>t in e?qV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fu=(e,t)=>{for(var n in t||(t={}))XV.call(t,n)&&Jb(e,n,t[n]);if(Xb)for(var n of Xb(t))JV.call(t,n)&&Jb(e,n,t[n]);return e};const QV=(e,t)=>{const n=c.useContext(F),r=Fu(Fu({},n),e);return c.createElement("svg",Fu({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),c.createElement("path",{d:"M17 17L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},ez=c.forwardRef(QV);var tz=ez,nz=Object.defineProperty,Qb=Object.getOwnPropertySymbols,rz=Object.prototype.hasOwnProperty,oz=Object.prototype.propertyIsEnumerable,e0=(e,t,n)=>t in e?nz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bu=(e,t)=>{for(var n in t||(t={}))rz.call(t,n)&&e0(e,n,t[n]);if(Qb)for(var n of Qb(t))oz.call(t,n)&&e0(e,n,t[n]);return e};const sz=(e,t)=>{const n=c.useContext(F),r=Bu(Bu({},n),e);return c.createElement("svg",Bu({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),c.createElement("path",{d:"M22 12L3 20L6.5625 12L3 4L22 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M6.5 12L22 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},iz=c.forwardRef(sz);var az=iz,cz=Object.defineProperty,t0=Object.getOwnPropertySymbols,lz=Object.prototype.hasOwnProperty,uz=Object.prototype.propertyIsEnumerable,n0=(e,t,n)=>t in e?cz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hu=(e,t)=>{for(var n in t||(t={}))lz.call(t,n)&&n0(e,n,t[n]);if(t0)for(var n of t0(t))uz.call(t,n)&&n0(e,n,t[n]);return e};const dz=(e,t)=>{const n=c.useContext(F),r=Hu(Hu({},n),e);return c.createElement("svg",Hu({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),c.createElement("path",{d:"M6 18.01L6.01 17.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M6 6.01L6.01 5.99889",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}),c.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"}))},fz=c.forwardRef(dz);var pz=fz,mz=Object.defineProperty,r0=Object.getOwnPropertySymbols,hz=Object.prototype.hasOwnProperty,gz=Object.prototype.propertyIsEnumerable,o0=(e,t,n)=>t in e?mz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wu=(e,t)=>{for(var n in t||(t={}))hz.call(t,n)&&o0(e,n,t[n]);if(r0)for(var n of r0(t))gz.call(t,n)&&o0(e,n,t[n]);return e};const vz=(e,t)=>{const n=c.useContext(F),r=Wu(Wu({},n),e);return c.createElement("svg",Wu({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),c.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"}),c.createElement("path",{d:"M9 13L11 15L16 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},bz=c.forwardRef(vz);var yz=bz,wz=Object.defineProperty,s0=Object.getOwnPropertySymbols,xz=Object.prototype.hasOwnProperty,Cz=Object.prototype.propertyIsEnumerable,i0=(e,t,n)=>t in e?wz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zu=(e,t)=>{for(var n in t||(t={}))xz.call(t,n)&&i0(e,n,t[n]);if(s0)for(var n of s0(t))Cz.call(t,n)&&i0(e,n,t[n]);return e};const kz=(e,t)=>{const n=c.useContext(F),r=Zu(Zu({},n),e);return c.createElement("svg",Zu({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),c.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"}),c.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"}))},Ez=c.forwardRef(kz);var Sz=Ez,$z=Object.defineProperty,a0=Object.getOwnPropertySymbols,Oz=Object.prototype.hasOwnProperty,Lz=Object.prototype.propertyIsEnumerable,c0=(e,t,n)=>t in e?$z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Uu=(e,t)=>{for(var n in t||(t={}))Oz.call(t,n)&&c0(e,n,t[n]);if(a0)for(var n of a0(t))Lz.call(t,n)&&c0(e,n,t[n]);return e};const jz=(e,t)=>{const n=c.useContext(F),r=Uu(Uu({},n),e);return c.createElement("svg",Uu({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),c.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"}),c.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"}),c.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"}),c.createElement("path",{d:"M15.5 6.5L8.5 10.5",stroke:"currentColor"}),c.createElement("path",{d:"M8.5 13.5L15.5 17.5",stroke:"currentColor"}))},Rz=c.forwardRef(jz);var Pz=Rz,Mz=Object.defineProperty,l0=Object.getOwnPropertySymbols,Tz=Object.prototype.hasOwnProperty,Iz=Object.prototype.propertyIsEnumerable,u0=(e,t,n)=>t in e?Mz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gu=(e,t)=>{for(var n in t||(t={}))Tz.call(t,n)&&u0(e,n,t[n]);if(l0)for(var n of l0(t))Iz.call(t,n)&&u0(e,n,t[n]);return e};const Az=(e,t)=>{const n=c.useContext(F),r=Gu(Gu({},n),e);return c.createElement("svg",Gu({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),c.createElement("path",{d:"M8.5 11.5L11.5 14.5L16.5 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},_z=c.forwardRef(Az);var Nz=_z,Dz=Object.defineProperty,d0=Object.getOwnPropertySymbols,Vz=Object.prototype.hasOwnProperty,zz=Object.prototype.propertyIsEnumerable,f0=(e,t,n)=>t in e?Dz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ku=(e,t)=>{for(var n in t||(t={}))Vz.call(t,n)&&f0(e,n,t[n]);if(d0)for(var n of d0(t))zz.call(t,n)&&f0(e,n,t[n]);return e};const Fz=(e,t)=>{const n=c.useContext(F),r=Ku(Ku({},n),e);return c.createElement("svg",Ku({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),c.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"}),c.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"}),c.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"}),c.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"}))},Bz=c.forwardRef(Fz);var Hz=Bz,Wz=Object.defineProperty,p0=Object.getOwnPropertySymbols,Zz=Object.prototype.hasOwnProperty,Uz=Object.prototype.propertyIsEnumerable,m0=(e,t,n)=>t in e?Wz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yu=(e,t)=>{for(var n in t||(t={}))Zz.call(t,n)&&m0(e,n,t[n]);if(p0)for(var n of p0(t))Uz.call(t,n)&&m0(e,n,t[n]);return e};const Gz=(e,t)=>{const n=c.useContext(F),r=Yu(Yu({},n),e);return c.createElement("svg",Yu({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),c.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"}),c.createElement("path",{d:"M7.25 10L5.5 12L7.25 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M9.5 21V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Kz=c.forwardRef(Gz);var vk=Kz,Yz=Object.defineProperty,h0=Object.getOwnPropertySymbols,qz=Object.prototype.hasOwnProperty,Xz=Object.prototype.propertyIsEnumerable,g0=(e,t,n)=>t in e?Yz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qu=(e,t)=>{for(var n in t||(t={}))qz.call(t,n)&&g0(e,n,t[n]);if(h0)for(var n of h0(t))Xz.call(t,n)&&g0(e,n,t[n]);return e};const Jz=(e,t)=>{const n=c.useContext(F),r=qu(qu({},n),e);return c.createElement("svg",qu({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),c.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"}),c.createElement("path",{d:"M9.5 21V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M5.5 10L7.25 12L5.5 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},Qz=c.forwardRef(Jz);var Yp=Qz,eF=Object.defineProperty,v0=Object.getOwnPropertySymbols,tF=Object.prototype.hasOwnProperty,nF=Object.prototype.propertyIsEnumerable,b0=(e,t,n)=>t in e?eF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xu=(e,t)=>{for(var n in t||(t={}))tF.call(t,n)&&b0(e,n,t[n]);if(v0)for(var n of v0(t))nF.call(t,n)&&b0(e,n,t[n]);return e};const rF=(e,t)=>{const n=c.useContext(F),r=Xu(Xu({},n),e);return c.createElement("svg",Xu({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),c.createElement("path",{d:"M18 7V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},oF=c.forwardRef(rF);var sF=oF,iF=Object.defineProperty,y0=Object.getOwnPropertySymbols,aF=Object.prototype.hasOwnProperty,cF=Object.prototype.propertyIsEnumerable,w0=(e,t,n)=>t in e?iF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ju=(e,t)=>{for(var n in t||(t={}))aF.call(t,n)&&w0(e,n,t[n]);if(y0)for(var n of y0(t))cF.call(t,n)&&w0(e,n,t[n]);return e};const lF=(e,t)=>{const n=c.useContext(F),r=Ju(Ju({},n),e);return c.createElement("svg",Ju({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),c.createElement("path",{d:"M6 7V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},uF=c.forwardRef(lF);var dF=uF,fF=Object.defineProperty,x0=Object.getOwnPropertySymbols,pF=Object.prototype.hasOwnProperty,mF=Object.prototype.propertyIsEnumerable,C0=(e,t,n)=>t in e?fF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Qu=(e,t)=>{for(var n in t||(t={}))pF.call(t,n)&&C0(e,n,t[n]);if(x0)for(var n of x0(t))mF.call(t,n)&&C0(e,n,t[n]);return e};const hF=(e,t)=>{const n=c.useContext(F),r=Qu(Qu({},n),e);return c.createElement("svg",Qu({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),c.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"}),c.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"}),c.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"}))},gF=c.forwardRef(hF);var bk=gF,vF=Object.defineProperty,k0=Object.getOwnPropertySymbols,bF=Object.prototype.hasOwnProperty,yF=Object.prototype.propertyIsEnumerable,E0=(e,t,n)=>t in e?vF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ed=(e,t)=>{for(var n in t||(t={}))bF.call(t,n)&&E0(e,n,t[n]);if(k0)for(var n of k0(t))yF.call(t,n)&&E0(e,n,t[n]);return e};const wF=(e,t)=>{const n=c.useContext(F),r=ed(ed({},n),e);return c.createElement("svg",ed({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),c.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"}),c.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"}))},xF=c.forwardRef(wF);var CF=xF,kF=Object.defineProperty,S0=Object.getOwnPropertySymbols,EF=Object.prototype.hasOwnProperty,SF=Object.prototype.propertyIsEnumerable,$0=(e,t,n)=>t in e?kF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,td=(e,t)=>{for(var n in t||(t={}))EF.call(t,n)&&$0(e,n,t[n]);if(S0)for(var n of S0(t))SF.call(t,n)&&$0(e,n,t[n]);return e};const $F=(e,t)=>{const n=c.useContext(F),r=td(td({},n),e);return c.createElement("svg",td({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),c.createElement("path",{d:"M18 14L20.0005 12M22 10L20.0005 12M20.0005 12L18 10M20.0005 12L22 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},OF=c.forwardRef($F);var LF=OF,jF=Object.defineProperty,O0=Object.getOwnPropertySymbols,RF=Object.prototype.hasOwnProperty,PF=Object.prototype.propertyIsEnumerable,L0=(e,t,n)=>t in e?jF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nd=(e,t)=>{for(var n in t||(t={}))RF.call(t,n)&&L0(e,n,t[n]);if(O0)for(var n of O0(t))PF.call(t,n)&&L0(e,n,t[n]);return e};const MF=(e,t)=>{const n=c.useContext(F),r=nd(nd({},n),e);return c.createElement("svg",nd({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),c.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"}),c.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"}))},TF=c.forwardRef(MF);var IF=TF,AF=Object.defineProperty,j0=Object.getOwnPropertySymbols,_F=Object.prototype.hasOwnProperty,NF=Object.prototype.propertyIsEnumerable,R0=(e,t,n)=>t in e?AF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rd=(e,t)=>{for(var n in t||(t={}))_F.call(t,n)&&R0(e,n,t[n]);if(j0)for(var n of j0(t))NF.call(t,n)&&R0(e,n,t[n]);return e};const DF=(e,t)=>{const n=c.useContext(F),r=rd(rd({},n),e);return c.createElement("svg",rd({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),c.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"}))},VF=c.forwardRef(DF);var zF=VF,FF=Object.defineProperty,P0=Object.getOwnPropertySymbols,BF=Object.prototype.hasOwnProperty,HF=Object.prototype.propertyIsEnumerable,M0=(e,t,n)=>t in e?FF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,od=(e,t)=>{for(var n in t||(t={}))BF.call(t,n)&&M0(e,n,t[n]);if(P0)for(var n of P0(t))HF.call(t,n)&&M0(e,n,t[n]);return e};const WF=(e,t)=>{const n=c.useContext(F),r=od(od({},n),e);return c.createElement("svg",od({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),c.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"}),c.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"}))},ZF=c.forwardRef(WF);var UF=ZF,GF=Object.defineProperty,T0=Object.getOwnPropertySymbols,KF=Object.prototype.hasOwnProperty,YF=Object.prototype.propertyIsEnumerable,I0=(e,t,n)=>t in e?GF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sd=(e,t)=>{for(var n in t||(t={}))KF.call(t,n)&&I0(e,n,t[n]);if(T0)for(var n of T0(t))YF.call(t,n)&&I0(e,n,t[n]);return e};const qF=(e,t)=>{const n=c.useContext(F),r=sd(sd({},n),e);return c.createElement("svg",sd({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),c.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"}),c.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"}))},XF=c.forwardRef(qF);var JF=XF,QF=Object.defineProperty,A0=Object.getOwnPropertySymbols,eB=Object.prototype.hasOwnProperty,tB=Object.prototype.propertyIsEnumerable,_0=(e,t,n)=>t in e?QF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,id=(e,t)=>{for(var n in t||(t={}))eB.call(t,n)&&_0(e,n,t[n]);if(A0)for(var n of A0(t))tB.call(t,n)&&_0(e,n,t[n]);return e};const nB=(e,t)=>{const n=c.useContext(F),r=id(id({},n),e);return c.createElement("svg",id({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),c.createElement("path",{d:"M12 7V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},rB=c.forwardRef(nB);var oB=rB,sB=Object.defineProperty,N0=Object.getOwnPropertySymbols,iB=Object.prototype.hasOwnProperty,aB=Object.prototype.propertyIsEnumerable,D0=(e,t,n)=>t in e?sB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ad=(e,t)=>{for(var n in t||(t={}))iB.call(t,n)&&D0(e,n,t[n]);if(N0)for(var n of N0(t))aB.call(t,n)&&D0(e,n,t[n]);return e};const cB=(e,t)=>{const n=c.useContext(F),r=ad(ad({},n),e);return c.createElement("svg",ad({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),c.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"}))},lB=c.forwardRef(cB);var uB=lB,dB=Object.defineProperty,V0=Object.getOwnPropertySymbols,fB=Object.prototype.hasOwnProperty,pB=Object.prototype.propertyIsEnumerable,z0=(e,t,n)=>t in e?dB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cd=(e,t)=>{for(var n in t||(t={}))fB.call(t,n)&&z0(e,n,t[n]);if(V0)for(var n of V0(t))pB.call(t,n)&&z0(e,n,t[n]);return e};const mB=(e,t)=>{const n=c.useContext(F),r=cd(cd({},n),e);return c.createElement("svg",cd({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),c.createElement("path",{d:"M13 16H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M6 8L10 12L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},hB=c.forwardRef(mB);var gB=hB,vB=Object.defineProperty,F0=Object.getOwnPropertySymbols,bB=Object.prototype.hasOwnProperty,yB=Object.prototype.propertyIsEnumerable,B0=(e,t,n)=>t in e?vB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ld=(e,t)=>{for(var n in t||(t={}))bB.call(t,n)&&B0(e,n,t[n]);if(F0)for(var n of F0(t))yB.call(t,n)&&B0(e,n,t[n]);return e};const wB=(e,t)=>{const n=c.useContext(F),r=ld(ld({},n),e);return c.createElement("svg",ld({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),c.createElement("path",{d:"M13 17H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M5 7L10 12L5 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},xB=c.forwardRef(wB);var CB=xB,kB=Object.defineProperty,H0=Object.getOwnPropertySymbols,EB=Object.prototype.hasOwnProperty,SB=Object.prototype.propertyIsEnumerable,W0=(e,t,n)=>t in e?kB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ud=(e,t)=>{for(var n in t||(t={}))EB.call(t,n)&&W0(e,n,t[n]);if(H0)for(var n of H0(t))SB.call(t,n)&&W0(e,n,t[n]);return e};const $B=(e,t)=>{const n=c.useContext(F),r=ud(ud({},n),e);return c.createElement("svg",ud({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),c.createElement("path",{d:"M19 7V5L5 5V7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M12 5L12 19M12 19H10M12 19H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},OB=c.forwardRef($B);var LB=OB,jB=Object.defineProperty,Z0=Object.getOwnPropertySymbols,RB=Object.prototype.hasOwnProperty,PB=Object.prototype.propertyIsEnumerable,U0=(e,t,n)=>t in e?jB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dd=(e,t)=>{for(var n in t||(t={}))RB.call(t,n)&&U0(e,n,t[n]);if(Z0)for(var n of Z0(t))PB.call(t,n)&&U0(e,n,t[n]);return e};const MB=(e,t)=>{const n=c.useContext(F),r=dd(dd({},n),e);return c.createElement("svg",dd({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),c.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"}),c.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"}))},TB=c.forwardRef(MB);var IB=TB,AB=Object.defineProperty,G0=Object.getOwnPropertySymbols,_B=Object.prototype.hasOwnProperty,NB=Object.prototype.propertyIsEnumerable,K0=(e,t,n)=>t in e?AB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fd=(e,t)=>{for(var n in t||(t={}))_B.call(t,n)&&K0(e,n,t[n]);if(G0)for(var n of G0(t))NB.call(t,n)&&K0(e,n,t[n]);return e};const DB=(e,t)=>{const n=c.useContext(F),r=fd(fd({},n),e);return c.createElement("svg",fd({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),c.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"}),c.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"}))},VB=c.forwardRef(DB);var yk=VB,zB=Object.defineProperty,Y0=Object.getOwnPropertySymbols,FB=Object.prototype.hasOwnProperty,BB=Object.prototype.propertyIsEnumerable,q0=(e,t,n)=>t in e?zB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pd=(e,t)=>{for(var n in t||(t={}))FB.call(t,n)&&q0(e,n,t[n]);if(Y0)for(var n of Y0(t))BB.call(t,n)&&q0(e,n,t[n]);return e};const HB=(e,t)=>{const n=c.useContext(F),r=pd(pd({},n),e);return c.createElement("svg",pd({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),c.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"}),c.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"}))},WB=c.forwardRef(HB);var ZB=WB,UB=Object.defineProperty,X0=Object.getOwnPropertySymbols,GB=Object.prototype.hasOwnProperty,KB=Object.prototype.propertyIsEnumerable,J0=(e,t,n)=>t in e?UB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,md=(e,t)=>{for(var n in t||(t={}))GB.call(t,n)&&J0(e,n,t[n]);if(X0)for(var n of X0(t))KB.call(t,n)&&J0(e,n,t[n]);return e};const YB=(e,t)=>{const n=c.useContext(F),r=md(md({},n),e);return c.createElement("svg",md({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),c.createElement("path",{d:"M6 20L18 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M12 16V4M12 4L15.5 7.5M12 4L8.5 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},qB=c.forwardRef(YB);var XB=qB,JB=Object.defineProperty,Q0=Object.getOwnPropertySymbols,QB=Object.prototype.hasOwnProperty,eH=Object.prototype.propertyIsEnumerable,ey=(e,t,n)=>t in e?JB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hd=(e,t)=>{for(var n in t||(t={}))QB.call(t,n)&&ey(e,n,t[n]);if(Q0)for(var n of Q0(t))eH.call(t,n)&&ey(e,n,t[n]);return e};const tH=(e,t)=>{const n=c.useContext(F),r=hd(hd({},n),e);return c.createElement("svg",hd({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),c.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"}))},nH=c.forwardRef(tH);var rH=nH,oH=Object.defineProperty,ty=Object.getOwnPropertySymbols,sH=Object.prototype.hasOwnProperty,iH=Object.prototype.propertyIsEnumerable,ny=(e,t,n)=>t in e?oH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gd=(e,t)=>{for(var n in t||(t={}))sH.call(t,n)&&ny(e,n,t[n]);if(ty)for(var n of ty(t))iH.call(t,n)&&ny(e,n,t[n]);return e};const aH=(e,t)=>{const n=c.useContext(F),r=gd(gd({},n),e);return c.createElement("svg",gd({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),c.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"}),c.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"}),c.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"}),c.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"}))},cH=c.forwardRef(aH);var ic=cH,lH=Object.defineProperty,ry=Object.getOwnPropertySymbols,uH=Object.prototype.hasOwnProperty,dH=Object.prototype.propertyIsEnumerable,oy=(e,t,n)=>t in e?lH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vd=(e,t)=>{for(var n in t||(t={}))uH.call(t,n)&&oy(e,n,t[n]);if(ry)for(var n of ry(t))dH.call(t,n)&&oy(e,n,t[n]);return e};const fH=(e,t)=>{const n=c.useContext(F),r=vd(vd({},n),e);return c.createElement("svg",vd({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),c.createElement("path",{d:"M12 7L12 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M12 17.01L12.01 16.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),c.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"}))},pH=c.forwardRef(fH);var mH=pH,hH=Object.defineProperty,sy=Object.getOwnPropertySymbols,gH=Object.prototype.hasOwnProperty,vH=Object.prototype.propertyIsEnumerable,iy=(e,t,n)=>t in e?hH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bd=(e,t)=>{for(var n in t||(t={}))gH.call(t,n)&&iy(e,n,t[n]);if(sy)for(var n of sy(t))vH.call(t,n)&&iy(e,n,t[n]);return e};const bH=(e,t)=>{const n=c.useContext(F),r=bd(bd({},n),e);return c.createElement("svg",bd({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),c.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"}),c.createElement("path",{d:"M12 9V13",stroke:"currentColor",strokeLinecap:"round"}),c.createElement("path",{d:"M12 17.01L12.01 16.9989",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}))},yH=c.forwardRef(bH);var wH=yH,xH=Object.defineProperty,ay=Object.getOwnPropertySymbols,CH=Object.prototype.hasOwnProperty,kH=Object.prototype.propertyIsEnumerable,cy=(e,t,n)=>t in e?xH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yd=(e,t)=>{for(var n in t||(t={}))CH.call(t,n)&&cy(e,n,t[n]);if(ay)for(var n of ay(t))kH.call(t,n)&&cy(e,n,t[n]);return e};const EH=(e,t)=>{const n=c.useContext(F),r=yd(yd({},n),e);return c.createElement("svg",yd({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),c.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"}),c.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"}))},SH=c.forwardRef(EH);var $H=SH,OH=Object.defineProperty,ly=Object.getOwnPropertySymbols,LH=Object.prototype.hasOwnProperty,jH=Object.prototype.propertyIsEnumerable,uy=(e,t,n)=>t in e?OH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wd=(e,t)=>{for(var n in t||(t={}))LH.call(t,n)&&uy(e,n,t[n]);if(ly)for(var n of ly(t))jH.call(t,n)&&uy(e,n,t[n]);return e};const RH=(e,t)=>{const n=c.useContext(F),r=wd(wd({},n),e);return c.createElement("svg",wd({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),c.createElement("path",{d:"M16.8198 20.7684L3.75317 3.96836C3.44664 3.57425 3.72749 3 4.22678 3H6.70655C6.8917 3 7.06649 3.08548 7.18016 3.23164L20.2468 20.0316C20.5534 20.4258 20.2725 21 19.7732 21H17.2935C17.1083 21 16.9335 20.9145 16.8198 20.7684Z",stroke:"currentColor"}),c.createElement("path",{d:"M20 3L4 21",stroke:"currentColor",strokeLinecap:"round"}))},PH=c.forwardRef(RH);var MH=PH,TH=Object.defineProperty,dy=Object.getOwnPropertySymbols,IH=Object.prototype.hasOwnProperty,AH=Object.prototype.propertyIsEnumerable,fy=(e,t,n)=>t in e?TH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xd=(e,t)=>{for(var n in t||(t={}))IH.call(t,n)&&fy(e,n,t[n]);if(dy)for(var n of dy(t))AH.call(t,n)&&fy(e,n,t[n]);return e};const _H=(e,t)=>{const n=c.useContext(F),r=xd(xd({},n),e);return c.createElement("svg",xd({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),c.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"}),c.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"}))},NH=c.forwardRef(_H);var DH=NH;function D(e,t,n={}){const r=c.forwardRef(function({size:s=24,width:i,height:a,strokeWidth:u=1.5,absoluteStrokeWidth:l=!1,style:d,...f},p){const m=l&&typeof s=="number"&&typeof u=="number"?u*24/s:u,g=n.mirror?{...d,transform:`scaleX(-1) ${d?.transform??""}`.trim()}:d;return h.jsx(e,{...f,ref:p,width:i??s,height:a??s,strokeWidth:m,style:g})});return r.displayName=t,r}D(RP,"Activity");const VH=D(mH,"AlertCircle");D(wH,"AlertTriangle");D(BP,"AppWindow");const zH=D(KP,"ArrowDown");D(eM,"ArrowRight");const FH=D(bM,"ArrowUp"),BH=D(JT,"ArrowUpDown");D(bk,"AudioLines");D(mk,"BookOpen");D(mk,"BookOpenText");D(BM,"Bot");D(_M,"Boxes");D(sT,"Braces");D(ak,"Brackets");D(KM,"Brain");D(i7,"Camera");D(e7,"Cable");D(E7,"Check");D(b7,"CheckCircle2");D(vN,"ChevronDown");D(kN,"ChevronRight");D(fM,"ChevronsDownUp");D(iM,"ChevronsUpDown");D(jN,"ChevronUp");D(R7,"Circle");D(zN,"CircleDot");D($D,"Clipboard");const HH=D(B7,"Clock");D(K7,"Cloud");D(dT,"Code2");D(rH,"Columns2");D(OA,"Command");D(vT,"Compass");D(IT,"Copy");D(eN,"CopyPlus");const WH=D(zT,"CornerDownLeft");D($V,"Crosshair");D(o8,"Database");D(L8,"Download");D(XN,"ExternalLink");D(lI,"Eye");D(rI,"EyeOff");D(ak,"FileCode2");D(XI,"FileDiff");D(hD,"FileText");D(K_,"Film");D(TI,"Focus");D(OI,"Folder");D(VI,"FrameIcon");D(ZI,"GitBranchPlus");D(Kp,"GripVertical");D(Kp,"GripHorizontal");D(rA,"Globe");D(I8,"Hand");D(lA,"Hash");D(_7,"History");D(hA,"Home");D(dk,"ImageIcon");D(dk,"Image");D(C8,"Inbox");D(xA,"Info");D(yk,"Keyboard");D(fk,"Layers");D(fk,"Layers3");D(ic,"LayoutGrid");D(ic,"Grid3X3");D(lk,"LayoutList");D(ic,"LayoutTemplate");D(RM,"Library");D(VA,"Link2");D(lk,"List");D(cV,"ListMusic");const py=D(gk,"Loader2");D(gk,"LoaderCircle");D(uk,"Lock");D(uk,"LockKeyhole");const ZH=D(a_,"Map");D(p_,"Maximize");const UH=D(X8,"Maximize2");D(f7,"MessageSquare");const GH=D(R_,"Mic"),KH=D(MV,"Minimize2"),YH=D(__,"Minus");D(UT,"MousePointer2");D(kT,"Monitor");D(B_,"MoreHorizontal");D(Kp,"Move");D(dN,"Music2");D(pk,"Network");D(Yp,"PanelLeft");const qH=D(vk,"PanelLeftClose"),XH=D(Yp,"PanelLeftOpen");D(rD,"PanelBottom");const JH=D(vk,"PanelRightClose",{mirror:!0}),QH=D(Yp,"PanelRightOpen",{mirror:!0});D(lD,"PanelTop");D(ic,"PanelsTopLeft");D(u8,"Paintbrush");D(hk,"Palette");const eW=D(EM,"Paperclip");D(DD,"Pause");D(Z8,"Pencil");D(E_,"PictureInPicture2");D(qD,"Pin");D(WD,"PinOff");D(nV,"Play");const tW=D(mV,"Plus");D(oB,"Power");D(_P,"Radar");D(wV,"Radio");D(YV,"Repeat");D(HV,"Repeat1");D(ZB,"RotateCcw");D(uB,"Rows3");D(xI,"Save");D(g8,"ScanSearch");const wk=D(tz,"Search");D(az,"Send");D(pz,"Server");D(Sz,"Settings");D(yz,"Settings2");D(Pz,"Share2");D(Nz,"ShieldCheck");D(Hz,"Shuffle");D(dF,"SkipBack");D(sF,"SkipForward");D(ck,"Sliders");D(ck,"SlidersHorizontal");const nW=D(IF,"Sparkles"),xk=D(zF,"Square"),rW=D(CB,"Terminal");D(gB,"TerminalSquare");D(LB,"Text");D(UF,"ToggleLeft");D(JF,"ToggleRight");const oW=D(IB,"Trash2");D(yk,"Type");D(TA,"Unlink");D(XB,"Upload");D(CF,"Volume1");const sW=D(bk,"Volume2"),iW=D(LF,"VolumeX");D($H,"Wrench");D(hk,"SwatchBook");D(t_,"Wand2");D(MD,"Waypoints");D(pk,"Workflow");const aW=D(MH,"X");D(DH,"XCircle");D(hI,"Zap");const Ck="hudsonTrace",cW=new Set(["cat","find","fd","grep","head","ls","pwd","rg","sed","tail","wc","which"]),lW=new Set(["branch","diff","ls-files","log","rev-parse","show","status"]),kk=new Set(["","agent.task"]);function uW(e,t){const n=e.filter(Mo),r=pW(n);if(t==="raw")return{events:n,hiddenDetailEvents:0,collapsedEvents:0,relatedEventsByTrace:r};const o=fW(n),s=[];let i=0;for(const a of o.values())(t==="details"||hW(a))&&(i+=a.length,s.push(mW(a)));return{events:s,hiddenDetailEvents:Math.max(0,n.length-i),collapsedEvents:Math.max(0,i-s.length),relatedEventsByTrace:r}}function Mo(e){const t=zt(e);return e.category==="agent-action"||t.triggeredBy==="agent"||t.source==="workspace-ai"}function zt(e){return e.data&&typeof e.data=="object"&&!Array.isArray(e.data)?e.data:{}}function De(e,t){const n=e[t];return typeof n=="string"&&n.trim()?n:null}function To(e){return e.kind==="span"?e.traceId:De(zt(e),"traceId")}function qp(e){return De(zt(e),"parentTraceId")}function ac(e){const t=zt(e).metadata;if(!Jp(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 Rf(e){if(!e||e.length===0)return!1;const t=$k(e[0]);if(cW.has(t))return!0;if(t==="git"){const n=e.find((r,o)=>o>0&&!r.startsWith("-"));return n?lW.has(n):!1}return!1}function Xp(e){const t=zt(e),n=De(t,"appId")??De(t,"targetAppId");if(n)return n;const r=De(t,"action")??De(t,"playbook")??De(t,"commandId"),o=r&&!kk.has(r)?vW(r):null;if(o)return o;const s=ac(e);for(const i of s??[]){const a=Sk(i);if(a)return a}return null}function dW(e){const t=zt(e)[Ck];if(!Jp(t))return null;const n=De(t,"traceId"),r=is(t,"eventCount"),o=is(t,"startedAt"),s=is(t,"endedAt"),i=is(t,"durationMs"),a=is(t,"hiddenDetailEvents")??0;return!n||r===void 0||o===void 0||s===void 0||i===void 0?null:{traceId:n,eventCount:r,startedAt:o,endedAt:s,durationMs:i,hiddenDetailEvents:a}}function Ek(e){if(!e||e.length===0)return null;const t=$k(e[0]),n=e.map(bW).find(Boolean);return Rf(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 my(e){return!e||e==="agent.task"?"Agent task":e.replace(/^hudson\./,"").replace(/[._:-]+/g," ").replace(/\s+/g," ").trim().split(" ").map((n,r)=>r===0?yW(n):n).join(" ")}function fW(e){const t=new Map;for(const n of e){const r=To(n)??n.id,o=t.get(r);o?o.push(n):t.set(r,[n])}return t}function pW(e){const t=new Map,n=(r,o)=>{if(!r)return;const s=t.get(r);s?s.some(i=>i.id===o.id)||s.push(o):t.set(r,[o])};for(const r of e)n(To(r)??r.id,r),n(qp(r),r),n(r.kind==="span"?r.parentId??null:null,r);for(const r of t.values())r.sort((o,s)=>o.timestamp-s.timestamp);return t}function mW(e){const t=[...e].sort((i,a)=>i.timestamp-a.timestamp),n=kd(t,i=>Cd(i)===3)??kd(t,i=>Cd(i)===2)??kd(t,i=>Cd(i)===1)??t[t.length-1],r=To(n)??n.id,o=t[0]?.timestamp??n.timestamp,s=t[t.length-1]?.timestamp??n.timestamp;return{...n,data:{...zt(n),[Ck]:{traceId:r,eventCount:t.length,startedAt:o,endedAt:s,durationMs:Math.max(0,s-o),hiddenDetailEvents:Math.max(0,t.length-1)}}}}function hW(e){return e.every(t=>qp(t))?!1:e.some(t=>{if(t.kind==="span")return!0;const n=zt(t),r=De(n,"action")??De(n,"playbook")??"",o=!kk.has(r),s=ac(t);return o||De(n,"commandId")||Xp(t)&&!s||gW(n)&&!Rf(s)?!0:!!(s&&!Rf(s))})}function gW(e){const t=e.args;return Jp(t)&&typeof t.prompt=="string"&&t.prompt.trim().length>0}function Cd(e){if(e.kind==="span")return e.status==="error"?3:e.status==="ok"?2:e.status==="active"?1:0;const t=De(zt(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 kd(e,t){for(let n=e.length-1;n>=0;n--)if(t(e[n]))return e[n]}function vW(e){if(!e)return null;const[t]=e.split(/[.:_-]/);return t||null}function Sk(e){const t=e.match(/(?:^|\/)app\/apps\/([^/\s]+)/);return t?t[1]:null}function bW(e){const t=Sk(e);return t||null}function $k(e){return e.split("/").pop()??e}function Jp(e){return!!e&&typeof e=="object"&&!Array.isArray(e)}function is(e,t){const n=e[t];return typeof n=="number"&&Number.isFinite(n)?n:void 0}function yW(e){return e&&`${e[0].toUpperCase()}${e.slice(1)}`}const wW=["debug","info","warn","error"],xW=["log","metric","span"],CW="hudson:open-app",Ed=340,ka=440,hy=900,kW=420,EW="hudson.hud-logger.inspector-width",SW=1,gy={key:"time",direction:"desc"},vy="grid-cols-[62px_64px_76px_58px_72px_112px_128px_minmax(260px,1fr)_92px]";function $W(e){return typeof e!="number"||e===380?ka:e}function Ok(e=en,t={}){const n=t.maxEvents??200,[r,o]=c.useState(()=>e.snapshot().slice(-n).reverse());return c.useEffect(()=>{const s=()=>{o(e.snapshot().slice(-n).reverse())},i=e.subscribe(s);return s(),i},[n,e]),r}function Lk(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(Mo).length,activeSpans:Array.from(t.values()).filter(n=>n==="active").length,lastEvent:e[0]??null}}function OW(e=en,t={}){const n=Ok(e,t);return c.useMemo(()=>Lk(n),[n])}function LW({observability:e=en,maxEvents:t=200,label:n="Logs",className:r="",showCounts:o=!1}){const s=OW(e,{maxEvents:t}),i=s.errors>0?"red":s.warnings>0||s.activeSpans>0?"amber":"emerald";return h.jsxs("span",{className:`inline-flex min-w-0 items-center gap-2 font-mono text-[9px] font-light uppercase tracking-[0.18em] ${qW(i)} ${r}`,title:`${s.total} events, ${s.errors} errors, ${s.activeSpans} active spans`,children:[h.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${XW(i)}`}),h.jsx("span",{children:n}),o&&s.errors>0?h.jsxs("span",{className:"tabular-nums font-semibold",children:[s.errors," err"]}):o&&s.warnings>0?h.jsxs("span",{className:"tabular-nums",children:[s.warnings," warn"]}):null]})}function jW({observability:e=en,events:t,replayEvents:n,maxEvents:r=200,title:o="HudLogger",className:s="",emptyMessage:i="No events match the current filters.",showHeader:a=!0,showInspector:u=!0,initialTail:l=!0,initialScope:d="all"}){const f=Ok(e,{maxEvents:r}),p=c.useMemo(()=>t?t.slice(0,r):!n||n.length===0?f:YW(n,f,r),[t,n,f,r]),[m,g]=c.useState(null),[y,x]=c.useState("all"),[w,b]=c.useState("all"),[v,C]=c.useState(d),[k,E]=c.useState(d==="agent-actions"?"actions":"raw"),[$,S]=c.useState(""),[j,R]=c.useState(l),[T,A]=c.useState(gy),[L,V]=c.useState(null),[I,_]=It(EW,ka,{version:SW,migrate:$W}),N=c.useRef(null),O=c.useRef(null),[z,M]=c.useState(!1),q=c.useMemo(()=>uW(p,v==="agent-actions"?k:"raw"),[k,p,v]),ee=v==="agent-actions"?q.events:p,K=c.useMemo(()=>ee.filter(U=>{if(w!=="all"&&U.kind!==w||y!=="all"&&(U.kind!=="log"||U.level!==y))return!1;if(!$.trim())return!0;const W=To(U)??U.id,le=q.relatedEventsByTrace.get(W)??[];return FW(U,le).includes($.trim().toLowerCase())}),[q.relatedEventsByTrace,w,y,$,ee]),ue=c.useMemo(()=>UW(K,T),[K,T]),re=j&&T.key==="time"&&T.direction==="desc"?ue[0]?nr(ue[0]):null:m,oe=ue.find(U=>nr(U)===re)??ue[0]??null,ie=oe?To(oe)??oe.id:null,ae=ie?q.relatedEventsByTrace.get(ie)??[]:[],pe=c.useMemo(()=>Lk(p),[p]),P=c.useCallback(async(U,W)=>{await KW(U)&&(V(W),window.setTimeout(()=>{V(J=>J===W?null:J)},1200))},[]),Y=c.useCallback(U=>{R(!1),g(nr(U))},[]),B=c.useCallback(U=>{R(!1),A(W=>W.key!==U?{key:U,direction:ZW(U)}:{key:U,direction:W.direction==="asc"?"desc":"asc"})},[]),ve=c.useCallback(()=>{j||A(gy),R(U=>!U)},[j]),Q=c.useCallback(U=>{const W=Pf(U);!W||typeof window>"u"||window.dispatchEvent(new CustomEvent(CW,{detail:{appId:W,workspaceId:_W(U),source:"hud-logger"}}))},[]),X=c.useCallback((U,W)=>{const le=Math.min(hy,Math.max(Ed,W-kW));return Math.max(Ed,Math.min(le,U))},[]),te=c.useCallback(U=>{if(U.button!==0)return;const W=N.current,le=O.current;if(!W||!le)return;U.preventDefault();const J=U.clientX,de=le.getBoundingClientRect().width;M(!0),document.body.style.cursor="col-resize",document.body.style.userSelect="none";const Z=Pe=>{const Ee=W.getBoundingClientRect().width,Fe=X(de+(J-Pe.clientX),Ee);le.style.setProperty("--inspector-width",`${Fe}px`)},ye=Pe=>{const Ee=W.getBoundingClientRect().width,Fe=X(de+(J-Pe.clientX),Ee);_(Fe),M(!1),document.body.style.cursor="",document.body.style.userSelect="",window.removeEventListener("pointermove",Z),window.removeEventListener("pointerup",ye),window.removeEventListener("pointercancel",ye)};window.addEventListener("pointermove",Z),window.addEventListener("pointerup",ye),window.addEventListener("pointercancel",ye)},[X,_]),ke=c.useCallback(()=>{_(ka)},[_]);c.useEffect(()=>{if(typeof window>"u")return;const U=N.current;if(!U)return;const W=new ResizeObserver(()=>{const le=U.getBoundingClientRect().width;_(J=>{const de=X(J,le);return de===J?J:de})});return W.observe(U),()=>W.disconnect()},[X,_]);const Ce=c.useMemo(()=>({"--inspector-width":`${I}px`}),[I]);return h.jsxs("section",{ref:N,className:`flex min-h-[520px] flex-col overflow-hidden rounded-md border border-border bg-background text-foreground lg:flex-row ${s}`,children:[h.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:[a&&h.jsxs("div",{className:"shrink-0 border-b border-border/70 bg-card/80 px-3 py-2.5",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[h.jsx(PW,{ariaLabel:"copy filtered table",copied:L==="table",disabled:ue.length===0,label:"copy all",onClick:()=>{P(HW(ue),"table")}}),h.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:[h.jsx("span",{children:o}),h.jsxs("span",{className:"text-accent",children:[ue.length," shown"]}),h.jsxs("span",{children:[pe.total," buffered"]}),h.jsxs("span",{children:[pe.agentActions," agent"]}),h.jsxs("span",{children:[pe.errors," errors"]}),pe.activeSpans>0&&h.jsxs("span",{className:"text-warning",children:[pe.activeSpans," active"]}),v==="agent-actions"&&k!=="raw"&&q.hiddenDetailEvents>0&&h.jsxs("span",{children:[q.hiddenDetailEvents," detail hidden"]}),v==="agent-actions"&&q.collapsedEvents>0&&h.jsxs("span",{children:[q.collapsedEvents," collapsed"]})]})]}),h.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:[h.jsx("span",{className:"shrink-0 text-success",children:"$"}),h.jsx("input",{value:$,onChange:U=>S(U.target.value),placeholder:"grep message, category, payload",className:"min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted-foreground"})]}),h.jsxs("details",{className:"mt-2 text-left",children:[h.jsx("summary",{className:"cursor-pointer font-mono text-[11px] font-normal uppercase tracking-[0.14em] text-muted-foreground hover:text-foreground",children:"filters / controls"}),h.jsxs("div",{className:"mt-3 grid gap-3 border-t border-border/60 pt-3 md:grid-cols-[1fr_1fr_1fr_1fr_auto]",children:[h.jsxs(Ei,{label:"Scope",children:[h.jsx(Hn,{active:v==="all",onClick:()=>C("all"),children:"all"}),h.jsx(Hn,{active:v==="agent-actions",onClick:()=>C("agent-actions"),children:"agent actions"})]}),v==="agent-actions"?h.jsxs(Ei,{label:"Rows",children:[h.jsx(Hn,{active:k==="actions",onClick:()=>E("actions"),children:"actions"}),h.jsx(Hn,{active:k==="details",onClick:()=>E("details"),children:"details"}),h.jsx(Hn,{active:k==="raw",onClick:()=>E("raw"),children:"raw"})]}):h.jsx("div",{}),h.jsxs(Ei,{label:"Kind",children:[h.jsx(Hn,{active:w==="all",onClick:()=>b("all"),children:"all"}),xW.map(U=>h.jsx(Hn,{active:w===U,onClick:()=>b(U),children:U},U))]}),h.jsxs(Ei,{label:"Level",children:[h.jsx(Hn,{active:y==="all",onClick:()=>x("all"),children:"all"}),wW.map(U=>h.jsx(Hn,{active:y===U,onClick:()=>x(U),children:U},U))]}),h.jsx("div",{className:"flex flex-wrap items-end gap-2",children:h.jsxs("button",{type:"button",onClick:ve,className:`rounded-md border px-2.5 py-1.5 font-mono text-[11px] font-normal uppercase tracking-[0.12em] transition-colors ${j?"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 ",j?"on":"off"]})})]})]})]}),h.jsx("div",{className:"max-h-[650px] overflow-auto lg:max-h-none lg:flex-1 lg:min-h-0",children:h.jsxs("div",{className:"min-w-[980px] font-mono text-[11px] font-normal",children:[h.jsxs("div",{className:`sticky top-0 z-10 grid min-h-8 ${vy} items-center border-b border-border/70 bg-card px-3 py-1.5 font-medium uppercase tracking-[0.12em] text-muted-foreground`,children:[h.jsx("span",{className:"sticky left-0 bg-card pr-2",children:"Copy"}),h.jsx("span",{children:"Open"}),h.jsx(Nr,{column:"time",label:"Time",sort:T,onSort:B}),h.jsx(Nr,{column:"kind",label:"Kind",sort:T,onSort:B}),h.jsx(Nr,{column:"level",label:"Level",sort:T,onSort:B}),h.jsx(Nr,{column:"category",label:"Category",sort:T,onSort:B}),h.jsx(Nr,{column:"target",label:"Target",sort:T,onSort:B}),h.jsx(Nr,{column:"message",label:"Message",sort:T,onSort:B}),h.jsx(Nr,{column:"id",label:"Id",sort:T,onSort:B})]}),ue.map(U=>{const W=Pf(U),le=nr(U);return h.jsxs("div",{role:"button",tabIndex:0,onClick:()=>Y(U),onKeyDown:J=>{(J.key==="Enter"||J.key===" ")&&(J.preventDefault(),Y(U))},className:`grid min-h-[34px] w-full ${vy} items-center border-b border-l-2 px-3 py-2 text-left transition-colors ${oe&&nr(oe)===le?"border-b-border/40 border-l-accent bg-accent/[0.08]":"border-b-border/40 border-l-transparent hover:bg-muted/30"}`,children:[h.jsx("button",{type:"button","aria-label":`copy row ${Mf(U.id)}`,onClick:J=>{J.stopPropagation(),P(Tf(U).join(" "),`row:${le}`)},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 ${oe&&nr(oe)===le?"bg-accent/[0.08]":"bg-background"}`,children:L===`row:${le}`?"copied":"copy"}),W?h.jsx("button",{type:"button","aria-label":`open ${Hs(U)}`,onClick:J=>{J.stopPropagation(),Q(U)},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"}):h.jsx("span",{className:"text-muted-foreground/45",children:"-"}),h.jsx("span",{className:"tabular-nums text-muted-foreground",children:em(U)}),h.jsx("span",{className:"uppercase tracking-[0.13em] text-muted-foreground",children:U.kind}),h.jsx("span",{className:`uppercase tracking-[0.13em] ${Qp(U)}`,children:Nn(U)}),h.jsx("span",{className:"truncate uppercase tracking-[0.13em] text-muted-foreground",children:U.category??"-"}),h.jsx("span",{className:"truncate font-sans text-[12px] font-normal normal-case tracking-normal text-muted-foreground",children:Hs(U)}),h.jsx("span",{className:"truncate font-sans text-[13px] font-normal normal-case tracking-normal text-foreground",children:wr(U)}),h.jsx("span",{className:"truncate text-muted-foreground",children:Mf(U.id)})]},le)}),ue.length===0&&h.jsx("div",{className:"border-b border-border/40 px-3 py-5 font-sans text-[13px] text-muted-foreground",children:i})]})})]}),u&&h.jsxs(h.Fragment,{children:[h.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":"Resize payload inspector","aria-valuenow":I,"aria-valuemin":Ed,"aria-valuemax":hy,title:"Drag to resize · Double-click to reset",onPointerDown:te,onDoubleClick:ke,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:h.jsx("div",{className:`w-px transition-colors ${z?"bg-accent/80":"bg-border group-hover:bg-accent/60"}`})}),h.jsx("aside",{ref:O,style:Ce,className:"flex w-full shrink-0 flex-col bg-background lg:w-[var(--inspector-width)]",children:h.jsx(RW,{copied:oe?L===`inspector:${nr(oe)}`:!1,event:oe,relatedEvents:ae,onCopyRow:U=>{P(Tf(U).join(" "),`inspector:${nr(U)}`)},onOpenTarget:Q})})]})]})}function RW({copied:e,event:t,relatedEvents:n,onCopyRow:r,onOpenTarget:o}){const s=t?Pf(t):null;return h.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[h.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:[h.jsx("div",{className:"font-mono text-[11px] font-medium uppercase tracking-[0.15em] text-foreground/80",children:"Payload inspector"}),t?h.jsxs("div",{className:"flex items-center gap-2",children:[s?h.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,h.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"}),h.jsx("div",{className:`font-mono text-[11px] uppercase tracking-[0.12em] ${Qp(t)}`,children:Nn(t)})]}):null]}),h.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-3 py-3 lg:px-4 lg:py-4",children:t?h.jsxs("div",{className:"grid gap-3",children:[h.jsxs("div",{className:"overflow-hidden rounded-md border border-accent/25 bg-accent/[0.07]",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-accent/15 px-3 py-2",children:[h.jsx(MW,{event:t}),h.jsx("span",{className:"font-mono text-[11px] uppercase tracking-[0.12em] text-muted-foreground",children:t.kind})]}),h.jsxs("div",{className:"px-3 py-2",children:[h.jsx("div",{className:"font-mono text-[11px] font-medium uppercase tracking-[0.13em] text-accent",children:"selected event"}),h.jsx("div",{className:"mt-1 break-words text-[14px] font-normal leading-5 text-foreground",children:wr(t)})]})]}),NW(t).map(i=>h.jsx(TW,{section:i},i.title)),h.jsx(IW,{events:n,selectedId:t.id}),h.jsx(Sd,{label:"payload.data",value:t.data??{}}),t.kind==="metric"&&t.tags?h.jsx(Sd,{label:"metric.tags",value:t.tags}):null,t.kind==="span"&&t.error?h.jsx(Sd,{label:"span.error",value:t.error}):null]}):h.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 Ei({label:e,children:t}){return h.jsxs("div",{children:[h.jsx("div",{className:"font-mono text-[11px] uppercase tracking-[0.14em] text-muted-foreground",children:e}),h.jsx("div",{className:"mt-2 flex flex-wrap gap-2",children:t})]})}function Hn({active:e,onClick:t,children:n}){return h.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 Nr({column:e,label:t,sort:n,onSort:r}){const o=n.key===e,s=o?n.direction==="asc"?FH:zH:BH,i=n.direction==="asc"?"ascending":"descending";return h.jsxs("button",{type:"button","aria-label":`Sort by ${t}${o?`, currently ${i}`:""}`,"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:[h.jsx("span",{className:"min-w-0 truncate",children:t}),h.jsx(s,{size:10,strokeWidth:1.75,"aria-hidden":"true",className:"shrink-0"})]})}function PW({ariaLabel:e,copied:t,disabled:n=!1,label:r,onClick:o}){return h.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 MW({event:e}){const t=Nn(e),n=vs(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 h.jsx("span",{className:`rounded-full border px-2 py-0.5 font-mono text-[10px] uppercase tracking-[0.11em] ${r}`,children:t})}function TW({section:e}){return h.jsxs("section",{className:"overflow-hidden rounded-md border border-border/60 bg-muted/15",children:[h.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}),h.jsx("div",{className:"divide-y divide-border/40",children:e.rows.map(t=>h.jsx(AW,{row:t},`${e.title}-${t.label}`))})]})}function IW({events:e,selectedId:t}){return e.length<=1?null:h.jsxs("section",{className:"overflow-hidden rounded-md border border-border/60 bg-muted/15",children:[h.jsxs("div",{className:"flex items-center justify-between border-b border-border/50 bg-muted/30 px-3 py-2",children:[h.jsx("div",{className:"font-mono text-[10px] font-medium uppercase tracking-[0.14em] text-foreground/70",children:"Trace lines"}),h.jsx("div",{className:"font-mono text-[10px] font-light uppercase tracking-[0.12em] text-muted-foreground",children:e.length})]}),h.jsx("div",{className:"divide-y divide-border/40",children:e.map(n=>{const r=Ek(ac(n));return h.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:[h.jsx("span",{className:"font-mono text-[10px] tabular-nums text-muted-foreground",children:em(n)}),h.jsx("span",{className:`font-mono text-[10px] uppercase tracking-[0.11em] ${Qp(n)}`,children:Nn(n)}),h.jsx("span",{className:"min-w-0 truncate text-[12px] text-foreground/80",children:r??wr(n)})]},`${n.id}-${n.timestamp}`)})})]})}function AW({row:e}){return h.jsxs("div",{className:"grid grid-cols-[96px_minmax(0,1fr)] items-start gap-3 px-3 py-2",children:[h.jsx("div",{className:"font-mono text-[10px] font-light uppercase tracking-[0.12em] text-muted-foreground",children:e.label}),h.jsx("div",{className:`min-w-0 break-words text-[12px] leading-5 ${e.mono?"font-mono tabular-nums":"font-sans"} ${DW(e.tone)}`,children:e.value})]})}function Sd({label:e,value:t}){return h.jsxs("div",{className:"overflow-hidden rounded-md border border-border/60 bg-muted/15",children:[h.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}),h.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 Pf(e){return Xp(e)}function _W(e){const t=zt(e);return De(t,"workspaceId")??De(t,"targetWorkspaceId")}function Hs(e){const t=zt(e),n=Xp(e);return De(t,"appName")??De(t,"appId")??n??De(t,"workspaceName")??De(t,"workspaceId")??De(t,"serviceId")??De(t,"target")??"-"}function NW(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:VW(e),value:Nn(e),tone:vs(e),mono:!0},{label:"timestamp",value:$d(e.timestamp),mono:!0}]}];if(Mo(e)){const n=zt(e),r=To(e),o=qp(e);t.push({title:"Agent Action",rows:[{label:"source",value:De(n,"source")??"agent",mono:!0},{label:"status",value:De(n,"status")??Nn(e),tone:vs(e),mono:!0},{label:"action",value:De(n,"action")??wr(e),mono:!0},{label:"target",value:Hs(e),mono:!0},{label:"workspace",value:De(n,"workspaceName")??De(n,"workspaceId")??"unknown",mono:!0},...r?[{label:"trace",value:r,mono:!0}]:[],...o?[{label:"parent",value:o,mono:!0}]:[]]});const s=BW(e),i=dW(e);(s||i)&&t.push({title:"Request",rows:[...s?[{label:"prompt",value:s}]:[],...i?[{label:"lines",value:String(i.eventCount),mono:!0},{label:"duration",value:`${i.durationMs}ms`,mono:!0}]:[]]})}return e.kind==="log"&&t.push({title:"Log",rows:[{label:"message",value:e.message},{label:"level",value:e.level,tone:vs(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:zW(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:vs(e),mono:!0},{label:"duration",value:e.durationMs===void 0?"active":`${e.durationMs}ms`,mono:!0},{label:"started",value:$d(e.startTime),mono:!0},{label:"ended",value:e.endTime===void 0?"pending":$d(e.endTime),mono:!0}]}),t}function wr(e){if(e.kind==="log"){if(Mo(e)){const t=zt(e),n=Ek(ac(e));if(n){const i=De(t,"status");return i?`${n} ${i}`:n}const r=De(t,"action")??De(t,"commandId")??e.message,o=De(t,"status"),s=my(r);return o?`${s} ${o}`:s}return e.message}return Mo(e)?my(e.name):e.name}function Nn(e){return e.kind==="log"?Mo(e)?De(zt(e),"status")??e.level:e.level:e.kind==="metric"?e.metricType:e.status}function Qp(e){const t=Nn(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 vs(e){const t=Nn(e);return t==="error"||t==="failed"?"red":t==="warn"||t==="active"||t==="started"?"amber":e.kind==="metric"||t==="ok"||t==="completed"?"emerald":"cyan"}function DW(e="neutral"){return e==="red"?"text-destructive":e==="amber"?"text-warning":e==="emerald"?"text-success":e==="cyan"?"text-accent":"text-foreground"}function VW(e){return e.kind==="log"?"level":e.kind==="metric"?"type":"status"}function zW(e){return`${e.value}${e.unit?` ${e.unit}`:""}`}function $d(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 Mf(e){return e.length>10?e.slice(-10):e}function nr(e){return e.kind==="span"?`${e.kind}:${e.id}:${e.status}:${e.endTime??"active"}`:`${e.kind}:${e.id}:${e.timestamp}`}function em(e){return new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function Tf(e){return[em(e),e.kind,Nn(e),e.category??"",Hs(e),wr(e),e.id,JSON.stringify(e.data??{})].map(WW)}function FW(e,t){return[wr(e),e.category??"",JSON.stringify(e.data??{}),...t.map(r=>`${wr(r)} ${JSON.stringify(r.data??{})}`)].join(" ").toLowerCase()}function BW(e){const n=zt(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 HW(e){return[["time","kind","signal","category","target","message","id","payload"].join(" "),...e.map(t=>Tf(t).join(" "))].join(`
58
- `)}function WW(e){return e.replace(/\s+/g," ").trim()}function ZW(e){return e==="time"?"desc":"asc"}function UW(e,t){const n=t.direction==="asc"?1:-1;return e.map((r,o)=>({event:r,index:o})).sort((r,o)=>{const s=GW(by(r.event,t.key),by(o.event,t.key));return s===0?r.index-o.index:s*n}).map(({event:r})=>r)}function by(e,t){switch(t){case"time":return e.timestamp;case"kind":return e.kind;case"level":return Nn(e);case"category":return e.category??"";case"target":return Hs(e);case"message":return wr(e);case"id":return Mf(e.id)}}function GW(e,t){return typeof e=="number"&&typeof t=="number"?e-t:String(e).localeCompare(String(t),void 0,{numeric:!0,sensitivity:"base"})}async function KW(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 YW(e,t,n){const r=new Set,o=[];for(const s of t)r.has(s.id)||(r.add(s.id),o.push(s));for(let s=e.length-1;s>=0;s--){const i=e[s];r.has(i.id)||(r.add(i.id),o.push(i))}return o.sort((s,i)=>i.timestamp-s.timestamp),o.slice(0,n)}function qW(e){return e==="red"?"text-destructive":e==="amber"?"text-warning":"text-success"}function XW(e){return e==="red"?"bg-destructive":e==="amber"?"bg-warning":"bg-success"}function JW({chat:e,placeholder:t="Ask AI",inputExtras:n,inputStatus:r,inputValue:o,onInputChange:s}){const{messages:i,sendMessage:a,stop:u,status:l,clearChat:d,error:f,attachments:p,activeAttachments:m,toggleAttachment:g}=e,[y,x]=c.useState(""),w=o!==void 0,b=w?o:y,v=R=>{w?s?.(R):x(R)},C=c.useRef(null),k=c.useRef(null),E=l==="streaming"||l==="submitted",$=p.length>0;c.useEffect(()=>{const R=C.current;R&&(R.scrollTop=R.scrollHeight)},[i]),c.useEffect(()=>{k.current?.focus()},[]);const S=R=>{R.preventDefault();const T=b.trim();!T||E||(v(""),a({text:T}))},j=R=>{R.stopPropagation(),R.key==="Enter"&&!R.shiftKey&&(R.preventDefault(),S(R))};return h.jsxs("div",{className:"flex flex-col h-full font-mono text-[12px]",children:[h.jsxs("div",{ref:C,className:"flex-1 overflow-y-auto frame-scrollbar p-3 space-y-3",children:[i.length===0&&h.jsx("div",{className:"text-muted-foreground/80 text-center py-8 select-none",children:t}),i.map(R=>h.jsx("div",{className:`flex ${R.role==="user"?"justify-end":"justify-start"}`,children:h.jsx("div",{className:`max-w-[85%] rounded-lg px-3 py-2 whitespace-pre-wrap break-words leading-relaxed ${R.role==="user"?"bg-accent/10 text-foreground border border-accent/20":"bg-muted/50 text-foreground border border-border/50"}`,children:(R.parts??[]).map((T,A)=>{if(!T)return null;if(T.type==="text")return h.jsx("span",{children:T.text},A);if(Fs(T)){const L=V9(T),V=Object.entries(T.input??{}).map(([I,_])=>`${I}: ${JSON.stringify(_)}`).join(", ");return h.jsxs("div",{className:"text-[11px] text-info/80 mt-1 font-mono",children:[h.jsx("span",{className:"text-muted-foreground/80",children:"↳ "}),L,"(",V,")"]},A)}return null})})},R.id)),E&&i[i.length-1]?.role!=="assistant"&&h.jsx("div",{className:"flex justify-start",children:h.jsx("div",{className:"bg-muted/50 border border-border/50 rounded-lg px-3 py-2 text-muted-foreground",children:h.jsx("span",{className:"animate-pulse",children:"Thinking"})})})]}),f&&h.jsxs("div",{className:"px-3 py-2 bg-destructive/10 border-t border-destructive/30 text-destructive text-[11px] flex items-center gap-2",children:[h.jsx(VH,{size:12}),h.jsx("span",{className:"truncate",children:f.message||"An error occurred"})]}),h.jsxs("div",{className:"px-3 py-2.5 border-t border-border/50 bg-background/60",children:[r&&h.jsx("div",{className:"mb-2",children:r}),$&&h.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[h.jsx(eW,{size:11,className:"text-muted-foreground/80 shrink-0"}),p.map(R=>{const T=m.has(R.label);return h.jsx("button",{type:"button",onClick:()=>g(R.label),className:`text-[10px] px-2 py-0.5 rounded-full border transition-colors ${T?"bg-info/10 text-info border-info/30":"text-muted-foreground/80 border-border hover:text-foreground hover:border-foreground/30"}`,children:R.label},R.label)}),m.size>0&&h.jsx("span",{className:"text-[10px] text-muted-foreground/60 ml-1",children:"attached"})]}),h.jsxs("form",{onSubmit:S,className:"flex items-center gap-2 rounded-lg border border-border bg-muted/60 px-3 py-2 focus-within:border-accent/40 transition-colors",children:[n,i.length>0&&h.jsx("button",{type:"button",onClick:()=>d(),className:"p-1 rounded text-muted-foreground/80 hover:text-foreground hover:bg-muted transition-colors",title:"Clear",children:h.jsx(oW,{size:12})}),h.jsx("input",{ref:k,type:"text",value:b,onChange:R=>v(R.target.value),onKeyDown:j,placeholder:t,className:"flex-1 bg-transparent outline-none text-foreground placeholder:text-muted-foreground/80 caret-accent",disabled:E}),E?h.jsx("button",{type:"button",onClick:()=>u(),className:"p-1.5 rounded text-warning hover:bg-warning/10 transition-colors",title:"Stop",children:h.jsx(xk,{size:12})}):h.jsx("button",{type:"submit",disabled:!b.trim(),className:"text-[11px] px-2 py-1 rounded bg-accent/10 text-accent border border-accent/30 hover:bg-accent/20 disabled:opacity-30 disabled:cursor-default transition-colors",children:"Send"})]})]})]})}function QW({app:e,commands:t,state:n,relayUrl:r="ws://localhost:3600",cwd:o,agent:s="claude",provider:i,model:a,backend:u="pty",tmuxSession:l,workspaceFiles:d,onOpenSettings:f,onStartService:p,voiceKit:m}){const[g,y]=It(`assistant.${e.id}.mode`,"relay"),[x,w]=c.useState(""),[b,v]=It(`assistant.${e.id}.voice.speakReplies`,m?.settings.speakReplies??!1),{serviceApiUrl:C}=Qs(),k=c.useMemo(()=>tZ(e),[e]),E=u6({url:r,systemPrompt:k,cwd:o,workspaceFiles:d,sessionKey:`assistant-${e.id}`,backend:u,tmuxSession:l,agent:s,provider:s==="pi"?i:void 0,model:s==="pi"?a:void 0}),$=c.useCallback(async()=>{if(p)return p();try{return(await(await fetch(`${C}/api/services/execute`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({serviceId:"relay",action:"start",triggeredBy:"assistant"})})).json()).success===!0}catch{return!1}},[p,C]),S=c.useMemo(()=>{const O=[{label:"Relay",value:r},{label:"Agent",value:s}];return o&&O.push({label:"CWD",value:o}),s==="pi"&&a&&O.push({label:"Model",value:a}),O},[r,s,o,a]),[j,R]=c.useState("text"),T=kP({app:e,commands:t,state:n,provider:i,model:a,onFinish:({message:O,isAbort:z,isDisconnect:M,isError:q})=>{!m||!b||z||M||q||O.role==="assistant"&&m.speakReply(O,{surface:"hudson-assistant",appId:e.id,source:j})}}),A=c.useCallback(O=>{if(!m)return;const z=[x.trim(),O].filter(Boolean).join(" ");m.settings.autoSend&&T.status!=="streaming"&&T.status!=="submitted"?(w(""),R("voice"),T.sendMessage({text:z})):w(z)},[m,x,T]),L=c.useCallback(()=>{m&&(m.input.status==="recording"?m.input.stop():m.input.start(A))},[m,A]),V=e.intents?.length??0,I=!!m,_=m?.input.status==="transcribing",N=m?.input.status==="recording";return h.jsxs("div",{className:"flex flex-col h-full",children:[h.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1.5 border-b border-border/50 bg-background/60",children:[h.jsx(nW,{size:11,className:"text-cyan-400/60"}),h.jsx("span",{className:"text-[10px] font-mono uppercase tracking-wider text-muted-foreground/80",children:"Assistant"}),h.jsxs("span",{className:"text-[10px] font-mono text-muted-foreground/60",children:["· ",e.name]}),h.jsx("div",{className:"flex-1"}),I&&g==="chat"&&h.jsx("button",{type:"button",onClick:()=>{b&&m?.output.stop(),v(!b)},className:`p-1 rounded transition-colors ${b?"text-cyan-300 hover:text-cyan-200":"text-muted-foreground/80 hover:text-foreground"}`,title:b?"Speaker on (click to mute)":"Speaker off (click to enable)",children:m?.output.isPlaying?h.jsx(py,{size:12,className:"animate-spin"}):b?h.jsx(sW,{size:12}):h.jsx(iW,{size:12})}),h.jsxs("div",{className:"flex items-center gap-1 rounded-full border border-border p-0.5",children:[h.jsx(wy,{active:g==="relay",onClick:()=>y("relay"),children:"Relay"}),h.jsx(wy,{active:g==="chat",onClick:()=>y("chat"),children:"Chat"})]}),g==="relay"&&E.status==="connected"&&h.jsx("button",{type:"button",onClick:()=>E.restart(),className:"text-[10px] px-2 py-0.5 rounded-full border text-cyan-400 border-cyan-500/30 hover:bg-cyan-500/10 transition-colors",title:"Kill session and start fresh",children:"Restart"}),g==="relay"&&E.status==="connected"&&h.jsx("button",{type:"button",onClick:()=>E.disconnect(),className:"text-[10px] px-2 py-0.5 rounded-full border text-red-400 border-red-500/30 hover:bg-red-500/10 transition-colors",children:"Disconnect"}),g==="relay"&&E.status!=="connected"&&E.status!=="connecting"&&h.jsx("button",{type:"button",onClick:()=>E.connect(),className:"text-[10px] px-2 py-0.5 rounded-full border text-accent border-accent/30 hover:bg-accent/10 transition-colors",children:"Connect"})]}),h.jsx("div",{className:"flex-1 min-h-0",children:g==="relay"?h.jsx(d6,{relay:E,configItems:S,onOpenSettings:f,onStartService:$}):h.jsx(JW,{chat:T,placeholder:V===0?`Ask about ${e.name} — no intents declared, conversation only.`:`Ask ${e.name} to do something… (${V} intent${V===1?"":"s"})`,inputValue:x,onInputChange:O=>{j==="voice"&&O.length===0&&R("text"),w(O)},inputExtras:I&&m?.input.isSupported?h.jsx("button",{type:"button",onClick:L,disabled:_,className:`p-1 rounded transition-colors disabled:opacity-30 ${N?"bg-red-500/15 text-red-300 hover:bg-red-500/20":"text-muted-foreground/80 hover:text-cyan-400"}`,title:N?"Stop recording":"Record voice prompt",children:_?h.jsx(py,{size:12,className:"animate-spin"}):N?h.jsx(xk,{size:11}):h.jsx(GH,{size:12})}):void 0,inputStatus:I&&m?h.jsx(eZ,{inputStatus:m.input.status,inputError:m.input.error,outputStatus:m.output.status,outputError:m.output.error}):void 0})})]})}function eZ({inputStatus:e,inputError:t,outputStatus:n,outputError:r}){const o=yy(e)??yy(n),s=t??r;return!o&&!s?null:h.jsxs("div",{className:"flex items-center gap-2",children:[o&&h.jsx("span",{className:`text-[10px] px-2 py-0.5 rounded-full border font-mono ${o.className}`,children:o.label}),s&&h.jsx("span",{className:"text-[10px] text-muted-foreground/80 truncate flex-1",title:s,children:s})]})}function yy(e){switch(e){case"recording":return{label:"listening",className:"border-red-500/20 bg-red-500/10 text-red-300"};case"transcribing":return{label:"transcribing",className:"border-amber-500/20 bg-amber-500/10 text-amber-300"};case"ready":return{label:"draft ready",className:"border-cyan-500/20 bg-cyan-500/10 text-cyan-300"};case"synthesizing":return{label:"voicing",className:"border-cyan-500/20 bg-cyan-500/10 text-cyan-300"};case"speaking":return{label:"speaking",className:"border-accent/20 bg-accent/10 text-accent"};case"unavailable":return{label:"voice offline",className:"border-amber-500/20 bg-amber-500/10 text-amber-300"};case"error":return{label:"voice error",className:"border-red-500/20 bg-red-500/10 text-red-300"};default:return null}}function wy({active:e,onClick:t,children:n}){return h.jsx("button",{type:"button",onClick:t,className:`text-[10px] px-2 py-0.5 rounded-full transition-colors ${e?"bg-cyan-500/15 text-cyan-300":"text-muted-foreground/80 hover:text-foreground"}`,children:n})}function tZ(e){const t=[`You are working alongside the user inside the **${e.name}** Hudson app.`];e.description&&t.push(e.description);const n=e.intents??[];if(n.length>0){t.push("","## What this app can do (for context)");for(const r of n)t.push(`- ${r.title} — ${r.description}`);t.push("","These actions live inside the running app. You can describe them to the user, but you do not invoke them yourself — the user can trigger any of them via the command palette (Cmd+K).")}return t.push("","## How to behave","- Be terse. The user is in a terminal; respect their attention.","- Use your own tools (file ops, shell, etc.) freely if it helps.","- When asked to change something inside the app itself, prefer guiding the user to the matching command rather than hacking around it."),t.join(`
59
- `)}function tm(){const{titleBarInset:e}=Qs();return c.useMemo(()=>{const t=Po.layout.navHeight+e;return{navTotalHeight:t,panelTopOffset:t}},[e])}const xy={borderColor:"var(--hud-chrome-border, oklch(var(--border)))"},nZ=({scale:e,onZoom:t,min:n=.2,max:r=3,step:o=.1})=>{const[s,i]=c.useState(!1),[a,u]=c.useState(""),l=c.useRef(null),d=c.useCallback(x=>Math.min(r,Math.max(n,x)),[n,r]),f=c.useCallback(()=>{t(d(e+o))},[e,o,t,d]),p=c.useCallback(()=>{t(d(e-o))},[e,o,t,d]),m=c.useCallback(()=>{u(Math.round(e*100).toString()),i(!0)},[e]),g=c.useCallback(()=>{i(!1);const x=parseInt(a,10);!isNaN(x)&&x>0&&t(d(x/100))},[a,t,d]),y=c.useCallback(x=>{x.key==="Enter"?g():x.key==="Escape"&&i(!1)},[g]);return c.useEffect(()=>{s&&l.current&&(l.current.focus(),l.current.select())},[s]),h.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:xy,children:[h.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:h.jsx(tW,{size:14})}),h.jsx("div",{className:"w-full border-t border-b",style:xy,children:s?h.jsx("input",{ref:l,type:"text",value:a,onChange:x=>u(x.target.value.replace(/[^0-9]/g,"")),onBlur:g,onKeyDown:y,className:"w-9 py-1.5 text-center text-[11px] font-mono text-foreground bg-background/60 outline-none tabular-nums"}):h.jsxs("button",{onClick:m,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),"%"]})}),h.jsx("button",{onClick:p,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:h.jsx(YH,{size:14})})]})},rZ={...ec};let Cy=0;function oZ(e,t="mui"){const[n,r]=c.useState(e),o=e||n;return c.useEffect(()=>{n==null&&(Cy+=1,r(`${t}-${Cy}`))},[n,t]),o}const ky=rZ.useId;function Er(e,t){if(ky!==void 0){const n=ky();return e??(t?`${t}-${n}`:n)}return oZ(e,t)}function eo(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 jk=c.createContext(void 0);function cc(e=!0){const t=c.useContext(jk);if(t===void 0&&!e)throw new Error(eo(25));return t}const Rk=c.createContext(void 0);function Pk(e){const t=c.useContext(Rk);if(t===void 0&&!e)throw new Error(eo(33));return t}const nm=c.createContext(void 0);function Bo(e){const t=c.useContext(nm);if(t===void 0&&!e)throw new Error(eo(36));return t}const Ey={};function fn(e,t){const n=c.useRef(Ey);return n.current===Ey&&(n.current=e(t)),n}function Ws(e,t,n,r){const o=fn(Mk).current;return iZ(o,e,t,n,r)&&Tk(o,[e,t,n,r]),o.callback}function sZ(e){const t=fn(Mk).current;return aZ(t,e)&&Tk(t,e),t.callback}function Mk(){return{callback:null,cleanup:null,refs:[]}}function iZ(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}function aZ(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function Tk(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 s=t[o];if(s!=null)switch(typeof s){case"function":{const i=s(n);typeof i=="function"&&(r[o]=i);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let o=0;o<t.length;o+=1){const s=t[o];if(s!=null)switch(typeof s){case"function":{const i=r[o];typeof i=="function"?i():s(null);break}case"object":{s.current=null;break}}}}}}}const cZ=parseInt(c.version,10);function rm(e){return cZ>=e}function Sy(e){if(!c.isValidElement(e))return null;const t=e,n=t.props;return(rm(19)?n?.ref:t.ref)??null}function If(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function lZ(e,t){const n={};for(const r in e){const o=e[r];if(t?.hasOwnProperty(r)){const s=t[r](o);s!=null&&Object.assign(n,s);continue}o===!0?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}function uZ(e,t){return typeof e=="function"?e(t):e}function dZ(e,t){return typeof e=="function"?e(t):e}const Es={};function lc(e,t,n,r,o){let s={...Af(e,Es)};return t&&(s=Yi(s,t)),n&&(s=Yi(s,n)),r&&(s=Yi(s,r)),s}function fZ(e){if(e.length===0)return Es;if(e.length===1)return Af(e[0],Es);let t={...Af(e[0],Es)};for(let n=1;n<e.length;n+=1)t=Yi(t,e[n]);return t}function Yi(e,t){return Ik(t)?t(e):pZ(e,t)}function pZ(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=If(e.style,r);break}case"className":{e[n]=Ak(e.className,r);break}default:mZ(n,r)?e[n]=hZ(e[n],r):e[n]=r}}return e}function mZ(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 Ik(e){return typeof e=="function"}function Af(e,t){return Ik(e)?e(t):e??Es}function hZ(e,t){return t?e?n=>{if(gZ(n)){const o=n;_f(o);const s=t(o);return o.baseUIHandlerPrevented||e?.(o),s}const r=t(n);return e?.(n),r}:t:e}function _f(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Ak(e,t){return t?e?t+" "+e:t:e}function gZ(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function _k(){}const Nk=Object.freeze([]),Zt=Object.freeze({}),vZ=500,bZ={style:{transition:"none"}},yZ="data-base-ui-click-trigger",wZ={fallbackAxisSide:"none"},xZ={clipPath:"inset(50%)",position:"fixed",top:0,left:0};function Sr(e,t,n={}){const r=t.render,o=CZ(t,n);if(n.enabled===!1)return null;const s=n.state??Zt;return kZ(e,r,o,s)}function CZ(e,t={}){const{className:n,style:r,render:o}=e,{state:s=Zt,ref:i,props:a,stateAttributesMapping:u,enabled:l=!0}=t,d=l?uZ(n,s):void 0,f=l?dZ(r,s):void 0,p=l?lZ(s,u):Zt,m=l?If(p,Array.isArray(a)?fZ(a):a)??Zt:Zt;return typeof document<"u"&&(l?Array.isArray(i)?m.ref=sZ([m.ref,Sy(o),...i]):m.ref=Ws(m.ref,Sy(o),i):Ws(null,null)),l?(d!==void 0&&(m.className=Ak(m.className,d)),f!==void 0&&(m.style=If(m.style,f)),m):Zt}function kZ(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const o=lc(n,t.props);return o.ref=n.ref,c.cloneElement(t,o)}return EZ(e,n)}function EZ(e,t){return c.createElement(e,t)}let Ea=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const SZ={[Ea.startingStyle]:""},$Z={[Ea.endingStyle]:""},OZ={transitionStatus(e){return e==="starting"?SZ:e==="ending"?$Z:null}};let om=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Ea.startingStyle]="startingStyle",e[e.endingStyle=Ea.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e})({}),$y=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const LZ={[$y.popupOpen]:"",[$y.pressed]:""},jZ={[om.open]:""},RZ={[om.closed]:""},PZ={[om.anchorHidden]:""},MZ={open(e){return e?LZ:null}},Dk={open(e){return e?jZ:RZ},anchorHidden(e){return e?PZ:null}},TZ="none",Sa="trigger-press",Zr="trigger-hover",Oy="trigger-focus",sm="outside-press",Vk="item-press",uc="focus-out",zk="escape-key",qi="list-navigation",IZ="cancel-open",bs="sibling-open",AZ="imperative-action",Od=ec[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],_Z=Od&&Od!==c.useLayoutEffect?Od:e=>e();function Le(e){const t=fn(NZ).current;return t.next=e,_Z(t.effect),t.trampoline}function NZ(){const e={next:void 0,callback:DZ,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function DZ(){}function dc(){return typeof window<"u"}function $r(e){return im(e)?(e.nodeName||"").toLowerCase():"#document"}function Ct(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function zn(e){var t;return(t=(im(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function im(e){return dc()?e instanceof Node||e instanceof Ct(e).Node:!1}function Qe(e){return dc()?e instanceof Element||e instanceof Ct(e).Element:!1}function dt(e){return dc()?e instanceof HTMLElement||e instanceof Ct(e).HTMLElement:!1}function Nf(e){return!dc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ct(e).ShadowRoot}const VZ=new Set(["inline","contents"]);function to(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=rn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!VZ.has(o)}const zZ=new Set(["table","td","th"]);function FZ(e){return zZ.has($r(e))}const BZ=[":popover-open",":modal"];function fc(e){return BZ.some(t=>{try{return e.matches(t)}catch{return!1}})}const HZ=["transform","translate","scale","rotate","perspective"],WZ=["transform","translate","scale","rotate","perspective","filter"],ZZ=["paint","layout","strict","content"];function am(e){const t=pc(),n=Qe(e)?rn(e):e;return HZ.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)||WZ.some(r=>(n.willChange||"").includes(r))||ZZ.some(r=>(n.contain||"").includes(r))}function UZ(e){let t=Dn(e);for(;dt(t)&&!Mn(t);){if(am(t))return t;if(fc(t))return null;t=Dn(t)}return null}function pc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const GZ=new Set(["html","body","#document"]);function Mn(e){return GZ.has($r(e))}function rn(e){return Ct(e).getComputedStyle(e)}function mc(e){return Qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Dn(e){if($r(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nf(e)&&e.host||zn(e);return Nf(t)?t.host:t}function Fk(e){const t=Dn(e);return Mn(t)?e.ownerDocument?e.ownerDocument.body:e.body:dt(t)&&to(t)?t:Fk(t)}function pr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Fk(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Ct(o);if(s){const a=Df(i);return t.concat(i,i.visualViewport||[],to(o)?o:[],a&&n?pr(a):[])}return t.concat(o,pr(o,[],n))}function Df(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const KZ=()=>{},$e=typeof document<"u"?c.useLayoutEffect:KZ,YZ=c.createContext(void 0);function qZ(e=!1){const t=c.useContext(YZ);if(t===void 0&&!e)throw new Error(eo(16));return t}function XZ(e){const{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:o=0,isNativeButton:s}=e,i=r&&t!==!1,a=r&&t===!1;return{props:c.useMemo(()=>{const l={onKeyDown(d){n&&t&&d.key!=="Tab"&&d.preventDefault()}};return r||(l.tabIndex=o,!s&&n&&(l.tabIndex=t?o:-1)),(s&&(t||i)||!s&&n)&&(l["aria-disabled"]=n),s&&(!t||a)&&(l.disabled=n),l},[r,n,t,i,a,s,o])}}function JZ(e={}){const{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:o=!0}=e,s=c.useRef(null),i=qZ(!0)!==void 0,a=Le(()=>{const p=s.current;return!!(p?.tagName==="A"&&p?.href)}),{props:u}=XZ({focusableWhenDisabled:n,disabled:t,composite:i,tabIndex:r,isNativeButton:o}),l=c.useCallback(()=>{const p=s.current;QZ(p)&&i&&t&&u.disabled===void 0&&p.disabled&&(p.disabled=!1)},[t,u.disabled,i]);$e(l,[l]);const d=c.useCallback((p={})=>{const{onClick:m,onMouseDown:g,onKeyUp:y,onKeyDown:x,onPointerDown:w,...b}=p;return lc({type:o?"button":void 0,onClick(C){if(t){C.preventDefault();return}m?.(C)},onMouseDown(C){t||g?.(C)},onKeyDown(C){if(t||(_f(C),x?.(C)),C.baseUIHandlerPrevented)return;const k=C.target===C.currentTarget&&!o&&!a()&&!t,E=C.key==="Enter",$=C.key===" ";k&&(($||E)&&C.preventDefault(),E&&m?.(C))},onKeyUp(C){t||(_f(C),y?.(C)),!C.baseUIHandlerPrevented&&C.target===C.currentTarget&&!o&&!t&&C.key===" "&&m?.(C)},onPointerDown(C){if(t){C.preventDefault();return}w?.(C)}},o?void 0:{role:"button"},u,b)},[t,u,o,a]),f=Le(p=>{s.current=p,l()});return{getButtonProps:d,buttonRef:f}}function QZ(e){return dt(e)&&e.tagName==="BUTTON"}const eU={type:"regular-item"};function tU(e){const{closeOnClick:t,disabled:n=!1,highlighted:r,id:o,store:s,nativeButton:i,itemMetadata:a,nodeId:u}=e,l=c.useRef(null),d=cc(!0),f=d!==void 0,{events:p}=s.useState("floatingTreeRoot"),{getButtonProps:m,buttonRef:g}=JZ({disabled:n,focusableWhenDisabled:!0,native:i}),y=c.useCallback(w=>lc({id:o,role:"menuitem",tabIndex:r?0:-1,onMouseMove(b){u&&p.emit("itemhover",{nodeId:u,target:b.currentTarget})},onMouseEnter(){a.type==="submenu-trigger"&&a.setActive()},onKeyUp(b){b.key===" "&&s.context.typingRef.current&&b.preventBaseUIHandler()},onClick(b){t&&p.emit("close",{domEvent:b,reason:Vk})},onMouseUp(b){if(d){const v=d.initialCursorPointRef.current;if(d.initialCursorPointRef.current=null,f&&v&&Math.abs(b.clientX-v.x)<=1&&Math.abs(b.clientY-v.y)<=1)return}l.current&&s.context.allowMouseUpTriggerRef.current&&(!f||b.button===2)&&a.type==="regular-item"&&l.current.click()}},w,m),[o,r,m,t,p,s,f,d,a,u]),x=Ws(l,g);return c.useMemo(()=>({getItemProps:y,itemRef:x}),[y,x])}const Bk=c.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function nU(){return c.useContext(Bk)}let rU=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function oU(e={}){const{label:t,metadata:n,textRef:r,indexGuessBehavior:o,index:s}=e,{register:i,unregister:a,subscribeMapChange:u,elementsRef:l,labelsRef:d,nextIndexRef:f}=nU(),p=c.useRef(-1),[m,g]=c.useState(s??(o===rU.GuessFromOrder?()=>{if(p.current===-1){const w=f.current;f.current+=1,p.current=w}return p.current}:-1)),y=c.useRef(null),x=c.useCallback(w=>{if(y.current=w,m!==-1&&w!==null&&(l.current[m]=w,d)){const b=t!==void 0;d.current[m]=b?t:r?.current?.textContent??w.textContent}},[m,l,d,t,r]);return $e(()=>{if(s!=null)return;const w=y.current;if(w)return i(w,n),()=>{a(w)}},[s,i,a,n]),$e(()=>{if(s==null)return u(w=>{const b=y.current?w.get(y.current)?.index:null;b!=null&&g(b)})},[s,u,g]),c.useMemo(()=>({ref:x,index:m}),[m,x])}function Hk(e){return Er(e,"base-ui")}function mt(e,t,n,r){let o=!1,s=!1;const i=Zt;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){s=!0},get isCanceled(){return o},get isPropagationAllowed(){return s},trigger:n,...i}}const sU=[];function Wk(e){c.useEffect(e,sU)}const Si=null;let iU=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 $i=new iU;let ar=class Zk{static create(){return new Zk}static request(t){return $i.request(t)}static cancel(t){return $i.cancel(t)}currentId=Si;request(t){this.cancel(),this.currentId=$i.request(()=>{this.currentId=Si,t()})}cancel=()=>{this.currentId!==Si&&($i.cancel(this.currentId),this.currentId=Si)};disposeEffect=()=>this.cancel};function cm(){const e=fn(ar.create).current;return Wk(e.disposeEffect),e}function aU(e,t=!1,n=!1){const[r,o]=c.useState(e&&t?"idle":void 0),[s,i]=c.useState(e);return e&&!s&&(i(!0),o("starting")),!e&&s&&r!=="ending"&&!n&&o("ending"),!e&&!s&&r==="ending"&&o(void 0),$e(()=>{if(!e&&s&&r!=="ending"&&n){const a=ar.request(()=>{o("ending")});return()=>{ar.cancel(a)}}},[e,s,r,n]),$e(()=>{if(!e||t)return;const a=ar.request(()=>{jt.flushSync(()=>{o(void 0)})});return()=>{ar.cancel(a)}},[t,e]),$e(()=>{if(!e||!t)return;e&&s&&r!=="idle"&&o("starting");const a=ar.request(()=>{o("idle")});return()=>{ar.cancel(a)}},[t,e,s,o,r]),c.useMemo(()=>({mounted:s,setMounted:i,transitionStatus:r}),[s,r])}function Ht(e){const t=fn(cU,e).current;return t.next=e,$e(t.effect),t}function cU(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function Fr(e){return e==null?e:"current"in e?e.current:e}function lU(e,t=!1,n=!0){const r=cm();return Le((o,s=null)=>{r.cancel();const i=Fr(e);i!=null&&(typeof i.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED?o():r.request(()=>{function a(){i&&Promise.all(i.getAnimations().map(u=>u.finished)).then(()=>{s!=null&&s.aborted||jt.flushSync(o)}).catch(()=>{if(n){if(s!=null&&s.aborted)return;jt.flushSync(o)}else i.getAnimations().length>0&&i.getAnimations().some(u=>u.pending||u.playState!=="finished")&&a()})}t?r.request(a):a()}))})}function Uk(e){const{enabled:t=!0,open:n,ref:r,onComplete:o}=e,s=Ht(n),i=Le(o),a=lU(r,n);c.useEffect(()=>{t&&a(()=>{n===s.current&&i()})},[t,n,i,a,s])}const Gk=c.createContext(void 0);function uU(){const e=c.useContext(Gk);if(e===void 0)throw new Error(eo(31));return e}const dU=c.forwardRef(function(t,n){const{render:r,className:o,...s}=t,[i,a]=c.useState(void 0),u=c.useMemo(()=>({setLabelId:a}),[a]),l=Sr("div",t,{ref:n,props:{role:"group","aria-labelledby":i,...s}});return h.jsx(Gk.Provider,{value:u,children:l})}),fU=c.forwardRef(function(t,n){const{className:r,render:o,id:s,...i}=t,a=Hk(s),{setLabelId:u}=uU();return $e(()=>(u(a),()=>{u(void 0)}),[u,a]),Sr("div",t,{ref:n,props:{id:a,role:"presentation",...i}})}),pU=c.forwardRef(function(t,n){const{render:r,className:o,id:s,label:i,nativeButton:a=!1,disabled:u=!1,closeOnClick:l=!0,...d}=t,f=oU({label:i}),p=Pk(!0),m=Hk(s),{store:g}=Bo(),y=g.useState("isActive",f.index),x=g.useState("itemProps"),{getItemProps:w,itemRef:b}=tU({closeOnClick:l,disabled:u,highlighted:y,id:m,store:g,nativeButton:a,nodeId:p?.nodeId,itemMetadata:eU}),v=c.useMemo(()=>({disabled:u,highlighted:y}),[u,y]);return Sr("div",t,{state:v,props:[x,d,w],ref:[b,n,f.ref]})}),as=0;let $a=class Kk{static create(){return new Kk}currentId=as;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=as,n()},t)}isStarted(){return this.currentId!==as}clear=()=>{this.currentId!==as&&(clearTimeout(this.currentId),this.currentId=as)};disposeEffect=()=>this.clear};function En(){const e=fn($a.create).current;return Wk(e.disposeEffect),e}const Ho=typeof navigator<"u",Ld=bU(),Yk=wU(),qk=yU(),mU=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none"),hU=Ld.platform==="MacIntel"&&Ld.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(Ld.platform),gU=Ho&&/apple/i.test(navigator.vendor),Vf=Ho&&/android/i.test(Yk)||/android/i.test(qk);Ho&&Yk.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;const vU=qk.includes("jsdom/");function bU(){if(!Ho)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 yU(){if(!Ho)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function wU(){if(!Ho)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const zf="data-base-ui-focusable",Xk="active",Jk="selected",Qk="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",mr="ArrowLeft",hr="ArrowRight",lm="ArrowUp",ri="ArrowDown";function cr(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Je(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Nf(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Wt(e){return"composedPath"in e?e.composedPath()[0]:e.target}function bn(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 xU(e){return e.matches("html,body")}function yt(e){return e?.ownerDocument||document}function CU(e){return dt(e)&&e.matches(Qk)}function Ff(e){return e?e.getAttribute("role")==="combobox"&&CU(e):!1}function Oa(e){return e?e.hasAttribute(zf)?e:e.querySelector(`[${zf}]`)||e:null}function Co(e,t,n=!0){return e.filter(o=>o.parentId===t&&(!n||o.context?.open)).flatMap(o=>[o,...Co(e,o.id,n)])}function Ly(e,t){let n=[],r=e.find(o=>o.id===t)?.parentId;for(;r;){const o=e.find(s=>s.id===r);r=o?.parentId,o&&(n=n.concat(o))}return n}function wt(e){e.preventDefault(),e.stopPropagation()}function kU(e){return"nativeEvent"in e}function e5(e){return e.mozInputSource===0&&e.isTrusted?!0:Vf&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function t5(e){return vU?!1:!Vf&&e.width===0&&e.height===0||Vf&&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 EU(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function SU(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const $U=["top","right","bottom","left"],Io=Math.min,Xt=Math.max,La=Math.round,ho=Math.floor,Tn=e=>({x:e,y:e}),OU={left:"right",right:"left",bottom:"top",top:"bottom"},LU={start:"end",end:"start"};function Bf(e,t,n){return Xt(e,Io(t,n))}function Kn(e,t){return typeof e=="function"?e(t):e}function tn(e){return e.split("-")[0]}function Or(e){return e.split("-")[1]}function um(e){return e==="x"?"y":"x"}function dm(e){return e==="y"?"height":"width"}const jU=new Set(["top","bottom"]);function cn(e){return jU.has(tn(e))?"y":"x"}function fm(e){return um(cn(e))}function RU(e,t,n){n===void 0&&(n=!1);const r=Or(e),o=fm(e),s=dm(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=ja(i)),[i,ja(i)]}function PU(e){const t=ja(e);return[Hf(e),t,Hf(t)]}function Hf(e){return e.replace(/start|end/g,t=>LU[t])}const jy=["left","right"],Ry=["right","left"],MU=["top","bottom"],TU=["bottom","top"];function IU(e,t,n){switch(e){case"top":case"bottom":return n?t?Ry:jy:t?jy:Ry;case"left":case"right":return t?MU:TU;default:return[]}}function AU(e,t,n,r){const o=Or(e);let s=IU(tn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Hf)))),s}function ja(e){return e.replace(/left|right|bottom|top/g,t=>OU[t])}function _U(e){return{top:0,right:0,bottom:0,left:0,...e}}function n5(e){return typeof e!="number"?_U(e):{top:e,right:e,bottom:e,left:e}}function Ra(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 Oi(e,t,n){return Math.floor(e/t)!==n}function Ss(e,t){return t<0||t>=e.current.length}function jd(e,t){return St(e,{disabledIndices:t})}function Py(e,t){return St(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function St(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:o=1}={}){let s=t;do s+=n?-o:o;while(s>=0&&s<=e.current.length-1&&$s(e,s,r));return s}function NU(e,{event:t,orientation:n,loopFocus:r,rtl:o,cols:s,disabledIndices:i,minIndex:a,maxIndex:u,prevIndex:l,stopEvent:d=!1}){let f=l;const p=[],m={};let g=!1;{let w=null,b=-1;e.current.forEach((v,C)=>{if(v==null)return;const k=v.closest('[role="row"]');k&&(g=!0),(k!==w||b===-1)&&(w=k,b+=1,p[b]=[]),p[b].push(C),m[C]=b})}const y=g&&p.length>0&&p.some(w=>w.length!==s);function x(w){if(!y||l===-1)return;const b=m[l];if(b==null)return;const v=p[b].indexOf(l);let C=w==="up"?b-1:b+1;r&&(C<0?C=p.length-1:C>=p.length&&(C=0));const k=new Set;for(;C>=0&&C<p.length&&!k.has(C);){k.add(C);const E=p[C];if(E.length===0){C=w==="up"?C-1:C+1;continue}const $=Math.min(v,E.length-1);for(let S=$;S>=0;S-=1){const j=E[S];if(!$s(e,j,i))return j}C=w==="up"?C-1:C+1,r&&(C<0?C=p.length-1:C>=p.length&&(C=0))}}if(t.key===lm){const w=x("up");if(w!==void 0)d&&wt(t),f=w;else{if(d&&wt(t),l===-1)f=u;else if(f=St(e,{startingIndex:f,amount:s,decrement:!0,disabledIndices:i}),r&&(l-s<a||f<0)){const b=l%s,v=u%s,C=u-(v-b);v===b?f=u:f=v>b?C:C-s}Ss(e,f)&&(f=l)}}if(t.key===ri){const w=x("down");w!==void 0?(d&&wt(t),f=w):(d&&wt(t),l===-1?f=a:(f=St(e,{startingIndex:l,amount:s,disabledIndices:i}),r&&l+s>u&&(f=St(e,{startingIndex:l%s-s,amount:s,disabledIndices:i}))),Ss(e,f)&&(f=l))}if(n==="both"){const w=ho(l/s);t.key===(o?mr:hr)&&(d&&wt(t),l%s!==s-1?(f=St(e,{startingIndex:l,disabledIndices:i}),r&&Oi(f,s,w)&&(f=St(e,{startingIndex:l-l%s-1,disabledIndices:i}))):r&&(f=St(e,{startingIndex:l-l%s-1,disabledIndices:i})),Oi(f,s,w)&&(f=l)),t.key===(o?hr:mr)&&(d&&wt(t),l%s!==0?(f=St(e,{startingIndex:l,decrement:!0,disabledIndices:i}),r&&Oi(f,s,w)&&(f=St(e,{startingIndex:l+(s-l%s),decrement:!0,disabledIndices:i}))):r&&(f=St(e,{startingIndex:l+(s-l%s),decrement:!0,disabledIndices:i})),Oi(f,s,w)&&(f=l));const b=ho(u/s)===w;Ss(e,f)&&(r&&b?f=t.key===(o?hr:mr)?u:St(e,{startingIndex:l-l%s-1,disabledIndices:i}):f=l)}return f}function DU(e,t,n){const r=[];let o=0;return e.forEach(({width:s,height:i},a)=>{let u=!1;for(n&&(o=0);!u;){const l=[];for(let d=0;d<s;d+=1)for(let f=0;f<i;f+=1)l.push(o+d+f*t);o%t+s<=t&&l.every(d=>r[d]==null)?(l.forEach(d=>{r[d]=a}),u=!0):o+=1}}),[...r]}function VU(e,t,n,r,o){if(e===-1)return-1;const s=n.indexOf(e),i=t[e];switch(o){case"tl":return s;case"tr":return i?s+i.width-1:s;case"bl":return i?s+(i.height-1)*r:s;case"br":return n.lastIndexOf(e);default:return-1}}function zU(e,t){return t.flatMap((n,r)=>e.includes(n)?[r]:[])}function $s(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 FU=["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] *)"],Pa=FU.join(","),r5=typeof Element>"u",Ao=r5?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ma=!r5&&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},Ta=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"),s=o===""||o==="true",i=s||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Ta(t.parentNode));return i},BU=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},o5=function(t,n,r){if(Ta(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Pa));return n&&Ao.call(t,Pa)&&o.unshift(t),o=o.filter(r),o},Ia=function(t,n,r){for(var o=[],s=Array.from(t);s.length;){var i=s.shift();if(!Ta(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),u=a.length?a:i.children,l=Ia(u,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{var d=Ao.call(i,Pa);d&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var f=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),p=!Ta(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(f&&p){var m=Ia(f===!0?i.children:f.children,!0,r);r.flatten?o.push.apply(o,m):o.push({scopeParent:i,candidates:m})}else s.unshift.apply(s,i.children)}}return o},s5=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},i5=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||BU(t))&&!s5(t)?0:t.tabIndex},HU=function(t,n){var r=i5(t);return r<0&&n&&!s5(t)?0:r},WU=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},a5=function(t){return t.tagName==="INPUT"},ZU=function(t){return a5(t)&&t.type==="hidden"},UU=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},GU=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},KU=function(t){if(!t.name)return!0;var n=t.form||Ma(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},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(i){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",i.message),!1}var s=GU(o,t.form);return!s||s===t},YU=function(t){return a5(t)&&t.type==="radio"},qU=function(t){return YU(t)&&!KU(t)},XU=function(t){var n,r=t&&Ma(t),o=(n=r)===null||n===void 0?void 0:n.host,s=!1;if(r&&r!==t){var i,a,u;for(s=!!((i=o)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(u=t.ownerDocument)!==null&&u!==void 0&&u.contains(t));!s&&o;){var l,d,f;r=Ma(o),o=(l=r)===null||l===void 0?void 0:l.host,s=!!((d=o)!==null&&d!==void 0&&(f=d.ownerDocument)!==null&&f!==void 0&&f.contains(o))}}return s},My=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},JU=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var i=Ao.call(t,"details>summary:first-of-type"),a=i?t.parentElement:t;if(Ao.call(a,"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=Ma(t);if(l&&!l.shadowRoot&&o(l)===!0)return My(t);t.assignedSlot?t=t.assignedSlot:!l&&d!==t.ownerDocument?t=d.host:t=l}t=u}if(XU(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return My(t);return!1},QU=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 Ao.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},Wf=function(t,n){return!(n.disabled||ZU(n)||JU(n,t)||UU(n)||QU(n))},Zf=function(t,n){return!(qU(n)||i5(n)<0||!Wf(t,n))},eG=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},c5=function(t){var n=[],r=[];return t.forEach(function(o,s){var i=!!o.scopeParent,a=i?o.scopeParent:o,u=HU(a,i),l=i?c5(o.candidates):a;u===0?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:s,tabIndex:u,item:o,isScope:i,content:l})}),r.sort(WU).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(n)},hc=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Ia([t],n.includeContainer,{filter:Zf.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:eG}):r=o5(t,n.includeContainer,Zf.bind(null,n)),c5(r)},tG=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Ia([t],n.includeContainer,{filter:Wf.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=o5(t,n.includeContainer,Wf.bind(null,n)),r},l5=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Ao.call(t,Pa)===!1?!1:Zf(n,t)};const oi=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function u5(e,t){const n=hc(e,oi()),r=n.length;if(r===0)return;const o=cr(yt(e)),s=n.indexOf(o),i=s===-1?t===1?0:r-1:s+t;return n[i]}function d5(e){return u5(yt(e).body,1)||e}function f5(e){return u5(yt(e).body,-1)||e}function Os(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Je(n,r)}function nG(e){hc(e,oi()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function Ty(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 p5(){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 m5{nodesRef={current:[]};events=p5();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 h5=c.createContext(null),g5=c.createContext(null),Lr=()=>c.useContext(h5)?.id||null,Wo=e=>{const t=c.useContext(g5);return e??t};function rG(e){const t=Er(),n=Wo(e),r=Lr();return $e(()=>{if(!t)return;const o={id:t,parentId:r};return n?.addNode(o),()=>{n?.removeNode(o)}},[n,t,r]),t}function oG(e){const{children:t,id:n}=e,r=Lr();return h.jsx(h5.Provider,{value:c.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function sG(e){const{children:t,externalTree:n}=e,r=fn(()=>n??new m5).current;return h.jsx(g5.Provider,{value:r,children:t})}function Zs(e){return`data-base-ui-${e}`}const v5={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 Yr(e){return e?.ownerDocument||document}const Aa=c.forwardRef(function(t,n){const[r,o]=c.useState();$e(()=>{gU&&o("button")},[]);const s={tabIndex:0,role:r};return h.jsx("span",{...t,ref:n,style:v5,"aria-hidden":r?void 0:!0,...s,"data-base-ui-focus-guard":""})});let Iy=0;function Xi(e,t={}){const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Iy);const s=()=>e?.focus({preventScroll:n});o?s():Iy=requestAnimationFrame(s)}const ko={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function Ay(e){return e==="inert"?ko.inert:e==="aria-hidden"?ko["aria-hidden"]:ko.none}let Li=new WeakSet,ji={},Rd=0;const b5=e=>e&&(e.host||b5(e.parentNode)),iG=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=b5(n);return e.contains(r)?r:null}).filter(n=>n!=null);function aG(e,t,n,r){const o="data-base-ui-inert",s=r?"inert":n?"aria-hidden":null,i=iG(t,e),a=new Set,u=new Set(i),l=[];ji[o]||(ji[o]=new WeakMap);const d=ji[o];i.forEach(f),p(t),a.clear();function f(m){!m||a.has(m)||(a.add(m),m.parentNode&&f(m.parentNode))}function p(m){!m||u.has(m)||[].forEach.call(m.children,g=>{if($r(g)!=="script")if(a.has(g))p(g);else{const y=s?g.getAttribute(s):null,x=y!==null&&y!=="false",w=Ay(s),b=(w.get(g)||0)+1,v=(d.get(g)||0)+1;w.set(g,b),d.set(g,v),l.push(g),b===1&&x&&Li.add(g),v===1&&g.setAttribute(o,""),!x&&s&&g.setAttribute(s,s==="inert"?"":"true")}})}return Rd+=1,()=>{l.forEach(m=>{const g=Ay(s),x=(g.get(m)||0)-1,w=(d.get(m)||0)-1;g.set(m,x),d.set(m,w),x||(!Li.has(m)&&s&&m.removeAttribute(s),Li.delete(m)),w||m.removeAttribute(o)}),Rd-=1,Rd||(ko.inert=new WeakMap,ko["aria-hidden"]=new WeakMap,ko.none=new WeakMap,Li=new WeakSet,ji={})}}function cG(e,t=!1,n=!1){const r=yt(e[0]).body;return aG(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const y5=c.createContext(null),w5=()=>c.useContext(y5),lG=Zs("portal");function uG(e={}){const{ref:t,container:n,componentProps:r=Zt,elementProps:o,elementState:s}=e,i=Er(),u=w5()?.portalNode,[l,d]=c.useState(null),[f,p]=c.useState(null),m=c.useRef(null);$e(()=>{if(n===null){m.current&&(m.current=null,p(null),d(null));return}if(i==null)return;const x=(n&&(im(n)?n:n.current))??u??document.body;if(x==null){m.current&&(m.current=null,p(null),d(null));return}m.current!==x&&(m.current=x,p(null),d(x))},[n,u,i]);const g=Sr("div",r,{ref:[t,p],state:s,props:[{id:i,[lG]:""},o]});return{portalNode:f,portalSubtree:l&&g?jt.createPortal(g,l):null}}const dG=c.forwardRef(function(t,n){const{children:r,container:o,className:s,render:i,renderGuards:a,...u}=t,{portalNode:l,portalSubtree:d}=uG({container:o,ref:n,componentProps:t,elementProps:u}),f=c.useRef(null),p=c.useRef(null),m=c.useRef(null),g=c.useRef(null),[y,x]=c.useState(null),w=y?.modal,b=y?.open,v=typeof a=="boolean"?a:!!y&&!y.modal&&y.open&&!!l;c.useEffect(()=>{if(!l||w)return;function k(E){l&&Os(E)&&(E.type==="focusin"?Ty:nG)(l)}return l.addEventListener("focusin",k,!0),l.addEventListener("focusout",k,!0),()=>{l.removeEventListener("focusin",k,!0),l.removeEventListener("focusout",k,!0)}},[l,w]),c.useEffect(()=>{!l||b||Ty(l)},[b,l]);const C=c.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:g,portalNode:l,setFocusManagerState:x}),[l]);return h.jsxs(c.Fragment,{children:[d,h.jsxs(y5.Provider,{value:C,children:[v&&l&&h.jsx(Aa,{"data-type":"outside",ref:f,onFocus:k=>{if(Os(k,l))m.current?.focus();else{const E=y?y.domReference:null;f5(E)?.focus()}}}),v&&l&&h.jsx("span",{"aria-owns":l.id,style:xZ}),l&&jt.createPortal(r,l),v&&l&&h.jsx(Aa,{"data-type":"outside",ref:p,onFocus:k=>{if(Os(k,l))g.current?.focus();else{const E=y?y.domReference:null;d5(E)?.focus(),y?.closeOnFocusOut&&y?.onOpenChange(!1,mt(uc,k.nativeEvent))}}})]})]})});function fG(e,t){const n=Ct(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 _y=20;let lr=[];function pm(){lr=lr.filter(e=>e.isConnected)}function pG(e){pm(),e&&$r(e)!=="body"&&(lr.push(e),lr.length>_y&&(lr=lr.slice(-_y)))}function Pd(){return pm(),lr[lr.length-1]}function mG(e){if(!e)return null;const t=oi();return l5(e,t)?e:hc(e,t)[0]||e}function hG(e){return!e||!e.isConnected?!1:typeof e.checkVisibility=="function"?e.checkVisibility():rn(e).display!=="none"}function Ny(e,t){if(!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;const n=oi(),o=tG(e,n).filter(i=>{const a=i.getAttribute("data-tabindex")||"";return l5(i,n)||i.hasAttribute("data-tabindex")&&!a.startsWith("-")}),s=e.getAttribute("tabindex");t.current.includes("floating")||o.length===0?s!=="0"&&e.setAttribute("tabindex","0"):(s!=="-1"||e.hasAttribute("data-tabindex")&&e.getAttribute("data-tabindex")!=="-1")&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}function gG(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],initialFocus:s=!0,returnFocus:i=!0,restoreFocus:a=!1,modal:u=!0,closeOnFocusOut:l=!0,openInteractionType:d="",getInsideElements:f=()=>[],nextFocusableElement:p,previousFocusableElement:m,beforeContentFocusGuardRef:g,externalTree:y}=e,x="rootStore"in t?t.rootStore:t,w=x.useState("open"),b=x.useState("domReferenceElement"),v=x.useState("floatingElement"),{events:C,dataRef:k}=x.context,E=Le(()=>k.current.floatingContext?.nodeId),$=Le(f),S=s===!1,j=Ff(b)&&S,R=Ht(o),T=Ht(s),A=Ht(i),L=Ht(d),V=Wo(y),I=w5(),_=c.useRef(null),N=c.useRef(null),O=c.useRef(!1),z=c.useRef(!1),M=c.useRef(!1),q=c.useRef(-1),ee=c.useRef(""),K=c.useRef(""),ue=En(),se=En(),re=cm(),oe=I!=null,ie=Oa(v),ae=Le((X=ie)=>X?hc(X,oi()):[]),pe=Le(X=>{const te=ae(X);return R.current.map(()=>te).filter(Boolean).flat()});c.useEffect(()=>{if(r||!u)return;function X(ke){ke.key==="Tab"&&Je(ie,cr(yt(ie)))&&ae().length===0&&!j&&wt(ke)}const te=yt(ie);return te.addEventListener("keydown",X),()=>{te.removeEventListener("keydown",X)}},[r,b,ie,u,R,j,ae,pe]),c.useEffect(()=>{if(r||!v)return;function X(te){const ke=Wt(te),U=ae().indexOf(ke);U!==-1&&(q.current=U)}return v.addEventListener("focusin",X),()=>{v.removeEventListener("focusin",X)}},[r,v,ae]),c.useEffect(()=>{if(r||!w)return;const X=yt(ie);function te(){M.current=!1}function ke(U){const W=Wt(U),le=Je(v,W)||Je(b,W)||Je(I?.portalNode,W);M.current=!le,K.current=U.pointerType||"keyboard"}function Ce(){K.current="keyboard"}return X.addEventListener("pointerdown",ke,!0),X.addEventListener("pointerup",te,!0),X.addEventListener("pointercancel",te,!0),X.addEventListener("keydown",Ce,!0),()=>{X.removeEventListener("pointerdown",ke,!0),X.removeEventListener("pointerup",te,!0),X.removeEventListener("pointercancel",te,!0),X.removeEventListener("keydown",Ce,!0)}},[r,v,b,ie,w,I]),c.useEffect(()=>{if(r||!l)return;function X(){z.current=!0,se.start(0,()=>{z.current=!1})}function te(W){const le=W.relatedTarget,J=W.currentTarget,de=Wt(W);queueMicrotask(()=>{const Z=E(),ye=x.context.triggerElements,Pe=!(Je(b,le)||Je(v,le)||Je(le,v)||Je(I?.portalNode,le)||le!=null&&ye.hasElement(le)||ye.hasMatchingElement(Ee=>Je(Ee,le))||le?.hasAttribute(Zs("focus-guard"))||V&&(Co(V.nodesRef.current,Z).find(Ee=>Je(Ee.context?.elements.floating,le)||Je(Ee.context?.elements.domReference,le))||Ly(V.nodesRef.current,Z).find(Ee=>[Ee.context?.elements.floating,Oa(Ee.context?.elements.floating)].includes(le)||Ee.context?.elements.domReference===le)));if(J===b&&ie&&Ny(ie,R),a&&J!==b&&!hG(de)&&cr(yt(ie))===yt(ie).body){if(dt(ie)&&(ie.focus(),a==="popup")){re.request(()=>{ie.focus()});return}const Ee=q.current,Fe=ae(),nt=Fe[Ee]||Fe[Fe.length-1]||ie;dt(nt)&&nt.focus()}if(k.current.insideReactTree){k.current.insideReactTree=!1;return}(j||!u)&&le&&Pe&&!z.current&&(j||le!==Pd())&&(O.current=!0,x.setOpen(!1,mt(uc,W)))})}function ke(){M.current||(k.current.insideReactTree=!0,ue.start(0,()=>{k.current.insideReactTree=!1}))}const Ce=dt(b)?b:null,U=[];if(!(!v&&!Ce))return Ce&&(Ce.addEventListener("focusout",te),Ce.addEventListener("pointerdown",X),U.push(()=>{Ce.removeEventListener("focusout",te),Ce.removeEventListener("pointerdown",X)})),v&&(v.addEventListener("focusout",te),I&&(v.addEventListener("focusout",ke,!0),U.push(()=>{v.removeEventListener("focusout",ke,!0)})),U.push(()=>{v.removeEventListener("focusout",te)})),()=>{U.forEach(W=>{W()})}},[r,b,v,ie,u,V,I,x,l,a,ae,j,E,R,k,ue,se,re]);const P=c.useRef(null),Y=c.useRef(null),B=Ws(P,g,I?.beforeInsideRef),ve=Ws(Y,I?.afterInsideRef);c.useEffect(()=>{if(r||!v||!w)return;const X=Array.from(I?.portalNode?.querySelectorAll(`[${Zs("portal")}]`)||[]),ke=(V?Ly(V.nodesRef.current,E()):[]).find(W=>Ff(W.context?.elements.domReference||null))?.context?.elements.domReference,Ce=[v,ke,...X,...$(),_.current,N.current,P.current,Y.current,I?.beforeOutsideRef.current,I?.afterOutsideRef.current,Fr(m),Fr(p),j?b:null].filter(W=>W!=null),U=cG(Ce,u||j);return()=>{U()}},[w,r,b,v,u,R,I,j,V,E,$,p,m]),$e(()=>{if(!w||r||!dt(ie))return;const X=yt(ie),te=cr(X);queueMicrotask(()=>{const ke=pe(ie),Ce=T.current,U=typeof Ce=="function"?Ce(L.current||""):Ce;if(U===void 0||U===!1)return;let W;U===!0||U===null?W=ke[0]||ie:W=Fr(U),W=W||ke[0]||ie,!Je(ie,te)&&Xi(W,{preventScroll:W===ie})})},[r,w,ie,S,pe,T,L]),$e(()=>{if(r||!ie)return;const X=yt(ie),te=cr(X);pG(te);function ke(W){if(W.open||(ee.current=fG(W.nativeEvent,K.current)),W.reason===Zr&&W.nativeEvent.type==="mouseleave"&&(O.current=!0),W.reason===sm)if(W.nested)O.current=!1;else if(e5(W.nativeEvent)||t5(W.nativeEvent))O.current=!1;else{let le=!1;document.createElement("div").focus({get preventScroll(){return le=!0,!1}}),le?O.current=!1:O.current=!0}}C.on("openchange",ke);const Ce=X.createElement("span");Ce.setAttribute("tabindex","-1"),Ce.setAttribute("aria-hidden","true"),Object.assign(Ce.style,v5),oe&&b&&b.insertAdjacentElement("afterend",Ce);function U(){const W=A.current;let le=typeof W=="function"?W(ee.current):W;if(le===void 0||le===!1)return null;if(le===null&&(le=!0),typeof le=="boolean"){const de=b||Pd();return de&&de.isConnected?de:Ce}const J=b||Pd()||Ce;return Fr(le)||J}return()=>{C.off("openchange",ke);const W=cr(X),le=Je(v,W)||V&&Co(V.nodesRef.current,E(),!1).some(de=>Je(de.context?.elements.floating,W)),J=U();queueMicrotask(()=>{const de=mG(J),Z=typeof A.current!="boolean";A.current&&!O.current&&dt(de)&&(!(!Z&&de!==W&&W!==X.body)||le)&&de.focus({preventScroll:!0}),Ce.remove()})}},[r,v,ie,A,k,C,V,oe,b,E]),c.useEffect(()=>{queueMicrotask(()=>{O.current=!1})},[r]),c.useEffect(()=>{if(r||!w)return;function X(ke){Wt(ke)?.closest(`[${yZ}]`)&&(z.current=!0)}const te=yt(ie);return te.addEventListener("pointerdown",X,!0),()=>{te.removeEventListener("pointerdown",X,!0)}},[r,w,ie]),$e(()=>{if(!r&&I)return I.setFocusManagerState({modal:u,closeOnFocusOut:l,open:w,onOpenChange:x.setOpen,domReference:b}),()=>{I.setFocusManagerState(null)}},[r,I,u,w,x,l,b]),$e(()=>{if(!(r||!ie))return Ny(ie,R),()=>{queueMicrotask(pm)}},[r,ie,R]);const Q=!r&&(u?!j:!0)&&(oe||u);return h.jsxs(c.Fragment,{children:[Q&&h.jsx(Aa,{"data-type":"inside",ref:B,onFocus:X=>{if(u){const te=pe();Xi(te[te.length-1])}else I?.portalNode&&(O.current=!1,Os(X,I.portalNode)?d5(b)?.focus():Fr(m??I.beforeOutsideRef)?.focus())}}),n,Q&&h.jsx(Aa,{"data-type":"inside",ref:ve,onFocus:X=>{u?Xi(pe()[0]):I?.portalNode&&(l&&(O.current=!0),Os(X,I.portalNode)?f5(b)?.focus():Fr(p??I.afterOutsideRef)?.focus())}})]})}function Dy(e,t,n){let{reference:r,floating:o}=e;const s=cn(t),i=fm(t),a=dm(i),u=tn(t),l=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let m;switch(u){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Or(t)){case"start":m[i]-=p*(n&&l?-1:1);break;case"end":m[i]+=p*(n&&l?-1:1);break}return m}async function vG(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=Kn(t,e),g=n5(m),x=a[p?f==="floating"?"reference":"floating":f],w=Ra(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:u})),b=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),C=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},k=Ra(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:u}):b);return{top:(w.top-k.top+g.top)/C.y,bottom:(k.bottom-w.bottom+g.bottom)/C.y,left:(w.left-k.left+g.left)/C.x,right:(k.right-w.right+g.right)/C.x}}const bG=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Dy(l,r,u),p=r,m={},g=0;for(let x=0;x<a.length;x++){var y;const{name:w,fn:b}=a[x],{x:v,y:C,data:k,reset:E}=await b({x:d,y:f,initialPlacement:r,placement:p,strategy:o,middlewareData:m,rects:l,platform:{...i,detectOverflow:(y=i.detectOverflow)!=null?y:vG},elements:{reference:e,floating:t}});d=v??d,f=C??f,m={...m,[w]:{...m[w],...k}},E&&g<=50&&(g++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(l=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:d,y:f}=Dy(l,p,u)),x=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:m}},yG=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:u,elements:l}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...x}=Kn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=tn(o),b=cn(a),v=tn(a)===a,C=await(u.isRTL==null?void 0:u.isRTL(l.floating)),k=p||(v||!y?[ja(a)]:PU(a)),E=g!=="none";!p&&E&&k.push(...AU(a,y,g,C));const $=[a,...k],S=await u.detectOverflow(t,x),j=[];let R=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&j.push(S[w]),f){const V=RU(o,i,C);j.push(S[V[0]],S[V[1]])}if(R=[...R,{placement:o,overflows:j}],!j.every(V=>V<=0)){var T,A;const V=(((T=s.flip)==null?void 0:T.index)||0)+1,I=$[V];if(I&&(!(f==="alignment"?b!==cn(I):!1)||R.every(O=>cn(O.placement)===b?O.overflows[0]>0:!0)))return{data:{index:V,overflows:R},reset:{placement:I}};let _=(A=R.filter(N=>N.overflows[0]<=0).sort((N,O)=>N.overflows[1]-O.overflows[1])[0])==null?void 0:A.placement;if(!_)switch(m){case"bestFit":{var L;const N=(L=R.filter(O=>{if(E){const z=cn(O.placement);return z===b||z==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(z=>z>0).reduce((z,M)=>z+M,0)]).sort((O,z)=>O[1]-z[1])[0])==null?void 0:L[0];N&&(_=N);break}case"initialPlacement":_=a;break}if(o!==_)return{reset:{placement:_}}}return{}}}};function Vy(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function zy(e){return $U.some(t=>e[t]>=0)}const wG=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=Kn(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=Vy(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:zy(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=Vy(i,n.floating);return{data:{escapedOffsets:a,escaped:zy(a)}}}default:return{}}}}},x5=new Set(["left","top"]);async function xG(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=tn(n),a=Or(n),u=cn(n)==="y",l=x5.has(i)?-1:1,d=s&&u?-1:1,f=Kn(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof g=="number"&&(m=a==="end"?g*-1:g),u?{x:m*d,y:p*l}:{x:p*l,y:m*d}}const CG=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,u=await xG(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:i}}}}},kG=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:u={fn:w=>{let{x:b,y:v}=w;return{x:b,y:v}}},...l}=Kn(e,t),d={x:n,y:r},f=await s.detectOverflow(t,l),p=cn(tn(o)),m=um(p);let g=d[m],y=d[p];if(i){const w=m==="y"?"top":"left",b=m==="y"?"bottom":"right",v=g+f[w],C=g-f[b];g=Bf(v,g,C)}if(a){const w=p==="y"?"top":"left",b=p==="y"?"bottom":"right",v=y+f[w],C=y-f[b];y=Bf(v,y,C)}const x=u.fn({...t,[m]:g,[p]:y});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[m]:i,[p]:a}}}}}},EG=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:u=!0,crossAxis:l=!0}=Kn(e,t),d={x:n,y:r},f=cn(o),p=um(f);let m=d[p],g=d[f];const y=Kn(a,t),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(u){const v=p==="y"?"height":"width",C=s.reference[p]-s.floating[v]+x.mainAxis,k=s.reference[p]+s.reference[v]-x.mainAxis;m<C?m=C:m>k&&(m=k)}if(l){var w,b;const v=p==="y"?"width":"height",C=x5.has(tn(o)),k=s.reference[f]-s.floating[v]+(C&&((w=i.offset)==null?void 0:w[f])||0)+(C?0:x.crossAxis),E=s.reference[f]+s.reference[v]+(C?0:((b=i.offset)==null?void 0:b[f])||0)-(C?x.crossAxis:0);g<k?g=k:g>E&&(g=E)}return{[p]:m,[f]:g}}}},SG=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:u=()=>{},...l}=Kn(e,t),d=await i.detectOverflow(t,l),f=tn(o),p=Or(o),m=cn(o)==="y",{width:g,height:y}=s.floating;let x,w;f==="top"||f==="bottom"?(x=f,w=p===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(w=f,x=p==="end"?"top":"bottom");const b=y-d.top-d.bottom,v=g-d.left-d.right,C=Io(y-d[x],b),k=Io(g-d[w],v),E=!t.middlewareData.shift;let $=C,S=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&($=b),E&&!p){const R=Xt(d.left,0),T=Xt(d.right,0),A=Xt(d.top,0),L=Xt(d.bottom,0);m?S=g-2*(R!==0||T!==0?R+T:Xt(d.left,d.right)):$=y-2*(A!==0||L!==0?A+L:Xt(d.top,d.bottom))}await u({...t,availableWidth:S,availableHeight:$});const j=await i.getDimensions(a.floating);return g!==j.width||y!==j.height?{reset:{rects:!0}}:{}}}};function C5(e){const t=rn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=dt(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=La(n)!==s||La(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function mm(e){return Qe(e)?e:e.contextElement}function Eo(e){const t=mm(e);if(!dt(t))return Tn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=C5(t);let i=(s?La(n.width):n.width)/r,a=(s?La(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const $G=Tn(0);function k5(e){const t=Ct(e);return!pc()||!t.visualViewport?$G:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function OG(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ct(e)?!1:t}function qr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=mm(e);let i=Tn(1);t&&(r?Qe(r)&&(i=Eo(r)):i=Eo(e));const a=OG(s,n,r)?k5(s):Tn(0);let u=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(s){const p=Ct(s),m=r&&Qe(r)?Ct(r):r;let g=p,y=Df(g);for(;y&&r&&m!==g;){const x=Eo(y),w=y.getBoundingClientRect(),b=rn(y),v=w.left+(y.clientLeft+parseFloat(b.paddingLeft))*x.x,C=w.top+(y.clientTop+parseFloat(b.paddingTop))*x.y;u*=x.x,l*=x.y,d*=x.x,f*=x.y,u+=v,l+=C,g=Ct(y),y=Df(g)}}return Ra({width:d,height:f,x:u,y:l})}function gc(e,t){const n=mc(e).scrollLeft;return t?t.left+n:qr(zn(e)).left+n}function E5(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-gc(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function LG(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=zn(r),a=t?fc(t.floating):!1;if(r===i||a&&s)return n;let u={scrollLeft:0,scrollTop:0},l=Tn(1);const d=Tn(0),f=dt(r);if((f||!f&&!s)&&(($r(r)!=="body"||to(i))&&(u=mc(r)),dt(r))){const m=qr(r);l=Eo(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const p=i&&!f&&!s?E5(i,u):Tn(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+d.x+p.x,y:n.y*l.y-u.scrollTop*l.y+d.y+p.y}}function jG(e){return Array.from(e.getClientRects())}function RG(e){const t=zn(e),n=mc(e),r=e.ownerDocument.body,o=Xt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Xt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+gc(e);const a=-n.scrollTop;return rn(r).direction==="rtl"&&(i+=Xt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Fy=25;function PG(e,t){const n=Ct(e),r=zn(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,u=0;if(o){s=o.width,i=o.height;const d=pc();(!d||d&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}const l=gc(r);if(l<=0){const d=r.ownerDocument,f=d.body,p=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(r.clientWidth-f.clientWidth-m);g<=Fy&&(s-=g)}else l<=Fy&&(s+=l);return{width:s,height:i,x:a,y:u}}const MG=new Set(["absolute","fixed"]);function TG(e,t){const n=qr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=dt(e)?Eo(e):Tn(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,u=o*s.x,l=r*s.y;return{width:i,height:a,x:u,y:l}}function By(e,t,n){let r;if(t==="viewport")r=PG(e,n);else if(t==="document")r=RG(zn(e));else if(Qe(t))r=TG(t,n);else{const o=k5(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ra(r)}function S5(e,t){const n=Dn(e);return n===t||!Qe(n)||Mn(n)?!1:rn(n).position==="fixed"||S5(n,t)}function IG(e,t){const n=t.get(e);if(n)return n;let r=pr(e,[],!1).filter(a=>Qe(a)&&$r(a)!=="body"),o=null;const s=rn(e).position==="fixed";let i=s?Dn(e):e;for(;Qe(i)&&!Mn(i);){const a=rn(i),u=am(i);!u&&a.position==="fixed"&&(o=null),(s?!u&&!o:!u&&a.position==="static"&&!!o&&MG.has(o.position)||to(i)&&!u&&S5(e,i))?r=r.filter(d=>d!==i):o=a,i=Dn(i)}return t.set(e,r),r}function AG(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?fc(t)?[]:IG(t,this._c):[].concat(n),r],a=i[0],u=i.reduce((l,d)=>{const f=By(t,d,o);return l.top=Xt(f.top,l.top),l.right=Io(f.right,l.right),l.bottom=Io(f.bottom,l.bottom),l.left=Xt(f.left,l.left),l},By(t,a,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function _G(e){const{width:t,height:n}=C5(e);return{width:t,height:n}}function NG(e,t,n){const r=dt(t),o=zn(t),s=n==="fixed",i=qr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const u=Tn(0);function l(){u.x=gc(o)}if(r||!r&&!s)if(($r(t)!=="body"||to(o))&&(a=mc(t)),r){const m=qr(t,!0,s,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else o&&l();s&&!r&&o&&l();const d=o&&!r&&!s?E5(o,a):Tn(0),f=i.left+a.scrollLeft-u.x-d.x,p=i.top+a.scrollTop-u.y-d.y;return{x:f,y:p,width:i.width,height:i.height}}function Md(e){return rn(e).position==="static"}function Hy(e,t){if(!dt(e)||rn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return zn(e)===n&&(n=n.ownerDocument.body),n}function $5(e,t){const n=Ct(e);if(fc(e))return n;if(!dt(e)){let o=Dn(e);for(;o&&!Mn(o);){if(Qe(o)&&!Md(o))return o;o=Dn(o)}return n}let r=Hy(e,t);for(;r&&FZ(r)&&Md(r);)r=Hy(r,t);return r&&Mn(r)&&Md(r)&&!am(r)?n:r||UZ(e)||n}const DG=async function(e){const t=this.getOffsetParent||$5,n=this.getDimensions,r=await n(e.floating);return{reference:NG(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function VG(e){return rn(e).direction==="rtl"}const zG={convertOffsetParentRelativeRectToViewportRelativeRect:LG,getDocumentElement:zn,getClippingRect:AG,getOffsetParent:$5,getElementRects:DG,getClientRects:jG,getDimensions:_G,getScale:Eo,isElement:Qe,isRTL:VG};function O5(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function FG(e,t){let n=null,r;const o=zn(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),s();const l=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=l;if(a||t(),!p||!m)return;const g=ho(f),y=ho(o.clientWidth-(d+p)),x=ho(o.clientHeight-(f+m)),w=ho(d),v={rootMargin:-g+"px "+-y+"px "+-x+"px "+-w+"px",threshold:Xt(0,Io(1,u))||1};let C=!0;function k(E){const $=E[0].intersectionRatio;if($!==u){if(!C)return i();$?i(!1,$):r=setTimeout(()=>{i(!1,1e-7)},1e3)}$===1&&!O5(l,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(k,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,v)}n.observe(e)}return i(!0),s}function Wy(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=mm(e),d=o||s?[...l?pr(l):[],...pr(t)]:[];d.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const f=l&&a?FG(l,n):null;let p=-1,m=null;i&&(m=new ResizeObserver(w=>{let[b]=w;b&&b.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var v;(v=m)==null||v.observe(t)})),n()}),l&&!u&&m.observe(l),m.observe(t));let g,y=u?qr(e):null;u&&x();function x(){const w=qr(e);y&&!O5(y,w)&&n(),y=w,g=requestAnimationFrame(x)}return n(),()=>{var w;d.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),f?.(),(w=m)==null||w.disconnect(),m=null,u&&cancelAnimationFrame(g)}}const BG=CG,HG=kG,WG=yG,ZG=SG,UG=wG,GG=EG,KG=(e,t,n)=>{const r=new Map,o={platform:zG,...n},s={...o.platform,_c:r};return bG(e,t,{...o,platform:s})};var YG=typeof document<"u",qG=function(){},Ji=YG?c.useLayoutEffect:qG;function _a(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(!_a(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!_a(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function L5(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zy(e,t){const n=L5(e);return Math.round(t*n)/n}function Td(e){const t=c.useRef(e);return Ji(()=>{t.current=e}),t}function XG(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:u,open:l}=e,[d,f]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=c.useState(r);_a(p,r)||m(r);const[g,y]=c.useState(null),[x,w]=c.useState(null),b=c.useCallback(O=>{O!==E.current&&(E.current=O,y(O))},[]),v=c.useCallback(O=>{O!==$.current&&($.current=O,w(O))},[]),C=s||g,k=i||x,E=c.useRef(null),$=c.useRef(null),S=c.useRef(d),j=u!=null,R=Td(u),T=Td(o),A=Td(l),L=c.useCallback(()=>{if(!E.current||!$.current)return;const O={placement:t,strategy:n,middleware:p};T.current&&(O.platform=T.current),KG(E.current,$.current,O).then(z=>{const M={...z,isPositioned:A.current!==!1};V.current&&!_a(S.current,M)&&(S.current=M,jt.flushSync(()=>{f(M)}))})},[p,t,n,T,A]);Ji(()=>{l===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(O=>({...O,isPositioned:!1})))},[l]);const V=c.useRef(!1);Ji(()=>(V.current=!0,()=>{V.current=!1}),[]),Ji(()=>{if(C&&(E.current=C),k&&($.current=k),C&&k){if(R.current)return R.current(C,k,L);L()}},[C,k,L,R,j]);const I=c.useMemo(()=>({reference:E,floating:$,setReference:b,setFloating:v}),[b,v]),_=c.useMemo(()=>({reference:C,floating:k}),[C,k]),N=c.useMemo(()=>{const O={position:n,left:0,top:0};if(!_.floating)return O;const z=Zy(_.floating,d.x),M=Zy(_.floating,d.y);return a?{...O,transform:"translate("+z+"px, "+M+"px)",...L5(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:M}},[n,a,_.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:L,refs:I,elements:_,floatingStyles:N}),[d,L,I,_,N])}const JG=(e,t)=>({...BG(e),options:[e,t]}),QG=(e,t)=>({...HG(e),options:[e,t]}),eK=(e,t)=>({...GG(e),options:[e,t]}),tK=(e,t)=>({...WG(e),options:[e,t]}),nK=(e,t)=>({...ZG(e),options:[e,t]}),rK=(e,t)=>({...UG(e),options:[e,t]}),oK={intentional:"onClick",sloppy:"onPointerDown"};function sK(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function iK(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),s=n.useState("referenceElement"),i=n.useState("domReferenceElement"),{onOpenChange:a,dataRef:u}=n.context,{enabled:l=!0,escapeKey:d=!0,outsidePress:f=!0,outsidePressEvent:p="sloppy",referencePress:m=!1,referencePressEvent:g="sloppy",ancestorScroll:y=!1,bubbles:x,externalTree:w}=t,b=Wo(w),v=Le(typeof f=="function"?f:()=>!1),C=typeof f=="function"?v:f,k=c.useRef(!1),{escapeKey:E,outsidePress:$}=sK(x),S=c.useRef(null),j=En(),R=En(),T=Le(()=>{R.clear(),u.current.insideReactTree=!1}),A=c.useRef(!1),L=c.useRef(""),V=Le(P=>{L.current=P.pointerType}),I=Le(()=>{const P=L.current,Y=P==="pen"||!P?"mouse":P,B=typeof p=="function"?p():p;return typeof B=="string"?B:B[Y]}),_=Le(P=>{if(!r||!l||!d||P.key!=="Escape"||A.current)return;const Y=u.current.floatingContext?.nodeId,B=b?Co(b.nodesRef.current,Y):[];if(!E&&B.length>0){let X=!0;if(B.forEach(te=>{te.context?.open&&!te.context.dataRef.current.__escapeKeyBubbles&&(X=!1)}),!X)return}const ve=kU(P)?P.nativeEvent:P,Q=mt(zk,ve);n.setOpen(!1,Q),!E&&!Q.isPropagationAllowed&&P.stopPropagation()}),N=Le(P=>{const Y=I();return Y==="intentional"&&P.type!=="click"||Y==="sloppy"&&P.type==="click"}),O=Le(()=>{u.current.insideReactTree=!0,R.start(0,T)}),z=Le((P,Y=!1)=>{if(N(P)){T();return}if(u.current.insideReactTree){T();return}if(I()==="intentional"&&Y||typeof C=="function"&&!C(P))return;const B=Wt(P),ve=`[${Zs("inert")}]`,Q=yt(n.select("floatingElement")).querySelectorAll(ve),X=n.context.triggerElements;if(B&&(X.hasElement(B)||X.hasMatchingElement(W=>Je(W,B))))return;let te=Qe(B)?B:null;for(;te&&!Mn(te);){const W=Dn(te);if(Mn(W)||!Qe(W))break;te=W}if(Q.length&&Qe(B)&&!xU(B)&&!Je(B,n.select("floatingElement"))&&Array.from(Q).every(W=>!Je(te,W)))return;if(dt(B)&&!("touches"in P)){const W=Mn(B),le=rn(B),J=/auto|scroll/,de=W||J.test(le.overflowX),Z=W||J.test(le.overflowY),ye=de&&B.clientWidth>0&&B.scrollWidth>B.clientWidth,Pe=Z&&B.clientHeight>0&&B.scrollHeight>B.clientHeight,Ee=le.direction==="rtl",Fe=Pe&&(Ee?P.offsetX<=B.offsetWidth-B.clientWidth:P.offsetX>B.clientWidth),nt=ye&&P.offsetY>B.clientHeight;if(Fe||nt)return}const ke=u.current.floatingContext?.nodeId,Ce=b&&Co(b.nodesRef.current,ke).some(W=>bn(P,W.context?.elements.floating));if(bn(P,n.select("floatingElement"))||bn(P,n.select("domReferenceElement"))||Ce)return;const U=b?Co(b.nodesRef.current,ke):[];if(U.length>0){let W=!0;if(U.forEach(le=>{le.context?.open&&!le.context.dataRef.current.__outsidePressBubbles&&(W=!1)}),!W)return}n.setOpen(!1,mt(sm,P)),T()}),M=Le(P=>{I()!=="sloppy"||P.pointerType==="touch"||!n.select("open")||!l||bn(P,n.select("floatingElement"))||bn(P,n.select("domReferenceElement"))||z(P)}),q=Le(P=>{if(I()!=="sloppy"||!n.select("open")||!l||bn(P,n.select("floatingElement"))||bn(P,n.select("domReferenceElement")))return;const Y=P.touches[0];Y&&(S.current={startTime:Date.now(),startX:Y.clientX,startY:Y.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},j.start(1e3,()=>{S.current&&(S.current.dismissOnTouchEnd=!1,S.current.dismissOnMouseDown=!1)}))}),ee=Le(P=>{const Y=Wt(P);function B(){q(P),Y?.removeEventListener(P.type,B)}Y?.addEventListener(P.type,B)}),K=Le(P=>{const Y=k.current;if(k.current=!1,j.clear(),P.type==="mousedown"&&S.current&&!S.current.dismissOnMouseDown)return;const B=Wt(P);function ve(){P.type==="pointerdown"?M(P):z(P,Y),B?.removeEventListener(P.type,ve)}B?.addEventListener(P.type,ve)}),ue=Le(P=>{if(I()!=="sloppy"||!S.current||bn(P,n.select("floatingElement"))||bn(P,n.select("domReferenceElement")))return;const Y=P.touches[0];if(!Y)return;const B=Math.abs(Y.clientX-S.current.startX),ve=Math.abs(Y.clientY-S.current.startY),Q=Math.sqrt(B*B+ve*ve);Q>5&&(S.current.dismissOnTouchEnd=!0),Q>10&&(z(P),j.clear(),S.current=null)}),se=Le(P=>{const Y=Wt(P);function B(){ue(P),Y?.removeEventListener(P.type,B)}Y?.addEventListener(P.type,B)}),re=Le(P=>{I()!=="sloppy"||!S.current||bn(P,n.select("floatingElement"))||bn(P,n.select("domReferenceElement"))||(S.current.dismissOnTouchEnd&&z(P),j.clear(),S.current=null)}),oe=Le(P=>{const Y=Wt(P);function B(){re(P),Y?.removeEventListener(P.type,B)}Y?.addEventListener(P.type,B)});c.useEffect(()=>{if(!r||!l)return;u.current.__escapeKeyBubbles=E,u.current.__outsidePressBubbles=$;const P=new $a;function Y(te){n.setOpen(!1,mt(TZ,te))}function B(){P.clear(),A.current=!0}function ve(){P.start(pc()?5:0,()=>{A.current=!1})}const Q=yt(o);Q.addEventListener("pointerdown",V,!0),d&&(Q.addEventListener("keydown",_),Q.addEventListener("compositionstart",B),Q.addEventListener("compositionend",ve)),C&&(Q.addEventListener("click",K,!0),Q.addEventListener("pointerdown",K,!0),Q.addEventListener("touchstart",ee,!0),Q.addEventListener("touchmove",se,!0),Q.addEventListener("touchend",oe,!0),Q.addEventListener("mousedown",K,!0));let X=[];return y&&(Qe(i)&&(X=pr(i)),Qe(o)&&(X=X.concat(pr(o))),!Qe(s)&&s&&s.contextElement&&(X=X.concat(pr(s.contextElement)))),X=X.filter(te=>te!==Q.defaultView?.visualViewport),X.forEach(te=>{te.addEventListener("scroll",Y,{passive:!0})}),()=>{Q.removeEventListener("pointerdown",V,!0),d&&(Q.removeEventListener("keydown",_),Q.removeEventListener("compositionstart",B),Q.removeEventListener("compositionend",ve)),C&&(Q.removeEventListener("click",K,!0),Q.removeEventListener("pointerdown",K,!0),Q.removeEventListener("touchstart",ee,!0),Q.removeEventListener("touchmove",se,!0),Q.removeEventListener("touchend",oe,!0),Q.removeEventListener("mousedown",K,!0)),X.forEach(te=>{te.removeEventListener("scroll",Y)}),P.clear()}},[u,o,s,i,d,C,r,a,y,l,E,$,_,z,K,M,ee,se,oe,V,n]),c.useEffect(T,[C,T]);const ie=c.useMemo(()=>({onKeyDown:_,...m&&{[oK[g]]:P=>{n.setOpen(!1,mt(Sa,P.nativeEvent))},...g!=="intentional"&&{onClick(P){n.setOpen(!1,mt(Sa,P.nativeEvent))}}}}),[_,n,m,g]),ae=Le(P=>{const Y=Wt(P.nativeEvent);!Je(n.select("floatingElement"),Y)||P.button!==0||(k.current=!0)}),pe=c.useMemo(()=>({onKeyDown:_,onPointerDown:ae,onMouseDown:ae,onMouseUp:ae,onClickCapture:O,onMouseDownCapture:O,onPointerDownCapture:O,onMouseUpCapture:O,onTouchEndCapture:O,onTouchMoveCapture:O}),[_,ae,O]);return c.useMemo(()=>l?{reference:ie,floating:pe,trigger:ie}:{},[l,ie,pe])}var Na=Symbol("NOT_FOUND");function aK(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function cK(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function lK(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 Uy=e=>Array.isArray(e)?e:[e];function uK(e){const t=Array.isArray(e[0])?e[0]:e;return lK(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function dK(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}function fK(e){let t;return{get(n){return t&&e(t.key,n)?t.value:Na},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function pK(e,t){let n=[];function r(a){const u=n.findIndex(l=>t(a,l.key));if(u>-1){const l=n[u];return u>0&&(n.splice(u,1),n.unshift(l)),l.value}return Na}function o(a,u){r(a)===Na&&(n.unshift({key:a,value:u}),n.length>e&&n.pop())}function s(){return n}function i(){n=[]}return{get:r,put:o,getEntries:s,clear:i}}var mK=(e,t)=>e===t;function hK(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let s=0;s<o;s++)if(!e(n[s],r[s]))return!1;return!0}}function gK(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=mK,maxSize:o=1,resultEqualityCheck:s}=n,i=hK(r);let a=0;const u=o<=1?fK(i):pK(o,i);function l(){let d=u.get(arguments);if(d===Na){if(d=e.apply(null,arguments),a++,s){const p=u.getEntries().find(m=>s(m.value,d));p&&(d=p.value,a!==0&&a--)}u.put(arguments,d)}return d}return l.clearCache=()=>{u.clear(),l.resetResultsCount()},l.resultsCount=()=>a,l.resetResultsCount=()=>{a=0},l}var vK=class{constructor(t){this.value=t}deref(){return this.value}},bK=typeof WeakRef<"u"?WeakRef:vK,yK=0,Gy=1;function Ri(){return{s:yK,v:void 0,o:null,p:null}}function j5(e,t={}){let n=Ri();const{resultEqualityCheck:r}=t;let o,s=0;function i(){let a=n;const{length:u}=arguments;for(let f=0,p=u;f<p;f++){const m=arguments[f];if(typeof m=="function"||typeof m=="object"&&m!==null){let g=a.o;g===null&&(a.o=g=new WeakMap);const y=g.get(m);y===void 0?(a=Ri(),g.set(m,a)):a=y}else{let g=a.p;g===null&&(a.p=g=new Map);const y=g.get(m);y===void 0?(a=Ri(),g.set(m,a)):a=y}}const l=a;let d;if(a.s===Gy)d=a.v;else if(d=e.apply(null,arguments),s++,r){const f=o?.deref?.()??o;f!=null&&r(f,d)&&(d=f,s!==0&&s--),o=typeof d=="object"&&d!==null||typeof d=="function"?new bK(d):d}return l.s=Gy,l.v=d,d}return i.clearCache=()=>{n=Ri(),i.resetResultsCount()},i.resultsCount=()=>s,i.resetResultsCount=()=>{s=0},i}function R5(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let s=0,i=0,a,u={},l=o.pop();typeof l=="object"&&(u=l,l=o.pop()),aK(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);const d={...n,...u},{memoize:f,memoizeOptions:p=[],argsMemoize:m=j5,argsMemoizeOptions:g=[]}=d,y=Uy(p),x=Uy(g),w=uK(o),b=f(function(){return s++,l.apply(null,arguments)},...y),v=m(function(){i++;const k=dK(w,arguments);return a=b.apply(null,k),a},...x);return Object.assign(v,{resultFunc:l,memoizedResultFunc:b,dependencies:w,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>a,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:f,argsMemoize:m})};return Object.assign(r,{withTypes:()=>r}),r}var wK=R5(j5),xK=Object.assign((e,t=wK)=>{cK(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(s=>e[s]);return t(r,(...s)=>s.reduce((i,a,u)=>(i[n[u]]=a,i),{}))},{withTypes:()=>xK});R5({memoize:gK,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const Te=(e,t,n,r,o,s,...i)=>{if(i.length>0)throw new Error(eo(1));let a;if(e)a=e;else throw new Error("Missing arguments");return a};var Id={exports:{}},Ad={};var Ky;function CK(){if(Ky)return Ad;Ky=1;var e=Qa();function t(f,p){return f===p&&(f!==0||1/f===1/p)||f!==f&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function a(f,p){var m=p(),g=r({inst:{value:m,getSnapshot:p}}),y=g[0].inst,x=g[1];return s(function(){y.value=m,y.getSnapshot=p,u(y)&&x({inst:y})},[f,m,p]),o(function(){return u(y)&&x({inst:y}),f(function(){u(y)&&x({inst:y})})},[f]),i(m),m}function u(f){var p=f.getSnapshot;f=f.value;try{var m=p();return!n(f,m)}catch{return!0}}function l(f,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:a;return Ad.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,Ad}var Yy;function P5(){return Yy||(Yy=1,Id.exports=CK()),Id.exports}var kK=P5(),_d={exports:{}},Nd={};var qy;function EK(){if(qy)return Nd;qy=1;var e=Qa(),t=P5();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,s=e.useRef,i=e.useEffect,a=e.useMemo,u=e.useDebugValue;return Nd.useSyncExternalStoreWithSelector=function(l,d,f,p,m){var g=s(null);if(g.current===null){var y={hasValue:!1,value:null};g.current=y}else y=g.current;g=a(function(){function w(E){if(!b){if(b=!0,v=E,E=p(E),m!==void 0&&y.hasValue){var $=y.value;if(m($,E))return C=$}return C=E}if($=C,r(v,E))return $;var S=p(E);return m!==void 0&&m($,S)?(v=E,$):(v=E,C=S)}var b=!1,v,C,k=f===void 0?null:f;return[function(){return w(d())},k===null?void 0:function(){return w(k())}]},[d,f,p,m]);var x=o(l,g[0],g[1]);return i(function(){y.hasValue=!0,y.value=x},[x]),u(x),x},Nd}var Xy;function SK(){return Xy||(Xy=1,_d.exports=EK()),_d.exports}var $K=SK();const OK=rm(19),LK=OK?RK:PK;function jK(e,t,n,r,o){return LK(e,t,n,r,o)}function RK(e,t,n,r,o){const s=c.useCallback(()=>t(e.getSnapshot(),n,r,o),[e,t,n,r,o]);return kK.useSyncExternalStore(e.subscribe,s,s)}function PK(e,t,n,r,o){return $K.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,n,r,o))}let MK=class Qi{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])){Qi.prototype.setState.call(this,{...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||Qi.prototype.setState.call(this,{...this.state,[t]:n})}notifyAll(){const t={...this.state};Qi.prototype.setState.call(this,t)}},M5=class extends MK{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}controlledValues=new Map;useSyncedValue(t,n){c.useDebugValue(t),$e(()=>{this.state[t]!==n&&this.set(t,n)},[t,n])}useSyncedValueWithCleanup(t,n){$e(()=>(this.state[t]!==n&&this.set(t,n),()=>{this.set(t,void 0)}),[t,n])}useSyncedValues(t){const n=Object.values(t);$e(()=>{this.update(t)},n)}useControlledProp(t,n,r){c.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})),$e(()=>{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 s=this.selectors[t];return s(this.state,n,r,o)};useState=(t,n,r,o)=>{c.useDebugValue(t);const s=this.selectors[t];return jK(this,s,n,r,o)};useContextCallback(t,n){c.useDebugValue(t);const r=Le(n??_k);this.context[t]=r}useStateSetter(t){const n=c.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(s=>{const i=r(s);if(!Object.is(o,i)){const a=o;o=i,n(i,a,this)}})}};const TK={open:Te(e=>e.open),domReferenceElement:Te(e=>e.domReferenceElement),referenceElement:Te(e=>e.positionReference??e.referenceElement),floatingElement:Te(e=>e.floatingElement),floatingId:Te(e=>e.floatingId)};let hm=class extends M5{constructor(t){const{nested:n,noEmit:r,onOpenChange:o,triggerElements:s,...i}=t;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:o,dataRef:{current:{}},events:p5(),nested:n,noEmit:r,triggerElements:s},TK)}setOpen=(t,n)=>{if((!t||!this.state.open||SU(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 IK(e){const t=e.useState("open");$e(()=>{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 AK(e,t,n){const{mounted:r,setMounted:o,transitionStatus:s}=aU(e);t.useSyncedValues({mounted:r,transitionStatus:s});const i=Le(()=>{o(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),a=t.useState("preventUnmountingOnClose");return Uk({enabled:!a,open:e,ref:t.context.popupRef,onComplete(){e||i()}}),{forceUnmount:i,transitionStatus:s}}let gm=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 _K(){return new hm({open:!1,floatingElement:null,referenceElement:null,triggerElements:new gm,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function NK(){return{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:_K(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:Zt,inactiveTriggerProps:Zt,popupProps:Zt}}const DK={open:Te(e=>e.open),mounted:Te(e=>e.mounted),transitionStatus:Te(e=>e.transitionStatus),floatingRootContext:Te(e=>e.floatingRootContext),preventUnmountingOnClose:Te(e=>e.preventUnmountingOnClose),payload:Te(e=>e.payload),activeTriggerId:Te(e=>e.activeTriggerId),activeTriggerElement:Te(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:Te((e,t)=>t!==void 0&&e.activeTriggerId===t),isOpenedByTrigger:Te((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.open),isMountedByTrigger:Te((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.mounted),triggerProps:Te((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:Te(e=>e.popupProps),popupElement:Te(e=>e.popupElement),positionerElement:Te(e=>e.positionerElement)};function VK(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,o=Er(),s=Lr()!=null,i=fn(()=>new hm({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:r.triggers??new gm,floatingId:o,nested:s,noEmit:e.noEmit||!1})).current;return $e(()=>{const a={open:t,floatingId:o};r.reference!==void 0&&(a.referenceElement=r.reference,a.domReferenceElement=Qe(r.reference)?r.reference:null),r.floating!==void 0&&(a.floatingElement=r.floating),i.update(a)},[t,o,r.reference,r.floating,i]),i.context.onOpenChange=n,i.context.nested=s,i.context.noEmit=e.noEmit||!1,i}function zK(e={}){const{nodeId:t,externalTree:n}=e,r=VK(e),o=e.rootContext||r,s={reference:o.useState("referenceElement"),floating:o.useState("floatingElement"),domReference:o.useState("domReferenceElement")},[i,a]=c.useState(null),u=c.useRef(null),l=Wo(n);$e(()=>{s.domReference&&(u.current=s.domReference)},[s.domReference]);const d=XG({...e,elements:{...s,...i&&{reference:i}}}),f=c.useCallback($=>{const S=Qe($)?{getBoundingClientRect:()=>$.getBoundingClientRect(),getClientRects:()=>$.getClientRects(),contextElement:$}:$;a(S),d.refs.setReference(S)},[d.refs]),[p,m]=c.useState(null),[g,y]=c.useState(null);o.useSyncedValue("referenceElement",p),o.useSyncedValue("domReferenceElement",Qe(p)?p:null),o.useSyncedValue("floatingElement",g);const x=c.useCallback($=>{(Qe($)||$===null)&&(u.current=$,m($)),(Qe(d.refs.reference.current)||d.refs.reference.current===null||$!==null&&!Qe($))&&d.refs.setReference($)},[d.refs,m]),w=c.useCallback($=>{y($),d.refs.setFloating($)},[d.refs]),b=c.useMemo(()=>({...d.refs,setReference:x,setFloating:w,setPositionReference:f,domReference:u}),[d.refs,x,w,f]),v=c.useMemo(()=>({...d.elements,domReference:s.domReference}),[d.elements,s.domReference]),C=o.useState("open"),k=o.useState("floatingId"),E=c.useMemo(()=>({...d,dataRef:o.context.dataRef,open:C,onOpenChange:o.setOpen,events:o.context.events,floatingId:k,refs:b,elements:v,nodeId:t,rootStore:o}),[d,b,v,t,o,C,k]);return $e(()=>{o.context.dataRef.current.floatingContext=E;const $=l?.nodesRef.current.find(S=>S.id===t);$&&($.context=E)}),c.useMemo(()=>({...d,context:E,refs:b,elements:v,rootStore:o}),[d,b,v,E,o])}function FK(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:o}=e,s=Er(),i=Lr()!=null,a=t.useState("open"),u=t.useState("activeTriggerElement"),l=t.useState(r?"popupElement":"positionerElement"),d=t.context.triggerElements,f=fn(()=>new hm({open:a,referenceElement:u,floatingElement:l,triggerElements:d,onOpenChange:o,floatingId:s,nested:i,noEmit:n})).current;return $e(()=>{const p={open:a,floatingId:s,referenceElement:u,floatingElement:l};Qe(u)&&(p.domReferenceElement=u),f.update(p)},[a,s,u,l,f]),f.context.onOpenChange=o,f.context.nested=i,f.context.noEmit=n,f}const Jy=Zs("safe-polygon"),BK=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${Qk}`;function HK(e){return e?!!e.closest(BK):!1}function WK(e){const t=c.useRef(void 0),n=c.useRef(!1),r=c.useRef(void 0),o=c.useRef(!0),s=c.useRef(!1),i=c.useRef(()=>{}),a=c.useRef(!1),u=En(),l=En(),d=c.useRef(void 0);return c.useMemo(()=>{const f=e.context.dataRef.current;return f.hoverInteractionState||(f.hoverInteractionState={pointerTypeRef:t,interactedInsideRef:n,handlerRef:r,blockMouseMoveRef:o,performedPointerEventsMutationRef:s,unbindMouseMoveRef:i,restTimeoutPendingRef:a,openChangeTimeout:u,restTimeout:l,handleCloseOptionsRef:d}),f.hoverInteractionState},[e,t,n,r,o,s,i,a,u,l,d])}const ZK=new Set(["click","mousedown"]);function UK(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),s=n.useState("domReferenceElement"),{dataRef:i}=n.context,{enabled:a=!0,closeDelay:u=0,externalTree:l}=t,{pointerTypeRef:d,interactedInsideRef:f,handlerRef:p,performedPointerEventsMutationRef:m,unbindMouseMoveRef:g,restTimeoutPendingRef:y,openChangeTimeout:x,handleCloseOptionsRef:w}=WK(n),b=Wo(l),v=Lr(),C=Le(()=>f.current?!0:i.current.openEvent?ZK.has(i.current.openEvent.type):!1),k=Le(()=>{const R=i.current.openEvent?.type;return R?.includes("mouse")&&R!=="mousedown"}),E=c.useCallback((R,T=!0)=>{const A=GK(u,d.current);A&&!p.current?x.start(A,()=>n.setOpen(!1,mt(Zr,R))):T&&(x.clear(),n.setOpen(!1,mt(Zr,R)))},[u,p,n,d,x]),$=Le(()=>{g.current(),p.current=void 0}),S=Le(()=>{if(m.current){const R=yt(o).body;R.style.pointerEvents="",R.removeAttribute(Jy),m.current=!1}}),j=Le(R=>{const T=Wt(R);if(!HK(T)){f.current=!1;return}f.current=!0});$e(()=>{r||(d.current=void 0,y.current=!1,f.current=!1,$(),S())},[r,d,y,f,$,S]),c.useEffect(()=>()=>{$()},[$]),c.useEffect(()=>S,[S]),$e(()=>{if(a&&r&&w.current?.blockPointerEvents&&k()&&Qe(s)&&o){m.current=!0;const R=yt(o).body;R.setAttribute(Jy,"");const T=s,A=o,L=b?.nodesRef.current.find(V=>V.id===v)?.context?.elements.floating;return L&&(L.style.pointerEvents=""),R.style.pointerEvents="none",T.style.pointerEvents="auto",A.style.pointerEvents="auto",()=>{R.style.pointerEvents="",T.style.pointerEvents="",A.style.pointerEvents=""}}},[a,r,s,o,w,k,b,v,m]),c.useEffect(()=>{if(!a)return;function R(V){if(C()||!i.current.floatingContext)return;const I=n.context.triggerElements;V.relatedTarget&&I.hasElement(V.relatedTarget)||(S(),$(),C()||E(V))}function T(V){x.clear(),S(),p.current?.(V),$()}function A(V){C()||E(V,!1)}const L=o;return L&&(L.addEventListener("mouseleave",R),L.addEventListener("mouseenter",T),L.addEventListener("mouseleave",A),L.addEventListener("pointerdown",j,!0)),()=>{L&&(L.removeEventListener("mouseleave",R),L.removeEventListener("mouseenter",T),L.removeEventListener("mouseleave",A),L.removeEventListener("pointerdown",j,!0))}})}function GK(e,t){return t&&!EU(t)?0:typeof e=="function"?e():e}function KK(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),s=c.useCallback(l=>Pi(l,e,"reference"),t),i=c.useCallback(l=>Pi(l,e,"floating"),n),a=c.useCallback(l=>Pi(l,e,"item"),r),u=c.useCallback(l=>Pi(l,e,"trigger"),o);return c.useMemo(()=>({getReferenceProps:s,getFloatingProps:i,getItemProps:a,getTriggerProps:u}),[s,i,a,u])}function Pi(e,t,n){const r=new Map,o=n==="item",s={};n==="floating"&&(s.tabIndex=-1,s[zf]="");for(const i in e)o&&e&&(i===Xk||i===Jk)||(s[i]=e[i]);for(let i=0;i<t.length;i+=1){let a;const u=t[i]?.[n];typeof u=="function"?a=e?u(e):null:a=u,a&&Qy(s,a,o,r)}return Qy(s,e,o,r),s}function Qy(e,t,n,r){for(const o in t){const s=t[o];n&&(o===Xk||o===Jk)||(o.startsWith("on")?(r.has(o)||r.set(o,[]),typeof s=="function"&&(r.get(o)?.push(s),e[o]=(...i)=>r.get(o)?.map(a=>a(...i)).find(a=>a!==void 0))):e[o]=s)}}const YK="Escape";function vc(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Mi(e,t){return vc(t,e===lm||e===ri,e===mr||e===hr)}function Dd(e,t,n){return vc(t,e===ri,n?e===mr:e===hr)||e==="Enter"||e===" "||e===""}function qK(e,t,n){return vc(t,n?e===mr:e===hr,e===ri)}function XK(e,t,n,r){const o=n?e===hr:e===mr,s=e===lm;return t==="both"||t==="horizontal"&&r&&r>1?e===YK:vc(t,o,s)}function JK(e,t){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),s=n.useState("domReferenceElement"),i=n.context.dataRef,{listRef:a,activeIndex:u,onNavigate:l=()=>{},enabled:d=!0,selectedIndex:f=null,allowEscape:p=!1,loopFocus:m=!1,nested:g=!1,rtl:y=!1,virtual:x=!1,focusItemOnOpen:w="auto",focusItemOnHover:b=!0,openOnArrowKeyDown:v=!0,disabledIndices:C=void 0,orientation:k="vertical",parentOrientation:E,cols:$=1,scrollItemIntoView:S=!0,itemSizes:j,dense:R=!1,id:T,resetOnPointerLeave:A=!0,externalTree:L}=t,V=Oa(o),I=Ht(V),_=Lr(),N=Wo(L);$e(()=>{i.current.orientation=k},[i,k]);const O=Ff(s),z=c.useRef(w),M=c.useRef(f??-1),q=c.useRef(null),ee=c.useRef(!0),K=Le(J=>{l(M.current===-1?null:M.current,J)}),ue=c.useRef(K),se=c.useRef(!!o),re=c.useRef(r),oe=c.useRef(!1),ie=c.useRef(!1),ae=Ht(C),pe=Ht(r),P=Ht(S),Y=Ht(f),B=Ht(A),ve=Le(()=>{function J(Pe){x?N?.events.emit("virtualfocus",Pe):Xi(Pe,{sync:oe.current,preventScroll:!0})}const de=a.current[M.current],Z=ie.current;de&&J(de),(oe.current?Pe=>Pe():requestAnimationFrame)(()=>{const Pe=a.current[M.current]||de;if(!Pe)return;de||J(Pe);const Ee=P.current;Ee&&X&&(Z||!ee.current)&&Pe.scrollIntoView?.(typeof Ee=="boolean"?{block:"nearest",inline:"nearest"}:Ee)})});$e(()=>{d&&(r&&o?(M.current=f??-1,z.current&&f!=null&&(ie.current=!0,K())):se.current&&(M.current=-1,ue.current()))},[d,r,o,f,K]),$e(()=>{if(d){if(!r){oe.current=!1;return}if(o)if(u==null){if(oe.current=!1,Y.current!=null)return;if(se.current&&(M.current=-1,ve()),(!re.current||!se.current)&&z.current&&(q.current!=null||z.current===!0&&q.current==null)){let J=0;const de=()=>{a.current[0]==null?(J<2&&(J?requestAnimationFrame:queueMicrotask)(de),J+=1):(M.current=q.current==null||Dd(q.current,k,y)||g?jd(a):Py(a),q.current=null,K())};de()}}else Ss(a,u)||(M.current=u,ve(),ie.current=!1)}},[d,r,o,u,Y,g,a,k,y,K,ve,ae]),$e(()=>{if(!d||o||!N||x||!se.current)return;const J=N.nodesRef.current,de=J.find(Pe=>Pe.id===_)?.context?.elements.floating,Z=cr(yt(o)),ye=J.some(Pe=>Pe.context&&Je(Pe.context.elements.floating,Z));de&&!ye&&ee.current&&de.focus({preventScroll:!0})},[d,o,N,_,x]),$e(()=>{ue.current=K,re.current=r,se.current=!!o}),$e(()=>{r||(q.current=null,z.current=w)},[r,w]);const Q=u!=null,X=c.useMemo(()=>{function J(Z){if(!pe.current)return;const ye=a.current.indexOf(Z.currentTarget);ye!==-1&&M.current!==ye&&(M.current=ye,K(Z))}return{onFocus(Z){oe.current=!0,J(Z)},onClick:({currentTarget:Z})=>Z.focus({preventScroll:!0}),onMouseMove(Z){oe.current=!0,ie.current=!1,b&&J(Z)},onPointerLeave(Z){if(!pe.current||!ee.current||Z.pointerType==="touch")return;oe.current=!0;const ye=Z.relatedTarget;!b||a.current.includes(ye)||B.current&&(M.current=-1,K(Z),x||I.current?.focus({preventScroll:!0}))}}},[pe,I,b,a,K,B,x]),te=c.useCallback(()=>E??N?.nodesRef.current.find(J=>J.id===_)?.context?.dataRef?.current.orientation,[_,N,E]),ke=Le(J=>{if(ee.current=!1,oe.current=!0,J.which===229||!pe.current&&J.currentTarget===I.current)return;if(g&&XK(J.key,k,y,$)){Mi(J.key,te())||wt(J),n.setOpen(!1,mt(qi,J.nativeEvent)),dt(s)&&(x?N?.events.emit("virtualfocus",s):s.focus());return}const de=M.current,Z=jd(a,C),ye=Py(a,C);if(O||(J.key==="Home"&&(wt(J),M.current=Z,K(J)),J.key==="End"&&(wt(J),M.current=ye,K(J))),$>1){const Pe=j||Array.from({length:a.current.length},()=>({width:1,height:1})),Ee=DU(Pe,$,R),Fe=Ee.findIndex(ft=>ft!=null&&!$s(a,ft,C)),nt=Ee.reduce((ft,kt,Oe)=>kt!=null&&!$s(a,kt,C)?Oe:ft,-1),rt=Ee[NU({current:Ee.map(ft=>ft!=null?a.current[ft]:null)},{event:J,orientation:k,loopFocus:m,rtl:y,cols:$,disabledIndices:zU([...(typeof C!="function"?C:null)||a.current.map((ft,kt)=>$s(a,kt,C)?kt:void 0),void 0],Ee),minIndex:Fe,maxIndex:nt,prevIndex:VU(M.current>ye?Z:M.current,Pe,Ee,$,J.key===ri?"bl":J.key===(y?mr:hr)?"tr":"tl"),stopEvent:!0})];if(rt!=null&&(M.current=rt,K(J)),k==="both")return}if(Mi(J.key,k)){if(wt(J),r&&!x&&cr(J.currentTarget.ownerDocument)===J.currentTarget){M.current=Dd(J.key,k,y)?Z:ye,K(J);return}Dd(J.key,k,y)?m?de>=ye?p&&de!==a.current.length?M.current=-1:(oe.current=!1,M.current=Z):M.current=St(a,{startingIndex:de,disabledIndices:C}):M.current=Math.min(ye,St(a,{startingIndex:de,disabledIndices:C})):m?de<=Z?p&&de!==-1?M.current=a.current.length:(oe.current=!1,M.current=ye):M.current=St(a,{startingIndex:de,decrement:!0,disabledIndices:C}):M.current=Math.max(Z,St(a,{startingIndex:de,decrement:!0,disabledIndices:C})),Ss(a,M.current)&&(M.current=-1),K(J)}}),Ce=c.useMemo(()=>x&&r&&Q&&{"aria-activedescendant":`${T}-${u}`},[x,r,Q,T,u]),U=c.useMemo(()=>({"aria-orientation":k==="both"?void 0:k,...O?{}:Ce,onKeyDown(J){if(J.key==="Tab"&&J.shiftKey&&r&&!x){const de=Wt(J.nativeEvent);if(de&&!Je(I.current,de))return;wt(J),n.setOpen(!1,mt(uc,J.nativeEvent)),dt(s)&&s.focus();return}ke(J)},onPointerMove(){ee.current=!0}}),[Ce,ke,I,k,O,n,r,x,s]),W=c.useMemo(()=>{function J(Z){w==="auto"&&e5(Z.nativeEvent)&&(z.current=!x)}function de(Z){z.current=w,w==="auto"&&t5(Z.nativeEvent)&&(z.current=!0)}return{onKeyDown(Z){const ye=n.select("open");ee.current=!1;const Pe=Z.key.startsWith("Arrow"),Ee=qK(Z.key,te(),y),Fe=Mi(Z.key,k),nt=(g?Ee:Fe)||Z.key==="Enter"||Z.key.trim()==="";if(x&&ye)return ke(Z);if(!(!ye&&!v&&Pe)){if(nt){const rt=Mi(Z.key,te());q.current=g&&rt?null:Z.key}if(g){Ee&&(wt(Z),ye?(M.current=jd(a,ae.current),K(Z)):n.setOpen(!0,mt(qi,Z.nativeEvent,Z.currentTarget)));return}Fe&&(Y.current!=null&&(M.current=Y.current),wt(Z),!ye&&v?n.setOpen(!0,mt(qi,Z.nativeEvent,Z.currentTarget)):ke(Z),ye&&K(Z))}},onFocus(Z){n.select("open")&&!x&&(M.current=-1,K(Z))},onPointerDown:de,onPointerEnter:de,onMouseDown:J,onClick:J}},[ke,ae,w,a,g,K,n,v,k,te,y,Y,x]),le=c.useMemo(()=>({...Ce,...W}),[Ce,W]);return c.useMemo(()=>d?{reference:le,floating:U,item:X,trigger:W}:{},[d,le,U,W,X])}const QK=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function eY(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingId"),s=n.useState("domReferenceElement"),i=n.useState("floatingElement"),{enabled:a=!0,role:u="dialog"}=t,l=Er(),d=s?.id||l,f=c.useMemo(()=>Oa(i)?.id||o,[i,o]),p=QK.get(u)??u,g=Lr()!=null,y=c.useMemo(()=>p==="tooltip"||u==="label"?Zt:{"aria-haspopup":p==="alertdialog"?"dialog":p,"aria-expanded":"false",...p==="listbox"&&{role:"combobox"},...p==="menu"&&g&&{role:"menuitem"},...u==="select"&&{"aria-autocomplete":"none"},...u==="combobox"&&{"aria-autocomplete":"list"}},[p,g,u]),x=c.useMemo(()=>p==="tooltip"||u==="label"?{[`aria-${u==="label"?"labelledby":"describedby"}`]:r?f:void 0}:{...y,"aria-expanded":r?"true":"false","aria-controls":r?f:void 0,...p==="menu"&&{id:d}},[p,f,r,d,u,y]),w=c.useMemo(()=>{const v={id:f,...p&&{role:p}};return p==="tooltip"||u==="label"?v:{...v,...p==="menu"&&{"aria-labelledby":d}}},[p,f,d,u]),b=c.useCallback(({active:v,selected:C})=>{const k={role:"option",...v&&{id:`${f}-fui-option`}};switch(u){case"select":case"combobox":return{...k,"aria-selected":C}}return{}},[f,u]);return c.useMemo(()=>a?{reference:x,floating:w,item:b,trigger:y}:{},[a,x,w,y,b])}function tY(e,t){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.context.dataRef,{listRef:s,activeIndex:i,onMatch:a,onTypingChange:u,enabled:l=!0,findMatch:d=null,resetMs:f=750,ignoreKeys:p=Nk,selectedIndex:m=null}=t,g=En(),y=c.useRef(""),x=c.useRef(m??i??-1),w=c.useRef(null);$e(()=>{r&&(g.clear(),w.current=null,y.current="")},[r,g]),$e(()=>{r&&y.current===""&&(x.current=m??i??-1)},[r,m,i]);const b=Le(E=>{E?o.current.typing||(o.current.typing=E,u?.(E)):o.current.typing&&(o.current.typing=E,u?.(E))}),v=Le(E=>{function $(A,L,V){const I=d?d(L,V):L.find(_=>_?.toLocaleLowerCase().indexOf(V.toLocaleLowerCase())===0);return I?A.indexOf(I):-1}const S=s.current;if(y.current.length>0&&y.current[0]!==" "&&($(S,S,y.current)===-1?b(!1):E.key===" "&&wt(E)),S==null||p.includes(E.key)||E.key.length!==1||E.ctrlKey||E.metaKey||E.altKey)return;r&&E.key!==" "&&(wt(E),b(!0)),S.every(A=>A?A[0]?.toLocaleLowerCase()!==A[1]?.toLocaleLowerCase():!0)&&y.current===E.key&&(y.current="",x.current=w.current),y.current+=E.key,g.start(f,()=>{y.current="",x.current=w.current,b(!1)});const R=x.current,T=$(S,[...S.slice((R||0)+1),...S.slice(0,(R||0)+1)],y.current);T!==-1?(a?.(T),w.current=T):E.key!==" "&&(y.current="",b(!1))}),C=c.useMemo(()=>({onKeyDown:v}),[v]),k=c.useMemo(()=>({onKeyDown:v,onKeyUp(E){E.key===" "&&b(!1)}}),[v,b]);return c.useMemo(()=>l?{reference:C,floating:k}:{},[l,C,k])}const nY=c.createContext(void 0);function rY(e){return c.useContext(nY)}const T5="ArrowUp",I5="ArrowDown",A5="ArrowLeft",_5="ArrowRight",N5="Home",D5="End",oY=new Set([A5,_5]),sY=new Set([T5,I5]),iY=new Set([...oY,...sY]);[...iY];const aY=new Set([T5,I5,A5,_5,N5,D5]);function cY(e){return e==="starting"?bZ:Zt}const lY={...Dk,...OZ},uY=c.forwardRef(function(t,n){const{render:r,className:o,finalFocus:s,...i}=t,{store:a}=Bo(),{side:u,align:l}=Pk(),d=rY()!=null,f=a.useState("open"),p=a.useState("transitionStatus"),m=a.useState("popupProps"),g=a.useState("mounted"),y=a.useState("instantType"),x=a.useState("activeTriggerElement"),w=a.useState("parent"),b=a.useState("lastOpenChangeReason"),v=a.useState("rootId"),C=a.useState("floatingRootContext"),k=a.useState("floatingTreeRoot"),E=a.useState("closeDelay"),$=a.useState("activeTriggerElement");Uk({open:f,ref:a.context.popupRef,onComplete(){f&&a.context.onOpenChangeComplete?.(!0)}}),c.useEffect(()=>{function L(V){a.setOpen(!1,mt(V.reason,V.domEvent))}return k.events.on("close",L),()=>{k.events.off("close",L)}},[k.events,a]);const S=a.useState("hoverEnabled"),j=a.useState("disabled");UK(C,{enabled:S&&!j&&w.type!=="context-menu"&&w.type!=="menubar",closeDelay:E});const R=c.useMemo(()=>({transitionStatus:p,side:u,align:l,open:f,nested:w.type==="menu",instant:y}),[p,u,l,f,w.type,y]),T=Sr("div",t,{state:R,ref:[n,a.context.popupRef],stateAttributesMapping:lY,props:[m,{onKeyDown(L){d&&aY.has(L.key)&&L.stopPropagation()}},cY(p),i,{"data-rootownerid":v}]});let A=w.type===void 0||w.type==="context-menu";return(x||w.type==="menubar"&&b!==sm)&&(A=!0),h.jsx(gG,{context:C,modal:!1,disabled:!g,returnFocus:s===void 0?A:s,initialFocus:w.type!=="menu",restoreFocus:!0,externalTree:w.type!=="menubar"?k:void 0,previousFocusableElement:$,nextFocusableElement:w.type===void 0?a.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:w.type===void 0?a.context.beforeContentFocusGuardRef:void 0,children:T})}),V5=c.createContext(void 0);function dY(){const e=c.useContext(V5);if(e===void 0)throw new Error(eo(32));return e}const fY=c.forwardRef(function(t,n){const{keepMounted:r=!1,...o}=t,{store:s}=Bo();return s.useState("mounted")||r?h.jsx(V5.Provider,{value:r,children:h.jsx(dG,{ref:n,...o})}):null});function pY(e){return rm(19)?e:e?"true":void 0}const mY=c.createContext(void 0);function z5(){return c.useContext(mY)?.direction??"ltr"}const hY=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:u}=t,{element:l,padding:d=0,offsetParent:f="real"}=Kn(e,t)||{};if(l==null)return{};const p=n5(d),m={x:n,y:r},g=fm(o),y=dm(g),x=await i.getDimensions(l),w=g==="y",b=w?"top":"left",v=w?"bottom":"right",C=w?"clientHeight":"clientWidth",k=s.reference[y]+s.reference[g]-m[g]-s.floating[y],E=m[g]-s.reference[g],$=f==="real"?await i.getOffsetParent?.(l):a.floating;let S=a.floating[C]||s.floating[y];(!S||!await i.isElement?.($))&&(S=a.floating[C]||s.floating[y]);const j=k/2-E/2,R=S/2-x[y]/2-1,T=Math.min(p[b],R),A=Math.min(p[v],R),L=T,V=S-x[y]-A,I=S/2-x[y]/2+j,_=Bf(L,I,V),N=!u.arrow&&Or(o)!=null&&I!==_&&s.reference[y]/2-(I<L?T:A)-x[y]/2<0,O=N?I<L?I-L:I-V:0;return{[g]:m[g]+O,data:{[g]:_,centerOffset:I-_-O,...N&&{alignmentOffset:O}},reset:N}}}),gY=(e,t)=>({...hY(e),options:[e,t]}),vY={name:"hide",async fn(e){const{width:t,height:n,x:r,y:o}=e.rects.reference,s=t===0&&n===0&&r===0&&o===0;return{data:{referenceHidden:(await rK().fn(e)).data?.referenceHidden||s}}}},bY={sideX:"left",sideY:"top"};function F5(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 e2(e,t,n){const{rects:r,placement:o}=e;return{side:F5(t,tn(o),n),align:Or(o)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function yY(e){const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,collisionBoundary:a,collisionPadding:u=5,sticky:l=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,keepMounted:p=!1,floatingRootContext:m,mounted:g,collisionAvoidance:y,shiftCrossAxis:x=!1,nodeId:w,adaptiveOrigin:b,lazyFlip:v=!1,externalTree:C}=e,[k,E]=c.useState(null);!g&&k!==null&&E(null);const $=y.side||"flip",S=y.align||"flip",j=y.fallbackAxisSide||"end",R=typeof t=="function"?t:void 0,T=Le(R),A=R?T:t,L=Ht(t),I=z5()==="rtl",_=k||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":I?"left":"right","inline-start":I?"right":"left"}[r],N=s==="center"?_:`${_}-${s}`;let O=u;const z=1,M=r==="bottom"?z:0,q=r==="top"?z:0,ee=r==="right"?z:0,K=r==="left"?z:0;typeof O=="number"?O={top:O+M,right:O+K,bottom:O+q,left:O+ee}:O&&(O={top:(O.top||0)+M,right:(O.right||0)+K,bottom:(O.bottom||0)+q,left:(O.left||0)+ee});const ue={boundary:a==="clipping-ancestors"?"clippingAncestors":a,padding:O},se=c.useRef(null),re=Ht(o),oe=Ht(i),pe=[JG(we=>{const Re=e2(we,r,I),Ge=typeof re.current=="function"?re.current(Re):re.current,Be=typeof oe.current=="function"?oe.current(Re):oe.current;return{mainAxis:Ge,crossAxis:Be,alignmentAxis:Be}},[typeof o!="function"?o:0,typeof i!="function"?i:0,I,r])],P=S==="none"&&$!=="shift",Y=!P&&(l||x||$==="shift"),B=$==="none"?null:tK({...ue,padding:{top:O.top+z,right:O.right+z,bottom:O.bottom+z,left:O.left+z},mainAxis:!x&&$==="flip",crossAxis:S==="flip"?"alignment":!1,fallbackAxisSideDirection:j}),ve=P?null:QG(we=>{const Re=Yr(we.elements.floating).documentElement;return{...ue,rootBoundary:x?{x:0,y:0,width:Re.clientWidth,height:Re.clientHeight}:void 0,mainAxis:S!=="none",crossAxis:Y,limiter:l||x?void 0:eK(Ge=>{if(!se.current)return{};const{width:Be,height:ht}=se.current.getBoundingClientRect(),We=cn(tn(Ge.placement)),Ft=We==="y"?Be:ht,Bn=We==="y"?O.left+O.right:O.top+O.bottom;return{offset:Ft/2+Bn/2}})}},[ue,l,x,O,S]);$==="shift"||S==="shift"||s==="center"?pe.push(ve,B):pe.push(B,ve),pe.push(nK({...ue,apply({elements:{floating:we},rects:{reference:Re},availableWidth:Ge,availableHeight:Be}){Object.entries({"--available-width":`${Ge}px`,"--available-height":`${Be}px`,"--anchor-width":`${Re.width}px`,"--anchor-height":`${Re.height}px`}).forEach(([ht,We])=>{we.style.setProperty(ht,We)})}}),gY(()=>({element:se.current||document.createElement("div"),padding:d,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(we){const{elements:Re,middlewareData:Ge,placement:Be,rects:ht,y:We}=we,Ft=tn(Be),Bn=cn(Ft),Mr=se.current,Xo=Ge.arrow?.x||0,Jo=Ge.arrow?.y||0,Qo=Mr?.clientWidth||0,Qn=Mr?.clientHeight||0,Bt=Xo+Qo/2,Tr=Jo+Qn/2,es=Math.abs(Ge.shift?.y||0),ts=ht.reference.height/2,Kt=typeof o=="function"?o(e2(we,r,I)):o,ro=es>Kt,Ir={top:`${Bt}px calc(100% + ${Kt}px)`,bottom:`${Bt}px ${-Kt}px`,left:`calc(100% + ${Kt}px) ${Tr}px`,right:`${-Kt}px ${Tr}px`}[Ft],oo=`${Bt}px ${ht.reference.y+ts-We}px`;return Re.floating.style.setProperty("--transform-origin",Y&&Bn==="y"&&ro?oo:Ir),{}}},vY,b),$e(()=>{!g&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[g,m]);const Q=c.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:X,elements:te,x:ke,y:Ce,middlewareData:U,update:W,placement:le,context:J,isPositioned:de,floatingStyles:Z}=zK({rootContext:m,placement:N,middleware:pe,strategy:n,whileElementsMounted:p?void 0:(...we)=>Wy(...we,Q),nodeId:w,externalTree:C}),{sideX:ye,sideY:Pe}=U.adaptiveOrigin||bY,Ee=de?n:"fixed",Fe=c.useMemo(()=>b?{position:Ee,[ye]:ke,[Pe]:Ce}:{position:Ee,...Z},[b,Ee,ye,ke,Pe,Ce,Z]),nt=c.useRef(null);$e(()=>{if(!g)return;const we=L.current,Re=typeof we=="function"?we():we,Be=(t2(Re)?Re.current:Re)||null||null;Be!==nt.current&&(X.setPositionReference(Be),nt.current=Be)},[g,X,A,L]),c.useEffect(()=>{if(!g)return;const we=L.current;typeof we!="function"&&t2(we)&&we.current!==nt.current&&(X.setPositionReference(we.current),nt.current=we.current)},[g,X,A,L]),c.useEffect(()=>{if(p&&g&&te.domReference&&te.floating)return Wy(te.domReference,te.floating,W,Q)},[p,g,te,W,Q]);const rt=tn(le),ft=F5(r,rt,I),kt=Or(le)||"center",Oe=!!U.hide?.referenceHidden;$e(()=>{v&&g&&de&&E(rt)},[v,g,de,rt]);const Ne=c.useMemo(()=>({position:"absolute",top:U.arrow?.y,left:U.arrow?.x}),[U.arrow]),ot=U.arrow?.centerOffset!==0;return c.useMemo(()=>({positionerStyles:Fe,arrowStyles:Ne,arrowRef:se,arrowUncentered:ot,side:ft,align:kt,physicalSide:rt,anchorHidden:Oe,refs:X,context:J,isPositioned:de,update:W}),[Fe,Ne,se,ot,ft,kt,rt,Oe,X,J,de,W])}function t2(e){return e!=null&&"current"in e}function wY(e){const{children:t,elementsRef:n,labelsRef:r,onMapChange:o}=e,s=Le(o),i=c.useRef(0),a=fn(CY).current,u=fn(xY).current,[l,d]=c.useState(0),f=c.useRef(l),p=Le((w,b)=>{u.set(w,b??null),f.current+=1,d(f.current)}),m=Le(w=>{u.delete(w),f.current+=1,d(f.current)}),g=c.useMemo(()=>{const w=new Map;return Array.from(u.keys()).filter(v=>v.isConnected).sort(kY).forEach((v,C)=>{const k=u.get(v)??{};w.set(v,{...k,index:C})}),w},[u,l]);$e(()=>{if(typeof MutationObserver!="function"||g.size===0)return;const w=new MutationObserver(b=>{const v=new Set,C=k=>v.has(k)?v.delete(k):v.add(k);b.forEach(k=>{k.removedNodes.forEach(C),k.addedNodes.forEach(C)}),v.size===0&&(f.current+=1,d(f.current))});return g.forEach((b,v)=>{v.parentElement&&w.observe(v.parentElement,{childList:!0})}),()=>{w.disconnect()}},[g]),$e(()=>{f.current===l&&(n.current.length!==g.size&&(n.current.length=g.size),r&&r.current.length!==g.size&&(r.current.length=g.size),i.current=g.size),s(g)},[s,g,n,r,l]),$e(()=>()=>{n.current=[]},[n]),$e(()=>()=>{r&&(r.current=[])},[r]);const y=Le(w=>(a.add(w),()=>{a.delete(w)}));$e(()=>{a.forEach(w=>w(g))},[a,g]);const x=c.useMemo(()=>({register:p,unregister:m,subscribeMapChange:y,elementsRef:n,labelsRef:r,nextIndexRef:i}),[p,m,y,n,r,i]);return h.jsx(Bk.Provider,{value:x,children:t})}function xY(){return new Map}function CY(){return new Set}function kY(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 EY=c.forwardRef(function(t,n){const{cutout:r,...o}=t;let s;if(r){const i=r?.getBoundingClientRect();s=`polygon(
60
- 0% 0%,
61
- 100% 0%,
62
- 100% 100%,
63
- 0% 100%,
64
- 0% 0%,
65
- ${i.left}px ${i.top}px,
66
- ${i.left}px ${i.bottom}px,
67
- ${i.right}px ${i.bottom}px,
68
- ${i.right}px ${i.top}px,
69
- ${i.left}px ${i.top}px
70
- )`}return h.jsx("div",{ref:n,role:"presentation","data-base-ui-inert":"",...o,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:s}})}),SY=c.forwardRef(function(t,n){const{anchor:r,positionMethod:o="absolute",className:s,render:i,side:a,align:u,sideOffset:l=0,alignOffset:d=0,collisionBoundary:f="clipping-ancestors",collisionPadding:p=5,arrowPadding:m=5,sticky:g=!1,disableAnchorTracking:y=!1,collisionAvoidance:x=wZ,...w}=t,{store:b}=Bo(),v=dY(),C=cc(!0),k=b.useState("parent"),E=b.useState("floatingRootContext"),$=b.useState("floatingTreeRoot"),S=b.useState("mounted"),j=b.useState("open"),R=b.useState("modal"),T=b.useState("activeTriggerElement"),A=b.useState("lastOpenChangeReason"),L=b.useState("floatingNodeId"),V=b.useState("floatingParentNodeId");let I=r,_=l,N=d,O=u;k.type==="context-menu"&&(I=r??k.context?.anchor,O=O??"start",!a&&O!=="center"&&(N=t.alignOffset??2,_=t.sideOffset??-5));let z=a,M=O;k.type==="menu"?(z=z??"inline-end",M=M??"start"):k.type==="menubar"&&(z=z??"bottom",M=M??"start");const q=k.type==="context-menu",ee=yY({anchor:I,floatingRootContext:E,positionMethod:C?"fixed":o,mounted:S,side:z,sideOffset:_,align:M,alignOffset:N,arrowPadding:q?0:m,collisionBoundary:f,collisionPadding:p,sticky:g,nodeId:L,keepMounted:v,disableAnchorTracking:y,collisionAvoidance:x,shiftCrossAxis:q,externalTree:$}),K=c.useMemo(()=>{const ae={};return j||(ae.pointerEvents="none"),{role:"presentation",hidden:!S,style:{...ee.positionerStyles,...ae}}},[j,S,ee.positionerStyles]);c.useEffect(()=>{function ae(pe){pe.open?(pe.parentNodeId===L&&b.set("hoverEnabled",!1),pe.nodeId!==L&&pe.parentNodeId===b.select("floatingParentNodeId")&&b.setOpen(!1,mt(bs))):pe.parentNodeId===L&&pe.reason!==bs&&b.set("hoverEnabled",!0)}return $.events.on("menuopenchange",ae),()=>{$.events.off("menuopenchange",ae)}},[b,$.events,L]),c.useEffect(()=>{if(b.select("floatingParentNodeId")==null)return;function ae(pe){if(pe.open||pe.nodeId!==b.select("floatingParentNodeId"))return;const P=pe.reason??bs;b.setOpen(!1,mt(P))}return $.events.on("menuopenchange",ae),()=>{$.events.off("menuopenchange",ae)}},[$.events,b]),c.useEffect(()=>{function ae(pe){!j||pe.nodeId!==b.select("floatingParentNodeId")||pe.target&&T&&T!==pe.target&&b.setOpen(!1,mt(bs))}return $.events.on("itemhover",ae),()=>{$.events.off("itemhover",ae)}},[$.events,j,T,b]),c.useEffect(()=>{const ae={open:j,nodeId:L,parentNodeId:V,reason:b.select("lastOpenChangeReason")};$.events.emit("menuopenchange",ae)},[$.events,j,b,L,V]);const ue=c.useMemo(()=>({open:j,side:ee.side,align:ee.align,anchorHidden:ee.anchorHidden,nested:k.type==="menu"}),[j,ee.side,ee.align,ee.anchorHidden,k.type]),se=c.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]),re=Sr("div",t,{state:ue,stateAttributesMapping:Dk,ref:[n,b.useStateSetter("positionerElement")],props:[K,w]}),oe=S&&k.type!=="menu"&&(k.type!=="menubar"&&R&&A!==Zr||k.type==="menubar"&&k.context.modal);let ie=null;return k.type==="menubar"?ie=k.context.contentElement:k.type===void 0&&(ie=T),h.jsxs(Rk.Provider,{value:se,children:[oe&&h.jsx(EY,{ref:k.type==="context-menu"||k.type==="nested-context-menu"?k.context.internalBackdropRef:null,inert:pY(!j),cutout:ie}),h.jsx(oG,{id:L,children:h.jsx(wY,{elementsRef:b.context.itemDomElements,labelsRef:b.context.itemLabels,children:re})})]})});let n2={},r2={},o2="";function $Y(e){if(typeof document>"u")return!1;const t=Yr(e);return Ct(t).innerWidth-t.documentElement.clientWidth>0}function OY(e){const t=Yr(e),n=t.documentElement,r=t.body,o=to(n)?n:r,s=o.style.overflow;return o.style.overflow="hidden",()=>{o.style.overflow=s}}function LY(e){const t=Yr(e),n=t.documentElement,r=t.body,o=Ct(n);let s=0,i=0;const a=ar.create(),u=typeof CSS<"u"&&CSS.supports?.("scrollbar-gutter","stable");if(mU&&(o.visualViewport?.scale??1)!==1)return()=>{};function l(){const p=o.getComputedStyle(n),m=o.getComputedStyle(r),x=(p.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";s=n.scrollTop,i=n.scrollLeft,n2={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},o2=n.style.scrollBehavior,r2={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 w=n.scrollHeight>n.clientHeight,b=n.scrollWidth>n.clientWidth,v=p.overflowY==="scroll"||m.overflowY==="scroll",C=p.overflowX==="scroll"||m.overflowX==="scroll",k=Math.max(0,o.innerWidth-n.clientWidth),E=Math.max(0,o.innerHeight-n.clientHeight),$=parseFloat(m.marginTop)+parseFloat(m.marginBottom),S=parseFloat(m.marginLeft)+parseFloat(m.marginRight),j=to(n)?n:r;if(u){n.style.scrollbarGutter=x,j.style.overflowY="hidden",j.style.overflowX="hidden";return}Object.assign(n.style,{scrollbarGutter:x,overflowY:"hidden",overflowX:"hidden"}),(w||v)&&(n.style.overflowY="scroll"),(b||C)&&(n.style.overflowX="scroll"),Object.assign(r.style,{position:"relative",height:$||E?`calc(100dvh - ${$+E}px)`:"100dvh",width:S||k?`calc(100vw - ${S+k}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=s,r.scrollLeft=i,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function d(){Object.assign(n.style,n2),Object.assign(r.style,r2),u||(n.scrollTop=s,n.scrollLeft=i,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=o2)}function f(){d(),a.request(l)}return l(),o.addEventListener("resize",f),()=>{a.cancel(),d(),typeof o.removeEventListener=="function"&&o.removeEventListener("resize",f)}}class jY{lockCount=0;restore=null;timeoutLock=$a.create();timeoutUnlock=$a.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=Yr(t).documentElement,o=Ct(r).getComputedStyle(r).overflowY;if(o==="hidden"||o==="clip"){this.restore=_k;return}const s=hU||!$Y(t);this.restore=s?OY(t):LY(t)}}const RY=new jY;function PY(e=!0,t=null){$e(()=>{if(e)return RY.acquire(t)},[e,t])}const MY=c.createContext(null);function TY(e){return c.useContext(MY)}function IY(e){const t=c.useRef(""),n=c.useCallback(o=>{o.defaultPrevented||(t.current=o.pointerType,e(o,o.pointerType))},[e]);return{onClick:c.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 AY(e){const[t,n]=c.useState(null),r=Le((a,u)=>{e||n(u)}),o=c.useCallback(()=>{n(null)},[]),{onClick:s,onPointerDown:i}=IY(r);return c.useMemo(()=>({openMethod:t,reset:o,triggerProps:{onClick:s,onPointerDown:i}}),[t,o,s,i])}const _Y={...DK,disabled:Te(e=>e.parent.type==="menubar"&&e.parent.context.disabled||e.disabled),modal:Te(e=>(e.parent.type===void 0||e.parent.type==="context-menu")&&(e.modal??!0)),allowMouseEnter:Te(e=>e.parent.type==="menu"?e.parent.store.select("allowMouseEnter"):e.allowMouseEnter),stickIfOpen:Te(e=>e.stickIfOpen),parent:Te(e=>e.parent),rootId:Te(e=>e.parent.type==="menu"?e.parent.store.select("rootId"):e.parent.type!==void 0?e.parent.context.rootId:e.rootId),activeIndex:Te(e=>e.activeIndex),isActive:Te((e,t)=>e.activeIndex===t),hoverEnabled:Te(e=>e.hoverEnabled),instantType:Te(e=>e.instantType),lastOpenChangeReason:Te(e=>e.openChangeReason),floatingTreeRoot:Te(e=>e.parent.type==="menu"?e.parent.store.select("floatingTreeRoot"):e.floatingTreeRoot),floatingNodeId:Te(e=>e.floatingNodeId),floatingParentNodeId:Te(e=>e.floatingParentNodeId),itemProps:Te(e=>e.itemProps),closeDelay:Te(e=>e.closeDelay),keyboardEventRelay:Te(e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type==="menu")return e.parent.store.select("keyboardEventRelay")})};class vm extends M5{constructor(t){super({...NY(),...t},{positionerRef:c.createRef(),popupRef:c.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:c.createRef(),beforeContentFocusGuardRef:c.createRef(),onOpenChangeComplete:void 0,triggerElements:new gm},_Y),this.observe(Te(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 fn(()=>t??new vm(n)).current}unsubscribeParentListener=null}function NY(){return{...NK(),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 m5,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:Zt,keyboardEventRelay:void 0,closeDelay:0}}const DY=c.createContext(void 0);function VY(){return c.useContext(DY)}function zY(e){const{children:t,open:n,onOpenChange:r,onOpenChangeComplete:o,defaultOpen:s=!1,disabled:i=!1,modal:a,loopFocus:u=!0,orientation:l="vertical",actionsRef:d,closeParentOnEsc:f=!0,handle:p,triggerId:m,defaultTriggerId:g=null,highlightItemOnHover:y=!0}=e,x=cc(!0),w=Bo(!0),b=TY(),v=VY(),C=c.useMemo(()=>v&&w?{type:"menu",store:w.store}:b?{type:"menubar",context:b}:x&&!w?{type:"context-menu",context:x}:{type:void 0},[x,w,b,v]),k=vm.useStore(p?.store,{parent:C}),E=k.useState("floatingTreeRoot"),$=rG(E),S=Lr();$e(()=>{x&&!w?k.update({parent:{type:"context-menu",context:x},floatingNodeId:$,floatingParentNodeId:S}):w&&k.update({floatingNodeId:$,floatingParentNodeId:S})},[x,w,$,S,k]),k.useControlledProp("open",n,s),k.useControlledProp("activeTriggerId",m,g),k.useContextCallback("onOpenChangeComplete",o);const j=k.useState("open"),R=k.useState("activeTriggerElement"),T=k.useState("positionerElement"),A=k.useState("hoverEnabled"),L=k.useState("modal"),V=k.useState("disabled"),I=k.useState("lastOpenChangeReason"),_=k.useState("parent"),N=k.useState("activeIndex"),O=k.useState("payload"),z=k.useState("floatingParentNodeId"),M=c.useRef(null),q=z!=null;let ee;k.useSyncedValues({disabled:i,modal:_.type===void 0?a:void 0,rootId:Er()});const{openMethod:K,triggerProps:ue,reset:se}=AY(j);IK(k);const{forceUnmount:re}=AK(j,k,()=>{k.update({allowMouseEnter:!1,stickIfOpen:!0}),se()}),oe=c.useRef(_.type!=="context-menu"),ie=En();c.useEffect(()=>{if(j||(M.current=null),_.type==="context-menu"){if(!j){ie.clear(),oe.current=!1;return}ie.start(500,()=>{oe.current=!0})}},[ie,j,_.type]),PY(j&&L&&I!==Zr&&K!=="touch",T),$e(()=>{!j&&!A&&k.set("hoverEnabled",!0)},[j,A,k]);const ae=c.useRef(!0),pe=En(),P=Le((Oe,Ne)=>{const ot=Ne.reason;if(j===Oe&&Ne.trigger===R||(Ne.preventUnmountOnClose=()=>{k.set("preventUnmountingOnClose",!0)},!Oe&&Ne.trigger==null&&(Ne.trigger=R??void 0),r?.(Oe,Ne),Ne.isCanceled))return;const we={open:Oe,nativeEvent:Ne.event,reason:Ne.reason,nested:q};ee?.emit("openchange",we);const Re=Ne.event;if(Oe===!1&&Re?.type==="click"&&Re.pointerType==="touch"&&!ae.current)return;if(!Oe&&N!==null){const We=k.context.itemDomElements.current[N];queueMicrotask(()=>{We?.setAttribute("tabindex","-1")})}Oe&&ot===Oy?(ae.current=!1,pe.start(300,()=>{ae.current=!0})):(ae.current=!0,pe.clear());const Ge=(ot===Sa||ot===Vk)&&Re.detail===0&&Re?.isTrusted,Be=!Oe&&(ot===zk||ot==null);function ht(){const We={open:Oe,openChangeReason:ot};M.current=Ne.event??null;const Ft=Ne.trigger?.id??null;(Ft||Oe)&&(We.activeTriggerId=Ft,We.activeTriggerElement=Ne.trigger??null),k.update(We)}ot===Zr?jt.flushSync(ht):ht(),_.type==="menubar"&&(ot===Oy||ot===uc||ot===Zr||ot===qi||ot===bs)?k.set("instantType","group"):Ge||Be?k.set("instantType",Ge?"click":"dismiss"):k.set("instantType",void 0)}),Y=c.useCallback(Oe=>{const Ne=mt(Oe);return Ne.preventUnmountOnClose=()=>{k.set("preventUnmountingOnClose",!0)},Ne},[k]),B=c.useCallback(()=>{k.setOpen(!1,Y(AZ))},[k,Y]);c.useImperativeHandle(d,()=>({unmount:re,close:B}),[re,B]);let ve;_.type==="context-menu"&&(ve=_.context),c.useImperativeHandle(ve?.positionerRef,()=>T,[T]),c.useImperativeHandle(ve?.actionsRef,()=>({setOpen:P}),[P]);const Q=FK({popupStore:k,onOpenChange:P});ee=Q.context.events,c.useEffect(()=>{const Oe=({open:Ne,eventDetails:ot})=>P(Ne,ot);return ee.on("setOpen",Oe),()=>{ee?.off("setOpen",Oe)}},[ee,P]);const X=iK(Q,{enabled:!V,bubbles:f&&_.type==="menu",outsidePress(){return _.type!=="context-menu"||M.current?.type==="contextmenu"?!0:oe.current},externalTree:q?E:void 0}),te=eY(Q,{role:"menu"}),ke=z5(),Ce=c.useCallback(Oe=>{k.select("activeIndex")!==Oe&&k.set("activeIndex",Oe)},[k]),U=JK(Q,{enabled:!V,listRef:k.context.itemDomElements,activeIndex:N,nested:_.type!==void 0,loopFocus:u,orientation:l,parentOrientation:_.type==="menubar"?_.context.orientation:void 0,rtl:ke==="rtl",disabledIndices:Nk,onNavigate:Ce,openOnArrowKeyDown:_.type!=="context-menu",externalTree:q?E:void 0,focusItemOnHover:y}),W=c.useCallback(Oe=>{k.context.typingRef.current=Oe},[k]),le=tY(Q,{listRef:k.context.itemLabels,activeIndex:N,resetMs:vZ,onMatch:Oe=>{j&&Oe!==N&&k.set("activeIndex",Oe)},onTypingChange:W}),{getReferenceProps:J,getFloatingProps:de,getItemProps:Z,getTriggerProps:ye}=KK([X,te,U,le]),Pe=c.useMemo(()=>{const Oe=lc(J(),{onMouseEnter(){k.set("hoverEnabled",!0)},onMouseMove(){k.set("allowMouseEnter",!0)}},ue);return delete Oe.role,Oe},[J,k,ue]),Ee=c.useMemo(()=>{const Oe=ye();if(!Oe)return Oe;const{role:Ne,["aria-controls"]:ot,...we}=Oe;return we},[ye]),Fe=cm(),nt=c.useMemo(()=>de({onMouseEnter(){_.type==="menu"&&Fe.request(()=>k.set("hoverEnabled",!1))},onMouseMove(){k.set("allowMouseEnter",!0)},onClick(){k.select("hoverEnabled")&&k.set("hoverEnabled",!1)},onKeyDown(Oe){const Ne=k.select("keyboardEventRelay");Ne&&!Oe.isPropagationStopped()&&Ne(Oe)}}),[de,_.type,Fe,k]),rt=c.useMemo(()=>Z(),[Z]);k.useSyncedValues({floatingRootContext:Q,activeTriggerProps:Pe,inactiveTriggerProps:Ee,popupProps:nt,itemProps:rt});const ft=c.useMemo(()=>({store:k,parent:C}),[k,C]),kt=h.jsx(nm.Provider,{value:ft,children:typeof t=="function"?t({payload:O}):t});return _.type===void 0||_.type==="context-menu"?h.jsx(sG,{externalTree:E,children:kt}):kt}function B5(e){if(dt(e)&&e.hasAttribute("data-rootownerid"))return e.getAttribute("data-rootownerid")??void 0;if(!Mn(e))return B5(Dn(e))}const FY=c.forwardRef(function(t,n){const{className:r,render:o,orientation:s="horizontal",...i}=t,a=c.useMemo(()=>({orientation:s}),[s]);return Sr("div",t,{state:a,ref:n,props:[{role:"separator","aria-orientation":s},i]})});function BY(e){const[t,n]=c.useState({getBoundingClientRect(){return DOMRect.fromRect({width:0,height:0,x:0,y:0})}}),r=c.useRef(null),o=c.useRef(null),s=c.useRef(null),i=c.useRef(null),a=c.useRef(!0),u=c.useRef(null),l=Er(),d=c.useMemo(()=>({anchor:t,setAnchor:n,actionsRef:s,backdropRef:r,internalBackdropRef:o,positionerRef:i,allowMouseUpTriggerRef:a,initialCursorPointRef:u,rootId:l}),[t,l]);return h.jsx(jk.Provider,{value:d,children:h.jsx(nm.Provider,{value:void 0,children:h.jsx(zY,{...e})})})}const s2=500,HY=c.forwardRef(function(t,n){const{render:r,className:o,...s}=t,{setAnchor:i,actionsRef:a,internalBackdropRef:u,backdropRef:l,positionerRef:d,allowMouseUpTriggerRef:f,initialCursorPointRef:p,rootId:m}=cc(!1),{store:g}=Bo(!1),y=g.useState("open"),x=c.useRef(null),w=c.useRef(null),b=En(),v=En(),C=c.useRef(!1);function k(A,L,V){const I=V.type.startsWith("touch");p.current={x:A,y:L},i({getBoundingClientRect(){return DOMRect.fromRect({width:I?10:0,height:I?10:0,x:A,y:L})}}),C.current=!1,a.current?.setOpen(!0,mt(Sa,V)),v.start(s2,()=>{C.current=!0})}function E(A){f.current=!0,wt(A),k(A.clientX,A.clientY,A.nativeEvent),Yr(x.current).addEventListener("mouseup",V=>{if(f.current=!1,!C.current)return;v.clear(),C.current=!1;const I=Wt(V);Je(d.current,I)||m&&I&&B5(I)===m||a.current?.setOpen(!1,mt(IZ,V))},{once:!0})}function $(A){if(f.current=!1,A.touches.length===1){A.stopPropagation();const L=A.touches[0];w.current={x:L.clientX,y:L.clientY},b.start(s2,()=>{w.current&&k(w.current.x,w.current.y,A.nativeEvent)})}}function S(A){if(b.isStarted()&&w.current&&A.touches.length===1){const L=A.touches[0],V=10,I=Math.abs(L.clientX-w.current.x),_=Math.abs(L.clientY-w.current.y);(I>V||_>V)&&b.clear()}}function j(){b.clear(),w.current=null}c.useEffect(()=>{function A(V){const _=Wt(V);(Je(x.current,_)||Je(u.current,_)||Je(l.current,_))&&V.preventDefault()}const L=Yr(x.current);return L.addEventListener("contextmenu",A),()=>{L.removeEventListener("contextmenu",A)}},[l,u]);const R=c.useMemo(()=>({open:y}),[y]);return Sr("div",t,{state:R,ref:[x,n],props:[{onContextMenu:E,onTouchStart:$,onTouchMove:S,onTouchEnd:j,onTouchCancel:j,style:{WebkitTouchCallout:"none"}},s],stateAttributesMapping:MZ})}),bm=c.createContext({});function ym(e){const t=c.useRef(null);return t.current===null&&(t.current=e()),t.current}const H5=typeof window<"u",W5=H5?c.useLayoutEffect:c.useEffect,bc=c.createContext(null);function wm(e,t){e.indexOf(t)===-1&&e.push(t)}function Da(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Vn=(e,t,n)=>n>t?t:n<e?e:n;let xm=()=>{};const Yn={},Z5=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function U5(e){return typeof e=="object"&&e!==null}const G5=e=>/^0[^.\s]+$/u.test(e);function K5(e){let t;return()=>(t===void 0&&(t=e()),t)}const dn=e=>e,WY=(e,t)=>n=>t(e(n)),si=(...e)=>e.reduce(WY),Us=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Cm{constructor(){this.subscriptions=[]}add(t){return wm(this.subscriptions,t),()=>Da(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 s=0;s<o;s++){const i=this.subscriptions[s];i&&i(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Cn=e=>e*1e3,ln=e=>e/1e3;function Y5(e,t){return t?e*(1e3/t):0}const q5=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ZY=1e-7,UY=12;function GY(e,t,n,r,o){let s,i,a=0;do i=t+(n-t)/2,s=q5(i,r,o)-e,s>0?n=i:t=i;while(Math.abs(s)>ZY&&++a<UY);return i}function ii(e,t,n,r){if(e===t&&n===r)return dn;const o=s=>GY(s,0,1,e,n);return s=>s===0||s===1?s:q5(o(s),t,r)}const X5=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,J5=e=>t=>1-e(1-t),Q5=ii(.33,1.53,.69,.99),km=J5(Q5),eE=X5(km),tE=e=>(e*=2)<1?.5*km(e):.5*(2-Math.pow(2,-10*(e-1))),Em=e=>1-Math.sin(Math.acos(e)),nE=J5(Em),rE=X5(Em),KY=ii(.42,0,1,1),YY=ii(0,0,.58,1),oE=ii(.42,0,.58,1),qY=e=>Array.isArray(e)&&typeof e[0]!="number",sE=e=>Array.isArray(e)&&typeof e[0]=="number",XY={linear:dn,easeIn:KY,easeInOut:oE,easeOut:YY,circIn:Em,circInOut:rE,circOut:nE,backIn:km,backInOut:eE,backOut:Q5,anticipate:tE},JY=e=>typeof e=="string",i2=e=>{if(sE(e)){xm(e.length===4);const[t,n,r,o]=e;return ii(t,n,r,o)}else if(JY(e))return XY[e];return e},Ti=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function QY(e,t){let n=new Set,r=new Set,o=!1,s=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){i.has(d)&&(l.schedule(d),e()),d(a)}const l={schedule:(d,f=!1,p=!1)=>{const g=p&&o?n:r;return f&&i.add(d),g.has(d)||g.add(d),d},cancel:d=>{r.delete(d),i.delete(d)},process:d=>{if(a=d,o){s=!0;return}o=!0,[n,r]=[r,n],n.forEach(u),n.clear(),o=!1,s&&(s=!1,l.process(d))}};return l}const eq=40;function iE(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,i=Ti.reduce((v,C)=>(v[C]=QY(s),v),{}),{setup:a,read:u,resolveKeyframes:l,preUpdate:d,update:f,preRender:p,render:m,postRender:g}=i,y=()=>{const v=Yn.useManualTiming?o.timestamp:performance.now();n=!1,Yn.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(v-o.timestamp,eq),1)),o.timestamp=v,o.isProcessing=!0,a.process(o),u.process(o),l.process(o),d.process(o),f.process(o),p.process(o),m.process(o),g.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(y))},x=()=>{n=!0,r=!0,o.isProcessing||e(y)};return{schedule:Ti.reduce((v,C)=>{const k=i[C];return v[C]=(E,$=!1,S=!1)=>(n||x(),k.schedule(E,$,S)),v},{}),cancel:v=>{for(let C=0;C<Ti.length;C++)i[Ti[C]].cancel(v)},state:o,steps:i}}const{schedule:Ke,cancel:xr,state:bt,steps:Vd}=iE(typeof requestAnimationFrame<"u"?requestAnimationFrame:dn,!0);let ea;function tq(){ea=void 0}const Nt={now:()=>(ea===void 0&&Nt.set(bt.isProcessing||Yn.useManualTiming?bt.timestamp:performance.now()),ea),set:e=>{ea=e,queueMicrotask(tq)}},aE=e=>t=>typeof t=="string"&&t.startsWith(e),cE=aE("--"),nq=aE("var(--"),Sm=e=>nq(e)?rq.test(e.split("/*")[0].trim()):!1,rq=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function a2(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Zo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Gs={...Zo,transform:e=>Vn(0,1,e)},Ii={...Zo,default:1},Ls=e=>Math.round(e*1e5)/1e5,$m=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function oq(e){return e==null}const sq=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Om=(e,t)=>n=>!!(typeof n=="string"&&sq.test(n)&&n.startsWith(e)||t&&!oq(n)&&Object.prototype.hasOwnProperty.call(n,t)),lE=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,s,i,a]=r.match($m);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},iq=e=>Vn(0,255,e),zd={...Zo,transform:e=>Math.round(iq(e))},Hr={test:Om("rgb","red"),parse:lE("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+zd.transform(e)+", "+zd.transform(t)+", "+zd.transform(n)+", "+Ls(Gs.transform(r))+")"};function aq(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 Uf={test:Om("#"),parse:aq,transform:Hr.transform},ai=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),sr=ai("deg"),In=ai("%"),he=ai("px"),cq=ai("vh"),lq=ai("vw"),c2={...In,parse:e=>In.parse(e)/100,transform:e=>In.transform(e*100)},go={test:Om("hsl","hue"),parse:lE("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+In.transform(Ls(t))+", "+In.transform(Ls(n))+", "+Ls(Gs.transform(r))+")"},pt={test:e=>Hr.test(e)||Uf.test(e)||go.test(e),parse:e=>Hr.test(e)?Hr.parse(e):go.test(e)?go.parse(e):Uf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Hr.transform(e):go.transform(e),getAnimatableNone:e=>{const t=pt.parse(e);return t.alpha=0,pt.transform(t)}},uq=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function dq(e){return isNaN(e)&&typeof e=="string"&&(e.match($m)?.length||0)+(e.match(uq)?.length||0)>0}const uE="number",dE="color",fq="var",pq="var(",l2="${}",mq=/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 Ks(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let s=0;const a=t.replace(mq,u=>(pt.test(u)?(r.color.push(s),o.push(dE),n.push(pt.parse(u))):u.startsWith(pq)?(r.var.push(s),o.push(fq),n.push(u)):(r.number.push(s),o.push(uE),n.push(parseFloat(u))),++s,l2)).split(l2);return{values:n,split:a,indexes:r,types:o}}function fE(e){return Ks(e).values}function pE(e){const{split:t,types:n}=Ks(e),r=t.length;return o=>{let s="";for(let i=0;i<r;i++)if(s+=t[i],o[i]!==void 0){const a=n[i];a===uE?s+=Ls(o[i]):a===dE?s+=pt.transform(o[i]):s+=o[i]}return s}}const hq=e=>typeof e=="number"?0:pt.test(e)?pt.getAnimatableNone(e):e;function gq(e){const t=fE(e);return pE(e)(t.map(hq))}const kn={test:dq,parse:fE,createTransformer:pE,getAnimatableNone:gq};function Fd(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 vq({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,s=0,i=0;if(!t)o=s=i=n;else{const a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;o=Fd(u,a,e+1/3),s=Fd(u,a,e),i=Fd(u,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:r}}function Va(e,t){return n=>n>0?t:e}const it=(e,t,n)=>e+(t-e)*n,Bd=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},bq=[Uf,Hr,go],yq=e=>bq.find(t=>t.test(e));function u2(e){const t=yq(e);if(!t)return!1;let n=t.parse(e);return t===go&&(n=vq(n)),n}const d2=(e,t)=>{const n=u2(e),r=u2(t);if(!n||!r)return Va(e,t);const o={...n};return s=>(o.red=Bd(n.red,r.red,s),o.green=Bd(n.green,r.green,s),o.blue=Bd(n.blue,r.blue,s),o.alpha=it(n.alpha,r.alpha,s),Hr.transform(o))},Gf=new Set(["none","hidden"]);function wq(e,t){return Gf.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function xq(e,t){return n=>it(e,t,n)}function Lm(e){return typeof e=="number"?xq:typeof e=="string"?Sm(e)?Va:pt.test(e)?d2:Eq:Array.isArray(e)?mE:typeof e=="object"?pt.test(e)?d2:Cq:Va}function mE(e,t){const n=[...e],r=n.length,o=e.map((s,i)=>Lm(s)(s,t[i]));return s=>{for(let i=0;i<r;i++)n[i]=o[i](s);return n}}function Cq(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Lm(e[o])(e[o],t[o]));return o=>{for(const s in r)n[s]=r[s](o);return n}}function kq(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],i=e.indexes[s][r[s]],a=e.values[i]??0;n[o]=a,r[s]++}return n}const Eq=(e,t)=>{const n=kn.createTransformer(t),r=Ks(e),o=Ks(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?Gf.has(e)&&!o.values.length||Gf.has(t)&&!r.values.length?wq(e,t):si(mE(kq(r,o),o.values),n):Va(e,t)};function hE(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?it(e,t,n):Lm(e)(e,t)}const Sq=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Ke.update(t,n),stop:()=>xr(t),now:()=>bt.isProcessing?bt.timestamp:Nt.now()}},gE=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)r+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},za=2e4;function jm(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<za;)t+=n,r=e.next(t);return t>=za?1/0:t}function $q(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(jm(r),za);return{type:"keyframes",ease:s=>r.next(o*s).value/t,duration:ln(o)}}const Oq=5;function vE(e,t,n){const r=Math.max(t-Oq,0);return Y5(n-e(r),t-r)}const lt={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},Hd=.001;function Lq({duration:e=lt.duration,bounce:t=lt.bounce,velocity:n=lt.velocity,mass:r=lt.mass}){let o,s,i=1-t;i=Vn(lt.minDamping,lt.maxDamping,i),e=Vn(lt.minDuration,lt.maxDuration,ln(e)),i<1?(o=l=>{const d=l*i,f=d*e,p=d-n,m=Kf(l,i),g=Math.exp(-f);return Hd-p/m*g},s=l=>{const f=l*i*e,p=f*n+n,m=Math.pow(i,2)*Math.pow(l,2)*e,g=Math.exp(-f),y=Kf(Math.pow(l,2),i);return(-o(l)+Hd>0?-1:1)*((p-m)*g)/y}):(o=l=>{const d=Math.exp(-l*e),f=(l-n)*e+1;return-Hd+d*f},s=l=>{const d=Math.exp(-l*e),f=(n-l)*(e*e);return d*f});const a=5/e,u=Rq(o,s,a);if(e=Cn(e),isNaN(u))return{stiffness:lt.stiffness,damping:lt.damping,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:i*2*Math.sqrt(r*l),duration:e}}}const jq=12;function Rq(e,t,n){let r=n;for(let o=1;o<jq;o++)r=r-e(r)/t(r);return r}function Kf(e,t){return e*Math.sqrt(1-t*t)}const Pq=["duration","bounce"],Mq=["stiffness","damping","mass"];function f2(e,t){return t.some(n=>e[n]!==void 0)}function Tq(e){let t={velocity:lt.velocity,stiffness:lt.stiffness,damping:lt.damping,mass:lt.mass,isResolvedFromDuration:!1,...e};if(!f2(e,Mq)&&f2(e,Pq))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,s=2*Vn(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:lt.mass,stiffness:o,damping:s}}else{const n=Lq({...e,velocity:0});t={...t,...n,mass:lt.mass},t.isResolvedFromDuration=!0}return t}function Fa(e=lt.visualDuration,t=lt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const s=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:u,damping:l,mass:d,duration:f,velocity:p,isResolvedFromDuration:m}=Tq({...n,velocity:-ln(n.velocity||0)}),g=p||0,y=l/(2*Math.sqrt(u*d)),x=i-s,w=ln(Math.sqrt(u/d)),b=Math.abs(x)<5;r||(r=b?lt.restSpeed.granular:lt.restSpeed.default),o||(o=b?lt.restDelta.granular:lt.restDelta.default);let v;if(y<1){const k=Kf(w,y);v=E=>{const $=Math.exp(-y*w*E);return i-$*((g+y*w*x)/k*Math.sin(k*E)+x*Math.cos(k*E))}}else if(y===1)v=k=>i-Math.exp(-w*k)*(x+(g+w*x)*k);else{const k=w*Math.sqrt(y*y-1);v=E=>{const $=Math.exp(-y*w*E),S=Math.min(k*E,300);return i-$*((g+y*w*x)*Math.sinh(S)+k*x*Math.cosh(S))/k}}const C={calculatedDuration:m&&f||null,next:k=>{const E=v(k);if(m)a.done=k>=f;else{let $=k===0?g:0;y<1&&($=k===0?Cn(g):vE(v,k,E));const S=Math.abs($)<=r,j=Math.abs(i-E)<=o;a.done=S&&j}return a.value=a.done?i:E,a},toString:()=>{const k=Math.min(jm(C),za),E=gE($=>C.next(k*$).value,k,30);return k+"ms "+E},toTransition:()=>{}};return C}Fa.applyToOptions=e=>{const t=$q(e,100,Fa);return e.ease=t.ease,e.duration=Cn(t.duration),e.type="keyframes",e};function Yf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:u,restDelta:l=.5,restSpeed:d}){const f=e[0],p={done:!1,value:f},m=S=>a!==void 0&&S<a||u!==void 0&&S>u,g=S=>a===void 0?u:u===void 0||Math.abs(a-S)<Math.abs(u-S)?a:u;let y=n*t;const x=f+y,w=i===void 0?x:i(x);w!==x&&(y=w-f);const b=S=>-y*Math.exp(-S/r),v=S=>w+b(S),C=S=>{const j=b(S),R=v(S);p.done=Math.abs(j)<=l,p.value=p.done?w:R};let k,E;const $=S=>{m(p.value)&&(k=S,E=Fa({keyframes:[p.value,g(p.value)],velocity:vE(v,S,p.value),damping:o,stiffness:s,restDelta:l,restSpeed:d}))};return $(0),{calculatedDuration:null,next:S=>{let j=!1;return!E&&k===void 0&&(j=!0,C(S),$(S)),k!==void 0&&S>=k?E.next(S-k):(!j&&C(S),p)}}}function Iq(e,t,n){const r=[],o=n||Yn.mix||hE,s=e.length-1;for(let i=0;i<s;i++){let a=o(e[i],e[i+1]);if(t){const u=Array.isArray(t)?t[i]||dn:t;a=si(u,a)}r.push(a)}return r}function Aq(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const s=e.length;if(xm(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Iq(t,r,o),u=a.length,l=d=>{if(i&&d<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const p=Us(e[f],e[f+1],d);return a[f](p)};return n?d=>l(Vn(e[0],e[s-1],d)):l}function _q(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Us(0,t,r);e.push(it(n,1,o))}}function Nq(e){const t=[0];return _q(t,e.length-1),t}function Dq(e,t){return e.map(n=>n*t)}function Vq(e,t){return e.map(()=>t||oE).splice(0,e.length-1)}function js({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=qY(r)?r.map(i2):i2(r),s={done:!1,value:t[0]},i=Dq(n&&n.length===t.length?n:Nq(t),e),a=Aq(i,t,{ease:Array.isArray(o)?o:Vq(t,o)});return{calculatedDuration:e,next:u=>(s.value=a(u),s.done=u>=e,s)}}const zq=e=>e!==null;function Rm(e,{repeat:t,repeatType:n="loop"},r,o=1){const s=e.filter(zq),a=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||r===void 0?s[a]:r}const Fq={decay:Yf,inertia:Yf,tween:js,keyframes:js,spring:Fa};function bE(e){typeof e.type=="string"&&(e.type=Fq[e.type])}class Pm{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 Bq=e=>e/100;class Mm extends Pm{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!==Nt.now()&&this.tick(Nt.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;bE(t);const{type:n=js,repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:i=0}=t;let{keyframes:a}=t;const u=n||js;u!==js&&typeof a[0]!="number"&&(this.mixKeyframes=si(Bq,hE(a[0],a[1])),a=[0,100]);const l=u({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...a].reverse(),velocity:-i})),l.calculatedDuration===null&&(l.calculatedDuration=jm(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:s,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:d,repeat:f,repeatType:p,repeatDelay:m,type:g,onUpdate:y,finalKeyframe:x}=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 w=this.currentTime-l*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?w<0:w>o;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let v=this.currentTime,C=r;if(f){const S=Math.min(this.currentTime,o)/a;let j=Math.floor(S),R=S%1;!R&&S>=1&&(R=1),R===1&&j--,j=Math.min(j,f+1),j%2&&(p==="reverse"?(R=1-R,m&&(R-=m/a)):p==="mirror"&&(C=i)),v=Vn(0,1,R)*a}const k=b?{done:!1,value:d[0]}:C.next(v);s&&(k.value=s(k.value));let{done:E}=k;!b&&u!==null&&(E=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return $&&g!==Yf&&(k.value=Rm(d,this.options,x,this.speed)),y&&y(k.value),$&&this.finish(),k}then(t,n){return this.finished.then(t,n)}get duration(){return ln(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ln(t)}get time(){return ln(this.currentTime)}set time(t){t=Cn(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(Nt.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ln(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Sq,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(Nt.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 Hq(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Wr=e=>e*180/Math.PI,qf=e=>{const t=Wr(Math.atan2(e[1],e[0]));return Xf(t)},Wq={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:qf,rotateZ:qf,skewX:e=>Wr(Math.atan(e[1])),skewY:e=>Wr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Xf=e=>(e=e%360,e<0&&(e+=360),e),p2=qf,m2=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),h2=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Zq={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:m2,scaleY:h2,scale:e=>(m2(e)+h2(e))/2,rotateX:e=>Xf(Wr(Math.atan2(e[6],e[5]))),rotateY:e=>Xf(Wr(Math.atan2(-e[2],e[0]))),rotateZ:p2,rotate:p2,skewX:e=>Wr(Math.atan(e[4])),skewY:e=>Wr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Jf(e){return e.includes("scale")?1:0}function Qf(e,t){if(!e||e==="none")return Jf(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Zq,o=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Wq,o=a}if(!o)return Jf(t);const s=r[t],i=o[1].split(",").map(Gq);return typeof s=="function"?s(i):i[s]}const Uq=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Qf(n,t)};function Gq(e){return parseFloat(e.trim())}const Uo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Go=new Set(Uo),g2=e=>e===Zo||e===he,Kq=new Set(["x","y","z"]),Yq=Uo.filter(e=>!Kq.has(e));function qq(e){const t=[];return Yq.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ur={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})=>Qf(t,"x"),y:(e,{transform:t})=>Qf(t,"y")};ur.translateX=ur.x;ur.translateY=ur.y;const Ur=new Set;let ep=!1,tp=!1,np=!1;function yE(){if(tp){const e=Array.from(Ur).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=qq(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(([s,i])=>{r.getValue(s)?.set(i)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}tp=!1,ep=!1,Ur.forEach(e=>e.complete(np)),Ur.clear()}function wE(){Ur.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tp=!0)})}function Xq(){np=!0,wE(),yE(),np=!1}class Tm{constructor(t,n,r,o,s,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=s,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(Ur.add(this),ep||(ep=!0,Ke.read(wE),Ke.resolveKeyframes(yE))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const s=o?.get(),i=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const a=r.readValue(n,i);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=i),o&&s===void 0&&o.set(t[0])}Hq(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ur.delete(this)}cancel(){this.state==="scheduled"&&(Ur.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Jq=e=>e.startsWith("--");function Qq(e,t,n){Jq(t)?e.style.setProperty(t,n):e.style[t]=n}const eX={};function xE(e,t){const n=K5(e);return()=>eX[t]??n()}const tX=xE(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),CE=xE(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ys=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,v2={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ys([0,.65,.55,1]),circOut:ys([.55,0,1,.45]),backIn:ys([.31,.01,.66,-.59]),backOut:ys([.33,1.53,.69,.99])};function kE(e,t){if(e)return typeof e=="function"?CE()?gE(e,t):"ease-out":sE(e)?ys(e):Array.isArray(e)?e.map(n=>kE(n,t)||v2.easeOut):v2[e]}function nX(e,t,n,{delay:r=0,duration:o=300,repeat:s=0,repeatType:i="loop",ease:a="easeOut",times:u}={},l=void 0){const d={[t]:n};u&&(d.offset=u);const f=kE(a,o);Array.isArray(f)&&(d.easing=f);const p={delay:r,duration:o,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"};return l&&(p.pseudoElement=l),e.animate(d,p)}function EE(e){return typeof e=="function"&&"applyToOptions"in e}function rX({type:e,...t}){return EE(e)&&CE()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class SE extends Pm{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:s,allowFlatten:i=!1,finalKeyframe:a,onComplete:u}=t;this.isPseudoElement=!!s,this.allowFlatten=i,this.options=t,xm(typeof t.type!="string");const l=rX(t);this.animation=nX(n,r,o,l,s),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const d=Rm(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(d):Qq(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 ln(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ln(t)}get time(){return ln(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Cn(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&&tX()?(this.animation.timeline=t,dn):n(this)}}const $E={anticipate:tE,backInOut:eE,circInOut:rE};function oX(e){return e in $E}function sX(e){typeof e.ease=="string"&&oX(e.ease)&&(e.ease=$E[e.ease])}const Wd=10;class iX extends SE{constructor(t){sX(t),bE(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:s,...i}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Mm({...i,autoplay:!1}),u=Math.max(Wd,Nt.now()-this.startTime),l=Vn(0,Wd,u-Wd);n.setWithVelocity(a.sample(Math.max(0,u-l)).value,a.sample(u).value,l),a.stop()}}const b2=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(kn.test(e)||e==="0")&&!e.startsWith("url("));function aX(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 cX(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],i=b2(o,t),a=b2(s,t);return!i||!a?!1:aX(e)||(n==="spring"||EE(n))&&r}function rp(e){e.duration=0,e.type="keyframes"}const lX=new Set(["opacity","clipPath","filter","transform"]),uX=K5(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function dX(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:s,type:i}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=t.owner.getProps();return uX()&&n&&lX.has(n)&&(n!=="transform"||!l)&&!u&&!r&&o!=="mirror"&&s!==0&&i!=="inertia"}const fX=40;class pX extends Pm{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:i="loop",keyframes:a,name:u,motionValue:l,element:d,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Nt.now();const p={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:s,repeatType:i,name:u,motionValue:l,element:d,...f},m=d?.KeyframeResolver||Tm;this.keyframeResolver=new m(a,(g,y,x)=>this.onKeyframesResolved(g,y,p,!x),u,l,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:s,type:i,velocity:a,delay:u,isHandoff:l,onUpdate:d}=r;this.resolvedAt=Nt.now(),cX(t,s,i,a)||((Yn.instantAnimations||!u)&&d?.(Rm(t,r,n)),t[0]=t[t.length-1],rp(r),r.repeat=0);const p={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>fX?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!l&&dX(p),g=p.motionValue?.owner?.current,y=m?new iX({...p,element:g}):new Mm(p);y.finished.then(()=>{this.notifyFinished()}).catch(dn),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}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(),Xq()),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 OE(e,t,n,r=0,o=1){const s=Array.from(e).sort((l,d)=>l.sortNodePosition(d)).indexOf(t),i=e.size,a=(i-1)*r;return typeof n=="function"?n(s,i):o===1?s*r:a-s*r}const mX=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function hX(e){const t=mX.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function LE(e,t,n=1){const[r,o]=hX(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const i=s.trim();return Z5(i)?parseFloat(i):i}return Sm(o)?LE(o,t,n+1):o}const gX={type:"spring",stiffness:500,damping:25,restSpeed:10},vX=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),bX={type:"keyframes",duration:.8},yX={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},wX=(e,{keyframes:t})=>t.length>2?bX:Go.has(e)?e.startsWith("scale")?vX(t[1]):gX:yX,xX=e=>e!==null;function CX(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(xX),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[s]}function jE(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Im(e,t){const n=e?.[t]??e?.default??e;return n!==e?jE(n,e):n}function kX({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:u,elapsed:l,...d}){return!!Object.keys(d).length}const Am=(e,t,n,r={},o,s)=>i=>{const a=Im(r,e)||{},u=a.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Cn(u);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:p=>{t.set(p),a.onUpdate&&a.onUpdate(p)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:o};kX(a)||Object.assign(d,wX(e,d)),d.duration&&(d.duration=Cn(d.duration)),d.repeatDelay&&(d.repeatDelay=Cn(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(rp(d),d.delay===0&&(f=!0)),(Yn.instantAnimations||Yn.skipAnimations||o?.shouldSkipAnimations)&&(f=!0,rp(d),d.delay=0),d.allowFlatten=!a.type&&!a.ease,f&&!s&&t.get()!==void 0){const p=CX(d.keyframes,a);if(p!==void 0){Ke.update(()=>{d.onUpdate(p),d.onComplete()});return}}return a.isSync?new Mm(d):new pX(d)};function y2(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function _m(e,t,n,r){if(typeof t=="function"){const[o,s]=y2(r);t=t(n!==void 0?n:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=y2(r);t=t(n!==void 0?n:e.custom,o,s)}return t}function So(e,t,n){const r=e.getProps();return _m(r,t,n!==void 0?n:r.custom,e)}const RE=new Set(["width","height","top","left","right","bottom",...Uo]),w2=30,EX=e=>!isNaN(parseFloat(e));class SX{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=Nt.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 s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Nt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=EX(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 Cm);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ke.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=Nt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>w2)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,w2);return Y5(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 _o(e,t){return new SX(e,t)}const op=e=>Array.isArray(e);function $X(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_o(n))}function OX(e){return op(e)?e[e.length-1]||0:e}function LX(e,t){const n=So(e,t);let{transitionEnd:r={},transition:o={},...s}=n||{};s={...s,...r};for(const i in s){const a=OX(s[i]);$X(e,i,a)}}const Ot=e=>!!(e&&e.getVelocity);function jX(e){return!!(Ot(e)&&e.add)}function sp(e,t){const n=e.getValue("willChange");if(jX(n))return n.add(t);if(!n&&Yn.WillChange){const r=new Yn.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Nm(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const RX="framerAppearId",PE="data-"+Nm(RX);function ME(e){return e.props[PE]}function PX({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function TE(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:s,transitionEnd:i,...a}=t;const u=e.getDefaultTransition();s=s?jE(s,u):u;const l=s?.reduceMotion;r&&(s=r);const d=[],f=o&&e.animationState&&e.animationState.getState()[o];for(const p in a){const m=e.getValue(p,e.latestValues[p]??null),g=a[p];if(g===void 0||f&&PX(f,p))continue;const y={delay:n,...Im(s||{},p)},x=m.get();if(x!==void 0&&!m.isAnimating&&!Array.isArray(g)&&g===x&&!y.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const C=ME(e);if(C){const k=window.MotionHandoffAnimation(C,p,Ke);k!==null&&(y.startTime=k,w=!0)}}sp(e,p);const b=l??e.shouldReduceMotion;m.start(Am(p,m,g,b&&RE.has(p)?{type:!1}:y,e,w));const v=m.animation;v&&d.push(v)}if(i){const p=()=>Ke.update(()=>{i&&LX(e,i)});d.length?Promise.all(d).then(p):p()}return d}function ip(e,t,n={}){const r=So(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const s=r?()=>Promise.all(TE(e,r,n)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:d,staggerDirection:f}=o;return MX(e,t,u,l,d,f,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[u,l]=a==="beforeChildren"?[s,i]:[i,s];return u().then(()=>l())}else return Promise.all([s(),i(n.delay)])}function MX(e,t,n=0,r=0,o=0,s=1,i){const a=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),a.push(ip(u,t,{...i,delay:n+(typeof r=="function"?0:r)+OE(e.variantChildren,u,r,o,s)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(a)}function TX(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(s=>ip(e,s,n));r=Promise.all(o)}else if(typeof t=="string")r=ip(e,t,n);else{const o=typeof t=="function"?So(e,t,n.custom):t;r=Promise.all(TE(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const IX={test:e=>e==="auto",parse:e=>e},IE=e=>t=>t.test(e),AE=[Zo,he,In,sr,lq,cq,IX],x2=e=>AE.find(IE(e));function AX(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||G5(e):!0}const _X=new Set(["brightness","contrast","saturate","opacity"]);function NX(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match($m)||[];if(!r)return e;const o=n.replace(r,"");let s=_X.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+o+")"}const DX=/\b([a-z-]*)\(.*?\)/gu,ap={...kn,getAnimatableNone:e=>{const t=e.match(DX);return t?t.map(NX).join(" "):e}},cp={...kn,getAnimatableNone:e=>{const t=kn.parse(e);return kn.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},C2={...Zo,transform:Math.round},VX={rotate:sr,rotateX:sr,rotateY:sr,rotateZ:sr,scale:Ii,scaleX:Ii,scaleY:Ii,scaleZ:Ii,skew:sr,skewX:sr,skewY:sr,distance:he,translateX:he,translateY:he,translateZ:he,x:he,y:he,z:he,perspective:he,transformPerspective:he,opacity:Gs,originX:c2,originY:c2,originZ:he},Dm={borderWidth:he,borderTopWidth:he,borderRightWidth:he,borderBottomWidth:he,borderLeftWidth:he,borderRadius:he,borderTopLeftRadius:he,borderTopRightRadius:he,borderBottomRightRadius:he,borderBottomLeftRadius:he,width:he,maxWidth:he,height:he,maxHeight:he,top:he,right:he,bottom:he,left:he,inset:he,insetBlock:he,insetBlockStart:he,insetBlockEnd:he,insetInline:he,insetInlineStart:he,insetInlineEnd:he,padding:he,paddingTop:he,paddingRight:he,paddingBottom:he,paddingLeft:he,paddingBlock:he,paddingBlockStart:he,paddingBlockEnd:he,paddingInline:he,paddingInlineStart:he,paddingInlineEnd:he,margin:he,marginTop:he,marginRight:he,marginBottom:he,marginLeft:he,marginBlock:he,marginBlockStart:he,marginBlockEnd:he,marginInline:he,marginInlineStart:he,marginInlineEnd:he,fontSize:he,backgroundPositionX:he,backgroundPositionY:he,...VX,zIndex:C2,fillOpacity:Gs,strokeOpacity:Gs,numOctaves:C2},zX={...Dm,color:pt,backgroundColor:pt,outlineColor:pt,fill:pt,stroke:pt,borderColor:pt,borderTopColor:pt,borderRightColor:pt,borderBottomColor:pt,borderLeftColor:pt,filter:ap,WebkitFilter:ap,mask:cp,WebkitMask:cp},_E=e=>zX[e],FX=new Set([ap,cp]);function NE(e,t){let n=_E(e);return FX.has(n)||(n=kn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const BX=new Set(["auto","none","0"]);function HX(e,t,n){let r=0,o;for(;r<e.length&&!o;){const s=e[r];typeof s=="string"&&!BX.has(s)&&Ks(s).values.length&&(o=e[r]),r++}if(o&&n)for(const s of t)e[s]=NE(n,o)}class WX extends Tm{constructor(t,n,r,o,s){super(t,n,r,o,s,!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(),Sm(f))){const p=LE(f,n.current);p!==void 0&&(t[d]=p),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!RE.has(r)||t.length!==2)return;const[o,s]=t,i=x2(o),a=x2(s),u=a2(o),l=a2(s);if(u!==l&&ur[r]){this.needsMeasurement=!0;return}if(i!==a)if(g2(i)&&g2(a))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else ur[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||AX(t[o]))&&r.push(o);r.length&&HX(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=ur[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 s=r.length-1,i=r[s];r[s]=ur[n](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,u])=>{t.getValue(a).set(u)}),this.resolveNoneKeyframes()}}const ZX=new Set(["opacity","clipPath","filter","transform"]);function DE(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 VE=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function lp(e){return U5(e)&&"offsetHeight"in e}const{schedule:Vm}=iE(queueMicrotask,!1),xn={x:!1,y:!1};function zE(){return xn.x||xn.y}function UX(e){return e==="x"||e==="y"?xn[e]?null:(xn[e]=!0,()=>{xn[e]=!1}):xn.x||xn.y?null:(xn.x=xn.y=!0,()=>{xn.x=xn.y=!1})}function FE(e,t){const n=DE(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function GX(e){return!(e.pointerType==="touch"||zE())}function KX(e,t,n={}){const[r,o,s]=FE(e,n);return r.forEach(i=>{let a=!1,u=!1,l;const d=()=>{i.removeEventListener("pointerleave",g)},f=x=>{l&&(l(x),l=void 0),d()},p=x=>{a=!1,window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",p),u&&(u=!1,f(x))},m=()=>{a=!0,window.addEventListener("pointerup",p,o),window.addEventListener("pointercancel",p,o)},g=x=>{if(x.pointerType!=="touch"){if(a){u=!0;return}f(x)}},y=x=>{if(!GX(x))return;u=!1;const w=t(i,x);typeof w=="function"&&(l=w,i.addEventListener("pointerleave",g,o))};i.addEventListener("pointerenter",y,o),i.addEventListener("pointerdown",m,o)}),s}const BE=(e,t)=>t?e===t?!0:BE(e,t.parentElement):!1,zm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,YX=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function qX(e){return YX.has(e.tagName)||e.isContentEditable===!0}const XX=new Set(["INPUT","SELECT","TEXTAREA"]);function JX(e){return XX.has(e.tagName)||e.isContentEditable===!0}const ta=new WeakSet;function k2(e){return t=>{t.key==="Enter"&&e(t)}}function Zd(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const QX=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=k2(()=>{if(ta.has(n))return;Zd(n,"down");const o=k2(()=>{Zd(n,"up")}),s=()=>Zd(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function E2(e){return zm(e)&&!zE()}const S2=new WeakSet;function eJ(e,t,n={}){const[r,o,s]=FE(e,n),i=a=>{const u=a.currentTarget;if(!E2(a)||S2.has(a))return;ta.add(u),n.stopPropagation&&S2.add(a);const l=t(u,a),d=(m,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),ta.has(u)&&ta.delete(u),E2(m)&&typeof l=="function"&&l(m,{success:g})},f=m=>{d(m,u===window||u===document||n.useGlobalTarget||BE(u,m.target))},p=m=>{d(m,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",p,o)};return r.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",i,o),lp(a)&&(a.addEventListener("focus",l=>QX(l,o)),!qX(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function Fm(e){return U5(e)&&"ownerSVGElement"in e}const na=new WeakMap;let ra;const HE=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:Fm(r)&&"getBBox"in r?r.getBBox()[t]:r[n],tJ=HE("inline","width","offsetWidth"),nJ=HE("block","height","offsetHeight");function rJ({target:e,borderBoxSize:t}){na.get(e)?.forEach(n=>{n(e,{get width(){return tJ(e,t)},get height(){return nJ(e,t)}})})}function oJ(e){e.forEach(rJ)}function sJ(){typeof ResizeObserver>"u"||(ra=new ResizeObserver(oJ))}function iJ(e,t){ra||sJ();const n=DE(e);return n.forEach(r=>{let o=na.get(r);o||(o=new Set,na.set(r,o)),o.add(t),ra?.observe(r)}),()=>{n.forEach(r=>{const o=na.get(r);o?.delete(t),o?.size||ra?.unobserve(r)})}}const oa=new Set;let vo;function aJ(){vo=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};oa.forEach(t=>t(e))},window.addEventListener("resize",vo)}function cJ(e){return oa.add(e),vo||aJ(),()=>{oa.delete(e),!oa.size&&typeof vo=="function"&&(window.removeEventListener("resize",vo),vo=void 0)}}function $2(e,t){return typeof e=="function"?cJ(e):iJ(e,t)}function lJ(e){return Fm(e)&&e.tagName==="svg"}const uJ=[...AE,pt,kn],dJ=e=>uJ.find(IE(e)),O2=()=>({translate:0,scale:1,origin:0,originPoint:0}),bo=()=>({x:O2(),y:O2()}),L2=()=>({min:0,max:0}),vt=()=>({x:L2(),y:L2()}),fJ=new WeakMap;function yc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ys(e){return typeof e=="string"||Array.isArray(e)}const Bm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Hm=["initial",...Bm];function wc(e){return yc(e.animate)||Hm.some(t=>Ys(e[t]))}function WE(e){return!!(wc(e)||e.variants)}function pJ(e,t,n){for(const r in t){const o=t[r],s=n[r];if(Ot(o))e.addValue(r,o);else if(Ot(s))e.addValue(r,_o(o,{owner:e}));else if(s!==o)if(e.hasValue(r)){const i=e.getValue(r);i.liveStyle===!0?i.jump(o):i.hasAnimated||i.set(o)}else{const i=e.getStaticValue(r);e.addValue(r,_o(i!==void 0?i:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const up={current:null},ZE={current:!1},mJ=typeof window<"u";function hJ(){if(ZE.current=!0,!!mJ)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>up.current=e.matches;e.addEventListener("change",t),t()}else up.current=!1}const j2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Ba={};function UE(e){Ba=e}function gJ(){return Ba}class vJ{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,skipAnimations:s,blockInitialAnimation:i,visualState:a},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=Tm,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 m=Nt.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Ke.render(this.render,!1,!0))};const{latestValues:l,renderState:d}=a;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=s,this.options=u,this.blockInitialAnimation=!!i,this.isControllingVariants=wc(n),this.isVariantNode=WE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in p){const g=p[m];l[m]!==void 0&&Ot(g)&&g.set(l[m])}}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,fJ.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:(ZE.current||hJ(),this.shouldReduceMotion=up.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(),xr(this.notifyUpdate),xr(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&&ZX.has(t)&&this.current instanceof HTMLElement){const{factory:i,keyframes:a,times:u,ease:l,duration:d}=n.accelerate,f=new SE({element:this.current,name:t,keyframes:a,times:u,ease:l,duration:Cn(d)}),p=i(f);this.valueSubscriptions.set(t,()=>{p(),f.cancel()});return}const r=Go.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&Ke.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),s&&s(),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 Ba){const n=Ba[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 s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):vt()}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<j2.length;r++){const o=j2[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,i=t[s];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=pJ(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=_o(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"&&(Z5(r)||G5(r))?r=parseFloat(r):!dJ(r)&&kn.test(n)&&(r=NE(t,n)),this.setBaseTarget(t,Ot(r)?r.get():r)),Ot(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 s=_m(this.props,n,this.presenceContext?.custom);s&&(r=s[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ot(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 Cm),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Vm.render(this.render)}}class GE extends vJ{constructor(){super(...arguments),this.KeyframeResolver=WX}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;Ot(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class jr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function KE({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function bJ({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function yJ(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 Ud(e){return e===void 0||e===1}function dp({scale:e,scaleX:t,scaleY:n}){return!Ud(e)||!Ud(t)||!Ud(n)}function Br(e){return dp(e)||YE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function YE(e){return R2(e.x)||R2(e.y)}function R2(e){return e&&e!=="0%"}function Ha(e,t,n){const r=e-n,o=t*r;return n+o}function P2(e,t,n,r,o){return o!==void 0&&(e=Ha(e,o,r)),Ha(e,n,r)+t}function fp(e,t=0,n=1,r,o){e.min=P2(e.min,t,n,r,o),e.max=P2(e.max,t,n,r,o)}function qE(e,{x:t,y:n}){fp(e.x,t.translate,t.scale,t.originPoint),fp(e.y,n.translate,n.scale,n.originPoint)}const M2=.999999999999,T2=1.0000000000001;function wJ(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,i;for(let a=0;a<o;a++){s=n[a],i=s.projectionDelta;const{visualElement:u}=s.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&wo(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),i&&(t.x*=i.x.scale,t.y*=i.y.scale,qE(e,i)),r&&Br(s.latestValues)&&wo(e,s.latestValues))}t.x<T2&&t.x>M2&&(t.x=1),t.y<T2&&t.y>M2&&(t.y=1)}function yo(e,t){e.min=e.min+t,e.max=e.max+t}function I2(e,t,n,r,o=.5){const s=it(e.min,e.max,o);fp(e,t,n,s,r)}function wo(e,t){I2(e.x,t.x,t.scaleX,t.scale,t.originX),I2(e.y,t.y,t.scaleY,t.scale,t.originY)}function XE(e,t){return KE(yJ(e.getBoundingClientRect(),t))}function xJ(e,t,n){const r=XE(e,n),{scroll:o}=t;return o&&(yo(r.x,o.offset.x),yo(r.y,o.offset.y)),r}const CJ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},kJ=Uo.length;function EJ(e,t,n){let r="",o=!0;for(let s=0;s<kJ;s++){const i=Uo[s],a=e[i];if(a===void 0)continue;let u=!0;if(typeof a=="number")u=a===(i.startsWith("scale")?1:0);else{const l=parseFloat(a);u=i.startsWith("scale")?l===1:l===0}if(!u||n){const l=VE(a,Dm[i]);if(!u){o=!1;const d=CJ[i]||i;r+=`${d}(${l}) `}n&&(t[i]=l)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Wm(e,t,n){const{style:r,vars:o,transformOrigin:s}=e;let i=!1,a=!1;for(const u in t){const l=t[u];if(Go.has(u)){i=!0;continue}else if(cE(u)){o[u]=l;continue}else{const d=VE(l,Dm[u]);u.startsWith("origin")?(a=!0,s[u]=d):r[u]=d}}if(t.transform||(i||n?r.transform=EJ(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:u="50%",originY:l="50%",originZ:d=0}=s;r.transformOrigin=`${u} ${l} ${d}`}}function JE(e,{style:t,vars:n},r,o){const s=e.style;let i;for(i in t)s[i]=t[i];o?.applyProjectionStyles(s,r);for(i in n)s.setProperty(i,n[i])}function A2(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const cs={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(he.test(e))e=parseFloat(e);else return e;const n=A2(e,t.target.x),r=A2(e,t.target.y);return`${n}% ${r}%`}},SJ={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=kn.parse(e);if(o.length>5)return r;const s=kn.createTransformer(e),i=typeof o[0]!="number"?1:0,a=n.x.scale*t.x,u=n.y.scale*t.y;o[0+i]/=a,o[1+i]/=u;const l=it(a,u,.5);return typeof o[2+i]=="number"&&(o[2+i]/=l),typeof o[3+i]=="number"&&(o[3+i]/=l),s(o)}},pp={borderRadius:{...cs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:cs,borderTopRightRadius:cs,borderBottomLeftRadius:cs,borderBottomRightRadius:cs,boxShadow:SJ};function QE(e,{layout:t,layoutId:n}){return Go.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!pp[e]||e==="opacity")}function Zm(e,t,n){const r=e.style,o=t?.style,s={};if(!r)return s;for(const i in r)(Ot(r[i])||o&&Ot(o[i])||QE(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(s[i]=r[i]);return s}function $J(e){return window.getComputedStyle(e)}class OJ extends GE{constructor(){super(...arguments),this.type="html",this.renderInstance=JE}readValueFromInstance(t,n){if(Go.has(n))return this.projection?.isProjecting?Jf(n):Uq(t,n);{const r=$J(t),o=(cE(n)?r.getPropertyValue(n):r[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return XE(t,n)}build(t,n,r){Wm(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Zm(t,n,r)}}const LJ={offset:"stroke-dashoffset",array:"stroke-dasharray"},jJ={offset:"strokeDashoffset",array:"strokeDasharray"};function RJ(e,t,n=1,r=0,o=!0){e.pathLength=1;const s=o?LJ:jJ;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const PJ=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function e4(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:s=1,pathOffset:i=0,...a},u,l,d){if(Wm(e,a,l),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p}=e;f.transform&&(p.transform=f.transform,delete f.transform),(p.transform||f.transformOrigin)&&(p.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),p.transform&&(p.transformBox=d?.transformBox??"fill-box",delete f.transformBox);for(const m of PJ)f[m]!==void 0&&(p[m]=f[m],delete f[m]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&RJ(f,o,s,i,!1)}const t4=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"]),n4=e=>typeof e=="string"&&e.toLowerCase()==="svg";function MJ(e,t,n,r){JE(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(t4.has(o)?o:Nm(o),t.attrs[o])}function r4(e,t,n){const r=Zm(e,t,n);for(const o in e)if(Ot(e[o])||Ot(t[o])){const s=Uo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[s]=e[o]}return r}class TJ extends GE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=vt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Go.has(n)){const r=_E(n);return r&&r.default||0}return n=t4.has(n)?n:Nm(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return r4(t,n,r)}build(t,n,r){e4(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){MJ(t,n,r,o)}mount(t){this.isSVGTag=n4(t.tagName),super.mount(t)}}const IJ=Hm.length;function o4(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?o4(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<IJ;n++){const r=Hm[n],o=e.props[r];(Ys(o)||o===!1)&&(t[r]=o)}return t}function s4(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 AJ=[...Bm].reverse(),_J=Bm.length;function NJ(e){return t=>Promise.all(t.map(({animation:n,options:r})=>TX(e,n,r)))}function DJ(e){let t=NJ(e),n=_2(),r=!0;const o=u=>(l,d)=>{const f=So(e,d,u==="exit"?e.presenceContext?.custom:void 0);if(f){const{transition:p,transitionEnd:m,...g}=f;l={...l,...g,...m}}return l};function s(u){t=u(e)}function i(u){const{props:l}=e,d=o4(e.parent)||{},f=[],p=new Set;let m={},g=1/0;for(let x=0;x<_J;x++){const w=AJ[x],b=n[w],v=l[w]!==void 0?l[w]:d[w],C=Ys(v),k=w===u?b.isActive:null;k===!1&&(g=x);let E=v===d[w]&&v!==l[w]&&C;if(E&&r&&e.manuallyAnimateOnMount&&(E=!1),b.protectedKeys={...m},!b.isActive&&k===null||!v&&!b.prevProp||yc(v)||typeof v=="boolean")continue;if(w==="exit"&&b.isActive&&k!==!0){b.prevResolvedValues&&(m={...m,...b.prevResolvedValues});continue}const $=VJ(b.prevProp,v);let S=$||w===u&&b.isActive&&!E&&C||x>g&&C,j=!1;const R=Array.isArray(v)?v:[v];let T=R.reduce(o(w),{});k===!1&&(T={});const{prevResolvedValues:A={}}=b,L={...A,...T},V=N=>{S=!0,p.has(N)&&(j=!0,p.delete(N)),b.needsAnimating[N]=!0;const O=e.getValue(N);O&&(O.liveStyle=!1)};for(const N in L){const O=T[N],z=A[N];if(m.hasOwnProperty(N))continue;let M=!1;op(O)&&op(z)?M=!s4(O,z):M=O!==z,M?O!=null?V(N):p.add(N):O!==void 0&&p.has(N)?V(N):b.protectedKeys[N]=!0}b.prevProp=v,b.prevResolvedValues=T,b.isActive&&(m={...m,...T}),r&&e.blockInitialAnimation&&(S=!1);const I=E&&$;S&&(!I||j)&&f.push(...R.map(N=>{const O={type:w};if(typeof N=="string"&&r&&!I&&e.manuallyAnimateOnMount&&e.parent){const{parent:z}=e,M=So(z,N);if(z.enteringChildren&&M){const{delayChildren:q}=M.transition||{};O.delay=OE(z.enteringChildren,e,q)}}return{animation:N,options:O}}))}if(p.size){const x={};if(typeof l.initial!="boolean"){const w=So(e,Array.isArray(l.initial)?l.initial[0]:l.initial);w&&w.transition&&(x.transition=w.transition)}p.forEach(w=>{const b=e.getBaseTarget(w),v=e.getValue(w);v&&(v.liveStyle=!0),x[w]=b??null}),f.push({animation:x})}let y=!!f.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(f):Promise.resolve()}function a(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=i(u);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:i,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=_2()}}}function VJ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!s4(t,e):!1}function Dr(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _2(){return{animate:Dr(!0),whileInView:Dr(),whileHover:Dr(),whileTap:Dr(),whileDrag:Dr(),whileFocus:Dr(),exit:Dr()}}function N2(e,t){e.min=t.min,e.max=t.max}function yn(e,t){N2(e.x,t.x),N2(e.y,t.y)}function D2(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const i4=1e-4,zJ=1-i4,FJ=1+i4,a4=.01,BJ=0-a4,HJ=0+a4;function Dt(e){return e.max-e.min}function WJ(e,t,n){return Math.abs(e-t)<=n}function V2(e,t,n,r=.5){e.origin=r,e.originPoint=it(t.min,t.max,e.origin),e.scale=Dt(n)/Dt(t),e.translate=it(n.min,n.max,e.origin)-e.originPoint,(e.scale>=zJ&&e.scale<=FJ||isNaN(e.scale))&&(e.scale=1),(e.translate>=BJ&&e.translate<=HJ||isNaN(e.translate))&&(e.translate=0)}function Rs(e,t,n,r){V2(e.x,t.x,n.x,r?r.originX:void 0),V2(e.y,t.y,n.y,r?r.originY:void 0)}function z2(e,t,n){e.min=n.min+t.min,e.max=e.min+Dt(t)}function ZJ(e,t,n){z2(e.x,t.x,n.x),z2(e.y,t.y,n.y)}function F2(e,t,n){e.min=t.min-n.min,e.max=e.min+Dt(t)}function Wa(e,t,n){F2(e.x,t.x,n.x),F2(e.y,t.y,n.y)}function B2(e,t,n,r,o){return e-=t,e=Ha(e,1/n,r),o!==void 0&&(e=Ha(e,1/o,r)),e}function UJ(e,t=0,n=1,r=.5,o,s=e,i=e){if(In.test(t)&&(t=parseFloat(t),t=it(i.min,i.max,t/100)-i.min),typeof t!="number")return;let a=it(s.min,s.max,r);e===s&&(a-=t),e.min=B2(e.min,t,n,a,o),e.max=B2(e.max,t,n,a,o)}function H2(e,t,[n,r,o],s,i){UJ(e,t[n],t[r],t[o],t.scale,s,i)}const GJ=["x","scaleX","originX"],KJ=["y","scaleY","originY"];function W2(e,t,n,r){H2(e.x,t,GJ,n?n.x:void 0,r?r.x:void 0),H2(e.y,t,KJ,n?n.y:void 0,r?r.y:void 0)}function Z2(e){return e.translate===0&&e.scale===1}function c4(e){return Z2(e.x)&&Z2(e.y)}function U2(e,t){return e.min===t.min&&e.max===t.max}function YJ(e,t){return U2(e.x,t.x)&&U2(e.y,t.y)}function G2(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function l4(e,t){return G2(e.x,t.x)&&G2(e.y,t.y)}function K2(e){return Dt(e.x)/Dt(e.y)}function Y2(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Ln(e){return[e("x"),e("y")]}function qJ(e,t,n){let r="";const o=e.x.translate/t.x,s=e.y.translate/t.y,i=n?.z||0;if((o||s||i)&&(r=`translate3d(${o}px, ${s}px, ${i}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:d,rotateX:f,rotateY:p,skewX:m,skewY:g}=n;l&&(r=`perspective(${l}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),p&&(r+=`rotateY(${p}deg) `),m&&(r+=`skewX(${m}deg) `),g&&(r+=`skewY(${g}deg) `)}const a=e.x.scale*t.x,u=e.y.scale*t.y;return(a!==1||u!==1)&&(r+=`scale(${a}, ${u})`),r||"none"}const u4=["TopLeft","TopRight","BottomLeft","BottomRight"],XJ=u4.length,q2=e=>typeof e=="string"?parseFloat(e):e,X2=e=>typeof e=="number"||he.test(e);function JJ(e,t,n,r,o,s){o?(e.opacity=it(0,n.opacity??1,QJ(r)),e.opacityExit=it(t.opacity??1,0,eQ(r))):s&&(e.opacity=it(t.opacity??1,n.opacity??1,r));for(let i=0;i<XJ;i++){const a=`border${u4[i]}Radius`;let u=J2(t,a),l=J2(n,a);if(u===void 0&&l===void 0)continue;u||(u=0),l||(l=0),u===0||l===0||X2(u)===X2(l)?(e[a]=Math.max(it(q2(u),q2(l),r),0),(In.test(l)||In.test(u))&&(e[a]+="%")):e[a]=l}(t.rotate||n.rotate)&&(e.rotate=it(t.rotate||0,n.rotate||0,r))}function J2(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const QJ=d4(0,.5,nE),eQ=d4(.5,.95,dn);function d4(e,t,n){return r=>r<e?0:r>t?1:n(Us(e,t,r))}function tQ(e,t,n){const r=Ot(e)?e:_o(e);return r.start(Am("",r,t,n)),r.animation}function qs(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const nQ=(e,t)=>e.depth-t.depth;class rQ{constructor(){this.children=[],this.isDirty=!1}add(t){wm(this.children,t),this.isDirty=!0}remove(t){Da(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nQ),this.isDirty=!1,this.children.forEach(t)}}function oQ(e,t){const n=Nt.now(),r=({timestamp:o})=>{const s=o-n;s>=t&&(xr(r),e(s-t))};return Ke.setup(r,!0),()=>xr(r)}function sa(e){return Ot(e)?e.get():e}class sQ{constructor(){this.members=[]}add(t){wm(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&&Da(this.members,r)}t.scheduleRender()}remove(t){if(Da(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 s=this.members[o],i=s.instance;if(s.isPresent!==!1&&(!i||i.isConnected!==!1)){r=s;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,s=t.options.layoutDependency;if(!(o!==void 0&&s!==void 0&&o===s)){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:a}=t.options;a===!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 ia={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Gd=["","X","Y","Z"],iQ=1e3;let aQ=0;function Kd(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function f4(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=ME(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ke,!(o||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&f4(r)}function p4({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},a=t?.()){this.id=aQ++,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(uQ),this.nodes.forEach(mQ),this.nodes.forEach(hQ),this.nodes.forEach(dQ)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new rQ)}addEventListener(i,a){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new Cm),this.eventHandlers.get(i).add(a)}notifyListeners(i,...a){const u=this.eventHandlers.get(i);u&&u.notify(...a)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=Fm(i)&&!lJ(i),this.instance=i;const{layoutId:a,layout:u,visualElement:l}=this.options;if(l&&!l.current&&l.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||a)&&(this.isLayoutDirty=!0),e){let d,f=0;const p=()=>this.root.updateBlockedByResize=!1;Ke.read(()=>{f=window.innerWidth}),e(i,()=>{const m=window.innerWidth;m!==f&&(f=m,this.root.updateBlockedByResize=!0,d&&d(),d=oQ(p,250),ia.hasAnimatedSinceResize&&(ia.hasAnimatedSinceResize=!1,this.nodes.forEach(tw)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||l.getDefaultTransition()||wQ,{onLayoutAnimationStart:y,onLayoutAnimationComplete:x}=l.getProps(),w=!this.targetLayout||!l4(this.targetLayout,m),b=!f&&p;if(this.options.layoutRoot||this.resumeFrom||b||f&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Im(g,"layout"),onPlay:y,onComplete:x};(l.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(d,b)}else f||tw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),xr(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(gQ),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&f4(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:a,layout:u}=this.options;if(a===void 0&&!u)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Q2);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ew);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(pQ),this.nodes.forEach(cQ),this.nodes.forEach(lQ)):this.nodes.forEach(ew),this.clearAllSnapshots();const a=Nt.now();bt.delta=Vn(0,1e3/60,a-bt.timestamp),bt.timestamp=a,bt.isProcessing=!0,Vd.update.process(bt),Vd.preRender.process(bt),Vd.render.process(bt),bt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Vm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(fQ),this.sharedNodes.forEach(vQ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ke.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ke.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Dt(this.snapshot.measuredBox.x)&&!Dt(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 i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=vt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(a=!1),a&&this.instance){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!c4(this.projectionDelta),u=this.getTransformTemplate(),l=u?u(this.latestValues,""):void 0,d=l!==this.prevTransformTemplateValue;i&&this.instance&&(a||Br(this.latestValues)||d)&&(o(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const a=this.measurePageBox();let u=this.removeElementScroll(a);return i&&(u=this.removeTransform(u)),xQ(u),{animationId:this.root.animationId,measuredBox:a,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return vt();const a=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(CQ))){const{scroll:l}=this.root;l&&(yo(a.x,l.offset.x),yo(a.y,l.offset.y))}return a}removeElementScroll(i){const a=vt();if(yn(a,i),this.scroll?.wasRoot)return a;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&&yn(a,i),yo(a.x,d.offset.x),yo(a.y,d.offset.y))}return a}applyTransform(i,a=!1){const u=vt();yn(u,i);for(let l=0;l<this.path.length;l++){const d=this.path[l];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&wo(u,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Br(d.latestValues)&&wo(u,d.latestValues)}return Br(this.latestValues)&&wo(u,this.latestValues),u}removeTransform(i){const a=vt();yn(a,i);for(let u=0;u<this.path.length;u++){const l=this.path[u];if(!l.instance||!Br(l.latestValues))continue;dp(l.latestValues)&&l.updateSnapshot();const d=vt(),f=l.measurePageBox();yn(d,f),W2(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,d)}return Br(this.latestValues)&&W2(a,this.latestValues),a}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.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!==bt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==a;if(!(i||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=bt.timestamp;const p=this.getClosestProjectingParent();p&&this.linkedParentVersion!==p.layoutVersion&&!p.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(p&&p.layout?this.createRelativeTarget(p,this.layout.layoutBox,p.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=vt(),this.targetWithTransforms=vt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ZJ(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):yn(this.target,this.layout.layoutBox),qE(this.target,this.targetDelta)):yn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?this.createRelativeTarget(p,this.target,p.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||dp(this.parent.latestValues)||YE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,a,u){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=vt(),this.relativeTargetOrigin=vt(),Wa(this.relativeTargetOrigin,a,u),yn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const i=this.getLead(),a=!!this.resumingFrom||this!==i;let u=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(u=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===bt.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;yn(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;wJ(this.layoutCorrected,this.treeScale,this.path,a),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=vt());const{target:m}=i;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(D2(this.prevProjectionDelta.x,this.projectionDelta.x),D2(this.prevProjectionDelta.y,this.projectionDelta.y)),Rs(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!Y2(this.projectionDelta.x,this.prevProjectionDelta.x)||!Y2(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=bo(),this.projectionDelta=bo(),this.projectionDeltaWithTransform=bo()}setAnimationOrigin(i,a=!1){const u=this.snapshot,l=u?u.latestValues:{},d={...this.latestValues},f=bo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const p=vt(),m=u?u.source:void 0,g=this.layout?this.layout.source:void 0,y=m!==g,x=this.getStack(),w=!x||x.members.length<=1,b=!!(y&&!w&&this.options.crossfade===!0&&!this.path.some(yQ));this.animationProgress=0;let v;this.mixTargetDelta=C=>{const k=C/1e3;nw(f.x,i.x,k),nw(f.y,i.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wa(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bQ(this.relativeTarget,this.relativeTargetOrigin,p,k),v&&YJ(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=vt()),yn(v,this.relativeTarget)),y&&(this.animationValues=d,JJ(d,l,this.latestValues,k,b,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(xr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ke.update(()=>{ia.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=_o(0)),this.motionValue.jump(0,!1),this.currentAnimation=tQ(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),i.onUpdate&&i.onUpdate(a)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(iQ),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:a,target:u,layout:l,latestValues:d}=i;if(!(!a||!u||!l)){if(this!==i&&this.layout&&l&&m4(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||vt();const f=Dt(this.layout.layoutBox.x);u.x.min=i.target.x.min,u.x.max=u.x.min+f;const p=Dt(this.layout.layoutBox.y);u.y.min=i.target.y.min,u.y.max=u.y.min+p}yn(a,u),wo(a,d),Rs(this.projectionDeltaWithTransform,this.layoutCorrected,a,d)}}registerSharedNode(i,a){this.sharedNodes.has(i)||this.sharedNodes.set(i,new sQ),this.sharedNodes.get(i).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:a,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),i&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let a=!1;const{latestValues:u}=i;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(a=!0),!a)return;const l={};u.z&&Kd("z",i,l,this.animationValues);for(let d=0;d<Gd.length;d++)Kd(`rotate${Gd[d]}`,i,l,this.animationValues),Kd(`skew${Gd[d]}`,i,l,this.animationValues);i.render();for(const d in l)i.setStaticValue(d,l[d]),this.animationValues&&(this.animationValues[d]=l[d]);i.scheduleRender()}applyProjectionStyles(i,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=sa(a?.pointerEvents)||"",i.transform=u?u(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=sa(a?.pointerEvents)||""),this.hasProjected&&!Br(this.latestValues)&&(i.transform=u?u({},""):"none",this.hasProjected=!1);return}i.visibility="";const d=l.animationValues||l.latestValues;this.applyTransformsToTarget();let f=qJ(this.projectionDeltaWithTransform,this.treeScale,d);u&&(f=u(d,f)),i.transform=f;const{x:p,y:m}=this.projectionDelta;i.transformOrigin=`${p.origin*100}% ${m.origin*100}% 0`,l.animationValues?i.opacity=l===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:i.opacity=l===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const g in pp){if(d[g]===void 0)continue;const{correct:y,applyTo:x,isCSSVariable:w}=pp[g],b=f==="none"?d[g]:y(d[g],l);if(x){const v=x.length;for(let C=0;C<v;C++)i[x[C]]=b}else w?this.options.visualElement.renderState.vars[g]=b:i[g]=b}this.options.layoutId&&(i.pointerEvents=l===this?sa(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(Q2),this.root.sharedNodes.clear()}}}function cQ(e){e.updateLayout()}function lQ(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,s=t.source!==e.layout.source;o==="size"?Ln(d=>{const f=s?t.measuredBox[d]:t.layoutBox[d],p=Dt(f);f.min=n[d].min,f.max=f.min+p}):m4(o,t.layoutBox,n)&&Ln(d=>{const f=s?t.measuredBox[d]:t.layoutBox[d],p=Dt(n[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const i=bo();Rs(i,n,t.layoutBox);const a=bo();s?Rs(a,e.applyTransform(r,!0),t.measuredBox):Rs(a,n,t.layoutBox);const u=!c4(i);let l=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const m=vt();Wa(m,t.layoutBox,f.layoutBox);const g=vt();Wa(g,n,p.layoutBox),l4(m,g)||(l=!0),d.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:i,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function uQ(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 dQ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function fQ(e){e.clearSnapshot()}function Q2(e){e.clearMeasurements()}function ew(e){e.isLayoutDirty=!1}function pQ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mQ(e){e.resolveTargetDelta()}function hQ(e){e.calcProjection()}function gQ(e){e.resetSkewAndRotation()}function vQ(e){e.removeLeadSnapshot()}function nw(e,t,n){e.translate=it(t.translate,0,n),e.scale=it(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rw(e,t,n,r){e.min=it(t.min,n.min,r),e.max=it(t.max,n.max,r)}function bQ(e,t,n,r){rw(e.x,t.x,n.x,r),rw(e.y,t.y,n.y,r)}function yQ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const wQ={duration:.45,ease:[.4,0,.1,1]},ow=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),sw=ow("applewebkit/")&&!ow("chrome/")?Math.round:dn;function iw(e){e.min=sw(e.min),e.max=sw(e.max)}function xQ(e){iw(e.x),iw(e.y)}function m4(e,t,n){return e==="position"||e==="preserve-aspect"&&!WJ(K2(t),K2(n),.2)}function CQ(e){return e!==e.root&&e.scroll?.wasRoot}const kQ=p4({attachResizeListener:(e,t)=>qs(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Yd={current:void 0},h4=p4({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Yd.current){const e=new kQ({});e.mount(window),e.setOptions({layoutScroll:!0}),Yd.current=e}return Yd.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Um=c.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function aw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function EQ(...e){return t=>{let n=!1;const r=e.map(o=>{const s=aw(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():aw(e[o],null)}}}}function SQ(...e){return c.useCallback(EQ(...e),e)}class $Q extends c.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=lp(r)&&r.offsetWidth||0,s=lp(r)&&r.offsetHeight||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left,i.bottom=s-i.height-i.top}return null}componentDidUpdate(){}render(){return this.props.children}}function OQ({children:e,isPresent:t,anchorX:n,anchorY:r,root:o,pop:s}){const i=c.useId(),a=c.useRef(null),u=c.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=c.useContext(Um),d=e.props?.ref??e?.ref,f=SQ(a,d);return c.useInsertionEffect(()=>{const{width:p,height:m,top:g,left:y,right:x,bottom:w}=u.current;if(t||s===!1||!a.current||!p||!m)return;const b=n==="left"?`left: ${y}`:`right: ${x}`,v=r==="bottom"?`bottom: ${w}`:`top: ${g}`;a.current.dataset.motionPopId=i;const C=document.createElement("style");l&&(C.nonce=l);const k=o??document.head;return k.appendChild(C),C.sheet&&C.sheet.insertRule(`
71
- [data-motion-pop-id="${i}"] {
72
- position: absolute !important;
73
- width: ${p}px !important;
74
- height: ${m}px !important;
75
- ${b}px !important;
76
- ${v}px !important;
77
- }
78
- `),()=>{k.contains(C)&&k.removeChild(C)}},[t]),h.jsx($Q,{isPresent:t,childRef:a,sizeRef:u,pop:s,children:s===!1?e:c.cloneElement(e,{ref:f})})}const LQ=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:s,mode:i,anchorX:a,anchorY:u,root:l})=>{const d=ym(jQ),f=c.useId();let p=!0,m=c.useMemo(()=>(p=!1,{id:f,initial:t,isPresent:n,custom:o,onExitComplete:g=>{d.set(g,!0);for(const y of d.values())if(!y)return;r&&r()},register:g=>(d.set(g,!1),()=>d.delete(g))}),[n,d,r]);return s&&p&&(m={...m}),c.useMemo(()=>{d.forEach((g,y)=>d.set(y,!1))},[n]),c.useEffect(()=>{!n&&!d.size&&r&&r()},[n]),e=h.jsx(OQ,{pop:i==="popLayout",isPresent:n,anchorX:a,anchorY:u,root:l,children:e}),h.jsx(bc.Provider,{value:m,children:e})};function jQ(){return new Map}function g4(e=!0){const t=c.useContext(bc);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,s=c.useId();c.useEffect(()=>{if(e)return o(s)},[e]);const i=c.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,i]:[!0]}const Ai=e=>e.key||"";function cw(e){const t=[];return c.Children.forEach(e,n=>{c.isValidElement(n)&&t.push(n)}),t}const RQ=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:s="sync",propagate:i=!1,anchorX:a="left",anchorY:u="top",root:l})=>{const[d,f]=g4(i),p=c.useMemo(()=>cw(e),[e]),m=i&&!d?[]:p.map(Ai),g=c.useRef(!0),y=c.useRef(p),x=ym(()=>new Map),w=c.useRef(new Set),[b,v]=c.useState(p),[C,k]=c.useState(p);W5(()=>{g.current=!1,y.current=p;for(let S=0;S<C.length;S++){const j=Ai(C[S]);m.includes(j)?(x.delete(j),w.current.delete(j)):x.get(j)!==!0&&x.set(j,!1)}},[C,m.length,m.join("-")]);const E=[];if(p!==b){let S=[...p];for(let j=0;j<C.length;j++){const R=C[j],T=Ai(R);m.includes(T)||(S.splice(j,0,R),E.push(R))}return s==="wait"&&E.length&&(S=E),k(cw(S)),v(p),null}const{forceRender:$}=c.useContext(bm);return h.jsx(h.Fragment,{children:C.map(S=>{const j=Ai(S),R=i&&!d?!1:p===C||m.includes(j),T=()=>{if(w.current.has(j))return;if(w.current.add(j),x.has(j))x.set(j,!0);else return;let A=!0;x.forEach(L=>{L||(A=!1)}),A&&($?.(),k(y.current),i&&f?.(),r&&r())};return h.jsx(LQ,{isPresent:R,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:l,onExitComplete:R?void 0:T,anchorX:a,anchorY:u,children:S},j)})})},v4=c.createContext({strict:!1}),lw={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 uw=!1;function PQ(){if(uw)return;const e={};for(const t in lw)e[t]={isEnabled:n=>lw[t].some(r=>!!n[r])};UE(e),uw=!0}function b4(){return PQ(),gJ()}function MQ(e){const t=b4();for(const n in e)t[n]={...t[n],...e[n]};UE(t)}const TQ=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 Za(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||TQ.has(e)}let y4=e=>!Za(e);function IQ(e){typeof e=="function"&&(y4=t=>t.startsWith("on")?!Za(t):e(t))}try{IQ(require("@emotion/is-prop-valid").default)}catch{}function AQ(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(y4(o)||n===!0&&Za(o)||!t&&!Za(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const xc=c.createContext({});function _Q(e,t){if(wc(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ys(n)?n:void 0,animate:Ys(r)?r:void 0}}return e.inherit!==!1?t:{}}function NQ(e){const{initial:t,animate:n}=_Q(e,c.useContext(xc));return c.useMemo(()=>({initial:t,animate:n}),[dw(t),dw(n)])}function dw(e){return Array.isArray(e)?e.join(" "):e}const Gm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function w4(e,t,n){for(const r in t)!Ot(t[r])&&!QE(r,n)&&(e[r]=t[r])}function DQ({transformTemplate:e},t){return c.useMemo(()=>{const n=Gm();return Wm(n,t,e),Object.assign({},n.vars,n.style)},[t])}function VQ(e,t){const n=e.style||{},r={};return w4(r,n,e),Object.assign(r,DQ(e,t)),r}function zQ(e,t){const n={},r=VQ(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 x4=()=>({...Gm(),attrs:{}});function FQ(e,t,n,r){const o=c.useMemo(()=>{const s=x4();return e4(s,t,n4(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};w4(s,e.style,e),o.style={...s,...o.style}}return o}const BQ=["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 Km(e){return typeof e!="string"||e.includes("-")?!1:!!(BQ.indexOf(e)>-1||/[A-Z]/u.test(e))}function HQ(e,t,n,{latestValues:r},o,s=!1,i){const u=(i??Km(e)?FQ:zQ)(t,r,o,e),l=AQ(t,typeof e=="string",s),d=e!==c.Fragment?{...l,...u,ref:n}:{},{children:f}=t,p=c.useMemo(()=>Ot(f)?f.get():f,[f]);return c.createElement(e,{...d,children:p})}function WQ({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:ZQ(n,r,o,e),renderState:t()}}function ZQ(e,t,n,r){const o={},s=r(e,{});for(const p in s)o[p]=sa(s[p]);let{initial:i,animate:a}=e;const u=wc(e),l=WE(e);t&&l&&!u&&e.inherit!==!1&&(i===void 0&&(i=t.initial),a===void 0&&(a=t.animate));let d=n?n.initial===!1:!1;d=d||i===!1;const f=d?a:i;if(f&&typeof f!="boolean"&&!yc(f)){const p=Array.isArray(f)?f:[f];for(let m=0;m<p.length;m++){const g=_m(e,p[m]);if(g){const{transitionEnd:y,transition:x,...w}=g;for(const b in w){let v=w[b];if(Array.isArray(v)){const C=d?v.length-1:0;v=v[C]}v!==null&&(o[b]=v)}for(const b in y)o[b]=y[b]}}}return o}const C4=e=>(t,n)=>{const r=c.useContext(xc),o=c.useContext(bc),s=()=>WQ(e,t,r,o);return n?s():ym(s)},UQ=C4({scrapeMotionValuesFromProps:Zm,createRenderState:Gm}),GQ=C4({scrapeMotionValuesFromProps:r4,createRenderState:x4}),KQ=Symbol.for("motionComponentSymbol");function YQ(e,t,n){const r=c.useRef(n);c.useInsertionEffect(()=>{r.current=n});const o=c.useRef(null);return c.useCallback(s=>{s&&e.onMount?.(s),t&&(s?t.mount(s):t.unmount());const i=r.current;if(typeof i=="function")if(s){const a=i(s);typeof a=="function"&&(o.current=a)}else o.current?(o.current(),o.current=null):i(s);else i&&(i.current=s)},[t])}const k4=c.createContext({});function fo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function qQ(e,t,n,r,o,s){const{visualElement:i}=c.useContext(xc),a=c.useContext(v4),u=c.useContext(bc),l=c.useContext(Um),d=l.reducedMotion,f=l.skipAnimations,p=c.useRef(null),m=c.useRef(!1);r=r||a.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:i,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:s}),m.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));const g=p.current,y=c.useContext(k4);g&&!g.projection&&o&&(g.type==="html"||g.type==="svg")&&XQ(p.current,n,o,y);const x=c.useRef(!1);c.useInsertionEffect(()=>{g&&x.current&&g.update(n,u)});const w=n[PE],b=c.useRef(!!w&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return W5(()=>{m.current=!0,g&&(x.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),b.current&&g.animationState&&g.animationState.animateChanges())}),c.useEffect(()=>{g&&(!b.current&&g.animationState&&g.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),b.current=!1),g.enteringChildren=void 0)}),g}function XQ(e,t,n,r){const{layoutId:o,layout:s,drag:i,dragConstraints:a,layoutScroll:u,layoutRoot:l,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:E4(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!i||a&&fo(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:u,layoutRoot:l})}function E4(e){if(e)return e.options.allowProjection!==!1?e.projection:E4(e.parent)}function qd(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&MQ(r);const s=n?n==="svg":Km(e),i=s?GQ:UQ;function a(l,d){let f;const p={...c.useContext(Um),...l,layoutId:JQ(l)},{isStatic:m}=p,g=NQ(l),y=i(l,m);if(!m&&H5){QQ();const x=eee(p);f=x.MeasureLayout,g.visualElement=qQ(e,y,p,o,x.ProjectionNode,s)}return h.jsxs(xc.Provider,{value:g,children:[f&&g.visualElement?h.jsx(f,{visualElement:g.visualElement,...p}):null,HQ(e,l,YQ(y,g.visualElement,d),y,m,t,s)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=c.forwardRef(a);return u[KQ]=e,u}function JQ({layoutId:e}){const t=c.useContext(bm).id;return t&&e!==void 0?t+"-"+e:e}function QQ(e,t){c.useContext(v4).strict}function eee(e){const t=b4(),{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 tee(e,t){if(typeof Proxy>"u")return qd;const n=new Map,r=(s,i)=>qd(s,i,e,t),o=(s,i)=>r(s,i);return new Proxy(o,{get:(s,i)=>i==="create"?r:(n.has(i)||n.set(i,qd(i,void 0,e,t)),n.get(i))})}const nee=(e,t)=>t.isSVG??Km(e)?new TJ(t):new OJ(t,{allowProjection:e!==c.Fragment});class ree extends jr{constructor(t){super(t),t.animationState||(t.animationState=DJ(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();yc(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 oee=0;class see extends jr{constructor(){super(...arguments),this.id=oee++}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 iee={animation:{Feature:ree},exit:{Feature:see}};function ci(e){return{point:{x:e.pageX,y:e.pageY}}}const aee=e=>t=>zm(t)&&e(t,ci(t));function Ps(e,t,n,r){return qs(e,t,aee(n),r)}const S4=({current:e})=>e?e.ownerDocument.defaultView:null,fw=(e,t)=>Math.abs(e-t);function cee(e,t){const n=fw(e.x,t.x),r=fw(e.y,t.y);return Math.sqrt(n**2+r**2)}const pw=new Set(["auto","scroll"]);class $4{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:i=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=Jd(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=cee(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!y)return;const{point:x}=m,{timestamp:w}=bt;this.history.push({...x,timestamp:w});const{onStart:b,onMove:v}=this.handlers;g||(b&&b(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=Xd(g,this.transformPagePoint),Ke.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:y,onSessionEnd:x,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=Jd(m.type==="pointercancel"?this.lastMoveEventInfo:Xd(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,b),x&&x(m,b)},!zm(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=i,this.contextWindow=o||window;const u=ci(t),l=Xd(u,this.transformPagePoint),{point:d}=l,{timestamp:f}=bt;this.history=[{...d,timestamp:f}];const{onSessionStart:p}=n;p&&p(t,Jd(l,this.history)),this.removeListeners=si(Ps(this.contextWindow,"pointermove",this.handlePointerMove),Ps(this.contextWindow,"pointerup",this.handlePointerUp),Ps(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(pw.has(r.overflowX)||pw.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},s={x:o.x-n.x,y:o.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,o),Ke.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),xr(this.updatePoint)}}function Xd(e,t){return t?{point:t(e.point)}:e}function mw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Jd({point:e},t){return{point:e,delta:mw(e,O4(t)),offset:mw(e,lee(t)),velocity:uee(t,.1)}}function lee(e){return e[0]}function O4(e){return e[e.length-1]}function uee(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=O4(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Cn(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>Cn(t)*2&&(r=e[1]);const s=ln(o.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const i={x:(o.x-r.x)/s,y:(o.y-r.y)/s};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function dee(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?it(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?it(n,e,r.max):Math.min(e,n)),e}function hw(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 fee(e,{top:t,left:n,bottom:r,right:o}){return{x:hw(e.x,n,o),y:hw(e.y,t,r)}}function gw(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 pee(e,t){return{x:gw(e.x,t.x),y:gw(e.y,t.y)}}function mee(e,t){let n=.5;const r=Dt(e),o=Dt(t);return o>r?n=Us(t.min,t.max-r,e.min):r>o&&(n=Us(e.min,e.max-o,t.min)),Vn(0,1,n)}function hee(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 mp=.35;function gee(e=mp){return e===!1?e=0:e===!0&&(e=mp),{x:vw(e,"left","right"),y:vw(e,"top","bottom")}}function vw(e,t,n){return{min:bw(e,t),max:bw(e,n)}}function bw(e,t){return typeof e=="number"?e:e[t]||0}const vee=new WeakMap;class bee{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=vt(),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 s=f=>{n&&this.snapToCursor(ci(f).point),this.stopAnimation()},i=(f,p)=>{const{drag:m,dragPropagation:g,onDragStart:y}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=UX(m),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=p,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ln(w=>{let b=this.getAxisMotionValue(w).get()||0;if(In.test(b)){const{projection:v}=this.visualElement;if(v&&v.layout){const C=v.layout.layoutBox[w];C&&(b=Dt(C)*(parseFloat(b)/100))}}this.originPoint[w]=b}),y&&Ke.update(()=>y(f,p),!1,!0),sp(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(f,p)=>{this.latestPointerEvent=f,this.latestPanInfo=p;const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:y,onDrag:x}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:w}=p;if(g&&this.currentDirection===null){this.currentDirection=wee(w),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",p.point,w),this.updateAxis("y",p.point,w),this.visualElement.render(),x&&Ke.update(()=>x(f,p),!1,!0)},u=(f,p)=>{this.latestPointerEvent=f,this.latestPanInfo=p,this.stop(f,p),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 $4(t,{onSessionStart:s,onStart:i,onMove:a,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:S4(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!r)return;const{velocity:i}=o;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Ke.postRender(()=>a(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||!_i(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let i=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(i=dee(i,this.constraints[t],this.elastic[t])),s.set(i)}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&&fo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=fee(r.layoutBox,t):this.constraints=!1,this.elastic=gee(n),o!==this.constraints&&!fo(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Ln(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=hee(r.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!fo(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=xJ(r,o.root,this.visualElement.getTransformPagePoint());let i=pee(o.layout.layoutBox,s);if(n){const a=n(bJ(i));this.hasMutatedConstraints=!!a,a&&(i=KE(a))}return i}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:s,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},l=Ln(d=>{if(!_i(d,n,this.currentDirection))return;let f=u&&u[d]||{};i&&(f={min:0,max:0});const p=o?200:1e6,m=o?40:1e7,g={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10,...s,...f};return this.startAxisValueAnimation(d,g)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return sp(this.visualElement,t),r.start(Am(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ln(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){Ln(n=>{const{drag:r}=this.getProps();if(!_i(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:i,max:a}=o.layout.layoutBox[n],u=s.get()||0;s.set(t[n]-it(i,a,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!fo(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Ln(i=>{const a=this.getAxisMotionValue(i);if(a&&this.constraints!==!1){const u=a.get();o[i]=mee({min:u,max:u},this.constraints[i])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Ln(i=>{if(!_i(i,t,null))return;const a=this.getAxisMotionValue(i),{min:u,max:l}=this.constraints[i];a.set(it(u,l,o[i]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;vee.set(this.visualElement,this);const t=this.visualElement.current,n=Ps(t,"pointerdown",l=>{const{drag:d,dragListener:f=!0}=this.getProps(),p=l.target,m=p!==t&&JX(p);d&&f&&!m&&this.start(l)});let r;const o=()=>{const{dragConstraints:l}=this.getProps();fo(l)&&l.current&&(this.constraints=this.resolveRefConstraints(),r||(r=yee(t,l.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,i=s.addEventListener("measure",o);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),Ke.read(o);const a=qs(window,"resize",()=>this.scalePositionWithinConstraints()),u=s.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:d})=>{this.isDragging&&d&&(Ln(f=>{const p=this.getAxisMotionValue(f);p&&(this.originPoint[f]+=l[f].translate,p.set(p.get()+l[f].translate))}),this.visualElement.render())}));return()=>{a(),n(),i(),u&&u(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:i=mp,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:s,dragElastic:i,dragMomentum:a}}}function yw(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function yee(e,t,n){const r=$2(e,yw(n)),o=$2(t,yw(n));return()=>{r(),o()}}function _i(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function wee(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class xee extends jr{constructor(t){super(t),this.removeGroupControls=dn,this.removeListeners=dn,this.controls=new bee(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||dn}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 Qd=e=>(t,n)=>{e&&Ke.update(()=>e(t,n),!1,!0)};class Cee extends jr{constructor(){super(...arguments),this.removePointerDownListener=dn}onPointerDown(t){this.session=new $4(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:S4(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Qd(t),onStart:Qd(n),onMove:Qd(r),onEnd:(s,i)=>{delete this.session,o&&Ke.postRender(()=>o(s,i))}}}mount(){this.removePointerDownListener=Ps(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 ef=!1;class kee extends c.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&o&&r.register(s),ef&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ia.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:s}=this.props,{projection:i}=r;return i&&(i.isPresent=s,t.layoutDependency!==n&&i.setOptions({...i.options,layoutDependency:n}),ef=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?i.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?i.promote():i.relegate()||Ke.postRender(()=>{const a=i.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Vm.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;ef=!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 L4(e){const[t,n]=g4(),r=c.useContext(bm);return h.jsx(kee,{...e,layoutGroup:r,switchLayoutGroup:c.useContext(k4),isPresent:t,safeToRemove:n})}const Eee={pan:{Feature:Cee},drag:{Feature:xee,ProjectionNode:h4,MeasureLayout:L4}};function ww(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=r[o];s&&Ke.postRender(()=>s(t,ci(t)))}class See extends jr{mount(){const{current:t}=this.node;t&&(this.unmount=KX(t,(n,r)=>(ww(this.node,r,"Start"),o=>ww(this.node,o,"End"))))}unmount(){}}class $ee extends jr{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=si(qs(this.node.current,"focus",()=>this.onFocus()),qs(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function xw(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),s=r[o];s&&Ke.postRender(()=>s(t,ci(t)))}class Oee extends jr{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=eJ(t,(o,s)=>(xw(this.node,s,"Start"),(i,{success:a})=>xw(this.node,i,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:r?.tap===!1})}unmount(){}}const hp=new WeakMap,tf=new WeakMap,Lee=e=>{const t=hp.get(e.target);t&&t(e)},jee=e=>{e.forEach(Lee)};function Ree({root:e,...t}){const n=e||document;tf.has(n)||tf.set(n,{});const r=tf.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(jee,{root:e,...t})),r[o]}function Pee(e,t,n){const r=Ree(t);return hp.set(e,n),r.observe(e),()=>{hp.delete(e),r.unobserve(e)}}const Mee={some:0,all:1};class Tee extends jr{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:s}=t,i={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Mee[o]},a=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,s&&!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(),p=l?d:f;p&&p(u)};return Pee(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Iee(t,n))&&this.startObserver()}unmount(){}}function Iee({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Aee={inView:{Feature:Tee},tap:{Feature:Oee},focus:{Feature:$ee},hover:{Feature:See}},_ee={layout:{ProjectionNode:h4,MeasureLayout:L4}},Nee={...iee,...Aee,...Eee,..._ee},Dee=tee(Nee,nee),Vee={borderColor:"var(--hud-chrome-border, oklch(var(--border)))"},zee={backgroundColor:"var(--hud-chrome-border, oklch(var(--border)))"},Fee="bg-popover/95 backdrop-blur-xl border rounded-lg shadow-2xl py-1 min-w-[180px] z-[200] outline-none",Bee="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",Hee="w-4 h-4 flex items-center justify-center shrink-0 text-muted-foreground",Wee="flex-1 min-w-0 truncate",Zee="text-muted-foreground text-[10px] ml-4 tracking-wider",Uee="px-3 py-1 text-[10px] font-mono uppercase tracking-widest text-muted-foreground",Gee="h-px my-1 border-0",Kee="z-[200]";function Yee(e){return"type"in e&&e.type==="separator"}function qee(e){return"type"in e&&e.type==="group"}function Cw({item:e}){return h.jsxs(pU,{disabled:e.disabled,onClick:e.action,label:e.label,className:Bee,children:[e.icon&&h.jsx("span",{className:Hee,children:e.icon}),h.jsx("span",{className:Wee,children:e.label}),e.shortcut&&h.jsx("span",{className:Zee,children:e.shortcut})]})}const j4=fx.forwardRef(({items:e},t)=>h.jsx(Dee.div,{ref:t,initial:{opacity:0,scale:.96},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.96},transition:{duration:.1,ease:"easeOut"},children:h.jsx(uY,{className:Fee,style:Vee,"aria-label":"Context menu",children:e.map((n,r)=>Yee(n)?h.jsx(FY,{className:Gee,style:zee},`sep-${r}`):qee(n)?h.jsxs(dU,{children:[h.jsx(fU,{className:Uee,children:n.label}),n.items.map(o=>h.jsx(Cw,{item:o},o.id))]},`grp-${r}`):h.jsx(Cw,{item:n},n.id))})}));j4.displayName="PopupContent";function Xee(e,t){switch(t){case"alt":return e.altKey;case"meta":return e.metaKey;case"ctrl":return e.ctrlKey;default:return e.shiftKey}}function Jee({items:e,children:t,nativeMenuModifier:n="alt",activationMode:r="default"}){const o=c.useRef(!1);return e.length===0?h.jsx(h.Fragment,{children:t}):h.jsxs(BY,{children:[h.jsx(HY,{render:h.jsx("div",{style:{display:"contents"},"aria-haspopup":"menu",onKeyDownCapture:s=>{if(s.defaultPrevented||!(s.key==="ContextMenu"||s.shiftKey&&s.key==="F10"))return;s.preventDefault(),s.stopPropagation();const u=(s.target instanceof HTMLElement?s.target:s.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{s.currentTarget.dispatchEvent(new MouseEvent("contextmenu",{bubbles:!0,cancelable:!0,view:window,clientX:l,clientY:d,button:2}))}finally{o.current=!1}},onContextMenuCapture:s=>{if(o.current)return;const i=Xee(s,n);(r==="modifier"?!i:i)&&s.stopPropagation()}}),children:t}),h.jsx(fY,{children:h.jsx(SY,{className:Kee,sideOffset:4,children:h.jsx(RQ,{children:h.jsx(j4,{items:e})})})})]})}const kw=()=>{},Qee={x:0,y:0},ete=({children:e,hud:t,mode:n="canvas",panOffset:r=Qee,scale:o=1,onPan:s=kw,onZoom:i=kw,onPanStart:a,onPanEnd:u,isTransitioning:l=!1,onViewportChange:d,onCanvasClick:f,canvasProps:p,zoomSensitivity:m,zoomControlsRightOffset:g,zoomControlsBottomOffset:y,showZoomControls:x=!0,viewportShiftX:w=0,canvasContextMenuItems:b,canvasContextMenuActivationMode:v})=>{const C=c.useRef(null),k=c.useRef(o);k.current=o;const E=c.useRef(i);E.current=i;const $=c.useRef(s);$.current=s;const S=c.useRef(a);S.current=a;const j=c.useRef(u);j.current=u;const R=c.useRef(m);R.current=m;const[T,A]=c.useState(!1),L=c.useRef(!1),[V,I]=c.useState(!1),_=c.useRef(!1),N=c.useRef({x:0,y:0}),O=c.useRef(M=>{const q=M.target||document.activeElement;if(!q)return!1;const ee=q.tagName;return!!(ee==="INPUT"||ee==="TEXTAREA"||q.isContentEditable||q.closest?.(".xterm"))});c.useEffect(()=>{if(n!=="canvas")return;const M=K=>{K.key!==" "||K.repeat||O.current(K)||l||(K.preventDefault(),L.current=!0,A(!0))},q=K=>{K.key===" "&&L.current&&(L.current=!1,A(!1),_.current&&(_.current=!1,I(!1),j.current?.()))},ee=()=>{L.current&&(L.current=!1,A(!1),_.current&&(_.current=!1,I(!1),j.current?.()))};return window.addEventListener("keydown",M),window.addEventListener("keyup",q),window.addEventListener("blur",ee),()=>{window.removeEventListener("keydown",M),window.removeEventListener("keyup",q),window.removeEventListener("blur",ee)}},[n,l]);const z=c.useCallback(M=>{M.button===0&&(M.preventDefault(),_.current=!0,I(!0),N.current={x:M.clientX,y:M.clientY},S.current?.())},[]);return c.useEffect(()=>{if(!T)return;const M=ee=>{if(!_.current)return;const K=(ee.clientX-N.current.x)/k.current,ue=(ee.clientY-N.current.y)/k.current;N.current={x:ee.clientX,y:ee.clientY},$.current({x:K,y:ue})},q=()=>{_.current&&(_.current=!1,I(!1),j.current?.())};return window.addEventListener("mousemove",M),window.addEventListener("mouseup",q),()=>{window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",q)}},[T]),c.useEffect(()=>{if(n!=="canvas")return;const M=q=>{if(q.ctrlKey||q.metaKey){q.preventDefault();const ee=k.current,K=-q.deltaY*.001*(R.current??1),ue=Math.min(Math.max(.2,ee+K),3);k.current=ue,E.current(ue)}};return window.addEventListener("wheel",M,{passive:!1}),()=>window.removeEventListener("wheel",M)},[n]),c.useEffect(()=>{if(!d)return;let M=null;const q=()=>{M&&cancelAnimationFrame(M),M=requestAnimationFrame(()=>{d({width:window.innerWidth,height:window.innerHeight})})};return q(),window.addEventListener("resize",q),()=>{window.removeEventListener("resize",q),M&&cancelAnimationFrame(M)}},[d]),n==="panel"?h.jsxs("div",{ref:C,className:"fixed inset-0 bg-background text-foreground overflow-hidden font-sans select-none z-0",children:[h.jsx("div",{className:"absolute inset-0 z-10 overflow-auto frame-scrollbar",children:e}),h.jsx("div",{className:"fixed inset-0 pointer-events-none overflow-hidden",style:{zIndex:Po.zIndex.navigationStack},children:t})]}):h.jsxs("div",{ref:C,className:"fixed inset-0 bg-background text-foreground overflow-hidden font-sans select-none z-0",children:[h.jsx(Jee,{items:b??[],activationMode:v,children:h.jsx(m6,{panOffset:r,scale:o,onPan:s,onPanStart:a,onPanEnd:u,isPanLocked:l,onClick:f,showGuides:p?.showGuides,onGuidesChange:p?.onGuidesChange,gridOpacity:p?.gridOpacity})}),h.jsx("div",{className:"absolute z-10 pointer-events-none",style:{left:"50%",top:"50%",zoom:o,transform:w?`translateX(${w}px)`:void 0,transition:"transform 240ms cubic-bezier(0.34, 1.7, 0.64, 1)"},children:h.jsx("div",{style:{position:"absolute",left:r.x,top:r.y},children:e})}),T&&h.jsx("div",{className:`fixed inset-0 z-20 ${V?"cursor-grabbing":"cursor-grab"}`,onMouseDown:z}),x&&h.jsx("div",{className:"absolute z-30 transition-[bottom,right] duration-200",style:{bottom:`calc(${44+(y??0)}px + var(--hud-player-panel-offset, 0px))`,right:16+(g??0)},children:h.jsx(nZ,{scale:o,onZoom:M=>i(M)})}),h.jsx("div",{className:"fixed inset-0 pointer-events-none overflow-hidden",style:{zIndex:Po.zIndex.navigationStack},children:t})]})},gp=({side:e,title:t,icon:n,isCollapsed:r=!1,onToggleCollapse:o,headerActions:s,footer:i,style:a,width:u,onResizeStart:l,floating:d=!1,children:f})=>{const p="var(--hud-chrome-border, oklch(var(--border) / 0.8))",{panelTopOffset:m}=tm();if(r){const C=e==="left"?XH:QH;return h.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:h.jsx(C,{size:14,className:"text-muted-foreground group-hover:text-accent transition-colors",strokeWidth:1.5})})}const g=e==="left"?qH:JH,w=`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"}`,b=d?{boxShadow:`var(--hud-shadow-panel-float, 0 0 0 1px ${p}, ${e==="left"?"18px":"-18px"} 0 48px -12px rgba(0, 0, 0, 0.55))`,backdropFilter:"blur(24px) saturate(140%)",WebkitBackdropFilter:"blur(24px) saturate(140%)"}:{},v={position:"fixed",top:m,bottom:28,left:e==="left"?0:void 0,right:e==="right"?0:void 0,width:`${u||280}px`,borderColor:p,...b,...a};return h.jsxs("div",{"data-frame-panel":e==="left"?"manifest":"inspector","data-floating":d?"true":void 0,className:`${w} pointer-events-none select-none font-mono text-[11px] flex flex-col`,style:v,children:[l&&h.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:[h.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:p}}),h.jsxs("div",{className:"flex flex-col gap-[3px] opacity-0 group-hover:opacity-100 transition-opacity",children:[h.jsx("div",{className:"w-[3px] h-[3px] rounded-full bg-muted-foreground/70 group-hover:bg-accent/70"}),h.jsx("div",{className:"w-[3px] h-[3px] rounded-full bg-muted-foreground/70 group-hover:bg-accent/70"}),h.jsx("div",{className:"w-[3px] h-[3px] rounded-full bg-muted-foreground/70 group-hover:bg-accent/70"})]})]}),!l&&h.jsx("div",{className:`absolute top-0 ${e==="left"?"right-0":"left-0"} bottom-0 w-px`,style:{backgroundColor:p}}),h.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"}),h.jsxs("div",{className:"pointer-events-auto flex-1 flex flex-col overflow-hidden",children:[t&&h.jsx("div",{className:"shrink-0 p-4",style:{borderBottom:`1px dashed ${p}`},children:h.jsxs("div",{className:"flex items-center justify-between text-foreground text-[10px]",children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[n&&h.jsx("span",{className:"text-muted-foreground",children:n}),h.jsx("span",{className:"tracking-[0.18em] font-normal uppercase text-muted-foreground",children:t})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[s,o&&h.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:h.jsx(g,{size:12})})]})]})}),h.jsx("div",{className:"flex-1 overflow-y-auto frame-scrollbar",children:f}),i&&h.jsx("div",{className:"shrink-0",children:i})]})]})},tte={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"}},nte={borderColor:"var(--hud-chrome-border, oklch(var(--border)))"},rte=({left:e,viewport:t,right:n,isMinimapCollapsed:r=!1,onExpandMinimap:o,status:s={label:"READY",color:"emerald"},onStatusClick:i,onToggleTerminal:a,isTerminalOpen:u=!1,terminalLabel:l="Console",embedded:d=!1})=>{const[f,p]=c.useState(new Date),[m,g]=c.useState(!1),[y,x]=c.useState(!1);c.useEffect(()=>{x(!0);const $=setInterval(()=>p(new Date),1e3);return()=>clearInterval($)},[]);const w=tte[s.color],b=s.title??s.label,v=`shrink-0 flex items-center gap-2 ${w.text}`,C=h.jsxs(h.Fragment,{children:[h.jsx("span",{className:`inline-block h-1.5 w-1.5 rounded-full ${w.dot}`}),h.jsx("span",{className:"font-light tracking-[0.18em] uppercase text-[9px]",children:s.label})]}),k=async()=>{if(!t)return;const $=`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($),g(!0),setTimeout(()=>g(!1),1500)}catch{}},E=d?"relative h-full w-full bg-card/95 backdrop-blur-xl":EP.statusBar;return h.jsxs("div",{"data-frame-panel":"status-bar",className:`${E} 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:nte,children:[h.jsxs("div",{className:"min-w-0 flex items-center gap-3 md:gap-4 overflow-hidden",children:[r&&o&&h.jsxs(h.Fragment,{children:[h.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:[h.jsx(ZH,{size:10}),h.jsx("span",{className:"text-[9px] font-light tracking-[0.18em] uppercase",children:"Map"})]}),h.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/40 select-none",children:"·"})]}),i?h.jsx("button",{type:"button",onClick:i,className:`${v} rounded transition-opacity hover:opacity-85 focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none`,title:b,"aria-label":b,children:C}):h.jsx("div",{className:v,title:s.title,children:C}),e&&h.jsxs(h.Fragment,{children:[h.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/40 select-none",children:"·"}),e]})]}),t&&h.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:h.jsxs("button",{onClick:k,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:[h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx("span",{className:"text-muted-foreground tracking-[0.18em] text-[9px] uppercase",children:"Pan"}),h.jsxs("span",{className:`tabular-nums ${m?"text-accent":""}`,children:[t.pan.x.toFixed(0),",",t.pan.y.toFixed(0)]})]}),h.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/40 select-none",children:"·"}),h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx("span",{className:"text-muted-foreground tracking-[0.18em] text-[9px] uppercase",children:"Size"}),h.jsxs("span",{className:`tabular-nums ${m?"text-accent":""}`,children:[t.canvasSize?.w??1024,"x",t.canvasSize?.h??1024]})]}),h.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/40 select-none",children:"·"}),h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx("span",{className:"text-muted-foreground tracking-[0.18em] text-[9px] uppercase",children:"Zoom"}),h.jsxs("span",{className:`tabular-nums ${m?"text-accent":""}`,children:[(t.zoom*100).toFixed(0),"%"]})]})]})}),h.jsxs("div",{className:"shrink-0 flex items-center gap-3 md:gap-4",children:[a&&h.jsxs(h.Fragment,{children:[h.jsxs("button",{onClick:a,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:[h.jsxs("span",{className:"text-[10px]",children:[">","_"]}),h.jsx("span",{className:"uppercase text-[9px] font-light tracking-[0.18em]",children:l})]}),h.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/40 select-none",children:"·"})]}),n,n&&h.jsx("span",{"aria-hidden":"true",className:"text-muted-foreground/40 select-none",children:"·"}),h.jsxs("div",{className:"flex items-center gap-1.5 text-foreground min-w-[60px] justify-end",children:[h.jsx(HH,{size:11,className:"text-muted-foreground"}),h.jsx("span",{children:y?f.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"--:--"})]})]})]})},ote=({onOpenCommandPalette:e,extraControls:t})=>h.jsx("div",{className:"select-none font-mono text-[11px]",style:{borderTop:"1px dashed var(--hud-chrome-border, oklch(var(--border) / 0.6))"},children:h.jsxs("div",{className:"px-3 py-2 flex items-center justify-between",children:[h.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:[h.jsx(wk,{size:10}),h.jsx("span",{className:"tracking-[0.18em] font-normal uppercase text-[10px]",children:"Command Palette"})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[t,h.jsx("kbd",{className:"text-[10px] text-muted-foreground font-mono",children:"⌘K"})]})]})}),Ew={"light-prod":"Lean launch","max-pro":"Max pro","scope-instrument":"Scope"};function ste(e){const t=v6(e);return t===!0?"on":t===!1?"off":"default"}function ite(e,t){const n=new Set([t]);for(const r of e)r.requiredTier&&n.add(String(r.requiredTier));return[...n]}function ate({isOpen:e,onClose:t,audienceOptions:n}){const r=h6(),{ref:o,onKeyDown:s}=gx(e),i=pa(),{activeBundle:a,applyBundle:u,resetBundle:l}=bx(),d=c.useMemo(()=>r?.all()??[],[r]);if(c.useEffect(()=>{if(!e)return;const g=y=>{y.key==="Escape"&&(y.preventDefault(),t())};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[e,t]),!e||!r)return null;const f=r.audience(),p=r.layers.local?.audience??"",m=n??ite(d,f.tier);return h.jsx("div",{className:"scout-flag-backdrop",onClick:t,children:h.jsxs("div",{...o,className:"scout-flag-panel",role:"dialog","aria-modal":"true","aria-labelledby":"scout-flag-title",onKeyDown:s,onClick:g=>g.stopPropagation(),children:[h.jsxs("header",{className:"scout-flag-head",children:[h.jsxs("div",{className:"scout-flag-head-copy",children:[h.jsx("h2",{id:"scout-flag-title",className:"scout-flag-title",children:"Feature flags"}),h.jsxs("p",{className:"scout-flag-subtitle",children:["Audience ",h.jsx("strong",{children:f.tier})," · local overrides apply instantly"]})]}),h.jsx("button",{type:"button",className:"btn btn--ghost btn--sm btn--icon","aria-label":"Close feature flags",onClick:t,children:h.jsx(Ip,{size:14,strokeWidth:1.8})})]}),h.jsxs("div",{className:"scout-flag-toolbar",children:[h.jsx("label",{className:"scout-flag-toolbar-label",htmlFor:"scout-flag-audience",children:"Local audience"}),h.jsxs("select",{id:"scout-flag-audience",className:"scout-flag-select",value:p,onChange:g=>r.setLocalAudienceOverride(g.target.value||null),children:[h.jsxs("option",{value:"",children:["Default (",f.tier,")"]}),m.map(g=>h.jsx("option",{value:g,children:g},g))]}),i&&h.jsx("div",{className:"scout-flag-bundles",children:Object.keys(Ew).map(g=>h.jsx("button",{type:"button",className:`chip chip--mono chip--caps chip--sm${a===g?" chip--working":" chip--ghost"}`,onClick:()=>u(g),children:Ew[g]},g))})]}),h.jsx("div",{className:"scout-flag-list",children:d.map(g=>{const y=r.layers.local?.flags?.[g.key];return h.jsxs("div",{className:"scout-flag-row",children:[h.jsxs("div",{className:"scout-flag-key",children:[h.jsx("div",{className:"scout-flag-key-name",children:g.key}),h.jsx("div",{className:"scout-flag-key-desc",children:g.definition?.description??g.definition?.label??g.reason})]}),h.jsx("span",{className:`chip chip--mono chip--caps chip--sm ${g.enabled?"chip--success":"chip--neutral"}`,children:g.enabled?"on":"off"}),h.jsx("span",{className:"scout-flag-meta",title:`${g.layer} · ${g.reason}`,children:g.layer}),h.jsxs("select",{className:"scout-flag-select","aria-label":`Override ${g.key}`,value:ste(y),onChange:x=>{const w=x.target.value;r.setLocalOverride(g.key,w==="default"?null:w==="on")},children:[h.jsx("option",{value:"default",children:"default"}),h.jsx("option",{value:"on",children:"on"}),h.jsx("option",{value:"off",children:"off"})]})]},g.key)})}),h.jsxs("footer",{className:"scout-flag-foot",children:[h.jsxs("span",{className:"scout-flag-count",children:[d.length," flags"]}),h.jsx("button",{type:"button",className:"btn btn--ghost btn--sm btn--mono",onClick:l,children:"Reset flags"})]})]})})}const cte="3.35 3.35 13.3 13.3";function R4({className:e=""}){return h.jsxs("svg",{viewBox:cte,"aria-hidden":"true",className:e,fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",children:[h.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"}),h.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 lte={"light-prod":"lean","max-pro":"max","scope-instrument":"scope"};function ute({onOpenPanel:e}){const{activeBundle:t,toggleBundle:n}=bx();return pa()?h.jsxs("div",{className:"scout-dev-flag",children:[h.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:lte[t]}),h.jsx("button",{type:"button",className:"btn btn--ghost btn--sm btn--icon",title:"Open feature flags","aria-label":"Open feature flags",onClick:e,children:h.jsx(C3,{size:11,strokeWidth:1.8})})]}):null}const{statusBarHeight:Ni}=Po.layout,Sw=120,$w={borderColor:"var(--hud-chrome-border, oklch(var(--border)))"},dte={backgroundColor:"var(--hud-chrome-border, oklch(var(--border)))"},fte=({isOpen:e,onClose:t,onToggleMaximize:n,isMaximized:r=!1,height:o=320,onHeightChange:s,title:i,headerActions:a,contentOverlay:u,children:l})=>{const d=c.useRef(!1),f=c.useRef(null),p=c.useCallback(g=>{if(!s)return;g.preventDefault(),d.current=!0;const y=g.clientY,x=o;f.current&&(f.current.style.transition="none");const w=v=>{const C=y-v.clientY,k=window.innerHeight-Ni,E=Math.max(Sw,Math.min(k,x+C));f.current&&(f.current.style.height=`${E}px`)},b=v=>{d.current=!1,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",b),f.current&&(f.current.style.transition="");const C=y-v.clientY,k=window.innerHeight-Ni;s(Math.max(Sw,Math.min(k,x+C)))};document.addEventListener("mousemove",w),document.addEventListener("mouseup",b)},[o,s]),m=r?`calc(100vh - ${Ni}px)`:`${o}px`;return h.jsxs("div",{ref:f,"data-hudson-template":"hudson",className:`
79
- fixed left-0 right-0 shadow-[0_-2px_12px_rgba(0,0,0,0.16)] flex flex-col border-t text-card-foreground
80
- bg-card
81
- ${e?"translate-y-0 opacity-100 pointer-events-auto":"translate-y-full opacity-0 pointer-events-none"}
82
- transition-all duration-300 ease-in-out
83
- `,style:{bottom:Ni,height:m,zIndex:Po.zIndex.drawer,...$w},children:[h.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:$w,children:[h.jsxs("div",{className:"flex items-center gap-3",children:[i||h.jsxs("div",{className:"flex items-center gap-2 text-accent",children:[h.jsx(rW,{size:14}),h.jsx("span",{className:"text-[10px] font-light tracking-[0.18em] font-mono uppercase",children:"TERMINAL"})]}),a]}),h.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:p,children:h.jsx("div",{className:"w-16 h-1 rounded-full group-hover:bg-muted-foreground transition-colors",style:dte})}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("button",{onClick:n,className:"p-1.5 rounded hover:bg-accent/10 text-muted-foreground hover:text-foreground transition-colors",title:r?"Restore":"Maximize",children:r?h.jsx(KH,{size:14}):h.jsx(UH,{size:14})}),h.jsx("button",{onClick:t,className:"p-1.5 rounded hover:bg-destructive/10 text-muted-foreground hover:text-destructive transition-colors",title:"Close console","aria-label":"Close console",children:h.jsx(aW,{size:14})})]})]}),h.jsx(f6.Provider,{value:p6,children:h.jsxs("div",{"data-hudson-terminal-drawer-content":"true",className:"flex-1 relative overflow-hidden flex flex-col bg-transparent",children:[l,u&&h.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-3 z-30 flex justify-center px-4",children:h.jsx("div",{className:"pointer-events-auto",children:u})})]})})]})},ls={borderColor:"var(--hud-chrome-border, oklch(var(--border)))"},pte={"--tw-ring-color":"color-mix(in srgb, var(--hud-accent, currentColor) 34%, transparent)"},mte=({isOpen:e,onClose:t,commands:n})=>{const[r,o]=c.useState(""),[s,i]=c.useState(0),a=c.useId(),u=`${a}-listbox`,l=c.useRef(null),d=c.useRef(null),f=c.useRef(null),p=n.filter(w=>w.label.toLowerCase().includes(r.toLowerCase()));c.useEffect(()=>{e&&(en.logger.info("hudson.command_palette.open",{category:"command",data:{commandCount:n.length}}),l.current?.focus({preventScroll:!0}),o(""),i(0))},[n.length,e]),c.useEffect(()=>{i(0)},[r]),c.useEffect(()=>{f.current?.scrollIntoView({behavior:"smooth",block:"nearest"})},[s]);const m=(w,b)=>{const v=en.trace.start("hudson.command.execute",{category:"command",data:{commandId:w.id,surface:"command_palette",source:b,queryLength:r.length,resultCount:p.length}});try{w.action(),v.end(),t()}catch(C){throw v.error(C),C}},g=w=>{if((w.key==="ArrowDown"||w.key==="ArrowUp")&&p.length===0){w.preventDefault();return}w.key==="ArrowDown"?(w.preventDefault(),i(b=>(b+1)%p.length)):w.key==="ArrowUp"?(w.preventDefault(),i(b=>(b-1+p.length)%p.length)):w.key==="Enter"?(w.preventDefault(),p[s]&&m(p[s],"keyboard")):w.key==="Escape"&&t()},y=w=>{if(w.key!=="Tab")return;const b=d.current;if(!b)return;const v=Array.from(b.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter($=>!$.hasAttribute("disabled")&&$.getAttribute("aria-hidden")!=="true");if(v.length===0){w.preventDefault();return}const C=v[0],k=v[v.length-1],E=document.activeElement;w.shiftKey?(E===C||!b.contains(E))&&(w.preventDefault(),k.focus()):E===k&&(w.preventDefault(),C.focus())},x=p[s]?`${a}-option-${s}`:void 0;return e?h.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:h.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:ls,onClick:w=>w.stopPropagation(),onKeyDown:y,children:[h.jsxs("div",{className:"flex items-center px-4 py-3 border-b gap-3 focus-within:ring-2 focus-within:outline-none",style:{...ls,...pte},children:[h.jsx(wk,{className:"text-muted-foreground",size:16,strokeWidth:1.5,"aria-hidden":"true"}),h.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:w=>o(w.target.value),onKeyDown:g,role:"combobox","aria-expanded":"true","aria-haspopup":"listbox","aria-controls":u,"aria-activedescendant":x,"aria-autocomplete":"list"}),h.jsx("div",{className:"px-1.5 py-0.5 rounded bg-muted border text-[10px] text-muted-foreground font-mono tracking-[0.12em]",style:ls,"aria-hidden":"true",children:"ESC"})]}),h.jsxs("div",{className:"max-h-[300px] overflow-y-auto py-2 relative",children:[h.jsx("div",{id:u,role:"listbox","aria-label":"Command results",className:"pb-2",children:p.length===0?h.jsx("div",{className:"px-4 py-8 text-center text-muted-foreground text-[11px] font-mono",role:"status",children:"No matching commands"}):p.map((w,b)=>h.jsxs("div",{id:`${a}-option-${b}`,ref:b===s?f:null,role:"option","aria-selected":b===s,className:`px-4 py-2.5 flex items-center gap-3 cursor-pointer transition-colors ${b===s?"bg-accent/10 border-l-2 border-accent":"border-l-2 border-transparent hover:bg-muted/70"}`,onClick:()=>m(w,"pointer"),onMouseEnter:()=>i(b),children:[w.icon&&h.jsx("div",{className:`${b===s?"text-accent":"text-muted-foreground"}`,children:w.icon}),h.jsx("div",{className:"flex-1",children:h.jsx("div",{className:`text-[12px] ${b===s?"text-accent font-medium":"text-foreground/80 font-normal"}`,children:w.label})}),w.shortcut&&h.jsx("div",{className:"text-[10px] font-mono text-muted-foreground bg-muted px-1.5 py-0.5 rounded border tracking-[0.04em]",style:ls,children:w.shortcut}),b===s&&h.jsx(WH,{size:14,className:"text-accent ml-2","aria-hidden":"true"})]},w.id))}),p.length>6&&h.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-8 bg-gradient-to-t from-popover to-transparent pointer-events-none"})]}),h.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:ls,children:[h.jsx("span",{children:"Command Palette"}),h.jsxs("span",{className:"tracking-[0.04em] normal-case",children:[p.length," matches"]})]})]})}):null},P4=c.createContext(null),hte=c.createContext(null);function gte({children:e}){const[t,n]=c.useState(null);return h.jsx(P4.Provider,{value:t,children:h.jsx(hte.Provider,{value:n,children:e})})}function vte(){return c.useContext(P4)}const M4=I6();function bte(e){const t=e.toLowerCase();return M4.find(n=>n.key===t)??null}const ge=(...e)=>e,yte=[{title:"App shell",bindings:[{chords:[U6,G6],label:Cs},{chords:[ge("⌘","K")],label:"Command palette"},{chords:[ge("⌘","["),ge("⌘","B")],label:"Toggle sidebar / left panel"},{chords:[ge("⌘","]")],label:"Toggle right panel"},{chords:[ge("⌘","⇧","]")],label:"Toggle inspector overlay"},{chords:[ge("Ctrl","`")],label:"Toggle terminal drawer"},{chords:[ge("⌘","J")],label:"Toggle assistant drawer"}]},{title:"Navigation",bindings:M4.map(e=>({chords:[ge("g",e.key)],label:e.label}))},{title:"Global",bindings:[{chords:[ge("?")],label:"Toggle this help"},{chords:[ge("Esc")],label:"Close dialog / clear search"},{chords:[ge("Tab"),ge("⇧","Tab")],label:"Move focus"},{chords:[ge("[")],label:"Focus previous pane"},{chords:[ge("]")],label:"Focus next pane"}]},{title:"Lists",bindings:[{chords:[ge("↓"),ge("j")],label:"Next item"},{chords:[ge("↑"),ge("k")],label:"Previous item"},{chords:[ge("g"),ge("Home")],label:"First item"},{chords:[ge("G"),ge("End")],label:"Last item"},{chords:[ge("Enter")],label:"Open / activate"}]},{title:"Search",bindings:[{chords:[ge("/")],label:"Focus filter input"},{chords:[ge("↓")],label:"From filter → first match"},{chords:[ge("Esc")],label:"Clear filter (while focused)"}]},{title:"Composers",bindings:[{chords:[ge("Enter"),ge("⇧","Enter")],label:"Insert line break"},{chords:[ge("⌘","Enter"),ge("Ctrl","Enter")],label:"Send message"}]},{title:"Capture routing",bindings:[{chords:[ge("Drop")],label:"Drop screenshot/video anywhere"},{chords:[ge("⌘","V")],label:"Paste image into route composer"},{chords:[ge("Existing chat"),ge("New session")],label:"Choose delivery in composer"}]},{title:"Dispatch",bindings:[{chords:[ge("↓"),ge("j")],label:"Next ledger row"},{chords:[ge("↑"),ge("k")],label:"Previous ledger row"},{chords:[ge("Enter")],label:"Inspect row / open dialogue thread"},{chords:[ge("←"),ge("→")],label:"Switch dispatch tabs"},{chords:[ge("Esc")],label:"Clear inspector selection"}]},{title:"Agent lanes",bindings:[{chords:[ge("↓"),ge("j")],label:"Next lane"},{chords:[ge("↑"),ge("k")],label:"Previous lane"},{chords:[ge("Enter"),ge("i")],label:"Inspect lane"},{chords:[ge("1","…","4")],label:"Switch trace window (5m → 24h)"},{chords:[ge("o")],label:"Open session (detail sheet)"},{chords:[ge("t")],label:"Open traces (detail sheet)"},{chords:[ge("p")],label:"Agent profile (detail sheet)"},{chords:[ge("Esc")],label:"Close detail sheet"}]},{title:"Tail · Atop",bindings:[{chords:[ge("/")],label:"Open filter (Tail)"},{chords:[ge("G")],label:"Jump to live (Tail)"},{chords:[ge("j"),ge("k")],label:"Walk rows (Atop)"}]},{title:"Session scrubber",bindings:[{chords:[ge("←"),ge("→")],label:"Seek ±1%"},{chords:[ge("⇧","←"),ge("⇧","→")],label:"Seek ±5%"},{chords:[ge("Home"),ge("End")],label:"Jump to start / end"}]}];function wte({open:e,onClose:t}){const{ref:n,onKeyDown:r}=gx(e);return e?h.jsx("div",{className:"kb-help-backdrop",onClick:t,role:"presentation",children:h.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:[h.jsxs("header",{className:"kb-help-head",children:[h.jsx("h2",{id:"kb-help-title",className:"kb-help-title",children:"Keyboard shortcuts"}),h.jsx("button",{type:"button",className:"kb-help-close",onClick:t,"aria-label":"Close (Esc)",children:"✕"})]}),h.jsx("div",{className:"kb-help-grid",children:yte.map(o=>h.jsxs("section",{className:"kb-help-group",children:[h.jsx("h3",{className:"kb-help-group-title",children:o.title}),h.jsx("dl",{className:"kb-help-list",children:o.bindings.map((s,i)=>h.jsxs("div",{className:"kb-help-row",children:[h.jsx("dt",{className:"kb-help-keys",children:s.chords.map((a,u)=>h.jsxs("span",{className:"kb-help-chord-wrap",children:[u>0&&h.jsx("span",{className:"kb-help-or",children:"or"}),h.jsx("span",{className:"kb-help-chord",children:a.map((l,d)=>h.jsx("kbd",{className:"kb-help-kbd",children:l},`${l}-${d}`))})]},`${u}-${a.join("+")}`))}),h.jsx("dd",{className:"kb-help-label",children:s.label})]},`${o.title}-${i}`))})]},o.title))}),h.jsxs("footer",{className:"kb-help-foot",children:["Press ",h.jsx("kbd",{className:"kb-help-kbd",children:"?"})," to toggle · ",h.jsx("kbd",{className:"kb-help-kbd",children:"Esc"})," to close"]})]})}):null}function xte(){const[e,t]=c.useState(!1);return c.useEffect(()=>{const n=r=>{if(r.key==="Escape"&&e){r.preventDefault(),t(!1);return}r.key==="?"&&(vx(r.target)||(r.preventDefault(),t(o=>!o)))};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[e]),{open:e,setOpen:t}}const Cte=15e3,kte=3e4;function Ete(){const[e,t]=c.useState([]),[n,r]=c.useState(null),[o,s]=c.useState(null),i=c.useRef(!0),a=c.useRef(null),u=c.useCallback(async()=>{try{const m=await yf("/api/notifications?type=pairing_request");if(!i.current)return!0;const g=m.notifications.map(y=>y.data?.request).filter(y=>y?.status==="pending");return t(g),!0}catch{return!1}},[]);c.useEffect(()=>{i.current=!0;let m=!1;const g=()=>{a.current!==null&&(window.clearTimeout(a.current),a.current=null)},y=b=>{g(),a.current=window.setTimeout(()=>{x()},b)},x=async()=>{if(g(),!J6())return;const b=await u();m||!i.current||y(b?Cte:kte)};x();const w=X6(()=>{x()});return()=>{m=!0,i.current=!1,g(),w()}},[u]);const l=c.useCallback(async(m,g)=>{r(m),s(null);try{await yf(`/api/pairing/requests/${encodeURIComponent(m)}/decide`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({decision:g})}),t(y=>y.filter(x=>x.token!==m)),u()}catch(y){s(y instanceof Error?y.message:String(y))}finally{r(null)}},[u]);if(e.length===0)return null;const d=e[0],f=d.requesterLabel?.trim()||"A device",p=n===d.token;return h.jsx("div",{className:"scout-pair-prompt",role:"alertdialog","aria-label":"Pairing request",children:h.jsxs("div",{className:"scout-pair-prompt-card",children:[h.jsx("div",{className:"scout-pair-prompt-eyebrow",children:"Pairing request"}),h.jsxs("div",{className:"scout-pair-prompt-title",children:[f," wants to pair"]}),h.jsxs("div",{className:"scout-pair-prompt-detail",children:["On your network",d.requesterIp?` · ${d.requesterIp}`:"",". Allowing trusts this device and starts pair mode."]}),o?h.jsx("div",{className:"scout-pair-prompt-error",children:o}):null,h.jsxs("div",{className:"scout-pair-prompt-actions",children:[h.jsx("button",{type:"button",className:"scout-pair-prompt-btn scout-pair-prompt-deny",disabled:p,onClick:()=>{l(d.token,"deny")},children:"Deny"}),h.jsx("button",{type:"button",className:"scout-pair-prompt-btn scout-pair-prompt-allow",disabled:p,onClick:()=>{l(d.token,"approve")},children:p?"Allowing…":"Allow"})]}),e.length>1?h.jsxs("div",{className:"scout-pair-prompt-more",children:["+",e.length-1," more waiting"]}):null]})})}const T4=200;function Ste({onOpen:e}){return h.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:h.jsx(LW,{maxEvents:T4,showCounts:!0})})}function $te({open:e,onClose:t}){return c.useEffect(()=>{if(!e)return;const n=r=>{r.key==="Escape"&&t()};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[t,e]),e?h.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:h.jsxs("div",{className:"flex min-h-0 w-full flex-col",children:[h.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:[h.jsx("div",{className:"min-w-0 font-mono text-sm font-semibold uppercase tracking-[0.18em] text-foreground",children:"Activity Log"}),h.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:h.jsx(Ip,{size:14})})]}),h.jsx(jW,{observability:en,maxEvents:T4,title:"activity",className:"min-h-0 flex-1 rounded-t-none",emptyMessage:"No activity yet. Connection and status events will appear here."})]})}):null}function Ote({dictationActive:e}){const t=Oo(yx,!1),{open:n,setOpen:r,state:o}=R6(),{navigate:s}=Sn(),i=c.useRef(null),[a,u]=c.useState({left:12,bottom:36});if(c.useEffect(()=>()=>r(!1),[r]),c.useEffect(()=>{if(!n)return;const p=m=>{m.key==="Escape"&&(m.preventDefault(),r(!1),i.current?.focus())};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[n,r]),c.useLayoutEffect(()=>{if(!n)return;const p=()=>{const m=i.current;if(!m)return;const g=m.getBoundingClientRect(),y=Math.min(384,window.innerWidth-16);u({left:Math.max(8,Math.min(g.left,window.innerWidth-y-8)),bottom:Math.max(36,window.innerHeight-g.top+8)})};return p(),window.addEventListener("resize",p),window.addEventListener("scroll",p,!0),()=>{window.removeEventListener("resize",p),window.removeEventListener("scroll",p,!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 h.jsxs("div",{className:"flex items-center",children:[h.jsxs("button",{ref:i,type:"button",onClick:()=>r(p=>!p),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"?h.jsx(Q6,{size:10,className:"animate-spin","aria-hidden":"true"}):o==="live"?h.jsxs("span",{className:"relative flex size-1.5 shrink-0","aria-hidden":"true",children:[h.jsx("span",{className:"absolute inline-flex size-full animate-ping rounded-full bg-lime-300/30"}),h.jsx("span",{className:"relative inline-flex size-1.5 rounded-full bg-lime-300/90"})]}):h.jsx(B6,{size:10,fill:"currentColor","aria-hidden":"true"}),h.jsx("span",{children:o==="live"?"Voice live":o==="connecting"?"Voice connecting":"Voice"})]}),n&&f&&jt.createPortal(h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 z-[80]","aria-hidden":"true",onMouseDown:()=>r(!1)}),h.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:a.left,bottom:a.bottom},role:"dialog","aria-label":"Scoutbot live voice",onMouseDown:p=>p.stopPropagation(),children:[h.jsx(H6,{state:o,onExpand:()=>{r(!1),s({view:"voice"})}}),h.jsx(W6,{dictationActive:e})]})]}),f)]})}let Ow=!1;function Lte(){Ow||(Ow=!0,en.setEnabled(!0),en.logger.info("Scout web shell booted",{category:"shell"}))}function jte(e,t){const n=c.useRef(null),r=c.useRef(null),o=c.useRef(null);c.useEffect(()=>{if(Lte(),t.status==="offline"||t.status==="degraded"){const s=t.message?.trim()||"Scout web API unreachable";s!==n.current&&(n.current=s,en.logger.log(t.status==="offline"?"error":"warn",s,{category:"connection"}))}else n.current=null;if(e.status.color==="red"){const s=e.status.label.trim();s&&s!==r.current&&(r.current=s,en.logger.error(s,{category:"status"}))}else r.current=null;if(e.mesh.color==="amber"||e.mesh.color==="red"){const s=`${e.mesh.label}: ${e.mesh.value}`;if(s!==o.current){o.current=s;const i=e.mesh.color==="red"?"error":"warn";en.logger.log(i,s,{category:"mesh"})}}else o.current=null},[t.message,t.status,e.mesh,e.status])}function vp(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}const Ms={};function Cc(e,t,n,r,o){let s={...bp(e,Ms)};return t&&(s=I4(s,t)),s}function Rte(e){if(e.length===0)return Ms;if(e.length===1)return bp(e[0],Ms);let t={...bp(e[0],Ms)};for(let n=1;n<e.length;n+=1)t=I4(t,e[n]);return t}function I4(e,t){return A4(t)?t(e):Pte(e,t)}function Pte(e,t){if(!t)return e;for(const n in t){const r=t[n];switch(n){case"style":{e[n]=vp(e.style,r);break}case"className":{e[n]=_4(e.className,r);break}default:Mte(n,r)?e[n]=Tte(e[n],r):e[n]=r}}return e}function Mte(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 A4(e){return typeof e=="function"}function bp(e,t){return A4(e)?e(t):e??Ms}function Tte(e,t){return t?e?n=>{if(Ate(n)){const o=n;Ite(o);const s=t(o);return o.baseUIHandlerPrevented||e?.(o),s}const r=t(n);return e?.(n),r}:t:e}function Ite(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function _4(e,t){return t?e?t+" "+e:t:e}function Ate(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function Ko(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 Lw={};function Jn(e,t){const n=c.useRef(Lw);return n.current===Lw&&(n.current=e(t)),n}function jw(e,t,n,r){const o=Jn(N4).current;return Nte(o,e,t,n,r)&&D4(o,[e,t,n,r]),o.callback}function _te(e){const t=Jn(N4).current;return Dte(t,e)&&D4(t,e),t.callback}function N4(){return{callback:null,cleanup:null,refs:[]}}function Nte(e,t,n,r,o){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==o}function Dte(e,t){return e.refs.length!==t.length||e.refs.some((n,r)=>n!==t[r])}function D4(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 s=t[o];if(s!=null)switch(typeof s){case"function":{const i=s(n);typeof i=="function"&&(r[o]=i);break}case"object":{s.current=n;break}}}e.cleanup=()=>{for(let o=0;o<t.length;o+=1){const s=t[o];if(s!=null)switch(typeof s){case"function":{const i=r[o];typeof i=="function"?i():s(null);break}case"object":{s.current=null;break}}}}}}}const Vte=parseInt(c.version,10);function V4(e){return Vte>=e}function Rw(e){if(!c.isValidElement(e))return null;const t=e,n=t.props;return(V4(19)?n?.ref:t.ref)??null}function zte(e,t){const n={};for(const r in e){const o=e[r];if(t?.hasOwnProperty(r)){const s=t[r](o);s!=null&&Object.assign(n,s);continue}o===!0?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}function Fte(e,t){return typeof e=="function"?e(t):e}function Bte(e,t){return typeof e=="function"?e(t):e}function Hte(){}const Qt=Object.freeze({}),Wte={style:{transition:"none"}},Zte={fallbackAxisSide:"end"};function li(e,t,n={}){const r=t.render,o=Ute(t,n);if(n.enabled===!1)return null;const s=n.state??Qt;return Gte(e,r,o,s)}function Ute(e,t={}){const{className:n,style:r,render:o}=e,{state:s=Qt,ref:i,props:a,stateAttributesMapping:u,enabled:l=!0}=t,d=l?Fte(n,s):void 0,f=l?Bte(r,s):void 0,p=l?zte(s,u):Qt,m=l?vp(p,Array.isArray(a)?Rte(a):a)??Qt:Qt;return typeof document<"u"&&(l?Array.isArray(i)?m.ref=_te([m.ref,Rw(o),...i]):m.ref=jw(m.ref,Rw(o),i):jw(null,null)),l?(d!==void 0&&(m.className=_4(m.className,d)),f!==void 0&&(m.style=vp(m.style,f)),m):Qt}function Gte(e,t,n,r){if(t){if(typeof t=="function")return t(n,r);const o=Cc(n,t.props);return o.ref=n.ref,c.cloneElement(t,o)}if(e&&typeof e=="string")return Kte(e,n);throw new Error(Ko(8))}function Kte(e,t){return e==="button"?c.createElement("button",{type:"button",...t,key:t.key}):e==="img"?c.createElement("img",{alt:"",...t,key:t.key}):c.createElement(e,t)}function Ym(e){return li(e.defaultTagName??"div",e,e)}function z4(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=z4(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function F4(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=z4(e))&&(r&&(r+=" "),r+=t);return r}const Pw=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Mw=F4,Yte=(e,t)=>n=>{var r;if(t?.variants==null)return Mw(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(l=>{const d=n?.[l],f=s?.[l];if(d===null)return null;const p=Pw(d)||Pw(f);return o[l][p]}),a=n&&Object.entries(n).reduce((l,d)=>{let[f,p]=d;return p===void 0||(l[f]=p),l},{}),u=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((l,d)=>{let{class:f,className:p,...m}=d;return Object.entries(m).every(g=>{let[y,x]=g;return Array.isArray(x)?x.includes({...s,...a}[y]):{...s,...a}[y]===x})?[...l,f,p]:l},[]);return Mw(e,i,u,n?.class,n?.className)},qte=(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},Xte=(e,t)=>({classGroupId:e,validator:t}),B4=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Ua="-",Tw=[],Jte="arbitrary..",Qte=e=>{const t=tne(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return ene(i);const a=i.split(Ua),u=a[0]===""&&a.length>1?1:0;return H4(a,u,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const u=r[i],l=n[i];return u?l?qte(l,u):u:l||Tw}return n[i]||Tw}}},H4=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const l=H4(e,t+1,s);if(l)return l}const i=n.validators;if(i===null)return;const a=t===0?e.join(Ua):e.slice(t).join(Ua),u=i.length;for(let l=0;l<u;l++){const d=i[l];if(d.validator(a))return d.classGroupId}},ene=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?Jte+r:void 0})(),tne=e=>{const{theme:t,classGroups:n}=e;return nne(n,t)},nne=(e,t)=>{const n=B4();for(const r in e){const o=e[r];qm(o,n,r,t)}return n},qm=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const i=e[s];rne(i,t,n,r)}},rne=(e,t,n,r)=>{if(typeof e=="string"){one(e,t,n);return}if(typeof e=="function"){sne(e,t,n,r);return}ine(e,t,n,r)},one=(e,t,n)=>{const r=e===""?t:W4(t,e);r.classGroupId=n},sne=(e,t,n,r)=>{if(ane(e)){qm(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Xte(n,e))},ine=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let i=0;i<s;i++){const[a,u]=o[i];qm(u,W4(t,a),n,r)}},W4=(e,t)=>{let n=e;const r=t.split(Ua),o=r.length;for(let s=0;s<o;s++){const i=r[s];let a=n.nextPart.get(i);a||(a=B4(),n.nextPart.set(i,a)),n=a}return n},ane=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,cne=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(s,i)=>{n[s]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let i=n[s];if(i!==void 0)return i;if((i=r[s])!==void 0)return o(s,i),i},set(s,i){s in n?n[s]=i:o(s,i)}}},yp="!",Iw=":",lne=[],Aw=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),une=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let i=0,a=0,u=0,l;const d=o.length;for(let y=0;y<d;y++){const x=o[y];if(i===0&&a===0){if(x===Iw){s.push(o.slice(u,y)),u=y+1;continue}if(x==="/"){l=y;continue}}x==="["?i++:x==="]"?i--:x==="("?a++:x===")"&&a--}const f=s.length===0?o:o.slice(u);let p=f,m=!1;f.endsWith(yp)?(p=f.slice(0,-1),m=!0):f.startsWith(yp)&&(p=f.slice(1),m=!0);const g=l&&l>u?l-u:void 0;return Aw(s,m,p,g)};if(t){const o=t+Iw,s=r;r=i=>i.startsWith(o)?s(i.slice(o.length)):Aw(lne,!1,i,void 0,!0)}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},dne=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let s=0;s<n.length;s++){const i=n[s],a=i[0]==="[",u=t.has(i);a||u?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(i)):o.push(i)}return o.length>0&&(o.sort(),r.push(...o)),r}},fne=e=>({cache:cne(e.cacheSize),parseClassName:une(e),sortModifiers:dne(e),postfixLookupClassGroupIds:pne(e),...Qte(e)}),pne=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},mne=/\s+/,hne=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:i}=t,a=[],u=e.trim().split(mne);let l="";for(let d=u.length-1;d>=0;d-=1){const f=u[d],{isExternal:p,modifiers:m,hasImportantModifier:g,baseClassName:y,maybePostfixModifierPosition:x}=n(f);if(p){l=f+(l.length>0?" "+l:l);continue}let w=!!x,b;if(w){const $=y.substring(0,x);b=r($);const S=b&&i[b]?r(y):void 0;S&&S!==b&&(b=S,w=!1)}else b=r(y);if(!b){if(!w){l=f+(l.length>0?" "+l:l);continue}if(b=r(y),!b){l=f+(l.length>0?" "+l:l);continue}w=!1}const v=m.length===0?"":m.length===1?m[0]:s(m).join(":"),C=g?v+yp:v,k=C+b;if(a.indexOf(k)>-1)continue;a.push(k);const E=o(b,w);for(let $=0;$<E.length;++$){const S=E[$];a.push(C+S)}l=f+(l.length>0?" "+l:l)}return l},gne=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Z4(n))&&(o&&(o+=" "),o+=r);return o},Z4=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Z4(e[r]))&&(n&&(n+=" "),n+=t);return n},vne=(e,...t)=>{let n,r,o,s;const i=u=>{const l=t.reduce((d,f)=>f(d),e());return n=fne(l),r=n.cache.get,o=n.cache.set,s=a,a(u)},a=u=>{const l=r(u);if(l)return l;const d=hne(u,n);return o(u,d),d};return s=i,(...u)=>s(gne(...u))},bne=[],gt=e=>{const t=n=>n[e]||bne;return t.isThemeGetter=!0,t},U4=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,G4=/^\((?:(\w[\w-]*):)?(.+)\)$/i,yne=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,wne=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xne=/\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$/,Cne=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kne=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ene=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rr=e=>yne.test(e),Me=e=>!!e&&!Number.isNaN(Number(e)),$n=e=>!!e&&Number.isInteger(Number(e)),nf=e=>e.endsWith("%")&&Me(e.slice(0,-1)),Wn=e=>wne.test(e),K4=()=>!0,Sne=e=>xne.test(e)&&!Cne.test(e),Xm=()=>!1,$ne=e=>kne.test(e),One=e=>Ene.test(e),Lne=e=>!fe(e)&&!me(e),jne=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)),Rne=e=>Rr(e,X4,Xm),fe=e=>U4.test(e),Vr=e=>Rr(e,J4,Sne),_w=e=>Rr(e,Dne,Me),Pne=e=>Rr(e,eS,K4),Mne=e=>Rr(e,Q4,Xm),Nw=e=>Rr(e,Y4,Xm),Tne=e=>Rr(e,q4,One),Di=e=>Rr(e,tS,$ne),me=e=>G4.test(e),us=e=>no(e,J4),Ine=e=>no(e,Q4),Dw=e=>no(e,Y4),Ane=e=>no(e,X4),_ne=e=>no(e,q4),Vi=e=>no(e,tS,!0),Nne=e=>no(e,eS,!0),Rr=(e,t,n)=>{const r=U4.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},no=(e,t,n=!1)=>{const r=G4.exec(e);return r?r[1]?t(r[1]):n:!1},Y4=e=>e==="position"||e==="percentage",q4=e=>e==="image"||e==="url",X4=e=>e==="length"||e==="size"||e==="bg-size",J4=e=>e==="length",Dne=e=>e==="number",Q4=e=>e==="family-name",eS=e=>e==="number"||e==="weight",tS=e=>e==="shadow",Vne=()=>{const e=gt("color"),t=gt("font"),n=gt("text"),r=gt("font-weight"),o=gt("tracking"),s=gt("leading"),i=gt("breakpoint"),a=gt("container"),u=gt("spacing"),l=gt("radius"),d=gt("shadow"),f=gt("inset-shadow"),p=gt("text-shadow"),m=gt("drop-shadow"),g=gt("blur"),y=gt("perspective"),x=gt("aspect"),w=gt("ease"),b=gt("animate"),v=()=>["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"],k=()=>[...C(),me,fe],E=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],S=()=>[me,fe,u],j=()=>[rr,"full","auto",...S()],R=()=>[$n,"none","subgrid",me,fe],T=()=>["auto",{span:["full",$n,me,fe]},$n,me,fe],A=()=>[$n,"auto",me,fe],L=()=>["auto","min","max","fr",me,fe],V=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],_=()=>["auto",...S()],N=()=>[rr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],O=()=>[rr,"screen","full","dvw","lvw","svw","min","max","fit",...S()],z=()=>[rr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...S()],M=()=>[e,me,fe],q=()=>[...C(),Dw,Nw,{position:[me,fe]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",Ane,Rne,{size:[me,fe]}],ue=()=>[nf,us,Vr],se=()=>["","none","full",l,me,fe],re=()=>["",Me,us,Vr],oe=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>[Me,nf,Dw,Nw],pe=()=>["","none",g,me,fe],P=()=>["none",Me,me,fe],Y=()=>["none",Me,me,fe],B=()=>[Me,me,fe],ve=()=>[rr,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Wn],breakpoint:[Wn],color:[K4],container:[Wn],"drop-shadow":[Wn],ease:["in","out","in-out"],font:[Lne],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Wn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Wn],shadow:[Wn],spacing:["px",Me],text:[Wn],"text-shadow":[Wn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rr,fe,me,x]}],container:["container"],"container-type":[{"@container":["","normal","size",me,fe]}],"container-named":[jne],columns:[{columns:[Me,fe,me,a]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"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:k()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:j()}],"inset-x":[{"inset-x":j()}],"inset-y":[{"inset-y":j()}],start:[{"inset-s":j(),start:j()}],end:[{"inset-e":j(),end:j()}],"inset-bs":[{"inset-bs":j()}],"inset-be":[{"inset-be":j()}],top:[{top:j()}],right:[{right:j()}],bottom:[{bottom:j()}],left:[{left:j()}],visibility:["visible","invisible","collapse"],z:[{z:[$n,"auto",me,fe]}],basis:[{basis:[rr,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,rr,"auto","initial","none",fe]}],grow:[{grow:["",Me,me,fe]}],shrink:[{shrink:["",Me,me,fe]}],order:[{order:[$n,"first","last","none",me,fe]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:T()}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:T()}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...V(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...V()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":V()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mbs:[{mbs:_()}],mbe:[{mbe:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:N()}],"inline-size":[{inline:["auto",...O()]}],"min-inline-size":[{"min-inline":["auto",...O()]}],"max-inline-size":[{"max-inline":["none",...O()]}],"block-size":[{block:["auto",...z()]}],"min-block-size":[{"min-block":["auto",...z()]}],"max-block-size":[{"max-block":["none",...z()]}],w:[{w:[a,"screen",...N()]}],"min-w":[{"min-w":[a,"screen","none",...N()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...N()]}],h:[{h:["screen","lh",...N()]}],"min-h":[{"min-h":["screen","lh","none",...N()]}],"max-h":[{"max-h":["screen","lh",...N()]}],"font-size":[{text:["base",n,us,Vr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Nne,Pne]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",nf,fe]}],"font-family":[{font:[Ine,Mne,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,me,fe]}],"line-clamp":[{"line-clamp":[Me,"none",me,_w]}],leading:[{leading:[s,...S()]}],"list-image":[{"list-image":["none",me,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",me,Vr]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[Me,"auto",me,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"tab-size":[{tab:[$n,me,fe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,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",me,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:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$n,me,fe],radial:["",me,fe],conic:[$n,me,fe]},_ne,Tne]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:ue()}],"gradient-via-pos":[{via:ue()}],"gradient-to-pos":[{to:ue()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:se()}],"rounded-s":[{"rounded-s":se()}],"rounded-e":[{"rounded-e":se()}],"rounded-t":[{"rounded-t":se()}],"rounded-r":[{"rounded-r":se()}],"rounded-b":[{"rounded-b":se()}],"rounded-l":[{"rounded-l":se()}],"rounded-ss":[{"rounded-ss":se()}],"rounded-se":[{"rounded-se":se()}],"rounded-ee":[{"rounded-ee":se()}],"rounded-es":[{"rounded-es":se()}],"rounded-tl":[{"rounded-tl":se()}],"rounded-tr":[{"rounded-tr":se()}],"rounded-br":[{"rounded-br":se()}],"rounded-bl":[{"rounded-bl":se()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-bs":[{"border-bs":re()}],"border-w-be":[{"border-be":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-bs":[{"border-bs":M()}],"border-color-be":[{"border-be":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,me,fe]}],"outline-w":[{outline:["",Me,us,Vr]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",d,Vi,Di]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",f,Vi,Di]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[Me,Vr]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",p,Vi,Di]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[Me,me,fe]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"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":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":ae()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":ae()}],"mask-image-t-to-pos":[{"mask-t-to":ae()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":ae()}],"mask-image-r-to-pos":[{"mask-r-to":ae()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":ae()}],"mask-image-b-to-pos":[{"mask-b-to":ae()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":ae()}],"mask-image-l-to-pos":[{"mask-l-to":ae()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":ae()}],"mask-image-x-to-pos":[{"mask-x-to":ae()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":ae()}],"mask-image-y-to-pos":[{"mask-y-to":ae()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[me,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":ae()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":ae()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"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:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,fe]}],filter:[{filter:["","none",me,fe]}],blur:[{blur:pe()}],brightness:[{brightness:[Me,me,fe]}],contrast:[{contrast:[Me,me,fe]}],"drop-shadow":[{"drop-shadow":["","none",m,Vi,Di]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",Me,me,fe]}],"hue-rotate":[{"hue-rotate":[Me,me,fe]}],invert:[{invert:["",Me,me,fe]}],saturate:[{saturate:[Me,me,fe]}],sepia:[{sepia:["",Me,me,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",me,fe]}],"backdrop-blur":[{"backdrop-blur":pe()}],"backdrop-brightness":[{"backdrop-brightness":[Me,me,fe]}],"backdrop-contrast":[{"backdrop-contrast":[Me,me,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,me,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,me,fe]}],"backdrop-invert":[{"backdrop-invert":["",Me,me,fe]}],"backdrop-opacity":[{"backdrop-opacity":[Me,me,fe]}],"backdrop-saturate":[{"backdrop-saturate":[Me,me,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,me,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",me,fe]}],ease:[{ease:["linear","initial",w,me,fe]}],delay:[{delay:[Me,me,fe]}],animate:[{animate:["none",b,me,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,me,fe]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:P()}],"rotate-x":[{"rotate-x":P()}],"rotate-y":[{"rotate-y":P()}],"rotate-z":[{"rotate-z":P()}],scale:[{scale:Y()}],"scale-x":[{"scale-x":Y()}],"scale-y":[{"scale-y":Y()}],"scale-z":[{"scale-z":Y()}],"scale-3d":["scale-3d"],skew:[{skew:B()}],"skew-x":[{"skew-x":B()}],"skew-y":[{"skew-y":B()}],transform:[{transform:[me,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":["translate-none"],zoom:[{zoom:[$n,me,fe]}],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"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",me,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":M()}],"scrollbar-track-color":[{"scrollbar-track":M()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"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",me,fe]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[Me,us,Vr,_w]}],stroke:[{stroke:["none",...M()]}],"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"]}},zne=vne(Vne);function ut(...e){return zne(F4(e))}function kc(){return typeof window<"u"}function Yo(e){return Jm(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fn(e){var t;return(t=(Jm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jm(e){return kc()?e instanceof Node||e instanceof Lt(e).Node:!1}function Ve(e){return kc()?e instanceof Element||e instanceof Lt(e).Element:!1}function sn(e){return kc()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function wp(e){return!kc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function ui(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=on(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&o!=="inline"&&o!=="contents"}function Fne(e){return/^(table|td|th)$/.test(Yo(e))}function Ec(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Bne=/transform|translate|scale|rotate|perspective|filter/,Hne=/paint|layout|strict|content/,zr=e=>!!e&&e!=="none";let rf;function Qm(e){const t=Ve(e)?on(e):e;return zr(t.transform)||zr(t.translate)||zr(t.scale)||zr(t.rotate)||zr(t.perspective)||!Sc()&&(zr(t.backdropFilter)||zr(t.filter))||Bne.test(t.willChange||"")||Hne.test(t.contain||"")}function Wne(e){let t=qn(e);for(;sn(t)&&!Gn(t);){if(Qm(t))return t;if(Ec(t))return null;t=qn(t)}return null}function Sc(){return rf==null&&(rf=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),rf}function Gn(e){return/^(html|body|#document)$/.test(Yo(e))}function on(e){return Lt(e).getComputedStyle(e)}function $c(e){return Ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qn(e){if(Yo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wp(e)&&e.host||Fn(e);return wp(t)?t.host:t}function nS(e){const t=qn(e);return Gn(t)?e.ownerDocument?e.ownerDocument.body:e.body:sn(t)&&ui(t)?t:nS(t)}function gr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=nS(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=Lt(o);if(s){const a=xp(i);return t.concat(i,i.visualViewport||[],ui(o)?o:[],a&&n?gr(a):[])}else return t.concat(o,gr(o,[],n))}function xp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const of=ec[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],Zne=of&&of!==c.useLayoutEffect?of:e=>e();function Ae(e){const t=Jn(Une).current;return t.next=e,Zne(t.effect),t.trampoline}function Une(){const e={next:void 0,callback:Gne,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Gne(){}const Kne=()=>{},He=typeof document<"u"?c.useLayoutEffect:Kne,rS=c.createContext(void 0);function Oc(e){const t=c.useContext(rS);if(t===void 0&&!e)throw new Error(Ko(72));return t}const Yne=[];function oS(e){c.useEffect(e,Yne)}const ds=0;class qo{static create(){return new qo}currentId=ds;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=ds,n()},t)}isStarted(){return this.currentId!==ds}clear=()=>{this.currentId!==ds&&(clearTimeout(this.currentId),this.currentId=ds)};disposeEffect=()=>this.clear}function No(){const e=Jn(qo.create).current;return oS(e.disposeEffect),e}function Gr(e){const t=Jn(qne,e).current;return t.next=e,He(t.effect),t}function qne(e){const t={current:e,next:e,effect:()=>{t.current=t.next}};return t}const di=typeof navigator<"u",sf=nre(),Xne=ore(),Jne=rre();typeof CSS>"u"||!CSS.supports||CSS.supports("-webkit-backdrop-filter:none");sf.platform==="MacIntel"&&sf.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(sf.platform);const Qne=di&&/apple/i.test(navigator.vendor),ere=di&&Xne.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,tre=Jne.includes("jsdom/");function nre(){if(!di)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 rre(){if(!di)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:t,version:n})=>`${t}/${n}`).join(" "):navigator.userAgent}function ore(){if(!di)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}const sre="data-base-ui-focusable",sS="active",iS="selected",aS="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Vw(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function _t(e,t){if(!e||!t)return!1;const n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&wp(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Rn(e){return"composedPath"in e?e.composedPath()[0]:e.target}function wn(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 ire(e){return e.matches("html,body")}function Xr(e){return e?.ownerDocument||document}function are(e){return sn(e)&&e.matches(aS)}function cre(e){if(!e||tre)return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Ts(e,t,n=!0){return e.filter(o=>o.parentId===t&&(!n||o.context?.open)).flatMap(o=>[o,...Ts(e,o.id,n)])}function lre(e){return"nativeEvent"in e}function Xs(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function ure(e){const t=e.type;return t==="click"||t==="mousedown"||t==="keydown"||t==="keyup"}const dre=["top","right","bottom","left"],Do=Math.min,Jt=Math.max,Vo=Math.round,zi=Math.floor,An=e=>({x:e,y:e}),fre={left:"right",right:"left",bottom:"top",top:"bottom"};function Cp(e,t,n){return Jt(e,Do(t,n))}function Xn(e,t){return typeof e=="function"?e(t):e}function Ut(e){return e.split("-")[0]}function Pr(e){return e.split("-")[1]}function eh(e){return e==="x"?"y":"x"}function th(e){return e==="y"?"height":"width"}function un(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function nh(e){return eh(un(e))}function pre(e,t,n){n===void 0&&(n=!1);const r=Pr(e),o=nh(e),s=th(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Ga(i)),[i,Ga(i)]}function mre(e){const t=Ga(e);return[kp(e),t,kp(t)]}function kp(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const zw=["left","right"],Fw=["right","left"],hre=["top","bottom"],gre=["bottom","top"];function vre(e,t,n){switch(e){case"top":case"bottom":return n?t?Fw:zw:t?zw:Fw;case"left":case"right":return t?hre:gre;default:return[]}}function bre(e,t,n,r){const o=Pr(e);let s=vre(Ut(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(kp)))),s}function Ga(e){const t=Ut(e);return fre[t]+e.slice(t.length)}function yre(e){return{top:0,right:0,bottom:0,left:0,...e}}function cS(e){return typeof e!="number"?yre(e):{top:e,right:e,bottom:e,left:e}}function Ka(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 wre={...ec};let Bw=0;function xre(e,t="mui"){const[n,r]=c.useState(e),o=e||n;return c.useEffect(()=>{n==null&&(Bw+=1,r(`${t}-${Bw}`))},[n,t]),o}const Hw=wre.useId;function Lc(e,t){if(Hw!==void 0){const n=Hw();return e??(t?`${t}-${n}`:n)}return xre(e,t)}function Cre(){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 kre=c.createContext(null),Ere=c.createContext(null),rh=()=>c.useContext(kre)?.id||null,jc=e=>{const t=c.useContext(Ere);return e??t},oh="none",Ya="trigger-press",Un="trigger-hover",Ep="trigger-focus",Sre="outside-press",sh="escape-key",$re="disabled",Ore="imperative-action";function xt(e,t,n,r){let o=!1,s=!1;const i=Qt;return{reason:e,event:t??new Event("base-ui"),cancel(){o=!0},allowPropagation(){s=!0},get isCanceled(){return o},get isPropagationAllowed(){return s},trigger:n,...i}}function Rc(e){return`data-base-ui-${e}`}function aa(e,t,n){if(n&&!Xs(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 lS=c.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new qo,currentIdRef:{current:null},currentContextRef:{current:null}});function Lre(e){const{children:t,delay:n,timeoutMs:r=0}=e,o=c.useRef(n),s=c.useRef(n),i=c.useRef(null),a=c.useRef(null),u=No();return h.jsx(lS.Provider,{value:c.useMemo(()=>({hasProvider:!0,delayRef:o,initialDelayRef:s,currentIdRef:i,timeoutMs:r,currentContextRef:a,timeout:u}),[r,u]),children:t})}function jre(e,t={open:!1}){const n="rootStore"in e?e.rootStore:e,r=n.useState("floatingId"),{enabled:o=!0,open:s}=t,i=c.useContext(lS),{currentIdRef:a,delayRef:u,timeoutMs:l,initialDelayRef:d,currentContextRef:f,hasProvider:p,timeout:m}=i,[g,y]=c.useState(!1);return He(()=>{function x(){y(!1),f.current?.setIsInstantPhase(!1),a.current=null,f.current=null,u.current=d.current}if(o&&a.current&&!s&&a.current===r){if(y(!1),l)return m.start(l,x),()=>{m.clear()};x()}},[o,s,r,a,u,l,d,f,m]),He(()=>{if(!o||!s)return;const x=f.current,w=a.current;f.current={onOpenChange:n.setOpen,setIsInstantPhase:y},a.current=r,u.current={open:0,close:aa(d.current,"close")},w!==null&&w!==r?(m.clear(),y(!0),x?.setIsInstantPhase(!0),x?.onOpenChange(!1,xt(oh))):(y(!1),x?.setIsInstantPhase(!1))},[o,s,r,n,a,u,l,d,f,m]),He(()=>()=>{f.current=null},[f]),c.useMemo(()=>({hasProvider:p,delayRef:u,isInstantPhase:g}),[p,u,g])}const Fi=null;class Rre{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 Bi=new Rre;class Zn{static create(){return new Zn}static request(t){return Bi.request(t)}static cancel(t){return Bi.cancel(t)}currentId=Fi;request(t){this.cancel(),this.currentId=Bi.request(()=>{this.currentId=Fi,t()})}cancel=()=>{this.currentId!==Fi&&(Bi.cancel(this.currentId),this.currentId=Fi)};disposeEffect=()=>this.cancel}function uS(){const e=Jn(Zn.create).current;return oS(e.disposeEffect),e}function dS(e){return e?.ownerDocument||document}const Pre=c.createContext(null),Mre=()=>c.useContext(Pre),Tre=Rc("portal");function Ire(e={}){const{ref:t,container:n,componentProps:r=Qt,elementProps:o,elementState:s}=e,i=Lc(),u=Mre()?.portalNode,[l,d]=c.useState(null),[f,p]=c.useState(null),m=c.useRef(null);He(()=>{if(n===null){m.current&&(m.current=null,p(null),d(null));return}if(i==null)return;const x=(n&&(Jm(n)?n:n.current))??u??document.body;if(x==null){m.current&&(m.current=null,p(null),d(null));return}m.current!==x&&(m.current=x,p(null),d(x))},[n,u,i]);const g=li("div",r,{ref:[t,p],state:s,props:[{id:i,[Tre]:""},o]});return{portalNode:f,portalSubtree:l&&g?jt.createPortal(g,l):null}}function Are(e){return e==null?e:"current"in e?e.current:e}function _re(e,t){let n=null,r=null,o=!1;return{contextElement:e||void 0,getBoundingClientRect(){const s=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},i=t.axis==="x"||t.axis==="both",a=t.axis==="y"||t.axis==="both",u=["mouseenter","mousemove"].includes(t.dataRef.current.openEvent?.type||"")&&t.pointerType!=="touch";let l=s.width,d=s.height,f=s.x,p=s.y;return n==null&&t.x&&i&&(n=s.x-t.x),r==null&&t.y&&a&&(r=s.y-t.y),f-=n||0,p-=r||0,l=0,d=0,!o||u?(l=t.axis==="y"?s.width:0,d=t.axis==="x"?s.height:0,f=i&&t.x!=null?t.x:f,p=a&&t.y!=null?t.y:p):o&&!u&&(d=t.axis==="x"?s.height:d,l=t.axis==="y"?s.width:l),o=!0,{width:l,height:d,x:f,y:p,top:p,right:f+l,bottom:p+d,left:f}}}}function Ww(e){return e!=null&&e.clientX!=null}function Nre(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),s=n.useState("domReferenceElement"),i=n.context.dataRef,{enabled:a=!0,axis:u="both",x:l=null,y:d=null}=t,f=c.useRef(!1),p=c.useRef(null),[m,g]=c.useState(),[y,x]=c.useState([]),w=Ae((E,$)=>{f.current||i.current.openEvent&&!Ww(i.current.openEvent)||n.set("positionReference",_re(s,{x:E,y:$,axis:u,dataRef:i,pointerType:m}))}),b=Ae(E=>{l!=null||d!=null||(r?p.current||x([]):w(E.clientX,E.clientY))}),v=Xs(m)?o:r,C=c.useCallback(()=>{if(!v||!a||l!=null||d!=null)return;const E=Lt(o);function $(S){const j=Rn(S);_t(o,j)?(E.removeEventListener("mousemove",$),p.current=null):w(S.clientX,S.clientY)}if(!i.current.openEvent||Ww(i.current.openEvent)){E.addEventListener("mousemove",$);const S=()=>{E.removeEventListener("mousemove",$),p.current=null};return p.current=S,S}n.set("positionReference",s)},[v,a,l,d,o,i,s,n,w]);c.useEffect(()=>C(),[C,y]),c.useEffect(()=>{a&&!o&&(f.current=!1)},[a,o]),c.useEffect(()=>{!a&&r&&(f.current=!0)},[a,r]),He(()=>{a&&(l!=null||d!=null)&&(f.current=!1,w(l,d))},[a,l,d,w]);const k=c.useMemo(()=>{function E($){g($.pointerType)}return{onPointerDown:E,onPointerEnter:E,onMouseMove:b,onMouseEnter:b}},[b]);return c.useMemo(()=>a?{reference:k}:{},[a,k])}function Zw(e,t,n){let{reference:r,floating:o}=e;const s=un(t),i=nh(t),a=th(i),u=Ut(t),l=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let m;switch(u){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Pr(t)){case"start":m[i]-=p*(n&&l?-1:1);break;case"end":m[i]+=p*(n&&l?-1:1);break}return m}async function Dre(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=Xn(t,e),g=cS(m),x=a[p?f==="floating"?"reference":"floating":f],w=Ka(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(x)))==null||n?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:u})),b=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),C=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},k=Ka(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:u}):b);return{top:(w.top-k.top+g.top)/C.y,bottom:(k.bottom-w.bottom+g.bottom)/C.y,left:(w.left-k.left+g.left)/C.x,right:(k.right-w.right+g.right)/C.x}}const Vre=50,zre=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=i.detectOverflow?i:{...i,detectOverflow:Dre},u=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Zw(l,r,u),p=r,m=0;const g={};for(let y=0;y<s.length;y++){const x=s[y];if(!x)continue;const{name:w,fn:b}=x,{x:v,y:C,data:k,reset:E}=await b({x:d,y:f,initialPlacement:r,placement:p,strategy:o,middlewareData:g,rects:l,platform:a,elements:{reference:e,floating:t}});d=v??d,f=C??f,g[w]={...g[w],...k},E&&m<Vre&&(m++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(l=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:d,y:f}=Zw(l,p,u)),y=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:g}},Fre=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:u,elements:l}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...x}=Xn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=Ut(o),b=un(a),v=Ut(a)===a,C=await(u.isRTL==null?void 0:u.isRTL(l.floating)),k=p||(v||!y?[Ga(a)]:mre(a)),E=g!=="none";!p&&E&&k.push(...bre(a,y,g,C));const $=[a,...k],S=await u.detectOverflow(t,x),j=[];let R=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&j.push(S[w]),f){const V=pre(o,i,C);j.push(S[V[0]],S[V[1]])}if(R=[...R,{placement:o,overflows:j}],!j.every(V=>V<=0)){var T,A;const V=(((T=s.flip)==null?void 0:T.index)||0)+1,I=$[V];if(I&&(!(f==="alignment"?b!==un(I):!1)||R.every(O=>un(O.placement)===b?O.overflows[0]>0:!0)))return{data:{index:V,overflows:R},reset:{placement:I}};let _=(A=R.filter(N=>N.overflows[0]<=0).sort((N,O)=>N.overflows[1]-O.overflows[1])[0])==null?void 0:A.placement;if(!_)switch(m){case"bestFit":{var L;const N=(L=R.filter(O=>{if(E){const z=un(O.placement);return z===b||z==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(z=>z>0).reduce((z,M)=>z+M,0)]).sort((O,z)=>O[1]-z[1])[0])==null?void 0:L[0];N&&(_=N);break}case"initialPlacement":_=a;break}if(o!==_)return{reset:{placement:_}}}return{}}}};function Uw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Gw(e){return dre.some(t=>e[t]>=0)}const Bre=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=Xn(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=Uw(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Gw(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=Uw(i,n.floating);return{data:{escapedOffsets:a,escaped:Gw(a)}}}default:return{}}}}},fS=new Set(["left","top"]);async function Hre(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ut(n),a=Pr(n),u=un(n)==="y",l=fS.has(i)?-1:1,d=s&&u?-1:1,f=Xn(t,e);let{mainAxis:p,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof g=="number"&&(m=a==="end"?g*-1:g),u?{x:m*d,y:p*l}:{x:p*l,y:m*d}}const Wre=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,u=await Hre(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:i}}}}},Zre=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:u={fn:w=>{let{x:b,y:v}=w;return{x:b,y:v}}},...l}=Xn(e,t),d={x:n,y:r},f=await s.detectOverflow(t,l),p=un(Ut(o)),m=eh(p);let g=d[m],y=d[p];if(i){const w=m==="y"?"top":"left",b=m==="y"?"bottom":"right",v=g+f[w],C=g-f[b];g=Cp(v,g,C)}if(a){const w=p==="y"?"top":"left",b=p==="y"?"bottom":"right",v=y+f[w],C=y-f[b];y=Cp(v,y,C)}const x=u.fn({...t,[m]:g,[p]:y});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[m]:i,[p]:a}}}}}},Ure=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:u=!0,crossAxis:l=!0}=Xn(e,t),d={x:n,y:r},f=un(o),p=eh(f);let m=d[p],g=d[f];const y=Xn(a,t),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(u){const v=p==="y"?"height":"width",C=s.reference[p]-s.floating[v]+x.mainAxis,k=s.reference[p]+s.reference[v]-x.mainAxis;m<C?m=C:m>k&&(m=k)}if(l){var w,b;const v=p==="y"?"width":"height",C=fS.has(Ut(o)),k=s.reference[f]-s.floating[v]+(C&&((w=i.offset)==null?void 0:w[f])||0)+(C?0:x.crossAxis),E=s.reference[f]+s.reference[v]+(C?0:((b=i.offset)==null?void 0:b[f])||0)-(C?x.crossAxis:0);g<k?g=k:g>E&&(g=E)}return{[p]:m,[f]:g}}}},Gre=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:u=()=>{},...l}=Xn(e,t),d=await i.detectOverflow(t,l),f=Ut(o),p=Pr(o),m=un(o)==="y",{width:g,height:y}=s.floating;let x,w;f==="top"||f==="bottom"?(x=f,w=p===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(w=f,x=p==="end"?"top":"bottom");const b=y-d.top-d.bottom,v=g-d.left-d.right,C=Do(y-d[x],b),k=Do(g-d[w],v),E=!t.middlewareData.shift;let $=C,S=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&($=b),E&&!p){const R=Jt(d.left,0),T=Jt(d.right,0),A=Jt(d.top,0),L=Jt(d.bottom,0);m?S=g-2*(R!==0||T!==0?R+T:Jt(d.left,d.right)):$=y-2*(A!==0||L!==0?A+L:Jt(d.top,d.bottom))}await u({...t,availableWidth:S,availableHeight:$});const j=await i.getDimensions(a.floating);return g!==j.width||y!==j.height?{reset:{rects:!0}}:{}}}};function pS(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=sn(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Vo(n)!==s||Vo(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function ih(e){return Ve(e)?e:e.contextElement}function $o(e){const t=ih(e);if(!sn(t))return An(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=pS(t);let i=(s?Vo(n.width):n.width)/r,a=(s?Vo(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Kre=An(0);function mS(e){const t=Lt(e);return!Sc()||!t.visualViewport?Kre:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Yre(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Lt(e)?!1:t}function Jr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=ih(e);let i=An(1);t&&(r?Ve(r)&&(i=$o(r)):i=$o(e));const a=Yre(s,n,r)?mS(s):An(0);let u=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(s){const p=Lt(s),m=r&&Ve(r)?Lt(r):r;let g=p,y=xp(g);for(;y&&r&&m!==g;){const x=$o(y),w=y.getBoundingClientRect(),b=on(y),v=w.left+(y.clientLeft+parseFloat(b.paddingLeft))*x.x,C=w.top+(y.clientTop+parseFloat(b.paddingTop))*x.y;u*=x.x,l*=x.y,d*=x.x,f*=x.y,u+=v,l+=C,g=Lt(y),y=xp(g)}}return Ka({width:d,height:f,x:u,y:l})}function Pc(e,t){const n=$c(e).scrollLeft;return t?t.left+n:Jr(Fn(e)).left+n}function hS(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Pc(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function qre(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Fn(r),a=t?Ec(t.floating):!1;if(r===i||a&&s)return n;let u={scrollLeft:0,scrollTop:0},l=An(1);const d=An(0),f=sn(r);if((f||!f&&!s)&&((Yo(r)!=="body"||ui(i))&&(u=$c(r)),f)){const m=Jr(r);l=$o(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const p=i&&!f&&!s?hS(i,u):An(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-u.scrollLeft*l.x+d.x+p.x,y:n.y*l.y-u.scrollTop*l.y+d.y+p.y}}function Xre(e){return Array.from(e.getClientRects())}function Jre(e){const t=Fn(e),n=$c(e),r=e.ownerDocument.body,o=Jt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Jt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Pc(e);const a=-n.scrollTop;return on(r).direction==="rtl"&&(i+=Jt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Kw=25;function Qre(e,t){const n=Lt(e),r=Fn(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,u=0;if(o){s=o.width,i=o.height;const d=Sc();(!d||d&&t==="fixed")&&(a=o.offsetLeft,u=o.offsetTop)}const l=Pc(r);if(l<=0){const d=r.ownerDocument,f=d.body,p=getComputedStyle(f),m=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,g=Math.abs(r.clientWidth-f.clientWidth-m);g<=Kw&&(s-=g)}else l<=Kw&&(s+=l);return{width:s,height:i,x:a,y:u}}function eoe(e,t){const n=Jr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=sn(e)?$o(e):An(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,u=o*s.x,l=r*s.y;return{width:i,height:a,x:u,y:l}}function Yw(e,t,n){let r;if(t==="viewport")r=Qre(e,n);else if(t==="document")r=Jre(Fn(e));else if(Ve(t))r=eoe(t,n);else{const o=mS(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ka(r)}function gS(e,t){const n=qn(e);return n===t||!Ve(n)||Gn(n)?!1:on(n).position==="fixed"||gS(n,t)}function toe(e,t){const n=t.get(e);if(n)return n;let r=gr(e,[],!1).filter(a=>Ve(a)&&Yo(a)!=="body"),o=null;const s=on(e).position==="fixed";let i=s?qn(e):e;for(;Ve(i)&&!Gn(i);){const a=on(i),u=Qm(i);!u&&a.position==="fixed"&&(o=null),(s?!u&&!o:!u&&a.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||ui(i)&&!u&&gS(e,i))?r=r.filter(d=>d!==i):o=a,i=qn(i)}return t.set(e,r),r}function noe(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Ec(t)?[]:toe(t,this._c):[].concat(n),r],a=Yw(t,i[0],o);let u=a.top,l=a.right,d=a.bottom,f=a.left;for(let p=1;p<i.length;p++){const m=Yw(t,i[p],o);u=Jt(m.top,u),l=Do(m.right,l),d=Do(m.bottom,d),f=Jt(m.left,f)}return{width:l-f,height:d-u,x:f,y:u}}function roe(e){const{width:t,height:n}=pS(e);return{width:t,height:n}}function ooe(e,t,n){const r=sn(t),o=Fn(t),s=n==="fixed",i=Jr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const u=An(0);function l(){u.x=Pc(o)}if(r||!r&&!s)if((Yo(t)!=="body"||ui(o))&&(a=$c(t)),r){const m=Jr(t,!0,s,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else o&&l();s&&!r&&o&&l();const d=o&&!r&&!s?hS(o,a):An(0),f=i.left+a.scrollLeft-u.x-d.x,p=i.top+a.scrollTop-u.y-d.y;return{x:f,y:p,width:i.width,height:i.height}}function af(e){return on(e).position==="static"}function qw(e,t){if(!sn(e)||on(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Fn(e)===n&&(n=n.ownerDocument.body),n}function vS(e,t){const n=Lt(e);if(Ec(e))return n;if(!sn(e)){let o=qn(e);for(;o&&!Gn(o);){if(Ve(o)&&!af(o))return o;o=qn(o)}return n}let r=qw(e,t);for(;r&&Fne(r)&&af(r);)r=qw(r,t);return r&&Gn(r)&&af(r)&&!Qm(r)?n:r||Wne(e)||n}const soe=async function(e){const t=this.getOffsetParent||vS,n=this.getDimensions,r=await n(e.floating);return{reference:ooe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ioe(e){return on(e).direction==="rtl"}const aoe={convertOffsetParentRelativeRectToViewportRelativeRect:qre,getDocumentElement:Fn,getClippingRect:noe,getOffsetParent:vS,getElementRects:soe,getClientRects:Xre,getDimensions:roe,getScale:$o,isElement:Ve,isRTL:ioe};function bS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function coe(e,t){let n=null,r;const o=Fn(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),s();const l=e.getBoundingClientRect(),{left:d,top:f,width:p,height:m}=l;if(a||t(),!p||!m)return;const g=zi(f),y=zi(o.clientWidth-(d+p)),x=zi(o.clientHeight-(f+m)),w=zi(d),v={rootMargin:-g+"px "+-y+"px "+-x+"px "+-w+"px",threshold:Jt(0,Do(1,u))||1};let C=!0;function k(E){const $=E[0].intersectionRatio;if($!==u){if(!C)return i();$?i(!1,$):r=setTimeout(()=>{i(!1,1e-7)},1e3)}$===1&&!bS(l,e.getBoundingClientRect())&&i(),C=!1}try{n=new IntersectionObserver(k,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(k,v)}n.observe(e)}return i(!0),s}function Xw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,l=ih(e),d=o||s?[...l?gr(l):[],...t?gr(t):[]]:[];d.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const f=l&&a?coe(l,n):null;let p=-1,m=null;i&&(m=new ResizeObserver(w=>{let[b]=w;b&&b.target===l&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var v;(v=m)==null||v.observe(t)})),n()}),l&&!u&&m.observe(l),t&&m.observe(t));let g,y=u?Jr(e):null;u&&x();function x(){const w=Jr(e);y&&!bS(y,w)&&n(),y=w,g=requestAnimationFrame(x)}return n(),()=>{var w;d.forEach(b=>{o&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),f?.(),(w=m)==null||w.disconnect(),m=null,u&&cancelAnimationFrame(g)}}const loe=Wre,uoe=Zre,doe=Fre,foe=Gre,poe=Bre,moe=Ure,hoe=(e,t,n)=>{const r=new Map,o={platform:aoe,...n},s={...o.platform,_c:r};return zre(e,t,{...o,platform:s})};var goe=typeof document<"u",voe=function(){},ca=goe?c.useLayoutEffect:voe;function qa(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(!qa(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 s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!qa(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function yS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Jw(e,t){const n=yS(e);return Math.round(t*n)/n}function cf(e){const t=c.useRef(e);return ca(()=>{t.current=e}),t}function boe(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:u,open:l}=e,[d,f]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=c.useState(r);qa(p,r)||m(r);const[g,y]=c.useState(null),[x,w]=c.useState(null),b=c.useCallback(O=>{O!==E.current&&(E.current=O,y(O))},[]),v=c.useCallback(O=>{O!==$.current&&($.current=O,w(O))},[]),C=s||g,k=i||x,E=c.useRef(null),$=c.useRef(null),S=c.useRef(d),j=u!=null,R=cf(u),T=cf(o),A=cf(l),L=c.useCallback(()=>{if(!E.current||!$.current)return;const O={placement:t,strategy:n,middleware:p};T.current&&(O.platform=T.current),hoe(E.current,$.current,O).then(z=>{const M={...z,isPositioned:A.current!==!1};V.current&&!qa(S.current,M)&&(S.current=M,jt.flushSync(()=>{f(M)}))})},[p,t,n,T,A]);ca(()=>{l===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(O=>({...O,isPositioned:!1})))},[l]);const V=c.useRef(!1);ca(()=>(V.current=!0,()=>{V.current=!1}),[]),ca(()=>{if(C&&(E.current=C),k&&($.current=k),C&&k){if(R.current)return R.current(C,k,L);L()}},[C,k,L,R,j]);const I=c.useMemo(()=>({reference:E,floating:$,setReference:b,setFloating:v}),[b,v]),_=c.useMemo(()=>({reference:C,floating:k}),[C,k]),N=c.useMemo(()=>{const O={position:n,left:0,top:0};if(!_.floating)return O;const z=Jw(_.floating,d.x),M=Jw(_.floating,d.y);return a?{...O,transform:"translate("+z+"px, "+M+"px)",...yS(_.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:M}},[n,a,_.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:L,refs:I,elements:_,floatingStyles:N}),[d,L,I,_,N])}const yoe=(e,t)=>{const n=loe(e);return{name:n.name,fn:n.fn,options:[e,t]}},woe=(e,t)=>{const n=uoe(e);return{name:n.name,fn:n.fn,options:[e,t]}},xoe=(e,t)=>({fn:moe(e).fn,options:[e,t]}),Coe=(e,t)=>{const n=doe(e);return{name:n.name,fn:n.fn,options:[e,t]}},koe=(e,t)=>{const n=foe(e);return{name:n.name,fn:n.fn,options:[e,t]}},Eoe=(e,t)=>{const n=poe(e);return{name:n.name,fn:n.fn,options:[e,t]}},Soe={intentional:"onClick",sloppy:"onPointerDown"};function $oe(e){return{escapeKey:typeof e=="boolean"?e:e?.escapeKey??!1,outsidePress:typeof e=="boolean"?e:e?.outsidePress??!0}}function Ooe(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),s=n.useState("referenceElement"),i=n.useState("domReferenceElement"),{onOpenChange:a,dataRef:u}=n.context,{enabled:l=!0,escapeKey:d=!0,outsidePress:f=!0,outsidePressEvent:p="sloppy",referencePress:m=!1,referencePressEvent:g="sloppy",ancestorScroll:y=!1,bubbles:x,externalTree:w}=t,b=jc(w),v=Ae(typeof f=="function"?f:()=>!1),C=typeof f=="function"?v:f,k=c.useRef(!1),{escapeKey:E,outsidePress:$}=$oe(x),S=c.useRef(null),j=No(),R=No(),T=Ae(()=>{R.clear(),u.current.insideReactTree=!1}),A=c.useRef(!1),L=c.useRef(""),V=Ae(P=>{L.current=P.pointerType}),I=Ae(()=>{const P=L.current,Y=P==="pen"||!P?"mouse":P,B=typeof p=="function"?p():p;return typeof B=="string"?B:B[Y]}),_=Ae(P=>{if(!r||!l||!d||P.key!=="Escape"||A.current)return;const Y=u.current.floatingContext?.nodeId,B=b?Ts(b.nodesRef.current,Y):[];if(!E&&B.length>0){let X=!0;if(B.forEach(te=>{te.context?.open&&!te.context.dataRef.current.__escapeKeyBubbles&&(X=!1)}),!X)return}const ve=lre(P)?P.nativeEvent:P,Q=xt(sh,ve);n.setOpen(!1,Q),!E&&!Q.isPropagationAllowed&&P.stopPropagation()}),N=Ae(P=>{const Y=I();return Y==="intentional"&&P.type!=="click"||Y==="sloppy"&&P.type==="click"}),O=Ae(()=>{u.current.insideReactTree=!0,R.start(0,T)}),z=Ae((P,Y=!1)=>{if(N(P)){T();return}if(u.current.insideReactTree){T();return}if(I()==="intentional"&&Y||typeof C=="function"&&!C(P))return;const B=Rn(P),ve=`[${Rc("inert")}]`,Q=Xr(n.select("floatingElement")).querySelectorAll(ve),X=n.context.triggerElements;if(B&&(X.hasElement(B)||X.hasMatchingElement(W=>_t(W,B))))return;let te=Ve(B)?B:null;for(;te&&!Gn(te);){const W=qn(te);if(Gn(W)||!Ve(W))break;te=W}if(Q.length&&Ve(B)&&!ire(B)&&!_t(B,n.select("floatingElement"))&&Array.from(Q).every(W=>!_t(te,W)))return;if(sn(B)&&!("touches"in P)){const W=Gn(B),le=on(B),J=/auto|scroll/,de=W||J.test(le.overflowX),Z=W||J.test(le.overflowY),ye=de&&B.clientWidth>0&&B.scrollWidth>B.clientWidth,Pe=Z&&B.clientHeight>0&&B.scrollHeight>B.clientHeight,Ee=le.direction==="rtl",Fe=Pe&&(Ee?P.offsetX<=B.offsetWidth-B.clientWidth:P.offsetX>B.clientWidth),nt=ye&&P.offsetY>B.clientHeight;if(Fe||nt)return}const ke=u.current.floatingContext?.nodeId,Ce=b&&Ts(b.nodesRef.current,ke).some(W=>wn(P,W.context?.elements.floating));if(wn(P,n.select("floatingElement"))||wn(P,n.select("domReferenceElement"))||Ce)return;const U=b?Ts(b.nodesRef.current,ke):[];if(U.length>0){let W=!0;if(U.forEach(le=>{le.context?.open&&!le.context.dataRef.current.__outsidePressBubbles&&(W=!1)}),!W)return}n.setOpen(!1,xt(Sre,P)),T()}),M=Ae(P=>{I()!=="sloppy"||P.pointerType==="touch"||!n.select("open")||!l||wn(P,n.select("floatingElement"))||wn(P,n.select("domReferenceElement"))||z(P)}),q=Ae(P=>{if(I()!=="sloppy"||!n.select("open")||!l||wn(P,n.select("floatingElement"))||wn(P,n.select("domReferenceElement")))return;const Y=P.touches[0];Y&&(S.current={startTime:Date.now(),startX:Y.clientX,startY:Y.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},j.start(1e3,()=>{S.current&&(S.current.dismissOnTouchEnd=!1,S.current.dismissOnMouseDown=!1)}))}),ee=Ae(P=>{const Y=Rn(P);function B(){q(P),Y?.removeEventListener(P.type,B)}Y?.addEventListener(P.type,B)}),K=Ae(P=>{const Y=k.current;if(k.current=!1,j.clear(),P.type==="mousedown"&&S.current&&!S.current.dismissOnMouseDown)return;const B=Rn(P);function ve(){P.type==="pointerdown"?M(P):z(P,Y),B?.removeEventListener(P.type,ve)}B?.addEventListener(P.type,ve)}),ue=Ae(P=>{if(I()!=="sloppy"||!S.current||wn(P,n.select("floatingElement"))||wn(P,n.select("domReferenceElement")))return;const Y=P.touches[0];if(!Y)return;const B=Math.abs(Y.clientX-S.current.startX),ve=Math.abs(Y.clientY-S.current.startY),Q=Math.sqrt(B*B+ve*ve);Q>5&&(S.current.dismissOnTouchEnd=!0),Q>10&&(z(P),j.clear(),S.current=null)}),se=Ae(P=>{const Y=Rn(P);function B(){ue(P),Y?.removeEventListener(P.type,B)}Y?.addEventListener(P.type,B)}),re=Ae(P=>{I()!=="sloppy"||!S.current||wn(P,n.select("floatingElement"))||wn(P,n.select("domReferenceElement"))||(S.current.dismissOnTouchEnd&&z(P),j.clear(),S.current=null)}),oe=Ae(P=>{const Y=Rn(P);function B(){re(P),Y?.removeEventListener(P.type,B)}Y?.addEventListener(P.type,B)});c.useEffect(()=>{if(!r||!l)return;u.current.__escapeKeyBubbles=E,u.current.__outsidePressBubbles=$;const P=new qo;function Y(te){n.setOpen(!1,xt(oh,te))}function B(){P.clear(),A.current=!0}function ve(){P.start(Sc()?5:0,()=>{A.current=!1})}const Q=Xr(o);Q.addEventListener("pointerdown",V,!0),d&&(Q.addEventListener("keydown",_),Q.addEventListener("compositionstart",B),Q.addEventListener("compositionend",ve)),C&&(Q.addEventListener("click",K,!0),Q.addEventListener("pointerdown",K,!0),Q.addEventListener("touchstart",ee,!0),Q.addEventListener("touchmove",se,!0),Q.addEventListener("touchend",oe,!0),Q.addEventListener("mousedown",K,!0));let X=[];return y&&(Ve(i)&&(X=gr(i)),Ve(o)&&(X=X.concat(gr(o))),!Ve(s)&&s&&s.contextElement&&(X=X.concat(gr(s.contextElement)))),X=X.filter(te=>te!==Q.defaultView?.visualViewport),X.forEach(te=>{te.addEventListener("scroll",Y,{passive:!0})}),()=>{Q.removeEventListener("pointerdown",V,!0),d&&(Q.removeEventListener("keydown",_),Q.removeEventListener("compositionstart",B),Q.removeEventListener("compositionend",ve)),C&&(Q.removeEventListener("click",K,!0),Q.removeEventListener("pointerdown",K,!0),Q.removeEventListener("touchstart",ee,!0),Q.removeEventListener("touchmove",se,!0),Q.removeEventListener("touchend",oe,!0),Q.removeEventListener("mousedown",K,!0)),X.forEach(te=>{te.removeEventListener("scroll",Y)}),P.clear()}},[u,o,s,i,d,C,r,a,y,l,E,$,_,z,K,M,ee,se,oe,V,n]),c.useEffect(T,[C,T]);const ie=c.useMemo(()=>({onKeyDown:_,...m&&{[Soe[g]]:P=>{n.setOpen(!1,xt(Ya,P.nativeEvent))},...g!=="intentional"&&{onClick(P){n.setOpen(!1,xt(Ya,P.nativeEvent))}}}}),[_,n,m,g]),ae=Ae(P=>{const Y=Rn(P.nativeEvent);!_t(n.select("floatingElement"),Y)||P.button!==0||(k.current=!0)}),pe=c.useMemo(()=>({onKeyDown:_,onPointerDown:ae,onMouseDown:ae,onMouseUp:ae,onClickCapture:O,onMouseDownCapture:O,onPointerDownCapture:O,onMouseUpCapture:O,onTouchEndCapture:O,onTouchMoveCapture:O}),[_,ae,O]);return c.useMemo(()=>l?{reference:ie,floating:pe,trigger:ie}:{},[l,ie,pe])}var Xa=Symbol("NOT_FOUND");function Loe(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function joe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Roe(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 Qw=e=>Array.isArray(e)?e:[e];function Poe(e){const t=Array.isArray(e[0])?e[0]:e;return Roe(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Moe(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}function Toe(e){let t;return{get(n){return t&&e(t.key,n)?t.value:Xa},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function Ioe(e,t){let n=[];function r(a){const u=n.findIndex(l=>t(a,l.key));if(u>-1){const l=n[u];return u>0&&(n.splice(u,1),n.unshift(l)),l.value}return Xa}function o(a,u){r(a)===Xa&&(n.unshift({key:a,value:u}),n.length>e&&n.pop())}function s(){return n}function i(){n=[]}return{get:r,put:o,getEntries:s,clear:i}}var Aoe=(e,t)=>e===t;function _oe(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let s=0;s<o;s++)if(!e(n[s],r[s]))return!1;return!0}}function Noe(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=Aoe,maxSize:o=1,resultEqualityCheck:s}=n,i=_oe(r);let a=0;const u=o<=1?Toe(i):Ioe(o,i);function l(){let d=u.get(arguments);if(d===Xa){if(d=e.apply(null,arguments),a++,s){const p=u.getEntries().find(m=>s(m.value,d));p&&(d=p.value,a!==0&&a--)}u.put(arguments,d)}return d}return l.clearCache=()=>{u.clear(),l.resetResultsCount()},l.resultsCount=()=>a,l.resetResultsCount=()=>{a=0},l}var Doe=class{constructor(e){this.value=e}deref(){return this.value}},Voe=typeof WeakRef<"u"?WeakRef:Doe,zoe=0,ex=1;function Hi(){return{s:zoe,v:void 0,o:null,p:null}}function wS(e,t={}){let n=Hi();const{resultEqualityCheck:r}=t;let o,s=0;function i(){let a=n;const{length:u}=arguments;for(let f=0,p=u;f<p;f++){const m=arguments[f];if(typeof m=="function"||typeof m=="object"&&m!==null){let g=a.o;g===null&&(a.o=g=new WeakMap);const y=g.get(m);y===void 0?(a=Hi(),g.set(m,a)):a=y}else{let g=a.p;g===null&&(a.p=g=new Map);const y=g.get(m);y===void 0?(a=Hi(),g.set(m,a)):a=y}}const l=a;let d;if(a.s===ex)d=a.v;else if(d=e.apply(null,arguments),s++,r){const f=o?.deref?.()??o;f!=null&&r(f,d)&&(d=f,s!==0&&s--),o=typeof d=="object"&&d!==null||typeof d=="function"?new Voe(d):d}return l.s=ex,l.v=d,d}return i.clearCache=()=>{n=Hi(),i.resetResultsCount()},i.resultsCount=()=>s,i.resetResultsCount=()=>{s=0},i}function xS(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let s=0,i=0,a,u={},l=o.pop();typeof l=="object"&&(u=l,l=o.pop()),Loe(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);const d={...n,...u},{memoize:f,memoizeOptions:p=[],argsMemoize:m=wS,argsMemoizeOptions:g=[]}=d,y=Qw(p),x=Qw(g),w=Poe(o),b=f(function(){return s++,l.apply(null,arguments)},...y),v=m(function(){i++;const k=Moe(w,arguments);return a=b.apply(null,k),a},...x);return Object.assign(v,{resultFunc:l,memoizedResultFunc:b,dependencies:w,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>a,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:f,argsMemoize:m})};return Object.assign(r,{withTypes:()=>r}),r}var Foe=xS(wS),Boe=Object.assign((e,t=Foe)=>{joe(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(s=>e[s]);return t(r,(...s)=>s.reduce((i,a,u)=>(i[n[u]]=a,i),{}))},{withTypes:()=>Boe});xS({memoize:Noe,memoizeOptions:{maxSize:1,equalityCheck:Object.is}});const Ue=(e,t,n,r,o,s,...i)=>{if(i.length>0)throw new Error(Ko(1));let a;if(e)a=e;else throw new Error("Missing arguments");return a};var lf={exports:{}},uf={};var tx;function Hoe(){if(tx)return uf;tx=1;var e=Qa(),t=rk();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,s=e.useRef,i=e.useEffect,a=e.useMemo,u=e.useDebugValue;return uf.useSyncExternalStoreWithSelector=function(l,d,f,p,m){var g=s(null);if(g.current===null){var y={hasValue:!1,value:null};g.current=y}else y=g.current;g=a(function(){function w(E){if(!b){if(b=!0,v=E,E=p(E),m!==void 0&&y.hasValue){var $=y.value;if(m($,E))return C=$}return C=E}if($=C,r(v,E))return $;var S=p(E);return m!==void 0&&m($,S)?(v=E,$):(v=E,C=S)}var b=!1,v,C,k=f===void 0?null:f;return[function(){return w(d())},k===null?void 0:function(){return w(k())}]},[d,f,p,m]);var x=o(l,g[0],g[1]);return i(function(){y.hasValue=!0,y.value=x},[x]),u(x),x},uf}var nx;function Woe(){return nx||(nx=1,lf.exports=Hoe()),lf.exports}var Zoe=Woe();const Uoe=V4(19),Goe=Uoe?Yoe:qoe;function Koe(e,t,n,r,o){return Goe(e,t,n,r,o)}function Yoe(e,t,n,r,o){const s=c.useCallback(()=>t(e.getSnapshot(),n,r,o),[e,t,n,r,o]);return X9.useSyncExternalStore(e.subscribe,s,s)}function qoe(e,t,n,r,o){return Zoe.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,s=>t(s,n,r,o))}class Is{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])){Is.prototype.setState.call(this,{...this.state,...t});return}}set(t,n){Object.is(this.state[t],n)||Is.prototype.setState.call(this,{...this.state,[t]:n})}notifyAll(){const t={...this.state};Is.prototype.setState.call(this,t)}}class CS extends Is{constructor(t,n={},r){super(t),this.context=n,this.selectors=r}controlledValues=new Map;useSyncedValue(t,n){c.useDebugValue(t),He(()=>{this.state[t]!==n&&this.set(t,n)},[t,n])}useSyncedValueWithCleanup(t,n){He(()=>(this.state[t]!==n&&this.set(t,n),()=>{this.set(t,void 0)}),[t,n])}useSyncedValues(t){const n=Object.values(t);He(()=>{this.update(t)},n)}useControlledProp(t,n,r){c.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})),He(()=>{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 s=this.selectors[t];return s(this.state,n,r,o)};useState=(t,n,r,o)=>{c.useDebugValue(t);const s=this.selectors[t];return Koe(this,s,n,r,o)};useContextCallback(t,n){c.useDebugValue(t);const r=Ae(n??Hte);this.context[t]=r}useStateSetter(t){const n=c.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(s=>{const i=r(s);if(!Object.is(o,i)){const a=o;o=i,n(i,a,this)}})}}const Xoe={open:Ue(e=>e.open),domReferenceElement:Ue(e=>e.domReferenceElement),referenceElement:Ue(e=>e.positionReference??e.referenceElement),floatingElement:Ue(e=>e.floatingElement),floatingId:Ue(e=>e.floatingId)};class ah extends CS{constructor(t){const{nested:n,noEmit:r,onOpenChange:o,triggerElements:s,...i}=t;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:o,dataRef:{current:{}},events:Cre(),nested:n,noEmit:r,triggerElements:s},Xoe)}setOpen=(t,n)=>{if((!t||!this.state.open||ure(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 Joe(e,t=!1,n=!1){const[r,o]=c.useState(e&&t?"idle":void 0),[s,i]=c.useState(e);return e&&!s&&(i(!0),o("starting")),!e&&s&&r!=="ending"&&!n&&o("ending"),!e&&!s&&r==="ending"&&o(void 0),He(()=>{if(!e&&s&&r!=="ending"&&n){const a=Zn.request(()=>{o("ending")});return()=>{Zn.cancel(a)}}},[e,s,r,n]),He(()=>{if(!e||t)return;const a=Zn.request(()=>{jt.flushSync(()=>{o(void 0)})});return()=>{Zn.cancel(a)}},[t,e]),He(()=>{if(!e||!t)return;e&&s&&r!=="idle"&&o("starting");const a=Zn.request(()=>{o("idle")});return()=>{Zn.cancel(a)}},[t,e,s,o,r]),c.useMemo(()=>({mounted:s,setMounted:i,transitionStatus:r}),[s,r])}function kS(e,t=!1,n=!0){const r=uS();return Ae((o,s=null)=>{r.cancel();const i=Are(e);i!=null&&(typeof i.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED?o():r.request(()=>{function a(){i&&Promise.all(i.getAnimations().map(u=>u.finished)).then(()=>{s!=null&&s.aborted||jt.flushSync(o)}).catch(()=>{if(n){if(s!=null&&s.aborted)return;jt.flushSync(o)}else i.getAnimations().length>0&&i.getAnimations().some(u=>u.pending||u.playState!=="finished")&&a()})}t?r.request(a):a()}))})}function ES(e){const{enabled:t=!0,open:n,ref:r,onComplete:o}=e,s=Gr(n),i=Ae(o),a=kS(r,n);c.useEffect(()=>{t&&a(()=>{n===s.current&&i()})},[t,n,i,a,s])}function Qoe(e,t){const n=c.useRef(null);return c.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 ese(e,t,n,r){const o=n.useState("isMountedByTrigger",e),s=Qoe(e,n),i=Ae(a=>{const u=s(a);return a!==null&&n.select("open")&&n.select("activeTriggerId")==null&&n.update({activeTriggerId:e,activeTriggerElement:a,...r}),u});return He(()=>{o&&n.update({activeTriggerElement:t.current,...r})},[o,n,t,...Object.values(r)]),{registerTrigger:i,isMountedByThisTrigger:o}}function tse(e){const t=e.useState("open");He(()=>{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 nse(e,t,n){const{mounted:r,setMounted:o,transitionStatus:s}=Joe(e);t.useSyncedValues({mounted:r,transitionStatus:s});const i=Ae(()=>{o(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1}),t.context.onOpenChangeComplete?.(!1)}),a=t.useState("preventUnmountingOnClose");return ES({enabled:!a,open:e,ref:t.context.popupRef,onComplete(){e||i()}}),{forceUnmount:i,transitionStatus:s}}class ch{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 rse(){return new ah({open:!1,floatingElement:null,referenceElement:null,triggerElements:new ch,floatingId:"",nested:!1,noEmit:!1,onOpenChange:void 0})}function ose(){return{open:!1,mounted:!1,transitionStatus:"idle",floatingRootContext:rse(),preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,popupElement:null,positionerElement:null,activeTriggerProps:Qt,inactiveTriggerProps:Qt,popupProps:Qt}}const sse={open:Ue(e=>e.open),mounted:Ue(e=>e.mounted),transitionStatus:Ue(e=>e.transitionStatus),floatingRootContext:Ue(e=>e.floatingRootContext),preventUnmountingOnClose:Ue(e=>e.preventUnmountingOnClose),payload:Ue(e=>e.payload),activeTriggerId:Ue(e=>e.activeTriggerId),activeTriggerElement:Ue(e=>e.mounted?e.activeTriggerElement:null),isTriggerActive:Ue((e,t)=>t!==void 0&&e.activeTriggerId===t),isOpenedByTrigger:Ue((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.open),isMountedByTrigger:Ue((e,t)=>t!==void 0&&e.activeTriggerId===t&&e.mounted),triggerProps:Ue((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),popupProps:Ue(e=>e.popupProps),popupElement:Ue(e=>e.popupElement),positionerElement:Ue(e=>e.positionerElement)};function ise(e){const{open:t=!1,onOpenChange:n,elements:r={}}=e,o=Lc(),s=rh()!=null,i=Jn(()=>new ah({open:t,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:r.triggers??new ch,floatingId:o,nested:s,noEmit:e.noEmit||!1})).current;return He(()=>{const a={open:t,floatingId:o};r.reference!==void 0&&(a.referenceElement=r.reference,a.domReferenceElement=Ve(r.reference)?r.reference:null),r.floating!==void 0&&(a.floatingElement=r.floating),i.update(a)},[t,o,r.reference,r.floating,i]),i.context.onOpenChange=n,i.context.nested=s,i.context.noEmit=e.noEmit||!1,i}function ase(e={}){const{nodeId:t,externalTree:n}=e,r=ise(e),o=e.rootContext||r,s={reference:o.useState("referenceElement"),floating:o.useState("floatingElement"),domReference:o.useState("domReferenceElement")},[i,a]=c.useState(null),u=c.useRef(null),l=jc(n);He(()=>{s.domReference&&(u.current=s.domReference)},[s.domReference]);const d=boe({...e,elements:{...s,...i&&{reference:i}}}),f=c.useCallback($=>{const S=Ve($)?{getBoundingClientRect:()=>$.getBoundingClientRect(),getClientRects:()=>$.getClientRects(),contextElement:$}:$;a(S),d.refs.setReference(S)},[d.refs]),[p,m]=c.useState(null),[g,y]=c.useState(null);o.useSyncedValue("referenceElement",p),o.useSyncedValue("domReferenceElement",Ve(p)?p:null),o.useSyncedValue("floatingElement",g);const x=c.useCallback($=>{(Ve($)||$===null)&&(u.current=$,m($)),(Ve(d.refs.reference.current)||d.refs.reference.current===null||$!==null&&!Ve($))&&d.refs.setReference($)},[d.refs,m]),w=c.useCallback($=>{y($),d.refs.setFloating($)},[d.refs]),b=c.useMemo(()=>({...d.refs,setReference:x,setFloating:w,setPositionReference:f,domReference:u}),[d.refs,x,w,f]),v=c.useMemo(()=>({...d.elements,domReference:s.domReference}),[d.elements,s.domReference]),C=o.useState("open"),k=o.useState("floatingId"),E=c.useMemo(()=>({...d,dataRef:o.context.dataRef,open:C,onOpenChange:o.setOpen,events:o.context.events,floatingId:k,refs:b,elements:v,nodeId:t,rootStore:o}),[d,b,v,t,o,C,k]);return He(()=>{o.context.dataRef.current.floatingContext=E;const $=l?.nodesRef.current.find(S=>S.id===t);$&&($.context=E)}),c.useMemo(()=>({...d,context:E,refs:b,elements:v,rootStore:o}),[d,b,v,E,o])}function cse(e){const{popupStore:t,noEmit:n=!1,treatPopupAsFloatingElement:r=!1,onOpenChange:o}=e,s=Lc(),i=rh()!=null,a=t.useState("open"),u=t.useState("activeTriggerElement"),l=t.useState(r?"popupElement":"positionerElement"),d=t.context.triggerElements,f=Jn(()=>new ah({open:a,referenceElement:u,floatingElement:l,triggerElements:d,onOpenChange:o,floatingId:s,nested:i,noEmit:n})).current;return He(()=>{const p={open:a,floatingId:s,referenceElement:u,floatingElement:l};Ve(u)&&(p.domReferenceElement=u),f.update(p)},[a,s,u,l,f]),f.context.onOpenChange=o,f.context.nested=i,f.context.noEmit=n,f}const df=ere&&Qne;function lse(e,t={}){const n="rootStore"in e?e.rootStore:e,{events:r,dataRef:o}=n.context,{enabled:s=!0,visibleOnly:i=!0}=t,a=c.useRef(!1),u=No(),l=c.useRef(!0);c.useEffect(()=>{const f=n.select("domReferenceElement");if(!s)return;const p=Lt(f);function m(){!n.select("open")&&sn(f)&&f===Vw(Xr(f))&&(a.current=!0)}function g(){l.current=!0}function y(){l.current=!1}return p.addEventListener("blur",m),df&&(p.addEventListener("keydown",g,!0),p.addEventListener("pointerdown",y,!0)),()=>{p.removeEventListener("blur",m),df&&(p.removeEventListener("keydown",g,!0),p.removeEventListener("pointerdown",y,!0))}},[n,s]),c.useEffect(()=>{if(!s)return;function f(p){(p.reason===Ya||p.reason===sh)&&(a.current=!0)}return r.on("openchange",f),()=>{r.off("openchange",f)}},[r,s]);const d=c.useMemo(()=>({onMouseLeave(){a.current=!1},onFocus(f){if(a.current)return;const p=Rn(f.nativeEvent);if(i&&Ve(p)){if(df&&!f.relatedTarget){if(!l.current&&!are(p))return}else if(!cre(p))return}n.setOpen(!0,xt(Ep,f.nativeEvent,f.currentTarget))},onBlur(f){a.current=!1;const p=f.relatedTarget,m=f.nativeEvent,g=Ve(p)&&p.hasAttribute(Rc("focus-guard"))&&p.getAttribute("data-type")==="outside";u.start(0,()=>{const y=n.select("domReferenceElement"),x=Vw(y?y.ownerDocument:document);!p&&x===y||_t(o.current.floatingContext?.refs.floating.current,x)||_t(y,x)||g||n.context.triggerElements.hasElement(f.relatedTarget)||n.setOpen(!1,xt(Ep,m))})}}),[o,n,i,u]);return c.useMemo(()=>s?{reference:d,trigger:d}:{},[s,d])}const Sp=Rc("safe-polygon"),use=`button,a,[role="button"],select,[tabindex]:not([tabindex="-1"]),${aS}`;function dse(e){return e?!!e.closest(use):!1}function SS(e){const t=c.useRef(void 0),n=c.useRef(!1),r=c.useRef(void 0),o=c.useRef(!0),s=c.useRef(!1),i=c.useRef(()=>{}),a=c.useRef(!1),u=No(),l=No(),d=c.useRef(void 0);return c.useMemo(()=>{const f=e.context.dataRef.current;return f.hoverInteractionState||(f.hoverInteractionState={pointerTypeRef:t,interactedInsideRef:n,handlerRef:r,blockMouseMoveRef:o,performedPointerEventsMutationRef:s,unbindMouseMoveRef:i,restTimeoutPendingRef:a,openChangeTimeout:u,restTimeout:l,handleCloseOptionsRef:d}),f.hoverInteractionState},[e,t,n,r,o,s,i,a,u,l,d])}const fse=new Set(["click","mousedown"]);function pse(e,t={}){const n="rootStore"in e?e.rootStore:e,r=n.useState("open"),o=n.useState("floatingElement"),s=n.useState("domReferenceElement"),{dataRef:i}=n.context,{enabled:a=!0,closeDelay:u=0,externalTree:l}=t,{pointerTypeRef:d,interactedInsideRef:f,handlerRef:p,performedPointerEventsMutationRef:m,unbindMouseMoveRef:g,restTimeoutPendingRef:y,openChangeTimeout:x,handleCloseOptionsRef:w}=SS(n),b=jc(l),v=rh(),C=Ae(()=>f.current?!0:i.current.openEvent?fse.has(i.current.openEvent.type):!1),k=Ae(()=>{const R=i.current.openEvent?.type;return R?.includes("mouse")&&R!=="mousedown"}),E=c.useCallback((R,T=!0)=>{const A=mse(u,d.current);A&&!p.current?x.start(A,()=>n.setOpen(!1,xt(Un,R))):T&&(x.clear(),n.setOpen(!1,xt(Un,R)))},[u,p,n,d,x]),$=Ae(()=>{g.current(),p.current=void 0}),S=Ae(()=>{if(m.current){const R=Xr(o).body;R.style.pointerEvents="",R.removeAttribute(Sp),m.current=!1}}),j=Ae(R=>{const T=Rn(R);if(!dse(T)){f.current=!1;return}f.current=!0});He(()=>{r||(d.current=void 0,y.current=!1,f.current=!1,$(),S())},[r,d,y,f,$,S]),c.useEffect(()=>()=>{$()},[$]),c.useEffect(()=>S,[S]),He(()=>{if(a&&r&&w.current?.blockPointerEvents&&k()&&Ve(s)&&o){m.current=!0;const R=Xr(o).body;R.setAttribute(Sp,"");const T=s,A=o,L=b?.nodesRef.current.find(V=>V.id===v)?.context?.elements.floating;return L&&(L.style.pointerEvents=""),R.style.pointerEvents="none",T.style.pointerEvents="auto",A.style.pointerEvents="auto",()=>{R.style.pointerEvents="",T.style.pointerEvents="",A.style.pointerEvents=""}}},[a,r,s,o,w,k,b,v,m]),c.useEffect(()=>{if(!a)return;function R(V){if(C()||!i.current.floatingContext)return;const I=n.context.triggerElements;V.relatedTarget&&I.hasElement(V.relatedTarget)||(S(),$(),C()||E(V))}function T(V){x.clear(),S(),p.current?.(V),$()}function A(V){C()||E(V,!1)}const L=o;return L&&(L.addEventListener("mouseleave",R),L.addEventListener("mouseenter",T),L.addEventListener("mouseleave",A),L.addEventListener("pointerdown",j,!0)),()=>{L&&(L.removeEventListener("mouseleave",R),L.removeEventListener("mouseenter",T),L.removeEventListener("mouseleave",A),L.removeEventListener("pointerdown",j,!0))}})}function mse(e,t){return t&&!Xs(t)?0:typeof e=="function"?e():e}function ff(e){return typeof e=="function"?e():e}const hse={current:null};function gse(e,t={}){const n="rootStore"in e?e.rootStore:e,{dataRef:r,events:o}=n.context,{enabled:s=!0,delay:i=0,handleClose:a=null,mouseOnly:u=!1,restMs:l=0,move:d=!0,triggerElementRef:f=hse,externalTree:p,isActiveTrigger:m=!0}=t,g=jc(p),{pointerTypeRef:y,interactedInsideRef:x,handlerRef:w,blockMouseMoveRef:b,performedPointerEventsMutationRef:v,unbindMouseMoveRef:C,restTimeoutPendingRef:k,openChangeTimeout:E,restTimeout:$,handleCloseOptionsRef:S}=SS(n),j=Gr(a),R=Gr(i),T=Gr(l);m&&(S.current=j.current?.__options);const A=Ae(()=>x.current?!0:r.current.openEvent?["click","mousedown"].includes(r.current.openEvent.type):!1),L=c.useCallback((N,O=!0)=>{const z=aa(R.current,"close",y.current);z&&!w.current?E.start(z,()=>n.setOpen(!1,xt(Un,N))):O&&(E.clear(),n.setOpen(!1,xt(Un,N)))},[R,w,n,y,E]),V=Ae(()=>{C.current(),w.current=void 0}),I=Ae(()=>{if(v.current){const N=Xr(n.select("domReferenceElement")).body;N.style.pointerEvents="",N.removeAttribute(Sp),v.current=!1}});c.useEffect(()=>{if(!s)return;function N(O){O.open||(E.clear(),$.clear(),b.current=!0,k.current=!1)}return o.on("openchange",N),()=>{o.off("openchange",N)}},[s,o,E,$,b,k]);const _=Ae(N=>{if(A()||!r.current.floatingContext)return;const O=n.context.triggerElements;N.relatedTarget&&O.hasElement(N.relatedTarget)||j.current?.({...r.current.floatingContext,tree:g,x:N.clientX,y:N.clientY,onClose(){I(),V(),A()||L(N)}})(N)});return c.useEffect(()=>{if(!s)return;const N=f.current??(m?n.select("domReferenceElement"):null);if(!Ve(N))return;function O(q){if(E.clear(),b.current=!1,u&&!Xs(y.current)||ff(T.current)>0&&!aa(R.current,"open"))return;const ee=aa(R.current,"open",y.current),K=n.select("domReferenceElement"),ue=n.context.triggerElements,se=(ue.hasElement(q.target)||ue.hasMatchingElement(oe=>_t(oe,q.target)))&&(!K||!_t(K,q.target)),re=q.currentTarget??null;ee?E.start(ee,()=>{n.select("open")||n.setOpen(!0,xt(Un,q,re))}):(!n.select("open")||se)&&n.setOpen(!0,xt(Un,q,re))}function z(q){if(A()){I();return}C.current();const ee=n.select("domReferenceElement"),K=Xr(ee);$.clear(),k.current=!1;const ue=n.context.triggerElements;if(q.relatedTarget&&ue.hasElement(q.relatedTarget))return;if(j.current&&r.current.floatingContext){n.select("open")||E.clear(),w.current=j.current({...r.current.floatingContext,tree:g,x:q.clientX,y:q.clientY,onClose(){I(),V(),A()||L(q,!0)}});const re=w.current;re(q),K.addEventListener("mousemove",re),C.current=()=>{K.removeEventListener("mousemove",re)};return}(y.current!=="touch"||!_t(n.select("floatingElement"),q.relatedTarget))&&L(q)}function M(q){_(q)}return n.select("open")&&N.addEventListener("mouseleave",M),d&&N.addEventListener("mousemove",O,{once:!0}),N.addEventListener("mouseenter",O),N.addEventListener("mouseleave",z),()=>{N.removeEventListener("mouseleave",M),d&&N.removeEventListener("mousemove",O),N.removeEventListener("mouseenter",O),N.removeEventListener("mouseleave",z)}},[V,I,b,r,R,L,n,s,j,_,m,A,u,d,y,T,$,k,E,f,g,C,w]),c.useMemo(()=>{function N(O){y.current=O.pointerType}return{onPointerDown:N,onPointerEnter:N,onMouseMove(O){const{nativeEvent:z}=O,M=O.currentTarget,q=n.select("domReferenceElement"),ee=n.context.triggerElements,K=n.select("open"),ue=(ee.hasElement(O.target)||ee.hasMatchingElement(re=>_t(re,O.target)))&&(!q||!_t(q,O.target));if(u&&!Xs(y.current)||K&&!ue||ff(T.current)===0||!ue&&k.current&&O.movementX**2+O.movementY**2<2)return;$.clear();function se(){!b.current&&(!K||ue)&&n.setOpen(!0,xt(Un,z,M))}y.current==="touch"?jt.flushSync(()=>{se()}):ue&&K?se():(k.current=!0,$.start(ff(T.current),se))}}},[b,u,n,y,T,$,k])}function vse(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),s=c.useCallback(l=>Wi(l,e,"reference"),t),i=c.useCallback(l=>Wi(l,e,"floating"),n),a=c.useCallback(l=>Wi(l,e,"item"),r),u=c.useCallback(l=>Wi(l,e,"trigger"),o);return c.useMemo(()=>({getReferenceProps:s,getFloatingProps:i,getItemProps:a,getTriggerProps:u}),[s,i,a,u])}function Wi(e,t,n){const r=new Map,o=n==="item",s={};n==="floating"&&(s.tabIndex=-1,s[sre]="");for(const i in e)o&&e&&(i===sS||i===iS)||(s[i]=e[i]);for(let i=0;i<t.length;i+=1){let a;const u=t[i]?.[n];typeof u=="function"?a=e?u(e):null:a=u,a&&rx(s,a,o,r)}return rx(s,e,o,r),s}function rx(e,t,n,r){for(const o in t){const s=t[o];n&&(o===sS||o===iS)||(o.startsWith("on")?(r.has(o)||r.set(o,[]),typeof s=="function"&&(r.get(o)?.push(s),e[o]=(...i)=>r.get(o)?.map(a=>a(...i)).find(a=>a!==void 0))):e[o]=s)}}function ox(e,t){const[n,r]=e;let o=!1;const s=t.length;for(let i=0,a=s-1;i<s;a=i++){const[u,l]=t[i]||[0,0],[d,f]=t[a]||[0,0];l>=r!=f>=r&&n<=(d-u)*(r-l)/(f-l)+u&&(o=!o)}return o}function bse(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function yse(e={}){const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,o=new qo;let s=!1,i=null,a=null,u=typeof performance<"u"?performance.now():0;function l(f,p){const m=performance.now(),g=m-u;if(i===null||a===null||g===0)return i=f,a=p,u=m,null;const y=f-i,x=p-a,b=Math.sqrt(y*y+x*x)/g;return i=f,a=p,u=m,b}const d=({x:f,y:p,placement:m,elements:g,onClose:y,nodeId:x,tree:w})=>function(v){function C(){o.clear(),y()}if(o.clear(),!g.domReference||!g.floating||m==null||f==null||p==null)return;const{clientX:k,clientY:E}=v,$=[k,E],S=Rn(v),j=v.type==="mouseleave",R=_t(g.floating,S),T=_t(g.domReference,S),A=g.domReference.getBoundingClientRect(),L=g.floating.getBoundingClientRect(),V=m.split("-")[0],I=f>L.right-L.width/2,_=p>L.bottom-L.height/2,N=bse($,A),O=L.width>A.width,z=L.height>A.height,M=(O?A:L).left,q=(O?A:L).right,ee=(z?A:L).top,K=(z?A:L).bottom;if(R&&(s=!0,!j))return;if(T&&(s=!1),T&&!j){s=!0;return}if(j&&Ve(v.relatedTarget)&&_t(g.floating,v.relatedTarget)||w&&Ts(w.nodesRef.current,x).some(({context:re})=>re?.open))return;if(V==="top"&&p>=A.bottom-1||V==="bottom"&&p<=A.top+1||V==="left"&&f>=A.right-1||V==="right"&&f<=A.left+1)return C();let ue=[];switch(V){case"top":ue=[[M,A.top+1],[M,L.bottom-1],[q,L.bottom-1],[q,A.top+1]];break;case"bottom":ue=[[M,L.top+1],[M,A.bottom-1],[q,A.bottom-1],[q,L.top+1]];break;case"left":ue=[[L.right-1,K],[L.right-1,ee],[A.left+1,ee],[A.left+1,K]];break;case"right":ue=[[A.right-1,K],[A.right-1,ee],[L.left+1,ee],[L.left+1,K]];break}function se([re,oe]){switch(V){case"top":{const ie=[O?re+t/2:I?re+t*4:re-t*4,oe+t+1],ae=[O?re-t/2:I?re+t*4:re-t*4,oe+t+1],pe=[[L.left,I||O?L.bottom-t:L.top],[L.right,I?O?L.bottom-t:L.top:L.bottom-t]];return[ie,ae,...pe]}case"bottom":{const ie=[O?re+t/2:I?re+t*4:re-t*4,oe-t],ae=[O?re-t/2:I?re+t*4:re-t*4,oe-t],pe=[[L.left,I||O?L.top+t:L.bottom],[L.right,I?O?L.top+t:L.bottom:L.top+t]];return[ie,ae,...pe]}case"left":{const ie=[re+t+1,z?oe+t/2:_?oe+t*4:oe-t*4],ae=[re+t+1,z?oe-t/2:_?oe+t*4:oe-t*4];return[...[[_||z?L.right-t:L.left,L.top],[_?z?L.right-t:L.left:L.right-t,L.bottom]],ie,ae]}case"right":{const ie=[re-t,z?oe+t/2:_?oe+t*4:oe-t*4],ae=[re-t,z?oe-t/2:_?oe+t*4:oe-t*4],pe=[[_||z?L.left+t:L.right,L.top],[_?z?L.left+t:L.right:L.left+t,L.bottom]];return[ie,ae,...pe]}default:return[]}}if(!ox([k,E],ue)){if(s&&!N)return C();if(!j&&r){const re=l(v.clientX,v.clientY);if(re!==null&&re<.1)return C()}ox([k,E],se([f,p]))?!s&&r&&o.start(40,C):C()}};return d.__options={blockPointerEvents:n},d}const wse={...sse,disabled:Ue(e=>e.disabled),instantType:Ue(e=>e.instantType),isInstantPhase:Ue(e=>e.isInstantPhase),trackCursorAxis:Ue(e=>e.trackCursorAxis),disableHoverablePopup:Ue(e=>e.disableHoverablePopup),lastOpenChangeReason:Ue(e=>e.openChangeReason),closeDelay:Ue(e=>e.closeDelay)};class lh extends CS{constructor(t){super({...xse(),...t},{popupRef:c.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:new ch},wse)}setOpen=(t,n)=>{const r=n.reason,o=r===Un,s=t&&r===Ep,i=!t&&(r===Ya||r===sh);if(n.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},this.context.onOpenChange?.(t,n),n.isCanceled)return;const a=()=>{const u={open:t,openChangeReason:r};s?u.instantType="focus":i?u.instantType="dismiss":r===Un&&(u.instantType=void 0);const l=n.trigger?.id??null;(l||t)&&(u.activeTriggerId=l,u.activeTriggerElement=n.trigger??null),this.update(u)};o?jt.flushSync(a):a()};static useStore(t,n){const r=Jn(()=>t??new lh(n)).current,o=cse({popupStore:r,onOpenChange:r.setOpen});return r.state.floatingRootContext=o,r}}function xse(){return{...ose(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:"none",disableHoverablePopup:!1,openChangeReason:null,closeDelay:0}}function Cse(e){const{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:o=!1,trackCursorAxis:s="none",actionsRef:i,onOpenChange:a,onOpenChangeComplete:u,handle:l,triggerId:d,defaultTriggerId:f=null,children:p}=e,m=lh.useStore(l?.store,{open:r??n,activeTriggerId:d!==void 0?d:f});m.useControlledProp("open",r,n),m.useControlledProp("activeTriggerId",d,f),m.useContextCallback("onOpenChange",a),m.useContextCallback("onOpenChangeComplete",u);const g=m.useState("open"),y=m.useState("activeTriggerId"),x=m.useState("payload");m.useSyncedValues({trackCursorAxis:s,disableHoverablePopup:o});const w=!t&&g;He(()=>{g&&t&&m.setOpen(!1,xt($re))},[g,t,m]),m.useSyncedValue("disabled",t),tse(m);const{forceUnmount:b,transitionStatus:v}=nse(w,m),C=m.useState("isInstantPhase"),k=m.useState("instantType"),E=m.useState("lastOpenChangeReason"),$=c.useRef(null);He(()=>{v==="ending"&&E===oh||v!=="ending"&&C?(k!=="delay"&&($.current=k),m.set("instantType","delay")):$.current!==null&&(m.set("instantType",$.current),$.current=null)},[v,C,E,k,m]),He(()=>{w&&y==null&&m.set("payload",void 0)},[m,y,w]);const S=c.useCallback(()=>{m.setOpen(!1,kse(m,Ore))},[m]);c.useImperativeHandle(i,()=>({unmount:b,close:S}),[b,S]);const j=m.useState("floatingRootContext"),R=lse(j,{enabled:!t}),T=Ooe(j,{enabled:!t,referencePress:!0}),A=Nre(j,{enabled:!t&&s!=="none",axis:s==="none"?void 0:s}),{getReferenceProps:L,getFloatingProps:V,getTriggerProps:I}=vse([R,T,A]),_=c.useMemo(()=>L(),[L]),N=c.useMemo(()=>I(),[I]),O=c.useMemo(()=>V(),[V]);return m.useSyncedValues({floatingRootContext:j,activeTriggerProps:_,inactiveTriggerProps:N,popupProps:O}),h.jsx(rS.Provider,{value:m,children:typeof p=="function"?p({payload:x}):p})}function kse(e,t){const n=xt(t);return n.preventUnmountOnClose=()=>{e.set("preventUnmountingOnClose",!0)},n}let Ja=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const Ese={[Ja.startingStyle]:""},Sse={[Ja.endingStyle]:""},$se={transitionStatus(e){return e==="starting"?Ese:e==="ending"?Sse:null}};let uh=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=Ja.startingStyle]="startingStyle",e[e.endingStyle=Ja.endingStyle]="endingStyle",e.anchorHidden="data-anchor-hidden",e})({}),Ose=(function(e){return e.popupOpen="data-popup-open",e.pressed="data-pressed",e})({});const Lse={[Ose.popupOpen]:""},jse={[uh.open]:""},Rse={[uh.closed]:""},Pse={[uh.anchorHidden]:""},Mse={open(e){return e?Lse:null}},$S={open(e){return e?jse:Rse},anchorHidden(e){return e?Pse:null}};function Tse(e){return Lc(e,"base-ui")}const OS=c.createContext(void 0);function Ise(){return c.useContext(OS)}const Ase=600,_se=c.forwardRef(function(t,n){const{className:r,render:o,handle:s,payload:i,disabled:a,delay:u,closeDelay:l,id:d,...f}=t,p=Oc(!0),m=s?.store??p;if(!m)throw new Error(Ko(82));const g=Tse(d),y=m.useState("isTriggerActive",g),x=m.useState("floatingRootContext"),w=m.useState("isOpenedByTrigger",g),b=c.useRef(null),v=u??Ase,C=l??0,{registerTrigger:k,isMountedByThisTrigger:E}=ese(g,b,m,{payload:i,closeDelay:C}),$=Ise(),{delayRef:S,isInstantPhase:j,hasProvider:R}=jre(x,{open:w});m.useSyncedValue("isInstantPhase",j);const T=m.useState("disabled"),A=a??T,L=m.useState("trackCursorAxis"),V=m.useState("disableHoverablePopup"),I=gse(x,{enabled:!A,mouseOnly:!0,move:!1,handleClose:!V&&L!=="both"?yse():null,restMs(){const z=$?.delay,M=typeof S.current=="object"?S.current.open:void 0;let q=v;return R&&(M!==0?q=u??z??v:q=0),q},delay(){const z=typeof S.current=="object"?S.current.close:void 0;let M=C;return l==null&&R&&(M=z),{close:M}},triggerElementRef:b,isActiveTrigger:y}),_=c.useMemo(()=>({open:w}),[w]),N=m.useState("triggerProps",E);return li("button",t,{state:_,ref:[n,k,b],props:[I,N,{id:g},f],stateAttributesMapping:Mse})}),LS=c.createContext(void 0);function Nse(){const e=c.useContext(LS);if(e===void 0)throw new Error(Ko(70));return e}const Dse=c.forwardRef(function(t,n){const{children:r,container:o,className:s,render:i,...a}=t,{portalNode:u,portalSubtree:l}=Ire({container:o,ref:n,componentProps:t,elementProps:a});return!l&&!u?null:h.jsxs(c.Fragment,{children:[l,u&&jt.createPortal(r,u)]})}),Vse=c.forwardRef(function(t,n){const{keepMounted:r=!1,...o}=t;return Oc().useState("mounted")||r?h.jsx(LS.Provider,{value:r,children:h.jsx(Dse,{ref:n,...o})}):null}),jS=c.createContext(void 0);function zse(){const e=c.useContext(jS);if(e===void 0)throw new Error(Ko(71));return e}const Fse=c.createContext(void 0);function RS(){return c.useContext(Fse)?.direction??"ltr"}const Bse=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:u}=t,{element:l,padding:d=0,offsetParent:f="real"}=Xn(e,t)||{};if(l==null)return{};const p=cS(d),m={x:n,y:r},g=nh(o),y=th(g),x=await i.getDimensions(l),w=g==="y",b=w?"top":"left",v=w?"bottom":"right",C=w?"clientHeight":"clientWidth",k=s.reference[y]+s.reference[g]-m[g]-s.floating[y],E=m[g]-s.reference[g],$=f==="real"?await i.getOffsetParent?.(l):a.floating;let S=a.floating[C]||s.floating[y];(!S||!await i.isElement?.($))&&(S=a.floating[C]||s.floating[y]);const j=k/2-E/2,R=S/2-x[y]/2-1,T=Math.min(p[b],R),A=Math.min(p[v],R),L=T,V=S-x[y]-A,I=S/2-x[y]/2+j,_=Cp(L,I,V),N=!u.arrow&&Pr(o)!=null&&I!==_&&s.reference[y]/2-(I<L?T:A)-x[y]/2<0,O=N?I<L?I-L:I-V:0;return{[g]:m[g]+O,data:{[g]:_,centerOffset:I-_-O,...N&&{alignmentOffset:O}},reset:N}}}),Hse=(e,t)=>({...Bse(e),options:[e,t]}),Wse={name:"hide",async fn(e){const{width:t,height:n,x:r,y:o}=e.rects.reference,s=t===0&&n===0&&r===0&&o===0;return{data:{referenceHidden:(await Eoe().fn(e)).data?.referenceHidden||s}}}},la={sideX:"left",sideY:"top"},Zse={name:"adaptiveOrigin",async fn(e){const{x:t,y:n,rects:{floating:r},elements:{floating:o},platform:s,strategy:i,placement:a}=e,u=Lt(o),l=u.getComputedStyle(o);if(!(l.transitionDuration!=="0s"&&l.transitionDuration!==""))return{x:t,y:n,data:la};const f=await s.getOffsetParent?.(o);let p={width:0,height:0};if(i==="fixed"&&u?.visualViewport)p={width:u.visualViewport.width,height:u.visualViewport.height};else if(f===u){const b=dS(o);p={width:b.documentElement.clientWidth,height:b.documentElement.clientHeight}}else await s.isElement?.(f)&&(p=await s.getDimensions(f));const m=Ut(a);let g=t,y=n;m==="left"&&(g=p.width-(t+r.width)),m==="top"&&(y=p.height-(n+r.height));const x=m==="left"?"right":la.sideX,w=m==="top"?"bottom":la.sideY;return{x:g,y,data:{sideX:x,sideY:w}}}};function PS(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 sx(e,t,n){const{rects:r,placement:o}=e;return{side:PS(t,Ut(o),n),align:Pr(o)||"center",anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Use(e){const{anchor:t,positionMethod:n="absolute",side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,collisionBoundary:a,collisionPadding:u=5,sticky:l=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,keepMounted:p=!1,floatingRootContext:m,mounted:g,collisionAvoidance:y,shiftCrossAxis:x=!1,nodeId:w,adaptiveOrigin:b,lazyFlip:v=!1,externalTree:C}=e,[k,E]=c.useState(null);!g&&k!==null&&E(null);const $=y.side||"flip",S=y.align||"flip",j=y.fallbackAxisSide||"end",R=typeof t=="function"?t:void 0,T=Ae(R),A=R?T:t,L=Gr(t),I=RS()==="rtl",_=k||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":I?"left":"right","inline-start":I?"right":"left"}[r],N=s==="center"?_:`${_}-${s}`;let O=u;const z=1,M=r==="bottom"?z:0,q=r==="top"?z:0,ee=r==="right"?z:0,K=r==="left"?z:0;typeof O=="number"?O={top:O+M,right:O+K,bottom:O+q,left:O+ee}:O&&(O={top:(O.top||0)+M,right:(O.right||0)+K,bottom:(O.bottom||0)+q,left:(O.left||0)+ee});const ue={boundary:a==="clipping-ancestors"?"clippingAncestors":a,padding:O},se=c.useRef(null),re=Gr(o),oe=Gr(i),pe=[yoe(we=>{const Re=sx(we,r,I),Ge=typeof re.current=="function"?re.current(Re):re.current,Be=typeof oe.current=="function"?oe.current(Re):oe.current;return{mainAxis:Ge,crossAxis:Be,alignmentAxis:Be}},[typeof o!="function"?o:0,typeof i!="function"?i:0,I,r])],P=S==="none"&&$!=="shift",Y=!P&&(l||x||$==="shift"),B=$==="none"?null:Coe({...ue,padding:{top:O.top+z,right:O.right+z,bottom:O.bottom+z,left:O.left+z},mainAxis:!x&&$==="flip",crossAxis:S==="flip"?"alignment":!1,fallbackAxisSideDirection:j}),ve=P?null:woe(we=>{const Re=dS(we.elements.floating).documentElement;return{...ue,rootBoundary:x?{x:0,y:0,width:Re.clientWidth,height:Re.clientHeight}:void 0,mainAxis:S!=="none",crossAxis:Y,limiter:l||x?void 0:xoe(Ge=>{if(!se.current)return{};const{width:Be,height:ht}=se.current.getBoundingClientRect(),We=un(Ut(Ge.placement)),Ft=We==="y"?Be:ht,Bn=We==="y"?O.left+O.right:O.top+O.bottom;return{offset:Ft/2+Bn/2}})}},[ue,l,x,O,S]);$==="shift"||S==="shift"||s==="center"?pe.push(ve,B):pe.push(B,ve),pe.push(koe({...ue,apply({elements:{floating:we},rects:{reference:Re},availableWidth:Ge,availableHeight:Be}){Object.entries({"--available-width":`${Ge}px`,"--available-height":`${Be}px`,"--anchor-width":`${Re.width}px`,"--anchor-height":`${Re.height}px`}).forEach(([ht,We])=>{we.style.setProperty(ht,We)})}}),Hse(()=>({element:se.current||document.createElement("div"),padding:d,offsetParent:"floating"}),[d]),{name:"transformOrigin",fn(we){const{elements:Re,middlewareData:Ge,placement:Be,rects:ht,y:We}=we,Ft=Ut(Be),Bn=un(Ft),Mr=se.current,Xo=Ge.arrow?.x||0,Jo=Ge.arrow?.y||0,Qo=Mr?.clientWidth||0,Qn=Mr?.clientHeight||0,Bt=Xo+Qo/2,Tr=Jo+Qn/2,es=Math.abs(Ge.shift?.y||0),ts=ht.reference.height/2,Kt=typeof o=="function"?o(sx(we,r,I)):o,ro=es>Kt,Ir={top:`${Bt}px calc(100% + ${Kt}px)`,bottom:`${Bt}px ${-Kt}px`,left:`calc(100% + ${Kt}px) ${Tr}px`,right:`${-Kt}px ${Tr}px`}[Ft],oo=`${Bt}px ${ht.reference.y+ts-We}px`;return Re.floating.style.setProperty("--transform-origin",Y&&Bn==="y"&&ro?oo:Ir),{}}},Wse,b),He(()=>{!g&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null})},[g,m]);const Q=c.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<"u",layoutShift:!f&&typeof IntersectionObserver<"u"}),[f]),{refs:X,elements:te,x:ke,y:Ce,middlewareData:U,update:W,placement:le,context:J,isPositioned:de,floatingStyles:Z}=ase({rootContext:m,placement:N,middleware:pe,strategy:n,whileElementsMounted:p?void 0:(...we)=>Xw(...we,Q),nodeId:w,externalTree:C}),{sideX:ye,sideY:Pe}=U.adaptiveOrigin||la,Ee=de?n:"fixed",Fe=c.useMemo(()=>b?{position:Ee,[ye]:ke,[Pe]:Ce}:{position:Ee,...Z},[b,Ee,ye,ke,Pe,Ce,Z]),nt=c.useRef(null);He(()=>{if(!g)return;const we=L.current,Re=typeof we=="function"?we():we,Be=(ix(Re)?Re.current:Re)||null||null;Be!==nt.current&&(X.setPositionReference(Be),nt.current=Be)},[g,X,A,L]),c.useEffect(()=>{if(!g)return;const we=L.current;typeof we!="function"&&ix(we)&&we.current!==nt.current&&(X.setPositionReference(we.current),nt.current=we.current)},[g,X,A,L]),c.useEffect(()=>{if(p&&g&&te.domReference&&te.floating)return Xw(te.domReference,te.floating,W,Q)},[p,g,te,W,Q]);const rt=Ut(le),ft=PS(r,rt,I),kt=Pr(le)||"center",Oe=!!U.hide?.referenceHidden;He(()=>{v&&g&&de&&E(rt)},[v,g,de,rt]);const Ne=c.useMemo(()=>({position:"absolute",top:U.arrow?.y,left:U.arrow?.x}),[U.arrow]),ot=U.arrow?.centerOffset!==0;return c.useMemo(()=>({positionerStyles:Fe,arrowStyles:Ne,arrowRef:se,arrowUncentered:ot,side:ft,align:kt,physicalSide:rt,anchorHidden:Oe,refs:X,context:J,isPositioned:de,update:W}),[Fe,Ne,se,ot,ft,kt,rt,Oe,X,J,de,W])}function ix(e){return e!=null&&"current"in e}function MS(e){return e==="starting"?Wte:Qt}const Gse=c.forwardRef(function(t,n){const{render:r,className:o,anchor:s,positionMethod:i="absolute",side:a="top",align:u="center",sideOffset:l=0,alignOffset:d=0,collisionBoundary:f="clipping-ancestors",collisionPadding:p=5,arrowPadding:m=5,sticky:g=!1,disableAnchorTracking:y=!1,collisionAvoidance:x=Zte,...w}=t,b=Oc(),v=Nse(),C=b.useState("open"),k=b.useState("mounted"),E=b.useState("trackCursorAxis"),$=b.useState("disableHoverablePopup"),S=b.useState("floatingRootContext"),j=b.useState("instantType"),R=b.useState("transitionStatus"),T=Use({anchor:s,positionMethod:i,floatingRootContext:S,mounted:k,side:a,sideOffset:l,align:u,alignOffset:d,collisionBoundary:f,collisionPadding:p,sticky:g,arrowPadding:m,disableAnchorTracking:y,keepMounted:v,collisionAvoidance:x,adaptiveOrigin:Zse}),A=c.useMemo(()=>{const _={};return(!C||E==="both"||$)&&(_.pointerEvents="none"),{role:"presentation",hidden:!k,style:{...T.positionerStyles,..._}}},[C,E,$,k,T.positionerStyles]),L=c.useMemo(()=>({open:C,side:T.side,align:T.align,anchorHidden:T.anchorHidden,instant:E!=="none"?"tracking-cursor":j}),[C,T.side,T.align,T.anchorHidden,E,j]),V=c.useMemo(()=>({...L,arrowRef:T.arrowRef,arrowStyles:T.arrowStyles,arrowUncentered:T.arrowUncentered}),[L,T.arrowRef,T.arrowStyles,T.arrowUncentered]),I=li("div",t,{state:L,props:[A,MS(R),w],ref:[n,b.useStateSetter("positionerElement")],stateAttributesMapping:$S});return h.jsx(jS.Provider,{value:V,children:I})});function ax(e){const t=on(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=sn(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r;return(Vo(n)!==s||Vo(r)!==i)&&(n=s,r=i),{width:n,height:r}}const Kse=typeof ResizeObserver<"u",Yse=()=>!0;function qse(e){const{popupElement:t,positionerElement:n,content:r,mounted:o,enabled:s=Yse,onMeasureLayout:i,onMeasureLayoutComplete:a,side:u,direction:l}=e,d=c.useRef(!0),f=kS(t,!0,!1),p=uS(),m=c.useRef(null),g=Ae(i),y=Ae(a),x=c.useMemo(()=>{let w=u==="top",b=u==="left";return l==="rtl"?(w=w||u==="inline-end",b=b||u==="inline-end"):(w=w||u==="inline-start",b=b||u==="inline-start"),w?{position:"absolute",[u==="top"?"bottom":"top"]:"0",[b?"right":"left"]:"0"}:Qt},[u,l]);He(()=>{if(!o||!s()||!Kse){d.current=!0,m.current=null;return}if(!t||!n)return;Object.entries(x).forEach(([j,R])=>{t.style.setProperty(j,R)});const w=new ResizeObserver(j=>{const R=j[0];R&&(m.current===null?m.current={width:Math.ceil(R.borderBoxSize[0].inlineSize),height:Math.ceil(R.borderBoxSize[0].blockSize)}:(m.current.width=Math.ceil(R.borderBoxSize[0].inlineSize),m.current.height=Math.ceil(R.borderBoxSize[0].blockSize)))});w.observe(t),t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto");const b=fs(t,"position","static"),v=fs(t,"transform","none"),C=fs(t,"scale","1"),k=fs(n,"--available-width","max-content"),E=fs(n,"--available-height","max-content");if(g?.(),d.current||m.current===null){n.style.setProperty("--positioner-width","max-content"),n.style.setProperty("--positioner-height","max-content");const j=ax(t);return n.style.setProperty("--positioner-width",`${j.width}px`),n.style.setProperty("--positioner-height",`${j.height}px`),b(),v(),C(),k(),E(),y?.(null,j),d.current=!1,()=>{w.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 $=ax(t);t.style.setProperty("--popup-width",`${m.current.width}px`),t.style.setProperty("--popup-height",`${m.current.height}px`),b(),v(),k(),E(),y?.(m.current,$),n.style.setProperty("--positioner-width",`${$.width}px`),n.style.setProperty("--positioner-height",`${$.height}px`);const S=new AbortController;return p.request(()=>{t.style.setProperty("--popup-width",`${$.width}px`),t.style.setProperty("--popup-height",`${$.height}px`),f(()=>{t.style.setProperty("--popup-width","auto"),t.style.setProperty("--popup-height","auto")},S.signal)}),()=>{w.disconnect(),S.abort(),p.cancel()}},[r,t,n,f,p,s,o,g,y,x])}function fs(e,t,n){const r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}const Xse={...$S,...$se},Jse=c.forwardRef(function(t,n){const{className:r,render:o,...s}=t,i=Oc(),{side:a,align:u}=zse(),l=i.useState("open"),d=i.useState("mounted"),f=i.useState("instantType"),p=i.useState("transitionStatus"),m=i.useState("popupProps"),g=i.useState("payload"),y=i.useState("popupElement"),x=i.useState("positionerElement"),w=i.useState("floatingRootContext"),b=RS();ES({open:l,ref:i.context.popupRef,onComplete(){l&&i.context.onOpenChangeComplete?.(!0)}});function v(){w.context.events.emit("measure-layout")}function C(R,T){w.context.events.emit("measure-layout-complete",{previousDimensions:R,nextDimensions:T})}qse({popupElement:y,positionerElement:x,mounted:d,content:g,enabled:()=>i.context.triggerElements.size>1,onMeasureLayout:v,onMeasureLayoutComplete:C,side:a,direction:b});const E=i.useState("disabled"),$=i.useState("closeDelay");pse(w,{enabled:!E,closeDelay:$});const S=c.useMemo(()=>({open:l,side:a,align:u,instant:f,transitionStatus:p}),[l,a,u,f,p]);return li("div",t,{state:S,ref:[n,i.context.popupRef,i.useStateSetter("popupElement")],props:[m,MS(p),s],stateAttributesMapping:Xse})}),Qse=function(t){const{delay:n,closeDelay:r,timeout:o=400}=t,s=c.useMemo(()=>({delay:n,closeDelay:r}),[n,r]),i=c.useMemo(()=>({open:n,close:r}),[n,r]);return h.jsx(OS.Provider,{value:s,children:h.jsx(Lre,{delay:i,timeoutMs:o,children:t.children})})};function eie({delay:e=500,...t}){return h.jsx(Qse,{delay:e,...t})}function tie({...e}){return h.jsx(Cse,{"data-slot":"tooltip",...e})}function nie({...e}){return h.jsx(_se,{"data-slot":"tooltip-trigger",...e})}function rie({className:e,side:t="top",sideOffset:n=8,align:r="center",alignOffset:o=0,children:s,hidden:i,...a}){return i?null:h.jsx(Vse,{children:h.jsx(Gse,{align:r,alignOffset:o,side:t,sideOffset:n,className:"isolate z-[80]",children:h.jsx(Jse,{"data-slot":"tooltip-content",className:ut("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),...a,children:s})})})}const oie="260px",sie="48px",TS=c.createContext(null);function dh(){const e=c.useContext(TS);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function iie({defaultOpen:e=!1,open:t,onOpenChange:n,className:r,style:o,children:s,...i}){const[a,u]=c.useState(e),l=t??a,d=c.useCallback(g=>{const y=typeof g=="function"?g(l):g;n?n(y):u(y)},[n,l]),f=c.useCallback(()=>{d(g=>!g)},[d]),p=l?"expanded":"collapsed",m=c.useMemo(()=>({state:p,open:l,setOpen:d,toggleSidebar:f}),[p,l,d,f]);return h.jsx(TS.Provider,{value:m,children:h.jsx(eie,{delay:200,children:h.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":oie,"--sidebar-width-icon":sie,...o},className:ut("group/sidebar-wrapper contents",r),...i,children:s})})})}function aie({side:e="left",variant:t="sidebar",collapsible:n="icon",className:r,children:o,...s}){const{state:i}=dh();return n==="none"?h.jsx("div",{"data-slot":"sidebar","data-sidebar":"primary",className:ut("pointer-events-auto flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),...s,children:o}):h.jsx("div",{className:"group peer text-sidebar-foreground","data-state":i,"data-collapsible":i==="collapsed"?n:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:h.jsx("div",{"data-slot":"sidebar-container","data-sidebar":"primary","data-side":e,className:ut("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),...s,children:h.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 cie({className:e,...t}){return h.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:ut("flex flex-col gap-2 p-2",e),...t})}function lie({className:e,...t}){return h.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:ut("flex flex-col gap-2 p-2",e),...t})}function uie({className:e,...t}){return h.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:ut("flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function pf({className:e,...t}){return h.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:ut("relative flex w-full min-w-0 flex-col p-2",e),...t})}function mf({className:e,render:t,...n}){return Ym({defaultTagName:"div",props:Cc({className:ut("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 hf({className:e,...t}){return h.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:ut("w-full text-sm",e),...t})}function ua({className:e,...t}){return h.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:ut("flex w-full min-w-0 flex-col gap-0",e),...t})}function ws({className:e,...t}){return h.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:ut("group/menu-item relative",e),...t})}const die=Yte("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 xs({render:e,isActive:t=!1,variant:n="default",size:r="default",tooltip:o,className:s,...i}){const{state:a}=dh(),[u,l]=c.useState(!1);c.useEffect(()=>{l(!1)},[a]);const d=Ym({defaultTagName:"button",props:Cc({className:ut(die({variant:n,size:r}),s)},i),render:o?h.jsx(nie,{render:e}):e,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:r,active:t}});return o?(typeof o=="string"&&(o={children:o}),h.jsxs(tie,{open:a==="collapsed"&&u,onOpenChange:f=>l(a==="collapsed"&&f),children:[d,h.jsx(rie,{side:"right",align:"center",...o})]})):d}function fie({className:e,...t}){return h.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:ut("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 pie({className:e,...t}){return h.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:ut("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 mie({className:e,...t}){return h.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:ut("group/menu-sub-item relative",e),...t})}function hie({render:e,size:t="md",isActive:n=!1,className:r,...o}){return Ym({defaultTagName:"a",props:Cc({className:ut("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 IS(e){const{pathname:t}=px(),n=Oo("nav.sidebar",!1),r=b6(t);return c.useMemo(()=>{if(r){const i=O6(e);return{kind:"scope",items:L6.map(a=>({id:a.key,label:a.label,route:a.route,active:a.key===i})),activeId:i,sidebarChromeEnabled:n,scopePresentation:!0}}const o=dr(e);return{kind:"scout",items:ma.map(i=>({id:i.id,label:i.label,route:Cx(i.id),active:i.id===o})),activeId:o,sidebarChromeEnabled:n,scopePresentation:!1}},[e,r,n])}const $p="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 cx({areas:e,activeAreaId:t,onNavigateArea:n,route:r,navigate:o,opsControlEnabled:s,presentation:i}){const{state:a}=dh(),u=a==="expanded",l=A6(r,{opsControlEnabled:s});return h.jsx(ua,{children:e.map(d=>{const f=i==="slack"&&d.id==="home",p=i==="slack"&&d.id==="chat",m=f?"chat":p?"home":d.id,g=p?b3:d.icon,y=p?"Activity":d.label,x=m===t,w=u&&x&&l&&l.areaId===m?l.items:null;return h.jsxs(ws,{children:[h.jsxs(xs,{type:"button",isActive:x,tooltip:y,"aria-label":y,"aria-current":x?"page":void 0,"data-area":d.id,className:ut("font-mono text-sm font-medium tracking-[0.02em]",$p),onClick:()=>n(d.id),children:[h.jsx(g,{size:16,strokeWidth:1.6,"aria-hidden":!0}),h.jsx("span",{children:y})]}),w&&w.length>0?h.jsx(pie,{children:w.map(b=>{const v=b.active(r);return h.jsx(mie,{children:h.jsx(hie,{render:h.jsx("button",{type:"button"}),isActive:v,"aria-current":v?"page":void 0,"data-subnav":b.id,className:"font-mono text-xs",onClick:()=>o(b.route),children:h.jsx("span",{children:b.label})})},b.id)})}):null]},d.id)})})}function gie({brandLabel:e="Scout",presentation:t="scout"}){const{route:n,navigate:r,openSettings:o,openContextCapture:s}=Sn(),{titleBarInset:i,dragRegionProps:a,onInteractiveMouseDown:u}=Qs(),l=Oo("ops.control",!0),d=IS(n),f=dr(n),p=ma.filter(C=>C.section==="navigate"),m=ma.filter(C=>C.section==="system"&&C.id!=="settings"),g=kx("settings"),y=g.icon,x=f==="settings",w=()=>r(t==="slack"?{view:"messages"}:{view:"inbox"}),b=()=>s(),v=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}dr(n)!==C&&r(Cx(C,{opsControlEnabled:l}))};return h.jsxs(aie,{side:"left",variant:"sidebar",collapsible:"icon","aria-label":d.kind==="scope"?"Scope navigation":"Primary navigation","data-sidebar-kind":d.kind,"data-presentation":t,children:[h.jsx(cie,{className:"border-b border-sidebar-border",style:{paddingTop:i||0,...a?.style??{}},...Object.fromEntries(Object.entries(a??{}).filter(([C])=>C!=="style")),"data-sidebar-drag-region":"",children:h.jsx("div",{className:"flex items-center gap-0.5","data-sidebar":"brand-row",children:h.jsx(ua,{className:"min-w-0 flex-1",children:h.jsx(ws,{children:h.jsxs(xs,{type:"button",size:"lg",tooltip:"Home",onClick:w,onMouseDown:u,"aria-label":"Scout Home",title:"Home",className:ut("data-[slot=sidebar-menu-button]:!p-2",t==="slack"?"font-sans":"font-mono"),children:[h.jsx(R4,{className:"size-[22px] shrink-0"}),h.jsx("span",{className:ut("truncate text-sm font-bold",t==="slack"?"tracking-[-0.01em]":"tracking-[0.08em] uppercase"),children:e})]})})})})}),h.jsx(uie,{className:"gap-0",children:d.kind==="scope"?h.jsxs(pf,{children:[h.jsx(mf,{"data-sidebar-head":"",className:"font-mono uppercase",children:"Surfaces"}),h.jsx(hf,{children:h.jsx(ua,{children:d.items.map(C=>h.jsx(ws,{children:h.jsxs(xs,{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:ut("font-mono text-sm font-medium",$p),onClick:()=>r(C.route),children:[h.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)}),h.jsx("span",{children:C.label})]})},C.id))})})]}):h.jsxs(h.Fragment,{children:[h.jsxs(pf,{children:[h.jsx(mf,{"data-sidebar-head":"",className:"font-mono uppercase",children:"Navigate"}),h.jsx(hf,{children:h.jsx(cx,{areas:p,activeAreaId:f,onNavigateArea:v,route:n,navigate:r,opsControlEnabled:l,presentation:t})})]}),h.jsxs(pf,{children:[h.jsx(mf,{className:"font-mono text-2xs tracking-[0.12em] uppercase",children:"System"}),h.jsx(hf,{children:h.jsx(cx,{areas:m,activeAreaId:f,onNavigateArea:v,route:n,navigate:r,opsControlEnabled:l,presentation:t})})]})]})}),h.jsx(lie,{className:"border-t border-sidebar-border",children:h.jsxs(ua,{className:"gap-1",children:[h.jsxs(ws,{children:[h.jsxs(xs,{type:"button",tooltip:`${Cs} (${Ui})`,"aria-label":Cs,"aria-keyshortcuts":Ui,"data-action":"new-task",className:"font-mono text-sm font-semibold tracking-[0.02em] [&_svg]:text-[var(--hud-accent)]",onClick:b,children:[h.jsx(e3,{size:16,strokeWidth:1.8,"aria-hidden":!0}),h.jsx("span",{children:Cs})]}),h.jsx(fie,{className:"font-mono text-2xs text-sidebar-foreground/55",children:Ui})]}),h.jsx(ws,{children:h.jsxs(xs,{type:"button",isActive:x,tooltip:g.label,"aria-label":g.label,"aria-current":x?"page":void 0,"data-area":"settings",className:ut("font-mono text-sm font-medium tracking-[0.02em]",$p),onClick:()=>o(),children:[h.jsx(y,{size:16,strokeWidth:1.6,"aria-hidden":!0}),h.jsx("span",{children:g.label})]})})]})})]})}function vie(e,t){return e==="left"?t?"›":"‹":t?"‹":"›"}function bie(e,t){const n=t?.trim()||"panel";return e?`Expand ${n}`:`Collapse ${n}`}function da({side:e,collapsed:t,label:n,onToggle:r,className:o="",style:s,onMouseDown:i}){const a=bie(t,n),l=vie(e,t)==="›"?"right":"left";return h.jsx("button",{type:"button","data-scout-rail-toggle":"","data-side":e,"data-direction":l,"data-collapsed":t?"true":"false","aria-expanded":!t,"aria-label":a,title:a,className:`scout-rail-toggle${o?` ${o}`:""}`,style:s,onClick:r,onMouseDown:i,children:h.jsx("svg",{"aria-hidden":"true",className:"scout-rail-toggle-glyph",viewBox:"0 0 16 16",fill:"none",children:h.jsx("path",{d:l==="right"?"M6 4.5 9.5 8 6 11.5":"M10 4.5 6.5 8l3.5 3.5",stroke:"currentColor",strokeWidth:"1.65",strokeLinecap:"round",strokeLinejoin:"round"})})})}const $t=48,yie=56,Op=44,wie=28,lx=22,AS=Math.round((Op-wie)/2),gf=8;function fa(e,t,n=$t){return t?Math.round((n-lx)/2):Number.isFinite(e)?Math.max(gf,Math.round(e)-gf-lx):gf}const xie=$t,Js=260,Lp=200,jp=360,Cie=880,Rp=260,Pp=240,Mp=400;function vf(e){return Number.isFinite(e)?Math.max(Pp,Math.min(Mp,Math.round(e))):Rp}const _S=40,kie=24;function NS(e,{min:t,max:n,startedCollapsed:r,collapsedWidth:o=$t}){if(!Number.isFinite(e))return r?o:t;const s=Math.max(o,Math.min(n,Math.round(e)));if(r)return s;const i=t-_S;return s<i?$t:s}function DS({startedCollapsed:e,rawWidth:t},{min:n,max:r,collapsedWidth:o=$t}){const s=Number.isFinite(t)?Math.round(t):n;if(e)return s>=o+kie?{kind:"expand"}:{kind:"none"};const i=n-_S;return s<i?{kind:"collapse"}:{kind:"resize",width:Math.max(n,Math.min(r,s))}}function VS(e){return e.autoCollapsed?!e.forceExpanded:e.manualCollapsed}function Tp(e){return Number.isFinite(e)?Math.max(Lp,Math.min(jp,Math.round(e))):Js}function Eie(e,t=Js,n=$t){return e?n:Tp(t)}function zS(e,t){return e.autoCollapsed?{manualCollapsed:e.manualCollapsed,forceExpanded:!t}:{manualCollapsed:t,forceExpanded:e.forceExpanded}}function Sie(e){const t=VS(e);return zS(e,!t)}function FS({side:e,title:t,onToggle:n,edgeOffset:r=0,top:o=0,width:s=$t,glyph:i,body:a,style:u,className:l=""}){const d=!!a;return h.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:s,zIndex:40,...e==="left"?{left:r}:{right:r},...u},"aria-label":`${t} (collapsed)`,onDoubleClick:f=>{f.target.closest("button, a, [role='button']")||n()},children:h.jsx("div",{className:"scout-collapsed-rail-body",children:a||(i?h.jsx("div",{className:"scout-collapsed-rail-glyph","aria-hidden":"true",children:i}):null)})})}const Mc=10;function $ie({route:e,onExpand:t}){switch(e.view){case"messages":case"conversation":return h.jsx(c3,{onExpand:t});case"inbox":case"activity":case"briefings":return h.jsx(Oie,{onExpand:t});case"agents-v2":case"agent-info":return h.jsx(Lie,{onExpand:t});case"terminal":return h.jsx(jie,{onExpand:t});case"ops":return h.jsx(Rie,{onExpand:t});case"mesh":return h.jsx(Pie,{onExpand:t});default:return h.jsx(vr,{label:"Context",emptyMark:"·",onLabelClick:t,children:null})}}function Oie({onExpand:e}){const{agents:t,navigate:n,route:r}=Sn(),[o,s]=c.useState(null),i=mx(r),a=c.useMemo(()=>wx(t,i),[t,i]),u=c.useMemo(()=>P6(t,i),[t,i]),l=c.useMemo(()=>M6(o,u),[o,u]),d=c.useCallback(async()=>{s(await yf("/api/fleet").catch(()=>null))},[]);c.useEffect(()=>{d()},[d]),o3(g=>{(g.kind==="message.posted"||g.kind==="flight.updated"||g.kind==="presence.updated")&&d()});const f=c.useMemo(()=>{const g=new Set;for(const y of l?.needsAttention??[])y.agentId&&g.add(y.agentId);return g},[l]),p=c.useMemo(()=>a.filter(g=>f.has(g.id)).slice(0,4),[a,f]),m=c.useMemo(()=>{const g=new Set(p.map(y=>y.id));return[...a].filter(y=>!g.has(y.id)).sort((y,x)=>(x.updatedAt??x.createdAt??0)-(y.updatedAt??y.createdAt??0)).slice(0,Mc-p.length)},[a,p]);return h.jsxs(vr,{label:"Home",emptyMark:"H",labelTone:p.length>0?"attention":"default",labelCount:p.length>0?p.length:a.length||void 0,onLabelClick:e,children:[p.map(g=>h.jsx(ux,{agent:g,attention:!0,onClick:()=>Oh(n,g,{returnTo:r})},`att-${g.id}`)),p.length>0&&m.length>0?h.jsx(l3,{}):null,m.map(g=>h.jsx(ux,{agent:g,onClick:()=>Oh(n,g,{returnTo:r})},g.id))]})}function Lie({onExpand:e}){const{agents:t,navigate:n,route:r}=Sn(),o=mx(r),s=c.useMemo(()=>wx(t,o),[t,o]),i=c.useMemo(()=>{const u=new Map;for(const l of s){const d=(l.project??Mie(l.workspaceRoot)??l.name??"project").trim(),f=d.toLowerCase(),p=u.get(f)??{name:d,needs:0,working:0,latest:0},m=n3(l.state);(m==="needs_attention"||m==="blocked")&&(p.needs+=1),(m==="in_turn"||m==="in_flight"||Ex(l.state))&&(p.working+=1),p.latest=Math.max(p.latest,l.updatedAt??l.createdAt??0),u.set(f,p)}return[...u.values()].sort((l,d)=>d.needs>0!=l.needs>0?d.needs>0?1:-1:d.latest-l.latest).slice(0,Mc)},[s]),a=i.reduce((u,l)=>u+l.needs,0);return h.jsx(vr,{label:"Crew",emptyMark:"C",labelTone:a>0?"attention":"default",labelCount:a>0?a:i.length||void 0,onLabelClick:e,children:i.map(u=>h.jsx(Pn,{title:`${u.name}${u.needs?` · ${u.needs} need you`:""}`,tone:u.needs>0?"attention":"default",ava:_p(u.name),avaColor:Ap(u.name),dot:u.needs>0?"attention":u.working>0?"live":null,onClick:()=>n({view:"agents-v2",...o?{machineId:o}:{}})},u.name))})}function jie({onExpand:e}){const{route:t,navigate:n}=Sn(),[r,o]=c.useState([]);c.useEffect(()=>{s3({includeDiscovered:!0}).then(o).catch(()=>{})},[]);const s=c.useMemo(()=>i3(r).slice(0,Mc),[r]),i=t.view==="terminal"?t.terminalSurfaceKey??null:null;return h.jsx(vr,{label:"Term",emptyMark:"T",labelTone:s.length>0?"live":"default",labelCount:s.length||void 0,onLabelClick:e,children:s.map(a=>h.jsx(Pn,{title:a.title,active:a3(a.key,i),tone:"neutral",ava:_p(a.title),avaColor:Ap(a.title),onClick:()=>n({view:"terminal",terminalSurfaceKey:a.key,terminalSessionId:a.session.id})},a.key))})}function Rie({onExpand:e}){const{route:t,navigate:n}=Sn(),r=t.view==="ops"?t.mode:void 0,o=[{id:"mission",title:"Mission",glyph:h.jsx(E3,{size:13,strokeWidth:1.7,"aria-hidden":!0})},{id:"agents",title:"Agents",glyph:h.jsx(Sx,{size:13,strokeWidth:1.7,"aria-hidden":!0})},{id:"lanes",title:"Agent Lanes",glyph:h.jsx(u3,{size:13,strokeWidth:1.7,"aria-hidden":!0})},{id:"advisor",title:"Host Advisor",glyph:h.jsx($x,{size:13,strokeWidth:1.7,"aria-hidden":!0})}];return h.jsx(vr,{label:"Operations",emptyMark:"O",labelTone:"default",onLabelClick:e,children:o.map(s=>h.jsx(Pn,{title:s.title,active:r===s.id||!r&&s.id==="mission",tone:"neutral",glyph:s.glyph,onClick:()=>n({view:"ops",mode:s.id})},s.id))})}function Pie({onExpand:e}){const{agents:t,navigate:n}=Sn(),{meshSnapshot:r}=D6(),o=c.useMemo(()=>r?r3(t,r):[],[t,r]),s=c.useMemo(()=>[...o].sort((a,u)=>u.agents.length-a.agents.length).slice(0,Mc),[o]),i=s.filter(a=>a.online).length;return h.jsx(vr,{label:"Network",emptyMark:"M",labelTone:i>0?"live":"default",labelCount:s.length||void 0,onLabelClick:e,children:s.map(a=>h.jsx(Pn,{title:`${a.machineLabel} · ${a.agents.length}`,tone:a.online?"default":"neutral",ava:_p(a.machineLabel),avaColor:Ap(a.machineLabel),dot:a.online?"live":null,onClick:()=>n({view:"mesh"})},a.machineId))})}function ux({agent:e,attention:t,onClick:n}){const r=e.name??e.id,o=Ex(e.state);return h.jsx(Pn,{title:t?`${r} · needs you`:r,tone:t?"attention":"default",avatarNode:h.jsx(xx,{agent:e,name:r,size:28,tile:!0,presence:!1}),dot:t?"attention":o?"live":null,onClick:n})}function Mie(e){if(!e)return null;const t=e.replace(/\/+$/,"").split("/");return t[t.length-1]||null}function Tie(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 Iie({presentation:e="scout",navRailWidth:t,isCollapsed:n,onToggleCollapse:r,width:o,style:s,hideWhenEmpty:i=!0}){const{route:a,navigate:u}=Sn(),l=IS(a),d=l.kind==="scope"?{body:null,footer:null}:t3(a,u),f=!d.body&&!d.footer;if(i&&f)return null;const p=dr(a),m=ma.find(b=>b.id===p),g=l.kind==="scope"?"Scope":e==="slack"&&p==="chat"?"Scout":e==="slack"&&p==="home"?"Activity":m?.label??"Context",y=typeof s?.top=="number"?s.top:typeof s?.top=="string"&&Number.parseFloat(s.top)||0,w=t+fa(n?$t:o,n);return h.jsxs(h.Fragment,{children:[h.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:h.jsx(gp,{side:"left",title:g,isCollapsed:!1,width:o,style:{left:t,...s},footer:d.footer?d.footer:void 0,children:h.jsx("div",{"data-pane":"side-rail","data-scout-side-rail":"",style:{display:"contents"},children:d.body})})}),h.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:h.jsx(FS,{side:"left",title:g,onToggle:r,edgeOffset:t,top:y,style:s,body:h.jsx($ie,{route:a,onExpand:r})})}),h.jsx(da,{side:"left",collapsed:n,label:g,onToggle:r,onMouseDown:b=>b.stopPropagation(),className:"scout-rail-toggle--band",style:{position:"fixed",left:w,top:y+AS,zIndex:45}})]})}function Aie(e){return dr(e)==="ops"?"ops":null}function _ie({items:e,route:t,navigate:n,className:r=""}){return e.length===0?null:h.jsx("nav",{className:`scout-area-subnav${r?` ${r}`:""}`,"aria-label":"Area sub-navigation","data-scout-area-subnav":"",children:e.map(o=>{const s=o.active(t);return h.jsx("button",{type:"button","aria-current":s?"page":void 0,className:`scout-area-subnav-item${s?" scout-area-subnav-item--active":""}`,onClick:()=>n(o.route),children:o.label},o.id)})})}function Nie({rightUtility:e,variant:t,presentation:n="scout",onOpenSearch:r,onInteractiveMouseDown:o}={}){const{route:s,navigate:i,navigateBack:a,canNavigateBack:u}=Sn(),l=K6(s),d=_6(s),f=Aie(s),p=t==="top-row",m=!!d||f!==null;if(!p&&!l&&!d&&!f&&!e)return null;const g=m?h.jsxs(h.Fragment,{children:[d?h.jsx(_ie,{items:d.items,route:s,navigate:i}):null,f==="ops"?h.jsx("div",{className:"scout-center-pane-secondary","data-scout-secondary-nav":"ops",children:h.jsx(d3,{activeRoute:s,navigate:i})}):null]}):null;if(p){const y=kx(dr(s)).label;if(n==="slack"){const x=dr(s)==="chat"?"Home":dr(s)==="home"?"Activity":y;return h.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:[h.jsxs("div",{className:"scout-slack-topbar-history",onMouseDown:o,children:[h.jsx("button",{type:"button","aria-label":"Go back",title:"Go back",onClick:()=>window.history.back(),children:h.jsx(Lh,{size:16,strokeWidth:1.8,"aria-hidden":!0})}),h.jsx("button",{type:"button","aria-label":"Go forward",title:"Go forward",onClick:()=>window.history.forward(),children:h.jsx(f3,{size:16,strokeWidth:1.8,"aria-hidden":!0})}),h.jsx("span",{children:x})]}),h.jsxs("button",{type:"button",className:"scout-slack-topbar-search","aria-label":"Search Scout",onMouseDown:o,onClick:r,children:[h.jsx(Ox,{size:15,strokeWidth:1.8,"aria-hidden":!0}),h.jsx("span",{children:"Search Scout"}),h.jsx("kbd",{children:"⌘K"})]}),e?h.jsx("div",{className:"scout-center-pane-header-utility scout-slack-topbar-utility","data-scout-header-utility":"",onMouseDown:o,children:e}):h.jsx("span",{})]})}return h.jsxs("div",{className:"scout-center-pane-header scout-center-pane-header--top-row","data-scout-center-pane-header":"","data-scout-top-row":"","data-scout-has-secondary-row":m?"":void 0,children:[h.jsxs("div",{className:"scout-center-pane-header-main",onMouseDown:o,children:[h.jsx("button",{type:"button",className:"scout-top-row-back","aria-label":"Back","aria-keyshortcuts":"Meta+[",title:"Back (⌘[)",disabled:!u,onClick:a,children:h.jsx(Lh,{size:16,strokeWidth:1.9,"aria-hidden":"true"})}),h.jsx("div",{className:"scout-center-pane-breadcrumb","data-scout-breadcrumb":"",children:h.jsx("span",{className:"scout-nav-crumb",children:y})}),m?h.jsx("span",{className:"scout-top-row-sep","aria-hidden":"true",children:"/"}):null,g]}),e?h.jsx("div",{className:"scout-center-pane-header-utility","data-scout-header-utility":"",onMouseDown:o,children:e}):null]})}return h.jsxs("div",{className:"scout-center-pane-header","data-scout-center-pane-header":"",children:[h.jsxs("div",{className:"scout-center-pane-header-main",onMouseDown:o,children:[l?h.jsx("div",{className:"scout-center-pane-breadcrumb","data-scout-breadcrumb":"",children:h.jsx("span",{className:"scout-nav-crumb",children:l})}):null,g]}),e?h.jsx("div",{className:"scout-center-pane-header-utility","data-scout-header-utility":"",onMouseDown:o,children:e}):null]})}const Die="https://openscout.app/docs";function Vie({presentation:e="scout"}){const{onboarding:t,operatorName:n,refreshOnboarding:r}=Sn(),o=n||t?.operatorName?.trim()||t?.operatorNameSuggestion?.trim()||null,s=c.useRef(o==null),i=c.useRef(!1);return c.useEffect(()=>{o||!t||i.current||(i.current=!0,r())},[t,o,r]),h.jsxs("div",{className:"scout-top-row-identity","data-presentation":e,children:[h.jsx("a",{className:"scout-top-row-docs",href:Die,target:"_blank",rel:"noreferrer",title:"OpenScout documentation",children:e==="slack"?h.jsx(w3,{size:16,strokeWidth:1.8,"aria-hidden":!0}):"docs"}),h.jsxs("span",{className:"scout-top-row-operator",title:o??void 0,"aria-label":o?`Operator ${o}`:"Operator",children:[h.jsx(xx,{name:o??"operator",size:28,presence:!1,scaleWithPreference:!1}),e==="slack"?null:h.jsx("span",{className:"scout-top-row-handle","data-arriving":o==null||void 0,"data-arrived":o!=null&&s.current?"":void 0,children:o?`@${o.toLowerCase()}`:null})]})]})}function zie(e,t,n=$t){const r=`appshell.${e}.sidebar.manualCollapsed`,o=`appshell.${e}.sidebar.width`,[s,i]=It(r,!0),[a,u]=It(o,Js),l=t<=Cie,[d,f]=c.useState(!1),[p,m]=c.useState(null),[g,y]=c.useState(!1),[x,w]=c.useState(!1);c.useEffect(()=>{l||f(!1)},[l]);const v=VS({manualCollapsed:s,autoCollapsed:l,forceExpanded:d}),C=Tp(a),k=p!=null?NS(p,{min:Lp,max:jp,startedCollapsed:g,collapsedWidth:n}):null,E=Eie(v,C,n),$=c.useCallback(()=>{const I=Sie({manualCollapsed:s,autoCollapsed:l,forceExpanded:d});if(l){f(I.forceExpanded);return}i(I.manualCollapsed)},[l,d,s,i]),S=c.useCallback(I=>{const _=zS({manualCollapsed:s,autoCollapsed:l,forceExpanded:d},I);if(l){f(N=>N===_.forceExpanded?N:_.forceExpanded);return}i(N=>N===_.manualCollapsed?N:_.manualCollapsed)},[l,d,s,i]),j=c.useCallback(I=>{u(Tp(I))},[u]),R=c.useCallback(()=>{u(Js),m(null)},[u]),T=c.useCallback((I,_=!1)=>{w(!0),y(_),m(I)},[]),A=c.useCallback(I=>{m(I)},[]),L=c.useCallback(()=>{m(null),w(!1)},[]),V=c.useCallback((I,_)=>{const N=DS({startedCollapsed:_,rawWidth:I},{min:Lp,max:jp,collapsedWidth:n});return N.kind==="collapse"?S(!0):N.kind==="expand"?S(!1):N.kind==="resize"&&u(N.width),m(null),w(!1),N},[n,S,u]);return{manualCollapsed:s,autoCollapsed:l,forceExpanded:d,effectiveCollapsed:v,width:E,expandedWidth:C,dragGhostWidth:k,dragStartedCollapsed:g,isSidebarResizing:x,toggleCollapsed:$,setCollapsed:S,setManualCollapsed:i,setExpandedWidth:j,resetExpandedWidth:R,beginResize:T,updateResize:A,clearDrag:L,commitDrag:V}}function Fie({route:e,onExpand:t}){return e.view==="messages"||e.view==="conversation"?h.jsxs(vr,{label:"Context",showLabel:!1,emptyMark:"·",children:[h.jsx(Pn,{title:"Conversation",tone:"neutral",glyph:h.jsx(jh,{size:14,strokeWidth:1.7,"aria-hidden":!0}),onClick:t}),h.jsx(Pn,{title:"Members",tone:"neutral",glyph:h.jsx(Sx,{size:14,strokeWidth:1.7,"aria-hidden":!0}),onClick:t}),h.jsx(Pn,{title:"Workspace",tone:"neutral",glyph:h.jsx(V6,{size:14,strokeWidth:1.7,"aria-hidden":!0}),onClick:t}),h.jsx(Pn,{title:"Activity",tone:"neutral",glyph:h.jsx($x,{size:14,strokeWidth:1.7,"aria-hidden":!0}),onClick:t})]}):h.jsx(vr,{label:"Context",showLabel:!1,emptyMark:"·",children:h.jsx(Pn,{title:"Expand context",tone:"neutral",glyph:h.jsx(jh,{size:14,strokeWidth:1.7,"aria-hidden":!0}),onClick:t})})}function Bie(e){return e.view==="ops"&&e.mode==="lanes"}function Hie(e,t){return!Bie(e)||!t||t.loading?!1:t.messageCount===0}function Wie(e){return e.empty?!e.forceOpen:e.baseCollapsed}function Zie(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 Uie(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";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}}const Zi=240,Gie=900,Kie=.45,Yie=500,qie=420,Xie=480,Jie=520,bf=560,Qie=1500,eae=40;function dx(e){return Math.min(Gie,Math.max(Yie,Math.floor(e*Kie)))}function tae({title:e,center:t,actions:n,search:r}){const{dragRegionProps:o,onInteractiveMouseDown:s}=Qs(),{navTotalHeight:i}=tm(),a=!!r?.value,u=c.useRef(null),l=c.useRef(null),d=c.useRef(null),f=c.useRef(null);return c.useEffect(()=>{const p=u.current;if(!p)return;const m=()=>{const x=(l.current?.offsetWidth??0)+16,w=(d.current?.offsetWidth??0)+16,b=f.current?.firstElementChild?.clientWidth??0;p.style.setProperty("--scout-nav-left-w",`${x}px`),p.style.setProperty("--scout-nav-right-w",`${w}px`),p.style.setProperty("--scout-nav-strip-w",`${b}px`)};m();const g=new ResizeObserver(m),y=f.current?.firstElementChild;for(const x of[l.current,d.current,y])x&&g.observe(x);return window.addEventListener("resize",m),()=>{g.disconnect(),window.removeEventListener("resize",m)}},[]),h.jsx("div",{ref:u,"data-frame-panel":"navigation",className:"fixed top-0 left-0 right-0 z-50 pointer-events-auto",...o,children:h.jsxs("div",{className:"bg-background/95 border-b shadow-[var(--hud-shadow-nav)] flex items-end px-4",style:{height:i,borderColor:"var(--hud-chrome-border, oklch(var(--border) / 0.8))"},children:[h.jsx("div",{ref:l,className:"absolute left-4 bottom-0 h-12 z-10 flex items-center gap-2.5 select-none",onMouseDown:s,children:h.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:[h.jsx(R4,{className:"h-[22px] w-[22px] text-[var(--scout-chrome-ink-strong,currentColor)]"}),h.jsx("span",{className:"font-mono text-sm font-medium tracking-[0.06em] leading-none",children:e})]})}),t&&h.jsx("div",{ref:f,className:"flex-1 flex justify-center h-12 items-center",onMouseDown:s,children:t}),h.jsxs("div",{ref:d,className:"absolute right-4 bottom-0 h-12 z-10 flex items-center gap-3",onMouseDown:s,children:[n,r&&h.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:[h.jsx(Ox,{size:11,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),h.jsx("input",{type:"text",value:r.value,onChange:p=>r.onChange(p.target.value),placeholder:r.placeholder??"Search",className:`
84
- w-full h-7 pl-5 pr-6 bg-transparent text-sm font-mono font-normal tracking-[0.02em]
85
- placeholder:text-muted-foreground/80 placeholder:font-light text-foreground
86
- focus:outline-none transition-all duration-200
87
- ${a?"text-accent":""}
88
- `}),a&&h.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:h.jsx(Ip,{size:12})})]})]})]})})}function Kue({app:e,assistant:t=!0}){return h.jsx(g6,{registry:x6,audience:w6,audienceOrder:hx,storageKey:y6,initialLayers:C6(),children:h.jsx(e.Provider,{children:h.jsx(gte,{children:h.jsx(oae,{app:e,assistantEnabled:t})})})})}function nae({statusBar:e,dictationActive:t}){const n=Oo("surface.scoutbot",!0),r=Oo(yx,!1),o=e.mesh.color==="amber"?"text-amber-400":e.mesh.color==="red"?"text-red-400":"text-foreground";return h.jsxs("div",{className:"flex items-center gap-3 font-mono leading-none",children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("span",{className:"text-2xs font-normal uppercase tracking-[0.16em] text-muted-foreground",children:e.mesh.label}),h.jsx("span",{className:`text-xs ${o}`,children:e.mesh.value})]}),(n||r)&&h.jsxs(h.Fragment,{children:[h.jsx("span",{"aria-hidden":"true",className:"select-none text-muted-foreground/40 text-xs",children:"·"}),h.jsxs("div",{className:"flex items-center gap-1",children:[n&&h.jsx(Z6,{}),r&&h.jsx(Ote,{dictationActive:t})]})]})]})}function rae({statusBar:e,onOpenFlagPanel:t,onOpenActivityLog:n}){return h.jsxs("div",{className:"flex max-w-[42vw] items-center gap-3",children:[h.jsx(Ste,{onOpen:n}),h.jsx("span",{"aria-hidden":"true",className:"select-none text-muted-foreground/40 text-xs",children:"·"}),h.jsx(ute,{onOpenPanel:t}),h.jsx("div",{className:"truncate font-mono text-xs leading-none text-muted-foreground",title:e.build.title,children:e.build.label})]})}function oae({app:e,assistantEnabled:t}){const{navTotalHeight:n}=tm(),{titleBarInset:r,dragRegionProps:o,onInteractiveMouseDown:s}=Qs(),i=xte();k6();const{route:a,openContextCapture:u,apiConnection:l,navigate:d,navigateBack:f,selectedBrokerAttempt:p,selectedKnowledgeHit:m,appearanceDetails:g}=Sn(),y=px(),x=g.shell==="slack",w=Oo("nav.sidebar",!1),b=x||w,v=b?r:n,C=b,k=C?eae:0,E=v+k,$=E+AS,S=T6(),j=e.hooks.useCommands(),R=e.hooks.useSearch?.()??null,T=e.hooks.useNavCenter?.()??null,A=e.hooks.useNavActions?.()??null,L=e.hooks.useLayoutMode?.()??e.mode,V=L==="focus"?"panel":L,I=e.hooks.useActiveToolHint?.()??null,_=e.hooks.useTakeover?.()??null,N=_?.active===!0,O=N&&_?.dismissible===!0,z=_?.onDismiss,M=e.slots.Takeover,q=Y6();jte(q,l);const ee=vte(),[K,ue]=c.useState(!1),[se,re]=It(`appshell.${e.id}.left`,!1),[oe,ie]=It(`appshell.${e.id}.right`,!1),[ae,pe]=It(`appshell.${e.id}.rightOverlay`,!1),[P,Y]=It(`appshell.${e.id}.leftW`,260),[B,ve]=It(`appshell.${e.id}.rightW`,280),[Q,X]=It("openscout.ops.minimap.collapsed",!1),[te,ke]=It(`appshell.${e.id}.terminalFocus`,!1),[Ce,U]=c.useState(()=>typeof window<"u"?window.innerWidth:1280),[W,le]=c.useState(()=>dx(typeof window<"u"?window.innerWidth:1280)),J=a.view==="search"||y.pathname==="/search",de=x?yie:xie,Z=zie(e.id,Ce,de),ye=b&&a.view==="terminal"&&te,[Pe,Ee]=c.useState(null),[Fe,nt]=c.useState(!1),rt=c.useRef(null),ft=c.useRef(null),kt=Pe!=null,Oe=Pe!=null?NS(Pe,{min:Pp,max:Mp,startedCollapsed:Fe}):null,[Ne,ot]=c.useState(null),we=c.useRef(null);c.useEffect(()=>{const G=()=>{U(window.innerWidth),le(dx(window.innerWidth))};return G(),window.addEventListener("resize",G),()=>window.removeEventListener("resize",G)},[]);const{active:Re,brandLabel:Ge}=j6({route:a});c.useEffect(()=>(document.documentElement.style.setProperty("--scout-rail-collapsed-width",`${$t}px`),b?(document.documentElement.setAttribute("data-scout-sidebar-chrome",""),document.documentElement.style.setProperty("--scout-nav-rail-width",`${Z.width}px`),Z.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,Z.width,Z.isSidebarResizing]),c.useEffect(()=>{Y(b?G=>vf(G):G=>Math.min(W,Math.max(Zi,G))),ve(G=>Math.min(W,Math.max(Zi,G)))},[b,W,Y,ve]),c.useEffect(()=>{!J||oe||ae||ve(G=>Math.max(G,Math.min(W,qie)))},[J,oe,ae,ve,W]);const ht=a.view==="agents-v2"&&!a.agentId&&!a.sessionId&&!!a.selectedAgentId||a.view==="agents-v2"&&!!a.agentId;c.useEffect(()=>{!ht||oe||ae||ve(G=>Math.max(G,Math.min(W,Xie)))},[ht,oe,ae,ve,W]);const We=a.view==="broker"&&!!a.attemptId;c.useEffect(()=>{We&&(ie(!1),ve(G=>Math.max(G,Math.min(W,Jie))))},[We,ie,ve,W]);const[Ft,Bn]=c.useState({x:0,y:0}),[Mr,Xo]=c.useState(1),Jo=c.useCallback(G=>{Bn(ne=>({x:ne.x+G.x,y:ne.y+G.y}))},[]),Qo=c.useCallback(G=>{Xo(G)},[]),[Qn,Bt]=c.useState(!1),[Tr,es]=c.useState(!1),[ts,Kt]=It(`appshell.${e.id}.termH`,320),ro=!!e.slots.Terminal,Ir=c.useMemo(()=>{const G=[];return ro&&G.push("terminal"),t&&G.push("assistant"),G},[ro,t]),oo=Ir[0]??"terminal",[fi,ns]=It(`appshell.${e.id}.drawerTab`,oo),rs=Ir.includes(fi)?fi:oo,[BS,pi]=c.useState(!1),[HS,so]=c.useState(!1),[WS,ZS]=c.useState(new Set),Tc=c.useRef(!1),io=c.useRef(null),er=c.useCallback(()=>{Tc.current=!1,io.current!==null&&(window.clearTimeout(io.current),io.current=null)},[]),fh=c.useCallback(()=>{Tc.current=!0,io.current!==null&&window.clearTimeout(io.current),io.current=window.setTimeout(er,Qie)},[er]);c.useEffect(()=>er,[er]);const US=c.useCallback(G=>{ZS(ne=>{const Se=new Set(ne);return Se.has(G)?Se.delete(G):Se.add(G),Se})},[]),ph=c.useCallback(G=>ne=>{ne.preventDefault();const Se=ne.clientX,Yt=G==="left"?P:B,Rt=G==="left"?Y:ve,ct=G==="left"?1:-1,tr=qt=>{const Et=(qt.clientX-Se)*ct;Rt(Math.max(Zi,Math.min(W,Yt+Et)))},mn=()=>{document.removeEventListener("mousemove",tr),document.removeEventListener("mouseup",hn),window.removeEventListener("blur",mn)},hn=()=>mn();document.addEventListener("mousemove",tr),document.addEventListener("mouseup",hn),window.addEventListener("blur",mn)},[P,B,Y,ve,W]),[mi,GS]=c.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches);c.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;const G=window.matchMedia("(prefers-reduced-motion: reduce)"),ne=()=>GS(G.matches);return ne(),G.addEventListener?.("change",ne),()=>G.removeEventListener?.("change",ne)},[]);const hi=c.useCallback(G=>{mi||(ot(G),we.current!==null&&window.clearTimeout(we.current),we.current=window.setTimeout(()=>{ot(null),we.current=null},150))},[mi]);c.useEffect(()=>()=>{we.current!==null&&window.clearTimeout(we.current)},[]);const KS=c.useCallback(G=>{G.preventDefault(),G.stopPropagation();const ne=Z.effectiveCollapsed,Se=G.clientX,Yt=ne?de:Z.expandedWidth;ft.current=Yt,Z.beginResize(Yt,ne);const Rt=()=>{document.removeEventListener("pointermove",ct),document.removeEventListener("pointerup",tr),document.removeEventListener("pointercancel",mn),window.removeEventListener("blur",mn)},ct=hn=>{const qt=Yt+(hn.clientX-Se);ft.current=qt,Z.updateResize(qt)},tr=()=>{const hn=ft.current??Yt,qt=Z.commitDrag(hn,ne),Et=qt.kind==="collapse"?de:qt.kind==="expand"?Z.expandedWidth:qt.kind==="resize"?qt.width:null;Et!=null&&hi(Et),Rt()},mn=()=>{Z.clearDrag(),Rt()};document.addEventListener("pointermove",ct),document.addEventListener("pointerup",tr),document.addEventListener("pointercancel",mn),window.addEventListener("blur",mn)},[Z,de,hi]),YS=c.useCallback((G,ne)=>Se=>{Se.preventDefault(),Se.stopPropagation();const Yt=Se.clientX,Rt=ne?$t:vf(P);rt.current=Rt,Ee(Rt),nt(ne);const ct=()=>{document.removeEventListener("pointermove",tr),document.removeEventListener("pointerup",mn),document.removeEventListener("pointercancel",hn),window.removeEventListener("blur",hn)},tr=qt=>{const Et=Rt+(qt.clientX-Yt);rt.current=Et,Ee(Et)},mn=()=>{const qt=rt.current??Rt,Et=DS({startedCollapsed:ne,rawWidth:qt},{min:Pp,max:Mp});Et.kind==="collapse"?re(!0):Et.kind==="expand"?re(!1):Et.kind==="resize"&&Y(Et.width),Ee(null),rt.current=null;const $h=Et.kind==="collapse"?G+$t:Et.kind==="expand"?G+vf(P):Et.kind==="resize"?G+Et.width:null;$h!=null&&hi($h),ct()},hn=()=>{Ee(null),rt.current=null,ct()};document.addEventListener("pointermove",tr),document.addEventListener("pointerup",mn),document.addEventListener("pointercancel",hn),window.addEventListener("blur",hn)},[P,re,Y,hi]),mh=c.useMemo(()=>{const ne=[{id:"nav:back",label:"Back",shortcut:"Cmd+[",action:f},{id:"shell:toggle-sidebar-b",label:"Toggle Sidebar",shortcut:"Cmd+B",action:()=>{b?Z.toggleCollapsed():re(Se=>!Se)}},{id:"shell:toggle-right",label:"Toggle Right Panel",shortcut:"Cmd+]",action:()=>ie(Se=>!Se)},{id:"shell:toggle-right-overlay",label:"Toggle Inspector Overlay",shortcut:"Cmd+Shift+]",action:()=>pe(Se=>!Se)},{id:"shell:new-session",label:Cs,shortcut:Ui,action:()=>u()},{id:"shell:toggle-terminal",label:"Toggle Terminal",shortcut:"Ctrl+`",action:()=>Bt(Se=>!Se)},...b&&a.view==="terminal"?[{id:"shell:terminal-focus",label:te?"Exit Terminal Focus":"Focus Terminal",shortcut:"Cmd+Shift+B",action:()=>ke(Se=>!Se)}]:[],{id:"shell:feature-flags",label:"Feature Flags",shortcut:pa()?"Cmd+Shift+F":void 0,action:()=>so(!0)}];return t&&ne.push({id:"shell:toggle-assistant",label:"Toggle Assistant",shortcut:"Cmd+J",action:()=>{ns("assistant"),Bt(Se=>!Se||fi!=="assistant")}}),ne},[t,fi,u,f,a,ns,re,ie,pe,so,ke,b,Z,te]),qS=c.useMemo(()=>[...j,...mh],[j,mh]);c.useEffect(()=>{const G=ne=>{if(E6(ne)&&!N&&!i.open&&!S6()&&b&&a.view==="terminal"){ne.preventDefault(),ne.stopPropagation(),ke(ct=>!ct);return}if($6(ne.target)||N||i.open)return;const Se=ne.key.toLowerCase(),Yt=ne.metaKey||ne.ctrlKey||ne.altKey,Rt=vx(ne.target);if(Tc.current)if(ne.key==="Escape"||Yt||Rt)er();else{const ct=bte(Se);if(ct){ne.preventDefault(),ne.stopPropagation(),er(),d(ct.route);return}else er()}if(!Yt&&!ne.shiftKey&&Se==="g"&&!Rt){ne.preventDefault(),ne.stopPropagation(),fh();return}if((ne.metaKey||ne.ctrlKey)&&ne.key==="k"&&(ne.preventDefault(),pi(!0)),q6(ne)&&(ne.preventDefault(),u()),(ne.metaKey||ne.ctrlKey)&&ne.key==="["&&(ne.preventDefault(),f()),(ne.metaKey||ne.ctrlKey)&&ne.key.toLowerCase()==="b"){if(Rt)return;ne.preventDefault(),b?Z.toggleCollapsed():re(ct=>!ct)}(ne.metaKey||ne.ctrlKey)&&ne.key==="]"&&(ne.preventDefault(),ne.shiftKey?pe(ct=>!ct):ie(ct=>!ct)),ne.ctrlKey&&ne.key==="`"&&(ne.preventDefault(),Bt(ct=>!ct)),t&&(ne.metaKey||ne.ctrlKey)&&ne.key==="j"&&(ne.preventDefault(),ns("assistant"),Bt(ct=>!(ct&&rs==="assistant"))),pa()&&(ne.metaKey||ne.ctrlKey)&&ne.shiftKey&&!ne.altKey&&ne.code==="KeyF"&&(ne.preventDefault(),ne.stopPropagation(),so(!0))};return window.addEventListener("keydown",G,!0),()=>window.removeEventListener("keydown",G,!0)},[t,er,i.open,f,d,u,rs,a,ns,re,ie,pe,so,ke,b,Z,fh,N]),c.useEffect(()=>{const G=ne=>{const Se=ne.detail,Yt=typeof Se?.width=="number"?Se.width:420;ie(!1),ve(Rt=>Math.max(Rt,Math.min(W,Math.max(Zi,Yt))))};return window.addEventListener("scout:set-inspector-width",G),()=>window.removeEventListener("scout:set-inspector-width",G)},[ie,ve,W]);const Ic=e.slots.Inspector,hh=e.slots.RightPanel,XS=e.tools&&e.tools.length>0,JS=h.jsxs(h.Fragment,{children:[Ic&&h.jsx(Ic,{}),!Ic&&hh&&h.jsx(hh,{}),XS&&h.jsx("div",{className:"border-t border-neutral-700/50",children:e.tools.map(G=>{const ne=WS.has(G.id);return h.jsxs("div",{children:[h.jsxs("button",{onClick:()=>US(G.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 ${I===G.id?"text-emerald-400":"text-neutral-300"}`,children:[ne?h.jsx(p3,{size:10}):h.jsx(m3,{size:10}),h.jsx("span",{className:"text-neutral-400",children:G.icon}),h.jsx("span",{className:"font-bold",children:G.name})]}),ne&&h.jsx("div",{className:"px-4 pb-3",children:h.jsx(G.Component,{})})]},G.id)})})]}),QS=h.jsx(ote,{onOpenCommandPalette:()=>pi(!0)}),gh=c.useMemo(()=>({isCollapsed:Q,onToggleCollapse:()=>X(G=>!G)}),[Q,X]),e6=ee?h.jsx("div",{className:`scout-canvas-minimap-shell${Q?" scout-canvas-minimap-shell--collapsed":""}`,children:ee.render(gh)}):null,t6=ee?h.jsx("div",{className:`scout-canvas-minimap-shell scout-canvas-minimap-shell--floating${Q?" scout-canvas-minimap-shell--collapsed":""}`,children:ee.render(gh)}):null,vh=c.useRef(null),bh=c.useRef(null);c.useEffect(()=>{const G=vh.current;G&&(N?G.setAttribute("inert",""):G.removeAttribute("inert"))},[N]),c.useEffect(()=>{if(!N)return;const G=bh.current;if(G&&(G.querySelector("button, [href], input, select, textarea, [tabindex]:not([tabindex='-1'])")??G).focus(),!O)return;const ne=Se=>{Se.key==="Escape"&&(Se.preventDefault(),z?.())};return window.addEventListener("keydown",ne),()=>window.removeEventListener("keydown",ne)},[N,O,z]);const yh=a.view==="agents-v2",n6=Uie(a,{hasBrokerAttempt:!!p,hasKnowledgeHit:!!m}),Ac=a.view==="ops"&&a.mode==="lanes",[wh,_c]=c.useState(!1),r6=S.state.conversation,gi=Hie(a,r6);c.useEffect(()=>{Ac||_c(!1)},[Ac]),c.useEffect(()=>{gi||_c(!1)},[gi]);const vi=Wie({empty:gi,forceOpen:wh,baseCollapsed:oe||Re}),xh=!ye&&!Re&&n6,bi=Re&&!b,o6=Re,os=!ye&&b&&Tie(a,Re),Nc=os?se?$t:P:0,Ch=os&&Z.effectiveCollapsed&&se;c.useEffect(()=>(Ch?document.documentElement.setAttribute("data-scout-double-rail",""):document.documentElement.removeAttribute("data-scout-double-rail"),()=>document.documentElement.removeAttribute("data-scout-double-rail")),[Ch]);const ss=ye?0:b?Z.width+Nc:se||bi?0:P,yi=ye||!xh||ae||We||o6?0:vi?b?$t:0:B,s6=Ce-ss-yi,kh=L==="panel"&&s6<bf&&(ss>0||yi>0),Dc=kh&&yi>0,Vc=kh&&(b?Nc>0&&Ce-Z.width-Nc<bf:ss>0&&Ce-ss<bf),wi=We||ae||Dc,zc=Vc?b?Z.width:0:ss,Fc=wi?0:yi,i6=L==="panel"?{position:"absolute",top:E,bottom:28,left:zc,right:Fc,overflow:"auto"}:{},Eh=b?{top:E}:{},a6=b?{top:E}:{},c6={display:"contents","--scout-shell-left-inset":`${L==="panel"?zc:0}px`,"--scout-shell-right-inset":`${L==="panel"?Fc:0}px`,...b?{"--scout-nav-rail-width":`${Z.width}px`}:{}},Sh=ae?"Pin inspector (push content)":Dc?"Keep inspector floating when there is room":"Float inspector (overlay content)",Bc=c.useCallback((G,ne=!1)=>({backgroundColor:"rgba(13, 14, 16, 0.72)",backdropFilter:"blur(24px) saturate(140%)",WebkitBackdropFilter:"blur(24px) saturate(140%)",boxShadow:G==="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)",...ne?{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 h.jsxs(h.Fragment,{children:[h.jsx("div",{ref:vh,"aria-hidden":N?!0:void 0,style:c6,children:h.jsx(ete,{mode:V,panOffset:Ft,scale:Mr,onPan:Jo,onZoom:Qo,hud:h.jsxs(h.Fragment,{children:[b?null:h.jsx(tae,{title:Re?Ge:e.name,search:Re?void 0:R??void 0,center:T,actions:A}),b?ye?null:h.jsxs(h.Fragment,{children:[h.jsx(iie,{open:!Z.effectiveCollapsed,onOpenChange:G=>Z.setCollapsed(!G),style:{"--sidebar-width":`${Z.expandedWidth}px`,"--sidebar-width-icon":`${de}px`,"--scout-sidebar-top":"0px"},"data-sidebar-resizing":Z.isSidebarResizing?"":void 0,children:h.jsx(gie,{brandLabel:e.name,presentation:x?"slack":"scout"})}),h.jsx(da,{side:"left",collapsed:Z.effectiveCollapsed,label:"Sidebar",onToggle:Z.toggleCollapsed,onMouseDown:G=>G.stopPropagation(),className:"scout-rail-toggle--band",style:{position:"fixed",left:fa(Z.width,Z.effectiveCollapsed,de),top:$,zIndex:46}}),h.jsx("div",{"data-scout-sidebar-resize-handle":"",role:"separator","aria-orientation":"vertical","aria-label":Z.effectiveCollapsed?"Expand sidebar (drag out)":"Resize or collapse sidebar",title:Z.effectiveCollapsed?"Drag out to expand · double-click to expand":"Drag to resize · drag in to collapse · double-click to reset",onPointerDown:KS,onDoubleClick:G=>{G.preventDefault(),Z.effectiveCollapsed?(Z.setExpandedWidth(Js),Z.setCollapsed(!1)):Z.resetExpandedWidth()},onMouseDown:G=>{G.stopPropagation()},style:{position:"fixed",left:Math.max(0,Z.width-3),top:E+Op,bottom:28,width:6,zIndex:50,cursor:"ew-resize",pointerEvents:"auto",touchAction:"none"}}),!mi&&Z.isSidebarResizing&&Z.dragGhostWidth!=null?h.jsx("div",{"data-scout-sidebar-resize-ghost":"","aria-hidden":"true",className:"scout-sidebar-resize-ghost",style:{position:"fixed",left:Z.dragGhostWidth,top:E,bottom:28,width:2,transform:"translateX(-50%)",zIndex:55,pointerEvents:"none"}}):null,os?h.jsx(Iie,{presentation:x?"slack":"scout",navRailWidth:Z.width,isCollapsed:se,onToggleCollapse:()=>re(!se),width:P,style:{...a6,...Vc?Bc("left"):{}}}):null,os?h.jsx("div",{"data-scout-sidebar-resize-handle":"","data-scout-side-rail-resize-handle":"",role:"separator","aria-orientation":"vertical","aria-label":se?"Expand context rail (drag out)":"Resize or collapse context rail",title:se?"Drag out to expand · double-click to expand":"Drag to resize · drag in to collapse · double-click to reset",onPointerDown:YS(Z.width,se),onDoubleClick:G=>{G.preventDefault(),se?(Y(Rp),re(!1)):Y(Rp)},onMouseDown:G=>{G.stopPropagation()},style:{position:"fixed",left:Math.max(0,Z.width+(se?$t:P)-3),top:E+Op,bottom:28,width:6,zIndex:50,cursor:"ew-resize",pointerEvents:"auto",touchAction:"none"}}):null,!mi&&os&&kt&&Oe!=null?h.jsx("div",{"data-scout-side-rail-resize-ghost":"","aria-hidden":"true",className:"scout-sidebar-resize-ghost",style:{position:"fixed",left:Z.width+Oe,top:E,bottom:28,width:2,transform:"translateX(-50%)",zIndex:55,pointerEvents:"none"}}):null,Ne!=null?h.jsx("div",{"data-scout-rail-settle-ghost":"","aria-hidden":"true",className:"scout-sidebar-resize-ghost scout-sidebar-resize-ghost--settle",style:{position:"fixed",left:Ne,top:E,bottom:28,width:2,transform:"translateX(-50%)",zIndex:55,pointerEvents:"none"}}):null]}):h.jsxs(h.Fragment,{children:[h.jsx(gp,{side:"left",title:yh?"Browse":a.view==="agent-info"?"Projects":e.leftPanel?.title??"Navigation",icon:e.leftPanel?.icon,isCollapsed:se||bi,onToggleCollapse:()=>re(!se),width:P,onResizeStart:ph("left"),style:Vc?Bc("left"):void 0,footer:!se&&!bi?e6:void 0,headerActions:e.leftPanel?.headerActions&&h.jsx(e.leftPanel.headerActions,{}),children:h.jsx("div",{"data-pane":"left",style:{display:"contents"},children:e.slots.LeftPanel&&h.jsx(e.slots.LeftPanel,{})})}),se||bi?t6:null]}),C?h.jsx("div",{"data-scout-top-row-frame":"",className:"scout-top-row-frame",style:{position:"fixed",top:v,left:ye?0:Z.width,right:0,height:k,zIndex:30,...o?.style??{}},...Object.fromEntries(Object.entries(o??{}).filter(([G])=>G!=="style")),children:h.jsx(Nie,{variant:"top-row",presentation:x?"slack":"scout",onOpenSearch:()=>pi(!0),rightUtility:h.jsxs(h.Fragment,{children:[a.view==="terminal"?h.jsx("button",{type:"button","data-scout-terminal-focus-toggle":"","aria-label":ye?"Exit terminal focus":"Focus terminal","aria-pressed":ye,"aria-keyshortcuts":"Meta+Shift+B Control+Shift+B",title:ye?"Exit focus (⌘⇧B)":"Focus terminal (⌘⇧B)",className:`scout-terminal-focus-toggle${ye?" scout-terminal-focus-toggle--active":""}`,onClick:()=>ke(G=>!G),children:ye?h.jsx(z6,{size:13,strokeWidth:1.8,"aria-hidden":"true"}):h.jsx(F6,{size:13,strokeWidth:1.8,"aria-hidden":"true"})}):null,h.jsx(Vie,{presentation:x?"slack":"scout"})]}),onInteractiveMouseDown:s})}):null,xh&&(()=>{const G=We?"Dispatch detail":yh?"Detail":e.rightPanel?.title??"Inspector",ne=()=>{if(Ac){const Se=Zie({empty:gi,forceOpen:wh,rightCollapsed:oe});_c(Se.forceOpen),Se.rightCollapsed!==oe&&ie(Se.rightCollapsed);return}ie(!oe)};return b&&vi?h.jsxs(h.Fragment,{children:[h.jsx(FS,{side:"right",title:G,onToggle:ne,edgeOffset:0,top:E,style:Eh,body:h.jsx(Fie,{route:a,onExpand:ne})}),h.jsx(da,{side:"right",collapsed:!0,label:G,onToggle:ne,onMouseDown:Se=>Se.stopPropagation(),className:"scout-rail-toggle--band",style:{position:"fixed",right:fa($t,!0),top:$,zIndex:45}})]}):h.jsxs(h.Fragment,{children:[h.jsx(gp,{side:"right",title:G,icon:e.rightPanel?.icon,isCollapsed:b?!1:vi,onToggleCollapse:b?void 0:ne,width:B,onResizeStart:ph("right"),floating:wi,style:{...Eh,...wi?Bc("right",We):{}},footer:QS,headerActions:h.jsxs(h.Fragment,{children:[!We&&h.jsx("button",{type:"button",onClick:()=>pe(Se=>Dc&&!Se?!0:!Se),title:Sh,"aria-label":Sh,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:wi?h.jsx($3,{size:12}):h.jsx(N6,{size:12})}),e.rightPanel?.headerActions&&h.jsx(e.rightPanel.headerActions,{})]}),children:h.jsx("div",{"data-pane":"right",style:{display:"contents"},children:JS})}),b&&!vi?h.jsx(da,{side:"right",collapsed:!1,label:G,onToggle:ne,onMouseDown:Se=>Se.stopPropagation(),className:"scout-rail-toggle--band",style:{position:"fixed",right:fa(B,!1),top:$,zIndex:45}}):null]})})(),h.jsx(rte,{status:q.status,left:h.jsx(nae,{statusBar:q,dictationActive:S.state.activity==="listening"}),right:h.jsx(rae,{statusBar:q,onOpenFlagPanel:()=>so(!0),onOpenActivityLog:()=>ue(!0)}),onToggleTerminal:()=>Bt(G=>!G),isTerminalOpen:Qn}),h.jsx($te,{open:K,onClose:()=>ue(!1)}),h.jsx("div",{className:"pointer-events-none",style:{position:"fixed",left:zc,right:Fc,bottom:0,top:0,zIndex:45,transform:"translateZ(0)"},children:h.jsxs(fte,{isOpen:Qn,onClose:()=>Bt(!1),onToggleMaximize:()=>es(G=>!G),isMaximized:Tr,height:Math.min(ts,window.innerHeight*.8),onHeightChange:G=>Kt(Math.min(G,window.innerHeight*.8)),title:h.jsx(sae,{tabs:Ir,active:rs,onSelect:ns}),children:[Qn&&rs==="terminal"&&(e.slots.Terminal?h.jsx(e.slots.Terminal,{}):h.jsx("div",{className:"p-4 font-mono text-md text-neutral-400",children:"No terminal content"})),Qn&&rs==="assistant"&&h.jsx(QW,{app:e,commands:j})]})}),h.jsx(mte,{isOpen:BS,onClose:()=>pi(!1),commands:qS})]}),children:h.jsx("div",{style:i6,className:"frame-scrollbar","data-pane":"center",children:h.jsx(e.slots.Content,{})})})}),N&&M?h.jsxs("div",{ref:bh,tabIndex:-1,role:"dialog","aria-modal":"true",style:{position:"fixed",inset:0,zIndex:80,outline:"none"},children:[h.jsx("div",{"data-scout-takeover-drag-region":"","aria-hidden":"true",style:{position:"absolute",top:0,left:0,right:0,height:Math.max(28,r||28),zIndex:1,...o?.style??{}},...Object.fromEntries(Object.entries(o??{}).filter(([G])=>G!=="style"))}),h.jsx(M,{})]}):null,h.jsx(wte,{open:i.open,onClose:()=>i.setOpen(!1)}),h.jsx(ate,{isOpen:HS,onClose:()=>so(!1),audienceOptions:hx}),h.jsx(Ete,{})]})}function sae({tabs:e,active:t,onSelect:n}){return e.length===0?null:h.jsx("div",{className:"flex items-center gap-0.5",children:e.map(r=>{const o=r===t,s=r==="terminal"?h3:g3,i=r==="terminal"?"TERMINAL":"ASSISTANT",a=r==="terminal"?"text-emerald-400":"text-cyan-400";return h.jsxs("button",{type:"button",onClick:()=>n(r),className:`flex items-center gap-1.5 px-2.5 py-1 rounded text-xs font-bold tracking-widest font-mono transition-colors ${o?`${a} bg-white/[0.04]`:"text-neutral-500 hover:text-neutral-300"}`,children:[h.jsx(s,{size:13}),h.jsx("span",{children:i})]},r)})})}export{Kue as OpenScoutAppShell};