@openscout/scout 0.2.92 → 0.2.95

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 (508) hide show
  1. package/NOTICE +14 -0
  2. package/README.md +164 -348
  3. package/bin/scoutd +0 -0
  4. package/dist/build-manifest.json +3 -3
  5. package/dist/client/apple-touch-icon.png +0 -0
  6. package/dist/client/assets/ActivityScreen--eANwuxa.js +1 -0
  7. package/dist/client/assets/{AddProjectForm-CpyytDf2.js → AddProjectForm-CcD6qvV8.js} +1 -1
  8. package/dist/client/assets/AgentAvatar-CYhf6twS.js +1 -0
  9. package/dist/client/assets/AgentConfigurationScreen-BTI24HQX.js +1 -0
  10. package/dist/client/assets/AgentDefinitionsWorkspace-srmN6-vj.js +1 -0
  11. package/dist/client/assets/{AgentDetailCard-BTiOmh-a.js → AgentDetailCard-UqPNpcvB.js} +1 -1
  12. package/dist/client/assets/AgentFloorView-XXNgI5Cj.js +1 -0
  13. package/dist/client/assets/AgentInfoScreen-CimdOnZ9.js +1 -0
  14. package/dist/client/assets/{AgentLaneCard-lfRNb7JD.js → AgentLaneCard-Z-aOBR3W.js} +1 -1
  15. package/dist/client/assets/{AgentLaneChrome-Dlwrbq3g.js → AgentLaneChrome-CyhA1reW.js} +1 -1
  16. package/dist/client/assets/AgentLaneDetailSheet-BNzjMjIH.js +4 -0
  17. package/dist/client/assets/{AgentLaneSummaryResize-6SOEWUnr.js → AgentLaneSummaryResize-Box8-_rS.js} +1 -1
  18. package/dist/client/assets/AgentLanesEmbedScreen-BmLnN4on.js +1 -0
  19. package/dist/client/assets/{AgentLanesPreflight-C3uOiOzd.js → AgentLanesPreflight-5B6sXvRB.js} +1 -1
  20. package/dist/client/assets/AgentLanesView-DHyzVBk6.js +2 -0
  21. package/dist/client/assets/{AgentLiveActions-BJ5dIfL3.js → AgentLiveActions-BwuzOE8h.js} +1 -1
  22. package/dist/client/assets/AgentSessions-CsZwoukw.js +6 -0
  23. package/dist/client/assets/AgentsConsole-KCao4XmX.js +1 -0
  24. package/dist/client/assets/AgentsScreen-CtPAmwRX.js +1 -0
  25. package/dist/client/assets/AgentsSubnav-CDMjKeYC.js +1 -0
  26. package/dist/client/assets/AstronautSuit-Ckx7lu7G.js +1 -0
  27. package/dist/client/assets/AtopView-DYlpgEHf.js +1 -0
  28. package/dist/client/assets/{BackToPicker-D1LV6Cqp.js → BackToPicker-4JaeRvDm.js} +1 -1
  29. package/dist/client/assets/BriefingDetailScreen-D6-xqrpo.js +1 -0
  30. package/dist/client/assets/BriefingsScreen-DKxSDEmk.js +1 -0
  31. package/dist/client/assets/{BrokerMetadataPanel-BhjECqOK.js → BrokerMetadataPanel-BbREmsbK.js} +1 -1
  32. package/dist/client/assets/BrokerScreen-fbPIouMw.js +5 -0
  33. package/dist/client/assets/CastPicker-BcA2vDDV.js +1 -0
  34. package/dist/client/assets/CastPicker-zXsnkTIy.css +1 -0
  35. package/dist/client/assets/ChatCollapsedStrip-Ycm0ecaX.js +1 -0
  36. package/dist/client/assets/{CodeDiffPane-Bx_2VAzv.js → CodeDiffPane-Cn8Y9hAt.js} +1 -1
  37. package/dist/client/assets/{CodeProjectPicker-C1yOJKvs.js → CodeProjectPicker-nPFktrco.js} +1 -1
  38. package/dist/client/assets/CodeScreen-BlAxtxE5.js +1 -0
  39. package/dist/client/assets/ConversationComposer-2HjbGPL9.js +1 -0
  40. package/dist/client/assets/ConversationFeedRows-C6wUqJrx.js +1 -0
  41. package/dist/client/assets/ConversationHeader-C8vfXaTF.js +1 -0
  42. package/dist/client/assets/ConversationPanels-CNCIbpqU.js +6 -0
  43. package/dist/client/assets/ConversationScreen-BNULZAp2.js +2 -0
  44. package/dist/client/assets/ConversationScreen-CkWnKXt6.css +1 -0
  45. package/dist/client/assets/ConversationStatus-DZuyKsWN.js +1 -0
  46. package/dist/client/assets/CrewAvatar-CTIuxp4G.js +1 -0
  47. package/dist/client/assets/CrewAvatar-D0c9z5Qr.css +1 -0
  48. package/dist/client/assets/CrewWorkspaces-CJhBKVoZ.css +1 -0
  49. package/dist/client/assets/CrewWorkspaces-CkPYIA46.js +1 -0
  50. package/dist/client/assets/{DataTable-CJbbgBdA.js → DataTable-6IDhanr5.js} +1 -1
  51. package/dist/client/assets/DispatchAftermath-DC1u9itO.js +1 -0
  52. package/dist/client/assets/DocumentFocusViewer-DZVhS7as.js +1 -0
  53. package/dist/client/assets/{EmbeddableSurfacesLab-BdsYRDky.js → EmbeddableSurfacesLab-BKUFJMCV.js} +1 -1
  54. package/dist/client/assets/{EmptyState-BRY5jTpz.js → EmptyState-CeBl0iGd.js} +1 -1
  55. package/dist/client/assets/{FileViewerPane-9Bveqm9c.js → FileViewerPane-DQlpNt2S.js} +2 -2
  56. package/dist/client/assets/FlightObserveScreen-CDWGSKZg.js +1 -0
  57. package/dist/client/assets/FollowScreen-BXHOp3gb.js +1 -0
  58. package/dist/client/assets/{HarnessMark-BPAphNjx.js → HarnessMark-D5CA5uSp.js} +1 -1
  59. package/dist/client/assets/HarnessesScreen-DhFXq1qz.js +1 -0
  60. package/dist/client/assets/{HerdrSession-BujfGzrP.js → HerdrSession-BRhs5LIR.js} +1 -1
  61. package/dist/client/assets/HomeHero-7JwycwFY.css +1 -0
  62. package/dist/client/assets/HomeHero-DMABJuze.js +1 -0
  63. package/dist/client/assets/HostAdvisorView-RAociATV.js +1 -0
  64. package/dist/client/assets/{KnowledgeSearchInspector-B4ZY24xE.js → KnowledgeSearchInspector-CZPyVNSw.js} +1 -1
  65. package/dist/client/assets/KnowledgeSearchScreen-mGTKIg00.js +1 -0
  66. package/dist/client/assets/{LaneToolHoverCard-B7KdvQvf.js → LaneToolHoverCard-D_DMlBeT.js} +1 -1
  67. package/dist/client/assets/LaneTraceDetailSheet-BEHg3LmH.js +1 -0
  68. package/dist/client/assets/{LaneTraceEventFocus-mkMw2wJU.js → LaneTraceEventFocus-DVimcizS.js} +1 -1
  69. package/dist/client/assets/{MeshCanvas-CpKcWxKy.js → MeshCanvas-BOuZx4AM.js} +2 -2
  70. package/dist/client/assets/{MeshCanvasMinimap-C9IoGHbe.js → MeshCanvasMinimap-wL-1N94e.js} +1 -1
  71. package/dist/client/assets/MeshScreen-DMY9Bmh5.js +1 -0
  72. package/dist/client/assets/{MeshTopologyView-DFzr0IZM.js → MeshTopologyView-DiDcX5f4.js} +2 -2
  73. package/dist/client/assets/MessagesScreen-Eulveud3.js +1 -0
  74. package/dist/client/assets/{MissionContextRail-Y8QxUZGE.js → MissionContextRail-DrNKXG5u.js} +1 -1
  75. package/dist/client/assets/MissionControlView-ByBlHVN8.js +1 -0
  76. package/dist/client/assets/MissionFocusOverlay-D1i6R6Zt.js +1 -0
  77. package/dist/client/assets/MissionLeftAgentRow-DN9NcCML.js +1 -0
  78. package/dist/client/assets/MissionLogPane-DSeIv3Xo.js +1 -0
  79. package/dist/client/assets/NewAgentModal-V7yK6J6j.js +1 -0
  80. package/dist/client/assets/NewChatComposer-hlWT-nbR.js +19 -0
  81. package/dist/client/assets/{NewChatOrigin-DmuJ32wa.js → NewChatOrigin-DdpzE4kz.js} +1 -1
  82. package/dist/client/assets/ObserveEmbedScreen-l_Q3ts2q.js +2 -0
  83. package/dist/client/assets/ObserveTextFlow-BSEtYTxU.js +2 -0
  84. package/dist/client/assets/ObservedTopologyPanel-CdGUXxGR.js +2 -0
  85. package/dist/client/assets/OpenScoutAppShell-DN8dOSK4.js +79 -0
  86. package/dist/client/assets/OpsAgentsView-ntGr4pz4.js +1 -0
  87. package/dist/client/assets/OpsScreen-Ppen_Lmj.js +1 -0
  88. package/dist/client/assets/OpsSubnav-GAKsoSor.js +1 -0
  89. package/dist/client/assets/ProjectAgentProfile-BLlp2e6t.js +1 -0
  90. package/dist/client/assets/{ProjectAgentProfileBar-BLVg5EeA.js → ProjectAgentProfileBar-BQET-qrY.js} +1 -1
  91. package/dist/client/assets/ProjectAgentProfileHero-Ck8mThtx.js +1 -0
  92. package/dist/client/assets/ProjectsInbox-Dlt8OQ8O.js +2 -0
  93. package/dist/client/assets/ProjectsRail-DCfNMmnW.js +1 -0
  94. package/dist/client/assets/ProjectsScreen-BP-hmI1m.js +1 -0
  95. package/dist/client/assets/ProjectsThreadAside-CWpMjGIH.js +1 -0
  96. package/dist/client/assets/Provider-B2xuo3rf.js +1 -0
  97. package/dist/client/assets/RailRow-B-GycCBx.js +1 -0
  98. package/dist/client/assets/RailRow-B0sRaJc6.css +1 -0
  99. package/dist/client/assets/RawSessionsTable-AQThi6sm.js +1 -0
  100. package/dist/client/assets/RealtimeVoiceScreen-D7zZHK_t.js +1 -0
  101. package/dist/client/assets/{RepoDiffEmbedScreen-BCDXFE3D.js → RepoDiffEmbedScreen-DXWoRF_c.js} +1 -1
  102. package/dist/client/assets/{RepoDiffPageScreen-m62FiWXC.js → RepoDiffPageScreen-D_274ExO.js} +1 -1
  103. package/dist/client/assets/RepoDiffViewer-DbedmHDX.js +7 -0
  104. package/dist/client/assets/RepoDiffViewerLazy-C0--fPtk.js +2 -0
  105. package/dist/client/assets/ReposScreen-D39_YG4H.js +6 -0
  106. package/dist/client/assets/ScoutDeckSurface-CKT3qdqY.js +1 -0
  107. package/dist/client/assets/{ScoutSurface-CkgT7A-c.js → ScoutSurface-UsRy0t-I.js} +1 -1
  108. package/dist/client/assets/{ScoutbotFxLab-D-kV5j4T.js → ScoutbotFxLab-Fmdfboxs.js} +1 -1
  109. package/dist/client/assets/{SecondaryNav-_wyKjwNf.js → SecondaryNav-o2RL9H8H.js} +1 -1
  110. package/dist/client/assets/{SessionEmbedScreen-CJZmIBV7.js → SessionEmbedScreen-RD5XOx7R.js} +1 -1
  111. package/dist/client/assets/{SessionObserve-yYA8Gy5s.js → SessionObserve-Dsd0j05N.js} +9 -9
  112. package/dist/client/assets/{SessionObserveEvidence-cHdjYOJe.js → SessionObserveEvidence-DopQYDkD.js} +1 -1
  113. package/dist/client/assets/SessionRefScreen-B_cTv47v.js +1 -0
  114. package/dist/client/assets/SessionsScreen-Bq0Z77On.js +1 -0
  115. package/dist/client/assets/SettingsDrawer-R8a0TlJD.css +1 -0
  116. package/dist/client/assets/SettingsDrawer-_AwuopMS.js +3 -0
  117. package/dist/client/assets/SettingsScreen-Cw4DDfJP.js +1 -0
  118. package/dist/client/assets/{ShikiPane-dBS9hD-z.js → ShikiPane-BfHc_3pM.js} +1 -1
  119. package/dist/client/assets/{SlidePanel-CH-3-8_2.js → SlidePanel-C-q7XwTa.js} +1 -1
  120. package/dist/client/assets/SpriteAvatar-Bs68ZENy.js +1 -0
  121. package/dist/client/assets/{StatusPill-C8m9ZymF.js → StatusPill-ZZQwxB1a.js} +1 -1
  122. package/dist/client/assets/{TailView-B0BSopPs.js → TailView-Q4FVMsUH.js} +2 -2
  123. package/dist/client/assets/Terminal-D7zqHwHV.js +1 -0
  124. package/dist/client/assets/TerminalEmbedScreen-CXIJ7qv6.js +1 -0
  125. package/dist/client/assets/TerminalHeaderMount-BnBLOPbb.js +1 -0
  126. package/dist/client/assets/{TextDocumentSurface-BWJCGBZf.js → TextDocumentSurface-CKQP-cBT.js} +1 -1
  127. package/dist/client/assets/{TmuxPeek-B4QdHbGm.js → TmuxPeek-V9dGESfO.js} +1 -1
  128. package/dist/client/assets/{VoicePermissionsPanel-Dd4ITJy_.js → VoicePermissionsPanel-k7sbLXx2.js} +1 -1
  129. package/dist/client/assets/WorkDetailScreen-60p9litn.js +5 -0
  130. package/dist/client/assets/WorkFilesViewer-BjJS7GyM.js +1 -0
  131. package/dist/client/assets/{activity-CC8JzJNH.js → activity-Bj3Hnbj3.js} +1 -1
  132. package/dist/client/assets/{addon-fit-CaZ-uLrg.js → addon-fit-BL-NTWRU.js} +1 -1
  133. package/dist/client/assets/{addon-webgl-B8utL3bM.js → addon-webgl-CIMgmNjg.js} +1 -1
  134. package/dist/client/assets/{ScoutbotBroadcastChip-CxtYZWPZ.css → agent-autocomplete-C7xwIcwd.css} +1 -1
  135. package/dist/client/assets/agent-autocomplete-DXlvdc4b.js +10 -0
  136. package/dist/client/assets/{agent-essentials-B3wcxg_v.js → agent-essentials-BOMHR0_U.js} +1 -1
  137. package/dist/client/assets/{agent-lane-card-model-q4cwzLX4.js → agent-lane-card-model-CTLxf3R4.js} +1 -1
  138. package/dist/client/assets/agent-lane-detail-ppJId6Jc.js +2 -0
  139. package/dist/client/assets/{agent-lane-preview-C33Dwpn7.js → agent-lane-preview-BhplDYGf.js} +1 -1
  140. package/dist/client/assets/{agent-lanes-BDNktFBZ.css → agent-lanes-DlqcEf0l.css} +1 -1
  141. package/dist/client/assets/{agent-lanes-model-VYQ5a68i.js → agent-lanes-model-AfrjRNK5.js} +2 -2
  142. package/dist/client/assets/agent-specialization-BIPIBW8u.js +1 -0
  143. package/dist/client/assets/api-Co9aQ2Jw.js +1 -0
  144. package/dist/client/assets/{api-BkjHJfgJ.js → api-HFH8wFyb.js} +1 -1
  145. package/dist/client/assets/{arc.es-uFv9UrHn.js → arc.es-IR5r6sj_.js} +1 -1
  146. package/dist/client/assets/archive-BjcGiAy8.js +1 -0
  147. package/dist/client/assets/{arrow-down-w1HPzDSE.js → arrow-down-BydciYFZ.js} +1 -1
  148. package/dist/client/assets/{arrow-left-B-3GJ7ct.js → arrow-left-CghA0kTw.js} +1 -1
  149. package/dist/client/assets/arrow-right-iJFv3jNh.js +1 -0
  150. package/dist/client/assets/{arrow-up-right-G6bJXxhK.js → arrow-up-right-CCfZXPqD.js} +1 -1
  151. package/dist/client/assets/{bot-DzCOGKi6.js → bot-B5sub1-i.js} +1 -1
  152. package/dist/client/assets/broker-display-Q75fupqG.js +2 -0
  153. package/dist/client/assets/{cache-Dr0why2k.js → cache-CeWH_KzJ.js} +1 -1
  154. package/dist/client/assets/{check-BX8nRgop.js → check-C18YQC90.js} +1 -1
  155. package/dist/client/assets/{chevron-down-B3VVRJcV.js → chevron-down-Mp9mu_yd.js} +1 -1
  156. package/dist/client/assets/{chevron-right-BYMV1511.js → chevron-right-CzH-TaSF.js} +1 -1
  157. package/dist/client/assets/{chunk-HRAB3GC3-dRd2eQMJ.js → chunk-HRAB3GC3-swV8PA2k.js} +1 -1
  158. package/dist/client/assets/{chunk-JTPDIGGW-BjX67kHU.js → chunk-JTPDIGGW-BKXqcLKw.js} +3 -3
  159. package/dist/client/assets/{chunk-T65CQEWV-kP6nJjkU.js → chunk-T65CQEWV-vYbNJ8E6.js} +1 -1
  160. package/dist/client/assets/{chunk-YOZR3KYS-C13bZPVd.js → chunk-YOZR3KYS-U65yUmqt.js} +1 -1
  161. package/dist/client/assets/{clock-B9ukVaVn.js → clock-B4PTFi5m.js} +1 -1
  162. package/dist/client/assets/{code-xml-BFc3TMSm.js → code-xml-Jtxsp5d1.js} +1 -1
  163. package/dist/client/assets/collapsed-strip-raJWthAH.css +1 -0
  164. package/dist/client/assets/compass-0_54-vz3.js +1 -0
  165. package/dist/client/assets/content-6RvWTrtk.js +1 -0
  166. package/dist/client/assets/content-BCgwMUqz.js +1 -0
  167. package/dist/client/assets/content-Bf2VLhx0.js +1 -0
  168. package/dist/client/assets/content-BrU_38-m.js +1 -0
  169. package/dist/client/assets/content-BvvJN8rN.js +1 -0
  170. package/dist/client/assets/content-CAeEqYPw.js +1 -0
  171. package/dist/client/assets/content-CHghn-rT.js +1 -0
  172. package/dist/client/assets/{content-Uqt8AG-s.css → content-CINHz-rZ.css} +1 -1
  173. package/dist/client/assets/content-CI_Z9DXk.js +1 -0
  174. package/dist/client/assets/content-CbyKONhW.js +1 -0
  175. package/dist/client/assets/content-Czogvp43.js +1 -0
  176. package/dist/client/assets/content-DFk0zNzX.js +1 -0
  177. package/dist/client/assets/content-DHe4DgkA.js +1 -0
  178. package/dist/client/assets/content-DMbawvqU.js +1 -0
  179. package/dist/client/assets/content-DTz7cKjo.js +1 -0
  180. package/dist/client/assets/content-E3kudY-W.js +1 -0
  181. package/dist/client/assets/content-LpO0aO_U.js +1 -0
  182. package/dist/client/assets/{conversation-icons-gpsv650H.js → conversation-icons-BV10B2Me.js} +1 -1
  183. package/dist/client/assets/conversation-model-CwF6Y9gx.js +1 -0
  184. package/dist/client/assets/conversation-motion-features-BKkCRaWR.js +1 -0
  185. package/dist/client/assets/{copy-BFmOcWof.js → copy-Dtpx4FOE.js} +1 -1
  186. package/dist/client/assets/cpu-BjVis9mc.js +1 -0
  187. package/dist/client/assets/{createLucideIcon-CFBn0Sdk.js → createLucideIcon-DXpqZP7I.js} +1 -1
  188. package/dist/client/assets/credentials-BTce3VP1.js +1 -0
  189. package/dist/client/assets/ctx-panel-D_HJ3nhb.css +1 -0
  190. package/dist/client/assets/discover-CHbrEItO.js +2 -0
  191. package/dist/client/assets/embed-entry-vil28MyU.js +2 -0
  192. package/dist/client/assets/{external-link-B1TI5yIt.js → external-link-Ckiyzjwo.js} +1 -1
  193. package/dist/client/assets/{eye-1J4yOUoG.js → eye-CpfyvdLq.js} +1 -1
  194. package/dist/client/assets/file-code-corner-7mo7EviR.js +1 -0
  195. package/dist/client/assets/{file-text-DcYSrI4v.js → file-text-KijGBnME.js} +1 -1
  196. package/dist/client/assets/gauge-y-Xg8Mrv.js +1 -0
  197. package/dist/client/assets/gestures-Bq9XnSqY.js +1 -0
  198. package/dist/client/assets/git-branch-BQ_x8KZL.js +1 -0
  199. package/dist/client/assets/harnesses-screen-2z36fJKE.css +1 -0
  200. package/dist/client/assets/home-moving-signal-DMguaRWR.css +1 -0
  201. package/dist/client/assets/home-moving-signal-DtRpiNa0.js +1 -0
  202. package/dist/client/assets/home-now-card-DFb4GOgM.js +1 -0
  203. package/dist/client/assets/{home-now-card-nano-y1EhBvVL.js → home-now-card-nano-D--m9jpq.js} +1 -1
  204. package/dist/client/assets/hooks-9d1SoaQA.js +2 -0
  205. package/dist/client/assets/host-advisor-B2Fqs5Dd.css +1 -0
  206. package/dist/client/assets/index-BVlMw8x_.js +1 -0
  207. package/dist/client/assets/index-CZ-05hKz.js +10 -0
  208. package/dist/client/assets/index-Cn0GR-q1.js +1 -0
  209. package/dist/client/assets/index-DosI4AG9.js +1 -0
  210. package/dist/client/assets/index-i7TMxlwW.css +1 -0
  211. package/dist/client/assets/index-wLwc74Pu.css +1 -0
  212. package/dist/client/assets/inspector-panel-C-EhEDYy.js +2 -0
  213. package/dist/client/assets/{keyboard-nav-h1IdakpD.js → keyboard-nav-DFhAJkW3.js} +1 -1
  214. package/dist/client/assets/{lane-observe-BA3g9aVd.js → lane-observe-vfyACHi0.js} +1 -1
  215. package/dist/client/assets/{lane-roster-store-71vFgAem.js → lane-roster-store-gUBsydNf.js} +1 -1
  216. package/dist/client/assets/layers-CGou-LwV.js +1 -0
  217. package/dist/client/assets/layout-grid-BrZt31QH.js +1 -0
  218. package/dist/client/assets/left-B_o51JV6.js +1 -0
  219. package/dist/client/assets/left-BpgWnaah.js +1 -0
  220. package/dist/client/assets/left-CwHZCGO3.js +2 -0
  221. package/dist/client/assets/left-CwLs0okF.js +1 -0
  222. package/dist/client/assets/left-Cx0kv6pe.js +1 -0
  223. package/dist/client/assets/left-DA0amyfu.js +1 -0
  224. package/dist/client/assets/left-DH44V4I_.css +1 -0
  225. package/dist/client/assets/left-R2OOE7VG.css +1 -0
  226. package/dist/client/assets/left-advisor-DU3s01gk.js +1 -0
  227. package/dist/client/assets/left-agents-qL5PpUY-.js +1 -0
  228. package/dist/client/assets/left-default-uvuvDmt0.js +1 -0
  229. package/dist/client/assets/left-lanes-DnNLgec8.js +1 -0
  230. package/dist/client/assets/left-mission-DN3-NLPC.js +1 -0
  231. package/dist/client/assets/left-z-6CkuBe.js +2 -0
  232. package/dist/client/assets/library-DIo5NiGP.js +1 -0
  233. package/dist/client/assets/{loader-circle-d6PKL_KD.js → loader-circle-BiohlpM3.js} +1 -1
  234. package/dist/client/assets/{local-agents-B5pq17tZ.js → local-agents-wUIaBcEr.js} +1 -1
  235. package/dist/client/assets/{mentions-agCGDgyA.js → mentions-CcPFMbmZ.js} +1 -1
  236. package/dist/client/assets/mesh-buckets-ByyFXdKT.js +1 -0
  237. package/dist/client/assets/{mesh-ops-5pZCYptW.js → mesh-ops-CvGyjK84.js} +1 -1
  238. package/dist/client/assets/mesh-roster-n2nDpEmA.js +1 -0
  239. package/dist/client/assets/{mesh-screen-BSDUjrnV.css → mesh-screen-D1Yvo8fU.css} +1 -1
  240. package/dist/client/assets/{mesh-view-store-KJzABIkN.js → mesh-view-store-BpxGm71b.js} +1 -1
  241. package/dist/client/assets/{message-circle-CJO-pi7b.js → message-circle-B2ddzBrX.js} +1 -1
  242. package/dist/client/assets/{message-markup-CyRDLdOn.js → message-markup-RkfmDfME.js} +1 -1
  243. package/dist/client/assets/{message-square-D1hMsMj_.js → message-square-D9YYWE0x.js} +1 -1
  244. package/dist/client/assets/message-visibility-DwxgcgYK.js +1 -0
  245. package/dist/client/assets/mission-control-CnU7dNt1.css +1 -0
  246. package/dist/client/assets/{mission-control-store-Ce6dOvnZ.js → mission-control-store-Bf4b54MV.js} +1 -1
  247. package/dist/client/assets/{observe-BSWVM8YA.js → observe-CJRIvOCn.js} +1 -1
  248. package/dist/client/assets/{operator-attention-BwSPeheT.js → operator-attention-RqieiSY8.js} +1 -1
  249. package/dist/client/assets/{page-status-D2FQLJOX.js → page-status-BptpTdQ-.js} +1 -1
  250. package/dist/client/assets/{paperclip-iZmDMOS5.js → paperclip-B1UNGl5d.js} +1 -1
  251. package/dist/client/assets/perf-PX8Rx0EP.js +1 -0
  252. package/dist/client/assets/persistent-state-YI-WHSCF.js +1 -0
  253. package/dist/client/assets/{plus-gZ0T0eBI.js → plus-CuU_X0-8.js} +1 -1
  254. package/dist/client/assets/profile-rY8jO38P.js +1 -0
  255. package/dist/client/assets/projects-inbox-BBs1hG13.css +1 -0
  256. package/dist/client/assets/projects-inbox-D-zAb9Gp.js +1 -0
  257. package/dist/client/assets/proxy-DnLpZIi9.js +1 -0
  258. package/dist/client/assets/{radio-RMLfV4EO.js → radio-Dm1ItnA4.js} +1 -1
  259. package/dist/client/assets/{refresh-cw-C4x1x6b_.js → refresh-cw-BRn9Oxxl.js} +1 -1
  260. package/dist/client/assets/resolve-panes-DO6LkwhQ.js +1 -0
  261. package/dist/client/assets/resolve-sidebar-context-CIF288wY.js +1 -0
  262. package/dist/client/assets/right-BJltPRnd.js +1 -0
  263. package/dist/client/assets/right-BbyYdzHn.js +1 -0
  264. package/dist/client/assets/right-Beh3nCUB.js +1 -0
  265. package/dist/client/assets/right-C1yumXNx.js +1 -0
  266. package/dist/client/assets/{right-D-k9Z1Fe.js → right-CJnB_Bg7.js} +2 -2
  267. package/dist/client/assets/right-CPP7GyOm.js +1 -0
  268. package/dist/client/assets/right-D3aTKf1F.js +1 -0
  269. package/dist/client/assets/right-DI1B79nR.js +1 -0
  270. package/dist/client/assets/right-DtsRNX5b.js +1 -0
  271. package/dist/client/assets/right-Shpw_xDy.js +1 -0
  272. package/dist/client/assets/{rocket-CMM-IdLy.js → rocket-DOwXHKWA.js} +1 -1
  273. package/dist/client/assets/router-DJj2WbDg.js +1 -0
  274. package/dist/client/assets/{scope-views-BIfMTXU4.js → scope-views-A4_vP97W.js} +1 -1
  275. package/dist/client/assets/scout-voice-BhPzrc6P.js +1 -0
  276. package/dist/client/assets/{scoutbot-BTIErYHo.js → scoutbot-BJIamJOH.js} +2 -2
  277. package/dist/client/assets/scoutbot-markdown-jh7tzFB1.js +6 -0
  278. package/dist/client/assets/{scroll-text-DPPYrqB9.js → scroll-text-DO0GQzvN.js} +1 -1
  279. package/dist/client/assets/{search-DAyagUtF.js → search-D1tJSAWe.js} +1 -1
  280. package/dist/client/assets/secondaryNavConfig-B9IF8wXl.js +1 -0
  281. package/dist/client/assets/{selection-bridge-BXw09aRF.js → selection-bridge-i2S9zpf8.js} +1 -1
  282. package/dist/client/assets/{send-horizontal-IcG46D2M.js → send-horizontal-CgLppsIC.js} +1 -1
  283. package/dist/client/assets/{server-BySujhDV.js → server-Dymv5Emh.js} +1 -1
  284. package/dist/client/assets/{session-catalog-ClS9xf6i.js → session-catalog-DNaOEzoQ.js} +1 -1
  285. package/dist/client/assets/{session-table-BdpHs1GN.js → session-table-PTQVoTyc.js} +1 -1
  286. package/dist/client/assets/settings-2fC_G9nX.js +1 -0
  287. package/dist/client/assets/{sliders-horizontal-R5pWUUcH.js → sliders-horizontal-BPSMHhbm.js} +1 -1
  288. package/dist/client/assets/{sparkles-DJOBD_8l.js → sparkles-Dy8p5xN8.js} +1 -1
  289. package/dist/client/assets/sse-CiOSzE5n.js +1 -0
  290. package/dist/client/assets/system-surfaces-redesign-QVXNeGYw.css +1 -0
  291. package/dist/client/assets/{tail-display-BRcJltQa.js → tail-display-DcliDVkW.js} +1 -1
  292. package/dist/client/assets/{tail-events-BdvqZHLr.js → tail-events-BMQmSx1n.js} +1 -1
  293. package/dist/client/assets/{terminal-relay-TffuSPGs.js → terminal-relay-9lhzEp2V.js} +1 -1
  294. package/dist/client/assets/terminal-screen-BLk4PAYt.css +1 -0
  295. package/dist/client/assets/terminal-sessions-BQ6t92tJ.js +1 -0
  296. package/dist/client/assets/{terminal-takeover-BOFPRPjR.js → terminal-takeover-DANQfTcy.js} +1 -1
  297. package/dist/client/assets/{terminal-DJPUp_Qn.js → terminal-yN9xN-h9.js} +1 -1
  298. package/dist/client/assets/{runtime-picker--IW3cRry.js → text-CnZ0e1-V.js} +1 -1
  299. package/dist/client/assets/text-rLpBg4_z.css +1 -0
  300. package/dist/client/assets/use-conversation-list-D9BNLfnW.js +1 -0
  301. package/dist/client/assets/{use-fleet-active-asks-BHzeBZSW.js → use-fleet-active-asks-BeAdcl09.js} +1 -1
  302. package/dist/client/assets/{use-mesh-ops-items-KmaauBr_.js → use-mesh-ops-items-BIvIHlqe.js} +1 -1
  303. package/dist/client/assets/use-reduced-motion-CKkhq9c5.js +1 -0
  304. package/dist/client/assets/{use-scout-dev-flags-BJbw87PK.js → use-scout-dev-flags-B2KCzPxn.js} +1 -1
  305. package/dist/client/assets/{useAgentHoverCard-C6o0tlat.js → useAgentHoverCard-CHBsxcbp.js} +1 -1
  306. package/dist/client/assets/useContentSecondaryNav-D0mUhxTF.js +1 -0
  307. package/dist/client/assets/{usePierreRuntime-Cm7-qdm0.js → usePierreRuntime-DUuXH5yp.js} +1 -1
  308. package/dist/client/assets/{wrench-CvRjjByE.js → wrench-YcXMlsh2.js} +1 -1
  309. package/dist/client/assets/{x-C8ayPBtj.js → x-e3h2hDsp.js} +1 -1
  310. package/dist/client/assets/{xterm-B0ci4Q9a.js → xterm-Byp1Hep_.js} +1 -1
  311. package/dist/client/assets/zap-nMcjPoWB.js +1 -0
  312. package/dist/client/favicon-16.png +0 -0
  313. package/dist/client/favicon-32.png +0 -0
  314. package/dist/client/favicon.ico +0 -0
  315. package/dist/client/favicon.svg +20 -47
  316. package/dist/client/index.html +5 -5
  317. package/dist/client/openscout-icon.png +0 -0
  318. package/dist/client/site.webmanifest +2 -2
  319. package/dist/client/web-app-icon-192.png +0 -0
  320. package/dist/client/web-app-icon-512.png +0 -0
  321. package/dist/main.mjs +20095 -78203
  322. package/dist/node/main.mjs +322 -252
  323. package/dist/pairing-runtime-controller.mjs +1032 -804
  324. package/dist/runtime/base-daemon.mjs +49 -121
  325. package/dist/runtime/broker-daemon.mjs +1105 -281
  326. package/dist/runtime/broker-process-manager.mjs +6 -0
  327. package/dist/runtime/mesh-discover.mjs +6 -0
  328. package/dist/scout-control-plane-web.mjs +3326 -1912
  329. package/package.json +27 -5
  330. package/dist/client/assets/ActivityScreen-DkUP7V7M.js +0 -1
  331. package/dist/client/assets/AgentAvatar-D8ZtMluU.js +0 -1
  332. package/dist/client/assets/AgentConfigurationScreen-BlGI6fuM.js +0 -1
  333. package/dist/client/assets/AgentDefinitionsWorkspace-CfaDVCVt.js +0 -1
  334. package/dist/client/assets/AgentFloorView-DjNLILLt.js +0 -1
  335. package/dist/client/assets/AgentInfoScreen-DG5dlHb_.js +0 -1
  336. package/dist/client/assets/AgentLaneDetailSheet-BzYzBfcW.js +0 -4
  337. package/dist/client/assets/AgentLanesEmbedScreen-Crxx1srt.js +0 -1
  338. package/dist/client/assets/AgentLanesView-ChNlmY-F.js +0 -2
  339. package/dist/client/assets/AgentSessions-DpY0htZV.js +0 -6
  340. package/dist/client/assets/AgentsConsole-CHyXrjhm.js +0 -1
  341. package/dist/client/assets/AgentsScreen-BhCjX2lD.js +0 -1
  342. package/dist/client/assets/AgentsSubnav-az_VDkri.js +0 -1
  343. package/dist/client/assets/AtopView-BjjPM8OX.js +0 -1
  344. package/dist/client/assets/BriefingDetailScreen-B7qJ90Np.js +0 -6
  345. package/dist/client/assets/BriefingsScreen-CW6N829d.js +0 -1
  346. package/dist/client/assets/BrokerScreen-X3z50712.js +0 -5
  347. package/dist/client/assets/ChatCollapsedStrip-DNR9osDy.js +0 -1
  348. package/dist/client/assets/CodeScreen-CIKK1LcZ.js +0 -1
  349. package/dist/client/assets/ContextMenu-CHIuVKz7.js +0 -1
  350. package/dist/client/assets/ConversationComposer-Bf7Ga_49.js +0 -1
  351. package/dist/client/assets/ConversationFeedRows-Cm1Lgo43.js +0 -1
  352. package/dist/client/assets/ConversationHeader-B_GXrKR0.js +0 -1
  353. package/dist/client/assets/ConversationPanels-BTBbEvrP.js +0 -2
  354. package/dist/client/assets/ConversationScreen-B3l2m3JI.js +0 -1
  355. package/dist/client/assets/ConversationScreen-yIKEsm-8.css +0 -1
  356. package/dist/client/assets/ConversationStatus-BqhUHD85.js +0 -1
  357. package/dist/client/assets/DispatchAftermath-BDA9CrOd.js +0 -1
  358. package/dist/client/assets/DocumentFocusViewer-B9vodVmG.js +0 -1
  359. package/dist/client/assets/FleetSearch-Bj9SCl2f.js +0 -1
  360. package/dist/client/assets/FleetSearch-EXOe8ulE.css +0 -1
  361. package/dist/client/assets/FlightObserveScreen-BVMdsiCC.js +0 -1
  362. package/dist/client/assets/FollowScreen-BifwHWOV.js +0 -1
  363. package/dist/client/assets/HarnessesScreen-fMnbnrD4.js +0 -1
  364. package/dist/client/assets/HomeHero-BgM6S39l.js +0 -1
  365. package/dist/client/assets/HomeHero-DEl-WBsT.css +0 -1
  366. package/dist/client/assets/KnowledgeSearchScreen-Ch_WENUC.js +0 -1
  367. package/dist/client/assets/LaneTraceDetailSheet-H3AnN-vN.js +0 -1
  368. package/dist/client/assets/MeshScreen-48QkJSDI.js +0 -1
  369. package/dist/client/assets/MessageComposerSuggestions-FdVHnT_q.js +0 -1
  370. package/dist/client/assets/MessagesScreen-BMOOfbWX.js +0 -1
  371. package/dist/client/assets/MissionControlView-BpsHKu1F.js +0 -1
  372. package/dist/client/assets/MissionFocusOverlay-BPnAEA3F.js +0 -1
  373. package/dist/client/assets/MissionLeftAgentRow-iOZ6ds9L.js +0 -1
  374. package/dist/client/assets/MissionLogPane-B0csI89E.js +0 -1
  375. package/dist/client/assets/NewAgentModal-DBHJR9Qm.js +0 -1
  376. package/dist/client/assets/NewChatComposer-Hd7pI5Ac.js +0 -19
  377. package/dist/client/assets/ObserveEmbedScreen-DyArn7Id.js +0 -2
  378. package/dist/client/assets/ObserveTextFlow-CkMrtT8s.js +0 -2
  379. package/dist/client/assets/ObservedTopologyPanel-CaSZZP05.js +0 -2
  380. package/dist/client/assets/OpenScoutAppShell-BtlKkiuF.js +0 -87
  381. package/dist/client/assets/OpsAgentsView-CnqrwbC2.js +0 -1
  382. package/dist/client/assets/OpsScreen-DOlmlVkP.js +0 -1
  383. package/dist/client/assets/OpsSubnav-Dj3ShAKv.js +0 -1
  384. package/dist/client/assets/PlanView-BLGdWDx6.js +0 -1
  385. package/dist/client/assets/ProjectAgentProfile-Dv1sVnQl.js +0 -1
  386. package/dist/client/assets/ProjectAgentProfileHero-0-GDhsPT.js +0 -1
  387. package/dist/client/assets/ProjectsInbox-B3DpAI5b.js +0 -2
  388. package/dist/client/assets/ProjectsRail-BDl7U9Jq.js +0 -1
  389. package/dist/client/assets/ProjectsScreen-Dl2FcGrR.js +0 -1
  390. package/dist/client/assets/ProjectsThreadAside-BcGC5mHE.js +0 -1
  391. package/dist/client/assets/Provider-cJCdHAxu.js +0 -1
  392. package/dist/client/assets/RailRow-CLcVmywd.js +0 -1
  393. package/dist/client/assets/RailRow-Cf9LOiEj.css +0 -1
  394. package/dist/client/assets/RawSessionsTable-DBto4Ts-.js +0 -1
  395. package/dist/client/assets/RealtimeVoiceScreen-DXEU5v3g.js +0 -1
  396. package/dist/client/assets/RepoDiffViewer-PaNeZMhJ.js +0 -7
  397. package/dist/client/assets/RepoDiffViewerLazy-CWE5GxMP.js +0 -2
  398. package/dist/client/assets/ReposScreen-Cksv1cAD.js +0 -6
  399. package/dist/client/assets/ScoutDeckSurface-BCjPl7C4.js +0 -1
  400. package/dist/client/assets/ScoutbotBroadcastChip-DkiRCHuK.js +0 -2
  401. package/dist/client/assets/ScoutbotRealtimeVoiceCall-1ixiEn1L.js +0 -1
  402. package/dist/client/assets/SessionRefScreen-OkTY7Szg.js +0 -1
  403. package/dist/client/assets/SessionsScreen-B-GFjxIA.js +0 -1
  404. package/dist/client/assets/SettingsDrawer-Co11RFX0.js +0 -3
  405. package/dist/client/assets/SettingsDrawer-UX7pFJU_.css +0 -1
  406. package/dist/client/assets/SettingsScreen-Cn09nq5_.js +0 -1
  407. package/dist/client/assets/SpriteAvatar-DS6Tmyua.js +0 -1
  408. package/dist/client/assets/Terminal-U8gjIdm3.js +0 -1
  409. package/dist/client/assets/TerminalEmbedScreen-CTmdE7us.js +0 -1
  410. package/dist/client/assets/WorkDetailScreen-mJs0mb99.js +0 -5
  411. package/dist/client/assets/WorkFilesViewer-ODzLXKxj.js +0 -1
  412. package/dist/client/assets/agent-identity-BxCsXnDp.js +0 -1
  413. package/dist/client/assets/agent-lane-detail-BNNm6FNu.js +0 -2
  414. package/dist/client/assets/api-h5zurxmi.js +0 -1
  415. package/dist/client/assets/broker-display-pp33bLsu.js +0 -2
  416. package/dist/client/assets/collapsed-strip-Dz-of2SM.css +0 -1
  417. package/dist/client/assets/content-B8gahuBy.js +0 -1
  418. package/dist/client/assets/content-BIqX06OQ.js +0 -1
  419. package/dist/client/assets/content-BKDZ6Fxe.js +0 -1
  420. package/dist/client/assets/content-C15Ya-iu.js +0 -1
  421. package/dist/client/assets/content-CDE9tJDF.js +0 -1
  422. package/dist/client/assets/content-CSAfI-PX.js +0 -1
  423. package/dist/client/assets/content-CTF9D60D.js +0 -1
  424. package/dist/client/assets/content-CbAGkYQO.js +0 -1
  425. package/dist/client/assets/content-CtqLJOVp.js +0 -1
  426. package/dist/client/assets/content-Dvs1KRfo.js +0 -1
  427. package/dist/client/assets/content-DyJdVZjI.js +0 -1
  428. package/dist/client/assets/content-Ji7ATaf7.js +0 -1
  429. package/dist/client/assets/content-eqZXKWcP.js +0 -1
  430. package/dist/client/assets/content-iyyQKwvA.js +0 -1
  431. package/dist/client/assets/content-pDE7Fpb9.js +0 -1
  432. package/dist/client/assets/content-pPSd2dua.js +0 -1
  433. package/dist/client/assets/conversation-model-CHwHZNw-.js +0 -1
  434. package/dist/client/assets/conversation-motion-features-DXtKlmuM.js +0 -1
  435. package/dist/client/assets/ctx-panel-B4s49N9e.css +0 -1
  436. package/dist/client/assets/discover-DKf0aTr_.js +0 -2
  437. package/dist/client/assets/embed-entry-RlQUTtc4.js +0 -2
  438. package/dist/client/assets/gestures-CcEOV6Sr.js +0 -1
  439. package/dist/client/assets/harnesses-screen-DBZoTZz8.css +0 -1
  440. package/dist/client/assets/home-moving-signal-Bh2FugbH.js +0 -1
  441. package/dist/client/assets/home-moving-signal-CAa0V91u.css +0 -1
  442. package/dist/client/assets/home-now-card-ByRH5fFx.js +0 -1
  443. package/dist/client/assets/hooks-DUZwL3Aq.js +0 -2
  444. package/dist/client/assets/index-BBznYVWk.css +0 -1
  445. package/dist/client/assets/index-BTuq-8Iv.js +0 -1
  446. package/dist/client/assets/index-CmwGCxUk.js +0 -1
  447. package/dist/client/assets/index-CvF09yvf.css +0 -1
  448. package/dist/client/assets/index-DmFAhGPj.js +0 -10
  449. package/dist/client/assets/index-Dtaswdsh.js +0 -1
  450. package/dist/client/assets/inspector-panel-DzgS5_Mv.js +0 -2
  451. package/dist/client/assets/left-8NITBvFX.js +0 -1
  452. package/dist/client/assets/left-B2HEqrTM.js +0 -2
  453. package/dist/client/assets/left-Bk3XnxPD.css +0 -1
  454. package/dist/client/assets/left-CCoobxPS.css +0 -1
  455. package/dist/client/assets/left-CTYUvXbe.js +0 -1
  456. package/dist/client/assets/left-CwDRT50z.js +0 -2
  457. package/dist/client/assets/left-CxlDLJlw.js +0 -1
  458. package/dist/client/assets/left-XFXxNd4g.js +0 -1
  459. package/dist/client/assets/left-agents-Ck4Xn-R8.js +0 -1
  460. package/dist/client/assets/left-default-BeOyS0bR.js +0 -1
  461. package/dist/client/assets/left-lanes-DZp3jJMo.js +0 -1
  462. package/dist/client/assets/left-mission-CuKFQ5xL.js +0 -1
  463. package/dist/client/assets/left-p1hkO6P0.js +0 -1
  464. package/dist/client/assets/left-plan-3rrFENhp.js +0 -2
  465. package/dist/client/assets/library-E--gKzEZ.js +0 -1
  466. package/dist/client/assets/mesh-buckets-CfAukILK.js +0 -1
  467. package/dist/client/assets/message-visibility-kJM8XcSG.js +0 -1
  468. package/dist/client/assets/mission-control-m3BTDQ9l.css +0 -1
  469. package/dist/client/assets/model-Co0zkMIc.js +0 -1
  470. package/dist/client/assets/plan-view-D56fneVF.css +0 -1
  471. package/dist/client/assets/profile-Dxj3VVOM.js +0 -1
  472. package/dist/client/assets/projects-inbox-COZ23dLR.css +0 -1
  473. package/dist/client/assets/projects-inbox-Dzt_GQDv.js +0 -1
  474. package/dist/client/assets/resolve-panes-C9gF0w4e.js +0 -1
  475. package/dist/client/assets/resolve-sidebar-context-DxbY5RCH.js +0 -1
  476. package/dist/client/assets/right-5L7Tn0zG.js +0 -1
  477. package/dist/client/assets/right-CYtkMmRu.js +0 -1
  478. package/dist/client/assets/right-CreoQzPP.js +0 -1
  479. package/dist/client/assets/right-D9xFfy2b.js +0 -1
  480. package/dist/client/assets/right-DI7zHADe.js +0 -1
  481. package/dist/client/assets/right-DUbJ3WVc.js +0 -1
  482. package/dist/client/assets/right-DiybhsiK.js +0 -1
  483. package/dist/client/assets/right-Jh_1Q88s.js +0 -1
  484. package/dist/client/assets/right-udr1qTJG.js +0 -1
  485. package/dist/client/assets/router-Cn_s9IGH.js +0 -1
  486. package/dist/client/assets/runtime-picker-vhm0gtLs.css +0 -1
  487. package/dist/client/assets/scout-voice-CwbOz6EN.js +0 -1
  488. package/dist/client/assets/secondaryNavConfig-Dw3gS1jR.js +0 -1
  489. package/dist/client/assets/sse-CxXt4tqI.js +0 -1
  490. package/dist/client/assets/system-surfaces-redesign-B7GQhfpw.css +0 -1
  491. package/dist/client/assets/terminal-screen-BqVnCwl0.css +0 -1
  492. package/dist/client/assets/terminal-sessions-AmSgHklm.js +0 -1
  493. package/dist/client/assets/text-DsBWV_4k.js +0 -1
  494. package/dist/client/assets/use-conversation-list-C-dPcjQe.js +0 -1
  495. package/dist/client/assets/use-reduced-motion-CYqhYqHO.js +0 -1
  496. package/dist/client/assets/useContentSecondaryNav-DjHBrgnS.js +0 -1
  497. package/dist/highlights-eq9cgrbb.scm +0 -604
  498. package/dist/highlights-ghv9g403.scm +0 -205
  499. package/dist/highlights-hk7bwhj4.scm +0 -284
  500. package/dist/highlights-r812a2qc.scm +0 -150
  501. package/dist/highlights-x6tmsnaa.scm +0 -115
  502. package/dist/injections-73j83es3.scm +0 -27
  503. package/dist/tree-sitter-javascript-nd0q4pe9.wasm +0 -0
  504. package/dist/tree-sitter-markdown-411r6y9b.wasm +0 -0
  505. package/dist/tree-sitter-markdown_inline-j5349f42.wasm +0 -0
  506. package/dist/tree-sitter-typescript-zxjzwt75.wasm +0 -0
  507. package/dist/tree-sitter-zig-e78zbjpm.wasm +0 -0
  508. /package/dist/client/assets/{document-focus-viewer-BSC_JwVE.css → DocumentFocusViewer-BSC_JwVE.css} +0 -0
