@tickernelz/wardmote-ui 2026.1108.2 → 2026.1111.0

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 (502) hide show
  1. package/dist/assets/AccessSelectIdentity-BzNL_ZaL.js +1 -0
  2. package/dist/assets/ActiveAgentsPanel-CLj_ucN7.js +1 -0
  3. package/dist/assets/AdapterManager-8ofINbXH.js +1 -0
  4. package/dist/assets/AdvancedToolsRoute-dQcLG_fZ.js +39 -0
  5. package/dist/assets/AgentActionButtons-pRsHFtLW.js +1 -0
  6. package/dist/assets/AgentAvatar-EsXsSxSG.js +1 -0
  7. package/dist/assets/AgentBubbleActionRow-nLDgzu9o.js +1 -0
  8. package/dist/assets/AgentCharacter-DzxzveQH.js +2 -0
  9. package/dist/assets/AgentChat-DTQT-Wek.js +1 -0
  10. package/dist/assets/AgentChats-DztS4ACV.js +1 -0
  11. package/dist/assets/AgentDefaults-xGoI264I.js +1 -0
  12. package/dist/assets/AgentDetail-BbpgFl_G.js +38 -0
  13. package/dist/assets/AgentIconPicker-DHCKaIkZ.js +1 -0
  14. package/dist/assets/AgentIdentity-GjMQAWCv.js +1 -0
  15. package/dist/assets/AgentMailCredentialField-CJcF0Clw.js +1 -0
  16. package/dist/assets/AgentMultiSelect-ChKUNflE.js +1 -0
  17. package/dist/assets/AgentRoleEditor-BaT_mb8k.js +1 -0
  18. package/dist/assets/AgentSetupPrompt-CRMBM6wm.js +30 -0
  19. package/dist/assets/AgentTodoCard-BCx1biOy.js +1 -0
  20. package/dist/assets/Agents-BTZu-vy-.js +3 -0
  21. package/dist/assets/AppDetail-Bw4J28Ak.js +5 -0
  22. package/dist/assets/AppLogo-DTmvrLai.js +1 -0
  23. package/dist/assets/AppNotConnected-CBliUH8m.js +1 -0
  24. package/dist/assets/ApprovalCard-DKGjyQt-.js +1 -0
  25. package/dist/assets/ApprovalDetail-DVVR3EtT.js +1 -0
  26. package/dist/assets/ApprovalPayload-DekKq-IE.js +1 -0
  27. package/dist/assets/Approvals-CLeSmmEV.js +1 -0
  28. package/dist/assets/AppsConnect-C35NNIiG.js +1 -0
  29. package/dist/assets/AppsReview-lab3deOa.js +1 -0
  30. package/dist/assets/ArtifactCard-BOcWFgmA.js +1 -0
  31. package/dist/assets/Artifacts-DAtpWAuL.js +1 -0
  32. package/dist/assets/AssistantConnection-gcHktiyu.js +1 -0
  33. package/dist/assets/AttentionInteractionResolver-Cm0k_3MB.js +1 -0
  34. package/dist/assets/AuditHub-C6U9wM2v.js +1 -0
  35. package/dist/assets/Auth-BdXfGiLC.js +3 -0
  36. package/dist/assets/BoardChat-BTFAl90K.js +18 -0
  37. package/dist/assets/BoardClaim-Cv56WNDU.js +1 -0
  38. package/dist/assets/BootstrapSetupUxLab-DbE6ARGg.js +1 -0
  39. package/dist/assets/BreadcrumbContext-C1Pz9E0M.js +1 -0
  40. package/dist/assets/Browse-0mLkYDuT.js +1 -0
  41. package/dist/assets/BudgetPolicyCard-BwV8P4n4.js +1 -0
  42. package/dist/assets/CaseDetail-X0DGQoca.js +2 -0
  43. package/dist/assets/CaseIdentifierKey-DgiLO3Rb.js +1 -0
  44. package/dist/assets/Cases-gjrf6tmu.js +2 -0
  45. package/dist/assets/ChatEndpointDetail-Co2K-j6p.js +5 -0
  46. package/dist/assets/ChatEndpointSetup-XspGek-A.js +1 -0
  47. package/dist/assets/ChatIdentityConfirm-m3fNvAJx.js +1 -0
  48. package/dist/assets/ChoiceControls-Cy8E_BqQ.js +1 -0
  49. package/dist/assets/CliAuth-CTkJ-3kI.js +1 -0
  50. package/dist/assets/CommentAttributionChip-DHuPOHJh.js +1 -0
  51. package/dist/assets/Companies-BbbaWb0v.js +1 -0
  52. package/dist/assets/CompanyAccess-Dmq_cs8a.js +1 -0
  53. package/dist/assets/CompanyActivity-D1j2INEB.js +1 -0
  54. package/dist/assets/CompanyConnections-CZOQquHF.js +1 -0
  55. package/dist/assets/CompanyContext-BxCDBNSH.js +1 -0
  56. package/dist/assets/CompanyEnvironments-DDbrQrMB.js +3 -0
  57. package/dist/assets/CompanyExport-B0eLuNvu.js +4 -0
  58. package/dist/assets/CompanyImport-DbbCQEFp.js +1 -0
  59. package/dist/assets/CompanySettings-8ROAg5aG.js +1 -0
  60. package/dist/assets/CompanySettingsPluginPage-B-79nVuk.js +1 -0
  61. package/dist/assets/CompanySkills-BfBhMNaP.js +10 -0
  62. package/dist/assets/ComposerAddMenu-DBuHSmG4.js +3 -0
  63. package/dist/assets/ConfigureBuiltInAgentModal-BkaylF48.js +1 -0
  64. package/dist/assets/ConnectionSetupFlow-Dzuzx7jk.js +40 -0
  65. package/dist/assets/CopyText-CW3qWFPY.js +1 -0
  66. package/dist/assets/CopyableGatewayUrl-C8LwXvVu.js +1 -0
  67. package/dist/assets/CrossIssueCollaborationUxLab-BNEDnULO.js +1 -0
  68. package/dist/assets/Dashboard-C_87MSE2.js +2 -0
  69. package/dist/assets/DashboardLive-CdHY1mHk.js +1 -0
  70. package/dist/assets/DecisionDateChips-BckDENkn.js +1 -0
  71. package/dist/assets/DecisionModelSettings-DiqQ14Zd.js +1 -0
  72. package/dist/assets/DecisionQueuePage-BZrUoCk3.js +1 -0
  73. package/dist/assets/DesignGuide-B38yltct.js +23 -0
  74. package/dist/assets/DocumentFrameHeader-C57Py4YE.js +1 -0
  75. package/dist/assets/EmailConnectionAccess-CgZl2FFX.js +1 -0
  76. package/dist/assets/EmailEndpointSetup-Dpg3e5IP.js +1 -0
  77. package/dist/assets/EnforcementBanner-CqY3eZb5.js +1 -0
  78. package/dist/assets/EntityRow-CsMXIXXb.js +1 -0
  79. package/dist/assets/ExecutionWorkspaceDetail-w0tph5fx.js +19 -0
  80. package/dist/assets/FilterBar-BsmtWqB7.js +1 -0
  81. package/dist/assets/FoldCurtain-BirYTOEh.js +1 -0
  82. package/dist/assets/FolderControls-DfQCO8-2.js +1 -0
  83. package/dist/assets/GatewayDetail-Cf6WshG5.js +2 -0
  84. package/dist/assets/GatewaysList-C3fEQHRs.js +1 -0
  85. package/dist/assets/GoalDetail-B2jZMNHQ.js +1 -0
  86. package/dist/assets/GoalTree-Btaagjxs.js +1 -0
  87. package/dist/assets/Goals-0Q2Gnko1.js +1 -0
  88. package/dist/assets/Identity-DHk25Fo0.js +1 -0
  89. package/dist/assets/ImageGalleryModal-OwUAU2AO.js +1 -0
  90. package/dist/assets/Inbox-Bk8khlSh.js +2 -0
  91. package/dist/assets/InlineBanner-DnQWPYOq.js +1 -0
  92. package/dist/assets/InlineEditor-B-oEEW8R.js +1 -0
  93. package/dist/assets/InlineEntitySelector-NCqeSVBt.js +1 -0
  94. package/dist/assets/InstanceAccess-DyQFxK_O.js +1 -0
  95. package/dist/assets/InstanceAdvanced-C8uDSsPL.js +1 -0
  96. package/dist/assets/InstanceFeatures-CPYwZmZk.js +1 -0
  97. package/dist/assets/InviteLanding-o-enK_RP.js +1 -0
  98. package/dist/assets/IssueChatLongThreadPerf-CjaD3woT.js +2 -0
  99. package/dist/assets/IssueChatThread-CUlN-lN0.js +40 -0
  100. package/dist/assets/IssueDetail-CdKGl1_O.js +9 -0
  101. package/dist/assets/IssueDocumentAnnotations-DqMdyd5R.js +2 -0
  102. package/dist/assets/IssueOutputSection-BReOvQxZ.js +1 -0
  103. package/dist/assets/IssueRecoveryActionCard-DXthkoa2.js +1 -0
  104. package/dist/assets/IssueReferenceActivitySummary-BybOSmTQ.js +1 -0
  105. package/dist/assets/IssueReferencePill-Byyo3mWU.js +1 -0
  106. package/dist/assets/IssueThreadInteractionCard-CnGISjFd.js +9 -0
  107. package/dist/assets/IssueWriteDenialNotice-CFwpbsKd.js +1 -0
  108. package/dist/assets/Issues-BrnnvHeE.js +3 -0
  109. package/dist/assets/JoinRequestQueue-D2RLtri2.js +1 -0
  110. package/dist/assets/JsonSchemaForm-Cn579kgp.js +1 -0
  111. package/dist/assets/LiveNowTodoLine-DJoyO8eZ.js +1 -0
  112. package/dist/assets/ManagedAiConnectionDetails-DsAuL_cK.js +1 -0
  113. package/dist/assets/MarkdownBody-BfIbo0pr.js +16 -0
  114. package/dist/assets/MarkdownEditor-CCqgqbbX.js +85 -0
  115. package/dist/assets/McpConnect-BJhgeezW.js +1 -0
  116. package/dist/assets/MembershipAction-Bu1nqQYv.js +1 -0
  117. package/dist/assets/MetricCard-DCSvmMqn.js +1 -0
  118. package/dist/assets/MissingPluginTabPlaceholder-UM0Cgk9J.js +1 -0
  119. package/dist/assets/ModelsAndProviders-B0gYOLvd.js +1 -0
  120. package/dist/assets/MootMark-DpAqNyxE.js +1 -0
  121. package/dist/assets/NewAgent-E1cSVMu1.js +1 -0
  122. package/dist/assets/OmpAllSettings-fSc31cIu.js +1 -0
  123. package/dist/assets/OmpSignIn-BSLYU6uC.js +3 -0
  124. package/dist/assets/OpenwaGatewayManager-UG0cEqQK.js +2 -0
  125. package/dist/assets/PathInstructionsModal-CEyWg69s.js +1 -0
  126. package/dist/assets/PipelineSettings-CY-XoAGe.js +2 -0
  127. package/dist/assets/Pipelines-lSbZ6-uQ.js +1 -0
  128. package/dist/assets/PixelsOffice-s8WCydt9.js +2 -0
  129. package/dist/assets/PluginManager-BLY48Rdb.js +1 -0
  130. package/dist/assets/PluginPage-CIvrzBLJ.js +1 -0
  131. package/dist/assets/PluginSettings-DugaPtGC.js +1 -0
  132. package/dist/assets/ProfileDetailRoute-CY9Zo_L-.js +1 -0
  133. package/dist/assets/ProfileSettings-Bfeh1MlI.js +1 -0
  134. package/dist/assets/ProfileWizardRoute-DQ8Wf6CN.js +1 -0
  135. package/dist/assets/ProjectDetail-Cie7YkeD.js +1 -0
  136. package/dist/assets/ProjectWorkspaceDetail-4Eh2xMnt.js +29 -0
  137. package/dist/assets/ProjectWorkspacesContent-CAEuHcwN.js +1 -0
  138. package/dist/assets/Projects-B7XDgtru.js +1 -0
  139. package/dist/assets/PublicIssueSharePage-D7UqYVp1.js +1 -0
  140. package/dist/assets/QuestionForm-BexjfwBC.js +7 -0
  141. package/dist/assets/QuotaBar-85eAFwZM.js +1 -0
  142. package/dist/assets/RepositoryEditor-C783DHwy.js +1 -0
  143. package/dist/assets/ResponsibleUserDenialNotice-CKbMq_8f.js +1 -0
  144. package/dist/assets/ResponsibleUserDenialUxLab-CFDLXQbq.js +1 -0
  145. package/dist/assets/ReviewQueueCard-LPKXTa7p.js +1 -0
  146. package/dist/assets/RichWorkProductCard-BO_PVS_R.js +1 -0
  147. package/dist/assets/RoutineActivityRow-BAIWOkSU.js +1 -0
  148. package/dist/assets/RoutineDetail-CxBrkRyy.js +2 -0
  149. package/dist/assets/RoutineRunVariablesDialog-BmocvukK.js +1 -0
  150. package/dist/assets/RoutineVariablesEditor-CBxgGYWn.js +1 -0
  151. package/dist/assets/Routines-BOD80kz-.js +1 -0
  152. package/dist/assets/ScrollToBottom-MElZx9KC.js +1 -0
  153. package/dist/assets/Search-CBYkMobM.js +1 -0
  154. package/dist/assets/SearchableSelect-DF7YpkdT.js +1 -0
  155. package/dist/assets/Secrets-Bu6q9QVj.js +4 -0
  156. package/dist/assets/SetupWizard-C3-3uNXq.js +1 -0
  157. package/dist/assets/SidebarContext-BDwcx9eV.js +1 -0
  158. package/dist/assets/SidebarNavItem-BFemYMPb.js +1 -0
  159. package/dist/assets/SkillBinaryFile-lsCfxI4Z.js +1 -0
  160. package/dist/assets/SkillCardIcon-D6Sde9N1.js +2 -0
  161. package/dist/assets/SkillSourceTree-BCndxsNf.js +2 -0
  162. package/dist/assets/SkillSources-B7fG3KBv.js +2 -0
  163. package/dist/assets/SkillStudio-BEAfNXcI.js +9 -0
  164. package/dist/assets/SourceTrustBadge-BaYEFytm.js +1 -0
  165. package/dist/assets/StatusCards-BfwQO3yd.js +1 -0
  166. package/dist/assets/StatusIcon-C2NWeA8n.js +1 -0
  167. package/dist/assets/SummarySlotCard-CmxW3-lC.js +1 -0
  168. package/dist/assets/TaskChatComposerTakeoverContext-DWOxDlEu.js +1 -0
  169. package/dist/assets/TaskChatLab-B0aJ05Zn.js +11 -0
  170. package/dist/assets/TaskChatMarker-CqvZL5i4.js +2 -0
  171. package/dist/assets/TaskChatProtocolCard-poluyifm.js +1 -0
  172. package/dist/assets/TaskChatThreadView-QQeO-S6o.js +4 -0
  173. package/dist/assets/TaskDetailRelationsPanel-Bk1aFfQv.js +1 -0
  174. package/dist/assets/TaskTreeControls-CDIjiEFr.js +3 -0
  175. package/dist/assets/Terminal-_XGdPaFV.js +1 -0
  176. package/dist/assets/TerminalView-DYJK_6rV.js +58 -0
  177. package/dist/assets/ThemeContext-DD1EP5qf.js +1 -0
  178. package/dist/assets/ThemeToggle-CYTGbBo5.js +1 -0
  179. package/dist/assets/ToastContext-hirVjDXt.js +1 -0
  180. package/dist/assets/ToolsAdminGate-CGmWPDuY.js +1 -0
  181. package/dist/assets/TrustPresetSection-BE9L2eQf.js +1 -0
  182. package/dist/assets/UserProfile-DUpHIz3U.js +1 -0
  183. package/dist/assets/WebhookUrlWarning-DEtZrsXR.js +1 -0
  184. package/dist/assets/WhatNeedsMe-s8nEWFq9.js +1 -0
  185. package/dist/assets/WorkspaceRuntimeControls-UK1xSSV7.js +1 -0
  186. package/dist/assets/Workspaces-J1XIkM6C.js +1 -0
  187. package/dist/assets/access-CbJiLazn.js +1 -0
  188. package/dist/assets/activity-Cvh9YJZ4.js +1 -0
  189. package/dist/assets/activity-format-B1sPfZ7Q.js +1 -0
  190. package/dist/assets/activity-in5dxqje.js +1 -0
  191. package/dist/assets/adapter-display-registry-DLd1q9Lr.js +1 -0
  192. package/dist/assets/adapters-qgEEm2Iw.js +1 -0
  193. package/dist/assets/agent-avatar-url-BqlU_BLu.js +1 -0
  194. package/dist/assets/agent-config-primitives-CB06SePU.js +1 -0
  195. package/dist/assets/agent-order-BE-pAWdx.js +1 -0
  196. package/dist/assets/agentChats-C2bFjmaS.js +1 -0
  197. package/dist/assets/agents-HNnobIne.js +1 -0
  198. package/dist/assets/alert-dialog-DnlZalnH.js +1 -0
  199. package/dist/assets/app-connect-policy-IJzJACTA.js +1 -0
  200. package/dist/assets/archive-CSkC2INB.js +1 -0
  201. package/dist/assets/archive-restore-lk6xiO1p.js +1 -0
  202. package/dist/assets/arrow-down-B0zOBhzU.js +1 -0
  203. package/dist/assets/arrow-down-left-DW1TelNZ.js +1 -0
  204. package/dist/assets/arrow-left-CKq5sdlw.js +1 -0
  205. package/dist/assets/arrow-right-CDTbNhTa.js +1 -0
  206. package/dist/assets/arrow-up-DgjI5OHn.js +1 -0
  207. package/dist/assets/arrow-up-down-RwrdXrTc.js +1 -0
  208. package/dist/assets/arrow-up-right-CnSONOF5.js +1 -0
  209. package/dist/assets/artifacts-CaQr7P1r.js +1 -0
  210. package/dist/assets/assets-j5Kg0sqV.js +1 -0
  211. package/dist/assets/assignees-DkQNbPzi.js +1 -0
  212. package/dist/assets/audit-navigation-IalprBz0.js +1 -0
  213. package/dist/assets/avatar-Cliaab6i.js +1 -0
  214. package/dist/assets/badge-CmRCZQXu.js +1 -0
  215. package/dist/assets/badge-check-ByHo5kUl.js +1 -0
  216. package/dist/assets/bot-TL3Jdr73.js +1 -0
  217. package/dist/assets/boxes-BxuK2fXe.js +1 -0
  218. package/dist/assets/braces-Cc8xLJ1U.js +1 -0
  219. package/dist/assets/browser-use-DEYvGklp.js +1 -0
  220. package/dist/assets/budgets-ifaLm6Di.js +1 -0
  221. package/dist/assets/button-Cq79rkKD.js +1 -0
  222. package/dist/assets/calendar-clock-Bm_UA63E.js +1 -0
  223. package/dist/assets/card-DCb-JOH-.js +1 -0
  224. package/dist/assets/cases-DVp6Rjr-.js +1 -0
  225. package/dist/assets/chatEndpoints-DkjTRXJB.js +1 -0
  226. package/dist/assets/check-vba7RPNV.js +1 -0
  227. package/dist/assets/checkbox-BGLv5God.js +1 -0
  228. package/dist/assets/chevron-down-CTfmQYtZ.js +1 -0
  229. package/dist/assets/chevron-left-DbSymkYp.js +1 -0
  230. package/dist/assets/chevron-right-CZqG6c6-.js +1 -0
  231. package/dist/assets/chevron-up-CzC1gtv6.js +1 -0
  232. package/dist/assets/chip-BzNFVgX5.js +1 -0
  233. package/dist/assets/circle-3iXc8Bn9.js +1 -0
  234. package/dist/assets/circle-alert-DXWfyHyZ.js +1 -0
  235. package/dist/assets/circle-dot-ClSiVq7g.js +1 -0
  236. package/dist/assets/circle-question-mark-CqwY53-2.js +1 -0
  237. package/dist/assets/circle-slash-CFjhY0cX.js +1 -0
  238. package/dist/assets/circle-x-DlwqHtyY.js +1 -0
  239. package/dist/assets/clipboard-CTLKYvRL.js +1 -0
  240. package/dist/assets/clipboard-paste-0RG8HmtD.js +1 -0
  241. package/dist/assets/clock-BoEHLMU_.js +1 -0
  242. package/dist/assets/cloud-J5TXOfaU.js +1 -0
  243. package/dist/assets/code-xml-CfpLGfdE.js +1 -0
  244. package/dist/assets/coins-BzhY_8bw.js +1 -0
  245. package/dist/assets/collapsible-BVnhGR5_.js +1 -0
  246. package/dist/assets/color-contrast-BHHcEMtO.js +1 -0
  247. package/dist/assets/columns-3-BEJ-fVu5.js +1 -0
  248. package/dist/assets/command-Cq8PZDyP.js +5 -0
  249. package/dist/assets/companies-query-CmKa9bVw.js +1 -0
  250. package/dist/assets/company-skill-routes-D5LJ1l8M.js +1 -0
  251. package/dist/assets/connection-identity-HeZN7f9X.js +1 -0
  252. package/dist/assets/connection-owner-DfXYDqVS.js +1 -0
  253. package/dist/assets/copy-DWkF-rFH.js +1 -0
  254. package/dist/assets/createLucideIcon-C01KAfc1.js +94 -0
  255. package/dist/assets/decision-models-B27g9stT.js +1 -0
  256. package/dist/assets/{definition-CvJN1sEp.js → definition-CP66xiVi.js} +1 -1
  257. package/dist/assets/dialog-DAYoqqlE.js +1 -0
  258. package/dist/assets/dist-B6TpBrd3.js +1 -0
  259. package/dist/assets/dist-BAtkULn4.js +1 -0
  260. package/dist/assets/{dist-YLpD_m68.js → dist-BEo-uoE2.js} +2 -2
  261. package/dist/assets/dist-BPuuaNc6.js +1 -0
  262. package/dist/assets/dist-BQx_Sj8Z.js +1 -0
  263. package/dist/assets/dist-BX4PSqp4.js +1 -0
  264. package/dist/assets/dist-BY93_d3Z.js +1 -0
  265. package/dist/assets/{dist-CoBeqEhN.js → dist-Bc6S4vv3.js} +2 -2
  266. package/dist/assets/dist-BgbeNgQ7.js +1 -0
  267. package/dist/assets/dist-BhEZ0cZQ.js +1 -0
  268. package/dist/assets/dist-BhxPxuMy.js +13 -0
  269. package/dist/assets/dist-BoCmQaxU.js +1 -0
  270. package/dist/assets/{dist-Bs-s6dPt.js → dist-Bp5Y-deP.js} +1 -1
  271. package/dist/assets/dist-C7_8mWOJ.js +1 -0
  272. package/dist/assets/dist-CD47N__7.js +1 -0
  273. package/dist/assets/{dist-D_0NfuCy.js → dist-CN5Rg9XU.js} +4 -4
  274. package/dist/assets/dist-CcBZFMdg.js +1 -0
  275. package/dist/assets/dist-CdFTLNcc.js +1 -0
  276. package/dist/assets/dist-CjIC-l6P.js +1 -0
  277. package/dist/assets/{dist-DwUD8svp.js → dist-Cv1Aw0YM.js} +1 -1
  278. package/dist/assets/dist-CxscfvXr.js +1 -0
  279. package/dist/assets/dist-D4qkWMdz.js +1 -0
  280. package/dist/assets/{dist-DX49WtIu.js → dist-D61jI6QA.js} +1 -1
  281. package/dist/assets/dist-DTj_cM7l.js +1 -0
  282. package/dist/assets/dist-DTwCbVsv.js +7 -0
  283. package/dist/assets/dist-DXN4Acbb.js +1 -0
  284. package/dist/assets/dist-DY5RRJBY.js +1 -0
  285. package/dist/assets/dist-Dqr5P1yA.js +1 -0
  286. package/dist/assets/dist-DrXWoUSy.js +1 -0
  287. package/dist/assets/dist-Uvf9OORN.js +1 -0
  288. package/dist/assets/dist-Wi1mdRva.js +1 -0
  289. package/dist/assets/dist-ZRlzTkPa.js +1 -0
  290. package/dist/assets/dist-ds5P5TFe.js +13 -0
  291. package/dist/assets/dist-t8wEz_ib.js +1 -0
  292. package/dist/assets/dist-xt2ddRNe.js +1 -0
  293. package/dist/assets/dist-yKrp-Qew.js +1 -0
  294. package/dist/assets/dropdown-menu-BgB3ZFIW.js +1 -0
  295. package/dist/assets/dynamic-loader-ehitOaJV.js +103 -0
  296. package/dist/assets/ellipsis-BK2IHFgt.js +1 -0
  297. package/dist/assets/ellipsis-vertical-C5e3-e9R.js +1 -0
  298. package/dist/assets/email-CV3yYcNq.js +1 -0
  299. package/dist/assets/environment-variables-editor-BitLLMXQ.js +1 -0
  300. package/dist/assets/environments-CfHweeFn.js +1 -0
  301. package/dist/assets/es2015-DhDTIiZX.js +41 -0
  302. package/dist/assets/execution-projection-BGI5f3kX.js +1 -0
  303. package/dist/assets/external-link-CFqVy5ry.js +1 -0
  304. package/dist/assets/eye-BwNiGG0K.js +1 -0
  305. package/dist/assets/eye-off-DM4Mn0Ui.js +1 -0
  306. package/dist/assets/fast-responses-DPQkf5ib.js +1 -0
  307. package/dist/assets/file-_5byK_0p.js +1 -0
  308. package/dist/assets/file-code-corner-P0uyjZIh.js +1 -0
  309. package/dist/assets/file-pen-line-kClOj_yW.js +1 -0
  310. package/dist/assets/file-question-mark-CkUR8QEW.js +1 -0
  311. package/dist/assets/file-search-B7lfsYmF.js +1 -0
  312. package/dist/assets/file-text-Chu49UHl.js +1 -0
  313. package/dist/assets/flag-CrPUL4EW.js +1 -0
  314. package/dist/assets/flask-conical-Dcrf_nx_.js +1 -0
  315. package/dist/assets/folder-git-2-CLpnZyIw.js +1 -0
  316. package/dist/assets/folder-open-Kn4cJ9z0.js +1 -0
  317. package/dist/assets/folder-search-B8ukxS6T.js +1 -0
  318. package/dist/assets/funnel-DCdgde5v.js +1 -0
  319. package/dist/assets/git-pull-request-BpJt0qs7.js +1 -0
  320. package/dist/assets/github-icon-Cd7zG3cl.js +1 -0
  321. package/dist/assets/health-DgXwfcgQ.js +1 -0
  322. package/dist/assets/heartbeats-DqejhX23.js +1 -0
  323. package/dist/assets/inbox-Cbfplszq.js +1 -0
  324. package/dist/assets/inboxArchiveCache-BtWGk_ob.js +1 -0
  325. package/dist/assets/index-B68fUztV.js +63 -0
  326. package/dist/assets/index-EGhEwKJ3.css +2 -0
  327. package/dist/assets/info-DH5P_pOB.js +1 -0
  328. package/dist/assets/input-ChF32KiE.js +1 -0
  329. package/dist/assets/instance-settings-QXUWVmQs.js +1 -0
  330. package/dist/assets/instanceSettings-CUD5DYwc.js +1 -0
  331. package/dist/assets/interaction-audience-B7SSjTOH.js +1 -0
  332. package/dist/assets/interaction-card-visibility-BruS_M_b.js +1 -0
  333. package/dist/assets/invite-memory-CHGcQdLs.js +1 -0
  334. package/dist/assets/issue-attribution-DfN_3u2W.js +1 -0
  335. package/dist/assets/issue-blockers-CPChygIu.js +1 -0
  336. package/dist/assets/issue-filters-BO9xiK0c.js +1 -0
  337. package/dist/assets/issue-output-BWw5hGM4.js +1 -0
  338. package/dist/assets/issue-properties-DImTADpL.js +4 -0
  339. package/dist/assets/issue-share-BziUBrKs.js +1 -0
  340. package/dist/assets/issue-workspace-selection-ZZQ5MvBX.js +1 -0
  341. package/dist/assets/issueActiveRun-s6f-GUHq.js +1 -0
  342. package/dist/assets/key-round-hIknfaVC.js +1 -0
  343. package/dist/assets/label-B8cGBdHV.js +1 -0
  344. package/dist/assets/layout-dashboard-B47lh1t7.js +1 -0
  345. package/dist/assets/line-diff-DAcZgvm2.js +3 -0
  346. package/dist/assets/link-2-Czdp7P22.js +1 -0
  347. package/dist/assets/link-B5IDCTfS.js +1 -0
  348. package/dist/assets/list-filter-DGszpYtY.js +1 -0
  349. package/dist/assets/list-todo-mtfpHiej.js +1 -0
  350. package/dist/assets/log-in-xaKdjJ3s.js +1 -0
  351. package/dist/assets/managed-sandbox-environment-B8DewKvK.js +1 -0
  352. package/dist/assets/maximize-2-D_7SnXGd.js +1 -0
  353. package/dist/assets/{mention-chips-BKRdYPgz.js → mention-chips-rgpUYSS0.js} +9 -9
  354. package/dist/assets/message-square-plus-Bx97bVFn.js +1 -0
  355. package/dist/assets/minus-Cksvqs-H.js +1 -0
  356. package/dist/assets/model-DidtFy-U.js +1 -0
  357. package/dist/assets/model-fallback-BA1V-ii-.js +1 -0
  358. package/dist/assets/model-picker-fields-reyKlVR2.js +1 -0
  359. package/dist/assets/network-DuLdTW_2.js +1 -0
  360. package/dist/assets/octagon-alert-CDc0IOFm.js +1 -0
  361. package/dist/assets/octagon-x-BnObTt3C.js +1 -0
  362. package/dist/assets/omp-settings-model-RrukAqFT.js +1 -0
  363. package/dist/assets/package-CAlqg80l.js +1 -0
  364. package/dist/assets/paperclip-CdwdbvAb.js +1 -0
  365. package/dist/assets/pause-D5LWH4m4.js +1 -0
  366. package/dist/assets/pen-line-BctzdUrl.js +1 -0
  367. package/dist/assets/pencil-4y59RLDI.js +1 -0
  368. package/dist/assets/pipeline-stage-presentation-DplSUQ-v.js +2 -0
  369. package/dist/assets/pipelines-zw8JXnEw.js +1 -0
  370. package/dist/assets/play-DYcWlP80.js +1 -0
  371. package/dist/assets/plug-Dlmv_sib.js +1 -0
  372. package/dist/assets/plugins-DxlXA9g_.js +1 -0
  373. package/dist/assets/plus-XHeYelml.js +1 -0
  374. package/dist/assets/popover-Dq6_MkmZ.js +1 -0
  375. package/dist/assets/portable-files-CloN_vbk.js +1 -0
  376. package/dist/assets/power-Df1YORDz.js +1 -0
  377. package/dist/assets/presentation-mode-B1mYfRtC.js +1 -0
  378. package/dist/assets/primary-sidebar-styles-BdMiagDc.js +1 -0
  379. package/dist/assets/profile-summary-ClLOCEcJ.js +1 -0
  380. package/dist/assets/projects-DebVPi8C.js +1 -0
  381. package/dist/assets/proposal-review-COOriT05.js +1 -0
  382. package/dist/assets/query-placeholder-data-Bg4z2kcq.js +1 -0
  383. package/dist/assets/queryClient-zvH4bKo9.js +1 -0
  384. package/dist/assets/queryKeys-Br82Auye.js +1 -0
  385. package/dist/assets/radio-BIjLcReK.js +1 -0
  386. package/dist/assets/radio-card-BO_94Vo8.js +1 -0
  387. package/dist/assets/recent-agent-chats-BzbiZr3S.js +1 -0
  388. package/dist/assets/recent-assignees-DmalYaLf.js +1 -0
  389. package/dist/assets/recent-selections-BnN_nb6Y.js +1 -0
  390. package/dist/assets/refresh-cw-CqldqiKu.js +1 -0
  391. package/dist/assets/repeat-5LyAUYWe.js +1 -0
  392. package/dist/assets/resizable-panels-D6N09g1s.js +1 -0
  393. package/dist/assets/responsible-user-denial-Dyl0BwU5.js +1 -0
  394. package/dist/assets/retired-composio-DrxhEOpx.js +1 -0
  395. package/dist/assets/review-policy-C0aUsC3B.js +1 -0
  396. package/dist/assets/rotate-ccw-CMMEfcO3.js +1 -0
  397. package/dist/assets/rotate-cw-chXO5k8L.js +1 -0
  398. package/dist/assets/router-Bo2oJyq_.js +1 -0
  399. package/dist/assets/routines-Dj56gU5g.js +1 -0
  400. package/dist/assets/run-log-chunks-ZnzOvrXs.js +2 -0
  401. package/dist/assets/runRetryState-BykQUNQw.js +1 -0
  402. package/dist/assets/save-B-X79KYj.js +1 -0
  403. package/dist/assets/schema-config-fields-BKzRKOf-.js +1 -0
  404. package/dist/assets/scroll-area-C1fbWVPu.js +1 -0
  405. package/dist/assets/scroll-text-C2dYnVvE.js +1 -0
  406. package/dist/assets/search-BXCEz7xF.js +1 -0
  407. package/dist/assets/searchable-select-fvMNMcqm.js +1 -0
  408. package/dist/assets/secrets-DhK8O7Pz.js +1 -0
  409. package/dist/assets/segmented-tifc6Dov.js +1 -0
  410. package/dist/assets/select-zH7gqAbB.js +1 -0
  411. package/dist/assets/send-DixgMXzs.js +1 -0
  412. package/dist/assets/separator-B65gZ5VY.js +1 -0
  413. package/dist/assets/server-DnsT1uDe.js +1 -0
  414. package/dist/assets/server-cog-vS2OmfoT.js +1 -0
  415. package/dist/assets/settings-D88XZaPT.js +1 -0
  416. package/dist/assets/shared-CT8xZIqu.js +1 -0
  417. package/dist/assets/sheet-DnX__vl2.js +1 -0
  418. package/dist/assets/shield-KDhiJeJq.js +1 -0
  419. package/dist/assets/shield-alert-BEyIvSqK.js +1 -0
  420. package/dist/assets/shield-check-BBMPASnP.js +1 -0
  421. package/dist/assets/shield-question-mark-CzkOeQok.js +1 -0
  422. package/dist/assets/shield-x-Cf3sKG3X.js +1 -0
  423. package/dist/assets/sidebarPreferences-CdgZXAKV.js +1 -0
  424. package/dist/assets/skeleton-B4cIa_g2.js +1 -0
  425. package/dist/assets/skill-source-connect-return-C3vV7DQP.js +1 -0
  426. package/dist/assets/slots-FyJ3Hfus.js +49 -0
  427. package/dist/assets/smoke-lab-matrix-DWiBJIcl.js +1 -0
  428. package/dist/assets/square-DPfXoq29.js +1 -0
  429. package/dist/assets/star-B0Mu4cdA.js +15 -0
  430. package/dist/assets/sun-Bl_UqCKR.js +1 -0
  431. package/dist/assets/system-notice-comment-CoRAcwGq.js +1 -0
  432. package/dist/assets/tabs-B0vo1rAq.js +1 -0
  433. package/dist/assets/task-chat-attachments-DtAs6_z7.js +10 -0
  434. package/dist/assets/terminal-Bm6kwzsr.js +1 -0
  435. package/dist/assets/terminal-font-B-qtwS34.js +10 -0
  436. package/dist/assets/textarea-DddKJofz.js +1 -0
  437. package/dist/assets/thumbs-down-BVyvvF51.js +1 -0
  438. package/dist/assets/thumbs-up-BueMhd4r.js +1 -0
  439. package/dist/assets/toggle-switch-D8RWluFT.js +1 -0
  440. package/dist/assets/tool-taxonomy-ChJ16HLB.js +1 -0
  441. package/dist/assets/tools-ClJdhG8w.js +1 -0
  442. package/dist/assets/tooltip-BF1EZSM_.js +1 -0
  443. package/dist/assets/transcript-adapter-8zQ2IrC0.js +5 -0
  444. package/dist/assets/trash-CN4Xf2am.js +1 -0
  445. package/dist/assets/triangle-alert-DuUA72IB.js +1 -0
  446. package/dist/assets/use-adapter-capabilities-DIMhQ3jT.js +1 -0
  447. package/dist/assets/use-copy-action-JoIz-xmX.js +1 -0
  448. package/dist/assets/useAgentChatEnabled-hizcCAft.js +1 -0
  449. package/dist/assets/useAutosaveIndicator-DT0E_3dy.js +1 -0
  450. package/dist/assets/useHiddenSettings-CXOyNixn.js +1 -0
  451. package/dist/assets/useInfiniteQuery-Desl5o9L.js +1 -0
  452. package/dist/assets/useInstanceFeatureSettings-DVYS6vi6.js +1 -0
  453. package/dist/assets/useManagedSandboxOnly-Buxyl4mU.js +1 -0
  454. package/dist/assets/useMobileEntityPickerViewportStyle-CTKldW72.js +1 -0
  455. package/dist/assets/usePrefersReducedMotion-D9kOF5TM.js +1 -0
  456. package/dist/assets/useProfilesData-BaJegHE_.js +1 -0
  457. package/dist/assets/useQueries-Dsz6Nov_.js +1 -0
  458. package/dist/assets/useSecondTick-BpSp0EL3.js +1 -0
  459. package/dist/assets/useSharedPolling-BsEZUKWE.js +1 -0
  460. package/dist/assets/useSummaryDraftStream-B5G7DDoN.js +3 -0
  461. package/dist/assets/user-DrmBwrR4.js +1 -0
  462. package/dist/assets/user-check-wxCkYhKI.js +1 -0
  463. package/dist/assets/user-minus-D4gqJyh-.js +1 -0
  464. package/dist/assets/user-round-CafDnRCl.js +1 -0
  465. package/dist/assets/user-x-Cc_Mqj5k.js +1 -0
  466. package/dist/assets/users-BCTPIiOj.js +1 -0
  467. package/dist/assets/wand-sparkles-BAzjtC-H.js +1 -0
  468. package/dist/assets/webhook-BmdMp-g8.js +1 -0
  469. package/dist/assets/workspace-restore-Dz-CzQw6.js +1 -0
  470. package/dist/assets/x-s4V0MRUq.js +1 -0
  471. package/dist/brands/adapters/openai-dot.README.md +1 -1
  472. package/dist/downloads/local-browser-chromium.zip +0 -0
  473. package/dist/downloads/local-browser-firefox-unsigned.zip +0 -0
  474. package/dist/downloads/local-browser-firefox.xpi +0 -0
  475. package/dist/fonts/NOTICE.md +1 -1
  476. package/dist/index.html +222 -19
  477. package/dist/sw.js +3 -3
  478. package/package.json +2 -2
  479. package/dist/assets/CompanyExport-nSZ6c22o.js +0 -4
  480. package/dist/assets/Terminal-BUKNL-hS.js +0 -1
  481. package/dist/assets/clipboard-oERS_NGj.js +0 -15
  482. package/dist/assets/dist-7JK5o5w2.js +0 -7
  483. package/dist/assets/dist-BJVIAntd.js +0 -1
  484. package/dist/assets/dist-BNQK72Ay.js +0 -1
  485. package/dist/assets/dist-BRZ2juoF.js +0 -1
  486. package/dist/assets/dist-BYmxsnlZ.js +0 -1
  487. package/dist/assets/dist-Be2PH9Ri.js +0 -1
  488. package/dist/assets/dist-BsvRtKyc.js +0 -1
  489. package/dist/assets/dist-C-AEDno-.js +0 -1
  490. package/dist/assets/dist-CPFoA4ty.js +0 -1
  491. package/dist/assets/dist-CWYWSO70.js +0 -1
  492. package/dist/assets/dist-CsYwdeKQ.js +0 -1
  493. package/dist/assets/dist-CwygYsQk.js +0 -1
  494. package/dist/assets/dist-DCmyl8JS.js +0 -1
  495. package/dist/assets/dist-DLhVtuRQ.js +0 -1
  496. package/dist/assets/dist-DpJyVhoi.js +0 -1
  497. package/dist/assets/dist-DxGmGQAd.js +0 -1
  498. package/dist/assets/dist-aSaqj57N.js +0 -1
  499. package/dist/assets/dist-fm9IOgs2.js +0 -13
  500. package/dist/assets/index-CXBON4gu.js +0 -760
  501. package/dist/assets/index-CYb_Lk-W.css +0 -1
  502. package/dist/assets/x-CzBf9g0R.js +0 -134
