@nervekit/desktop 0.40.2 → 0.41.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 (234) hide show
  1. package/README.md +5 -2
  2. package/THIRD-PARTY-LICENSES.txt +964 -4
  3. package/dist/bin.js +1 -0
  4. package/dist/{chunk-YJT4NXMV.js → chunk-2ICPO4UM.js} +5 -5
  5. package/dist/{chunk-EX63VKXY.js → chunk-3CZXUKLG.js} +1 -1
  6. package/dist/{chunk-KTGSBL6T.js → chunk-4OCDR4DU.js} +11 -11
  7. package/dist/{chunk-BNVMNV4O.js → chunk-62DQXVPO.js} +2 -2
  8. package/dist/{chunk-K2J2VZXO.js → chunk-6GUJQURI.js} +2 -2
  9. package/dist/{chunk-VBM7TD3X.js → chunk-6IHXVT5H.js} +1 -1
  10. package/dist/{chunk-KBNEZR7T.js → chunk-6ZS7TA6E.js} +2 -2
  11. package/dist/{chunk-O6U226AI.js → chunk-7FSH3ABG.js} +4 -4
  12. package/dist/{chunk-RPLBWENJ.js → chunk-7HGFEQSD.js} +5 -5
  13. package/dist/{chunk-XZYFB566.js → chunk-7RPHIJT3.js} +4 -4
  14. package/dist/{chunk-WRTA5G57.js → chunk-APY4TUR3.js} +188 -1
  15. package/dist/{chunk-YUO5V75X.js → chunk-BACYVEE6.js} +2 -2
  16. package/dist/{chunk-H2G55ZPG.js → chunk-BG2KGLIA.js} +2 -2
  17. package/dist/{chunk-7JQBECUL.js → chunk-BN5YDZUZ.js} +1205 -326
  18. package/dist/chunk-BUD4JHBZ.js +7017 -0
  19. package/dist/{chunk-TSV3PFU2.js → chunk-DDBE2VLT.js} +2 -2
  20. package/dist/{chunk-WJULIJOU.js → chunk-EF7ZZKA3.js} +3 -3
  21. package/dist/{chunk-HOCODVKL.js → chunk-EUT45AKW.js} +16 -16
  22. package/dist/{chunk-C6RO4LP3.js → chunk-FCAIYPDJ.js} +2 -2
  23. package/dist/{chunk-6FSDDGFZ.js → chunk-FZ557YWE.js} +47478 -52993
  24. package/dist/{chunk-VC6TX2Y2.js → chunk-HPINJGBO.js} +5 -5
  25. package/dist/{chunk-ANI6J75M.js → chunk-IRRR3PWN.js} +7 -7
  26. package/dist/{chunk-S62LLS4I.js → chunk-IVBMHEPK.js} +12 -12
  27. package/dist/{chunk-SU2USXTD.js → chunk-JBEWFFOK.js} +1 -1
  28. package/dist/{chunk-3VZR3ZUY.js → chunk-KEXKZKN4.js} +6 -6
  29. package/dist/{chunk-ODS5QROC.js → chunk-KUFIFCB4.js} +1 -1
  30. package/dist/{chunk-L2DHKP5C.js → chunk-L5WGVYXM.js} +2 -2
  31. package/dist/{chunk-WIN7KHMV.js → chunk-LGIIT2NF.js} +12 -12
  32. package/dist/{chunk-2BKMOJYJ.js → chunk-LP4APBBQ.js} +1 -1
  33. package/dist/{chunk-6PACEIUY.js → chunk-MI6L5CEA.js} +2 -2
  34. package/dist/{chunk-HDBDYGJQ.js → chunk-N4OXAS3A.js} +1 -1
  35. package/dist/{chunk-KSSM6LUI.js → chunk-N6BUYKF3.js} +5 -5
  36. package/dist/{chunk-MWIKZIAI.js → chunk-NVVW3MWJ.js} +9 -9
  37. package/dist/{chunk-VTDI5KP7.js → chunk-O5JHHRFN.js} +19 -19
  38. package/dist/{chunk-F3MHINI6.js → chunk-O6FDXE54.js} +16 -16
  39. package/dist/{chunk-E4JNHQGT.js → chunk-OMCM3MHS.js} +7 -7
  40. package/dist/{chunk-7FLZA2BD.js → chunk-P72Y5ZBH.js} +7 -7
  41. package/dist/{chunk-O2652RWY.js → chunk-PVPJAGWR.js} +2 -2
  42. package/dist/{chunk-UDC7NPQJ.js → chunk-Q3C7TQ2M.js} +3 -3
  43. package/dist/{chunk-B4IE2GAM.js → chunk-Q5E4ZL2R.js} +1 -1
  44. package/dist/{chunk-5NN7JAJ2.js → chunk-QFK2SWD2.js} +7 -7
  45. package/dist/{chunk-SHEU5KLD.js → chunk-RJR7DJJK.js} +3 -3
  46. package/dist/{chunk-4H3WR7IT.js → chunk-RL52LSTV.js} +1 -1
  47. package/dist/{chunk-FGZX4Q7W.js → chunk-RTB6CF7F.js} +15 -15
  48. package/dist/{chunk-PST63OUS.js → chunk-SDDKYMIP.js} +18313 -4317
  49. package/dist/{chunk-QBAIDKF6.js → chunk-TQURLRHD.js} +1 -1
  50. package/dist/{chunk-3SSNDIQT.js → chunk-TSAUBRRU.js} +1 -1
  51. package/dist/{chunk-ER2ES2RH.js → chunk-U3TEC52G.js} +1 -1
  52. package/dist/{chunk-XY53EFK3.js → chunk-U5KGV63C.js} +1 -1
  53. package/dist/{chunk-WYPVD3HW.js → chunk-UVRULOOP.js} +10 -10
  54. package/dist/{chunk-4VPX67B7.js → chunk-VOATSLRG.js} +3 -1
  55. package/dist/{chunk-TGKIV3F4.js → chunk-W7LEYYFH.js} +18 -18
  56. package/dist/{chunk-T6NRMNLQ.js → chunk-WC5HHPPM.js} +1 -1
  57. package/dist/{chunk-YQFENES6.js → chunk-WG62RHZ2.js} +3 -3
  58. package/dist/{chunk-XE2E2KBP.js → chunk-WIQEPAUG.js} +10 -10
  59. package/dist/{chunk-DTGL5P2V.js → chunk-XM27UVWN.js} +3 -3
  60. package/dist/{chunk-3JJN36GV.js → chunk-XTUSLUQ7.js} +16 -16
  61. package/dist/{chunk-OAEV22IW.js → chunk-Z6AY5VOZ.js} +6 -6
  62. package/dist/{chunk-FZ5N6WXF.js → chunk-ZGWXLG5X.js} +18 -18
  63. package/dist/{chunk-6TAN6WG6.js → chunk-ZUWBEV2O.js} +1 -1
  64. package/dist/{chunk-OANTMDXI.js → chunk-ZVH6EB7S.js} +1 -1
  65. package/dist/daemon.js +65 -31
  66. package/dist/extension-assets/atlassian/docs/confluence-raw.md +31 -0
  67. package/dist/extension-assets/atlassian/docs/confluence-writing.md +101 -0
  68. package/dist/extension-assets/atlassian/docs/jira-raw.md +16 -0
  69. package/dist/extension-assets/atlassian/docs/jira-workflows.md +77 -0
  70. package/dist/extension-assets/atlassian/docs/project-knowledge.md +25 -0
  71. package/dist/extension-assets/atlassian/docs/storage.md +58 -0
  72. package/dist/extension-assets/atlassian/icon.svg +20 -0
  73. package/dist/extension-assets/diagram/docs/diagrams.md +12 -0
  74. package/dist/extension-assets/imagegen/docs/imagegen.md +17 -0
  75. package/dist/extension-assets/web-search/icon.svg +1 -0
  76. package/dist/git-isolated-reader-helper.js +1 -1
  77. package/dist/html-to-markdown.worker.js +6 -7028
  78. package/dist/main.js +583 -169
  79. package/dist/preload.cjs +45 -2
  80. package/dist/quick-script-docs/runtime/documents.md +54 -0
  81. package/dist/quick-script-docs/runtime/files.md +11 -0
  82. package/dist/quick-script-docs/runtime/images.md +10 -0
  83. package/dist/sandbox-libraries/docx.LICENSE +21 -0
  84. package/dist/sandbox-libraries/docx.min.js +9 -0
  85. package/dist/sandbox-libraries/jszip.LICENSE +651 -0
  86. package/dist/sandbox-libraries/jszip.min.js +13 -0
  87. package/dist/sandbox-libraries/mammoth.LICENSE +22 -0
  88. package/dist/sandbox-libraries/mammoth.browser.min.js +13 -0
  89. package/dist/sandbox-libraries/papaparse.LICENSE +20 -0
  90. package/dist/sandbox-libraries/papaparse.min.js +7 -0
  91. package/dist/sandbox-libraries/pptxgen.bundle.js +96 -0
  92. package/dist/sandbox-libraries/pptxgenjs.LICENSE +21 -0
  93. package/dist/sandbox-libraries/xlsx.LICENSE +201 -0
  94. package/dist/sandbox-libraries/xlsx.full.min.js +24 -0
  95. package/dist/web/assets/{AsyncBashCenterHost-BvXKoCVr.js → AsyncBashCenterHost-D2Sy43Ub.js} +1 -1
  96. package/dist/web/assets/ConversationListItem-DvxCcAYm.js +3 -0
  97. package/dist/web/assets/ConversationsWorkbenchPanel-YeNq9LRn.js +1 -0
  98. package/dist/web/assets/DiscoverCenterHost-B6K-QnBF.js +1 -0
  99. package/dist/web/assets/{FileCenterHost-C_7XZAFZ.js → FileCenterHost-Dlk53K5G.js} +1 -1
  100. package/dist/web/assets/FilesWorkbenchPanel-PeCu12oU.js +12 -0
  101. package/dist/web/assets/{GitDiffCenterHost-Cr7lqGI_.js → GitDiffCenterHost-3_Ea0RyG.js} +1 -1
  102. package/dist/web/assets/{GitWorkbenchPanel-BFbwUgIN.js → GitWorkbenchPanel-CYvCkOAW.js} +1 -1
  103. package/dist/web/assets/{LaunchCenterHost-CIu7bcoZ.js → LaunchCenterHost-CP773N_3.js} +1 -1
  104. package/dist/web/assets/LaunchConfigurationNotice-CtmZ1uIQ.js +1 -0
  105. package/dist/web/assets/{LaunchesWorkbenchPanel-BqzJvsrj.js → LaunchesWorkbenchPanel-DP3yVfkO.js} +1 -1
  106. package/dist/web/assets/LogsCenterHost-BFP0doQf.js +1 -0
  107. package/dist/web/assets/{MermaidCenterHost-DVsZB8nB.js → MermaidCenterHost-Bjl6Dvrq.js} +1 -1
  108. package/dist/web/assets/MobileFilesBody-CDp21MGZ.js +1 -0
  109. package/dist/web/assets/{MobileFilesHost-D843vkDF.js → MobileFilesHost-DlJI_yau.js} +1 -1
  110. package/dist/web/assets/MobileLaunchOutputHost-y3TehLWF.js +1 -0
  111. package/dist/web/assets/MobileLaunchesHost-CBNtDTrs.js +2 -0
  112. package/dist/web/assets/MobileLogsHost-BSb2lydK.js +1 -0
  113. package/dist/web/assets/MobileNoteEditorHost-7yW7hIC2.js +1 -0
  114. package/dist/web/assets/{MobileNotesHost-meLV39Yw.js → MobileNotesHost-CvDHzpAh.js} +1 -1
  115. package/dist/web/assets/{MobileProjectSettingsHost-A49Fdn54.js → MobileProjectSettingsHost-CjtPfyKT.js} +1 -1
  116. package/dist/web/assets/{MobileProjectSettingsPageHost-BXpUqS_N.js → MobileProjectSettingsPageHost-j_7N-B9L.js} +1 -1
  117. package/dist/web/assets/{MobileSettingsHost-DPKPajzI.js → MobileSettingsHost-DXIKNF01.js} +1 -1
  118. package/dist/web/assets/{MobileSettingsPageHost-izNWGN0i.js → MobileSettingsPageHost-CEzo7J9p.js} +1 -1
  119. package/dist/web/assets/MobileSettingsPageScreen-99wMLRsn.js +1 -0
  120. package/dist/web/assets/NotesWorkbenchPanel-DqTwXBBv.js +1 -0
  121. package/dist/web/assets/ProjectSettingsCenterHost-D96cL0uH.js +1 -0
  122. package/dist/web/assets/{PullRequestCenterHost-BYkWxXQe.js → PullRequestCenterHost-DY0yPDK2.js} +1 -1
  123. package/dist/web/assets/PullRequestsWorkbenchPanel-D07LE8vJ.js +1 -0
  124. package/dist/web/assets/{SearchWorkbenchPanel-DaC0smfe.js → SearchWorkbenchPanel-D2_3iXo8.js} +1 -1
  125. package/dist/web/assets/SettingsCenter-BQWc24di.js +1 -0
  126. package/dist/web/assets/SettingsCenterHost-BvgNfeZN.js +1 -0
  127. package/dist/web/assets/{SystemPromptCenterHost-B1hfsfAn.js → SystemPromptCenterHost-BLHkB7lp.js} +1 -1
  128. package/dist/web/assets/activity-notices-C9aphS1s.js +1 -0
  129. package/dist/web/assets/adapters-DNU88KT0.js +1 -0
  130. package/dist/web/assets/agent-profiles.svelte-DgI8wSS2.js +1 -0
  131. package/dist/web/assets/api-CHNbLvvY.js +1 -0
  132. package/dist/web/assets/center-tabs.svelte-CyhCD_6b.js +1 -0
  133. package/dist/web/assets/channel-6wGoOwGx.js +57 -0
  134. package/dist/web/assets/circle-question-mark-C7NgqbLL.js +1 -0
  135. package/dist/web/assets/code-DJR0pnqV.js +7 -0
  136. package/dist/web/assets/{confirm-dialog-Bw_IxcZD.js → confirm-dialog-BDjzMiC4.js} +1 -1
  137. package/dist/web/assets/{conversation-connection-3GxIuhbS.js → conversation-connection-mLNyfV2d.js} +1 -1
  138. package/dist/web/assets/dialog-CkRcLEJT.js +1 -0
  139. package/dist/web/assets/discover-Dh4m7djO.js +4 -0
  140. package/dist/web/assets/dist-DSApqEag.js +1 -0
  141. package/dist/web/assets/file-tabs.svelte-cX3MMyG6.js +2 -0
  142. package/dist/web/assets/filesystem-BbIXrkGB.js +1 -0
  143. package/dist/web/assets/{git-store.svelte-CM5k7yRU.js → git-store.svelte-D3uwRVnj.js} +1 -1
  144. package/dist/web/assets/{git.api-D2CfUXZW.js → git.api-CTu-tG8A.js} +1 -1
  145. package/dist/web/assets/index-BrxjAwg0.js +46 -0
  146. package/dist/web/assets/index-yEOHI1Z7.css +1 -0
  147. package/dist/web/assets/launches-CC4gLnSa.js +5 -0
  148. package/dist/web/assets/{launches.api-BZxyWF8t.js → launches.api-CaotSs6l.js} +1 -1
  149. package/dist/web/assets/launches.svelte-DDA5J-RZ.js +2 -0
  150. package/dist/web/assets/{message-square-CqLxHJuW.js → list-checks-zV9Dp7Cu.js} +1 -1
  151. package/dist/web/assets/{logs.api-Coi8HJuy.js → logs.api-DMmVlkSz.js} +1 -1
  152. package/dist/web/assets/{maintenance-state.svelte-CDO9i4dk.js → maintenance-state.svelte-l9v7Hg3i.js} +2 -2
  153. package/dist/web/assets/notify.svelte-BTEXJZ8P.js +1 -0
  154. package/dist/web/assets/popover-panel-C-weKOk3.js +5 -0
  155. package/dist/web/assets/pr-view-loader.svelte-C0NClMS6.js +1 -0
  156. package/dist/web/assets/progress-CKEsTSOk.js +1 -0
  157. package/dist/web/assets/scratch-notes-state.svelte-B_rY_-9q.js +1 -0
  158. package/dist/web/assets/{scratch-notes.api-Cbvag3bv.js → scratch-notes.api-B2gOOK6Z.js} +1 -1
  159. package/dist/web/assets/search-input-CEr0SmAB.js +1 -0
  160. package/dist/web/assets/settings-2-CWd8Y06n.js +1 -0
  161. package/dist/web/assets/settings-CRmC19nG.js +1 -0
  162. package/dist/web/assets/settings-CXoAzSmm.js +1 -0
  163. package/dist/web/assets/settings-actions.svelte-BB6u_lQ0.js +1 -0
  164. package/dist/web/assets/settings-page-controllers.svelte-al78EDTL.js +29 -0
  165. package/dist/web/assets/sheet-content-DauQ7hPL.js +1 -0
  166. package/dist/web/assets/shell-CYbWnH52.js +4 -0
  167. package/dist/web/assets/shell-layout.svelte-CmEWk428.js +2 -0
  168. package/dist/web/assets/textarea-BEZ65po_.js +1 -0
  169. package/dist/web/assets/views-BumCSQ3W.js +2 -0
  170. package/dist/web/assets/{workbench-connection-gGGv4o8i.js → workbench-connection-CGHdORw3.js} +1 -1
  171. package/dist/web/assets/{workspace-Cc47dGjw.js → workspace-CW738NJG.js} +1 -1
  172. package/dist/web/assets/{workspace-actions.svelte-B3oum_9S.js → workspace-actions.svelte-DL9xv7lJ.js} +1 -1
  173. package/dist/web/assets/workspace-selectors.svelte-BRJvPEBh.js +105 -0
  174. package/dist/web/index.html +142 -83
  175. package/dist/web/sw.js +1 -1
  176. package/dist/worker.js +14 -14
  177. package/package.json +7 -7
  178. package/dist/guides/confluence/SKILL.md +0 -36
  179. package/dist/guides/jira/SKILL.md +0 -34
  180. package/dist/web/assets/ConversationListItem-Caz2KiJH.js +0 -3
  181. package/dist/web/assets/ConversationsWorkbenchPanel-CIfK_e3I.js +0 -1
  182. package/dist/web/assets/DiscoverCenterHost-Ep8EN9iJ.js +0 -1
  183. package/dist/web/assets/FilesWorkbenchPanel-CtXo7ywG.js +0 -12
  184. package/dist/web/assets/LaunchConfigurationNotice-CJjWkMhv.js +0 -1
  185. package/dist/web/assets/LogsCenterHost-BI1fSxFW.js +0 -1
  186. package/dist/web/assets/MobileFilesBody-BJMoaP9I.js +0 -1
  187. package/dist/web/assets/MobileLaunchOutputHost-vpltMcar.js +0 -1
  188. package/dist/web/assets/MobileLaunchesHost-CdDrKASg.js +0 -2
  189. package/dist/web/assets/MobileLogsHost-qK7N-C1y.js +0 -1
  190. package/dist/web/assets/MobileNoteEditorHost-Bg1N8o54.js +0 -1
  191. package/dist/web/assets/MobileSettingsPageScreen-DWMg4fDo.js +0 -1
  192. package/dist/web/assets/NotesWorkbenchPanel-Bf6rySTL.js +0 -1
  193. package/dist/web/assets/ProjectSettingsCenterHost-DHeb274m.js +0 -1
  194. package/dist/web/assets/PullRequestsWorkbenchPanel-ZvGbi1Cr.js +0 -1
  195. package/dist/web/assets/SettingsCenter-C_NLBsi6.js +0 -1
  196. package/dist/web/assets/SettingsCenterHost-jP8MULEj.js +0 -1
  197. package/dist/web/assets/adapters-DxJoo6Za.js +0 -1
  198. package/dist/web/assets/agent-profiles.svelte-D5YHPc90.js +0 -1
  199. package/dist/web/assets/api-eaGLre0q.js +0 -1
  200. package/dist/web/assets/center-tabs.svelte-JJGozG_H.js +0 -1
  201. package/dist/web/assets/channel-B503YLZR.js +0 -57
  202. package/dist/web/assets/chevron-left-DPEFG6UJ.js +0 -1
  203. package/dist/web/assets/circle-alert-Cp2l2jcj.js +0 -5
  204. package/dist/web/assets/clock-Db6f9HtS.js +0 -1
  205. package/dist/web/assets/code-BRQC0Tpn.js +0 -7
  206. package/dist/web/assets/dialog-DU4gXD1J.js +0 -1
  207. package/dist/web/assets/discover-B-aZ504j.js +0 -4
  208. package/dist/web/assets/dist-B_NFPhKV.js +0 -1
  209. package/dist/web/assets/file-tabs.svelte-DKtVVVCq.js +0 -2
  210. package/dist/web/assets/filesystem-ReGivxAC.js +0 -1
  211. package/dist/web/assets/index-DIQuyMVT.css +0 -1
  212. package/dist/web/assets/index-TZ1KAAsX.js +0 -48
  213. package/dist/web/assets/launches-DiAl56ED.js +0 -5
  214. package/dist/web/assets/launches.svelte-BVs1pAhl.js +0 -2
  215. package/dist/web/assets/notebook-pen-lVsLYSe4.js +0 -1
  216. package/dist/web/assets/notify.svelte-BKVBraTJ.js +0 -1
  217. package/dist/web/assets/pencil-BrlypebI.js +0 -1
  218. package/dist/web/assets/pr-view-loader.svelte-DcIwqDJV.js +0 -1
  219. package/dist/web/assets/progress-DBCSpVPn.js +0 -1
  220. package/dist/web/assets/scratch-notes-state.svelte-Br_WiMEp.js +0 -1
  221. package/dist/web/assets/search-input-zU4WCZiz.js +0 -1
  222. package/dist/web/assets/settings-2-8MSBUGAl.js +0 -1
  223. package/dist/web/assets/settings-9LBrw4Nv.js +0 -1
  224. package/dist/web/assets/settings-B7uXsflY.js +0 -1
  225. package/dist/web/assets/settings-actions.svelte-B8psX3cj.js +0 -1
  226. package/dist/web/assets/settings-page-controllers.svelte-D_ydJF8u.js +0 -30
  227. package/dist/web/assets/shell-DB5Db5-E.js +0 -4
  228. package/dist/web/assets/shell-layout.svelte-OoLFwzzJ.js +0 -2
  229. package/dist/web/assets/textarea-CeoFJ0-t.js +0 -1
  230. package/dist/web/assets/views-ByPCKDiZ.js +0 -2
  231. package/dist/web/assets/workspace-selectors.svelte-DLUlSgEE.js +0 -131
  232. /package/dist/{html-to-markdown.worker.js.LEGAL.txt → chunk-BUD4JHBZ.js.LEGAL.txt} +0 -0
  233. /package/dist/{chunk-3VZR3ZUY.js.LEGAL.txt → chunk-KEXKZKN4.js.LEGAL.txt} +0 -0
  234. /package/dist/{chunk-PST63OUS.js.LEGAL.txt → chunk-SDDKYMIP.js.LEGAL.txt} +0 -0
