@chrisjowen/wheelhouse 0.24.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (839) hide show
  1. package/build/client/_app/immutable/assets/0.Bi7wbObi.css +1 -0
  2. package/build/client/_app/immutable/assets/0.Bi7wbObi.css.br +0 -0
  3. package/build/client/_app/immutable/assets/0.Bi7wbObi.css.gz +0 -0
  4. package/build/client/_app/immutable/chunks/B7bbsuTl.js +1 -0
  5. package/build/client/_app/immutable/chunks/B7bbsuTl.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/B7bbsuTl.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/BUNaAdFX.js +1 -0
  8. package/build/client/_app/immutable/chunks/BUNaAdFX.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/BUNaAdFX.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/BXWkikJt.js +8 -0
  11. package/build/client/_app/immutable/chunks/BXWkikJt.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/BXWkikJt.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/BqfDFJcB.js +2 -0
  14. package/build/client/_app/immutable/chunks/BqfDFJcB.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/BqfDFJcB.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/C0JshGmD.js +3 -0
  17. package/build/client/_app/immutable/chunks/C0JshGmD.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/C0JshGmD.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/CDKhNJSK.js +3 -0
  20. package/build/client/_app/immutable/chunks/CDKhNJSK.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/CDKhNJSK.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/CTCyjBcB.js +7 -0
  23. package/build/client/_app/immutable/chunks/CTCyjBcB.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/CTCyjBcB.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/CcHD_KH8.js +6 -0
  26. package/build/client/_app/immutable/chunks/CcHD_KH8.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/CcHD_KH8.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/CtYw9Aiz.js +5 -0
  29. package/build/client/_app/immutable/chunks/CtYw9Aiz.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/CtYw9Aiz.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/Cv-TUPtV.js +3 -0
  32. package/build/client/_app/immutable/chunks/Cv-TUPtV.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/Cv-TUPtV.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/D9kvhYgA.js +2 -0
  35. package/build/client/_app/immutable/chunks/D9kvhYgA.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/D9kvhYgA.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/DAJm78bI.js +1 -0
  38. package/build/client/_app/immutable/chunks/DAJm78bI.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/DAJm78bI.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/DO7S-a12.js +7 -0
  41. package/build/client/_app/immutable/chunks/DO7S-a12.js.br +0 -0
  42. package/build/client/_app/immutable/chunks/DO7S-a12.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/DUyfEzYn.js +2 -0
  44. package/build/client/_app/immutable/chunks/DUyfEzYn.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/DUyfEzYn.js.gz +0 -0
  46. package/build/client/_app/immutable/chunks/DVltcUYh.js +1 -0
  47. package/build/client/_app/immutable/chunks/DVltcUYh.js.br +0 -0
  48. package/build/client/_app/immutable/chunks/DVltcUYh.js.gz +0 -0
  49. package/build/client/_app/immutable/chunks/DhZcqaY_.js +1 -0
  50. package/build/client/_app/immutable/chunks/DhZcqaY_.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/DhZcqaY_.js.gz +0 -0
  52. package/build/client/_app/immutable/chunks/DhdrUn_f.js +1 -0
  53. package/build/client/_app/immutable/chunks/DhdrUn_f.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/DhdrUn_f.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/DotKSDx1.js +4 -0
  56. package/build/client/_app/immutable/chunks/DotKSDx1.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/DotKSDx1.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/Dum30Kwq.js +3 -0
  59. package/build/client/_app/immutable/chunks/Dum30Kwq.js.br +0 -0
  60. package/build/client/_app/immutable/chunks/Dum30Kwq.js.gz +0 -0
  61. package/build/client/_app/immutable/chunks/HjHUkJwY.js +1 -0
  62. package/build/client/_app/immutable/chunks/HjHUkJwY.js.br +0 -0
  63. package/build/client/_app/immutable/chunks/HjHUkJwY.js.gz +0 -0
  64. package/build/client/_app/immutable/chunks/I_-yJuBL.js +1 -0
  65. package/build/client/_app/immutable/chunks/I_-yJuBL.js.br +0 -0
  66. package/build/client/_app/immutable/chunks/I_-yJuBL.js.gz +0 -0
  67. package/build/client/_app/immutable/chunks/Kz2E8r37.js +1 -0
  68. package/build/client/_app/immutable/chunks/Kz2E8r37.js.br +1 -0
  69. package/build/client/_app/immutable/chunks/Kz2E8r37.js.gz +0 -0
  70. package/build/client/_app/immutable/chunks/N8Gha39e.js +1 -0
  71. package/build/client/_app/immutable/chunks/N8Gha39e.js.br +0 -0
  72. package/build/client/_app/immutable/chunks/N8Gha39e.js.gz +0 -0
  73. package/build/client/_app/immutable/chunks/RTsEYL93.js +1 -0
  74. package/build/client/_app/immutable/chunks/RTsEYL93.js.br +0 -0
  75. package/build/client/_app/immutable/chunks/RTsEYL93.js.gz +0 -0
  76. package/build/client/_app/immutable/chunks/T9AsXuo8.js +1 -0
  77. package/build/client/_app/immutable/chunks/T9AsXuo8.js.br +0 -0
  78. package/build/client/_app/immutable/chunks/T9AsXuo8.js.gz +0 -0
  79. package/build/client/_app/immutable/chunks/XLpt2pHa.js +1 -0
  80. package/build/client/_app/immutable/chunks/XLpt2pHa.js.br +0 -0
  81. package/build/client/_app/immutable/chunks/XLpt2pHa.js.gz +0 -0
  82. package/build/client/_app/immutable/entry/app.CI9gKeRy.js +2 -0
  83. package/build/client/_app/immutable/entry/app.CI9gKeRy.js.br +0 -0
  84. package/build/client/_app/immutable/entry/app.CI9gKeRy.js.gz +0 -0
  85. package/build/client/_app/immutable/entry/start.B0Wt4zHW.js +1 -0
  86. package/build/client/_app/immutable/entry/start.B0Wt4zHW.js.br +0 -0
  87. package/build/client/_app/immutable/entry/start.B0Wt4zHW.js.gz +0 -0
  88. package/build/client/_app/immutable/nodes/0.SOXcKt4H.js +9 -0
  89. package/build/client/_app/immutable/nodes/0.SOXcKt4H.js.br +0 -0
  90. package/build/client/_app/immutable/nodes/0.SOXcKt4H.js.gz +0 -0
  91. package/build/client/_app/immutable/nodes/1.a-BZXuZt.js +1 -0
  92. package/build/client/_app/immutable/nodes/1.a-BZXuZt.js.br +0 -0
  93. package/build/client/_app/immutable/nodes/1.a-BZXuZt.js.gz +0 -0
  94. package/build/client/_app/immutable/nodes/10.DLnyC5NT.js +10 -0
  95. package/build/client/_app/immutable/nodes/10.DLnyC5NT.js.br +0 -0
  96. package/build/client/_app/immutable/nodes/10.DLnyC5NT.js.gz +0 -0
  97. package/build/client/_app/immutable/nodes/11.4PSwlKy0.js +9 -0
  98. package/build/client/_app/immutable/nodes/11.4PSwlKy0.js.br +0 -0
  99. package/build/client/_app/immutable/nodes/11.4PSwlKy0.js.gz +0 -0
  100. package/build/client/_app/immutable/nodes/12.DgxAtSPR.js +3 -0
  101. package/build/client/_app/immutable/nodes/12.DgxAtSPR.js.br +0 -0
  102. package/build/client/_app/immutable/nodes/12.DgxAtSPR.js.gz +0 -0
  103. package/build/client/_app/immutable/nodes/13._Ol8NYtQ.js +2 -0
  104. package/build/client/_app/immutable/nodes/13._Ol8NYtQ.js.br +0 -0
  105. package/build/client/_app/immutable/nodes/13._Ol8NYtQ.js.gz +0 -0
  106. package/build/client/_app/immutable/nodes/14.DoXQTncs.js +6 -0
  107. package/build/client/_app/immutable/nodes/14.DoXQTncs.js.br +0 -0
  108. package/build/client/_app/immutable/nodes/14.DoXQTncs.js.gz +0 -0
  109. package/build/client/_app/immutable/nodes/15.5DEbDyax.js +1 -0
  110. package/build/client/_app/immutable/nodes/15.5DEbDyax.js.br +0 -0
  111. package/build/client/_app/immutable/nodes/15.5DEbDyax.js.gz +0 -0
  112. package/build/client/_app/immutable/nodes/16.SQWDXY2I.js +10 -0
  113. package/build/client/_app/immutable/nodes/16.SQWDXY2I.js.br +0 -0
  114. package/build/client/_app/immutable/nodes/16.SQWDXY2I.js.gz +0 -0
  115. package/build/client/_app/immutable/nodes/17.CasB-8ln.js +1 -0
  116. package/build/client/_app/immutable/nodes/17.CasB-8ln.js.br +0 -0
  117. package/build/client/_app/immutable/nodes/17.CasB-8ln.js.gz +0 -0
  118. package/build/client/_app/immutable/nodes/18.BAczHbDD.js +3 -0
  119. package/build/client/_app/immutable/nodes/18.BAczHbDD.js.br +0 -0
  120. package/build/client/_app/immutable/nodes/18.BAczHbDD.js.gz +0 -0
  121. package/build/client/_app/immutable/nodes/19.DXAMDWal.js +1 -0
  122. package/build/client/_app/immutable/nodes/19.DXAMDWal.js.br +0 -0
  123. package/build/client/_app/immutable/nodes/19.DXAMDWal.js.gz +0 -0
  124. package/build/client/_app/immutable/nodes/2.ynCXvpKT.js +28 -0
  125. package/build/client/_app/immutable/nodes/2.ynCXvpKT.js.br +0 -0
  126. package/build/client/_app/immutable/nodes/2.ynCXvpKT.js.gz +0 -0
  127. package/build/client/_app/immutable/nodes/20.HXzvTavr.js +14 -0
  128. package/build/client/_app/immutable/nodes/20.HXzvTavr.js.br +0 -0
  129. package/build/client/_app/immutable/nodes/20.HXzvTavr.js.gz +0 -0
  130. package/build/client/_app/immutable/nodes/21.BtJKIHjo.js +150 -0
  131. package/build/client/_app/immutable/nodes/21.BtJKIHjo.js.br +0 -0
  132. package/build/client/_app/immutable/nodes/21.BtJKIHjo.js.gz +0 -0
  133. package/build/client/_app/immutable/nodes/22.NI4OHi3d.js +3 -0
  134. package/build/client/_app/immutable/nodes/22.NI4OHi3d.js.br +0 -0
  135. package/build/client/_app/immutable/nodes/22.NI4OHi3d.js.gz +0 -0
  136. package/build/client/_app/immutable/nodes/23.tSDk3C1r.js +2 -0
  137. package/build/client/_app/immutable/nodes/23.tSDk3C1r.js.br +0 -0
  138. package/build/client/_app/immutable/nodes/23.tSDk3C1r.js.gz +0 -0
  139. package/build/client/_app/immutable/nodes/24.B5Tab48v.js +25 -0
  140. package/build/client/_app/immutable/nodes/24.B5Tab48v.js.br +0 -0
  141. package/build/client/_app/immutable/nodes/24.B5Tab48v.js.gz +0 -0
  142. package/build/client/_app/immutable/nodes/25.DtjHBqgn.js +5 -0
  143. package/build/client/_app/immutable/nodes/25.DtjHBqgn.js.br +0 -0
  144. package/build/client/_app/immutable/nodes/25.DtjHBqgn.js.gz +0 -0
  145. package/build/client/_app/immutable/nodes/26.FOz7fg2Q.js +18 -0
  146. package/build/client/_app/immutable/nodes/26.FOz7fg2Q.js.br +0 -0
  147. package/build/client/_app/immutable/nodes/26.FOz7fg2Q.js.gz +0 -0
  148. package/build/client/_app/immutable/nodes/28.Ddrbfwzj.js +4 -0
  149. package/build/client/_app/immutable/nodes/28.Ddrbfwzj.js.br +0 -0
  150. package/build/client/_app/immutable/nodes/28.Ddrbfwzj.js.gz +0 -0
  151. package/build/client/_app/immutable/nodes/3.uurBYeAR.js +2 -0
  152. package/build/client/_app/immutable/nodes/3.uurBYeAR.js.br +0 -0
  153. package/build/client/_app/immutable/nodes/3.uurBYeAR.js.gz +0 -0
  154. package/build/client/_app/immutable/nodes/30.BkVqi32a.js +6 -0
  155. package/build/client/_app/immutable/nodes/30.BkVqi32a.js.br +0 -0
  156. package/build/client/_app/immutable/nodes/30.BkVqi32a.js.gz +0 -0
  157. package/build/client/_app/immutable/nodes/31.BpCe4YZd.js +8 -0
  158. package/build/client/_app/immutable/nodes/31.BpCe4YZd.js.br +0 -0
  159. package/build/client/_app/immutable/nodes/31.BpCe4YZd.js.gz +0 -0
  160. package/build/client/_app/immutable/nodes/32.B0-J2UfW.js +2 -0
  161. package/build/client/_app/immutable/nodes/32.B0-J2UfW.js.br +0 -0
  162. package/build/client/_app/immutable/nodes/32.B0-J2UfW.js.gz +0 -0
  163. package/build/client/_app/immutable/nodes/33._Eb7SINu.js +5 -0
  164. package/build/client/_app/immutable/nodes/33._Eb7SINu.js.br +0 -0
  165. package/build/client/_app/immutable/nodes/33._Eb7SINu.js.gz +0 -0
  166. package/build/client/_app/immutable/nodes/34.BFbXwyzz.js +4 -0
  167. package/build/client/_app/immutable/nodes/34.BFbXwyzz.js.br +0 -0
  168. package/build/client/_app/immutable/nodes/34.BFbXwyzz.js.gz +0 -0
  169. package/build/client/_app/immutable/nodes/35.DWcXHizu.js +3 -0
  170. package/build/client/_app/immutable/nodes/35.DWcXHizu.js.br +0 -0
  171. package/build/client/_app/immutable/nodes/35.DWcXHizu.js.gz +0 -0
  172. package/build/client/_app/immutable/nodes/36.fbI8i5v7.js +7 -0
  173. package/build/client/_app/immutable/nodes/36.fbI8i5v7.js.br +0 -0
  174. package/build/client/_app/immutable/nodes/36.fbI8i5v7.js.gz +0 -0
  175. package/build/client/_app/immutable/nodes/37.CIYgEXVz.js +2 -0
  176. package/build/client/_app/immutable/nodes/37.CIYgEXVz.js.br +0 -0
  177. package/build/client/_app/immutable/nodes/37.CIYgEXVz.js.gz +0 -0
  178. package/build/client/_app/immutable/nodes/38.BOJ3vJzU.js +4 -0
  179. package/build/client/_app/immutable/nodes/38.BOJ3vJzU.js.br +0 -0
  180. package/build/client/_app/immutable/nodes/38.BOJ3vJzU.js.gz +0 -0
  181. package/build/client/_app/immutable/nodes/39.aAwz5CPN.js +7 -0
  182. package/build/client/_app/immutable/nodes/39.aAwz5CPN.js.br +0 -0
  183. package/build/client/_app/immutable/nodes/39.aAwz5CPN.js.gz +0 -0
  184. package/build/client/_app/immutable/nodes/4.jGQeqVXr.js +5 -0
  185. package/build/client/_app/immutable/nodes/4.jGQeqVXr.js.br +0 -0
  186. package/build/client/_app/immutable/nodes/4.jGQeqVXr.js.gz +0 -0
  187. package/build/client/_app/immutable/nodes/40.CvHYslu6.js +6 -0
  188. package/build/client/_app/immutable/nodes/40.CvHYslu6.js.br +0 -0
  189. package/build/client/_app/immutable/nodes/40.CvHYslu6.js.gz +0 -0
  190. package/build/client/_app/immutable/nodes/41.CMPN_2XH.js +23 -0
  191. package/build/client/_app/immutable/nodes/41.CMPN_2XH.js.br +0 -0
  192. package/build/client/_app/immutable/nodes/41.CMPN_2XH.js.gz +0 -0
  193. package/build/client/_app/immutable/nodes/42.BYpn2R-a.js +1 -0
  194. package/build/client/_app/immutable/nodes/42.BYpn2R-a.js.br +0 -0
  195. package/build/client/_app/immutable/nodes/42.BYpn2R-a.js.gz +0 -0
  196. package/build/client/_app/immutable/nodes/44.Bj9vohCn.js +6 -0
  197. package/build/client/_app/immutable/nodes/44.Bj9vohCn.js.br +0 -0
  198. package/build/client/_app/immutable/nodes/44.Bj9vohCn.js.gz +0 -0
  199. package/build/client/_app/immutable/nodes/5.DClLUmjz.js +1 -0
  200. package/build/client/_app/immutable/nodes/5.DClLUmjz.js.br +0 -0
  201. package/build/client/_app/immutable/nodes/5.DClLUmjz.js.gz +0 -0
  202. package/build/client/_app/immutable/nodes/6.DszoCJEl.js +6 -0
  203. package/build/client/_app/immutable/nodes/6.DszoCJEl.js.br +0 -0
  204. package/build/client/_app/immutable/nodes/6.DszoCJEl.js.gz +0 -0
  205. package/build/client/_app/immutable/nodes/9.B_o37ZWA.js +3 -0
  206. package/build/client/_app/immutable/nodes/9.B_o37ZWA.js.br +0 -0
  207. package/build/client/_app/immutable/nodes/9.B_o37ZWA.js.gz +0 -0
  208. package/build/client/_app/version.json +1 -1
  209. package/build/client/_app/version.json.br +0 -0
  210. package/build/client/_app/version.json.gz +0 -0
  211. package/build/handler.js +4 -4
  212. package/build/index.js +4 -4
  213. package/build/server/chunks/chunks/ResizableRail.js-D0idmMXk.js +708 -0
  214. package/build/server/chunks/chunks/TaskView.js-d4_0kZ-e.js +3029 -0
  215. package/build/server/chunks/chunks/detail.js-B2R6Znek.js +149 -0
  216. package/build/server/chunks/chunks/features.js-BhXyRT_1.js +181 -0
  217. package/build/server/chunks/chunks/feedback.js-DthXPMki.js +67 -0
  218. package/build/server/chunks/chunks/internal.js-CEWzBR2Y.js +151 -0
  219. package/build/server/chunks/chunks/livereview.js-FqdWoyiJ.js +261 -0
  220. package/build/server/chunks/chunks/marketplace-service.js-DSxw-XPY.js +557 -0
  221. package/build/server/chunks/chunks/package.js-B7nnL29I.js +160 -0
  222. package/build/server/chunks/chunks/page.js-DCiJruq9.js +13 -0
  223. package/build/server/chunks/chunks/previewhelper.js-Cz95M8xJ.js +246 -0
  224. package/build/server/chunks/chunks/previewhelper2.js-Dokz3Re6.js +214 -0
  225. package/build/server/chunks/chunks/remote.js-TLEFH8L2.js +40 -0
  226. package/build/server/chunks/chunks/repo.js-DXPu1jYS.js +33 -0
  227. package/build/server/chunks/chunks/runtime.js-BcdjdUwr.js +26530 -0
  228. package/build/server/chunks/chunks/scribe.js-D30sP1z9.js +1591 -0
  229. package/build/server/chunks/chunks/service.js--01O07Iu.js +1339 -0
  230. package/build/server/chunks/chunks/service2.js-CVR-BsF0.js +835 -0
  231. package/build/server/chunks/chunks/service3.js-Dx4TYIQa.js +234 -0
  232. package/build/server/chunks/chunks/sessions.js-BD6cxB3X.js +534 -0
  233. package/build/server/chunks/chunks/settings.js-t2yY6DMc.js +379 -0
  234. package/build/server/chunks/chunks/starter.js-CjOwkL4s.js +400 -0
  235. package/build/server/chunks/chunks/store.js-CBYhaqF1.js +334 -0
  236. package/build/server/chunks/chunks/tmux.js-DTQKbm92.js +504 -0
  237. package/build/server/chunks/chunks/tools.js-C_Xs95j-.js +156 -0
  238. package/build/server/chunks/chunks/uploads.js-ZX2kg51N.js +107 -0
  239. package/build/server/chunks/chunks/view.js-D02gwJlT.js +76 -0
  240. package/build/server/chunks/chunks/volume-2.js-BdrATtWy.js +24 -0
  241. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-DCqY_Bda.js +116 -0
  242. package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-Dm04PmD_.js +112 -0
  243. package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js--TGJX2z9.js +63 -0
  244. package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-B9JGOQSd.js +79 -0
  245. package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-CgPkuD4I.js +83 -0
  246. package/build/server/chunks/entries/endpoints/api/documents/_server.ts.js-BkQr7zlk.js +68 -0
  247. package/build/server/chunks/entries/endpoints/api/documents/briefing/_server.ts.js-JXf9tr9y.js +73 -0
  248. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-DNlZzPAi.js +158 -0
  249. package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-C9jkqC7K.js +57 -0
  250. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-D51z27Qh.js +75 -0
  251. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-UZLIIsLh.js +111 -0
  252. package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-QBAtq3e4.js +87 -0
  253. package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-CMW5VeA1.js +77 -0
  254. package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-CYEPWDq9.js +70 -0
  255. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-Dzw8Aq7W.js +70 -0
  256. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-H1O8SpZj.js +71 -0
  257. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-C3UIEKwW.js +77 -0
  258. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-BF0ddpon.js +70 -0
  259. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-CQDDUPQH.js +119 -0
  260. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-Bj6fzAhI.js +80 -0
  261. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-KeBdme5-.js +91 -0
  262. package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-DWyorNkc.js +79 -0
  263. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-DmocVrgJ.js +70 -0
  264. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-CSSUNhkV.js +32 -0
  265. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-yZHelvlp.js +40 -0
  266. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-B95RBsOY.js +62 -0
  267. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-BuCZ0nAz.js +62 -0
  268. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-CmiCqFGa.js +89 -0
  269. package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-CfCsmFek.js +87 -0
  270. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-DMj7O_wm.js +80 -0
  271. package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-CCxzIYPx.js +172 -0
  272. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-D_LWxNH8.js +62 -0
  273. package/build/server/chunks/entries/endpoints/api/library/doc/_server.ts.js-DHCwcT09.js +71 -0
  274. package/build/server/chunks/entries/endpoints/api/library/promote/_server.ts.js-Dr83B5jC.js +72 -0
  275. package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-BFz64-UD.js +91 -0
  276. package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-AI3xP87_.js +72 -0
  277. package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-CB9SAMkD.js +27 -0
  278. package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-DaB0pK-G.js +30 -0
  279. package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-C-RZ2hfW.js +105 -0
  280. package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-Ct15HbWb.js +74 -0
  281. package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-Kp-td74e.js +122 -0
  282. package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-C4Er7ziD.js +76 -0
  283. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-D2CWeQx9.js +97 -0
  284. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-Cxxjkcea.js +86 -0
  285. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-BpSkuaqs.js +81 -0
  286. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-DhqoeMSp.js +78 -0
  287. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-B978UeYH.js +27 -0
  288. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-BjYkraIy.js +85 -0
  289. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-BSm0fyqO.js +39 -0
  290. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-DSZfo5DT.js +62 -0
  291. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-Bhlu3rq6.js +39 -0
  292. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-Bc6_vVMA.js +42 -0
  293. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-q71bHTAI.js +67 -0
  294. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-BdhHl9q5.js +76 -0
  295. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-BbF_qpRh.js +73 -0
  296. package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-CVHc5ryW.js +77 -0
  297. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-B7KmzEu4.js +27 -0
  298. package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-ILPrSxNM.js +86 -0
  299. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-DRzuvCjv.js +67 -0
  300. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-BYotWMDG.js +76 -0
  301. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-CXXw_967.js +88 -0
  302. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-5H8AVdf3.js +75 -0
  303. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js--_mniW0J.js +98 -0
  304. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-DV5voQBw.js +81 -0
  305. package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-6xFnfO31.js +476 -0
  306. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-DELGIKLB.js +92 -0
  307. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-DrkDRFum.js +71 -0
  308. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-oOrlu6PL.js +81 -0
  309. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-BmE51iKW.js +141 -0
  310. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-CJJOCfAf.js +70 -0
  311. package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-BE-v4ctp.js +84 -0
  312. package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-BSAksOTw.js +70 -0
  313. package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-9jtQze4M.js +73 -0
  314. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-BEbfK5Sb.js +67 -0
  315. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-CC70KheS.js +86 -0
  316. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-BPOVTSNr.js +113 -0
  317. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-B0Ce7-kQ.js +79 -0
  318. package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-mhQYv_sd.js +108 -0
  319. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-QMmOjqmI.js +127 -0
  320. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-IfH0F77C.js +82 -0
  321. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-CLPXGlPH.js +84 -0
  322. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-CIc1KsPd.js +85 -0
  323. package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-G6xuTFYk.js +24 -0
  324. package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-ChS6Cl9I.js +31 -0
  325. package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-ylJaIr71.js +33 -0
  326. package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-iQF5ttIM.js +97 -0
  327. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-BW9O_FlY.js +40 -0
  328. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-DTE3VOwI.js +27 -0
  329. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-s26vq0JS.js +27 -0
  330. package/build/server/chunks/entries/endpoints/library/_shelf_/_folder_/_slug_/files/_...path_/_server.ts.js-B8s3BS7I.js +78 -0
  331. package/build/server/chunks/entries/endpoints/r/_task_/_server.ts.js-BsiL8VVP.js +68 -0
  332. package/build/server/chunks/entries/endpoints/records/_project_/_task_/files/_...path_/_server.ts.js-Co28KCNH.js +75 -0
  333. package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-syWL6Knw.js +87 -0
  334. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-BI2EVdsb.js +66 -0
  335. package/build/server/chunks/entries/hooks.server.js-B4zt2gMT.js +108 -0
  336. package/build/server/chunks/entries/pages/_layout.server.ts.js-BBZSb3zI.js +55 -0
  337. package/build/server/chunks/entries/pages/_layout.svelte.js-CkPHJ6iw.js +6023 -0
  338. package/build/server/chunks/entries/pages/_page.server.ts.js-BS44Y_4B.js +16 -0
  339. package/build/server/chunks/entries/pages/_page.svelte.js-Bp57ktWC.js +4907 -0
  340. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-BfjjhUph.js +14 -0
  341. package/build/server/chunks/entries/pages/deck/_page.server.ts.js-Den-42vR.js +16 -0
  342. package/build/server/chunks/entries/pages/documents/_page.server.ts.js-CI8dk87B.js +15 -0
  343. package/build/server/chunks/entries/pages/files/_page.server.ts.js-BgARM8mm.js +17 -0
  344. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-HtDc07oV.js +11 -0
  345. package/build/server/chunks/entries/pages/health/_page.server.ts.js-QHRjb2mW.js +16 -0
  346. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-U6iyhhAi.js +18 -0
  347. package/build/server/chunks/entries/pages/library/_shelf_/_folder_/_slug_/_page.server.ts.js-Ct7X9UNn.js +18 -0
  348. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-CSy0Mcfk.js +16 -0
  349. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-OcqAZPqs.js +23 -0
  350. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-D1OSHb0S.js +21 -0
  351. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-DRtkOAgr.js +27 -0
  352. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-Br-tOc7a.js +15 -0
  353. package/build/server/chunks/entries/pages/prototypes/_project_/_task_/_name_/_page.server.ts.js-C3qIWXBy.js +25 -0
  354. package/build/server/chunks/entries/pages/records/_project_/_task_/_page.server.ts.js-Ce5mHdpe.js +37 -0
  355. package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-KkohEbGV.js +11 -0
  356. package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-C5r6-ShC.js +13 -0
  357. package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DGKwb104.js +12 -0
  358. package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-B-xlxpbm.js +18 -0
  359. package/build/server/chunks/entries/pages/settings/cloud/_page.server.ts.js-BDkMLIf6.js +15 -0
  360. package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-C3rAOzae.js +19 -0
  361. package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-BA-tWOES.js +16 -0
  362. package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-DRjZBOes.js +15 -0
  363. package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-BaJ2W22V.js +797 -0
  364. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-DssDgFRV.js +11 -0
  365. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-niIXQvkx.js +19 -0
  366. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-CbTQXe63.js +17 -0
  367. package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-BYvOjL40.js +11 -0
  368. package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-BAzQbxTI.js +11 -0
  369. package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-C_PZ3K62.js +15 -0
  370. package/build/server/chunks/entries/pages/settings/voice/_page.svelte.js-CPtKfR3g.js +161 -0
  371. package/build/server/chunks/entries/pages/setup/_page.server.ts.js-Bt5BHnIn.js +18 -0
  372. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-CBJ9UCxK.js +36 -0
  373. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Bz5xWZGZ.js +121 -0
  374. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-By1hYgOi.js +24 -0
  375. package/build/server/chunks/entries/pages/time/_page.server.ts.js-DJxWHuwd.js +11 -0
  376. package/build/server/chunks/handler-CXUepvBU.js +1474 -0
  377. package/build/server/chunks/index.js-BsOCKSNc.js +4296 -0
  378. package/build/server/chunks/manifest.js-CSOlQwBQ.js +1050 -0
  379. package/build/server/chunks/nodes/0.js-BA8rdf7S.js +69 -0
  380. package/build/server/chunks/nodes/1.js-CGDtM8Ha.js +9 -0
  381. package/build/server/chunks/nodes/10.js-dkuZj5-W.js +67 -0
  382. package/build/server/chunks/nodes/11.js-DNaVEa3x.js +69 -0
  383. package/build/server/chunks/nodes/12.js-VJOzmisQ.js +68 -0
  384. package/build/server/chunks/nodes/13.js-B-UNeeYa.js +69 -0
  385. package/build/server/chunks/nodes/14.js-DuWS_Hw5.js +12 -0
  386. package/build/server/chunks/nodes/15.js-lq3f_J6-.js +9 -0
  387. package/build/server/chunks/nodes/16.js-Ch2TluQr.js +9 -0
  388. package/build/server/chunks/nodes/17.js-BcBFGx5D.js +67 -0
  389. package/build/server/chunks/nodes/18.js-Dx5djvj3.js +70 -0
  390. package/build/server/chunks/nodes/19.js-C-Dv2UZU.js +68 -0
  391. package/build/server/chunks/nodes/2.js-Dlx5yqWh.js +67 -0
  392. package/build/server/chunks/nodes/20.js-Crt3vcuB.js +69 -0
  393. package/build/server/chunks/nodes/21.js-DTRw0wlf.js +68 -0
  394. package/build/server/chunks/nodes/22.js-avqPhTYl.js +69 -0
  395. package/build/server/chunks/nodes/23.js-RRrhs54q.js +69 -0
  396. package/build/server/chunks/nodes/24.js-BFk3mjXx.js +25 -0
  397. package/build/server/chunks/nodes/25.js-B2Rb1Za9.js +25 -0
  398. package/build/server/chunks/nodes/26.js-BT9wbGJs.js +9 -0
  399. package/build/server/chunks/nodes/27.js-rQgQSbRQ.js +25 -0
  400. package/build/server/chunks/nodes/28.js-CjbQNy9F.js +67 -0
  401. package/build/server/chunks/nodes/29.js-Cycdssqz.js +18 -0
  402. package/build/server/chunks/nodes/3.js-u47cGgVr.js +9 -0
  403. package/build/server/chunks/nodes/30.js-DS5CGoON.js +68 -0
  404. package/build/server/chunks/nodes/31.js-DM2poShY.js +67 -0
  405. package/build/server/chunks/nodes/32.js-DFy_JaX0.js +25 -0
  406. package/build/server/chunks/nodes/33.js-DJeaepHV.js +67 -0
  407. package/build/server/chunks/nodes/34.js-BZwX56gy.js +25 -0
  408. package/build/server/chunks/nodes/35.js-DYTAoBE6.js +22 -0
  409. package/build/server/chunks/nodes/36.js-BY3unmMW.js +67 -0
  410. package/build/server/chunks/nodes/37.js-m6ZzMMTc.js +70 -0
  411. package/build/server/chunks/nodes/38.js-B3Kp1AAS.js +69 -0
  412. package/build/server/chunks/nodes/39.js-BvYxNpMG.js +26 -0
  413. package/build/server/chunks/nodes/4.js-BDLWobmB.js +68 -0
  414. package/build/server/chunks/nodes/40.js-Dw8-O1g2.js +69 -0
  415. package/build/server/chunks/nodes/41.js-D7Ne71uc.js +71 -0
  416. package/build/server/chunks/nodes/42.js-Bsljzkwn.js +68 -0
  417. package/build/server/chunks/nodes/43.js-CKN-FZAM.js +68 -0
  418. package/build/server/chunks/nodes/44.js-DWOVsqNq.js +67 -0
  419. package/build/server/chunks/nodes/5.js-NuGLVKKK.js +67 -0
  420. package/build/server/chunks/nodes/6.js-B5PJm0c8.js +67 -0
  421. package/build/server/chunks/nodes/8.js-B72TpXrD.js +67 -0
  422. package/build/server/chunks/nodes/9.js-D2iYl_QK.js +14 -0
  423. package/dist/cli.js +1 -1
  424. package/dist/wh-vault.js +1 -1
  425. package/firstmate-extension/firstmate-extension.json +1 -1
  426. package/package.json +1 -1
  427. package/build/client/_app/immutable/assets/0.Dy2mS3Kw.css +0 -1
  428. package/build/client/_app/immutable/assets/0.Dy2mS3Kw.css.br +0 -0
  429. package/build/client/_app/immutable/assets/0.Dy2mS3Kw.css.gz +0 -0
  430. package/build/client/_app/immutable/chunks/BV08B4f2.js +0 -2
  431. package/build/client/_app/immutable/chunks/BV08B4f2.js.br +0 -0
  432. package/build/client/_app/immutable/chunks/BV08B4f2.js.gz +0 -0
  433. package/build/client/_app/immutable/chunks/BiW3is2c.js +0 -3
  434. package/build/client/_app/immutable/chunks/BiW3is2c.js.br +0 -0
  435. package/build/client/_app/immutable/chunks/BiW3is2c.js.gz +0 -0
  436. package/build/client/_app/immutable/chunks/BkAmMVsw.js +0 -1
  437. package/build/client/_app/immutable/chunks/BkAmMVsw.js.br +0 -0
  438. package/build/client/_app/immutable/chunks/BkAmMVsw.js.gz +0 -0
  439. package/build/client/_app/immutable/chunks/BlR6_nYR.js +0 -1
  440. package/build/client/_app/immutable/chunks/BlR6_nYR.js.br +0 -0
  441. package/build/client/_app/immutable/chunks/BlR6_nYR.js.gz +0 -0
  442. package/build/client/_app/immutable/chunks/BqTq4oc1.js +0 -3
  443. package/build/client/_app/immutable/chunks/BqTq4oc1.js.br +0 -0
  444. package/build/client/_app/immutable/chunks/BqTq4oc1.js.gz +0 -0
  445. package/build/client/_app/immutable/chunks/BsJW6yGO.js +0 -6
  446. package/build/client/_app/immutable/chunks/BsJW6yGO.js.br +0 -0
  447. package/build/client/_app/immutable/chunks/BsJW6yGO.js.gz +0 -0
  448. package/build/client/_app/immutable/chunks/C4f5KkA2.js +0 -3
  449. package/build/client/_app/immutable/chunks/C4f5KkA2.js.br +0 -0
  450. package/build/client/_app/immutable/chunks/C4f5KkA2.js.gz +0 -0
  451. package/build/client/_app/immutable/chunks/CAaBUUji.js +0 -7
  452. package/build/client/_app/immutable/chunks/CAaBUUji.js.br +0 -0
  453. package/build/client/_app/immutable/chunks/CAaBUUji.js.gz +0 -0
  454. package/build/client/_app/immutable/chunks/CyKAWacA.js +0 -3
  455. package/build/client/_app/immutable/chunks/CyKAWacA.js.br +0 -0
  456. package/build/client/_app/immutable/chunks/CyKAWacA.js.gz +0 -0
  457. package/build/client/_app/immutable/chunks/D-IXMU2L.js +0 -7
  458. package/build/client/_app/immutable/chunks/D-IXMU2L.js.br +0 -0
  459. package/build/client/_app/immutable/chunks/D-IXMU2L.js.gz +0 -0
  460. package/build/client/_app/immutable/chunks/D0_SdZ1Y.js +0 -5
  461. package/build/client/_app/immutable/chunks/D0_SdZ1Y.js.br +0 -0
  462. package/build/client/_app/immutable/chunks/D0_SdZ1Y.js.gz +0 -0
  463. package/build/client/_app/immutable/chunks/D2UqGNPw.js +0 -4
  464. package/build/client/_app/immutable/chunks/D2UqGNPw.js.br +0 -0
  465. package/build/client/_app/immutable/chunks/D2UqGNPw.js.gz +0 -0
  466. package/build/client/_app/immutable/chunks/D64mTvaN.js +0 -1
  467. package/build/client/_app/immutable/chunks/D64mTvaN.js.br +0 -0
  468. package/build/client/_app/immutable/chunks/D64mTvaN.js.gz +0 -0
  469. package/build/client/_app/immutable/chunks/DK5gnzN6.js +0 -1
  470. package/build/client/_app/immutable/chunks/DK5gnzN6.js.br +0 -0
  471. package/build/client/_app/immutable/chunks/DK5gnzN6.js.gz +0 -0
  472. package/build/client/_app/immutable/chunks/DLdhxfs7.js +0 -1
  473. package/build/client/_app/immutable/chunks/DLdhxfs7.js.br +0 -0
  474. package/build/client/_app/immutable/chunks/DLdhxfs7.js.gz +0 -0
  475. package/build/client/_app/immutable/chunks/DSoS8iw8.js +0 -1
  476. package/build/client/_app/immutable/chunks/DSoS8iw8.js.br +0 -0
  477. package/build/client/_app/immutable/chunks/DSoS8iw8.js.gz +0 -0
  478. package/build/client/_app/immutable/chunks/DlAlt18J.js +0 -2
  479. package/build/client/_app/immutable/chunks/DlAlt18J.js.br +0 -0
  480. package/build/client/_app/immutable/chunks/DlAlt18J.js.gz +0 -0
  481. package/build/client/_app/immutable/chunks/DrAaxSl_.js +0 -1
  482. package/build/client/_app/immutable/chunks/DrAaxSl_.js.br +0 -0
  483. package/build/client/_app/immutable/chunks/DrAaxSl_.js.gz +0 -0
  484. package/build/client/_app/immutable/chunks/QOxfJswt.js +0 -1
  485. package/build/client/_app/immutable/chunks/QOxfJswt.js.br +0 -0
  486. package/build/client/_app/immutable/chunks/QOxfJswt.js.gz +0 -0
  487. package/build/client/_app/immutable/chunks/kNXqkaLy.js +0 -1
  488. package/build/client/_app/immutable/chunks/kNXqkaLy.js.br +0 -0
  489. package/build/client/_app/immutable/chunks/kNXqkaLy.js.gz +0 -0
  490. package/build/client/_app/immutable/chunks/qL93yOki.js +0 -1
  491. package/build/client/_app/immutable/chunks/qL93yOki.js.br +0 -0
  492. package/build/client/_app/immutable/chunks/qL93yOki.js.gz +0 -0
  493. package/build/client/_app/immutable/chunks/skcbA-fa.js +0 -8
  494. package/build/client/_app/immutable/chunks/skcbA-fa.js.br +0 -0
  495. package/build/client/_app/immutable/chunks/skcbA-fa.js.gz +0 -0
  496. package/build/client/_app/immutable/chunks/vyMQ5db-.js +0 -1
  497. package/build/client/_app/immutable/chunks/vyMQ5db-.js.br +0 -0
  498. package/build/client/_app/immutable/chunks/vyMQ5db-.js.gz +0 -0
  499. package/build/client/_app/immutable/chunks/xJ7m3_X4.js +0 -2
  500. package/build/client/_app/immutable/chunks/xJ7m3_X4.js.br +0 -0
  501. package/build/client/_app/immutable/chunks/xJ7m3_X4.js.gz +0 -0
  502. package/build/client/_app/immutable/chunks/xTuQT2it.js +0 -1
  503. package/build/client/_app/immutable/chunks/xTuQT2it.js.br +0 -3
  504. package/build/client/_app/immutable/chunks/xTuQT2it.js.gz +0 -0
  505. package/build/client/_app/immutable/entry/app.C_bqQknd.js +0 -2
  506. package/build/client/_app/immutable/entry/app.C_bqQknd.js.br +0 -0
  507. package/build/client/_app/immutable/entry/app.C_bqQknd.js.gz +0 -0
  508. package/build/client/_app/immutable/entry/start.-l6ByH4l.js +0 -1
  509. package/build/client/_app/immutable/entry/start.-l6ByH4l.js.br +0 -0
  510. package/build/client/_app/immutable/entry/start.-l6ByH4l.js.gz +0 -0
  511. package/build/client/_app/immutable/nodes/0.DL43MSrJ.js +0 -9
  512. package/build/client/_app/immutable/nodes/0.DL43MSrJ.js.br +0 -0
  513. package/build/client/_app/immutable/nodes/0.DL43MSrJ.js.gz +0 -0
  514. package/build/client/_app/immutable/nodes/1.CGFu7RhX.js +0 -1
  515. package/build/client/_app/immutable/nodes/1.CGFu7RhX.js.br +0 -0
  516. package/build/client/_app/immutable/nodes/1.CGFu7RhX.js.gz +0 -0
  517. package/build/client/_app/immutable/nodes/10.CY8IKTU1.js +0 -10
  518. package/build/client/_app/immutable/nodes/10.CY8IKTU1.js.br +0 -0
  519. package/build/client/_app/immutable/nodes/10.CY8IKTU1.js.gz +0 -0
  520. package/build/client/_app/immutable/nodes/11.DeI53l7V.js +0 -9
  521. package/build/client/_app/immutable/nodes/11.DeI53l7V.js.br +0 -0
  522. package/build/client/_app/immutable/nodes/11.DeI53l7V.js.gz +0 -0
  523. package/build/client/_app/immutable/nodes/12.BcEihrai.js +0 -3
  524. package/build/client/_app/immutable/nodes/12.BcEihrai.js.br +0 -0
  525. package/build/client/_app/immutable/nodes/12.BcEihrai.js.gz +0 -0
  526. package/build/client/_app/immutable/nodes/13.DL0BDw6w.js +0 -2
  527. package/build/client/_app/immutable/nodes/13.DL0BDw6w.js.br +0 -0
  528. package/build/client/_app/immutable/nodes/13.DL0BDw6w.js.gz +0 -0
  529. package/build/client/_app/immutable/nodes/14.BDP1SHs8.js +0 -6
  530. package/build/client/_app/immutable/nodes/14.BDP1SHs8.js.br +0 -0
  531. package/build/client/_app/immutable/nodes/14.BDP1SHs8.js.gz +0 -0
  532. package/build/client/_app/immutable/nodes/15.BeGytqIn.js +0 -1
  533. package/build/client/_app/immutable/nodes/15.BeGytqIn.js.br +0 -0
  534. package/build/client/_app/immutable/nodes/15.BeGytqIn.js.gz +0 -0
  535. package/build/client/_app/immutable/nodes/16.Bzdjoocn.js +0 -10
  536. package/build/client/_app/immutable/nodes/16.Bzdjoocn.js.br +0 -0
  537. package/build/client/_app/immutable/nodes/16.Bzdjoocn.js.gz +0 -0
  538. package/build/client/_app/immutable/nodes/17.CqESnpF4.js +0 -1
  539. package/build/client/_app/immutable/nodes/17.CqESnpF4.js.br +0 -0
  540. package/build/client/_app/immutable/nodes/17.CqESnpF4.js.gz +0 -0
  541. package/build/client/_app/immutable/nodes/18.szNVFqEf.js +0 -3
  542. package/build/client/_app/immutable/nodes/18.szNVFqEf.js.br +0 -0
  543. package/build/client/_app/immutable/nodes/18.szNVFqEf.js.gz +0 -0
  544. package/build/client/_app/immutable/nodes/19.DzeJRoFz.js +0 -1
  545. package/build/client/_app/immutable/nodes/19.DzeJRoFz.js.br +0 -0
  546. package/build/client/_app/immutable/nodes/19.DzeJRoFz.js.gz +0 -0
  547. package/build/client/_app/immutable/nodes/2.qnsqFylJ.js +0 -28
  548. package/build/client/_app/immutable/nodes/2.qnsqFylJ.js.br +0 -0
  549. package/build/client/_app/immutable/nodes/2.qnsqFylJ.js.gz +0 -0
  550. package/build/client/_app/immutable/nodes/20.BhQ-50Hx.js +0 -14
  551. package/build/client/_app/immutable/nodes/20.BhQ-50Hx.js.br +0 -0
  552. package/build/client/_app/immutable/nodes/20.BhQ-50Hx.js.gz +0 -0
  553. package/build/client/_app/immutable/nodes/21.BcUkJ16A.js +0 -150
  554. package/build/client/_app/immutable/nodes/21.BcUkJ16A.js.br +0 -0
  555. package/build/client/_app/immutable/nodes/21.BcUkJ16A.js.gz +0 -0
  556. package/build/client/_app/immutable/nodes/22.MH9D7aDR.js +0 -3
  557. package/build/client/_app/immutable/nodes/22.MH9D7aDR.js.br +0 -0
  558. package/build/client/_app/immutable/nodes/22.MH9D7aDR.js.gz +0 -0
  559. package/build/client/_app/immutable/nodes/23.Dm68JGQ6.js +0 -2
  560. package/build/client/_app/immutable/nodes/23.Dm68JGQ6.js.br +0 -0
  561. package/build/client/_app/immutable/nodes/23.Dm68JGQ6.js.gz +0 -0
  562. package/build/client/_app/immutable/nodes/24.DGSVlnqh.js +0 -25
  563. package/build/client/_app/immutable/nodes/24.DGSVlnqh.js.br +0 -0
  564. package/build/client/_app/immutable/nodes/24.DGSVlnqh.js.gz +0 -0
  565. package/build/client/_app/immutable/nodes/25.1Zvn6jWz.js +0 -5
  566. package/build/client/_app/immutable/nodes/25.1Zvn6jWz.js.br +0 -0
  567. package/build/client/_app/immutable/nodes/25.1Zvn6jWz.js.gz +0 -0
  568. package/build/client/_app/immutable/nodes/26.z8zoJnJR.js +0 -18
  569. package/build/client/_app/immutable/nodes/26.z8zoJnJR.js.br +0 -0
  570. package/build/client/_app/immutable/nodes/26.z8zoJnJR.js.gz +0 -0
  571. package/build/client/_app/immutable/nodes/28.CzIMeNvZ.js +0 -4
  572. package/build/client/_app/immutable/nodes/28.CzIMeNvZ.js.br +0 -0
  573. package/build/client/_app/immutable/nodes/28.CzIMeNvZ.js.gz +0 -0
  574. package/build/client/_app/immutable/nodes/3.BQbJ7kiA.js +0 -2
  575. package/build/client/_app/immutable/nodes/3.BQbJ7kiA.js.br +0 -0
  576. package/build/client/_app/immutable/nodes/3.BQbJ7kiA.js.gz +0 -0
  577. package/build/client/_app/immutable/nodes/30.BK6LOiKB.js +0 -6
  578. package/build/client/_app/immutable/nodes/30.BK6LOiKB.js.br +0 -0
  579. package/build/client/_app/immutable/nodes/30.BK6LOiKB.js.gz +0 -0
  580. package/build/client/_app/immutable/nodes/31.CTbKTPCM.js +0 -8
  581. package/build/client/_app/immutable/nodes/31.CTbKTPCM.js.br +0 -0
  582. package/build/client/_app/immutable/nodes/31.CTbKTPCM.js.gz +0 -0
  583. package/build/client/_app/immutable/nodes/32.Bm9Mrm93.js +0 -2
  584. package/build/client/_app/immutable/nodes/32.Bm9Mrm93.js.br +0 -0
  585. package/build/client/_app/immutable/nodes/32.Bm9Mrm93.js.gz +0 -0
  586. package/build/client/_app/immutable/nodes/33.CxqcHI9-.js +0 -5
  587. package/build/client/_app/immutable/nodes/33.CxqcHI9-.js.br +0 -0
  588. package/build/client/_app/immutable/nodes/33.CxqcHI9-.js.gz +0 -0
  589. package/build/client/_app/immutable/nodes/34.CY6TYWcc.js +0 -4
  590. package/build/client/_app/immutable/nodes/34.CY6TYWcc.js.br +0 -0
  591. package/build/client/_app/immutable/nodes/34.CY6TYWcc.js.gz +0 -0
  592. package/build/client/_app/immutable/nodes/35.fQqixPey.js +0 -3
  593. package/build/client/_app/immutable/nodes/35.fQqixPey.js.br +0 -0
  594. package/build/client/_app/immutable/nodes/35.fQqixPey.js.gz +0 -0
  595. package/build/client/_app/immutable/nodes/36.BemSOTgX.js +0 -7
  596. package/build/client/_app/immutable/nodes/36.BemSOTgX.js.br +0 -0
  597. package/build/client/_app/immutable/nodes/36.BemSOTgX.js.gz +0 -0
  598. package/build/client/_app/immutable/nodes/37.DoB20L2E.js +0 -2
  599. package/build/client/_app/immutable/nodes/37.DoB20L2E.js.br +0 -0
  600. package/build/client/_app/immutable/nodes/37.DoB20L2E.js.gz +0 -0
  601. package/build/client/_app/immutable/nodes/38.B7aeIKDX.js +0 -4
  602. package/build/client/_app/immutable/nodes/38.B7aeIKDX.js.br +0 -0
  603. package/build/client/_app/immutable/nodes/38.B7aeIKDX.js.gz +0 -0
  604. package/build/client/_app/immutable/nodes/39.B1817o0R.js +0 -7
  605. package/build/client/_app/immutable/nodes/39.B1817o0R.js.br +0 -0
  606. package/build/client/_app/immutable/nodes/39.B1817o0R.js.gz +0 -0
  607. package/build/client/_app/immutable/nodes/4.DCcgp6gn.js +0 -5
  608. package/build/client/_app/immutable/nodes/4.DCcgp6gn.js.br +0 -0
  609. package/build/client/_app/immutable/nodes/4.DCcgp6gn.js.gz +0 -0
  610. package/build/client/_app/immutable/nodes/40.CuoCjhyK.js +0 -6
  611. package/build/client/_app/immutable/nodes/40.CuoCjhyK.js.br +0 -0
  612. package/build/client/_app/immutable/nodes/40.CuoCjhyK.js.gz +0 -0
  613. package/build/client/_app/immutable/nodes/41.DtgiBysv.js +0 -23
  614. package/build/client/_app/immutable/nodes/41.DtgiBysv.js.br +0 -0
  615. package/build/client/_app/immutable/nodes/41.DtgiBysv.js.gz +0 -0
  616. package/build/client/_app/immutable/nodes/42.U66RZJ39.js +0 -1
  617. package/build/client/_app/immutable/nodes/42.U66RZJ39.js.br +0 -1
  618. package/build/client/_app/immutable/nodes/42.U66RZJ39.js.gz +0 -0
  619. package/build/client/_app/immutable/nodes/44.D-_cJdZy.js +0 -6
  620. package/build/client/_app/immutable/nodes/44.D-_cJdZy.js.br +0 -0
  621. package/build/client/_app/immutable/nodes/44.D-_cJdZy.js.gz +0 -0
  622. package/build/client/_app/immutable/nodes/5.CsBNIKLl.js +0 -1
  623. package/build/client/_app/immutable/nodes/5.CsBNIKLl.js.br +0 -0
  624. package/build/client/_app/immutable/nodes/5.CsBNIKLl.js.gz +0 -0
  625. package/build/client/_app/immutable/nodes/6.D46lJjHa.js +0 -6
  626. package/build/client/_app/immutable/nodes/6.D46lJjHa.js.br +0 -0
  627. package/build/client/_app/immutable/nodes/6.D46lJjHa.js.gz +0 -0
  628. package/build/client/_app/immutable/nodes/9.CLZt4gVs.js +0 -3
  629. package/build/client/_app/immutable/nodes/9.CLZt4gVs.js.br +0 -0
  630. package/build/client/_app/immutable/nodes/9.CLZt4gVs.js.gz +0 -0
  631. package/build/server/chunks/chunks/ResizableRail.js-DWTZXucY.js +0 -708
  632. package/build/server/chunks/chunks/TaskView.js-Djh37gNV.js +0 -3029
  633. package/build/server/chunks/chunks/detail.js-DCkIB4wl.js +0 -149
  634. package/build/server/chunks/chunks/features.js-C0RFlCU9.js +0 -181
  635. package/build/server/chunks/chunks/feedback.js-BTR9xkHF.js +0 -67
  636. package/build/server/chunks/chunks/internal.js-Bg8MvH6G.js +0 -151
  637. package/build/server/chunks/chunks/livereview.js-BJxqrnBd.js +0 -261
  638. package/build/server/chunks/chunks/marketplace-service.js-CqwpcR5A.js +0 -557
  639. package/build/server/chunks/chunks/package.js-BOu7yHDP.js +0 -160
  640. package/build/server/chunks/chunks/page.js-DZmeg344.js +0 -13
  641. package/build/server/chunks/chunks/previewhelper.js-CUjqs8rl.js +0 -245
  642. package/build/server/chunks/chunks/previewhelper2.js-DhAL5_6K.js +0 -214
  643. package/build/server/chunks/chunks/remote.js-B8iHzqbR.js +0 -21
  644. package/build/server/chunks/chunks/repo.js-zZjENX9B.js +0 -33
  645. package/build/server/chunks/chunks/runtime.js-CCDb6NUe.js +0 -26510
  646. package/build/server/chunks/chunks/scribe.js-CPHlcPWd.js +0 -1376
  647. package/build/server/chunks/chunks/service.js-DSxBrc6d.js +0 -1339
  648. package/build/server/chunks/chunks/service2.js-CnOAObr8.js +0 -835
  649. package/build/server/chunks/chunks/service3.js-DpPYyCFX.js +0 -234
  650. package/build/server/chunks/chunks/sessions.js--Esog5VV.js +0 -534
  651. package/build/server/chunks/chunks/settings.js-FZbEnILS.js +0 -379
  652. package/build/server/chunks/chunks/starter.js-Z4qUYkMx.js +0 -400
  653. package/build/server/chunks/chunks/store.js-DHAfX_W5.js +0 -334
  654. package/build/server/chunks/chunks/tmux.js-8vQMGgvb.js +0 -504
  655. package/build/server/chunks/chunks/tools.js-BnmGImVp.js +0 -156
  656. package/build/server/chunks/chunks/uploads.js-B9xKVdU_.js +0 -107
  657. package/build/server/chunks/chunks/view.js-9667u7-H.js +0 -76
  658. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-D8BEzPks.js +0 -116
  659. package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-DsvibwQo.js +0 -112
  660. package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-D3QhZ5yy.js +0 -63
  661. package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-BQmCAgYI.js +0 -79
  662. package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-D6vKOU4l.js +0 -83
  663. package/build/server/chunks/entries/endpoints/api/documents/_server.ts.js-DuflqKrA.js +0 -68
  664. package/build/server/chunks/entries/endpoints/api/documents/briefing/_server.ts.js-B9u0JtDZ.js +0 -73
  665. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-CXk1I-s5.js +0 -158
  666. package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-DRXyKXoh.js +0 -57
  667. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-CHm9En9u.js +0 -75
  668. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-DZ10q4PZ.js +0 -111
  669. package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-DWpSMN_e.js +0 -87
  670. package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-r5EeGDB9.js +0 -77
  671. package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-D8axU9Ds.js +0 -70
  672. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-DvRi4-bS.js +0 -70
  673. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-3D-zqPU7.js +0 -71
  674. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-C05dgSJS.js +0 -77
  675. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-DM6G3h5y.js +0 -70
  676. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-D45ENMJB.js +0 -119
  677. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-BITiA3fH.js +0 -80
  678. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-DaWZw8pD.js +0 -91
  679. package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-CZzxvZ9J.js +0 -79
  680. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-CeXazf71.js +0 -70
  681. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-SINb4OzG.js +0 -32
  682. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-DALaQV6B.js +0 -40
  683. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-DNakBJpI.js +0 -62
  684. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-oSlVw3U-.js +0 -62
  685. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-DKpKqARI.js +0 -89
  686. package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-Do8VP-YQ.js +0 -87
  687. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-ty868lLE.js +0 -80
  688. package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-CQkwL0rD.js +0 -172
  689. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-BvzIuaym.js +0 -62
  690. package/build/server/chunks/entries/endpoints/api/library/doc/_server.ts.js-BCD8UCda.js +0 -71
  691. package/build/server/chunks/entries/endpoints/api/library/promote/_server.ts.js-DF5QaWdr.js +0 -72
  692. package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-DYKzL_m9.js +0 -91
  693. package/build/server/chunks/entries/endpoints/api/live/_id_/events/_server.ts.js-D4LS14N_.js +0 -72
  694. package/build/server/chunks/entries/endpoints/api/live/_id_/interrupt/_server.ts.js-oJKS0Y1M.js +0 -27
  695. package/build/server/chunks/entries/endpoints/api/live/_id_/say/_server.ts.js-CiJNPYNd.js +0 -30
  696. package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-0F2_nib_.js +0 -105
  697. package/build/server/chunks/entries/endpoints/api/live/image/_server.ts.js-DF2XQ3CU.js +0 -74
  698. package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-VjhDF8Zu.js +0 -122
  699. package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-DvJSVSjw.js +0 -76
  700. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-BMJ7HbQq.js +0 -97
  701. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-CO8Af6jn.js +0 -86
  702. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-CR3QXthM.js +0 -81
  703. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-DDjhPQRS.js +0 -78
  704. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-WVmE9mVd.js +0 -27
  705. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-Cm-9zIoi.js +0 -85
  706. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-BFeAY67I.js +0 -39
  707. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-CvAQo2kn.js +0 -62
  708. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-CHxwtQHh.js +0 -39
  709. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-DSpQGp27.js +0 -42
  710. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-DMREi9Pr.js +0 -67
  711. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-BeWwqmLG.js +0 -76
  712. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-Dkzta0M_.js +0 -73
  713. package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-DwQYqOWh.js +0 -77
  714. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-C0Y--kKI.js +0 -27
  715. package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-HcU7dUaN.js +0 -86
  716. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-Dnq8SBmx.js +0 -67
  717. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-C1IxdPvG.js +0 -76
  718. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-BEkjU0sD.js +0 -88
  719. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-FLttbhnI.js +0 -75
  720. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-Bha1xzEw.js +0 -98
  721. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-NjHGpfdP.js +0 -81
  722. package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-CKjMYRPa.js +0 -476
  723. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-BOJAdcMO.js +0 -92
  724. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-BTCUhVLF.js +0 -71
  725. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-Dt3D1vlP.js +0 -81
  726. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-Nuj2D0ou.js +0 -141
  727. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-CiEm0rNZ.js +0 -70
  728. package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-DCeLnaet.js +0 -84
  729. package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-X0QaDi3f.js +0 -70
  730. package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-DeWAhlq5.js +0 -73
  731. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-jpshAN_z.js +0 -67
  732. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-DdHtMz3U.js +0 -86
  733. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-D25Xyng0.js +0 -113
  734. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-PvhE-sWb.js +0 -79
  735. package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-JA56U2UK.js +0 -107
  736. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-D2IAZAi5.js +0 -127
  737. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-ecGZ6usx.js +0 -82
  738. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-DIL1cK_3.js +0 -84
  739. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-CgKjSAlD.js +0 -85
  740. package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-BOQKIJxn.js +0 -24
  741. package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-CkK5Y82K.js +0 -31
  742. package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-D-fE-ew4.js +0 -33
  743. package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-CUasoo5r.js +0 -97
  744. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-DmPgbeCW.js +0 -40
  745. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-B94AT-sg.js +0 -27
  746. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-DWi2b9Mx.js +0 -27
  747. package/build/server/chunks/entries/endpoints/library/_shelf_/_folder_/_slug_/files/_...path_/_server.ts.js-DBjo4_k6.js +0 -78
  748. package/build/server/chunks/entries/endpoints/r/_task_/_server.ts.js-cggeZMBj.js +0 -68
  749. package/build/server/chunks/entries/endpoints/records/_project_/_task_/files/_...path_/_server.ts.js-D3Udbcv-.js +0 -75
  750. package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-DgSMJqGU.js +0 -85
  751. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-B2VjvvAB.js +0 -66
  752. package/build/server/chunks/entries/hooks.server.js-CRDKWiCw.js +0 -107
  753. package/build/server/chunks/entries/pages/_layout.server.ts.js-AHV4omRN.js +0 -55
  754. package/build/server/chunks/entries/pages/_layout.svelte.js-DsvCGNUI.js +0 -6023
  755. package/build/server/chunks/entries/pages/_page.server.ts.js-Bl64XRGY.js +0 -16
  756. package/build/server/chunks/entries/pages/_page.svelte.js-Er6DIvYo.js +0 -4886
  757. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-YEOJyXaU.js +0 -14
  758. package/build/server/chunks/entries/pages/deck/_page.server.ts.js-Bn9pyphZ.js +0 -16
  759. package/build/server/chunks/entries/pages/documents/_page.server.ts.js-DoOEkND3.js +0 -15
  760. package/build/server/chunks/entries/pages/files/_page.server.ts.js-q_a1EGjA.js +0 -17
  761. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-CV4qoB47.js +0 -11
  762. package/build/server/chunks/entries/pages/health/_page.server.ts.js-CcJzZPK6.js +0 -16
  763. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-CZ4oON2g.js +0 -18
  764. package/build/server/chunks/entries/pages/library/_shelf_/_folder_/_slug_/_page.server.ts.js-BI5BADm7.js +0 -18
  765. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-CtC_6fS-.js +0 -16
  766. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-BTZY_1yT.js +0 -23
  767. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-D-8dL2Mn.js +0 -21
  768. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-BfBecR-G.js +0 -27
  769. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-DCeq2QtX.js +0 -15
  770. package/build/server/chunks/entries/pages/prototypes/_project_/_task_/_name_/_page.server.ts.js-CiLbofM5.js +0 -25
  771. package/build/server/chunks/entries/pages/records/_project_/_task_/_page.server.ts.js-BkPdJPqB.js +0 -37
  772. package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-CbAvSKX9.js +0 -11
  773. package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-CXlEidtY.js +0 -13
  774. package/build/server/chunks/entries/pages/settings/_page.server.ts.js-DbVvZoJ2.js +0 -12
  775. package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-D5jE8Jm_.js +0 -18
  776. package/build/server/chunks/entries/pages/settings/cloud/_page.server.ts.js-64DsxExR.js +0 -15
  777. package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-DUnCuBsq.js +0 -19
  778. package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-D8ovHe5z.js +0 -16
  779. package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-D9mUpzeB.js +0 -15
  780. package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-CTuAgEM9.js +0 -797
  781. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-LRk_0zzT.js +0 -11
  782. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-BJQ8PVz2.js +0 -19
  783. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-BDbQXhzo.js +0 -17
  784. package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-CWGyxrN7.js +0 -11
  785. package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-Dur6rEz-.js +0 -11
  786. package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-Uca0-iPP.js +0 -15
  787. package/build/server/chunks/entries/pages/settings/voice/_page.svelte.js-qEc5nPtP.js +0 -178
  788. package/build/server/chunks/entries/pages/setup/_page.server.ts.js-CLGNe_lT.js +0 -18
  789. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-BXY4jcfM.js +0 -36
  790. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-BLYEV0pM.js +0 -121
  791. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-C0y6HLFn.js +0 -24
  792. package/build/server/chunks/entries/pages/time/_page.server.ts.js-C3KCFmSW.js +0 -11
  793. package/build/server/chunks/handler-CmSkir2e.js +0 -1474
  794. package/build/server/chunks/index.js--qZj4Hlt.js +0 -4296
  795. package/build/server/chunks/manifest.js-DznXX5B1.js +0 -1050
  796. package/build/server/chunks/nodes/0.js-JGhf3lek.js +0 -69
  797. package/build/server/chunks/nodes/1.js-MDwGT23n.js +0 -9
  798. package/build/server/chunks/nodes/10.js-BC_tDsXY.js +0 -67
  799. package/build/server/chunks/nodes/11.js-BlbXx-Vo.js +0 -69
  800. package/build/server/chunks/nodes/12.js-DRtVTtQZ.js +0 -68
  801. package/build/server/chunks/nodes/13.js-C54S9wq2.js +0 -69
  802. package/build/server/chunks/nodes/14.js-pbTZptLH.js +0 -12
  803. package/build/server/chunks/nodes/15.js-DLYRC91n.js +0 -9
  804. package/build/server/chunks/nodes/16.js-D7wzRoAT.js +0 -9
  805. package/build/server/chunks/nodes/17.js-BSxNNEBP.js +0 -67
  806. package/build/server/chunks/nodes/18.js-Cw1aobbl.js +0 -70
  807. package/build/server/chunks/nodes/19.js-BZL7Y2jR.js +0 -68
  808. package/build/server/chunks/nodes/2.js-CEhzIBTF.js +0 -67
  809. package/build/server/chunks/nodes/20.js-LT-WErdh.js +0 -69
  810. package/build/server/chunks/nodes/21.js-Dhf1VdAQ.js +0 -68
  811. package/build/server/chunks/nodes/22.js-C4T-4uGi.js +0 -69
  812. package/build/server/chunks/nodes/23.js-DfmzwOvT.js +0 -69
  813. package/build/server/chunks/nodes/24.js-B8tDbRuD.js +0 -25
  814. package/build/server/chunks/nodes/25.js-CB_xn9jn.js +0 -25
  815. package/build/server/chunks/nodes/26.js-D475mFaM.js +0 -9
  816. package/build/server/chunks/nodes/27.js-CqinYfdy.js +0 -25
  817. package/build/server/chunks/nodes/28.js-gzzSRYcM.js +0 -67
  818. package/build/server/chunks/nodes/29.js-CTGodeoy.js +0 -18
  819. package/build/server/chunks/nodes/3.js-B398IAtw.js +0 -9
  820. package/build/server/chunks/nodes/30.js-6Lb--dFz.js +0 -68
  821. package/build/server/chunks/nodes/31.js-CSj1AD7Q.js +0 -67
  822. package/build/server/chunks/nodes/32.js-BbGpHC9C.js +0 -25
  823. package/build/server/chunks/nodes/33.js-ChlD3UrL.js +0 -67
  824. package/build/server/chunks/nodes/34.js-DEdPbVDI.js +0 -25
  825. package/build/server/chunks/nodes/35.js-CinHDp_f.js +0 -22
  826. package/build/server/chunks/nodes/36.js-09k2jafz.js +0 -67
  827. package/build/server/chunks/nodes/37.js-wi0tvsNN.js +0 -70
  828. package/build/server/chunks/nodes/38.js-CXsKjbLt.js +0 -69
  829. package/build/server/chunks/nodes/39.js-DUosso-F.js +0 -26
  830. package/build/server/chunks/nodes/4.js-8nztjXZE.js +0 -68
  831. package/build/server/chunks/nodes/40.js-Bbiq9IeZ.js +0 -69
  832. package/build/server/chunks/nodes/41.js-MEJZh_dk.js +0 -71
  833. package/build/server/chunks/nodes/42.js-BhCRRutm.js +0 -68
  834. package/build/server/chunks/nodes/43.js-OOLANNrx.js +0 -68
  835. package/build/server/chunks/nodes/44.js-DiraBnCg.js +0 -67
  836. package/build/server/chunks/nodes/5.js-DgynhGEO.js +0 -67
  837. package/build/server/chunks/nodes/6.js-a6nRdMeq.js +0 -67
  838. package/build/server/chunks/nodes/8.js-YdBDVkOY.js +0 -67
  839. package/build/server/chunks/nodes/9.js-CFYhuecx.js +0 -14
