@intent-hq/web 2.286.1 → 2.286.2

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 (209) hide show
  1. package/bin/intent-web.mjs +11 -2
  2. package/package.json +1 -1
  3. package/web/app/immutable/assets/0.B2ssLqMh.css +1 -0
  4. package/web/app/immutable/chunks/{RNQdr-NN.js → -C2IRcJ4.js} +1 -1
  5. package/web/app/immutable/chunks/{BR5lR6Td.js → -bBOxk3W.js} +1 -1
  6. package/web/app/immutable/chunks/{DWvbS4mu.js → -f5HsMRH.js} +1 -1
  7. package/web/app/immutable/chunks/{D4uZwrDX.js → -lPRd7v2.js} +1 -1
  8. package/web/app/immutable/chunks/{oTkHTTGI.js → 2jTJ7ui5.js} +1 -1
  9. package/web/app/immutable/chunks/{O_LhoKyf.js → 2qd-rLGS.js} +1 -1
  10. package/web/app/immutable/chunks/{DQprfQGN.js → 5KQTpdV3.js} +1 -1
  11. package/web/app/immutable/chunks/{Ct7iVnk5.js → 7yhhL_Kv.js} +2 -2
  12. package/web/app/immutable/chunks/{C4Zcz5ig.js → 8GVegoKX.js} +1 -1
  13. package/web/app/immutable/chunks/{BHwB2t2J.js → 8RNmk_9I.js} +6 -6
  14. package/web/app/immutable/chunks/{CeHlFtmN.js → 8wBQgcHV.js} +1 -1
  15. package/web/app/immutable/chunks/{DKnyYiOE.js → 9N2fNktT.js} +1 -1
  16. package/web/app/immutable/chunks/{CNG6DDdt.js → 9s3D9jIu.js} +1 -1
  17. package/web/app/immutable/chunks/{BaWkgFPr.js → A1I58Dap.js} +1 -1
  18. package/web/app/immutable/chunks/{C9129WmZ.js → B-RiR-3W.js} +1 -1
  19. package/web/app/immutable/chunks/{B78OjmQ3.js → B1W2g1fL.js} +1 -1
  20. package/web/app/immutable/chunks/{b7qEBWdv.js → B1pmGVIx.js} +1 -1
  21. package/web/app/immutable/chunks/{ALbX902-.js → B2fuxI_8.js} +1 -1
  22. package/web/app/immutable/chunks/{C4lY6YLh.js → B2xxVCZM.js} +1 -1
  23. package/web/app/immutable/chunks/{B5NXv3LV.js → B3kscBFg.js} +6 -6
  24. package/web/app/immutable/chunks/{CG-WEY6g.js → B5Gxq3jJ.js} +1 -1
  25. package/web/app/immutable/chunks/{2LPpSBFe.js → BCJ6mCcP.js} +1 -1
  26. package/web/app/immutable/chunks/{CaJjlkv1.js → BCK268oV.js} +1 -1
  27. package/web/app/immutable/chunks/{Bxc57npw.js → BCyLWzW8.js} +1 -1
  28. package/web/app/immutable/chunks/{CnT2T-Bp.js → BIH7Omo4.js} +4 -4
  29. package/web/app/immutable/chunks/{CgOfeXf8.js → BILk4fAN.js} +1 -1
  30. package/web/app/immutable/chunks/{CEiokx4X.js → BMTtG9zH.js} +1 -1
  31. package/web/app/immutable/chunks/{Ds-FLOE0.js → BORtTc-e.js} +1 -1
  32. package/web/app/immutable/chunks/{-4iKCYSl.js → BPovTGvM.js} +1 -1
  33. package/web/app/immutable/chunks/{BB0aq9c_.js → BPsVnNyd.js} +1 -1
  34. package/web/app/immutable/chunks/{C6RQmr0V.js → BSa8UQqG.js} +1 -1
  35. package/web/app/immutable/chunks/{CjOWZNUy.js → BU4UpNXO.js} +1 -1
  36. package/web/app/immutable/chunks/{nvAK9EyO.js → BXidsM5y.js} +1 -1
  37. package/web/app/immutable/chunks/{kpgdVhmB.js → BYX5z7iO.js} +1 -1
  38. package/web/app/immutable/chunks/{Cc8gV_FE.js → BZtjF7Ie.js} +1 -1
  39. package/web/app/immutable/chunks/{gn8kmMF6.js → BaaGaTiz.js} +1 -1
  40. package/web/app/immutable/chunks/{Dj9OdxPP.js → BbRTv7cq.js} +1 -1
  41. package/web/app/immutable/chunks/{B_Ngo80M.js → BdXOFJeo.js} +1 -1
  42. package/web/app/immutable/chunks/{D61mreVc.js → BgghSBWo.js} +1 -1
  43. package/web/app/immutable/chunks/{F7QETuhI.js → BisYAzdD.js} +1 -1
  44. package/web/app/immutable/chunks/{B5VfU0KM.js → BkXluBMH.js} +1 -1
  45. package/web/app/immutable/chunks/{BKAT2tIv.js → Bmg84LND.js} +1 -1
  46. package/web/app/immutable/chunks/Bo4gq_23.js +4 -0
  47. package/web/app/immutable/chunks/{C5E1PJb6.js → BofkdNap.js} +2 -2
  48. package/web/app/immutable/chunks/{Dh52so4o.js → BqJTmha5.js} +3 -3
  49. package/web/app/immutable/chunks/{BdvBYYZC.js → BqR317mE.js} +1 -1
  50. package/web/app/immutable/chunks/{BTRxaITj.js → BsMjnrdy.js} +1 -1
  51. package/web/app/immutable/chunks/{De60mY1u.js → Btt3OR2y.js} +1 -1
  52. package/web/app/immutable/chunks/{Du9ULB4g.js → BuknD9D8.js} +1 -1
  53. package/web/app/immutable/chunks/{BbANJKYX.js → Bzy14_Y3.js} +1 -1
  54. package/web/app/immutable/chunks/{D6eVIgjz.js → BzzEl9C8.js} +1 -1
  55. package/web/app/immutable/chunks/{l6-BV5ui.js → C--dVDXo.js} +1 -1
  56. package/web/app/immutable/chunks/{BCYRUItZ.js → C60Ik0Qb.js} +4 -4
  57. package/web/app/immutable/chunks/{3sa2ZSPC.js → C627-01N.js} +1 -1
  58. package/web/app/immutable/chunks/{BgX6IJDk.js → C6GT9iuD.js} +1 -1
  59. package/web/app/immutable/chunks/{ChOA9PWi.js → C6ldMp_G.js} +1 -1
  60. package/web/app/immutable/chunks/{BAEKjYyz.js → C8COLGeG.js} +1 -1
  61. package/web/app/immutable/chunks/{CusMGTEg.js → CAuyDtSk.js} +1 -1
  62. package/web/app/immutable/chunks/{CJKeXT5H.js → CB_Kofwn.js} +1 -1
  63. package/web/app/immutable/chunks/{F9nw4iUp.js → CCWZuPTG.js} +1 -1
  64. package/web/app/immutable/chunks/{Cg71xtru.js → CD2a7NWW.js} +1 -1
  65. package/web/app/immutable/chunks/{DvDXb3dW.js → CEByQsO_.js} +1 -1
  66. package/web/app/immutable/chunks/{HHGL3CBU.js → CED7K7pn.js} +1 -1
  67. package/web/app/immutable/chunks/{CN1yc9sw.js → CFgi_DMD.js} +1 -1
  68. package/web/app/immutable/chunks/{B_IE7AMR.js → CGmXQTqt.js} +1 -1
  69. package/web/app/immutable/chunks/CJdFRWjw.js +3 -0
  70. package/web/app/immutable/chunks/{DiBTM3GP.js → CKNNEoUh.js} +1 -1
  71. package/web/app/immutable/chunks/{Cv6pFp-w.js → CKwby1z3.js} +1 -1
  72. package/web/app/immutable/chunks/{vkDSSzeI.js → CNr93ccj.js} +1 -1
  73. package/web/app/immutable/chunks/{BsKoK3Rk.js → COemOf_j.js} +1 -1
  74. package/web/app/immutable/chunks/{3q61Z6zu.js → COnjpG4O.js} +1 -1
  75. package/web/app/immutable/chunks/{laFenviK.js → COsML5DR.js} +3 -3
  76. package/web/app/immutable/chunks/{XgTDusK7.js → CPGCgkWj.js} +1 -1
  77. package/web/app/immutable/chunks/{DoIwXvY5.js → CPtB0jUS.js} +1 -1
  78. package/web/app/immutable/chunks/{qsyNpi2_.js → CQAMVzSj.js} +1 -1
  79. package/web/app/immutable/chunks/{B1kJVNhf.js → CSggmaYx.js} +1 -1
  80. package/web/app/immutable/chunks/{DqkDKEMV.js → CVH0m_ri.js} +1 -1
  81. package/web/app/immutable/chunks/{DU5u4CoB.js → CW-LHLDp.js} +7 -7
  82. package/web/app/immutable/chunks/{BmnDHgDT.js → CXSuJ2ZK.js} +1 -1
  83. package/web/app/immutable/chunks/{BCiyShif.js → CY2SJz5g.js} +1 -1
  84. package/web/app/immutable/chunks/{9JjZRepm.js → CZtxOtGv.js} +1 -1
  85. package/web/app/immutable/chunks/{CdEtW7wp.js → CZvzT-U0.js} +1 -1
  86. package/web/app/immutable/chunks/{BkBZtLYF.js → CaADSFdg.js} +1 -1
  87. package/web/app/immutable/chunks/{hTe-_Fjh.js → CaWaQ99W.js} +3 -3
  88. package/web/app/immutable/chunks/{BdMP-rwq.js → CaypYiAV.js} +1 -1
  89. package/web/app/immutable/chunks/{BGgB8Pc0.js → CbFEmy2D.js} +2 -2
  90. package/web/app/immutable/chunks/{CfHaLL96.js → CclcGP3X.js} +1 -1
  91. package/web/app/immutable/chunks/{Bg8XhRuy.js → CgJW_HcZ.js} +1 -1
  92. package/web/app/immutable/chunks/Ch6rVsLf.js +8 -0
  93. package/web/app/immutable/chunks/{Bn4hj7HG.js → Cip0e418.js} +1 -1
  94. package/web/app/immutable/chunks/{DeD2_APR.js → Ciz44nC1.js} +1 -1
  95. package/web/app/immutable/chunks/{D9qYrFLr.js → CjokggNJ.js} +1 -1
  96. package/web/app/immutable/chunks/{pUHkzJ_d.js → CjpXXX_J.js} +1 -1
  97. package/web/app/immutable/chunks/{BnDVzHAF.js → CmKUsKaf.js} +1 -1
  98. package/web/app/immutable/chunks/{4LCvEsVS.js → CmYElrEr.js} +1 -1
  99. package/web/app/immutable/chunks/{DES0UXLU.js → CmjmDPGO.js} +1 -1
  100. package/web/app/immutable/chunks/{BhIrT2jr.js → CtuQQgf2.js} +2 -2
  101. package/web/app/immutable/chunks/{CMieQf0P.js → Cvr-8bX_.js} +1 -1
  102. package/web/app/immutable/chunks/{DM4MRAyE.js → CwcHW8S6.js} +1 -1
  103. package/web/app/immutable/chunks/{2FstYM1s.js → CxtuGanp.js} +1 -1
  104. package/web/app/immutable/chunks/{DAPK9slU.js → CyIz5Rp5.js} +1 -1
  105. package/web/app/immutable/chunks/{YIljg4QC.js → CySbf6TD.js} +1 -1
  106. package/web/app/immutable/chunks/{2oaDc1nn.js → Cz0pfiI3.js} +1 -1
  107. package/web/app/immutable/chunks/{lN-utS8K.js → D5QJ-2vz.js} +1 -1
  108. package/web/app/immutable/chunks/{DuzQF9m7.js → D6VZoi9m.js} +1 -1
  109. package/web/app/immutable/chunks/{CC-oK8xP.js → D9KFPzLd.js} +2 -2
  110. package/web/app/immutable/chunks/{C5RdKv5y.js → D9f7U_gJ.js} +1 -1
  111. package/web/app/immutable/chunks/{CjOA3fQ_.js → DCIaHRk5.js} +1 -1
  112. package/web/app/immutable/chunks/{DGWxO_aL.js → DDD7SYSD.js} +1 -1
  113. package/web/app/immutable/chunks/{Bz08MgGK.js → DEjCmBII.js} +1 -1
  114. package/web/app/immutable/chunks/{CcFGFqFC.js → DEo5oMHN.js} +1 -1
  115. package/web/app/immutable/chunks/{BIGmpOjZ.js → DGG8qQva.js} +1 -1
  116. package/web/app/immutable/chunks/{DeMWATch.js → DJHSMHzO.js} +1 -1
  117. package/web/app/immutable/chunks/{DLOFCVO4.js → DN8s5MPu.js} +1 -1
  118. package/web/app/immutable/chunks/{Uvf94Vit.js → DNv7jzNl.js} +1 -1
  119. package/web/app/immutable/chunks/{Cic3Ymv4.js → DOB0mTS8.js} +2 -2
  120. package/web/app/immutable/chunks/{aWlYJ1qq.js → DP7FYu47.js} +1 -1
  121. package/web/app/immutable/chunks/{BY3DTY8F.js → DU1XmBqY.js} +1 -1
  122. package/web/app/immutable/chunks/{BwqCA_Tg.js → DVAcX8po.js} +1 -1
  123. package/web/app/immutable/chunks/{C68FzyYL.js → DVGkNFGJ.js} +1 -1
  124. package/web/app/immutable/chunks/{CQlclm_i.js → DXXGL7Ej.js} +1 -1
  125. package/web/app/immutable/chunks/{l9lbU6dU.js → DY42fpE9.js} +1 -1
  126. package/web/app/immutable/chunks/{B-34RgWF.js → DaXLi7kw.js} +1 -1
  127. package/web/app/immutable/chunks/{Ov_SEXEY.js → Db85r7-o.js} +1 -1
  128. package/web/app/immutable/chunks/{R0wDqNpY.js → Dd8Oh65P.js} +1 -1
  129. package/web/app/immutable/chunks/{HjNzRj_q.js → Ddh0rE8O.js} +1 -1
  130. package/web/app/immutable/chunks/{B8N5zbP-.js → DekSqFjl.js} +1 -1
  131. package/web/app/immutable/chunks/{CQ8xUw8b.js → DfBQRVUY.js} +1 -1
  132. package/web/app/immutable/chunks/{CM-RTisq.js → Dfex6H6B.js} +1 -1
  133. package/web/app/immutable/chunks/{p20Ma5Ub.js → Dh_7SQPV.js} +1 -1
  134. package/web/app/immutable/chunks/{DJeS0Z6Z.js → DhbLviZQ.js} +1 -1
  135. package/web/app/immutable/chunks/{CJlBFmXK.js → DixA-W0V.js} +1 -1
  136. package/web/app/immutable/chunks/{bb6KeZoT.js → DjrSmzCc.js} +1 -1
  137. package/web/app/immutable/chunks/{B2SAFlE_.js → DkEnUmDM.js} +1 -1
  138. package/web/app/immutable/chunks/{Dz40TuR7.js → Dko-Flac.js} +1 -1
  139. package/web/app/immutable/chunks/{B5WfnJ_I.js → DnC7pGbF.js} +1 -1
  140. package/web/app/immutable/chunks/{CcDZ8sih.js → DntMfhqH.js} +4 -4
  141. package/web/app/immutable/chunks/{Fy3QvGgT.js → DoVZd79N.js} +1 -1
  142. package/web/app/immutable/chunks/{DdZVLxLI.js → DpNOuMqA.js} +1 -1
  143. package/web/app/immutable/chunks/{Cbe4LDCb.js → DqRQRrwd.js} +1 -1
  144. package/web/app/immutable/chunks/{DuXpwSkB.js → Dt2W2Job.js} +1 -1
  145. package/web/app/immutable/chunks/{CN6UuCI4.js → DvExSeJx.js} +2 -2
  146. package/web/app/immutable/chunks/{pqiENG4w.js → DzFUmVmc.js} +1 -1
  147. package/web/app/immutable/chunks/{D7y4iPD0.js → DzYj9I01.js} +1 -1
  148. package/web/app/immutable/chunks/{DHLYr2dR.js → Eor-CiZM.js} +1 -1
  149. package/web/app/immutable/chunks/{BOFk1KrL.js → FpRDS6GR.js} +1 -1
  150. package/web/app/immutable/chunks/{zln0bEou.js → GKyoWP3c.js} +1 -1
  151. package/web/app/immutable/chunks/{DcOGngFl.js → GVi-o-HG.js} +1 -1
  152. package/web/app/immutable/chunks/{DyjYgqtH.js → IJO_5iR4.js} +1 -1
  153. package/web/app/immutable/chunks/{fsCYHFC5.js → IhfTHHOz.js} +1 -1
  154. package/web/app/immutable/chunks/{BIY56SBV.js → Jrnc38lr.js} +1 -1
  155. package/web/app/immutable/chunks/{BsNGkCax.js → JvqNZ4n7.js} +1 -1
  156. package/web/app/immutable/chunks/{DZ2EweHv.js → KClCJGZO.js} +1 -1
  157. package/web/app/immutable/chunks/{B5OVBjIf.js → MZfXqgXX.js} +1 -1
  158. package/web/app/immutable/chunks/{B0jdpkVd.js → N_1l7hXH.js} +1 -1
  159. package/web/app/immutable/chunks/{JktSJt1s.js → OZGRjDvq.js} +1 -1
  160. package/web/app/immutable/chunks/{BDFJ3z4C.js → R8dYtUzD.js} +1 -1
  161. package/web/app/immutable/chunks/{B-jWalbO.js → R8eRTNnP.js} +1 -1
  162. package/web/app/immutable/chunks/{BUqUwu2G.js → R9TZ8GIl.js} +1 -1
  163. package/web/app/immutable/chunks/{Cf1Jz9Vb.js → Shvd3y-7.js} +1 -1
  164. package/web/app/immutable/chunks/{C9g8CU4z.js → SpvqHVer.js} +1 -1
  165. package/web/app/immutable/chunks/{Bluyq349.js → Tbr6p59b.js} +1 -1
  166. package/web/app/immutable/chunks/{PSWhBTN5.js → XXA_973X.js} +1 -1
  167. package/web/app/immutable/chunks/{BxKmCVSh.js → YE41SUlf.js} +1 -1
  168. package/web/app/immutable/chunks/{CbQJkQ1_.js → Z1DZJfze.js} +1 -1
  169. package/web/app/immutable/chunks/{ChMhvUux.js → ZD-F4NvX.js} +1 -1
  170. package/web/app/immutable/chunks/{CJPP3n_b.js → ZDypNe47.js} +1 -1
  171. package/web/app/immutable/chunks/{qk0mFpjO.js → _EZnucM4.js} +1 -1
  172. package/web/app/immutable/chunks/{xpCT4rnW.js → dOrUcrda.js} +1 -1
  173. package/web/app/immutable/chunks/{Cdv2uRTZ.js → iQlEdXPk.js} +1 -1
  174. package/web/app/immutable/chunks/{BhBL2il-.js → jUTK_aDz.js} +1 -1
  175. package/web/app/immutable/chunks/{VwRqUxpW.js → jWQiaOEh.js} +1 -1
  176. package/web/app/immutable/chunks/{TKnaMJht.js → mIgIf34G.js} +1 -1
  177. package/web/app/immutable/chunks/{Dxitz0gG.js → nHFvNMoD.js} +1 -1
  178. package/web/app/immutable/chunks/{CqwbuddS.js → nUiGI9_j.js} +1 -1
  179. package/web/app/immutable/chunks/{CzK2fiHA.js → rcY8Jah2.js} +1 -1
  180. package/web/app/immutable/chunks/{CU9uaZDq.js → tDd-6B2L.js} +1 -1
  181. package/web/app/immutable/chunks/{cKTNBTNE.js → uuDLpQqj.js} +1 -1
  182. package/web/app/immutable/chunks/{QOLdaLP0.js → wcwUUENo.js} +1 -1
  183. package/web/app/immutable/chunks/{DrI7rzCm.js → xx12n3Gb.js} +1 -1
  184. package/web/app/immutable/chunks/{BwixslcF.js → zCdOCSz2.js} +1 -1
  185. package/web/app/immutable/chunks/zh3oQLeX.js +1 -0
  186. package/web/app/immutable/entry/{app.BvKW_t2N.js → app.VJdWRZXW.js} +2 -2
  187. package/web/app/immutable/entry/start.CgJpRFs5.js +1 -0
  188. package/web/app/immutable/nodes/{0.BYMSP7Y-.js → 0.znaZSkGz.js} +1 -1
  189. package/web/app/immutable/nodes/{1.DIEji4Js.js → 1.QD_AYG75.js} +1 -1
  190. package/web/app/immutable/nodes/{10.DvTvrgji.js → 10.gF8-cogW.js} +1 -1
  191. package/web/app/immutable/nodes/{14.CJs3OY3_.js → 14.Dg2AgOXG.js} +1 -1
  192. package/web/app/immutable/nodes/{16.DsO7YO_c.js → 16.DwkJcrpd.js} +2 -2
  193. package/web/app/immutable/nodes/{2.Cht0dQl2.js → 2.BtT3yj0F.js} +3 -3
  194. package/web/app/immutable/nodes/{3.BGeidrSE.js → 3.CvwCGNZG.js} +1 -1
  195. package/web/app/immutable/nodes/{4.iguZO2rl.js → 4.DkczoMth.js} +1 -1
  196. package/web/app/immutable/nodes/{5.BppWO1IB.js → 5.BCyXLcum.js} +1 -1
  197. package/web/app/immutable/nodes/{6.ChXOvT3x.js → 6.BpqkaXHY.js} +1 -1
  198. package/web/app/immutable/nodes/{7.CgsIeK3J.js → 7.qMlWyBnC.js} +1 -1
  199. package/web/app/immutable/nodes/{8.Bq2NzD4c.js → 8.Bq5rrqJa.js} +11 -11
  200. package/web/app/immutable/nodes/{9.CvEBRJEV.js → 9.CA3t47dE.js} +1 -1
  201. package/web/app/version.json +1 -1
  202. package/web/generated/paraglide.js +8 -8
  203. package/web/index.html +10 -10
  204. package/web/app/immutable/assets/0.Racpq4cy.css +0 -1
  205. package/web/app/immutable/chunks/172GvQgx.js +0 -4
  206. package/web/app/immutable/chunks/BZXl3la6.js +0 -1
  207. package/web/app/immutable/chunks/CDuyWy4D.js +0 -3
  208. package/web/app/immutable/chunks/DNOilvOO.js +0 -8
  209. package/web/app/immutable/entry/start.CQ7TZDH6.js +0 -1
