@intent-hq/web 2.300.1 → 2.301.1

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 (248) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{D24Lh2xV.js → -1vWYJiy.js} +1 -1
  3. package/web/app/immutable/chunks/{B00a-E5y.js → -8mBz6EW.js} +1 -1
  4. package/web/app/immutable/chunks/{seZ3kiWB.js → 2Iga5834.js} +1 -1
  5. package/web/app/immutable/chunks/{DD_wk1WS.js → 3-bIA0_b.js} +2 -2
  6. package/web/app/immutable/chunks/{VIc8fDOK.js → 3cwLWYk-.js} +1 -1
  7. package/web/app/immutable/chunks/{uuGBA4cr.js → 4byfznQh.js} +1 -1
  8. package/web/app/immutable/chunks/{D_HBTAOp.js → 6WuGSm1v.js} +2 -2
  9. package/web/app/immutable/chunks/{CoKvDYIY.js → 6hOEL6g0.js} +1 -1
  10. package/web/app/immutable/chunks/{CtPUg4ad.js → 8FC2Ymrs.js} +1 -1
  11. package/web/app/immutable/chunks/{XRDpypMz.js → 90FT2TPG.js} +2 -2
  12. package/web/app/immutable/chunks/{7lKdD900.js → 9Bp-qw-c.js} +1 -1
  13. package/web/app/immutable/chunks/{B6GFXjaE.js → 9pcH5qab.js} +4 -4
  14. package/web/app/immutable/chunks/{CHHzckiT.js → Alw6Bgam.js} +1 -1
  15. package/web/app/immutable/chunks/{DOb83nqS.js → B-pxGJ33.js} +1 -1
  16. package/web/app/immutable/chunks/{CTb5E7ts.js → B1f-Dpa6.js} +1 -1
  17. package/web/app/immutable/chunks/{C7jsu14h.js → B1ySs1Ps.js} +1 -1
  18. package/web/app/immutable/chunks/{6bctAAQ4.js → B3pWDt4A.js} +2 -2
  19. package/web/app/immutable/chunks/{BVR4ypbe.js → B5FPkuba.js} +1 -1
  20. package/web/app/immutable/chunks/{Ca7foKhO.js → B5gRIzZb.js} +1 -1
  21. package/web/app/immutable/chunks/{Cr3qamxz.js → B6wnyXxa.js} +1 -1
  22. package/web/app/immutable/chunks/{CbB5VTQO.js → B9e_lQGd.js} +1 -1
  23. package/web/app/immutable/chunks/{WAk1in99.js → BAJdDJmt.js} +1 -1
  24. package/web/app/immutable/chunks/{BKb2X4nY.js → BBfmiZwR.js} +1 -1
  25. package/web/app/immutable/chunks/{J1JvTxzS.js → BCFfKX9W.js} +1 -1
  26. package/web/app/immutable/chunks/{BOBlxuhv.js → BDHBtQ3l.js} +1 -1
  27. package/web/app/immutable/chunks/{DOP6s1nq.js → BDUAehdP.js} +4 -4
  28. package/web/app/immutable/chunks/{BBi8ZQ4f.js → BFnbk-Kf.js} +1 -1
  29. package/web/app/immutable/chunks/{DJPQ2gWl.js → BGGzsVfR.js} +1 -1
  30. package/web/app/immutable/chunks/{ClQcbOPg.js → BH5cuIQi.js} +1 -1
  31. package/web/app/immutable/chunks/{B08ZRfRe.js → BIDHEGct.js} +1 -1
  32. package/web/app/immutable/chunks/{CMT8W8d8.js → BIOk6wuV.js} +1 -1
  33. package/web/app/immutable/chunks/{D1YVXYbM.js → BJ_6izfA.js} +7 -7
  34. package/web/app/immutable/chunks/{CcJbNmRb.js → BMPb03sg.js} +1 -1
  35. package/web/app/immutable/chunks/{C1ANrPzv.js → BNPFPBlO.js} +1 -1
  36. package/web/app/immutable/chunks/{MSSSP_6i.js → BNVzhw1y.js} +1 -1
  37. package/web/app/immutable/chunks/{CNcMC2eS.js → BO9EbiHx.js} +1 -1
  38. package/web/app/immutable/chunks/{C0sDoyzY.js → BPC4nNQe.js} +1 -1
  39. package/web/app/immutable/chunks/{0nqxMME2.js → BR-wS1W8.js} +1 -1
  40. package/web/app/immutable/chunks/{BRX8YzX5.js → BRKe81M1.js} +1 -1
  41. package/web/app/immutable/chunks/{BsU6XLOF.js → BSuE_PI2.js} +1 -1
  42. package/web/app/immutable/chunks/{BS-h7rm3.js → BTIw3yd0.js} +1 -1
  43. package/web/app/immutable/chunks/{DHUOIULZ.js → BTeM7_LX.js} +1 -1
  44. package/web/app/immutable/chunks/{DW4Kmsyn.js → BU8fu6L_.js} +1 -1
  45. package/web/app/immutable/chunks/{DfARSELN.js → BVTor63R.js} +3 -3
  46. package/web/app/immutable/chunks/{zFZ2p9zT.js → BW_04noU.js} +1 -1
  47. package/web/app/immutable/chunks/{B648LYGe.js → BWerHQW_.js} +1 -1
  48. package/web/app/immutable/chunks/{3sRD2IoY.js → BX8IWbyz.js} +2 -2
  49. package/web/app/immutable/chunks/{BzvRDF8m.js → BYZmS9Dk.js} +1 -1
  50. package/web/app/immutable/chunks/{C_A8Orac.js → BYk_qw69.js} +1 -1
  51. package/web/app/immutable/chunks/{Bx4lXaHY.js → BYxkGGC-.js} +1 -1
  52. package/web/app/immutable/chunks/{D8RydOZp.js → B_vcNRuc.js} +1 -1
  53. package/web/app/immutable/chunks/{Dj9vAmvP.js → BapFUUqZ.js} +1 -1
  54. package/web/app/immutable/chunks/{COWTRkIf.js → Bd69ye4n.js} +1 -1
  55. package/web/app/immutable/chunks/{gM93sUNx.js → Bd9XSgIb.js} +1 -1
  56. package/web/app/immutable/chunks/{BKoNmPdl.js → BdCx7DnP.js} +1 -1
  57. package/web/app/immutable/chunks/{3cdteGtc.js → BeRTGLrw.js} +1 -1
  58. package/web/app/immutable/chunks/{BggFqLcQ.js → BghpE59-.js} +1 -1
  59. package/web/app/immutable/chunks/{DD1B8iWW.js → BhYLt5th.js} +1 -1
  60. package/web/app/immutable/chunks/{Ozne-tFy.js → Bk5SMnS3.js} +49 -49
  61. package/web/app/immutable/chunks/{x9rbYKj9.js → BlDfHMda.js} +1 -1
  62. package/web/app/immutable/chunks/{QvMOlSpE.js → BlPj7Bqh.js} +1 -1
  63. package/web/app/immutable/chunks/{CLwukbv5.js → Bo2QS6PZ.js} +1 -1
  64. package/web/app/immutable/chunks/{CcRQKkS2.js → Bo7YWMXl.js} +1 -1
  65. package/web/app/immutable/chunks/{0-b4ZvTK.js → BuXA0uuF.js} +1 -1
  66. package/web/app/immutable/chunks/{9ZGNcJrk.js → BvUM18CV.js} +1 -1
  67. package/web/app/immutable/chunks/BvgUrOVR.js +227 -0
  68. package/web/app/immutable/chunks/{BO3uDFyf.js → BwEpZ6hl.js} +3 -3
  69. package/web/app/immutable/chunks/{xnqT8zWA.js → BxC2yVbF.js} +1 -1
  70. package/web/app/immutable/chunks/{DPODhnzy.js → BxgeL5Cn.js} +2 -2
  71. package/web/app/immutable/chunks/{CAdJgRT-.js → BzDjODLF.js} +1 -1
  72. package/web/app/immutable/chunks/{CojjevwO.js → BzwTpGAs.js} +3 -3
  73. package/web/app/immutable/chunks/{Cs8-gQAN.js → C-yDVBGV.js} +1 -1
  74. package/web/app/immutable/chunks/{MkI4_nBU.js → C0DySWij.js} +1 -1
  75. package/web/app/immutable/chunks/{IFT0w_rv.js → C4Zy0P7R.js} +1 -1
  76. package/web/app/immutable/chunks/{2ZXwYJuA.js → C4wwbPuR.js} +1 -1
  77. package/web/app/immutable/chunks/{xn0HgFL2.js → C6PYFU8v.js} +1 -1
  78. package/web/app/immutable/chunks/{CViglT06.js → C9dil5-t.js} +1 -1
  79. package/web/app/immutable/chunks/{B5FD8FRF.js → CB1wD_PC.js} +1 -1
  80. package/web/app/immutable/chunks/{CjZ3vck_.js → CBDImldB.js} +1 -1
  81. package/web/app/immutable/chunks/{s1gAk8mT.js → CBYPZH-W.js} +1 -1
  82. package/web/app/immutable/chunks/CDxER840.js +1 -0
  83. package/web/app/immutable/chunks/{h-HGzFkJ.js → CEOoXkJa.js} +4 -4
  84. package/web/app/immutable/chunks/{DczZ5XlV.js → CEs-7mch.js} +3 -3
  85. package/web/app/immutable/chunks/{ConaHaDS.js → CFgK9GfH.js} +1 -1
  86. package/web/app/immutable/chunks/{CIhr4uzF.js → CGwmPMQc.js} +1 -1
  87. package/web/app/immutable/chunks/{BQ3lIAxU.js → CHDy3QTf.js} +1 -1
  88. package/web/app/immutable/chunks/{B1BoYgO3.js → CK1vqkSE.js} +1 -1
  89. package/web/app/immutable/chunks/{Cc7p6my_.js → CKI5DKl7.js} +6 -6
  90. package/web/app/immutable/chunks/{Cz3L4t3K.js → CKj5bwOX.js} +1 -1
  91. package/web/app/immutable/chunks/{CZ0U9o7-.js → CMAl4tQM.js} +1 -1
  92. package/web/app/immutable/chunks/{Q0MFbJMW.js → CMQqNZFP.js} +1 -1
  93. package/web/app/immutable/chunks/CMS0Mt7v.js +1 -0
  94. package/web/app/immutable/chunks/{BB2kR3UP.js → CNGkxhSe.js} +1 -1
  95. package/web/app/immutable/chunks/{D_fVcaam.js → CORu-AyV.js} +1 -1
  96. package/web/app/immutable/chunks/{5GrgBznS.js → COuOkYRg.js} +1 -1
  97. package/web/app/immutable/chunks/{CLt_MpVR.js → CPBiF1gr.js} +1 -1
  98. package/web/app/immutable/chunks/{qoEkEEyr.js → CS1PgLFW.js} +1 -1
  99. package/web/app/immutable/chunks/{UiwXoSAw.js → CSiZwu1h.js} +1 -1
  100. package/web/app/immutable/chunks/{5sBQ6rKD.js → CT_wb7-d.js} +1 -1
  101. package/web/app/immutable/chunks/{Dp-w6U2a.js → CTt3kMm1.js} +1 -1
  102. package/web/app/immutable/chunks/{CI_dqO7A.js → CUl5WBR5.js} +1 -1
  103. package/web/app/immutable/chunks/{BBKgmsAl.js → CUt6iXkF.js} +1 -1
  104. package/web/app/immutable/chunks/{Djo4Utna.js → CYfBmNaT.js} +1 -1
  105. package/web/app/immutable/chunks/{C0yADNxK.js → C_-tA5vs.js} +2 -2
  106. package/web/app/immutable/chunks/{D31GMMqw.js → C_VMQN67.js} +1 -1
  107. package/web/app/immutable/chunks/{CjJmucSj.js → C_uqctJM.js} +1 -1
  108. package/web/app/immutable/chunks/{BnoYK4Cg.js → CaibRh-G.js} +1 -1
  109. package/web/app/immutable/chunks/{DOlRZEzP.js → Cavwt8Mn.js} +1 -1
  110. package/web/app/immutable/chunks/{dAdxFhG6.js → CbF4ODHW.js} +1 -1
  111. package/web/app/immutable/chunks/{qVOvfVaw.js → Cdz-CHGd.js} +1 -1
  112. package/web/app/immutable/chunks/{DYFbONVh.js → CenrrJuj.js} +2 -2
  113. package/web/app/immutable/chunks/{B0WURFIt.js → Cf891EVZ.js} +1 -1
  114. package/web/app/immutable/chunks/{ByOlSVuA.js → CfM2ZJef.js} +1 -1
  115. package/web/app/immutable/chunks/{C9KORVFh.js → Cg_QSby7.js} +1 -1
  116. package/web/app/immutable/chunks/{DxZVPzM-.js → Cl5KdYjm.js} +1 -1
  117. package/web/app/immutable/chunks/{GgqVQsTS.js → Cn23SDXY.js} +1 -1
  118. package/web/app/immutable/chunks/{5D7P8R1M.js → Cnlend6s.js} +1 -1
  119. package/web/app/immutable/chunks/{BKBZBubB.js → CqnucWm4.js} +1 -1
  120. package/web/app/immutable/chunks/{lfN_4jdk.js → Crq2Gvaa.js} +1 -1
  121. package/web/app/immutable/chunks/{-j8RilKC.js → CsqCa0Sd.js} +2 -2
  122. package/web/app/immutable/chunks/{DDs4Vg0U.js → CuG6uIIP.js} +1 -1
  123. package/web/app/immutable/chunks/{C6MidKO1.js → Cvg7bd3W.js} +1 -1
  124. package/web/app/immutable/chunks/{waEdGUDl.js → CwnyA6hc.js} +1 -1
  125. package/web/app/immutable/chunks/{DsUUGZq_.js → Cx089QrC.js} +1 -1
  126. package/web/app/immutable/chunks/{BVT8FnwX.js → D-s4Q5GN.js} +1 -1
  127. package/web/app/immutable/chunks/{CqbBHiiS.js → D1IlJCd0.js} +1 -1
  128. package/web/app/immutable/chunks/{C2RKkR8r.js → D2gIe4Fc.js} +1 -1
  129. package/web/app/immutable/chunks/{BVLclYIV.js → D6IXX0lv.js} +1 -1
  130. package/web/app/immutable/chunks/{DR4IMcDF.js → D6Id8WlN.js} +1 -1
  131. package/web/app/immutable/chunks/{CMxICaSn.js → D9hi6Z3O.js} +1 -1
  132. package/web/app/immutable/chunks/D9iN-aHM.js +5 -0
  133. package/web/app/immutable/chunks/{WhG7Bgtb.js → DD1-zRxp.js} +1 -1
  134. package/web/app/immutable/chunks/{DW3NYbCg.js → DE5Smm9m.js} +1 -1
  135. package/web/app/immutable/chunks/{DfZpv0e6.js → DFoGBie-.js} +1 -1
  136. package/web/app/immutable/chunks/{YJmoM74E.js → DG__gHhd.js} +1 -1
  137. package/web/app/immutable/chunks/{CURgPz9A.js → DIlG6FTS.js} +1 -1
  138. package/web/app/immutable/chunks/{DvuFiJGX.js → DK1vbm9l.js} +1 -1
  139. package/web/app/immutable/chunks/{DayXN3MG.js → DKs2ftKN.js} +1 -1
  140. package/web/app/immutable/chunks/{BWAM175S.js → DLoJFSfZ.js} +1 -1
  141. package/web/app/immutable/chunks/{yr_icLi6.js → DMC7qMUv.js} +1 -1
  142. package/web/app/immutable/chunks/{CNsCQ6no.js → DMaQDnJk.js} +1 -1
  143. package/web/app/immutable/chunks/{Dy75eCEg.js → DMcsIxoO.js} +1 -1
  144. package/web/app/immutable/chunks/{BFq_nebX.js → DNmVxfYt.js} +8 -8
  145. package/web/app/immutable/chunks/{D6tg0AFH.js → DOGdTp2m.js} +1 -1
  146. package/web/app/immutable/chunks/{2DcZXs_F.js → DR58OcKC.js} +1 -1
  147. package/web/app/immutable/chunks/{DPaNvpDi.js → DR9205pL.js} +1 -1
  148. package/web/app/immutable/chunks/{CCOyeB8l.js → DTSOJB0e.js} +1 -1
  149. package/web/app/immutable/chunks/{CZL3_4T_.js → DXwDIYHN.js} +1 -1
  150. package/web/app/immutable/chunks/{l4QAkguk.js → DYd7w17e.js} +1 -1
  151. package/web/app/immutable/chunks/{3pZ2C7Oz.js → DYrK-s5W.js} +1 -1
  152. package/web/app/immutable/chunks/{BRFS4VDU.js → DYztlXyW.js} +1 -1
  153. package/web/app/immutable/chunks/{BcN0a7iZ.js → DZ5koqO7.js} +1 -1
  154. package/web/app/immutable/chunks/{iYBu_bIg.js → D_m0iYjs.js} +1 -1
  155. package/web/app/immutable/chunks/{BWaQmmKL.js → DadwIC0R.js} +1 -1
  156. package/web/app/immutable/chunks/{CyAayV8v.js → Dax20l9D.js} +2 -2
  157. package/web/app/immutable/chunks/{BeXyu8S7.js → DbKrZJmS.js} +6 -6
  158. package/web/app/immutable/chunks/{D7tJZDri.js → DbY-sUwj.js} +1 -1
  159. package/web/app/immutable/chunks/{D1mml-OO.js → DcE_Ld1a.js} +1 -1
  160. package/web/app/immutable/chunks/{CeO1YObE.js → DdKmPHVm.js} +1 -1
  161. package/web/app/immutable/chunks/{BL66wtH1.js → DffgEGrv.js} +1 -1
  162. package/web/app/immutable/chunks/{g8wzFaTr.js → DfiXlh8D.js} +1 -1
  163. package/web/app/immutable/chunks/{BmZ0oFC-.js → DgBCXQ71.js} +1 -1
  164. package/web/app/immutable/chunks/{BpS2Zkky.js → DiDcqoCZ.js} +1 -1
  165. package/web/app/immutable/chunks/{TKDyISXm.js → Dj5vfD48.js} +3 -3
  166. package/web/app/immutable/chunks/{B9UG1fIf.js → DjVfE_Ds.js} +1 -1
  167. package/web/app/immutable/chunks/{CbSjEe9c.js → Dkg7fAiD.js} +1 -1
  168. package/web/app/immutable/chunks/{BPC4bZ2e.js → DkibMP99.js} +1 -1
  169. package/web/app/immutable/chunks/{DnSvdDJQ.js → DkraFhXS.js} +1 -1
  170. package/web/app/immutable/chunks/{BXDqRhfc.js → DmtmsOtX.js} +1 -1
  171. package/web/app/immutable/chunks/{AFSjjw3j.js → Do_TqlrK.js} +1 -1
  172. package/web/app/immutable/chunks/{CUPUpXuX.js → Dovmtid-.js} +1 -1
  173. package/web/app/immutable/chunks/{dJdm8RiY.js → DpN6Ybfd.js} +1 -1
  174. package/web/app/immutable/chunks/{CGXAF4r8.js → DrWcQsKJ.js} +1 -1
  175. package/web/app/immutable/chunks/{B23FAgl4.js → DvCCocml.js} +1 -1
  176. package/web/app/immutable/chunks/{2N3bEpgZ.js → DwuPw74E.js} +1 -1
  177. package/web/app/immutable/chunks/{DUb-Rw9h.js → Dz6pz6rM.js} +1 -1
  178. package/web/app/immutable/chunks/{BiyBBgWJ.js → HcVsBsAl.js} +1 -1
  179. package/web/app/immutable/chunks/{BuBWlA2n.js → IISaQsK0.js} +1 -1
  180. package/web/app/immutable/chunks/IJYL54f1.js +1 -0
  181. package/web/app/immutable/chunks/{BoVqnGlE.js → Iu8s0xrk.js} +1 -1
  182. package/web/app/immutable/chunks/{DjJQPfKI.js → LzWIYiXc.js} +1 -1
  183. package/web/app/immutable/chunks/{DzxV-zrJ.js → M8sdbvOT.js} +1 -1
  184. package/web/app/immutable/chunks/{vTk7TgiT.js → McMSPwXq.js} +1 -1
  185. package/web/app/immutable/chunks/{_wdKNOb8.js → NPItrD9R.js} +1 -1
  186. package/web/app/immutable/chunks/{DDDplTKI.js → NlCjCVxn.js} +1 -1
  187. package/web/app/immutable/chunks/{DSoSzq2S.js → NzxBab7c.js} +1 -1
  188. package/web/app/immutable/chunks/{Cl4oF0_T.js → PeSBy6Q3.js} +1 -1
  189. package/web/app/immutable/chunks/{DBYwZc8q.js → PnTDvXOe.js} +1 -1
  190. package/web/app/immutable/chunks/{CYIyfTfT.js → SiYLjuDS.js} +1 -1
  191. package/web/app/immutable/chunks/{1-VabEZ0.js → Syl_OSjA.js} +1 -1
  192. package/web/app/immutable/chunks/{nn-FB5iu.js → TV2_MWXe.js} +1 -1
  193. package/web/app/immutable/chunks/{EZewBOPv.js → TWVlaXcj.js} +1 -1
  194. package/web/app/immutable/chunks/{cF3AJqS4.js → U_cmHtqi.js} +1 -1
  195. package/web/app/immutable/chunks/{D_0pJDZv.js → UakvtOgc.js} +1 -1
  196. package/web/app/immutable/chunks/{Dpront9T.js → UlQNHb3m.js} +1 -1
  197. package/web/app/immutable/chunks/{CkiTXhNV.js → Vwfej_EC.js} +3 -3
  198. package/web/app/immutable/chunks/{C7NJtCoD.js → WL4wAA6m.js} +2 -2
  199. package/web/app/immutable/chunks/{WC951FwE.js → XO84v1Z5.js} +1 -1
  200. package/web/app/immutable/chunks/{txAxF1ra.js → b33seoH7.js} +1 -1
  201. package/web/app/immutable/chunks/{BVnCu4HK.js → dvgX5pbn.js} +1 -1
  202. package/web/app/immutable/chunks/{BPhCmCpT.js → fX819Pv6.js} +1 -1
  203. package/web/app/immutable/chunks/{CJB0AMOQ.js → gMye6h60.js} +2 -2
  204. package/web/app/immutable/chunks/{KoGdyFdq.js → h6ZeyBNW.js} +1 -1
  205. package/web/app/immutable/chunks/{DOpzySCS.js → ljZI5d7y.js} +1 -1
  206. package/web/app/immutable/chunks/{CKXP5Dfl.js → mFLgyCOK.js} +1 -1
  207. package/web/app/immutable/chunks/{DHZp-IFS.js → mNkJFQiA.js} +1 -1
  208. package/web/app/immutable/chunks/{CuGpCjd7.js → oqxFFnht.js} +1 -1
  209. package/web/app/immutable/chunks/{4MuDb8sG.js → pDn0_bm8.js} +1 -1
  210. package/web/app/immutable/chunks/{DEMyUrKD.js → rgnRekX3.js} +1 -1
  211. package/web/app/immutable/chunks/{CwSA3Dwr.js → sgMaD9-D.js} +3 -3
  212. package/web/app/immutable/chunks/{CilxFmmt.js → tzy2FJ3p.js} +1 -1
  213. package/web/app/immutable/chunks/{BTiFAxnk.js → uR5KZKbl.js} +1 -1
  214. package/web/app/immutable/chunks/{igt8MaJ4.js → udwHGMln.js} +1 -1
  215. package/web/app/immutable/chunks/{DB9IAENr.js → ulG7NA7z.js} +1 -1
  216. package/web/app/immutable/chunks/{7L5DlLPB.js → vt-D6r-U.js} +1 -1
  217. package/web/app/immutable/chunks/{f3mINTV_.js → wD4fx_9g.js} +1 -1
  218. package/web/app/immutable/chunks/{Bkny4U08.js → x0rjHUHa.js} +1 -1
  219. package/web/app/immutable/chunks/{CqShCtgy.js → yCx04g4X.js} +1 -1
  220. package/web/app/immutable/chunks/{B2YeO1vq.js → yW4W7htU.js} +1 -1
  221. package/web/app/immutable/entry/{app.MRheiWYu.js → app.CIVLA2a9.js} +2 -2
  222. package/web/app/immutable/entry/start.Cn76ZGVI.js +1 -0
  223. package/web/app/immutable/nodes/{0.CtDeqO-b.js → 0.ACp4Nz4v.js} +1 -1
  224. package/web/app/immutable/nodes/{1.DkbI4cS2.js → 1.DRnQyS6A.js} +1 -1
  225. package/web/app/immutable/nodes/{10.m8CCWmGC.js → 10.CLkVRFBV.js} +1 -1
  226. package/web/app/immutable/nodes/{12.C6vEm_M7.js → 12.CEAVKYuu.js} +1 -1
  227. package/web/app/immutable/nodes/{13.DPA662Yd.js → 13.CJ1HRZcd.js} +1 -1
  228. package/web/app/immutable/nodes/{14.ByaMuLhR.js → 14.9_BXzcxR.js} +1 -1
  229. package/web/app/immutable/nodes/{15.Byubc7Em.js → 15.CZGq0vsg.js} +1 -1
  230. package/web/app/immutable/nodes/{16.BmFYAQ9C.js → 16.BMYUgPNR.js} +2 -2
  231. package/web/app/immutable/nodes/2.d5BGPrjO.js +9 -0
  232. package/web/app/immutable/nodes/{3.C3UUZ7iK.js → 3.0E-ZGvKe.js} +1 -1
  233. package/web/app/immutable/nodes/{4.CtX4qgJE.js → 4.DSO5-jdr.js} +1 -1
  234. package/web/app/immutable/nodes/{5.yLkRrv3R.js → 5.BexFD7jH.js} +1 -1
  235. package/web/app/immutable/nodes/6.CqlyGMy5.js +1 -0
  236. package/web/app/immutable/nodes/{7.DCFEio1e.js → 7.C2XKzJeK.js} +1 -1
  237. package/web/app/immutable/nodes/{8.CGM4vick.js → 8.CMFpn5kb.js} +4 -4
  238. package/web/app/immutable/nodes/{9.V5qvVUf3.js → 9.BolTThFG.js} +4 -4
  239. package/web/app/version.json +1 -1
  240. package/web/index.html +9 -9
  241. package/web/app/immutable/chunks/9A9__2dZ.js +0 -1
  242. package/web/app/immutable/chunks/BqQtQly_.js +0 -5
  243. package/web/app/immutable/chunks/D4Mfx79s.js +0 -227
  244. package/web/app/immutable/chunks/DGR4UUG4.js +0 -1
  245. package/web/app/immutable/chunks/W-gkWrYK.js +0 -1
  246. package/web/app/immutable/entry/start.CSXPreJt.js +0 -1
  247. package/web/app/immutable/nodes/2.B4Inck9s.js +0 -9
  248. package/web/app/immutable/nodes/6.CjUsIDeG.js +0 -1
