@intent-hq/web 2.289.0 → 2.290.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{BiN4BvQG.js → 1RFrLNza.js} +1 -1
  3. package/web/app/immutable/chunks/{BCvaSKdY.js → 1yYrVIcH.js} +1 -1
  4. package/web/app/immutable/chunks/{13AmrEpa.js → 2Zse_zlb.js} +1 -1
  5. package/web/app/immutable/chunks/{DjyFgI1x.js → 2p97_N8F.js} +1 -1
  6. package/web/app/immutable/chunks/{CM-42I4J.js → 3Hx-xwhh.js} +1 -1
  7. package/web/app/immutable/chunks/{Bs0OTveI.js → 4YAlYQZK.js} +1 -1
  8. package/web/app/immutable/chunks/{DLOCpz5P.js → 7-JV_YuQ.js} +1 -1
  9. package/web/app/immutable/chunks/{CLqc4Ghh.js → 7bnNetCh.js} +4 -4
  10. package/web/app/immutable/chunks/{DwxN7Wdi.js → 8pTk55sx.js} +1 -1
  11. package/web/app/immutable/chunks/{h6LfsnBK.js → 9mpJnkDG.js} +1 -1
  12. package/web/app/immutable/chunks/{DuMYTc8Y.js → AZdZd6y3.js} +1 -1
  13. package/web/app/immutable/chunks/{KrEm5AbS.js → B-CzqeN8.js} +1 -1
  14. package/web/app/immutable/chunks/{CaHA2ESe.js → B-vv1agI.js} +1 -1
  15. package/web/app/immutable/chunks/{BSmsRx9G.js → B0Prdf3M.js} +1 -1
  16. package/web/app/immutable/chunks/{Z-nmDTPH.js → B10IM79i.js} +1 -1
  17. package/web/app/immutable/chunks/{CUTHTUjs.js → B2D_mcko.js} +1 -1
  18. package/web/app/immutable/chunks/{DGPqSlym.js → B7NNbItI.js} +1 -1
  19. package/web/app/immutable/chunks/{CVwFZDMQ.js → BA5dsrgI.js} +1 -1
  20. package/web/app/immutable/chunks/{C3XlBsuD.js → BA6v9DYL.js} +1 -1
  21. package/web/app/immutable/chunks/{CWwfm7Sc.js → BBBIudrX.js} +1 -1
  22. package/web/app/immutable/chunks/{BlUnlsOK.js → BDn01g3q.js} +51 -51
  23. package/web/app/immutable/chunks/{DzpyprB1.js → BEN2zFww.js} +1 -1
  24. package/web/app/immutable/chunks/{COYb5Q2j.js → BEOSERRe.js} +1 -1
  25. package/web/app/immutable/chunks/{CRPPupd6.js → BFY95MZy.js} +1 -1
  26. package/web/app/immutable/chunks/{Da9J2JX1.js → BG92xiA-.js} +1 -1
  27. package/web/app/immutable/chunks/{l18fXbdG.js → BGG3Zscy.js} +2 -2
  28. package/web/app/immutable/chunks/{CkLmMloL.js → BIRD3ESe.js} +1 -1
  29. package/web/app/immutable/chunks/{CBLL08sm.js → BJClJd-t.js} +1 -1
  30. package/web/app/immutable/chunks/{bJKJaeMz.js → BJarmryO.js} +1 -1
  31. package/web/app/immutable/chunks/{CF6Nr1sW.js → BKANDKfj.js} +1 -1
  32. package/web/app/immutable/chunks/{FBhib8LQ.js → BL_sVoge.js} +1 -1
  33. package/web/app/immutable/chunks/{CF8O1pc4.js → BLfTJyKw.js} +1 -1
  34. package/web/app/immutable/chunks/{B-CmW-Rt.js → BMAdQvY4.js} +1 -1
  35. package/web/app/immutable/chunks/{DfacsTaO.js → BORhTadA.js} +1 -1
  36. package/web/app/immutable/chunks/{BuNDx2oQ.js → BOV2yVmE.js} +1 -1
  37. package/web/app/immutable/chunks/{Cgu6cLKT.js → BRqvd9LR.js} +1 -1
  38. package/web/app/immutable/chunks/{BgLK_ncR.js → BSg7eLHt.js} +1 -1
  39. package/web/app/immutable/chunks/{DmeSNHl2.js → BSqZ5g0_.js} +1 -1
  40. package/web/app/immutable/chunks/{gbA3Idh4.js → BUGkkCym.js} +6 -6
  41. package/web/app/immutable/chunks/{BppZZR6X.js → BU_GHz5Q.js} +1 -1
  42. package/web/app/immutable/chunks/{a305huOc.js → BVxQ-eUq.js} +1 -1
  43. package/web/app/immutable/chunks/{BR8wCCqs.js → BX_hW0qI.js} +1 -1
  44. package/web/app/immutable/chunks/{C2WwiwWs.js → BXzaNdSF.js} +1 -1
  45. package/web/app/immutable/chunks/{CArnO8CD.js → BYCiS1o9.js} +3 -3
  46. package/web/app/immutable/chunks/{B5xbJc9W.js → BZrxWDyC.js} +1 -1
  47. package/web/app/immutable/chunks/{OJ1L_5qb.js → B_tLm3FX.js} +1 -1
  48. package/web/app/immutable/chunks/{Db3BHa7z.js → BaL0o0Td.js} +1 -1
  49. package/web/app/immutable/chunks/{1KqMO8DA.js → BbTuJlco.js} +1 -1
  50. package/web/app/immutable/chunks/{D1zpsxCF.js → Bbg7YJDS.js} +1 -1
  51. package/web/app/immutable/chunks/{CW9o0MGu.js → Bc1TTOKX.js} +1 -1
  52. package/web/app/immutable/chunks/{-Vbe26cE.js → BcidqQDh.js} +1 -1
  53. package/web/app/immutable/chunks/{BAhFveyJ.js → BeUBep3b.js} +1 -1
  54. package/web/app/immutable/chunks/{rJ19sxRo.js → BeZSE8qD.js} +1 -1
  55. package/web/app/immutable/chunks/{BulSFF-a.js → BeteiAtg.js} +1 -1
  56. package/web/app/immutable/chunks/{rZp3PWdq.js → Bg4Uz_3j.js} +1 -1
  57. package/web/app/immutable/chunks/{DswUZY33.js → BiFqz5BS.js} +1 -1
  58. package/web/app/immutable/chunks/{DFAvh56i.js → Bjha4wuc.js} +1 -1
  59. package/web/app/immutable/chunks/{IjnClLwt.js → Bk3MUF5Z.js} +1 -1
  60. package/web/app/immutable/chunks/{DVs38eSu.js → Bm0FPS2G.js} +4 -4
  61. package/web/app/immutable/chunks/{CGkp_Cwy.js → BmUlDo2H.js} +1 -1
  62. package/web/app/immutable/chunks/{DTbYuW0t.js → BmiNxvpC.js} +1 -1
  63. package/web/app/immutable/chunks/{jS3iGRMB.js → Bmk9ow9D.js} +1 -1
  64. package/web/app/immutable/chunks/{BnSQjI9U.js → Bn3UQ-Cp.js} +1 -1
  65. package/web/app/immutable/chunks/{CaJKv7d6.js → Bo4f3vLH.js} +1 -1
  66. package/web/app/immutable/chunks/{2R1NzPTD.js → BqoQHFLV.js} +1 -1
  67. package/web/app/immutable/chunks/Bs9Hbccv.js +1 -0
  68. package/web/app/immutable/chunks/{DYZQjWbl.js → Bsgnuc3k.js} +1 -1
  69. package/web/app/immutable/chunks/{BMtE4svi.js → BuPFKHtN.js} +1 -1
  70. package/web/app/immutable/chunks/{Dy2xsFvf.js → BuUX281b.js} +1 -1
  71. package/web/app/immutable/chunks/{B3II5C5l.js → BvWLkg--.js} +1 -1
  72. package/web/app/immutable/chunks/{ClIwbXJq.js → BwTgppku.js} +1 -1
  73. package/web/app/immutable/chunks/{CtGY50_e.js → Bx7BNLnp.js} +1 -1
  74. package/web/app/immutable/chunks/{1kMmRwXf.js → BxiHCJA9.js} +1 -1
  75. package/web/app/immutable/chunks/{CamLX2Sb.js → C17qLLZy.js} +1 -1
  76. package/web/app/immutable/chunks/{BelvDbq4.js → C1oWz50Y.js} +3 -3
  77. package/web/app/immutable/chunks/C1pLdIna.js +1 -0
  78. package/web/app/immutable/chunks/{Dmq8N6LI.js → C1r6VU8i.js} +2 -2
  79. package/web/app/immutable/chunks/{BpZ--9ga.js → C1vv_LrD.js} +1 -1
  80. package/web/app/immutable/chunks/{V68rWC50.js → C28hhXd4.js} +1 -1
  81. package/web/app/immutable/chunks/{Bg4MuTWX.js → C2VPDjeo.js} +1 -1
  82. package/web/app/immutable/chunks/{CylTfPZk.js → C5qvCE4M.js} +1 -1
  83. package/web/app/immutable/chunks/{DmLTqLLV.js → C6dKjZk_.js} +1 -1
  84. package/web/app/immutable/chunks/{C5paQyk5.js → C6rJFcL9.js} +1 -1
  85. package/web/app/immutable/chunks/{Q09YKVwy.js → C94wEIre.js} +1 -1
  86. package/web/app/immutable/chunks/{cv4xg7k0.js → C9hosAov.js} +1 -1
  87. package/web/app/immutable/chunks/{CUpXgpcF.js → C9tAiYT0.js} +1 -1
  88. package/web/app/immutable/chunks/{B7y27fC-.js → CAoXCf6s.js} +1 -1
  89. package/web/app/immutable/chunks/{y_-PH3Cn.js → CB3E3AyJ.js} +1 -1
  90. package/web/app/immutable/chunks/{D1yGasR4.js → CB5rZSQk.js} +1 -1
  91. package/web/app/immutable/chunks/{DZC7segB.js → CBQ9Dj27.js} +1 -1
  92. package/web/app/immutable/chunks/{CvHIPf4O.js → CBeBcrFe.js} +1 -1
  93. package/web/app/immutable/chunks/{Ev7NI-4B.js → CC2jdDPt.js} +1 -1
  94. package/web/app/immutable/chunks/{Cm72nCq-.js → CD6znF_9.js} +1 -1
  95. package/web/app/immutable/chunks/{CG_nXeYa.js → CDc4alpJ.js} +1 -1
  96. package/web/app/immutable/chunks/{gdAnsrdj.js → CE7ZtQHh.js} +1 -1
  97. package/web/app/immutable/chunks/{DXRlnb97.js → CFBH989r.js} +1 -1
  98. package/web/app/immutable/chunks/{Co-DDbT2.js → CFHzcj7N.js} +1 -1
  99. package/web/app/immutable/chunks/{CHwD9QHP.js → CLCbFeGH.js} +1 -1
  100. package/web/app/immutable/chunks/{CVYI64VR.js → CNP_2GEv.js} +1 -1
  101. package/web/app/immutable/chunks/{rN1DOgEJ.js → CPezNx23.js} +1 -1
  102. package/web/app/immutable/chunks/{e4k4F_fF.js → CR_QOSeH.js} +1 -1
  103. package/web/app/immutable/chunks/{CvUXvU-2.js → CRmUlrc9.js} +1 -1
  104. package/web/app/immutable/chunks/{C-jH8s9r.js → CSYt80U-.js} +2 -2
  105. package/web/app/immutable/chunks/{JWXbB6B6.js → CT1fMnWm.js} +1 -1
  106. package/web/app/immutable/chunks/{DmRzBB2M.js → CTNvudJn.js} +1 -1
  107. package/web/app/immutable/chunks/{CnypGHrl.js → CT_RWC-b.js} +1 -1
  108. package/web/app/immutable/chunks/{BzBOPxuP.js → CTm1UFNm.js} +1 -1
  109. package/web/app/immutable/chunks/{DYrNCBqG.js → CU1drimT.js} +1 -1
  110. package/web/app/immutable/chunks/{BETowprU.js → CVQnuBUY.js} +1 -1
  111. package/web/app/immutable/chunks/{iaCxlE6C.js → CVoR5NDH.js} +1 -1
  112. package/web/app/immutable/chunks/{DkiAPJ2W.js → CXwlKBiL.js} +1 -1
  113. package/web/app/immutable/chunks/{D8u-TTw-.js → CYK_6j38.js} +1 -1
  114. package/web/app/immutable/chunks/{D1dtTkDE.js → C_T_V_cz.js} +1 -1
  115. package/web/app/immutable/chunks/{BzBHISyY.js → C_Xkhy7Z.js} +1 -1
  116. package/web/app/immutable/chunks/{BTurlMFD.js → CbcJLLbX.js} +1 -1
  117. package/web/app/immutable/chunks/{D3Xty9Im.js → Ce9YhY2C.js} +1 -1
  118. package/web/app/immutable/chunks/{CN0OjCVu.js → CeJvKYEf.js} +1 -1
  119. package/web/app/immutable/chunks/{B2-XfPcN.js → Cf5LD9TB.js} +1 -1
  120. package/web/app/immutable/chunks/CgPr4hs2.js +1 -0
  121. package/web/app/immutable/chunks/{BdqSZQx_.js → CivlAwc7.js} +1 -1
  122. package/web/app/immutable/chunks/{CfeU66Hz.js → CjK0D9QS.js} +1 -1
  123. package/web/app/immutable/chunks/CjrYYJVA.js +1 -0
  124. package/web/app/immutable/chunks/{D1LasNTA.js → Clusycua.js} +1 -1
  125. package/web/app/immutable/chunks/{C0MRkgn4.js → CnRB4N94.js} +1 -1
  126. package/web/app/immutable/chunks/{C13MrFSw.js → CntEBInL.js} +1 -1
  127. package/web/app/immutable/chunks/{CfM0pCZF.js → Co_Aa6ij.js} +1 -1
  128. package/web/app/immutable/chunks/{BejAw64w.js → CobcHKt3.js} +6 -6
  129. package/web/app/immutable/chunks/{NUHg8tud.js → CokCeQxx.js} +1 -1
  130. package/web/app/immutable/chunks/{Db1mweH6.js → Cou180Vm.js} +1 -1
  131. package/web/app/immutable/chunks/{O81B-H5P.js → Cq8w3ES-.js} +1 -1
  132. package/web/app/immutable/chunks/{D2zf67XA.js → CqiIZBSl.js} +7 -7
  133. package/web/app/immutable/chunks/{BlBEj3oF.js → CsBmR9QJ.js} +2 -2
  134. package/web/app/immutable/chunks/{DaiMZHlt.js → CsHZlnUj.js} +1 -1
  135. package/web/app/immutable/chunks/{DpawEIzT.js → CskCO23D.js} +3 -3
  136. package/web/app/immutable/chunks/{CsvDcicf.js → CsstSIr0.js} +1 -1
  137. package/web/app/immutable/chunks/{DktdylrS.js → CtBQs9aW.js} +1 -1
  138. package/web/app/immutable/chunks/{CemNgvNI.js → Cv0HcHak.js} +1 -1
  139. package/web/app/immutable/chunks/{Cb7Fwhyl.js → CvXnZ-8G.js} +1 -1
  140. package/web/app/immutable/chunks/{iF8lSM38.js → Cw7IfVO4.js} +1 -1
  141. package/web/app/immutable/chunks/{BNAxChIn.js → Cx7iLEYy.js} +3 -3
  142. package/web/app/immutable/chunks/{T4V8F4hM.js → Cyjl25fy.js} +1 -1
  143. package/web/app/immutable/chunks/{CIkVHIT3.js → D-YtOwPX.js} +1 -1
  144. package/web/app/immutable/chunks/{DqaJW-PO.js → D-Zd1oaK.js} +1 -1
  145. package/web/app/immutable/chunks/{DhizMGiT.js → D-y9m6ao.js} +1 -1
  146. package/web/app/immutable/chunks/{kmgcRpkz.js → D0SLupV7.js} +1 -1
  147. package/web/app/immutable/chunks/{CyLm5JOs.js → D0xGfXvZ.js} +1 -1
  148. package/web/app/immutable/chunks/{C26KoPDI.js → D2HP95As.js} +1 -1
  149. package/web/app/immutable/chunks/{C_lRd9OO.js → D2WFqoJa.js} +1 -1
  150. package/web/app/immutable/chunks/{B25t-e4E.js → D32qvOGn.js} +1 -1
  151. package/web/app/immutable/chunks/{HqhytM4z.js → D3ROSEe0.js} +1 -1
  152. package/web/app/immutable/chunks/{B7g53bMx.js → D3Vc9t57.js} +1 -1
  153. package/web/app/immutable/chunks/{CpyyZUC4.js → D56Oo2O2.js} +1 -1
  154. package/web/app/immutable/chunks/{YQRvuTGW.js → D5jBmJQo.js} +1 -1
  155. package/web/app/immutable/chunks/{Diyq2-7-.js → D6XmzNBT.js} +1 -1
  156. package/web/app/immutable/chunks/{BcXGciCG.js → D7Efqf9l.js} +1 -1
  157. package/web/app/immutable/chunks/{COR1ZgMB.js → D7KQ-C2a.js} +1 -1
  158. package/web/app/immutable/chunks/{DBaQx-Pk.js → D8m7soiy.js} +1 -1
  159. package/web/app/immutable/chunks/{DBH00hnQ.js → D9ikaMyr.js} +1 -1
  160. package/web/app/immutable/chunks/{Dtny-3OT.js → DFhWc3Xl.js} +1 -1
  161. package/web/app/immutable/chunks/{Daq0t0IO.js → DHVVvfGv.js} +1 -1
  162. package/web/app/immutable/chunks/{C_drUQi2.js → DHyS0o2Q.js} +1 -1
  163. package/web/app/immutable/chunks/{DZ1zC9TP.js → DI6oKJrr.js} +1 -1
  164. package/web/app/immutable/chunks/{3oF_cfgL.js → DIbPNVg7.js} +1 -1
  165. package/web/app/immutable/chunks/{3-iWM9xO.js → DJB1T3Sf.js} +1 -1
  166. package/web/app/immutable/chunks/{ClGi_L6l.js → DJk4n_RN.js} +1 -1
  167. package/web/app/immutable/chunks/{Bk3O9qYH.js → DJuSbP_R.js} +1 -1
  168. package/web/app/immutable/chunks/{CsgZCzi1.js → DKCiaCAE.js} +3 -3
  169. package/web/app/immutable/chunks/{C7FfDPRZ.js → DLg9iehs.js} +1 -1
  170. package/web/app/immutable/chunks/{CHLJ-3Q1.js → DMAAeEjh.js} +1 -1
  171. package/web/app/immutable/chunks/{DVFKqUgb.js → DMEnrA6r.js} +1 -1
  172. package/web/app/immutable/chunks/{Bb6J6sjQ.js → DNPPDjbf.js} +1 -1
  173. package/web/app/immutable/chunks/{BGCd17XA.js → DNUaZj8_.js} +1 -1
  174. package/web/app/immutable/chunks/{BDZGpmAg.js → DOd666za.js} +1 -1
  175. package/web/app/immutable/chunks/{CbsrOoqP.js → DOzFltDq.js} +1 -1
  176. package/web/app/immutable/chunks/{RKSEQ7So.js → DQXapDyu.js} +1 -1
  177. package/web/app/immutable/chunks/{Cno21Zxg.js → DRmM5gTo.js} +1 -1
  178. package/web/app/immutable/chunks/{D3NFuU4L.js → DTh2IQKZ.js} +1 -1
  179. package/web/app/immutable/chunks/{Mw1KbVyQ.js → DUMeb8Tg.js} +1 -1
  180. package/web/app/immutable/chunks/{C7cZaxG3.js → DUwPI6pr.js} +1 -1
  181. package/web/app/immutable/chunks/{CNySgneH.js → DV5DGvsr.js} +1 -1
  182. package/web/app/immutable/chunks/{DerqLelD.js → DVGE4E_C.js} +1 -1
  183. package/web/app/immutable/chunks/{DTjIXONR.js → DVa-kQtc.js} +4 -4
  184. package/web/app/immutable/chunks/{CEuCjemc.js → DVeZQ6um.js} +1 -1
  185. package/web/app/immutable/chunks/{0n1_sqb5.js → DWH0KAf0.js} +1 -1
  186. package/web/app/immutable/chunks/{Bqfueq_D.js → DWLJSPfW.js} +1 -1
  187. package/web/app/immutable/chunks/{CwzDLq3o.js → DWVb7mpY.js} +1 -1
  188. package/web/app/immutable/chunks/{BZsM0M0Q.js → DXiP5t0I.js} +1 -1
  189. package/web/app/immutable/chunks/{BW5wGxdP.js → DY2nfza0.js} +1 -1
  190. package/web/app/immutable/chunks/{D6cxqzoz.js → DYlMDxfy.js} +1 -1
  191. package/web/app/immutable/chunks/{DsoGIaMF.js → D_TiJ_fE.js} +1 -1
  192. package/web/app/immutable/chunks/{CDbeyeCP.js → D_uZvS29.js} +2 -2
  193. package/web/app/immutable/chunks/{YSaBP0Ch.js → DaJsXhcE.js} +1 -1
  194. package/web/app/immutable/chunks/{CSSOys25.js → DaNfseRw.js} +1 -1
  195. package/web/app/immutable/chunks/{CK6izZOP.js → DaXfyPpV.js} +2 -2
  196. package/web/app/immutable/chunks/DbNaInRh.js +4 -0
  197. package/web/app/immutable/chunks/{u8zBWO7U.js → DdTOR-fK.js} +1 -1
  198. package/web/app/immutable/chunks/{PZzdtHEH.js → DeXgzEXt.js} +1 -1
  199. package/web/app/immutable/chunks/{iy9r6eBz.js → DeywGElR.js} +1 -1
  200. package/web/app/immutable/chunks/{Dbhxem_q.js → Df1mOKLZ.js} +1 -1
  201. package/web/app/immutable/chunks/{bHtn9InS.js → Df2ohObb.js} +1 -1
  202. package/web/app/immutable/chunks/{12UHR0Xn.js → DfKemw6I.js} +1 -1
  203. package/web/app/immutable/chunks/{DVuTL7Ze.js → DgO-InVL.js} +1 -1
  204. package/web/app/immutable/chunks/{CBolvbXG.js → DhkrcYPH.js} +1 -1
  205. package/web/app/immutable/chunks/{zIOd8jG8.js → Dj0Fo3FR.js} +1 -1
  206. package/web/app/immutable/chunks/{DZFxh2Hz.js → DlqxHCQ7.js} +1 -1
  207. package/web/app/immutable/chunks/{D6QA9x6A.js → DoRZvIjE.js} +1 -1
  208. package/web/app/immutable/chunks/{CS4ChtR_.js → DoSGU0je.js} +1 -1
  209. package/web/app/immutable/chunks/{DFhTl2LJ.js → DqYyUQgu.js} +1 -1
  210. package/web/app/immutable/chunks/{D2ImsQzb.js → DrDFJIB-.js} +1 -1
  211. package/web/app/immutable/chunks/{C6HNr-1J.js → DualWjmg.js} +1 -1
  212. package/web/app/immutable/chunks/{D91osLQe.js → DvM0Oc_2.js} +1 -1
  213. package/web/app/immutable/chunks/{YvM9JcXX.js → Dw68b__v.js} +1 -1
  214. package/web/app/immutable/chunks/{BYk1ULDt.js → DwKgqaL_.js} +3 -3
  215. package/web/app/immutable/chunks/{DFm7ZzVD.js → DyTkTh0C.js} +1 -1
  216. package/web/app/immutable/chunks/{DpDRAdy2.js → DywBWiWr.js} +2 -2
  217. package/web/app/immutable/chunks/{iNzcdJYX.js → FQxEz28M.js} +1 -1
  218. package/web/app/immutable/chunks/{lM1_eh6C.js → FvORToMl.js} +1 -1
  219. package/web/app/immutable/chunks/{BiMGq9Z7.js → FxlwG_cR.js} +1 -1
  220. package/web/app/immutable/chunks/{C2eeslGl.js → GIAV4N10.js} +1 -1
  221. package/web/app/immutable/chunks/{DBAVKOs3.js → HWRbLPjE.js} +1 -1
  222. package/web/app/immutable/chunks/{5bL3DJj7.js → Ico6LbU5.js} +1 -1
  223. package/web/app/immutable/chunks/{glfri7wL.js → KjSY_6tg.js} +1 -1
  224. package/web/app/immutable/chunks/{Bg5ADDrW.js → LIohq1To.js} +1 -1
  225. package/web/app/immutable/chunks/{DchjGXey.js → LZ5jXWXv.js} +1 -1
  226. package/web/app/immutable/chunks/{DyyrFzIP.js → LgC5iPo9.js} +1 -1
  227. package/web/app/immutable/chunks/{B1rvRaDg.js → MR-g1_iF.js} +1 -1
  228. package/web/app/immutable/chunks/{Hai9JAty.js → Mb97pGy9.js} +1 -1
  229. package/web/app/immutable/chunks/{CBiBtnBM.js → NnQLq3da.js} +1 -1
  230. package/web/app/immutable/chunks/{hcRUxON5.js → O7VU9svd.js} +1 -1
  231. package/web/app/immutable/chunks/{DFBRG5f3.js → O7y8odEy.js} +1 -1
  232. package/web/app/immutable/chunks/{BDldvohw.js → P80hEEPK.js} +1 -1
  233. package/web/app/immutable/chunks/{3FJRVBU-.js → PJ-tEAYj.js} +1 -1
  234. package/web/app/immutable/chunks/{D8C52zH9.js → PnAug6me.js} +1 -1
  235. package/web/app/immutable/chunks/{P-01BLZ6.js → Ps9iRbKd.js} +3 -3
  236. package/web/app/immutable/chunks/{C3U610Va.js → QuwJBwI-.js} +1 -1
  237. package/web/app/immutable/chunks/{B0vB3nPK.js → R4VbyJYi.js} +1 -1
  238. package/web/app/immutable/chunks/{LzhxhM8_.js → R9tUAGJO.js} +1 -1
  239. package/web/app/immutable/chunks/{D6Y18pu-.js → RDBJJxOY.js} +1 -1
  240. package/web/app/immutable/chunks/{BzLM7oPX.js → TPpS6DWt.js} +1 -1
  241. package/web/app/immutable/chunks/{D30--6jq.js → UMrFWomj.js} +1 -1
  242. package/web/app/immutable/chunks/{CxWK8xnP.js → VI8s0N-a.js} +1 -1
  243. package/web/app/immutable/chunks/{p29Y4Sx3.js → WD5eiIht.js} +1 -1
  244. package/web/app/immutable/chunks/{B5NmEYUa.js → XG9LuART.js} +1 -1
  245. package/web/app/immutable/chunks/{DIiXUVIr.js → YnEJ07_G.js} +3 -3
  246. package/web/app/immutable/chunks/{n0AniKod.js → ZahkIG5A.js} +1 -1
  247. package/web/app/immutable/chunks/{Df7C6745.js → _0mq0vvG.js} +1 -1
  248. package/web/app/immutable/chunks/{CI4bdaNh.js → _o85nBWH.js} +1 -1
  249. package/web/app/immutable/chunks/{DShhv9Lh.js → _u30tumF.js} +1 -1
  250. package/web/app/immutable/chunks/{CdtTvwl3.js → a4fF0apV.js} +1 -1
  251. package/web/app/immutable/chunks/{3CggOKng.js → aeIQN6XF.js} +1 -1
  252. package/web/app/immutable/chunks/{BFapXlF9.js → bGIBa4-r.js} +1 -1
  253. package/web/app/immutable/chunks/{wI7zMgx-.js → bOHL4iEd.js} +1 -1
  254. package/web/app/immutable/chunks/{BNOUHNLe.js → cPzpQFEA.js} +1 -1
  255. package/web/app/immutable/chunks/{Cd0IJoag.js → cUFAcBAC.js} +1 -1
  256. package/web/app/immutable/chunks/{CjPlYTON.js → cfooBVHs.js} +1 -1
  257. package/web/app/immutable/chunks/{CKeHkFGu.js → czyBPXbO.js} +1 -1
  258. package/web/app/immutable/chunks/{TjYngI-X.js → d5zYr7fC.js} +1 -1
  259. package/web/app/immutable/chunks/{Bxucs2aA.js → dkojwLk2.js} +1 -1
  260. package/web/app/immutable/chunks/{CFmU7Xxn.js → fXrcgNtr.js} +1 -1
  261. package/web/app/immutable/chunks/{D-k0eOJ6.js → fdlSdJMU.js} +1 -1
  262. package/web/app/immutable/chunks/{D4kGqGBk.js → gywQvRwA.js} +1 -1
  263. package/web/app/immutable/chunks/{DFQ2LZfw.js → hBdy3DXS.js} +1 -1
  264. package/web/app/immutable/chunks/{Bz2j5nDH.js → iCHr0TgO.js} +1 -1
  265. package/web/app/immutable/chunks/iaaN5aeR.js +1 -0
  266. package/web/app/immutable/chunks/{DE17eju9.js → jRjYIDnt.js} +1 -1
  267. package/web/app/immutable/chunks/{DxrXzX_M.js → l8G_rqMf.js} +3 -3
  268. package/web/app/immutable/chunks/{BupZf9R2.js → mR2QgOoI.js} +1 -1
  269. package/web/app/immutable/chunks/{D3sL2PPU.js → mp47640j.js} +1 -1
  270. package/web/app/immutable/chunks/{f34gPxAx.js → pCx1Hl6T.js} +1 -1
  271. package/web/app/immutable/chunks/{DxRCuR64.js → q4FIdUSc.js} +1 -1
  272. package/web/app/immutable/chunks/{CAh6WYw0.js → rpeM9FmT.js} +1 -1
  273. package/web/app/immutable/chunks/{D_OjFNQH.js → sUO-mR-D.js} +1 -1
  274. package/web/app/immutable/chunks/{Cs8DWwEN.js → txAmNNfN.js} +2 -2
  275. package/web/app/immutable/chunks/{CJT0k-x3.js → u43L-bVE.js} +1 -1
  276. package/web/app/immutable/chunks/{DjXUNnle.js → uPJwsXgL.js} +1 -1
  277. package/web/app/immutable/chunks/{rjfpoS8M.js → uw9q9ubw.js} +1 -1
  278. package/web/app/immutable/chunks/{BtuvHYz8.js → v6SgbwXH.js} +1 -1
  279. package/web/app/immutable/chunks/{Drwt7aYJ.js → v6v2loc1.js} +1 -1
  280. package/web/app/immutable/chunks/{CDT1G70y.js → w9Jeqnt9.js} +1 -1
  281. package/web/app/immutable/chunks/{CWELhcXR.js → wSFhIxGo.js} +1 -1
  282. package/web/app/immutable/chunks/{CzoFKpHV.js → xF2i73WW.js} +1 -1
  283. package/web/app/immutable/chunks/{CVAEsdqc.js → xFioAb_b.js} +1 -1
  284. package/web/app/immutable/chunks/{BraZvQcb.js → zCZWMH02.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.DwRPZdEe.js} +3 -3
  287. package/web/app/immutable/entry/start.ksbZjpza.js +1 -0
  288. package/web/app/immutable/nodes/{0.B5ZNWVMC.js → 0.Opr0LpNR.js} +1 -1
  289. package/web/app/immutable/nodes/{1.SeMykOqr.js → 1.DxR1peSG.js} +1 -1
  290. package/web/app/immutable/nodes/{10.BZ6kBK3P.js → 10.BMejDu10.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.C8M6elt-.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.Buvqlzgi.js} +2 -2
  297. package/web/app/immutable/nodes/{2.CdR_R7AF.js → 2.DGI0QMTl.js} +4 -4
  298. package/web/app/immutable/nodes/{3.C81CEmtR.js → 3.CDWebO9a.js} +1 -1
  299. package/web/app/immutable/nodes/{4.F_Gi0JxR.js → 4.Dxmt1auu.js} +1 -1
  300. package/web/app/immutable/nodes/{5.CtBTp1Hg.js → 5.CSz7wDme.js} +1 -1
  301. package/web/app/immutable/nodes/{6.CYnJfc7G.js → 6.C8qeE1kc.js} +1 -1
  302. package/web/app/immutable/nodes/{7.CHPJsLkB.js → 7.BicRzjRG.js} +1 -1
  303. package/web/app/immutable/nodes/8.BB2n9bBQ.js +14 -0
  304. package/web/app/immutable/nodes/{9.VslqwEvr.js → 9.B1_vasqC.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 +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"./7bnNetCh.js";import{e as pr,a2 as _e}from"./DbNaInRh.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"./DVa-kQtc.js";import{R as qe,c as it,m as gr,bF as tt}from"./Cx7iLEYy.js";import"./YnEJ07_G.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,4 +1,4 @@
1
- import{bo as b,t as wt,bq as H,a_ as D,by as Tt,bs as xt,b as kt,bu as N}from"./sMg7Lxjd.js";import{bs as It,ca as Q,aD as t,a7 as At,ay as X,W as w,bn as Pt,bS as F,c9 as f,aA as M,aB as x,a5 as I,bA as A,bl as P,b_ as E,bO as S}from"./B8o4lNgr.js";import{D as St}from"./BDldvohw.js";import{c as Wt}from"./CfM0pCZF.js";import{C as q}from"./DypB-Dwi.js";import{L as $t}from"./D8dE5NKO.js";import"./Bg5ADDrW.js";import"./CsvDcicf.js";import"./HqhytM4z.js";import{bb as Dt}from"./DGPqSlym.js";import"./P-01BLZ6.js";import"./CjKcpWyx.js";import{G9 as L,GG as Nt,GU as Ft,GL as Et,t8 as Lt}from"./FBhib8LQ.js";import{T as Ut}from"./3CggOKng.js";import{g as Bt}from"./CoSk1zgY.js";import{dj as Gt}from"./bHtn9InS.js";import{bG as Ot,bE as jt,a$ as Ht}from"./CbsrOoqP.js";import"./CylTfPZk.js";import{M as Mt}from"./DTbYuW0t.js";import{V as Vt}from"./BtuvHYz8.js";import{O as qt}from"./Da9J2JX1.js";import{c as Rt}from"./ChTqQfQN.js";import{i as zt}from"./H2jLkRRS.js";const T=new $t({category:"change-converters"});function V(e,n){return e.path||e.file||e.filePath||e.relativePath||n?.filePath}function Y(e,n){return{additions:e.additions??n?.additions??0,deletions:e.deletions??n?.deletions??0,binary:e.binary??!1}}function Jt(e,n){if(n.actor?.type==="agent"&&n.actor.id){const r=n.actor;return{agentId:r.id,agentName:r.name||b.fileTracking_changeTimeline_agent_fallback(),sessionId:r.sessionId||e.sessionId||"",turnNumber:r.turnNumber??e.turnNumber??0,messageId:r.messageId,timestamp:new Date(n.timestamp).getTime()}}if(e.agentId)return{agentId:e.agentId,agentName:e.agentName||b.fileTracking_changeTimeline_agent_fallback(),sessionId:e.sessionId||"",turnNumber:e.turnNumber||0,timestamp:new Date(n.timestamp).getTime()}}function Z(e,n){return{timestamp:new Date(e.timestamp).getTime(),manual:e.actor?.type==="user",agent:Jt(n,e)}}function tt(e,n){return{oldContent:n?.oldContent??e.oldContent,newContent:n?.newContent??e.newContent,diff:e.diff??n?.diff}}function et(e,n,r){return r!==void 0?`${e}-${n}-${r}`:`${e}-${n}`}function Kt(e){try{const n=e.data||{},r=e.codeChange;T.debug("Converting event to TrackedChange",{eventType:e.type,eventId:e.id,hasData:!!n,hasCodeChange:!!r});const c=V(n,r);if(e.type.startsWith("file:")&&c){const d=Y(n,r);return T.debug("Creating TrackedChange for file event",{filePath:c,stats:d,hasDiff:!!(n.diff||r?.diff)}),[{id:et("event",e.id),file:c,relativePath:c,stage:q.Unstaged,stats:d,attribution:Z(e,n),content:tt(n,r)}]}return(e.type==="agent:completed"||e.type.startsWith("agent:"))&&n.fileChanges&&Array.isArray(n.fileChanges)?(T.debug("Creating TrackedChanges for agent event",{eventType:e.type,fileChangesCount:n.fileChanges.length,agentId:n.agentId}),n.fileChanges.filter(d=>V(d)?!0:(T.warn("Skipping file change without path",{change:d}),!1)).map((d,s)=>{const v=V(d);if(!v)throw new Error("file change without path");return{id:et("event",e.id,s),file:v,relativePath:v,stage:q.Unstaged,stats:Y(d),attribution:Z(e,n),content:tt(d)}})):(T.debug("No TrackedChanges created for event",{eventType:e.type,eventId:e.id,hasFilePath:!!c,hasFileChanges:!!(n.fileChanges&&Array.isArray(n.fileChanges))}),[])}catch(n){return T.error("Error converting event to TrackedChange",n instanceof Error?n:new Error(String(n)),{eventType:e.type,eventId:e.id}),[]}}function Qt(e){if(!e)return{oldContent:"",newContent:""};const n=[],r=[],c=e.split(`
1
+ import{bo as b,t as wt,bq as H,a_ as D,by as Tt,bs as xt,b as kt,bu as N}from"./CgPr4hs2.js";import{bs as It,ca as Q,aD as t,a7 as At,ay as X,W as w,bn as Pt,bS as F,c9 as f,aA as M,aB as x,a5 as I,bA as A,bl as P,b_ as E,bO as S}from"./B8o4lNgr.js";import{D as St}from"./P80hEEPK.js";import{c as Wt}from"./Co_Aa6ij.js";import{C as q}from"./DypB-Dwi.js";import{L as $t}from"./D8dE5NKO.js";import"./LIohq1To.js";import"./CsstSIr0.js";import"./D3ROSEe0.js";import{bb as Dt}from"./B7NNbItI.js";import"./Ps9iRbKd.js";import"./DbNaInRh.js";import{G9 as L,GG as Nt,GU as Ft,GL as Et,t8 as Lt}from"./BL_sVoge.js";import{T as Ut}from"./aeIQN6XF.js";import{g as Bt}from"./CoSk1zgY.js";import{dj as Gt}from"./Df2ohObb.js";import{bG as Ot,bE as jt,a$ as Ht}from"./DOzFltDq.js";import"./C5qvCE4M.js";import{M as Mt}from"./BmiNxvpC.js";import{V as Vt}from"./v6SgbwXH.js";import{O as qt}from"./BG92xiA-.js";import{c as Rt}from"./ChTqQfQN.js";import{i as zt}from"./H2jLkRRS.js";const T=new $t({category:"change-converters"});function V(e,n){return e.path||e.file||e.filePath||e.relativePath||n?.filePath}function Y(e,n){return{additions:e.additions??n?.additions??0,deletions:e.deletions??n?.deletions??0,binary:e.binary??!1}}function Jt(e,n){if(n.actor?.type==="agent"&&n.actor.id){const r=n.actor;return{agentId:r.id,agentName:r.name||b.fileTracking_changeTimeline_agent_fallback(),sessionId:r.sessionId||e.sessionId||"",turnNumber:r.turnNumber??e.turnNumber??0,messageId:r.messageId,timestamp:new Date(n.timestamp).getTime()}}if(e.agentId)return{agentId:e.agentId,agentName:e.agentName||b.fileTracking_changeTimeline_agent_fallback(),sessionId:e.sessionId||"",turnNumber:e.turnNumber||0,timestamp:new Date(n.timestamp).getTime()}}function Z(e,n){return{timestamp:new Date(e.timestamp).getTime(),manual:e.actor?.type==="user",agent:Jt(n,e)}}function tt(e,n){return{oldContent:n?.oldContent??e.oldContent,newContent:n?.newContent??e.newContent,diff:e.diff??n?.diff}}function et(e,n,r){return r!==void 0?`${e}-${n}-${r}`:`${e}-${n}`}function Kt(e){try{const n=e.data||{},r=e.codeChange;T.debug("Converting event to TrackedChange",{eventType:e.type,eventId:e.id,hasData:!!n,hasCodeChange:!!r});const c=V(n,r);if(e.type.startsWith("file:")&&c){const d=Y(n,r);return T.debug("Creating TrackedChange for file event",{filePath:c,stats:d,hasDiff:!!(n.diff||r?.diff)}),[{id:et("event",e.id),file:c,relativePath:c,stage:q.Unstaged,stats:d,attribution:Z(e,n),content:tt(n,r)}]}return(e.type==="agent:completed"||e.type.startsWith("agent:"))&&n.fileChanges&&Array.isArray(n.fileChanges)?(T.debug("Creating TrackedChanges for agent event",{eventType:e.type,fileChangesCount:n.fileChanges.length,agentId:n.agentId}),n.fileChanges.filter(d=>V(d)?!0:(T.warn("Skipping file change without path",{change:d}),!1)).map((d,s)=>{const v=V(d);if(!v)throw new Error("file change without path");return{id:et("event",e.id,s),file:v,relativePath:v,stage:q.Unstaged,stats:Y(d),attribution:Z(e,n),content:tt(d)}})):(T.debug("No TrackedChanges created for event",{eventType:e.type,eventId:e.id,hasFilePath:!!c,hasFileChanges:!!(n.fileChanges&&Array.isArray(n.fileChanges))}),[])}catch(n){return T.error("Error converting event to TrackedChange",n instanceof Error?n:new Error(String(n)),{eventType:e.type,eventId:e.id}),[]}}function Qt(e){if(!e)return{oldContent:"",newContent:""};const n=[],r=[],c=e.split(`
2
2
  `);c.length>0&&c[c.length-1]===""&&c.pop();let d=!1;for(const s of c)if(!(s.startsWith("diff --git")||s.startsWith("index ")||s.startsWith("--- ")||s.startsWith("+++ ")||s.startsWith("\"))){if(s.startsWith("@@")){d=!0;continue}d&&(s.startsWith("+")?r.push(s.slice(1)):s.startsWith("-")?n.push(s.slice(1)):s.startsWith(" ")?(n.push(s.slice(1)),r.push(s.slice(1))):s===""&&(n.push(""),r.push("")))}return{oldContent:n.join(`
3
3
  `),newContent:r.join(`
4
4
  `)}}var Xt=x("<!> <!>",1),Yt=x('<div class="flex items-center gap-1.5 px-3 py-1.5 text-xs text-subtle bg-muted/50 border-b border-border"><span> </span></div>'),Zt=x('<div class="flex flex-col h-full"><!> <div class="flex-1 min-h-0"><!></div></div>'),te=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <p class="text-xs opacity-70"> </p></div>'),ee=x('<p class="text-xs opacity-70"> </p>'),ne=x('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <!></div>');function ae(e,n){if(new.target)return wt({component:ae,...e});It(n,!0);const r=()=>N(lt,"$workspace",v),c=()=>N(st,"$foldUnchanged",v),d=()=>N(rt,"$lineWrapping",v),s=()=>N(ot,"$diffSideBySide",v),[v,nt]=xt(),at=a=>{Vt(a,{embedded:!0,get foldEnabled(){return c()},onToggleFold:()=>L.dispatch(Et()),get wrapEnabled(){return d()},onToggleWrap:()=>L.dispatch(Ft()),get splitEnabled(){return s()},onToggleSplit:()=>L.dispatch(Nt())})},it=a=>{var i=Xt(),g=X(i);{let m=f(()=>b.layout_diffHeader_goToFile_tooltip());Wt(g,()=>Mt,(l,h)=>{h(l,{get icon(){return Dt},get label(){return t(m)},onclick:$=>ut()})})}var y=F(g,2);{var C=m=>{qt(m,{get filePath(){return t(z)},get workspaceId(){return _()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return t(G)}})};D(y,m=>{t(z)&&m(C)})}w(a,i)},rt=Ot(),st=jt(),ot=Ht(),dt=Rt("ActivityChangesTabType");let U=H(n,"tab",7),_=H(n,"workspaceId",7),B=H(n,"isActive",7);const R=Bt(),lt=Gt(_()),G=f(()=>r()?.worktreePath||r()?.repositoryPath||void 0),o=f(()=>U().data?.event),ct=f(()=>t(o)?Kt(t(o)):[]),u=f(()=>t(ct)[0]),p=f(()=>t(u)?.relativePath||t(u)?.file||null),z=f(()=>t(p)&&t(G)?zt(t(p))?t(p):`${t(G)}/${t(p)}`:null),O=f(()=>()=>{if(!t(o))return null;const a=t(o).data,i=t(o).codeChange;return a?.diff||i?.diff||t(u)?.content?.diff||null}),J=f(()=>()=>t(u)?.content?!!(t(u).content.oldContent&&t(u).content.newContent):!1);function ft(a){if(!a)return;const i=a.match(/@@ -(\d+)/);return i?parseInt(i[1],10):void 0}const k=f(()=>{if(t(J)()&&t(u)?.content)return{oldContent:t(u).content.oldContent??"",newContent:t(u).content.newContent??""};const a=t(O)();return a?Qt(a):null}),W=f(()=>ft(t(O)())),pt=f(()=>t(W)!==void 0&&t(W)>1),gt=f(()=>{const a=t(p)||"",i=t(o)?.data||{};return{id:`activity-${t(o)?.id||"unknown"}-${a}`,file:a,relativePath:a,stage:q.Committed,status:t(u)?.status||"modified",stats:{additions:i?.additions||t(u)?.stats?.additions||0,deletions:i?.deletions||t(u)?.stats?.deletions||0},attribution:{timestamp:t(o)?.timestamp?new Date(t(o).timestamp).getTime():Date.now()},content:t(k)?{oldContent:t(k).oldContent,newContent:t(k).newContent}:void 0}});function ut(a){if(!t(p))return;const g={type:"file",title:t(p).split("/").pop()||t(p),closable:!0,filePath:t(p),workspaceId:_()};L.dispatch(Lt(_(),g))}Q(()=>{!R||!B()||R.registerActions({display:at,actions:it})}),Q(()=>{if(t(o)){const a=t(o).data;dt.debug("Activity event diff info",{eventType:t(o).type,eventId:t(o).id,filePath:t(p),hasDiffString:!!t(O)(),hasOldNewContent:t(J)(),hasDiffContents:!!t(k),dataAdditions:a?.additions,dataDeletions:a?.deletions})}});var ht={get tab(){return U()},set tab(a){U(a),M()},get workspaceId(){return _()},set workspaceId(a){_(a),M()},get isActive(){return B()},set isActive(a){B(a),M()},$set:Tt,$on:(a,i)=>kt(n,a,i)},K=At(),mt=X(K);{var vt=a=>{var i=Zt(),g=I(i);{var y=l=>{var h=Yt(),$=I(h),j=P($,!0);A(h),E(_t=>S(j,_t),[()=>b.layout_activityChanges_partialDiff_label({line:t(W)??0})]),w(l,h)};D(g,l=>{t(pt)&&l(y)})}var C=F(g,2),m=I(C);St(m,()=>`${t(o)?.id}-${t(p)}`,l=>{{let h=f(()=>s()?"split":"unified");Ut(l,{get change(){return t(gt)},get workspaceId(){return _()},get viewMode(){return t(h)},get foldUnchanged(){return c()},get lineWrapping(){return d()},get lineOffset(){return t(W)}})}}),A(C),A(i),w(a,i)},yt=a=>{var i=te(),g=I(i),y=P(g,!0),C=F(g,2),m=P(C,!0);A(i),E((l,h)=>{S(y,l),S(m,h)},[()=>b.layout_activityChanges_noDiffStored_label(),()=>b.layout_activityChanges_diffNotCaptured_description()]),w(a,i)},Ct=a=>{var i=ne(),g=I(i),y=P(g,!0),C=F(g,2);{var m=l=>{var h=ee(),$=P(h,!0);E(j=>S($,j),[()=>b.layout_activityChanges_eventType_label({type:t(o).type})]),w(l,h)};D(C,l=>{t(o)&&l(m)})}A(i),E(l=>S(y,l),[()=>b.layout_activityChanges_noChanges_label()]),w(a,i)};D(mt,a=>{t(p)&&t(k)?a(vt):t(p)?a(yt,1):a(Ct,-1)})}w(e,K);var bt=Pt(ht);return nt(),bt}export{ae as default};
@@ -1 +1 @@
1
- import{I as h}from"./CbsrOoqP.js";import{c as v}from"./ChTqQfQN.js";import{bs as d}from"./P-01BLZ6.js";const g=v("AttachmentImageUrl");function y(t,n){const r=n.split("/").filter(e=>e.length>0).map(e=>encodeURIComponent(e)).join("/");return`workspace-file://${t}/${r}`}const u=new Map,a=new Map;let f=0,m=!1;function p(){m||(m=!0,d(()=>{f+=1,u.clear(),a.clear()}))}function A(t,n){u.delete(`${t}/${n}`)}function F(t,n,r){p();let e=!1,i=!1,o=!1;async function l(){if(!e){if(i){o=!0;return}i=!0;try{const c=await $(t,n);e||r(c)}finally{i=!1,o&&(o=!1,l())}}}const s=d(()=>{l()});return l(),{imageFailed(){e||(A(t,n),r(null))},dispose(){e=!0,s()}}}function $(t,n){p();const r=f,e=`${t}/${n}`,i=u.get(e);if(i)return Promise.resolve(i);const o=a.get(e);if(o)return o;const l=(async()=>{try{const s=await h({attachmentId:n,workspaceId:t});if(r!==f)return null;if(!s.exists)return g.warn("Attachment file missing on disk",{attachmentId:n}),null;const c=y(t,s.path);return u.set(e,c),c}catch(s){return g.warn("Failed to resolve attachment image",{attachmentId:n,error:s}),null}finally{r===f&&a.delete(e)}})();return a.set(e,l),l}export{A as e,F as o,$ as r};
1
+ import{I as h}from"./DOzFltDq.js";import{c as v}from"./ChTqQfQN.js";import{bs as d}from"./Ps9iRbKd.js";const g=v("AttachmentImageUrl");function y(t,n){const r=n.split("/").filter(e=>e.length>0).map(e=>encodeURIComponent(e)).join("/");return`workspace-file://${t}/${r}`}const u=new Map,a=new Map;let f=0,m=!1;function p(){m||(m=!0,d(()=>{f+=1,u.clear(),a.clear()}))}function A(t,n){u.delete(`${t}/${n}`)}function F(t,n,r){p();let e=!1,i=!1,o=!1;async function l(){if(!e){if(i){o=!0;return}i=!0;try{const c=await $(t,n);e||r(c)}finally{i=!1,o&&(o=!1,l())}}}const s=d(()=>{l()});return l(),{imageFailed(){e||(A(t,n),r(null))},dispose(){e=!0,s()}}}function $(t,n){p();const r=f,e=`${t}/${n}`,i=u.get(e);if(i)return Promise.resolve(i);const o=a.get(e);if(o)return o;const l=(async()=>{try{const s=await h({attachmentId:n,workspaceId:t});if(r!==f)return null;if(!s.exists)return g.warn("Attachment file missing on disk",{attachmentId:n}),null;const c=y(t,s.path);return u.set(e,c),c}catch(s){return g.warn("Failed to resolve attachment image",{attachmentId:n,error:s}),null}finally{r===f&&a.delete(e)}})();return a.set(e,l),l}export{A as e,F as o,$ as r};
@@ -1,3 +1,3 @@
1
- import{l as c}from"./CArnO8CD.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},r={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
1
+ import{l as c}from"./BYCiS1o9.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},r={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
2
2
  \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${d.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function g(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:`
3
3
  \r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${d.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function _(t,n){const i=`_${t.id}_${n.id}`,e=u=>u.replace(/__id__/g,i),o=u=>{const m=u.source.replace(/__id__/g,i);return new RegExp(m,u.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/&lt;=|&gt;=|\\lte|\\lt|&lt;|\\gte|\\gt|&gt;|&amp;&amp;|\\and|-&gt;|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","-&gt;"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function A(t){const n=_(a,t),i=_(r,t),e=_(F,t);return{...n,...i,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,...i.tokenizer,...e.tokenizer}}}const b={conf:l(a),language:_(a,k)},x={conf:l(r),language:_(r,k)},$={conf:l(a),language:_(a,p)},E={conf:l(r),language:_(r,p)},B={conf:g(),language:A(k)},D={conf:g(),language:A(p)};export{$ as TagAngleInterpolationBracket,b as TagAngleInterpolationDollar,D as TagAutoInterpolationBracket,B as TagAutoInterpolationDollar,E as TagBracketInterpolationBracket,x as TagBracketInterpolationDollar};
@@ -1 +1 @@
1
- import{l as e}from"./CArnO8CD.js";const n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:e.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:e.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:e.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:e.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},o={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/#?[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{n as conf,o as language};
1
+ import{l as e}from"./BYCiS1o9.js";const n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:e.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:e.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:e.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:e.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},o={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/#?[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{n as conf,o as language};
@@ -1 +1 @@
1
- import{C as T}from"./DqaJW-PO.js";import{a as b}from"./BJzHxIyr.js";import{w as M}from"./Cgu6cLKT.js";import{G9 as n,Bi as v,AN as E,g as A,t1 as _,sF as C,A6 as O,Ao as D,Ci as L,Aa as P}from"./FBhib8LQ.js";import{aW as p}from"./bHtn9InS.js";import{d as H}from"./B0Z-1lwJ.js";import{n as R}from"./C-jH8s9r.js";import{o as x,e as W}from"./D3Xty9Im.js";const f=new b("OpenMessage"),S=150,k=15e3,B=2,F=[150,400,800,1500,3e3],N=T;let g;function y(e){return new Promise(t=>setTimeout(t,e))}function w(e,t){const s=n.state,a=s.agentSessions?.byAgentId[e]?.messages,o=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(a?.some(i=>i.id===t)||o?.some(i=>i.id===t))}function q(e){return n.state.chatState?.byAgentId[e]?.transcriptHydration}async function G(e,t,s){const a=Date.now()+k;let o=0;for(;Date.now()<a;){if(s.aborted)return!1;if(w(e,t))return!0;if(o>=B&&q(e)==="settled"&&!p.select(n.state,e).initialHistoryPending)return!1;o++,await y(S)}return!s.aborted&&w(e,t)}async function Y(e,t,s,a){const o=Date.now()+k;for(;p.select(n.state,e).initialHistoryPending;){if(a?.aborted||Date.now()>=o)return!1;await y(S)}const i=n.state.agentSessions?.byAgentId[e];if(!i||a?.aborted)return!1;if(w(e,t))return!0;s??=i.workspaceId;const d=p.select(n.state,e);let c={nextToken:d.scrollbackOlderToken,prevToken:d.scrollbackGapToken};n.dispatch(O(e,"seek"));const l=p.select(n.state,e).scrollbackDiscardEpoch,u=()=>!!n.state.agentSessions?.byAgentId[e]&&p.select(n.state,e).scrollbackDiscardEpoch===l;try{const r=await M.agents.getConversation(e,N,void 0,t,void 0,s);return a?.aborted||!u()||!r.messages.some(m=>m.id===t)?!1:(n.dispatch(D(e,r.messages,r.messages[0]?.seq)),r.nextToken===null&&n.dispatch(L(e)),c={nextToken:r.nextToken,prevToken:r.prevToken},w(e,t))}catch(r){return f.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:r}),!1}finally{u()&&n.dispatch(P(e,c))}}async function J(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:a,messageId:o,query:i,targetTabId:d}=e;f.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:a,messageId:o});const c=s===A;c&&!e.contentAlreadyOpen&&(n.dispatch(v(a)),n.dispatch(E(A,a)),n.dispatch(_("chief")));const l=c?"/":W(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==l){try{c?await R(l):await x(s)}catch(h){f.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:h});return}if(t.aborted)return;if(window.location.pathname!==l){f.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&n.dispatch(C(s,{agentId:a}));const u=await G(a,o,t)?!0:await Y(a,o,s,t);if(t.aborted)return;if(!u){f.warn("[openMessage] Message not found; conversation opened at tail",{agentId:a,messageId:o});return}const r=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,m={agentId:a,messageId:o,query:i,targetTabId:d,requestId:r,signal:t};for(const h of F)setTimeout(()=>{t.aborted||H("chat:open-message",m)},h)}export{J as openMessage,Y as seekConversationToMessage};
1
+ import{C as T}from"./D-Zd1oaK.js";import{a as b}from"./BJzHxIyr.js";import{w as M}from"./BRqvd9LR.js";import{G9 as n,Bi as v,AN as E,g as A,t1 as _,sF as C,A6 as O,Ao as D,Ci as L,Aa as P}from"./BL_sVoge.js";import{aW as p}from"./Df2ohObb.js";import{d as H}from"./B0Z-1lwJ.js";import{n as R}from"./CSYt80U-.js";import{o as x,e as W}from"./Ce9YhY2C.js";const f=new b("OpenMessage"),S=150,k=15e3,B=2,F=[150,400,800,1500,3e3],N=T;let g;function y(e){return new Promise(t=>setTimeout(t,e))}function w(e,t){const s=n.state,a=s.agentSessions?.byAgentId[e]?.messages,o=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(a?.some(i=>i.id===t)||o?.some(i=>i.id===t))}function q(e){return n.state.chatState?.byAgentId[e]?.transcriptHydration}async function G(e,t,s){const a=Date.now()+k;let o=0;for(;Date.now()<a;){if(s.aborted)return!1;if(w(e,t))return!0;if(o>=B&&q(e)==="settled"&&!p.select(n.state,e).initialHistoryPending)return!1;o++,await y(S)}return!s.aborted&&w(e,t)}async function Y(e,t,s,a){const o=Date.now()+k;for(;p.select(n.state,e).initialHistoryPending;){if(a?.aborted||Date.now()>=o)return!1;await y(S)}const i=n.state.agentSessions?.byAgentId[e];if(!i||a?.aborted)return!1;if(w(e,t))return!0;s??=i.workspaceId;const d=p.select(n.state,e);let c={nextToken:d.scrollbackOlderToken,prevToken:d.scrollbackGapToken};n.dispatch(O(e,"seek"));const l=p.select(n.state,e).scrollbackDiscardEpoch,u=()=>!!n.state.agentSessions?.byAgentId[e]&&p.select(n.state,e).scrollbackDiscardEpoch===l;try{const r=await M.agents.getConversation(e,N,void 0,t,void 0,s);return a?.aborted||!u()||!r.messages.some(m=>m.id===t)?!1:(n.dispatch(D(e,r.messages,r.messages[0]?.seq)),r.nextToken===null&&n.dispatch(L(e)),c={nextToken:r.nextToken,prevToken:r.prevToken},w(e,t))}catch(r){return f.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:r}),!1}finally{u()&&n.dispatch(P(e,c))}}async function J(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:a,messageId:o,query:i,targetTabId:d}=e;f.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:a,messageId:o});const c=s===A;c&&!e.contentAlreadyOpen&&(n.dispatch(v(a)),n.dispatch(E(A,a)),n.dispatch(_("chief")));const l=c?"/":W(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==l){try{c?await R(l):await x(s)}catch(h){f.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:h});return}if(t.aborted)return;if(window.location.pathname!==l){f.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&n.dispatch(C(s,{agentId:a}));const u=await G(a,o,t)?!0:await Y(a,o,s,t);if(t.aborted)return;if(!u){f.warn("[openMessage] Message not found; conversation opened at tail",{agentId:a,messageId:o});return}const r=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,m={agentId:a,messageId:o,query:i,targetTabId:d,requestId:r,signal:t};for(const h of F)setTimeout(()=>{t.aborted||H("chat:open-message",m)},h)}export{J as openMessage,Y as seekConversationToMessage};
@@ -1 +1 @@
1
- import{G9 as r,mw as p,mx as i,lc as s,z as S}from"./FBhib8LQ.js";import{bo as o}from"./sMg7Lxjd.js";const u={"Setup Script":()=>o.terminal_daemonName_setupScript_label(),Terminal:()=>o.terminal_quakeOverlay_terminal_fallback()};function T(e){if(e)return Object.hasOwn(u,e)?u[e]():e}function d(e){return e.customName||T(e.name)||o.terminal_quakeOverlay_terminal_fallback()}const f=r.createSelector((e,t,a,l)=>{const n=p(e.terminals.creationOutcomes,t);return n?.workspaceId===a&&n.resourceId===l?n:void 0});function m(e,t){return t?e.terminals.workspaces[t]||s:s}function c(e,t){return e.terminals.workspaces[t]||s}function k(e){return(e.customName||e.name)==="Setup"}const _=r.createSelector((e,t)=>e.terminals.workspaceHeights[t]??e.terminals.height),v=r.createSelector((e,t)=>m(e,t).activeTerminalId),O=r.createSelector((e,t)=>i(m(e,t).terminals)),g=r.createSelector((e,t)=>{if(!t)return null;const a=c(e,t).selectedScriptId;return a||null}),I=r.createSelector((e,t)=>c(e,t).isOpen),y=r.createSelector((e,t)=>c(e,t).activeTerminalId),N=r.createSelector((e,t)=>i(c(e,t).terminals)),b=r.createSelector((e,t)=>i(c(e,t).terminals).find(k)),A=r.createSelector((e,t)=>e.terminals.workspaces[t]||s),W=r.createSelector((e,t,a)=>c(e,t).placements[a]??e.terminals.workspacePlacements[t]?.[a]??S),P=r.createSelector((e,t)=>e.terminals.workspacePlacements[t]),w=r.createSelector((e,t,a)=>{const l=m(e,t),n=p(l.terminals,a);return e.userPreferences?.languagePreference,d(n??{})}),M=Object.freeze(Object.defineProperty({__proto__:null,selectActiveTerminalId:v,selectActiveTerminalIdForWorkspace:y,selectHydratedWorkspacePlacements:P,selectIsTerminalOverlayOpenForWorkspace:I,selectSelectedScriptId:g,selectTerminalCreationOutcome:f,selectTerminalDisplayName:w,selectTerminalOverlayHeight:_,selectTerminalPlacement:W,selectTerminals:O,selectTerminalsForWorkspace:N,selectWorkspaceSetupTerminal:b,selectWorkspaceTerminalState:A},Symbol.toStringTag,{value:"Module"}));export{P as a,I as b,f as c,w as d,_ as e,N as f,b as g,A as h,M as i,T as l,y as s,d as t};
1
+ import{G9 as r,mw as p,mx as i,lc as s,z as S}from"./BL_sVoge.js";import{bo as o}from"./CgPr4hs2.js";const u={"Setup Script":()=>o.terminal_daemonName_setupScript_label(),Terminal:()=>o.terminal_quakeOverlay_terminal_fallback()};function T(e){if(e)return Object.hasOwn(u,e)?u[e]():e}function d(e){return e.customName||T(e.name)||o.terminal_quakeOverlay_terminal_fallback()}const f=r.createSelector((e,t,a,l)=>{const n=p(e.terminals.creationOutcomes,t);return n?.workspaceId===a&&n.resourceId===l?n:void 0});function m(e,t){return t?e.terminals.workspaces[t]||s:s}function c(e,t){return e.terminals.workspaces[t]||s}function k(e){return(e.customName||e.name)==="Setup"}const _=r.createSelector((e,t)=>e.terminals.workspaceHeights[t]??e.terminals.height),v=r.createSelector((e,t)=>m(e,t).activeTerminalId),O=r.createSelector((e,t)=>i(m(e,t).terminals)),g=r.createSelector((e,t)=>{if(!t)return null;const a=c(e,t).selectedScriptId;return a||null}),I=r.createSelector((e,t)=>c(e,t).isOpen),y=r.createSelector((e,t)=>c(e,t).activeTerminalId),N=r.createSelector((e,t)=>i(c(e,t).terminals)),b=r.createSelector((e,t)=>i(c(e,t).terminals).find(k)),A=r.createSelector((e,t)=>e.terminals.workspaces[t]||s),W=r.createSelector((e,t,a)=>c(e,t).placements[a]??e.terminals.workspacePlacements[t]?.[a]??S),P=r.createSelector((e,t)=>e.terminals.workspacePlacements[t]),w=r.createSelector((e,t,a)=>{const l=m(e,t),n=p(l.terminals,a);return e.userPreferences?.languagePreference,d(n??{})}),M=Object.freeze(Object.defineProperty({__proto__:null,selectActiveTerminalId:v,selectActiveTerminalIdForWorkspace:y,selectHydratedWorkspacePlacements:P,selectIsTerminalOverlayOpenForWorkspace:I,selectSelectedScriptId:g,selectTerminalCreationOutcome:f,selectTerminalDisplayName:w,selectTerminalOverlayHeight:_,selectTerminalPlacement:W,selectTerminals:O,selectTerminalsForWorkspace:N,selectWorkspaceSetupTerminal:b,selectWorkspaceTerminalState:A},Symbol.toStringTag,{value:"Module"}));export{P as a,I as b,f as c,w as d,_ as e,N as f,b as g,A as h,M as i,T as l,y as s,d as t};
@@ -1,4 +1,4 @@
1
- import{f as o,bC as te,aO as H,c4 as fe,b4 as ye,b8 as be,bU as me,cd as ke,ax as K,c2 as F,bB as Ee,J as _e,bk as Se,by as ce,as as le}from"./BejAw64w.js";import{g as Ne}from"./D-k0eOJ6.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],B=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],U=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(B,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:U}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:U}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
1
+ import{f as o,bC as te,aO as H,c4 as fe,b4 as ye,b8 as be,bU as me,cd as ke,ax as K,c2 as F,bB as Ee,J as _e,bk as Se,by as ce,as as le}from"./CobcHKt3.js";import{g as Ne}from"./CjK0D9QS.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],B=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],U=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(B,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:U}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:U}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(_==re?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(x[0]){case 1:r.push(_),u.push(b.yytext),t.push(b.yylloc),r.push(x[1]),_=null,ie=b.yyleng,c=b.yytext,W=b.yylineno,q=b.yylloc;break;case 2:if(C=this.productions_[x[1]][1],j.$=u[u.length-C],j._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(j._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(j,[c,ie,W,R.yy,x[1],u,t].concat(ge)),typeof Q<"u")return Q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(j.$),t.push(j._$),oe=M[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},Y=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var n=s.length,r=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{g as ae}from"./Diyq2-7-.js";import{s as oe}from"./Db1mweH6.js";import{f as l,bC as C,aS as ce,bZ as le,aN as he,ax as G,aO as B,c2 as F,aZ as de,bk as ge,by as ue,as as pe}from"./BejAw64w.js";import{cK as fe}from"./CbsrOoqP.js";var Y=(function(){var i=l(function(D,s,n,a){for(n=n||{},a=D.length;a--;n[D[a]]=s);return n},"o"),e=[1,4],o=[1,13],g=[1,12],t=[1,15],h=[1,16],f=[1,20],y=[1,19],E=[6,7,8],_=[1,26],L=[1,24],w=[1,25],d=[6,7,11],R=[1,6,13,15,16,19,22],Z=[1,33],K=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,n,a,c,p,r,$){var u=r.length-1;switch(p){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[u].id),c.addNode(r[u-1].length,r[u].id,r[u].descr,r[u].type);break;case 16:c.getLogger().trace("Icon: ",r[u]),c.decorateNode({icon:r[u]});break;case 17:case 21:c.decorateNode({class:r[u]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[u].id),c.addNode(0,r[u].id,r[u].descr,r[u].type);break;case 20:c.decorateNode({icon:r[u]});break;case 25:c.getLogger().trace("node found ..",r[u-2]),this.$={id:r[u-1],descr:r[u-1],type:c.getType(r[u-2],r[u])};break;case 26:this.$={id:r[u],descr:r[u],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[u-3]),this.$={id:r[u-3],descr:r[u-1],type:c.getType(r[u-2],r[u])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:o,7:[1,10],9:9,12:11,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},i(E,[2,3]),{1:[2,2]},i(E,[2,4]),i(E,[2,5]),{1:[2,6],6:o,12:21,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},{6:o,9:22,12:11,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},{6:_,7:L,10:23,11:w},i(d,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:y}),i(d,[2,18]),i(d,[2,19]),i(d,[2,20]),i(d,[2,21]),i(d,[2,23]),i(d,[2,24]),i(d,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:L,10:32,11:w},{1:[2,7],6:o,12:21,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},i(R,[2,14],{7:Z,11:K}),i(A,[2,8]),i(A,[2,9]),i(A,[2,10]),i(d,[2,15]),i(d,[2,16]),i(d,[2,17]),{20:[1,35]},{21:[1,36]},i(R,[2,13],{7:Z,11:K}),i(A,[2,11]),i(A,[2,12]),{21:[1,37]},i(d,[2,25]),i(d,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:l(function(s){var n=this,a=[0],c=[],p=[null],r=[],$=this.table,u="",M=0,q=0,ie=2,J=1,ne=r.slice.call(arguments,1),m=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);m.setInput(s,v.yy),v.yy.lexer=m,v.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var W=m.yylloc;r.push(W);var se=m.options&&m.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function re(b){a.length=a.length-2*b,p.length=p.length-b,r.length=r.length-b}l(re,"popStack");function Q(){var b;return b=c.pop()||m.lex()||J,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=n.symbols_[b]||b),b}l(Q,"lex");for(var k,T,S,z,O={},U,N,ee,V;;){if(T=a[a.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Q()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var X="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");m.showPosition?X="Parse error on line "+(M+1)+`:
1
+ import{g as ae}from"./D6XmzNBT.js";import{s as oe}from"./Cou180Vm.js";import{f as l,bC as C,aS as ce,bZ as le,aN as he,ax as G,aO as B,c2 as F,aZ as de,bk as ge,by as ue,as as pe}from"./CobcHKt3.js";import{cK as fe}from"./DOzFltDq.js";var Y=(function(){var i=l(function(D,s,n,a){for(n=n||{},a=D.length;a--;n[D[a]]=s);return n},"o"),e=[1,4],o=[1,13],g=[1,12],t=[1,15],h=[1,16],f=[1,20],y=[1,19],E=[6,7,8],_=[1,26],L=[1,24],w=[1,25],d=[6,7,11],R=[1,6,13,15,16,19,22],Z=[1,33],K=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,n,a,c,p,r,$){var u=r.length-1;switch(p){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[u].id),c.addNode(r[u-1].length,r[u].id,r[u].descr,r[u].type);break;case 16:c.getLogger().trace("Icon: ",r[u]),c.decorateNode({icon:r[u]});break;case 17:case 21:c.decorateNode({class:r[u]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[u].id),c.addNode(0,r[u].id,r[u].descr,r[u].type);break;case 20:c.decorateNode({icon:r[u]});break;case 25:c.getLogger().trace("node found ..",r[u-2]),this.$={id:r[u-1],descr:r[u-1],type:c.getType(r[u-2],r[u])};break;case 26:this.$={id:r[u],descr:r[u],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[u-3]),this.$={id:r[u-3],descr:r[u-1],type:c.getType(r[u-2],r[u])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:o,7:[1,10],9:9,12:11,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},i(E,[2,3]),{1:[2,2]},i(E,[2,4]),i(E,[2,5]),{1:[2,6],6:o,12:21,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},{6:o,9:22,12:11,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},{6:_,7:L,10:23,11:w},i(d,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:y}),i(d,[2,18]),i(d,[2,19]),i(d,[2,20]),i(d,[2,21]),i(d,[2,23]),i(d,[2,24]),i(d,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:L,10:32,11:w},{1:[2,7],6:o,12:21,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},i(R,[2,14],{7:Z,11:K}),i(A,[2,8]),i(A,[2,9]),i(A,[2,10]),i(d,[2,15]),i(d,[2,16]),i(d,[2,17]),{20:[1,35]},{21:[1,36]},i(R,[2,13],{7:Z,11:K}),i(A,[2,11]),i(A,[2,12]),{21:[1,37]},i(d,[2,25]),i(d,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:l(function(s){var n=this,a=[0],c=[],p=[null],r=[],$=this.table,u="",M=0,q=0,ie=2,J=1,ne=r.slice.call(arguments,1),m=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);m.setInput(s,v.yy),v.yy.lexer=m,v.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var W=m.yylloc;r.push(W);var se=m.options&&m.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function re(b){a.length=a.length-2*b,p.length=p.length-b,r.length=r.length-b}l(re,"popStack");function Q(){var b;return b=c.pop()||m.lex()||J,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=n.symbols_[b]||b),b}l(Q,"lex");for(var k,T,S,z,O={},U,N,ee,V;;){if(T=a[a.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Q()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var X="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");m.showPosition?X="Parse error on line "+(M+1)+`:
2
2
  `+m.showPosition()+`
3
3
  Expecting `+V.join(", ")+", got '"+(this.terminals_[k]||k)+"'":X="Parse error on line "+(M+1)+": Unexpected "+(k==J?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(X,{text:m.match,token:this.terminals_[k]||k,line:m.yylineno,loc:W,expected:V})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+k);switch(S[0]){case 1:a.push(k),p.push(m.yytext),r.push(m.yylloc),a.push(S[1]),k=null,q=m.yyleng,u=m.yytext,M=m.yylineno,W=m.yylloc;break;case 2:if(N=this.productions_[S[1]][1],O.$=p[p.length-N],O._$={first_line:r[r.length-(N||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(N||1)].first_column,last_column:r[r.length-1].last_column},se&&(O._$.range=[r[r.length-(N||1)].range[0],r[r.length-1].range[1]]),z=this.performAction.apply(O,[u,q,M,v.yy,S[1],p,r].concat(ne)),typeof z<"u")return z;N&&(a=a.slice(0,-1*N*2),p=p.slice(0,-1*N),r=r.slice(0,-1*N)),a.push(this.productions_[S[1]][0]),p.push(O.$),r.push(O._$),ee=$[a[a.length-2]][a[a.length-1]],a.push(ee);break;case 3:return!0}}return!0},"parse")},te=(function(){var D={EOF:1,parseError:l(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},"parseError"),setInput:l(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l(function(s){var n=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var c=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),a.length-1&&(this.yylineno-=a.length-1);var p=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:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{a as c,M as V,ah as Re,r as Pe,ad as E,k as Fe,aC as Me,N as Ce,G as Ke,a0 as Ye,a1 as We,aq as Ve,l as je,i as Ue,p as He,S as Xe,a3 as Oe,ar as Ge}from"./D2zf67XA.js";import{g as qe}from"./CfeU66Hz.js";import{c3 as q,g as L}from"./BejAw64w.js";var ce=(function(){var e=c(function(O,u,r,n){for(r=r||{},n=O.length;n--;r[O[n]]=u);return r},"o"),o=[1,15],l=[1,7],a=[1,13],h=[1,14],p=[1,19],s=[1,16],g=[1,17],x=[1,18],y=[8,30],b=[8,10,21,28,29,30,31,39,43,46],f=[1,23],m=[1,24],_=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],D=[1,49],w={trace:c(L(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:c(L(function(u,r,n,d,k,t,K){var i=t.length-1;switch(k){case 4:d.getLogger().debug("Rule: separator (NL) ");break;case 5:d.getLogger().debug("Rule: separator (Space) ");break;case 6:d.getLogger().debug("Rule: separator (EOF) ");break;case 7:d.getLogger().debug("Rule: hierarchy: ",t[i-1]),d.setHierarchy(t[i-1]);break;case 8:d.getLogger().debug("Stop NL ");break;case 9:d.getLogger().debug("Stop EOF ");break;case 10:d.getLogger().debug("Stop NL2 ");break;case 11:d.getLogger().debug("Stop EOF2 ");break;case 12:d.getLogger().debug("Rule: statement: ",t[i]),typeof t[i].length=="number"?this.$=t[i]:this.$=[t[i]];break;case 13:d.getLogger().debug("Rule: statement #2: ",t[i-1]),this.$=[t[i-1]].concat(t[i]);break;case 14:d.getLogger().debug("Rule: link: ",t[i],u),this.$={edgeTypeStr:t[i],label:""};break;case 15:d.getLogger().debug("Rule: LABEL link: ",t[i-3],t[i-1],t[i]),this.$={edgeTypeStr:t[i],label:t[i-1]};break;case 18:const F=parseInt(t[i]),U=d.generateId();this.$={id:U,type:"space",label:"",width:F,children:[]};break;case 23:d.getLogger().debug("Rule: (nodeStatement link node) ",t[i-2],t[i-1],t[i]," typestr: ",t[i-1].edgeTypeStr);const te=d.edgeStrToEdgeData(t[i-1].edgeTypeStr),H=d.edgeStrToEdgeStartData(t[i-1].edgeTypeStr),se=d.edgeStrToThickness(t[i-1].edgeTypeStr),N=d.edgeStrToPattern(t[i-1].edgeTypeStr);this.$=[{id:t[i-2].id,label:t[i-2].label,type:t[i-2].type,directions:t[i-2].directions},{id:t[i-2].id+"-"+t[i].id,start:t[i-2].id,end:t[i].id,label:t[i-1].label,type:"edge",thickness:se,pattern:N,directions:t[i].directions,arrowTypeEnd:te,arrowTypeStart:H},{id:t[i].id,label:t[i].label,type:d.typeStr2Type(t[i].typeStr),directions:t[i].directions}];break;case 24:d.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[i-1],t[i]),this.$={id:t[i-1].id,label:t[i-1].label,type:d.typeStr2Type(t[i-1].typeStr),directions:t[i-1].directions,widthInColumns:parseInt(t[i],10)};break;case 25:d.getLogger().debug("Rule: nodeStatement (node) ",t[i]),this.$={id:t[i].id,label:t[i].label,type:d.typeStr2Type(t[i].typeStr),directions:t[i].directions,widthInColumns:1};break;case 26:d.getLogger().debug("APA123",this?this:"na"),d.getLogger().debug("COLUMNS: ",t[i]),this.$={type:"column-setting",columns:t[i]==="auto"?-1:parseInt(t[i])};break;case 27:d.getLogger().debug("Rule: id-block statement : ",t[i-2],t[i-1]),d.generateId(),this.$={...t[i-2],type:"composite",children:t[i-1]};break;case 28:d.getLogger().debug("Rule: blockStatement : ",t[i-2],t[i-1],t[i]);const A=d.generateId();this.$={id:A,type:"composite",label:"",children:t[i-1]};break;case 29:d.getLogger().debug("Rule: node (NODE_ID separator): ",t[i]),this.$={id:t[i]};break;case 30:d.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[i-1],t[i]),this.$={id:t[i-1],label:t[i].label,typeStr:t[i].typeStr,directions:t[i].directions};break;case 31:d.getLogger().debug("Rule: dirList: ",t[i]),this.$=[t[i]];break;case 32:d.getLogger().debug("Rule: dirList: ",t[i-1],t[i]),this.$=[t[i-1]].concat(t[i]);break;case 33:d.getLogger().debug("Rule: nodeShapeNLabel: ",t[i-2],t[i-1],t[i]),this.$={typeStr:t[i-2]+t[i],label:t[i-1]};break;case 34:d.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[i-3],t[i-2]," #3:",t[i-1],t[i]),this.$={typeStr:t[i-3]+t[i],label:t[i-2],directions:t[i-1]};break;case 35:case 36:this.$={type:"classDef",id:t[i-1].trim(),css:t[i].trim()};break;case 37:this.$={type:"applyClass",id:t[i-1].trim(),styleClass:t[i].trim()};break;case 38:this.$={type:"applyStyles",id:t[i-1].trim(),stylesStr:t[i].trim()};break}},"anonymous"),"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:o,11:3,13:4,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:p,39:s,43:g,46:x},{8:[1,20]},e(y,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:o,21:l,28:a,29:h,31:p,39:s,43:g,46:x}),e(b,[2,16],{14:22,15:f,16:m}),e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,22]),e(_,[2,25],{27:[1,25]}),e(b,[2,26]),{19:26,26:12,31:p},{10:o,11:27,13:4,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:p,39:s,43:g,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(y,[2,13]),{26:35,31:p},{31:[2,14]},{17:[1,36]},e(_,[2,24]),{10:o,11:37,13:4,14:22,15:f,16:m,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:p,39:s,43:g,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(_,[2,23]),{18:[1,45]},{30:[1,46]},e(b,[2,28]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),{36:[1,47]},{33:48,34:D},{15:[1,50]},e(b,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:D,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:c(L(function(u,r){if(r.recoverable)this.trace(u);else{var n=new Error(u);throw n.hash=r,n}},"parseError"),"parseError"),parse:c(L(function(u){var r=this,n=[0],d=[],k=[null],t=[],K=this.table,i="",F=0,U=0,te=2,H=1,se=t.slice.call(arguments,1),N=Object.create(this.lexer),A={yy:{}};for(var re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,re)&&(A.yy[re]=this.yy[re]);N.setInput(u,A.yy),A.yy.lexer=N,A.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var ie=N.yylloc;t.push(ie);var Ae=N.options&&N.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function De(C){n.length=n.length-2*C,k.length=k.length-C,t.length=t.length-C}L(De,"popStack"),c(De,"popStack");function ne(){var C;return C=d.pop()||N.lex()||H,typeof C!="number"&&(C instanceof Array&&(d=C,C=d.pop()),C=r.symbols_[C]||C),C}L(ne,"lex"),c(ne,"lex");for(var I,P,z,ae,M={},X,R,Ne,G;;){if(P=n[n.length-1],this.defaultActions[P]?z=this.defaultActions[P]:((I===null||typeof I>"u")&&(I=ne()),z=K[P]&&K[P][I]),typeof z>"u"||!z.length||!z[0]){var oe="";G=[];for(X in K[P])this.terminals_[X]&&X>te&&G.push("'"+this.terminals_[X]+"'");N.showPosition?oe="Parse error on line "+(F+1)+`:
1
+ import{a as c,M as V,ah as Re,r as Pe,ad as E,k as Fe,aC as Me,N as Ce,G as Ke,a0 as Ye,a1 as We,aq as Ve,l as je,i as Ue,p as He,S as Xe,a3 as Oe,ar as Ge}from"./CqiIZBSl.js";import{g as qe}from"./fdlSdJMU.js";import{c3 as q,g as L}from"./CobcHKt3.js";var ce=(function(){var e=c(function(O,u,r,n){for(r=r||{},n=O.length;n--;r[O[n]]=u);return r},"o"),o=[1,15],l=[1,7],a=[1,13],h=[1,14],p=[1,19],s=[1,16],g=[1,17],x=[1,18],y=[8,30],b=[8,10,21,28,29,30,31,39,43,46],f=[1,23],m=[1,24],_=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],D=[1,49],w={trace:c(L(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:c(L(function(u,r,n,d,k,t,K){var i=t.length-1;switch(k){case 4:d.getLogger().debug("Rule: separator (NL) ");break;case 5:d.getLogger().debug("Rule: separator (Space) ");break;case 6:d.getLogger().debug("Rule: separator (EOF) ");break;case 7:d.getLogger().debug("Rule: hierarchy: ",t[i-1]),d.setHierarchy(t[i-1]);break;case 8:d.getLogger().debug("Stop NL ");break;case 9:d.getLogger().debug("Stop EOF ");break;case 10:d.getLogger().debug("Stop NL2 ");break;case 11:d.getLogger().debug("Stop EOF2 ");break;case 12:d.getLogger().debug("Rule: statement: ",t[i]),typeof t[i].length=="number"?this.$=t[i]:this.$=[t[i]];break;case 13:d.getLogger().debug("Rule: statement #2: ",t[i-1]),this.$=[t[i-1]].concat(t[i]);break;case 14:d.getLogger().debug("Rule: link: ",t[i],u),this.$={edgeTypeStr:t[i],label:""};break;case 15:d.getLogger().debug("Rule: LABEL link: ",t[i-3],t[i-1],t[i]),this.$={edgeTypeStr:t[i],label:t[i-1]};break;case 18:const F=parseInt(t[i]),U=d.generateId();this.$={id:U,type:"space",label:"",width:F,children:[]};break;case 23:d.getLogger().debug("Rule: (nodeStatement link node) ",t[i-2],t[i-1],t[i]," typestr: ",t[i-1].edgeTypeStr);const te=d.edgeStrToEdgeData(t[i-1].edgeTypeStr),H=d.edgeStrToEdgeStartData(t[i-1].edgeTypeStr),se=d.edgeStrToThickness(t[i-1].edgeTypeStr),N=d.edgeStrToPattern(t[i-1].edgeTypeStr);this.$=[{id:t[i-2].id,label:t[i-2].label,type:t[i-2].type,directions:t[i-2].directions},{id:t[i-2].id+"-"+t[i].id,start:t[i-2].id,end:t[i].id,label:t[i-1].label,type:"edge",thickness:se,pattern:N,directions:t[i].directions,arrowTypeEnd:te,arrowTypeStart:H},{id:t[i].id,label:t[i].label,type:d.typeStr2Type(t[i].typeStr),directions:t[i].directions}];break;case 24:d.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[i-1],t[i]),this.$={id:t[i-1].id,label:t[i-1].label,type:d.typeStr2Type(t[i-1].typeStr),directions:t[i-1].directions,widthInColumns:parseInt(t[i],10)};break;case 25:d.getLogger().debug("Rule: nodeStatement (node) ",t[i]),this.$={id:t[i].id,label:t[i].label,type:d.typeStr2Type(t[i].typeStr),directions:t[i].directions,widthInColumns:1};break;case 26:d.getLogger().debug("APA123",this?this:"na"),d.getLogger().debug("COLUMNS: ",t[i]),this.$={type:"column-setting",columns:t[i]==="auto"?-1:parseInt(t[i])};break;case 27:d.getLogger().debug("Rule: id-block statement : ",t[i-2],t[i-1]),d.generateId(),this.$={...t[i-2],type:"composite",children:t[i-1]};break;case 28:d.getLogger().debug("Rule: blockStatement : ",t[i-2],t[i-1],t[i]);const A=d.generateId();this.$={id:A,type:"composite",label:"",children:t[i-1]};break;case 29:d.getLogger().debug("Rule: node (NODE_ID separator): ",t[i]),this.$={id:t[i]};break;case 30:d.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[i-1],t[i]),this.$={id:t[i-1],label:t[i].label,typeStr:t[i].typeStr,directions:t[i].directions};break;case 31:d.getLogger().debug("Rule: dirList: ",t[i]),this.$=[t[i]];break;case 32:d.getLogger().debug("Rule: dirList: ",t[i-1],t[i]),this.$=[t[i-1]].concat(t[i]);break;case 33:d.getLogger().debug("Rule: nodeShapeNLabel: ",t[i-2],t[i-1],t[i]),this.$={typeStr:t[i-2]+t[i],label:t[i-1]};break;case 34:d.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[i-3],t[i-2]," #3:",t[i-1],t[i]),this.$={typeStr:t[i-3]+t[i],label:t[i-2],directions:t[i-1]};break;case 35:case 36:this.$={type:"classDef",id:t[i-1].trim(),css:t[i].trim()};break;case 37:this.$={type:"applyClass",id:t[i-1].trim(),styleClass:t[i].trim()};break;case 38:this.$={type:"applyStyles",id:t[i-1].trim(),stylesStr:t[i].trim()};break}},"anonymous"),"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:o,11:3,13:4,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:p,39:s,43:g,46:x},{8:[1,20]},e(y,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:o,21:l,28:a,29:h,31:p,39:s,43:g,46:x}),e(b,[2,16],{14:22,15:f,16:m}),e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,22]),e(_,[2,25],{27:[1,25]}),e(b,[2,26]),{19:26,26:12,31:p},{10:o,11:27,13:4,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:p,39:s,43:g,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(y,[2,13]),{26:35,31:p},{31:[2,14]},{17:[1,36]},e(_,[2,24]),{10:o,11:37,13:4,14:22,15:f,16:m,19:5,20:6,21:l,22:8,23:9,24:10,25:11,26:12,28:a,29:h,31:p,39:s,43:g,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(_,[2,23]),{18:[1,45]},{30:[1,46]},e(b,[2,28]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),{36:[1,47]},{33:48,34:D},{15:[1,50]},e(b,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:D,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:c(L(function(u,r){if(r.recoverable)this.trace(u);else{var n=new Error(u);throw n.hash=r,n}},"parseError"),"parseError"),parse:c(L(function(u){var r=this,n=[0],d=[],k=[null],t=[],K=this.table,i="",F=0,U=0,te=2,H=1,se=t.slice.call(arguments,1),N=Object.create(this.lexer),A={yy:{}};for(var re in this.yy)Object.prototype.hasOwnProperty.call(this.yy,re)&&(A.yy[re]=this.yy[re]);N.setInput(u,A.yy),A.yy.lexer=N,A.yy.parser=this,typeof N.yylloc>"u"&&(N.yylloc={});var ie=N.yylloc;t.push(ie);var Ae=N.options&&N.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function De(C){n.length=n.length-2*C,k.length=k.length-C,t.length=t.length-C}L(De,"popStack"),c(De,"popStack");function ne(){var C;return C=d.pop()||N.lex()||H,typeof C!="number"&&(C instanceof Array&&(d=C,C=d.pop()),C=r.symbols_[C]||C),C}L(ne,"lex"),c(ne,"lex");for(var I,P,z,ae,M={},X,R,Ne,G;;){if(P=n[n.length-1],this.defaultActions[P]?z=this.defaultActions[P]:((I===null||typeof I>"u")&&(I=ne()),z=K[P]&&K[P][I]),typeof z>"u"||!z.length||!z[0]){var oe="";G=[];for(X in K[P])this.terminals_[X]&&X>te&&G.push("'"+this.terminals_[X]+"'");N.showPosition?oe="Parse error on line "+(F+1)+`:
2
2
  `+N.showPosition()+`
3
3
  Expecting `+G.join(", ")+", got '"+(this.terminals_[I]||I)+"'":oe="Parse error on line "+(F+1)+": Unexpected "+(I==H?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(oe,{text:N.match,token:this.terminals_[I]||I,line:N.yylineno,loc:ie,expected:G})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+I);switch(z[0]){case 1:n.push(I),k.push(N.yytext),t.push(N.yylloc),n.push(z[1]),I=null,U=N.yyleng,i=N.yytext,F=N.yylineno,ie=N.yylloc;break;case 2:if(R=this.productions_[z[1]][1],M.$=k[k.length-R],M._$={first_line:t[t.length-(R||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(R||1)].first_column,last_column:t[t.length-1].last_column},Ae&&(M._$.range=[t[t.length-(R||1)].range[0],t[t.length-1].range[1]]),ae=this.performAction.apply(M,[i,U,F,A.yy,z[1],k,t].concat(se)),typeof ae<"u")return ae;R&&(n=n.slice(0,-1*R*2),k=k.slice(0,-1*R),t=t.slice(0,-1*R)),n.push(this.productions_[z[1]][0]),k.push(M.$),t.push(M._$),Ne=K[n[n.length-2]][n[n.length-1]],n.push(Ne);break;case 3:return!0}}return!0},"parse"),"parse")},T=(function(){var O={EOF:1,parseError:c(L(function(r,n){if(this.yy.parser)this.yy.parser.parseError(r,n);else throw new Error(r)},"parseError"),"parseError"),setInput:c(function(u,r){return this.yy=r||this.yy||{},this._input=u,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:c(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var r=u.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},"input"),unput:c(function(u){var r=u.length,n=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var d=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),n.length-1&&(this.yylineno-=n.length-1);var k=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:n?(n.length===d.length?this.yylloc.first_column:0)+d[d.length-n.length].length-n[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[k[0],k[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(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:c(function(u){this.unput(this.match.slice(u))},"less"),pastInput:c(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var u=this.pastInput(),r=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{aF as ue,K as fe,O as he,aI as de,L as ge,aG as ye,a as _,M as Kt,aE as xe,d as pe,a8 as me,aR as Gt,aa as be,w as ve,r as Se,k as Ie,j as Me,y as ke}from"./D2zf67XA.js";import{c3 as yt,g as v}from"./BejAw64w.js";var qt=1e-10;function it(t,n){const s=Wt(t),e=s.filter(l=>Ut(l,t));let i=0,o=0;const r=[];if(e.length>1){const l=vt(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-l.x,a.y-l.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];o+=(f.x+a.x)*(a.y-f.y);const x={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let h=null;for(let b=0;b<a.parentIndex.length;++b)if(f.parentIndex.includes(a.parentIndex[b])){const p=t[a.parentIndex[b]],k=Math.atan2(a.x-p.x,a.y-p.y),z=Math.atan2(f.x-p.x,f.y-p.y);let T=z-k;T<0&&(T+=2*Math.PI);const w=z-T/2;let g=K(x,{x:p.x+p.radius*Math.sin(w),y:p.y+p.radius*Math.cos(w)});g>p.radius*2&&(g=p.radius*2),(h==null||h.width>g)&&(h={circle:p,width:g,p1:a,p2:f,large:g>p.radius,sweep:!0})}h!=null&&(r.push(h),i+=at(h.circle.radius,h.width),f=a)}}else{let l=t[0];for(let u=1;u<t.length;++u)t[u].radius<l.radius&&(l=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(K(t[u],l)>Math.abs(l.radius-t[u].radius)){f=!0;break}f?i=o=0:(i=l.radius*l.radius*Math.PI,r.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-qt,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=r,n.innerPoints=e,n.intersectionPoints=s),i+o}v(it,"intersectionArea");function Ut(t,n){return n.every(s=>K(t,s)<s.radius+qt)}v(Ut,"containedInCircles");function Wt(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=bt(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}v(Wt,"getIntersectionPoints");function at(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}v(at,"circleArea");function K(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}v(K,"distance");function dt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return at(t,e)+at(n,i)}v(dt,"circleOverlap");function bt(t,n){const s=K(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),r=Math.sqrt(e*e-o*o),l=t.x+o*(n.x-t.x)/s,f=t.y+o*(n.y-t.y)/s,u=-(n.y-t.y)*(r/s),a=-(n.x-t.x)*(r/s);return[{x:l+u,y:f-a},{x:l-u,y:f+a}]}v(bt,"circleCircleIntersection");function vt(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}v(vt,"getCenter");function Ht(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,r=t(n),l=t(s);let f=s-n;if(r*l>0)throw"Initial bisect points must have opposite signs";if(r===0)return n;if(l===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,x=t(a);if(x*r>=0&&(n=a),Math.abs(f)<o||x===0)return a}return n+f}v(Ht,"bisect");function lt(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}v(lt,"zeros");function xt(t,n){return lt(t).map(()=>lt(n))}v(xt,"zerosM");function tt(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}v(tt,"dot");function ct(t){return Math.sqrt(tt(t,t))}v(ct,"norm2");function ut(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}v(ut,"scale");function Z(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}v(Z,"weightedSum");function St(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,r=s.minErrorDelta||1e-6,l=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,x=s.sigma!==void 0?s.sigma:.5;let h;const b=n.length,p=new Array(b+1);p[0]=n,p[0].fx=t(n),p[0].id=0;for(let S=0;S<b;++S){const c=n.slice();c[S]=c[S]?c[S]*i:o,p[S+1]=c,p[S+1].fx=t(c),p[S+1].id=S+1}function k(S){for(let c=0;c<S.length;c++)p[b][c]=S[c];p[b].fx=S.fx}v(k,"updateSimplex");const z=v((S,c)=>S.fx-c.fx,"sortOrder"),T=n.slice(),w=n.slice(),g=n.slice(),m=n.slice();for(let S=0;S<e;++S){if(p.sort(z),s.history){const y=p.map(d=>{const D=d.slice();return D.fx=d.fx,D.id=d.id,D});y.sort((d,D)=>d.id-D.id),s.history.push({x:p[0].slice(),fx:p[0].fx,simplex:y})}h=0;for(let y=0;y<b;++y)h=Math.max(h,Math.abs(p[0][y]-p[1][y]));if(Math.abs(p[0].fx-p[b].fx)<r&&h<l)break;for(let y=0;y<b;++y){T[y]=0;for(let d=0;d<b;++d)T[y]+=p[d][y];T[y]/=b}const c=p[b];if(Z(w,1+f,T,-f,c),w.fx=t(w),w.fx<p[0].fx)Z(m,1+u,T,-u,c),m.fx=t(m),m.fx<w.fx?k(m):k(w);else if(w.fx>=p[b-1].fx){let y=!1;if(w.fx>c.fx?(Z(g,1+a,T,-a,c),g.fx=t(g),g.fx<c.fx?k(g):y=!0):(Z(g,1-a*f,T,a*f,c),g.fx=t(g),g.fx<w.fx?k(g):y=!0),y){if(x>=1)break;for(let d=1;d<p.length;++d)Z(p[d],1-x,p[0],x,p[d]),p[d].fx=t(p[d])}}else k(w)}return p.sort(z),{fx:p[0].fx,x:p[0]}}v(St,"nelderMead");function Yt(t,n,s,e,i,o,r){const l=s.fx,f=tt(s.fxprime,n);let u=l,a=l,x=f,h=0;i=i||1,o=o||1e-6,r=r||.1;function b(p,k,z){for(let T=0;T<16;++T)if(i=(p+k)/2,Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),x=tt(e.fxprime,n),u>l+o*i*f||u>=z)k=i;else{if(Math.abs(x)<=-r*f)return i;x*(k-p)>=0&&(k=p),p=i,z=u}return 0}v(b,"zoom");for(let p=0;p<10;++p){if(Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),x=tt(e.fxprime,n),u>l+o*i*f||p&&u>=a)return b(h,i,a);if(Math.abs(x)<=-r*f)return i;if(x>=0)return b(i,h,u);a=u,h=i,i*=2}return i}v(Yt,"wolfeLineSearch");function Xt(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let r,l,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),r=e.fxprime.slice(),ut(r,e.fxprime,-1);for(let a=0;a<u;++a){if(f=Yt(t,r,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ut(r,e.fxprime,-1);else{Z(o,1,i.fxprime,-1,e.fxprime);const x=tt(e.fxprime,e.fxprime),h=Math.max(0,tt(o,i.fxprime)/x);Z(r,h,r,-1,i.fxprime),l=e,e=i,i=l}if(ct(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}v(Xt,"conjugateGradient");function It(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||te,e=n.lossFunction||et,i=Jt(t,n),o=s(i,n),r=Object.keys(o),l=[];for(const a of r)l.push(o[a].x),l.push(o[a].y);const u=St(a=>{const x={};for(let h=0;h<r.length;++h){const b=r[h];x[b]={x:a[2*h],y:a[2*h+1],radius:o[b].radius}}return e(x,i)},l,n).x;for(let a=0;a<r.length;++a){const x=r[a];o[x].x=u[2*a],o[x].y=u[2*a+1]}return o}v(It,"venn");var Zt=1e-10;function ft(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Zt?Math.abs(t-n):Ht(e=>dt(t,n,e)-s,0,t+n)}v(ft,"distanceFromIntersectArea");function Jt(t,n={}){const s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(v(i,"toKey"),s){const l=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);l.set(a,f.size+(l.get(a)||0));for(let x=u+1;x<f.sets.length;x++){const h=String(f.sets[x]),b=`${a};${h}`,p=`${h};${a}`;l.set(b,f.size+(l.get(b)||0)),l.set(p,f.size+(l.get(p)||0))}}for(const f of e)f.sets.length<3&&(f.size=l.get(i(f.sets)))}const o=[],r=new Set;for(const l of e)if(l.sets.length===1)o.push(l.sets[0]);else if(l.sets.length===2){const f=l.sets[0],u=l.sets[1];r.add(i(l.sets)),r.add(i([u,f]))}o.sort((l,f)=>l===f?0:l<f?-1:1);for(let l=0;l<o.length;++l){const f=o[l];for(let u=l+1;u<o.length;++u){const a=o[u];r.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}v(Jt,"addMissingAreas");function Qt(t,n,s){const e=xt(n.length,n.length),i=xt(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const r=s[o.sets[0]],l=s[o.sets[1]],f=Math.sqrt(n[r].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=ft(f,u,o.size);e[r][l]=e[l][r]=a;let x=0;o.size+1e-10>=Math.min(n[r].size,n[l].size)?x=1:o.size<=1e-10&&(x=-1),i[r][l]=i[l][r]=x}),{distances:e,constraints:i}}v(Qt,"getDistanceMatrices");function $t(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const r=t[2*o],l=t[2*o+1];for(let f=o+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],x=s[o][f],h=e[o][f],b=(u-r)*(u-r)+(a-l)*(a-l),p=Math.sqrt(b),k=b-x*x;h>0&&p<=x||h<0&&p>=x||(i+=2*k*k,n[2*o]+=4*k*(r-u),n[2*o+1]+=4*k*(l-a),n[2*f]+=4*k*(u-r),n[2*f+1]+=4*k*(a-l))}}return i}v($t,"constrainedMDSGradient");function te(t,n={}){let s=ne(t,n);const e=n.lossFunction||et;if(t.length>=8){const i=ee(t,n),o=e(i,t),r=e(s,t);o+1e-8<r&&(s=i)}return s}v(te,"bestInitialLayout");function ee(t,n={}){const s=n.restarts||10,e=[],i={};for(const h of t)h.sets.length===1&&(i[h.sets[0]]=e.length,e.push(h));let{distances:o,constraints:r}=Qt(t,e,i);const l=ct(o.map(ct))/o.length;o=o.map(h=>h.map(b=>b/l));const f=v((h,b)=>$t(h,b,o,r),"obj");let u=null;for(let h=0;h<s;++h){const b=lt(o.length*2).map(Math.random),p=Xt(f,b,n);(!u||p.fx<u.fx)&&(u=p)}const a=u.x,x={};for(let h=0;h<e.length;++h){const b=e[h];x[b.sets[0]]={x:a[2*h]*l,y:a[2*h+1]*l,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const h of n.history)ut(h.x,l);return x}v(ee,"constrainedMDSLayout");function ne(t,n){const s=n&&n.lossFunction?n.lossFunction:et,e={},i={};for(const x of t)if(x.sets.length===1){const h=x.sets[0];e[h]={x:1e10,y:1e10,rowid:e.length,size:x.size,radius:Math.sqrt(x.size/Math.PI)},i[h]=[]}t=t.filter(x=>x.sets.length===2);for(const x of t){let h=x.weight!=null?x.weight:1;const b=x.sets[0],p=x.sets[1];x.size+Zt>=Math.min(e[b].size,e[p].size)&&(h=0),i[b].push({set:p,size:x.size,weight:h}),i[p].push({set:b,size:x.size,weight:h})}const o=[];Object.keys(i).forEach(x=>{let h=0;for(let b=0;b<i[x].length;++b)h+=i[x][b].size*i[x][b].weight;o.push({set:x,size:h})});function r(x,h){return h.size-x.size}v(r,"sortOrder"),o.sort(r);const l={};function f(x){return x.set in l}v(f,"isPositioned");function u(x,h){e[h].x=x.x,e[h].y=x.y,l[h]=!0}v(u,"positionSet"),u({x:0,y:0},o[0].set);for(let x=1;x<o.length;++x){const h=o[x].set,b=i[h].filter(f),p=e[h];if(b.sort(r),b.length===0)throw"ERROR: missing pairwise overlap information";const k=[];for(var a=0;a<b.length;++a){const w=e[b[a].set],g=ft(p.radius,w.radius,b[a].size);k.push({x:w.x+g,y:w.y}),k.push({x:w.x-g,y:w.y}),k.push({y:w.y+g,x:w.x}),k.push({y:w.y-g,x:w.x});for(let m=a+1;m<b.length;++m){const S=e[b[m].set],c=ft(p.radius,S.radius,b[m].size),y=bt({x:w.x,y:w.y,radius:g},{x:S.x,y:S.y,radius:c});k.push(...y)}}let z=1e50,T=k[0];for(const w of k){e[h].x=w.x,e[h].y=w.y;const g=s(e,t);g<z&&(z=g,T=w)}u(T,h)}return e}v(ne,"greedyLayout");function et(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const r=t[e.sets[0]],l=t[e.sets[1]];i=dt(r.radius,l.radius,K(r,l))}else i=it(e.sets.map(r=>t[r]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}v(et,"lossFunction");function Mt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const l=t[e.sets[0]],f=t[e.sets[1]];i=dt(l.radius,f.radius,K(l,f))}else i=it(e.sets.map(l=>t[l]));const o=e.weight!=null?e.weight:1,r=Math.log((i+1)/(e.size+1));s+=o*r*r}return s}v(Mt,"logRatioLossFunction");function se(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const r of t)r.x-=i,r.y-=o}if(t.length===2&&K(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),r=Math.sin(i);for(const l of t){const f=l.x,u=l.y;l.x=o*f-r*u,l.y=r*f+o*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const r of t){var e=(r.x+o*r.y)/(1+o*o);r.x=2*e-r.x,r.y=2*e*o-r.y}}}}v(se,"orientateCircles");function ie(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}v(n,"find");function s(i,o){const r=n(i),l=n(o);r.parent=l}v(s,"union");for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const r=t[i].radius+t[o].radius;K(t[i],t[o])+1e-10<r&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}v(ie,"disjointCluster");function ht(t){const n=v(s=>{const e=t.reduce((o,r)=>Math.max(o,r[s]+r.radius),Number.NEGATIVE_INFINITY),i=t.reduce((o,r)=>Math.min(o,r[s]-r.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}},"minMax");return{xRange:n("x"),yRange:n("y")}}v(ht,"getBoundingBox");function kt(t,n,s){n==null&&(n=Math.PI/2);let e=Tt(t).map(u=>Object.assign({},u));const i=ie(e);for(const u of i){se(u,n,s);const a=ht(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let o=e.bounds;const r=(o.xRange.max-o.xRange.min)/50;function l(u,a,x){if(!u)return;const h=u.bounds;let b,p;if(a)b=o.xRange.max-h.xRange.min+r;else{b=o.xRange.max-h.xRange.max;const k=(h.xRange.max-h.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;k<0&&(b+=k)}if(x)p=o.yRange.max-h.yRange.min+r;else{p=o.yRange.max-h.yRange.max;const k=(h.yRange.max-h.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;k<0&&(p+=k)}for(const k of u)k.x+=b,k.y+=p,e.push(k)}v(l,"addCluster");let f=1;for(;f<i.length;)l(i[f],!0,!1),l(i[f+1],!1,!0),l(i[f+2],!0,!0),f+=3,o=ht(e);return _t(e)}v(kt,"normalizeSolution");function wt(t,n,s,e,i){const o=Tt(t);n-=2*e,s-=2*e;const{xRange:r,yRange:l}=ht(o);if(r.max===r.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),t;let f,u;if(i){const b=Math.sqrt(i/Math.PI)*2;f=n/b,u=s/b}else f=n/(r.max-r.min),u=s/(l.max-l.min);const a=Math.min(u,f),x=(n-(r.max-r.min)*a)/2,h=(s-(l.max-l.min)*a)/2;return _t(o.map(b=>({radius:a*b.radius,x:e+x+(b.x-r.min)*a,y:e+h+(b.y-l.min)*a,setid:b.setid})))}v(wt,"scaleSolution");function _t(t){const n={};for(const s of t)n[s.setid]=s;return n}v(_t,"toObjectNotation");function Tt(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}v(Tt,"fromObjectNotation");function oe(t={}){let n=!1,s=600,e=350,i=15,o=1e3,r=Math.PI/2,l=!0,f=null,u=!0,a=!0,x=null,h=null,b=!1,p=null,k=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,z={},T=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],w=0,g=v(function(y){if(y in z)return z[y];var d=z[y]=T[w];return w+=1,w>=T.length&&(w=0),d},"colours"),m=It,S=et;function c(y){let d=y.datum();const D=new Set;d.forEach(M=>{M.size==0&&M.sets.length==1&&D.add(M.sets[0])}),d=d.filter(M=>!M.sets.some(F=>D.has(F)));let I={},O={};if(d.length>0){let M=m(d,{lossFunction:S,distinct:b});l&&(M=kt(M,r,h)),I=wt(M,s,e,i,f),O=zt(I,d,k)}const U={};d.forEach(M=>{M.label&&(U[M.sets]=M.label)});function B(M){if(M.sets in U)return U[M.sets];if(M.sets.length==1)return""+M.sets[0]}v(B,"label"),y.selectAll("svg").data([I]).enter().append("svg");const P=y.select("svg");n?P.attr("viewBox",`0 0 ${s} ${e}`):P.attr("width",s).attr("height",e);const R={};let E=!1;P.selectAll(".venn-area path").each(function(M){const F=this.getAttribute("d");M.sets.length==1&&F&&!b&&(E=!0,R[M.sets[0]]=le(F))});function C(M){return F=>{const Y=M.sets.map(nt=>{let X=R[nt],Q=I[nt];return X||(X={x:s/2,y:e/2,radius:1}),Q||(Q={x:s/2,y:e/2,radius:1}),{x:X.x*(1-F)+Q.x*F,y:X.y*(1-F)+Q.y*F,radius:X.radius*(1-F)+Q.radius*F}});return pt(Y,p)}}v(C,"pathTween");const W=P.selectAll(".venn-area").data(d,M=>M.sets),V=W.enter().append("g").attr("class",M=>`venn-area venn-${M.sets.length==1?"circle":"intersection"}${M.colour||M.color?" venn-coloured":""}`).attr("data-venn-sets",M=>M.sets.join("_")),G=V.append("path"),j=V.append("text").attr("class","label").text(M=>B(M)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(G.style("fill-opacity","0").filter(M=>M.sets.length==1).style("fill",M=>M.colour?M.colour:M.color?M.color:g(M.sets)).style("fill-opacity",".25"),j.style("fill",M=>M.colour||M.color?"#FFF":t.textFill?t.textFill:M.sets.length==1?g(M.sets):"#444"));function q(M){return typeof M.transition=="function"?M.transition("venn").duration(o):M}v(q,"asTransition");let A=y;E&&typeof A.transition=="function"?(A=q(y),A.selectAll("path").attrTween("d",C)):A.selectAll("path").attr("d",M=>pt(M.sets.map(F=>I[F])),p);const N=A.selectAll("text").filter(M=>M.sets in O).text(M=>B(M)).attr("x",M=>Math.floor(O[M.sets].x)).attr("y",M=>Math.floor(O[M.sets].y));u&&(E?"on"in N?N.on("end",ot(I,B)):N.each("end",ot(I,B)):N.each(ot(I,B)));const L=q(W.exit()).remove();typeof W.transition=="function"&&L.selectAll("path").attrTween("d",C);const J=L.selectAll("text").attr("x",s/2).attr("y",e/2);return x!==null&&(j.style("font-size","0px"),N.style("font-size",x),J.style("font-size","0px")),{circles:I,textCentres:O,nodes:W,enter:V,update:A,exit:L}}return v(c,"chart"),c.wrap=function(y){return arguments.length?(u=y,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(y){return arguments.length?(s=y,c):s},c.height=function(y){return arguments.length?(e=y,c):e},c.padding=function(y){return arguments.length?(i=y,c):i},c.distinct=function(y){return arguments.length?(b=y,c):b},c.colours=function(y){return arguments.length?(g=y,c):g},c.colors=function(y){return arguments.length?(g=y,c):g},c.fontSize=function(y){return arguments.length?(x=y,c):x},c.round=function(y){return arguments.length?(p=y,c):p},c.duration=function(y){return arguments.length?(o=y,c):o},c.layoutFunction=function(y){return arguments.length?(m=y,c):m},c.normalize=function(y){return arguments.length?(l=y,c):l},c.scaleToFit=function(y){return arguments.length?(f=y,c):f},c.styled=function(y){return arguments.length?(a=y,c):a},c.orientation=function(y){return arguments.length?(r=y,c):r},c.orientationOrder=function(y){return arguments.length?(h=y,c):h},c.lossFunction=function(y){return arguments.length?(S=y==="default"?et:y==="logRatio"?Mt:y,c):S},c}v(oe,"VennDiagram");function ot(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",r=o.split(/\s+/).reverse(),f=(o.length+r.length)/3;let u=r.pop(),a=[u],x=0;const h=1.1;e.textContent=null;const b=[];function p(g){const m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}v(p,"append");let k=p(u);for(;u=r.pop(),!!u;){a.push(u);const g=a.join(" ");k.textContent=g,g.length>f&&k.getComputedTextLength()>i&&(a.pop(),k.textContent=a.join(" "),a=[u],k=p(u),x++)}const z=.35-x*h/2,T=e.getAttribute("x"),w=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",T),g.setAttribute("y",w),g.setAttribute("dy",`${z+m*h}em`)})}}v(ot,"wrapText");function rt(t,n,s){let e=n[0].radius-K(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-K(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=K(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}v(rt,"circleMargin");function Et(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],o=rt(e[0],t,n);for(let a=1;a<e.length;++a){const x=rt(e[a],t,n);x>=o&&(i=e[a],o=x)}const r=St(a=>-1*rt({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:r[0],y:r[1]};let f=!0;for(const a of t)if(K(l,a)>a.radius){f=!1;break}for(const a of n)if(K(l,a)<a.radius){f=!1;break}if(f)return l;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return it(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?Et(t,[]):vt(u.arcs.map(a=>a.p1))}v(Et,"computeTextCentre");function re(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let r=e+1;r<s.length;++r){const l=s[r],f=t[l],u=K(o,f);u+f.radius<=o.radius+1e-10?n[l].push(i):u+o.radius<=f.radius+1e-10&&n[i].push(l)}}return n}v(re,"getOverlappingCircles");function zt(t,n,s){const e={},i=re(t);for(let o=0;o<n.length;++o){const r=n[o].sets,l={},f={};for(let h=0;h<r.length;++h){l[r[h]]=!0;const b=i[r[h]];for(let p=0;p<b.length;++p)f[b[p]]=!0}const u=[],a=[];for(let h in t)h in l?u.push(t[h]):h in f||a.push(t[h]);const x=Et(u,a,s);e[r]=x,x.disjoint&&n[o].size>0&&console.log("WARNING: area "+r+" not represented on screen")}return e}v(zt,"computeTextCentres");function ae(t,n,s){const e=[];return e.push(`
1
+ import{aF as ue,K as fe,O as he,aI as de,L as ge,aG as ye,a as _,M as Kt,aE as xe,d as pe,a8 as me,aR as Gt,aa as be,w as ve,r as Se,k as Ie,j as Me,y as ke}from"./CqiIZBSl.js";import{c3 as yt,g as v}from"./CobcHKt3.js";var qt=1e-10;function it(t,n){const s=Wt(t),e=s.filter(l=>Ut(l,t));let i=0,o=0;const r=[];if(e.length>1){const l=vt(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-l.x,a.y-l.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];o+=(f.x+a.x)*(a.y-f.y);const x={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let h=null;for(let b=0;b<a.parentIndex.length;++b)if(f.parentIndex.includes(a.parentIndex[b])){const p=t[a.parentIndex[b]],k=Math.atan2(a.x-p.x,a.y-p.y),z=Math.atan2(f.x-p.x,f.y-p.y);let T=z-k;T<0&&(T+=2*Math.PI);const w=z-T/2;let g=K(x,{x:p.x+p.radius*Math.sin(w),y:p.y+p.radius*Math.cos(w)});g>p.radius*2&&(g=p.radius*2),(h==null||h.width>g)&&(h={circle:p,width:g,p1:a,p2:f,large:g>p.radius,sweep:!0})}h!=null&&(r.push(h),i+=at(h.circle.radius,h.width),f=a)}}else{let l=t[0];for(let u=1;u<t.length;++u)t[u].radius<l.radius&&(l=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(K(t[u],l)>Math.abs(l.radius-t[u].radius)){f=!0;break}f?i=o=0:(i=l.radius*l.radius*Math.PI,r.push({circle:l,p1:{x:l.x,y:l.y+l.radius},p2:{x:l.x-qt,y:l.y+l.radius},width:l.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=r,n.innerPoints=e,n.intersectionPoints=s),i+o}v(it,"intersectionArea");function Ut(t,n){return n.every(s=>K(t,s)<s.radius+qt)}v(Ut,"containedInCircles");function Wt(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=bt(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}v(Wt,"getIntersectionPoints");function at(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}v(at,"circleArea");function K(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}v(K,"distance");function dt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return at(t,e)+at(n,i)}v(dt,"circleOverlap");function bt(t,n){const s=K(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),r=Math.sqrt(e*e-o*o),l=t.x+o*(n.x-t.x)/s,f=t.y+o*(n.y-t.y)/s,u=-(n.y-t.y)*(r/s),a=-(n.x-t.x)*(r/s);return[{x:l+u,y:f-a},{x:l-u,y:f+a}]}v(bt,"circleCircleIntersection");function vt(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}v(vt,"getCenter");function Ht(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,r=t(n),l=t(s);let f=s-n;if(r*l>0)throw"Initial bisect points must have opposite signs";if(r===0)return n;if(l===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,x=t(a);if(x*r>=0&&(n=a),Math.abs(f)<o||x===0)return a}return n+f}v(Ht,"bisect");function lt(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}v(lt,"zeros");function xt(t,n){return lt(t).map(()=>lt(n))}v(xt,"zerosM");function tt(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}v(tt,"dot");function ct(t){return Math.sqrt(tt(t,t))}v(ct,"norm2");function ut(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}v(ut,"scale");function Z(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}v(Z,"weightedSum");function St(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,r=s.minErrorDelta||1e-6,l=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,x=s.sigma!==void 0?s.sigma:.5;let h;const b=n.length,p=new Array(b+1);p[0]=n,p[0].fx=t(n),p[0].id=0;for(let S=0;S<b;++S){const c=n.slice();c[S]=c[S]?c[S]*i:o,p[S+1]=c,p[S+1].fx=t(c),p[S+1].id=S+1}function k(S){for(let c=0;c<S.length;c++)p[b][c]=S[c];p[b].fx=S.fx}v(k,"updateSimplex");const z=v((S,c)=>S.fx-c.fx,"sortOrder"),T=n.slice(),w=n.slice(),g=n.slice(),m=n.slice();for(let S=0;S<e;++S){if(p.sort(z),s.history){const y=p.map(d=>{const D=d.slice();return D.fx=d.fx,D.id=d.id,D});y.sort((d,D)=>d.id-D.id),s.history.push({x:p[0].slice(),fx:p[0].fx,simplex:y})}h=0;for(let y=0;y<b;++y)h=Math.max(h,Math.abs(p[0][y]-p[1][y]));if(Math.abs(p[0].fx-p[b].fx)<r&&h<l)break;for(let y=0;y<b;++y){T[y]=0;for(let d=0;d<b;++d)T[y]+=p[d][y];T[y]/=b}const c=p[b];if(Z(w,1+f,T,-f,c),w.fx=t(w),w.fx<p[0].fx)Z(m,1+u,T,-u,c),m.fx=t(m),m.fx<w.fx?k(m):k(w);else if(w.fx>=p[b-1].fx){let y=!1;if(w.fx>c.fx?(Z(g,1+a,T,-a,c),g.fx=t(g),g.fx<c.fx?k(g):y=!0):(Z(g,1-a*f,T,a*f,c),g.fx=t(g),g.fx<w.fx?k(g):y=!0),y){if(x>=1)break;for(let d=1;d<p.length;++d)Z(p[d],1-x,p[0],x,p[d]),p[d].fx=t(p[d])}}else k(w)}return p.sort(z),{fx:p[0].fx,x:p[0]}}v(St,"nelderMead");function Yt(t,n,s,e,i,o,r){const l=s.fx,f=tt(s.fxprime,n);let u=l,a=l,x=f,h=0;i=i||1,o=o||1e-6,r=r||.1;function b(p,k,z){for(let T=0;T<16;++T)if(i=(p+k)/2,Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),x=tt(e.fxprime,n),u>l+o*i*f||u>=z)k=i;else{if(Math.abs(x)<=-r*f)return i;x*(k-p)>=0&&(k=p),p=i,z=u}return 0}v(b,"zoom");for(let p=0;p<10;++p){if(Z(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),x=tt(e.fxprime,n),u>l+o*i*f||p&&u>=a)return b(h,i,a);if(Math.abs(x)<=-r*f)return i;if(x>=0)return b(i,h,u);a=u,h=i,i*=2}return i}v(Yt,"wolfeLineSearch");function Xt(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let r,l,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),r=e.fxprime.slice(),ut(r,e.fxprime,-1);for(let a=0;a<u;++a){if(f=Yt(t,r,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ut(r,e.fxprime,-1);else{Z(o,1,i.fxprime,-1,e.fxprime);const x=tt(e.fxprime,e.fxprime),h=Math.max(0,tt(o,i.fxprime)/x);Z(r,h,r,-1,i.fxprime),l=e,e=i,i=l}if(ct(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}v(Xt,"conjugateGradient");function It(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||te,e=n.lossFunction||et,i=Jt(t,n),o=s(i,n),r=Object.keys(o),l=[];for(const a of r)l.push(o[a].x),l.push(o[a].y);const u=St(a=>{const x={};for(let h=0;h<r.length;++h){const b=r[h];x[b]={x:a[2*h],y:a[2*h+1],radius:o[b].radius}}return e(x,i)},l,n).x;for(let a=0;a<r.length;++a){const x=r[a];o[x].x=u[2*a],o[x].y=u[2*a+1]}return o}v(It,"venn");var Zt=1e-10;function ft(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Zt?Math.abs(t-n):Ht(e=>dt(t,n,e)-s,0,t+n)}v(ft,"distanceFromIntersectArea");function Jt(t,n={}){const s=n.distinct,e=t.map(l=>Object.assign({},l));function i(l){return l.join(";")}if(v(i,"toKey"),s){const l=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);l.set(a,f.size+(l.get(a)||0));for(let x=u+1;x<f.sets.length;x++){const h=String(f.sets[x]),b=`${a};${h}`,p=`${h};${a}`;l.set(b,f.size+(l.get(b)||0)),l.set(p,f.size+(l.get(p)||0))}}for(const f of e)f.sets.length<3&&(f.size=l.get(i(f.sets)))}const o=[],r=new Set;for(const l of e)if(l.sets.length===1)o.push(l.sets[0]);else if(l.sets.length===2){const f=l.sets[0],u=l.sets[1];r.add(i(l.sets)),r.add(i([u,f]))}o.sort((l,f)=>l===f?0:l<f?-1:1);for(let l=0;l<o.length;++l){const f=o[l];for(let u=l+1;u<o.length;++u){const a=o[u];r.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}v(Jt,"addMissingAreas");function Qt(t,n,s){const e=xt(n.length,n.length),i=xt(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const r=s[o.sets[0]],l=s[o.sets[1]],f=Math.sqrt(n[r].size/Math.PI),u=Math.sqrt(n[l].size/Math.PI),a=ft(f,u,o.size);e[r][l]=e[l][r]=a;let x=0;o.size+1e-10>=Math.min(n[r].size,n[l].size)?x=1:o.size<=1e-10&&(x=-1),i[r][l]=i[l][r]=x}),{distances:e,constraints:i}}v(Qt,"getDistanceMatrices");function $t(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const r=t[2*o],l=t[2*o+1];for(let f=o+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],x=s[o][f],h=e[o][f],b=(u-r)*(u-r)+(a-l)*(a-l),p=Math.sqrt(b),k=b-x*x;h>0&&p<=x||h<0&&p>=x||(i+=2*k*k,n[2*o]+=4*k*(r-u),n[2*o+1]+=4*k*(l-a),n[2*f]+=4*k*(u-r),n[2*f+1]+=4*k*(a-l))}}return i}v($t,"constrainedMDSGradient");function te(t,n={}){let s=ne(t,n);const e=n.lossFunction||et;if(t.length>=8){const i=ee(t,n),o=e(i,t),r=e(s,t);o+1e-8<r&&(s=i)}return s}v(te,"bestInitialLayout");function ee(t,n={}){const s=n.restarts||10,e=[],i={};for(const h of t)h.sets.length===1&&(i[h.sets[0]]=e.length,e.push(h));let{distances:o,constraints:r}=Qt(t,e,i);const l=ct(o.map(ct))/o.length;o=o.map(h=>h.map(b=>b/l));const f=v((h,b)=>$t(h,b,o,r),"obj");let u=null;for(let h=0;h<s;++h){const b=lt(o.length*2).map(Math.random),p=Xt(f,b,n);(!u||p.fx<u.fx)&&(u=p)}const a=u.x,x={};for(let h=0;h<e.length;++h){const b=e[h];x[b.sets[0]]={x:a[2*h]*l,y:a[2*h+1]*l,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const h of n.history)ut(h.x,l);return x}v(ee,"constrainedMDSLayout");function ne(t,n){const s=n&&n.lossFunction?n.lossFunction:et,e={},i={};for(const x of t)if(x.sets.length===1){const h=x.sets[0];e[h]={x:1e10,y:1e10,rowid:e.length,size:x.size,radius:Math.sqrt(x.size/Math.PI)},i[h]=[]}t=t.filter(x=>x.sets.length===2);for(const x of t){let h=x.weight!=null?x.weight:1;const b=x.sets[0],p=x.sets[1];x.size+Zt>=Math.min(e[b].size,e[p].size)&&(h=0),i[b].push({set:p,size:x.size,weight:h}),i[p].push({set:b,size:x.size,weight:h})}const o=[];Object.keys(i).forEach(x=>{let h=0;for(let b=0;b<i[x].length;++b)h+=i[x][b].size*i[x][b].weight;o.push({set:x,size:h})});function r(x,h){return h.size-x.size}v(r,"sortOrder"),o.sort(r);const l={};function f(x){return x.set in l}v(f,"isPositioned");function u(x,h){e[h].x=x.x,e[h].y=x.y,l[h]=!0}v(u,"positionSet"),u({x:0,y:0},o[0].set);for(let x=1;x<o.length;++x){const h=o[x].set,b=i[h].filter(f),p=e[h];if(b.sort(r),b.length===0)throw"ERROR: missing pairwise overlap information";const k=[];for(var a=0;a<b.length;++a){const w=e[b[a].set],g=ft(p.radius,w.radius,b[a].size);k.push({x:w.x+g,y:w.y}),k.push({x:w.x-g,y:w.y}),k.push({y:w.y+g,x:w.x}),k.push({y:w.y-g,x:w.x});for(let m=a+1;m<b.length;++m){const S=e[b[m].set],c=ft(p.radius,S.radius,b[m].size),y=bt({x:w.x,y:w.y,radius:g},{x:S.x,y:S.y,radius:c});k.push(...y)}}let z=1e50,T=k[0];for(const w of k){e[h].x=w.x,e[h].y=w.y;const g=s(e,t);g<z&&(z=g,T=w)}u(T,h)}return e}v(ne,"greedyLayout");function et(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const r=t[e.sets[0]],l=t[e.sets[1]];i=dt(r.radius,l.radius,K(r,l))}else i=it(e.sets.map(r=>t[r]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}v(et,"lossFunction");function Mt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const l=t[e.sets[0]],f=t[e.sets[1]];i=dt(l.radius,f.radius,K(l,f))}else i=it(e.sets.map(l=>t[l]));const o=e.weight!=null?e.weight:1,r=Math.log((i+1)/(e.size+1));s+=o*r*r}return s}v(Mt,"logRatioLossFunction");function se(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const r of t)r.x-=i,r.y-=o}if(t.length===2&&K(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),r=Math.sin(i);for(const l of t){const f=l.x,u=l.y;l.x=o*f-r*u,l.y=r*f+o*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const r of t){var e=(r.x+o*r.y)/(1+o*o);r.x=2*e-r.x,r.y=2*e*o-r.y}}}}v(se,"orientateCircles");function ie(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}v(n,"find");function s(i,o){const r=n(i),l=n(o);r.parent=l}v(s,"union");for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const r=t[i].radius+t[o].radius;K(t[i],t[o])+1e-10<r&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}v(ie,"disjointCluster");function ht(t){const n=v(s=>{const e=t.reduce((o,r)=>Math.max(o,r[s]+r.radius),Number.NEGATIVE_INFINITY),i=t.reduce((o,r)=>Math.min(o,r[s]-r.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}},"minMax");return{xRange:n("x"),yRange:n("y")}}v(ht,"getBoundingBox");function kt(t,n,s){n==null&&(n=Math.PI/2);let e=Tt(t).map(u=>Object.assign({},u));const i=ie(e);for(const u of i){se(u,n,s);const a=ht(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let o=e.bounds;const r=(o.xRange.max-o.xRange.min)/50;function l(u,a,x){if(!u)return;const h=u.bounds;let b,p;if(a)b=o.xRange.max-h.xRange.min+r;else{b=o.xRange.max-h.xRange.max;const k=(h.xRange.max-h.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;k<0&&(b+=k)}if(x)p=o.yRange.max-h.yRange.min+r;else{p=o.yRange.max-h.yRange.max;const k=(h.yRange.max-h.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;k<0&&(p+=k)}for(const k of u)k.x+=b,k.y+=p,e.push(k)}v(l,"addCluster");let f=1;for(;f<i.length;)l(i[f],!0,!1),l(i[f+1],!1,!0),l(i[f+2],!0,!0),f+=3,o=ht(e);return _t(e)}v(kt,"normalizeSolution");function wt(t,n,s,e,i){const o=Tt(t);n-=2*e,s-=2*e;const{xRange:r,yRange:l}=ht(o);if(r.max===r.min||l.max===l.min)return console.log("not scaling solution: zero size detected"),t;let f,u;if(i){const b=Math.sqrt(i/Math.PI)*2;f=n/b,u=s/b}else f=n/(r.max-r.min),u=s/(l.max-l.min);const a=Math.min(u,f),x=(n-(r.max-r.min)*a)/2,h=(s-(l.max-l.min)*a)/2;return _t(o.map(b=>({radius:a*b.radius,x:e+x+(b.x-r.min)*a,y:e+h+(b.y-l.min)*a,setid:b.setid})))}v(wt,"scaleSolution");function _t(t){const n={};for(const s of t)n[s.setid]=s;return n}v(_t,"toObjectNotation");function Tt(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}v(Tt,"fromObjectNotation");function oe(t={}){let n=!1,s=600,e=350,i=15,o=1e3,r=Math.PI/2,l=!0,f=null,u=!0,a=!0,x=null,h=null,b=!1,p=null,k=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,z={},T=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],w=0,g=v(function(y){if(y in z)return z[y];var d=z[y]=T[w];return w+=1,w>=T.length&&(w=0),d},"colours"),m=It,S=et;function c(y){let d=y.datum();const D=new Set;d.forEach(M=>{M.size==0&&M.sets.length==1&&D.add(M.sets[0])}),d=d.filter(M=>!M.sets.some(F=>D.has(F)));let I={},O={};if(d.length>0){let M=m(d,{lossFunction:S,distinct:b});l&&(M=kt(M,r,h)),I=wt(M,s,e,i,f),O=zt(I,d,k)}const U={};d.forEach(M=>{M.label&&(U[M.sets]=M.label)});function B(M){if(M.sets in U)return U[M.sets];if(M.sets.length==1)return""+M.sets[0]}v(B,"label"),y.selectAll("svg").data([I]).enter().append("svg");const P=y.select("svg");n?P.attr("viewBox",`0 0 ${s} ${e}`):P.attr("width",s).attr("height",e);const R={};let E=!1;P.selectAll(".venn-area path").each(function(M){const F=this.getAttribute("d");M.sets.length==1&&F&&!b&&(E=!0,R[M.sets[0]]=le(F))});function C(M){return F=>{const Y=M.sets.map(nt=>{let X=R[nt],Q=I[nt];return X||(X={x:s/2,y:e/2,radius:1}),Q||(Q={x:s/2,y:e/2,radius:1}),{x:X.x*(1-F)+Q.x*F,y:X.y*(1-F)+Q.y*F,radius:X.radius*(1-F)+Q.radius*F}});return pt(Y,p)}}v(C,"pathTween");const W=P.selectAll(".venn-area").data(d,M=>M.sets),V=W.enter().append("g").attr("class",M=>`venn-area venn-${M.sets.length==1?"circle":"intersection"}${M.colour||M.color?" venn-coloured":""}`).attr("data-venn-sets",M=>M.sets.join("_")),G=V.append("path"),j=V.append("text").attr("class","label").text(M=>B(M)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(G.style("fill-opacity","0").filter(M=>M.sets.length==1).style("fill",M=>M.colour?M.colour:M.color?M.color:g(M.sets)).style("fill-opacity",".25"),j.style("fill",M=>M.colour||M.color?"#FFF":t.textFill?t.textFill:M.sets.length==1?g(M.sets):"#444"));function q(M){return typeof M.transition=="function"?M.transition("venn").duration(o):M}v(q,"asTransition");let A=y;E&&typeof A.transition=="function"?(A=q(y),A.selectAll("path").attrTween("d",C)):A.selectAll("path").attr("d",M=>pt(M.sets.map(F=>I[F])),p);const N=A.selectAll("text").filter(M=>M.sets in O).text(M=>B(M)).attr("x",M=>Math.floor(O[M.sets].x)).attr("y",M=>Math.floor(O[M.sets].y));u&&(E?"on"in N?N.on("end",ot(I,B)):N.each("end",ot(I,B)):N.each(ot(I,B)));const L=q(W.exit()).remove();typeof W.transition=="function"&&L.selectAll("path").attrTween("d",C);const J=L.selectAll("text").attr("x",s/2).attr("y",e/2);return x!==null&&(j.style("font-size","0px"),N.style("font-size",x),J.style("font-size","0px")),{circles:I,textCentres:O,nodes:W,enter:V,update:A,exit:L}}return v(c,"chart"),c.wrap=function(y){return arguments.length?(u=y,c):u},c.useViewBox=function(){return n=!0,c},c.width=function(y){return arguments.length?(s=y,c):s},c.height=function(y){return arguments.length?(e=y,c):e},c.padding=function(y){return arguments.length?(i=y,c):i},c.distinct=function(y){return arguments.length?(b=y,c):b},c.colours=function(y){return arguments.length?(g=y,c):g},c.colors=function(y){return arguments.length?(g=y,c):g},c.fontSize=function(y){return arguments.length?(x=y,c):x},c.round=function(y){return arguments.length?(p=y,c):p},c.duration=function(y){return arguments.length?(o=y,c):o},c.layoutFunction=function(y){return arguments.length?(m=y,c):m},c.normalize=function(y){return arguments.length?(l=y,c):l},c.scaleToFit=function(y){return arguments.length?(f=y,c):f},c.styled=function(y){return arguments.length?(a=y,c):a},c.orientation=function(y){return arguments.length?(r=y,c):r},c.orientationOrder=function(y){return arguments.length?(h=y,c):h},c.lossFunction=function(y){return arguments.length?(S=y==="default"?et:y==="logRatio"?Mt:y,c):S},c}v(oe,"VennDiagram");function ot(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",r=o.split(/\s+/).reverse(),f=(o.length+r.length)/3;let u=r.pop(),a=[u],x=0;const h=1.1;e.textContent=null;const b=[];function p(g){const m=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return m.textContent=g,b.push(m),e.append(m),m}v(p,"append");let k=p(u);for(;u=r.pop(),!!u;){a.push(u);const g=a.join(" ");k.textContent=g,g.length>f&&k.getComputedTextLength()>i&&(a.pop(),k.textContent=a.join(" "),a=[u],k=p(u),x++)}const z=.35-x*h/2,T=e.getAttribute("x"),w=e.getAttribute("y");b.forEach((g,m)=>{g.setAttribute("x",T),g.setAttribute("y",w),g.setAttribute("dy",`${z+m*h}em`)})}}v(ot,"wrapText");function rt(t,n,s){let e=n[0].radius-K(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-K(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=K(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}v(rt,"circleMargin");function Et(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],o=rt(e[0],t,n);for(let a=1;a<e.length;++a){const x=rt(e[a],t,n);x>=o&&(i=e[a],o=x)}const r=St(a=>-1*rt({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s?0:r[0],y:r[1]};let f=!0;for(const a of t)if(K(l,a)>a.radius){f=!1;break}for(const a of n)if(K(l,a)<a.radius){f=!1;break}if(f)return l;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return it(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?Et(t,[]):vt(u.arcs.map(a=>a.p1))}v(Et,"computeTextCentre");function re(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let r=e+1;r<s.length;++r){const l=s[r],f=t[l],u=K(o,f);u+f.radius<=o.radius+1e-10?n[l].push(i):u+o.radius<=f.radius+1e-10&&n[i].push(l)}}return n}v(re,"getOverlappingCircles");function zt(t,n,s){const e={},i=re(t);for(let o=0;o<n.length;++o){const r=n[o].sets,l={},f={};for(let h=0;h<r.length;++h){l[r[h]]=!0;const b=i[r[h]];for(let p=0;p<b.length;++p)f[b[p]]=!0}const u=[],a=[];for(let h in t)h in l?u.push(t[h]):h in f||a.push(t[h]);const x=Et(u,a,s);e[r]=x,x.disjoint&&n[o].size>0&&console.log("WARNING: area "+r+" not represented on screen")}return e}v(zt,"computeTextCentres");function ae(t,n,s){const e=[];return e.push(`
2
2
  M`,t,n),e.push(`
3
3
  m`,-s,0),e.push(`
4
4
  a`,s,s,0,1,0,s*2,0),e.push(`
@@ -1 +1 @@
1
- import{d as l,v as h,t as T}from"./CjSUqH7t.js";import{G9 as c,tn as w}from"./FBhib8LQ.js";import{i as W,c as s,n as u,b as m}from"./C-jH8s9r.js";const E=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||E.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function A(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function N(n,t){return t.length>0&&A(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function I(n,t){return t?u(n,{state:t}):u(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const i=I(t,e),r={workspaceId:n,epoch:s(),startTabId:a};return await i,r}function y(n){return!n||W()}function b(n,t){if(s()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(y(n))return!1;const a=await S(n,t,e,o(c.state));return b(a,o(c.state))?(c.dispatch(R(n,e)),!0):!1}function*k(n,t,e){if(y(n))return!1;const a=o(yield*h(r=>r)),i=yield*l(S,n,t,e,a);return b(i,o(yield*h(r=>r)))?(yield*T(R(n,e)),!0):!1}function P(){m();const n=s(),t=o(c.state),e=p();return()=>s()===n&&o(c.state)===t&&p()===e}function _(n,t={}){return v(n,d(n,t.query),t.state)}function O(n,t={}){return k(n,d(n,t.query),t.state)}async function $(n){const t=f(n);t?await v(t,n,void 0):await u(n)}function*j(n){const t=f(n);t?yield*l(k,t,n,void 0):yield*l(u,n)}const U=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:P,navigateToAppRoute:$,navigateToAppRouteSaga:j,openAndShowWorkspace:_,showWorkspaceSaga:O,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,j as b,P as c,O as d,d as e,N as i,$ as n,_ as o,f as p,U as s,A as w};
1
+ import{d as l,v as h,t as T}from"./CjSUqH7t.js";import{G9 as c,tn as w}from"./BL_sVoge.js";import{i as W,c as s,n as u,b as m}from"./CSYt80U-.js";const E=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||E.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function A(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function N(n,t){return t.length>0&&A(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function I(n,t){return t?u(n,{state:t}):u(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const i=I(t,e),r={workspaceId:n,epoch:s(),startTabId:a};return await i,r}function y(n){return!n||W()}function b(n,t){if(s()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(y(n))return!1;const a=await S(n,t,e,o(c.state));return b(a,o(c.state))?(c.dispatch(R(n,e)),!0):!1}function*k(n,t,e){if(y(n))return!1;const a=o(yield*h(r=>r)),i=yield*l(S,n,t,e,a);return b(i,o(yield*h(r=>r)))?(yield*T(R(n,e)),!0):!1}function P(){m();const n=s(),t=o(c.state),e=p();return()=>s()===n&&o(c.state)===t&&p()===e}function _(n,t={}){return v(n,d(n,t.query),t.state)}function O(n,t={}){return k(n,d(n,t.query),t.state)}async function $(n){const t=f(n);t?await v(t,n,void 0):await u(n)}function*j(n){const t=f(n);t?yield*l(k,t,n,void 0):yield*l(u,n)}const U=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:P,navigateToAppRoute:$,navigateToAppRouteSaga:j,openAndShowWorkspace:_,showWorkspaceSaga:O,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,j as b,P as c,O as d,d as e,N as i,$ as n,_ as o,f as p,U as s,A as w};