@@ -1,4 +1,4 @@
1
- var Cu=Object.defineProperty;var zu=(t,e,r)=>e in t?Cu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ie=(t,e,r)=>zu(t,typeof e!="symbol"?e+"":e,r);import{aI as Iu,g as ml,G2 as E,mv as we,mu as Te,u as De,b9 as t0,jc as li,kR as un,af as Ht,kQ as fs,k_ as gs,kX as vs,iL as pl,g7 as Da,Ez as Ru,ru as Du,xU as Nu,nw as Lu,lB as hn,zn as Ou,hU as Pu}from"./BjFoJgFv.js";import{Z as S0,X as ia,Y as _u,W as $u,a0 as Bu,aa as qu,S as Fu,dL as Hu,L as Uu,cz as lr,aR as Wu,b7 as fl,cC as _0,dj as gl,aQ as Gu,aU as ju,ck as Vu,c6 as Xu,df as Na,dk as Yu,dF as Ku,dz as Zu,aw as Nn,ak as Qu,as as ci,dw as Ju,dB as vl,dy as e1}from"./DUT4V6mb.js";import{bo as re}from"./COCO5InB.js";import{t as Je}from"./Bqoyy9yx.js";import{M as t1,v as yr,w as wr}from"./D62E6eA-.js";import{a as r0}from"./BJzHxIyr.js";import{o as me,r as Ft,f as n0,s as V,e as Xe,l as a0,n as Le,c as ir,b as He,u as r1,d as n1}from"./CpHIRYx9.js";import{j as bl}from"./DVkfuwKw.js";import{H as a1}from"./Cdhgfy6h.js";import{D as bs,b5 as i1,bl as s1}from"./9JjZRepm.js";import{p as o1}from"./CaQ_vubD.js";import{b as l1}from"./B6LKhrY2.js";import{i as Ge}from"./DJu_D7ND.js";import{l as sa,c as c1}from"./ChTqQfQN.js";import{ax as i0}from"./C5Xi5eLp.js";import{i as ys}from"./Dx5-Ovf5.js";import{f as ui,u as yl,v as wl,i as u1,s as kl,n as h1,p as d1}from"./BUVaYTVI.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function m1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const p1=new Uint8Array(16);function f1(){return crypto.getRandomValues(p1)}function hi(t,e,r){return crypto.randomUUID?crypto.randomUUID():g1(t)}function g1(t,e,r){t=t||{};const n=t.random??t.rng?.()??f1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,m1(n)}const ws="workspace-debug-flags",dn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class v1{constructor(){ie(this,"flags");ie(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return dn;try{const e=localStorage.getItem(ws);if(e)return{...dn,...JSON.parse(e)}}catch(e){sa.error("Failed to load debug flags:",e)}return dn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(ws,JSON.stringify(this.flags))}catch(e){sa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...dn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),sa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const oa=new v1;function _2(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function b1(t){return t.charAt(0).toUpperCase()+t.slice(1)}function $2(t){if(!t||t.trim().length===0)return re.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return re.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return re.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return re.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return re.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return re.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return re.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return re.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return re.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return re.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return re.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return re.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return re.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return re.workspace_sidebarHeader_branchTooLong_error()}function B2(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function La(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function q2(t,e){return`${e}:${t.agentId??"manual"}`}function y1(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function w1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function k1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function F2(t,e,r,n){const a=y1(t,e),i=n?` (origin/${n})`:"";return r?a===1?re.workspace_sidebarChanges_addToPr_one({suffix:i}):re.workspace_sidebarChanges_addToPr_many({count:Je(a),suffix:i}):a===1?re.workspace_sidebarChanges_pushToRemote_one({suffix:i}):re.workspace_sidebarChanges_pushToRemote_many({count:Je(a),suffix:i})}function H2(t,e,r){const n=w1(t,e),a=r?` (origin/${r})`:"";return n===1?re.workspace_sidebarChanges_undoPush_one({suffix:a}):re.workspace_sidebarChanges_undoPush_many({count:Je(n),suffix:a})}function U2(t,e){const r=k1(t,e);return r===1?re.workspace_sidebarChanges_undoCommit_one():re.workspace_sidebarChanges_undoCommit_many({count:Je(r)})}function W2(t,e){return e===0&&t.length>0}function G2(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function j2(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function V2(t,e,r){return r?.path===t&&r?.staged===e}function X2(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function Y2(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function x1(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function K2(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=x1(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:La(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?di(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:La(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function Z2(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??Iu.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function S1(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function la(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=S0(i),c=o.toLowerCase(),h=a.find(m=>!!o&&m.url.toLowerCase()===c||(i.resource||i.monitorAvailability?m.monitorIdentity===ia(i):!m.resource&&!m.monitorAvailability&&(s?!m.crossRepo&&m.number===i.prNumber:m.crossRepo===i.repo&&m.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?ia(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${_u(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ia(i):void 0,url:o,htmlUrl:o,status:S1(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:di(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function di(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function Q2(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const x of n)x.repoOwner&&x.repoName&&s.add(`${x.repoOwner}/${x.repoName}`.toLowerCase());let o=t;const c=[],h=[];if(t.some(x=>x.crossRepo)){o=[];for(const x of t)x.crossRepo?s.has(x.crossRepo.toLowerCase())?c.push(x):h.push(x):o.push(x)}const m=[],f=[],g=[];for(const x of e){const C=x.repo.toLowerCase();S0(x)&&o.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&(!i||C===i)?m.push(x):S0(x)&&c.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&s.has(C)?f.push(x):g.push(x)}const w=la(o,m,r),S=r?.split("/")[0],M=new Set([...w,...c,...h].map(x=>`${(x.crossRepo??r??"").toLowerCase()}#${x.number}`)),I=[...c];for(const x of n){if(!x.repoOwner||!x.repoName)continue;const C=`${x.repoOwner}/${x.repoName}`;for(const U of x.pullRequests??[]){const K=`${C.toLowerCase()}#${U.number}`;if(M.has(K))continue;M.add(K);const Y=U.url||`https://github.com/${C}/pull/${U.number}`,T=i!==void 0&&C.toLowerCase()===i;I.push({number:U.number,title:a(U),url:Y,htmlUrl:Y,status:La(U.status),createdAt:U.createdAt,updatedAt:U.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:di(C,S)})}}return{own:w,otherRoots:la(I,f,r),otherTracked:la(h,g,r)}}function ks(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function J2(t){const e=t.status==="merged"?re.workspace_prSection_merged_label():t.status==="closed"?re.workspace_prSection_closed_label():t.status==="draft"?re.workspace_prSection_statusDraft_label():ks(t)?re.workspace_prSection_statusQueued_label():re.workspace_prSection_statusOpen_label(),r=[$u(t)??e],n=ks(t)?t1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(re.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(re.workspace_prSection_statusChecks_tooltip({passed:Je(a.checks.passed),failed:Je(a.checks.failed),pending:Je(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?re.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?re.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:Je(a.approvals.have),needed:Je(a.approvals.needed)}):re.workspace_prSection_statusApprovals_tooltip({count:Je(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(re.workspace_prSection_statusChangesRequested_tooltip({count:Je(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(re.workspace_prSection_statusUnresolvedThreads_tooltip({count:Je(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(b1(a.mergeBlockedReason))),r.join(`
1
+ var Cu=Object.defineProperty;var zu=(t,e,r)=>e in t?Cu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ie=(t,e,r)=>zu(t,typeof e!="symbol"?e+"":e,r);import{aI as Iu,g as ml,G2 as E,mv as we,mu as Te,u as De,b9 as t0,jc as li,kR as un,af as Ht,kQ as fs,k_ as gs,kX as vs,iL as pl,g7 as Da,Ez as Ru,ru as Du,xU as Nu,nw as Lu,lB as hn,zn as Ou,hU as Pu}from"./BjFoJgFv.js";import{Z as S0,X as ia,Y as _u,W as $u,a0 as Bu,aa as qu,S as Fu,dL as Hu,L as Uu,cz as lr,aR as Wu,b7 as fl,cC as _0,dj as gl,aQ as Gu,aU as ju,ck as Vu,c6 as Xu,df as Na,dk as Yu,dF as Ku,dz as Zu,aw as Nn,ak as Qu,as as ci,dw as Ju,dB as vl,dy as e1}from"./DUT4V6mb.js";import{bo as re}from"./COCO5InB.js";import{t as Je}from"./Bqoyy9yx.js";import{M as t1,v as yr,w as wr}from"./D62E6eA-.js";import{a as r0}from"./BJzHxIyr.js";import{o as me,r as Ft,f as n0,s as V,e as Xe,l as a0,n as Le,c as ir,b as He,u as r1,d as n1}from"./CpHIRYx9.js";import{j as bl}from"./DVkfuwKw.js";import{H as a1}from"./Cdhgfy6h.js";import{D as bs,b5 as i1,bl as s1}from"./CZtxOtGv.js";import{p as o1}from"./CaQ_vubD.js";import{b as l1}from"./B6LKhrY2.js";import{i as Ge}from"./DJu_D7ND.js";import{l as sa,c as c1}from"./ChTqQfQN.js";import{ax as i0}from"./C5Xi5eLp.js";import{i as ys}from"./Dx5-Ovf5.js";import{f as ui,u as yl,v as wl,i as u1,s as kl,n as h1,p as d1}from"./BUVaYTVI.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function m1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const p1=new Uint8Array(16);function f1(){return crypto.getRandomValues(p1)}function hi(t,e,r){return crypto.randomUUID?crypto.randomUUID():g1(t)}function g1(t,e,r){t=t||{};const n=t.random??t.rng?.()??f1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,m1(n)}const ws="workspace-debug-flags",dn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class v1{constructor(){ie(this,"flags");ie(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return dn;try{const e=localStorage.getItem(ws);if(e)return{...dn,...JSON.parse(e)}}catch(e){sa.error("Failed to load debug flags:",e)}return dn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(ws,JSON.stringify(this.flags))}catch(e){sa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...dn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),sa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const oa=new v1;function _2(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function b1(t){return t.charAt(0).toUpperCase()+t.slice(1)}function $2(t){if(!t||t.trim().length===0)return re.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return re.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return re.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return re.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return re.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return re.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return re.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return re.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return re.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return re.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return re.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return re.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return re.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return re.workspace_sidebarHeader_branchTooLong_error()}function B2(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function La(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function q2(t,e){return`${e}:${t.agentId??"manual"}`}function y1(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function w1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function k1(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function F2(t,e,r,n){const a=y1(t,e),i=n?` (origin/${n})`:"";return r?a===1?re.workspace_sidebarChanges_addToPr_one({suffix:i}):re.workspace_sidebarChanges_addToPr_many({count:Je(a),suffix:i}):a===1?re.workspace_sidebarChanges_pushToRemote_one({suffix:i}):re.workspace_sidebarChanges_pushToRemote_many({count:Je(a),suffix:i})}function H2(t,e,r){const n=w1(t,e),a=r?` (origin/${r})`:"";return n===1?re.workspace_sidebarChanges_undoPush_one({suffix:a}):re.workspace_sidebarChanges_undoPush_many({count:Je(n),suffix:a})}function U2(t,e){const r=k1(t,e);return r===1?re.workspace_sidebarChanges_undoCommit_one():re.workspace_sidebarChanges_undoCommit_many({count:Je(r)})}function W2(t,e){return e===0&&t.length>0}function G2(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function j2(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function V2(t,e,r){return r?.path===t&&r?.staged===e}function X2(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function Y2(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function x1(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function K2(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=x1(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:La(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?di(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:La(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function Z2(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??Iu.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function S1(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function la(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=S0(i),c=o.toLowerCase(),h=a.find(m=>!!o&&m.url.toLowerCase()===c||(i.resource||i.monitorAvailability?m.monitorIdentity===ia(i):!m.resource&&!m.monitorAvailability&&(s?!m.crossRepo&&m.number===i.prNumber:m.crossRepo===i.repo&&m.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?ia(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${_u(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ia(i):void 0,url:o,htmlUrl:o,status:S1(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:di(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function di(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function Q2(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const x of n)x.repoOwner&&x.repoName&&s.add(`${x.repoOwner}/${x.repoName}`.toLowerCase());let o=t;const c=[],h=[];if(t.some(x=>x.crossRepo)){o=[];for(const x of t)x.crossRepo?s.has(x.crossRepo.toLowerCase())?c.push(x):h.push(x):o.push(x)}const m=[],f=[],g=[];for(const x of e){const C=x.repo.toLowerCase();S0(x)&&o.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&(!i||C===i)?m.push(x):S0(x)&&c.some(U=>U.url===S0(x))||!x.resource&&!x.monitorAvailability&&s.has(C)?f.push(x):g.push(x)}const w=la(o,m,r),S=r?.split("/")[0],M=new Set([...w,...c,...h].map(x=>`${(x.crossRepo??r??"").toLowerCase()}#${x.number}`)),I=[...c];for(const x of n){if(!x.repoOwner||!x.repoName)continue;const C=`${x.repoOwner}/${x.repoName}`;for(const U of x.pullRequests??[]){const K=`${C.toLowerCase()}#${U.number}`;if(M.has(K))continue;M.add(K);const Y=U.url||`https://github.com/${C}/pull/${U.number}`,T=i!==void 0&&C.toLowerCase()===i;I.push({number:U.number,title:a(U),url:Y,htmlUrl:Y,status:La(U.status),createdAt:U.createdAt,updatedAt:U.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:di(C,S)})}}return{own:w,otherRoots:la(I,f,r),otherTracked:la(h,g,r)}}function ks(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function J2(t){const e=t.status==="merged"?re.workspace_prSection_merged_label():t.status==="closed"?re.workspace_prSection_closed_label():t.status==="draft"?re.workspace_prSection_statusDraft_label():ks(t)?re.workspace_prSection_statusQueued_label():re.workspace_prSection_statusOpen_label(),r=[$u(t)??e],n=ks(t)?t1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(re.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(re.workspace_prSection_statusChecks_tooltip({passed:Je(a.checks.passed),failed:Je(a.checks.failed),pending:Je(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?re.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?re.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:Je(a.approvals.have),needed:Je(a.approvals.needed)}):re.workspace_prSection_statusApprovals_tooltip({count:Je(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(re.workspace_prSection_statusChangesRequested_tooltip({count:Je(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(re.workspace_prSection_statusUnresolvedThreads_tooltip({count:Je(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(re.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(b1(a.mergeBlockedReason))),r.join(`
2
2
  `)}function e5(t,e){return e.has(t??"manual")}function t5(t,e){return{path:t.relativePath,additions:t.stats.additions,deletions:t.stats.deletions,staged:e,status:t.status,attribution:t.attribution?.agent?{agentId:t.attribution.agent.agentId,agentName:t.attribution.agent.agentName,sessionId:t.attribution.agent.sessionId,turnNumber:t.attribution.agent.turnNumber,timestamp:t.attribution.timestamp}:void 0}}const xl=500;function r5(t,e=xl){const r=Math.max(0,Math.floor(e));return t.length<=r?{visible:t,shown:t.length,hiddenCount:0}:{visible:t.slice(0,r),shown:r,hiddenCount:t.length-r}}function n5(t,e,r=xl){let n=Math.max(0,Math.floor(r)),a=0,i=0;return{groups:t.map(o=>{if(e(o))return{group:o,visibleFiles:[]};const c=Math.min(n,o.files.length);return n-=c,a+=c,i+=o.files.length-c,{group:o,visibleFiles:c===o.files.length?o.files:o.files.slice(0,c)}}),shown:a,hiddenCount:i}}function a5(t){if(t.hiddenCount<=0)return"";const e=Je(t.shown),r=Je(t.shown+t.hiddenCount);return t.hiddenCount===1?re.workspace_fileChanges_hiddenFiles_one({shown:e,total:r}):re.workspace_fileChanges_hiddenFiles_many({shown:e,total:r,count:Je(t.hiddenCount)})}function A1(t){if(!t)return{};try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Oa(t){return t.startsWith("@")?t.slice(1):t}function T1(t,e,r,n){const a=t.fullPath||t.path||t.filename;if(a)return Oa(String(a));const i=[r,e,n.trim()].map(Oa).filter(Boolean),s=i.find(o=>o.includes("/"))??i[0];return s?Bu(s).path:void 0}function E1(t){const e=t.line??t.startLine??t.range?.start;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function M1(t){if(!t||t.getAttribute("data-mention")===null)return null;const e=t.getAttribute("data-type")||"",r=t.getAttribute("data-id")||"",n=t.getAttribute("data-label")||"",a=t.getAttribute("data-uri")||"",i=A1(t.getAttribute("data-meta")),s={type:e,id:r,label:n,uri:a,meta:i},o=a.startsWith("intent://")?a:typeof i.fullUrl=="string"&&i.fullUrl.startsWith("intent://")?i.fullUrl:void 0;if(o&&(s.intentUrl=o),e==="file"||e==="file-range"){const c=T1(i,n,r,t.textContent||"");c&&(s.filePath=c);const h=E1(i);h!==void 0&&(s.line=h)}else if(e==="folder"||e==="source-folder"){const c=i.fullPath||i.path||r||n,h=c?Oa(String(c)).replace(/\/+$/,""):"";h&&(s.folderPath=h)}else if(e==="note"||e==="note-range"){const c=i.noteId||r;c&&(s.note=i.isExternalLink&&i.workspaceId?{id:c,workspaceId:String(i.workspaceId)}:{id:c})}return s}function i5(t){return{sidebarTabId:"files",type:"file",filePath:`${t}/`}}function mi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Dr=mi();function Sl(t){Dr=t}var Er={exec:()=>null};function Ur(t){let e=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),a=e[n];return a||(a=t(n),e[n]=a),a}}function le(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Ve.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var C1=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Ve={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ur(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ur(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ur(t=>new RegExp(`^ {0,${t}}>`))},z1=/^(?:[ \t]*(?:\n|$))+/,I1=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,R1=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,D1=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,pi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Al=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Tl=le(Al).replace(/bull/g,pi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),N1=le(Al).replace(/bull/g,pi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),fi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,L1=/^[^\n]+/,gi=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,O1=le(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",gi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),P1=le(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,pi).getRegex(),Ln="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",vi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_1=le("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",vi).replace("tag",Ln).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),El=t=>le(fi).replace("hr",$0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ln).getRegex(),$1=El(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),B1=El(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),q1=le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",B1).getRegex(),bi={blockquote:q1,code:I1,def:O1,fences:R1,heading:D1,hr:$0,html:_1,lheading:Tl,list:P1,newline:z1,paragraph:$1,table:Er,text:L1},xs=le("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ln).getRegex(),F1={...bi,lheading:N1,table:xs,paragraph:le(fi).replace("hr",$0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",xs).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ln).getRegex()},H1={...bi,html:le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Er,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:le(fi).replace("hr",$0).replace("heading",` *#{1,6} *[^
