@intent-hq/web 2.289.0 → 2.290.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 (315) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{PZzdtHEH.js → -8bl9H3j.js} +1 -1
  3. package/web/app/immutable/chunks/{OJ1L_5qb.js → 1H7i14Jq.js} +1 -1
  4. package/web/app/immutable/chunks/{iaCxlE6C.js → 1NjHIsWL.js} +1 -1
  5. package/web/app/immutable/chunks/{BCvaSKdY.js → 1yYrVIcH.js} +1 -1
  6. package/web/app/immutable/chunks/{BMtE4svi.js → 2zyiBICC.js} +1 -1
  7. package/web/app/immutable/chunks/{CLqc4Ghh.js → 4cIwmSuD.js} +4 -4
  8. package/web/app/immutable/chunks/{DLOCpz5P.js → 7-JV_YuQ.js} +1 -1
  9. package/web/app/immutable/chunks/{CbsrOoqP.js → 86pQg5ba.js} +1 -1
  10. package/web/app/immutable/chunks/{h6LfsnBK.js → 8DpW-FUQ.js} +1 -1
  11. package/web/app/immutable/chunks/{Dtny-3OT.js → 8ZymRjAb.js} +1 -1
  12. package/web/app/immutable/chunks/{D3NFuU4L.js → B05yODFj.js} +1 -1
  13. package/web/app/immutable/chunks/{BSmsRx9G.js → B0Prdf3M.js} +1 -1
  14. package/web/app/immutable/chunks/{CVAEsdqc.js → B1uw4k3u.js} +1 -1
  15. package/web/app/immutable/chunks/{CM-42I4J.js → B4ARXgVr.js} +1 -1
  16. package/web/app/immutable/chunks/{DGPqSlym.js → B7NNbItI.js} +1 -1
  17. package/web/app/immutable/chunks/{gbA3Idh4.js → B7WsW6mB.js} +6 -6
  18. package/web/app/immutable/chunks/{CVwFZDMQ.js → BA5dsrgI.js} +1 -1
  19. package/web/app/immutable/chunks/{C3XlBsuD.js → BA6v9DYL.js} +1 -1
  20. package/web/app/immutable/chunks/{BFapXlF9.js → BB-rM-bv.js} +1 -1
  21. package/web/app/immutable/chunks/{CWwfm7Sc.js → BBBIudrX.js} +1 -1
  22. package/web/app/immutable/chunks/{BraZvQcb.js → BCqLW1sk.js} +1 -1
  23. package/web/app/immutable/chunks/{COYb5Q2j.js → BEOSERRe.js} +1 -1
  24. package/web/app/immutable/chunks/{CRPPupd6.js → BFY95MZy.js} +1 -1
  25. package/web/app/immutable/chunks/{BNAxChIn.js → BFxAoZrN.js} +3 -3
  26. package/web/app/immutable/chunks/{CkLmMloL.js → BIRD3ESe.js} +1 -1
  27. package/web/app/immutable/chunks/{bJKJaeMz.js → BJarmryO.js} +1 -1
  28. package/web/app/immutable/chunks/{3oF_cfgL.js → BJiYgQMg.js} +1 -1
  29. package/web/app/immutable/chunks/{CF6Nr1sW.js → BKANDKfj.js} +1 -1
  30. package/web/app/immutable/chunks/{DmLTqLLV.js → BLV57oiS.js} +1 -1
  31. package/web/app/immutable/chunks/{FBhib8LQ.js → BL_sVoge.js} +1 -1
  32. package/web/app/immutable/chunks/{CxWK8xnP.js → BLwubCUL.js} +1 -1
  33. package/web/app/immutable/chunks/{CBLL08sm.js → BME2e0zx.js} +1 -1
  34. package/web/app/immutable/chunks/{CF8O1pc4.js → BMI9BPVJ.js} +1 -1
  35. package/web/app/immutable/chunks/{l18fXbdG.js → BOrf8iaF.js} +2 -2
  36. package/web/app/immutable/chunks/{BlUnlsOK.js → BPomlxD-.js} +51 -51
  37. package/web/app/immutable/chunks/{CSSOys25.js → BQAjYSZn.js} +1 -1
  38. package/web/app/immutable/chunks/{Cgu6cLKT.js → BRqvd9LR.js} +1 -1
  39. package/web/app/immutable/chunks/{BgLK_ncR.js → BSg7eLHt.js} +1 -1
  40. package/web/app/immutable/chunks/{B5NmEYUa.js → BUfDnmlv.js} +1 -1
  41. package/web/app/immutable/chunks/{BulSFF-a.js → BVf1OKWM.js} +1 -1
  42. package/web/app/immutable/chunks/{DFm7ZzVD.js → BVkABTn_.js} +1 -1
  43. package/web/app/immutable/chunks/{a305huOc.js → BVxQ-eUq.js} +1 -1
  44. package/web/app/immutable/chunks/{CArnO8CD.js → BYCiS1o9.js} +3 -3
  45. package/web/app/immutable/chunks/{DXRlnb97.js → BZML3c09.js} +1 -1
  46. package/web/app/immutable/chunks/{DVs38eSu.js → BZrGNaMY.js} +4 -4
  47. package/web/app/immutable/chunks/{Hai9JAty.js → B_ZXH4Bf.js} +1 -1
  48. package/web/app/immutable/chunks/{Df7C6745.js → Ba-TS5vR.js} +1 -1
  49. package/web/app/immutable/chunks/{-Vbe26cE.js → BcidqQDh.js} +1 -1
  50. package/web/app/immutable/chunks/{DZ1zC9TP.js → BffyNBKQ.js} +1 -1
  51. package/web/app/immutable/chunks/{C2WwiwWs.js → Bfq2PcjA.js} +1 -1
  52. package/web/app/immutable/chunks/{BzLM7oPX.js → BgerNePf.js} +1 -1
  53. package/web/app/immutable/chunks/{Mw1KbVyQ.js → BiCS5wL3.js} +1 -1
  54. package/web/app/immutable/chunks/{DswUZY33.js → BiFqz5BS.js} +1 -1
  55. package/web/app/immutable/chunks/{CKeHkFGu.js → BjBW4i6w.js} +1 -1
  56. package/web/app/immutable/chunks/{13AmrEpa.js → BjJW_Stw.js} +1 -1
  57. package/web/app/immutable/chunks/{DFAvh56i.js → Bjha4wuc.js} +1 -1
  58. package/web/app/immutable/chunks/{CGkp_Cwy.js → BmUlDo2H.js} +1 -1
  59. package/web/app/immutable/chunks/{DTbYuW0t.js → BmiNxvpC.js} +1 -1
  60. package/web/app/immutable/chunks/{jS3iGRMB.js → Bmk9ow9D.js} +1 -1
  61. package/web/app/immutable/chunks/{DpDRAdy2.js → BmwLKx4A.js} +2 -2
  62. package/web/app/immutable/chunks/{BnSQjI9U.js → Bn3UQ-Cp.js} +1 -1
  63. package/web/app/immutable/chunks/{CaJKv7d6.js → Bo4f3vLH.js} +1 -1
  64. package/web/app/immutable/chunks/{BYk1ULDt.js → BoHfk-5t.js} +3 -3
  65. package/web/app/immutable/chunks/{CDT1G70y.js → BpOXeNkx.js} +1 -1
  66. package/web/app/immutable/chunks/{Cs8DWwEN.js → BpxCnE9X.js} +2 -2
  67. package/web/app/immutable/chunks/{2R1NzPTD.js → BqoQHFLV.js} +1 -1
  68. package/web/app/immutable/chunks/Bs9Hbccv.js +1 -0
  69. package/web/app/immutable/chunks/{BR8wCCqs.js → BsqGui1M.js} +1 -1
  70. package/web/app/immutable/chunks/{C6HNr-1J.js → BssOKdq0.js} +1 -1
  71. package/web/app/immutable/chunks/{DBAVKOs3.js → BtVjR42p.js} +1 -1
  72. package/web/app/immutable/chunks/{rJ19sxRo.js → BvtLLvEi.js} +1 -1
  73. package/web/app/immutable/chunks/{DmRzBB2M.js → BvypOCfp.js} +1 -1
  74. package/web/app/immutable/chunks/{BuNDx2oQ.js → BwDb1jNr.js} +1 -1
  75. package/web/app/immutable/chunks/{n0AniKod.js → BxE5JflA.js} +1 -1
  76. package/web/app/immutable/chunks/{DyyrFzIP.js → Byu82QgX.js} +1 -1
  77. package/web/app/immutable/chunks/{BlBEj3oF.js → C-BS-coA.js} +2 -2
  78. package/web/app/immutable/chunks/{D1yGasR4.js → C0fOehTZ.js} +1 -1
  79. package/web/app/immutable/chunks/{CHwD9QHP.js → C1H4_ssx.js} +1 -1
  80. package/web/app/immutable/chunks/{BpZ--9ga.js → C1vv_LrD.js} +1 -1
  81. package/web/app/immutable/chunks/{B-CmW-Rt.js → C4hboqwm.js} +1 -1
  82. package/web/app/immutable/chunks/{CylTfPZk.js → C5qvCE4M.js} +1 -1
  83. package/web/app/immutable/chunks/{C5paQyk5.js → C6rJFcL9.js} +1 -1
  84. package/web/app/immutable/chunks/{DxrXzX_M.js → C7KdCylX.js} +3 -3
  85. package/web/app/immutable/chunks/{B2-XfPcN.js → C7mmIZCH.js} +1 -1
  86. package/web/app/immutable/chunks/{Q09YKVwy.js → C94wEIre.js} +1 -1
  87. package/web/app/immutable/chunks/{DZC7segB.js → C9AcsTi0.js} +1 -1
  88. package/web/app/immutable/chunks/{CUpXgpcF.js → C9tAiYT0.js} +1 -1
  89. package/web/app/immutable/chunks/{CwzDLq3o.js → CAaAIfXJ.js} +1 -1
  90. package/web/app/immutable/chunks/{CvHIPf4O.js → CBeBcrFe.js} +1 -1
  91. package/web/app/immutable/chunks/{gdAnsrdj.js → CE7ZtQHh.js} +1 -1
  92. package/web/app/immutable/chunks/{DjyFgI1x.js → CEAZJuV2.js} +1 -1
  93. package/web/app/immutable/chunks/{C_drUQi2.js → CECSRFPp.js} +1 -1
  94. package/web/app/immutable/chunks/{CnypGHrl.js → CETsvapu.js} +1 -1
  95. package/web/app/immutable/chunks/{Co-DDbT2.js → CFHzcj7N.js} +1 -1
  96. package/web/app/immutable/chunks/{Db3BHa7z.js → CG-2eU4S.js} +1 -1
  97. package/web/app/immutable/chunks/{CN0OjCVu.js → CJcw2WA-.js} +1 -1
  98. package/web/app/immutable/chunks/{ClIwbXJq.js → CKuYPUu0.js} +1 -1
  99. package/web/app/immutable/chunks/{C0MRkgn4.js → CN15iJiw.js} +1 -1
  100. package/web/app/immutable/chunks/{Ev7NI-4B.js → CNWeExHy.js} +1 -1
  101. package/web/app/immutable/chunks/{rN1DOgEJ.js → CPezNx23.js} +1 -1
  102. package/web/app/immutable/chunks/{DFBRG5f3.js → CQk4XJFx.js} +1 -1
  103. package/web/app/immutable/chunks/{CvUXvU-2.js → CRmUlrc9.js} +1 -1
  104. package/web/app/immutable/chunks/{Diyq2-7-.js → CSJ0J5sC.js} +1 -1
  105. package/web/app/immutable/chunks/{BiN4BvQG.js → CT1GHsTn.js} +1 -1
  106. package/web/app/immutable/chunks/{JWXbB6B6.js → CT1fMnWm.js} +1 -1
  107. package/web/app/immutable/chunks/{DYrNCBqG.js → CU1drimT.js} +1 -1
  108. package/web/app/immutable/chunks/{DVFKqUgb.js → CU1rgNTy.js} +1 -1
  109. package/web/app/immutable/chunks/{BETowprU.js → CVQnuBUY.js} +1 -1
  110. package/web/app/immutable/chunks/{DsoGIaMF.js → CW92V9X1.js} +1 -1
  111. package/web/app/immutable/chunks/{DkiAPJ2W.js → CXwlKBiL.js} +1 -1
  112. package/web/app/immutable/chunks/{iNzcdJYX.js → CYEJX57C.js} +1 -1
  113. package/web/app/immutable/chunks/{B0vB3nPK.js → CYH5KIcO.js} +1 -1
  114. package/web/app/immutable/chunks/{y_-PH3Cn.js → CZiA6iY8.js} +1 -1
  115. package/web/app/immutable/chunks/{CjPlYTON.js → C_dZqjuM.js} +1 -1
  116. package/web/app/immutable/chunks/{D3Xty9Im.js → Car8OZH2.js} +1 -1
  117. package/web/app/immutable/chunks/{5bL3DJj7.js → CaxwpItd.js} +1 -1
  118. package/web/app/immutable/chunks/{rZp3PWdq.js → CbVYqaBE.js} +1 -1
  119. package/web/app/immutable/chunks/{CtGY50_e.js → Ccxm74iK.js} +1 -1
  120. package/web/app/immutable/chunks/CfV9aH5z.js +4 -0
  121. package/web/app/immutable/chunks/CgPr4hs2.js +1 -0
  122. package/web/app/immutable/chunks/{DktdylrS.js → Ch36jfts.js} +1 -1
  123. package/web/app/immutable/chunks/{T4V8F4hM.js → ChRkiYOJ.js} +1 -1
  124. package/web/app/immutable/chunks/{BdqSZQx_.js → CivlAwc7.js} +1 -1
  125. package/web/app/immutable/chunks/CiyXcVwM.js +1 -0
  126. package/web/app/immutable/chunks/{YvM9JcXX.js → CjUzEyu9.js} +1 -1
  127. package/web/app/immutable/chunks/{D2ImsQzb.js → CkmJMnjs.js} +1 -1
  128. package/web/app/immutable/chunks/{Da9J2JX1.js → ClHM0gRH.js} +1 -1
  129. package/web/app/immutable/chunks/{B5xbJc9W.js → Clm-X79i.js} +1 -1
  130. package/web/app/immutable/chunks/{D1LasNTA.js → Clusycua.js} +1 -1
  131. package/web/app/immutable/chunks/{CBolvbXG.js → Cm8yeV3M.js} +1 -1
  132. package/web/app/immutable/chunks/{CDbeyeCP.js → Cmd7Q9e2.js} +2 -2
  133. package/web/app/immutable/chunks/{C13MrFSw.js → CntEBInL.js} +1 -1
  134. package/web/app/immutable/chunks/{CfM0pCZF.js → Co_Aa6ij.js} +1 -1
  135. package/web/app/immutable/chunks/{NUHg8tud.js → CokCeQxx.js} +1 -1
  136. package/web/app/immutable/chunks/{rjfpoS8M.js → CpWIfz5C.js} +1 -1
  137. package/web/app/immutable/chunks/{D4kGqGBk.js → CpZlxc5c.js} +1 -1
  138. package/web/app/immutable/chunks/{O81B-H5P.js → Cq8w3ES-.js} +1 -1
  139. package/web/app/immutable/chunks/{CJT0k-x3.js → Cqsec-yx.js} +1 -1
  140. package/web/app/immutable/chunks/{DIiXUVIr.js → Cro1ceUg.js} +3 -3
  141. package/web/app/immutable/chunks/{3CggOKng.js → Cs1191LV.js} +1 -1
  142. package/web/app/immutable/chunks/{DaiMZHlt.js → CsHZlnUj.js} +1 -1
  143. package/web/app/immutable/chunks/{DpawEIzT.js → CskCO23D.js} +3 -3
  144. package/web/app/immutable/chunks/{CsvDcicf.js → CsstSIr0.js} +1 -1
  145. package/web/app/immutable/chunks/{CemNgvNI.js → Cv0HcHak.js} +1 -1
  146. package/web/app/immutable/chunks/{DmeSNHl2.js → CvNRUlp4.js} +1 -1
  147. package/web/app/immutable/chunks/{Cb7Fwhyl.js → CvXnZ-8G.js} +1 -1
  148. package/web/app/immutable/chunks/{Bs0OTveI.js → CvlQZpOV.js} +1 -1
  149. package/web/app/immutable/chunks/{u8zBWO7U.js → Cx9nrScM.js} +1 -1
  150. package/web/app/immutable/chunks/{0n1_sqb5.js → CzeJNa_N.js} +1 -1
  151. package/web/app/immutable/chunks/{C3U610Va.js → D-USmFEk.js} +1 -1
  152. package/web/app/immutable/chunks/{DqaJW-PO.js → D-Zd1oaK.js} +1 -1
  153. package/web/app/immutable/chunks/{e4k4F_fF.js → D-nuXMbz.js} +1 -1
  154. package/web/app/immutable/chunks/{DhizMGiT.js → D-y9m6ao.js} +1 -1
  155. package/web/app/immutable/chunks/{kmgcRpkz.js → D0SLupV7.js} +1 -1
  156. package/web/app/immutable/chunks/{1kMmRwXf.js → D226daYk.js} +1 -1
  157. package/web/app/immutable/chunks/{B25t-e4E.js → D32qvOGn.js} +1 -1
  158. package/web/app/immutable/chunks/{HqhytM4z.js → D3ROSEe0.js} +1 -1
  159. package/web/app/immutable/chunks/{BDZGpmAg.js → D4KaTH-V.js} +1 -1
  160. package/web/app/immutable/chunks/{CpyyZUC4.js → D56Oo2O2.js} +1 -1
  161. package/web/app/immutable/chunks/{YQRvuTGW.js → D5jBmJQo.js} +1 -1
  162. package/web/app/immutable/chunks/{KrEm5AbS.js → D6rPVTS4.js} +1 -1
  163. package/web/app/immutable/chunks/{BcXGciCG.js → D7Efqf9l.js} +1 -1
  164. package/web/app/immutable/chunks/{C7cZaxG3.js → D7RRnWwO.js} +1 -1
  165. package/web/app/immutable/chunks/{DBaQx-Pk.js → D8m7soiy.js} +1 -1
  166. package/web/app/immutable/chunks/{DBH00hnQ.js → D9ikaMyr.js} +1 -1
  167. package/web/app/immutable/chunks/{CamLX2Sb.js → DC4NL8YS.js} +1 -1
  168. package/web/app/immutable/chunks/{f34gPxAx.js → DCpi1ytG.js} +1 -1
  169. package/web/app/immutable/chunks/{CG_nXeYa.js → DD8c9eUJ.js} +1 -1
  170. package/web/app/immutable/chunks/{C7FfDPRZ.js → DFT4lZL_.js} +1 -1
  171. package/web/app/immutable/chunks/{Bb6J6sjQ.js → DG2MKLyJ.js} +1 -1
  172. package/web/app/immutable/chunks/{BTurlMFD.js → DG9YtBZO.js} +1 -1
  173. package/web/app/immutable/chunks/{Daq0t0IO.js → DHVVvfGv.js} +1 -1
  174. package/web/app/immutable/chunks/{3-iWM9xO.js → DJB1T3Sf.js} +1 -1
  175. package/web/app/immutable/chunks/{ClGi_L6l.js → DJk4n_RN.js} +1 -1
  176. package/web/app/immutable/chunks/{Bk3O9qYH.js → DJuSbP_R.js} +1 -1
  177. package/web/app/immutable/chunks/{BzBOPxuP.js → DK1Nq2tK.js} +1 -1
  178. package/web/app/immutable/chunks/{CBiBtnBM.js → DKDZTli0.js} +1 -1
  179. package/web/app/immutable/chunks/{C26KoPDI.js → DKs113YH.js} +1 -1
  180. package/web/app/immutable/chunks/{DfacsTaO.js → DNWjwuC6.js} +1 -1
  181. package/web/app/immutable/chunks/{hcRUxON5.js → DPRoG8qR.js} +1 -1
  182. package/web/app/immutable/chunks/{RKSEQ7So.js → DQXapDyu.js} +1 -1
  183. package/web/app/immutable/chunks/{COR1ZgMB.js → DQcbLXPp.js} +1 -1
  184. package/web/app/immutable/chunks/{CW9o0MGu.js → DR8eV9N8.js} +1 -1
  185. package/web/app/immutable/chunks/{iF8lSM38.js → DTTAQR6U.js} +1 -1
  186. package/web/app/immutable/chunks/{D1dtTkDE.js → DUEahgsi.js} +1 -1
  187. package/web/app/immutable/chunks/{CNySgneH.js → DV1BB3if.js} +1 -1
  188. package/web/app/immutable/chunks/{DerqLelD.js → DVGE4E_C.js} +1 -1
  189. package/web/app/immutable/chunks/{CK6izZOP.js → DVOiawfp.js} +2 -2
  190. package/web/app/immutable/chunks/{Bg4MuTWX.js → DVbZ5oZ8.js} +1 -1
  191. package/web/app/immutable/chunks/{Bqfueq_D.js → DWLJSPfW.js} +1 -1
  192. package/web/app/immutable/chunks/{BGCd17XA.js → DX09WtDr.js} +1 -1
  193. package/web/app/immutable/chunks/{Bg5ADDrW.js → DX8x4w_C.js} +1 -1
  194. package/web/app/immutable/chunks/{BZsM0M0Q.js → DXiP5t0I.js} +1 -1
  195. package/web/app/immutable/chunks/{BW5wGxdP.js → DY2nfza0.js} +1 -1
  196. package/web/app/immutable/chunks/{CEuCjemc.js → DZyz0CaB.js} +1 -1
  197. package/web/app/immutable/chunks/{YSaBP0Ch.js → DaJsXhcE.js} +1 -1
  198. package/web/app/immutable/chunks/{BAhFveyJ.js → Darv-bZj.js} +1 -1
  199. package/web/app/immutable/chunks/{Db1mweH6.js → DbD4A30t.js} +1 -1
  200. package/web/app/immutable/chunks/{iy9r6eBz.js → DeywGElR.js} +1 -1
  201. package/web/app/immutable/chunks/{Dbhxem_q.js → Df1mOKLZ.js} +1 -1
  202. package/web/app/immutable/chunks/{bHtn9InS.js → Df2ohObb.js} +1 -1
  203. package/web/app/immutable/chunks/{CIkVHIT3.js → Df8Itx2l.js} +1 -1
  204. package/web/app/immutable/chunks/{12UHR0Xn.js → DfKemw6I.js} +1 -1
  205. package/web/app/immutable/chunks/{1KqMO8DA.js → Dfw44tJF.js} +1 -1
  206. package/web/app/immutable/chunks/{DVuTL7Ze.js → DgO-InVL.js} +1 -1
  207. package/web/app/immutable/chunks/{zIOd8jG8.js → Dj0Fo3FR.js} +1 -1
  208. package/web/app/immutable/chunks/{D_OjFNQH.js → DknXCwG-.js} +1 -1
  209. package/web/app/immutable/chunks/{TjYngI-X.js → Dl6wwL68.js} +1 -1
  210. package/web/app/immutable/chunks/{D8u-TTw-.js → DlcwslMx.js} +1 -1
  211. package/web/app/immutable/chunks/{IjnClLwt.js → Dlfu53Jt.js} +1 -1
  212. package/web/app/immutable/chunks/{DZFxh2Hz.js → DlqxHCQ7.js} +1 -1
  213. package/web/app/immutable/chunks/{CS4ChtR_.js → DoSGU0je.js} +1 -1
  214. package/web/app/immutable/chunks/{D91osLQe.js → DpDR6yW3.js} +1 -1
  215. package/web/app/immutable/chunks/{V68rWC50.js → DqNPF1Kv.js} +1 -1
  216. package/web/app/immutable/chunks/{BppZZR6X.js → DsEt8_PJ.js} +1 -1
  217. package/web/app/immutable/chunks/{Dy2xsFvf.js → Dt4GGs4d.js} +1 -1
  218. package/web/app/immutable/chunks/{D8C52zH9.js → Dug6137y.js} +1 -1
  219. package/web/app/immutable/chunks/{Cd0IJoag.js → DxGgdCHB.js} +1 -1
  220. package/web/app/immutable/chunks/{B7y27fC-.js → Dynz04e1.js} +1 -1
  221. package/web/app/immutable/chunks/{DwxN7Wdi.js → DzbhMJUu.js} +1 -1
  222. package/web/app/immutable/chunks/{lM1_eh6C.js → FvORToMl.js} +1 -1
  223. package/web/app/immutable/chunks/{C2eeslGl.js → GIAV4N10.js} +1 -1
  224. package/web/app/immutable/chunks/{cv4xg7k0.js → HK2fZqOM.js} +1 -1
  225. package/web/app/immutable/chunks/{D6QA9x6A.js → IorbBySt.js} +1 -1
  226. package/web/app/immutable/chunks/{BiMGq9Z7.js → IuNsAsbW.js} +1 -1
  227. package/web/app/immutable/chunks/{wI7zMgx-.js → Kr-Hl0sp.js} +1 -1
  228. package/web/app/immutable/chunks/{DchjGXey.js → LZ5jXWXv.js} +1 -1
  229. package/web/app/immutable/chunks/{BejAw64w.js → LhLTjc8B.js} +6 -6
  230. package/web/app/immutable/chunks/{D1zpsxCF.js → LwsqbQ0C.js} +1 -1
  231. package/web/app/immutable/chunks/{BDldvohw.js → P80hEEPK.js} +1 -1
  232. package/web/app/immutable/chunks/{3FJRVBU-.js → PJ-tEAYj.js} +1 -1
  233. package/web/app/immutable/chunks/{P-01BLZ6.js → Ps9iRbKd.js} +3 -3
  234. package/web/app/immutable/chunks/{BelvDbq4.js → Q0BLEqss.js} +3 -3
  235. package/web/app/immutable/chunks/{B7g53bMx.js → Qe1_731c.js} +1 -1
  236. package/web/app/immutable/chunks/{CsgZCzi1.js → RiB0F36z.js} +3 -3
  237. package/web/app/immutable/chunks/RmgPTyFU.js +1 -0
  238. package/web/app/immutable/chunks/{CyLm5JOs.js → SEnfPRC9.js} +1 -1
  239. package/web/app/immutable/chunks/{C-jH8s9r.js → S_AAYsIr.js} +2 -2
  240. package/web/app/immutable/chunks/{CVYI64VR.js → SpDQ1yhe.js} +1 -1
  241. package/web/app/immutable/chunks/{glfri7wL.js → Wtp4gWgF.js} +1 -1
  242. package/web/app/immutable/chunks/{Drwt7aYJ.js → Xz2JgrtK.js} +1 -1
  243. package/web/app/immutable/chunks/{Cm72nCq-.js → ZBCGBGeT.js} +1 -1
  244. package/web/app/immutable/chunks/{C_lRd9OO.js → ZsIzkx4b.js} +1 -1
  245. package/web/app/immutable/chunks/{D6cxqzoz.js → _es_q85K.js} +1 -1
  246. package/web/app/immutable/chunks/{CI4bdaNh.js → _o85nBWH.js} +1 -1
  247. package/web/app/immutable/chunks/{D2zf67XA.js → bAWH0D1a.js} +7 -7
  248. package/web/app/immutable/chunks/{BNOUHNLe.js → cPzpQFEA.js} +1 -1
  249. package/web/app/immutable/chunks/{Bxucs2aA.js → dkojwLk2.js} +1 -1
  250. package/web/app/immutable/chunks/{DFhTl2LJ.js → dpToMVNV.js} +1 -1
  251. package/web/app/immutable/chunks/{CFmU7Xxn.js → fXrcgNtr.js} +1 -1
  252. package/web/app/immutable/chunks/{CUTHTUjs.js → fciB9y8B.js} +1 -1
  253. package/web/app/immutable/chunks/{Bz2j5nDH.js → iCHr0TgO.js} +1 -1
  254. package/web/app/immutable/chunks/iaaN5aeR.js +1 -0
  255. package/web/app/immutable/chunks/{B1rvRaDg.js → ihEwdinj.js} +1 -1
  256. package/web/app/immutable/chunks/{CfeU66Hz.js → jsY6ocH0.js} +1 -1
  257. package/web/app/immutable/chunks/{DShhv9Lh.js → kIb2FXed.js} +1 -1
  258. package/web/app/immutable/chunks/{p29Y4Sx3.js → kXKukUHU.js} +1 -1
  259. package/web/app/immutable/chunks/{DuMYTc8Y.js → kza5UJ4U.js} +1 -1
  260. package/web/app/immutable/chunks/{D30--6jq.js → mMBlGZk9.js} +1 -1
  261. package/web/app/immutable/chunks/{BupZf9R2.js → mR2QgOoI.js} +1 -1
  262. package/web/app/immutable/chunks/{D3sL2PPU.js → mp47640j.js} +1 -1
  263. package/web/app/immutable/chunks/{B3II5C5l.js → n-WVnUeH.js} +1 -1
  264. package/web/app/immutable/chunks/{DFQ2LZfw.js → nR6RXxA9.js} +1 -1
  265. package/web/app/immutable/chunks/{BzBHISyY.js → pBEY1Dg2.js} +1 -1
  266. package/web/app/immutable/chunks/{D6Y18pu-.js → pEUfw1x0.js} +1 -1
  267. package/web/app/immutable/chunks/{DYZQjWbl.js → prrfQq6f.js} +1 -1
  268. package/web/app/immutable/chunks/{DTjIXONR.js → puEh5oJr.js} +4 -4
  269. package/web/app/immutable/chunks/{DxRCuR64.js → q4FIdUSc.js} +1 -1
  270. package/web/app/immutable/chunks/{Cno21Zxg.js → q6-D_vn6.js} +1 -1
  271. package/web/app/immutable/chunks/{CaHA2ESe.js → qshqk_Zv.js} +1 -1
  272. package/web/app/immutable/chunks/{Dmq8N6LI.js → qvHk51jx.js} +2 -2
  273. package/web/app/immutable/chunks/{CdtTvwl3.js → r8ylcc1d.js} +1 -1
  274. package/web/app/immutable/chunks/{CAh6WYw0.js → rpeM9FmT.js} +1 -1
  275. package/web/app/immutable/chunks/{LzhxhM8_.js → u8Ybsqvl.js} +1 -1
  276. package/web/app/immutable/chunks/{DjXUNnle.js → uPJwsXgL.js} +1 -1
  277. package/web/app/immutable/chunks/{BtuvHYz8.js → v6SgbwXH.js} +1 -1
  278. package/web/app/immutable/chunks/{CWELhcXR.js → wSFhIxGo.js} +1 -1
  279. package/web/app/immutable/chunks/{CHLJ-3Q1.js → wk8l4Vfb.js} +1 -1
  280. package/web/app/immutable/chunks/{Z-nmDTPH.js → wz1UgZlY.js} +1 -1
  281. package/web/app/immutable/chunks/{CzoFKpHV.js → xF2i73WW.js} +1 -1
  282. package/web/app/immutable/chunks/{D-k0eOJ6.js → yW5sglFu.js} +1 -1
  283. package/web/app/immutable/chunks/{DzpyprB1.js → ydrF5SOC.js} +1 -1
  284. package/web/app/immutable/chunks/{DE17eju9.js → zgX_Rwbq.js} +1 -1
  285. package/web/app/immutable/chunks/{4WPqCRAv.js → zxmCuTa7.js} +1 -1
  286. package/web/app/immutable/entry/{app.Bf_OSyrf.js → app.DF_Qftdw.js} +3 -3
  287. package/web/app/immutable/entry/start.DzVa4jHd.js +1 -0
  288. package/web/app/immutable/nodes/{0.B5ZNWVMC.js → 0.KW34tjG8.js} +1 -1
  289. package/web/app/immutable/nodes/{1.SeMykOqr.js → 1.CHhQxwtD.js} +1 -1
  290. package/web/app/immutable/nodes/{10.BZ6kBK3P.js → 10.CGdaTN_a.js} +1 -1
  291. package/web/app/immutable/nodes/{11.DdNqWjT1.js → 11.K4X9py2s.js} +1 -1
  292. package/web/app/immutable/nodes/{12.sEYH_Pmu.js → 12.CV0D62ho.js} +1 -1
  293. package/web/app/immutable/nodes/{13.B0uhCaJY.js → 13.B-lV8z59.js} +3 -3
  294. package/web/app/immutable/nodes/{14.C3Ch8LVG.js → 14.BTTvfbc0.js} +1 -1
  295. package/web/app/immutable/nodes/{15.B6xmqReh.js → 15.CKURddgk.js} +1 -1
  296. package/web/app/immutable/nodes/{16.k3HHr2yy.js → 16.DD-jxx3d.js} +2 -2
  297. package/web/app/immutable/nodes/{2.CdR_R7AF.js → 2.CTO1JTL7.js} +4 -4
  298. package/web/app/immutable/nodes/{3.C81CEmtR.js → 3.BE75vqzp.js} +1 -1
  299. package/web/app/immutable/nodes/{4.F_Gi0JxR.js → 4.BUm0nN8e.js} +1 -1
  300. package/web/app/immutable/nodes/{5.CtBTp1Hg.js → 5.BRXD3vaZ.js} +1 -1
  301. package/web/app/immutable/nodes/{6.CYnJfc7G.js → 6.CWxGKv_E.js} +1 -1
  302. package/web/app/immutable/nodes/{7.CHPJsLkB.js → 7.DI6-BnKI.js} +1 -1
  303. package/web/app/immutable/nodes/8.5BsghwEn.js +14 -0
  304. package/web/app/immutable/nodes/{9.VslqwEvr.js → 9.-PRJswf6.js} +6 -6
  305. package/web/app/version.json +1 -1
  306. package/web/generated/paraglide.js +48 -48
  307. package/web/index.html +18 -18
  308. package/web/app/immutable/chunks/BCVnawos.js +0 -1
  309. package/web/app/immutable/chunks/BQS0XfBK.js +0 -1
  310. package/web/app/immutable/chunks/CjKcpWyx.js +0 -4
  311. package/web/app/immutable/chunks/D9I3JJnE.js +0 -1
  312. package/web/app/immutable/chunks/lvIYiyhL.js +0 -1
  313. package/web/app/immutable/chunks/sMg7Lxjd.js +0 -1
  314. package/web/app/immutable/entry/start.IOR_3Iyx.js +0 -1
  315. package/web/app/immutable/nodes/8.Dc-nd7pr.js +0 -14
