@chrisjowen/wheelhouse 0.22.8 → 0.22.10

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 (821) hide show
  1. package/build/client/_app/immutable/assets/0.CxgStULu.css +1 -0
  2. package/build/client/_app/immutable/assets/0.CxgStULu.css.br +0 -0
  3. package/build/client/_app/immutable/assets/0.CxgStULu.css.gz +0 -0
  4. package/build/client/_app/immutable/chunks/-yf6aA9S.js +1 -0
  5. package/build/client/_app/immutable/chunks/-yf6aA9S.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/-yf6aA9S.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/362kFTNq.js +1 -0
  8. package/build/client/_app/immutable/chunks/362kFTNq.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/362kFTNq.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/4Fb0jmD0.js +2 -0
  11. package/build/client/_app/immutable/chunks/4Fb0jmD0.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/4Fb0jmD0.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/B6OgCkTR.js +1 -0
  14. package/build/client/_app/immutable/chunks/B6OgCkTR.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/B6OgCkTR.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/BONFwLSn.js +1 -0
  17. package/build/client/_app/immutable/chunks/BONFwLSn.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/BONFwLSn.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/BcjiGAgD.js +1 -0
  20. package/build/client/_app/immutable/chunks/BcjiGAgD.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/BcjiGAgD.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/BjVIrDHV.js +1 -0
  23. package/build/client/_app/immutable/chunks/BjVIrDHV.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/BjVIrDHV.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/Bue5RrUO.js +7 -0
  26. package/build/client/_app/immutable/chunks/Bue5RrUO.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/Bue5RrUO.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/CLuz13qg.js +1 -0
  29. package/build/client/_app/immutable/chunks/CLuz13qg.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/CLuz13qg.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/CSzwlAcc.js +6 -0
  32. package/build/client/_app/immutable/chunks/CSzwlAcc.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/CSzwlAcc.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/CW42isxN.js +1 -0
  35. package/build/client/_app/immutable/chunks/CW42isxN.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/CW42isxN.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/CWvJbYTn.js +7 -0
  38. package/build/client/_app/immutable/chunks/CWvJbYTn.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/CWvJbYTn.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/Cq0j50qC.js +1 -0
  41. package/build/client/_app/immutable/chunks/Cq0j50qC.js.br +0 -0
  42. package/build/client/_app/immutable/chunks/Cq0j50qC.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/Cu2GhZPA.js +8 -0
  44. package/build/client/_app/immutable/chunks/Cu2GhZPA.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/Cu2GhZPA.js.gz +0 -0
  46. package/build/client/_app/immutable/chunks/DC4avyk1.js +3 -0
  47. package/build/client/_app/immutable/chunks/DC4avyk1.js.br +0 -0
  48. package/build/client/_app/immutable/chunks/DC4avyk1.js.gz +0 -0
  49. package/build/client/_app/immutable/chunks/DFoNnxZy.js +1 -0
  50. package/build/client/_app/immutable/chunks/DFoNnxZy.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/DFoNnxZy.js.gz +0 -0
  52. package/build/client/_app/immutable/chunks/DLoaec-O.js +3 -0
  53. package/build/client/_app/immutable/chunks/DLoaec-O.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/DLoaec-O.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/DMtBybVn.js +1 -0
  56. package/build/client/_app/immutable/chunks/DMtBybVn.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/DMtBybVn.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/DN7cEX4D.js +2 -0
  59. package/build/client/_app/immutable/chunks/DN7cEX4D.js.br +0 -0
  60. package/build/client/_app/immutable/chunks/DN7cEX4D.js.gz +0 -0
  61. package/build/client/_app/immutable/chunks/DRK8ZUj2.js +1 -0
  62. package/build/client/_app/immutable/chunks/DRK8ZUj2.js.br +0 -0
  63. package/build/client/_app/immutable/chunks/DRK8ZUj2.js.gz +0 -0
  64. package/build/client/_app/immutable/chunks/DTmJMwRe.js +1 -0
  65. package/build/client/_app/immutable/chunks/DTmJMwRe.js.br +0 -0
  66. package/build/client/_app/immutable/chunks/DTmJMwRe.js.gz +0 -0
  67. package/build/client/_app/immutable/chunks/Dg5Iatf7.js +1 -0
  68. package/build/client/_app/immutable/chunks/Dg5Iatf7.js.br +0 -0
  69. package/build/client/_app/immutable/chunks/Dg5Iatf7.js.gz +0 -0
  70. package/build/client/_app/immutable/chunks/Dtd2m7HF.js +4 -0
  71. package/build/client/_app/immutable/chunks/Dtd2m7HF.js.br +0 -0
  72. package/build/client/_app/immutable/chunks/Dtd2m7HF.js.gz +0 -0
  73. package/build/client/_app/immutable/chunks/MoV8bfgL.js +1 -0
  74. package/build/client/_app/immutable/chunks/MoV8bfgL.js.br +0 -0
  75. package/build/client/_app/immutable/chunks/MoV8bfgL.js.gz +0 -0
  76. package/build/client/_app/immutable/chunks/Rgu8m09_.js +3 -0
  77. package/build/client/_app/immutable/chunks/Rgu8m09_.js.br +0 -0
  78. package/build/client/_app/immutable/chunks/Rgu8m09_.js.gz +0 -0
  79. package/build/client/_app/immutable/chunks/nqsqhzVw.js +5 -0
  80. package/build/client/_app/immutable/chunks/nqsqhzVw.js.br +0 -0
  81. package/build/client/_app/immutable/chunks/nqsqhzVw.js.gz +0 -0
  82. package/build/client/_app/immutable/chunks/pSy419OZ.js +1 -0
  83. package/build/client/_app/immutable/chunks/pSy419OZ.js.br +0 -0
  84. package/build/client/_app/immutable/chunks/pSy419OZ.js.gz +0 -0
  85. package/build/client/_app/immutable/chunks/tFbTlyod.js +2 -0
  86. package/build/client/_app/immutable/chunks/tFbTlyod.js.br +0 -0
  87. package/build/client/_app/immutable/chunks/tFbTlyod.js.gz +0 -0
  88. package/build/client/_app/immutable/chunks/vbU2m5ZC.js +6 -0
  89. package/build/client/_app/immutable/chunks/vbU2m5ZC.js.br +0 -0
  90. package/build/client/_app/immutable/chunks/vbU2m5ZC.js.gz +0 -0
  91. package/build/client/_app/immutable/entry/app.DhcmqiiG.js +2 -0
  92. package/build/client/_app/immutable/entry/app.DhcmqiiG.js.br +0 -0
  93. package/build/client/_app/immutable/entry/app.DhcmqiiG.js.gz +0 -0
  94. package/build/client/_app/immutable/entry/start.DO6oso7n.js +1 -0
  95. package/build/client/_app/immutable/entry/start.DO6oso7n.js.br +0 -0
  96. package/build/client/_app/immutable/entry/start.DO6oso7n.js.gz +0 -0
  97. package/build/client/_app/immutable/nodes/0.CWyb_rXu.js +9 -0
  98. package/build/client/_app/immutable/nodes/0.CWyb_rXu.js.br +0 -0
  99. package/build/client/_app/immutable/nodes/0.CWyb_rXu.js.gz +0 -0
  100. package/build/client/_app/immutable/nodes/1.BOm1hKiV.js +1 -0
  101. package/build/client/_app/immutable/nodes/1.BOm1hKiV.js.br +0 -0
  102. package/build/client/_app/immutable/nodes/1.BOm1hKiV.js.gz +0 -0
  103. package/build/client/_app/immutable/nodes/10.DRMcyQfx.js +9 -0
  104. package/build/client/_app/immutable/nodes/10.DRMcyQfx.js.br +0 -0
  105. package/build/client/_app/immutable/nodes/10.DRMcyQfx.js.gz +0 -0
  106. package/build/client/_app/immutable/nodes/11.BkUr8JG0.js +3 -0
  107. package/build/client/_app/immutable/nodes/11.BkUr8JG0.js.br +0 -0
  108. package/build/client/_app/immutable/nodes/11.BkUr8JG0.js.gz +0 -0
  109. package/build/client/_app/immutable/nodes/12.CJNr2i2i.js +6 -0
  110. package/build/client/_app/immutable/nodes/12.CJNr2i2i.js.br +0 -0
  111. package/build/client/_app/immutable/nodes/12.CJNr2i2i.js.gz +0 -0
  112. package/build/client/_app/immutable/nodes/13.BKw66cnj.js +1 -0
  113. package/build/client/_app/immutable/nodes/13.BKw66cnj.js.br +0 -0
  114. package/build/client/_app/immutable/nodes/13.BKw66cnj.js.gz +0 -0
  115. package/build/client/_app/immutable/nodes/14.9qfv-EBi.js +10 -0
  116. package/build/client/_app/immutable/nodes/14.9qfv-EBi.js.br +0 -0
  117. package/build/client/_app/immutable/nodes/14.9qfv-EBi.js.gz +0 -0
  118. package/build/client/_app/immutable/nodes/15.DSekLzW1.js +1 -0
  119. package/build/client/_app/immutable/nodes/15.DSekLzW1.js.br +0 -0
  120. package/build/client/_app/immutable/nodes/15.DSekLzW1.js.gz +0 -0
  121. package/build/client/_app/immutable/nodes/16.BC7ezHaI.js +3 -0
  122. package/build/client/_app/immutable/nodes/16.BC7ezHaI.js.br +0 -0
  123. package/build/client/_app/immutable/nodes/16.BC7ezHaI.js.gz +0 -0
  124. package/build/client/_app/immutable/nodes/17.DXMknnxr.js +1 -0
  125. package/build/client/_app/immutable/nodes/17.DXMknnxr.js.br +0 -0
  126. package/build/client/_app/immutable/nodes/17.DXMknnxr.js.gz +0 -0
  127. package/build/client/_app/immutable/nodes/18.HjgpyMW-.js +14 -0
  128. package/build/client/_app/immutable/nodes/18.HjgpyMW-.js.br +0 -0
  129. package/build/client/_app/immutable/nodes/18.HjgpyMW-.js.gz +0 -0
  130. package/build/client/_app/immutable/nodes/19.BOB8CfuL.js +150 -0
  131. package/build/client/_app/immutable/nodes/19.BOB8CfuL.js.br +0 -0
  132. package/build/client/_app/immutable/nodes/19.BOB8CfuL.js.gz +0 -0
  133. package/build/client/_app/immutable/nodes/2.BHumjjdi.js +40 -0
  134. package/build/client/_app/immutable/nodes/2.BHumjjdi.js.br +0 -0
  135. package/build/client/_app/immutable/nodes/2.BHumjjdi.js.gz +0 -0
  136. package/build/client/_app/immutable/nodes/20.JN5VOhqA.js +25 -0
  137. package/build/client/_app/immutable/nodes/20.JN5VOhqA.js.br +0 -0
  138. package/build/client/_app/immutable/nodes/20.JN5VOhqA.js.gz +0 -0
  139. package/build/client/_app/immutable/nodes/21.EqPwzUhF.js +5 -0
  140. package/build/client/_app/immutable/nodes/21.EqPwzUhF.js.br +0 -0
  141. package/build/client/_app/immutable/nodes/21.EqPwzUhF.js.gz +0 -0
  142. package/build/client/_app/immutable/nodes/22.DqyYdAf0.js +18 -0
  143. package/build/client/_app/immutable/nodes/22.DqyYdAf0.js.br +0 -0
  144. package/build/client/_app/immutable/nodes/22.DqyYdAf0.js.gz +0 -0
  145. package/build/client/_app/immutable/nodes/24.EzjiUP8y.js +4 -0
  146. package/build/client/_app/immutable/nodes/24.EzjiUP8y.js.br +0 -0
  147. package/build/client/_app/immutable/nodes/24.EzjiUP8y.js.gz +0 -0
  148. package/build/client/_app/immutable/nodes/26.BnZOICl5.js +6 -0
  149. package/build/client/_app/immutable/nodes/26.BnZOICl5.js.br +0 -0
  150. package/build/client/_app/immutable/nodes/26.BnZOICl5.js.gz +0 -0
  151. package/build/client/_app/immutable/nodes/27.CklcJ2eM.js +8 -0
  152. package/build/client/_app/immutable/nodes/27.CklcJ2eM.js.br +0 -0
  153. package/build/client/_app/immutable/nodes/27.CklcJ2eM.js.gz +0 -0
  154. package/build/client/_app/immutable/nodes/28.Ch4HoCSl.js +2 -0
  155. package/build/client/_app/immutable/nodes/28.Ch4HoCSl.js.br +0 -0
  156. package/build/client/_app/immutable/nodes/28.Ch4HoCSl.js.gz +0 -0
  157. package/build/client/_app/immutable/nodes/29.BOuFV2EF.js +5 -0
  158. package/build/client/_app/immutable/nodes/29.BOuFV2EF.js.br +0 -0
  159. package/build/client/_app/immutable/nodes/29.BOuFV2EF.js.gz +0 -0
  160. package/build/client/_app/immutable/nodes/3.JOOWrRc9.js +2 -0
  161. package/build/client/_app/immutable/nodes/3.JOOWrRc9.js.br +0 -0
  162. package/build/client/_app/immutable/nodes/3.JOOWrRc9.js.gz +0 -0
  163. package/build/client/_app/immutable/nodes/30.DDGOS4V1.js +4 -0
  164. package/build/client/_app/immutable/nodes/30.DDGOS4V1.js.br +0 -0
  165. package/build/client/_app/immutable/nodes/30.DDGOS4V1.js.gz +0 -0
  166. package/build/client/_app/immutable/nodes/31.DcXjxR7j.js +3 -0
  167. package/build/client/_app/immutable/nodes/31.DcXjxR7j.js.br +0 -0
  168. package/build/client/_app/immutable/nodes/31.DcXjxR7j.js.gz +0 -0
  169. package/build/client/_app/immutable/nodes/32.D8XciSJp.js +7 -0
  170. package/build/client/_app/immutable/nodes/32.D8XciSJp.js.br +0 -0
  171. package/build/client/_app/immutable/nodes/32.D8XciSJp.js.gz +0 -0
  172. package/build/client/_app/immutable/nodes/33.DinukFZg.js +2 -0
  173. package/build/client/_app/immutable/nodes/33.DinukFZg.js.br +0 -0
  174. package/build/client/_app/immutable/nodes/33.DinukFZg.js.gz +0 -0
  175. package/build/client/_app/immutable/nodes/34.DtDCIQmU.js +4 -0
  176. package/build/client/_app/immutable/nodes/34.DtDCIQmU.js.br +0 -0
  177. package/build/client/_app/immutable/nodes/34.DtDCIQmU.js.gz +0 -0
  178. package/build/client/_app/immutable/nodes/35.C3rbzZEh.js +7 -0
  179. package/build/client/_app/immutable/nodes/35.C3rbzZEh.js.br +0 -0
  180. package/build/client/_app/immutable/nodes/35.C3rbzZEh.js.gz +0 -0
  181. package/build/client/_app/immutable/nodes/36.S0MUGkao.js +6 -0
  182. package/build/client/_app/immutable/nodes/36.S0MUGkao.js.br +0 -0
  183. package/build/client/_app/immutable/nodes/36.S0MUGkao.js.gz +0 -0
  184. package/build/client/_app/immutable/nodes/37.DEG5XaIJ.js +23 -0
  185. package/build/client/_app/immutable/nodes/37.DEG5XaIJ.js.br +0 -0
  186. package/build/client/_app/immutable/nodes/37.DEG5XaIJ.js.gz +0 -0
  187. package/build/client/_app/immutable/nodes/38.C3Qh1MJ9.js +1 -0
  188. package/build/client/_app/immutable/nodes/38.C3Qh1MJ9.js.br +1 -0
  189. package/build/client/_app/immutable/nodes/38.C3Qh1MJ9.js.gz +0 -0
  190. package/build/client/_app/immutable/nodes/4.Bem-C3SH.js +5 -0
  191. package/build/client/_app/immutable/nodes/4.Bem-C3SH.js.br +0 -0
  192. package/build/client/_app/immutable/nodes/4.Bem-C3SH.js.gz +0 -0
  193. package/build/client/_app/immutable/nodes/40._GGycC-b.js +6 -0
  194. package/build/client/_app/immutable/nodes/40._GGycC-b.js.br +0 -0
  195. package/build/client/_app/immutable/nodes/40._GGycC-b.js.gz +0 -0
  196. package/build/client/_app/immutable/nodes/5.CJ5RiGl5.js +1 -0
  197. package/build/client/_app/immutable/nodes/5.CJ5RiGl5.js.br +0 -0
  198. package/build/client/_app/immutable/nodes/5.CJ5RiGl5.js.gz +0 -0
  199. package/build/client/_app/immutable/nodes/8.DydCsQuo.js +3 -0
  200. package/build/client/_app/immutable/nodes/8.DydCsQuo.js.br +0 -0
  201. package/build/client/_app/immutable/nodes/8.DydCsQuo.js.gz +0 -0
  202. package/build/client/_app/immutable/nodes/9.CroJqbmx.js +10 -0
  203. package/build/client/_app/immutable/nodes/9.CroJqbmx.js.br +0 -0
  204. package/build/client/_app/immutable/nodes/9.CroJqbmx.js.gz +0 -0
  205. package/build/client/_app/version.json +1 -1
  206. package/build/client/_app/version.json.br +0 -0
  207. package/build/client/_app/version.json.gz +0 -0
  208. package/build/handler.js +4 -4
  209. package/build/index.js +4 -4
  210. package/build/server/chunks/chunks/DecisionForm.js-xvsHzFol.js +246 -0
  211. package/build/server/chunks/chunks/DecisionsBadge.js-Ba3uHWZs.js +79 -0
  212. package/build/server/chunks/chunks/Discussion.js-Bdc6mCza.js +582 -0
  213. package/build/server/chunks/chunks/ResizableRail.js-CaXYsa14.js +864 -0
  214. package/build/server/chunks/chunks/TaskView.js-Ceg1VgsE.js +3015 -0
  215. package/build/server/chunks/chunks/bell.js-bn_lKpLG.js +194 -0
  216. package/build/server/chunks/chunks/chat.svelte.js-sTASVMGv.js +417 -0
  217. package/build/server/chunks/chunks/decisionhome.js-GDNgBJjF.js +319 -0
  218. package/build/server/chunks/chunks/detail.js-BiXsOr5e.js +149 -0
  219. package/build/server/chunks/chunks/features.js-C0RFlCU9.js +181 -0
  220. package/build/server/chunks/chunks/feedback.js-DqPCMKCB.js +67 -0
  221. package/build/server/chunks/chunks/handled.js-CSOW-IZA.js +20 -0
  222. package/build/server/chunks/chunks/inbox.js-Ci-STS86.js +229 -0
  223. package/build/server/chunks/chunks/insights.svelte.js-Bkr5JwNs.js +567 -0
  224. package/build/server/chunks/chunks/internal.js-BFZQ29Rw.js +151 -0
  225. package/build/server/chunks/chunks/marketplace-service.js-Dux8KDZW.js +557 -0
  226. package/build/server/chunks/chunks/ondeck.js-DqIA30QR.js +121 -0
  227. package/build/server/chunks/chunks/package.js-BddORhTc.js +160 -0
  228. package/build/server/chunks/chunks/page.js-BBQIXL1m.js +13 -0
  229. package/build/server/chunks/chunks/previewhelper2.js-BkkOMPpE.js +210 -0
  230. package/build/server/chunks/chunks/repo.js-zZjENX9B.js +33 -0
  231. package/build/server/chunks/chunks/runtime.js-D5CM1xFr.js +25696 -0
  232. package/build/server/chunks/chunks/scribe.js-DPteFaiJ.js +1376 -0
  233. package/build/server/chunks/chunks/service.js-Jsxdma_u.js +1339 -0
  234. package/build/server/chunks/chunks/service2.js-CNlAY9fC.js +835 -0
  235. package/build/server/chunks/chunks/service3.js-CJCzXm3j.js +234 -0
  236. package/build/server/chunks/chunks/sessions.js-DwnsAQAT.js +519 -0
  237. package/build/server/chunks/chunks/settings.js-B_K2GMso.js +379 -0
  238. package/build/server/chunks/chunks/starter.js-De6FnYRT.js +400 -0
  239. package/build/server/chunks/chunks/store.js-DHAfX_W5.js +334 -0
  240. package/build/server/chunks/chunks/tmux.js-8vQMGgvb.js +504 -0
  241. package/build/server/chunks/chunks/tools.js-BnmGImVp.js +156 -0
  242. package/build/server/chunks/chunks/uploads.js-B9xKVdU_.js +107 -0
  243. package/build/server/chunks/chunks/view.js-7t_fs4Ou.js +76 -0
  244. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-Y1d6GsCd.js +112 -0
  245. package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-CH-h3Pl7.js +111 -0
  246. package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-CCMWIWlb.js +59 -0
  247. package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-DXIH_Tt_.js +75 -0
  248. package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-nWjmGzXO.js +79 -0
  249. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-SoyoQEs8.js +154 -0
  250. package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-Dd51OPkW.js +56 -0
  251. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-BJxEyrRY.js +71 -0
  252. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-0lQ7d4ex.js +107 -0
  253. package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-DLr0x0ZE.js +83 -0
  254. package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-bScpFWhy.js +73 -0
  255. package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-Dl_lCGny.js +66 -0
  256. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-CMV9SuiA.js +66 -0
  257. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-j9aWA7Ox.js +67 -0
  258. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-mtr8O6IP.js +73 -0
  259. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-DSTGdSa-.js +66 -0
  260. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-BAk_G9UZ.js +115 -0
  261. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-C_AWiFk_.js +76 -0
  262. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-DVlzrd15.js +87 -0
  263. package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-CfdiA9Rf.js +75 -0
  264. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-Dr9UEEmG.js +66 -0
  265. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-SINb4OzG.js +32 -0
  266. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-DALaQV6B.js +40 -0
  267. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-BKVOwD6Q.js +58 -0
  268. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-Bjr287a3.js +58 -0
  269. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-B_6DE6G6.js +85 -0
  270. package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-CJzlOY_q.js +83 -0
  271. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-CiAgA4MB.js +76 -0
  272. package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-DPgUobdG.js +168 -0
  273. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-BMMFlj3H.js +58 -0
  274. package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-psBYT9Pj.js +87 -0
  275. package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-BkaMXW0d.js +72 -0
  276. package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-BFVleJ7Y.js +27 -0
  277. package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-53atYpc4.js +30 -0
  278. package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-CT3ITClO.js +96 -0
  279. package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-DF2XQ3CU.js +74 -0
  280. package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-C2tqGck8.js +118 -0
  281. package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-BEzg-GdT.js +72 -0
  282. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-BtHG_jAo.js +93 -0
  283. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-CBMV7d_i.js +82 -0
  284. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-DGiV-zDl.js +77 -0
  285. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-BmsdvL4P.js +74 -0
  286. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-CKWaWFzi.js +27 -0
  287. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-sXcrpQCn.js +81 -0
  288. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-05bkKDCo.js +39 -0
  289. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-Dv2TIj2l.js +58 -0
  290. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-BkaZp7ms.js +39 -0
  291. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-BlpQJKLF.js +42 -0
  292. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-B0D6HGVa.js +63 -0
  293. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-CoGEDP4T.js +72 -0
  294. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-CeH1E1-1.js +69 -0
  295. package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-BJAM9u1Z.js +73 -0
  296. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-B5919bIx.js +27 -0
  297. package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-fOS_n0Oo.js +81 -0
  298. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-Dhy3UyX1.js +63 -0
  299. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-C5yLhUK-.js +72 -0
  300. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-8vY4bNlN.js +84 -0
  301. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-xVKILY2S.js +71 -0
  302. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-FOib6B1u.js +94 -0
  303. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-B7PoKpP_.js +77 -0
  304. package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-DboClsC1.js +473 -0
  305. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-_t2JBTpH.js +88 -0
  306. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-BQq9eUgO.js +67 -0
  307. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-DV5Sv6hi.js +77 -0
  308. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-BiBWqjSe.js +137 -0
  309. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-DxiG_OGk.js +66 -0
  310. package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-BGYEc37e.js +80 -0
  311. package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-CTzyglnl.js +66 -0
  312. package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-rZFEYwUA.js +69 -0
  313. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-BbY3jmr8.js +63 -0
  314. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-rYs21Hmk.js +82 -0
  315. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-B_kTjBS5.js +109 -0
  316. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-ZkKoICXw.js +75 -0
  317. package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-BGq0j-tp.js +104 -0
  318. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-COtlUErI.js +123 -0
  319. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-iofjMHUL.js +77 -0
  320. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-lh5ob5IU.js +80 -0
  321. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-DibEHnqf.js +81 -0
  322. package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-BdjAbGdT.js +24 -0
  323. package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-CgI_ZLEj.js +31 -0
  324. package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-BUDwJeuz.js +33 -0
  325. package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-DtbdX65q.js +93 -0
  326. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-BhPvfhR9.js +40 -0
  327. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-ytsnK_ZP.js +27 -0
  328. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-CBcVn1mu.js +27 -0
  329. package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-BEELTWRW.js +82 -0
  330. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-Eao6pczH.js +62 -0
  331. package/build/server/chunks/entries/hooks.server.js-CF4JNzUJ.js +104 -0
  332. package/build/server/chunks/entries/pages/_layout.server.ts.js-TepwAVSL.js +54 -0
  333. package/build/server/chunks/entries/pages/_layout.svelte.js-CO0DVsYz.js +6028 -0
  334. package/build/server/chunks/entries/pages/_page.server.ts.js-Dhr60fyS.js +16 -0
  335. package/build/server/chunks/entries/pages/_page.svelte.js-D35KG02R.js +5810 -0
  336. package/build/server/chunks/entries/pages/crew/_page.svelte.js-B1SJ4JXR.js +115 -0
  337. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-Cuc-vbOM.js +14 -0
  338. package/build/server/chunks/entries/pages/deck/_page.server.ts.js-6jCtHLOX.js +16 -0
  339. package/build/server/chunks/entries/pages/deck/_page.svelte.js-BFOofQDq.js +93 -0
  340. package/build/server/chunks/entries/pages/files/_page.server.ts.js-C0iJcT5-.js +17 -0
  341. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-DLTE5C5n.js +11 -0
  342. package/build/server/chunks/entries/pages/health/_page.server.ts.js-BGngm7Na.js +16 -0
  343. package/build/server/chunks/entries/pages/health/_page.svelte.js-q1P9AuIv.js +517 -0
  344. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-DX9hQHEu.js +18 -0
  345. package/build/server/chunks/entries/pages/inbox/_page.svelte.js-BOQ1XsWC.js +666 -0
  346. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-DBNfjd5P.js +16 -0
  347. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-B7Dmf30h.js +23 -0
  348. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-DKEe2-Fq.js +21 -0
  349. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-DQP_r_hz.js +27 -0
  350. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-B6DP_hXM.js +15 -0
  351. package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-0ZU6L4gV.js +11 -0
  352. package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-CXlEidtY.js +13 -0
  353. package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DbVvZoJ2.js +12 -0
  354. package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-B9y6kIJg.js +18 -0
  355. package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-D1bVoyS8.js +19 -0
  356. package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-BlTW0hjJ.js +16 -0
  357. package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-D9mUpzeB.js +15 -0
  358. package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-tetctN1t.js +797 -0
  359. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-BSg0cHvQ.js +11 -0
  360. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-DnuFc9-d.js +19 -0
  361. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-DVFgUMvV.js +17 -0
  362. package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-B0HUsANb.js +11 -0
  363. package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-CHMmRvZ3.js +11 -0
  364. package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-Bn6Ntdtb.js +15 -0
  365. package/build/server/chunks/entries/pages/setup/_page.server.ts.js-D2lE9oK6.js +18 -0
  366. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-D_08lJPM.js +36 -0
  367. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-vFkcChIQ.js +112 -0
  368. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-rpxoOqIW.js +24 -0
  369. package/build/server/chunks/entries/pages/time/_page.server.ts.js-Cu-V5UEB.js +11 -0
  370. package/build/server/chunks/handler-Dr03OdQ-.js +1474 -0
  371. package/build/server/chunks/index.js-BMxFQyjC.js +4296 -0
  372. package/build/server/chunks/manifest.js-C_Ui3kN5.js +969 -0
  373. package/build/server/chunks/nodes/0.js-BV8n1wnt.js +66 -0
  374. package/build/server/chunks/nodes/1.js-CYQdJgHA.js +9 -0
  375. package/build/server/chunks/nodes/10.js-BrDRWQQx.js +65 -0
  376. package/build/server/chunks/nodes/11.js-DdqofsD3.js +64 -0
  377. package/build/server/chunks/nodes/12.js-DLPGUsTC.js +12 -0
  378. package/build/server/chunks/nodes/13.js-BdokX4Tq.js +9 -0
  379. package/build/server/chunks/nodes/14.js-S81xczxH.js +9 -0
  380. package/build/server/chunks/nodes/15.js-DpvHCVGB.js +63 -0
  381. package/build/server/chunks/nodes/16.js-BWStEOBD.js +66 -0
  382. package/build/server/chunks/nodes/17.js-gvgV2hER.js +64 -0
  383. package/build/server/chunks/nodes/18.js-CT7k54Ej.js +65 -0
  384. package/build/server/chunks/nodes/19.js-B9UtpBBj.js +64 -0
  385. package/build/server/chunks/nodes/2.js-Dbm7TfZ5.js +63 -0
  386. package/build/server/chunks/nodes/20.js-vT3xrxjL.js +24 -0
  387. package/build/server/chunks/nodes/21.js-BbXio736.js +25 -0
  388. package/build/server/chunks/nodes/22.js-BMPIZV2w.js +9 -0
  389. package/build/server/chunks/nodes/23.js-DxLM-Z83.js +25 -0
  390. package/build/server/chunks/nodes/24.js-CHEjlfCe.js +63 -0
  391. package/build/server/chunks/nodes/26.js-D4F01T28.js +64 -0
  392. package/build/server/chunks/nodes/27.js-SDmmboPo.js +63 -0
  393. package/build/server/chunks/nodes/28.js-BfB0OsO7.js +25 -0
  394. package/build/server/chunks/nodes/29.js-DmoRXmbF.js +63 -0
  395. package/build/server/chunks/nodes/3.js-CILuDxnn.js +9 -0
  396. package/build/server/chunks/nodes/30.js-qL8fMPlb.js +24 -0
  397. package/build/server/chunks/nodes/31.js-D8hKIBnL.js +22 -0
  398. package/build/server/chunks/nodes/32.js-opcnFZYn.js +63 -0
  399. package/build/server/chunks/nodes/33.js-DTBnnQEr.js +66 -0
  400. package/build/server/chunks/nodes/34.js-CN-lXIx7.js +65 -0
  401. package/build/server/chunks/nodes/35.js-leP1Nmab.js +26 -0
  402. package/build/server/chunks/nodes/36.js-BXVNTEuJ.js +65 -0
  403. package/build/server/chunks/nodes/37.js-BL1cJNDE.js +67 -0
  404. package/build/server/chunks/nodes/38.js-Ds4te6eT.js +64 -0
  405. package/build/server/chunks/nodes/39.js-fqFUZvsO.js +64 -0
  406. package/build/server/chunks/nodes/4.js-BeT-z_5E.js +64 -0
  407. package/build/server/chunks/nodes/40.js-WIor0bYG.js +63 -0
  408. package/build/server/chunks/nodes/5.js-Ns9cI3B2.js +63 -0
  409. package/build/server/chunks/nodes/7.js-BU21SoSq.js +63 -0
  410. package/build/server/chunks/nodes/8.js-XnRzynxm.js +14 -0
  411. package/build/server/chunks/nodes/9.js-Dw79X6qg.js +63 -0
  412. package/dist/cli.js +82 -81
  413. package/dist/wh-vault.js +1 -1
  414. package/firstmate-extension/firstmate-extension.json +1 -1
  415. package/package.json +1 -1
  416. package/build/client/_app/immutable/assets/0.Dqz7kCRB.css +0 -1
  417. package/build/client/_app/immutable/assets/0.Dqz7kCRB.css.br +0 -0
  418. package/build/client/_app/immutable/assets/0.Dqz7kCRB.css.gz +0 -0
  419. package/build/client/_app/immutable/chunks/1THDSnwR.js +0 -1
  420. package/build/client/_app/immutable/chunks/1THDSnwR.js.br +0 -0
  421. package/build/client/_app/immutable/chunks/1THDSnwR.js.gz +0 -0
  422. package/build/client/_app/immutable/chunks/5qx-E5hQ.js +0 -3
  423. package/build/client/_app/immutable/chunks/5qx-E5hQ.js.br +0 -0
  424. package/build/client/_app/immutable/chunks/5qx-E5hQ.js.gz +0 -0
  425. package/build/client/_app/immutable/chunks/8cFWsiL5.js +0 -3
  426. package/build/client/_app/immutable/chunks/8cFWsiL5.js.br +0 -0
  427. package/build/client/_app/immutable/chunks/8cFWsiL5.js.gz +0 -0
  428. package/build/client/_app/immutable/chunks/B95vDHb4.js +0 -2
  429. package/build/client/_app/immutable/chunks/B95vDHb4.js.br +0 -0
  430. package/build/client/_app/immutable/chunks/B95vDHb4.js.gz +0 -0
  431. package/build/client/_app/immutable/chunks/BUI64CqJ.js +0 -1
  432. package/build/client/_app/immutable/chunks/BUI64CqJ.js.br +0 -0
  433. package/build/client/_app/immutable/chunks/BUI64CqJ.js.gz +0 -0
  434. package/build/client/_app/immutable/chunks/Bo0GBU1d.js +0 -1
  435. package/build/client/_app/immutable/chunks/Bo0GBU1d.js.br +0 -0
  436. package/build/client/_app/immutable/chunks/Bo0GBU1d.js.gz +0 -0
  437. package/build/client/_app/immutable/chunks/BoLe_IyD.js +0 -1
  438. package/build/client/_app/immutable/chunks/BoLe_IyD.js.br +0 -0
  439. package/build/client/_app/immutable/chunks/BoLe_IyD.js.gz +0 -0
  440. package/build/client/_app/immutable/chunks/BqeJFOiq.js +0 -2
  441. package/build/client/_app/immutable/chunks/BqeJFOiq.js.br +0 -0
  442. package/build/client/_app/immutable/chunks/BqeJFOiq.js.gz +0 -0
  443. package/build/client/_app/immutable/chunks/CC2m5e3H.js +0 -3
  444. package/build/client/_app/immutable/chunks/CC2m5e3H.js.br +0 -0
  445. package/build/client/_app/immutable/chunks/CC2m5e3H.js.gz +0 -0
  446. package/build/client/_app/immutable/chunks/CHLlDrXz.js +0 -1
  447. package/build/client/_app/immutable/chunks/CHLlDrXz.js.br +0 -0
  448. package/build/client/_app/immutable/chunks/CHLlDrXz.js.gz +0 -0
  449. package/build/client/_app/immutable/chunks/CJh-lXlR.js +0 -1
  450. package/build/client/_app/immutable/chunks/CJh-lXlR.js.br +0 -0
  451. package/build/client/_app/immutable/chunks/CJh-lXlR.js.gz +0 -0
  452. package/build/client/_app/immutable/chunks/CPV8trsz.js +0 -1
  453. package/build/client/_app/immutable/chunks/CPV8trsz.js.br +0 -0
  454. package/build/client/_app/immutable/chunks/CPV8trsz.js.gz +0 -0
  455. package/build/client/_app/immutable/chunks/CQ0zKnku.js +0 -1
  456. package/build/client/_app/immutable/chunks/CQ0zKnku.js.br +0 -0
  457. package/build/client/_app/immutable/chunks/CQ0zKnku.js.gz +0 -0
  458. package/build/client/_app/immutable/chunks/Cva9VpVb.js +0 -7
  459. package/build/client/_app/immutable/chunks/Cva9VpVb.js.br +0 -0
  460. package/build/client/_app/immutable/chunks/Cva9VpVb.js.gz +0 -0
  461. package/build/client/_app/immutable/chunks/CxHJSJSb.js +0 -1
  462. package/build/client/_app/immutable/chunks/CxHJSJSb.js.br +0 -0
  463. package/build/client/_app/immutable/chunks/CxHJSJSb.js.gz +0 -0
  464. package/build/client/_app/immutable/chunks/DI6U75Wo.js +0 -1
  465. package/build/client/_app/immutable/chunks/DI6U75Wo.js.br +0 -0
  466. package/build/client/_app/immutable/chunks/DI6U75Wo.js.gz +0 -0
  467. package/build/client/_app/immutable/chunks/DREe4_Em.js +0 -1
  468. package/build/client/_app/immutable/chunks/DREe4_Em.js.br +0 -0
  469. package/build/client/_app/immutable/chunks/DREe4_Em.js.gz +0 -0
  470. package/build/client/_app/immutable/chunks/DTpgmq3M.js +0 -5
  471. package/build/client/_app/immutable/chunks/DTpgmq3M.js.br +0 -0
  472. package/build/client/_app/immutable/chunks/DTpgmq3M.js.gz +0 -0
  473. package/build/client/_app/immutable/chunks/Da2GOnuD.js +0 -2
  474. package/build/client/_app/immutable/chunks/Da2GOnuD.js.br +0 -0
  475. package/build/client/_app/immutable/chunks/Da2GOnuD.js.gz +0 -0
  476. package/build/client/_app/immutable/chunks/DlupK5OD.js +0 -6
  477. package/build/client/_app/immutable/chunks/DlupK5OD.js.br +0 -0
  478. package/build/client/_app/immutable/chunks/DlupK5OD.js.gz +0 -0
  479. package/build/client/_app/immutable/chunks/HFrgAbA7.js +0 -4
  480. package/build/client/_app/immutable/chunks/HFrgAbA7.js.br +0 -0
  481. package/build/client/_app/immutable/chunks/HFrgAbA7.js.gz +0 -0
  482. package/build/client/_app/immutable/chunks/Lb2eWaSE.js +0 -8
  483. package/build/client/_app/immutable/chunks/Lb2eWaSE.js.br +0 -0
  484. package/build/client/_app/immutable/chunks/Lb2eWaSE.js.gz +0 -0
  485. package/build/client/_app/immutable/chunks/NueoU5q8.js +0 -1
  486. package/build/client/_app/immutable/chunks/NueoU5q8.js.br +0 -0
  487. package/build/client/_app/immutable/chunks/NueoU5q8.js.gz +0 -0
  488. package/build/client/_app/immutable/chunks/Sii3oNcc.js +0 -7
  489. package/build/client/_app/immutable/chunks/Sii3oNcc.js.br +0 -0
  490. package/build/client/_app/immutable/chunks/Sii3oNcc.js.gz +0 -0
  491. package/build/client/_app/immutable/chunks/TvzfwAc_.js +0 -6
  492. package/build/client/_app/immutable/chunks/TvzfwAc_.js.br +0 -0
  493. package/build/client/_app/immutable/chunks/TvzfwAc_.js.gz +0 -0
  494. package/build/client/_app/immutable/chunks/Z_T9JZ0p.js +0 -1
  495. package/build/client/_app/immutable/chunks/Z_T9JZ0p.js.br +0 -0
  496. package/build/client/_app/immutable/chunks/Z_T9JZ0p.js.gz +0 -0
  497. package/build/client/_app/immutable/chunks/gKm-HWvG.js +0 -1
  498. package/build/client/_app/immutable/chunks/gKm-HWvG.js.br +0 -1
  499. package/build/client/_app/immutable/chunks/gKm-HWvG.js.gz +0 -0
  500. package/build/client/_app/immutable/chunks/s7ZLiUKi.js +0 -1
  501. package/build/client/_app/immutable/chunks/s7ZLiUKi.js.br +0 -0
  502. package/build/client/_app/immutable/chunks/s7ZLiUKi.js.gz +0 -0
  503. package/build/client/_app/immutable/chunks/uMlyB-ee.js +0 -1
  504. package/build/client/_app/immutable/chunks/uMlyB-ee.js.br +0 -0
  505. package/build/client/_app/immutable/chunks/uMlyB-ee.js.gz +0 -0
  506. package/build/client/_app/immutable/entry/app.BGGGVw8e.js +0 -2
  507. package/build/client/_app/immutable/entry/app.BGGGVw8e.js.br +0 -0
  508. package/build/client/_app/immutable/entry/app.BGGGVw8e.js.gz +0 -0
  509. package/build/client/_app/immutable/entry/start.Cew8gpBz.js +0 -1
  510. package/build/client/_app/immutable/entry/start.Cew8gpBz.js.br +0 -0
  511. package/build/client/_app/immutable/entry/start.Cew8gpBz.js.gz +0 -0
  512. package/build/client/_app/immutable/nodes/0.Bg8-HE2q.js +0 -9
  513. package/build/client/_app/immutable/nodes/0.Bg8-HE2q.js.br +0 -0
  514. package/build/client/_app/immutable/nodes/0.Bg8-HE2q.js.gz +0 -0
  515. package/build/client/_app/immutable/nodes/1.CaqTGk5K.js +0 -1
  516. package/build/client/_app/immutable/nodes/1.CaqTGk5K.js.br +0 -0
  517. package/build/client/_app/immutable/nodes/1.CaqTGk5K.js.gz +0 -0
  518. package/build/client/_app/immutable/nodes/10.CDtUrk-c.js +0 -9
  519. package/build/client/_app/immutable/nodes/10.CDtUrk-c.js.br +0 -0
  520. package/build/client/_app/immutable/nodes/10.CDtUrk-c.js.gz +0 -0
  521. package/build/client/_app/immutable/nodes/11.BgmRFAah.js +0 -2
  522. package/build/client/_app/immutable/nodes/11.BgmRFAah.js.br +0 -0
  523. package/build/client/_app/immutable/nodes/11.BgmRFAah.js.gz +0 -0
  524. package/build/client/_app/immutable/nodes/12.CkcVt4QK.js +0 -6
  525. package/build/client/_app/immutable/nodes/12.CkcVt4QK.js.br +0 -0
  526. package/build/client/_app/immutable/nodes/12.CkcVt4QK.js.gz +0 -0
  527. package/build/client/_app/immutable/nodes/13.Ce2-RKSA.js +0 -1
  528. package/build/client/_app/immutable/nodes/13.Ce2-RKSA.js.br +0 -0
  529. package/build/client/_app/immutable/nodes/13.Ce2-RKSA.js.gz +0 -0
  530. package/build/client/_app/immutable/nodes/14.ip6iLHgE.js +0 -10
  531. package/build/client/_app/immutable/nodes/14.ip6iLHgE.js.br +0 -0
  532. package/build/client/_app/immutable/nodes/14.ip6iLHgE.js.gz +0 -0
  533. package/build/client/_app/immutable/nodes/15.DkPLCNpt.js +0 -1
  534. package/build/client/_app/immutable/nodes/15.DkPLCNpt.js.br +0 -3
  535. package/build/client/_app/immutable/nodes/15.DkPLCNpt.js.gz +0 -0
  536. package/build/client/_app/immutable/nodes/16.Cvg_tC9Y.js +0 -3
  537. package/build/client/_app/immutable/nodes/16.Cvg_tC9Y.js.br +0 -0
  538. package/build/client/_app/immutable/nodes/16.Cvg_tC9Y.js.gz +0 -0
  539. package/build/client/_app/immutable/nodes/17.DYkILIFn.js +0 -1
  540. package/build/client/_app/immutable/nodes/17.DYkILIFn.js.br +0 -0
  541. package/build/client/_app/immutable/nodes/17.DYkILIFn.js.gz +0 -0
  542. package/build/client/_app/immutable/nodes/18.DPfadYmN.js +0 -14
  543. package/build/client/_app/immutable/nodes/18.DPfadYmN.js.br +0 -0
  544. package/build/client/_app/immutable/nodes/18.DPfadYmN.js.gz +0 -0
  545. package/build/client/_app/immutable/nodes/19.ClKxJRb4.js +0 -150
  546. package/build/client/_app/immutable/nodes/19.ClKxJRb4.js.br +0 -0
  547. package/build/client/_app/immutable/nodes/19.ClKxJRb4.js.gz +0 -0
  548. package/build/client/_app/immutable/nodes/2.CluLiMMe.js +0 -40
  549. package/build/client/_app/immutable/nodes/2.CluLiMMe.js.br +0 -0
  550. package/build/client/_app/immutable/nodes/2.CluLiMMe.js.gz +0 -0
  551. package/build/client/_app/immutable/nodes/20.Bif6P7ng.js +0 -25
  552. package/build/client/_app/immutable/nodes/20.Bif6P7ng.js.br +0 -0
  553. package/build/client/_app/immutable/nodes/20.Bif6P7ng.js.gz +0 -0
  554. package/build/client/_app/immutable/nodes/21.x0ymlObW.js +0 -5
  555. package/build/client/_app/immutable/nodes/21.x0ymlObW.js.br +0 -0
  556. package/build/client/_app/immutable/nodes/21.x0ymlObW.js.gz +0 -0
  557. package/build/client/_app/immutable/nodes/22.RGldztsO.js +0 -18
  558. package/build/client/_app/immutable/nodes/22.RGldztsO.js.br +0 -0
  559. package/build/client/_app/immutable/nodes/22.RGldztsO.js.gz +0 -0
  560. package/build/client/_app/immutable/nodes/24.B_uEnuL5.js +0 -4
  561. package/build/client/_app/immutable/nodes/24.B_uEnuL5.js.br +0 -0
  562. package/build/client/_app/immutable/nodes/24.B_uEnuL5.js.gz +0 -0
  563. package/build/client/_app/immutable/nodes/26.Dky3Ah9G.js +0 -6
  564. package/build/client/_app/immutable/nodes/26.Dky3Ah9G.js.br +0 -0
  565. package/build/client/_app/immutable/nodes/26.Dky3Ah9G.js.gz +0 -0
  566. package/build/client/_app/immutable/nodes/27.DP_uSl0C.js +0 -8
  567. package/build/client/_app/immutable/nodes/27.DP_uSl0C.js.br +0 -0
  568. package/build/client/_app/immutable/nodes/27.DP_uSl0C.js.gz +0 -0
  569. package/build/client/_app/immutable/nodes/28.D2qdRGPd.js +0 -2
  570. package/build/client/_app/immutable/nodes/28.D2qdRGPd.js.br +0 -0
  571. package/build/client/_app/immutable/nodes/28.D2qdRGPd.js.gz +0 -0
  572. package/build/client/_app/immutable/nodes/29.Ddwaz1hp.js +0 -5
  573. package/build/client/_app/immutable/nodes/29.Ddwaz1hp.js.br +0 -0
  574. package/build/client/_app/immutable/nodes/29.Ddwaz1hp.js.gz +0 -0
  575. package/build/client/_app/immutable/nodes/3.CVDrIOUx.js +0 -2
  576. package/build/client/_app/immutable/nodes/3.CVDrIOUx.js.br +0 -0
  577. package/build/client/_app/immutable/nodes/3.CVDrIOUx.js.gz +0 -0
  578. package/build/client/_app/immutable/nodes/30.Z_dcq2gz.js +0 -4
  579. package/build/client/_app/immutable/nodes/30.Z_dcq2gz.js.br +0 -0
  580. package/build/client/_app/immutable/nodes/30.Z_dcq2gz.js.gz +0 -0
  581. package/build/client/_app/immutable/nodes/31.dyucR3g6.js +0 -3
  582. package/build/client/_app/immutable/nodes/31.dyucR3g6.js.br +0 -0
  583. package/build/client/_app/immutable/nodes/31.dyucR3g6.js.gz +0 -0
  584. package/build/client/_app/immutable/nodes/32.DX4PQvJR.js +0 -7
  585. package/build/client/_app/immutable/nodes/32.DX4PQvJR.js.br +0 -0
  586. package/build/client/_app/immutable/nodes/32.DX4PQvJR.js.gz +0 -0
  587. package/build/client/_app/immutable/nodes/33.0jPnz-fe.js +0 -2
  588. package/build/client/_app/immutable/nodes/33.0jPnz-fe.js.br +0 -0
  589. package/build/client/_app/immutable/nodes/33.0jPnz-fe.js.gz +0 -0
  590. package/build/client/_app/immutable/nodes/34.CvGd0cJb.js +0 -4
  591. package/build/client/_app/immutable/nodes/34.CvGd0cJb.js.br +0 -0
  592. package/build/client/_app/immutable/nodes/34.CvGd0cJb.js.gz +0 -0
  593. package/build/client/_app/immutable/nodes/35.5ZhQwroK.js +0 -7
  594. package/build/client/_app/immutable/nodes/35.5ZhQwroK.js.br +0 -0
  595. package/build/client/_app/immutable/nodes/35.5ZhQwroK.js.gz +0 -0
  596. package/build/client/_app/immutable/nodes/36.LzdZEn79.js +0 -6
  597. package/build/client/_app/immutable/nodes/36.LzdZEn79.js.br +0 -0
  598. package/build/client/_app/immutable/nodes/36.LzdZEn79.js.gz +0 -0
  599. package/build/client/_app/immutable/nodes/37.C5-b0odW.js +0 -23
  600. package/build/client/_app/immutable/nodes/37.C5-b0odW.js.br +0 -0
  601. package/build/client/_app/immutable/nodes/37.C5-b0odW.js.gz +0 -0
  602. package/build/client/_app/immutable/nodes/38.CMgkqyxT.js +0 -1
  603. package/build/client/_app/immutable/nodes/38.CMgkqyxT.js.br +0 -0
  604. package/build/client/_app/immutable/nodes/38.CMgkqyxT.js.gz +0 -0
  605. package/build/client/_app/immutable/nodes/4.CbNo2HC_.js +0 -5
  606. package/build/client/_app/immutable/nodes/4.CbNo2HC_.js.br +0 -0
  607. package/build/client/_app/immutable/nodes/4.CbNo2HC_.js.gz +0 -0
  608. package/build/client/_app/immutable/nodes/40.CNQdbYqG.js +0 -6
  609. package/build/client/_app/immutable/nodes/40.CNQdbYqG.js.br +0 -0
  610. package/build/client/_app/immutable/nodes/40.CNQdbYqG.js.gz +0 -0
  611. package/build/client/_app/immutable/nodes/5.RsG0znmX.js +0 -1
  612. package/build/client/_app/immutable/nodes/5.RsG0znmX.js.br +0 -0
  613. package/build/client/_app/immutable/nodes/5.RsG0znmX.js.gz +0 -0
  614. package/build/client/_app/immutable/nodes/8.DFmXg3_i.js +0 -3
  615. package/build/client/_app/immutable/nodes/8.DFmXg3_i.js.br +0 -0
  616. package/build/client/_app/immutable/nodes/8.DFmXg3_i.js.gz +0 -0
  617. package/build/client/_app/immutable/nodes/9.DhYSdoUO.js +0 -10
  618. package/build/client/_app/immutable/nodes/9.DhYSdoUO.js.br +0 -0
  619. package/build/client/_app/immutable/nodes/9.DhYSdoUO.js.gz +0 -0
  620. package/build/server/chunks/chunks/DecisionForm.js-BFfq6cr6.js +0 -246
  621. package/build/server/chunks/chunks/DecisionsBadge.js-CGVFdHf9.js +0 -78
  622. package/build/server/chunks/chunks/Discussion.js-D7IFpGpa.js +0 -581
  623. package/build/server/chunks/chunks/ResizableRail.js-DYHpZhCB.js +0 -864
  624. package/build/server/chunks/chunks/TaskView.js-CK9biTfX.js +0 -3015
  625. package/build/server/chunks/chunks/bell.js-M4cNe9Wo.js +0 -194
  626. package/build/server/chunks/chunks/chat.svelte.js-vT8qTWLG.js +0 -417
  627. package/build/server/chunks/chunks/decisionhome.js-CHke-Aet.js +0 -311
  628. package/build/server/chunks/chunks/detail.js-CQv9k56W.js +0 -149
  629. package/build/server/chunks/chunks/features.js-B2GRQeLG.js +0 -181
  630. package/build/server/chunks/chunks/feedback.js-KWaTRrc_.js +0 -67
  631. package/build/server/chunks/chunks/handled.js-m3RTMfxd.js +0 -20
  632. package/build/server/chunks/chunks/inbox.js-CxcuKYoV.js +0 -222
  633. package/build/server/chunks/chunks/insights.svelte.js-CcEJoKQH.js +0 -567
  634. package/build/server/chunks/chunks/internal.js-CyrN7YyP.js +0 -151
  635. package/build/server/chunks/chunks/marketplace-service.js-BQryRMpA.js +0 -557
  636. package/build/server/chunks/chunks/ondeck.js-BLhFZI2l.js +0 -119
  637. package/build/server/chunks/chunks/package.js-DCazdgiR.js +0 -160
  638. package/build/server/chunks/chunks/page.js-BEonrB4-.js +0 -13
  639. package/build/server/chunks/chunks/previewhelper2.js-BwNIdagj.js +0 -210
  640. package/build/server/chunks/chunks/repo.js-Du-fw6dp.js +0 -33
  641. package/build/server/chunks/chunks/runtime.js-C-66z9Q6.js +0 -25642
  642. package/build/server/chunks/chunks/scribe.js-OrtzU0Ox.js +0 -1376
  643. package/build/server/chunks/chunks/service.js-Cgn4nIWF.js +0 -1339
  644. package/build/server/chunks/chunks/service2.js-D6aGwDef.js +0 -835
  645. package/build/server/chunks/chunks/service3.js-Dxdu8beL.js +0 -234
  646. package/build/server/chunks/chunks/sessions.js-DGHSwMvs.js +0 -519
  647. package/build/server/chunks/chunks/settings.js-qVoB3gY6.js +0 -379
  648. package/build/server/chunks/chunks/starter.js-DGsazTxj.js +0 -400
  649. package/build/server/chunks/chunks/store.js-m6116Gee.js +0 -332
  650. package/build/server/chunks/chunks/tmux.js-iKfXN6X8.js +0 -450
  651. package/build/server/chunks/chunks/tools.js-B9Uzu0OB.js +0 -156
  652. package/build/server/chunks/chunks/uploads.js-Dj8oL0YP.js +0 -107
  653. package/build/server/chunks/chunks/view.js-BunAXITd.js +0 -76
  654. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-kVPM8QiK.js +0 -112
  655. package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-D3yUm95J.js +0 -111
  656. package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-t7kJDKFo.js +0 -59
  657. package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-asKE3p3l.js +0 -75
  658. package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-CL96hFwe.js +0 -79
  659. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-DtH4ROLw.js +0 -154
  660. package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-CjMBduD9.js +0 -56
  661. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-tSUMjrxM.js +0 -71
  662. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-B46bSl60.js +0 -107
  663. package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-C2y7h-Co.js +0 -83
  664. package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-C5veyHrZ.js +0 -73
  665. package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-DtwDysQZ.js +0 -66
  666. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-Bnkzua_j.js +0 -66
  667. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-nFnKxdcG.js +0 -67
  668. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js--Yr7q4X9.js +0 -73
  669. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-Bvwd3v0d.js +0 -66
  670. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-DqUrbhsF.js +0 -115
  671. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-BpAtHV7C.js +0 -76
  672. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-BWYNvyCC.js +0 -87
  673. package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-BIaGX_Je.js +0 -75
  674. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-CKGsdGBC.js +0 -66
  675. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-Csr4uwPB.js +0 -32
  676. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-A7LEzpUQ.js +0 -40
  677. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-BIky5eUL.js +0 -58
  678. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-QzznrMw6.js +0 -58
  679. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-BhT-maiz.js +0 -85
  680. package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-DTDIeAua.js +0 -83
  681. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-12ddKzFc.js +0 -76
  682. package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-Dy8Qr5Ob.js +0 -168
  683. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-Dm8emtZq.js +0 -58
  684. package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-DxYAgGOs.js +0 -87
  685. package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-Dk_70OY8.js +0 -68
  686. package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-CMCc7usd.js +0 -23
  687. package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-BnIiNLLM.js +0 -26
  688. package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-DvqKFPx-.js +0 -96
  689. package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-ClesSc9w.js +0 -69
  690. package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-C3RuITes.js +0 -118
  691. package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-5QW9NUip.js +0 -72
  692. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-DPZryu4Q.js +0 -93
  693. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-BcXreDr7.js +0 -82
  694. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-Cec1PqqW.js +0 -77
  695. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-kqsIOpsA.js +0 -74
  696. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-BJocN5Xm.js +0 -27
  697. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-BUpXqp6F.js +0 -81
  698. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-BGOAdpGK.js +0 -39
  699. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-DS3DbCgu.js +0 -58
  700. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-CuZogP4B.js +0 -39
  701. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-BkS35-hL.js +0 -42
  702. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-ByS6w0ap.js +0 -63
  703. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-BmrVgIv5.js +0 -72
  704. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-BLPKS89l.js +0 -69
  705. package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-CXH9OLs6.js +0 -73
  706. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-NecYW7Fw.js +0 -27
  707. package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-BlUsDWOD.js +0 -81
  708. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-CBrquITj.js +0 -63
  709. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-CKI4wWxB.js +0 -72
  710. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-CWPBrHrF.js +0 -84
  711. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-CJSTZha6.js +0 -71
  712. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-CuIgfX_D.js +0 -94
  713. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-BsRnf2ce.js +0 -77
  714. package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-Cb9tcSDx.js +0 -473
  715. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-CY33XrLN.js +0 -88
  716. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-BRAKX1m3.js +0 -67
  717. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-yt0TqAcX.js +0 -77
  718. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-CVa3CdZi.js +0 -137
  719. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-Dy7tHXfQ.js +0 -66
  720. package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-DWZ_aOjS.js +0 -80
  721. package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-CT7Boaf4.js +0 -66
  722. package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-ocY6SwwL.js +0 -69
  723. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-CnXs9bJ0.js +0 -63
  724. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-vDstks5V.js +0 -82
  725. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-BkTBLTm_.js +0 -109
  726. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-D3dlXTwq.js +0 -75
  727. package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-C2K3IFZh.js +0 -104
  728. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-BQ-Pi5Kw.js +0 -123
  729. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-RDdXwMiY.js +0 -77
  730. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-BFwe4mnD.js +0 -80
  731. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-Bh4F9hu_.js +0 -81
  732. package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-Dx9WOcQT.js +0 -24
  733. package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-B2qqL7As.js +0 -31
  734. package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-B8R-L43c.js +0 -33
  735. package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-D3bduhlo.js +0 -93
  736. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-BMPsSJdV.js +0 -40
  737. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-D5UL7RMX.js +0 -27
  738. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-CvEX3NKJ.js +0 -27
  739. package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-DtTwc4Gq.js +0 -82
  740. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-CHQUpKh2.js +0 -62
  741. package/build/server/chunks/entries/hooks.server.js-BG_jlCcK.js +0 -104
  742. package/build/server/chunks/entries/pages/_layout.server.ts.js-CTliqS0t.js +0 -54
  743. package/build/server/chunks/entries/pages/_layout.svelte.js-Bnx1zQNz.js +0 -6028
  744. package/build/server/chunks/entries/pages/_page.server.ts.js-BsobM1Vs.js +0 -16
  745. package/build/server/chunks/entries/pages/_page.svelte.js-CEPxPR_I.js +0 -5810
  746. package/build/server/chunks/entries/pages/crew/_page.svelte.js-sAcZ9qNG.js +0 -115
  747. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-Bc3cLNPh.js +0 -14
  748. package/build/server/chunks/entries/pages/deck/_page.server.ts.js-DZsxsScR.js +0 -16
  749. package/build/server/chunks/entries/pages/deck/_page.svelte.js-u1WdGQom.js +0 -93
  750. package/build/server/chunks/entries/pages/files/_page.server.ts.js-CrzB71Jp.js +0 -17
  751. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-C7IlrK-z.js +0 -11
  752. package/build/server/chunks/entries/pages/health/_page.server.ts.js-DLaP4pWA.js +0 -16
  753. package/build/server/chunks/entries/pages/health/_page.svelte.js-DA7MoO-y.js +0 -517
  754. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-CgDtaaVM.js +0 -18
  755. package/build/server/chunks/entries/pages/inbox/_page.svelte.js--GRUWFc_.js +0 -653
  756. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-mo7xbJt3.js +0 -16
  757. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-BTVTYrL2.js +0 -23
  758. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-CBuwJYf2.js +0 -21
  759. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-CbnfsXhC.js +0 -27
  760. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-CuhFDzPV.js +0 -15
  761. package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-CpnDSMiL.js +0 -11
  762. package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-DePfcsb_.js +0 -13
  763. package/build/server/chunks/entries/pages/settings/_page.server.ts.js-djAsookJ.js +0 -12
  764. package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-DriYtYJc.js +0 -18
  765. package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-NBwcUtec.js +0 -19
  766. package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-CfuxlVXC.js +0 -16
  767. package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-D9yV2bD6.js +0 -15
  768. package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-DAN-2Pxg.js +0 -797
  769. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-tnGbTGGj.js +0 -11
  770. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-DuleEIYa.js +0 -19
  771. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-BxWoMmwC.js +0 -17
  772. package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-BfeP4Gtl.js +0 -11
  773. package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-DQpRqceP.js +0 -11
  774. package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-c3S1VKhz.js +0 -15
  775. package/build/server/chunks/entries/pages/setup/_page.server.ts.js-DOLq2HfK.js +0 -18
  776. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-BJdoTfEx.js +0 -36
  777. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Dm62wxMH.js +0 -112
  778. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-DpwnwQCn.js +0 -24
  779. package/build/server/chunks/entries/pages/time/_page.server.ts.js-CW6Titpm.js +0 -11
  780. package/build/server/chunks/handler-y94pKJeU.js +0 -1474
  781. package/build/server/chunks/index.js-DtEa3MAX.js +0 -4296
  782. package/build/server/chunks/manifest.js-YbFjUaWW.js +0 -969
  783. package/build/server/chunks/nodes/0.js-DZNO3FEd.js +0 -66
  784. package/build/server/chunks/nodes/1.js-DeEeQGnw.js +0 -9
  785. package/build/server/chunks/nodes/10.js-D1WLP-xF.js +0 -65
  786. package/build/server/chunks/nodes/11.js-Cj41sGC5.js +0 -64
  787. package/build/server/chunks/nodes/12.js-B-q9Ib1c.js +0 -12
  788. package/build/server/chunks/nodes/13.js-DsffUOsS.js +0 -9
  789. package/build/server/chunks/nodes/14.js-Dw1DFPiL.js +0 -9
  790. package/build/server/chunks/nodes/15.js-Bm993HDL.js +0 -63
  791. package/build/server/chunks/nodes/16.js-WZ4F89Mr.js +0 -66
  792. package/build/server/chunks/nodes/17.js-Baq9rNe0.js +0 -64
  793. package/build/server/chunks/nodes/18.js-C38z45xS.js +0 -65
  794. package/build/server/chunks/nodes/19.js-DyT8Zd0H.js +0 -64
  795. package/build/server/chunks/nodes/2.js-jQdD36qI.js +0 -63
  796. package/build/server/chunks/nodes/20.js-CQbfd52F.js +0 -24
  797. package/build/server/chunks/nodes/21.js-DW3kIO8q.js +0 -25
  798. package/build/server/chunks/nodes/22.js-ksQVgjBb.js +0 -9
  799. package/build/server/chunks/nodes/23.js-BFPu5J7m.js +0 -25
  800. package/build/server/chunks/nodes/24.js-BKj-MVrY.js +0 -63
  801. package/build/server/chunks/nodes/26.js-DxNHajUJ.js +0 -64
  802. package/build/server/chunks/nodes/27.js-mHDM5fgE.js +0 -63
  803. package/build/server/chunks/nodes/28.js-DTwh097W.js +0 -25
  804. package/build/server/chunks/nodes/29.js-CBmut8fC.js +0 -63
  805. package/build/server/chunks/nodes/3.js-DXVw6q6d.js +0 -9
  806. package/build/server/chunks/nodes/30.js-CbXBXcvy.js +0 -24
  807. package/build/server/chunks/nodes/31.js-WDuQi73D.js +0 -22
  808. package/build/server/chunks/nodes/32.js-T4n52_nY.js +0 -63
  809. package/build/server/chunks/nodes/33.js-BhdoH31z.js +0 -66
  810. package/build/server/chunks/nodes/34.js-BdxLdp7H.js +0 -65
  811. package/build/server/chunks/nodes/35.js-kSAwfGyD.js +0 -26
  812. package/build/server/chunks/nodes/36.js-DnyJGfb-.js +0 -65
  813. package/build/server/chunks/nodes/37.js-XUg9jSCl.js +0 -67
  814. package/build/server/chunks/nodes/38.js-BSf8dpSf.js +0 -64
  815. package/build/server/chunks/nodes/39.js-CzeMaVfA.js +0 -64
  816. package/build/server/chunks/nodes/4.js-DsmciaDg.js +0 -64
  817. package/build/server/chunks/nodes/40.js-BB-3VTMf.js +0 -63
  818. package/build/server/chunks/nodes/5.js-CQfxR-6j.js +0 -63
  819. package/build/server/chunks/nodes/7.js-VphzedHf.js +0 -63
  820. package/build/server/chunks/nodes/8.js-knfTDQmu.js +0 -14
  821. package/build/server/chunks/nodes/9.js-B_uu7boa.js +0 -63
