@intent-hq/web 2.346.2 → 2.346.4

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 (269) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{BBhsbqLJ.js → -CHLoCv2.js} +1 -1
  3. package/web/app/immutable/chunks/{DKnPivVx.js → -FMYDRBF.js} +1 -1
  4. package/web/app/immutable/chunks/{DFBU68gv.js → 2rbh16KP.js} +1 -1
  5. package/web/app/immutable/chunks/{k7pV_mI9.js → 4CzdfJpH.js} +1 -1
  6. package/web/app/immutable/chunks/{DMAPjgGW.js → 4UjNJakA.js} +1 -1
  7. package/web/app/immutable/chunks/{DUyBdSjv.js → 5GYSXevc.js} +1 -1
  8. package/web/app/immutable/chunks/{3OP-tats.js → 6EBJYAxp.js} +1 -1
  9. package/web/app/immutable/chunks/{DYbBpj-3.js → 6MPt5WH3.js} +1 -1
  10. package/web/app/immutable/chunks/{Bw9Opv8X.js → 7uqL-6tT.js} +1 -1
  11. package/web/app/immutable/chunks/{DoxU2MH-.js → 8hWYh2SV.js} +1 -1
  12. package/web/app/immutable/chunks/{JbkOWTOg.js → 8ksyQzxS.js} +1 -1
  13. package/web/app/immutable/chunks/{BOvPBTkx.js → 9kj5ZfRr.js} +1 -1
  14. package/web/app/immutable/chunks/{aEMYrozm.js → B-KN8Jlj.js} +1 -1
  15. package/web/app/immutable/chunks/{sCaWuYEb.js → B-mfoYJY.js} +1 -1
  16. package/web/app/immutable/chunks/{BGqL3gJO.js → B0A8uFhj.js} +1 -1
  17. package/web/app/immutable/chunks/{BaDPh7vq.js → B1Bex3N_.js} +1 -1
  18. package/web/app/immutable/chunks/{C5GFtLhI.js → B2fjzJpx.js} +2 -2
  19. package/web/app/immutable/chunks/{W4Nuovgc.js → B2lO9JOz.js} +1 -1
  20. package/web/app/immutable/chunks/{DNQiloiF.js → B35kShEY.js} +1 -1
  21. package/web/app/immutable/chunks/{B1b_Q-DK.js → B4ra8hfV.js} +1 -1
  22. package/web/app/immutable/chunks/{B0tYoxIu.js → B50qxjRT.js} +24 -24
  23. package/web/app/immutable/chunks/{CIhlsnLM.js → B7PtZbeR.js} +1 -1
  24. package/web/app/immutable/chunks/{CxlqEDL_.js → B7myJZdQ.js} +3 -3
  25. package/web/app/immutable/chunks/{BXPYDVnQ.js → B88KZW78.js} +1 -1
  26. package/web/app/immutable/chunks/{B_qlaCea.js → B8kDwCP_.js} +1 -1
  27. package/web/app/immutable/chunks/{t_9JF5Ld.js → B9Z-QU9w.js} +2 -2
  28. package/web/app/immutable/chunks/{OJa6n6kP.js → B9b_K-RG.js} +1 -1
  29. package/web/app/immutable/chunks/{Cv_fAsRR.js → BAYfmcgi.js} +1 -1
  30. package/web/app/immutable/chunks/{BPsfqTTH.js → BBDyE7y7.js} +1 -1
  31. package/web/app/immutable/chunks/{Ewbvp_lS.js → BBXjSeZz.js} +1 -1
  32. package/web/app/immutable/chunks/{Br-2EMQh.js → BI0ZZ8UO.js} +1 -1
  33. package/web/app/immutable/chunks/{DHNaVZzM.js → BIqnmVRf.js} +4 -4
  34. package/web/app/immutable/chunks/{-ATexmb_.js → BJWhwwHx.js} +1 -1
  35. package/web/app/immutable/chunks/{DhWGSJOr.js → BJwkYtAi.js} +1 -1
  36. package/web/app/immutable/chunks/{CSelYXXo.js → BL2lJmRT.js} +1 -1
  37. package/web/app/immutable/chunks/{BW1uSKLL.js → BLgIfeYS.js} +1 -1
  38. package/web/app/immutable/chunks/{V_ABjOKq.js → BMOaW1oW.js} +1 -1
  39. package/web/app/immutable/chunks/{CPo4UsMt.js → BN2mg-Hu.js} +1 -1
  40. package/web/app/immutable/chunks/{Bqw_xSaW.js → BNJe789p.js} +1 -1
  41. package/web/app/immutable/chunks/{Fas-AZ8u.js → BNwYXBCy.js} +1 -1
  42. package/web/app/immutable/chunks/{B6_GAXLX.js → BOr-kq9m.js} +1 -1
  43. package/web/app/immutable/chunks/{NhKlePe6.js → BPY8OTRz.js} +1 -1
  44. package/web/app/immutable/chunks/{Cjyjhytt.js → BPg5N0kY.js} +1 -1
  45. package/web/app/immutable/chunks/{yw7dEI88.js → BR8cFY4D.js} +1 -1
  46. package/web/app/immutable/chunks/{CNHQ2hz2.js → BS47DjuS.js} +1 -1
  47. package/web/app/immutable/chunks/{CTMYdigD.js → BS8Oxiwq.js} +1 -1
  48. package/web/app/immutable/chunks/{CK4TIiJZ.js → BSzY-NMz.js} +1 -1
  49. package/web/app/immutable/chunks/{L1oXncPn.js → BT9wQ0Ce.js} +6 -6
  50. package/web/app/immutable/chunks/{2_W5MGlF.js → BTrGu4V2.js} +1 -1
  51. package/web/app/immutable/chunks/{CUEYQ1xR.js → BYu-G7r_.js} +1 -1
  52. package/web/app/immutable/chunks/{DctMspbi.js → BZQDFgmp.js} +1 -1
  53. package/web/app/immutable/chunks/{CJbkgYat.js → Ba-QPC0I.js} +1 -1
  54. package/web/app/immutable/chunks/{_8ZvVPLV.js → BepEnAFk.js} +1 -1
  55. package/web/app/immutable/chunks/{FFimwbkT.js → BfUFKHC3.js} +1 -1
  56. package/web/app/immutable/chunks/BgsoTwBt.js +1 -0
  57. package/web/app/immutable/chunks/{D2D1pbBM.js → BhXOnc6x.js} +1 -1
  58. package/web/app/immutable/chunks/{B_ALvSh2.js → BhpN5y2w.js} +1 -1
  59. package/web/app/immutable/chunks/{3hAJcdO4.js → Bii5NwwM.js} +1 -1
  60. package/web/app/immutable/chunks/{D-3gv8KK.js → Bj5SxeMr.js} +1 -1
  61. package/web/app/immutable/chunks/{CT-2GqFI.js → BksE-BZ5.js} +1 -1
  62. package/web/app/immutable/chunks/{IrTkIWCG.js → BkwxWGIh.js} +1 -1
  63. package/web/app/immutable/chunks/{CP2XzLLk.js → Br0L4BrM.js} +1 -1
  64. package/web/app/immutable/chunks/{CjxgW2LG.js → BtFbwSdu.js} +1 -1
  65. package/web/app/immutable/chunks/{qvZYvB9N.js → Bv2KudWv.js} +1 -1
  66. package/web/app/immutable/chunks/{7HnS2P2A.js → By29T7f9.js} +1 -1
  67. package/web/app/immutable/chunks/{D1JIts8z.js → ByDHRaj1.js} +1 -1
  68. package/web/app/immutable/chunks/{dT5WNNGq.js → BzUmccFe.js} +1 -1
  69. package/web/app/immutable/chunks/{DRXZoO9N.js → C-G83LXE.js} +1 -1
  70. package/web/app/immutable/chunks/{BO3bzcut.js → C-P--5-o.js} +1 -1
  71. package/web/app/immutable/chunks/{BRBkuZqk.js → C0BifgcV.js} +3 -3
  72. package/web/app/immutable/chunks/{CAQf2iW_.js → C0CqY7Yc.js} +1 -1
  73. package/web/app/immutable/chunks/{D03v07xA.js → C0WVBwZy.js} +1 -1
  74. package/web/app/immutable/chunks/{C8d3Ntbq.js → C18Lu2A8.js} +1 -1
  75. package/web/app/immutable/chunks/{CKWRbVNZ.js → C1waf3iu.js} +1 -1
  76. package/web/app/immutable/chunks/{C3RXsOpj.js → C2EstpWq.js} +1 -1
  77. package/web/app/immutable/chunks/{B_uWHofm.js → C2XebNhA.js} +1 -1
  78. package/web/app/immutable/chunks/{UKn44y3B.js → C55nGHPT.js} +1 -1
  79. package/web/app/immutable/chunks/{BIWW5pDn.js → C6vwP-ay.js} +1 -1
  80. package/web/app/immutable/chunks/{EF8Lgcvo.js → C8MPntD9.js} +1 -1
  81. package/web/app/immutable/chunks/{C3Pl_e9x.js → C9pKpUIK.js} +1 -1
  82. package/web/app/immutable/chunks/{CQ5RMFdD.js → C9yvm97z.js} +3 -3
  83. package/web/app/immutable/chunks/{C1s02RDB.js → CApIfgsx.js} +1 -1
  84. package/web/app/immutable/chunks/{DfZvKQFw.js → CBc9tLFK.js} +4 -4
  85. package/web/app/immutable/chunks/{5qgyaXHk.js → CBq6DlIt.js} +4 -4
  86. package/web/app/immutable/chunks/{BMCRnGzk.js → CCk7G8nC.js} +1 -1
  87. package/web/app/immutable/chunks/{B-hjApiN.js → CEbGQG52.js} +1 -1
  88. package/web/app/immutable/chunks/{BUwilubW.js → CEr-aDm8.js} +1 -1
  89. package/web/app/immutable/chunks/{CpsuxuwM.js → CFj0DasV.js} +1 -1
  90. package/web/app/immutable/chunks/{BIDATtgj.js → CG_uU7t2.js} +1 -1
  91. package/web/app/immutable/chunks/{BvZcpO0X.js → CHr6G3cY.js} +1 -1
  92. package/web/app/immutable/chunks/{0h3tB2X7.js → CIpI7Qrh.js} +1 -1
  93. package/web/app/immutable/chunks/{BulYm0mb.js → CK_Ox9jk.js} +1 -1
  94. package/web/app/immutable/chunks/{CeydpcQL.js → CM4TK2R4.js} +1 -1
  95. package/web/app/immutable/chunks/{RKjwEkJS.js → CO4a0yRH.js} +1 -1
  96. package/web/app/immutable/chunks/{MoI4LiSA.js → CO5MrM9v.js} +1 -1
  97. package/web/app/immutable/chunks/{B8HwWHod.js → CPCmJFz3.js} +1 -1
  98. package/web/app/immutable/chunks/{C1N6iAP2.js → CPKMQWOs.js} +1 -1
  99. package/web/app/immutable/chunks/{DghbEZ16.js → CQQbNjsN.js} +1 -1
  100. package/web/app/immutable/chunks/{QcdWHB0v.js → CUxXMHrG.js} +1 -1
  101. package/web/app/immutable/chunks/{BbMjUd1J.js → CVM42XXi.js} +3 -3
  102. package/web/app/immutable/chunks/{DRpIoF9f.js → CVXxjkW7.js} +1 -1
  103. package/web/app/immutable/chunks/{BZklR_B6.js → CW-YFngS.js} +1 -1
  104. package/web/app/immutable/chunks/{BMlW8PWp.js → CXOFOhS1.js} +1 -1
  105. package/web/app/immutable/chunks/{DIKxUBjo.js → CY04lbSN.js} +1 -1
  106. package/web/app/immutable/chunks/{ByJd4XYj.js → CZytbhGb.js} +1 -1
  107. package/web/app/immutable/chunks/{CXZBvyNr.js → C_Lje1cd.js} +1 -1
  108. package/web/app/immutable/chunks/{CNwVL4wn.js → CaUG7pKp.js} +1 -1
  109. package/web/app/immutable/chunks/{B6hd6-h0.js → CapiHpD_.js} +1 -1
  110. package/web/app/immutable/chunks/{Dy_FWGdw.js → Cc25YYnU.js} +1 -1
  111. package/web/app/immutable/chunks/{CjpBT44D.js → CfvmLdft.js} +2 -2
  112. package/web/app/immutable/chunks/{VVSQHNmC.js → Ch-DGnj6.js} +1 -1
  113. package/web/app/immutable/chunks/{Cu4yzzG1.js → Ch69Gx78.js} +1 -1
  114. package/web/app/immutable/chunks/{BdnmB6mE.js → CjUvLS5U.js} +1 -1
  115. package/web/app/immutable/chunks/{KpAtxVXt.js → CkOW2_R1.js} +1 -1
  116. package/web/app/immutable/chunks/{DbjrS_71.js → CkbCPRkQ.js} +1 -1
  117. package/web/app/immutable/chunks/{DaOs4JNK.js → CkkCr6dG.js} +1 -1
  118. package/web/app/immutable/chunks/{B6jO8Woe.js → CkuIoWee.js} +1 -1
  119. package/web/app/immutable/chunks/{FXM57FKt.js → ClG9H6Ln.js} +1 -1
  120. package/web/app/immutable/chunks/{BB4FgpiZ.js → ClH0Gega.js} +1 -1
  121. package/web/app/immutable/chunks/{wZNQMR8J.js → CoMnnGKT.js} +1 -1
  122. package/web/app/immutable/chunks/{DlQwd6Dz.js → CpCtdYM3.js} +1 -1
  123. package/web/app/immutable/chunks/{CqvGUHnF.js → CqzfYhYr.js} +1 -1
  124. package/web/app/immutable/chunks/{D9WJ9yaW.js → CrWhihJ_.js} +1 -1
  125. package/web/app/immutable/chunks/{D7oCAGaV.js → Cs3L-D2A.js} +1 -1
  126. package/web/app/immutable/chunks/{BGsa1Rn-.js → CsKccV54.js} +1 -1
  127. package/web/app/immutable/chunks/{GAq2mIWu.js → CtZBPGmK.js} +1 -1
  128. package/web/app/immutable/chunks/{m4m_OnCq.js → Cu1u-4wq.js} +1 -1
  129. package/web/app/immutable/chunks/{DMNf2kIx.js → CugnkL_9.js} +4 -4
  130. package/web/app/immutable/chunks/{BtiDRzyn.js → CwDNa5HL.js} +1 -1
  131. package/web/app/immutable/chunks/{R_Ru9hwD.js → CwUHwo2Y.js} +1 -1
  132. package/web/app/immutable/chunks/{BzrasdW9.js → Cwvr2VA7.js} +1 -1
  133. package/web/app/immutable/chunks/{BHmRsJkZ.js → CxMGjr-k.js} +1 -1
  134. package/web/app/immutable/chunks/{CIRZKLVu.js → Cy8JcjH6.js} +1 -1
  135. package/web/app/immutable/chunks/{E9kqzP8d.js → CzPYlOCC.js} +1 -1
  136. package/web/app/immutable/chunks/{Bhz5wZ4Q.js → D-ZcbI-Y.js} +1 -1
  137. package/web/app/immutable/chunks/{DRG7DUhO.js → D-l6NLYy.js} +1 -1
  138. package/web/app/immutable/chunks/{BywHYLA0.js → D-uBGxZi.js} +1 -1
  139. package/web/app/immutable/chunks/{DAP42sSp.js → D0s1SVt5.js} +1 -1
  140. package/web/app/immutable/chunks/{LZaIAE1Y.js → D0wPN4-P.js} +1 -1
  141. package/web/app/immutable/chunks/{CiLrRXKC.js → D1TT2-Xo.js} +1 -1
  142. package/web/app/immutable/chunks/D32HMlYT.js +1 -0
  143. package/web/app/immutable/chunks/{hCF4Zu9x.js → D6rAyjoF.js} +1 -1
  144. package/web/app/immutable/chunks/{5mNJ4C7j.js → D8tPfa9K.js} +2 -2
  145. package/web/app/immutable/chunks/{BALLinLf.js → DDjhSDXW.js} +1 -1
  146. package/web/app/immutable/chunks/{BMxLlxet.js → DDuFS2zo.js} +1 -1
  147. package/web/app/immutable/chunks/{CFFiNWgw.js → DEApyfNP.js} +1 -1
  148. package/web/app/immutable/chunks/{DCmSz4nS.js → DJhhNZ7M.js} +1 -1
  149. package/web/app/immutable/chunks/{Cdb_pBT1.js → DLIkH-mx.js} +1 -1
  150. package/web/app/immutable/chunks/{BYpXsiCq.js → DNbEh_Pn.js} +1 -1
  151. package/web/app/immutable/chunks/{CsvSUZwX.js → DOH10_LL.js} +2 -2
  152. package/web/app/immutable/chunks/{CvGWJUqA.js → DOzvQ0Rd.js} +1 -1
  153. package/web/app/immutable/chunks/{DNMpoEvN.js → DPcH5rXQ.js} +1 -1
  154. package/web/app/immutable/chunks/{BticJnNL.js → DPpH6C1S.js} +1 -1
  155. package/web/app/immutable/chunks/{Cueu30DH.js → DQ01F80Q.js} +1 -1
  156. package/web/app/immutable/chunks/{C1Fdolkg.js → DU-RLEFB.js} +1 -1
  157. package/web/app/immutable/chunks/{CS4C4Dqz.js → DU9Ky5os.js} +1 -1
  158. package/web/app/immutable/chunks/{CeboDH9D.js → DVDOk-ql.js} +1 -1
  159. package/web/app/immutable/chunks/{CzGw49VI.js → DVJxiIYn.js} +1 -1
  160. package/web/app/immutable/chunks/{eqxSNkBq.js → DW0lWqDY.js} +1 -1
  161. package/web/app/immutable/chunks/{DxkncNQp.js → DYxNs3ex.js} +1 -1
  162. package/web/app/immutable/chunks/{k6cZvV27.js → DZHzDies.js} +1 -1
  163. package/web/app/immutable/chunks/{CMG5CVfP.js → DZtzqJzi.js} +1 -1
  164. package/web/app/immutable/chunks/{Cbpbq74u.js → DaWQpSHZ.js} +1 -1
  165. package/web/app/immutable/chunks/{BmooL5Pj.js → Db6-PdUB.js} +1 -1
  166. package/web/app/immutable/chunks/{DuA0wXTo.js → DbdK0wtE.js} +1 -1
  167. package/web/app/immutable/chunks/{CPE7SIVP.js → Dbp_q6hu.js} +1 -1
  168. package/web/app/immutable/chunks/{CI36mkCP.js → Dc5gEXVa.js} +1 -1
  169. package/web/app/immutable/chunks/{rBb3s3xl.js → DfqK8haP.js} +1 -1
  170. package/web/app/immutable/chunks/{9PMcLe0B.js → DhO5FJJI.js} +1 -1
  171. package/web/app/immutable/chunks/{DiLuZbm3.js → DhoGdCQi.js} +2 -2
  172. package/web/app/immutable/chunks/{Db5vVNPd.js → Dih9qRTv.js} +1 -1
  173. package/web/app/immutable/chunks/{CMcMoJJq.js → Dj3ZrCzO.js} +1 -1
  174. package/web/app/immutable/chunks/{Cp8bbNVk.js → DjLQeEnc.js} +2 -2
  175. package/web/app/immutable/chunks/{BGel6u2i.js → DjakyUlc.js} +1 -1
  176. package/web/app/immutable/chunks/{DkMx9Khd.js → Dk7aFMZs.js} +1 -1
  177. package/web/app/immutable/chunks/{DzrrFPjR.js → DnahZard.js} +3 -3
  178. package/web/app/immutable/chunks/{SrhdBdnO.js → DoYFP432.js} +1 -1
  179. package/web/app/immutable/chunks/{BjDqyb_W.js → DpFPjrHa.js} +2 -2
  180. package/web/app/immutable/chunks/{BEA1dP-Y.js → DqcBqbDI.js} +1 -1
  181. package/web/app/immutable/chunks/{DIYt9yAc.js → DqgXv99N.js} +1 -1
  182. package/web/app/immutable/chunks/{BG2eX09y.js → Dr9VLQ7a.js} +1 -1
  183. package/web/app/immutable/chunks/{BQk_mrPH.js → DrHq7-l3.js} +1 -1
  184. package/web/app/immutable/chunks/{DoIXHwho.js → DuP0kN9u.js} +1 -1
  185. package/web/app/immutable/chunks/{Bkff-hvs.js → DvyKNoGC.js} +1 -1
  186. package/web/app/immutable/chunks/{BqRBAXUd.js → DwrUEXuQ.js} +3 -3
  187. package/web/app/immutable/chunks/{DU8GQiwc.js → DzHxtEmT.js} +3 -3
  188. package/web/app/immutable/chunks/DzyUo7pt.js +1 -0
  189. package/web/app/immutable/chunks/{C4EqZepj.js → EOsEsFiT.js} +1 -1
  190. package/web/app/immutable/chunks/{BKJdB-rj.js → EbS0dv8R.js} +1 -1
  191. package/web/app/immutable/chunks/{DxdbljsN.js → GRe-AQYA.js} +1 -1
  192. package/web/app/immutable/chunks/{CJl18r_J.js → GXoNce_4.js} +1 -1
  193. package/web/app/immutable/chunks/{B47FKnfA.js → GgJbmGSc.js} +1 -1
  194. package/web/app/immutable/chunks/{CTgw4phK.js → Ik_OLFJv.js} +1 -1
  195. package/web/app/immutable/chunks/{CIDQz_xi.js → JM_PKnGS.js} +1 -1
  196. package/web/app/immutable/chunks/{P2s61dnl.js → MA6Nl0OX.js} +1 -1
  197. package/web/app/immutable/chunks/{tcnXcM0S.js → MQ537-MV.js} +1 -1
  198. package/web/app/immutable/chunks/{DmY0GWNY.js → Mc93eSxl.js} +1 -1
  199. package/web/app/immutable/chunks/{BN7h9eAI.js → McA_XHBx.js} +1 -1
  200. package/web/app/immutable/chunks/{DmDreYHi.js → Mg8H3Ad_.js} +2 -2
  201. package/web/app/immutable/chunks/{DhUnCLhA.js → NDjLJa7E.js} +1 -1
  202. package/web/app/immutable/chunks/{WXiWQWrz.js → PRcE3ypK.js} +1 -1
  203. package/web/app/immutable/chunks/{DlOpwiIn.js → PTikn3lb.js} +1 -1
  204. package/web/app/immutable/chunks/{BQjy1SUJ.js → R-YEJgRO.js} +1 -1
  205. package/web/app/immutable/chunks/S3oleArH.js +4 -0
  206. package/web/app/immutable/chunks/{fYStpNp1.js → SVOpkWQp.js} +2 -2
  207. package/web/app/immutable/chunks/{CpB9-pxF.js → TPdIgwsT.js} +2 -2
  208. package/web/app/immutable/chunks/{FIoCaQ2r.js → WVba34Wr.js} +1 -1
  209. package/web/app/immutable/chunks/Y9-4hTF9.js +1 -0
  210. package/web/app/immutable/chunks/{Dsq9SKtm.js → ZKiqJWPE.js} +1 -1
  211. package/web/app/immutable/chunks/{Bzvkqwap.js → _q-KbJHf.js} +1 -1
  212. package/web/app/immutable/chunks/{LPERbs3m.js → aK5j3GUe.js} +1 -1
  213. package/web/app/immutable/chunks/aos1n-nT.js +4 -0
  214. package/web/app/immutable/chunks/{BGKCZT2I.js → b30yTgwC.js} +1 -1
  215. package/web/app/immutable/chunks/{D1J3O3UF.js → b_tEJldq.js} +1 -1
  216. package/web/app/immutable/chunks/{Bs7Hg6Iw.js → cFbB-5Cu.js} +1 -1
  217. package/web/app/immutable/chunks/{CZF99d-A.js → cQMohqSY.js} +1 -1
  218. package/web/app/immutable/chunks/d7GMXNij.js +1 -0
  219. package/web/app/immutable/chunks/{GTp1YEph.js → dWKHnuAl.js} +1 -1
  220. package/web/app/immutable/chunks/{BcLSwxTf.js → ddhULx4L.js} +1 -1
  221. package/web/app/immutable/chunks/{CzZewxhP.js → e3tI_GeB.js} +1 -1
  222. package/web/app/immutable/chunks/{C1c28WNI.js → fqYOWiI-.js} +1 -1
  223. package/web/app/immutable/chunks/{B4lGG925.js → g9XYCabR.js} +1 -1
  224. package/web/app/immutable/chunks/{C-6Vv_Md.js → hUKBOWr5.js} +1 -1
  225. package/web/app/immutable/chunks/{Bb6S2E-a.js → jX7_8poo.js} +1 -1
  226. package/web/app/immutable/chunks/{C8_z1bbT.js → khtpv5vo.js} +1 -1
  227. package/web/app/immutable/chunks/{CcOcBD3s.js → mP3jvNc-.js} +1 -1
  228. package/web/app/immutable/chunks/{CNOSe0wO.js → pBUZ5yOz.js} +1 -1
  229. package/web/app/immutable/chunks/{C9u4tXUT.js → poVs4JlU.js} +1 -1
  230. package/web/app/immutable/chunks/{zqCR6Knb.js → q6hitSEG.js} +1 -1
  231. package/web/app/immutable/chunks/{_5Vv4dkf.js → rt8UAcU5.js} +1 -1
  232. package/web/app/immutable/chunks/{CnkXoP0c.js → ryfL7_qm.js} +1 -1
  233. package/web/app/immutable/chunks/{Cbr_yt83.js → s464WHxX.js} +1 -1
  234. package/web/app/immutable/chunks/{C4xNNtUj.js → tU_ZJtMw.js} +1 -1
  235. package/web/app/immutable/chunks/{DiKPZGG7.js → tgq3aX1k.js} +1 -1
  236. package/web/app/immutable/chunks/{BxyjmPKU.js → yhs5mgcb.js} +1 -1
  237. package/web/app/immutable/chunks/{DfumCvo1.js → z8H4OcR3.js} +1 -1
  238. package/web/app/immutable/entry/{app.BQtRy4N0.js → app.DnRD5eKq.js} +3 -3
  239. package/web/app/immutable/entry/start.CbqkOfEp.js +1 -0
  240. package/web/app/immutable/nodes/{0.YxkIXYW_.js → 0.CmJ43u1e.js} +1 -1
  241. package/web/app/immutable/nodes/{1.DPIiTcn7.js → 1.CqfYJXsK.js} +1 -1
  242. package/web/app/immutable/nodes/{10.CYSFXPaq.js → 10.Bl5RgWV9.js} +1 -1
  243. package/web/app/immutable/nodes/{11.Bl5UwrS9.js → 11.CtUvalit.js} +1 -1
  244. package/web/app/immutable/nodes/{12.CUp8k2-A.js → 12.BEzNSZ5P.js} +1 -1
  245. package/web/app/immutable/nodes/{13.Ch9aZ9Uv.js → 13.sp2ZZVeV.js} +3 -3
  246. package/web/app/immutable/nodes/{14.BW4XzZI8.js → 14.lB98JO4-.js} +3 -3
  247. package/web/app/immutable/nodes/{15.Cto8qDz0.js → 15.DxqMZDdK.js} +1 -1
  248. package/web/app/immutable/nodes/{16.SivUu1Ma.js → 16.C_vshDQR.js} +1 -1
  249. package/web/app/immutable/nodes/{17.Chj8J0QC.js → 17.BtrKoac8.js} +1 -1
  250. package/web/app/immutable/nodes/{18.BmSdt93l.js → 18.C1RSVrDA.js} +2 -2
  251. package/web/app/immutable/nodes/{2.CL9-Oazw.js → 2.CALBXNAI.js} +6 -6
  252. package/web/app/immutable/nodes/{3.6SFTvSLk.js → 3.Cbim6IQ0.js} +1 -1
  253. package/web/app/immutable/nodes/{4.s2OPBDUw.js → 4.CLMy68qv.js} +1 -1
  254. package/web/app/immutable/nodes/{5.BhdLMGJF.js → 5.DTKqXK_K.js} +1 -1
  255. package/web/app/immutable/nodes/{6.DorNgn-a.js → 6.COrZ368S.js} +1 -1
  256. package/web/app/immutable/nodes/{7.9iHTOKVc.js → 7.BOwmWuI7.js} +1 -1
  257. package/web/app/immutable/nodes/{8.DGrpVVpf.js → 8.DVUc29Ay.js} +4 -4
  258. package/web/app/immutable/nodes/{9.rNDQpOBQ.js → 9.Bf5-_PNq.js} +5 -5
  259. package/web/app/version.json +1 -1
  260. package/web/generated/paraglide.js +49 -49
  261. package/web/index.html +18 -18
  262. package/web/app/immutable/chunks/BKW86yq_.js +0 -1
  263. package/web/app/immutable/chunks/BtwtItRa.js +0 -4
  264. package/web/app/immutable/chunks/C8ummx7x.js +0 -1
  265. package/web/app/immutable/chunks/D1jZIoRI.js +0 -1
  266. package/web/app/immutable/chunks/DLzSUn52.js +0 -4
  267. package/web/app/immutable/chunks/Dk2XuKyL.js +0 -1
  268. package/web/app/immutable/chunks/O7PQPM4V.js +0 -1
  269. package/web/app/immutable/entry/start.DP05n5bC.js +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Ewbvp_lS.js","/app/immutable/chunks/DfZvKQFw.js","/app/immutable/chunks/BKW86yq_.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DlOpwiIn.js","/app/immutable/chunks/BB4FgpiZ.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/C4xNNtUj.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/RKjwEkJS.js","/app/immutable/chunks/D9WJ9yaW.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/CEsW1euQ.js","/app/immutable/chunks/DmY0GWNY.js","/app/immutable/chunks/C1N6iAP2.js","/app/immutable/chunks/CSelYXXo.js","/app/immutable/chunks/Bs7Hg6Iw.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DctMspbi.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CsvSUZwX.js","/app/immutable/chunks/0h3tB2X7.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DUyBdSjv.js","/app/immutable/chunks/BW1uSKLL.js","/app/immutable/chunks/C8ummx7x.js","/app/immutable/chunks/qvZYvB9N.js","/app/immutable/chunks/zqCR6Knb.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/BIWW5pDn.js","/app/immutable/chunks/CS4C4Dqz.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/DNWBkvFP.js","/app/immutable/chunks/CpHzYkzi.js","/app/immutable/chunks/BtwtItRa.js","/app/immutable/chunks/BcLSwxTf.js","/app/immutable/chunks/DRG7DUhO.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/Cp8bbNVk.js","/app/immutable/chunks/Cdb_pBT1.js","/app/immutable/chunks/aQy6qVNs.js","/app/immutable/chunks/DLzSUn52.js","/app/immutable/chunks/CXZBvyNr.js","/app/immutable/chunks/DxkncNQp.js","/app/immutable/chunks/DKnPivVx.js","/app/immutable/chunks/CTMYdigD.js","/app/immutable/chunks/BEA1dP-Y.js","/app/immutable/chunks/V_ABjOKq.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/CMcMoJJq.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/BtiDRzyn.js","/app/immutable/chunks/DhWGSJOr.js","/app/immutable/chunks/DhUnCLhA.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/BBhsbqLJ.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/BMlW8PWp.js","/app/immutable/chunks/BO3bzcut.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/BulYm0mb.js","/app/immutable/chunks/L1oXncPn.js","/app/immutable/chunks/DFBU68gv.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DRpIoF9f.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/5qgyaXHk.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/lkH5RFQO.js","/app/immutable/chunks/2_W5MGlF.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/DHNaVZzM.js","/app/immutable/chunks/CQ5RMFdD.js","/app/immutable/chunks/Cbr_yt83.js","/app/immutable/assets/accessibility.CP-rioAF.css","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css"])))=>i.map(i=>d[i]);
