@chrisjowen/wheelhouse 0.22.7 → 0.22.8

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 (862) hide show
  1. package/build/client/_app/immutable/assets/0.Dqz7kCRB.css +1 -0
  2. package/build/client/_app/immutable/assets/0.Dqz7kCRB.css.br +0 -0
  3. package/build/client/_app/immutable/assets/0.Dqz7kCRB.css.gz +0 -0
  4. package/build/client/_app/immutable/chunks/1THDSnwR.js +1 -0
  5. package/build/client/_app/immutable/chunks/1THDSnwR.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/1THDSnwR.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/5qx-E5hQ.js +3 -0
  8. package/build/client/_app/immutable/chunks/5qx-E5hQ.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/5qx-E5hQ.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/8cFWsiL5.js +3 -0
  11. package/build/client/_app/immutable/chunks/8cFWsiL5.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/8cFWsiL5.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/B95vDHb4.js +2 -0
  14. package/build/client/_app/immutable/chunks/B95vDHb4.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/B95vDHb4.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/BFj9uA7a.js +1 -0
  17. package/build/client/_app/immutable/chunks/BFj9uA7a.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/BFj9uA7a.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/BNnzQGRQ.js +1 -0
  20. package/build/client/_app/immutable/chunks/BNnzQGRQ.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/BNnzQGRQ.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/Bo0GBU1d.js +1 -0
  23. package/build/client/_app/immutable/chunks/Bo0GBU1d.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/Bo0GBU1d.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/BoLe_IyD.js +1 -0
  26. package/build/client/_app/immutable/chunks/BoLe_IyD.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/BoLe_IyD.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/BqeJFOiq.js +2 -0
  29. package/build/client/_app/immutable/chunks/BqeJFOiq.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/BqeJFOiq.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/C303vUt4.js +1 -0
  32. package/build/client/_app/immutable/chunks/C303vUt4.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/C303vUt4.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/CC2m5e3H.js +3 -0
  35. package/build/client/_app/immutable/chunks/CC2m5e3H.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/CC2m5e3H.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/CHLlDrXz.js +1 -0
  38. package/build/client/_app/immutable/chunks/CHLlDrXz.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/CHLlDrXz.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/CJh-lXlR.js +1 -0
  41. package/build/client/_app/immutable/chunks/CJh-lXlR.js.br +0 -0
  42. package/build/client/_app/immutable/chunks/CJh-lXlR.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/CPV8trsz.js +1 -0
  44. package/build/client/_app/immutable/chunks/CPV8trsz.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/CPV8trsz.js.gz +0 -0
  46. package/build/client/_app/immutable/chunks/CQ0zKnku.js +1 -0
  47. package/build/client/_app/immutable/chunks/CQ0zKnku.js.br +0 -0
  48. package/build/client/_app/immutable/chunks/CQ0zKnku.js.gz +0 -0
  49. package/build/client/_app/immutable/chunks/Cva9VpVb.js +7 -0
  50. package/build/client/_app/immutable/chunks/Cva9VpVb.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/Cva9VpVb.js.gz +0 -0
  52. package/build/client/_app/immutable/chunks/CxHJSJSb.js +1 -0
  53. package/build/client/_app/immutable/chunks/CxHJSJSb.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/CxHJSJSb.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/D8swcNrI.js +1 -0
  56. package/build/client/_app/immutable/chunks/D8swcNrI.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/D8swcNrI.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/DGK5viub.js +1 -0
  59. package/build/client/_app/immutable/chunks/DGK5viub.js.br +0 -0
  60. package/build/client/_app/immutable/chunks/DGK5viub.js.gz +0 -0
  61. package/build/client/_app/immutable/chunks/DREe4_Em.js +1 -0
  62. package/build/client/_app/immutable/chunks/DREe4_Em.js.br +0 -0
  63. package/build/client/_app/immutable/chunks/DREe4_Em.js.gz +0 -0
  64. package/build/client/_app/immutable/chunks/Da2GOnuD.js +2 -0
  65. package/build/client/_app/immutable/chunks/Da2GOnuD.js.br +0 -0
  66. package/build/client/_app/immutable/chunks/Da2GOnuD.js.gz +0 -0
  67. package/build/client/_app/immutable/chunks/DlupK5OD.js +6 -0
  68. package/build/client/_app/immutable/chunks/DlupK5OD.js.br +0 -0
  69. package/build/client/_app/immutable/chunks/DlupK5OD.js.gz +0 -0
  70. package/build/client/_app/immutable/chunks/Ds4LY5_S.js +1 -0
  71. package/build/client/_app/immutable/chunks/Ds4LY5_S.js.br +0 -0
  72. package/build/client/_app/immutable/chunks/Ds4LY5_S.js.gz +0 -0
  73. package/build/client/_app/immutable/chunks/HFrgAbA7.js +4 -0
  74. package/build/client/_app/immutable/chunks/HFrgAbA7.js.br +0 -0
  75. package/build/client/_app/immutable/chunks/HFrgAbA7.js.gz +0 -0
  76. package/build/client/_app/immutable/chunks/Lb2eWaSE.js +8 -0
  77. package/build/client/_app/immutable/chunks/Lb2eWaSE.js.br +0 -0
  78. package/build/client/_app/immutable/chunks/Lb2eWaSE.js.gz +0 -0
  79. package/build/client/_app/immutable/chunks/N3-89cl-.js +3 -0
  80. package/build/client/_app/immutable/chunks/N3-89cl-.js.br +0 -0
  81. package/build/client/_app/immutable/chunks/N3-89cl-.js.gz +0 -0
  82. package/build/client/_app/immutable/chunks/NueoU5q8.js +1 -0
  83. package/build/client/_app/immutable/chunks/NueoU5q8.js.br +0 -0
  84. package/build/client/_app/immutable/chunks/NueoU5q8.js.gz +0 -0
  85. package/build/client/_app/immutable/chunks/Sii3oNcc.js +7 -0
  86. package/build/client/_app/immutable/chunks/Sii3oNcc.js.br +0 -0
  87. package/build/client/_app/immutable/chunks/Sii3oNcc.js.gz +0 -0
  88. package/build/client/_app/immutable/chunks/TvzfwAc_.js +6 -0
  89. package/build/client/_app/immutable/chunks/TvzfwAc_.js.br +0 -0
  90. package/build/client/_app/immutable/chunks/TvzfwAc_.js.gz +0 -0
  91. package/build/client/_app/immutable/chunks/XxOJwmzJ.js +1 -0
  92. package/build/client/_app/immutable/chunks/XxOJwmzJ.js.br +0 -0
  93. package/build/client/_app/immutable/chunks/XxOJwmzJ.js.gz +0 -0
  94. package/build/client/_app/immutable/chunks/gKm-HWvG.js +1 -0
  95. package/build/client/_app/immutable/chunks/gKm-HWvG.js.br +1 -0
  96. package/build/client/_app/immutable/chunks/gKm-HWvG.js.gz +0 -0
  97. package/build/client/_app/immutable/chunks/s7ZLiUKi.js +1 -0
  98. package/build/client/_app/immutable/chunks/s7ZLiUKi.js.br +0 -0
  99. package/build/client/_app/immutable/chunks/s7ZLiUKi.js.gz +0 -0
  100. package/build/client/_app/immutable/chunks/uMlyB-ee.js +1 -0
  101. package/build/client/_app/immutable/chunks/uMlyB-ee.js.br +0 -0
  102. package/build/client/_app/immutable/chunks/uMlyB-ee.js.gz +0 -0
  103. package/build/client/_app/immutable/entry/app.BGGGVw8e.js +2 -0
  104. package/build/client/_app/immutable/entry/app.BGGGVw8e.js.br +0 -0
  105. package/build/client/_app/immutable/entry/app.BGGGVw8e.js.gz +0 -0
  106. package/build/client/_app/immutable/entry/start.Cew8gpBz.js +1 -0
  107. package/build/client/_app/immutable/entry/start.Cew8gpBz.js.br +0 -0
  108. package/build/client/_app/immutable/entry/start.Cew8gpBz.js.gz +0 -0
  109. package/build/client/_app/immutable/nodes/0.Bg8-HE2q.js +9 -0
  110. package/build/client/_app/immutable/nodes/0.Bg8-HE2q.js.br +0 -0
  111. package/build/client/_app/immutable/nodes/0.Bg8-HE2q.js.gz +0 -0
  112. package/build/client/_app/immutable/nodes/1.CaqTGk5K.js +1 -0
  113. package/build/client/_app/immutable/nodes/1.CaqTGk5K.js.br +0 -0
  114. package/build/client/_app/immutable/nodes/1.CaqTGk5K.js.gz +0 -0
  115. package/build/client/_app/immutable/nodes/10.CDtUrk-c.js +9 -0
  116. package/build/client/_app/immutable/nodes/10.CDtUrk-c.js.br +0 -0
  117. package/build/client/_app/immutable/nodes/10.CDtUrk-c.js.gz +0 -0
  118. package/build/client/_app/immutable/nodes/11.BgmRFAah.js +2 -0
  119. package/build/client/_app/immutable/nodes/11.BgmRFAah.js.br +0 -0
  120. package/build/client/_app/immutable/nodes/11.BgmRFAah.js.gz +0 -0
  121. package/build/client/_app/immutable/nodes/12.CkcVt4QK.js +6 -0
  122. package/build/client/_app/immutable/nodes/12.CkcVt4QK.js.br +0 -0
  123. package/build/client/_app/immutable/nodes/12.CkcVt4QK.js.gz +0 -0
  124. package/build/client/_app/immutable/nodes/13.Ce2-RKSA.js +1 -0
  125. package/build/client/_app/immutable/nodes/13.Ce2-RKSA.js.br +0 -0
  126. package/build/client/_app/immutable/nodes/13.Ce2-RKSA.js.gz +0 -0
  127. package/build/client/_app/immutable/nodes/14.ip6iLHgE.js +10 -0
  128. package/build/client/_app/immutable/nodes/14.ip6iLHgE.js.br +0 -0
  129. package/build/client/_app/immutable/nodes/14.ip6iLHgE.js.gz +0 -0
  130. package/build/client/_app/immutable/nodes/15.DkPLCNpt.js +1 -0
  131. package/build/client/_app/immutable/nodes/15.DkPLCNpt.js.br +3 -0
  132. package/build/client/_app/immutable/nodes/15.DkPLCNpt.js.gz +0 -0
  133. package/build/client/_app/immutable/nodes/16.Cvg_tC9Y.js +3 -0
  134. package/build/client/_app/immutable/nodes/16.Cvg_tC9Y.js.br +0 -0
  135. package/build/client/_app/immutable/nodes/16.Cvg_tC9Y.js.gz +0 -0
  136. package/build/client/_app/immutable/nodes/17.DYkILIFn.js +1 -0
  137. package/build/client/_app/immutable/nodes/17.DYkILIFn.js.br +0 -0
  138. package/build/client/_app/immutable/nodes/17.DYkILIFn.js.gz +0 -0
  139. package/build/client/_app/immutable/nodes/18.DPfadYmN.js +14 -0
  140. package/build/client/_app/immutable/nodes/18.DPfadYmN.js.br +0 -0
  141. package/build/client/_app/immutable/nodes/18.DPfadYmN.js.gz +0 -0
  142. package/build/client/_app/immutable/nodes/19.ClKxJRb4.js +150 -0
  143. package/build/client/_app/immutable/nodes/19.ClKxJRb4.js.br +0 -0
  144. package/build/client/_app/immutable/nodes/19.ClKxJRb4.js.gz +0 -0
  145. package/build/client/_app/immutable/nodes/2.CluLiMMe.js +40 -0
  146. package/build/client/_app/immutable/nodes/2.CluLiMMe.js.br +0 -0
  147. package/build/client/_app/immutable/nodes/2.CluLiMMe.js.gz +0 -0
  148. package/build/client/_app/immutable/nodes/20.Bif6P7ng.js +25 -0
  149. package/build/client/_app/immutable/nodes/20.Bif6P7ng.js.br +0 -0
  150. package/build/client/_app/immutable/nodes/20.Bif6P7ng.js.gz +0 -0
  151. package/build/client/_app/immutable/nodes/21.x0ymlObW.js +5 -0
  152. package/build/client/_app/immutable/nodes/21.x0ymlObW.js.br +0 -0
  153. package/build/client/_app/immutable/nodes/21.x0ymlObW.js.gz +0 -0
  154. package/build/client/_app/immutable/nodes/22.RGldztsO.js +18 -0
  155. package/build/client/_app/immutable/nodes/22.RGldztsO.js.br +0 -0
  156. package/build/client/_app/immutable/nodes/22.RGldztsO.js.gz +0 -0
  157. package/build/client/_app/immutable/nodes/24.B_uEnuL5.js +4 -0
  158. package/build/client/_app/immutable/nodes/24.B_uEnuL5.js.br +0 -0
  159. package/build/client/_app/immutable/nodes/24.B_uEnuL5.js.gz +0 -0
  160. package/build/client/_app/immutable/nodes/26.Dky3Ah9G.js +6 -0
  161. package/build/client/_app/immutable/nodes/26.Dky3Ah9G.js.br +0 -0
  162. package/build/client/_app/immutable/nodes/26.Dky3Ah9G.js.gz +0 -0
  163. package/build/client/_app/immutable/nodes/27.DP_uSl0C.js +8 -0
  164. package/build/client/_app/immutable/nodes/27.DP_uSl0C.js.br +0 -0
  165. package/build/client/_app/immutable/nodes/27.DP_uSl0C.js.gz +0 -0
  166. package/build/client/_app/immutable/nodes/28.D2qdRGPd.js +2 -0
  167. package/build/client/_app/immutable/nodes/28.D2qdRGPd.js.br +0 -0
  168. package/build/client/_app/immutable/nodes/28.D2qdRGPd.js.gz +0 -0
  169. package/build/client/_app/immutable/nodes/29.Ddwaz1hp.js +5 -0
  170. package/build/client/_app/immutable/nodes/29.Ddwaz1hp.js.br +0 -0
  171. package/build/client/_app/immutable/nodes/29.Ddwaz1hp.js.gz +0 -0
  172. package/build/client/_app/immutable/nodes/3.CVDrIOUx.js +2 -0
  173. package/build/client/_app/immutable/nodes/3.CVDrIOUx.js.br +0 -0
  174. package/build/client/_app/immutable/nodes/3.CVDrIOUx.js.gz +0 -0
  175. package/build/client/_app/immutable/nodes/30.Z_dcq2gz.js +4 -0
  176. package/build/client/_app/immutable/nodes/30.Z_dcq2gz.js.br +0 -0
  177. package/build/client/_app/immutable/nodes/30.Z_dcq2gz.js.gz +0 -0
  178. package/build/client/_app/immutable/nodes/31.dyucR3g6.js +3 -0
  179. package/build/client/_app/immutable/nodes/31.dyucR3g6.js.br +0 -0
  180. package/build/client/_app/immutable/nodes/31.dyucR3g6.js.gz +0 -0
  181. package/build/client/_app/immutable/nodes/32.DX4PQvJR.js +7 -0
  182. package/build/client/_app/immutable/nodes/32.DX4PQvJR.js.br +0 -0
  183. package/build/client/_app/immutable/nodes/32.DX4PQvJR.js.gz +0 -0
  184. package/build/client/_app/immutable/nodes/33.0jPnz-fe.js +2 -0
  185. package/build/client/_app/immutable/nodes/33.0jPnz-fe.js.br +0 -0
  186. package/build/client/_app/immutable/nodes/33.0jPnz-fe.js.gz +0 -0
  187. package/build/client/_app/immutable/nodes/34.CvGd0cJb.js +4 -0
  188. package/build/client/_app/immutable/nodes/34.CvGd0cJb.js.br +0 -0
  189. package/build/client/_app/immutable/nodes/34.CvGd0cJb.js.gz +0 -0
  190. package/build/client/_app/immutable/nodes/35.5ZhQwroK.js +7 -0
  191. package/build/client/_app/immutable/nodes/35.5ZhQwroK.js.br +0 -0
  192. package/build/client/_app/immutable/nodes/35.5ZhQwroK.js.gz +0 -0
  193. package/build/client/_app/immutable/nodes/36.LzdZEn79.js +6 -0
  194. package/build/client/_app/immutable/nodes/36.LzdZEn79.js.br +0 -0
  195. package/build/client/_app/immutable/nodes/36.LzdZEn79.js.gz +0 -0
  196. package/build/client/_app/immutable/nodes/37.C5-b0odW.js +23 -0
  197. package/build/client/_app/immutable/nodes/37.C5-b0odW.js.br +0 -0
  198. package/build/client/_app/immutable/nodes/37.C5-b0odW.js.gz +0 -0
  199. package/build/client/_app/immutable/nodes/38.CMgkqyxT.js +1 -0
  200. package/build/client/_app/immutable/nodes/38.CMgkqyxT.js.br +0 -0
  201. package/build/client/_app/immutable/nodes/38.CMgkqyxT.js.gz +0 -0
  202. package/build/client/_app/immutable/nodes/4.CbNo2HC_.js +5 -0
  203. package/build/client/_app/immutable/nodes/4.CbNo2HC_.js.br +0 -0
  204. package/build/client/_app/immutable/nodes/4.CbNo2HC_.js.gz +0 -0
  205. package/build/client/_app/immutable/nodes/40.CNQdbYqG.js +6 -0
  206. package/build/client/_app/immutable/nodes/40.CNQdbYqG.js.br +0 -0
  207. package/build/client/_app/immutable/nodes/40.CNQdbYqG.js.gz +0 -0
  208. package/build/client/_app/immutable/nodes/5.RsG0znmX.js +1 -0
  209. package/build/client/_app/immutable/nodes/5.RsG0znmX.js.br +0 -0
  210. package/build/client/_app/immutable/nodes/5.RsG0znmX.js.gz +0 -0
  211. package/build/client/_app/immutable/nodes/8.DFmXg3_i.js +3 -0
  212. package/build/client/_app/immutable/nodes/8.DFmXg3_i.js.br +0 -0
  213. package/build/client/_app/immutable/nodes/8.DFmXg3_i.js.gz +0 -0
  214. package/build/client/_app/immutable/nodes/9.DhYSdoUO.js +10 -0
  215. package/build/client/_app/immutable/nodes/9.DhYSdoUO.js.br +0 -0
  216. package/build/client/_app/immutable/nodes/9.DhYSdoUO.js.gz +0 -0
  217. package/build/client/_app/version.json +1 -1
  218. package/build/client/_app/version.json.br +0 -0
  219. package/build/client/_app/version.json.gz +0 -0
  220. package/build/handler.js +4 -4
  221. package/build/index.js +4 -4
  222. package/build/server/chunks/chunks/ConsoleWindow.js-BxF5jMFE.js +103 -0
  223. package/build/server/chunks/chunks/DecisionForm.js-BFfq6cr6.js +246 -0
  224. package/build/server/chunks/chunks/DecisionsBadge.js-CGVFdHf9.js +78 -0
  225. package/build/server/chunks/chunks/Discussion.js-D7IFpGpa.js +581 -0
  226. package/build/server/chunks/chunks/EtaLine.js-CBCXWQzg.js +41 -0
  227. package/build/server/chunks/chunks/ResizableRail.js-DYHpZhCB.js +864 -0
  228. package/build/server/chunks/chunks/Sheet.js-pEqPGqDd.js +3958 -0
  229. package/build/server/chunks/chunks/TaskView.js-CK9biTfX.js +3015 -0
  230. package/build/server/chunks/chunks/TimeBar.js-4ui3FQow.js +32 -0
  231. package/build/server/chunks/chunks/TimeLegend.js-BcJobfm0.js +29 -0
  232. package/build/server/chunks/chunks/bell.js-M4cNe9Wo.js +194 -0
  233. package/build/server/chunks/chunks/chat.svelte.js-vT8qTWLG.js +417 -0
  234. package/build/server/chunks/chunks/console.js-BV5qkqBU.js +64 -0
  235. package/build/server/chunks/chunks/decisionhome.js-CHke-Aet.js +311 -0
  236. package/build/server/chunks/chunks/detail.js-CQv9k56W.js +149 -0
  237. package/build/server/chunks/chunks/features.js-B2GRQeLG.js +181 -0
  238. package/build/server/chunks/chunks/feedback.js-KWaTRrc_.js +67 -0
  239. package/build/server/chunks/chunks/handled.js-m3RTMfxd.js +20 -0
  240. package/build/server/chunks/chunks/inbox.js-CxcuKYoV.js +222 -0
  241. package/build/server/chunks/chunks/insights.js-D2D9kicC.js +142 -0
  242. package/build/server/chunks/chunks/insights.svelte.js-CcEJoKQH.js +567 -0
  243. package/build/server/chunks/chunks/internal.js-CyrN7YyP.js +151 -0
  244. package/build/server/chunks/chunks/livereview.svelte.js-YZhYByZI.js +97 -0
  245. package/build/server/chunks/chunks/marketplace-service.js-BQryRMpA.js +557 -0
  246. package/build/server/chunks/chunks/ondeck.js-BLhFZI2l.js +119 -0
  247. package/build/server/chunks/chunks/package.js-DCazdgiR.js +160 -0
  248. package/build/server/chunks/chunks/page.js-BEonrB4-.js +13 -0
  249. package/build/server/chunks/chunks/previewhelper2.js-BwNIdagj.js +210 -0
  250. package/build/server/chunks/chunks/runtime.js-C-66z9Q6.js +25642 -0
  251. package/build/server/chunks/chunks/scribe.js-OrtzU0Ox.js +1376 -0
  252. package/build/server/chunks/chunks/service.js-Cgn4nIWF.js +1339 -0
  253. package/build/server/chunks/chunks/service2.js-D6aGwDef.js +835 -0
  254. package/build/server/chunks/chunks/service3.js-Dxdu8beL.js +234 -0
  255. package/build/server/chunks/chunks/settings.js-qVoB3gY6.js +379 -0
  256. package/build/server/chunks/chunks/slots.svelte.js-CizfW0L7.js +54 -0
  257. package/build/server/chunks/chunks/starter.js-DGsazTxj.js +400 -0
  258. package/build/server/chunks/chunks/store.js-m6116Gee.js +332 -0
  259. package/build/server/chunks/chunks/uploads.js-Dj8oL0YP.js +107 -0
  260. package/build/server/chunks/chunks/view.js-BunAXITd.js +76 -0
  261. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-kVPM8QiK.js +112 -0
  262. package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-D3yUm95J.js +111 -0
  263. package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-t7kJDKFo.js +59 -0
  264. package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-asKE3p3l.js +75 -0
  265. package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-CL96hFwe.js +79 -0
  266. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-DtH4ROLw.js +154 -0
  267. package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-CjMBduD9.js +56 -0
  268. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-tSUMjrxM.js +71 -0
  269. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-B46bSl60.js +107 -0
  270. package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-C2y7h-Co.js +83 -0
  271. package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-C5veyHrZ.js +73 -0
  272. package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-DtwDysQZ.js +66 -0
  273. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-Bnkzua_j.js +66 -0
  274. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-nFnKxdcG.js +67 -0
  275. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js--Yr7q4X9.js +73 -0
  276. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-Bvwd3v0d.js +66 -0
  277. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-DqUrbhsF.js +115 -0
  278. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-BpAtHV7C.js +76 -0
  279. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-BWYNvyCC.js +87 -0
  280. package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-BIaGX_Je.js +75 -0
  281. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-CKGsdGBC.js +66 -0
  282. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-Csr4uwPB.js +32 -0
  283. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-A7LEzpUQ.js +40 -0
  284. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-BIky5eUL.js +58 -0
  285. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-QzznrMw6.js +58 -0
  286. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-BhT-maiz.js +85 -0
  287. package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-DTDIeAua.js +83 -0
  288. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-12ddKzFc.js +76 -0
  289. package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-Dy8Qr5Ob.js +168 -0
  290. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-Dm8emtZq.js +58 -0
  291. package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-DxYAgGOs.js +87 -0
  292. package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-DvqKFPx-.js +96 -0
  293. package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-C3RuITes.js +118 -0
  294. package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-5QW9NUip.js +72 -0
  295. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-DPZryu4Q.js +93 -0
  296. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-BcXreDr7.js +82 -0
  297. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-Cec1PqqW.js +77 -0
  298. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-kqsIOpsA.js +74 -0
  299. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-BJocN5Xm.js +27 -0
  300. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-BUpXqp6F.js +81 -0
  301. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-BGOAdpGK.js +39 -0
  302. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-DS3DbCgu.js +58 -0
  303. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-CuZogP4B.js +39 -0
  304. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-BkS35-hL.js +42 -0
  305. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-ByS6w0ap.js +63 -0
  306. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-BmrVgIv5.js +72 -0
  307. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-BLPKS89l.js +69 -0
  308. package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-CXH9OLs6.js +73 -0
  309. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-NecYW7Fw.js +27 -0
  310. package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-BlUsDWOD.js +81 -0
  311. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-CBrquITj.js +63 -0
  312. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-CKI4wWxB.js +72 -0
  313. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-CWPBrHrF.js +84 -0
  314. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-CJSTZha6.js +71 -0
  315. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-CuIgfX_D.js +94 -0
  316. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-BsRnf2ce.js +77 -0
  317. package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-Cb9tcSDx.js +473 -0
  318. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-CY33XrLN.js +88 -0
  319. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-BRAKX1m3.js +67 -0
  320. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-yt0TqAcX.js +77 -0
  321. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-CVa3CdZi.js +137 -0
  322. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-Dy7tHXfQ.js +66 -0
  323. package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-DWZ_aOjS.js +80 -0
  324. package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-CT7Boaf4.js +66 -0
  325. package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-ocY6SwwL.js +69 -0
  326. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-CnXs9bJ0.js +63 -0
  327. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-vDstks5V.js +82 -0
  328. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-BkTBLTm_.js +109 -0
  329. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-D3dlXTwq.js +75 -0
  330. package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-C2K3IFZh.js +104 -0
  331. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-BQ-Pi5Kw.js +123 -0
  332. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-RDdXwMiY.js +77 -0
  333. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-BFwe4mnD.js +80 -0
  334. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-Bh4F9hu_.js +81 -0
  335. package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-Dx9WOcQT.js +24 -0
  336. package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-B2qqL7As.js +31 -0
  337. package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-B8R-L43c.js +33 -0
  338. package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-D3bduhlo.js +93 -0
  339. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-BMPsSJdV.js +40 -0
  340. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-D5UL7RMX.js +27 -0
  341. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-CvEX3NKJ.js +27 -0
  342. package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-DtTwc4Gq.js +82 -0
  343. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-CHQUpKh2.js +62 -0
  344. package/build/server/chunks/entries/hooks.server.js-BG_jlCcK.js +104 -0
  345. package/build/server/chunks/entries/pages/_layout.server.ts.js-CTliqS0t.js +54 -0
  346. package/build/server/chunks/entries/pages/_layout.svelte.js-Bnx1zQNz.js +6028 -0
  347. package/build/server/chunks/entries/pages/_page.server.ts.js-BsobM1Vs.js +16 -0
  348. package/build/server/chunks/entries/pages/_page.svelte.js-CEPxPR_I.js +5810 -0
  349. package/build/server/chunks/entries/pages/crew/_page.svelte.js-sAcZ9qNG.js +115 -0
  350. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-Bc3cLNPh.js +14 -0
  351. package/build/server/chunks/entries/pages/decisions/_page.svelte.js-mQE5Ht8_.js +226 -0
  352. package/build/server/chunks/entries/pages/deck/_page.server.ts.js-DZsxsScR.js +16 -0
  353. package/build/server/chunks/entries/pages/deck/_page.svelte.js-u1WdGQom.js +93 -0
  354. package/build/server/chunks/entries/pages/files/_page.server.ts.js-CrzB71Jp.js +17 -0
  355. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-C7IlrK-z.js +11 -0
  356. package/build/server/chunks/entries/pages/headroom/_page.svelte.js-DjqtGoDH.js +296 -0
  357. package/build/server/chunks/entries/pages/health/_page.server.ts.js-DLaP4pWA.js +16 -0
  358. package/build/server/chunks/entries/pages/health/_page.svelte.js-DA7MoO-y.js +517 -0
  359. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-CgDtaaVM.js +18 -0
  360. package/build/server/chunks/entries/pages/inbox/_page.svelte.js--GRUWFc_.js +653 -0
  361. package/build/server/chunks/entries/pages/more/_page.svelte.js-DxjJ6y39.js +152 -0
  362. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-mo7xbJt3.js +16 -0
  363. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-BaJy6ojj.js +60 -0
  364. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-BTVTYrL2.js +23 -0
  365. package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-FodOZq2p.js +983 -0
  366. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-CBuwJYf2.js +21 -0
  367. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-D9gMeR7J.js +82 -0
  368. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-CbnfsXhC.js +27 -0
  369. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-Di4LHBAx.js +420 -0
  370. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-CuhFDzPV.js +15 -0
  371. package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-CpnDSMiL.js +11 -0
  372. package/build/server/chunks/entries/pages/remotes/_page.svelte.js-Baz3X3kg.js +348 -0
  373. package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-DePfcsb_.js +13 -0
  374. package/build/server/chunks/entries/pages/settings/_page.server.ts.js-djAsookJ.js +12 -0
  375. package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-DriYtYJc.js +18 -0
  376. package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-NBwcUtec.js +19 -0
  377. package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-CfuxlVXC.js +16 -0
  378. package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-D9yV2bD6.js +15 -0
  379. package/build/server/chunks/entries/pages/settings/experimental/_page.svelte.js-BDXpdTTY.js +83 -0
  380. package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-DAN-2Pxg.js +797 -0
  381. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-tnGbTGGj.js +11 -0
  382. package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-r7TgB6d3.js +261 -0
  383. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-DuleEIYa.js +19 -0
  384. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-BxWoMmwC.js +17 -0
  385. package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-BfeP4Gtl.js +11 -0
  386. package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-DQpRqceP.js +11 -0
  387. package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-c3S1VKhz.js +15 -0
  388. package/build/server/chunks/entries/pages/setup/_page.server.ts.js-DOLq2HfK.js +18 -0
  389. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-BJdoTfEx.js +36 -0
  390. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-Dm62wxMH.js +112 -0
  391. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-DpwnwQCn.js +24 -0
  392. package/build/server/chunks/entries/pages/time/_page.server.ts.js-CW6Titpm.js +11 -0
  393. package/build/server/chunks/entries/pages/time/_page.svelte.js-BEJCthq-.js +109 -0
  394. package/build/server/chunks/handler-y94pKJeU.js +1474 -0
  395. package/build/server/chunks/index.js-DtEa3MAX.js +4296 -0
  396. package/build/server/chunks/manifest.js-YbFjUaWW.js +969 -0
  397. package/build/server/chunks/nodes/0.js-DZNO3FEd.js +66 -0
  398. package/build/server/chunks/nodes/1.js-DeEeQGnw.js +9 -0
  399. package/build/server/chunks/nodes/10.js-D1WLP-xF.js +65 -0
  400. package/build/server/chunks/nodes/11.js-Cj41sGC5.js +64 -0
  401. package/build/server/chunks/nodes/12.js-B-q9Ib1c.js +12 -0
  402. package/build/server/chunks/nodes/13.js-DsffUOsS.js +9 -0
  403. package/build/server/chunks/nodes/14.js-Dw1DFPiL.js +9 -0
  404. package/build/server/chunks/nodes/15.js-Bm993HDL.js +63 -0
  405. package/build/server/chunks/nodes/16.js-WZ4F89Mr.js +66 -0
  406. package/build/server/chunks/nodes/17.js-Baq9rNe0.js +64 -0
  407. package/build/server/chunks/nodes/18.js-C38z45xS.js +65 -0
  408. package/build/server/chunks/nodes/19.js-DyT8Zd0H.js +64 -0
  409. package/build/server/chunks/nodes/2.js-jQdD36qI.js +63 -0
  410. package/build/server/chunks/nodes/20.js-CQbfd52F.js +24 -0
  411. package/build/server/chunks/nodes/21.js-DW3kIO8q.js +25 -0
  412. package/build/server/chunks/nodes/22.js-ksQVgjBb.js +9 -0
  413. package/build/server/chunks/nodes/23.js-BFPu5J7m.js +25 -0
  414. package/build/server/chunks/nodes/24.js-BKj-MVrY.js +63 -0
  415. package/build/server/chunks/nodes/26.js-DxNHajUJ.js +64 -0
  416. package/build/server/chunks/nodes/27.js-mHDM5fgE.js +63 -0
  417. package/build/server/chunks/nodes/28.js-DTwh097W.js +25 -0
  418. package/build/server/chunks/nodes/29.js-CBmut8fC.js +63 -0
  419. package/build/server/chunks/nodes/3.js-DXVw6q6d.js +9 -0
  420. package/build/server/chunks/nodes/30.js-CbXBXcvy.js +24 -0
  421. package/build/server/chunks/nodes/31.js-WDuQi73D.js +22 -0
  422. package/build/server/chunks/nodes/32.js-T4n52_nY.js +63 -0
  423. package/build/server/chunks/nodes/33.js-BhdoH31z.js +66 -0
  424. package/build/server/chunks/nodes/34.js-BdxLdp7H.js +65 -0
  425. package/build/server/chunks/nodes/35.js-kSAwfGyD.js +26 -0
  426. package/build/server/chunks/nodes/36.js-DnyJGfb-.js +65 -0
  427. package/build/server/chunks/nodes/37.js-XUg9jSCl.js +67 -0
  428. package/build/server/chunks/nodes/38.js-BSf8dpSf.js +64 -0
  429. package/build/server/chunks/nodes/39.js-CzeMaVfA.js +64 -0
  430. package/build/server/chunks/nodes/4.js-DsmciaDg.js +64 -0
  431. package/build/server/chunks/nodes/40.js-BB-3VTMf.js +63 -0
  432. package/build/server/chunks/nodes/5.js-CQfxR-6j.js +63 -0
  433. package/build/server/chunks/nodes/7.js-VphzedHf.js +63 -0
  434. package/build/server/chunks/nodes/8.js-knfTDQmu.js +14 -0
  435. package/build/server/chunks/nodes/9.js-B_uu7boa.js +63 -0
  436. package/dist/cli.js +1 -1
  437. package/dist/wh-vault.js +1 -1
  438. package/firstmate-extension/firstmate-extension.json +1 -1
  439. package/package.json +1 -1
  440. package/build/client/_app/immutable/assets/0.DvoPFmNs.css +0 -1
  441. package/build/client/_app/immutable/assets/0.DvoPFmNs.css.br +0 -0
  442. package/build/client/_app/immutable/assets/0.DvoPFmNs.css.gz +0 -0
  443. package/build/client/_app/immutable/chunks/BBm_Fs-b.js +0 -6
  444. package/build/client/_app/immutable/chunks/BBm_Fs-b.js.br +0 -0
  445. package/build/client/_app/immutable/chunks/BBm_Fs-b.js.gz +0 -0
  446. package/build/client/_app/immutable/chunks/BCs6bnXY.js +0 -1
  447. package/build/client/_app/immutable/chunks/BCs6bnXY.js.br +0 -0
  448. package/build/client/_app/immutable/chunks/BCs6bnXY.js.gz +0 -0
  449. package/build/client/_app/immutable/chunks/BF_cZ9t1.js +0 -1
  450. package/build/client/_app/immutable/chunks/BF_cZ9t1.js.br +0 -0
  451. package/build/client/_app/immutable/chunks/BF_cZ9t1.js.gz +0 -0
  452. package/build/client/_app/immutable/chunks/BJ2W5Dwa.js +0 -1
  453. package/build/client/_app/immutable/chunks/BJ2W5Dwa.js.br +0 -0
  454. package/build/client/_app/immutable/chunks/BJ2W5Dwa.js.gz +0 -0
  455. package/build/client/_app/immutable/chunks/B_2dI8B-.js +0 -1
  456. package/build/client/_app/immutable/chunks/B_2dI8B-.js.br +0 -0
  457. package/build/client/_app/immutable/chunks/B_2dI8B-.js.gz +0 -0
  458. package/build/client/_app/immutable/chunks/B_vxNA4w.js +0 -1
  459. package/build/client/_app/immutable/chunks/B_vxNA4w.js.br +0 -0
  460. package/build/client/_app/immutable/chunks/B_vxNA4w.js.gz +0 -0
  461. package/build/client/_app/immutable/chunks/BhudhehD.js +0 -1
  462. package/build/client/_app/immutable/chunks/BhudhehD.js.br +0 -0
  463. package/build/client/_app/immutable/chunks/BhudhehD.js.gz +0 -0
  464. package/build/client/_app/immutable/chunks/BkMzJnu3.js +0 -3
  465. package/build/client/_app/immutable/chunks/BkMzJnu3.js.br +0 -0
  466. package/build/client/_app/immutable/chunks/BkMzJnu3.js.gz +0 -0
  467. package/build/client/_app/immutable/chunks/Bk_ZNhuN.js +0 -1
  468. package/build/client/_app/immutable/chunks/Bk_ZNhuN.js.br +0 -0
  469. package/build/client/_app/immutable/chunks/Bk_ZNhuN.js.gz +0 -0
  470. package/build/client/_app/immutable/chunks/C--OEIw2.js +0 -1
  471. package/build/client/_app/immutable/chunks/C--OEIw2.js.br +0 -0
  472. package/build/client/_app/immutable/chunks/C--OEIw2.js.gz +0 -0
  473. package/build/client/_app/immutable/chunks/C4rlO5ce.js +0 -2
  474. package/build/client/_app/immutable/chunks/C4rlO5ce.js.br +0 -0
  475. package/build/client/_app/immutable/chunks/C4rlO5ce.js.gz +0 -0
  476. package/build/client/_app/immutable/chunks/CU--1UbH.js +0 -1
  477. package/build/client/_app/immutable/chunks/CU--1UbH.js.br +0 -0
  478. package/build/client/_app/immutable/chunks/CU--1UbH.js.gz +0 -0
  479. package/build/client/_app/immutable/chunks/CWCjMcSQ.js +0 -1
  480. package/build/client/_app/immutable/chunks/CWCjMcSQ.js.br +0 -1
  481. package/build/client/_app/immutable/chunks/CWCjMcSQ.js.gz +0 -0
  482. package/build/client/_app/immutable/chunks/CuYc7d4s.js +0 -1
  483. package/build/client/_app/immutable/chunks/CuYc7d4s.js.br +0 -0
  484. package/build/client/_app/immutable/chunks/CuYc7d4s.js.gz +0 -0
  485. package/build/client/_app/immutable/chunks/DDdYnEAT.js +0 -1
  486. package/build/client/_app/immutable/chunks/DDdYnEAT.js.br +0 -0
  487. package/build/client/_app/immutable/chunks/DDdYnEAT.js.gz +0 -0
  488. package/build/client/_app/immutable/chunks/DFCS-1G4.js +0 -7
  489. package/build/client/_app/immutable/chunks/DFCS-1G4.js.br +0 -0
  490. package/build/client/_app/immutable/chunks/DFCS-1G4.js.gz +0 -0
  491. package/build/client/_app/immutable/chunks/DIVbIv6L.js +0 -1
  492. package/build/client/_app/immutable/chunks/DIVbIv6L.js.br +0 -0
  493. package/build/client/_app/immutable/chunks/DIVbIv6L.js.gz +0 -0
  494. package/build/client/_app/immutable/chunks/DKap1_6w.js +0 -1
  495. package/build/client/_app/immutable/chunks/DKap1_6w.js.br +0 -0
  496. package/build/client/_app/immutable/chunks/DKap1_6w.js.gz +0 -0
  497. package/build/client/_app/immutable/chunks/DOuX60Xh.js +0 -1
  498. package/build/client/_app/immutable/chunks/DOuX60Xh.js.br +0 -0
  499. package/build/client/_app/immutable/chunks/DOuX60Xh.js.gz +0 -0
  500. package/build/client/_app/immutable/chunks/DSX3BpgH.js +0 -7
  501. package/build/client/_app/immutable/chunks/DSX3BpgH.js.br +0 -0
  502. package/build/client/_app/immutable/chunks/DSX3BpgH.js.gz +0 -0
  503. package/build/client/_app/immutable/chunks/DUXFc1rr.js +0 -2
  504. package/build/client/_app/immutable/chunks/DUXFc1rr.js.br +0 -0
  505. package/build/client/_app/immutable/chunks/DUXFc1rr.js.gz +0 -0
  506. package/build/client/_app/immutable/chunks/DW78OM6E.js +0 -1
  507. package/build/client/_app/immutable/chunks/DW78OM6E.js.br +0 -0
  508. package/build/client/_app/immutable/chunks/DW78OM6E.js.gz +0 -0
  509. package/build/client/_app/immutable/chunks/DcngPT1B.js +0 -8
  510. package/build/client/_app/immutable/chunks/DcngPT1B.js.br +0 -0
  511. package/build/client/_app/immutable/chunks/DcngPT1B.js.gz +0 -0
  512. package/build/client/_app/immutable/chunks/DeI80PG9.js +0 -3
  513. package/build/client/_app/immutable/chunks/DeI80PG9.js.br +0 -0
  514. package/build/client/_app/immutable/chunks/DeI80PG9.js.gz +0 -0
  515. package/build/client/_app/immutable/chunks/DjaUBMdB.js +0 -1
  516. package/build/client/_app/immutable/chunks/DjaUBMdB.js.br +0 -0
  517. package/build/client/_app/immutable/chunks/DjaUBMdB.js.gz +0 -0
  518. package/build/client/_app/immutable/chunks/DkLM7lHB.js +0 -2
  519. package/build/client/_app/immutable/chunks/DkLM7lHB.js.br +0 -0
  520. package/build/client/_app/immutable/chunks/DkLM7lHB.js.gz +0 -0
  521. package/build/client/_app/immutable/chunks/H0f_fYvf.js +0 -4
  522. package/build/client/_app/immutable/chunks/H0f_fYvf.js.br +0 -0
  523. package/build/client/_app/immutable/chunks/H0f_fYvf.js.gz +0 -0
  524. package/build/client/_app/immutable/chunks/LJz6leLj.js +0 -3
  525. package/build/client/_app/immutable/chunks/LJz6leLj.js.br +0 -0
  526. package/build/client/_app/immutable/chunks/LJz6leLj.js.gz +0 -0
  527. package/build/client/_app/immutable/chunks/WrKGiNFc.js +0 -2
  528. package/build/client/_app/immutable/chunks/WrKGiNFc.js.br +0 -0
  529. package/build/client/_app/immutable/chunks/WrKGiNFc.js.gz +0 -0
  530. package/build/client/_app/immutable/chunks/bVnBahjY.js +0 -6
  531. package/build/client/_app/immutable/chunks/bVnBahjY.js.br +0 -0
  532. package/build/client/_app/immutable/chunks/bVnBahjY.js.gz +0 -0
  533. package/build/client/_app/immutable/chunks/jGjhSZaO.js +0 -1
  534. package/build/client/_app/immutable/chunks/jGjhSZaO.js.br +0 -0
  535. package/build/client/_app/immutable/chunks/jGjhSZaO.js.gz +0 -0
  536. package/build/client/_app/immutable/entry/app.CBd4ts86.js +0 -2
  537. package/build/client/_app/immutable/entry/app.CBd4ts86.js.br +0 -0
  538. package/build/client/_app/immutable/entry/app.CBd4ts86.js.gz +0 -0
  539. package/build/client/_app/immutable/entry/start.DsKQ0RT3.js +0 -1
  540. package/build/client/_app/immutable/entry/start.DsKQ0RT3.js.br +0 -0
  541. package/build/client/_app/immutable/entry/start.DsKQ0RT3.js.gz +0 -0
  542. package/build/client/_app/immutable/nodes/0.F-xI54ba.js +0 -9
  543. package/build/client/_app/immutable/nodes/0.F-xI54ba.js.br +0 -0
  544. package/build/client/_app/immutable/nodes/0.F-xI54ba.js.gz +0 -0
  545. package/build/client/_app/immutable/nodes/1.BeXAD0_3.js +0 -1
  546. package/build/client/_app/immutable/nodes/1.BeXAD0_3.js.br +0 -0
  547. package/build/client/_app/immutable/nodes/1.BeXAD0_3.js.gz +0 -0
  548. package/build/client/_app/immutable/nodes/10.MkZ74VF5.js +0 -9
  549. package/build/client/_app/immutable/nodes/10.MkZ74VF5.js.br +0 -0
  550. package/build/client/_app/immutable/nodes/10.MkZ74VF5.js.gz +0 -0
  551. package/build/client/_app/immutable/nodes/11.Dfa5qI-E.js +0 -2
  552. package/build/client/_app/immutable/nodes/11.Dfa5qI-E.js.br +0 -0
  553. package/build/client/_app/immutable/nodes/11.Dfa5qI-E.js.gz +0 -0
  554. package/build/client/_app/immutable/nodes/12.pVeM3rSk.js +0 -6
  555. package/build/client/_app/immutable/nodes/12.pVeM3rSk.js.br +0 -0
  556. package/build/client/_app/immutable/nodes/12.pVeM3rSk.js.gz +0 -0
  557. package/build/client/_app/immutable/nodes/13.DftunDAR.js +0 -1
  558. package/build/client/_app/immutable/nodes/13.DftunDAR.js.br +0 -0
  559. package/build/client/_app/immutable/nodes/13.DftunDAR.js.gz +0 -0
  560. package/build/client/_app/immutable/nodes/14.CoquYL6y.js +0 -10
  561. package/build/client/_app/immutable/nodes/14.CoquYL6y.js.br +0 -0
  562. package/build/client/_app/immutable/nodes/14.CoquYL6y.js.gz +0 -0
  563. package/build/client/_app/immutable/nodes/15.DWSZSNt3.js +0 -1
  564. package/build/client/_app/immutable/nodes/15.DWSZSNt3.js.br +0 -0
  565. package/build/client/_app/immutable/nodes/15.DWSZSNt3.js.gz +0 -0
  566. package/build/client/_app/immutable/nodes/16.Cd97GqaU.js +0 -3
  567. package/build/client/_app/immutable/nodes/16.Cd97GqaU.js.br +0 -0
  568. package/build/client/_app/immutable/nodes/16.Cd97GqaU.js.gz +0 -0
  569. package/build/client/_app/immutable/nodes/17.CeIjKAJx.js +0 -1
  570. package/build/client/_app/immutable/nodes/17.CeIjKAJx.js.br +0 -0
  571. package/build/client/_app/immutable/nodes/17.CeIjKAJx.js.gz +0 -0
  572. package/build/client/_app/immutable/nodes/18.D5iwjrHU.js +0 -14
  573. package/build/client/_app/immutable/nodes/18.D5iwjrHU.js.br +0 -0
  574. package/build/client/_app/immutable/nodes/18.D5iwjrHU.js.gz +0 -0
  575. package/build/client/_app/immutable/nodes/19.C7weQjUV.js +0 -150
  576. package/build/client/_app/immutable/nodes/19.C7weQjUV.js.br +0 -0
  577. package/build/client/_app/immutable/nodes/19.C7weQjUV.js.gz +0 -0
  578. package/build/client/_app/immutable/nodes/2.1HiIWXTK.js +0 -40
  579. package/build/client/_app/immutable/nodes/2.1HiIWXTK.js.br +0 -0
  580. package/build/client/_app/immutable/nodes/2.1HiIWXTK.js.gz +0 -0
  581. package/build/client/_app/immutable/nodes/20.CI3Th2_V.js +0 -25
  582. package/build/client/_app/immutable/nodes/20.CI3Th2_V.js.br +0 -0
  583. package/build/client/_app/immutable/nodes/20.CI3Th2_V.js.gz +0 -0
  584. package/build/client/_app/immutable/nodes/21.Ch2Fmhtx.js +0 -5
  585. package/build/client/_app/immutable/nodes/21.Ch2Fmhtx.js.br +0 -0
  586. package/build/client/_app/immutable/nodes/21.Ch2Fmhtx.js.gz +0 -0
  587. package/build/client/_app/immutable/nodes/22.BeRzoSXH.js +0 -18
  588. package/build/client/_app/immutable/nodes/22.BeRzoSXH.js.br +0 -0
  589. package/build/client/_app/immutable/nodes/22.BeRzoSXH.js.gz +0 -0
  590. package/build/client/_app/immutable/nodes/24.BLuVZRkq.js +0 -4
  591. package/build/client/_app/immutable/nodes/24.BLuVZRkq.js.br +0 -0
  592. package/build/client/_app/immutable/nodes/24.BLuVZRkq.js.gz +0 -0
  593. package/build/client/_app/immutable/nodes/26.CYAb3esZ.js +0 -6
  594. package/build/client/_app/immutable/nodes/26.CYAb3esZ.js.br +0 -0
  595. package/build/client/_app/immutable/nodes/26.CYAb3esZ.js.gz +0 -0
  596. package/build/client/_app/immutable/nodes/27.CcQodI5j.js +0 -8
  597. package/build/client/_app/immutable/nodes/27.CcQodI5j.js.br +0 -0
  598. package/build/client/_app/immutable/nodes/27.CcQodI5j.js.gz +0 -0
  599. package/build/client/_app/immutable/nodes/28.B0JWWCYd.js +0 -2
  600. package/build/client/_app/immutable/nodes/28.B0JWWCYd.js.br +0 -0
  601. package/build/client/_app/immutable/nodes/28.B0JWWCYd.js.gz +0 -0
  602. package/build/client/_app/immutable/nodes/29.Dz-zF1qk.js +0 -5
  603. package/build/client/_app/immutable/nodes/29.Dz-zF1qk.js.br +0 -0
  604. package/build/client/_app/immutable/nodes/29.Dz-zF1qk.js.gz +0 -0
  605. package/build/client/_app/immutable/nodes/3.j0BjUyv6.js +0 -2
  606. package/build/client/_app/immutable/nodes/3.j0BjUyv6.js.br +0 -0
  607. package/build/client/_app/immutable/nodes/3.j0BjUyv6.js.gz +0 -0
  608. package/build/client/_app/immutable/nodes/30.BEz9JoNL.js +0 -4
  609. package/build/client/_app/immutable/nodes/30.BEz9JoNL.js.br +0 -0
  610. package/build/client/_app/immutable/nodes/30.BEz9JoNL.js.gz +0 -0
  611. package/build/client/_app/immutable/nodes/31.keG04jdU.js +0 -3
  612. package/build/client/_app/immutable/nodes/31.keG04jdU.js.br +0 -0
  613. package/build/client/_app/immutable/nodes/31.keG04jdU.js.gz +0 -0
  614. package/build/client/_app/immutable/nodes/32.DvZix2vN.js +0 -7
  615. package/build/client/_app/immutable/nodes/32.DvZix2vN.js.br +0 -0
  616. package/build/client/_app/immutable/nodes/32.DvZix2vN.js.gz +0 -0
  617. package/build/client/_app/immutable/nodes/33.CsEI_wli.js +0 -2
  618. package/build/client/_app/immutable/nodes/33.CsEI_wli.js.br +0 -0
  619. package/build/client/_app/immutable/nodes/33.CsEI_wli.js.gz +0 -0
  620. package/build/client/_app/immutable/nodes/34.C4Cn7mhz.js +0 -4
  621. package/build/client/_app/immutable/nodes/34.C4Cn7mhz.js.br +0 -0
  622. package/build/client/_app/immutable/nodes/34.C4Cn7mhz.js.gz +0 -0
  623. package/build/client/_app/immutable/nodes/35.ByNF3cvk.js +0 -7
  624. package/build/client/_app/immutable/nodes/35.ByNF3cvk.js.br +0 -0
  625. package/build/client/_app/immutable/nodes/35.ByNF3cvk.js.gz +0 -0
  626. package/build/client/_app/immutable/nodes/36.C0AqTZfD.js +0 -6
  627. package/build/client/_app/immutable/nodes/36.C0AqTZfD.js.br +0 -0
  628. package/build/client/_app/immutable/nodes/36.C0AqTZfD.js.gz +0 -0
  629. package/build/client/_app/immutable/nodes/37.C983Oc7Q.js +0 -23
  630. package/build/client/_app/immutable/nodes/37.C983Oc7Q.js.br +0 -0
  631. package/build/client/_app/immutable/nodes/37.C983Oc7Q.js.gz +0 -0
  632. package/build/client/_app/immutable/nodes/38.DZpVrKpZ.js +0 -1
  633. package/build/client/_app/immutable/nodes/38.DZpVrKpZ.js.br +0 -0
  634. package/build/client/_app/immutable/nodes/38.DZpVrKpZ.js.gz +0 -0
  635. package/build/client/_app/immutable/nodes/4.CrCa5tPK.js +0 -5
  636. package/build/client/_app/immutable/nodes/4.CrCa5tPK.js.br +0 -0
  637. package/build/client/_app/immutable/nodes/4.CrCa5tPK.js.gz +0 -0
  638. package/build/client/_app/immutable/nodes/40.DuKLsUmt.js +0 -6
  639. package/build/client/_app/immutable/nodes/40.DuKLsUmt.js.br +0 -0
  640. package/build/client/_app/immutable/nodes/40.DuKLsUmt.js.gz +0 -0
  641. package/build/client/_app/immutable/nodes/5.CB4i7ZNg.js +0 -1
  642. package/build/client/_app/immutable/nodes/5.CB4i7ZNg.js.br +0 -0
  643. package/build/client/_app/immutable/nodes/5.CB4i7ZNg.js.gz +0 -0
  644. package/build/client/_app/immutable/nodes/8.BV94HuPe.js +0 -3
  645. package/build/client/_app/immutable/nodes/8.BV94HuPe.js.br +0 -0
  646. package/build/client/_app/immutable/nodes/8.BV94HuPe.js.gz +0 -0
  647. package/build/client/_app/immutable/nodes/9.dDDTNF4u.js +0 -10
  648. package/build/client/_app/immutable/nodes/9.dDDTNF4u.js.br +0 -0
  649. package/build/client/_app/immutable/nodes/9.dDDTNF4u.js.gz +0 -0
  650. package/build/server/chunks/chunks/ConsoleWindow.js-Fy80ITde.js +0 -120
  651. package/build/server/chunks/chunks/DecisionForm.js-CGXVl0Ew.js +0 -246
  652. package/build/server/chunks/chunks/DecisionsBadge.js-B1u51GOK.js +0 -78
  653. package/build/server/chunks/chunks/Discussion.js-C0cR_sJ7.js +0 -581
  654. package/build/server/chunks/chunks/EtaLine.js-DZaZbteA.js +0 -41
  655. package/build/server/chunks/chunks/ResizableRail.js-D23G9R7d.js +0 -900
  656. package/build/server/chunks/chunks/Sheet.js-CjZDwlbd.js +0 -3958
  657. package/build/server/chunks/chunks/TaskView.js-DAZFWu1M.js +0 -3015
  658. package/build/server/chunks/chunks/TimeBar.js-BaEB0RHk.js +0 -32
  659. package/build/server/chunks/chunks/TimeLegend.js-Dk3obyPy.js +0 -29
  660. package/build/server/chunks/chunks/bell.js-CFf6k_A-.js +0 -194
  661. package/build/server/chunks/chunks/chat.svelte.js-o7Bx_hjm.js +0 -371
  662. package/build/server/chunks/chunks/decisionhome.js-B8fMEoGK.js +0 -311
  663. package/build/server/chunks/chunks/detail.js-AOyyGV6f.js +0 -149
  664. package/build/server/chunks/chunks/features.js-Dih8hX3K.js +0 -181
  665. package/build/server/chunks/chunks/feedback.js-Y_qeE4lk.js +0 -67
  666. package/build/server/chunks/chunks/handled.js-D9a3Vg06.js +0 -20
  667. package/build/server/chunks/chunks/inbox.js-BTGWlv8y.js +0 -222
  668. package/build/server/chunks/chunks/insights.js-CzzfyHGp.js +0 -100
  669. package/build/server/chunks/chunks/insights.svelte.js-F2Gg47lw.js +0 -564
  670. package/build/server/chunks/chunks/internal.js-YFFIkEGy.js +0 -151
  671. package/build/server/chunks/chunks/livereview.svelte.js-DeQC-NNP.js +0 -61
  672. package/build/server/chunks/chunks/marketplace-service.js-ByN9lMyn.js +0 -557
  673. package/build/server/chunks/chunks/ondeck.js-BV5Wby4b.js +0 -119
  674. package/build/server/chunks/chunks/package.js-CRRRb0vq.js +0 -160
  675. package/build/server/chunks/chunks/page.js-5YKGK16Q.js +0 -13
  676. package/build/server/chunks/chunks/previewhelper2.js-C8YozFzs.js +0 -210
  677. package/build/server/chunks/chunks/runtime.js-beTUQJvS.js +0 -25604
  678. package/build/server/chunks/chunks/scribe.js-sGGKDf0Q.js +0 -1317
  679. package/build/server/chunks/chunks/service.js-hNir0rQ0.js +0 -1339
  680. package/build/server/chunks/chunks/service2.js-CCi6VqWr.js +0 -835
  681. package/build/server/chunks/chunks/service3.js-CYxcsw27.js +0 -234
  682. package/build/server/chunks/chunks/settings.js-B5e9I92Q.js +0 -379
  683. package/build/server/chunks/chunks/slots.svelte.js-CLIV5nwM.js +0 -34
  684. package/build/server/chunks/chunks/starter.js-yK7UTpae.js +0 -400
  685. package/build/server/chunks/chunks/store.js-CNgqr3Sa.js +0 -332
  686. package/build/server/chunks/chunks/uploads.js-D6dIdsOn.js +0 -107
  687. package/build/server/chunks/chunks/view.js-C_sVwMxj.js +0 -76
  688. package/build/server/chunks/entries/endpoints/api/apps/_op_/_server.ts.js-DcDrpzQ0.js +0 -112
  689. package/build/server/chunks/entries/endpoints/api/cloud/_server.ts.js-PsKvo0EQ.js +0 -111
  690. package/build/server/chunks/entries/endpoints/api/cloud/previews/_server.ts.js-ChKr8jQB.js +0 -59
  691. package/build/server/chunks/entries/endpoints/api/crew/_server.ts.js-BYOITfdX.js +0 -75
  692. package/build/server/chunks/entries/endpoints/api/crew/messages/_server.ts.js-Cuml2nA8.js +0 -79
  693. package/build/server/chunks/entries/endpoints/api/events/_server.ts.js-oUq7VB-c.js +0 -154
  694. package/build/server/chunks/entries/endpoints/api/features/_server.ts.js-CoKMlAw2.js +0 -56
  695. package/build/server/chunks/entries/endpoints/api/files/_server.ts.js-CFB---55.js +0 -71
  696. package/build/server/chunks/entries/endpoints/api/firstmate/chat/_server.ts.js-38TWOJFC.js +0 -107
  697. package/build/server/chunks/entries/endpoints/api/firstmate/chat/archive/_server.ts.js-Ds4yFTov.js +0 -83
  698. package/build/server/chunks/entries/endpoints/api/firstmate/chat/history/_server.ts.js-BrfpEAdf.js +0 -73
  699. package/build/server/chunks/entries/endpoints/api/firstmate/chat/search/_server.ts.js-ClGkZJrE.js +0 -66
  700. package/build/server/chunks/entries/endpoints/api/firstmate/commands/_server.ts.js-BAi2jIUa.js +0 -66
  701. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/_server.ts.js-DU9fFldF.js +0 -67
  702. package/build/server/chunks/entries/endpoints/api/firstmate/input/_server.ts.js-rmxE3GDI.js +0 -73
  703. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/_server.ts.js-Er7ICTMc.js +0 -66
  704. package/build/server/chunks/entries/endpoints/api/firstmate/messages/_server.ts.js-CzhSZtJx.js +0 -115
  705. package/build/server/chunks/entries/endpoints/api/firstmate/pick/_server.ts.js-C62koQm8.js +0 -76
  706. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/_server.ts.js-DmH3adF3.js +0 -87
  707. package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-BTqcOxFr.js +0 -75
  708. package/build/server/chunks/entries/endpoints/api/firstmate/start/_server.ts.js-0H1slVlF.js +0 -66
  709. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_day_/_id_/_name_/_server.ts.js-pnIDY7K-.js +0 -32
  710. package/build/server/chunks/entries/endpoints/api/firstmate/uploads/_server.ts.js-BBzkAG43.js +0 -40
  711. package/build/server/chunks/entries/endpoints/api/fleet/_server.ts.js-D9IhzsNZ.js +0 -58
  712. package/build/server/chunks/entries/endpoints/api/health/_server.ts.js-Dzm8TJik.js +0 -58
  713. package/build/server/chunks/entries/endpoints/api/inbox/_server.ts.js-Cj-QPW9H.js +0 -85
  714. package/build/server/chunks/entries/endpoints/api/inbox/following/_server.ts.js-CQPAH9lf.js +0 -83
  715. package/build/server/chunks/entries/endpoints/api/inbox/report/_server.ts.js-ByfBJSzN.js +0 -76
  716. package/build/server/chunks/entries/endpoints/api/inbox/talk/_server.ts.js-DPhhSbn9.js +0 -168
  717. package/build/server/chunks/entries/endpoints/api/insights/_server.ts.js-Bg9HUq2z.js +0 -58
  718. package/build/server/chunks/entries/endpoints/api/live/_id_/end/_server.ts.js-DbDwbrB4.js +0 -87
  719. package/build/server/chunks/entries/endpoints/api/live/_server.ts.js-BCQlnrGe.js +0 -96
  720. package/build/server/chunks/entries/endpoints/api/live/scouts/_server.ts.js-C4IE5onc.js +0 -118
  721. package/build/server/chunks/entries/endpoints/api/live/settings/_server.ts.js-BEQa9lj6.js +0 -72
  722. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/_server.ts.js-2JFQWMGG.js +0 -93
  723. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/_server.ts.js-Bu0VmgeG.js +0 -82
  724. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/_server.ts.js-DMVzgRXs.js +0 -77
  725. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/_server.ts.js-BkQZamil.js +0 -74
  726. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/_server.ts.js-Dz9dAgEt.js +0 -27
  727. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/_server.ts.js-D6m-gaJm.js +0 -81
  728. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/_server.ts.js-D2F2UeX3.js +0 -39
  729. package/build/server/chunks/entries/endpoints/api/plugins/_server.ts.js-CMcKr8nq.js +0 -58
  730. package/build/server/chunks/entries/endpoints/api/plugins/inspect/_server.ts.js-CyX2kUrz.js +0 -39
  731. package/build/server/chunks/entries/endpoints/api/plugins/install/_server.ts.js-CAgJLmfJ.js +0 -42
  732. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/_server.ts.js-C-YOUEeh.js +0 -63
  733. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/_server.ts.js-BuB_aUcs.js +0 -72
  734. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/_server.ts.js-uFBc9qAF.js +0 -69
  735. package/build/server/chunks/entries/endpoints/api/plugins/roles/_server.ts.js-BwP7m1ne.js +0 -73
  736. package/build/server/chunks/entries/endpoints/api/plugins/updates/_server.ts.js-BDXiQIdE.js +0 -27
  737. package/build/server/chunks/entries/endpoints/api/previews/check/_server.ts.js-BHTqJRTV.js +0 -81
  738. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/_server.ts.js-DaExrOG9.js +0 -63
  739. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/_server.ts.js-BBcgKi4i.js +0 -72
  740. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/_server.ts.js-BPgyW_wK.js +0 -84
  741. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/_server.ts.js-B3_OvzWw.js +0 -71
  742. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/_server.ts.js-C1qyVk-B.js +0 -94
  743. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/_server.ts.js-CWjUpm9b.js +0 -77
  744. package/build/server/chunks/entries/endpoints/api/second-mate-setup/_server.ts.js-Y6iM0S6h.js +0 -473
  745. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/link/_server.ts.js-C2XK2RjP.js +0 -88
  746. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/_server.ts.js-DOBoBUsW.js +0 -67
  747. package/build/server/chunks/entries/endpoints/api/services/_server.ts.js-ClGwOp1I.js +0 -77
  748. package/build/server/chunks/entries/endpoints/api/setup/_server.ts.js-DrfL6cjv.js +0 -137
  749. package/build/server/chunks/entries/endpoints/api/slots/_server.ts.js-CcZPyGtL.js +0 -66
  750. package/build/server/chunks/entries/endpoints/api/soundings/_server.ts.js-DA8MpdlA.js +0 -80
  751. package/build/server/chunks/entries/endpoints/api/soundings/beacon/_server.ts.js-C9MStV42.js +0 -66
  752. package/build/server/chunks/entries/endpoints/api/soundings/settings/_server.ts.js-aiZABdT4.js +0 -69
  753. package/build/server/chunks/entries/endpoints/api/tasks/_id_/_server.ts.js-CFWnCNhR.js +0 -63
  754. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/_server.ts.js-rUy8BKIx.js +0 -82
  755. package/build/server/chunks/entries/endpoints/api/tasks/_id_/chat/_server.ts.js-B0sfWkfC.js +0 -109
  756. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/_server.ts.js-BwKBxIbZ.js +0 -75
  757. package/build/server/chunks/entries/endpoints/api/tasks/_id_/livereview/_server.ts.js-VsLkyd6z.js +0 -104
  758. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/_server.ts.js-sPq94TYM.js +0 -123
  759. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/_server.ts.js-dlImNVbc.js +0 -77
  760. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/_server.ts.js-Ajt27nH3.js +0 -80
  761. package/build/server/chunks/entries/endpoints/api/vault/_server.ts.js-C7_DGaT1.js +0 -81
  762. package/build/server/chunks/entries/endpoints/api/voice/_server.ts.js-BPzYZcVX.js +0 -24
  763. package/build/server/chunks/entries/endpoints/api/voice/hear/_server.ts.js-tje_tDmn.js +0 -31
  764. package/build/server/chunks/entries/endpoints/api/voice/speak/_server.ts.js-CboOaWGF.js +0 -33
  765. package/build/server/chunks/entries/endpoints/api/wh-events/_server.ts.js-ByGfzq0k.js +0 -93
  766. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/_server.ts.js-CAarY5F9.js +0 -40
  767. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/_server.ts.js-CG8phUOI.js +0 -27
  768. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/_server.ts.js-DVALJQwH.js +0 -27
  769. package/build/server/chunks/entries/endpoints/tasks/_id_/live/_server.ts.js-DJbuQ133.js +0 -82
  770. package/build/server/chunks/entries/endpoints/tasks/_id_/review/_server.ts.js-C2GHSxyQ.js +0 -62
  771. package/build/server/chunks/entries/hooks.server.js-Glu4cfzQ.js +0 -104
  772. package/build/server/chunks/entries/pages/_layout.server.ts.js-C2Q75Dku.js +0 -54
  773. package/build/server/chunks/entries/pages/_layout.svelte.js-CvC6XBJv.js +0 -6027
  774. package/build/server/chunks/entries/pages/_page.server.ts.js-DdBa3OcX.js +0 -16
  775. package/build/server/chunks/entries/pages/_page.svelte.js-mP8Czi7r.js +0 -5776
  776. package/build/server/chunks/entries/pages/crew/_page.svelte.js-DPAqRea5.js +0 -114
  777. package/build/server/chunks/entries/pages/decisions/_page.server.ts.js-CHrBjN6U.js +0 -11
  778. package/build/server/chunks/entries/pages/decisions/_page.svelte.js-CpO0O1OU.js +0 -203
  779. package/build/server/chunks/entries/pages/deck/_page.server.ts.js-DVXZwj-D.js +0 -16
  780. package/build/server/chunks/entries/pages/deck/_page.svelte.js-BXRSYCJu.js +0 -92
  781. package/build/server/chunks/entries/pages/files/_page.server.ts.js-DPw8W3cO.js +0 -17
  782. package/build/server/chunks/entries/pages/headroom/_page.server.ts.js-BIxCYvRT.js +0 -11
  783. package/build/server/chunks/entries/pages/headroom/_page.svelte.js-DpQNL_3w.js +0 -296
  784. package/build/server/chunks/entries/pages/health/_page.server.ts.js-BmvIfRNN.js +0 -16
  785. package/build/server/chunks/entries/pages/health/_page.svelte.js-Hv9ZBH4n.js +0 -517
  786. package/build/server/chunks/entries/pages/inbox/_page.server.ts.js-DYmxSK6o.js +0 -11
  787. package/build/server/chunks/entries/pages/inbox/_page.svelte.js-B0s298VF.js +0 -653
  788. package/build/server/chunks/entries/pages/more/_page.svelte.js-CufPJWN5.js +0 -152
  789. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.server.ts.js-BM100wYL.js +0 -16
  790. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/_page.svelte.js-C5XPxJUP.js +0 -60
  791. package/build/server/chunks/entries/pages/projects/_id_/_page.server.ts.js-CsxshObH.js +0 -23
  792. package/build/server/chunks/entries/pages/projects/_id_/_page.svelte.js-DHr4nadD.js +0 -982
  793. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.server.ts.js-CdLIMcCE.js +0 -21
  794. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/_page.svelte.js-Bf2ZytHx.js +0 -82
  795. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.server.ts.js-UDHRJeTm.js +0 -27
  796. package/build/server/chunks/entries/pages/projects/_id_/passage/_page.svelte.js-JqXcyM-3.js +0 -420
  797. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/_page.server.ts.js-CRrQcUKj.js +0 -15
  798. package/build/server/chunks/entries/pages/remotes/_page.server.ts.js-Cb7pCLmf.js +0 -11
  799. package/build/server/chunks/entries/pages/remotes/_page.svelte.js-DTAfyct4.js +0 -347
  800. package/build/server/chunks/entries/pages/second-mates/_page.server.ts.js-uBLPj30-.js +0 -13
  801. package/build/server/chunks/entries/pages/settings/_page.server.ts.js-B3XP4Mv2.js +0 -12
  802. package/build/server/chunks/entries/pages/settings/chat/_page.server.ts.js-tOduOAOo.js +0 -18
  803. package/build/server/chunks/entries/pages/settings/discussion/_page.server.ts.js-Dewu_3lC.js +0 -19
  804. package/build/server/chunks/entries/pages/settings/events/_page.server.ts.js-Bosk4MgV.js +0 -16
  805. package/build/server/chunks/entries/pages/settings/experimental/_page.server.ts.js-CZtFqHkG.js +0 -15
  806. package/build/server/chunks/entries/pages/settings/experimental/_page.svelte.js-DvO07PUQ.js +0 -83
  807. package/build/server/chunks/entries/pages/settings/firstmate/_page.server.ts.js-Dm16bW7a.js +0 -797
  808. package/build/server/chunks/entries/pages/settings/gateway/_page.server.ts.js-DKBRV1Kv.js +0 -11
  809. package/build/server/chunks/entries/pages/settings/gateway/_page.svelte.js-82UzMnWS.js +0 -258
  810. package/build/server/chunks/entries/pages/settings/plugins/_page.server.ts.js-BuXRLXt-.js +0 -19
  811. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/_page.server.ts.js-aYwltwyo.js +0 -17
  812. package/build/server/chunks/entries/pages/settings/setup/_page.server.ts.js-CBnW3vAL.js +0 -11
  813. package/build/server/chunks/entries/pages/settings/update/_page.server.ts.js-mmHvowRY.js +0 -11
  814. package/build/server/chunks/entries/pages/settings/voice/_page.server.ts.js-BtcArcMy.js +0 -15
  815. package/build/server/chunks/entries/pages/setup/_page.server.ts.js-CWVSledS.js +0 -18
  816. package/build/server/chunks/entries/pages/tasks/_id_/_page.server.ts.js-J4OLpWmN.js +0 -36
  817. package/build/server/chunks/entries/pages/tasks/_id_/_page.svelte.js-DS5ww-c8.js +0 -111
  818. package/build/server/chunks/entries/pages/tasks/_id_/doc/_page.server.ts.js-D9dQvbNO.js +0 -24
  819. package/build/server/chunks/entries/pages/time/_page.server.ts.js-DD-uGmhK.js +0 -11
  820. package/build/server/chunks/entries/pages/time/_page.svelte.js-CWz6ug4X.js +0 -109
  821. package/build/server/chunks/handler-Rlgr3qgp.js +0 -1474
  822. package/build/server/chunks/index.js-Cq8PeAYv.js +0 -4296
  823. package/build/server/chunks/manifest.js-D2nXE20x.js +0 -969
  824. package/build/server/chunks/nodes/0.js-D-AyokcK.js +0 -66
  825. package/build/server/chunks/nodes/1.js-CEP8Wkc6.js +0 -9
  826. package/build/server/chunks/nodes/10.js-DQ05XfkH.js +0 -65
  827. package/build/server/chunks/nodes/11.js-CUI7nHXF.js +0 -63
  828. package/build/server/chunks/nodes/12.js-D4Qq5-L5.js +0 -12
  829. package/build/server/chunks/nodes/13.js-B5b0noB_.js +0 -9
  830. package/build/server/chunks/nodes/14.js-Dz8rjKdf.js +0 -9
  831. package/build/server/chunks/nodes/15.js-CqjaR54q.js +0 -63
  832. package/build/server/chunks/nodes/16.js-CSFtMqSs.js +0 -66
  833. package/build/server/chunks/nodes/17.js-DIXFVzud.js +0 -64
  834. package/build/server/chunks/nodes/18.js-D0OLmYtB.js +0 -65
  835. package/build/server/chunks/nodes/19.js-CjK_nc0R.js +0 -64
  836. package/build/server/chunks/nodes/2.js-C5aTOTCK.js +0 -63
  837. package/build/server/chunks/nodes/20.js-F_X6MGKx.js +0 -24
  838. package/build/server/chunks/nodes/21.js-CLD608m1.js +0 -25
  839. package/build/server/chunks/nodes/22.js-DJDOD8dQ.js +0 -9
  840. package/build/server/chunks/nodes/23.js-DlV1Jrn6.js +0 -25
  841. package/build/server/chunks/nodes/24.js-1ccZSvaM.js +0 -63
  842. package/build/server/chunks/nodes/26.js-P2RkHNN_.js +0 -64
  843. package/build/server/chunks/nodes/27.js-CHcCaT46.js +0 -63
  844. package/build/server/chunks/nodes/28.js-mNdmkKwl.js +0 -25
  845. package/build/server/chunks/nodes/29.js-Cds-0H9b.js +0 -63
  846. package/build/server/chunks/nodes/3.js-Dm0t0ruE.js +0 -9
  847. package/build/server/chunks/nodes/30.js-CbuDQapx.js +0 -24
  848. package/build/server/chunks/nodes/31.js-DoqM4d_j.js +0 -22
  849. package/build/server/chunks/nodes/32.js-uWw9LwYe.js +0 -63
  850. package/build/server/chunks/nodes/33.js-Bi8tKoQ6.js +0 -66
  851. package/build/server/chunks/nodes/34.js-CPjjhmOm.js +0 -65
  852. package/build/server/chunks/nodes/35.js-CBKkzHgr.js +0 -26
  853. package/build/server/chunks/nodes/36.js-CTvFiRyW.js +0 -65
  854. package/build/server/chunks/nodes/37.js-1vY9OMcr.js +0 -67
  855. package/build/server/chunks/nodes/38.js-DhcBz8pw.js +0 -64
  856. package/build/server/chunks/nodes/39.js-5F3z7S6Q.js +0 -64
  857. package/build/server/chunks/nodes/4.js-KHEhlqP6.js +0 -63
  858. package/build/server/chunks/nodes/40.js-DcvGK4bV.js +0 -63
  859. package/build/server/chunks/nodes/5.js-_ddQMODI.js +0 -63
  860. package/build/server/chunks/nodes/7.js-CmYiMFTa.js +0 -63
  861. package/build/server/chunks/nodes/8.js-LyEm37G-.js +0 -14
  862. package/build/server/chunks/nodes/9.js-47Ps2sky.js +0 -63
