@intent-hq/web 2.286.0 → 2.286.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 (202) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{CDJ_ELzg.js → -4iKCYSl.js} +1 -1
  3. package/web/app/immutable/chunks/{Chf_Fl2B.js → 172GvQgx.js} +2 -2
  4. package/web/app/immutable/chunks/{D6COgTM-.js → 2FstYM1s.js} +1 -1
  5. package/web/app/immutable/chunks/{3Z97DIlM.js → 2LPpSBFe.js} +1 -1
  6. package/web/app/immutable/chunks/{Cs20ySp7.js → 2oaDc1nn.js} +1 -1
  7. package/web/app/immutable/chunks/{Dyliunfi.js → 3q61Z6zu.js} +1 -1
  8. package/web/app/immutable/chunks/{BQ3bMc6Z.js → 3sa2ZSPC.js} +1 -1
  9. package/web/app/immutable/chunks/{ntY1kBD_.js → 4LCvEsVS.js} +1 -1
  10. package/web/app/immutable/chunks/{C-mk0nP2.js → 9JjZRepm.js} +1 -1
  11. package/web/app/immutable/chunks/{B6gQoWXg.js → ALbX902-.js} +1 -1
  12. package/web/app/immutable/chunks/{DrSSXu2F.js → B-34RgWF.js} +1 -1
  13. package/web/app/immutable/chunks/{D_dLrI0U.js → B-jWalbO.js} +1 -1
  14. package/web/app/immutable/chunks/{DVTHNszZ.js → B0jdpkVd.js} +1 -1
  15. package/web/app/immutable/chunks/{Bn3u1qCw.js → B1kJVNhf.js} +1 -1
  16. package/web/app/immutable/chunks/{DkqK0dDf.js → B2SAFlE_.js} +1 -1
  17. package/web/app/immutable/chunks/{56xQ7UwB.js → B5NXv3LV.js} +5 -5
  18. package/web/app/immutable/chunks/{DzBZYbxf.js → B5OVBjIf.js} +1 -1
  19. package/web/app/immutable/chunks/{Ri4koGu7.js → B5VfU0KM.js} +1 -1
  20. package/web/app/immutable/chunks/{GLnb0LyE.js → B5WfnJ_I.js} +1 -1
  21. package/web/app/immutable/chunks/{DAr_Dvla.js → B78OjmQ3.js} +1 -1
  22. package/web/app/immutable/chunks/{B0cCp_Aa.js → B8N5zbP-.js} +1 -1
  23. package/web/app/immutable/chunks/{DiC8oKjq.js → BAEKjYyz.js} +1 -1
  24. package/web/app/immutable/chunks/{Bs4HUfJo.js → BB0aq9c_.js} +1 -1
  25. package/web/app/immutable/chunks/{D-pCMoMn.js → BCYRUItZ.js} +4 -4
  26. package/web/app/immutable/chunks/{C9qFBNQj.js → BCiyShif.js} +1 -1
  27. package/web/app/immutable/chunks/{DUzPnyGA.js → BDFJ3z4C.js} +1 -1
  28. package/web/app/immutable/chunks/{CjxObJZi.js → BGgB8Pc0.js} +2 -2
  29. package/web/app/immutable/chunks/{C9AXCraB.js → BHwB2t2J.js} +6 -6
  30. package/web/app/immutable/chunks/{BeMvzl_f.js → BIGmpOjZ.js} +1 -1
  31. package/web/app/immutable/chunks/{CdFYk_1W.js → BIY56SBV.js} +1 -1
  32. package/web/app/immutable/chunks/{BJHEhKgU.js → BKAT2tIv.js} +1 -1
  33. package/web/app/immutable/chunks/{B2TUPPiF.js → BOFk1KrL.js} +1 -1
  34. package/web/app/immutable/chunks/{DI0TMqPc.js → BR5lR6Td.js} +1 -1
  35. package/web/app/immutable/chunks/{B8dBdB7e.js → BTRxaITj.js} +1 -1
  36. package/web/app/immutable/chunks/{C0G0PX0u.js → BUqUwu2G.js} +1 -1
  37. package/web/app/immutable/chunks/{B7DCx2hz.js → BY3DTY8F.js} +1 -1
  38. package/web/app/immutable/chunks/BZXl3la6.js +1 -0
  39. package/web/app/immutable/chunks/{BFsOXNGt.js → B_IE7AMR.js} +1 -1
  40. package/web/app/immutable/chunks/{BGjb8Qjk.js → B_Ngo80M.js} +1 -1
  41. package/web/app/immutable/chunks/{DvxGhfNP.js → BaWkgFPr.js} +1 -1
  42. package/web/app/immutable/chunks/{PZFTHLU3.js → BbANJKYX.js} +1 -1
  43. package/web/app/immutable/chunks/{C02RZikS.js → BdMP-rwq.js} +1 -1
  44. package/web/app/immutable/chunks/{DBF6GPx0.js → BdvBYYZC.js} +1 -1
  45. package/web/app/immutable/chunks/{CIm4PPkq.js → Bg8XhRuy.js} +1 -1
  46. package/web/app/immutable/chunks/{D6KefGE1.js → BgX6IJDk.js} +1 -1
  47. package/web/app/immutable/chunks/{lewsHE8q.js → BhBL2il-.js} +1 -1
  48. package/web/app/immutable/chunks/{BNC8-4cK.js → BhIrT2jr.js} +2 -2
  49. package/web/app/immutable/chunks/{BQjY0tdo.js → BkBZtLYF.js} +1 -1
  50. package/web/app/immutable/chunks/{k7Ld4LMq.js → Bluyq349.js} +1 -1
  51. package/web/app/immutable/chunks/{DY68UZFm.js → BmnDHgDT.js} +1 -1
  52. package/web/app/immutable/chunks/{xVOajdtP.js → Bn4hj7HG.js} +1 -1
  53. package/web/app/immutable/chunks/{BCUnwbyv.js → BnDVzHAF.js} +1 -1
  54. package/web/app/immutable/chunks/{DmBGSw9-.js → BsKoK3Rk.js} +1 -1
  55. package/web/app/immutable/chunks/{CvV52h5m.js → BsNGkCax.js} +1 -1
  56. package/web/app/immutable/chunks/{Bicndtmn.js → BwixslcF.js} +1 -1
  57. package/web/app/immutable/chunks/{DaZZAAu8.js → BwqCA_Tg.js} +1 -1
  58. package/web/app/immutable/chunks/{B_6wEGEf.js → BxKmCVSh.js} +1 -1
  59. package/web/app/immutable/chunks/{CJmb8k0H.js → Bxc57npw.js} +1 -1
  60. package/web/app/immutable/chunks/{CaHgiqe9.js → Bz08MgGK.js} +1 -1
  61. package/web/app/immutable/chunks/{CSJZS0lA.js → C4Zcz5ig.js} +1 -1
  62. package/web/app/immutable/chunks/{B7DKu6qV.js → C4lY6YLh.js} +1 -1
  63. package/web/app/immutable/chunks/{kpFOTYnh.js → C5E1PJb6.js} +2 -2
  64. package/web/app/immutable/chunks/{COt9Pvf4.js → C5RdKv5y.js} +1 -1
  65. package/web/app/immutable/chunks/{Co0ihRW6.js → C68FzyYL.js} +1 -1
  66. package/web/app/immutable/chunks/{_rq_6KIb.js → C6RQmr0V.js} +1 -1
  67. package/web/app/immutable/chunks/{CmGMJu5O.js → C9129WmZ.js} +1 -1
  68. package/web/app/immutable/chunks/{l-Mx-Ot5.js → C9g8CU4z.js} +1 -1
  69. package/web/app/immutable/chunks/{Dlo6-weE.js → CC-oK8xP.js} +2 -2
  70. package/web/app/immutable/chunks/{TQpilk5Q.js → CDuyWy4D.js} +1 -1
  71. package/web/app/immutable/chunks/{mi0eelXX.js → CEiokx4X.js} +1 -1
  72. package/web/app/immutable/chunks/{BiD1HX8_.js → CG-WEY6g.js} +1 -1
  73. package/web/app/immutable/chunks/{CoiRuxwo.js → CJKeXT5H.js} +1 -1
  74. package/web/app/immutable/chunks/{CdI01xQ-.js → CJPP3n_b.js} +1 -1
  75. package/web/app/immutable/chunks/{CtkAP08J.js → CJlBFmXK.js} +1 -1
  76. package/web/app/immutable/chunks/{BkLUmk09.js → CM-RTisq.js} +1 -1
  77. package/web/app/immutable/chunks/{DAbHF0T4.js → CMieQf0P.js} +1 -1
  78. package/web/app/immutable/chunks/{BJLvjFp2.js → CN1yc9sw.js} +1 -1
  79. package/web/app/immutable/chunks/{DYsBpJwe.js → CN6UuCI4.js} +6 -6
  80. package/web/app/immutable/chunks/{C1cHuYQR.js → CNG6DDdt.js} +1 -1
  81. package/web/app/immutable/chunks/{C0pxlxBi.js → CQ8xUw8b.js} +1 -1
  82. package/web/app/immutable/chunks/{XM04eAeD.js → CQlclm_i.js} +1 -1
  83. package/web/app/immutable/chunks/{BMdDrmtC.js → CU9uaZDq.js} +1 -1
  84. package/web/app/immutable/chunks/{C-WAMDJQ.js → CaJjlkv1.js} +1 -1
  85. package/web/app/immutable/chunks/{5CUEdg-r.js → CbQJkQ1_.js} +1 -1
  86. package/web/app/immutable/chunks/{DbIMjJXa.js → Cbe4LDCb.js} +1 -1
  87. package/web/app/immutable/chunks/{BGZJQhsJ.js → Cc8gV_FE.js} +1 -1
  88. package/web/app/immutable/chunks/{D_cySYsU.js → CcDZ8sih.js} +4 -4
  89. package/web/app/immutable/chunks/{d89Xcl43.js → CcFGFqFC.js} +1 -1
  90. package/web/app/immutable/chunks/{dbkedfAT.js → CdEtW7wp.js} +1 -1
  91. package/web/app/immutable/chunks/{BcTp6STH.js → Cdv2uRTZ.js} +1 -1
  92. package/web/app/immutable/chunks/{D2B7k8JK.js → CeHlFtmN.js} +1 -1
  93. package/web/app/immutable/chunks/{C8ErG3Ti.js → Cf1Jz9Vb.js} +1 -1
  94. package/web/app/immutable/chunks/{BVS_SYYU.js → CfHaLL96.js} +1 -1
  95. package/web/app/immutable/chunks/{DruGfJeI.js → Cg71xtru.js} +1 -1
  96. package/web/app/immutable/chunks/{BG0oLquu.js → CgOfeXf8.js} +1 -1
  97. package/web/app/immutable/chunks/{ISHdJQIS.js → ChMhvUux.js} +1 -1
  98. package/web/app/immutable/chunks/{gJj2ll-C.js → ChOA9PWi.js} +1 -1
  99. package/web/app/immutable/chunks/{BNK82DII.js → Cic3Ymv4.js} +2 -2
  100. package/web/app/immutable/chunks/{CCFQ-Alr.js → CjOA3fQ_.js} +1 -1
  101. package/web/app/immutable/chunks/{B8m1QbYL.js → CjOWZNUy.js} +1 -1
  102. package/web/app/immutable/chunks/{dYWp2umn.js → CnT2T-Bp.js} +4 -4
  103. package/web/app/immutable/chunks/{B0SI3LHQ.js → CqwbuddS.js} +1 -1
  104. package/web/app/immutable/chunks/{OXZoGb0R.js → Ct7iVnk5.js} +2 -2
  105. package/web/app/immutable/chunks/{CVj2l_--.js → CusMGTEg.js} +1 -1
  106. package/web/app/immutable/chunks/{DfJuueNN.js → Cv6pFp-w.js} +1 -1
  107. package/web/app/immutable/chunks/{DnOJJY51.js → CzK2fiHA.js} +1 -1
  108. package/web/app/immutable/chunks/{BPTrqAAS.js → D4uZwrDX.js} +1 -1
  109. package/web/app/immutable/chunks/{DCH75OV4.js → D61mreVc.js} +1 -1
  110. package/web/app/immutable/chunks/{CcUy0MZb.js → D6eVIgjz.js} +1 -1
  111. package/web/app/immutable/chunks/{nueT549f.js → D7y4iPD0.js} +1 -1
  112. package/web/app/immutable/chunks/{CB3GX1yA.js → D9qYrFLr.js} +1 -1
  113. package/web/app/immutable/chunks/{DEdfIv3e.js → DAPK9slU.js} +1 -1
  114. package/web/app/immutable/chunks/{DwQIcgBv.js → DES0UXLU.js} +1 -1
  115. package/web/app/immutable/chunks/{Bzkdeh8y.js → DGWxO_aL.js} +1 -1
  116. package/web/app/immutable/chunks/{HlPO1bnj.js → DHLYr2dR.js} +1 -1
  117. package/web/app/immutable/chunks/{De1JVdD9.js → DJeS0Z6Z.js} +1 -1
  118. package/web/app/immutable/chunks/{C8rZ--zU.js → DKnyYiOE.js} +1 -1
  119. package/web/app/immutable/chunks/{uw1PkdUT.js → DLOFCVO4.js} +1 -1
  120. package/web/app/immutable/chunks/{DhGf56sV.js → DM4MRAyE.js} +1 -1
  121. package/web/app/immutable/chunks/{Div3O1DS.js → DNOilvOO.js} +1 -1
  122. package/web/app/immutable/chunks/{DjctxIWk.js → DQprfQGN.js} +1 -1
  123. package/web/app/immutable/chunks/{Dr_LoEnL.js → DU5u4CoB.js} +7 -7
  124. package/web/app/immutable/chunks/{7af0JAJg.js → DWvbS4mu.js} +1 -1
  125. package/web/app/immutable/chunks/{DJkPn6Gx.js → DZ2EweHv.js} +1 -1
  126. package/web/app/immutable/chunks/{CkrCogn1.js → DcOGngFl.js} +1 -1
  127. package/web/app/immutable/chunks/{DSQ3vRlg.js → DdZVLxLI.js} +1 -1
  128. package/web/app/immutable/chunks/{Mzah6e0Y.js → De60mY1u.js} +1 -1
  129. package/web/app/immutable/chunks/{Buurk15r.js → DeD2_APR.js} +1 -1
  130. package/web/app/immutable/chunks/{GpCuPOMi.js → DeMWATch.js} +1 -1
  131. package/web/app/immutable/chunks/{BTNf3wFt.js → Dh52so4o.js} +3 -3
  132. package/web/app/immutable/chunks/{DXB5HblX.js → DiBTM3GP.js} +1 -1
  133. package/web/app/immutable/chunks/{D5JRqy6x.js → Dj9OdxPP.js} +1 -1
  134. package/web/app/immutable/chunks/{NDbFoi5z.js → DoIwXvY5.js} +1 -1
  135. package/web/app/immutable/chunks/{L12CYOVO.js → DqkDKEMV.js} +1 -1
  136. package/web/app/immutable/chunks/{nwovZHdj.js → DrI7rzCm.js} +1 -1
  137. package/web/app/immutable/chunks/{JbMhibU_.js → Ds-FLOE0.js} +1 -1
  138. package/web/app/immutable/chunks/{DKV7MzlU.js → Du9ULB4g.js} +1 -1
  139. package/web/app/immutable/chunks/{DeZfFoGy.js → DuXpwSkB.js} +1 -1
  140. package/web/app/immutable/chunks/{B_W5YLJO.js → DuzQF9m7.js} +1 -1
  141. package/web/app/immutable/chunks/{DtOFraMI.js → DvDXb3dW.js} +1 -1
  142. package/web/app/immutable/chunks/{HldT4ikO.js → Dxitz0gG.js} +1 -1
  143. package/web/app/immutable/chunks/{BWrcajCX.js → DyjYgqtH.js} +1 -1
  144. package/web/app/immutable/chunks/{BhyIRQr5.js → Dz40TuR7.js} +1 -1
  145. package/web/app/immutable/chunks/{BQDw3Pte.js → F7QETuhI.js} +1 -1
  146. package/web/app/immutable/chunks/{DEKYlpc6.js → F9nw4iUp.js} +1 -1
  147. package/web/app/immutable/chunks/{DcGdAMCM.js → Fy3QvGgT.js} +1 -1
  148. package/web/app/immutable/chunks/{fomUVS1s.js → HHGL3CBU.js} +1 -1
  149. package/web/app/immutable/chunks/{eL1b8zaP.js → HjNzRj_q.js} +1 -1
  150. package/web/app/immutable/chunks/{DN_2OUdP.js → JktSJt1s.js} +1 -1
  151. package/web/app/immutable/chunks/{Dh5f48wP.js → O_LhoKyf.js} +1 -1
  152. package/web/app/immutable/chunks/{CqjtslkE.js → Ov_SEXEY.js} +1 -1
  153. package/web/app/immutable/chunks/{CaIUs75U.js → PSWhBTN5.js} +1 -1
  154. package/web/app/immutable/chunks/{CcV3kPLR.js → QOLdaLP0.js} +1 -1
  155. package/web/app/immutable/chunks/{B41oTkHx.js → R0wDqNpY.js} +1 -1
  156. package/web/app/immutable/chunks/{Dtkr3IzA.js → RNQdr-NN.js} +1 -1
  157. package/web/app/immutable/chunks/{CnIHDDU4.js → TKnaMJht.js} +1 -1
  158. package/web/app/immutable/chunks/{C7RFabs2.js → Uvf94Vit.js} +1 -1
  159. package/web/app/immutable/chunks/{Qm-8Rnhn.js → VwRqUxpW.js} +1 -1
  160. package/web/app/immutable/chunks/{DXJWuR1_.js → XgTDusK7.js} +1 -1
  161. package/web/app/immutable/chunks/{BXR-y2IP.js → YIljg4QC.js} +1 -1
  162. package/web/app/immutable/chunks/{BMncCJZO.js → aWlYJ1qq.js} +1 -1
  163. package/web/app/immutable/chunks/{BqwrnPhf.js → b7qEBWdv.js} +1 -1
  164. package/web/app/immutable/chunks/{BOIMw4Zi.js → bb6KeZoT.js} +1 -1
  165. package/web/app/immutable/chunks/{BwTELta_.js → cKTNBTNE.js} +1 -1
  166. package/web/app/immutable/chunks/{nAVCqI07.js → fsCYHFC5.js} +1 -1
  167. package/web/app/immutable/chunks/{CdJ_TYfc.js → gn8kmMF6.js} +1 -1
  168. package/web/app/immutable/chunks/{CgJ50q_P.js → hTe-_Fjh.js} +3 -3
  169. package/web/app/immutable/chunks/{_oQK0i74.js → kpgdVhmB.js} +1 -1
  170. package/web/app/immutable/chunks/{DsBaaPlG.js → l6-BV5ui.js} +1 -1
  171. package/web/app/immutable/chunks/{CcpIKHPS.js → l9lbU6dU.js} +1 -1
  172. package/web/app/immutable/chunks/{BqCv-GxN.js → lN-utS8K.js} +1 -1
  173. package/web/app/immutable/chunks/{DzQq420D.js → laFenviK.js} +3 -3
  174. package/web/app/immutable/chunks/{BzagSfa0.js → nvAK9EyO.js} +1 -1
  175. package/web/app/immutable/chunks/{C1KS3a3w.js → oTkHTTGI.js} +1 -1
  176. package/web/app/immutable/chunks/{C8o2LGLL.js → p20Ma5Ub.js} +1 -1
  177. package/web/app/immutable/chunks/{CdWs5u7R.js → pUHkzJ_d.js} +1 -1
  178. package/web/app/immutable/chunks/{BpmH_LJw.js → pqiENG4w.js} +1 -1
  179. package/web/app/immutable/chunks/{CT4vZdRl.js → qk0mFpjO.js} +1 -1
  180. package/web/app/immutable/chunks/{CwM2Qhat.js → qsyNpi2_.js} +1 -1
  181. package/web/app/immutable/chunks/{DytO0GHe.js → vkDSSzeI.js} +1 -1
  182. package/web/app/immutable/chunks/{BpfenzkQ.js → xpCT4rnW.js} +1 -1
  183. package/web/app/immutable/chunks/{CKgR37uW.js → zln0bEou.js} +1 -1
  184. package/web/app/immutable/entry/{app.1uhZRRjp.js → app.BvKW_t2N.js} +2 -2
  185. package/web/app/immutable/entry/start.CQ7TZDH6.js +1 -0
  186. package/web/app/immutable/nodes/{0.DLt-CtDX.js → 0.BYMSP7Y-.js} +1 -1
  187. package/web/app/immutable/nodes/{1.BPvEDLUK.js → 1.DIEji4Js.js} +1 -1
  188. package/web/app/immutable/nodes/{10.B5xDYK4a.js → 10.DvTvrgji.js} +1 -1
  189. package/web/app/immutable/nodes/{14.BQTbKD3r.js → 14.CJs3OY3_.js} +1 -1
  190. package/web/app/immutable/nodes/{16.pwQIYuiW.js → 16.DsO7YO_c.js} +2 -2
  191. package/web/app/immutable/nodes/{2.C-FkYY8y.js → 2.Cht0dQl2.js} +3 -3
  192. package/web/app/immutable/nodes/{3.BDZTjYux.js → 3.BGeidrSE.js} +1 -1
  193. package/web/app/immutable/nodes/{4.yZhJP9E2.js → 4.iguZO2rl.js} +1 -1
  194. package/web/app/immutable/nodes/{5.DGLDlDY1.js → 5.BppWO1IB.js} +1 -1
  195. package/web/app/immutable/nodes/{6.CsH42tzX.js → 6.ChXOvT3x.js} +1 -1
  196. package/web/app/immutable/nodes/{7.mSAj_Ru-.js → 7.CgsIeK3J.js} +1 -1
  197. package/web/app/immutable/nodes/{8.bwqgMCZl.js → 8.Bq2NzD4c.js} +2 -2
  198. package/web/app/immutable/nodes/{9.CPziyhjK.js → 9.CvEBRJEV.js} +1 -1
  199. package/web/app/version.json +1 -1
  200. package/web/index.html +9 -9
  201. package/web/app/immutable/chunks/Dtgjfsuk.js +0 -1
  202. package/web/app/immutable/entry/start.CKsznvSy.js +0 -1