3
3
  ]`).replace("lheading",Tl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},U1=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,W1=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ml=/^( {2,}|\\)\n(?!\s*$)/,G1=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ut=/[\p{P}\p{S}]/u,s0=/[\s\p{P}\p{S}]/u,B0=/[^\s\p{P}\p{S}]/u,j1=le(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,s0).getRegex(),V1=/[\p{Pi}\p{Ps}"']/u,Cl=/(?!~)[\p{P}\p{S}]/u,X1=/(?!~)[\s\p{P}\p{S}]/u,Y1=/(?:[^\s\p{P}\p{S}]|~)/u,K1=le(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",C1?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),zl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Z1=le(zl,"u").replace(/punct/g,Ut).getRegex(),Q1=le(zl,"u").replace(/punct/g,Cl).getRegex(),J1=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,eh=le(J1,"u").replace(/openQuote/g,V1).replace(/punct/g,Ut).getRegex(),Il="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",th=le(Il,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),rh=le(Il,"gu").replace(/notPunctSpace/g,Y1).replace(/punctSpace/g,X1).replace(/punct/g,Cl).getRegex(),nh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",ah=le(nh,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),ih=le("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),sh="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",oh=le(sh,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),lh=le(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ut).getRegex(),ch="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",uh=le(ch,"gu").replace(/notPunctSpace/g,B0).replace(/punctSpace/g,s0).replace(/punct/g,Ut).getRegex(),hh=le(/\\(punct)/,"gu").replace(/punct/g,Ut).getRegex(),dh=le(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),mh=le(vi).replace("(?:-->|$)","-->").getRegex(),ph=le("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",mh).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Mn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,fh=le(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Mn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Rl=le(/^!?\[(label)\]\[(ref)\]/).replace("label",Mn).replace("ref",gi).getRegex(),Dl=le(/^!?\[(ref)\](?:\[\])?/).replace("ref",gi).getRegex(),gh=le("reflink|nolink(?!\\()","g").replace("reflink",Rl).replace("nolink",Dl).getRegex(),Ss=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,yi={_backpedal:Er,anyPunctuation:hh,autolink:dh,blockSkip:K1,br:Ml,code:W1,del:Er,delLDelim:Er,delRDelim:Er,emStrongLDelim:Z1,emStrongRDelimAst:th,emStrongRDelimUnd:ih,escape:U1,link:fh,nolink:Dl,punctuation:j1,reflink:Rl,reflinkSearch:gh,tag:ph,text:G1,url:Er},vh={...yi,emStrongLDelim:eh,emStrongRDelimAst:ah,emStrongRDelimUnd:oh,link:le(/^!?\[(label)\]\((.*?)\)/).replace("label",Mn).getRegex(),reflink:le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Mn).getRegex()},Pa={...yi,emStrongRDelimAst:rh,emStrongLDelim:Q1,delLDelim:lh,delRDelim:uh,url:le(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ss).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:le(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ss).getRegex()},bh={...Pa,br:le(Ml).replace("{2,}","*").getRegex(),text:le(Pa.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},mn={normal:bi,gfm:F1,pedantic:H1},g0={normal:yi,gfm:Pa,breaks:bh,pedantic:vh},yh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},As=t=>yh[t];function zt(t,e){if(e){if(Ve.escapeTest.test(t))return t.replace(Ve.escapeReplace,As)}else if(Ve.escapeTestNoEncode.test(t))return t.replace(Ve.escapeReplaceNoEncode,As);return t}function Ts(t){try{t=encodeURI(t).replace(Ve.percentDecode,"%")}catch{return null}return t}function Es(t,e){let r=t.replace(Ve.findPipe,(i,s,o)=>{let c=!1,h=s;for(;--h>=0&&o[h]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Ve.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(Ve.slashPipe,"|");return n}function Qt(t,e,r){let n=t.length;if(n===0)return"";let a=0;for(;a<n&&t.charAt(n-a-1)===e;)a++;return t.slice(0,n-a)}function Ms(t){let e=t.split(`