2
- import{_ as Z}from"./BKW86yq_.js";import{b as u,ay as o,aD as I,ah as ee,s as te,t as ne,u as se,aL as L,ad as re,ae as ie,a9 as D,Q as S,af as R,X as ae,W as oe,a4 as ce,aR as le,ba as ue,at as de,bh as fe}from"./DfZvKQFw.js";import{G as k}from"./-xK_vQQs.js";function P(e,{edgePathsClass:n="edges edgePaths"}={}){const t=e.insert("g").attr("class","root"),r=t.insert("g").attr("class","clusters"),s=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:r,edgePaths:s,edgeLabels:i,nodes:c,rootGroups:t}}u(P,"createLayoutElementGroups");async function T(e,n,t){if(n.label){const{shapeSvg:r,bbox:s}=await de(e,t===void 0?n:{...n,width:t});n.labelBBox={width:s.width,height:s.height},r.remove()}else n.labelBBox={width:0,height:0}}u(T,"measureGroupLabel");async function _(e,n,t){const r=await ee(e,n,t),s=r.node()?.getBBox()??{width:0,height:0};return n.width=s.width,n.height=s.height,r}u(_,"insertMeasuredNode");function B(e,n,t){let r=e;const s=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||s.has(r.parentId))break;s.add(r.parentId),r=n.get(r.parentId)}return t}u(B,"resolveNodeDir");async function M(e,n,t={}){const r=new k({multigraph:!0,compound:!0}),s=[...n.edges],i=ae(),c=P(e),{edgeLabels:f,nodes:a}=c,g=new Map,m=new Map(n.nodes.map(d=>[d.id,d])),C=n.direction,w=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup){if(w){const b=t.unwrapGroupLabels&&d.labelType!=="markdown";await T(a,d,b?Number.POSITIVE_INFINITY:void 0)}r.setNode(d.id,{...d})}else{if(w){const b=await _(a,d,{config:i,dir:B(d,m,C)});g.set(d.id,b)}r.setNode(d.id,{...d})}}));for(const d of s)w&&D(d)&&await R(f,d),r.setEdge(d.start,d.end,{...d},d.id),n.edges.some(E=>E.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:d}=await Z(async()=>{const{captureNodeSizes:b}=await import("./Ewbvp_lS.js");return{captureNodeSizes:b}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84]),import.meta.url);d(e,n)}return{graph:r,groups:c,nodeElements:g}}u(M,"createGraphWithElements");var l=new Map,h=new Map,A=new Map,ge=u(()=>{h.clear(),A.clear(),l.clear()},"clear"),v=u((e,n)=>{const t=h.get(n)||[];return o.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),be=u((e,n)=>{const t=h.get(n)||[];return o.info("Descendants of ",n," is ",t),o.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),X=u((e,n,t,r)=>{o.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),o.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(i=>{if(n.children(i).length>0)X(i,n,t,r);else{const c=n.node(i);o.info("cp ",i," to ",r," with parent ",e),t.setNode(i,c),r!==n.parent(i)&&(o.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.debug("Setting parent",i,e),t.setParent(i,e)):(o.info("In copy ",e,"root",r,"data",n.node(e),r),o.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const f=n.edges(i);o.debug("Copying Edges",f),f.forEach(a=>{o.info("Edge",a);const g=n.edge(a.v,a.w,a.name);o.info("Edge data",g,r);try{be(a,r)?(o.info("Copying as ",a.v,a.w,g,a.name),t.setEdge(a.v,a.w,g,a.name),o.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(m){o.error(m)}})}o.debug("Removing node",i),n.removeNode(i)})},"copy"),G=u((e,n)=>{const t=n.children(e);let r=[...t];for(const s of t)A.set(s,e),r=[...r,...G(s,n)];return r},"extractDescendants"),he=u((e,n,t)=>{const r=e.edges().filter(a=>a.v===n||a.w===n),s=e.edges().filter(a=>a.v===t||a.w===t),i=r.map(a=>({v:a.v===n?t:a.v,w:a.w===n?n:a.w})),c=s.map(a=>({v:a.v,w:a.w}));return i.filter(a=>c.some(g=>a.v===g.v&&a.w===g.w))},"findCommonEdges"),p=u((e,n,t)=>{const r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const i of r){const c=p(i,n,t),f=he(n,t,c);if(c)if(f.length>0)s=c;else return c}return s},"findNonClusterChild"),x=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){o.debug("Opting out, no graph ");return}else o.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(o.debug("Cluster identified",t," Replacement id in edges: ",p(t,e,t)),h.set(t,G(t,e)),l.set(t,{id:p(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const r=e.children(t),s=e.edges();r.length>0?(o.debug("Cluster identified",t,h),s.forEach(i=>{const c=v(i.v,t),f=v(i.w,t);c^f&&(o.debug("Edge: ",i," leaves cluster ",t),o.debug("Descendants of XXX ",t,": ",h.get(t)),l.get(t).externalConnections=!0)})):o.debug("Not a cluster ",t,h)});for(let t of l.keys()){const r=l.get(t).id,s=e.parent(r);s!==t&&l.has(s)&&!l.get(s).externalConnections&&(l.get(t).id=s);const i=e.edges().some(c=>c.v===t);if(r&&l.get(t)?.externalConnections&&i&&$(e,r,t)){const c=me(e,t,e.parent(r));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){const r=e.edge(t);o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let s=t.v,i=t.w;if(o.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(o.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),s=x(t.v),i=x(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v){const c=e.parent(s);l.get(c).externalConnections=!0,r.fromCluster=t.v}if(i!==t.w){const c=e.parent(i);l.get(c).externalConnections=!0,r.toCluster=t.w}o.debug("Fix Replacing with XXX",s,i,t.name),e.setEdge(s,i,r,t.name)}}),O(e,0),o.trace(l)},"adjustClustersAndEdges"),O=u((e,n)=>{if(n>10){o.error("Bailing out");return}let t=e.nodes(),r=!1;for(const s of t){const i=e.children(s);r=r||i.length>0}if(!r){o.debug("Done, no node has children",e.nodes());return}o.debug("Nodes = ",t,n);for(const s of t)if(o.debug("Extracting node",s,l,l.has(s)&&!l.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",n),!l.has(s))o.debug("Not a cluster",s,n);else if(!l.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){o.debug("Cluster without external connections, without a parent and with children",s,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(s)?.clusterData?.dir&&(c=l.get(s).clusterData.dir,o.debug("Fixing dir",l.get(s).clusterData.dir,c));const f=new k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});X(s,e,f,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:l.get(s).clusterData,label:l.get(s).label,graph:f})}else o.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),n),o.debug(l);t=e.nodes(),o.debug("New list of nodes",t);for(const s of t){const i=e.node(s);o.debug(" Now next level",s,i),i?.clusterNode&&O(i.graph,n+1)}},"extractor"),F=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(r=>{const s=e.children(r),i=F(e,s);t=[...t,...i]}),t},"sorter"),ye=u(e=>F(e,e.children()),"sortNodesByHierarchy"),$=u((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){const s=l.get(r);if(s&&!s.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),me=u((e,n,t)=>{const r=e.children(n)??[];for(const s of r){if(s===t||v(s,t))continue;const i=p(s,e,n);if(i&&!$(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:r,afterPaint:s,paintOptions:i}){const c=n??z;return u(async function(a,g,m,C){const w=g.select("g");(m?.insertMarkers??I)(w,a.markers,a.type,a.diagramId),j();const d={element:w,helpers:m,options:C};d.preparedLayout=await e?.(a,d);const b=await c(a,d),E=await t(a,d),N={...d,measure:b};r?await r(a,N,E):await H(a,N,i),await s?.(a,N,E)},"render")}u(we,"createCommonLayoutRenderer");function j(){te(),ne(),se(),ge()}u(j,"clearLayoutRenderState");async function z(e,{element:n},t){return await M(n,e,t)}u(z,"defaultMeasureLayout");async function H(e,n,t={}){const{measure:r}=n,{groups:s}=r;for(const c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await W(s,c,n,t);const i=V(e.nodes);for(const c of e.edges)Q(c,t)||await Y(s,c,i,e,t,n)}u(H,"paintLayoutData");async function W(e,n,t,r){n.clusterNode?L(n):J(n,t,r)?await re(e.clusters,n):L(n)}u(W,"paintLayoutNode");function J(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(J,"shouldPaintAsCluster");function V(e){const n=new Map;for(const t of e)t?.id&&n.set(t.id,t);return n}u(V,"buildNodeLookup");function Q(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(Q,"shouldSkipPaintEdge");async function Y(e,n,t,r,s,i){const c=ie(e.edgePaths,{...n},s.clusterDb??new Map,r.type,y(n.start,n,t,i,s),y(n.end,n,t,i,s),r.diagramId,q(n,s),r.layoutAlgorithm);D(n)&&(S.has(n.id)||await R(e.edgeLabels,n),K(n,c))}u(Y,"paintLayoutEdge");function y(e,n,t,r,s){return s.getEdgeNode?.(e,n,r)??(e?t.get(e)??{}:{})}u(y,"getRenderedNode");function q(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(q,"shouldSkipIntersect");function K(e,n){const t=n?.updatedPath??n?.originalPath,r=oe(),{subGraphTitleTotalMargin:s}=ce({flowchart:r.flowchart??{}});if(e.label){const i=S.get(e.id),{x:c,y:f}=le(e,n);i.attr("transform",`translate(${c}, ${f+s/2})`)}for(const[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){const{x:f,y:a}=U(e,i,t);ue.get(e.id)[i].attr("transform",`translate(${f}, ${a})`)}}u(K,"positionRenderedEdgeLabel");var ve={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function U(e,n,t){const r=e.terminalLabelCenters?.[n];if(r)return{...r};if(!t)return{x:e.x,y:e.y};const s=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return fe.calcTerminalLabelPosition(s?10:0,ve[n],t)}u(U,"terminalLabelTranslate");export{Ne as a,we as b,l as c,P as d,z as e,p as f,_ as i,ye as s};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BBXjSeZz.js","/app/immutable/chunks/CBc9tLFK.js","/app/immutable/chunks/Y9-4hTF9.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/PTikn3lb.js","/app/immutable/chunks/ClH0Gega.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/tU_ZJtMw.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/CO4a0yRH.js","/app/immutable/chunks/CrWhihJ_.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/CEsW1euQ.js","/app/immutable/chunks/Mc93eSxl.js","/app/immutable/chunks/CPKMQWOs.js","/app/immutable/chunks/BL2lJmRT.js","/app/immutable/chunks/cFbB-5Cu.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BZQDFgmp.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DOH10_LL.js","/app/immutable/chunks/CIpI7Qrh.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/5GYSXevc.js","/app/immutable/chunks/BLgIfeYS.js","/app/immutable/chunks/d7GMXNij.js","/app/immutable/chunks/Bv2KudWv.js","/app/immutable/chunks/q6hitSEG.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/C6vwP-ay.js","/app/immutable/chunks/DU9Ky5os.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/DNWBkvFP.js","/app/immutable/chunks/CpHzYkzi.js","/app/immutable/chunks/aos1n-nT.js","/app/immutable/chunks/ddhULx4L.js","/app/immutable/chunks/D-l6NLYy.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/DjLQeEnc.js","/app/immutable/chunks/DLIkH-mx.js","/app/immutable/chunks/aQy6qVNs.js","/app/immutable/chunks/S3oleArH.js","/app/immutable/chunks/C_Lje1cd.js","/app/immutable/chunks/DYxNs3ex.js","/app/immutable/chunks/-FMYDRBF.js","/app/immutable/chunks/BS8Oxiwq.js","/app/immutable/chunks/DqcBqbDI.js","/app/immutable/chunks/BMOaW1oW.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/Dj3ZrCzO.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/CwDNa5HL.js","/app/immutable/chunks/BJwkYtAi.js","/app/immutable/chunks/NDjLJa7E.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/-CHLoCv2.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/CXOFOhS1.js","/app/immutable/chunks/C-P--5-o.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/CK_Ox9jk.js","/app/immutable/chunks/BT9wQ0Ce.js","/app/immutable/chunks/2rbh16KP.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/CVXxjkW7.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/CBq6DlIt.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/lkH5RFQO.js","/app/immutable/chunks/BTrGu4V2.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/BIqnmVRf.js","/app/immutable/chunks/C9yvm97z.js","/app/immutable/chunks/s464WHxX.js","/app/immutable/assets/accessibility.CP-rioAF.css","/app/immutable/assets/DiagramPresentation.C2GLYoBN.css"])))=>i.map(i=>d[i]);
2
+ import{_ as Z}from"./Y9-4hTF9.js";import{b as u,ay as o,aD as I,ah as ee,s as te,t as ne,u as se,aL as L,ad as re,ae as ie,a9 as D,Q as S,af as R,X as ae,W as oe,a4 as ce,aR as le,ba as ue,at as de,bh as fe}from"./CBc9tLFK.js";import{G as k}from"./-xK_vQQs.js";function P(e,{edgePathsClass:n="edges edgePaths"}={}){const t=e.insert("g").attr("class","root"),r=t.insert("g").attr("class","clusters"),s=t.insert("g").attr("class",n),i=t.insert("g").attr("class","edgeLabels"),c=t.insert("g").attr("class","nodes");return{clusters:r,edgePaths:s,edgeLabels:i,nodes:c,rootGroups:t}}u(P,"createLayoutElementGroups");async function T(e,n,t){if(n.label){const{shapeSvg:r,bbox:s}=await de(e,t===void 0?n:{...n,width:t});n.labelBBox={width:s.width,height:s.height},r.remove()}else n.labelBBox={width:0,height:0}}u(T,"measureGroupLabel");async function _(e,n,t){const r=await ee(e,n,t),s=r.node()?.getBBox()??{width:0,height:0};return n.width=s.width,n.height=s.height,r}u(_,"insertMeasuredNode");function B(e,n,t){let r=e;const s=new Set;for(;r;){if(r.dir)return r.dir;if(!r.parentId||s.has(r.parentId))break;s.add(r.parentId),r=n.get(r.parentId)}return t}u(B,"resolveNodeDir");async function M(e,n,t={}){const r=new k({multigraph:!0,compound:!0}),s=[...n.edges],i=ae(),c=P(e),{edgeLabels:f,nodes:a}=c,g=new Map,m=new Map(n.nodes.map(d=>[d.id,d])),C=n.direction,w=e.node()!=null;await Promise.all(n.nodes.map(async d=>{if(d.isGroup){if(w){const b=t.unwrapGroupLabels&&d.labelType!=="markdown";await T(a,d,b?Number.POSITIVE_INFINITY:void 0)}r.setNode(d.id,{...d})}else{if(w){const b=await _(a,d,{config:i,dir:B(d,m,C)});g.set(d.id,b)}r.setNode(d.id,{...d})}}));for(const d of s)w&&D(d)&&await R(f,d),r.setEdge(d.start,d.end,{...d},d.id),n.edges.some(E=>E.id===d.id)||n.edges.push(d);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:d}=await Z(async()=>{const{captureNodeSizes:b}=await import("./BBXjSeZz.js");return{captureNodeSizes:b}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84]),import.meta.url);d(e,n)}return{graph:r,groups:c,nodeElements:g}}u(M,"createGraphWithElements");var l=new Map,h=new Map,A=new Map,ge=u(()=>{h.clear(),A.clear(),l.clear()},"clear"),v=u((e,n)=>{const t=h.get(n)||[];return o.trace("In isDescendant",n," ",e," = ",t.includes(e)),t.includes(e)},"isDescendant"),be=u((e,n)=>{const t=h.get(n)||[];return o.info("Descendants of ",n," is ",t),o.info("Edge is ",e),e.v===n||e.w===n?!1:t?t.includes(e.v)||v(e.v,n)||v(e.w,n)||t.includes(e.w):(o.debug("Tilt, ",n,",not in descendants"),!1)},"edgeInCluster"),X=u((e,n,t,r)=>{o.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),o.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(i=>{if(n.children(i).length>0)X(i,n,t,r);else{const c=n.node(i);o.info("cp ",i," to ",r," with parent ",e),t.setNode(i,c),r!==n.parent(i)&&(o.debug("Setting parent",i,n.parent(i)),t.setParent(i,n.parent(i))),e!==r&&i!==e?(o.debug("Setting parent",i,e),t.setParent(i,e)):(o.info("In copy ",e,"root",r,"data",n.node(e),r),o.debug("Not Setting parent for node=",i,"cluster!==rootId",e!==r,"node!==clusterId",i!==e));const f=n.edges(i);o.debug("Copying Edges",f),f.forEach(a=>{o.info("Edge",a);const g=n.edge(a.v,a.w,a.name);o.info("Edge data",g,r);try{be(a,r)?(o.info("Copying as ",a.v,a.w,g,a.name),t.setEdge(a.v,a.w,g,a.name),o.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))):o.info("Skipping copy of edge ",a.v,"-->",a.w," rootId: ",r," clusterId:",e)}catch(m){o.error(m)}})}o.debug("Removing node",i),n.removeNode(i)})},"copy"),G=u((e,n)=>{const t=n.children(e);let r=[...t];for(const s of t)A.set(s,e),r=[...r,...G(s,n)];return r},"extractDescendants"),he=u((e,n,t)=>{const r=e.edges().filter(a=>a.v===n||a.w===n),s=e.edges().filter(a=>a.v===t||a.w===t),i=r.map(a=>({v:a.v===n?t:a.v,w:a.w===n?n:a.w})),c=s.map(a=>({v:a.v,w:a.w}));return i.filter(a=>c.some(g=>a.v===g.v&&a.w===g.w))},"findCommonEdges"),p=u((e,n,t)=>{const r=n.children(e);if(o.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const i of r){const c=p(i,n,t),f=he(n,t,c);if(c)if(f.length>0)s=c;else return c}return s},"findNonClusterChild"),x=u(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,"getAnchorId"),Ne=u((e,n)=>{if(!e||n>10){o.debug("Opting out, no graph ");return}else o.debug("Opting in, graph ");e.nodes().forEach(function(t){e.children(t).length>0&&(o.debug("Cluster identified",t," Replacement id in edges: ",p(t,e,t)),h.set(t,G(t,e)),l.set(t,{id:p(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){const r=e.children(t),s=e.edges();r.length>0?(o.debug("Cluster identified",t,h),s.forEach(i=>{const c=v(i.v,t),f=v(i.w,t);c^f&&(o.debug("Edge: ",i," leaves cluster ",t),o.debug("Descendants of XXX ",t,": ",h.get(t)),l.get(t).externalConnections=!0)})):o.debug("Not a cluster ",t,h)});for(let t of l.keys()){const r=l.get(t).id,s=e.parent(r);s!==t&&l.has(s)&&!l.get(s).externalConnections&&(l.get(t).id=s);const i=e.edges().some(c=>c.v===t);if(r&&l.get(t)?.externalConnections&&i&&$(e,r,t)){const c=me(e,t,e.parent(r));c&&(l.get(t).id=c)}}e.edges().forEach(function(t){const r=e.edge(t);o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),o.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let s=t.v,i=t.w;if(o.debug("Fix XXX",l,"ids:",t.v,t.w,"Translating: ",l.get(t.v)," --- ",l.get(t.w)),l.get(t.v)||l.get(t.w)){if(o.debug("Fixing and trying - removing XXX",t.v,t.w,t.name),s=x(t.v),i=x(t.w),e.removeEdge(t.v,t.w,t.name),s!==t.v){const c=e.parent(s);l.get(c).externalConnections=!0,r.fromCluster=t.v}if(i!==t.w){const c=e.parent(i);l.get(c).externalConnections=!0,r.toCluster=t.w}o.debug("Fix Replacing with XXX",s,i,t.name),e.setEdge(s,i,r,t.name)}}),O(e,0),o.trace(l)},"adjustClustersAndEdges"),O=u((e,n)=>{if(n>10){o.error("Bailing out");return}let t=e.nodes(),r=!1;for(const s of t){const i=e.children(s);r=r||i.length>0}if(!r){o.debug("Done, no node has children",e.nodes());return}o.debug("Nodes = ",t,n);for(const s of t)if(o.debug("Extracting node",s,l,l.has(s)&&!l.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",n),!l.has(s))o.debug("Not a cluster",s,n);else if(!l.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){o.debug("Cluster without external connections, without a parent and with children",s,n);let c=e.graph().rankdir==="TB"?"LR":"TB";l.get(s)?.clusterData?.dir&&(c=l.get(s).clusterData.dir,o.debug("Fixing dir",l.get(s).clusterData.dir,c));const f=new k({multigraph:!0,compound:!0}).setGraph({rankdir:c,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});X(s,e,f,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:l.get(s).clusterData,label:l.get(s).label,graph:f})}else o.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!l.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),n),o.debug(l);t=e.nodes(),o.debug("New list of nodes",t);for(const s of t){const i=e.node(s);o.debug(" Now next level",s,i),i?.clusterNode&&O(i.graph,n+1)}},"extractor"),F=u((e,n)=>{if(n.length===0)return[];let t=Object.assign([],n);return n.forEach(r=>{const s=e.children(r),i=F(e,s);t=[...t,...i]}),t},"sorter"),ye=u(e=>F(e,e.children()),"sortNodesByHierarchy"),$=u((e,n,t)=>{let r=e.parent(n);for(;r&&r!==t;){const s=l.get(r);if(s&&!s.externalConnections)return!0;r=e.parent(r)}return!1},"isNodeInExtractableCluster"),me=u((e,n,t)=>{const r=e.children(n)??[];for(const s of r){if(s===t||v(s,t))continue;const i=p(s,e,n);if(i&&!$(e,i,n))return i}return null},"findSafeAnchorNode");function we({prepareLayout:e,measureLayout:n,runLayoutCore:t,paintLayout:r,afterPaint:s,paintOptions:i}){const c=n??z;return u(async function(a,g,m,C){const w=g.select("g");(m?.insertMarkers??I)(w,a.markers,a.type,a.diagramId),j();const d={element:w,helpers:m,options:C};d.preparedLayout=await e?.(a,d);const b=await c(a,d),E=await t(a,d),N={...d,measure:b};r?await r(a,N,E):await H(a,N,i),await s?.(a,N,E)},"render")}u(we,"createCommonLayoutRenderer");function j(){te(),ne(),se(),ge()}u(j,"clearLayoutRenderState");async function z(e,{element:n},t){return await M(n,e,t)}u(z,"defaultMeasureLayout");async function H(e,n,t={}){const{measure:r}=n,{groups:s}=r;for(const c of t.getNodes?.(e,n)??e.nodes)t.skipNode?.(c,n)||await W(s,c,n,t);const i=V(e.nodes);for(const c of e.edges)Q(c,t)||await Y(s,c,i,e,t,n)}u(H,"paintLayoutData");async function W(e,n,t,r){n.clusterNode?L(n):J(n,t,r)?await re(e.clusters,n):L(n)}u(W,"paintLayoutNode");function J(e,n,t){return e.isGroup===!0&&(t.isCluster?.(e,n)??!0)}u(J,"shouldPaintAsCluster");function V(e){const n=new Map;for(const t of e)t?.id&&n.set(t.id,t);return n}u(V,"buildNodeLookup");function Q(e,n){return e.isLayoutOnly||!!n.skipEdge?.(e)}u(Q,"shouldSkipPaintEdge");async function Y(e,n,t,r,s,i){const c=ie(e.edgePaths,{...n},s.clusterDb??new Map,r.type,y(n.start,n,t,i,s),y(n.end,n,t,i,s),r.diagramId,q(n,s),r.layoutAlgorithm);D(n)&&(S.has(n.id)||await R(e.edgeLabels,n),K(n,c))}u(Y,"paintLayoutEdge");function y(e,n,t,r,s){return s.getEdgeNode?.(e,n,r)??(e?t.get(e)??{}:{})}u(y,"getRenderedNode");function q(e,n){return typeof n.skipIntersect=="function"?n.skipIntersect(e):n.skipIntersect??!1}u(q,"shouldSkipIntersect");function K(e,n){const t=n?.updatedPath??n?.originalPath,r=oe(),{subGraphTitleTotalMargin:s}=ce({flowchart:r.flowchart??{}});if(e.label){const i=S.get(e.id),{x:c,y:f}=le(e,n);i.attr("transform",`translate(${c}, ${f+s/2})`)}for(const[i,c]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(c){const{x:f,y:a}=U(e,i,t);ue.get(e.id)[i].attr("transform",`translate(${f}, ${a})`)}}u(K,"positionRenderedEdgeLabel");var ve={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function U(e,n,t){const r=e.terminalLabelCenters?.[n];if(r)return{...r};if(!t)return{x:e.x,y:e.y};const s=n.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return fe.calcTerminalLabelPosition(s?10:0,ve[n],t)}u(U,"terminalLabelTranslate");export{Ne as a,we as b,l as c,P as d,z as e,p as f,_ as i,ye as s};
@@ -1,2 +1,2 @@
1
- import{O as G,g as j,ao as Q,al as V,aw as z,p as X,a as J}from"./BB4FgpiZ.js";import{Iz as l,nw as h,nx as R,II as N,be as T,Y,nj as _,rb as H,rx as $,k2 as Z,rv as C,I_ as O,qS as ee,fE as q,rc as P,_ as te,bc as ne,g as se}from"./C4xNNtUj.js";import{z as x,aB as oe,v as ie}from"./BtwtItRa.js";import{g as F}from"./DypB-Dwi.js";const re=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function ae(e){const t=e.metadata;if(t&&typeof t=="object"){if(t.type==="question_answers")return!1;if(!G(t))return!0}const n=j(e);return re.some(s=>n.startsWith(s))}const K=1440*60*1e3;function ce(e){let t=null;for(const n of e){if(ae({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(t===null||s>t)&&(t=s)}return t}const de=50,le=20;function W(e,t){return e===null||t!==null&&t>e?t:e}async function Ce(e,t){let n,s=null;for(let o=0;o<le;o++){const i=await e({limit:de,nextToken:n});if(!i.ok)return null;const a=i.items;s===null&&a.length>0&&(s=a[a.length-1].id);const d=t?.newestId!=null?a.findIndex(c=>c.id===t.newestId):-1,r=ce(d>=0?a.slice(d+1):a);if(d>=0)return{latest:W(r,t?.latest??null),newestId:s};if(r!==null)return{latest:W(r,t?.latest??null),newestId:s};if(typeof i.nextToken!="string")return{latest:null,newestId:s};n=i.nextToken}return{latest:t?.latest??null,newestId:s}}function ue(e,t){return e!=null&&e<=t&&e>t-K}function ge(e,t){return e!=null&&Number.isFinite(e)&&e>0&&e<=t-K}function fe(e,t){const{workspaceId:n,agentId:s,authority:o,nativePairId:i,evidence:a}=e;if(!n||!s||!o||o!==t)return null;const d=JSON.stringify([n,s]);if(i!==d||a?.id!==d)return null;const r=a.clips.find(c=>c.status==="recording");return!r||r.discarding||!Number.isFinite(r.startedAt)||!Number.isFinite(r.pausedMs??0)||r.pausedAt!=null&&!Number.isFinite(r.pausedAt)?null:{workspaceId:n,agentId:s,clipId:r.id,startedAt:r.startedAt,pausedAt:r.pausedAt??null,pausedMs:r.pausedMs??0}}function We(e,t){return t!==void 0&&e!==t?"ignore":e?"stop":"start"}const De=l.createSelector(e=>{const t=e.dockConversation,n=t.workspaceId&&t.agentId?JSON.stringify([t.workspaceId,t.agentId]):null;return fe({workspaceId:t.workspaceId,agentId:t.agentId,authority:t.authority,nativePairId:t.nativeSpeech.pairId,evidence:n?h(t.evidence,n):null},F(e))});l.createSelector(e=>e.hud.active);l.createSelector(e=>e.hud.feed);l.createSelector(e=>e.hud.usage);l.createSelector(e=>e.hud.usageError);const Ee=l.createSelector(e=>e.hud.rateHistory),Ne=l.createSelector(e=>R(e.workspace.workspaces)),He=l.createSelector(e=>{const t=e.hud.usage?.totals;return t?N(t):0}),qe=l.createSelector(e=>e.hud.burnRatePerMin),Pe=l.createSelector(e=>e.hud.burnTrend),xe=l.createSelector(e=>{const{health:t,stats:n,lastUpdated:s,hostLocality:o}=e.daemonHealth,i=n?.hostname;return{online:t!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:o==="remote"&&i?i.split(".",1)[0]??i:null}}),Fe=l.createSelector(e=>e.hud.gridFilter);l.createSelector(e=>e.hud.attentionByWorkspaceId);const Ke=l.createSelector((e,t)=>{const n=e.hud?.questionsByAgentId?.[t];if(!n)return!1;const s=e.agentSessions?.byAgentId[t]?.metadata??{};return!x(s,n.messageId)}),Le=l.createSelector(e=>e.hud.takeoverRequestWorkspaceId);function pe(e,t){return t[String(e.id)]??e.displayStatus}const S=l.createSelector(e=>{const t=e.hud.displayStatusByWorkspaceId;return R(e.workspace.workspaces).filter(n=>n.status!==T.Archived&&n.status!==T.Retired&&n.status!==T.Deleted).map(n=>{const s=pe(n,t);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function I(e){const t=e.agentSummary;return!t||!Array.isArray(t.agents)?[]:t.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!ie(n.id))}const Ue=l.createSelector(e=>{const t=Object.fromEntries(Y.map(n=>[n,0]));for(const n of S.select(e))for(const s of I(n))t[y(e,s).bucket]+=1;return t}),Ge=l.createSelector(e=>{const t={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of B.select(e))switch(t.total+=1,n.isUnread&&(t.unread+=1),n.isWaiting&&(t.waiting+=1),n.stateKey){case"wait":case"blocked":t.attention+=1;break;case"failed":t.failed+=1;break;case"in_progress":t.progress+=1;break;case"complete":t.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":t.prOpen+=1;break;case"pr_merged":t.prMerged+=1;break;default:t.idle+=1}return t}),ke=l.createSelector(e=>{const t={};for(const n of S.select(e))for(const s of I(n))typeof s.name=="string"&&s.name.length>0&&(t[s.id]=s.name);return t});function D(e){if(!e.sinceTs)return 0;const t=Date.parse(e.sinceTs);return Number.isFinite(t)?t:0}const je=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=e.hud.questionsByAgentId,s=[];for(const o of S.select(e)){const i=String(o.id);let a=!1;for(const r of b(o,e)){const{bucket:c,attentionKind:u,hasQuestion:g}=r;if(c!=="needs-attention"&&c!=="failed"||!r.topLevel||r.isBackground||A(e,r.id))continue;const k=g?n[r.id]:void 0,f=u?_(e.agentSessions?.byAgentId[r.id])?.reason:void 0,p=k?"question":u??void 0;s.push({workspaceId:i,workspaceTitle:o.title,kind:c==="needs-attention"?"agent_waiting":"agent_failed",...c==="needs-attention"&&p?{signal:p}:{},agentName:r.name,message:k?.question??f??null,sinceTs:r.lastActivityTs}),a=!0}const d=t[i];d&&H(d.attention)&&(s.push({workspaceId:i,workspaceTitle:o.title,kind:"workspace_attention",attention:d.attention,message:null,sinceTs:d.raisedAtTs}),a=!0),L.has(w(o))&&!a&&s.push({workspaceId:i,workspaceTitle:o.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((o,i)=>D(i)-D(o))}),Qe=l.createSelector(e=>{const t=ke.select(e);return e.hud.feed.map(n=>({...n,workspaceTitle:h(e.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?t[n.agentId]??null:null)}))}),Se={total:0,completed:0,inProgress:0};function w(e){const t=$(e.displayStatus)?e.displayStatus:"not_started";return Z(t)??"not_started"}const L=new Set(["wait","blocked","failed"]);function Ae(e,t,n){if(t==="failed"){const o=n.find(a=>a.bucket==="failed"&&!A(e,a.id)),i=o?e.agentSessions?.byAgentId[o.id]?.stopReason:null;return{kind:"failed",text:typeof i=="string"&&i.length>0?i:""}}if(t!=="wait"&&t!=="blocked")return null;const s=n.filter(o=>o.topLevel&&!o.isBackground&&!A(e,o.id));for(const o of s){if(!o.hasQuestion)continue;const i=e.hud.questionsByAgentId[o.id];if(i?.question)return{kind:"question",text:i.question}}for(const o of["blocker","discussion"])for(const i of s){if(i.attentionKind!==o)continue;const a=e.agentSessions?.byAgentId[i.id],d=_(a)?.reason;if(d)return{kind:o,text:d}}return{kind:"pending",text:""}}const m=new Set(["running","needs-attention","failed"]);function E(e){const t=typeof e.lastActivity=="string"?Date.parse(e.lastActivity):NaN;return Number.isFinite(t)?t:-1/0}function he(e){const t=n=>{const s=e.get(n.id)?.bucket;return s!==void 0&&m.has(s)?0:1};return(n,s)=>{const o=n.specialist==="spec-writer",i=s.specialist==="spec-writer";if(o!==i)return o?-1:1;const a=t(n)-t(s);if(a!==0)return a;const d=E(n),r=E(s);return d!==r?r-d:n.id<s.id?-1:n.id>s.id?1:0}}function me(e,t){const n=new Set(e.map(r=>r.id)),s=new Map,o=[];for(const r of e){const c=typeof r.parentAgentId=="string"&&r.parentAgentId!==r.id&&n.has(r.parentAgentId)?r.parentAgentId:null;if(c){const u=s.get(c)??[];u.push(r),s.set(c,u)}else o.push(r)}o.sort(t);for(const r of s.values())r.sort(t);const i=[],a=new Set,d=(r,c,u)=>{if(!a.has(r.id)){a.add(r.id),i.push({info:r,depth:c,parentAgentId:u});for(const g of s.get(r.id)??[])d(g,c+1,r.id)}};for(const r of o)d(r,0,null);for(const r of e)d(r,0,null);return i}function y(e,t){const n=e.agentSessions?.byAgentId[t.id],s=n?.metadata??{},o=n?_(n)?.kind??null:null,i=n?Q.select(e,t.id)||typeof n.status=="string"&&C(n.status):C(t.status),a=n?O(typeof n.status=="string"?n.status:t.status):null,d=!!n&&a!=="failed"&&a!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),r=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let c;n?d&&!r&&n.isStreaming!==!0&&n.isProcessing!==!0?c="idle":V.select(e,t.id)?c="running":i?c="idle":c=O(typeof n.status=="string"?n.status:t.status):c=t.isResponding===!0||t.isStreaming===!0?"running":O(t.status);const u=e.hud.questionsByAgentId[t.id],g=c!=="failed"&&!!u&&!x(s,u.messageId);return{bucket:c==="failed"?"failed":o!==null||g?"needs-attention":c,attentionKind:o,hasQuestion:g,isRunning:c==="running"}}function U(e,t){const n=o=>typeof o=="string"&&o!==e.id?o:null,s=o=>({isBackground:o?.isBackground,createdByAgentId:n(o?.createdByAgentId)});return{parentAgentId:n(e.parentAgentId)??n(t?.parentAgentId),isBackground:e.isBackground??t?.isBackground,metadata:s(t?.metadata),agentMetadata:s(t?.agentMetadata)}}function A(e,t){return e.agentSessions?.byAgentId[t]?.notificationsMuted===!0}function ye(e){if(!e)return null;switch(e.kind){case"attention":return e.attention.reason??null;case"live-tool":case"last-tool":{const t=J(e.toolUse.name,e.toolUse.input||{});return t.hidden?null:[t.verb,t.subject,t.path].filter(Boolean).join(" ").trim()||null}default:{const t=e.text||"";return t?t.includes(`
2
- `)?X(t)||null:t:null}}}function b(e,t){const n=I(e),s=new Map(n.map(i=>[i.id,y(t,i)]));return me(n,he(s)).map(({info:i,depth:a,parentAgentId:d})=>{const r=t.agentSessions?.byAgentId[i.id],c=U(i,r),{bucket:u,attentionKind:g,hasQuestion:k}=s.get(i.id)??y(t,i),f=Array.isArray(r?.waitingForAgentIds)?r.waitingForAgentIds.filter(p=>typeof p=="string"):[];return{id:i.id,name:i.name,bucket:u,lastActivityTs:i.lastActivity??null,line:ye(z.select(t,i.id)),parentAgentId:d,depth:a,treePrefix:"",topLevel:q(c)==="topLevel",isBackground:ee(c),attentionKind:g,hasQuestion:k,isWaitingForAgents:r?.isWaitingForOtherAgents===!0||f.length>0||Array.isArray(r?.waitingOnHooks)&&r.waitingOnHooks.length>0||Array.isArray(r?.waitingOnPrMonitors)&&r.waitingOnPrMonitors.length>0||Array.isArray(r?.waitingOnScriptMonitors)&&r.waitingOnScriptMonitors.length>0,waitingForAgentIds:f}})}function Ie(e){const t=new Set;for(const o of e)for(const i of o.waitingForAgentIds)t.add(i);const n=o=>m.has(o.bucket)||o.isWaitingForAgents||t.has(o.id);return e.filter((o,i)=>{if(n(o))return!0;for(let a=i+1;a<e.length&&!(e[a].depth<=o.depth);a++)if(n(e[a]))return!0;return!1}).map((o,i,a)=>{if(o.depth===0)return{...o,treePrefix:""};let d=!0;for(let r=i+1;r<a.length&&!(a[r].depth<o.depth);r++)if(a[r].depth===o.depth){d=!1;break}return{...o,treePrefix:(o.depth>=2?"│ ":"")+(d?"└─":"├─")}})}const B=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=oe.select(e);return S.select(e).map(s=>{const o=String(s.id),i=n.indexOf(o),a=t[o]?.attention??(typeof s.attention=="string"&&P(s.attention)?s.attention:null),d=b(s,e),r=w(s),c=e.tokenUsage?.byWorkspaceId[o]?.totals,u=e.workspaceTasks?.byWorkspaceId[o]?.stats,g=typeof s.statusMessage=="string"&&s.statusMessage.trim().length>0?s.statusMessage:null;return{workspaceId:o,title:s.title,repoRef:s.repositoryName?`${s.repositoryOwner?`${s.repositoryOwner}/`:""}${s.repositoryName}`:s.branch,stateKey:r,attention:a,isUnread:a===te,isWaiting:s.waiting===!0,statusMessage:g,attentionSnippet:Ae(e,r,d),prNumber:typeof s.prNumber=="number"?s.prNumber:null,keySlot:i===-1?null:i,tasks:u?{total:u.total,completed:u.completed,inProgress:u.inProgress}:Se,tokens:c?N(c):0,agents:Ie(d)}})}),M=4;function we(e,t,n){const s=e.agentSessions?.byAgentId[n.id];return!s||String(s.workspaceId)!==t||s.pendingDeleteAt||q(U(n,s))!=="topLevel"?!1:!A(e,n.id)}const be=l.createSelector(e=>{const t={},n=e.hud.attentionByWorkspaceId;for(const s of S.select(e)){const o=String(s.id),i=new Map,a=(f,p)=>{const v=i.get(f)??[];v.includes(p)||v.push(p),i.set(f,v)},r=I(s).filter(f=>we(e,o,f));for(const f of r){const p=y(e,f);p.bucket==="failed"?a("failed",f.name):p.hasQuestion?a("question",f.name):p.attentionKind==="blocker"?a("blocker",f.name):p.attentionKind==="discussion"&&a("discussion",f.name),p.isRunning&&a("running",f.name)}const c=w(s);c==="failed"&&!i.has("failed")&&i.set("failed",[]),c==="blocked"&&!i.has("blocker")&&i.set("blocker",[]),c==="wait"&&!i.has("question")&&!i.has("blocker")&&!i.has("discussion")&&i.set("needs_input",[]);const u=n[o]?.attention??(typeof s.attention=="string"&&P(s.attention)?s.attention:null);u==="review_required"&&i.set("review",[]),u==="unread"&&i.set("unread",[]),s.activity==="agent_running"&&!i.has("running")&&i.set("running",[]);const g=ne.flatMap(f=>{const p=i.get(f);return p?[{category:f,count:Math.max(1,p.length),agentNames:p}]:[]});if(g.length===0)continue;const k=g.length>M;t[o]={agentCount:r.length,categories:g,visibleCategories:k?g.slice(0,M-1):g,hiddenCategoryCount:k?g.length-(M-1):0}}return t});l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId;let n=0;for(const s of S.select(e)){let o=!1;for(const d of b(s,e))d.topLevel&&!d.isBackground&&!A(e,d.id)&&(d.bucket==="failed"||d.attentionKind!==null||d.hasQuestion)&&(n+=1,o=!0);const i=t[String(s.id)],a=i!==void 0&&H(i.attention);a&&(n+=1),L.has(w(s))&&!o&&!a&&(n+=1)}return n});function ve(e,t,n,s){const o=s.slice().sort((r,c)=>c.createdAt-r.createdAt);for(const r of o){const u=e.agentSessions?.byAgentId[r.agentId]?.metadata?.completionReport;if(typeof u=="string"&&u.trim().length>0)return u}const i=e.workspaceNotes?.byWorkspaceId[t]?.notes,a=i?h(i,n):void 0,d=a?.content||a?.contentPreview;return typeof d=="string"&&d.trim().length>0?d:null}const Ve=l.createSelector((e,t)=>{const n=B.select(e).find(c=>c.workspaceId===t);if(!n)return null;const s=h(e.workspace.workspaces,t),o=s?b(s,e):[],i=new Map(o.map(c=>[c.id,c])),a=e.taskAgentAssociations?.byWorkspaceId[t]?.byNoteId??{},d=e.workspaceTasks?.byWorkspaceId[t],r=d?R(d.tasks).filter(c=>c.status!=="cancelled").map(c=>{const u=Object.values(a[c.id]??{});return{id:c.id,title:c.title,status:c.status,agents:u.map(g=>i.get(g.agentId)).filter(g=>!!g),report:c.status==="complete"?ve(e,t,c.id,u):null,...c.specLinked!==void 0?{specLinked:c.specLinked}:{},...c.dependsOn?{dependsOn:c.dependsOn}:{},...c.conflictsWith?{conflictsWith:c.conflictsWith}:{},...c.unmetDependsOn?{unmetDependsOn:c.unmetDependsOn}:{}}}):[];return{workspaceId:t,title:n.title,repoRef:n.repoRef,statusMessage:n.statusMessage,keySlot:n.keySlot,stats:n.tasks,tasks:r,activeAgents:o.filter(c=>m.has(c.bucket)),idleAgents:o.filter(c=>!m.has(c.bucket))}}),Te=new Set(["failed","blocker","question","discussion","needs_input","review"]);function Oe(e){for(const t of e?.categories??[])switch(t.category){case"failed":return"failure";case"blocker":return"blocker";case"question":return"question";case"review":return"review"}return"none"}const ze=l.createSelector((e,t="recent")=>{const n=B.select(e),s=be.select(e),o=new Map(S.select(e).map(a=>[String(a.id),a])),i={action:[],unread:[],active:[]};for(const a of n){const d=o.get(a.workspaceId);if(!d||d.id===se||!(t==="older"?ge:ue)(e.hud.dockConversationAtByWorkspaceId[a.workspaceId],e.hud.dockRecencyNow))continue;const r=s[a.workspaceId],c=r?.categories??[],u=c.some(p=>Te.has(p.category)),g=a.isUnread,k=c.some(p=>p.category==="running"),f=u?"action":g?"unread":"active";i[f].push({workspace:d,badgeKind:Oe(r),priorityGroup:f,isUnread:g,isRunning:k,isWaiting:a.isWaiting})}return[...i.action,...i.unread,...i.active].sort((a,d)=>e.hud.dockConversationAtByWorkspaceId[String(d.workspace.id)]-e.hud.dockConversationAtByWorkspaceId[String(a.workspace.id)]||String(a.workspace.id).localeCompare(String(d.workspace.id)))}),Xe=l.createSelector(e=>e.hud.dockPlacement),Je=l.createSelector(e=>e.hud.dockPlacementError),Ye=l.createSelector(e=>e.hud.dockFocusRequest),$e=l.createSelector(e=>e.hud.dockCloseRequest),Ze=l.createSelector(e=>e.hud.dockDragStartResult),et=l.createSelector(e=>e.hud.dockResizeStartResult),tt=l.createSelector(e=>({pending:e.hud.dockMachineSwitching,error:e.hud.dockMachineSwitchError})),nt=l.createSelector(e=>{const t=e.hud.dockEditorCompactRequest,n=e.dockConversation,s=n.workspaceId&&n.agentId?h(n.evidence,JSON.stringify([n.workspaceId,n.agentId])):null,o=!!n.nativeSpeech.activeId||!!s?.annotation||s?.clips.some(i=>i.status==="recording")||e.hardwareConsole.pttRecording||e.hardwareConsole.voiceTranscribing;return t&&!o&&e.hud.active&&t.conversationGeneration===n.generation&&t.authority===F(e)&&t.backendId===e.connections.windowBackendId&&t.workspaceId===e.dockConversation.workspaceId&&t.agentId===e.dockConversation.agentId?t:null});export{Ne as A,Ge as B,be as C,$e as a,Ze as b,nt as c,Ye as d,tt as e,Xe as f,Je as g,De as h,ae as i,et as j,ze as k,Ke as l,Ue as m,je as n,qe as o,Pe as p,Qe as q,We as r,Ce as s,Fe as t,Ee as u,xe as v,Le as w,Ve as x,He as y,B as z};
1
+ import{O as G,g as j,ao as Q,al as V,aw as z,p as X,a as J}from"./ClH0Gega.js";import{Iz as l,nw as h,nx as R,II as N,be as T,Y,nj as _,rb as H,rx as $,k2 as Z,rv as B,I_ as O,qS as ee,fE as q,rc as P,_ as te,bc as ne,g as se}from"./tU_ZJtMw.js";import{z as x,aC as oe,v as ie}from"./aos1n-nT.js";import{g as F}from"./DypB-Dwi.js";const re=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function ae(e){const t=e.metadata;if(t&&typeof t=="object"){if(t.type==="question_answers")return!1;if(!G(t))return!0}const n=j(e);return re.some(s=>n.startsWith(s))}const K=1440*60*1e3;function ce(e){let t=null;for(const n of e){if(ae({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(t===null||s>t)&&(t=s)}return t}const de=50,le=20;function W(e,t){return e===null||t!==null&&t>e?t:e}async function Be(e,t){let n,s=null;for(let o=0;o<le;o++){const i=await e({limit:de,nextToken:n});if(!i.ok)return null;const a=i.items;s===null&&a.length>0&&(s=a[a.length-1].id);const d=t?.newestId!=null?a.findIndex(c=>c.id===t.newestId):-1,r=ce(d>=0?a.slice(d+1):a);if(d>=0)return{latest:W(r,t?.latest??null),newestId:s};if(r!==null)return{latest:W(r,t?.latest??null),newestId:s};if(typeof i.nextToken!="string")return{latest:null,newestId:s};n=i.nextToken}return{latest:t?.latest??null,newestId:s}}function ue(e,t){return e!=null&&e<=t&&e>t-K}function ge(e,t){return e!=null&&Number.isFinite(e)&&e>0&&e<=t-K}function fe(e,t){const{workspaceId:n,agentId:s,authority:o,nativePairId:i,evidence:a}=e;if(!n||!s||!o||o!==t)return null;const d=JSON.stringify([n,s]);if(i!==d||a?.id!==d)return null;const r=a.clips.find(c=>c.status==="recording");return!r||r.discarding||!Number.isFinite(r.startedAt)||!Number.isFinite(r.pausedMs??0)||r.pausedAt!=null&&!Number.isFinite(r.pausedAt)?null:{workspaceId:n,agentId:s,clipId:r.id,startedAt:r.startedAt,pausedAt:r.pausedAt??null,pausedMs:r.pausedMs??0}}function We(e,t){return t!==void 0&&e!==t?"ignore":e?"stop":"start"}const De=l.createSelector(e=>{const t=e.dockConversation,n=t.workspaceId&&t.agentId?JSON.stringify([t.workspaceId,t.agentId]):null;return fe({workspaceId:t.workspaceId,agentId:t.agentId,authority:t.authority,nativePairId:t.nativeSpeech.pairId,evidence:n?h(t.evidence,n):null},F(e))});l.createSelector(e=>e.hud.active);l.createSelector(e=>e.hud.feed);l.createSelector(e=>e.hud.usage);l.createSelector(e=>e.hud.usageError);const Ee=l.createSelector(e=>e.hud.rateHistory),Ne=l.createSelector(e=>R(e.workspace.workspaces)),He=l.createSelector(e=>{const t=e.hud.usage?.totals;return t?N(t):0}),qe=l.createSelector(e=>e.hud.burnRatePerMin),Pe=l.createSelector(e=>e.hud.burnTrend),xe=l.createSelector(e=>{const{health:t,stats:n,lastUpdated:s,hostLocality:o}=e.daemonHealth,i=n?.hostname;return{online:t!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:o==="remote"&&i?i.split(".",1)[0]??i:null}}),Fe=l.createSelector(e=>e.hud.gridFilter);l.createSelector(e=>e.hud.attentionByWorkspaceId);const Ke=l.createSelector((e,t)=>{const n=e.hud?.questionsByAgentId?.[t];if(!n)return!1;const s=e.agentSessions?.byAgentId[t]?.metadata??{};return!x(s,n.messageId)}),Le=l.createSelector(e=>e.hud.takeoverRequestWorkspaceId);function pe(e,t){return t[String(e.id)]??e.displayStatus}const S=l.createSelector(e=>{const t=e.hud.displayStatusByWorkspaceId;return R(e.workspace.workspaces).filter(n=>n.status!==T.Archived&&n.status!==T.Retired&&n.status!==T.Deleted).map(n=>{const s=pe(n,t);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function I(e){const t=e.agentSummary;return!t||!Array.isArray(t.agents)?[]:t.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!ie(n.id))}const Ue=l.createSelector(e=>{const t=Object.fromEntries(Y.map(n=>[n,0]));for(const n of S.select(e))for(const s of I(n))t[y(e,s).bucket]+=1;return t}),Ge=l.createSelector(e=>{const t={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of C.select(e))switch(t.total+=1,n.isUnread&&(t.unread+=1),n.isWaiting&&(t.waiting+=1),n.stateKey){case"wait":case"blocked":t.attention+=1;break;case"failed":t.failed+=1;break;case"in_progress":t.progress+=1;break;case"complete":t.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":t.prOpen+=1;break;case"pr_merged":t.prMerged+=1;break;default:t.idle+=1}return t}),ke=l.createSelector(e=>{const t={};for(const n of S.select(e))for(const s of I(n))typeof s.name=="string"&&s.name.length>0&&(t[s.id]=s.name);return t});function D(e){if(!e.sinceTs)return 0;const t=Date.parse(e.sinceTs);return Number.isFinite(t)?t:0}const je=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=e.hud.questionsByAgentId,s=[];for(const o of S.select(e)){const i=String(o.id);let a=!1;for(const r of b(o,e)){const{bucket:c,attentionKind:u,hasQuestion:g}=r;if(c!=="needs-attention"&&c!=="failed"||!r.topLevel||r.isBackground||A(e,r.id))continue;const k=g?n[r.id]:void 0,f=u?_(e.agentSessions?.byAgentId[r.id])?.reason:void 0,p=k?"question":u??void 0;s.push({workspaceId:i,workspaceTitle:o.title,kind:c==="needs-attention"?"agent_waiting":"agent_failed",...c==="needs-attention"&&p?{signal:p}:{},agentName:r.name,message:k?.question??f??null,sinceTs:r.lastActivityTs}),a=!0}const d=t[i];d&&H(d.attention)&&(s.push({workspaceId:i,workspaceTitle:o.title,kind:"workspace_attention",attention:d.attention,message:null,sinceTs:d.raisedAtTs}),a=!0),L.has(w(o))&&!a&&s.push({workspaceId:i,workspaceTitle:o.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((o,i)=>D(i)-D(o))}),Qe=l.createSelector(e=>{const t=ke.select(e);return e.hud.feed.map(n=>({...n,workspaceTitle:h(e.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?t[n.agentId]??null:null)}))}),Se={total:0,completed:0,inProgress:0};function w(e){const t=$(e.displayStatus)?e.displayStatus:"not_started";return Z(t)??"not_started"}const L=new Set(["wait","blocked","failed"]);function Ae(e,t,n){if(t==="failed"){const o=n.find(a=>a.bucket==="failed"&&!A(e,a.id)),i=o?e.agentSessions?.byAgentId[o.id]?.stopReason:null;return{kind:"failed",text:typeof i=="string"&&i.length>0?i:""}}if(t!=="wait"&&t!=="blocked")return null;const s=n.filter(o=>o.topLevel&&!o.isBackground&&!A(e,o.id));for(const o of s){if(!o.hasQuestion)continue;const i=e.hud.questionsByAgentId[o.id];if(i?.question)return{kind:"question",text:i.question}}for(const o of["blocker","discussion"])for(const i of s){if(i.attentionKind!==o)continue;const a=e.agentSessions?.byAgentId[i.id],d=_(a)?.reason;if(d)return{kind:o,text:d}}return{kind:"pending",text:""}}const m=new Set(["running","needs-attention","failed"]);function E(e){const t=typeof e.lastActivity=="string"?Date.parse(e.lastActivity):NaN;return Number.isFinite(t)?t:-1/0}function he(e){const t=n=>{const s=e.get(n.id)?.bucket;return s!==void 0&&m.has(s)?0:1};return(n,s)=>{const o=n.specialist==="spec-writer",i=s.specialist==="spec-writer";if(o!==i)return o?-1:1;const a=t(n)-t(s);if(a!==0)return a;const d=E(n),r=E(s);return d!==r?r-d:n.id<s.id?-1:n.id>s.id?1:0}}function me(e,t){const n=new Set(e.map(r=>r.id)),s=new Map,o=[];for(const r of e){const c=typeof r.parentAgentId=="string"&&r.parentAgentId!==r.id&&n.has(r.parentAgentId)?r.parentAgentId:null;if(c){const u=s.get(c)??[];u.push(r),s.set(c,u)}else o.push(r)}o.sort(t);for(const r of s.values())r.sort(t);const i=[],a=new Set,d=(r,c,u)=>{if(!a.has(r.id)){a.add(r.id),i.push({info:r,depth:c,parentAgentId:u});for(const g of s.get(r.id)??[])d(g,c+1,r.id)}};for(const r of o)d(r,0,null);for(const r of e)d(r,0,null);return i}function y(e,t){const n=e.agentSessions?.byAgentId[t.id],s=n?.metadata??{},o=n?_(n)?.kind??null:null,i=n?Q.select(e,t.id)||typeof n.status=="string"&&B(n.status):B(t.status),a=n?O(typeof n.status=="string"?n.status:t.status):null,d=!!n&&a!=="failed"&&a!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),r=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let c;n?d&&!r&&n.isStreaming!==!0&&n.isProcessing!==!0?c="idle":V.select(e,t.id)?c="running":i?c="idle":c=O(typeof n.status=="string"?n.status:t.status):c=t.isResponding===!0||t.isStreaming===!0?"running":O(t.status);const u=e.hud.questionsByAgentId[t.id],g=c!=="failed"&&!!u&&!x(s,u.messageId);return{bucket:c==="failed"?"failed":o!==null||g?"needs-attention":c,attentionKind:o,hasQuestion:g,isRunning:c==="running"}}function U(e,t){const n=o=>typeof o=="string"&&o!==e.id?o:null,s=o=>({isBackground:o?.isBackground,createdByAgentId:n(o?.createdByAgentId)});return{parentAgentId:n(e.parentAgentId)??n(t?.parentAgentId),isBackground:e.isBackground??t?.isBackground,metadata:s(t?.metadata),agentMetadata:s(t?.agentMetadata)}}function A(e,t){return e.agentSessions?.byAgentId[t]?.notificationsMuted===!0}function ye(e){if(!e)return null;switch(e.kind){case"attention":return e.attention.reason??null;case"live-tool":case"last-tool":{const t=J(e.toolUse.name,e.toolUse.input||{});return t.hidden?null:[t.verb,t.subject,t.path].filter(Boolean).join(" ").trim()||null}default:{const t=e.text||"";return t?t.includes(`
2
+ `)?X(t)||null:t:null}}}function b(e,t){const n=I(e),s=new Map(n.map(i=>[i.id,y(t,i)]));return me(n,he(s)).map(({info:i,depth:a,parentAgentId:d})=>{const r=t.agentSessions?.byAgentId[i.id],c=U(i,r),{bucket:u,attentionKind:g,hasQuestion:k}=s.get(i.id)??y(t,i),f=Array.isArray(r?.waitingForAgentIds)?r.waitingForAgentIds.filter(p=>typeof p=="string"):[];return{id:i.id,name:i.name,bucket:u,lastActivityTs:i.lastActivity??null,line:ye(z.select(t,i.id)),parentAgentId:d,depth:a,treePrefix:"",topLevel:q(c)==="topLevel",isBackground:ee(c),attentionKind:g,hasQuestion:k,isWaitingForAgents:r?.isWaitingForOtherAgents===!0||f.length>0||Array.isArray(r?.waitingOnHooks)&&r.waitingOnHooks.length>0||Array.isArray(r?.waitingOnPrMonitors)&&r.waitingOnPrMonitors.length>0||Array.isArray(r?.waitingOnScriptMonitors)&&r.waitingOnScriptMonitors.length>0,waitingForAgentIds:f}})}function Ie(e){const t=new Set;for(const o of e)for(const i of o.waitingForAgentIds)t.add(i);const n=o=>m.has(o.bucket)||o.isWaitingForAgents||t.has(o.id);return e.filter((o,i)=>{if(n(o))return!0;for(let a=i+1;a<e.length&&!(e[a].depth<=o.depth);a++)if(n(e[a]))return!0;return!1}).map((o,i,a)=>{if(o.depth===0)return{...o,treePrefix:""};let d=!0;for(let r=i+1;r<a.length&&!(a[r].depth<o.depth);r++)if(a[r].depth===o.depth){d=!1;break}return{...o,treePrefix:(o.depth>=2?"│ ":"")+(d?"└─":"├─")}})}const C=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=oe.select(e);return S.select(e).map(s=>{const o=String(s.id),i=n.indexOf(o),a=t[o]?.attention??(typeof s.attention=="string"&&P(s.attention)?s.attention:null),d=b(s,e),r=w(s),c=e.tokenUsage?.byWorkspaceId[o]?.totals,u=e.workspaceTasks?.byWorkspaceId[o]?.stats,g=typeof s.statusMessage=="string"&&s.statusMessage.trim().length>0?s.statusMessage:null;return{workspaceId:o,title:s.title,repoRef:s.repositoryName?`${s.repositoryOwner?`${s.repositoryOwner}/`:""}${s.repositoryName}`:s.branch,stateKey:r,attention:a,isUnread:a===te,isWaiting:s.waiting===!0,statusMessage:g,attentionSnippet:Ae(e,r,d),prNumber:typeof s.prNumber=="number"?s.prNumber:null,keySlot:i===-1?null:i,tasks:u?{total:u.total,completed:u.completed,inProgress:u.inProgress}:Se,tokens:c?N(c):0,agents:Ie(d)}})}),M=4;function we(e,t,n){const s=e.agentSessions?.byAgentId[n.id];return!s||String(s.workspaceId)!==t||s.pendingDeleteAt||q(U(n,s))!=="topLevel"?!1:!A(e,n.id)}const be=l.createSelector(e=>{const t={},n=e.hud.attentionByWorkspaceId;for(const s of S.select(e)){const o=String(s.id),i=new Map,a=(f,p)=>{const v=i.get(f)??[];v.includes(p)||v.push(p),i.set(f,v)},r=I(s).filter(f=>we(e,o,f));for(const f of r){const p=y(e,f);p.bucket==="failed"?a("failed",f.name):p.hasQuestion?a("question",f.name):p.attentionKind==="blocker"?a("blocker",f.name):p.attentionKind==="discussion"&&a("discussion",f.name),p.isRunning&&a("running",f.name)}const c=w(s);c==="failed"&&!i.has("failed")&&i.set("failed",[]),c==="blocked"&&!i.has("blocker")&&i.set("blocker",[]),c==="wait"&&!i.has("question")&&!i.has("blocker")&&!i.has("discussion")&&i.set("needs_input",[]);const u=n[o]?.attention??(typeof s.attention=="string"&&P(s.attention)?s.attention:null);u==="review_required"&&i.set("review",[]),u==="unread"&&i.set("unread",[]),s.activity==="agent_running"&&!i.has("running")&&i.set("running",[]);const g=ne.flatMap(f=>{const p=i.get(f);return p?[{category:f,count:Math.max(1,p.length),agentNames:p}]:[]});if(g.length===0)continue;const k=g.length>M;t[o]={agentCount:r.length,categories:g,visibleCategories:k?g.slice(0,M-1):g,hiddenCategoryCount:k?g.length-(M-1):0}}return t});l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId;let n=0;for(const s of S.select(e)){let o=!1;for(const d of b(s,e))d.topLevel&&!d.isBackground&&!A(e,d.id)&&(d.bucket==="failed"||d.attentionKind!==null||d.hasQuestion)&&(n+=1,o=!0);const i=t[String(s.id)],a=i!==void 0&&H(i.attention);a&&(n+=1),L.has(w(s))&&!o&&!a&&(n+=1)}return n});function ve(e,t,n,s){const o=s.slice().sort((r,c)=>c.createdAt-r.createdAt);for(const r of o){const u=e.agentSessions?.byAgentId[r.agentId]?.metadata?.completionReport;if(typeof u=="string"&&u.trim().length>0)return u}const i=e.workspaceNotes?.byWorkspaceId[t]?.notes,a=i?h(i,n):void 0,d=a?.content||a?.contentPreview;return typeof d=="string"&&d.trim().length>0?d:null}const Ve=l.createSelector((e,t)=>{const n=C.select(e).find(c=>c.workspaceId===t);if(!n)return null;const s=h(e.workspace.workspaces,t),o=s?b(s,e):[],i=new Map(o.map(c=>[c.id,c])),a=e.taskAgentAssociations?.byWorkspaceId[t]?.byNoteId??{},d=e.workspaceTasks?.byWorkspaceId[t],r=d?R(d.tasks).filter(c=>c.status!=="cancelled").map(c=>{const u=Object.values(a[c.id]??{});return{id:c.id,title:c.title,status:c.status,agents:u.map(g=>i.get(g.agentId)).filter(g=>!!g),report:c.status==="complete"?ve(e,t,c.id,u):null,...c.specLinked!==void 0?{specLinked:c.specLinked}:{},...c.dependsOn?{dependsOn:c.dependsOn}:{},...c.conflictsWith?{conflictsWith:c.conflictsWith}:{},...c.unmetDependsOn?{unmetDependsOn:c.unmetDependsOn}:{}}}):[];return{workspaceId:t,title:n.title,repoRef:n.repoRef,statusMessage:n.statusMessage,keySlot:n.keySlot,stats:n.tasks,tasks:r,activeAgents:o.filter(c=>m.has(c.bucket)),idleAgents:o.filter(c=>!m.has(c.bucket))}}),Te=new Set(["failed","blocker","question","discussion","needs_input","review"]);function Oe(e){for(const t of e?.categories??[])switch(t.category){case"failed":return"failure";case"blocker":return"blocker";case"question":return"question";case"review":return"review"}return"none"}const ze=l.createSelector((e,t="recent")=>{const n=C.select(e),s=be.select(e),o=new Map(S.select(e).map(a=>[String(a.id),a])),i={action:[],unread:[],active:[]};for(const a of n){const d=o.get(a.workspaceId);if(!d||d.id===se||!(t==="older"?ge:ue)(e.hud.dockConversationAtByWorkspaceId[a.workspaceId],e.hud.dockRecencyNow))continue;const r=s[a.workspaceId],c=r?.categories??[],u=c.some(p=>Te.has(p.category)),g=a.isUnread,k=c.some(p=>p.category==="running"),f=u?"action":g?"unread":"active";i[f].push({workspace:d,badgeKind:Oe(r),priorityGroup:f,isUnread:g,isRunning:k,isWaiting:a.isWaiting})}return[...i.action,...i.unread,...i.active].sort((a,d)=>e.hud.dockConversationAtByWorkspaceId[String(d.workspace.id)]-e.hud.dockConversationAtByWorkspaceId[String(a.workspace.id)]||String(a.workspace.id).localeCompare(String(d.workspace.id)))}),Xe=l.createSelector(e=>e.hud.dockPlacement),Je=l.createSelector(e=>e.hud.dockPlacementError),Ye=l.createSelector(e=>e.hud.dockFocusRequest),$e=l.createSelector(e=>e.hud.dockCloseRequest),Ze=l.createSelector(e=>e.hud.dockDragStartResult),et=l.createSelector(e=>e.hud.dockResizeStartResult),tt=l.createSelector(e=>({pending:e.hud.dockMachineSwitching,error:e.hud.dockMachineSwitchError})),nt=l.createSelector(e=>{const t=e.hud.dockEditorCompactRequest,n=e.dockConversation,s=n.workspaceId&&n.agentId?h(n.evidence,JSON.stringify([n.workspaceId,n.agentId])):null,o=!!n.nativeSpeech.activeId||!!s?.annotation||s?.clips.some(i=>i.status==="recording")||e.hardwareConsole.pttRecording||e.hardwareConsole.voiceTranscribing;return t&&!o&&e.hud.active&&t.conversationGeneration===n.generation&&t.authority===F(e)&&t.backendId===e.connections.windowBackendId&&t.workspaceId===e.dockConversation.workspaceId&&t.agentId===e.dockConversation.agentId?t:null});export{Ne as A,Ge as B,be as C,$e as a,Ze as b,nt as c,Ye as d,tt as e,Xe as f,Je as g,De as h,ae as i,et as j,ze as k,Ke as l,Ue as m,je as n,qe as o,Pe as p,Qe as q,We as r,Be as s,Fe as t,Ee as u,xe as v,Le as w,Ve as x,He as y,C as z};