@@ -1,4 +1,4 @@
1
- import{f as p,bC as C,c4 as H,aN as B,a0 as q,aX as G,a6 as U,c2 as j,aO as K}from"./C9AXCraB.js";var A="",M="",O="",D=[],b=new Map,v=p(e=>j(e,K()),"sanitizeText"),y=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),J=p(()=>{A="",M="",O="",D.length=0,b.clear(),q(),C.debug("[Railroad] Database cleared")},"clear"),Y=p(e=>{A=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),P=p(()=>A,"getTitle"),Q=p(e=>{const i={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),Z=p(()=>D,"getRules"),V=p(e=>b.get(e),"getRule"),ee=p(e=>{M=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),te=p(()=>M,"getAccTitle"),re=p(e=>{O=v(e).replace(/\n\s+/g,`
1
+ import{f as p,bC as C,c4 as H,aN as B,a0 as q,aX as G,a6 as U,c2 as j,aO as K}from"./BHwB2t2J.js";var A="",M="",O="",D=[],b=new Map,v=p(e=>j(e,K()),"sanitizeText"),y=p(e=>{switch(e.type){case"terminal":return{...e,value:v(e.value)};case"nonterminal":return{...e,name:v(e.name)};case"sequence":return{...e,elements:e.elements.map(y)};case"choice":return{...e,alternatives:e.alternatives.map(y)};case"optional":return{...e,element:y(e.element)};case"repetition":return{...e,element:y(e.element),separator:e.separator?y(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),J=p(()=>{A="",M="",O="",D.length=0,b.clear(),q(),C.debug("[Railroad] Database cleared")},"clear"),Y=p(e=>{A=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),P=p(()=>A,"getTitle"),Q=p(e=>{const i={...e,name:v(e.name),definition:y(e.definition),comment:e.comment?v(e.comment):void 0};C.debug("[Railroad] Adding rule:",i.name),b.has(i.name)&&C.warn(`[Railroad] Rule '${i.name}' is already defined. Overwriting.`),D.push(i),b.set(i.name,i)},"addRule"),Z=p(()=>D,"getRules"),V=p(e=>b.get(e),"getRule"),ee=p(e=>{M=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),te=p(()=>M,"getAccTitle"),re=p(e=>{O=v(e).replace(/\n\s+/g,`
2
2
  `),C.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ie=p(()=>O,"getAccDescription"),ae=Y,ne=P,oe={clear:J,setTitle:Y,getTitle:P,addRule:Q,getRules:Z,getRule:V,setAccTitle:ee,getAccTitle:te,setAccDescription:re,getAccDescription:ie,setDiagramTitle:ae,getDiagramTitle:ne},f={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},le=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,se=/^[\w "',.-]+$/,de=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),L=p(e=>e?Object.keys(e).every(i=>i==="railroad"||de.has(i)):!1,"isRailroadStyleOptions"),ce=p(e=>e?"railroad"in e&&e.railroad?e.railroad:L(e)?e:{}:{},"extractRailroadOverrides"),me=p(e=>{if(!e||L(e))return{};const{railroad:i,svgId:n,theme:a,look:t,...r}=e;return r},"extractThemeOverrides"),m=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return le.test(n)?n:i},"sanitizeColorValue"),X=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return se.test(n)?n:i},"sanitizeFontFamilyValue"),F=p((e,i)=>{const n=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(n)&&n>=0?n:i},"sanitizeNumberValue"),he=p(e=>{const i=typeof e=="number"?e:typeof e=="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>0?i:void 0},"parseThemeFontSize"),pe=p(e=>{const i=X(e.fontFamily,f.fontFamily),n=he(e.fontSize)??f.fontSize;return{...f,fontFamily:i,fontSize:n,terminalFill:m(e.secondBkg??e.secondaryColor,f.terminalFill),terminalStroke:m(e.secondaryBorderColor??e.lineColor,f.terminalStroke),terminalTextColor:m(e.secondaryTextColor??e.textColor,f.terminalTextColor),nonTerminalFill:m(e.mainBkg??e.background,f.nonTerminalFill),nonTerminalStroke:m(e.primaryBorderColor??e.lineColor,f.nonTerminalStroke),nonTerminalTextColor:m(e.primaryTextColor??e.textColor,f.nonTerminalTextColor),lineColor:m(e.lineColor,f.lineColor),markerFill:m(e.lineColor,f.markerFill),commentFill:m(e.labelBackground??e.tertiaryColor,f.commentFill),commentStroke:m(e.tertiaryBorderColor??e.lineColor,f.commentStroke),commentTextColor:m(e.tertiaryTextColor??e.textColor,f.commentTextColor),specialFill:m(e.tertiaryColor??e.secondaryColor,f.specialFill),specialStroke:m(e.tertiaryBorderColor??e.secondaryBorderColor,f.specialStroke),ruleNameColor:m(e.titleColor??e.textColor,f.ruleNameColor)}},"buildThemeDefaults"),E=p(e=>{const i=B(),n={...G(),...i.themeVariables??{},...me(e)},a=pe(n),t={...i.railroad??{},...ce(e)};return{compactMode:t.compactMode??a.compactMode,padding:F(t.padding,a.padding),verticalSeparation:F(t.verticalSeparation,a.verticalSeparation),horizontalSeparation:F(t.horizontalSeparation,a.horizontalSeparation),arcRadius:F(t.arcRadius,a.arcRadius),fontSize:F(t.fontSize,a.fontSize),fontFamily:X(t.fontFamily,a.fontFamily),terminalFill:m(t.terminalFill,a.terminalFill),terminalStroke:m(t.terminalStroke,a.terminalStroke),terminalTextColor:m(t.terminalTextColor,a.terminalTextColor),nonTerminalFill:m(t.nonTerminalFill,a.nonTerminalFill),nonTerminalStroke:m(t.nonTerminalStroke,a.nonTerminalStroke),nonTerminalTextColor:m(t.nonTerminalTextColor,a.nonTerminalTextColor),lineColor:m(t.lineColor,a.lineColor),strokeWidth:F(t.strokeWidth,a.strokeWidth),markerFill:m(t.markerFill,a.markerFill),commentFill:m(t.commentFill,a.commentFill),commentStroke:m(t.commentStroke,a.commentStroke),commentTextColor:m(t.commentTextColor,a.commentTextColor),specialFill:m(t.specialFill,a.specialFill),specialStroke:m(t.specialStroke,a.specialStroke),ruleNameColor:m(t.ruleNameColor,a.ruleNameColor),showMarkers:t.showMarkers??a.showMarkers,markerRadius:F(t.markerRadius,a.markerRadius)}},"buildRailroadStyleOptions"),Te=p(e=>{const{fontFamily:i,fontSize:n,terminalFill:a,terminalStroke:t,terminalTextColor:r,nonTerminalFill:o,nonTerminalStroke:g,nonTerminalTextColor:l,lineColor:s,strokeWidth:h,markerFill:u,commentFill:c,commentStroke:w,commentTextColor:d,specialFill:T,specialStroke:z,ruleNameColor:S}=E(e);return`
3
3
  .railroad-diagram {
4
4
  font-family: ${i};
@@ -1 +1 @@
1
- import{C as b}from"./C563feV7.js";import{a as T}from"./BJzHxIyr.js";import{w as M}from"./D62E6eA-.js";import{G2 as n,Bb as v,AI as E,g as A,sY as _,sA as C,A1 as O,Aj as D,Cb as L,A5 as P}from"./BjFoJgFv.js";import{aW as p}from"./DUT4V6mb.js";import{d as H}from"./B0Z-1lwJ.js";import{n as R}from"./OXZoGb0R.js";import{o as x,e as W}from"./BcTp6STH.js";const f=new T("OpenMessage"),S=150,k=15e3,B=2,q=[150,400,800,1500,3e3],F=b;let g;function y(e){return new Promise(t=>setTimeout(t,e))}function w(e,t){const s=n.state,a=s.agentSessions?.byAgentId[e]?.messages,o=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(a?.some(i=>i.id===t)||o?.some(i=>i.id===t))}function G(e){return n.state.chatState?.byAgentId[e]?.transcriptHydration}async function N(e,t,s){const a=Date.now()+k;let o=0;for(;Date.now()<a;){if(s.aborted)return!1;if(w(e,t))return!0;if(o>=B&&G(e)==="settled"&&!p.select(n.state,e).initialHistoryPending)return!1;o++,await y(S)}return!s.aborted&&w(e,t)}async function Y(e,t,s,a){const o=Date.now()+k;for(;p.select(n.state,e).initialHistoryPending;){if(a?.aborted||Date.now()>=o)return!1;await y(S)}const i=n.state.agentSessions?.byAgentId[e];if(!i||a?.aborted)return!1;if(w(e,t))return!0;s??=i.workspaceId;const d=p.select(n.state,e);let c={nextToken:d.scrollbackOlderToken,prevToken:d.scrollbackGapToken};n.dispatch(O(e,"seek"));const l=p.select(n.state,e).scrollbackDiscardEpoch,u=()=>!!n.state.agentSessions?.byAgentId[e]&&p.select(n.state,e).scrollbackDiscardEpoch===l;try{const r=await M.agents.getConversation(e,F,void 0,t,void 0,s);return a?.aborted||!u()||!r.messages.some(m=>m.id===t)?!1:(n.dispatch(D(e,r.messages,r.messages[0]?.seq)),r.nextToken===null&&n.dispatch(L(e)),c={nextToken:r.nextToken,prevToken:r.prevToken},w(e,t))}catch(r){return f.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:r}),!1}finally{u()&&n.dispatch(P(e,c))}}async function J(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:a,messageId:o,query:i,targetTabId:d}=e;f.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:a,messageId:o});const c=s===A;c&&!e.contentAlreadyOpen&&(n.dispatch(v(a)),n.dispatch(E(A,a)),n.dispatch(_("chief")));const l=c?"/":W(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==l){try{c?await R(l):await x(s)}catch(h){f.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:h});return}if(t.aborted)return;if(window.location.pathname!==l){f.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&n.dispatch(C(s,{agentId:a}));const u=await N(a,o,t)?!0:await Y(a,o,s,t);if(t.aborted)return;if(!u){f.warn("[openMessage] Message not found; conversation opened at tail",{agentId:a,messageId:o});return}const r=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,m={agentId:a,messageId:o,query:i,targetTabId:d,requestId:r,signal:t};for(const h of q)setTimeout(()=>{t.aborted||H("chat:open-message",m)},h)}export{J as openMessage,Y as seekConversationToMessage};
1
+ import{C as b}from"./C563feV7.js";import{a as T}from"./BJzHxIyr.js";import{w as M}from"./D62E6eA-.js";import{G2 as n,Bb as v,AI as E,g as A,sY as _,sA as C,A1 as O,Aj as D,Cb as L,A5 as P}from"./BjFoJgFv.js";import{aW as p}from"./DUT4V6mb.js";import{d as H}from"./B0Z-1lwJ.js";import{n as R}from"./Ct7iVnk5.js";import{o as x,e as W}from"./Cdv2uRTZ.js";const f=new T("OpenMessage"),S=150,k=15e3,B=2,q=[150,400,800,1500,3e3],F=b;let g;function y(e){return new Promise(t=>setTimeout(t,e))}function w(e,t){const s=n.state,a=s.agentSessions?.byAgentId[e]?.messages,o=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(a?.some(i=>i.id===t)||o?.some(i=>i.id===t))}function G(e){return n.state.chatState?.byAgentId[e]?.transcriptHydration}async function N(e,t,s){const a=Date.now()+k;let o=0;for(;Date.now()<a;){if(s.aborted)return!1;if(w(e,t))return!0;if(o>=B&&G(e)==="settled"&&!p.select(n.state,e).initialHistoryPending)return!1;o++,await y(S)}return!s.aborted&&w(e,t)}async function Y(e,t,s,a){const o=Date.now()+k;for(;p.select(n.state,e).initialHistoryPending;){if(a?.aborted||Date.now()>=o)return!1;await y(S)}const i=n.state.agentSessions?.byAgentId[e];if(!i||a?.aborted)return!1;if(w(e,t))return!0;s??=i.workspaceId;const d=p.select(n.state,e);let c={nextToken:d.scrollbackOlderToken,prevToken:d.scrollbackGapToken};n.dispatch(O(e,"seek"));const l=p.select(n.state,e).scrollbackDiscardEpoch,u=()=>!!n.state.agentSessions?.byAgentId[e]&&p.select(n.state,e).scrollbackDiscardEpoch===l;try{const r=await M.agents.getConversation(e,F,void 0,t,void 0,s);return a?.aborted||!u()||!r.messages.some(m=>m.id===t)?!1:(n.dispatch(D(e,r.messages,r.messages[0]?.seq)),r.nextToken===null&&n.dispatch(L(e)),c={nextToken:r.nextToken,prevToken:r.prevToken},w(e,t))}catch(r){return f.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:r}),!1}finally{u()&&n.dispatch(P(e,c))}}async function J(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:a,messageId:o,query:i,targetTabId:d}=e;f.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:a,messageId:o});const c=s===A;c&&!e.contentAlreadyOpen&&(n.dispatch(v(a)),n.dispatch(E(A,a)),n.dispatch(_("chief")));const l=c?"/":W(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==l){try{c?await R(l):await x(s)}catch(h){f.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:h});return}if(t.aborted)return;if(window.location.pathname!==l){f.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&n.dispatch(C(s,{agentId:a}));const u=await N(a,o,t)?!0:await Y(a,o,s,t);if(t.aborted)return;if(!u){f.warn("[openMessage] Message not found; conversation opened at tail",{agentId:a,messageId:o});return}const r=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,m={agentId:a,messageId:o,query:i,targetTabId:d,requestId:r,signal:t};for(const h of q)setTimeout(()=>{t.aborted||H("chat:open-message",m)},h)}export{J as openMessage,Y as seekConversationToMessage};
@@ -1 +1 @@
1
- import{a as v}from"./BJzHxIyr.js";import{aE as l}from"./B8o4lNgr.js";import{g as c}from"./DYsBpJwe.js";import{p as g}from"./C1cHuYQR.js";import{d as P}from"./B0Z-1lwJ.js";import{dv as d}from"./DUT4V6mb.js";import{g as k,G2 as o,gE as T,te as u,tf as S,th as I}from"./BjFoJgFv.js";import{S as N,a as y,n as A}from"./OXZoGb0R.js";import{n as b,o as m}from"./BcTp6STH.js";function W(e,a){return e.some(t=>t.id!==k&&t.id!==a&&t.status!=="Archived"&&t.status!=="Deleted")}function w(e,a){return W(e,a)?"/":"/workspace/new"}const n=new v("WorkspaceNavigation");async function D(e){n.info(`[navigateToAgent] Navigating to agent: ${e}`);const t=l(g).params.id;if(!t){n.error("[navigateToAgent] No workspace ID found in current page params");return}const r=new URL(window.location.href);r.searchParams.set("drawerOpen","1"),r.searchParams.set("drawerType","agent"),r.searchParams.set("selectedAgent",e),r.searchParams.delete("selectedTerminal"),await c(r.toString(),{replaceState:!0}),o.dispatch(u(t,"agent",e))}async function R(e){n.info(`[navigateToTerminal] Navigating to terminal: ${e}`);const t=l(g).params.id;if(!t){n.error("[navigateToTerminal] No workspace ID found in current page params");return}const r=new URL(window.location.href),i=r.searchParams.get("drawerOpen")==="1",s=r.searchParams.get("drawerType")==="terminal";(!i||!s)&&r.searchParams.set("drawerOpen","1"),r.searchParams.set("drawerType","terminal"),r.searchParams.set("selectedTerminal",e),r.searchParams.delete("selectedAgent"),await c(r.toString(),{replaceState:!0}),o.dispatch(u(t,"terminal",e))}function E(e){return!e||!(e instanceof Element)?void 0:e.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}async function p(e,a){n.info(`[navigateToNote] Navigating to note: ${e}`,a);const t=l(g),r=a?.workspaceId??t.params.id;if(!r){n.error("[navigateToNote] No workspace ID found in current page params");return}o.dispatch(I(r,e,{openInAdjacentPanel:a?.openInAdjacentPanel??!1,openInNewAdjacentPanel:a?.openInNewAdjacentPanel??!1,sourcePanelId:a?.sourcePanelId}))}async function F(e,a,t){n.info(`[navigateToFile] Navigating to file: ${e}${a?` (line ${a})`:""}`,t);const i=l(g).params.id;if(!i){n.error("[navigateToFile] No workspace ID found in current page params");return}o.dispatch(S(i,e,{line:a,openInAdjacentPanel:t?.openInAdjacentPanel??!1,sourcePanelId:t?.sourcePanelId}))}async function _(){n.info("[navigateToSpec] Navigating to workspace spec"),await p("spec")}async function j(){n.info("[closeDrawer] Closing drawer");const a=l(g).params.id;if(!a){n.error("[closeDrawer] No workspace ID found in current page params");return}const t=new URL(window.location.href);t.searchParams.set("drawerOpen","0"),t.searchParams.delete("selectedAgent"),t.searchParams.delete("selectedTerminal"),await c(t.toString(),{replaceState:!0}),o.dispatch(T(a))}async function O(){n.info("[clearMainContent] Clearing main content");const e=new URL(window.location.href);e.searchParams.set("mainContentType","empty"),e.searchParams.delete("selectedNoteId"),e.searchParams.delete("selectedFile"),e.searchParams.delete("line"),await c(e.toString(),{replaceState:!1})}async function $(e,a,t){n.info("[navigateToTask] Navigating to task",{noteId:e,taskPosition:a,taskText:t}),await p(e);const r=()=>{P("scroll-to-task",{noteId:e,taskPosition:a,taskText:t},{bubbles:!0}),n.debug("[navigateToTask] Dispatched scroll-to-task event",{noteId:e,taskPosition:a})},i=[100,300,600];for(const s of i)setTimeout(r,s)}async function C(e){n.info("[navigateToSettings] Navigating to settings",e);const a=new URL("/settings",window.location.origin),t=window.location.pathname.match(/^\/workspace\/([^/]+)/)?.[1],r=t==="new"?void 0:t,i=e?.workspaceId??r;if(e?.tab&&a.searchParams.set("tab",e.tab),e?.specialist&&a.searchParams.set("specialist",e.specialist),e?.view&&a.searchParams.set("view",e.view),i&&a.searchParams.set("workspaceId",i),e?.hash&&(a.hash=e.hash),typeof window<"u"&&window.location.pathname==="/settings"){if(e?.tab||e?.specialist||e?.view||e?.workspaceId){const s=new URL(window.location.href);e?.tab&&s.searchParams.set("tab",e.tab),e?.specialist&&s.searchParams.set("specialist",e.specialist),e?.view&&s.searchParams.set("view",e.view),e?.workspaceId&&s.searchParams.set("workspaceId",e.workspaceId),e?.hash&&(s.hash=e.hash),await c(s.toString(),{replaceState:!0});return}if(e?.hash){const s=`#${e.hash}`;window.location.hash===s&&(window.location.hash=""),window.location.hash=s;return}return}await A(a.pathname+a.search+a.hash)}function h(){const e=typeof sessionStorage>"u"?null:sessionStorage.getItem(N);if(e&&e!=="/"&&!y(e))return e;const a=f();return a?`/workspace/${a.id}`:w(d.select(o.state))}async function L(){const e=h();n.info("[navigateBackFromSettings] Navigating back to:",e),await b(e)}function f(e){return d.select(o.state).find(a=>a.id!==e&&a.status!=="Archived"&&a.status!=="Deleted")}async function U(){const e=f();if(e){n.info("[navigateToFirstWorkspace] Showing workspace:",e.id),await m(e.id);return}const a=w(d.select(o.state));n.info("[navigateToFirstWorkspace] Navigating to:",a),await c(a)}async function H(e){const a=f(e);if(a){n.info("[navigateAfterWorkspaceRemoval] Showing workspace:",a.id),await m(a.id);return}const t=w(d.select(o.state),e);n.info("[navigateAfterWorkspaceRemoval] Navigating to:",t),await c(t)}const J=Object.freeze(Object.defineProperty({__proto__:null,clearMainContent:O,closeDrawer:j,findSourcePanelId:E,getSettingsPreviousPath:h,navigateAfterWorkspaceRemoval:H,navigateBackFromSettings:L,navigateToAgent:D,navigateToFile:F,navigateToFirstWorkspace:U,navigateToNote:p,navigateToSettings:C,navigateToSpec:_,navigateToTask:$,navigateToTerminal:R},Symbol.toStringTag,{value:"Module"}));export{F as a,U as b,p as c,C as d,$ as e,E as f,L as n,w as r,J as w};
1
+ import{a as v}from"./BJzHxIyr.js";import{aE as l}from"./B8o4lNgr.js";import{g as c}from"./CN6UuCI4.js";import{p as g}from"./CNG6DDdt.js";import{d as P}from"./B0Z-1lwJ.js";import{dv as d}from"./DUT4V6mb.js";import{g as k,G2 as o,gE as T,te as u,tf as S,th as I}from"./BjFoJgFv.js";import{S as N,a as y,n as A}from"./Ct7iVnk5.js";import{n as b,o as m}from"./Cdv2uRTZ.js";function W(e,a){return e.some(t=>t.id!==k&&t.id!==a&&t.status!=="Archived"&&t.status!=="Deleted")}function w(e,a){return W(e,a)?"/":"/workspace/new"}const n=new v("WorkspaceNavigation");async function D(e){n.info(`[navigateToAgent] Navigating to agent: ${e}`);const t=l(g).params.id;if(!t){n.error("[navigateToAgent] No workspace ID found in current page params");return}const r=new URL(window.location.href);r.searchParams.set("drawerOpen","1"),r.searchParams.set("drawerType","agent"),r.searchParams.set("selectedAgent",e),r.searchParams.delete("selectedTerminal"),await c(r.toString(),{replaceState:!0}),o.dispatch(u(t,"agent",e))}async function R(e){n.info(`[navigateToTerminal] Navigating to terminal: ${e}`);const t=l(g).params.id;if(!t){n.error("[navigateToTerminal] No workspace ID found in current page params");return}const r=new URL(window.location.href),i=r.searchParams.get("drawerOpen")==="1",s=r.searchParams.get("drawerType")==="terminal";(!i||!s)&&r.searchParams.set("drawerOpen","1"),r.searchParams.set("drawerType","terminal"),r.searchParams.set("selectedTerminal",e),r.searchParams.delete("selectedAgent"),await c(r.toString(),{replaceState:!0}),o.dispatch(u(t,"terminal",e))}function E(e){return!e||!(e instanceof Element)?void 0:e.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0}async function p(e,a){n.info(`[navigateToNote] Navigating to note: ${e}`,a);const t=l(g),r=a?.workspaceId??t.params.id;if(!r){n.error("[navigateToNote] No workspace ID found in current page params");return}o.dispatch(I(r,e,{openInAdjacentPanel:a?.openInAdjacentPanel??!1,openInNewAdjacentPanel:a?.openInNewAdjacentPanel??!1,sourcePanelId:a?.sourcePanelId}))}async function F(e,a,t){n.info(`[navigateToFile] Navigating to file: ${e}${a?` (line ${a})`:""}`,t);const i=l(g).params.id;if(!i){n.error("[navigateToFile] No workspace ID found in current page params");return}o.dispatch(S(i,e,{line:a,openInAdjacentPanel:t?.openInAdjacentPanel??!1,sourcePanelId:t?.sourcePanelId}))}async function _(){n.info("[navigateToSpec] Navigating to workspace spec"),await p("spec")}async function j(){n.info("[closeDrawer] Closing drawer");const a=l(g).params.id;if(!a){n.error("[closeDrawer] No workspace ID found in current page params");return}const t=new URL(window.location.href);t.searchParams.set("drawerOpen","0"),t.searchParams.delete("selectedAgent"),t.searchParams.delete("selectedTerminal"),await c(t.toString(),{replaceState:!0}),o.dispatch(T(a))}async function O(){n.info("[clearMainContent] Clearing main content");const e=new URL(window.location.href);e.searchParams.set("mainContentType","empty"),e.searchParams.delete("selectedNoteId"),e.searchParams.delete("selectedFile"),e.searchParams.delete("line"),await c(e.toString(),{replaceState:!1})}async function $(e,a,t){n.info("[navigateToTask] Navigating to task",{noteId:e,taskPosition:a,taskText:t}),await p(e);const r=()=>{P("scroll-to-task",{noteId:e,taskPosition:a,taskText:t},{bubbles:!0}),n.debug("[navigateToTask] Dispatched scroll-to-task event",{noteId:e,taskPosition:a})},i=[100,300,600];for(const s of i)setTimeout(r,s)}async function C(e){n.info("[navigateToSettings] Navigating to settings",e);const a=new URL("/settings",window.location.origin),t=window.location.pathname.match(/^\/workspace\/([^/]+)/)?.[1],r=t==="new"?void 0:t,i=e?.workspaceId??r;if(e?.tab&&a.searchParams.set("tab",e.tab),e?.specialist&&a.searchParams.set("specialist",e.specialist),e?.view&&a.searchParams.set("view",e.view),i&&a.searchParams.set("workspaceId",i),e?.hash&&(a.hash=e.hash),typeof window<"u"&&window.location.pathname==="/settings"){if(e?.tab||e?.specialist||e?.view||e?.workspaceId){const s=new URL(window.location.href);e?.tab&&s.searchParams.set("tab",e.tab),e?.specialist&&s.searchParams.set("specialist",e.specialist),e?.view&&s.searchParams.set("view",e.view),e?.workspaceId&&s.searchParams.set("workspaceId",e.workspaceId),e?.hash&&(s.hash=e.hash),await c(s.toString(),{replaceState:!0});return}if(e?.hash){const s=`#${e.hash}`;window.location.hash===s&&(window.location.hash=""),window.location.hash=s;return}return}await A(a.pathname+a.search+a.hash)}function h(){const e=typeof sessionStorage>"u"?null:sessionStorage.getItem(N);if(e&&e!=="/"&&!y(e))return e;const a=f();return a?`/workspace/${a.id}`:w(d.select(o.state))}async function L(){const e=h();n.info("[navigateBackFromSettings] Navigating back to:",e),await b(e)}function f(e){return d.select(o.state).find(a=>a.id!==e&&a.status!=="Archived"&&a.status!=="Deleted")}async function U(){const e=f();if(e){n.info("[navigateToFirstWorkspace] Showing workspace:",e.id),await m(e.id);return}const a=w(d.select(o.state));n.info("[navigateToFirstWorkspace] Navigating to:",a),await c(a)}async function H(e){const a=f(e);if(a){n.info("[navigateAfterWorkspaceRemoval] Showing workspace:",a.id),await m(a.id);return}const t=w(d.select(o.state),e);n.info("[navigateAfterWorkspaceRemoval] Navigating to:",t),await c(t)}const J=Object.freeze(Object.defineProperty({__proto__:null,clearMainContent:O,closeDrawer:j,findSourcePanelId:E,getSettingsPreviousPath:h,navigateAfterWorkspaceRemoval:H,navigateBackFromSettings:L,navigateToAgent:D,navigateToFile:F,navigateToFirstWorkspace:U,navigateToNote:p,navigateToSettings:C,navigateToSpec:_,navigateToTask:$,navigateToTerminal:R},Symbol.toStringTag,{value:"Module"}));export{F as a,U as b,p as c,C as d,$ as e,E as f,L as n,w as r,J as w};
@@ -1,4 +1,4 @@
1
- import{g as d}from"./C9AXCraB.js";var Z0,B=(Z0=class extends Error{constructor(e,t){var a="KaTeX parse error: "+e,i,s,u=t&&t.loc;if(u&&u.start<=u.end){var h=u.lexer.input;i=u.start,s=u.end,i===h.length?a+=" at end of input: ":a+=" at position "+(i+1)+": ";var c=h.slice(i,s).replace(/[^]/g,"$&̲"),p;i>15?p="…"+h.slice(i-15,i):p=h.slice(0,i);var g;s+15<h.length?g=h.slice(s,s+15)+"…":g=h.slice(s),a+=p+c+g}super(a),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,Z0.prototype),this.position=i,i!=null&&s!=null&&(this.length=s-i),this.rawMessage=e}},d(Z0,"ParseError"),Z0),Ca=/([A-Z])/g,za=d(r=>r.replace(Ca,"-$1").toLowerCase(),"hyphenate"),Ma={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Ea=/[&><"']/g,s0=d(r=>String(r).replace(Ea,e=>Ma[e]),"escape"),at=d(r=>r.type==="ordgroup"||r.type==="color"?r.body.length===1?at(r.body[0]):r:r.type==="font"?at(r.body):r,"getBaseElem"),Ta=new Set(["mathord","textord","atom"]),F0=d(r=>Ta.has(at(r).type),"isCharacterBox"),Da=d(r=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(r);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},"protocolFromUrl"),Lt={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:d(r=>"#"+r,"cliProcessor")},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:d((r,e)=>(e.push(r),e),"cliProcessor")},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:d(r=>Math.max(0,r),"processor"),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:d(r=>Math.max(0,r),"processor"),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:d(r=>Math.max(0,r),"processor"),cli:"-e, --max-expand <n>",cliProcessor:d(r=>r==="Infinity"?1/0:parseInt(r),"cliProcessor")},globalGroup:{type:"boolean",cli:!1}};function c1(r){if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}d(c1,"getImplicitDefault");function d1(r){if(r.default!==void 0)return r.default;var e=Array.isArray(r.type)?r.type[0]:r.type;return c1(e)}d(d1,"getDefaultValue");function v1(r,e,t,a){var i=t[e];r[e]=i!==void 0?a.processor?a.processor(i):i:d1(a)}d(v1,"applySetting");var ne,lr=(ne=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t of Object.keys(Lt)){var a=Lt[t];a&&v1(this,t,e,a)}}reportNonstrict(e,t,a){var i=this.strict;if(typeof i=="function"&&(i=i(e,t,a)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new B("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),a);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,a){var i=this.strict;if(typeof i=="function")try{i=i(e,t,a)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+t+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var t=Da(e.url);if(t==null)return!1;e.protocol=t}var a=typeof this.trust=="function"?this.trust(e):this.trust;return!!a}},d(ne,"Settings"),ne),se,L0=(se=class{constructor(e,t,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=a}sup(){return k0[Fa[this.id]]}sub(){return k0[qa[this.id]]}fracNum(){return k0[Na[this.id]]}fracDen(){return k0[Ra[this.id]]}cramp(){return k0[Ia[this.id]]}text(){return k0[Oa[this.id]]}isTight(){return this.size>=2}},d(se,"Style"),se),ur=0,st=1,ie=2,T0=3,Re=4,g0=5,we=6,u0=7,k0=[new L0(ur,0,!1),new L0(st,0,!0),new L0(ie,1,!1),new L0(T0,1,!0),new L0(Re,2,!1),new L0(g0,2,!0),new L0(we,3,!1),new L0(u0,3,!0)],Fa=[Re,g0,Re,g0,we,u0,we,u0],qa=[g0,g0,g0,g0,u0,u0,u0,u0],Na=[ie,T0,Re,g0,we,u0,we,u0],Ra=[T0,T0,g0,g0,u0,u0,u0,u0],Ia=[st,st,T0,T0,g0,g0,u0,u0],Oa=[ur,st,ie,T0,ie,T0,ie,T0],I={DISPLAY:k0[ur],TEXT:k0[ie],SCRIPT:k0[Re],SCRIPTSCRIPT:k0[we]},Pt=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function f1(r){for(var e=0;e<Pt.length;e++)for(var t=Pt[e],a=0;a<t.blocks.length;a++){var i=t.blocks[a];if(r>=i[0]&&r<=i[1])return t.name}return null}d(f1,"scriptFromCodepoint");var it=[];Pt.forEach(r=>r.blocks.forEach(e=>it.push(...e)));function or(r){for(var e=0;e<it.length;e+=2)if(r>=it[e]&&r<=it[e+1])return!0;return!1}d(or,"supportedCodepoint");var a0=d(r=>r+" "+r,"doubleBrushStroke"),ae=80,Ha=d(function(e,t){return"M95,"+(622+e+t)+`
1
+ import{g as d}from"./BHwB2t2J.js";var Z0,B=(Z0=class extends Error{constructor(e,t){var a="KaTeX parse error: "+e,i,s,u=t&&t.loc;if(u&&u.start<=u.end){var h=u.lexer.input;i=u.start,s=u.end,i===h.length?a+=" at end of input: ":a+=" at position "+(i+1)+": ";var c=h.slice(i,s).replace(/[^]/g,"$&̲"),p;i>15?p="…"+h.slice(i-15,i):p=h.slice(0,i);var g;s+15<h.length?g=h.slice(s,s+15)+"…":g=h.slice(s),a+=p+c+g}super(a),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,Z0.prototype),this.position=i,i!=null&&s!=null&&(this.length=s-i),this.rawMessage=e}},d(Z0,"ParseError"),Z0),Ca=/([A-Z])/g,za=d(r=>r.replace(Ca,"-$1").toLowerCase(),"hyphenate"),Ma={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Ea=/[&><"']/g,s0=d(r=>String(r).replace(Ea,e=>Ma[e]),"escape"),at=d(r=>r.type==="ordgroup"||r.type==="color"?r.body.length===1?at(r.body[0]):r:r.type==="font"?at(r.body):r,"getBaseElem"),Ta=new Set(["mathord","textord","atom"]),F0=d(r=>Ta.has(at(r).type),"isCharacterBox"),Da=d(r=>{var e=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(r);return e?e[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?null:e[1].toLowerCase():"_relative"},"protocolFromUrl"),Lt={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:d(r=>"#"+r,"cliProcessor")},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:d((r,e)=>(e.push(r),e),"cliProcessor")},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:d(r=>Math.max(0,r),"processor"),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:d(r=>Math.max(0,r),"processor"),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:d(r=>Math.max(0,r),"processor"),cli:"-e, --max-expand <n>",cliProcessor:d(r=>r==="Infinity"?1/0:parseInt(r),"cliProcessor")},globalGroup:{type:"boolean",cli:!1}};function c1(r){if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}d(c1,"getImplicitDefault");function d1(r){if(r.default!==void 0)return r.default;var e=Array.isArray(r.type)?r.type[0]:r.type;return c1(e)}d(d1,"getDefaultValue");function v1(r,e,t,a){var i=t[e];r[e]=i!==void 0?a.processor?a.processor(i):i:d1(a)}d(v1,"applySetting");var ne,lr=(ne=class{constructor(e){e===void 0&&(e={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t of Object.keys(Lt)){var a=Lt[t];a&&v1(this,t,e,a)}}reportNonstrict(e,t,a){var i=this.strict;if(typeof i=="function"&&(i=i(e,t,a)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new B("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),a);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,a){var i=this.strict;if(typeof i=="function")try{i=i(e,t,a)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+t+" ["+e+"]")),!1)}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var t=Da(e.url);if(t==null)return!1;e.protocol=t}var a=typeof this.trust=="function"?this.trust(e):this.trust;return!!a}},d(ne,"Settings"),ne),se,L0=(se=class{constructor(e,t,a){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=a}sup(){return k0[Fa[this.id]]}sub(){return k0[qa[this.id]]}fracNum(){return k0[Na[this.id]]}fracDen(){return k0[Ra[this.id]]}cramp(){return k0[Ia[this.id]]}text(){return k0[Oa[this.id]]}isTight(){return this.size>=2}},d(se,"Style"),se),ur=0,st=1,ie=2,T0=3,Re=4,g0=5,we=6,u0=7,k0=[new L0(ur,0,!1),new L0(st,0,!0),new L0(ie,1,!1),new L0(T0,1,!0),new L0(Re,2,!1),new L0(g0,2,!0),new L0(we,3,!1),new L0(u0,3,!0)],Fa=[Re,g0,Re,g0,we,u0,we,u0],qa=[g0,g0,g0,g0,u0,u0,u0,u0],Na=[ie,T0,Re,g0,we,u0,we,u0],Ra=[T0,T0,g0,g0,u0,u0,u0,u0],Ia=[st,st,T0,T0,g0,g0,u0,u0],Oa=[ur,st,ie,T0,ie,T0,ie,T0],I={DISPLAY:k0[ur],TEXT:k0[ie],SCRIPT:k0[Re],SCRIPTSCRIPT:k0[we]},Pt=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function f1(r){for(var e=0;e<Pt.length;e++)for(var t=Pt[e],a=0;a<t.blocks.length;a++){var i=t.blocks[a];if(r>=i[0]&&r<=i[1])return t.name}return null}d(f1,"scriptFromCodepoint");var it=[];Pt.forEach(r=>r.blocks.forEach(e=>it.push(...e)));function or(r){for(var e=0;e<it.length;e+=2)if(r>=it[e]&&r<=it[e+1])return!0;return!1}d(or,"supportedCodepoint");var a0=d(r=>r+" "+r,"doubleBrushStroke"),ae=80,Ha=d(function(e,t){return"M95,"+(622+e+t)+`
2
2
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
3
3
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
4
4
  c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
@@ -1 +1 @@
1
- import{f as i}from"./C9AXCraB.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
1
+ import{f as i}from"./BHwB2t2J.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
@@ -1,4 +1,4 @@
1
- import{c6 as Ae,aK as ke,aP as ae,c9 as Fe,aL as Pe,c7 as ve,f as o,aO as zt,bC as bt,c3 as Lt,a6 as Ce,a0 as Le,ax as z,c2 as Ee,aX as De}from"./C9AXCraB.js";import{l as ie}from"./Mzah6e0Y.js";var Et=(function(){var t=o(function(Y,r,l,x){for(l=l||{},x=Y.length;x--;l[Y[x]]=r);return l},"o"),n=[1,3],f=[1,4],d=[1,5],c=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],_=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],k=[2,36],u=[1,37],T=[1,36],q=[1,38],m=[1,35],b=[1,43],g=[1,41],A=[1,45],ct=[1,14],xt=[1,23],ft=[1,18],gt=[1,19],ht=[1,20],_t=[1,21],dt=[1,22],i=[1,24],Vt=[1,25],It=[1,26],wt=[1,27],Bt=[1,28],Rt=[1,29],U=[1,32],Q=[1,33],F=[1,34],P=[1,39],v=[1,40],C=[1,42],L=[1,44],X=[1,63],H=[1,62],E=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Xt=[1,71],Ht=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],Kt=[1,77],w=[4,5,6,7,8,9,10,11,12,13,14,15,18],K=[1,91],Z=[1,92],J=[1,93],$=[1,100],tt=[1,94],et=[1,97],it=[1,95],at=[1,96],nt=[1,98],st=[1,99],At=[1,103],Zt=[10,55,56,57],N=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],kt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,x,h,S,e,ut){var s=e.length-1;switch(S){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],h.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),h.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),h.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),h.setAccDescription(this.$);break;case 46:h.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:h.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:h.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:h.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:h.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:h.setXAxisLeftText(e[s-2]),h.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",h.setXAxisLeftText(e[s-1]);break;case 53:h.setXAxisLeftText(e[s]);break;case 54:h.setYAxisBottomText(e[s-2]),h.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",h.setYAxisBottomText(e[s-1]);break;case 56:h.setYAxisBottomText(e[s]);break;case 57:h.setQuadrant1Text(e[s]);break;case 58:h.setQuadrant2Text(e[s]);break;case 59:h.setQuadrant3Text(e[s]);break;case 60:h.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:f,55:d,56:c,57:p},{1:[3]},{18:n,26:8,27:2,28:f,55:d,56:c,57:p},{18:n,26:9,27:2,28:f,55:d,56:c,57:p},t(y,[2,33],{29:10}),t(_,[2,61]),t(_,[2,62]),t(_,[2,63]),{1:[2,30]},{1:[2,31]},t(a,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:T,10:q,12:m,13:b,14:g,15:A,18:ct,25:xt,35:ft,37:gt,39:ht,41:_t,42:dt,48:i,50:Vt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(y,[2,34]),{27:46,55:d,56:c,57:p},t(a,[2,37]),t(a,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:u,5:T,10:q,12:m,13:b,14:g,15:A,18:ct,25:xt,35:ft,37:gt,39:ht,41:_t,42:dt,48:i,50:Vt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(a,[2,45]),t(a,[2,46]),{18:[1,51]},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:52,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:53,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:54,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:55,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:56,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:57,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,44:[1,58],47:[1,59],58:61,59:60,63:F,64:P,65:v,66:C,67:L},t(E,[2,64]),t(E,[2,66]),t(E,[2,67]),t(E,[2,70]),t(E,[2,71]),t(E,[2,72]),t(E,[2,73]),t(E,[2,74]),t(E,[2,75]),t(E,[2,76]),t(E,[2,77]),t(E,[2,78]),t(E,[2,79]),t(E,[2,80]),t(E,[2,81]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:65,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Xt,10:Ht,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,21:64},t(a,[2,53],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,49:[1,78],63:F,64:P,65:v,66:C,67:L}),t(a,[2,56],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,49:[1,79],63:F,64:P,65:v,66:C,67:L}),t(a,[2,57],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,58],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,59],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,60],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),{45:[1,80]},{44:[1,81]},t(E,[2,65]),t(E,[2,82]),t(E,[2,83]),t(E,[2,84]),{3:83,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Xt,10:Ht,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,18:[1,82]},t(w,[2,23]),t(w,[2,1]),t(w,[2,2]),t(w,[2,3]),t(w,[2,4]),t(w,[2,5]),t(w,[2,6]),t(w,[2,7]),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(w,[2,11]),t(w,[2,12]),t(a,[2,52],{58:31,43:84,4:u,5:T,10:q,12:m,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,55],{58:31,43:85,4:u,5:T,10:q,12:m,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),{46:[1,86]},{45:[1,87]},{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:89,23:88},t(w,[2,24]),t(a,[2,51],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,54],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,47],{22:89,16:90,23:101,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{46:[1,102]},t(a,[2,29],{10:At}),t(Zt,[2,27],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),t(N,[2,25]),t(N,[2,13]),t(N,[2,14]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,22]),t(a,[2,49],{10:At}),t(a,[2,48],{22:89,16:90,23:105,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:106},t(N,[2,26]),t(a,[2,50],{10:At}),t(Zt,[2,28],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var x=new Error(r);throw x.hash=l,x}},"parseError"),parse:o(function(r){var l=this,x=[0],h=[],S=[null],e=[],ut=this.table,s="",yt=0,Jt=0,me=2,$t=1,be=e.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(j.yy[Ft]=this.yy[Ft]);D.setInput(r,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Pt=D.yylloc;e.push(Pt);var Se=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(R){x.length=x.length-2*R,S.length=S.length-R,e.length=e.length-R}o(_e,"popStack");function te(){var R;return R=h.pop()||D.lex()||$t,typeof R!="number"&&(R instanceof Array&&(h=R,R=h.pop()),R=l.symbols_[R]||R),R}o(te,"lex");for(var B,G,W,vt,rt={},Tt,M,ee,qt;;){if(G=x[x.length-1],this.defaultActions[G]?W=this.defaultActions[G]:((B===null||typeof B>"u")&&(B=te()),W=ut[G]&&ut[G][B]),typeof W>"u"||!W.length||!W[0]){var Ct="";qt=[];for(Tt in ut[G])this.terminals_[Tt]&&Tt>me&&qt.push("'"+this.terminals_[Tt]+"'");D.showPosition?Ct="Parse error on line "+(yt+1)+`:
1
+ import{c6 as Ae,aK as ke,aP as ae,c9 as Fe,aL as Pe,c7 as ve,f as o,aO as zt,bC as bt,c3 as Lt,a6 as Ce,a0 as Le,ax as z,c2 as Ee,aX as De}from"./BHwB2t2J.js";import{l as ie}from"./De60mY1u.js";var Et=(function(){var t=o(function(Y,r,l,x){for(l=l||{},x=Y.length;x--;l[Y[x]]=r);return l},"o"),n=[1,3],f=[1,4],d=[1,5],c=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],_=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],k=[2,36],u=[1,37],T=[1,36],q=[1,38],m=[1,35],b=[1,43],g=[1,41],A=[1,45],ct=[1,14],xt=[1,23],ft=[1,18],gt=[1,19],ht=[1,20],_t=[1,21],dt=[1,22],i=[1,24],Vt=[1,25],It=[1,26],wt=[1,27],Bt=[1,28],Rt=[1,29],U=[1,32],Q=[1,33],F=[1,34],P=[1,39],v=[1,40],C=[1,42],L=[1,44],X=[1,63],H=[1,62],E=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Xt=[1,71],Ht=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],Kt=[1,77],w=[4,5,6,7,8,9,10,11,12,13,14,15,18],K=[1,91],Z=[1,92],J=[1,93],$=[1,100],tt=[1,94],et=[1,97],it=[1,95],at=[1,96],nt=[1,98],st=[1,99],At=[1,103],Zt=[10,55,56,57],N=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],kt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,x,h,S,e,ut){var s=e.length-1;switch(S){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],h.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),h.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),h.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),h.setAccDescription(this.$);break;case 46:h.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:h.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:h.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:h.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:h.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:h.setXAxisLeftText(e[s-2]),h.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",h.setXAxisLeftText(e[s-1]);break;case 53:h.setXAxisLeftText(e[s]);break;case 54:h.setYAxisBottomText(e[s-2]),h.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",h.setYAxisBottomText(e[s-1]);break;case 56:h.setYAxisBottomText(e[s]);break;case 57:h.setQuadrant1Text(e[s]);break;case 58:h.setQuadrant2Text(e[s]);break;case 59:h.setQuadrant3Text(e[s]);break;case 60:h.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:f,55:d,56:c,57:p},{1:[3]},{18:n,26:8,27:2,28:f,55:d,56:c,57:p},{18:n,26:9,27:2,28:f,55:d,56:c,57:p},t(y,[2,33],{29:10}),t(_,[2,61]),t(_,[2,62]),t(_,[2,63]),{1:[2,30]},{1:[2,31]},t(a,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:T,10:q,12:m,13:b,14:g,15:A,18:ct,25:xt,35:ft,37:gt,39:ht,41:_t,42:dt,48:i,50:Vt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(y,[2,34]),{27:46,55:d,56:c,57:p},t(a,[2,37]),t(a,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:u,5:T,10:q,12:m,13:b,14:g,15:A,18:ct,25:xt,35:ft,37:gt,39:ht,41:_t,42:dt,48:i,50:Vt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(a,[2,45]),t(a,[2,46]),{18:[1,51]},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:52,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:53,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:54,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:55,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:56,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:q,12:m,13:b,14:g,15:A,43:57,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,44:[1,58],47:[1,59],58:61,59:60,63:F,64:P,65:v,66:C,67:L},t(E,[2,64]),t(E,[2,66]),t(E,[2,67]),t(E,[2,70]),t(E,[2,71]),t(E,[2,72]),t(E,[2,73]),t(E,[2,74]),t(E,[2,75]),t(E,[2,76]),t(E,[2,77]),t(E,[2,78]),t(E,[2,79]),t(E,[2,80]),t(E,[2,81]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:65,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Xt,10:Ht,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,21:64},t(a,[2,53],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,49:[1,78],63:F,64:P,65:v,66:C,67:L}),t(a,[2,56],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,49:[1,79],63:F,64:P,65:v,66:C,67:L}),t(a,[2,57],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,58],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,59],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,60],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),{45:[1,80]},{44:[1,81]},t(E,[2,65]),t(E,[2,82]),t(E,[2,83]),t(E,[2,84]),{3:83,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Xt,10:Ht,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,18:[1,82]},t(w,[2,23]),t(w,[2,1]),t(w,[2,2]),t(w,[2,3]),t(w,[2,4]),t(w,[2,5]),t(w,[2,6]),t(w,[2,7]),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(w,[2,11]),t(w,[2,12]),t(a,[2,52],{58:31,43:84,4:u,5:T,10:q,12:m,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,55],{58:31,43:85,4:u,5:T,10:q,12:m,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),{46:[1,86]},{45:[1,87]},{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:89,23:88},t(w,[2,24]),t(a,[2,51],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,54],{59:60,58:61,4:u,5:T,8:X,10:q,12:m,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,47],{22:89,16:90,23:101,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{46:[1,102]},t(a,[2,29],{10:At}),t(Zt,[2,27],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),t(N,[2,25]),t(N,[2,13]),t(N,[2,14]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,22]),t(a,[2,49],{10:At}),t(a,[2,48],{22:89,16:90,23:105,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:106},t(N,[2,26]),t(a,[2,50],{10:At}),t(Zt,[2,28],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var x=new Error(r);throw x.hash=l,x}},"parseError"),parse:o(function(r){var l=this,x=[0],h=[],S=[null],e=[],ut=this.table,s="",yt=0,Jt=0,me=2,$t=1,be=e.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(j.yy[Ft]=this.yy[Ft]);D.setInput(r,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Pt=D.yylloc;e.push(Pt);var Se=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(R){x.length=x.length-2*R,S.length=S.length-R,e.length=e.length-R}o(_e,"popStack");function te(){var R;return R=h.pop()||D.lex()||$t,typeof R!="number"&&(R instanceof Array&&(h=R,R=h.pop()),R=l.symbols_[R]||R),R}o(te,"lex");for(var B,G,W,vt,rt={},Tt,M,ee,qt;;){if(G=x[x.length-1],this.defaultActions[G]?W=this.defaultActions[G]:((B===null||typeof B>"u")&&(B=te()),W=ut[G]&&ut[G][B]),typeof W>"u"||!W.length||!W[0]){var Ct="";qt=[];for(Tt in ut[G])this.terminals_[Tt]&&Tt>me&&qt.push("'"+this.terminals_[Tt]+"'");D.showPosition?Ct="Parse error on line "+(yt+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+qt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Ct="Parse error on line "+(yt+1)+": Unexpected "+(B==$t?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Ct,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:Pt,expected:qt})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+B);switch(W[0]){case 1:x.push(B),S.push(D.yytext),e.push(D.yylloc),x.push(W[1]),B=null,Jt=D.yyleng,s=D.yytext,yt=D.yylineno,Pt=D.yylloc;break;case 2:if(M=this.productions_[W[1]][1],rt.$=S[S.length-M],rt._$={first_line:e[e.length-(M||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(M||1)].first_column,last_column:e[e.length-1].last_column},Se&&(rt._$.range=[e[e.length-(M||1)].range[0],e[e.length-1].range[1]]),vt=this.performAction.apply(rt,[s,Jt,yt,j.yy,W[1],S,e].concat(be)),typeof vt<"u")return vt;M&&(x=x.slice(0,-1*M*2),S=S.slice(0,-1*M),e=e.slice(0,-1*M)),x.push(this.productions_[W[1]][0]),S.push(rt.$),e.push(rt._$),ee=ut[x[x.length-2]][x[x.length-1]],x.push(ee);break;case 3:return!0}}return!0},"parse")},qe=(function(){var Y={EOF:1,parseError:o(function(l,x){if(this.yy.parser)this.yy.parser.parseError(l,x);else throw new Error(l)},"parseError"),setInput:o(function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.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),r},"input"),unput:o(function(r){var l=r.length,x=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var h=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),x.length-1&&(this.yylineno-=x.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===h.length?this.yylloc.first_column:0)+h[h.length-x.length].length-x[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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:o(function(r){this.unput(this.match.slice(r))},"less"),pastInput:o(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{t as Ke,bq as k,a_ as z,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"./COCO5InB.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{mw as Rr,G2 as ct,lE as Dt,d_ as Mr,ei as Pr,ej as Lr}from"./BjFoJgFv.js";import{H as We,C as Oe,y as Ir,h as at}from"./Bqoyy9yx.js";import{dj as Ar,bc as Er}from"./DUT4V6mb.js";import{ad as Tt}from"./BTNf3wFt.js";import{I as it,k as ze,h as Be,i as Lt,s as zr}from"./Crs9I2MT.js";import{f as xe}from"./C5Xi5eLp.js";import"./Dck4Okga.js";import{F as fe,a1 as Hr,cF as Wr,at as ot,au as pt,bW as jr,aQ as Dr,bG as Tr,bA as Fr,b4 as Gr,cK as Br,cd as Or,b1 as Ct,cP as Rt,ch as _t,bj as Kr,cu as Ur,ar as Vr}from"./BDq7EC2K.js";import{e as Jr}from"./56xQ7UwB.js";import{Q as Ft,B as Qr}from"./Chf_Fl2B.js";import{H as Gt}from"./CoZ28bOB.js";import{I as Vt}from"./CjVTzfqV.js";import"./BqRJyrRC.js";import{M as Mt}from"./D_cySYsU.js";import{w as St}from"./bjkNeafo.js";const qr=[/^diff --git /,/^index\s/,/^---\s/,/^\+\+\+\s/,/^\/];function Yr($){const r=[];if(!$)return r;const d=$.split(`
1
+ import{t as Ke,bq as k,a_ as z,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"./COCO5InB.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{mw as Rr,G2 as ct,lE as Dt,d_ as Mr,ei as Pr,ej as Lr}from"./BjFoJgFv.js";import{H as We,C as Oe,y as Ir,h as at}from"./Bqoyy9yx.js";import{dj as Ar,bc as Er}from"./DUT4V6mb.js";import{ad as Tt}from"./Dh52so4o.js";import{I as it,k as ze,h as Be,i as Lt,s as zr}from"./Crs9I2MT.js";import{f as xe}from"./C5Xi5eLp.js";import"./Dck4Okga.js";import{F as fe,a1 as Hr,cF as Wr,at as ot,au as pt,bW as jr,aQ as Dr,bG as Tr,bA as Fr,b4 as Gr,cK as Br,cd as Or,b1 as Ct,cP as Rt,ch as _t,bj as Kr,cu as Ur,ar as Vr}from"./BDq7EC2K.js";import{e as Jr}from"./B5NXv3LV.js";import{Q as Ft,B as Qr}from"./172GvQgx.js";import{H as Gt}from"./CoZ28bOB.js";import{I as Vt}from"./CjVTzfqV.js";import"./BqRJyrRC.js";import{M as Mt}from"./CcDZ8sih.js";import{w as St}from"./bjkNeafo.js";const qr=[/^diff --git /,/^index\s/,/^---\s/,/^\+\+\+\s/,/^\/];function Yr($){const r=[];if(!$)return r;const d=$.split(`
2
2
  `);let m=null,b=0,u=0;const D=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("@@")){D(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 Xr=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),D=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()||D()||(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 D()},set isSending(I=!1){D(I),y()},get class(){return P()},set class(I=""){P(I),y()},$set:Ue,$on:(I,he)=>Ve(r,I,he)},w=Xr(),H=be(w),de=o(H);{let I=_(()=>Se.codeReview_inlineComment_askLine_placeholder());Vt(de,{onkeydown:pe,get placeholder(){return e(I)},get disabled(){return D()},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()||D());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 E=me=>{it(me,{size:14})},Ie=me=>{fe(me,{get icon(){return Hr},class:"h-3.5 w-3.5"})};z(C,me=>{D()?me(E):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(H);var te=n(H,2),ke=O(te,!0);return M(I=>{ze(H,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,()=>[]),D=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),H=we(!1),de=we(null);Ze(()=>{e(w)&&e(de)&&e(de).focus()});function ce(){!e(Q).trim()||h()||(D()?.(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 Gr;case"context":return Fr;case"explanation":default:return Tr}}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 D()},set onSendMessage(a){D(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,j)=>Ve(r,a,j)},_e=ln(),C=o(_e),E=o(C),Ie=o(E);{let a=_(()=>te(d().type)),j=_(()=>ke(d().type));fe(Ie,{get icon(){return e(a)},get class(){return`h-4 w-4 ${e(j)??""}`}})}s(E);var me=n(E,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 X=a=>{var j=Zr(),Z=O(j,!0);M(ee=>S(Z,ee),[()=>I(K())]),i(a,j)};z(A,a=>{K()&&a(X)})}s(me);var ie=n(me,2);{var $e=a=>{{let j=_(()=>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(j)},children:(Z,ee)=>{fe(Z,{get icon(){return Wr}})},$$slots:{default:!0}})}};z(ie,a=>{P()&&a($e)})}s(C);var Ce=n(C,2);{var ye=a=>{var j=nn(),Z=o(j);xe(Z,{type:"button",variant:"ghost",onclick:()=>L(H,!e(H)),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 Y=en(),c=be(Y),p=O(c,!0),G=n(c,2);{let ue=_(()=>e(H)?ot:pt);fe(G,{get icon(){return e(ue)},class:"h-3 w-3"})}M(ue=>S(p,ue),[()=>Se.codeReview_commentThread_suggestedChanges_label()]),i(q,Y)},$$slots:{default:!0}});var ee=n(Z,2);{var re=q=>{var se=rn();Be(se,21,u,Y=>Y.id,(Y,c)=>{var p=tn(),G=o(p),ue=o(G);{let g=_(()=>e(c).type==="user"?Br: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(G);var Re=n(G,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(()=>ze(G,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"}`)),We(3,p,()=>at,()=>({axis:"y",distance:4,tier:"moderate"})),i(Y,p)}),s(se),We(3,se,()=>Oe,()=>({tier:"moderate"})),i(q,se)};z(ee,q=>{e(H)&&q(re)})}s(j),i(a,j)};z(Ce,a=>{e(he)&&a(ye)})}var U=n(Ce,2);{var T=a=>{var j=an(),Z=o(j);it(Z,{size:12});var ee=n(Z,2),re=O(ee,!0);s(j),M(q=>S(re,q),[()=>Se.codeReview_commentThread_agentResponding_label()]),i(a,j)};z(U,a=>{J()&&a(T)})}var f=n(U,2),W=o(f);{var F=a=>{var j=sn(),Z=be(j),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,G)=>{var ue=Pt(),Re=be(ue);{var t=g=>{it(g,{size:14})},l=g=>{fe(g,{get icon(){return jr},class:"h-3 w-3"})};z(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 G=et();M(ue=>S(G,ue),[()=>Se.codeReview_commentThread_cancel_label()]),i(c,G)},$$slots:{default:!0}}),s(Z);var se=n(Z,2),Y=O(se,!0);M(c=>S(Y,c),[()=>Se.codeReview_commentThread_inputHint_label()]),We(3,Z,()=>Oe,()=>({tier:"fast"})),i(a,j)},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:(j,Z)=>{var ee=on(),re=be(ee);fe(re,{get icon(){return Dr},class:"h-3 w-3"});var q=n(re,2),se=O(q,!0);M(Y=>S(se,Y),[()=>Se.codeReview_commentThread_askQuestion_label()]),i(j,ee)},$$slots:{default:!0}})};z(W,a=>{e(w)?a(F):a(le,-1)})}return s(f),s(_e),M(()=>ze(_e,1,`walkthrough-comment-thread relative flex w-full flex-col bg-white shadow-sm dark:bg-slate-900 ${pe()??""}`)),We(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>'),Bt=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),D=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=_(()=>Yr(m())),H=_(()=>Rr(d())),de=_(()=>{const t=new Map;return!e(H)||e(H)==="text"||e(H)==="plaintext"||!Gt.getLanguage(e(H))||e(w).forEach(l=>{const g=[];if(l.lines.forEach(N=>{const B=N.content||"",V=`${N.oldNum}-${N.newNum}`;g.push({content:B,key:V})}),g.length!==0)try{const N=g.map(ne=>ne.content).join(`
3
3
  `),V=Gt.highlight(N,{language:e(H)}).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 B=e(w)[t];if(!B)return!1;for(let V=Math.max(0,l-D());V<=Math.min(B.lines.length-1,l+D());V++){const ne=B.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 B=0;B<l.lines.length;B++){const V=Ne(t,B,l.lines[B]);!V&&N===null?N=B:V&&N!==null&&(g.push({startIndex:N,endIndex:B-1,count:B-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 E(){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 X(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 T=_(()=>()=>{const t=d().split("/");return t[t.length-1]}),f=_(()=>()=>{const t=d().split("/");return t.length<=1?"":t.slice(0,-1).join("/")}),W=_(()=>{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 B=0;B<N.lines.length&&l.length<3;B++){const V=N.lines[B];(V.type==="addition"||V.type==="deletion")&&l.push({line:V,hunkIndex:g,lineIndex:B})}}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 j(t){return`${t.file}:${t.line}:${t.type}`}function Z(t){return e(a).get(j(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 D()},set contextLines(t=3){D(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 B=n(N,4),V=o(B),ne=O(V,!0),oe=n(V,2),ve=O(oe,!0);s(B);var Me=n(B,2),Ae=o(Me);{var je=Le=>{var Ee=dn(),Fe=O(Ee);M(()=>S(Fe,`+${J()+K()}`)),i(Le,Ee)};z(Ae,Le=>{(J()>0||K()>0)&&Le(je)})}s(Me),M((Le,Ee)=>{S(ne,Le),S(ve,Ee)},[()=>e(T)(),()=>e(f)()]),i(t,g)},$$slots:{default:!0}});var Y=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)};z(Y,t=>{pe()&&t(c)})}s(q);var p=n(q,2);{var G=t=>{var l=gn(),g=o(l),N=o(g);Be(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),je=o(Ae),Le=O(je,!0);s(Ae);var Ee=n(Ae,2),Fe=O(Ee,!0),De=n(Ee,2),ge=o(De);Ft(ge,()=>me(ve()),!0),s(ge),s(De),s(Me),M((qe,Ye,Xe,tt)=>{ze(Me,1,`flex ${qe??""}`),ze(Ae,1,`w-12 shrink-0 flex select-none ${Ye??""} border-r border-border`),S(Le,ve().newNum??ve().oldNum??""),ze(Ee,1,`w-5 shrink-0 text-center select-none ${Xe??""}`),S(Fe,tt)},[()=>R(ve()),()=>ie(ve()),()=>A(ve()),()=>X(ve())]),i(ne,Me)});var B=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}})};z(B,ne=>{e(le)>e(F).length&&ne(V)})}s(g),s(l),We(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};z(p,t=>{e(ce)&&e(F).length>0&&t(G)})}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:E,children:(je,Le)=>{st();var Ee=et();M(Fe=>S(Ee,Fe),[()=>Se.codeReview_fileDiff_expandAll_label()]),i(je,Ee)},$$slots:{default:!0}});var Me=n(ve,2);{var Ae=je=>{var Le=fn(),Ee=n(be(Le),2);xe(Ee,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:Ie,children:(Fe,De)=>{st();var ge=et();M(qe=>S(ge,qe),[()=>Se.codeReview_fileDiff_collapse_label()]),i(Fe,ge)},$$slots:{default:!0}}),i(je,Le)};z(Me,je=>{e(ae).size>0&&je(Ae)})}s(oe),i(ne,oe)};z(g,ne=>{e(W)&&ne(N)})}var B=n(g,2),V=o(B);Be(V,21,()=>e(w),Lt,(ne,oe,ve)=>{const Me=_(()=>_e(ve)),Ae=_(()=>e(Me).find(De=>De.startIndex===0));var je=xn(),Le=be(je);{var Ee=De=>{xe(De,{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 Ye=Bt(),Xe=be(Ye);fe(Xe,{get icon(){return ot},class:"h-2.5 w-2.5"});var tt=n(Xe,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,Ye)},$$slots:{default:!0}})};z(Le,De=>{e(Ae)&&De(Ee)})}var Fe=n(Le,2);Be(Fe,19,()=>e(oe).lines,(De,ge)=>`${ve}-${ge}`,(De,ge,qe)=>{const Ye=_(()=>`${e(ge).oldNum}-${e(ge).newNum}`),Xe=_(()=>he(e(ge))),tt=_(()=>e(te)===e(Ye)),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),Et=o(gt),rr=O(Et,!0),nr=n(Et,2),ar=O(nr,!0);s(gt);var bt=n(gt,2),sr=O(bt,!0),zt=n(bt,2),wt=o(zt),Ht=o(wt);Ft(Ht,()=>me(e(ge)),!0),s(Ht),s(wt);var or=n(wt,2);{var ir=Pe=>{{let He=_(()=>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(Ye)),get title(){return e(He)},children:(Te,Ge)=>{fe(Te,{get icon(){return Ct}})},$$slots:{default:!0}})}};z(or,Pe=>{P()&&Pe(ir)})}s(zt),s(vt);var Wt=n(vt,2);Be(Wt,19,()=>e(Xe),(Pe,He)=>`${Pe.line}-${He}`,(Pe,He)=>{var Te=mn(),Ge=o(Te);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0),ft=_(()=>Z(e(He)));Qt(Ge,{get annotation(){return e(He)},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(Te),We(3,Te,()=>Oe,()=>({tier:"moderate"})),i(Pe,Te)});var jt=n(Wt,2);{var lr=Pe=>{var He=pn(),Te=o(He),Ge=o(Te);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0);Jt(Ge,{get lineNumber(){return e(nt)},get fileName(){return d()},onSend:U,onClose:ye,get isSending(){return h()}})}s(Te),s(He),i(Pe,He)};z(jt,Pe=>{e(tt)&&e(Xe).length===0&&Pe(lr)})}var dr=n(jt,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:(He,Te)=>{var Ge=Bt(),nt=be(Ge);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(He,Ge)},$$slots:{default:!0}})};z(dr,Pe=>{e(rt)&&Pe(cr)})}M((Pe,He,Te,Ge)=>{ze(vt,1,`group flex ${Pe??""} hover:bg-accent/30 transition-colors`),ze(gt,1,`w-20 shrink-0 flex select-none ${He??""} border-r border-border`),S(rr,e(ge).oldNum??""),S(ar,e(ge).newNum??""),ze(bt,1,`w-5 shrink-0 text-center select-none ${Te??""}`),S(sr,Ge)},[()=>R(e(ge)),()=>ie(e(ge)),()=>A(e(ge)),()=>X(e(ge))]),i(lt,At)};z(er,lt=>{e(xt)&&lt(tr)})}i(De,ut)}),i(ne,je)}),s(V),s(B),s(l),We(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};z(ue,t=>{e(ce)||t(Re)})}return s(re),M(()=>ze(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 H=["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 H[w%H.length]}function D(w){const H=["text-blue-500","text-purple-500","text-emerald-500","text-warning-ink","text-rose-500","text-cyan-500"];return H[w%H.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,H)=>Ve(r,w,H)},h=yn(),J=o(h),K=o(J),pe=O(K,!0);s(J);var Q=n(J,2);return Be(Q,21,d,Lt,(w,H,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),E=n(_e,2),Ie=O(E,!0),me=n(E,2),v=n(o(me),2),R=O(v,!0);s(me),s(Ne),s(ke),M((A,X)=>{ze(he,0,`h-5 w-5 ${A??""}`),S(C,e(H).title),S(Ie,e(H).description),S(R,X)},[()=>D(de),()=>e(H).files.length===1?Se.codeReview_categoriesGrid_fileCount_one({count:e(H).files.length}):Se.codeReview_categoriesGrid_fileCount_many({count:e(H).files.length})]),i(ae,ke)},$$slots:{default:!0}})}}),s(Q),s(h),M(w=>{ze(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 Yt($,r){if(new.target)return Ke({component:Yt,...$});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),D=k(r,"onSendMessage",7),P=k(r,"isSending",7,!1),h=k(r,"class",7,"");function J(C){const E=["bg-blue-500","bg-purple-500","bg-emerald-500","bg-warning","bg-rose-500","bg-cyan-500"];return E[C%E.length]}const K=_(()=>d().files.map(C=>{const E=b().get(C.path);return{...C,patch:E?.patch,additions:E?.additions??0,deletions:E?.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 D()},set onSendMessage(C){D(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,E)=>Ve(r,C,E)},Q=Rn(),w=o(Q),H=o(w),de=o(H),ce=n(de,2);{var ae=C=>{var E=$n();i(C,E)};z(ce,C=>{(!u()||e(K).length>0)&&C(ae)})}s(H);var te=n(H,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 Be(_e,23,()=>e(K),(C,E)=>`${m()}-${E}`,(C,E,Ie)=>{var me=Nn(),v=o(me),R=o(v);st(2),s(v);var A=n(v,2),X=o(A);{var ie=Ce=>{It(Ce,{get fileName(){return e(E).path},get patch(){return e(E).patch},get annotations(){return e(E).annotations},get additions(){return e(E).additions},get deletions(){return e(E).deletions},get fileDescription(){return e(E).summary},get onSendMessage(){return D()},get isSending(){return P()},class:"rounded-lg border border-border overflow-hidden"})},$e=Ce=>{var ye=Sn(),U=o(ye),T=n(o(U),2),f=O(T,!0);s(U);var W=n(U,2);{var F=le=>{var a=Cn(),j=O(a,!0);M(()=>S(j,e(E).summary)),i(le,a)};z(W,le=>{e(E).summary&&le(F)})}s(ye),M(()=>S(f,e(E).path)),i(Ce,ye)};z(X,Ce=>{e(E).patch?Ce(ie):Ce($e,-1)})}s(A),s(me),M(()=>ze(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=>{ze(Q,1,`walkthrough-category-section ${h()??""}`),zr(Q,"id",`category-${m()??""}`),ze(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>"),En=x('<div class="space-y-8 pt-4"></div>'),zn=x('<!> <!> <span class="text-sm font-medium text-subtle"> </span>',1),Hn=x('<div class="space-y-3 pt-2"></div>'),Wn=x('<div class="pt-4 border-t border-border"><!> <!></div>'),jn=x('<div class="flex justify-end pt-2"><!></div>'),Dn=x('<div class="space-y-6"><!> <!> <!> <!> <!> <!></div>'),Tn=x('<div class="px-4 pb-4"><!> <!> <!></div>'),Fn=x('<div class="border-t border-border"><!> <!></div>');function Xt($,r){if(new.target)return Ke({component:Xt,...$});Je(r,!0);let d=k(r,"walkthrough",7),m=k(r,"status",7),b=k(r,"workspaceId",7),u=k(r,"error",7,""),D=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"),H=_(()=>!!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((X,ie)=>X.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((X,ie)=>X.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()||!D())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 X=Ne(R,A.oldContent,A.newContent);if(X){const ie=P().find($e=>$e.relativePath===R);e(ae).set(R,{patch:X,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 X=R.split(`
@@ -1,4 +1,4 @@
1
- import{f as o,bC as te,aO as H,c4 as fe,b4 as ye,b8 as be,bU as me,cd as ke,ax as K,c2 as F,bB as Ee,J as _e,bk as Se,by as ce,as as le}from"./C9AXCraB.js";import{g as Ne}from"./Cs20ySp7.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],B=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],U=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(B,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:U}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:U}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
1
+ import{f as o,bC as te,aO as H,c4 as fe,b4 as ye,b8 as be,bU as me,cd as ke,ax as K,c2 as F,bB as Ee,J as _e,bk as Se,by as ce,as as le}from"./BHwB2t2J.js";import{g as Ne}from"./B5WfnJ_I.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],B=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],U=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(B,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:U}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:U}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(_==re?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(x[0]){case 1:r.push(_),u.push(b.yytext),t.push(b.yylloc),r.push(x[1]),_=null,ie=b.yyleng,c=b.yytext,W=b.yylineno,q=b.yylloc;break;case 2:if(C=this.productions_[x[1]][1],j.$=u[u.length-C],j._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(j._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(j,[c,ie,W,R.yy,x[1],u,t].concat(ge)),typeof Q<"u")return Q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(j.$),t.push(j._$),oe=M[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},Y=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(s,n){return this.yy=n||this.yy||{},this._input=s,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:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var n=s.length,r=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=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),r.length-1&&(this.yylineno-=r.length-1);var u=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:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -0,0 +1 @@
1
+ import{d as a,C as n}from"./BHwB2t2J.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
@@ -1 +1 @@
1
- import{b as t,a,s as r,S as s}from"./C7RFabs2.js";import{a as i}from"./Dr_LoEnL.js";import"./C9AXCraB.js";import"./ntY1kBD_.js";var u={parser:r,get db(){return new s(2)},renderer:a,styles:t,init:i(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{u as diagram};
1
+ import{b as t,a,s as r,S as s}from"./Uvf94Vit.js";import{a as i}from"./DU5u4CoB.js";import"./BHwB2t2J.js";import"./4LCvEsVS.js";var u={parser:r,get db(){return new s(2)},renderer:a,styles:t,init:i(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};export{u as diagram};
@@ -1,3 +1,3 @@
1
- import{t as D,bq as d,a_ as P,by as b,b as S}from"./COCO5InB.js";import{bs as A,a7 as C,ay as M,W as N,bn as $,aA as m,aD as i,c9 as c}from"./B8o4lNgr.js";import{D as f,M as x}from"./C9AXCraB.js";import{S as z,p as B}from"./DEdfIv3e.js";import{N as W}from"./CcUy0MZb.js";import{G2 as j,tf as E,b9 as J}from"./BjFoJgFv.js";import{N as K}from"./Chf_Fl2B.js";import{$ as O}from"./DUT4V6mb.js";function R(l,s){if(new.target)return D({component:R,...l});A(s,!0);let o=d(s,"kind",7),t=d(s,"source",7),a=d(s,"workspaceId",7);const g=new W,p=c(()=>{if(o()==="mermaid")return null;const e=g.parseMarkdown(`\`\`\`ws-block:diagram
1
+ import{t as D,bq as d,a_ as P,by as b,b as S}from"./COCO5InB.js";import{bs as A,a7 as C,ay as M,W as N,bn as $,aA as m,aD as i,c9 as c}from"./B8o4lNgr.js";import{D as f,M as x}from"./BHwB2t2J.js";import{S as z,p as B}from"./DAPK9slU.js";import{N as W}from"./D6eVIgjz.js";import{G2 as j,tf as E,b9 as J}from"./BjFoJgFv.js";import{N as K}from"./172GvQgx.js";import{$ as O}from"./DUT4V6mb.js";function R(l,s){if(new.target)return D({component:R,...l});A(s,!0);let o=d(s,"kind",7),t=d(s,"source",7),a=d(s,"workspaceId",7);const g=new W,p=c(()=>{if(o()==="mermaid")return null;const e=g.parseMarkdown(`\`\`\`ws-block:diagram
2
2
  ${t()}
3
3
  \`\`\``)[0],r=e?.primitive.type==="diagram"?JSON.stringify(e.primitive):t();return B(r,!0)});function k(e,r){if(!a()||!r.target)return;const n={openInAdjacentPanel:e.metaKey||e.ctrlKey,sourcePanelId:e.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0};r.type==="file"?j.dispatch(E(a(),r.target,n)):r.type==="note"&&K(O(r.target,a()),{...n,workspaceId:J(a()),event:e})}var w={get kind(){return o()},set kind(e){o(e),m()},get source(){return t()},set source(e){t(e),m()},get workspaceId(){return a()},set workspaceId(e){a(e),m()},$set:b,$on:(e,r)=>S(s,e,r)},u=C(),y=M(u);{var I=e=>{f(e,{kind:"mermaid",rendererOwnsActions:!0,children:(r,n)=>{x(r,{get code(){return t()},showExportButton:!0})},$$slots:{default:!0}})},_=e=>{f(e,{kind:"custom",children:(r,n)=>{{let h=c(()=>i(p)?.diagram??null),v=c(()=>i(p)?.error);z(r,{get diagram(){return i(h)},get source(){return t()},get sourceError(){return i(v)},onBindingClick:k})}},$$slots:{default:!0}})};P(y,e=>{o()==="mermaid"?e(I):e(_,-1)})}return N(l,u),$(w)}export{R as default};
@@ -1 +1 @@
1
- import{t as pt,bq as S,a_ as q,by as bt,bs as Pt,b as Ct,bo as vt,bu as h}from"./COCO5InB.js";import{bs as $t,ca as E,aD as n,c9 as i,a7 as L,ay as _,W as w,bn as kt,bS as yt,aA as B,aB as St}from"./B8o4lNgr.js";import{B as _t}from"./Cdhgfy6h.js";import{c as wt}from"./oALOmsvi.js";import{aU as Bt}from"./D-pCMoMn.js";import{G2 as u,ei as It,ej as Ut,Gz as Wt,GN as Rt,GE as Tt,t3 as Dt,mZ as V}from"./BjFoJgFv.js";import{g as At}from"./CoSk1zgY.js";import{bx as Ft,bz as Ht,dj as xt}from"./DUT4V6mb.js";import{C as f}from"./DypB-Dwi.js";import"./BQ3bMc6Z.js";import"./Crs9I2MT.js";import"./Dck4Okga.js";import{bb as Mt}from"./BDq7EC2K.js";import"./C5Xi5eLp.js";import"./Chf_Fl2B.js";import{T as Nt}from"./C1KS3a3w.js";import"./1jz3AJ7K.js";import{M as Gt}from"./CpWqDujk.js";import{V as qt}from"./DQPsLJmj.js";import{O as Et}from"./xVOajdtP.js";import{bC as Lt,bA as Vt,aX as jt}from"./CcUy0MZb.js";import{i as zt}from"./H2jLkRRS.js";var Kt=St("<!> <!>",1);function Ot(I,p){if(new.target)return pt({component:Ot,...I});$t(p,!0);const U=()=>h(et,"$workspace",l),P=()=>h(Q,"$ftChanges$",l),j=()=>h(Y,"$ftCommits$",l),W=()=>h(Z,"$foldUnchanged",l),R=()=>h(X,"$lineWrapping",l),T=()=>h(J,"$diffSideBySide",l),[l,z]=Pt(),K=t=>{qt(t,{embedded:!0,get foldEnabled(){return W()},onToggleFold:()=>u.dispatch(Tt()),get wrapEnabled(){return R()},onToggleWrap:()=>u.dispatch(Rt()),get splitEnabled(){return T()},onToggleSplit:()=>u.dispatch(Wt())})},O=t=>{var e=Kt(),r=_(e);{let m=i(()=>vt.layout_diffHeader_goToFile_tooltip());wt(r,()=>Gt,(y,ht)=>{ht(y,{get icon(){return Mt},get label(){return n(m)},onclick:Xt=>ft()})})}var s=yt(r,2);{var d=m=>{Et(m,{get filePath(){return n($)},get workspaceId(){return o()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return n(v)}})};q(s,m=>{n($)&&m(d)})}w(t,e)},X=Lt(),Z=Vt(),J=jt();let a=S(p,"tab",7),o=S(p,"workspaceId",7),b=S(p,"isActive",7);const C=Bt(()=>o()),Q=Ft(C),Y=Ht(C),tt=new Set([f.Committed,f.Pushed,f.PullRequest,f.Merged,f.Trunk]),D=At(),et=xt(C),nt=i(()=>U()?.worktreePath||U()?.repositoryPath||void 0);E(()=>{const t=o();if(!(!b()||!t||n(c)))return u.dispatch(It(t,"all")),()=>u.dispatch(Ut(t,"all"))});const c=i(()=>a().data?.gitRootId),A=i(()=>a().data?.gitRootPath),v=i(()=>n(A)||n(nt)),$=i(()=>a().diffPath&&n(v)?zt(a().diffPath)?a().diffPath:`${n(v)}/${a().diffPath}`:null);function F(t,e){return!!(t.file===e||t.relativePath===e||t.relativePath&&e.endsWith("/"+t.relativePath)||t.file&&e.endsWith("/"+t.file)||t.relativePath&&t.relativePath.endsWith("/"+e)||t.file&&t.file.endsWith("/"+e))}function H(t){return!t||n(c)?null:P().find(e=>F(e,t)&&(e.stage==="staged"||e.stage==="unstaged"))??null}function at(t){if(!t||n(c))return null;let e=null,r=-1/0;for(const s of P()){if(!F(s,t)||!tt.has(s.stage)||!s.commitHash)continue;const d=s.attribution?.timestamp??0;d>=r&&(e=s,r=d)}return e}function it(t,e){return!!(t===e||e.endsWith("/"+t)||t.endsWith("/"+e))}function rt(t){if(!t||n(c))return null;for(const e of j())if(e?.hash&&e.files?.some(r=>r?.path&&it(r.path,t)))return{id:`diff-${t}-${e.hash}`,file:t,relativePath:t,status:"modified",stage:f.Committed,commitHash:e.hash,stats:{additions:0,deletions:0},attribution:{timestamp:e.timestamp??Date.now()}};return null}const x=i(()=>a().diffPath?H(a().diffPath):null),st=i(()=>{if(!a().diffPath)return 0;const t=H(a().diffPath),e=P().length;if(t){const r=t.stage==="staged"?1:t.stage==="unstaged"?2:3,s=(t.stats?.additions||0)+(t.stats?.deletions||0),d=t.attribution?.timestamp?t.attribution.timestamp%1e5:0;return r*1e6+s*1e3+d+e}return e}),g=i(()=>a().data?.change),M=i(()=>a().data?.branchBaseRef),N=i(()=>a().data?.branchBaseCommitSha),ot=i(()=>!!(n(M)||n(N))),k=i(()=>{if(n(g)?.commitHash)return n(g);if(n(x))return n(x);if(n(ot)&&n(g))return n(g);const t=at(a().diffPath??null);if(t)return t;const e=rt(a().diffPath??null);return e||(n(g)?n(g):{id:`diff-${a().diffPath}`,file:a().diffPath||"",relativePath:a().diffPath||"",status:"modified",stage:f.Unstaged,stats:{additions:0,deletions:0},attribution:{timestamp:Date.now()}})});function ft(t){if(!a().diffPath)return;const r={type:"file",title:a().diffPath.split("/").pop()||a().diffPath,closable:!0,filePath:n($)||a().diffPath,workspaceId:o()};u.dispatch(Dt(o(),r))}E(()=>{!D||!b()||D.registerActions({display:K,actions:O})});function dt(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"stageHunk",filePath:t,hunkPatch:e,source:"diff"}))}function ut(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"unstageHunk",filePath:t,hunkPatch:e,source:"diff"}))}var ct={get tab(){return a()},set tab(t){a(t),B()},get workspaceId(){return o()},set workspaceId(t){o(t),B()},get isActive(){return b()},set isActive(t){b(t),B()},$set:bt,$on:(t,e)=>Ct(p,t,e)},G=L(),mt=_(G);{var lt=t=>{var e=L(),r=_(e);_t(r,()=>a().diffPath,s=>{{let d=i(()=>T()?"split":"unified"),m=i(()=>!n(c)&&n(k).stage===f.Unstaged?dt:void 0),y=i(()=>!n(c)&&n(k).stage===f.Staged?ut:void 0);Nt(s,{get active(){return b()},get change(){return n(k)},get workspaceId(){return o()},get viewMode(){return n(d)},get foldUnchanged(){return W()},get lineWrapping(){return R()},get refreshKey(){return n(st)},get branchBaseRef(){return n(M)},get branchBaseCommitSha(){return n(N)},get gitRootId(){return n(c)},get gitRootPath(){return n(A)},get onStageHunk(){return n(m)},get onUnstageHunk(){return n(y)}})}}),w(t,e)};q(mt,t=>{a().diffPath&&t(lt)})}w(I,G);var gt=kt(ct);return z(),gt}export{Ot as default};
1
+ import{t as pt,bq as S,a_ as q,by as bt,bs as Pt,b as Ct,bo as vt,bu as h}from"./COCO5InB.js";import{bs as $t,ca as E,aD as n,c9 as i,a7 as L,ay as _,W as w,bn as kt,bS as yt,aA as B,aB as St}from"./B8o4lNgr.js";import{B as _t}from"./Cdhgfy6h.js";import{c as wt}from"./oALOmsvi.js";import{aU as Bt}from"./BCYRUItZ.js";import{G2 as u,ei as It,ej as Ut,Gz as Wt,GN as Rt,GE as Tt,t3 as Dt,mZ as V}from"./BjFoJgFv.js";import{g as At}from"./CoSk1zgY.js";import{bx as Ft,bz as Ht,dj as xt}from"./DUT4V6mb.js";import{C as f}from"./DypB-Dwi.js";import"./3sa2ZSPC.js";import"./Crs9I2MT.js";import"./Dck4Okga.js";import{bb as Mt}from"./BDq7EC2K.js";import"./C5Xi5eLp.js";import"./172GvQgx.js";import{T as Nt}from"./oTkHTTGI.js";import"./1jz3AJ7K.js";import{M as Gt}from"./CpWqDujk.js";import{V as qt}from"./DQPsLJmj.js";import{O as Et}from"./Bn4hj7HG.js";import{bC as Lt,bA as Vt,aX as jt}from"./D6eVIgjz.js";import{i as zt}from"./H2jLkRRS.js";var Kt=St("<!> <!>",1);function Ot(I,p){if(new.target)return pt({component:Ot,...I});$t(p,!0);const U=()=>h(et,"$workspace",l),P=()=>h(Q,"$ftChanges$",l),j=()=>h(Y,"$ftCommits$",l),W=()=>h(Z,"$foldUnchanged",l),R=()=>h(X,"$lineWrapping",l),T=()=>h(J,"$diffSideBySide",l),[l,z]=Pt(),K=t=>{qt(t,{embedded:!0,get foldEnabled(){return W()},onToggleFold:()=>u.dispatch(Tt()),get wrapEnabled(){return R()},onToggleWrap:()=>u.dispatch(Rt()),get splitEnabled(){return T()},onToggleSplit:()=>u.dispatch(Wt())})},O=t=>{var e=Kt(),r=_(e);{let m=i(()=>vt.layout_diffHeader_goToFile_tooltip());wt(r,()=>Gt,(y,ht)=>{ht(y,{get icon(){return Mt},get label(){return n(m)},onclick:Xt=>ft()})})}var s=yt(r,2);{var d=m=>{Et(m,{get filePath(){return n($)},get workspaceId(){return o()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return n(v)}})};q(s,m=>{n($)&&m(d)})}w(t,e)},X=Lt(),Z=Vt(),J=jt();let a=S(p,"tab",7),o=S(p,"workspaceId",7),b=S(p,"isActive",7);const C=Bt(()=>o()),Q=Ft(C),Y=Ht(C),tt=new Set([f.Committed,f.Pushed,f.PullRequest,f.Merged,f.Trunk]),D=At(),et=xt(C),nt=i(()=>U()?.worktreePath||U()?.repositoryPath||void 0);E(()=>{const t=o();if(!(!b()||!t||n(c)))return u.dispatch(It(t,"all")),()=>u.dispatch(Ut(t,"all"))});const c=i(()=>a().data?.gitRootId),A=i(()=>a().data?.gitRootPath),v=i(()=>n(A)||n(nt)),$=i(()=>a().diffPath&&n(v)?zt(a().diffPath)?a().diffPath:`${n(v)}/${a().diffPath}`:null);function F(t,e){return!!(t.file===e||t.relativePath===e||t.relativePath&&e.endsWith("/"+t.relativePath)||t.file&&e.endsWith("/"+t.file)||t.relativePath&&t.relativePath.endsWith("/"+e)||t.file&&t.file.endsWith("/"+e))}function H(t){return!t||n(c)?null:P().find(e=>F(e,t)&&(e.stage==="staged"||e.stage==="unstaged"))??null}function at(t){if(!t||n(c))return null;let e=null,r=-1/0;for(const s of P()){if(!F(s,t)||!tt.has(s.stage)||!s.commitHash)continue;const d=s.attribution?.timestamp??0;d>=r&&(e=s,r=d)}return e}function it(t,e){return!!(t===e||e.endsWith("/"+t)||t.endsWith("/"+e))}function rt(t){if(!t||n(c))return null;for(const e of j())if(e?.hash&&e.files?.some(r=>r?.path&&it(r.path,t)))return{id:`diff-${t}-${e.hash}`,file:t,relativePath:t,status:"modified",stage:f.Committed,commitHash:e.hash,stats:{additions:0,deletions:0},attribution:{timestamp:e.timestamp??Date.now()}};return null}const x=i(()=>a().diffPath?H(a().diffPath):null),st=i(()=>{if(!a().diffPath)return 0;const t=H(a().diffPath),e=P().length;if(t){const r=t.stage==="staged"?1:t.stage==="unstaged"?2:3,s=(t.stats?.additions||0)+(t.stats?.deletions||0),d=t.attribution?.timestamp?t.attribution.timestamp%1e5:0;return r*1e6+s*1e3+d+e}return e}),g=i(()=>a().data?.change),M=i(()=>a().data?.branchBaseRef),N=i(()=>a().data?.branchBaseCommitSha),ot=i(()=>!!(n(M)||n(N))),k=i(()=>{if(n(g)?.commitHash)return n(g);if(n(x))return n(x);if(n(ot)&&n(g))return n(g);const t=at(a().diffPath??null);if(t)return t;const e=rt(a().diffPath??null);return e||(n(g)?n(g):{id:`diff-${a().diffPath}`,file:a().diffPath||"",relativePath:a().diffPath||"",status:"modified",stage:f.Unstaged,stats:{additions:0,deletions:0},attribution:{timestamp:Date.now()}})});function ft(t){if(!a().diffPath)return;const r={type:"file",title:a().diffPath.split("/").pop()||a().diffPath,closable:!0,filePath:n($)||a().diffPath,workspaceId:o()};u.dispatch(Dt(o(),r))}E(()=>{!D||!b()||D.registerActions({display:K,actions:O})});function dt(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"stageHunk",filePath:t,hunkPatch:e,source:"diff"}))}function ut(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"unstageHunk",filePath:t,hunkPatch:e,source:"diff"}))}var ct={get tab(){return a()},set tab(t){a(t),B()},get workspaceId(){return o()},set workspaceId(t){o(t),B()},get isActive(){return b()},set isActive(t){b(t),B()},$set:bt,$on:(t,e)=>Ct(p,t,e)},G=L(),mt=_(G);{var lt=t=>{var e=L(),r=_(e);_t(r,()=>a().diffPath,s=>{{let d=i(()=>T()?"split":"unified"),m=i(()=>!n(c)&&n(k).stage===f.Unstaged?dt:void 0),y=i(()=>!n(c)&&n(k).stage===f.Staged?ut:void 0);Nt(s,{get active(){return b()},get change(){return n(k)},get workspaceId(){return o()},get viewMode(){return n(d)},get foldUnchanged(){return W()},get lineWrapping(){return R()},get refreshKey(){return n(st)},get branchBaseRef(){return n(M)},get branchBaseCommitSha(){return n(N)},get gitRootId(){return n(c)},get gitRootPath(){return n(A)},get onStageHunk(){return n(m)},get onUnstageHunk(){return n(y)}})}}),w(t,e)};q(mt,t=>{a().diffPath&&t(lt)})}w(I,G);var gt=kt(ct);return z(),gt}export{Ot as default};
@@ -1,4 +1,4 @@
1
- import{bo as b,t as wt,bq as H,a_ as D,by as Tt,bs as xt,b as kt,bu as N}from"./COCO5InB.js";import{bs as It,ca as K,aD as t,a7 as At,ay as Q,W as w,bn as Pt,bS as F,c9 as f,aA as M,aB as x,a5 as I,bA as A,bl as P,b_ as B,bO as S}from"./B8o4lNgr.js";import{B as St}from"./Cdhgfy6h.js";import{c as Wt}from"./oALOmsvi.js";import{C as q}from"./DypB-Dwi.js";import{L as $t}from"./D8dE5NKO.js";import"./BQ3bMc6Z.js";import"./Crs9I2MT.js";import"./Dck4Okga.js";import{bb as Dt}from"./BDq7EC2K.js";import"./C5Xi5eLp.js";import"./Chf_Fl2B.js";import{G2 as E,Gz as Nt,GN as Ft,GE as Bt,t3 as Et}from"./BjFoJgFv.js";import{T as Lt}from"./C1KS3a3w.js";import{g as Ut}from"./CoSk1zgY.js";import{dj as Ot}from"./DUT4V6mb.js";import{bC as jt,bA as Gt,aX as Ht}from"./CcUy0MZb.js";import"./1jz3AJ7K.js";import{M as Mt}from"./CpWqDujk.js";import{V as Vt}from"./DQPsLJmj.js";import{O as qt}from"./xVOajdtP.js";import{c as Rt}from"./ChTqQfQN.js";import{i as zt}from"./H2jLkRRS.js";const T=new $t({category:"change-converters"});function V(e,n){return e.path||e.file||e.filePath||e.relativePath||n?.filePath}function Y(e,n){return{additions:e.additions??n?.additions??0,deletions:e.deletions??n?.deletions??0,binary:e.binary??!1}}function Xt(e,n){if(n.actor?.type==="agent"&&n.actor.id){const r=n.actor;return{agentId:r.id,agentName:r.name||b.fileTracking_changeTimeline_agent_fallback(),sessionId:r.sessionId||e.sessionId||"",turnNumber:r.turnNumber??e.turnNumber??0,messageId:r.messageId,timestamp:new Date(n.timestamp).getTime()}}if(e.agentId)return{agentId:e.agentId,agentName:e.agentName||b.fileTracking_changeTimeline_agent_fallback(),sessionId:e.sessionId||"",turnNumber:e.turnNumber||0,timestamp:new Date(n.timestamp).getTime()}}function Z(e,n){return{timestamp:new Date(e.timestamp).getTime(),manual:e.actor?.type==="user",agent:Xt(n,e)}}function tt(e,n){return{oldContent:n?.oldContent??e.oldContent,newContent:n?.newContent??e.newContent,diff:e.diff??n?.diff}}function et(e,n,r){return r!==void 0?`${e}-${n}-${r}`:`${e}-${n}`}function Jt(e){try{const n=e.data||{},r=e.codeChange;T.debug("Converting event to TrackedChange",{eventType:e.type,eventId:e.id,hasData:!!n,hasCodeChange:!!r});const c=V(n,r);if(e.type.startsWith("file:")&&c){const d=Y(n,r);return T.debug("Creating TrackedChange for file event",{filePath:c,stats:d,hasDiff:!!(n.diff||r?.diff)}),[{id:et("event",e.id),file:c,relativePath:c,stage:q.Unstaged,stats:d,attribution:Z(e,n),content:tt(n,r)}]}return(e.type==="agent:completed"||e.type.startsWith("agent:"))&&n.fileChanges&&Array.isArray(n.fileChanges)?(T.debug("Creating TrackedChanges for agent event",{eventType:e.type,fileChangesCount:n.fileChanges.length,agentId:n.agentId}),n.fileChanges.filter(d=>V(d)?!0:(T.warn("Skipping file change without path",{change:d}),!1)).map((d,s)=>{const v=V(d);if(!v)throw new Error("file change without path");return{id:et("event",e.id,s),file:v,relativePath:v,stage:q.Unstaged,stats:Y(d),attribution:Z(e,n),content:tt(d)}})):(T.debug("No TrackedChanges created for event",{eventType:e.type,eventId:e.id,hasFilePath:!!c,hasFileChanges:!!(n.fileChanges&&Array.isArray(n.fileChanges))}),[])}catch(n){return T.error("Error converting event to TrackedChange",n instanceof Error?n:new Error(String(n)),{eventType:e.type,eventId:e.id}),[]}}function Kt(e){if(!e)return{oldContent:"",newContent:""};const n=[],r=[],c=e.split(`
1
+ import{bo as b,t as wt,bq as H,a_ as D,by as Tt,bs as xt,b as kt,bu as N}from"./COCO5InB.js";import{bs as It,ca as K,aD as t,a7 as At,ay as Q,W as w,bn as Pt,bS as F,c9 as f,aA as M,aB as x,a5 as I,bA as A,bl as P,b_ as B,bO as S}from"./B8o4lNgr.js";import{B as St}from"./Cdhgfy6h.js";import{c as Wt}from"./oALOmsvi.js";import{C as q}from"./DypB-Dwi.js";import{L as $t}from"./D8dE5NKO.js";import"./3sa2ZSPC.js";import"./Crs9I2MT.js";import"./Dck4Okga.js";import{bb as Dt}from"./BDq7EC2K.js";import"./C5Xi5eLp.js";import"./172GvQgx.js";import{G2 as E,Gz as Nt,GN as Ft,GE as Bt,t3 as Et}from"./BjFoJgFv.js";import{T as Lt}from"./oTkHTTGI.js";import{g as Ut}from"./CoSk1zgY.js";import{dj as Ot}from"./DUT4V6mb.js";import{bC as jt,bA as Gt,aX as Ht}from"./D6eVIgjz.js";import"./1jz3AJ7K.js";import{M as Mt}from"./CpWqDujk.js";import{V as Vt}from"./DQPsLJmj.js";import{O as qt}from"./Bn4hj7HG.js";import{c as Rt}from"./ChTqQfQN.js";import{i as zt}from"./H2jLkRRS.js";const T=new $t({category:"change-converters"});function V(e,n){return e.path||e.file||e.filePath||e.relativePath||n?.filePath}function Y(e,n){return{additions:e.additions??n?.additions??0,deletions:e.deletions??n?.deletions??0,binary:e.binary??!1}}function Xt(e,n){if(n.actor?.type==="agent"&&n.actor.id){const r=n.actor;return{agentId:r.id,agentName:r.name||b.fileTracking_changeTimeline_agent_fallback(),sessionId:r.sessionId||e.sessionId||"",turnNumber:r.turnNumber??e.turnNumber??0,messageId:r.messageId,timestamp:new Date(n.timestamp).getTime()}}if(e.agentId)return{agentId:e.agentId,agentName:e.agentName||b.fileTracking_changeTimeline_agent_fallback(),sessionId:e.sessionId||"",turnNumber:e.turnNumber||0,timestamp:new Date(n.timestamp).getTime()}}function Z(e,n){return{timestamp:new Date(e.timestamp).getTime(),manual:e.actor?.type==="user",agent:Xt(n,e)}}function tt(e,n){return{oldContent:n?.oldContent??e.oldContent,newContent:n?.newContent??e.newContent,diff:e.diff??n?.diff}}function et(e,n,r){return r!==void 0?`${e}-${n}-${r}`:`${e}-${n}`}function Jt(e){try{const n=e.data||{},r=e.codeChange;T.debug("Converting event to TrackedChange",{eventType:e.type,eventId:e.id,hasData:!!n,hasCodeChange:!!r});const c=V(n,r);if(e.type.startsWith("file:")&&c){const d=Y(n,r);return T.debug("Creating TrackedChange for file event",{filePath:c,stats:d,hasDiff:!!(n.diff||r?.diff)}),[{id:et("event",e.id),file:c,relativePath:c,stage:q.Unstaged,stats:d,attribution:Z(e,n),content:tt(n,r)}]}return(e.type==="agent:completed"||e.type.startsWith("agent:"))&&n.fileChanges&&Array.isArray(n.fileChanges)?(T.debug("Creating TrackedChanges for agent event",{eventType:e.type,fileChangesCount:n.fileChanges.length,agentId:n.agentId}),n.fileChanges.filter(d=>V(d)?!0:(T.warn("Skipping file change without path",{change:d}),!1)).map((d,s)=>{const v=V(d);if(!v)throw new Error("file change without path");return{id:et("event",e.id,s),file:v,relativePath:v,stage:q.Unstaged,stats:Y(d),attribution:Z(e,n),content:tt(d)}})):(T.debug("No TrackedChanges created for event",{eventType:e.type,eventId:e.id,hasFilePath:!!c,hasFileChanges:!!(n.fileChanges&&Array.isArray(n.fileChanges))}),[])}catch(n){return T.error("Error converting event to TrackedChange",n instanceof Error?n:new Error(String(n)),{eventType:e.type,eventId:e.id}),[]}}function Kt(e){if(!e)return{oldContent:"",newContent:""};const n=[],r=[],c=e.split(`
2
2
  `);c.length>0&&c[c.length-1]===""&&c.pop();let d=!1;for(const s of c)if(!(s.startsWith("diff --git")||s.startsWith("index ")||s.startsWith("--- ")||s.startsWith("+++ ")||s.startsWith("\"))){if(s.startsWith("@@")){d=!0;continue}d&&(s.startsWith("+")?r.push(s.slice(1)):s.startsWith("-")?n.push(s.slice(1)):s.startsWith(" ")?(n.push(s.slice(1)),r.push(s.slice(1))):s===""&&(n.push(""),r.push("")))}return{oldContent:n.join(`
3
3
  `),newContent:r.join(`
4
4
  `)}}var Qt=x("<!> <!>",1),Yt=x('<div class="flex items-center gap-1.5 px-3 py-1.5 text-xs text-subtle bg-muted/50 border-b border-border"><span> </span></div>'),Zt=x('<div class="flex flex-col h-full"><!> <div class="flex-1 min-h-0"><!></div></div>'),te=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <p class="text-xs opacity-70"> </p></div>'),ee=x('<p class="text-xs opacity-70"> </p>'),ne=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <!></div>');function ae(e,n){if(new.target)return wt({component:ae,...e});It(n,!0);const r=()=>N(lt,"$workspace",v),c=()=>N(st,"$foldUnchanged",v),d=()=>N(rt,"$lineWrapping",v),s=()=>N(ot,"$diffSideBySide",v),[v,nt]=xt(),at=a=>{Vt(a,{embedded:!0,get foldEnabled(){return c()},onToggleFold:()=>E.dispatch(Bt()),get wrapEnabled(){return d()},onToggleWrap:()=>E.dispatch(Ft()),get splitEnabled(){return s()},onToggleSplit:()=>E.dispatch(Nt())})},it=a=>{var i=Qt(),g=Q(i);{let m=f(()=>b.layout_diffHeader_goToFile_tooltip());Wt(g,()=>Mt,(l,h)=>{h(l,{get icon(){return Dt},get label(){return t(m)},onclick:$=>ut()})})}var C=F(g,2);{var y=m=>{qt(m,{get filePath(){return t(z)},get workspaceId(){return _()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return t(O)}})};D(C,m=>{t(z)&&m(y)})}w(a,i)},rt=jt(),st=Gt(),ot=Ht(),dt=Rt("ActivityChangesTabType");let L=H(n,"tab",7),_=H(n,"workspaceId",7),U=H(n,"isActive",7);const R=Ut(),lt=Ot(_()),O=f(()=>r()?.worktreePath||r()?.repositoryPath||void 0),o=f(()=>L().data?.event),ct=f(()=>t(o)?Jt(t(o)):[]),u=f(()=>t(ct)[0]),p=f(()=>t(u)?.relativePath||t(u)?.file||null),z=f(()=>t(p)&&t(O)?zt(t(p))?t(p):`${t(O)}/${t(p)}`:null),j=f(()=>()=>{if(!t(o))return null;const a=t(o).data,i=t(o).codeChange;return a?.diff||i?.diff||t(u)?.content?.diff||null}),X=f(()=>()=>t(u)?.content?!!(t(u).content.oldContent&&t(u).content.newContent):!1);function ft(a){if(!a)return;const i=a.match(/@@ -(\d+)/);return i?parseInt(i[1],10):void 0}const k=f(()=>{if(t(X)()&&t(u)?.content)return{oldContent:t(u).content.oldContent??"",newContent:t(u).content.newContent??""};const a=t(j)();return a?Kt(a):null}),W=f(()=>ft(t(j)())),pt=f(()=>t(W)!==void 0&&t(W)>1),gt=f(()=>{const a=t(p)||"",i=t(o)?.data||{};return{id:`activity-${t(o)?.id||"unknown"}-${a}`,file:a,relativePath:a,stage:q.Committed,status:t(u)?.status||"modified",stats:{additions:i?.additions||t(u)?.stats?.additions||0,deletions:i?.deletions||t(u)?.stats?.deletions||0},attribution:{timestamp:t(o)?.timestamp?new Date(t(o).timestamp).getTime():Date.now()},content:t(k)?{oldContent:t(k).oldContent,newContent:t(k).newContent}:void 0}});function ut(a){if(!t(p))return;const g={type:"file",title:t(p).split("/").pop()||t(p),closable:!0,filePath:t(p),workspaceId:_()};E.dispatch(Et(_(),g))}K(()=>{!R||!U()||R.registerActions({display:at,actions:it})}),K(()=>{if(t(o)){const a=t(o).data;dt.debug("Activity event diff info",{eventType:t(o).type,eventId:t(o).id,filePath:t(p),hasDiffString:!!t(j)(),hasOldNewContent:t(X)(),hasDiffContents:!!t(k),dataAdditions:a?.additions,dataDeletions:a?.deletions})}});var ht={get tab(){return L()},set tab(a){L(a),M()},get workspaceId(){return _()},set workspaceId(a){_(a),M()},get isActive(){return U()},set isActive(a){U(a),M()},$set:Tt,$on:(a,i)=>kt(n,a,i)},J=At(),mt=Q(J);{var vt=a=>{var i=Zt(),g=I(i);{var C=l=>{var h=Yt(),$=I(h),G=P($,!0);A(h),B(_t=>S(G,_t),[()=>b.layout_activityChanges_partialDiff_label({line:t(W)??0})]),w(l,h)};D(g,l=>{t(pt)&&l(C)})}var y=F(g,2),m=I(y);St(m,()=>`${t(o)?.id}-${t(p)}`,l=>{{let h=f(()=>s()?"split":"unified");Lt(l,{get change(){return t(gt)},get workspaceId(){return _()},get viewMode(){return t(h)},get foldUnchanged(){return c()},get lineWrapping(){return d()},get lineOffset(){return t(W)}})}}),A(y),A(i),w(a,i)},Ct=a=>{var i=te(),g=I(i),C=P(g,!0),y=F(g,2),m=P(y,!0);A(i),B((l,h)=>{S(C,l),S(m,h)},[()=>b.layout_activityChanges_noDiffStored_label(),()=>b.layout_activityChanges_diffNotCaptured_description()]),w(a,i)},yt=a=>{var i=ne(),g=I(i),C=P(g,!0),y=F(g,2);{var m=l=>{var h=ee(),$=P(h,!0);B(G=>S($,G),[()=>b.layout_activityChanges_eventType_label({type:t(o).type})]),w(l,h)};D(y,l=>{t(o)&&l(m)})}A(i),B(l=>S(C,l),[()=>b.layout_activityChanges_noChanges_label()]),w(a,i)};D(mt,a=>{t(p)&&t(k)?a(vt):t(p)?a(Ct,1):a(yt,-1)})}w(e,J);var bt=Pt(ht);return nt(),bt}export{ae as default};
@@ -1,2 +1,2 @@
1
- import{t as ht,bq as g,bo as m,a_ as p,by as bt,b as xt}from"./COCO5InB.js";import{bs as yt,a7 as kt,ay as Q,W as u,bn as At,aA as h,a5 as F,bS as f,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as Ct}from"./B8o4lNgr.js";import{I as It,h as Bt}from"./Crs9I2MT.js";import{H as Pt,C as zt}from"./Bqoyy9yx.js";import{f as M}from"./C5Xi5eLp.js";import"./Dck4Okga.js";import{F as rt,c5 as Rt,cg as St,ar as Wt}from"./BDq7EC2K.js";import{e as Dt}from"./Chf_Fl2B.js";import{D as Ht}from"./BQ3bMc6Z.js";import{G2 as Lt,sA as $t}from"./BjFoJgFv.js";import{g as Nt}from"./kpFOTYnh.js";var qt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),Ft=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Mt=k("<!> ",1),Ot=k('<div class="mb-2 flex gap-1"></div>'),Vt=k('<div class="border-t border-border p-2"><!> <!></div>'),jt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Gt(U,n){if(new.target)return ht({component:Gt,...U});yt(n,!0);let A=g(n,"patches",7),O=g(n,"label",23,()=>m.ui_patchBlock_label()),V=g(n,"lastApply",7),w=g(n,"linkedAgentId",7),H=g(n,"workspaceId",7),P=g(n,"applying",7,!1),L=g(n,"onApply",7),$=g(n,"onRevert",7),j=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),G=y(()=>V()?.status==="success");function st(t){const o=t.split(`
1
+ import{t as ht,bq as g,bo as m,a_ as p,by as bt,b as xt}from"./COCO5InB.js";import{bs as yt,a7 as kt,ay as Q,W as u,bn as At,aA as h,a5 as F,bS as f,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as Ct}from"./B8o4lNgr.js";import{I as It,h as Bt}from"./Crs9I2MT.js";import{H as Pt,C as zt}from"./Bqoyy9yx.js";import{f as M}from"./C5Xi5eLp.js";import"./Dck4Okga.js";import{F as rt,c5 as Rt,cg as St,ar as Wt}from"./BDq7EC2K.js";import{e as Dt}from"./172GvQgx.js";import{D as Ht}from"./3sa2ZSPC.js";import{G2 as Lt,sA as $t}from"./BjFoJgFv.js";import{g as Nt}from"./C5E1PJb6.js";var qt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),Ft=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Mt=k("<!> ",1),Ot=k('<div class="mb-2 flex gap-1"></div>'),Vt=k('<div class="border-t border-border p-2"><!> <!></div>'),jt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Gt(U,n){if(new.target)return ht({component:Gt,...U});yt(n,!0);let A=g(n,"patches",7),O=g(n,"label",23,()=>m.ui_patchBlock_label()),V=g(n,"lastApply",7),w=g(n,"linkedAgentId",7),H=g(n,"workspaceId",7),P=g(n,"applying",7,!1),L=g(n,"onApply",7),$=g(n,"onRevert",7),j=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),G=y(()=>V()?.status==="success");function st(t){const o=t.split(`
2
2
  `);let v=0,b=0;for(const C of o)C.startsWith("+")&&!C.startsWith("+++")?v++:C.startsWith("-")&&!C.startsWith("---")&&b++;return{addCount:v,removeCount:b}}let X=y(()=>e(z)?st(e(z).diff):{addCount:0,removeCount:0}),T=y(()=>P()?{label:m.ui_patchBlock_applying_label(),icon:null}:e(G)?{label:m.ui_patchBlock_revert_label(),icon:St}:{label:m.ui_patchBlock_apply_label(),icon:Wt}),nt=y(()=>!!(L()||$()));function ot(){et(j,!e(j))}function lt(){e(G)?$()?.():L()?.()}var it={get patches(){return A()},set patches(t){A(t),h()},get label(){return O()},set label(t=m.ui_patchBlock_label()){O(t),h()},get lastApply(){return V()},set lastApply(t){V(t),h()},get linkedAgentId(){return w()},set linkedAgentId(t){w(t),h()},get workspaceId(){return H()},set workspaceId(t){H(t),h()},get applying(){return P()},set applying(t=!1){P(t),h()},get onApply(){return L()},set onApply(t){L(t),h()},get onRevert(){return $()},set onRevert(t){$(t),h()},$set:bt,$on:(t,o)=>xt(n,t,o)},Y=kt(),ct=Q(Y);{var dt=t=>{var o=jt(),v=F(o),b=F(v);{var C=a=>{{let c=y(()=>m.ui_patchBlock_viewAgent_tooltip());M(a,{variant:"plain",size:"icon-compact",iconOnly:!0,class:"size-4! shrink-0 rounded-sm! transition-opacity hover:opacity-80",onclick:l=>{H()&&Lt.dispatch($t(H(),{agentId:w(),...Nt(l)}))},get title(){return e(c)},children:(l,_)=>{Dt(l,{get agentId(){return w()},variant:"compact"})},$$slots:{default:!0}})}};p(b,a=>{w()&&a(C)})}var Z=f(b,2);M(Z,{variant:"plain",size:"compact",class:"h-auto! min-w-0 flex-1 shrink items-center justify-start gap-2 px-0! py-0! text-muted-foreground transition-colors hover:text-foreground",truncateLabel:!1,labelClass:"flex min-w-0 flex-1 items-center gap-2",onclick:ot,children:(a,c)=>{var l=Ft(),_=Q(l);{var I=i=>{rt(i,{get icon(){return Rt},size:10,class:"text-muted-foreground"})};p(_,i=>{w()||i(I)})}var B=f(_,2),s=S(B,!0),d=f(B,2),r=F(d),R=S(r),N=f(r,2),J=S(N);W(d);var K=f(d,2);{var tt=i=>{var q=qt(),gt=S(q,!0);D(mt=>x(gt,mt),[()=>m.ui_patchBlock_applied_label()]),u(i,q)};p(K,i=>{e(G)&&i(tt)})}D(()=>{x(s,O()),x(R,`+${e(X).addCount??""}`),x(J,`-${e(X).removeCount??""}`)}),u(a,l)},$$slots:{default:!0}});var ut=f(Z,2);{var ft=a=>{M(a,{variant:"ghost-light",size:"sm",class:"type-caption shrink-0",onclick:lt,get disabled(){return P()},children:(c,l)=>{var _=Mt(),I=Q(_);{var B=r=>{It(r,{size:12})},s=r=>{rt(r,{get icon(){return e(T).icon},size:"xs"})};p(I,r=>{P()?r(B):e(T).icon&&r(s,1)})}var d=f(I);D(()=>x(d,` ${e(T).label??""}`)),u(c,_)},$$slots:{default:!0}})};p(ut,a=>{e(nt)&&a(ft)})}W(v);var vt=f(v,2);{var _t=a=>{var c=Vt(),l=F(c);{var _=s=>{var d=Ot();Bt(d,23,A,(r,R)=>`patch-${R}-${r.filePath}`,(r,R,N)=>{{let J=y(()=>e(N)===e(E)?"default":"ghost-light");M(r,{get variant(){return e(J)},size:"sm",class:"type-caption",onclick:()=>et(E,e(N),!0),children:(K,tt)=>{wt();var i=Ct();D(q=>x(i,q),[()=>e(R).filePath.split("/").pop()]),u(K,i)},$$slots:{default:!0}})}}),W(d),u(s,d)};p(l,s=>{A().length>1&&s(_)})}var I=f(l,2);{var B=s=>{Ht(s,{get patch(){return e(z).diff},get fileName(){return e(z).filePath},showHeader:!0,showStats:!0,showLineNumbers:!0,maxHeight:"300px",collapsible:!1,class:"overflow-hidden rounded-sm border border-border"})};p(I,s=>{e(z)&&s(B)})}W(c),Pt(3,c,()=>zt,()=>({tier:"moderate"})),u(a,c)};p(vt,a=>{e(j)&&a(_t)})}W(o),u(t,o)},pt=t=>{var o=Et(),v=S(o,!0);D(b=>x(v,b),[()=>m.ui_patchBlock_invalid_error()]),u(t,o)};p(ct,t=>{A()?.length?t(dt):t(pt,-1)})}return u(U,Y),At(it)}export{Gt as P};