@@ -1,4 +1,4 @@
1
- import{g as st}from"./D-k0eOJ6.js";import{g as it}from"./Diyq2-7-.js";import{s as at}from"./Db1mweH6.js";import{f,bC as we,aO as F,aS as nt,bZ as rt,cx as Ve,c3 as Ae,c7 as ut,aL as lt,c6 as ct,aK as ot,c9 as ht,aP as dt,a4 as I,a0 as pt,aQ as At,c2 as ft,bR as U}from"./BejAw64w.js";import{c as gt}from"./CHLJ-3Q1.js";import{aI as mt}from"./CbsrOoqP.js";var Pe=(function(){var s=f(function(O,o,h,p){for(h=h||{},p=O.length;p--;h[O[p]]=o);return h},"o"),i=[1,18],a=[1,19],n=[1,20],r=[1,41],c=[1,26],u=[1,42],d=[1,24],m=[1,25],g=[1,32],N=[1,33],ge=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],ee=[1,58],te=[1,59],se=[1,60],ie=[1,61],ae=[1,62],_e=[1,63],Se=[1,64],_=[1,8,9,41],Me=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],re=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],Y=[1,121],Q=[1,117],W=[1,113],j=[1,119],X=[1,114],q=[1,115],H=[1,116],J=[1,118],Z=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],le=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ke=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(o,h,p,l,C,e,$){var t=e.length-1;switch(C){case 8:this.$=e[t-1];break;case 9:case 10:case 13:case 15:this.$=e[t];break;case 11:case 14:this.$=e[t-2]+"."+e[t];break;case 12:case 16:this.$=e[t-1]+e[t];break;case 17:case 18:this.$=e[t-1]+"~"+e[t]+"~";break;case 19:l.addRelation(e[t]);break;case 20:e[t-1].title=l.cleanupLabel(e[t]),l.addRelation(e[t-1]);break;case 31:this.$=e[t].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[t].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[t-3],e[t-1][0],e[t-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[t-4],e[t-1][0],e[t-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[t]);break;case 37:this.$=l.addNamespace(e[t-1],e[t]);break;case 38:this.$=[[e[t]],[]];break;case 39:this.$=[[e[t-1]],[]];break;case 40:e[t][0].unshift(e[t-2]),this.$=e[t];break;case 41:this.$=[[],[e[t]]];break;case 42:this.$=[[],[e[t-1]]];break;case 43:e[t][1].unshift(e[t-2]),this.$=e[t];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[t];break;case 48:l.setCssClass(e[t-2],e[t]);break;case 49:l.addMembers(e[t-3],e[t-1]);break;case 51:l.setCssClass(e[t-5],e[t-3]),l.addMembers(e[t-5],e[t-1]);break;case 52:l.addAnnotation(e[t-3],e[t-1]);break;case 53:l.addAnnotation(e[t-6],e[t-4]),l.addMembers(e[t-6],e[t-1]);break;case 54:l.addAnnotation(e[t-5],e[t-3]);break;case 55:this.$=e[t],l.addClass(e[t]);break;case 56:this.$=e[t-1],l.addClass(e[t-1]),l.setClassLabel(e[t-1],e[t]);break;case 60:l.addAnnotation(e[t],e[t-2]);break;case 61:case 74:this.$=[e[t]];break;case 62:e[t].push(e[t-1]),this.$=e[t];break;case 63:break;case 64:l.addMember(e[t-1],l.cleanupLabel(e[t]));break;case 65:break;case 66:break;case 67:this.$={id1:e[t-2],id2:e[t],relation:e[t-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[t-3],id2:e[t],relation:e[t-1],relationTitle1:e[t-2],relationTitle2:"none"};break;case 69:this.$={id1:e[t-3],id2:e[t],relation:e[t-2],relationTitle1:"none",relationTitle2:e[t-1]};break;case 70:this.$={id1:e[t-4],id2:e[t],relation:e[t-2],relationTitle1:e[t-3],relationTitle2:e[t-1]};break;case 71:this.$=l.addNote(e[t],e[t-1]);break;case 72:this.$=l.addNote(e[t]);break;case 73:this.$=e[t-2],l.defineClass(e[t-1],e[t]);break;case 75:this.$=e[t-2].concat([e[t]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[t-2],type2:e[t],lineType:e[t-1]};break;case 81:this.$={type1:"none",type2:e[t],lineType:e[t-1]};break;case 82:this.$={type1:e[t-1],type2:"none",lineType:e[t]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[t]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[t-2],l.setClickEvent(e[t-1],e[t]);break;case 92:case 98:this.$=e[t-3],l.setClickEvent(e[t-2],e[t-1]),l.setTooltip(e[t-2],e[t]);break;case 93:this.$=e[t-2],l.setLink(e[t-1],e[t]);break;case 94:this.$=e[t-3],l.setLink(e[t-2],e[t-1],e[t]);break;case 95:this.$=e[t-3],l.setLink(e[t-2],e[t-1]),l.setTooltip(e[t-2],e[t]);break;case 96:this.$=e[t-4],l.setLink(e[t-3],e[t-2],e[t]),l.setTooltip(e[t-3],e[t-1]);break;case 99:this.$=e[t-3],l.setClickEvent(e[t-2],e[t-1],e[t]);break;case 100:this.$=e[t-4],l.setClickEvent(e[t-3],e[t-2],e[t-1]),l.setTooltip(e[t-3],e[t]);break;case 101:this.$=e[t-3],l.setLink(e[t-2],e[t]);break;case 102:this.$=e[t-4],l.setLink(e[t-3],e[t-1],e[t]);break;case 103:this.$=e[t-4],l.setLink(e[t-3],e[t-1]),l.setTooltip(e[t-3],e[t]);break;case 104:this.$=e[t-5],l.setLink(e[t-4],e[t-2],e[t]),l.setTooltip(e[t-4],e[t-1]);break;case 105:this.$=e[t-2],l.setCssStyle(e[t-1],e[t]);break;case 106:l.setCssClass(e[t-1],e[t]);break;case 107:this.$=[e[t]];break;case 108:e[t-2].push(e[t]),this.$=e[t-2];break;case 110:this.$=e[t-1]+e[t];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:r,43:23,46:c,48:u,51:d,52:m,54:g,56:N,57:ge,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Be,[2,5],{8:[1,48]}),{8:[1,49]},s(A,[2,19],{22:[1,50]}),s(A,[2,21]),s(A,[2,22]),s(A,[2,23]),s(A,[2,24]),s(A,[2,25]),s(A,[2,26]),s(A,[2,27]),s(A,[2,28]),s(A,[2,29]),s(A,[2,30]),{34:[1,51]},{36:[1,52]},s(A,[2,33]),s(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:ee,69:te,70:se,71:ie,72:ae,73:_e,74:Se}),{39:[1,65]},s(_,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(A,[2,65]),s(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Me,55:76},{58:78,60:[1,79]},s(A,[2,76]),s(A,[2,77]),s(A,[2,78]),s(A,[2,79]),s(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),s(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},s(ne,[2,133]),s(ne,[2,134]),s(ne,[2,135]),s(ne,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:n,42:r,46:c,48:u,51:d,52:m,54:g,56:N,57:ge,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:r,43:23,46:c,48:u,51:d,52:m,54:g,56:N,57:ge,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},s(A,[2,20]),s(A,[2,31]),s(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:ee,69:te,70:se,71:ie,72:ae,73:_e,74:Se},s(A,[2,64]),{67:93,73:_e,74:Se},s(re,[2,83],{66:94,68:ee,69:te,70:se,71:ie,72:ae}),s(K,[2,84]),s(K,[2,85]),s(K,[2,86]),s(K,[2,87]),s(K,[2,88]),s(Re,[2,89]),s(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:r,43:23,48:u,54:g,56:N},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:Y,50:Q,59:110,60:W,82:j,84:111,85:112,86:X,87:q,88:H,89:J,90:Z},{60:[1,122]},{13:Me,55:123},s(_,[2,72]),s(_,[2,138]),{22:Y,50:Q,59:124,60:W,61:[1,125],82:j,84:111,85:112,86:X,87:q,88:H,89:J,90:Z},s(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},s(R,[2,16]),s(R,[2,17]),s(R,[2,18]),{11:127,12:Ue,39:[2,36]},s(le,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),s(le,[2,10]),s(Ne,[2,55],{11:131,12:Ue}),s(Be,[2,7]),{9:[1,132]},s(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},s(re,[2,82],{66:136,68:ee,69:te,70:se,71:ie,72:ae}),s(re,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:r,43:23,48:u,54:g,56:N},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(_,[2,48],{39:[1,142]}),{41:[1,143]},s(_,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},s(A,[2,91],{13:[1,147]}),s(A,[2,93],{13:[1,149],77:[1,148]}),s(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(A,[2,105],{61:ze}),s(Ke,[2,107],{85:154,22:Y,50:Q,60:W,82:j,86:X,87:q,88:H,89:J,90:Z}),s(x,[2,109]),s(x,[2,111]),s(x,[2,112]),s(x,[2,113]),s(x,[2,114]),s(x,[2,115]),s(x,[2,116]),s(x,[2,117]),s(x,[2,118]),s(x,[2,119]),s(A,[2,106]),s(_,[2,71]),s(A,[2,73],{61:ze}),{60:[1,155]},s(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},s(le,[2,12]),s(Ne,[2,56]),{1:[2,4]},s(ce,[2,69]),s(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},s(re,[2,80]),s(_,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:r,43:23,48:u,54:g,56:N},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:r,43:23,48:u,54:g,56:N},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:r,43:23,48:u,54:g,56:N},{45:163,51:ue},s(_,[2,49]),{41:[2,62]},s(_,[2,52],{39:[1,164]}),s(A,[2,60]),s(A,[2,92]),s(A,[2,94]),s(A,[2,95],{77:[1,165]}),s(A,[2,98]),s(A,[2,99],{13:[1,166]}),s(A,[2,101],{13:[1,168],77:[1,167]}),{22:Y,50:Q,60:W,82:j,84:169,85:112,86:X,87:q,88:H,89:J,90:Z},s(x,[2,110]),s(Ge,[2,75]),{14:[1,170]},s(le,[2,11]),s(ce,[2,70]),s(_,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},s(A,[2,96]),s(A,[2,100]),s(A,[2,102]),s(A,[2,103],{77:[1,174]}),s(Ke,[2,108],{85:154,22:Y,50:Q,60:W,82:j,86:X,87:q,88:H,89:J,90:Z}),s(Ne,[2,8]),s(_,[2,51]),{41:[1,175]},s(_,[2,54]),s(A,[2,104]),s(_,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(o,h){if(h.recoverable)this.trace(o);else{var p=new Error(o);throw p.hash=h,p}},"parseError"),parse:f(function(o){var h=this,p=[0],l=[],C=[null],e=[],$=this.table,t="",he=0,Ye=0,Ze=2,Qe=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(o,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(S){p.length=p.length-2*S,C.length=C.length-S,e.length=e.length-S}f(tt,"popStack");function We(){var S;return S=l.pop()||D.lex()||Qe,typeof S!="number"&&(S instanceof Array&&(l=S,S=l.pop()),S=h.symbols_[S]||S),S}f(We,"lex");for(var B,P,L,Ie,G={},de,v,je,pe;;){if(P=p[p.length-1],this.defaultActions[P]?L=this.defaultActions[P]:((B===null||typeof B>"u")&&(B=We()),L=$[P]&&$[P][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";pe=[];for(de in $[P])this.terminals_[de]&&de>Ze&&pe.push("'"+this.terminals_[de]+"'");D.showPosition?Oe="Parse error on line "+(he+1)+`:
1
+ import{g as st}from"./jsY6ocH0.js";import{g as it}from"./CSJ0J5sC.js";import{s as at}from"./DbD4A30t.js";import{f,bC as we,aO as F,aS as nt,bZ as rt,cx as Ve,c3 as Ae,c7 as ut,aL as lt,c6 as ct,aK as ot,c9 as ht,aP as dt,a4 as I,a0 as pt,aQ as At,c2 as ft,bR as U}from"./LhLTjc8B.js";import{c as gt}from"./wk8l4Vfb.js";import{aI as mt}from"./86pQg5ba.js";var Pe=(function(){var s=f(function(O,o,h,p){for(h=h||{},p=O.length;p--;h[O[p]]=o);return h},"o"),i=[1,18],a=[1,19],n=[1,20],r=[1,41],c=[1,26],u=[1,42],d=[1,24],m=[1,25],g=[1,32],N=[1,33],ge=[1,34],b=[1,45],me=[1,35],Ce=[1,36],be=[1,37],ke=[1,38],Ee=[1,27],Te=[1,28],ye=[1,29],De=[1,30],Fe=[1,31],k=[1,44],E=[1,46],T=[1,43],y=[1,47],Be=[1,9],A=[1,8,9],ee=[1,58],te=[1,59],se=[1,60],ie=[1,61],ae=[1,62],_e=[1,63],Se=[1,64],_=[1,8,9,41],Me=[1,77],R=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],ne=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],re=[13,60,86,100,102,103],K=[13,60,73,74,86,100,102,103],Re=[13,60,68,69,70,71,72,86,100,102,103],ue=[1,103],Y=[1,121],Q=[1,117],W=[1,113],j=[1,119],X=[1,114],q=[1,115],H=[1,116],J=[1,118],Z=[1,120],Ge=[22,50,60,61,82,86,87,88,89,90],Ue=[1,128],le=[12,39],Ne=[1,8,9,39,41,44,46],ce=[1,8,9,22],ze=[1,153],Ke=[1,8,9,61],x=[1,8,9,22,50,60,61,82,86,87,88,89,90],Le={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:f(function(o,h,p,l,C,e,$){var t=e.length-1;switch(C){case 8:this.$=e[t-1];break;case 9:case 10:case 13:case 15:this.$=e[t];break;case 11:case 14:this.$=e[t-2]+"."+e[t];break;case 12:case 16:this.$=e[t-1]+e[t];break;case 17:case 18:this.$=e[t-1]+"~"+e[t]+"~";break;case 19:l.addRelation(e[t]);break;case 20:e[t-1].title=l.cleanupLabel(e[t]),l.addRelation(e[t-1]);break;case 31:this.$=e[t].trim(),l.setAccTitle(this.$);break;case 32:case 33:this.$=e[t].trim(),l.setAccDescription(this.$);break;case 34:l.addClassesToNamespace(e[t-3],e[t-1][0],e[t-1][1]),l.popNamespace();break;case 35:l.addClassesToNamespace(e[t-4],e[t-1][0],e[t-1][1]),l.popNamespace();break;case 36:this.$=l.addNamespace(e[t]);break;case 37:this.$=l.addNamespace(e[t-1],e[t]);break;case 38:this.$=[[e[t]],[]];break;case 39:this.$=[[e[t-1]],[]];break;case 40:e[t][0].unshift(e[t-2]),this.$=e[t];break;case 41:this.$=[[],[e[t]]];break;case 42:this.$=[[],[e[t-1]]];break;case 43:e[t][1].unshift(e[t-2]),this.$=e[t];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=e[t];break;case 48:l.setCssClass(e[t-2],e[t]);break;case 49:l.addMembers(e[t-3],e[t-1]);break;case 51:l.setCssClass(e[t-5],e[t-3]),l.addMembers(e[t-5],e[t-1]);break;case 52:l.addAnnotation(e[t-3],e[t-1]);break;case 53:l.addAnnotation(e[t-6],e[t-4]),l.addMembers(e[t-6],e[t-1]);break;case 54:l.addAnnotation(e[t-5],e[t-3]);break;case 55:this.$=e[t],l.addClass(e[t]);break;case 56:this.$=e[t-1],l.addClass(e[t-1]),l.setClassLabel(e[t-1],e[t]);break;case 60:l.addAnnotation(e[t],e[t-2]);break;case 61:case 74:this.$=[e[t]];break;case 62:e[t].push(e[t-1]),this.$=e[t];break;case 63:break;case 64:l.addMember(e[t-1],l.cleanupLabel(e[t]));break;case 65:break;case 66:break;case 67:this.$={id1:e[t-2],id2:e[t],relation:e[t-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:e[t-3],id2:e[t],relation:e[t-1],relationTitle1:e[t-2],relationTitle2:"none"};break;case 69:this.$={id1:e[t-3],id2:e[t],relation:e[t-2],relationTitle1:"none",relationTitle2:e[t-1]};break;case 70:this.$={id1:e[t-4],id2:e[t],relation:e[t-2],relationTitle1:e[t-3],relationTitle2:e[t-1]};break;case 71:this.$=l.addNote(e[t],e[t-1]);break;case 72:this.$=l.addNote(e[t]);break;case 73:this.$=e[t-2],l.defineClass(e[t-1],e[t]);break;case 75:this.$=e[t-2].concat([e[t]]);break;case 76:l.setDirection("TB");break;case 77:l.setDirection("BT");break;case 78:l.setDirection("RL");break;case 79:l.setDirection("LR");break;case 80:this.$={type1:e[t-2],type2:e[t],lineType:e[t-1]};break;case 81:this.$={type1:"none",type2:e[t],lineType:e[t-1]};break;case 82:this.$={type1:e[t-1],type2:"none",lineType:e[t]};break;case 83:this.$={type1:"none",type2:"none",lineType:e[t]};break;case 84:this.$=l.relationType.AGGREGATION;break;case 85:this.$=l.relationType.EXTENSION;break;case 86:this.$=l.relationType.COMPOSITION;break;case 87:this.$=l.relationType.DEPENDENCY;break;case 88:this.$=l.relationType.LOLLIPOP;break;case 89:this.$=l.lineType.LINE;break;case 90:this.$=l.lineType.DOTTED_LINE;break;case 91:case 97:this.$=e[t-2],l.setClickEvent(e[t-1],e[t]);break;case 92:case 98:this.$=e[t-3],l.setClickEvent(e[t-2],e[t-1]),l.setTooltip(e[t-2],e[t]);break;case 93:this.$=e[t-2],l.setLink(e[t-1],e[t]);break;case 94:this.$=e[t-3],l.setLink(e[t-2],e[t-1],e[t]);break;case 95:this.$=e[t-3],l.setLink(e[t-2],e[t-1]),l.setTooltip(e[t-2],e[t]);break;case 96:this.$=e[t-4],l.setLink(e[t-3],e[t-2],e[t]),l.setTooltip(e[t-3],e[t-1]);break;case 99:this.$=e[t-3],l.setClickEvent(e[t-2],e[t-1],e[t]);break;case 100:this.$=e[t-4],l.setClickEvent(e[t-3],e[t-2],e[t-1]),l.setTooltip(e[t-3],e[t]);break;case 101:this.$=e[t-3],l.setLink(e[t-2],e[t]);break;case 102:this.$=e[t-4],l.setLink(e[t-3],e[t-1],e[t]);break;case 103:this.$=e[t-4],l.setLink(e[t-3],e[t-1]),l.setTooltip(e[t-3],e[t]);break;case 104:this.$=e[t-5],l.setLink(e[t-4],e[t-2],e[t]),l.setTooltip(e[t-4],e[t-1]);break;case 105:this.$=e[t-2],l.setCssStyle(e[t-1],e[t]);break;case 106:l.setCssClass(e[t-1],e[t]);break;case 107:this.$=[e[t]];break;case 108:e[t-2].push(e[t]),this.$=e[t-2];break;case 110:this.$=e[t-1]+e[t];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:r,43:23,46:c,48:u,51:d,52:m,54:g,56:N,57:ge,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(Be,[2,5],{8:[1,48]}),{8:[1,49]},s(A,[2,19],{22:[1,50]}),s(A,[2,21]),s(A,[2,22]),s(A,[2,23]),s(A,[2,24]),s(A,[2,25]),s(A,[2,26]),s(A,[2,27]),s(A,[2,28]),s(A,[2,29]),s(A,[2,30]),{34:[1,51]},{36:[1,52]},s(A,[2,33]),s(A,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:ee,69:te,70:se,71:ie,72:ae,73:_e,74:Se}),{39:[1,65]},s(_,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),s(A,[2,65]),s(A,[2,66]),{16:69,60:b,86:k,100:E,102:T},{16:39,17:40,19:70,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:71,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:72,60:b,86:k,100:E,102:T,103:y},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:b,86:k,100:E,102:T,103:y},{13:Me,55:76},{58:78,60:[1,79]},s(A,[2,76]),s(A,[2,77]),s(A,[2,78]),s(A,[2,79]),s(R,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:b,86:k,100:E,102:T,103:y}),s(R,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:b,86:k,100:E,102:T,103:y},{16:39,17:40,19:87,60:b,86:k,100:E,102:T,103:y},s(ne,[2,133]),s(ne,[2,134]),s(ne,[2,135]),s(ne,[2,136]),s([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),s(Be,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:i,35:a,37:n,42:r,46:c,48:u,51:d,52:m,54:g,56:N,57:ge,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:n,38:22,42:r,43:23,46:c,48:u,51:d,52:m,54:g,56:N,57:ge,60:b,62:me,63:Ce,64:be,65:ke,75:Ee,76:Te,78:ye,82:De,83:Fe,86:k,100:E,102:T,103:y},s(A,[2,20]),s(A,[2,31]),s(A,[2,32]),{13:[1,91],16:39,17:40,19:90,60:b,86:k,100:E,102:T,103:y},{53:92,66:56,67:57,68:ee,69:te,70:se,71:ie,72:ae,73:_e,74:Se},s(A,[2,64]),{67:93,73:_e,74:Se},s(re,[2,83],{66:94,68:ee,69:te,70:se,71:ie,72:ae}),s(K,[2,84]),s(K,[2,85]),s(K,[2,86]),s(K,[2,87]),s(K,[2,88]),s(Re,[2,89]),s(Re,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:r,43:23,48:u,54:g,56:N},{16:100,60:b,86:k,100:E,102:T},{41:[1,102],45:101,51:ue},{16:104,60:b,86:k,100:E,102:T},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:Y,50:Q,59:110,60:W,82:j,84:111,85:112,86:X,87:q,88:H,89:J,90:Z},{60:[1,122]},{13:Me,55:123},s(_,[2,72]),s(_,[2,138]),{22:Y,50:Q,59:124,60:W,61:[1,125],82:j,84:111,85:112,86:X,87:q,88:H,89:J,90:Z},s(Ge,[2,74]),{16:39,17:40,19:126,60:b,86:k,100:E,102:T,103:y},s(R,[2,16]),s(R,[2,17]),s(R,[2,18]),{11:127,12:Ue,39:[2,36]},s(le,[2,9],{16:85,17:86,15:130,18:[1,129],60:b,86:k,100:E,102:T,103:y}),s(le,[2,10]),s(Ne,[2,55],{11:131,12:Ue}),s(Be,[2,7]),{9:[1,132]},s(ce,[2,67]),{16:39,17:40,19:133,60:b,86:k,100:E,102:T,103:y},{13:[1,135],16:39,17:40,19:134,60:b,86:k,100:E,102:T,103:y},s(re,[2,82],{66:136,68:ee,69:te,70:se,71:ie,72:ae}),s(re,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:r,43:23,48:u,54:g,56:N},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},s(_,[2,48],{39:[1,142]}),{41:[1,143]},s(_,[2,50]),{41:[2,61],45:144,51:ue},{47:[1,145]},{16:39,17:40,19:146,60:b,86:k,100:E,102:T,103:y},s(A,[2,91],{13:[1,147]}),s(A,[2,93],{13:[1,149],77:[1,148]}),s(A,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},s(A,[2,105],{61:ze}),s(Ke,[2,107],{85:154,22:Y,50:Q,60:W,82:j,86:X,87:q,88:H,89:J,90:Z}),s(x,[2,109]),s(x,[2,111]),s(x,[2,112]),s(x,[2,113]),s(x,[2,114]),s(x,[2,115]),s(x,[2,116]),s(x,[2,117]),s(x,[2,118]),s(x,[2,119]),s(A,[2,106]),s(_,[2,71]),s(A,[2,73],{61:ze}),{60:[1,155]},s(R,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:b,86:k,100:E,102:T,103:y},s(le,[2,12]),s(Ne,[2,56]),{1:[2,4]},s(ce,[2,69]),s(ce,[2,68]),{16:39,17:40,19:158,60:b,86:k,100:E,102:T,103:y},s(re,[2,80]),s(_,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:r,43:23,48:u,54:g,56:N},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:r,43:23,48:u,54:g,56:N},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:r,43:23,48:u,54:g,56:N},{45:163,51:ue},s(_,[2,49]),{41:[2,62]},s(_,[2,52],{39:[1,164]}),s(A,[2,60]),s(A,[2,92]),s(A,[2,94]),s(A,[2,95],{77:[1,165]}),s(A,[2,98]),s(A,[2,99],{13:[1,166]}),s(A,[2,101],{13:[1,168],77:[1,167]}),{22:Y,50:Q,60:W,82:j,84:169,85:112,86:X,87:q,88:H,89:J,90:Z},s(x,[2,110]),s(Ge,[2,75]),{14:[1,170]},s(le,[2,11]),s(ce,[2,70]),s(_,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:ue},s(A,[2,96]),s(A,[2,100]),s(A,[2,102]),s(A,[2,103],{77:[1,174]}),s(Ke,[2,108],{85:154,22:Y,50:Q,60:W,82:j,86:X,87:q,88:H,89:J,90:Z}),s(Ne,[2,8]),s(_,[2,51]),{41:[1,175]},s(_,[2,54]),s(A,[2,104]),s(_,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:f(function(o,h){if(h.recoverable)this.trace(o);else{var p=new Error(o);throw p.hash=h,p}},"parseError"),parse:f(function(o){var h=this,p=[0],l=[],C=[null],e=[],$=this.table,t="",he=0,Ye=0,Ze=2,Qe=1,$e=e.slice.call(arguments,1),D=Object.create(this.lexer),V={yy:{}};for(var xe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,xe)&&(V.yy[xe]=this.yy[xe]);D.setInput(o,V.yy),V.yy.lexer=D,V.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ve=D.yylloc;e.push(ve);var et=D.options&&D.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tt(S){p.length=p.length-2*S,C.length=C.length-S,e.length=e.length-S}f(tt,"popStack");function We(){var S;return S=l.pop()||D.lex()||Qe,typeof S!="number"&&(S instanceof Array&&(l=S,S=l.pop()),S=h.symbols_[S]||S),S}f(We,"lex");for(var B,P,L,Ie,G={},de,v,je,pe;;){if(P=p[p.length-1],this.defaultActions[P]?L=this.defaultActions[P]:((B===null||typeof B>"u")&&(B=We()),L=$[P]&&$[P][B]),typeof L>"u"||!L.length||!L[0]){var Oe="";pe=[];for(de in $[P])this.terminals_[de]&&de>Ze&&pe.push("'"+this.terminals_[de]+"'");D.showPosition?Oe="Parse error on line "+(he+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+pe.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Oe="Parse error on line "+(he+1)+": Unexpected "+(B==Qe?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Oe,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:ve,expected:pe})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+B);switch(L[0]){case 1:p.push(B),C.push(D.yytext),e.push(D.yylloc),p.push(L[1]),B=null,Ye=D.yyleng,t=D.yytext,he=D.yylineno,ve=D.yylloc;break;case 2:if(v=this.productions_[L[1]][1],G.$=C[C.length-v],G._$={first_line:e[e.length-(v||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(v||1)].first_column,last_column:e[e.length-1].last_column},et&&(G._$.range=[e[e.length-(v||1)].range[0],e[e.length-1].range[1]]),Ie=this.performAction.apply(G,[t,Ye,he,V.yy,L[1],C,e].concat($e)),typeof Ie<"u")return Ie;v&&(p=p.slice(0,-1*v*2),C=C.slice(0,-1*v),e=e.slice(0,-1*v)),p.push(this.productions_[L[1]][0]),C.push(G.$),e.push(G._$),je=$[p[p.length-2]][p[p.length-1]],p.push(je);break;case 3:return!0}}return!0},"parse")},Je=(function(){var O={EOF:1,parseError:f(function(h,p){if(this.yy.parser)this.yy.parser.parseError(h,p);else throw new Error(h)},"parseError"),setInput:f(function(o,h){return this.yy=h||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:f(function(o){var h=o.length,p=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var l=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),p.length-1&&(this.yylineno-=p.length-1);var C=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:p?(p.length===l.length?this.yylloc.first_column:0)+l[l.length-p.length].length-p[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(o){this.unput(this.match.slice(o))},"less"),pastInput:f(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/DBH00hnQ.js","/app/immutable/chunks/CaJKv7d6.js","/app/immutable/chunks/sMg7Lxjd.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/CsvDcicf.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/P-01BLZ6.js","/app/immutable/chunks/HqhytM4z.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/CfM0pCZF.js","/app/immutable/chunks/BDldvohw.js","/app/immutable/chunks/Bk3O9qYH.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Co-DDbT2.js","/app/immutable/chunks/B25t-e4E.js","/app/immutable/chunks/FBhib8LQ.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/DGPqSlym.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/iaCxlE6C.js","/app/immutable/chunks/DqaJW-PO.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/Cgu6cLKT.js","/app/immutable/chunks/CF6Nr1sW.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/bHtn9InS.js","/app/immutable/chunks/CAh6WYw0.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/C-jH8s9r.js","/app/immutable/chunks/D3Xty9Im.js"])))=>i.map(i=>d[i]);
2
- import{bo as b,_ as x}from"./sMg7Lxjd.js";import{g as f,G9 as a,d7 as P,EG as S,wz as N,CT as R,tu as q,pk as W,t3 as H,I4 as U}from"./FBhib8LQ.js";import{w as I}from"./Cgu6cLKT.js";import{ba as j}from"./P-01BLZ6.js";import{parseIntentLink as V}from"./CDbeyeCP.js";import{n as y}from"./CaJKv7d6.js";import"./B8o4lNgr.js";import"./CsvDcicf.js";import"./HqhytM4z.js";import"./ChTqQfQN.js";import"./B25t-e4E.js";import{H as B,q as C,G as L}from"./CWELhcXR.js";import{dj as D}from"./bHtn9InS.js";import{o as E,n as G}from"./rN1DOgEJ.js";const p="assistant-content",z=a.createSelector(r=>{const e=E.select(r),s=G.select(r),t=e.find(o=>o.agentId===s)??e.find(o=>o.isActive)??e.find(o=>o.messageCount>0)??e[0];return P(t?.agentId??null)}),O=new Map;function $(r,e=!1){const s=O.get(r)??{explicit:0,background:0},t={explicit:s.explicit+(e?0:1),background:s.background+(e?1:0)};return O.set(r,t),e?t:{explicit:t.explicit}}function m(r,e){const s=O.get(r);return s!==void 0&&e.explicit===s.explicit&&(e.background===void 0||e.background===s.background)}async function K(r){a.dispatch(q(r)),L.select(a.state,r).restoreStatus==="pending"&&await new Promise(e=>{const s=L.withStore(a)(r).subscribe(t=>{t.restoreStatus!=="pending"&&(e(),queueMicrotask(()=>s()))})})}function h(r,e,s){const t=L.select(a.state,s);if(!t.panels[p]||Object.keys(t.panels).some(o=>o!==p)){const o=t.panels[p],d=Object.values(t.panels).flatMap(n=>n.tabs.filter(i=>i.type!=="agent"||i.workspaceId!==f)),c=d.some(n=>n.id===o?.activeTabId)?o?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(W(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:t.focusedPanelId===p?p:null,hiddenTabs:C.select(a.state,s)}))}a.dispatch(H(s,r,p,void 0,!0,void 0,!1,e.background||e.preserveFocus,void 0,e.background))}async function ue(r,e={}){try{return await J(r,e)}catch(s){return y.error(b.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function J(r,e){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(r),t=r.startsWith("intent://")?V(r):null,o=t?.valid&&t.type==="workspace"?[r,t.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(r),d=/^https?:\/\//.test(r)&&!j(r);if(!o&&!s&&!d&&!(t?.valid&&["file","message","note","task"].includes(t.type))||o&&[f,"new"].includes(o[1]))return!1;const c=E.select(a.state),n=e.agentId?P(e.agentId):e.background?c.length===1?P(c[0].agentId):null:e.layoutId??z.select(a.state);if(!n)return!0;const i=$(n,e.background);if(await K(n),!m(n,i))return!0;if(o){const u=o[1],g=await I.workspaces.get(u);return m(n,i)?g?(a.dispatch(S(g)),h({type:"workspace",title:g.title,workspaceId:u,closable:!0},e,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],e,n,i);if(d){const{resolveBrowserLinkForOpen:u}=await x(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./DBH00hnQ.js").then(k=>k.b);return{resolveBrowserLinkForOpen:v}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url),g=await u(r);return m(n,i)&&h({type:"browser",title:new URL(r).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},e,n),!0}if(!t?.valid)return!1;const _=t.workspaceId??f;if(t.type==="file"){const u=await I.workspaces.get(_);return m(n,i)?u?(a.dispatch(S(u)),h({type:"file",title:t.resourceId.split("/").at(-1)??t.resourceId,filePath:t.resourceId,workspaceId:_,closable:!0,data:{line:t.line,filePathIsLiteral:!0}},e,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(t.type==="message"&&t.agentId)return T(_,t.agentId,e,n,i,t.resourceId);if(t.type!=="note"&&t.type!=="task")return!1;const l=t.workspaceId??f,[w,A]=await Promise.all([a.dispatch(N(l,t.resourceId)),Promise.resolve(D.select(a.state,l)??I.workspaces.get(l)).catch(()=>null)]);if(!m(n,i))return!0;if(!w||String(w.workspaceId)!==l)return y.error(b.ui_linkHandler_notFound_title(),{description:b.ui_linkHandler_noteNotFound_error({noteId:t.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const M=Object.entries(B.select(a.state)).some(([u,g])=>{const v=k=>k.type==="note"&&k.noteId===String(w.id)&&(k.workspaceId??u)===l;return Object.values(g.panels).some(k=>k.tabs.some(v))||C.select(a.state,u).some(v)}),F=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(w.id)];return!M&&(!e.background||F===void 0)&&a.dispatch(R(l,String(w.id),"editor")),h({type:"note",title:w.title,noteId:String(w.id),workspaceId:l,closable:!0},e,n),!0}async function T(r,e,s,t,o,d){const c=await I.agents.get(e,r===f?void 0:r);r===f&&c&&(r=String(c.workspaceId));const n=r===f?null:await I.workspaces.get(r);if(!m(t,o))return!0;if(!n&&r!==f||!c||String(c.workspaceId)!==r)return y.error(b.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),h({type:"agent",title:c.name??e,agentId:e,workspaceId:r,closable:!0},s,t),d&&!s.background){const{openMessage:i}=await x(async()=>{const{openMessage:_}=await import("./iaCxlE6C.js");return{openMessage:_}},__vite__mapDeps([25,26,18,3,17,19,20,13,5,8,2,11,27,28,7,4,6,9,10,12,14,29,30,31,22,32,15,33,34,35]),import.meta.url);i({workspaceId:r,agentId:e,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,z as selectAssistantPanelLayoutId,ue as showAssistantContent};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/D9ikaMyr.js","/app/immutable/chunks/Bo4f3vLH.js","/app/immutable/chunks/CgPr4hs2.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/CsstSIr0.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/Ps9iRbKd.js","/app/immutable/chunks/D3ROSEe0.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/Co_Aa6ij.js","/app/immutable/chunks/P80hEEPK.js","/app/immutable/chunks/DJuSbP_R.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CFHzcj7N.js","/app/immutable/chunks/D32qvOGn.js","/app/immutable/chunks/BL_sVoge.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/B7NNbItI.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/1NjHIsWL.js","/app/immutable/chunks/D-Zd1oaK.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/BRqvd9LR.js","/app/immutable/chunks/BKANDKfj.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Df2ohObb.js","/app/immutable/chunks/rpeM9FmT.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/S_AAYsIr.js","/app/immutable/chunks/Car8OZH2.js"])))=>i.map(i=>d[i]);
2
+ import{bo as b,_ as x}from"./CgPr4hs2.js";import{g as f,G9 as a,d7 as P,EG as S,wz as N,CT as R,tu as q,pk as W,t3 as H,I4 as U}from"./BL_sVoge.js";import{w as I}from"./BRqvd9LR.js";import{ba as j}from"./Ps9iRbKd.js";import{parseIntentLink as V}from"./Cmd7Q9e2.js";import{n as y}from"./Bo4f3vLH.js";import"./B8o4lNgr.js";import"./CsstSIr0.js";import"./D3ROSEe0.js";import"./ChTqQfQN.js";import"./D32qvOGn.js";import{H as B,q as C,G as L}from"./wSFhIxGo.js";import{dj as D}from"./Df2ohObb.js";import{o as E,n as G}from"./CPezNx23.js";const p="assistant-content",z=a.createSelector(r=>{const e=E.select(r),s=G.select(r),t=e.find(o=>o.agentId===s)??e.find(o=>o.isActive)??e.find(o=>o.messageCount>0)??e[0];return P(t?.agentId??null)}),O=new Map;function $(r,e=!1){const s=O.get(r)??{explicit:0,background:0},t={explicit:s.explicit+(e?0:1),background:s.background+(e?1:0)};return O.set(r,t),e?t:{explicit:t.explicit}}function m(r,e){const s=O.get(r);return s!==void 0&&e.explicit===s.explicit&&(e.background===void 0||e.background===s.background)}async function K(r){a.dispatch(q(r)),L.select(a.state,r).restoreStatus==="pending"&&await new Promise(e=>{const s=L.withStore(a)(r).subscribe(t=>{t.restoreStatus!=="pending"&&(e(),queueMicrotask(()=>s()))})})}function h(r,e,s){const t=L.select(a.state,s);if(!t.panels[p]||Object.keys(t.panels).some(o=>o!==p)){const o=t.panels[p],d=Object.values(t.panels).flatMap(n=>n.tabs.filter(i=>i.type!=="agent"||i.workspaceId!==f)),c=d.some(n=>n.id===o?.activeTabId)?o?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(W(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:t.focusedPanelId===p?p:null,hiddenTabs:C.select(a.state,s)}))}a.dispatch(H(s,r,p,void 0,!0,void 0,!1,e.background||e.preserveFocus,void 0,e.background))}async function ue(r,e={}){try{return await J(r,e)}catch(s){return y.error(b.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function J(r,e){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(r),t=r.startsWith("intent://")?V(r):null,o=t?.valid&&t.type==="workspace"?[r,t.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(r),d=/^https?:\/\//.test(r)&&!j(r);if(!o&&!s&&!d&&!(t?.valid&&["file","message","note","task"].includes(t.type))||o&&[f,"new"].includes(o[1]))return!1;const c=E.select(a.state),n=e.agentId?P(e.agentId):e.background?c.length===1?P(c[0].agentId):null:e.layoutId??z.select(a.state);if(!n)return!0;const i=$(n,e.background);if(await K(n),!m(n,i))return!0;if(o){const u=o[1],g=await I.workspaces.get(u);return m(n,i)?g?(a.dispatch(S(g)),h({type:"workspace",title:g.title,workspaceId:u,closable:!0},e,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],e,n,i);if(d){const{resolveBrowserLinkForOpen:u}=await x(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./D9ikaMyr.js").then(k=>k.b);return{resolveBrowserLinkForOpen:v}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url),g=await u(r);return m(n,i)&&h({type:"browser",title:new URL(r).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},e,n),!0}if(!t?.valid)return!1;const _=t.workspaceId??f;if(t.type==="file"){const u=await I.workspaces.get(_);return m(n,i)?u?(a.dispatch(S(u)),h({type:"file",title:t.resourceId.split("/").at(-1)??t.resourceId,filePath:t.resourceId,workspaceId:_,closable:!0,data:{line:t.line,filePathIsLiteral:!0}},e,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(t.type==="message"&&t.agentId)return T(_,t.agentId,e,n,i,t.resourceId);if(t.type!=="note"&&t.type!=="task")return!1;const l=t.workspaceId??f,[w,A]=await Promise.all([a.dispatch(N(l,t.resourceId)),Promise.resolve(D.select(a.state,l)??I.workspaces.get(l)).catch(()=>null)]);if(!m(n,i))return!0;if(!w||String(w.workspaceId)!==l)return y.error(b.ui_linkHandler_notFound_title(),{description:b.ui_linkHandler_noteNotFound_error({noteId:t.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const M=Object.entries(B.select(a.state)).some(([u,g])=>{const v=k=>k.type==="note"&&k.noteId===String(w.id)&&(k.workspaceId??u)===l;return Object.values(g.panels).some(k=>k.tabs.some(v))||C.select(a.state,u).some(v)}),F=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(w.id)];return!M&&(!e.background||F===void 0)&&a.dispatch(R(l,String(w.id),"editor")),h({type:"note",title:w.title,noteId:String(w.id),workspaceId:l,closable:!0},e,n),!0}async function T(r,e,s,t,o,d){const c=await I.agents.get(e,r===f?void 0:r);r===f&&c&&(r=String(c.workspaceId));const n=r===f?null:await I.workspaces.get(r);if(!m(t,o))return!0;if(!n&&r!==f||!c||String(c.workspaceId)!==r)return y.error(b.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),h({type:"agent",title:c.name??e,agentId:e,workspaceId:r,closable:!0},s,t),d&&!s.background){const{openMessage:i}=await x(async()=>{const{openMessage:_}=await import("./1NjHIsWL.js");return{openMessage:_}},__vite__mapDeps([25,26,18,3,17,19,20,13,5,8,2,11,27,28,7,4,6,9,10,12,14,29,30,31,22,32,15,33,34,35]),import.meta.url);i({workspaceId:r,agentId:e,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,z as selectAssistantPanelLayoutId,ue as showAssistantContent};
@@ -1 +1 @@
1
- import{br as G}from"./B8o4lNgr.js";import{c as U}from"./ChTqQfQN.js";import{a as W,i as _}from"./3-iWM9xO.js";import{E as g,o as P,p,G as H}from"./CWELhcXR.js";import{G9 as c}from"./FBhib8LQ.js";import{y as J,E as S,u as Q,L as Z,F as V}from"./BDldvohw.js";const f=U("PanelKeyboardShortcuts"),X=2e3;function se(d,m,E=()=>null,I={}){const v=I.isMac??(typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")),s=G({leaderActive:!1,leaderTimeout:null,isZoomed:!1,zoomedPanelId:null,showPanelNumbers:!1});function w(){s.leaderTimeout&&clearTimeout(s.leaderTimeout),s.leaderActive=!0,s.leaderTimeout=setTimeout(()=>{s.leaderActive=!1,s.showPanelNumbers=!1,f.debug("Leader key timed out")},X),f.debug("Leader key activated")}function h(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.showPanelNumbers=!1}function K(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.isZoomed=!1,s.zoomedPanelId=null,s.showPanelNumbers=!1}function z(e){const n=d();switch(f.debug("Executing leader action",{action:e}),e){case"navigate-left":case"navigate-right":case"navigate-up":case"navigate-down":D(n,e.replace("navigate-",""));break;case"navigate-next":m?m("next"):k(n,"next");break;case"navigate-prev":m?m("prev"):k(n,"prev");break;case"split-right":{const t=p.select(c.state,n.workspaceId),a=g.select(c.state,n.workspaceId);t&&a.length<4&&n.splitPanel(t,"horizontal");break}case"zoom-toggle":C(n);break;case"zoom-reset":N();break;case"close-panel":{const t=p.select(c.state,n.workspaceId);t&&n.closePanel(t);break}case"resize-left":case"resize-right":case"resize-up":case"resize-down":f.debug("Resize action not yet implemented",{action:e});break;case"resize-equal":q(n);break;case"swap-prev":case"swap-next":f.debug("Swap action not yet implemented",{action:e});break;case"show-panel-numbers":s.showPanelNumbers=!0;return;case"move-tab-to-next-panel":{const t=P.select(c.state,n.workspaceId);if(t?.activeTabId){const a=n.getOtherPanelId();a&&n.moveTabToPanel(t.activeTabId,t.id,a)}break}case"cycle-layout-presets":n.cyclePresets();break}h()}function D(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t);if(!u){e.focusPanel(r[0]);return}const l=r.indexOf(u);let i;n==="left"||n==="up"?i=l>0?l-1:r.length-1:i=l<r.length-1?l+1:0,e.focusPanel(r[i])}function k(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t),l=u?r.indexOf(u):-1;let i;n==="next"?i=l<r.length-1?l+1:0:i=l>0?l-1:r.length-1,e.focusPanel(r[i])}function C(e){s.isZoomed=!s.isZoomed,s.isZoomed?s.zoomedPanelId=p.select(c.state,e.workspaceId):s.zoomedPanelId=null,f.debug("Zoom toggled",{isZoomed:s.isZoomed})}function N(){s.isZoomed=!1,s.zoomedPanelId=null,f.debug("Zoom reset")}function q(e){const n=H.select(c.state,e.workspaceId);if(!n)return;function t(a){if(a.type==="split"){const r=100/a.children.length;a.sizes=a.children.map(()=>r),a.children.forEach(t)}}t(n.root),f.debug("Equalized all panel sizes")}function x(e,n){const t=g.select(c.state,e.workspaceId);n>=0&&n<t.length&&e.focusPanel(t[n])}function F(e,n){const t=P.select(c.state,e.workspaceId);return!t||t.tabs.length<2?!1:(n==="next"?e.selectNextTab(t.id):e.selectPreviousTab(t.id),!0)}function O(e,n){if(I.onFocusAdjacentColumn)return I.onFocusAdjacentColumn(n);const t=g.select(c.state,e.workspaceId),a=p.select(c.state,e.workspaceId),u=(a?t.indexOf(a):-1)+(n==="next"?1:-1),l=t[u];return l?(e.focusPanel(l),!0):!1}function j(e,n){const t=P.select(c.state,e.workspaceId);return t?e.moveActivePaneToColumn(t.id,n):!1}function L(e){const n=g.select(c.state,e.workspaceId),t=p.select(c.state,e.workspaceId);return!t||n.length>=4?!1:(e.splitPanel(t,"horizontal"),!0)}function B(e){const n=v?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey,t=c.state.userPreferences?.shortcutOverrides??{},a=o=>Z(o,t),r=o=>S(e,a(o),v),u=o=>r(o)&&!J(o,e,a,v),l=u("panel.focus-previous-column")?"prev":u("panel.focus-next-column")?"next":null,i=r("panel.previous-pane")?"prev":r("panel.next-pane")?"next":null;if(l){const o=O(d(),l);return o&&e.preventDefault(),o}if(i){const o=F(d(),i);return o&&e.preventDefault(),o}if(r("panel.create-column-right")){const o=L(d());return o&&(e.preventDefault(),e.stopPropagation()),o}const T=e.target instanceof Element?e.target:null;if(W(T)||_(T))return!1;const y=d(),A=r("panel.move-pane-previous-column")?"prev":r("panel.move-pane-next-column")?"next":null;if(A){const o=j(y,A);return o&&e.preventDefault(),o}if(n&&e.key===";"&&!e.shiftKey&&!e.altKey)return e.preventDefault(),w(),!0;if(s.leaderActive){if(e.preventDefault(),s.showPanelNumbers&&e.key>="1"&&e.key<="9")return x(y,parseInt(e.key)-1),h(),!0;const o=R(e);return o?(z(o),!0):(h(),!0)}return!1}function R(e){const n=i=>Z(i,c.state.userPreferences?.shortcutOverrides??{}),t=i=>V(e,n(i),v),a=t("leader.navigate-panels");if(a>=0)return["navigate-left","navigate-down","navigate-up","navigate-right"][a];const r=t("leader.resize-panels");if(r>=0)return["resize-left","resize-down","resize-up","resize-right"][r];const u=t("leader.next-previous-panel");if(u>=0)return u===0?"navigate-next":"navigate-prev";if(t("leader.split-right")>=0)return"split-right";if(t("leader.toggle-zoom")>=0)return"zoom-toggle";if(t("leader.close-panel")>=0)return"close-panel";if(t("leader.equalize-sizes")>=0)return"resize-equal";const l=Q(n("leader.jump-to-panel"));return l&&S(e,l,v)?"show-panel-numbers":t("leader.cycle-layout")>=0?"cycle-layout-presets":null}return{get availableCanvasWidth(){return E()},get leaderActive(){return s.leaderActive},get isZoomed(){return s.isZoomed},get zoomedPanelId(){return s.zoomedPanelId},get showPanelNumbers(){return s.showPanelNumbers},handleKeyDown:B,activateLeader:w,deactivateLeader:h,executeAction:z,focusPanelByIndex:x,cleanup:K}}const b=new Map;function ae(d,m){b.set(d,m)}function re(d){b.delete(d)}function oe(d){return b.get(d)}export{se as c,oe as g,ae as r,re as u};
1
+ import{br as G}from"./B8o4lNgr.js";import{c as U}from"./ChTqQfQN.js";import{a as W,i as _}from"./DJB1T3Sf.js";import{E as g,o as P,p,G as H}from"./wSFhIxGo.js";import{G9 as c}from"./BL_sVoge.js";import{y as J,E as S,u as Q,L as Z,F as V}from"./P80hEEPK.js";const f=U("PanelKeyboardShortcuts"),X=2e3;function se(d,m,E=()=>null,I={}){const v=I.isMac??(typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")),s=G({leaderActive:!1,leaderTimeout:null,isZoomed:!1,zoomedPanelId:null,showPanelNumbers:!1});function w(){s.leaderTimeout&&clearTimeout(s.leaderTimeout),s.leaderActive=!0,s.leaderTimeout=setTimeout(()=>{s.leaderActive=!1,s.showPanelNumbers=!1,f.debug("Leader key timed out")},X),f.debug("Leader key activated")}function h(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.showPanelNumbers=!1}function K(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.isZoomed=!1,s.zoomedPanelId=null,s.showPanelNumbers=!1}function z(e){const n=d();switch(f.debug("Executing leader action",{action:e}),e){case"navigate-left":case"navigate-right":case"navigate-up":case"navigate-down":D(n,e.replace("navigate-",""));break;case"navigate-next":m?m("next"):k(n,"next");break;case"navigate-prev":m?m("prev"):k(n,"prev");break;case"split-right":{const t=p.select(c.state,n.workspaceId),a=g.select(c.state,n.workspaceId);t&&a.length<4&&n.splitPanel(t,"horizontal");break}case"zoom-toggle":C(n);break;case"zoom-reset":N();break;case"close-panel":{const t=p.select(c.state,n.workspaceId);t&&n.closePanel(t);break}case"resize-left":case"resize-right":case"resize-up":case"resize-down":f.debug("Resize action not yet implemented",{action:e});break;case"resize-equal":q(n);break;case"swap-prev":case"swap-next":f.debug("Swap action not yet implemented",{action:e});break;case"show-panel-numbers":s.showPanelNumbers=!0;return;case"move-tab-to-next-panel":{const t=P.select(c.state,n.workspaceId);if(t?.activeTabId){const a=n.getOtherPanelId();a&&n.moveTabToPanel(t.activeTabId,t.id,a)}break}case"cycle-layout-presets":n.cyclePresets();break}h()}function D(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t);if(!u){e.focusPanel(r[0]);return}const l=r.indexOf(u);let i;n==="left"||n==="up"?i=l>0?l-1:r.length-1:i=l<r.length-1?l+1:0,e.focusPanel(r[i])}function k(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t),l=u?r.indexOf(u):-1;let i;n==="next"?i=l<r.length-1?l+1:0:i=l>0?l-1:r.length-1,e.focusPanel(r[i])}function C(e){s.isZoomed=!s.isZoomed,s.isZoomed?s.zoomedPanelId=p.select(c.state,e.workspaceId):s.zoomedPanelId=null,f.debug("Zoom toggled",{isZoomed:s.isZoomed})}function N(){s.isZoomed=!1,s.zoomedPanelId=null,f.debug("Zoom reset")}function q(e){const n=H.select(c.state,e.workspaceId);if(!n)return;function t(a){if(a.type==="split"){const r=100/a.children.length;a.sizes=a.children.map(()=>r),a.children.forEach(t)}}t(n.root),f.debug("Equalized all panel sizes")}function x(e,n){const t=g.select(c.state,e.workspaceId);n>=0&&n<t.length&&e.focusPanel(t[n])}function F(e,n){const t=P.select(c.state,e.workspaceId);return!t||t.tabs.length<2?!1:(n==="next"?e.selectNextTab(t.id):e.selectPreviousTab(t.id),!0)}function O(e,n){if(I.onFocusAdjacentColumn)return I.onFocusAdjacentColumn(n);const t=g.select(c.state,e.workspaceId),a=p.select(c.state,e.workspaceId),u=(a?t.indexOf(a):-1)+(n==="next"?1:-1),l=t[u];return l?(e.focusPanel(l),!0):!1}function j(e,n){const t=P.select(c.state,e.workspaceId);return t?e.moveActivePaneToColumn(t.id,n):!1}function L(e){const n=g.select(c.state,e.workspaceId),t=p.select(c.state,e.workspaceId);return!t||n.length>=4?!1:(e.splitPanel(t,"horizontal"),!0)}function B(e){const n=v?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey,t=c.state.userPreferences?.shortcutOverrides??{},a=o=>Z(o,t),r=o=>S(e,a(o),v),u=o=>r(o)&&!J(o,e,a,v),l=u("panel.focus-previous-column")?"prev":u("panel.focus-next-column")?"next":null,i=r("panel.previous-pane")?"prev":r("panel.next-pane")?"next":null;if(l){const o=O(d(),l);return o&&e.preventDefault(),o}if(i){const o=F(d(),i);return o&&e.preventDefault(),o}if(r("panel.create-column-right")){const o=L(d());return o&&(e.preventDefault(),e.stopPropagation()),o}const T=e.target instanceof Element?e.target:null;if(W(T)||_(T))return!1;const y=d(),A=r("panel.move-pane-previous-column")?"prev":r("panel.move-pane-next-column")?"next":null;if(A){const o=j(y,A);return o&&e.preventDefault(),o}if(n&&e.key===";"&&!e.shiftKey&&!e.altKey)return e.preventDefault(),w(),!0;if(s.leaderActive){if(e.preventDefault(),s.showPanelNumbers&&e.key>="1"&&e.key<="9")return x(y,parseInt(e.key)-1),h(),!0;const o=R(e);return o?(z(o),!0):(h(),!0)}return!1}function R(e){const n=i=>Z(i,c.state.userPreferences?.shortcutOverrides??{}),t=i=>V(e,n(i),v),a=t("leader.navigate-panels");if(a>=0)return["navigate-left","navigate-down","navigate-up","navigate-right"][a];const r=t("leader.resize-panels");if(r>=0)return["resize-left","resize-down","resize-up","resize-right"][r];const u=t("leader.next-previous-panel");if(u>=0)return u===0?"navigate-next":"navigate-prev";if(t("leader.split-right")>=0)return"split-right";if(t("leader.toggle-zoom")>=0)return"zoom-toggle";if(t("leader.close-panel")>=0)return"close-panel";if(t("leader.equalize-sizes")>=0)return"resize-equal";const l=Q(n("leader.jump-to-panel"));return l&&S(e,l,v)?"show-panel-numbers":t("leader.cycle-layout")>=0?"cycle-layout-presets":null}return{get availableCanvasWidth(){return E()},get leaderActive(){return s.leaderActive},get isZoomed(){return s.isZoomed},get zoomedPanelId(){return s.zoomedPanelId},get showPanelNumbers(){return s.showPanelNumbers},handleKeyDown:B,activateLeader:w,deactivateLeader:h,executeAction:z,focusPanelByIndex:x,cleanup:K}}const b=new Map;function ae(d,m){b.set(d,m)}function re(d){b.delete(d)}function oe(d){return b.get(d)}export{se as c,oe as g,ae as r,re as u};
@@ -0,0 +1 @@
1
+ import{nx as r}from"./BL_sVoge.js";import{aA as o}from"./Df2ohObb.js";function c(n,e){if(!e)return!0;const t=o.select(n,e);return!!t&&!r(t)}export{c};
@@ -1 +1 @@
1
- import{t as Oe,bq as U,a_ as V,bo as S,by as Ne,b as je,bu as Ie,bs as rt,bt as xt}from"./sMg7Lxjd.js";import{bs as qe,bj as bt,a5 as u,bA as c,b_ as x,W as a,bn as Ge,aA as X,ay as R,bS as n,aD as e,aB as m,c9 as $,c5 as Fe,ca as yt,bk as st,bH as Pe,bV as Be,a7 as fe,be as $e,b$ as ke,bO as B,bl as Ae}from"./B8o4lNgr.js";import{D as ot}from"./BDldvohw.js";import{s as Le,k as Xe,d as Qe,h as De,c as Ye}from"./CsvDcicf.js";import{c as P}from"./CfM0pCZF.js";import{P as Me,e as Se,f as We,d as Ce}from"./CaJKv7d6.js";import{J as At,w as T,E as Ze,g as Pt}from"./CUpXgpcF.js";import{f as Ee}from"./P-01BLZ6.js";import{C as Tt}from"./LzhxhM8_.js";import"./CzoFKpHV.js";import{G9 as xe,f5 as Rt,Ck as nt,AN as it,op as Dt}from"./FBhib8LQ.js";import{aM as lt,aJ as It,aK as zt,dl as Ht}from"./bHtn9InS.js";import{d as Lt,r as Mt}from"./rN1DOgEJ.js";import{M as St}from"./CsgZCzi1.js";import{k as Wt}from"./CLqc4Ghh.js";import{e as et}from"./CjKcpWyx.js";import{F as Ct,e as Et}from"./BlBEj3oF.js";import{o as Ft}from"./D3Xty9Im.js";import{S as ze}from"./CylTfPZk.js";import{F as He,a1 as Bt,cT as Ot,at as Nt,bi as jt}from"./DGPqSlym.js";var qt=m('<div class="space-y-3"><!> <!></div>'),Gt=m('<div class="space-y-3"><!> <!></div> <!>',1),Jt=m('<div class="space-y-3 rounded-xl border border-border p-4 shadow-xs"><div class="flex items-center gap-3"><!><!></div> <!> <div class="flex items-center justify-between pt-1"><!><!></div></div>'),Kt=m('<div class="min-w-0 space-y-3"><div class="flex h-10 items-center px-2"><!></div> <!></div>'),Vt=m('<div class="grid grid-cols-[repeat(auto-fit,minmax(min(100%,10rem),1fr))] gap-3 px-1"></div>'),Ut=m('<div class="flex h-10 items-center px-3"><!></div>'),Xt=m("<div><!> <!> <!> <!></div>"),Qt=m("<!> <!>",1),Yt=m('<div role="status" class="min-h-0 min-w-0 flex-1 overflow-hidden svelte-kmeefs" data-home-loading=""><div aria-hidden="true"><!></div></div>');function dt(b,l){if(new.target)return Oe({component:dt,...b});qe(l,!0);const Q=At();bt(Q.cleanup);let z=U(l,"detail",7,!1),O=U(l,"count",7,5),Y=U(l,"view",7,"list"),Z=U(l,"grouped",7,!1),s=U(l,"rows",7,"workspace");var H={get detail(){return z()},set detail(i=!1){z(i),X()},get count(){return O()},set count(i=5){O(i),X()},get view(){return Y()},set view(i="list"){Y(i),X()},get grouped(){return Z()},set grouped(i=!1){Z(i),X()},get rows(){return s()},set rows(i="workspace"){s(i),X()},$set:Ne,$on:(i,D)=>je(l,i,D)},y=Yt(),ie=u(y),be=u(ie);{var le=i=>{var D=Gt(),g=R(D),ee=u(g);T(ee,{class:"h-6 w-4/5"});var W=n(ee,2);T(W,{class:"h-4 w-1/2"}),c(g);var d=n(g,2);De(d,16,()=>[0,1],h=>h,(h,A)=>{var k=qt(),te=u(k);T(te,{class:"h-3 w-full"});var N=n(te,2);T(N,{class:"h-3 w-5/6"}),c(k),a(h,k)}),a(i,D)},Te=i=>{var D=Vt();De(D,20,()=>[0,1,2],g=>g,(g,ee)=>{var W=Kt(),d=u(W),h=u(d);T(h,{class:"h-3 w-20"}),c(d);var A=n(d,2);De(A,16,()=>[0,1,2],k=>k,(k,te)=>{var N=Jt(),de=u(N),ae=u(de);T(ae,{class:"h-4 flex-1"});var ce=n(ae);T(ce,{class:"size-3 rounded-full"}),c(de);var t=n(de,2);T(t,{class:"h-3 w-full"});var o=n(t,2),w=u(o);T(w,{class:"size-4 rounded-sm"});var j=n(w);T(j,{class:"h-3 w-6"}),c(o),c(N),a(k,N)}),c(W),a(g,W)}),c(D),a(i,D)},_e=i=>{var D=Qt(),g=R(D);{var ee=d=>{var h=Ut(),A=u(h);T(A,{class:"h-3 w-20"}),c(h),a(d,h)};V(g,d=>{Z()&&d(ee)})}var W=n(g,2);De(W,16,()=>Array.from({length:O()},(d,h)=>h),d=>d,(d,h)=>{var A=Xt(),k=u(A);T(k,{class:"size-4 shrink-0 rounded-sm"});var te=n(k,2);T(te,{class:"h-4 min-w-0 flex-1"});var N=n(te,2);{var de=o=>{T(o,{class:"size-3 shrink-0 rounded-full"})},ae=o=>{T(o,{class:"size-5 shrink-0 rounded-full"})};V(N,o=>{s()==="workspace"?o(de):s()==="integration"&&o(ae,1)})}var ce=n(N,2);{var t=o=>{{let w=$(()=>s()==="workspace"?"h-3 w-8 shrink-0":"h-3 w-6 shrink-0");T(o,{get class(){return e(w)}})}};V(ce,o=>{s()!=="compact"&&o(t)})}c(A),x(()=>Xe(A,1,Qe(s()==="compact"?"flex min-h-6 items-center gap-2 py-1":`flex h-12 items-center gap-3 border-b border-border ${s()==="integration"?"px-2":"px-3"}`))),a(d,A)}),a(i,D)};V(be,i=>{z()?i(le):Y()==="board"?i(Te,1):i(_e,-1)})}return c(ie),c(y),x(i=>{Le(y,"aria-label",i),Le(y,"data-reduced",Q.current),Xe(ie,1,Qe(z()?"space-y-6 py-3":s()==="compact"?"":"px-5 pb-4"))},[()=>S.home_integrations_loading()]),a(b,y),Ge(H)}function ct(b){return b.filter(Lt)}function Zt(){let b=null;return(l,Q)=>{const z=b?l.find(Y=>Y.id===b):void 0;if(z)return z;const O=Mt(l);return b=Q&&O?String(O.id):null,O}}function ea(b,l,Q){return l&&b.find(z=>z.id===l)||Q}var ta=m('<div class="p-4"><!></div>'),aa=m('<div class="flex h-full min-h-0 min-w-0 flex-col" data-home-workspace-chat=""><!></div>');function vt(b,l){if(new.target)return Oe({component:vt,...b});qe(l,!0);const Q=()=>Ie(ie,"$agents$",O),z=()=>Ie(be,"$loaded$",O),[O,Y]=rt();let Z=U(l,"workspace",7),s=U(l,"preview",7,!1),H=U(l,"agent",7);const y=Fe(()=>Z().id),ie=lt(y),be=It(y),le=$(()=>ct(Q())),Te=$(()=>s()?void 0:H()?.id);yt(()=>{const t=e(Te);if(!t)return;const o=Date.now();return()=>{Date.now()-o<St||setTimeout(()=>xe.dispatch(Rt(t)),0)}});let _e=Be(void 0),i=0;function D(t,o){s()||!e(le).some(w=>w.id===t)||(Pe(_e,{agentId:t,questionMessageId:o,requestId:++i},!0),xe.dispatch(nt(y,t)),xe.dispatch(it(y,t)))}let g=Be(!1),ee;function W(){s()||(Pe(g,!1),clearTimeout(ee),xe.dispatch(Dt(y)),ee=setTimeout(()=>{Pe(g,!0)},15e3))}st(()=>(s()||W(),()=>clearTimeout(ee)));var d={focusAttention:D,get workspace(){return Z()},set workspace(t){Z(t),X()},get preview(){return s()},set preview(t=!1){s(t),X()},get agent(){return H()},set agent(t){H(t),X()},$set:Ne,$on:(t,o)=>je(l,t,o)},h=aa(),A=u(h);{var k=t=>{Ze(t,{density:"compact",title:w=>{$e();var j=ke();x(re=>B(j,re),[()=>S.agentOverview_hierarchyGraph_noAgents_title()]),a(w,j)},$$slots:{title:!0}})},te=t=>{var o=fe(),w=R(o);ot(w,()=>H().id,j=>{{let re=$(()=>e(_e)?.agentId===H().id?e(_e):void 0);Tt(j,{get workspace(){return Z()},get agentId(){return H().id},get agentName(){return H().name},autoFocus:!1,get attentionFocusRequest(){return e(re)},isInitialWorkspaceAgent:!1})}}),a(t,o)},N=t=>{var o=ta(),w=u(o);dt(w,{detail:!0}),c(o),a(t,o)},de=t=>{{const o=j=>{$e();var re=ke();x(ye=>B(re,ye),[()=>S.home_detail_unavailable()]),a(j,re)};let w=$(()=>S.home_retry());Pt(t,{density:"compact",get retryLabel(){return e(w)},onRetry:W,message:o,$$slots:{message:!0}})}},ae=t=>{{const o=j=>{$e();var re=ke();x(ye=>B(re,ye),[()=>S.agentOverview_hierarchyGraph_noAgents_title()]),a(j,re)};let w=$(()=>S.home_retry());Ze(t,{density:"compact",get actionLabel(){return e(w)},onAction:W,title:o,$$slots:{title:!0}})}};V(A,t=>{s()?t(k):H()?t(te,1):!z()&&!e(g)?t(N,2):z()?t(ae,-1):t(de,3)})}c(h),x(()=>Le(h,"data-workspace-link-target",Z().id)),a(b,h);var ce=Ge(d);return Y(),ce}var ra=m('<span class="min-w-0 line-clamp-2 [overflow-wrap:anywhere]"> </span> <!>',1),tt=m("<!> <!>",1),sa=m('<div class="shrink-0"><!></div>'),oa=m('<div><!> <span class="home-detail-repository-name truncate"> </span></div>'),at=m("<!><!>",1),na=m("<p> </p>"),ia=m('<!> <span class="min-w-0 truncate text-left"> </span> <!>',1),la=m('<span class="flex min-w-0 items-center gap-2"><!> <span class="truncate"> </span></span>'),da=m('<div class="shrink-0 min-w-0 px-1 py-2" data-home-agent-switcher=""><!></div>'),ca=m('<div class="flex items-center gap-2 px-4 py-2 type-caption text-muted-foreground" role="status"><p> </p> <!></div>'),va=m('<section class="flex h-full min-h-0 min-w-0 flex-col" data-home-detail=""><header class="shrink-0 border-b border-border px-4 py-2"><div class="flex min-w-0 items-center gap-3"><h2 class="-ml-2 min-w-0 flex-1"><!></h2> <!></div> <!> <!></header> <!> <!> <div class="min-h-0 min-w-0 flex-1"><!></div></section>');function ua(b,l){if(new.target)return Oe({component:ua,...b});qe(l,!0);const Q=()=>Ie(_e,"$readRevision$",Y),z=()=>Ie(Te,"$agents$",Y),O=()=>Ie(D,"$pickedId$",Y),[Y,Z]=rt();let s=U(l,"workspace",7),H=U(l,"onclose",7),y=U(l,"preview",7,!1),ie=U(l,"showBackToList",7,!0);const be=$(()=>s().title.trim()?s().title:S.workspace_links_untitled_label()),le=Fe(()=>s().id),Te=lt(le),_e=zt(le),i=Fe(()=>Q()),D=Ct(le),g=$(()=>ct(z())),ee=Zt(),W=$(()=>ee(e(g),Q()>i)),d=$(()=>ea(e(g),O(),e(W)));function h(r){xe.dispatch(nt(le,r)),xe.dispatch(it(le,r))}const A=$(()=>[s().repositoryOwner,s().repositoryName].filter(Boolean).join("/")||s().repositoryPath);let k=Be(!1);async function te(){Pe(k,!1);try{await Et(s().id),Pe(k,!Ht.select(xe.state,s().id))}catch{Pe(k,!0)}}st(()=>{y()||te()});function N(){Ft(s().id)}var de={get workspace(){return s()},set workspace(r){s(r),X()},get onclose(){return H()},set onclose(r){H(r),X()},get preview(){return y()},set preview(r=!1){y(r),X()},get showBackToList(){return ie()},set showBackToList(r=!0){ie(r),X()},$set:Ne,$on:(r,f)=>je(l,r,f)},ae=va(),ce=u(ae),t=u(ce),o=u(t),w=u(o);P(w,()=>Me,(r,f)=>{f(r,{children:(q,oe)=>{var G=fe(),C=R(G);P(C,()=>Se,(ve,L)=>{L(ve,{children:(J,ge)=>{var me=tt(),ne=R(me);{const E=(M,F)=>{let I=()=>(F?.()).props;{let v=$(()=>S.home_open_workspace());Ee(M,xt(I,{variant:"ghost",class:"type-title h-auto min-w-0 max-w-full shrink gap-2 justify-start whitespace-normal px-2 py-1 text-left font-medium leading-snug",wrapContent:!1,get"aria-label"(){return e(v)},onclick:N,children:(p,K)=>{var _=ra(),se=R(_),ue=Ae(se,!0),we=n(se,2);He(we,{get icon(){return Bt},class:"shrink-0 text-muted-foreground",size:"sm"}),x(()=>B(ue,e(be))),a(p,_)},$$slots:{default:!0}}))}};P(ne,()=>We,(M,F)=>{F(M,{child:E,$$slots:{child:!0}})})}var he=n(ne,2);P(he,()=>Ce,(E,M)=>{M(E,{children:(F,I)=>{$e();var v=ke();x(()=>B(v,e(be))),a(F,v)},$$slots:{default:!0}})}),a(J,me)},$$slots:{default:!0}})}),a(q,G)},$$slots:{default:!0}})}),c(o);var j=n(o,2);{var re=r=>{var f=sa(),q=u(f);{let oe=$(()=>S.home_close_preview()),G=$(()=>S.home_close_preview());Ee(q,{variant:"ghost",size:"icon-sm",get"aria-label"(){return e(oe)},get tooltip(){return e(G)},get onclick(){return H()},children:(C,ve)=>{He(C,{get icon(){return Ot}})},$$slots:{default:!0}})}c(f),a(r,f)};V(j,r=>{ie()&&r(re)})}c(t);var ye=n(t,2);{var ut=r=>{var f=fe(),q=R(f);P(q,()=>Me,(oe,G)=>{G(oe,{children:(C,ve)=>{var L=fe(),J=R(L);P(J,()=>Se,(ge,me)=>{me(ge,{children:(ne,he)=>{var E=at(),M=R(E);{const I=(v,p)=>{let K=()=>(p?.()).props;var _=oa();Ye(_,()=>({...K(),class:"mb-1 flex min-w-0 max-w-[min(100%,16rem)] items-center gap-1.5 type-caption text-muted-foreground","data-home-detail-repository":!0,"aria-label":e(A)}));var se=u(_);{var ue=pe=>{Wt(pe,{get identity(){return s().repositoryOwner},size:16,class:"shrink-0 rounded-sm"})},we=pe=>{He(pe,{get icon(){return jt}})};V(se,pe=>{s().repositoryOwner?pe(ue):pe(we,-1)})}var Ue=n(se,2),Re=Ae(Ue,!0);c(_),x(()=>B(Re,e(A))),a(v,_)};P(M,()=>We,(v,p)=>{p(v,{child:I,$$slots:{child:!0}})})}var F=n(M);P(F,()=>Ce,(I,v)=>{v(I,{children:(p,K)=>{$e();var _=ke();x(()=>B(_,e(A))),a(p,_)},$$slots:{default:!0}})}),a(ne,E)},$$slots:{default:!0}})}),a(C,L)},$$slots:{default:!0}})}),a(r,f)};V(ye,r=>{e(A)&&r(ut)})}var pt=n(ye,2);{var mt=r=>{var f=fe(),q=R(f);P(q,()=>Me,(oe,G)=>{G(oe,{children:(C,ve)=>{var L=fe(),J=R(L);P(J,()=>Se,(ge,me)=>{me(ge,{children:(ne,he)=>{var E=at(),M=R(E);{const I=(v,p)=>{let K=()=>(p?.()).props;var _=na();Ye(_,()=>({...K(),class:"type-caption line-clamp-2 break-words leading-snug text-muted-foreground"}));var se=Ae(_,!0);x(()=>B(se,s().statusMessage)),a(v,_)};P(M,()=>We,(v,p)=>{p(v,{child:I,$$slots:{child:!0}})})}var F=n(M);P(F,()=>Ce,(I,v)=>{v(I,{children:(p,K)=>{$e();var _=ke();x(()=>B(_,s().statusMessage)),a(p,_)},$$slots:{default:!0}})}),a(ne,E)},$$slots:{default:!0}})}),a(C,L)},$$slots:{default:!0}})}),a(r,f)};V(pt,r=>{s().statusMessage&&r(mt)})}c(ce);var Je=n(ce,2);{var ft=r=>{var f=da(),q=u(f);{let oe=$(()=>e(d)?.id??"");P(q,()=>ze.Root,(G,C)=>{C(G,{get value(){return e(oe)},onchange:ve=>{const L=e(g).find(J=>J.id===ve);L&&h(L.id)},children:(ve,L)=>{var J=tt(),ge=R(J);{let ne=$(()=>S.home_agents());P(ge,()=>ze.Trigger,(he,E)=>{E(he,{variant:"ghost",class:"h-8 w-fit max-w-full justify-start",get"aria-label"(){return e(ne)},children:(M,F)=>{var I=ia(),v=R(I);{var p=ue=>{{let we=$(()=>e(d).metadata?.specialist??e(d).agentMetadata?.specialist);et(ue,{get agentId(){return e(d).id},get specialist(){return e(we)},variant:"emphasized"})}};V(v,ue=>{e(d)&&ue(p)})}var K=n(v,2),_=Ae(K,!0),se=n(K,2);He(se,{get icon(){return Nt},class:"shrink-0 text-muted-foreground"}),x(()=>B(_,e(d)?.name)),a(M,I)},$$slots:{default:!0}})})}var me=n(ge,2);P(me,()=>ze.Content,(ne,he)=>{he(ne,{portal:!0,children:(E,M)=>{var F=fe(),I=R(F);De(I,17,()=>e(g),v=>v.id,(v,p)=>{var K=fe(),_=R(K);P(_,()=>ze.Item,(se,ue)=>{ue(se,{get value(){return e(p).id},get label(){return e(p).name},children:(we,Ue)=>{var Re=la(),pe=u(Re);{let kt=$(()=>e(p).metadata?.specialist??e(p).agentMetadata?.specialist);et(pe,{get agentId(){return e(p).id},get specialist(){return e(kt)},variant:"emphasized"})}var wt=n(pe,2),$t=Ae(wt,!0);c(Re),x(()=>B($t,e(p).name)),a(we,Re)},$$slots:{default:!0}})}),a(v,K)}),a(E,F)},$$slots:{default:!0}})}),a(ve,J)},$$slots:{default:!0}})})}c(f),a(r,f)};V(Je,r=>{e(g).length&&r(ft)})}var Ke=n(Je,2);{var _t=r=>{var f=ca(),q=u(f),oe=Ae(q,!0),G=n(q,2);Ee(G,{variant:"outline",size:"sm",onclick:te,children:(C,ve)=>{$e();var L=ke();x(J=>B(L,J),[()=>S.home_retry()]),a(C,L)},$$slots:{default:!0}}),c(f),x(C=>B(oe,C),[()=>S.home_detail_unavailable()]),a(r,f)};V(Ke,r=>{e(k)&&r(_t)})}var Ve=n(Ke,2),gt=u(Ve);ot(gt,()=>s().id,r=>{vt(r,{get workspace(){return s()},get preview(){return y()},get agent(){return e(d)}})}),c(Ve),c(ae),x(r=>Le(ae,"aria-label",r),[()=>S.home_workspace_details()]),a(b,ae);var ht=Ge(de);return Z(),ht}export{dt as H,ua as a};
1
+ import{t as Oe,bq as U,a_ as V,bo as S,by as Ne,b as je,bu as Ie,bs as rt,bt as xt}from"./CgPr4hs2.js";import{bs as qe,bj as bt,a5 as u,bA as c,b_ as x,W as a,bn as Ge,aA as X,ay as R,bS as n,aD as e,aB as m,c9 as $,c5 as Fe,ca as yt,bk as st,bH as Pe,bV as Be,a7 as fe,be as $e,b$ as ke,bO as B,bl as Ae}from"./B8o4lNgr.js";import{D as ot}from"./P80hEEPK.js";import{s as Le,k as Xe,d as Qe,h as De,c as Ye}from"./CsstSIr0.js";import{c as P}from"./Co_Aa6ij.js";import{P as Me,e as Se,f as We,d as Ce}from"./Bo4f3vLH.js";import{J as At,w as T,E as Ze,g as Pt}from"./C9tAiYT0.js";import{f as Ee}from"./Ps9iRbKd.js";import{C as Tt}from"./u8Ybsqvl.js";import"./xF2i73WW.js";import{G9 as xe,f5 as Rt,Ck as nt,AN as it,op as Dt}from"./BL_sVoge.js";import{aM as lt,aJ as It,aK as zt,dl as Ht}from"./Df2ohObb.js";import{d as Lt,r as Mt}from"./CPezNx23.js";import{M as St}from"./RiB0F36z.js";import{k as Wt}from"./4cIwmSuD.js";import{e as et}from"./CfV9aH5z.js";import{F as Ct,e as Et}from"./C-BS-coA.js";import{o as Ft}from"./Car8OZH2.js";import{S as ze}from"./C5qvCE4M.js";import{F as He,a1 as Bt,cT as Ot,at as Nt,bi as jt}from"./B7NNbItI.js";var qt=m('<div class="space-y-3"><!> <!></div>'),Gt=m('<div class="space-y-3"><!> <!></div> <!>',1),Jt=m('<div class="space-y-3 rounded-xl border border-border p-4 shadow-xs"><div class="flex items-center gap-3"><!><!></div> <!> <div class="flex items-center justify-between pt-1"><!><!></div></div>'),Kt=m('<div class="min-w-0 space-y-3"><div class="flex h-10 items-center px-2"><!></div> <!></div>'),Vt=m('<div class="grid grid-cols-[repeat(auto-fit,minmax(min(100%,10rem),1fr))] gap-3 px-1"></div>'),Ut=m('<div class="flex h-10 items-center px-3"><!></div>'),Xt=m("<div><!> <!> <!> <!></div>"),Qt=m("<!> <!>",1),Yt=m('<div role="status" class="min-h-0 min-w-0 flex-1 overflow-hidden svelte-kmeefs" data-home-loading=""><div aria-hidden="true"><!></div></div>');function dt(b,l){if(new.target)return Oe({component:dt,...b});qe(l,!0);const Q=At();bt(Q.cleanup);let z=U(l,"detail",7,!1),O=U(l,"count",7,5),Y=U(l,"view",7,"list"),Z=U(l,"grouped",7,!1),s=U(l,"rows",7,"workspace");var H={get detail(){return z()},set detail(i=!1){z(i),X()},get count(){return O()},set count(i=5){O(i),X()},get view(){return Y()},set view(i="list"){Y(i),X()},get grouped(){return Z()},set grouped(i=!1){Z(i),X()},get rows(){return s()},set rows(i="workspace"){s(i),X()},$set:Ne,$on:(i,D)=>je(l,i,D)},y=Yt(),ie=u(y),be=u(ie);{var le=i=>{var D=Gt(),g=R(D),ee=u(g);T(ee,{class:"h-6 w-4/5"});var W=n(ee,2);T(W,{class:"h-4 w-1/2"}),c(g);var d=n(g,2);De(d,16,()=>[0,1],h=>h,(h,A)=>{var k=qt(),te=u(k);T(te,{class:"h-3 w-full"});var N=n(te,2);T(N,{class:"h-3 w-5/6"}),c(k),a(h,k)}),a(i,D)},Te=i=>{var D=Vt();De(D,20,()=>[0,1,2],g=>g,(g,ee)=>{var W=Kt(),d=u(W),h=u(d);T(h,{class:"h-3 w-20"}),c(d);var A=n(d,2);De(A,16,()=>[0,1,2],k=>k,(k,te)=>{var N=Jt(),de=u(N),ae=u(de);T(ae,{class:"h-4 flex-1"});var ce=n(ae);T(ce,{class:"size-3 rounded-full"}),c(de);var t=n(de,2);T(t,{class:"h-3 w-full"});var o=n(t,2),w=u(o);T(w,{class:"size-4 rounded-sm"});var j=n(w);T(j,{class:"h-3 w-6"}),c(o),c(N),a(k,N)}),c(W),a(g,W)}),c(D),a(i,D)},_e=i=>{var D=Qt(),g=R(D);{var ee=d=>{var h=Ut(),A=u(h);T(A,{class:"h-3 w-20"}),c(h),a(d,h)};V(g,d=>{Z()&&d(ee)})}var W=n(g,2);De(W,16,()=>Array.from({length:O()},(d,h)=>h),d=>d,(d,h)=>{var A=Xt(),k=u(A);T(k,{class:"size-4 shrink-0 rounded-sm"});var te=n(k,2);T(te,{class:"h-4 min-w-0 flex-1"});var N=n(te,2);{var de=o=>{T(o,{class:"size-3 shrink-0 rounded-full"})},ae=o=>{T(o,{class:"size-5 shrink-0 rounded-full"})};V(N,o=>{s()==="workspace"?o(de):s()==="integration"&&o(ae,1)})}var ce=n(N,2);{var t=o=>{{let w=$(()=>s()==="workspace"?"h-3 w-8 shrink-0":"h-3 w-6 shrink-0");T(o,{get class(){return e(w)}})}};V(ce,o=>{s()!=="compact"&&o(t)})}c(A),x(()=>Xe(A,1,Qe(s()==="compact"?"flex min-h-6 items-center gap-2 py-1":`flex h-12 items-center gap-3 border-b border-border ${s()==="integration"?"px-2":"px-3"}`))),a(d,A)}),a(i,D)};V(be,i=>{z()?i(le):Y()==="board"?i(Te,1):i(_e,-1)})}return c(ie),c(y),x(i=>{Le(y,"aria-label",i),Le(y,"data-reduced",Q.current),Xe(ie,1,Qe(z()?"space-y-6 py-3":s()==="compact"?"":"px-5 pb-4"))},[()=>S.home_integrations_loading()]),a(b,y),Ge(H)}function ct(b){return b.filter(Lt)}function Zt(){let b=null;return(l,Q)=>{const z=b?l.find(Y=>Y.id===b):void 0;if(z)return z;const O=Mt(l);return b=Q&&O?String(O.id):null,O}}function ea(b,l,Q){return l&&b.find(z=>z.id===l)||Q}var ta=m('<div class="p-4"><!></div>'),aa=m('<div class="flex h-full min-h-0 min-w-0 flex-col" data-home-workspace-chat=""><!></div>');function vt(b,l){if(new.target)return Oe({component:vt,...b});qe(l,!0);const Q=()=>Ie(ie,"$agents$",O),z=()=>Ie(be,"$loaded$",O),[O,Y]=rt();let Z=U(l,"workspace",7),s=U(l,"preview",7,!1),H=U(l,"agent",7);const y=Fe(()=>Z().id),ie=lt(y),be=It(y),le=$(()=>ct(Q())),Te=$(()=>s()?void 0:H()?.id);yt(()=>{const t=e(Te);if(!t)return;const o=Date.now();return()=>{Date.now()-o<St||setTimeout(()=>xe.dispatch(Rt(t)),0)}});let _e=Be(void 0),i=0;function D(t,o){s()||!e(le).some(w=>w.id===t)||(Pe(_e,{agentId:t,questionMessageId:o,requestId:++i},!0),xe.dispatch(nt(y,t)),xe.dispatch(it(y,t)))}let g=Be(!1),ee;function W(){s()||(Pe(g,!1),clearTimeout(ee),xe.dispatch(Dt(y)),ee=setTimeout(()=>{Pe(g,!0)},15e3))}st(()=>(s()||W(),()=>clearTimeout(ee)));var d={focusAttention:D,get workspace(){return Z()},set workspace(t){Z(t),X()},get preview(){return s()},set preview(t=!1){s(t),X()},get agent(){return H()},set agent(t){H(t),X()},$set:Ne,$on:(t,o)=>je(l,t,o)},h=aa(),A=u(h);{var k=t=>{Ze(t,{density:"compact",title:w=>{$e();var j=ke();x(re=>B(j,re),[()=>S.agentOverview_hierarchyGraph_noAgents_title()]),a(w,j)},$$slots:{title:!0}})},te=t=>{var o=fe(),w=R(o);ot(w,()=>H().id,j=>{{let re=$(()=>e(_e)?.agentId===H().id?e(_e):void 0);Tt(j,{get workspace(){return Z()},get agentId(){return H().id},get agentName(){return H().name},autoFocus:!1,get attentionFocusRequest(){return e(re)},isInitialWorkspaceAgent:!1})}}),a(t,o)},N=t=>{var o=ta(),w=u(o);dt(w,{detail:!0}),c(o),a(t,o)},de=t=>{{const o=j=>{$e();var re=ke();x(ye=>B(re,ye),[()=>S.home_detail_unavailable()]),a(j,re)};let w=$(()=>S.home_retry());Pt(t,{density:"compact",get retryLabel(){return e(w)},onRetry:W,message:o,$$slots:{message:!0}})}},ae=t=>{{const o=j=>{$e();var re=ke();x(ye=>B(re,ye),[()=>S.agentOverview_hierarchyGraph_noAgents_title()]),a(j,re)};let w=$(()=>S.home_retry());Ze(t,{density:"compact",get actionLabel(){return e(w)},onAction:W,title:o,$$slots:{title:!0}})}};V(A,t=>{s()?t(k):H()?t(te,1):!z()&&!e(g)?t(N,2):z()?t(ae,-1):t(de,3)})}c(h),x(()=>Le(h,"data-workspace-link-target",Z().id)),a(b,h);var ce=Ge(d);return Y(),ce}var ra=m('<span class="min-w-0 line-clamp-2 [overflow-wrap:anywhere]"> </span> <!>',1),tt=m("<!> <!>",1),sa=m('<div class="shrink-0"><!></div>'),oa=m('<div><!> <span class="home-detail-repository-name truncate"> </span></div>'),at=m("<!><!>",1),na=m("<p> </p>"),ia=m('<!> <span class="min-w-0 truncate text-left"> </span> <!>',1),la=m('<span class="flex min-w-0 items-center gap-2"><!> <span class="truncate"> </span></span>'),da=m('<div class="shrink-0 min-w-0 px-1 py-2" data-home-agent-switcher=""><!></div>'),ca=m('<div class="flex items-center gap-2 px-4 py-2 type-caption text-muted-foreground" role="status"><p> </p> <!></div>'),va=m('<section class="flex h-full min-h-0 min-w-0 flex-col" data-home-detail=""><header class="shrink-0 border-b border-border px-4 py-2"><div class="flex min-w-0 items-center gap-3"><h2 class="-ml-2 min-w-0 flex-1"><!></h2> <!></div> <!> <!></header> <!> <!> <div class="min-h-0 min-w-0 flex-1"><!></div></section>');function ua(b,l){if(new.target)return Oe({component:ua,...b});qe(l,!0);const Q=()=>Ie(_e,"$readRevision$",Y),z=()=>Ie(Te,"$agents$",Y),O=()=>Ie(D,"$pickedId$",Y),[Y,Z]=rt();let s=U(l,"workspace",7),H=U(l,"onclose",7),y=U(l,"preview",7,!1),ie=U(l,"showBackToList",7,!0);const be=$(()=>s().title.trim()?s().title:S.workspace_links_untitled_label()),le=Fe(()=>s().id),Te=lt(le),_e=zt(le),i=Fe(()=>Q()),D=Ct(le),g=$(()=>ct(z())),ee=Zt(),W=$(()=>ee(e(g),Q()>i)),d=$(()=>ea(e(g),O(),e(W)));function h(r){xe.dispatch(nt(le,r)),xe.dispatch(it(le,r))}const A=$(()=>[s().repositoryOwner,s().repositoryName].filter(Boolean).join("/")||s().repositoryPath);let k=Be(!1);async function te(){Pe(k,!1);try{await Et(s().id),Pe(k,!Ht.select(xe.state,s().id))}catch{Pe(k,!0)}}st(()=>{y()||te()});function N(){Ft(s().id)}var de={get workspace(){return s()},set workspace(r){s(r),X()},get onclose(){return H()},set onclose(r){H(r),X()},get preview(){return y()},set preview(r=!1){y(r),X()},get showBackToList(){return ie()},set showBackToList(r=!0){ie(r),X()},$set:Ne,$on:(r,f)=>je(l,r,f)},ae=va(),ce=u(ae),t=u(ce),o=u(t),w=u(o);P(w,()=>Me,(r,f)=>{f(r,{children:(q,oe)=>{var G=fe(),C=R(G);P(C,()=>Se,(ve,L)=>{L(ve,{children:(J,ge)=>{var me=tt(),ne=R(me);{const E=(M,F)=>{let I=()=>(F?.()).props;{let v=$(()=>S.home_open_workspace());Ee(M,xt(I,{variant:"ghost",class:"type-title h-auto min-w-0 max-w-full shrink gap-2 justify-start whitespace-normal px-2 py-1 text-left font-medium leading-snug",wrapContent:!1,get"aria-label"(){return e(v)},onclick:N,children:(p,K)=>{var _=ra(),se=R(_),ue=Ae(se,!0),we=n(se,2);He(we,{get icon(){return Bt},class:"shrink-0 text-muted-foreground",size:"sm"}),x(()=>B(ue,e(be))),a(p,_)},$$slots:{default:!0}}))}};P(ne,()=>We,(M,F)=>{F(M,{child:E,$$slots:{child:!0}})})}var he=n(ne,2);P(he,()=>Ce,(E,M)=>{M(E,{children:(F,I)=>{$e();var v=ke();x(()=>B(v,e(be))),a(F,v)},$$slots:{default:!0}})}),a(J,me)},$$slots:{default:!0}})}),a(q,G)},$$slots:{default:!0}})}),c(o);var j=n(o,2);{var re=r=>{var f=sa(),q=u(f);{let oe=$(()=>S.home_close_preview()),G=$(()=>S.home_close_preview());Ee(q,{variant:"ghost",size:"icon-sm",get"aria-label"(){return e(oe)},get tooltip(){return e(G)},get onclick(){return H()},children:(C,ve)=>{He(C,{get icon(){return Ot}})},$$slots:{default:!0}})}c(f),a(r,f)};V(j,r=>{ie()&&r(re)})}c(t);var ye=n(t,2);{var ut=r=>{var f=fe(),q=R(f);P(q,()=>Me,(oe,G)=>{G(oe,{children:(C,ve)=>{var L=fe(),J=R(L);P(J,()=>Se,(ge,me)=>{me(ge,{children:(ne,he)=>{var E=at(),M=R(E);{const I=(v,p)=>{let K=()=>(p?.()).props;var _=oa();Ye(_,()=>({...K(),class:"mb-1 flex min-w-0 max-w-[min(100%,16rem)] items-center gap-1.5 type-caption text-muted-foreground","data-home-detail-repository":!0,"aria-label":e(A)}));var se=u(_);{var ue=pe=>{Wt(pe,{get identity(){return s().repositoryOwner},size:16,class:"shrink-0 rounded-sm"})},we=pe=>{He(pe,{get icon(){return jt}})};V(se,pe=>{s().repositoryOwner?pe(ue):pe(we,-1)})}var Ue=n(se,2),Re=Ae(Ue,!0);c(_),x(()=>B(Re,e(A))),a(v,_)};P(M,()=>We,(v,p)=>{p(v,{child:I,$$slots:{child:!0}})})}var F=n(M);P(F,()=>Ce,(I,v)=>{v(I,{children:(p,K)=>{$e();var _=ke();x(()=>B(_,e(A))),a(p,_)},$$slots:{default:!0}})}),a(ne,E)},$$slots:{default:!0}})}),a(C,L)},$$slots:{default:!0}})}),a(r,f)};V(ye,r=>{e(A)&&r(ut)})}var pt=n(ye,2);{var mt=r=>{var f=fe(),q=R(f);P(q,()=>Me,(oe,G)=>{G(oe,{children:(C,ve)=>{var L=fe(),J=R(L);P(J,()=>Se,(ge,me)=>{me(ge,{children:(ne,he)=>{var E=at(),M=R(E);{const I=(v,p)=>{let K=()=>(p?.()).props;var _=na();Ye(_,()=>({...K(),class:"type-caption line-clamp-2 break-words leading-snug text-muted-foreground"}));var se=Ae(_,!0);x(()=>B(se,s().statusMessage)),a(v,_)};P(M,()=>We,(v,p)=>{p(v,{child:I,$$slots:{child:!0}})})}var F=n(M);P(F,()=>Ce,(I,v)=>{v(I,{children:(p,K)=>{$e();var _=ke();x(()=>B(_,s().statusMessage)),a(p,_)},$$slots:{default:!0}})}),a(ne,E)},$$slots:{default:!0}})}),a(C,L)},$$slots:{default:!0}})}),a(r,f)};V(pt,r=>{s().statusMessage&&r(mt)})}c(ce);var Je=n(ce,2);{var ft=r=>{var f=da(),q=u(f);{let oe=$(()=>e(d)?.id??"");P(q,()=>ze.Root,(G,C)=>{C(G,{get value(){return e(oe)},onchange:ve=>{const L=e(g).find(J=>J.id===ve);L&&h(L.id)},children:(ve,L)=>{var J=tt(),ge=R(J);{let ne=$(()=>S.home_agents());P(ge,()=>ze.Trigger,(he,E)=>{E(he,{variant:"ghost",class:"h-8 w-fit max-w-full justify-start",get"aria-label"(){return e(ne)},children:(M,F)=>{var I=ia(),v=R(I);{var p=ue=>{{let we=$(()=>e(d).metadata?.specialist??e(d).agentMetadata?.specialist);et(ue,{get agentId(){return e(d).id},get specialist(){return e(we)},variant:"emphasized"})}};V(v,ue=>{e(d)&&ue(p)})}var K=n(v,2),_=Ae(K,!0),se=n(K,2);He(se,{get icon(){return Nt},class:"shrink-0 text-muted-foreground"}),x(()=>B(_,e(d)?.name)),a(M,I)},$$slots:{default:!0}})})}var me=n(ge,2);P(me,()=>ze.Content,(ne,he)=>{he(ne,{portal:!0,children:(E,M)=>{var F=fe(),I=R(F);De(I,17,()=>e(g),v=>v.id,(v,p)=>{var K=fe(),_=R(K);P(_,()=>ze.Item,(se,ue)=>{ue(se,{get value(){return e(p).id},get label(){return e(p).name},children:(we,Ue)=>{var Re=la(),pe=u(Re);{let kt=$(()=>e(p).metadata?.specialist??e(p).agentMetadata?.specialist);et(pe,{get agentId(){return e(p).id},get specialist(){return e(kt)},variant:"emphasized"})}var wt=n(pe,2),$t=Ae(wt,!0);c(Re),x(()=>B($t,e(p).name)),a(we,Re)},$$slots:{default:!0}})}),a(v,K)}),a(E,F)},$$slots:{default:!0}})}),a(ve,J)},$$slots:{default:!0}})})}c(f),a(r,f)};V(Je,r=>{e(g).length&&r(ft)})}var Ke=n(Je,2);{var _t=r=>{var f=ca(),q=u(f),oe=Ae(q,!0),G=n(q,2);Ee(G,{variant:"outline",size:"sm",onclick:te,children:(C,ve)=>{$e();var L=ke();x(J=>B(L,J),[()=>S.home_retry()]),a(C,L)},$$slots:{default:!0}}),c(f),x(C=>B(oe,C),[()=>S.home_detail_unavailable()]),a(r,f)};V(Ke,r=>{e(k)&&r(_t)})}var Ve=n(Ke,2),gt=u(Ve);ot(gt,()=>s().id,r=>{vt(r,{get workspace(){return s()},get preview(){return y()},get agent(){return e(d)}})}),c(Ve),c(ae),x(r=>Le(ae,"aria-label",r),[()=>S.home_workspace_details()]),a(b,ae);var ht=Ge(de);return Z(),ht}export{dt as H,ua as a};
@@ -1,2 +1,2 @@
1
- import{f as e,bC as s,c4 as o,a6 as i}from"./BejAw64w.js";import{p as g}from"./CvHIPf4O.js";var p={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},v={version:"11.17.2"},d=e(()=>v.version,"getVersion"),c={getVersion:d},m=e((r,a,n)=>{s.debug(`rendering info diagram
1
+ import{f as e,bC as s,c4 as o,a6 as i}from"./LhLTjc8B.js";import{p as g}from"./CBeBcrFe.js";var p={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},v={version:"11.17.2"},d=e(()=>v.version,"getVersion"),c={getVersion:d},m=e((r,a,n)=>{s.debug(`rendering info diagram
2
2
  `+r);const t=o(a);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),f={draw:m},b={parser:p,db:c,renderer:f};export{b as diagram};
@@ -1,4 +1,4 @@
1
- import{p as tt}from"./CHwD9QHP.js";import{aK as et,c6 as at,aL as rt,c7 as it,aP as nt,c9 as ot,f as l,bC as E,aO as st,$ as lt,c4 as ct,bQ as dt,a6 as gt,a0 as ht,ax as pt}from"./BejAw64w.js";import{p as ft}from"./CvHIPf4O.js";import{d as I}from"./Bg4MuTWX.js";import{o as ut}from"./CmKTTxBW.js";import{d as mt}from"./Drwt7aYJ.js";var vt=pt.pie,L={sections:new Map,showData:!1},b=L.sections,R=L.showData,St=structuredClone(vt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{b=new Map,R=L.showData,ht()},"clear"),Ct=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);b.has(t)||(b.set(t,a),E.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),$t=l(()=>b,"getSections"),Dt=l(t=>{R=t},"setShowData"),yt=l(()=>R,"getShowData"),U={getConfig:xt,clear:wt,setDiagramTitle:ot,getDiagramTitle:nt,setAccTitle:it,getAccTitle:rt,setAccDescription:at,getAccDescription:et,addSection:Ct,getSections:$t,setShowData:Dt,getShowData:yt},bt=l((t,a)=>{tt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),Tt={parse:l(async t=>{const a=await ft("pie",t);E.debug(a),bt(a,U)},"parse")},At=l(t=>`
1
+ import{p as tt}from"./C1H4_ssx.js";import{aK as et,c6 as at,aL as rt,c7 as it,aP as nt,c9 as ot,f as l,bC as E,aO as st,$ as lt,c4 as ct,bQ as dt,a6 as gt,a0 as ht,ax as pt}from"./LhLTjc8B.js";import{p as ft}from"./CBeBcrFe.js";import{d as I}from"./DVbZ5oZ8.js";import{o as ut}from"./CmKTTxBW.js";import{d as mt}from"./Xz2JgrtK.js";var vt=pt.pie,L={sections:new Map,showData:!1},b=L.sections,R=L.showData,St=structuredClone(vt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{b=new Map,R=L.showData,ht()},"clear"),Ct=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);b.has(t)||(b.set(t,a),E.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),$t=l(()=>b,"getSections"),Dt=l(t=>{R=t},"setShowData"),yt=l(()=>R,"getShowData"),U={getConfig:xt,clear:wt,setDiagramTitle:ot,getDiagramTitle:nt,setAccTitle:it,getAccTitle:rt,setAccDescription:at,getAccDescription:et,addSection:Ct,getSections:$t,setShowData:Dt,getShowData:yt},bt=l((t,a)=>{tt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),Tt={parse:l(async t=>{const a=await ft("pie",t);E.debug(a),bt(a,U)},"parse")},At=l(t=>`
2
2
  .pieCircle{
3
3
  stroke: ${t.pieStrokeColor};
4
4
  stroke-width : ${t.pieStrokeWidth};
@@ -1,4 +1,4 @@
1
- import{a as p,ad as C,aE as q,M as W,k as G,U,r as j,aD as K,N as J}from"./D2zf67XA.js";import{g as Y}from"./BejAw64w.js";var M="",A="",O="",D=[],b=new Map,v=p(e=>K(e,J()),"sanitizeText"),$=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($)};case"choice":return{...e,alternatives:e.alternatives.map($)};case"optional":return{...e,element:$(e.element)};case"repetition":return{...e,element:$(e.element),separator:e.separator?$(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),Q=p(()=>{M="",A="",O="",D.length=0,b.clear(),G(),C.debug("[Railroad] Database cleared")},"clear"),P=p(e=>{M=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),L=p(()=>M,"getTitle"),Z=p(e=>{const i={...e,name:v(e.name),definition:$(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"),V=p(()=>D,"getRules"),ee=p(e=>b.get(e),"getRule"),te=p(e=>{A=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),re=p(()=>A,"getAccTitle"),ie=p(e=>{O=v(e).replace(/\n\s+/g,`
1
+ import{a as p,ad as C,aE as q,M as W,k as G,U,r as j,aD as K,N as J}from"./bAWH0D1a.js";import{g as Y}from"./LhLTjc8B.js";var M="",A="",O="",D=[],b=new Map,v=p(e=>K(e,J()),"sanitizeText"),$=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($)};case"choice":return{...e,alternatives:e.alternatives.map($)};case"optional":return{...e,element:$(e.element)};case"repetition":return{...e,element:$(e.element),separator:e.separator?$(e.separator):void 0};case"special":return{...e,text:v(e.text)}}},"sanitizeAstNode"),Q=p(()=>{M="",A="",O="",D.length=0,b.clear(),G(),C.debug("[Railroad] Database cleared")},"clear"),P=p(e=>{M=v(e),C.debug("[Railroad] Title set:",e)},"setTitle"),L=p(()=>M,"getTitle"),Z=p(e=>{const i={...e,name:v(e.name),definition:$(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"),V=p(()=>D,"getRules"),ee=p(e=>b.get(e),"getRule"),te=p(e=>{A=v(e).replace(/^\s+/g,""),C.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),re=p(()=>A,"getAccTitle"),ie=p(e=>{O=v(e).replace(/\n\s+/g,`
2
2
  `),C.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),ae=p(()=>O,"getAccDescription"),ne=P,oe=L,le={clear:Q,setTitle:P,getTitle:L,addRule:Z,getRules:V,getRule:ee,setAccTitle:te,getAccTitle:re,setAccDescription:ie,getAccDescription:ae,setDiagramTitle:ne,getDiagramTitle:oe},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},se=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,de=/^[\w "',.-]+$/,ce=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"]),I=p(e=>e?Object.keys(e).every(i=>i==="railroad"||ce.has(i)):!1,"isRailroadStyleOptions"),me=p(e=>e?"railroad"in e&&e.railroad?e.railroad:I(e)?e:{}:{},"extractRailroadOverrides"),he=p(e=>{if(!e||I(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 se.test(n)?n:i},"sanitizeColorValue"),X=p((e,i)=>{if(typeof e!="string")return i;const n=e.trim();return de.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"),pe=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"),ue=p(e=>{const i=X(e.fontFamily,f.fontFamily),n=pe(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=W(),n={...U(),...i.themeVariables??{},...he(e)},a=ue(n),t={...i.railroad??{},...me(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"),we=p(e=>{const{fontFamily:i,fontSize:n,terminalFill:a,terminalStroke:t,terminalTextColor:r,nonTerminalFill:o,nonTerminalStroke:g,nonTerminalTextColor:l,lineColor:s,strokeWidth:h,markerFill:u,commentFill:c,commentStroke:w,commentTextColor:d,specialFill:T,specialStroke:z,ruleNameColor:S}=E(e);return`
3
3
  .railroad-diagram {
4
4
  font-family: ${i};
@@ -1 +1 @@
1
- import{t as Ut,bq as G,bo as u,a_ as W,by as Ot,b as Gt}from"./sMg7Lxjd.js";import{bs as Rt,bV as K,br as rt,bk as er,bj as tr,bH as r,a5 as c,aD as e,bS as n,bl as S,bA as l,b_ as g,bO as m,W as o,bn as zt,aA as R,c9 as M,be as Ve,b$ as Be,aB as b,c5 as mt,ca as ft,a7 as Fe,ay as F,ai as rr,aj as ar,bf as sr}from"./B8o4lNgr.js";import{I as or,k as Ue,d as gt,h as Xe,s as nr}from"./CsvDcicf.js";import{c as Ee}from"./CfM0pCZF.js";import{H as Oe,C as Ze,h as $t}from"./Co-DDbT2.js";import{b as xt}from"./D2g8BuR1.js";import{F as Te,cF as ir,ar as lr,cz as bt,cP as Pt,c4 as cr}from"./DGPqSlym.js";import{f as we}from"./P-01BLZ6.js";import{M as dr}from"./CylTfPZk.js";import{r as nt}from"./CLqc4Ghh.js";import{e as pr,a2 as _e}from"./CjKcpWyx.js";import{e as Ct,f as Et,d as Tt,P as At}from"./CaJKv7d6.js";import{C as ht}from"./BdqSZQx_.js";import{c as ur}from"./ChTqQfQN.js";import"./HqhytM4z.js";import{w as vr}from"./Cgu6cLKT.js";import{G9 as _r}from"./FBhib8LQ.js";import{dv as mr}from"./bHtn9InS.js";import{S as et,k as fr,a as jt}from"./DTjIXONR.js";import{R as qe,c as it,m as gr,bF as tt}from"./BNAxChIn.js";import"./DIiXUVIr.js";var xr=b('<div class="w-2 h-2 bg-green-500 rounded-full animate-pulse"></div>'),br=b('<div class="text-sm text-danger bg-danger-background/10 rounded-md p-3"> </div>'),hr=b('<div class="flex items-center gap-2 text-subtle"><!> <span class="text-sm"> </span></div>'),Sr=b('<div class="p-4 max-h-60 overflow-y-auto overscroll-contain"><!></div>'),yr=b('<div class="p-3 bg-muted/30"><div class="flex items-center justify-between mb-2"><div class="flex items-center gap-2"><!> <span class="text-sm font-medium"> </span></div> <!></div> <p class="text-xs text-subtle mb-2"> </p> <div class="h-32 rounded border border-border overflow-hidden"><!></div></div>'),wr=b('<div class="flex flex-col bg-background border border-border rounded-lg overflow-hidden"><div class="flex items-center justify-between px-3 py-2 border-b border-border bg-muted/30"><div class="flex items-center gap-2"><!> <span class="text-sm font-medium"> </span> <!></div> <div class="flex items-center gap-1"><!></div></div> <!> <!></div>');function St(He,P){if(new.target)return Ut({component:St,...He});Rt(P,!0);const at=ur("SetupScriptAgent");let Ae=G(P,"repoPath",7),Ge=G(P,"onScriptGenerated",7),Re=G(P,"onClose",7),ze=K(rt(crypto.randomUUID())),U=K(!1),ae=K(null),me=!1,ie=K(null);er(()=>{me=!0,C()}),tr(()=>{me=!1});async function le(){try{const v=mr.select(_r.state).find(E=>E.repositoryPath===Ae()||E.path===Ae()||E.worktreePath===Ae());return v?String(v.id):null}catch{return null}}async function C(){r(U,!0),r(ae,null),r(ie,null);try{const s=await le();if(!me)return;if(!s){r(ae,u.workspace_setupScriptAgent_noWorkspace_error(),!0),r(U,!1);return}const v=await vr.setupScripts.generate(s);if(!me)return;if(!v||!v.script){r(ae,u.workspace_setupScriptAgent_generateFailed_error(),!0),r(U,!1);return}r(ie,{name:v.projectType?u.workspace_setupScriptAgent_projectTypeSetup_label({projectType:v.projectType}):u.workspace_setupScriptAgent_generatedSetup_label(),description:v.projectType?u.workspace_setupScriptAgent_generatedForProject_description({projectType:v.projectType}):u.workspace_setupScriptAgent_generatedFromAnalysis_description(),content:v.script},!0),r(U,!1)}catch(s){if(at.error("Failed to generate setup script",s),!me)return;r(ae,s instanceof Error?s.message:u.workspace_setupScriptAgent_generateFailed_error(),!0),r(U,!1)}}function fe(s){Ge()?.(s)}var ge={get repoPath(){return Ae()},set repoPath(s){Ae(s),R()},get onScriptGenerated(){return Ge()},set onScriptGenerated(s){Ge(s),R()},get onClose(){return Re()},set onClose(s){Re(s),R()},$set:Ot,$on:(s,v)=>Gt(P,s,v)},ce=wr(),xe=c(ce),be=c(xe),De=c(be);pr(De,{variant:"standard",get agentId(){return e(ze)}});var Le=n(De,2),je=S(Le,!0),he=n(Le,2);{var de=s=>{var v=xr();o(s,v)};W(he,s=>{e(U)&&s(de)})}l(be);var J=n(be,2),ke=c(J);{let s=M(()=>u.workspace_setupScriptAgent_close_ariaLabel());we(ke,{variant:"ghost-light",size:"icon-sm",iconOnly:!0,get"aria-label"(){return e(s)},get onclick(){return Re()},children:(v,E)=>{Te(v,{get icon(){return ir}})},$$slots:{default:!0}})}l(J),l(xe);var $e=n(xe,2);{var Ie=s=>{var v=Sr(),E=c(v);{var q=B=>{var z=br(),Q=S(z,!0);g(()=>m(Q,e(ae))),o(B,z)},se=B=>{var z=hr(),Q=c(z);or(Q,{size:16,class:"text-primary"});var Se=n(Q,2),Me=S(Se,!0);l(z),g(ye=>m(Me,ye),[()=>u.workspace_setupScriptAgent_analyzing_label()]),o(B,z)};W(E,B=>{e(ae)?B(q):B(se,-1)})}l(v),o(s,v)};W($e,s=>{(e(ae)||e(U))&&s(Ie)})}var Ye=n($e,2);{var pe=s=>{var v=yr(),E=c(v),q=c(E),se=c(q);Te(se,{get icon(){return lr},class:"text-green-500"});var B=n(se,2),z=S(B,!0);l(q);var Q=n(q,2);we(Q,{variant:"primary",size:"sm",onclick:()=>fe(e(ie)),class:"h-7",children:(Pe,st)=>{Ve();var Je=Be();g(ct=>m(Je,ct),[()=>u.workspace_setupScriptAgent_createScript_label()]),o(Pe,Je)},$$slots:{default:!0}}),l(E);var Se=n(E,2),Me=S(Se,!0),ye=n(Se,2),lt=c(ye);ht(lt,{get value(){return e(ie).content},language:"shell",readOnly:!0,lineNumbers:!1}),l(ye),l(v),g(()=>{m(z,e(ie).name),m(Me,e(ie).description)}),o(s,v)};W(Ye,s=>{e(ie)&&!e(U)&&s(pe)})}return l(ce),g(s=>m(je,s),[()=>u.workspace_setupScriptAgent_title()]),o(He,ce),zt(ge)}var kr=b('<span class="block truncate"> </span>'),$r=b("<div></div>"),Pr=b('<div role="group"></div> <div class="mt-2 border-t border-border pt-2"><!></div> <!> <div class="mt-2 border-t border-border pt-2"><!> <!></div>',1),Cr=b('<code class="type-caption text-muted-foreground"> </code>'),Er=b('<p> </p> <code class="type-caption"> </code>',1),It=b("<!> <!>",1),Tr=b('<div class="mt-2 flex flex-wrap gap-2 px-2"></div>'),Ar=b('<div class="h-44 min-w-0 overflow-hidden rounded-(--radius-medium) border border-border bg-background py-2"><!></div> <div class="mt-2 px-1"><!> <!></div>',1),jr=b('<div class="mb-2 flex items-center justify-between gap-3 px-2"><div class="min-w-0"><h3> </h3> <p class="type-caption truncate text-muted-foreground"> </p></div> <!></div> <!>',1),Ke=b("<div><!></div>"),Ir=b("<!> ",1),Nt=b('<div class="min-w-0 w-full"><span class="text-sm"> </span> <p class="text-xs text-subtle mt-0.5"> </p></div>'),Ft=b('<div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <!></div>'),Nr=b('<span class="type-caption px-1.5 py-0.5 rounded-full bg-primary/10 text-primary font-medium shrink-0"> </span>'),Fr=b('<div class="min-w-0 w-full"><div class="flex flex-wrap items-center gap-x-2 gap-y-1"><span class="text-sm"> </span> <!></div> <p class="text-xs text-subtle mt-0.5"> </p></div>'),Ur=b('<div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <p class="text-xs text-subtle px-2 mb-2"> </p> <!></div> <!> <!> <div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <!></div>',1),Or=b('<code class="type-caption px-1.5 py-0.5 rounded bg-background/80 text-muted-foreground font-mono cursor-pointer hover:bg-background hover:text-foreground transition-colors"> </code>'),Gr=b('<p class="text-xs"> </p> <p class="mt-1 text-xs text-muted-foreground"> <code class="type-caption"> </code></p>',1),Rr=b('<div class="flex flex-wrap items-center gap-x-3 gap-y-1.5 px-3 py-1.5 bg-muted/30 shrink-0"><span class="type-caption font-medium text-muted-foreground shrink-0"> </span> <div class="flex flex-wrap gap-1.5"></div></div> <div class="flex-1 min-h-0 min-w-0 overflow-hidden py-3 bg-background"><!></div>',1),zr=b('<div class="flex min-h-0 min-w-0 flex-col overflow-y-auto"><!></div> <div class="flex min-h-0 min-w-0 flex-col"><!></div>',1),Dr=b('<div class="flex flex-col min-h-0 min-w-0 overflow-y-auto p-2 md:pr-4"><!></div> <div class="flex flex-col min-w-0 min-h-0"><!></div>',1),Lr=b('<!> <span class="text-sm font-normal text-subtle"> </span> <span class="text-subtle font-normal"> </span>',1),Mr=b('<div class="mt-1 pl-7 space-y-3"><!></div>'),Wr=b('<div class="space-y-3"><!></div>'),qr=b("<div><!> <!></div> <!>",1);function Kr(He,P){if(new.target)return Ut({component:Kr,...He});Rt(P,!0);const at=(t,a=sr)=>{{const w=_=>{Te(_,{get icon(){return bt},get class(){return _e.icon}})},j=_=>{var i=kr(),f=S(i,!0);g(()=>m(f,a().name)),o(_,i)},T=_=>{{let i=M(()=>e(st)===a().id?"checked":"empty");dr(_,{get state(){return e(i)}})}};let h=M(()=>e(st)===a().id),$=M(()=>e(st)===a().id);nt(t,{get selected(){return e(h)},get"aria-pressed"(){return e($)},get"data-setup-source"(){return a().id},get class(){return _e.row},onclick:()=>a().id==="custom"?Dt():ye(a().id),leading:w,title:j,trailing:T,$$slots:{leading:!0,title:!0,trailing:!0}})}},Ae=t=>{var a=Ke(),w=c(a);{var j=h=>{var $=Pr(),_=F($);Xe(_,21,()=>e(Je),I=>I.id,(I,O)=>{at(I,()=>e(O))}),l(_);var i=n(_,2),f=c(i);nt(f,{get"aria-expanded"(){return e($e)},get class(){return _e.row},onclick:()=>r($e,!e($e)),leading:y=>{Te(y,{get icon(){return cr},get class(){return _e.icon}})},title:y=>{Ve();var d=Be();g(p=>m(d,p),[()=>u.workspace_setupScriptEditor_templates_label()]),o(y,d)},$$slots:{leading:!0,title:!0}}),l(i);var x=n(i,2);{var k=I=>{var O=$r();Xe(O,21,()=>e(ct),y=>y.id,(y,d)=>{at(y,()=>({id:`template-${e(d).id}`,name:e(d).name}))}),l(O),Oe(3,O,()=>Ze,()=>({tier:"moderate"})),o(I,O)};W(x,I=>{e($e)&&I(k)})}var D=n(x,2),ue=c(D);nt(ue,{get class(){return _e.row},onclick:()=>r(ke,!0),leading:y=>{Te(y,{get icon(){return bt},get class(){return _e.icon}})},title:y=>{Ve();var d=Be();g(p=>m(d,p),[()=>u.workspace_setupScriptPicker_edit_label()]),o(y,d)},$$slots:{leading:!0,title:!0}});var ve=n(ue,2);{const I=d=>{Te(d,{get icon(){return Pt},get class(){return _e.icon}})},O=d=>{Ve();var p=Be();g(N=>m(p,N),[()=>u.workspace_setupScriptEditor_autoGenerate_label()]),o(d,p)};let y=M(()=>!U());nt(ve,{get class(){return _e.row},get disabled(){return e(y)},onclick:()=>{r(ke,!0),r(J,!0)},leading:I,title:O,$$slots:{leading:!0,title:!0}})}l(D),g(I=>nr(_,"aria-label",I),[()=>u.workspace_setupScriptEditor_setupScript_label()]),o(h,$)},T=h=>{var $=jr(),_=F($),i=c(_),f=c(i),x=S(f,!0),k=n(f,2),D=S(k,!0);l(i);var ue=n(i,2);we(ue,{variant:"ghost",size:"sm",onclick:()=>{r(ke,!1),r(J,!1)},children:(y,d)=>{Ve();var p=Be();g(N=>m(p,N),[()=>u.workspace_setupScriptPicker_choose_label()]),o(y,p)},$$slots:{default:!0}}),l(_);var ve=n(_,2);{var I=y=>{St(y,{get repoPath(){return U()},onScriptGenerated:Lt,onClose:()=>r(J,!1)})},O=y=>{var d=Ar(),p=F(d),N=c(p);xt(ht(N,{language:"shell",lineNumbers:!1,get lineWrapping(){return e(Se)},get value(){return C()},set value(A){C(A)}}),A=>r(pe,A,!0),()=>e(pe)),l(p);var X=n(p,2),H=c(X);we(H,{variant:"ghost",size:"sm",get active(){return e(Ie)},get"aria-expanded"(){return e(Ie)},onclick:()=>r(Ie,!e(Ie)),children:(A,oe)=>{Ve();var L=Be();g(ee=>m(L,ee),[()=>u.workspace_setupScriptEditor_variables_label()]),o(A,L)},$$slots:{default:!0}});var V=n(H,2);{var Z=A=>{var oe=Fe(),L=F(oe);Ee(L,()=>At,(ee,te)=>{te(ee,{delayDuration:100,children:(ne,Ce)=>{var Y=Tr();Xe(Y,21,()=>jt,re=>re.name,(re,Ne)=>{var We=Fe(),pt=F(We);Ee(pt,()=>Ct,(Vt,Bt)=>{Bt(Vt,{children:(Ht,Vr)=>{var wt=It(),kt=F(wt);Ee(kt,()=>Et,(ut,vt)=>{vt(ut,{children:(_t,Jt)=>{var Qe=Cr(),ot=S(Qe);g(()=>m(ot,`$${e(Ne).name??""}`)),o(_t,Qe)},$$slots:{default:!0}})});var Yt=n(kt,2);Ee(Yt,()=>Tt,(ut,vt)=>{vt(ut,{side:"top",class:"max-w-xs",children:(_t,Jt)=>{var Qe=Er(),ot=F(Qe),Qt=S(ot,!0),Xt=n(ot,2),Zt=S(Xt,!0);g(()=>{m(Qt,e(Ne).description),m(Zt,e(Ne).example)}),o(_t,Qe)},$$slots:{default:!0}})}),o(Ht,wt)},$$slots:{default:!0}})}),o(re,We)}),l(Y),o(ne,Y)},$$slots:{default:!0}})}),o(A,oe)};W(V,A=>{e(Ie)&&A(Z)})}l(X),o(y,d)};W(ve,y=>{e(J)&&U()?y(I):y(O,-1)})}g(y=>{Ue(f,1,gt(_e.title),"svelte-1yy464i"),m(x,y),m(D,e(Me))},[()=>u.workspace_setupScriptPicker_commands_label()]),o(h,$)};W(w,h=>{e(ke)?h(T,-1):h(j)})}l(a),xt(a,h=>r(Ye,h),()=>e(Ye)),g(()=>Ue(a,1,`${_e.rows} min-w-0`,"svelte-1yy464i")),o(t,a)},Ge=t=>{var a=Ur(),w=F(a),j=c(w),T=S(j,!0),h=n(j,2),$=S(h,!0),_=n(h,2);{var i=d=>{var p=Ke(),N=c(p);St(N,{get repoPath(){return U()},onScriptGenerated:X=>{r(se,!0),r(s,""),C(X.content),r(E,X.name,!0),r(v,!0),de()?.(C()),r(J,!1),requestAnimationFrame(()=>e(pe)?.focus())},onClose:()=>r(J,!1)}),l(p),Oe(3,p,()=>Ze,()=>({tier:"moderate"})),o(d,p)},f=d=>{{let p=M(()=>!U());we(d,{variant:"ghost",size:"sm",class:"w-full justify-start text-subtle",onclick:()=>r(J,!0),get disabled(){return e(p)},children:(N,X)=>{var H=Ir(),V=F(H);Te(V,{get icon(){return Pt},class:"mr-1.5"});var Z=n(V);g(A=>m(Z,` ${A??""}`),[()=>u.workspace_setupScriptEditor_autoGenerate_label()]),o(N,H)},$$slots:{default:!0}})}};W(_,d=>{e(J)&&U()?d(i):d(f,-1)})}l(w);var x=n(w,2);{var k=d=>{var p=Ft(),N=c(p),X=S(N,!0),H=n(N,2);{let V=M(()=>e(s)===qe),Z=M(()=>e(s)===qe);we(H,{variant:"ghost",truncateLabel:!1,get active(){return e(V)},get"aria-pressed"(){return e(Z)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(qe),children:(A,oe)=>{var L=Nt(),ee=c(L),te=S(ee,!0),ne=n(ee,2),Ce=S(ne,!0);l(L),g((Y,re)=>{m(te,Y),m(Ce,re)},[()=>tt(it,"repo-config"),()=>u.workspace_setupScriptEditor_repoConfig_description()]),o(A,L)},$$slots:{default:!0}})}l(p),g(V=>m(X,V),[()=>u.workspace_setupScriptEditor_repoConfig_label()]),o(d,p)};W(x,d=>{le()&&d(k)})}var D=n(x,2);{var ue=d=>{var p=Ft(),N=c(p),X=S(N,!0),H=n(N,2);{let V=M(()=>e(s)===B),Z=M(()=>e(s)===B);we(H,{variant:"ghost",truncateLabel:!1,get active(){return e(V)},get"aria-pressed"(){return e(Z)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(B),children:(A,oe)=>{var L=Nt(),ee=c(L),te=S(ee,!0),ne=n(ee,2),Ce=S(ne,!0);l(L),g((Y,re)=>{m(te,Y),m(Ce,re)},[()=>tt(e(z).name,e(z).nameSource),()=>u.workspace_setupScriptEditor_lastUsed_description()]),o(A,L)},$$slots:{default:!0}})}l(p),g(V=>m(X,V),[()=>u.workspace_setupScriptEditor_lastUsed_label()]),o(d,p)};W(D,d=>{e(z)&&d(ue)})}var ve=n(D,2),I=c(ve),O=S(I,!0),y=n(I,2);Xe(y,17,()=>et,d=>d.id,(d,p)=>{{let N=M(()=>e(s)===`template-${e(p).id}`),X=M(()=>e(s)===`template-${e(p).id}`);we(d,{variant:"ghost",truncateLabel:!1,get active(){return e(N)},get"aria-pressed"(){return e(X)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(`template-${e(p).id}`),children:(H,V)=>{var Z=Fr(),A=c(Z),oe=c(A),L=S(oe,!0),ee=n(oe,2);{var te=Y=>{var re=Nr(),Ne=S(re,!0);g(We=>m(Ne,We),[()=>u.workspace_setupScriptEditor_recommended_label()]),o(Y,re)};W(ee,Y=>{e(p).projectType===ie()&&Y(te)})}l(A);var ne=n(A,2),Ce=S(ne,!0);l(Z),g(()=>{m(L,e(p).name),m(Ce,e(p).description)}),o(H,Z)},$$slots:{default:!0}})}}),l(ve),g((d,p,N)=>{m(T,d),m($,p),m(O,N)},[()=>u.workspace_setupScriptEditor_generate_label(),()=>u.workspace_setupScriptEditor_generate_description(),()=>u.workspace_setupScriptEditor_templates_label()]),o(t,a)},Re=t=>{var a=Rr(),w=F(a),j=c(w),T=S(j,!0),h=n(j,2);Xe(h,21,()=>jt,i=>i.name,(i,f)=>{var x=Fe(),k=F(x);Ee(k,()=>At,(D,ue)=>{ue(D,{delayDuration:100,children:(ve,I)=>{var O=Fe(),y=F(O);Ee(y,()=>Ct,(d,p)=>{p(d,{delayDuration:100,children:(N,X)=>{var H=It(),V=F(H);Ee(V,()=>Et,(A,oe)=>{oe(A,{children:(L,ee)=>{var te=Or(),ne=S(te);g(()=>m(ne,`$${e(f).name??""}`)),o(L,te)},$$slots:{default:!0}})});var Z=n(V,2);Ee(Z,()=>Tt,(A,oe)=>{oe(A,{side:"bottom",class:"max-w-xs z-[200]",children:(L,ee)=>{var te=Gr(),ne=F(te),Ce=S(ne,!0),Y=n(ne,2),re=c(Y),Ne=n(re),We=S(Ne,!0);l(Y),g(pt=>{m(Ce,e(f).description),m(re,`${pt??""} `),m(We,e(f).example)},[()=>u.workspace_setupScriptEditor_example_before()]),o(L,te)},$$slots:{default:!0}})}),o(N,H)},$$slots:{default:!0}})}),o(ve,O)},$$slots:{default:!0}})}),o(i,x)}),l(h),l(w);var $=n(w,2),_=c($);xt(ht(_,{language:"shell",lineNumbers:!0,get lineWrapping(){return e(Se)},get value(){return C()},set value(i){C(i)}}),i=>r(pe,i,!0),()=>e(pe)),l($),g(i=>m(T,i),[()=>u.workspace_setupScriptEditor_variables_label()]),ar("keydown",$,i=>{i.altKey&&i.key==="z"&&(i.preventDefault(),r(Se,!e(Se)))}),o(t,a)},ze=t=>{var a=Ke(),w=c(a);{var j=h=>{var $=zr(),_=F($),i=c(_);Ge(i),l(_);var f=n(_,2),x=c(f);Re(x),l(f),Oe(1,_,()=>$t,()=>({tier:"moderate",axis:"x",distance:-8})),Oe(1,f,()=>$t,()=>({tier:"moderate",axis:"x"})),o(h,$)},T=h=>{var $=Dr(),_=F($),i=c(_);Ge(i),l(_);var f=n(_,2),x=c(f);Re(x),l(f),o(h,$)};W(w,h=>{he()==="workspace"?h(j):h(T,-1)})}l(a),g(()=>Ue(a,1,gt(he()==="workspace"?"setup-workspace-layout":"grid flex-1 min-h-0 min-w-0 grid-cols-1 grid-rows-[minmax(0,1fr)_minmax(0,2fr)] md:grid-cols-[minmax(0,2fr)_minmax(0,3fr)] md:grid-rows-1"),"svelte-1yy464i")),o(t,a)};let U=G(P,"repoPath",7,""),ae=G(P,"repositoryKey",7),me=G(P,"githubUrl",7,null),ie=G(P,"projectType",7,void 0),le=G(P,"repoConfigScript",7,null),C=G(P,"value",15,""),fe=G(P,"expanded",15,!1),ge=G(P,"scriptName",31,()=>rt(u.workspace_setupScriptEditor_custom_name())),ce=G(P,"scriptNameSource",15,"named"),xe=G(P,"isCustomScript",15,!1),be=G(P,"compact",7,!1),De=G(P,"triggerClass",7,""),Le=G(P,"contentOnly",7,!1),je=G(P,"contentClass",7,""),he=G(P,"presentation",7,"editor"),de=G(P,"onchange",7),J=K(!1),ke=K(rt(mt(()=>xe()))),$e=K(!1),Ie=K(!1),Ye=K(void 0),pe=K(void 0),s=K(""),v=K(!1),E=K(rt(ge())),q=K(rt(ce())),se=K(!1);const B="last-used",z=M(()=>{const t=ae()??U(),a=t?gr(t,me()):void 0;return a?.nameSource==="repo-config"?{...a,name:"Custom",nameSource:"custom"}:a}),Q=M(()=>{const t=new Map;return le()&&t.set(qe,{content:le(),label:it,source:"repo-config"}),e(z)&&t.set(B,{content:e(z).content,label:e(z).name,source:e(z).nameSource}),et.forEach(a=>{t.set(`template-${a.id}`,{content:fr(a),label:a.name,source:"named"})}),t});let Se=K(!0);const Me=M(()=>{if(e(v))return tt(e(E),e(q));if(!e(s))return u.workspace_setupScriptEditor_custom_name();const t=e(Q).get(e(s));return t?tt(t.label,t.source):u.workspace_setupScriptEditor_custom_name()});function ye(t){r(s,t,!0),r(v,!1),r(se,!0);const a=e(Q).get(t);a&&(C(a.content),r(E,a.label,!0),r(q,a.source,!0),de()?.(C())),he()==="picker"?(r(ke,!1),r($e,!1),requestAnimationFrame(()=>e(Ye)?.querySelector("[data-setup-source][aria-pressed=true]")?.focus())):requestAnimationFrame(()=>e(pe)?.focus())}function lt(t){if(e(s)&&e(s)!=="none"){const a=e(Q).get(e(s));a&&r(v,t!==a.content)}else t&&r(v,!0)}const Pe=(()=>{const t=et.find(a=>a.id==="generic");return t?`template-${t.id}`:""})(),st=M(()=>e(v)||!e(s)?"custom":e(s)),Je=M(()=>{const t=[];le()&&t.push({id:qe,name:tt(it,"repo-config")}),e(z)&&t.push({id:B,name:u.workspace_setupScriptEditor_lastUsed_label()});for(const a of et){const w=`template-${a.id}`;(w===Pe||w===e(s))&&t.push({id:w,name:a.name})}return t.push({id:"custom",name:u.workspace_setupScriptPicker_custom_label()}),t}),ct=M(()=>et.filter(t=>!e(Je).some(a=>a.id===`template-${t.id}`)));function Dt(){r(s,""),r(v,!0),r(E,"Custom"),r(q,"custom"),r(J,!1),r(ke,!0),requestAnimationFrame(()=>e(pe)?.focus())}function Lt(t){r(se,!0),r(s,""),C(t.content),r(E,t.name,!0),r(q,"named"),r(v,!0),de()?.(C()),r(J,!1),requestAnimationFrame(()=>e(pe)?.focus())}let dt=K(null);ft(()=>{const t=ae()??U();if(t===e(dt))return;const a=e(dt)===null&&(xe()||C().trim().length>0);if(r(dt,t,!0),a){mt(()=>{let T=!1;const h=C().trim();for(const[$,_]of e(Q).entries())if(h===_.content.trim()&&_.source===ce()&&_.label===ge()){r(s,$,!0),r(E,_.label,!0),r(q,_.source,!0),r(v,!1),T=!0;break}T||(r(v,!0),e(E)||(r(E,ge()||u.workspace_setupScriptEditor_custom_name(),!0),r(q,ge()?ce():"named",!0))),r(se,!0)});return}const w=!!le(),j=e(z);if(mt(()=>{if(r(v,!1),r(se,!0),w)r(s,qe,!0),r(E,it,!0),r(q,"repo-config");else if(j)r(s,B),r(E,j.name,!0),r(q,j.nameSource,!0);else if(Pe){r(s,Pe,!0);const T=e(Q).get(Pe);r(E,T?.label||u.workspace_setupScriptEditor_custom_name(),!0),r(q,"named")}else r(E,u.workspace_setupScriptEditor_custom_name(),!0),r(q,"named")}),w&&le())C(le()),de()?.(C());else if(j)C(j.content),de()?.(C());else if(Pe){const T=e(Q).get(Pe);T&&(C(T.content),de()?.(C()))}}),ft(()=>{if(e(se)){r(se,!1);return}C()!==void 0&&lt(C())}),ft(()=>{ge(e(E)),ce(e(q)),xe(e(v))});var Mt={get repoPath(){return U()},set repoPath(t=""){U(t),R()},get repositoryKey(){return ae()},set repositoryKey(t){ae(t),R()},get githubUrl(){return me()},set githubUrl(t=null){me(t),R()},get projectType(){return ie()},set projectType(t=void 0){ie(t),R()},get repoConfigScript(){return le()},set repoConfigScript(t=null){le(t),R()},get value(){return C()},set value(t=""){C(t),R()},get expanded(){return fe()},set expanded(t=!1){fe(t),R()},get scriptName(){return ge()},set scriptName(t=u.workspace_setupScriptEditor_custom_name()){ge(t),R()},get scriptNameSource(){return ce()},set scriptNameSource(t="named"){ce(t),R()},get isCustomScript(){return xe()},set isCustomScript(t=!1){xe(t),R()},get compact(){return be()},set compact(t=!1){be(t),R()},get triggerClass(){return De()},set triggerClass(t=""){De(t),R()},get contentOnly(){return Le()},set contentOnly(t=!1){Le(t),R()},get contentClass(){return je()},set contentClass(t=""){je(t),R()},get presentation(){return he()},set presentation(t="editor"){he(t),R()},get onchange(){return de()},set onchange(t){de(t),R()},$set:Ot,$on:(t,a)=>Gt(P,t,a)},yt=Fe(),Wt=F(yt);{var qt=t=>{var a=Fe(),w=F(a);{var j=T=>{var h=Fe(),$=F(h);{var _=x=>{var k=Ke(),D=c(k);Ae(D),l(k),g(()=>Ue(k,1,`${je()??""} min-w-0`,"svelte-1yy464i")),o(x,k)},i=x=>{var k=Ke(),D=c(k);ze(D),l(k),g(()=>Ue(k,1,`${je()??""} flex min-h-0 min-w-0 flex-1 flex-col`,"svelte-1yy464i")),o(x,k)},f=x=>{var k=Ke(),D=c(k);ze(D),l(k),g(()=>Ue(k,1,`${je()??""} flex flex-col gap-3 flex-1 min-h-0 min-w-0`,"svelte-1yy464i")),Oe(3,k,()=>Ze,()=>({tier:"moderate"})),o(x,k)};W($,x=>{he()==="picker"?x(_):he()==="workspace"?x(i,1):x(f,-1)})}o(T,h)};W(w,T=>{fe()&&T(j)})}o(t,a)},Kt=t=>{var a=qr(),w=F(a),j=c(w);we(j,{variant:"ghost",size:"sm",get class(){return`whitespace-nowrap hover:text-inherit! ${De()??""}`},onclick:()=>fe(!fe()),children:(i,f)=>{var x=Lr(),k=F(x);Te(k,{get icon(){return bt},size:"xs"});var D=n(k,2),ue=S(D,!0),ve=n(D,2),I=S(ve,!0);g(O=>{m(ue,O),m(I,e(Me))},[()=>u.workspace_setupScriptEditor_setupScript_label()]),o(i,x)},$$slots:{default:!0}});var T=n(j,2);{var h=i=>{var f=Mr(),x=c(f);ze(x),l(f),Oe(3,f,()=>Ze,()=>({tier:"moderate"})),o(i,f)};W(T,i=>{fe()&&!be()&&i(h)})}l(w);var $=n(w,2);{var _=i=>{var f=Wr(),x=c(f);ze(x),l(f),Oe(3,f,()=>Ze,()=>({tier:"moderate"})),o(i,f)};W($,i=>{fe()&&be()&&i(_)})}g(()=>Ue(w,1,gt(be()?"":"w-full"))),o(t,a)};W(Wt,t=>{Le()?t(qt):t(Kt,-1)})}return o(He,yt),zt(Mt)}rr(["keydown"]);export{Kr as default};
1
+ import{t as Ut,bq as G,bo as u,a_ as W,by as Ot,b as Gt}from"./CgPr4hs2.js";import{bs as Rt,bV as K,br as rt,bk as er,bj as tr,bH as r,a5 as c,aD as e,bS as n,bl as S,bA as l,b_ as g,bO as m,W as o,bn as zt,aA as R,c9 as M,be as Ve,b$ as Be,aB as b,c5 as mt,ca as ft,a7 as Fe,ay as F,ai as rr,aj as ar,bf as sr}from"./B8o4lNgr.js";import{I as or,k as Ue,d as gt,h as Xe,s as nr}from"./CsstSIr0.js";import{c as Ee}from"./Co_Aa6ij.js";import{H as Oe,C as Ze,h as $t}from"./CFHzcj7N.js";import{b as xt}from"./D2g8BuR1.js";import{F as Te,cF as ir,ar as lr,cz as bt,cP as Pt,c4 as cr}from"./B7NNbItI.js";import{f as we}from"./Ps9iRbKd.js";import{M as dr}from"./C5qvCE4M.js";import{r as nt}from"./4cIwmSuD.js";import{e as pr,a2 as _e}from"./CfV9aH5z.js";import{e as Ct,f as Et,d as Tt,P as At}from"./Bo4f3vLH.js";import{C as ht}from"./CivlAwc7.js";import{c as ur}from"./ChTqQfQN.js";import"./D3ROSEe0.js";import{w as vr}from"./BRqvd9LR.js";import{G9 as _r}from"./BL_sVoge.js";import{dv as mr}from"./Df2ohObb.js";import{S as et,k as fr,a as jt}from"./puEh5oJr.js";import{R as qe,c as it,m as gr,bF as tt}from"./BFxAoZrN.js";import"./Cro1ceUg.js";var xr=b('<div class="w-2 h-2 bg-green-500 rounded-full animate-pulse"></div>'),br=b('<div class="text-sm text-danger bg-danger-background/10 rounded-md p-3"> </div>'),hr=b('<div class="flex items-center gap-2 text-subtle"><!> <span class="text-sm"> </span></div>'),Sr=b('<div class="p-4 max-h-60 overflow-y-auto overscroll-contain"><!></div>'),yr=b('<div class="p-3 bg-muted/30"><div class="flex items-center justify-between mb-2"><div class="flex items-center gap-2"><!> <span class="text-sm font-medium"> </span></div> <!></div> <p class="text-xs text-subtle mb-2"> </p> <div class="h-32 rounded border border-border overflow-hidden"><!></div></div>'),wr=b('<div class="flex flex-col bg-background border border-border rounded-lg overflow-hidden"><div class="flex items-center justify-between px-3 py-2 border-b border-border bg-muted/30"><div class="flex items-center gap-2"><!> <span class="text-sm font-medium"> </span> <!></div> <div class="flex items-center gap-1"><!></div></div> <!> <!></div>');function St(He,P){if(new.target)return Ut({component:St,...He});Rt(P,!0);const at=ur("SetupScriptAgent");let Ae=G(P,"repoPath",7),Ge=G(P,"onScriptGenerated",7),Re=G(P,"onClose",7),ze=K(rt(crypto.randomUUID())),U=K(!1),ae=K(null),me=!1,ie=K(null);er(()=>{me=!0,C()}),tr(()=>{me=!1});async function le(){try{const v=mr.select(_r.state).find(E=>E.repositoryPath===Ae()||E.path===Ae()||E.worktreePath===Ae());return v?String(v.id):null}catch{return null}}async function C(){r(U,!0),r(ae,null),r(ie,null);try{const s=await le();if(!me)return;if(!s){r(ae,u.workspace_setupScriptAgent_noWorkspace_error(),!0),r(U,!1);return}const v=await vr.setupScripts.generate(s);if(!me)return;if(!v||!v.script){r(ae,u.workspace_setupScriptAgent_generateFailed_error(),!0),r(U,!1);return}r(ie,{name:v.projectType?u.workspace_setupScriptAgent_projectTypeSetup_label({projectType:v.projectType}):u.workspace_setupScriptAgent_generatedSetup_label(),description:v.projectType?u.workspace_setupScriptAgent_generatedForProject_description({projectType:v.projectType}):u.workspace_setupScriptAgent_generatedFromAnalysis_description(),content:v.script},!0),r(U,!1)}catch(s){if(at.error("Failed to generate setup script",s),!me)return;r(ae,s instanceof Error?s.message:u.workspace_setupScriptAgent_generateFailed_error(),!0),r(U,!1)}}function fe(s){Ge()?.(s)}var ge={get repoPath(){return Ae()},set repoPath(s){Ae(s),R()},get onScriptGenerated(){return Ge()},set onScriptGenerated(s){Ge(s),R()},get onClose(){return Re()},set onClose(s){Re(s),R()},$set:Ot,$on:(s,v)=>Gt(P,s,v)},ce=wr(),xe=c(ce),be=c(xe),De=c(be);pr(De,{variant:"standard",get agentId(){return e(ze)}});var Le=n(De,2),je=S(Le,!0),he=n(Le,2);{var de=s=>{var v=xr();o(s,v)};W(he,s=>{e(U)&&s(de)})}l(be);var J=n(be,2),ke=c(J);{let s=M(()=>u.workspace_setupScriptAgent_close_ariaLabel());we(ke,{variant:"ghost-light",size:"icon-sm",iconOnly:!0,get"aria-label"(){return e(s)},get onclick(){return Re()},children:(v,E)=>{Te(v,{get icon(){return ir}})},$$slots:{default:!0}})}l(J),l(xe);var $e=n(xe,2);{var Ie=s=>{var v=Sr(),E=c(v);{var q=B=>{var z=br(),Q=S(z,!0);g(()=>m(Q,e(ae))),o(B,z)},se=B=>{var z=hr(),Q=c(z);or(Q,{size:16,class:"text-primary"});var Se=n(Q,2),Me=S(Se,!0);l(z),g(ye=>m(Me,ye),[()=>u.workspace_setupScriptAgent_analyzing_label()]),o(B,z)};W(E,B=>{e(ae)?B(q):B(se,-1)})}l(v),o(s,v)};W($e,s=>{(e(ae)||e(U))&&s(Ie)})}var Ye=n($e,2);{var pe=s=>{var v=yr(),E=c(v),q=c(E),se=c(q);Te(se,{get icon(){return lr},class:"text-green-500"});var B=n(se,2),z=S(B,!0);l(q);var Q=n(q,2);we(Q,{variant:"primary",size:"sm",onclick:()=>fe(e(ie)),class:"h-7",children:(Pe,st)=>{Ve();var Je=Be();g(ct=>m(Je,ct),[()=>u.workspace_setupScriptAgent_createScript_label()]),o(Pe,Je)},$$slots:{default:!0}}),l(E);var Se=n(E,2),Me=S(Se,!0),ye=n(Se,2),lt=c(ye);ht(lt,{get value(){return e(ie).content},language:"shell",readOnly:!0,lineNumbers:!1}),l(ye),l(v),g(()=>{m(z,e(ie).name),m(Me,e(ie).description)}),o(s,v)};W(Ye,s=>{e(ie)&&!e(U)&&s(pe)})}return l(ce),g(s=>m(je,s),[()=>u.workspace_setupScriptAgent_title()]),o(He,ce),zt(ge)}var kr=b('<span class="block truncate"> </span>'),$r=b("<div></div>"),Pr=b('<div role="group"></div> <div class="mt-2 border-t border-border pt-2"><!></div> <!> <div class="mt-2 border-t border-border pt-2"><!> <!></div>',1),Cr=b('<code class="type-caption text-muted-foreground"> </code>'),Er=b('<p> </p> <code class="type-caption"> </code>',1),It=b("<!> <!>",1),Tr=b('<div class="mt-2 flex flex-wrap gap-2 px-2"></div>'),Ar=b('<div class="h-44 min-w-0 overflow-hidden rounded-(--radius-medium) border border-border bg-background py-2"><!></div> <div class="mt-2 px-1"><!> <!></div>',1),jr=b('<div class="mb-2 flex items-center justify-between gap-3 px-2"><div class="min-w-0"><h3> </h3> <p class="type-caption truncate text-muted-foreground"> </p></div> <!></div> <!>',1),Ke=b("<div><!></div>"),Ir=b("<!> ",1),Nt=b('<div class="min-w-0 w-full"><span class="text-sm"> </span> <p class="text-xs text-subtle mt-0.5"> </p></div>'),Ft=b('<div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <!></div>'),Nr=b('<span class="type-caption px-1.5 py-0.5 rounded-full bg-primary/10 text-primary font-medium shrink-0"> </span>'),Fr=b('<div class="min-w-0 w-full"><div class="flex flex-wrap items-center gap-x-2 gap-y-1"><span class="text-sm"> </span> <!></div> <p class="text-xs text-subtle mt-0.5"> </p></div>'),Ur=b('<div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <p class="text-xs text-subtle px-2 mb-2"> </p> <!></div> <!> <!> <div class="mb-4"><h4 class="type-caption font-medium text-muted-foreground mb-1.5 px-2"> </h4> <!></div>',1),Or=b('<code class="type-caption px-1.5 py-0.5 rounded bg-background/80 text-muted-foreground font-mono cursor-pointer hover:bg-background hover:text-foreground transition-colors"> </code>'),Gr=b('<p class="text-xs"> </p> <p class="mt-1 text-xs text-muted-foreground"> <code class="type-caption"> </code></p>',1),Rr=b('<div class="flex flex-wrap items-center gap-x-3 gap-y-1.5 px-3 py-1.5 bg-muted/30 shrink-0"><span class="type-caption font-medium text-muted-foreground shrink-0"> </span> <div class="flex flex-wrap gap-1.5"></div></div> <div class="flex-1 min-h-0 min-w-0 overflow-hidden py-3 bg-background"><!></div>',1),zr=b('<div class="flex min-h-0 min-w-0 flex-col overflow-y-auto"><!></div> <div class="flex min-h-0 min-w-0 flex-col"><!></div>',1),Dr=b('<div class="flex flex-col min-h-0 min-w-0 overflow-y-auto p-2 md:pr-4"><!></div> <div class="flex flex-col min-w-0 min-h-0"><!></div>',1),Lr=b('<!> <span class="text-sm font-normal text-subtle"> </span> <span class="text-subtle font-normal"> </span>',1),Mr=b('<div class="mt-1 pl-7 space-y-3"><!></div>'),Wr=b('<div class="space-y-3"><!></div>'),qr=b("<div><!> <!></div> <!>",1);function Kr(He,P){if(new.target)return Ut({component:Kr,...He});Rt(P,!0);const at=(t,a=sr)=>{{const w=_=>{Te(_,{get icon(){return bt},get class(){return _e.icon}})},j=_=>{var i=kr(),f=S(i,!0);g(()=>m(f,a().name)),o(_,i)},T=_=>{{let i=M(()=>e(st)===a().id?"checked":"empty");dr(_,{get state(){return e(i)}})}};let h=M(()=>e(st)===a().id),$=M(()=>e(st)===a().id);nt(t,{get selected(){return e(h)},get"aria-pressed"(){return e($)},get"data-setup-source"(){return a().id},get class(){return _e.row},onclick:()=>a().id==="custom"?Dt():ye(a().id),leading:w,title:j,trailing:T,$$slots:{leading:!0,title:!0,trailing:!0}})}},Ae=t=>{var a=Ke(),w=c(a);{var j=h=>{var $=Pr(),_=F($);Xe(_,21,()=>e(Je),I=>I.id,(I,O)=>{at(I,()=>e(O))}),l(_);var i=n(_,2),f=c(i);nt(f,{get"aria-expanded"(){return e($e)},get class(){return _e.row},onclick:()=>r($e,!e($e)),leading:y=>{Te(y,{get icon(){return cr},get class(){return _e.icon}})},title:y=>{Ve();var d=Be();g(p=>m(d,p),[()=>u.workspace_setupScriptEditor_templates_label()]),o(y,d)},$$slots:{leading:!0,title:!0}}),l(i);var x=n(i,2);{var k=I=>{var O=$r();Xe(O,21,()=>e(ct),y=>y.id,(y,d)=>{at(y,()=>({id:`template-${e(d).id}`,name:e(d).name}))}),l(O),Oe(3,O,()=>Ze,()=>({tier:"moderate"})),o(I,O)};W(x,I=>{e($e)&&I(k)})}var D=n(x,2),ue=c(D);nt(ue,{get class(){return _e.row},onclick:()=>r(ke,!0),leading:y=>{Te(y,{get icon(){return bt},get class(){return _e.icon}})},title:y=>{Ve();var d=Be();g(p=>m(d,p),[()=>u.workspace_setupScriptPicker_edit_label()]),o(y,d)},$$slots:{leading:!0,title:!0}});var ve=n(ue,2);{const I=d=>{Te(d,{get icon(){return Pt},get class(){return _e.icon}})},O=d=>{Ve();var p=Be();g(N=>m(p,N),[()=>u.workspace_setupScriptEditor_autoGenerate_label()]),o(d,p)};let y=M(()=>!U());nt(ve,{get class(){return _e.row},get disabled(){return e(y)},onclick:()=>{r(ke,!0),r(J,!0)},leading:I,title:O,$$slots:{leading:!0,title:!0}})}l(D),g(I=>nr(_,"aria-label",I),[()=>u.workspace_setupScriptEditor_setupScript_label()]),o(h,$)},T=h=>{var $=jr(),_=F($),i=c(_),f=c(i),x=S(f,!0),k=n(f,2),D=S(k,!0);l(i);var ue=n(i,2);we(ue,{variant:"ghost",size:"sm",onclick:()=>{r(ke,!1),r(J,!1)},children:(y,d)=>{Ve();var p=Be();g(N=>m(p,N),[()=>u.workspace_setupScriptPicker_choose_label()]),o(y,p)},$$slots:{default:!0}}),l(_);var ve=n(_,2);{var I=y=>{St(y,{get repoPath(){return U()},onScriptGenerated:Lt,onClose:()=>r(J,!1)})},O=y=>{var d=Ar(),p=F(d),N=c(p);xt(ht(N,{language:"shell",lineNumbers:!1,get lineWrapping(){return e(Se)},get value(){return C()},set value(A){C(A)}}),A=>r(pe,A,!0),()=>e(pe)),l(p);var X=n(p,2),H=c(X);we(H,{variant:"ghost",size:"sm",get active(){return e(Ie)},get"aria-expanded"(){return e(Ie)},onclick:()=>r(Ie,!e(Ie)),children:(A,oe)=>{Ve();var L=Be();g(ee=>m(L,ee),[()=>u.workspace_setupScriptEditor_variables_label()]),o(A,L)},$$slots:{default:!0}});var V=n(H,2);{var Z=A=>{var oe=Fe(),L=F(oe);Ee(L,()=>At,(ee,te)=>{te(ee,{delayDuration:100,children:(ne,Ce)=>{var Y=Tr();Xe(Y,21,()=>jt,re=>re.name,(re,Ne)=>{var We=Fe(),pt=F(We);Ee(pt,()=>Ct,(Vt,Bt)=>{Bt(Vt,{children:(Ht,Vr)=>{var wt=It(),kt=F(wt);Ee(kt,()=>Et,(ut,vt)=>{vt(ut,{children:(_t,Jt)=>{var Qe=Cr(),ot=S(Qe);g(()=>m(ot,`$${e(Ne).name??""}`)),o(_t,Qe)},$$slots:{default:!0}})});var Yt=n(kt,2);Ee(Yt,()=>Tt,(ut,vt)=>{vt(ut,{side:"top",class:"max-w-xs",children:(_t,Jt)=>{var Qe=Er(),ot=F(Qe),Qt=S(ot,!0),Xt=n(ot,2),Zt=S(Xt,!0);g(()=>{m(Qt,e(Ne).description),m(Zt,e(Ne).example)}),o(_t,Qe)},$$slots:{default:!0}})}),o(Ht,wt)},$$slots:{default:!0}})}),o(re,We)}),l(Y),o(ne,Y)},$$slots:{default:!0}})}),o(A,oe)};W(V,A=>{e(Ie)&&A(Z)})}l(X),o(y,d)};W(ve,y=>{e(J)&&U()?y(I):y(O,-1)})}g(y=>{Ue(f,1,gt(_e.title),"svelte-1yy464i"),m(x,y),m(D,e(Me))},[()=>u.workspace_setupScriptPicker_commands_label()]),o(h,$)};W(w,h=>{e(ke)?h(T,-1):h(j)})}l(a),xt(a,h=>r(Ye,h),()=>e(Ye)),g(()=>Ue(a,1,`${_e.rows} min-w-0`,"svelte-1yy464i")),o(t,a)},Ge=t=>{var a=Ur(),w=F(a),j=c(w),T=S(j,!0),h=n(j,2),$=S(h,!0),_=n(h,2);{var i=d=>{var p=Ke(),N=c(p);St(N,{get repoPath(){return U()},onScriptGenerated:X=>{r(se,!0),r(s,""),C(X.content),r(E,X.name,!0),r(v,!0),de()?.(C()),r(J,!1),requestAnimationFrame(()=>e(pe)?.focus())},onClose:()=>r(J,!1)}),l(p),Oe(3,p,()=>Ze,()=>({tier:"moderate"})),o(d,p)},f=d=>{{let p=M(()=>!U());we(d,{variant:"ghost",size:"sm",class:"w-full justify-start text-subtle",onclick:()=>r(J,!0),get disabled(){return e(p)},children:(N,X)=>{var H=Ir(),V=F(H);Te(V,{get icon(){return Pt},class:"mr-1.5"});var Z=n(V);g(A=>m(Z,` ${A??""}`),[()=>u.workspace_setupScriptEditor_autoGenerate_label()]),o(N,H)},$$slots:{default:!0}})}};W(_,d=>{e(J)&&U()?d(i):d(f,-1)})}l(w);var x=n(w,2);{var k=d=>{var p=Ft(),N=c(p),X=S(N,!0),H=n(N,2);{let V=M(()=>e(s)===qe),Z=M(()=>e(s)===qe);we(H,{variant:"ghost",truncateLabel:!1,get active(){return e(V)},get"aria-pressed"(){return e(Z)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(qe),children:(A,oe)=>{var L=Nt(),ee=c(L),te=S(ee,!0),ne=n(ee,2),Ce=S(ne,!0);l(L),g((Y,re)=>{m(te,Y),m(Ce,re)},[()=>tt(it,"repo-config"),()=>u.workspace_setupScriptEditor_repoConfig_description()]),o(A,L)},$$slots:{default:!0}})}l(p),g(V=>m(X,V),[()=>u.workspace_setupScriptEditor_repoConfig_label()]),o(d,p)};W(x,d=>{le()&&d(k)})}var D=n(x,2);{var ue=d=>{var p=Ft(),N=c(p),X=S(N,!0),H=n(N,2);{let V=M(()=>e(s)===B),Z=M(()=>e(s)===B);we(H,{variant:"ghost",truncateLabel:!1,get active(){return e(V)},get"aria-pressed"(){return e(Z)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(B),children:(A,oe)=>{var L=Nt(),ee=c(L),te=S(ee,!0),ne=n(ee,2),Ce=S(ne,!0);l(L),g((Y,re)=>{m(te,Y),m(Ce,re)},[()=>tt(e(z).name,e(z).nameSource),()=>u.workspace_setupScriptEditor_lastUsed_description()]),o(A,L)},$$slots:{default:!0}})}l(p),g(V=>m(X,V),[()=>u.workspace_setupScriptEditor_lastUsed_label()]),o(d,p)};W(D,d=>{e(z)&&d(ue)})}var ve=n(D,2),I=c(ve),O=S(I,!0),y=n(I,2);Xe(y,17,()=>et,d=>d.id,(d,p)=>{{let N=M(()=>e(s)===`template-${e(p).id}`),X=M(()=>e(s)===`template-${e(p).id}`);we(d,{variant:"ghost",truncateLabel:!1,get active(){return e(N)},get"aria-pressed"(){return e(X)},class:"w-full h-auto justify-start whitespace-normal text-left px-2 py-1.5",onclick:()=>ye(`template-${e(p).id}`),children:(H,V)=>{var Z=Fr(),A=c(Z),oe=c(A),L=S(oe,!0),ee=n(oe,2);{var te=Y=>{var re=Nr(),Ne=S(re,!0);g(We=>m(Ne,We),[()=>u.workspace_setupScriptEditor_recommended_label()]),o(Y,re)};W(ee,Y=>{e(p).projectType===ie()&&Y(te)})}l(A);var ne=n(A,2),Ce=S(ne,!0);l(Z),g(()=>{m(L,e(p).name),m(Ce,e(p).description)}),o(H,Z)},$$slots:{default:!0}})}}),l(ve),g((d,p,N)=>{m(T,d),m($,p),m(O,N)},[()=>u.workspace_setupScriptEditor_generate_label(),()=>u.workspace_setupScriptEditor_generate_description(),()=>u.workspace_setupScriptEditor_templates_label()]),o(t,a)},Re=t=>{var a=Rr(),w=F(a),j=c(w),T=S(j,!0),h=n(j,2);Xe(h,21,()=>jt,i=>i.name,(i,f)=>{var x=Fe(),k=F(x);Ee(k,()=>At,(D,ue)=>{ue(D,{delayDuration:100,children:(ve,I)=>{var O=Fe(),y=F(O);Ee(y,()=>Ct,(d,p)=>{p(d,{delayDuration:100,children:(N,X)=>{var H=It(),V=F(H);Ee(V,()=>Et,(A,oe)=>{oe(A,{children:(L,ee)=>{var te=Or(),ne=S(te);g(()=>m(ne,`$${e(f).name??""}`)),o(L,te)},$$slots:{default:!0}})});var Z=n(V,2);Ee(Z,()=>Tt,(A,oe)=>{oe(A,{side:"bottom",class:"max-w-xs z-[200]",children:(L,ee)=>{var te=Gr(),ne=F(te),Ce=S(ne,!0),Y=n(ne,2),re=c(Y),Ne=n(re),We=S(Ne,!0);l(Y),g(pt=>{m(Ce,e(f).description),m(re,`${pt??""} `),m(We,e(f).example)},[()=>u.workspace_setupScriptEditor_example_before()]),o(L,te)},$$slots:{default:!0}})}),o(N,H)},$$slots:{default:!0}})}),o(ve,O)},$$slots:{default:!0}})}),o(i,x)}),l(h),l(w);var $=n(w,2),_=c($);xt(ht(_,{language:"shell",lineNumbers:!0,get lineWrapping(){return e(Se)},get value(){return C()},set value(i){C(i)}}),i=>r(pe,i,!0),()=>e(pe)),l($),g(i=>m(T,i),[()=>u.workspace_setupScriptEditor_variables_label()]),ar("keydown",$,i=>{i.altKey&&i.key==="z"&&(i.preventDefault(),r(Se,!e(Se)))}),o(t,a)},ze=t=>{var a=Ke(),w=c(a);{var j=h=>{var $=zr(),_=F($),i=c(_);Ge(i),l(_);var f=n(_,2),x=c(f);Re(x),l(f),Oe(1,_,()=>$t,()=>({tier:"moderate",axis:"x",distance:-8})),Oe(1,f,()=>$t,()=>({tier:"moderate",axis:"x"})),o(h,$)},T=h=>{var $=Dr(),_=F($),i=c(_);Ge(i),l(_);var f=n(_,2),x=c(f);Re(x),l(f),o(h,$)};W(w,h=>{he()==="workspace"?h(j):h(T,-1)})}l(a),g(()=>Ue(a,1,gt(he()==="workspace"?"setup-workspace-layout":"grid flex-1 min-h-0 min-w-0 grid-cols-1 grid-rows-[minmax(0,1fr)_minmax(0,2fr)] md:grid-cols-[minmax(0,2fr)_minmax(0,3fr)] md:grid-rows-1"),"svelte-1yy464i")),o(t,a)};let U=G(P,"repoPath",7,""),ae=G(P,"repositoryKey",7),me=G(P,"githubUrl",7,null),ie=G(P,"projectType",7,void 0),le=G(P,"repoConfigScript",7,null),C=G(P,"value",15,""),fe=G(P,"expanded",15,!1),ge=G(P,"scriptName",31,()=>rt(u.workspace_setupScriptEditor_custom_name())),ce=G(P,"scriptNameSource",15,"named"),xe=G(P,"isCustomScript",15,!1),be=G(P,"compact",7,!1),De=G(P,"triggerClass",7,""),Le=G(P,"contentOnly",7,!1),je=G(P,"contentClass",7,""),he=G(P,"presentation",7,"editor"),de=G(P,"onchange",7),J=K(!1),ke=K(rt(mt(()=>xe()))),$e=K(!1),Ie=K(!1),Ye=K(void 0),pe=K(void 0),s=K(""),v=K(!1),E=K(rt(ge())),q=K(rt(ce())),se=K(!1);const B="last-used",z=M(()=>{const t=ae()??U(),a=t?gr(t,me()):void 0;return a?.nameSource==="repo-config"?{...a,name:"Custom",nameSource:"custom"}:a}),Q=M(()=>{const t=new Map;return le()&&t.set(qe,{content:le(),label:it,source:"repo-config"}),e(z)&&t.set(B,{content:e(z).content,label:e(z).name,source:e(z).nameSource}),et.forEach(a=>{t.set(`template-${a.id}`,{content:fr(a),label:a.name,source:"named"})}),t});let Se=K(!0);const Me=M(()=>{if(e(v))return tt(e(E),e(q));if(!e(s))return u.workspace_setupScriptEditor_custom_name();const t=e(Q).get(e(s));return t?tt(t.label,t.source):u.workspace_setupScriptEditor_custom_name()});function ye(t){r(s,t,!0),r(v,!1),r(se,!0);const a=e(Q).get(t);a&&(C(a.content),r(E,a.label,!0),r(q,a.source,!0),de()?.(C())),he()==="picker"?(r(ke,!1),r($e,!1),requestAnimationFrame(()=>e(Ye)?.querySelector("[data-setup-source][aria-pressed=true]")?.focus())):requestAnimationFrame(()=>e(pe)?.focus())}function lt(t){if(e(s)&&e(s)!=="none"){const a=e(Q).get(e(s));a&&r(v,t!==a.content)}else t&&r(v,!0)}const Pe=(()=>{const t=et.find(a=>a.id==="generic");return t?`template-${t.id}`:""})(),st=M(()=>e(v)||!e(s)?"custom":e(s)),Je=M(()=>{const t=[];le()&&t.push({id:qe,name:tt(it,"repo-config")}),e(z)&&t.push({id:B,name:u.workspace_setupScriptEditor_lastUsed_label()});for(const a of et){const w=`template-${a.id}`;(w===Pe||w===e(s))&&t.push({id:w,name:a.name})}return t.push({id:"custom",name:u.workspace_setupScriptPicker_custom_label()}),t}),ct=M(()=>et.filter(t=>!e(Je).some(a=>a.id===`template-${t.id}`)));function Dt(){r(s,""),r(v,!0),r(E,"Custom"),r(q,"custom"),r(J,!1),r(ke,!0),requestAnimationFrame(()=>e(pe)?.focus())}function Lt(t){r(se,!0),r(s,""),C(t.content),r(E,t.name,!0),r(q,"named"),r(v,!0),de()?.(C()),r(J,!1),requestAnimationFrame(()=>e(pe)?.focus())}let dt=K(null);ft(()=>{const t=ae()??U();if(t===e(dt))return;const a=e(dt)===null&&(xe()||C().trim().length>0);if(r(dt,t,!0),a){mt(()=>{let T=!1;const h=C().trim();for(const[$,_]of e(Q).entries())if(h===_.content.trim()&&_.source===ce()&&_.label===ge()){r(s,$,!0),r(E,_.label,!0),r(q,_.source,!0),r(v,!1),T=!0;break}T||(r(v,!0),e(E)||(r(E,ge()||u.workspace_setupScriptEditor_custom_name(),!0),r(q,ge()?ce():"named",!0))),r(se,!0)});return}const w=!!le(),j=e(z);if(mt(()=>{if(r(v,!1),r(se,!0),w)r(s,qe,!0),r(E,it,!0),r(q,"repo-config");else if(j)r(s,B),r(E,j.name,!0),r(q,j.nameSource,!0);else if(Pe){r(s,Pe,!0);const T=e(Q).get(Pe);r(E,T?.label||u.workspace_setupScriptEditor_custom_name(),!0),r(q,"named")}else r(E,u.workspace_setupScriptEditor_custom_name(),!0),r(q,"named")}),w&&le())C(le()),de()?.(C());else if(j)C(j.content),de()?.(C());else if(Pe){const T=e(Q).get(Pe);T&&(C(T.content),de()?.(C()))}}),ft(()=>{if(e(se)){r(se,!1);return}C()!==void 0&&lt(C())}),ft(()=>{ge(e(E)),ce(e(q)),xe(e(v))});var Mt={get repoPath(){return U()},set repoPath(t=""){U(t),R()},get repositoryKey(){return ae()},set repositoryKey(t){ae(t),R()},get githubUrl(){return me()},set githubUrl(t=null){me(t),R()},get projectType(){return ie()},set projectType(t=void 0){ie(t),R()},get repoConfigScript(){return le()},set repoConfigScript(t=null){le(t),R()},get value(){return C()},set value(t=""){C(t),R()},get expanded(){return fe()},set expanded(t=!1){fe(t),R()},get scriptName(){return ge()},set scriptName(t=u.workspace_setupScriptEditor_custom_name()){ge(t),R()},get scriptNameSource(){return ce()},set scriptNameSource(t="named"){ce(t),R()},get isCustomScript(){return xe()},set isCustomScript(t=!1){xe(t),R()},get compact(){return be()},set compact(t=!1){be(t),R()},get triggerClass(){return De()},set triggerClass(t=""){De(t),R()},get contentOnly(){return Le()},set contentOnly(t=!1){Le(t),R()},get contentClass(){return je()},set contentClass(t=""){je(t),R()},get presentation(){return he()},set presentation(t="editor"){he(t),R()},get onchange(){return de()},set onchange(t){de(t),R()},$set:Ot,$on:(t,a)=>Gt(P,t,a)},yt=Fe(),Wt=F(yt);{var qt=t=>{var a=Fe(),w=F(a);{var j=T=>{var h=Fe(),$=F(h);{var _=x=>{var k=Ke(),D=c(k);Ae(D),l(k),g(()=>Ue(k,1,`${je()??""} min-w-0`,"svelte-1yy464i")),o(x,k)},i=x=>{var k=Ke(),D=c(k);ze(D),l(k),g(()=>Ue(k,1,`${je()??""} flex min-h-0 min-w-0 flex-1 flex-col`,"svelte-1yy464i")),o(x,k)},f=x=>{var k=Ke(),D=c(k);ze(D),l(k),g(()=>Ue(k,1,`${je()??""} flex flex-col gap-3 flex-1 min-h-0 min-w-0`,"svelte-1yy464i")),Oe(3,k,()=>Ze,()=>({tier:"moderate"})),o(x,k)};W($,x=>{he()==="picker"?x(_):he()==="workspace"?x(i,1):x(f,-1)})}o(T,h)};W(w,T=>{fe()&&T(j)})}o(t,a)},Kt=t=>{var a=qr(),w=F(a),j=c(w);we(j,{variant:"ghost",size:"sm",get class(){return`whitespace-nowrap hover:text-inherit! ${De()??""}`},onclick:()=>fe(!fe()),children:(i,f)=>{var x=Lr(),k=F(x);Te(k,{get icon(){return bt},size:"xs"});var D=n(k,2),ue=S(D,!0),ve=n(D,2),I=S(ve,!0);g(O=>{m(ue,O),m(I,e(Me))},[()=>u.workspace_setupScriptEditor_setupScript_label()]),o(i,x)},$$slots:{default:!0}});var T=n(j,2);{var h=i=>{var f=Mr(),x=c(f);ze(x),l(f),Oe(3,f,()=>Ze,()=>({tier:"moderate"})),o(i,f)};W(T,i=>{fe()&&!be()&&i(h)})}l(w);var $=n(w,2);{var _=i=>{var f=Wr(),x=c(f);ze(x),l(f),Oe(3,f,()=>Ze,()=>({tier:"moderate"})),o(i,f)};W($,i=>{fe()&&be()&&i(_)})}g(()=>Ue(w,1,gt(be()?"":"w-full"))),o(t,a)};W(Wt,t=>{Le()?t(qt):t(Kt,-1)})}return o(He,yt),zt(Mt)}rr(["keydown"]);export{Kr as default};
@@ -1 +1 @@
1
- import{s as r,a as s,c as e,C as t}from"./CDT1G70y.js";import{f as l}from"./BejAw64w.js";var d={parser:e,get db(){return new t},renderer:s,styles:r,init:l(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")};export{d as diagram};
1
+ import{s as r,a as s,c as e,C as t}from"./BpOXeNkx.js";import{f as l}from"./LhLTjc8B.js";var d={parser:e,get db(){return new t},renderer:s,styles:r,init:l(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")};export{d as diagram};
@@ -1 +1 @@
1
- import{t as a3,bq as p,a_ as I,by as t3,b as s3}from"./sMg7Lxjd.js";import{bs as r3,a5 as l3,aD as t,bA as L,b_ as v,W as m,bn as o3,c9 as o,bV as S,aA as u,ay as n3,bS as i3,aw as N,bz as c3,bl as Z,bO as A,aB as f,bH as B}from"./B8o4lNgr.js";import{Q as v3}from"./CjKcpWyx.js";import{k as _,l as x,s as F}from"./CsvDcicf.js";import{F as m3,aP as f3,aH as g3,aX as p3,cl as u3,am as d3}from"./DGPqSlym.js";var h3=f("<div></div>"),b3=f('<span class="type-caption absolute text-subtle font-medium"> </span>'),w3=f("<img/> <!>",1),C3=f('<span class="type-caption text-subtle font-medium"> </span>'),_3=f("<div><!></div>");function x3(y,n){if(new.target)return a3({component:x3,...y});r3(n,!0);let r=p(n,"iconName",7),i=p(n,"label",7),l=p(n,"size",7,20),d=p(n,"class",7,"");const j={redis:"redis",mongodb:"mongodb",circleci:"circleci",vercel:"vercel",railway:"railway",convex:"convex",snowflake:"snowflake",sentry:"sentry",figma:"figma",github:"github",linear:"linear"},D={figma:"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Figma-logo.svg/960px-Figma-logo.svg.png",playwright:"https://ray.run/playwright-brand-assets/playwright-logo.svg"},E={context7:'<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 0C26.2091 0 28 1.79086 28 4V24C28 26.2091 26.2091 28 24 28H4C1.79086 28 0 26.2091 0 24V4C0 1.79086 1.79086 0 4 0H24ZM8.58008 15.2559C8.58008 17.8621 7.95482 19.3557 6.33398 21.1885V22.7783H11.6309V21.1045H8.17773C9.66098 19.3776 10.5723 17.5019 10.5723 15.2559H8.58008ZM17.4268 15.2559C17.4268 17.5019 18.338 19.3776 19.8213 21.1045H16.3672V22.7783H21.6641V21.1885C20.0433 19.3558 19.4189 17.862 19.4189 15.2559H17.4268ZM6.33398 6.80957C7.95495 8.64244 8.58008 10.137 8.58008 12.7432H10.5713C10.5713 10.4972 9.66094 8.62143 8.17773 6.89453H11.6309V5.2207H6.33398V6.80957ZM16.3672 5.2207V6.89453H19.8213C18.338 8.62145 17.4268 10.4972 17.4268 12.7432H19.4189C19.4189 10.137 20.0432 8.64242 21.6641 6.80957V5.2207H16.3672Z" fill="black"/></svg>',slack:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path d="M27.255 80.719c0 7.33-5.978 13.317-13.309 13.317C6.616 94.036.63 88.049.63 80.719s5.987-13.317 13.317-13.317h13.309zm6.709 0c0-7.33 5.987-13.317 13.317-13.317s13.317 5.986 13.317 13.317v33.335c0 7.33-5.986 13.317-13.317 13.317-7.33 0-13.317-5.987-13.317-13.317zm0 0" fill="#de1c59"/><path d="M47.281 27.255c-7.33 0-13.317-5.978-13.317-13.309C33.964 6.616 39.951.63 47.281.63s13.317 5.987 13.317 13.317v13.309zm0 6.709c7.33 0 13.317 5.987 13.317 13.317s-5.986 13.317-13.317 13.317H13.946C6.616 60.598.63 54.612.63 47.281c0-7.33 5.987-13.317 13.317-13.317zm0 0" fill="#35c5f0"/><path d="M100.745 47.281c0-7.33 5.978-13.317 13.309-13.317 7.33 0 13.317 5.987 13.317 13.317s-5.987 13.317-13.317 13.317h-13.309zm-6.709 0c0 7.33-5.987 13.317-13.317 13.317s-13.317-5.986-13.317-13.317V13.946C67.402 6.616 73.388.63 80.719.63c7.33 0 13.317 5.987 13.317 13.317zm0 0" fill="#2eb57d"/><path d="M80.719 100.745c7.33 0 13.317 5.978 13.317 13.309 0 7.33-5.987 13.317-13.317 13.317s-13.317-5.987-13.317-13.317v-13.309zm0-6.709c-7.33 0-13.317-5.987-13.317-13.317s5.986-13.317 13.317-13.317h33.335c7.33 0 13.317 5.986 13.317 13.317 0 7.33-5.987 13.317-13.317 13.317zm0 0" fill="#ebb02e"/></svg>'},U=new Set(["context7","github","linear"]),h={brain:d3,server:u3,database:p3,cloud:g3,default:f3},H=o(()=>j[r().toLowerCase()]),W=o(()=>h[r().toLowerCase()]||h.default),z=o(()=>E[r().toLowerCase()]||null),M=o(()=>U.has(r().toLowerCase()));let b=S(!1),k=S(!1);const V=o(()=>D[r().toLowerCase()]||(t(H)?`https://cdn.simpleicons.org/${t(H)}`:null));function q(){B(b,!0)}function O(){B(k,!0)}var P={get iconName(){return r()},set iconName(e){r(e),u()},get label(){return i()},set label(e){i(e),u()},get size(){return l()},set size(e=20){l(e),u()},get class(){return d()},set class(e=""){d(e),u()},$set:t3,$on:(e,a)=>s3(n,e,a)},c=_3(),Q=l3(c);{var X=e=>{var a=h3();v3(a,()=>t(z),!0),L(a),v(()=>_(a,1,`w-full h-full flex items-center justify-center [&>svg]:w-full [&>svg]:h-full ${t(M)?"dark:invert":""}`)),m(e,a)},G=e=>{var a=w3(),s=n3(a);let g;var T=i3(s,2);{var Y=w=>{var C=b3(),$=Z(C,!0);v(e3=>{x(C,`font-size: ${l()*.45}px;`),A($,e3)},[()=>i().charAt(0)]),m(w,C)};I(T,w=>{t(b)||w(Y)})}v(()=>{F(s,"src",t(V)),F(s,"alt",i()),g=_(s,1,`w-full h-full object-contain ${t(M)?"dark:invert":""}`,null,g,{"opacity-0":!t(b)})}),N("load",s,q),N("error",s,O),c3(s),m(e,a)},J=e=>{{let a=o(()=>l()*.7);m3(e,{get icon(){return t(W)},class:"text-ghost",get style(){return`font-size: ${t(a)??""}px;`}})}},K=o(()=>h[r().toLowerCase()]),R=e=>{var a=C3(),s=Z(a,!0);v(g=>{x(a,`font-size: ${l()*.45}px;`),A(s,g)},[()=>i().charAt(0)]),m(e,a)};I(Q,e=>{t(z)?e(X):t(V)&&!t(k)?e(G,1):t(K)?e(J,2):e(R,-1)})}return L(c),v(()=>{_(c,1,`flex items-center justify-center shrink-0 ${d()??""}`),x(c,`width: ${l()??""}px; height: ${l()??""}px;`)}),m(y,c),o3(P)}export{x3 as M};
1
+ import{t as a3,bq as p,a_ as I,by as t3,b as s3}from"./CgPr4hs2.js";import{bs as r3,a5 as l3,aD as t,bA as L,b_ as v,W as m,bn as o3,c9 as o,bV as S,aA as u,ay as n3,bS as i3,aw as N,bz as c3,bl as Z,bO as A,aB as f,bH as B}from"./B8o4lNgr.js";import{Q as v3}from"./CfV9aH5z.js";import{k as _,l as x,s as F}from"./CsstSIr0.js";import{F as m3,aP as f3,aH as g3,aX as p3,cl as u3,am as d3}from"./B7NNbItI.js";var h3=f("<div></div>"),b3=f('<span class="type-caption absolute text-subtle font-medium"> </span>'),w3=f("<img/> <!>",1),C3=f('<span class="type-caption text-subtle font-medium"> </span>'),_3=f("<div><!></div>");function x3(y,n){if(new.target)return a3({component:x3,...y});r3(n,!0);let r=p(n,"iconName",7),i=p(n,"label",7),l=p(n,"size",7,20),d=p(n,"class",7,"");const j={redis:"redis",mongodb:"mongodb",circleci:"circleci",vercel:"vercel",railway:"railway",convex:"convex",snowflake:"snowflake",sentry:"sentry",figma:"figma",github:"github",linear:"linear"},D={figma:"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/Figma-logo.svg/960px-Figma-logo.svg.png",playwright:"https://ray.run/playwright-brand-assets/playwright-logo.svg"},E={context7:'<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M24 0C26.2091 0 28 1.79086 28 4V24C28 26.2091 26.2091 28 24 28H4C1.79086 28 0 26.2091 0 24V4C0 1.79086 1.79086 0 4 0H24ZM8.58008 15.2559C8.58008 17.8621 7.95482 19.3557 6.33398 21.1885V22.7783H11.6309V21.1045H8.17773C9.66098 19.3776 10.5723 17.5019 10.5723 15.2559H8.58008ZM17.4268 15.2559C17.4268 17.5019 18.338 19.3776 19.8213 21.1045H16.3672V22.7783H21.6641V21.1885C20.0433 19.3558 19.4189 17.862 19.4189 15.2559H17.4268ZM6.33398 6.80957C7.95495 8.64244 8.58008 10.137 8.58008 12.7432H10.5713C10.5713 10.4972 9.66094 8.62143 8.17773 6.89453H11.6309V5.2207H6.33398V6.80957ZM16.3672 5.2207V6.89453H19.8213C18.338 8.62145 17.4268 10.4972 17.4268 12.7432H19.4189C19.4189 10.137 20.0432 8.64242 21.6641 6.80957V5.2207H16.3672Z" fill="black"/></svg>',slack:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><path d="M27.255 80.719c0 7.33-5.978 13.317-13.309 13.317C6.616 94.036.63 88.049.63 80.719s5.987-13.317 13.317-13.317h13.309zm6.709 0c0-7.33 5.987-13.317 13.317-13.317s13.317 5.986 13.317 13.317v33.335c0 7.33-5.986 13.317-13.317 13.317-7.33 0-13.317-5.987-13.317-13.317zm0 0" fill="#de1c59"/><path d="M47.281 27.255c-7.33 0-13.317-5.978-13.317-13.309C33.964 6.616 39.951.63 47.281.63s13.317 5.987 13.317 13.317v13.309zm0 6.709c7.33 0 13.317 5.987 13.317 13.317s-5.986 13.317-13.317 13.317H13.946C6.616 60.598.63 54.612.63 47.281c0-7.33 5.987-13.317 13.317-13.317zm0 0" fill="#35c5f0"/><path d="M100.745 47.281c0-7.33 5.978-13.317 13.309-13.317 7.33 0 13.317 5.987 13.317 13.317s-5.987 13.317-13.317 13.317h-13.309zm-6.709 0c0 7.33-5.987 13.317-13.317 13.317s-13.317-5.986-13.317-13.317V13.946C67.402 6.616 73.388.63 80.719.63c7.33 0 13.317 5.987 13.317 13.317zm0 0" fill="#2eb57d"/><path d="M80.719 100.745c7.33 0 13.317 5.978 13.317 13.309 0 7.33-5.987 13.317-13.317 13.317s-13.317-5.987-13.317-13.317v-13.309zm0-6.709c-7.33 0-13.317-5.987-13.317-13.317s5.986-13.317 13.317-13.317h33.335c7.33 0 13.317 5.986 13.317 13.317 0 7.33-5.987 13.317-13.317 13.317zm0 0" fill="#ebb02e"/></svg>'},U=new Set(["context7","github","linear"]),h={brain:d3,server:u3,database:p3,cloud:g3,default:f3},H=o(()=>j[r().toLowerCase()]),W=o(()=>h[r().toLowerCase()]||h.default),z=o(()=>E[r().toLowerCase()]||null),M=o(()=>U.has(r().toLowerCase()));let b=S(!1),k=S(!1);const V=o(()=>D[r().toLowerCase()]||(t(H)?`https://cdn.simpleicons.org/${t(H)}`:null));function q(){B(b,!0)}function O(){B(k,!0)}var P={get iconName(){return r()},set iconName(e){r(e),u()},get label(){return i()},set label(e){i(e),u()},get size(){return l()},set size(e=20){l(e),u()},get class(){return d()},set class(e=""){d(e),u()},$set:t3,$on:(e,a)=>s3(n,e,a)},c=_3(),Q=l3(c);{var X=e=>{var a=h3();v3(a,()=>t(z),!0),L(a),v(()=>_(a,1,`w-full h-full flex items-center justify-center [&>svg]:w-full [&>svg]:h-full ${t(M)?"dark:invert":""}`)),m(e,a)},G=e=>{var a=w3(),s=n3(a);let g;var T=i3(s,2);{var Y=w=>{var C=b3(),$=Z(C,!0);v(e3=>{x(C,`font-size: ${l()*.45}px;`),A($,e3)},[()=>i().charAt(0)]),m(w,C)};I(T,w=>{t(b)||w(Y)})}v(()=>{F(s,"src",t(V)),F(s,"alt",i()),g=_(s,1,`w-full h-full object-contain ${t(M)?"dark:invert":""}`,null,g,{"opacity-0":!t(b)})}),N("load",s,q),N("error",s,O),c3(s),m(e,a)},J=e=>{{let a=o(()=>l()*.7);m3(e,{get icon(){return t(W)},class:"text-ghost",get style(){return`font-size: ${t(a)??""}px;`}})}},K=o(()=>h[r().toLowerCase()]),R=e=>{var a=C3(),s=Z(a,!0);v(g=>{x(a,`font-size: ${l()*.45}px;`),A(s,g)},[()=>i().charAt(0)]),m(e,a)};I(Q,e=>{t(z)?e(X):t(V)&&!t(k)?e(G,1):t(K)?e(J,2):e(R,-1)})}return L(c),v(()=>{_(c,1,`flex items-center justify-center shrink-0 ${d()??""}`),x(c,`width: ${l()??""}px; height: ${l()??""}px;`)}),m(y,c),o3(P)}export{x3 as M};
@@ -1 +1 @@
1
- import{g as p,r as u,d as n}from"./rJ19sxRo.js";import{p as f}from"./CtGY50_e.js";import{M as c,c as d}from"./CEuCjemc.js";import{a,ad as o}from"./D2zf67XA.js";import"./BejAw64w.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},B={parser:R,db:n,renderer:u,styles:p};export{B as diagram};
1
+ import{g as p,r as u,d as n}from"./BvtLLvEi.js";import{p as f}from"./Ccxm74iK.js";import{M as c,c as d}from"./DZyz0CaB.js";import{a,ad as o}from"./bAWH0D1a.js";import"./LhLTjc8B.js";var v=d().RailroadAbnf.parser.LangiumParser,i=a(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=a(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=a(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=a(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=a(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=a(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=a(e=>{f(e,n),e.title&&n.setTitle(e.title),e.rules.map(r=>n.addRule(P(r)))},"populateDb"),R={parse:a(e=>{n.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:n}},B={parser:R,db:n,renderer:u,styles:p};export{B as diagram};