@@ -1,1317 +0,0 @@
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-BJxqrnBd.js';
9
- import { g as getRuntime, A as parseMateTaskId } from './runtime.js-beTUQJvS.js';
10
- import { runHelper } from './previewhelper2.js-C8YozFzs.js';
11
- import { d as defaultStateDir } from './store.js-CNgqr3Sa.js';
12
- import { r as runBounded, w as which } from './tmux.js-iKfXN6X8.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, takes a screenshot of what is
34
- * in view when asked, and shows on the button whether it is recording. It
35
- * sends nothing anywhere else and records nothing until the panel says so.
36
- */
37
- (() => {
38
- const PARENT = '__WHEELHOUSE_ORIGIN__';
39
- const REVIEW = '__WHEELHOUSE_REVIEW__';
40
- // Only the page itself (not a frame inside it), and only a copy made for a review.
41
- if (window.__whRecorder || window.top !== window || !REVIEW || typeof REVIEW !== 'object') return;
42
- window.__whRecorder = true;
43
-
44
- let recording = false;
45
- let mask = true;
46
- let ready = false;
47
- let queued = [];
48
- let panel = null;
49
- const send = (type, data = {}) => {
50
- const m = { __wh: 1, type, url: location.href, title: document.title, ...data };
51
- if (!ready || !panel || !panel.contentWindow) {
52
- // Before the panel has loaded: only the latest of each kind waits for it.
53
- queued = queued.filter((q) => q.type !== type || type === 'error').concat(m);
54
- return;
55
- }
56
- panel.contentWindow.postMessage(m, PARENT);
57
- };
58
-
59
- /* ---------------------------------------------------- naming what was used */
60
-
61
- const tidy = (s) => (s || '').replace(/\\s+/g, ' ').trim();
62
- const cut = (s, n) => (s.length > n ? s.slice(0, n - 1).trimEnd() + '…' : s);
63
- const NOUN = {
64
- button: 'button',
65
- a: 'link',
66
- input: 'box',
67
- textarea: 'box',
68
- select: 'menu',
69
- img: 'picture',
70
- h1: 'heading',
71
- h2: 'heading',
72
- h3: 'heading',
73
- h4: 'heading',
74
- label: 'label',
75
- li: 'item',
76
- summary: 'toggle',
77
- td: 'cell',
78
- th: 'column heading',
79
- nav: 'menu'
80
- };
81
- const NEAR =
82
- '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';
83
-
84
- // The words a person would use for it: the first line of its visible text (a card's title, not all of it).
85
- function firstLine(el) {
86
- const lines = (el.innerText || el.textContent || '')
87
- .split('\\n')
88
- .map((l) => l.replace(/^[^\\p{L}\\p{N}]+/u, '').trim())
89
- .filter((l) => /\\p{L}/u.test(l));
90
- return lines[0] || '';
91
- }
92
-
93
- function described(raw) {
94
- const el = raw && raw.closest ? raw.closest(NEAR) || raw : raw;
95
- if (!el || el === document.body || el === document.documentElement) return null;
96
- const tag = el.tagName.toLowerCase();
97
- const role = el.getAttribute('role');
98
- const type = (el.getAttribute('type') || '').toLowerCase();
99
- let noun =
100
- role === 'tab'
101
- ? 'tab'
102
- : role === 'button'
103
- ? 'button'
104
- : role === 'menuitem'
105
- ? 'menu item'
106
- : role === 'checkbox' || type === 'checkbox'
107
- ? 'tick box'
108
- : role === 'switch'
109
- ? 'switch'
110
- : type === 'radio'
111
- ? 'option'
112
- : NOUN[tag] || 'part of the page';
113
- const labelFor = el.id && document.querySelector(\`label[for="\${CSS.escape(el.id)}"]\`);
114
- const secret =
115
- type === 'password' || /pass|secret|token|card|cvc|ssn/i.test(el.name || el.id || '');
116
- const words = cut(
117
- tidy(
118
- el.getAttribute('aria-label') ||
119
- (labelFor && labelFor.textContent) ||
120
- el.getAttribute('placeholder') ||
121
- el.getAttribute('alt') ||
122
- el.getAttribute('title') ||
123
- (tag === 'input' || tag === 'textarea' ? '' : firstLine(el)) ||
124
- (tag === 'input' && ['button', 'submit'].includes(type) ? el.value : '')
125
- ),
126
- 60
127
- );
128
- const r = el.getBoundingClientRect();
129
- return {
130
- label: words ? \`the “\${words}” \${noun}\` : \`a \${noun}\`,
131
- tag,
132
- text: words,
133
- secret,
134
- selector: selectorOf(el),
135
- rect: { x: r.left, y: r.top, w: r.width, h: r.height }
136
- };
137
- }
138
-
139
- function selectorOf(el) {
140
- const parts = [];
141
- for (let n = el; n && n.nodeType === 1 && parts.length < 4; n = n.parentElement) {
142
- if (n.id && !/\\d{3,}/.test(n.id)) {
143
- parts.unshift(\`#\${CSS.escape(n.id)}\`);
144
- break;
145
- }
146
- const test = n.getAttribute('data-testid');
147
- if (test) {
148
- parts.unshift(\`[data-testid="\${test}"]\`);
149
- break;
150
- }
151
- let s = n.tagName.toLowerCase();
152
- const cls = [...n.classList]
153
- .filter((c) => !/^(is-|has-|active|open|hover|focus)/.test(c))
154
- .slice(0, 2);
155
- if (cls.length) s += '.' + cls.map((c) => CSS.escape(c)).join('.');
156
- const p = n.parentElement;
157
- if (p) {
158
- const same = [...p.children].filter((c) => c.tagName === n.tagName);
159
- if (same.length > 1) s += \`:nth-of-type(\${same.indexOf(n) + 1})\`;
160
- }
161
- parts.unshift(s);
162
- }
163
- return parts.join(' > ');
164
- }
165
-
166
- const viewport = () => ({ vw: innerWidth, vh: innerHeight });
167
-
168
- /* ------------------------------------------- the floating button and panel */
169
-
170
- const store = {
171
- get(k) {
172
- try {
173
- return JSON.parse(sessionStorage.getItem('wh-live-review:' + k) || 'null');
174
- } catch {
175
- return null;
176
- }
177
- },
178
- set(k, v) {
179
- try {
180
- sessionStorage.setItem('wh-live-review:' + k, JSON.stringify(v));
181
- } catch {
182
- // storage refused: it is only where the button sits and whether the panel is open
183
- }
184
- }
185
- };
186
-
187
- const host = document.createElement('div');
188
- host.setAttribute('data-wh-recorder', '');
189
- host.style.cssText = 'all:initial;position:fixed;inset:0;pointer-events:none;z-index:2147483647';
190
- const shadow = host.attachShadow({ mode: 'open' });
191
- // Wheelhouse's own look (its design tokens: ink, ivory, brass; DM Sans), calm over any page.
192
- shadow.innerHTML = \`<style>
193
- *{box-sizing:border-box}
194
- :host{--ink:#121a23;--ink2:#1b2633;--ivory:#f6f4ee;--line:rgba(246,244,238,.14);--soft:#a7b0ba;
195
- --brass:#e8b04a;--brass-ink:#a87412;font-family:'DM Sans Variable','DM Sans',ui-sans-serif,system-ui,sans-serif}
196
- [hidden]{display:none!important}
197
- .btn,.tip,.tl,.area span{font-family:'DM Sans Variable','DM Sans',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
198
- -webkit-font-smoothing:antialiased}
199
- button{all:unset;box-sizing:border-box;cursor:pointer;font:inherit}
200
- button:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
201
- .btn{position:fixed;display:flex;align-items:center;gap:4px;padding:4px;border-radius:12px;pointer-events:auto;
202
- background:var(--ink);color:var(--ivory);font-size:13px;font-weight:500;line-height:1;
203
- 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}
204
- .btn button{display:flex;align-items:center;gap:8px;height:34px;padding:0 12px 0 10px;border-radius:9px}
205
- .btn button:hover{background:var(--ink2)}
206
- .btn.drag{cursor:grabbing}
207
- .dot{width:16px;height:16px;border-radius:50%;border:1.5px solid var(--brass);display:grid;place-items:center;flex:none}
208
- .dot i{width:6px;height:6px;border-radius:50%;background:var(--brass)}
209
- .rec .dot i,.talk .dot i{animation:p 1.6s infinite}
210
- .talk .dot i{animation-duration:.8s}
211
- .paused .dot i{background:var(--soft);animation:none}
212
- @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)}}
213
- .clock{font:500 12px/1 'JetBrains Mono Variable',ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--soft);font-variant-numeric:tabular-nums}
214
- .done{background:var(--ivory)!important;color:var(--ink);font-weight:600;padding:0 12px!important}
215
- .done:hover{background:#fff!important}
216
- .done b{width:9px;height:9px;border-radius:2px;background:var(--ink)}
217
- .quick{background:var(--ivory)!important;color:var(--ink);font-weight:600;font-size:15px;height:44px!important;padding:0 18px 0 14px!important}
218
- .quick b{width:12px;height:12px;border-radius:50%;background:var(--brass-ink)}
219
- .quick.on b{border-radius:3px;background:var(--ink)}
220
- .phone .open{height:44px;width:44px;padding:0!important;justify-content:center}
221
- .phone .open .lbl,.phone .open .clock{display:none}
222
- .panel{position:fixed;border-radius:14px;overflow:hidden;pointer-events:auto;background:var(--ink);
223
- 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}
224
- .panel.shut{opacity:0;transform:translateY(8px) scale(.98);pointer-events:none;visibility:hidden}
225
- .panel iframe{display:block;width:100%;height:100%;border:0;background:transparent}
226
- .tip{position:fixed;left:50%;top:16px;transform:translateX(-50%);max-width:calc(100vw - 24px);display:flex;align-items:center;gap:14px;
227
- padding:10px 12px 10px 16px;border-radius:12px;pointer-events:auto;background:var(--ink);color:var(--ivory);font-size:14px;line-height:1.3;
228
- box-shadow:0 10px 30px rgba(18,26,35,.28)}
229
- .tip button{color:var(--brass);font-weight:600;white-space:nowrap;padding:4px 6px;border-radius:6px}
230
- .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}
231
- @keyframes r{from{transform:scale(.3);opacity:1}to{transform:scale(1.4);opacity:0}}
232
- .hl{position:fixed;border:2px solid var(--brass);border-radius:4px;transition:all .12s;opacity:0;pointer-events:none}
233
- .hl.on{opacity:1}
234
- .hl.pick{background:rgba(232,176,74,.12)}
235
- .layer{position:fixed;inset:0;pointer-events:auto;cursor:crosshair;background:rgba(18,26,35,.32);touch-action:none}
236
- .layer.drawing{background:transparent}
237
- .area{position:fixed;border:2px solid var(--brass);border-radius:6px;background:rgba(232,176,74,.08);pointer-events:none}
238
- .area.live{box-shadow:0 0 0 100vmax rgba(18,26,35,.38)}
239
- .area span{position:absolute;top:-11px;left:-11px;width:22px;height:22px;border-radius:50%;background:var(--brass);color:var(--ink);
240
- font-size:12px;font-weight:700;line-height:22px;text-align:center}
241
- .tl{position:fixed;left:16px;right:16px;bottom:14px;height:40px;display:flex;align-items:center;gap:12px;padding:0 14px;border-radius:10px;
242
- pointer-events:none;background:rgba(18,26,35,.9);color:var(--ivory);box-shadow:0 8px 24px rgba(18,26,35,.22);
243
- transition:opacity .2s ease,transform .2s ease}
244
- .tl.away{opacity:0;transform:translateY(10px)}
245
- .tl b{font:600 10.5px/1 'JetBrains Mono Variable',ui-monospace,Menlo,monospace;letter-spacing:.14em;color:var(--soft)}
246
- .tl .t{font:500 12px/1 'JetBrains Mono Variable',ui-monospace,Menlo,monospace;color:var(--soft);font-variant-numeric:tabular-nums}
247
- .track{position:relative;flex:1;height:18px}
248
- .track::before{content:'';position:absolute;left:0;right:0;top:50%;height:1px;background:var(--line)}
249
- .track i{position:absolute;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:var(--soft)}
250
- .track i.said{width:4px;height:14px;margin:-7px 0 0 -2px;border-radius:2px;background:var(--brass)}
251
- .track i.mark{border-radius:1px;background:transparent;border:1.5px solid var(--brass)}
252
- .track i.error{background:#f08a6c}
253
- .track i.now{width:2px;height:18px;margin:-9px 0 0 -1px;border-radius:1px;background:var(--ivory)}
254
- </style><div class="hl"></div>
255
- <div class="areas"></div>
256
- <div class="layer" hidden></div>
257
- <div class="tl" hidden aria-hidden="true"><b>TIMELINE</b><span class="track"></span><span class="t"></span></div>
258
- <div class="tip pick-tip" hidden>Click the part of the page your comment is about<button type="button">Cancel</button></div>
259
- <div class="tip mark-tip" hidden>Drag over the part of the page you mean<button type="button">Done marking</button></div>
260
- <div class="panel shut" role="dialog" aria-label="Live review"></div>
261
- <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>\`;
262
- const hl = shadow.querySelector('.hl');
263
- const tip = shadow.querySelector('.pick-tip');
264
- const markTip = shadow.querySelector('.mark-tip');
265
- const layer = shadow.querySelector('.layer');
266
- const areasBox = shadow.querySelector('.areas');
267
- const tl = shadow.querySelector('.tl');
268
- const box = shadow.querySelector('.panel');
269
- const btn = shadow.querySelector('.btn');
270
- const openBtn = shadow.querySelector('.open');
271
- const doneBtn = shadow.querySelector('.done');
272
- const quick = shadow.querySelector('.quick');
273
- const lbl = shadow.querySelector('.lbl');
274
- const clock = shadow.querySelector('.clock');
275
- // On a phone: one control, Record then Stop (no holding), and the panel as a sheet for comments.
276
- const phone = matchMedia('(max-width: 640px), (pointer: coarse)').matches;
277
- btn.classList.toggle('phone', phone);
278
- quick.hidden = !phone;
279
-
280
- panel = document.createElement('iframe');
281
- panel.title = 'Live review';
282
- panel.allow = 'microphone; autoplay';
283
- panel.src =
284
- \`\${PARENT}/live-review/\${encodeURIComponent(REVIEW.task)}?\` +
285
- new URLSearchParams({
286
- from: location.origin,
287
- title: REVIEW.title,
288
- preview: REVIEW.preview,
289
- back: REVIEW.back
290
- });
291
- box.appendChild(panel);
292
-
293
- // Where the button sits (it can be dragged anywhere), and the panel beside it.
294
- let pos = store.get('pos') || { right: 16, bottom: 16 };
295
- let open = !!store.get('open');
296
- let large = false;
297
- const clamp = (v, max) => Math.max(8, Math.min(v, max));
298
- function place() {
299
- const w = btn.offsetWidth || 120;
300
- const h = btn.offsetHeight || 44;
301
- pos = {
302
- right: clamp(pos.right, innerWidth - w - 8),
303
- bottom: clamp(pos.bottom, innerHeight - h - 8)
304
- };
305
- btn.style.right = pos.right + 'px';
306
- btn.style.bottom = pos.bottom + 'px';
307
- if (phone) {
308
- // What is on the screen (a page wider than the phone still shows this much): the control
309
- // sits at its foot, in the middle, and the panel rises over it as a sheet.
310
- const vv = window.visualViewport;
311
- const vw = vv ? vv.width : innerWidth;
312
- const vh = vv ? vv.height : innerHeight;
313
- const ox = vv ? vv.offsetLeft : 0;
314
- const oy = vv ? vv.offsetTop : 0;
315
- Object.assign(btn.style, {
316
- right: 'auto',
317
- bottom: 'auto',
318
- left: ox + (vw - w) / 2 + 'px',
319
- top: oy + vh - h - 16 + 'px'
320
- });
321
- const height = large ? vh - 24 : Math.min(vh * 0.78, 640);
322
- Object.assign(box.style, {
323
- left: ox + 'px',
324
- right: 'auto',
325
- bottom: 'auto',
326
- top: oy + vh - height + 'px',
327
- width: vw + 'px',
328
- height: height + 'px',
329
- borderRadius: '16px 16px 0 0'
330
- });
331
- return;
332
- }
333
- if (large) {
334
- Object.assign(box.style, {
335
- top: '16px',
336
- bottom: '16px',
337
- right: '16px',
338
- left: 'auto',
339
- width: 'min(44rem, calc(100vw - 32px))',
340
- height: 'auto'
341
- });
342
- return;
343
- }
344
- const width = Math.min(400, innerWidth - 16);
345
- const height = Math.min(640, innerHeight - h - 40);
346
- const left = innerWidth - pos.right - w;
347
- const fromRight = left + w / 2 > innerWidth / 2;
348
- // The button low on the screen: the panel opens above it, else below it.
349
- const above = innerHeight - pos.bottom - h > innerHeight / 2;
350
- Object.assign(box.style, {
351
- width: width + 'px',
352
- height: height + 'px',
353
- left: fromRight ? 'auto' : clamp(left, innerWidth - width - 8) + 'px',
354
- right: fromRight ? clamp(pos.right, innerWidth - width - 8) + 'px' : 'auto',
355
- top: above ? 'auto' : clamp(innerHeight - pos.bottom + 10, innerHeight - height - 8) + 'px',
356
- bottom: above ? clamp(pos.bottom + h + 10, innerHeight - height - 8) + 'px' : 'auto'
357
- });
358
- }
359
- function setOpen(v) {
360
- open = v;
361
- store.set('open', v);
362
- box.classList.toggle('shut', !open);
363
- openBtn.setAttribute('aria-expanded', String(open));
364
- // On a phone the sheet has its own Done and minimise; the control steps aside for it.
365
- btn.style.visibility = phone && open ? 'hidden' : '';
366
- place();
367
- }
368
- addEventListener('resize', place);
369
- if (phone && window.visualViewport) {
370
- visualViewport.addEventListener('resize', place);
371
- visualViewport.addEventListener('scroll', place);
372
- }
373
-
374
- // A press on the button opens or closes the panel; a press that moves drags it.
375
- let drag = null;
376
- openBtn.addEventListener('pointerdown', (e) => {
377
- if (e.button !== 0) return;
378
- drag = { x: e.clientX, y: e.clientY, right: pos.right, bottom: pos.bottom, moved: false };
379
- try {
380
- openBtn.setPointerCapture(e.pointerId);
381
- } catch {
382
- // a pointer the browser will not capture: the drag still works while it stays over
383
- }
384
- });
385
- openBtn.addEventListener('pointermove', (e) => {
386
- // On a phone the control stays at the foot of the screen.
387
- if (!drag || phone) return;
388
- const dx = e.clientX - drag.x;
389
- const dy = e.clientY - drag.y;
390
- if (!drag.moved && Math.hypot(dx, dy) < 5) return;
391
- drag.moved = true;
392
- btn.classList.add('drag');
393
- pos = { right: drag.right - dx, bottom: drag.bottom - dy };
394
- place();
395
- });
396
- openBtn.addEventListener('pointerup', () => {
397
- if (!drag) return;
398
- const moved = drag.moved;
399
- drag = null;
400
- btn.classList.remove('drag');
401
- if (moved) store.set('pos', pos);
402
- else setOpen(!open);
403
- });
404
- openBtn.addEventListener('keydown', (e) => {
405
- if (e.key === 'Enter' || e.key === ' ') {
406
- e.preventDefault();
407
- setOpen(!open);
408
- }
409
- });
410
- // On a phone, Record starts the discussion with the mic on (no holding), and Stop ends it.
411
- quick.addEventListener('click', () => send('quick'));
412
- // Done is always one press away while anything is under way.
413
- doneBtn.addEventListener('click', () => {
414
- send('done');
415
- setOpen(true);
416
- });
417
-
418
- // What the panel says of the session, shown on the button.
419
- let since = 0;
420
- let tick = 0;
421
- function showState(m) {
422
- // With the pack open the session is over: the button says so, without a clock.
423
- if (m.pack) m = { pack: true };
424
- btn.classList.toggle('rec', !!m.recording && !m.paused && !m.talking);
425
- btn.classList.toggle('talk', !!m.talking);
426
- btn.classList.toggle('paused', !!m.recording && !!m.paused);
427
- lbl.textContent = m.pack
428
- ? 'Feedback pack'
429
- : m.talking
430
- ? 'Listening'
431
- : m.recording
432
- ? m.paused
433
- ? 'Paused'
434
- : 'Recording'
435
- : m.comments
436
- ? \`\${m.comments} comment\${m.comments === 1 ? '' : 's'}\`
437
- : 'Review';
438
- doneBtn.hidden = phone || !m.canDone;
439
- quick.classList.toggle('on', !!m.recording);
440
- quick.querySelector('.qlbl').textContent = m.recording ? 'Stop' : 'Record';
441
- quick.hidden = !phone || !!m.pack;
442
- since = m.recording ? m.started : 0;
443
- tl.hidden = phone || !m.recording;
444
- clock.hidden = !since;
445
- clearInterval(tick);
446
- if (since) {
447
- const draw = () => {
448
- const s = Math.max(0, Math.floor((Date.now() - since) / 1000));
449
- clock.textContent = \`\${String(Math.floor(s / 60)).padStart(2, '0')}:\${String(s % 60).padStart(2, '0')}\`;
450
- drawTimeline();
451
- };
452
- draw();
453
- tick = setInterval(draw, 1000);
454
- }
455
- place();
456
- }
457
-
458
- const mount = () => {
459
- if (!document.body || host.isConnected) return;
460
- document.body.appendChild(host);
461
- setOpen(open);
462
- drawAreas();
463
- };
464
- if (document.body) mount();
465
- else document.addEventListener('DOMContentLoaded', mount);
466
- // A page that replaces its body (some apps do as they start) gets the button back.
467
- new MutationObserver(() => mount()).observe(document.documentElement, { childList: true });
468
-
469
- /* ------------------------------------------------- picking what to comment on */
470
-
471
- let picking = false;
472
- function outline(node, cls) {
473
- if (!node) return hl.classList.remove('on');
474
- const r = node.getBoundingClientRect();
475
- Object.assign(hl.style, {
476
- left: r.left - 3 + 'px',
477
- top: r.top - 3 + 'px',
478
- width: r.width + 6 + 'px',
479
- height: r.height + 6 + 'px'
480
- });
481
- hl.className = 'hl on ' + (cls || '');
482
- }
483
- const pickable = (t) => t && t !== host && !host.contains(t) && t !== document.documentElement;
484
- function pick(on) {
485
- picking = on;
486
- tip.hidden = !on;
487
- if (on) setOpen(false);
488
- else hl.className = 'hl';
489
- }
490
- tip.querySelector('button').addEventListener('click', () => {
491
- pick(false);
492
- send('picked', { el: null });
493
- setOpen(true);
494
- });
495
- const swallow = (e) => {
496
- if (!picking || !pickable(e.target)) return;
497
- e.preventDefault();
498
- e.stopPropagation();
499
- e.stopImmediatePropagation();
500
- };
501
- for (const type of ['pointerdown', 'mousedown', 'pointerup', 'mouseup', 'touchstart'])
502
- addEventListener(type, swallow, true);
503
- addEventListener(
504
- 'pointermove',
505
- (e) => {
506
- if (!picking) return;
507
- const t = document.elementFromPoint(e.clientX, e.clientY);
508
- if (!pickable(t)) return;
509
- outline(t.closest(NEAR) || t, 'pick');
510
- },
511
- true
512
- );
513
-
514
- /* --------------------------------------------------------- marking areas */
515
-
516
- // While marking, the page dims and takes no input: a layer over it catches the pointer, and
517
- // each drag marks a rectangle, highlighted as it is drawn. Marked areas stay on the page they
518
- // were marked on for the rest of the session.
519
- let marking = false;
520
- let areas = store.get('areas') || [];
521
- const here = () => location.pathname + location.search + location.hash;
522
- function drawAreas() {
523
- areasBox.textContent = '';
524
- for (const a of areas) {
525
- if (a.page !== here()) continue;
526
- const d = document.createElement('div');
527
- d.className = 'area';
528
- Object.assign(d.style, {
529
- left: a.x - scrollX + 'px',
530
- top: a.y - scrollY + 'px',
531
- width: a.w + 'px',
532
- height: a.h + 'px'
533
- });
534
- const n = document.createElement('span');
535
- n.textContent = String(a.n);
536
- d.appendChild(n);
537
- areasBox.appendChild(d);
538
- }
539
- }
540
- addEventListener('scroll', drawAreas, { passive: true, capture: true });
541
- addEventListener('resize', drawAreas);
542
- addEventListener('hashchange', drawAreas);
543
- addEventListener('popstate', drawAreas);
544
- function setMarking(on) {
545
- marking = on;
546
- layer.hidden = !on;
547
- markTip.hidden = !on;
548
- // On a phone the sheet would cover the page being marked.
549
- if (on && phone) setOpen(false);
550
- if (on && document.activeElement && document.activeElement !== document.body)
551
- document.activeElement.blur();
552
- }
553
- markTip.querySelector('button').addEventListener('click', () => {
554
- setMarking(false);
555
- send('marking', { on: false });
556
- });
557
- let live = null;
558
- layer.addEventListener('pointerdown', (e) => {
559
- if (e.button !== 0) return;
560
- e.preventDefault();
561
- try {
562
- layer.setPointerCapture(e.pointerId);
563
- } catch {
564
- // a pointer the browser will not capture: the drag still works while it stays over
565
- }
566
- layer.classList.add('drawing');
567
- live = { x: e.clientX, y: e.clientY, el: document.createElement('div') };
568
- live.el.className = 'area live';
569
- areasBox.appendChild(live.el);
570
- });
571
- const liveRect = (e) => ({
572
- x: Math.min(live.x, e.clientX),
573
- y: Math.min(live.y, e.clientY),
574
- w: Math.abs(e.clientX - live.x),
575
- h: Math.abs(e.clientY - live.y)
576
- });
577
- layer.addEventListener('pointermove', (e) => {
578
- if (!live) return;
579
- const r = liveRect(e);
580
- Object.assign(live.el.style, {
581
- left: r.x + 'px',
582
- top: r.y + 'px',
583
- width: r.w + 'px',
584
- height: r.h + 'px'
585
- });
586
- });
587
- const finishDrag = (e) => {
588
- if (!live) return;
589
- const r = liveRect(e);
590
- live.el.remove();
591
- live = null;
592
- layer.classList.remove('drawing');
593
- if (r.w < 8 || r.h < 8) return;
594
- const n = areas.length + 1;
595
- areas.push({ n, page: here(), x: r.x + scrollX, y: r.y + scrollY, w: r.w, h: r.h });
596
- store.set('areas', areas);
597
- drawAreas();
598
- send('area', { rect: r, n, ...viewport() });
599
- };
600
- layer.addEventListener('pointerup', finishDrag);
601
- layer.addEventListener('pointercancel', () => {
602
- if (live) live.el.remove();
603
- live = null;
604
- layer.classList.remove('drawing');
605
- });
606
-
607
- /* ---------------------------------------------------------- the timeline */
608
-
609
- // While recording, the session along the bottom of the page: what was done, said and marked.
610
- // It is only to look at: it lets the pointer through, and steps aside when the pointer comes
611
- // near so the page under it can be seen and used.
612
- let marks = [];
613
- const track = tl.querySelector('.track');
614
- const tlTime = tl.querySelector('.t');
615
- function drawTimeline() {
616
- if (tl.hidden || !since) return;
617
- const now = Date.now() - since;
618
- const span = Math.max(60_000, now * 1.08);
619
- const pct = (t) => Math.min(100, Math.max(0, (t / span) * 100)) + '%';
620
- track.textContent = '';
621
- for (const m of marks) {
622
- const i = document.createElement('i');
623
- i.className = m.kind;
624
- i.style.left = pct(m.t);
625
- track.appendChild(i);
626
- }
627
- const nowMark = document.createElement('i');
628
- nowMark.className = 'now';
629
- nowMark.style.left = pct(now);
630
- track.appendChild(nowMark);
631
- tlTime.textContent = clock.textContent;
632
- }
633
- addEventListener(
634
- 'pointermove',
635
- (e) => {
636
- if (tl.hidden) return;
637
- tl.classList.toggle('away', e.clientY > innerHeight - 90);
638
- },
639
- { passive: true, capture: true }
640
- );
641
-
642
- /* --------------------------------------------------------------- the chime */
643
-
644
- // The same soft tone as Wheelhouse's push to talk everywhere (lib/voice/spacehold.ts): rising
645
- // when the mic is live, lower when it closes. The page plays it, as the key was pressed here.
646
- let audio = null;
647
- function chime(on) {
648
- try {
649
- const AC = window.AudioContext || window.webkitAudioContext;
650
- if (!AC) return;
651
- audio = audio || new AC();
652
- const t = audio.currentTime;
653
- const osc = audio.createOscillator();
654
- const gain = audio.createGain();
655
- osc.type = 'sine';
656
- osc.frequency.setValueAtTime(on ? 660 : 520, t);
657
- osc.frequency.exponentialRampToValueAtTime(on ? 880 : 390, t + 0.12);
658
- gain.gain.setValueAtTime(0.0001, t);
659
- gain.gain.exponentialRampToValueAtTime(0.08, t + 0.02);
660
- gain.gain.exponentialRampToValueAtTime(0.0001, t + 0.22);
661
- osc.connect(gain).connect(audio.destination);
662
- osc.start(t);
663
- osc.stop(t + 0.24);
664
- } catch {
665
- // no sound here: the button still says Listening
666
- }
667
- }
668
-
669
- function ripple(x, y) {
670
- const r = document.createElement('div');
671
- r.className = 'ripple';
672
- r.style.left = x + 'px';
673
- r.style.top = y + 'px';
674
- shadow.appendChild(r);
675
- setTimeout(() => r.remove(), 650);
676
- }
677
-
678
- /* ------------------------------------------------------------ what happens */
679
-
680
- addEventListener(
681
- 'click',
682
- (e) => {
683
- if (picking && pickable(e.target)) {
684
- // The part the captain's comment is about: taken, not clicked.
685
- swallow(e);
686
- const node = e.target.closest(NEAR) || e.target;
687
- pick(false);
688
- outline(node);
689
- clearTimeout(hl._t);
690
- hl._t = setTimeout(() => (hl.className = 'hl'), 2200);
691
- send('picked', { el: described(node), at: { x: e.clientX, y: e.clientY }, ...viewport() });
692
- setOpen(true);
693
- return;
694
- }
695
- if (!recording || !pickable(e.target)) return;
696
- const d = described(e.target);
697
- ripple(e.clientX, e.clientY);
698
- send('click', { el: d, at: { x: e.clientX, y: e.clientY }, ...viewport() });
699
- },
700
- true
701
- );
702
-
703
- const typing = new WeakMap();
704
- addEventListener(
705
- 'input',
706
- (e) => {
707
- if (!recording) return;
708
- const el = e.target;
709
- if (!(
710
- el instanceof HTMLInputElement ||
711
- el instanceof HTMLTextAreaElement ||
712
- el.isContentEditable
713
- ))
714
- return;
715
- if (
716
- el instanceof HTMLInputElement &&
717
- ['checkbox', 'radio', 'range', 'color'].includes(el.type)
718
- )
719
- return;
720
- clearTimeout(typing.get(el));
721
- typing.set(
722
- el,
723
- setTimeout(() => {
724
- const d = described(el);
725
- const value = el.isContentEditable ? el.textContent : el.value;
726
- const hidden = mask || (d && d.secret);
727
- send('input', {
728
- el: d,
729
- length: (value || '').length,
730
- value: hidden ? null : cut(tidy(value), 80)
731
- });
732
- }, 900)
733
- );
734
- },
735
- true
736
- );
737
-
738
- addEventListener(
739
- 'change',
740
- (e) => {
741
- if (!recording) return;
742
- const el = e.target;
743
- let value = null;
744
- if (el instanceof HTMLSelectElement) value = tidy(el.selectedOptions[0]?.textContent);
745
- else if (el instanceof HTMLInputElement && (el.type === 'checkbox' || el.type === 'radio'))
746
- value = el.checked ? 'on' : 'off';
747
- else return;
748
- send('choose', { el: described(el), value });
749
- },
750
- true
751
- );
752
-
753
- let scrollTimer = 0;
754
- addEventListener(
755
- 'scroll',
756
- (e) => {
757
- if (!recording) return;
758
- clearTimeout(scrollTimer);
759
- scrollTimer = setTimeout(() => {
760
- const t = e.target === document ? document.scrollingElement : e.target;
761
- if (!t || !t.scrollHeight) return;
762
- const max = t.scrollHeight - t.clientHeight;
763
- if (max < 40) return;
764
- send('scroll', { pct: Math.round((t.scrollTop / max) * 100) });
765
- }, 700);
766
- },
767
- true
768
- );
769
-
770
- let lastHover = null;
771
- let hoverAt = 0;
772
- addEventListener(
773
- 'pointermove',
774
- (e) => {
775
- if (!recording) return;
776
- const now = performance.now();
777
- if (now - hoverAt < 180) return;
778
- hoverAt = now;
779
- const under = document.elementFromPoint(e.clientX, e.clientY);
780
- const d = pickable(under) ? described(under) : null;
781
- const key = d ? d.selector : null;
782
- if (key === lastHover) return;
783
- lastHover = key;
784
- send('hover', { el: d, ...viewport() });
785
- },
786
- true
787
- );
788
-
789
- // Page changes: full loads, and single-page apps moving with history or the hash.
790
- let lastUrl = location.href;
791
- const moved = (how) => {
792
- if (location.href === lastUrl) return;
793
- lastUrl = location.href;
794
- if (recording) send('nav', { how });
795
- };
796
- for (const name of ['pushState', 'replaceState']) {
797
- const orig = history[name];
798
- history[name] = function (...args) {
799
- const out = orig.apply(this, args);
800
- setTimeout(() => moved(name === 'pushState' ? 'link' : 'replace'));
801
- return out;
802
- };
803
- }
804
- addEventListener('popstate', () => moved('back'));
805
- addEventListener('hashchange', () => moved('link'));
806
-
807
- // Trouble on the page: errors, rejected promises, console errors and failed requests
808
- // (watchTrouble, from lib/trouble.js, which proxy.ts places in front of this script).
809
- watchTrouble(
810
- (kind, message, extra = {}) =>
811
- recording && send('error', { kind, message: cut(tidy(String(message)), 300), ...extra })
812
- );
813
-
814
- // The talk key, as everywhere in Wheelhouse (lib/voice/spacehold.ts): hold Space for 2 seconds
815
- // to talk, and let go to stop; a shorter press is an ordinary Space. In a text box the press
816
- // types its space as usual, and when the hold turns into talking that space comes out again.
817
- const HOLD_MS = 2000;
818
- let spaceTimer = 0;
819
- let spaceWaiting = false;
820
- let spaceTalking = false;
821
- const typingIn = (t) =>
822
- !!t && (t.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(t.tagName || ''));
823
- function untypeSpace(el) {
824
- if (el instanceof HTMLInputElement || el instanceof HTMLTextAreaElement) {
825
- const at = el.selectionStart ?? 0;
826
- if (at === 0 || at !== el.selectionEnd || !/[ \\u00a0]/.test(el.value[at - 1])) return;
827
- el.setRangeText('', at - 1, at, 'end');
828
- el.dispatchEvent(new Event('input', { bubbles: true }));
829
- }
830
- }
831
- function spaceWait() {
832
- clearTimeout(spaceTimer);
833
- spaceWaiting = false;
834
- }
835
- function spaceUp(e) {
836
- spaceWait();
837
- if (!spaceTalking) return;
838
- spaceTalking = false;
839
- // The press was for talking, not for the button or link that has focus.
840
- if (e) e.preventDefault();
841
- chime(false);
842
- send('key', { key: 'talk', down: false });
843
- }
844
- addEventListener(
845
- 'keydown',
846
- (e) => {
847
- const space = e.code === 'Space' && !e.metaKey && !e.ctrlKey && !e.altKey && !e.shiftKey;
848
- if (space && e.repeat) {
849
- // Held Space neither types a row of spaces nor scrolls while it waits.
850
- if (spaceWaiting || spaceTalking) e.preventDefault();
851
- } else if (space && !spaceTalking && !picking && recording) {
852
- const typedIn = typingIn(e.target) ? e.target : null;
853
- spaceWait();
854
- spaceWaiting = true;
855
- spaceTimer = setTimeout(() => {
856
- spaceWaiting = false;
857
- spaceTalking = true;
858
- if (typedIn) untypeSpace(typedIn);
859
- chime(true);
860
- send('key', { key: 'talk', down: true });
861
- }, HOLD_MS);
862
- } else if (!space && spaceWaiting) {
863
- // Another key while Space is still down is fast typing, not a hold.
864
- spaceWait();
865
- }
866
- if (e.key === 'Escape' && picking) {
867
- pick(false);
868
- send('picked', { el: null });
869
- setOpen(true);
870
- } else if (e.key === 'Escape' && marking) {
871
- setMarking(false);
872
- send('marking', { on: false });
873
- } else if (e.key === 'Escape') send('key', { key: 'Escape', down: true });
874
- else if (
875
- (e.key === 'm' || e.key === 'M') &&
876
- !e.repeat &&
877
- !e.metaKey &&
878
- !e.ctrlKey &&
879
- !e.altKey &&
880
- recording &&
881
- !typingIn(e.target)
882
- )
883
- // M: mark an area (and M again, or Esc, to stop).
884
- send('key', { key: 'mark' });
885
- // While marking, the page takes no keys either.
886
- if (marking) {
887
- e.stopPropagation();
888
- e.preventDefault();
889
- }
890
- },
891
- true
892
- );
893
- addEventListener(
894
- 'keyup',
895
- (e) => {
896
- if (e.code === 'Space') spaceUp(e);
897
- if (marking) {
898
- e.stopPropagation();
899
- e.preventDefault();
900
- }
901
- },
902
- true
903
- );
904
- addEventListener('blur', () => spaceUp(null));
905
-
906
- /* ------------------------------------------------------- Wheelhouse asking */
907
-
908
- let shooter = null;
909
- function loadShooter() {
910
- if (shooter) return shooter;
911
- shooter = new Promise((ok, fail) => {
912
- const s = document.createElement('script');
913
- s.src = '/__wheelhouse/live-review/screenshot.js';
914
- s.onload = () => ok(window.modernScreenshot);
915
- s.onerror = fail;
916
- (document.head || document.documentElement).appendChild(s);
917
- });
918
- return shooter;
919
- }
920
-
921
- async function shoot(id, selector, text) {
922
- try {
923
- const ms = await loadShooter();
924
- hl.classList.remove('on');
925
- const root = document.documentElement;
926
- const sx = scrollX,
927
- sy = scrollY,
928
- vw = innerWidth,
929
- vh = innerHeight;
930
- const scale = Math.min(1, 1100 / vw);
931
- const canvas = await ms.domToCanvas(root, {
932
- width: vw,
933
- height: vh,
934
- scale,
935
- backgroundColor: getComputedStyle(document.body).backgroundColor || '#ffffff',
936
- style: { transform: \`translate(\${-sx}px, \${-sy}px)\` },
937
- filter: (n) => !(n.nodeType === 1 && n.hasAttribute && n.hasAttribute('data-wh-recorder')),
938
- timeout: 4000
939
- });
940
- let el = null;
941
- if (selector) {
942
- try {
943
- const node = document.querySelector(selector);
944
- const d = node && described(node);
945
- if (d && (!text || d.text === text)) el = d;
946
- } catch {
947
- // a selector the page cannot read: no outline
948
- }
949
- }
950
- send('shot', { id, image: canvas.toDataURL('image/jpeg', 0.82), vw, vh, el });
951
- } catch (err) {
952
- send('shot', { id, image: null, error: String(err && err.message) });
953
- }
954
- }
955
-
956
- addEventListener('message', (e) => {
957
- if (!panel || e.source !== panel.contentWindow || e.origin !== PARENT) return;
958
- const m = e.data;
959
- if (!m || m.__wh !== 1) return;
960
- if (m.type === 'ready') {
961
- // The panel has loaded (again, after the page changed): what waited goes to it now.
962
- ready = true;
963
- const waiting = queued;
964
- queued = [];
965
- for (const q of waiting) panel.contentWindow.postMessage(q, PARENT);
966
- send('hello', { ...viewport() });
967
- } else if (m.type === 'record') {
968
- recording = !!m.on;
969
- mask = m.mask !== false;
970
- if (!recording) {
971
- hl.className = 'hl';
972
- if (marking) setMarking(false);
973
- }
974
- } else if (m.type === 'state') {
975
- showState(m);
976
- } else if (m.type === 'panel') {
977
- if (typeof m.large === 'boolean') large = m.large;
978
- if (typeof m.open === 'boolean') setOpen(m.open);
979
- else place();
980
- } else if (m.type === 'mark') {
981
- setMarking(!!m.on);
982
- } else if (m.type === 'timeline') {
983
- marks = Array.isArray(m.items) ? m.items : [];
984
- drawTimeline();
985
- } else if (m.type === 'areas' && m.clear) {
986
- areas = [];
987
- store.set('areas', areas);
988
- drawAreas();
989
- } else if (m.type === 'pick') {
990
- pick(!!m.on);
991
- } else if (m.type === 'gettext') {
992
- // What the page says right now, for the scribe to answer questions about it (never typed values).
993
- const text = (document.body ? document.body.innerText : '')
994
- .replace(/\\n{3,}/g, '\\n\\n')
995
- .slice(0, 6000);
996
- send('text', { text });
997
- } else if (m.type === 'shoot') {
998
- shoot(m.id, m.selector, m.text);
999
- } else if (m.type === 'highlight') {
1000
- let node = null;
1001
- try {
1002
- node = m.selector && document.querySelector(m.selector);
1003
- } catch {
1004
- // a selector the page cannot read: nothing to highlight
1005
- }
1006
- if (!node) return (hl.className = 'hl');
1007
- node.scrollIntoView({ block: 'nearest', behavior: 'smooth' });
1008
- outline(node);
1009
- clearTimeout(hl._t);
1010
- hl._t = setTimeout(() => (hl.className = 'hl'), 2200);
1011
- }
1012
- });
1013
- })();
1014
- `;
1015
- 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";
1016
- 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';
1017
- const RECORDER_PATH = "/__wheelhouse/live-review/recorder.js";
1018
- const SHOOTER_PATH = "/__wheelhouse/live-review/screenshot.js";
1019
- const IDLE_MS = 30 * 6e4;
1020
- const HTML_MAX_BYTES = 8 * 1024 * 1024;
1021
- function recorderFor(parentOrigin, review) {
1022
- const json = JSON.stringify(review).replaceAll("<", "\\u003c").replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029");
1023
- const trouble = troubleSource.replace(/^export function watchTrouble/m, "function watchTrouble");
1024
- return `(() => {
1025
- ${trouble}
1026
- ${recorderSource}
1027
- })();
1028
- `.replaceAll("__WHEELHOUSE_ORIGIN__", parentOrigin).replace("'__WHEELHOUSE_REVIEW__'", () => json);
1029
- }
1030
- const proxies = /* @__PURE__ */ new Map();
1031
- function injectRecorder(html) {
1032
- const tag = `<script src="${RECORDER_PATH}" data-wheelhouse-live-review><\/script>`;
1033
- const head = /<head(?:\s[^>]*)?>/i.exec(html);
1034
- if (head)
1035
- return html.slice(0, head.index + head[0].length) + tag + html.slice(head.index + head[0].length);
1036
- const doctype = /<!doctype[^>]*>/i.exec(html);
1037
- if (doctype)
1038
- return html.slice(0, doctype.index + doctype[0].length) + tag + html.slice(doctype.index + doctype[0].length);
1039
- return tag + html;
1040
- }
1041
- const gunzip = promisify(zlib.gunzip);
1042
- const inflate = promisify(zlib.inflate);
1043
- const brotli = promisify(zlib.brotliDecompress);
1044
- async function decoded(body, encoding) {
1045
- const e = (encoding ?? "").trim().toLowerCase();
1046
- if (e === "gzip" || e === "x-gzip") return gunzip(body);
1047
- if (e === "deflate") return inflate(body);
1048
- if (e === "br") return brotli(body);
1049
- return body;
1050
- }
1051
- function passedHeaders(headers, upstream, self) {
1052
- const out = { ...headers };
1053
- delete out["content-security-policy"];
1054
- delete out["content-security-policy-report-only"];
1055
- delete out["x-frame-options"];
1056
- if (typeof out.location === "string" && out.location.startsWith(upstream.origin)) {
1057
- out.location = self + out.location.slice(upstream.origin.length);
1058
- }
1059
- return out;
1060
- }
1061
- function serveScript(res, source) {
1062
- res.writeHead(200, {
1063
- "content-type": "text/javascript; charset=utf-8",
1064
- "cache-control": "no-store"
1065
- });
1066
- res.end(source);
1067
- }
1068
- function start(upstream, parentOrigin, review, key) {
1069
- const proxy = {
1070
- server: http.createServer(),
1071
- origin: "",
1072
- last: Date.now(),
1073
- back: review?.back ?? "/"
1074
- };
1075
- const { server } = proxy;
1076
- server.on("request", (req, res) => {
1077
- proxy.last = Date.now();
1078
- const path2 = (req.url ?? "/").split("?")[0];
1079
- if (path2 === RECORDER_PATH)
1080
- return serveScript(
1081
- res,
1082
- recorderFor(parentOrigin, review ? { ...review, back: proxy.back } : null)
1083
- );
1084
- if (path2 === SHOOTER_PATH) return serveScript(res, shooterSource);
1085
- const headers = { ...req.headers, host: upstream.host, "accept-encoding": "gzip, deflate, br" };
1086
- if (typeof headers.origin === "string") headers.origin = upstream.origin;
1087
- delete headers.referer;
1088
- const out = http.request(
1089
- {
1090
- hostname: upstream.hostname,
1091
- port: upstream.port,
1092
- path: req.url,
1093
- method: req.method,
1094
- headers
1095
- },
1096
- (r) => {
1097
- const h = passedHeaders(r.headers, upstream, proxy.origin);
1098
- if (!String(r.headers["content-type"] ?? "").includes("text/html")) {
1099
- res.writeHead(r.statusCode ?? 200, h);
1100
- r.pipe(res);
1101
- return;
1102
- }
1103
- const chunks = [];
1104
- let size = 0;
1105
- r.on("data", (c) => {
1106
- size += c.length;
1107
- if (size <= HTML_MAX_BYTES) chunks.push(c);
1108
- });
1109
- r.on("end", async () => {
1110
- try {
1111
- if (size > HTML_MAX_BYTES) throw new Error("too large");
1112
- const html = await decoded(Buffer.concat(chunks), r.headers["content-encoding"]);
1113
- const body = Buffer.from(injectRecorder(html.toString("utf8")));
1114
- delete h["content-encoding"];
1115
- delete h["transfer-encoding"];
1116
- h["content-length"] = body.length;
1117
- res.writeHead(r.statusCode ?? 200, h);
1118
- res.end(body);
1119
- } catch {
1120
- res.writeHead(502, { "content-type": "text/plain; charset=utf-8" });
1121
- res.end("Wheelhouse could not read this page to record it.");
1122
- }
1123
- });
1124
- }
1125
- );
1126
- out.on("error", () => {
1127
- if (res.headersSent) return res.destroy();
1128
- res.writeHead(502, { "content-type": "text/html; charset=utf-8" });
1129
- res.end(
1130
- injectRecorder(
1131
- '<!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>'
1132
- )
1133
- );
1134
- });
1135
- req.pipe(out);
1136
- });
1137
- server.on("upgrade", (req, socket, head) => {
1138
- proxy.last = Date.now();
1139
- const up = net.connect(Number(upstream.port) || 80, upstream.hostname, () => {
1140
- const lines = [`${req.method} ${req.url} HTTP/${req.httpVersion}`];
1141
- for (let i = 0; i < req.rawHeaders.length; i += 2) {
1142
- const name = req.rawHeaders[i];
1143
- lines.push(
1144
- `${name}: ${name.toLowerCase() === "host" ? upstream.host : req.rawHeaders[i + 1]}`
1145
- );
1146
- }
1147
- up.write(lines.join("\r\n") + "\r\n\r\n");
1148
- if (head.length) up.write(head);
1149
- up.pipe(socket);
1150
- socket.pipe(up);
1151
- });
1152
- up.on("error", () => socket.destroy());
1153
- socket.on("error", () => up.destroy());
1154
- });
1155
- return new Promise((resolve, reject) => {
1156
- server.once("error", reject);
1157
- server.listen(0, "127.0.0.1", () => {
1158
- const address = server.address();
1159
- proxy.origin = `http://127.0.0.1:${address.port}`;
1160
- const idle = setInterval(() => {
1161
- if (Date.now() - proxy.last < IDLE_MS) return;
1162
- clearInterval(idle);
1163
- server.close();
1164
- server.closeAllConnections();
1165
- proxies.delete(key);
1166
- }, 6e4);
1167
- idle.unref();
1168
- resolve(proxy);
1169
- });
1170
- });
1171
- }
1172
- async function recordedPreview(previewUrl, parentOrigin, review = null) {
1173
- const target = loopbackPreview(previewUrl);
1174
- if (!target.ok) return { ok: false, error: target.reason };
1175
- const upstream = new URL(target.url);
1176
- const parent = URL.parse(parentOrigin);
1177
- if (!parent || !["127.0.0.1", "localhost", "[::1]"].includes(parent.hostname)) {
1178
- return {
1179
- ok: false,
1180
- error: "Live review works only when Wheelhouse is opened on this computer."
1181
- };
1182
- }
1183
- const key = `${upstream.origin} ${parent.origin} ${review?.task ?? ""}`;
1184
- let p = proxies.get(key);
1185
- if (!p) {
1186
- p = start(upstream, parent.origin, review, key);
1187
- proxies.set(key, p);
1188
- p.catch(() => proxies.delete(key));
1189
- }
1190
- try {
1191
- const proxy = await p;
1192
- proxy.last = Date.now();
1193
- if (review) proxy.back = review.back;
1194
- return { ok: true, url: proxy.origin + upstream.pathname + upstream.search + upstream.hash };
1195
- } catch {
1196
- return { ok: false, error: "Wheelhouse could not open a port to record the preview." };
1197
- }
1198
- }
1199
- const ANSWER_TIMEOUT_MS = 45e3;
1200
- const NOTES_TIMEOUT_MS = 9e4;
1201
- const SHOT_MAX_BYTES = 3 * 1024 * 1024;
1202
- const defaults = () => ({
1203
- env: process.env,
1204
- run: runBounded,
1205
- fetch,
1206
- find: (name) => which(name, process.env.PATH)
1207
- });
1208
- async function reviewContext(taskId) {
1209
- const runtime = await getRuntime();
1210
- if (!runtime.configured) return { ok: false, status: 503, error: runtime.error };
1211
- if (parseMateTaskId(taskId)) {
1212
- const m = await runtime.mateTasks.helperContext(taskId);
1213
- if (!m.ok) return m;
1214
- return {
1215
- ok: true,
1216
- ctx: {
1217
- task: { id: m.task.id, title: m.task.title, project: m.task.project },
1218
- url: m.preview,
1219
- brief: null
1220
- }
1221
- };
1222
- }
1223
- const fleet = runtime.collector.getFleet();
1224
- const task = fleet.tasks.find((t) => t.id === taskId);
1225
- if (!task) return { ok: false, status: 404, error: `There is no task called ${taskId}.` };
1226
- if (!task.preview)
1227
- return { ok: false, status: 409, error: "This task has no preview to review." };
1228
- return {
1229
- ok: true,
1230
- ctx: {
1231
- task: {
1232
- id: task.id,
1233
- title: task.shortTitle,
1234
- project: fleet.projects.find((p) => p.id === task.projectId)?.name ?? task.projectId
1235
- },
1236
- url: task.preview.url,
1237
- brief: runtime.collector.backlog(task.id)?.bodyExcerpt ?? null
1238
- }
1239
- };
1240
- }
1241
- const fast = (deps) => deps.env.WHEELHOUSE_LIVE_REVIEW_MODEL || "haiku";
1242
- const unreadable = (what) => ({
1243
- ok: false,
1244
- status: 502,
1245
- error: `The scribe’s ${what} could not be read. Try again.`
1246
- });
1247
- async function takeNotes(ctx, req, deps = defaults()) {
1248
- const r = await runHelper(
1249
- notesPrompt(ctx, req),
1250
- [],
1251
- {
1252
- system: NOTES_SYSTEM,
1253
- schema: NOTES_SCHEMA,
1254
- read: false,
1255
- model: fast(deps),
1256
- timeoutMs: NOTES_TIMEOUT_MS
1257
- },
1258
- deps
1259
- );
1260
- if (!r.ok) return r;
1261
- const out = readNotes(r.stdout);
1262
- return out ? { ok: true, ...out } : unreadable("notes");
1263
- }
1264
- async function answer(ctx, req, deps = defaults()) {
1265
- const r = await runHelper(
1266
- replyPrompt(ctx, req),
1267
- [],
1268
- {
1269
- system: REPLY_SYSTEM,
1270
- schema: REPLY_SCHEMA,
1271
- read: false,
1272
- model: fast(deps),
1273
- timeoutMs: ANSWER_TIMEOUT_MS
1274
- },
1275
- deps
1276
- );
1277
- if (!r.ok) return r;
1278
- const reply = readAnswer(r.stdout);
1279
- return reply === null ? unreadable("answer") : { ok: true, reply };
1280
- }
1281
- async function tidyPack(ctx, req, deps = defaults()) {
1282
- const r = await runHelper(
1283
- packPrompt(ctx, req),
1284
- [],
1285
- { system: PACK_SYSTEM, schema: PACK_SCHEMA, read: false },
1286
- deps
1287
- );
1288
- if (!r.ok) return r;
1289
- const pack = readPack(r.stdout);
1290
- return pack ? { ok: true, pack } : unreadable("pack");
1291
- }
1292
- const reviewsDir = (env) => path.join(defaultStateDir(env), "live-review");
1293
- async function saveSession(taskId, session, shots, env = process.env, now = /* @__PURE__ */ new Date()) {
1294
- const stamp = now.toISOString().replace(/[:.]/g, "-").slice(0, 19);
1295
- const dir = path.join(
1296
- reviewsDir(env),
1297
- `${stamp}-${taskId.replace(/[^a-z0-9._-]/gi, "-").slice(0, 80)}`
1298
- );
1299
- await mkdir(path.join(dir, "shots"), { recursive: true });
1300
- const saved = {};
1301
- for (const [id, data] of Object.entries(shots)) {
1302
- const m = /^data:image\/(jpeg|png);base64,([A-Za-z0-9+/=]+)$/.exec(data);
1303
- if (!m) continue;
1304
- const bytes = Buffer.from(m[2], "base64");
1305
- if (bytes.length > SHOT_MAX_BYTES) continue;
1306
- const file = path.join(dir, "shots", `${id}.${m[1] === "png" ? "png" : "jpg"}`);
1307
- await writeFile(file, bytes, { mode: 384 });
1308
- saved[id] = file;
1309
- }
1310
- const record = path.join(dir, "session.json");
1311
- await writeFile(record, `${JSON.stringify(session ?? {}, null, 2)}
1312
- `, { mode: 384 });
1313
- return { dir, session: record, shots: saved };
1314
- }
1315
-
1316
- export { answer as a, takeNotes as b, recordedPreview as c, reviewContext as r, saveSession as s, tidyPack as t };
1317
- //# sourceMappingURL=scribe.js-sGGKDf0Q.js.map