@@ -1 +1 @@
1
- import{i as r}from"./DJu_D7ND.js";import{v as a,I as e}from"./Cdhgfy6h.js";import{G2 as s}from"./BjFoJgFv.js";import{c as t}from"./CDJ_ELzg.js";function C(o,i){return t(s,o,{navigate:i,...a("windowChrome")?{closeWindow:()=>r(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};
1
+ import{i as r}from"./DJu_D7ND.js";import{v as a,I as e}from"./Cdhgfy6h.js";import{G2 as s}from"./BjFoJgFv.js";import{c as t}from"./-4iKCYSl.js";function C(o,i){return t(s,o,{navigate:i,...a("windowChrome")?{closeWindow:()=>r(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};
@@ -1,2 +1,2 @@
1
- import{G2 as d,q1 as b,FQ as S}from"./BjFoJgFv.js";import{F as A,aX as _}from"./BUVaYTVI.js";import{bs as k}from"./DUT4V6mb.js";import{bl as y,bh as w}from"./C-mk0nP2.js";import{bo as n}from"./COCO5InB.js";import{t as P}from"./Bqoyy9yx.js";const G=d.createSelector(e=>e.backgroundAgentSettings.defaultModel),L=d.createSelector(e=>e.backgroundAgentSettings.typeOverrides),z=d.createSelector((e,t)=>!!(e.backgroundAgentSettings.typeOverrides[t]||e.backgroundAgentSettings.typeReasoningEffortOverrides[t])),F=d.createSelector(e=>e.backgroundAgentSettings.defaultReasoningEffort),W=d.createSelector(e=>e.backgroundAgentSettings.typeReasoningEffortOverrides),j=d.createSelector(e=>e.backgroundAgentSettings);function r(e){return{category:"settings",...e}}const f=[{id:"new-workspace",tab:"",label:"New workspace",route:"/workspace/new",category:"navigation",description:"Create-workspace flow."},r({id:"utility-default-model",tab:"providers",hashAliases:["utility-default-model","default-model","quickActions.defaultModel","backgroundAgents.defaultModel"],scrollSelector:"#utility-default-model",highlightSelector:'[data-highlight-id="utility-default-model"]',label:"Settings: Default model",route:"/settings?tab=providers#utility-default-model",description:"Default AI behavior model selection."}),r({id:"global-instructions",tab:"agent-behavior",hashAliases:["global-instructions","agents","specialists","all-agents"],scrollSelector:"#global-instructions",highlightSelector:'[data-highlight-id="global-instructions"]',label:"Settings: Agent Behavior",route:"/settings?tab=agent-behavior#global-instructions",description:"Global agent instructions and defaults."}),r({id:"create-specialist",tab:"specialists",hashAliases:["create-specialist"],scrollSelector:"#create-specialist",highlightSelector:'[data-highlight-id="create-specialist"]',label:"Settings: Create specialist",route:"/settings?tab=specialists&view=create-specialist#create-specialist",description:"Create-specialist entry point."}),r({id:"providers",tab:"providers",hashAliases:["providers"],scrollSelector:"#providers",highlightSelector:'[data-highlight-id="providers"]',label:"Settings: AI coding CLIs",route:"/settings?tab=providers#providers",description:"Provider/account selector settings."}),r({id:"integrations",tab:"connections",hashAliases:["integrations"],scrollSelector:"#integrations",highlightSelector:'[data-highlight-id="integrations"]',label:"Settings: Connections",route:"/settings?tab=connections#integrations",description:"Connected integrations settings."}),r({id:"devices",tab:"devices",hashAliases:["devices","machines"],scrollSelector:"#devices",highlightSelector:"#devices",label:"Settings: Machines",route:"/settings?tab=devices#devices",description:"Saved remote machine settings."}),r({id:"mobile",tab:"mobile",hashAliases:["mobile"],scrollSelector:"#mobile",highlightSelector:'[data-highlight-id="mobile"]',label:"Settings: Mobile",route:"/settings?tab=mobile#mobile",description:"Remote access and Intent Mobile pairing."}),r({id:"guest-sessions",tab:"collaboration",hashAliases:["collaboration","guest-sessions","sharing"],scrollSelector:"#collaboration",highlightSelector:"#collaboration",label:"Settings: Collaboration",route:"/settings?tab=collaboration#collaboration",description:"Host membership, workspace guests and joined hosts."}),r({id:"websocket-api",tab:"mobile",hashAliases:["websocket-api","remote-access"],scrollSelector:"#websocket-api",highlightSelector:'[data-highlight-id="websocket-api"]',label:"Settings: Remote Access",route:"/settings?tab=mobile#websocket-api",description:"Remote access (WebSocket API) settings."}),...[["voice","Voice Dictation","Voice dictation settings.","input"],["keyboard-shortcuts","Keyboard Shortcuts","Keyboard shortcuts reference.","input"],["mcp-servers","MCP Servers","MCP server configuration.","connections"],["git-workspace","Git & Workspace","Git and workspace defaults.","setup"],["git","Git","Git defaults.","setup"],["shell","Shell","Shell and CLI optimization settings.","setup"],["workspace","Workspace","Workspace defaults.","setup"],["cli-optimization","CLI Optimization","RTK/CLI optimization settings.","setup"],["workspace-api","Tool Output & Retention","Tool output size and retention settings.","advanced"],["notifications","Notifications","Notification preferences.","app-behavior"],["updates","Updates","Application update preferences.","app-behavior"],["open-in","Open In","External editor/app launch preferences.","app-behavior"],["github-link-action","GitHub Links","GitHub issue and pull request link behavior.","app-behavior"],["agent-features","Agent Features","Agent feature settings.","agent-behavior"],["font-style","Font style","Font style settings.","display"],["language","Language","Application language settings.","display"],["agent-backend","Agent Backend","Agent backend settings.","advanced"],["connection","Connection","Daemon connection details.","advanced"],["hardware","Hardware","Hardware integration settings.","advanced"],["developer","Developer","Development-only settings.","advanced"]].map(([e,t,i,a])=>r({id:e,tab:a,hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=${a}#${e}`,description:i})),r({id:"appearance",tab:"display",hashAliases:["appearance","theme"],scrollSelector:"#theme",highlightSelector:'[data-highlight-id="appearance"]',label:"Settings: Appearance",route:"/settings?tab=display#theme",description:"Theme mode controls."}),...[["color-theme","Color theme","Color theme selection."],["note-font","Notes font","Notes/spec font style."],["agent-chat-font","Agent chat font","Agent chat font style."],["code-font","Code font","Code editor and diff font."]].map(([e,t,i])=>r({id:e,tab:"display",hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=display#${e}`,description:i})),r({id:"general",tab:"advanced",hashAliases:["general","reset"],scrollSelector:"#reset",highlightSelector:'[data-highlight-id="general"]',label:"Settings: Advanced",route:"/settings?tab=advanced#reset",description:"Advanced settings and reset controls."}),{id:"workspace-card",tab:"",hashAliases:["workspace-card"],highlightSelector:'[data-highlight-id^="workspace-"]',label:"Workspace card",category:"workspace",description:"A workspace card on workspace list surfaces.",dynamic:!0,idPattern:"workspace-{workspaceId}"},{id:"specialist-entry",tab:"specialists",highlightSelector:'[data-highlight-id^="specialist-"]',label:"Specialist entry",route:"/settings?tab=specialists&specialist={specialistId}#specialist-{specialistId}",category:"specialist",description:"A specific specialist row in settings.",dynamic:!0,idPattern:"specialist-{specialistId}"}];function m(e){const t=e.indexOf("#"),i=t>=0?e.slice(t+1):e;return decodeURIComponent(i.replace(/^#/,"")).trim()}function I(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M(e,t){if(!t.match(/\{[^}]+\}/g)?.length)return e===t;const a=t.split(/\{[^}]+\}/g).map(I).join("[^/]+");return new RegExp(`^${a}$`).test(e)}function R(e){const t=m(e);if(!t)return;const i=f.find(o=>o.id===t||o.hashAliases?.includes(t));if(i)return i;const a=f.find(o=>o.route&&o.dynamic&&o.idPattern&&M(t,o.idPattern));return a?{...a,id:t}:void 0}function T(e){try{return new URL(e,"app://intent").pathname||"/"}catch{const t=e.indexOf("?"),i=e.indexOf("#");let a=e.length;return t>=0&&(a=Math.min(a,t)),i>=0&&(a=Math.min(a,i)),e.slice(0,a)||"/"}}const E=new Set(f.flatMap(e=>e.route?[T(e.route)]:[])),C=[/^\/workspace\/[^/]+$/,/^\/agent\/[^/]+$/];function q(e){if(typeof e!="string")return!1;const t=e.trim();if(!t)return!1;if(t.startsWith("intent://"))return!0;let i,a;try{const o=new URL(t,"app://intent");if(o.protocol!=="app:")return!1;i=o.pathname||"/",a=m(o.hash)}catch{return!1}return E.has(i)?a?!!R(a):!0:C.some(o=>o.test(i))}const O=d.createSelector(e=>{const t=new Map,i=(s,c)=>{const g=t.get(s)??new Set;g.add(c),t.set(s,g)},a=k.select(e),o=A.select(e),h=_.select(e)[o];h&&o&&i(o,n.settings_providers_inUseDefaultModel_label({model:h})),b(o)&&!h&&i(o,n.settings_providers_inUseDefaultProvider_label());const u=e.backgroundAgentSettings?.providerId;u&&b(u)&&i(u,n.settings_providers_inUseQuickActions_label());for(const s of y.select(e)){const c=w.select(e,s.id),g=s.source?{project:n.settings_providers_pinSourceProject_label(),user:n.settings_providers_pinSourceUser_label(),bundled:n.settings_providers_pinSourceBundled_label(),builtin:n.settings_providers_pinSourceBuiltin_label(),"electron-store":n.settings_providers_pinSourceLegacy_label()}[s.source]:void 0,p=l=>g&&c?n.settings_providers_inUseSourcePath_label({reason:l,source:g,path:c}):g?n.settings_providers_inUseSource_label({reason:l,source:g}):c?n.settings_providers_inUsePath_label({reason:l,path:c}):l;if(s.codingAgent&&i(s.codingAgent,p(n.settings_providers_inUseSpecialistAgent_label({name:s.name}))),s.modelOptions?.forEach((l,v)=>{l.provider&&b(l.provider)&&i(l.provider,p(n.settings_providers_inUseSpecialistModelOption_label({name:s.name,position:P(v+1)})))}),s.defaultModel)if(s.defaultModel.includes(":")){const l=S(s.defaultModel).providerId??a;i(l,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}else s.codingAgent||i(a,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}return Object.fromEntries([...t].map(([s,c])=>[s,[...c].join(`
1
+ import{G2 as d,q1 as b,FQ as S}from"./BjFoJgFv.js";import{F as A,aX as _}from"./BUVaYTVI.js";import{bs as k}from"./DUT4V6mb.js";import{bl as y,bh as w}from"./9JjZRepm.js";import{bo as n}from"./COCO5InB.js";import{t as P}from"./Bqoyy9yx.js";const G=d.createSelector(e=>e.backgroundAgentSettings.defaultModel),L=d.createSelector(e=>e.backgroundAgentSettings.typeOverrides),z=d.createSelector((e,t)=>!!(e.backgroundAgentSettings.typeOverrides[t]||e.backgroundAgentSettings.typeReasoningEffortOverrides[t])),F=d.createSelector(e=>e.backgroundAgentSettings.defaultReasoningEffort),W=d.createSelector(e=>e.backgroundAgentSettings.typeReasoningEffortOverrides),j=d.createSelector(e=>e.backgroundAgentSettings);function r(e){return{category:"settings",...e}}const f=[{id:"new-workspace",tab:"",label:"New workspace",route:"/workspace/new",category:"navigation",description:"Create-workspace flow."},r({id:"utility-default-model",tab:"providers",hashAliases:["utility-default-model","default-model","quickActions.defaultModel","backgroundAgents.defaultModel"],scrollSelector:"#utility-default-model",highlightSelector:'[data-highlight-id="utility-default-model"]',label:"Settings: Default model",route:"/settings?tab=providers#utility-default-model",description:"Default AI behavior model selection."}),r({id:"global-instructions",tab:"agent-behavior",hashAliases:["global-instructions","agents","specialists","all-agents"],scrollSelector:"#global-instructions",highlightSelector:'[data-highlight-id="global-instructions"]',label:"Settings: Agent Behavior",route:"/settings?tab=agent-behavior#global-instructions",description:"Global agent instructions and defaults."}),r({id:"create-specialist",tab:"specialists",hashAliases:["create-specialist"],scrollSelector:"#create-specialist",highlightSelector:'[data-highlight-id="create-specialist"]',label:"Settings: Create specialist",route:"/settings?tab=specialists&view=create-specialist#create-specialist",description:"Create-specialist entry point."}),r({id:"providers",tab:"providers",hashAliases:["providers"],scrollSelector:"#providers",highlightSelector:'[data-highlight-id="providers"]',label:"Settings: AI coding CLIs",route:"/settings?tab=providers#providers",description:"Provider/account selector settings."}),r({id:"integrations",tab:"connections",hashAliases:["integrations"],scrollSelector:"#integrations",highlightSelector:'[data-highlight-id="integrations"]',label:"Settings: Connections",route:"/settings?tab=connections#integrations",description:"Connected integrations settings."}),r({id:"devices",tab:"devices",hashAliases:["devices","machines"],scrollSelector:"#devices",highlightSelector:"#devices",label:"Settings: Machines",route:"/settings?tab=devices#devices",description:"Saved remote machine settings."}),r({id:"mobile",tab:"mobile",hashAliases:["mobile"],scrollSelector:"#mobile",highlightSelector:'[data-highlight-id="mobile"]',label:"Settings: Mobile",route:"/settings?tab=mobile#mobile",description:"Remote access and Intent Mobile pairing."}),r({id:"guest-sessions",tab:"collaboration",hashAliases:["collaboration","guest-sessions","sharing"],scrollSelector:"#collaboration",highlightSelector:"#collaboration",label:"Settings: Collaboration",route:"/settings?tab=collaboration#collaboration",description:"Host membership, workspace guests and joined hosts."}),r({id:"websocket-api",tab:"mobile",hashAliases:["websocket-api","remote-access"],scrollSelector:"#websocket-api",highlightSelector:'[data-highlight-id="websocket-api"]',label:"Settings: Remote Access",route:"/settings?tab=mobile#websocket-api",description:"Remote access (WebSocket API) settings."}),...[["voice","Voice Dictation","Voice dictation settings.","input"],["keyboard-shortcuts","Keyboard Shortcuts","Keyboard shortcuts reference.","input"],["mcp-servers","MCP Servers","MCP server configuration.","connections"],["git-workspace","Git & Workspace","Git and workspace defaults.","setup"],["git","Git","Git defaults.","setup"],["shell","Shell","Shell and CLI optimization settings.","setup"],["workspace","Workspace","Workspace defaults.","setup"],["cli-optimization","CLI Optimization","RTK/CLI optimization settings.","setup"],["workspace-api","Tool Output & Retention","Tool output size and retention settings.","advanced"],["notifications","Notifications","Notification preferences.","app-behavior"],["updates","Updates","Application update preferences.","app-behavior"],["open-in","Open In","External editor/app launch preferences.","app-behavior"],["github-link-action","GitHub Links","GitHub issue and pull request link behavior.","app-behavior"],["agent-features","Agent Features","Agent feature settings.","agent-behavior"],["font-style","Font style","Font style settings.","display"],["language","Language","Application language settings.","display"],["agent-backend","Agent Backend","Agent backend settings.","advanced"],["connection","Connection","Daemon connection details.","advanced"],["hardware","Hardware","Hardware integration settings.","advanced"],["developer","Developer","Development-only settings.","advanced"]].map(([e,t,i,a])=>r({id:e,tab:a,hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=${a}#${e}`,description:i})),r({id:"appearance",tab:"display",hashAliases:["appearance","theme"],scrollSelector:"#theme",highlightSelector:'[data-highlight-id="appearance"]',label:"Settings: Appearance",route:"/settings?tab=display#theme",description:"Theme mode controls."}),...[["color-theme","Color theme","Color theme selection."],["note-font","Notes font","Notes/spec font style."],["agent-chat-font","Agent chat font","Agent chat font style."],["code-font","Code font","Code editor and diff font."]].map(([e,t,i])=>r({id:e,tab:"display",hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=display#${e}`,description:i})),r({id:"general",tab:"advanced",hashAliases:["general","reset"],scrollSelector:"#reset",highlightSelector:'[data-highlight-id="general"]',label:"Settings: Advanced",route:"/settings?tab=advanced#reset",description:"Advanced settings and reset controls."}),{id:"workspace-card",tab:"",hashAliases:["workspace-card"],highlightSelector:'[data-highlight-id^="workspace-"]',label:"Workspace card",category:"workspace",description:"A workspace card on workspace list surfaces.",dynamic:!0,idPattern:"workspace-{workspaceId}"},{id:"specialist-entry",tab:"specialists",highlightSelector:'[data-highlight-id^="specialist-"]',label:"Specialist entry",route:"/settings?tab=specialists&specialist={specialistId}#specialist-{specialistId}",category:"specialist",description:"A specific specialist row in settings.",dynamic:!0,idPattern:"specialist-{specialistId}"}];function m(e){const t=e.indexOf("#"),i=t>=0?e.slice(t+1):e;return decodeURIComponent(i.replace(/^#/,"")).trim()}function I(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M(e,t){if(!t.match(/\{[^}]+\}/g)?.length)return e===t;const a=t.split(/\{[^}]+\}/g).map(I).join("[^/]+");return new RegExp(`^${a}$`).test(e)}function R(e){const t=m(e);if(!t)return;const i=f.find(o=>o.id===t||o.hashAliases?.includes(t));if(i)return i;const a=f.find(o=>o.route&&o.dynamic&&o.idPattern&&M(t,o.idPattern));return a?{...a,id:t}:void 0}function T(e){try{return new URL(e,"app://intent").pathname||"/"}catch{const t=e.indexOf("?"),i=e.indexOf("#");let a=e.length;return t>=0&&(a=Math.min(a,t)),i>=0&&(a=Math.min(a,i)),e.slice(0,a)||"/"}}const E=new Set(f.flatMap(e=>e.route?[T(e.route)]:[])),C=[/^\/workspace\/[^/]+$/,/^\/agent\/[^/]+$/];function q(e){if(typeof e!="string")return!1;const t=e.trim();if(!t)return!1;if(t.startsWith("intent://"))return!0;let i,a;try{const o=new URL(t,"app://intent");if(o.protocol!=="app:")return!1;i=o.pathname||"/",a=m(o.hash)}catch{return!1}return E.has(i)?a?!!R(a):!0:C.some(o=>o.test(i))}const O=d.createSelector(e=>{const t=new Map,i=(s,c)=>{const g=t.get(s)??new Set;g.add(c),t.set(s,g)},a=k.select(e),o=A.select(e),h=_.select(e)[o];h&&o&&i(o,n.settings_providers_inUseDefaultModel_label({model:h})),b(o)&&!h&&i(o,n.settings_providers_inUseDefaultProvider_label());const u=e.backgroundAgentSettings?.providerId;u&&b(u)&&i(u,n.settings_providers_inUseQuickActions_label());for(const s of y.select(e)){const c=w.select(e,s.id),g=s.source?{project:n.settings_providers_pinSourceProject_label(),user:n.settings_providers_pinSourceUser_label(),bundled:n.settings_providers_pinSourceBundled_label(),builtin:n.settings_providers_pinSourceBuiltin_label(),"electron-store":n.settings_providers_pinSourceLegacy_label()}[s.source]:void 0,p=l=>g&&c?n.settings_providers_inUseSourcePath_label({reason:l,source:g,path:c}):g?n.settings_providers_inUseSource_label({reason:l,source:g}):c?n.settings_providers_inUsePath_label({reason:l,path:c}):l;if(s.codingAgent&&i(s.codingAgent,p(n.settings_providers_inUseSpecialistAgent_label({name:s.name}))),s.modelOptions?.forEach((l,v)=>{l.provider&&b(l.provider)&&i(l.provider,p(n.settings_providers_inUseSpecialistModelOption_label({name:s.name,position:P(v+1)})))}),s.defaultModel)if(s.defaultModel.includes(":")){const l=S(s.defaultModel).providerId??a;i(l,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}else s.codingAgent||i(a,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}return Object.fromEntries([...t].map(([s,c])=>[s,[...c].join(`
2
2
  `)]))});d.createSelector((e,t)=>O.select(e)[t]??null);const U=[{id:"dracula",label:"Dracula"},{id:"nord",label:"Nord"},{id:"rose-pine",label:"Rosé Pine"},{id:"tokyo-night",label:"Tokyo Night"},{id:"solarized",label:"Solarized"},{id:"github",label:"GitHub"},{id:"high-contrast",label:"High Contrast"}],K=U.map(({id:e})=>e);export{K as T,U as a,F as b,j as c,L as d,W as e,z as f,O as g,q as i,R as r,G as s};
@@ -1 +1 @@
1
- import{t as ht,bq as U,by as $t,bs as It,b as yt,bu as d}from"./COCO5InB.js";import{bs as bt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as At,bH as G,bV as H,aA as E}from"./B8o4lNgr.js";import{B as wt}from"./Cdhgfy6h.js";import{b as Dt}from"./D2g8BuR1.js";import{G2 as a,ei as Pt,ej as St,mQ as Ut,xc as Et,mU as _t,mV as xt,Gz as Ft,GN as Tt,GE as Wt,th as Bt,sA as qt}from"./BjFoJgFv.js";import{aU as Gt}from"./D-pCMoMn.js";import{g as Ht}from"./CoSk1zgY.js";import{dj as Lt,bK as Nt,bz as Ot,bD as vt,bB as jt}from"./DUT4V6mb.js";import{aj as Kt}from"./BTNf3wFt.js";import{C as Mt}from"./BpfenzkQ.js";import{V as Vt}from"./DQPsLJmj.js";import{bC as zt,bA as Jt,aX as Qt}from"./CcUy0MZb.js";import{i as Xt}from"./H2jLkRRS.js";function Yt(_,f){if(new.target)return ht({component:Yt,..._});bt(f,!0);const L=()=>d(Z,"$gitRoots$",n),x=()=>d(Y,"$workspace",n),N=()=>d(st,"$ftCommits$",n),O=()=>d(ot,"$ftOlderCommits$",n),b=()=>d(tt,"$commitRead$",n),v=()=>d(Q,"$foldUnchanged",n),j=()=>d(J,"$lineWrapping",n),K=()=>d(X,"$diffSideBySide",n),M=()=>d(at,"$ftLoading$",n),[n,V]=It(),z=e=>{Vt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{G(C,!t(C)),t(C)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return v()},onToggleFold:()=>a.dispatch(Wt()),get wrapEnabled(){return j()},onToggleWrap:()=>a.dispatch(Tt()),get splitEnabled(){return K()},onToggleSplit:()=>a.dispatch(Ft())})},J=zt(),Q=Jt(),X=Qt();let h=U(f,"tab",7),i=U(f,"workspaceId",7),$=U(f,"isActive",7);const F=Ht(),g=Gt(()=>i()),Y=Lt(g),Z=Kt(g),A=crypto.randomUUID(),tt=Nt(g,A),c=s(()=>h().data?.commitHash||""),T=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Pt(e,"history")),()=>a.dispatch(St(e,"history"))});const r=s(()=>h().data?.gitRootId||""),W=s(()=>t(r)&&L().find(e=>e.id===t(r))?.path||""),et=s(()=>t(W)||x()?.worktreePath||x()?.repositoryPath||""),st=Ot(g),ot=vt(g),at=jt(g),nt=s(()=>N()||[]),it=s(()=>O()||[]),p=s(()=>t(r)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),w=s(()=>t(p)?.files||[]),D=s(()=>b()?.request.kind==="commitDetails"&&b().request.commitHash===t(c)&&(b().request.gitRootId??"")===t(r)?b():void 0),l=s(()=>t(D)?.result?.kind==="commitDetails"?t(D).result.details:null),rt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),dt=s(()=>t(D)?.loading??!1);k(()=>{const e=t(c),o=i(),I=t(r);if(!e||!o||t(w).length>0)return;const u=crypto.randomUUID();return a.dispatch(Ut(o,A,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Et(o,A,u))});const ct=s(()=>t(w).length>0?t(w):t(rt));let C=H(!0),R=H(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Xt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(T)}}));k(()=>{!F||!$()||F.registerActions({display:z})});const B=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,B)),()=>a.dispatch(xt(e,B))});var mt={get tab(){return h()},set tab(e){h(e),E()},get workspaceId(){return i()},set workspaceId(e){i(e),E()},get isActive(){return $()},set isActive(e){$(e),E()},$set:$t,$on:(e,o)=>yt(f,e,o)},q=Ct(),gt=Rt(q);wt(gt,()=>JSON.stringify([i(),t(r),t(c)]),e=>{{let o=s(()=>M()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(W)||void 0),ut=s(()=>({hash:t(c),message:t(T),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));Dt(Mt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(y,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(qt(i(),{agentId:y,openInAdjacentPanel:P,sourcePanelId:S}))},onOpenNote:(y,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Bt(i(),y,{openInAdjacentPanel:P,sourcePanelId:S}))}}),y=>G(R,y,!0),()=>t(R))}}),kt(_,q);var pt=At(mt);return V(),pt}export{Yt as default};
1
+ import{t as ht,bq as U,by as $t,bs as It,b as yt,bu as d}from"./COCO5InB.js";import{bs as bt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as At,bH as G,bV as H,aA as E}from"./B8o4lNgr.js";import{B as wt}from"./Cdhgfy6h.js";import{b as Dt}from"./D2g8BuR1.js";import{G2 as a,ei as Pt,ej as St,mQ as Ut,xc as Et,mU as _t,mV as xt,Gz as Ft,GN as Tt,GE as Wt,th as Bt,sA as qt}from"./BjFoJgFv.js";import{aU as Gt}from"./BCYRUItZ.js";import{g as Ht}from"./CoSk1zgY.js";import{dj as Lt,bK as Nt,bz as Ot,bD as vt,bB as jt}from"./DUT4V6mb.js";import{aj as Kt}from"./Dh52so4o.js";import{C as Mt}from"./xpCT4rnW.js";import{V as Vt}from"./DQPsLJmj.js";import{bC as zt,bA as Jt,aX as Qt}from"./D6eVIgjz.js";import{i as Xt}from"./H2jLkRRS.js";function Yt(_,f){if(new.target)return ht({component:Yt,..._});bt(f,!0);const L=()=>d(Z,"$gitRoots$",n),x=()=>d(Y,"$workspace",n),N=()=>d(st,"$ftCommits$",n),O=()=>d(ot,"$ftOlderCommits$",n),b=()=>d(tt,"$commitRead$",n),v=()=>d(Q,"$foldUnchanged",n),j=()=>d(J,"$lineWrapping",n),K=()=>d(X,"$diffSideBySide",n),M=()=>d(at,"$ftLoading$",n),[n,V]=It(),z=e=>{Vt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{G(C,!t(C)),t(C)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return v()},onToggleFold:()=>a.dispatch(Wt()),get wrapEnabled(){return j()},onToggleWrap:()=>a.dispatch(Tt()),get splitEnabled(){return K()},onToggleSplit:()=>a.dispatch(Ft())})},J=zt(),Q=Jt(),X=Qt();let h=U(f,"tab",7),i=U(f,"workspaceId",7),$=U(f,"isActive",7);const F=Ht(),g=Gt(()=>i()),Y=Lt(g),Z=Kt(g),A=crypto.randomUUID(),tt=Nt(g,A),c=s(()=>h().data?.commitHash||""),T=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Pt(e,"history")),()=>a.dispatch(St(e,"history"))});const r=s(()=>h().data?.gitRootId||""),W=s(()=>t(r)&&L().find(e=>e.id===t(r))?.path||""),et=s(()=>t(W)||x()?.worktreePath||x()?.repositoryPath||""),st=Ot(g),ot=vt(g),at=jt(g),nt=s(()=>N()||[]),it=s(()=>O()||[]),p=s(()=>t(r)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),w=s(()=>t(p)?.files||[]),D=s(()=>b()?.request.kind==="commitDetails"&&b().request.commitHash===t(c)&&(b().request.gitRootId??"")===t(r)?b():void 0),l=s(()=>t(D)?.result?.kind==="commitDetails"?t(D).result.details:null),rt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),dt=s(()=>t(D)?.loading??!1);k(()=>{const e=t(c),o=i(),I=t(r);if(!e||!o||t(w).length>0)return;const u=crypto.randomUUID();return a.dispatch(Ut(o,A,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Et(o,A,u))});const ct=s(()=>t(w).length>0?t(w):t(rt));let C=H(!0),R=H(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Xt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(T)}}));k(()=>{!F||!$()||F.registerActions({display:z})});const B=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,B)),()=>a.dispatch(xt(e,B))});var mt={get tab(){return h()},set tab(e){h(e),E()},get workspaceId(){return i()},set workspaceId(e){i(e),E()},get isActive(){return $()},set isActive(e){$(e),E()},$set:$t,$on:(e,o)=>yt(f,e,o)},q=Ct(),gt=Rt(q);wt(gt,()=>JSON.stringify([i(),t(r),t(c)]),e=>{{let o=s(()=>M()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(W)||void 0),ut=s(()=>({hash:t(c),message:t(T),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));Dt(Mt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(y,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(qt(i(),{agentId:y,openInAdjacentPanel:P,sourcePanelId:S}))},onOpenNote:(y,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Bt(i(),y,{openInAdjacentPanel:P,sourcePanelId:S}))}}),y=>G(R,y,!0),()=>t(R))}}),kt(_,q);var pt=At(mt);return V(),pt}export{Yt as default};