@@ -1 +1 @@
1
- import{i as f}from"./index-DmFAhGPj.js";function g(o,s){for(var r=0;r<s.length;r++){const t=s[r];if(typeof t!="string"&&!Array.isArray(t)){for(const e in t)if(e!=="default"&&!(e in o)){const i=Object.getOwnPropertyDescriptor(t,e);i&&Object.defineProperty(o,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var a={exports:{}},d;function _(){return d||(d=1,(function(o,s){(function(r,t){o.exports=t()})(globalThis,(()=>(()=>{var r={};return(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.FitAddon=void 0,t.FitAddon=class{activate(e){this._terminal=e}dispose(){}fit(){const e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;const i=this._terminal._core;this._terminal.rows===e.rows&&this._terminal.cols===e.cols||(i._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;const i=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,l=window.getComputedStyle(this._terminal.element.parentElement),c=parseInt(l.getPropertyValue("height")),m=Math.max(0,parseInt(l.getPropertyValue("width"))),n=window.getComputedStyle(this._terminal.element),u=c-(parseInt(n.getPropertyValue("padding-top"))+parseInt(n.getPropertyValue("padding-bottom"))),h=m-(parseInt(n.getPropertyValue("padding-right"))+parseInt(n.getPropertyValue("padding-left")))-i;return{cols:Math.max(2,Math.floor(h/e.css.cell.width)),rows:Math.max(1,Math.floor(u/e.css.cell.height))}}}})(),r})()))})(a)),a.exports}var p=_();const y=f(p),v=g({__proto__:null,default:y},[p]);export{v as a};
1
+ import{z as f}from"./index-CZ-05hKz.js";function g(o,s){for(var r=0;r<s.length;r++){const t=s[r];if(typeof t!="string"&&!Array.isArray(t)){for(const e in t)if(e!=="default"&&!(e in o)){const i=Object.getOwnPropertyDescriptor(t,e);i&&Object.defineProperty(o,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}}return Object.freeze(Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}))}var a={exports:{}},d;function _(){return d||(d=1,(function(o,s){(function(r,t){o.exports=t()})(globalThis,(()=>(()=>{var r={};return(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.FitAddon=void 0,t.FitAddon=class{activate(e){this._terminal=e}dispose(){}fit(){const e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;const i=this._terminal._core;this._terminal.rows===e.rows&&this._terminal.cols===e.cols||(i._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;const i=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,l=window.getComputedStyle(this._terminal.element.parentElement),c=parseInt(l.getPropertyValue("height")),m=Math.max(0,parseInt(l.getPropertyValue("width"))),n=window.getComputedStyle(this._terminal.element),u=c-(parseInt(n.getPropertyValue("padding-top"))+parseInt(n.getPropertyValue("padding-bottom"))),h=m-(parseInt(n.getPropertyValue("padding-right"))+parseInt(n.getPropertyValue("padding-left")))-i;return{cols:Math.max(2,Math.floor(h/e.css.cell.width)),rows:Math.max(1,Math.floor(u/e.css.cell.height))}}}})(),r})()))})(a)),a.exports}var p=_();const y=f(p),v=g({__proto__:null,default:y},[p]);export{v as a};
@@ -1,4 +1,4 @@
1
- import{i as We}from"./index-DmFAhGPj.js";function Ke(Ie,ke){for(var Se=0;Se<ke.length;Se++){const Ee=ke[Se];if(typeof Ee!="string"&&!Array.isArray(Ee)){for(const ge in Ee)if(ge!=="default"&&!(ge in Ie)){const De=Object.getOwnPropertyDescriptor(Ee,ge);De&&Object.defineProperty(Ie,ge,De.get?De:{enumerable:!0,get:()=>Ee[ge]})}}}return Object.freeze(Object.defineProperty(Ie,Symbol.toStringTag,{value:"Module"}))}var Ne={exports:{}},Fe;function He(){return Fe||(Fe=1,(function(Ie,ke){(function(Se,Ee){Ie.exports=Ee()})(globalThis,(()=>(()=>{var Se={6864:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CellColorResolver=void 0;const i=v(1564),f=v(7993),h=v(4959);let C,b=0,_=0,o=!1,r=!1,p=!1,E=0;e.CellColorResolver=class{constructor(t,R,u,n,s,a){this._terminal=t,this._optionService=R,this._selectionRenderModel=u,this._decorationService=n,this._coreBrowserService=s,this._themeService=a,this.result={fg:0,bg:0,ext:0}}resolve(t,R,u,n){if(this.result.bg=t.bg,this.result.fg=t.fg,this.result.ext=268435456&t.bg?t.extended.ext:0,_=0,b=0,r=!1,o=!1,p=!1,C=this._themeService.colors,E=0,t.getCode()!==i.NULL_CELL_CODE&&t.extended.underlineStyle===4){const s=Math.max(1,Math.floor(this._optionService.rawOptions.fontSize*this._coreBrowserService.dpr/15));E=R*n%(2*Math.round(s))}if(this._decorationService.forEachDecorationAtCell(R,u,"bottom",(s=>{s.backgroundColorRGB&&(_=s.backgroundColorRGB.rgba>>8&16777215,r=!0),s.foregroundColorRGB&&(b=s.foregroundColorRGB.rgba>>8&16777215,o=!0)})),p=this._selectionRenderModel.isCellSelected(this._terminal,R,u),p){if(67108864&this.result.fg||50331648&this.result.bg){if(67108864&this.result.fg)switch(50331648&this.result.fg){case 16777216:case 33554432:_=this._themeService.colors.ansi[255&this.result.fg].rgba;break;case 50331648:_=(16777215&this.result.fg)<<8|255;break;default:_=this._themeService.colors.foreground.rgba}else switch(50331648&this.result.bg){case 16777216:case 33554432:_=this._themeService.colors.ansi[255&this.result.bg].rgba;break;case 50331648:_=(16777215&this.result.bg)<<8|255}_=f.rgba.blend(_,4294967040&(this._coreBrowserService.isFocused?C.selectionBackgroundOpaque:C.selectionInactiveBackgroundOpaque).rgba|128)>>8&16777215}else _=(this._coreBrowserService.isFocused?C.selectionBackgroundOpaque:C.selectionInactiveBackgroundOpaque).rgba>>8&16777215;if(r=!0,C.selectionForeground&&(b=C.selectionForeground.rgba>>8&16777215,o=!0),(0,h.treatGlyphAsBackgroundColor)(t.getCode())){if(67108864&this.result.fg&&!(50331648&this.result.bg))b=(this._coreBrowserService.isFocused?C.selectionBackgroundOpaque:C.selectionInactiveBackgroundOpaque).rgba>>8&16777215;else{if(67108864&this.result.fg)switch(50331648&this.result.bg){case 16777216:case 33554432:b=this._themeService.colors.ansi[255&this.result.bg].rgba;break;case 50331648:b=(16777215&this.result.bg)<<8|255}else switch(50331648&this.result.fg){case 16777216:case 33554432:b=this._themeService.colors.ansi[255&this.result.fg].rgba;break;case 50331648:b=(16777215&this.result.fg)<<8|255;break;default:b=this._themeService.colors.foreground.rgba}b=f.rgba.blend(b,4294967040&(this._coreBrowserService.isFocused?C.selectionBackgroundOpaque:C.selectionInactiveBackgroundOpaque).rgba|128)>>8&16777215}o=!0}}this._decorationService.forEachDecorationAtCell(R,u,"top",(s=>{s.backgroundColorRGB&&(_=s.backgroundColorRGB.rgba>>8&16777215,r=!0),s.foregroundColorRGB&&(b=s.foregroundColorRGB.rgba>>8&16777215,o=!0)})),r&&(_=p?-16777216&t.bg&-134217729|_|50331648:-16777216&t.bg|_|50331648),o&&(b=-16777216&t.fg&-67108865|b|50331648),67108864&this.result.fg&&(r&&!o&&(b=50331648&this.result.bg?-134217728&this.result.fg|67108863&this.result.bg:-134217728&this.result.fg|16777215&C.background.rgba>>8|50331648,o=!0),!r&&o&&(_=50331648&this.result.fg?-67108864&this.result.bg|67108863&this.result.fg:-67108864&this.result.bg|16777215&C.foreground.rgba>>8|50331648,r=!0)),C=void 0,this.result.bg=r?_:this.result.bg,this.result.fg=o?b:this.result.fg,this.result.ext&=536870911,this.result.ext|=E<<29&3758096384}}},5670:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.acquireTextureAtlas=function(C,b,_,o,r,p,E,t,R){const u=(0,f.generateConfig)(o,r,p,E,b,_,t,R);for(let a=0;a<h.length;a++){const c=h[a],l=c.ownedBy.indexOf(C);if(l>=0){if((0,f.configEquals)(c.config,u))return c.atlas;c.ownedBy.length===1?(c.atlas.dispose(),h.splice(a,1)):c.ownedBy.splice(l,1);break}}for(let a=0;a<h.length;a++){const c=h[a];if((0,f.configEquals)(c.config,u))return c.ownedBy.push(C),c.atlas}const n=C._core,s={atlas:new i.TextureAtlas(document,u,n.unicodeService),config:u,ownedBy:[C]};return h.push(s),s.atlas},e.removeTerminalFromCache=function(C){for(let b=0;b<h.length;b++){const _=h[b].ownedBy.indexOf(C);if(_!==-1){h[b].ownedBy.length===1?(h[b].atlas.dispose(),h.splice(b,1)):h[b].ownedBy.splice(_,1);break}}};const i=v(2115),f=v(3657),h=[]},3657:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.generateConfig=function(f,h,C,b,_,o,r,p){const E={foreground:o.foreground,background:o.background,cursor:i.NULL_COLOR,cursorAccent:i.NULL_COLOR,selectionForeground:i.NULL_COLOR,selectionBackgroundTransparent:i.NULL_COLOR,selectionBackgroundOpaque:i.NULL_COLOR,selectionInactiveBackgroundTransparent:i.NULL_COLOR,selectionInactiveBackgroundOpaque:i.NULL_COLOR,overviewRulerBorder:i.NULL_COLOR,scrollbarSliderBackground:i.NULL_COLOR,scrollbarSliderHoverBackground:i.NULL_COLOR,scrollbarSliderActiveBackground:i.NULL_COLOR,ansi:o.ansi.slice(),contrastCache:o.contrastCache,halfContrastCache:o.halfContrastCache};return{customGlyphs:_.customGlyphs,devicePixelRatio:r,deviceMaxTextureSize:p,letterSpacing:_.letterSpacing,lineHeight:_.lineHeight,deviceCellWidth:f,deviceCellHeight:h,deviceCharWidth:C,deviceCharHeight:b,fontFamily:_.fontFamily,fontSize:_.fontSize,fontWeight:_.fontWeight,fontWeightBold:_.fontWeightBold,allowTransparency:_.allowTransparency,drawBoldTextInBrightColors:_.drawBoldTextInBrightColors,minimumContrastRatio:_.minimumContrastRatio,colors:E}},e.configEquals=function(f,h){for(let C=0;C<f.colors.ansi.length;C++)if(f.colors.ansi[C].rgba!==h.colors.ansi[C].rgba)return!1;return f.devicePixelRatio===h.devicePixelRatio&&f.customGlyphs===h.customGlyphs&&f.lineHeight===h.lineHeight&&f.letterSpacing===h.letterSpacing&&f.fontFamily===h.fontFamily&&f.fontSize===h.fontSize&&f.fontWeight===h.fontWeight&&f.fontWeightBold===h.fontWeightBold&&f.allowTransparency===h.allowTransparency&&f.deviceCharWidth===h.deviceCharWidth&&f.deviceCharHeight===h.deviceCharHeight&&f.drawBoldTextInBrightColors===h.drawBoldTextInBrightColors&&f.minimumContrastRatio===h.minimumContrastRatio&&f.colors.foreground.rgba===h.colors.foreground.rgba&&f.colors.background.rgba===h.colors.background.rgba},e.is256Color=function(f){return(50331648&f)==16777216||(50331648&f)==33554432};const i=v(7993)},2e3:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TEXT_BASELINE=e.DIM_OPACITY=void 0;const i=v(7095);e.DIM_OPACITY=.5,e.TEXT_BASELINE=i.isFirefox||i.isLegacyEdge?"bottom":"ideographic"},3773:(j,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CursorBlinkStateManager=void 0,e.CursorBlinkStateManager=class{constructor(v,i){this._renderCallback=v,this._coreBrowserService=i,this.isCursorVisible=!0,this._coreBrowserService.isFocused&&this._restartInterval()}get isPaused(){return!(this._blinkStartTimeout||this._blinkInterval)}dispose(){this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}restartBlinkAnimation(){this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0}))))}_restartInterval(v=600){this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=this._coreBrowserService.window.setTimeout((()=>{if(this._animationTimeRestarted){const i=600-(Date.now()-this._animationTimeRestarted);if(this._animationTimeRestarted=void 0,i>0)return void this._restartInterval(i)}this.isCursorVisible=!1,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0})),this._blinkInterval=this._coreBrowserService.window.setInterval((()=>{if(this._animationTimeRestarted){const i=600-(Date.now()-this._animationTimeRestarted);return this._animationTimeRestarted=void 0,void this._restartInterval(i)}this.isCursorVisible=!this.isCursorVisible,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0}))}),600)}),v)}pause(){this.isCursorVisible=!0,this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}resume(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()}}},9705:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.powerlineDefinitions=e.boxDrawingDefinitions=e.blockElementDefinitions=void 0,e.tryDrawCustomChar=function(o,r,p,E,t,R,u,n){const s=e.blockElementDefinitions[r];if(s)return(function(L,w,S,g,A,U){for(let D=0;D<w.length;D++){const P=w[D],B=A/8,M=U/8;L.fillRect(S+P.x*B,g+P.y*M,P.w*B,P.h*M)}})(o,s,p,E,t,R),!0;const a=f[r];if(a)return(function(L,w,S,g,A,U){let D=h.get(w);D||(D=new Map,h.set(w,D));const P=L.fillStyle;if(typeof P!="string")throw new Error(`Unexpected fillStyle type "${P}"`);let B=D.get(P);if(!B){const M=w[0].length,y=w.length,x=L.canvas.ownerDocument.createElement("canvas");x.width=M,x.height=y;const I=(0,i.throwIfFalsy)(x.getContext("2d")),O=new ImageData(M,y);let N,W,K,$;if(P.startsWith("#"))N=parseInt(P.slice(1,3),16),W=parseInt(P.slice(3,5),16),K=parseInt(P.slice(5,7),16),$=P.length>7&&parseInt(P.slice(7,9),16)||1;else{if(!P.startsWith("rgba"))throw new Error(`Unexpected fillStyle color format "${P}" when drawing pattern glyph`);[N,W,K,$]=P.substring(5,P.length-1).split(",").map((X=>parseFloat(X)))}for(let X=0;X<y;X++)for(let Z=0;Z<M;Z++)O.data[4*(X*M+Z)]=N,O.data[4*(X*M+Z)+1]=W,O.data[4*(X*M+Z)+2]=K,O.data[4*(X*M+Z)+3]=w[X][Z]*(255*$);I.putImageData(O,0,0),B=(0,i.throwIfFalsy)(L.createPattern(x,null)),D.set(P,B)}L.fillStyle=B,L.fillRect(S,g,A,U)})(o,a,p,E,t,R),!0;const c=e.boxDrawingDefinitions[r];if(c)return(function(L,w,S,g,A,U,D){L.strokeStyle=L.fillStyle;for(const[P,B]of Object.entries(w)){let M;L.beginPath(),L.lineWidth=D*Number.parseInt(P),M=typeof B=="function"?B(.15,.15/U*A):B;for(const y of M.split(" ")){const x=y[0],I=b[x];if(!I){console.error(`Could not find drawing instructions for "${x}"`);continue}const O=y.substring(1).split(",");O[0]&&O[1]&&I(L,_(O,A,U,S,g,!0,D))}L.stroke(),L.closePath()}})(o,c,p,E,t,R,n),!0;const l=e.powerlineDefinitions[r];return!!l&&((function(L,w,S,g,A,U,D,P){const B=new Path2D;B.rect(S,g,A,U),L.clip(B),L.beginPath();const M=D/12;L.lineWidth=P*M;for(const y of w.d.split(" ")){const x=y[0],I=b[x];if(!I){console.error(`Could not find drawing instructions for "${x}"`);continue}const O=y.substring(1).split(",");O[0]&&O[1]&&I(L,_(O,A,U,S,g,!1,P,(w.leftPadding??0)*(M/2),(w.rightPadding??0)*(M/2)))}w.type===1?(L.strokeStyle=L.fillStyle,L.stroke()):L.fill(),L.closePath()})(o,l,p,E,t,R,u,n),!0)};const i=v(4959);e.blockElementDefinitions={"▀":[{x:0,y:0,w:8,h:4}],"▁":[{x:0,y:7,w:8,h:1}],"▂":[{x:0,y:6,w:8,h:2}],"▃":[{x:0,y:5,w:8,h:3}],"▄":[{x:0,y:4,w:8,h:4}],"▅":[{x:0,y:3,w:8,h:5}],"▆":[{x:0,y:2,w:8,h:6}],"▇":[{x:0,y:1,w:8,h:7}],"█":[{x:0,y:0,w:8,h:8}],"▉":[{x:0,y:0,w:7,h:8}],"▊":[{x:0,y:0,w:6,h:8}],"▋":[{x:0,y:0,w:5,h:8}],"▌":[{x:0,y:0,w:4,h:8}],"▍":[{x:0,y:0,w:3,h:8}],"▎":[{x:0,y:0,w:2,h:8}],"▏":[{x:0,y:0,w:1,h:8}],"▐":[{x:4,y:0,w:4,h:8}],"▔":[{x:0,y:0,w:8,h:1}],"▕":[{x:7,y:0,w:1,h:8}],"▖":[{x:0,y:4,w:4,h:4}],"▗":[{x:4,y:4,w:4,h:4}],"▘":[{x:0,y:0,w:4,h:4}],"▙":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"▚":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"▛":[{x:0,y:0,w:4,h:8},{x:4,y:0,w:4,h:4}],"▜":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"▝":[{x:4,y:0,w:4,h:4}],"▞":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"▟":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"🭰":[{x:1,y:0,w:1,h:8}],"🭱":[{x:2,y:0,w:1,h:8}],"🭲":[{x:3,y:0,w:1,h:8}],"🭳":[{x:4,y:0,w:1,h:8}],"🭴":[{x:5,y:0,w:1,h:8}],"🭵":[{x:6,y:0,w:1,h:8}],"🭶":[{x:0,y:1,w:8,h:1}],"🭷":[{x:0,y:2,w:8,h:1}],"🭸":[{x:0,y:3,w:8,h:1}],"🭹":[{x:0,y:4,w:8,h:1}],"🭺":[{x:0,y:5,w:8,h:1}],"🭻":[{x:0,y:6,w:8,h:1}],"🭼":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🭽":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭾":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭿":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🮀":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮁":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮂":[{x:0,y:0,w:8,h:2}],"🮃":[{x:0,y:0,w:8,h:3}],"🮄":[{x:0,y:0,w:8,h:5}],"🮅":[{x:0,y:0,w:8,h:6}],"🮆":[{x:0,y:0,w:8,h:7}],"🮇":[{x:6,y:0,w:2,h:8}],"🮈":[{x:5,y:0,w:3,h:8}],"🮉":[{x:3,y:0,w:5,h:8}],"🮊":[{x:2,y:0,w:6,h:8}],"🮋":[{x:1,y:0,w:7,h:8}],"🮕":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"🮖":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"🮗":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};const f={"░":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"▒":[[1,0],[0,0],[0,1],[0,0]],"▓":[[0,1],[1,1],[1,0],[1,1]]};e.boxDrawingDefinitions={"─":{1:"M0,.5 L1,.5"},"━":{3:"M0,.5 L1,.5"},"│":{1:"M.5,0 L.5,1"},"┃":{3:"M.5,0 L.5,1"},"┌":{1:"M0.5,1 L.5,.5 L1,.5"},"┏":{3:"M0.5,1 L.5,.5 L1,.5"},"┐":{1:"M0,.5 L.5,.5 L.5,1"},"┓":{3:"M0,.5 L.5,.5 L.5,1"},"└":{1:"M.5,0 L.5,.5 L1,.5"},"┗":{3:"M.5,0 L.5,.5 L1,.5"},"┘":{1:"M.5,0 L.5,.5 L0,.5"},"┛":{3:"M.5,0 L.5,.5 L0,.5"},"├":{1:"M.5,0 L.5,1 M.5,.5 L1,.5"},"┣":{3:"M.5,0 L.5,1 M.5,.5 L1,.5"},"┤":{1:"M.5,0 L.5,1 M.5,.5 L0,.5"},"┫":{3:"M.5,0 L.5,1 M.5,.5 L0,.5"},"┬":{1:"M0,.5 L1,.5 M.5,.5 L.5,1"},"┳":{3:"M0,.5 L1,.5 M.5,.5 L.5,1"},"┴":{1:"M0,.5 L1,.5 M.5,.5 L.5,0"},"┻":{3:"M0,.5 L1,.5 M.5,.5 L.5,0"},"┼":{1:"M0,.5 L1,.5 M.5,0 L.5,1"},"╋":{3:"M0,.5 L1,.5 M.5,0 L.5,1"},"╴":{1:"M.5,.5 L0,.5"},"╸":{3:"M.5,.5 L0,.5"},"╵":{1:"M.5,.5 L.5,0"},"╹":{3:"M.5,.5 L.5,0"},"╶":{1:"M.5,.5 L1,.5"},"╺":{3:"M.5,.5 L1,.5"},"╷":{1:"M.5,.5 L.5,1"},"╻":{3:"M.5,.5 L.5,1"},"═":{1:(o,r)=>`M0,${.5-r} L1,${.5-r} M0,${.5+r} L1,${.5+r}`},"║":{1:(o,r)=>`M${.5-o},0 L${.5-o},1 M${.5+o},0 L${.5+o},1`},"╒":{1:(o,r)=>`M.5,1 L.5,${.5-r} L1,${.5-r} M.5,${.5+r} L1,${.5+r}`},"╓":{1:(o,r)=>`M${.5-o},1 L${.5-o},.5 L1,.5 M${.5+o},.5 L${.5+o},1`},"╔":{1:(o,r)=>`M1,${.5-r} L${.5-o},${.5-r} L${.5-o},1 M1,${.5+r} L${.5+o},${.5+r} L${.5+o},1`},"╕":{1:(o,r)=>`M0,${.5-r} L.5,${.5-r} L.5,1 M0,${.5+r} L.5,${.5+r}`},"╖":{1:(o,r)=>`M${.5+o},1 L${.5+o},.5 L0,.5 M${.5-o},.5 L${.5-o},1`},"╗":{1:(o,r)=>`M0,${.5+r} L${.5-o},${.5+r} L${.5-o},1 M0,${.5-r} L${.5+o},${.5-r} L${.5+o},1`},"╘":{1:(o,r)=>`M.5,0 L.5,${.5+r} L1,${.5+r} M.5,${.5-r} L1,${.5-r}`},"╙":{1:(o,r)=>`M1,.5 L${.5-o},.5 L${.5-o},0 M${.5+o},.5 L${.5+o},0`},"╚":{1:(o,r)=>`M1,${.5-r} L${.5+o},${.5-r} L${.5+o},0 M1,${.5+r} L${.5-o},${.5+r} L${.5-o},0`},"╛":{1:(o,r)=>`M0,${.5+r} L.5,${.5+r} L.5,0 M0,${.5-r} L.5,${.5-r}`},"╜":{1:(o,r)=>`M0,.5 L${.5+o},.5 L${.5+o},0 M${.5-o},.5 L${.5-o},0`},"╝":{1:(o,r)=>`M0,${.5-r} L${.5-o},${.5-r} L${.5-o},0 M0,${.5+r} L${.5+o},${.5+r} L${.5+o},0`},"╞":{1:(o,r)=>`M.5,0 L.5,1 M.5,${.5-r} L1,${.5-r} M.5,${.5+r} L1,${.5+r}`},"╟":{1:(o,r)=>`M${.5-o},0 L${.5-o},1 M${.5+o},0 L${.5+o},1 M${.5+o},.5 L1,.5`},"╠":{1:(o,r)=>`M${.5-o},0 L${.5-o},1 M1,${.5+r} L${.5+o},${.5+r} L${.5+o},1 M1,${.5-r} L${.5+o},${.5-r} L${.5+o},0`},"╡":{1:(o,r)=>`M.5,0 L.5,1 M0,${.5-r} L.5,${.5-r} M0,${.5+r} L.5,${.5+r}`},"╢":{1:(o,r)=>`M0,.5 L${.5-o},.5 M${.5-o},0 L${.5-o},1 M${.5+o},0 L${.5+o},1`},"╣":{1:(o,r)=>`M${.5+o},0 L${.5+o},1 M0,${.5+r} L${.5-o},${.5+r} L${.5-o},1 M0,${.5-r} L${.5-o},${.5-r} L${.5-o},0`},"╤":{1:(o,r)=>`M0,${.5-r} L1,${.5-r} M0,${.5+r} L1,${.5+r} M.5,${.5+r} L.5,1`},"╥":{1:(o,r)=>`M0,.5 L1,.5 M${.5-o},.5 L${.5-o},1 M${.5+o},.5 L${.5+o},1`},"╦":{1:(o,r)=>`M0,${.5-r} L1,${.5-r} M0,${.5+r} L${.5-o},${.5+r} L${.5-o},1 M1,${.5+r} L${.5+o},${.5+r} L${.5+o},1`},"╧":{1:(o,r)=>`M.5,0 L.5,${.5-r} M0,${.5-r} L1,${.5-r} M0,${.5+r} L1,${.5+r}`},"╨":{1:(o,r)=>`M0,.5 L1,.5 M${.5-o},.5 L${.5-o},0 M${.5+o},.5 L${.5+o},0`},"╩":{1:(o,r)=>`M0,${.5+r} L1,${.5+r} M0,${.5-r} L${.5-o},${.5-r} L${.5-o},0 M1,${.5-r} L${.5+o},${.5-r} L${.5+o},0`},"╪":{1:(o,r)=>`M.5,0 L.5,1 M0,${.5-r} L1,${.5-r} M0,${.5+r} L1,${.5+r}`},"╫":{1:(o,r)=>`M0,.5 L1,.5 M${.5-o},0 L${.5-o},1 M${.5+o},0 L${.5+o},1`},"╬":{1:(o,r)=>`M0,${.5+r} L${.5-o},${.5+r} L${.5-o},1 M1,${.5+r} L${.5+o},${.5+r} L${.5+o},1 M0,${.5-r} L${.5-o},${.5-r} L${.5-o},0 M1,${.5-r} L${.5+o},${.5-r} L${.5+o},0`},"╱":{1:"M1,0 L0,1"},"╲":{1:"M0,0 L1,1"},"╳":{1:"M1,0 L0,1 M0,0 L1,1"},"╼":{1:"M.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"╽":{1:"M.5,.5 L.5,0",3:"M.5,.5 L.5,1"},"╾":{1:"M.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"╿":{1:"M.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"┍":{1:"M.5,.5 L.5,1",3:"M.5,.5 L1,.5"},"┎":{1:"M.5,.5 L1,.5",3:"M.5,.5 L.5,1"},"┑":{1:"M.5,.5 L.5,1",3:"M.5,.5 L0,.5"},"┒":{1:"M.5,.5 L0,.5",3:"M.5,.5 L.5,1"},"┕":{1:"M.5,.5 L.5,0",3:"M.5,.5 L1,.5"},"┖":{1:"M.5,.5 L1,.5",3:"M.5,.5 L.5,0"},"┙":{1:"M.5,.5 L.5,0",3:"M.5,.5 L0,.5"},"┚":{1:"M.5,.5 L0,.5",3:"M.5,.5 L.5,0"},"┝":{1:"M.5,0 L.5,1",3:"M.5,.5 L1,.5"},"┞":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,.5 L.5,0"},"┟":{1:"M.5,0 L.5,.5 L1,.5",3:"M.5,.5 L.5,1"},"┠":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,1"},"┡":{1:"M.5,.5 L.5,1",3:"M.5,0 L.5,.5 L1,.5"},"┢":{1:"M.5,.5 L.5,0",3:"M0.5,1 L.5,.5 L1,.5"},"┥":{1:"M.5,0 L.5,1",3:"M.5,.5 L0,.5"},"┦":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"┧":{1:"M.5,0 L.5,.5 L0,.5",3:"M.5,.5 L.5,1"},"┨":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,1"},"┩":{1:"M.5,.5 L.5,1",3:"M.5,0 L.5,.5 L0,.5"},"┪":{1:"M.5,.5 L.5,0",3:"M0,.5 L.5,.5 L.5,1"},"┭":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┮":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,.5 L1,.5"},"┯":{1:"M.5,.5 L.5,1",3:"M0,.5 L1,.5"},"┰":{1:"M0,.5 L1,.5",3:"M.5,.5 L.5,1"},"┱":{1:"M.5,.5 L1,.5",3:"M0,.5 L.5,.5 L.5,1"},"┲":{1:"M.5,.5 L0,.5",3:"M0.5,1 L.5,.5 L1,.5"},"┵":{1:"M.5,0 L.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┶":{1:"M.5,0 L.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"┷":{1:"M.5,.5 L.5,0",3:"M0,.5 L1,.5"},"┸":{1:"M0,.5 L1,.5",3:"M.5,.5 L.5,0"},"┹":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,.5 L0,.5"},"┺":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,.5 L1,.5"},"┽":{1:"M.5,0 L.5,1 M.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┾":{1:"M.5,0 L.5,1 M.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"┿":{1:"M.5,0 L.5,1",3:"M0,.5 L1,.5"},"╀":{1:"M0,.5 L1,.5 M.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"╁":{1:"M.5,.5 L.5,0 M0,.5 L1,.5",3:"M.5,.5 L.5,1"},"╂":{1:"M0,.5 L1,.5",3:"M.5,0 L.5,1"},"╃":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,0 L.5,.5 L0,.5"},"╄":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,0 L.5,.5 L1,.5"},"╅":{1:"M.5,0 L.5,.5 L1,.5",3:"M0,.5 L.5,.5 L.5,1"},"╆":{1:"M.5,0 L.5,.5 L0,.5",3:"M0.5,1 L.5,.5 L1,.5"},"╇":{1:"M.5,.5 L.5,1",3:"M.5,.5 L.5,0 M0,.5 L1,.5"},"╈":{1:"M.5,.5 L.5,0",3:"M0,.5 L1,.5 M.5,.5 L.5,1"},"╉":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,1 M.5,.5 L0,.5"},"╊":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,1 M.5,.5 L1,.5"},"╌":{1:"M.1,.5 L.4,.5 M.6,.5 L.9,.5"},"╍":{3:"M.1,.5 L.4,.5 M.6,.5 L.9,.5"},"┄":{1:"M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5"},"┅":{3:"M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5"},"┈":{1:"M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5"},"┉":{3:"M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5"},"╎":{1:"M.5,.1 L.5,.4 M.5,.6 L.5,.9"},"╏":{3:"M.5,.1 L.5,.4 M.5,.6 L.5,.9"},"┆":{1:"M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333"},"┇":{3:"M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333"},"┊":{1:"M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95"},"┋":{3:"M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95"},"╭":{1:(o,r)=>`M.5,1 L.5,${.5+r/.15*.5} C.5,${.5+r/.15*.5},.5,.5,1,.5`},"╮":{1:(o,r)=>`M.5,1 L.5,${.5+r/.15*.5} C.5,${.5+r/.15*.5},.5,.5,0,.5`},"╯":{1:(o,r)=>`M.5,0 L.5,${.5-r/.15*.5} C.5,${.5-r/.15*.5},.5,.5,0,.5`},"╰":{1:(o,r)=>`M.5,0 L.5,${.5-r/.15*.5} C.5,${.5-r/.15*.5},.5,.5,1,.5`}},e.powerlineDefinitions={"":{d:"M.3,1 L.03,1 L.03,.88 C.03,.82,.06,.78,.11,.73 C.15,.7,.2,.68,.28,.65 L.43,.6 C.49,.58,.53,.56,.56,.53 C.59,.5,.6,.47,.6,.43 L.6,.27 L.4,.27 L.69,.1 L.98,.27 L.78,.27 L.78,.46 C.78,.52,.76,.56,.72,.61 C.68,.66,.63,.67,.56,.7 L.48,.72 C.42,.74,.38,.76,.35,.78 C.32,.8,.31,.84,.31,.88 L.31,1 M.3,.5 L.03,.59 L.03,.09 L.3,.09 L.3,.655",type:0},"":{d:"M.7,.4 L.7,.47 L.2,.47 L.2,.03 L.355,.03 L.355,.4 L.705,.4 M.7,.5 L.86,.5 L.86,.95 L.69,.95 L.44,.66 L.46,.86 L.46,.95 L.3,.95 L.3,.49 L.46,.49 L.71,.78 L.69,.565 L.69,.5",type:0},"":{d:"M.25,.94 C.16,.94,.11,.92,.11,.87 L.11,.53 C.11,.48,.15,.455,.23,.45 L.23,.3 C.23,.25,.26,.22,.31,.19 C.36,.16,.43,.15,.51,.15 C.59,.15,.66,.16,.71,.19 C.77,.22,.79,.26,.79,.3 L.79,.45 C.87,.45,.91,.48,.91,.53 L.91,.87 C.91,.92,.86,.94,.77,.94 L.24,.94 M.53,.2 C.49,.2,.45,.21,.42,.23 C.39,.25,.38,.27,.38,.3 L.38,.45 L.68,.45 L.68,.3 C.68,.27,.67,.25,.64,.23 C.61,.21,.58,.2,.53,.2 M.58,.82 L.58,.66 C.63,.65,.65,.63,.65,.6 C.65,.58,.64,.57,.61,.56 C.58,.55,.56,.54,.52,.54 C.48,.54,.46,.55,.43,.56 C.4,.57,.39,.59,.39,.6 C.39,.63,.41,.64,.46,.66 L.46,.82 L.57,.82",type:0},"":{d:"M0,0 L1,.5 L0,1",type:0,rightPadding:2},"":{d:"M-1,-.5 L1,.5 L-1,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M1,0 L0,.5 L1,1",type:0,leftPadding:2},"":{d:"M2,-.5 L0,.5 L2,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M0,0 L0,1 C0.552,1,1,0.776,1,.5 C1,0.224,0.552,0,0,0",type:0,rightPadding:1},"":{d:"M.2,1 C.422,1,.8,.826,.78,.5 C.8,.174,0.422,0,.2,0",type:1,rightPadding:1},"":{d:"M1,0 L1,1 C0.448,1,0,0.776,0,.5 C0,0.224,0.448,0,1,0",type:0,leftPadding:1},"":{d:"M.8,1 C0.578,1,0.2,.826,.22,.5 C0.2,0.174,0.578,0,0.8,0",type:1,leftPadding:1},"":{d:"M-.5,-.5 L1.5,1.5 L-.5,1.5",type:0},"":{d:"M-.5,-.5 L1.5,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M1.5,-.5 L-.5,1.5 L1.5,1.5",type:0},"":{d:"M1.5,-.5 L-.5,1.5 L-.5,-.5",type:0},"":{d:"M1.5,-.5 L-.5,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M-.5,-.5 L1.5,1.5 L1.5,-.5",type:0}},e.powerlineDefinitions[""]=e.powerlineDefinitions[""],e.powerlineDefinitions[""]=e.powerlineDefinitions[""];const h=new Map;function C(o,r,p=0){return Math.max(Math.min(o,r),p)}const b={C:(o,r)=>o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]),L:(o,r)=>o.lineTo(r[0],r[1]),M:(o,r)=>o.moveTo(r[0],r[1])};function _(o,r,p,E,t,R,u,n=0,s=0){const a=o.map((c=>parseFloat(c)||parseInt(c)));if(a.length<2)throw new Error("Too few arguments for instruction");for(let c=0;c<a.length;c+=2)a[c]*=r-n*u-s*u,R&&a[c]!==0&&(a[c]=C(Math.round(a[c]+.5)-.5,r,0)),a[c]+=E+n*u;for(let c=1;c<a.length;c+=2)a[c]*=p,R&&a[c]!==0&&(a[c]=C(Math.round(a[c]+.5)-.5,p,0)),a[c]+=t;return a}},697:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.observeDevicePixelDimensions=function(f,h,C){let b=new h.ResizeObserver((_=>{const o=_.find((E=>E.target===f));if(!o)return;if(!("devicePixelContentBoxSize"in o))return b?.disconnect(),void(b=void 0);const r=o.devicePixelContentBoxSize[0].inlineSize,p=o.devicePixelContentBoxSize[0].blockSize;r>0&&p>0&&C(r,p)}));try{b.observe(f,{box:["device-pixel-content-box"]})}catch{b.disconnect(),b=void 0}return(0,i.toDisposable)((()=>b?.disconnect()))};const i=v(2540)},3028:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GlyphRenderer=void 0;const i=v(2115),f=v(1564),h=v(2540),C=v(5719),b=v(4959),_=11,o=_*Float32Array.BYTES_PER_ELEMENT;let r,p=0,E=0,t=0;class R extends h.Disposable{constructor(n,s,a,c){super(),this._terminal=n,this._gl=s,this._dimensions=a,this._optionsService=c,this._activeBuffer=0,this._vertices={count:0,attributes:new Float32Array(0),attributesBuffers:[new Float32Array(0),new Float32Array(0)]};const l=this._gl;i.TextureAtlas.maxAtlasPages===void 0&&(i.TextureAtlas.maxAtlasPages=Math.min(32,(0,b.throwIfFalsy)(l.getParameter(l.MAX_TEXTURE_IMAGE_UNITS))),i.TextureAtlas.maxTextureSize=(0,b.throwIfFalsy)(l.getParameter(l.MAX_TEXTURE_SIZE))),this._program=(0,b.throwIfFalsy)((0,C.createProgram)(l,`#version 300 es
1
+ import{z as We}from"./index-CZ-05hKz.js";function Ke(Ie,ke){for(var Se=0;Se<ke.length;Se++){const Ee=ke[Se];if(typeof Ee!="string"&&!Array.isArray(Ee)){for(const ge in Ee)if(ge!=="default"&&!(ge in Ie)){const De=Object.getOwnPropertyDescriptor(Ee,ge);De&&Object.defineProperty(Ie,ge,De.get?De:{enumerable:!0,get:()=>Ee[ge]})}}}return Object.freeze(Object.defineProperty(Ie,Symbol.toStringTag,{value:"Module"}))}var Ne={exports:{}},Fe;function He(){return Fe||(Fe=1,(function(Ie,ke){(function(Se,Ee){Ie.exports=Ee()})(globalThis,(()=>(()=>{var Se={6864:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CellColorResolver=void 0;const i=v(1564),f=v(7993),h=v(4959);let C,b=0,_=0,o=!1,r=!1,p=!1,E=0;e.CellColorResolver=class{constructor(t,R,u,n,s,a){this._terminal=t,this._optionService=R,this._selectionRenderModel=u,this._decorationService=n,this._coreBrowserService=s,this._themeService=a,this.result={fg:0,bg:0,ext:0}}resolve(t,R,u,n){if(this.result.bg=t.bg,this.result.fg=t.fg,this.result.ext=268435456&t.bg?t.extended.ext:0,_=0,b=0,r=!1,o=!1,p=!1,C=this._themeService.colors,E=0,t.getCode()!==i.NULL_CELL_CODE&&t.extended.underlineStyle===4){const s=Math.max(1,Math.floor(this._optionService.rawOptions.fontSize*this._coreBrowserService.dpr/15));E=R*n%(2*Math.round(s))}if(this._decorationService.forEachDecorationAtCell(R,u,"bottom",(s=>{s.backgroundColorRGB&&(_=s.backgroundColorRGB.rgba>>8&16777215,r=!0),s.foregroundColorRGB&&(b=s.foregroundColorRGB.rgba>>8&16777215,o=!0)})),p=this._selectionRenderModel.isCellSelected(this._terminal,R,u),p){if(67108864&this.result.fg||50331648&this.result.bg){if(67108864&this.result.fg)switch(50331648&this.result.fg){case 16777216:case 33554432:_=this._themeService.colors.ansi[255&this.result.fg].rgba;break;case 50331648:_=(16777215&this.result.fg)<<8|255;break;default:_=this._themeService.colors.foreground.rgba}else switch(50331648&this.result.bg){case 16777216:case 33554432:_=this._themeService.colors.ansi[255&this.result.bg].rgba;break;case 50331648:_=(16777215&this.result.bg)<<8|255}_=f.rgba.blend(_,4294967040&(this._coreBrowserService.isFocused?C.selectionBackgroundOpaque:C.selectionInactiveBackgroundOpaque).rgba|128)>>8&16777215}else _=(this._coreBrowserService.isFocused?C.selectionBackgroundOpaque:C.selectionInactiveBackgroundOpaque).rgba>>8&16777215;if(r=!0,C.selectionForeground&&(b=C.selectionForeground.rgba>>8&16777215,o=!0),(0,h.treatGlyphAsBackgroundColor)(t.getCode())){if(67108864&this.result.fg&&!(50331648&this.result.bg))b=(this._coreBrowserService.isFocused?C.selectionBackgroundOpaque:C.selectionInactiveBackgroundOpaque).rgba>>8&16777215;else{if(67108864&this.result.fg)switch(50331648&this.result.bg){case 16777216:case 33554432:b=this._themeService.colors.ansi[255&this.result.bg].rgba;break;case 50331648:b=(16777215&this.result.bg)<<8|255}else switch(50331648&this.result.fg){case 16777216:case 33554432:b=this._themeService.colors.ansi[255&this.result.fg].rgba;break;case 50331648:b=(16777215&this.result.fg)<<8|255;break;default:b=this._themeService.colors.foreground.rgba}b=f.rgba.blend(b,4294967040&(this._coreBrowserService.isFocused?C.selectionBackgroundOpaque:C.selectionInactiveBackgroundOpaque).rgba|128)>>8&16777215}o=!0}}this._decorationService.forEachDecorationAtCell(R,u,"top",(s=>{s.backgroundColorRGB&&(_=s.backgroundColorRGB.rgba>>8&16777215,r=!0),s.foregroundColorRGB&&(b=s.foregroundColorRGB.rgba>>8&16777215,o=!0)})),r&&(_=p?-16777216&t.bg&-134217729|_|50331648:-16777216&t.bg|_|50331648),o&&(b=-16777216&t.fg&-67108865|b|50331648),67108864&this.result.fg&&(r&&!o&&(b=50331648&this.result.bg?-134217728&this.result.fg|67108863&this.result.bg:-134217728&this.result.fg|16777215&C.background.rgba>>8|50331648,o=!0),!r&&o&&(_=50331648&this.result.fg?-67108864&this.result.bg|67108863&this.result.fg:-67108864&this.result.bg|16777215&C.foreground.rgba>>8|50331648,r=!0)),C=void 0,this.result.bg=r?_:this.result.bg,this.result.fg=o?b:this.result.fg,this.result.ext&=536870911,this.result.ext|=E<<29&3758096384}}},5670:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.acquireTextureAtlas=function(C,b,_,o,r,p,E,t,R){const u=(0,f.generateConfig)(o,r,p,E,b,_,t,R);for(let a=0;a<h.length;a++){const c=h[a],l=c.ownedBy.indexOf(C);if(l>=0){if((0,f.configEquals)(c.config,u))return c.atlas;c.ownedBy.length===1?(c.atlas.dispose(),h.splice(a,1)):c.ownedBy.splice(l,1);break}}for(let a=0;a<h.length;a++){const c=h[a];if((0,f.configEquals)(c.config,u))return c.ownedBy.push(C),c.atlas}const n=C._core,s={atlas:new i.TextureAtlas(document,u,n.unicodeService),config:u,ownedBy:[C]};return h.push(s),s.atlas},e.removeTerminalFromCache=function(C){for(let b=0;b<h.length;b++){const _=h[b].ownedBy.indexOf(C);if(_!==-1){h[b].ownedBy.length===1?(h[b].atlas.dispose(),h.splice(b,1)):h[b].ownedBy.splice(_,1);break}}};const i=v(2115),f=v(3657),h=[]},3657:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.generateConfig=function(f,h,C,b,_,o,r,p){const E={foreground:o.foreground,background:o.background,cursor:i.NULL_COLOR,cursorAccent:i.NULL_COLOR,selectionForeground:i.NULL_COLOR,selectionBackgroundTransparent:i.NULL_COLOR,selectionBackgroundOpaque:i.NULL_COLOR,selectionInactiveBackgroundTransparent:i.NULL_COLOR,selectionInactiveBackgroundOpaque:i.NULL_COLOR,overviewRulerBorder:i.NULL_COLOR,scrollbarSliderBackground:i.NULL_COLOR,scrollbarSliderHoverBackground:i.NULL_COLOR,scrollbarSliderActiveBackground:i.NULL_COLOR,ansi:o.ansi.slice(),contrastCache:o.contrastCache,halfContrastCache:o.halfContrastCache};return{customGlyphs:_.customGlyphs,devicePixelRatio:r,deviceMaxTextureSize:p,letterSpacing:_.letterSpacing,lineHeight:_.lineHeight,deviceCellWidth:f,deviceCellHeight:h,deviceCharWidth:C,deviceCharHeight:b,fontFamily:_.fontFamily,fontSize:_.fontSize,fontWeight:_.fontWeight,fontWeightBold:_.fontWeightBold,allowTransparency:_.allowTransparency,drawBoldTextInBrightColors:_.drawBoldTextInBrightColors,minimumContrastRatio:_.minimumContrastRatio,colors:E}},e.configEquals=function(f,h){for(let C=0;C<f.colors.ansi.length;C++)if(f.colors.ansi[C].rgba!==h.colors.ansi[C].rgba)return!1;return f.devicePixelRatio===h.devicePixelRatio&&f.customGlyphs===h.customGlyphs&&f.lineHeight===h.lineHeight&&f.letterSpacing===h.letterSpacing&&f.fontFamily===h.fontFamily&&f.fontSize===h.fontSize&&f.fontWeight===h.fontWeight&&f.fontWeightBold===h.fontWeightBold&&f.allowTransparency===h.allowTransparency&&f.deviceCharWidth===h.deviceCharWidth&&f.deviceCharHeight===h.deviceCharHeight&&f.drawBoldTextInBrightColors===h.drawBoldTextInBrightColors&&f.minimumContrastRatio===h.minimumContrastRatio&&f.colors.foreground.rgba===h.colors.foreground.rgba&&f.colors.background.rgba===h.colors.background.rgba},e.is256Color=function(f){return(50331648&f)==16777216||(50331648&f)==33554432};const i=v(7993)},2e3:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TEXT_BASELINE=e.DIM_OPACITY=void 0;const i=v(7095);e.DIM_OPACITY=.5,e.TEXT_BASELINE=i.isFirefox||i.isLegacyEdge?"bottom":"ideographic"},3773:(j,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CursorBlinkStateManager=void 0,e.CursorBlinkStateManager=class{constructor(v,i){this._renderCallback=v,this._coreBrowserService=i,this.isCursorVisible=!0,this._coreBrowserService.isFocused&&this._restartInterval()}get isPaused(){return!(this._blinkStartTimeout||this._blinkInterval)}dispose(){this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}restartBlinkAnimation(){this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0}))))}_restartInterval(v=600){this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=this._coreBrowserService.window.setTimeout((()=>{if(this._animationTimeRestarted){const i=600-(Date.now()-this._animationTimeRestarted);if(this._animationTimeRestarted=void 0,i>0)return void this._restartInterval(i)}this.isCursorVisible=!1,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0})),this._blinkInterval=this._coreBrowserService.window.setInterval((()=>{if(this._animationTimeRestarted){const i=600-(Date.now()-this._animationTimeRestarted);return this._animationTimeRestarted=void 0,void this._restartInterval(i)}this.isCursorVisible=!this.isCursorVisible,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0}))}),600)}),v)}pause(){this.isCursorVisible=!0,this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}resume(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()}}},9705:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.powerlineDefinitions=e.boxDrawingDefinitions=e.blockElementDefinitions=void 0,e.tryDrawCustomChar=function(o,r,p,E,t,R,u,n){const s=e.blockElementDefinitions[r];if(s)return(function(L,w,S,g,A,U){for(let D=0;D<w.length;D++){const P=w[D],B=A/8,M=U/8;L.fillRect(S+P.x*B,g+P.y*M,P.w*B,P.h*M)}})(o,s,p,E,t,R),!0;const a=f[r];if(a)return(function(L,w,S,g,A,U){let D=h.get(w);D||(D=new Map,h.set(w,D));const P=L.fillStyle;if(typeof P!="string")throw new Error(`Unexpected fillStyle type "${P}"`);let B=D.get(P);if(!B){const M=w[0].length,y=w.length,x=L.canvas.ownerDocument.createElement("canvas");x.width=M,x.height=y;const I=(0,i.throwIfFalsy)(x.getContext("2d")),O=new ImageData(M,y);let N,W,K,$;if(P.startsWith("#"))N=parseInt(P.slice(1,3),16),W=parseInt(P.slice(3,5),16),K=parseInt(P.slice(5,7),16),$=P.length>7&&parseInt(P.slice(7,9),16)||1;else{if(!P.startsWith("rgba"))throw new Error(`Unexpected fillStyle color format "${P}" when drawing pattern glyph`);[N,W,K,$]=P.substring(5,P.length-1).split(",").map((X=>parseFloat(X)))}for(let X=0;X<y;X++)for(let Z=0;Z<M;Z++)O.data[4*(X*M+Z)]=N,O.data[4*(X*M+Z)+1]=W,O.data[4*(X*M+Z)+2]=K,O.data[4*(X*M+Z)+3]=w[X][Z]*(255*$);I.putImageData(O,0,0),B=(0,i.throwIfFalsy)(L.createPattern(x,null)),D.set(P,B)}L.fillStyle=B,L.fillRect(S,g,A,U)})(o,a,p,E,t,R),!0;const c=e.boxDrawingDefinitions[r];if(c)return(function(L,w,S,g,A,U,D){L.strokeStyle=L.fillStyle;for(const[P,B]of Object.entries(w)){let M;L.beginPath(),L.lineWidth=D*Number.parseInt(P),M=typeof B=="function"?B(.15,.15/U*A):B;for(const y of M.split(" ")){const x=y[0],I=b[x];if(!I){console.error(`Could not find drawing instructions for "${x}"`);continue}const O=y.substring(1).split(",");O[0]&&O[1]&&I(L,_(O,A,U,S,g,!0,D))}L.stroke(),L.closePath()}})(o,c,p,E,t,R,n),!0;const l=e.powerlineDefinitions[r];return!!l&&((function(L,w,S,g,A,U,D,P){const B=new Path2D;B.rect(S,g,A,U),L.clip(B),L.beginPath();const M=D/12;L.lineWidth=P*M;for(const y of w.d.split(" ")){const x=y[0],I=b[x];if(!I){console.error(`Could not find drawing instructions for "${x}"`);continue}const O=y.substring(1).split(",");O[0]&&O[1]&&I(L,_(O,A,U,S,g,!1,P,(w.leftPadding??0)*(M/2),(w.rightPadding??0)*(M/2)))}w.type===1?(L.strokeStyle=L.fillStyle,L.stroke()):L.fill(),L.closePath()})(o,l,p,E,t,R,u,n),!0)};const i=v(4959);e.blockElementDefinitions={"▀":[{x:0,y:0,w:8,h:4}],"▁":[{x:0,y:7,w:8,h:1}],"▂":[{x:0,y:6,w:8,h:2}],"▃":[{x:0,y:5,w:8,h:3}],"▄":[{x:0,y:4,w:8,h:4}],"▅":[{x:0,y:3,w:8,h:5}],"▆":[{x:0,y:2,w:8,h:6}],"▇":[{x:0,y:1,w:8,h:7}],"█":[{x:0,y:0,w:8,h:8}],"▉":[{x:0,y:0,w:7,h:8}],"▊":[{x:0,y:0,w:6,h:8}],"▋":[{x:0,y:0,w:5,h:8}],"▌":[{x:0,y:0,w:4,h:8}],"▍":[{x:0,y:0,w:3,h:8}],"▎":[{x:0,y:0,w:2,h:8}],"▏":[{x:0,y:0,w:1,h:8}],"▐":[{x:4,y:0,w:4,h:8}],"▔":[{x:0,y:0,w:8,h:1}],"▕":[{x:7,y:0,w:1,h:8}],"▖":[{x:0,y:4,w:4,h:4}],"▗":[{x:4,y:4,w:4,h:4}],"▘":[{x:0,y:0,w:4,h:4}],"▙":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"▚":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"▛":[{x:0,y:0,w:4,h:8},{x:4,y:0,w:4,h:4}],"▜":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"▝":[{x:4,y:0,w:4,h:4}],"▞":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"▟":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"🭰":[{x:1,y:0,w:1,h:8}],"🭱":[{x:2,y:0,w:1,h:8}],"🭲":[{x:3,y:0,w:1,h:8}],"🭳":[{x:4,y:0,w:1,h:8}],"🭴":[{x:5,y:0,w:1,h:8}],"🭵":[{x:6,y:0,w:1,h:8}],"🭶":[{x:0,y:1,w:8,h:1}],"🭷":[{x:0,y:2,w:8,h:1}],"🭸":[{x:0,y:3,w:8,h:1}],"🭹":[{x:0,y:4,w:8,h:1}],"🭺":[{x:0,y:5,w:8,h:1}],"🭻":[{x:0,y:6,w:8,h:1}],"🭼":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🭽":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭾":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭿":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🮀":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮁":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮂":[{x:0,y:0,w:8,h:2}],"🮃":[{x:0,y:0,w:8,h:3}],"🮄":[{x:0,y:0,w:8,h:5}],"🮅":[{x:0,y:0,w:8,h:6}],"🮆":[{x:0,y:0,w:8,h:7}],"🮇":[{x:6,y:0,w:2,h:8}],"🮈":[{x:5,y:0,w:3,h:8}],"🮉":[{x:3,y:0,w:5,h:8}],"🮊":[{x:2,y:0,w:6,h:8}],"🮋":[{x:1,y:0,w:7,h:8}],"🮕":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"🮖":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"🮗":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};const f={"░":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"▒":[[1,0],[0,0],[0,1],[0,0]],"▓":[[0,1],[1,1],[1,0],[1,1]]};e.boxDrawingDefinitions={"─":{1:"M0,.5 L1,.5"},"━":{3:"M0,.5 L1,.5"},"│":{1:"M.5,0 L.5,1"},"┃":{3:"M.5,0 L.5,1"},"┌":{1:"M0.5,1 L.5,.5 L1,.5"},"┏":{3:"M0.5,1 L.5,.5 L1,.5"},"┐":{1:"M0,.5 L.5,.5 L.5,1"},"┓":{3:"M0,.5 L.5,.5 L.5,1"},"└":{1:"M.5,0 L.5,.5 L1,.5"},"┗":{3:"M.5,0 L.5,.5 L1,.5"},"┘":{1:"M.5,0 L.5,.5 L0,.5"},"┛":{3:"M.5,0 L.5,.5 L0,.5"},"├":{1:"M.5,0 L.5,1 M.5,.5 L1,.5"},"┣":{3:"M.5,0 L.5,1 M.5,.5 L1,.5"},"┤":{1:"M.5,0 L.5,1 M.5,.5 L0,.5"},"┫":{3:"M.5,0 L.5,1 M.5,.5 L0,.5"},"┬":{1:"M0,.5 L1,.5 M.5,.5 L.5,1"},"┳":{3:"M0,.5 L1,.5 M.5,.5 L.5,1"},"┴":{1:"M0,.5 L1,.5 M.5,.5 L.5,0"},"┻":{3:"M0,.5 L1,.5 M.5,.5 L.5,0"},"┼":{1:"M0,.5 L1,.5 M.5,0 L.5,1"},"╋":{3:"M0,.5 L1,.5 M.5,0 L.5,1"},"╴":{1:"M.5,.5 L0,.5"},"╸":{3:"M.5,.5 L0,.5"},"╵":{1:"M.5,.5 L.5,0"},"╹":{3:"M.5,.5 L.5,0"},"╶":{1:"M.5,.5 L1,.5"},"╺":{3:"M.5,.5 L1,.5"},"╷":{1:"M.5,.5 L.5,1"},"╻":{3:"M.5,.5 L.5,1"},"═":{1:(o,r)=>`M0,${.5-r} L1,${.5-r} M0,${.5+r} L1,${.5+r}`},"║":{1:(o,r)=>`M${.5-o},0 L${.5-o},1 M${.5+o},0 L${.5+o},1`},"╒":{1:(o,r)=>`M.5,1 L.5,${.5-r} L1,${.5-r} M.5,${.5+r} L1,${.5+r}`},"╓":{1:(o,r)=>`M${.5-o},1 L${.5-o},.5 L1,.5 M${.5+o},.5 L${.5+o},1`},"╔":{1:(o,r)=>`M1,${.5-r} L${.5-o},${.5-r} L${.5-o},1 M1,${.5+r} L${.5+o},${.5+r} L${.5+o},1`},"╕":{1:(o,r)=>`M0,${.5-r} L.5,${.5-r} L.5,1 M0,${.5+r} L.5,${.5+r}`},"╖":{1:(o,r)=>`M${.5+o},1 L${.5+o},.5 L0,.5 M${.5-o},.5 L${.5-o},1`},"╗":{1:(o,r)=>`M0,${.5+r} L${.5-o},${.5+r} L${.5-o},1 M0,${.5-r} L${.5+o},${.5-r} L${.5+o},1`},"╘":{1:(o,r)=>`M.5,0 L.5,${.5+r} L1,${.5+r} M.5,${.5-r} L1,${.5-r}`},"╙":{1:(o,r)=>`M1,.5 L${.5-o},.5 L${.5-o},0 M${.5+o},.5 L${.5+o},0`},"╚":{1:(o,r)=>`M1,${.5-r} L${.5+o},${.5-r} L${.5+o},0 M1,${.5+r} L${.5-o},${.5+r} L${.5-o},0`},"╛":{1:(o,r)=>`M0,${.5+r} L.5,${.5+r} L.5,0 M0,${.5-r} L.5,${.5-r}`},"╜":{1:(o,r)=>`M0,.5 L${.5+o},.5 L${.5+o},0 M${.5-o},.5 L${.5-o},0`},"╝":{1:(o,r)=>`M0,${.5-r} L${.5-o},${.5-r} L${.5-o},0 M0,${.5+r} L${.5+o},${.5+r} L${.5+o},0`},"╞":{1:(o,r)=>`M.5,0 L.5,1 M.5,${.5-r} L1,${.5-r} M.5,${.5+r} L1,${.5+r}`},"╟":{1:(o,r)=>`M${.5-o},0 L${.5-o},1 M${.5+o},0 L${.5+o},1 M${.5+o},.5 L1,.5`},"╠":{1:(o,r)=>`M${.5-o},0 L${.5-o},1 M1,${.5+r} L${.5+o},${.5+r} L${.5+o},1 M1,${.5-r} L${.5+o},${.5-r} L${.5+o},0`},"╡":{1:(o,r)=>`M.5,0 L.5,1 M0,${.5-r} L.5,${.5-r} M0,${.5+r} L.5,${.5+r}`},"╢":{1:(o,r)=>`M0,.5 L${.5-o},.5 M${.5-o},0 L${.5-o},1 M${.5+o},0 L${.5+o},1`},"╣":{1:(o,r)=>`M${.5+o},0 L${.5+o},1 M0,${.5+r} L${.5-o},${.5+r} L${.5-o},1 M0,${.5-r} L${.5-o},${.5-r} L${.5-o},0`},"╤":{1:(o,r)=>`M0,${.5-r} L1,${.5-r} M0,${.5+r} L1,${.5+r} M.5,${.5+r} L.5,1`},"╥":{1:(o,r)=>`M0,.5 L1,.5 M${.5-o},.5 L${.5-o},1 M${.5+o},.5 L${.5+o},1`},"╦":{1:(o,r)=>`M0,${.5-r} L1,${.5-r} M0,${.5+r} L${.5-o},${.5+r} L${.5-o},1 M1,${.5+r} L${.5+o},${.5+r} L${.5+o},1`},"╧":{1:(o,r)=>`M.5,0 L.5,${.5-r} M0,${.5-r} L1,${.5-r} M0,${.5+r} L1,${.5+r}`},"╨":{1:(o,r)=>`M0,.5 L1,.5 M${.5-o},.5 L${.5-o},0 M${.5+o},.5 L${.5+o},0`},"╩":{1:(o,r)=>`M0,${.5+r} L1,${.5+r} M0,${.5-r} L${.5-o},${.5-r} L${.5-o},0 M1,${.5-r} L${.5+o},${.5-r} L${.5+o},0`},"╪":{1:(o,r)=>`M.5,0 L.5,1 M0,${.5-r} L1,${.5-r} M0,${.5+r} L1,${.5+r}`},"╫":{1:(o,r)=>`M0,.5 L1,.5 M${.5-o},0 L${.5-o},1 M${.5+o},0 L${.5+o},1`},"╬":{1:(o,r)=>`M0,${.5+r} L${.5-o},${.5+r} L${.5-o},1 M1,${.5+r} L${.5+o},${.5+r} L${.5+o},1 M0,${.5-r} L${.5-o},${.5-r} L${.5-o},0 M1,${.5-r} L${.5+o},${.5-r} L${.5+o},0`},"╱":{1:"M1,0 L0,1"},"╲":{1:"M0,0 L1,1"},"╳":{1:"M1,0 L0,1 M0,0 L1,1"},"╼":{1:"M.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"╽":{1:"M.5,.5 L.5,0",3:"M.5,.5 L.5,1"},"╾":{1:"M.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"╿":{1:"M.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"┍":{1:"M.5,.5 L.5,1",3:"M.5,.5 L1,.5"},"┎":{1:"M.5,.5 L1,.5",3:"M.5,.5 L.5,1"},"┑":{1:"M.5,.5 L.5,1",3:"M.5,.5 L0,.5"},"┒":{1:"M.5,.5 L0,.5",3:"M.5,.5 L.5,1"},"┕":{1:"M.5,.5 L.5,0",3:"M.5,.5 L1,.5"},"┖":{1:"M.5,.5 L1,.5",3:"M.5,.5 L.5,0"},"┙":{1:"M.5,.5 L.5,0",3:"M.5,.5 L0,.5"},"┚":{1:"M.5,.5 L0,.5",3:"M.5,.5 L.5,0"},"┝":{1:"M.5,0 L.5,1",3:"M.5,.5 L1,.5"},"┞":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,.5 L.5,0"},"┟":{1:"M.5,0 L.5,.5 L1,.5",3:"M.5,.5 L.5,1"},"┠":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,1"},"┡":{1:"M.5,.5 L.5,1",3:"M.5,0 L.5,.5 L1,.5"},"┢":{1:"M.5,.5 L.5,0",3:"M0.5,1 L.5,.5 L1,.5"},"┥":{1:"M.5,0 L.5,1",3:"M.5,.5 L0,.5"},"┦":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"┧":{1:"M.5,0 L.5,.5 L0,.5",3:"M.5,.5 L.5,1"},"┨":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,1"},"┩":{1:"M.5,.5 L.5,1",3:"M.5,0 L.5,.5 L0,.5"},"┪":{1:"M.5,.5 L.5,0",3:"M0,.5 L.5,.5 L.5,1"},"┭":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┮":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,.5 L1,.5"},"┯":{1:"M.5,.5 L.5,1",3:"M0,.5 L1,.5"},"┰":{1:"M0,.5 L1,.5",3:"M.5,.5 L.5,1"},"┱":{1:"M.5,.5 L1,.5",3:"M0,.5 L.5,.5 L.5,1"},"┲":{1:"M.5,.5 L0,.5",3:"M0.5,1 L.5,.5 L1,.5"},"┵":{1:"M.5,0 L.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┶":{1:"M.5,0 L.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"┷":{1:"M.5,.5 L.5,0",3:"M0,.5 L1,.5"},"┸":{1:"M0,.5 L1,.5",3:"M.5,.5 L.5,0"},"┹":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,.5 L0,.5"},"┺":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,.5 L1,.5"},"┽":{1:"M.5,0 L.5,1 M.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┾":{1:"M.5,0 L.5,1 M.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"┿":{1:"M.5,0 L.5,1",3:"M0,.5 L1,.5"},"╀":{1:"M0,.5 L1,.5 M.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"╁":{1:"M.5,.5 L.5,0 M0,.5 L1,.5",3:"M.5,.5 L.5,1"},"╂":{1:"M0,.5 L1,.5",3:"M.5,0 L.5,1"},"╃":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,0 L.5,.5 L0,.5"},"╄":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,0 L.5,.5 L1,.5"},"╅":{1:"M.5,0 L.5,.5 L1,.5",3:"M0,.5 L.5,.5 L.5,1"},"╆":{1:"M.5,0 L.5,.5 L0,.5",3:"M0.5,1 L.5,.5 L1,.5"},"╇":{1:"M.5,.5 L.5,1",3:"M.5,.5 L.5,0 M0,.5 L1,.5"},"╈":{1:"M.5,.5 L.5,0",3:"M0,.5 L1,.5 M.5,.5 L.5,1"},"╉":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,1 M.5,.5 L0,.5"},"╊":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,1 M.5,.5 L1,.5"},"╌":{1:"M.1,.5 L.4,.5 M.6,.5 L.9,.5"},"╍":{3:"M.1,.5 L.4,.5 M.6,.5 L.9,.5"},"┄":{1:"M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5"},"┅":{3:"M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5"},"┈":{1:"M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5"},"┉":{3:"M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5"},"╎":{1:"M.5,.1 L.5,.4 M.5,.6 L.5,.9"},"╏":{3:"M.5,.1 L.5,.4 M.5,.6 L.5,.9"},"┆":{1:"M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333"},"┇":{3:"M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333"},"┊":{1:"M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95"},"┋":{3:"M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95"},"╭":{1:(o,r)=>`M.5,1 L.5,${.5+r/.15*.5} C.5,${.5+r/.15*.5},.5,.5,1,.5`},"╮":{1:(o,r)=>`M.5,1 L.5,${.5+r/.15*.5} C.5,${.5+r/.15*.5},.5,.5,0,.5`},"╯":{1:(o,r)=>`M.5,0 L.5,${.5-r/.15*.5} C.5,${.5-r/.15*.5},.5,.5,0,.5`},"╰":{1:(o,r)=>`M.5,0 L.5,${.5-r/.15*.5} C.5,${.5-r/.15*.5},.5,.5,1,.5`}},e.powerlineDefinitions={"":{d:"M.3,1 L.03,1 L.03,.88 C.03,.82,.06,.78,.11,.73 C.15,.7,.2,.68,.28,.65 L.43,.6 C.49,.58,.53,.56,.56,.53 C.59,.5,.6,.47,.6,.43 L.6,.27 L.4,.27 L.69,.1 L.98,.27 L.78,.27 L.78,.46 C.78,.52,.76,.56,.72,.61 C.68,.66,.63,.67,.56,.7 L.48,.72 C.42,.74,.38,.76,.35,.78 C.32,.8,.31,.84,.31,.88 L.31,1 M.3,.5 L.03,.59 L.03,.09 L.3,.09 L.3,.655",type:0},"":{d:"M.7,.4 L.7,.47 L.2,.47 L.2,.03 L.355,.03 L.355,.4 L.705,.4 M.7,.5 L.86,.5 L.86,.95 L.69,.95 L.44,.66 L.46,.86 L.46,.95 L.3,.95 L.3,.49 L.46,.49 L.71,.78 L.69,.565 L.69,.5",type:0},"":{d:"M.25,.94 C.16,.94,.11,.92,.11,.87 L.11,.53 C.11,.48,.15,.455,.23,.45 L.23,.3 C.23,.25,.26,.22,.31,.19 C.36,.16,.43,.15,.51,.15 C.59,.15,.66,.16,.71,.19 C.77,.22,.79,.26,.79,.3 L.79,.45 C.87,.45,.91,.48,.91,.53 L.91,.87 C.91,.92,.86,.94,.77,.94 L.24,.94 M.53,.2 C.49,.2,.45,.21,.42,.23 C.39,.25,.38,.27,.38,.3 L.38,.45 L.68,.45 L.68,.3 C.68,.27,.67,.25,.64,.23 C.61,.21,.58,.2,.53,.2 M.58,.82 L.58,.66 C.63,.65,.65,.63,.65,.6 C.65,.58,.64,.57,.61,.56 C.58,.55,.56,.54,.52,.54 C.48,.54,.46,.55,.43,.56 C.4,.57,.39,.59,.39,.6 C.39,.63,.41,.64,.46,.66 L.46,.82 L.57,.82",type:0},"":{d:"M0,0 L1,.5 L0,1",type:0,rightPadding:2},"":{d:"M-1,-.5 L1,.5 L-1,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M1,0 L0,.5 L1,1",type:0,leftPadding:2},"":{d:"M2,-.5 L0,.5 L2,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M0,0 L0,1 C0.552,1,1,0.776,1,.5 C1,0.224,0.552,0,0,0",type:0,rightPadding:1},"":{d:"M.2,1 C.422,1,.8,.826,.78,.5 C.8,.174,0.422,0,.2,0",type:1,rightPadding:1},"":{d:"M1,0 L1,1 C0.448,1,0,0.776,0,.5 C0,0.224,0.448,0,1,0",type:0,leftPadding:1},"":{d:"M.8,1 C0.578,1,0.2,.826,.22,.5 C0.2,0.174,0.578,0,0.8,0",type:1,leftPadding:1},"":{d:"M-.5,-.5 L1.5,1.5 L-.5,1.5",type:0},"":{d:"M-.5,-.5 L1.5,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M1.5,-.5 L-.5,1.5 L1.5,1.5",type:0},"":{d:"M1.5,-.5 L-.5,1.5 L-.5,-.5",type:0},"":{d:"M1.5,-.5 L-.5,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M-.5,-.5 L1.5,1.5 L1.5,-.5",type:0}},e.powerlineDefinitions[""]=e.powerlineDefinitions[""],e.powerlineDefinitions[""]=e.powerlineDefinitions[""];const h=new Map;function C(o,r,p=0){return Math.max(Math.min(o,r),p)}const b={C:(o,r)=>o.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]),L:(o,r)=>o.lineTo(r[0],r[1]),M:(o,r)=>o.moveTo(r[0],r[1])};function _(o,r,p,E,t,R,u,n=0,s=0){const a=o.map((c=>parseFloat(c)||parseInt(c)));if(a.length<2)throw new Error("Too few arguments for instruction");for(let c=0;c<a.length;c+=2)a[c]*=r-n*u-s*u,R&&a[c]!==0&&(a[c]=C(Math.round(a[c]+.5)-.5,r,0)),a[c]+=E+n*u;for(let c=1;c<a.length;c+=2)a[c]*=p,R&&a[c]!==0&&(a[c]=C(Math.round(a[c]+.5)-.5,p,0)),a[c]+=t;return a}},697:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.observeDevicePixelDimensions=function(f,h,C){let b=new h.ResizeObserver((_=>{const o=_.find((E=>E.target===f));if(!o)return;if(!("devicePixelContentBoxSize"in o))return b?.disconnect(),void(b=void 0);const r=o.devicePixelContentBoxSize[0].inlineSize,p=o.devicePixelContentBoxSize[0].blockSize;r>0&&p>0&&C(r,p)}));try{b.observe(f,{box:["device-pixel-content-box"]})}catch{b.disconnect(),b=void 0}return(0,i.toDisposable)((()=>b?.disconnect()))};const i=v(2540)},3028:(j,e,v)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GlyphRenderer=void 0;const i=v(2115),f=v(1564),h=v(2540),C=v(5719),b=v(4959),_=11,o=_*Float32Array.BYTES_PER_ELEMENT;let r,p=0,E=0,t=0;class R extends h.Disposable{constructor(n,s,a,c){super(),this._terminal=n,this._gl=s,this._dimensions=a,this._optionsService=c,this._activeBuffer=0,this._vertices={count:0,attributes:new Float32Array(0),attributesBuffers:[new Float32Array(0),new Float32Array(0)]};const l=this._gl;i.TextureAtlas.maxAtlasPages===void 0&&(i.TextureAtlas.maxAtlasPages=Math.min(32,(0,b.throwIfFalsy)(l.getParameter(l.MAX_TEXTURE_IMAGE_UNITS))),i.TextureAtlas.maxTextureSize=(0,b.throwIfFalsy)(l.getParameter(l.MAX_TEXTURE_SIZE))),this._program=(0,b.throwIfFalsy)((0,C.createProgram)(l,`#version 300 es
2
2
  layout (location = 0) in vec2 a_unitquad;