@@ -0,0 +1,1591 @@
1
+ import http from 'node:http';
2
+ import net from 'node:net';
3
+ import { promisify } from 'node:util';
4
+ import zlib from 'node:zlib';
5
+ import { l as loopbackPreview } from './preview.js-CbgkVvT_.js';
6
+ import { mkdir, writeFile } from 'node:fs/promises';
7
+ import path from 'node:path';
8
+ import { P as PACK_SYSTEM, a as PACK_SCHEMA, p as packPrompt, r as readPack, R as REPLY_SYSTEM, b as REPLY_SCHEMA, c as replyPrompt, d as readAnswer, N as NOTES_SYSTEM, e as NOTES_SCHEMA, n as notesPrompt, f as readNotes } from './livereview.js-FqdWoyiJ.js';
9
+ import { g as getRuntime, t as parseMateTaskId } from './runtime.js-BcdjdUwr.js';
10
+ import { runHelper } from './previewhelper2.js-Dokz3Re6.js';
11
+ import { d as defaultStateDir } from './store.js-CBYhaqF1.js';
12
+ import { r as runBounded, w as which } from './tmux.js-DTQKbm92.js';
13
+
14
+ const recorderSource = `// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- a plain browser script, served as is into the page under review
15
+ // @ts-nocheck
16
+ /*
17
+ * The live review recorder (see lib/livereview.ts and proxy.ts). This runs in
18
+ * the browser, not on the server: Wheelhouse's proxy serves it into every
19
+ * page of a preview it shows for a live review, with __WHEELHOUSE_ORIGIN__
20
+ * replaced by Wheelhouse's origin, the only origin it talks to, and
21
+ * __WHEELHOUSE_REVIEW__ by the task under review. It exists only in that
22
+ * proxied copy: nothing of it is in the project's files or its build.
23
+ *
24
+ * The captain uses the page itself, full screen. The recorder adds, over it,
25
+ * a small floating button (it can be dragged out of the way) that opens the
26
+ * review's panel: Wheelhouse's own page for the session (/live-review/<task>),
27
+ * framed beside the button, where the captain comments, starts a live
28
+ * discussion with the scribe and ends with Done. While the session records,
29
+ * the recorder reports what the captain does to that panel (postMessage):
30
+ * clicks, page changes, typing (masked by default), choices, console errors,
31
+ * failed requests, scrolling and what the pointer is over. It forwards the
32
+ * talk key (Space held for 2 seconds) so push-to-talk works while the page has focus, lets the
33
+ * captain pick a part of the page to comment on, or comment right there on words selected (or a
34
+ * part Alt-clicked) from a small bar beside them, takes a screenshot of what is
35
+ * in view when asked, and shows on the button whether it is recording. It
36
+ * sends nothing anywhere else and records nothing until the panel says so.
37
+ */
38
+ (() => {
39
+ const PARENT = '__WHEELHOUSE_ORIGIN__';
40
+ const REVIEW = '__WHEELHOUSE_REVIEW__';
41
+ // Only the page itself (not a frame inside it), and only a copy made for a review.
42
+ if (window.__whRecorder || window.top !== window || !REVIEW || typeof REVIEW !== 'object') return;
43
+ window.__whRecorder = true;
44
+
45
+ let recording = false;
46
+ let mask = true;
47
+ let ready = false;
48
+ let queued = [];
49
+ let panel = null;
50
+ // The tab's title says it is a preview, so it is never taken for the real app (see marked()).
51
+ const MARK = '◉ Preview · ';
52
+ const pageTitle = () =>
53
+ document.title.startsWith(MARK) ? document.title.slice(MARK.length) : document.title;
54
+ const send = (type, data = {}) => {
55
+ const m = { __wh: 1, type, url: location.href, title: pageTitle(), ...data };
56
+ if (!ready || !panel || !panel.contentWindow) {
57
+ // Before the panel has loaded: only the latest of each kind waits for it.
58
+ queued = queued.filter((q) => q.type !== type || type === 'error').concat(m);
59
+ return;
60
+ }
61
+ panel.contentWindow.postMessage(m, PARENT);
62
+ };
63
+
64
+ /* ---------------------------------------------------- naming what was used */
65
+
66
+ const tidy = (s) => (s || '').replace(/\\s+/g, ' ').trim();
67
+ const cut = (s, n) => (s.length > n ? s.slice(0, n - 1).trimEnd() + '…' : s);
68
+ const NOUN = {
69
+ button: 'button',
70
+ a: 'link',
71
+ input: 'box',
72
+ textarea: 'box',
73
+ select: 'menu',
74
+ img: 'picture',
75
+ h1: 'heading',
76
+ h2: 'heading',
77
+ h3: 'heading',
78
+ h4: 'heading',
79
+ label: 'label',
80
+ li: 'item',
81
+ summary: 'toggle',
82
+ td: 'cell',
83
+ th: 'column heading',
84
+ nav: 'menu'
85
+ };
86
+ const NEAR =
87
+ 'button, a, input, textarea, select, img, h1, h2, h3, h4, label, li, summary, [role="button"], [role="tab"], [role="menuitem"], [role="option"], [role="checkbox"], [role="switch"], td, th';
88
+
89
+ // The words a person would use for it: the first line of its visible text (a card's title, not all of it).
90
+ function firstLine(el) {
91
+ const lines = (el.innerText || el.textContent || '')
92
+ .split('\\n')
93
+ .map((l) => l.replace(/^[^\\p{L}\\p{N}]+/u, '').trim())
94
+ .filter((l) => /\\p{L}/u.test(l));
95
+ return lines[0] || '';
96
+ }
97
+
98
+ function described(raw) {
99
+ const el = raw && raw.closest ? raw.closest(NEAR) || raw : raw;
100
+ if (!el || el === document.body || el === document.documentElement) return null;
101
+ const tag = el.tagName.toLowerCase();
102
+ const role = el.getAttribute('role');
103
+ const type = (el.getAttribute('type') || '').toLowerCase();
104
+ let noun =
105
+ role === 'tab'
106
+ ? 'tab'
107
+ : role === 'button'
108
+ ? 'button'
109
+ : role === 'menuitem'
110
+ ? 'menu item'
111
+ : role === 'checkbox' || type === 'checkbox'
112
+ ? 'tick box'
113
+ : role === 'switch'
114
+ ? 'switch'
115
+ : type === 'radio'
116
+ ? 'option'
117
+ : NOUN[tag] || 'part of the page';
118
+ const labelFor = el.id && document.querySelector(\`label[for="\${CSS.escape(el.id)}"]\`);
119
+ const secret =
120
+ type === 'password' || /pass|secret|token|card|cvc|ssn/i.test(el.name || el.id || '');
121
+ const words = cut(
122
+ tidy(
123
+ el.getAttribute('aria-label') ||
124
+ (labelFor && labelFor.textContent) ||
125
+ el.getAttribute('placeholder') ||
126
+ el.getAttribute('alt') ||
127
+ el.getAttribute('title') ||
128
+ (tag === 'input' || tag === 'textarea' ? '' : firstLine(el)) ||
129
+ (tag === 'input' && ['button', 'submit'].includes(type) ? el.value : '')
130
+ ),
131
+ 60
132
+ );
133
+ const r = el.getBoundingClientRect();
134
+ return {
135
+ label: words ? \`the “\${words}” \${noun}\` : \`a \${noun}\`,
136
+ tag,
137
+ text: words,
138
+ secret,
139
+ selector: selectorOf(el),
140
+ rect: { x: r.left, y: r.top, w: r.width, h: r.height }
141
+ };
142
+ }
143
+
144
+ function selectorOf(el) {
145
+ const parts = [];
146
+ for (let n = el; n && n.nodeType === 1 && parts.length < 4; n = n.parentElement) {
147
+ if (n.id && !/\\d{3,}/.test(n.id)) {
148
+ parts.unshift(\`#\${CSS.escape(n.id)}\`);
149
+ break;
150
+ }
151
+ const test = n.getAttribute('data-testid');
152
+ if (test) {
153
+ parts.unshift(\`[data-testid="\${test}"]\`);
154
+ break;
155
+ }
156
+ let s = n.tagName.toLowerCase();
157
+ const cls = [...n.classList]
158
+ .filter((c) => !/^(is-|has-|active|open|hover|focus)/.test(c))
159
+ .slice(0, 2);
160
+ if (cls.length) s += '.' + cls.map((c) => CSS.escape(c)).join('.');
161
+ const p = n.parentElement;
162
+ if (p) {
163
+ const same = [...p.children].filter((c) => c.tagName === n.tagName);
164
+ if (same.length > 1) s += \`:nth-of-type(\${same.indexOf(n) + 1})\`;
165
+ }
166
+ parts.unshift(s);
167
+ }
168
+ return parts.join(' > ');
169
+ }
170
+
171
+ const viewport = () => ({ vw: innerWidth, vh: innerHeight });
172
+
173
+ /* ------------------------------------------- the floating button and panel */
174
+
175
+ const store = {
176
+ get(k) {
177
+ try {
178
+ return JSON.parse(sessionStorage.getItem('wh-live-review:' + k) || 'null');
179
+ } catch {
180
+ return null;
181
+ }
182
+ },
183
+ set(k, v) {
184
+ try {
185
+ sessionStorage.setItem('wh-live-review:' + k, JSON.stringify(v));
186
+ } catch {
187
+ // storage refused: it is only where the button sits and whether the panel is open
188
+ }
189
+ }
190
+ };
191
+
192
+ const host = document.createElement('div');
193
+ host.setAttribute('data-wh-recorder', '');
194
+ host.style.cssText = 'all:initial;position:fixed;inset:0;pointer-events:none;z-index:2147483647';
195
+ const shadow = host.attachShadow({ mode: 'open' });
196
+ // Wheelhouse's own look (its design tokens: ink, ivory, brass; DM Sans), calm over any page.
197
+ shadow.innerHTML = \`<style>
198
+ *{box-sizing:border-box}
199
+ :host{--ink:#121a23;--ink2:#1b2633;--ivory:#f6f4ee;--line:rgba(246,244,238,.14);--soft:#a7b0ba;
200
+ --brass:#e8b04a;--brass-ink:#a87412;font-family:'DM Sans Variable','DM Sans',ui-sans-serif,system-ui,sans-serif}
201
+ [hidden]{display:none!important}
202
+ .btn,.tip,.tl,.area span{font-family:'DM Sans Variable','DM Sans',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
203
+ -webkit-font-smoothing:antialiased}
204
+ button{all:unset;box-sizing:border-box;cursor:pointer;font:inherit}
205
+ button:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
206
+ .btn{position:fixed;display:flex;align-items:center;gap:4px;padding:4px;border-radius:12px;pointer-events:auto;
207
+ background:var(--ink);color:var(--ivory);font-size:13px;font-weight:500;line-height:1;
208
+ box-shadow:0 10px 30px rgba(18,26,35,.28),0 0 0 1px var(--line);touch-action:none;user-select:none;-webkit-user-select:none}
209
+ .btn button{display:flex;align-items:center;gap:8px;height:34px;padding:0 12px 0 10px;border-radius:9px}
210
+ .btn button:hover{background:var(--ink2)}
211
+ .btn.drag{cursor:grabbing}
212
+ .dot{width:16px;height:16px;border-radius:50%;border:1.5px solid var(--brass);display:grid;place-items:center;flex:none}
213
+ .dot i{width:6px;height:6px;border-radius:50%;background:var(--brass)}
214
+ .rec .dot i,.talk .dot i{animation:p 1.6s infinite}
215
+ .talk .dot i{animation-duration:.8s}
216
+ .paused .dot i{background:var(--soft);animation:none}
217
+ @keyframes p{0%{box-shadow:0 0 0 0 rgba(232,176,74,.55)}70%{box-shadow:0 0 0 7px rgba(232,176,74,0)}100%{box-shadow:0 0 0 0 rgba(232,176,74,0)}}
218
+ .clock{font:500 12px/1 'JetBrains Mono Variable',ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--soft);font-variant-numeric:tabular-nums}
219
+ .done{background:var(--ivory)!important;color:var(--ink);font-weight:600;padding:0 12px!important}
220
+ .done:hover{background:#fff!important}
221
+ .done b{width:9px;height:9px;border-radius:2px;background:var(--ink)}
222
+ .quick{background:var(--ivory)!important;color:var(--ink);font-weight:600;font-size:15px;height:44px!important;padding:0 18px 0 14px!important}
223
+ .quick b{width:12px;height:12px;border-radius:50%;background:var(--brass-ink)}
224
+ .quick.on b{border-radius:3px;background:var(--ink)}
225
+ .phone .open{height:44px;width:44px;padding:0!important;justify-content:center}
226
+ .phone .open .lbl,.phone .open .clock{display:none}
227
+ .panel{position:fixed;border-radius:14px;overflow:hidden;pointer-events:auto;background:var(--ink);
228
+ box-shadow:0 18px 60px rgba(18,26,35,.32),0 0 0 1px rgba(18,26,35,.14);transition:opacity .18s ease,transform .18s ease}
229
+ .panel.shut{opacity:0;transform:translateY(8px) scale(.98);pointer-events:none;visibility:hidden}
230
+ .panel iframe{display:block;width:100%;height:100%;border:0;background:transparent}
231
+ .tip{position:fixed;left:50%;top:40px;transform:translateX(-50%);max-width:calc(100vw - 24px);display:flex;align-items:center;gap:14px;
232
+ padding:10px 12px 10px 16px;border-radius:12px;pointer-events:auto;background:var(--ink);color:var(--ivory);font-size:14px;line-height:1.3;
233
+ box-shadow:0 10px 30px rgba(18,26,35,.28)}
234
+ .tip button{color:var(--brass);font-weight:600;white-space:nowrap;padding:4px 6px;border-radius:6px}
235
+ .ripple{position:fixed;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;border:2px solid var(--brass);animation:r .6s ease-out forwards}
236
+ @keyframes r{from{transform:scale(.3);opacity:1}to{transform:scale(1.4);opacity:0}}
237
+ .sel i{position:fixed;background:rgba(232,176,74,.3);border-radius:2px;pointer-events:none}
238
+ .pop{position:fixed;width:min(23rem,calc(100vw - 16px));padding:8px;border-radius:12px;pointer-events:auto;background:var(--ink);color:var(--ivory);
239
+ font-family:'DM Sans Variable','DM Sans',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;font-size:13px;line-height:1.3;
240
+ -webkit-font-smoothing:antialiased;box-shadow:0 10px 30px rgba(18,26,35,.32),0 0 0 1px var(--line)}
241
+ .pop .ptop{display:flex;align-items:center;gap:6px;margin:0 0 6px 2px}
242
+ .pop .pq{flex:1;min-width:0;color:var(--soft);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
243
+ .pop .px{color:var(--soft);padding:2px 7px;border-radius:6px;font-size:15px;line-height:1}
244
+ .pop .px:hover{background:var(--ink2);color:var(--ivory)}
245
+ .pop form{display:flex;align-items:center;gap:6px}
246
+ .pop .seg{display:flex;flex:none;border:1px solid var(--line);border-radius:7px;overflow:hidden}
247
+ .pop .seg button{padding:6px 9px;font-size:12px;color:var(--soft)}
248
+ .pop .seg button:hover{background:var(--ink2)}
249
+ .pop .seg button[aria-checked=true]{background:rgba(232,176,74,.18);color:var(--brass);font-weight:600}
250
+ .pop input{all:unset;box-sizing:border-box;flex:1;min-width:0;height:30px;padding:0 9px;border-radius:7px;background:var(--ink2);color:var(--ivory);font-size:13px}
251
+ .pop input::placeholder{color:var(--soft)}
252
+ .pop input:focus-visible{outline:2px solid var(--brass);outline-offset:0}
253
+ .pop .ps{flex:none;height:30px;padding:0 10px;border-radius:7px;background:var(--brass);color:var(--ink);font-weight:600;font-size:12px}
254
+ .pop .ps[disabled]{opacity:.45;cursor:default}
255
+ .pop .ph{margin:6px 2px 0;color:var(--soft);font-size:11px}
256
+ .hl{position:fixed;border:2px solid var(--brass);border-radius:4px;transition:all .12s;opacity:0;pointer-events:none}
257
+ .hl.on{opacity:1}
258
+ .hl.pick{background:rgba(232,176,74,.12)}
259
+ .layer{position:fixed;inset:0;pointer-events:auto;cursor:crosshair;background:rgba(18,26,35,.32);touch-action:none}
260
+ .layer.drawing{background:transparent}
261
+ .area{position:fixed;border:2px solid var(--brass);border-radius:6px;background:rgba(232,176,74,.08);pointer-events:none}
262
+ .area.live{box-shadow:0 0 0 100vmax rgba(18,26,35,.38)}
263
+ .area span{position:absolute;top:-11px;left:-11px;width:22px;height:22px;border-radius:50%;background:var(--brass);color:var(--ink);
264
+ font-size:12px;font-weight:700;line-height:22px;text-align:center}
265
+ .tl{position:fixed;left:16px;right:16px;bottom:14px;height:40px;display:flex;align-items:center;gap:12px;padding:0 14px;border-radius:10px;
266
+ pointer-events:none;background:rgba(18,26,35,.9);color:var(--ivory);box-shadow:0 8px 24px rgba(18,26,35,.22);
267
+ transition:opacity .2s ease,transform .2s ease}
268
+ .tl.away{opacity:0;transform:translateY(10px)}
269
+ .tl b{font:600 10.5px/1 'JetBrains Mono Variable',ui-monospace,Menlo,monospace;letter-spacing:.14em;color:var(--soft)}
270
+ .tl .t{font:500 12px/1 'JetBrains Mono Variable',ui-monospace,Menlo,monospace;color:var(--soft);font-variant-numeric:tabular-nums}
271
+ .track{position:relative;flex:1;height:18px}
272
+ .track::before{content:'';position:absolute;left:0;right:0;top:50%;height:1px;background:var(--line)}
273
+ .track i{position:absolute;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:var(--soft)}
274
+ .track i.said{width:4px;height:14px;margin:-7px 0 0 -2px;border-radius:2px;background:var(--brass)}
275
+ .track i.mark{border-radius:1px;background:transparent;border:1.5px solid var(--brass)}
276
+ .track i.error{background:#f08a6c}
277
+ .track i.now{width:2px;height:18px;margin:-9px 0 0 -1px;border-radius:1px;background:var(--ivory)}
278
+ .frame{position:fixed;inset:0;border:4px solid var(--brass);pointer-events:none;transition:border-width .2s ease}
279
+ .frame.rec{border-width:6px;animation:f 1.6s ease-in-out infinite}
280
+ @keyframes f{50%{border-color:rgba(232,176,74,.45)}}
281
+ .badge{position:fixed;left:50%;top:0;transform:translateX(-50%);max-width:min(36rem,calc(100vw - 24px));display:flex;align-items:center;gap:8px;
282
+ padding:5px 14px 7px;border-radius:0 0 10px 10px;background:var(--brass);color:var(--ink);pointer-events:none;
283
+ font-family:'DM Sans Variable','DM Sans',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;font-size:12.5px;line-height:1.2;
284
+ -webkit-font-smoothing:antialiased;box-shadow:0 6px 18px rgba(18,26,35,.22);transition:opacity .2s ease}
285
+ .badge.away{opacity:.2}
286
+ .badge b{font:700 10.5px/1 'JetBrains Mono Variable',ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.16em}
287
+ .badge .name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
288
+ .badge .rec{display:none;align-items:center;gap:6px;padding:3px 8px;border-radius:6px;background:var(--ink);color:var(--ivory);
289
+ font:600 10.5px/1 'JetBrains Mono Variable',ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em;white-space:nowrap}
290
+ .badge .rec i{width:7px;height:7px;border-radius:50%;background:var(--brass);animation:p 1.6s infinite}
291
+ .badge.on .rec{display:inline-flex}
292
+ </style><div class="frame" aria-hidden="true"></div>
293
+ <div class="badge" role="status"><b>PREVIEW</b><span class="name"></span><span class="rec"><i></i><span class="rtxt">REC</span></span></div><div class="sel"></div><div class="hl"></div>
294
+ <div class="areas"></div>
295
+ <div class="layer" hidden></div>
296
+ <div class="tl" hidden aria-hidden="true"><b>TIMELINE</b><span class="track"></span><span class="t"></span></div>
297
+ <div class="tip pick-tip" hidden>Click the part of the page your comment is about<button type="button">Cancel</button></div>
298
+ <div class="tip mark-tip" hidden>Drag over the part of the page you mean<button type="button">Done marking</button></div>
299
+ <div class="pop" hidden role="dialog" aria-label="Comment on this"><div class="ptop"><span class="pq"></span><button type="button" class="px" aria-label="Close">×</button></div><form><span class="seg" role="radiogroup" aria-label="Send as"><button type="button" role="radio" data-m="note">Note</button><button type="button" role="radio" data-m="ask">Ask</button></span><input autocomplete="off" aria-label="Your comment"><button type="submit" class="ps" disabled>Add note</button></form><div class="ph"></div></div>
300
+ <div class="panel shut" role="dialog" aria-label="Live review"></div>
301
+ <div class="btn" data-wh-review-button><button type="button" class="quick" hidden><b></b><span class="qlbl">Record</span></button><button type="button" class="open" aria-expanded="false" aria-label="Review"><span class="dot"><i></i></span><span class="lbl">Review</span><span class="clock" hidden></span></button><button type="button" class="done" hidden><b></b>Done</button></div>\`;
302
+ const hl = shadow.querySelector('.hl');
303
+ const tip = shadow.querySelector('.pick-tip');
304
+ const markTip = shadow.querySelector('.mark-tip');
305
+ const layer = shadow.querySelector('.layer');
306
+ const areasBox = shadow.querySelector('.areas');
307
+ const tl = shadow.querySelector('.tl');
308
+ const box = shadow.querySelector('.panel');
309
+ const btn = shadow.querySelector('.btn');
310
+ const openBtn = shadow.querySelector('.open');
311
+ const doneBtn = shadow.querySelector('.done');
312
+ const quick = shadow.querySelector('.quick');
313
+ const lbl = shadow.querySelector('.lbl');
314
+ const clock = shadow.querySelector('.clock');
315
+ const frame = shadow.querySelector('.frame');
316
+ const badge = shadow.querySelector('.badge');
317
+ const badgeRec = shadow.querySelector('.rtxt');
318
+ badge.querySelector('.name').textContent = REVIEW.title || REVIEW.task;
319
+ // On a phone: one control, Record then Stop (no holding), and the panel as a sheet for comments.
320
+ const phone = matchMedia('(max-width: 640px), (pointer: coarse)').matches;
321
+ btn.classList.toggle('phone', phone);
322
+ quick.hidden = !phone;
323
+
324
+ panel = document.createElement('iframe');
325
+ panel.title = 'Live review';
326
+ panel.allow = 'microphone; autoplay';
327
+ panel.src =
328
+ \`\${PARENT}/live-review/\${encodeURIComponent(REVIEW.task)}?\` +
329
+ new URLSearchParams({
330
+ from: location.origin,
331
+ title: REVIEW.title,
332
+ preview: REVIEW.preview,
333
+ back: REVIEW.back
334
+ });
335
+ box.appendChild(panel);
336
+
337
+ // Where the button sits (it can be dragged anywhere), and the panel beside it.
338
+ let pos = store.get('pos') || { right: 16, bottom: 16 };
339
+ // The panel starts open: the review is what this tab is for. Minimised, it stays so on this tab.
340
+ let open = store.get('open') !== false;
341
+ let large = false;
342
+ const clamp = (v, max) => Math.max(8, Math.min(v, max));
343
+ function place() {
344
+ const w = btn.offsetWidth || 120;
345
+ const h = btn.offsetHeight || 44;
346
+ pos = {
347
+ right: clamp(pos.right, innerWidth - w - 8),
348
+ bottom: clamp(pos.bottom, innerHeight - h - 8)
349
+ };
350
+ btn.style.right = pos.right + 'px';
351
+ btn.style.bottom = pos.bottom + 'px';
352
+ if (phone) {
353
+ // What is on the screen (a page wider than the phone still shows this much): the control
354
+ // sits at its foot, in the middle, and the panel rises over it as a sheet.
355
+ const vv = window.visualViewport;
356
+ const vw = vv ? vv.width : innerWidth;
357
+ const vh = vv ? vv.height : innerHeight;
358
+ const ox = vv ? vv.offsetLeft : 0;
359
+ const oy = vv ? vv.offsetTop : 0;
360
+ Object.assign(btn.style, {
361
+ right: 'auto',
362
+ bottom: 'auto',
363
+ left: ox + (vw - w) / 2 + 'px',
364
+ top: oy + vh - h - 16 + 'px'
365
+ });
366
+ // The frame and its label go round what is on the screen, not the wider page.
367
+ Object.assign(frame.style, {
368
+ inset: 'auto',
369
+ left: ox + 'px',
370
+ top: oy + 'px',
371
+ width: vw + 'px',
372
+ height: vh + 'px'
373
+ });
374
+ Object.assign(badge.style, {
375
+ left: ox + vw / 2 + 'px',
376
+ top: oy + 'px',
377
+ maxWidth: vw - 24 + 'px'
378
+ });
379
+ const height = large ? vh - 24 : Math.min(vh * 0.78, 640);
380
+ Object.assign(box.style, {
381
+ left: ox + 'px',
382
+ right: 'auto',
383
+ bottom: 'auto',
384
+ top: oy + vh - height + 'px',
385
+ width: vw + 'px',
386
+ height: height + 'px',
387
+ borderRadius: '16px 16px 0 0'
388
+ });
389
+ return;
390
+ }
391
+ if (large) {
392
+ Object.assign(box.style, {
393
+ top: '16px',
394
+ bottom: '16px',
395
+ right: '16px',
396
+ left: 'auto',
397
+ width: 'min(44rem, calc(100vw - 32px))',
398
+ height: 'auto'
399
+ });
400
+ return;
401
+ }
402
+ const width = Math.min(400, innerWidth - 16);
403
+ const height = Math.min(760, innerHeight - h - 40);
404
+ const left = innerWidth - pos.right - w;
405
+ const fromRight = left + w / 2 > innerWidth / 2;
406
+ // The button low on the screen: the panel opens above it, else below it.
407
+ const above = innerHeight - pos.bottom - h > innerHeight / 2;
408
+ Object.assign(box.style, {
409
+ width: width + 'px',
410
+ height: height + 'px',
411
+ left: fromRight ? 'auto' : clamp(left, innerWidth - width - 8) + 'px',
412
+ right: fromRight ? clamp(pos.right, innerWidth - width - 8) + 'px' : 'auto',
413
+ top: above ? 'auto' : clamp(innerHeight - pos.bottom + 10, innerHeight - height - 8) + 'px',
414
+ bottom: above ? clamp(pos.bottom + h + 10, innerHeight - height - 8) + 'px' : 'auto'
415
+ });
416
+ }
417
+ function setOpen(v) {
418
+ open = v;
419
+ store.set('open', v);
420
+ box.classList.toggle('shut', !open);
421
+ openBtn.setAttribute('aria-expanded', String(open));
422
+ // On a phone the sheet has its own Done and minimise; the control steps aside for it.
423
+ btn.style.visibility = phone && open ? 'hidden' : '';
424
+ place();
425
+ }
426
+ addEventListener('resize', place);
427
+ if (phone && window.visualViewport) {
428
+ visualViewport.addEventListener('resize', place);
429
+ visualViewport.addEventListener('scroll', place);
430
+ }
431
+
432
+ // A press on the button opens or closes the panel; a press that moves drags it.
433
+ let drag = null;
434
+ openBtn.addEventListener('pointerdown', (e) => {
435
+ if (e.button !== 0) return;
436
+ drag = { x: e.clientX, y: e.clientY, right: pos.right, bottom: pos.bottom, moved: false };
437
+ try {
438
+ openBtn.setPointerCapture(e.pointerId);
439
+ } catch {
440
+ // a pointer the browser will not capture: the drag still works while it stays over
441
+ }
442
+ });
443
+ openBtn.addEventListener('pointermove', (e) => {
444
+ // On a phone the control stays at the foot of the screen.
445
+ if (!drag || phone) return;
446
+ const dx = e.clientX - drag.x;
447
+ const dy = e.clientY - drag.y;
448
+ if (!drag.moved && Math.hypot(dx, dy) < 5) return;
449
+ drag.moved = true;
450
+ btn.classList.add('drag');
451
+ pos = { right: drag.right - dx, bottom: drag.bottom - dy };
452
+ place();
453
+ });
454
+ openBtn.addEventListener('pointerup', () => {
455
+ if (!drag) return;
456
+ const moved = drag.moved;
457
+ drag = null;
458
+ btn.classList.remove('drag');
459
+ if (moved) store.set('pos', pos);
460
+ else setOpen(!open);
461
+ });
462
+ openBtn.addEventListener('keydown', (e) => {
463
+ if (e.key === 'Enter' || e.key === ' ') {
464
+ e.preventDefault();
465
+ setOpen(!open);
466
+ }
467
+ });
468
+ // On a phone, Record starts the discussion with the mic on (no holding), and Stop ends it.
469
+ quick.addEventListener('click', () => send('quick'));
470
+ // Done is always one press away while anything is under way.
471
+ doneBtn.addEventListener('click', () => {
472
+ send('done');
473
+ setOpen(true);
474
+ });
475
+
476
+ // What the panel says of the session, shown on the button.
477
+ let since = 0;
478
+ let tick = 0;
479
+ function showState(m) {
480
+ // With the pack open the session is over: the button says so, without a clock.
481
+ if (m.pack) m = { pack: true };
482
+ btn.classList.toggle('rec', !!m.recording && !m.paused && !m.talking);
483
+ btn.classList.toggle('talk', !!m.talking);
484
+ btn.classList.toggle('paused', !!m.recording && !!m.paused);
485
+ frame.classList.toggle('rec', !!m.recording && !m.paused);
486
+ badge.classList.toggle('on', !!m.recording);
487
+ lbl.textContent = m.approved
488
+ ? 'Approved'
489
+ : m.pack
490
+ ? 'Feedback pack'
491
+ : m.talking
492
+ ? 'Listening'
493
+ : m.recording
494
+ ? m.paused
495
+ ? 'Paused'
496
+ : 'Recording'
497
+ : m.comments
498
+ ? \`\${m.comments} comment\${m.comments === 1 ? '' : 's'}\`
499
+ : 'Review';
500
+ doneBtn.hidden = phone || !m.canDone;
501
+ quick.classList.toggle('on', !!m.recording);
502
+ quick.querySelector('.qlbl').textContent = m.recording ? 'Stop' : 'Record';
503
+ quick.hidden = !phone || !!m.pack;
504
+ since = m.recording ? m.started : 0;
505
+ tl.hidden = phone || !m.recording;
506
+ clock.hidden = !since;
507
+ clearInterval(tick);
508
+ if (since) {
509
+ const draw = () => {
510
+ const s = Math.max(0, Math.floor((Date.now() - since) / 1000));
511
+ clock.textContent = \`\${String(Math.floor(s / 60)).padStart(2, '0')}:\${String(s % 60).padStart(2, '0')}\`;
512
+ badgeRec.textContent = m.paused ? 'PAUSED' : \`REC \${clock.textContent}\`;
513
+ drawTimeline();
514
+ };
515
+ draw();
516
+ tick = setInterval(draw, 1000);
517
+ }
518
+ place();
519
+ }
520
+
521
+ function marked() {
522
+ if (!document.title) document.title = MARK + (REVIEW.title || REVIEW.task);
523
+ else if (!document.title.startsWith(MARK)) document.title = MARK + document.title;
524
+ }
525
+ marked();
526
+ new MutationObserver(marked).observe(document.head || document.documentElement, {
527
+ subtree: true,
528
+ childList: true,
529
+ characterData: true
530
+ });
531
+
532
+ const mount = () => {
533
+ if (!document.body || host.isConnected) return;
534
+ document.body.appendChild(host);
535
+ setOpen(open);
536
+ drawAreas();
537
+ };
538
+ if (document.body) mount();
539
+ else document.addEventListener('DOMContentLoaded', mount);
540
+ // A page that replaces its body (some apps do as they start) gets the button back.
541
+ new MutationObserver(() => mount()).observe(document.documentElement, { childList: true });
542
+
543
+ /* ------------------------------------------------- picking what to comment on */
544
+
545
+ let picking = false;
546
+ function outline(node, cls) {
547
+ if (!node) return hl.classList.remove('on');
548
+ const r = node.getBoundingClientRect();
549
+ Object.assign(hl.style, {
550
+ left: r.left - 3 + 'px',
551
+ top: r.top - 3 + 'px',
552
+ width: r.width + 6 + 'px',
553
+ height: r.height + 6 + 'px'
554
+ });
555
+ hl.className = 'hl on ' + (cls || '');
556
+ }
557
+ const pickable = (t) => t && t !== host && !host.contains(t) && t !== document.documentElement;
558
+ function pick(on) {
559
+ picking = on;
560
+ tip.hidden = !on;
561
+ // Speaking into the panel: it stays as it is, so nothing interrupts the listening.
562
+ if (on && !prefs.listening) setOpen(false);
563
+ else hl.className = 'hl';
564
+ }
565
+ tip.querySelector('button').addEventListener('click', () => {
566
+ pick(false);
567
+ send('picked', { el: null });
568
+ setOpen(true);
569
+ });
570
+ // Alt-click: a part of the page to comment on right there (a shortcut, so the page's keys
571
+ // setting turns it off).
572
+ const quickPick = (e) => prefs.keys && e.altKey && !marking && !picking;
573
+ const swallow = (e) => {
574
+ if (!(picking || quickPick(e)) || !pickable(e.target)) return;
575
+ e.preventDefault();
576
+ e.stopPropagation();
577
+ e.stopImmediatePropagation();
578
+ };
579
+ for (const type of ['pointerdown', 'mousedown', 'pointerup', 'mouseup', 'touchstart'])
580
+ addEventListener(type, swallow, true);
581
+ addEventListener(
582
+ 'pointermove',
583
+ (e) => {
584
+ if (!picking) return;
585
+ const t = document.elementFromPoint(e.clientX, e.clientY);
586
+ if (!pickable(t)) return;
587
+ outline(t.closest(NEAR) || t, 'pick');
588
+ },
589
+ true
590
+ );
591
+
592
+ /* ----------------------------------- commenting right there, on what is selected */
593
+
594
+ // What the panel says of the captain's choices: whether a comment is a note or a question for
595
+ // the scribe, whether the page's keys (Space, M, C, Alt-click) are shortcuts, and whether the
596
+ // captain is speaking into the panel (a selection then goes with what is being said).
597
+ let prefs = { mode: 'note', keys: true, listening: false };
598
+ const mac = /Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent);
599
+ const selBox = shadow.querySelector('.sel');
600
+ const pop = shadow.querySelector('.pop');
601
+ const popQuote = pop.querySelector('.pq');
602
+ const popInput = pop.querySelector('input');
603
+ const popSend = pop.querySelector('.ps');
604
+ const popHint = pop.querySelector('.ph');
605
+ const fromUs = (e) => e.composedPath().includes(host);
606
+ // What the comment is about: words selected ({ range }) or a part of the page ({ node }).
607
+ let about = null;
608
+
609
+ function aboutPart() {
610
+ if (!about) return null;
611
+ if (about.node) return about.node.isConnected ? described(about.node) : null;
612
+ const quote = tidy(about.range.toString());
613
+ let anc = about.range.commonAncestorContainer;
614
+ if (anc && anc.nodeType !== 1) anc = anc.parentElement;
615
+ const d = anc ? described(anc) : null;
616
+ const r = about.range.getBoundingClientRect();
617
+ return {
618
+ label: \`the words “\${cut(quote, 50)}”\`,
619
+ tag: d ? d.tag : 'text',
620
+ text: d ? d.text : '',
621
+ secret: false,
622
+ selector: d ? d.selector : '',
623
+ rect: { x: r.left, y: r.top, w: r.width, h: r.height }
624
+ };
625
+ }
626
+ function drawAbout() {
627
+ selBox.textContent = '';
628
+ if (!about) return;
629
+ if (about.range) {
630
+ for (const r of about.range.getClientRects()) {
631
+ if (!r.width || !r.height) continue;
632
+ const i = document.createElement('i');
633
+ Object.assign(i.style, {
634
+ left: r.left + 'px',
635
+ top: r.top + 'px',
636
+ width: r.width + 'px',
637
+ height: r.height + 'px'
638
+ });
639
+ selBox.appendChild(i);
640
+ }
641
+ } else {
642
+ clearTimeout(hl._t);
643
+ outline(about.node, 'pick');
644
+ }
645
+ if (!pop.hidden) placePop();
646
+ }
647
+ function placePop() {
648
+ const r = about && (about.range || about.node).getBoundingClientRect();
649
+ if (!r) return;
650
+ const w = pop.offsetWidth || 340;
651
+ const h = pop.offsetHeight || 90;
652
+ const below = r.bottom + 10 + h < innerHeight || r.top - 10 - h < 0;
653
+ pop.style.left = Math.max(8, Math.min(r.left + r.width / 2 - w / 2, innerWidth - w - 8)) + 'px';
654
+ pop.style.top =
655
+ Math.max(8, Math.min(below ? r.bottom + 10 : r.top - 10 - h, innerHeight - h - 8)) + 'px';
656
+ }
657
+ function setPopMode(m, tell) {
658
+ prefs.mode = m === 'ask' ? 'ask' : 'note';
659
+ for (const b of pop.querySelectorAll('[data-m]'))
660
+ b.setAttribute('aria-checked', String(b.dataset.m === prefs.mode));
661
+ const ask = prefs.mode === 'ask';
662
+ popInput.placeholder = ask ? 'Ask the scribe about this…' : 'A note on this…';
663
+ popSend.textContent = ask ? 'Ask' : 'Add note';
664
+ popHint.textContent = \`Enter to \${ask ? 'ask' : 'add it'} · \${mac ? '⌘/' : 'Ctrl+/'} switches · Esc closes\`;
665
+ if (tell) send('mode', { mode: prefs.mode });
666
+ }
667
+ setPopMode('note');
668
+ /** Away with the bar and the marks of what it was about (and the page's selection, unless kept). */
669
+ function closePop(keepSelection) {
670
+ pop.hidden = true;
671
+ popInput.value = '';
672
+ popSend.disabled = true;
673
+ about = null;
674
+ selBox.textContent = '';
675
+ hl.className = 'hl';
676
+ if (!keepSelection) getSelection()?.removeAllRanges();
677
+ }
678
+ /**
679
+ * Words selected, or a part Alt-clicked: the bar to comment on it, beside it. While the captain
680
+ * is speaking into the panel, it goes with what is being said instead, and the speaking carries on.
681
+ */
682
+ function offer(next, focus) {
683
+ about = next;
684
+ const el = aboutPart();
685
+ if (!el) return closePop(true);
686
+ if (prefs.listening) {
687
+ pop.hidden = true;
688
+ drawAbout();
689
+ send('picked', { el, ...viewport() });
690
+ return;
691
+ }
692
+ popQuote.textContent = 'On ' + el.label;
693
+ pop.hidden = false;
694
+ drawAbout();
695
+ if (focus) popInput.focus();
696
+ }
697
+ function selected() {
698
+ const sel = getSelection();
699
+ if (!sel || sel.isCollapsed || !sel.rangeCount || typingIn(document.activeElement)) return null;
700
+ if (tidy(sel.toString()).length < 2) return null;
701
+ const range = sel.getRangeAt(0);
702
+ if (host.contains(range.commonAncestorContainer)) return null;
703
+ return { range: range.cloneRange() };
704
+ }
705
+ addEventListener(
706
+ 'mouseup',
707
+ (e) => {
708
+ if (picking || marking || e.button !== 0 || fromUs(e)) return;
709
+ // A comment being written stays where it is.
710
+ if (!pop.hidden && popInput.value.trim()) return;
711
+ setTimeout(() => {
712
+ const next = selected();
713
+ if (next) offer(next, false);
714
+ });
715
+ },
716
+ true
717
+ );
718
+ addEventListener(
719
+ 'pointerdown',
720
+ (e) => {
721
+ if (pop.hidden || fromUs(e) || popInput.value.trim()) return;
722
+ closePop(true);
723
+ },
724
+ true
725
+ );
726
+ const follow = () => about && drawAbout();
727
+ addEventListener('scroll', follow, { passive: true, capture: true });
728
+ addEventListener('resize', follow);
729
+ // The page's own key handlers do not hear what is typed in the bar.
730
+ for (const type of ['keydown', 'keyup', 'keypress'])
731
+ pop.addEventListener(type, (e) => e.stopPropagation());
732
+ popInput.addEventListener('input', () => (popSend.disabled = !popInput.value.trim()));
733
+ popInput.addEventListener('keydown', (e) => {
734
+ if (e.key === 'Escape') {
735
+ e.preventDefault();
736
+ closePop();
737
+ } else if (e.key === '/' && (e.metaKey || e.ctrlKey)) {
738
+ e.preventDefault();
739
+ setPopMode(prefs.mode === 'ask' ? 'note' : 'ask', true);
740
+ }
741
+ });
742
+ pop.querySelector('.px').addEventListener('click', () => closePop());
743
+ for (const b of pop.querySelectorAll('[data-m]'))
744
+ b.addEventListener('click', () => {
745
+ setPopMode(b.dataset.m, true);
746
+ popInput.focus();
747
+ });
748
+ pop.querySelector('form').addEventListener('submit', (e) => {
749
+ e.preventDefault();
750
+ const text = popInput.value.trim();
751
+ if (!text) return;
752
+ send('inline', { mode: prefs.mode, said: text, el: aboutPart(), ...viewport() });
753
+ // A question: the panel shows the scribe's answer.
754
+ if (prefs.mode === 'ask' && !open) setOpen(true);
755
+ closePop();
756
+ });
757
+
758
+ /* --------------------------------------------------------- marking areas */
759
+
760
+ // While marking, the page dims and takes no input: a layer over it catches the pointer, and
761
+ // each drag marks a rectangle, highlighted as it is drawn. Marked areas stay on the page they
762
+ // were marked on for the rest of the session.
763
+ let marking = false;
764
+ let areas = store.get('areas') || [];
765
+ // Numbered for the session, though each goes from the page with the comment made on it.
766
+ let areaN = store.get('areaN') || areas.length;
767
+ const here = () => location.pathname + location.search + location.hash;
768
+ function drawAreas() {
769
+ areasBox.textContent = '';
770
+ for (const a of areas) {
771
+ if (a.page !== here()) continue;
772
+ const d = document.createElement('div');
773
+ d.className = 'area';
774
+ Object.assign(d.style, {
775
+ left: a.x - scrollX + 'px',
776
+ top: a.y - scrollY + 'px',
777
+ width: a.w + 'px',
778
+ height: a.h + 'px'
779
+ });
780
+ const n = document.createElement('span');
781
+ n.textContent = String(a.n);
782
+ d.appendChild(n);
783
+ areasBox.appendChild(d);
784
+ }
785
+ }
786
+ addEventListener('scroll', drawAreas, { passive: true, capture: true });
787
+ addEventListener('resize', drawAreas);
788
+ addEventListener('hashchange', drawAreas);
789
+ addEventListener('popstate', drawAreas);
790
+ function setMarking(on) {
791
+ marking = on;
792
+ layer.hidden = !on;
793
+ markTip.hidden = !on;
794
+ // On a phone the sheet would cover the page being marked.
795
+ if (on && phone) setOpen(false);
796
+ if (on && document.activeElement && document.activeElement !== document.body)
797
+ document.activeElement.blur();
798
+ }
799
+ markTip.querySelector('button').addEventListener('click', () => {
800
+ setMarking(false);
801
+ send('marking', { on: false });
802
+ });
803
+ let live = null;
804
+ layer.addEventListener('pointerdown', (e) => {
805
+ if (e.button !== 0) return;
806
+ e.preventDefault();
807
+ try {
808
+ layer.setPointerCapture(e.pointerId);
809
+ } catch {
810
+ // a pointer the browser will not capture: the drag still works while it stays over
811
+ }
812
+ layer.classList.add('drawing');
813
+ live = { x: e.clientX, y: e.clientY, el: document.createElement('div') };
814
+ live.el.className = 'area live';
815
+ areasBox.appendChild(live.el);
816
+ });
817
+ const liveRect = (e) => ({
818
+ x: Math.min(live.x, e.clientX),
819
+ y: Math.min(live.y, e.clientY),
820
+ w: Math.abs(e.clientX - live.x),
821
+ h: Math.abs(e.clientY - live.y)
822
+ });
823
+ layer.addEventListener('pointermove', (e) => {
824
+ if (!live) return;
825
+ const r = liveRect(e);
826
+ Object.assign(live.el.style, {
827
+ left: r.x + 'px',
828
+ top: r.y + 'px',
829
+ width: r.w + 'px',
830
+ height: r.h + 'px'
831
+ });
832
+ });
833
+ const finishDrag = (e) => {
834
+ if (!live) return;
835
+ const r = liveRect(e);
836
+ live.el.remove();
837
+ live = null;
838
+ layer.classList.remove('drawing');
839
+ if (r.w < 8 || r.h < 8) return;
840
+ const n = ++areaN;
841
+ areas.push({ n, page: here(), x: r.x + scrollX, y: r.y + scrollY, w: r.w, h: r.h });
842
+ store.set('areas', areas);
843
+ store.set('areaN', areaN);
844
+ drawAreas();
845
+ send('area', { rect: r, n, ...viewport() });
846
+ };
847
+ layer.addEventListener('pointerup', finishDrag);
848
+ layer.addEventListener('pointercancel', () => {
849
+ if (live) live.el.remove();
850
+ live = null;
851
+ layer.classList.remove('drawing');
852
+ });
853
+
854
+ /* ---------------------------------------------------------- the timeline */
855
+
856
+ // While recording, the session along the bottom of the page: what was done, said and marked.
857
+ // It is only to look at: it lets the pointer through, and steps aside when the pointer comes
858
+ // near so the page under it can be seen and used.
859
+ let marks = [];
860
+ const track = tl.querySelector('.track');
861
+ const tlTime = tl.querySelector('.t');
862
+ function drawTimeline() {
863
+ if (tl.hidden || !since) return;
864
+ const now = Date.now() - since;
865
+ const span = Math.max(60_000, now * 1.08);
866
+ const pct = (t) => Math.min(100, Math.max(0, (t / span) * 100)) + '%';
867
+ track.textContent = '';
868
+ for (const m of marks) {
869
+ const i = document.createElement('i');
870
+ i.className = m.kind;
871
+ i.style.left = pct(m.t);
872
+ track.appendChild(i);
873
+ }
874
+ const nowMark = document.createElement('i');
875
+ nowMark.className = 'now';
876
+ nowMark.style.left = pct(now);
877
+ track.appendChild(nowMark);
878
+ tlTime.textContent = clock.textContent;
879
+ }
880
+ addEventListener(
881
+ 'pointermove',
882
+ (e) => {
883
+ badge.classList.toggle('away', e.clientY < 56);
884
+ if (tl.hidden) return;
885
+ tl.classList.toggle('away', e.clientY > innerHeight - 90);
886
+ },
887
+ { passive: true, capture: true }
888
+ );
889
+
890
+ /* --------------------------------------------------------------- the chime */
891
+
892
+ // The same soft tone as Wheelhouse's push to talk everywhere (lib/voice/spacehold.ts): rising
893
+ // when the mic is live, lower when it closes. The page plays it, as the key was pressed here.
894
+ let audio = null;
895
+ function chime(on) {
896
+ try {
897
+ const AC = window.AudioContext || window.webkitAudioContext;
898
+ if (!AC) return;
899
+ audio = audio || new AC();
900
+ const t = audio.currentTime;
901
+ const osc = audio.createOscillator();
902
+ const gain = audio.createGain();
903
+ osc.type = 'sine';
904
+ osc.frequency.setValueAtTime(on ? 660 : 520, t);
905
+ osc.frequency.exponentialRampToValueAtTime(on ? 880 : 390, t + 0.12);
906
+ gain.gain.setValueAtTime(0.0001, t);
907
+ gain.gain.exponentialRampToValueAtTime(0.08, t + 0.02);
908
+ gain.gain.exponentialRampToValueAtTime(0.0001, t + 0.22);
909
+ osc.connect(gain).connect(audio.destination);
910
+ osc.start(t);
911
+ osc.stop(t + 0.24);
912
+ } catch {
913
+ // no sound here: the button still says Listening
914
+ }
915
+ }
916
+
917
+ function ripple(x, y) {
918
+ const r = document.createElement('div');
919
+ r.className = 'ripple';
920
+ r.style.left = x + 'px';
921
+ r.style.top = y + 'px';
922
+ shadow.appendChild(r);
923
+ setTimeout(() => r.remove(), 650);
924
+ }
925
+
926
+ /* ------------------------------------------------------------ what happens */
927
+
928
+ addEventListener(
929
+ 'click',
930
+ (e) => {
931
+ if (picking && pickable(e.target)) {
932
+ // The part the captain's comment is about: taken, not clicked.
933
+ swallow(e);
934
+ const node = e.target.closest(NEAR) || e.target;
935
+ pick(false);
936
+ outline(node);
937
+ clearTimeout(hl._t);
938
+ hl._t = setTimeout(() => (hl.className = 'hl'), 2200);
939
+ send('picked', { el: described(node), at: { x: e.clientX, y: e.clientY }, ...viewport() });
940
+ setOpen(true);
941
+ return;
942
+ }
943
+ if (quickPick(e) && pickable(e.target)) {
944
+ swallow(e);
945
+ offer({ node: e.target.closest(NEAR) || e.target }, true);
946
+ return;
947
+ }
948
+ if (!recording || !pickable(e.target)) return;
949
+ const d = described(e.target);
950
+ ripple(e.clientX, e.clientY);
951
+ send('click', { el: d, at: { x: e.clientX, y: e.clientY }, ...viewport() });
952
+ },
953
+ true
954
+ );
955
+
956
+ const typing = new WeakMap();
957
+ addEventListener(
958
+ 'input',
959
+ (e) => {
960
+ if (!recording) return;
961
+ const el = e.target;
962
+ if (!(
963
+ el instanceof HTMLInputElement ||
964
+ el instanceof HTMLTextAreaElement ||
965
+ el.isContentEditable
966
+ ))
967
+ return;
968
+ if (
969
+ el instanceof HTMLInputElement &&
970
+ ['checkbox', 'radio', 'range', 'color'].includes(el.type)
971
+ )
972
+ return;
973
+ clearTimeout(typing.get(el));
974
+ typing.set(
975
+ el,
976
+ setTimeout(() => {
977
+ const d = described(el);
978
+ const value = el.isContentEditable ? el.textContent : el.value;
979
+ const hidden = mask || (d && d.secret);
980
+ send('input', {
981
+ el: d,
982
+ length: (value || '').length,
983
+ value: hidden ? null : cut(tidy(value), 80)
984
+ });
985
+ }, 900)
986
+ );
987
+ },
988
+ true
989
+ );
990
+
991
+ addEventListener(
992
+ 'change',
993
+ (e) => {
994
+ if (!recording) return;
995
+ const el = e.target;
996
+ let value = null;
997
+ if (el instanceof HTMLSelectElement) value = tidy(el.selectedOptions[0]?.textContent);
998
+ else if (el instanceof HTMLInputElement && (el.type === 'checkbox' || el.type === 'radio'))
999
+ value = el.checked ? 'on' : 'off';
1000
+ else return;
1001
+ send('choose', { el: described(el), value });
1002
+ },
1003
+ true
1004
+ );
1005
+
1006
+ let scrollTimer = 0;
1007
+ addEventListener(
1008
+ 'scroll',
1009
+ (e) => {
1010
+ if (!recording) return;
1011
+ clearTimeout(scrollTimer);
1012
+ scrollTimer = setTimeout(() => {
1013
+ const t = e.target === document ? document.scrollingElement : e.target;
1014
+ if (!t || !t.scrollHeight) return;
1015
+ const max = t.scrollHeight - t.clientHeight;
1016
+ if (max < 40) return;
1017
+ send('scroll', { pct: Math.round((t.scrollTop / max) * 100) });
1018
+ }, 700);
1019
+ },
1020
+ true
1021
+ );
1022
+
1023
+ let lastHover = null;
1024
+ let hoverAt = 0;
1025
+ addEventListener(
1026
+ 'pointermove',
1027
+ (e) => {
1028
+ if (!recording) return;
1029
+ const now = performance.now();
1030
+ if (now - hoverAt < 180) return;
1031
+ hoverAt = now;
1032
+ const under = document.elementFromPoint(e.clientX, e.clientY);
1033
+ const d = pickable(under) ? described(under) : null;
1034
+ const key = d ? d.selector : null;
1035
+ if (key === lastHover) return;
1036
+ lastHover = key;
1037
+ send('hover', { el: d, ...viewport() });
1038
+ },
1039
+ true
1040
+ );
1041
+
1042
+ // Page changes: full loads, and single-page apps moving with history or the hash.
1043
+ let lastUrl = location.href;
1044
+ const moved = (how) => {
1045
+ if (location.href === lastUrl) return;
1046
+ lastUrl = location.href;
1047
+ if (recording) send('nav', { how });
1048
+ };
1049
+ for (const name of ['pushState', 'replaceState']) {
1050
+ const orig = history[name];
1051
+ history[name] = function (...args) {
1052
+ const out = orig.apply(this, args);
1053
+ setTimeout(() => moved(name === 'pushState' ? 'link' : 'replace'));
1054
+ return out;
1055
+ };
1056
+ }
1057
+ addEventListener('popstate', () => moved('back'));
1058
+ addEventListener('hashchange', () => moved('link'));
1059
+
1060
+ // Trouble on the page: errors, rejected promises, console errors and failed requests
1061
+ // (watchTrouble, from lib/trouble.js, which proxy.ts places in front of this script).
1062
+ watchTrouble(
1063
+ (kind, message, extra = {}) =>
1064
+ recording && send('error', { kind, message: cut(tidy(String(message)), 300), ...extra })
1065
+ );
1066
+
1067
+ // The talk key, as everywhere in Wheelhouse (lib/voice/spacehold.ts): hold Space for 2 seconds
1068
+ // to talk, and let go to stop; a shorter press is an ordinary Space. In a text box the press
1069
+ // types its space as usual, and when the hold turns into talking that space comes out again.
1070
+ const HOLD_MS = 2000;
1071
+ let spaceTimer = 0;
1072
+ let spaceWaiting = false;
1073
+ let spaceTalking = false;
1074
+ const typingIn = (t) =>
1075
+ !!t && (t.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName || ''));
1076
+ function untypeSpace(el) {
1077
+ if (el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement) {
1078
+ const at = el.selectionStart ?? 0;
1079
+ if (at === 0 || at !== el.selectionEnd || !/[ \\u00a0]/.test(el.value[at - 1])) return;
1080
+ el.setRangeText('', at - 1, at, 'end');
1081
+ el.dispatchEvent(new Event('input', { bubbles: true }));
1082
+ }
1083
+ }
1084
+ function spaceWait() {
1085
+ clearTimeout(spaceTimer);
1086
+ spaceWaiting = false;
1087
+ }
1088
+ function spaceUp(e) {
1089
+ spaceWait();
1090
+ if (!spaceTalking) return;
1091
+ spaceTalking = false;
1092
+ // The press was for talking, not for the button or link that has focus.
1093
+ if (e) e.preventDefault();
1094
+ chime(false);
1095
+ send('key', { key: 'talk', down: false });
1096
+ }
1097
+ addEventListener(
1098
+ 'keydown',
1099
+ (e) => {
1100
+ // The bar's own keys are its own.
1101
+ if (fromUs(e)) return;
1102
+ const space =
1103
+ prefs.keys && e.code === 'Space' && !e.metaKey && !e.ctrlKey && !e.altKey && !e.shiftKey;
1104
+ if (space && e.repeat) {
1105
+ // Held Space neither types a row of spaces nor scrolls while it waits.
1106
+ if (spaceWaiting || spaceTalking) e.preventDefault();
1107
+ } else if (space && !spaceTalking && !picking && recording) {
1108
+ const typedIn = typingIn(e.target) ? e.target : null;
1109
+ spaceWait();
1110
+ spaceWaiting = true;
1111
+ spaceTimer = setTimeout(() => {
1112
+ spaceWaiting = false;
1113
+ spaceTalking = true;
1114
+ if (typedIn) untypeSpace(typedIn);
1115
+ chime(true);
1116
+ send('key', { key: 'talk', down: true });
1117
+ }, HOLD_MS);
1118
+ } else if (!space && spaceWaiting) {
1119
+ // Another key while Space is still down is fast typing, not a hold.
1120
+ spaceWait();
1121
+ }
1122
+ const plain = !e.repeat && !e.metaKey && !e.ctrlKey && !e.altKey && !typingIn(e.target);
1123
+ if (e.key === 'Escape' && !pop.hidden) closePop();
1124
+ else if (e.key === 'Escape' && picking) {
1125
+ pick(false);
1126
+ send('picked', { el: null });
1127
+ setOpen(true);
1128
+ } else if (e.key === 'Escape' && marking) {
1129
+ setMarking(false);
1130
+ send('marking', { on: false });
1131
+ } else if (e.key === 'Escape') send('key', { key: 'Escape', down: true });
1132
+ else if ((e.key === 'm' || e.key === 'M') && plain && prefs.keys && recording)
1133
+ // M: mark an area (and M again, or Esc, to stop).
1134
+ send('key', { key: 'mark' });
1135
+ else if ((e.key === 'c' || e.key === 'C') && plain && prefs.keys && !marking && !picking) {
1136
+ // C: comment on the words selected, right there; with none, point at a part for the panel.
1137
+ e.preventDefault();
1138
+ const next = selected();
1139
+ if (next) offer(next, true);
1140
+ else send('key', { key: 'pick' });
1141
+ }
1142
+ // While marking, the page takes no keys either.
1143
+ if (marking) {
1144
+ e.stopPropagation();
1145
+ e.preventDefault();
1146
+ }
1147
+ },
1148
+ true
1149
+ );
1150
+ addEventListener(
1151
+ 'keyup',
1152
+ (e) => {
1153
+ if (fromUs(e)) return;
1154
+ if (e.code === 'Space') spaceUp(e);
1155
+ if (marking) {
1156
+ e.stopPropagation();
1157
+ e.preventDefault();
1158
+ }
1159
+ },
1160
+ true
1161
+ );
1162
+ addEventListener('blur', () => spaceUp(null));
1163
+
1164
+ /* ------------------------------------------------------- Wheelhouse asking */
1165
+
1166
+ let shooter = null;
1167
+ function loadShooter() {
1168
+ if (shooter) return shooter;
1169
+ shooter = new Promise((ok, fail) => {
1170
+ const s = document.createElement('script');
1171
+ s.src = '/__wheelhouse/live-review/screenshot.js';
1172
+ s.onload = () => ok(window.modernScreenshot);
1173
+ s.onerror = fail;
1174
+ (document.head || document.documentElement).appendChild(s);
1175
+ });
1176
+ return shooter;
1177
+ }
1178
+
1179
+ async function shoot(id, selector, text) {
1180
+ try {
1181
+ const ms = await loadShooter();
1182
+ hl.classList.remove('on');
1183
+ const root = document.documentElement;
1184
+ const sx = scrollX,
1185
+ sy = scrollY,
1186
+ vw = innerWidth,
1187
+ vh = innerHeight;
1188
+ const scale = Math.min(1, 1100 / vw);
1189
+ const canvas = await ms.domToCanvas(root, {
1190
+ width: vw,
1191
+ height: vh,
1192
+ scale,
1193
+ backgroundColor: getComputedStyle(document.body).backgroundColor || '#ffffff',
1194
+ style: { transform: \`translate(\${-sx}px, \${-sy}px)\` },
1195
+ filter: (n) => !(n.nodeType === 1 && n.hasAttribute && n.hasAttribute('data-wh-recorder')),
1196
+ timeout: 4000
1197
+ });
1198
+ let el = null;
1199
+ if (selector) {
1200
+ try {
1201
+ const node = document.querySelector(selector);
1202
+ const d = node && described(node);
1203
+ if (d && (!text || d.text === text)) el = d;
1204
+ } catch {
1205
+ // a selector the page cannot read: no outline
1206
+ }
1207
+ }
1208
+ send('shot', { id, image: canvas.toDataURL('image/jpeg', 0.82), vw, vh, el });
1209
+ } catch (err) {
1210
+ send('shot', { id, image: null, error: String(err && err.message) });
1211
+ }
1212
+ }
1213
+
1214
+ addEventListener('message', (e) => {
1215
+ if (!panel || e.source !== panel.contentWindow || e.origin !== PARENT) return;
1216
+ const m = e.data;
1217
+ if (!m || m.__wh !== 1) return;
1218
+ if (m.type === 'ready') {
1219
+ // The panel has loaded (again, after the page changed): what waited goes to it now.
1220
+ ready = true;
1221
+ const waiting = queued;
1222
+ queued = [];
1223
+ for (const q of waiting) panel.contentWindow.postMessage(q, PARENT);
1224
+ send('hello', { ...viewport() });
1225
+ } else if (m.type === 'record') {
1226
+ recording = !!m.on;
1227
+ mask = m.mask !== false;
1228
+ if (!recording) {
1229
+ hl.className = 'hl';
1230
+ if (marking) setMarking(false);
1231
+ }
1232
+ } else if (m.type === 'state') {
1233
+ showState(m);
1234
+ } else if (m.type === 'panel') {
1235
+ if (typeof m.large === 'boolean') large = m.large;
1236
+ if (typeof m.open === 'boolean') setOpen(m.open);
1237
+ else place();
1238
+ } else if (m.type === 'mark') {
1239
+ setMarking(!!m.on);
1240
+ } else if (m.type === 'timeline') {
1241
+ marks = Array.isArray(m.items) ? m.items : [];
1242
+ drawTimeline();
1243
+ } else if (m.type === 'areas' && m.clear) {
1244
+ areas = [];
1245
+ areaN = 0;
1246
+ store.set('areas', areas);
1247
+ store.set('areaN', 0);
1248
+ drawAreas();
1249
+ } else if (m.type === 'prefs') {
1250
+ prefs = { ...prefs, keys: m.keys !== false, listening: !!m.listening };
1251
+ setPopMode(m.mode);
1252
+ } else if (m.type === 'clear') {
1253
+ // A comment was made: the marks of what it was about go (a comment being written stays).
1254
+ if (pop.hidden || !popInput.value.trim()) closePop();
1255
+ areas = [];
1256
+ store.set('areas', areas);
1257
+ drawAreas();
1258
+ } else if (m.type === 'pick') {
1259
+ pick(!!m.on);
1260
+ } else if (m.type === 'leave') {
1261
+ // Back to Wheelhouse: the preview opened in a tab of its own, so close it; the Wheelhouse tab
1262
+ // it came from is still there. A tab the browser will not close goes to Wheelhouse instead.
1263
+ window.close();
1264
+ setTimeout(() => location.assign(PARENT + REVIEW.back), 250);
1265
+ } else if (m.type === 'gettext') {
1266
+ // What the page says right now, for the scribe to answer questions about it (never typed values).
1267
+ const text = (document.body ? document.body.innerText : '')
1268
+ .replace(/\\n{3,}/g, '\\n\\n')
1269
+ .slice(0, 6000);
1270
+ send('text', { text });
1271
+ } else if (m.type === 'shoot') {
1272
+ shoot(m.id, m.selector, m.text);
1273
+ } else if (m.type === 'highlight') {
1274
+ let node = null;
1275
+ try {
1276
+ node = m.selector && document.querySelector(m.selector);
1277
+ } catch {
1278
+ // a selector the page cannot read: nothing to highlight
1279
+ }
1280
+ if (!node) return (hl.className = 'hl');
1281
+ node.scrollIntoView({ block: 'nearest', behavior: 'smooth' });
1282
+ outline(node);
1283
+ clearTimeout(hl._t);
1284
+ hl._t = setTimeout(() => (hl.className = 'hl'), 2200);
1285
+ }
1286
+ });
1287
+ })();
1288
+ `;
1289
+ const troubleSource = "/*\n * Trouble on a page: uncaught errors, resources that fail to load, rejected\n * promises nobody handled, console errors and failed requests, each handed to\n * `report` as it happens. Plain browser JavaScript with no imports, so it can\n * be shared as is by two scripts:\n *\n * - the live review recorder (server/livereview/recorder.js), which Wheelhouse\n * serves into a preview's pages with this file's source placed in front of\n * it (the `export` taken off), and\n * - Soundings' beacon in Wheelhouse's own pages (client/beacon.ts), which\n * imports it.\n *\n * Keep it that way: self-contained, no imports, no TypeScript syntax.\n */\n\n/**\n * @typedef {'exception' | 'resource' | 'console' | 'network'} TroubleKind\n * @typedef {(kind: TroubleKind, message: string, extra?: { source?: string | null }) => void} TroubleReport\n */\n\n/**\n * Start watching this window for trouble. `skip` names request URLs not to\n * report (the reporter's own, so a failing report does not report itself).\n *\n * @param {TroubleReport} report\n * @param {(url: string) => boolean} [skip]\n */\nexport function watchTrouble(report, skip) {\n const shortUrl = (/** @type {unknown} */ u) => {\n try {\n const x = new URL(String(u), location.href);\n return x.pathname + x.search;\n } catch {\n return String(u);\n }\n };\n const safeJson = (/** @type {unknown} */ v) => {\n try {\n return JSON.stringify(v);\n } catch {\n return String(v);\n }\n };\n addEventListener(\n 'error',\n (e) => {\n const target = /** @type {any} */ (e.target);\n if (target && target !== window && target.tagName) {\n report(\n 'resource',\n `Could not load ${target.tagName.toLowerCase()} ${target.src || target.href || ''}`\n );\n } else {\n const ev = /** @type {ErrorEvent} */ (e);\n report('exception', ev.message, {\n source: ev.filename ? `${ev.filename.split('/').pop()}:${ev.lineno}` : null\n });\n }\n },\n true\n );\n addEventListener('unhandledrejection', (e) =>\n report('exception', `Unhandled: ${e.reason && e.reason.message ? e.reason.message : e.reason}`)\n );\n const consoleError = console.error;\n console.error = function (...args) {\n report(\n 'console',\n args\n .map((a) =>\n a instanceof Error ? a.message : typeof a === 'object' ? safeJson(a) : String(a)\n )\n .join(' ')\n );\n return consoleError.apply(this, args);\n };\n const ofetch = window.fetch;\n if (ofetch)\n window.fetch = async function (input, init) {\n const req = /** @type {any} */ (input);\n const url = typeof input === 'string' ? input : input instanceof URL ? input.href : req?.url;\n const method = (init && init.method) || (req && req.method) || 'GET';\n if (skip && url && skip(String(url))) return ofetch.call(this, input, init);\n try {\n const res = await ofetch.call(this, input, init);\n if (res.status >= 400) report('network', `${method} ${shortUrl(url)} → ${res.status}`);\n return res;\n } catch (err) {\n // A request the page itself called off (leaving a page, a newer search) is not trouble.\n if (!(err && /** @type {any} */ (err).name === 'AbortError'))\n report(\n 'network',\n `${method} ${shortUrl(url)} failed (${err && /** @type {any} */ (err).message})`\n );\n throw err;\n }\n };\n}\n";
1290
+ const shooterSource = '(function(y,v){typeof exports=="object"&&typeof module!="undefined"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(y=typeof globalThis!="undefined"?globalThis:y||self,v(y.modernScreenshot={}))})(this,function(y){"use strict";var rr=Object.defineProperty,nr=Object.defineProperties;var or=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var xe=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable;var Oe=Math.pow,Le=(y,v,N)=>v in y?rr(y,v,{enumerable:!0,configurable:!0,writable:!0,value:N}):y[v]=N,D=(y,v)=>{for(var N in v||(v={}))xe.call(v,N)&&Le(y,N,v[N]);if(Z)for(var N of Z(v))Me.call(v,N)&&Le(y,N,v[N]);return y},M=(y,v)=>nr(y,or(v));var je=(y,v)=>{var N={};for(var R in y)xe.call(y,R)&&v.indexOf(R)<0&&(N[R]=y[R]);if(y!=null&&Z)for(var R of Z(y))v.indexOf(R)<0&&Me.call(y,R)&&(N[R]=y[R]);return N};var C=(y,v,N)=>new Promise((R,O)=>{var X=P=>{try{q(N.next(P))}catch(W){O(W)}},j=P=>{try{q(N.throw(P))}catch(W){O(W)}},q=P=>P.done?R(P.value):Promise.resolve(P.value).then(X,j);q((N=N.apply(y,v)).next())});var Be;function v(e,t){return e[13]=1,e[14]=t>>8,e[15]=t&255,e[16]=t>>8,e[17]=t&255,e}const N=112,R=72,O=89,X=115;let j;function q(){const e=new Int32Array(256);for(let t=0;t<256;t++){let r=t;for(let n=0;n<8;n++)r=r&1?3988292384^r>>>1:r>>>1;e[t]=r}return e}function P(e){let t=-1;j||(j=q());for(let r=0;r<e.length;r++)t=j[(t^e[r])&255]^t>>>8;return t^-1}function W(e){const t=e.length-1;for(let r=t;r>=4;r--)if(e[r-4]===9&&e[r-3]===N&&e[r-2]===R&&e[r-1]===O&&e[r]===X)return r-3;return 0}function ae(e,t,r=!1){const n=new Uint8Array(13);t*=39.3701,n[0]=N,n[1]=R,n[2]=O,n[3]=X,n[4]=t>>>24,n[5]=t>>>16,n[6]=t>>>8,n[7]=t&255,n[8]=n[4],n[9]=n[5],n[10]=n[6],n[11]=n[7],n[12]=1;const i=P(n),a=new Uint8Array(4);if(a[0]=i>>>24,a[1]=i>>>16,a[2]=i>>>8,a[3]=i&255,r){const s=W(e);return e.set(n,s),e.set(a,s+13),e}else{const s=new Uint8Array(4);s[0]=0,s[1]=0,s[2]=0,s[3]=9;const o=new Uint8Array(54);return o.set(e,0),o.set(s,33),o.set(n,37),o.set(a,50),o}}const qe="AAlwSFlz",We="AAAJcEhZ",He="AAAACXBI";function Ve(e){let t=e.indexOf(qe);return t===-1&&(t=e.indexOf(We)),t===-1&&(t=e.indexOf(He)),t}const se="[modern-screenshot]",U=typeof window!="undefined",ze=U&&"Worker"in window,ie=U&&"atob"in window,Xe=U&&"btoa"in window,ee=U?(Be=window.navigator)==null?void 0:Be.userAgent:"",le=ee.includes("Chrome"),G=ee.includes("AppleWebKit")&&!le,te=ee.includes("Firefox"),Ge=e=>e&&"__CONTEXT__"in e,Ye=e=>e.constructor.name==="CSSFontFaceRule",Je=e=>e.constructor.name==="CSSImportRule",Ke=e=>e.constructor.name==="CSSLayerBlockRule",I=e=>e.nodeType===1,H=e=>typeof e.className=="object",ce=e=>e.tagName==="image",Qe=e=>e.tagName==="use",V=e=>I(e)&&typeof e.style!="undefined"&&!H(e),Ze=e=>e.nodeType===8,et=e=>e.nodeType===3,$=e=>e.tagName==="IMG",Y=e=>e.tagName==="VIDEO",tt=e=>e.tagName==="CANVAS",rt=e=>e.tagName==="TEXTAREA",nt=e=>e.tagName==="INPUT",ot=e=>e.tagName==="STYLE",at=e=>e.tagName==="SCRIPT",st=e=>e.tagName==="SELECT",it=e=>e.tagName==="SLOT",lt=e=>e.tagName==="IFRAME",ct=(...e)=>console.warn(se,...e);function ut(e){var r;const t=(r=e==null?void 0:e.createElement)==null?void 0:r.call(e,"canvas");return t&&(t.height=t.width=1),!!t&&"toDataURL"in t&&!!t.toDataURL("image/webp").includes("image/webp")}const re=e=>e.startsWith("data:");function ue(e,t){if(e.match(/^[a-z]+:\\/\\//i))return e;if(U&&e.match(/^\\/\\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i)||!U)return e;const r=J().implementation.createHTMLDocument(),n=r.createElement("base"),i=r.createElement("a");return r.head.appendChild(n),r.body.appendChild(i),t&&(n.href=t),i.href=e,i.href}function J(e){var t;return(t=e&&I(e)?e==null?void 0:e.ownerDocument:e)!=null?t:window.document}const K="http://www.w3.org/2000/svg";function fe(e,t,r){const n=J(r).createElementNS(K,"svg");return n.setAttributeNS(null,"width",e.toString()),n.setAttributeNS(null,"height",t.toString()),n.setAttributeNS(null,"viewBox",`0 0 ${e} ${t}`),n}function de(e,t){let r=new XMLSerializer().serializeToString(e);return t&&(r=r.replace(/[\\u0000-\\u0008\\v\\f\\u000E-\\u001F\\uD800-\\uDFFF\\uFFFE\\uFFFF]/gu,"")),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(r)}`}function ft(e,t="image/png",r=1){return C(this,null,function*(){try{return yield new Promise((n,i)=>{e.toBlob(a=>{a?n(a):i(new Error("Blob is null"))},t,r)})}catch(n){if(ie)return dt(e.toDataURL(t,r));throw n}})}function dt(e){var o,c;const[t,r]=e.split(","),n=(c=(o=t.match(/data:(.+);/))==null?void 0:o[1])!=null?c:void 0,i=window.atob(r),a=i.length,s=new Uint8Array(a);for(let u=0;u<a;u+=1)s[u]=i.charCodeAt(u);return new Blob([s],{type:n})}function ge(e,t){return new Promise((r,n)=>{const i=new FileReader;i.onload=()=>r(i.result),i.onerror=()=>n(i.error),i.onabort=()=>n(new Error(`Failed read blob to ${t}`)),t==="dataUrl"?i.readAsDataURL(e):t==="arrayBuffer"&&i.readAsArrayBuffer(e)})}const gt=e=>ge(e,"dataUrl"),mt=e=>ge(e,"arrayBuffer");function _(e,t){const r=J(t).createElement("img");return r.decoding="sync",r.loading="eager",r.src=e,r}function L(e,t){return new Promise(r=>{const{timeout:n,ownerDocument:i,onError:a,onWarn:s}=t!=null?t:{},o=typeof e=="string"?_(e,J(i)):e;let c=null,u=null;function l(){r(o),c&&clearTimeout(c),u==null||u()}if(n&&(c=setTimeout(l,n)),Y(o)){const d=o.currentSrc||o.src;if(!d)return o.poster?L(o.poster,t).then(r):l();if(o.readyState>=2)return l();const m=l,f=h=>{s==null||s("Failed video load",d,h),a==null||a(h),l()};u=()=>{o.removeEventListener("loadeddata",m),o.removeEventListener("error",f)},o.addEventListener("loadeddata",m,{once:!0}),o.addEventListener("error",f,{once:!0})}else{const d=ce(o)?o.href.baseVal:o.currentSrc||o.src;if(!d)return l();const m=()=>C(this,null,function*(){if($(o)&&"decode"in o)try{yield o.decode()}catch(h){s==null||s("Failed to decode image, trying to render anyway",o.dataset.originalSrc||d,h)}l()}),f=h=>{s==null||s("Failed image load",o.dataset.originalSrc||d,h),l()};if($(o)&&o.complete)return m();u=()=>{o.removeEventListener("load",m),o.removeEventListener("error",f)},o.addEventListener("load",m,{once:!0}),o.addEventListener("error",f,{once:!0})}})}function me(e,t){return C(this,null,function*(){V(e)&&($(e)||Y(e)?yield L(e,t):yield Promise.all(["img","video"].flatMap(r=>Array.from(e.querySelectorAll(r)).map(n=>L(n,t)))))})}const he=function(){let t=0;const r=()=>`0000${(Math.random()*Oe(36,4)<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${r()}${t}`)}();function we(e){return e==null?void 0:e.split(",").map(t=>t.trim().replace(/"|\'/g,"").toLowerCase()).filter(Boolean)}let pe=0;function ht(e){const t=`${se}[#${pe}]`;return pe++,{time:r=>e&&console.time(`${t} ${r}`),timeEnd:r=>e&&console.timeEnd(`${t} ${r}`),warn:(...r)=>e&&ct(...r)}}function wt(e){return{cache:e?"no-cache":"force-cache"}}function k(e,t){return C(this,null,function*(){return Ge(e)?e:ye(e,M(D({},t),{autoDestruct:!0}))})}function ye(e,t){return C(this,null,function*(){var f,h,g,p,E;const{scale:r=1,workerUrl:n,workerNumber:i=1}=t||{},a=!!(t!=null&&t.debug),s=(f=t==null?void 0:t.features)!=null?f:!0,o=(h=e.ownerDocument)!=null?h:U?window.document:void 0,c=(p=(g=e.ownerDocument)==null?void 0:g.defaultView)!=null?p:U?window:void 0,u=new Map,l=M(D({width:0,height:0,quality:1,type:"image/png",scale:r,backgroundColor:null,style:null,filter:null,maximumCanvasSize:0,timeout:3e4,progress:null,debug:a,fetch:D({requestInit:wt((E=t==null?void 0:t.fetch)==null?void 0:E.bypassingCache),placeholderImage:"data:image/png;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",bypassingCache:!1},t==null?void 0:t.fetch),fetchFn:null,font:{},drawImageInterval:100,workerUrl:null,workerNumber:i,onCloneEachNode:null,onCloneNode:null,onEmbedNode:null,onCreateForeignObjectSvg:null,includeStyleProperties:null,autoDestruct:!1},t),{__CONTEXT__:!0,log:ht(a),node:e,ownerDocument:o,ownerWindow:c,dpi:r===1?null:96*r,svgStyleElement:be(o),svgDefsElement:o==null?void 0:o.createElementNS(K,"defs"),svgStyles:new Map,defaultComputedStyles:new Map,workers:[...Array.from({length:ze&&n&&i?i:0})].map(()=>{try{const b=new Worker(n);return b.onmessage=w=>C(this,null,function*(){var A,F,B,$e;const{url:S,result:T}=w.data;T?(F=(A=u.get(S))==null?void 0:A.resolve)==null||F.call(A,T):($e=(B=u.get(S))==null?void 0:B.reject)==null||$e.call(B,new Error(`Error receiving message from worker: ${S}`))}),b.onmessageerror=w=>{var T,A;const{url:S}=w.data;(A=(T=u.get(S))==null?void 0:T.reject)==null||A.call(T,new Error(`Error receiving message from worker: ${S}`))},b}catch(b){return l.log.warn("Failed to new Worker",b),null}}).filter(Boolean),fontFamilies:new Map,fontCssTexts:new Map,acceptOfImage:`${[ut(o)&&"image/webp","image/svg+xml","image/*","*/*"].filter(Boolean).join(",")};q=0.8`,requests:u,drawImageCount:0,tasks:[],features:s,isEnable:b=>{var w,S;return b==="restoreScrollPosition"?typeof s=="boolean"?!1:(w=s[b])!=null?w:!1:typeof s=="boolean"?s:(S=s[b])!=null?S:!0},shadowRoots:[]});l.log.time("wait until load"),yield me(e,{timeout:l.timeout,onWarn:l.log.warn}),l.log.timeEnd("wait until load");const{width:d,height:m}=pt(e,l);return l.width=d,l.height=m,l})}function be(e){if(!e)return;const t=e.createElement("style"),r=t.ownerDocument.createTextNode(`\n.______background-clip--text {\n background-clip: text;\n -webkit-background-clip: text;\n}\n`);return t.appendChild(r),t}function pt(e,t){let{width:r,height:n}=t;if(I(e)&&(!r||!n)){const i=e.getBoundingClientRect();r=r||i.width||Number(e.getAttribute("width"))||0,n=n||i.height||Number(e.getAttribute("height"))||0}return{width:r,height:n}}function yt(e,t){return C(this,null,function*(){const{log:r,timeout:n,drawImageCount:i,drawImageInterval:a}=t;r.time("image to canvas");const s=yield L(e,{timeout:n,onWarn:t.log.warn}),{canvas:o,context2d:c}=bt(e.ownerDocument,t),u=()=>{try{c==null||c.drawImage(s,0,0,o.width,o.height)}catch(l){t.log.warn("Failed to drawImage",l)}};if(u(),t.isEnable("fixSvgXmlDecode"))for(let l=0;l<i;l++)yield new Promise(d=>{setTimeout(()=>{c==null||c.clearRect(0,0,o.width,o.height),u(),d()},l+a)});return t.drawImageCount=0,r.timeEnd("image to canvas"),o})}function bt(e,t){const{width:r,height:n,scale:i,backgroundColor:a,maximumCanvasSize:s}=t,o=e.createElement("canvas");o.width=Math.floor(r*i),o.height=Math.floor(n*i),o.style.width=`${r}px`,o.style.height=`${n}px`,s&&(o.width>s||o.height>s)&&(o.width>s&&o.height>s?o.width>o.height?(o.height*=s/o.width,o.width=s):(o.width*=s/o.height,o.height=s):o.width>s?(o.height*=s/o.width,o.width=s):(o.width*=s/o.height,o.height=s));const c=o.getContext("2d");return c&&a&&(c.fillStyle=a,c.fillRect(0,0,o.width,o.height)),{canvas:o,context2d:c}}function Se(e,t){if(e.ownerDocument)try{const a=e.toDataURL();if(a!=="data:,")return _(a,e.ownerDocument)}catch(a){t.log.warn("Failed to clone canvas",a)}const r=e.cloneNode(!1),n=e.getContext("2d"),i=r.getContext("2d");try{return n&&i&&i.putImageData(n.getImageData(0,0,e.width,e.height),0,0),r}catch(a){t.log.warn("Failed to clone canvas",a)}return r}function St(e,t){var r;try{if((r=e==null?void 0:e.contentDocument)!=null&&r.documentElement)return ne(e.contentDocument.documentElement,t)}catch(n){t.log.warn("Failed to clone iframe",n)}return e.cloneNode(!1)}function Et(e){const t=e.cloneNode(!1);return e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager"),t}function Ct(e,t){return C(this,null,function*(){if(e.ownerDocument&&!e.currentSrc&&e.poster)return _(e.poster,e.ownerDocument);const r=e.cloneNode(!1);r.crossOrigin="anonymous",e.currentSrc&&e.currentSrc!==e.src&&(r.src=e.currentSrc);const n=r.ownerDocument;if(n){let i=!0;if(yield L(r,{onError:()=>i=!1,onWarn:t.log.warn}),!i)return e.poster?_(e.poster,e.ownerDocument):r;r.currentTime=e.currentTime,yield new Promise(s=>{r.addEventListener("seeked",s,{once:!0})});const a=n.createElement("canvas");a.width=e.offsetWidth,a.height=e.offsetHeight;try{const s=a.getContext("2d");s&&s.drawImage(r,0,0,a.width,a.height)}catch(s){return t.log.warn("Failed to clone video",s),e.poster?_(e.poster,e.ownerDocument):r}return Se(a,t)}return r})}function Tt(e,t){return tt(e)?Se(e,t):lt(e)?St(e,t):$(e)?Et(e):Y(e)?Ct(e,t):e.cloneNode(!1)}function vt(e){let t=e.sandbox;if(!t){const{ownerDocument:r}=e;try{r&&(t=r.createElement("iframe"),t.id=`__SANDBOX__${he()}`,t.width="0",t.height="0",t.style.visibility="hidden",t.style.position="fixed",r.body.appendChild(t),t.srcdoc=\'<!DOCTYPE html><meta charset="UTF-8"><title></title><body>\',e.sandbox=t)}catch(n){e.log.warn("Failed to getSandBox",n)}}return t}const At=["width","height","-webkit-text-fill-color"],Nt=["stroke","fill"];function Ee(e,t,r){const{defaultComputedStyles:n}=r,i=e.nodeName.toLowerCase(),a=H(e)&&i!=="svg",s=a?Nt.map(g=>[g,e.getAttribute(g)]).filter(([,g])=>g!==null):[],o=[a&&"svg",i,s.map((g,p)=>`${g}=${p}`).join(","),t].filter(Boolean).join(":");if(n.has(o))return n.get(o);const c=vt(r),u=c==null?void 0:c.contentWindow;if(!u)return new Map;const l=u==null?void 0:u.document;let d,m;a?(d=l.createElementNS(K,"svg"),m=d.ownerDocument.createElementNS(d.namespaceURI,i),s.forEach(([g,p])=>{m.setAttributeNS(null,g,p)}),d.appendChild(m)):d=m=l.createElement(i),m.textContent=" ",l.body.appendChild(d);const f=u.getComputedStyle(m,t),h=new Map;for(let g=f.length,p=0;p<g;p++){const E=f.item(p);At.includes(E)||h.set(E,f.getPropertyValue(E))}return l.body.removeChild(d),n.set(o,h),h}function Ce(e,t,r){var o;const n=new Map,i=[],a=new Map;if(r)for(const c of r)s(c);else for(let c=e.length,u=0;u<c;u++){const l=e.item(u);s(l)}for(let c=i.length,u=0;u<c;u++)(o=a.get(i[u]))==null||o.forEach((l,d)=>n.set(d,l));function s(c){const u=e.getPropertyValue(c),l=e.getPropertyPriority(c),d=c.lastIndexOf("-"),m=d>-1?c.substring(0,d):void 0;if(m){let f=a.get(m);f||(f=new Map,a.set(m,f)),f.set(c,[u,l])}t.get(c)===u&&!l||(m?i.push(m):n.set(c,[u,l]))}return n}function Rt(e,t,r,n){var d,m,f,h;const{ownerWindow:i,includeStyleProperties:a,currentParentNodeStyle:s}=n,o=t.style,c=i.getComputedStyle(e),u=Ee(e,null,n);s==null||s.forEach((g,p)=>{u.delete(p)});const l=Ce(c,u,a);l.delete("transition-property"),l.delete("all"),l.delete("d"),l.delete("content"),r&&(l.delete("position"),l.delete("margin-top"),l.delete("margin-right"),l.delete("margin-bottom"),l.delete("margin-left"),l.delete("margin-block-start"),l.delete("margin-block-end"),l.delete("margin-inline-start"),l.delete("margin-inline-end"),l.set("box-sizing",["border-box",""])),((d=l.get("background-clip"))==null?void 0:d[0])==="text"&&t.classList.add("______background-clip--text"),le&&(l.has("font-kerning")||l.set("font-kerning",["normal",""]),(((m=l.get("overflow-x"))==null?void 0:m[0])==="hidden"||((f=l.get("overflow-y"))==null?void 0:f[0])==="hidden")&&((h=l.get("text-overflow"))==null?void 0:h[0])==="ellipsis"&&e.scrollWidth===e.clientWidth&&l.set("text-overflow",["clip",""]));for(let g=o.length,p=0;p<g;p++)o.removeProperty(o.item(p));return l.forEach(([g,p],E)=>{o.setProperty(E,g,p)}),l}function It(e,t){(rt(e)||nt(e)||st(e))&&t.setAttribute("value",e.value)}const kt=["::before","::after"],Dt=["::-webkit-scrollbar","::-webkit-scrollbar-button","::-webkit-scrollbar-thumb","::-webkit-scrollbar-track","::-webkit-scrollbar-track-piece","::-webkit-scrollbar-corner","::-webkit-resizer"];function Pt(e,t,r,n,i){const{ownerWindow:a,svgStyleElement:s,svgStyles:o,currentNodeStyle:c}=n;if(!s||!a)return;function u(l){var w;const d=a.getComputedStyle(e,l);let m=d.getPropertyValue("content");if(!m||m==="none")return;i==null||i(m),m=m.replace(/(\')|(")|(counter\\(.+\\))/g,"");const f=[he()],h=Ee(e,l,n);c==null||c.forEach((S,T)=>{h.delete(T)});const g=Ce(d,h,n.includeStyleProperties);g.delete("content"),g.delete("-webkit-locale"),((w=g.get("background-clip"))==null?void 0:w[0])==="text"&&t.classList.add("______background-clip--text");const p=[`content: \'${m}\';`];if(g.forEach(([S,T],A)=>{p.push(`${A}: ${S}${T?" !important":""};`)}),p.length===1)return;try{t.className=[t.className,...f].join(" ")}catch(S){n.log.warn("Failed to copyPseudoClass",S);return}const E=p.join(`\n `);let b=o.get(E);b||(b=[],o.set(E,b)),b.push(`.${f[0]}${l}`)}kt.forEach(u),r&&Dt.forEach(u)}const Te=new Set(["symbol"]);function ve(e,t,r,n,i){return C(this,null,function*(){if(I(r)&&(ot(r)||at(r))||n.filter&&!n.filter(r))return;Te.has(t.nodeName)||Te.has(r.nodeName)?n.currentParentNodeStyle=void 0:n.currentParentNodeStyle=n.currentNodeStyle;const a=yield ne(r,n,!1,i);n.isEnable("restoreScrollPosition")&&Ut(e,a),t.appendChild(a)})}function Ae(e,t,r,n){return C(this,null,function*(){var a;let i=e.firstChild;I(e)&&e.shadowRoot&&(i=(a=e.shadowRoot)==null?void 0:a.firstChild,r.shadowRoots.push(e.shadowRoot));for(let s=i;s;s=s.nextSibling)if(!Ze(s))if(I(s)&&it(s)&&typeof s.assignedNodes=="function"){const o=s.assignedNodes();for(let c=0;c<o.length;c++)yield ve(e,t,o[c],r,n)}else yield ve(e,t,s,r,n)})}function Ut(e,t){if(!V(e)||!V(t))return;const{scrollTop:r,scrollLeft:n}=e;if(!r&&!n)return;const{transform:i}=t.style,a=new DOMMatrix(i),{a:s,b:o,c,d:u}=a;a.a=1,a.b=0,a.c=0,a.d=1,a.translateSelf(-n,-r),a.a=s,a.b=o,a.c=c,a.d=u,t.style.transform=a.toString()}function _t(e,t){const{backgroundColor:r,width:n,height:i,style:a}=t,s=e.style;if(r&&s.setProperty("background-color",r,"important"),n&&s.setProperty("width",`${n}px`,"important"),i&&s.setProperty("height",`${i}px`,"important"),a)for(const o in a)s[o]=a[o]}const Ft=/^[\\w-:]+$/;function ne(e,t,r=!1,n){return C(this,null,function*(){var u,l,d,m;const{ownerDocument:i,ownerWindow:a,fontFamilies:s,onCloneEachNode:o}=t;if(i&&et(e))return n&&/\\S/.test(e.data)&&n(e.data),i.createTextNode(e.data);if(i&&a&&I(e)&&(V(e)||H(e))){const f=yield Tt(e,t);if(t.isEnable("removeAbnormalAttributes")){const w=f.getAttributeNames();for(let S=w.length,T=0;T<S;T++){const A=w[T];Ft.test(A)||f.removeAttribute(A)}}const h=t.currentNodeStyle=Rt(e,f,r,t);r&&_t(f,t);let g=!1;if(t.isEnable("copyScrollbar")){const w=[(u=h.get("overflow-x"))==null?void 0:u[0],(l=h.get("overflow-y"))==null?void 0:l[0]];g=w.includes("scroll")||(w.includes("auto")||w.includes("overlay"))&&(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth)}const p=(d=h.get("text-transform"))==null?void 0:d[0],E=we((m=h.get("font-family"))==null?void 0:m[0]),b=E?w=>{p==="uppercase"?w=w.toUpperCase():p==="lowercase"?w=w.toLowerCase():p==="capitalize"&&(w=w[0].toUpperCase()+w.substring(1)),E.forEach(S=>{let T=s.get(S);T||s.set(S,T=new Set),w.split("").forEach(A=>T.add(A))})}:void 0;return Pt(e,f,g,t,b),It(e,f),Y(e)||(yield Ae(e,f,t,b)),yield o==null?void 0:o(f),f}const c=e.cloneNode(!1);return yield Ae(e,c,t),yield o==null?void 0:o(c),c})}function Ne(e){if(e.ownerDocument=void 0,e.ownerWindow=void 0,e.svgStyleElement=void 0,e.svgDefsElement=void 0,e.svgStyles.clear(),e.defaultComputedStyles.clear(),e.sandbox){try{e.sandbox.remove()}catch(t){e.log.warn("Failed to destroyContext",t)}e.sandbox=void 0}e.workers=[],e.fontFamilies.clear(),e.fontCssTexts.clear(),e.requests.clear(),e.tasks=[],e.shadowRoots=[]}function Bt(e){const o=e,{url:t,timeout:r,responseType:n}=o,i=je(o,["url","timeout","responseType"]),a=new AbortController,s=r?setTimeout(()=>a.abort(),r):void 0;return fetch(t,D({signal:a.signal},i)).then(c=>{if(!c.ok)throw new Error("Failed fetch, not 2xx response",{cause:c});switch(n){case"arrayBuffer":return c.arrayBuffer();case"dataUrl":return c.blob().then(gt);case"text":default:return c.text()}}).finally(()=>clearTimeout(s))}function z(e,t){const{url:r,requestType:n="text",responseType:i="text",imageDom:a}=t;let s=r;const{timeout:o,acceptOfImage:c,requests:u,fetchFn:l,fetch:{requestInit:d,bypassingCache:m,placeholderImage:f},font:h,workers:g,fontFamilies:p}=e;n==="image"&&(G||te)&&e.drawImageCount++;let E=u.get(r);if(!E){m&&m instanceof RegExp&&m.test(s)&&(s+=(/\\?/.test(s)?"&":"?")+new Date().getTime());const b=n.startsWith("font")&&h&&h.minify,w=new Set;b&&n.split(";")[1].split(",").forEach(F=>{p.has(F)&&p.get(F).forEach(B=>w.add(B))});const S=b&&w.size,T=D({url:s,timeout:o,responseType:S?"arrayBuffer":i,headers:n==="image"?{accept:c}:void 0},d);E={type:n,resolve:void 0,reject:void 0,response:null},E.response=C(this,null,function*(){if(l&&n==="image"){const A=yield l(r);if(A)return A}return!G&&r.startsWith("http")&&g.length?new Promise((A,F)=>{g[u.size&g.length-1].postMessage(D({rawUrl:r},T)),E.resolve=A,E.reject=F}):Bt(T)}).catch(A=>{if(u.delete(r),n==="image"&&f)return e.log.warn("Failed to fetch image base64, trying to use placeholder image",s),typeof f=="string"?f:f(a);throw A}),u.set(r,E)}return E.response}function Re(e,t,r,n){return C(this,null,function*(){if(!Ie(e))return e;for(const[i,a]of $t(e,t))try{const s=yield z(r,{url:a,requestType:n?"image":"text",responseType:"dataUrl"});e=e.replace(Lt(i),`$1${s}$3`)}catch(s){r.log.warn("Failed to fetch css data url",i,s)}return e})}function Ie(e){return/url\\(([\'"]?)([^\'"]+?)\\1\\)/.test(e)}const ke=/url\\(([\'"]?)([^\'"]+?)\\1\\)/g;function $t(e,t){const r=[];return e.replace(ke,(n,i,a)=>(r.push([a,ue(a,t)]),n)),r.filter(([n])=>!re(n))}function Lt(e){const t=e.replace(/([.*+?^${}()|\\[\\]\\/\\\\])/g,"\\\\$1");return new RegExp(`(url\\\\([\'"]?)(${t})([\'"]?\\\\))`,"g")}const xt=["background-image","border-image-source","-webkit-border-image","-webkit-mask-image","list-style-image"];function Mt(e,t){return xt.map(r=>{const n=e.getPropertyValue(r);return!n||n==="none"?null:((G||te)&&t.drawImageCount++,Re(n,null,t,!0).then(i=>{!i||n===i||e.setProperty(r,i,e.getPropertyPriority(r))}))}).filter(Boolean)}function Ot(e,t){if($(e)){const r=e.currentSrc||e.src;if(!re(r))return[z(t,{url:r,imageDom:e,requestType:"image",responseType:"dataUrl"}).then(n=>{n&&(e.srcset="",e.dataset.originalSrc=r,e.src=n||"")})];(G||te)&&t.drawImageCount++}else if(H(e)&&!re(e.href.baseVal)){const r=e.href.baseVal;return[z(t,{url:r,imageDom:e,requestType:"image",responseType:"dataUrl"}).then(n=>{n&&(e.dataset.originalSrc=r,e.href.baseVal=n||"")})]}return[]}function jt(e,t){var o;const{ownerDocument:r,svgDefsElement:n}=t,i=(o=e.getAttribute("href"))!=null?o:e.getAttribute("xlink:href");if(!i)return[];const[a,s]=i.split("#");if(s){const c=`#${s}`,u=t.shadowRoots.reduce((l,d)=>l!=null?l:d.querySelector(`svg ${c}`),r==null?void 0:r.querySelector(`svg ${c}`));if(a&&e.setAttribute("href",c),n!=null&&n.querySelector(c))return[];if(u)return n==null||n.appendChild(u.cloneNode(!0)),[];if(a)return[z(t,{url:a,responseType:"text"}).then(l=>{n==null||n.insertAdjacentHTML("beforeend",l)})]}return[]}function De(e,t){const{tasks:r}=t;I(e)&&(($(e)||ce(e))&&r.push(...Ot(e,t)),Qe(e)&&r.push(...jt(e,t))),V(e)&&r.push(...Mt(e.style,t)),e.childNodes.forEach(n=>{De(n,t)})}function qt(e,t){return C(this,null,function*(){const{ownerDocument:r,svgStyleElement:n,fontFamilies:i,fontCssTexts:a,tasks:s,font:o}=t;if(!(!r||!n||!i.size))if(o&&o.cssText){const c=Ue(o.cssText,t);n.appendChild(r.createTextNode(`${c}\n`))}else{const c=Array.from(r.styleSheets).filter(f=>{try{return"cssRules"in f&&!!f.cssRules.length}catch(h){return t.log.warn(`Error while reading CSS rules from ${f.href}`,h),!1}}),u=r.implementation.createHTMLDocument(""),l=u.createElement("style");u.head.appendChild(l);const d=l.sheet;yield Promise.all(c.flatMap(f=>Array.from(f.cssRules).map(h=>C(this,null,function*(){if(Je(h)){const g=h.href;let p="";try{p=yield z(t,{url:g,requestType:"text",responseType:"text"})}catch(b){t.log.warn(`Error fetch remote css import from ${g}`,b)}const E=p.replace(ke,(b,w,S)=>b.replace(S,ue(S,g)));for(const b of Ht(E))try{d.insertRule(b,d.cssRules.length)}catch(w){t.log.warn("Error inserting rule from remote css import",{rule:b,error:w})}}})))),d.cssRules.length&&c.push(d);const m=[];c.forEach(f=>{oe(f.cssRules,m)}),m.filter(f=>{var h;return Ye(f)&&Ie(f.style.getPropertyValue("src"))&&((h=we(f.style.getPropertyValue("font-family")))==null?void 0:h.some(g=>i.has(g)))}).forEach(f=>{const h=f,g=a.get(h.cssText);g?n.appendChild(r.createTextNode(`${g}\n`)):s.push(Re(h.cssText,h.parentStyleSheet?h.parentStyleSheet.href:null,t).then(p=>{p=Ue(p,t),a.set(h.cssText,p),n.appendChild(r.createTextNode(`${p}\n`))}))})}})}const Wt=/(\\/\\*[\\s\\S]*?\\*\\/)/g,Pe=/((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})/gi;function Ht(e){if(e==null)return[];const t=[];let r=e.replace(Wt,"");for(;;){const a=Pe.exec(r);if(!a)break;t.push(a[0])}r=r.replace(Pe,"");const n=/@import[\\s\\S]*?url\\([^)]*\\)[\\s\\S]*?;/gi,i=new RegExp("((\\\\s*?(?:\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\/)?\\\\s*?@media[\\\\s\\\\S]*?){([\\\\s\\\\S]*?)}\\\\s*?})|(([\\\\s\\\\S]*?){([\\\\s\\\\S]*?)})","gi");for(;;){let a=n.exec(r);if(a)i.lastIndex=n.lastIndex;else if(a=i.exec(r),a)n.lastIndex=i.lastIndex;else break;t.push(a[0])}return t}const Vt=/url\\([^)]+\\)\\s*format\\((["\']?)([^"\']+)\\1\\)/g,zt=/src:\\s*(?:url\\([^)]+\\)\\s*format\\([^)]+\\)[,;]\\s*)+/g;function Ue(e,t){const{font:r}=t,n=r?r==null?void 0:r.preferredFormat:void 0;return n?e.replace(zt,i=>{for(;;){const[a,,s]=Vt.exec(i)||[];if(!s)return"";if(s===n)return`src: ${a};`}}):e}function oe(e,t=[]){for(const r of Array.from(e))Ke(r)?t.push(...oe(r.cssRules)):"cssRules"in r?oe(r.cssRules,t):t.push(r);return t}const Xt=/\\bx?link:?href\\s*=\\s*["\'](?!data:)[^"\']+["\']/i;function Gt(e){return Xt.test(e.innerHTML)}function _e(e,t){return C(this,null,function*(){const r=yield k(e,t);if(I(r.node)&&H(r.node)&&!Gt(r.node))return r.node;const{ownerDocument:n,log:i,tasks:a,svgStyleElement:s,svgDefsElement:o,svgStyles:c,font:u,progress:l,autoDestruct:d,onCloneNode:m,onEmbedNode:f,onCreateForeignObjectSvg:h}=r;i.time("clone node");const g=yield ne(r.node,r,!0);if(s&&n){let S="";c.forEach((T,A)=>{S+=`${T.join(`,\n`)} {\n ${A}\n}\n`}),s.appendChild(n.createTextNode(S))}i.timeEnd("clone node"),yield m==null?void 0:m(g),u!==!1&&I(g)&&(i.time("embed web font"),yield qt(g,r),i.timeEnd("embed web font")),i.time("embed node"),De(g,r);const p=a.length;let E=0;const b=()=>C(this,null,function*(){for(;;){const S=a.pop();if(!S)break;try{yield S}catch(T){r.log.warn("Failed to run task",T)}l==null||l(++E,p)}});l==null||l(E,p),yield Promise.all([...Array.from({length:4})].map(b)),i.timeEnd("embed node"),yield f==null?void 0:f(g);const w=Yt(g,r);return o&&w.insertBefore(o,w.children[0]),s&&w.insertBefore(s,w.children[0]),d&&Ne(r),yield h==null?void 0:h(w),w})}function Yt(e,t){const{width:r,height:n}=t,i=fe(r,n,e.ownerDocument),a=i.ownerDocument.createElementNS(i.namespaceURI,"foreignObject");return a.setAttributeNS(null,"x","0%"),a.setAttributeNS(null,"y","0%"),a.setAttributeNS(null,"width","100%"),a.setAttributeNS(null,"height","100%"),a.append(e),i.appendChild(a),i}function Q(e,t){return C(this,null,function*(){var s;const r=yield k(e,t),n=yield _e(r),i=de(n,r.isEnable("removeControlCharacter"));r.autoDestruct||(r.svgStyleElement=be(r.ownerDocument),r.svgDefsElement=(s=r.ownerDocument)==null?void 0:s.createElementNS(K,"defs"),r.svgStyles.clear());const a=_(i,n.ownerDocument);return yield yt(a,r)})}function Jt(e,t){return C(this,null,function*(){const r=yield k(e,t),{log:n,type:i,quality:a,dpi:s}=r,o=yield Q(r);n.time("canvas to blob");const c=yield ft(o,i,a);if(["image/png","image/jpeg"].includes(i)&&s){const u=yield mt(c.slice(0,33));let l=new Uint8Array(u);return i==="image/png"?l=ae(l,s):i==="image/jpeg"&&(l=v(l,s)),n.timeEnd("canvas to blob"),new Blob([l,c.slice(33)],{type:i})}return n.timeEnd("canvas to blob"),c})}function x(e,t){return C(this,null,function*(){const r=yield k(e,t),{log:n,quality:i,type:a,dpi:s}=r,o=yield Q(r);n.time("canvas to data url");let c=o.toDataURL(a,i);if(["image/png","image/jpeg"].includes(a)&&s&&ie&&Xe){const[u,l]=c.split(",");let d=0,m=!1;if(a==="image/png"){const w=Ve(l);w>=0?(d=Math.ceil((w+28)/3)*4,m=!0):d=33/3*4}else a==="image/jpeg"&&(d=18/3*4);const f=l.substring(0,d),h=l.substring(d),g=window.atob(f),p=new Uint8Array(g.length);for(let w=0;w<p.length;w++)p[w]=g.charCodeAt(w);const E=a==="image/png"?ae(p,s,m):v(p,s),b=window.btoa(String.fromCharCode(...E));c=[u,",",b,h].join("")}return n.timeEnd("canvas to data url"),c})}function Fe(e,t){return C(this,null,function*(){const r=yield k(e,t),{width:n,height:i,ownerDocument:a}=r,s=yield x(r),o=fe(n,i,a),c=o.ownerDocument.createElementNS(o.namespaceURI,"image");return c.setAttributeNS(null,"href",s),c.setAttributeNS(null,"height","100%"),c.setAttributeNS(null,"width","100%"),o.appendChild(c),de(o,r.isEnable("removeControlCharacter"))})}function Kt(e,t){return C(this,null,function*(){const r=yield k(e,t),{ownerDocument:n,width:i,height:a,scale:s,type:o}=r,c=o==="image/svg+xml"?yield Fe(r):yield x(r),u=_(c,n);return u.width=Math.floor(i*s),u.height=Math.floor(a*s),u.style.width=`${i}px`,u.style.height=`${a}px`,u})}function Qt(e,t){return C(this,null,function*(){return x(yield k(e,M(D({},t),{type:"image/jpeg"})))})}function Zt(e,t){return C(this,null,function*(){const r=yield k(e,t),n=yield Q(r);return n.getContext("2d").getImageData(0,0,n.width,n.height).data})}function er(e,t){return C(this,null,function*(){return x(yield k(e,M(D({},t),{type:"image/png"})))})}function tr(e,t){return C(this,null,function*(){return x(yield k(e,M(D({},t),{type:"image/webp"})))})}y.createContext=ye,y.destroyContext=Ne,y.domToBlob=Jt,y.domToCanvas=Q,y.domToDataUrl=x,y.domToForeignObjectSvg=_e,y.domToImage=Kt,y.domToJpeg=Qt,y.domToPixel=Zt,y.domToPng=er,y.domToSvg=Fe,y.domToWebp=tr,y.loadMedia=L,y.waitUntilLoad=me,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})});\n';
1291
+ const RECORDER_PATH = "/__wheelhouse/live-review/recorder.js";
1292
+ const SHOOTER_PATH = "/__wheelhouse/live-review/screenshot.js";
1293
+ const IDLE_MS = 30 * 6e4;
1294
+ const HTML_MAX_BYTES = 8 * 1024 * 1024;
1295
+ function recorderFor(parentOrigin, review) {
1296
+ const json = JSON.stringify(review).replaceAll("<", "\\u003c").replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029");
1297
+ const trouble = troubleSource.replace(/^export function watchTrouble/m, "function watchTrouble");
1298
+ return `(() => {
1299
+ ${trouble}
1300
+ ${recorderSource}
1301
+ })();
1302
+ `.replaceAll("__WHEELHOUSE_ORIGIN__", parentOrigin).replace("'__WHEELHOUSE_REVIEW__'", () => json);
1303
+ }
1304
+ const proxies = /* @__PURE__ */ new Map();
1305
+ function injectRecorder(html) {
1306
+ const tag = `<script src="${RECORDER_PATH}" data-wheelhouse-live-review><\/script>`;
1307
+ const head = /<head(?:\s[^>]*)?>/i.exec(html);
1308
+ if (head)
1309
+ return html.slice(0, head.index + head[0].length) + tag + html.slice(head.index + head[0].length);
1310
+ const doctype = /<!doctype[^>]*>/i.exec(html);
1311
+ if (doctype)
1312
+ return html.slice(0, doctype.index + doctype[0].length) + tag + html.slice(doctype.index + doctype[0].length);
1313
+ return tag + html;
1314
+ }
1315
+ const gunzip = promisify(zlib.gunzip);
1316
+ const inflate = promisify(zlib.inflate);
1317
+ const brotli = promisify(zlib.brotliDecompress);
1318
+ async function decoded(body, encoding) {
1319
+ const e = (encoding ?? "").trim().toLowerCase();
1320
+ if (e === "gzip" || e === "x-gzip") return gunzip(body);
1321
+ if (e === "deflate") return inflate(body);
1322
+ if (e === "br") return brotli(body);
1323
+ return body;
1324
+ }
1325
+ function passedHeaders(headers, upstream, self) {
1326
+ const out = { ...headers };
1327
+ delete out["content-security-policy"];
1328
+ delete out["content-security-policy-report-only"];
1329
+ delete out["x-frame-options"];
1330
+ if (typeof out.location === "string" && out.location.startsWith(upstream.origin)) {
1331
+ out.location = self + out.location.slice(upstream.origin.length);
1332
+ }
1333
+ return out;
1334
+ }
1335
+ function serveScript(res, source) {
1336
+ res.writeHead(200, {
1337
+ "content-type": "text/javascript; charset=utf-8",
1338
+ "cache-control": "no-store"
1339
+ });
1340
+ res.end(source);
1341
+ }
1342
+ function start(upstream, parentOrigin, review, key) {
1343
+ const proxy = {
1344
+ server: http.createServer(),
1345
+ origin: "",
1346
+ last: Date.now(),
1347
+ back: review?.back ?? "/"
1348
+ };
1349
+ const { server } = proxy;
1350
+ server.on("request", (req, res) => {
1351
+ proxy.last = Date.now();
1352
+ const path2 = (req.url ?? "/").split("?")[0];
1353
+ if (path2 === RECORDER_PATH)
1354
+ return serveScript(
1355
+ res,
1356
+ recorderFor(parentOrigin, review ? { ...review, back: proxy.back } : null)
1357
+ );
1358
+ if (path2 === SHOOTER_PATH) return serveScript(res, shooterSource);
1359
+ const headers = { ...req.headers, host: upstream.host, "accept-encoding": "gzip, deflate, br" };
1360
+ if (typeof headers.origin === "string") headers.origin = upstream.origin;
1361
+ delete headers.referer;
1362
+ const out = http.request(
1363
+ {
1364
+ hostname: upstream.hostname,
1365
+ port: upstream.port,
1366
+ path: req.url,
1367
+ method: req.method,
1368
+ headers
1369
+ },
1370
+ (r) => {
1371
+ const h = passedHeaders(r.headers, upstream, proxy.origin);
1372
+ if (!String(r.headers["content-type"] ?? "").includes("text/html")) {
1373
+ res.writeHead(r.statusCode ?? 200, h);
1374
+ r.pipe(res);
1375
+ return;
1376
+ }
1377
+ const chunks = [];
1378
+ let size = 0;
1379
+ r.on("data", (c) => {
1380
+ size += c.length;
1381
+ if (size <= HTML_MAX_BYTES) chunks.push(c);
1382
+ });
1383
+ r.on("end", async () => {
1384
+ try {
1385
+ if (size > HTML_MAX_BYTES) throw new Error("too large");
1386
+ const html = await decoded(Buffer.concat(chunks), r.headers["content-encoding"]);
1387
+ const body = Buffer.from(injectRecorder(html.toString("utf8")));
1388
+ delete h["content-encoding"];
1389
+ delete h["transfer-encoding"];
1390
+ h["content-length"] = body.length;
1391
+ res.writeHead(r.statusCode ?? 200, h);
1392
+ res.end(body);
1393
+ } catch {
1394
+ res.writeHead(502, { "content-type": "text/plain; charset=utf-8" });
1395
+ res.end("Wheelhouse could not read this page to record it.");
1396
+ }
1397
+ });
1398
+ }
1399
+ );
1400
+ out.on("error", () => {
1401
+ if (res.headersSent) return res.destroy();
1402
+ res.writeHead(502, { "content-type": "text/html; charset=utf-8" });
1403
+ res.end(
1404
+ injectRecorder(
1405
+ '<!doctype html><html><head><title>Preview stopped</title></head><body style="font:15px system-ui;padding:40px;color:#555">The preview did not answer.</body></html>'
1406
+ )
1407
+ );
1408
+ });
1409
+ req.pipe(out);
1410
+ });
1411
+ server.on("upgrade", (req, socket, head) => {
1412
+ proxy.last = Date.now();
1413
+ const up = net.connect(Number(upstream.port) || 80, upstream.hostname, () => {
1414
+ const lines = [`${req.method} ${req.url} HTTP/${req.httpVersion}`];
1415
+ for (let i = 0; i < req.rawHeaders.length; i += 2) {
1416
+ const name = req.rawHeaders[i];
1417
+ lines.push(
1418
+ `${name}: ${name.toLowerCase() === "host" ? upstream.host : req.rawHeaders[i + 1]}`
1419
+ );
1420
+ }
1421
+ up.write(lines.join("\r\n") + "\r\n\r\n");
1422
+ if (head.length) up.write(head);
1423
+ up.pipe(socket);
1424
+ socket.pipe(up);
1425
+ });
1426
+ up.on("error", () => socket.destroy());
1427
+ socket.on("error", () => up.destroy());
1428
+ });
1429
+ return new Promise((resolve, reject) => {
1430
+ server.once("error", reject);
1431
+ server.listen(0, "127.0.0.1", () => {
1432
+ const address = server.address();
1433
+ proxy.origin = `http://127.0.0.1:${address.port}`;
1434
+ const idle = setInterval(() => {
1435
+ if (Date.now() - proxy.last < IDLE_MS) return;
1436
+ clearInterval(idle);
1437
+ server.close();
1438
+ server.closeAllConnections();
1439
+ proxies.delete(key);
1440
+ }, 6e4);
1441
+ idle.unref();
1442
+ resolve(proxy);
1443
+ });
1444
+ });
1445
+ }
1446
+ async function recordedPreview(previewUrl, parentOrigin, review = null) {
1447
+ const target = loopbackPreview(previewUrl);
1448
+ if (!target.ok) return { ok: false, error: target.reason };
1449
+ const upstream = new URL(target.url);
1450
+ const parent = URL.parse(parentOrigin);
1451
+ if (!parent || !["127.0.0.1", "localhost", "[::1]"].includes(parent.hostname)) {
1452
+ return {
1453
+ ok: false,
1454
+ error: "Live review works only when Wheelhouse is opened on this computer."
1455
+ };
1456
+ }
1457
+ const key = `${upstream.origin} ${parent.origin} ${review?.task ?? ""}`;
1458
+ let p = proxies.get(key);
1459
+ if (!p) {
1460
+ p = start(upstream, parent.origin, review, key);
1461
+ proxies.set(key, p);
1462
+ p.catch(() => proxies.delete(key));
1463
+ }
1464
+ try {
1465
+ const proxy = await p;
1466
+ proxy.last = Date.now();
1467
+ if (review) proxy.back = review.back;
1468
+ return { ok: true, url: proxy.origin + upstream.pathname + upstream.search + upstream.hash };
1469
+ } catch {
1470
+ return { ok: false, error: "Wheelhouse could not open a port to record the preview." };
1471
+ }
1472
+ }
1473
+ const ANSWER_TIMEOUT_MS = 45e3;
1474
+ const NOTES_TIMEOUT_MS = 9e4;
1475
+ const SHOT_MAX_BYTES = 3 * 1024 * 1024;
1476
+ const defaults = () => ({
1477
+ env: process.env,
1478
+ run: runBounded,
1479
+ fetch,
1480
+ find: (name) => which(name, process.env.PATH)
1481
+ });
1482
+ async function reviewContext(taskId) {
1483
+ const runtime = await getRuntime();
1484
+ if (!runtime.configured) return { ok: false, status: 503, error: runtime.error };
1485
+ if (parseMateTaskId(taskId)) {
1486
+ const m = await runtime.mateTasks.helperContext(taskId);
1487
+ if (!m.ok) return m;
1488
+ return {
1489
+ ok: true,
1490
+ ctx: {
1491
+ task: { id: m.task.id, title: m.task.title, project: m.task.project },
1492
+ url: m.preview,
1493
+ brief: null
1494
+ }
1495
+ };
1496
+ }
1497
+ const fleet = runtime.collector.getFleet();
1498
+ const task = fleet.tasks.find((t) => t.id === taskId);
1499
+ if (!task) return { ok: false, status: 404, error: `There is no task called ${taskId}.` };
1500
+ if (!task.preview)
1501
+ return { ok: false, status: 409, error: "This task has no preview to review." };
1502
+ return {
1503
+ ok: true,
1504
+ ctx: {
1505
+ task: {
1506
+ id: task.id,
1507
+ title: task.shortTitle,
1508
+ project: fleet.projects.find((p) => p.id === task.projectId)?.name ?? task.projectId
1509
+ },
1510
+ url: task.preview.url,
1511
+ brief: runtime.collector.backlog(task.id)?.bodyExcerpt ?? null
1512
+ }
1513
+ };
1514
+ }
1515
+ const fast = (deps) => deps.env.WHEELHOUSE_LIVE_REVIEW_MODEL || "haiku";
1516
+ const unreadable = (what) => ({
1517
+ ok: false,
1518
+ status: 502,
1519
+ error: `The scribe’s ${what} could not be read. Try again.`
1520
+ });
1521
+ async function takeNotes(ctx, req, deps = defaults()) {
1522
+ const r = await runHelper(
1523
+ notesPrompt(ctx, req),
1524
+ [],
1525
+ {
1526
+ system: NOTES_SYSTEM,
1527
+ schema: NOTES_SCHEMA,
1528
+ read: false,
1529
+ model: fast(deps),
1530
+ timeoutMs: NOTES_TIMEOUT_MS
1531
+ },
1532
+ deps
1533
+ );
1534
+ if (!r.ok) return r;
1535
+ const out = readNotes(r.stdout);
1536
+ return out ? { ok: true, ...out } : unreadable("notes");
1537
+ }
1538
+ async function answer(ctx, req, deps = defaults()) {
1539
+ const r = await runHelper(
1540
+ replyPrompt(ctx, req),
1541
+ [],
1542
+ {
1543
+ system: REPLY_SYSTEM,
1544
+ schema: REPLY_SCHEMA,
1545
+ read: false,
1546
+ model: fast(deps),
1547
+ timeoutMs: ANSWER_TIMEOUT_MS
1548
+ },
1549
+ deps
1550
+ );
1551
+ if (!r.ok) return r;
1552
+ const reply = readAnswer(r.stdout);
1553
+ return reply === null ? unreadable("answer") : { ok: true, reply };
1554
+ }
1555
+ async function tidyPack(ctx, req, deps = defaults()) {
1556
+ const r = await runHelper(
1557
+ packPrompt(ctx, req),
1558
+ [],
1559
+ { system: PACK_SYSTEM, schema: PACK_SCHEMA, read: false },
1560
+ deps
1561
+ );
1562
+ if (!r.ok) return r;
1563
+ const pack = readPack(r.stdout);
1564
+ return pack ? { ok: true, pack } : unreadable("pack");
1565
+ }
1566
+ const reviewsDir = (env) => path.join(defaultStateDir(env), "live-review");
1567
+ async function saveSession(taskId, session, shots, env = process.env, now = /* @__PURE__ */ new Date()) {
1568
+ const stamp = now.toISOString().replace(/[:.]/g, "-").slice(0, 19);
1569
+ const dir = path.join(
1570
+ reviewsDir(env),
1571
+ `${stamp}-${taskId.replace(/[^a-z0-9._-]/gi, "-").slice(0, 80)}`
1572
+ );
1573
+ await mkdir(path.join(dir, "shots"), { recursive: true });
1574
+ const saved = {};
1575
+ for (const [id, data] of Object.entries(shots)) {
1576
+ const m = /^data:image\/(jpeg|png);base64,([A-Za-z0-9+/=]+)$/.exec(data);
1577
+ if (!m) continue;
1578
+ const bytes = Buffer.from(m[2], "base64");
1579
+ if (bytes.length > SHOT_MAX_BYTES) continue;
1580
+ const file = path.join(dir, "shots", `${id}.${m[1] === "png" ? "png" : "jpg"}`);
1581
+ await writeFile(file, bytes, { mode: 384 });
1582
+ saved[id] = file;
1583
+ }
1584
+ const record = path.join(dir, "session.json");
1585
+ await writeFile(record, `${JSON.stringify(session ?? {}, null, 2)}
1586
+ `, { mode: 384 });
1587
+ return { dir, session: record, shots: saved };
1588
+ }
1589
+
1590
+ export { answer as a, takeNotes as b, recordedPreview as c, reviewContext as r, saveSession as s, tidyPack as t };
1591
+ //# sourceMappingURL=scribe.js-D30sP1z9.js.map