@@ -0,0 +1,4 @@
1
+ import{At as e,Bt as t,E as n,G as r,H as i,I as a,It as o,J as s,K as c,Lt as l,N as u,P as d,S as f,St as p,T as m,X as h,_t as g,bt as _,c as v,gt as y,ht as b,it as x,kt as S,l as C,lt as w,mt as T,q as E,rt as D,s as O,ut as k,vt as A,wt as j,z as M}from"./toast-state.svelte-C3jh5vEx.js";import{n as N,r as ee,t as P}from"./Icon-dUzqN8rt.js";import{C as te,_ as ne,a as re,b as ie,k as F,x as ae}from"./list-checks-zV9Dp7Cu.js";import{n as oe,t as se}from"./client-nxDuQL9v.js";import{dt as ce,ut as le}from"./channel-6wGoOwGx.js";import{M as I,s as ue}from"./settings-actions.svelte-BB6u_lQ0.js";import{n as de,t as fe}from"./progress-CKEsTSOk.js";import{t as pe}from"./check-B4-kvHtM.js";import{o as me}from"./settings-2-CWd8Y06n.js";import{Tn as he,_n as ge,gn as _e,t as L,vn as ve,zn as ye}from"./workspace-selectors.svelte-BRJvPEBh.js";import{h as be}from"./context-menu-DmQ505wM.js";import{t as xe}from"./scroll-area-6W2ec9gB.js";import{t as Se}from"./circle-check-BF53l_ev.js";import{a as Ce}from"./workbench-connection-CGHdORw3.js";import{t as we}from"./chevron-down-BRD6PX7T.js";import{c as Te,g as Ee,h as De,m as Oe,n as ke,r as Ae,u as je}from"./center-tabs.svelte-CyhCD_6b.js";import{t as Me}from"./workspace-state.svelte-DhP5cESH.js";import{a as Ne}from"./workbench-startup-state.svelte-CVFaDyK2.js";import{t as Pe}from"./external-link-CrXkg5Wk.js";import{t as Fe}from"./ellipsis-DwxJ9QwL.js";import{d as Ie,l as Le,n as Re,v as ze}from"./shell-layout.svelte-CmEWk428.js";import{i as Be}from"./workspace-actions.svelte-DL9xv7lJ.js";import"./workspace-CW738NJG.js";import{i as Ve,r as He}from"./maintenance-state.svelte-l9v7Hg3i.js";import"./settings-CXoAzSmm.js";var Ue=new Set([`$$slots`,`$$events`,`$$legacy`]);function We(e,t){let n=v(t,Ue),r=[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`}],[`path`,{d:`M3 9h18`}],[`path`,{d:`M9 21V9`}]];P(e,C({name:`panels-top-left`},()=>n,{get iconNode(){return r}}))}var Ge=A({latest:void 0}),Ke={get latest(){return Ge.latest}};async function qe(){return(await Ce(`status.latestRelease.get`,{})).result}var Je=He({intervalMs:36e5,immediate:!0,run:async()=>{Ge.latest=await se.fetchQuery({queryKey:oe.latestRelease,queryFn:qe,staleTime:0})},onError:e=>Ve(`warn`,`releases`,`Latest release check failed`,{error:e})});function Ye(){Je.stop(),Je.start()}function Xe(){Je.stop()}var Ze=/^v?(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?(?:\+[0-9A-Za-z.-]+)?$/;function Qe(e){return`v${e.replace(/^v/,``)}`}function $e(e,t){let n=et(e),r=et(t);return!n||!r?!1:tt(n,r)<0}function et(e){if(!e)return;let t=Ze.exec(e.trim());if(!t)return;let n=t[4]?.split(`.`)??[];if(!n.some(e=>e.length===0))return{major:Number(t[1]),minor:Number(t[2]),patch:Number(t[3]),prerelease:n}}function tt(e,t){for(let n of[`major`,`minor`,`patch`])if(e[n]!==t[n])return e[n]<t[n]?-1:1;if(e.prerelease.length===0&&t.prerelease.length===0)return 0;if(e.prerelease.length===0)return 1;if(t.prerelease.length===0)return-1;let n=Math.max(e.prerelease.length,t.prerelease.length);for(let r=0;r<n;r+=1){let n=e.prerelease[r],i=t.prerelease[r];if(n===void 0)return-1;if(i===void 0)return 1;if(n===i)continue;let a=/^\d+$/.test(n),o=/^\d+$/.test(i);return a&&o?Number(n)<Number(i)?-1:1:a===o?n<i?-1:1:a?-1:1}return 0}var nt=[{id:`quick-script-extensions`,version:1,releasedIn:`0.41.0`,featured:!0,artwork:`quick-script`,title:`Agents can script Jira, Confluence, the web, and files in one step`,summary:`Quick script runs a sandboxed script, and each call it makes is checked against your permissions.`,details:[`Quick script combines Jira, Confluence, web fetch and search, files, diagrams, images, and Excel, Word, PowerPoint, CSV, and ZIP libraries in one sandboxed step.`,`Each call the script makes is checked against your permission rules, and appears live in the tool card as it runs.`,`Extensions add these capabilities. Open Settings → Extensions to set up accounts and turn each one on or off.`,`The separate Jira and Confluence tools are gone. Quick script now handles both.`],action:{kind:`settings`,pageId:`extensions`,sectionId:`builtin`,label:`Open Extensions`}},{id:`read-only-external-reads`,version:1,releasedIn:`0.41.0`,title:`Read-only now allows external reads`,summary:`Web fetch and search, plus Jira and Confluence reads, work in Read-only. Writes are still denied.`,action:{kind:`settings`,pageId:`permission-rules`,sectionId:`rule-sets`,label:`Review permissions`}},{id:`rename-conversations`,version:1,releasedIn:`0.41.0`,title:`Rename conversations`,summary:`Choose Rename from a conversation's menu in the sidebar, an editor tab, or on mobile.`},{id:`copilot-usage`,version:1,releasedIn:`0.41.0`,title:`GitHub Copilot usage in the usage chip`,summary:`See your Copilot subscription quotas next to your other providers' limits.`},{id:`project-config-trust`,version:1,releasedIn:`0.41.0`,title:`See when project agent settings aren't trusted`,summary:`A warning with a one-click Trust action appears for an untrusted project agent.json.`},{id:`image-explanation-extension`,version:1,releasedIn:`0.41.0`,title:`Image explanation is now an extension`,summary:`Turn it on in Settings → Extensions to let the agent explain images. It is off by default.`,action:{kind:`settings`,pageId:`extensions`,sectionId:`builtin`,label:`Open Extensions`}},{id:`multi-repo-git`,version:1,releasedIn:`0.40.0`,featured:!0,artwork:`git-actions`,title:`Every repository and worktree, in one Git panel`,summary:`Browse a project's repositories and worktrees, spot what changed, and act on the selected branch.`,details:[`The Git panel lists the project's repositories and worktrees as a tree. Show All, Changed, or Attention, or filter by repository or branch name.`,`Pick a repository to see its Selected branch and Changes sections, with branch actions that know which worktree has the branch checked out.`,`The Pull requests tab now has search, so you can find a pull request without scrolling.`],action:{kind:`guide`,guideId:`workbench`,label:`Tour the Workbench`}},{id:`fork-conversation`,version:1,releasedIn:`0.40.0`,title:`Fork a conversation from an earlier point`,summary:`In History, choose Fork here to start a new conversation from any message. The original stays as is.`},{id:`files-panel-overhaul`,version:1,releasedIn:`0.40.0`,title:`A faster, more capable Files panel`,summary:`Edit files in place, jump to any file with Quick open, and search text across the project.`},{id:`device-pairing`,version:1,releasedIn:`0.40.0`,title:`Pair your phone and sign in with a passkey`,summary:`Pair a device with a QR code, then sign in with a passkey. Manage devices and sign-ins in Settings.`,action:{kind:`settings`,pageId:`devices`,sectionId:`devices`,label:`Manage devices`}},{id:`indigo-theme`,version:1,releasedIn:`0.39.1`,artwork:`themes`,title:`New dark theme: Indigo`,summary:`A deep purple dark theme joins Nerve, Melange, and Graphite in the Theme picker.`,action:{kind:`settings`,pageId:`workbench`,sectionId:`appearance`,label:`Choose a theme`}},{id:`repo-aware-suggestions`,version:1,releasedIn:`0.39.0`,featured:!0,artwork:`suggestions`,title:`The next step, one click away`,summary:`Suggestions above the composer follow your Git and PR state: commit, open a PR, push, or fix failing checks.`,details:[`Built-in Git and GitHub suggestions appear only when they apply, such as Commit changes, Create a PR, Update PR, Pull upstream, and Fix failing checks.`,`Each one sends a plain prompt that ends with the last known repository state, so the agent starts from facts instead of guesses.`,`Click to send, or to queue while the agent is busy. Right-click to edit the prompt in the composer first.`,`Review my changes, Clean up merged branch, and Continue are opt-in. Turn them on in Settings, or add your own suggestions.`],action:{kind:`settings`,pageId:`suggestions`,sectionId:`suggestions`,label:`Manage suggestions`}},{id:`engineering-docs-skill`,version:1,releasedIn:`0.39.0`,artwork:`engineering-docs`,title:`Built-in skill: engineering docs`,summary:`Let agents write architecture docs and proposals, record decisions, and check your docs for drift.`,action:{kind:`settings`,pageId:`skills`,sectionId:`skills`,label:`Turn on in Skills`}},{id:`native-phone-shell`,version:1,releasedIn:`0.39.0`,artwork:`mobile`,title:`Nerve feels at home on your phone`,summary:`A conversation hub with Chat, Changes, Files, and PR, plus swipe actions and a docked composer.`},{id:`windows-macos-fixes`,version:1,releasedIn:`0.38.1`,title:`Steadier on Windows and macOS`,summary:`Windows upgrades no longer fail on locked files, and the macOS app picks up your login shell PATH.`},{id:`live-pull-requests`,version:1,releasedIn:`0.38.0`,featured:!0,artwork:`pull-requests`,title:`Pull requests that stay live`,summary:`Checks, reviews, and merge state update on their own, with linked conversations in the details pane.`,details:[`Open a pull request to see a header that shows its merge state, plus activity, commits grouped by day, live checks, and unified file diffs.`,`Linked conversations list the work in Nerve that mentions the pull request, so you can jump back to the discussion behind a change.`,`Nerve refreshes pull requests after pushes, merges, and when an agent opens one. Filter the list by All, Mine, or To review.`],action:{kind:`guide`,guideId:`workbench`,label:`Tour the Workbench`}},{id:`smart-repo-actions`,version:1,releasedIn:`0.38.0`,artwork:`git-actions`,title:`Repository rows that know the next step`,summary:`Publish a new branch, pull, push, or sync, switch back to base, or open stashes right from the repo row.`},{id:`away-notifications`,version:1,releasedIn:`0.38.0`,artwork:`notifications`,title:`Notifications that know when you're away`,summary:`Nothing interrupts a conversation you're watching. Toasts and system pop-ups wait until you're elsewhere.`,action:{kind:`settings`,pageId:`notifications`,sectionId:`general`,label:`Notification settings`}},{id:`folder-browser`,version:1,releasedIn:`0.38.0`,artwork:`projects`,title:`Open any folder, or just drop it in`,summary:`Browse to a project with the new folder browser, or drag a folder onto the title bar to open it.`},{id:`quote-selection`,version:1,releasedIn:`0.38.0`,artwork:`quote`,title:`Quote exactly what you need`,summary:`Select text in a reply, then Quote it into the composer. Lists, code, and tables keep their formatting.`},{id:`new-themes`,version:1,releasedIn:`0.38.0`,artwork:`themes`,title:`New themes: Graphite and Melange`,summary:`Pick Nerve, Melange, or Graphite in one Theme picker. Each browser or window remembers its own.`,action:{kind:`settings`,pageId:`workbench`,sectionId:`appearance`,label:`Choose a theme`}},{id:`profiles-replace-modes`,version:1,releasedIn:`0.38.0`,artwork:`profiles`,title:`Agent profiles replace modes`,summary:`Pick Coding, Planning, or your own profile, each with its own instructions, model, and permissions.`,action:{kind:`settings`,pageId:`agents`,sectionId:`agents`,label:`Manage profiles`}},{id:`connected-workbench`,version:1,releasedIn:`0.37.0`,featured:!0,artwork:`workbench`,title:`From prompt to pull request, without losing your place`,summary:`Refreshed Git and PR panels, header Activity, clearer questions, and steadier tool updates.`,details:[`Git and Pull requests share one repository list, with the current branch's PR beside your changes.`,`The header bell gathers Activity: what needs you first, then running and finished work.`,`One composer toolbar holds attachments, profile, model, permissions, and voice.`],action:{kind:`guide`,guideId:`workbench`,label:`Tour the Workbench`}}],rt=[{id:`user-controlled-planning`,version:3,title:`You choose which profile runs`,summary:`Press Shift+Tab to cycle profiles, type /plan for Planning, or /profile followed by a name. The agent can present a plan for review but cannot switch profiles for you.`},{id:`agent-profiles`,version:2,title:`Give teammates a reusable profile`,summary:`Set a profile's instructions, model, permissions, tools, and skills in Settings → Sub-Agents. New teammates use it; follow-ups keep the teammate's existing context.`,action:{kind:`settings`,pageId:`sub-agents`,sectionId:`sub-agents`,label:`Configure Sub-Agents`}},{id:`subagent-assignment-context`,version:2,title:`Delegate context, not just a task name`,summary:`Sub-Agents cannot see the lead's conversation. Include relevant paths, findings, and constraints, and give each teammate its own files to edit, since they share your worktree.`},{id:`composer-references`,version:1,title:`Point the agent at exactly what you mean`,summary:`Type @ in the composer to reference a file, pull request, issue, skill, tool, agent, or launch. A bare @ lists recent items.`},{id:`project-skills`,version:1,title:`Teach Nerve your project conventions`,summary:`Skills add reusable instructions that agents pick up on later runs.`,action:{kind:`settings`,pageId:`skills`,sectionId:`skills`,label:`Manage skills`}},{id:`permission-defaults`,version:3,title:`Set permissions once, not per prompt`,summary:`Choose a default permission rule set for new conversations, then add user or project overrides for tools that need a different decision.`,action:{kind:`settings`,pageId:`permission-rules`,sectionId:`rule-sets`,label:`Review permissions`}}],R=`next`,it={"must-do":0,"highly-recommended":1,optional:2};function at(e,t){return e.map(e=>({...e,unread:(t[e.id]??0)<e.version}))}function ot(e){let t=e.guides.filter(e=>e.available),n=t.filter(e=>e.category===`setup`),r=n.filter(e=>!e.completed).sort((e,t)=>it[e.priority]-it[t.priority]),i=n.filter(e=>e.completed);return{news:st(e.news),setup:{leading:r.some(e=>e.priority===`must-do`),pending:r,completed:i,completedCount:i.length,totalCount:n.length},walkthroughs:t.filter(e=>e.category!==`setup`),tips:e.tips}}function st(e){let t=e.filter(e=>e.releasedIn!==R),n=[...new Set(t.map(e=>ct(e.releasedIn)))].sort(lt).slice(0,2),r=n[0]??`next`,i=e=>e.releasedIn===`next`?r:ct(e.releasedIn),a=new Set([r,...n]),o,s=[...a].map(t=>{let n=e.filter(e=>i(e)===t).sort((e,t)=>Number(t.releasedIn===R)-Number(e.releasedIn===R));t===r&&(o=n.find(e=>e.featured));let a=t===r&&o?void 0:n.find(e=>e.featured);return{release:t,label:ft(t),featured:a,entries:n.filter(e=>e!==o&&e!==a)}});return{spotlight:o,releases:s.filter(e=>e.featured||e.entries.length>0),archive:e.filter(e=>!a.has(i(e))),unreadCount:ut(e)}}function ct(e){return e===`next`?e:V(e).split(`.`).slice(0,2).join(`.`)}function lt(e,t){let[n=0,r=0]=e.split(`.`).map(Number),[i=0,a=0]=t.split(`.`).map(Number);return i-n||a-r}function ut(e){return e.filter(e=>e.unread).length}function dt(e,t){if(!t)return 0;let n=V(t);return e.filter(e=>e.unread&&e.releasedIn===n).length}function z(e){return e===`next`?`Next release`:e}function ft(e){return e===`next`?`New`:`New in ${e}`}function pt(e){return e.unreadNewsCount>0?{kind:`count`,value:e.unreadNewsCount}:e.pendingSetupCount>0?{kind:`dot`}:{kind:`none`}}var B={open:!1};function mt(e){if(!e.ready||e.alreadyConsidered||!e.autoOpen.enabled)return B;if(e.firstRun)return{open:!0,reason:`first-run`};if(!e.appVersion||e.unreadForCurrentVersion===0)return B;let t=V(e.appVersion);return(e.autoOpen.version===t?e.autoOpen.count:0)>=2?B:{open:!0,reason:`release`}}function ht(e,t){let n=t?V(t):void 0,r=e.version===n?e.count+1:1;return{...e,version:n,count:r}}function gt(e,t){let n=t?V(t):e.version;return e.version===n&&e.count>=2?e:{...e,version:n,count:2}}function V(e){return e.trim().replace(/^v/,``)}var _t=`nerve.discover.state`,vt=new Set(nt.map(e=>e.id)),H={seen:{},autoOpen:{enabled:!0,count:0}};function yt(){try{return typeof localStorage>`u`?void 0:localStorage}catch{return}}function bt(e){return Number.isSafeInteger(e)&&Number(e)>=0}function xt(e){if(!e||typeof e!=`object`||Array.isArray(e))return{};let t={};for(let[n,r]of Object.entries(e))vt.has(n)&&bt(r)&&(t[n]=r);return t}function St(e){if(!e||typeof e!=`object`||Array.isArray(e))return{...H.autoOpen};let t=e;return{enabled:t.enabled!==!1,version:typeof t.version==`string`&&t.version.length>0?t.version:void 0,count:bt(t.count)?t.count:0}}function Ct(e=yt()){if(e)try{let t=e.getItem(_t);if(!t)return;let n=JSON.parse(t);return n.schemaVersion===1?{seen:xt(n.seen),autoOpen:St(n.autoOpen)}:void 0}catch{return}}function wt(e,t=yt()){if(t)try{let n={schemaVersion:1,seen:xt(e.seen),autoOpen:St(e.autoOpen)};t.setItem(_t,JSON.stringify(n))}catch{}}function Tt(e){let t=e;for(let n of nt)(t[n.id]??0)>=n.version||(t===e&&(t={...e}),t[n.id]=n.version);return t}var U={kind:`discover`,id:`discover`};function Et(){ke(U),Ee(U)}function Dt(){ke(U),Ee(U)}function Ot(){let e=Me.activeCenterTab?.kind===`discover`,t=Te(U);je(U),e&&De(t)}var kt=E(`<!> Open authentication`,1),At=E(`<!> <!>`,1),jt=E(`<div class="audio-auth-body svelte-18nx27o"><div class="audio-auth-summary svelte-18nx27o"><span class="audio-auth-icon rounded-full svelte-18nx27o" aria-hidden="true"><!></span> <div><h3 class="svelte-18nx27o">Audio input is not configured yet</h3> <p class="svelte-18nx27o">Nerve records from your microphone locally, then sends the captured
2
+ audio to ChatGPT for transcription through the OpenAI Codex OAuth
3
+ provider.</p></div></div> <div class="audio-auth-detail svelte-18nx27o"><!> <p class="svelte-18nx27o">A free or paid ChatGPT account can be used. It just needs to be
4
+ connected so the orchestrator can request transcription securely.</p></div> <p class="audio-auth-path svelte-18nx27o">To enable it, open <strong class="svelte-18nx27o">Authentication</strong> → <strong class="svelte-18nx27o">Subscriptions</strong>, then connect <strong class="svelte-18nx27o">OpenAI Codex</strong>.</p></div>`);function Mt(t,n){e(n,!0);let i=O(n,`open`,15,!1);function a(){i(!1)}function s(){a(),ue(`providers`,{section:`subscriptions`})}me(t,{title:`Connect ChatGPT to use voice input`,description:`Voice input needs a ChatGPT OAuth connection before Nerve can transcribe recordings.`,size:`sm`,get open(){return i()},set open(e){i(e)},footer:e=>{var t=At(),n=b(t);N(n,{variant:`ghost`,onclick:a,children:(e,t)=>{o();var n=h(`Close`);r(e,n)},$$slots:{default:!0}});var i=g(n,2);N(i,{onclick:s,children:(e,t)=>{var n=kt(),i=b(n);de(i,{size:15,strokeWidth:2.1}),o(),r(e,n)},$$slots:{default:!0}}),r(e,t)},children:(e,t)=>{var n=jt(),i=T(n),a=T(i),s=T(a);he(s,{size:18,strokeWidth:2.2}),l(a),o(2),l(i);var c=g(i,2),u=T(c);ve(u,{size:16,strokeWidth:2.1,"aria-hidden":`true`}),o(2),l(c),o(2),l(n),r(e,n)},$$slots:{footer:!0,default:!0}}),S()}function Nt(e){return!!e?.some(e=>e.provider===`openai-codex`&&e.configured&&e.credentialType===`oauth`)}var Pt={get settingsDraft(){return I.settingsDraft},get models(){return I.models},get authProviders(){return I.authProviders}},Ft={get configured(){return Nt(Pt.authProviders)}},W=A({editEntry:void 0,focusToken:0,escapeToken:0,micToken:0,historyRequest:{token:0,mode:`toggle`},messageStep:{token:0,direction:1}});function It(){W.focusToken+=1}function Lt(){W.escapeToken+=1}function Rt(){W.micToken+=1}function zt(e){W.historyRequest={token:W.historyRequest.token+1,mode:e}}function Bt(){zt(`open`)}function Vt(){zt(`close`)}function Ht(){zt(`toggle`)}function Ut(e){W.messageStep={token:W.messageStep.token+1,direction:e}}var G=[{id:`open-project`,version:1,title:`Open a project`,description:`Choose a project folder so Nerve can keep conversations, files, Git changes, and agent work together.`,category:`setup`,priority:`must-do`,lifecycle:`available`,actionLabel:`Start guide`,run:{kind:`setup-coach`,area:`open-project`},completionSignal:`project-open`},{id:`provider`,version:1,title:`Connect a model provider`,description:`Authenticate a subscription, API key, or compatible custom provider before prompting an agent.`,category:`setup`,priority:`must-do`,lifecycle:`available`,actionLabel:`Start guide`,run:{kind:`setup-coach`,area:`provider`},completionSignal:`provider-ready`},{id:`voice`,version:1,title:`Enable voice input`,description:`Connect an OpenAI Codex subscription to dictate prompts from the composer.`,category:`setup`,priority:`highly-recommended`,lifecycle:`available`,actionLabel:`Start guide`,run:{kind:`setup-coach`,area:`voice`},completionSignal:`voice-ready`},{id:`scoped-models`,version:1,title:`Configure scoped models`,description:`Choose which authenticated models appear in the composer so model selection stays focused.`,category:`setup`,priority:`highly-recommended`,lifecycle:`available`,actionLabel:`Start guide`,run:{kind:`setup-coach`,area:`scoped-models`}},{id:`agent-defaults`,version:1,title:`Configure agent defaults`,description:`Choose the profile, permissions, model, and thinking defaults used by new agents.`,category:`setup`,priority:`highly-recommended`,lifecycle:`available`,actionLabel:`Start guide`,run:{kind:`setup-coach`,area:`agent-defaults`}},{id:`workbench`,version:2,title:`Work through the Workbench`,description:`Tour conversations, capabilities, profile-based sub-agents, background commands, the activity island, launch configs, Git, and settings.`,category:`walkthrough`,priority:`highly-recommended`,lifecycle:`available`,actionLabel:`Start tour`,run:{kind:`workbench-tour`}}];function Wt(e,t,n){let r=e.completionSignal?n[e.completionSignal]:void 0;return{...e,available:e.lifecycle!==`upcoming`,ready:r,completed:(t[e.id]??0)>=e.version||r===!0}}function Gt(e,t,n){return e.map(e=>Wt(e,t,n))}function Kt(e,t){return e.filter(e=>e.available&&e.ready===!0&&(t[e.id]??0)<e.version).map(e=>e.id)}var qt=`nerve.guides.completion`,Jt=`nerve.product-tour.completed-version`,Yt=new Set(G.map(e=>e.id));function Xt(){try{return typeof localStorage>`u`?void 0:localStorage}catch{return}}function Zt(e){return Number.isSafeInteger(e)&&Number(e)>=0}function Qt(e){if(!e||typeof e!=`object`||Array.isArray(e))return{};let t={};for(let[n,r]of Object.entries(e))Yt.has(n)&&Zt(r)&&(t[n]=r);return t}function $t(e=Xt()){if(!e)return{};try{let t=e.getItem(qt);if(t){let e=JSON.parse(t);return e.schemaVersion===1?Qt(e.guides):{}}let n=e.getItem(Jt);if(!n||!/^(0|[1-9]\d*)$/.test(n))return{};let r=Number(n);return Number.isSafeInteger(r)?{workbench:r}:{}}catch{return{}}}function en(e,t=Xt()){if(t)try{let n={schemaVersion:1,guides:Qt(e)};t.setItem(qt,JSON.stringify(n))}catch{}}function tn(e,t,n){return!Zt(n)||(e[t]??0)>=n?e:{...e,[t]:n}}var nn=[{id:`conversations`,introducedIn:1,title:`Your project conversations`,description:`The Conversations panel keeps every saved conversation for the active project together. Return here to reopen previous work or start something new.`,targetId:`conversations-tab`},{id:`panel-new-conversation`,introducedIn:1,title:`Start from the Conversations panel`,description:`Use New chat in the Conversations panel header to create a conversation in the active project.`,targetId:`panel-new-conversation`},{id:`tab-new-conversation`,introducedIn:1,title:`Start from the editor tabs`,description:`The plus action beside the center editor tabs creates the same new conversation without leaving your current workspace.`,targetId:`tab-new-conversation`},{id:`composer`,introducedIn:1,title:`Write the first prompt`,description:`The tour has opened a conversation. Type a prompt here, drop files into the composer, or paste images to begin.`,targetId:`composer`},{id:`permission`,introducedIn:1,title:`Choose a permission rule set`,description:`Permission controls whether the agent can only read, asks before tool calls, or works autonomously. You can change it before sending a prompt.`,targetId:`composer-permission`},{id:`profile`,introducedIn:2,title:`Choose an agent profile`,description:`You choose the profile here, with Shift+Tab, or by typing /plan or /profile followed by a name; the agent cannot switch profiles. Coding implements changes. Planning inspects the project and presents a written plan for your review, then approval returns to the default profile.`,targetId:`composer-profile`},{id:`context`,introducedIn:1,title:`Watch context usage`,description:`Open context details to inspect the active model window and compact a long conversation when needed.`,targetId:`composer-context`},{id:`model`,introducedIn:1,title:`Pick the model and thinking level`,description:`Choose an available scoped model and its thinking level for this conversation before the run starts.`,targetId:`composer-model`},{id:`send`,introducedIn:1,title:`Send or dictate your prompt`,description:`Use voice input to dictate when it is configured, then send the prompt to start the agent run.`,targetId:`composer-send-actions`},{id:`capabilities`,introducedIn:2,title:`Choose capabilities and Sub-Agents`,description:`Tools, Skills, and Sub-Agents beside the composer each open their own controls; changes apply to the next run. Turn on Delegation to hand off asynchronous work to teammates using profiles configured in Settings → Sub-Agents. Teammates share your worktree but cannot see the lead's conversation, so include context and clear editing boundaries in assignments.`,targetId:`composer-tools`,fallback:`Open a conversation to find Tools, Skills, and Sub-Agents beside the composer, or configure profiles in Settings → Sub-Agents.`},{id:`activity`,introducedIn:2,title:`Follow agents and background commands`,description:`When there is activity, the transcript activity island beside the composer offers Agents and Commands. Open a teammate's transcript or a background command's output, use Back to lead to return, or Jump to latest to catch up. Bash can run in the background and reports its exit automatically; async_bash lets the agent read logs or stop a command.`},{id:`history`,introducedIn:1,title:`Navigate and branch conversations`,description:`History lists your messages and the branches between them, and updates while the agent works. Rewind to an earlier point or edit a message without losing the original path. Open it from the History button in the composer.`,targetId:`conversation-history`},{id:`git`,introducedIn:1,title:`Review Git changes`,description:`Inspect the working tree, review file diffs, and use branch, fetch, and sync actions from the Git Changes panel.`,targetId:`git-workflow`,fallback:`Open a Git project to review local changes.`},{id:`pull-requests`,introducedIn:1,title:`Manage pull requests`,description:`Open GitHub pull requests to inspect checks, commits, changed files, linked conversations, and merge readiness.`,targetId:`pull-request-workflow`,fallback:`Open a GitHub project to use pull request workflows.`},{id:`launches`,introducedIn:2,title:`Run saved project commands`,description:`Save reusable project commands such as dev servers as launch configs, with a command, optional working directory and port, and a single or concurrent run policy. Start, restart, stop, and inspect output here, and use Refresh to reload definitions edited outside Nerve. The agent can run existing configs but cannot create or edit them.`,targetId:`launches-panel`},{id:`files`,introducedIn:1,title:`Browse project files`,description:`Use the Files panel to navigate the active project tree, inspect Git status, and open files in the center workspace.`,targetId:`files-panel`},{id:`scratch-notes`,introducedIn:1,title:`Keep scratch notes`,description:`Scratch Notes keeps lightweight project notes close to the conversation without mixing them into agent history.`,targetId:`scratch-notes-panel`},{id:`settings`,introducedIn:1,title:`Customize Nerve`,description:`Settings is where you connect model providers and sign in, choose themes and notifications, and set model, profile, permission, tool, and skill defaults.`,targetId:`settings`},{id:`status`,introducedIn:1,title:`Usage and live status`,description:`The status bar tracks subscription usage, background launches, pending approvals, Git state, connection health, layout controls, and zoom.`,targetId:`status-controls`},{id:`help`,introducedIn:1,title:`Return to Nerve guides`,description:`Use Help in the titlebar whenever you want to reopen the Guides catalog or replay a completed guide.`,targetId:`help`},{id:`finish`,introducedIn:1,title:`You are ready to explore`,description:`Your project and Workbench are ready. Return to Nerve guides whenever you want a refresher or new guidance appears.`}];function rn(e,t,n){return e.filter(e=>n||e.introducedIn>t)}function an(e,t,n){return t<=0?0:Math.min(t-1,Math.max(0,e+n))}function on(e){let t=e.gap??12,n=e.margin??12,r=Math.max(n,e.viewportWidth-e.calloutWidth-n),i=Math.min(r,Math.max(n,(e.viewportWidth-e.calloutWidth)/2));if(e.centered)return{top:Math.max(n,(e.viewportHeight-e.calloutHeight)/2),left:i,side:`center`};if(e.compact||!e.target)return{top:Math.max(n,e.viewportHeight-e.calloutHeight-n),left:i,side:`center`};let a=e.target.left+e.target.width/2,o=Math.min(r,Math.max(n,a-e.calloutWidth/2));if(e.target.bottom+t+e.calloutHeight<=e.viewportHeight-n)return{top:e.target.bottom+t,left:o,side:`bottom`};if(e.target.top-t-e.calloutHeight>=n)return{top:e.target.top-t-e.calloutHeight,left:o,side:`top`};let s=Math.max(n,e.viewportHeight-e.calloutHeight-n),c=e.target.top+e.target.height/2,l=Math.min(s,Math.max(n,c-e.calloutHeight/2));return e.target.right+t+e.calloutWidth<=e.viewportWidth-n?{top:l,left:e.target.right+t,side:`right`}:e.target.left-t-e.calloutWidth>=n?{top:l,left:e.target.left-t-e.calloutWidth,side:`left`}:{top:Math.max(n,(e.viewportHeight-e.calloutHeight)/2),left:i,side:`center`}}var sn={"open-project":[{id:`open-project-switcher`,title:`Open the project switcher`,description:`Use the project control in the titlebar to open or switch projects.`,targetId:`guide-project-open`,fallback:`Choose the project icon in the titlebar.`,advanceByClickingTarget:!0},{id:`open-project-browse`,title:`Open a project folder`,description:`Choose Open to find and open a project folder from your computer.`,targetId:`guide-project-browse`,fallback:`The project browser is already open when there are no recent projects.`}],provider:[{id:`provider-subscription`,title:`Connect a subscription`,description:`Use Connections to authenticate a supported subscription provider.`,targetId:`setup-auth-connect-subscription`,fallback:`Open Connections → Subscriptions and choose Connect subscription.`,preparation:{kind:`settings`,pageId:`providers`,sectionId:`subscriptions`}},{id:`provider-api-key`,title:`Add an API key`,description:`API keys are another direct way to connect a model provider. Compatible local or self-hosted endpoints can instead be added from Custom providers.`,targetId:`setup-auth-add-api-key`,fallback:`Open Connections → API keys and choose Add API key. Custom providers remain available separately for compatible local or self-hosted endpoints.`,preparation:{kind:`settings`,pageId:`providers`,sectionId:`api-keys`}}],voice:[{id:`voice-connect`,title:`Connect a subscription`,description:`Voice input uses an OpenAI Codex/ChatGPT subscription connection.`,targetId:`setup-auth-connect-subscription`,fallback:`Open Connections → Subscriptions and choose Connect subscription.`,preparation:{kind:`settings`,pageId:`providers`,sectionId:`subscriptions`},advanceByClickingTarget:!0},{id:`voice-codex-choice`,title:`Choose OpenAI Codex`,description:`Select OpenAI Codex and complete the ChatGPT subscription sign-in. The composer microphone becomes available after connection.`,targetId:`setup-auth-openai-codex-choice`,fallback:`In the provider dialog, select OpenAI Codex. If it is already connected, close the dialog to see the connected row.`,preparation:{kind:`settings`,pageId:`providers`,sectionId:`subscriptions`}}],"scoped-models":[{id:`scoped-models-view`,title:`Show all models`,description:`Choose All to browse every authenticated model, not only the ones already in scope.`,targetId:`setup-scoped-models-view`,fallback:`Open Settings → Models and choose All above the model list.`,preparation:{kind:`settings`,pageId:`models`,sectionId:`models`},advanceByClickingTarget:!0},{id:`scoped-models-catalog`,title:`Search and check models`,description:`Search by model, provider, or capability, and check the models you want in scope (a provider's checkbox adds all of its shown models). Changes save immediately; leaving everything unchecked keeps all models available.`,targetId:`setup-scoped-models-catalog`,fallback:`In Settings → Models, check the models the composer should offer.`,preparation:{kind:`settings`,pageId:`models`,sectionId:`models`}},{id:`scoped-models-default`,title:`Star the default`,description:`Star a scoped model to make it the default for new agents and pick its reasoning level.`,targetId:`setup-scoped-models-default`,fallback:`In Settings → Models, use the star on a scoped model to make it the default.`,preparation:{kind:`settings`,pageId:`models`,sectionId:`models`}}],"agent-defaults":[{id:`agent-default-permission`,title:`Choose default permissions`,description:`Set the approval level new agents use by default.`,targetId:`setup-agent-default-permission`,fallback:`Open Settings → General and choose a default under Model and permissions.`,preparation:{kind:`settings`,pageId:`general`,sectionId:`model`}},{id:`agent-profiles`,title:`Review agent profiles`,description:`Choose the model, permissions and instructions the Coding, Planning, Explore and Developer profiles use.`,targetId:`setup-agent-profiles`,fallback:`Open Settings → Agents and edit a built-in profile.`,preparation:{kind:`settings`,pageId:`agents`,sectionId:`agents`}}]};function cn(e,t){let n=[...sn[e]];return e!==`voice`||!t.codexConnected?n:[{id:`voice-connected`,title:`OpenAI Codex is connected`,description:`Your ChatGPT subscription is ready, so the composer microphone is available for voice input.`,targetId:`setup-auth-openai-codex-connected`,fallback:`Open Settings → Providers → Subscriptions to review the connected OpenAI Codex provider.`,preparation:{kind:`settings`,pageId:`providers`,sectionId:`subscriptions`}}]}function ln(e,t,n){return t<=0?0:Math.min(t-1,Math.max(0,e+n))}function un(e){return e===`conversation`||e===`pending-conversation`}var K=A({mode:`closed`,preparing:!1,targetAvailable:!1,runSteps:[],stepIndex:0,activeGuideId:void 0,setupArea:void 0,setupSteps:[],setupStepIndex:0,completionVersions:$t()}),dn,q=0;function fn(){return I.authProviders.some(e=>e.configured)}function pn(){return Nt(I.authProviders)}function mn(){return{"project-open":!!L.activeProject,"provider-ready":fn(),"voice-ready":pn()}}function hn(){return Gt(G,K.completionVersions,mn())}function gn(e){K.completionVersions=e,en(e)}function _n(e){let t=G.find(t=>t.id===e);if(!t||t.lifecycle===`upcoming`)return;let n=tn(K.completionVersions,e,t.version);n!==K.completionVersions&&gn(n)}function vn(){let e=hn(),t=K.completionVersions;for(let n of Kt(e,t)){let e=G.find(e=>e.id===n);e&&(t=tn(t,n,e.version))}t!==K.completionVersions&&gn(t)}function yn(){return{shell:Re(),tabs:Ae(),settingsPageId:I.activePageId,settingsSectionId:I.activeSectionId,historyOpen:!!document.querySelector(`[data-tour-id="conversation-history"]`)}}function bn(){let e=dn;dn=void 0,e&&(Le(e.shell),Oe(e.tabs),I.activePageId=e.settingsPageId,I.activeSectionId=e.settingsSectionId,e.historyOpen||Vt())}function J(e){if(e)return[...document.querySelectorAll(`[data-tour-id="${e}"]`)].find(e=>{let t=e.getBoundingClientRect();return t.width>0&&t.height>0})}function xn(){return K.runSteps[K.stepIndex]}function Sn(){return K.setupSteps[K.setupStepIndex]}var Cn={conversations:`conversations`,"panel-new-conversation":`conversations`,git:`git`,"pull-requests":`pull-requests`,launches:`launches`,files:`files`,"scratch-notes":`notes`};async function Y(){await x(),await new Promise(e=>requestAnimationFrame(()=>e()))}async function wn(e){if(!e)return;let t=[];for(let n=e;n;n=n.parentElement)for(let e of n.getAnimations())[`pending`,`running`].includes(e.playState)&&t.push(e);t.length!==0&&(await Promise.allSettled(t.map(e=>e.finished)),await Y())}async function Tn(e){let t=++q;K.preparing=!0,K.targetAvailable=!1,e.id!==`history`&&Vt();let n=Cn[e.id];n?Ie(n,ze.isCompact):e.id===`composer`?un(L.activeCenterTab?.kind)||(Be(),await x()):e.id===`history`&&L.activeConversation&&Bt(),await Y(),await wn(J(e.targetId)),t===q&&K.mode===`tour`&&(K.targetAvailable=!!J(e.targetId),K.preparing=!1)}async function En(e,t){let n=performance.now()+t;do{let t=J(e);if(t)return t;await new Promise(e=>requestAnimationFrame(()=>e()))}while(performance.now()<n)}async function Dn(e,t=!1){let n=++q;K.preparing=!0,K.targetAvailable=!1;let r=J(e.targetId),i=e.preparation;t&&!r&&i?.kind===`settings`&&await ue(i.pageId,{...i.itemId?{item:i.itemId}:{},section:i.sectionId}),await Y(),r=await En(e.targetId,t?3e3:150),n===q&&[`preparing-coach`,`coach`].includes(K.mode)&&(r?.scrollIntoView({behavior:`instant`,block:`nearest`,inline:`nearest`}),await Y(),await wn(r),n===q&&[`preparing-coach`,`coach`].includes(K.mode)&&(K.mode=`coach`,K.targetAvailable=!!J(e.targetId),K.preparing=!1))}function On(e,t){K.activeGuideId=e,K.setupArea=t,K.setupSteps=cn(t,{codexConnected:pn()}),K.setupStepIndex=0,K.mode=`preparing-coach`;let n=Sn();n&&Dn(n,!0)}async function kn(e){let t=Sn(),n=ln(K.setupStepIndex,K.setupSteps.length,e);if(n===K.setupStepIndex)return;let r=K.setupSteps[n];e===1&&t?.advanceByClickingTarget&&r&&!J(r.targetId)&&(K.preparing=!0,J(t.targetId)?.click(),await En(r.targetId,3e3)),K.setupStepIndex=n,r&&await Dn(r)}function An(){K.mode=`closed`,K.activeGuideId===`open-project`&&Me.projectPickerOpen||Et()}function jn(){q+=1,K.preparing=!1,K.mode===`tour`&&bn(),An()}function Mn(){let e=K.activeGuideId;e&&_n(e),q+=1,K.preparing=!1,K.mode===`tour`&&bn(),An()}function Nn(){let e=G.find(e=>e.id===`workbench`);if(!e)return;dn??=yn();let t=K.completionVersions.workbench??0;K.runSteps=rn(nn,t,t>=e.version).filter(e=>e.id!==`history`||L.activeConversation),K.runSteps.length===0&&(K.runSteps=[...nn]),K.activeGuideId=`workbench`,K.stepIndex=0,K.mode=`tour`;let n=xn();n&&Tn(n)}function Pn(e){let t=hn().find(t=>t.id===e);t&&t.available&&(t.run?t.run.kind===`setup-coach`?On(t.id,t.run.area):L.activeProject?Nn():Pn(`open-project`):_n(t.id))}function Fn(e){let t=an(K.stepIndex,K.runSteps.length,e);if(t===K.stepIndex)return;K.stepIndex=t;let n=xn();n&&Tn(n)}var In=Ct(),X=A({consideredGeneration:void 0,firstRun:In===void 0,progress:In??{seen:{...H.seen},autoOpen:{...H.autoOpen}}});function Z(){return Me.status?.version}function Ln(e){X.progress=e,X.firstRun=!1,wt(e)}function Rn(){return at(nt,X.progress.seen)}function zn(){return ot({guides:hn(),news:Rn(),tips:rt})}function Bn(){let e=zn();return{sections:e,currentVersion:Z(),latestVersion:Ke.latest?.version,latestReleaseUrl:Ke.latest?.releaseUrl,autoOpenEnabled:X.progress.autoOpen.enabled,unreadCount:e.news.unreadCount}}function Vn(){return pt({unreadNewsCount:ut(Rn()),pendingSetupCount:zn().setup.pending.length})}function Hn(){let e=Tt(X.progress.seen),t=gt(X.progress.autoOpen,Z());(e!==X.progress.seen||t!==X.progress.autoOpen||X.firstRun)&&Ln({seen:e,autoOpen:t})}function Un(e){X.progress.autoOpen.enabled!==e&&Ln({seen:X.progress.seen,autoOpen:{...X.progress.autoOpen,enabled:e}})}function Wn(){if(!Ne.progressiveActive||!I.settingsDraft)return;vn();let e=Ne.generation,t=mt({ready:!0,alreadyConsidered:X.consideredGeneration===e,firstRun:X.firstRun,appVersion:Z(),unreadForCurrentVersion:dt(Rn(),Z()),autoOpen:X.progress.autoOpen});X.consideredGeneration=e,t.open&&(Ln({seen:X.progress.seen,autoOpen:ht(X.progress.autoOpen,Z())}),Et())}function Gn(t,n){e(n,!0),k(()=>{ze.isPhone||Wn()}),S()}function Q(t,n){e(n,!0);let a=O(n,`variant`,3,`outline`);var s=c(),l=b(s),u=e=>{N(e,{get variant(){return a()},size:`sm`,get href(){return n.action.href},target:`_blank`,rel:`noreferrer`,children:(e,t)=>{o();var a=h();w(()=>i(a,n.action.label)),r(e,a)},$$slots:{default:!0}})},d=e=>{N(e,{get variant(){return a()},size:`sm`,onclick:()=>n.onAction(n.action),children:(e,t)=>{o();var a=h();w(()=>i(a,n.action.label)),r(e,a)},$$slots:{default:!0}})};M(l,e=>{n.action.kind===`external`?e(u):e(d,-1)}),r(t,s),S()}var Kn=s(`<svg class="size-full" viewBox="0 0 240 120" fill="none"><circle cx="206" cy="30" r="34" class="fill-success-subtle"></circle><circle cx="28" cy="100" r="9" class="fill-primary-subtle"></circle><rect x="22" y="12" width="196" height="96" rx="7" class="fill-card stroke-border" stroke-width="2"></rect><rect x="22" y="12" width="196" height="24" rx="7" class="fill-muted"></rect><rect x="22" y="28" width="196" height="8" class="fill-muted"></rect><rect x="32" y="19" width="36" height="10" rx="5" class="fill-success"></rect><rect x="76" y="21" width="74" height="6" rx="3" class="fill-border"></rect><path d="M42 50V94" class="stroke-border" stroke-width="2"></path><circle cx="42" cy="50" r="4" class="fill-primary"></circle><circle cx="42" cy="66" r="4" class="fill-primary"></circle><circle cx="42" cy="84" r="4" class="fill-primary-strong"></circle><rect x="52" y="47" width="46" height="6" rx="3" class="fill-border"></rect><rect x="52" y="63" width="36" height="6" rx="3" class="fill-border"></rect><rect x="52" y="81" width="42" height="6" rx="3" class="fill-border"></rect><circle cx="120" cy="50" r="5" class="fill-success"></circle><path d="M117.5 50 119.5 52 123 48" class="stroke-success-foreground" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path><rect x="132" y="47" width="52" height="6" rx="3" class="fill-border"></rect><circle cx="120" cy="66" r="4" class="fill-card stroke-warning" stroke-width="2"></circle><rect x="132" y="63" width="40" height="6" rx="3" class="fill-border"></rect><circle cx="120" cy="82" r="5" class="fill-success"></circle><path d="M117.5 82 119.5 84 123 80" class="stroke-success-foreground" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path><rect x="132" y="79" width="46" height="6" rx="3" class="fill-border"></rect><rect x="150" y="88" width="58" height="14" rx="7" class="fill-info-subtle stroke-info-strong"></rect><circle cx="160" cy="95" r="3.5" class="fill-info"></circle><rect x="168" y="93" width="30" height="4" rx="2" class="fill-info"></rect></svg>`),qn=s(`<svg class="size-full" viewBox="0 0 240 120" fill="none"><circle cx="58" cy="60" r="46" class="fill-primary-subtle"></circle><circle cx="216" cy="102" r="8" class="fill-info-subtle"></circle><circle cx="58" cy="60" r="27" class="fill-card stroke-primary-strong" stroke-width="2"></circle><path d="M45 70H71L66 64V56A8 8 0 0 0 50 56V64Z" class="fill-primary stroke-primary" stroke-width="2" stroke-linejoin="round"></path><path d="M54 74a4 4 0 0 0 8 0" class="stroke-primary" stroke-width="2" stroke-linecap="round"></path><path d="M58 44V47" class="stroke-primary" stroke-width="2" stroke-linecap="round"></path><circle cx="74" cy="42" r="7" class="fill-info stroke-card" stroke-width="2"></circle><rect x="104" y="14" width="116" height="92" rx="7" class="fill-card stroke-border" stroke-width="2"></rect><rect x="114" y="23" width="40" height="6" rx="3" class="fill-border"></rect><rect x="190" y="22" width="20" height="8" rx="4" class="fill-muted"></rect><rect x="112" y="37" width="100" height="18" rx="5" class="fill-muted"></rect><circle cx="122" cy="46" r="4" class="fill-warning"></circle><rect x="132" y="43" width="52" height="6" rx="3" class="fill-border"></rect><rect x="190" y="42" width="16" height="8" rx="4" class="fill-primary"></rect><rect x="112" y="59" width="100" height="18" rx="5" class="fill-muted"></rect><circle cx="122" cy="68" r="4" class="fill-info"></circle><rect x="132" y="65" width="42" height="6" rx="3" class="fill-border"></rect><rect x="112" y="81" width="100" height="18" rx="5" class="fill-muted"></rect><circle cx="122" cy="90" r="4" class="fill-success"></circle><rect x="132" y="87" width="56" height="6" rx="3" class="fill-border"></rect></svg>`),Jn=s(`<svg class="size-full" viewBox="0 0 240 120" fill="none"><circle cx="176" cy="62" r="46" class="fill-primary-subtle"></circle><circle cx="30" cy="104" r="8" class="fill-warning-subtle"></circle><rect x="20" y="12" width="140" height="96" rx="7" class="fill-card stroke-border" stroke-width="2"></rect><rect x="30" y="22" width="120" height="14" rx="7" class="fill-muted"></rect><rect x="40" y="27" width="56" height="4" rx="2" class="fill-border"></rect><g><path d="M30 50a2 2 0 0 1 2-2h7l3 3h9a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H32a2 2 0 0 1-2-2Z" class="fill-warning"></path><rect x="60" y="53" width="48" height="6" rx="3" class="fill-border"></rect></g><rect x="26" y="66" width="128" height="16" rx="5" class="fill-selected"></rect><path d="M30 70a2 2 0 0 1 2-2h7l3 3h9a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H32a2 2 0 0 1-2-2Z" class="fill-primary"></path><rect x="60" y="72" width="38" height="6" rx="3" class="fill-border"></rect><path d="M30 90a2 2 0 0 1 2-2h7l3 3h9a2 2 0 0 1 2 2v1a2 2 0 0 1-2 2H32a2 2 0 0 1-2-2Z" class="fill-warning"></path><rect x="60" y="93" width="54" height="6" rx="3" class="fill-border"></rect><rect x="120" y="6" width="104" height="22" rx="6" class="fill-background stroke-primary" stroke-width="2" stroke-dasharray="5 4"></rect><path d="M172 12V22M167.5 18 172 22.5 176.5 18" class="stroke-primary" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><g transform="translate(168 54) rotate(8 30 24)"><path d="M0 8a5 5 0 0 1 5-5h16l6 7h26a5 5 0 0 1 5 5v28a5 5 0 0 1-5 5H5a5 5 0 0 1-5-5Z" class="fill-primary stroke-card" stroke-width="2" stroke-linejoin="round"></path><rect x="9" y="26" width="30" height="5" rx="2.5" class="fill-primary-foreground"></rect><rect x="9" y="35" width="20" height="5" rx="2.5" class="fill-primary-strong"></rect></g></svg>`),Yn=s(`<svg class="size-full" viewBox="0 0 240 120" fill="none"><circle cx="34" cy="26" r="24" class="fill-primary-subtle"></circle><circle cx="216" cy="98" r="9" class="fill-info-subtle"></circle><rect x="24" y="10" width="192" height="68" rx="7" class="fill-card stroke-border" stroke-width="2"></rect><rect x="36" y="20" width="120" height="5" rx="2.5" class="fill-border"></rect><rect x="34" y="29" width="128" height="11" rx="3" class="fill-primary-subtle stroke-primary-strong"></rect><rect x="38" y="33" width="108" height="5" rx="2.5" class="fill-primary-strong"></rect><rect x="36" y="46" width="152" height="5" rx="2.5" class="fill-border"></rect><rect x="36" y="56" width="88" height="5" rx="2.5" class="fill-border"></rect><rect x="92" y="38" width="88" height="22" rx="11" class="fill-popover stroke-border" stroke-width="2"></rect><rect x="97" y="42" width="48" height="14" rx="7" class="fill-primary"></rect><rect x="107" y="47" width="28" height="4" rx="2" class="fill-primary-foreground"></rect><circle cx="162" cy="49" r="7" class="fill-muted"></circle><rect x="160" y="44" width="4" height="7" rx="2" class="fill-muted-foreground"></rect><path d="M157.5 50.5a4.5 4.5 0 0 0 9 0M162 55v2" class="stroke-muted-foreground" stroke-width="1.2" stroke-linecap="round"></path><rect x="24" y="86" width="192" height="26" rx="7" class="fill-card stroke-border" stroke-width="2"></rect><rect x="34" y="92" width="3" height="14" rx="1.5" class="fill-primary"></rect><rect x="43" y="93" width="96" height="5" rx="2.5" class="fill-primary-strong"></rect><rect x="43" y="101" width="64" height="5" rx="2.5" class="fill-border"></rect><circle cx="198" cy="99" r="7" class="fill-primary"></circle><path d="M198 103V95M194.5 98.5 198 95 201.5 98.5" class="stroke-primary-foreground" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path></svg>`),Xn=s(`<svg class="size-full" viewBox="0 0 240 120" fill="none"><circle cx="190" cy="34" r="36" class="fill-primary-subtle"></circle><circle cx="28" cy="102" r="9" class="fill-info-subtle"></circle><rect x="86" y="10" width="132" height="62" rx="7" class="fill-card stroke-border" stroke-width="2"></rect><circle cx="101" cy="25" r="5" class="fill-info"></circle><rect x="112" y="22" width="44" height="6" rx="3" class="fill-border"></rect><rect x="56" y="26" width="132" height="62" rx="7" class="fill-card stroke-border" stroke-width="2"></rect><circle cx="71" cy="41" r="5" class="fill-success"></circle><rect x="82" y="38" width="38" height="6" rx="3" class="fill-border"></rect><rect x="26" y="42" width="132" height="68" rx="7" class="fill-card stroke-primary-strong" stroke-width="2"></rect><circle cx="41" cy="58" r="5" class="fill-primary"></circle><rect x="52" y="55" width="36" height="6" rx="3" class="fill-foreground"></rect><rect x="126" y="54" width="22" height="8" rx="4" class="fill-primary-subtle stroke-primary-strong"></rect><rect x="36" y="70" width="112" height="5" rx="2.5" class="fill-border"></rect><rect x="36" y="80" width="82" height="5" rx="2.5" class="fill-border"></rect><rect x="36" y="93" width="30" height="10" rx="5" class="fill-muted"></rect><rect x="70" y="93" width="24" height="10" rx="5" class="fill-muted"></rect><rect x="98" y="93" width="34" height="10" rx="5" class="fill-muted"></rect></svg>`),Zn=E(`<div><span class="w-1.5 flex-none rounded-sm bg-panel"></span> <span class="grid min-w-0 flex-1 content-start gap-1"><span class="grid gap-1 rounded-md bg-card p-1 shadow-sm"><span class="h-1 w-full rounded-full bg-border"></span> <span class="h-1 w-2/3 rounded-full bg-border"></span></span> <span class="h-2 w-2/3 rounded-md bg-primary"></span> <span class="h-2 w-1/2 rounded-md bg-success"></span> <span class="h-2 w-3/4 rounded-md bg-info"></span></span></div>`),Qn=E(`<div class="flex size-full items-center justify-center"><div class="flex items-center -space-x-3"></div></div>`),$n=s(`<svg class="size-full" viewBox="0 0 240 120" fill="none"><circle cx="40" cy="40" r="40" class="fill-primary-subtle"></circle><circle cx="214" cy="94" r="22" class="fill-success-subtle"></circle><circle cx="226" cy="18" r="7" class="fill-warning-subtle"></circle><rect x="20" y="12" width="62" height="22" rx="11" class="fill-card stroke-border" stroke-width="2"></rect><circle cx="31" cy="17" r="2.5" class="fill-primary"></circle><circle cx="31" cy="29" r="2.5" class="fill-primary"></circle><circle cx="40" cy="20" r="2.5" class="fill-primary-strong"></circle><path d="M31 19.5V26.5M40 22.5C40 26 31 24 31 26.5" class="stroke-primary-strong" stroke-width="1.6" stroke-linecap="round"></path><rect x="47" y="20" width="14" height="5" rx="2.5" class="fill-border"></rect><rect x="64" y="17" width="14" height="12" rx="6" class="fill-success"></rect><path d="M71 26V20M68.5 22.5 71 20 73.5 22.5" class="stroke-success-foreground" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M82 23H96" class="stroke-border" stroke-width="2" stroke-dasharray="2 3" stroke-linecap="round"></path><rect x="20" y="52" width="62" height="20" rx="10" class="fill-primary-subtle stroke-primary-strong" stroke-width="1.5"></rect><circle cx="32" cy="62" r="3.5" class="fill-primary"></circle><rect x="40" y="59.5" width="34" height="5" rx="2.5" class="fill-primary"></rect><rect x="88" y="52" width="60" height="20" rx="10" class="fill-success-subtle stroke-success-strong" stroke-width="1.5"></rect><circle cx="100" cy="62" r="3.5" class="fill-success"></circle><rect x="108" y="59.5" width="32" height="5" rx="2.5" class="fill-success"></rect><rect x="154" y="52" width="66" height="20" rx="10" class="fill-warning-subtle stroke-warning-strong" stroke-width="1.5"></rect><circle cx="166" cy="62" r="4.5" class="fill-destructive"></circle><path d="M164.2 60.2 167.8 63.8M167.8 60.2 164.2 63.8" class="stroke-card" stroke-width="1.4" stroke-linecap="round"></path><rect x="175" y="59.5" width="37" height="5" rx="2.5" class="fill-warning"></rect><rect x="20" y="82" width="200" height="28" rx="9" class="fill-card stroke-border" stroke-width="2"></rect><rect x="32" y="93" width="76" height="6" rx="3" class="fill-border"></rect><circle cx="202" cy="96" r="8" class="fill-primary"></circle><path d="M202 100V92M198.5 95.5 202 92 205.5 95.5" class="stroke-primary-foreground" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"></path></svg>`),er=s(`<svg class="size-full" viewBox="0 0 240 120" fill="none"><circle cx="58" cy="60" r="46" class="fill-info-subtle"></circle><circle cx="210" cy="104" r="9" class="fill-primary-subtle"></circle><rect x="62" y="10" width="120" height="100" rx="7" class="fill-muted stroke-border" stroke-width="2" transform="rotate(4 122 60)"></rect><rect x="48" y="8" width="130" height="104" rx="7" class="fill-card stroke-border" stroke-width="2"></rect><rect x="60" y="19" width="62" height="8" rx="4" class="fill-primary-strong"></rect><rect x="60" y="33" width="104" height="5" rx="2.5" class="fill-border"></rect><rect x="60" y="43" width="92" height="5" rx="2.5" class="fill-border"></rect><rect x="60" y="55" width="106" height="40" rx="5" class="fill-muted"></rect><path d="M85 68H98M128 68H141M113 74V82M113 82H80V76M113 82H146V76" class="stroke-border" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><rect x="68" y="62" width="17" height="12" rx="3" class="fill-primary"></rect><rect x="98" y="62" width="30" height="12" rx="3" class="fill-info"></rect><rect x="141" y="62" width="17" height="12" rx="3" class="fill-primary"></rect><rect x="70" y="76" width="20" height="12" rx="3" class="fill-card stroke-border" stroke-width="1.5"></rect><rect x="136" y="76" width="20" height="12" rx="3" class="fill-card stroke-border" stroke-width="1.5"></rect><rect x="60" y="100" width="70" height="4" rx="2" class="fill-border"></rect><rect x="170" y="22" width="48" height="20" rx="10" class="fill-primary-subtle stroke-primary-strong" stroke-width="1.5"></rect><path d="M182 27 183.8 31.2 188 33 183.8 34.8 182 39 180.2 34.8 176 33 180.2 31.2Z" class="fill-primary"></path><rect x="192" y="30" width="19" height="5" rx="2.5" class="fill-primary-strong"></rect><circle cx="182" cy="86" r="19" class="fill-success stroke-card" stroke-width="3"></circle><circle cx="182" cy="86" r="13" class="stroke-success-foreground" stroke-width="1.5" stroke-dasharray="2 3"></circle><path d="M175.5 86.5 180.5 91.5 189 81" class="stroke-success-foreground" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path></svg>`),tr=s(`<svg class="size-full" viewBox="0 0 240 120" fill="none"><circle cx="120" cy="60" r="52" class="fill-primary-subtle"></circle><circle cx="30" cy="96" r="9" class="fill-info-subtle"></circle><circle cx="214" cy="22" r="7" class="fill-success-subtle"></circle><g transform="rotate(8 150 60)"><rect x="124" y="10" width="58" height="104" rx="9" class="fill-muted stroke-border" stroke-width="2"></rect><rect x="132" y="24" width="30" height="5" rx="2.5" class="fill-border"></rect><rect x="132" y="38" width="42" height="12" rx="4" class="fill-card"></rect><rect x="132" y="55" width="42" height="12" rx="4" class="fill-card"></rect><rect x="132" y="72" width="42" height="12" rx="4" class="fill-card"></rect><circle cx="138" cy="44" r="2.5" class="fill-success"></circle><circle cx="138" cy="61" r="2.5" class="fill-info"></circle><circle cx="138" cy="78" r="2.5" class="fill-warning"></circle></g><rect x="72" y="4" width="76" height="112" rx="12" class="fill-card stroke-primary-strong" stroke-width="2.5"></rect><rect x="100" y="8" width="20" height="5" rx="2.5" class="fill-border"></rect><rect x="79" y="19" width="62" height="12" rx="6" class="fill-muted"></rect><rect x="80.5" y="20.5" width="15" height="9" rx="4.5" class="fill-primary"></rect><rect x="99" y="23.5" width="9" height="3" rx="1.5" class="fill-border"></rect><rect x="112" y="23.5" width="9" height="3" rx="1.5" class="fill-border"></rect><rect x="125" y="23.5" width="10" height="3" rx="1.5" class="fill-border"></rect><rect x="79" y="38" width="42" height="14" rx="6" class="fill-muted"></rect><rect x="84" y="43" width="26" height="4" rx="2" class="fill-border"></rect><rect x="95" y="57" width="46" height="14" rx="6" class="fill-primary"></rect><rect x="100" y="62" width="28" height="4" rx="2" class="fill-primary-foreground"></rect><rect x="79" y="76" width="50" height="14" rx="6" class="fill-muted"></rect><rect x="84" y="81" width="32" height="4" rx="2" class="fill-border"></rect><rect x="77" y="94" width="66" height="14" rx="7" class="fill-muted stroke-border" stroke-width="1.5"></rect><rect x="83" y="99" width="26" height="4" rx="2" class="fill-border"></rect><circle cx="135" cy="101" r="5" class="fill-primary"></circle><path d="M135 103.5V98.5M132.8 100.5 135 98.5 137.2 100.5" class="stroke-primary-foreground" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"></path><rect x="100" y="111" width="20" height="2.5" rx="1.25" class="fill-border"></rect></svg>`),nr=s(`<svg class="size-full" viewBox="0 0 240 120" fill="none"><circle cx="198" cy="40" r="42" class="fill-primary-subtle"></circle><circle cx="26" cy="102" r="9" class="fill-success-subtle"></circle><circle cx="224" cy="108" r="6" class="fill-warning-subtle"></circle><rect x="14" y="26" width="212" height="42" rx="9" class="fill-card stroke-border" stroke-width="2"></rect><circle cx="32" cy="38" r="3" class="fill-primary"></circle><circle cx="32" cy="58" r="3" class="fill-primary"></circle><circle cx="43" cy="42" r="3" class="fill-primary-strong"></circle><path d="M32 41V55M43 45C43 51 32 49 32 55" class="stroke-primary-strong" stroke-width="2" stroke-linecap="round"></path><rect x="54" y="35" width="48" height="7" rx="3.5" class="fill-border"></rect><rect x="54" y="48" width="30" height="5" rx="2.5" class="fill-muted"></rect><rect x="108" y="36" width="22" height="12" rx="6" class="fill-success-subtle"></rect><path d="M114 44V40M112 42 114 40 116 42" class="stroke-success-strong" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"></path><rect x="119" y="40.5" width="7" height="3" rx="1.5" class="fill-success"></rect><rect x="108" y="52" width="22" height="12" rx="6" class="fill-warning-subtle"></rect><path d="M114 54V58M112 56 114 58 116 56" class="stroke-warning-strong" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"></path><rect x="119" y="56.5" width="7" height="3" rx="1.5" class="fill-warning"></rect><rect x="140" y="35" width="26" height="24" rx="7" class="fill-primary"></rect><path d="M153 52V42M148.5 46.5 153 42 157.5 46.5" class="stroke-primary-foreground" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><rect x="171" y="35" width="24" height="24" rx="7" class="fill-muted stroke-border" stroke-width="1.5"></rect><rect x="177" y="43" width="12" height="10" rx="2" class="fill-card stroke-muted-foreground" stroke-width="1.5"></rect><path d="M180 47H186" class="stroke-muted-foreground" stroke-width="1.5" stroke-linecap="round"></path><rect x="200" y="35" width="20" height="24" rx="7" class="fill-muted stroke-border" stroke-width="1.5"></rect><path d="M205 47H215M211.5 43.5 215 47 211.5 50.5" class="stroke-muted-foreground" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"></path><path d="M153 64V70" class="stroke-primary-strong" stroke-width="2" stroke-linecap="round"></path><rect x="104" y="72" width="112" height="40" rx="7" class="fill-popover stroke-border" stroke-width="2"></rect><rect x="110" y="77" width="100" height="14" rx="4" class="fill-selected"></rect><circle cx="119" cy="84" r="3.5" class="fill-primary"></circle><rect x="127" y="81.5" width="46" height="5" rx="2.5" class="fill-border"></rect><circle cx="119" cy="100" r="3.5" class="fill-info"></circle><rect x="127" y="97.5" width="36" height="5" rx="2.5" class="fill-border"></rect></svg>`),rr=s(`<svg class="size-full" viewBox="0 0 240 120" fill="none"><circle cx="206" cy="28" r="34" class="fill-primary-subtle"></circle><circle cx="24" cy="102" r="9" class="fill-info-subtle"></circle><rect x="18" y="12" width="204" height="96" rx="7" class="fill-card stroke-border" stroke-width="2"></rect><rect x="18" y="12" width="204" height="22" rx="7" class="fill-muted"></rect><rect x="18" y="26" width="204" height="8" class="fill-muted"></rect><path d="M30 18 25 23 30 28M38 18 43 23 38 28" class="stroke-primary-strong" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"></path><rect x="50" y="20" width="52" height="6" rx="3" class="fill-border"></rect><rect x="190" y="19" width="24" height="8" rx="4" class="fill-primary"></rect><circle cx="34" cy="48" r="5" class="fill-success"></circle><path d="M31.5 48 33.5 50 37 46" class="stroke-success-foreground" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path><rect x="46" y="45" width="30" height="6" rx="3" class="fill-info"></rect><rect x="82" y="45" width="60" height="6" rx="3" class="fill-border"></rect><rect x="170" y="43" width="44" height="10" rx="5" class="fill-success-subtle"></rect><circle cx="34" cy="66" r="5" class="fill-success"></circle><path d="M31.5 66 33.5 68 37 64" class="stroke-success-foreground" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"></path><rect x="46" y="63" width="36" height="6" rx="3" class="fill-primary"></rect><rect x="88" y="63" width="44" height="6" rx="3" class="fill-border"></rect><rect x="170" y="61" width="44" height="10" rx="5" class="fill-success-subtle"></rect><circle cx="34" cy="84" r="4" class="fill-card stroke-warning" stroke-width="2"></circle><rect x="46" y="81" width="26" height="6" rx="3" class="fill-warning"></rect><rect x="78" y="81" width="52" height="6" rx="3" class="fill-border"></rect><rect x="170" y="79" width="44" height="10" rx="5" class="fill-warning-subtle"></rect><rect x="30" y="96" width="120" height="5" rx="2.5" class="fill-muted"></rect></svg>`),ir=s(`<svg class="size-full" viewBox="0 0 240 120" fill="none"><circle cx="194" cy="25" r="13" class="fill-success-subtle"></circle><circle cx="33" cy="95" r="10" class="fill-info-subtle"></circle><rect x="20" y="15" width="200" height="92" rx="7" class="fill-card stroke-border" stroke-width="2"></rect><path d="M20 34H220" class="stroke-border" stroke-width="2"></path><circle cx="32" cy="25" r="3" class="fill-destructive"></circle><circle cx="42" cy="25" r="3" class="fill-warning"></circle><circle cx="52" cy="25" r="3" class="fill-success"></circle><rect x="29" y="43" width="40" height="55" rx="4" class="fill-muted"></rect><rect x="77" y="43" width="92" height="55" rx="4" class="fill-background stroke-border"></rect><rect x="177" y="43" width="34" height="55" rx="4" class="fill-muted"></rect><rect x="35" y="50" width="27" height="5" rx="2.5" class="fill-border"></rect><rect x="35" y="62" width="21" height="5" rx="2.5" class="fill-primary-strong"></rect><rect x="35" y="74" width="25" height="5" rx="2.5" class="fill-border"></rect><circle cx="89" cy="56" r="4" class="fill-info"></circle><rect x="98" y="52" width="56" height="7" rx="3.5" class="fill-muted"></rect><circle cx="89" cy="70" r="4" class="fill-success"></circle><rect x="98" y="66" width="43" height="7" rx="3.5" class="fill-muted"></rect><path d="M89 82H152" class="stroke-primary-strong" stroke-width="5" stroke-linecap="round"></path><rect x="183" y="50" width="22" height="16" rx="3" class="fill-primary-subtle"></rect><rect x="183" y="72" width="22" height="7" rx="3.5" class="fill-border"></rect><rect x="183" y="85" width="16" height="7" rx="3.5" class="fill-border"></rect></svg>`),ar=E(`<div class="h-full w-full" aria-hidden="true"><!></div>`);function or(t,n){e(n,!0);let i=[`-rotate-6 translate-y-1.5`,`-rotate-3 translate-y-0.5`,`z-10 -translate-y-1`,`rotate-3 translate-y-0.5`,`rotate-6 translate-y-1.5`];var o=ar(),s=T(o),c=e=>{var t=Kn();r(e,t)},u=e=>{var t=qn();r(e,t)},d=e=>{var t=Jn();r(e,t)},p=e=>{var t=Yn();r(e,t)},h=e=>{var t=Xn();r(e,t)},g=e=>{var t=Qn(),n=T(t);a(n,22,()=>ce.options,e=>e,(e,t,n)=>{var a=Zn();w(()=>{f(a,`data-theme-preview`,t),f(a,`data-color-mode`,le[t]),m(a,1,`flex h-20 w-14 gap-1 rounded-lg border border-border bg-background p-1.5 shadow-sm ${i[D(n)]??``}`)}),r(e,a)}),l(n),l(t),r(e,t)},_=e=>{var t=$n();r(e,t)},v=e=>{var t=er();r(e,t)},y=e=>{var t=tr();r(e,t)},b=e=>{var t=nr();r(e,t)},x=e=>{var t=rr();r(e,t)},C=e=>{var t=ir();r(e,t)};M(s,e=>{n.artwork===`pull-requests`?e(c):n.artwork===`notifications`?e(u,1):n.artwork===`projects`?e(d,2):n.artwork===`quote`?e(p,3):n.artwork===`profiles`?e(h,4):n.artwork===`themes`?e(g,5):n.artwork===`suggestions`?e(_,6):n.artwork===`engineering-docs`?e(v,7):n.artwork===`mobile`?e(y,8):n.artwork===`git-actions`?e(b,9):n.artwork===`quick-script`?e(x,10):e(C,-1)}),l(o),r(t,o),S()}var sr=E(`<div class="flex items-center justify-center border-b bg-background px-5 py-4 @xl:order-last @xl:border-b-0 @xl:border-l"><div class="aspect-[2/1] w-full max-w-sm"><!></div></div>`),cr=E(`<li class="flex gap-1.5 text-ui leading-relaxed text-muted-foreground"><span aria-hidden="true">·</span> <span> </span></li>`),lr=E(`<ul class="grid gap-1"></ul>`),ur=E(`<div class="pt-0.5"><!></div>`),dr=E(`<article class="col-span-full grid overflow-hidden rounded-md bg-card text-body text-card-foreground ring-1 ring-border @xl:grid-cols-[minmax(0,1fr)_minmax(0,0.9fr)]"><!> <div class="grid min-w-0 content-center gap-2 p-4"><div class="flex flex-wrap items-center gap-1.5"><!> <!></div> <div class="grid gap-1"><h3 class="text-title font-semibold leading-tight"> </h3> <p class="text-ui leading-relaxed text-muted-foreground"> </p></div> <!> <!></div></article>`);function fr(t,n){e(n,!0);var s=dr(),c=T(s),u=e=>{var t=sr(),i=T(t);or(T(i),{get artwork(){return n.entry.artwork}}),l(i),l(t),r(e,t)};M(c,e=>{n.entry.artwork&&e(u)});var d=g(c,2),f=T(d),p=T(f);F(p,{variant:`neutral`,children:(e,t)=>{o();var a=h();w(e=>i(a,e),[()=>z(n.entry.releasedIn)]),r(e,a)},$$slots:{default:!0}});var m=g(p,2),_=e=>{F(e,{variant:`info`,children:(e,t)=>{o();var n=h(`New`);r(e,n)},$$slots:{default:!0}})};M(m,e=>{n.entry.unread&&e(_)}),l(f);var v=g(f,2),b=T(v),x=y(b,!0),C=g(b,2),E=y(C,!0);l(v);var D=g(v,2),O=e=>{var t=lr();a(t,20,()=>n.entry.details,e=>e,(e,t)=>{var n=cr(),a=g(T(n),2),o=y(a,!0);l(n),w(()=>i(o,t)),r(e,n)}),l(t),r(e,t)};M(D,e=>{n.entry.details?.length&&e(O)});var k=g(D,2),A=e=>{var t=ur();Q(T(t),{get action(){return n.entry.action},get onAction(){return n.onAction}}),l(t),r(e,t)};M(k,e=>{n.entry.action&&e(A)}),l(d),l(s),w(()=>{i(x,n.entry.title),i(E,n.entry.summary)}),r(t,s),S()}var pr=E(`<div class="flex items-center justify-center border-b bg-background px-6 py-5 @2xl:order-last @2xl:border-b-0 @2xl:border-l"><div class="aspect-[2/1] w-full max-w-md"><!></div></div>`),mr=E(`<!> `,1),hr=E(`<li class="flex gap-2 text-ui leading-relaxed text-muted-foreground"><!> <span> </span></li>`),gr=E(`<ul class="grid gap-1.5"></ul>`),_r=E(`<div class="pt-1"><!></div>`),vr=E(`<article class="grid overflow-hidden rounded-md bg-card text-card-foreground ring-1 ring-border @2xl:grid-cols-[minmax(0,1fr)_minmax(0,1.1fr)]"><!> <div class="grid content-center gap-3 p-5"><div class="flex flex-wrap items-center gap-1.5"><!> <!></div> <div class="grid gap-1.5"><h3 class="text-title font-semibold leading-tight"> </h3> <p class="text-body leading-relaxed text-muted-foreground"> </p></div> <!> <!></div></article>`);function yr(t,n){e(n,!0);var s=vr(),c=T(s),u=e=>{var t=pr(),i=T(t);or(T(i),{get artwork(){return n.entry.artwork}}),l(i),l(t),r(e,t)};M(c,e=>{n.entry.artwork&&e(u)});var d=g(c,2),p=T(d),m=T(p);F(m,{variant:`info`,children:(e,t)=>{var a=mr(),o=b(a);_e(o,{class:`size-3`,"aria-hidden":`true`});var s=g(o);w(e=>i(s,` ${e??``}`),[()=>z(n.entry.releasedIn)]),r(e,a)},$$slots:{default:!0}});var _=g(m,2),v=e=>{F(e,{variant:`neutral`,children:(e,t)=>{o();var n=h(`New`);r(e,n)},$$slots:{default:!0}})};M(_,e=>{n.entry.unread&&e(v)}),l(p);var x=g(p,2),C=T(x),E=y(C,!0),D=g(C,2),O=y(D,!0);l(x);var k=g(x,2),A=e=>{var t=gr();a(t,20,()=>n.entry.details,e=>e,(e,t)=>{var n=hr(),a=T(n);pe(a,{class:`mt-0.5 size-3.5 shrink-0 text-success`,"aria-hidden":`true`});var o=g(a,2),s=y(o,!0);l(n),w(()=>i(s,t)),r(e,n)}),l(t),r(e,t)};M(k,e=>{n.entry.details?.length&&e(A)});var j=g(k,2),N=e=>{var t=_r();Q(T(t),{get action(){return n.entry.action},variant:`default`,get onAction(){return n.onAction}}),l(t),r(e,t)};M(j,e=>{n.entry.action&&e(N)}),l(d),l(s),w(()=>{f(s,`aria-labelledby`,`discover-spotlight-${n.entry.id}`),f(C,`id`,`discover-spotlight-${n.entry.id}`),i(E,n.entry.title),i(O,n.entry.summary)}),r(t,s),S()}var br=E(`<div class="divide-y divide-border overflow-hidden rounded-md border bg-card"><!></div>`);function xr(e,t){var n=br(),i=T(n);d(i,()=>t.children),l(n),r(e,n)}var Sr=E(`<div class="border-b bg-background px-3 py-2"><div class="mx-auto aspect-[2/1] w-full max-w-72"><!></div></div>`),Cr=E(`<div><!></div>`),wr=E(`<article class="grid grid-rows-[auto_1fr] overflow-hidden rounded-md bg-card text-card-foreground ring-1 ring-border"><!> <div class="grid content-between gap-3 p-3"><div class="grid gap-1"><div class="flex flex-wrap items-center gap-1.5"><!> <!></div> <h3 class="pt-0.5 text-ui font-medium"> </h3> <p class="text-ui text-muted-foreground"> </p></div> <!></div></article>`);function Tr(t,n){e(n,!0);var a=wr(),s=T(a),c=e=>{var t=Sr(),i=T(t);or(T(i),{get artwork(){return n.entry.artwork}}),l(i),l(t),r(e,t)};M(s,e=>{n.entry.artwork&&e(c)});var u=g(s,2),d=T(u),f=T(d),p=T(f);F(p,{variant:`neutral`,children:(e,t)=>{o();var a=h();w(e=>i(a,e),[()=>z(n.entry.releasedIn)]),r(e,a)},$$slots:{default:!0}});var m=g(p,2),_=e=>{F(e,{variant:`info`,children:(e,t)=>{o();var n=h(`New`);r(e,n)},$$slots:{default:!0}})};M(m,e=>{n.entry.unread&&e(_)}),l(f);var v=g(f,2),b=y(v,!0),x=g(v,2),C=y(x,!0);l(d);var E=g(d,2),D=e=>{var t=Cr();Q(T(t),{get action(){return n.entry.action},get onAction(){return n.onAction}}),l(t),r(e,t)};M(E,e=>{n.entry.action&&e(D)}),l(u),l(a),w(()=>{i(b,n.entry.title),i(C,n.entry.summary)}),r(t,a),S()}var Er=E(`<div><!></div>`),Dr=E(`<span class="size-1.5 shrink-0 rounded-full bg-info" aria-hidden="true"></span>`),Or=E(`<p class="truncate text-ui text-muted-foreground"> </p>`),kr=E(`<div class="flex shrink-0 items-center gap-1"><!></div>`),Ar=E(`<div class="flex items-center gap-3 px-3 py-2.5"><!> <div class="grid min-w-0 flex-1 gap-0.5"><div class="flex min-w-0 flex-wrap items-center gap-1.5"><!> <span> </span> <!></div> <!></div> <!></div>`);function $(e,t){let n=O(t,`unread`,3,!1),a=O(t,`subdued`,3,!1);var o=Ar(),s=T(o),f=e=>{var n=Er(),i=T(n);u(i,()=>t.icon,(e,t)=>{t(e,{class:`size-4`,"aria-hidden":`true`})}),l(n),w(()=>m(n,1,`flex size-8 shrink-0 items-center justify-center rounded-md bg-muted ${a()?`text-muted-foreground`:`text-foreground`}`)),r(e,n)};M(s,e=>{t.icon&&e(f)});var p=g(s,2),h=T(p),_=T(h),v=e=>{var t=Dr();r(e,t)};M(_,e=>{n()&&e(v)});var x=g(_,2),S=y(x,!0),C=g(x,2),E=e=>{var n=c(),i=b(n);d(i,()=>t.meta),r(e,n)};M(C,e=>{t.meta&&e(E)}),l(h);var D=g(h,2),k=e=>{var n=Or(),a=y(n,!0);w(()=>i(a,t.description)),r(e,n)};M(D,e=>{t.description&&e(k)}),l(p);var A=g(p,2),j=e=>{var n=kr(),i=T(n);d(i,()=>t.actions),l(n),r(e,n)};M(A,e=>{t.actions&&e(j)}),l(o),w(()=>{m(x,1,`truncate text-ui ${a()?`text-muted-foreground`:`text-foreground`}`),i(S,t.title)}),r(e,o)}var jr=E(`<div class="flex shrink-0 items-center gap-2"><!></div>`),Mr=E(`<section class="grid gap-2"><div class="flex min-h-6 items-center justify-between gap-3"><h2 class="text-ui font-medium text-foreground"> </h2> <!></div> <!></section>`);function Nr(e,t){var n=Mr(),a=T(n),o=T(a),s=y(o,!0),c=g(o,2),u=e=>{var n=jr(),i=T(n);d(i,()=>t.trailing),l(n),r(e,n)};M(c,e=>{t.trailing&&e(u)}),l(a);var p=g(a,2);d(p,()=>t.children),l(n),w(()=>{f(n,`aria-labelledby`,t.id),f(o,`id`,t.id),i(s,t.title)}),r(e,n)}var Pr=E(`<section class="grid gap-2.5"><div class="flex items-center gap-3"><h3 class="shrink-0 text-caption font-medium uppercase tracking-wide text-muted-foreground"> </h3> <div class="h-px flex-1 bg-border" aria-hidden="true"></div></div> <div><!> <!></div> <!></section>`),Fr=E(`<p class="text-ui text-muted-foreground"> </p>`),Ir=E(`<!> `,1),Lr=E(`<div class="px-1 py-1"><!></div> <!>`,1),Rr=E(`<div class="grid gap-5"><!> <!> <!> <!></div>`);function zr(s,u){e(u,!0);let d=(e,n=t)=>{$(e,{get title(){return n().title},get description(){return n().summary},get unread(){return n().unread},meta:e=>{F(e,{variant:`neutral`,children:(e,t)=>{o();var a=h();w(e=>i(a,e),[()=>z(n().releasedIn)]),r(e,a)},$$slots:{default:!0}})},actions:e=>{var t=c(),i=b(t),a=e=>{Q(e,{get action(){return n().action},get onAction(){return u.onAction}})};M(i,e=>{n().action&&e(a)}),r(e,t)},$$slots:{meta:!0,actions:!0}})},v=p(!1);function x(e){return e===2||e===4?`@xl:grid-cols-2`:`@xl:grid-cols-2 @3xl:grid-cols-3`}let C=j(()=>!u.news.spotlight&&u.news.releases.length===0);Nr(s,{id:`discover-news-title`,title:`What's new`,trailing:e=>{var t=c(),n=b(t),a=e=>{F(e,{variant:`info`,children:(e,t)=>{o();var n=h();w(()=>i(n,`${u.news.unreadCount??``} new`)),r(e,n)},$$slots:{default:!0}})};M(n,e=>{u.news.unreadCount>0&&e(a)}),r(e,t)},children:(e,t)=>{var s=Rr(),p=T(s),h=e=>{yr(e,{get entry(){return u.news.spotlight},get onAction(){return u.onAction}})};M(p,e=>{u.news.spotlight&&e(h)});var S=g(p,2);a(S,17,()=>u.news.releases,e=>e.release,(e,t)=>{let s=j(()=>D(t).entries.filter(e=>e.artwork)),p=j(()=>D(t).entries.filter(e=>!e.artwork)),h=j(()=>D(t).featured??(D(s).length===1?D(s)[0]:void 0)),_=j(()=>D(s).filter(e=>e!==D(h)));var v=Pr(),S=T(v),C=T(S),E=y(C,!0);o(2),l(S);var O=g(S,2),k=T(O),A=e=>{fr(e,{get entry(){return D(h)},get onAction(){return u.onAction}})};M(k,e=>{D(h)&&e(A)});var N=g(k,2);a(N,17,()=>D(_),e=>e.id,(e,t)=>{Tr(e,{get entry(){return D(t)},get onAction(){return u.onAction}})}),l(O);var ee=g(O,2),P=e=>{xr(e,{children:(e,t)=>{var n=c(),i=b(n);a(i,17,()=>D(p),e=>e.id,(e,t)=>{d(e,()=>D(t))}),r(e,n)},$$slots:{default:!0}})};M(ee,e=>{D(p).length>0&&e(P)}),l(v),w(e=>{f(v,`aria-labelledby`,`discover-release-${D(t).release}`),f(C,`id`,`discover-release-${D(t).release}`),i(E,D(t).label),m(O,1,e)},[()=>n([`grid gap-2.5`,x(D(_).length)])]),r(e,v)});var E=g(S,2),O=e=>{var t=Fr(),n=y(t,!0);w(()=>i(n,u.currentVersion?`Nothing new since ${u.currentVersion}.`:`Nothing new right now.`)),r(e,t)};M(E,e=>{D(C)&&e(O)});var k=g(E,2),A=e=>{xr(e,{children:(e,t)=>{var n=Lr(),o=b(n),s=T(o);N(s,{variant:`ghost`,size:`sm`,onclick:()=>_(v,!D(v)),get"aria-expanded"(){return D(v)},children:(e,t)=>{var n=Ir(),a=b(n),o=e=>{we(e,{class:`size-3.5`,"aria-hidden":`true`})},s=e=>{be(e,{class:`size-3.5`,"aria-hidden":`true`})};M(a,e=>{D(v)?e(o):e(s,-1)});var c=g(a);w(()=>i(c,` ${D(v)?`Hide earlier updates`:`Show ${u.news.archive.length} earlier updates`}`)),r(e,n)},$$slots:{default:!0}}),l(o);var f=g(o,2),p=e=>{var t=c(),n=b(t);a(n,17,()=>u.news.archive,e=>e.id,(e,t)=>{d(e,()=>D(t))}),r(e,t)};M(f,e=>{D(v)&&e(p)}),r(e,n)},$$slots:{default:!0}})};M(k,e=>{u.news.archive.length>0&&e(A)}),l(s),r(e,s)},$$slots:{trailing:!0,default:!0}}),S()}var Br=[{id:`documentation`,label:`Documentation`,href:`https://nerve.tlmtech.dev`},{id:`releases`,label:`Release notes`,href:`https://github.com/ThilinaTLM/nerve/releases`},{id:`issues`,label:`Report an issue`,href:`https://github.com/ThilinaTLM/nerve/issues`}],Vr=E(`<a class="inline-flex items-center gap-1 hover:text-foreground hover:underline" target="_blank" rel="noreferrer"> <!></a>`),Hr=E(`<div class="flex flex-wrap items-center gap-x-4 gap-y-1 border-t pt-3 text-ui text-muted-foreground"></div>`);function Ur(e){var t=Hr();a(t,5,()=>Br,e=>e.id,(e,t)=>{var n=Vr(),a=T(n),o=g(a);Pe(o,{class:`size-3`,"aria-hidden":`true`}),l(n),w(()=>{f(n,`href`,D(t).href),i(a,`${D(t).label??``} `)}),r(e,n)}),l(t),r(e,t)}var Wr={"open-project":re,provider:de,voice:he,"scoped-models":ge,"agent-defaults":ye,workbench:We},Gr=E(`<span class="text-ui text-muted-foreground"> </span> <!>`,1),Kr=E(`<!> Mark done`,1),qr=E(`<!> <!>`,1),Jr=E(`<p class="flex items-center gap-1.5 px-3 py-2.5 text-ui text-muted-foreground"><!> Setup is complete.</p>`),Yr=E(`<!> `,1),Xr=E(`<div class="px-1 py-1"><!></div>`),Zr=E(`<!> <!> <!> <!> <!>`,1);function Qr(t,n){e(n,!0);function s(e){return e.run?.kind===`workbench-tour`&&n.workbenchBlocked}let u=p(!1),d=j(()=>n.setup.totalCount===0?0:Math.round(n.setup.completedCount/n.setup.totalCount*100));Nr(t,{id:`discover-setup-title`,title:`Get set up`,trailing:e=>{var t=Gr(),a=b(t),o=y(a),s=g(a,2);{let e=j(()=>`${n.setup.completedCount} of ${n.setup.totalCount} setup guides complete`);fe(s,{class:`w-20`,get value(){return D(d)},get"aria-label"(){return D(e)}})}w(()=>i(o,`${n.setup.completedCount??``} of ${n.setup.totalCount??``} done`)),r(e,t)},children:(e,t)=>{xr(e,{children:(e,t)=>{var d=Zr(),f=b(d);a(f,19,()=>n.setup.pending,e=>e.id,(e,t,a)=>{$(e,{get icon(){return Wr[D(t).id]},get title(){return D(t).title},get description(){return D(t).description},meta:e=>{var n=c(),i=b(n),a=e=>{F(e,{variant:`warning`,children:(e,t)=>{o();var n=h(`Must do`);r(e,n)},$$slots:{default:!0}})};M(i,e=>{D(t).priority===`must-do`&&e(a)}),r(e,n)},actions:e=>{var s=qr(),c=b(s);{let e=j(()=>D(a)===0?`default`:`outline`);N(c,{get variant(){return D(e)},size:`sm`,onclick:()=>n.onStartGuide(D(t).id),children:(e,n)=>{o();var a=h();w(()=>i(a,D(t).actionLabel??`Start`)),r(e,a)},$$slots:{default:!0}})}var l=g(c,2);N(l,{variant:`ghost`,size:`sm`,onclick:()=>n.onMarkCompleted(D(t).id),children:(e,t)=>{var n=Kr(),i=b(n);pe(i,{class:`size-3.5`,"aria-hidden":`true`}),o(),r(e,n)},$$slots:{default:!0}}),r(e,s)},$$slots:{meta:!0,actions:!0}})});var p=g(f,2),m=e=>{var t=Jr(),n=T(t);Se(n,{class:`size-3.5 text-success`,"aria-hidden":`true`}),o(),l(t),r(e,t)};M(p,e=>{n.setup.pending.length===0&&e(m)});var v=g(p,2);a(v,17,()=>n.walkthroughs,e=>e.id,(e,t)=>{{let a=e=>{var n=c(),i=b(n),a=e=>{Se(e,{class:`size-3.5 text-success`,"aria-hidden":`true`})};M(i,e=>{D(t).completed&&e(a)}),r(e,n)},l=e=>{{let a=j(()=>D(t).completed?`ghost`:`outline`);N(e,{get variant(){return D(a)},size:`sm`,onclick:()=>n.onStartGuide(D(t).id),children:(e,n)=>{o();var a=h();w(()=>i(a,D(t).completed?`Replay`:D(t).actionLabel??`Start`)),r(e,a)},$$slots:{default:!0}})}},u=j(()=>s(D(t))?`Open a project before starting this tour.`:D(t).description);$(e,{get icon(){return Wr[D(t).id]},get title(){return D(t).title},get description(){return D(u)},meta:a,actions:l,$$slots:{meta:!0,actions:!0}})}});var y=g(v,2),x=e=>{var t=Xr(),a=T(t);N(a,{variant:`ghost`,size:`sm`,onclick:()=>_(u,!D(u)),get"aria-expanded"(){return D(u)},children:(e,t)=>{var a=Yr(),o=b(a),s=e=>{we(e,{class:`size-3.5`,"aria-hidden":`true`})},c=e=>{be(e,{class:`size-3.5`,"aria-hidden":`true`})};M(o,e=>{D(u)?e(s):e(c,-1)});var l=g(o);w(()=>i(l,` ${D(u)?`Hide completed`:`Show ${n.setup.completed.length} completed`}`)),r(e,a)},$$slots:{default:!0}}),l(t),r(e,t)};M(y,e=>{n.setup.completed.length>0&&e(x)});var S=g(y,2),C=e=>{var t=c(),i=b(t);a(i,17,()=>n.setup.completed,e=>e.id,(e,t)=>{$(e,{get icon(){return Wr[D(t).id]},get title(){return D(t).title},subdued:!0,meta:e=>{Se(e,{class:`size-3.5 text-success`,"aria-hidden":`true`})},actions:e=>{N(e,{variant:`ghost`,size:`sm`,onclick:()=>n.onStartGuide(D(t).id),children:(e,t)=>{o();var n=h(`Replay`);r(e,n)},$$slots:{default:!0}})},$$slots:{meta:!0,actions:!0}})}),r(e,t)};M(S,e=>{D(u)&&e(C)}),r(e,d)},$$slots:{default:!0}})},$$slots:{trailing:!0,default:!0}}),S()}var $r=E(`<div class="pt-0.5"><!></div>`),ei=E(`<div class="grid content-start gap-1.5 rounded-md border bg-card p-3"><h3 class="text-ui text-foreground"> </h3> <p class="text-ui leading-relaxed text-muted-foreground"> </p> <!></div>`),ti=E(`<div class="grid gap-2.5 sm:grid-cols-2"></div>`);function ni(e,t){Nr(e,{id:`discover-tips-title`,title:`Tips`,children:(e,n)=>{var o=ti();a(o,21,()=>t.tips,e=>e.id,(e,n)=>{var a=ei(),o=T(a),s=y(o,!0),c=g(o,2),u=y(c,!0),d=g(c,2),f=e=>{var i=$r();Q(T(i),{get action(){return D(n).action},variant:`link`,get onAction(){return t.onAction}}),l(i),r(e,i)};M(d,e=>{D(n).action&&e(f)}),l(a),w(()=>{i(s,D(n).title),i(u,D(n).summary)}),r(e,a)}),l(o),r(e,o)},$$slots:{default:!0}})}var ri=E(`<!> <!>`,1),ii=E(`<main class="@container mx-auto grid w-full max-w-5xl gap-7 px-4 py-5 sm:px-6"><header class="flex flex-wrap items-start justify-between gap-3"><div class="grid gap-0.5"><h1 class="text-title font-medium text-foreground">Discover</h1> <p class="text-ui text-muted-foreground">Highlights from recent releases, how to get started, and a few tips.</p></div> <div class="flex flex-wrap items-center gap-1.5"><!> <!> <!></div></header> <!> <!> <!> <!> <!></main>`),ai=E(`<div class="h-full min-h-0 bg-background"><!></div>`);function oi(t,n){e(n,!0);let a=e=>{Qr(e,{get setup(){return n.model.sections.setup},get walkthroughs(){return n.model.sections.walkthroughs},get workbenchBlocked(){return n.workbenchBlocked},get onStartGuide(){return n.onStartGuide},get onMarkCompleted(){return n.onMarkCompleted}})},s=j(()=>n.model.currentVersion?Qe(n.model.currentVersion):void 0),d=j(()=>$e(n.model.currentVersion,n.model.latestVersion));var f=ai(),p=T(f);xe(p,{class:`h-full`,children:(e,t)=>{var f=ii(),p=T(f),m=g(T(p),2),_=T(m),v=e=>{F(e,{variant:`neutral`,children:(e,t)=>{o();var n=h();w(()=>i(n,D(s))),r(e,n)},$$slots:{default:!0}})};M(_,e=>{D(s)&&e(v)});var y=g(_,2),x=e=>{F(e,{variant:`warning`,get href(){return n.model.latestReleaseUrl},children:(e,t)=>{o();var a=h();w(e=>i(a,`Update to ${e??``}`),[()=>Qe(n.model.latestVersion)]),r(e,a)},$$slots:{default:!0}})};M(y,e=>{D(d)&&n.model.latestVersion&&e(x)});var S=g(y,2);u(S,()=>te,(e,t)=>{t(e,{children:(e,t)=>{var i=ri(),a=b(i);{let e=j(()=>ee({variant:`ghost`,size:`icon-sm`}));u(a,()=>ne,(t,n)=>{n(t,{get class(){return D(e)},"aria-label":`Discover options`,title:`Discover options`,children:(e,t)=>{Fe(e,{class:`size-4`,"aria-hidden":`true`})},$$slots:{default:!0}})})}var s=g(a,2);u(s,()=>ie,(e,t)=>{t(e,{align:`end`,class:`w-60`,children:(e,t)=>{var i=c(),a=b(i);u(a,()=>ae,(e,t)=>{t(e,{get checked(){return n.model.autoOpenEnabled},onCheckedChange:e=>n.onSetAutoOpen(e),children:(e,t)=>{o();var n=h(`Open Discover after updates`);r(e,n)},$$slots:{default:!0}})}),r(e,i)},$$slots:{default:!0}})}),r(e,i)},$$slots:{default:!0}})}),l(m),l(p);var C=g(p,2),E=e=>{a(e)};M(C,e=>{n.model.sections.setup.leading&&e(E)});var O=g(C,2);zr(O,{get news(){return n.model.sections.news},get currentVersion(){return D(s)},get onAction(){return n.onAction}});var k=g(O,2),A=e=>{a(e)};M(k,e=>{n.model.sections.setup.leading||e(A)});var N=g(k,2),P=e=>{ni(e,{get tips(){return n.model.sections.tips},get onAction(){return n.onAction}})};M(N,e=>{n.model.sections.tips.length>0&&e(P)}),Ur(g(N,2),{}),l(f),r(e,f)},$$slots:{default:!0}}),l(f),r(t,f),S()}export{Ye as A,Ft as C,Dt as D,Et as E,Ke as M,We as N,Qe as O,Ht as S,Ot as T,W as _,Hn as a,Ut as b,Sn as c,K as d,_n as f,on as g,Pn as h,Vn as i,Xe as j,$e as k,xn as l,Fn as m,Gn as n,Un as o,kn as p,Bn as r,jn as s,oi as t,Mn as u,Lt as v,Mt as w,Rt as x,It as y};
@@ -0,0 +1 @@
1
+ import{c as e,l as t}from"./toast-state.svelte-C3jh5vEx.js";import{t as n}from"./Icon-dUzqN8rt.js";import{A as r,Bt as i,C as a,Ct as o,E as s,Et as c,Ft as l,Ht as u,It as d,K as f,L as p,Lt as m,Ot as ee,P as h,Pt as g,St as te,T as _,Ut as ne,Vt as v,et as re,j as ie,n as y,tt as b,w as ae,xt as oe}from"./dist-DoT3ROR1.js";var se=new Set([`$$slots`,`$$events`,`$$legacy`]);function ce(r,i){let a=e(i,se),o=[[`path`,{d:`M12 22v-6`}],[`path`,{d:`M12 8V2`}],[`path`,{d:`M4 12H2`}],[`path`,{d:`M10 12H8`}],[`path`,{d:`M16 12h-2`}],[`path`,{d:`M22 12h-2`}],[`path`,{d:`m15 19-3-3-3 3`}],[`path`,{d:`m15 5-3 3-3-3`}]];n(r,t({name:`fold-vertical`},()=>a,{get iconNode(){return o}}))}var le=new Set([`$$slots`,`$$events`,`$$legacy`]);function ue(r,i){let a=e(i,le),o=[[`path`,{d:`M14 21h1`}],[`path`,{d:`M14 3h1`}],[`path`,{d:`M19 3a2 2 0 0 1 2 2`}],[`path`,{d:`M21 14v1`}],[`path`,{d:`M21 19a2 2 0 0 1-2 2`}],[`path`,{d:`M21 9v1`}],[`path`,{d:`M3 14v1`}],[`path`,{d:`M3 9v1`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2`}],[`path`,{d:`M5 3a2 2 0 0 0-2 2`}],[`path`,{d:`M7 12h10`}],[`path`,{d:`M7 16h6`}],[`path`,{d:`M7 8h8`}],[`path`,{d:`M9 21h1`}],[`path`,{d:`M9 3h1`}]];n(r,t({name:`square-dashed-text`},()=>a,{get iconNode(){return o}}))}var de=new Set([`$$slots`,`$$events`,`$$legacy`]);function fe(r,i){let a=e(i,de),o=[[`path`,{d:`m16 16-3 3 3 3`}],[`path`,{d:`M3 12h14.5a1 1 0 0 1 0 7H13`}],[`path`,{d:`M3 19h6`}],[`path`,{d:`M3 5h18`}]];n(r,t({name:`text-wrap`},()=>a,{get iconNode(){return o}}))}function pe(e,t){return e.selection.ranges.some(e=>!e.empty&&t>=e.from&&t<=e.to)?void 0:{anchor:t}}function me(e,t){let n=e.selection.main;return!n.empty&&(t(e.sliceDoc(n.from,n.to)),!0)}function he(e,t){let n=e.selection.main;if(!n.empty&&!(t!==void 0&&(t<n.from||t>n.to)))return e.sliceDoc(n.from,n.to)}function ge(e){return!e.search||e.valid}function _e(e,t,n=1e4){if(!t.valid||!t.search)return{count:0,capped:!1};let r=e.selection.main,i=0,a,o=t.getCursor(e);for(let e=o.next();!e.done;e=o.next()){let t=e.value;if(i+=1,t.from===r.from&&t.to===r.to&&(a=i),i>=n)return{count:i,current:a,capped:!0}}return{count:i,current:a,capped:!1}}function ve(e,t){let n=e.doc.lineAt(t);return!!a(e,n.from,n.to)}function ye(e,t){let n=e.doc.lineAt(t),r=!1;return ae(e).between(n.from,n.to,()=>{r=!0}),r}function be(e,t={}){return typeof navigator<`u`&&(navigator.platform.toLowerCase().includes(`mac`)||navigator.userAgent.includes(`Mac OS X`))?`${t.alt?`⌥`:``}${t.shift?`⇧`:``}⌘${e.toUpperCase()}`:`Ctrl+${t.alt?`Alt+`:``}${t.shift?`Shift+`:``}${e.toUpperCase()}`}function xe(e,t){if(e.eq(t))return;let n=e.toString(),r=t.toString(),i=Math.min(n.length,r.length),a=0;for(;a<i&&n.charCodeAt(a)===r.charCodeAt(a);)a+=1;let o=0;for(;o<i-a&&n.charCodeAt(n.length-1-o)===r.charCodeAt(r.length-1-o);)o+=1;return{from:a,to:n.length-o,insert:t.slice(a,r.length-o)}}function Se(e){let t=/^\s*(\d+)\s*(?:[:,]\s*(\d+)\s*)?$/.exec(e);if(!t)return;let n=Number(t[1]),r=t[2]===void 0?void 0:Number(t[2]);if(!(!Number.isSafeInteger(n)||n<1)&&!(r!==void 0&&(!Number.isSafeInteger(r)||r<1)))return{line:n,column:r}}function Ce(e,t,n=1){let r=Math.min(Math.max(t.line-n+1,1),e.doc.lines),i=e.doc.line(r),a=Math.max((t.column??1)-1,0);return i.from+ne(i.text,a,e.tabSize)}function we(e,t=1){let n=e.selection.main,r=e.doc.lineAt(n.head),i=v(e.sliceDoc(r.from,n.head),e.tabSize,n.head-r.from)+1,a=0;for(let t of e.selection.ranges)a+=t.to-t.from;return{line:r.number+t-1,column:i,selections:e.selection.ranges.length,selectedLength:a}}var Te=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=S(e.state,n.from);return r.line?Ee(e):r.block?Oe(e):!1};function x(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return i?(r(n.update(i)),!0):!1}}var Ee=x(je,0),De=x(w,0),Oe=x((e,t)=>w(e,t,Ae(t)),0);function S(e,t){let n=e.languageDataAt(`commentTokens`,t,1);return n.length?n[0]:{}}var C=50;function ke(e,{open:t,close:n},r,i){let a=e.sliceDoc(r-C,r),o=e.sliceDoc(i,i+C),s=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(o)[0].length,l=a.length-s;if(a.slice(l-t.length,l)==t&&o.slice(c,c+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:i+c,margin:c&&1}};let u,d;i-r<=100?u=d=e.sliceDoc(r,i):(u=e.sliceDoc(r,r+C),d=e.sliceDoc(i-C,i));let f=/^\s*/.exec(u)[0].length,p=/\s*$/.exec(d)[0].length,m=d.length-p-n.length;return u.slice(f,f+t.length)==t&&d.slice(m,m+n.length)==n?{open:{pos:r+f+t.length,margin:+!!/\s/.test(u.charAt(f+t.length))},close:{pos:i-p-n.length,margin:+!!/\s/.test(d.charAt(m-1))}}:null}function Ae(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to);i.from>r.from&&i.from==n.to&&(i=n.to==r.to+1?r:e.doc.lineAt(n.to-1));let a=t.length-1;a>=0&&t[a].to>r.from?t[a].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}function w(e,t,n=t.selection.ranges){let r=n.map(e=>S(t,e.from).block);if(!r.every(e=>e))return null;let i=n.map((e,n)=>ke(t,r[n],e.from,e.to));if(e!=2&&!i.every(e=>e))return{changes:t.changes(n.map((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+` `},{from:e.to,insert:` `+r[t].close}]))};if(e!=1&&i.some(e=>e)){let e=[];for(let t=0,n;t<i.length;t++)if(n=i[t]){let i=r[t],{open:a,close:o}=n;e.push({from:a.pos-i.open.length,to:a.pos+a.margin},{from:o.pos-o.margin,to:o.pos+i.close.length})}return{changes:e}}return null}function je(e,t,n=t.selection.ranges){let r=[],i=-1;ranges:for(let{from:e,to:a}of n){let n=r.length,o=1e9,s;for(let n=e;n<=a;){let c=t.doc.lineAt(n);if(s==null&&(s=S(t,c.from).line,!s))continue ranges;if(c.from>i&&(e==a||a>c.from)){i=c.from;let e=/^\s*/.exec(c.text)[0].length,t=e==c.length,n=c.text.slice(e,e+s.length)==s?e:-1;e<c.text.length&&e<o&&(o=e),r.push({line:c,comment:n,token:s,indent:e,empty:t,single:!1})}n=c.to+1}if(o<1e9)for(let e=n;e<r.length;e++)r[e].indent<r[e].line.text.length&&(r[e].indent=o);r.length==n+1&&(r[n].single=!0)}if(e!=2&&r.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:i,empty:a,single:o}of r)(o||!a)&&e.push({from:t.from+i,insert:n+` `});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(e!=1&&r.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,a=r+i.length;t.text[a-t.from]==` `&&a++,e.push({from:r,to:a})}return{changes:e}}return null}var T=oe.define(),Me=oe.define(),E=ee.define(),D=ee.define({combine(e){return i(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}}),O=l.define({create(){return L.empty},update(e,t){let n=t.state.facet(D),r=t.annotation(T);if(r){let i=N.fromTransaction(t,r.selection),a=r.side,o=a==0?e.undone:e.done;return o=i?P(o,o.length,n.minDepth,i):He(o,t.startState.selection),new L(a==0?r.rest:o,a==0?o:r.rest)}let i=t.annotation(Me);if((i==`full`||i==`before`)&&(e=e.isolate()),t.annotation(m.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let a=N.fromTransaction(t),o=t.annotation(m.time),s=t.annotation(m.userEvent);return a?e=e.addChanges(a,o,s,n,t):t.selection&&(e=e.addSelection(t.startState.selection,o,s,n.newGroupDelay)),(i==`full`||i==`after`)&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}},fromJSON(e){return new L(e.done.map(N.fromJSON),e.undone.map(N.fromJSON))}});function Ne(e={}){return[O,D.of(e),b.domEventHandlers({beforeinput(e,t){let n=e.inputType==`historyUndo`?A:e.inputType==`historyRedo`?j:null;return n?(e.preventDefault(),n(t)):!1}})]}function k(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(O,!1);if(!i)return!1;let a=i.pop(e,n,t);return a?(r(a),!0):!1}}var A=k(0,!1),j=k(1,!1),Pe=k(0,!0),Fe=k(1,!0);function M(e){return function(t){let n=t.field(O,!1);if(!n)return 0;let r=e==0?n.done:n.undone;return r.length-(r.length&&!r[0].changes?1:0)}}var Ie=M(0),Le=M(1),N=class e{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(t){return new e(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){return{changes:this.changes?.toJSON(),mapped:this.mapped?.toJSON(),startSelection:this.startSelection?.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(t){return new e(t.changes&&o.fromJSON(t.changes),[],t.mapped&&te.fromJSON(t.mapped),t.startSelection&&c.fromJSON(t.startSelection),t.selectionsAfter.map(c.fromJSON))}static fromTransaction(t,n){let r=F;for(let e of t.startState.facet(E)){let n=e(t);n.length&&(r=r.concat(n))}return!r.length&&t.changes.empty?null:new e(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,F)}static selection(t){return new e(void 0,F,void 0,void 0,t)}};function P(e,t,n,r){let i=t+1>n+20?t-n-1:0,a=e.slice(i,t);return a.push(r),a}function Re(e,t){let n=[],r=!1;return e.iterChangedRanges((e,t)=>n.push(e,t)),t.iterChangedRanges((e,t,i,a)=>{for(let e=0;e<n.length;){let t=n[e++],o=n[e++];a>=t&&i<=o&&(r=!0)}}),r}function ze(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((e,n)=>e.empty!=t.ranges[n].empty).length===0}function Be(e,t){return e.length?t.length?e.concat(t):e:t}var F=[],Ve=200;function He(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-Ve));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),P(e,e.length-1,1e9,n.setSelAfter(r)))}return[N.selection([t])]}function Ue(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function I(e,t){if(!e.length)return e;let n=e.length,r=F;for(;n;){let i=We(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[N.selection(r)]:F}function We(e,t,n){let r=Be(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):F,n);if(!e.changes)return N.selection(r);let i=e.changes.map(t),a=t.mapDesc(e.changes,!0),o=e.mapped?e.mapped.composeDesc(a):a;return new N(i,g.mapEffects(e.effects,t),o,e.startSelection.map(a),r)}var Ge=/^(input\.type|delete)($|\.)/,L=class e{constructor(e,t,n=0,r=void 0){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new e(this.done,this.undone):this}addChanges(t,n,r,i,a){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&t.changes&&(!r||Ge.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<i.newGroupDelay&&i.joinToEvent(a,Re(s.changes,t.changes))||r==`input.type.compose`)?P(o,o.length-1,i.minDepth,new N(t.changes.compose(s.changes),Be(g.mapEffects(t.effects,s.changes),s.effects),s.mapped,s.startSelection,F)):P(o,o.length,i.minDepth,t),new e(o,F,n,r)}addSelection(t,n,r,i){let a=this.done.length?this.done[this.done.length-1].selectionsAfter:F;return a.length>0&&n-this.prevTime<i&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&ze(a[a.length-1],t)?this:new e(He(this.done,t),this.undone,n,r)}addMapping(t){return new e(I(this.done,t),I(this.undone,t),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=e==0?this.done:this.undone;if(r.length==0)return null;let i=r[r.length-1],a=i.selectionsAfter[0]||(i.startSelection?i.startSelection.map(i.changes.invertedDesc,1):t.selection);if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:T.of({side:e,rest:Ue(r),selection:a}),userEvent:e==0?`select.undo`:`select.redo`,scrollIntoView:!0});if(i.changes){let n=r.length==1?F:r.slice(0,r.length-1);return i.mapped&&(n=I(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:T.of({side:e,rest:n,selection:a}),filter:!1,userEvent:e==0?`undo`:`redo`,scrollIntoView:!0})}return null}};L.empty=new L(F,F);var Ke=[{key:`Mod-z`,run:A,preventDefault:!0},{key:`Mod-y`,mac:`Mod-Shift-z`,run:j,preventDefault:!0},{linux:`Ctrl-Shift-z`,run:j,preventDefault:!0},{key:`Mod-u`,run:Pe,preventDefault:!0},{key:`Alt-u`,mac:`Mod-Shift-u`,run:Fe,preventDefault:!0}];function R(e,t){return c.create(e.ranges.map(t),e.mainIndex)}function z(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:`select`})}function B({state:e,dispatch:t},n){let r=R(e.selection,n);return!r.eq(e.selection,!0)&&(t(z(e,r)),!0)}function V(e,t){return c.cursor(t?e.to:e.from)}function qe(e,t){return B(e,n=>n.empty?e.moveByChar(n,t):V(n,t))}function H(e){return e.textDirectionAt(e.state.selection.main.head)==re.LTR}var Je=e=>qe(e,!H(e)),Ye=e=>qe(e,H(e));function Xe(e,t){return B(e,n=>n.empty?e.moveByGroup(n,t):V(n,t))}var Ze=e=>Xe(e,!H(e)),Qe=e=>Xe(e,H(e));typeof Intl<`u`&&Intl.Segmenter;function $e(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function U(e,t,n){let r=p(e).resolveInner(t.head),i=n?f.closedBy:f.openedBy;for(let a=t.head;;){let t=n?r.childAfter(a):r.childBefore(a);if(!t)break;$e(e,t,i)?r=t:a=n?t.to:t.from}let a=r.type.prop(i),o,s;return s=a&&(o=n?h(e,r.from,1):h(e,r.to,-1))&&o.matched?n?o.end.to:o.end.from:n?r.to:r.from,c.cursor(s,n?-1:1)}var et=e=>B(e,t=>U(e.state,t,!H(e))),tt=e=>B(e,t=>U(e.state,t,H(e)));function nt(e,t){return B(e,n=>{if(!n.empty)return V(n,t);let r=e.moveVertically(n,t);return r.head==n.head?e.moveToLineBoundary(n,t):r})}var rt=e=>nt(e,!1),it=e=>nt(e,!0);function at(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,r=0,i;if(t){for(let t of e.state.facet(b.scrollMargins)){let i=t(e);i?.top&&(n=Math.max(i?.top,n)),i?.bottom&&(r=Math.max(i?.bottom,r))}i=e.scrollDOM.clientHeight-n-r}else i=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:t,height:Math.max(e.defaultLineHeight,i-5)}}function ot(e,t){let n=at(e),{state:r}=e,i=R(r.selection,r=>r.empty?e.moveVertically(r,t,n.height):V(r,t));if(i.eq(r.selection))return!1;let a;if(n.selfScroll){let t=e.coordsAtPos(r.selection.main.head),o=e.scrollDOM.getBoundingClientRect(),s=o.top+n.marginTop,c=o.bottom-n.marginBottom;t&&t.top>s&&t.bottom<c&&(a=b.scrollIntoView(i.main.head,{y:`start`,yMargin:t.top-s}))}return e.dispatch(z(r,i),{effects:a}),!0}var st=e=>ot(e,!1),W=e=>ot(e,!0);function G(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=c.cursor(r.from+n))}return i}var ct=e=>B(e,t=>G(e,t,!0)),lt=e=>B(e,t=>G(e,t,!1)),ut=e=>B(e,t=>G(e,t,!H(e))),dt=e=>B(e,t=>G(e,t,H(e))),ft=e=>B(e,t=>c.cursor(e.lineBlockAt(t.head).from,1)),pt=e=>B(e,t=>c.cursor(e.lineBlockAt(t.head).to,-1));function mt(e,t,n){let r=!1,i=R(e.selection,t=>{let i=h(e,t.head,-1)||h(e,t.head,1)||t.head>0&&h(e,t.head-1,1)||t.head<e.doc.length&&h(e,t.head+1,-1);if(!i||!i.end)return t;r=!0;let a=i.start.from==t.head?i.end.to:i.end.from;return n?c.range(t.anchor,a):c.cursor(a)});return r?(t(z(e,i)),!0):!1}var ht=({state:e,dispatch:t})=>mt(e,t,!1);function K(e,t){let n=R(e.state.selection,e=>{let n=t(e);return c.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0,n.assoc)});return!n.eq(e.state.selection)&&(e.dispatch(z(e.state,n)),!0)}function gt(e,t){return K(e,n=>e.moveByChar(n,t))}var _t=e=>gt(e,!H(e)),vt=e=>gt(e,H(e));function yt(e,t){return K(e,n=>e.moveByGroup(n,t))}var bt=e=>yt(e,!H(e)),xt=e=>yt(e,H(e)),St=e=>K(e,t=>U(e.state,t,!H(e))),Ct=e=>K(e,t=>U(e.state,t,H(e)));function wt(e,t){return K(e,n=>e.moveVertically(n,t))}var Tt=e=>wt(e,!1),Et=e=>wt(e,!0);function Dt(e,t){return K(e,n=>e.moveVertically(n,t,at(e).height))}var Ot=e=>Dt(e,!1),kt=e=>Dt(e,!0),At=e=>K(e,t=>G(e,t,!0)),jt=e=>K(e,t=>G(e,t,!1)),Mt=e=>K(e,t=>G(e,t,!H(e))),Nt=e=>K(e,t=>G(e,t,H(e))),Pt=e=>K(e,t=>c.cursor(e.lineBlockAt(t.head).from)),Ft=e=>K(e,t=>c.cursor(e.lineBlockAt(t.head).to)),It=({state:e,dispatch:t})=>(t(z(e,{anchor:0})),!0),Lt=({state:e,dispatch:t})=>(t(z(e,{anchor:e.doc.length})),!0),Rt=({state:e,dispatch:t})=>(t(z(e,{anchor:e.selection.main.anchor,head:0})),!0),zt=({state:e,dispatch:t})=>(t(z(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),Bt=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:`select`})),!0),Vt=({state:e,dispatch:t})=>{let n=Z(e).map(({from:t,to:n})=>c.range(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:c.create(n),userEvent:`select`})),!0},Ht=({state:e,dispatch:t})=>{let n=R(e.selection,t=>{let n=p(e),r=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);e.node.from>=r.node.from&&e.node.to<=r.node.to&&(r=e)}for(let e=r;e;e=e.next){let{node:n}=e;if((n.from<t.from&&n.to>=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return c.range(n.to,n.from)}return t});return!n.eq(e.selection)&&(t(z(e,n)),!0)};function Ut(e,t){let{state:n}=e,r=n.selection,i=n.selection.ranges.slice();for(let r of n.selection.ranges){let a=n.doc.lineAt(r.head);if(t?a.to<e.state.doc.length:a.from>0)for(let n=r;;){let r=e.moveVertically(n,t);if(r.head<a.from||r.head>a.to){i.some(e=>e.head==r.head)||i.push(r);break}if(r.head==n.head)break;n=r}}return i.length!=r.ranges.length&&(e.dispatch(z(n,c.create(i,i.length-1))),!0)}var Wt=e=>Ut(e,!1),Gt=e=>Ut(e,!0),Kt=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=c.create([n.main]):n.main.empty||(r=c.create([c.cursor(n.main.head)])),r?(t(z(e,r)),!0):!1};function q(e,t){if(e.state.readOnly)return!1;let n=`delete.selection`,{state:r}=e,i=r.changeByRange(r=>{let{from:i,to:a}=r;if(i==a){let o=t(r);o<i?(n=`delete.backward`,o=J(e,o,!1)):o>i&&(n=`delete.forward`,o=J(e,o,!0)),i=Math.min(i,o),a=Math.max(a,o)}else i=J(e,i,!1),a=J(e,a,!0);return i==a?{range:r}:{changes:{from:i,to:a},range:c.cursor(i,i<r.head?-1:1)}});return!i.changes.empty&&(e.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:n==`delete.selection`?b.announce.of(r.phrase(`Selection deleted`)):void 0})),!0)}function J(e,t,n){if(e instanceof b)for(let r of e.state.facet(b.atomicRanges).map(t=>t(e)))r.between(t,t,(e,r)=>{e<t&&r>t&&(t=n?r:e)});return t}var qt=(e,t,n)=>q(e,r=>{let i=r.from,{state:a}=e,o=a.doc.lineAt(i),s,c;if(n&&!t&&i>o.from&&i<o.from+200&&!/[^ \t]/.test(s=o.text.slice(0,i-o.from))){if(s[s.length-1]==` `)return i-1;let e=v(s,a.tabSize)%_(a)||_(a);for(let t=0;t<e&&s[s.length-1-t]==` `;t++)i--;c=i}else c=u(o.text,i-o.from,t,t)+o.from,c==i&&o.number!=(t?a.doc.lines:1)?c+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(o.text.slice(c-o.from,i-o.from))&&(c=u(o.text,c-o.from,!1,!1)+o.from);return c}),Y=e=>qt(e,!1,!0),Jt=e=>qt(e,!0,!1),Yt=(e,t)=>q(e,n=>{let r=n.head,{state:i}=e,a=i.doc.lineAt(r),o=i.charCategorizer(r);for(let e=null;;){if(r==(t?a.to:a.from)){r==n.head&&a.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let s=u(a.text,r-a.from,t)+a.from,c=a.text.slice(Math.min(r,s)-a.from,Math.max(r,s)-a.from),l=o(c);if(e!=null&&l!=e)break;(c!=` `||r!=n.head)&&(e=l),r=s}return r}),X=e=>Yt(e,!1),Xt=e=>Yt(e,!0),Zt=e=>q(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),Qt=e=>q(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),$t=e=>q(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),en=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:d.of([``,``])},range:c.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:`input`})),!0},tn=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||t.from==0||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),i=n==r.from?n-1:u(r.text,n-r.from,!1)+r.from,a=n==r.to?n+1:u(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:a,insert:e.doc.slice(n,a).append(e.doc.slice(i,n))},range:c.cursor(a)}});return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:`move.character`})),!0)};function Z(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),a=e.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=a.to,e.ranges.push(r)}else t.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return t}function nn(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let t of Z(e)){if(n?t.to==e.doc.length:t.from==0)continue;let a=e.doc.lineAt(n?t.to+1:t.from-1),o=a.length+1;if(n){r.push({from:t.to,to:a.to},{from:t.from,insert:a.text+e.lineBreak});for(let n of t.ranges)i.push(c.range(Math.min(e.doc.length,n.anchor+o),Math.min(e.doc.length,n.head+o)))}else{r.push({from:a.from,to:t.from},{from:t.to,insert:e.lineBreak+a.text});for(let e of t.ranges)i.push(c.range(e.anchor-o,e.head-o))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:c.create(i,e.selection.mainIndex),userEvent:`move.line`})),!0):!1}var rn=({state:e,dispatch:t})=>nn(e,t,!1),an=({state:e,dispatch:t})=>nn(e,t,!0);function on(e,t,n){if(e.readOnly)return!1;let r=[];for(let t of Z(e))n?r.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):r.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let i=e.changes(r);return t(e.update({changes:i,selection:e.selection.map(i,n?1:-1),scrollIntoView:!0,userEvent:`input.copyline`})),!0}var sn=({state:e,dispatch:t})=>on(e,t,!1),cn=({state:e,dispatch:t})=>on(e,t,!0),ln=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(Z(t).map(({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n}))),r=R(t.selection,t=>{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:`delete.line`}),!0};function un(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=p(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),a;return r&&i&&r.to<=t&&i.from>=t&&(a=r.type.prop(f.closedBy))&&a.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}var dn=pn(!1),fn=pn(!0);function pn(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let i=t.changeByRange(n=>{let{from:i,to:a}=n,o=t.doc.lineAt(i),l=!e&&i==a&&un(t,i);e&&(i=a=(a<=o.to?o:t.doc.lineAt(a)).to);let u=new y(t,{simulateBreak:i,simulateDoubleBreak:!!l}),f=s(u,i);for(f??=v(/^\s*/.exec(t.doc.lineAt(i).text)[0],t.tabSize);a<o.to&&/\s/.test(o.text[a-o.from]);)a++;l?{from:i,to:a}=l:i>o.from&&i<o.from+100&&!/\S/.test(o.text.slice(0,i))&&(i=o.from);let p=[``,r(t,f)];return l&&p.push(r(t,u.lineIndent(o.from,-1))),{changes:{from:i,to:a,insert:d.of(p)},range:c.cursor(i+1+p[1].length)}});return n(t.update(i,{scrollIntoView:!0,userEvent:`input`})),!0}}function Q(e,t){let n=-1;return e.changeByRange(r=>{let i=[];for(let a=r.from;a<=r.to;){let o=e.doc.lineAt(a);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),a=o.to+1}let a=e.changes(i);return{changes:i,range:c.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}var mn=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),i=new y(e,{overrideIndentation:e=>n[e]??-1}),a=Q(e,(t,a,o)=>{let c=s(i,t.from);if(c==null)return;/\S/.test(t.text)||(c=0);let l=/^\s*/.exec(t.text)[0],u=r(e,c);(l!=u||o.from<t.from+l.length)&&(n[t.from]=c,a.push({from:t.from,to:t.from+l.length,insert:u}))});return a.changes.empty||t(e.update(a,{userEvent:`indent`})),!0},hn=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Q(e,(t,n)=>{n.push({from:t.from,insert:e.facet(ie)})}),{userEvent:`input.indent`})),!0),$=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Q(e,(t,n)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let a=v(i,e.tabSize),o=0,s=r(e,Math.max(0,a-_(e)));for(;o<i.length&&o<s.length&&i.charCodeAt(o)==s.charCodeAt(o);)o++;n.push({from:t.from+o,to:t.from+i.length,insert:s.slice(o)})}),{userEvent:`delete.dedent`})),!0),gn=e=>(e.setTabFocusMode(),!0),_n=[{key:`Ctrl-b`,run:Je,shift:_t,preventDefault:!0},{key:`Ctrl-f`,run:Ye,shift:vt},{key:`Ctrl-p`,run:rt,shift:Tt},{key:`Ctrl-n`,run:it,shift:Et},{key:`Ctrl-a`,run:ft,shift:Pt},{key:`Ctrl-e`,run:pt,shift:Ft},{key:`Ctrl-d`,run:Jt},{key:`Ctrl-h`,run:Y},{key:`Ctrl-k`,run:Zt},{key:`Ctrl-Alt-h`,run:X},{key:`Ctrl-o`,run:en},{key:`Ctrl-t`,run:tn},{key:`Ctrl-v`,run:W}],vn=[{key:`ArrowLeft`,run:Je,shift:_t,preventDefault:!0},{key:`Mod-ArrowLeft`,mac:`Alt-ArrowLeft`,run:Ze,shift:bt,preventDefault:!0},{mac:`Cmd-ArrowLeft`,run:ut,shift:Mt,preventDefault:!0},{key:`ArrowRight`,run:Ye,shift:vt,preventDefault:!0},{key:`Mod-ArrowRight`,mac:`Alt-ArrowRight`,run:Qe,shift:xt,preventDefault:!0},{mac:`Cmd-ArrowRight`,run:dt,shift:Nt,preventDefault:!0},{key:`ArrowUp`,run:rt,shift:Tt,preventDefault:!0},{mac:`Cmd-ArrowUp`,run:It,shift:Rt},{mac:`Ctrl-ArrowUp`,run:st,shift:Ot},{key:`ArrowDown`,run:it,shift:Et,preventDefault:!0},{mac:`Cmd-ArrowDown`,run:Lt,shift:zt},{mac:`Ctrl-ArrowDown`,run:W,shift:kt},{key:`PageUp`,run:st,shift:Ot},{key:`PageDown`,run:W,shift:kt},{key:`Home`,run:lt,shift:jt,preventDefault:!0},{key:`Mod-Home`,run:It,shift:Rt},{key:`End`,run:ct,shift:At,preventDefault:!0},{key:`Mod-End`,run:Lt,shift:zt},{key:`Enter`,run:dn,shift:dn},{key:`Mod-a`,run:Bt},{key:`Backspace`,run:Y,shift:Y,preventDefault:!0},{key:`Delete`,run:Jt,preventDefault:!0},{key:`Mod-Backspace`,mac:`Alt-Backspace`,run:X,preventDefault:!0},{key:`Mod-Delete`,mac:`Alt-Delete`,run:Xt,preventDefault:!0},{mac:`Mod-Backspace`,run:Qt,preventDefault:!0},{mac:`Mod-Delete`,run:$t,preventDefault:!0}].concat(_n.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),yn=[{key:`Alt-ArrowLeft`,mac:`Ctrl-ArrowLeft`,run:et,shift:St},{key:`Alt-ArrowRight`,mac:`Ctrl-ArrowRight`,run:tt,shift:Ct},{key:`Alt-ArrowUp`,run:rn},{key:`Shift-Alt-ArrowUp`,run:sn},{key:`Alt-ArrowDown`,run:an},{key:`Shift-Alt-ArrowDown`,run:cn},{key:`Mod-Alt-ArrowUp`,run:Wt},{key:`Mod-Alt-ArrowDown`,run:Gt},{key:`Escape`,run:Kt},{key:`Mod-Enter`,run:fn},{key:`Alt-l`,mac:`Ctrl-l`,run:Vt},{key:`Mod-i`,run:Ht,preventDefault:!0},{key:`Mod-[`,run:$},{key:`Mod-]`,run:hn},{key:`Mod-Alt-\\`,run:mn},{key:`Shift-Mod-k`,run:ln},{key:`Shift-Mod-\\`,run:ht},{key:`Mod-/`,run:Te},{key:`Alt-A`,run:De},{key:`Ctrl-m`,mac:`Shift-Alt-m`,run:gn}].concat(vn),bn={key:`Tab`,run:hn,shift:$};export{ue as C,fe as S,Se as _,E as a,be as b,A as c,ye as d,me as f,xe as g,ge as h,bn as i,Ie as l,Ce as m,Ne as n,j as o,we as p,Ke as r,Le as s,yn as t,ve as u,_e as v,ce as w,pe as x,he as y};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/workspace-actions.svelte-DL9xv7lJ.js","assets/rolldown-runtime-XKyaHtl9.js","assets/toast-state.svelte-C3jh5vEx.js","assets/index-client-D3jEdWh6.js","assets/center-tabs.svelte-CyhCD_6b.js","assets/channel-6wGoOwGx.js","assets/notify.svelte-BTEXJZ8P.js","assets/activity-notices-C9aphS1s.js","assets/view-keys-CJ6dmIxc.js","assets/workspace-state.svelte-DhP5cESH.js","assets/conversation-connection-mLNyfV2d.js","assets/adapters-DNU88KT0.js","assets/api-CHNbLvvY.js","assets/logs.api-DMmVlkSz.js","assets/workbench-connection-CGHdORw3.js","assets/git.api-CTu-tG8A.js","assets/filesystem-BbIXrkGB.js","assets/launches.api-CaotSs6l.js","assets/scratch-notes.api-B2gOOK6Z.js","assets/client-nxDuQL9v.js"])))=>i.map(i=>d[i]);
2
+ import"./toast-state.svelte-C3jh5vEx.js";import{T as e,j as t}from"./api-CHNbLvvY.js";import{a as n,n as r}from"./view-keys-CJ6dmIxc.js";import{t as i}from"./file-display-COCOpvRv.js";import{t as a}from"./file-state.svelte-CbCwgkVc.js";import{B as o,U as s,c,f as l,g as u,h as d,n as f,p,u as m}from"./center-tabs.svelte-CyhCD_6b.js";import{o as h}from"./notify.svelte-BTEXJZ8P.js";import{t as g}from"./workspace-state.svelte-DhP5cESH.js";import{i as _}from"./index-client-D3jEdWh6.js";import{r as v}from"./logs.api-DMmVlkSz.js";import{t as y}from"./preload-helper-BLdHbfdN.js";function b(e){let t=e.lastIndexOf(`/`);return t<0?``:e.slice(0,t)}function x(e){return e.slice(e.lastIndexOf(`/`)+1)}function S(e,t){return e?`${e}/${t}`:t}function C(e,t){return t===``||e===t||e.startsWith(`${t}/`)}function w(e,t,n){return e===t?n:e.startsWith(`${t}/`)?`${n}${e.slice(t.length)}`:e}function T(e,t){if(t)return e.length;let n=e.lastIndexOf(`.`);return n>0?n:e.length}function E(e,t,n){let r=e.trim();if(!r)return`Enter a name.`;if(r===`.`||r===`..`)return`That name is not allowed.`;if(/[\\/]/.test(r))return`Names cannot contain slashes.`;if(r!==n&&t.has(r))return`“${r}” already exists here.`}function D(e,t,n){let r=t?-1:e.lastIndexOf(`.`),i=r>0?e.slice(0,r):e,a=r>0?e.slice(r):``;for(let e=1;;e+=1){let t=`${i} copy${e===1?``:` ${e}`}${a}`;if(!n.has(t))return t}}function O(e,t,n){let r=[],i=new Set;for(let a of e){if(a.path===``)return{ok:!1,reason:`Cannot move the root.`};if(a.kind===`directory`&&C(t,a.path))return{ok:!1,reason:`Cannot drop a folder into itself.`};if(n===`move`&&b(a.path)===t)continue;let e=S(t,x(a.path));if(i.has(e))return{ok:!1,reason:`Two items would have the same name.`};i.add(e),r.push({from:a.path,to:e})}return r.length===0?{ok:!1,reason:`Already in that folder.`}:{ok:!0,moves:r}}function k(e){let t=[...new Set(e)].sort((e,t)=>e.length-t.length),n=[];for(let e of t)n.some(t=>C(e,t))||n.push(e);return e.filter(e=>n.includes(e))}function A(e,t){return e!==t}function j(e){return e.currentDraft===e.savedDraft?{draft:e.savedText,dirty:!1}:{draft:e.currentDraft,dirty:A(e.currentDraft,e.savedText)}}function M(e,t){return`${e}:${encodeURIComponent(t)}`}function N(e){f({kind:`file`,id:e})}async function P(t){let n=a.fileViews[r(t)];if(n){n.loading=!0,n.error=void 0;try{let t=await e(n.projectId,n.path,n.line);if(n.dirty)return;n.content=t,n.path=t.path,n.draft=t.type===`text`?t.text??``:void 0,F(n,t),n.dirty=!1,n.saveError=void 0}catch(e){let t=e instanceof Error?e.message:String(e);n.error=t,h.error(`Could not open file`,{description:t})}finally{n.loading=!1}}}function F(e,t){if(e.displayMode!==void 0||t.type!==`text`)return;let n=i(t.relativePath,t.text??``);n!==i(t.relativePath)&&(e.displayMode=n)}async function I(e){if(e.projectId!==g.selectedProjectId){let{selectProject:t}=await y(async()=>{let{selectProject:e}=await import(`./workspace-actions.svelte-DL9xv7lJ.js`).then(e=>e.f);return{selectProject:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]));await t(e.projectId)}let t=M(e.projectId,e.path),n=r(t);N(t),a.fileViews[n]??={id:t,projectId:e.projectId,path:e.path,line:e.line,wrapLines:o.wrapLongLines,loading:!1},a.fileViews[n].line=e.line,u({kind:`file`,id:t}),await P(t)}async function L(e){let t=a.fileViews[r(e)];t&&(N(e),u({kind:`file`,id:e}),!t.content&&!t.loading&&await P(e))}async function R(e){a.fileViews[r(e)]?.dirty?h.warning(`File has unsaved changes`,{description:`Save or discard your changes before refreshing.`}):await P(e)}function z(e,t){let n=a.fileViews[r(e)];n?.content&&n.content.type===`text`&&(n.draft=t,n.dirty=A(t,n.content.text??``),n.saveError=void 0)}async function B(e){let n=a.fileViews[r(e)];if(!n?.content||n.content.type!==`text`||!n.dirty)return!0;if(n.saving||!n.content.editable||!n.content.revision||n.content.truncated)return!1;let i=n.draft??``;n.saving=!0,n.saveError=void 0;try{let e=await t({projectId:n.projectId,path:n.content.relativePath,text:i,expectedRevision:n.content.revision});n.content=e,n.path=e.path;let r=j({currentDraft:n.draft??``,savedDraft:i,savedText:e.text??``});return n.draft=r.draft,n.dirty=r.dirty,!n.dirty}catch(e){let t=e instanceof v&&e.code===`FILE_REVISION_CONFLICT`,r=t?`This file changed on disk. Your draft is preserved; refresh after copying or discarding your changes.`:e instanceof Error?e.message:String(e);return n.saveError=r,h.error(t?`File changed on disk`:`Could not save file`,{description:r}),!1}finally{n.saving=!1}}function V(e){let t=a.fileViews[r(e)];t&&(t.displayMode=(t.displayMode??i(t.content?.relativePath??t.path))===`raw`?`rendered`:`raw`)}function H(e){let t=a.fileViews[r(e)];if(!t)return;let n=!t.wrapLines;t.wrapLines=n,s(n)}function U(e){let t=(t,n)=>t===e.projectId&&(n===e.path||!!(e.descendants&&n.startsWith(`${e.path}/`))),i=new _(Object.values(a.fileViews).filter(e=>t(e.projectId,e.content?.relativePath??e.path)).map(e=>e.id)),o=new _(Object.values(a.mermaidViews).filter(e=>e.origin===`file`&&t(e.projectId,e.relativePath??e.path)).map(e=>e.id));if(i.size===0&&o.size===0)return;let s=g.activeCenterTab,c=!!(s&&(s.kind===`file`&&i.has(s.id)||s.kind===`mermaid`&&o.has(s.id))),l=g.openCenterTabs.filter(e=>(e.kind!==`file`||!i.has(e.id))&&(e.kind!==`mermaid`||!o.has(e.id)));for(let e of i)delete a.fileViews[r(e)];for(let e of o)delete a.mermaidViews[n(e)];p(l),c&&d(l.at(-1))}function W(e,t,n){return e===t?n:e.endsWith(`/${t}`)?`${e.slice(0,e.length-t.length)}${n}`:e}function G(e){let{projectId:t,from:i,to:o}=e,s=e=>e===i||e.startsWith(`${i}/`),c=Object.values(a.mermaidViews).filter(e=>e.origin===`file`&&e.projectId===t&&s(e.relativePath??e.path)).map(e=>e.id);if(c.length>0){let e=new _(c),t=g.activeCenterTab?.kind===`mermaid`&&e.has(g.activeCenterTab.id),r=g.openCenterTabs.filter(t=>t.kind!==`mermaid`||!e.has(t.id));for(let t of e)delete a.mermaidViews[n(t)];p(r),t&&d(r.at(-1))}for(let e of Object.values(a.fileViews)){if(e.projectId!==t)continue;let n=e.content?.relativePath??e.path;if(!s(n))continue;let c=w(n,i,o),u=e.id,d=M(t,c);if(d===u)continue;let f={...e,id:d,path:W(e.path,n,c),content:e.content&&{...e.content,path:W(e.content.path,n,c),relativePath:c,name:c.slice(c.lastIndexOf(`/`)+1)}};delete a.fileViews[r(u)],a.fileViews[r(d)]=f,l({kind:`file`,id:u},{kind:`file`,id:d})}}function K(e){let t={kind:`file`,id:e},n=g.activeCenterTab?.kind===`file`&&g.activeCenterTab.id===e,i=c(t);m(t),delete a.fileViews[r(e)],n&&d(i)}export{w as _,G as a,V as c,x as d,D as f,T as g,O as h,R as i,H as l,b as m,U as n,B as o,S as p,I as r,L as s,K as t,z as u,k as v,E as y};
@@ -0,0 +1 @@
1
+ import"./adapters-DNU88KT0.js";
@@ -1 +1 @@
1
- import{at as e,vt as t}from"./toast-state.svelte-C3jh5vEx.js";import{i as n,r}from"./index-client-D3jEdWh6.js";import{I as i,k as a,m as o,p as s,r as c}from"./git.api-D2CfUXZW.js";import{c as l,l as u}from"./workbench-connection-gGGv4o8i.js";import{t as d}from"./pr-store-model-DxsbPrU3.js";function f(e,t){return e&&e.revision>t.revision?e:t}function p(e,t){let n=e[0];if(!n)return;if(!t)return{projectId:n.projectId,visible:!1};let r=[...new Set(e.flatMap(e=>e.detail??[]))].slice(0,4),i=e.find(e=>e.hint&&!r.includes(e.hint))?.hint;return{projectId:n.projectId,visible:e.some(e=>e.visible),...r.length?{detail:r}:{},...i?{hint:i}:{}}}function m(e){return!e.visible&&!e.detail?.length&&!e.hint}function h(e,t){return{snapshot:e.repos.length>0&&(t.snapshotRevision===void 0||t.snapshotRevision<e.revision),details:e.detail.filter(n=>{let r=t.detailRevisions[n];return r!==void 0&&r<e.revision})}}function g(e,t){return t!==void 0&&(e??-1)<t}var _=class{run;running;queued;constructor(e){this.run=e}fresh(){return this.running?(this.queued??=this.running.catch(()=>void 0).then(()=>(this.queued=void 0,this.start())),this.queued):this.start()}start(){let e=this.run().finally(()=>{this.running===e&&(this.running=void 0)});return this.running=e,e}},v=t({}),y=t({}),b=new r,x=new r,S=new r,C=new r,w=new r,T=new r,E=new r,D=0,O=4e3;function k(e){return v[e]??={details:{},applied:-1,refreshing:!1,loadingDetail:{}}}function A(e){return v[e]?.snapshot}function j(e,t){return v[e]?.details[t]}function M(e){let t=v[e];return{error:t?.error,refreshing:t?.refreshing??!1}}function N(e,t){return v[e]?.loadingDetail[t]??!1}function P(e){return y[e]}function F(e,t){y[e]=t,clearTimeout(T.get(e)),T.set(e,setTimeout(()=>{T.delete(e),delete y[e]},O))}function I(e){let t=Symbol();return E.set(t,e),()=>E.delete(t)}function L(e){let t=k(e.projectId);if(f(t.snapshot,e)!==e)return;t.snapshot=e,t.error=void 0;let r=new n(e.summaries.map(e=>e.relativePath));if(e.loaded)for(let e of Object.keys(t.details))r.has(e)||delete t.details[e];z(e.projectId)}function R(e){let t=k(e.projectId);f(t.details[e.repo],e)===e&&(t.details[e.repo]=e,z(e.projectId))}function z(e){for(let t of E.values())t(e)}function B(e){let t=S.get(e);return t||(t=new _(async()=>{let t=D;try{let n=await o(e);t===D&&L(n)}catch(t){k(e).error=String(t)}}),S.set(e,t)),t}function V(e,t){let n=JSON.stringify([e,t]),r=C.get(n);return r||(r=new _(async()=>{let n=D,r=k(e);r.loadingDetail[t]=!r.details[t];try{let r=await s(e,t);n===D&&R(r)}catch(e){r.error=String(e)}finally{r.loadingDetail[t]=!1}}),C.set(n,r)),r}function H(e){return B(e).fresh()}function U(e,t){return V(e,t).fresh()}async function W(e,t){let n=k(e);n.refreshing=!0;try{await a(e,t,!0),await G(e,t)}finally{n.refreshing=!1}}function G(e,t){let n=k(e),r=t?n.details[t]?[t]:[]:Object.keys(n.details);return Promise.all([H(e),...r.map(t=>U(e,t))])}async function K(e,t,n){let r=k(e);if(!g(r.applied,t)||t===void 0)return;let i=w.get(e);i&&i.revision>=t&&await i.done,g(r.applied,t)&&(await G(e,n),r.applied=Math.max(r.applied,t))}var q=new d(async()=>{let e=D,t=new r;for(let e of b.values())t.set(e.projectId,[...t.get(e.projectId)??[],e]);for(let e of[...x.keys()])t.has(e)||(await c(e),x.delete(e));for(let[n,r]of t){let t=p(r,typeof document>`u`||document.visibilityState===`visible`);if(JSON.stringify(x.get(n))!==JSON.stringify(t)){if(m(t)?await c(n):await i(t),e!==D)return;if(x.set(n,t),!m(t)){H(n);for(let e of t.detail??[])U(n,e)}}}});function J(t){let n=t(),r=Symbol();return n&&b.set(r,n),e(()=>q.schedule()),()=>{b.delete(r),q.schedule()}}function Y(e){let t=Symbol();return b.set(t,e),q.schedule(),()=>{b.delete(t),q.schedule()}}function X(){let e=()=>q.schedule();document.addEventListener(`visibilitychange`,e);let t=u(()=>{D++,S.clear(),C.clear(),w.clear();for(let e of Object.values(v)){e.applied=-1,e.snapshot&&={...e.snapshot,revision:-1};for(let[t,n]of Object.entries(e.details))e.details[t]={...n,revision:-1}}x.clear(),q.schedule();for(let e of new n([...b.values()].map(e=>e.projectId)))G(e)}),r=l(`git.workspace.changed`,e=>{let{projectId:t,revision:n,repos:r,detail:i}=e.data??{};if(typeof t!=`string`||typeof n!=`number`||!Array.isArray(r)||!Array.isArray(i))return;let a=k(t),o=h({revision:n,repos:r,detail:i},{snapshotRevision:a.snapshot?.revision,detailRevisions:Object.fromEntries(Object.entries(a.details).map(([e,t])=>[e,t.revision]))}),s=Promise.all([o.snapshot?H(t):void 0,...o.details.map(e=>U(t,e))]).then(()=>{a.applied=Math.max(a.applied,n),z(t),w.get(t)?.done===s&&w.delete(t)}),c=w.get(t);(!c||c.revision<=n)&&w.set(t,{revision:n,done:s})});return()=>{r(),t(),document.removeEventListener(`visibilitychange`,e)}}function Z(e,t){let n=Y({projectId:e,visible:!0}),r,i=I(n=>{n===e&&(clearTimeout(r),r=setTimeout(t,150))});return()=>{clearTimeout(r),i(),n()}}export{A as a,Y as c,H as d,W as f,J as h,N as i,I as l,Z as m,P as n,M as o,X as p,j as r,F as s,K as t,U as u};
1
+ import{at as e,vt as t}from"./toast-state.svelte-C3jh5vEx.js";import{i as n,r}from"./index-client-D3jEdWh6.js";import{I as i,k as a,m as o,p as s,r as c}from"./git.api-CTu-tG8A.js";import{c as l,l as u}from"./workbench-connection-CGHdORw3.js";import{t as d}from"./pr-store-model-DxsbPrU3.js";function f(e,t){return e&&e.revision>t.revision?e:t}function p(e,t){let n=e[0];if(!n)return;if(!t)return{projectId:n.projectId,visible:!1};let r=[...new Set(e.flatMap(e=>e.detail??[]))].slice(0,4),i=e.find(e=>e.hint&&!r.includes(e.hint))?.hint;return{projectId:n.projectId,visible:e.some(e=>e.visible),...r.length?{detail:r}:{},...i?{hint:i}:{}}}function m(e){return!e.visible&&!e.detail?.length&&!e.hint}function h(e,t){return{snapshot:e.repos.length>0&&(t.snapshotRevision===void 0||t.snapshotRevision<e.revision),details:e.detail.filter(n=>{let r=t.detailRevisions[n];return r!==void 0&&r<e.revision})}}function g(e,t){return t!==void 0&&(e??-1)<t}var _=class{run;running;queued;constructor(e){this.run=e}fresh(){return this.running?(this.queued??=this.running.catch(()=>void 0).then(()=>(this.queued=void 0,this.start())),this.queued):this.start()}start(){let e=this.run().finally(()=>{this.running===e&&(this.running=void 0)});return this.running=e,e}},v=t({}),y=t({}),b=new r,x=new r,S=new r,C=new r,w=new r,T=new r,E=new r,D=0,O=4e3;function k(e){return v[e]??={details:{},applied:-1,refreshing:!1,loadingDetail:{}}}function A(e){return v[e]?.snapshot}function j(e,t){return v[e]?.details[t]}function M(e){let t=v[e];return{error:t?.error,refreshing:t?.refreshing??!1}}function N(e,t){return v[e]?.loadingDetail[t]??!1}function P(e){return y[e]}function F(e,t){y[e]=t,clearTimeout(T.get(e)),T.set(e,setTimeout(()=>{T.delete(e),delete y[e]},O))}function I(e){let t=Symbol();return E.set(t,e),()=>E.delete(t)}function L(e){let t=k(e.projectId);if(f(t.snapshot,e)!==e)return;t.snapshot=e,t.error=void 0;let r=new n(e.summaries.map(e=>e.relativePath));if(e.loaded)for(let e of Object.keys(t.details))r.has(e)||delete t.details[e];z(e.projectId)}function R(e){let t=k(e.projectId);f(t.details[e.repo],e)===e&&(t.details[e.repo]=e,z(e.projectId))}function z(e){for(let t of E.values())t(e)}function B(e){let t=S.get(e);return t||(t=new _(async()=>{let t=D;try{let n=await o(e);t===D&&L(n)}catch(t){k(e).error=String(t)}}),S.set(e,t)),t}function V(e,t){let n=JSON.stringify([e,t]),r=C.get(n);return r||(r=new _(async()=>{let n=D,r=k(e);r.loadingDetail[t]=!r.details[t];try{let r=await s(e,t);n===D&&R(r)}catch(e){r.error=String(e)}finally{r.loadingDetail[t]=!1}}),C.set(n,r)),r}function H(e){return B(e).fresh()}function U(e,t){return V(e,t).fresh()}async function W(e,t){let n=k(e);n.refreshing=!0;try{await a(e,t,!0),await G(e,t)}finally{n.refreshing=!1}}function G(e,t){let n=k(e),r=t?n.details[t]?[t]:[]:Object.keys(n.details);return Promise.all([H(e),...r.map(t=>U(e,t))])}async function K(e,t,n){let r=k(e);if(!g(r.applied,t)||t===void 0)return;let i=w.get(e);i&&i.revision>=t&&await i.done,g(r.applied,t)&&(await G(e,n),r.applied=Math.max(r.applied,t))}var q=new d(async()=>{let e=D,t=new r;for(let e of b.values())t.set(e.projectId,[...t.get(e.projectId)??[],e]);for(let e of[...x.keys()])t.has(e)||(await c(e),x.delete(e));for(let[n,r]of t){let t=p(r,typeof document>`u`||document.visibilityState===`visible`);if(JSON.stringify(x.get(n))!==JSON.stringify(t)){if(m(t)?await c(n):await i(t),e!==D)return;if(x.set(n,t),!m(t)){H(n);for(let e of t.detail??[])U(n,e)}}}});function J(t){let n=t(),r=Symbol();return n&&b.set(r,n),e(()=>q.schedule()),()=>{b.delete(r),q.schedule()}}function Y(e){let t=Symbol();return b.set(t,e),q.schedule(),()=>{b.delete(t),q.schedule()}}function X(){let e=()=>q.schedule();document.addEventListener(`visibilitychange`,e);let t=u(()=>{D++,S.clear(),C.clear(),w.clear();for(let e of Object.values(v)){e.applied=-1,e.snapshot&&={...e.snapshot,revision:-1};for(let[t,n]of Object.entries(e.details))e.details[t]={...n,revision:-1}}x.clear(),q.schedule();for(let e of new n([...b.values()].map(e=>e.projectId)))G(e)}),r=l(`git.workspace.changed`,e=>{let{projectId:t,revision:n,repos:r,detail:i}=e.data??{};if(typeof t!=`string`||typeof n!=`number`||!Array.isArray(r)||!Array.isArray(i))return;let a=k(t),o=h({revision:n,repos:r,detail:i},{snapshotRevision:a.snapshot?.revision,detailRevisions:Object.fromEntries(Object.entries(a.details).map(([e,t])=>[e,t.revision]))}),s=Promise.all([o.snapshot?H(t):void 0,...o.details.map(e=>U(t,e))]).then(()=>{a.applied=Math.max(a.applied,n),z(t),w.get(t)?.done===s&&w.delete(t)}),c=w.get(t);(!c||c.revision<=n)&&w.set(t,{revision:n,done:s})});return()=>{r(),t(),document.removeEventListener(`visibilitychange`,e)}}function Z(e,t){let n=Y({projectId:e,visible:!0}),r,i=I(n=>{n===e&&(clearTimeout(r),r=setTimeout(t,150))});return()=>{clearTimeout(r),i(),n()}}export{A as a,Y as c,H as d,W as f,J as h,N as i,I as l,Z as m,P as n,M as o,X as p,j as r,F as s,K as t,U as u};
@@ -1 +1 @@
1
- import{o as e}from"./workbench-connection-gGGv4o8i.js";async function t(t){return e(`git.operation.start`,t)}async function n(t){return e(`git.operation.bulk.start`,t)}async function r(t){return e(`git.operation.cancel`,{operationId:t})}var i=12e4;async function a(t){return await e(`git.workspace.watch.sync`,t)}async function o(t){return await e(`git.workspace.watch.clear`,{projectId:t})}async function s(t){return await e(`git.workspace.snapshot.get`,{projectId:t},{timeoutMs:i})}async function c(t,n){return await e(`git.repo.detail.get`,{projectId:t,repo:n},{timeoutMs:i})}async function l(t,n,r=!0){return await e(`git.workspace.refresh`,{projectId:t,...n?{repo:n}:{},force:r},{timeoutMs:i})}async function u(t,n=!1){return await e(`git.project.files.status.get`,{projectId:t,refresh:n},{timeoutMs:i})}async function d(t,n){return await e(`git.branches.list`,{projectId:t,repo:n})}async function f(t,n,r){return await e(`git.branch.create`,{projectId:t,repo:n,name:r})}async function p(t,n,r){return await e(`git.branch.switch`,{projectId:t,repo:n,name:r})}async function m(t,n,r){return await e(`git.branch.delete`,{projectId:t,repo:n,name:r})}async function h(t,n,r,i){return await e(`git.worktree.create`,{projectId:t,repo:n,branch:r,...i?{id:i}:{}})}async function g(t,n,r){return await e(`git.worktree.remove`,{projectId:t,repo:n,force:r.force,deleteBranch:r.deleteBranch})}async function _(t,n,r,i){return await e(`git.stash.create`,{projectId:t,repo:n,area:r,...i?{paths:[...i]}:{}})}async function v(t,n,r,i){return await e(`git.stash.apply`,{projectId:t,repo:n,index:r,expectedHash:i})}async function y(t,n,r,i){return await e(`git.stash.drop`,{projectId:t,repo:n,index:r,expectedHash:i})}async function b(t,n,r,i){return await e(`git.file.diff.get`,{projectId:t,repo:n,path:r,area:i})}async function x(t,n,r){return await e(`git.file.stage`,{projectId:t,repo:n,path:r})}async function S(t,n,r){return await e(`git.file.unstage`,{projectId:t,repo:n,path:r})}async function C(t,n,r){return await e(`git.file.discard`,{projectId:t,repo:n,path:r})}async function w(t,n){return await e(`github.status.get`,{projectId:t,repo:n})}async function T(t,n,r){return await e(`github.pr.list`,{projectId:t,repo:n,filters:r})}async function E(t,n,r,i){return await e(t,{projectId:n,repo:r,number:i})}async function D(t,n,r){return await e(`github.pr.initial.get`,{projectId:t,repo:n,number:r})}var O=(e,t,n)=>E(`github.pr.core.get`,e,t,n),k=(e,t,n)=>E(`github.pr.conversation.get`,e,t,n),A=(e,t,n)=>E(`github.pr.overview.get`,e,t,n),j=(e,t,n)=>E(`github.pr.commits.get`,e,t,n),M=(e,t,n)=>E(`github.pr.checks.get`,e,t,n);async function N(t){return await e(`github.pr.file.diff.get`,{projectId:t.projectId,repo:t.repo,number:t.number,path:t.path,...t.previousPath?{previousPath:t.previousPath}:{},status:t.status,expectedBaseRefOid:t.expectedBaseRefOid,expectedHeadRefOid:t.expectedHeadRefOid,...t.expectedHeadRepository?{expectedHeadRepository:t.expectedHeadRepository}:{}})}async function P(t,n,r){return await e(`github.pr.files.get`,{projectId:t,repo:n,number:r})}async function F(t,n,r,i,a){return await e(`github.pr.merge`,{projectId:t,repo:n,number:r,method:i,expectedHeadOid:a})}function I(t,n){return e(`github.pr.snapshot.get`,{projectId:t,repo:n})}function L(t){return e(`github.pr.watch.sync`,t)}function R(t,n){return e(`github.pr.watch.clear`,{projectId:t,repo:n})}function z(t,n,r){return e(`github.pr.refresh`,{projectId:t,repo:n,number:r})}function B(t,n,r){return e(`github.pr.expect`,{projectId:t,repo:n,branch:r})}export{z as A,I as C,T as D,d as E,p as F,a as I,L,x as M,n as N,F as O,t as P,S as R,A as S,u as T,k as _,f as a,P as b,m as c,B as d,b as f,j as g,M as h,R as i,g as j,l as k,C as l,s as m,r as n,_ as o,c as p,o as r,h as s,v as t,y as u,O as v,w,D as x,N as y};
1
+ import{o as e}from"./workbench-connection-CGHdORw3.js";async function t(t){return e(`git.operation.start`,t)}async function n(t){return e(`git.operation.bulk.start`,t)}async function r(t){return e(`git.operation.cancel`,{operationId:t})}var i=12e4;async function a(t){return await e(`git.workspace.watch.sync`,t)}async function o(t){return await e(`git.workspace.watch.clear`,{projectId:t})}async function s(t){return await e(`git.workspace.snapshot.get`,{projectId:t},{timeoutMs:i})}async function c(t,n){return await e(`git.repo.detail.get`,{projectId:t,repo:n},{timeoutMs:i})}async function l(t,n,r=!0){return await e(`git.workspace.refresh`,{projectId:t,...n?{repo:n}:{},force:r},{timeoutMs:i})}async function u(t,n=!1){return await e(`git.project.files.status.get`,{projectId:t,refresh:n},{timeoutMs:i})}async function d(t,n){return await e(`git.branches.list`,{projectId:t,repo:n})}async function f(t,n,r){return await e(`git.branch.create`,{projectId:t,repo:n,name:r})}async function p(t,n,r){return await e(`git.branch.switch`,{projectId:t,repo:n,name:r})}async function m(t,n,r){return await e(`git.branch.delete`,{projectId:t,repo:n,name:r})}async function h(t,n,r,i){return await e(`git.worktree.create`,{projectId:t,repo:n,branch:r,...i?{id:i}:{}})}async function g(t,n,r){return await e(`git.worktree.remove`,{projectId:t,repo:n,force:r.force,deleteBranch:r.deleteBranch})}async function _(t,n,r,i){return await e(`git.stash.create`,{projectId:t,repo:n,area:r,...i?{paths:[...i]}:{}})}async function v(t,n,r,i){return await e(`git.stash.apply`,{projectId:t,repo:n,index:r,expectedHash:i})}async function y(t,n,r,i){return await e(`git.stash.drop`,{projectId:t,repo:n,index:r,expectedHash:i})}async function b(t,n,r,i){return await e(`git.file.diff.get`,{projectId:t,repo:n,path:r,area:i})}async function x(t,n,r){return await e(`git.file.stage`,{projectId:t,repo:n,path:r})}async function S(t,n,r){return await e(`git.file.unstage`,{projectId:t,repo:n,path:r})}async function C(t,n,r){return await e(`git.file.discard`,{projectId:t,repo:n,path:r})}async function w(t,n){return await e(`github.status.get`,{projectId:t,repo:n})}async function T(t,n,r){return await e(`github.pr.list`,{projectId:t,repo:n,filters:r})}async function E(t,n,r,i){return await e(t,{projectId:n,repo:r,number:i})}async function D(t,n,r){return await e(`github.pr.initial.get`,{projectId:t,repo:n,number:r})}var O=(e,t,n)=>E(`github.pr.core.get`,e,t,n),k=(e,t,n)=>E(`github.pr.conversation.get`,e,t,n),A=(e,t,n)=>E(`github.pr.overview.get`,e,t,n),j=(e,t,n)=>E(`github.pr.commits.get`,e,t,n),M=(e,t,n)=>E(`github.pr.checks.get`,e,t,n);async function N(t){return await e(`github.pr.file.diff.get`,{projectId:t.projectId,repo:t.repo,number:t.number,path:t.path,...t.previousPath?{previousPath:t.previousPath}:{},status:t.status,expectedBaseRefOid:t.expectedBaseRefOid,expectedHeadRefOid:t.expectedHeadRefOid,...t.expectedHeadRepository?{expectedHeadRepository:t.expectedHeadRepository}:{}})}async function P(t,n,r){return await e(`github.pr.files.get`,{projectId:t,repo:n,number:r})}async function F(t,n,r,i,a){return await e(`github.pr.merge`,{projectId:t,repo:n,number:r,method:i,expectedHeadOid:a})}function I(t,n){return e(`github.pr.snapshot.get`,{projectId:t,repo:n})}function L(t){return e(`github.pr.watch.sync`,t)}function R(t,n){return e(`github.pr.watch.clear`,{projectId:t,repo:n})}function z(t,n,r){return e(`github.pr.refresh`,{projectId:t,repo:n,number:r})}function B(t,n,r){return e(`github.pr.expect`,{projectId:t,repo:n,branch:r})}export{z as A,I as C,T as D,d as E,p as F,a as I,L,x as M,n as N,F as O,t as P,S as R,A as S,u as T,k as _,f as a,P as b,m as c,B as d,b as f,j as g,M as h,R as i,g as j,l as k,C as l,s as m,r as n,_ as o,c as p,o as r,h as s,v as t,y as u,O as v,w,D as x,N as y};