3
3
  layout (location = 1) in vec2 a_cellpos;
4
4
  layout (location = 2) in vec2 a_offset;
@@ -1 +1 @@
1
- .s-scoutbot-chip{display:inline-flex;align-items:center;gap:var(--space-xs);max-width:38vw;height:18px;border:1px solid transparent;border-radius:var(--radius-lg);background:transparent;color:var(--muted);font-family:var(--font-mono);font-size:var(--text-xs);font-weight:400;line-height:var(--leading-none);cursor:pointer;transition:color .12s ease,border-color .12s ease,background-color .12s ease,opacity .12s ease}.s-scoutbot-chip-dot{position:relative;top:-1.5px}.s-scoutbot-chip--idle{padding:1px var(--space-2xs)}.s-scoutbot-chip--idle .s-scoutbot-chip-icon{color:var(--muted)}.s-scoutbot-chip--idle:hover .s-scoutbot-chip-icon{color:var(--ink)}.s-scoutbot-chip--active{padding:1px var(--space-sm);color:var(--ink);border-color:color-mix(in srgb,var(--accent) 35%,var(--border));background:color-mix(in srgb,var(--accent) 8%,transparent)}.s-scoutbot-chip--active:hover{border-color:color-mix(in srgb,var(--accent) 60%,var(--border))}.s-scoutbot-chip--active .s-scoutbot-chip-icon{color:color-mix(in srgb,var(--accent) 80%,var(--ink))}.s-scoutbot-chip--activity{padding:1px var(--space-sm);color:var(--ink);border-color:color-mix(in srgb,var(--accent) 45%,var(--border));background:color-mix(in srgb,var(--accent) 10%,transparent)}.s-scoutbot-chip--activity:hover{border-color:color-mix(in srgb,var(--accent) 70%,var(--border))}.s-scoutbot-chip--activity .s-scoutbot-chip-icon{color:color-mix(in srgb,var(--accent) 90%,var(--ink))}.s-scoutbot-chip-spinner{flex-shrink:0;animation:s-scoutbot-chip-spin 1s linear infinite}@keyframes s-scoutbot-chip-spin{to{transform:rotate(360deg)}}.s-scoutbot-chip-dot--pulse{background:color-mix(in srgb,var(--accent) 80%,var(--ink));animation:s-scoutbot-chip-pulse 1.4s ease-in-out infinite}@keyframes s-scoutbot-chip-pulse{0%,to{opacity:.4}50%{opacity:1}}.s-scoutbot-chip--fresh{padding:1px var(--space-xs);color:var(--muted);border-color:color-mix(in srgb,var(--accent) 20%,var(--border));background:transparent}.s-scoutbot-chip--fresh:hover{color:var(--ink);border-color:color-mix(in srgb,var(--accent) 40%,var(--border))}.s-scoutbot-chip--fresh .s-scoutbot-chip-icon{color:color-mix(in srgb,var(--accent) 60%,var(--muted))}.s-scoutbot-chip-icon{flex-shrink:0}.s-scoutbot-chip-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0;background:var(--muted)}.s-scoutbot-chip-dot--info{background:var(--muted)}.s-scoutbot-chip-dot--warn{background:color-mix(in srgb,var(--amber) 70%,var(--muted))}.s-scoutbot-chip-dot--error{background:color-mix(in srgb,var(--red) 70%,var(--muted))}.s-scoutbot-chip-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
1
+ .s-scoutbot-chip{display:inline-flex;align-items:center;gap:var(--space-xs);max-width:38vw;height:18px;border:1px solid transparent;border-radius:var(--radius-lg);background:transparent;color:var(--muted);font-family:var(--font-mono);font-size:var(--text-xs);font-weight:400;line-height:var(--leading-none);cursor:pointer;transition:color .12s ease,border-color .12s ease,background-color .12s ease,opacity .12s ease}.s-scoutbot-chip-dot{position:relative;top:-1.5px}.s-scoutbot-chip--idle{padding:1px var(--space-2xs)}.s-scoutbot-chip--idle .s-scoutbot-chip-icon{color:var(--muted)}.s-scoutbot-chip--idle:hover .s-scoutbot-chip-icon{color:var(--ink)}.s-scoutbot-chip--active{padding:1px var(--space-sm);color:var(--ink);border-color:color-mix(in srgb,var(--accent) 35%,var(--border));background:color-mix(in srgb,var(--accent) 8%,transparent)}.s-scoutbot-chip--active:hover{border-color:color-mix(in srgb,var(--accent) 60%,var(--border))}.s-scoutbot-chip--active .s-scoutbot-chip-icon{color:color-mix(in srgb,var(--accent) 80%,var(--ink))}.s-scoutbot-chip--activity{padding:1px var(--space-sm);color:var(--ink);border-color:color-mix(in srgb,var(--accent) 45%,var(--border));background:color-mix(in srgb,var(--accent) 10%,transparent)}.s-scoutbot-chip--activity:hover{border-color:color-mix(in srgb,var(--accent) 70%,var(--border))}.s-scoutbot-chip--activity .s-scoutbot-chip-icon{color:color-mix(in srgb,var(--accent) 90%,var(--ink))}.s-scoutbot-chip-spinner{flex-shrink:0;animation:s-scoutbot-chip-spin 1s linear infinite}@keyframes s-scoutbot-chip-spin{to{transform:rotate(360deg)}}.s-scoutbot-chip-dot--pulse{background:color-mix(in srgb,var(--accent) 80%,var(--ink));animation:s-scoutbot-chip-pulse 1.4s ease-in-out infinite}@keyframes s-scoutbot-chip-pulse{0%,to{opacity:.4}50%{opacity:1}}.s-scoutbot-chip--fresh{padding:1px var(--space-xs);color:var(--muted);border-color:color-mix(in srgb,var(--accent) 20%,var(--border));background:transparent}.s-scoutbot-chip--fresh:hover{color:var(--ink);border-color:color-mix(in srgb,var(--accent) 40%,var(--border))}.s-scoutbot-chip--fresh .s-scoutbot-chip-icon{color:color-mix(in srgb,var(--accent) 60%,var(--muted))}.s-scoutbot-chip-icon{flex-shrink:0}.s-scoutbot-chip-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0;background:var(--muted)}.s-scoutbot-chip-dot--info{background:var(--muted)}.s-scoutbot-chip-dot--warn{background:color-mix(in srgb,var(--amber) 70%,var(--muted))}.s-scoutbot-chip-dot--error{background:color-mix(in srgb,var(--red) 70%,var(--muted))}.s-scoutbot-chip-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agent-autocomplete{display:flex;flex-direction:column;max-height:240px;overflow-y:auto}.agent-autocomplete-empty{padding:var(--space-md) var(--space-sm);font-size:var(--text-sm);color:var(--muted);text-align:center}.agent-autocomplete-item{display:flex;align-items:center;gap:var(--space-sm);padding:var(--space-xs) var(--space-sm);background:transparent;border:none;border-radius:var(--radius-md);cursor:pointer;text-align:left;color:var(--ink);font-family:inherit;width:100%}.agent-autocomplete-item:hover,.agent-autocomplete-item.is-active{background:color-mix(in srgb,var(--ink) 10%,transparent)}.agent-autocomplete-item:disabled{opacity:.5;cursor:default}.agent-autocomplete-avatar{width:22px;height:22px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;font-size:var(--text-2xs);font-weight:700;color:var(--scout-chrome-avatar-ink);flex-shrink:0}.agent-autocomplete-info{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1}.agent-autocomplete-name{font-size:var(--text-md);font-weight:500;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agent-autocomplete-handle{font-size:var(--text-xs);color:var(--dim);font-family:var(--font-mono);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agent-picker{position:absolute;top:calc(100% + 6px);width:240px;background:var(--bg);border:1px solid color-mix(in srgb,var(--ink) 14%,transparent);border-radius:var(--radius-lg);box-shadow:0 12px 32px #00000059;padding:var(--space-xs);z-index:30;display:flex;flex-direction:column;gap:var(--space-2xs)}.agent-picker--below-right{right:0}.agent-picker--below-left{left:0}.agent-picker-search{width:100%;background:color-mix(in srgb,var(--ink) 4%,transparent);border:1px solid color-mix(in srgb,var(--ink) 10%,transparent);border-radius:var(--radius-md);color:var(--ink);font-size:var(--text-md);padding:var(--space-xs) var(--space-sm);outline:none;font-family:inherit}.agent-picker-search:focus{border-color:color-mix(in srgb,var(--ink) 25%,transparent)}.agent-mention-wrap{position:relative;display:flex;flex-direction:column;flex:1}.agent-mention-popover{position:absolute;width:240px;background:var(--bg);border:1px solid color-mix(in srgb,var(--ink) 14%,transparent);border-radius:var(--radius-lg);box-shadow:0 12px 32px #00000059;padding:var(--space-xs);z-index:30}
@@ -0,0 +1,10 @@
1
+ import{c as Q}from"./createLucideIcon-DXpqZP7I.js";import{r as g,j as h}from"./index-CZ-05hKz.js";import{m as j,p as pt,a as rs,n as Z,i as as,b as Ce,d as De,r as Rt,t as Re,f as R,e as ot,S as ls,g as B,h as Le,j as xt,k as Ae,o as D,q as Y,s as vt,v as Ut,M as cs,w as Me,P as Ve,x as us,y as Ne,z as _t,A as hs,B as et,C as ds,c as fs}from"./use-reduced-motion-CKkhq9c5.js";import{i as _,b as ms,r as ps,s as Ht,p as Lt,d as gs,e as Be,f as ys,h as q,t as X,j as bt,k as Ft,l as xs,m as vs,n as bs,o as Ps,q as Nt,u as Pt,v as ws,w as ks,x as Ie,y as Ts,z as Ss,A as Es,B as js,C as Wt,D as Cs,F as ze,g as Ds,a as Rs,c as Ls}from"./gestures-Bq9XnSqY.js";import{o as As,t as Ms,a as Vs}from"./Provider-B2xuo3rf.js";import{L as st}from"./loader-circle-BiohlpM3.js";import{R as Oe}from"./radio-Dm1ItnA4.js";import{b as Ns,M as Bs}from"./DocumentFocusViewer-DZVhS7as.js";import{C as Is}from"./chevron-down-Mp9mu_yd.js";import{P as zs}from"./plus-CuU_X0-8.js";import{S as Os,i as $s}from"./text-CnZ0e1-V.js";import"./perf-PX8Rx0EP.js";import{B as Us}from"./bot-B5sub1-i.js";import{d as _s}from"./colors-BtO5_zlx.js";const Hs=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],Fs=Q("history",Hs);const Ws=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],Gs=Q("list-tree",Ws);const qs=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Xs=Q("play",qs);const Ys=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],Gt=Q("settings-2",Ys);const Ks=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],Qn=Q("volume-2",Ks);const Zs=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]],Jn=Q("volume-x",Zs);function Qs(t){return t==="x"||t==="y"?_[t]?null:(_[t]=!0,()=>{_[t]=!1}):_.x||_.y?null:(_.x=_.y=!0,()=>{_.x=_.y=!1})}function Bt(t){return ms(t)&&"ownerSVGElement"in t}const ht=new WeakMap;let dt;const $e=(t,e,i)=>(s,r)=>r&&r[0]?r[0][t+"Size"]:Bt(s)&&"getBBox"in s?s.getBBox()[e]:s[i],Js=$e("inline","width","offsetWidth"),ti=$e("block","height","offsetHeight");function ei({target:t,borderBoxSize:e}){ht.get(t)?.forEach(i=>{i(t,{get width(){return Js(t,e)},get height(){return ti(t,e)}})})}function si(t){t.forEach(ei)}function ii(){typeof ResizeObserver>"u"||(dt=new ResizeObserver(si))}function ni(t,e){dt||ii();const i=ps(t);return i.forEach(s=>{let r=ht.get(s);r||(r=new Set,ht.set(s,r)),r.add(e),dt?.observe(s)}),()=>{i.forEach(s=>{const r=ht.get(s);r?.delete(e),r?.size||dt?.unobserve(s)})}}const ft=new Set;let K;function oi(){K=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};ft.forEach(e=>e(t))},window.addEventListener("resize",K)}function ri(t){return ft.add(t),K||oi(),()=>{ft.delete(t),!ft.size&&typeof K=="function"&&(window.removeEventListener("resize",K),K=void 0)}}function qt(t,e){return typeof t=="function"?ri(t):ni(t,e)}function ai(t){return Bt(t)&&t.tagName==="svg"}function At(t,e){t.min=e.min,t.max=e.max}function z(t,e){At(t.x,e.x),At(t.y,e.y)}function Xt(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const Ue=1e-4,li=1-Ue,ci=1+Ue,_e=.01,ui=0-_e,hi=0+_e;function L(t){return t.max-t.min}function di(t,e,i){return Math.abs(t-e)<=i}function Yt(t,e,i,s=.5){t.origin=s,t.originPoint=j(e.min,e.max,t.origin),t.scale=L(i)/L(e),t.translate=j(i.min,i.max,t.origin)-t.originPoint,(t.scale>=li&&t.scale<=ci||isNaN(t.scale))&&(t.scale=1),(t.translate>=ui&&t.translate<=hi||isNaN(t.translate))&&(t.translate=0)}function it(t,e,i,s){Yt(t.x,e.x,i.x,s?s.originX:void 0),Yt(t.y,e.y,i.y,s?s.originY:void 0)}function Kt(t,e,i,s=0){const r=s?j(i.min,i.max,s):i.min;t.min=r+e.min,t.max=t.min+L(e)}function fi(t,e,i,s){Kt(t.x,e.x,i.x,s?.x),Kt(t.y,e.y,i.y,s?.y)}function Zt(t,e,i,s=0){const r=s?j(i.min,i.max,s):i.min;t.min=e.min-r,t.max=t.min+L(e)}function gt(t,e,i,s){Zt(t.x,e.x,i.x,s?.x),Zt(t.y,e.y,i.y,s?.y)}function Qt(t,e,i,s,r){return t-=e,t=Ht(t,1/i,s),r!==void 0&&(t=Ht(t,1/r,s)),t}function mi(t,e=0,i=1,s=.5,r,a=t,n=t){if(pt.test(e)&&(e=parseFloat(e),e=j(n.min,n.max,e/100)-n.min),typeof e!="number")return;let o=j(a.min,a.max,s);t===a&&(o-=e),t.min=Qt(t.min,e,i,o,r),t.max=Qt(t.max,e,i,o,r)}function Jt(t,e,[i,s,r],a,n){mi(t,e[i],e[s],e[r],e.scale,a,n)}const pi=["x","scaleX","originX"],gi=["y","scaleY","originY"];function te(t,e,i,s){Jt(t.x,e,pi,i?i.x:void 0,s?s.x:void 0),Jt(t.y,e,gi,i?i.y:void 0,s?s.y:void 0)}function ee(t){return t.translate===0&&t.scale===1}function He(t){return ee(t.x)&&ee(t.y)}function se(t,e){return t.min===e.min&&t.max===e.max}function yi(t,e){return se(t.x,e.x)&&se(t.y,e.y)}function ie(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Fe(t,e){return ie(t.x,e.x)&&ie(t.y,e.y)}function ne(t){return L(t.x)/L(t.y)}function oe(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function O(t){return[t("x"),t("y")]}function xi(t,e,i){let s="";const r=t.x.translate/e.x,a=t.y.translate/e.y,n=i?.z||0;if((r||a||n)&&(s=`translate3d(${r}px, ${a}px, ${n}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){const{transformPerspective:c,rotate:u,pathRotation:d,rotateX:f,rotateY:p,skewX:x,skewY:y}=i;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),d&&(s+=`rotate(${d}deg) `),f&&(s+=`rotateX(${f}deg) `),p&&(s+=`rotateY(${p}deg) `),x&&(s+=`skewX(${x}deg) `),y&&(s+=`skewY(${y}deg) `)}const o=t.x.scale*e.x,l=t.y.scale*e.y;return(o!==1||l!==1)&&(s+=`scale(${o}, ${l})`),s||"none"}const We=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],vi=We.length,re=t=>typeof t=="string"?parseFloat(t):t,ae=t=>typeof t=="number"||rs.test(t);function bi(t,e,i,s,r,a){r?(t.opacity=j(0,i.opacity??1,Pi(s)),t.opacityExit=j(e.opacity??1,0,wi(s))):a&&(t.opacity=j(e.opacity??1,i.opacity??1,s));for(let n=0;n<vi;n++){const o=We[n];let l=le(e,o),c=le(i,o);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||ae(l)===ae(c)?(t[o]=Math.max(j(re(l),re(c),s),0),(pt.test(c)||pt.test(l))&&(t[o]+="%")):t[o]=c}(e.rotate||i.rotate)&&(t.rotate=j(e.rotate||0,i.rotate||0,s))}function le(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Pi=Ge(0,.5,gs),wi=Ge(.5,.95,Z);function Ge(t,e,i){return s=>s<t?0:s>e?1:i(Lt(t,e,s))}function ki(t,e,i){const s=as(t)?t:Ce(t);return s.start(Be("",s,e,i)),s.animation}const Ti=(t,e)=>t.depth-e.depth;class Si{constructor(){this.children=[],this.isDirty=!1}add(e){De(this.children,e),this.isDirty=!0}remove(e){Rt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ti),this.isDirty=!1,this.children.forEach(e)}}function Ei(t,e){const i=Re.now(),s=({timestamp:r})=>{const a=r-i;a>=e&&(ot(s),t(a-e))};return R.setup(s,!0),()=>ot(s)}class ji{constructor(){this.members=[]}add(e){De(this.members,e);for(let i=this.members.length-1;i>=0;i--){const s=this.members[i];if(s===e||s===this.lead||s===this.prevLead)continue;const r=s.instance;(!r||r.isConnected===!1)&&!s.snapshot&&(Rt(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(Rt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(e){for(let i=this.members.indexOf(e)-1;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,i){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:r}=s.options,{layoutDependency:a}=e.options;(r===void 0||r!==a)&&(e.resumeFrom=s,i&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const mt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},wt=["","X","Y","Z"],Ci=1e3;let Di=0;function kt(t,e,i,s){const{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),s&&(s[t]=0))}function qe(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const i=Ps(e);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:r,layoutId:a}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",R,!(r||a))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&qe(s)}function Xe({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(n={},o=e?.()){this.id=Di++,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(Ai),this.nodes.forEach(zi),this.nodes.forEach(Oi),this.nodes.forEach(Mi)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=n,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Si)}addEventListener(n,o){return this.eventHandlers.has(n)||this.eventHandlers.set(n,new ls),this.eventHandlers.get(n).add(o)}notifyListeners(n,...o){const l=this.eventHandlers.get(n);l&&l.notify(...o)}hasListeners(n){return this.eventHandlers.has(n)}mount(n){if(this.instance)return;this.isSVG=Bt(n)&&!ai(n),this.instance=n;const{layoutId:o,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(n),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||o)&&(this.isLayoutDirty=!0),t){let u,d=0;const f=()=>this.root.updateBlockedByResize=!1;R.read(()=>{d=window.innerWidth}),t(n,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,u&&u(),u=Ei(f,250),mt.hasAnimatedSinceResize&&(mt.hasAnimatedSinceResize=!1,this.nodes.forEach(he)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&c&&(o||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||c.getDefaultTransition()||Fi,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=c.getProps(),v=!this.targetLayout||!Fe(this.targetLayout,p),P=!d&&f;if(this.options.layoutRoot||this.resumeFrom||P||d&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const k={...ys(x,"layout"),onPlay:y,onComplete:b};(c.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k),this.setAnimationOrigin(u,P,k.path)}else d||he(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const n=this.getStack();n&&n.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ot(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($i),this.animationId++)}getTransformTemplate(){const{visualElement:n}=this.options;return n&&n.getProps().transformTemplate}willUpdate(n=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&qe(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),n&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(Ni),this.nodes.forEach(ce);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ue);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Bi),this.nodes.forEach(Ii),this.nodes.forEach(Ri),this.nodes.forEach(Li)):this.nodes.forEach(ue),this.clearAllSnapshots();const o=Re.now();B.delta=Le(0,1e3/60,o-B.timestamp),B.timestamp=o,B.isProcessing=!0,xt.update.process(B),xt.preRender.process(B),xt.render.process(B),B.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ae.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Vi),this.sharedNodes.forEach(Ui)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,R.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){R.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!L(this.snapshot.measuredBox.x)&&!L(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const n=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=D()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,n?n.layoutBox:void 0)}updateScroll(n="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===n&&(o=!1),o&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:n,isRoot:l,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const n=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!He(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;n&&this.instance&&(o||q(this.latestValues)||u)&&(r(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(n=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return n&&(l=this.removeTransform(l)),Wi(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:n}=this.options;if(!n)return D();const o=n.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Gi))){const{scroll:c}=this.root;c&&(X(o.x,c.offset.x),X(o.y,c.offset.y))}return o}removeElementScroll(n){const o=D();if(z(o,n),this.scroll?.wasRoot)return o;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:d}=c;c!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&z(o,n),X(o.x,u.offset.x),X(o.y,u.offset.y))}return o}applyTransform(n,o=!1,l){const c=l||D();z(c,n);for(let u=0;u<this.path.length;u++){const d=this.path[u];!o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(X(c.x,-d.scroll.offset.x),X(c.y,-d.scroll.offset.y)),q(d.latestValues)&&bt(c,d.latestValues,d.layout?.layoutBox)}return q(this.latestValues)&&bt(c,this.latestValues,this.layout?.layoutBox),c}removeTransform(n){const o=D();z(o,n);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!q(c.latestValues))continue;let u;c.instance&&(Ft(c.latestValues)&&c.updateSnapshot(),u=D(),z(u,c.measurePageBox())),te(o,c.latestValues,c.snapshot?.layoutBox,u)}return q(this.latestValues)&&te(o,this.latestValues),o}setTargetDelta(n){this.targetDelta=n,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(n){this.options={...this.options,...n,crossfade:n.crossfade!==void 0?n.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!==B.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(n=!1){const o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==o;if(!(n||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=B.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=D(),this.targetWithTransforms=D()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),fi(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):z(this.target,this.layout.layoutBox),xs(this.target,this.targetDelta)):z(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ft(this.parent.latestValues)||vs(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(n,o,l){this.relativeParent=n,this.linkedParentVersion=n.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=D(),this.relativeTargetOrigin=D(),gt(this.relativeTargetOrigin,o,l,this.options.layoutAnchor||void 0),z(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const n=this.getLead(),o=!!this.resumingFrom||this!==n;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),o&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===B.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;z(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;bs(this.layoutCorrected,this.treeScale,this.path,o),n.layout&&!n.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(n.target=n.layout.layoutBox,n.targetWithTransforms=D());const{target:p}=n;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Xt(this.prevProjectionDelta.x,this.projectionDelta.x),Xt(this.prevProjectionDelta.y,this.projectionDelta.y)),it(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!oe(this.projectionDelta.x,this.prevProjectionDelta.x)||!oe(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(n=!0){if(this.options.visualElement?.scheduleRender(),n){const o=this.getStack();o&&o.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Y(),this.projectionDelta=Y(),this.projectionDeltaWithTransform=Y()}setAnimationOrigin(n,o=!1,l){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},f=Y();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const p=D(),x=c?c.source:void 0,y=this.layout?this.layout.source:void 0,b=x!==y,v=this.getStack(),P=!v||v.members.length<=1,k=!!(b&&!P&&this.options.crossfade===!0&&!this.path.some(Hi));this.animationProgress=0;let w;const A=l?.interpolateProjection(n);this.mixTargetDelta=E=>{const C=E/1e3,T=A?.(C);T?(f.x.translate=T.x,f.x.scale=j(n.x.scale,1,C),f.x.origin=n.x.origin,f.x.originPoint=n.x.originPoint,f.y.translate=T.y,f.y.scale=j(n.y.scale,1,C),f.y.origin=n.y.origin,f.y.originPoint=n.y.originPoint):(de(f.x,n.x,C),de(f.y,n.y,C)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(gt(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),_i(this.relativeTarget,this.relativeTargetOrigin,p,C),w&&yi(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=D()),z(w,this.relativeTarget)),b&&(this.animationValues=d,bi(d,u,this.latestValues,C,k,P)),T&&T.rotate!==void 0&&(this.animationValues||(this.animationValues=d),this.animationValues.pathRotation=T.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(n){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=R.update(()=>{mt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ce(0)),this.motionValue.jump(0,!1),this.currentAnimation=ki(this.motionValue,[0,1e3],{...n,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),n.onUpdate&&n.onUpdate(o)},onStop:()=>{},onComplete:()=>{n.onComplete&&n.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 n=this.getStack();n&&n.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ci),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const n=this.getLead();let{targetWithTransforms:o,target:l,layout:c,latestValues:u}=n;if(!(!o||!l||!c)){if(this!==n&&this.layout&&c&&Ye(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||D();const d=L(this.layout.layoutBox.x);l.x.min=n.target.x.min,l.x.max=l.x.min+d;const f=L(this.layout.layoutBox.y);l.y.min=n.target.y.min,l.y.max=l.y.min+f}z(o,l),bt(o,u),it(this.projectionDeltaWithTransform,this.layoutCorrected,o,u)}}registerSharedNode(n,o){this.sharedNodes.has(n)||this.sharedNodes.set(n,new ji),this.sharedNodes.get(n).add(o);const c=o.options.initialPromotionConfig;o.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(o):void 0})}isLead(){const n=this.getStack();return n?n.lead===this:!0}getLead(){const{layoutId:n}=this.options;return n?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:n}=this.options;return n?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:n}=this.options;if(n)return this.root.sharedNodes.get(n)}promote({needsReset:n,transition:o,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),n&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const n=this.getStack();return n?n.relegate(this):!1}resetSkewAndRotation(){const{visualElement:n}=this.options;if(!n)return;let o=!1;const{latestValues:l}=n;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const c={};l.z&&kt("z",n,c,this.animationValues);for(let u=0;u<wt.length;u++)kt(`rotate${wt[u]}`,n,c,this.animationValues),kt(`skew${wt[u]}`,n,c,this.animationValues);n.render();for(const u in c)n.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);n.scheduleRender()}applyProjectionStyles(n,o){if(!this.instance||this.isSVG)return;if(!this.isVisible){n.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,n.visibility="",n.opacity="",n.pointerEvents=vt(o?.pointerEvents)||"",n.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(n.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,n.pointerEvents=vt(o?.pointerEvents)||""),this.hasProjected&&!q(this.latestValues)&&(n.transform=l?l({},""):"none",this.hasProjected=!1);return}n.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=xi(this.projectionDeltaWithTransform,this.treeScale,u);l&&(d=l(u,d)),n.transform=d;const{x:f,y:p}=this.projectionDelta;n.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,c.animationValues?n.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:n.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const x in Ut){if(u[x]===void 0)continue;const{correct:y,applyTo:b,isCSSVariable:v}=Ut[x],P=d==="none"?u[x]:y(u[x],c);if(b){const k=b.length;for(let w=0;w<k;w++)n[b[w]]=P}else v?this.options.visualElement.renderState.vars[x]=P:n[x]=P}this.options.layoutId&&(n.pointerEvents=c===this?vt(o?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(n=>n.currentAnimation?.stop()),this.root.nodes.forEach(ce),this.root.sharedNodes.clear()}}}function Ri(t){t.updateLayout()}function Li(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:r}=t.options,a=e.source!==t.layout.source;if(r==="size")O(u=>{const d=a?e.measuredBox[u]:e.layoutBox[u],f=L(d);d.min=i[u].min,d.max=d.min+f});else if(r==="x"||r==="y"){const u=r==="x"?"y":"x";At(a?e.measuredBox[u]:e.layoutBox[u],i[u])}else Ye(r,e.layoutBox,i)&&O(u=>{const d=a?e.measuredBox[u]:e.layoutBox[u],f=L(i[u]);d.max=d.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+f)});const n=Y();it(n,i,e.layoutBox);const o=Y();a?it(o,t.applyTransform(s,!0),e.measuredBox):it(o,i,e.layoutBox);const l=!He(n);let c=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:f}=u;if(d&&f){const p=t.options.layoutAnchor||void 0,x=D();gt(x,e.layoutBox,d.layoutBox,p);const y=D();gt(y,i,f.layoutBox,p),Fe(x,y)||(c=!0),u.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=x,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:n,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function Ai(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Mi(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Vi(t){t.clearSnapshot()}function ce(t){t.clearMeasurements()}function Ni(t){t.isLayoutDirty=!0,t.updateLayout()}function ue(t){t.isLayoutDirty=!1}function Bi(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function Ii(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function he(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function zi(t){t.resolveTargetDelta()}function Oi(t){t.calcProjection()}function $i(t){t.resetSkewAndRotation()}function Ui(t){t.removeLeadSnapshot()}function de(t,e,i){t.translate=j(e.translate,0,i),t.scale=j(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function fe(t,e,i,s){t.min=j(e.min,i.min,s),t.max=j(e.max,i.max,s)}function _i(t,e,i,s){fe(t.x,e.x,i.x,s),fe(t.y,e.y,i.y,s)}function Hi(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Fi={duration:.45,ease:[.4,0,.1,1]},me=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),pe=me("applewebkit/")&&!me("chrome/")?Math.round:Z;function ge(t){t.min=pe(t.min),t.max=pe(t.max)}function Wi(t){ge(t.x),ge(t.y)}function Ye(t,e,i){return t==="position"||t==="preserve-aspect"&&!di(ne(e),ne(i),.2)}function Gi(t){return t!==t.root&&t.scroll?.wasRoot}const qi=Xe({attachResizeListener:(t,e)=>Nt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Tt={current:void 0},Ke=Xe({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Tt.current){const t=new qi({});t.mount(window),t.setOptions({layoutScroll:!0}),Tt.current=t}return Tt.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});function ye(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Xi(...t){return e=>{let i=!1;const s=t.map(r=>{const a=ye(r,e);return!i&&typeof a=="function"&&(i=!0),a});if(i)return()=>{for(let r=0;r<s.length;r++){const a=s[r];typeof a=="function"?a():ye(t[r],null)}}}}function Yi(...t){return g.useCallback(Xi(...t),t)}class Ki extends g.Component{getSnapshotBeforeUpdate(e){const i=this.props.childRef.current;if(Pt(i)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=i.offsetParent,r=Pt(s)&&s.offsetWidth||0,a=Pt(s)&&s.offsetHeight||0,n=getComputedStyle(i),o=this.props.sizeRef.current;o.height=parseFloat(n.height),o.width=parseFloat(n.width),o.top=i.offsetTop,o.left=i.offsetLeft,o.right=r-o.width-o.left,o.bottom=a-o.height-o.top,o.direction=n.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function Zi({children:t,isPresent:e,anchorX:i,anchorY:s,root:r,pop:a}){const n=g.useId(),o=g.useRef(null),l=g.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:c}=g.useContext(cs),u=t.props?.ref??t?.ref,d=Yi(o,u);return g.useInsertionEffect(()=>{const{width:f,height:p,top:x,left:y,right:b,bottom:v,direction:P}=l.current;if(e||a===!1||!o.current||!f||!p)return;const k=P==="rtl",w=i==="left"?k?`right: ${b}`:`left: ${y}`:k?`left: ${y}`:`right: ${b}`,A=s==="bottom"?`bottom: ${v}`:`top: ${x}`;o.current.dataset.motionPopId=n;const E=document.createElement("style");c&&(E.nonce=c);const C=r??document.head;return C.appendChild(E),E.sheet&&E.sheet.insertRule(`
2
+ [data-motion-pop-id="${n}"] {
3
+ position: absolute !important;
4
+ width: ${f}px !important;
5
+ height: ${p}px !important;
6
+ ${w}px !important;
7
+ ${A}px !important;
8
+ }
9
+ `),()=>{o.current?.removeAttribute("data-motion-pop-id"),C.contains(E)&&C.removeChild(E)}},[e]),h.jsx(Ki,{isPresent:e,childRef:o,sizeRef:l,pop:a,children:a===!1?t:g.cloneElement(t,{ref:d})})}const Qi=({children:t,initial:e,isPresent:i,onExitComplete:s,custom:r,presenceAffectsLayout:a,mode:n,anchorX:o,anchorY:l,root:c})=>{const u=Me(Ji),d=g.useId();let f=!0,p=g.useMemo(()=>(f=!1,{id:d,initial:e,isPresent:i,custom:r,onExitComplete:x=>{u.set(x,!0);for(const y of u.values())if(!y)return;s&&s()},register:x=>(u.set(x,!1),()=>u.delete(x))}),[i,u,s]);return a&&f&&(p={...p}),g.useMemo(()=>{u.forEach((x,y)=>u.set(y,!1))},[i]),g.useEffect(()=>{!i&&!u.size&&s&&s()},[i]),t=h.jsx(Zi,{pop:n==="popLayout",isPresent:i,anchorX:o,anchorY:l,root:c,children:t}),h.jsx(Ve.Provider,{value:p,children:t})};function Ji(){return new Map}function Ze(t=!0){const e=g.useContext(Ve);if(e===null)return[!0,null];const{isPresent:i,onExitComplete:s,register:r}=e,a=g.useId();g.useEffect(()=>{if(t)return r(a)},[t]);const n=g.useCallback(()=>t&&s&&s(a),[a,s,t]);return!i&&s?[!1,n]:[!0]}const rt=t=>t.key||"";function xe(t){const e=[];return g.Children.forEach(t,i=>{g.isValidElement(i)&&e.push(i)}),e}const eo=({children:t,custom:e,initial:i=!0,onExitComplete:s,presenceAffectsLayout:r=!0,mode:a="sync",propagate:n=!1,anchorX:o="left",anchorY:l="top",root:c})=>{const[u,d]=Ze(n),f=g.useMemo(()=>xe(t),[t]),p=n&&!u?[]:f.map(rt),x=g.useRef(!0),y=g.useRef(f),b=Me(()=>new Map),v=g.useRef(new Set),[P,k]=g.useState(f),[w,A]=g.useState(f);us(()=>{x.current=!1,y.current=f;for(let T=0;T<w.length;T++){const S=rt(w[T]);p.includes(S)?(b.delete(S),v.current.delete(S)):b.get(S)!==!0&&b.set(S,!1)}},[w,p.length,p.join("-")]);const E=[];if(f!==P){let T=[...f];for(let S=0;S<w.length;S++){const M=w[S],V=rt(M);p.includes(V)||(T.splice(S,0,M),E.push(M))}return a==="wait"&&E.length&&(T=E),A(xe(T)),k(f),null}const{forceRender:C}=g.useContext(Ne);return h.jsx(h.Fragment,{children:w.map(T=>{const S=rt(T),M=n&&!u?!1:f===w||p.includes(S),V=()=>{if(v.current.has(S))return;if(b.has(S))v.current.add(S),b.set(S,!0);else return;let H=!0;b.forEach(W=>{W||(H=!1)}),H&&(C?.(),A(y.current),n&&d?.(),s&&s())};return h.jsx(Qi,{isPresent:M,initial:!x.current||i?void 0:!1,custom:e,presenceAffectsLayout:r,mode:a,root:c,onExitComplete:M?void 0:V,anchorX:o,anchorY:l,children:T},S)})})};function nt(t,e,i,s){return Nt(t,e,ws(i),s)}const Qe=({current:t})=>t?t.ownerDocument.defaultView:null,ve=(t,e)=>Math.abs(t-e);function tn(t,e){const i=ve(t.x,e.x),s=ve(t.y,e.y);return Math.sqrt(i**2+s**2)}const be=new Set(["auto","scroll"]);class Je{constructor(e,i,{transformPagePoint:s,contextWindow:r=window,dragSnapToOrigin:a=!1,distanceThreshold:n=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=at(this.lastRawMoveEventInfo,this.transformPagePoint));const p=St(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,y=tn(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!y)return;const{point:b}=p,{timestamp:v}=B;this.history.push({...b,timestamp:v});const{onStart:P,onMove:k}=this.handlers;x||(P&&P(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,p)},this.handlePointerMove=(p,x)=>{this.lastMoveEvent=p,this.lastRawMoveEventInfo=x,this.lastMoveEventInfo=at(x,this.transformPagePoint),R.update(this.updatePoint,!0)},this.handlePointerUp=(p,x)=>{this.end();const{onEnd:y,onSessionEnd:b,resumeAnimation:v}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const P=St(p.type==="pointercancel"?this.lastMoveEventInfo:at(x,this.transformPagePoint),this.history);this.startEvent&&y&&y(p,P),b&&b(p,P)},!ks(e))return;this.dragSnapToOrigin=a,this.handlers=i,this.transformPagePoint=s,this.distanceThreshold=n,this.contextWindow=r||window;const l=Ie(e),c=at(l,this.transformPagePoint),{point:u}=c,{timestamp:d}=B;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=i;f&&f(e,St(c,this.history)),this.removeListeners=Ts(nt(this.contextWindow,"pointermove",this.handlePointerMove),nt(this.contextWindow,"pointerup",this.handlePointerUp),nt(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let i=e.parentElement;for(;i;){const s=getComputedStyle(i);(be.has(s.overflowX)||be.has(s.overflowY))&&this.scrollPositions.set(i,{x:i.scrollLeft,y:i.scrollTop}),i=i.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(e){const i=this.scrollPositions.get(e);if(!i)return;const s=e===window,r=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},a={x:r.x-i.x,y:r.y-i.y};a.x===0&&a.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(e,r),R.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ot(this.updatePoint)}}function at(t,e){return e?{point:e(t.point)}:t}function Pe(t,e){return{x:t.x-e.x,y:t.y-e.y}}function St({point:t},e){return{point:t,delta:Pe(t,ts(e)),offset:Pe(t,en(e)),velocity:sn(e,.1)}}function en(t){return t[0]}function ts(t){return t[t.length-1]}function sn(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null;const r=ts(t);for(;i>=0&&(s=t[i],!(r.timestamp-s.timestamp>_t(e)));)i--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&r.timestamp-s.timestamp>_t(e)*2&&(s=t[1]);const a=hs(r.timestamp-s.timestamp);if(a===0)return{x:0,y:0};const n={x:(r.x-s.x)/a,y:(r.y-s.y)/a};return n.x===1/0&&(n.x=0),n.y===1/0&&(n.y=0),n}function nn(t,{min:e,max:i},s){return e!==void 0&&t<e?t=s?j(e,t,s.min):Math.max(t,e):i!==void 0&&t>i&&(t=s?j(i,t,s.max):Math.min(t,i)),t}function we(t,e,i){return{min:e!==void 0?t.min+e:void 0,max:i!==void 0?t.max+i-(t.max-t.min):void 0}}function on(t,{top:e,left:i,bottom:s,right:r}){return{x:we(t.x,i,r),y:we(t.y,e,s)}}function ke(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function rn(t,e){return{x:ke(t.x,e.x),y:ke(t.y,e.y)}}function an(t,e){let i=.5;const s=L(t),r=L(e);return r>s?i=Lt(e.min,e.max-s,t.min):s>r&&(i=Lt(t.min,t.max-r,e.min)),Le(0,1,i)}function ln(t,e){const i={};return e.min!==void 0&&(i.min=e.min-t.min),e.max!==void 0&&(i.max=e.max-t.min),i}const Mt=.35;function cn(t=Mt){return t===!1?t=0:t===!0&&(t=Mt),{x:Te(t,"left","right"),y:Te(t,"top","bottom")}}function Te(t,e,i){return{min:Se(t,e),max:Se(t,i)}}function Se(t,e){return typeof t=="number"?t:t[e]||0}const un=new WeakMap;class hn{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=D(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:i=!1,distanceThreshold:s}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=d=>{i&&this.snapToCursor(Ie(d).point),this.stopAnimation()},n=(d,f)=>{const{drag:p,dragPropagation:x,onDragStart:y}=this.getProps();if(p&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Qs(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),O(v=>{let P=this.getAxisMotionValue(v).get()||0;if(pt.test(P)){const{projection:k}=this.visualElement;if(k&&k.layout){const w=k.layout.layoutBox[v];w&&(P=L(w)*(parseFloat(P)/100))}}this.originPoint[v]=P}),y&&R.update(()=>y(d,f),!1,!0),Wt(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},o=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:x,onDirectionLock:y,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:v}=f;if(x&&this.currentDirection===null){this.currentDirection=fn(v),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),b&&R.update(()=>b(d,f),!1,!0)},l=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new Je(e,{onSessionStart:a,onStart:n,onMove:o,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:Qe(this.visualElement),element:this.visualElement.current})}stop(e,i){const s=e||this.latestPointerEvent,r=i||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!r||!s)return;const{velocity:n}=r;this.startAnimation(n);const{onDragEnd:o}=this.getProps();o&&R.postRender(()=>o(s,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:i}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,i,s){const{drag:r}=this.getProps();if(!s||!lt(e,r,this.currentDirection))return;const a=this.getAxisMotionValue(e);let n=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(n=nn(n,this.constraints[e],this.elastic[e])),a.set(n)}resolveConstraints(){const{dragConstraints:e,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&et(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=on(s.layoutBox,e):this.constraints=!1,this.elastic=cn(i),r!==this.constraints&&!et(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&O(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=ln(s.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!et(e))return!1;const s=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());const a=Ss(s,r.root,this.visualElement.getTransformPagePoint());let n=rn(r.layout.layoutBox,a);if(i){const o=i(Es(n));this.hasMutatedConstraints=!!o,o&&(n=js(o))}return n}startAnimation(e){const{drag:i,dragMomentum:s,dragElastic:r,dragTransition:a,dragSnapToOrigin:n,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},c=O(u=>{if(!lt(u,i,this.currentDirection))return;let d=l&&l[u]||{};(n===!0||n===u)&&(d={min:0,max:0});const f=r?200:1e6,p=r?40:1e7,x={type:"inertia",velocity:s?e[u]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(u,x)});return Promise.all(c).then(o)}startAxisValueAnimation(e,i){const s=this.getAxisMotionValue(e);return Wt(this.visualElement,e),s.start(Be(e,s,0,i,this.visualElement,!1))}stopAnimation(){O(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const i=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps()[i];return r||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){O(i=>{const{drag:s}=this.getProps();if(!lt(i,s,this.currentDirection))return;const{projection:r}=this.visualElement,a=this.getAxisMotionValue(i);if(r&&r.layout){const{min:n,max:o}=r.layout.layoutBox[i],l=a.get()||0;a.set(e[i]-j(n,o,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:i}=this.getProps(),{projection:s}=this.visualElement;if(!et(i)||!s||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};O(n=>{const o=this.getAxisMotionValue(n);if(o&&this.constraints!==!1){const l=o.get();r[n]=an({min:l,max:l},this.constraints[n])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),O(n=>{if(!lt(n,e,null))return;const o=this.getAxisMotionValue(n),{min:l,max:c}=this.constraints[n];o.set(j(l,c,r[n]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;un.set(this.visualElement,this);const e=this.visualElement.current,i=nt(e,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps(),f=c.target,p=f!==e&&Cs(f);u&&d&&!p&&this.start(c)});let s;const r=()=>{const{dragConstraints:c}=this.getProps();et(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),s||(s=dn(e,c.current,()=>this.scalePositionWithinConstraints())))},{projection:a}=this.visualElement,n=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),R.read(r);const o=Nt(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(O(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=c[d].translate,f.set(f.get()+c[d].translate))}),this.visualElement.render())}));return()=>{o(),i(),n(),l&&l(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:s=!1,dragPropagation:r=!1,dragConstraints:a=!1,dragElastic:n=Mt,dragMomentum:o=!0}=e;return{...e,drag:i,dragDirectionLock:s,dragPropagation:r,dragConstraints:a,dragElastic:n,dragMomentum:o}}}function Ee(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function dn(t,e,i){const s=qt(t,Ee(i)),r=qt(e,Ee(i));return()=>{s(),r()}}function lt(t,e,i){return(e===!0||e===t)&&(i===null||i===t)}function fn(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}class mn extends ze{constructor(e){super(e),this.removeGroupControls=Z,this.removeListeners=Z,this.controls=new hn(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Z}update(){const{dragControls:e}=this.node.getProps(),{dragControls:i}=this.node.prevProps||{};e!==i&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Et=t=>(e,i)=>{t&&R.update(()=>t(e,i),!1,!0)};class pn extends ze{constructor(){super(...arguments),this.removePointerDownListener=Z}onPointerDown(e){this.session=new Je(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Qe(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:i,onPan:s,onPanEnd:r}=this.node.getProps();return{onSessionStart:Et(e),onStart:Et(i),onMove:Et(s),onEnd:(a,n)=>{delete this.session,r&&R.postRender(()=>r(a,n))}}}mount(){this.removePointerDownListener=nt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let jt=!1;class gn extends g.Component{componentDidMount(){const{visualElement:e,layoutGroup:i,switchLayoutGroup:s,layoutId:r}=this.props,{projection:a}=e;a&&(i.group&&i.group.add(a),s&&s.register&&r&&s.register(a),jt&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),mt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:i,visualElement:s,drag:r,isPresent:a}=this.props,{projection:n}=s;return n&&(n.isPresent=a,e.layoutDependency!==i&&n.setOptions({...n.options,layoutDependency:i}),jt=!0,r||e.layoutDependency!==i||i===void 0||e.isPresent!==a?n.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?n.promote():n.relegate()||R.postRender(()=>{const o=n.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:i}=this.props,{projection:s}=e;s&&(s.options.layoutAnchor=i,s.root.didUpdate(),Ae.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:i,switchLayoutGroup:s}=this.props,{projection:r}=e;jt=!0,r&&(r.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(r),s&&s.deregister&&s.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function es(t){const[e,i]=Ze(),s=g.useContext(Ne);return h.jsx(gn,{...t,layoutGroup:s,switchLayoutGroup:g.useContext(ds),isPresent:e,safeToRemove:i})}const yn={pan:{Feature:pn},drag:{Feature:mn,ProjectionNode:Ke,MeasureLayout:es}},xn={layout:{ProjectionNode:Ke,MeasureLayout:es}},vn={...Rs,...Ds,...yn,...xn},so=fs(vn,Ls),ct="rounded-lg bg-[color-mix(in_srgb,var(--hud-ink)_4.5%,transparent)]",je="rounded-md border border-[color-mix(in_srgb,var(--hud-ink)_10%,transparent)] bg-[color-mix(in_srgb,var(--hud-bg)_70%,transparent)] text-[var(--scout-chrome-ink-strong)] outline-none transition-colors focus:border-lime-300/45",Ct="rounded-md border border-[color-mix(in_srgb,var(--hud-ink)_8%,transparent)] text-[var(--scout-chrome-ink)] transition-colors hover:bg-[var(--scout-chrome-hover)] hover:text-[var(--scout-chrome-ink-strong)] disabled:cursor-not-allowed disabled:opacity-40",Dt="font-mono text-xs uppercase tracking-[0.11em] text-[var(--scout-chrome-ink-ghost)]";function bn(t){return t==="live"?{label:"Live",detail:"Listening — speak naturally",chip:"border-lime-300/35 bg-lime-300/[0.10] text-lime-100",iconWrap:"border-lime-300/40 bg-lime-300/[0.10] text-lime-200"}:t==="connecting"?{label:"Connecting",detail:"Opening secure audio…",chip:"border-amber-300/30 bg-amber-300/[0.09] text-amber-100/90",iconWrap:"border-amber-300/35 bg-amber-300/[0.09] text-amber-100"}:t==="error"?{label:"Error",detail:"Could not hold the call",chip:"border-red-400/35 bg-red-400/[0.10] text-red-100",iconWrap:"border-red-400/35 bg-red-400/[0.10] text-red-100"}:t==="ended"?{label:"Ended",detail:"Call closed — start again anytime",chip:"border-[color-mix(in_srgb,var(--hud-ink)_12%,transparent)] text-[var(--scout-chrome-ink-faint)]",iconWrap:"border-[color-mix(in_srgb,var(--hud-ink)_10%,transparent)] bg-[color-mix(in_srgb,var(--hud-ink)_4%,transparent)] text-[var(--scout-chrome-ink-faint)]"}:{label:"Ready",detail:"Talk continuously with Scoutbot",chip:"border-transparent bg-[color-mix(in_srgb,var(--hud-ink)_6%,transparent)] text-[var(--scout-chrome-ink-faint)]",iconWrap:"border-transparent bg-[color-mix(in_srgb,var(--hud-ink)_5%,transparent)] text-[var(--scout-chrome-ink-faint)]"}}function io({state:t,onMinimize:e,onExpand:i,layout:s="compact"}){const r=bn(t),a=s==="page";return h.jsxs("header",{className:`flex items-start ${a?"gap-3.5 px-5 py-4":"gap-2.5 px-3.5 py-3"}`,children:[h.jsx("div",{className:`${a?"size-9":"size-7"} mt-px flex shrink-0 items-center justify-center rounded-md border ${r.iconWrap}`,children:t==="connecting"?h.jsx(st,{size:a?14:12,className:"animate-spin"}):t==="live"?h.jsxs("span",{className:"relative flex size-2",children:[h.jsx("span",{className:"absolute inline-flex size-full animate-ping rounded-full bg-lime-300/35"}),h.jsx("span",{className:"relative inline-flex size-2 rounded-full bg-lime-300/90"})]}):h.jsx(Oe,{size:a?14:12})}),h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsxs("div",{className:"flex items-center justify-between gap-2",children:[h.jsx("h2",{className:`truncate font-medium text-[var(--scout-chrome-ink-strong)] ${a?"text-2xl":"text-base"}`,children:"Live voice"}),h.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[h.jsx("span",{className:`rounded border px-1.5 py-px font-mono text-xs uppercase tracking-[0.1em] ${r.chip}`,children:r.label}),i&&h.jsx("button",{type:"button",onClick:i,title:a?"Return to compact live voice view":"Open full live voice view","aria-label":a?"Return to compact live voice view":"Open full live voice view",className:"flex size-6 items-center justify-center rounded-md text-[var(--scout-chrome-ink-faint)] transition-colors hover:bg-[var(--scout-chrome-hover)] hover:text-[var(--scout-chrome-ink-strong)]",children:a?h.jsx(Ns,{size:12}):h.jsx(Bs,{size:12})}),e&&h.jsx("button",{type:"button",onClick:e,title:"Collapse live voice into the status bar","aria-label":"Collapse live voice into the status bar",className:"flex size-6 items-center justify-center rounded-md text-[var(--scout-chrome-ink-faint)] transition-colors hover:bg-[var(--scout-chrome-hover)] hover:text-[var(--scout-chrome-ink-strong)]",children:h.jsx(Is,{size:12})})]})]}),h.jsx("p",{className:`mt-0.5 leading-snug text-[var(--scout-chrome-ink-faint)] ${a?"text-base":"text-sm"}`,children:r.detail})]})]})}function no({dictationActive:t,layout:e="compact"}){const{enabled:i,state:s,error:r,trace:a,chatState:n,sessionAction:o,startCall:l,endCall:c,startNewChat:u,switchChat:d,updatePreferredModel:f,clearTrace:p,openVoiceSettings:x}=As(),y=s==="connecting"||s==="live",[b,v]=g.useState("controls"),P=wn(r),k=e==="page",[w,A]=g.useState(""),[E,C]=g.useState(!1),[T,S]=g.useState(!1),[M,V]=g.useState(null);g.useEffect(()=>{!T&&n?.config.model&&A(n.config.model)},[n?.config.model,T]);const H=async()=>{if(!(!w.trim()||T)){S(!0),V(null);try{const m=await f(w);A(m),V("Saved")}catch(m){V(m instanceof Error?m.message:"Could not save model.")}finally{S(!1)}}},W=!i&&!y?{label:"Open voice settings",icon:h.jsx(Gt,{size:11}),tone:"border-[color-mix(in_srgb,var(--hud-ink)_10%,transparent)] bg-[color-mix(in_srgb,var(--hud-ink)_5%,transparent)] text-[var(--scout-chrome-ink)] hover:bg-[var(--scout-chrome-hover)]"}:s==="connecting"?{label:"Cancel connection",icon:h.jsx(st,{size:11,className:"animate-spin"}),tone:"border-amber-300/35 bg-amber-300/[0.10] text-amber-100 hover:bg-amber-300/[0.16]"}:s==="live"?{label:"End live voice",icon:h.jsx(Os,{size:9,className:"fill-current"}),tone:"border-red-400/35 bg-red-400/[0.10] text-red-100 hover:bg-red-400/[0.16]"}:{label:"Start live voice",icon:h.jsx(Xs,{size:10,className:"fill-current"}),tone:"border-lime-300/40 bg-lime-300/[0.12] text-lime-100 hover:bg-lime-300/[0.18]"};return h.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[h.jsx("nav",{className:`grid shrink-0 grid-cols-2 border-b border-[var(--scout-chrome-border-soft)] ${k?"px-5":"px-3.5"}`,"aria-label":"Live voice views",children:[{id:"controls",label:"Controls",icon:h.jsx(Oe,{size:11})},{id:"activity",label:"Activity",icon:h.jsx(Gs,{size:11})}].map(m=>h.jsxs("button",{type:"button",onClick:()=>v(m.id),"aria-current":b===m.id,className:`-mb-px flex items-center justify-center gap-1.5 border-b-2 font-mono uppercase tracking-[0.1em] transition-colors ${k?"h-11 text-sm":"h-9 text-xs"} ${b===m.id?"border-lime-300/80 text-[var(--scout-chrome-ink-strong)]":"border-transparent text-[var(--scout-chrome-ink-faint)] hover:text-[var(--scout-chrome-ink-strong)]"}`,children:[m.icon,m.label,m.id==="activity"&&a.length>0&&h.jsx("span",{className:"rounded-full bg-[color-mix(in_srgb,var(--hud-ink)_10%,transparent)] px-1.5 py-px font-mono text-xs text-[var(--scout-chrome-ink-faint)]",children:a.length})]},m.id))}),b==="activity"?h.jsxs("div",{className:`flex min-h-0 flex-1 flex-col ${k?"p-5":"p-3.5"}`,children:[h.jsxs("div",{className:"mb-2 flex shrink-0 items-center justify-between",children:[h.jsx("p",{className:Dt,children:"Session activity"}),a.length>0&&h.jsx("button",{type:"button",onClick:p,className:"font-mono text-xs uppercase tracking-[0.09em] text-[var(--scout-chrome-ink-ghost)] transition-colors hover:text-[var(--scout-chrome-ink-strong)]",children:"Clear"})]}),a.length===0?h.jsx("div",{className:"flex flex-1 items-center justify-center rounded-lg border border-dashed border-[color-mix(in_srgb,var(--hud-ink)_10%,transparent)] px-6 text-center text-sm leading-relaxed text-[var(--scout-chrome-ink-faint)]",children:"Start a call to record requests, replies, navigation attempts, and delivery results."}):h.jsx("ol",{className:`min-h-0 flex-1 overflow-y-auto ${ct}`,children:a.map((m,N)=>h.jsxs("li",{className:`px-2.5 py-2 ${N>0?"border-t border-[var(--scout-chrome-border-soft)]":""}`,children:[h.jsxs("div",{className:"flex items-start justify-between gap-2",children:[h.jsxs("div",{className:"flex min-w-0 items-start gap-1.5",children:[h.jsx("span",{className:`mt-px shrink-0 rounded border px-1 py-px font-mono text-xs uppercase tracking-[0.08em] ${Tn(m.kind)}`,children:kn(m.kind)}),h.jsx("span",{className:"min-w-0 text-sm leading-snug text-[var(--scout-chrome-ink-strong)]",children:m.label})]}),h.jsx("time",{className:"shrink-0 font-mono text-xs text-[var(--scout-chrome-ink-ghost)]",children:Pn(m.at)})]}),m.detail&&h.jsx("span",{className:"mt-1 block whitespace-pre-wrap break-words font-mono text-xs leading-relaxed text-[var(--scout-chrome-ink-faint)]",children:m.detail})]},m.id))})]}):h.jsxs("div",{className:`flex min-h-0 w-full flex-1 flex-col overflow-y-auto ${k?"mx-auto max-w-2xl gap-4 p-5":"gap-2.5 p-3.5"}`,children:[h.jsxs("section",{className:`${ct} shrink-0 p-3`,children:[h.jsx("p",{className:"text-base font-medium text-[var(--scout-chrome-ink-strong)]",children:"Live conversation"}),h.jsx("p",{className:"mt-0.5 text-sm leading-snug text-[var(--scout-chrome-ink-faint)]",children:s==="live"?"Microphone and spoken replies are active.":s==="connecting"?"Opening the audio connection…":i?"Start when you are ready to speak.":"Turn on live voice before starting a call."}),h.jsxs("button",{type:"button",disabled:t&&!y,onClick:()=>{y?c():i?l():x()},className:`mt-3 flex h-9 w-full items-center justify-center gap-2 rounded-md border font-mono text-sm uppercase tracking-[0.1em] transition-colors disabled:cursor-not-allowed disabled:opacity-40 ${W.tone}`,children:[W.icon,W.label]}),t&&!y&&h.jsx("p",{className:"mt-2 text-xs leading-relaxed text-amber-200/80",children:"Finish dictation before starting a live call."}),P&&h.jsx("p",{className:"mt-2 rounded-md border border-red-400/30 bg-red-400/[0.08] px-2 py-1.5 text-sm leading-relaxed text-red-100",children:P})]}),h.jsxs("section",{className:`${ct} shrink-0 p-3`,children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx(Fs,{size:11,className:"shrink-0 text-[var(--scout-chrome-ink-ghost)]"}),h.jsx("p",{className:Dt,children:"Live chat"})]}),h.jsx("p",{className:"mt-1.5 truncate text-base text-[var(--scout-chrome-ink-strong)]",title:n?.session.id,children:n?.session.title||"Loading chat…"}),h.jsx("p",{className:"mt-0.5 text-sm leading-snug text-[var(--scout-chrome-ink-faint)]",children:"Context stays with this chat when voice stops or the panel closes."}),h.jsxs("div",{className:"mt-2.5 flex min-w-0 items-center gap-1.5",children:[n&&n.sessions.length>1&&h.jsxs("label",{className:"min-w-0 flex-1",children:[h.jsx("span",{className:"sr-only",children:"Switch live chat"}),h.jsx("select",{value:n.session.id,disabled:!!o,onChange:m=>{d(m.target.value)},className:`h-8 w-full min-w-0 px-2 font-mono text-sm disabled:cursor-wait disabled:opacity-50 ${je}`,title:"Switch live chat; an active voice connection will end",children:n.sessions.map(m=>h.jsxs("option",{value:m.id,children:[m.title||`Chat ${m.id.slice(0,8)}`," · ",m.messageCount," msg"]},m.id))})]}),h.jsxs("button",{type:"button",onClick:()=>{u()},disabled:!n||!!o,title:"Start a new chat; an active voice connection will end",className:`flex h-8 shrink-0 items-center justify-center gap-1.5 px-2.5 font-mono text-xs uppercase tracking-[0.09em] disabled:cursor-wait ${Ct}`,children:[o==="new"?h.jsx(st,{size:10,className:"animate-spin"}):h.jsx(zs,{size:10}),"New chat"]})]})]}),h.jsxs("section",{className:`${ct} shrink-0 p-3`,children:[h.jsxs("div",{className:"flex items-center justify-between gap-2",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx("p",{className:Dt,children:"Scoutbot reply model"}),h.jsx("p",{className:"mt-1 truncate font-mono text-base text-[var(--scout-chrome-ink-strong)]",children:n?.config.model||"—"})]}),h.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[n?.config.provider&&h.jsx("span",{className:"font-mono text-xs uppercase tracking-[0.08em] text-[var(--scout-chrome-ink-ghost)]",children:n.config.provider}),h.jsx("button",{type:"button",onClick:()=>{V(null),C(m=>!m)},"aria-expanded":E,className:`flex h-7 items-center px-2 font-mono text-xs uppercase tracking-[0.09em] ${Ct}`,children:E?"Close":"Change"})]})]}),E&&h.jsxs("div",{className:"mt-2.5 border-t border-[var(--scout-chrome-border-soft)] pt-2.5",children:[h.jsx("p",{className:"text-sm leading-snug text-[var(--scout-chrome-ink-faint)]",children:"Used for typed and live Scoutbot replies."}),h.jsxs("div",{className:"mt-2 flex gap-1.5",children:[h.jsx("input",{value:w,onChange:m=>{A(m.target.value),V(null)},onKeyDown:m=>{m.key==="Enter"&&H()},placeholder:"gpt-4.1-mini","aria-label":"Preferred Scoutbot model",className:`h-8 min-w-0 flex-1 px-2 font-mono text-sm ${je}`}),h.jsx("button",{type:"button",onClick:()=>{H()},disabled:T||!w.trim()||w.trim()===n?.config.model,className:`flex h-8 min-w-14 items-center justify-center px-2 font-mono text-xs uppercase tracking-[0.09em] ${Ct}`,children:T?h.jsx(st,{size:10,className:"animate-spin"}):"Apply"})]}),M&&h.jsx("p",{className:"mt-1.5 font-mono text-xs text-[var(--scout-chrome-ink-faint)]",children:M})]})]}),h.jsxs("button",{type:"button",onClick:x,className:"mt-auto flex h-8 w-full shrink-0 items-center justify-center gap-1.5 rounded-md font-mono text-xs uppercase tracking-[0.09em] text-[var(--scout-chrome-ink-faint)] transition-colors hover:bg-[var(--scout-chrome-hover)] hover:text-[var(--scout-chrome-ink-strong)]",children:[h.jsx(Gt,{size:11}),"Voice settings"]})]})]})}function Pn(t){return new Date(t).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function wn(t){if(!t)return null;const e=t.toLowerCase();return e.includes("active response in progress")||e.includes("conversation already has an active response")?null:e.includes("realtime voice call is already active")?"Live voice is still running on this Scout host. Stop it from the footer, or wait a moment for it to finish closing.":t}function kn(t){switch(t){case"navigation":return"Navigate";case"scoutbot":return"Scoutbot";case"agent":return"Agent ask";case"error":return"Error";default:return"Voice"}}function Tn(t){switch(t){case"navigation":return"border-sky-300/25 bg-sky-300/[0.06] text-sky-100/80";case"scoutbot":return"border-violet-300/25 bg-violet-300/[0.06] text-violet-100/80";case"agent":return"border-amber-300/25 bg-amber-300/[0.06] text-amber-100/80";case"error":return"border-red-300/25 bg-red-300/[0.06] text-red-100/80";default:return"border-lime-300/20 bg-lime-300/[0.05] text-lime-100/70"}}const Vt="openscout:toggle-scoutbot";function Sn(t){if(typeof window>"u")return;const e={};window.dispatchEvent(new CustomEvent(Vt,{detail:e}))}function oo(t){if(typeof window>"u")return()=>{};const e=i=>{const s=i.detail??{};t(s)};return window.addEventListener(Vt,e),()=>window.removeEventListener(Vt,e)}function En(t){switch(t){case"listening":return"listening";case"thinking":return"thinking";case"speaking":return"speaking";case"briefing":return"thinking";default:return""}}function jn(t){return t==="thinking"||t==="briefing"}function Cn(t){return t!=="idle"?{kind:"activity",activity:t,label:En(t)}:{kind:"idle"}}function Dn(t,e,i){const s=[];return t.kind==="activity"?s.push(`Scout · ${t.label}`):s.push("Toggle Scout"),e&&s.push(e),i&&s.push(i),s.join(`
10
+ `)}function ro(){const{state:t,actions:e}=Ms(),i=Vs(),s=Cn(t.activity),r=Dn(s,t.session.title,t.error),a=s.kind==="activity"?"s-scoutbot-chip--activity":"s-scoutbot-chip--idle",n=()=>{Sn()},o=l=>{const c=[{kind:"action",label:"New chat",onSelect:()=>e.startNewChat()},{kind:"action",label:t.voice.replies?"Turn voice replies off":"Turn voice replies on",onSelect:()=>e.toggleVoiceReplies()},{kind:"separator"},{kind:"action",label:"Open chat",onSelect:()=>e.focusScoutbot()}];i(l,c)};return h.jsxs("button",{type:"button",className:`s-scoutbot-chip ${a}`,onClick:n,onContextMenu:o,title:r,children:[h.jsx(Us,{size:14,className:"s-scoutbot-chip-icon","aria-hidden":"true"}),s.kind==="activity"&&h.jsxs(h.Fragment,{children:[jn(s.activity)?h.jsx(st,{size:10,className:"s-scoutbot-chip-spinner","aria-hidden":"true"}):h.jsx("span",{className:"s-scoutbot-chip-dot s-scoutbot-chip-dot--pulse","aria-hidden":"true"}),h.jsx("span",{className:"s-scoutbot-chip-text",children:s.label})]})]})}function It(t){return t.handle??t.id}function Rn(t,e){if(!e)return!0;const i=e.toLowerCase();return t.name.toLowerCase().includes(i)||It(t).toLowerCase().includes(i)||t.id.toLowerCase().includes(i)}function Ln({agents:t,query:e,excludeIds:i,maxResults:s=50}){const r=g.useMemo(()=>new Set(i??[]),[i]),a=g.useMemo(()=>t.filter(d=>!r.has(d.id)&&Rn(d,e.trim())).slice(0,s),[t,r,e,s]),[n,o]=g.useState(0);g.useEffect(()=>{o(u=>a.length===0?0:Math.min(u,a.length-1))},[a]);const l=g.useCallback(u=>{o(d=>a.length===0?0:(d+u+a.length)%a.length)},[a.length]),c=g.useCallback(()=>o(0),[]);return{filtered:a,highlightedIndex:n,setHighlightedIndex:o,moveHighlight:l,resetHighlight:c}}function An({agents:t,highlightedIndex:e,onSelect:i,onHover:s,emptyHint:r,pendingId:a,className:n,id:o}){return t.length===0?h.jsx("div",{className:`agent-autocomplete ${n??""}`,id:o,children:h.jsx("div",{className:"agent-autocomplete-empty",children:r??"No matches."})}):h.jsx("div",{className:`agent-autocomplete ${n??""}`,role:"listbox",id:o,children:t.map((l,c)=>{const u=It(l),d=c===e;return h.jsxs("button",{type:"button",role:"option","aria-selected":d,className:`agent-autocomplete-item${d?" is-active":""}`,onMouseDown:f=>{f.preventDefault(),i(l)},onMouseEnter:()=>s?.(c),disabled:a===l.id,children:[h.jsx("div",{className:"agent-autocomplete-avatar",style:{background:_s(l.name)},children:l.name[0]?.toUpperCase()??"?"}),h.jsxs("div",{className:"agent-autocomplete-info",children:[h.jsx("span",{className:"agent-autocomplete-name",children:l.name}),h.jsxs("span",{className:"agent-autocomplete-handle",children:["@",u]})]})]},l.id)})})}const Mn=/(^|\s)@([a-zA-Z0-9_.-]*)$/,ut=4,Vn=254;function Nn(t,e){if(e<=0)return null;const i=t.slice(0,e),s=Mn.exec(i);if(!s)return null;s[1];const r=s[2]??"",a=i.length-r.length-1;return a<0?null:(t.slice(e,e+1),{start:a,end:e,query:r})}const Bn=["boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","whiteSpace","wordWrap","wordBreak"];function In(t,e){const i=document.createElement("div");document.body.appendChild(i);const s=i.style,r=window.getComputedStyle(t);s.position="absolute",s.visibility="hidden",s.whiteSpace="pre-wrap",s.wordWrap="break-word",s.top="0",s.left="-9999px";for(const c of Bn)s[c]=r[c];i.textContent=t.value.slice(0,e);const a=document.createElement("span");a.textContent=t.value.slice(e)||".",i.appendChild(a);const n=a.offsetTop,o=a.offsetLeft,l=parseInt(r.lineHeight,10)||a.offsetHeight;return document.body.removeChild(i),{top:n,left:o,height:l}}const ao=g.forwardRef(function({agents:e,excludeIds:i,value:s,onChange:r,onSubmit:a,placeholder:n,rows:o=1,disabled:l,submitOnEnter:c=!1,className:u,textareaClassName:d,emptyHint:f,onMention:p},x){const y=g.useRef(null),b=g.useRef(null),[v,P]=g.useState(null),[k,w]=g.useState(null);g.useImperativeHandle(x,()=>({focus:()=>y.current?.focus(),blur:()=>y.current?.blur(),get textarea(){return y.current}}),[]);const A=v?.query??"",{filtered:E,highlightedIndex:C,setHighlightedIndex:T,moveHighlight:S}=Ln({agents:e,query:A,excludeIds:i}),M=g.useCallback(()=>{const m=y.current;if(!m)return;const N=window.getComputedStyle(m),I=parseFloat(N.minHeight)||0,F=parseFloat(N.maxHeight);m.style.height="0px";const $=Math.max(m.scrollHeight,I),U=Number.isFinite(F)&&F>0?Math.min($,F):$;m.style.height=`${U}px`,m.style.overflowY=$>U?"auto":"hidden"},[]);g.useLayoutEffect(()=>{M()},[M,s]);const V=g.useCallback(()=>{const m=y.current;if(!m)return;const N=Nn(m.value,m.selectionStart??0);P(N)},[]);g.useLayoutEffect(()=>{const m=y.current;if(!m||!v){w(null);return}const{top:N,left:I,height:F}=In(m,v.start),$=m.getBoundingClientRect(),U=m.parentElement?.getBoundingClientRect(),J=U?$.top-U.top:0,yt=U?$.left-U.left:0,tt=b.current?.offsetHeight||Vn,G=window.visualViewport,zt=G?.offsetTop??0,ss=zt+(G?.height??window.innerHeight),Ot=$.top+N-m.scrollTop,is=Ot+F,$t=ss-is-ut,ns=Ot-zt-ut,os=$t<tt&&ns>$t;w({top:os?J+N-m.scrollTop-tt-ut:J+N+F-m.scrollTop+ut,left:yt+I-m.scrollLeft})},[v,s,E.length]);const H=g.useCallback(m=>{const N=y.current,I=v;if(!N||!I)return;const F=It(m),$=s.slice(0,I.start),U=s.slice(I.end),J=`@${F} `,yt=`${$}${J}${U}`;r(yt),p?.(m),P(null);const tt=I.start+J.length;queueMicrotask(()=>{const G=y.current;G&&(G.focus(),G.setSelectionRange(tt,tt))})},[v,s,r,p]),W=m=>{if($s(m)||c&&m.key==="Enter"&&!m.shiftKey&&!m.nativeEvent?.isComposing&&!(v&&E.length>0)){m.preventDefault(),a?.();return}if(v&&E.length>0){if(m.key==="ArrowDown"){m.preventDefault(),S(1);return}if(m.key==="ArrowUp"){m.preventDefault(),S(-1);return}if(m.key==="Enter"||m.key==="Tab"){if(m.key==="Enter"&&m.shiftKey)return;const I=E[C];if(I){m.preventDefault(),H(I);return}}if(m.key==="Escape"){m.preventDefault(),P(null);return}}};return h.jsxs("div",{className:`agent-mention-wrap ${u??""}`,children:[h.jsx("textarea",{ref:y,className:d,value:s,rows:o,placeholder:n,disabled:l,onChange:m=>{r(m.target.value),M(),queueMicrotask(V)},onKeyUp:V,onClick:V,onBlur:()=>P(null),onKeyDown:W,"aria-autocomplete":"list"}),v&&h.jsx("div",{ref:b,className:"agent-mention-popover",style:{top:`${k?.top??0}px`,left:`${k?.left??0}px`,visibility:k?void 0:"hidden"},children:h.jsx(An,{agents:E,highlightedIndex:C,onSelect:H,onHover:T,emptyHint:f??"No matches."})})]})});export{ao as A,Fs as H,Xs as P,Gt as S,Qn as V,Jn as a,eo as b,ro as c,io as d,no as e,so as m,oo as o};
@@ -1 +1 @@
1
- import{j as s}from"./index-DmFAhGPj.js";function d(e){return e?e.startsWith("/Users/")?"~/"+e.split("/").slice(3).join("/"):e:null}function u(e,r){const l=e.model&&e.harness&&e.model.startsWith(`${e.harness}-`)?e.model.slice(e.harness.length+1):e.model??null,o=e.cwd??e.projectRoot??r?.projectRoot??null,n=o?d(o)??o:null,i=e.homeNodeName?e.homeNodeName.replace(/\.local$/i,""):null,c=[e.harness,l].filter(a=>!!a).join(" · ")||null,t=e.branch?.trim()||null;return{cwdShort:n,hostShort:i,branch:t,chip:c,cwdFull:o}}function x(){return s.jsx("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2","aria-hidden":!0,children:s.jsx("path",{d:"M2 4h4l1.4 1.6H14v6.4H2z",strokeLinejoin:"round"})})}function j(){return s.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2","aria-hidden":!0,children:[s.jsx("circle",{cx:"4.5",cy:"3.5",r:"1.5"}),s.jsx("circle",{cx:"4.5",cy:"12.5",r:"1.5"}),s.jsx("circle",{cx:"11.5",cy:"5.5",r:"1.5"}),s.jsx("path",{d:"M4.5 5v6M4.5 11c0-3 7-1.4 7-4",strokeLinecap:"round"})]})}function p(){return s.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2","aria-hidden":!0,children:[s.jsx("rect",{x:"4.5",y:"4.5",width:"7",height:"7",rx:"1"}),s.jsx("path",{d:"M6.5 2v2M9.5 2v2M6.5 12v2M9.5 12v2M2 6.5h2M2 9.5h2M12 6.5h2M12 9.5h2",strokeLinecap:"round"})]})}function v(){return s.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2","aria-hidden":!0,children:[s.jsx("rect",{x:"2.5",y:"3.5",width:"11",height:"7",rx:"1"}),s.jsx("path",{d:"M6 13h4M8 10.5V13",strokeLinecap:"round"})]})}function h({ico:e,v:r,title:l}){return s.jsxs("span",{className:"s-sess-glyph-cell",title:l??r,children:[s.jsx("span",{className:"s-sess-glyph-ico",children:e}),s.jsx("span",{className:"s-sess-glyph-v",children:r})]})}function M({agent:e,projectRoot:r,chipTitle:l,className:o}){const{cwdShort:n,hostShort:i,branch:c,chip:t,cwdFull:a}=u(e,{projectRoot:r});return!(n||c||i||t)?null:s.jsxs("div",{className:["s-sess-glyph",o].filter(Boolean).join(" "),"aria-label":"Agent runtime essentials",children:[n&&s.jsx(h,{ico:s.jsx(x,{}),v:n,title:a??n}),c&&s.jsx(h,{ico:s.jsx(j,{}),v:c}),i&&s.jsx(h,{ico:s.jsx(v,{}),v:i}),t&&s.jsx(h,{ico:s.jsx(p,{}),v:t,title:l??t})]})}export{M as AgentEssentialsGlyph,u as agentEssentials};
1
+ import{j as s}from"./index-CZ-05hKz.js";function d(e){return e?e.startsWith("/Users/")?"~/"+e.split("/").slice(3).join("/"):e:null}function u(e,r){const l=e.model&&e.harness&&e.model.startsWith(`${e.harness}-`)?e.model.slice(e.harness.length+1):e.model??null,o=e.cwd??e.projectRoot??r?.projectRoot??null,n=o?d(o)??o:null,i=e.homeNodeName?e.homeNodeName.replace(/\.local$/i,""):null,c=[e.harness,l].filter(a=>!!a).join(" · ")||null,t=e.branch?.trim()||null;return{cwdShort:n,hostShort:i,branch:t,chip:c,cwdFull:o}}function x(){return s.jsx("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2","aria-hidden":!0,children:s.jsx("path",{d:"M2 4h4l1.4 1.6H14v6.4H2z",strokeLinejoin:"round"})})}function j(){return s.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2","aria-hidden":!0,children:[s.jsx("circle",{cx:"4.5",cy:"3.5",r:"1.5"}),s.jsx("circle",{cx:"4.5",cy:"12.5",r:"1.5"}),s.jsx("circle",{cx:"11.5",cy:"5.5",r:"1.5"}),s.jsx("path",{d:"M4.5 5v6M4.5 11c0-3 7-1.4 7-4",strokeLinecap:"round"})]})}function p(){return s.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2","aria-hidden":!0,children:[s.jsx("rect",{x:"4.5",y:"4.5",width:"7",height:"7",rx:"1"}),s.jsx("path",{d:"M6.5 2v2M9.5 2v2M6.5 12v2M9.5 12v2M2 6.5h2M2 9.5h2M12 6.5h2M12 9.5h2",strokeLinecap:"round"})]})}function v(){return s.jsxs("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.2","aria-hidden":!0,children:[s.jsx("rect",{x:"2.5",y:"3.5",width:"11",height:"7",rx:"1"}),s.jsx("path",{d:"M6 13h4M8 10.5V13",strokeLinecap:"round"})]})}function h({ico:e,v:r,title:l}){return s.jsxs("span",{className:"s-sess-glyph-cell",title:l??r,children:[s.jsx("span",{className:"s-sess-glyph-ico",children:e}),s.jsx("span",{className:"s-sess-glyph-v",children:r})]})}function M({agent:e,projectRoot:r,chipTitle:l,className:o}){const{cwdShort:n,hostShort:i,branch:c,chip:t,cwdFull:a}=u(e,{projectRoot:r});return!(n||c||i||t)?null:s.jsxs("div",{className:["s-sess-glyph",o].filter(Boolean).join(" "),"aria-label":"Agent runtime essentials",children:[n&&s.jsx(h,{ico:s.jsx(x,{}),v:n,title:a??n}),c&&s.jsx(h,{ico:s.jsx(j,{}),v:c}),i&&s.jsx(h,{ico:s.jsx(v,{}),v:i}),t&&s.jsx(h,{ico:s.jsx(p,{}),v:t,title:l??t})]})}export{M as AgentEssentialsGlyph,u as agentEssentials};
@@ -1 +1 @@
1
- import{d as G,f as W}from"./context-budget-DX_fwUs3.js";import{a as O}from"./colors-BtO5_zlx.js";import{t as D}from"./time-Dhsh_2EG.js";import{a as E}from"./lane-observe-BA3g9aVd.js";import{t as H,s as N}from"./bash-format-BRV5C6Gv.js";import{b as _,h as z,f as y}from"./agent-lane-preview-C33Dwpn7.js";import{l as J}from"./agent-lanes-model-VYQ5a68i.js";const g=14;function U(o){const t=(o??"").toLowerCase();return/bash|shell|exec|run|command|terminal/.test(t)?"❯":/edit|write|apply|patch|create|update|str_replace|multiedit/.test(t)?"✎":/read|view|cat|open/.test(t)?"◎":/grep|search|glob|find|rg|ripgrep/.test(t)?"⌕":/fetch|web|browse|url/.test(t)?"⤓":"▸"}function V(o){const t=o.arg?.trim(),e=!!t&&(t.startsWith("{")||t.startsWith("["));let a;if(!t||e||t==="started"||t==="completed")a=o.tool??"tool";else{let i=H(t);i=N(i).rest||i,a=E(i,56)}return{mark:U(o.tool),tone:"tool",text:a,full:t||(o.tool??a)}}function q(o){const t=o.replace(/\/+$/u,"").split(/[\\/]/u).filter(Boolean);return t.length===0?o:t.slice(-2).join("/")}function T(o){const t=o?.trim();return t?(t.split("/").pop()??t).replace(/\.jsonl$/u,"").slice(0,8):null}function K(o){const t=o?.trim();if(!t)return null;let e=t.replace(/^[a-z0-9.]+\//iu,"");return e=e.replace(/^(claude|anthropic)-/iu,""),e=e.replace(/-(\d{8})$/u,""),e=e.replace(/-(\d+)-(\d+)(?=$|-)/gu,"-$1.$2"),e||t}function Q(o){return o==="created"?"new":o==="read"?"read":"mod"}function v(o){return(o??"").replace(/^\s*[←→↳⇒➜]+\s*/u,"").trim()}function X(o){const t=o.trim().toLowerCase().replace(/[[\]…]/gu,"").trim();return t===""||t==="thinking"||t==="running tool"||t==="turn update"}function se(o,t){const{agent:e,observe:a,source:i,facts:r}=o,l=_(a,e,{isLive:t.isLive}),u=a?.metadata?.session,f=r?.cwd??e.cwd??e.projectRoot??null,S=f?q(f):null,C=e.harnessSessionId?.trim()||null,$=e.agentClass==="operator"?{label:"operator",title:[e.role?`Role: ${e.role}`:"Privileged operator agent",e.authorityProfile?`Reads: ${e.authorityProfile.readTools.join(", ")||"none"}`:null,e.authorityProfile?`Writes: ${e.authorityProfile.writeTools.join(", ")||"none"}`:null,e.authorityProfile?`Shell: ${e.authorityProfile.shell?"allowed":"blocked"}; code writes: ${e.authorityProfile.codebaseWrites?"allowed":"blocked"}`:null,e.runtimePolicy?.sandbox?`Sandbox: ${e.runtimePolicy.sandbox}`:null].filter(Boolean).join(" · ")}:null,m=(r?.touchedFiles.length?r.touchedFiles:l?.files??[]).filter(n=>z(y(n))),F=n=>{const c=Q(n.state);return{mark:c,tone:c,text:y(n),full:n.path}},p=n=>{const c=n.map(F);return{rows:c.slice(0,g),more:Math.max(0,c.length-g)}},w=(a?.events??[]).filter(n=>n.kind==="tool"),b=w.slice(-g).reverse().map(V),I={tools:{rows:b,more:Math.max(0,w.length-b.length)},edits:p(m.filter(n=>n.state!=="read")),reads:p(m.filter(n=>n.state==="read")),files:p(m)},s=r?.usage??a?.metadata?.usage??null,h=G(s,{model:r?.model??l?.model??e.model??u?.model??null,adapterType:e.harness??l?.harness??u?.adapterType??null}),A=h?Math.min(100,h.pct):null,L=h?.usedLabel??W(s?.contextInputTokens),R=r?.turn?.index??u?.turnCount??null,k=s?[{label:"in",value:s.inputTokens},{label:"out",value:s.outputTokens},{label:"cache rd",value:s.cacheReadInputTokens},{label:"cache wr",value:s.cacheCreationInputTokens},{label:"total",value:s.totalTokens},{label:"reasoning",value:s.reasoningOutputTokens}].filter(n=>typeof n.value=="number"):[],j=k.length>0?{total:typeof s?.totalTokens=="number"?s.totalTokens:null,dials:k}:null,P=O(e.state??null,e),M=l?.headlineFrom==="user"?"from":l?.headlineFrom==="agent"?"to":null,x=v(l?.headline),d=!l||X(x),B={dir:d?null:M,text:d?P?"thinking…":"idle":x,full:d||!l||l.headFull===l.headline?null:v(l.headFull),placeholder:d};return{name:J(e,i),authority:$,harness:e.harness??l?.harness??u?.adapterType??null,model:K(r?.model??l?.model??e.model??u?.model??null),effort:r?.effort??u?.effort??null,cwd:S,cwdFull:f,branch:r?.branch??l?.branch??e.branch??null,sessionId:T(e.harnessSessionId),sessionIdFull:C,parentSessionId:r?.parentSessionId??null,parentSessionLabel:r?.parentSessionId?[r.parentAgentName,T(r.parentSessionId)].filter(Boolean).join(" · "):null,time:o.lastActiveAt?D(o.lastActiveAt,t.nowMs):null,working:P,head:B,stats:{tools:l?.stats.tools??0,edits:l?.stats.edits??0,reads:l?.stats.reads??0,files:l?.stats.files??0},context:A,tokens:L,turns:R,tokenUsage:j,pops:I}}export{se as a};
1
+ import{d as G,f as W}from"./context-budget-DX_fwUs3.js";import{a as O}from"./colors-BtO5_zlx.js";import{t as D}from"./time-Dhsh_2EG.js";import{a as E}from"./lane-observe-vfyACHi0.js";import{t as H,s as N}from"./bash-format-BRV5C6Gv.js";import{b as _,h as z,f as y}from"./agent-lane-preview-BhplDYGf.js";import{l as J}from"./agent-lanes-model-AfrjRNK5.js";const g=14;function U(o){const t=(o??"").toLowerCase();return/bash|shell|exec|run|command|terminal/.test(t)?"❯":/edit|write|apply|patch|create|update|str_replace|multiedit/.test(t)?"✎":/read|view|cat|open/.test(t)?"◎":/grep|search|glob|find|rg|ripgrep/.test(t)?"⌕":/fetch|web|browse|url/.test(t)?"⤓":"▸"}function V(o){const t=o.arg?.trim(),e=!!t&&(t.startsWith("{")||t.startsWith("["));let a;if(!t||e||t==="started"||t==="completed")a=o.tool??"tool";else{let i=H(t);i=N(i).rest||i,a=E(i,56)}return{mark:U(o.tool),tone:"tool",text:a,full:t||(o.tool??a)}}function q(o){const t=o.replace(/\/+$/u,"").split(/[\\/]/u).filter(Boolean);return t.length===0?o:t.slice(-2).join("/")}function T(o){const t=o?.trim();return t?(t.split("/").pop()??t).replace(/\.jsonl$/u,"").slice(0,8):null}function K(o){const t=o?.trim();if(!t)return null;let e=t.replace(/^[a-z0-9.]+\//iu,"");return e=e.replace(/^(claude|anthropic)-/iu,""),e=e.replace(/-(\d{8})$/u,""),e=e.replace(/-(\d+)-(\d+)(?=$|-)/gu,"-$1.$2"),e||t}function Q(o){return o==="created"?"new":o==="read"?"read":"mod"}function v(o){return(o??"").replace(/^\s*[←→↳⇒➜]+\s*/u,"").trim()}function X(o){const t=o.trim().toLowerCase().replace(/[[\]…]/gu,"").trim();return t===""||t==="thinking"||t==="running tool"||t==="turn update"}function se(o,t){const{agent:e,observe:a,source:i,facts:r}=o,l=_(a,e,{isLive:t.isLive}),u=a?.metadata?.session,f=r?.cwd??e.cwd??e.projectRoot??null,S=f?q(f):null,C=e.harnessSessionId?.trim()||null,$=e.agentClass==="operator"?{label:"operator",title:[e.role?`Role: ${e.role}`:"Privileged operator agent",e.authorityProfile?`Reads: ${e.authorityProfile.readTools.join(", ")||"none"}`:null,e.authorityProfile?`Writes: ${e.authorityProfile.writeTools.join(", ")||"none"}`:null,e.authorityProfile?`Shell: ${e.authorityProfile.shell?"allowed":"blocked"}; code writes: ${e.authorityProfile.codebaseWrites?"allowed":"blocked"}`:null,e.runtimePolicy?.sandbox?`Sandbox: ${e.runtimePolicy.sandbox}`:null].filter(Boolean).join(" · ")}:null,m=(r?.touchedFiles.length?r.touchedFiles:l?.files??[]).filter(n=>z(y(n))),F=n=>{const c=Q(n.state);return{mark:c,tone:c,text:y(n),full:n.path}},p=n=>{const c=n.map(F);return{rows:c.slice(0,g),more:Math.max(0,c.length-g)}},w=(a?.events??[]).filter(n=>n.kind==="tool"),b=w.slice(-g).reverse().map(V),I={tools:{rows:b,more:Math.max(0,w.length-b.length)},edits:p(m.filter(n=>n.state!=="read")),reads:p(m.filter(n=>n.state==="read")),files:p(m)},s=r?.usage??a?.metadata?.usage??null,h=G(s,{model:r?.model??l?.model??e.model??u?.model??null,adapterType:e.harness??l?.harness??u?.adapterType??null}),A=h?Math.min(100,h.pct):null,L=h?.usedLabel??W(s?.contextInputTokens),R=r?.turn?.index??u?.turnCount??null,k=s?[{label:"in",value:s.inputTokens},{label:"out",value:s.outputTokens},{label:"cache rd",value:s.cacheReadInputTokens},{label:"cache wr",value:s.cacheCreationInputTokens},{label:"total",value:s.totalTokens},{label:"reasoning",value:s.reasoningOutputTokens}].filter(n=>typeof n.value=="number"):[],j=k.length>0?{total:typeof s?.totalTokens=="number"?s.totalTokens:null,dials:k}:null,P=O(e.state??null,e),M=l?.headlineFrom==="user"?"from":l?.headlineFrom==="agent"?"to":null,x=v(l?.headline),d=!l||X(x),B={dir:d?null:M,text:d?P?"thinking…":"idle":x,full:d||!l||l.headFull===l.headline?null:v(l.headFull),placeholder:d};return{name:J(e,i),authority:$,harness:e.harness??l?.harness??u?.adapterType??null,model:K(r?.model??l?.model??e.model??u?.model??null),effort:r?.effort??u?.effort??null,cwd:S,cwdFull:f,branch:r?.branch??l?.branch??e.branch??null,sessionId:T(e.harnessSessionId),sessionIdFull:C,parentSessionId:r?.parentSessionId??null,parentSessionLabel:r?.parentSessionId?[r.parentAgentName,T(r.parentSessionId)].filter(Boolean).join(" · "):null,time:o.lastActiveAt?D(o.lastActiveAt,t.nowMs):null,working:P,head:B,stats:{tools:l?.stats.tools??0,edits:l?.stats.edits??0,reads:l?.stats.reads??0,files:l?.stats.files??0},context:A,tokens:L,turns:R,tokenUsage:j,pops:I}}export{se as a};
@@ -0,0 +1,2 @@
1
+ import{p as g}from"./lane-observe-vfyACHi0.js";import{o as w,a as k}from"./tail-display-DcliDVkW.js";function L(n){const{agent:t,observe:e}=n,s=e?.metadata?.session,r=e?.events??[],i=e?.files??[];return{tools:r.filter(o=>o.kind==="tool").length,edits:r.filter(o=>o.kind==="tool"&&k(o.tool)).length,reads:r.filter(o=>o.kind==="tool"&&w(o.tool)).length,thinks:r.filter(o=>o.kind==="think").length,files:i.length,events:r.length,model:s?.model??t.model??null,branch:s?.gitBranch??t.branch??null,harness:t.harness??s?.adapterType??null,cwd:s?.cwd??t.cwd??t.projectRoot??null,sessionId:s?.externalSessionId??t.harnessSessionId??null,usage:e?.metadata?.usage??null}}function v(n){return(L(n).cwd??n.facts?.cwd??n.agent.projectRoot??"").trim()||null}function N(n,t=10){return!n||n.files.length===0?[]:g(n.files).sort((e,s)=>{const r=e.state==="read"?0:1,i=s.state==="read"?0:1;return r!==i?i-r:s.lastT-e.lastT}).slice(0,t)}const y=new Set(["bash","shell","terminal","exec","run","command","exec_command","shell_command","local_shell","container_exec","container.exec"]);function b(n){return n.replace(/\\(["\\/bfnrt])/g,(t,e)=>{switch(e){case"n":return`
2
+ `;case"t":return" ";case"r":return"\r";case"b":return"\b";case"f":return"\f";default:return e}})}function d(n){const t=n.filter(r=>typeof r=="string");if(t.length===0)return"";const e=t[0].replace(/^.*\//,"");return(t.length>=3&&(e==="bash"||e==="sh"||e==="zsh"||e==="fish")&&/^-[a-z]*c$/.test(t[1])?t.slice(2):t).join(" ").trim()}function C(n){const t=n?.trim();if(!t)return"";if(t.startsWith("{"))try{const e=JSON.parse(t);for(const s of["command","cmd","script","input","code"]){const r=e[s];if(typeof r=="string"&&r.trim())return r.trim();if(Array.isArray(r)){const i=d(r);if(i)return i}}}catch{const e=t.match(/"(?:command|cmd|script|input|code)"\s*:\s*"((?:[^"\\]|\\.)*)/);if(e&&e[1].trim())return b(e[1]).trim()}else if(t.startsWith("["))try{const e=JSON.parse(t);if(Array.isArray(e)){const s=d(e);if(s)return s}}catch{}return t}function S(n){const t=n.result;if(t)for(const e of["status","exit","matches","result","summary"]){const s=t[e];if(s!=null&&`${s}`.trim())return`${s}`.trim().slice(0,24)}return null}function B(n,t=12){if(!n)return[];const e=[];for(const s of n.events){if(s.kind!=="tool"||!y.has((s.tool??"").trim().toLowerCase()))continue;const r=C(s.arg);!r||r==="started"||r==="completed"||r.startsWith("[")||e.push({id:s.id,command:r,outcome:S(s)})}return e.slice(-t)}function O(n,t=220){const e=n.summary?.trim()||n.body.trim()||n.rawText.trim();if(!e)return"";const s=e.replace(/\s+/g," ").trim();return s.length<=t?s:`${s.slice(0,Math.max(0,t-1)).trimEnd()}…`}function x(n){const t=n.replace(/\\/g,"/").replace(/\/+$/g,""),e=t.lastIndexOf("/");return e>=0?t.slice(e+1):t}function p(n){return n.toLowerCase().replace(/[^a-z0-9_/-]+/g," ").split(/\s+/).map(t=>t.trim()).filter(t=>t.length>=4).filter(t=>!["plan","plans","todo","work","task","docs","markdown"].includes(t)).slice(0,8)}function A(n,t){const{agent:e,observe:s,source:r}=t,i=s?.metadata?.session,o=[e.project,e.name,e.branch,e.harness,e.workspaceQualifier,e.harnessSessionId,i?.cwd,i?.gitBranch,i?.model,...s?.files.map(a=>a.path)??[],...s?.events.slice(-12).flatMap(a=>[a.arg,a.text,a.detail])??[]].filter(Boolean).join(" ").toLowerCase();if(!o)return 0;const l=n.path.toLowerCase(),u=x(l).toLowerCase(),f=n.title.toLowerCase();let c=0;n.agentId&&n.agentId===e.id&&(c+=10),n.agentName&&n.agentName===e.name&&(c+=6),n.workspaceName&&e.project&&n.workspaceName.toLowerCase()===e.project.toLowerCase()&&(c+=5),l&&o.includes(l)&&(c+=8),u&&o.includes(u)&&(c+=6),f.length>8&&o.includes(f)&&(c+=6);for(const a of n.tags)a.length>=3&&o.includes(a.toLowerCase())&&(c+=2);for(const a of p(n.title))o.includes(a)&&(c+=1);for(const a of n.steps.slice(0,8))for(const h of p(a.text).slice(0,3))o.includes(h)&&(c+=1);return r==="scout"&&n.source==="openscout"&&(c+=2),c}function m(n,t,e=4){return n.map(s=>({document:s,score:A(s,t)})).filter(s=>s.score>=e).sort((s,r)=>r.score-s.score||r.document.updatedAt-s.document.updatedAt)}function T(n,t,e=4){return m(n,t).filter(s=>s.document.steps.length>0).slice(0,e).map(s=>s.document)}function I(n,t,e=6){return m(n,t).filter(s=>s.document.steps.length===0).slice(0,e).map(s=>s.document)}function W(n,t,e={}){return{plans:T(n,t,e.plans??4),docs:I(n,t,e.docs??6)}}export{N as a,L as b,v as c,O as d,B as l,W as r};
@@ -1,4 +1,4 @@
1
- import{a as p}from"./lane-observe-BA3g9aVd.js";import{l as x,a as k}from"./lane-ask-display-B6iCAVcd.js";import{t as T,s as w}from"./bash-format-BRV5C6Gv.js";import{a as C,o as A}from"./tail-display-BRcJltQa.js";const L=["transcript discovered","waiting for events","no session trace","waiting for a live session"];function E(t){if(t.kind==="tool"||t.kind==="think"||t.kind==="ask"||t.kind==="message"||t.kind==="note")return!0;if(t.kind==="system"||t.kind==="boot"){const e=t.text.trim().toLowerCase();return!L.some(n=>e.includes(n))}return!1}function P(t){const e=t?.trim();if(!e)return"file";const n=e.split(/[\\/]/).filter(Boolean);return n[n.length-1]??e}function a(t){return!!t&&/[\p{L}\p{N}]/u.test(t)}function j(t){let e=-1,n=-1;for(const r of t){if(r.kind!=="note")continue;const i=r.text.trim().toLowerCase();i==="turn started"&&(e=r.t),i==="turn complete"&&(n=r.t)}return e>n}function R(t,e){const n=t.filter(E);if(n.length===0)return;if(e&&j(t)){const o=[...n].reverse().find(u=>u.kind==="think"&&a(u.text));if(o)return o}const i=[...n].reverse().find(o=>(o.kind==="message"||o.kind==="ask")&&a(o.text)),l=[...n].reverse().find(o=>o.kind==="tool");return e&&l&&(!i||l.t>i.t)?l:i||(l??n[n.length-1])}function h(t,e=!1){const n=a(t.text)?t.text.trim():void 0,r=i=>i==null?void 0:e?i:i.slice(0,72);switch(t.kind){case"tool":{let i=t.arg?T(t.arg):null;i&&(i=w(i).rest||i);const l=i?e?i:p(i,72):null;return[t.tool,l].filter(Boolean).join(" · ").trim()||"Running tool"}case"think":return r(n)||"Thinking";case"ask":return e?k(t,!0):k(t);case"message":return r(n)||`Message → ${t.to??"operator"}`;case"note":return r(n)||"Turn update";default:return r(n)||t.kind}}function S(t){return h(t)}function H(t){if(t.kind==="ask")return x(t);const e=a(t.text)?t.text.trim():null;return e?e.slice(0,220):t.kind==="tool"&&t.diff?.preview?t.diff.preview.split(`
1
+ import{a as p}from"./lane-observe-vfyACHi0.js";import{l as x,a as k}from"./lane-ask-display-B6iCAVcd.js";import{t as T,s as w}from"./bash-format-BRV5C6Gv.js";import{a as C,o as A}from"./tail-display-DcliDVkW.js";const L=["transcript discovered","waiting for events","no session trace","waiting for a live session"];function E(t){if(t.kind==="tool"||t.kind==="think"||t.kind==="ask"||t.kind==="message"||t.kind==="note")return!0;if(t.kind==="system"||t.kind==="boot"){const e=t.text.trim().toLowerCase();return!L.some(n=>e.includes(n))}return!1}function P(t){const e=t?.trim();if(!e)return"file";const n=e.split(/[\\/]/).filter(Boolean);return n[n.length-1]??e}function a(t){return!!t&&/[\p{L}\p{N}]/u.test(t)}function j(t){let e=-1,n=-1;for(const r of t){if(r.kind!=="note")continue;const i=r.text.trim().toLowerCase();i==="turn started"&&(e=r.t),i==="turn complete"&&(n=r.t)}return e>n}function R(t,e){const n=t.filter(E);if(n.length===0)return;if(e&&j(t)){const o=[...n].reverse().find(u=>u.kind==="think"&&a(u.text));if(o)return o}const i=[...n].reverse().find(o=>(o.kind==="message"||o.kind==="ask")&&a(o.text)),l=[...n].reverse().find(o=>o.kind==="tool");return e&&l&&(!i||l.t>i.t)?l:i||(l??n[n.length-1])}function h(t,e=!1){const n=a(t.text)?t.text.trim():void 0,r=i=>i==null?void 0:e?i:i.slice(0,72);switch(t.kind){case"tool":{let i=t.arg?T(t.arg):null;i&&(i=w(i).rest||i);const l=i?e?i:p(i,72):null;return[t.tool,l].filter(Boolean).join(" · ").trim()||"Running tool"}case"think":return r(n)||"Thinking";case"ask":return e?k(t,!0):k(t);case"message":return r(n)||`Message → ${t.to??"operator"}`;case"note":return r(n)||"Turn update";default:return r(n)||t.kind}}function S(t){return h(t)}function H(t){if(t.kind==="ask")return x(t);const e=a(t.text)?t.text.trim():null;return e?e.slice(0,220):t.kind==="tool"&&t.diff?.preview?t.diff.preview.split(`
2
2
  `).slice(0,4).join(`
3
3
  `):t.kind==="tool"&&t.stream?.length?t.stream.join(`
4
4
  `).slice(0,220):t.kind==="tool"&&t.result?Object.entries(t.result).slice(0,3).map(([n,r])=>`${n}: ${r}`).join(" · "):a(t.detail)?t.detail.trim():null}function M(t,e,n){if(!t||t.events.length===0)return null;const r=R(t.events,n?.isLive??t.live===!0)??t.events[t.events.length-1];if(!r)return null;const i=t.metadata?.session,l=t.events.filter(s=>s.kind==="tool").length,o=t.events.filter(s=>s.kind==="tool"&&C(s.tool)).length,u=t.events.filter(s=>s.kind==="tool"&&A(s.tool)).length,m=t.events.filter(s=>s.kind==="think").length,g=[...t.files].sort((s,d)=>{const f=s.state==="read"?0:1,c=d.state==="read"?0:1;return f!==c?c-f:d.lastT-s.lastT}).slice(0,5);return{headline:S(r),headFull:h(r,!0),headlineFrom:r.kind==="ask"?"user":r.kind==="message"?"agent":null,detail:H(r),model:i?.model??e.model??null,branch:i?.gitBranch??e.branch??null,harness:e.harness??i?.adapterType??null,stats:{tools:l,edits:o,reads:u,thinks:m,files:t.files.length},files:g}}function $(t){return t?P(typeof t=="string"?t:t.path):"file"}export{M as b,$ as f,a as h};