4
4
  `),r=e.length-1;for(;r>=0&&Ve.blankLine.test(e[r]);)r--;return e.length-r<=2?t:e.slice(0,r+1).join(`
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/ClYVhnOY.js","/app/immutable/chunks/BjFoJgFv.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/chunks/Dck4Okga.js","/app/immutable/chunks/COCO5InB.js","/app/immutable/chunks/Cdhgfy6h.js","/app/immutable/chunks/B6LKhrY2.js","/app/immutable/chunks/C563feV7.js"])))=>i.map(i=>d[i]);
2
- import{t as Xt,bq as J,a_ as T,by as Kt,bu as D,bs as Gt,b as Nt,bo as o,_ as Qt}from"./COCO5InB.js";import{bs as Yt,ca as S,bH as U,c5 as ft,aD as Z,bj as Jt,a5 as A,bS as p,bA as F,b_ as b,W as h,bn as Zt,cd as tt,bV as _t,c9 as te,aA as et,bl as E,bO as y,ay as vt,aB as k}from"./B8o4lNgr.js";import{k as xt,l as ee}from"./Crs9I2MT.js";import{b as re}from"./D2g8BuR1.js";import{b as se}from"./Bsxt04FP.js";import{G2 as u,z$ as ae,zR as ne,zQ as oe,FY as ie,zC as le,hI as ce,i3 as ue}from"./BjFoJgFv.js";import{a as de,T as pe,D as me,L as fe,o as _e}from"./QLmgzrwQ.js";import{F as rt,cT as ve,c2 as xe,cP as he}from"./BDq7EC2K.js";import{f as ht}from"./C5Xi5eLp.js";import{n as G}from"./CJvhopKt.js";import"./Dck4Okga.js";import"./ChTqQfQN.js";import"./BlJs0v1V.js";import{r as ge}from"./B6pRjnl0.js";import{selectScriptById as st,selectScriptRuntime as be,selectScriptOutput as gt,selectScriptRetainedOutput as ye,selectCanDeleteScript as bt}from"./DGWxO_aL.js";import{f as ke}from"./CaQ_vubD.js";import{bP as $e,dE as we,df as yt}from"./DUT4V6mb.js";import"./BqRJyrRC.js";import"./BUVaYTVI.js";import"./B7mAnbbv.js";import{c as Se}from"./BXGDMgsv.js";var kt=k("<!> ",1),Ae=k('<div class="bg-danger-background/20 border-y border-danger/20 px-3 py-1.5 flex items-center justify-between"><div class="flex items-center gap-2 text-sm text-danger font-medium"><div class="w-4 h-4 rounded-full bg-danger-background flex items-center justify-center"><!></div> <span> </span></div> <!></div>'),Fe=k('<pre class="retained-text px-3 pb-3 text-xs svelte-115p4sl"> </pre>'),Ce=k('<p class="px-3 pb-3 text-xs text-muted-foreground" role="status"> </p>'),Oe=k('<details class="retained-output border-b border-border svelte-115p4sl"><summary class="cursor-pointer px-3 py-2 text-xs text-muted-foreground"> </summary> <p class="px-3 pb-2 text-xs text-muted-foreground"> </p> <!></details>'),Re=k('<div class="px-3 py-1 text-xs text-muted-foreground"> </div>'),Ie=k('<code class="text-muted-foreground font-mono text-xs"> </code>'),Le=k('<div class="flex-1 flex items-center justify-center px-4 py-8"><div class="flex items-center gap-3 text-sm"><span class="text-subtle font-mono">$</span> <!> <!></div></div>'),ze=k('<div><!> <!> <!> <!> <div><div class="xterm-output svelte-115p4sl"></div></div></div>');function Te(f,m){if(new.target)return Xt({component:Te,...f});Yt(m,!0);const H=()=>D(It,"$outputAuthority",O),i=()=>D(At,"$runtime$",O),_=()=>D(Ft,"$output$",O),C=()=>D(Rt,"$codeFontFamilyCSS",O),P=()=>D(Ct,"$retainedOutput$",O),$t=()=>D(Ot,"$hidesAgentLifecycleActions$",O),at=()=>D(St,"$script$",O),[O,wt]=Gt();let $=J(m,"scriptId",7),v=J(m,"workspaceId",7),N=J(m,"class",7,"");const R=tt(""),B=tt(""),nt=tt("");let Q=_t(!1);S(()=>R.set(v())),S(()=>B.set($()));let I,n=null,M=null,V=null,W=null,L=null,j=null;const St=st(R,B),At=be(R,B),Ft=gt(R,B),Ct=ye(R,B,nt),Ot=$e(R),Rt=ke(),It=we(R),ot=crypto.randomUUID();S(()=>{const t=v();return $(),()=>{t&&u.dispatch(ae(t,ot))}}),S(()=>{const t=v(),e=$(),s=H(),r=i();if(!s||!t||!e)return;r.status,r.startedAt;const l=crypto.randomUUID();return nt.set(l),U(Q,ft(()=>_().chunks.length===0),!0),u.dispatch(ne(t,e,l)),()=>u.dispatch(oe(t,e,l))});let X=_t(0);const Lt=te(()=>i().status==="exited"&&i().exitCode!=null&&i().exitCode!==0&&i().exitCode<128);function zt(){if(!I||n)return;W=new pe(I);const t=W.getCurrentTheme();n=new me({allowProposedApi:!0,fontFamily:C(),fontSize:13,lineHeight:1.2,letterSpacing:0,cursorBlink:!1,cursorStyle:"underline",cursorWidth:1,scrollback:1e4,allowTransparency:!0,convertEol:!0,disableStdin:!0,drawBoldTextInBrightColors:!0,theme:t}),n.attachCustomKeyEventHandler(s=>{const r=s.metaKey||s.ctrlKey;return!(r&&s.key==="`"||r&&s.key==="j"||r&&s.key==="k")}),M=new _e,n.loadAddon(M);const e=new fe((s,r)=>{try{const l=new URL(r);l.hostname==="localhost"||l.hostname==="127.0.0.1"?ge(r).then(g=>{Qt(async()=>{const{getPanelLayoutManager:c}=await import("./ClYVhnOY.js").then(x=>x.p);return{getPanelLayoutManager:c}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(({getPanelLayoutManager:c})=>{c(v()).openBrowserPanel(g.url,void 0,void 0,g.requestedUrl)}).catch(()=>{window.open(g.url,"_blank")})}):window.open(r,"_blank")}catch{window.open(r,"_blank")}});n.loadAddon(e),n.open(I),W.applyTheme(n),j=requestAnimationFrame(()=>{j=null,M?.fit()}),V=new ResizeObserver(()=>{M?.fit()}),V.observe(I),Tt()}function Tt(){if(!n)return;const t=gt.select(u.state,v(),$());t.chunks.length>0&&n.write(t.chunks.map(e=>e.text).join("")),U(X,t.dropped+t.chunks.length)}function it(){L!==null&&(cancelAnimationFrame(L),L=null),j!==null&&(cancelAnimationFrame(j),j=null),V?.disconnect(),V=null,W?.dispose(),W=null;const t=n;n=null,M=null,U(X,0),t&&de(t)}S(()=>{const t=_(),e=ft(()=>Z(X)),s=t.dropped+t.chunks.length;if(!n||s<=e)return;const r=Math.max(e-t.dropped,0);n.write(t.chunks.slice(r).map(l=>l.text).join("")),U(X,s)}),S(()=>{const t=C();n&&n.options.fontFamily!==t&&(n.options.fontFamily=t)});function Dt(){u.dispatch(ie(v(),$()))}function Et(){if(!v()){G.error(o.terminal_scriptOutput_noWorkspace_error());return}u.dispatch(ce(v(),$(),P()?.text,ot))}S(()=>{i().status==="idle"&&_().chunks.length===0&&it()}),S(()=>{!(i().status==="idle"&&_().chunks.length===0)&&I&&!n&&(L!==null&&cancelAnimationFrame(L),L=requestAnimationFrame(()=>{L=null,zt()}))}),Jt(()=>{it()});var Pt={get scriptId(){return $()},set scriptId(t){$(t),et()},get workspaceId(){return v()},set workspaceId(t){v(t),et()},get class(){return N()},set class(t=""){N(t),et()},$set:Kt,$on:(t,e)=>Nt(m,t,e)},K=ze(),lt=A(K);{var qt=t=>{var e=Ae(),s=A(e),r=A(s),l=A(r);rt(l,{get icon(){return ve},size:"xs"}),F(r);var g=p(r,2),c=E(g,!0);F(s);var x=p(s,2);{var w=a=>{ht(a,{variant:"outline",size:"sm",class:"h-7 text-xs bg-background border border-border text-danger",onclick:Et,children:(d,z)=>{var q=kt(),mt=vt(q);rt(mt,{get icon(){return he},size:"sm",class:"mr-1.5"});var Ht=p(mt);b(Vt=>y(Ht,` ${Vt??""}`),[()=>o.terminal_scriptOutput_askAiToFix_label()]),h(d,q)},$$slots:{default:!0}})};T(x,a=>{$t()||a(w)})}F(e),b(a=>y(c,a),[()=>o.terminal_scriptOutput_buildFailed_label({exitCode:i().exitCode??0})]),h(t,e)};T(lt,t=>{Z(Lt)&&t(qt)})}var ct=p(lt,2);{var Bt=t=>{var e=Oe(),s=A(e),r=E(s,!0),l=p(s,2),g=E(l,!0),c=p(l,2);{var x=a=>{var d=Fe();let z;var q=E(d,!0);b(()=>{z=ee(d,"",z,{"font-family":C()}),y(q,P().text)}),h(a,d)},w=a=>{var d=Ce(),z=E(d,!0);b(q=>y(z,q),[()=>P().status==="loading"?o.terminal_scriptOutput_retainedLoading_label():o.terminal_scriptOutput_retainedUnavailable_label()]),h(a,d)};T(c,a=>{P().status==="available"?a(x):a(w,-1)})}F(e),b((a,d)=>{y(r,a),y(g,d)},[()=>o.terminal_scriptOutput_retained_label(),()=>o.terminal_scriptOutput_retained_description()]),se("open","toggle",e,a=>U(Q,a),()=>Z(Q)),h(t,e)};T(ct,t=>{P()&&t(Bt)})}var ut=p(ct,2);{var Mt=t=>{var e=Re(),s=E(e,!0);b(r=>y(s,r),[()=>o.terminal_scriptOutput_live_label()]),h(t,e)};T(ut,t=>{_().chunks.length>0&&P()&&t(Mt)})}var dt=p(ut,2);{var Wt=t=>{var e=Le(),s=A(e),r=p(A(s),2);{var l=c=>{var x=Ie(),w=E(x,!0);b(a=>y(w,a),[()=>le(at())]),h(c,x)};T(r,c=>{at()&&c(l)})}var g=p(r,2);ht(g,{variant:"ghost",size:"xs",onclick:Dt,class:"text-muted-foreground hover:text-foreground",children:(c,x)=>{var w=kt(),a=vt(w);rt(a,{get icon(){return xe},class:"h-3 w-3 mr-1"});var d=p(a);b(z=>y(d,` ${z??""}`),[()=>o.terminal_scriptOutput_run_label()]),h(c,w)},$$slots:{default:!0}}),F(s),F(e),h(t,e)};T(dt,t=>{i().status==="idle"&&_().chunks.length===0&&t(Wt)})}var Y=p(dt,2);let pt;var jt=A(Y);re(jt,t=>I=t,()=>I),F(Y),F(K),b(()=>{xt(K,1,`script-output-viewer ${N()??""}`,"svelte-115p4sl"),pt=xt(Y,1,"flex-1 relative overflow-hidden",null,pt,{hidden:i().status==="idle"&&_().chunks.length===0})}),h(f,K);var Ut=Zt(Pt);return wt(),Ut}async function rr(f,m,H){const i=st.select(u.state,f,m);if(!i||!H()||!bt.select(u.state,f,m))return;const _=yt.select(u.state,f);if(!_){G.error(o.workspace_client_accessChanged_error());return}if(!await Se({title:o.scripts_delete_title({name:i.name}),description:o.scripts_delete_description(),confirmLabel:o.scripts_delete_label(),destructive:!0}))return;if(_!==yt.select(u.state,f)){G.error(o.workspace_client_accessChanged_error());return}const C=st.select(u.state,f,m);if(!H()||!C||C.createdAt!==i.createdAt||C.name!==i.name||!bt.select(u.state,f,m)){G.error(o.scripts_delete_changed_error());return}u.dispatch(ue(f,m,o.terminal_quakeOverlay_deleteScriptFailed_error()))}export{Te as S,rr as c};
2
+ import{t as Xt,bq as J,a_ as T,by as Kt,bu as D,bs as Gt,b as Nt,bo as o,_ as Qt}from"./COCO5InB.js";import{bs as Yt,ca as S,bH as U,c5 as ft,aD as Z,bj as Jt,a5 as A,bS as p,bA as F,b_ as b,W as h,bn as Zt,cd as tt,bV as _t,c9 as te,aA as et,bl as E,bO as y,ay as vt,aB as k}from"./B8o4lNgr.js";import{k as xt,l as ee}from"./Crs9I2MT.js";import{b as re}from"./D2g8BuR1.js";import{b as se}from"./Bsxt04FP.js";import{G2 as u,z$ as ae,zR as ne,zQ as oe,FY as ie,zC as le,hI as ce,i3 as ue}from"./BjFoJgFv.js";import{a as de,T as pe,D as me,L as fe,o as _e}from"./QLmgzrwQ.js";import{F as rt,cT as ve,c2 as xe,cP as he}from"./BDq7EC2K.js";import{f as ht}from"./C5Xi5eLp.js";import{n as G}from"./CJvhopKt.js";import"./Dck4Okga.js";import"./ChTqQfQN.js";import"./BlJs0v1V.js";import{r as ge}from"./B6pRjnl0.js";import{selectScriptById as st,selectScriptRuntime as be,selectScriptOutput as gt,selectScriptRetainedOutput as ye,selectCanDeleteScript as bt}from"./DDD7SYSD.js";import{f as ke}from"./CaQ_vubD.js";import{bP as $e,dE as we,df as yt}from"./DUT4V6mb.js";import"./BqRJyrRC.js";import"./BUVaYTVI.js";import"./B7mAnbbv.js";import{c as Se}from"./BXGDMgsv.js";var kt=k("<!> ",1),Ae=k('<div class="bg-danger-background/20 border-y border-danger/20 px-3 py-1.5 flex items-center justify-between"><div class="flex items-center gap-2 text-sm text-danger font-medium"><div class="w-4 h-4 rounded-full bg-danger-background flex items-center justify-center"><!></div> <span> </span></div> <!></div>'),Fe=k('<pre class="retained-text px-3 pb-3 text-xs svelte-115p4sl"> </pre>'),Ce=k('<p class="px-3 pb-3 text-xs text-muted-foreground" role="status"> </p>'),Oe=k('<details class="retained-output border-b border-border svelte-115p4sl"><summary class="cursor-pointer px-3 py-2 text-xs text-muted-foreground"> </summary> <p class="px-3 pb-2 text-xs text-muted-foreground"> </p> <!></details>'),Re=k('<div class="px-3 py-1 text-xs text-muted-foreground"> </div>'),Ie=k('<code class="text-muted-foreground font-mono text-xs"> </code>'),Le=k('<div class="flex-1 flex items-center justify-center px-4 py-8"><div class="flex items-center gap-3 text-sm"><span class="text-subtle font-mono">$</span> <!> <!></div></div>'),ze=k('<div><!> <!> <!> <!> <div><div class="xterm-output svelte-115p4sl"></div></div></div>');function Te(f,m){if(new.target)return Xt({component:Te,...f});Yt(m,!0);const H=()=>D(It,"$outputAuthority",O),i=()=>D(At,"$runtime$",O),_=()=>D(Ft,"$output$",O),C=()=>D(Rt,"$codeFontFamilyCSS",O),P=()=>D(Ct,"$retainedOutput$",O),$t=()=>D(Ot,"$hidesAgentLifecycleActions$",O),at=()=>D(St,"$script$",O),[O,wt]=Gt();let $=J(m,"scriptId",7),v=J(m,"workspaceId",7),N=J(m,"class",7,"");const R=tt(""),B=tt(""),nt=tt("");let Q=_t(!1);S(()=>R.set(v())),S(()=>B.set($()));let I,n=null,M=null,V=null,W=null,L=null,j=null;const St=st(R,B),At=be(R,B),Ft=gt(R,B),Ct=ye(R,B,nt),Ot=$e(R),Rt=ke(),It=we(R),ot=crypto.randomUUID();S(()=>{const t=v();return $(),()=>{t&&u.dispatch(ae(t,ot))}}),S(()=>{const t=v(),e=$(),s=H(),r=i();if(!s||!t||!e)return;r.status,r.startedAt;const l=crypto.randomUUID();return nt.set(l),U(Q,ft(()=>_().chunks.length===0),!0),u.dispatch(ne(t,e,l)),()=>u.dispatch(oe(t,e,l))});let X=_t(0);const Lt=te(()=>i().status==="exited"&&i().exitCode!=null&&i().exitCode!==0&&i().exitCode<128);function zt(){if(!I||n)return;W=new pe(I);const t=W.getCurrentTheme();n=new me({allowProposedApi:!0,fontFamily:C(),fontSize:13,lineHeight:1.2,letterSpacing:0,cursorBlink:!1,cursorStyle:"underline",cursorWidth:1,scrollback:1e4,allowTransparency:!0,convertEol:!0,disableStdin:!0,drawBoldTextInBrightColors:!0,theme:t}),n.attachCustomKeyEventHandler(s=>{const r=s.metaKey||s.ctrlKey;return!(r&&s.key==="`"||r&&s.key==="j"||r&&s.key==="k")}),M=new _e,n.loadAddon(M);const e=new fe((s,r)=>{try{const l=new URL(r);l.hostname==="localhost"||l.hostname==="127.0.0.1"?ge(r).then(g=>{Qt(async()=>{const{getPanelLayoutManager:c}=await import("./ClYVhnOY.js").then(x=>x.p);return{getPanelLayoutManager:c}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(({getPanelLayoutManager:c})=>{c(v()).openBrowserPanel(g.url,void 0,void 0,g.requestedUrl)}).catch(()=>{window.open(g.url,"_blank")})}):window.open(r,"_blank")}catch{window.open(r,"_blank")}});n.loadAddon(e),n.open(I),W.applyTheme(n),j=requestAnimationFrame(()=>{j=null,M?.fit()}),V=new ResizeObserver(()=>{M?.fit()}),V.observe(I),Tt()}function Tt(){if(!n)return;const t=gt.select(u.state,v(),$());t.chunks.length>0&&n.write(t.chunks.map(e=>e.text).join("")),U(X,t.dropped+t.chunks.length)}function it(){L!==null&&(cancelAnimationFrame(L),L=null),j!==null&&(cancelAnimationFrame(j),j=null),V?.disconnect(),V=null,W?.dispose(),W=null;const t=n;n=null,M=null,U(X,0),t&&de(t)}S(()=>{const t=_(),e=ft(()=>Z(X)),s=t.dropped+t.chunks.length;if(!n||s<=e)return;const r=Math.max(e-t.dropped,0);n.write(t.chunks.slice(r).map(l=>l.text).join("")),U(X,s)}),S(()=>{const t=C();n&&n.options.fontFamily!==t&&(n.options.fontFamily=t)});function Dt(){u.dispatch(ie(v(),$()))}function Et(){if(!v()){G.error(o.terminal_scriptOutput_noWorkspace_error());return}u.dispatch(ce(v(),$(),P()?.text,ot))}S(()=>{i().status==="idle"&&_().chunks.length===0&&it()}),S(()=>{!(i().status==="idle"&&_().chunks.length===0)&&I&&!n&&(L!==null&&cancelAnimationFrame(L),L=requestAnimationFrame(()=>{L=null,zt()}))}),Jt(()=>{it()});var Pt={get scriptId(){return $()},set scriptId(t){$(t),et()},get workspaceId(){return v()},set workspaceId(t){v(t),et()},get class(){return N()},set class(t=""){N(t),et()},$set:Kt,$on:(t,e)=>Nt(m,t,e)},K=ze(),lt=A(K);{var qt=t=>{var e=Ae(),s=A(e),r=A(s),l=A(r);rt(l,{get icon(){return ve},size:"xs"}),F(r);var g=p(r,2),c=E(g,!0);F(s);var x=p(s,2);{var w=a=>{ht(a,{variant:"outline",size:"sm",class:"h-7 text-xs bg-background border border-border text-danger",onclick:Et,children:(d,z)=>{var q=kt(),mt=vt(q);rt(mt,{get icon(){return he},size:"sm",class:"mr-1.5"});var Ht=p(mt);b(Vt=>y(Ht,` ${Vt??""}`),[()=>o.terminal_scriptOutput_askAiToFix_label()]),h(d,q)},$$slots:{default:!0}})};T(x,a=>{$t()||a(w)})}F(e),b(a=>y(c,a),[()=>o.terminal_scriptOutput_buildFailed_label({exitCode:i().exitCode??0})]),h(t,e)};T(lt,t=>{Z(Lt)&&t(qt)})}var ct=p(lt,2);{var Bt=t=>{var e=Oe(),s=A(e),r=E(s,!0),l=p(s,2),g=E(l,!0),c=p(l,2);{var x=a=>{var d=Fe();let z;var q=E(d,!0);b(()=>{z=ee(d,"",z,{"font-family":C()}),y(q,P().text)}),h(a,d)},w=a=>{var d=Ce(),z=E(d,!0);b(q=>y(z,q),[()=>P().status==="loading"?o.terminal_scriptOutput_retainedLoading_label():o.terminal_scriptOutput_retainedUnavailable_label()]),h(a,d)};T(c,a=>{P().status==="available"?a(x):a(w,-1)})}F(e),b((a,d)=>{y(r,a),y(g,d)},[()=>o.terminal_scriptOutput_retained_label(),()=>o.terminal_scriptOutput_retained_description()]),se("open","toggle",e,a=>U(Q,a),()=>Z(Q)),h(t,e)};T(ct,t=>{P()&&t(Bt)})}var ut=p(ct,2);{var Mt=t=>{var e=Re(),s=E(e,!0);b(r=>y(s,r),[()=>o.terminal_scriptOutput_live_label()]),h(t,e)};T(ut,t=>{_().chunks.length>0&&P()&&t(Mt)})}var dt=p(ut,2);{var Wt=t=>{var e=Le(),s=A(e),r=p(A(s),2);{var l=c=>{var x=Ie(),w=E(x,!0);b(a=>y(w,a),[()=>le(at())]),h(c,x)};T(r,c=>{at()&&c(l)})}var g=p(r,2);ht(g,{variant:"ghost",size:"xs",onclick:Dt,class:"text-muted-foreground hover:text-foreground",children:(c,x)=>{var w=kt(),a=vt(w);rt(a,{get icon(){return xe},class:"h-3 w-3 mr-1"});var d=p(a);b(z=>y(d,` ${z??""}`),[()=>o.terminal_scriptOutput_run_label()]),h(c,w)},$$slots:{default:!0}}),F(s),F(e),h(t,e)};T(dt,t=>{i().status==="idle"&&_().chunks.length===0&&t(Wt)})}var Y=p(dt,2);let pt;var jt=A(Y);re(jt,t=>I=t,()=>I),F(Y),F(K),b(()=>{xt(K,1,`script-output-viewer ${N()??""}`,"svelte-115p4sl"),pt=xt(Y,1,"flex-1 relative overflow-hidden",null,pt,{hidden:i().status==="idle"&&_().chunks.length===0})}),h(f,K);var Ut=Zt(Pt);return wt(),Ut}async function rr(f,m,H){const i=st.select(u.state,f,m);if(!i||!H()||!bt.select(u.state,f,m))return;const _=yt.select(u.state,f);if(!_){G.error(o.workspace_client_accessChanged_error());return}if(!await Se({title:o.scripts_delete_title({name:i.name}),description:o.scripts_delete_description(),confirmLabel:o.scripts_delete_label(),destructive:!0}))return;if(_!==yt.select(u.state,f)){G.error(o.workspace_client_accessChanged_error());return}const C=st.select(u.state,f,m);if(!H()||!C||C.createdAt!==i.createdAt||C.name!==i.name||!bt.select(u.state,f,m)){G.error(o.scripts_delete_changed_error());return}u.dispatch(ue(f,m,o.terminal_quakeOverlay_deleteScriptFailed_error()))}export{Te as S,rr as c};