@@ -1,4 +1,4 @@
1
- import{g as Pe}from"./CLt_MpVR.js";import{bq as Fe,aV as xe,bt as Me,cs as Ke,cr as Ye,cu as We,ct as Ve,cn as Ue,cl as He,cb as Xe,bX as Ge,bN as je,bM as qe,bD as Je,ba as Ze,b9 as Qe,bb as $e,aH as et,aG as tt,au as st,N as rt,at as it,o as nt,s as at,m as ot,f as u,aN as Y,c3 as X,bF as ct,a6 as lt,bC as y,a0 as ut,c0 as gt,aO as Le,G as ht,b5 as dt,b6 as pt,bT as ft,a4 as bt,aT as St,b8 as me,bU as xt}from"./Cc7p6my_.js";import{c as Lt}from"./DGR4UUG4.js";function mt(e){return Array.isArray(e)}function yt(e){if(Fe(e))return e;const n=xe(e);if(!wt(e))return{};if(mt(e)){const r=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(r.index=e.index,r.input=e.input),r}if(Me(e)){const r=e,l=r.constructor;return new l(r.buffer,r.byteOffset,r.length)}if(n==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(n==="[object DataView]"){const r=e,l=r.buffer,d=r.byteOffset,s=r.byteLength,h=new ArrayBuffer(s),x=new Uint8Array(l,d,s);return new Uint8Array(h).set(x),new DataView(h)}if(n==="[object Boolean]"||n==="[object Number]"||n==="[object String]"){const r=e.constructor,l=new r(e.valueOf());return n==="[object String]"?_t(l,e):se(l,e),l}if(n==="[object Date]")return new Date(Number(e));if(n==="[object RegExp]"){const r=e,l=new RegExp(r.source,r.flags);return l.lastIndex=r.lastIndex,l}if(n==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(n==="[object Map]"){const r=e,l=new Map;return r.forEach((d,s)=>{l.set(s,d)}),l}if(n==="[object Set]"){const r=e,l=new Set;return r.forEach(d=>{l.add(d)}),l}if(n==="[object Arguments]"){const r=e,l={};return se(l,r),l.length=r.length,l[Symbol.iterator]=r[Symbol.iterator],l}const o={};return kt(o,e),se(o,e),Et(o,e),o}function wt(e){switch(xe(e)){case ot:case at:case nt:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case je:case Ge:case Xe:case He:case Ue:case Ve:case We:case Ye:case Ke:return!0;default:return!1}}function se(e,n){for(const o in n)Object.hasOwn(n,o)&&(e[o]=n[o])}function Et(e,n){const o=Object.getOwnPropertySymbols(n);for(let r=0;r<o.length;r++){const l=o[r];Object.prototype.propertyIsEnumerable.call(n,l)&&(e[l]=n[l])}}function _t(e,n){const o=n.valueOf().length;for(const r in n)Object.hasOwn(n,r)&&(Number.isNaN(Number(r))||Number(r)>=o)&&(e[r]=n[r])}function kt(e,n){const o=Object.getPrototypeOf(n);o!==null&&typeof n.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(v,g,i,c){for(i=i||{},c=v.length;c--;i[v[c]]=g);return i},"o"),n=[1,15],o=[1,7],r=[1,13],l=[1,14],d=[1,19],s=[1,16],h=[1,17],x=[1,18],m=[8,30],S=[8,10,21,28,29,30,31,39,43,46],f=[1,23],L=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],b=[8,10,15,16,21,27,28,29,30,31,39,43,46],k=[1,49],_={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(g,i,c,p,E,t,M){var a=t.length-1;switch(E){case 4:p.getLogger().debug("Rule: separator (NL) ");break;case 5:p.getLogger().debug("Rule: separator (Space) ");break;case 6:p.getLogger().debug("Rule: separator (EOF) ");break;case 7:p.getLogger().debug("Rule: hierarchy: ",t[a-1]),p.setHierarchy(t[a-1]);break;case 8:p.getLogger().debug("Stop NL ");break;case 9:p.getLogger().debug("Stop EOF ");break;case 10:p.getLogger().debug("Stop NL2 ");break;case 11:p.getLogger().debug("Stop EOF2 ");break;case 12:p.getLogger().debug("Rule: statement: ",t[a]),typeof t[a].length=="number"?this.$=t[a]:this.$=[t[a]];break;case 13:p.getLogger().debug("Rule: statement #2: ",t[a-1]),this.$=[t[a-1]].concat(t[a]);break;case 14:p.getLogger().debug("Rule: link: ",t[a],g),this.$={edgeTypeStr:t[a],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",t[a-3],t[a-1],t[a]),this.$={edgeTypeStr:t[a],label:t[a-1]};break;case 18:const P=parseInt(t[a]),W=p.generateId();this.$={id:W,type:"space",label:"",width:P,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",t[a-2],t[a-1],t[a]," typestr: ",t[a-1].edgeTypeStr);const J=p.edgeStrToEdgeData(t[a-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(t[a-1].edgeTypeStr),Z=p.edgeStrToThickness(t[a-1].edgeTypeStr),D=p.edgeStrToPattern(t[a-1].edgeTypeStr);this.$=[{id:t[a-2].id,label:t[a-2].label,type:t[a-2].type,directions:t[a-2].directions},{id:t[a-2].id+"-"+t[a].id,start:t[a-2].id,end:t[a].id,label:t[a-1].label,type:"edge",thickness:Z,pattern:D,directions:t[a].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:t[a].id,label:t[a].label,type:p.typeStr2Type(t[a].typeStr),directions:t[a].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[a-1],t[a]),this.$={id:t[a-1].id,label:t[a-1].label,type:p.typeStr2Type(t[a-1].typeStr),directions:t[a-1].directions,widthInColumns:parseInt(t[a],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",t[a]),this.$={id:t[a].id,label:t[a].label,type:p.typeStr2Type(t[a].typeStr),directions:t[a].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",t[a]),this.$={type:"column-setting",columns:t[a]==="auto"?-1:parseInt(t[a])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",t[a-2],t[a-1]),p.generateId(),this.$={...t[a-2],type:"composite",children:t[a-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",t[a-2],t[a-1],t[a]);const A=p.generateId();this.$={id:A,type:"composite",label:"",children:t[a-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",t[a]),this.$={id:t[a]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[a-1],t[a]),this.$={id:t[a-1],label:t[a].label,typeStr:t[a].typeStr,directions:t[a].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",t[a]),this.$=[t[a]];break;case 32:p.getLogger().debug("Rule: dirList: ",t[a-1],t[a]),this.$=[t[a-1]].concat(t[a]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",t[a-2],t[a-1],t[a]),this.$={typeStr:t[a-2]+t[a],label:t[a-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[a-3],t[a-2]," #3:",t[a-1],t[a]),this.$={typeStr:t[a-3]+t[a],label:t[a-2],directions:t[a-1]};break;case 35:case 36:this.$={type:"classDef",id:t[a-1].trim(),css:t[a].trim()};break;case 37:this.$={type:"applyClass",id:t[a-1].trim(),styleClass:t[a].trim()};break;case 38:this.$={type:"applyStyles",id:t[a-1].trim(),stylesStr:t[a].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:n,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{8:[1,20]},e(m,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:n,21:o,28:r,29:l,31:d,39:s,43:h,46:x}),e(S,[2,16],{14:22,15:f,16:L}),e(S,[2,17]),e(S,[2,18]),e(S,[2,19]),e(S,[2,20]),e(S,[2,21]),e(S,[2,22]),e(w,[2,25],{27:[1,25]}),e(S,[2,26]),{19:26,26:12,31:d},{10:n,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(b,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(m,[2,13]),{26:35,31:d},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:n,11:37,13:4,14:22,15:f,16:L,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(b,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(S,[2,28]),e(S,[2,35]),e(S,[2,36]),e(S,[2,37]),e(S,[2,38]),{36:[1,47]},{33:48,34:k},{15:[1,50]},e(S,[2,27]),e(b,[2,33]),{38:[1,51]},{33:52,34:k,38:[2,31]},{31:[2,15]},e(b,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(g,i){if(i.recoverable)this.trace(g);else{var c=new Error(g);throw c.hash=i,c}},"parseError"),parse:u(function(g){var i=this,c=[0],p=[],E=[null],t=[],M=this.table,a="",P=0,W=0,J=2,V=1,Z=t.slice.call(arguments,1),D=Object.create(this.lexer),A={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(A.yy[Q]=this.yy[Q]);D.setInput(g,A.yy),A.yy.lexer=D,A.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;t.push($);var Be=D.options&&D.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(O){c.length=c.length-2*O,E.length=E.length-O,t.length=t.length-O}u(Re,"popStack");function de(){var O;return O=p.pop()||D.lex()||V,typeof O!="number"&&(O instanceof Array&&(p=O,O=p.pop()),O=i.symbols_[O]||O),O}u(de,"lex");for(var N,R,C,ee,F={},U,B,pe,H;;){if(R=c[c.length-1],this.defaultActions[R]?C=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),C=M[R]&&M[R][N]),typeof C>"u"||!C.length||!C[0]){var te="";H=[];for(U in M[R])this.terminals_[U]&&U>J&&H.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(P+1)+`:
1
+ import{g as Pe}from"./C4wwbPuR.js";import{bq as Fe,aV as xe,bt as Me,cs as Ke,cr as Ye,cu as We,ct as Ve,cn as Ue,cl as He,cb as Xe,bX as Ge,bN as je,bM as qe,bD as Je,ba as Ze,b9 as Qe,bb as $e,aH as et,aG as tt,au as st,N as rt,at as it,o as nt,s as at,m as ot,f as u,aN as Y,c3 as X,bF as ct,a6 as lt,bC as y,a0 as ut,c0 as gt,aO as Le,G as ht,b5 as dt,b6 as pt,bT as ft,a4 as bt,aT as St,b8 as me,bU as xt}from"./CKI5DKl7.js";import{c as Lt}from"./CDxER840.js";function mt(e){return Array.isArray(e)}function yt(e){if(Fe(e))return e;const n=xe(e);if(!wt(e))return{};if(mt(e)){const r=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(r.index=e.index,r.input=e.input),r}if(Me(e)){const r=e,l=r.constructor;return new l(r.buffer,r.byteOffset,r.length)}if(n==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(n==="[object DataView]"){const r=e,l=r.buffer,d=r.byteOffset,s=r.byteLength,h=new ArrayBuffer(s),x=new Uint8Array(l,d,s);return new Uint8Array(h).set(x),new DataView(h)}if(n==="[object Boolean]"||n==="[object Number]"||n==="[object String]"){const r=e.constructor,l=new r(e.valueOf());return n==="[object String]"?_t(l,e):se(l,e),l}if(n==="[object Date]")return new Date(Number(e));if(n==="[object RegExp]"){const r=e,l=new RegExp(r.source,r.flags);return l.lastIndex=r.lastIndex,l}if(n==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(n==="[object Map]"){const r=e,l=new Map;return r.forEach((d,s)=>{l.set(s,d)}),l}if(n==="[object Set]"){const r=e,l=new Set;return r.forEach(d=>{l.add(d)}),l}if(n==="[object Arguments]"){const r=e,l={};return se(l,r),l.length=r.length,l[Symbol.iterator]=r[Symbol.iterator],l}const o={};return kt(o,e),se(o,e),Et(o,e),o}function wt(e){switch(xe(e)){case ot:case at:case nt:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case je:case Ge:case Xe:case He:case Ue:case Ve:case We:case Ye:case Ke:return!0;default:return!1}}function se(e,n){for(const o in n)Object.hasOwn(n,o)&&(e[o]=n[o])}function Et(e,n){const o=Object.getOwnPropertySymbols(n);for(let r=0;r<o.length;r++){const l=o[r];Object.prototype.propertyIsEnumerable.call(n,l)&&(e[l]=n[l])}}function _t(e,n){const o=n.valueOf().length;for(const r in n)Object.hasOwn(n,r)&&(Number.isNaN(Number(r))||Number(r)>=o)&&(e[r]=n[r])}function kt(e,n){const o=Object.getPrototypeOf(n);o!==null&&typeof n.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(v,g,i,c){for(i=i||{},c=v.length;c--;i[v[c]]=g);return i},"o"),n=[1,15],o=[1,7],r=[1,13],l=[1,14],d=[1,19],s=[1,16],h=[1,17],x=[1,18],m=[8,30],S=[8,10,21,28,29,30,31,39,43,46],f=[1,23],L=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],b=[8,10,15,16,21,27,28,29,30,31,39,43,46],k=[1,49],_={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(g,i,c,p,E,t,M){var a=t.length-1;switch(E){case 4:p.getLogger().debug("Rule: separator (NL) ");break;case 5:p.getLogger().debug("Rule: separator (Space) ");break;case 6:p.getLogger().debug("Rule: separator (EOF) ");break;case 7:p.getLogger().debug("Rule: hierarchy: ",t[a-1]),p.setHierarchy(t[a-1]);break;case 8:p.getLogger().debug("Stop NL ");break;case 9:p.getLogger().debug("Stop EOF ");break;case 10:p.getLogger().debug("Stop NL2 ");break;case 11:p.getLogger().debug("Stop EOF2 ");break;case 12:p.getLogger().debug("Rule: statement: ",t[a]),typeof t[a].length=="number"?this.$=t[a]:this.$=[t[a]];break;case 13:p.getLogger().debug("Rule: statement #2: ",t[a-1]),this.$=[t[a-1]].concat(t[a]);break;case 14:p.getLogger().debug("Rule: link: ",t[a],g),this.$={edgeTypeStr:t[a],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",t[a-3],t[a-1],t[a]),this.$={edgeTypeStr:t[a],label:t[a-1]};break;case 18:const P=parseInt(t[a]),W=p.generateId();this.$={id:W,type:"space",label:"",width:P,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",t[a-2],t[a-1],t[a]," typestr: ",t[a-1].edgeTypeStr);const J=p.edgeStrToEdgeData(t[a-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(t[a-1].edgeTypeStr),Z=p.edgeStrToThickness(t[a-1].edgeTypeStr),D=p.edgeStrToPattern(t[a-1].edgeTypeStr);this.$=[{id:t[a-2].id,label:t[a-2].label,type:t[a-2].type,directions:t[a-2].directions},{id:t[a-2].id+"-"+t[a].id,start:t[a-2].id,end:t[a].id,label:t[a-1].label,type:"edge",thickness:Z,pattern:D,directions:t[a].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:t[a].id,label:t[a].label,type:p.typeStr2Type(t[a].typeStr),directions:t[a].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[a-1],t[a]),this.$={id:t[a-1].id,label:t[a-1].label,type:p.typeStr2Type(t[a-1].typeStr),directions:t[a-1].directions,widthInColumns:parseInt(t[a],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",t[a]),this.$={id:t[a].id,label:t[a].label,type:p.typeStr2Type(t[a].typeStr),directions:t[a].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",t[a]),this.$={type:"column-setting",columns:t[a]==="auto"?-1:parseInt(t[a])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",t[a-2],t[a-1]),p.generateId(),this.$={...t[a-2],type:"composite",children:t[a-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",t[a-2],t[a-1],t[a]);const A=p.generateId();this.$={id:A,type:"composite",label:"",children:t[a-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",t[a]),this.$={id:t[a]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[a-1],t[a]),this.$={id:t[a-1],label:t[a].label,typeStr:t[a].typeStr,directions:t[a].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",t[a]),this.$=[t[a]];break;case 32:p.getLogger().debug("Rule: dirList: ",t[a-1],t[a]),this.$=[t[a-1]].concat(t[a]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",t[a-2],t[a-1],t[a]),this.$={typeStr:t[a-2]+t[a],label:t[a-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[a-3],t[a-2]," #3:",t[a-1],t[a]),this.$={typeStr:t[a-3]+t[a],label:t[a-2],directions:t[a-1]};break;case 35:case 36:this.$={type:"classDef",id:t[a-1].trim(),css:t[a].trim()};break;case 37:this.$={type:"applyClass",id:t[a-1].trim(),styleClass:t[a].trim()};break;case 38:this.$={type:"applyStyles",id:t[a-1].trim(),stylesStr:t[a].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:n,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{8:[1,20]},e(m,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:n,21:o,28:r,29:l,31:d,39:s,43:h,46:x}),e(S,[2,16],{14:22,15:f,16:L}),e(S,[2,17]),e(S,[2,18]),e(S,[2,19]),e(S,[2,20]),e(S,[2,21]),e(S,[2,22]),e(w,[2,25],{27:[1,25]}),e(S,[2,26]),{19:26,26:12,31:d},{10:n,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(b,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(m,[2,13]),{26:35,31:d},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:n,11:37,13:4,14:22,15:f,16:L,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:r,29:l,31:d,39:s,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(b,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(S,[2,28]),e(S,[2,35]),e(S,[2,36]),e(S,[2,37]),e(S,[2,38]),{36:[1,47]},{33:48,34:k},{15:[1,50]},e(S,[2,27]),e(b,[2,33]),{38:[1,51]},{33:52,34:k,38:[2,31]},{31:[2,15]},e(b,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(g,i){if(i.recoverable)this.trace(g);else{var c=new Error(g);throw c.hash=i,c}},"parseError"),parse:u(function(g){var i=this,c=[0],p=[],E=[null],t=[],M=this.table,a="",P=0,W=0,J=2,V=1,Z=t.slice.call(arguments,1),D=Object.create(this.lexer),A={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(A.yy[Q]=this.yy[Q]);D.setInput(g,A.yy),A.yy.lexer=D,A.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;t.push($);var Be=D.options&&D.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(O){c.length=c.length-2*O,E.length=E.length-O,t.length=t.length-O}u(Re,"popStack");function de(){var O;return O=p.pop()||D.lex()||V,typeof O!="number"&&(O instanceof Array&&(p=O,O=p.pop()),O=i.symbols_[O]||O),O}u(de,"lex");for(var N,R,C,ee,F={},U,B,pe,H;;){if(R=c[c.length-1],this.defaultActions[R]?C=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),C=M[R]&&M[R][N]),typeof C>"u"||!C.length||!C[0]){var te="";H=[];for(U in M[R])this.terminals_[U]&&U>J&&H.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(P+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+H.join(", ")+", got '"+(this.terminals_[N]||N)+"'":te="Parse error on line "+(P+1)+": Unexpected "+(N==V?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(te,{text:D.match,token:this.terminals_[N]||N,line:D.yylineno,loc:$,expected:H})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+N);switch(C[0]){case 1:c.push(N),E.push(D.yytext),t.push(D.yylloc),c.push(C[1]),N=null,W=D.yyleng,a=D.yytext,P=D.yylineno,$=D.yylloc;break;case 2:if(B=this.productions_[C[1]][1],F.$=E[E.length-B],F._$={first_line:t[t.length-(B||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(B||1)].first_column,last_column:t[t.length-1].last_column},Be&&(F._$.range=[t[t.length-(B||1)].range[0],t[t.length-1].range[1]]),ee=this.performAction.apply(F,[a,W,P,A.yy,C[1],E,t].concat(Z)),typeof ee<"u")return ee;B&&(c=c.slice(0,-1*B*2),E=E.slice(0,-1*B),t=t.slice(0,-1*B)),c.push(this.productions_[C[1]][0]),E.push(F.$),t.push(F._$),pe=M[c[c.length-2]][c[c.length-1]],c.push(pe);break;case 3:return!0}}return!0},"parse")},T=(function(){var v={EOF:1,parseError:u(function(i,c){if(this.yy.parser)this.yy.parser.parseError(i,c);else throw new Error(i)},"parseError"),setInput:u(function(g,i){return this.yy=i||this.yy||{},this._input=g,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:u(function(){var g=this._input[0];this.yytext+=g,this.yyleng++,this.offset++,this.match+=g,this.matched+=g;var i=g.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),g},"input"),unput:u(function(g){var i=g.length,c=g.split(/(?:\r\n?|\n)/g);this._input=g+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var p=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),c.length-1&&(this.yylineno-=c.length-1);var E=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:c?(c.length===p.length?this.yylloc.first_column:0)+p[p.length-c.length].length-c[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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:u(function(g){this.unput(this.match.slice(g))},"less"),pastInput:u(function(){var g=this.matched.substr(0,this.matched.length-this.match.length);return(g.length>20?"...":"")+g.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var g=this.match;return g.length<20&&(g+=this._input.substr(0,20-g.length)),(g.substr(0,20)+(g.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var g=this.pastInput(),i=new Array(g.length+1).join("-");return g+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{bG as b,d9 as _,df as P,bA as k,aQ as C}from"./D24Lh2xV.js";import{c as v}from"./ChTqQfQN.js";import{bo as m}from"./yZ5s7S5S.js";import{Hb as y}from"./WOicJa2k.js";const A={narrowWidth:600,shortHeight:500,wideWidth:900};function I(e,c,t){let i;e<A.narrowWidth?i=2:(e<A.wideWidth,i=Math.min(3,t));let o;c<A.shortHeight?o=2:o=Math.min(3,Math.ceil(t/i));const n=i*o;return{columns:i,rows:o,maxItems:n}}const h=v("PresetExecutor");async function F(e,c,t){switch(h.info("Applying content preset",{presetId:e,context:t}),e){case"planning":return W(c,t);case"agents-row":return D(c,t);case"changes":return G(c,t);case"review":return L(c,t);default:return c.applyPreset(e),!0}}async function W(e,c){const{workspaceId:t}=c,i=b.select(y.state,t),o=i.length>0?i.reduce((n,r)=>{const l=n.createdAt?new Date(n.createdAt).getTime():1/0;return(r.createdAt?new Date(r.createdAt).getTime():1/0)<l?r:n}):void 0;return e.batchMutations(()=>{const n=e.createGridLayout(2);return o&&e.openTab({type:"agent",title:o.name||m.layout_tabTypes_agent_title(),agentId:o.id,closable:!0,workspaceId:t},n[0]),e.openTab({type:"note",title:m.layout_shared_spec_title(),noteId:"spec",closable:!0,workspaceId:t},n[1]),!0})}async function D(e,c){const{workspaceId:t,containerWidth:i,containerHeight:o}=c,n=6,r=y.state,l=b.select(r,t),p=C.select(r,t).sort((s,a)=>{const d=s.status==="active"||s.isProcessing,u=a.status==="active"||a.isProcessing;if(d&&!u)return-1;if(!d&&u)return 1;const f=s.lastActivity?new Date(s.lastActivity).getTime():s.updatedAt?new Date(s.updatedAt).getTime():0;return(a.lastActivity?new Date(a.lastActivity).getTime():a.updatedAt?new Date(a.updatedAt).getTime():0)-f});h.info("Agents row preset - agent counts",{total:l.length+p.length,foreground:l.length,background:p.length});const g=[...l,...p.slice(0,n-l.length)].slice(0,n);if(g.length===0)return h.info("No agents to display for agents-row preset"),!1;const T=I(i,o,g.length);return h.info("Agent tiling calculated",{tiling:T,agentCount:g.length}),e.batchMutations(()=>{const s=e.createGridLayout(g.length);h.info("Created grid layout for agents",{panelIds:s,panelCount:s.length,agentCount:g.length});for(let a=0;a<g.length;a++){const d=s[a];d&&e.openTab({type:"agent",title:g[a].name||m.layout_tabTypes_agent_title(),agentId:g[a].id,closable:!0,workspaceId:t},d)}return!0})}async function G(e,c){const{workspaceId:t,containerWidth:i,containerHeight:o}=c,n=y.state,r=_.select(n,t),l=P.select(n,t),p=k.select(n,t),g=l.map(a=>({path:a.relativePath,type:"unstaged"})),T=r.map(a=>({path:a.relativePath,type:"staged"}));let s=[...g,...T].slice(0,6);return s.length===0&&p.length>0&&p[0].files&&(s=p[0].files.slice(0,6).map(a=>({path:a.path,type:"committed"}))),e.batchMutations(()=>{if(s.length===0){h.info("No changes to display for changes preset");const u=e.createGridLayout(1);return e.openTab({type:"changes",title:m.layout_tabTypes_changes_title(),closable:!0,workspaceId:t},u[0]),!0}const a=I(i,o,s.length);h.info("Changes tiling calculated",{tiling:a,fileCount:s.length});const d=e.createGridLayout(s.length);h.info("Created grid layout for changes",{panelIds:d,panelCount:d.length,fileCount:s.length});for(let u=0;u<s.length;u++){const f=s[u],w=f.path.split("/").pop()||f.path;e.openTab({type:"diff",title:w,diffPath:f.path,closable:!0,workspaceId:t,data:{staged:f.type==="staged"}},d[u])}return!0})}async function L(e,c){const{workspaceId:t}=c,i=b.select(y.state,t),o=i.length>0?i.reduce((n,r)=>{const l=n.createdAt?new Date(n.createdAt).getTime():1/0;return(r.createdAt?new Date(r.createdAt).getTime():1/0)<l?r:n}):void 0;return e.batchMutations(()=>{const n=e.createGridLayout(2);return o&&e.openTab({type:"agent",title:o.name||m.layout_presetExecutor_coordinator_fallback(),agentId:o.id,closable:!0,workspaceId:t},n[0]),e.openTab({type:"local-changes",title:m.layout_presetExecutor_allChanges_title(),closable:!0,workspaceId:t},n[1]),!0})}export{F as applyContentPreset};
1
+ import{bG as b,d9 as _,df as P,bA as k,aQ as C}from"./-1vWYJiy.js";import{c as v}from"./ChTqQfQN.js";import{bo as m}from"./yZ5s7S5S.js";import{Hb as y}from"./WOicJa2k.js";const A={narrowWidth:600,shortHeight:500,wideWidth:900};function I(e,c,t){let i;e<A.narrowWidth?i=2:(e<A.wideWidth,i=Math.min(3,t));let o;c<A.shortHeight?o=2:o=Math.min(3,Math.ceil(t/i));const n=i*o;return{columns:i,rows:o,maxItems:n}}const h=v("PresetExecutor");async function F(e,c,t){switch(h.info("Applying content preset",{presetId:e,context:t}),e){case"planning":return W(c,t);case"agents-row":return D(c,t);case"changes":return G(c,t);case"review":return L(c,t);default:return c.applyPreset(e),!0}}async function W(e,c){const{workspaceId:t}=c,i=b.select(y.state,t),o=i.length>0?i.reduce((n,r)=>{const l=n.createdAt?new Date(n.createdAt).getTime():1/0;return(r.createdAt?new Date(r.createdAt).getTime():1/0)<l?r:n}):void 0;return e.batchMutations(()=>{const n=e.createGridLayout(2);return o&&e.openTab({type:"agent",title:o.name||m.layout_tabTypes_agent_title(),agentId:o.id,closable:!0,workspaceId:t},n[0]),e.openTab({type:"note",title:m.layout_shared_spec_title(),noteId:"spec",closable:!0,workspaceId:t},n[1]),!0})}async function D(e,c){const{workspaceId:t,containerWidth:i,containerHeight:o}=c,n=6,r=y.state,l=b.select(r,t),p=C.select(r,t).sort((s,a)=>{const d=s.status==="active"||s.isProcessing,u=a.status==="active"||a.isProcessing;if(d&&!u)return-1;if(!d&&u)return 1;const f=s.lastActivity?new Date(s.lastActivity).getTime():s.updatedAt?new Date(s.updatedAt).getTime():0;return(a.lastActivity?new Date(a.lastActivity).getTime():a.updatedAt?new Date(a.updatedAt).getTime():0)-f});h.info("Agents row preset - agent counts",{total:l.length+p.length,foreground:l.length,background:p.length});const g=[...l,...p.slice(0,n-l.length)].slice(0,n);if(g.length===0)return h.info("No agents to display for agents-row preset"),!1;const T=I(i,o,g.length);return h.info("Agent tiling calculated",{tiling:T,agentCount:g.length}),e.batchMutations(()=>{const s=e.createGridLayout(g.length);h.info("Created grid layout for agents",{panelIds:s,panelCount:s.length,agentCount:g.length});for(let a=0;a<g.length;a++){const d=s[a];d&&e.openTab({type:"agent",title:g[a].name||m.layout_tabTypes_agent_title(),agentId:g[a].id,closable:!0,workspaceId:t},d)}return!0})}async function G(e,c){const{workspaceId:t,containerWidth:i,containerHeight:o}=c,n=y.state,r=_.select(n,t),l=P.select(n,t),p=k.select(n,t),g=l.map(a=>({path:a.relativePath,type:"unstaged"})),T=r.map(a=>({path:a.relativePath,type:"staged"}));let s=[...g,...T].slice(0,6);return s.length===0&&p.length>0&&p[0].files&&(s=p[0].files.slice(0,6).map(a=>({path:a.path,type:"committed"}))),e.batchMutations(()=>{if(s.length===0){h.info("No changes to display for changes preset");const u=e.createGridLayout(1);return e.openTab({type:"changes",title:m.layout_tabTypes_changes_title(),closable:!0,workspaceId:t},u[0]),!0}const a=I(i,o,s.length);h.info("Changes tiling calculated",{tiling:a,fileCount:s.length});const d=e.createGridLayout(s.length);h.info("Created grid layout for changes",{panelIds:d,panelCount:d.length,fileCount:s.length});for(let u=0;u<s.length;u++){const f=s[u],w=f.path.split("/").pop()||f.path;e.openTab({type:"diff",title:w,diffPath:f.path,closable:!0,workspaceId:t,data:{staged:f.type==="staged"}},d[u])}return!0})}async function L(e,c){const{workspaceId:t}=c,i=b.select(y.state,t),o=i.length>0?i.reduce((n,r)=>{const l=n.createdAt?new Date(n.createdAt).getTime():1/0;return(r.createdAt?new Date(r.createdAt).getTime():1/0)<l?r:n}):void 0;return e.batchMutations(()=>{const n=e.createGridLayout(2);return o&&e.openTab({type:"agent",title:o.name||m.layout_presetExecutor_coordinator_fallback(),agentId:o.id,closable:!0,workspaceId:t},n[0]),e.openTab({type:"local-changes",title:m.layout_presetExecutor_allChanges_title(),closable:!0,workspaceId:t},n[1]),!0})}export{F as applyContentPreset};
@@ -1 +1 @@
1
- import{b8 as ce,aR as ue,by as fe,ao as Z,_ as $,ae as A,c0 as ze,c5 as Ae,aG as ve,bI as ge,bV as M,br as We,bH as L,aD as u,bs as be,a5 as Be,bA as Me,W,bn as me,aA as b,aB as j,bo as De,ay as qe,bS as He,c9 as k,be as Ve,b$ as Xe,b_ as Ye,bO as je}from"./B8o4lNgr.js";import{t as he,bq as m,by as pe,br as ye,b as xe,a_ as ee}from"./yZ5s7S5S.js";import{c as V,f as D}from"./D46WSk8U.js";import{b as te}from"./D2g8BuR1.js";import{s as Ge}from"./Cb1eroFO.js";import{H as re,E as Ue,c as Je}from"./Dfbagr79.js";import"./CM5eCs6m.js";import{bL as Ke}from"./CyAayV8v.js";function ne(e,t,n=t){var a=new WeakSet;ce(e,"input",async s=>{Z&&e.type==="checkbox"&&$();var i=s?e.defaultValue:e.value;if(i=q(e)?H(i):i,n(i),A!==null&&a.add(A),await ze(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(ue&&e.defaultValue!==e.value||Ae(t)==null&&e.value)&&(n(q(e)?H(e.value):e.value),A!==null&&a.add(A)),fe(()=>{Z&&e.type==="checkbox"&&$();var s=t();if(e===document.activeElement){var i=A;if(a.has(i))return}q(e)&&s===H(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function q(e){var t=e.type;return t==="number"||t==="range"}function H(e){return e===""?null:+e}function Qe(e,t,n=t){ce(e,"change",()=>{n(e.files)}),ue&&e.files&&n(e.files),fe(()=>{e.files=t()})}let N=[],R=[],I=null,B=!1,z=0;function se(e){if(e.pending){e.pending=!1,z-=1;try{e.fn()}catch(t){queueMicrotask(()=>{throw t})}}}const X=-1;let Y=null;function _e(e){e.pending&&(e.pending=!1,z-=1,!(z>0||B)&&(I!==null&&I!==X&&cancelAnimationFrame(I),I=null,Y=null,N=[],R=[]))}function G(){const e=globalThis.requestAnimationFrame;if(I!==null&&Y===e)return;Y=e,I=X;const t=e(Ze);I===X&&(I=t)}function Ze(){I=null,B=!0;try{for(;N.length>0;){const e=N;N=[];for(const t of e)se(t)}for(;R.length>0;){const e=R;R=[];for(const t of e)se(t)}}finally{B=!1}z>0?G():(N=[],R=[])}function pt(e){const t={fn:e,pending:!0};return z+=1,N.push(t),B||G(),()=>_e(t)}function yt(e){const t={fn:e,pending:!0};return z+=1,R.push(t),B||G(),()=>_e(t)}const we=Symbol("owned-popup-context"),Ie=Symbol("owned-popup-close");function xt(e){ge(we,e)}function $e(){return ve(we)}function _t(e){ge(Ie,e)}function et(){return ve(Ie)}function wt(e){const t=$e(),n=e??et();return a=>({destroy:t?.register(a,n)})}function ae(e,t,n){const a=t+n;return e<t?t-e:e>a?e-a:0}function tt(e,t,n="y"){let a=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=ae(e.x,f.left,f.width),l=ae(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(a=i,s=d)}return a}function It(e,t={}){const n=t.axis??"y",a=new Map;let s=M(null),i=M(We([])),f=M(null),c=M(0),l;const d=()=>{u(f)&&L(s,tt(u(f),u(i),n),!0)},_=g=>{const o=getComputedStyle(e),v=T=>Number.parseFloat(T)||0,x=o.boxSizing==="border-box",w=Number.parseFloat(o.width)+(x?0:v(o.paddingLeft)+v(o.paddingRight)+v(o.borderLeftWidth)+v(o.borderRightWidth)),P=Number.parseFloat(o.height)+(x?0:v(o.paddingTop)+v(o.paddingBottom)+v(o.borderTopWidth)+v(o.borderBottomWidth)),p=T=>Math.abs(T-1)<.001?1:T;return{x:p(w>0&&g.width/w||1),y:p(P>0&&g.height/P||1)}},S=()=>{const g=e.getBoundingClientRect(),{x:o,y:v}=_(g),x=[];for(const[w,P]of a){const p=P.getBoundingClientRect();x[w]={top:(p.top-g.top)/v-e.clientTop+e.scrollTop,left:(p.left-g.left)/o-e.clientLeft+e.scrollLeft,width:p.width/o,height:p.height/v}}L(i,x,!0),d()},C=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{S()});C?.observe(e);const E=()=>{L(c,u(c)+1)},O=g=>{const o=e.getBoundingClientRect(),{x:v,y:x}=_(o);L(f,{x:(g.clientX-o.left)/v-e.clientLeft+e.scrollLeft,y:(g.clientY-o.top)/x-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},F=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",E),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",F),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:S,setActiveIndex(g){L(s,g,!0)},registerItem(g,o){const v=a.get(g);v&&C?.unobserve?.(v),o?(a.set(g,o),C?.observe(o)):a.delete(g),S()},destroy(){l!==void 0&&cancelAnimationFrame(l),C?.disconnect(),e.removeEventListener("pointerenter",E),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",F)}}}const St=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(a){(a.hover!==n.hover||a.index!==n.index)&&(n.hover.registerItem(n.index,null),a.hover.registerItem(a.index,e)),n=a},destroy(){n.hover.registerItem(n.index,null)}}},Ct="p-1",Et="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",Ot="ml-auto first-line-icon w-(--menu-icon-size)";var rt=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),nt=j("<p><!></p>");function Se(e,t){if(new.target)return he({component:Se,...e});be(t,!0);let n=m(t,"tone",7,"helper"),a=m(t,"children",7),s=m(t,"class",7),i=ye(t,rt);var f={get tone(){return n()},set tone(d="helper"){n(d),b()},get children(){return a()},set children(d){a(d),b()},get class(){return s()},set class(d){s(d),b()},$set:pe,$on:(d,_)=>xe(t,d,_)},c=nt();V(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>D("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Be(c);return Ge(l,a),Me(c),re(1,c,()=>Ue,()=>({tier:"fast",y:-2,scale:1})),re(2,c,()=>Je,()=>({tier:"fast"})),W(e,c),me(f)}const Ce="data-[state=hover]:bg-hover",oe=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${Ce} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,Pt=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${Ce} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,ie="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",st="focus-visible:outline-none focus-visible:shadow-none";function le(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const at="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var ot=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),de=j("<input/>"),it=j("<!> <!>",1);function lt(e,t){const n=De();if(new.target)return he({component:lt,...e});be(t,!0);const a=Ke();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),_=m(t,"variant",7,"default"),S=m(t,"noFocusStyle",7,!1),C=m(t,"message",7),E=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),F=m(t,"aria-describedby",7),g=m(t,"aria-invalid",7),o=m(t,"class",7),v=m(t,"data-slot",7,"input"),x=ye(t,ot);const w=k(()=>typeof l()=="string"?l():a),P=k(()=>typeof l()=="number"?l():void 0),p=k(()=>E()??C()),T=k(()=>[F(),u(p)?O():void 0].filter(Boolean).join(" ")||void 0),U=k(()=>E()?!0:g());function Ee(){s()?.focus()}function Oe(){s()?.blur()}function Pe(){s()?.select()}function Te(r,h,y){s()?.setSelectionRange(r,h,y)}var Le={focus:Ee,blur:Oe,select:Pe,setSelectionRange:Te,get ref(){return s()},set ref(r){s(r),b()},get id(){return i()},set id(r){i(r),b()},get value(){return f()},set value(r){f(r),b()},get type(){return c()},set type(r){c(r),b()},get size(){return l()},set size(r){l(r),b()},get files(){return d()},set files(r){d(r),b()},get variant(){return _()},set variant(r="default"){_(r),b()},get noFocusStyle(){return S()},set noFocusStyle(r=!1){S(r),b()},get message(){return C()},set message(r){C(r),b()},get error(){return E()},set error(r){E(r),b()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),b()},get"aria-describedby"(){return F()},set"aria-describedby"(r){F(r),b()},get"aria-invalid"(){return g()},set"aria-invalid"(r){g(r),b()},get class(){return o()},set class(r){o(r),b()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),b()},$set:pe,$on:(r,h)=>xe(t,r,h)},J=it(),K=qe(J);{var Fe=r=>{var h=de();V(h,y=>({id:i(),"data-slot":v(),"data-size":u(w),class:y,type:"file",size:u(P),"aria-describedby":u(T),"aria-invalid":u(U),...x}),[()=>D("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",oe,"focus-visible:-outline-offset-2",le(u(w)),S()&&ie,o())],void 0,void 0,void 0,!0),te(h,y=>s(y),()=>s()),Qe(h,d),ne(h,f),W(r,h)},ke=r=>{var h=de();V(h,y=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":_()==="search"?"search":void 0,class:y,type:c(),size:u(P),"aria-describedby":u(T),"aria-invalid":u(U),autocorrect:"off",autocapitalize:"off",spellcheck:"false",...x}),[()=>_()==="search"?D("flex selection:bg-primary selection:text-primary-foreground",at,o()):D("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",oe,st,le(u(w)),S()&&ie,o())],void 0,void 0,void 0,!0),te(h,y=>s(y),()=>s()),ne(h,f),W(r,h)};ee(K,r=>{c()==="file"?r(Fe):r(ke,-1)})}var Ne=He(K,2);{var Re=r=>{{let h=k(()=>E()?"error":"helper");Se(r,{get id(){return O()},get tone(){return u(h)},children:(y,dt)=>{Ve();var Q=Xe();Ye(()=>je(Q,u(p))),W(y,Q)},$$slots:{default:!0}})}};ee(Ne,r=>{u(p)&&r(Re)})}return W(e,J),me(Le)}export{lt as I,Ct as O,Se as a,Ot as b,Et as c,Qe as d,ne as e,wt as f,It as g,et as h,$e as i,yt as j,_t as k,xt as l,oe as m,ie as n,Pt as o,St as p,le as q,at as r,pt as s,st as t};
1
+ import{b8 as ce,aR as ue,by as fe,ao as Z,_ as $,ae as A,c0 as ze,c5 as Ae,aG as ve,bI as ge,bV as M,br as We,bH as L,aD as u,bs as be,a5 as Be,bA as Me,W,bn as me,aA as b,aB as j,bo as De,ay as qe,bS as He,c9 as k,be as Ve,b$ as Xe,b_ as Ye,bO as je}from"./B8o4lNgr.js";import{t as he,bq as m,by as pe,br as ye,b as xe,a_ as ee}from"./yZ5s7S5S.js";import{c as V,f as D}from"./D46WSk8U.js";import{b as te}from"./D2g8BuR1.js";import{s as Ge}from"./Cb1eroFO.js";import{H as re,E as Ue,c as Je}from"./Dfbagr79.js";import"./CM5eCs6m.js";import{bL as Ke}from"./Dax20l9D.js";function ne(e,t,n=t){var a=new WeakSet;ce(e,"input",async s=>{Z&&e.type==="checkbox"&&$();var i=s?e.defaultValue:e.value;if(i=q(e)?H(i):i,n(i),A!==null&&a.add(A),await ze(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(ue&&e.defaultValue!==e.value||Ae(t)==null&&e.value)&&(n(q(e)?H(e.value):e.value),A!==null&&a.add(A)),fe(()=>{Z&&e.type==="checkbox"&&$();var s=t();if(e===document.activeElement){var i=A;if(a.has(i))return}q(e)&&s===H(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function q(e){var t=e.type;return t==="number"||t==="range"}function H(e){return e===""?null:+e}function Qe(e,t,n=t){ce(e,"change",()=>{n(e.files)}),ue&&e.files&&n(e.files),fe(()=>{e.files=t()})}let N=[],R=[],I=null,B=!1,z=0;function se(e){if(e.pending){e.pending=!1,z-=1;try{e.fn()}catch(t){queueMicrotask(()=>{throw t})}}}const X=-1;let Y=null;function _e(e){e.pending&&(e.pending=!1,z-=1,!(z>0||B)&&(I!==null&&I!==X&&cancelAnimationFrame(I),I=null,Y=null,N=[],R=[]))}function G(){const e=globalThis.requestAnimationFrame;if(I!==null&&Y===e)return;Y=e,I=X;const t=e(Ze);I===X&&(I=t)}function Ze(){I=null,B=!0;try{for(;N.length>0;){const e=N;N=[];for(const t of e)se(t)}for(;R.length>0;){const e=R;R=[];for(const t of e)se(t)}}finally{B=!1}z>0?G():(N=[],R=[])}function pt(e){const t={fn:e,pending:!0};return z+=1,N.push(t),B||G(),()=>_e(t)}function yt(e){const t={fn:e,pending:!0};return z+=1,R.push(t),B||G(),()=>_e(t)}const we=Symbol("owned-popup-context"),Ie=Symbol("owned-popup-close");function xt(e){ge(we,e)}function $e(){return ve(we)}function _t(e){ge(Ie,e)}function et(){return ve(Ie)}function wt(e){const t=$e(),n=e??et();return a=>({destroy:t?.register(a,n)})}function ae(e,t,n){const a=t+n;return e<t?t-e:e>a?e-a:0}function tt(e,t,n="y"){let a=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=ae(e.x,f.left,f.width),l=ae(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(a=i,s=d)}return a}function It(e,t={}){const n=t.axis??"y",a=new Map;let s=M(null),i=M(We([])),f=M(null),c=M(0),l;const d=()=>{u(f)&&L(s,tt(u(f),u(i),n),!0)},_=g=>{const o=getComputedStyle(e),v=T=>Number.parseFloat(T)||0,x=o.boxSizing==="border-box",w=Number.parseFloat(o.width)+(x?0:v(o.paddingLeft)+v(o.paddingRight)+v(o.borderLeftWidth)+v(o.borderRightWidth)),P=Number.parseFloat(o.height)+(x?0:v(o.paddingTop)+v(o.paddingBottom)+v(o.borderTopWidth)+v(o.borderBottomWidth)),p=T=>Math.abs(T-1)<.001?1:T;return{x:p(w>0&&g.width/w||1),y:p(P>0&&g.height/P||1)}},S=()=>{const g=e.getBoundingClientRect(),{x:o,y:v}=_(g),x=[];for(const[w,P]of a){const p=P.getBoundingClientRect();x[w]={top:(p.top-g.top)/v-e.clientTop+e.scrollTop,left:(p.left-g.left)/o-e.clientLeft+e.scrollLeft,width:p.width/o,height:p.height/v}}L(i,x,!0),d()},C=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{S()});C?.observe(e);const E=()=>{L(c,u(c)+1)},O=g=>{const o=e.getBoundingClientRect(),{x:v,y:x}=_(o);L(f,{x:(g.clientX-o.left)/v-e.clientLeft+e.scrollLeft,y:(g.clientY-o.top)/x-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},F=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",E),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",F),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:S,setActiveIndex(g){L(s,g,!0)},registerItem(g,o){const v=a.get(g);v&&C?.unobserve?.(v),o?(a.set(g,o),C?.observe(o)):a.delete(g),S()},destroy(){l!==void 0&&cancelAnimationFrame(l),C?.disconnect(),e.removeEventListener("pointerenter",E),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",F)}}}const St=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(a){(a.hover!==n.hover||a.index!==n.index)&&(n.hover.registerItem(n.index,null),a.hover.registerItem(a.index,e)),n=a},destroy(){n.hover.registerItem(n.index,null)}}},Ct="p-1",Et="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",Ot="ml-auto first-line-icon w-(--menu-icon-size)";var rt=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),nt=j("<p><!></p>");function Se(e,t){if(new.target)return he({component:Se,...e});be(t,!0);let n=m(t,"tone",7,"helper"),a=m(t,"children",7),s=m(t,"class",7),i=ye(t,rt);var f={get tone(){return n()},set tone(d="helper"){n(d),b()},get children(){return a()},set children(d){a(d),b()},get class(){return s()},set class(d){s(d),b()},$set:pe,$on:(d,_)=>xe(t,d,_)},c=nt();V(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>D("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Be(c);return Ge(l,a),Me(c),re(1,c,()=>Ue,()=>({tier:"fast",y:-2,scale:1})),re(2,c,()=>Je,()=>({tier:"fast"})),W(e,c),me(f)}const Ce="data-[state=hover]:bg-hover",oe=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${Ce} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,Pt=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${Ce} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,ie="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",st="focus-visible:outline-none focus-visible:shadow-none";function le(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const at="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var ot=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),de=j("<input/>"),it=j("<!> <!>",1);function lt(e,t){const n=De();if(new.target)return he({component:lt,...e});be(t,!0);const a=Ke();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),_=m(t,"variant",7,"default"),S=m(t,"noFocusStyle",7,!1),C=m(t,"message",7),E=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),F=m(t,"aria-describedby",7),g=m(t,"aria-invalid",7),o=m(t,"class",7),v=m(t,"data-slot",7,"input"),x=ye(t,ot);const w=k(()=>typeof l()=="string"?l():a),P=k(()=>typeof l()=="number"?l():void 0),p=k(()=>E()??C()),T=k(()=>[F(),u(p)?O():void 0].filter(Boolean).join(" ")||void 0),U=k(()=>E()?!0:g());function Ee(){s()?.focus()}function Oe(){s()?.blur()}function Pe(){s()?.select()}function Te(r,h,y){s()?.setSelectionRange(r,h,y)}var Le={focus:Ee,blur:Oe,select:Pe,setSelectionRange:Te,get ref(){return s()},set ref(r){s(r),b()},get id(){return i()},set id(r){i(r),b()},get value(){return f()},set value(r){f(r),b()},get type(){return c()},set type(r){c(r),b()},get size(){return l()},set size(r){l(r),b()},get files(){return d()},set files(r){d(r),b()},get variant(){return _()},set variant(r="default"){_(r),b()},get noFocusStyle(){return S()},set noFocusStyle(r=!1){S(r),b()},get message(){return C()},set message(r){C(r),b()},get error(){return E()},set error(r){E(r),b()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),b()},get"aria-describedby"(){return F()},set"aria-describedby"(r){F(r),b()},get"aria-invalid"(){return g()},set"aria-invalid"(r){g(r),b()},get class(){return o()},set class(r){o(r),b()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),b()},$set:pe,$on:(r,h)=>xe(t,r,h)},J=it(),K=qe(J);{var Fe=r=>{var h=de();V(h,y=>({id:i(),"data-slot":v(),"data-size":u(w),class:y,type:"file",size:u(P),"aria-describedby":u(T),"aria-invalid":u(U),...x}),[()=>D("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",oe,"focus-visible:-outline-offset-2",le(u(w)),S()&&ie,o())],void 0,void 0,void 0,!0),te(h,y=>s(y),()=>s()),Qe(h,d),ne(h,f),W(r,h)},ke=r=>{var h=de();V(h,y=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":_()==="search"?"search":void 0,class:y,type:c(),size:u(P),"aria-describedby":u(T),"aria-invalid":u(U),autocorrect:"off",autocapitalize:"off",spellcheck:"false",...x}),[()=>_()==="search"?D("flex selection:bg-primary selection:text-primary-foreground",at,o()):D("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",oe,st,le(u(w)),S()&&ie,o())],void 0,void 0,void 0,!0),te(h,y=>s(y),()=>s()),ne(h,f),W(r,h)};ee(K,r=>{c()==="file"?r(Fe):r(ke,-1)})}var Ne=He(K,2);{var Re=r=>{{let h=k(()=>E()?"error":"helper");Se(r,{get id(){return O()},get tone(){return u(h)},children:(y,dt)=>{Ve();var Q=Xe();Ye(()=>je(Q,u(p))),W(y,Q)},$$slots:{default:!0}})}};ee(Ne,r=>{u(p)&&r(Re)})}return W(e,J),me(Le)}export{lt as I,Ct as O,Se as a,Ot as b,Et as c,Qe as d,ne as e,wt as f,It as g,et as h,$e as i,yt as j,_t as k,xt as l,oe as m,ie as n,Pt as o,St as p,le as q,at as r,pt as s,st as t};
@@ -1,4 +1,4 @@
1
- import{g as Kt}from"./g8wzFaTr.js";import{a as f,aG as Zt,L as jt,aF as qt,K as Wt,aI as Ht,O as Qt,N as st,ad as Y,p as Xt,k as Jt,P as $t,aC as te,i as ee,_ as se,R as ie,ax as re,aV as ae}from"./D1YVXYbM.js";import{s as ne}from"./ConaHaDS.js";import{g as E,c3 as oe}from"./Cc7p6my_.js";var Nt=(function(){var s=f(function(F,n,l,d){for(l=l||{},d=F.length;d--;l[F[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],h=[1,10],y=[1,11],b=[1,12],k=[1,30],v=[1,23],p=[1,24],g=[1,25],I=[1,26],D=[1,27],x=[1,19],N=[1,28],A=[1,29],C=[1,20],L=[1,18],w=[1,21],V=[1,22],Ct=[2,6],u=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],ft=[1,36],bt=[1,37],gt=[1,38],yt=[1,39],_t=[1,40],j=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],M=[1,46],B=[1,47],q=[1,57],W=[43,51,53,54,55,74,75],H=[1,70],Q=[1,68],G=[1,65],X=[1,69],J=[1,71],it=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],rt=[1,78],at=[1,77],nt=[1,76],It=[69,70,71,72,73],At=[1,91],Rt=[6,9,45,50],K=[6,9,12,44,45,50,51,52],ot=[1,101],ct=[1,100],lt=[1,99],$=[18,61],vt=[1,110],Dt=[1,109],Lt=[20,43,51,53,54,55],kt=[18,61,64,66],mt={trace:f(E(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(E(function(n,l,d,i,_,t,et){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:h,25:y,27:b,28:13,29:14,30:15,31:16,32:17,34:k,37:v,38:p,39:g,40:I,41:D,43:x,46:N,47:A,51:C,53:L,54:w,55:V},s(a,Ct,{1:[2,1]}),s(u,[2,3]),s(u,[2,4]),s(u,[2,5]),s(u,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:ft,70:bt,71:gt,72:yt,73:_t}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(u,[2,26]),s(u,[2,27]),s(u,[2,28]),s(u,[2,29]),s(u,[2,30]),s(u,o,{5:44}),s(j,[2,58]),s(j,[2,59]),s(j,[2,60]),s(j,[2,61]),s(j,[2,62]),s(u,[2,36]),s(u,[2,37]),s(u,[2,38]),s(u,[2,39]),{15:45,43:M,44:B},{15:48,43:M,44:B},{15:49,43:M,44:B},{10:50,43:x,51:C,53:L,54:w,55:V},{10:51,43:x,51:C,53:L,54:w,55:V},{15:52,43:M,44:B},{17:53,18:[1,54],56:55,57:56,61:q},{10:58,43:x,51:C,53:L,54:w,55:V},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(u,[2,23]),s(u,[2,24]),s(u,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:h,25:y,27:b,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:v,38:p,39:g,40:I,41:D,43:x,46:N,47:A,51:C,53:L,54:w,55:V},{12:H,42:64,44:Q,45:G,48:66,49:67,51:X,52:J},s(it,[2,41]),s(it,[2,42]),{15:72,43:M,44:B,45:G},{12:H,42:73,44:Q,45:G,48:66,49:67,51:X,52:J},{6:rt,9:at,19:[1,75],35:74,50:nt},{12:[1,79],14:[1,80]},s(u,[2,16],{67:35,11:81,16:[1,82],45:G,69:ft,70:bt,71:gt,72:yt,73:_t}),{18:[1,83]},s(u,[2,13]),{17:84,18:[2,63],56:55,57:56,61:q},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:ft,70:bt,71:gt,72:yt,73:_t},s(It,[2,82]),s(It,[2,83]),s(u,[2,31]),s(u,Ct),{6:rt,9:at,35:90,45:At,50:nt},{43:[1,92],44:[1,93]},s(Rt,[2,47],{49:94,12:H,44:Q,51:X,52:J}),s(K,[2,49]),s(K,[2,54]),s(K,[2,55]),s(K,[2,56]),s(K,[2,57]),s(u,[2,45],{45:G}),{6:rt,9:at,35:95,45:At,50:nt},s(u,[2,32]),{10:97,36:96,43:x,51:C,53:L,54:w,55:V},s(u,[2,51]),s(u,[2,52]),s(u,[2,53]),{13:98,43:ot,53:ct,76:lt},{15:102,43:M,44:B},{10:103,43:x,51:C,53:L,54:w,55:V},{17:104,18:[1,105],56:55,57:56,61:q},s(u,[2,11]),{18:[2,64]},s($,[2,65],{59:106,60:107,63:108,65:vt,66:Dt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(u,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(u,[2,40]),{12:H,44:Q,48:113,49:67,51:X,52:J},s(it,[2,43]),s(it,[2,44]),s(K,[2,50]),s(u,[2,46]),{10:115,20:[1,114],43:x,51:C,53:L,54:w,55:V},s(Lt,[2,34]),s(u,[2,7]),s(u,[2,84]),s(u,[2,85]),s(u,[2,86]),{12:[1,116],45:G},{12:[1,118],14:[1,117]},{18:[1,119]},s(u,[2,14]),s($,[2,66],{60:120,64:[1,121],66:Dt}),s($,[2,67]),s(kt,[2,72]),s($,[2,75]),s(kt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:q},{15:124,43:M,44:B},s(Rt,[2,48],{49:94,12:H,44:Q,51:X,52:J}),{6:rt,9:at,35:125,50:nt},s(Lt,[2,35]),{13:126,43:ot,53:ct,76:lt},{15:127,43:M,44:B},{13:128,43:ot,53:ct,76:lt},s(u,[2,12]),s($,[2,68]),{63:129,65:vt},{18:[1,130]},s(u,[2,19]),s(u,[2,22],{16:[1,131],45:G}),s(u,[2,33]),s(u,[2,10]),{12:[1,132],45:G},s(u,[2,9]),s(kt,[2,73]),s(u,[2,17]),{17:133,18:[1,134],56:55,57:56,61:q},{13:135,43:ot,53:ct,76:lt},{18:[1,136]},s(u,[2,20]),s(u,[2,8]),s(u,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(E(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),"parseError"),parse:f(E(function(n){var l=this,d=[0],i=[],_=[null],t=[],et=this.table,e="",ht=0,wt=0,Pt=2,Vt=1,zt=t.slice.call(arguments,1),m=Object.create(this.lexer),P={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(P.yy[Et]=this.yy[Et]);m.setInput(n,P.yy),P.yy.lexer=m,P.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var St=m.yylloc;t.push(St);var Ut=m.options&&m.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(T){d.length=d.length-2*T,_.length=_.length-T,t.length=t.length-T}E(Mt,"popStack"),f(Mt,"popStack");function Tt(){var T;return T=i.pop()||m.lex()||Vt,typeof T!="number"&&(T instanceof Array&&(i=T,T=i.pop()),T=l.symbols_[T]||T),T}E(Tt,"lex"),f(Tt,"lex");for(var S,z,O,Ot,Z={},ut,R,Bt,dt;;){if(z=d[d.length-1],this.defaultActions[z]?O=this.defaultActions[z]:((S===null||typeof S>"u")&&(S=Tt()),O=et[z]&&et[z][S]),typeof O>"u"||!O.length||!O[0]){var xt="";dt=[];for(ut in et[z])this.terminals_[ut]&&ut>Pt&&dt.push("'"+this.terminals_[ut]+"'");m.showPosition?xt="Parse error on line "+(ht+1)+`:
1
+ import{g as Kt}from"./DfiXlh8D.js";import{a as f,aG as Zt,L as jt,aF as qt,K as Wt,aI as Ht,O as Qt,N as st,ad as Y,p as Xt,k as Jt,P as $t,aC as te,i as ee,_ as se,R as ie,ax as re,aV as ae}from"./BJ_6izfA.js";import{s as ne}from"./CFgK9GfH.js";import{g as E,c3 as oe}from"./CKI5DKl7.js";var Nt=(function(){var s=f(function(F,n,l,d){for(l=l||{},d=F.length;d--;l[F[d]]=n);return l},"o"),a=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],o=[2,2],c=[1,7],r=[1,9],h=[1,10],y=[1,11],b=[1,12],k=[1,30],v=[1,23],p=[1,24],g=[1,25],I=[1,26],D=[1,27],x=[1,19],N=[1,28],A=[1,29],C=[1,20],L=[1,18],w=[1,21],V=[1,22],Ct=[2,6],u=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],ft=[1,36],bt=[1,37],gt=[1,38],yt=[1,39],_t=[1,40],j=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],M=[1,46],B=[1,47],q=[1,57],W=[43,51,53,54,55,74,75],H=[1,70],Q=[1,68],G=[1,65],X=[1,69],J=[1,71],it=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],rt=[1,78],at=[1,77],nt=[1,76],It=[69,70,71,72,73],At=[1,91],Rt=[6,9,45,50],K=[6,9,12,44,45,50,51,52],ot=[1,101],ct=[1,100],lt=[1,99],$=[18,61],vt=[1,110],Dt=[1,109],Lt=[20,43,51,53,54,55],kt=[18,61,64,66],mt={trace:f(E(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:f(E(function(n,l,d,i,_,t,et){var e=t.length-1;switch(_){case 1:break;case 2:this.$=[];break;case 3:this.$=t[e-1].concat(t[e]);break;case 4:this.$=t[e];break;case 5:case 6:this.$=[];break;case 7:i.addEntity(t[e-4]),i.addEntity(t[e-2]),i.addRelationship(t[e-4],t[e],t[e-2],t[e-3]),this.$=[t[e-4],t[e-2]];break;case 8:i.addEntity(t[e-8]),i.addEntity(t[e-4]),i.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),i.setClass([t[e-8]],t[e-6]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-8],t[e-4]];break;case 9:i.addEntity(t[e-6]),i.addEntity(t[e-2]),i.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),i.setClass([t[e-6]],t[e-4]),this.$=[t[e-6],t[e-2]];break;case 10:i.addEntity(t[e-6]),i.addEntity(t[e-4]),i.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-6],t[e-4]];break;case 11:i.addEntity(t[e-3]),i.addAttributes(t[e-3],t[e-1]),this.$=[t[e-3]];break;case 12:i.addEntity(t[e-5]),i.addAttributes(t[e-5],t[e-1]),i.setClass([t[e-5]],t[e-3]),this.$=[t[e-5]];break;case 13:i.addEntity(t[e-2]),this.$=[t[e-2]];break;case 14:i.addEntity(t[e-4]),i.setClass([t[e-4]],t[e-2]),this.$=[t[e-4]];break;case 15:i.addEntity(t[e]),this.$=[t[e]];break;case 16:i.addEntity(t[e-2]),i.setClass([t[e-2]],t[e]),this.$=[t[e-2]];break;case 17:i.addEntity(t[e-6],t[e-4]),i.addAttributes(t[e-6],t[e-1]),this.$=[t[e-6]];break;case 18:i.addEntity(t[e-8],t[e-6]),i.addAttributes(t[e-8],t[e-1]),i.setClass([t[e-8]],t[e-3]),this.$=[t[e-8]];break;case 19:i.addEntity(t[e-5],t[e-3]),this.$=[t[e-5]];break;case 20:i.addEntity(t[e-7],t[e-5]),i.setClass([t[e-7]],t[e-2]),this.$=[t[e-7]];break;case 21:i.addEntity(t[e-3],t[e-1]);break;case 22:i.addEntity(t[e-5],t[e-3]),i.setClass([t[e-5]],t[e]);break;case 23:case 24:this.$=t[e].trim(),i.setAccTitle(this.$);break;case 25:case 26:this.$=t[e].trim(),i.setAccDescription(this.$);break;case 27:i.subgraphDepth?this.$=t[e]:(i.setDirection(t[e].value),this.$=[]);break;case 31:i.subgraphDepth=(i.subgraphDepth||1)-1,this.$=i.addSubGraph({text:t[e-2].id},t[e-1],{text:t[e-2].text});break;case 32:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-1],text:t[e-1]};break;case 33:i.subgraphDepth=(i.subgraphDepth||0)+1,this.$={id:t[e-4],text:t[e-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=t[e];break;case 35:this.$=t[e-1]+" "+t[e];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=t[e-3],i.addClass(t[e-2],t[e-1]);break;case 41:case 42:case 63:case 72:this.$=[t[e]];break;case 43:case 44:this.$=t[e-2].concat([t[e]]);break;case 45:this.$=t[e-2],i.setClass(t[e-1],t[e]);break;case 46:this.$=t[e-3],i.addCssStyles(t[e-2],t[e-1]);break;case 47:this.$=[t[e]];break;case 48:t[e-2].push(t[e]),this.$=t[e-2];break;case 50:this.$=t[e-1]+t[e];break;case 58:case 84:case 85:this.$=t[e].replace(/"/g,"");break;case 64:t[e].push(t[e-1]),this.$=t[e];break;case 65:this.$={type:t[e-1],name:t[e]};break;case 66:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 67:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 68:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 69:case 71:case 74:this.$=t[e];break;case 70:this.$=t[e-1]+t[e];break;case 73:t[e-2].push(t[e]),this.$=t[e-2];break;case 75:this.$=t[e].replace(/"/g,"");break;case 76:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 77:this.$=i.Cardinality.ZERO_OR_ONE;break;case 78:this.$=i.Cardinality.ZERO_OR_MORE;break;case 79:this.$=i.Cardinality.ONE_OR_MORE;break;case 80:this.$=i.Cardinality.ONLY_ONE;break;case 81:this.$=i.Cardinality.MD_PARENT;break;case 82:this.$=i.Identification.NON_IDENTIFYING;break;case 83:this.$=i.Identification.IDENTIFYING;break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(a,o,{5:3}),{6:[1,4],7:5,8:6,9:c,10:8,21:r,23:h,25:y,27:b,28:13,29:14,30:15,31:16,32:17,34:k,37:v,38:p,39:g,40:I,41:D,43:x,46:N,47:A,51:C,53:L,54:w,55:V},s(a,Ct,{1:[2,1]}),s(u,[2,3]),s(u,[2,4]),s(u,[2,5]),s(u,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:ft,70:bt,71:gt,72:yt,73:_t}),{22:[1,41]},{24:[1,42]},{26:[1,43]},s(u,[2,26]),s(u,[2,27]),s(u,[2,28]),s(u,[2,29]),s(u,[2,30]),s(u,o,{5:44}),s(j,[2,58]),s(j,[2,59]),s(j,[2,60]),s(j,[2,61]),s(j,[2,62]),s(u,[2,36]),s(u,[2,37]),s(u,[2,38]),s(u,[2,39]),{15:45,43:M,44:B},{15:48,43:M,44:B},{15:49,43:M,44:B},{10:50,43:x,51:C,53:L,54:w,55:V},{10:51,43:x,51:C,53:L,54:w,55:V},{15:52,43:M,44:B},{17:53,18:[1,54],56:55,57:56,61:q},{10:58,43:x,51:C,53:L,54:w,55:V},{68:59,74:[1,60],75:[1,61]},s(W,[2,77]),s(W,[2,78]),s(W,[2,79]),s(W,[2,80]),s(W,[2,81]),s(u,[2,23]),s(u,[2,24]),s(u,[2,25]),{6:[1,63],7:5,8:6,9:c,10:8,21:r,23:h,25:y,27:b,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:k,37:v,38:p,39:g,40:I,41:D,43:x,46:N,47:A,51:C,53:L,54:w,55:V},{12:H,42:64,44:Q,45:G,48:66,49:67,51:X,52:J},s(it,[2,41]),s(it,[2,42]),{15:72,43:M,44:B,45:G},{12:H,42:73,44:Q,45:G,48:66,49:67,51:X,52:J},{6:rt,9:at,19:[1,75],35:74,50:nt},{12:[1,79],14:[1,80]},s(u,[2,16],{67:35,11:81,16:[1,82],45:G,69:ft,70:bt,71:gt,72:yt,73:_t}),{18:[1,83]},s(u,[2,13]),{17:84,18:[2,63],56:55,57:56,61:q},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:ft,70:bt,71:gt,72:yt,73:_t},s(It,[2,82]),s(It,[2,83]),s(u,[2,31]),s(u,Ct),{6:rt,9:at,35:90,45:At,50:nt},{43:[1,92],44:[1,93]},s(Rt,[2,47],{49:94,12:H,44:Q,51:X,52:J}),s(K,[2,49]),s(K,[2,54]),s(K,[2,55]),s(K,[2,56]),s(K,[2,57]),s(u,[2,45],{45:G}),{6:rt,9:at,35:95,45:At,50:nt},s(u,[2,32]),{10:97,36:96,43:x,51:C,53:L,54:w,55:V},s(u,[2,51]),s(u,[2,52]),s(u,[2,53]),{13:98,43:ot,53:ct,76:lt},{15:102,43:M,44:B},{10:103,43:x,51:C,53:L,54:w,55:V},{17:104,18:[1,105],56:55,57:56,61:q},s(u,[2,11]),{18:[2,64]},s($,[2,65],{59:106,60:107,63:108,65:vt,66:Dt}),s([18,61,65,66],[2,71]),{61:[2,70]},s(u,[2,21],{14:[1,112],16:[1,111]}),s([43,51,53,54,55],[2,76]),s(u,[2,40]),{12:H,44:Q,48:113,49:67,51:X,52:J},s(it,[2,43]),s(it,[2,44]),s(K,[2,50]),s(u,[2,46]),{10:115,20:[1,114],43:x,51:C,53:L,54:w,55:V},s(Lt,[2,34]),s(u,[2,7]),s(u,[2,84]),s(u,[2,85]),s(u,[2,86]),{12:[1,116],45:G},{12:[1,118],14:[1,117]},{18:[1,119]},s(u,[2,14]),s($,[2,66],{60:120,64:[1,121],66:Dt}),s($,[2,67]),s(kt,[2,72]),s($,[2,75]),s(kt,[2,74]),{17:122,18:[1,123],56:55,57:56,61:q},{15:124,43:M,44:B},s(Rt,[2,48],{49:94,12:H,44:Q,51:X,52:J}),{6:rt,9:at,35:125,50:nt},s(Lt,[2,35]),{13:126,43:ot,53:ct,76:lt},{15:127,43:M,44:B},{13:128,43:ot,53:ct,76:lt},s(u,[2,12]),s($,[2,68]),{63:129,65:vt},{18:[1,130]},s(u,[2,19]),s(u,[2,22],{16:[1,131],45:G}),s(u,[2,33]),s(u,[2,10]),{12:[1,132],45:G},s(u,[2,9]),s(kt,[2,73]),s(u,[2,17]),{17:133,18:[1,134],56:55,57:56,61:q},{13:135,43:ot,53:ct,76:lt},{18:[1,136]},s(u,[2,20]),s(u,[2,8]),s(u,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:f(E(function(n,l){if(l.recoverable)this.trace(n);else{var d=new Error(n);throw d.hash=l,d}},"parseError"),"parseError"),parse:f(E(function(n){var l=this,d=[0],i=[],_=[null],t=[],et=this.table,e="",ht=0,wt=0,Pt=2,Vt=1,zt=t.slice.call(arguments,1),m=Object.create(this.lexer),P={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(P.yy[Et]=this.yy[Et]);m.setInput(n,P.yy),P.yy.lexer=m,P.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var St=m.yylloc;t.push(St);var Ut=m.options&&m.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Mt(T){d.length=d.length-2*T,_.length=_.length-T,t.length=t.length-T}E(Mt,"popStack"),f(Mt,"popStack");function Tt(){var T;return T=i.pop()||m.lex()||Vt,typeof T!="number"&&(T instanceof Array&&(i=T,T=i.pop()),T=l.symbols_[T]||T),T}E(Tt,"lex"),f(Tt,"lex");for(var S,z,O,Ot,Z={},ut,R,Bt,dt;;){if(z=d[d.length-1],this.defaultActions[z]?O=this.defaultActions[z]:((S===null||typeof S>"u")&&(S=Tt()),O=et[z]&&et[z][S]),typeof O>"u"||!O.length||!O[0]){var xt="";dt=[];for(ut in et[z])this.terminals_[ut]&&ut>Pt&&dt.push("'"+this.terminals_[ut]+"'");m.showPosition?xt="Parse error on line "+(ht+1)+`:
2
2
  `+m.showPosition()+`
3
3
  Expecting `+dt.join(", ")+", got '"+(this.terminals_[S]||S)+"'":xt="Parse error on line "+(ht+1)+": Unexpected "+(S==Vt?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(xt,{text:m.match,token:this.terminals_[S]||S,line:m.yylineno,loc:St,expected:dt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+S);switch(O[0]){case 1:d.push(S),_.push(m.yytext),t.push(m.yylloc),d.push(O[1]),S=null,wt=m.yyleng,e=m.yytext,ht=m.yylineno,St=m.yylloc;break;case 2:if(R=this.productions_[O[1]][1],Z.$=_[_.length-R],Z._$={first_line:t[t.length-(R||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(R||1)].first_column,last_column:t[t.length-1].last_column},Ut&&(Z._$.range=[t[t.length-(R||1)].range[0],t[t.length-1].range[1]]),Ot=this.performAction.apply(Z,[e,wt,ht,P.yy,O[1],_,t].concat(zt)),typeof Ot<"u")return Ot;R&&(d=d.slice(0,-1*R*2),_=_.slice(0,-1*R),t=t.slice(0,-1*R)),d.push(this.productions_[O[1]][0]),_.push(Z.$),t.push(Z._$),Bt=et[d[d.length-2]][d[d.length-1]],d.push(Bt);break;case 3:return!0}}return!0},"parse"),"parse")},Yt=(function(){var F={EOF:1,parseError:f(E(function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},"parseError"),"parseError"),setInput:f(function(n,l){return this.yy=l||this.yy||{},this._input=n,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:f(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var l=n.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:f(function(n){var l=n.length,d=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var i=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),d.length-1&&(this.yylineno-=d.length-1);var _=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:d?(d.length===i.length?this.yylloc.first_column:0)+i[i.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(n){this.unput(this.match.slice(n))},"less"),pastInput:f(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var n=this.pastInput(),l=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{t as _t,bq as _,a_ as L,by as mt,bs as gt,b as vt,bo as x,bu as be,bt as Te}from"./yZ5s7S5S.js";import{bs as ht,cd as yt,ca as wt,bk as xt,a7 as N,ay as m,W as r,bn as It,aA as g,aD as t,bS as z,a5 as _e,bH as Be,bA as me,b_ as M,aB as E,c9 as o,bf as kt,bl as oe,bO as ae,bV as Ct}from"./B8o4lNgr.js";import{k as $t,h as Pt,s as De,c as At}from"./D46WSk8U.js";import{s as Me}from"./Cb1eroFO.js";import{c as S}from"./CVjN4vxe.js";import{cB as Et,bi as Ot,aI as Ft,F as ne,aU as Tt,aJ as Bt,bj as Dt,a6 as Ve,at as Lt}from"./ah7LAYm4.js";import{W as Nt,T as zt,G as St,C as Rt,X as Ht,J as Wt,V as Mt}from"./CvmpuSJ4.js";import{f as ge}from"./CyAayV8v.js";import{i as Vt}from"./CJB0AMOQ.js";import{n as jt,R as Gt,r as qt,q as Jt,p as Ut,o as je}from"./9ZGNcJrk.js";import{n as ve}from"./3cdteGtc.js";import{c as Xt}from"./ChTqQfQN.js";import"./BIqUw3gi.js";import{Hb as Ge,mm as Kt,E0 as Yt}from"./WOicJa2k.js";import{v as Zt}from"./G0_EiVNo.js";import{i as X}from"./Da6QaYq0.js";import{bg as Qt,aZ as er,aX as tr}from"./DfARSELN.js";import{ck as rr}from"./D24Lh2xV.js";import{t as or}from"./H2jLkRRS.js";const ar={cursor:Rt,ghostty:St,terminal:zt,warp:Nt},nr={vscode:Mt,jetbrains:Wt,xcode:Ht};function sr(O){return ar[O.id]??nr[O.handlerType]??null}function qe(O){return O==="terminal"?Et:O==="finder"?Ot:Ft}const ir="shrink-0 text-muted-foreground hover:text-foreground focus-visible:text-foreground [&_svg]:size-4",Le="finder",lr={id:Le,name:"Finder",shortLabel:"Finder",appName:"Finder",category:"finder",handlerType:"finder",installed:!0,priority:0};function cr(O,s=[]){const se=new Set(s),K=O.filter(({installed:Y,id:ye})=>Y&&!se.has(ye));return K.some(({id:Y})=>Y===Le)||se.has(Le)?K:[...K,lr]}var dr=E('<img alt="" class="size-4"/>'),ur=E('<kbd class="type-caption ml-4 text-muted-foreground" aria-hidden="true"> </kbd>'),pr=E('<span class="min-w-0 flex-1 truncate"> </span> <!>',1),fr=E("<span> </span>"),he=E("<!> <!>",1),br=E("<span><!></span>"),_r=E('<img class="w-4 h-4"/>'),mr=E('<!> <span class="text-muted-foreground"> </span>',1),gr=E('<div class="inline-flex items-stretch rounded-md border border-border" data-open-combo-control=""><!> <!></div>'),vr=E('<div class="type-caption px-2 py-1.5 text-subtle"> </div>'),hr=E('<div class="w-60 max-w-full"><!> <!> <!></div>'),yr=E("<div><!></div>");function wr(O,s){if(new.target)return _t({component:wr,...O});ht(s,!0);const se=()=>be(Xe,"$installedEditors$",ie),K=()=>be(Ke,"$hiddenEditorIds$",ie),Y=()=>be(Ye,"$isWorkspaceHostLocal$",ie),ye=()=>be(Ue,"$openAction",ie),[ie,Je]=gt(),le=(e,d=kt)=>{var u=N(),p=m(u);S(p,()=>Gt,(te,G)=>{G(te,{get value(){return t(v).id},children:(F,D)=>{var k=N(),T=m(k);Pt(T,17,d,C=>C.id,(C,c)=>{var q=N(),h=m(q);{const $=a=>{var i=N(),y=m(i);{var H=l=>{var A=dr();M(()=>De(A,"src",`data:image/png;base64,${t(c).iconBase64??""}`)),r(l,A)},b=l=>{const A=o(()=>t(c).icon);var W=N(),B=m(W);S(B,()=>t(A),(J,re)=>{re(J,{size:16})}),r(l,W)},P=l=>{{let A=o(()=>t(c).faIcon??qe(t(c).category));ne(l,{get icon(){return t(A)},class:"size-4 text-muted-foreground"})}};L(y,l=>{t(c).iconBase64?l(H):t(c).icon?l(b,1):l(P,-1)})}r(a,i)};let n=o(()=>!I());S(h,()=>jt,(a,i)=>{i(a,{get value(){return t(c).id},closeOnSelect:!0,get disabled(){return t(n)},onSelect:()=>tt(t(c).id),get textValue(){return t(c).label},leading:$,children:(y,H)=>{var b=pr(),P=m(b),l=oe(P,!0),A=z(P,2);{var W=B=>{var J=ur(),re=oe(J,!0);M(()=>ae(re,t(c).shortcut)),r(B,J)};L(A,B=>{t(c).shortcut&&B(W)})}M(()=>ae(l,t(c).label)),r(y,b)},$$slots:{leading:!0,default:!0}})})}r(C,q)}),r(F,k)},$$slots:{default:!0}})}),r(e,u)},Ne=Xt("OpenComboButton");let I=_(s,"filePath",7),ce=_(s,"workspaceId",7,""),de=_(s,"isDirectory",7,!0),we=_(s,"workspaceFolderPath",7),xe=_(s,"class",7,""),ue=_(s,"headerText",7),Ie=_(s,"usePortal",7,!0),ke=_(s,"side",7,"bottom"),V=_(s,"variant",7,"default"),Z=_(s,"branchName",7),Ce=_(s,"compact",7,!1),$e=_(s,"embedded",7,!1),Q=_(s,"inline",7,!1),j=_(s,"iconOnly",7,!1),R=_(s,"children",7,void 0);const ze=o(()=>V()==="sidebar"?"bg-sidebar hover:bg-sidebar/80":"bg-background hover:bg-muted"),Pe=yt(ce());wt(()=>{Pe.set(ce())});const Ue=Qt(),Xe=er(Pe),Ke=tr(),Ye=rr(Pe);let ee=Ct(!1);xt(()=>{Ge.dispatch(Kt())});function Ze(e){return{id:e.id,label:e.name,shortLabel:e.shortLabel,icon:sr(e),shortcut:e.shortcut,handlerType:e.handlerType,appName:e.appName,category:e.category,iconBase64:e.iconBase64}}const Qe=Zt("externalEditors");let f=o(()=>{const e=se(),d=cr(e,K()).map(Ze),u={id:"other",label:x.ui_openCombo_other_label(),shortLabel:x.ui_openCombo_other_label(),icon:null,faIcon:Dt,handlerType:"generic"},p=[{id:"copy",label:x.ui_openCombo_copyPath_label(),shortLabel:x.ui_openCombo_copy_shortLabel(),icon:null,faIcon:Tt},...Z()?[{id:"copy-branch",label:x.ui_openCombo_copyBranch_label(),shortLabel:x.ui_openCombo_copyBranch_shortLabel(),icon:null,faIcon:Bt}]:[]];return!Qe||!Y()?p:[...d,u,...p]});const pe=o(()=>t(f).some(e=>e.id!=="copy"&&e.id!=="copy-branch")),fe=o(()=>t(f).filter(e=>e.id!=="copy"&&e.id!=="copy-branch")),Se=o(()=>t(f).filter(e=>e.id==="copy"||e.id==="copy-branch")),v=o(()=>t(pe)?t(f).find(e=>e.id===ye())||t(f)[0]:t(f).find(e=>e.id==="copy")||t(f)[0]),Ae=o(()=>t(pe)?x.ui_openCombo_openIn_tooltip({name:t(v).label}):t(v).label);function Ee(){if(de())return I();const e=we()||I().substring(0,I().lastIndexOf("/"));return e?{folder:e,file:I()}:I()}async function Oe(e){if(!I())return;const d=de()?I():I().substring(0,I().lastIndexOf("/"));try{if(e==="copy"){await navigator.clipboard.writeText(or(I())),ve.success(x.ui_openCombo_pathCopied_label());return}if(e==="copy-branch"){Z()&&(await navigator.clipboard.writeText(Z()),ve.success(x.ui_openCombo_branchCopied_label()));return}if(e==="other"){const p=await X("external-editors:open-with-other",{path:d});p?.success?Be(ee,!1):p?.error&&p.error!=="No application selected"&&ve.error(p.error);return}const u=t(f).find(p=>p.id===e);if(!u){Ne.warn(`Unknown action: ${e}`);return}switch(u.handlerType){case"finder":await X("shell:showItemInFolder",{path:d});break;case"vscode":await X("vscode:open",Ee());break;case"jetbrains":await X("jetbrains:open",Ee());break;case"xcode":await X("xcode:open",Ee());break;case"generic":default:{await X("external-editors:open",{editorId:u.id,path:d});break}}}catch(u){Ne.error(`Failed to execute action ${e}:`,u),ve.error(u instanceof Error?u.message:x.ui_openCombo_openFailed_error({name:e}))}}function Fe(e){e.stopPropagation(),Oe(t(v).id)}function et(e){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),e.stopPropagation(),Oe(t(v).id))}function Re(e){e.stopPropagation()}function tt(e){Ge.dispatch(Yt(e)),Oe(e),Be(ee,!1)}var rt={get filePath(){return I()},set filePath(e){I(e),g()},get workspaceId(){return ce()},set workspaceId(e=""){ce(e),g()},get isDirectory(){return de()},set isDirectory(e=!0){de(e),g()},get workspaceFolderPath(){return we()},set workspaceFolderPath(e){we(e),g()},get class(){return xe()},set class(e=""){xe(e),g()},get headerText(){return ue()},set headerText(e){ue(e),g()},get usePortal(){return Ie()},set usePortal(e=!0){Ie(e),g()},get side(){return ke()},set side(e="bottom"){ke(e),g()},get variant(){return V()},set variant(e="default"){V(e),g()},get branchName(){return Z()},set branchName(e){Z(e),g()},get compact(){return Ce()},set compact(e=!1){Ce(e),g()},get embedded(){return $e()},set embedded(e=!1){$e(e),g()},get inline(){return Q()},set inline(e=!1){Q(e),g()},get iconOnly(){return j()},set iconOnly(e=!1){j(e),g()},get children(){return R()},set children(e=void 0){R(e),g()},$set:mt,$on:(e,d)=>vt(s,e,d)},He=N(),ot=m(He);{var at=e=>{var d=he(),u=m(d);{var p=G=>{var F=he(),D=m(F);S(D,()=>Ut,(T,C)=>{C(T,{children:(c,q)=>{var h=he(),$=m(h);S($,()=>qt,(a,i)=>{i(a,{get icon(){return Ve},children:(y,H)=>{var b=fr(),P=oe(b,!0);M(l=>ae(P,l),[()=>x.ui_openCombo_openInApp_tooltip()]),r(y,b)},$$slots:{default:!0}})});var n=z($,2);S(n,()=>Jt,(a,i)=>{i(a,{class:"w-60",children:(y,H)=>{le(y,()=>t(fe))},$$slots:{default:!0}})}),r(c,h)},$$slots:{default:!0}})});var k=z(D,2);S(k,()=>je,(T,C)=>{C(T,{})}),r(G,F)};L(u,G=>{t(fe).length&&G(p)})}var te=z(u,2);le(te,()=>t(Se)),r(e,d)},nt=e=>{var d=yr(),u=_e(d);{const p=(F,D)=>{let k=()=>(D?.()).props;var T=N(),C=m(T);{var c=n=>{var a=br();At(a,()=>({role:"button",tabindex:"0",onclick:t(f).length>1?void 0:Fe,onkeydown:t(f).length>1?void 0:et,...t(f).length>1?k():{},class:"cursor-pointer break-words rounded-sm text-inherit underline decoration-muted-foreground/20 underline-offset-2 hover:decoration-current focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:t(Ae)}));var i=_e(a);Me(i,R),me(a),r(n,a)},q=n=>{{let a=o(()=>t(f).length>1?void 0:Fe),i=o(()=>j()&&V()!=="sidebar"?"plain":"ghost"),y=o(()=>j()?V()==="sidebar"?"icon-compact":"icon-sm":void 0),H=o(()=>j()&&V()==="sidebar"&&t(ee)),b=o(()=>!j()),P=o(()=>j()?V()==="sidebar"?ir:"cursor-pointer text-muted-foreground hover:text-foreground focus-visible:text-foreground":"cursor-pointer");ge(n,Te({type:"button",get onclick(){return t(a)}},()=>t(f).length>1?k():{},{get variant(){return t(i)},get size(){return t(y)},get active(){return t(H)},get wrapContent(){return t(b)},get class(){return t(P)},get title(){return t(Ae)},children:(l,A)=>{var W=N(),B=m(W);Me(B,R),r(l,W)},$$slots:{default:!0}}))}},h=n=>{{let a=o(()=>x.ui_openCombo_openInApp_tooltip());ge(n,Te(k,{variant:"ghost-light",size:"icon-xs",get tooltip(){return t(a)},tooltipSide:"bottom",children:(i,y)=>{ne(i,{get icon(){return Ve},size:"xs"})},$$slots:{default:!0}}))}},$=n=>{var a=gr(),i=_e(a);{let b=o(()=>t(f).length>1?"rounded-r-none":""),P=o(()=>t(ze)),l=o(()=>t(pe)?t(Ae):void 0);ge(i,{type:"button",variant:"ghost",size:"sm",get class(){return`gap-1.5 px-2 ${t(b)??""} ${t(P)??""}`},onpointerdown:Re,onkeydown:Re,onclick:Fe,get title(){return t(l)},children:(A,W)=>{var B=mr(),J=m(B);{var re=w=>{var U=_r();M(()=>{De(U,"src",`data:image/png;base64,${t(v).iconBase64??""}`),De(U,"alt",t(v).label)}),r(w,U)},it=w=>{const U=o(()=>t(v).icon);var We=N(),pt=m(We);S(pt,()=>t(U),(ft,bt)=>{bt(ft,{size:14})}),r(w,We)},lt=w=>{ne(w,{get icon(){return t(v).faIcon},class:"w-3.5 h-3.5 opacity-60"})},ct=w=>{{let U=o(()=>qe(t(v).category));ne(w,{get icon(){return t(U)},class:"w-3.5 h-3.5 opacity-60"})}};L(J,w=>{t(v).iconBase64?w(re):t(v).icon?w(it,1):t(v).faIcon?w(lt,2):w(ct,-1)})}var dt=z(J,2),ut=oe(dt,!0);M(w=>ae(ut,w),[()=>t(pe)?x.ui_openCombo_open_label():t(v).label]),r(A,B)},$$slots:{default:!0}})}var y=z(i,2);{var H=b=>{{let P=o(()=>x.ui_openCombo_openInApp_tooltip());ge(b,Te(k,{type:"button",variant:"ghost",size:"icon-sm",get"aria-label"(){return t(P)},get class(){return`rounded-l-none border-l border-border ${t(ze)??""}`},children:(l,A)=>{ne(l,{get icon(){return Lt},class:"size-3! text-muted-foreground"})},$$slots:{default:!0}}))}};L(y,b=>{t(f).length>1&&b(H)})}me(a),r(n,a)};L(C,n=>{Q()&&R()?n(c):R()?n(q,1):Ce()?n(h,2):n($,-1)})}r(F,T)},te=F=>{var D=hr(),k=_e(D);{var T=h=>{var $=vr(),n=oe($,!0);M(()=>ae(n,ue())),r(h,$)};L(k,h=>{ue()&&h(T)})}var C=z(k,2);{var c=h=>{var $=he(),n=m($);le(n,()=>t(fe));var a=z(n,2);S(a,()=>je,(i,y)=>{y(i,{})}),r(h,$)};L(C,h=>{t(fe).length&&h(c)})}var q=z(C,2);le(q,()=>t(Se)),me(D),r(F,D)};let G=o(()=>Q()&&R()?"contents!":"");Vt(u,{align:"end",get portal(){return Ie()},get side(){return ke()},get class(){return t(G)},get open(){return t(ee)},set open(F){Be(ee,F,!0)},trigger:p,content:te,$$slots:{trigger:!0,content:!0}})}me(d),M(()=>$t(d,1,`${Q()&&R()?"contents":"inline-flex items-center"} ${xe()??""}`)),r(e,d)};L(ot,e=>{$e()?e(at):e(nt,-1)})}r(O,He);var st=It(rt);return Je(),st}export{wr as O,sr as a,qe as r,ir as s};
1
+ import{t as _t,bq as _,a_ as L,by as mt,bs as gt,b as vt,bo as x,bu as be,bt as Te}from"./yZ5s7S5S.js";import{bs as ht,cd as yt,ca as wt,bk as xt,a7 as N,ay as m,W as r,bn as It,aA as g,aD as t,bS as z,a5 as _e,bH as Be,bA as me,b_ as M,aB as E,c9 as o,bf as kt,bl as oe,bO as ae,bV as Ct}from"./B8o4lNgr.js";import{k as $t,h as Pt,s as De,c as At}from"./D46WSk8U.js";import{s as Me}from"./Cb1eroFO.js";import{c as S}from"./CVjN4vxe.js";import{cB as Et,bi as Ot,aI as Ft,F as ne,aU as Tt,aJ as Bt,bj as Dt,a6 as Ve,at as Lt}from"./ah7LAYm4.js";import{W as Nt,T as zt,G as St,C as Rt,X as Ht,J as Wt,V as Mt}from"./CvmpuSJ4.js";import{f as ge}from"./Dax20l9D.js";import{i as Vt}from"./gMye6h60.js";import{n as jt,R as Gt,r as qt,q as Jt,p as Ut,o as je}from"./BvUM18CV.js";import{n as ve}from"./BeRTGLrw.js";import{c as Xt}from"./ChTqQfQN.js";import"./BIqUw3gi.js";import{Hb as Ge,mm as Kt,E0 as Yt}from"./WOicJa2k.js";import{v as Zt}from"./G0_EiVNo.js";import{i as X}from"./Da6QaYq0.js";import{bg as Qt,aZ as er,aX as tr}from"./BVTor63R.js";import{ck as rr}from"./-1vWYJiy.js";import{t as or}from"./H2jLkRRS.js";const ar={cursor:Rt,ghostty:St,terminal:zt,warp:Nt},nr={vscode:Mt,jetbrains:Wt,xcode:Ht};function sr(O){return ar[O.id]??nr[O.handlerType]??null}function qe(O){return O==="terminal"?Et:O==="finder"?Ot:Ft}const ir="shrink-0 text-muted-foreground hover:text-foreground focus-visible:text-foreground [&_svg]:size-4",Le="finder",lr={id:Le,name:"Finder",shortLabel:"Finder",appName:"Finder",category:"finder",handlerType:"finder",installed:!0,priority:0};function cr(O,s=[]){const se=new Set(s),K=O.filter(({installed:Y,id:ye})=>Y&&!se.has(ye));return K.some(({id:Y})=>Y===Le)||se.has(Le)?K:[...K,lr]}var dr=E('<img alt="" class="size-4"/>'),ur=E('<kbd class="type-caption ml-4 text-muted-foreground" aria-hidden="true"> </kbd>'),pr=E('<span class="min-w-0 flex-1 truncate"> </span> <!>',1),fr=E("<span> </span>"),he=E("<!> <!>",1),br=E("<span><!></span>"),_r=E('<img class="w-4 h-4"/>'),mr=E('<!> <span class="text-muted-foreground"> </span>',1),gr=E('<div class="inline-flex items-stretch rounded-md border border-border" data-open-combo-control=""><!> <!></div>'),vr=E('<div class="type-caption px-2 py-1.5 text-subtle"> </div>'),hr=E('<div class="w-60 max-w-full"><!> <!> <!></div>'),yr=E("<div><!></div>");function wr(O,s){if(new.target)return _t({component:wr,...O});ht(s,!0);const se=()=>be(Xe,"$installedEditors$",ie),K=()=>be(Ke,"$hiddenEditorIds$",ie),Y=()=>be(Ye,"$isWorkspaceHostLocal$",ie),ye=()=>be(Ue,"$openAction",ie),[ie,Je]=gt(),le=(e,d=kt)=>{var u=N(),p=m(u);S(p,()=>Gt,(te,G)=>{G(te,{get value(){return t(v).id},children:(F,D)=>{var k=N(),T=m(k);Pt(T,17,d,C=>C.id,(C,c)=>{var q=N(),h=m(q);{const $=a=>{var i=N(),y=m(i);{var H=l=>{var A=dr();M(()=>De(A,"src",`data:image/png;base64,${t(c).iconBase64??""}`)),r(l,A)},b=l=>{const A=o(()=>t(c).icon);var W=N(),B=m(W);S(B,()=>t(A),(J,re)=>{re(J,{size:16})}),r(l,W)},P=l=>{{let A=o(()=>t(c).faIcon??qe(t(c).category));ne(l,{get icon(){return t(A)},class:"size-4 text-muted-foreground"})}};L(y,l=>{t(c).iconBase64?l(H):t(c).icon?l(b,1):l(P,-1)})}r(a,i)};let n=o(()=>!I());S(h,()=>jt,(a,i)=>{i(a,{get value(){return t(c).id},closeOnSelect:!0,get disabled(){return t(n)},onSelect:()=>tt(t(c).id),get textValue(){return t(c).label},leading:$,children:(y,H)=>{var b=pr(),P=m(b),l=oe(P,!0),A=z(P,2);{var W=B=>{var J=ur(),re=oe(J,!0);M(()=>ae(re,t(c).shortcut)),r(B,J)};L(A,B=>{t(c).shortcut&&B(W)})}M(()=>ae(l,t(c).label)),r(y,b)},$$slots:{leading:!0,default:!0}})})}r(C,q)}),r(F,k)},$$slots:{default:!0}})}),r(e,u)},Ne=Xt("OpenComboButton");let I=_(s,"filePath",7),ce=_(s,"workspaceId",7,""),de=_(s,"isDirectory",7,!0),we=_(s,"workspaceFolderPath",7),xe=_(s,"class",7,""),ue=_(s,"headerText",7),Ie=_(s,"usePortal",7,!0),ke=_(s,"side",7,"bottom"),V=_(s,"variant",7,"default"),Z=_(s,"branchName",7),Ce=_(s,"compact",7,!1),$e=_(s,"embedded",7,!1),Q=_(s,"inline",7,!1),j=_(s,"iconOnly",7,!1),R=_(s,"children",7,void 0);const ze=o(()=>V()==="sidebar"?"bg-sidebar hover:bg-sidebar/80":"bg-background hover:bg-muted"),Pe=yt(ce());wt(()=>{Pe.set(ce())});const Ue=Qt(),Xe=er(Pe),Ke=tr(),Ye=rr(Pe);let ee=Ct(!1);xt(()=>{Ge.dispatch(Kt())});function Ze(e){return{id:e.id,label:e.name,shortLabel:e.shortLabel,icon:sr(e),shortcut:e.shortcut,handlerType:e.handlerType,appName:e.appName,category:e.category,iconBase64:e.iconBase64}}const Qe=Zt("externalEditors");let f=o(()=>{const e=se(),d=cr(e,K()).map(Ze),u={id:"other",label:x.ui_openCombo_other_label(),shortLabel:x.ui_openCombo_other_label(),icon:null,faIcon:Dt,handlerType:"generic"},p=[{id:"copy",label:x.ui_openCombo_copyPath_label(),shortLabel:x.ui_openCombo_copy_shortLabel(),icon:null,faIcon:Tt},...Z()?[{id:"copy-branch",label:x.ui_openCombo_copyBranch_label(),shortLabel:x.ui_openCombo_copyBranch_shortLabel(),icon:null,faIcon:Bt}]:[]];return!Qe||!Y()?p:[...d,u,...p]});const pe=o(()=>t(f).some(e=>e.id!=="copy"&&e.id!=="copy-branch")),fe=o(()=>t(f).filter(e=>e.id!=="copy"&&e.id!=="copy-branch")),Se=o(()=>t(f).filter(e=>e.id==="copy"||e.id==="copy-branch")),v=o(()=>t(pe)?t(f).find(e=>e.id===ye())||t(f)[0]:t(f).find(e=>e.id==="copy")||t(f)[0]),Ae=o(()=>t(pe)?x.ui_openCombo_openIn_tooltip({name:t(v).label}):t(v).label);function Ee(){if(de())return I();const e=we()||I().substring(0,I().lastIndexOf("/"));return e?{folder:e,file:I()}:I()}async function Oe(e){if(!I())return;const d=de()?I():I().substring(0,I().lastIndexOf("/"));try{if(e==="copy"){await navigator.clipboard.writeText(or(I())),ve.success(x.ui_openCombo_pathCopied_label());return}if(e==="copy-branch"){Z()&&(await navigator.clipboard.writeText(Z()),ve.success(x.ui_openCombo_branchCopied_label()));return}if(e==="other"){const p=await X("external-editors:open-with-other",{path:d});p?.success?Be(ee,!1):p?.error&&p.error!=="No application selected"&&ve.error(p.error);return}const u=t(f).find(p=>p.id===e);if(!u){Ne.warn(`Unknown action: ${e}`);return}switch(u.handlerType){case"finder":await X("shell:showItemInFolder",{path:d});break;case"vscode":await X("vscode:open",Ee());break;case"jetbrains":await X("jetbrains:open",Ee());break;case"xcode":await X("xcode:open",Ee());break;case"generic":default:{await X("external-editors:open",{editorId:u.id,path:d});break}}}catch(u){Ne.error(`Failed to execute action ${e}:`,u),ve.error(u instanceof Error?u.message:x.ui_openCombo_openFailed_error({name:e}))}}function Fe(e){e.stopPropagation(),Oe(t(v).id)}function et(e){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),e.stopPropagation(),Oe(t(v).id))}function Re(e){e.stopPropagation()}function tt(e){Ge.dispatch(Yt(e)),Oe(e),Be(ee,!1)}var rt={get filePath(){return I()},set filePath(e){I(e),g()},get workspaceId(){return ce()},set workspaceId(e=""){ce(e),g()},get isDirectory(){return de()},set isDirectory(e=!0){de(e),g()},get workspaceFolderPath(){return we()},set workspaceFolderPath(e){we(e),g()},get class(){return xe()},set class(e=""){xe(e),g()},get headerText(){return ue()},set headerText(e){ue(e),g()},get usePortal(){return Ie()},set usePortal(e=!0){Ie(e),g()},get side(){return ke()},set side(e="bottom"){ke(e),g()},get variant(){return V()},set variant(e="default"){V(e),g()},get branchName(){return Z()},set branchName(e){Z(e),g()},get compact(){return Ce()},set compact(e=!1){Ce(e),g()},get embedded(){return $e()},set embedded(e=!1){$e(e),g()},get inline(){return Q()},set inline(e=!1){Q(e),g()},get iconOnly(){return j()},set iconOnly(e=!1){j(e),g()},get children(){return R()},set children(e=void 0){R(e),g()},$set:mt,$on:(e,d)=>vt(s,e,d)},He=N(),ot=m(He);{var at=e=>{var d=he(),u=m(d);{var p=G=>{var F=he(),D=m(F);S(D,()=>Ut,(T,C)=>{C(T,{children:(c,q)=>{var h=he(),$=m(h);S($,()=>qt,(a,i)=>{i(a,{get icon(){return Ve},children:(y,H)=>{var b=fr(),P=oe(b,!0);M(l=>ae(P,l),[()=>x.ui_openCombo_openInApp_tooltip()]),r(y,b)},$$slots:{default:!0}})});var n=z($,2);S(n,()=>Jt,(a,i)=>{i(a,{class:"w-60",children:(y,H)=>{le(y,()=>t(fe))},$$slots:{default:!0}})}),r(c,h)},$$slots:{default:!0}})});var k=z(D,2);S(k,()=>je,(T,C)=>{C(T,{})}),r(G,F)};L(u,G=>{t(fe).length&&G(p)})}var te=z(u,2);le(te,()=>t(Se)),r(e,d)},nt=e=>{var d=yr(),u=_e(d);{const p=(F,D)=>{let k=()=>(D?.()).props;var T=N(),C=m(T);{var c=n=>{var a=br();At(a,()=>({role:"button",tabindex:"0",onclick:t(f).length>1?void 0:Fe,onkeydown:t(f).length>1?void 0:et,...t(f).length>1?k():{},class:"cursor-pointer break-words rounded-sm text-inherit underline decoration-muted-foreground/20 underline-offset-2 hover:decoration-current focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",title:t(Ae)}));var i=_e(a);Me(i,R),me(a),r(n,a)},q=n=>{{let a=o(()=>t(f).length>1?void 0:Fe),i=o(()=>j()&&V()!=="sidebar"?"plain":"ghost"),y=o(()=>j()?V()==="sidebar"?"icon-compact":"icon-sm":void 0),H=o(()=>j()&&V()==="sidebar"&&t(ee)),b=o(()=>!j()),P=o(()=>j()?V()==="sidebar"?ir:"cursor-pointer text-muted-foreground hover:text-foreground focus-visible:text-foreground":"cursor-pointer");ge(n,Te({type:"button",get onclick(){return t(a)}},()=>t(f).length>1?k():{},{get variant(){return t(i)},get size(){return t(y)},get active(){return t(H)},get wrapContent(){return t(b)},get class(){return t(P)},get title(){return t(Ae)},children:(l,A)=>{var W=N(),B=m(W);Me(B,R),r(l,W)},$$slots:{default:!0}}))}},h=n=>{{let a=o(()=>x.ui_openCombo_openInApp_tooltip());ge(n,Te(k,{variant:"ghost-light",size:"icon-xs",get tooltip(){return t(a)},tooltipSide:"bottom",children:(i,y)=>{ne(i,{get icon(){return Ve},size:"xs"})},$$slots:{default:!0}}))}},$=n=>{var a=gr(),i=_e(a);{let b=o(()=>t(f).length>1?"rounded-r-none":""),P=o(()=>t(ze)),l=o(()=>t(pe)?t(Ae):void 0);ge(i,{type:"button",variant:"ghost",size:"sm",get class(){return`gap-1.5 px-2 ${t(b)??""} ${t(P)??""}`},onpointerdown:Re,onkeydown:Re,onclick:Fe,get title(){return t(l)},children:(A,W)=>{var B=mr(),J=m(B);{var re=w=>{var U=_r();M(()=>{De(U,"src",`data:image/png;base64,${t(v).iconBase64??""}`),De(U,"alt",t(v).label)}),r(w,U)},it=w=>{const U=o(()=>t(v).icon);var We=N(),pt=m(We);S(pt,()=>t(U),(ft,bt)=>{bt(ft,{size:14})}),r(w,We)},lt=w=>{ne(w,{get icon(){return t(v).faIcon},class:"w-3.5 h-3.5 opacity-60"})},ct=w=>{{let U=o(()=>qe(t(v).category));ne(w,{get icon(){return t(U)},class:"w-3.5 h-3.5 opacity-60"})}};L(J,w=>{t(v).iconBase64?w(re):t(v).icon?w(it,1):t(v).faIcon?w(lt,2):w(ct,-1)})}var dt=z(J,2),ut=oe(dt,!0);M(w=>ae(ut,w),[()=>t(pe)?x.ui_openCombo_open_label():t(v).label]),r(A,B)},$$slots:{default:!0}})}var y=z(i,2);{var H=b=>{{let P=o(()=>x.ui_openCombo_openInApp_tooltip());ge(b,Te(k,{type:"button",variant:"ghost",size:"icon-sm",get"aria-label"(){return t(P)},get class(){return`rounded-l-none border-l border-border ${t(ze)??""}`},children:(l,A)=>{ne(l,{get icon(){return Lt},class:"size-3! text-muted-foreground"})},$$slots:{default:!0}}))}};L(y,b=>{t(f).length>1&&b(H)})}me(a),r(n,a)};L(C,n=>{Q()&&R()?n(c):R()?n(q,1):Ce()?n(h,2):n($,-1)})}r(F,T)},te=F=>{var D=hr(),k=_e(D);{var T=h=>{var $=vr(),n=oe($,!0);M(()=>ae(n,ue())),r(h,$)};L(k,h=>{ue()&&h(T)})}var C=z(k,2);{var c=h=>{var $=he(),n=m($);le(n,()=>t(fe));var a=z(n,2);S(a,()=>je,(i,y)=>{y(i,{})}),r(h,$)};L(C,h=>{t(fe).length&&h(c)})}var q=z(C,2);le(q,()=>t(Se)),me(D),r(F,D)};let G=o(()=>Q()&&R()?"contents!":"");Vt(u,{align:"end",get portal(){return Ie()},get side(){return ke()},get class(){return t(G)},get open(){return t(ee)},set open(F){Be(ee,F,!0)},trigger:p,content:te,$$slots:{trigger:!0,content:!0}})}me(d),M(()=>$t(d,1,`${Q()&&R()?"contents":"inline-flex items-center"} ${xe()??""}`)),r(e,d)};L(ot,e=>{$e()?e(at):e(nt,-1)})}r(O,He);var st=It(rt);return Je(),st}export{wr as O,sr as a,qe as r,ir as s};
@@ -1 +1 @@
1
- import{t as Ze,bq as p,a_ as fe,by as Ke,bu as Y,bs as Ye,b as Qe,bo as M}from"./yZ5s7S5S.js";import{bs as et,bk as tt,a7 as Mt,ay as ye,aD as i,W as D,bn as nt,c9 as Ce,aA as v,a5 as Z,bS as $,bl as _e,bA as K,b_ as ge,bO as oe,aB as Q,cd as kt,ca as P,bH as F,bj as Lt,bV as te}from"./B8o4lNgr.js";import{b as St}from"./D2g8BuR1.js";import{ensureMonacoInitialized as Ne,initializeMonaco as je,monaco as Tt}from"./Czo8fm8j.js";import{defineMonacoThemes as Be,getActiveMonacoThemeName as we}from"./Be2VCczk.js";import{c as Et}from"./ChTqQfQN.js";import{l as Ae,k as Ft}from"./D46WSk8U.js";import{Hb as ot}from"./WOicJa2k.js";import{f as qe}from"./CyAayV8v.js";import{F as He,b8 as It,bj as Pt}from"./ah7LAYm4.js";import{i as Ue}from"./Da6QaYq0.js";import{dk as zt,ck as Nt}from"./D24Lh2xV.js";import{g as At}from"./C3YfsJGu.js";import{d as Vt}from"./BIqUw3gi.js";import{d as ne}from"./B0Z-1lwJ.js";import{g as Wt}from"./BPC4bZ2e.js";import{g as B,R as Ge,U as Je}from"./C4WAPshC.js";const it=ot.createSelector(s=>s.agentFollow.isFollowing),$t=ot.createSelector(s=>s.agentFollow.agentColor);var Dt=Q('<div class="absolute top-2 right-2 flex items-center gap-2 px-2 py-1 rounded-md z-50 svelte-440ct6"><div></div> <span class="text-xs svelte-440ct6"> </span></div>');function rt(s,a){if(new.target)return Ze({component:rt,...s});et(a,!0);const f=()=>Y(ie,"$isFollowing$",C),k=()=>Y(z,"$agentColor$",C),[C,N]=Ye(),ie=it(),z=$t();let L=p(a,"content",15),l=p(a,"onContentChange",7),A=p(a,"isActive",7,!1),g=null,b=null,me="";tt(()=>(window.addEventListener("agent-follow-animation",O),()=>{window.removeEventListener("agent-follow-animation",O),R()}));function O(c){if(!A()||!f())return;const w=c.detail;if(!w||typeof w.content!="string")return;const{content:T,isAddition:E,speed:I=30}=w;R(),E?he(T,I):pe(T,I)}function R(){g&&(g.abort(),g=null),b=null}async function he(c,w){g=new AbortController;const T=g.signal,E=c.split("");b=(async()=>{for(let I=0;I<E.length&&!T.aborted;I++){me+=E[I],L(L()+E[I]),l()(L());const V=w+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await b}async function pe(c,w){g=new AbortController;const T=g.signal,E=L().indexOf(c);if(E===-1)return;const I=L().slice(0,E),V=L().slice(E+c.length);b=(async()=>{for(let H=c.length;H>0&&!T.aborted;H--){const xe=c.slice(0,H-1);L(I+xe+V),l()(L());const Me=w*.7+(Math.random()*5-2.5);await new Promise(ke=>setTimeout(ke,Me))}})(),await b}let re=Ce(()=>b!==null),x=Ce(()=>i(re)?"animate-blink":"");var j={get content(){return L()},set content(c){L(c),v()},get onContentChange(){return l()},set onContentChange(c){l(c),v()},get isActive(){return A()},set isActive(c=!1){A(c),v()},$set:Ke,$on:(c,w)=>Qe(a,c,w)},ee=Mt(),ae=ye(ee);{var q=c=>{var w=Dt(),T=Z(w),E=$(T,2),I=_e(E,!0);K(w),ge(V=>{Ae(w,`background: ${k()?.start??""}20; border: 1px solid ${k()?.start??""}40;`),Ft(T,1,`w-2 h-2 rounded-full ${i(x)??""}`,"svelte-440ct6"),Ae(T,`background: ${k()?.start??""};`),Ae(E,`color: ${k()?.start??""};`),oe(I,V)},[()=>M.editor_typingAnimation_agentTyping_label()]),D(c,w)};fe(ae,c=>{i(re)&&f()&&c(q)})}D(s,ee);var S=nt(j);return N(),S}function vn(s){const a=[];for(const f of s){let k=f.newStart;for(const C of f.lines)C.startsWith("+")?(a.push({line:k,type:"added"}),k++):C.startsWith("-")||C.startsWith(" ")&&k++}return a}function Ot(s,a){return a.map(f=>{const k=Rt(f.type),C=jt(f.type);return{range:new s.Range(f.line,1,f.line,1),options:{isWholeLine:!1,linesDecorationsClassName:`line-change-indicator line-change-${f.type}`,overviewRuler:{color:k,position:s.editor.OverviewRulerLane.Left},glyphMarginHoverMessage:{value:C}}}})}function Rt(s){switch(s){case"added":return"#22c55e";case"modified":return"#3b82f6";case"deleted":return"#ef4444";default:return"#6b7280"}}function jt(s){switch(s){case"added":return M.editor_lineChanges_added_tooltip();case"modified":return M.editor_lineChanges_modified_tooltip();case"deleted":return M.editor_lineChanges_deleted_tooltip();default:return M.editor_lineChanges_changed_tooltip()}}const Bt=[".d.mts",".d.cts",".d.ts",".mts",".cts",".tsx",".ts",".jsx",".mjs",".cjs",".js",".json"];function at(s){return s.startsWith("/")?s:`/${s}`}function qt(s){return s.replace(/[^a-zA-Z0-9_-]/g,"_")}function Ht(s,a){const f=at(s),k=f.toLowerCase(),C=`.__editor_${qt(a)}`,N=Bt.find(L=>k.endsWith(L));if(N)return`${f.slice(0,-N.length)}${C}${f.slice(-N.length)}`;const ie=f.lastIndexOf("/"),z=f.lastIndexOf(".");return z>ie?`${f.slice(0,z)}${C}${f.slice(z)}`:`${f}${C}`}function Ut(s){return at(s)}var Xe=Q("<!> ",1),Gt=Q('<div class="mt-4 flex items-center justify-center gap-2"><!> <!></div>'),Jt=Q('<div class="content-too-large svelte-2n2z1y"><div class="text-center space-y-4 max-w-md"><div class="text-subtle"><svg class="w-16 h-16 mx-auto mb-4 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="text-lg font-medium mb-2"> </h3> <p class="text-sm"> </p> <!></div></div></div>'),Xt=Q('<div class="placeholder-overlay svelte-2n2z1y"><span class="text-subtle text-sm italic"> </span></div>'),Zt=Q('<!> <div class="native-scrollbars w-full h-full"></div> <!>',1),Kt=Q('<div class="relative h-full w-full"><!></div>');function Yt(s,a){if(new.target)return Ze({component:Yt,...s});et(a,!0);const f=()=>Y(st,"$workspaceById",z),k=()=>Y(ft,"$isFollowing$",z),C=()=>Y(I,"$isDarkTheme",z),N=()=>Y(E,"$codeFontFamilyCSS",z),ie=()=>Y(lt,"$isWorkspaceHostLocal$",z),[z,L]=Ye(),l=Et("CodeEditor"),A=500*1024;let g=p(a,"value",15,""),b=p(a,"language",7,"javascript"),me=p(a,"theme",7,"light"),O=p(a,"readOnly",7,!1),R=p(a,"lineNumbers",7,!0),he=p(a,"highlightActiveLine",7,!0),pe=p(a,"diffMode",7,!1),re=p(a,"originalValue",7,""),x=p(a,"fileName",7,""),j=p(a,"lineWrapping",7,!0),ee=p(a,"jumpTo",7,void 0),ae=p(a,"lineChanges",23,()=>[]),q=p(a,"workspaceId",7),S=p(a,"filePath",7),c=p(a,"placeholder",7),w=p(a,"isPanelFocused",7,!0),T=p(a,"externalContentVersion",7,0);const E=At(),I=Vt(),V=Wt()?.workspaceId,H=typeof navigator<"u"&&navigator.platform?.startsWith("Win"),xe=typeof navigator<"u"&&(navigator.userAgentData?.platform==="macOS"||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)),Me=H?M.layout_panelTabBar_fileManagerExplorer_label():xe?M.layout_panelTabBar_fileManagerFinder_label():M.layout_panelTabBar_fileManagerGeneric_label(),ke=Ce(()=>q()??V??void 0),Le=kt(q()??V??"");P(()=>{Le.set(q()??V??"")});const st=zt(Le),lt=Nt(Le);function Ve(){return f()}let U=te(!1),ve=te(0);function ct(e){return e<1024?M.editor_codeEditor_fileSizeBytes_label({size:e}):e<1024*1024?M.editor_codeEditor_fileSizeKb_label({size:(e/1024).toFixed(1)}):M.editor_codeEditor_fileSizeMb_label({size:(e/(1024*1024)).toFixed(1)})}async function dt(){if(!S()){l.error("Cannot open file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot open file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("vscode:openFile",{file:e})}catch(n){l.error("Failed to open file in VS Code:",n)}}async function ut(){if(!S()){l.error("Cannot reveal file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot reveal file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("shell:showItemInFolder",{path:e})}catch(n){l.error("Failed to reveal file:",n)}}let d=te(void 0),t=null,G=null,J=te(!1);const ft=it();let Se=Ce(k),We=te(0);const gt=`${Date.now()}-${Math.random().toString(36).slice(2)}`;let se=[],$e;function le(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function mt(e){const n=Je.file(Ut(e));return B.getModel(n)?Je.file(Ht(e,gt)):n}function Te(e,n){De();const o=S()||x();return o?(G=B.createModel(e,n,mt(o)),G):(G=B.createModel(e,n),G)}function De(){G&&(G.dispose(),G=null)}function Oe(){if(t){try{t.dispose()}catch{}t=null,F(J,!1)}De()}let Ee=te(!1);P(()=>{const n=le(g()).length;n<=A?i(U)&&(l.debug("Content size now acceptable, resetting contentTooLarge",{fileName:x(),size:n,limit:A}),F(U,!1),F(ve,0),F(Ee,!0)):i(U)||(l.warn("Content too large for Monaco editor",{fileName:x(),size:n,limit:A}),F(U,!0),F(ve,n,!0),t&&Oe())}),P(()=>{i(Ee)&&i(d)&&!t&&!i(U)&&(F(Ee,!1),(async()=>{try{const e=le(g());if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}Be();const n=be(b()),o=we(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}const u=Te(e,n);t=B.create(i(d),{model:u,theme:o,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(m=>{const y=m.selection;if(!y.isEmpty()&&t?.hasTextFocus()){const r=t?.getModel()?.getValueInRange(y)||"";r&&ne("editor:selection-change",{text:r,file:x(),language:b(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:b(),source:"monaco"})}),l.debug("Editor re-initialized after contentTooLarge was cleared")}catch(e){l.error("Failed to initialize editor after contentTooLarge cleared:",e)}})())}),P(()=>{const e=le(g()),n=T(),o=n!==i(We);if(t){if(t.getValue()!==e&&(!i(Se)||o)){const m=t.getPosition();t.setValue(e),m&&t.setPosition(m)}o&&t.getValue()===e&&F(We,n,!0)}}),P(()=>{const e=ae();if(!t||!e||e.length===0){t&&se.length>0&&(se=t.deltaDecorations(se,[]));return}const n=Ot(Tt,e);se=t.deltaDecorations(se,n)}),P(()=>{if(!t||!i(Se))return;const e=n=>{const o=n.detail;if(!o||typeof o.content!="string")return;const{content:u,isAddition:m,lineNumber:y,column:_}=o;if(t)if(m){const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r){const h=new Ge(r.lineNumber,r.column,r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:u,forceMoveMarkers:!0}]);const W={lineNumber:r.lineNumber,column:r.column+u.length};t.setPosition(W),t.revealPositionInCenterIfOutsideViewport(W,0)}}else{const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r&&u.length>0){const h=new Ge(r.lineNumber,Math.max(1,r.column-u.length),r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:"",forceMoveMarkers:!0}]),t.revealPositionInCenterIfOutsideViewport(r,0)}}};return window.addEventListener("agent-follow-animation",e),()=>{window.removeEventListener("agent-follow-animation",e)}}),P(()=>{const e=b();if(t&&e){const n=be(e),o=t.getModel();o&&B.setModelLanguage(o,n)}}),P(()=>{const e=j();t&&t.updateOptions({wordWrap:e?"on":"off"})}),P(()=>{const e=N();t&&t.updateOptions({fontFamily:e})}),P(()=>{const e=C();t&&B.setTheme(we(e))});function be(e){return{js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rs:"rust",html:"html",css:"css",scss:"scss",less:"less",json:"json",md:"markdown",yaml:"yaml",yml:"yaml",xml:"xml",cpp:"cpp",c:"c",java:"java",sh:"shell",bash:"shell",zsh:"shell",sql:"sql",svelte:"svelte",vue:"html",go:"go",rb:"ruby",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",lua:"lua",dockerfile:"dockerfile",toml:"ini",ini:"ini",graphql:"graphql",gql:"graphql"}[e]||e}tt(async()=>{if(!i(d))return;try{const o=le(g());if(o.length>A){l.warn("Content too large for Monaco editor",{fileName:x(),size:o.length,limit:A}),F(U,!0),F(ve,o.length,!0);return}if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}Be();const u=be(b()),m=we(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}const y=Te(o,u);t=B.create(i(d),{model:y,theme:m,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(_=>{const r=_.selection;if(!r.isEmpty()&&t?.hasTextFocus()){const W=t?.getModel()?.getValueInRange(r)||"";W&&ne("editor:selection-change",{text:W,file:x(),language:b(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:b(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ne();const u=le(g()),m=Te(u,be(b()));t=B.create(i(d),{model:m,theme:we(C()),readOnly:O(),lineNumbers:R()?"on":"off",minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",fontFamily:N(),guides:{indentation:!1}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(y=>{const _=y.selection;if(!_.isEmpty()&&t?.hasTextFocus()){const h=t?.getModel()?.getValueInRange(_)||"";h&&ne("editor:selection-change",{text:h,file:x(),language:b(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:b(),source:"monaco"})})}catch(u){l.error("[CodeEditor] Failed to create fallback editor:",u)}}const e=o=>{if(t){const u=t.getScrollTop();o.detail.callback(u)}},n=o=>{o.detail.filePath&&o.detail.filePath!==x()||t&&typeof o.detail.scrollPosition=="number"&&requestAnimationFrame(()=>{t&&(t.setScrollTop(o.detail.scrollPosition),l.debug("[CodeEditor] Restored scroll position",{fileName:x(),scrollPosition:o.detail.scrollPosition}))})};window.addEventListener("file:save-scroll-position",e),window.addEventListener("file:restore-scroll-position",n),$e=()=>{window.removeEventListener("file:save-scroll-position",e),window.removeEventListener("file:restore-scroll-position",n)}});function ht(){if(t)try{return t.focus(),!0}catch(e){l.debug("[CodeEditor] Editor not ready for focus:",e)}return!1}function pt(e){if(!t||!t.hasTextFocus())return!1;const n={undo:"undo",redo:"redo",copy:"editor.action.clipboardCopyAction","select-all":"editor.action.selectAll"}[e];return t.trigger("shortcut-preferences",n,null),!0}Lt(()=>{$e?.(),Oe()}),P(()=>{const e=ee(),n=i(J);if(!t||!e||!n)return;const o=Math.max(1,Math.floor(e.line??1)),u=Math.max(1,Math.floor(e.column??1)),y=t.getModel?.()?.getLineCount?.()??o,r={lineNumber:Math.min(o,y),column:u};try{t.setPosition(r),t.revealPositionInCenterIfOutsideViewport(r,0),t.focus()}catch{}}),P(()=>{if(!i(J)||!t)return;const n=()=>{t?.hasTextFocus()&&t.trigger("keyboard","editor.action.revealDefinition",{})};return window.addEventListener("editor:go-to-definition",n),()=>{window.removeEventListener("editor:go-to-definition",n)}}),P(()=>{if(!i(J)||!t)return;const n=o=>{const u=o.detail;!u?.line||!t||w()&&setTimeout(()=>{if(!t||!w())return;const m=Math.max(1,Math.floor(u.line)),_=t.getModel?.()?.getLineCount?.()??m,h={lineNumber:Math.min(m,_),column:1};try{t.focus(),t.setPosition(h),t.revealPositionInCenterIfOutsideViewport(h,0)}catch{}},100)};return window.addEventListener("workspace:go-to-line",n),()=>{window.removeEventListener("workspace:go-to-line",n)}});var vt={focus:ht,runShortcut:pt,get value(){return g()},set value(e=""){g(e),v()},get language(){return b()},set language(e="javascript"){b(e),v()},get theme(){return me()},set theme(e="light"){me(e),v()},get readOnly(){return O()},set readOnly(e=!1){O(e),v()},get lineNumbers(){return R()},set lineNumbers(e=!0){R(e),v()},get highlightActiveLine(){return he()},set highlightActiveLine(e=!0){he(e),v()},get diffMode(){return pe()},set diffMode(e=!1){pe(e),v()},get originalValue(){return re()},set originalValue(e=""){re(e),v()},get fileName(){return x()},set fileName(e=""){x(e),v()},get lineWrapping(){return j()},set lineWrapping(e=!0){j(e),v()},get jumpTo(){return ee()},set jumpTo(e=void 0){ee(e),v()},get lineChanges(){return ae()},set lineChanges(e=[]){ae(e),v()},get workspaceId(){return q()},set workspaceId(e){q(e),v()},get filePath(){return S()},set filePath(e){S(e),v()},get placeholder(){return c()},set placeholder(e){c(e),v()},get isPanelFocused(){return w()},set isPanelFocused(e=!0){w(e),v()},get externalContentVersion(){return T()},set externalContentVersion(e=0){T(e),v()},$set:Ke,$on:(e,n)=>Qe(a,e,n)},Fe=Kt(),bt=Z(Fe);{var wt=e=>{var n=Jt(),o=Z(n),u=Z(o),m=$(Z(u),2),y=_e(m,!0),_=$(m,2),r=_e(_,!0),h=$(_,2);{var W=X=>{var ce=Gt(),Re=Z(ce);qe(Re,{variant:"secondary",size:"sm",onclick:dt,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return It},class:"mr-2"});var Pe=$(ue);ge(ze=>oe(Pe,` ${ze??""}`),[()=>M.editor_codeEditor_openInVsCode_label()]),D(Ie,de)},$$slots:{default:!0}});var Ct=$(Re,2);qe(Ct,{variant:"ghost",size:"sm",onclick:ut,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return Pt},class:"mr-2"});var Pe=$(ue);ge(ze=>oe(Pe,` ${ze??""}`),[()=>M.layout_panelTabBar_revealIn_label({fileManager:Me})]),D(Ie,de)},$$slots:{default:!0}}),K(ce),D(X,ce)};fe(h,X=>{i(ke)&&S()&&ie()&&X(W)})}K(u),K(o),K(n),ge((X,ce)=>{oe(y,X),oe(r,ce)},[()=>M.editor_codeEditor_fileTooLarge_title(),()=>M.editor_codeEditor_fileTooLarge_description({size:ct(i(ve))})]),D(e,n)},yt=e=>{var n=Zt(),o=ye(n);{var u=r=>{rt(r,{onContentChange:h=>g(h),isActive:!0,get content(){return g()},set content(h){g(h)}})};fe(o,r=>{i(Se)&&r(u)})}var m=$(o,2);St(m,r=>F(d,r),()=>i(d));var y=$(m,2);{var _=r=>{var h=Xt(),W=Z(h),X=_e(W,!0);K(h),ge(()=>oe(X,c())),D(r,h)};fe(y,r=>{c()&&!g()&&r(_)})}D(e,n)};fe(bt,e=>{i(U)?e(wt):e(yt,-1)})}K(Fe),D(s,Fe);var _t=nt(vt);return L(),_t}export{Yt as C,vn as p};
1
+ import{t as Ze,bq as p,a_ as fe,by as Ke,bu as Y,bs as Ye,b as Qe,bo as M}from"./yZ5s7S5S.js";import{bs as et,bk as tt,a7 as Mt,ay as ye,aD as i,W as D,bn as nt,c9 as Ce,aA as v,a5 as Z,bS as $,bl as _e,bA as K,b_ as ge,bO as oe,aB as Q,cd as kt,ca as P,bH as F,bj as Lt,bV as te}from"./B8o4lNgr.js";import{b as St}from"./D2g8BuR1.js";import{ensureMonacoInitialized as Ne,initializeMonaco as je,monaco as Tt}from"./Czo8fm8j.js";import{defineMonacoThemes as Be,getActiveMonacoThemeName as we}from"./Be2VCczk.js";import{c as Et}from"./ChTqQfQN.js";import{l as Ae,k as Ft}from"./D46WSk8U.js";import{Hb as ot}from"./WOicJa2k.js";import{f as qe}from"./Dax20l9D.js";import{F as He,b8 as It,bj as Pt}from"./ah7LAYm4.js";import{i as Ue}from"./Da6QaYq0.js";import{dk as zt,ck as Nt}from"./-1vWYJiy.js";import{g as At}from"./C3YfsJGu.js";import{d as Vt}from"./BIqUw3gi.js";import{d as ne}from"./B0Z-1lwJ.js";import{g as Wt}from"./DkibMP99.js";import{g as B,R as Ge,U as Je}from"./C4WAPshC.js";const it=ot.createSelector(s=>s.agentFollow.isFollowing),$t=ot.createSelector(s=>s.agentFollow.agentColor);var Dt=Q('<div class="absolute top-2 right-2 flex items-center gap-2 px-2 py-1 rounded-md z-50 svelte-440ct6"><div></div> <span class="text-xs svelte-440ct6"> </span></div>');function rt(s,a){if(new.target)return Ze({component:rt,...s});et(a,!0);const f=()=>Y(ie,"$isFollowing$",C),k=()=>Y(z,"$agentColor$",C),[C,N]=Ye(),ie=it(),z=$t();let L=p(a,"content",15),l=p(a,"onContentChange",7),A=p(a,"isActive",7,!1),g=null,b=null,me="";tt(()=>(window.addEventListener("agent-follow-animation",O),()=>{window.removeEventListener("agent-follow-animation",O),R()}));function O(c){if(!A()||!f())return;const w=c.detail;if(!w||typeof w.content!="string")return;const{content:T,isAddition:E,speed:I=30}=w;R(),E?he(T,I):pe(T,I)}function R(){g&&(g.abort(),g=null),b=null}async function he(c,w){g=new AbortController;const T=g.signal,E=c.split("");b=(async()=>{for(let I=0;I<E.length&&!T.aborted;I++){me+=E[I],L(L()+E[I]),l()(L());const V=w+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await b}async function pe(c,w){g=new AbortController;const T=g.signal,E=L().indexOf(c);if(E===-1)return;const I=L().slice(0,E),V=L().slice(E+c.length);b=(async()=>{for(let H=c.length;H>0&&!T.aborted;H--){const xe=c.slice(0,H-1);L(I+xe+V),l()(L());const Me=w*.7+(Math.random()*5-2.5);await new Promise(ke=>setTimeout(ke,Me))}})(),await b}let re=Ce(()=>b!==null),x=Ce(()=>i(re)?"animate-blink":"");var j={get content(){return L()},set content(c){L(c),v()},get onContentChange(){return l()},set onContentChange(c){l(c),v()},get isActive(){return A()},set isActive(c=!1){A(c),v()},$set:Ke,$on:(c,w)=>Qe(a,c,w)},ee=Mt(),ae=ye(ee);{var q=c=>{var w=Dt(),T=Z(w),E=$(T,2),I=_e(E,!0);K(w),ge(V=>{Ae(w,`background: ${k()?.start??""}20; border: 1px solid ${k()?.start??""}40;`),Ft(T,1,`w-2 h-2 rounded-full ${i(x)??""}`,"svelte-440ct6"),Ae(T,`background: ${k()?.start??""};`),Ae(E,`color: ${k()?.start??""};`),oe(I,V)},[()=>M.editor_typingAnimation_agentTyping_label()]),D(c,w)};fe(ae,c=>{i(re)&&f()&&c(q)})}D(s,ee);var S=nt(j);return N(),S}function vn(s){const a=[];for(const f of s){let k=f.newStart;for(const C of f.lines)C.startsWith("+")?(a.push({line:k,type:"added"}),k++):C.startsWith("-")||C.startsWith(" ")&&k++}return a}function Ot(s,a){return a.map(f=>{const k=Rt(f.type),C=jt(f.type);return{range:new s.Range(f.line,1,f.line,1),options:{isWholeLine:!1,linesDecorationsClassName:`line-change-indicator line-change-${f.type}`,overviewRuler:{color:k,position:s.editor.OverviewRulerLane.Left},glyphMarginHoverMessage:{value:C}}}})}function Rt(s){switch(s){case"added":return"#22c55e";case"modified":return"#3b82f6";case"deleted":return"#ef4444";default:return"#6b7280"}}function jt(s){switch(s){case"added":return M.editor_lineChanges_added_tooltip();case"modified":return M.editor_lineChanges_modified_tooltip();case"deleted":return M.editor_lineChanges_deleted_tooltip();default:return M.editor_lineChanges_changed_tooltip()}}const Bt=[".d.mts",".d.cts",".d.ts",".mts",".cts",".tsx",".ts",".jsx",".mjs",".cjs",".js",".json"];function at(s){return s.startsWith("/")?s:`/${s}`}function qt(s){return s.replace(/[^a-zA-Z0-9_-]/g,"_")}function Ht(s,a){const f=at(s),k=f.toLowerCase(),C=`.__editor_${qt(a)}`,N=Bt.find(L=>k.endsWith(L));if(N)return`${f.slice(0,-N.length)}${C}${f.slice(-N.length)}`;const ie=f.lastIndexOf("/"),z=f.lastIndexOf(".");return z>ie?`${f.slice(0,z)}${C}${f.slice(z)}`:`${f}${C}`}function Ut(s){return at(s)}var Xe=Q("<!> ",1),Gt=Q('<div class="mt-4 flex items-center justify-center gap-2"><!> <!></div>'),Jt=Q('<div class="content-too-large svelte-2n2z1y"><div class="text-center space-y-4 max-w-md"><div class="text-subtle"><svg class="w-16 h-16 mx-auto mb-4 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="text-lg font-medium mb-2"> </h3> <p class="text-sm"> </p> <!></div></div></div>'),Xt=Q('<div class="placeholder-overlay svelte-2n2z1y"><span class="text-subtle text-sm italic"> </span></div>'),Zt=Q('<!> <div class="native-scrollbars w-full h-full"></div> <!>',1),Kt=Q('<div class="relative h-full w-full"><!></div>');function Yt(s,a){if(new.target)return Ze({component:Yt,...s});et(a,!0);const f=()=>Y(st,"$workspaceById",z),k=()=>Y(ft,"$isFollowing$",z),C=()=>Y(I,"$isDarkTheme",z),N=()=>Y(E,"$codeFontFamilyCSS",z),ie=()=>Y(lt,"$isWorkspaceHostLocal$",z),[z,L]=Ye(),l=Et("CodeEditor"),A=500*1024;let g=p(a,"value",15,""),b=p(a,"language",7,"javascript"),me=p(a,"theme",7,"light"),O=p(a,"readOnly",7,!1),R=p(a,"lineNumbers",7,!0),he=p(a,"highlightActiveLine",7,!0),pe=p(a,"diffMode",7,!1),re=p(a,"originalValue",7,""),x=p(a,"fileName",7,""),j=p(a,"lineWrapping",7,!0),ee=p(a,"jumpTo",7,void 0),ae=p(a,"lineChanges",23,()=>[]),q=p(a,"workspaceId",7),S=p(a,"filePath",7),c=p(a,"placeholder",7),w=p(a,"isPanelFocused",7,!0),T=p(a,"externalContentVersion",7,0);const E=At(),I=Vt(),V=Wt()?.workspaceId,H=typeof navigator<"u"&&navigator.platform?.startsWith("Win"),xe=typeof navigator<"u"&&(navigator.userAgentData?.platform==="macOS"||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)),Me=H?M.layout_panelTabBar_fileManagerExplorer_label():xe?M.layout_panelTabBar_fileManagerFinder_label():M.layout_panelTabBar_fileManagerGeneric_label(),ke=Ce(()=>q()??V??void 0),Le=kt(q()??V??"");P(()=>{Le.set(q()??V??"")});const st=zt(Le),lt=Nt(Le);function Ve(){return f()}let U=te(!1),ve=te(0);function ct(e){return e<1024?M.editor_codeEditor_fileSizeBytes_label({size:e}):e<1024*1024?M.editor_codeEditor_fileSizeKb_label({size:(e/1024).toFixed(1)}):M.editor_codeEditor_fileSizeMb_label({size:(e/(1024*1024)).toFixed(1)})}async function dt(){if(!S()){l.error("Cannot open file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot open file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("vscode:openFile",{file:e})}catch(n){l.error("Failed to open file in VS Code:",n)}}async function ut(){if(!S()){l.error("Cannot reveal file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot reveal file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("shell:showItemInFolder",{path:e})}catch(n){l.error("Failed to reveal file:",n)}}let d=te(void 0),t=null,G=null,J=te(!1);const ft=it();let Se=Ce(k),We=te(0);const gt=`${Date.now()}-${Math.random().toString(36).slice(2)}`;let se=[],$e;function le(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function mt(e){const n=Je.file(Ut(e));return B.getModel(n)?Je.file(Ht(e,gt)):n}function Te(e,n){De();const o=S()||x();return o?(G=B.createModel(e,n,mt(o)),G):(G=B.createModel(e,n),G)}function De(){G&&(G.dispose(),G=null)}function Oe(){if(t){try{t.dispose()}catch{}t=null,F(J,!1)}De()}let Ee=te(!1);P(()=>{const n=le(g()).length;n<=A?i(U)&&(l.debug("Content size now acceptable, resetting contentTooLarge",{fileName:x(),size:n,limit:A}),F(U,!1),F(ve,0),F(Ee,!0)):i(U)||(l.warn("Content too large for Monaco editor",{fileName:x(),size:n,limit:A}),F(U,!0),F(ve,n,!0),t&&Oe())}),P(()=>{i(Ee)&&i(d)&&!t&&!i(U)&&(F(Ee,!1),(async()=>{try{const e=le(g());if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}Be();const n=be(b()),o=we(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}const u=Te(e,n);t=B.create(i(d),{model:u,theme:o,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(m=>{const y=m.selection;if(!y.isEmpty()&&t?.hasTextFocus()){const r=t?.getModel()?.getValueInRange(y)||"";r&&ne("editor:selection-change",{text:r,file:x(),language:b(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:b(),source:"monaco"})}),l.debug("Editor re-initialized after contentTooLarge was cleared")}catch(e){l.error("Failed to initialize editor after contentTooLarge cleared:",e)}})())}),P(()=>{const e=le(g()),n=T(),o=n!==i(We);if(t){if(t.getValue()!==e&&(!i(Se)||o)){const m=t.getPosition();t.setValue(e),m&&t.setPosition(m)}o&&t.getValue()===e&&F(We,n,!0)}}),P(()=>{const e=ae();if(!t||!e||e.length===0){t&&se.length>0&&(se=t.deltaDecorations(se,[]));return}const n=Ot(Tt,e);se=t.deltaDecorations(se,n)}),P(()=>{if(!t||!i(Se))return;const e=n=>{const o=n.detail;if(!o||typeof o.content!="string")return;const{content:u,isAddition:m,lineNumber:y,column:_}=o;if(t)if(m){const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r){const h=new Ge(r.lineNumber,r.column,r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:u,forceMoveMarkers:!0}]);const W={lineNumber:r.lineNumber,column:r.column+u.length};t.setPosition(W),t.revealPositionInCenterIfOutsideViewport(W,0)}}else{const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r&&u.length>0){const h=new Ge(r.lineNumber,Math.max(1,r.column-u.length),r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:"",forceMoveMarkers:!0}]),t.revealPositionInCenterIfOutsideViewport(r,0)}}};return window.addEventListener("agent-follow-animation",e),()=>{window.removeEventListener("agent-follow-animation",e)}}),P(()=>{const e=b();if(t&&e){const n=be(e),o=t.getModel();o&&B.setModelLanguage(o,n)}}),P(()=>{const e=j();t&&t.updateOptions({wordWrap:e?"on":"off"})}),P(()=>{const e=N();t&&t.updateOptions({fontFamily:e})}),P(()=>{const e=C();t&&B.setTheme(we(e))});function be(e){return{js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rs:"rust",html:"html",css:"css",scss:"scss",less:"less",json:"json",md:"markdown",yaml:"yaml",yml:"yaml",xml:"xml",cpp:"cpp",c:"c",java:"java",sh:"shell",bash:"shell",zsh:"shell",sql:"sql",svelte:"svelte",vue:"html",go:"go",rb:"ruby",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",lua:"lua",dockerfile:"dockerfile",toml:"ini",ini:"ini",graphql:"graphql",gql:"graphql"}[e]||e}tt(async()=>{if(!i(d))return;try{const o=le(g());if(o.length>A){l.warn("Content too large for Monaco editor",{fileName:x(),size:o.length,limit:A}),F(U,!0),F(ve,o.length,!0);return}if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}Be();const u=be(b()),m=we(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}const y=Te(o,u);t=B.create(i(d),{model:y,theme:m,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(_=>{const r=_.selection;if(!r.isEmpty()&&t?.hasTextFocus()){const W=t?.getModel()?.getValueInRange(r)||"";W&&ne("editor:selection-change",{text:W,file:x(),language:b(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:b(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ne();const u=le(g()),m=Te(u,be(b()));t=B.create(i(d),{model:m,theme:we(C()),readOnly:O(),lineNumbers:R()?"on":"off",minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",fontFamily:N(),guides:{indentation:!1}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(y=>{const _=y.selection;if(!_.isEmpty()&&t?.hasTextFocus()){const h=t?.getModel()?.getValueInRange(_)||"";h&&ne("editor:selection-change",{text:h,file:x(),language:b(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:b(),source:"monaco"})})}catch(u){l.error("[CodeEditor] Failed to create fallback editor:",u)}}const e=o=>{if(t){const u=t.getScrollTop();o.detail.callback(u)}},n=o=>{o.detail.filePath&&o.detail.filePath!==x()||t&&typeof o.detail.scrollPosition=="number"&&requestAnimationFrame(()=>{t&&(t.setScrollTop(o.detail.scrollPosition),l.debug("[CodeEditor] Restored scroll position",{fileName:x(),scrollPosition:o.detail.scrollPosition}))})};window.addEventListener("file:save-scroll-position",e),window.addEventListener("file:restore-scroll-position",n),$e=()=>{window.removeEventListener("file:save-scroll-position",e),window.removeEventListener("file:restore-scroll-position",n)}});function ht(){if(t)try{return t.focus(),!0}catch(e){l.debug("[CodeEditor] Editor not ready for focus:",e)}return!1}function pt(e){if(!t||!t.hasTextFocus())return!1;const n={undo:"undo",redo:"redo",copy:"editor.action.clipboardCopyAction","select-all":"editor.action.selectAll"}[e];return t.trigger("shortcut-preferences",n,null),!0}Lt(()=>{$e?.(),Oe()}),P(()=>{const e=ee(),n=i(J);if(!t||!e||!n)return;const o=Math.max(1,Math.floor(e.line??1)),u=Math.max(1,Math.floor(e.column??1)),y=t.getModel?.()?.getLineCount?.()??o,r={lineNumber:Math.min(o,y),column:u};try{t.setPosition(r),t.revealPositionInCenterIfOutsideViewport(r,0),t.focus()}catch{}}),P(()=>{if(!i(J)||!t)return;const n=()=>{t?.hasTextFocus()&&t.trigger("keyboard","editor.action.revealDefinition",{})};return window.addEventListener("editor:go-to-definition",n),()=>{window.removeEventListener("editor:go-to-definition",n)}}),P(()=>{if(!i(J)||!t)return;const n=o=>{const u=o.detail;!u?.line||!t||w()&&setTimeout(()=>{if(!t||!w())return;const m=Math.max(1,Math.floor(u.line)),_=t.getModel?.()?.getLineCount?.()??m,h={lineNumber:Math.min(m,_),column:1};try{t.focus(),t.setPosition(h),t.revealPositionInCenterIfOutsideViewport(h,0)}catch{}},100)};return window.addEventListener("workspace:go-to-line",n),()=>{window.removeEventListener("workspace:go-to-line",n)}});var vt={focus:ht,runShortcut:pt,get value(){return g()},set value(e=""){g(e),v()},get language(){return b()},set language(e="javascript"){b(e),v()},get theme(){return me()},set theme(e="light"){me(e),v()},get readOnly(){return O()},set readOnly(e=!1){O(e),v()},get lineNumbers(){return R()},set lineNumbers(e=!0){R(e),v()},get highlightActiveLine(){return he()},set highlightActiveLine(e=!0){he(e),v()},get diffMode(){return pe()},set diffMode(e=!1){pe(e),v()},get originalValue(){return re()},set originalValue(e=""){re(e),v()},get fileName(){return x()},set fileName(e=""){x(e),v()},get lineWrapping(){return j()},set lineWrapping(e=!0){j(e),v()},get jumpTo(){return ee()},set jumpTo(e=void 0){ee(e),v()},get lineChanges(){return ae()},set lineChanges(e=[]){ae(e),v()},get workspaceId(){return q()},set workspaceId(e){q(e),v()},get filePath(){return S()},set filePath(e){S(e),v()},get placeholder(){return c()},set placeholder(e){c(e),v()},get isPanelFocused(){return w()},set isPanelFocused(e=!0){w(e),v()},get externalContentVersion(){return T()},set externalContentVersion(e=0){T(e),v()},$set:Ke,$on:(e,n)=>Qe(a,e,n)},Fe=Kt(),bt=Z(Fe);{var wt=e=>{var n=Jt(),o=Z(n),u=Z(o),m=$(Z(u),2),y=_e(m,!0),_=$(m,2),r=_e(_,!0),h=$(_,2);{var W=X=>{var ce=Gt(),Re=Z(ce);qe(Re,{variant:"secondary",size:"sm",onclick:dt,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return It},class:"mr-2"});var Pe=$(ue);ge(ze=>oe(Pe,` ${ze??""}`),[()=>M.editor_codeEditor_openInVsCode_label()]),D(Ie,de)},$$slots:{default:!0}});var Ct=$(Re,2);qe(Ct,{variant:"ghost",size:"sm",onclick:ut,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return Pt},class:"mr-2"});var Pe=$(ue);ge(ze=>oe(Pe,` ${ze??""}`),[()=>M.layout_panelTabBar_revealIn_label({fileManager:Me})]),D(Ie,de)},$$slots:{default:!0}}),K(ce),D(X,ce)};fe(h,X=>{i(ke)&&S()&&ie()&&X(W)})}K(u),K(o),K(n),ge((X,ce)=>{oe(y,X),oe(r,ce)},[()=>M.editor_codeEditor_fileTooLarge_title(),()=>M.editor_codeEditor_fileTooLarge_description({size:ct(i(ve))})]),D(e,n)},yt=e=>{var n=Zt(),o=ye(n);{var u=r=>{rt(r,{onContentChange:h=>g(h),isActive:!0,get content(){return g()},set content(h){g(h)}})};fe(o,r=>{i(Se)&&r(u)})}var m=$(o,2);St(m,r=>F(d,r),()=>i(d));var y=$(m,2);{var _=r=>{var h=Xt(),W=Z(h),X=_e(W,!0);K(h),ge(()=>oe(X,c())),D(r,h)};fe(y,r=>{c()&&!g()&&r(_)})}D(e,n)};fe(bt,e=>{i(U)?e(wt):e(yt,-1)})}K(Fe),D(s,Fe);var _t=nt(vt);return L(),_t}export{Yt as C,vn as p};
@@ -1 +1 @@
1
- import{br as H}from"./B8o4lNgr.js";import{c as U}from"./ChTqQfQN.js";import{a as W,i as _}from"./AFSjjw3j.js";import{F as g,o as b,p,H as G}from"./CWKAugar.js";import{Hb as c}from"./WOicJa2k.js";import{y as J,E as S,u as Q,L as Z,F as V}from"./G0_EiVNo.js";const f=U("PanelKeyboardShortcuts"),X=2e3;function se(d,m,K=()=>null,I={}){const v=I.isMac??(typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")),s=H({leaderActive:!1,leaderTimeout:null,isZoomed:!1,zoomedPanelId:null,showPanelNumbers:!1});function w(){s.leaderTimeout&&clearTimeout(s.leaderTimeout),s.leaderActive=!0,s.leaderTimeout=setTimeout(()=>{s.leaderActive=!1,s.showPanelNumbers=!1,f.debug("Leader key timed out")},X),f.debug("Leader key activated")}function h(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.showPanelNumbers=!1}function D(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.isZoomed=!1,s.zoomedPanelId=null,s.showPanelNumbers=!1}function z(e){const n=d();switch(f.debug("Executing leader action",{action:e}),e){case"navigate-left":case"navigate-right":case"navigate-up":case"navigate-down":E(n,e.replace("navigate-",""));break;case"navigate-next":m?m("next"):k(n,"next");break;case"navigate-prev":m?m("prev"):k(n,"prev");break;case"split-right":{const t=p.select(c.state,n.workspaceId),a=g.select(c.state,n.workspaceId);t&&a.length<4&&n.splitPanel(t,"horizontal");break}case"zoom-toggle":C(n);break;case"zoom-reset":N();break;case"close-panel":{const t=p.select(c.state,n.workspaceId);t&&n.closePanel(t);break}case"resize-left":case"resize-right":case"resize-up":case"resize-down":f.debug("Resize action not yet implemented",{action:e});break;case"resize-equal":q(n);break;case"swap-prev":case"swap-next":f.debug("Swap action not yet implemented",{action:e});break;case"show-panel-numbers":s.showPanelNumbers=!0;return;case"move-tab-to-next-panel":{const t=b.select(c.state,n.workspaceId);if(t?.activeTabId){const a=n.getOtherPanelId();a&&n.moveTabToPanel(t.activeTabId,t.id,a)}break}case"cycle-layout-presets":n.cyclePresets();break}h()}function E(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t);if(!u){e.focusPanel(r[0]);return}const l=r.indexOf(u);let i;n==="left"||n==="up"?i=l>0?l-1:r.length-1:i=l<r.length-1?l+1:0,e.focusPanel(r[i])}function k(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t),l=u?r.indexOf(u):-1;let i;n==="next"?i=l<r.length-1?l+1:0:i=l>0?l-1:r.length-1,e.focusPanel(r[i])}function C(e){s.isZoomed=!s.isZoomed,s.isZoomed?s.zoomedPanelId=p.select(c.state,e.workspaceId):s.zoomedPanelId=null,f.debug("Zoom toggled",{isZoomed:s.isZoomed})}function N(){s.isZoomed=!1,s.zoomedPanelId=null,f.debug("Zoom reset")}function q(e){const n=G.select(c.state,e.workspaceId);if(!n)return;function t(a){if(a.type==="split"){const r=100/a.children.length;a.sizes=a.children.map(()=>r),a.children.forEach(t)}}t(n.root),f.debug("Equalized all panel sizes")}function x(e,n){const t=g.select(c.state,e.workspaceId);n>=0&&n<t.length&&e.focusPanel(t[n])}function F(e,n){const t=b.select(c.state,e.workspaceId);return!t||t.tabs.length<2?!1:(n==="next"?e.selectNextTab(t.id):e.selectPreviousTab(t.id),!0)}function O(e,n){if(I.onFocusAdjacentColumn)return I.onFocusAdjacentColumn(n);const t=g.select(c.state,e.workspaceId),a=p.select(c.state,e.workspaceId),u=(a?t.indexOf(a):-1)+(n==="next"?1:-1),l=t[u];return l?(e.focusPanel(l),!0):!1}function j(e,n){const t=b.select(c.state,e.workspaceId);return t?e.moveActivePaneToColumn(t.id,n):!1}function L(e){const n=g.select(c.state,e.workspaceId),t=p.select(c.state,e.workspaceId);return!t||n.length>=4?!1:(e.splitPanel(t,"horizontal"),!0)}function B(e){const n=v?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey,t=c.state.userPreferences?.shortcutOverrides??{},a=o=>Z(o,t),r=o=>S(e,a(o),v),u=o=>r(o)&&!J(o,e,a,v),l=u("panel.focus-previous-column")?"prev":u("panel.focus-next-column")?"next":null,i=r("panel.previous-pane")?"prev":r("panel.next-pane")?"next":null;if(l){const o=O(d(),l);return o&&e.preventDefault(),o}if(i){const o=F(d(),i);return o&&e.preventDefault(),o}if(r("panel.create-column-right")){const o=L(d());return o&&(e.preventDefault(),e.stopPropagation()),o}const T=e.target instanceof Element?e.target:null;if(W(T)||_(T))return!1;const y=d(),A=r("panel.move-pane-previous-column")?"prev":r("panel.move-pane-next-column")?"next":null;if(A){const o=j(y,A);return o&&e.preventDefault(),o}if(n&&e.key===";"&&!e.shiftKey&&!e.altKey)return e.preventDefault(),w(),!0;if(s.leaderActive){if(e.preventDefault(),s.showPanelNumbers&&e.key>="1"&&e.key<="9")return x(y,parseInt(e.key)-1),h(),!0;const o=R(e);return o?(z(o),!0):(h(),!0)}return!1}function R(e){const n=i=>Z(i,c.state.userPreferences?.shortcutOverrides??{}),t=i=>V(e,n(i),v),a=t("leader.navigate-panels");if(a>=0)return["navigate-left","navigate-down","navigate-up","navigate-right"][a];const r=t("leader.resize-panels");if(r>=0)return["resize-left","resize-down","resize-up","resize-right"][r];const u=t("leader.next-previous-panel");if(u>=0)return u===0?"navigate-next":"navigate-prev";if(t("leader.split-right")>=0)return"split-right";if(t("leader.toggle-zoom")>=0)return"zoom-toggle";if(t("leader.close-panel")>=0)return"close-panel";if(t("leader.equalize-sizes")>=0)return"resize-equal";const l=Q(n("leader.jump-to-panel"));return l&&S(e,l,v)?"show-panel-numbers":t("leader.cycle-layout")>=0?"cycle-layout-presets":null}return{get availableCanvasWidth(){return K()},get leaderActive(){return s.leaderActive},get isZoomed(){return s.isZoomed},get zoomedPanelId(){return s.zoomedPanelId},get showPanelNumbers(){return s.showPanelNumbers},handleKeyDown:B,activateLeader:w,deactivateLeader:h,executeAction:z,focusPanelByIndex:x,cleanup:D}}const P=new Map;function ae(d,m){P.set(d,m)}function re(d){P.delete(d)}function oe(d){return P.get(d)}export{se as c,oe as g,ae as r,re as u};
1
+ import{br as H}from"./B8o4lNgr.js";import{c as U}from"./ChTqQfQN.js";import{a as W,i as _}from"./Do_TqlrK.js";import{F as g,o as b,p,H as G}from"./CWKAugar.js";import{Hb as c}from"./WOicJa2k.js";import{y as J,E as S,u as Q,L as Z,F as V}from"./G0_EiVNo.js";const f=U("PanelKeyboardShortcuts"),X=2e3;function se(d,m,K=()=>null,I={}){const v=I.isMac??(typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")),s=H({leaderActive:!1,leaderTimeout:null,isZoomed:!1,zoomedPanelId:null,showPanelNumbers:!1});function w(){s.leaderTimeout&&clearTimeout(s.leaderTimeout),s.leaderActive=!0,s.leaderTimeout=setTimeout(()=>{s.leaderActive=!1,s.showPanelNumbers=!1,f.debug("Leader key timed out")},X),f.debug("Leader key activated")}function h(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.showPanelNumbers=!1}function D(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.isZoomed=!1,s.zoomedPanelId=null,s.showPanelNumbers=!1}function z(e){const n=d();switch(f.debug("Executing leader action",{action:e}),e){case"navigate-left":case"navigate-right":case"navigate-up":case"navigate-down":E(n,e.replace("navigate-",""));break;case"navigate-next":m?m("next"):k(n,"next");break;case"navigate-prev":m?m("prev"):k(n,"prev");break;case"split-right":{const t=p.select(c.state,n.workspaceId),a=g.select(c.state,n.workspaceId);t&&a.length<4&&n.splitPanel(t,"horizontal");break}case"zoom-toggle":C(n);break;case"zoom-reset":N();break;case"close-panel":{const t=p.select(c.state,n.workspaceId);t&&n.closePanel(t);break}case"resize-left":case"resize-right":case"resize-up":case"resize-down":f.debug("Resize action not yet implemented",{action:e});break;case"resize-equal":q(n);break;case"swap-prev":case"swap-next":f.debug("Swap action not yet implemented",{action:e});break;case"show-panel-numbers":s.showPanelNumbers=!0;return;case"move-tab-to-next-panel":{const t=b.select(c.state,n.workspaceId);if(t?.activeTabId){const a=n.getOtherPanelId();a&&n.moveTabToPanel(t.activeTabId,t.id,a)}break}case"cycle-layout-presets":n.cyclePresets();break}h()}function E(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t);if(!u){e.focusPanel(r[0]);return}const l=r.indexOf(u);let i;n==="left"||n==="up"?i=l>0?l-1:r.length-1:i=l<r.length-1?l+1:0,e.focusPanel(r[i])}function k(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t),l=u?r.indexOf(u):-1;let i;n==="next"?i=l<r.length-1?l+1:0:i=l>0?l-1:r.length-1,e.focusPanel(r[i])}function C(e){s.isZoomed=!s.isZoomed,s.isZoomed?s.zoomedPanelId=p.select(c.state,e.workspaceId):s.zoomedPanelId=null,f.debug("Zoom toggled",{isZoomed:s.isZoomed})}function N(){s.isZoomed=!1,s.zoomedPanelId=null,f.debug("Zoom reset")}function q(e){const n=G.select(c.state,e.workspaceId);if(!n)return;function t(a){if(a.type==="split"){const r=100/a.children.length;a.sizes=a.children.map(()=>r),a.children.forEach(t)}}t(n.root),f.debug("Equalized all panel sizes")}function x(e,n){const t=g.select(c.state,e.workspaceId);n>=0&&n<t.length&&e.focusPanel(t[n])}function F(e,n){const t=b.select(c.state,e.workspaceId);return!t||t.tabs.length<2?!1:(n==="next"?e.selectNextTab(t.id):e.selectPreviousTab(t.id),!0)}function O(e,n){if(I.onFocusAdjacentColumn)return I.onFocusAdjacentColumn(n);const t=g.select(c.state,e.workspaceId),a=p.select(c.state,e.workspaceId),u=(a?t.indexOf(a):-1)+(n==="next"?1:-1),l=t[u];return l?(e.focusPanel(l),!0):!1}function j(e,n){const t=b.select(c.state,e.workspaceId);return t?e.moveActivePaneToColumn(t.id,n):!1}function L(e){const n=g.select(c.state,e.workspaceId),t=p.select(c.state,e.workspaceId);return!t||n.length>=4?!1:(e.splitPanel(t,"horizontal"),!0)}function B(e){const n=v?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey,t=c.state.userPreferences?.shortcutOverrides??{},a=o=>Z(o,t),r=o=>S(e,a(o),v),u=o=>r(o)&&!J(o,e,a,v),l=u("panel.focus-previous-column")?"prev":u("panel.focus-next-column")?"next":null,i=r("panel.previous-pane")?"prev":r("panel.next-pane")?"next":null;if(l){const o=O(d(),l);return o&&e.preventDefault(),o}if(i){const o=F(d(),i);return o&&e.preventDefault(),o}if(r("panel.create-column-right")){const o=L(d());return o&&(e.preventDefault(),e.stopPropagation()),o}const T=e.target instanceof Element?e.target:null;if(W(T)||_(T))return!1;const y=d(),A=r("panel.move-pane-previous-column")?"prev":r("panel.move-pane-next-column")?"next":null;if(A){const o=j(y,A);return o&&e.preventDefault(),o}if(n&&e.key===";"&&!e.shiftKey&&!e.altKey)return e.preventDefault(),w(),!0;if(s.leaderActive){if(e.preventDefault(),s.showPanelNumbers&&e.key>="1"&&e.key<="9")return x(y,parseInt(e.key)-1),h(),!0;const o=R(e);return o?(z(o),!0):(h(),!0)}return!1}function R(e){const n=i=>Z(i,c.state.userPreferences?.shortcutOverrides??{}),t=i=>V(e,n(i),v),a=t("leader.navigate-panels");if(a>=0)return["navigate-left","navigate-down","navigate-up","navigate-right"][a];const r=t("leader.resize-panels");if(r>=0)return["resize-left","resize-down","resize-up","resize-right"][r];const u=t("leader.next-previous-panel");if(u>=0)return u===0?"navigate-next":"navigate-prev";if(t("leader.split-right")>=0)return"split-right";if(t("leader.toggle-zoom")>=0)return"zoom-toggle";if(t("leader.close-panel")>=0)return"close-panel";if(t("leader.equalize-sizes")>=0)return"resize-equal";const l=Q(n("leader.jump-to-panel"));return l&&S(e,l,v)?"show-panel-numbers":t("leader.cycle-layout")>=0?"cycle-layout-presets":null}return{get availableCanvasWidth(){return K()},get leaderActive(){return s.leaderActive},get isZoomed(){return s.isZoomed},get zoomedPanelId(){return s.zoomedPanelId},get showPanelNumbers(){return s.showPanelNumbers},handleKeyDown:B,activateLeader:w,deactivateLeader:h,executeAction:z,focusPanelByIndex:x,cleanup:D}}const P=new Map;function ae(d,m){P.set(d,m)}function re(d){P.delete(d)}function oe(d){return P.get(d)}export{se as c,oe as g,ae as r,re as u};
@@ -1,4 +1,4 @@
1
- import{t as Ke,bq as k,a_ as E,bo as Se,by as Ue,b as Ve,q as ur,n as vr,r as gr,o as fr,p as hr,s as mr,bu as ht,bs as pr,f as _r,l as xr,g as br,e as wr,d as kr,m as yr,j as $r,i as Cr,h as Sr,k as Nr}from"./yZ5s7S5S.js";import{bs as Je,ca as Ze,aD as e,ay as be,a5 as o,bH as L,bS as n,a7 as Pt,W as i,be as st,b$ as et,b_ as M,bO as S,bA as s,bl as O,bn as Qe,bV as we,aA as y,c9 as _,aB as x,br as mt}from"./B8o4lNgr.js";import{n3 as Rr,Hb as ct,ma as Wt,e9 as Mr,et as Pr,eu as Lr}from"./WOicJa2k.js";import{H as De,C as Oe,y as Ir,h as at}from"./Dfbagr79.js";import{dk as Ar,bd as Hr}from"./D24Lh2xV.js";import{ab as jt}from"./CojjevwO.js";import{I as it,k as Ee,h as Ge,i as Lt,s as Er}from"./D46WSk8U.js";import{f as xe}from"./CyAayV8v.js";import"./Cb1eroFO.js";import{F as fe,a1 as zr,cH as Dr,at as ot,au as pt,bX as Tr,aQ as Wr,bH as jr,bB as Fr,b4 as Br,cM as Gr,cf as Or,b1 as Ct,cR as Rt,cj as _t,bj as Kr,cw as Ur,ar as Vr}from"./ah7LAYm4.js";import{e as Jr}from"./Ozne-tFy.js";import{Q as Ft,B as Qr}from"./CJB0AMOQ.js";import{H as Bt}from"./CoZ28bOB.js";import{I as Vt}from"./Bx4lXaHY.js";import"./CM5eCs6m.js";import{M as Mt}from"./B6GFXjaE.js";import{w as St}from"./9ZGNcJrk.js";const qr=[/^diff --git /,/^index\s/,/^---\s/,/^\+\+\+\s/,/^\/];function Xr($){const r=[];if(!$)return r;const d=$.split(`
1
+ import{t as Ke,bq as k,a_ as E,bo as Se,by as Ue,b as Ve,q as ur,n as vr,r as gr,o as fr,p as hr,s as mr,bu as ht,bs as pr,f as _r,l as xr,g as br,e as wr,d as kr,m as yr,j as $r,i as Cr,h as Sr,k as Nr}from"./yZ5s7S5S.js";import{bs as Je,ca as Ze,aD as e,ay as be,a5 as o,bH as L,bS as n,a7 as Pt,W as i,be as st,b$ as et,b_ as M,bO as S,bA as s,bl as O,bn as Qe,bV as we,aA as y,c9 as _,aB as x,br as mt}from"./B8o4lNgr.js";import{n3 as Rr,Hb as ct,ma as Wt,e9 as Mr,et as Pr,eu as Lr}from"./WOicJa2k.js";import{H as De,C as Oe,y as Ir,h as at}from"./Dfbagr79.js";import{dk as Ar,bd as Hr}from"./-1vWYJiy.js";import{ab as jt}from"./BzwTpGAs.js";import{I as it,k as Ee,h as Ge,i as Lt,s as Er}from"./D46WSk8U.js";import{f as xe}from"./Dax20l9D.js";import"./Cb1eroFO.js";import{F as fe,a1 as zr,cH as Dr,at as ot,au as pt,bX as Tr,aQ as Wr,bH as jr,bB as Fr,b4 as Br,cM as Gr,cf as Or,b1 as Ct,cR as Rt,cj as _t,bj as Kr,cw as Ur,ar as Vr}from"./ah7LAYm4.js";import{e as Jr}from"./Bk5SMnS3.js";import{Q as Ft,B as Qr}from"./gMye6h60.js";import{H as Bt}from"./CoZ28bOB.js";import{I as Vt}from"./BYxkGGC-.js";import"./CM5eCs6m.js";import{M as Mt}from"./9pcH5qab.js";import{w as St}from"./BvUM18CV.js";const qr=[/^diff --git /,/^index\s/,/^---\s/,/^\+\+\+\s/,/^\/];function Xr($){const r=[];if(!$)return r;const d=$.split(`
2
2
  `);let m=null,b=0,u=0;const W=P=>{const h=P.match(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),J=h?parseInt(h[1],10):0,K=h&&h[2]?parseInt(h[2],10):null,pe=h?parseInt(h[3],10):0,Q=h&&h[4]?parseInt(h[4],10):null;m={header:P,oldStart:J,oldLines:K,newStart:pe,newLines:Q,lines:[]},r.push(m),b=J,u=pe};for(const P of d){if(P.startsWith("@@")){W(P);continue}if(!m)continue;const h=m;P.startsWith("+")?h.lines.push({type:"addition",content:P.slice(1),oldNum:null,newNum:u++,raw:P}):P.startsWith("-")?h.lines.push({type:"deletion",content:P.slice(1),oldNum:b++,newNum:null,raw:P}):P.startsWith(" ")?h.lines.push({type:"context",content:P.slice(1),oldNum:b++,newNum:u++,raw:P}):qr.some(J=>J.test(P))||P.trim()===""&&h.lines.push({type:"context",content:"",oldNum:b++,newNum:u++,raw:P})}return r}var Yr=x('<div><!> <!> <!></div> <p class="text-ui text-subtle mt-1"> </p>',1);function Jt($,r){if(new.target)return Ke({component:Jt,...$});Je(r,!0);let d=k(r,"lineNumber",7,0),m=k(r,"fileName",7,""),b=k(r,"onSend",7),u=k(r,"onClose",7),W=k(r,"isSending",7,!1),P=k(r,"class",7,""),h=we(""),J=we(null);Ze(()=>{e(J)&&e(J).focus()});function K(){!e(h).trim()||W()||(b()?.(e(h).trim(),d(),m()),L(h,""))}function pe(I){I.key==="Enter"&&!I.shiftKey&&(I.preventDefault(),K()),I.key==="Escape"&&u()?.()}var Q={get lineNumber(){return d()},set lineNumber(I=0){d(I),y()},get fileName(){return m()},set fileName(I=""){m(I),y()},get onSend(){return b()},set onSend(I){b(I),y()},get onClose(){return u()},set onClose(I){u(I),y()},get isSending(){return W()},set isSending(I=!1){W(I),y()},get class(){return P()},set class(I=""){P(I),y()},$set:Ue,$on:(I,he)=>Ve(r,I,he)},w=Yr(),z=be(w),de=o(z);{let I=_(()=>Se.codeReview_inlineComment_askLine_placeholder());Vt(de,{onkeydown:pe,get placeholder(){return e(I)},get disabled(){return W()},class:"flex-1 h-8 rounded-md border border-border bg-background px-3 text-sm placeholder:text-muted-foreground disabled:opacity-50",get ref(){return e(J)},set ref(he){L(J,he,!0)},get value(){return e(h)},set value(he){L(h,he,!0)}})}var ce=n(de,2);{let I=_(()=>!e(h).trim()||W());xe(ce,{type:"button",variant:"primary",onclick:K,get disabled(){return e(I)},class:"h-8 w-8 p-0",children:(he,Ne)=>{var _e=Pt(),C=be(_e);{var H=me=>{it(me,{size:14})},Ie=me=>{fe(me,{get icon(){return zr},class:"h-3.5 w-3.5"})};E(C,me=>{W()?me(H):me(Ie,-1)})}i(he,_e)},$$slots:{default:!0}})}var ae=n(ce,2);xe(ae,{type:"button",variant:"ghost",onclick:()=>u()?.(),class:"h-8 px-2 text-xs text-muted-foreground hover:text-foreground transition-colors",children:(I,he)=>{st();var Ne=et();M(_e=>S(Ne,_e),[()=>Se.codeReview_inlineComment_cancel_label()]),i(I,Ne)},$$slots:{default:!0}}),s(z);var te=n(z,2),ke=O(te,!0);return M(I=>{Ee(z,1,`walkthrough-inline-comment flex items-center gap-2 ${P()??""}`),S(ke,I)},[()=>Se.codeReview_inlineComment_inputHint_label()]),i($,w),Qe(Q)}var Zr=x('<div class="text-xs text-slate-400 dark:text-slate-500 mt-1"> </div>'),en=x('<span class="font-medium"> </span> <!>',1),tn=x('<div class="flex items-start gap-3 py-2"><div><!></div> <div class="flex-1 min-w-0"><div class="text-sm leading-relaxed text-slate-700 dark:text-slate-300"><!></div></div></div>'),rn=x('<div class="px-4 pb-3 divide-y divide-border"></div>'),nn=x('<div class="border-t border-border"><!> <!></div>'),an=x('<div class="flex items-center gap-2 px-4 py-2 text-xs text-slate-500 dark:text-slate-400 border-t border-border"><!> <span> </span></div>'),sn=x('<div class="flex items-center gap-2"><!> <!> <!></div> <p class="text-ui text-slate-400 dark:text-slate-500 mt-1"> </p>',1),on=x("<!> <span> </span>",1),ln=x('<div><div class="flex items-start gap-3 px-4 py-3"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-sm text-slate-800 dark:text-slate-200 leading-relaxed"><!></div> <!></div> <!></div> <!> <!> <div class="border-t border-border px-4 py-2"><!></div></div>');function Qt($,r){if(new.target)return Ke({component:Qt,...$});Je(r,!0);let d=k(r,"annotation",7),m=k(r,"lineNumber",7),b=k(r,"fileName",7),u=k(r,"messages",23,()=>[]),W=k(r,"onSendMessage",7),P=k(r,"onClose",7),h=k(r,"isSending",7,!1),J=k(r,"isAgentResponding",7,!1),K=k(r,"timestamp",7),pe=k(r,"class",7,""),Q=we(""),w=we(!1),z=we(!1),de=we(null);Ze(()=>{e(w)&&e(de)&&e(de).focus()});function ce(){!e(Q).trim()||h()||(W()?.(e(Q).trim(),m(),b()),L(Q,""))}function ae(a){a.key==="Enter"&&!a.shiftKey&&(a.preventDefault(),ce()),a.key==="Escape"&&(e(Q)?L(Q,""):L(w,!1))}function te(a){switch(a){case"highlight":return Br;case"context":return Fr;case"explanation":default:return jr}}function ke(a){switch(a){case"highlight":return"text-orange-500";case"context":return"text-blue-500";case"explanation":default:return"text-warning-ink"}}function I(a){return a?Ir(a):""}const he=_(()=>u().length>0);var Ne={get annotation(){return d()},set annotation(a){d(a),y()},get lineNumber(){return m()},set lineNumber(a){m(a),y()},get fileName(){return b()},set fileName(a){b(a),y()},get messages(){return u()},set messages(a=[]){u(a),y()},get onSendMessage(){return W()},set onSendMessage(a){W(a),y()},get onClose(){return P()},set onClose(a){P(a),y()},get isSending(){return h()},set isSending(a=!1){h(a),y()},get isAgentResponding(){return J()},set isAgentResponding(a=!1){J(a),y()},get timestamp(){return K()},set timestamp(a){K(a),y()},get class(){return pe()},set class(a=""){pe(a),y()},$set:Ue,$on:(a,T)=>Ve(r,a,T)},_e=ln(),C=o(_e),H=o(C),Ie=o(H);{let a=_(()=>te(d().type)),T=_(()=>ke(d().type));fe(Ie,{get icon(){return e(a)},get class(){return`h-4 w-4 ${e(T)??""}`}})}s(H);var me=n(H,2),v=o(me),R=o(v);Mt(R,{get content(){return d().message},className:"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0"}),s(v);var A=n(v,2);{var Y=a=>{var T=Zr(),Z=O(T,!0);M(ee=>S(Z,ee),[()=>I(K())]),i(a,T)};E(A,a=>{K()&&a(Y)})}s(me);var ie=n(me,2);{var $e=a=>{{let T=_(()=>Se.codeReview_commentThread_dismiss_tooltip());xe(a,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,get onclick(){return P()},class:"shrink-0 text-slate-400 hover:text-slate-600 dark:text-slate-500 dark:hover:text-slate-300 transition-colors",get title(){return e(T)},children:(Z,ee)=>{fe(Z,{get icon(){return Dr}})},$$slots:{default:!0}})}};E(ie,a=>{P()&&a($e)})}s(C);var Ce=n(C,2);{var ye=a=>{var T=nn(),Z=o(T);xe(Z,{type:"button",variant:"ghost",onclick:()=>L(z,!e(z)),class:"w-full flex items-center justify-between px-4 py-2 text-sm text-slate-600 dark:text-slate-400 hover:bg-slate-50 dark:hover:bg-slate-800/50 transition-colors",children:(q,se)=>{var X=en(),c=be(X),p=O(c,!0),B=n(c,2);{let ue=_(()=>e(z)?ot:pt);fe(B,{get icon(){return e(ue)},class:"h-3 w-3"})}M(ue=>S(p,ue),[()=>Se.codeReview_commentThread_suggestedChanges_label()]),i(q,X)},$$slots:{default:!0}});var ee=n(Z,2);{var re=q=>{var se=rn();Ge(se,21,u,X=>X.id,(X,c)=>{var p=tn(),B=o(p),ue=o(B);{let g=_(()=>e(c).type==="user"?Gr:Or),N=_(()=>e(c).type==="user"?"text-blue-600 dark:text-blue-400":"text-purple-600 dark:text-purple-400");fe(ue,{get icon(){return e(g)},get class(){return`h-2.5 w-2.5 ${e(N)??""}`}})}s(B);var Re=n(B,2),t=o(Re),l=o(t);Mt(l,{get content(){return e(c).content},className:"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0"}),s(t),s(Re),s(p),M(()=>Ee(B,1,`shrink-0 flex h-5 w-5 items-center justify-center rounded-full ${e(c).type==="user"?"bg-blue-100 dark:bg-blue-900/50":"bg-purple-100 dark:bg-purple-900/50"}`)),De(3,p,()=>at,()=>({axis:"y",distance:4,tier:"moderate"})),i(X,p)}),s(se),De(3,se,()=>Oe,()=>({tier:"moderate"})),i(q,se)};E(ee,q=>{e(z)&&q(re)})}s(T),i(a,T)};E(Ce,a=>{e(he)&&a(ye)})}var U=n(Ce,2);{var j=a=>{var T=an(),Z=o(T);it(Z,{size:12});var ee=n(Z,2),re=O(ee,!0);s(T),M(q=>S(re,q),[()=>Se.codeReview_commentThread_agentResponding_label()]),i(a,T)};E(U,a=>{J()&&a(j)})}var f=n(U,2),D=o(f);{var F=a=>{var T=sn(),Z=be(T),ee=o(Z);{let c=_(()=>Se.codeReview_commentThread_followUp_placeholder());Vt(ee,{onkeydown:ae,get placeholder(){return e(c)},get disabled(){return h()},class:"flex-1 h-8 rounded-md border border-border bg-white dark:bg-slate-800 px-3 text-sm placeholder:text-slate-400 disabled:opacity-50",get ref(){return e(de)},set ref(p){L(de,p,!0)},get value(){return e(Q)},set value(p){L(Q,p,!0)}})}var re=n(ee,2);{let c=_(()=>!e(Q).trim()||h());xe(re,{type:"button",variant:"primary",onclick:ce,get disabled(){return e(c)},class:"h-8 w-8 p-0",children:(p,B)=>{var ue=Pt(),Re=be(ue);{var t=g=>{it(g,{size:14})},l=g=>{fe(g,{get icon(){return Tr},class:"h-3 w-3"})};E(Re,g=>{h()?g(t):g(l,-1)})}i(p,ue)},$$slots:{default:!0}})}var q=n(re,2);xe(q,{type:"button",variant:"ghost",onclick:()=>{L(w,!1),L(Q,"")},class:"h-8 px-2 text-xs text-slate-500 hover:text-slate-700 dark:text-slate-400 dark:hover:text-slate-200 transition-colors",children:(c,p)=>{st();var B=et();M(ue=>S(B,ue),[()=>Se.codeReview_commentThread_cancel_label()]),i(c,B)},$$slots:{default:!0}}),s(Z);var se=n(Z,2),X=O(se,!0);M(c=>S(X,c),[()=>Se.codeReview_commentThread_inputHint_label()]),De(3,Z,()=>Oe,()=>({tier:"fast"})),i(a,T)},le=a=>{xe(a,{type:"button",variant:"ghost",onclick:()=>L(w,!0),class:"flex items-center gap-1.5 text-xs text-emerald-600 dark:text-emerald-400 hover:text-emerald-700 dark:hover:text-emerald-300 transition-colors",children:(T,Z)=>{var ee=on(),re=be(ee);fe(re,{get icon(){return Wr},class:"h-3 w-3"});var q=n(re,2),se=O(q,!0);M(X=>S(se,X),[()=>Se.codeReview_commentThread_askQuestion_label()]),i(T,ee)},$$slots:{default:!0}})};E(D,a=>{e(w)?a(F):a(le,-1)})}return s(f),s(_e),M(()=>Ee(_e,1,`walkthrough-comment-thread relative flex w-full flex-col bg-white shadow-sm dark:bg-slate-900 ${pe()??""}`)),De(3,_e,()=>Oe,()=>({tier:"moderate"})),i($,_e),Qe(Ne)}var dn=x('<span class="text-emerald-600 dark:text-emerald-400 font-medium"> </span>'),cn=x('<!> <svg class="h-4 w-4 text-ghost shrink-0" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12zm2 0v12h6v-12H5.5z"></path></svg> <div class="flex items-baseline gap-2 flex-1 min-w-0"><span class="text-sm font-medium text-foreground truncate"> </span> <span class="text-xs text-subtle truncate hidden sm:inline"> </span></div> <div class="flex items-center gap-1 text-xs shrink-0"><!></div>',1),un=x('<div class="px-4 pb-3 -mt-1"><p class="text-sm text-subtle"> </p></div>'),vn=x('<div><div><span class="w-12 px-2 text-right text-ui text-subtle tabular-nums"> </span></div> <span> </span> <pre class="flex-1 px-1 whitespace-pre overflow-hidden text-ellipsis"><code class="hljs"></code></pre></div>'),gn=x('<div class="border-t border-border"><div class="font-mono text-xs leading-relaxed text-muted-foreground"><!> <!></div></div>'),fn=x('<span class="text-subtle">·</span> <!>',1),hn=x('<div class="flex items-center justify-end gap-2 px-3 py-1.5 bg-muted/20 border-b border-border text-xs"><!> <!></div>'),Gt=x("<!> <span> </span> <!>",1),mn=x('<div class="ml-20"><!></div>'),pn=x('<div class="ml-20 border-l-2 border-primary-ink/50 bg-muted/20"><div class="p-3"><!></div></div>'),_n=x('<div><div><span class="w-10 px-2 text-right text-ui text-subtle tabular-nums"> </span> <span class="w-10 px-2 text-right text-ui text-subtle tabular-nums"> </span></div> <span> </span> <div class="flex-1 flex items-center min-w-0 pr-2"><pre class="flex-1 px-1 whitespace-pre overflow-x-auto"><code class="hljs"></code></pre> <!></div></div> <!> <!> <!>',1),xn=x("<!> <!>",1),bn=x('<div class="relative"><!> <div class="overflow-x-auto"><div class="font-mono text-xs leading-relaxed min-w-full"></div></div></div>'),wn=x('<div><div class="flex flex-col border-b border-border"><!> <!></div> <!> <!></div>');function It($,r){if(new.target)return Ke({component:It,...$});Je(r,!0);let d=k(r,"fileName",7),m=k(r,"patch",7),b=k(r,"annotations",23,()=>[]),u=k(r,"initialCollapsed",7,!1),W=k(r,"contextLines",7,3),P=k(r,"onSendMessage",7),h=k(r,"isSending",7,!1),J=k(r,"additions",7,0),K=k(r,"deletions",7,0),pe=k(r,"fileDescription",7,""),Q=k(r,"class",7,"");const w=_(()=>Xr(m())),z=_(()=>Rr(d())),de=_(()=>{const t=new Map;return!e(z)||e(z)==="text"||e(z)==="plaintext"||!Bt.getLanguage(e(z))||e(w).forEach(l=>{const g=[];if(l.lines.forEach(N=>{const G=N.content||"",V=`${N.oldNum}-${N.newNum}`;g.push({content:G,key:V})}),g.length!==0)try{const N=g.map(ne=>ne.content).join(`
3
3
  `),V=Bt.highlight(N,{language:e(z)}).value.split(`
4
4
  `);g.forEach((ne,oe)=>{oe<V.length&&t.set(ne.key,V[oe])})}catch(N){console.warn("Failed to highlight hunk:",N)}}),t});let ce=we(mt(u())),ae=we(mt(new Set)),te=we(null);const ke=_(()=>{const t=new Map;for(const l of b()){const g=t.get(l.line)||[];g.push(l),t.set(l.line,g)}return t}),I=_(()=>new Set(b().map(t=>t.line)));function he(t){if(t.type==="deletion")return[];const l=t.newNum;return l==null?[]:e(ke).get(l)||[]}function Ne(t,l,g){if(g.type==="addition"||g.type==="deletion")return!0;const N=g.newNum??g.oldNum;if(N!==null&&e(I).has(N))return!0;const G=e(w)[t];if(!G)return!1;for(let V=Math.max(0,l-W());V<=Math.min(G.lines.length-1,l+W());V++){const ne=G.lines[V];if(ne.type==="addition"||ne.type==="deletion")return!0;const oe=ne.newNum??ne.oldNum;if(oe!==null&&e(I).has(oe))return!0}for(const V of e(ae)){const[ne,oe,ve]=V.split("-").map(Number);if(ne===t&&l>=oe&&l<=ve)return!0}return!1}function _e(t){const l=e(w)[t];if(!l)return[];const g=[];let N=null;for(let G=0;G<l.lines.length;G++){const V=Ne(t,G,l.lines[G]);!V&&N===null?N=G:V&&N!==null&&(g.push({startIndex:N,endIndex:G-1,count:G-N}),N=null)}return N!==null&&g.push({startIndex:N,endIndex:l.lines.length-1,count:l.lines.length-N}),g}function C(t,l,g){const N=`${t}-${l}-${g}`;e(ae).add(N),L(ae,new Set(e(ae)),!0)}function H(){for(let t=0;t<e(w).length;t++){const l=e(w)[t];C(t,0,l.lines.length-1)}}function Ie(){L(ae,new Set,!0)}function me(t){const l=`${t.oldNum}-${t.newNum}`,g=e(de).get(l);return g!==void 0?g:v(t.content||"")}function v(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function R(t){switch(t.type){case"addition":return"bg-emerald-500/5 dark:bg-emerald-500/10";case"deletion":return"bg-red-500/5 dark:bg-red-500/10";default:return""}}function A(t){switch(t.type){case"addition":return"text-emerald-600 dark:text-emerald-400 font-medium";case"deletion":return"text-red-600 dark:text-red-400 font-medium";default:return"text-transparent"}}function Y(t){switch(t.type){case"addition":return"+";case"deletion":return"-";default:return" "}}function ie(t){switch(t.type){case"addition":return"bg-emerald-500/10 dark:bg-emerald-500/15";case"deletion":return"bg-red-500/10 dark:bg-red-500/15";default:return"bg-muted/30"}}function $e(){L(ce,!e(ce))}function Ce(t){L(te,t,!0)}function ye(){L(te,null)}function U(t,l,g){P()?.(t,l,g),L(te,null)}const j=_(()=>()=>{const t=d().split("/");return t[t.length-1]}),f=_(()=>()=>{const t=d().split("/");return t.length<=1?"":t.slice(0,-1).join("/")}),D=_(()=>{for(let t=0;t<e(w).length;t++)if(_e(t).length>0)return!0;return!1}),F=_(()=>{const l=[];for(let g=0;g<e(w).length&&l.length<3;g++){const N=e(w)[g];for(let G=0;G<N.lines.length&&l.length<3;G++){const V=N.lines[G];(V.type==="addition"||V.type==="deletion")&&l.push({line:V,hunkIndex:g,lineIndex:G})}}return l}),le=_(()=>{let t=0;for(const l of e(w))for(const g of l.lines)(g.type==="addition"||g.type==="deletion")&&t++;return t});let a=we(mt(new Map));function T(t){return`${t.file}:${t.line}:${t.type}`}function Z(t){return e(a).get(T(t))||[]}var ee={get fileName(){return d()},set fileName(t){d(t),y()},get patch(){return m()},set patch(t){m(t),y()},get annotations(){return b()},set annotations(t=[]){b(t),y()},get initialCollapsed(){return u()},set initialCollapsed(t=!1){u(t),y()},get contextLines(){return W()},set contextLines(t=3){W(t),y()},get onSendMessage(){return P()},set onSendMessage(t){P(t),y()},get isSending(){return h()},set isSending(t=!1){h(t),y()},get additions(){return J()},set additions(t=0){J(t),y()},get deletions(){return K()},set deletions(t=0){K(t),y()},get fileDescription(){return pe()},set fileDescription(t=""){pe(t),y()},get class(){return Q()},set class(t=""){Q(t),y()},$set:Ue,$on:(t,l)=>Ve(r,t,l)},re=wn(),q=o(re),se=o(q);xe(se,{type:"button",variant:"ghost",class:"w-full flex items-center gap-2 px-4 py-3 hover:bg-muted/30 transition-colors text-left group",onclick:$e,children:(t,l)=>{var g=cn(),N=be(g);{let Le=_(()=>e(ce)?pt:ot);fe(N,{get icon(){return e(Le)},class:"h-3 w-3 text-ghost shrink-0"})}var G=n(N,4),V=o(G),ne=O(V,!0),oe=n(V,2),ve=O(oe,!0);s(G);var Me=n(G,2),Ae=o(Me);{var Te=Le=>{var He=dn(),Fe=O(He);M(()=>S(Fe,`+${J()+K()}`)),i(Le,He)};E(Ae,Le=>{(J()>0||K()>0)&&Le(Te)})}s(Me),M((Le,He)=>{S(ne,Le),S(ve,He)},[()=>e(j)(),()=>e(f)()]),i(t,g)},$$slots:{default:!0}});var X=n(se,2);{var c=t=>{var l=un(),g=o(l),N=O(g,!0);s(l),M(()=>S(N,pe())),i(t,l)};E(X,t=>{pe()&&t(c)})}s(q);var p=n(q,2);{var B=t=>{var l=gn(),g=o(l),N=o(g);Ge(N,17,()=>e(F),({line:ne,hunkIndex:oe,lineIndex:ve})=>`preview-${oe}-${ve}`,(ne,oe)=>{let ve=()=>e(oe).line;var Me=vn(),Ae=o(Me),Te=o(Ae),Le=O(Te,!0);s(Ae);var He=n(Ae,2),Fe=O(He,!0),We=n(He,2),ge=o(We);Ft(ge,()=>me(ve()),!0),s(ge),s(We),s(Me),M((qe,Xe,Ye,tt)=>{Ee(Me,1,`flex ${qe??""}`),Ee(Ae,1,`w-12 shrink-0 flex select-none ${Xe??""} border-r border-border`),S(Le,ve().newNum??ve().oldNum??""),Ee(He,1,`w-5 shrink-0 text-center select-none ${Ye??""}`),S(Fe,tt)},[()=>R(ve()),()=>ie(ve()),()=>A(ve()),()=>Y(ve())]),i(ne,Me)});var G=n(N,2);{var V=ne=>{xe(ne,{type:"button",variant:"ghost",class:"w-full py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors text-center",onclick:$e,children:(oe,ve)=>{st();var Me=et();M(Ae=>S(Me,Ae),[()=>Se.codeReview_fileDiff_moreLines_label({count:e(le)-e(F).length})]),i(oe,Me)},$$slots:{default:!0}})};E(G,ne=>{e(le)>e(F).length&&ne(V)})}s(g),s(l),De(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};E(p,t=>{e(ce)&&e(F).length>0&&t(B)})}var ue=n(p,2);{var Re=t=>{var l=bn(),g=o(l);{var N=ne=>{var oe=hn(),ve=o(oe);xe(ve,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:H,children:(Te,Le)=>{st();var He=et();M(Fe=>S(He,Fe),[()=>Se.codeReview_fileDiff_expandAll_label()]),i(Te,He)},$$slots:{default:!0}});var Me=n(ve,2);{var Ae=Te=>{var Le=fn(),He=n(be(Le),2);xe(He,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:Ie,children:(Fe,We)=>{st();var ge=et();M(qe=>S(ge,qe),[()=>Se.codeReview_fileDiff_collapse_label()]),i(Fe,ge)},$$slots:{default:!0}}),i(Te,Le)};E(Me,Te=>{e(ae).size>0&&Te(Ae)})}s(oe),i(ne,oe)};E(g,ne=>{e(D)&&ne(N)})}var G=n(g,2),V=o(G);Ge(V,21,()=>e(w),Lt,(ne,oe,ve)=>{const Me=_(()=>_e(ve)),Ae=_(()=>e(Me).find(We=>We.startIndex===0));var Te=xn(),Le=be(Te);{var He=We=>{xe(We,{type:"button",variant:"ghost",class:"w-full flex items-center justify-center gap-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors border-b border-border",onclick:()=>C(ve,e(Ae).startIndex,e(Ae).endIndex),children:(ge,qe)=>{var Xe=Gt(),Ye=be(Xe);fe(Ye,{get icon(){return ot},class:"h-2.5 w-2.5"});var tt=n(Ye,2),xt=O(tt,!0),rt=n(tt,2);fe(rt,{get icon(){return ot},class:"h-2.5 w-2.5"}),M(ut=>S(xt,ut),[()=>Se.codeReview_fileDiff_showHidden_label({count:e(Ae).count})]),i(ge,Xe)},$$slots:{default:!0}})};E(Le,We=>{e(Ae)&&We(He)})}var Fe=n(Le,2);Ge(Fe,19,()=>e(oe).lines,(We,ge)=>`${ve}-${ge}`,(We,ge,qe)=>{const Xe=_(()=>`${e(ge).oldNum}-${e(ge).newNum}`),Ye=_(()=>he(e(ge))),tt=_(()=>e(te)===e(Xe)),xt=_(()=>Ne(ve,e(qe),e(ge))),rt=_(()=>e(Me).find(lt=>lt.startIndex===e(qe)+1));var ut=Pt(),er=be(ut);{var tr=lt=>{var At=_n(),vt=be(At),gt=o(vt),Ht=o(gt),rr=O(Ht,!0),nr=n(Ht,2),ar=O(nr,!0);s(gt);var bt=n(gt,2),sr=O(bt,!0),Et=n(bt,2),wt=o(Et),zt=o(wt);Ft(zt,()=>me(e(ge)),!0),s(zt),s(wt);var or=n(wt,2);{var ir=Pe=>{{let ze=_(()=>Se.codeReview_fileDiff_askLine_tooltip());xe(Pe,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,class:"size-5 opacity-0 group-hover:opacity-100 text-muted-foreground hover:text-primary-ink transition-all shrink-0",onclick:()=>Ce(e(Xe)),get title(){return e(ze)},children:(je,Be)=>{fe(je,{get icon(){return Ct}})},$$slots:{default:!0}})}};E(or,Pe=>{P()&&Pe(ir)})}s(Et),s(vt);var Dt=n(vt,2);Ge(Dt,19,()=>e(Ye),(Pe,ze)=>`${Pe.line}-${ze}`,(Pe,ze)=>{var je=mn(),Be=o(je);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0),ft=_(()=>Z(e(ze)));Qt(Be,{get annotation(){return e(ze)},get lineNumber(){return e(nt)},get fileName(){return d()},get messages(){return e(ft)},onSendMessage:(kt,yt,$t)=>U(kt,yt,$t),get isSending(){return h()}})}s(je),De(3,je,()=>Oe,()=>({tier:"moderate"})),i(Pe,je)});var Tt=n(Dt,2);{var lr=Pe=>{var ze=pn(),je=o(ze),Be=o(je);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0);Jt(Be,{get lineNumber(){return e(nt)},get fileName(){return d()},onSend:U,onClose:ye,get isSending(){return h()}})}s(je),s(ze),i(Pe,ze)};E(Tt,Pe=>{e(tt)&&e(Ye).length===0&&Pe(lr)})}var dr=n(Tt,2);{var cr=Pe=>{xe(Pe,{type:"button",variant:"ghost",class:"w-full flex items-center justify-center gap-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors border-y border-border bg-muted/10",onclick:()=>C(ve,e(rt).startIndex,e(rt).endIndex),children:(ze,je)=>{var Be=Gt(),nt=be(Be);fe(nt,{get icon(){return Ct},class:"h-2.5 w-2.5"});var ft=n(nt,2),kt=O(ft,!0),yt=n(ft,2);fe(yt,{get icon(){return Ct},class:"h-2.5 w-2.5"}),M($t=>S(kt,$t),[()=>Se.codeReview_fileDiff_showHidden_label({count:e(rt).count})]),i(ze,Be)},$$slots:{default:!0}})};E(dr,Pe=>{e(rt)&&Pe(cr)})}M((Pe,ze,je,Be)=>{Ee(vt,1,`group flex ${Pe??""} hover:bg-accent/30 transition-colors`),Ee(gt,1,`w-20 shrink-0 flex select-none ${ze??""} border-r border-border`),S(rr,e(ge).oldNum??""),S(ar,e(ge).newNum??""),Ee(bt,1,`w-5 shrink-0 text-center select-none ${je??""}`),S(sr,Be)},[()=>R(e(ge)),()=>ie(e(ge)),()=>A(e(ge)),()=>Y(e(ge))]),i(lt,At)};E(er,lt=>{e(xt)&&lt(tr)})}i(We,ut)}),i(ne,Te)}),s(V),s(G),s(l),De(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};E(ue,t=>{e(ce)||t(Re)})}return s(re),M(()=>Ee(re,1,`walkthrough-file-diff overflow-hidden bg-card ${Q()??""}`)),i($,re),Qe(ee)}var kn=x('<div class="flex items-start gap-3"><div class="shrink-0 mt-0.5"><svg viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M2 6a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1H8a3 3 0 00-3 3v1.5a1.5 1.5 0 01-3 0V6z" clip-rule="evenodd"></path><path d="M6 12a2 2 0 012-2h8a2 2 0 012 2v2a2 2 0 01-2 2H2h2a2 2 0 002-2v-2z"></path></svg></div> <div class="flex-1 min-w-0"><h4 class="text-sm font-medium text-foreground line-clamp-2"> </h4> <p class="text-xs text-subtle mt-1 line-clamp-2"> </p> <div class="flex items-center gap-1 mt-2 text-xs text-subtle"><svg class="h-3.5 w-3.5" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12z"></path></svg> <span> </span></div></div></div>'),yn=x('<div><div class="mb-4"><h3 class="text-sm font-medium text-subtle"> </h3></div> <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3"></div></div>');function qt($,r){if(new.target)return Ke({component:qt,...$});Je(r,!0);let d=k(r,"categories",7),m=k(r,"onCategoryClick",7),b=k(r,"class",7,"");function u(w){const z=["bg-blue-500/10 border-blue-500/30 hover:border-blue-500/50","bg-purple-500/10 border-purple-500/30 hover:border-purple-500/50","bg-emerald-500/10 border-emerald-500/30 hover:border-emerald-500/50","bg-warning/10 border-warning/30 hover:border-warning/30","bg-rose-500/10 border-rose-500/30 hover:border-rose-500/50","bg-cyan-500/10 border-cyan-500/30 hover:border-cyan-500/50"];return z[w%z.length]}function W(w){const z=["text-blue-500","text-purple-500","text-emerald-500","text-warning-ink","text-rose-500","text-cyan-500"];return z[w%z.length]}var P={get categories(){return d()},set categories(w){d(w),y()},get onCategoryClick(){return m()},set onCategoryClick(w){m(w),y()},get class(){return b()},set class(w=""){b(w),y()},$set:Ue,$on:(w,z)=>Ve(r,w,z)},h=yn(),J=o(h),K=o(J),pe=O(K,!0);s(J);var Q=n(J,2);return Ge(Q,21,d,Lt,(w,z,de)=>{{let ce=_(()=>u(de));xe(w,{type:"button",variant:"ghost",get class(){return`text-left p-4 rounded-lg border transition-all duration-spring-moderate ease-spring-moderate motion-reduce:transition-none ${e(ce)??""}`},onclick:()=>m()?.(de),children:(ae,te)=>{var ke=kn(),I=o(ke),he=O(I),Ne=n(I,2),_e=o(Ne),C=O(_e,!0),H=n(_e,2),Ie=O(H,!0),me=n(H,2),v=n(o(me),2),R=O(v,!0);s(me),s(Ne),s(ke),M((A,Y)=>{Ee(he,0,`h-5 w-5 ${A??""}`),S(C,e(z).title),S(Ie,e(z).description),S(R,Y)},[()=>W(de),()=>e(z).files.length===1?Se.codeReview_categoriesGrid_fileCount_one({count:e(z).files.length}):Se.codeReview_categoriesGrid_fileCount_many({count:e(z).files.length})]),i(ae,ke)},$$slots:{default:!0}})}}),s(Q),s(h),M(w=>{Ee(h,1,`walkthrough-categories-grid ${b()??""}`),S(pe,w)},[()=>Se.codeReview_categoriesGrid_whatChanged_title()]),i($,h),Qe(P)}var $n=x('<div class="w-0.5 flex-1 bg-border min-h-5"></div>'),Cn=x('<p class="text-sm text-subtle mt-2"> </p>'),Sn=x('<div class="rounded-lg border border-border bg-card p-4"><div class="flex items-center gap-2"><svg class="h-4 w-4 text-ghost" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12z"></path></svg> <span class="text-sm font-medium text-foreground"> </span></div> <!></div>'),Nn=x('<div class="flex gap-4"><div class="relative flex flex-col items-center w-3"><div></div> <div class="absolute top-4 w-2 h-2 rounded-full bg-muted-foreground/30 ring-2 ring-background"></div></div> <div class="flex-1 min-w-0 pb-4"><!></div></div>'),Rn=x('<div><div class="flex items-start gap-4 mb-4"><div class="relative flex flex-col items-center"><div></div> <!></div> <div class="flex-1 min-w-0 -mt-0.5"><h3 class="text-base font-semibold text-foreground"> </h3> <p class="text-sm text-subtle mt-1"> </p></div></div> <div class="relative"></div></div>');function Xt($,r){if(new.target)return Ke({component:Xt,...$});Je(r,!0);let d=k(r,"category",7),m=k(r,"categoryIndex",7),b=k(r,"filePatchMap",7),u=k(r,"isLast",7,!1),W=k(r,"onSendMessage",7),P=k(r,"isSending",7,!1),h=k(r,"class",7,"");function J(C){const H=["bg-blue-500","bg-purple-500","bg-emerald-500","bg-warning","bg-rose-500","bg-cyan-500"];return H[C%H.length]}const K=_(()=>d().files.map(C=>{const H=b().get(C.path);return{...C,patch:H?.patch,additions:H?.additions??0,deletions:H?.deletions??0}}));var pe={get category(){return d()},set category(C){d(C),y()},get categoryIndex(){return m()},set categoryIndex(C){m(C),y()},get filePatchMap(){return b()},set filePatchMap(C){b(C),y()},get isLast(){return u()},set isLast(C=!1){u(C),y()},get onSendMessage(){return W()},set onSendMessage(C){W(C),y()},get isSending(){return P()},set isSending(C=!1){P(C),y()},get class(){return h()},set class(C=""){h(C),y()},$set:Ue,$on:(C,H)=>Ve(r,C,H)},Q=Rn(),w=o(Q),z=o(w),de=o(z),ce=n(de,2);{var ae=C=>{var H=$n();i(C,H)};E(ce,C=>{(!u()||e(K).length>0)&&C(ae)})}s(z);var te=n(z,2),ke=o(te),I=O(ke,!0),he=n(ke,2),Ne=O(he,!0);s(te),s(w);var _e=n(w,2);return Ge(_e,23,()=>e(K),(C,H)=>`${m()}-${H}`,(C,H,Ie)=>{var me=Nn(),v=o(me),R=o(v);st(2),s(v);var A=n(v,2),Y=o(A);{var ie=Ce=>{It(Ce,{get fileName(){return e(H).path},get patch(){return e(H).patch},get annotations(){return e(H).annotations},get additions(){return e(H).additions},get deletions(){return e(H).deletions},get fileDescription(){return e(H).summary},get onSendMessage(){return W()},get isSending(){return P()},class:"rounded-lg border border-border overflow-hidden"})},$e=Ce=>{var ye=Sn(),U=o(ye),j=n(o(U),2),f=O(j,!0);s(U);var D=n(U,2);{var F=le=>{var a=Cn(),T=O(a,!0);M(()=>S(T,e(H).summary)),i(le,a)};E(D,le=>{e(H).summary&&le(F)})}s(ye),M(()=>S(f,e(H).path)),i(Ce,ye)};E(Y,Ce=>{e(H).patch?Ce(ie):Ce($e,-1)})}s(A),s(me),M(()=>Ee(R,1,`w-0.5 flex-1 bg-border ${e(Ie)===e(K).length-1&&u()?"h-1/2":""}`)),i(C,me)}),s(_e),s(Q),M(C=>{Ee(Q,1,`walkthrough-category-section ${h()??""}`),Er(Q,"id",`category-${m()??""}`),Ee(de,1,`w-3 h-3 rounded-full ${C??""} ring-4 ring-background shrink-0`),S(I,d().title),S(Ne,d().description)},[()=>J(m())]),i($,Q),Qe(pe)}var Mn=x('<!> <!> <span class="text-sm font-medium"> </span> <!>',1),Pn=x('<div class="flex items-center gap-2 text-sm text-subtle py-2"><!> <span> </span></div>'),Ot=x("<!> ",1),Ln=x('<div class="rounded-lg bg-danger-background/10 border border-danger/20 p-4"><p class="text-sm text-danger"> </p> <!></div>'),In=x('<h2 class="text-lg font-semibold text-foreground"> </h2>'),An=x('<p class="text-sm text-subtle italic"> </p>'),Kt=x("<div><!></div>"),Hn=x('<div class="space-y-8 pt-4"></div>'),En=x('<!> <!> <span class="text-sm font-medium text-subtle"> </span>',1),zn=x('<div class="space-y-3 pt-2"></div>'),Dn=x('<div class="pt-4 border-t border-border"><!> <!></div>'),Tn=x('<div class="flex justify-end pt-2"><!></div>'),Wn=x('<div class="space-y-6"><!> <!> <!> <!> <!> <!></div>'),jn=x('<div class="px-4 pb-4"><!> <!> <!></div>'),Fn=x('<div class="border-t border-border"><!> <!></div>');function Yt($,r){if(new.target)return Ke({component:Yt,...$});Je(r,!0);let d=k(r,"walkthrough",7),m=k(r,"status",7),b=k(r,"workspaceId",7),u=k(r,"error",7,""),W=k(r,"workspacePath",7),P=k(r,"changes",23,()=>[]),h=k(r,"onSendMessage",7),J=k(r,"isSending",7,!1),K=k(r,"onRegenerate",7),pe=k(r,"showCategoriesGrid",7,!0);const Q=_(()=>m()==="running"),w=_(()=>m()==="complete"),z=_(()=>!!u());let de=we(!0),ce=we(!1),ae=we(mt(new Map));const te=_(()=>{if(d()?.categories&&d().categories.length>0)return d().categories;if(d()?.annotations&&d().annotations.length>0){const v=new Map;for(const R of d().annotations){const A=v.get(R.file)||[];A.push(R),v.set(R.file,A)}return[{title:d().title,description:d().overview,files:Array.from(v.entries()).map(([R,A])=>({path:R,annotations:A.sort((Y,ie)=>Y.line-ie.line)}))}]}return[]}),ke=_(()=>{if(!d()?.annotations)return new Map;const v=new Map;for(const R of d().annotations){const A=v.get(R.file)||[];A.push(R),v.set(R.file,A)}for(const[R,A]of v)v.set(R,A.sort((Y,ie)=>Y.line-ie.line));return v}),I=_(()=>{const v=new Set;for(const R of e(te))for(const A of R.files)v.add(A.path);for(const R of e(ke).keys())v.add(R);return v}),he=_(()=>P().filter(v=>!e(I).has(v.relativePath)));Ze(()=>{if(!d()||!W())return;const v=new Set([...e(I),...e(he).map(R=>R.relativePath)]);for(const R of v)e(ae).has(R)||Jr(b(),!0,R).then(A=>{if(A&&A.oldContent!==void 0&&A.newContent!==void 0){const Y=Ne(R,A.oldContent,A.newContent);if(Y){const ie=P().find($e=>$e.relativePath===R);e(ae).set(R,{patch:Y,additions:ie?.stats?.additions??0,deletions:ie?.stats?.deletions??0}),L(ae,new Map(e(ae)),!0)}}}).catch(A=>{console.warn(`Failed to load diff for ${R}:`,A)})});function Ne(v,R,A){const Y=R.split(`