@@ -0,0 +1,49 @@
1
+ var Q=Object.defineProperty;var r=(e,t)=>Q(e,"name",{value:t,configurable:!0});import{i as H}from"./rolldown-runtime-ZpX3ckPj.js";import{$i as X,Qi as Z,l as D}from"./createLucideIcon-C01KAfc1.js";import{t as A}from"./preload-helper-CceJXRIF.js";import{g as Y,h as ee}from"./star-B0Mu4cdA.js";import{n as te,t as F,v as z}from"./queryKeys-Br82Auye.js";import{o as ne}from"./companies-query-CmKa9bVw.js";import{d as re,f as L}from"./router-Bo2oJyq_.js";import{r as oe}from"./SidebarContext-BDwcx9eV.js";import{a as ie}from"./ToastContext-hirVjDXt.js";import{t as N}from"./plugins-DxlXA9g_.js";import{r as se}from"./instance-settings-QXUWVmQs.js";var a=H(X(),1),V=(0,a.createContext)(null);function k(){const e=(0,a.useContext)(V);if(!e)throw new Error("Plugin bridge hook called outside of a <PluginBridgeContext.Provider>. Ensure the plugin component is rendered within a PluginBridgeScope.");return e}r(k,"usePluginBridgeContext");function J(e){if(e instanceof te&&e.body&&typeof e.body=="object"){const t=e.body;if(typeof t.code=="string"&&typeof t.message=="string")return{code:t.code,message:t.message,details:t.details};if(typeof t.error=="string")return{code:"UNKNOWN",message:t.error}}return{code:"UNKNOWN",message:e instanceof Error?e.message:String(e)}}r(J,"extractBridgeError");function ae(e){if(!e)return"";try{return JSON.stringify(e,Object.keys(e).sort())}catch{return""}}r(ae,"serializeParams");function W(e){return e?{environment:e.environment,launcherId:e.launcherId,bounds:e.bounds}:null}r(W,"serializeRenderEnvironment");function ue(e){return e?JSON.stringify(e):""}r(ue,"serializeRenderEnvironmentSnapshot");function ce(e){const t=e.match(/^([^?#]*)(\?[^#]*)?(#.*)?$/);return{pathname:t?.[1]??e,search:t?.[2]??"",hash:t?.[3]??""}}r(ce,"splitPath");function j(e){if(!/^[a-z][a-z\d+.-]*:/i.test(e)&&!e.startsWith("//"))return e;if(typeof window>"u")return null;try{const t=new URL(e,window.location.origin);return t.origin!==window.location.origin?null:`${t.pathname}${t.search}${t.hash}`}catch{return null}}r(j,"sameOriginPathFromHref");function le(e,t){const[n]=e.split("/").filter(Boolean);return n?.toUpperCase()===L(t)}r(le,"hasCompanyPrefix");function de(e){return e==="/instance"||e==="/instance/settings"||e.startsWith("/instance/settings/")||e==="/settings"||e.startsWith("/settings/")}r(de,"isLegacyInstanceSettingsPath");function ge(e,t){const n=j(e);if(n===null)return e;const{pathname:s,search:o,hash:i}=ce(n);if(de(s)){const c=se(`${s}${o}${i}`);return t?`/${L(t)}${c}`:c}return!s.startsWith("/")||re(s)||!t||le(s,t)?n:`/${L(t)}${s}${o}${i}`}r(ge,"resolveHostNavigationHref");function pe(e){return!e.defaultPrevented&&e.button===0&&!e.metaKey&&!e.altKey&&!e.ctrlKey&&!e.shiftKey}r(pe,"isPlainLeftClick");function fe(e,t,n){return!pe(e)||n&&n!=="_self"||e.currentTarget.hasAttribute("download")?!1:j(t)!==null}r(fe,"shouldHandleHostNavigationClick");function Ge(e,t){const{pluginId:n,hostContext:s}=k(),o=s.companyId,i=W(s.renderEnvironment),c=ue(i),[d,l]=(0,a.useState)(null),[p,u]=(0,a.useState)(!0),[g,f]=(0,a.useState)(null),[m,y]=(0,a.useState)(0),b=ae(t);return(0,a.useEffect)(()=>{let P=!1,I=null,h=0;const T=2,E=["WORKER_UNAVAILABLE","TIMEOUT"];u(!0);const C=r(()=>{N.bridgeGetData(n,e,t,o,i).then(K=>{P||(l(K.data),f(null),u(!1))}).catch(K=>{if(P)return;const U=J(K);if(E.includes(U.code)&&h<T){h+=1,I=setTimeout(()=>{I=null,P||C()},150*h);return}f(U),l(null),u(!1)})},"request");return C(),()=>{P=!0,I&&clearTimeout(I)}},[n,e,b,m,o,c]),{data:d,loading:p,error:g,refresh:(0,a.useCallback)(()=>{y(P=>P+1)},[])}}r(Ge,"usePluginData");function Qe(e){const t=k(),n=(0,a.useRef)(t);return n.current=t,(0,a.useCallback)(async s=>{const{pluginId:o,hostContext:i}=n.current,c=i.companyId,d=W(i.renderEnvironment);try{return(await N.bridgePerformAction(o,e,s,c,d)).data}catch(l){throw J(l)}},[e])}r(Qe,"usePluginAction");function Xe(){const{hostContext:e}=k();return e}r(Xe,"useHostContext");function Ze(){const{hostContext:e}=k(),t=Y(),{isMobile:n,setSidebarOpen:s}=oe(),o=e.companyPrefix,i=(0,a.useCallback)(l=>ge(l,o),[o]),c=(0,a.useCallback)((l,p)=>{const u=i(l),g=j(u);if(g===null){window.location.assign(u);return}t(g,p),n&&s(!1)},[n,i,t,s]),d=(0,a.useCallback)((l,p)=>{const u=i(l);return{href:u,target:p?.target,rel:p?.rel,onClick:r(g=>{fe(g,u,p?.target)&&(g.preventDefault(),c(u,p))},"onClick")}},[c,i]);return(0,a.useMemo)(()=>({resolveHref:i,navigate:c,linkProps:d}),[d,c,i])}r(Ze,"useHostNavigation");function Ye(){const e=ee();return(0,a.useMemo)(()=>({pathname:e.pathname,search:e.search,hash:e.hash,state:e.state}),[e.hash,e.pathname,e.search,e.state])}r(Ye,"useHostLocation");function et(){const{pushToast:e}=ie();return(0,a.useCallback)(t=>e(t),[e])}r(et,"usePluginToast");function tt(e,t){const{pluginId:n,hostContext:s}=k(),o=t?.companyId??s.companyId??void 0,[i,c]=(0,a.useState)([]),[d,l]=(0,a.useState)(null),[p,u]=(0,a.useState)(!!o),[g,f]=(0,a.useState)(!1),[m,y]=(0,a.useState)(null),b=(0,a.useRef)(null),P=(0,a.useCallback)(()=>{b.current?.close(),b.current=null,u(!1),f(!1)},[]);return(0,a.useEffect)(()=>{if(c([]),l(null),y(null),!o){P();return}const I=new URLSearchParams({companyId:o}),h=new EventSource(`/api/plugins/${encodeURIComponent(n)}/bridge/stream/${encodeURIComponent(e)}?${I.toString()}`,{withCredentials:!0});return b.current=h,u(!0),f(!1),h.onopen=()=>{u(!1),f(!0),y(null)},h.onmessage=T=>{try{const E=JSON.parse(T.data);c(C=>[...C,E]),l(E)}catch(E){y(E instanceof Error?E:new Error(String(E)))}},h.addEventListener("close",()=>{h.close(),b.current===h&&(b.current=null),u(!1),f(!1)}),h.onerror=()=>{u(!1),f(!1),y(new Error(`Failed to connect to plugin stream "${e}"`)),h.close(),b.current===h&&(b.current=null)},()=>{h.close(),b.current===h&&(b.current=null)}},[e,P,o,n]),{events:i,lastEvent:d,connecting:p,connected:g,error:m,close:P}}r(tt,"usePluginStream");var S=H(Z(),1);function nt(e,t){if(!t)return null;const n=e.filter(i=>i.type==="page"&&i.routePath===t);if(n.length!==1)return null;const[s]=n,o=e.filter(i=>i.type==="routeSidebar"&&i.routePath===t&&i.pluginId===s.pluginId);return o.length!==1?null:o[0]??null}r(nt,"resolveRouteSidebarSlot");var $=new Map,_=new Set;function v(e,t){return`${e}:${t}`}r(v,"buildRegistryKey");function q(){for(const e of _)e()}r(q,"notifyRegistryListeners");function me(){const[,e]=(0,a.useState)(0);(0,a.useEffect)(()=>{const t=r(()=>e(n=>n+1),"listener");return _.add(t),()=>{_.delete(t)}},[])}r(me,"usePluginRegistrySubscription");function ye(e){return e==="detailTab"||e==="taskDetailView"||e==="contextMenuItem"||e==="commentAnnotation"||e==="commentContextMenuItem"||e==="projectSidebarItem"||e==="toolbarButton"}r(ye,"requiresEntityType");function he(e){return e instanceof Error&&e.message?e.message:"Unknown error"}r(he,"getErrorMessage");function be(e,t,n){$.set(v(e,t),{kind:"react",component:n}),q()}r(be,"registerPluginReactComponent");function xe(e,t,n){$.set(v(e,t),{kind:"web-component",tagName:n}),q()}r(xe,"registerPluginWebComponent");function Se(e){return $.get(v(e.pluginKey,e.exportName))??null}r(Se,"resolveRegisteredComponent");function rt(e,t){return $.get(v(e,t))??null}r(rt,"resolveRegisteredPluginComponent");function Pe(e){return typeof e=="function"||typeof e=="string"}r(Pe,"isRegisterablePluginExport");function Ee(e,t){const n=new Set(t);for(const[s,o]of Object.entries(e))s!=="default"&&Pe(o)&&n.add(s);return n}r(Ee,"collectRegisterableExportNames");var w=new Map,R=new Map;function B(e){const t=e.updatedAt??e.version??"0";return`${e.pluginId}:${t}`}r(B,"buildPluginModuleKey");function we(e){const t=encodeURIComponent(e.updatedAt??e.version??"0");return`/_plugins/${encodeURIComponent(e.pluginId)}/ui/${e.uiEntryFile}?v=${t}`}r(we,"buildPluginUiUrl");var M={};function Ie(e,t){return t===void 0?e??{}:{...e??{},key:t}}r(Ie,"applyJsxRuntimeKey");function Re(e){return`
2
+ const R = globalThis.__paperclipPluginBridge__?.react;
3
+ if (!R) {
4
+ throw new Error("Wardmote plugin React runtime is not initialized.");
5
+ }
6
+ export default R;
7
+ ${Object.keys(e).filter(t=>t!=="default"&&/^[A-Za-z_$][\w$]*$/.test(t)).sort().map(t=>` export const ${t} = R.${t};`).join(`
8
+ `)}
9
+ `}r(Re,"createReactShimSource");function x(e){if(M[e])return M[e];let t;switch(e){case"react":t=Re(a);break;case"react/jsx-runtime":t=`
10
+ const BRIDGE = globalThis.__paperclipPluginBridge__;
11
+ const RUNTIME = BRIDGE?.reactJsxRuntime;
12
+ const R = BRIDGE?.react;
13
+ const withKey = ${Ie.toString()};
14
+ const fallbackJsx = (type, props, key) => R.createElement(type, withKey(props, key));
15
+ export const jsx = RUNTIME?.jsx ?? fallbackJsx;
16
+ export const jsxs = RUNTIME?.jsxs ?? fallbackJsx;
17
+ export const Fragment = RUNTIME?.Fragment ?? R.Fragment;
18
+ `;break;case"react-dom":case"react-dom/client":t=`
19
+ const RD = globalThis.__paperclipPluginBridge__?.reactDom;
20
+ export default RD;
21
+ const { createRoot, hydrateRoot, createPortal, flushSync } = RD ?? {};
22
+ export { createRoot, hydrateRoot, createPortal, flushSync };
23
+ `;break;case"sdk-ui":t=`
24
+ const SDK = globalThis.__paperclipPluginBridge__?.sdkUi ?? {};
25
+ function missing(name) {
26
+ return function MissingWardmoteSdkUiComponent() {
27
+ throw new Error('Wardmote plugin UI runtime is not initialized for "' + name + '". Ensure the host loaded the plugin bridge before rendering this UI module.');
28
+ };
29
+ }
30
+ const { usePluginData, usePluginAction, useHostContext, useHostLocation, useHostNavigation, usePluginStream, usePluginToast, copyTextToClipboard } = SDK;
31
+ const MetricCard = SDK.MetricCard ?? missing("MetricCard");
32
+ const StatusBadge = SDK.StatusBadge ?? missing("StatusBadge");
33
+ const DataTable = SDK.DataTable ?? missing("DataTable");
34
+ const TimeseriesChart = SDK.TimeseriesChart ?? missing("TimeseriesChart");
35
+ const MarkdownBlock = SDK.MarkdownBlock ?? missing("MarkdownBlock");
36
+ const MarkdownEditor = SDK.MarkdownEditor ?? missing("MarkdownEditor");
37
+ const KeyValueList = SDK.KeyValueList ?? missing("KeyValueList");
38
+ const ActionBar = SDK.ActionBar ?? missing("ActionBar");
39
+ const LogView = SDK.LogView ?? missing("LogView");
40
+ const JsonTree = SDK.JsonTree ?? missing("JsonTree");
41
+ const Spinner = SDK.Spinner ?? missing("Spinner");
42
+ const ErrorBoundary = SDK.ErrorBoundary ?? missing("ErrorBoundary");
43
+ const FileTree = SDK.FileTree ?? missing("FileTree");
44
+ const IssuesList = SDK.IssuesList ?? missing("IssuesList");
45
+ const AssigneePicker = SDK.AssigneePicker ?? missing("AssigneePicker");
46
+ const ProjectPicker = SDK.ProjectPicker ?? missing("ProjectPicker");
47
+ const ManagedRoutinesList = SDK.ManagedRoutinesList ?? missing("ManagedRoutinesList");
48
+ export { usePluginData, usePluginAction, useHostContext, useHostLocation, useHostNavigation, usePluginStream, usePluginToast, copyTextToClipboard, MetricCard, StatusBadge, DataTable, TimeseriesChart, MarkdownBlock, MarkdownEditor, KeyValueList, ActionBar, LogView, JsonTree, Spinner, ErrorBoundary, FileTree, IssuesList, AssigneePicker, ProjectPicker, ManagedRoutinesList };
49
+ `}const n=new Blob([t],{type:"application/javascript"}),s=URL.createObjectURL(n);return M[e]=s,s}r(x,"getShimBlobUrl");function ke(e){const t={'"@tickernelz/wardmote-plugin-sdk/ui"':`"${x("sdk-ui")}"`,"'@tickernelz/wardmote-plugin-sdk/ui'":`'${x("sdk-ui")}'`,'"@tickernelz/wardmote-plugin-sdk/ui/hooks"':`"${x("sdk-ui")}"`,"'@tickernelz/wardmote-plugin-sdk/ui/hooks'":`'${x("sdk-ui")}'`,'"react/jsx-runtime"':`"${x("react/jsx-runtime")}"`,"'react/jsx-runtime'":`'${x("react/jsx-runtime")}'`,'"react-dom/client"':`"${x("react-dom/client")}"`,"'react-dom/client'":`'${x("react-dom/client")}'`,'"react-dom"':`"${x("react-dom")}"`,"'react-dom'":`'${x("react-dom")}'`,'"react"':`"${x("react")}"`,"'react'":`'${x("react")}'`};let n=e;for(const[s,o]of Object.entries(t))n=n.replaceAll(` from ${s}`,` from ${o}`),n=n.replaceAll(`import ${s}`,`import ${o}`);return n}r(ke,"rewriteBareSpecifiers");async function Ce(e){if(!globalThis.__paperclipPluginBridge__)return A(()=>import(e),[]);const t=await fetch(e);if(!t.ok)throw new Error(`Failed to fetch plugin module: ${t.status} ${t.statusText}`);const n=ke(await t.text()),s=new Blob([n],{type:"application/javascript"}),o=URL.createObjectURL(s);try{return await A(()=>import(o),[])}finally{URL.revokeObjectURL(o)}}r(Ce,"importPluginModule");async function G(e){const{pluginId:t,pluginKey:n,slots:s,launchers:o}=e,i=B(e),c=w.get(i);if(c==="loaded"||c==="loading"){const u=R.get(t);u&&await u;return}const d=R.get(t);if(d&&(await d,w.get(i)==="loaded"))return;w.set(i,"loading");const l=we(e),p=(async()=>{try{const u=await Ce(l),g=new Set;for(const m of s)g.add(m.exportName);for(const m of o)m.exportName&&g.add(m.exportName),$e(m)&&g.add(m.action.target);const f=Ee(u,g);for(const m of f){const y=u[m];y!==void 0&&(typeof y=="function"?be(n,m,y):typeof y=="string"&&xe(n,m,y))}w.set(i,"loaded")}catch{w.set(i,"error")}finally{R.delete(t)}})();R.set(t,p),await p}r(G,"loadPluginModule");function $e(e){return e.action.type==="openModal"||e.action.type==="openDrawer"||e.action.type==="openPopover"}r($e,"isLauncherComponentTarget");async function ve(e){await Promise.all(e.map(t=>G(t)))}r(ve,"ensurePluginModulesLoaded");async function ot(e){await G(e)}r(ot,"ensurePluginContributionLoaded");function Te(e){for(const t of e){const n=w.get(B(t));if(n==="loading"||n==="idle"||n===void 0)return"loading"}return"loaded"}r(Te,"aggregateLoadState");function Ke(e){const[,t]=(0,a.useState)(0);(0,a.useEffect)(()=>{if(!e||e.length===0)return;const n=e.filter(o=>w.get(B(o))!=="loaded");if(n.length===0)return;let s=!1;return ve(n).then(()=>{s||t(o=>o+1)}),()=>{s=!0}},[e])}r(Ke,"usePluginModuleLoader");function Me(e){const t=e.enabled??!0,{data:n,isLoading:s,error:o}=z({queryKey:F.plugins.uiContributions,queryFn:r(()=>N.listUiContributions(),"queryFn"),enabled:t}),i=(0,a.useMemo)(()=>[...e.slotTypes].sort().join("|"),[e.slotTypes]),c=(0,a.useMemo)(()=>{const p=new Set(i.split("|").filter(Boolean)),u=[];for(const g of n??[])for(const f of g.slots)p.has(f.type)&&(ye(f.type)&&(!e.entityType||!f.entityTypes?.includes(e.entityType))||u.push({...f,pluginId:g.pluginId,pluginKey:g.pluginKey,pluginDisplayName:g.displayName,pluginVersion:g.version}));return u.sort((g,f)=>{const m=g.order??Number.MAX_SAFE_INTEGER,y=f.order??Number.MAX_SAFE_INTEGER;if(m!==y)return m-y;const b=g.pluginDisplayName.localeCompare(f.pluginDisplayName);return b!==0?b:g.displayName.localeCompare(f.displayName)}),u},[n,e.entityType,i]),d=(0,a.useMemo)(()=>{const p=new Set(c.map(u=>u.pluginId));return n?.filter(u=>p.has(u.pluginId))},[n,c]);Ke(d);const l=d?Te(d)==="loaded":!0;return{slots:c,isLoading:t&&(s||!l),errorMessage:o?he(o):null}}r(Me,"usePluginSlots");var O=class extends a.Component{static{r(this,"PluginSlotErrorBoundary")}state={hasError:!1};static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){}render(){return this.state.hasError?this.props.fallback!==void 0?this.props.fallback:(0,S.jsxs)("div",{className:D("rounded-md border border-bad/30 bg-bad/5 px-2 py-1 text-xs text-bad",this.props.className),children:[this.props.slot.pluginDisplayName,": failed to render"]}):this.props.children}};function Le({tagName:e,slot:t,context:n,className:s}){const o=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(!o.current)return;const i=o.current;i.pluginSlot=t,i.pluginContext=n},[n,t]),(0,a.createElement)(e,{ref:o,className:s})}r(Le,"PluginWebComponentMount");function _e(e,t){return{companyId:e.companyId??null,companyPrefix:e.companyPrefix??null,projectId:e.projectId??(e.entityType==="project"?e.entityId??null:null),entityId:e.entityId??null,entityType:e.entityType??null,parentEntityId:e.parentEntityId??null,userId:t,renderEnvironment:null}}r(_e,"slotContextToHostContext");function De({pluginId:e,context:t,children:n}){const{data:s}=z({queryKey:F.auth.session,queryFn:r(()=>ne.getSession(),"queryFn")}),o=s?.user?.id??s?.session?.userId??null,i=(0,a.useMemo)(()=>_e(t,o),[t,o]),c=(0,a.useMemo)(()=>({pluginId:e,hostContext:i}),[e,i]);return(0,S.jsx)(V.Provider,{value:c,children:n})}r(De,"PluginBridgeScope");function Ne({slot:e,context:t,className:n,missingBehavior:s="hidden",componentProps:o,fallback:i}){me();const[,c]=(0,a.useState)(0),d=Se(e);if((0,a.useEffect)(()=>{if(d)return;const l=R.get(e.pluginId);if(!l)return;let p=!1;return l.finally(()=>{p||c(u=>u+1)}),()=>{p=!0}},[d,e.pluginId]),!d)return i!==void 0?i:s==="hidden"?null:(0,S.jsxs)("div",{className:D("rounded-md border border-dashed border-line px-2 py-1 text-xs text-ink-3",n),children:[e.pluginDisplayName,": ",e.displayName]});if(d.kind==="react"){const l=(0,a.createElement)(d.component,{...o,slot:e,context:t});return(0,S.jsx)(O,{slot:e,className:n,fallback:i,children:(0,S.jsx)(De,{pluginId:e.pluginId,context:t,children:n?(0,S.jsx)("div",{className:n,children:l}):l})},`${e.pluginId}:${e.pluginVersion}:${e.id}`)}return o&&i!==void 0?i:(0,S.jsx)(O,{slot:e,className:n,children:(0,S.jsx)(Le,{tagName:d.tagName,slot:e,context:t,className:n})})}r(Ne,"PluginSlotMount");function it({slotTypes:e,context:t,entityType:n,className:s,itemClassName:o,errorClassName:i,missingBehavior:c="hidden",errorBehavior:d="inline"}){const{slots:l,errorMessage:p}=Me({slotTypes:e,entityType:n,companyId:t.companyId});return p&&d==="inline"?(0,S.jsxs)("div",{className:D("rounded-md border border-bad/30 bg-bad/5 px-2 py-1 text-xs text-bad",i),children:["Plugin extensions unavailable: ",p]}):l.length===0?null:(0,S.jsx)("div",{className:s,children:l.map(u=>(0,S.jsx)(Ne,{slot:u,context:t,className:o,missingBehavior:c},`${u.pluginKey}:${u.id}`))})}r(it,"PluginSlotOutlet");export{nt as a,Xe as c,Qe as d,Ge as f,rt as i,Ye as l,et as m,it as n,Me as o,tt as p,ot as r,V as s,Ne as t,Ze as u};
@@ -0,0 +1 @@
1
+ var u=Object.defineProperty;var r=(e,t)=>u(e,"name",{value:t,configurable:!0});import{An as c}from"./createLucideIcon-C01KAfc1.js";import{r as s}from"./queryKeys-Br82Auye.js";var i=r(e=>`/companies/${e}/smoke-lab`,"base"),v={listServices:r(e=>s.get(`${i(e)}/services`),"listServices"),startServices:r(e=>s.post(`${i(e)}/services/start`,{}),"startServices"),stopServices:r(e=>s.post(`${i(e)}/services/stop`,{}),"stopServices"),installFixtures:r(e=>s.post(`${i(e)}/install-fixtures`,{}),"installFixtures"),reset:r(e=>s.post(`${i(e)}/reset`,{}),"reset"),listRuns:r(e=>s.get(`${i(e)}/runs`),"listRuns"),getRun:r((e,t)=>s.get(`${i(e)}/runs/${t}`),"getRun"),createRun:r((e,t)=>s.post(`${i(e)}/runs`,t),"createRun"),updateRun:r((e,t,a)=>s.patch(`${i(e)}/runs/${t}`,a),"updateRun"),recordStep:r((e,t,a)=>s.post(`${i(e)}/runs/${t}/steps`,a),"recordStep")},k={P1:{title:"Remote HTTP · OAuth",detail:"HTTP MCP fixture behind the fake OAuth provider"},P2:{title:"Remote HTTP · API key",detail:"HTTP MCP fixture with a static bearer key"},P3:{title:"Local stdio (template)",detail:"stdio fixture via the runtime supervisor"},P4:{title:"Plugin integration",detail:"plugin-provided catalog entry + install flow"},P5:{title:"Paste-a-config import",detail:"prosumer import via Advanced setup"},P6:{title:"Token broker / gateway",detail:"run-scoped connection token, TTL + scope checks"},P7:{title:"Governance surfaces",detail:"profiles, ask-first rules, quarantine"}},d=[{key:"connect",label:"Connect",match:["connect","oauth","login","auth"]},{key:"discover",label:"Discover catalog",match:["discover","catalog","list-tools"]},{key:"read",label:"Allowed read",match:["read","allowed"]},{key:"write",label:"Ask-first write",match:["write","approve","ask-first","askfirst","review"]},{key:"deny",label:"Denied call",match:["deny","denied","block","forbidden"]},{key:"quarantine",label:"Schema-change quarantine",match:["quarantine","schema"]},{key:"revoke",label:"Revoke",match:["revoke"]},{key:"audit",label:"Audit evidence",match:["audit","activity","evidence"]}];function f(e){const t=e.toLowerCase();for(const a of d)if(a.match.some(n=>t.includes(n)))return a.key;return null}r(f,"matchLifecycleStage");function l(e){const t=e.updatedAt??e.createdAt,a=new Date(t).getTime();return Number.isNaN(a)?0:a}r(l,"stepTime");function b(e){const t=new Map,a=[...e].sort((n,o)=>l(n)-l(o));for(const n of a){const o=f(n.scenarioStep);o&&t.set(`${n.path}::${o}`,{status:n.status,step:n})}return t}r(b,"buildSmokeMatrix");function g(e,t){return`${e}::${t}`}r(g,"cellKey");var P=c;function y(e,t){return e?e.status==="failed"||t.some(a=>a.status==="fail")?"red":e.summary.partial===!0||e.status==="cancelled"||e.status==="running"||t.length===0?"amber":"green":"unknown"}r(y,"runHealth");function S(e){const t=new Set;for(const a of e)a.status==="fail"&&t.add(a.path);return c.filter(a=>t.has(a))}r(S,"failingPaths");export{g as a,v as c,b as i,P as n,S as o,k as r,y as s,d as t};
@@ -0,0 +1 @@
1
+ import{t as a}from"./createLucideIcon-C01KAfc1.js";var e={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};e.node;var t=a(e);export{t};
@@ -0,0 +1,15 @@
1
+ var Rt=Object.defineProperty;var i=(e,t)=>Rt(e,"name",{value:t,configurable:!0});import{i as Et}from"./rolldown-runtime-ZpX3ckPj.js";import{$i as St,t as W}from"./createLucideIcon-C01KAfc1.js";import{t as xt}from"./preload-helper-CceJXRIF.js";var l=Et(St(),1),we=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,He=/^[\\/]{2}/;function Ct(e,t){return t+e.replace(/\\/g,"/")}i(Ct,"normalizeProtocolRelativeUrl");var _e="popstate";function $e(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}i($e,"isLocation");function bt(e={}){function t(n,a){let o=a.state?.masked,{pathname:s,search:u,hash:c}=o||n.location;return he("",{pathname:s,search:u,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default",o?{pathname:n.location.pathname,search:n.location.search,hash:n.location.hash}:void 0)}i(t,"createBrowserLocation");function r(n,a){return typeof a=="string"?a:F(a)}return i(r,"createBrowserHref"),Pt(t,r,null,e)}i(bt,"createBrowserHistory");function S(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}i(S,"invariant");function P(e,t){if(!e)try{throw new Error(t)}catch{}}i(P,"warning");function Lt(){return Math.random().toString(36).substring(2,10)}i(Lt,"createKey");function Oe(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}i(Oe,"getHistoryState");function he(e,t,r=null,n,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?j(t):t,state:r,key:t&&t.key||n||Lt(),mask:a}}i(he,"createLocation");function F({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}i(F,"createPath");function j(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}i(j,"parsePath");function Pt(e,t,r,n={}){let{window:a=document.defaultView,v5Compat:o=!1}=n,s=a.history,u="POP",c=null,d=h();d==null&&(d=0,s.replaceState({...s.state,idx:d},""));function h(){return(s.state||{idx:null}).idx}i(h,"getIndex");function f(){u="POP";let m=h(),R=m==null?null:m-d;d=m,c&&c({action:u,location:y.location,delta:R})}i(f,"handlePop");function p(m,R){u="PUSH";let w=$e(m)?m:he(y.location,m,R);r&&r(w,m),d=h()+1;let E=Oe(w,d),C=y.createHref(w.mask||w);try{s.pushState(E,"",C)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;a.location.assign(C)}o&&c&&c({action:u,location:y.location,delta:1})}i(p,"push");function g(m,R){u="REPLACE";let w=$e(m)?m:he(y.location,m,R);r&&r(w,m),d=h();let E=Oe(w,d),C=y.createHref(w.mask||w);s.replaceState(E,"",C),o&&c&&c({action:u,location:y.location,delta:0})}i(g,"replace2");function v(m){return kt(a,m)}i(v,"createURL");let y={get action(){return u},get location(){return e(a,s)},listen(m){if(c)throw new Error("A history only accepts one active listener");return a.addEventListener(_e,f),c=m,()=>{a.removeEventListener(_e,f),c=null}},createHref(m){return t(a,m)},createURL:v,encodeLocation(m){let R=v(m);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:p,replace:g,go(m){return s.go(m)}};return y}i(Pt,"getUrlBasedHistory");function kt(e,t,r=!1){let n="http://localhost";e&&(n=e.location.origin!=="null"?e.location.origin:e.location.href),S(n,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:F(t);return a=a.replace(/ $/,"%20"),!r&&He.test(a)&&(a=n+a),new URL(a,n)}i(kt,"createBrowserURLImpl");var _t;_t=new WeakMap;function Be(e,t,r="/"){return We(e,t,r,!1)}i(Be,"matchRoutes");function We(e,t,r,n,a){let o=M((typeof t=="string"?j(t):t).pathname||"/",r);if(o==null)return null;let s=a??Ot(e),u=null,c=Wt(o);for(let d=0;u==null&&d<s.length;++d)u=Bt(s[d],c,n);return u}i(We,"matchRoutesImpl");function $t(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],loaderData:t[r.id],handle:r.handle}}i($t,"convertRouteMatchToUiMatch");function Ot(e){let t=je(e);return Mt(t),t}i(Ot,"flattenAndRankRoutes");function je(e,t=[],r=[],n="",a=!1){let o=i((s,u,c=a,d)=>{let h={relativePath:d===void 0?s.path||"":d,caseSensitive:s.caseSensitive===!0,childrenIndex:u,route:s};if(h.relativePath.startsWith("/")){if(!h.relativePath.startsWith(n)&&c)return;S(h.relativePath.startsWith(n),`Absolute route path "${h.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(n.length)}let f=O([n,h.relativePath]),p=r.concat(h);s.children&&s.children.length>0&&(S(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),je(s.children,t,p,f,c)),!(s.path==null&&!s.index)&&t.push({path:f,score:Ut(f,s.index),routesMeta:p.map((g,v)=>{let[y,m]=Ve(g.relativePath,g.caseSensitive,v===p.length-1);return{...g,matcher:y,compiledParams:m}})})},"flattenRoute");return e.forEach((s,u)=>{if(s.path===""||!s.path?.includes("?"))o(s,u);else for(let c of ze(s.path))o(s,u,!0,c)}),t}i(je,"flattenRoutes");function ze(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let s=ze(n.join("/")),u=[];return u.push(...s.map(c=>c===""?o:[o,c].join("/"))),a&&u.push(...s),u.map(c=>e.startsWith("/")&&c===""?"/":c)}i(ze,"explodeOptionalSegments");function Mt(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Ht(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}i(Mt,"rankRouteBranches");var Nt=/^:[\w-]+$/,Tt=3,It=2,Dt=1,Ft=10,At=-2,Me=i(e=>e==="*","isSplat");function Ut(e,t){let r=e.split("/"),n=r.length;return r.some(Me)&&(n+=At),t&&(n+=It),r.filter(a=>!Me(a)).reduce((a,o)=>a+(Nt.test(o)?Tt:o===""?Dt:Ft),n)}i(Ut,"computeScore");function Ht(e,t){return e.length===t.length&&e.slice(0,-1).every((r,n)=>r===t[n])?e[e.length-1]-t[t.length-1]:0}i(Ht,"compareIndexes");function Bt(e,t,r=!1){let{routesMeta:n}=e,a={},o="/",s=[];for(let u=0;u<n.length;++u){let c=n[u],d=u===n.length-1,h=o==="/"?t:t.slice(o.length)||"/",f={path:c.relativePath,caseSensitive:c.caseSensitive,end:d},p=c.matcher&&c.compiledParams?Je(f,h,c.matcher,c.compiledParams):re(f,h),g=c.route;if(!p&&d&&r&&!n[n.length-1].route.index&&(p=re({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},h)),!p)return null;Object.assign(a,p.params),s.push({params:a,pathname:O([o,p.pathname]),pathnameBase:Jt(O([o,p.pathnameBase])),route:g}),p.pathnameBase!=="/"&&(o=O([o,p.pathnameBase]))}return s}i(Bt,"matchRouteBranch");function re(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Ve(e.path,e.caseSensitive,e.end);return Je(e,t,r,n)}i(re,"matchPath");function Je(e,t,r,n){let a=t.match(r);if(!a)return null;let o=a[0],s=B(o,1),u=a.slice(1);return{params:n.reduce((c,{paramName:d,isOptional:h},f)=>{if(d==="*"){let g=u[f]||"";s=B(o.slice(0,o.length-g.length),1)}const p=u[f];return h&&!p?c[d]=void 0:c[d]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:s,pattern:e}}i(Je,"matchPathImpl");function Ve(e,t=!1,r=!0){P(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,u,c,d)=>{if(n.push({paramName:s,isOptional:u!=null}),u){let h=d.charAt(c+o.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}i(Ve,"compilePath");function Wt(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return P(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}i(Wt,"decodePath");function M(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}i(M,"stripBasename");function jt(e,t="/"){let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?j(e):e,o;return r?(r=Ye(r),r.startsWith("/")||r.startsWith("\\")?o=Ne(r.substring(1),"/"):o=Ne(r,t)):o=t,{pathname:o,search:Vt(n),hash:Yt(a)}}i(jt,"resolvePath");function Ne(e,t){let r=B(t).split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}i(Ne,"resolvePathname");function ue(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}i(ue,"getInvalidPathError");function zt(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}i(zt,"getPathContributingMatches");function Re(e){let t=zt(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}i(Re,"getResolveToMatches");function ae(e,t,r,n=!1){let a;typeof e=="string"?a=j(e):(a={...e},S(!a.pathname||!a.pathname.includes("?"),ue("?","pathname","search",a)),S(!a.pathname||!a.pathname.includes("#"),ue("#","pathname","hash",a)),S(!a.search||!a.search.includes("#"),ue("#","search","hash",a)));let o=e===""||a.pathname==="",s=o?"/":a.pathname,u;if(s==null)u=r;else{let f=t.length-1;if(!n&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;a.pathname=p.join("/")}u=f>=0?t[f]:"/"}let c=jt(a,u),d=s&&s!=="/"&&s.endsWith("/"),h=(o||s===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(d||h)&&(c.pathname+="/"),c}i(ae,"resolveTo");var Ye=i(e=>e.replace(/[\\/]{2,}/g,"/"),"removeDoubleSlashes"),O=i(e=>Ye(e.join("/")),"joinPaths");function B(e,t=0){let r=e.length;for(;r>t&&e.charCodeAt(r-1)===47;)r--;return r===e.length?e:e.slice(0,r)}i(B,"removeTrailingSlash");var Jt=i(e=>B(e).replace(/^\/*/,"/"),"normalizePathname"),Vt=i(e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,"normalizeSearch"),Yt=i(e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,"normalizeHash"),Gt=class{static{i(this,"ErrorResponseImpl")}constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Ge(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}i(Ge,"isRouteErrorResponse");function qt(e){return O(e.map(t=>t.route.path).filter(Boolean))||"/"}i(qt,"getRoutePattern");var qe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Xe(e,t){let r=e;if(typeof r!="string"||!we.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,a=!1;if(qe)try{let o=new URL(window.location.href),s=He.test(r)?new URL(Ct(r,o.protocol)):new URL(r),u=M(s.pathname,t);s.origin===o.origin&&u!=null?r=u+s.search+s.hash:a=!0}catch{P(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:a,to:r}}i(Xe,"parseToInfo");var xn=Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),Te=new URL("http://localhost");function Ee(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),Te)}catch{return Te}}i(Ee,"getNavigatorCurrentUrl");function ce(e,t){return e.origin===t.origin&&(e.origin!=="null"||e.protocol===t.protocol&&e.host===t.host)}i(ce,"isSameOrigin");function Xt(e,t){if(e.startsWith("//"))return!0;let r=t.protocol.toLowerCase();return e.toLowerCase().startsWith(r)?t.host===""||e.slice(r.length).startsWith("//"):!1}i(Xt,"isExplicitUrl");function Se(e,t,r,n){let a=null;try{a=e==null?null:new URL(e,r)}catch{}let o=new URL(t,r),s=a!=null&&!ce(a,r),u=!ce(o,r);if(n==="reject"){if(s||u)throw new Error("External navigation is not allowed")}else if(u&&(a==null||!Xt(e,a)||!ce(a,o)))throw new Error("External navigation is not allowed")}i(Se,"validateNavigationTarget");var Ke=["POST","PUT","PATCH","DELETE"],Cn=new Set(Ke),Kt=["GET",...Ke],bn=new Set(Kt),Zt,Qt,er,tr;Zt=new WeakMap;Qt=new WeakMap;er=new WeakMap;tr=new WeakMap;var rr=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function nr(e){try{return rr.includes(new URL(e).protocol)}catch{return!1}}i(nr,"hasInvalidProtocol");var z=l.createContext(null);z.displayName="DataRouter";var G=l.createContext(null);G.displayName="DataRouterState";var Ze=l.createContext(!1);function Qe(){return l.useContext(Ze)}i(Qe,"useIsRSCRouterContext");var et=l.createContext({isTransitioning:!1});et.displayName="ViewTransition";var ar=l.createContext(new Map);ar.displayName="Fetchers";var me=l.createContext(null);me.displayName="Await";var L=l.createContext(null);L.displayName="Navigation";var J=l.createContext(null);J.displayName="Location";var _=l.createContext({outlet:null,matches:[],isDataRoute:!1});_.displayName="Route";var xe=l.createContext(null);xe.displayName="RouteError";var tt="REACT_ROUTER_ERROR",or="REDIRECT",lr="ROUTE_ERROR_RESPONSE";function ir(e){if(e.startsWith(`${tt}:${or}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}i(ir,"decodeRedirectErrorDigest");function sr(e){if(e.startsWith(`${tt}:${lr}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Gt(t.status,t.statusText,t.data)}catch{}}i(sr,"decodeRouteErrorResponseDigest");function ur(e,{relative:t}={}){S(V(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=l.useContext(L),{hash:a,pathname:o,search:s}=q(e,{relative:t}),u=o;return r!=="/"&&(u=o==="/"?r:O([r,o])),n.createHref({pathname:u,search:s,hash:a})}i(ur,"useHref");function V(){return l.useContext(J)!=null}i(V,"useInRouterContext");function k(){return S(V(),"useLocation() may be used only in the context of a <Router> component."),l.useContext(J).location}i(k,"useLocation");function Ln(){return l.useContext(J).navigationType}i(Ln,"useNavigationType");var rt="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function nt(e){l.useContext(L).static||l.useLayoutEffect(e)}i(nt,"useIsomorphicLayoutEffect");function Ce(){let{isDataRoute:e}=l.useContext(_);return e?Cr():cr()}i(Ce,"useNavigate");function cr(){S(V(),"useNavigate() may be used only in the context of a <Router> component.");let e=l.useContext(z),{basename:t,navigator:r}=l.useContext(L),{matches:n}=l.useContext(_),{pathname:a}=k(),o=JSON.stringify(Re(n)),s=l.useRef(!1);return nt(()=>{s.current=!0}),l.useCallback((u,c={})=>{if(P(s.current,rt),!s.current)return;if(typeof u=="number"){r.go(u);return}let d=ae(u,JSON.parse(o),a,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:O([t,d.pathname])),Se(typeof u=="string"?u:F(u),r.createHref(d),Ee(r),"reject"),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,o,a,e])}i(cr,"useNavigateUnstable");var dr=l.createContext(null);function fr(e){let t=l.useContext(_).outlet;return l.useMemo(()=>t&&l.createElement(dr.Provider,{value:e},t),[t,e])}i(fr,"useOutlet");function Pn(){let{matches:e}=l.useContext(_);return e[e.length-1]?.params??{}}i(Pn,"useParams");function q(e,{relative:t}={}){let{matches:r}=l.useContext(_),{pathname:n}=k(),a=JSON.stringify(Re(r));return l.useMemo(()=>ae(e,JSON.parse(a),n,t==="path"),[e,a,n,t])}i(q,"useResolvedPath");function hr(e,t){return at(e,t)}i(hr,"useRoutes");function at(e,t,r){S(V(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:n}=l.useContext(L),{matches:a}=l.useContext(_),o=a[a.length-1],s=o?o.params:{},u=o?o.pathname:"/",c=o?o.pathnameBase:"/",d=o&&o.route;{let m=d&&d.path||"";it(u,!d||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${m}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2
+
3
+ Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let h=k(),f;if(t){let m=typeof t=="string"?j(t):t;S(c==="/"||m.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${m.pathname}" was given in the \`location\` prop.`),f=m}else f=h;let p=f.pathname||"/",g=p;if(c!=="/"){let m=c.replace(/^\//,"").split("/");g="/"+p.replace(/^\//,"").split("/").slice(m.length).join("/")}let v=r&&r.state.matches.length?r.state.matches.map(m=>Object.assign(m,{route:r.manifest[m.route.id]||m.route})):Be(e,{pathname:g});P(d||v!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),P(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=vr(v&&v.map(m=>Object.assign({},m,{params:Object.assign({},s,m.params),pathname:O([c,n.encodeLocation?n.encodeLocation(m.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?c:O([c,n.encodeLocation?n.encodeLocation(m.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),a,r);return t&&y?l.createElement(J.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...f},navigationType:"POP"}},y):y}i(at,"useRoutesImpl");function mr(){let e=xr(),t=Ge(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},s=null;return s=l.createElement(l.Fragment,null,l.createElement("p",null,"💿 Hey developer 👋"),l.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",l.createElement("code",{style:o},"ErrorBoundary")," or"," ",l.createElement("code",{style:o},"errorElement")," prop on your route.")),l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),r?l.createElement("pre",{style:a},r):null,s)}i(mr,"DefaultErrorComponent");var pr=l.createElement(mr,null),ot=class extends l.Component{static{i(this,"RenderErrorBoundary")}constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError&&this.props.onError(e,t)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=sr(e.digest);r&&(e=r)}let t=e!==void 0?l.createElement(_.Provider,{value:this.props.routeContext},l.createElement(xe.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?l.createElement(yr,{error:e},t):t}};ot.contextType=Ze;var de=new WeakMap;function yr({children:e,error:t}){let{basename:r,navigator:n}=l.useContext(L);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=ir(t.digest);if(a){let o=de.get(t);if(o)throw o;let s=Xe(a.location,r),u=s.absoluteURL||s.to;if(Se(a.location,u,Ee(n),"allow-explicit"),nr(u))throw new Error("Invalid redirect location");if(qe&&!de.get(t))if(s.isExternal||a.reloadDocument)window.location.href=u;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:a.replace}));throw de.set(t,c),c}return l.createElement("meta",{httpEquiv:"refresh",content:`0;url=${u}`})}}return e}i(yr,"RSCErrorHandler");function gr({routeContext:e,match:t,children:r}){let n=l.useContext(z);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),l.createElement(_.Provider,{value:e},r)}i(gr,"RenderedRoute");function vr(e,t=[],r){let n=r?.state;if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,o=n?.errors;if(o!=null){let h=a.findIndex(f=>f.route.id&&o?.[f.route.id]!==void 0);S(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,h+1))}let s=!1,u=-1;if(r&&n){s=n.renderFallback;for(let h=0;h<a.length;h++){let f=a[h];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=h),f.route.id){let{loaderData:p,errors:g}=n,v=f.route.loader&&!p.hasOwnProperty(f.route.id)&&(!g||g[f.route.id]===void 0);if(f.route.lazy||v){r.isStatic&&(s=!0),u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}}let c=r?.onError,d=n&&c?(h,f)=>{c(h,{location:n.location,params:n.matches?.[0]?.params??{},pattern:qt(n.matches),errorInfo:f})}:void 0;return a.reduceRight((h,f,p)=>{let g,v=!1,y=null,m=null;n&&(g=o&&f.route.id?o[f.route.id]:void 0,y=f.route.errorElement||pr,s&&(u<0&&p===0?(it("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,m=null):u===p&&(v=!0,m=f.route.hydrateFallbackElement||null)));let R=t.concat(a.slice(0,p+1)),w=i(()=>{let E;return g?E=y:v?E=m:f.route.Component?E=l.createElement(f.route.Component,null):f.route.element?E=f.route.element:E=h,l.createElement(gr,{match:f,routeContext:{outlet:h,matches:R,isDataRoute:n!=null},children:E})},"getChildren");return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?l.createElement(ot,{location:n.location,revalidation:n.revalidation,component:y,error:g,children:w(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:d}):w()},null)}i(vr,"_renderMatches");function be(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}i(be,"getDataRouterConsoleError");function wr(e){let t=l.useContext(z);return S(t,be(e)),t}i(wr,"useDataRouterContext");function Le(e){let t=l.useContext(G);return S(t,be(e)),t}i(Le,"useDataRouterState");function Rr(e){let t=l.useContext(_);return S(t,be(e)),t}i(Rr,"useRouteContext");function Pe(e){let t=Rr(e),r=t.matches[t.matches.length-1];return S(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}i(Pe,"useCurrentRouteId");function Er(){return Pe("useRouteId")}i(Er,"useRouteId");function Sr(){let e=Le("useNavigation");return l.useMemo(()=>{let{matches:t,historyAction:r,...n}=e.navigation;return n},[e.navigation])}i(Sr,"useNavigation");function lt(){let{matches:e,loaderData:t}=Le("useMatches");return l.useMemo(()=>e.map(r=>$t(r,t)),[e,t])}i(lt,"useMatches");function xr(){let e=l.useContext(xe),t=Le("useRouteError"),r=Pe("useRouteError");return e!==void 0?e:t.errors?.[r]}i(xr,"useRouteError");function Cr(){let{router:e}=wr("useNavigate"),t=Pe("useNavigate"),r=l.useRef(!1);return nt(()=>{r.current=!0}),l.useCallback(async(n,a={})=>{P(r.current,rt),r.current&&(typeof n=="number"?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...a}))},[e,t])}i(Cr,"useNavigateStable");var Ie={};function it(e,t,r){!t&&!Ie[e]&&(Ie[e]=!0,P(!1,r))}i(it,"warningOnce");var De={};function br(e,t){!e&&!De[t]&&(De[t]=!0)}i(br,"warnOnce");var kn=l.memo(Lr);function Lr({routes:e,manifest:t,future:r,state:n,isStatic:a,onError:o}){return at(e,void 0,{manifest:t,state:n,isStatic:a,onError:o,future:r})}i(Lr,"DataRoutes2");function _n({to:e,replace:t,state:r,relative:n}){S(V(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a,navigator:o}=l.useContext(L);P(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=l.useContext(_),{pathname:u}=k(),c=Ce(),d=ae(e,Re(s),u,n==="path");Se(typeof e=="string"?e:F(e),o.createHref(d),Ee(o),"reject");let h=JSON.stringify(d);return l.useEffect(()=>{c(JSON.parse(h),{replace:t,state:r,relative:n})},[c,h,n,t,r]),null}i(_n,"Navigate");function $n(e){return fr(e.context)}i($n,"Outlet");function Pr(e){S(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}i(Pr,"Route");function st({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:a,static:o=!1,useTransitions:s}){S(!V(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),c=l.useMemo(()=>({basename:u,navigator:a,static:o,useTransitions:s,future:{}}),[u,a,o,s]);typeof r=="string"&&(r=j(r));let{pathname:d="/",search:h="",hash:f="",state:p=null,key:g="default",mask:v}=r,y=l.useMemo(()=>{let m=M(d,u);return m==null?null:{location:{pathname:m,search:h,hash:f,state:p,key:g,mask:v},navigationType:n}},[u,d,h,f,p,g,n,v]);return P(y!=null,`<Router basename="${u}"> is not able to match the URL "${d}${h}${f}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:l.createElement(L.Provider,{value:c},l.createElement(J.Provider,{children:t,value:y}))}i(st,"Router");function On({children:e,location:t}){return hr(pe(e),t)}i(On,"Routes");var Mn=class extends l.Component{static{i(this,"AwaitErrorBoundary")}constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onError&&this.props.onError(e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,a=0;if(!(r instanceof Promise))a=1,n=Promise.resolve(),Object.defineProperty(n,"_tracked",{get:i(()=>!0,"get")}),Object.defineProperty(n,"_data",{get:i(()=>r,"get")});else if(this.state.error){a=2;let o=this.state.error;n=Promise.reject().catch(()=>{}),Object.defineProperty(n,"_tracked",{get:i(()=>!0,"get")}),Object.defineProperty(n,"_error",{get:i(()=>o,"get")})}else r._tracked?(n=r,a="_error"in n?2:"_data"in n?1:0):(a=0,Object.defineProperty(r,"_tracked",{get:i(()=>!0,"get")}),n=r.then(o=>Object.defineProperty(r,"_data",{get:i(()=>o,"get")}),o=>{this.props.onError?.(o),Object.defineProperty(r,"_error",{get:i(()=>o,"get")})}));if(a===2&&!t)throw n._error;if(a===2)return l.createElement(me.Provider,{value:n,children:t});if(a===1)return l.createElement(me.Provider,{value:n,children:e});throw n}};function pe(e,t=[]){let r=[];return l.Children.forEach(e,(n,a)=>{if(!l.isValidElement(n))return;let o=[...t,a];if(n.type===l.Fragment){r.push.apply(r,pe(n.props.children,o));return}S(n.type===Pr,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),S(!n.props.index||!n.props.children,"An index route cannot have child routes.");let s={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=pe(n.props.children,o)),r.push(s)}),r}i(pe,"createRoutesFromChildren");var ee="get",te="application/x-www-form-urlencoded";function oe(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}i(oe,"isHtmlElement");function kr(e){return oe(e)&&e.tagName.toLowerCase()==="button"}i(kr,"isButtonElement");function _r(e){return oe(e)&&e.tagName.toLowerCase()==="form"}i(_r,"isFormElement");function $r(e){return oe(e)&&e.tagName.toLowerCase()==="input"}i($r,"isInputElement");function Or(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}i(Or,"isModifiedEvent");function Mr(e,t){return e.button===0&&(!t||t==="_self")&&!Or(e)}i(Mr,"shouldProcessLinkClick");function ye(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}i(ye,"createSearchParams");function Nr(e,t){let r=ye(e);return t&&t.forEach((n,a)=>{r.has(a)||t.getAll(a).forEach(o=>{r.append(a,o)})}),r}i(Nr,"getSearchParamsForLocation");var Z=null;function Tr(){if(Z===null)try{new FormData(document.createElement("form"),0),Z=!1}catch{Z=!0}return Z}i(Tr,"isFormDataSubmitterSupported");var Ir=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function fe(e){return e!=null&&!Ir.has(e)?(P(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${te}"`),null):e}i(fe,"getFormEncType");function Dr(e,t){let r,n,a,o,s;if(_r(e)){let u=e.getAttribute("action");n=u?M(u,t):null,r=e.getAttribute("method")||ee,a=fe(e.getAttribute("enctype"))||te,o=new FormData(e)}else if(kr(e)||$r(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||u.getAttribute("action");if(n=c?M(c,t):null,r=e.getAttribute("formmethod")||u.getAttribute("method")||ee,a=fe(e.getAttribute("formenctype"))||fe(u.getAttribute("enctype"))||te,o=new FormData(u,e),!Tr()){let{name:d,type:h,value:f}=e;if(h==="image"){let p=d?`${d}.`:"";o.append(`${p}x`,"0"),o.append(`${p}y`,"0")}else d&&o.append(d,f)}}else{if(oe(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ee,n=null,a=te,s=e}return o&&a==="text/plain"&&(s=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:s}}i(Dr,"getFormSubmissionInfo");var Nn=Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),Fr={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Ar=/[&><\u2028\u2029]/g;function Fe(e){return e.replace(Ar,t=>Fr[t])}i(Fe,"escapeHtml");function le(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}i(le,"invariant2");function ut(e,t,r,n){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${n}`:a.pathname=`${a.pathname}.${n}`:a.pathname==="/"?a.pathname=`_root.${n}`:t&&M(a.pathname,t)==="/"?a.pathname=`${B(t)}/_root.${n}`:a.pathname=`${B(a.pathname)}.${n}`,a}i(ut,"singleFetchUrl");async function Ur(e,t){if(e.id in t)return t[e.id];try{let r=await xt(()=>import(e.module),[]);return t[e.id]=r,r}catch{return window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}i(Ur,"loadRouteModule");function Hr(e){return e!=null&&typeof e.page=="string"}i(Hr,"isPageLinkDescriptor");function Br(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}i(Br,"isHtmlLinkDescriptor");async function Wr(e,t,r){return Jr((await Promise.all(e.map(async n=>{let a=t.routes[n.route.id];if(a){let o=await Ur(a,r);return o.links?o.links():[]}return[]}))).flat(1).filter(Br).filter(n=>n.rel==="stylesheet"||n.rel==="preload").map(n=>n.rel==="stylesheet"?{...n,rel:"prefetch",as:"style"}:{...n,rel:"prefetch"}))}i(Wr,"getKeyedPrefetchLinks");function Ae(e,t,r,n,a,o){let s=i((c,d)=>r[d]?c.route.id!==r[d].route.id:!0,"isNew"),u=i((c,d)=>r[d].pathname!==c.pathname||r[d].route.path?.endsWith("*")&&r[d].params["*"]!==c.params["*"],"matchPathChanged");return o==="assets"?t.filter((c,d)=>s(c,d)||u(c,d)):o==="data"?t.filter((c,d)=>{let h=n.routes[c.route.id];if(!h||!h.hasLoader)return!1;if(s(c,d)||u(c,d))return!0;if(c.route.shouldRevalidate){let f=c.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}i(Ae,"getNewMatchesForLinks");function ct(e,t,{includeHydrateFallback:r}={}){return jr(e.map(n=>{let a=t.routes[n.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),r&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}i(ct,"getModuleLinkHrefs");function jr(e){return[...new Set(e)]}i(jr,"dedupeHrefs");function zr(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}i(zr,"sortKeys");function Jr(e,t){let r=new Set,n=new Set(t);return e.reduce((a,o)=>{if(t&&!Hr(o)&&o.as==="script"&&o.href&&n.has(o.href))return a;let s=JSON.stringify(zr(o));return r.has(s)||(r.add(s),a.push({key:s,link:o})),a},[])}i(Jr,"dedupeLinkDescriptors");function Vr(e,t){return e.mode==="lazy"&&t===!0}i(Vr,"isFogOfWarEnabled");function Yr({sri:e,...t},r){let n=new Set(r.state.matches.map(u=>u.route.id)),a=r.state.location.pathname.split("/").filter(Boolean),o=["/"];for(a.pop();a.length>0;)o.push(`/${a.join("/")}`),a.pop();o.forEach(u=>{let c=We(r.routes,u,r.basename||"/",!1,r.branches);c&&c.forEach(d=>n.add(d.route.id))});let s=[...n].reduce((u,c)=>Object.assign(u,{[c]:t.routes[c]}),{});return{...t,routes:s,sri:e?!0:void 0}}i(Yr,"getPartialManifest");function ie(){let e=l.useContext(z);return le(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}i(ie,"useDataRouterContext2");function dt(){let e=l.useContext(G);return le(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}i(dt,"useDataRouterStateContext");var se=l.createContext(void 0);se.displayName="FrameworkContext";function A(){let e=l.useContext(se);return le(e,"You must render this element inside a <HydratedRouter> element"),e}i(A,"useFrameworkContext");function Gr(e,t){let r=l.useContext(se),[n,a]=l.useState(!1),[o,s]=l.useState(!1),{onFocus:u,onBlur:c,onMouseEnter:d,onMouseLeave:h,onTouchStart:f}=t,p=l.useRef(null);l.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let y=i(R=>{R.forEach(w=>{s(w.isIntersecting)})},"callback"),m=new IntersectionObserver(y,{threshold:.5});return p.current&&m.observe(p.current),()=>{m.disconnect()}}},[e]),l.useEffect(()=>{if(n){let y=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(y)}}},[n]);let g=i(()=>{a(!0)},"setIntent"),v=i(()=>{a(!1),s(!1)},"cancelIntent");return r?e!=="intent"?[o,p,{}]:[o,p,{onFocus:Y(u,g),onBlur:Y(c,v),onMouseEnter:Y(d,g),onMouseLeave:Y(h,v),onTouchStart:Y(f,g)}]:[!1,p,{}]}i(Gr,"usePrefetchBehavior");function Y(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}i(Y,"composeEventHandlers");function qr(e,t,r){if(r&&!ne)return[e[0]];if(t){let n=e.findIndex(a=>t[a.route.id]!==void 0);return e.slice(0,n+1)}return e}i(qr,"getActiveMatches");function Xr({page:e,...t}){let r=Qe(),{nonce:n}=A(),{router:a}=ie(),o=l.useMemo(()=>Be(a.routes,e,a.basename),[a.routes,e,a.basename]);return o?(t.nonce==null&&n&&(t={...t,nonce:n}),r?l.createElement(Zr,{page:e,matches:o,...t}):l.createElement(Qr,{page:e,matches:o,...t})):null}i(Xr,"PrefetchPageLinks");function Kr(e){let{manifest:t,routeModules:r}=A(),[n,a]=l.useState([]);return l.useEffect(()=>{let o=!1;return Wr(e,t,r).then(s=>{o||a(s)}),()=>{o=!0}},[e,t,r]),n}i(Kr,"useKeyedPrefetchLinks");function Zr({page:e,matches:t,...r}){let n=k(),{future:a}=A(),{basename:o}=ie(),s=l.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let u=ut(e,o,a.v8_trailingSlashAwareDataRequests,"rsc"),c=!1,d=[];for(let h of t)typeof h.route.shouldRevalidate=="function"?c=!0:d.push(h.route.id);return c&&d.length>0&&u.searchParams.set("_routes",d.join(",")),[u.pathname+u.search]},[o,a.v8_trailingSlashAwareDataRequests,e,n,t]);return l.createElement(l.Fragment,null,s.map(u=>l.createElement("link",{key:u,rel:"prefetch",as:"fetch",href:u,...r})))}i(Zr,"RSCPrefetchPageLinksImpl");function Qr({page:e,matches:t,...r}){let n=k(),{future:a,manifest:o,routeModules:s}=A(),{basename:u}=ie(),{loaderData:c,matches:d}=dt(),h=l.useMemo(()=>Ae(e,t,d,o,n,"data"),[e,t,d,o,n]),f=l.useMemo(()=>Ae(e,t,d,o,n,"assets"),[e,t,d,o,n]),p=l.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let y=new Set,m=!1;if(t.forEach(w=>{let E=o.routes[w.route.id];!E||!E.hasLoader||(!h.some(C=>C.route.id===w.route.id)&&w.route.id in c&&s[w.route.id]?.shouldRevalidate||E.hasClientLoader?m=!0:y.add(w.route.id))}),y.size===0)return[];let R=ut(e,u,a.v8_trailingSlashAwareDataRequests,"data");return m&&y.size>0&&R.searchParams.set("_routes",t.filter(w=>y.has(w.route.id)).map(w=>w.route.id).join(",")),[R.pathname+R.search]},[u,a.v8_trailingSlashAwareDataRequests,c,n,o,h,t,e,s]),g=l.useMemo(()=>ct(f,o),[f,o]),v=Kr(f);return l.createElement(l.Fragment,null,p.map(y=>l.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...r})),g.map(y=>l.createElement("link",{key:y,rel:"modulepreload",href:y,...r})),v.map(({key:y,link:m})=>l.createElement("link",{key:y,nonce:r.nonce,...m,crossOrigin:m.crossOrigin??r.crossOrigin})))}i(Qr,"PrefetchPageLinksImpl");var ne=!1;function en(){ne=!0}i(en,"setIsHydrated");function tn(e){let{manifest:t,serverHandoffString:r,isSpaMode:n,renderMeta:a,routeDiscovery:o,ssr:s,nonce:u}=A(),{router:c,static:d,staticContext:h}=ie(),{matches:f}=dt(),p=Qe(),g=Vr(o,s);e.nonce==null&&u&&(e={...e,nonce:u}),a&&(a.didRenderScripts=!0);let v=qr(f,null,n);l.useEffect(()=>{en()},[]);let y=l.useMemo(()=>{if(p)return null;let w=h?`window.__reactRouterContext = ${r};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",E=d?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${g?"":`import ${JSON.stringify(t.url)}`};
4
+ ${v.map((C,x)=>{let b=`route${x}`,$=t.routes[C.route.id];le($,`Route ${C.route.id} not found in manifest`);let{clientActionModule:N,clientLoaderModule:T,clientMiddlewareModule:U,hydrateFallbackModule:X,module:K}=$,H=[...N?[{module:N,varName:`${b}_clientAction`}]:[],...T?[{module:T,varName:`${b}_clientLoader`}]:[],...U?[{module:U,varName:`${b}_clientMiddleware`}]:[],...X?[{module:X,varName:`${b}_HydrateFallback`}]:[],{module:K,varName:`${b}_main`}];return H.length===1?`import * as ${b} from ${JSON.stringify(K)};`:[H.map(D=>`import * as ${D.varName} from "${D.module}";`).join(`
5
+ `),`const ${b} = {${H.map(D=>`...${D.varName}`).join(",")}};`].join(`
6
+ `)}).join(`
7
+ `)}
8
+ ${g?`window.__reactRouterManifest = ${JSON.stringify(Yr(t,c),null,2)};`:""}
9
+ window.__reactRouterRouteModules = {${v.map((C,x)=>`${JSON.stringify(C.route.id)}:route${x}`).join(",")}};
10
+
11
+ import(${JSON.stringify(t.entry.module)});`:" ";return l.createElement(l.Fragment,null,l.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:w},type:void 0}),l.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:E},type:"module",async:!0}))},[]),m=ne||p?[]:[...new Set(t.entry.imports.concat(ct(v,t,{includeHydrateFallback:!0})))],R=typeof t.sri=="object"?t.sri:{};return br(!p,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),ne||p?null:l.createElement(l.Fragment,null,typeof t.sri=="object"?l.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:R})}}):null,g?null:l.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:R[t.url],nonce:e.nonce,suppressHydrationWarning:!0}),l.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:R[t.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),m.map(w=>l.createElement("link",{key:w,rel:"modulepreload",href:w,crossOrigin:e.crossOrigin,integrity:R[w],nonce:e.nonce,suppressHydrationWarning:!0})),y)}i(tn,"Scripts");function rn(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}i(rn,"mergeRefs");var Tn=class extends l.Component{static{i(this,"RemixErrorBoundary")}constructor(e){super(e),this.state={error:e.error||null,location:e.location}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error||null,location:e.location}:{error:e.error||t.error,location:t.location}}render(){return this.state.error?l.createElement(nn,{error:this.state.error,isOutsideRemixApp:!0}):this.props.children}};function nn({error:e,isOutsideRemixApp:t}){let{nonce:r}=A(),n=l.createElement("script",{nonce:r,dangerouslySetInnerHTML:{__html:`
12
+ console.log(
13
+ "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
14
+ );
15
+ `}});if(Ge(e))return l.createElement(Ue,{title:"Unhandled Thrown Response!"},l.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),n);let a;if(e instanceof Error)a=e;else{let o=e==null?"Unknown Error":typeof e=="object"&&"toString"in e?e.toString():JSON.stringify(e);a=new Error(o)}return l.createElement(Ue,{title:"Application Error!",isOutsideRemixApp:t},l.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),l.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},a.stack),n)}i(nn,"RemixRootDefaultErrorBoundary");function Ue({title:e,renderScripts:t,isOutsideRemixApp:r,children:n}){let{routeModules:a}=A();return a.root?.Layout&&!r?n:l.createElement("html",{lang:"en"},l.createElement("head",null,l.createElement("meta",{charSet:"utf-8"}),l.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),l.createElement("title",null,e)),l.createElement("body",null,l.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n,t?l.createElement(tn,null):null)))}i(Ue,"BoundaryShell");var an=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{an&&(window.__reactRouterVersion="7.18.4")}catch{}function In({basename:e,children:t,useTransitions:r,window:n}){let a=l.useRef();a.current==null&&(a.current=bt({window:n,v5Compat:!0}));let o=a.current,[s,u]=l.useState({action:o.action,location:o.location}),c=l.useCallback(d=>{r===!1?u(d):l.startTransition(()=>u(d))},[r]);return l.useLayoutEffect(()=>o.listen(c),[o,c]),l.createElement(st,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o,useTransitions:r})}i(In,"BrowserRouter");function on({basename:e,children:t,history:r,useTransitions:n}){let[a,o]=l.useState({action:r.action,location:r.location}),s=l.useCallback(u=>{n===!1?o(u):l.startTransition(()=>o(u))},[n]);return l.useLayoutEffect(()=>r.listen(s),[r,s]),l.createElement(st,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:r,useTransitions:n})}i(on,"HistoryRouter");on.displayName="unstable_HistoryRouter";var ft=l.forwardRef(i(function({onClick:t,discover:r="render",prefetch:n="none",relative:a,reloadDocument:o,replace:s,mask:u,state:c,target:d,to:h,preventScrollReset:f,viewTransition:p,defaultShouldRevalidate:g,...v},y){let{basename:m,navigator:R,useTransitions:w}=l.useContext(L),E=typeof h=="string"&&we.test(h),C=Xe(h,m);h=C.to;let x=ur(h,{relative:a}),b=k(),$=null;if(u){let I=ae(u,[],b.mask?b.mask.pathname:"/",!0);m!=="/"&&(I.pathname=I.pathname==="/"?m:O([m,I.pathname])),$=R.createHref(I)}let[N,T,U]=Gr(n,v),X=dn(h,{replace:s,mask:u,state:c,target:d,preventScrollReset:f,relative:a,viewTransition:p,defaultShouldRevalidate:g,useTransitions:w});function K(I){t&&t(I),I.defaultPrevented||X(I)}i(K,"handleClick");let H=!(C.isExternal||o),D=l.createElement("a",{...v,...U,href:(H?$:void 0)||C.absoluteURL||x,onClick:H?K:t,ref:rn(y,T),target:d,"data-discover":!E&&r==="render"?"true":void 0});return N&&!E?l.createElement(l.Fragment,null,D,l.createElement(Xr,{page:x})):D},"LinkWithRef"));ft.displayName="Link";var ln=l.forwardRef(i(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:a=!1,style:o,to:s,viewTransition:u,children:c,...d},h){let f=q(s,{relative:d.relative}),p=k(),g=l.useContext(G),{navigator:v,basename:y}=l.useContext(L),m=g!=null&&vn(f)&&u===!0,R=v.encodeLocation?v.encodeLocation(f).pathname:f.pathname,w=p.pathname,E=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;r||(w=w.toLowerCase(),E=E?E.toLowerCase():null,R=R.toLowerCase()),E&&y&&(E=M(E,y)||E);const C=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let x=w===R||!a&&w.startsWith(R)&&w.charAt(C)==="/",b=E!=null&&(E===R||!a&&E.startsWith(R)&&E.charAt(R.length)==="/"),$={isActive:x,isPending:b,isTransitioning:m},N=x?t:void 0,T;typeof n=="function"?T=n($):T=[n,x?"active":null,b?"pending":null,m?"transitioning":null].filter(Boolean).join(" ");let U=typeof o=="function"?o($):o;return l.createElement(ft,{...d,"aria-current":N,className:T,ref:h,style:U,to:s,viewTransition:u},typeof c=="function"?c($):c)},"NavLinkWithRef"));ln.displayName="NavLink";var sn=l.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:a,state:o,method:s=ee,action:u,onSubmit:c,relative:d,preventScrollReset:h,viewTransition:f,defaultShouldRevalidate:p,...g},v)=>{let{useTransitions:y}=l.useContext(L),m=mn(),R=pn(u,{relative:d}),w=s.toLowerCase()==="get"?"get":"post",E=typeof u=="string"&&we.test(u),C=i(x=>{if(c&&c(x),x.defaultPrevented)return;x.preventDefault();let b=x.nativeEvent.submitter,$=b?.getAttribute("formmethod")||s,N=i(()=>m(b||x.currentTarget,{fetcherKey:t,method:$,navigate:r,replace:a,state:o,relative:d,preventScrollReset:h,viewTransition:f,defaultShouldRevalidate:p}),"doSubmit");y&&r!==!1?l.startTransition(()=>N()):N()},"submitHandler");return l.createElement("form",{ref:v,method:w,action:R,onSubmit:n?c:C,...g,"data-discover":!E&&e==="render"?"true":void 0})});sn.displayName="Form";function un({getKey:e,storageKey:t,...r}){let n=l.useContext(se),{basename:a}=l.useContext(L),o=k(),s=lt();yn({getKey:e,storageKey:t});let u=l.useMemo(()=>{if(!n||!e)return null;let d=ve(o,s,a,e);return d!==o.key?d:null},[]);if(!n||n.isSpaMode)return null;let c=((d,h)=>{if(!window.history.state||!window.history.state.key){let f=Math.random().toString(32).slice(2);window.history.replaceState({key:f},"")}try{let f=JSON.parse(sessionStorage.getItem(d)||"{}")[h||window.history.state.key];typeof f=="number"&&window.scrollTo(0,f)}catch{sessionStorage.removeItem(d)}}).toString();return r.nonce==null&&n?.nonce&&(r.nonce=n.nonce),l.createElement("script",{...r,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${Fe(JSON.stringify(t||ge))}, ${Fe(JSON.stringify(u))})`}})}i(un,"ScrollRestoration");un.displayName="ScrollRestoration";function ht(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}i(ht,"getDataRouterConsoleError2");function ke(e){let t=l.useContext(z);return S(t,ht(e)),t}i(ke,"useDataRouterContext3");function cn(e){let t=l.useContext(G);return S(t,ht(e)),t}i(cn,"useDataRouterState2");function dn(e,{target:t,replace:r,mask:n,state:a,preventScrollReset:o,relative:s,viewTransition:u,defaultShouldRevalidate:c,useTransitions:d}={}){let h=Ce(),f=k(),p=q(e,{relative:s});return l.useCallback(g=>{if(Mr(g,t)){g.preventDefault();let v=r!==void 0?r:F(f)===F(p),y=i(()=>h(e,{replace:v,mask:n,state:a,preventScrollReset:o,relative:s,viewTransition:u,defaultShouldRevalidate:c}),"doNavigate");d?l.startTransition(()=>y()):y()}},[f,h,p,r,n,a,t,e,o,s,u,c,d])}i(dn,"useLinkClickHandler");function Dn(e){P(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=l.useRef(ye(e)),r=l.useRef(!1),n=k(),a=l.useMemo(()=>Nr(n.search,r.current?null:t.current),[n.search]),o=Ce();return[a,l.useCallback((s,u)=>{const c=ye(typeof s=="function"?s(new URLSearchParams(a)):s);r.current=!0,o("?"+c,u)},[o,a])]}i(Dn,"useSearchParams");var fn=0,hn=i(()=>`__${String(++fn)}__`,"getUniqueFetcherId");function mn(){let{router:e}=ke("useSubmit"),{basename:t}=l.useContext(L),r=Er(),n=e.fetch,a=e.navigate;return l.useCallback(async(o,s={})=>{let{action:u,method:c,encType:d,formData:h,body:f}=Dr(o,t);if(s.navigate===!1){let p=s.fetcherKey||hn();await n(p,r,s.action||u,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:h,body:f,formMethod:s.method||c,formEncType:s.encType||d,flushSync:s.flushSync})}else await a(s.action||u,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:h,body:f,formMethod:s.method||c,formEncType:s.encType||d,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,a,t,r])}i(mn,"useSubmit");function pn(e,{relative:t}={}){let{basename:r}=l.useContext(L),n=l.useContext(_);S(n,"useFormAction must be used inside a RouteContext");let[a]=n.matches.slice(-1),o={...q(e||".",{relative:t})},s=k();if(e==null){o.search=s.search;let u=new URLSearchParams(o.search),c=u.getAll("index");if(c.some(d=>d==="")){u.delete("index"),c.filter(h=>h).forEach(h=>u.append("index",h));let d=u.toString();o.search=d?`?${d}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:O([r,o.pathname])),F(o)}i(pn,"useFormAction");var ge="react-router-scroll-positions",Q={};function ve(e,t,r,n){let a=null;return n&&(r!=="/"?a=n({...e,pathname:M(e.pathname,r)||e.pathname},t):a=n(e,t)),a==null&&(a=e.key),a}i(ve,"getScrollRestorationKey");function yn({getKey:e,storageKey:t}={}){let{router:r}=ke("useScrollRestoration"),{restoreScrollPosition:n,preventScrollReset:a}=cn("useScrollRestoration"),{basename:o}=l.useContext(L),s=k(),u=lt(),c=Sr();l.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),gn(l.useCallback(()=>{if(c.state==="idle"){let d=ve(s,u,o,e);Q[d]=window.scrollY}try{sessionStorage.setItem(t||ge,JSON.stringify(Q))}catch(d){P(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${d}).`)}window.history.scrollRestoration="auto"},[c.state,e,o,s,u,t])),typeof document<"u"&&(l.useLayoutEffect(()=>{try{let d=sessionStorage.getItem(t||ge);d&&(Q=JSON.parse(d))}catch{}},[t]),l.useLayoutEffect(()=>{let d=r?.enableScrollRestoration(Q,()=>window.scrollY,e?(h,f)=>ve(h,f,o,e):void 0);return()=>d&&d()},[r,o,e]),l.useLayoutEffect(()=>{if(n!==!1){if(typeof n=="number"){window.scrollTo(0,n);return}try{if(s.hash){let d=document.getElementById(decodeURIComponent(s.hash.slice(1)));if(d){d.scrollIntoView();return}}}catch{P(!1,`"${s.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}a!==!0&&window.scrollTo(0,0)}},[s,n,a]))}i(yn,"useScrollRestoration");function Fn(e,t){let{capture:r}=t||{};l.useEffect(()=>{let n=r!=null?{capture:r}:void 0;return window.addEventListener("beforeunload",e,n),()=>{window.removeEventListener("beforeunload",e,n)}},[e,r])}i(Fn,"useBeforeUnload");function gn(e,t){let{capture:r}=t||{};l.useEffect(()=>{let n=r!=null?{capture:r}:void 0;return window.addEventListener("pagehide",e,n),()=>{window.removeEventListener("pagehide",e,n)}},[e,r])}i(gn,"usePageHide");function vn(e,{relative:t}={}){let r=l.useContext(et);S(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=ke("useViewTransitionState"),a=q(e,{relative:t});if(!r.isTransitioning)return!1;let o=M(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=M(r.nextLocation.pathname,n)||r.nextLocation.pathname;return re(a.pathname,s)!=null||re(a.pathname,o)!=null}i(vn,"useViewTransitionState");var mt={name:"ban",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]]};mt.node;var An=W(mt),pt={name:"circle-check",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 9-5.5 5.5L8 12",key:"xofnsj"}]],aliases:["check-circle-2"]};pt.node;var Un=W(pt),yt={name:"database",size:24,node:[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]};yt.node;var Hn=W(yt),gt={name:"folder",size:24,node:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]};gt.node;var Bn=W(gt),vt={name:"lock",size:24,node:[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]};vt.node;var Wn=W(vt),wt={name:"star",size:24,node:[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]};wt.node;var jn=W(wt);export{Ln as _,Un as a,ft as c,$n as d,Pr as f,Ce as g,k as h,Hn as i,ln as l,Fn as m,Wn as n,An as o,On as p,Bn as r,In as s,jn as t,_n as u,Pn as v,Dn as y};
@@ -0,0 +1 @@
1
+ import{t}from"./createLucideIcon-C01KAfc1.js";var e={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};e.node;var h=t(e);export{h as t};
@@ -0,0 +1 @@
1
+ var V=Object.defineProperty;var a=(e,r)=>V(e,"name",{value:r,configurable:!0});import{i as q}from"./rolldown-runtime-ZpX3ckPj.js";import{$i as G,$n as J,Qi as Y,l as g}from"./createLucideIcon-C01KAfc1.js";import{a as X}from"./star-B0Mu4cdA.js";import{v as E}from"./queryKeys-Br82Auye.js";import{$ as Z,Rt as P,in as ee,ot as te}from"./router-Bo2oJyq_.js";import{t as ne}from"./label-B8cGBdHV.js";import{t as O}from"./check-vba7RPNV.js";import{t as B}from"./chevron-down-CTfmQYtZ.js";import{t as M}from"./info-DH5P_pOB.js";import{r as $,t as w}from"./button-Cq79rkKD.js";import{t as re}from"./octagon-alert-CDc0IOFm.js";import{t as se}from"./paperclip-CdwdbvAb.js";import{t as ae}from"./rotate-ccw-CMMEfcO3.js";import{t as F}from"./triangle-alert-DuUA72IB.js";import{t as ie}from"./heartbeats-DqejhX23.js";import{t as le}from"./input-ChF32KiE.js";import{t as oe}from"./email-CV3yYcNq.js";var c=q(G(),1),t=q(Y(),1);function I(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}a(I,"record");var U=(0,c.createContext)(null);function De(e){const r=(0,c.useContext)(U);return r&&e?.sourceRunId===r.runId&&e.sections.some(n=>n.rows.some(s=>s.type==="key_value"&&s.value===r.actionId))?r:null}a(De,"useWorkspaceBaseRefRecovery");function Me({issue:e,agentMap:r,unavailableReason:n,onRepaired:s,children:i}){const l=e.activeRecoveryAction,u=l?.cause==="configuration_incomplete"&&typeof l.evidence.latestRunId=="string"?l.evidence.latestRunId:null,{data:m}=E({queryKey:["workspace-base-ref-recovery",e.companyId,e.id,u],queryFn:a(()=>ie.get(u),"queryFn"),enabled:!!u,staleTime:1/0,retry:!1}),d=I(I(m?.resultJson).configurationIncomplete);let x=null;if(l&&u&&m?.companyId===e.companyId&&I(m.contextSnapshot).issueId===e.id&&d.reason==="workspace_base_ref_unresolved"&&typeof d.requestedRef=="string"){const p=e.assigneeAgentId?r.get(e.assigneeAgentId):void 0,b=d.requestedRef,f=e.project?.workspaces?.find(o=>o.id===e.projectWorkspaceId)??e.project?.primaryWorkspace;let v="The task’s repository";if(f?.repoUrl)try{const o=new URL(f.repoUrl);(o.protocol==="https:"||o.protocol==="http:")&&(v=`${o.hostname}${o.pathname.replace(/\.git$/,"")}`)}catch{}const h=I(I(e.executionWorkspaceSettings).workspaceStrategy).baseRef,y=l.status!=="active"||e.status!=="blocked"||e.assigneeAgentId!==l.returnOwnerAgentId||m.agentId!==e.assigneeAgentId||typeof h=="string"&&h.trim()&&h!==b?"This repair no longer matches the task. Refresh to review its current state.":n??(e.executionRunId||e.checkoutRunId?"Wait for the current run to finish.":null)??(p?.status==="paused"||p?.status==="terminated"?"The assigned agent is unavailable.":null)??(e.executionState?.status==="pending"?"Complete the pending review or approval before retrying.":null)??(e.blockedBy?.some(o=>o.status!=="done"&&o.status!=="cancelled")?"Resolve the task’s blockers before retrying.":null);x={actionId:l.id,runId:u,props:{requestedRef:b,repository:v,taskOverride:h===b,defaultBranch:typeof d.defaultBranch=="string"?d.defaultBranch:null,agentName:p?.name??"The assigned agent",unavailableReason:y,failureKind:typeof d.fetchError=="string"&&d.fetchError.includes(`couldn't find remote ref refs/heads/${b}`)?"missing_branch":"unresolved_ref",onRepair:a(async o=>{try{const k=await P.resolveRecoveryAction(e.id,{actionId:l.id,outcome:"restored",sourceIssueStatus:"todo",workspaceBaseRef:{requestedRef:b,branch:o}});if(k.issue.status!=="todo"||k.issue.assigneeAgentId!==e.assigneeAgentId||I(I(k.issue.executionWorkspaceSettings).workspaceStrategy).baseRef!==o)throw new Error("The task changed while saving. Refresh to check its current state.")}finally{s()}},"onRepair")}}}return(0,t.jsx)(U.Provider,{value:x,children:i})}a(Me,"WorkspaceBaseRefRecoveryProvider");var W=(0,c.createContext)(null);function qe({value:e,children:r}){return(0,t.jsx)(W.Provider,{value:e,children:r})}a(qe,"DispositionRecoveryProvider");function ce(e,r){if(e?.recovery?.kind==="disposition_repair_escalated")return e.recovery;if(!e||!r||r.kind!=="deliberate_wait_without_target"||r.ownerType!=="board"||r.wakePolicy?.type!=="board_escalation")return null;const n=r.evidence;return!e.sourceRunId||e.sourceRunId!==n?.latestRunId||!e.sections.some(s=>s.rows.some(i=>i.type==="key_value"&&i.value===r.id))||typeof n.terminalReason!="string"||typeof n.sourceAttemptCount!="number"||!Number.isInteger(n.sourceAttemptCount)||n.sourceAttemptCount<0||typeof n.sourceMaxAttempts!="number"||!Number.isInteger(n.sourceMaxAttempts)||n.sourceMaxAttempts<=0?null:{kind:"disposition_repair_escalated",actionId:r.id,attemptCount:n.sourceAttemptCount,maxAttempts:n.sourceMaxAttempts,reason:n.terminalReason,assigneeAgentId:r.returnOwnerAgentId}}a(ce,"readDispositionRecoverySnapshot");function Pe(e){return ce(e,(0,c.useContext)(W)?.issue.activeRecoveryAction)}a(Pe,"useDispositionRecoverySnapshot");function de(e,r){if(!r)return"Open the task to review its current state.";const{issue:n}=r,s=n.activeRecoveryAction;if(!s||s.id!==e.actionId||s.status!=="active")return"This recovery notice is no longer active.";if(n.status!=="blocked")return"The task’s state has changed. Review its current state before retrying.";if(s.kind!=="deliberate_wait_without_target"||s.ownerType!=="board"||s.wakePolicy?.type!=="board_escalation")return"The task’s recovery state has changed. Refresh to see the current action.";if(!e.assigneeAgentId||n.assigneeAgentId!==e.assigneeAgentId||s.returnOwnerAgentId!==e.assigneeAgentId)return"The assigned agent has changed. Review the task before retrying.";if(r.unavailableReason)return r.unavailableReason;if(r.hasPendingInteraction)return"Respond to the pending question or confirmation before retrying.";if(n.executionRunId||n.checkoutRunId)return"The task already has an active run. Wait for it to finish.";if(n.executionState?.status==="pending")return"The task is waiting for a review or approval.";if(n.blockedBy?.some(l=>l.status!=="done"&&l.status!=="cancelled"))return"Resolve the task’s blockers before retrying.";const i=r.agentMap?.get(e.assigneeAgentId);return i?.status==="paused"?"The assigned agent is paused. Resume the agent before retrying.":i?.status==="terminated"?"The assigned agent is no longer available.":null}a(de,"dispositionRetryUnavailableReason");function ue(e){const r="The agent stopped without recording an outcome or a next step.";return e.reason==="owner_budget_blocked"?`${r} Automatic recovery stopped because a spending or pause limit prevents the agent from running.`:e.reason==="owner_not_invokable"?`${r} Automatic recovery stopped because the assigned agent is unavailable.`:e.reason==="unchanged_source_state_exhausted"?`${r} ${e.attemptCount===2?"Two":String(e.attemptCount)} automatic ${e.attemptCount===1?"attempt":"attempts"} to resolve this failed.`:`${r} Automatic recovery stopped. Review the details before trying again.`}a(ue,"descriptionFor");function Oe({snapshot:e,createdAt:r,defaultExpanded:n=!1}){const s=(0,c.useContext)(W),[i,l]=(0,c.useState)(n),[u,m]=(0,c.useState)(!1),[d,x]=(0,c.useState)(!1),[p,b]=(0,c.useState)(null),f=(0,c.useRef)(!1),v=(0,c.useId)(),h=(0,c.useId)(),y=(0,c.useId)(),o=de(e,s),k=!!(s&&s.issue.activeRecoveryAction?.id!==e.actionId),A=e.assigneeAgentId&&s?.agentMap?.get(e.assigneeAgentId)?.name||"the assigned agent",R=d||k?O:F;async function j(){if(!(!s||o||f.current)){f.current=!0,m(!0),b(null);try{await s.onRetry(e.actionId),x(!0)}catch(C){b(C instanceof Error?C.message:"Refresh the task to check its current state, then try again.")}finally{f.current=!1,m(!1)}}}return a(j,"retry"),(0,t.jsxs)("section",{"aria-labelledby":h,className:"flex min-w-0 gap-2.5 py-3","data-testid":"disposition-recovery-notice",children:[(0,t.jsx)(R,{"aria-hidden":"true",className:g("mt-0.5 size-4 shrink-0",d||k?"text-ink-3":"text-(--status-task-icon-todo)")}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",role:"status","aria-live":"polite",children:[(0,t.jsx)("h2",{id:h,className:"break-words text-sm font-medium text-ink",children:d?"Retry requested":k?"Agent needed attention":"Agent needs attention"}),(0,t.jsx)("p",{className:"text-sm leading-relaxed text-ink-3",children:d?`The task was returned to To do for ${A}.`:ue(e)})]}),o&&!d?(0,t.jsxs)("p",{id:y,className:"text-xs leading-relaxed text-ink-3",children:[!k&&(0,t.jsx)("span",{className:"font-medium text-ink",children:"Retry unavailable. "}),o]}):null,p?(0,t.jsxs)("p",{role:"alert",className:"text-sm text-bad",children:["Couldn’t confirm the retry. ",p]}):null,(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[!d&&!k?(0,t.jsxs)(w,{size:"xs",variant:"secondary",disabled:u||!!o,"aria-describedby":o?y:void 0,onClick:a(()=>{j()},"onClick"),children:[u?(0,t.jsx)($,{"aria-hidden":"true",className:"size-3 animate-spin motion-reduce:animate-none"}):(0,t.jsx)(ae,{"aria-hidden":"true",className:"size-3"}),u?"Requesting retry…":"Retry agent"]}):null,(0,t.jsxs)(w,{size:"xs",variant:"ghost","aria-expanded":i,"aria-controls":v,onClick:a(()=>l(C=>!C),"onClick"),children:[i?"Hide details":"View details",(0,t.jsx)(B,{"aria-hidden":"true",className:g("size-3",i&&"rotate-180")})]}),r?(0,t.jsx)("time",{dateTime:r,className:"font-mono text-xs text-ink-3 sm:ml-auto",children:ee(r)}):null]}),i?(0,t.jsxs)("div",{id:v,className:"flex flex-col gap-3 rounded-lg border border-line bg-bg-3/20 p-3",children:[(0,t.jsxs)("dl",{className:"flex flex-col gap-2 text-xs",children:[(0,t.jsxs)("div",{className:"flex flex-wrap justify-between gap-1",children:[(0,t.jsx)("dt",{className:"text-ink-3",children:"Assigned when recovery stopped"}),(0,t.jsx)("dd",{children:A})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-between gap-1",children:[(0,t.jsx)("dt",{className:"text-ink-3",children:"Automatic attempts"}),(0,t.jsxs)("dd",{className:"font-mono",children:[e.attemptCount," of ",e.maxAttempts]})]}),(0,t.jsxs)("div",{className:"flex flex-wrap justify-between gap-1",children:[(0,t.jsx)("dt",{className:"text-ink-3",children:"Automatic retries for this recovery"}),(0,t.jsx)("dd",{children:"Stopped"})]})]}),(0,t.jsx)("p",{className:"text-xs leading-relaxed text-ink-3",children:"Recovery asked the assigned agent to record an outcome or a next step. Retrying keeps the same task and agent, and checks the task’s current controls before continuing."}),(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,t.jsx)("span",{className:"text-xs text-ink-3",children:"Technical reason"}),(0,t.jsx)("code",{className:"break-all font-mono text-xs",children:e.reason})]})]}):null]})]})}a(Oe,"DispositionRecoveryNotice");function me(e,r){return E({queryKey:["email-thread",e,r],queryFn:a(()=>oe.thread(e,r),"queryFn"),enabled:!!(e&&r)&&!r.startsWith("chat:"),refetchInterval:a(n=>n.state.data===null?!1:3e3,"refetchInterval")})}a(me,"useEmailThread");var L=(0,c.createContext)(null);function Ue({companyId:e,issueId:r,children:n}){const s=me(e,r);return(0,t.jsx)(L.Provider,{value:s.data??null,children:n})}a(Ue,"EmailThreadProvider");function Le(e){const r=(0,c.useContext)(L),n=r?.messages.find(s=>s.commentId===e);return n&&r?(0,t.jsx)(xe,{message:n,publication:r.publications.find(s=>s.providerMessageId===n.providerMessageId),issueId:r.issueId}):null}a(Le,"useEmailComment");function xe({message:e,publication:r,issueId:n,contextNotice:s=!1}){const i=E({queryKey:["email-attachments",n],queryFn:a(()=>P.listAttachments(n),"queryFn"),enabled:e.attachmentIds.length>0});return(0,t.jsxs)("article",{"aria-label":e.direction==="inbound"?"Email received":"Email sent",className:s?"task-context-notice space-y-3":"space-y-4 rounded-xl border border-line bg-bg-2 p-5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,t.jsxs)("span",{className:"flex items-center gap-2 text-sm font-semibold",children:[(0,t.jsx)(Z,{className:"size-4"}),e.direction==="inbound"?"Email received":"Email sent"]}),(0,t.jsx)("span",{className:"text-xs text-ink-3",children:new Date(e.timestamp).toLocaleString()})]}),(0,t.jsxs)("div",{className:"space-y-1",children:[(0,t.jsxs)("p",{className:"text-sm font-medium",children:[e.from,e.direction==="inbound"&&(0,t.jsx)("span",{className:"ml-2 rounded-md bg-bg-3 px-2 py-1 text-xs text-ink-3",children:"External"})]}),(0,t.jsxs)("p",{className:"break-words text-xs text-ink-3",children:["To: ",e.to.join(", ")]}),!!e.cc?.length&&(0,t.jsxs)("p",{className:"break-words text-xs text-ink-3",children:["Cc: ",e.cc.join(", ")]}),(0,t.jsx)("p",{className:"text-sm font-semibold",children:e.subject})]}),(0,t.jsx)("div",{className:"whitespace-pre-wrap break-words text-sm",children:e.text||"(No text body)"}),!!e.attachmentIds.length&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:e.attachmentIds.map(l=>{const u=i.data?.find(m=>m.id===l);return(0,t.jsxs)("a",{href:`/api/attachments/${l}/content`,target:"_blank",rel:"noreferrer",className:"flex items-center gap-2 rounded-md border border-line px-3 py-2 text-xs",children:[(0,t.jsx)(se,{className:"size-3.5"}),u?.originalFilename??"Open attachment"]},l)})}),(0,t.jsxs)("details",{className:"text-xs text-ink-3",children:[(0,t.jsx)("summary",{className:"cursor-pointer",children:"Email details"}),(0,t.jsxs)("div",{className:"space-y-2 pt-3",children:[!!e.bcc?.length&&(0,t.jsxs)("p",{children:["Bcc: ",e.bcc.join(", ")]}),(0,t.jsxs)("p",{className:"break-all",children:["Message ID: ",e.providerMessageId]}),e.fullText!==e.text&&(0,t.jsx)("div",{className:"whitespace-pre-wrap break-words",children:e.fullText})]})]}),r&&(0,t.jsxs)("p",{className:"border-t border-line pt-3 text-xs text-ink-3",children:[r.outcome==="delivered"?"Delivered":r.outcome==="failed"?"Delivery failed":r.outcome==="uncertain"?"Delivery uncertain":r.outcome==="queued"?"Queued":"Sent",r.error?` · ${r.error}`:""]}),i.error&&(0,t.jsx)("p",{role:"alert",className:"text-xs text-bad",children:"Attachments could not be loaded."})]})}a(xe,"EmailMessageCard");function He(e){return e&&/^\/api\/assets\/[^/?#]+\/content$/.test(e)?e:null}a(He,"wardmoteHumanAvatarUrl");function Ke(e){const{authorName:r,authorUserId:n,currentUserId:s,userProfileMap:i}=e,l=n?i?.get(n):null,u=!!(n&&s&&n===s);return{isCurrentUser:u,authorName:l?.label?.trim()||r?.trim()||(n==="local-board"?"Board":u?"You":"User"),avatarUrl:l?.image??null}}a(Ke,"resolveIssueChatHumanAuthor");var H={neutral:{container:"border-line bg-bg-3/35 dark:bg-bg-3/20",iconWrap:"bg-bg-3 text-ink/70",icon:M,iconClass:"text-ink-3",label:"text-ink-3",divider:"border-line/70"},info:{container:"border-sky-300/70 bg-sky-50/70 dark:border-sky-500/30 dark:bg-sky-500/10",iconWrap:"bg-sky-100 text-sky-700 dark:bg-sky-500/20 dark:text-sky-200",icon:M,iconClass:"text-sky-700 dark:text-sky-300",label:"text-sky-800 dark:text-sky-200",divider:"border-sky-300/50 dark:border-sky-500/30"},success:{container:"border-emerald-300/70 bg-emerald-50/70 dark:border-emerald-500/30 dark:bg-emerald-500/10",iconWrap:"bg-emerald-100 text-emerald-700 dark:bg-emerald-500/20 dark:text-emerald-200",icon:X,iconClass:"text-emerald-700 dark:text-emerald-300",label:"text-emerald-800 dark:text-emerald-200",divider:"border-emerald-300/50 dark:border-emerald-500/30"},warning:{container:"border-amber-300/70 bg-amber-50/80 dark:border-amber-500/30 dark:bg-amber-500/10",iconWrap:"bg-amber-100 text-amber-800 dark:bg-amber-500/20 dark:text-amber-200",icon:F,iconClass:"text-amber-700 dark:text-amber-300",label:"text-amber-900 dark:text-amber-200",divider:"border-amber-300/60 dark:border-amber-500/30"},danger:{container:"border-red-400/60 bg-red-50/80 dark:border-red-500/35 dark:bg-red-500/10",iconWrap:"bg-red-100 text-red-700 dark:bg-red-500/20 dark:text-red-200",icon:re,iconClass:"text-red-700 dark:text-red-300",label:"text-red-900 dark:text-red-200",divider:"border-red-400/50 dark:border-red-500/30"}};function he(e){try{return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}catch{return e}}a(he,"formatTimestamp");function pe({row:e,tone:r}){return(0,t.jsxs)("div",{className:"grid grid-cols-(--gtc-8) gap-x-3 gap-y-0.5 px-3 py-1.5 text-xs",children:[(0,t.jsx)("div",{className:"truncate text-(length:--text-micro) font-medium uppercase tracking-(--tracking-label) text-ink-3",children:e.label}),(0,t.jsx)("div",{className:"min-w-0 break-words text-ink/90",children:(()=>{switch(e.kind){case"text":return(0,t.jsx)("span",{children:e.value});case"code":return(0,t.jsx)("code",{className:"rounded bg-bg-3 px-1.5 py-0.5 font-mono text-(length:--text-micro) text-ink/80",children:e.value});case"issue":{const n=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:e.identifier}),e.title?(0,t.jsxs)("span",{className:"text-ink-3",children:["— ",e.title]}):null]});return e.href?(0,t.jsx)("a",{href:e.href,className:g("inline-flex items-center gap-1 rounded-sm font-medium underline-offset-2 hover:underline",r.label),children:n}):(0,t.jsx)("span",{className:g("inline-flex items-center gap-1 font-medium",r.label),children:n})}case"agent":return e.href?(0,t.jsx)("a",{href:e.href,className:g("inline-flex items-center gap-1 rounded-sm font-medium underline-offset-2 hover:underline",r.label),children:e.name}):(0,t.jsx)("span",{className:g("font-medium",r.label),children:e.name});case"run":{const n=e.runId.length>12?`${e.runId.slice(0,8)}…`:e.runId,s=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("code",{className:"rounded bg-bg-3 px-1.5 py-0.5 text-ink/80",children:n}),e.status?(0,t.jsx)("span",{className:g("font-sans",r.label),children:e.status}):null]});return e.href?(0,t.jsx)("a",{href:e.href,className:"inline-flex items-center gap-2 rounded-sm font-mono text-(length:--text-micro) underline-offset-2 hover:underline",children:s}):(0,t.jsx)("span",{className:"inline-flex items-center gap-2 font-mono text-(length:--text-micro)",children:s})}}})()})]})}a(pe,"MetadataRow");function K({sections:e,tone:r="neutral"}){const n=H[r];return(0,t.jsx)("div",{className:"divide-y divide-line/50 px-1 py-1",children:e.map((s,i)=>(0,t.jsxs)("div",{className:"py-1.5 first:pt-2 last:pb-2",children:[s.title?(0,t.jsx)("div",{className:"px-3 pb-1 pt-0.5 text-(length:--text-nano) font-semibold uppercase tracking-(--tracking-caps) text-ink-3",children:s.title}):null,(0,t.jsx)("div",{children:s.rows.map((l,u)=>(0,t.jsx)(pe,{row:l,tone:n},u))})]},i))})}a(K,"SystemNoticeMetadataSections");function Qe({tone:e="neutral",label:r,body:n,source:s,metadata:i,detailsDefaultOpen:l=!1,timestamp:u,className:m}){const d=H[e],x=d.icon,[p,b]=(0,c.useState)(l),f=(0,c.useId)(),v=!!(i&&i.length>0),h=r??{neutral:"System notice",info:"System notice",success:"System notice",warning:"System warning",danger:"System alert"}[e];return(0,t.jsxs)("section",{role:"status","aria-label":h,className:g("relative w-full overflow-hidden rounded-lg border text-sm shadow-(--shadow-extract-8)",d.container,m),children:[(0,t.jsxs)("header",{className:"flex items-start gap-3 px-3 py-2.5 sm:px-4",children:[(0,t.jsx)("span",{className:g("mt-0.5 flex h-7 w-7 shrink-0 items-center justify-center rounded-md",d.iconWrap),"aria-hidden":!0,children:(0,t.jsx)(x,{className:g("h-4 w-4",d.iconClass)})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-0.5 text-(length:--text-micro) font-semibold uppercase tracking-(--tracking-eyebrow)",children:[(0,t.jsx)("span",{className:d.label,children:h}),s?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-ink-3/60","aria-hidden":!0,children:"·"}),s.href?(0,t.jsx)("a",{href:s.href,className:"rounded-sm font-medium normal-case tracking-normal text-ink-3 underline-offset-2 hover:text-ink hover:underline",children:s.label}):(0,t.jsx)("span",{className:"font-medium normal-case tracking-normal text-ink-3",children:s.label})]}):null,u?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"text-ink-3/60","aria-hidden":!0,children:"·"}),(0,t.jsx)("span",{className:"font-medium normal-case tracking-normal text-ink-3",children:he(u)})]}):null]}),(0,t.jsx)("div",{className:"mt-1 break-words text-sm leading-6 text-ink",children:n})]}),v?(0,t.jsxs)("button",{type:"button",onClick:a(()=>b(y=>!y),"onClick"),"aria-expanded":p,"aria-controls":f,className:g("ml-1 inline-flex h-7 shrink-0 items-center gap-1 rounded-md border border-transparent px-2 text-(length:--text-micro) font-medium uppercase tracking-(--tracking-eyebrow) text-ink-3 transition-(--tp-background-color-border-color-color)","hover:border-line/70 hover:bg-bg/70 hover:text-ink","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus/50"),children:[(0,t.jsx)("span",{children:p?"Hide details":"Details"}),(0,t.jsx)(B,{className:g("h-3.5 w-3.5 transition-transform duration-150",p&&"rotate-180")})]}):null]}),v&&p?(0,t.jsx)("div",{id:f,className:g("border-t bg-bg/50 dark:bg-bg/30",d.divider),children:(0,t.jsx)(K,{sections:i,tone:e})}):null]})}a(Qe,"SystemNotice");function Ve({requestedRef:e,repository:r,defaultBranch:n,agentName:s,configuredBy:i,taskOverride:l=!0,failureKind:u="unresolved_ref",unavailableReason:m,onRepair:d}){const x=(0,c.useId)(),[p,b]=(0,c.useState)(!n),[f,v]=(0,c.useState)(n??""),[h,y]=(0,c.useState)(!1),[o,k]=(0,c.useState)(!1),[A,R]=(0,c.useState)(null),[j,C]=(0,c.useState)(null),T=(0,c.useRef)(!1),Q=f.trim().length>0&&f.trim()!==e;async function z(N){const _=N.trim();if(!(!_||_===e||m||T.current||j)){if(!J(_)){R("Enter a valid branch name, such as master or release/next.");return}T.current=!0,k(!0),R(null);try{await d(_),C(_)}catch(D){R(D instanceof Error?D.message:"Refresh the task to check its current state, then try again.")}finally{T.current=!1,k(!1)}}}return a(z,"repair"),(0,t.jsxs)("section",{"aria-labelledby":`${x}-title`,className:"flex min-w-0 gap-3 rounded-lg border border-line bg-bg-3/20 p-4","data-testid":"workspace-base-ref-recovery",children:[j?(0,t.jsx)(O,{"aria-hidden":!0,className:"mt-0.5 size-4 shrink-0 text-(--status-task-icon-done)"}):(0,t.jsx)(F,{"aria-hidden":!0,className:"mt-0.5 size-4 shrink-0 text-(--status-task-icon-blocked)"}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1",role:"status","aria-live":"polite",children:[(0,t.jsx)("h2",{id:`${x}-title`,className:"break-words text-sm font-semibold",children:j?"Branch updated · retry requested":u==="missing_branch"?(0,t.jsxs)(t.Fragment,{children:["Branch ",(0,t.jsx)("code",{className:"font-mono",children:e})," was not found"]}):(0,t.jsxs)(t.Fragment,{children:["Couldn’t use branch ",(0,t.jsx)("code",{className:"font-mono",children:e})]})}),(0,t.jsx)("p",{className:"text-sm leading-relaxed text-ink-3",children:j?(0,t.jsxs)(t.Fragment,{children:["This task now starts from ",(0,t.jsx)("code",{className:"font-mono text-ink",children:j}),". A retry has been requested for ",s,"."]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"break-all text-ink",children:r}),u==="missing_branch"?(0,t.jsxs)(t.Fragment,{children:[" has no branch named ",(0,t.jsx)("code",{className:"font-mono text-ink",children:e}),"."]}):" could not resolve the starting branch. Check the branch name and repository access."," ",s," hasn’t started."]})})]}),!j&&(0,t.jsxs)(t.Fragment,{children:[n&&!p&&(0,t.jsxs)("p",{className:"flex flex-wrap items-center gap-1.5 text-sm",children:[(0,t.jsx)(te,{"aria-hidden":!0,className:"size-4 text-ink-3"}),(0,t.jsx)("code",{className:"font-mono",children:n}),(0,t.jsx)("span",{className:"text-ink-3",children:"is the repository’s default branch."})]}),(0,t.jsx)("p",{className:"text-xs text-ink-3",children:"Changes only this task’s starting branch."}),m&&(0,t.jsx)("p",{id:`${x}-unavailable`,className:"text-sm text-ink-3",children:m}),A&&(0,t.jsxs)("p",{role:"alert",id:`${x}-error`,className:"text-sm text-bad",children:["Couldn’t confirm the repair. ",A]}),p?(0,t.jsxs)("form",{className:"flex flex-col gap-3",onSubmit:a(N=>{N.preventDefault(),z(f)},"onSubmit"),children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)(ne,{htmlFor:`${x}-branch`,children:"Starting branch"}),(0,t.jsx)(le,{id:`${x}-branch`,autoFocus:!0,value:f,disabled:o||!!m,onChange:a(N=>v(N.target.value),"onChange"),placeholder:"Branch name",className:"font-mono","aria-describedby":A?`${x}-error`:void 0,autoComplete:"off",spellCheck:!1})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[n?(0,t.jsx)(w,{type:"button",variant:"ghost",size:"sm",disabled:o,onClick:a(()=>{b(!1),R(null)},"onClick"),children:"Cancel"}):(0,t.jsx)("span",{}),(0,t.jsxs)(w,{type:"submit",size:"sm",disabled:o||!Q||!!m,"aria-describedby":m?`${x}-unavailable`:void 0,children:[o&&(0,t.jsx)($,{"aria-hidden":!0,className:"size-3.5 animate-spin motion-reduce:animate-none"}),o?"Saving & requesting retry…":"Save branch & retry"]})]})]}):(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[(0,t.jsx)(w,{type:"button",variant:"ghost",size:"sm",disabled:o||!!m,onClick:a(()=>b(!0),"onClick"),children:"Choose another branch"}),(0,t.jsxs)(w,{type:"button",size:"sm",disabled:o||!!m||n===e,"aria-describedby":m?`${x}-unavailable`:void 0,onClick:a(()=>{z(n)},"onClick"),children:[o&&(0,t.jsx)($,{"aria-hidden":!0,className:"size-3.5 animate-spin motion-reduce:animate-none"}),o?"Saving & requesting retry…":`Use ${n} & retry`]})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)(w,{type:"button",variant:"ghost",size:"xs","aria-expanded":h,"aria-controls":`${x}-details`,onClick:a(()=>y(N=>!N),"onClick"),children:[h?"Hide details":"Why did this happen?",(0,t.jsx)(B,{"aria-hidden":!0,className:g("size-3",h&&"rotate-180")})]}),h&&(0,t.jsx)("div",{id:`${x}-details`,className:"mt-2 rounded-md border border-line bg-bg",children:(0,t.jsx)(K,{tone:"neutral",sections:[{rows:[{kind:"text",label:"Setting",value:l?"Task-specific starting branch":"Workspace starting branch"},{kind:"code",label:"Requested branch",value:e},...i?[{kind:"text",label:"Set by",value:i}]:[],{kind:"text",label:"Why it stopped",value:l?"An explicit task branch overrides the repository default. Wardmote does not silently switch branches.":"The configured starting branch must resolve before the agent can start. This repair overrides it for this task."}]}]})})]})]})]})}a(Ve,"WorkspaceBaseRefRecoveryNotice");var fe={neutral:"System notice",info:"System notice",success:"System notice",warning:"System warning",danger:"System alert"};function S(e,r){const n=e.label?.trim();return n&&n.length>0?n:r}a(S,"metadataRowText");function ge(e,r){switch(e.type){case"text":return{kind:"text",label:S(e,"Detail"),value:e.text};case"code":return{kind:"code",label:S(e,"Code"),value:e.code};case"key_value":return{kind:"text",label:e.label,value:e.value};case"issue_link":{const n=e.identifier??null;return n?{kind:"issue",label:S(e,"Task"),identifier:n,href:`/issues/${n}`,title:e.title??void 0}:{kind:"text",label:S(e,"Task"),value:e.title??"unknown"}}case"agent_link":{const n=e.name?.trim()||e.agentId.slice(0,8);return{kind:"agent",label:S(e,"Agent"),name:n,href:`/agents/${e.agentId}`}}case"run_link":{const n=e.agentId??r.runAgentId??null,s=n?`/agents/${n}/runs/${e.runId}`:void 0;return{kind:"run",label:S(e,"Run"),runId:e.runId,href:s,status:e.title??void 0}}default:return null}}a(ge,"mapMetadataRow");function be(e,r={}){return!e||!Array.isArray(e.sections)?[]:e.sections.map(n=>{const s=n.rows.map(l=>ge(l,r)).filter(l=>l!==null);if(s.length===0)return null;const i={rows:s};return n.title&&(i.title=n.title),i}).filter(n=>n!==null)}a(be,"mapCommentMetadataToSystemNoticeSections");function ke(e,r){const n=r?.trim();return n&&n.length>0?n:fe[e]}a(ke,"systemNoticeLabelForTone");function Ge(e){const r=e.presentation?.tone??"neutral",n=ke(r,e.presentation?.title),s=!!e.presentation?.detailsDefaultOpen,i=be(e.metadata,{runAgentId:e.runAgentId??null});return{tone:r,label:n,body:e.body,metadata:i.length>0?i:void 0,detailsDefaultOpen:s,timestamp:e.timestamp,source:e.source}}a(Ge,"buildSystemNoticeProps");export{De as _,Qe as a,He as c,Le as d,me as f,Me as g,Pe as h,Ve as i,xe as l,qe as m,be as n,K as o,Oe as p,ke as r,Ke as s,Ge as t,Ue as u};
@@ -0,0 +1 @@
1
+ var z=Object.defineProperty;var n=(a,t)=>z(a,"name",{value:t,configurable:!0});import{i as I}from"./rolldown-runtime-ZpX3ckPj.js";import{$i as A,Qi as P,l as T}from"./createLucideIcon-C01KAfc1.js";import{a as h,n as R,o as S,r as M,s as x}from"./dist-CjIC-l6P.js";import{t as E}from"./dist-xt2ddRNe.js";import{u as N}from"./dist-ZRlzTkPa.js";import{n as F,r as w,t as V}from"./dist-C7_8mWOJ.js";import{t as $}from"./dist-Dqr5P1yA.js";var v=I(A(),1),s=I(P(),1),L=Object.defineProperty,g=n((a,t)=>L(a,"name",{value:t,configurable:!0}),"__name"),_="Tabs",[D,ct]=S(_,[w]),k=w(),[G,C]=D(_),q=v.forwardRef(g(n(function(t,c){const{__scopeTabs:u,value:e,onValueChange:i,defaultValue:d,orientation:r="horizontal",dir:b,activationMode:p="automatic",...m}=t,l=E(b),[o,f]=M({prop:e,onChange:i,defaultProp:d??"",caller:_});return(0,s.jsx)(G,{scope:u,baseId:N(),value:o,onValueChange:f,orientation:r,dir:l,activationMode:p,children:(0,s.jsx)(x.div,{dir:l,"data-orientation":r,...m,ref:c})})},"Tabs2"),"Tabs")),K="TabsList",B=v.forwardRef(g(n(function(t,c){const{__scopeTabs:u,loop:e=!0,...i}=t,d=C(K,u),r=k(u);return(0,s.jsx)(F,{asChild:!0,...r,orientation:d.orientation,dir:d.dir,loop:e,children:(0,s.jsx)(x.div,{role:"tablist","aria-orientation":d.orientation,...i,ref:c})})},"TabsList2"),"TabsList")),O="TabsTrigger",H=v.forwardRef(g(n(function(t,c){const{__scopeTabs:u,value:e,disabled:i=!1,...d}=t,r=C(O,u),b=k(u),p=j(r.baseId,e),m=y(r.baseId,e),l=e===r.value;return(0,s.jsx)(V,{asChild:!0,...b,focusable:!i,active:l,children:(0,s.jsx)(x.button,{type:"button",role:"tab","aria-selected":l,"aria-controls":m,"data-state":l?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:p,...d,ref:c,onMouseDown:h(t.onMouseDown,o=>{!i&&o.button===0&&o.ctrlKey===!1?r.onValueChange(e):o.preventDefault()}),onKeyDown:h(t.onKeyDown,o=>{i||o.target!==o.currentTarget||[" ","Enter"].includes(o.key)&&r.onValueChange(e)}),onFocus:h(t.onFocus,()=>{const o=r.activationMode!=="manual";!l&&!i&&o&&r.onValueChange(e)})})})},"TabsTrigger2"),"TabsTrigger")),Q="TabsContent",J=v.forwardRef(g(n(function(t,c){const{__scopeTabs:u,value:e,forceMount:i,children:d,...r}=t,b=C(Q,u),p=j(b.baseId,e),m=y(b.baseId,e),l=e===b.value,o=v.useRef(l);return v.useEffect(()=>{const f=requestAnimationFrame(()=>o.current=!1);return()=>cancelAnimationFrame(f)},[]),(0,s.jsx)(R,{present:i||l,children:n(({present:f})=>(0,s.jsx)(x.div,{"data-state":l?"active":"inactive","data-orientation":b.orientation,role:"tabpanel","aria-labelledby":p,hidden:!f,id:m,tabIndex:0,...r,ref:c,style:{...t.style,animationDuration:o.current?"0s":void 0},children:f&&d}),"children")})},"TabsContent2"),"TabsContent"));function j(a,t){return`${a}-trigger-${t}`}n(j,"makeTriggerId");g(j,"makeTriggerId");function y(a,t){return`${a}-content-${t}`}n(y,"makeContentId");g(y,"makeContentId");var U=q,W=B,X=H,Y=J;function lt({className:a,orientation:t="horizontal",...c}){return(0,s.jsx)(U,{"data-slot":"tabs","data-orientation":t,orientation:t,className:T("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",a),...c})}n(lt,"Tabs");var Z=$("p-(--sz-3px) group-data-[orientation=horizontal]/tabs:h-9 group/tabs-list text-ink-3 inline-flex w-fit items-center justify-center group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",{variants:{variant:{default:"bg-bg-3",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function ut({className:a,variant:t="default",...c}){return(0,s.jsx)(W,{"data-slot":"tabs-list","data-variant":t,className:T(Z({variant:t}),a),...c})}n(ut,"TabsList");function dt({className:a,...t}){return(0,s.jsx)(X,{"data-slot":"tabs-trigger",className:T("focus-visible:border-focus focus-visible:ring-focus/50 focus-visible:outline-focus text-ink-3 hover:text-ink relative inline-flex h-(--sz-calc-27) flex-1 items-center justify-center gap-1.5 border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-(--tp-color-background-color-border-color-box-shadow) group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:ring-(length:--rad-3) focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-bg data-[state=active]:border-line-strong dark:data-[state=active]:bg-line-strong/30 data-[state=active]:text-ink","after:bg-ink after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-(--sz-neg-5px) group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",a),...t})}n(dt,"TabsTrigger");function bt({className:a,...t}){return(0,s.jsx)(Y,{"data-slot":"tabs-content",className:T("flex-1 outline-none",a),...t})}n(bt,"TabsContent");export{dt as i,bt as n,ut as r,lt as t};
@@ -0,0 +1,10 @@
1
+ var at=Object.defineProperty;var o=(t,e)=>at(t,"name",{value:e,configurable:!0});import{i as F}from"./rolldown-runtime-ZpX3ckPj.js";import{$i as rt,Qi as ot,l as f,t as w}from"./createLucideIcon-C01KAfc1.js";import{lt as l}from"./router-Bo2oJyq_.js";import{t as u}from"./file-text-Chu49UHl.js";import{t as it}from"./file-_5byK_0p.js";import{t as ct}from"./button-Cq79rkKD.js";import{t as V}from"./dist-Dqr5P1yA.js";var L={name:"file-archive",size:24,node:[["path",{d:"M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5",key:"4pqfef"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 12v-1",key:"1ej8lb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M8 7V6",key:"1nbb54"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]]};L.node;var h=w(L),$={name:"file-headphone",size:24,node:[["path",{d:"M4 6.835V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-.343",key:"1vfytu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M2 19a2 2 0 0 1 4 0v1a2 2 0 0 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 0 1-4 0v-1a2 2 0 0 1 4 0",key:"1etmh7"}]],aliases:["file-audio","file-audio-2"]};$.node;var v=w($),R={name:"file-play",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M15.033 13.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56v-4.704a.645.645 0 0 1 .967-.56z",key:"1tzo1f"}]],aliases:["file-video"]};R.node;var x=w(R),D={name:"file-spreadsheet",size:24,node:[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]};D.node;var g=w(D);function E(t,e){if(t&&!e)return t;if(!t&&e)return e;if(t||e)return{...t,...e}}o(E,"mergeObjects");var M={};function z(t,e,n,r,a){if(!n&&!r&&!a&&!t)return A(e);let i=A(t);return e&&(i=b(i,e)),n&&(i=b(i,n)),r&&(i=b(i,r)),a&&(i=b(i,a)),i}o(z,"mergeProps");function lt(t){if(t.length===0)return M;if(t.length===1)return A(t[0]);let e=A(t[0]);for(let n=1;n<t.length;n+=1)e=b(e,t[n]);return e}o(lt,"mergePropsN");function A(t){return k(t)?{...B(t,M)}:st(t)}o(A,"createInitialMergedProps");function b(t,e){return k(e)?B(e,t):ut(t,e)}o(b,"mergeInto");function st(t){const e={...t};for(const n in e){const r=e[n];O(n,r)&&(e[n]=U(r))}return e}o(st,"copyInitialProps");function ut(t,e){if(!e)return t;for(const n in e){const r=e[n];switch(n){case"style":t[n]=E(t.style,r);break;case"className":t[n]=q(t.className,r);break;default:O(n,r)?t[n]=ft(t[n],r):t[n]=r}}return t}o(ut,"mutablyMergeInto");function O(t,e){const n=t.charCodeAt(0),r=t.charCodeAt(1),a=t.charCodeAt(2);return n===111&&r===110&&a>=65&&a<=90&&(typeof e=="function"||typeof e>"u")}o(O,"isEventHandler");function k(t){return typeof t=="function"}o(k,"isPropsGetter");function B(t,e){return k(t)?t(e):t??M}o(B,"resolvePropsGetter");function ft(t,e){return e?t?(...n)=>{const r=n[0];if(W(r)){const i=r;Y(i);const c=e(...n);return i.baseUIHandlerPrevented||t?.(...n),c}const a=e(...n);return t?.(...n),a}:U(e):t}o(ft,"mergeEventHandlers");function U(t){return t&&((...e)=>{const n=e[0];return W(n)&&Y(n),t(...e)})}o(U,"wrapEventHandler");function Y(t){return t.preventBaseUIHandler=()=>{t.baseUIHandlerPrevented=!0},t}o(Y,"makeEventPreventable");function q(t,e){return e?t?e+" "+t:e:t}o(q,"mergeClassNames");function W(t){return t!=null&&typeof t=="object"&&"nativeEvent"in t}o(W,"isSyntheticEvent");function dt(t,e){return o(function(r,...a){const i=new URL(t);return i.searchParams.set("code",r.toString()),a.forEach(c=>i.searchParams.append("args[]",c)),`${e} error #${r}; visit ${i} for the full message.`},"formatErrorMessage")}o(dt,"createFormatErrorMessage");var mt=dt("https://base-ui.com/production-error","Base UI"),p=F(rt(),1),P={};function G(t,e){const n=p.useRef(P);return n.current===P&&(n.current=t(e)),n}o(G,"useRefWithInit");function I(t,e,n,r){const a=G(H).current;return pt(a,t,e,n,r)&&K(a,[t,e,n,r]),a.callback}o(I,"useMergedRefs");function ht(t){const e=G(H).current;return vt(e,t)&&K(e,t),e.callback}o(ht,"useMergedRefsN");function H(){return{callback:null,cleanup:null,refs:[]}}o(H,"createForkRef");function pt(t,e,n,r,a){return t.refs[0]!==e||t.refs[1]!==n||t.refs[2]!==r||t.refs[3]!==a}o(pt,"didChange");function vt(t,e){return t.refs.length!==e.length||t.refs.some((n,r)=>n!==e[r])}o(vt,"didChangeN");function K(t,e){if(t.refs=e,e.every(n=>n==null)){t.callback=null;return}t.callback=n=>{if(t.cleanup&&(t.cleanup(),t.cleanup=null),n!=null){const r=Array(e.length).fill(null);for(let a=0;a<e.length;a+=1){const i=e[a];if(i!=null)switch(typeof i){case"function":{const c=i(n);typeof c=="function"&&(r[a]=c);break}case"object":i.current=n}}t.cleanup=()=>{for(let a=0;a<e.length;a+=1){const i=e[a];if(i!=null)switch(typeof i){case"function":{const c=r[a];typeof c=="function"?c():i(null);break}case"object":i.current=null}}}}}}o(K,"update");var gt=parseInt("19.2.8",10);function bt(t){return gt>=t}o(bt,"isReactVersionAtLeast");function S(t){if(!p.isValidElement(t))return null;const e=t,n=e.props;return(bt(19)?n?.ref:e.ref)??null}o(S,"getReactElementRef");var Ut=Object.freeze([]),y=Object.freeze({});function yt(t,e){const n={};for(const r in t){const a=t[r];if(e?.hasOwnProperty(r)){const i=e[r](a);i!=null&&Object.assign(n,i);continue}a===!0?n[`data-${r.toLowerCase()}`]="":a&&(n[`data-${r.toLowerCase()}`]=a.toString())}return n}o(yt,"getStateAttributesProps");function xt(t,e){return typeof t=="function"?t(e):t}o(xt,"resolveClassName");function At(t,e){return typeof t=="function"?t(e):t}o(At,"resolveStyle");function wt(t,e,n={}){const r=e.render,a=Et(e,n);return n.enabled===!1?null:kt(t,r,a,n.state??y)}o(wt,"useRenderElement");function Et(t,e={}){const{className:n,style:r,render:a}=t,{state:i=y,ref:c,props:N,stateAttributesMapping:tt,enabled:m=!0}=e,_=m?xt(n,i):void 0,j=m?At(r,i):void 0,et=m?yt(i,tt):y,nt=m&&N?Mt(N):void 0,s=m?E(et,nt)??{}:y;return typeof document<"u"&&(m?Array.isArray(c)?s.ref=ht([s.ref,S(a),...c]):s.ref=I(s.ref,S(a),c):I(null,null)),m?(_!==void 0&&(s.className=q(s.className,_)),j!==void 0&&(s.style=E(s.style,j)),s):y}o(Et,"useRenderElementProps");function Mt(t){return Array.isArray(t)?lt(t):z(void 0,t)}o(Mt,"resolveRenderFunctionProps");var zt=Symbol.for("react.lazy");function kt(t,e,n,r){if(e){if(typeof e=="function")return e(n,r);const a=z(n,e.props);a.ref=n.ref;let i=e;return i?.$$typeof===zt&&(i=p.Children.toArray(e)[0]),p.cloneElement(i,a)}if(t&&typeof t=="string")return Nt(t,n);throw new Error(mt(8))}o(kt,"evaluateRenderProp");function Nt(t,e){return t==="button"?(0,p.createElement)("button",{type:"button",...e,key:e.key}):t==="img"?(0,p.createElement)("img",{alt:"",...e,key:e.key}):p.createElement(t,e)}o(Nt,"renderTag");function _t(t){return wt(t.defaultTagName??"div",t,t)}o(_t,"useRender");var d=F(ot(),1),jt=V("group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-none border bg-bg-2 text-ink transition-colors focus-within:ring-1 focus-within:ring-focus/50 has-[>a,>button]:hover:bg-bg-3/50 data-[state=error]:border-bad/30 data-[state=idle]:border-dashed",{variants:{size:{default:"gap-2 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5",sm:"gap-2.5 text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1",xs:"gap-1.5 rounded-none text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1"},orientation:{horizontal:"min-w-40 items-center",vertical:"w-24 flex-col has-data-[slot=attachment-content]:w-30"}}});function Yt({className:t,state:e="done",size:n="default",orientation:r="horizontal",...a}){return(0,d.jsx)("div",{"data-slot":"attachment","data-state":e,"data-size":n,"data-orientation":r,className:f(jt({size:n,orientation:r}),t),...a})}o(Yt,"Attachment");var Pt=V("relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-none bg-bg-3 text-ink group-data-[orientation=vertical]/attachment:w-full group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-none group-data-[state=error]/attachment:bg-bad/10 group-data-[state=error]/attachment:text-bad group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5",{variants:{variant:{icon:"",image:"opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover"}},defaultVariants:{variant:"icon"}});function qt({className:t,variant:e="icon",...n}){return(0,d.jsx)("div",{"data-slot":"attachment-media","data-variant":e,className:f(Pt({variant:e}),t),...n})}o(qt,"AttachmentMedia");function Wt({className:t,...e}){return(0,d.jsx)("div",{"data-slot":"attachment-content",className:f("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1",t),...e})}o(Wt,"AttachmentContent");function Gt({className:t,...e}){return(0,d.jsx)("span",{"data-slot":"attachment-title",className:f("block max-w-full min-w-0 truncate font-medium group-data-[state=processing]/attachment:shimmer group-data-[state=uploading]/attachment:shimmer",t),...e})}o(Gt,"AttachmentTitle");function Ht({className:t,...e}){return(0,d.jsx)("span",{"data-slot":"attachment-description",className:f("mt-0.5 block min-w-0 truncate text-xs text-ink-3 group-data-[state=error]/attachment:text-bad/80","max-w-full",t),...e})}o(Ht,"AttachmentDescription");function Kt({className:t,...e}){return(0,d.jsx)("div",{"data-slot":"attachment-actions",className:f("relative z-20 flex shrink-0 items-center group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:right-3 group-data-[orientation=vertical]/attachment:gap-1",t),...e})}o(Kt,"AttachmentActions");function Jt({className:t,variant:e,size:n="icon-xs",...r}){return(0,d.jsx)(ct,{"data-slot":"attachment-action",variant:e??"ghost",size:n,className:f(t),...r})}o(Jt,"AttachmentAction");function Xt({className:t,render:e,type:n,...r}){return _t({defaultTagName:"button",props:z({type:e?n:n??"button",className:f("absolute inset-0 z-10 outline-none",t)},r),render:e,state:{slot:"attachment-trigger"}})}o(Xt,"AttachmentTrigger");function Zt({className:t,...e}){return(0,d.jsx)("div",{"data-slot":"attachment-group",className:f("flex min-w-0 scroll-fade-x snap-x snap-mandatory scroll-px-1 scrollbar-none gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start",t),...e})}o(Zt,"AttachmentGroup");var It=new Set(["png","jpg","jpeg","gif","webp","avif","bmp","ico","heic"]),St={pdf:{icon:u,label:"PDF"},doc:{icon:u,label:"Doc"},docx:{icon:u,label:"Doc"},txt:{icon:u,label:"Text"},md:{icon:u,label:"Markdown"},rtf:{icon:u,label:"Text"},csv:{icon:g,label:"CSV"},tsv:{icon:g,label:"TSV"},xls:{icon:g,label:"Sheet"},xlsx:{icon:g,label:"Sheet"},zip:{icon:h,label:"ZIP"},gz:{icon:h,label:"Archive"},tar:{icon:h,label:"Archive"},tgz:{icon:h,label:"Archive"},rar:{icon:h,label:"Archive"},"7z":{icon:h,label:"Archive"},mp3:{icon:v,label:"Audio"},wav:{icon:v,label:"Audio"},m4a:{icon:v,label:"Audio"},ogg:{icon:v,label:"Audio"},mp4:{icon:x,label:"Video"},mov:{icon:x,label:"Video"},webm:{icon:x,label:"Video"},json:{icon:l,label:"JSON"},yaml:{icon:l,label:"YAML"},yml:{icon:l,label:"YAML"},xml:{icon:l,label:"XML"},html:{icon:l,label:"HTML"},css:{icon:l,label:"CSS"},js:{icon:l,label:"Code"},jsx:{icon:l,label:"Code"},ts:{icon:l,label:"Code"},tsx:{icon:l,label:"Code"},py:{icon:l,label:"Code"},rb:{icon:l,label:"Code"},go:{icon:l,label:"Code"},rs:{icon:l,label:"Code"},sh:{icon:l,label:"Code"},sql:{icon:l,label:"SQL"},log:{icon:u,label:"Log"},patch:{icon:l,label:"Patch"},diff:{icon:l,label:"Patch"}};function J(t){const e=/\.([a-z0-9]+)$/i.exec(t.trim());return e?e[1].toLowerCase():""}o(J,"extensionOf");function C(t){return It.has(J(t))}o(C,"isImageFilename");function X(t){return(t??"").toLowerCase().split(";")[0]?.trim()??""}o(X,"normalizedContentType");function Qt(t){const e=X(t.contentType);return e==="image/svg+xml"?!1:e.startsWith("image/")?!0:e&&e!=="application/octet-stream"?!1:C(t.name)||C(t.url.split("?")[0])}o(Qt,"isImageAttachment");function Ct(t){return St[J(t)]??{icon:it,label:"File"}}o(Ct,"fileKindForName");function te(t){const e=Ct(t.name);if(e.label!=="File")return e;const n=X(t.contentType);return n==="application/pdf"?{icon:u,label:"PDF"}:n==="application/json"||n.endsWith("+json")?{icon:l,label:"JSON"}:n==="text/csv"||n==="application/csv"?{icon:g,label:"CSV"}:n.startsWith("text/")?{icon:u,label:"Text"}:n.startsWith("audio/")?{icon:v,label:"Audio"}:n.startsWith("video/")?{icon:x,label:"Video"}:n.includes("zip")||n.includes("archive")?{icon:h,label:"Archive"}:e}o(te,"fileKindForAttachment");function ee(t){return t===void 0||!Number.isFinite(t)||t<=0?"":t<1024?`${t} B`:t<1048576?`${(t/1024).toFixed(1)} KB`:`${(t/1048576).toFixed(1)} MB`}o(ee,"formatFileSize");function Tt(t){return/\/api\/(?:attachments|assets)\/([^/?]+)\/content/.exec(t)?.[1]??null}o(Tt,"attachmentIdFromUrl");function ne(t,e){const n=new Map(e.map(a=>[a.id,a])),r=new Map(e.flatMap(a=>[[a.contentPath,a],...a.openPath?[[a.openPath,a]]:[]]));return t.map(a=>{const i=a.url.split("?")[0],c=r.get(i)??n.get(Tt(a.url)??"");return c?{...a,id:c.id,name:c.originalFilename?.trim()||a.name,contentType:c.contentType,byteSize:c.byteSize,openPath:c.openPath,downloadPath:c.downloadPath}:a})}o(ne,"hydrateAttachmentRefs");var T=/(?<!!)\[((?:\\.|[^\]\\])+)\]\((\/api\/(?:attachments|assets)\/[^()\s]+\/content(?:\?[^()\s]*)?)\)/g,Z=/!\[((?:\\.|[^\]\\])*)\]\(([^()\s]+)\)/g;function Q(t){return t.replace(Z,"").trim().length===0&&t.trim().length>0}o(Q,"isStandaloneImageEmbedLine");function ae(t){const e=[],n=new Set;for(const r of t.split(`
2
+ `))if(Q(r))for(const a of r.matchAll(Z)){const[,i,c]=a;n.has(c)||(n.add(c),e.push({name:i.replace(/\\([[\]])/g,"$1"),url:c}))}return e}o(ae,"extractImageRefs");function re(t){return t.split(`
3
+ `).filter(e=>!Q(e)).join(`
4
+ `).replace(/\n{3,}/g,`
5
+
6
+ `).trim()}o(re,"stripStandaloneImageEmbeds");function oe(t){const e=[],n=new Set;for(const r of t.matchAll(T)){const[,a,i]=r;n.has(i)||(n.add(i),e.push({name:a.replace(/\\([[\]])/g,"$1"),url:i}))}return e.length===0?{refs:e,text:t}:{refs:e,text:t.split(`
7
+ `).filter(r=>r.replace(T,(a,i,c)=>n.has(c)?"":a).trim().length>0||r.trim().length===0).join(`
8
+ `).replace(/\n{3,}/g,`
9
+
10
+ `).trim()}}o(oe,"extractAttachmentRefs");export{Xt as _,ee as a,re as c,Kt as d,Wt as f,Gt as g,qt as h,Ct as i,Yt as l,Zt as m,ae as n,ne as o,Ht as p,te as r,Qt as s,oe as t,Jt as u};
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-C01KAfc1.js";var a={name:"terminal",size:24,node:[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]};a.node;var n=e(a);export{n as t};