@intent-hq/web 2.343.1 → 2.344.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/0.BtTQsuHZ.css +1 -0
  3. package/web/app/immutable/assets/DiagramPresentation.C2GLYoBN.css +1 -0
  4. package/web/app/immutable/chunks/{9kqz7dDm.js → -IITeht6.js} +1 -1
  5. package/web/app/immutable/chunks/{Ae-1QeEg.js → 2XZtwznc.js} +4 -4
  6. package/web/app/immutable/chunks/{iGTwwZkZ.js → 4GiF-64P.js} +1 -1
  7. package/web/app/immutable/chunks/7V9sfwkG.js +1 -0
  8. package/web/app/immutable/chunks/{DnouH0RQ.js → 9cPLPH_O.js} +1 -1
  9. package/web/app/immutable/chunks/{uXJ_E75I.js → B1Hn0_Hu.js} +1 -1
  10. package/web/app/immutable/chunks/{D_n6c_yZ.js → B461Cu-8.js} +1 -1
  11. package/web/app/immutable/chunks/{DyhEd_D5.js → B4yyNCE8.js} +1 -1
  12. package/web/app/immutable/chunks/{DFkJzID4.js → B5lHtLmV.js} +3 -3
  13. package/web/app/immutable/chunks/{BWar5Ve4.js → B7_gjxTl.js} +1 -1
  14. package/web/app/immutable/chunks/{BIGnKucK.js → B9dU3-fa.js} +1 -1
  15. package/web/app/immutable/chunks/{CJ557C-o.js → BAR7XkP3.js} +3 -3
  16. package/web/app/immutable/chunks/{BSJHYrig.js → BBC8ZwBc.js} +1 -1
  17. package/web/app/immutable/chunks/{CsjdKc-0.js → BIG4edn9.js} +1 -1
  18. package/web/app/immutable/chunks/{kIGC16c9.js → BIY2S7K4.js} +1 -1
  19. package/web/app/immutable/chunks/{CgdsufvB.js → BLHhhsG2.js} +1 -1
  20. package/web/app/immutable/chunks/{BOTuR8YM.js → BM1KP-FJ.js} +1 -1
  21. package/web/app/immutable/chunks/{D58P1mNO.js → BMs7t3_m.js} +1 -1
  22. package/web/app/immutable/chunks/{D0TlsaAe.js → BOa-AN22.js} +1 -1
  23. package/web/app/immutable/chunks/{BXNFvqQr.js → BPk8wgKn.js} +3 -3
  24. package/web/app/immutable/chunks/{Dogvf-Iu.js → BQAjCr1w.js} +1 -1
  25. package/web/app/immutable/chunks/{C4omy0Us.js → BRhVB6Sv.js} +1 -1
  26. package/web/app/immutable/chunks/{BytoSt_Z.js → BSo5IXuX.js} +1 -1
  27. package/web/app/immutable/chunks/{BAyUfXYZ.js → BUUYjiKy.js} +1 -1
  28. package/web/app/immutable/chunks/{wiuyjoXz.js → BUY1W-f0.js} +1 -1
  29. package/web/app/immutable/chunks/{DbnF6Yok.js → BXbF11Gp.js} +1 -1
  30. package/web/app/immutable/chunks/{DWcJHqWX.js → BYRfWsRg.js} +1 -1
  31. package/web/app/immutable/chunks/{COjSVIHG.js → BYg2F-3D.js} +1 -1
  32. package/web/app/immutable/chunks/{BXXxFrPj.js → BZm5iyKH.js} +1 -1
  33. package/web/app/immutable/chunks/{CQLYGyEz.js → B_frQYKx.js} +1 -1
  34. package/web/app/immutable/chunks/{Bdd_Up9A.js → BdHmsKvO.js} +1 -1
  35. package/web/app/immutable/chunks/BdNiI0PS.js +344 -0
  36. package/web/app/immutable/chunks/{G8V-Z8rX.js → BdUSoBxL.js} +2 -2
  37. package/web/app/immutable/chunks/{juKvR8YJ.js → Bev5K0J8.js} +4 -4
  38. package/web/app/immutable/chunks/{CrUW7uHI.js → BgN4cuBh.js} +1 -1
  39. package/web/app/immutable/chunks/{BfIFD0ql.js → BgzyvwGo.js} +1 -1
  40. package/web/app/immutable/chunks/{atiG7mlf.js → BhzRZYY1.js} +2 -2
  41. package/web/app/immutable/chunks/{BgEFdEVh.js → BjcX_fOv.js} +1 -1
  42. package/web/app/immutable/chunks/{B70m4__L.js → BjnZ1Xf3.js} +2 -2
  43. package/web/app/immutable/chunks/{C1fHwcnr.js → Bk2hJ8Ly.js} +1 -1
  44. package/web/app/immutable/chunks/{Dp7jUSi9.js → BkUAKnVY.js} +1 -1
  45. package/web/app/immutable/chunks/{BGvipfx2.js → BmB6-2Ft.js} +1 -1
  46. package/web/app/immutable/chunks/{BSDp34Kf.js → BmT6wRR1.js} +1 -1
  47. package/web/app/immutable/chunks/{BaEEaJBP.js → BnZrTj7m.js} +1 -1
  48. package/web/app/immutable/chunks/{DohG5a1a.js → BnjfAdW_.js} +1 -1
  49. package/web/app/immutable/chunks/{I0uVE7V8.js → BnrnoFjd.js} +1 -1
  50. package/web/app/immutable/chunks/{_wUGU0fc.js → Bo4mc4_O.js} +1 -1
  51. package/web/app/immutable/chunks/{Ptn6pOdb.js → BpIeTy9w.js} +1 -1
  52. package/web/app/immutable/chunks/{DoNhrjWd.js → Br0dSiCW.js} +1 -1
  53. package/web/app/immutable/chunks/{DYLHdssA.js → BrysY2Ec.js} +1 -1
  54. package/web/app/immutable/chunks/{BayXe-e8.js → BtBKKn81.js} +1 -1
  55. package/web/app/immutable/chunks/{DMte7IXf.js → BuFMu57Q.js} +1 -1
  56. package/web/app/immutable/chunks/{BsjKNm-k.js → Bv5I7YDM.js} +1 -1
  57. package/web/app/immutable/chunks/{DM_Dhcp5.js → BvSNOyzW.js} +2 -2
  58. package/web/app/immutable/chunks/{OrocR3hK.js → BvrMTALy.js} +1 -1
  59. package/web/app/immutable/chunks/{BznnhLs6.js → BwScowY6.js} +1 -1
  60. package/web/app/immutable/chunks/{Dlo7xxGg.js → By0eqGj-.js} +1 -1
  61. package/web/app/immutable/chunks/{DuHksFog.js → C-s9_soQ.js} +1 -1
  62. package/web/app/immutable/chunks/{AzBoScJz.js → C46XexX0.js} +1 -1
  63. package/web/app/immutable/chunks/{CHylN0y-.js → C4Jo6GXP.js} +1 -1
  64. package/web/app/immutable/chunks/{Dv_vjHi2.js → C59ujSMF.js} +1 -1
  65. package/web/app/immutable/chunks/{C-3x67fn.js → C62A1TLT.js} +2 -2
  66. package/web/app/immutable/chunks/{BIjcjB3s.js → C8b2UIVX.js} +1 -1
  67. package/web/app/immutable/chunks/{BoX75a7M.js → C91dOInA.js} +1 -1
  68. package/web/app/immutable/chunks/{BIqsMOOo.js → C9gix5Ke.js} +1 -1
  69. package/web/app/immutable/chunks/{N8Bwwvnf.js → CClqWu60.js} +1 -1
  70. package/web/app/immutable/chunks/{CfJdaoIE.js → CDFRnJ8k.js} +1 -1
  71. package/web/app/immutable/chunks/{CXHfGIt6.js → CDRWYo_y.js} +1 -1
  72. package/web/app/immutable/chunks/{BmmYJ5hU.js → CGXahRhf.js} +1 -1
  73. package/web/app/immutable/chunks/{C2Rkb1O5.js → CHFUz5Rr.js} +1 -1
  74. package/web/app/immutable/chunks/{CC401ReW.js → CHukbU1Q.js} +1 -1
  75. package/web/app/immutable/chunks/{BUUgD57b.js → CI-nVEa_.js} +1 -1
  76. package/web/app/immutable/chunks/{JIxwOKX_.js → CJSrEfR4.js} +1 -1
  77. package/web/app/immutable/chunks/{DIL0XcL6.js → CMO4ot9F.js} +1 -1
  78. package/web/app/immutable/chunks/{DJ0uFT5X.js → COMJNvT3.js} +1 -1
  79. package/web/app/immutable/chunks/{BqkRycEV.js → CPYWKVyq.js} +9 -9
  80. package/web/app/immutable/chunks/{iAu7Aj29.js → CPi3hzpu.js} +1 -1
  81. package/web/app/immutable/chunks/{DJL0zbbT.js → CTXbgIPd.js} +1 -1
  82. package/web/app/immutable/chunks/{C_AhBHEv.js → CThb3iAk.js} +1 -1
  83. package/web/app/immutable/chunks/{TvbL6LZd.js → CVikHxT_.js} +3 -3
  84. package/web/app/immutable/chunks/{DtxfuyBv.js → CWIcIgSm.js} +1 -1
  85. package/web/app/immutable/chunks/{ClQaWwZN.js → Ca3YR8yw.js} +1 -1
  86. package/web/app/immutable/chunks/{CVEBue1Q.js → CadpuSEK.js} +1 -1
  87. package/web/app/immutable/chunks/{Bgfnbjb4.js → CdN2Ihv_.js} +1 -1
  88. package/web/app/immutable/chunks/{DXw-WTZY.js → CdjPYGHf.js} +1 -1
  89. package/web/app/immutable/chunks/{D-2cdK33.js → CdqlgErf.js} +1 -1
  90. package/web/app/immutable/chunks/{CB2VdHhb.js → CerTrxRJ.js} +1 -1
  91. package/web/app/immutable/chunks/{Dyc_CyAW.js → Cfd0oFGI.js} +1 -1
  92. package/web/app/immutable/chunks/{BrU4OT9R.js → CgWXj0YG.js} +2 -2
  93. package/web/app/immutable/chunks/{BjGmqNpS.js → CiTK-_b6.js} +1 -1
  94. package/web/app/immutable/chunks/{CnZcDXmL.js → CicdOSYm.js} +2 -2
  95. package/web/app/immutable/chunks/{1JAPG9y2.js → Cj2EKBCH.js} +1 -1
  96. package/web/app/immutable/chunks/{CAHBBl9S.js → CjXLe_MO.js} +1 -1
  97. package/web/app/immutable/chunks/{C-DRfJcG.js → CjZIABEV.js} +1 -1
  98. package/web/app/immutable/chunks/{Cx2Zr_EY.js → Ck9j_FHl.js} +1 -1
  99. package/web/app/immutable/chunks/{w-1KkHyd.js → ClTZNeVO.js} +1 -1
  100. package/web/app/immutable/chunks/{BHekbKzn.js → CmSDhJgU.js} +1 -1
  101. package/web/app/immutable/chunks/{DwXYzqBQ.js → Cn19T3na.js} +1 -1
  102. package/web/app/immutable/chunks/{DrI6m-rY.js → Cn3xolhp.js} +1 -1
  103. package/web/app/immutable/chunks/{BpQOBsoR.js → CnJe4S2a.js} +1 -1
  104. package/web/app/immutable/chunks/{BP2y3sRZ.js → CnhilOhJ.js} +1 -1
  105. package/web/app/immutable/chunks/{DtVlaWMd.js → CoTJDQuc.js} +1 -1
  106. package/web/app/immutable/chunks/{DwZUZouP.js → CqhKSPXA.js} +1 -1
  107. package/web/app/immutable/chunks/{35fhULrG.js → CrH1YN9o.js} +1 -1
  108. package/web/app/immutable/chunks/{WQOeAOAl.js → Cs-BSsj3.js} +1 -1
  109. package/web/app/immutable/chunks/{kae1oT68.js → CsF8OjbK.js} +1 -1
  110. package/web/app/immutable/chunks/{C76q11mm.js → CwRpBR2e.js} +1 -1
  111. package/web/app/immutable/chunks/{CIwcmzpw.js → CxLPEkg7.js} +1 -1
  112. package/web/app/immutable/chunks/{BvXEM_ru.js → Cxz3q_28.js} +1 -1
  113. package/web/app/immutable/chunks/{Ci-yONgL.js → Cyfw6OkG.js} +1 -1
  114. package/web/app/immutable/chunks/{QoUsFhvz.js → CzQCBVm9.js} +1 -1
  115. package/web/app/immutable/chunks/{51PCa81S.js → CztRrCMq.js} +1 -1
  116. package/web/app/immutable/chunks/{DFq9n5nW.js → D-J8Mlcm.js} +1 -1
  117. package/web/app/immutable/chunks/{C2NHyJHV.js → D1uFLIU4.js} +1 -1
  118. package/web/app/immutable/chunks/{m1QfmWoj.js → D37kdZVn.js} +1 -1
  119. package/web/app/immutable/chunks/{DarHRPPY.js → D4pwA7AS.js} +2 -2
  120. package/web/app/immutable/chunks/{Dnv7wJSL.js → D6-Slo8_.js} +1 -1
  121. package/web/app/immutable/chunks/{Ci9pTyYA.js → D61HjMue.js} +1 -1
  122. package/web/app/immutable/chunks/{p3CrvZe2.js → D6cqwcO2.js} +1 -1
  123. package/web/app/immutable/chunks/{BANxp4gx.js → D8DQsqlL.js} +1 -1
  124. package/web/app/immutable/chunks/{D__c4Yl1.js → D8FYgRYk.js} +1 -1
  125. package/web/app/immutable/chunks/{U7UFkZSE.js → D8YFvJ64.js} +1 -1
  126. package/web/app/immutable/chunks/{CIR7skK5.js → D9ajM8uP.js} +1 -1
  127. package/web/app/immutable/chunks/{DW4-9u0G.js → DA3kI_Ir.js} +1 -1
  128. package/web/app/immutable/chunks/{DjI8eVMr.js → DAPhb2nP.js} +45 -45
  129. package/web/app/immutable/chunks/{0sFbw5Xt.js → DAYo95RN.js} +1 -1
  130. package/web/app/immutable/chunks/{B0IMKrn3.js → DEnfRYcH.js} +1 -1
  131. package/web/app/immutable/chunks/{rPOaqvb6.js → DGySvVDu.js} +1 -1
  132. package/web/app/immutable/chunks/{DHTa3FGv.js → DHApIXYn.js} +1 -1
  133. package/web/app/immutable/chunks/{Bhmm0Csf.js → DHP1DFPI.js} +1 -1
  134. package/web/app/immutable/chunks/{Cvz-9_40.js → DIumxlqP.js} +1 -1
  135. package/web/app/immutable/chunks/{CeNWJyWT.js → DIyuJ_GU.js} +1 -1
  136. package/web/app/immutable/chunks/{BziNoOeQ.js → DLykoDqY.js} +1 -1
  137. package/web/app/immutable/chunks/{CGAWDKVf.js → DN71oh5l.js} +1 -1
  138. package/web/app/immutable/chunks/{BYONj21e.js → DNM32kqo.js} +1 -1
  139. package/web/app/immutable/chunks/{BsDPTTmM.js → DOrgOYHc.js} +2 -2
  140. package/web/app/immutable/chunks/{DEipLocY.js → DT4LiP7Y.js} +1 -1
  141. package/web/app/immutable/chunks/{CckzaWai.js → DTBnd4hM.js} +1 -1
  142. package/web/app/immutable/chunks/{BtXKsHf_.js → DTrgzOIA.js} +1 -1
  143. package/web/app/immutable/chunks/{CCv3Lx_U.js → DVH2puba.js} +1 -1
  144. package/web/app/immutable/chunks/{D2hN829h.js → DVYqzV0n.js} +1 -1
  145. package/web/app/immutable/chunks/{D7rZCWdO.js → DVsRM1tQ.js} +1 -1
  146. package/web/app/immutable/chunks/DWBLeVMU.js +1 -0
  147. package/web/app/immutable/chunks/{X4cuG_zB.js → DWiPdXwB.js} +1 -1
  148. package/web/app/immutable/chunks/D_aUnmwC.js +1 -0
  149. package/web/app/immutable/chunks/{DRp_Nj0f.js → DaaneYTG.js} +1 -1
  150. package/web/app/immutable/chunks/{DDaNHu84.js → DhDeMWX_.js} +1 -1
  151. package/web/app/immutable/chunks/{Bx3b0rPd.js → DhUtJEn_.js} +1 -1
  152. package/web/app/immutable/chunks/{CIQcnDuR.js → DhtvToBX.js} +1 -1
  153. package/web/app/immutable/chunks/{_0BFM6IU.js → DjCFWz1t.js} +2 -2
  154. package/web/app/immutable/chunks/{Bka1VG1N.js → Dl7ZwNmB.js} +1 -1
  155. package/web/app/immutable/chunks/DnzNFOP-.js +1 -0
  156. package/web/app/immutable/chunks/{HZ3QrylZ.js → Dp_2W12t.js} +1 -1
  157. package/web/app/immutable/chunks/{DZGCpHpr.js → Dq9eeDUE.js} +1 -1
  158. package/web/app/immutable/chunks/{C4Ninryq.js → DqWTOCbK.js} +1 -1
  159. package/web/app/immutable/chunks/{BpLC2eO9.js → DuIazAmY.js} +1 -1
  160. package/web/app/immutable/chunks/{DGznsmsL.js → DukOM-92.js} +1 -1
  161. package/web/app/immutable/chunks/{L-Y-TBRM.js → Dx9ju3Oy.js} +1 -1
  162. package/web/app/immutable/chunks/{DxMdBYgz.js → DxBvyCwr.js} +1 -1
  163. package/web/app/immutable/chunks/{v2YVbizz.js → DzX5UiFd.js} +1 -1
  164. package/web/app/immutable/chunks/{B5tMdivj.js → Gobu28zb.js} +2 -2
  165. package/web/app/immutable/chunks/{BIIYAsFZ.js → HIyZggkg.js} +4 -4
  166. package/web/app/immutable/chunks/{DTVdw8r4.js → HLKPZgVy.js} +1 -1
  167. package/web/app/immutable/chunks/{B422XfSt.js → KJX0Kw6L.js} +3 -3
  168. package/web/app/immutable/chunks/{D2waAEN7.js → L30ES58t.js} +1 -1
  169. package/web/app/immutable/chunks/{DbboHfqH.js → MioiZpXB.js} +1 -1
  170. package/web/app/immutable/chunks/{DA06uG-a.js → NTeezaZ2.js} +1 -1
  171. package/web/app/immutable/chunks/{DySlMfKo.js → PDh5csw9.js} +1 -1
  172. package/web/app/immutable/chunks/{wJj3WeBH.js → PXetJRrh.js} +2 -2
  173. package/web/app/immutable/chunks/{CAXcxCRW.js → RNDWAc1K.js} +6 -6
  174. package/web/app/immutable/chunks/{CDFewoTI.js → SEJ8ae0u.js} +1 -1
  175. package/web/app/immutable/chunks/{BPPRSM7X.js → SxNmK2GR.js} +3 -3
  176. package/web/app/immutable/chunks/{Bc5tOdcb.js → TKg6aZ2_.js} +1 -1
  177. package/web/app/immutable/chunks/{CBq9ao8v.js → UtZBgRek.js} +1 -1
  178. package/web/app/immutable/chunks/{CHVKhAgJ.js → Wsz69q6g.js} +1 -1
  179. package/web/app/immutable/chunks/{z5uPT3dt.js → WyTFZ_7I.js} +1 -1
  180. package/web/app/immutable/chunks/{r9qRR0z6.js → X4o7hGKf.js} +3 -3
  181. package/web/app/immutable/chunks/{CCaHJZV8.js → XvLHDIL-.js} +1 -1
  182. package/web/app/immutable/chunks/{DpjBemXH.js → _RGinDCt.js} +1 -1
  183. package/web/app/immutable/chunks/{DZiSQoCc.js → _VCQMG81.js} +1 -1
  184. package/web/app/immutable/chunks/{v2vpkl1z.js → bJswqAg7.js} +1 -1
  185. package/web/app/immutable/chunks/{ZN-mesLP.js → ei2mFcvT.js} +1 -1
  186. package/web/app/immutable/chunks/{DoWkfKYp.js → f5lTIPHi.js} +1 -1
  187. package/web/app/immutable/chunks/{CgFIU5ie.js → fCEIPyv5.js} +1 -1
  188. package/web/app/immutable/chunks/{CFK6lvfY.js → fI_J_To4.js} +1 -1
  189. package/web/app/immutable/chunks/{CVGmnzrp.js → g9G7tvrf.js} +1 -1
  190. package/web/app/immutable/chunks/{BrNDzmoP.js → gJDgmD_2.js} +1 -1
  191. package/web/app/immutable/chunks/{CJlP-cGG.js → gsD5Xe0D.js} +4 -4
  192. package/web/app/immutable/chunks/{C2uZ_VhE.js → gsElU_36.js} +1 -1
  193. package/web/app/immutable/chunks/{CZt5ZBg4.js → iwClg1fT.js} +3 -3
  194. package/web/app/immutable/chunks/{BdI_W2oB.js → ixz6jb_3.js} +1 -1
  195. package/web/app/immutable/chunks/{CepAUbyM.js → jbKFYOOg.js} +1 -1
  196. package/web/app/immutable/chunks/{DJh_DDe7.js → juQAMcx2.js} +1 -1
  197. package/web/app/immutable/chunks/kHCC2X2-.js +1 -0
  198. package/web/app/immutable/chunks/{C3Z0swGN.js → lI7T5mqw.js} +1 -1
  199. package/web/app/immutable/chunks/{BaA_OrGq.js → nLXSdbN2.js} +1 -1
  200. package/web/app/immutable/chunks/{DtbQslHZ.js → oYQw_s1S.js} +1 -1
  201. package/web/app/immutable/chunks/{nlN0b4Kg.js → ozzjQyCh.js} +1 -1
  202. package/web/app/immutable/chunks/{D8eBy-8s.js → pAYxBetQ.js} +1 -1
  203. package/web/app/immutable/chunks/{DMXJ8RT1.js → quYX3pdL.js} +1 -1
  204. package/web/app/immutable/chunks/{Cu8zpbs5.js → sEcTUaec.js} +1 -1
  205. package/web/app/immutable/chunks/{OmpkRRYb.js → tHDPdTwr.js} +1 -1
  206. package/web/app/immutable/chunks/{D7Ydchf3.js → uPiYeMwS.js} +1 -1
  207. package/web/app/immutable/chunks/{BHxqvJ6p.js → xBFqBq1j.js} +1 -1
  208. package/web/app/immutable/chunks/{BJ9asJd9.js → yl6pDKiQ.js} +1 -1
  209. package/web/app/immutable/chunks/{ClN0hrCD.js → zWI60sec.js} +1 -1
  210. package/web/app/immutable/entry/app.DfuiYuem.js +4 -0
  211. package/web/app/immutable/entry/start.DDUK339f.js +1 -0
  212. package/web/app/immutable/nodes/{0.maNxDgKk.js → 0.D56mBX7M.js} +1 -1
  213. package/web/app/immutable/nodes/{1.CrUOCJzJ.js → 1.az7hmVZE.js} +1 -1
  214. package/web/app/immutable/nodes/{10.DAHzIxDn.js → 10.ijh736ED.js} +1 -1
  215. package/web/app/immutable/nodes/{11.QGXqc7LC.js → 11.CPz1gfx7.js} +1 -1
  216. package/web/app/immutable/nodes/{12.Deg0J99J.js → 12.IWuvbIEt.js} +1 -1
  217. package/web/app/immutable/nodes/{13.DYahTbd4.js → 13.K9ySk2sQ.js} +1 -1
  218. package/web/app/immutable/nodes/{14.DqcYIHGs.js → 14.BvEshoLb.js} +1 -1
  219. package/web/app/immutable/nodes/{15.fBsD-rf2.js → 15.MdkxIvV5.js} +1 -1
  220. package/web/app/immutable/nodes/{16.BB4D0sXM.js → 16.CKCeF79S.js} +1 -1
  221. package/web/app/immutable/nodes/{17.C504DyaY.js → 17.DnoEG3fq.js} +2 -2
  222. package/web/app/immutable/nodes/2.B4faJzFv.js +13 -0
  223. package/web/app/immutable/nodes/{3.C7nQO7Qp.js → 3.CXkOfW97.js} +1 -1
  224. package/web/app/immutable/nodes/{4.DOK8Tw7p.js → 4.DAQzul95.js} +1 -1
  225. package/web/app/immutable/nodes/{5.ubLsJnyC.js → 5.DE5jTHSS.js} +1 -1
  226. package/web/app/immutable/nodes/{6.CyCRzMDW.js → 6.DhIYx_bX.js} +1 -1
  227. package/web/app/immutable/nodes/{7.Bg70Q16x.js → 7.CqVh2822.js} +1 -1
  228. package/web/app/immutable/nodes/{8.BvaAzEQm.js → 8.CtwSJYpI.js} +10 -10
  229. package/web/app/immutable/nodes/{9.DO468RMT.js → 9.RM7Dv9Cl.js} +5 -5
  230. package/web/app/version.json +1 -1
  231. package/web/index.html +16 -16
  232. package/web/app/immutable/assets/0.DZzKp2Fe.css +0 -1
  233. package/web/app/immutable/assets/DiagramPresentation.Bfi3xHm0.css +0 -1
  234. package/web/app/immutable/chunks/BvpPy--g.js +0 -1
  235. package/web/app/immutable/chunks/CO2d8RwC.js +0 -1
  236. package/web/app/immutable/chunks/CQpQeUin.js +0 -1
  237. package/web/app/immutable/chunks/CTjSHpOw.js +0 -344
  238. package/web/app/immutable/chunks/DvnMaoHD.js +0 -1
  239. package/web/app/immutable/chunks/qiTOR0DK.js +0 -1
  240. package/web/app/immutable/entry/app.F35RZd_b.js +0 -4
  241. package/web/app/immutable/entry/start.Dg01C9a0.js +0 -1
  242. package/web/app/immutable/nodes/2.ByX1NsE4.js +0 -13
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/G8V-Z8rX.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/CGWRZzdk.js","/app/immutable/chunks/BEyWfhqM.js","/app/immutable/chunks/ClN0hrCD.js","/app/immutable/chunks/BOTuR8YM.js","/app/immutable/chunks/B70m4__L.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CnZcDXmL.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/hX9Crt6i.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Bhmm0Csf.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/B422XfSt.js","/app/immutable/chunks/nmrokYzj.js","/app/immutable/chunks/B10JrSzM.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/D_n6c_yZ.js","/app/immutable/chunks/DuHksFog.js","/app/immutable/chunks/DTVdw8r4.js","/app/immutable/chunks/C2uZ_VhE.js","/app/immutable/chunks/Dlo7xxGg.js","/app/immutable/chunks/CgFIU5ie.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/w-1KkHyd.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/CIR7skK5.js","/app/immutable/chunks/BgEFdEVh.js","/app/immutable/chunks/QoUsFhvz.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/C4omy0Us.js","/app/immutable/chunks/D2hN829h.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/BHekbKzn.js","/app/immutable/chunks/DtxfuyBv.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/CIwcmzpw.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DYLHdssA.js","/app/immutable/chunks/BqkRycEV.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DRp_Nj0f.js","/app/immutable/chunks/CfJdaoIE.js","/app/immutable/chunks/BoX75a7M.js","/app/immutable/chunks/CVGmnzrp.js","/app/immutable/chunks/BpQOBsoR.js","/app/immutable/chunks/C76q11mm.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/C-3x67fn.js","/app/immutable/chunks/DwZUZouP.js","/app/immutable/chunks/CAXcxCRW.js","/app/immutable/chunks/DtVlaWMd.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/rPOaqvb6.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
2
- import{bp as v,t as Bt,br as y,a_ as D,bz as Ft,b as zt,bs as Qf,bv as bt,bt as ga,bu as el,b7 as Nl,bm as $f,ba as ep,bl as tp,bb as rp,bn as np,a$ as ap,b9 as sp,b8 as op,b2 as ip,bf as lp,bg as cp,bk as dp,be as up,bo as fp,b0 as pp,b4 as gp,bi as vp,bh as mp,b6 as hp,b5 as bp,b3 as yp,bd as _p,bc as xp,bj as wp,b1 as kp,_ as Ip}from"./CGWRZzdk.js";import{bI as Sp,bj as eo,aG as Cp,bs as Ht,aD as e,a5 as S,bS as m,bA as w,W as u,bn as jt,c9 as d,aA as _,a7 as kt,ay as je,be as tr,b$ as Tt,aC as Ha,bl as M,b_ as k,bO as x,aB as I,bo as Rs,ca as wt,bH as A,bV as ye,br as Gr,bk as to,c0 as ca,ai as es,cd as Is,aw as Rn,a as Ep,aj as Rr,c7 as Pp,c6 as Ll,c5 as Mn,bf as So,bz as Id}from"./DYhIMPy1.js";import{G as Es,I as Ap,z as Tp}from"./Bhmm0Csf.js";import{o as Rp,i as Mp,u as re,g as Un,w as Nn,l as In,j as ir,v as gt,I as ro,n as Rt,p as Tr,q as Np,s as Lp,m as Op,x as Dp}from"./B70m4__L.js";import{s as un}from"./BEyWfhqM.js";import{c as Qr}from"./nmrokYzj.js";import{I as Si,t as nr,n as Bp,i as Ol,u as Dl}from"./BOTuR8YM.js";import{b as pr}from"./BaIAhI85.js";import{i as Sd,bv as Cd,cM as Ed,dG as Fp,ds as zp,ax as Hp,cv as jp,a2 as Wp,cS as Up,dr as qs,aC as Bo,c3 as qp,I as Vp,a as Kp,a0 as Bl,cY as Gp,bT as Jp,M as Yp,dm as Xp,W as Zp,dx as Qp,af as $p,cP as eg,at as tg,g as rg,u as ng}from"./BqkRycEV.js";import{c as ag}from"./D-62MVd3.js";import{k as da,w as sg,C as Pd,c as og,R as ig}from"./CIwcmzpw.js";import{f as yt,ap as ws,ai as lg,am as Ci,bc as cg}from"./B422XfSt.js";import{ar as dg,ae as Fl,a0 as ug,aI as fg,af as pg,h as gg,ag as vg,a$ as mg,I as hg,R as bg,ax as yg,ak as _g,a1 as xg,a as zl,az as wg,s as kg,n as Ig,b5 as Sg,m as Cg,b7 as Ei,A as Hl,aj as Eg,b6 as Pg,at as Ad,T as Td,a9 as Ag,a7 as jl,W as Tg,V as Rg,ad as Mg,a8 as Ng,L as Wl,ay as Lg}from"./Ae-1QeEg.js";import{F as At,bf as Pi,bK as Og,am as Dg,aO as Bg,cL as Fg,bj as tl,bA as zg,aE as Rd,aJ as rl,c_ as Co,a9 as Ai,cn as Hg,cc as jg,ci as nl,cF as Md,br as Wg,e as Ug,b_ as Ul,c8 as qg,cl as Vg,cW as Nd,bU as ql,b6 as ai,bc as Hs,aD as Kg,ax as Ti,as as Ld,ba as Od,bB as Gg,B as Jg,bu as Yg,a4 as Dd,cg as Xg,aj as Bd,cN as Fd,cJ as Vl,aq as zd,aI as Kl,_ as Zg,cv as Qg,cU as $g,cO as ev,aH as tv,aZ as rv,bN as Hd,bl as nv,al,c4 as Gl,aw as av,a7 as sv,a5 as ov}from"./Dlo7xxGg.js";import{c as jd}from"./ChTqQfQN.js";import{g as iv}from"./D2hN829h.js";import{Ix as Nt,bL as lv,rU as Jl,su as cv,Jm as dv,Js as uv,g as Wd,Ia as Ud,nv as qd,nL as Vd,nK as Kd,no as Fo,q1 as sl,xZ as fv,v1 as yo,uk as Ri,v3 as pv,nd as Gd,IC as gv,t9 as vv,oz as Jd,re as ol,lW as Yl,a2 as Xl,qK as mv,qG as hv,qL as bv,qC as yv,qI as _v,uT as xv,Aw as Yd,AA as Xd,nM as Zl,bd as Mi,GV as wv,I6 as kv,h8 as Iv,h7 as Sv,nG as Cv,w2 as Ev,w3 as Pv,w1 as Ql,Bw as ia,cq as Av,ce as Tv,c$ as Rv,d6 as Mv,AG as Nv}from"./CnZcDXmL.js";import{bH as Lv,bQ as Ov,i as Dv,B as Bv,bT as Fv,ah as zv,aj as Hv,al as jv,a5 as Wv,a4 as Uv,an as qv,V as Vv,bk as Kv,bM as Gv,bm as Jv}from"./CVGmnzrp.js";import{n as Yv,m as Xv,v as Ni,ck as Zv,M as Qv,ci as $v,cb as em,aD as $l,cd as tm,bM as Li,aN as rm,s as nm,c as Vs,d as Oi,cf as Zd,cg as Di,bB as am,b6 as sm,bQ as om,bO as im,E as lm,ce as ec,bv as cm,y as tc,ch as dm}from"./DYLHdssA.js";import{ci as um,ck as fm,cj as pm,b1 as gm,a$ as vm,b0 as mm,a4 as hm,al as go,ak as bm,aA as rc,aI as ym,aj as _m,C as xm,i as wm,E as _o,cT as km,aW as nc,cY as Im,ag as Sm,a8 as Cm,r as Em,p as Pm,aF as Am,c$ as Tm,cK as Rm,cD as Mm,R as Nm,cu as Lm,bS as Om}from"./DJL0zbbT.js";import{i as Dm,I as Ss,c as ac}from"./D_n6c_yZ.js";import"./DuHksFog.js";import{f as sc,y as oc,M as Qd,n as Bm,m as Fm,z as $d,x as Bi,e as Ks,E as Fi,W as us,h as zm}from"./G8V-Z8rX.js";import"./QoUsFhvz.js";import{b as eu}from"./DtxfuyBv.js";import"./w-1KkHyd.js";import{z as il,P as Hm,p as jm,h as Wm,G as Um,l as qm,i as Vm,M as Km,H as Gm,t as _s,a as Jm,K as Ym,k as Xm,R as Zm}from"./DTVdw8r4.js";import{t as Gs,O as Qm,M as $m,S as Fa}from"./C2uZ_VhE.js";import{a as eh}from"./CgFIU5ie.js";import{C as zi}from"./CrUW7uHI.js";import{aQ as th,aY as rh,aB as nh,b0 as ah,aO as sh,aU as oh,a7 as Ps,b3 as ic,aK as ih,aR as lh,aX as ll,aS as cl,W as si,aq as ch,X as dh,a_ as uh,aJ as fh,aT as ph,aW as gh,b6 as vh,b4 as mh,ay as tu,p as hh,n as bh,aV as yh,_ as _h,ao as xh,aD as wh,z as kh,aC as Ih,a8 as Sh}from"./BXNFvqQr.js";import{s as Hi}from"./Bdd_Up9A.js";import{M as Ch}from"./Cvz-9_40.js";import{s as Eh,a as Ph}from"./BsieX9dN.js";import{u as dl,w as Ah,v as zo,I as Th,A as lc,e as Js,d as za,J as cc,c as Rh,f as Mh,g as dc,i as Nh,b as Lh,o as ru,j as Oh,O as Dh,x as Bh,k as nu,S as Fh,N as zh,q as uc,p as Hh,n as fc,z as jh,s as Wh}from"./D8eBy-8s.js";import{o as pc,a as gc,T as oi,b as Uh}from"./_0BFM6IU.js";import{P as qh,y as Vh,j as Kh,h as Gh,V as Jh}from"./CJ557C-o.js";import{D as Ys}from"./BrNDzmoP.js";import"./CQLYGyEz.js";import{C as ua}from"./BANxp4gx.js";import{M as Yh}from"./CTjSHpOw.js";import{g as ul}from"./ClN0hrCD.js";import{f as vc,d as Xh}from"./DwZUZouP.js";import{c as xo}from"./CQpQeUin.js";import{handleIntentLink as Zh}from"./DM_Dhcp5.js";import{s as Qh,a as $h,f as eb,d as tb,r as rb,h as nb,w as js,g as ab,W as sb,H as ob,c as ib,M as au}from"./BIIYAsFZ.js";import{e as lb,q as cb}from"./BpQOBsoR.js";import{showAssistantContent as db}from"./B5tMdivj.js";import{o as Eo,c as ub,n as fb}from"./rPOaqvb6.js";import{p as pb}from"./BaEEaJBP.js";import{m as gb}from"./-DqWFMjY.js";import{h as vo}from"./CHylN0y-.js";import{i as su}from"./CfJdaoIE.js";import{g as vb,e as mb,f as hb,h as bb}from"./BvFAWM27.js";import{T as ii}from"./BfIFD0ql.js";import"./BgEFdEVh.js";import{i as yb,r as mc}from"./DMte7IXf.js";import{a as _b}from"./BHekbKzn.js";import{a as xb}from"./BdWqymET.js";import{p as wb}from"./C4Ninryq.js";const kb="intent:inline-visual-draft";function MC(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BdUSoBxL.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/CGWRZzdk.js","/app/immutable/chunks/BEyWfhqM.js","/app/immutable/chunks/zWI60sec.js","/app/immutable/chunks/BM1KP-FJ.js","/app/immutable/chunks/BjnZ1Xf3.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CicdOSYm.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/hX9Crt6i.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/DHP1DFPI.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/KJX0Kw6L.js","/app/immutable/chunks/nmrokYzj.js","/app/immutable/chunks/B10JrSzM.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/B461Cu-8.js","/app/immutable/chunks/C-s9_soQ.js","/app/immutable/chunks/HLKPZgVy.js","/app/immutable/chunks/gsElU_36.js","/app/immutable/chunks/By0eqGj-.js","/app/immutable/chunks/fCEIPyv5.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/ClTZNeVO.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/D9ajM8uP.js","/app/immutable/chunks/BjcX_fOv.js","/app/immutable/chunks/CzQCBVm9.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/BRhVB6Sv.js","/app/immutable/chunks/DVYqzV0n.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/CmSDhJgU.js","/app/immutable/chunks/CWIcIgSm.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/CxLPEkg7.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BrysY2Ec.js","/app/immutable/chunks/CPYWKVyq.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DaaneYTG.js","/app/immutable/chunks/CDFRnJ8k.js","/app/immutable/chunks/C91dOInA.js","/app/immutable/chunks/g9G7tvrf.js","/app/immutable/chunks/CnJe4S2a.js","/app/immutable/chunks/CwRpBR2e.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/C62A1TLT.js","/app/immutable/chunks/CqhKSPXA.js","/app/immutable/chunks/RNDWAc1K.js","/app/immutable/chunks/CoTJDQuc.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DGySvVDu.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
2
+ import{bp as v,t as Bt,br as y,a_ as D,bz as Ft,b as zt,bs as Qf,bv as bt,bt as ga,bu as el,b7 as Nl,bm as $f,ba as ep,bl as tp,bb as rp,bn as np,a$ as ap,b9 as sp,b8 as op,b2 as ip,bf as lp,bg as cp,bk as dp,be as up,bo as fp,b0 as pp,b4 as gp,bi as vp,bh as mp,b6 as hp,b5 as bp,b3 as yp,bd as _p,bc as xp,bj as wp,b1 as kp,_ as Ip}from"./CGWRZzdk.js";import{bI as Sp,bj as eo,aG as Cp,bs as Ht,aD as e,a5 as S,bS as m,bA as w,W as u,bn as jt,c9 as d,aA as _,a7 as kt,ay as je,be as tr,b$ as Tt,aC as Ha,bl as M,b_ as k,bO as x,aB as I,bo as Rs,ca as wt,bH as A,bV as ye,br as Gr,bk as to,c0 as ca,ai as es,cd as Is,aw as Rn,a as Ep,aj as Rr,c7 as Pp,c6 as Ll,c5 as Mn,bf as So,bz as Id}from"./DYhIMPy1.js";import{G as Es,I as Ap,z as Tp}from"./DHP1DFPI.js";import{o as Rp,i as Mp,u as re,g as Un,w as Nn,l as In,j as ir,v as gt,I as ro,n as Rt,p as Tr,q as Np,s as Lp,m as Op,x as Dp}from"./BjnZ1Xf3.js";import{s as un}from"./BEyWfhqM.js";import{c as Qr}from"./nmrokYzj.js";import{I as Si,t as nr,n as Bp,i as Ol,u as Dl}from"./BM1KP-FJ.js";import{b as pr}from"./BaIAhI85.js";import{i as Sd,bv as Cd,cM as Ed,dG as Fp,ds as zp,ax as Hp,cv as jp,a2 as Wp,cS as Up,dr as qs,aC as Bo,c3 as qp,I as Vp,a as Kp,a0 as Bl,cY as Gp,bT as Jp,M as Yp,dm as Xp,W as Zp,dx as Qp,af as $p,cP as eg,at as tg,g as rg,u as ng}from"./CPYWKVyq.js";import{c as ag}from"./D-62MVd3.js";import{k as da,w as sg,C as Pd,c as og,R as ig}from"./CxLPEkg7.js";import{f as yt,ap as ws,ai as lg,am as Ci,bc as cg}from"./KJX0Kw6L.js";import{ar as dg,ae as Fl,a0 as ug,aI as fg,af as pg,h as gg,ag as vg,a$ as mg,I as hg,R as bg,ax as yg,ak as _g,a1 as xg,a as zl,az as wg,s as kg,n as Ig,b5 as Sg,m as Cg,b7 as Ei,A as Hl,aj as Eg,b6 as Pg,at as Ad,T as Td,a9 as Ag,a7 as jl,W as Tg,V as Rg,ad as Mg,a8 as Ng,L as Wl,ay as Lg}from"./2XZtwznc.js";import{F as At,bf as Pi,bK as Og,am as Dg,aO as Bg,cL as Fg,bj as tl,bA as zg,aE as Rd,aJ as rl,c_ as Co,a9 as Ai,cn as Hg,cc as jg,ci as nl,cF as Md,br as Wg,e as Ug,b_ as Ul,c8 as qg,cl as Vg,cW as Nd,bU as ql,b6 as ai,bc as Hs,aD as Kg,ax as Ti,as as Ld,ba as Od,bB as Gg,B as Jg,bu as Yg,a4 as Dd,cg as Xg,aj as Bd,cN as Fd,cJ as Vl,aq as zd,aI as Kl,_ as Zg,cv as Qg,cU as $g,cO as ev,aH as tv,aZ as rv,bN as Hd,bl as nv,al,c4 as Gl,aw as av,a7 as sv,a5 as ov}from"./By0eqGj-.js";import{c as jd}from"./ChTqQfQN.js";import{g as iv}from"./DVYqzV0n.js";import{Ix as Nt,bL as lv,rU as Jl,su as cv,Jm as dv,Js as uv,g as Wd,Ia as Ud,nv as qd,nL as Vd,nK as Kd,no as Fo,q1 as sl,xZ as fv,v1 as yo,uk as Ri,v3 as pv,nd as Gd,IC as gv,t9 as vv,oz as Jd,re as ol,lW as Yl,a2 as Xl,qK as mv,qG as hv,qL as bv,qC as yv,qI as _v,uT as xv,Aw as Yd,AA as Xd,nM as Zl,bd as Mi,GV as wv,I6 as kv,h8 as Iv,h7 as Sv,nG as Cv,w2 as Ev,w3 as Pv,w1 as Ql,Bw as ia,cq as Av,ce as Tv,c$ as Rv,d6 as Mv,AG as Nv}from"./CicdOSYm.js";import{bH as Lv,bQ as Ov,i as Dv,B as Bv,bT as Fv,ah as zv,aj as Hv,al as jv,a5 as Wv,a4 as Uv,an as qv,V as Vv,bk as Kv,bM as Gv,bm as Jv}from"./g9G7tvrf.js";import{n as Yv,m as Xv,v as Ni,ck as Zv,M as Qv,ci as $v,cb as em,aD as $l,cd as tm,bM as Li,aN as rm,s as nm,c as Vs,d as Oi,cf as Zd,cg as Di,bB as am,b6 as sm,bQ as om,bO as im,E as lm,ce as ec,bv as cm,y as tc,ch as dm}from"./BrysY2Ec.js";import{ci as um,ck as fm,cj as pm,b1 as gm,a$ as vm,b0 as mm,a4 as hm,al as go,ak as bm,aA as rc,aI as ym,aj as _m,C as xm,i as wm,E as _o,cT as km,aW as nc,cY as Im,ag as Sm,a8 as Cm,r as Em,p as Pm,aF as Am,c$ as Tm,cK as Rm,cD as Mm,R as Nm,cu as Lm,bS as Om}from"./CTXbgIPd.js";import{i as Dm,I as Ss,c as ac}from"./B461Cu-8.js";import"./C-s9_soQ.js";import{f as sc,y as oc,M as Qd,n as Bm,m as Fm,z as $d,x as Bi,e as Ks,E as Fi,W as us,h as zm}from"./BdUSoBxL.js";import"./CzQCBVm9.js";import{b as eu}from"./CWIcIgSm.js";import"./ClTZNeVO.js";import{z as il,P as Hm,p as jm,h as Wm,G as Um,l as qm,i as Vm,M as Km,H as Gm,t as _s,a as Jm,K as Ym,k as Xm,R as Zm}from"./HLKPZgVy.js";import{t as Gs,O as Qm,M as $m,S as Fa}from"./gsElU_36.js";import{a as eh}from"./fCEIPyv5.js";import{C as zi}from"./BgN4cuBh.js";import{aQ as th,aY as rh,aB as nh,b0 as ah,aO as sh,aU as oh,a7 as Ps,b3 as ic,aK as ih,aR as lh,aX as ll,aS as cl,W as si,aq as ch,X as dh,a_ as uh,aJ as fh,aT as ph,aW as gh,b6 as vh,b4 as mh,ay as tu,p as hh,n as bh,aV as yh,_ as _h,ao as xh,aD as wh,z as kh,aC as Ih,a8 as Sh}from"./BPk8wgKn.js";import{s as Hi}from"./BdHmsKvO.js";import{M as Ch}from"./DIumxlqP.js";import{s as Eh,a as Ph}from"./BsieX9dN.js";import{u as dl,w as Ah,v as zo,I as Th,A as lc,e as Js,d as za,J as cc,c as Rh,f as Mh,g as dc,i as Nh,b as Lh,o as ru,j as Oh,O as Dh,x as Bh,k as nu,S as Fh,N as zh,q as uc,p as Hh,n as fc,z as jh,s as Wh}from"./pAYxBetQ.js";import{o as pc,a as gc,T as oi,b as Uh}from"./DjCFWz1t.js";import{O as qh,x as Vh,i as Kh,g as Gh,T as Jh}from"./BAR7XkP3.js";import{D as Ys}from"./gJDgmD_2.js";import"./B_frQYKx.js";import{C as ua}from"./D8DQsqlL.js";import{M as Yh}from"./BdNiI0PS.js";import{g as ul}from"./zWI60sec.js";import{f as vc,d as Xh}from"./CqhKSPXA.js";import{c as xo}from"./7V9sfwkG.js";import{handleIntentLink as Zh}from"./BvSNOyzW.js";import{s as Qh,a as $h,f as eb,d as tb,r as rb,h as nb,w as js,g as ab,W as sb,H as ob,c as ib,M as au}from"./HIyZggkg.js";import{e as lb,q as cb}from"./CnJe4S2a.js";import{showAssistantContent as db}from"./Gobu28zb.js";import{o as Eo,c as ub,n as fb}from"./DGySvVDu.js";import{p as pb}from"./BnZrTj7m.js";import{m as gb}from"./-DqWFMjY.js";import{h as vo}from"./C4Jo6GXP.js";import{i as su}from"./CDFRnJ8k.js";import{g as vb,e as mb,f as hb,h as bb}from"./BvFAWM27.js";import{T as ii}from"./BgzyvwGo.js";import"./BjcX_fOv.js";import{i as yb,r as mc}from"./BuFMu57Q.js";import{a as _b}from"./CmSDhJgU.js";import{a as xb}from"./BdWqymET.js";import{p as wb}from"./DqWTOCbK.js";const kb="intent:inline-visual-draft";function MC(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
3
3
 
4
4
  `:""}${n}
5
5
 
@@ -260,7 +260,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
260
260
  `,L0=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],_i=96,sd=2e4,O0=480,pf=512,D0=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function B0(r,t,n,a,s,o){const c=new MessageChannel,l=MessagePort.prototype.postMessage.bind(c.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[c.port2]);const f=(E,z={})=>{window.parent.postMessage({channel:r,type:E,...z},"*")};let i=s?.state??null,p=null,g=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(E){try{if(!o(E))return!1;const z=JSON.parse(JSON.stringify(E));return i=z.state,p=z,g||(g=!0,requestAnimationFrame(()=>{g=!1,p&&f("snapshot",{snapshot:p}),p=null})),!0}catch{return!1}}})});let O=!1,b=-1,h=innerHeight,P=Number.NaN,R=0,B=0;const F=()=>{if(O=!1,!document.body)return;let E=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const z=innerHeight,J=E-z;if(z>h+1&&J>1&&Math.abs(J-P)<=1?R+=1:(z!==h||J<=1)&&(R=0),h=z,P=J,!B&&R>=3){B=Math.max(a,z);const Y="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(Y),f("layout",{message:Y})}B&&(E=Math.min(E,B)),E!==b&&(b=E,f("resize",{height:E}))},T=()=>{O||(O=!0,requestAnimationFrame(F))},L=E=>{if(!E||typeof E.dark!="boolean"||!E.variables)return;const z=document.documentElement;z.classList.toggle("dark",E.dark),z.style.colorScheme=E.dark?"dark":"light";const J=E.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof J=="string"&&J.length<512&&z.style.setProperty("--inline-html-root-font-size",J);for(const Y of Object.keys(t.variables)){if(Y==="--inline-html-root-font-size")continue;const Q=E.variables[Y];typeof Q=="string"&&Q.length<512&&z.style.setProperty(Y,Q)}T()};window.addEventListener("message",E=>{E.source!==window.parent||!E.data||E.data.channel!==r||E.data.type==="theme"&&L(E.data.theme)});const U=E=>{if(E.defaultPrevented||!E.isTrusted||E.ctrlKey||E.metaKey||E.shiftKey||!E.deltaY||Math.abs(E.deltaX)>Math.abs(E.deltaY))return;const z=Q=>{const Ie=getComputedStyle(Q);if(Q!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(Ie.overflowY)||/^(hidden|clip)$/.test(Ie.overflowY))return!1;const le=Q.scrollHeight-Q.clientHeight;return le>1&&(E.deltaY<0?Q.scrollTop>1:Q.scrollTop<le-1)};if(E.composedPath().some(Q=>Q instanceof Element&&z(Q))||document.scrollingElement&&z(document.scrollingElement))return;const J=E.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:E.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,Y=Math.max(-n,Math.min(n,E.deltaY*J));Number.isFinite(Y)&&(E.preventDefault(),l({deltaY:Y}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",U),window.addEventListener("wheel",U,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",E=>{E.message&&f("error",{message:E.message.slice(0,300)})}),window.addEventListener("unhandledrejection",E=>{const z=E.reason;f("error",{message:String(z instanceof Error?z.message:z).slice(0,300)})}),window.addEventListener("click",E=>{const z=E.target instanceof Element?E.target.closest("a, area"):null;if(!z)return;(z.getAttribute("href")??z.getAttribute("xlink:href"))?.startsWith("#")||E.preventDefault()},!0),window.addEventListener("submit",E=>E.preventDefault(),!0),L(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(T).observe(document.body),new MutationObserver(T).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",T),document.addEventListener("load",T,!0),document.fonts.ready.then(T),f("ready"),T()},{once:!0})}function F0(r,t,n,a,s){const o=document.createElement("iframe");o.setAttribute("sandbox","allow-scripts"),o.setAttribute("referrerpolicy","no-referrer"),o.title=n,o.style.cssText="display:block;width:100%;height:100%;border:0;";let c;const l=f=>{const i=f.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",f=>{const i=f.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(f.source===window.parent&&i.type==="theme"){o.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(f.source!==o.contentWindow||f.origin!=="null")){if(i.type==="scroll-port"&&!c&&f.ports.length===1){c=f.ports[0],c.onmessage=l;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&s(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{o.srcdoc=t,document.body.append(o)},{once:!0})}function z0(r,t,n,a,s,o,c,l){const f=document.implementation.createHTMLDocument(""),i=f.createElement("template");i.innerHTML=n,f.body.append(i.content);const p=Y=>{Y.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(Q=>Q.remove()),Y.querySelectorAll("template").forEach(Q=>p(Q.content)),Y.querySelectorAll("a, area").forEach(Q=>{for(const Ie of["href","xlink:href"])Q.getAttribute(Ie)?.startsWith("#")||Q.removeAttribute(Ie);Q.removeAttribute("target"),Q.removeAttribute("ping"),Q.removeAttribute("download")})};p(f);const g=Y=>JSON.stringify(Y).replace(/</g,"\\u003c"),O=f.createElement("meta");O.httpEquiv="Content-Security-Policy",O.content=r.csp;const b=f.createElement("meta");b.setAttribute("charset","utf-8");const h=f.createElement("style"),P=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(l)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
261
261
  font-display: swap; src: url('${l}') format('woff2'); }`:"";h.textContent=`${P}${r.styles}`;const R=f.createElement("script"),B=g([a,s,r.maxScrollDelta,r.lockHeight,t(c)?c:null]);R.textContent=`(${r.bridge})(...${B}, (${r.validate}));`,f.head.prepend(O,b,h,R);const F=`<!doctype html>${f.documentElement.outerHTML}`,T=document.implementation.createHTMLDocument(""),L=T.createElement("meta");L.httpEquiv="Content-Security-Policy",L.content=r.csp.replace("frame-src 'none'","frame-src about:");const U=T.createElement("meta");U.setAttribute("charset","utf-8");const E=T.createElement("style");E.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const z=T.createElement("script"),J=g([a,F,o,r.maxScrollDelta]);return z.textContent=`(${r.shell})(...${J}, (${r.validate}));`,T.head.prepend(L,U,E,z),`<!doctype html>${T.documentElement.outerHTML}`}const H0=()=>({csp:D0,styles:N0,maxScrollDelta:pf,lockHeight:O0,bridge:B0.toString(),shell:F0.toString(),validate:ol.toString()});function j0(r,t,n,a,s=null,o=""){return z0(H0(),ol,r,t,n,a,s,o)}function od(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(L0.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function W0(r,t,n,a,s=null){return j0(r,t,n,a,s,M0)}var U0=I('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),q0=I('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),V0=I('<p class="sr-only" role="status"> </p>'),K0=I('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),G0=I('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),J0=I('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),Y0=I('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),X0=I('<span class="type-caption ml-auto text-muted-foreground" role="status"> </span>'),Z0=I('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),Q0=I('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),$0=I('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),ek=I('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),tk=I('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),rk=I('<div class="flex flex-wrap items-center gap-1 px-4 py-2" data-inline-visual-actions=""><!> <!> <!> <!> <!></div> <!> <!>',1),nk=I('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><div class="flex min-w-0 items-center justify-end gap-1 p-1"><!> <!></div> <!> <!> <div class="relative min-w-0"><!> <!></div> <!></div>');function gf(r,t){if(new.target)return Bt({component:gf,...r});Ht(t,!0);const n=720,a=1e4;let s=y(t,"source",7),o=y(t,"isStreaming",7,!1),c=y(t,"isComplete",7,!0),l=y(t,"record",7),f=y(t,"storageStatus",7,"ready"),i=y(t,"onRecordChange",7),p=y(t,"onUseConfiguration",7),g=y(t,"onExport",7),O=y(t,"onRetry",7),b=y(t,"storageError",7),h=y(t,"exportStatus",7),P=y(t,"exportPath",7),R=y(t,"exportError",7),B,F=ye(void 0),T=ye(!1),L=ye(!1),U=ye(0),E=ye(""),z=ye(""),J=ye(!1),Y=ye(""),Q=ye(Gr(_i)),Ie=ye(n),le=ye(""),fe=ye(Yl()),ce=ye(void 0),Le,G=ye(void 0),we=ye(!1);const $=d(()=>l()??e(fe)),We=d(()=>f()!=="loading"&&(f()!=="error"||!!e($).current)),Ee=d(()=>!o()&&c()&&!!s().trim()&&e(We)),Se=d(()=>Math.min(sd,Math.max(_i,e(Q)))),ke=d(()=>o()||f()==="loading"?"loading":c()?s().trim()?e(Y)?"error":e(J)?"ready":"loading":"empty":"incomplete"),Be=d(()=>o()||f()==="loading"||e(Ee)&&!e(J)&&!e(Y));function Xe(se){const ze={...se,current:e(ce)??se.current};A(fe,ze),i()?.(ze)}function ae(){const se=e(ce);!se||e($).scenarios.length>=Xl||(Xe({...e($),scenarios:[...e($).scenarios,{id:crypto.randomUUID(),name:dp({number:Dl(e($).scenarios.length+1)}),snapshot:structuredClone(se)}]}),A(we,!0))}function Z(se,ze){const nt=ze.trim().slice(0,120);nt&&Xe({...e($),scenarios:e($).scenarios.map(dt=>dt.id===se?{...dt,name:nt}:dt)})}function Je(se){const ze=structuredClone(se);A(ce,ze),A(G,ze),Xe({...e($),current:ze}),A(U,e(U)+1)}function K(se){return typeof se=="number"?Dl(se):typeof se=="string"?se:JSON.stringify(se)}function V(){!e(F)?.contentWindow||!e(z)||e(F).contentWindow.postMessage({channel:e(z),type:"theme",theme:od(B)},"*")}function W(se){let ze=B.parentElement;for(;ze;){const nt=getComputedStyle(ze),dt=ze.scrollHeight-ze.clientHeight;if(/^(auto|scroll|overlay)$/.test(nt.overflowY)&&dt>1){if(se<0?ze.scrollTop>0:ze.scrollTop<dt){ze.dispatchEvent(new WheelEvent("wheel",{deltaY:se,bubbles:!0})),ze.scrollTop+=se;return}if(/^(contain|none)$/.test(nt.overscrollBehaviorY))return}ze=ze.parentElement}window.scrollBy({top:se,behavior:"instant"})}wt(()=>{if(!e(T))return;const se=s(),ze=e(Ee);e(U),Mn(()=>{Le!==se&&(A(fe,Yl()),A(ce,void 0),A(we,!1),A(G,void 0),Le=se),A(J,!1),A(Y,""),A(le,""),A(Q,_i,!0),A(z,crypto.randomUUID(),!0),A(E,ze?W0(se,e(z),od(B),Nl(),e(G)??e(ce)??e($).current):"",!0),A(G,void 0)})}),wt(()=>{if(!e(E)||e(J)||e(Y))return;const se=setTimeout(()=>{A(Y,$f(),!0)},a);return()=>clearTimeout(se)}),to(()=>{A(T,!0);const se=Ke=>{if(Ke.source!==e(F)?.contentWindow||Ke.origin!=="null")return;const tt=Ke.data;if(!(!tt||typeof tt!="object"||tt.channel!==e(z))){if(tt.type==="bootstrap"){e(F)?.contentWindow?.postMessage({channel:e(z),type:"initialize",documentHtml:e(E)},"*");return}if(tt.type==="resize"&&typeof tt.height=="number"&&Number.isFinite(tt.height)&&tt.height>=0)A(Q,Math.min(sd,Math.ceil(tt.height)),!0);else if(tt.type==="ready")A(J,!0),V();else if(tt.type==="error"&&typeof tt.message=="string")A(Y,tt.message.slice(0,300),!0);else if(tt.type==="layout"&&typeof tt.message=="string")A(le,tt.message.slice(0,300),!0);else if(tt.type==="snapshot"&&e(Ee)&&ol(tt.snapshot)){const st=tt.snapshot;A(ce,st),Xe({...e($),current:st})}else tt.type==="wheel"&&e(J)&&e(Ee)&&!e(L)&&!e(Be)&&typeof tt.deltaY=="number"&&Number.isFinite(tt.deltaY)&&tt.deltaY!==0&&Math.abs(tt.deltaY)<=pf&&W(tt.deltaY)}},ze=()=>{A(Ie,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},nt=new MutationObserver(V);nt.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const dt=window.matchMedia("(prefers-color-scheme: dark)");return dt.addEventListener("change",V),window.addEventListener("message",se),window.addEventListener("resize",ze),ze(),()=>{nt.disconnect(),dt.removeEventListener("change",V),window.removeEventListener("message",se),window.removeEventListener("resize",ze)}});var ie={get source(){return s()},set source(se){s(se),_()},get isStreaming(){return o()},set isStreaming(se=!1){o(se),_()},get isComplete(){return c()},set isComplete(se=!0){c(se),_()},get record(){return l()},set record(se){l(se),_()},get storageStatus(){return f()},set storageStatus(se="ready"){f(se),_()},get onRecordChange(){return i()},set onRecordChange(se){i(se),_()},get onUseConfiguration(){return p()},set onUseConfiguration(se){p(se),_()},get onExport(){return g()},set onExport(se){g(se),_()},get onRetry(){return O()},set onRetry(se){O(se),_()},get storageError(){return b()},set storageError(se){b(se),_()},get exportStatus(){return h()},set exportStatus(se){h(se),_()},get exportPath(){return P()},set exportPath(se){P(se),_()},get exportError(){return R()},set exportError(se){R(se),_()},$set:Ft,$on:(se,ze)=>zt(t,se,ze)},ge=nk(),X=S(ge),de=S(X);yt(de,{variant:"ghost",size:"sm",get active(){return e(L)},get"aria-pressed"(){return e(L)},onclick:()=>{A(L,!e(L))},children:(se,ze)=>{tr();var nt=Tt();k(dt=>x(nt,dt),[()=>e(L)?ep():tp()]),u(se,nt)},$$slots:{default:!0}});var Ne=m(de,2);{let se=d(()=>!e(Ee));yt(Ne,{variant:"ghost",size:"sm",get disabled(){return e(se)},onclick:()=>{A(U,e(U)+1)},children:(ze,nt)=>{tr();var dt=Tt();k(Ke=>x(dt,Ke),[()=>rp()]),u(ze,dt)},$$slots:{default:!0}})}w(X);var Ce=m(X,2);{var rt=se=>{var ze=q0(),nt=je(ze),dt=S(nt),Ke=M(dt,!0),tt=m(dt,2);{var st=Ot=>{yt(Ot,{variant:"ghost",size:"sm",get onclick(){return O()},children:(Dt,Yt)=>{tr();var Et=Tt();k(Wt=>x(Et,Wt),[()=>up()]),u(Dt,Et)},$$slots:{default:!0}})};D(tt,Ot=>{O()&&Ot(st)})}w(nt);var vt=m(nt,2);{var _t=Ot=>{var Dt=U0(),Yt=M(Dt,!0);k(()=>x(Yt,b())),u(Ot,Dt)};D(vt,Ot=>{b()&&Ot(_t)})}k(Ot=>x(Ke,Ot),[()=>np()]),u(se,ze)};D(Ce,se=>{f()==="error"&&se(rt)})}var me=m(Ce,2);{var Re=se=>{var ze=V0(),nt=M(ze,!0);k(dt=>x(nt,dt),[()=>o()?ap():sp()]),u(se,ze)},q=se=>{var ze=K0(),nt=M(ze,!0);k(dt=>x(nt,dt),[()=>c()?ip():op()]),u(se,ze)},Pe=se=>{var ze=G0(),nt=S(ze),dt=M(nt,!0),Ke=m(nt,2),tt=M(Ke,!0);w(ze),k(st=>{x(dt,st),x(tt,e(Y))},[()=>lp()]),u(se,ze)};D(me,se=>{e(Be)?se(Re):e(Ee)?e(Y)&&se(Pe,2):se(q,1)})}var ue=m(me,2),N=S(ue);{var H=se=>{var ze=kt(),nt=je(ze);Es(nt,()=>e(z),dt=>{var Ke=J0();let tt,st;pr(Ke,vt=>A(F,vt),()=>e(F)),k(vt=>{re(Ke,"title",vt),re(Ke,"src",`/inline-html-sandbox.html#${e(z)}`),tt=gt(Ke,1,"block w-full border-0 svelte-1kkow1d",null,tt,{"preview-hidden":e(L)||!e(J)}),re(Ke,"aria-hidden",e(L)||!e(J)),st=Nn(Ke,"",st,{height:`${e(Se)}px`})},[()=>Nl()]),u(dt,Ke)}),u(se,ze)};D(N,se=>{e(Ee)&&e(E)&&se(H)})}var pe=m(N,2);{var Qe=se=>{ua(se,{get code(){return s()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(Ie)}})},Te=se=>{var ze=Y0(),nt=S(ze),dt=S(nt);_s(dt,{class:"h-4 w-32 max-w-1/2"});var Ke=m(dt,2);_s(Ke,{class:"h-3 w-2/3"}),w(nt);var tt=m(nt,2);_s(tt,{class:"aspect-video max-h-60 w-full rounded-lg"});var st=m(tt,2),vt=S(st);_s(vt,{class:"h-3 w-16"});var _t=m(vt,2);_s(_t,{class:"h-2 min-w-0 flex-1"});var Ot=m(_t,2);_s(Ot,{class:"h-3 w-10"}),w(st),w(ze),u(se,ze)};D(pe,se=>{e(L)?se(Qe):e(Be)&&se(Te,1)})}w(ue);var Fe=m(ue,2);{var et=se=>{var ze=rk(),nt=je(ze),dt=S(nt);{var Ke=Mt=>{{let St=d(()=>!e(J)||!!e(Y));yt(Mt,{size:"sm",get disabled(){return e(St)},onclick:()=>e(ce)&&p()(e(ce)),children:(_e,ee)=>{tr();var Ue=Tt();k(at=>x(Ue,at),[()=>fp()]),u(_e,Ue)},$$slots:{default:!0}})}};D(dt,Mt=>{p()&&Mt(Ke)})}var tt=m(dt,2);{let Mt=d(()=>!e(J)||!!e(Y)||e($).scenarios.length>=Xl);yt(tt,{variant:"ghost",size:"sm",get disabled(){return e(Mt)},onclick:ae,children:(St,_e)=>{tr();var ee=Tt();k(Ue=>x(ee,Ue),[()=>cp()]),u(St,ee)},$$slots:{default:!0}})}var st=m(tt,2);{var vt=Mt=>{yt(Mt,{variant:"ghost",size:"sm",get active(){return e(we)},get"aria-expanded"(){return e(we)},onclick:()=>A(we,!e(we)),children:(St,_e)=>{tr();var ee=Tt();k(Ue=>x(ee,Ue),[()=>pp()]),u(St,ee)},$$slots:{default:!0}})};D(st,Mt=>{e($).scenarios.length&&Mt(vt)})}var _t=m(st,2);{var Ot=Mt=>{{let St=d(()=>!e(J)||h()==="saving");yt(Mt,{variant:"ghost",size:"sm",get disabled(){return e(St)},onclick:()=>g()({...e($),current:e(ce)??null}),children:(_e,ee)=>{tr();var Ue=Tt();k(at=>x(Ue,at),[()=>gp()]),u(_e,Ue)},$$slots:{default:!0}})}};D(_t,Mt=>{g()&&Mt(Ot)})}var Dt=m(_t,2);{var Yt=Mt=>{var St=X0(),_e=M(St,!0);k(ee=>x(_e,ee),[()=>f()==="saving"?vp():f()==="ready"?mp():""]),u(Mt,St)};D(Dt,Mt=>{i()&&Mt(Yt)})}w(nt);var Et=m(nt,2);{var Wt=Mt=>{var St=Z0(),_e=S(St),ee=m(_e);{var Ue=at=>{var ot=Tt();k(()=>x(ot,R())),u(at,ot)};D(ee,at=>{h()==="error"&&R()&&at(Ue)})}w(St),k(at=>x(_e,`${at??""} `),[()=>h()==="saving"?hp():h()==="saved"?bp({path:P()??""}):yp()]),u(Mt,St)};D(Et,Mt=>{h()&&Mt(Wt)})}var Qt=m(Et,2);{var lr=Mt=>{var St=tk(),_e=S(St),ee=S(_e),Ue=S(ee),at=S(Ue),ot=M(at,!0),De=m(at),oe=M(De,!0),ve=m(De);Rt(ve,17,()=>e($).scenarios,Me=>Me.id,(Me,he)=>{var He=Q0(),Ve=S(He);{let Ye=d(()=>wp());Ss(Ve,{get value(){return e(he).name},get"aria-label"(){return e(Ye)},maxlength:120,onblur:xe=>{xe.currentTarget.value.trim()||(xe.currentTarget.value=e(he).name),Z(e(he).id,xe.currentTarget.value)},onkeydown:xe=>{xe.key==="Enter"&&xe.currentTarget.blur(),xe.key==="Escape"&&(xe.currentTarget.value=e(he).name,xe.currentTarget.blur())}})}var qe=m(Ve,2),$e=S(qe);yt($e,{variant:"ghost",size:"sm",onclick:()=>Je(e(he).snapshot),children:(Ye,xe)=>{tr();var Ze=Tt();k(ft=>x(Ze,ft),[()=>_p()]),u(Ye,Ze)},$$slots:{default:!0}});var Oe=m($e,2);yt(Oe,{variant:"ghost",size:"sm",onclick:()=>Xe({...e($),scenarios:e($).scenarios.filter(Ye=>Ye.id!==e(he).id)}),children:(Ye,xe)=>{tr();var Ze=Tt();k(ft=>x(Ze,ft),[()=>xp()]),u(Ye,Ze)},$$slots:{default:!0}}),w(qe),w(He),u(Me,He)}),w(Ue),w(ee);var ne=m(ee);Rt(ne,20,()=>["inputs","results"],Tr,(Me,he)=>{const He=d(()=>he),Ve=d(()=>Array.from(new Set([...Object.keys(e(ce)[e(He)]),...e($).scenarios.flatMap(Oe=>Object.keys(Oe.snapshot[e(He)]))])));var qe=kt(),$e=je(qe);Rt($e,16,()=>e(Ve),Oe=>Oe,(Oe,Ye)=>{var xe=ek(),Ze=S(xe),ft=M(Ze,!0),ct=m(Ze);Rt(ct,17,()=>[e(ce),...e($).scenarios.map(it=>it.snapshot)],Tr,(it,Ct)=>{var mt=$0(),Lt=M(mt,!0);k(Kt=>x(Lt,Kt),[()=>Object.hasOwn(e(Ct)[e(He)],Ye)?K(e(Ct)[e(He)][Ye]):"—"]),u(it,mt)}),w(xe),k(()=>x(ft,Ye)),u(Oe,xe)}),u(Me,qe)}),w(ne),w(_e),w(St),k(Me=>{x(ot,e(ce).title),x(oe,Me)},[()=>kp()]),u(Mt,St)};D(Qt,Mt=>{e(we)&&e($).scenarios.length&&Mt(lr)})}u(se,ze)};D(Fe,se=>{e(ce)&&e(Ee)&&se(et)})}return w(ge),pr(ge,se=>B=se,()=>B),k(()=>{re(ge,"data-inline-html-status",e(ke)),re(ge,"data-inline-html-layout",e(le)?"viewport-locked":void 0),re(ge,"aria-busy",e(Be))}),u(r,ge),jt(ie)}var ak=I('<div class="w-full min-w-0"><!></div>');function sk(r,t){if(new.target)return Bt({component:sk,...r});Ht(t,!0);const n=()=>bt(e(b),"$agent$",s),a=()=>bt(e(B),"$entry$",s),[s,o]=ga();let c=y(t,"block",7),l=y(t,"role",7),f=y(t,"workspaceId",7),i=y(t,"agentId",7),p=y(t,"messageId",7),g=y(t,"contentBlockKey",7,""),O=ye(void 0);const b=d(()=>Bo(i()??"")),h=d(()=>l()==="assistant"&&f()&&i()&&p()&&c().metadata?.fenceClosed&&!c().metadata?.isStreaming&&n()&&!Jd(n())?{workspaceId:f(),agentId:i(),messageId:p(),blockKey:JSON.stringify([g(),c().metadata?.fenceStart??0]),source:c().content}:void 0),P=d(()=>!!(f()&&i()&&p()&&c().metadata?.fenceClosed&&!n())),R=d(()=>e(h)?_v(e(h)):""),B=d(()=>sh(e(R)));wt(()=>{e(h)&&Nt.dispatch(mv(e(h)))});function F(Y){!f()||!i()||n()?.retiredAt||e(O)?.dispatchEvent(new CustomEvent(kb,{bubbles:!0,detail:{workspaceId:f(),agentId:i(),snapshot:Y}}))}var T={get block(){return c()},set block(Y){c(Y),_()},get role(){return l()},set role(Y){l(Y),_()},get workspaceId(){return f()},set workspaceId(Y){f(Y),_()},get agentId(){return i()},set agentId(Y){i(Y),_()},get messageId(){return p()},set messageId(Y){p(Y),_()},get contentBlockKey(){return g()},set contentBlockKey(Y=""){g(Y),_()},$set:Ft,$on:(Y,Q)=>zt(t,Y,Q)},L=kt(),U=je(L);{var E=Y=>{var Q=ak(),Ie=S(Q);{let le=d(()=>c().metadata?.isStreaming??!1),fe=d(()=>c().metadata?.fenceClosed??!1),ce=d(()=>a()?.record),Le=d(()=>e(h)?a()?.status??"loading":e(P)?"loading":"ready"),G=d(()=>a()?.error),we=d(()=>e(h)?Xe=>Nt.dispatch(yv(e(R),Xe)):void 0),$=d(()=>f()&&i()&&n()&&!n().retiredAt?F:void 0),We=d(()=>e(h)?()=>Nt.dispatch(bv(e(R))):void 0),Ee=d(()=>e(h)?Xe=>Nt.dispatch(hv(e(R),crypto.randomUUID(),Xe)):void 0),Se=d(()=>a()?.export?.status),ke=d(()=>a()?.export?.path),Be=d(()=>a()?.export?.error);gf(Ie,{get source(){return c().content},get isStreaming(){return e(le)},get isComplete(){return e(fe)},get record(){return e(ce)},get storageStatus(){return e(Le)},get storageError(){return e(G)},get onRecordChange(){return e(we)},get onUseConfiguration(){return e($)},get onRetry(){return e(We)},get onExport(){return e(Ee)},get exportStatus(){return e(Se)},get exportPath(){return e(ke)},get exportError(){return e(Be)}})}w(Q),pr(Q,le=>A(O,le),()=>e(O)),u(Y,Q)},z=Y=>{ua(Y,{get code(){return c().content},language:"html"})};D(U,Y=>{l()==="assistant"?Y(E):Y(z,-1)})}u(r,L);var J=jt(T);return o(),J}var ok=I('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function ik(r,t){if(new.target)return Bt({component:ik,...r});Ht(t,!0);let n=y(t,"digest",7);var a={get digest(){return n()},set digest(c){n(c),_()},$set:Ft,$on:(c,l)=>zt(t,c,l)},s=ok(),o=M(s,!0);return k(()=>x(o,n())),u(r,s),jt(a)}var lk=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),ck=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),dk=I('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),uk=I('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),fk=I('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function pk(r,t){if(new.target)return Bt({component:pk,...r});Ht(t,!0);let n=y(t,"scripts",7);var a={get scripts(){return n()},set scripts(b){n(b),_()},$set:Ft,$on:(b,h)=>zt(t,b,h)},s=fk(),o=S(s),c=S(o);At(c,{get icon(){return Nd},size:"sm",class:"text-primary-ink/70"});var l=m(c,2),f=M(l,!0);w(o);var i=m(o,2);Rt(i,21,n,b=>b.name+b.command,(b,h)=>{var P=uk(),R=S(P),B=S(R),F=S(B),T=M(F,!0),L=m(F,2);{var U=Ie=>{var le=lk(),fe=M(le,!0);k(ce=>x(fe,ce),[()=>v.chat_detectedScripts_service_badge()]),u(Ie,le)},E=Ie=>{var le=ck(),fe=M(le,!0);k(ce=>x(fe,ce),[()=>v.chat_detectedScripts_command_badge()]),u(Ie,le)};D(L,Ie=>{e(h).mode==="service"?Ie(U):Ie(E,-1)})}var z=m(L,2);{var J=Ie=>{var le=dk(),fe=M(le,!0);k(()=>x(fe,e(h).category)),u(Ie,le)};D(z,Ie=>{e(h).category&&e(h).category!=="other"&&Ie(J)})}w(B);var Y=m(B,2),Q=M(Y,!0);w(R),w(P),k(()=>{x(T,e(h).name),x(Q,e(h).command)}),u(b,P)}),w(i);var p=m(i,2),g=S(p),O=M(g,!0);return w(p),w(s),k((b,h)=>{x(f,b),x(O,h)},[()=>v.chat_detectedScripts_title(),()=>n().length===1?v.chat_detectedScripts_count_one({count:nr(n().length)}):v.chat_detectedScripts_count_many({count:nr(n().length)})]),u(r,s),jt(a)}function gk(r,t){if(new.target)return Bt({component:gk,...r});Ht(t,!0);let n=y(t,"diff",7),a=y(t,"filePath",7),s=y(t,"language",7),o=y(t,"onApply",7),c=y(t,"onReject",7);function l(){o()?.(),da.success(v.chat_diffViewer_applied_toast())}function f(){c()?.(),da.info(v.chat_diffViewer_rejected_toast())}const i=d(()=>{const g=[];return o()&&g.push({label:v.chat_diffViewer_apply_label(),variant:"success",onClick:l}),c()&&g.push({label:v.chat_diffViewer_reject_label(),variant:"danger",onClick:f}),g});var p={get diff(){return n()},set diff(g){n(g),_()},get filePath(){return a()},set filePath(g){a(g),_()},get language(){return s()},set language(g){s(g),_()},get onApply(){return o()},set onApply(g){o(g),_()},get onReject(){return c()},set onReject(g){c(g),_()},$set:Ft,$on:(g,O)=>zt(t,g,O)};{let g=d(()=>a()||v.chat_diffViewer_suggestedChanges_fallback());Ys(r,{get patch(){return n()},get fileName(){return e(g)},get language(){return s()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return jt(p)}var vk=Ha('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),id=Ha("<circle></circle>"),mk=Ha('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),hk=I('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function Io(r,t){if(new.target)return Bt({component:Io,...r});Ht(t,!0);let n=y(t,"phase",7),a=y(t,"progress",7,0),s=y(t,"size",7,16),o=y(t,"class",7,""),c=d(()=>s()/2),l=d(()=>e(c)),f=d(()=>e(c)),i=d(()=>s()*.12),p=d(()=>e(c)-e(i)/2),g=d(()=>e(c)*.35),O=d(()=>2*Math.PI*e(g)),b=d(()=>Math.max(0,Math.min(1,a()))*e(O));const h={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let P=d(()=>h[n()]||"currentColor");var R={get phase(){return n()},set phase(le){n(le),_()},get progress(){return a()},set progress(le=0){a(le),_()},get size(){return s()},set size(le=16){s(le),_()},get class(){return o()},set class(le=""){o(le),_()},$set:Ft,$on:(le,fe)=>zt(t,le,fe)},B=hk(),F=S(B),T=S(F),L=m(T);{var U=le=>{},E=le=>{var fe=vk();k(()=>{re(fe,"cx",e(l)),re(fe,"cy",e(f)),re(fe,"r",e(g)*.8),re(fe,"stroke",e(P)),re(fe,"stroke-width",e(g)*1.5),re(fe,"stroke-dasharray",`${e(b)??""} ${e(O)??""}`),re(fe,"stroke-dashoffset",e(O)*.25),re(fe,"transform",`rotate(-90 ${e(l)??""} ${e(f)??""})`)}),u(le,fe)},z=le=>{var fe=id();k(()=>{re(fe,"cx",e(l)),re(fe,"cy",e(f)),re(fe,"r",e(p)*.6),re(fe,"fill",e(P))}),u(le,fe)},J=le=>{var fe=id();k(()=>{re(fe,"cx",e(l)),re(fe,"cy",e(f)),re(fe,"r",e(p)),re(fe,"fill",e(P))}),u(le,fe)};D(L,le=>{n()==="planning"?le(U):n()==="building"?le(E,1):n()==="reviewing"?le(z,2):n()==="shipped"&&le(J,3)})}w(F);var Y=m(F,2);{var Q=le=>{},Ie=le=>{var fe=mk();k(()=>re(fe,"width",s()*.5)),u(le,fe)};D(Y,le=>{n()==="reviewing"?le(Q):n()==="shipped"&&le(Ie,1)})}return w(B),k(()=>{re(F,"width",s()),re(F,"height",s()),re(F,"viewBox",`0 0 ${s()??""} ${s()??""}`),gt(F,0,ir(o())),re(T,"cx",e(l)),re(T,"cy",e(f)),re(T,"r",e(p)),re(T,"stroke",e(P)),re(T,"stroke-width",e(i))}),u(r,B),jt(R)}var ld=I('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),bk=I('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),cd=I('<span class="text-ui text-subtle truncate"> </span>'),dd=I('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),ud=I('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),yk=I('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),_k=I('<span class="text-ui text-subtle pl-4"> </span>'),xk=I('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),wk=I('<div class="text-ui text-subtle"> </div>'),kk=I("<!> <!> <!> <!>",1),Ik=I('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),Sk=I('<div class="rounded-[0.5px]"></div>');function vf(r,t){if(new.target)return Bt({component:vf,...r});Ht(t,!0);let n=y(t,"stats",7),a=y(t,"tasks",23,()=>[]),s=y(t,"maxBars",7,20),o=y(t,"barWidth",7,"1px"),c=y(t,"barHeight",7,"16px"),l=y(t,"gap",7,"1px"),f=y(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let p=d(()=>{const{completed:L,inProgress:U,notStarted:E,total:z}=n();if(z===0)return[];const J=[...Array(L).fill("completed"),...Array(U).fill("inProgress"),...Array(Math.max(0,E)).fill("notStarted")];return J.length<=s()?J:J.slice(J.length-s())}),g=d(()=>a().filter(L=>L.status==="complete")),O=d(()=>a().filter(L=>L.status==="in_progress"||L.status==="review_required")),b=d(()=>a().filter(L=>L.status!=="complete"&&L.status!=="in_progress"&&L.status!=="review_required"&&L.status!=="cancelled")),h=d(()=>a().filter(L=>L.status==="cancelled")),P=d(()=>a().length>0);var R={get stats(){return n()},set stats(L){n(L),_()},get tasks(){return a()},set tasks(L=[]){a(L),_()},get maxBars(){return s()},set maxBars(L=20){s(L),_()},get barWidth(){return o()},set barWidth(L="1px"){o(L),_()},get barHeight(){return c()},set barHeight(L="16px"){c(L),_()},get gap(){return l()},set gap(L="1px"){l(L),_()},get class(){return f()},set class(L){f(L),_()},$set:Ft,$on:(L,U)=>zt(t,L,U)},B=kt(),F=je(B);{var T=L=>{Ci(L,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:E=>{var z=Ik(),J=S(z),Y=S(J),Q=M(Y,!0),Ie=m(Y,2),le=S(Ie);{var fe=Ee=>{var Se=ld(),ke=S(Se);Nn(ke,"",{},{"background-color":"#22c55e"});var Be=m(ke);w(Se),k(()=>x(Be,` ${n().completed??""}`)),u(Ee,Se)};D(le,Ee=>{n().completed>0&&Ee(fe)})}var ce=m(le,2);{var Le=Ee=>{var Se=ld(),ke=S(Se);Nn(ke,"",{},{"background-color":"#4F7BF7"});var Be=m(ke);w(Se),k(()=>x(Be,` ${n().inProgress??""}`)),u(Ee,Se)};D(ce,Ee=>{n().inProgress>0&&Ee(Le)})}var G=m(ce,2);{var we=Ee=>{var Se=bk(),ke=m(S(Se));w(Se),k(()=>x(ke,` ${n().notStarted??""}`)),u(Ee,Se)};D(G,Ee=>{n().notStarted>0&&Ee(we)})}w(Ie),w(J);var $=m(J,2);{var We=Ee=>{var Se=kk(),ke=je(Se);Rt(ke,17,()=>e(O),Tr,(K,V)=>{var W=ud(),ie=S(W),ge=S(ie);oi(ge,{get status(){return e(V).status},size:14}),w(ie);var X=m(ie,2),de=S(X),Ne=M(de,!0),Ce=m(de,2);{var rt=me=>{var Re=dd(),q=S(Re);{let N=d(()=>e(V).agentState||"idle");Hl(q,{get agentId(){return e(V).agentId},get state(){return e(N)},size:12,get specialist(){return e(V).agentSpecialist}})}var Pe=m(q,2);{var ue=N=>{var H=cd(),pe=M(H,!0);k(()=>x(pe,e(V).agentName)),u(N,H)};D(Pe,N=>{e(V).agentName&&N(ue)})}w(Re),u(me,Re)};D(Ce,me=>{e(V).agentId&&me(rt)})}w(X),w(W),k(()=>x(Ne,e(V).title)),u(K,W)});var Be=m(ke,2);Rt(Be,17,()=>e(b),Tr,(K,V)=>{var W=ud(),ie=S(W),ge=S(ie);oi(ge,{get status(){return e(V).status},size:14}),w(ie);var X=m(ie,2),de=S(X),Ne=M(de,!0),Ce=m(de,2);{var rt=me=>{var Re=dd(),q=S(Re);{let N=d(()=>e(V).agentState||"idle");Hl(q,{get agentId(){return e(V).agentId},get state(){return e(N)},size:12,get specialist(){return e(V).agentSpecialist}})}var Pe=m(q,2);{var ue=N=>{var H=cd(),pe=M(H,!0);k(()=>x(pe,e(V).agentName)),u(N,H)};D(Pe,N=>{e(V).agentName&&N(ue)})}w(Re),u(me,Re)};D(Ce,me=>{e(V).agentId&&me(rt)})}w(X),w(W),k(()=>x(Ne,e(V).title)),u(K,W)});var Xe=m(Be,2);{var ae=K=>{var V=xk(),W=S(V);Rt(W,17,()=>e(g).slice(0,3),Tr,(X,de)=>{var Ne=yk(),Ce=S(Ne),rt=S(Ce);oi(rt,{status:"complete",size:12}),w(Ce);var me=m(Ce,2),Re=M(me,!0);w(Ne),k(()=>x(Re,e(de).title)),u(X,Ne)});var ie=m(W,2);{var ge=X=>{var de=_k(),Ne=M(de,!0);k(Ce=>x(Ne,Ce),[()=>v.workspace_taskProgressBar_moreCompleted_label({count:nr(e(g).length-3)})]),u(X,de)};D(ie,X=>{e(g).length>3&&X(ge)})}w(V),u(K,V)};D(Xe,K=>{e(g).length>0&&K(ae)})}var Z=m(Xe,2);{var Je=K=>{var V=wk(),W=M(V,!0);k(ie=>x(W,ie),[()=>v.workspace_taskProgressBar_cancelled_label({count:nr(e(h).length)})]),u(K,V)};D(Z,K=>{e(h).length>0&&K(Je)})}u(Ee,Se)};D($,Ee=>{e(P)&&Ee(We)})}w(z),k(Ee=>x(Q,Ee),[()=>v.workspace_taskProgressBar_tasksRatio_label({completed:nr(n().completed),total:nr(n().total)})]),u(E,z)},children:(E,z)=>{{let J=d(()=>In("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",f())),Y=d(()=>`gap: ${l()}`),Q=d(()=>v.workspace_taskProgressBar_tasksRatio_label({completed:nr(n().completed),total:nr(n().total)}));yt(E,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(J)},get style(){return e(Y)},get"aria-label"(){return e(Q)},"data-task-progress-trigger":!0,children:(Ie,le)=>{var fe=kt(),ce=je(fe);Rt(ce,17,()=>e(p),Tr,(Le,G)=>{var we=Sk();let $;k(()=>$=Nn(we,"",$,{width:o(),height:c(),"background-color":i[e(G)]})),u(Le,we)}),u(Ie,fe)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};D(F,L=>{n().total>0&&L(T)})}return u(r,B),jt(R)}function Il(r,t){if(new.target)return Bt({component:Il,...r});Ht(t,!0);let n=y(t,"items",7),a=y(t,"ariaLabel",7),s=y(t,"open",15,!1),o=y(t,"orientation",7,"vertical"),c=y(t,"selection",7),l=y(t,"class",7,"");const f=d(()=>Pg(n(),c(),a()));var i={get items(){return n()},set items(p){n(p),_()},get ariaLabel(){return a()},set ariaLabel(p){a(p),_()},get open(){return s()},set open(p=!1){s(p),_()},get orientation(){return o()},set orientation(p="vertical"){o(p),_()},get selection(){return c()},set selection(p){c(p),_()},get class(){return l()},set class(p=""){l(p),_()},$set:Ft,$on:(p,g)=>zt(t,p,g)};return Jm(r,{get actions(){return e(f)},align:"end",get ariaLabel(){return a()},onAction:g=>Eg(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,O)=>{let b=()=>(O?.()).props;yt(g,el(b,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return l()},get"aria-label"(){return a()},onclick:h=>{h.stopPropagation(),b().onclick?.(h)},oncontextmenu:h=>{h.preventDefault(),h.stopPropagation()},children:(h,P)=>{Ym(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),jt(i)}var Ck=I('<span class="contents"><!></span>'),Ek=I("<!> <!>",1);function mf(r,t){if(new.target)return Bt({component:mf,...r});Ht(t,!0);let n=y(t,"workspaceId",7),a=y(t,"slot",7);const s=d(()=>iv(a()));let o=ye(null);wt(()=>{e(o)&&e(o).workspaceId!==n()&&A(o,null)});function c(h){const P=Ad(h);P&&A(o,{...P,workspaceId:n()},!0)}function l(h){h.preventDefault(),h.stopPropagation();const P=h.currentTarget.getBoundingClientRect();A(o,{x:P.left,y:P.bottom+2,returnFocus:h.currentTarget,workspaceId:n()},!0)}function f(){A(o,null)}var i={get workspaceId(){return n()},set workspaceId(h){n(h),_()},get slot(){return a()},set slot(h){a(h),_()},$set:Ft,$on:(h,P)=>zt(t,h,P)},p=Ek(),g=je(p);{let h=d(()=>v.workspace_microKeyBadge_ariaLabel({number:nr(a()+1)})),P=d(()=>v.workspace_microKeyBadge_tooltip({number:nr(a()+1)})),R=d(()=>e(o)!==null);yt(g,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(h)},get title(){return e(P)},onclick:l,oncontextmenu:c,onkeydown:c,"aria-haspopup":"menu",get"aria-expanded"(){return e(R)},children:(B,F)=>{var T=Ck(),L=S(T);og(L,{get slot(){return a()},get class(){return`transition-colors ${e(s)??""}`}}),w(T),u(B,T)},$$slots:{default:!0}})}var O=m(g,2);{var b=h=>{{let P=d(()=>e(o)?.x??0),R=d(()=>e(o)?.y??0),B=d(()=>e(o)?.returnFocus),F=d(()=>v.workspace_card_assignMicroKey_label()),T=d(()=>eb(n(),f));Td(h,{get x(){return e(P)},get y(){return e(R)},get returnFocus(){return e(B)},selection:"single",get ariaLabel(){return e(F)},get items(){return e(T)},onClickOutside:f})}};D(O,h=>{e(o)&&h(b)})}return u(r,p),jt(i)}var Pk=I('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),Ak=I('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),Tk=I('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),Rk=I('<span data-workspace-card-pr-item=""><!></span>'),Mk=I('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),Nk=I('<span data-workspace-card-time=""><!></span>'),Lk=I('<span aria-hidden="true"><!></span>'),Ok=I("<div><!> <!> <!> <!></div>"),Dk=I('<div data-workspace-card-hover-surface=""><!></div>'),Bk=I('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),Fk=I('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),zk=I('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),Hk=I('<div class="text-sm font-semibold truncate"> </div>'),fd=I('<span class="truncate"> </span>'),jk=I('<span class="text-muted-foreground">·</span>'),Wk=I('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),Uk=I('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),qk=I('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),Vk=I('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),Kk=I('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),Gk=I('<div class="flex items-center text-ui"><span> </span></div>'),Jk=I('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),Yk=I('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),Xk=I('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),Zk=I('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function hf(r,t){if(new.target)return Bt({component:hf,...r});Ht(t,!0);const n=()=>bt(Be,"$prMonitors$",c),a=()=>bt(Xe,"$microConnected$",c),s=()=>bt(Z,"$hidesOwnerActions$",c),o=()=>bt(ae,"$workspaceKeySlot$",c),[c,l]=ga();let f=y(t,"workspace",7),i=y(t,"phase",7),p=y(t,"stats",7),g=y(t,"variant",7,"compact"),O=y(t,"showTime",7,!0),b=y(t,"isRunning",7,!1),h=y(t,"isUnread",7,!1),P=y(t,"isWaiting",7),R=y(t,"isPinned",7,!1),B=y(t,"streamingAgentIds",23,()=>[]),F=y(t,"hasSpec",7,!1),T=y(t,"isAgentRunning",7,!1),L=y(t,"agentDigest",7),U=y(t,"trailingLabel",7),E=y(t,"title",7),z=y(t,"repoName",7),J=y(t,"branch",7),Y=y(t,"onClick",7),Q=y(t,"onAction",7),Ie=y(t,"onTogglePin",7),le=y(t,"onMarkAsRead",7),fe=y(t,"onOpenInNewWindow",7),ce=y(t,"onHover",7),Le=y(t,"highlighted",7,!1),G=y(t,"selected",7,!1),we=y(t,"highlightId",7),$=y(t,"suppressHover",7,!1),We=y(t,"isolateHoverReveal",7,!1),Ee=y(t,"class",7),Se=y(t,"actions",7);const ke=Is("");wt(()=>{ke.set(f()?.id??"")});const Be=Gp(ke),Xe=gb(),ae=Fv(ke),Z=Jp(ke),Je=d(()=>rb(f()??{})),K=d(()=>nb(e(Je)));let V=d(()=>f()?pb.url.pathname===`/workspace/${f().id}`:!1),W=d(()=>f()?`workspace-hover-card-${f().id}`:void 0),ie=ye(!1),ge=ye(null),X=ye(null);wt(()=>{if(!e(X))return;const te=vo(e(X),{id:we()});return()=>te.destroy()});let de=ye(null),Ne=ye(null),Ce=ye(null),rt=ye(0),me=ye(0),Re=d(()=>e(rt)+(e(me)>0?e(me)+4:0));function q(){const te=e(de),pt=e(Ce);A(rt,te?Math.max(0,te.scrollWidth-te.clientWidth):0,!0),A(me,te&&pt&&pt.getClientRects().length>0?Math.max(0,te.getBoundingClientRect().right-pt.getBoundingClientRect().left):0,!0)}wt(()=>{const te=e(de),pt=e(Ne),qt=e(Ce);if(!te||!pt||(q(),typeof ResizeObserver>"u"))return;const Jt=new ResizeObserver(q);return Jt.observe(te),Jt.observe(pt),qt&&Jt.observe(qt),()=>Jt.disconnect()});let Pe=null,ue=null,N=!1,H=!1,pe=!1,Qe=!1,Te=!1,Fe=!1,et=ye(!1),se=!1,ze=null,nt=ye(null),dt=null,Ke;function tt(){Pe!==null&&(clearTimeout(Pe),Pe=null)}function st(){ue!==null&&(clearTimeout(ue),ue=null),dt?.(),dt=null}function vt(){st(),A(et,!0),A(ie,!0),!Te&&(Te=!0,js.notifyOpened())}function _t(){st(),clearTimeout(Ke),A(et,!1),A(ie,!1),H=!1,Qe=!1,Te&&(Te=!1,js.notifyClosed())}function Ot(){return N||H||pe||Qe}function Dt(){if(!e(ie)){_t();return}st(),ue=setTimeout(()=>{ue=null,Ot()||_t()},sb),dt=js.deferClose(_t)}function Yt(){H=!0,st()}function Et(){H=!1,!pe&&!Qe&&Dt()}function Wt(){Qe=!0,clearTimeout(Ke),st()}function Qt(te){const pt=te.relatedTarget instanceof Node?te.relatedTarget:null;if(pt&&ve()?.contains(pt)||(Qe=!1,pt&&e(ge)?.contains(pt)))return;if(pt){!N&&!H&&_t();return}const qt=te.target;clearTimeout(Ke),Ke=setTimeout(()=>{const Jt=document.activeElement,_r=ve()?.contains(Jt)||e(ge)?.contains(Jt);Jt&&Jt!==qt&&_r||!N&&!H&&_t()},0)}function lr(){ze!==null&&clearTimeout(ze),se=!0,ze=setTimeout(()=>{se=!1,ze=null},0)}function Mt(te){const pt=te.target,qt=ve();pt instanceof Node&&qt?.contains(pt)||te.type==="scroll"&&e(ge)&&pt instanceof Node&&!pt.contains(e(ge))||(te.type==="pointerdown"&&lr(),tt(),_t())}wt(()=>{if(e(et))return window.addEventListener("pointerdown",Mt,!0),window.addEventListener("scroll",Mt,!0),()=>{window.removeEventListener("pointerdown",Mt,!0),window.removeEventListener("scroll",Mt,!0)}});function St(te){if(te.key!=="Escape")return;const pt=te.target;pt instanceof Node&&ve()?.contains(pt)||(te.preventDefault(),te.stopPropagation(),Fe=pe,tt(),_t())}wt(()=>{if(e(ie))return window.addEventListener("keydown",St,!0),()=>window.removeEventListener("keydown",St,!0)});const _e=d(()=>f()?Xp.select(Nt.state,f().id):null),ee=d(()=>e(_e)?e(_e):f()?.activePullRequest?f().activePullRequest:!f()?.prStatus||f().prNumber==null?null:{id:`legacy-pr-${f().prNumber}`,number:f().prNumber,url:f().prUrl??"",title:v.workspace_hoverCard_pullRequest_label(),status:f().prStatus,createdAt:f().updatedAt,updatedAt:f().updatedAt}),Ue=d(()=>Yp(f())),at=d(()=>{if(!f()||e(Ue))return[];const te=f(),pt=te.repositoryOwner&&te.repositoryName?`${te.repositoryOwner}/${te.repositoryName}`:void 0;return Ag({workspacePRs:te.pullRequests,activePR:e(ee),monitors:n(),workspaceRepo:pt,buildPrUrl:(qt,Jt)=>Pm(qt,te.repositoryOwner,te.repositoryName,Jt),getDisplayTitle:qt=>qt.title})}),ot=d(()=>e(at)[0]);function De(te){const pt=te.resource?.repository.provider==="gitlab"?`${te.repo} !${te.number}`:te.repo?v.workspace_card_prBadge_repoLine_tooltip({repo:te.repo,number:te.number}):v.workspace_card_prBadge_label({number:` #${te.number}`});return[Zp(pt,te),te.title,te.details].filter(Boolean).join(`
262
262
  `)}function oe(te){te.key==="Enter"&&Y()?.(te)}function ve(){return e(W)?document.getElementById(e(W)):null}function ne(){return Array.from(ve()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function Me(){const te=e(ge)?.querySelector("[data-workspace-card-trigger]"),pt=ve();if(!te||!pt)return null;const qt=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(_r=>_r.tabIndex>=0&&!pt.contains(_r)),Jt=qt.indexOf(te);return Jt>=0?qt[Jt+1]:null}function he(te){Fe=!!e(ge)?.contains(te),_t(),te.focus({preventScroll:!0})}function He(){const te=e(ge)?.querySelector("[data-workspace-card-trigger]");te&&he(te)}async function Ve(te){if(te.key==="Escape"&&e(ie)){te.preventDefault(),te.stopPropagation(),_t();return}te.key!=="ArrowDown"||$()||!f()||(te.preventDefault(),te.stopPropagation(),A(et,!0),A(ie,!0),await ca(),ne()[0]?.focus({preventScroll:!0}))}function qe(te){const pt=ne(),qt=te.key==="Tab"&&te.shiftKey&&te.currentTarget===pt[0],_r=te.key==="Tab"&&!te.shiftKey&&te.currentTarget===pt.at(-1)?Me():null;te.key!=="Escape"&&!qt&&!_r||(te.preventDefault(),te.stopPropagation(),_r?he(_r):He())}function $e(){N=!0,st(),js.settleDeferredCloses(),q(),ce()?.(),f()&&!$()&&!pe&&(tt(),A(et,!0),Pe=setTimeout(()=>{Pe=null,vt()},js.currentOpenDelay))}function Oe(){N=!1,tt(),!pe&&!Qe&&Dt()}function Ye(){pe=!0,tt(),st(),!Fe&&(se||f()&&!$()&&(A(et,!0),A(ie,!0)))}function xe(te){const pt=te.relatedTarget instanceof Node?te.relatedTarget:null;pt&&e(ge)?.contains(pt)||(Fe=!1,pe=!1,!(pt&&ve()?.contains(pt))&&!N&&!H&&_t())}wt(()=>{$()&&(tt(),st(),_t())});let Ze=ye(null),ft=ye(!1),ct;wt(()=>{const te=f()?.id;ct!==te&&(ct=te,A(ft,!1)),e(Ze)&&e(Ze).workspaceId!==f()?.id&&Ct()});function it(te){if(!f())return;const pt=Ad(te);if(pt){if(A(ft,!1),mt().length===0){A(Ze,null);return}A(Ze,{...pt,returnFocus:te.target instanceof HTMLElement?te.target.closest("button")??e(ge)?.querySelector("button")??null:null,workspaceId:f().id},!0)}}function Ct(){A(Ze,null),A(ft,!1)}wt(()=>{e(ft)&&A(Ze,null)}),eo(()=>{tt(),st(),ze!==null&&(clearTimeout(ze),ze=null),_t()});function mt(){if(!f())return[];const te=[];return fe()&&te.push({id:"open-new-window",label:v.workspace_card_openNewWindow_label(),icon:Dd,onClick:()=>{fe()?.(),Ct()}}),te.push(...ab(f().id,{connected:a(),onClose:Ct})),s()||(e(Ue)||te.push({id:"transfer",label:v.workspace_card_transfer_label(),icon:Xg,onClick:()=>{Nt.dispatch(xv({workspaceId:f().id,workspaceTitle:f().title})),Ct()}}),te.push({id:"archive",label:v.workspace_card_archive_label(),icon:Bd,onClick:()=>{Nt.dispatch(Yd(f().id)),Ct()}}),te.push({id:"delete",label:v.workspace_card_deleteSpace_label(),icon:Fd,destructive:!0,onClick:()=>{Nt.dispatch(Xd(f().id)),Ct()}})),te}let Lt=d(()=>T()&&L()?L():i()?.subtitle??""),Kt=d(()=>p()&&p().tasks.total>0?p().tasks.completed/p().tasks.total:0),Zt=d(()=>!!p()&&(p().tasks.total>0||p().files.changed>0||p().commits.total>0||p().pr.hasOpen||p().pr.hasMerged)),cr=d(()=>e(Ue)?void 0:J()),Hr=d(()=>!p()||e(Ue)?"":p().pr.hasMerged?v.workspace_card_prMerged_label({number:p().pr.number??""}):p().pr.hasOpen?v.workspace_card_prOpen_label({number:p().pr.number?`#${p().pr.number}`:""}):""),ln=d(()=>i()?.phase==="planning"?T()?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:F()||(p()?.tasks.total??0)>0?{primary:{label:v.workspace_card_approveStart_label(),action:"approve"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:v.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:v.workspace_card_archive_label(),action:"archive"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}});const $r={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var mr={get workspace(){return f()},set workspace(te){f(te),_()},get phase(){return i()},set phase(te){i(te),_()},get stats(){return p()},set stats(te){p(te),_()},get variant(){return g()},set variant(te="compact"){g(te),_()},get showTime(){return O()},set showTime(te=!0){O(te),_()},get isRunning(){return b()},set isRunning(te=!1){b(te),_()},get isUnread(){return h()},set isUnread(te=!1){h(te),_()},get isWaiting(){return P()},set isWaiting(te){P(te),_()},get isPinned(){return R()},set isPinned(te=!1){R(te),_()},get streamingAgentIds(){return B()},set streamingAgentIds(te=[]){B(te),_()},get hasSpec(){return F()},set hasSpec(te=!1){F(te),_()},get isAgentRunning(){return T()},set isAgentRunning(te=!1){T(te),_()},get agentDigest(){return L()},set agentDigest(te){L(te),_()},get trailingLabel(){return U()},set trailingLabel(te){U(te),_()},get title(){return E()},set title(te){E(te),_()},get repoName(){return z()},set repoName(te){z(te),_()},get branch(){return J()},set branch(te){J(te),_()},get onClick(){return Y()},set onClick(te){Y(te),_()},get onAction(){return Q()},set onAction(te){Q(te),_()},get onTogglePin(){return Ie()},set onTogglePin(te){Ie(te),_()},get onMarkAsRead(){return le()},set onMarkAsRead(te){le(te),_()},get onOpenInNewWindow(){return fe()},set onOpenInNewWindow(te){fe(te),_()},get onHover(){return ce()},set onHover(te){ce(te),_()},get highlighted(){return Le()},set highlighted(te=!1){Le(te),_()},get selected(){return G()},set selected(te=!1){G(te),_()},get highlightId(){return we()},set highlightId(te){we(te),_()},get suppressHover(){return $()},set suppressHover(te=!1){$(te),_()},get isolateHoverReveal(){return We()},set isolateHoverReveal(te=!1){We(te),_()},get class(){return Ee()},set class(te){Ee(te),_()},get actions(){return Se()},set actions(te){Se(te),_()},$set:Ft,$on:(te,pt)=>zt(t,te,pt)},qn=kt(),ea=je(qn);{var Vn=te=>{var pt=Bk(),qt=je(pt);let Jt;var _r=S(qt);{let ht=d(()=>f().title||v.workspace_links_untitled_label()),Pt=d(()=>`workspace-status-state-${f().id}${R()?` workspace-pinned-state-${f().id}`:""}${e(ie)?` ${e(W)}`:""}`),ar=d(()=>e(V)?"page":void 0);yt(_r,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(ht)},get"aria-describedby"(){return e(Pt)},get"aria-current"(){return e(ar)},"data-workspace-card-trigger":!0,onkeydown:Ve,onclick:hr=>{hr.stopPropagation(),Y()?.(hr)}})}var Kn=m(_r,2),Jr=S(Kn);{var Gn=ht=>{var Pt=Pk(),ar=S(Pt);{var hr=wr=>{mf(wr,{get workspaceId(){return f().id},get slot(){return o()}})};D(ar,wr=>{o()!==null&&wr(hr)})}w(Pt),u(ht,Pt)};D(Jr,ht=>{a()&&ht(Gn)})}var fn=m(Jr,2);Ci(fn,{get content(){return e(K).tooltip},side:"bottom",sideOffset:4,children:(ht,Pt)=>{tb(ht,{get status(){return e(Je)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var Jn=m(fn,2),ta=M(Jn,!0);w(Kn);var jr=m(Kn,2),en=S(jr),rr=S(en),Wr=S(rr),pn=M(Wr,!0);pr(Wr,ht=>A(Ne,ht),()=>e(Ne)),w(rr),pr(rr,ht=>A(de,ht),()=>e(de));var xr=m(rr,2);{var Or=ht=>{var Pt=Ak(),ar=je(Pt),hr=S(ar);At(hr,{get icon(){return Vl},size:"xs"}),w(ar);var wr=m(ar,2),Dr=M(wr,!0);k(yn=>{gt(ar,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
263
- ${Ie()?Le()?"opacity-0":$()?"":We()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),re(wr,"id",`workspace-pinned-state-${f().id??""}`),x(Dr,yn)},[()=>v.layout_activeCard_pinned_header()]),u(ht,Pt)};D(xr,ht=>{R()&&ht(Or)})}w(en);var gn=m(en,2);{var va=ht=>{var Pt=Tk(),ar=M(Pt,!0);k(()=>x(ar,U())),u(ht,Pt)};D(gn,ht=>{U()&&ht(va)})}var tn=m(gn,2);{var Yr=ht=>{const Pt=d(()=>e(ot));var ar=Mk(),hr=S(ar);{let wr=d(()=>De(e(Pt)));Ci(hr,{get content(){return e(wr)},side:"bottom",sideOffset:4,children:(Dr,yn)=>{var ra=kt(),Dn=je(ra);{var Cr=cn=>{{let Er=d(()=>De(e(Pt)));yt(cn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Pt).foregroundClass??""}`},get"aria-label"(){return e(Er)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Pt).identity},get"data-pr-status"(){return e(Pt).status},onclick:nn=>{nn.stopPropagation();const Ta=f().id;Ip(async()=>{const{handleLink:Yn}=await import("./G8V-Z8rX.js").then(vn=>vn.H);return{handleLink:Yn}},__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]),import.meta.url).then(({handleLink:Yn})=>Yn(e(Pt).url,{workspaceId:Ta,event:nn}))},children:(nn,Ta)=>{At(nn,{get icon(){return e(Pt).statusIcon},size:14})},$$slots:{default:!0}})}},Cn=cn=>{var Er=Rk(),nn=S(Er);At(nn,{get icon(){return e(Pt).statusIcon},size:14}),w(Er),k(Ta=>{gt(Er,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Pt).foregroundClass??""}`,"svelte-1ct56pd"),re(Er,"aria-label",Ta),re(Er,"data-pr-identity",e(Pt).identity),re(Er,"data-pr-status",e(Pt).status)},[()=>De(e(Pt))]),u(cn,Er)};D(Dn,cn=>{e(Pt).url?cn(Cr):cn(Cn,-1)})}u(Dr,ra)},$$slots:{default:!0}})}w(ar),k(wr=>re(ar,"aria-label",wr),[()=>e(Pt).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),u(ht,ar)};D(tn,ht=>{e(ot)&&ht(Yr)})}var Mr=m(tn,2);{var xa=ht=>{var Pt=Nk(),ar=S(Pt);{var hr=Dr=>{{let yn=d(()=>Zl(f()));ig(Dr,{get date(){return e(yn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},wr=d(()=>Zl(f())>0);D(ar,Dr=>{e(wr)&&Dr(hr)})}w(Pt),k(()=>gt(Pt,1,`wc-secondary shrink-0 ${Se()||Ie()||h()&&le()?Le()?"opacity-0":$()?"":We()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),u(ht,Pt)};D(Mr,ht=>{O()&&ht(xa)})}w(jr);var rs=m(jr,2);{var ns=ht=>{var Pt=Ok(),ar=S(Pt);{var hr=Cr=>{{let Cn=d(()=>R()?"text-primary-ink":"text-muted-foreground"),cn=d(()=>R()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),Er=d(()=>R()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());yt(Cr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
263
+ ${Ie()?Le()?"opacity-0":$()?"":We()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),re(wr,"id",`workspace-pinned-state-${f().id??""}`),x(Dr,yn)},[()=>v.layout_activeCard_pinned_header()]),u(ht,Pt)};D(xr,ht=>{R()&&ht(Or)})}w(en);var gn=m(en,2);{var va=ht=>{var Pt=Tk(),ar=M(Pt,!0);k(()=>x(ar,U())),u(ht,Pt)};D(gn,ht=>{U()&&ht(va)})}var tn=m(gn,2);{var Yr=ht=>{const Pt=d(()=>e(ot));var ar=Mk(),hr=S(ar);{let wr=d(()=>De(e(Pt)));Ci(hr,{get content(){return e(wr)},side:"bottom",sideOffset:4,children:(Dr,yn)=>{var ra=kt(),Dn=je(ra);{var Cr=cn=>{{let Er=d(()=>De(e(Pt)));yt(cn,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Pt).foregroundClass??""}`},get"aria-label"(){return e(Er)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Pt).identity},get"data-pr-status"(){return e(Pt).status},onclick:nn=>{nn.stopPropagation();const Ta=f().id;Ip(async()=>{const{handleLink:Yn}=await import("./BdUSoBxL.js").then(vn=>vn.H);return{handleLink:Yn}},__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]),import.meta.url).then(({handleLink:Yn})=>Yn(e(Pt).url,{workspaceId:Ta,event:nn}))},children:(nn,Ta)=>{At(nn,{get icon(){return e(Pt).statusIcon},size:14})},$$slots:{default:!0}})}},Cn=cn=>{var Er=Rk(),nn=S(Er);At(nn,{get icon(){return e(Pt).statusIcon},size:14}),w(Er),k(Ta=>{gt(Er,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Pt).foregroundClass??""}`,"svelte-1ct56pd"),re(Er,"aria-label",Ta),re(Er,"data-pr-identity",e(Pt).identity),re(Er,"data-pr-status",e(Pt).status)},[()=>De(e(Pt))]),u(cn,Er)};D(Dn,cn=>{e(Pt).url?cn(Cr):cn(Cn,-1)})}u(Dr,ra)},$$slots:{default:!0}})}w(ar),k(wr=>re(ar,"aria-label",wr),[()=>e(Pt).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),u(ht,ar)};D(tn,ht=>{e(ot)&&ht(Yr)})}var Mr=m(tn,2);{var xa=ht=>{var Pt=Nk(),ar=S(Pt);{var hr=Dr=>{{let yn=d(()=>Zl(f()));ig(Dr,{get date(){return e(yn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},wr=d(()=>Zl(f())>0);D(ar,Dr=>{e(wr)&&Dr(hr)})}w(Pt),k(()=>gt(Pt,1,`wc-secondary shrink-0 ${Se()||Ie()||h()&&le()?Le()?"opacity-0":$()?"":We()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),u(ht,Pt)};D(Mr,ht=>{O()&&ht(xa)})}w(jr);var rs=m(jr,2);{var ns=ht=>{var Pt=Ok(),ar=S(Pt);{var hr=Cr=>{{let Cn=d(()=>R()?"text-primary-ink":"text-muted-foreground"),cn=d(()=>R()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),Er=d(()=>R()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());yt(Cr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
264
264
  ${e(Cn)??""}`},onclick:nn=>{nn.stopPropagation(),Ie()?.(nn)},get"aria-label"(){return e(cn)},get title(){return e(Er)},children:(nn,Ta)=>{var Yn=Lk(),vn=S(Yn);At(vn,{get icon(){return Vl},size:"xs"}),w(Yn),u(nn,Yn)},$$slots:{default:!0}})}};D(ar,Cr=>{Ie()&&Cr(hr)})}var wr=m(ar,2);{var Dr=Cr=>{{let Cn=d(()=>v.workspace_card_markAsRead_label()),cn=d(()=>v.workspace_card_markAsRead_label());yt(Cr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:Er=>{Er.stopPropagation(),le()?.(Er)},get"aria-label"(){return e(Cn)},get title(){return e(cn)},children:(Er,nn)=>{At(Er,{get icon(){return zd},size:"xs"})},$$slots:{default:!0}})}};D(wr,Cr=>{h()&&le()&&Cr(Dr)})}var yn=m(wr,2);un(yn,()=>Se()??So);var ra=m(yn,2);{var Dn=Cr=>{{let Cn=d(mt),cn=d(()=>v.workspace_progressCard_actions_ariaLabel());Il(Cr,{get items(){return e(Cn)},get ariaLabel(){return e(cn)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(ft)},set open(Er){A(ft,Er,!0)}})}};D(ra,Cr=>{fe()&&Cr(Dn)})}w(Pt),pr(Pt,Cr=>A(Ce,Cr),()=>e(Ce)),k(()=>gt(Pt,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
265
265
  ${We()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
266
266
  ${Le()?"opacity-100":$()?"opacity-0":We()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),u(ht,Pt)};D(rs,ht=>{(Se()||fe()||Ie()||h()&&le())&&ht(ns)})}w(qt),pr(qt,ht=>A(ge,ht),()=>e(ge)),Un(qt,(ht,Pt)=>vo?.(ht,Pt),()=>({id:we()}));var Xr=m(qt,2);{var rn=ht=>{ob(ht,{get id(){return e(W)},get anchor(){return`--workspace-list-${f().id??""}`},position:"right",get anchorElement(){return e(ge)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:Yt,onmouseleave:Et,onfocusin:Wt,onfocusout:Qt,children:(Pt,ar)=>{var hr=Dk(),wr=S(hr);ib(wr,{get workspace(){return f()},get activeAgentIds(){return B()},onkeydown:qe}),w(hr),pr(hr,Dr=>A(nt,Dr),()=>e(nt)),Rn("pointerenter",hr,Yt),Rn("pointerleave",hr,Et),Rr("focusin",hr,Wt),Rr("focusout",hr,Qt),u(Pt,hr)},$$slots:{default:!0}})};D(Xr,ht=>{e(ie)&&!$()&&ht(rn)})}var On=m(Xr,2);{var kr=ht=>{const Pt=d(mt);var ar=kt(),hr=je(ar);{var wr=Dr=>{{let yn=d(()=>e(Ze)?.x??0),ra=d(()=>e(Ze)?.y??0),Dn=d(()=>e(Ze)?.returnFocus),Cr=d(()=>v.workspace_progressCard_actions_ariaLabel());Td(Dr,{get x(){return e(yn)},get y(){return e(ra)},get returnFocus(){return e(Dn)},get ariaLabel(){return e(Cr)},get items(){return e(Pt)},onClickOutside:Ct})}};D(hr,Dr=>{e(Pt).length>0&&Dr(wr)})}u(ht,ar)};D(On,ht=>{e(Ze)&&ht(kr)})}k((ht,Pt,ar)=>{gt(qt,1,ht,"svelte-1ct56pd"),re(qt,"data-pinned",R()),re(qt,"data-highlight-id",we()),Jt=Nn(qt,"",Jt,{"anchor-name":`--workspace-list-${f().id??""}`}),re(Jn,"id",`workspace-status-state-${f().id??""}`),x(ta,e(K).accessibleName),gt(rr,1,`wc-title type-body min-w-0 truncate font-normal!
@@ -1 +1 @@
1
- var Ut=Object.defineProperty;var gt=c=>{throw TypeError(c)};var Jt=(c,e,n)=>e in c?Ut(c,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):c[e]=n;var U=(c,e,n)=>Jt(c,typeof e!="symbol"?e+"":e,n),Qe=(c,e,n)=>e.has(c)||gt("Cannot "+n);var h=(c,e,n)=>(Qe(c,e,"read from private field"),n?n.call(c):e.get(c)),A=(c,e,n)=>e.has(c)?gt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(c):e.set(c,n),Ye=(c,e,n,i)=>(Qe(c,e,"write to private field"),i?i.call(c,n):e.set(c,n),n),ft=(c,e,n)=>(Qe(c,e,"access private method"),n);import{t as te,br as r,a_ as Y,bz as re,b as se,bs as Ee,bp as ce,bu as Ze}from"./CGWRZzdk.js";import{c9 as I,aD as a,bH as k,ca as ye,bV as N,bo as yt,bs as ne,a7 as V,ay as T,W as F,bn as ae,aA as s,a5 as de,bf as fe,bA as ge,aB as Be,b_ as _e,bS as ve,be as $e,b$ as et,bO as tt,br as Wt,c5 as $,bI as qt,aG as Xt}from"./DYhIMPy1.js";import{s as H}from"./BEyWfhqM.js";import{c as pe}from"./nmrokYzj.js";import{h as Qt,a$ as Yt,aF as Zt,av as _t,l as $t,ad as er,aH as tr,aE as pt,aS as rr,a7 as sr,aT as Ve,bp as ht,bM as nr,aJ as J,bn as xt,bL as ar,ai as ir,f as mt,bJ as Ct}from"./B422XfSt.js";import{O as or}from"./CIR7skK5.js";import{a as ur,D as lr}from"./BgEFdEVh.js";import{i as at,l as be,u as wt,j as cr,v as dr}from"./B70m4__L.js";import"./w-1KkHyd.js";import{e as gr,P as bt}from"./CgFIU5ie.js";import{b as fr}from"./BaIAhI85.js";import{i as hr}from"./CC7to1B5.js";import"./DuHksFog.js";import"./QoUsFhvz.js";import{g as mr}from"./D_n6c_yZ.js";const rt=rr({component:"toggle-group",parts:["root","item"]}),St=new Qt("ToggleGroup.Root");var xe;class It{constructor(e){U(this,"opts");U(this,"rovingFocusGroup");U(this,"attachment");A(this,xe,I(()=>({id:this.opts.id.current,[rt.root]:"",role:"group","data-orientation":this.opts.orientation.current,"data-disabled":pt(this.opts.disabled.current),...this.attachment})));this.opts=e,this.attachment=_t(this.opts.ref),this.rovingFocusGroup=new sr({candidateAttr:rt.item,rootNode:e.ref,loop:e.loop,orientation:e.orientation})}get props(){return a(h(this,xe))}set props(e){k(h(this,xe),e)}}xe=new WeakMap;var Ce;class br extends It{constructor(n){super(n);U(this,"opts");U(this,"isMulti",!1);A(this,Ce,I(()=>this.opts.value.current!==""));this.opts=n}get anyPressed(){return a(h(this,Ce))}set anyPressed(n){k(h(this,Ce),n)}includesItem(n){return this.opts.value.current===n}toggleItem(n,i){this.includesItem(n)?this.opts.value.current="":(this.opts.value.current=n,this.rovingFocusGroup.setCurrentTabStopId(i))}}Ce=new WeakMap;var we;class vr extends It{constructor(n){super(n);U(this,"opts");U(this,"isMulti",!0);A(this,we,I(()=>this.opts.value.current.length>0));this.opts=n}get anyPressed(){return a(h(this,we))}set anyPressed(n){k(h(this,we),n)}includesItem(n){return this.opts.value.current.includes(n)}toggleItem(n,i){this.includesItem(n)?this.opts.value.current=this.opts.value.current.filter(d=>d!==n):(this.opts.value.current=[...this.opts.value.current,n],this.rovingFocusGroup.setCurrentTabStopId(i))}}we=new WeakMap;class yr{static create(e){const{type:n,...i}=e,d=n==="single"?new br(i):new vr(i);return St.set(d)}}var ee,Se,Oe,De,Ge,Pt,me,Ie,Pe;const it=class it{constructor(e,n){A(this,Ge);U(this,"opts");U(this,"root");U(this,"attachment");A(this,ee,I(()=>this.opts.disabled.current||this.root.opts.disabled.current));A(this,Se,I(()=>this.root.includesItem(this.opts.value.current)));A(this,Oe,I(()=>this.root.isMulti?void 0:Yt(this.isPressed,!1)));A(this,De,I(()=>this.root.isMulti?Zt(this.isPressed):void 0));A(this,me,N(0));A(this,Ie,I(()=>({pressed:this.isPressed})));A(this,Pe,I(()=>({id:this.opts.id.current,role:this.root.isMulti?void 0:"radio",tabindex:a(h(this,me)),"data-orientation":this.root.opts.orientation.current,"data-disabled":pt(a(h(this,ee))),"data-state":_r(this.isPressed),"data-value":this.opts.value.current,"aria-pressed":a(h(this,De)),"aria-checked":a(h(this,Oe)),disabled:tr(a(h(this,ee))),[rt.item]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.root=n,this.attachment=_t(this.opts.ref),ye(()=>{this.root.opts.rovingFocus.current?k(h(this,me),this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0):k(h(this,me),0)}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new it(e,St.get())}get isPressed(){return a(h(this,Se))}set isPressed(e){k(h(this,Se),e)}onclick(e){a(h(this,ee))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)}onkeydown(e){if(!a(h(this,ee))){if(e.key===$t||e.key===er){e.preventDefault(),ft(this,Ge,Pt).call(this);return}this.root.opts.rovingFocus.current&&this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}get snippetProps(){return a(h(this,Ie))}set snippetProps(e){k(h(this,Ie),e)}get props(){return a(h(this,Pe))}set props(e){k(h(this,Pe),e)}};ee=new WeakMap,Se=new WeakMap,Oe=new WeakMap,De=new WeakMap,Ge=new WeakSet,Pt=function(){a(h(this,ee))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)},me=new WeakMap,Ie=new WeakMap,Pe=new WeakMap;let st=it;function _r(c){return c?"on":"off"}var pr=new Set(["$$slots","$$events","$$legacy","id","ref","value","onValueChange","type","disabled","loop","orientation","rovingFocus","child","children"]),xr=Be("<div><!></div>");function nt(c,e){const n=yt();if(new.target)return te({component:nt,...c});ne(e,!0);let i=r(e,"id",23,()=>Ve(n)),d=r(e,"ref",15,null),g=r(e,"value",15),f=r(e,"onValueChange",7,ht),y=r(e,"type",7),C=r(e,"disabled",7,!1),m=r(e,"loop",7,!0),w=r(e,"orientation",7,"horizontal"),_=r(e,"rovingFocus",7,!0),P=r(e,"child",7),v=r(e,"children",7),x=Ee(e,pr);function S(){g()===void 0&&g(y()==="single"?"":[])}S(),nr.pre(()=>g(),()=>{S()});const z=yr.create({id:J(()=>i()),value:J(()=>g(),l=>{g(l),f()(l)}),disabled:J(()=>C()),loop:J(()=>m()),orientation:J(()=>w()),rovingFocus:J(()=>_()),type:y(),ref:J(()=>d(),l=>d(l))}),b=I(()=>xt(x,z.props));var o={get id(){return i()},set id(l=Ve(n)){i(l),s()},get ref(){return d()},set ref(l=null){d(l),s()},get value(){return g()},set value(l){g(l),s()},get onValueChange(){return f()},set onValueChange(l=ht){f(l),s()},get type(){return y()},set type(l){y(l),s()},get disabled(){return C()},set disabled(l=!1){C(l),s()},get loop(){return m()},set loop(l=!0){m(l),s()},get orientation(){return w()},set orientation(l="horizontal"){w(l),s()},get rovingFocus(){return _()},set rovingFocus(l=!0){_(l),s()},get child(){return P()},set child(l){P(l),s()},get children(){return v()},set children(l){v(l),s()},$set:re,$on:(l,E)=>se(e,l,E)},p=V(),L=T(p);{var K=l=>{var E=V(),B=T(E);H(B,P,()=>({props:a(b)})),F(l,E)},t=l=>{var E=xr();at(E,()=>({...a(b)}));var B=de(E);H(B,()=>v()??fe),ge(E),F(l,E)};Y(L,l=>{P()?l(K):l(t,-1)})}return F(c,p),ae(o)}var Cr=new Set(["$$slots","$$events","$$legacy","children","child","ref","value","disabled","id","type"]),wr=Be("<button><!></button>");function kt(c,e){const n=yt();if(new.target)return te({component:kt,...c});ne(e,!0);let i=r(e,"children",7),d=r(e,"child",7),g=r(e,"ref",15,null),f=r(e,"value",7),y=r(e,"disabled",7,!1),C=r(e,"id",23,()=>Ve(n)),m=r(e,"type",7,"button"),w=Ee(e,Cr);const _=st.create({id:J(()=>C()),value:J(()=>f()),disabled:J(()=>y()??!1),ref:J(()=>g(),o=>g(o))}),P=I(()=>xt(w,_.props,{type:m()}));var v={get children(){return i()},set children(o){i(o),s()},get child(){return d()},set child(o){d(o),s()},get ref(){return g()},set ref(o=null){g(o),s()},get value(){return f()},set value(o){f(o),s()},get disabled(){return y()},set disabled(o=!1){y(o),s()},get id(){return C()},set id(o=Ve(n)){C(o),s()},get type(){return m()},set type(o="button"){m(o),s()},$set:re,$on:(o,p)=>se(e,o,p)},x=V(),S=T(x);{var z=o=>{var p=V(),L=T(p);{let K=I(()=>({props:a(P),..._.snippetProps}));H(L,d,()=>a(K))}F(o,p)},b=o=>{var p=wr();at(p,()=>({...a(P)}));var L=de(p);H(L,()=>i()??fe,()=>_.snippetProps),ge(p),F(o,p)};Y(S,o=>{d()?o(z):o(b,-1)})}return F(c,x),ae(v)}var Sr=new Set(["$$slots","$$events","$$legacy","children","onSubmit","busy","enterKey","modEnter","class"]),Ir=Be('<form><fieldset class="contents"><!></fieldset></form>');function Ft(c,e){if(new.target)return te({component:Ft,...c});ne(e,!0);let n=r(e,"children",7),i=r(e,"onSubmit",7),d=r(e,"busy",7,!1),g=r(e,"enterKey",7,"submit"),f=r(e,"modEnter",7,"submit"),y=r(e,"class",7),C=Ee(e,Sr),m,w=N(!1);const _=I(()=>d()||a(w));async function P(o){if(o.preventDefault(),!a(_)){k(w,!0);try{await i()(o)}finally{k(w,!1)}}}function v(o){if(o.key!=="Enter"||o.isComposing||o.defaultPrevented||a(_))return;const p=o.target,L=hr(p),K=p.closest('button, a[href], select, summary, [role="button"], [role="link"], [role="checkbox"], [role="radio"], [role="switch"], [role="tab"], [role="menuitem"], [role="option"], [role="combobox"], [role="slider"]');if(K&&m.contains(K)||p instanceof HTMLInputElement&&!["text","search","email","url","tel","password","number"].includes(p.type))return;const t=o.metaKey||o.ctrlKey;(t?f()==="submit":!L&&g()==="submit")?(o.preventDefault(),m.requestSubmit()):(!L||t)&&o.preventDefault()}var x={get children(){return n()},set children(o){n(o),s()},get onSubmit(){return i()},set onSubmit(o){i(o),s()},get busy(){return d()},set busy(o=!1){d(o),s()},get enterKey(){return g()},set enterKey(o="submit"){g(o),s()},get modEnter(){return f()},set modEnter(o="submit"){f(o),s()},get class(){return y()},set class(o){y(o),s()},$set:re,$on:(o,p)=>se(e,o,p)},S=Ir();at(S,o=>({"data-slot":"form","aria-busy":a(_)||void 0,class:o,onsubmit:P,onkeydown:v,...C}),[()=>be("grid gap-4",y())]);var z=de(S),b=de(z);return H(b,n),ge(z),ge(S),fr(S,o=>m=o,()=>m),_e(()=>{z.disabled=a(_),wt(z,"aria-busy",a(_)||void 0)}),F(c,S),ae(x)}var Pr=Be('<div data-slot="form-actions"><div data-slot="form-actions-destructive" class="flex items-center"><!></div> <div data-slot="form-actions-end" class="ml-auto flex items-center gap-2"><!> <!> <!></div></div>');function Lt(c,e){if(new.target)return te({component:Lt,...c});ne(e,!0);let n=r(e,"destructive",7),i=r(e,"secondary",7),d=r(e,"primary",7),g=r(e,"hint",7),f=r(e,"class",7);const y=ar();var C={get destructive(){return n()},set destructive(b){n(b),s()},get secondary(){return i()},set secondary(b){i(b),s()},get primary(){return d()},set primary(b){d(b),s()},get hint(){return g()},set hint(b){g(b),s()},get class(){return f()},set class(b){f(b),s()},$set:re,$on:(b,o)=>se(e,b,o)},m=Pr(),w=de(m),_=de(w);H(_,()=>n()??fe),ge(w);var P=ve(w,2),v=de(P);{var x=b=>{ir(b,{children:(o,p)=>{$e();var L=et();_e(()=>tt(L,g())),F(o,L)},$$slots:{default:!0}})};Y(v,b=>{g()&&b(x)})}var S=ve(v,2);H(S,()=>i()??fe);var z=ve(S,2);return H(z,d),ge(P),ge(m),_e(b=>{wt(m,"data-size",y),dr(m,1,b)},[()=>cr(be("flex items-center justify-between",y==="compact"?"gap-2":"gap-3",f()))]),F(c,m),ae(C)}function zt(c,e){if(new.target)return te({component:zt,...c});ne(e,!0);let n=r(e,"open",15,!1),i=r(e,"static",7,!1),d=r(e,"title",7),g=r(e,"description",7),f=r(e,"titleId",7),y=r(e,"descriptionId",7),C=r(e,"children",7),m=r(e,"footer",7),w=r(e,"submitLabel",23,()=>ce.modals_bulkActionConfirm_confirm_label()),_=r(e,"cancelLabel",23,()=>ce.modals_bulkActionConfirm_cancel_label()),P=r(e,"submitVariant",7,"primary"),v=r(e,"canSubmit",7,!0),x=r(e,"busy",7,!1),S=r(e,"submitBusy",7,!1),z=r(e,"role",7,"dialog"),b=r(e,"dismissOnInteractOutside",7,!0),o=r(e,"showCancel",7,!0),p=r(e,"showCloseButton",7,!0),L=r(e,"closeLabel",23,()=>ce.ui_dialog_close_ariaLabel()),K=r(e,"class",7),t=r(e,"size",7,"default"),l=r(e,"initialFocus",7),E=r(e,"focusContent",7,!1),B=r(e,"focusSubmit",7,!1),W=r(e,"focusCancel",7,!1),D=r(e,"escapeKeydownBehavior",7,"close"),G=r(e,"enterKey",7,"submit"),O=r(e,"modEnter",7,"submit"),ie=r(e,"onfocusin",7),q=r(e,"onCloseAutoFocus",7),X=r(e,"onSubmit",7),oe=r(e,"onCancel",7),ue=N(!1),j=N(""),Me=N(!1),Te=N(null),Re=N(null),Ne=N(null);const Q=I(()=>x()||a(ue));ye(()=>{n()&&(k(Me,!1),k(j,""))});function He(){a(Q)||a(Me)||(k(Me,!0),n(!1),oe()?.())}async function Bt(){if(!(a(Q)||S()||!v())){k(ue,!0),k(j,"");try{await X()()}catch{k(j,ce.ui_dialog_submitFailed_error(),!0)}finally{k(ue,!1)}}}function Tt(u){const Z=l()??(W()?a(Re):B()?a(Ne):E()?a(Te):null);Z&&(Z.focus(),Z.ownerDocument.activeElement===Z&&u.preventDefault())}var At={get open(){return n()},set open(u=!1){n(u),s()},get static(){return i()},set static(u=!1){i(u),s()},get title(){return d()},set title(u){d(u),s()},get description(){return g()},set description(u){g(u),s()},get titleId(){return f()},set titleId(u){f(u),s()},get descriptionId(){return y()},set descriptionId(u){y(u),s()},get children(){return C()},set children(u){C(u),s()},get footer(){return m()},set footer(u){m(u),s()},get submitLabel(){return w()},set submitLabel(u=ce.modals_bulkActionConfirm_confirm_label()){w(u),s()},get cancelLabel(){return _()},set cancelLabel(u=ce.modals_bulkActionConfirm_cancel_label()){_(u),s()},get submitVariant(){return P()},set submitVariant(u="primary"){P(u),s()},get canSubmit(){return v()},set canSubmit(u=!0){v(u),s()},get busy(){return x()},set busy(u=!1){x(u),s()},get submitBusy(){return S()},set submitBusy(u=!1){S(u),s()},get role(){return z()},set role(u="dialog"){z(u),s()},get dismissOnInteractOutside(){return b()},set dismissOnInteractOutside(u=!0){b(u),s()},get showCancel(){return o()},set showCancel(u=!0){o(u),s()},get showCloseButton(){return p()},set showCloseButton(u=!0){p(u),s()},get closeLabel(){return L()},set closeLabel(u=ce.ui_dialog_close_ariaLabel()){L(u),s()},get class(){return K()},set class(u){K(u),s()},get size(){return t()},set size(u="default"){t(u),s()},get initialFocus(){return l()},set initialFocus(u){l(u),s()},get focusContent(){return E()},set focusContent(u=!1){E(u),s()},get focusSubmit(){return B()},set focusSubmit(u=!1){B(u),s()},get focusCancel(){return W()},set focusCancel(u=!1){W(u),s()},get escapeKeydownBehavior(){return D()},set escapeKeydownBehavior(u="close"){D(u),s()},get enterKey(){return G()},set enterKey(u="submit"){G(u),s()},get modEnter(){return O()},set modEnter(u="submit"){O(u),s()},get onfocusin(){return ie()},set onfocusin(u){ie(u),s()},get onCloseAutoFocus(){return q()},set onCloseAutoFocus(u){q(u),s()},get onSubmit(){return X()},set onSubmit(u){X(u),s()},get onCancel(){return oe()},set onCancel(u){oe(u),s()},$set:re,$on:(u,Z)=>se(e,u,Z)},ot=V(),Kt=T(ot);return pe(Kt,()=>or,(u,Z)=>{Z(u,{get open(){return n()},get staticPosition(){return i()},onOpenChange:je=>!je&&He(),children:(je,Tr)=>{var ut=V(),Vt=T(ut);{let Ot=I(()=>be("flex min-h-0 flex-col overflow-hidden p-0",K()));pe(Vt,()=>ur,(Dt,Gt)=>{Gt(Dt,{get role(){return z()},get size(){return t()},get class(){return a(Ot)},get closeDisabled(){return a(Q)},get showCloseButton(){return p()},get closeLabel(){return L()},get escapeKeydownBehavior(){return D()},onOpenAutoFocus:Tt,get onCloseAutoFocus(){return q()},get onfocusin(){return ie()},onkeydown:M=>{M.key==="Escape"&&gr(a(Te),M)||M.key==="Escape"&&D()==="close"&&(M.preventDefault(),M.stopPropagation(),He())},onInteractOutside:M=>(a(Q)||!b())&&M.preventDefault(),onEscapeKeydown:M=>a(Q)&&M.preventDefault(),get ref(){return a(Te)},set ref(M){k(Te,M,!0)},children:(M,Ar)=>{Ft(M,{onSubmit:Bt,get busy(){return a(Q)},get enterKey(){return G()},get modEnter(){return O()},class:"flex min-h-0 min-w-0 flex-1 flex-col",children:(Mt,Kr)=>{lr(Mt,{get title(){return d()},get description(){return g()},get titleId(){return f()},get descriptionId(){return y()},get children(){return C()},get error(){return a(j)},footer:Rt=>{var lt=V(),Nt=T(lt);{var Ht=he=>{var Ue=V(),ct=T(Ue);H(ct,m),F(he,Ue)},jt=he=>{Lt(he,{secondary:Je=>{var Ae=V(),We=T(Ae);{var qe=le=>{mt(le,{variant:"ghost-light",get disabled(){return a(Q)},onclick:He,get ref(){return a(Re)},set ref(Ke){k(Re,Ke,!0)},children:(Ke,Xe)=>{$e();var dt=et();_e(()=>tt(dt,_())),F(Ke,dt)},$$slots:{default:!0}})};Y(We,le=>{o()&&le(qe)})}F(Je,Ae)},primary:Je=>{{let Ae=I(()=>B()?"focus-visible:outline focus-visible:-outline-offset-1":void 0),We=I(()=>a(Q)||S()),qe=I(()=>!v()||a(Q)||S());mt(Je,{type:"submit",get variant(){return P()},get class(){return a(Ae)},get loading(){return a(We)},get disabled(){return a(qe)},get ref(){return a(Ne)},set ref(le){k(Ne,le,!0)},children:(le,Ke)=>{$e();var Xe=et();_e(()=>tt(Xe,w())),F(le,Xe)},$$slots:{default:!0}})}},$$slots:{secondary:!0,primary:!0}})};Y(Nt,he=>{m()?he(Ht):he(jt,-1)})}F(Rt,lt)},$$slots:{footer:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})})}F(je,ut)},$$slots:{default:!0}})}),F(c,ot),ae(At)}function kr(c,e){if(new.target)return te({component:kr,...c});ne(e,!0);let n=r(e,"open",15,!1),i=r(e,"static",7,!1),d=r(e,"title",7),g=r(e,"description",7),f=r(e,"confirmLabel",7),y=r(e,"cancelLabel",7),C=r(e,"details",7),m=r(e,"busy",7,!1),w=r(e,"submitBusy",7,!1),_=r(e,"canSubmit",7,!0),P=r(e,"focusSubmit",7,!0),v=r(e,"focusCancel",7,!1),x=r(e,"enterKey",7,"submit"),S=r(e,"modEnter",7,"submit"),z=r(e,"destructive",7,!0),b=r(e,"class",7),o=r(e,"closeLabel",7),p=r(e,"onConfirm",7),L=r(e,"onCancel",7);var K={get open(){return n()},set open(t=!1){n(t),s()},get static(){return i()},set static(t=!1){i(t),s()},get title(){return d()},set title(t){d(t),s()},get description(){return g()},set description(t){g(t),s()},get confirmLabel(){return f()},set confirmLabel(t){f(t),s()},get cancelLabel(){return y()},set cancelLabel(t){y(t),s()},get details(){return C()},set details(t){C(t),s()},get busy(){return m()},set busy(t=!1){m(t),s()},get submitBusy(){return w()},set submitBusy(t=!1){w(t),s()},get canSubmit(){return _()},set canSubmit(t=!0){_(t),s()},get focusSubmit(){return P()},set focusSubmit(t=!0){P(t),s()},get focusCancel(){return v()},set focusCancel(t=!1){v(t),s()},get enterKey(){return x()},set enterKey(t="submit"){x(t),s()},get modEnter(){return S()},set modEnter(t="submit"){S(t),s()},get destructive(){return z()},set destructive(t=!0){z(t),s()},get class(){return b()},set class(t){b(t),s()},get closeLabel(){return o()},set closeLabel(t){o(t),s()},get onConfirm(){return p()},set onConfirm(t){p(t),s()},get onCancel(){return L()},set onCancel(t){L(t),s()},$set:re,$on:(t,l)=>se(e,t,l)};{let t=I(()=>z()?"destructive":"default");zt(c,{get static(){return i()},get title(){return d()},get description(){return g()},get submitLabel(){return f()},get cancelLabel(){return y()},get submitVariant(){return a(t)},get busy(){return m()},get submitBusy(){return w()},get canSubmit(){return _()},get focusSubmit(){return P()},get focusCancel(){return v()},get enterKey(){return x()},get modEnter(){return S()},get class(){return b()},get closeLabel(){return o()},get onSubmit(){return p()},get onCancel(){return L()},get open(){return n()},set open(l){n(l)},children:(l,E)=>{var B=V(),W=T(B);{var D=G=>{var O=V(),ie=T(O);H(ie,C),F(G,O)};Y(W,G=>{C()&&G(D)})}F(l,B)},$$slots:{default:!0}})}return ae(K)}var R,ke,Fe,Le,ze;class Fr{constructor(e,n){A(this,R,N(Wt([])));A(this,ke);A(this,Fe);A(this,Le,N(null));A(this,ze,N(0));Ye(this,ke,e),Ye(this,Fe,n)}get hover(){return a(h(this,Le))}set hover(e){k(h(this,Le),e,!0)}get keyboardIndex(){return a(h(this,ze))}set keyboardIndex(e){k(h(this,ze),e,!0)}get selectedIndexes(){const e=new Set(h(this,ke).call(this));return a(h(this,R)).flatMap((n,i)=>n&&e.has(n.value)?[i]:[])}allocate(e){return $(()=>{const n={value:e,element:null,disabled:!1},i=a(h(this,R)).indexOf(void 0);return i<0?a(h(this,R)).push(n)-1:(a(h(this,R))[i]=n,i)})}release(e){$(()=>{a(h(this,R))[e]&&(a(h(this,R))[e]=void 0,this.hover?.activeIndex===e&&this.hover.setActiveIndex(null),this.hover?.registerItem(e,null))})}update(e,n,i){$(()=>{const d=a(h(this,R))[e];d&&(d.value=n,d.disabled=i)})}register(e,n){$(()=>{const i=a(h(this,R))[e];i&&(i.element=n,this.hover?.registerItem(e,n))})}connect(e){$(()=>{this.hover?.destroy(),this.hover=mr(e,{axis:h(this,Fe)});for(const[n,i]of a(h(this,R)).entries())i?.element&&this.hover.registerItem(n,i.element)})}disconnect(){$(()=>{this.hover?.destroy(),this.hover=null})}activate(e){this.keyboardIndex=e,this.hover?.setActiveIndex(e)}focusAdjacent(e,n){const i=a(h(this,R)).map((f,y)=>({entry:f,entryIndex:y})).filter(({entry:f})=>f?.element&&!f.disabled),d=i.findIndex(({entryIndex:f})=>f===e);if(d<0||i.length===0)return;const g=i[(d+n+i.length)%i.length];this.activate(g.entryIndex),g.entry?.element?.focus()}}R=new WeakMap,ke=new WeakMap,Fe=new WeakMap,Le=new WeakMap,ze=new WeakMap;const Et=Symbol("toggle-group");var Lr=new Set(["$$slots","$$events","$$legacy","value","onValueChange","type","disabled","axis","variant","size","class","children"]),vt=Be("<!> <!>",1);function zr(c,e){if(new.target)return te({component:zr,...c});ne(e,!0);const n=Ct({base:"relative isolate inline-flex shrink-0 items-center justify-center gap-0.5 rounded-(--radius-medium) border-0 bg-card",variants:{variant:{default:"shadow-(--elevation-raised)",outline:"border border-border shadow-none",flat:"bg-muted/40 shadow-none"},size:{default:"",xs:"",sm:"",lg:""}},defaultVariants:{variant:"default",size:"default"}});let i=r(e,"value",15),d=r(e,"onValueChange",7),g=r(e,"type",7,"single"),f=r(e,"disabled",7,!1),y=r(e,"axis",7,"x"),C=r(e,"variant",7,"default"),m=r(e,"size",7,"default"),w=r(e,"class",7,""),_=r(e,"children",7),P=Ee(e,Lr),v=N(null);const x=new Fr(()=>Array.isArray(i())?i():typeof i()=="string"&&i()?[i()]:[],$(()=>y()));qt(Et,{state:x,get size(){return m()},get variant(){return C()}}),ye(()=>{if(a(v))return x.connect(a(v)),()=>x.disconnect()});function S(t){i(t),d()?.(t)}function z(t){i(t),d()?.(t)}var b={get value(){return i()},set value(t){i(t),s()},get onValueChange(){return d()},set onValueChange(t){d(t),s()},get type(){return g()},set type(t="single"){g(t),s()},get disabled(){return f()},set disabled(t=!1){f(t),s()},get axis(){return y()},set axis(t="x"){y(t),s()},get variant(){return C()},set variant(t="default"){C(t),s()},get size(){return m()},set size(t="default"){m(t),s()},get class(){return w()},set class(t=""){w(t),s()},get children(){return _()},set children(t){_(t),s()},$set:re,$on:(t,l)=>se(e,t,l)},o=V(),p=T(o);{var L=t=>{var l=V(),E=T(l);{let B=I(()=>Array.isArray(i())?i():[]),W=I(()=>be(n({variant:C(),size:m()}),w()));pe(E,()=>nt,(D,G)=>{G(D,Ze({type:"multiple",get value(){return a(B)},onValueChange:z,get disabled(){return f()},get class(){return a(W)}},()=>P,{get ref(){return a(v)},set ref(O){k(v,O,!0)},children:(O,ie)=>{var q=vt(),X=T(q);{var oe=j=>{bt(j,{get store(){return x.hover},get selectedIndexes(){return x.selectedIndexes}})};Y(X,j=>{x.hover&&j(oe)})}var ue=ve(X,2);H(ue,()=>_()??fe),F(O,q)},$$slots:{default:!0}}))})}F(t,l)},K=t=>{var l=V(),E=T(l);{let B=I(()=>typeof i()=="string"?i():""),W=I(()=>be(n({variant:C(),size:m()}),w()));pe(E,()=>nt,(D,G)=>{G(D,Ze({type:"single",get value(){return a(B)},onValueChange:S,get disabled(){return f()},get class(){return a(W)}},()=>P,{get ref(){return a(v)},set ref(O){k(v,O,!0)},children:(O,ie)=>{var q=vt(),X=T(q);{var oe=j=>{bt(j,{get store(){return x.hover},get selectedIndexes(){return x.selectedIndexes}})};Y(X,j=>{x.hover&&j(oe)})}var ue=ve(X,2);H(ue,()=>_()??fe),F(O,q)},$$slots:{default:!0}}))})}F(t,l)};Y(p,t=>{g()==="multiple"?t(L):t(K,-1)})}return F(c,o),ae(b)}var Er=new Set(["$$slots","$$events","$$legacy","value","disabled","variant","size","tooltip","class","onclick","onfocus","children"]);function Br(c,e){if(new.target)return te({component:Br,...c});ne(e,!0);const n=Ct({base:"type-caption relative z-10 inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap rounded-(--radius-medium) border-0 bg-transparent font-normal text-muted-foreground transition-[color,font-weight] duration-spring-fast ease-spring-fast hover:text-foreground active:bg-active disabled:pointer-events-none disabled:opacity-50 data-[state=on]:[--text-caption-weight:500] data-[state=on]:text-foreground motion-reduce:transition-none",variants:{variant:{default:"",outline:"bg-transparent",flat:""},size:{default:"h-(--control-height-medium) min-w-8 px-2",xs:"h-(--control-height-small) min-w-7 px-1.5",sm:"h-(--control-height-small) min-w-7 px-1.5",lg:"h-(--control-height-large) min-w-9 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});let i=r(e,"value",7),d=r(e,"disabled",7,!1),g=r(e,"variant",7,void 0),f=r(e,"size",7,void 0),y=r(e,"tooltip",7,void 0),C=r(e,"class",7,""),m=r(e,"onclick",7),w=r(e,"onfocus",7),_=r(e,"children",7),P=Ee(e,Er);const v=Xt(Et),x=v.state.allocate($(()=>i()));let S=N(null);const z=I(()=>f()??v?.size??"default"),b=I(()=>g()??v?.variant??"default");ye(()=>v.state.update(x,i(),d())),ye(()=>(v.state.register(x,a(S)),()=>v.state.register(x,null)));function o(t){v.state.activate(x),w()?.(t)}var p={get value(){return i()},set value(t){i(t),s()},get disabled(){return d()},set disabled(t=!1){d(t),s()},get variant(){return g()},set variant(t=void 0){g(t),s()},get size(){return f()},set size(t=void 0){f(t),s()},get tooltip(){return y()},set tooltip(t=void 0){y(t),s()},get class(){return C()},set class(t=""){C(t),s()},get onclick(){return m()},set onclick(t){m(t),s()},get onfocus(){return w()},set onfocus(t){w(t),s()},get children(){return _()},set children(t){_(t),s()},$set:re,$on:(t,l)=>se(e,t,l)},L=V(),K=T(L);{let t=I(()=>be(n({variant:a(b),size:a(z)}),C()));pe(K,()=>kt,(l,E)=>{E(l,Ze({get value(){return i()},get title(){return y()},get disabled(){return d()},get onclick(){return m()},onfocus:o,get class(){return a(t)}},()=>P,{get ref(){return a(S)},set ref(B){k(S,B,!0)},children:(B,W)=>{var D=V(),G=T(D);H(G,()=>_()??fe),F(B,D)},$$slots:{default:!0}}))})}return F(c,L),ae(p)}export{Fr as C,kr as D,Ft as F,zr as T,Lt as a,zt as b,Br as c};
1
+ var Ut=Object.defineProperty;var gt=c=>{throw TypeError(c)};var Jt=(c,e,n)=>e in c?Ut(c,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):c[e]=n;var U=(c,e,n)=>Jt(c,typeof e!="symbol"?e+"":e,n),Qe=(c,e,n)=>e.has(c)||gt("Cannot "+n);var h=(c,e,n)=>(Qe(c,e,"read from private field"),n?n.call(c):e.get(c)),A=(c,e,n)=>e.has(c)?gt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(c):e.set(c,n),Ye=(c,e,n,i)=>(Qe(c,e,"write to private field"),i?i.call(c,n):e.set(c,n),n),ft=(c,e,n)=>(Qe(c,e,"access private method"),n);import{t as te,br as r,a_ as Y,bz as re,b as se,bs as Ee,bp as ce,bu as Ze}from"./CGWRZzdk.js";import{c9 as I,aD as a,bH as k,ca as ye,bV as N,bo as yt,bs as ne,a7 as V,ay as T,W as F,bn as ae,aA as s,a5 as de,bf as fe,bA as ge,aB as Be,b_ as _e,bS as ve,be as $e,b$ as et,bO as tt,br as Wt,c5 as $,bI as qt,aG as Xt}from"./DYhIMPy1.js";import{s as H}from"./BEyWfhqM.js";import{c as pe}from"./nmrokYzj.js";import{h as Qt,a$ as Yt,aF as Zt,av as _t,l as $t,ad as er,aH as tr,aE as pt,aS as rr,a7 as sr,aT as Ve,bp as ht,bM as nr,aJ as J,bn as xt,bL as ar,ai as ir,f as mt,bJ as Ct}from"./KJX0Kw6L.js";import{O as or}from"./D9ajM8uP.js";import{a as ur,D as lr}from"./BjcX_fOv.js";import{i as at,l as be,u as wt,j as cr,v as dr}from"./BjnZ1Xf3.js";import"./ClTZNeVO.js";import{e as gr,P as bt}from"./fCEIPyv5.js";import{b as fr}from"./BaIAhI85.js";import{i as hr}from"./CC7to1B5.js";import"./C-s9_soQ.js";import"./CzQCBVm9.js";import{g as mr}from"./B461Cu-8.js";const rt=rr({component:"toggle-group",parts:["root","item"]}),St=new Qt("ToggleGroup.Root");var xe;class It{constructor(e){U(this,"opts");U(this,"rovingFocusGroup");U(this,"attachment");A(this,xe,I(()=>({id:this.opts.id.current,[rt.root]:"",role:"group","data-orientation":this.opts.orientation.current,"data-disabled":pt(this.opts.disabled.current),...this.attachment})));this.opts=e,this.attachment=_t(this.opts.ref),this.rovingFocusGroup=new sr({candidateAttr:rt.item,rootNode:e.ref,loop:e.loop,orientation:e.orientation})}get props(){return a(h(this,xe))}set props(e){k(h(this,xe),e)}}xe=new WeakMap;var Ce;class br extends It{constructor(n){super(n);U(this,"opts");U(this,"isMulti",!1);A(this,Ce,I(()=>this.opts.value.current!==""));this.opts=n}get anyPressed(){return a(h(this,Ce))}set anyPressed(n){k(h(this,Ce),n)}includesItem(n){return this.opts.value.current===n}toggleItem(n,i){this.includesItem(n)?this.opts.value.current="":(this.opts.value.current=n,this.rovingFocusGroup.setCurrentTabStopId(i))}}Ce=new WeakMap;var we;class vr extends It{constructor(n){super(n);U(this,"opts");U(this,"isMulti",!0);A(this,we,I(()=>this.opts.value.current.length>0));this.opts=n}get anyPressed(){return a(h(this,we))}set anyPressed(n){k(h(this,we),n)}includesItem(n){return this.opts.value.current.includes(n)}toggleItem(n,i){this.includesItem(n)?this.opts.value.current=this.opts.value.current.filter(d=>d!==n):(this.opts.value.current=[...this.opts.value.current,n],this.rovingFocusGroup.setCurrentTabStopId(i))}}we=new WeakMap;class yr{static create(e){const{type:n,...i}=e,d=n==="single"?new br(i):new vr(i);return St.set(d)}}var ee,Se,Oe,De,Ge,Pt,me,Ie,Pe;const it=class it{constructor(e,n){A(this,Ge);U(this,"opts");U(this,"root");U(this,"attachment");A(this,ee,I(()=>this.opts.disabled.current||this.root.opts.disabled.current));A(this,Se,I(()=>this.root.includesItem(this.opts.value.current)));A(this,Oe,I(()=>this.root.isMulti?void 0:Yt(this.isPressed,!1)));A(this,De,I(()=>this.root.isMulti?Zt(this.isPressed):void 0));A(this,me,N(0));A(this,Ie,I(()=>({pressed:this.isPressed})));A(this,Pe,I(()=>({id:this.opts.id.current,role:this.root.isMulti?void 0:"radio",tabindex:a(h(this,me)),"data-orientation":this.root.opts.orientation.current,"data-disabled":pt(a(h(this,ee))),"data-state":_r(this.isPressed),"data-value":this.opts.value.current,"aria-pressed":a(h(this,De)),"aria-checked":a(h(this,Oe)),disabled:tr(a(h(this,ee))),[rt.item]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.root=n,this.attachment=_t(this.opts.ref),ye(()=>{this.root.opts.rovingFocus.current?k(h(this,me),this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0):k(h(this,me),0)}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new it(e,St.get())}get isPressed(){return a(h(this,Se))}set isPressed(e){k(h(this,Se),e)}onclick(e){a(h(this,ee))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)}onkeydown(e){if(!a(h(this,ee))){if(e.key===$t||e.key===er){e.preventDefault(),ft(this,Ge,Pt).call(this);return}this.root.opts.rovingFocus.current&&this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}get snippetProps(){return a(h(this,Ie))}set snippetProps(e){k(h(this,Ie),e)}get props(){return a(h(this,Pe))}set props(e){k(h(this,Pe),e)}};ee=new WeakMap,Se=new WeakMap,Oe=new WeakMap,De=new WeakMap,Ge=new WeakSet,Pt=function(){a(h(this,ee))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)},me=new WeakMap,Ie=new WeakMap,Pe=new WeakMap;let st=it;function _r(c){return c?"on":"off"}var pr=new Set(["$$slots","$$events","$$legacy","id","ref","value","onValueChange","type","disabled","loop","orientation","rovingFocus","child","children"]),xr=Be("<div><!></div>");function nt(c,e){const n=yt();if(new.target)return te({component:nt,...c});ne(e,!0);let i=r(e,"id",23,()=>Ve(n)),d=r(e,"ref",15,null),g=r(e,"value",15),f=r(e,"onValueChange",7,ht),y=r(e,"type",7),C=r(e,"disabled",7,!1),m=r(e,"loop",7,!0),w=r(e,"orientation",7,"horizontal"),_=r(e,"rovingFocus",7,!0),P=r(e,"child",7),v=r(e,"children",7),x=Ee(e,pr);function S(){g()===void 0&&g(y()==="single"?"":[])}S(),nr.pre(()=>g(),()=>{S()});const z=yr.create({id:J(()=>i()),value:J(()=>g(),l=>{g(l),f()(l)}),disabled:J(()=>C()),loop:J(()=>m()),orientation:J(()=>w()),rovingFocus:J(()=>_()),type:y(),ref:J(()=>d(),l=>d(l))}),b=I(()=>xt(x,z.props));var o={get id(){return i()},set id(l=Ve(n)){i(l),s()},get ref(){return d()},set ref(l=null){d(l),s()},get value(){return g()},set value(l){g(l),s()},get onValueChange(){return f()},set onValueChange(l=ht){f(l),s()},get type(){return y()},set type(l){y(l),s()},get disabled(){return C()},set disabled(l=!1){C(l),s()},get loop(){return m()},set loop(l=!0){m(l),s()},get orientation(){return w()},set orientation(l="horizontal"){w(l),s()},get rovingFocus(){return _()},set rovingFocus(l=!0){_(l),s()},get child(){return P()},set child(l){P(l),s()},get children(){return v()},set children(l){v(l),s()},$set:re,$on:(l,E)=>se(e,l,E)},p=V(),L=T(p);{var K=l=>{var E=V(),B=T(E);H(B,P,()=>({props:a(b)})),F(l,E)},t=l=>{var E=xr();at(E,()=>({...a(b)}));var B=de(E);H(B,()=>v()??fe),ge(E),F(l,E)};Y(L,l=>{P()?l(K):l(t,-1)})}return F(c,p),ae(o)}var Cr=new Set(["$$slots","$$events","$$legacy","children","child","ref","value","disabled","id","type"]),wr=Be("<button><!></button>");function kt(c,e){const n=yt();if(new.target)return te({component:kt,...c});ne(e,!0);let i=r(e,"children",7),d=r(e,"child",7),g=r(e,"ref",15,null),f=r(e,"value",7),y=r(e,"disabled",7,!1),C=r(e,"id",23,()=>Ve(n)),m=r(e,"type",7,"button"),w=Ee(e,Cr);const _=st.create({id:J(()=>C()),value:J(()=>f()),disabled:J(()=>y()??!1),ref:J(()=>g(),o=>g(o))}),P=I(()=>xt(w,_.props,{type:m()}));var v={get children(){return i()},set children(o){i(o),s()},get child(){return d()},set child(o){d(o),s()},get ref(){return g()},set ref(o=null){g(o),s()},get value(){return f()},set value(o){f(o),s()},get disabled(){return y()},set disabled(o=!1){y(o),s()},get id(){return C()},set id(o=Ve(n)){C(o),s()},get type(){return m()},set type(o="button"){m(o),s()},$set:re,$on:(o,p)=>se(e,o,p)},x=V(),S=T(x);{var z=o=>{var p=V(),L=T(p);{let K=I(()=>({props:a(P),..._.snippetProps}));H(L,d,()=>a(K))}F(o,p)},b=o=>{var p=wr();at(p,()=>({...a(P)}));var L=de(p);H(L,()=>i()??fe,()=>_.snippetProps),ge(p),F(o,p)};Y(S,o=>{d()?o(z):o(b,-1)})}return F(c,x),ae(v)}var Sr=new Set(["$$slots","$$events","$$legacy","children","onSubmit","busy","enterKey","modEnter","class"]),Ir=Be('<form><fieldset class="contents"><!></fieldset></form>');function Ft(c,e){if(new.target)return te({component:Ft,...c});ne(e,!0);let n=r(e,"children",7),i=r(e,"onSubmit",7),d=r(e,"busy",7,!1),g=r(e,"enterKey",7,"submit"),f=r(e,"modEnter",7,"submit"),y=r(e,"class",7),C=Ee(e,Sr),m,w=N(!1);const _=I(()=>d()||a(w));async function P(o){if(o.preventDefault(),!a(_)){k(w,!0);try{await i()(o)}finally{k(w,!1)}}}function v(o){if(o.key!=="Enter"||o.isComposing||o.defaultPrevented||a(_))return;const p=o.target,L=hr(p),K=p.closest('button, a[href], select, summary, [role="button"], [role="link"], [role="checkbox"], [role="radio"], [role="switch"], [role="tab"], [role="menuitem"], [role="option"], [role="combobox"], [role="slider"]');if(K&&m.contains(K)||p instanceof HTMLInputElement&&!["text","search","email","url","tel","password","number"].includes(p.type))return;const t=o.metaKey||o.ctrlKey;(t?f()==="submit":!L&&g()==="submit")?(o.preventDefault(),m.requestSubmit()):(!L||t)&&o.preventDefault()}var x={get children(){return n()},set children(o){n(o),s()},get onSubmit(){return i()},set onSubmit(o){i(o),s()},get busy(){return d()},set busy(o=!1){d(o),s()},get enterKey(){return g()},set enterKey(o="submit"){g(o),s()},get modEnter(){return f()},set modEnter(o="submit"){f(o),s()},get class(){return y()},set class(o){y(o),s()},$set:re,$on:(o,p)=>se(e,o,p)},S=Ir();at(S,o=>({"data-slot":"form","aria-busy":a(_)||void 0,class:o,onsubmit:P,onkeydown:v,...C}),[()=>be("grid gap-4",y())]);var z=de(S),b=de(z);return H(b,n),ge(z),ge(S),fr(S,o=>m=o,()=>m),_e(()=>{z.disabled=a(_),wt(z,"aria-busy",a(_)||void 0)}),F(c,S),ae(x)}var Pr=Be('<div data-slot="form-actions"><div data-slot="form-actions-destructive" class="flex items-center"><!></div> <div data-slot="form-actions-end" class="ml-auto flex items-center gap-2"><!> <!> <!></div></div>');function Lt(c,e){if(new.target)return te({component:Lt,...c});ne(e,!0);let n=r(e,"destructive",7),i=r(e,"secondary",7),d=r(e,"primary",7),g=r(e,"hint",7),f=r(e,"class",7);const y=ar();var C={get destructive(){return n()},set destructive(b){n(b),s()},get secondary(){return i()},set secondary(b){i(b),s()},get primary(){return d()},set primary(b){d(b),s()},get hint(){return g()},set hint(b){g(b),s()},get class(){return f()},set class(b){f(b),s()},$set:re,$on:(b,o)=>se(e,b,o)},m=Pr(),w=de(m),_=de(w);H(_,()=>n()??fe),ge(w);var P=ve(w,2),v=de(P);{var x=b=>{ir(b,{children:(o,p)=>{$e();var L=et();_e(()=>tt(L,g())),F(o,L)},$$slots:{default:!0}})};Y(v,b=>{g()&&b(x)})}var S=ve(v,2);H(S,()=>i()??fe);var z=ve(S,2);return H(z,d),ge(P),ge(m),_e(b=>{wt(m,"data-size",y),dr(m,1,b)},[()=>cr(be("flex items-center justify-between",y==="compact"?"gap-2":"gap-3",f()))]),F(c,m),ae(C)}function zt(c,e){if(new.target)return te({component:zt,...c});ne(e,!0);let n=r(e,"open",15,!1),i=r(e,"static",7,!1),d=r(e,"title",7),g=r(e,"description",7),f=r(e,"titleId",7),y=r(e,"descriptionId",7),C=r(e,"children",7),m=r(e,"footer",7),w=r(e,"submitLabel",23,()=>ce.modals_bulkActionConfirm_confirm_label()),_=r(e,"cancelLabel",23,()=>ce.modals_bulkActionConfirm_cancel_label()),P=r(e,"submitVariant",7,"primary"),v=r(e,"canSubmit",7,!0),x=r(e,"busy",7,!1),S=r(e,"submitBusy",7,!1),z=r(e,"role",7,"dialog"),b=r(e,"dismissOnInteractOutside",7,!0),o=r(e,"showCancel",7,!0),p=r(e,"showCloseButton",7,!0),L=r(e,"closeLabel",23,()=>ce.ui_dialog_close_ariaLabel()),K=r(e,"class",7),t=r(e,"size",7,"default"),l=r(e,"initialFocus",7),E=r(e,"focusContent",7,!1),B=r(e,"focusSubmit",7,!1),W=r(e,"focusCancel",7,!1),D=r(e,"escapeKeydownBehavior",7,"close"),G=r(e,"enterKey",7,"submit"),O=r(e,"modEnter",7,"submit"),ie=r(e,"onfocusin",7),q=r(e,"onCloseAutoFocus",7),X=r(e,"onSubmit",7),oe=r(e,"onCancel",7),ue=N(!1),j=N(""),Me=N(!1),Te=N(null),Re=N(null),Ne=N(null);const Q=I(()=>x()||a(ue));ye(()=>{n()&&(k(Me,!1),k(j,""))});function He(){a(Q)||a(Me)||(k(Me,!0),n(!1),oe()?.())}async function Bt(){if(!(a(Q)||S()||!v())){k(ue,!0),k(j,"");try{await X()()}catch{k(j,ce.ui_dialog_submitFailed_error(),!0)}finally{k(ue,!1)}}}function Tt(u){const Z=l()??(W()?a(Re):B()?a(Ne):E()?a(Te):null);Z&&(Z.focus(),Z.ownerDocument.activeElement===Z&&u.preventDefault())}var At={get open(){return n()},set open(u=!1){n(u),s()},get static(){return i()},set static(u=!1){i(u),s()},get title(){return d()},set title(u){d(u),s()},get description(){return g()},set description(u){g(u),s()},get titleId(){return f()},set titleId(u){f(u),s()},get descriptionId(){return y()},set descriptionId(u){y(u),s()},get children(){return C()},set children(u){C(u),s()},get footer(){return m()},set footer(u){m(u),s()},get submitLabel(){return w()},set submitLabel(u=ce.modals_bulkActionConfirm_confirm_label()){w(u),s()},get cancelLabel(){return _()},set cancelLabel(u=ce.modals_bulkActionConfirm_cancel_label()){_(u),s()},get submitVariant(){return P()},set submitVariant(u="primary"){P(u),s()},get canSubmit(){return v()},set canSubmit(u=!0){v(u),s()},get busy(){return x()},set busy(u=!1){x(u),s()},get submitBusy(){return S()},set submitBusy(u=!1){S(u),s()},get role(){return z()},set role(u="dialog"){z(u),s()},get dismissOnInteractOutside(){return b()},set dismissOnInteractOutside(u=!0){b(u),s()},get showCancel(){return o()},set showCancel(u=!0){o(u),s()},get showCloseButton(){return p()},set showCloseButton(u=!0){p(u),s()},get closeLabel(){return L()},set closeLabel(u=ce.ui_dialog_close_ariaLabel()){L(u),s()},get class(){return K()},set class(u){K(u),s()},get size(){return t()},set size(u="default"){t(u),s()},get initialFocus(){return l()},set initialFocus(u){l(u),s()},get focusContent(){return E()},set focusContent(u=!1){E(u),s()},get focusSubmit(){return B()},set focusSubmit(u=!1){B(u),s()},get focusCancel(){return W()},set focusCancel(u=!1){W(u),s()},get escapeKeydownBehavior(){return D()},set escapeKeydownBehavior(u="close"){D(u),s()},get enterKey(){return G()},set enterKey(u="submit"){G(u),s()},get modEnter(){return O()},set modEnter(u="submit"){O(u),s()},get onfocusin(){return ie()},set onfocusin(u){ie(u),s()},get onCloseAutoFocus(){return q()},set onCloseAutoFocus(u){q(u),s()},get onSubmit(){return X()},set onSubmit(u){X(u),s()},get onCancel(){return oe()},set onCancel(u){oe(u),s()},$set:re,$on:(u,Z)=>se(e,u,Z)},ot=V(),Kt=T(ot);return pe(Kt,()=>or,(u,Z)=>{Z(u,{get open(){return n()},get staticPosition(){return i()},onOpenChange:je=>!je&&He(),children:(je,Tr)=>{var ut=V(),Vt=T(ut);{let Ot=I(()=>be("flex min-h-0 flex-col overflow-hidden p-0",K()));pe(Vt,()=>ur,(Dt,Gt)=>{Gt(Dt,{get role(){return z()},get size(){return t()},get class(){return a(Ot)},get closeDisabled(){return a(Q)},get showCloseButton(){return p()},get closeLabel(){return L()},get escapeKeydownBehavior(){return D()},onOpenAutoFocus:Tt,get onCloseAutoFocus(){return q()},get onfocusin(){return ie()},onkeydown:M=>{M.key==="Escape"&&gr(a(Te),M)||M.key==="Escape"&&D()==="close"&&(M.preventDefault(),M.stopPropagation(),He())},onInteractOutside:M=>(a(Q)||!b())&&M.preventDefault(),onEscapeKeydown:M=>a(Q)&&M.preventDefault(),get ref(){return a(Te)},set ref(M){k(Te,M,!0)},children:(M,Ar)=>{Ft(M,{onSubmit:Bt,get busy(){return a(Q)},get enterKey(){return G()},get modEnter(){return O()},class:"flex min-h-0 min-w-0 flex-1 flex-col",children:(Mt,Kr)=>{lr(Mt,{get title(){return d()},get description(){return g()},get titleId(){return f()},get descriptionId(){return y()},get children(){return C()},get error(){return a(j)},footer:Rt=>{var lt=V(),Nt=T(lt);{var Ht=he=>{var Ue=V(),ct=T(Ue);H(ct,m),F(he,Ue)},jt=he=>{Lt(he,{secondary:Je=>{var Ae=V(),We=T(Ae);{var qe=le=>{mt(le,{variant:"ghost-light",get disabled(){return a(Q)},onclick:He,get ref(){return a(Re)},set ref(Ke){k(Re,Ke,!0)},children:(Ke,Xe)=>{$e();var dt=et();_e(()=>tt(dt,_())),F(Ke,dt)},$$slots:{default:!0}})};Y(We,le=>{o()&&le(qe)})}F(Je,Ae)},primary:Je=>{{let Ae=I(()=>B()?"focus-visible:outline focus-visible:-outline-offset-1":void 0),We=I(()=>a(Q)||S()),qe=I(()=>!v()||a(Q)||S());mt(Je,{type:"submit",get variant(){return P()},get class(){return a(Ae)},get loading(){return a(We)},get disabled(){return a(qe)},get ref(){return a(Ne)},set ref(le){k(Ne,le,!0)},children:(le,Ke)=>{$e();var Xe=et();_e(()=>tt(Xe,w())),F(le,Xe)},$$slots:{default:!0}})}},$$slots:{secondary:!0,primary:!0}})};Y(Nt,he=>{m()?he(Ht):he(jt,-1)})}F(Rt,lt)},$$slots:{footer:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})})}F(je,ut)},$$slots:{default:!0}})}),F(c,ot),ae(At)}function kr(c,e){if(new.target)return te({component:kr,...c});ne(e,!0);let n=r(e,"open",15,!1),i=r(e,"static",7,!1),d=r(e,"title",7),g=r(e,"description",7),f=r(e,"confirmLabel",7),y=r(e,"cancelLabel",7),C=r(e,"details",7),m=r(e,"busy",7,!1),w=r(e,"submitBusy",7,!1),_=r(e,"canSubmit",7,!0),P=r(e,"focusSubmit",7,!0),v=r(e,"focusCancel",7,!1),x=r(e,"enterKey",7,"submit"),S=r(e,"modEnter",7,"submit"),z=r(e,"destructive",7,!0),b=r(e,"class",7),o=r(e,"closeLabel",7),p=r(e,"onConfirm",7),L=r(e,"onCancel",7);var K={get open(){return n()},set open(t=!1){n(t),s()},get static(){return i()},set static(t=!1){i(t),s()},get title(){return d()},set title(t){d(t),s()},get description(){return g()},set description(t){g(t),s()},get confirmLabel(){return f()},set confirmLabel(t){f(t),s()},get cancelLabel(){return y()},set cancelLabel(t){y(t),s()},get details(){return C()},set details(t){C(t),s()},get busy(){return m()},set busy(t=!1){m(t),s()},get submitBusy(){return w()},set submitBusy(t=!1){w(t),s()},get canSubmit(){return _()},set canSubmit(t=!0){_(t),s()},get focusSubmit(){return P()},set focusSubmit(t=!0){P(t),s()},get focusCancel(){return v()},set focusCancel(t=!1){v(t),s()},get enterKey(){return x()},set enterKey(t="submit"){x(t),s()},get modEnter(){return S()},set modEnter(t="submit"){S(t),s()},get destructive(){return z()},set destructive(t=!0){z(t),s()},get class(){return b()},set class(t){b(t),s()},get closeLabel(){return o()},set closeLabel(t){o(t),s()},get onConfirm(){return p()},set onConfirm(t){p(t),s()},get onCancel(){return L()},set onCancel(t){L(t),s()},$set:re,$on:(t,l)=>se(e,t,l)};{let t=I(()=>z()?"destructive":"default");zt(c,{get static(){return i()},get title(){return d()},get description(){return g()},get submitLabel(){return f()},get cancelLabel(){return y()},get submitVariant(){return a(t)},get busy(){return m()},get submitBusy(){return w()},get canSubmit(){return _()},get focusSubmit(){return P()},get focusCancel(){return v()},get enterKey(){return x()},get modEnter(){return S()},get class(){return b()},get closeLabel(){return o()},get onSubmit(){return p()},get onCancel(){return L()},get open(){return n()},set open(l){n(l)},children:(l,E)=>{var B=V(),W=T(B);{var D=G=>{var O=V(),ie=T(O);H(ie,C),F(G,O)};Y(W,G=>{C()&&G(D)})}F(l,B)},$$slots:{default:!0}})}return ae(K)}var R,ke,Fe,Le,ze;class Fr{constructor(e,n){A(this,R,N(Wt([])));A(this,ke);A(this,Fe);A(this,Le,N(null));A(this,ze,N(0));Ye(this,ke,e),Ye(this,Fe,n)}get hover(){return a(h(this,Le))}set hover(e){k(h(this,Le),e,!0)}get keyboardIndex(){return a(h(this,ze))}set keyboardIndex(e){k(h(this,ze),e,!0)}get selectedIndexes(){const e=new Set(h(this,ke).call(this));return a(h(this,R)).flatMap((n,i)=>n&&e.has(n.value)?[i]:[])}allocate(e){return $(()=>{const n={value:e,element:null,disabled:!1},i=a(h(this,R)).indexOf(void 0);return i<0?a(h(this,R)).push(n)-1:(a(h(this,R))[i]=n,i)})}release(e){$(()=>{a(h(this,R))[e]&&(a(h(this,R))[e]=void 0,this.hover?.activeIndex===e&&this.hover.setActiveIndex(null),this.hover?.registerItem(e,null))})}update(e,n,i){$(()=>{const d=a(h(this,R))[e];d&&(d.value=n,d.disabled=i)})}register(e,n){$(()=>{const i=a(h(this,R))[e];i&&(i.element=n,this.hover?.registerItem(e,n))})}connect(e){$(()=>{this.hover?.destroy(),this.hover=mr(e,{axis:h(this,Fe)});for(const[n,i]of a(h(this,R)).entries())i?.element&&this.hover.registerItem(n,i.element)})}disconnect(){$(()=>{this.hover?.destroy(),this.hover=null})}activate(e){this.keyboardIndex=e,this.hover?.setActiveIndex(e)}focusAdjacent(e,n){const i=a(h(this,R)).map((f,y)=>({entry:f,entryIndex:y})).filter(({entry:f})=>f?.element&&!f.disabled),d=i.findIndex(({entryIndex:f})=>f===e);if(d<0||i.length===0)return;const g=i[(d+n+i.length)%i.length];this.activate(g.entryIndex),g.entry?.element?.focus()}}R=new WeakMap,ke=new WeakMap,Fe=new WeakMap,Le=new WeakMap,ze=new WeakMap;const Et=Symbol("toggle-group");var Lr=new Set(["$$slots","$$events","$$legacy","value","onValueChange","type","disabled","axis","variant","size","class","children"]),vt=Be("<!> <!>",1);function zr(c,e){if(new.target)return te({component:zr,...c});ne(e,!0);const n=Ct({base:"relative isolate inline-flex shrink-0 items-center justify-center gap-0.5 rounded-(--radius-medium) border-0 bg-card",variants:{variant:{default:"shadow-(--elevation-raised)",outline:"border border-border shadow-none",flat:"bg-muted/40 shadow-none"},size:{default:"",xs:"",sm:"",lg:""}},defaultVariants:{variant:"default",size:"default"}});let i=r(e,"value",15),d=r(e,"onValueChange",7),g=r(e,"type",7,"single"),f=r(e,"disabled",7,!1),y=r(e,"axis",7,"x"),C=r(e,"variant",7,"default"),m=r(e,"size",7,"default"),w=r(e,"class",7,""),_=r(e,"children",7),P=Ee(e,Lr),v=N(null);const x=new Fr(()=>Array.isArray(i())?i():typeof i()=="string"&&i()?[i()]:[],$(()=>y()));qt(Et,{state:x,get size(){return m()},get variant(){return C()}}),ye(()=>{if(a(v))return x.connect(a(v)),()=>x.disconnect()});function S(t){i(t),d()?.(t)}function z(t){i(t),d()?.(t)}var b={get value(){return i()},set value(t){i(t),s()},get onValueChange(){return d()},set onValueChange(t){d(t),s()},get type(){return g()},set type(t="single"){g(t),s()},get disabled(){return f()},set disabled(t=!1){f(t),s()},get axis(){return y()},set axis(t="x"){y(t),s()},get variant(){return C()},set variant(t="default"){C(t),s()},get size(){return m()},set size(t="default"){m(t),s()},get class(){return w()},set class(t=""){w(t),s()},get children(){return _()},set children(t){_(t),s()},$set:re,$on:(t,l)=>se(e,t,l)},o=V(),p=T(o);{var L=t=>{var l=V(),E=T(l);{let B=I(()=>Array.isArray(i())?i():[]),W=I(()=>be(n({variant:C(),size:m()}),w()));pe(E,()=>nt,(D,G)=>{G(D,Ze({type:"multiple",get value(){return a(B)},onValueChange:z,get disabled(){return f()},get class(){return a(W)}},()=>P,{get ref(){return a(v)},set ref(O){k(v,O,!0)},children:(O,ie)=>{var q=vt(),X=T(q);{var oe=j=>{bt(j,{get store(){return x.hover},get selectedIndexes(){return x.selectedIndexes}})};Y(X,j=>{x.hover&&j(oe)})}var ue=ve(X,2);H(ue,()=>_()??fe),F(O,q)},$$slots:{default:!0}}))})}F(t,l)},K=t=>{var l=V(),E=T(l);{let B=I(()=>typeof i()=="string"?i():""),W=I(()=>be(n({variant:C(),size:m()}),w()));pe(E,()=>nt,(D,G)=>{G(D,Ze({type:"single",get value(){return a(B)},onValueChange:S,get disabled(){return f()},get class(){return a(W)}},()=>P,{get ref(){return a(v)},set ref(O){k(v,O,!0)},children:(O,ie)=>{var q=vt(),X=T(q);{var oe=j=>{bt(j,{get store(){return x.hover},get selectedIndexes(){return x.selectedIndexes}})};Y(X,j=>{x.hover&&j(oe)})}var ue=ve(X,2);H(ue,()=>_()??fe),F(O,q)},$$slots:{default:!0}}))})}F(t,l)};Y(p,t=>{g()==="multiple"?t(L):t(K,-1)})}return F(c,o),ae(b)}var Er=new Set(["$$slots","$$events","$$legacy","value","disabled","variant","size","tooltip","class","onclick","onfocus","children"]);function Br(c,e){if(new.target)return te({component:Br,...c});ne(e,!0);const n=Ct({base:"type-caption relative z-10 inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap rounded-(--radius-medium) border-0 bg-transparent font-normal text-muted-foreground transition-[color,font-weight] duration-spring-fast ease-spring-fast hover:text-foreground active:bg-active disabled:pointer-events-none disabled:opacity-50 data-[state=on]:[--text-caption-weight:500] data-[state=on]:text-foreground motion-reduce:transition-none",variants:{variant:{default:"",outline:"bg-transparent",flat:""},size:{default:"h-(--control-height-medium) min-w-8 px-2",xs:"h-(--control-height-small) min-w-7 px-1.5",sm:"h-(--control-height-small) min-w-7 px-1.5",lg:"h-(--control-height-large) min-w-9 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});let i=r(e,"value",7),d=r(e,"disabled",7,!1),g=r(e,"variant",7,void 0),f=r(e,"size",7,void 0),y=r(e,"tooltip",7,void 0),C=r(e,"class",7,""),m=r(e,"onclick",7),w=r(e,"onfocus",7),_=r(e,"children",7),P=Ee(e,Er);const v=Xt(Et),x=v.state.allocate($(()=>i()));let S=N(null);const z=I(()=>f()??v?.size??"default"),b=I(()=>g()??v?.variant??"default");ye(()=>v.state.update(x,i(),d())),ye(()=>(v.state.register(x,a(S)),()=>v.state.register(x,null)));function o(t){v.state.activate(x),w()?.(t)}var p={get value(){return i()},set value(t){i(t),s()},get disabled(){return d()},set disabled(t=!1){d(t),s()},get variant(){return g()},set variant(t=void 0){g(t),s()},get size(){return f()},set size(t=void 0){f(t),s()},get tooltip(){return y()},set tooltip(t=void 0){y(t),s()},get class(){return C()},set class(t=""){C(t),s()},get onclick(){return m()},set onclick(t){m(t),s()},get onfocus(){return w()},set onfocus(t){w(t),s()},get children(){return _()},set children(t){_(t),s()},$set:re,$on:(t,l)=>se(e,t,l)},L=V(),K=T(L);{let t=I(()=>be(n({variant:a(b),size:a(z)}),C()));pe(K,()=>kt,(l,E)=>{E(l,Ze({get value(){return i()},get title(){return y()},get disabled(){return d()},get onclick(){return m()},onfocus:o,get class(){return a(t)}},()=>P,{get ref(){return a(S)},set ref(B){k(S,B,!0)},children:(B,W)=>{var D=V(),G=T(D);H(G,()=>_()??fe),F(B,D)},$$slots:{default:!0}}))})}return F(c,L),ae(p)}export{Fr as C,kr as D,Ft as F,zr as T,Lt as a,zt as b,Br as c};
@@ -1,4 +1,4 @@
1
- import{aZ as pi,U as mi,Y as $t,b0 as yi,V as bi,a_ as Ai,b as n,ay as Ut,aX as wi,B as Ci,r as Si,W as Tt,aV as Ri,q as qt,O as _i,a6 as ki,A as Ti,av as Ft}from"./CTjSHpOw.js";import{b as Xt,l as Yt}from"./BUUgD57b.js";var St=(function(){var e=n(function(O,r,g,u){for(g=g||{},u=O.length;u--;g[O[u]]=r);return g},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],a=[1,5],h=[1,6],c=[1,7],m=[1,5,10,12,14,16,18,19,21,23,36,37,38],f=[1,25],d=[1,26],w=[1,28],k=[1,29],P=[1,30],W=[1,31],F=[1,32],v=[1,33],z=[1,34],b=[1,35],T=[1,36],l=[1,37],I=[1,43],V=[1,42],X=[1,47],Y=[1,50],R=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],A=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],C=[1,65],M=[26,28],_={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(function(r,g,u,x,S,o,lt){var p=o.length-1;switch(S){case 5:x.setOrientation(o[p]);break;case 9:x.setDiagramTitle(o[p].text.trim());break;case 12:x.setLineData({text:"",type:"text"},o[p]);break;case 13:x.setLineData(o[p-1],o[p]);break;case 14:x.setBarData({text:"",type:"text"},o[p]);break;case 15:x.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),x.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:x.setXAxisTitle(o[p]);break;case 25:x.setXAxisTitle(o[p-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(o[p]);break;case 28:x.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:x.setYAxisTitle(o[p]);break;case 33:x.setYAxisTitle(o[p-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,36:a,37:h,38:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,36:a,37:h,38:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:h,38:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(m,[2,36]),e(m,[2,37]),e(m,[2,38]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,36:a,37:h,38:c}),{1:[2,3]},e(m,[2,5]),e(t,[2,7],{4:22,36:a,37:h,38:c}),{11:23,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:39,13:38,24:I,29:V,30:f,31:40,32:41,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:45,15:44,29:X,30:f,35:46,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:49,17:48,24:Y,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:52,17:51,24:Y,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{20:[1,53]},{22:[1,54]},e(R,[2,18]),{1:[2,2]},e(R,[2,8]),e(R,[2,9]),e(H,[2,39],{41:55,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l}),e(H,[2,40]),e(H,[2,41]),e(A,[2,42]),e(A,[2,44]),e(A,[2,45]),e(A,[2,46]),e(A,[2,47]),e(A,[2,48]),e(A,[2,49]),e(A,[2,50]),e(A,[2,51]),e(A,[2,52]),e(A,[2,53]),e(R,[2,10]),e(R,[2,24],{32:41,31:56,24:I,29:V}),e(R,[2,26]),e(R,[2,27]),{33:[1,57]},{11:59,30:f,34:58,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},e(R,[2,11]),e(R,[2,32],{35:60,29:X}),e(R,[2,34]),{33:[1,61]},e(R,[2,12]),{17:62,24:Y},{25:63,27:64,29:C},e(R,[2,14]),{17:66,24:Y},e(R,[2,16]),e(R,[2,17]),e(A,[2,43]),e(R,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(R,[2,33]),{29:[1,70]},e(R,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(M,[2,23],{30:[1,73]}),e(R,[2,15]),e(R,[2,28]),e(R,[2,29]),{11:59,30:f,34:74,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},e(R,[2,35]),e(R,[2,19]),{25:75,27:64,29:C},e(M,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(function(r,g){if(g.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=g,u}},"parseError"),parse:n(function(r){var g=this,u=[0],x=[],S=[null],o=[],lt=this.table,p="",dt=0,zt=0,ui=2,Vt=1,di=o.slice.call(arguments,1),D=Object.create(this.lexer),$={yy:{}};for(var bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bt)&&($.yy[bt]=this.yy[bt]);D.setInput(r,$.yy),$.yy.lexer=D,$.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var At=D.yylloc;o.push(At);var xi=D.options&&D.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fi(E){u.length=u.length-2*E,S.length=S.length-E,o.length=o.length-E}n(fi,"popStack");function Ot(){var E;return E=x.pop()||D.lex()||Vt,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=g.symbols_[E]||E),E}n(Ot,"lex");for(var L,U,B,wt,j={},xt,N,Wt,ft;;){if(U=u[u.length-1],this.defaultActions[U]?B=this.defaultActions[U]:((L===null||typeof L>"u")&&(L=Ot()),B=lt[U]&&lt[U][L]),typeof B>"u"||!B.length||!B[0]){var Ct="";ft=[];for(xt in lt[U])this.terminals_[xt]&&xt>ui&&ft.push("'"+this.terminals_[xt]+"'");D.showPosition?Ct="Parse error on line "+(dt+1)+`:
1
+ import{aZ as pi,U as mi,Y as $t,b0 as yi,V as bi,a_ as Ai,b as n,ay as Ut,aX as wi,B as Ci,r as Si,W as Tt,aV as Ri,q as qt,O as _i,a6 as ki,A as Ti,av as Ft}from"./BdNiI0PS.js";import{b as Xt,l as Yt}from"./CI-nVEa_.js";var St=(function(){var e=n(function(O,r,g,u){for(g=g||{},u=O.length;u--;g[O[u]]=r);return g},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],a=[1,5],h=[1,6],c=[1,7],m=[1,5,10,12,14,16,18,19,21,23,36,37,38],f=[1,25],d=[1,26],w=[1,28],k=[1,29],P=[1,30],W=[1,31],F=[1,32],v=[1,33],z=[1,34],b=[1,35],T=[1,36],l=[1,37],I=[1,43],V=[1,42],X=[1,47],Y=[1,50],R=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],A=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],C=[1,65],M=[26,28],_={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(function(r,g,u,x,S,o,lt){var p=o.length-1;switch(S){case 5:x.setOrientation(o[p]);break;case 9:x.setDiagramTitle(o[p].text.trim());break;case 12:x.setLineData({text:"",type:"text"},o[p]);break;case 13:x.setLineData(o[p-1],o[p]);break;case 14:x.setBarData({text:"",type:"text"},o[p]);break;case 15:x.setBarData(o[p-1],o[p]);break;case 16:this.$=o[p].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=o[p].trim(),x.setAccDescription(this.$);break;case 19:this.$=o[p-1];break;case 20:case 30:this.$=[o[p-2],...o[p]];break;case 21:case 31:this.$=[o[p]];break;case 22:this.$={value:Number(o[p-1]),label:o[p]};break;case 23:this.$={value:Number(o[p]),label:""};break;case 24:x.setXAxisTitle(o[p]);break;case 25:x.setXAxisTitle(o[p-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(o[p]);break;case 28:x.setXAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 29:this.$=o[p-1];break;case 32:x.setYAxisTitle(o[p]);break;case 33:x.setYAxisTitle(o[p-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(o[p-2]),Number(o[p]));break;case 39:this.$={text:o[p],type:"text"};break;case 40:this.$={text:o[p],type:"text"};break;case 41:this.$={text:o[p],type:"markdown"};break;case 42:this.$=o[p];break;case 43:this.$=o[p-1]+""+o[p];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,36:a,37:h,38:c}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,36:a,37:h,38:c}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:h,38:c}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(m,[2,36]),e(m,[2,37]),e(m,[2,38]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,36:a,37:h,38:c}),{1:[2,3]},e(m,[2,5]),e(t,[2,7],{4:22,36:a,37:h,38:c}),{11:23,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:39,13:38,24:I,29:V,30:f,31:40,32:41,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:45,15:44,29:X,30:f,35:46,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:49,17:48,24:Y,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{11:52,17:51,24:Y,30:f,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},{20:[1,53]},{22:[1,54]},e(R,[2,18]),{1:[2,2]},e(R,[2,8]),e(R,[2,9]),e(H,[2,39],{41:55,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l}),e(H,[2,40]),e(H,[2,41]),e(A,[2,42]),e(A,[2,44]),e(A,[2,45]),e(A,[2,46]),e(A,[2,47]),e(A,[2,48]),e(A,[2,49]),e(A,[2,50]),e(A,[2,51]),e(A,[2,52]),e(A,[2,53]),e(R,[2,10]),e(R,[2,24],{32:41,31:56,24:I,29:V}),e(R,[2,26]),e(R,[2,27]),{33:[1,57]},{11:59,30:f,34:58,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},e(R,[2,11]),e(R,[2,32],{35:60,29:X}),e(R,[2,34]),{33:[1,61]},e(R,[2,12]),{17:62,24:Y},{25:63,27:64,29:C},e(R,[2,14]),{17:66,24:Y},e(R,[2,16]),e(R,[2,17]),e(A,[2,43]),e(R,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(R,[2,33]),{29:[1,70]},e(R,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(M,[2,23],{30:[1,73]}),e(R,[2,15]),e(R,[2,28]),e(R,[2,29]),{11:59,30:f,34:74,39:24,40:d,41:27,42:w,43:k,44:P,45:W,46:F,47:v,48:z,49:b,50:T,51:l},e(R,[2,35]),e(R,[2,19]),{25:75,27:64,29:C},e(M,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(function(r,g){if(g.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=g,u}},"parseError"),parse:n(function(r){var g=this,u=[0],x=[],S=[null],o=[],lt=this.table,p="",dt=0,zt=0,ui=2,Vt=1,di=o.slice.call(arguments,1),D=Object.create(this.lexer),$={yy:{}};for(var bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bt)&&($.yy[bt]=this.yy[bt]);D.setInput(r,$.yy),$.yy.lexer=D,$.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var At=D.yylloc;o.push(At);var xi=D.options&&D.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fi(E){u.length=u.length-2*E,S.length=S.length-E,o.length=o.length-E}n(fi,"popStack");function Ot(){var E;return E=x.pop()||D.lex()||Vt,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=g.symbols_[E]||E),E}n(Ot,"lex");for(var L,U,B,wt,j={},xt,N,Wt,ft;;){if(U=u[u.length-1],this.defaultActions[U]?B=this.defaultActions[U]:((L===null||typeof L>"u")&&(L=Ot()),B=lt[U]&&lt[U][L]),typeof B>"u"||!B.length||!B[0]){var Ct="";ft=[];for(xt in lt[U])this.terminals_[xt]&&xt>ui&&ft.push("'"+this.terminals_[xt]+"'");D.showPosition?Ct="Parse error on line "+(dt+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+ft.join(", ")+", got '"+(this.terminals_[L]||L)+"'":Ct="Parse error on line "+(dt+1)+": Unexpected "+(L==Vt?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(Ct,{text:D.match,token:this.terminals_[L]||L,line:D.yylineno,loc:At,expected:ft})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+L);switch(B[0]){case 1:u.push(L),S.push(D.yytext),o.push(D.yylloc),u.push(B[1]),L=null,zt=D.yyleng,p=D.yytext,dt=D.yylineno,At=D.yylloc;break;case 2:if(N=this.productions_[B[1]][1],j.$=S[S.length-N],j._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},xi&&(j._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),wt=this.performAction.apply(j,[p,zt,dt,$.yy,B[1],S,o].concat(di)),typeof wt<"u")return wt;N&&(u=u.slice(0,-1*N*2),S=S.slice(0,-1*N),o=o.slice(0,-1*N)),u.push(this.productions_[B[1]][0]),S.push(j.$),o.push(j._$),Wt=lt[u[u.length-2]][u[u.length-1]],u.push(Wt);break;case 3:return!0}}return!0},"parse")},rt=(function(){var O={EOF:1,parseError:n(function(g,u){if(this.yy.parser)this.yy.parser.parseError(g,u);else throw new Error(g)},"parseError"),setInput:n(function(r,g){return this.yy=g||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var g=r.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:n(function(r){var g=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===x.length?this.yylloc.first_column:0)+x[x.length-u.length].length-u[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(r){this.unput(this.match.slice(r))},"less"),pastInput:n(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var r=this.pastInput(),g=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{b as p,ay as C,aX as H,W as _,r as q,a6 as G,B as U,aV as j,X as K}from"./CTjSHpOw.js";var A="",M="",O="",D=[],b=new Map,v=p(e=>j(e,K()),"sanitizeText"),y=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),J=p(()=>{A="",M="",O="",D.length=0,b.clear(),q(),C.debug("[Railroad] Database cleared")},"clear"),Y=p(e=>{A=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),P=p(()=>A,"getTitle"),Q=p(e=>{const i={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),Z=p(()=>D,"getRules"),V=p(e=>b.get(e),"getRule"),ee=p(e=>{M=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),te=p(()=>M,"getAccTitle"),re=p(e=>{O=v(e).replace(/\n\s+/g,`
1
+ import{b as p,ay as C,aX as H,W as _,r as q,a6 as G,B as U,aV as j,X as K}from"./BdNiI0PS.js";var A="",M="",O="",D=[],b=new Map,v=p(e=>j(e,K()),"sanitizeText"),y=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),J=p(()=>{A="",M="",O="",D.length=0,b.clear(),q(),C.debug("[Railroad] Database cleared")},"clear"),Y=p(e=>{A=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),P=p(()=>A,"getTitle"),Q=p(e=>{const i={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),Z=p(()=>D,"getRules"),V=p(e=>b.get(e),"getRule"),ee=p(e=>{M=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),te=p(()=>M,"getAccTitle"),re=p(e=>{O=v(e).replace(/\n\s+/g,`
2
2
  `),C.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ie=p(()=>O,"getAccDescription"),ae=Y,ne=P,oe={clear:J,setTitle:Y,getTitle:P,addRule:Q,getRules:Z,getRule:V,setAccTitle:ee,getAccTitle:te,setAccDescription:re,getAccDescription:ie,setDiagramTitle:ae,getDiagramTitle:ne},f={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},le=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,se=/^[\w "',.-]+$/,de=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),L=p(e=>e?Object.keys(e).every(i=>i==="railroad"||de.has(i)):!1,"isRailroadStyleOptions"),ce=p(e=>e?"railroad"in e&&e.railroad?e.railroad:L(e)?e:{}:{},"extractRailroadOverrides"),me=p(e=>{if(!e||L(e))return{};const{railroad:i,svgId:n,theme:a,look:t,...r}=e;return r},"extractThemeOverrides"),m=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return le.test(n)?n:i},"sanitizeColorValue"),X=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return se.test(n)?n:i},"sanitizeFontFamilyValue"),F=p((e,i)=>{const n=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(n)&&n>=0?n:i},"sanitizeNumberValue"),he=p(e=>{const i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),pe=p(e=>{const i=X(e.fontFamily,f.fontFamily),n=he(e.fontSize)??f.fontSize;return{...f,fontFamily:i,fontSize:n,terminalFill:m(e.secondBkg??e.secondaryColor,f.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,f.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,f.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,f.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,f.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,f.nonTerminalTextColor),lineColor:m(e.lineColor,f.lineColor),markerFill:m(e.lineColor,f.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,f.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,f.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,f.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,f.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,f.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,f.ruleNameColor)}},"buildThemeDefaults"),E=p(e=>{const i=_(),n={...G(),...i.themeVariables??{},...me(e)},a=pe(n),t={...i.railroad??{},...ce(e)};return{compactMode:t.compactMode??a.compactMode,padding:F(t.padding,a.padding),verticalSeparation:F(t.verticalSeparation,a.verticalSeparation),horizontalSeparation:F(t.horizontalSeparation,a.horizontalSeparation),arcRadius:F(t.arcRadius,a.arcRadius),fontSize:F(t.fontSize,a.fontSize),fontFamily:X(t.fontFamily,a.fontFamily),terminalFill:m(t.terminalFill,a.terminalFill),terminalStroke:m(t.terminalStroke,a.terminalStroke),terminalTextColor:m(t.terminalTextColor,a.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,a.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,a.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,a.nonTerminalTextColor),lineColor:m(t.lineColor,a.lineColor),strokeWidth:F(t.strokeWidth,a.strokeWidth),markerFill:m(t.markerFill,a.markerFill),commentFill:m(t.commentFill,a.commentFill),commentStroke:m(t.commentStroke,a.commentStroke),commentTextColor:m(t.commentTextColor,a.commentTextColor),specialFill:m(t.specialFill,a.specialFill),specialStroke:m(t.specialStroke,a.specialStroke),ruleNameColor:m(t.ruleNameColor,a.ruleNameColor),showMarkers:t.showMarkers??a.showMarkers,markerRadius:F(t.markerRadius,a.markerRadius)}},"buildRailroadStyleOptions"),Te=p(e=>{const{fontFamily:i,fontSize:n,terminalFill:a,terminalStroke:t,terminalTextColor:r,nonTerminalFill:o,nonTerminalStroke:g,nonTerminalTextColor:l,lineColor:s,strokeWidth:h,markerFill:u,commentFill:c,commentStroke:w,commentTextColor:d,specialFill:T,specialStroke:z,ruleNameColor:S}=E(e);return`
3
3
  .railroad-diagram {
4
4
  font-family: ${i};
@@ -1 +1 @@
1
- import{t as oe,br as i,a_ as h,bz as ie,bt as ce,b as le,bv as $}from"./CGWRZzdk.js";import{bs as ue,bk as me,bH as O,ca as ve,aD as s,a5 as R,bl as ee,bS as B,bA as F,b_ as D,bO as Q,W as w,bn as de,bV as te,c9 as g,aA as l,aB as j,a7 as fe,ay as pe,b$ as ae}from"./DYhIMPy1.js";import{s as ge,q as xe,v as K,u as se}from"./B70m4__L.js";import{F as re,c8 as _e,bV as be}from"./Dlo7xxGg.js";import{t as T,J as ne}from"./BOTuR8YM.js";var he=j('<span class="animated-number-target svelte-194ris3" aria-atomic="true"> </span>'),we=j('<span><span class="animated-number-value svelte-194ris3"> </span> <!></span>');function Y(L,r){if(new.target)return oe({component:Y,...L});ue(r,!0);const y=()=>$(W,"$displayValue",x),V=()=>$(q,"$displaySecondaryValue",x),[x,Z]=ce();let n=i(r,"value",7),c=i(r,"tier",7,"slow"),o=i(r,"secondaryValue",7),_=i(r,"format",7,e=>T(e)),z=i(r,"class",7,""),N=i(r,"accessible",7,!0),S=i(r,"pulse",7,!0),k=te(null),m=n(),v=o(),P=te(!1),C=0;const W=ne(n(),c()),q=ne(o()??0,c());me(()=>(O(P,ge(),!0),xe(e=>O(P,e,!0)))),ve(()=>{if(s(P)){C+=1,O(k,null),m=n(),v=o(),W.set(n()),q.set(o()??0);return}if(n()!==m||o()!==v){const e=n()!==m?m:v,u=n()!==m?n():o();O(k,(u??0)>(e??0)?"up":"down",!0),m=n(),v=o();const M=++C;return Promise.all([W.set(n()),q.set(o()??0)]).then(()=>{M===C&&O(k,null)}),()=>{C+=1}}});const t=g(()=>_()(y(),o()===void 0?void 0:V())),b=g(()=>_()(n(),o()));var E={get value(){return n()},set value(e){n(e),l()},get tier(){return c()},set tier(e="slow"){c(e),l()},get secondaryValue(){return o()},set secondaryValue(e){o(e),l()},get format(){return _()},set format(e=u=>T(u)){_(e),l()},get class(){return z()},set class(e=""){z(e),l()},get accessible(){return N()},set accessible(e=!0){N(e),l()},get pulse(){return S()},set pulse(e=!0){S(e),l()},$set:ie,$on:(e,u)=>le(r,e,u)},A=we();let G;var H=R(A),f=ee(H,!0),d=B(H,2);{var I=e=>{var u=he(),M=ee(u,!0);D(()=>Q(M,s(b))),w(e,u)};h(d,e=>{N()&&e(I)})}F(A),D(()=>{G=K(A,1,`animated-number ${z()??""}`,"svelte-194ris3",G,{"animating-up":S()&&s(k)==="up","animating-down":S()&&s(k)==="down"}),se(A,"data-pulse",S()?"true":"false"),se(H,"aria-hidden",N()?"true":void 0),Q(f,s(t))}),w(L,A);var J=de(E);return Z(),J}var ye=j("<span><!> <span>+<!></span></span>"),Ve=j("<span><!> <span>-<!></span></span>"),ze=j("<div><!> <!></div>");function Se(L,r){if(new.target)return oe({component:Se,...L});ue(r,!0);let y=i(r,"additions",7,0),V=i(r,"deletions",7,0),x=i(r,"showZero",7,!1),Z=i(r,"size",7,"xs"),n=i(r,"showIcons",7,!1),c=i(r,"animated",7,!1),o=i(r,"class",7,""),_=g(()=>y()>0),z=g(()=>V()>0),N=g(()=>s(_)||s(z)||x());const S={xxs:"text-[0.6rem]",xs:"text-[0.7rem]",sm:"text-sm",md:"text-base"},k={xxs:8,xs:10,sm:12,md:14},m=g(()=>S[Z()]),v=g(()=>k[Z()]);var P={get additions(){return y()},set additions(t=0){y(t),l()},get deletions(){return V()},set deletions(t=0){V(t),l()},get showZero(){return x()},set showZero(t=!1){x(t),l()},get size(){return Z()},set size(t="xs"){Z(t),l()},get showIcons(){return n()},set showIcons(t=!1){n(t),l()},get animated(){return c()},set animated(t=!1){c(t),l()},get class(){return o()},set class(t=""){o(t),l()},$set:ie,$on:(t,b)=>le(r,t,b)},C=fe(),W=pe(C);{var q=t=>{var b=ze(),E=R(b);{var A=f=>{var d=ye(),I=R(d);{var J=a=>{{let p=g(()=>s(v)===10||s(v)===12?"xs":"sm");re(a,{get icon(){return _e},get size(){return s(p)}})}};h(I,a=>{n()&&a(J)})}var e=B(I,2),u=B(R(e));{var M=a=>{Y(a,{get value(){return y()}})},U=a=>{var p=ae();D(X=>Q(p,X),[()=>T(y())]),w(a,p)};h(u,a=>{c()?a(M):a(U,-1)})}F(e),F(d),D(()=>K(d,1,`flex items-center whitespace-nowrap gap-0.5 font-mono ${s(m)??""} ${s(_)?"text-emerald-600 dark:text-emerald-500":"text-emerald-600/30 dark:text-emerald-500/30"}`)),w(f,d)};h(E,f=>{(s(_)||x())&&f(A)})}var G=B(E,2);{var H=f=>{var d=Ve(),I=R(d);{var J=a=>{{let p=g(()=>s(v)===10||s(v)===12?"xs":"sm");re(a,{get icon(){return be},get size(){return s(p)}})}};h(I,a=>{n()&&a(J)})}var e=B(I,2),u=B(R(e));{var M=a=>{Y(a,{get value(){return V()}})},U=a=>{var p=ae();D(X=>Q(p,X),[()=>T(V())]),w(a,p)};h(u,a=>{c()?a(M):a(U,-1)})}F(e),F(d),D(()=>K(d,1,`flex items-center whitespace-nowrap gap-0.5 font-mono ${s(m)??""} ${s(z)?"text-red-600 dark:text-red-500":"text-red-600/30 dark:text-red-500/30"}`)),w(f,d)};h(G,f=>{(s(z)||x())&&f(H)})}F(b),D(()=>K(b,1,`flex items-center gap-1 ${o()??""}`)),w(t,b)};h(W,t=>{s(N)&&t(q)})}return w(L,C),de(P)}export{Y as A,Se as L};
1
+ import{t as oe,br as i,a_ as h,bz as ie,bt as ce,b as le,bv as $}from"./CGWRZzdk.js";import{bs as ue,bk as me,bH as O,ca as ve,aD as s,a5 as R,bl as ee,bS as B,bA as F,b_ as D,bO as Q,W as w,bn as de,bV as te,c9 as g,aA as l,aB as j,a7 as fe,ay as pe,b$ as ae}from"./DYhIMPy1.js";import{s as ge,q as xe,v as K,u as se}from"./BjnZ1Xf3.js";import{F as re,c8 as _e,bV as be}from"./By0eqGj-.js";import{t as T,J as ne}from"./BM1KP-FJ.js";var he=j('<span class="animated-number-target svelte-194ris3" aria-atomic="true"> </span>'),we=j('<span><span class="animated-number-value svelte-194ris3"> </span> <!></span>');function Y(L,r){if(new.target)return oe({component:Y,...L});ue(r,!0);const y=()=>$(W,"$displayValue",x),V=()=>$(q,"$displaySecondaryValue",x),[x,Z]=ce();let n=i(r,"value",7),c=i(r,"tier",7,"slow"),o=i(r,"secondaryValue",7),_=i(r,"format",7,e=>T(e)),z=i(r,"class",7,""),N=i(r,"accessible",7,!0),S=i(r,"pulse",7,!0),k=te(null),m=n(),v=o(),P=te(!1),C=0;const W=ne(n(),c()),q=ne(o()??0,c());me(()=>(O(P,ge(),!0),xe(e=>O(P,e,!0)))),ve(()=>{if(s(P)){C+=1,O(k,null),m=n(),v=o(),W.set(n()),q.set(o()??0);return}if(n()!==m||o()!==v){const e=n()!==m?m:v,u=n()!==m?n():o();O(k,(u??0)>(e??0)?"up":"down",!0),m=n(),v=o();const M=++C;return Promise.all([W.set(n()),q.set(o()??0)]).then(()=>{M===C&&O(k,null)}),()=>{C+=1}}});const t=g(()=>_()(y(),o()===void 0?void 0:V())),b=g(()=>_()(n(),o()));var E={get value(){return n()},set value(e){n(e),l()},get tier(){return c()},set tier(e="slow"){c(e),l()},get secondaryValue(){return o()},set secondaryValue(e){o(e),l()},get format(){return _()},set format(e=u=>T(u)){_(e),l()},get class(){return z()},set class(e=""){z(e),l()},get accessible(){return N()},set accessible(e=!0){N(e),l()},get pulse(){return S()},set pulse(e=!0){S(e),l()},$set:ie,$on:(e,u)=>le(r,e,u)},A=we();let G;var H=R(A),f=ee(H,!0),d=B(H,2);{var I=e=>{var u=he(),M=ee(u,!0);D(()=>Q(M,s(b))),w(e,u)};h(d,e=>{N()&&e(I)})}F(A),D(()=>{G=K(A,1,`animated-number ${z()??""}`,"svelte-194ris3",G,{"animating-up":S()&&s(k)==="up","animating-down":S()&&s(k)==="down"}),se(A,"data-pulse",S()?"true":"false"),se(H,"aria-hidden",N()?"true":void 0),Q(f,s(t))}),w(L,A);var J=de(E);return Z(),J}var ye=j("<span><!> <span>+<!></span></span>"),Ve=j("<span><!> <span>-<!></span></span>"),ze=j("<div><!> <!></div>");function Se(L,r){if(new.target)return oe({component:Se,...L});ue(r,!0);let y=i(r,"additions",7,0),V=i(r,"deletions",7,0),x=i(r,"showZero",7,!1),Z=i(r,"size",7,"xs"),n=i(r,"showIcons",7,!1),c=i(r,"animated",7,!1),o=i(r,"class",7,""),_=g(()=>y()>0),z=g(()=>V()>0),N=g(()=>s(_)||s(z)||x());const S={xxs:"text-[0.6rem]",xs:"text-[0.7rem]",sm:"text-sm",md:"text-base"},k={xxs:8,xs:10,sm:12,md:14},m=g(()=>S[Z()]),v=g(()=>k[Z()]);var P={get additions(){return y()},set additions(t=0){y(t),l()},get deletions(){return V()},set deletions(t=0){V(t),l()},get showZero(){return x()},set showZero(t=!1){x(t),l()},get size(){return Z()},set size(t="xs"){Z(t),l()},get showIcons(){return n()},set showIcons(t=!1){n(t),l()},get animated(){return c()},set animated(t=!1){c(t),l()},get class(){return o()},set class(t=""){o(t),l()},$set:ie,$on:(t,b)=>le(r,t,b)},C=fe(),W=pe(C);{var q=t=>{var b=ze(),E=R(b);{var A=f=>{var d=ye(),I=R(d);{var J=a=>{{let p=g(()=>s(v)===10||s(v)===12?"xs":"sm");re(a,{get icon(){return _e},get size(){return s(p)}})}};h(I,a=>{n()&&a(J)})}var e=B(I,2),u=B(R(e));{var M=a=>{Y(a,{get value(){return y()}})},U=a=>{var p=ae();D(X=>Q(p,X),[()=>T(y())]),w(a,p)};h(u,a=>{c()?a(M):a(U,-1)})}F(e),F(d),D(()=>K(d,1,`flex items-center whitespace-nowrap gap-0.5 font-mono ${s(m)??""} ${s(_)?"text-emerald-600 dark:text-emerald-500":"text-emerald-600/30 dark:text-emerald-500/30"}`)),w(f,d)};h(E,f=>{(s(_)||x())&&f(A)})}var G=B(E,2);{var H=f=>{var d=Ve(),I=R(d);{var J=a=>{{let p=g(()=>s(v)===10||s(v)===12?"xs":"sm");re(a,{get icon(){return be},get size(){return s(p)}})}};h(I,a=>{n()&&a(J)})}var e=B(I,2),u=B(R(e));{var M=a=>{Y(a,{get value(){return V()}})},U=a=>{var p=ae();D(X=>Q(p,X),[()=>T(V())]),w(a,p)};h(u,a=>{c()?a(M):a(U,-1)})}F(e),F(d),D(()=>K(d,1,`flex items-center whitespace-nowrap gap-0.5 font-mono ${s(m)??""} ${s(z)?"text-red-600 dark:text-red-500":"text-red-600/30 dark:text-red-500/30"}`)),w(f,d)};h(G,f=>{(s(z)||x())&&f(H)})}F(b),D(()=>K(b,1,`flex items-center gap-1 ${o()??""}`)),w(t,b)};h(W,t=>{s(N)&&t(q)})}return w(L,C),de(P)}export{Y as A,Se as L};
@@ -1,2 +1,2 @@
1
- import{t as ht,br as m,bp as g,a_ as p,bz as bt,b as xt}from"./CGWRZzdk.js";import{bs as yt,a7 as kt,ay as Q,W as u,bn as At,aA as h,a5 as F,bS as f,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as It}from"./DYhIMPy1.js";import{I as Bt,n as Ct}from"./B70m4__L.js";import{I as Pt,D as zt}from"./BOTuR8YM.js";import{f as M}from"./B422XfSt.js";import"./BEyWfhqM.js";import{F as rt,c9 as Rt,cl as St,aq as Wt}from"./Dlo7xxGg.js";import{e as Dt}from"./G8V-Z8rX.js";import{D as Lt}from"./BrNDzmoP.js";import{Ix as $t,uk as Ht}from"./CnZcDXmL.js";import{g as Nt}from"./_0BFM6IU.js";var qt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),Ft=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Mt=k("<!> ",1),Ot=k('<div class="mb-2 flex gap-1"></div>'),Vt=k('<div class="border-t border-border p-2"><!> <!></div>'),jt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Tt(U,n){if(new.target)return ht({component:Tt,...U});yt(n,!0);let A=m(n,"patches",7),O=m(n,"label",23,()=>g.ui_patchBlock_label()),V=m(n,"lastApply",7),w=m(n,"linkedAgentId",7),L=m(n,"workspaceId",7),P=m(n,"applying",7,!1),$=m(n,"onApply",7),H=m(n,"onRevert",7),j=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),T=y(()=>V()?.status==="success");function st(t){const o=t.split(`
1
+ import{t as ht,br as m,bp as g,a_ as p,bz as bt,b as xt}from"./CGWRZzdk.js";import{bs as yt,a7 as kt,ay as Q,W as u,bn as At,aA as h,a5 as F,bS as f,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as It}from"./DYhIMPy1.js";import{I as Bt,n as Ct}from"./BjnZ1Xf3.js";import{I as Pt,D as zt}from"./BM1KP-FJ.js";import{f as M}from"./KJX0Kw6L.js";import"./BEyWfhqM.js";import{F as rt,c9 as Rt,cl as St,aq as Wt}from"./By0eqGj-.js";import{e as Dt}from"./BdUSoBxL.js";import{D as Lt}from"./gJDgmD_2.js";import{Ix as $t,uk as Ht}from"./CicdOSYm.js";import{g as Nt}from"./DjCFWz1t.js";var qt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),Ft=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Mt=k("<!> ",1),Ot=k('<div class="mb-2 flex gap-1"></div>'),Vt=k('<div class="border-t border-border p-2"><!> <!></div>'),jt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Tt(U,n){if(new.target)return ht({component:Tt,...U});yt(n,!0);let A=m(n,"patches",7),O=m(n,"label",23,()=>g.ui_patchBlock_label()),V=m(n,"lastApply",7),w=m(n,"linkedAgentId",7),L=m(n,"workspaceId",7),P=m(n,"applying",7,!1),$=m(n,"onApply",7),H=m(n,"onRevert",7),j=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),T=y(()=>V()?.status==="success");function st(t){const o=t.split(`
2
2
  `);let v=0,b=0;for(const I of o)I.startsWith("+")&&!I.startsWith("+++")?v++:I.startsWith("-")&&!I.startsWith("---")&&b++;return{addCount:v,removeCount:b}}let X=y(()=>e(z)?st(e(z).diff):{addCount:0,removeCount:0}),G=y(()=>P()?{label:g.ui_patchBlock_applying_label(),icon:null}:e(T)?{label:g.ui_patchBlock_revert_label(),icon:St}:{label:g.ui_patchBlock_apply_label(),icon:Wt}),nt=y(()=>!!($()||H()));function ot(){et(j,!e(j))}function lt(){e(T)?H()?.():$()?.()}var it={get patches(){return A()},set patches(t){A(t),h()},get label(){return O()},set label(t=g.ui_patchBlock_label()){O(t),h()},get lastApply(){return V()},set lastApply(t){V(t),h()},get linkedAgentId(){return w()},set linkedAgentId(t){w(t),h()},get workspaceId(){return L()},set workspaceId(t){L(t),h()},get applying(){return P()},set applying(t=!1){P(t),h()},get onApply(){return $()},set onApply(t){$(t),h()},get onRevert(){return H()},set onRevert(t){H(t),h()},$set:bt,$on:(t,o)=>xt(n,t,o)},Y=kt(),ct=Q(Y);{var dt=t=>{var o=jt(),v=F(o),b=F(v);{var I=a=>{{let c=y(()=>g.ui_patchBlock_viewAgent_tooltip());M(a,{variant:"plain",size:"icon-compact",iconOnly:!0,class:"size-4! shrink-0 rounded-sm! transition-opacity hover:opacity-80",onclick:l=>{L()&&$t.dispatch(Ht(L(),{agentId:w(),...Nt(l)}))},get title(){return e(c)},children:(l,_)=>{Dt(l,{get agentId(){return w()},variant:"compact"})},$$slots:{default:!0}})}};p(b,a=>{w()&&a(I)})}var Z=f(b,2);M(Z,{variant:"plain",size:"compact",class:"h-auto! min-w-0 flex-1 shrink items-center justify-start gap-2 px-0! py-0! text-muted-foreground transition-colors hover:text-foreground",truncateLabel:!1,labelClass:"flex min-w-0 flex-1 items-center gap-2",onclick:ot,children:(a,c)=>{var l=Ft(),_=Q(l);{var B=i=>{rt(i,{get icon(){return Rt},size:10,class:"text-muted-foreground"})};p(_,i=>{w()||i(B)})}var C=f(_,2),s=S(C,!0),d=f(C,2),r=F(d),R=S(r),N=f(r,2),J=S(N);W(d);var K=f(d,2);{var tt=i=>{var q=qt(),mt=S(q,!0);D(gt=>x(mt,gt),[()=>g.ui_patchBlock_applied_label()]),u(i,q)};p(K,i=>{e(T)&&i(tt)})}D(()=>{x(s,O()),x(R,`+${e(X).addCount??""}`),x(J,`-${e(X).removeCount??""}`)}),u(a,l)},$$slots:{default:!0}});var ut=f(Z,2);{var ft=a=>{M(a,{variant:"ghost-light",size:"sm",class:"type-caption shrink-0",onclick:lt,get disabled(){return P()},children:(c,l)=>{var _=Mt(),B=Q(_);{var C=r=>{Bt(r,{size:12})},s=r=>{rt(r,{get icon(){return e(G).icon},size:"xs"})};p(B,r=>{P()?r(C):e(G).icon&&r(s,1)})}var d=f(B);D(()=>x(d,` ${e(G).label??""}`)),u(c,_)},$$slots:{default:!0}})};p(ut,a=>{e(nt)&&a(ft)})}W(v);var vt=f(v,2);{var _t=a=>{var c=Vt(),l=F(c);{var _=s=>{var d=Ot();Ct(d,23,A,(r,R)=>`patch-${R}-${r.filePath}`,(r,R,N)=>{{let J=y(()=>e(N)===e(E)?"default":"ghost-light");M(r,{get variant(){return e(J)},size:"sm",class:"type-caption",onclick:()=>et(E,e(N),!0),children:(K,tt)=>{wt();var i=It();D(q=>x(i,q),[()=>e(R).filePath.split("/").pop()]),u(K,i)},$$slots:{default:!0}})}}),W(d),u(s,d)};p(l,s=>{A().length>1&&s(_)})}var B=f(l,2);{var C=s=>{Lt(s,{get patch(){return e(z).diff},get fileName(){return e(z).filePath},showHeader:!0,showStats:!0,showLineNumbers:!0,maxHeight:"300px",collapsible:!1,class:"overflow-hidden rounded-sm border border-border"})};p(B,s=>{e(z)&&s(C)})}W(c),Pt(3,c,()=>zt,()=>({tier:"moderate"})),u(a,c)};p(vt,a=>{e(j)&&a(_t)})}W(o),u(t,o)},pt=t=>{var o=Et(),v=S(o,!0);D(b=>x(v,b),[()=>g.ui_patchBlock_invalid_error()]),u(t,o)};p(ct,t=>{A()?.length?t(dt):t(pt,-1)})}return u(U,Y),At(it)}export{Tt as P};
@@ -1 +1 @@
1
- import{K as G,T as F,_ as N,a0 as A,d as J,f as X,X as Q,Q as Y,n as _,e as Z,c as q,m as W,h as K,l as O}from"./hX9Crt6i.js";import{D as P,a as tt,d as et}from"./CQcEqK4G.js";import{o as m,b as B,s as l,n as h,l as v,_ as M,c as U,u as nt}from"./CIyUrgF0.js";import{I as at}from"./Bhmm0Csf.js";const it="/app/immutable/assets/PatrickHand-Regular.CyLOmwMC.ttf";let D=null,R=null;const L=P.badgeFontFamily;function $(){return R??L}function H(){return D||(D=(async()=>{let t;try{const i=typeof document<"u"?document.fonts:globalThis.fonts;if(!i||typeof FontFace>"u")throw new Error("font-api-unavailable");const a=await Promise.race([new FontFace("Intent Annotation Hand",`url("${it}")`,{style:"normal",weight:"400",display:"block"}).load(),new Promise((s,r)=>{t=setTimeout(()=>r(new Error("font-load-timeout")),2e3)})]);i.add(a),R=P.fontFamily}catch{R=L}finally{clearTimeout(t)}})(),D)}let y=null;function ot(t){const i=G(t);if(t.kind!=="text"||t.style==="sticky"||(y||(y=typeof OffscreenCanvas<"u"?new OffscreenCanvas(1,1).getContext("2d"):typeof document<"u"?document.createElement("canvas").getContext("2d"):null),!y))return i;y.font=`${t.fontSize}px ${$()}`,y.textAlign="left",y.textBaseline="top",y.letterSpacing="0px",y.wordSpacing="0px";let a=1/0,s=1/0,r=-1/0,n=-1/0;const{lines:u,lineHeight:c}=F(t);for(const[o,g]of u.entries()){if(!g.trim())continue;const p=y.measureText(g),b=o*c,f=[-p.actualBoundingBoxLeft,b-p.actualBoundingBoxAscent,p.actualBoundingBoxRight,b+p.actualBoundingBoxDescent];if(!f.every(Number.isFinite))return i;a=Math.min(a,f[0]),s=Math.min(s,f[1]),r=Math.max(r,f[2]),n=Math.max(n,f[3])}if(!(r>a&&n>s))return i;const e=Math.max(1,t.fontSize/24);return{x:t.x+a-e,y:t.y+s-e,w:r-a+2*e,h:n-s+2*e}}function gt(t,i){const a=N(i,t,null),s=new Set([0,t.durationMs,...t.batches.flatMap(e=>e.clearAtMs===null?[]:[e.clearAtMs]),...a.marks.flatMap(e=>[e.frameAtMs,e.visibleUntilMs,...A(t,e.mark)?[A(t,e.mark).completedAtMs]:[]])]),r=[...new Set(a.marks.flatMap(e=>A(t,e.mark)?.samples.map(g=>g.atMs)??[]))].filter(e=>!s.has(e)&&e>=0&&e<=t.durationMs).sort((e,o)=>e-o),n=Math.max(0,1001-s.size),u=n>=r.length?r:Array.from({length:n},(e,o)=>r[Math.floor(o*r.length/n)]),c=[...new Set([...s,...u])].filter(e=>e>=0&&e<=t.durationMs).sort((e,o)=>e-o);return c.slice(0,-1).map((e,o)=>({atMs:e,endMs:c[o+1]})).filter(e=>e.endMs>e.atMs&&a.marks.some(o=>e.atMs>=o.frameAtMs&&e.atMs<o.visibleUntilMs))}function pt(t,i,a){const s=A(t,i);return!s||a>=s.completedAtMs}const E=16e3;function rt(t,i){const s=t.length*2,r=new ArrayBuffer(44+s),n=new DataView(r),u=(e,o)=>{for(let g=0;g<o.length;g+=1)n.setUint8(e+g,o.charCodeAt(g))};u(0,"RIFF"),n.setUint32(4,36+s,!0),u(8,"WAVE"),u(12,"fmt "),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,1,!0),n.setUint32(24,i,!0),n.setUint32(28,i*2,!0),n.setUint16(32,2,!0),n.setUint16(34,16,!0),u(36,"data"),n.setUint32(40,s,!0);let c=44;for(let e=0;e<t.length;e+=1){const o=Math.max(-1,Math.min(1,t[e]));n.setInt16(c,o<0?o*32768:o*32767,!0),c+=2}return r}function st(t){const i=new Float32Array(t.length);for(let a=0;a<t.numberOfChannels;a+=1){const s=t.getChannelData(a);for(let r=0;r<s.length;r+=1)i[r]+=s[r]/t.numberOfChannels}return i}async function kt(t){const i=new AudioContext;try{const a=await i.decodeAudioData(await t.arrayBuffer()),s=Math.max(1,Math.ceil(a.length*E/a.sampleRate)),r=new OfflineAudioContext(1,s,E),n=r.createBufferSource();n.buffer=a,n.connect(r.destination),n.start();const u=await r.startRendering();return rt(st(u),E)}finally{await i.close().catch(()=>{})}}function j(t){const i=new Uint8Array(t),a=32768;let s="";for(let r=0;r<i.length;r+=a)s+=String.fromCharCode(...i.subarray(r,r+a));return btoa(s)}const d={...P,get fontFamily(){return $()},blurRadius:J};function z(t,i,a=0,s){const r=t.crop??{x:0,y:0,w:i.width,h:i.height},n=Math.max(1,Math.max(i.width,i.height)/1440),u=Math.min(d.badgeRadius*n,r.w/2,r.h/2);return Q(t,i).filter(c=>i.kind==="screenshot"||a>=c.mark.atMs&&a<c.visibleUntilMs).flatMap(({n:c,mark:e})=>{const o=i.kind==="recording"?Y(e.geometry,A(i,e),a):e.geometry;if(!o)return[];const g=ot(o),p=et(g,r,n,u);return[...e.id===s&&o.kind==="text"?[]:[{kind:"geometry",geometry:o,unit:n}],...d.showNumbers?[{kind:"badge",...p,radius:u,label:String(c),unit:n}]:[]]})}function V(t,i){t.save(),t.letterSpacing="0px",t.wordSpacing="0px",t.strokeStyle=d.accent,t.fillStyle=d.accent,t.lineCap="round",t.lineJoin="round";for(const a of i){const s=a.unit??1,r=(c,e)=>{t.strokeStyle=d.halo,t.lineWidth=c+d.haloWidth*s,e?t.stroke(e):t.stroke(),t.strokeStyle=d.accent,t.lineWidth=c,e?t.stroke(e):t.stroke()};if(a.kind==="badge"){t.fillStyle=d.paper,t.beginPath(),t.arc(a.x,a.y,a.radius,0,Math.PI*2),t.fill(),t.strokeStyle=d.accent,t.lineWidth=d.badgeOutline*s,t.stroke(),t.fillStyle=d.ink,t.font=`600 ${a.radius*d.badgeTextScale}px ${d.badgeFontFamily}`,t.textAlign="center",t.textBaseline="middle",t.fillText(a.label,a.x,a.y);continue}const n=a.geometry;t.fillStyle=d.accent;const u=(n.kind==="path"?d.pen:d.stroke)*s;if(n.kind==="rect")t.beginPath(),t.rect(n.x,n.y,n.w,n.h),r(u);else if(n.kind==="text"){const c=F(n);t.fillStyle=d.accent,t.textAlign="left",t.textBaseline="top",t.font=`${n.fontSize}px ${d.fontFamily}`,c.lines.forEach((e,o)=>{const g=n.x+c.padding,p=n.y+c.padding+o*c.lineHeight;t.strokeStyle=d.halo,t.lineWidth=d.haloWidth*s;const b=n.style==="sticky"?c.width-2*c.padding:void 0;t.strokeText(e,g,p,b),t.fillText(e,g,p,b)})}else if(n.kind==="point")t.beginPath(),t.arc(n.x,n.y,X,0,Math.PI*2),r(u);else if(n.kind==="path")r(u,new Path2D(tt(n.points)));else{const c=[n.from,n.to];if(t.beginPath(),c.forEach((e,o)=>o?t.lineTo(e.x,e.y):t.moveTo(e.x,e.y)),n.kind==="arrow"){const e=Math.atan2(n.to.y-n.from.y,n.to.x-n.from.x),o=d.arrowHead*s;t.moveTo(n.to.x-o*Math.cos(e-d.arrowSpread),n.to.y-o*Math.sin(e-d.arrowSpread)),t.lineTo(n.to.x,n.to.y),t.lineTo(n.to.x-o*Math.cos(e+d.arrowSpread),n.to.y-o*Math.sin(e+d.arrowSpread))}r(u)}}t.restore()}function I(t,i){const a=new OffscreenCanvas(Math.max(1,Math.round(t)),Math.max(1,Math.round(i))),s=a.getContext("2d");if(!s)throw new Error("capture-render-unavailable");return{image:a,context:s}}async function yt(t,i,a){if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const{image:s,context:r}=I(t.width,t.height);return V(r,z(i,t,a)),j(await(await s.convertToBlob({type:"image/png"})).arrayBuffer())}async function wt(t,i,a,s){const r=N(i,t,null);if(t.kind!=="screenshot"||r.errors.length)throw new Error(r.errors[0]??"not-a-screenshot");if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const n=Uint8Array.from(atob(a.base64),c=>c.charCodeAt(0)),u=await createImageBitmap(new Blob([n],{type:a.mimeType}));try{if(u.width!==t.width||u.height!==t.height)throw new Error("stale-source-pixels");const c=I(t.width,t.height);if(c.context.drawImage(u,0,0),i.blurRegions.length||i.blurStrokes?.length){const p=I(t.width,t.height);p.context.fillStyle="#000000",p.context.fillRect(0,0,t.width,t.height);const b=`blur(${d.blurRadius}px)`;if(p.context.filter=b,p.context.filter!==b)throw new Error("capture-blur-unavailable");p.context.drawImage(u,0,0);const f=I(t.width,t.height);f.context.fillStyle="#ffffff",f.context.strokeStyle="#ffffff",f.context.lineCap="round",f.context.lineJoin="round";for(const k of i.blurRegions)f.context.fillRect(k.x,k.y,k.w,k.h);for(const k of i.blurStrokes??[]){const S=k.points.filter((x,C)=>C===0||x.x!==k.points[C-1].x||x.y!==k.points[C-1].y);if(f.context.beginPath(),S.length===1){const x=S[0];f.context.arc(x.x,x.y,k.radius,0,Math.PI*2),f.context.fill()}else{f.context.lineWidth=k.radius*2,f.context.moveTo(S[0].x,S[0].y);for(const x of S.slice(1))f.context.lineTo(x.x,x.y);f.context.stroke()}}const T=I(t.width,t.height);T.context.drawImage(p.image,0,0),T.context.globalCompositeOperation="destination-in",T.context.drawImage(f.image,0,0),c.context.drawImage(T.image,0,0)}const e=i.crop??{x:0,y:0,w:t.width,h:t.height},o=I(e.w,e.h);o.context.drawImage(c.image,e.x,e.y,e.w,e.h,0,0,o.image.width,o.image.height),o.context.scale(o.image.width/e.w,o.image.height/e.h),o.context.translate(-e.x,-e.y),V(o.context,z(i,t,0,s?.hiddenTextMarkId));const g=await o.image.convertToBlob({type:"image/png"});return{data:j(await g.arrayBuffer()),mimeType:"image/png",width:o.image.width,height:o.image.height}}finally{u.close()}}const Mt=m({outputVersion:v(Z),jobId:l().uuid(),media:_,layers:B(m({atMs:h().finite().nonnegative(),endMs:h().finite().nonnegative(),png:l().min(1).max(48*1024*1024)}).strict()).max(1e4)}).strict(),bt=m({jobId:l().uuid(),media:_,locale:l().min(1).max(80).optional()}).strict(),lt=m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),durationMs:h().finite().positive().max(120001),intervalMs:v(50),peaks:B(h().finite().min(0).max(1)).max(2401)}).strict().refine(t=>t.peaks.length===Math.ceil(t.durationMs/t.intervalMs),"Incomplete waveform");m({jobId:l().uuid(),media:_}).strict();m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),trackCount:h().int().nonnegative().max(128),populatedTrackCount:h().int().nonnegative().max(128)}).strict().refine(t=>t.populatedTrackCount<=t.trackCount);const xt=at.DOCK_CAPTURE_EDITOR,w=l().min(1).max(200),ct=m({id:w,tool:M(q),atMs:h().finite().min(0).max(1440*60*1e3).nullable(),label:l().max(200).optional()}).strict();m({kind:M(["recording","screenshot"]),workspaceId:w,agentId:w,attachmentId:w,sourceRevision:l().min(1).max(512),attachmentPath:l().min(1).max(1024),title:l().max(200),durationMs:h().finite().min(0).max(1440*60*1e3).optional(),width:h().int().positive().max(32768).optional(),height:h().int().positive().max(32768).optional(),marks:B(ct).max(500),provenance:m({captureApi:l().max(100).optional(),hasMicAudio:U().optional(),visuals:M(["clean","baked-marks"])}).strict(),source:O.optional(),originalSource:O.optional(),saved:K.nullable().optional(),transcript:W.nullable().optional(),holdToken:l().uuid().optional()}).strict().refine(t=>!t.source||t.source.path===t.attachmentPath&&t.source.attachmentId===t.attachmentId&&t.source.kind===t.kind,"Source does not match the attachment").refine(t=>!t.saved||!!t.source&&t.saved.sourceId===t.source.id&&t.saved.sourceRevision===t.source.revision,"Edit does not match the source").refine(t=>!t.originalSource||t.source?.kind==="screenshot"&&t.originalSource.kind==="screenshot"&&t.originalSource.id!==t.source.id,"Original source does not precede this source");m({openId:l().uuid(),intent:v("attach").optional()}).strict();m({openId:l().uuid(),accept:U()}).strict();m({token:l().uuid(),hide:v(!0).optional()}).strict();m({openId:l().uuid(),requestId:l().uuid()}).strict();m({requestId:l().uuid(),result:M(["saved","stale-source","revision-conflict","failed"]),saved:K.optional()}).strict().refine(t=>t.result==="saved"==!!t.saved,"Saved edit missing");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),transcript:W}).strict();nt([m({requestId:l().uuid(),ok:v(!0),source:O}).strict(),m({requestId:l().uuid(),ok:v(!1),error:M(["cancelled","permission","failed"])}).strict()]);const dt=2e4;m({openId:l().uuid(),markId:l().min(1).max(512),generation:h().int().nonnegative(),phase:M(["start","stop"])}).strict();m({requestId:l().uuid(),generation:h().int().nonnegative(),text:l().max(dt),final:U(),error:M(["busy","unavailable","failed","permission"]).optional()}).strict().refine(t=>!t.error||t.final,"An error is final");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),waveform:lt}).strict();const It=m({requestId:l().uuid(),openId:w,pair:m({workspaceId:w,agentId:w}).strict(),kind:M(["screenshot","recording"]),attachmentId:w,sourceId:w.optional(),sourceRevision:h().int().nonnegative().optional(),expectedEditRevision:h().int().nonnegative().optional()}).strict();m({requestId:l().uuid(),result:M(["deleted","stale-source","failed"])}).strict();const vt=m({endedOpenId:l().uuid()}).strict();export{xt as D,d as a,dt as b,It as c,vt as d,Mt as e,bt as f,j as g,kt as h,ot as i,$ as j,pt as k,gt as l,H as m,z as n,yt as o,V as p,wt as r};
1
+ import{K as G,T as F,_ as N,a0 as A,d as J,f as X,X as Q,Q as Y,n as _,e as Z,c as q,m as W,h as K,l as O}from"./hX9Crt6i.js";import{D as P,a as tt,d as et}from"./CQcEqK4G.js";import{o as m,b as B,s as l,n as h,l as v,_ as M,c as U,u as nt}from"./CIyUrgF0.js";import{I as at}from"./DHP1DFPI.js";const it="/app/immutable/assets/PatrickHand-Regular.CyLOmwMC.ttf";let D=null,R=null;const L=P.badgeFontFamily;function $(){return R??L}function H(){return D||(D=(async()=>{let t;try{const i=typeof document<"u"?document.fonts:globalThis.fonts;if(!i||typeof FontFace>"u")throw new Error("font-api-unavailable");const a=await Promise.race([new FontFace("Intent Annotation Hand",`url("${it}")`,{style:"normal",weight:"400",display:"block"}).load(),new Promise((s,r)=>{t=setTimeout(()=>r(new Error("font-load-timeout")),2e3)})]);i.add(a),R=P.fontFamily}catch{R=L}finally{clearTimeout(t)}})(),D)}let y=null;function ot(t){const i=G(t);if(t.kind!=="text"||t.style==="sticky"||(y||(y=typeof OffscreenCanvas<"u"?new OffscreenCanvas(1,1).getContext("2d"):typeof document<"u"?document.createElement("canvas").getContext("2d"):null),!y))return i;y.font=`${t.fontSize}px ${$()}`,y.textAlign="left",y.textBaseline="top",y.letterSpacing="0px",y.wordSpacing="0px";let a=1/0,s=1/0,r=-1/0,n=-1/0;const{lines:u,lineHeight:c}=F(t);for(const[o,g]of u.entries()){if(!g.trim())continue;const p=y.measureText(g),b=o*c,f=[-p.actualBoundingBoxLeft,b-p.actualBoundingBoxAscent,p.actualBoundingBoxRight,b+p.actualBoundingBoxDescent];if(!f.every(Number.isFinite))return i;a=Math.min(a,f[0]),s=Math.min(s,f[1]),r=Math.max(r,f[2]),n=Math.max(n,f[3])}if(!(r>a&&n>s))return i;const e=Math.max(1,t.fontSize/24);return{x:t.x+a-e,y:t.y+s-e,w:r-a+2*e,h:n-s+2*e}}function gt(t,i){const a=N(i,t,null),s=new Set([0,t.durationMs,...t.batches.flatMap(e=>e.clearAtMs===null?[]:[e.clearAtMs]),...a.marks.flatMap(e=>[e.frameAtMs,e.visibleUntilMs,...A(t,e.mark)?[A(t,e.mark).completedAtMs]:[]])]),r=[...new Set(a.marks.flatMap(e=>A(t,e.mark)?.samples.map(g=>g.atMs)??[]))].filter(e=>!s.has(e)&&e>=0&&e<=t.durationMs).sort((e,o)=>e-o),n=Math.max(0,1001-s.size),u=n>=r.length?r:Array.from({length:n},(e,o)=>r[Math.floor(o*r.length/n)]),c=[...new Set([...s,...u])].filter(e=>e>=0&&e<=t.durationMs).sort((e,o)=>e-o);return c.slice(0,-1).map((e,o)=>({atMs:e,endMs:c[o+1]})).filter(e=>e.endMs>e.atMs&&a.marks.some(o=>e.atMs>=o.frameAtMs&&e.atMs<o.visibleUntilMs))}function pt(t,i,a){const s=A(t,i);return!s||a>=s.completedAtMs}const E=16e3;function rt(t,i){const s=t.length*2,r=new ArrayBuffer(44+s),n=new DataView(r),u=(e,o)=>{for(let g=0;g<o.length;g+=1)n.setUint8(e+g,o.charCodeAt(g))};u(0,"RIFF"),n.setUint32(4,36+s,!0),u(8,"WAVE"),u(12,"fmt "),n.setUint32(16,16,!0),n.setUint16(20,1,!0),n.setUint16(22,1,!0),n.setUint32(24,i,!0),n.setUint32(28,i*2,!0),n.setUint16(32,2,!0),n.setUint16(34,16,!0),u(36,"data"),n.setUint32(40,s,!0);let c=44;for(let e=0;e<t.length;e+=1){const o=Math.max(-1,Math.min(1,t[e]));n.setInt16(c,o<0?o*32768:o*32767,!0),c+=2}return r}function st(t){const i=new Float32Array(t.length);for(let a=0;a<t.numberOfChannels;a+=1){const s=t.getChannelData(a);for(let r=0;r<s.length;r+=1)i[r]+=s[r]/t.numberOfChannels}return i}async function kt(t){const i=new AudioContext;try{const a=await i.decodeAudioData(await t.arrayBuffer()),s=Math.max(1,Math.ceil(a.length*E/a.sampleRate)),r=new OfflineAudioContext(1,s,E),n=r.createBufferSource();n.buffer=a,n.connect(r.destination),n.start();const u=await r.startRendering();return rt(st(u),E)}finally{await i.close().catch(()=>{})}}function j(t){const i=new Uint8Array(t),a=32768;let s="";for(let r=0;r<i.length;r+=a)s+=String.fromCharCode(...i.subarray(r,r+a));return btoa(s)}const d={...P,get fontFamily(){return $()},blurRadius:J};function z(t,i,a=0,s){const r=t.crop??{x:0,y:0,w:i.width,h:i.height},n=Math.max(1,Math.max(i.width,i.height)/1440),u=Math.min(d.badgeRadius*n,r.w/2,r.h/2);return Q(t,i).filter(c=>i.kind==="screenshot"||a>=c.mark.atMs&&a<c.visibleUntilMs).flatMap(({n:c,mark:e})=>{const o=i.kind==="recording"?Y(e.geometry,A(i,e),a):e.geometry;if(!o)return[];const g=ot(o),p=et(g,r,n,u);return[...e.id===s&&o.kind==="text"?[]:[{kind:"geometry",geometry:o,unit:n}],...d.showNumbers?[{kind:"badge",...p,radius:u,label:String(c),unit:n}]:[]]})}function V(t,i){t.save(),t.letterSpacing="0px",t.wordSpacing="0px",t.strokeStyle=d.accent,t.fillStyle=d.accent,t.lineCap="round",t.lineJoin="round";for(const a of i){const s=a.unit??1,r=(c,e)=>{t.strokeStyle=d.halo,t.lineWidth=c+d.haloWidth*s,e?t.stroke(e):t.stroke(),t.strokeStyle=d.accent,t.lineWidth=c,e?t.stroke(e):t.stroke()};if(a.kind==="badge"){t.fillStyle=d.paper,t.beginPath(),t.arc(a.x,a.y,a.radius,0,Math.PI*2),t.fill(),t.strokeStyle=d.accent,t.lineWidth=d.badgeOutline*s,t.stroke(),t.fillStyle=d.ink,t.font=`600 ${a.radius*d.badgeTextScale}px ${d.badgeFontFamily}`,t.textAlign="center",t.textBaseline="middle",t.fillText(a.label,a.x,a.y);continue}const n=a.geometry;t.fillStyle=d.accent;const u=(n.kind==="path"?d.pen:d.stroke)*s;if(n.kind==="rect")t.beginPath(),t.rect(n.x,n.y,n.w,n.h),r(u);else if(n.kind==="text"){const c=F(n);t.fillStyle=d.accent,t.textAlign="left",t.textBaseline="top",t.font=`${n.fontSize}px ${d.fontFamily}`,c.lines.forEach((e,o)=>{const g=n.x+c.padding,p=n.y+c.padding+o*c.lineHeight;t.strokeStyle=d.halo,t.lineWidth=d.haloWidth*s;const b=n.style==="sticky"?c.width-2*c.padding:void 0;t.strokeText(e,g,p,b),t.fillText(e,g,p,b)})}else if(n.kind==="point")t.beginPath(),t.arc(n.x,n.y,X,0,Math.PI*2),r(u);else if(n.kind==="path")r(u,new Path2D(tt(n.points)));else{const c=[n.from,n.to];if(t.beginPath(),c.forEach((e,o)=>o?t.lineTo(e.x,e.y):t.moveTo(e.x,e.y)),n.kind==="arrow"){const e=Math.atan2(n.to.y-n.from.y,n.to.x-n.from.x),o=d.arrowHead*s;t.moveTo(n.to.x-o*Math.cos(e-d.arrowSpread),n.to.y-o*Math.sin(e-d.arrowSpread)),t.lineTo(n.to.x,n.to.y),t.lineTo(n.to.x-o*Math.cos(e+d.arrowSpread),n.to.y-o*Math.sin(e+d.arrowSpread))}r(u)}}t.restore()}function I(t,i){const a=new OffscreenCanvas(Math.max(1,Math.round(t)),Math.max(1,Math.round(i))),s=a.getContext("2d");if(!s)throw new Error("capture-render-unavailable");return{image:a,context:s}}async function yt(t,i,a){if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const{image:s,context:r}=I(t.width,t.height);return V(r,z(i,t,a)),j(await(await s.convertToBlob({type:"image/png"})).arrayBuffer())}async function wt(t,i,a,s){const r=N(i,t,null);if(t.kind!=="screenshot"||r.errors.length)throw new Error(r.errors[0]??"not-a-screenshot");if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await H();const n=Uint8Array.from(atob(a.base64),c=>c.charCodeAt(0)),u=await createImageBitmap(new Blob([n],{type:a.mimeType}));try{if(u.width!==t.width||u.height!==t.height)throw new Error("stale-source-pixels");const c=I(t.width,t.height);if(c.context.drawImage(u,0,0),i.blurRegions.length||i.blurStrokes?.length){const p=I(t.width,t.height);p.context.fillStyle="#000000",p.context.fillRect(0,0,t.width,t.height);const b=`blur(${d.blurRadius}px)`;if(p.context.filter=b,p.context.filter!==b)throw new Error("capture-blur-unavailable");p.context.drawImage(u,0,0);const f=I(t.width,t.height);f.context.fillStyle="#ffffff",f.context.strokeStyle="#ffffff",f.context.lineCap="round",f.context.lineJoin="round";for(const k of i.blurRegions)f.context.fillRect(k.x,k.y,k.w,k.h);for(const k of i.blurStrokes??[]){const S=k.points.filter((x,C)=>C===0||x.x!==k.points[C-1].x||x.y!==k.points[C-1].y);if(f.context.beginPath(),S.length===1){const x=S[0];f.context.arc(x.x,x.y,k.radius,0,Math.PI*2),f.context.fill()}else{f.context.lineWidth=k.radius*2,f.context.moveTo(S[0].x,S[0].y);for(const x of S.slice(1))f.context.lineTo(x.x,x.y);f.context.stroke()}}const T=I(t.width,t.height);T.context.drawImage(p.image,0,0),T.context.globalCompositeOperation="destination-in",T.context.drawImage(f.image,0,0),c.context.drawImage(T.image,0,0)}const e=i.crop??{x:0,y:0,w:t.width,h:t.height},o=I(e.w,e.h);o.context.drawImage(c.image,e.x,e.y,e.w,e.h,0,0,o.image.width,o.image.height),o.context.scale(o.image.width/e.w,o.image.height/e.h),o.context.translate(-e.x,-e.y),V(o.context,z(i,t,0,s?.hiddenTextMarkId));const g=await o.image.convertToBlob({type:"image/png"});return{data:j(await g.arrayBuffer()),mimeType:"image/png",width:o.image.width,height:o.image.height}}finally{u.close()}}const Mt=m({outputVersion:v(Z),jobId:l().uuid(),media:_,layers:B(m({atMs:h().finite().nonnegative(),endMs:h().finite().nonnegative(),png:l().min(1).max(48*1024*1024)}).strict()).max(1e4)}).strict(),bt=m({jobId:l().uuid(),media:_,locale:l().min(1).max(80).optional()}).strict(),lt=m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),durationMs:h().finite().positive().max(120001),intervalMs:v(50),peaks:B(h().finite().min(0).max(1)).max(2401)}).strict().refine(t=>t.peaks.length===Math.ceil(t.durationMs/t.intervalMs),"Incomplete waveform");m({jobId:l().uuid(),media:_}).strict();m({sourceId:l().min(1),sourceRevision:h().int().nonnegative(),trackCount:h().int().nonnegative().max(128),populatedTrackCount:h().int().nonnegative().max(128)}).strict().refine(t=>t.populatedTrackCount<=t.trackCount);const xt=at.DOCK_CAPTURE_EDITOR,w=l().min(1).max(200),ct=m({id:w,tool:M(q),atMs:h().finite().min(0).max(1440*60*1e3).nullable(),label:l().max(200).optional()}).strict();m({kind:M(["recording","screenshot"]),workspaceId:w,agentId:w,attachmentId:w,sourceRevision:l().min(1).max(512),attachmentPath:l().min(1).max(1024),title:l().max(200),durationMs:h().finite().min(0).max(1440*60*1e3).optional(),width:h().int().positive().max(32768).optional(),height:h().int().positive().max(32768).optional(),marks:B(ct).max(500),provenance:m({captureApi:l().max(100).optional(),hasMicAudio:U().optional(),visuals:M(["clean","baked-marks"])}).strict(),source:O.optional(),originalSource:O.optional(),saved:K.nullable().optional(),transcript:W.nullable().optional(),holdToken:l().uuid().optional()}).strict().refine(t=>!t.source||t.source.path===t.attachmentPath&&t.source.attachmentId===t.attachmentId&&t.source.kind===t.kind,"Source does not match the attachment").refine(t=>!t.saved||!!t.source&&t.saved.sourceId===t.source.id&&t.saved.sourceRevision===t.source.revision,"Edit does not match the source").refine(t=>!t.originalSource||t.source?.kind==="screenshot"&&t.originalSource.kind==="screenshot"&&t.originalSource.id!==t.source.id,"Original source does not precede this source");m({openId:l().uuid(),intent:v("attach").optional()}).strict();m({openId:l().uuid(),accept:U()}).strict();m({token:l().uuid(),hide:v(!0).optional()}).strict();m({openId:l().uuid(),requestId:l().uuid()}).strict();m({requestId:l().uuid(),result:M(["saved","stale-source","revision-conflict","failed"]),saved:K.optional()}).strict().refine(t=>t.result==="saved"==!!t.saved,"Saved edit missing");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),transcript:W}).strict();nt([m({requestId:l().uuid(),ok:v(!0),source:O}).strict(),m({requestId:l().uuid(),ok:v(!1),error:M(["cancelled","permission","failed"])}).strict()]);const dt=2e4;m({openId:l().uuid(),markId:l().min(1).max(512),generation:h().int().nonnegative(),phase:M(["start","stop"])}).strict();m({requestId:l().uuid(),generation:h().int().nonnegative(),text:l().max(dt),final:U(),error:M(["busy","unavailable","failed","permission"]).optional()}).strict().refine(t=>!t.error||t.final,"An error is final");m({pair:m({workspaceId:l().min(1).max(200),agentId:l().min(1).max(200)}).strict(),sourceId:l().min(1).max(512),sourceRevision:h().int().nonnegative(),waveform:lt}).strict();const It=m({requestId:l().uuid(),openId:w,pair:m({workspaceId:w,agentId:w}).strict(),kind:M(["screenshot","recording"]),attachmentId:w,sourceId:w.optional(),sourceRevision:h().int().nonnegative().optional(),expectedEditRevision:h().int().nonnegative().optional()}).strict();m({requestId:l().uuid(),result:M(["deleted","stale-source","failed"])}).strict();const vt=m({endedOpenId:l().uuid()}).strict();export{xt as D,d as a,dt as b,It as c,vt as d,Mt as e,bt as f,j as g,kt as h,ot as i,$ as j,pt as k,gt as l,H as m,z as n,yt as o,V as p,wt as r};