@@ -1,2 +0,0 @@
1
- import"./DsnmJJEf.js";import{d as me,S as ue}from"./BqeJFOiq.js";import{p as fe,e as c,s as a,o as n,r as f,g as D,t as u,a as v,b as _e,h as ce,f as g,n as ge,c as l}from"./CEfkcOME.js";import{s as i}from"./CPPNfCxh.js";import{i as _}from"./D4ikcNuh.js";import{s as xe,e as we}from"./BMjXQSgN.js";import{p as G}from"./D42BPZCD.js";import{T as he}from"./CiB1IASV.js";const k=m=>m.installed?m.settings.filter(e=>e.current===void 0):m.settings,Ne=m=>Object.fromEntries(k(m).map(e=>[e.key,me(e.current??e.default)])),Be=(m,e)=>k(m).find(x=>x.required&&!e[x.key]?.trim())??null,De=m=>Object.fromEntries(Object.entries(m).filter(([,e])=>e.trim()!==""));var pe=l('<p class="mt-0.5 text-xs text-muted-foreground"> </p>'),be=l('<dt class="text-muted-foreground">Now</dt> <dd class="tabular font-mono"> </dd>',1),ye=l('<span class="font-sans">· <a class="text-sea hover:underline" target="_blank" rel="noreferrer">compare</a></span>'),je=l('<dt class="text-muted-foreground">Author</dt> <dd> </dd>',1),ke=l('<dt class="text-muted-foreground">Runs</dt> <dd> </dd>',1),Ae=l('<dt class="text-muted-foreground">Addresses</dt> <dd> </dd>',1),Ie=l('<dt class="text-muted-foreground">Sends</dt> <dd> </dd>',1),Se=l('<dt class="text-muted-foreground">Role</dt> <dd data-roles=""> </dd>',1),Oe=l('<fieldset class="grid gap-3"><legend class="mb-1 text-xs font-medium"> </legend> <!> <p class="text-xs text-muted-foreground">Kept in Wheelhouse’s plugins file.</p></fieldset>'),We=l("<li> </li>"),Re=l('<div class="text-xs text-muted-foreground">Wheelhouse restarts to load it, which stops: <ul class="mt-0.5 list-inside list-disc"></ul></div>'),Te=l('<div class="grid gap-4"><div class="rounded-md border bg-card px-4 py-3"><p class="font-medium"> <span class="font-normal text-muted-foreground"> </span></p> <!> <dl class="mt-3 grid grid-cols-[6rem_minmax(0,1fr)] gap-x-3 gap-y-1 text-xs"><dt class="text-muted-foreground">From</dt> <dd class="font-mono break-all"> </dd> <!> <dt class="text-muted-foreground">Commit</dt> <dd class="tabular font-mono"> <!></dd> <!> <dt class="text-muted-foreground">Adds</dt> <dd> </dd> <!> <!> <!> <!> <dt class="text-muted-foreground">On</dt> <dd> </dd></dl></div> <!> <p class="flex items-start gap-2 rounded-md border border-warning/40 bg-warning/10 px-3 py-2 text-xs"><!> <span> </span></p> <!></div>');function Ge(m,e){fe(e,!0);let x=G(e,"answers",15),A=G(e,"busy",19,()=>[]);const I=ce(()=>k(e.preview)),S=t=>t.slice(0,12);var h=Te(),p=c(h),b=c(p),O=c(b),H=a(O),J=n(H);f(b);var W=a(b,2);{var L=t=>{var r=pe(),d=n(r,!0);u(()=>i(d,e.preview.description)),v(t,r)};_(W,t=>{e.preview.description&&t(L)})}var R=a(W,2),T=a(c(R),2),M=n(T),E=a(T,2);{var Q=t=>{var r=be(),d=a(g(r),2),s=n(d);u(o=>i(s,`${e.preview.installed.version??""} · ${o??""}`),[()=>S(e.preview.installed.commit)]),v(t,r)};_(E,t=>{e.preview.installed&&t(Q)})}var y=a(E,4),F=c(y),V=a(F);{var X=t=>{var r=ye(),d=a(c(r));f(r),u(()=>xe(d,"href",`https://github.com/${e.preview.repository??""}/compare/${e.preview.installed.commit??""}...${e.preview.commit??""}`)),v(t,r)};_(V,t=>{e.preview.installed&&t(X)})}f(y);var P=a(y,2);{var Y=t=>{var r=je(),d=a(g(r),2),s=n(d,!0);u(()=>i(s,e.preview.author)),v(t,r)};_(P,t=>{e.preview.author&&t(Y)})}var U=a(P,4),Z=n(U),q=a(U,2);{var $=t=>{var r=ke(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.services.join(", ")]),v(t,r)};_(q,t=>{e.preview.services.length&&t($)})}var z=a(q,2);{var ee=t=>{var r=Ae(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.addresses.join("; ")]),v(t,r)};_(z,t=>{e.preview.addresses?.length&&t(ee)})}var C=a(z,2);{var te=t=>{var r=Ie(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.capabilities.join("; ")]),v(t,r)};_(C,t=>{e.preview.capabilities?.length&&t(te)})}var K=a(C,2);{var re=t=>{var r=Se(),d=a(g(r),2),s=n(d,!0);u(o=>i(s,o),[()=>e.preview.roles.join("; ")]),v(t,r)};_(K,t=>{e.preview.roles?.length&&t(re)})}var ae=a(K,4),de=n(ae,!0);f(R),f(p);var N=a(p,2);{var se=t=>{var r=Oe(),d=c(r),s=n(d,!0),o=a(d,2);ue(o,{get settings(){return D(I)},get answers(){return x()},set answers(w){x(w)}}),ge(2),f(r),u(()=>i(s,e.preview.installed?"Its new settings":"Its settings")),v(t,r)};_(N,t=>{D(I).length&&t(se)})}var j=a(N,2),B=c(j);he(B,{class:"mt-0.5 size-3.5 shrink-0 text-warning"});var ie=a(B,2),ne=n(ie);f(j);var oe=a(j,2);{var ve=t=>{var r=Re(),d=a(c(r));we(d,20,A,s=>s,(s,o)=>{var w=We(),le=n(w,!0);u(()=>i(le,o)),v(s,w)}),f(d),f(r),v(t,r)};_(oe,t=>{A().length&&t(ve)})}f(h),u((t,r)=>{i(O,`${e.preview.name??""} `),i(J,`${e.preview.id??""} ${e.preview.version??""}`),i(M,`${e.preview.repository??""}${e.preview.ref?` (${e.preview.ref})`:""}`),i(F,`${t??""} `),i(Z,`${r??""}${e.preview.ui?"; a UI bundle":""}`),i(de,e.preview.on),i(ne,`Its code runs with your permissions, inside Wheelhouse and in its pages. Wheelhouse does not
2
- sandbox it. ${e.preview.installed?"Update":"Install"} only plugins you trust.`)},[()=>S(e.preview.commit),()=>e.preview.slots.join(", ")||"nothing to the pages"]),v(m,h),_e()}export{Ge as P,De as f,Ne as i,Be as m};
@@ -1 +0,0 @@
1
- import{e as r,a as l}from"./DTpgmq3M.js";const f=7;function h(e,t,o){const s=e.filter(n=>!r(n)&&l(n)),d=o-f*864e5,a=t.filter(n=>Date.parse(n.decidedAt)>=d).sort((n,i)=>Date.parse(i.decidedAt)-Date.parse(n.decidedAt));return{open:s,made:a,count:s.length+a.length}}const c=e=>e.length>90?e.slice(0,87).trimEnd()+"…":e;function k(e){const t=e.calls[0],o=`I'd decide differently on "${c(t?.question??e.taskTitle)}" (your call: ${t?.verdict??e.verdict}). `;return`/?chat=${encodeURIComponent(e.taskId)}&draft=${encodeURIComponent(o)}`}const p=e=>`/?decision=${encodeURIComponent(e)}`;function u(e){const t=e.secondMate?.taskId?`${e.secondMate.taskId}@${e.secondMate.id}`:e.taskId,s=`About decision ${e.kind==="hold"?e.key:`${e.taskId}, key ${e.key}`} (“${c(e.title)}”), not an answer yet: `;return`/?chat=${encodeURIComponent(t)}&draft=${encodeURIComponent(s)}`}export{k as a,u as c,p as d,h};
@@ -1 +0,0 @@
1
- import"./DsnmJJEf.js";import{p as u,a as i,b as v,c as p,o as g,t as _,g as r,r as d,h as b}from"./CEfkcOME.js";import{s as x}from"./CPPNfCxh.js";import{e as L,s as l}from"./BMjXQSgN.js";import{p as n}from"./gKm-HWvG.js";import{H as O,L as o}from"./Dbp9eKZl.js";var H=p('<a class="nav-tab shrink-0"> </a>'),k=p('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Logbook"></nav>');function E(f,m){u(m,!0);const c=b(()=>n.data.features?.soundings?[...o.slice(0,-1),O,...o.slice(-1)]:o);var e=k();L(e,21,()=>r(c),s=>s.href,(s,t)=>{var a=H(),h=g(a,!0);_(()=>{l(a,"href",r(t).href),l(a,"aria-current",n.url.pathname===r(t).href?"page":void 0),x(h,r(t).label)}),i(s,a)}),d(e),i(f,e),v()}export{E as I};
@@ -1 +0,0 @@
1
- import{o as v}from"./B42VotjV.js";import{q as p,b8 as N,i as u,g as f,m as d}from"./CEfkcOME.js";const h=[];function k(e,t=p){let n=null;const r=new Set;function s(o){if(N(e,o)&&(e=o,n)){const l=!h.length;for(const c of r)c[1](),h.push(c,e);if(l){for(let c=0;c<h.length;c+=2)h[c][0](h[c+1]);h.length=0}}}function i(o){s(o(e))}function a(o,l=p){const c=[o,l];return r.add(c),r.size===1&&(n=t(s,i)||p),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:s,update:i,subscribe:a}}const I="1794944317984";new URL("sveltekit-internal://");function K(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function B(e){return e.split("%25").map(decodeURI).join("%25")}function D(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function J({href:e}){return e.split("#")[0]}function W(e,t,n,r=!1){const s=new URL(e);Object.defineProperty(s,"searchParams",{value:new Proxy(s.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return(c,...x)=>(n(c),a[o](c,...x));t();const l=Reflect.get(a,o);return typeof l=="function"?l.bind(a):l}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const a of i)Object.defineProperty(s,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return s}function L(){}function P(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let s=r.length;for(;s;)t=t*33^r[--s]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;function $(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const q=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&b.delete(m(e)),q(e,t));const b=new Map;function X(e,t){const n=m(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:s,...i}=JSON.parse(r.textContent);r.getAttribute("data-b64")!==null&&(s=$(s));const o=r.getAttribute("data-ttl");return o&&b.set(n,{body:s,init:i,ttl:1e3*Number(o)}),Promise.resolve(new Response(s,i))}return window.fetch(e,t)}function M(e,t,n){if(b.size>0){const r=m(e,n),s=b.get(r);if(s){if(performance.now()<s.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(s.body,s.init);b.delete(r)}}return window.fetch(t,n)}function m(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const s=[];t.headers&&s.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&s.push(t.body),r+=`[data-hash="${P(...s)}"]`}return r}const C=globalThis.__sveltekit_1b4tx2v?.base??"",V=globalThis.__sveltekit_1b4tx2v?.assets??C??"",F="sveltekit:snapshot",Q="sveltekit:scroll",Z="sveltekit:states",ee="sveltekit:pageurl",te="sveltekit:history",ne="sveltekit:navigation",y={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},E=location.origin;function re(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function se(){return{x:pageXOffset,y:pageYOffset}}function g(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const S={...y,"":y.hover};function T(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function oe(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=T(e)}}function ae(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const s=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!s||j(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),a=r?.origin===E&&e.hasAttribute("download");return{url:r,external:i,target:s,download:a}}function ie(e){let t=null,n=null,r=null,s=null,i=null,a=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=g(o,"preload-code")),s===null&&(s=g(o,"preload-data")),t===null&&(t=g(o,"keepfocus")),n===null&&(n=g(o,"noscroll")),i===null&&(i=g(o,"reload")),a===null&&(a=g(o,"replacestate")),o=T(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:S[r??"off"],preload_data:S[s??"off"],keepfocus:l(t),noscroll:l(n),reload:l(i),replace_state:l(a)}}function le(e){const t=k(e);let n=!0;function r(){n=!0,t.update(a=>a)}function s(a){n=!1,t.set(a)}function i(a){let o;return t.subscribe(l=>{(o===void 0||n&&l!==o)&&a(o=l)})}return{notify:r,set:s,subscribe:i}}const U={v:L};function ce(){const{set:e,subscribe:t}=k(!1);let n;async function r(){clearTimeout(n);try{const s=await fetch(`${V}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!s.ok)return!1;const a=(await s.json()).version!==I;return a&&(e(!0),U.v(),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:r}}function j(e,t,n){return e.origin!==E||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function ue(e){}const O=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...O];const G=new Set([...O]);[...G];let w,R,_;const Y=v.toString().includes("$$")||/function \w+\(\) \{\}/.test(v.toString()),A="a:";Y?(w={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(A)},R={current:null},_={current:!1}):(w=new class{#e=u({});get data(){return f(this.#e)}set data(t){d(this.#e,t)}#t=u(null);get form(){return f(this.#t)}set form(t){d(this.#t,t)}#n=u(null);get error(){return f(this.#n)}set error(t){d(this.#n,t)}#r=u({});get params(){return f(this.#r)}set params(t){d(this.#r,t)}#s=u({id:null});get route(){return f(this.#s)}set route(t){d(this.#s,t)}#o=u({});get state(){return f(this.#o)}set state(t){d(this.#o,t)}#a=u(-1);get status(){return f(this.#a)}set status(t){d(this.#a,t)}#i=u(new URL(A));get url(){return f(this.#i)}set url(t){d(this.#i,t)}},R=new class{#e=u(null);get current(){return f(this.#e)}set current(t){d(this.#e,t)}},_=new class{#e=u(!1);get current(){return f(this.#e)}set current(t){d(this.#e,t)}},U.v=()=>_.current=!0);function ge(e){Object.assign(w,e)}export{te as H,ne as N,ee as P,Z as S,R as a,C as b,ie as c,J as d,D as e,oe as f,ae as g,K as h,j as i,ce as j,le as k,y as l,W as m,L as n,E as o,w as p,B as q,re as r,se as s,F as t,ge as u,M as v,k as w,X as x,Q as y,ue as z};
@@ -1,2 +0,0 @@
1
- import{l as ee}from"./CHLlDrXz.js";import{S as ae}from"./BXN538J3.js";import"./DsnmJJEf.js";import{e as h,s as f,r as b,n as te,t as k,a as l,c as u,p as se,y as L,f as W,g as i,o as D,b as oe}from"./CEfkcOME.js";import{s as z}from"./CPPNfCxh.js";import{i as g}from"./D4ikcNuh.js";import{d as A,e as H,k as J,i as re,b as ie,r as ne,s as le}from"./BMjXQSgN.js";import{L as Y}from"./BMEfZRmb.js";import{C as B}from"./BftdAJED.js";import{b as pe}from"./B6yYMcjx.js";import{p as G}from"./D42BPZCD.js";async function d(e,a,s){try{const p=await fetch(e,a===null?void 0:{method:"POST",headers:{"content-type":"application/json",[ae]:a},body:JSON.stringify(s??{})}),v=await p.json().catch(()=>null);return p.ok&&v?{ok:!0,value:v}:{ok:!1,error:v?.message??`Wheelhouse answered ${p.status}.`}}catch{return{ok:!1,error:"Wheelhouse did not answer."}}}const Ne=()=>d("/api/plugins/updates",null),Oe=e=>d("/api/plugins/updates",e),Te=(e=!1)=>d(`/api/plugins/marketplace${e?"?refresh=1":""}`,null),We=(e,a)=>d("/api/plugins/marketplace/registries",a,{add:e}),Ae=(e,a)=>d("/api/plugins/marketplace/registries",a,{remove:e}),Fe=(e,a)=>d("/api/plugins/inspect",a,e),Le=(e,a,s)=>d("/api/plugins/install",s,{repo:e.repository,ref:e.ref,commit:e.commit,settings:a}),De=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e.id)}/update`,s,{ref:e.ref,commit:e.commit,settings:a});function He(e=6e4){return new Promise(a=>{const s=setTimeout(()=>{p(),a(!1)},e),p=ee.onRestart(()=>{clearTimeout(s),p(),a(!0)})})}const Je=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e)}/config`,s,a),Ye=(e,a,s)=>d("/api/plugins/roles",s,{role:e,provider:a}),Be=(e,a)=>d(`/api/plugins/${encodeURIComponent(e)}/load`,a);var ce=u('<span class="size-4 text-center" aria-hidden="true">·</span>'),ue=u(`<p class="mt-3 text-xs text-muted-foreground">Wheelhouse has not come back yet. If it stays away, run <code>wheelhouse open</code> again; the
2
- change is kept.</p>`),de=u('<div aria-live="polite"><ol class="grid gap-1.5"><li class="flex items-center gap-2"><!> </li> <li><!>Restart Wheelhouse to load it</li></ol> <!></div>');function Ge(e,a){var s=de(),p=h(s),v=h(p),w=h(v);{var I=o=>{Y(o,{class:"size-4 animate-spin text-sea"})},R=o=>{B(o,{class:"size-4 text-success"})};g(w,o=>{a.phase==="saving"?o(I):o(R,-1)})}var r=f(w,1,!0);b(v);var _=f(v,2),S=h(_);{var q=o=>{Y(o,{class:"size-4 animate-spin text-sea"})},E=o=>{B(o,{class:"size-4 text-success"})},N=o=>{var P=ce();l(o,P)};g(S,o=>{a.phase==="restarting"||a.phase==="slow"?o(q):a.phase==="done"?o(E,1):o(N,-1)})}te(),b(_),b(p);var O=f(p,2);{var U=o=>{var P=ue();l(o,P)};g(O,o=>{a.phase==="slow"&&o(U)})}b(s),k(()=>{z(r,a.label),A(_,1,`flex items-center gap-2 ${a.phase==="saving"?"text-muted-foreground":""}`)}),l(e,s)}const ve=e=>e===void 0?"":e===!0?"yes":e===!1?"no":Array.isArray(e)?e.join(", "):String(e),Ke=e=>Object.fromEntries(e.map(a=>[a.key,ve(a.current??a.default)]));var me=u('<span class="text-danger" aria-hidden="true">&nbsp;*</span>'),fe=u('<span class="text-muted-foreground">&nbsp;(optional)</span>'),ge=u("<option>Not set</option>"),_e=u("<option> </option>"),he=u("<option>Yes</option> <option>No</option>",1),be=u("<select><!><!></select>"),xe=u('<input type="text" autocomplete="off" spellcheck="false"/>'),ye=u('<span class="text-xs text-muted-foreground"> </span>'),ke=u('<label class="grid gap-1"><span class="text-xs"> <!></span> <!> <!></label>');function Me(e,a){se(a,!0);let s=G(a,"answers",15),p=G(a,"disabled",3,!1);const v="h-9 rounded-md border border-input bg-background px-2.5 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60";var w=L(),I=W(w);H(I,17,()=>a.settings,R=>R.key,(R,r)=>{var _=ke(),S=h(_),q=h(S,!0),E=f(q);{var N=n=>{var t=me();l(n,t)},O=n=>{var t=fe();l(n,t)};g(E,n=>{i(r).required?n(N):n(O,-1)})}b(S);var U=f(S,2);{var o=n=>{var t=be();A(t,1,J(v));var x=h(t);{var Q=c=>{var m=ge();m.value=m.__value="",l(c,m)};g(x,c=>{i(r).required||c(Q)})}var V=f(x);{var X=c=>{var m=L(),C=W(m);H(C,17,()=>i(r).options,y=>y.value,(y,F)=>{var j=_e(),$=D(j,!0),T={};k(()=>{z($,i(F).label),T!==(T=i(F).value)&&(j.value=(j.__value=T)??"")}),l(y,j)}),l(c,m)},Z=c=>{var m=he(),C=W(m);C.value=C.__value="yes";var y=f(C,2);y.value=y.__value="no",l(c,m)};g(V,c=>{i(r).options?c(X):c(Z,-1)})}b(t),re(t),k(()=>{t.required=i(r).required,t.disabled=p()}),ie(t,()=>s()[i(r).key],c=>s(s()[i(r).key]=c,!0)),l(n,t)},P=n=>{var t=xe();ne(t),A(t,1,J(v)),k(()=>{le(t,"inputmode",i(r).type==="number"?"decimal":void 0),t.required=i(r).required,t.disabled=p()}),pe(t,()=>s()[i(r).key],x=>s(s()[i(r).key]=x,!0)),l(n,t)};g(U,n=>{i(r).type==="boolean"||i(r).options?n(o):n(P,-1)})}var K=f(U,2);{var M=n=>{var t=ye(),x=D(t);k(()=>z(x,`${i(r).description??""??""}${i(r).type==="list"?`${i(r).description?" ":""}Separate them with commas.`:""}`)),l(n,t)};g(K,n=>{(i(r).description||i(r).type==="list")&&n(M)})}b(_),k(()=>z(q,i(r).title)),l(R,_)}),l(e,w),oe()}export{Ge as C,Me as S,Ke as a,He as b,Je as c,ve as d,Fe as e,Oe as f,Ye as g,We as h,Le as i,Be as l,Te as m,Ne as p,Ae as r,De as u};
@@ -1,3 +0,0 @@
1
- import"./DsnmJJEf.js";import{o as ra}from"./B42VotjV.js";import{j as na,p as Nt,f as he,e as s,s as n,g as e,o as y,t as b,a as d,r as o,b as Pt,h as l,c,n as Me,aC as oa,m as Ee,i as et,y as sa,q as Tt}from"./CEfkcOME.js";import{d as Bt,s as f,a as ne}from"./CPPNfCxh.js";import{i as x}from"./D4ikcNuh.js";import{e as pe,s as m,d as B,k as ia,h as la}from"./BMjXQSgN.js";import{t as zt}from"./DBuj1e9B.js";import{p as ye}from"./D42BPZCD.js";import{S as da}from"./fGU1mdyw.js";import{p as ua}from"./gKm-HWvG.js";import{a as kt}from"./WRwU91GU.js";import{b as ca}from"./BUYzAikv.js";import{W as va,S as ma,p as ht}from"./1THDSnwR.js";import{t as fa,s as ga,d as pa}from"./Ds4LY5_S.js";import{D as ha,l as xa,s as Ut,d as _a,i as xt,c as ba,a as ka,O as Ze,A as $e,b as wa}from"./CQ0zKnku.js";import{i as _t}from"./Z_T9JZ0p.js";import{g as ya,e as Ca}from"./DTpgmq3M.js";import{a as ja,s as Sa}from"./Z0GxSwEl.js";import{T as Ia}from"./C303vUt4.js";import{S as Aa}from"./Sii3oNcc.js";import{M as Rt}from"./lQExwTPF.js";import{s as Ta}from"./TvzfwAc_.js";import{d as za}from"./BUI64CqJ.js";import{g as Ra}from"./Da2GOnuD.js";import{E as Ea,C as Ma}from"./s7ZLiUKi.js";import{C as Oa}from"./uMlyB-ee.js";import{S as Et,G as La}from"./BUDmXDBn.js";import{M as bt}from"./DgIRKToT.js";import{A as qa}from"./aXaOr426.js";import{G as Ha}from"./CuBB2sQo.js";import{c as Da,g as Na,D as Pa}from"./DREe4_Em.js";import{s as Mt}from"./DlBoDmKe.js";import{a as Ot,p as Ba}from"./-Ivlm0RJ.js";import{A as Lt}from"./POlOdWbo.js";import{X as Ua}from"./C6E-ekUK.js";import{S as qt}from"./C1_mhCjD.js";import{A as Ht}from"./BTPd4OWk.js";import{C as Wa}from"./iInrZOCY.js";import{C as Ga}from"./BftdAJED.js";import{S as Fa}from"./CcHpYnFJ.js";import{p as Ya}from"./XxOJwmzJ.js";const Ka=na({pending:null,draft:null,decision:null});var Qa=c('<span class="absolute inset-y-1.5 -left-1 w-[3px] rounded-full bg-gold" aria-hidden="true"></span>'),Va=c('<span class="mx-1" aria-hidden="true">·</span>'),Xa=c("<!><span> </span>",1),Ja=c('<button type="button" title="Chat about this"><!></button>'),Za=c('<a aria-label="Chat about this question" title="Chat about this"><!></a>'),$a=c('<span class="text-muted-foreground"> </span>'),er=c('<span class="ml-auto text-muted-foreground"> </span>'),tr=c('<p class="leading-snug text-muted-foreground"> </p>'),ar=c('<p class="leading-snug text-muted-foreground" data-now=""> </p>'),rr=c('<div class="pt-1"><!></div>'),nr=c('<a target="_blank" rel="noreferrer" class="flex items-start gap-1 break-all text-sea hover:underline"><!> </a>'),or=c('<div class="-mt-2"><!></div>'),sr=c('<div class="flex flex-col gap-2 text-xs"><div class="flex flex-wrap items-center gap-1.5"><span><!> </span> <!> <!> <!></div> <!> <!> <!> <!> <!> <!> <div class="-ml-1.5 flex flex-wrap gap-0.5"><a><!>Open</a> <button type="button"><!>Chat about this</button></div></div>'),ir=c('<div class="mt-0.5 mb-2 ml-[0.85rem] border-l-2 border-hair pr-1 pl-3" data-deck-detail=""><!></div>'),lr=c('<div><!> <button type="button" data-deck-line="" class="flex h-full min-w-0 flex-1 cursor-pointer items-center gap-2 rounded-md py-2 pr-1 pl-1 text-left focus-visible:outline-2 focus-visible:outline-ring"><!> <span class="min-w-0 flex-1"><span> </span> <span class="block truncate text-xs text-muted-foreground"></span></span></button> <!></div> <!>',1);function dr(Ce,r){Nt(r,!0);let ee=ye(r,"dim",3,!1),F=ye(r,"selected",3,!1);const U={danger:"bg-danger/10 text-danger",warning:"bg-warning/10 text-warning",sea:"bg-sea/10 text-sea",muted:"bg-muted text-muted-foreground",busy:"bg-muted text-foreground",success:"bg-success/10 text-success",quiet:"bg-muted text-muted-foreground"},te=l(()=>r.line.kind==="task"?xa(r.line.task):ha),v=l(()=>r.line.kind==="task"?r.line.task:null),Q=l(()=>`deck-${r.line.key.replace(/[^\w-]/g,"-")}`),V=l(()=>e(v)&&r.line.text!==e(v).shortTitle?e(v).shortTitle:e(v)?.attention?.owner==="captain"&&e(v).attention.text&&e(v).attention.text!==r.line.text?e(v).attention.text:null),Y=l(()=>e(v)?e(v).activity?.text||e(v).summary||e(v).statusLabel:null),de=l(()=>[r.project?{key:"project",text:r.project.tag,title:r.project.name}:null,e(V)??(e(Y)&&e(Y)!==r.line.text?e(Y):null)?{key:"doing",text:e(V)??e(Y),title:void 0}:null,r.line.at?{key:"age",text:Ut(r.line.at,r.now),title:kt(r.line.at,r.now)}:null].filter(R=>R!==null)),ue=l(()=>e(v)?e(v).attention?.url??e(v).pr?.url??null:null),xe=l(()=>e(v)?`/tasks/${encodeURIComponent(e(v).id)}`:null),q=l(()=>!!(e(v)&&r.onOpen)||r.line.kind==="decision"),ce="flex items-center gap-1 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring";var Oe=lr(),je=he(Oe),z=s(je);{var Ne=R=>{var k=Qa();d(R,k)};x(z,R=>{F()&&R(Ne)})}var oe=n(z,2),se=s(oe);Et(se,{get state(){return e(te)},class:"size-5 shrink-0"});var Se=n(se,2),_e=s(Se),K=y(_e,!0),Ie=n(_e,2);pe(Ie,23,()=>e(de),R=>R.key,(R,k,X)=>{var A=Xa(),ie=he(A);{var ve=ae=>{var Le=Va();d(ae,Le)};x(ie,ae=>{e(X)&&ae(ve)})}var le=n(ie),J=y(le,!0);b(()=>{m(le,"title",e(k).title),m(le,"data-project-tag",e(k).key==="project"||void 0),f(J,e(k).text)}),d(R,A)}),o(Ie),o(Se),o(oe);var tt=n(oe,2);{var Pe=R=>{var k=Ja(),X=s(k);bt(X,{class:"size-3.5"}),o(k),b(()=>{B(k,1,`flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground opacity-0 group-hover:opacity-100 hover:bg-muted hover:text-foreground focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-ring pointer-coarse:size-11 pointer-coarse:opacity-100 ${r.open?"opacity-100":""}`),m(k,"aria-label",`Chat about ${e(v).shortTitle??""}`)}),ne("click",k,()=>r.onChat(e(v))),d(R,k)},be=R=>{var k=Za(),X=s(k);bt(X,{class:"size-3.5"}),o(k),b(A=>{m(k,"href",A),B(k,1,`flex size-7 shrink-0 items-center justify-center rounded-md text-muted-foreground opacity-0 group-hover:opacity-100 hover:bg-muted hover:text-foreground focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-ring pointer-coarse:size-11 pointer-coarse:opacity-100 ${r.open?"opacity-100":""}`)},[()=>za(r.line.card.id)]),d(R,k)};x(tt,R=>{e(v)?R(Pe):r.line.kind==="decision"&&R(be,1)})}o(je);var at=n(je,2);{var rt=R=>{var k=ir(),X=s(k);{var A=ie=>{var ve=sr(),le=s(ve),J=s(le),ae=s(J);Et(ae,{get state(){return e(te)},still:!0,decorative:!0,class:"size-3.5"});var Le=n(ae,1,!0);o(J);var Ae=n(J,2);va(Ae,{get task(){return e(v)}});var Be=n(Ae,2);{var nt=g=>{var C=$a(),D=y(C,!0);b(()=>f(D,r.project.name)),d(g,C)};x(Be,g=>{r.project&&g(nt)})}var Ue=n(Be,2);{var We=g=>{var C=er(),D=y(C,!0);b(Re=>f(D,Re),[()=>kt(r.line.at,r.now)]),d(g,C)};x(Ue,g=>{r.line.at&&g(We)})}o(le);var Ge=n(le,2);{var Fe=g=>{var C=tr(),D=y(C,!0);b(()=>f(D,e(V))),d(g,C)};x(Ge,g=>{e(V)&&g(Fe)})}var Ye=n(Ge,2);{var ot=g=>{Oa(g,{get pipeline(){return e(v).pipeline},get busy(){return e(v).busy},size:"rail"})},st=l(()=>Ta(e(v))),it=g=>{var C=ar(),D=y(C,!0);b(()=>f(D,e(Y))),d(g,C)};x(Ye,g=>{e(st)?g(ot):e(Y)&&e(Y)!==r.line.text&&g(it,1)})}var re=n(Ye,2);{var lt=g=>{var C=rr(),D=s(C);ma(D,{get task(){return e(v)}}),o(C),d(g,C)};x(re,g=>{e(v).passage.steps.length>1&&g(lt)})}var Z=n(re,2);{var Ke=g=>{Ea(g,{get eta(){return e(v).eta}})};x(Z,g=>{e(v).eta&&g(Ke)})}var qe=n(Z,2);{var He=g=>{var C=nr(),D=s(C);Ha(D,{class:"mt-0.5 size-3.5 shrink-0","aria-hidden":"true"});var Re=n(D,1,!0);o(C),b(()=>{m(C,"href",e(ue)),f(Re,e(ue))}),d(g,C)};x(qe,g=>{e(ue)&&g(He)})}var De=n(qe,2);{var dt=g=>{var C=or(),D=s(C);Ma(D,{get task(){return e(v)}}),o(C),d(g,C)};x(De,g=>{e(v).preview&&g(dt)})}var Te=n(De,2),me=s(Te);B(me,1,ia(ce));var ut=s(me);qa(ut,{class:"size-3.5","aria-hidden":"true"}),Me(),o(me);var ze=n(me,2);B(ze,1,"flex items-center gap-1 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring cursor-pointer");var ct=s(ze);bt(ct,{class:"size-3.5","aria-hidden":"true"}),Me(),o(ze),o(Te),o(ve),b(()=>{B(J,1,`flex items-center gap-1 rounded px-1.5 leading-[1.15rem] font-medium ${U[e(te).tone]??""}`),f(Le,e(te).label),m(me,"href",e(xe))}),ne("click",ze,()=>r.onChat(e(v))),d(ie,ve)};x(X,ie=>{e(v)&&ie(A)})}o(k),b(()=>m(k,"id",e(Q))),d(R,k)};x(at,R=>{r.open&&!e(q)&&R(rt)})}b(()=>{B(je,1,`group relative flex items-center border-b border-hair transition-colors ${r.open||F()?"bg-muted/70":"hover:bg-muted/50"}`),m(oe,"aria-expanded",e(q)?void 0:r.open),m(oe,"aria-controls",e(q)?void 0:e(Q)),m(oe,"aria-haspopup",e(q)?"dialog":void 0),m(Se,"title",e(V)?`${r.line.text} (${e(V)})`:r.line.text),B(_e,1,`block truncate text-[0.95rem] font-medium ${ee()?"text-muted-foreground":"text-foreground"}`),f(K,r.line.text)}),ne("click",oe,()=>r.line.kind==="decision"?void Ra(ya(r.line.card.id)):e(q)&&e(v)?r.onOpen?.(e(v)):r.onToggle()),d(Ce,Oe),Pt()}Bt(["click"]);var ur=oa('<circle cx="26" cy="26" class="gauge-value" transform="rotate(-90 26 26)"></circle>'),cr=c('<span class="gauge" aria-hidden="true"><svg viewBox="0 0 52 52"><circle cx="26" cy="26" class="gauge-track"></circle><!></svg> <span class="gauge-label"> </span></span>');function Dt(Ce,r){let ee=ye(r,"tone",3,"gold");const F=22,U=2*Math.PI*F,te=l(()=>r.value===null?0:Math.max(0,Math.min(100,Math.round(r.value))));var v=cr(),Q=s(v),V=s(Q);m(V,"r",F);var Y=n(V);{var de=q=>{var ce=ur();m(ce,"r",F),b(()=>m(ce,"stroke-dasharray",`${e(te)/100*U} 138.23007675795088`)),d(q,ce)};x(Y,q=>{r.value!==null&&e(te)>0&&q(de)})}o(Q);var ue=n(Q,2),xe=y(ue,!0);o(v),b(()=>{m(v,"data-tone",ee()),f(xe,r.value===null?"–":`${e(te)}%`)}),d(Ce,v)}var vr=c('<span class="min-w-0 truncate text-muted-foreground"> </span>'),mr=c('<!> <span class="shrink-0 font-medium text-brass"> </span> <!>',1),fr=c('<!> <span class="shrink-0 font-medium text-foreground"> </span>',1),gr=c('<p class="mb-1 flex items-center gap-2 px-1.5 text-xs text-muted-foreground"><!> <span class="min-w-0 truncate"> </span> <a class="ml-auto shrink-0 hover:text-foreground hover:underline">More</a></p>'),pr=c('<h3 class="mt-3 mb-0.5 first:mt-0"><button type="button"><!> <span class="shrink-0 text-muted-foreground tabular-nums"> </span> <span class="min-w-2 flex-1 border-t border-hair" aria-hidden="true"></span> <!></button></h3> <!>',1),hr=c("<span> <b> </b> left</span>"),xr=c('<a href="/headroom" class="ml-auto flex min-w-0 flex-col items-end rounded-md px-1.5 py-1 text-xs leading-tight text-muted-foreground hover:bg-muted hover:text-foreground max-md:min-h-11 max-md:justify-center" data-headroom=""><span class="sr-only">Claude headroom:</span> <!></a>'),_r=c('<a href="/headroom" class="ml-auto flex items-center gap-1.5 rounded-md px-1.5 py-1 text-xs text-muted-foreground hover:bg-muted hover:text-foreground" title="Connect your Claude usage to see what is left"><!>Connect usage</a>'),br=c('<button aria-label="Close"><!></button>'),kr=c('<button type="button" role="radio"><!> <span> </span> <span class="sr-only"> </span> <span aria-hidden="true"> </span></button>'),wr=c('<div class="shrink-0 px-4 pt-4"><div class="flex flex-wrap gap-2 text-[0.9rem]" role="radiogroup" aria-label="Whose work" tabindex="-1"></div></div>'),yr=c("<span> </span>"),Cr=c('<button role="tab" aria-controls="rail-panel"> <!></button>'),jr=c('<div class="px-1.5" data-slot="home.card"><!></div>'),Sr=c('<button type="button" class="float-right -mt-1 ml-2 flex cursor-pointer items-center gap-0.5 rounded-md px-1.5 py-1 text-xs whitespace-nowrap text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring max-md:float-none max-md:mt-0 max-md:ml-auto max-md:min-h-11 max-md:text-sm"><!> </button>'),Ir=c('<div class="mb-2" data-needs-decisions=""><!></div>'),Ar=c("<li><!></li>"),Tr=c("<ul></ul>"),zr=c('<p class="px-1.5 py-1 text-xs text-muted-foreground"> </p>'),Rr=c("<section><!> <!></section>"),Er=c('<p class="flex items-center gap-2 px-1.5 py-1 text-sm text-muted-foreground"><!> </p>'),Mr=c('<li><a class="flex h-8 items-center gap-2 rounded-md px-1.5 hover:bg-muted/50 focus-visible:outline-2 focus-visible:outline-ring"><span class="min-w-0 flex-1 truncate text-[0.875rem] text-muted-foreground"> </span> <span class="shrink-0 text-xs font-medium"> </span> <span class="w-7 shrink-0 text-right text-xs text-muted-foreground tabular-nums"> </span></a></li>'),Or=c('<div class="mt-4 mb-0.5 flex items-center gap-2 px-1.5 text-xs"><h3 class="flex items-center gap-1.5 font-medium text-muted-foreground"><!>Decided for you</h3> <span class="flex-1 border-t border-hair" aria-hidden="true"></span> <a href="/decisions" class="text-muted-foreground hover:text-foreground">See all</a></div> <ul></ul>',1),Lr=c('<a href="/time" class="mt-4 block rounded-md px-1.5 py-1 hover:bg-muted/50"><span class="block text-xs text-muted-foreground"><span class="font-medium text-foreground"> </span> </span> <span class="mt-1.5 block"><!></span> <span class="mt-1.5 block text-xs text-muted-foreground"> </span></a>'),qr=c("<!> <div><!> <!></div> <!> <!>",1),Hr=c('<a href="/second-mates" class="flex items-center justify-between gap-3 border-t px-1 py-3.5 text-muted-foreground hover:text-foreground">Every second mate, with its queue, pull requests and a look at it <!></a>'),Dr=c('<li class="mt-3 max-md:mt-1"><a class="group block text-sm max-md:py-1.5"><span class="flex items-baseline justify-between gap-2" aria-hidden="true"><span class="truncate font-medium group-hover:underline"> </span> <span class="shrink-0 text-xs text-muted-foreground"> </span></span> <span class="glance-bar" aria-hidden="true"><span></span></span></a></li>'),Nr=c('<section class="mt-4 rounded-2xl border bg-card/70 px-4 pt-4 pb-4.5" aria-labelledby="rail-glance" data-glance=""><h3 id="rail-glance" class="font-semibold">Harbour at a glance</h3> <p class="text-sm text-muted-foreground">The fleet, without leaving the bridge.</p> <ul></ul></section>'),Pr=c('<aside class="flex h-full min-h-0 flex-col" aria-label="Tasks and decisions" aria-describedby="rail-headline"><p id="rail-headline" class="sr-only"> </p> <div class="flex h-16 shrink-0 items-center gap-2 border-b px-5 text-sm"><span class="font-title text-[2.15rem] leading-none">On <em class="text-gold">deck</em></span> <!> <!></div> <div class="grid shrink-0 grid-cols-2 gap-2.5 px-4 pt-4" data-gauges=""><a href="/headroom" class="gauge-card"><!> <span class="min-w-0"><span class="block font-semibold"> </span> <span class="block text-xs leading-snug text-muted-foreground"> </span></span></a> <a class="gauge-card"><!> <span class="min-w-0"><span class="block font-semibold">Checks</span> <span class="block text-xs leading-snug text-muted-foreground"> </span></span></a></div> <!> <div class="mt-3 no-scrollbar flex shrink-0 gap-5 overflow-x-auto border-b px-4" role="tablist" aria-label="On deck" tabindex="-1"></div> <div id="rail-panel" role="tabpanel" class="no-scrollbar min-h-0 flex-1 overflow-y-auto px-4 py-3"><!> <nav class="mt-5 flex flex-col" aria-label="More on deck"><a class="flex items-center justify-between gap-3 border-t px-1 py-3.5 font-medium hover:text-gold"> <!></a> <!></nav> <!></div></aside>');function Rn(Ce,r){Nt(r,!0);const ee=(t,a=Tt,i=Tt)=>{var h=pr(),u=he(h),E=s(u),M=s(E);{var T=p=>{var I=mr(),j=he(I);qt(j,{class:"size-3.5 shrink-0 text-brass","aria-hidden":"true"});var O=n(j,2),N=y(O,!0),L=n(O,2);{var H=G=>{var P=vr(),$=y(P,!0);b(we=>f($,we),[()=>a().mate.where==="remote"?ht(a().mate.host):"on this computer"]),d(G,P)};x(L,G=>{a().mate&&G(H)})}b(()=>f(N,a().label)),d(p,I)},W=p=>{var I=fr(),j=he(I);Ht(j,{class:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"});var O=n(j,2),N=y(O,!0);b(()=>f(N,a().label)),d(p,I)};x(M,p=>{a().id!==Ze?p(T):p(W,-1)})}var fe=n(M,2),ke=y(fe,!0),ge=n(fe,4);{var w=p=>{Rt(p,{get health(){return a().mate.health}})};x(ge,p=>{a().mate&&(a().mate.health.online!=="online"||a().mate.health.cached)&&p(w)})}o(E),o(u);var _=n(u,2);{var S=p=>{var I=gr(),j=s(I);Rt(j,{get health(){return a().mate.health}});var O=n(j,2),N=y(O),L=n(O,2);o(I),b(H=>{m(I,"data-second-mate",a().mate.id),m(O,"title",a().mate.lastReport?.text),f(N,`${a().mate.stateLabel??""}${a().mate.queued.length?` · ${a().mate.queued.length} queued`:""}${a().mate.lastReport?` · “${a().mate.lastReport.text}”`:""}`),m(L,"href",`/second-mates#mate-${H??""}`)},[()=>encodeURIComponent(a().mate.id)]),d(p,I)};x(_,p=>{a().mate&&e(K)===a().id&&p(S)})}b(p=>{m(u,"data-crew",a().id),B(E,1,`flex h-6 w-full items-center gap-1.5 rounded-md px-1.5 text-left text-xs focus-visible:outline-2 focus-visible:outline-ring ${e(K)===a().id?"cursor-default":"cursor-pointer hover:bg-muted/50"}`),m(E,"aria-label",`${a().label??""}${p??""}: ${i()??""}${e(K)===a().id?"":". Show only this crew"}`),f(ke,i())},[()=>a().mate?`, ${a().mate.where==="remote"?ht(a().mate.host):"on this computer"}`:""]),ne("click",E,()=>Ie(a().id)),d(t,h)};let F=ye(r,"insights",3,null),U=ye(r,"scope",3,null),te=ye(r,"cards",19,()=>[]),v=ye(r,"secondMates",19,()=>[]);const Q=t=>!U()||t===U(),V=l(()=>(F()?.decisions??[]).filter(t=>Q(t.projectId))),Y=l(()=>ga((F()?.today??[]).filter(t=>Q(t.projectId)))),de=l(()=>fa(e(Y))),ue=l(()=>(F()?.today??[]).filter(t=>Q(t.projectId)).length),xe=t=>e(de)?Math.round(e(Y)[t]/e(de)*100):0,q=l(()=>F()?.allowance??null),ce=l(()=>ua.data.inbox),Oe=l(()=>_t.view(e(ce))),je=l(()=>e(Oe)?.available?{shown:_t.shown(r.now,e(ce)).shown.filter(Ca),all:e(Oe).cards}:null),z=l(()=>_a(r.tasks,r.now,e(je),U())),Ne=l(()=>[...e(z).needs,...e(z).withFirstmate,...e(z).under,...e(z).next,...e(z).landed]),oe=l(()=>U()?v().filter(t=>e(Ne).some(a=>a.crew===t.id)):v()),se=l(()=>ba(e(oe),e(Ne))),Se="wheelhouse-rail-crew";let _e=et(null);const K=l(()=>ka(e(_e),e(se)));function Ie(t){Ee(_e,t,!0);try{localStorage.setItem(Se,t)}catch{}}function tt(t){if(!["ArrowLeft","ArrowRight","Home","End"].includes(t.key))return;t.preventDefault();const a=[$e,...e(se).map(u=>u.id)],i=a.indexOf(e(K)),h=t.key==="Home"?0:t.key==="End"?a.length-1:(i+(t.key==="ArrowRight"?1:a.length-1))%a.length;Ie(a[h]),document.getElementById(Pe(a[h]))?.focus()}const Pe=t=>`rail-crew-${t.replace(/[^\w-]/g,"-")}`,be=t=>t.filter(a=>xt(e(K),a.crew)),at=t=>[...e(z).needs,...e(z).withFirstmate,...e(z).under].filter(a=>xt(t,a.crew)).length,rt=t=>e(z).needs.filter(a=>xt(t,a.crew)).length,R="wheelhouse-rail-tab",k=l(()=>[{id:"under",label:"Under way",count:be(e(z).under).length,strong:!1},{id:"needs",label:"Needs you",count:be(e(z).needs).length,strong:!0},{id:"landed",label:"Landed",count:be(e(z).landed).length,strong:!1},...te().map(t=>({id:t.key,label:t.title,count:t.badge??0,strong:!1}))]);let X=et("under");const A=l(()=>e(k).some(t=>t.id===e(X))?e(X):"under"),ie=l(()=>te().find(t=>t.key===e(A))??null);ra(()=>{Ot.load();try{Ee(X,localStorage.getItem(R)||"under",!0),Ee(_e,localStorage.getItem(Se),!0)}catch{}});function ve(t){Ee(X,t,!0);try{localStorage.setItem(R,t)}catch{}}function le(t){if(t.key!=="ArrowLeft"&&t.key!=="ArrowRight")return;t.preventDefault();const a=e(k).findIndex(h=>h.id===e(A)),i=e(k)[(a+(t.key==="ArrowRight"?1:e(k).length-1))%e(k).length];ve(i.id),document.getElementById(`rail-tab-${i.id}`)?.focus()}let J=et(!1);const ae=new da;function Le(t){ae.has(t)?ae.delete(t):ae.add(t)}const Ae=l(()=>be(e(z).needs).filter(t=>t.kind==="decision").length),Be=l(()=>e(A)==="needs"?[...e(z).needs,...e(z).withFirstmate].filter(t=>t.kind!=="decision"):e(A)==="under"?[...e(z).under,...e(J)?e(z).next:[]]:e(A)==="landed"?e(z).landed:[]),nt=l(()=>wa(e(Be),e(se),e(K))),Ue=l(()=>be(e(z).next).length),We=l(()=>e(K)===$e||e(K)===Ze);function Ge(t){if(!["ArrowDown","ArrowUp","Home","End"].includes(t.key))return;const i=[...t.currentTarget.querySelectorAll("[data-deck-line]")],h=i.indexOf(document.activeElement);if(h<0)return;t.preventDefault();const u=t.key==="Home"?0:t.key==="End"?i.length-1:Math.max(0,Math.min(i.length-1,h+(t.key==="ArrowDown"?1:-1)));i[u]?.focus()}const Fe=t=>!t||t==="unassigned"?null:r.projects.find(a=>a.id===t)?.name??t,Ye=l(()=>Ba(r.projects,Ot.names));function ot(t){const a=t.kind==="task"?t.task.projectId:t.card.projectId,i=Fe(a);return i?{name:i,tag:e(Ye).get(a)?.label??i}:null}const st=l(()=>Mt.taskId);function it(t){Ka.pending={kind:"task",id:t.id,title:t.shortTitle,project:Fe(t.projectId),url:null},r.onChat?.()}const re=l(()=>e(q)?.state==="ok"?e(q).windows.find(t=>/week/i.test(t.label))??e(q).windows[0]??null:null),lt=l(()=>r.tasks.filter(t=>Q(t.projectId))),Z=l(()=>Da(e(lt))),Ke=l(()=>Na(r.projects.filter(t=>Q(t.id)&&t.id!=="unassigned"),r.tasks)),qe={needs:"Nothing needs you right now.",under:"Nothing under way.",landed:"Nothing landed in the last day."};var He=Pr(),De=s(He),dt=y(De,!0),Te=n(De,2),me=n(s(Te),2);{var ut=t=>{var a=xr(),i=n(s(a),2);pe(i,17,()=>e(q).windows.slice(0,2),h=>h.id,(h,u)=>{var E=hr(),M=s(E),T=n(M),W=y(T);Me(),o(E),b(()=>{B(E,1,`whitespace-nowrap tabular-nums ${e(u).atRisk?"font-medium text-warning":e(u).id===e(re)?.id?"text-gold":""}`),f(M,`${e(u).label??""} `),B(T,1,`font-semibold ${e(u).id===e(re)?.id?"":"text-foreground"}`),f(W,`${e(u).percentLeft??""}%`)}),d(h,E)}),o(a),b(h=>m(a,"title",`Claude headroom: ${h??""}${F()?.atRisk?`. ${F().atRisk.label} may run out before it resets.`:""}`),[()=>e(q).windows.slice(0,2).map(h=>`${h.label} ${h.percentLeft}% left`).join(", ")]),d(t,a)},ze=t=>{var a=_r(),i=s(a);La(i,{class:"size-3.5","aria-hidden":"true"}),Me(),o(a),d(t,a)};x(me,t=>{e(q)?.state==="ok"&&e(q).windows.length?t(ut):e(q)?.state==="connect"&&t(ze,1)})}var ct=n(me,2);{var g=t=>{var a=br(),i=s(a);Ua(i,{class:"size-4"}),o(a),b(()=>B(a,1,`-mr-2 flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground ${e(q)?.state==="ok"||e(q)?.state==="connect"?"":"ml-auto"}`)),ne("click",a,function(...h){r.onClose?.apply(this,h)}),d(t,a)};x(ct,t=>{r.onClose&&t(g)})}o(Te);var C=n(Te,2),D=s(C),Re=s(D);{let t=l(()=>e(re)?.percentLeft??null);Dt(Re,{get value(){return e(t)},tone:"gold"})}var wt=n(Re,2),yt=s(wt),Wt=y(yt,!0),Gt=n(yt,2),Ft=y(Gt,!0);o(wt),o(D);var Qe=n(D,2),Ct=s(Qe);Dt(Ct,{get value(){return e(Z).percent},tone:"teal"});var jt=n(Ct,2),Yt=n(s(jt),2),Kt=y(Yt,!0);o(jt),o(Qe),o(C);var St=n(C,2);{var Qt=t=>{var a=wr(),i=s(a);pe(i,21,()=>[{id:$e,label:"All",short:"All",mate:null},...e(se)],h=>h.id,(h,u)=>{const E=l(()=>at(e(u).id)),M=l(()=>rt(e(u).id));var T=kr(),W=s(T);{var fe=j=>{qt(j,{class:"size-3 shrink-0 text-brass","aria-hidden":"true"})},ke=j=>{Ht(j,{class:"size-3 shrink-0","aria-hidden":"true"})};x(W,j=>{e(u).id!==Ze&&e(u).id!==$e?j(fe):e(u).id===Ze&&j(ke,1)})}var ge=n(W,2),w=y(ge,!0),_=n(ge,2),S=y(_),p=n(_,2),I=y(p,!0);o(T),b((j,O)=>{m(T,"id",j),m(T,"aria-checked",e(K)===e(u).id),m(T,"tabindex",e(K)===e(u).id?0:-1),B(T,1,`flex shrink-0 cursor-pointer items-center gap-1.5 rounded-full border px-3.5 py-1.5 whitespace-nowrap transition-colors focus-visible:outline-2 focus-visible:outline-ring ${e(K)===e(u).id?"border-foreground bg-foreground font-medium text-background":"text-foreground/85 hover:border-foreground/40 hover:text-foreground"}`),m(T,"title",`${e(u).label??""}${O??""}: ${e(E)??""} in play${e(M)?`, ${e(M)} waiting on you`:""}`),f(w,e(u).short),f(S,`: ${e(E)??""} in play${e(M)?`, ${e(M)} waiting on you`:""}`),B(p,1,`shrink-0 font-mono text-[0.75rem] tabular-nums ${e(M)?"rounded-full bg-sea px-[5px] font-semibold text-on-accent":"opacity-70"}`),f(I,e(M)||e(E))},[()=>Pe(e(u).id),()=>e(u).mate?.host?` ${ht(e(u).mate.host)}`:""]),ne("click",T,()=>Ie(e(u).id)),d(h,T)}),o(i),o(a),ne("keydown",i,tt),d(t,a)};x(St,t=>{e(se).length>1&&t(Qt)})}var Ve=n(St,2);pe(Ve,21,()=>e(k),t=>t.id,(t,a)=>{var i=Cr(),h=s(i,!0),u=n(h);{var E=M=>{var T=yr(),W=y(T,!0);b(()=>{B(T,1,`tabular rounded-full px-1.5 text-xs leading-4 font-semibold ${e(a).strong?"bg-sea text-on-accent":"bg-muted text-muted-foreground"}`),f(W,e(a).count)}),d(M,T)};x(u,M=>{e(a).count&&M(E)})}o(i),b(()=>{m(i,"id",`rail-tab-${e(a).id??""}`),m(i,"aria-selected",e(A)===e(a).id),m(i,"tabindex",e(A)===e(a).id?0:-1),B(i,1,`-mb-px flex shrink-0 cursor-pointer items-center gap-1.5 border-b-[2.5px] px-0.5 py-2.5 text-base whitespace-nowrap transition-colors duration-200 focus-visible:outline-2 focus-visible:outline-ring ${e(A)===e(a).id?"border-gold font-semibold text-foreground":"border-transparent text-muted-foreground hover:text-foreground"}`),f(h,e(a).label)}),ne("click",i,()=>ve(e(a).id)),d(t,i)}),o(Ve);var vt=n(Ve,2),It=s(vt);{var Vt=t=>{var a=jr(),i=s(a);Aa(i,{get entry(){return e(ie)},get now(){return r.now}}),o(a),d(t,a)},Xt=t=>{var a=qr(),i=he(a);{var h=w=>{var _=Sr(),S=s(_);{let I=l(()=>e(J)?"rotate-90":"");Wa(S,{get class(){return`size-3.5 transition-transform ${e(I)??""}`},"aria-hidden":"true"})}var p=n(S);o(_),b(()=>{m(_,"aria-expanded",e(J)),f(p,`Up next · ${e(Ue)??""}`)}),ne("click",_,()=>Ee(J,!e(J))),d(w,_)};x(i,w=>{e(A)==="under"&&e(Ue)&&w(h)})}var u=n(i,2),E=s(u);{var M=w=>{var _=Ir(),S=s(_);{let p=l(()=>({projectId:U()}));Pa(S,{get filter(){return e(p)},compact:!0})}o(_),d(w,_)};x(E,w=>{e(A)==="needs"&&e(Ae)&&w(M)})}var T=n(E,2);pe(T,17,()=>e(nt),w=>w.crew.id,(w,_)=>{var S=Rr(),p=s(S);{var I=L=>{ee(L,()=>e(_).crew,()=>e(_).lines.length)};x(p,L=>{e(se).length>1&&L(I)})}var j=n(p,2);{var O=L=>{var H=Tr();pe(H,21,()=>e(_).lines,G=>G.key,(G,P)=>{var $=Ar(),we=s($);{let Je=l(()=>ae.has(e(P).key)),ft=l(()=>ot(e(P))),gt=l(()=>e(P).kind==="task"&&(e(P).task.status==="queued"||e(P).task.status==="landed")),pt=l(()=>e(P).kind==="task"&&e(P).task.id===e(st));dr(we,{get line(){return e(P)},get now(){return r.now},get open(){return e(Je)},get project(){return e(ft)},get dim(){return e(gt)},get selected(){return e(pt)},onToggle:()=>Le(e(P).key),onOpen:aa=>Mt.openTask(aa.id),onChat:it})}o($),zt(1,$,()=>ja),zt(2,$,()=>Sa,()=>({word:e(P).kind==="decision"?_t.stampFor(e(P).card.id):null})),d(G,$)}),o(H),d(L,H)},N=L=>{var H=zr(),G=y(H,!0);b(()=>f(G,qe[e(A)])),d(L,H)};x(j,L=>{e(_).lines.length?L(O):e(A)==="needs"&&e(Ae)||L(N,1)})}o(S),b(()=>{m(S,"aria-label",e(_).crew.label),m(S,"data-crew-group",e(_).crew.id)}),d(w,S)},w=>{var _=sa(),S=he(_);{var p=I=>{var j=Er(),O=s(j);{var N=H=>{Ga(H,{class:"size-4 text-success","aria-hidden":"true"})};x(O,H=>{e(A)==="needs"&&H(N)})}var L=n(O,1,!0);o(j),b(()=>f(L,qe[e(A)])),d(I,j)};x(S,I=>{e(A)==="needs"&&e(Ae)||I(p)})}d(w,_)}),o(u);var W=n(u,2);{var fe=w=>{var _=Or(),S=he(_),p=s(S),I=s(p);Fa(I,{class:"size-3.5","aria-hidden":"true"}),Me(),o(p),Me(4),o(S);var j=n(S,2);pe(j,21,()=>e(V).slice(0,3),O=>O.id,(O,N)=>{var L=Mr(),H=s(L),G=s(H),P=y(G,!0),$=n(G,2),we=y($,!0),Je=n($,2),ft=y(Je,!0);o(H),o(L),b((gt,pt)=>{m(H,"href",`/decisions#${e(N).id??""}`),m(H,"title",e(N).question),f(P,e(N).taskTitle),f(we,e(N).verdict),m(Je,"title",gt),f(ft,pt)},[()=>kt(e(N).decidedAt,r.now),()=>Ut(e(N).decidedAt,r.now)]),d(O,L)}),o(j),d(w,_)};x(W,w=>{e(A)==="needs"&&e(V).length&&e(We)&&w(fe)})}var ke=n(W,2);{var ge=w=>{var _=Lr(),S=s(_),p=s(S),I=y(p,!0),j=n(p);o(S);var O=n(S,2),N=s(O);Ia(N,{get seconds(){return e(Y)},label:"Today"}),o(O);var L=n(O,2),H=y(L);o(_),b((G,P,$,we)=>{f(I,G),f(j,` of crew time today on ${e(ue)??""}
2
- ${e(ue)===1?"task":"tasks"}`),f(H,`${P??""}% building · ${$??""}% automated review · ${we??""}%
3
- waiting on you`)},[()=>pa(e(de)),()=>xe("build"),()=>xe("review"),()=>xe("captain")]),d(w,_)};x(ke,w=>{e(A)==="landed"&&e(de)>0&&e(We)&&w(ge)})}ne("keydown",u,Ge),d(t,a)};x(It,t=>{e(ie)?t(Vt):t(Xt,-1)})}var mt=n(It,2),Xe=s(mt),At=s(Xe),Jt=n(At);Lt(Jt,{class:"size-4 shrink-0 text-gold","aria-hidden":"true"}),o(Xe);var Zt=n(Xe,2);{var $t=t=>{var a=Hr(),i=n(s(a));Lt(i,{class:"size-4 shrink-0 text-gold","aria-hidden":"true"}),o(a),d(t,a)};x(Zt,t=>{e(oe).length&&t($t)})}o(mt);var ea=n(mt,2);{var ta=t=>{var a=Nr(),i=n(s(a),4);pe(i,21,()=>e(Ke),h=>h.id,(h,u)=>{var E=Dr(),M=s(E),T=s(M),W=s(T),fe=y(W,!0),ke=n(W,2),ge=y(ke,!0);o(T);var w=n(T,2),_=s(w);let S;o(w),o(M),o(E),b((p,I)=>{m(M,"href",`/projects/${p??""}`),m(M,"aria-label",`${e(u).name??""}: ${e(u).word??""}, ${e(u).landed??""}% of its work landed`),f(fe,e(u).name),f(ge,e(u).word),m(w,"data-tone",e(u).tone),S=la(_,"",S,{width:I})},[()=>encodeURIComponent(e(u).id),()=>`${Math.max(e(u).landed,3)}%`]),d(h,E)}),o(i),o(a),d(t,a)};x(ea,t=>{e(Ke).length&&t(ta)})}o(vt),o(He),b((t,a,i)=>{f(dt,t),m(D,"aria-label",e(re)?`Claude headroom: ${e(re).label}, ${e(re).percentLeft}% left`:"Claude headroom: not read yet"),f(Wt,e(re)?.label??"Headroom"),f(Ft,e(re)?"Of Claude’s allowance left until it resets":e(q)?.state==="connect"?"Connect your Claude usage to see it":"Claude’s limits are not read yet"),m(Qe,"href",a),m(Qe,"aria-label",`Checks: ${e(Z).percent??""}% of the work in play has nothing failing${e(Z).failing?`, ${e(Z).failing} failing`:""}`),f(Kt,e(Z).failing?`${e(Z).failing} of ${e(Z).inPlay} in play failing`:e(Z).inPlay?`Nothing failing across ${e(Z).inPlay} in play`:"Nothing in play"),m(vt,"aria-labelledby",`rail-tab-${e(A)??""}`),m(Xe,"href",i),f(At,`${U()?"Open the project’s page":"Open every project in Harbour"} `)},[()=>ca(e(z).h),()=>U()?`/projects/${encodeURIComponent(U())}`:"/harbour",()=>U()?`/projects/${encodeURIComponent(U())}`:"/harbour"]),ne("keydown",Ve,le),d(Ce,He),Pt()}Bt(["click","keydown"]);const Br=6e4;class Ur{#e=et(null);get value(){return e(this.#e)}set value(r){Ee(this.#e,r,!0)}seed(r){r&&(this.value=r)}connect(r=document){return Ya({load:async()=>{const ee=await fetch("/api/insights");return ee.ok?await ee.json():null},intervalMs:Br,immediate:!1,onresult:ee=>{ee&&(this.value=ee)},onerror:()=>{},doc:r})}}const En=new Ur;export{Rn as R,Ka as c,En as r};
@@ -1 +0,0 @@
1
- import{i as r,g as n,m as i,j as f}from"./CEfkcOME.js";import{p as d}from"./gKm-HWvG.js";import{w as g}from"./RYvdmj4W.js";const m="wheelhouse-live",w="wheelhouse-live-leader",y=2*6e4;class v{#e=r(null);get fleet(){return n(this.#e)}set fleet(e){i(this.#e,e)}#t=r(null);get eventsPaused(){return n(this.#t)}set eventsPaused(e){i(this.#t,e,!0)}#s=r(null);get health(){return n(this.#s)}set health(e){i(this.#s,e,!0)}#a=r(null);get messages(){return n(this.#a)}set messages(e){i(this.#a,e)}#r=r(null);get crew(){return n(this.#r)}set crew(e){i(this.#r,e,!0)}#n=r("connecting");get connection(){return n(this.#n)}set connection(e){i(this.#n,e,!0)}#i=r(f(Date.now()));get now(){return n(this.#i)}set now(e){i(this.#i,e,!0)}#l=r(0);get revision(){return n(this.#l)}set revision(e){i(this.#l,e,!0)}#h=r(!1);get leader(){return n(this.#h)}set leader(e){i(this.#h,e,!0)}claim=()=>!0;alertListeners=new Set;restartListeners=new Set;serverId=null;latest={};recentAlerts=new Map;channel=null;stop=null;onAlert(e){return this.alertListeners.add(e),()=>this.alertListeners.delete(e)}onRestart(e){return this.restartListeners.add(e),()=>this.restartListeners.delete(e)}connect(){if(this.stop)return()=>{};const e=setInterval(()=>this.now=Date.now(),15e3),l=typeof BroadcastChannel<"u"&&!!globalThis.navigator?.locks?this.share():this.lead();return this.stop=()=>{clearInterval(e),l(),this.stop=null},this.stop}share(){const e=new BroadcastChannel(m);this.channel=e,e.onmessage=h=>{const s=h.data;s.t==="hello"?this.leader&&this.replay():s.t==="connection"?this.leader||(this.connection=s.state):this.leader||this.apply(s.e)};const a=new AbortController;let l=()=>{};return navigator.locks.request(w,{signal:a.signal},()=>{const h=this.lead();return new Promise(s=>{l=()=>{h(),s()}})}).catch(()=>{}),e.postMessage({t:"hello"}),()=>{a.abort(),l(),e.close(),this.channel=null}}lead(){this.leader=!0;const e=h=>{this.connection=h,this.post({t:"connection",state:h})},l=g("/api/events",h=>{const s=(t,o)=>h.addEventListener(t,p=>{const c=o(JSON.parse(p.data));this.remember(c),this.apply(c),this.post({t:"event",e:c}),c.type==="fleet"&&e("open")});s("server",t=>({type:"server",data:t})),s("events-status",t=>({type:"events-status",data:t})),s("fleet",t=>({type:"fleet",data:t})),s("health",t=>({type:"health",data:t})),s("messages",t=>({type:"messages",data:t})),s("crew",t=>({type:"crew",data:t})),s("alert",t=>({type:"alert",data:t,fresh:this.claim(t)})),s("settled",t=>({type:"settled",data:t})),s("alerts",t=>({type:"alerts",data:t.map(o=>{const p=this.claim(o);return{alert:o,fresh:p&&Date.now()-Date.parse(o.at)<=y}})}))},e);return()=>{l(),this.leader=!1}}remember(e){if(e.type==="alert")this.recentAlerts.set(e.data.id,e.data);else if(e.type==="settled")this.recentAlerts.delete(e.data);else if(e.type==="alerts")for(const a of e.data)this.recentAlerts.set(a.alert.id,a.alert);else this.latest[e.type]=e.data;for(const a of[...this.recentAlerts.keys()].slice(0,-40))this.recentAlerts.delete(a)}replay(){this.post({t:"connection",state:this.connection}),this.latest["events-status"]&&this.post({t:"event",e:{type:"events-status",data:this.latest["events-status"]}}),this.latest.fleet&&this.post({t:"event",e:{type:"fleet",data:this.latest.fleet}}),this.latest.health&&this.post({t:"event",e:{type:"health",data:this.latest.health}}),this.latest.messages&&this.post({t:"event",e:{type:"messages",data:this.latest.messages}}),this.latest.crew&&this.post({t:"event",e:{type:"crew",data:this.latest.crew}}),this.latest.server&&this.post({t:"event",e:{type:"server",data:this.latest.server}});const e=[...this.recentAlerts.values()].map(a=>({alert:a,fresh:!1}));this.post({t:"event",e:{type:"alerts",data:e}})}apply(e){switch(e.type){case"events-status":this.eventsPaused=e.data.paused;break;case"fleet":this.fleet=e.data,this.revision++,this.connection="open";break;case"health":this.health=e.data;break;case"messages":this.messages=e.data;break;case"crew":this.crew=e.data;break;case"server":{const a=this.serverId!==null&&this.serverId!==e.data.id;if(this.serverId=e.data.id,a)for(const l of this.restartListeners)l();break}default:for(const a of this.alertListeners)a(e)}}post(e){try{this.channel?.postMessage(e)}catch{}}}const u=new v;function C(){return u.fleet??d.data.fleet??null}function I(){return u.health??d.data.health??null}function P(){return u.messages??d.data.messages??null}function S(){return u.crew??d.data.crew??null}export{S as a,I as b,C as c,P as d,u as l};
@@ -1 +0,0 @@
1
- import"./DsnmJJEf.js";import{s as n,r as a}from"./D42BPZCD.js";import{I as o}from"./DBuj1e9B.js";import{p as l}from"./gKm-HWvG.js";var p=new Set(["$$slots","$$events","$$legacy"]);function $(s,e){let t=a(e,p);const r={name:"compass",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"}]]};o(s,n(()=>t,{get icon(){return r}}))}const c="{url}";function u(s,e,t){const r=e&&Object.hasOwn(s,e)?s[e]:null;return typeof r!="string"?{href:t.url,external:!0}:{href:r.replace(c,encodeURIComponent(t.url)),external:!1}}const x={review(s,e){const t=l.data?.pullRequestTabs??{};return u(t,s,e)}};export{$ as C,x as p};
@@ -1 +0,0 @@
1
- import{i as f,g as h,m as u,j as v,h as m}from"./CEfkcOME.js";import{g as C,h as T,i as x,j as S,k as N}from"./DTpgmq3M.js";import{S as R}from"./BXN538J3.js";import{w as q}from"./RYvdmj4W.js";const z=[{kind:"pr-green",label:"PR green",hint:"A pull request passed its checks and waits on you"},{kind:"question",label:"Question waiting",hint:"Firstmate needs your decision"},{kind:"stuck",label:"Worker stuck",hint:"Blocked, failed, lost contact or gone quiet"},{kind:"landed",label:"Merge landed",hint:"A pull request was merged"},{kind:"issue",label:"New issue",hint:"A GitHub issue you watch, with the bell on"},{kind:"events-paused",label:"Events source paused",hint:"A source exceeded its event rate limit"},{kind:"health",label:"Health",hint:"Soundings found something on this computer or in Wheelhouse"}],D=20*6e4,$=220;function j(e,t){const s=[],i={taskId:e.id,projectId:e.projectId,title:e.shortTitle},n=M(e.id),r=(o,a=n)=>({kind:"open",label:o,href:a,external:!1}),c=o=>e.pr?[{kind:"open",label:o,href:e.pr.url,external:!0}]:[],d=e.pr?.number?`Pull request #${e.pr.number}`:"The pull request";if(e.status==="needs-review"&&e.attention?.kind==="review"&&e.pr){const o=`pr-green:${e.id}:${e.pr.url}`;s.push({...i,id:o,kind:"pr-green",captain:!0,text:`${d} is green and ready to merge.`,actions:[{kind:"note",label:"Merge",text:`Please merge ${e.pr.url} (${e.id}: ${e.shortTitle}). Sent from Wheelhouse's ship's bell.`,requestId:`wh-bell-merge-${g(o)}`,sent:"Asked Firstmate to merge"},...c("Open PR"),r("Open task")]})}else if(e.status==="needs-decision"&&e.attention?.owner==="captain")s.push({...i,id:`question:${e.id}:${g(e.attention.text)}`,kind:"question",captain:!0,text:I(e.attention.text),actions:[r("Open decision",e.secondMate?n:C(T(e.id))),r("Answer in chat",b(e.id))]});else if(e.status==="blocked"||e.status==="failed"||e.status==="lost")s.push({...i,id:`stuck:${e.id}:${e.status}:${g(e.summaryRaw??e.summary??e.statusLabel)}`,kind:"stuck",captain:!1,text:I(e.summary?`${e.statusLabel}: ${e.summary}`:e.statusLabel),actions:[r("Open task"),r("Ask Firstmate",b(e.id))]});else if(H(e,t)){const o=Math.round((t-Date.parse(e.activity.at))/6e4);s.push({...i,id:`stuck:${e.id}:quiet:${g(e.activity.text)}`,kind:"stuck",captain:!1,text:`Gone quiet: no word for ${o} minutes while working.`,actions:[r("Open task"),r("Ask Firstmate",b(e.id))]})}else e.status==="landed"&&s.push({...i,id:`landed:${e.id}`,kind:"landed",captain:!1,text:e.pr?`${d} was merged.`:"The work was merged.",actions:[r("Open task"),...c("View PR")]});return s}function F(e){return!e||e.state!=="ours"||e.picker||e.signIn?null:e.terminal?{detail:e.terminal.excerpt||null}:null}function Z(e){return`${e.id}@${e.at}`}function H(e,t){if(e.status!=="working"||e.busy||e.pipeline&&e.pipeline.outcome==="running")return!1;const s=e.activity?.at?Date.parse(e.activity.at):NaN;return Number.isFinite(s)&&t-s>=D}function tt(e,t){if(!e.captain||e.taskId===null||!t||!t.collectedAt)return!0;const s=t.tasks.find(i=>i.id===e.taskId);return s?j(s,Date.now()).some(i=>i.id===e.id):!1}function M(e){return`/tasks/${encodeURIComponent(e)}`}function b(e){return`/?chat=${encodeURIComponent(e)}`}function I(e){const t=e.replace(/\s+/g," ").trim();return t.length>$?`${t.slice(0,$-1).trimEnd()}…`:t}function g(e){let t=2166136261,s=1523705862;for(let i=0;i<e.length;i++){const n=e.charCodeAt(i);t=Math.imul(t^n,16777619),s=Math.imul(s^n,1540483477)}return(t>>>0).toString(16).padStart(8,"0")+(s>>>0).toString(16).padStart(8,"0")}const _=2,k=e=>` ${e.replace(/\s+/g," ").trim()} `,E=e=>e[e.length-1]?.id??null,W=(e,t)=>t===null?-1:e.findIndex(s=>s.id===t),O=e=>e?.kind==="turn";function P(e,t){const s=new Map;return e.filter(i=>{if(i.state==="sending"||i.state==="failed")return!0;const n=W(t,i.after),r=t.slice(n+1);if(i.via==="inbox")return!r.some(O);const c=k(i.text),d=s.get(c)??0;return r.filter(a=>a.kind==="user"&&k(a.text).includes(c)).length>d?(s.set(c,d+1),!1):r.filter(a=>O(a)&&a.done).length<_})}function et(e){switch(e.state){case"sending":return"Sending…";case"queued":return"Queued · Firstmate is busy and will read it next";case"failed":return e.error?`Not sent · ${e.error}`:"Not sent";default:return e.via==="inbox"?"In Firstmate’s inbox":"Delivered · waiting for Firstmate"}}const y=6e3,A=1500,U=6e3,L=8,J=6e4;class Y{#t=f(null);get session(){return h(this.#t)}set session(t){u(this.#t,t,!0)}#e=f(null);get source(){return h(this.#e)}set source(t){u(this.#e,t,!0)}#s=f([]);get records(){return h(this.#s)}set records(t){u(this.#s,t)}#i=f([]);get history(){return h(this.#i)}set history(t){u(this.#i,t)}#n=f("unknown");get older(){return h(this.#n)}set older(t){u(this.#n,t,!0)}#r=f("connecting");get connection(){return h(this.#r)}set connection(t){u(this.#r,t,!0)}#o=f(0);get resets(){return h(this.#o)}set resets(t){u(this.#o,t,!0)}#a=f(!1);get synced(){return h(this.#a)}set synced(t){u(this.#a,t,!0)}#h=f(v([]));get commands(){return h(this.#h)}set commands(t){u(this.#h,t,!0)}#u=m(()=>new Set(this.history.map(t=>t.uuid)));get historyIds(){return h(this.#u)}set historyIds(t){u(this.#u,t)}#c=m(()=>Math.max(0,this.history.findLastIndex(x)));get cut(){return h(this.#c)}set cut(t){u(this.#c,t)}#l=m(()=>S(this.history.slice(0,this.cut)));get earlier(){return h(this.#l)}set earlier(t){u(this.#l,t)}#d=m(()=>S(this.cut<this.history.length?[...this.history.slice(this.cut),...this.records]:this.records));get latest(){return h(this.#d)}set latest(t){u(this.#d,t)}#f=m(()=>N(this.earlier,this.latest));get chat(){return h(this.#f)}set chat(t){u(this.#f,t)}#m=m(()=>{const t=this.chat.items[this.chat.items.length-1];return this.session?.busy===!0||t?.kind==="turn"&&!t.done&&!t.interrupted});get working(){return h(this.#m)}set working(t){u(this.#m,t)}#p=m(()=>this.connection==="open"&&this.session?.state==="ours"&&!this.session.picker&&!this.session.menu&&!this.session.signIn&&!this.session.terminal&&this.working);get atWork(){return h(this.#p)}set atWork(t){u(this.#p,t)}#g=m(()=>this.connection==="open"&&this.session?.state==="ours"&&this.session.canSend&&(!!this.session.picker||!!this.session.signIn||!!F(this.session)));get needsYou(){return h(this.#g)}set needsYou(t){u(this.#g,t)}#y=f(v([]));get outbox(){return h(this.#y)}set outbox(t){u(this.#y,t,!0)}#b=m(()=>P(this.outbox,this.chat.items));get pending(){return h(this.#b)}set pending(t){u(this.#b,t)}close=null;left=null;archived=!1;connect(t=typeof document>"u"?null:document){if(this.close)return()=>{};const s=o=>{o.addEventListener("session",a=>{this.session=JSON.parse(a.data),this.connection="open"}),o.addEventListener("reset",a=>{const l=JSON.parse(a.data);this.records.length&&l?.file!==this.source?.file&&(this.history=[...this.history,...this.records],this.left=this.source?.file??null),l&&this.left&&(l.file!==this.left&&l.session&&(this.history=[...this.history,{type:"wh-session",uuid:`wh-session:${l.session}`,timestamp:new Date().toISOString(),first:!1}]),this.left=null),this.source=l,this.records=[],this.resets++}),o.addEventListener("records",a=>{const l=JSON.parse(a.data);this.leaveHistory(l);const p=[...this.records,...l];if(p.length>y){const w=y-A;this.history=[...this.history,...p.slice(0,p.length-w)],this.records=p.slice(-w)}else this.records=p}),o.addEventListener("replace",a=>{const l=JSON.parse(a.data);this.leaveHistory(l),this.records=l.length>y?l.slice(-y):l}),o.addEventListener("synced",()=>this.synced=!0)};let i=null;const n=()=>{this.synced=!1,i=q("/api/firstmate/chat",s,o=>this.connection=o)},r=()=>{i?.(),i=null,this.connection="connecting"};let c;const d=()=>{clearTimeout(c),t&&(t.hidden?c=setTimeout(()=>t.hidden&&r(),J):i||n())};return n(),t?.addEventListener("visibilitychange",d),t?.hidden&&d(),this.close=()=>{clearTimeout(c),t?.removeEventListener("visibilitychange",d),i?.(),i=null},this.loadCommands(),()=>{this.close?.(),this.close=null,this.connection="connecting"}}get all(){return[...this.history,...this.records]}leaveHistory(t){const s=this.historyIds;if(!t.some(n=>n.uuid&&s.has(n.uuid)))return;const i=new Set(t.map(n=>n.uuid));this.history=this.history.filter(n=>!i.has(n.uuid))}trim(){const t=this.history.length-U;if(t<=0)return;if(!this.archived)return void this.probeArchive();const s=this.history.findIndex((i,n)=>n>=t&&(x(i)||i.type==="wh-session"));this.history=this.history.slice(s>=0?s:t),this.older==="none"&&(this.older="more")}async loadOlder(t=null){if(this.older==="loading"||this.older==="unavailable"||this.older==="none"&&!t)return!1;const s=this.cursors(),i=s.find(r=>r.timestamp)?.timestamp,n=new URLSearchParams([["limit",String(A)],...s.map(r=>["before",r.uuid]),...i?[["at",i]]:[],...t?[["until",t]]:[]]);this.older="loading";try{const r=await fetch(`/api/firstmate/chat/history?${n}`);if(!r.ok)throw new Error(String(r.status));const c=await r.json();if(!c.available)return this.older="unavailable",this.archived=!1,!1;if(this.archived=!0,this.cursors()[0]?.uuid!==s[0]?.uuid)return this.older="unknown",!1;const d=new Set(this.all.map(a=>a.uuid)),o=c.records.filter(a=>!d.has(a.uuid));return this.history=[...o,...this.history],this.older=c.more&&o.length?"more":"none",o.length>0}catch{return this.older="failed",!1}}probing=!1;async probeArchive(){if(!(this.probing||this.older==="unavailable")){this.probing=!0;try{const t=await fetch("/api/firstmate/chat/history?limit=1");if(!t.ok)return;(await t.json()).available?(this.archived=!0,this.trim()):this.older="unavailable"}catch{}finally{this.probing=!1}}}cursors(){const t=[];for(const s of this.history)t.length<L&&s.uuid&&!s.isSidechain&&t.push(s);for(const s of this.records)t.length<L&&s.uuid&&!s.isSidechain&&t.push(s);return t}has(t){return this.historyIds.has(t)||this.records.some(s=>s.uuid===t)}async search(t){try{const s=await fetch(`/api/firstmate/chat/search?${new URLSearchParams({q:t})}`);if(!s.ok)return null;const i=await s.json();return i.available?i.hits:null}catch{return null}}async send(t,s,i,n){return this.prune(),this.outbox.push({id:crypto.randomUUID(),text:t,via:s,state:"sending",error:null,after:E(this.chat.items)}),this.deliver(this.outbox[this.outbox.length-1],i,n)}retry(t,s,i){const n=this.outbox.find(r=>r.id===t);!n||n.state!=="failed"||(n.after=E(this.chat.items),this.deliver(n,s,i))}dismiss(t){this.outbox=this.outbox.filter(s=>s.id!==t)}async deliver(t,s,i){t.state="sending",t.error=null;const n=t.via==="inbox"?await K(t.text,s):await G("/api/firstmate/input",s,{text:t.text});return n.ok?t.state=i&&t.via==="session"?"queued":"delivered":(t.state="failed",t.error=n.error),n}prune(){const t=new Set(this.pending.map(s=>s.id));this.outbox=this.outbox.filter(s=>t.has(s.id))}async loadCommands(){try{const t=await fetch("/api/firstmate/commands");t.ok&&(this.commands=(await t.json()).commands)}catch{}}}const st=new Y;async function G(e,t,s){try{const i=await fetch(e,{method:"POST",headers:{"content-type":"application/json",[R]:t},body:JSON.stringify(s??{})});return i.ok?{ok:!0}:{ok:!1,error:(await i.json().catch(()=>null))?.message??`Wheelhouse answered ${i.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function K(e,t,s=null,i=`wh-${crypto.randomUUID()}`){try{const n=await fetch("/api/firstmate/messages",{method:"POST",headers:{"content-type":"application/json","idempotency-key":i,[R]:t},body:JSON.stringify({text:e,taskId:s})});return n.ok?{ok:!0,pending:n.status===202}:{ok:!1,error:(await n.json().catch(()=>null))?.message??`Wheelhouse answered ${n.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}export{z as A,G as a,tt as b,M as c,g as d,st as f,et as p,Z as r,K as s,F as t};
@@ -1 +0,0 @@
1
- import{r as k,s as y}from"./TvzfwAc_.js";import{h as S,r as C}from"./BUYzAikv.js";import{e as M}from"./DTpgmq3M.js";const d=":firstmate",c="all",m=e=>e.secondMate?.id??d;function $(e,a){if(e.secondMate)return e.secondMate.id;const i=a.find(s=>s.id===e.taskId);return i?m(i):d}function I(e){if(e.length<2)return"";const a=e[0].match(/[-_.][^-_.]+$/)?.[0];return a&&e.every(i=>i.endsWith(a)&&i.length>a.length)?a:""}function v(e,a=[]){const i=[...new Set(a.map(t=>t.crew))].filter(t=>t!==d&&!e.some(l=>l.id===t)),s=I([...e.map(t=>t.id),...i]),r=t=>s?t.slice(0,-s.length):t;return[{id:d,label:"Firstmate",short:"Firstmate",mate:null},...e.map(t=>({id:t.id,label:t.id,short:r(t.id),mate:t})),...i.map(t=>({id:t,label:t,short:r(t),mate:null}))]}const W=(e,a)=>e&&a.some(i=>i.id===e)?e:c,O=(e,a)=>e===c||e===a;function Y(e){const a=e.passage.steps[e.passage.current];return a?.failed?{label:`${a.label} failed`,icon:"danger",tone:"danger"}:e.status==="failed"?{label:"Failed",icon:"danger",tone:"danger"}:e.status==="blocked"?{label:"Stuck",icon:"aground",tone:"danger"}:e.status==="lost"||e.status==="unknown"?{label:"Not responding",icon:"becalmed",tone:"warning"}:e.attention?.owner==="captain"?e.attention.kind==="review"?e.attention.approved?{label:"Your merge",icon:"flag",tone:"sea"}:{label:"Your review",icon:"flag",tone:"sea"}:{label:"Your call",icon:"flag",tone:"sea"}:e.attention?.owner==="reviewers"?{label:"With reviewers",icon:"spyglass",tone:"muted"}:e.addressingReview?{label:k(e)??"Changes requested",icon:e.busy?"sailing":"anchored",tone:e.busy?"busy":"muted"}:e.status==="with-firstmate"?{label:"Firstmate deciding",icon:"compass",tone:"warning"}:e.status==="queued"?{label:"Queued",icon:"buoy",tone:"quiet"}:e.status==="landed"?{label:"Landed",icon:"moored",tone:"success"}:y(e)?{label:`Checks: ${e.pipeline.label}`,icon:"lighthouse",tone:e.busy?"busy":"muted"}:e.busy?{label:"Working",icon:"sailing",tone:"busy"}:{label:"Idle",icon:"anchored",tone:"muted"}}const x={label:"Your call",icon:"flag",tone:"sea"};function A(e,a){const i=e?Date.parse(e):NaN;if(Number.isNaN(i))return"";const s=Math.max(0,(a-i)/1e3);if(s<60)return"now";const r=Math.round(s/60);if(r<60)return`${r}m`;const t=Math.round(r/60);return t<24?`${t}h`:`${Math.round(t/24)}d`}const o=(e,a)=>({kind:"task",key:`task:${e.id}`,task:e,text:a,crew:m(e),at:e.mergedAt??e.activity?.at??e.since});function _(e,a,i,s=null){const r=n=>!s||n===s,t=S(e,a),l=(i?.shown??[]).filter(n=>M(n)&&r(n.projectId)),f=n=>n.secondMate?.taskId?`${n.secondMate.taskId}@${n.secondMate.id}`:n.taskId,p=new Set((i?.all??[]).filter(n=>n.kind==="hold").map(f)),b=new Set(l.filter(n=>n.kind==="merge").map(f)),u=new Set(t.stepFailed.map(n=>n.id)),g=t.stepFailed.filter(n=>!t.needsYou.includes(n)),w=t.needsYou.filter(n=>!(n.attention?.kind==="decision"&&p.has(n.id))&&!(n.attention?.kind==="review"&&b.has(n.id))),h=n=>n.attention?.kind==="decision"&&n.attention.text||n.shortTitle;return{h:t,needs:[...l.map(n=>({kind:"decision",key:`decision:${n.id}`,card:n,text:n.title,crew:$(n,e),at:n.askedAt})),...g.map(n=>o(n,n.shortTitle)),...w.map(n=>o(n,h(n)))],withFirstmate:t.waitingOnFirstmate.filter(n=>!u.has(n.id)).map(n=>o(n,h(n))),under:C(t).filter(n=>!u.has(n.id)).map(n=>o(n,n.shortTitle)),next:t.queued.map(n=>o(n,n.shortTitle)),landed:t.landedRecent.filter(n=>!u.has(n.id)).map(n=>o(n,n.shortTitle))}}function q(e,a,i){return a.filter(s=>O(i,s.id)).map(s=>({crew:s,lines:e.filter(r=>r.crew===s.id)})).filter(s=>s.lines.length||i!==c)}export{c as A,x as D,d as O,W as a,q as b,v as c,_ as d,O as i,Y as l,A as s};
@@ -1,7 +0,0 @@
1
- import"./DsnmJJEf.js";import{p as vt,y as ze,f as T,g as e,a as n,b as mt,h as R,e as f,r as d,n as $,c,i as q,m as k,u as Ke,P as Xe,o as w,s as o,t as D,A as Fe,aA as Wt}from"./CEfkcOME.js";import{d as $t,s as h,e as Qe,a as Oe}from"./CPPNfCxh.js";import{i as A}from"./D4ikcNuh.js";import{e as Ve,s as N,d as Ht}from"./BMjXQSgN.js";import{h as Yt,m as Ut}from"./CJsvF1Ay.js";import{c as ue}from"./CGbw525c.js";import{b as jt}from"./B6yYMcjx.js";import{b as Jt}from"./DKCbih8n.js";import{s as Ae,r as Ne}from"./D42BPZCD.js";import{j as Bt}from"./DTpgmq3M.js";import{S as Gt}from"./BXN538J3.js";import{w as Kt}from"./RYvdmj4W.js";import{c as pe}from"./WRwU91GU.js";import{D as Xt,h as Ze,i as et}from"./DREe4_Em.js";import{H as Qt}from"./ck3_pj9L.js";import{B as re}from"./D4Okmn3b.js";import{D as Vt}from"./Sv3hh1sg.js";import{D as Zt,a as es,b as ts,c as ss,d as as,e as rs}from"./BxKmcvUJ.js";import{A as is}from"./DI6U75Wo.js";import{C as ns}from"./N3-89cl-.js";import{p as os}from"./gKm-HWvG.js";import{i as tt}from"./Z_T9JZ0p.js";import{C as ls}from"./BftdAJED.js";import{L as Me}from"./BMEfZRmb.js";import{X as ds}from"./C6E-ekUK.js";import{C as cs}from"./uFR0qOc6.js";import{I as Te}from"./DBuj1e9B.js";import{C as us}from"./D6J6SKJa.js";import{R as vs}from"./RKJLUbAQ.js";import{S as st}from"./61tb7Ymv.js";import{A as ms}from"./BicHgQHF.js";import{P as at}from"./B0CcXh2k.js";import{P as rt}from"./C0oq3sur.js";var fs=new Set(["$$slots","$$events","$$legacy"]);function it(C,s){let i=Ne(s,fs);const v={name:"activity",size:24,node:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]]};Te(C,Ae(()=>i,{get icon(){return v}}))}var ps=new Set(["$$slots","$$events","$$legacy"]);function hs(C,s){let i=Ne(s,ps);const v={name:"check-check",size:24,node:[["path",{d:"M18 6 7 17l-5-5"}],["path",{d:"m22 10-7.5 7.5L13 16"}]]};Te(C,Ae(()=>i,{get icon(){return v}}))}var _s=new Set(["$$slots","$$events","$$legacy"]);function gs(C,s){let i=Ne(s,_s);const v={name:"users-round",size:24,node:[["path",{d:"M18 21a8 8 0 0 0-16 0"}],["circle",{cx:"10",cy:"8",r:"5"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3"}]],aliases:["users-2"]};Te(C,Ae(()=>i,{get icon(){return v}}))}var xs=c('<div class="mt-5" data-task-decisions=""><!></div>'),ks=c(`<p class="mt-5 flex items-center gap-2 text-sm text-muted-foreground" role="status" data-task-decisions-answered=""><!>Your answer is with Firstmate,
2
- which passes it on to the crew.</p>`);function ys(C,s){vt(s,!0);const i=R(()=>os.data.inbox),v=R(()=>tt.forTask(s.task.id,e(i)).length>0),b=R(()=>!e(v)&&s.task.attention?.kind==="decision"&&tt.hasDecision(s.task.id,e(i)));var Q=ze(),le=T(Q);{var Z=y=>{var F=xs(),V=f(F);{let G=R(()=>({taskId:s.task.id}));Xt(V,{get filter(){return e(G)}})}d(F),n(y,F)},we=y=>{var F=ks(),V=f(F);ls(V,{class:"size-4 shrink-0 text-success","aria-hidden":"true"}),$(),d(F),n(y,F)};A(le,y=>{e(v)?y(Z):e(b)&&y(we,1)})}n(C,Q),mt()}function ws(C){return!C.id.includes("@")&&!C.secondMate&&!["queued","done","landed","closed"].includes(C.status)}const bs=/(?:instruction|operational input) waiting\b/i;function nt(C,s,i,v=!1){const b=[];for(const y of C)y.kind==="user"?bs.test(y.text)||b.push({kind:"firstmate",at:y.at,item:y}):b.push({kind:"worker",at:y.at,item:y});let Q=0;if(!v){const y=b.findIndex(G=>G.at>=i),F=y<0?b.length:y,V=b.findLastIndex((G,H)=>H<F&&G.kind==="worker");Q=V>=0?V:F}const le=b.slice(Q),Z=s.map(y=>({kind:"captain",at:y.at,message:y}));return{entries:[...le,...Z].sort((y,F)=>y.at<F.at?-1:y.at>F.at?1:0),earlier:Q}}const Pe=6e3;async function ft(C,s,i,v={}){try{const b=await fetch(C,{method:"POST",headers:{"content-type":"application/json",[Gt]:s,...v},body:JSON.stringify(i)});return b.ok?{ok:!0}:{ok:!1,error:(await b.json().catch(()=>null))?.message??`Wheelhouse answered ${b.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}const ot=(C,s,i)=>ft("/api/crew",i,{taskId:C,action:s}),Ss=(C,s,i,v,b=crypto.randomUUID())=>ft("/api/crew/messages",v,{taskId:C,kind:s,text:i},{"idempotency-key":b});class Ds{constructor(s){this.taskId=s}taskId;#e=q(null);get session(){return e(this.#e)}set session(s){k(this.#e,s,!0)}#t=q(null);get source(){return e(this.#t)}set source(s){k(this.#t,s,!0)}#s=q([]);get records(){return e(this.#s)}set records(s){k(this.#s,s)}#a=q("connecting");get connection(){return e(this.#a)}set connection(s){k(this.#a,s,!0)}#r=q(!1);get synced(){return e(this.#r)}set synced(s){k(this.#r,s,!0)}#i=R(()=>Bt(this.records));get chat(){return e(this.#i)}set chat(s){k(this.#i,s)}#n=R(()=>{const s=this.chat.items[this.chat.items.length-1];return this.session?.busy===!0||s?.kind==="turn"&&!s.done});get working(){return e(this.#n)}set working(s){k(this.#n,s)}connect(){this.synced=!1;const s=i=>{i.addEventListener("session",v=>{this.session=JSON.parse(v.data)}),i.addEventListener("reset",v=>{this.source=JSON.parse(v.data),this.records=[]}),i.addEventListener("records",v=>{const b=[...this.records,...JSON.parse(v.data)];this.records=b.length>Pe?b.slice(-Pe):b}),i.addEventListener("replace",v=>{const b=JSON.parse(v.data);this.records=b.length>Pe?b.slice(-Pe):b}),i.addEventListener("synced",()=>this.synced=!0)};return Kt(`/api/tasks/${encodeURIComponent(this.taskId)}/chat`,s,i=>this.connection=i)}}var Ps=c("<!>End discussion",1),zs=c('<span class="text-xs text-muted-foreground">Read-only</span>'),As=c(`<p class="crew-banner svelte-1f8gn6y" role="note"><span class="crew-tag svelte-1f8gn6y">Sidebar</span> <span>You’re talking to <b> </b> directly. It can answer you here, and Firstmate gets a note of
3
- each message.</span></p>`),Cs=c('<p class="crew-banner crew-banner-read svelte-1f8gn6y" role="note"><span class="crew-tag svelte-1f8gn6y">Read-only</span> <span> </span></p>'),Es=c('<p class="crew-banner crew-banner-paused svelte-1f8gn6y" role="status"><span class="crew-tag svelte-1f8gn6y">Paused</span><span> </span></p>'),Is=c('<div class="-mt-5"><!></div>'),lt=c('<p class="mt-4 rounded-lg bg-muted px-4 py-3 text-sm text-muted-foreground" role="status"> </p>'),Ls=c('<button class="mx-auto mt-4 block cursor-pointer text-sm text-sea hover:underline" data-show-earlier=""> </button>'),Rs=c('<div class="bubble-row"><div class="bubble bubble-captain"> </div></div>'),Fs=c('<p class="flex items-center gap-1.5 text-sm text-muted-foreground"><!> </p>'),Os=c('<button class="inline-flex cursor-pointer items-center gap-1 font-sans font-medium hover:underline"><!>Send again</button>'),dt=c("<span> </span>"),Ms=c('<article class="msg msg-captain"><span class="captain-avatar">C</span> <div class="min-w-0 flex-1"><header class="msg-head"><span class="crew-tag svelte-1f8gn6y">Sidebar</span><time> </time></header> <!> <p><!> <span> </span> <!></p></div></article>'),Ns=c('<details class="crew-note svelte-1f8gn6y"><summary class="svelte-1f8gn6y">Typed into its session · <time> </time></summary> <p class="mt-2 whitespace-pre-wrap"> </p></details>'),Ts=c('<div class="bubble-row"><div class="chat-md bubble bubble-firstmate"></div></div>'),qs=c('<p class="rounded-lg border px-4 py-3 text-sm"> <span class="text-muted-foreground">Answer in its terminal, or tell it here.</span></p>'),Ws=c('<article class="msg msg-firstmate"><span class="mate-avatar msg-avatar svelte-1f8gn6y" aria-hidden="true"> </span> <div class="flex min-w-0 flex-1 flex-col gap-2"><header class="msg-head"><span class="msg-name font-mono"> </span><!><time> </time></header> <!></div></article>'),$s=c('<pre class="no-scrollbar max-h-60 max-w-[80ch] overflow-auto rounded-lg bg-muted/60 p-3 font-mono text-xs whitespace-pre-wrap text-muted-foreground"> </pre>'),Hs=c('<p class="text-xs text-muted-foreground"> </p>'),Ys=c(`<div class="border-t px-4 py-3 sm:px-5" data-discussion-terminal=""><p class="mb-2 flex items-center gap-2 text-xs text-muted-foreground"><!>Its terminal, read-only. Type to it
4
- here, not there: what you send goes through its inbox.</p> <!></div>`),Us=c("<!>Chat with crew",1),ct=c('<p class="mt-1 text-sm text-danger" role="alert"> </p>'),ut=c("<!> <!>",1),js=c('<p class="text-sm text-danger" role="alert"> </p>'),Js=c("<!>Start the discussion",1),Bs=c("<!> <!> <!>",1),Gs=c('<div class="border-t px-4 pt-3 pb-4 sm:px-5"><div class="flex items-center gap-3 rounded-xl border border-dashed bg-muted/40 py-2 pr-2 pl-4" data-chat-locked=""><span class="flex-1 text-muted-foreground/80">Read-only · talk to Firstmate about this task, or</span> <!></div> <p class="mt-1.5 text-xs text-muted-foreground"> </p> <!></div> <!>',1),Ks=c("<!>Ask for status",1),Xs=c("<!>Resume",1),Qs=c("<!>Pause after this step",1),Vs=c("<!> ",1),Zs=c('<div class="border-t px-4 pt-3 pb-4 sm:px-5"><div class="mb-2 flex flex-wrap gap-2"><!> <!> <!></div> <form class="flex items-end gap-2 rounded-xl border bg-card px-3 py-2 focus-within:ring-3 focus-within:ring-ring/50"><textarea class="field-sizing-content max-h-48 min-h-10 flex-1 resize-none bg-transparent py-1.5 outline-none placeholder:text-muted-foreground" data-discussion-input=""></textarea> <!></form> <p class="mt-1.5 text-xs text-muted-foreground">Goes to its inbox as yours; Firstmate gets a note.</p> <!></div>'),ea=c('<section class="flex h-full min-h-0 flex-col"><header class="flex flex-wrap items-center gap-x-3 gap-y-2 border-b px-4 py-3 sm:px-5"><span class="mate-avatar" aria-hidden="true"> </span> <div class="min-w-0 flex-1"><p class="flex items-baseline gap-2"><a class="font-mono text-sm font-semibold hover:underline"> </a> <span class="truncate text-sm text-muted-foreground"> </span></p> <p class="text-xs text-muted-foreground"> </p></div> <!></header> <!> <!> <div class="no-scrollbar min-h-0 flex-1 overflow-y-auto px-4 py-5 sm:px-5" aria-live="polite" data-discussion-feed=""><!> <!> <!> <div class="mt-5 flex flex-col gap-6"></div></div> <!> <!></section>');function Oa(C,s){vt(s,!0);const i=R(()=>s.taskId);let v=q(null);Ke(()=>{const t=new Ds(e(i));k(v,t,!0);const a=t.connect();return()=>{a(),k(v,null)}});let b=q(!1);const Q=60;let le=q(Q);const Z=R(()=>{if(s.discussion)return nt(e(v)?.chat.items??[],s.discussion.messages,s.discussion.openedAt,e(b));const{entries:t}=nt(e(v)?.chat.items??[],[],"",!0),a=Math.max(0,t.length-e(le));return{entries:t.slice(a),earlier:a}}),we=()=>s.discussion?k(b,!0):k(le,e(le)+Q),y=R(()=>s.task?s.task.secondMate||s.task.id.includes("@")?"Chatting with a second mate’s worker comes later.":ws(s.task)?null:"Its worker is not at work.":"Its task has left the fleet."),F=R(()=>e(v)?.session?.harness??s.task?.worker?.harness??null),V=R(()=>e(F)?Qt[e(F)]??e(F):null);let G=q(""),H=q(null),be=q(!1),he=q(!1),Se=q(!1),De=q(!1);async function pt(){k(De,!0),k(H,null);const t=await ot(e(i),"open",s.token);k(De,!1),t.ok?k(Se,!1):k(H,t.error,!0)}async function _e(t,a="",m){k(H,null);const P=await Ss(e(i),t,a,s.token,m);P.ok||k(H,P.error,!0)}function qe(){const t=e(G).trim();t&&(k(G,""),_e("say",t),Xe().then(()=>$e(!0)))}function ht(t){t.key==="Enter"&&!t.shiftKey&&!t.isComposing&&(t.preventDefault(),qe())}async function _t(){k(be,!0);const t=await ot(e(i),"close",s.token);k(be,!1),t.ok?s.onended?.():k(H,t.error,!0)}let ee=q(null),We=!0;function $e(t=!1){e(ee)&&(t||We)&&(e(ee).scrollTop=e(ee).scrollHeight)}Ke(()=>{e(Z).entries.length,e(v)?.records.length,Xe().then(()=>$e())});const gt=t=>t.delivery==="sending"?"Sending":t.delivery==="failed"?t.error??"Not delivered":t.seen?`Seen by ${e(i)}`:"In its inbox",xt={status:"Asked for status",pause:"Asked to pause",resume:"Asked to resume"};var ve=ea(),Ce=f(ve),Ee=f(Ce),kt=w(Ee,!0),Ie=o(Ee,2),Le=f(Ie),Re=f(Le),yt=w(Re,!0),wt=o(Re,2),bt=w(wt,!0);d(Le);var St=o(Le,2),Dt=w(St);d(Ie);var Pt=o(Ie,2);{var zt=t=>{re(t,{variant:"outline",size:"sm",onclick:_t,get disabled(){return e(be)},"data-end-discussion":!0,children:(a,m)=>{var P=Ps(),U=T(P);{var ie=j=>{Me(j,{class:"animate-spin"})},de=j=>{ds(j,{})};A(U,j=>{e(be)?j(ie):j(de,-1)})}$(),n(a,P)},$$slots:{default:!0}})},At=t=>{var a=zs();n(t,a)};A(Pt,t=>{s.discussion?t(zt):t(At,-1)})}d(Ce);var He=o(Ce,2);{var Ct=t=>{var a=As(),m=o(f(a),2),P=o(f(m)),U=w(P,!0);$(),d(m),d(a),D(()=>h(U,e(i))),n(t,a)},Et=t=>{var a=Cs(),m=o(f(a),2),P=w(m);d(a),D(()=>h(P,`${e(i)??""}’s own conversation. You’re watching; Firstmate steers it.`)),n(t,a)};A(He,t=>{s.discussion?t(Ct):t(Et,-1)})}var Ye=o(He,2);{var It=t=>{var a=Es(),m=o(f(a)),P=w(m);d(a),D(()=>h(P,`You asked ${e(i)??""} to stop after its current step. It waits until you resume it.`)),n(t,a)};A(Ye,t=>{s.discussion?.paused&&t(It)})}var ge=o(Ye,2),Ue=f(ge);{var Lt=t=>{var a=Is(),m=f(a);ys(m,{get task(){return s.task}}),d(a),n(t,a)};A(Ue,t=>{s.task&&s.discussion&&t(Lt)})}var je=o(Ue,2);{var Rt=t=>{var a=lt(),m=w(a,!0);D(()=>h(m,e(v).session.reason)),n(t,a)},Ft=t=>{var a=lt(),m=w(a);D(()=>h(m,`Wheelhouse has not found ${e(i)??""}’s conversation yet.${s.discussion?" What you send still reaches it.":""}`)),n(t,a)};A(je,t=>{e(v)?.session?.reason?t(Rt):e(v)?.synced&&!e(v).source&&t(Ft,1)})}var Je=o(je,2);{var Ot=t=>{var a=Ls(),m=w(a);D(()=>h(m,`Show its earlier work (${e(Z).earlier??""})`)),Oe("click",a,we),n(t,a)};A(Je,t=>{e(Z).earlier&&t(Ot)})}var Be=o(Je,2);Ve(Be,23,()=>e(Z).entries,(t,a)=>t.kind==="captain"?`c-${t.message.id}`:`${t.kind}-${t.item.id}-${a}`,(t,a,m)=>{var P=ze(),U=T(P);{var ie=p=>{const r=R(()=>e(a).message);var g=Ms(),O=o(f(g),2),l=f(O),z=o(f(l)),L=w(z,!0);d(l);var I=o(l,2);{var J=u=>{var x=Rs(),_=f(x),S=w(_,!0);d(x),D(()=>h(S,e(r).text)),n(u,x)},ce=u=>{var x=Fs(),_=f(x);{var S=X=>{at(X,{class:"size-3.5","aria-hidden":"true"})},K=X=>{rt(X,{class:"size-3.5","aria-hidden":"true"})},W=X=>{it(X,{class:"size-3.5","aria-hidden":"true"})};A(_,X=>{e(r).kind==="pause"?X(S):e(r).kind==="resume"?X(K,1):X(W,-1)})}var fe=o(_,1,!0);d(x),D(()=>h(fe,xt[e(r).kind])),n(u,x)};A(I,u=>{e(r).kind==="say"?u(J):u(ce,-1)})}var te=o(I,2),oe=f(te);{var me=u=>{Me(u,{class:"size-3 animate-spin","aria-hidden":"true"})},ke=u=>{cs(u,{class:"size-3","aria-hidden":"true"})},Y=u=>{hs(u,{class:"size-3 text-success","aria-hidden":"true"})},E=u=>{us(u,{class:"size-3","aria-hidden":"true"})};A(oe,u=>{e(r).delivery==="sending"?u(me):e(r).delivery==="failed"?u(ke,1):e(r).seen?u(Y,2):u(E,-1)})}var M=o(oe,2),B=w(M,!0),ye=o(M,2);{var se=u=>{var x=Os(),_=f(x);vs(_,{class:"size-3","aria-hidden":"true"}),$(),d(x),Oe("click",x,()=>_e(e(r).kind,e(r).text,e(r).id)),n(u,x)},ae=u=>{var x=dt(),_=w(x);D(()=>h(_,`· ${e(r).told==="sent"?"Firstmate told":e(r).told==="sending"?"telling Firstmate":e(r).told==="off"?"Firstmate not told (messaging is off)":"Firstmate could not be told"}`)),n(u,x)};A(ye,u=>{e(r).delivery==="failed"?u(se):e(r).delivery==="sent"&&u(ae,1)})}d(te),d(O),d(g),D((u,x,_)=>{N(g,"aria-label",`You, ${u??""}`),N(g,"data-crew-message",e(r).id),N(z,"datetime",e(r).at),h(L,x),Ht(te,1,`mt-1 flex flex-wrap items-center justify-end gap-x-2 font-mono text-[0.72rem] ${e(r).delivery==="failed"?"text-danger":"text-muted-foreground"}`),N(te,"data-receipt",e(r).delivery==="sent"?e(r).seen?"seen":"sent":e(r).delivery),h(B,_)},[()=>pe(e(r).at),()=>pe(e(r).at),()=>gt(e(r))]),n(p,g)},de=p=>{var r=Ns(),g=f(r),O=o(f(g)),l=w(O,!0);d(g);var z=o(g,2),L=w(z,!0);d(r),D(I=>{N(O,"datetime",e(a).at),h(l,I),h(L,e(a).item.text)},[()=>pe(e(a).at)]),n(p,r)},j=p=>{const r=R(()=>e(a).item);var g=Ws(),O=f(g),l=w(O,!0),z=o(O,2),L=f(z),I=f(L),J=w(I,!0),ce=o(I);{var te=Y=>{var E=dt(),M=w(E,!0);D(()=>h(M,e(V))),n(Y,E)};A(ce,Y=>{e(V)&&Y(te)})}var oe=o(ce),me=w(oe,!0);d(L);var ke=o(L,2);Ve(ke,19,()=>e(r).parts,Y=>Y.id,(Y,E,M)=>{var B=ze(),ye=T(B);{var se=_=>{var S=Ts(),K=f(S);Yt(K,()=>Ut(e(E).text),!0),d(K),d(S),n(_,S)},ae=R(()=>e(E).kind==="text"&&e(E).text.trim()),u=_=>{{let S=R(()=>!e(r).done&&e(M)===e(r).parts.length-1&&e(m)===e(Z).entries.length-1);is(_,{get steps(){return e(E).steps},get live(){return e(S)}})}},x=_=>{var S=qs(),K=f(S);$(),d(S),D(W=>h(K,`It asked in its session: ${W??""} `),[()=>e(E).questions.map(W=>W.question).join(" ")]),n(_,S)};A(ye,_=>{e(ae)?_(se):e(E).kind==="activity"?_(u,1):e(E).kind==="question"&&_(x,2)})}n(Y,B)}),d(z),d(g),D((Y,E,M,B)=>{N(g,"aria-label",`${e(i)??""}, ${Y??""}`),N(O,"data-hue",E),h(l,M),h(J,e(i)),N(oe,"datetime",e(r).at),h(me,B)},[()=>pe(e(r).at),()=>Ze(e(i)),()=>et(e(i)),()=>pe(e(r).at)]),n(p,g)},xe=p=>{var r=$s(),g=w(r,!0);D(()=>h(g,e(a).item.text)),n(p,r)},ne=p=>{var r=Hs(),g=w(r);D(O=>h(g,`${e(a).item.title??""} · ${O??""}`),[()=>pe(e(a).item.at)]),n(p,r)};A(U,p=>{e(a).kind==="captain"?p(ie):e(a).kind==="firstmate"?p(de,1):e(a).item.kind==="turn"?p(j,2):e(a).item.kind==="output"?p(xe,3):e(a).item.kind==="notice"&&p(ne,4)})}n(t,P)}),d(Be),d(ge),Jt(ge,t=>k(ee,t),()=>e(ee));var Ge=o(ge,2);{var Mt=t=>{var a=Ys(),m=f(a),P=f(m);st(P,{class:"size-3.5","aria-hidden":"true"}),$(),d(m);var U=o(m,2);ns(U,{get task(){return s.task},lines:16}),d(a),n(t,a)};A(Ge,t=>{e(he)&&s.task&&t(Mt)})}var Nt=o(Ge,2);{var Tt=t=>{var a=Gs(),m=T(a),P=f(m),U=o(f(P),2);{let p=R(()=>!!e(y)),r=R(()=>e(y)??void 0);re(U,{variant:"outline",size:"sm",get disabled(){return e(p)},get title(){return e(r)},onclick:()=>k(Se,!0),"data-chat-with-crew":!0,children:(g,O)=>{var l=Us(),z=T(l);gs(z,{}),$(),n(g,l)},$$slots:{default:!0}})}d(P);var ie=o(P,2),de=w(ie,!0),j=o(ie,2);{var xe=p=>{var r=ct(),g=w(r,!0);D(()=>h(g,e(H))),n(p,r)};A(j,p=>{e(H)&&p(xe)})}d(m);var ne=o(m,2);ue(ne,()=>rs,(p,r)=>{r(p,{get open(){return e(Se)},set open(g){k(Se,g,!0)},children:(g,O)=>{var l=ze(),z=T(l);ue(z,()=>Zt,(L,I)=>{I(L,{class:"sm:max-w-md",children:(J,ce)=>{var te=Bs(),oe=T(te);ue(oe,()=>es,(E,M)=>{M(E,{children:(B,ye)=>{var se=ut(),ae=T(se);ue(ae,()=>ts,(x,_)=>{_(x,{class:"font-display text-lg",children:(S,K)=>{$();var W=Fe();D(()=>h(W,`Talk to ${e(i)??""} directly?`)),n(S,W)},$$slots:{default:!0}})});var u=o(ae,2);ue(u,()=>ss,(x,_)=>{_(x,{children:(S,K)=>{$();var W=Fe(`You’ll message this task’s worker yourself, outside Firstmate’s usual relay. What you
5
- say goes to its inbox as yours, it can answer you here, and Firstmate gets a note of
6
- each message so it stays in step. End the discussion when you’re done; most of the time,
7
- talk to Firstmate.`);n(S,W)},$$slots:{default:!0}})}),n(B,se)},$$slots:{default:!0}})});var me=o(oe,2);{var ke=E=>{var M=js(),B=w(M,!0);D(()=>h(B,e(H))),n(E,M)};A(me,E=>{e(H)&&E(ke)})}var Y=o(me,2);ue(Y,()=>as,(E,M)=>{M(E,{children:(B,ye)=>{var se=ut(),ae=T(se);{const x=(_,S)=>{re(_,Ae(()=>(S?.()).props,{variant:"ghost",children:(W,fe)=>{$();var X=Fe("Cancel");n(W,X)},$$slots:{default:!0}}))};ue(ae,()=>Vt,(_,S)=>{S(_,{child:x,$$slots:{child:!0}})})}var u=o(ae,2);re(u,{onclick:pt,get disabled(){return e(De)},"data-crew-confirm":!0,children:(x,_)=>{var S=Js(),K=T(S);{var W=fe=>{Me(fe,{class:"animate-spin"})};A(K,fe=>{e(De)&&fe(W)})}$(),n(x,S)},$$slots:{default:!0}}),n(B,se)},$$slots:{default:!0}})}),n(J,te)},$$slots:{default:!0}})}),n(g,l)},$$slots:{default:!0}})}),D(()=>h(de,e(y)??"You’ll be asked to confirm first: you talk to the worker directly.")),n(t,a)},qt=t=>{var a=Zs(),m=f(a),P=f(m);re(P,{variant:"outline",size:"sm",onclick:()=>_e("status"),"data-quick":"status",children:(l,z)=>{var L=Ks(),I=T(L);it(I,{}),$(),n(l,L)},$$slots:{default:!0}});var U=o(P,2);{var ie=l=>{re(l,{variant:"outline",size:"sm",onclick:()=>_e("resume"),"data-quick":"resume",children:(z,L)=>{var I=Xs(),J=T(I);rt(J,{}),$(),n(z,I)},$$slots:{default:!0}})},de=l=>{re(l,{variant:"outline",size:"sm",onclick:()=>_e("pause"),"data-quick":"pause",children:(z,L)=>{var I=Qs(),J=T(I);at(J,{}),$(),n(z,I)},$$slots:{default:!0}})};A(U,l=>{s.discussion.paused?l(ie):l(de,-1)})}var j=o(U,2);{var xe=l=>{re(l,{variant:"outline",size:"sm",get"aria-pressed"(){return e(he)},onclick:()=>k(he,!e(he)),"data-quick":"terminal",children:(z,L)=>{var I=Vs(),J=T(I);st(J,{});var ce=o(J);D(()=>h(ce,`${e(he)?"Hide":"Show"} its terminal`)),n(z,I)},$$slots:{default:!0}})};A(j,l=>{s.task&&l(xe)})}d(m);var ne=o(m,2),p=f(ne);Wt(p);var r=o(p,2);{let l=R(()=>!e(G).trim());re(r,{type:"submit",size:"icon",class:"rounded-full",get disabled(){return e(l)},"aria-label":"Send",children:(z,L)=>{ms(z,{})},$$slots:{default:!0}})}d(ne);var g=o(ne,4);{var O=l=>{var z=ct(),L=w(z,!0);D(()=>h(L,e(H))),n(l,z)};A(g,l=>{e(H)&&l(O)})}d(a),D(()=>{N(p,"placeholder",`Message ${e(i)??""} directly`),N(p,"aria-label",`Message ${e(i)??""} directly`)}),Qe("submit",ne,l=>{l.preventDefault(),qe()}),Oe("keydown",p,ht),jt(p,()=>e(G),l=>k(G,l)),n(t,a)};A(Nt,t=>{s.discussion?t(qt,-1):t(Tt)})}d(ve),D((t,a,m)=>{N(ve,"aria-label",s.discussion?`Crew discussion with ${e(i)}`:`${e(i)}’s conversation`),N(ve,"data-discussion",s.discussion?e(i):void 0),N(ve,"data-task-chat",e(i)),N(Ee,"data-hue",t),h(kt,a),N(Re,"href",`/tasks/${m??""}`),h(yt,e(i)),h(bt,s.task?.title??s.discussion?.title??""),h(Dt,`${e(V)??"Worker"??""}${s.task?` · ${s.task.statusLabel}`:" · no longer in the fleet"}`)},[()=>Ze(e(i)),()=>et(e(i)),()=>encodeURIComponent(e(i))]),Qe("scroll",ge,()=>{e(ee)&&(We=e(ee).scrollTop+e(ee).clientHeight>=e(ee).scrollHeight-40)}),n(C,ve),mt()}$t(["click","keydown"]);export{Oa as D,ys as T,gs as U};
@@ -1 +0,0 @@
1
- import"./DsnmJJEf.js";import"./cGKorBHP.js";import{p as c,a as n,b,c as o,o as v,t as d,g as r,r as x}from"./CEfkcOME.js";import{s as _}from"./CPPNfCxh.js";import{e as y,s as l}from"./BMjXQSgN.js";import{i as w}from"./DejOSSV7.js";import{p as i}from"./gKm-HWvG.js";var S=o('<a class="nav-tab shrink-0"> </a>'),E=o('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Settings"></nav>');function P(f,h){c(h,!1);const p=[{href:"/settings/gateway",label:"Gateway"},{href:"/settings/firstmate",label:"Firstmate"},{href:"/settings/events",label:"Events"},{href:"/settings/plugins",label:"Plugins"},{href:"/settings/chat",label:"Chat history"},{href:"/settings/voice",label:"Voice"},{href:"/settings/headroom",label:"Headroom"},{href:"/settings/discussion",label:"Discussion"},{href:"/settings/update",label:"Update"},{href:"/settings/setup",label:"Setup"},{href:"/settings/experimental",label:"Experimental features"}].filter(e=>{const t=i.data.features;return e.href==="/settings/gateway"?t?.remotes:e.href==="/settings/events"?t?.events:e.href==="/settings/discussion"?t?.discussion:!0}),g=e=>i.url.pathname===e||i.url.pathname.startsWith(`${e}/`);w();var a=E();y(a,5,()=>p,e=>e.href,(e,t)=>{var s=S(),u=v(s,!0);d(m=>{l(s,"href",r(t).href),l(s,"aria-current",m),_(u,r(t).label)},[()=>g(r(t).href)?"page":void 0]),n(e,s)}),x(a),n(f,a),b()}export{P as S};
@@ -1 +0,0 @@
1
- import"./DsnmJJEf.js";import{p as Rt,j as ot,e as y,s as d,g as t,r as f,t as h,m as Ot,a as n,b as jt,i as qt,f as D,o as _,h as M,n as Jt,c as i}from"./CEfkcOME.js";import{d as Kt,a as G,s as g}from"./CPPNfCxh.js";import{i as x}from"./D4ikcNuh.js";import{s as nt,e as Pt,d as it}from"./BMjXQSgN.js";import{c as Qt}from"./CGbw525c.js";import{s as V,r as H,p as Ut}from"./D42BPZCD.js";import{m as Xt,n as Yt}from"./DTpgmq3M.js";import{C as st}from"./iInrZOCY.js";import{L as lt}from"./BMEfZRmb.js";import{C as Zt}from"./BkDaGfWb.js";import{I as N}from"./DBuj1e9B.js";import{I as te}from"./Duk3W2l8.js";import{W as dt}from"./BZk70sB4.js";import{S as ee}from"./CjOcIL_D.js";import{G as pt}from"./CnjebU_i.js";import{S as ut}from"./C3dZ1eoF.js";import{F as re}from"./CrndE5do.js";import{S as ae}from"./61tb7Ymv.js";var oe=new Set(["$$slots","$$events","$$legacy"]);function mt(u,s){let m=H(s,oe);const l={name:"bot",size:24,node:[["path",{d:"M12 8V4H8"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2"}],["path",{d:"M2 14h2"}],["path",{d:"M20 14h2"}],["path",{d:"M15 13v2"}],["path",{d:"M9 13v2"}]]};N(u,V(()=>m,{get icon(){return l}}))}var ne=new Set(["$$slots","$$events","$$legacy"]);function ie(u,s){let m=H(s,ne);const l={name:"brain",size:24,node:[["path",{d:"M12 18V5"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77"}]]};N(u,V(()=>m,{get icon(){return l}}))}var se=new Set(["$$slots","$$events","$$legacy"]);function Q(u,s){let m=H(s,se);const l={name:"file-pen",size:24,node:[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z"}]],aliases:["file-edit"]};N(u,V(()=>m,{get icon(){return l}}))}var le=new Set(["$$slots","$$events","$$legacy"]);function de(u,s){let m=H(s,le);const l={name:"list-todo",size:24,node:[["path",{d:"M13 5h8"}],["path",{d:"M13 12h8"}],["path",{d:"M13 19h8"}],["path",{d:"m3 17 2 2 4-4"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1"}]]};N(u,V(()=>m,{get icon(){return l}}))}var pe=i('<!> <span class="truncate"> </span>',1),ue=i('<span class="truncate"> </span>'),me=i('<span class="min-w-0 truncate text-muted-foreground"> </span>'),ve=i('<span class="flex shrink-0 items-center gap-1 text-xs text-danger"><!>failed</span>'),ce=i('<p class="text-muted-foreground">Claude Code keeps only a sealed signature for its thinking, not the words.</p>'),fe=i('<button class="self-start text-sea hover:underline">Show all</button>'),he=i('<pre class="no-scrollbar max-h-72 overflow-auto rounded-md bg-muted p-3 font-mono whitespace-pre-wrap text-muted-foreground"> </pre> <!>',1),_e=i('<p class="text-muted-foreground">Still running…</p>'),ge=i('<p class="text-muted-foreground">No output.</p>'),xe=i('<button class="mt-1 text-sea hover:underline"> </button>'),be=i("<pre> </pre> <!>",1),ke=i('<div><div class="mb-1 text-muted-foreground">Input</div> <pre> </pre></div> <div><div class="mb-1 text-muted-foreground"> </div> <!></div>',1),ye=i('<div class="mt-1 mb-2 ml-8 flex flex-col gap-2 text-xs"><!></div>'),we=i('<li class="py-0.5"><button class="flex w-full min-w-0 cursor-pointer items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm transition-colors hover:bg-muted"><!> <span class="shrink-0 text-foreground/80"> </span> <!> <!> <!></button> <!></li>'),Me=i('<ol class="mt-1.5 flex max-w-[80ch] flex-col rounded-lg border border-hair bg-bubble-firstmate px-2 py-1.5"></ol>'),Se=i('<div><button class="flex w-full max-w-[40rem] cursor-pointer items-center gap-2.5 rounded-xl border bg-card/60 px-4 py-2 text-left text-[0.95rem] text-foreground transition-colors hover:bg-muted"><!> <!></button> <!></div>');function qe(u,s){Rt(s,!0);let m=Ut(s,"live",3,!1),l=qt(!1),$=ot({}),z=ot({});const vt={Bash:ae,Read:re,Edit:Q,MultiEdit:Q,Write:Q,Grep:ut,Glob:ut,WebSearch:pt,WebFetch:pt,Skill:ee,ToolSearch:dt,Agent:mt,Task:mt,TodoWrite:de},ct=r=>r.kind==="thinking"?ie:r.kind==="context"?te:vt[r.name]??dt;function U(r){return r.kind==="thinking"?{verb:r.ms!=null&&r.ms>=1e3?`Thought for ${Yt(r.ms)}`:"Thought",summary:""}:r.kind==="context"?{verb:r.label,summary:""}:{verb:r.verb,summary:r.summary}}const X=M(()=>U(s.steps[s.steps.length-1])),F=1600,Y=(r,a)=>z[r]||a.length<=F?a:a.slice(0,F);function ft(r){const a=r.input??{};return r.name==="Bash"&&typeof a.command=="string"?{code:a.command,mono:!0}:(r.name==="Agent"||r.name==="Task")&&typeof a.prompt=="string"?{code:a.prompt,mono:!1}:{code:JSON.stringify(a,null,2),mono:!0}}var R=Se(),I=y(R),Z=y(I);{var ht=r=>{var a=pe(),b=D(a);lt(b,{class:"size-3.5 shrink-0 animate-spin text-sea","aria-hidden":"true"});var e=d(b,2),O=_(e);h(()=>g(O,`${t(X).verb??""} ${t(X).summary??""}`)),n(r,a)},_t=r=>{var a=ue(),b=_(a,!0);h(e=>g(b,e),[()=>Xt(s.steps)]),n(r,a)};x(Z,r=>{m()?r(ht):r(_t,-1)})}var gt=d(Z,2);{let r=M(()=>t(l)?"rotate-90":"");st(gt,{get class(){return`ml-auto size-3.5 shrink-0 text-muted-foreground transition-transform ${t(r)??""}`},"aria-hidden":"true"})}f(I);var xt=d(I,2);{var bt=r=>{var a=Me();Pt(a,21,()=>s.steps,b=>b.id,(b,e)=>{const O=M(()=>ct(t(e))),j=M(()=>U(t(e)));var q=we(),A=y(q),tt=y(A);Qt(tt,()=>t(O),(o,p)=>{p(o,{class:"size-4 shrink-0 text-muted-foreground","aria-hidden":"true"})});var et=d(tt,2),kt=_(et,!0),rt=d(et,2);{var yt=o=>{var p=me(),C=_(p,!0);h(()=>g(C,t(j).summary)),n(o,p)};x(rt,o=>{t(j).summary&&o(yt)})}var at=d(rt,2);{var wt=o=>{var p=ve(),C=y(p);Zt(C,{class:"size-3.5","aria-hidden":"true"}),Jt(),f(p),n(o,p)},Mt=o=>{lt(o,{class:"size-3.5 shrink-0 animate-spin text-muted-foreground","aria-label":"Running"})};x(at,o=>{t(e).kind==="tool"&&t(e).isError?o(wt):t(e).kind==="tool"&&t(e).result==null&&o(Mt,1)})}var St=d(at,2);{let o=M(()=>$[t(e).id]?"rotate-90":"");st(St,{get class(){return`ml-auto size-3.5 shrink-0 text-muted-foreground transition-transform ${t(o)??""}`},"aria-hidden":"true"})}f(A);var $t=d(A,2);{var zt=o=>{var p=ye(),C=y(p);{var It=v=>{var w=ce();n(v,w)},At=v=>{var w=he(),T=D(w),E=_(T,!0),L=d(T,2);{var J=k=>{var W=fe();G("click",W,()=>z[t(e).id]=!0),n(k,W)};x(L,k=>{t(e).detail.length>F&&!z[t(e).id]&&k(J)})}h(k=>g(E,k),[()=>Y(t(e).id,t(e).detail)]),n(v,w)},Ct=v=>{const w=M(()=>ft(t(e)));var T=ke(),E=D(T),L=d(y(E),2),J=_(L,!0);f(E);var k=d(E,2),W=y(k),Tt=_(W,!0),Et=d(W,2);{var Wt=c=>{var S=_e();n(c,S)},Bt=c=>{var S=ge();n(c,S)},Ft=M(()=>!t(e).result.trim()),Lt=c=>{var S=be(),K=D(S),Dt=_(K,!0),Gt=d(K,2);{var Vt=B=>{var P=xe(),Ht=_(P);h(Nt=>g(Ht,`Show all (${Nt??""}k characters)`),[()=>Math.round(t(e).result.length/1e3)]),G("click",P,()=>z[t(e).id]=!0),n(B,P)};x(Gt,B=>{t(e).result.length>F&&!z[t(e).id]&&B(Vt)})}h(B=>{it(K,1,`no-scrollbar max-h-72 overflow-auto rounded-md bg-muted p-3 font-mono whitespace-pre-wrap ${t(e).isError?"text-danger":""}`),g(Dt,B)},[()=>Y(t(e).id,t(e).result)]),n(c,S)};x(Et,c=>{t(e).result==null?c(Wt):t(Ft)?c(Bt,1):c(Lt,-1)})}f(k),h(()=>{it(L,1,`no-scrollbar max-h-60 overflow-auto rounded-md bg-muted p-3 whitespace-pre-wrap ${t(w).mono?"font-mono":"font-sans"}`),g(J,t(w).code),g(Tt,t(e).isError?"Error":"Result")}),n(v,T)};x(C,v=>{t(e).kind==="thinking"?v(It):t(e).kind==="context"?v(At,1):v(Ct,-1)})}f(p),n(o,p)};x($t,o=>{$[t(e).id]&&o(zt)})}f(q),h(()=>{nt(A,"aria-expanded",!!$[t(e).id]),g(kt,t(j).verb)}),G("click",A,()=>$[t(e).id]=!$[t(e).id]),n(b,q)}),f(a),n(r,a)};x(xt,r=>{t(l)&&r(bt)})}f(R),h(()=>nt(I,"aria-expanded",t(l))),G("click",I,()=>Ot(l,!t(l))),n(u,R),jt()}Kt(["click"]);export{qe as A,mt as B};
@@ -1 +0,0 @@
1
- import{n as F}from"./BUYzAikv.js";import"./DsnmJJEf.js";import{p as I,y as Q,f as S,g as t,a as P,b as W,h as c,e as p,r as f,s as m,o as k,t as Y,c as E}from"./CEfkcOME.js";import{s as h}from"./CPPNfCxh.js";import{i as G}from"./D4ikcNuh.js";import{s as C,d as b}from"./BMjXQSgN.js";import{p as J}from"./D42BPZCD.js";import{p as K}from"./gKm-HWvG.js";import{d as R,i as $,o as T,a as V,s as X}from"./Z_T9JZ0p.js";import{H as Z}from"./pY09PF5T.js";import{C as ee}from"./iInrZOCY.js";function me(s){return s?.replace(/[\\/]+$/,"").split(/[\\/]/).pop()?.trim()||null}function ge(s){const e=s.split(/[^\p{L}\p{N}]+/u).filter(Boolean);return e.length?e.length===1?e[0].slice(0,2).toUpperCase():(e[0][0]+e[1][0]).toUpperCase():"?"}function he(s){let e=0;for(const i of s)e=e*31+i.codePointAt(0)>>>0;return e%6}const q=s=>s.status!=="queued"&&s.status!=="landed"&&s.status!=="closed",te=s=>s.status==="failed"||s.status==="blocked"||s.status==="lost"||s.pipeline?.outcome==="failed"||s.passage.steps.some(e=>e.failed);function be(s){const e=s.filter(q),i=e.filter(te).length;return{percent:e.length?Math.round((e.length-i)/e.length*100):100,failing:i,inPlay:e.length}}function ve(s,e,i=4){return s.map(r=>{const a=e.filter(o=>o.projectId===r.id),n=a.some(F),l=a.some(o=>o.busy||q(o)&&o.status==="working");return{id:r.id,name:r.name,landed:a.length?Math.round(a.filter(o=>o.status==="landed").length/a.length*100):0,word:n?"Needs you":l?"Working":"Quiet",tone:n?"needs":l?"busy":"quiet",tasks:a.length}}).filter(r=>r.tasks>0).sort((r,a)=>a.tasks-r.tasks||r.name.localeCompare(a.name)).slice(0,i)}var se=E('<a><span aria-hidden="true"><!></span> <span class="min-w-0 flex-1"><span class="flex items-baseline gap-1.5 text-sm"><span> </span> <span class="truncate text-muted-foreground"> </span></span> <span class="block truncate text-xs text-muted-foreground"> </span></span> <span> <!></span></a>');function xe(s,e){I(e,!0);let i=J(e,"compact",3,!1);const r=c(()=>K.data.inbox),a=c(()=>$.view(t(r))?.available?T($.cards(t(r)),e.filter):[]),n=c(()=>t(a).filter(d=>X(d)==="waiting").length),l=c(()=>t(a)[0]??null),o=c(()=>V(e.filter,t(a).length===1?t(a)[0].id:null));var z=Q(),A=S(z);{var B=d=>{var u=se(),g=p(u),L=p(g);{let y=c(()=>i()?"size-3.5":"size-4");Z(L,{get class(){return t(y)}})}f(g);var v=m(g,2),x=p(v),_=p(x),M=k(_,!0),N=m(_,2),O=k(N,!0);f(x);var D=m(x,2),U=k(D,!0);f(v);var w=m(v,2),H=p(w,!0),j=m(H);ee(j,{class:"size-4 transition-transform group-hover:translate-x-0.5","aria-hidden":"true"}),f(w),f(u),Y(y=>{C(u,"href",t(o)),b(u,1,`group flex w-full min-w-0 cursor-pointer items-center gap-3 rounded-lg border text-left transition-colors focus-visible:outline-2 focus-visible:outline-ring ${t(n)?"border-sea/40 bg-sea/[0.07] hover:bg-sea/[0.12]":"bg-card hover:bg-muted/60"} ${i()?"px-2.5 py-2":"px-3.5 py-2.5"}`),C(u,"data-decisions-badge",t(n)?"waiting":"open"),b(g,1,`grid shrink-0 place-items-center rounded-full ${t(n)?"bg-sea text-on-accent":"bg-muted text-foreground/70"} ${i()?"size-6":"size-7"}`),b(_,1,`shrink-0 font-semibold ${t(n)?"text-sea":""}`),h(M,y),h(O,t(n)?t(n)===t(a).length?t(a).length===1?"waiting on you":"all waiting on you":`${t(n)} waiting on you`:"Firstmate is handling"),C(D,"title",t(l).title),h(U,t(l).title),b(w,1,`flex shrink-0 items-center gap-0.5 text-sm font-medium ${t(n)?"text-sea":"text-muted-foreground"}`),h(H,t(n)?"Answer":"Open")},[()=>R(t(a).length)]),P(d,u)};G(A,d=>{t(l)&&d(B)})}P(s,z),W()}export{xe as D,me as a,q as b,be as c,ve as g,he as h,ge as i};
@@ -1,5 +0,0 @@
1
- const K=["No longer needed","Already sorted elsewhere","Wrong question"],U={approve:"Approve",fix:"Fix",skip:"Skip"},Q=(t,e)=>e==="close"?"Dismiss":t.options.find(n=>n.choice===e)?.label??U[e],X=2e3,M=300;function R(t,e){const n={};for(const i of t.calls){const c=e[i.id]?.trim(),a=i.options.find(m=>m.recommended)?.id,u=c||a;u&&(n[i.id]=u)}return n}const Y=(t,e)=>t.calls.filter(n=>n.required&&!R(t,e)[n.id]);function j(t){const e=t.prompt?w(t.prompt,48):"";return t.number===null?e:e?`${t.number}) ${e}`:`${t.number})`}const E=t=>j(t)||"this question";function V(t,e){const n=new Set(t.calls.map(u=>u.id));if(Object.keys(e).find(u=>!n.has(u)))return{ok:!1,error:"A pick names a call this question does not ask."};const c=R(t,e),a=[];for(const u of t.calls){const m=c[u.id];if(!m){if(u.required)return{ok:!1,error:`Pick an option for ${E(u)}.`};continue}let p;if(u.options.length){const g=u.options.find(b=>b.id===m);if(!g)return{ok:!1,error:`That is not an option for ${E(u)}.`};p=g.detail?`${g.label} (${w(g.detail,60)})`:w(g.label,80)}else{if(m.length>M)return{ok:!1,error:`Answers are limited to ${M} characters.`};p=w(m,M)}const h=j(u);a.push(h?`${h}${/[?:]$/.test(h)?"":":"} ${p}`:p)}return a.length?{ok:!0,line:a.join(" ")}:{ok:!1,error:"Make a pick first."}}const w=(t,e)=>{const n=t.replace(/\s+/g," ").trim();return n.length>e?n.slice(0,e-1).trimEnd()+"…":n},tt=4*3600*1e3,et="wheelhouse-inbox-snoozed";function O(t,e){return Object.fromEntries(Object.entries(t).filter(([,n])=>n>e))}function nt(t,e){if(!t)return{};try{const n=JSON.parse(t);if(typeof n!="object"||n===null||Array.isArray(n))return{};const i={};for(const[c,a]of Object.entries(n))typeof a=="number"&&(i[c]=a);return O(i,e)}catch{return{}}}function C(t,e,n){const i=O(e,n),c=t.filter(W),a=c.filter(u=>!i[u.id]);return{shown:a,snoozed:c.length-a.length}}const W=t=>!t.sent||t.sent.delivery==="failed",N=t=>t.owner==="captain",st=(t,e,n)=>C(t.filter(i=>N(i)&&!i.following),e,n).shown.length;function ot(t){let n=(t.choices?[t.choices.intro,t.choices.after].filter(Boolean).join(" "):t.question).replace(/\s+/g," ").trim();const i=t.title.replace(/\s+/g," ").trim();return n.startsWith(i)&&(n=n.slice(i.length)),n=n.replace(/^[\s:;,.–—-]+/,"").trim(),n&&n!==i?n:null}const rt=t=>`${t}:captain-hold`,it=t=>t.secondMate?.taskId?`${t.secondMate.taskId}@${t.secondMate.id}`:t.taskId,at=(t,e)=>t&&!(e&&Date.parse(e)>Date.parse(t))?t:null,ut=t=>t.secondMate?.taskId?`/tasks/${encodeURIComponent(`${t.secondMate.taskId}@${t.secondMate.id}`)}`:t.secondMate?`/second-mates#mate-${encodeURIComponent(t.secondMate.id)}`:`/tasks/${encodeURIComponent(t.taskId)}`,ct=t=>`/inbox?d=${encodeURIComponent(t)}`;function lt(t,e){return JSON.stringify([t?.tasks.map(n=>({...n,eta:null}))??null,t?.secondMates??null,e?.messages.map(n=>[n.requestId,n.delivery,n.acknowledged,n.reply?.at??null])??null])}const D=/^(captain[,.!]?\s*)?(shipshape|all (is )?well|all quiet|nothing (new )?to report)[.!]?$/i,A=/^\[Request interrupted by user/,L=/\u001b\[[0-9;?]*[A-Za-z]/g,_=t=>String(t??"").split("/").filter(Boolean).pop()??"",x=t=>String(t??"").split(`
2
- `)[0].trim(),z=t=>{try{return new URL(String(t)).host}catch{return String(t??"")}};function B(t,e){switch(t){case"Bash":return{verb:"Ran",summary:e.description||x(e.command),noun:["command","commands"]};case"Read":return{verb:"Read",summary:_(e.file_path),noun:["file read","files read"]};case"Edit":case"MultiEdit":return{verb:"Edited",summary:_(e.file_path),noun:["edit","edits"]};case"Write":return{verb:"Wrote",summary:_(e.file_path),noun:["file written","files written"]};case"Grep":return{verb:"Searched code for",summary:String(e.pattern??""),noun:["code search","code searches"]};case"Glob":return{verb:"Listed files",summary:String(e.pattern??""),noun:["file listing","file listings"]};case"WebSearch":return{verb:"Searched the web for",summary:String(e.query??""),noun:["web search","web searches"]};case"WebFetch":return{verb:"Read page",summary:z(e.url),noun:["page read","pages read"]};case"Skill":return{verb:"Used skill",summary:String(e.skill??""),noun:["skill","skills"]};case"ToolSearch":return{verb:"Loaded tools",summary:x(e.query),noun:["tool lookup","tool lookups"]};case"Agent":case"Task":return{verb:"Asked a helper",summary:e.description||x(e.prompt),noun:["helper","helpers"]};case"TodoWrite":return{verb:"Updated the plan",summary:"",noun:["plan update","plan updates"]};case"SendMessage":return{verb:"Messaged",summary:String(e.to??""),noun:["message","messages"]};default:{const n=t.match(/^mcp__(.+?)__(.+)$/);return n?{verb:"Used",summary:`${n[2].replace(/_/g," ")} (${n[1]})`,noun:["tool call","tool calls"]}:{verb:"Used",summary:t,noun:["tool call","tool calls"]}}}}function P(t){return typeof t=="string"?t:Array.isArray(t)?t.map(e=>e?.type==="text"?String(e.text??""):e?.type==="image"?"[image]":e?.type==="tool_reference"?`[tool: ${e.tool_name??""}]`:`[${e?.type??"item"}]`).join(`
3
- `):""}const S=t=>t.replace(/<system-reminder>[\s\S]*?<\/system-reminder>/g,"").replace(/<\/?pasted_content(?:\s+id="[^"]*")?\s*>\n?/g,"").trim(),F=/<system-reminder>\s*The user sent a new message while you were working:\n([\s\S]*?)(?:\n\nThis is how Claude Code (?:(?!\n\n)[\s\S])*)?\s*<\/system-reminder>/,I=t=>{const e=t.match(F);return e&&S(e[1])||null};function $(t,e){const n=t.match(new RegExp(`<${e}>([\\s\\S]*?)</${e}>`));return n?n[1].trim():null}function q(t){const e=$(t,"command-name");if(!e)return null;const n=$(t,"command-args");return n?`${e} ${n}`:e}function H(t){return(Array.isArray(t?.questions)?t.questions:[]).map(n=>({header:String(n?.header??""),question:String(n?.question??""),multiSelect:n?.multiSelect===!0,options:(Array.isArray(n?.options)?n.options:[]).map(i=>({label:String(i?.label??""),description:String(i?.description??"")}))}))}function Z(t,e){const n=t.toolUseResult?.answers;if(n&&typeof n=="object")return Object.fromEntries(Object.entries(n).map(([c,a])=>[c,String(a)]));const i={};for(const c of e.matchAll(/"([^"]+)"="([^"]*)"/g))i[c[1]]=c[2];return i}function dt(t){const e=t?.message?.content;return t?.type!=="user"||t.isSidechain||t.isMeta||typeof e!="string"||t.origin?.kind==="task-notification"||e.trimStart().startsWith("<task-notification>")||A.test(e.trim())?!1:!!q(e)||!e.includes("<local-command-stdout>")&&!!S(e)}function ft(t,e){if(!t.items.length&&!t.checks.length)return e;if(!e.items.length&&!e.checks.length&&!e.title)return t;const n=t.checks.map((i,c,a)=>c===a.length-1&&e.items.length?{...i,done:!0}:i);return{items:[...t.items,...e.items],title:e.title??t.title,checks:[...n,...e.checks]}}function mt(t){const e=[],n=new Map,i=new Map;let c=null,a=null,u=null,m=null,p=!1;const h=()=>{a=null},g=s=>(a||(a={kind:"turn",id:s.uuid,parts:[],at:s.timestamp,durationMs:null,done:!1,interrupted:!1,trigger:p?"background":"captain"},p=!1,e.push(a),u=a),a),b=s=>{const f=g(s),o=f.parts[f.parts.length-1];if(o?.kind==="activity")return o;const r={kind:"activity",id:`${s.uuid}-a`,steps:[]};return f.parts.push(r),r},k=(s,f,o={})=>{h(),p=!1,e.push({kind:"user",id:s.uuid,text:f,at:s.timestamp,queued:!!o.queued,command:!!o.command})},v=(s,f,o,r=s.uuid)=>{a&&b(s).steps.push({kind:"context",id:r,label:f,detail:o})};for(const s of t){if(!s||typeof s!="object"||s.isSidechain)continue;const f=s.timestamp??null;switch(s.type){case"wh-session":u&&!u.done&&!u.interrupted&&(u.done=!0),h(),u=null,p=!1,e[e.length-1]?.kind==="session"&&e.pop(),e.push({kind:"session",id:s.uuid,at:s.timestamp,first:!!s.first});break;case"ai-title":c=s.aiTitle??c;break;case"user":{const o=s.message?.content;if(typeof o=="string")if(s.origin?.kind==="task-notification"||o.trimStart().startsWith("<task-notification>"))h(),p=!0;else if(s.isMeta){const r=I(o);r?k(s,r,{queued:!0}):v(s,"Context added",o)}else if(A.test(o.trim()))u&&(u.interrupted=!0);else{const r=q(o);if(r)k(s,r,{command:!0});else if(!o.includes("<local-command-stdout>")){const l=S(o);l&&k(s,l)}}else if(Array.isArray(o))for(const r of o)if(r?.type==="tool_result"){const l=P(r.content),d=n.get(r.tool_use_id);d&&(d.result=l,d.isError=!!r.is_error);const y=i.get(r.tool_use_id);y&&(y.answers=r.is_error?{}:Z(s,l))}else if(r?.type==="text"){const l=String(r.text??""),d=I(l);if(A.test(l.trim()))u&&(u.interrupted=!0);else if(d)k(s,d,{queued:!0});else if(s.isMeta||s.sourceToolUseID){const y=l.startsWith("Base directory for this skill")?"Skill instructions loaded":"Context added";v(s,y,l,`${s.uuid}-${y}`)}else{const y=S(l);y&&k(s,y)}}else r?.type==="image"&&k(s,"[image]");break}case"assistant":{for(const o of s.message?.content??[])if(o?.type==="thinking"||o?.type==="redacted_thinking"){const r=m&&f?Date.parse(f)-Date.parse(m):null;b(s).steps.push({kind:"thinking",id:`${s.uuid}-th`,ms:r})}else if(o?.type==="tool_use"&&o.name==="AskUserQuestion"){const r={kind:"question",id:o.id,questions:H(o.input),answers:null};i.set(o.id,r),g(s).parts.push(r)}else if(o?.type==="tool_use"){const r=B(String(o.name),o.input??{}),l={kind:"tool",id:o.id,name:String(o.name),...r,input:o.input,result:null,isError:!1};n.set(o.id,l),b(s).steps.push(l)}else if(o?.type==="text"){if(!String(o.text??"").trim())continue;g(s).parts.push({kind:"text",id:`${s.uuid}-t`,text:o.text})}break}case"attachment":{const o=s.attachment??{};if(o.type==="queued_command"&&typeof o.prompt=="string"&&(o.commandMode??"prompt")==="prompt"){const r=S(o.prompt);r&&k(s,r,{queued:!0})}else if(o.type==="hook_additional_context"){const r=Array.isArray(o.content)?o.content.join(`
4
- `):String(o.content??"");v(s,`Hook added context${o.hookEvent?` (${o.hookEvent})`:""}`,r)}break}case"system":{if(s.subtype==="turn_duration")u&&(u.durationMs=s.durationMs??null,u.done=!0),h();else if(s.subtype==="away_summary")h(),e.push({kind:"notice",id:s.uuid,title:"While you were away",detail:String(s.content??""),at:s.timestamp});else if(s.subtype==="local_command"){const o=String(s.content??""),r=$(o,"local-command-stdout")??$(o,"local-command-stderr"),l=q(o);if(l)k(s,l,{command:!0});else if(r!==null){const d=r.replace(L,"").trim();d&&e.push({kind:"output",id:s.uuid,text:d,at:s.timestamp})}}break}}f&&(m=f)}const T=[];return{items:e.filter((s,f)=>{if(s.kind!=="turn"||s.trigger!=="background")return!0;const o=s.parts.filter(d=>d.kind==="text").map(d=>d.text).join(`
5
- `).trim(),l=!s.parts.some(d=>d.kind==="question")&&(!o||D.test(o));return T.push({id:s.id,at:s.at,durationMs:s.durationMs,done:s.done||f<e.length-1,outcome:l?"quiet":"reported"}),!l}),title:c,checks:T}}function pt(t){const e=new Map;let n=!1,i=0;for(const a of t){if(a.kind==="thinking"&&(n=!0,i+=a.ms??0),a.kind!=="tool")continue;const u=e.get(a.noun[0])??{n:0,noun:a.noun};u.n++,e.set(a.noun[0],u)}const c=[...e.values()].map(a=>`${a.n} ${a.n===1?a.noun[0]:a.noun[1]}`);return c.length?c.join(", "):n?i>=1e3?`Thought for ${G(i)}`:"Thought briefly":"Read some context"}function G(t){if(t==null||t<0)return"";const e=Math.round(t/1e3);if(e<60)return`${e}s`;const n=Math.floor(e/60);return n<60?`${n}m ${e%60}s`:`${Math.floor(n/60)}h ${n%60}m`}function ht(t){const e=[];for(const n of t)if(n.kind==="turn"){for(const i of n.parts)if(i.kind==="activity")for(const c of i.steps)c.kind==="tool"&&c.result!==null&&c.name.startsWith("mcp__")&&e.push(c.id)}return e}export{K as D,X as N,et as S,M as W,W as a,at as b,tt as c,V as d,N as e,it as f,ct as g,rt as h,dt as i,mt as j,ft as k,O as l,pt as m,G as n,st as o,nt as p,ot as q,ut as r,j as s,R as t,Y as u,C as v,E as w,Q as x,ht as y,lt as z};
@@ -1,2 +0,0 @@
1
- import{s as vt}from"./B42VotjV.js";import{H as B,N as Y,r as me,n as O,i as Oe,b as T,s as $,a as Se,f as rt,g as Ie,c as oe,d as be,S as je,P as nt,p as I,e as bt,m as Et,h as kt,o as Ne,u as xe,j as At,w as St,k as Xe,l as X,q as It,t as at,v as Rt,x as Pt,y as ot}from"./BoLe_IyD.js";import{P as se,O as Lt,k as Tt}from"./CEfkcOME.js";class te{constructor(t,r){this.status=t,typeof r=="string"?this.body={message:r}:r?this.body=r:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class De{constructor(t,r){try{new Headers({location:r})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(r)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=r}}class Ce extends Error{constructor(t,r,n){super(n),this.status=t,this.text=r}}const Ut=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,Ot=/^\/\((?:[^)]+)\)$/;function jt(e){const t=[];return{pattern:e==="/"||Ot.test(e)?/^\/$/:new RegExp(`^${xt(e).map(n=>{const i=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(n);if(i)return t.push({name:i[1],matcher:i[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const a=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(n);if(a)return t.push({name:a[1],matcher:a[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!n)return;const s=n.split(/\[(.+?)\](?!\])/);return"/"+s.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return Ee(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Ee(String.fromCharCode(...c.slice(2).split("-").map(y=>parseInt(y,16))));const l=Ut.exec(c),[,h,d,u,p]=l;return t.push({name:u,matcher:p,optional:!!h,rest:!!d,chained:d?f===1&&s[0]==="":!1}),d?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return Ee(c)}).join("")}).join("")}/?$`),params:t}}function Nt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function xt(e){return e.slice(1).split("/").filter(Nt)}function Dt(e,t,r){const n={},i=e.slice(1),a=i.filter(o=>o!==void 0);let s=0;for(let o=0;o<t.length;o+=1){const c=t[o];let f=i[o-s];if(c.chained&&c.rest&&s&&(f=i.slice(o-s,o+1).filter(l=>l).join("/"),s=0),f===void 0)if(c.rest)f="";else continue;if(!c.matcher||r[c.matcher](f)){n[c.name]=f;const l=t[o+1],h=i[o+1];l&&!l.rest&&l.optional&&h&&c.chained&&(s=0),!l&&!h&&Object.keys(n).length===a.length&&(s=0);continue}if(c.optional&&c.chained){s++;continue}return}if(!s)return n}function Ee(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ct({nodes:e,server_loads:t,dictionary:r,matchers:n}){const i=new Set(t);return Object.entries(r).map(([o,[c,f,l]])=>{const{pattern:h,params:d}=jt(o),u={id:o,exec:p=>{const y=h.exec(p);if(y)return Dt(y,d,n)},errors:[1,...l||[]].map(p=>e[p]),layouts:[0,...f||[]].map(s),leaf:a(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function s(o){return o===void 0?o:[i.has(o),e[o]]}}function st(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function ze(e,t,r=JSON.stringify){const n=r(t);try{sessionStorage[e]=n}catch{}}const Bt=-1,Mt=-2,$t=-3,Ft=-4,qt=-5,Vt=-6,Ht=-7,it=2**32-1,Re=it-1;function Yt(e){return!(!Number.isInteger(e)||e<0||e>Re)}function Kt(e){return!(!Number.isInteger(e)||e<0||e>it)}function Gt(e){return Uint8Array.fromBase64(e).buffer}function Xt(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function zt(e){const t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer}const Wt=typeof Uint8Array.fromBase64=="function",Jt=typeof process=="object"&&process.versions?.node!==void 0,Zt=Wt?Gt:Jt?Xt:zt;function Qt(e,t){return e}const er=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,We=typeof SharedArrayBuffer>"u"?void 0:Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get,tr={fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e==="URL"?new URL(t):e==="URLSearchParams"?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,r,n)=>{try{er.call(t)}catch(a){if(!We)throw a;We.call(t)}const i=globalThis[e];return r!==void 0?new i(t,r,n):new i(t)},box:e=>Object(e),createArray:e=>new Array(e),createSparseArray:e=>{const t=[];return t[Re]=void 0,delete t[Re],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,r)=>{e[t]=r},addValue:(e,t)=>{e.add(t)},addEntry:(e,t,r)=>{e.set(t,r)}},rr=Object.freeze(tr);function nr(e,t,r){const n=Qt(rr);if(typeof e=="number")return o(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const i=e,a=Array(i.length);let s=null;function o(c,f=!1){if(c===Bt)return n.fromPrimitive(void 0);if(c===$t)return n.fromPrimitive(NaN);if(c===Ft)return n.fromPrimitive(1/0);if(c===qt)return n.fromPrimitive(-1/0);if(c===Vt)return n.fromPrimitive(-0);if(f||typeof c!="number")throw new Error("Invalid input");if(c in a)return a[c];if(c>=i.length)throw new Error("Invalid input");const l=i[c];if(!l||typeof l!="object")a[c]=n.fromPrimitive(l);else if(Array.isArray(l))if(typeof l[0]=="string"){const h=l[0],d=t&&Object.hasOwn(t,h)?t[h]:void 0;if(d){let u=l[1];if(typeof u!="number"&&(u=i.push(l[1])-1),Object.hasOwn(a,u))return a[c]=d(a[u]);if(s??=new Set,s.has(u))throw new Error("Invalid circular reference");return s.add(u),a[c]=d(o(u)),s.delete(u),a[c]}switch(h){case"Date":a[c]=n.fromISOString(l[1]);break;case"Set":const u=n.createSet();a[c]=u;for(let _=1;_<l.length;_+=1)n.addValue(u,o(l[_]));break;case"Map":const p=n.createMap();a[c]=p;for(let _=1;_<l.length;_+=2)n.addEntry(p,o(l[_]),o(l[_+1]));break;case"RegExp":a[c]=n.fromRegExpInfo(l[1],l[2]);break;case"Object":{const _=l[1];if(typeof i[_]=="object"&&i[_][0]!=="BigInt")throw new Error("Invalid input");a[c]=n.box(o(_));break}case"BigInt":a[c]=n.fromPrimitive(BigInt(l[1]));break;case"null":const y=n.createNullPrototypeObject();a[c]=y;for(let _=1;_<l.length;_+=2){const m=l[_];if(typeof m!="string")throw new Error("Cannot parse an object with a non-string key");if(m==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");n.set(y,m,o(l[_+1]))}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(i[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const _=o(l[1]);a[c]=n.fromViewInfo(h,_,l[2],l[3]);break}case"ArrayBuffer":{const _=l[1];if(typeof _!="string")throw new Error("Invalid ArrayBuffer encoding");a[c]=n.fromArrayBuffer(Zt(_));break}case"URL":case"URLSearchParams":case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{a[c]=n.fromStringValue(h,l[1]);break}default:throw new Error(`Unknown type ${h}`)}}else if(l[0]===Ht){const h=l[1];if(!Kt(h))throw new Error("Invalid input");const d=n.createSparseArray(h);a[c]=d;for(let u=2;u<l.length;u+=2){const p=l[u];if(!Yt(p)||p>=h)throw new Error("Invalid input");n.set(d,p,o(l[u+1]))}}else{const h=n.createArray(l.length);a[c]=h;for(let d=0;d<l.length;d+=1){const u=l[d];u!==Mt&&n.set(h,d,o(u))}}else{const h=n.createObject();a[c]=h;for(const d of Object.keys(l)){if(d==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");n.set(h,d,o(l[d]))}}return a[c]}return o(0)}function ar(e){return e.filter(t=>t!=null)}const or="x-sveltekit-invalidated",sr="x-sveltekit-trailing-slash";function F(e,t){return e+"/"+t}function ie(e){return e instanceof te||e instanceof Ce?e.status:500}function ir(e){return e instanceof Ce?e.text:"Internal Error"}const cr="/__data.json",lr=".html__data.json";function fr(e){return e.endsWith(".html")?e.replace(/\.html$/,lr):e.replace(/\/$/,"")+cr}const Je={spanContext(){return ur},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},ur={traceId:"",spanId:"",traceFlags:0};async function*dr(e,t){let r=!1,n="";const i=new TextDecoder;for(;;){let a=n.indexOf(t);for(;a!==-1;)yield n.slice(0,a),n=n.slice(a+t.length),a=n.indexOf(t);if(r){n&&(yield n);return}const s=await e.read();r=s.done,s.value&&(n+=i.decode(s.value,{stream:!0})),r&&(n+=i.decode())}}async function*hr(e){for await(const t of dr(e,`
2
- `)){const r=t.trim();r&&(yield JSON.parse(r))}}const{onMount:pr}=vt,_r=Tt??(e=>e()),mr=new Set(["icon","shortcut icon","apple-touch-icon"]);let z=null;const D=st(ot)??{},Z=st(at)??{},x={url:Xe({}),page:Xe({}),navigating:St(null),updated:At()};function Be(e){D[e]=$()}function gr(e,t){let r=e+1;for(;D[r];)delete D[r],r+=1;for(r=t+1;Z[r];)delete Z[r],r+=1}function K(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(O)}async function ct(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(T||"/");e&&await e.update()}}let Me,Pe,ce,N,Le,E;const le=[],fe=[];let L=null;function Q(){L?.fork?.then(e=>e?.discard()),L=null,q={element:void 0,href:void 0}}const ae=new Map,$e=new Set,lt=new Set,V=new Set;let g={branch:[],error:null,url:null,nav:null},Fe=!1,ue=!1,Ze=!0,ee=!1,W=!1,ft=!1,re=!1,ge,A,R,U;const J=new Set;let ke;const de=new Map,he=new Map;async function Nr(e,t,r){if(globalThis.__sveltekit_1b4tx2v.data){const{q:a={},p:s={},l:o={},f:c={}}=globalThis.__sveltekit_1b4tx2v.data;for(const f in a)a[f];for(const f in o)o[f];for(const f in c)c[f];for(const f in s)s[f]}document.URL!==location.href&&(location.href=location.href),E=e,await e.hooks.init?.(),Me=Ct(e),N=document.documentElement,Le=t,Pe=e.nodes[0],ce=e.nodes[1],Pe(),ce(),A=history.state?.[B],R=history.state?.[Y],A||(A=R=Date.now(),history.replaceState({...history.state,[B]:A,[Y]:R},""));const n=D[A];function i(){n&&(history.scrollRestoration="manual",scrollTo(n.x,n.y))}r?(i(),await Rr(Le,r)):(await H({type:"enter",url:me(E.hash?Tr(new URL(location.href)):location.href),replace_state:!0}),i()),Ir()}async function yr(e=!0,t=!0){if(await(ke||=Promise.resolve()),!ke)return;ke=null;const r=U={},n=await ne(g.url,!0);Q();const i=new Map;if(re){for(const s of de.values())for(const{resource:o}of s.values())o.refresh();for(const[s,o]of he)for(const[c,{resource:f}]of o){const l=F(s,c),h=f.reconnect();h.catch(O),i.set(l,h)}}if(e){const s=I.state,o=n&&await Ye(n);if(!o||r!==U)return;if(o.type==="redirect")return qe(new URL(o.location,g.url).href,{replaceState:!0},1,r);t||(o.props.page.state=s),xe(o.props.page),g={...o.state,nav:g.nav},Te(),ge.$set(o.props)}else Te();const a=[];for(const s of de.values())for(const{resource:o}of s.values())a.push(o);for(const[s,o]of he)for(const c of o.keys()){const f=F(s,c),l=i.get(f);l&&a.push(l)}await Promise.all(a).catch(O)}function Te(){le.length=0,re=!1}function ut(e){fe.some(t=>t?.snapshot)&&(Z[e]=fe.map(t=>t?.snapshot?.capture()))}function dt(e){Z[e]?.forEach((t,r)=>{fe[r]?.snapshot?.restore(t)})}function Qe(){Be(A),ze(ot,D),ut(R),ze(at,Z)}async function qe(e,t,r,n){let i,a;t.invalidateAll&&Q(),await H({type:"goto",url:me(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:r,nav_token:n,accept:()=>{if(t.invalidateAll){re=!0,i=new Set;for(const[s,o]of de)for(const[c,f]of o)f.resource?.reset(),i.add(F(s,c));a=new Set;for(const[s,o]of he)for(const c of o.keys())a.add(F(s,c))}t.invalidate&&t.invalidate.forEach(Sr)}}),t.invalidateAll&&se().then(se).then(()=>{for(const[s,o]of de)for(const[c,{resource:f}]of o)i?.has(F(s,c))&&f.start();for(const[s,o]of he)for(const[c,{resource:f}]of o)a?.has(F(s,c))&&f.reconnect()})}async function wr(e){if(e.id!==L?.id){Q();const t={};J.add(t),L={id:e.id,token:t,promise:Ye({...e,preload:t}).then(r=>(J.delete(t),r.type==="loaded"&&r.state.error&&Q(),r)),fork:null}}return L.promise}async function Ae(e){const t=(await ne(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(r=>r[1]()))}async function ht(e,t,r){const n={params:g.params,route:{id:g.route?.id??null},url:new URL(location.href)};if(g={...e.state,nav:n},xe(e.props.page),ge=new E.root({target:t,props:{...e.props,stores:x,components:fe},hydrate:r,sync:!1,transformError:void 0}),await Promise.resolve(),r){const i={from:null,to:{...n,scroll:D[A]??$()},willUnload:!1,type:"enter",complete:Promise.resolve()};V.forEach(a=>a(i))}dt(R),ue=!0}async function pe({url:e,params:t,branch:r,errors:n,status:i,error:a,route:s,form:o}){let c="never";if(T&&(e.pathname===T||e.pathname===T+"/"))c="always";else for(const p of r)p?.slash!==void 0&&(c=p.slash);e.pathname=kt(e.pathname,c),e.search=e.search;const f={type:"loaded",state:{url:e,params:t,branch:r,error:a,route:s},props:{constructors:ar(r).map(p=>p.node.component),page:we(I)}};o!==void 0&&(f.props.form=o);let l={},h=!I,d=0;for(let p=0;p<Math.max(r.length,g.branch.length);p+=1){const y=r[p],_=g.branch[p];y?.data!==_?.data&&(h=!0),y&&(l={...l,...y.data},h&&(f.props[`data_${d}`]=l),d+=1)}return(!g.url||e.href!==g.url.href||g.error!==a||o!==void 0&&o!==I.form||h)&&(f.props.page={error:a,params:t,route:{id:s?.id??null},state:{},status:i,url:new URL(e),form:o??null,data:h?l:I.data}),f}async function Ve({loader:e,parent:t,url:r,params:n,route:i,server_data_node:a}){let s=null,o=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},f=await e();if(f.universal?.load){let l=function(...d){for(const u of d){const{href:p}=new URL(u,r);c.dependencies.add(p)}};const h={tracing:{enabled:!1,root:Je,current:Je},route:new Proxy(i,{get:(d,u)=>(o&&(c.route=!0),d[u])}),params:new Proxy(n,{get:(d,u)=>(o&&c.params.add(u),d[u])}),data:a?.data??null,url:Et(r,()=>{o&&(c.url=!0)},d=>{o&&c.search_params.add(d)},E.hash),async fetch(d,u){d instanceof Request&&(u={body:d.method==="GET"||d.method==="HEAD"?void 0:await d.blob(),cache:d.cache,credentials:d.credentials,headers:[...d.headers].length>0?d?.headers:void 0,integrity:d.integrity,keepalive:d.keepalive,method:d.method,mode:d.mode,redirect:d.redirect,referrer:d.referrer,referrerPolicy:d.referrerPolicy,signal:d.signal,...u});const{resolved:p,promise:y}=pt(d,u,r);return o&&l(p.href),y},setHeaders:O,depends:l,parent(){return o&&(c.parent=!0),t()},untrack(d){o=!1;try{return d()}finally{o=!0}}};s=await f.universal.load.call(null,h)??null}return{node:f,loader:e,server:a,universal:f.universal?.load?{type:"data",data:s,uses:c}:null,data:s??a?.data??null,slash:f.universal?.trailingSlash??a?.slash}}function pt(e,t,r){let n=e instanceof Request?e.url:e;const i=new URL(n,r);i.origin===r.origin&&(n=i.href.slice(r.origin.length));const a=ue?Rt(n,i.href,t):Pt(n,t);return{resolved:i,promise:a}}function et(e,t,r,n,i,a){if(re)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&r)return!0;for(const s of i.search_params)if(n.has(s))return!0;for(const s of i.params)if(a[s]!==g.params[s])return!0;for(const s of i.dependencies)if(le.some(o=>o(new URL(s))))return!0;return!1}function He(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function vr(e,t){if(!e)return new Set(t.searchParams.keys());const r=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const n of r){const i=e.searchParams.getAll(n),a=t.searchParams.getAll(n);i.every(s=>a.includes(s))&&a.every(s=>i.includes(s))&&r.delete(n)}return r}function tt({error:e,url:t,route:r,params:n}){return{type:"loaded",state:{error:e,url:t,route:r,params:n,branch:[]},props:{page:we(I),constructors:[]}}}async function Ye({id:e,invalidating:t,url:r,params:n,route:i,preload:a}){if(L?.id===e)return J.delete(L.token),L.promise;const{errors:s,layouts:o,leaf:c}=i,f=[...o,c];s.forEach(w=>w?.().catch(O)),f.forEach(w=>w?.[1]().catch(O));let l=null;const h=g.url?e!==_e(g.url):!1,d=g.route?i.id!==g.route.id:!1,u=vr(g.url,r);let p=!1;{const w=f.map((v,k)=>{const S=g.branch[k],b=!!v?.[0]&&(S?.loader!==v[1]||et(p,d,h,u,S.server?.uses,n));return b&&(p=!0),b});if(w.some(Boolean)){try{l=await gt(r,w)}catch(v){const k=await M(v,{url:r,params:n,route:{id:e}});return a&&J.has(a)?tt({error:k,url:r,params:n,route:i}):ye({status:ie(v),error:k,url:r,route:i})}if(l.type==="redirect")return l}}const y=l?.nodes;let _=!1;const m=f.map(async(w,v)=>{if(!w)return;const k=g.branch[v],S=y?.[v];if((!S||S.type==="skip")&&w[1]===k?.loader&&!et(_,d,h,u,k.universal?.uses,n))return k;if(_=!0,S?.type==="error")throw S;return Ve({loader:w[1],url:r,params:n,route:i,parent:async()=>{const j={};for(let C=0;C<v;C+=1)Object.assign(j,(await m[C])?.data);return j},server_data_node:He(S===void 0&&w[0]?{type:"skip"}:S??null,w[0]?k?.server:void 0)})});for(const w of m)w.catch(O);const P=[];for(let w=0;w<f.length;w+=1)if(f[w])try{P.push(await m[w])}catch(v){if(v instanceof De)return{type:"redirect",location:v.location};if(a&&J.has(a))return tt({error:await M(v,{params:n,url:r,route:{id:i.id}}),url:r,params:n,route:i});let k=ie(v),S;if(y?.includes(v))k=v.status??k,S=v.error;else if(v instanceof te)S=v.body;else{if(await x.updated.check())return await ct(),await K(r);S=await M(v,{params:n,url:r,route:{id:i.id}})}const b=await br(w,P,s);return b?pe({url:r,params:n,branch:P.slice(0,b.idx).concat(b.node),errors:s,status:k,error:S,route:i}):await mt(r,{id:i.id},S,k)}else P.push(void 0);return pe({url:r,params:n,branch:P,errors:s,status:200,error:null,route:i,form:t?void 0:null})}async function br(e,t,r){for(;e--;)if(r[e]){let n=e;for(;!t[n];)n-=1;try{return{idx:n+1,node:{node:await r[e](),loader:r[e],data:{},server:null,universal:null}}}catch{continue}}}async function ye({status:e,error:t,url:r,route:n}){const i={};let a=null;if(E.server_loads[0]===0)try{const o=await gt(r,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;a=o.nodes[0]??null}catch(o){if(!(o instanceof te&&o.status===404)&&(r.origin!==Ne||r.pathname!==location.pathname||Fe))return await K(r)}try{const s=await Ve({loader:Pe,url:r,params:i,route:n,parent:()=>Promise.resolve({}),server_data_node:He(a)}),o={node:await ce(),loader:ce,universal:null,server:null,data:null};return pe({url:r,params:i,branch:[s,o],status:e,error:t,errors:[],route:null})}catch(s){if(s instanceof De){await qe(new URL(s.location,location.href),{},0);return}const o=await E.get_error_template(),c=await M(s,{url:r,params:i,route:n}),f=String(c?.message??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),l=o({status:e,message:f}),h=new DOMParser().parseFromString(l,"text/html");throw document.documentElement.replaceChild(document.adoptNode(h.head),document.head),document.documentElement.replaceChild(document.adoptNode(h.body),document.body),s}}async function Er(e){const t=e.href;if(ae.has(t))return ae.get(t);let r;try{const n=(async()=>{let i=await E.hooks.reroute({url:new URL(e),fetch:async(a,s)=>pt(a,s,e).promise})??e;if(typeof i=="string"){const a=new URL(e);E.hash?a.hash=i:a.pathname=i,i=a}return i})();ae.set(t,n),r=await n}catch{ae.delete(t);return}return r}async function ne(e,t){if(e&&!Oe(e,T,E.hash)){const r=await Er(e);if(!r)return;const n=kr(r);for(const i of Me){const a=i.exec(n);if(a)return{id:_e(e),invalidating:t,route:i,params:bt(a),url:e}}}}function kr(e){return It(E.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(T.length))||"/"}function _e(e){return(E.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function _t({url:e,type:t,intent:r,delta:n,event:i,scroll:a}){let s=!1;const o=Ge(g,r,e,t,a??null);n!==void 0&&(o.navigation.delta=n),i!==void 0&&(o.navigation.event=i);const c={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return ee||$e.forEach(f=>f(c)),s?null:o}async function H({type:e,url:t,popped:r,keepfocus:n,noscroll:i,replace_state:a,state:s={},redirect_count:o=0,nav_token:c={},accept:f=O,block:l=O,event:h}){const d=U;U=c;const u=await ne(t,!1),p=e==="enter"?Ge(g,u,t,e):_t({url:t,type:e,delta:r?.delta,intent:u,scroll:r?.scroll,event:h});if(!p){l(),U===c&&(U=d);return}const y=A,_=R;f(),ee=!0,ue&&p.navigation.type!=="enter"&&x.navigating.set(Se.current=p.navigation);let m=u&&await Ye(u);if(!m){if(Oe(t,T,E.hash))return await K(t,a);m=await mt(t,{id:null},await M(new Ce(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,a)}if(t=u?.url||t,U!==c){p.reject(new Error("navigation aborted"));return}if(!m)return;if(m.type==="redirect"){if(o<20){await H({type:e,url:new URL(m.location,t),popped:r,keepfocus:n,noscroll:i,replace_state:a,state:s,redirect_count:o+1,nav_token:c}),p.fulfil(void 0);return}if(m=await ye({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!m)return}else if(m.props.page.status>=400&&await x.updated.check())return await ct(),await K(t,a);if(Te(),Be(y),ut(_),m.props.page.url.pathname!==t.pathname&&(t.pathname=m.props.page.url.pathname),s=r?r.state:s,!r){const b=a?0:1,j={[B]:A+=b,[Y]:R+=b,[je]:s};(a?history.replaceState:history.pushState).call(history,j,"",t),a||gr(A,R)}const P=u&&L?.id===u.id?L.fork:null;L?.fork&&!P?Q():(L=null,q={element:void 0,href:void 0}),m.props.page.state=s;let w;if(ue){const b=(await Promise.all(Array.from(lt,G=>G(p.navigation)))).filter(G=>typeof G=="function");if(b.length>0){let G=function(){b.forEach(ve=>{V.delete(ve)})};b.push(G),b.forEach(ve=>{V.add(ve)})}const j=p.navigation.to;g={...m.state,nav:{params:j.params,route:j.route,url:j.url}},m.props.page&&(m.props.page.url=t),!n&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const C=P&&await P;C?w=C.commit():(z=null,ge.$set(m.props),z&&Object.assign(m.props.page,z),xe(m.props.page),w=Lt?.()),ft=!0}else await ht(m,Le,!1);const{activeElement:v}=document;if(await w,await se(),await se(),U!==c){p.reject(new Error("navigation aborted"));return}m.props.page&&z&&Object.assign(m.props.page,z);let k=null;if(Ze){const b=r?r.scroll:i?$():null;b?scrollTo(b.x,b.y):(k=t.hash&&document.getElementById(wt(t)))?k.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==v&&document.activeElement!==document.body;!n&&!S&&Lr(t,!k),Ze=!0,ee=!1,p.fulfil(void 0),p.navigation.to&&(p.navigation.to.scroll=$()),V.forEach(b=>b(p.navigation)),e==="popstate"&&dt(R),x.navigating.set(Se.current=null)}async function mt(e,t,r,n,i){return e.origin===Ne&&e.pathname===location.pathname&&!Fe?await ye({status:n,error:r,url:e,route:t}):await K(e,i)}let q={element:void 0,href:void 0};function Ar(){let e,t;N.addEventListener("mousemove",s=>{const o=s.target;clearTimeout(e),e=setTimeout(()=>{i(o,X.hover)},20)});function r(s){s.defaultPrevented||i(s.composedPath()[0],X.tap)}N.addEventListener("mousedown",r),N.addEventListener("touchstart",r,{passive:!0});const n=new IntersectionObserver(s=>{for(const o of s)o.isIntersecting&&(Ae(new URL(o.target.href)),n.unobserve(o.target))},{threshold:0});async function i(s,o){const c=rt(s,N),f=c===q.element&&c?.href===q.href&&o>=t;if(!c||f)return;const{url:l,external:h,download:d}=Ie(c,T,E.hash);if(h||d)return;const u=oe(c),p=l&&_e(g.url)===_e(l);if(!(u.reload||p))if(o<=u.preload_data){q={element:c,href:c.href},t=X.tap;const y=await ne(l,!1);if(!y)return;wr(y)}else o<=u.preload_code&&(q={element:c,href:c.href},t=o,Ae(l))}function a(){n.disconnect();for(const s of N.querySelectorAll("a")){const{url:o,external:c,download:f}=Ie(s,T,E.hash);if(c||f)continue;const l=oe(s);l.reload||(l.preload_code===X.viewport&&n.observe(s),l.preload_code===X.eager&&Ae(o))}}V.add(a),a()}function M(e,t){if(e instanceof te)return e.body;const r=ie(e),n=ir(e);return E.hooks.handleError({error:e,event:t,status:r,message:n})??{message:n}}function Ke(e,t){pr(()=>(e.add(t),()=>{e.delete(t)}))}function xr(e){Ke(V,e)}function Dr(e){Ke($e,e)}function Cr(e){Ke(lt,e)}function Br(e,t={}){return e=new URL(me(e)),e.origin!==Ne?Promise.reject(new Error("goto: invalid URL")):qe(e,t,0)}function Sr(e){if(typeof e=="function")le.push(e);else{const{href:t}=new URL(e,location.href);le.push(r=>r.href===t)}}function Mr(){return re=!0,yr()}function $r(e,t){const r={[B]:A,[Y]:R,[nt]:I.url.href,[je]:t};history.replaceState(r,"",me(e)),I.state=t,ge.$set({page:_r(()=>we(I))})}function Ir(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Qe(),!ee){const n=Ge(g,void 0,null,"leave"),i={...n.navigation,cancel:()=>{r=!0,n.reject(new Error("navigation cancelled"))}};$e.forEach(a=>a(i))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Qe()}),navigator.connection?.saveData||Ar(),N.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=rt(t.composedPath()[0],N);if(!r)return;const{url:n,external:i,target:a,download:s}=Ie(r,T,E.hash);if(!n)return;if(a==="_parent"||a==="_top"){if(window.parent!==window)return}else if(a&&a!=="_self")return;const o=oe(r);if(!(r instanceof SVGAElement)&&n.protocol!==location.protocol&&!(n.protocol==="https:"||n.protocol==="http:")||s)return;const[f,l]=(E.hash?n.hash.replace(/^#/,""):n.href).split("#"),h=f===be(location);if(i||o.reload&&(!h||!l)){_t({url:n,type:"link",event:t})?ee=!0:t.preventDefault();return}if(l!==void 0&&h){const[,d]=g.url.href.split("#");if(d===l){if(t.preventDefault(),l===""||l==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=r.ownerDocument.getElementById(decodeURIComponent(l));u&&(u.scrollIntoView(),u.focus())}return}if(W=!0,Be(A),e(n),!o.replace_state)return;W=!1}t.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),await H({type:"link",url:n,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??n.href===location.href,event:t})}),N.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),n=t.submitter;if((n?.formTarget||r.target)==="_blank"||(n?.formMethod||r.method)!=="get")return;const s=new URL(n?.hasAttribute("formaction")&&n?.formAction||r.action);if(Oe(s,T,!1))return;const o=t.target,c=oe(o);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(o,n);s.search=new URLSearchParams(f).toString(),H({type:"form",url:s,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??s.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ue){if(t.state?.[B]){const r=t.state[B];if(U={},r===A)return;const n=D[r],i=t.state[je]??{},a=new URL(t.state[nt]??location.href),s=t.state[Y],o=g.url?be(location)===be(g.url):!1;if(s===R&&(ft||o)){i!==I.state&&(I.state=i),e(a),D[A]=$(),n&&scrollTo(n.x,n.y),A=r;return}const f=r-A;await H({type:"popstate",url:a,popped:{state:i,scroll:n,delta:f},accept:()=>{A=r,R=s},block:()=>{history.go(-f)},nav_token:U,event:t})}else if(!W){const r=new URL(location.href);e(r),E.hash&&location.reload()}}}),addEventListener("hashchange",()=>{W&&(W=!1,history.replaceState({...history.state,[B]:++A,[Y]:R},"",location.href))});for(const t of document.querySelectorAll("link"))mr.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&x.navigating.set(Se.current=null)});function e(t){g.url=I.url=t,x.page.set(we(I)),x.page.notify()}}async function Rr(e,{status:t=200,error:r,node_ids:n,params:i,route:a,server_route:s,data:o,form:c}){Fe=!0;const f=new URL(location.href);let l;({params:i={},route:a={id:null}}=await ne(f,!1)||{}),l=Me.find(({id:u})=>u===a.id);let h,d=!0;try{const u=n.map(async(y,_)=>{const m=o[_];return m?.uses&&(m.uses=yt(m.uses)),Ve({loader:E.nodes[y],url:f,params:i,route:a,parent:async()=>{const P={};for(let w=0;w<_;w+=1)Object.assign(P,(await u[w]).data);return P},server_data_node:He(m)})}),p=await Promise.all(u);if(l){const y=l.layouts;for(let _=0;_<y.length;_++)y[_]||p.splice(_,0,void 0)}h=await pe({url:f,params:i,branch:p,status:t,error:r,errors:l?.errors,form:c,route:l??null})}catch(u){if(u instanceof De)return await K(new URL(u.location,location.href));h=await ye({status:ie(u),error:await M(u,{url:f,params:i,route:a}),url:f,route:a}),e.textContent="",d=!1}h&&(h.props.page&&(h.props.page.state={}),await ht(h,e,d))}async function gt(e,t){const r=new URL(e);r.pathname=fr(e.pathname),e.pathname.endsWith("/")&&r.searchParams.append(sr,"1"),r.searchParams.append(or,t.map(a=>a?"1":"0").join(""));const n=window.fetch,i=await n(r.href,{});if(!i.ok){let a;throw i.headers.get("content-type")?.includes("application/json")?a=await i.json():i.status===404?a="Not Found":i.status===500&&(a="Internal Error"),new te(i.status,a)}return new Promise((a,s)=>{Pr(a,i).catch(s)})}async function Pr(e,t){const r=t.body.getReader(),n=new Map;function i(a){return nr(a,{...E.decoders,Promise:s=>new Promise((o,c)=>{n.set(s,{fulfil:o,reject:c})})})}for await(const a of hr(r)){if(a.type==="redirect")return e(a);if(a.type==="data")a.nodes?.forEach(s=>{s?.type==="data"&&(s.uses=yt(s.uses),s.data=i(s.data))}),e(a);else if(a.type==="chunk"){const{id:s,data:o,error:c}=a,f=n.get(s);n.delete(s),c?f.reject(i(c)):f.fulfil(i(o))}}}function yt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ue=!1;function Lr(e,t=!0){const r=document.querySelector("[autofocus]");if(r)r.focus();else{const n=wt(e);if(n&&document.getElementById(n)){const{x:a,y:s}=$();setTimeout(()=>{const o=history.state;Ue=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(o,"",e),t&&scrollTo(a,s),Ue=!1})}else{const a=document.body,s=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),s!==null?a.setAttribute("tabindex",s):a.removeAttribute("tabindex")}const i=getSelection();if(i&&i.type!=="None"){const a=[];for(let s=0;s<i.rangeCount;s+=1)a.push(i.getRangeAt(s));setTimeout(()=>{if(i.rangeCount===a.length){for(let s=0;s<i.rangeCount;s+=1){const o=a[s],c=i.getRangeAt(s);if(o.commonAncestorContainer!==c.commonAncestorContainer||o.startContainer!==c.startContainer||o.endContainer!==c.endContainer||o.startOffset!==c.startOffset||o.endOffset!==c.endOffset)return}i.removeAllRanges()}})}}}function Ge(e,t,r,n,i=null){let a,s;const o=new Promise((f,l)=>{a=f,s=l});return o.catch(O),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:$()},to:r&&{params:t?.params??null,route:{id:t?.route?.id??null},url:r,scroll:i},willUnload:!t,type:n,complete:o},fulfil:a,reject:s}}function we(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Tr(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function wt(e){let t;if(E.hash){const[,,r]=e.hash.split("#",3);t=r??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{xr as a,Dr as b,Br as g,Mr as i,Cr as o,$r as r,Nr as s};