@intent-hq/web 2.369.0 → 2.370.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 (260) hide show
  1. package/bin/intent-web.mjs +113 -2
  2. package/package.json +1 -1
  3. package/web/app/immutable/chunks/{DodshHwq.js → -7AqlW5j.js} +1 -1
  4. package/web/app/immutable/chunks/{Qnx8Hmfg.js → 1DKpnRTj.js} +1 -1
  5. package/web/app/immutable/chunks/{Ck5xuk0H.js → 1GGKXNxU.js} +1 -1
  6. package/web/app/immutable/chunks/{C6vnD-WG.js → 1GrJvO3a.js} +1 -1
  7. package/web/app/immutable/chunks/{s1m3ujOc.js → 1pIqWRUk.js} +1 -1
  8. package/web/app/immutable/chunks/{CV10cSI4.js → 1q0xL14K.js} +1 -1
  9. package/web/app/immutable/chunks/{C6yPb5D8.js → 5lieSvED.js} +1 -1
  10. package/web/app/immutable/chunks/{oZkhvgMl.js → 9-nUCsGi.js} +1 -1
  11. package/web/app/immutable/chunks/{V6SVTu37.js → 9sCF_0su.js} +1 -1
  12. package/web/app/immutable/chunks/{D0Z6csIX.js → A4nvdmL6.js} +1 -1
  13. package/web/app/immutable/chunks/{9wk-Hes5.js → B-1iBpaq.js} +1 -1
  14. package/web/app/immutable/chunks/{CDqnAH9U.js → B-_ROixI.js} +2 -2
  15. package/web/app/immutable/chunks/{iI6LFAGI.js → B-kUJzil.js} +1 -1
  16. package/web/app/immutable/chunks/{AIQuxhpV.js → B0SoVMRS.js} +1 -1
  17. package/web/app/immutable/chunks/{ykNMRL6H.js → B1hj1DGj.js} +1 -1
  18. package/web/app/immutable/chunks/{tVHyNPqL.js → B1lYPzEU.js} +1 -1
  19. package/web/app/immutable/chunks/{DF0Pm5yp.js → B2AfKG58.js} +2 -2
  20. package/web/app/immutable/chunks/{DyBkeTEM.js → B3Gso1ut.js} +1 -1
  21. package/web/app/immutable/chunks/{BJTl-SyI.js → B8_Ff8zl.js} +1 -1
  22. package/web/app/immutable/chunks/{CMRXUPn9.js → B9BjyTgZ.js} +1 -1
  23. package/web/app/immutable/chunks/{B3rtR-T9.js → B9mj0qwd.js} +1 -1
  24. package/web/app/immutable/chunks/{SX1khnGy.js → BAymCgEX.js} +1 -1
  25. package/web/app/immutable/chunks/{DMl4Z5o_.js → BBWuirRW.js} +1 -1
  26. package/web/app/immutable/chunks/{Dy_4BU07.js → BCQ1W7zT.js} +3 -3
  27. package/web/app/immutable/chunks/{C3CJZFT3.js → BDA31WCY.js} +1 -1
  28. package/web/app/immutable/chunks/{DZTT1V6G.js → BDcauMkX.js} +1 -1
  29. package/web/app/immutable/chunks/{CQw_RyF_.js → BEV9WkWU.js} +1 -1
  30. package/web/app/immutable/chunks/{D4q8ggLU.js → BG2RPA7A.js} +2 -2
  31. package/web/app/immutable/chunks/{CxVedbHg.js → BGT9uvaQ.js} +5 -5
  32. package/web/app/immutable/chunks/{BUHAwVs7.js → BHaE4286.js} +1 -1
  33. package/web/app/immutable/chunks/{CGOlqeU_.js → BIv0yV05.js} +1 -1
  34. package/web/app/immutable/chunks/{CuHlAB4d.js → BR2t5nsF.js} +2 -2
  35. package/web/app/immutable/chunks/{DUItrdZb.js → BRRvOx4M.js} +1 -1
  36. package/web/app/immutable/chunks/{B6P0nIFd.js → BSD34ZVo.js} +1 -1
  37. package/web/app/immutable/chunks/{oOuL5l8A.js → BSfkjlLx.js} +1 -1
  38. package/web/app/immutable/chunks/{DWLnWMNZ.js → BSsEOl8-.js} +1 -1
  39. package/web/app/immutable/chunks/{ge7HDe-3.js → BUA7BUyu.js} +1 -1
  40. package/web/app/immutable/chunks/{CJb9CQqu.js → BVLa_5Le.js} +1 -1
  41. package/web/app/immutable/chunks/{CpL3Nqus.js → BX9hgO_H.js} +1 -1
  42. package/web/app/immutable/chunks/{BgJ-6yg0.js → BYMXwcID.js} +1 -1
  43. package/web/app/immutable/chunks/{DNieQhK8.js → B_IEMfS6.js} +3 -3
  44. package/web/app/immutable/chunks/{C5rcw_c7.js → Bc7pHsTy.js} +1 -1
  45. package/web/app/immutable/chunks/{BipEZFvA.js → Bg7YNbVH.js} +1 -1
  46. package/web/app/immutable/chunks/{nRmTo2Eh.js → BgPtjifd.js} +1 -1
  47. package/web/app/immutable/chunks/{Cp81xhuN.js → BhZDGIfe.js} +1 -1
  48. package/web/app/immutable/chunks/{COmDhl6S.js → Bi0vr71w.js} +1 -1
  49. package/web/app/immutable/chunks/{DfSzfqox.js → BimRiD6s.js} +1 -1
  50. package/web/app/immutable/chunks/{Ckp5O1pb.js → BinPWBvt.js} +1 -1
  51. package/web/app/immutable/chunks/{Ch30XVIS.js → BkFHmpuY.js} +1 -1
  52. package/web/app/immutable/chunks/{6i_wfV3v.js → Blu9C_Vv.js} +1 -1
  53. package/web/app/immutable/chunks/{CgXGPBF5.js → BmBa9vQp.js} +1 -1
  54. package/web/app/immutable/chunks/{BTIkMWVv.js → BmjF1SON.js} +1 -1
  55. package/web/app/immutable/chunks/{ByCxDC-R.js → BnNJN3Ls.js} +1 -1
  56. package/web/app/immutable/chunks/{BxOfEPjL.js → BnhOIUmr.js} +1 -1
  57. package/web/app/immutable/chunks/{DzFkUqsC.js → Bp098-aN.js} +1 -1
  58. package/web/app/immutable/chunks/{BLzqYDED.js → BpEHjU4g.js} +1 -1
  59. package/web/app/immutable/chunks/Bqd7fdCF.js +1 -0
  60. package/web/app/immutable/chunks/{BuveYyQe.js → Bqm2Rf6d.js} +1 -1
  61. package/web/app/immutable/chunks/{BuLzqNKd.js → BqxcrzZH.js} +1 -1
  62. package/web/app/immutable/chunks/{TaTYmBM5.js → Bu13V5mO.js} +1 -1
  63. package/web/app/immutable/chunks/{B2CG0f08.js → BulBKnVz.js} +1 -1
  64. package/web/app/immutable/chunks/{P4OctF9m.js → Bus1Z5ou.js} +1 -1
  65. package/web/app/immutable/chunks/{CLalkdxk.js → BvKqDQXM.js} +1 -1
  66. package/web/app/immutable/chunks/{U3137Ii1.js → BvZfa6RH.js} +1 -1
  67. package/web/app/immutable/chunks/{DWsHBNeU.js → Bvo32SXP.js} +1 -1
  68. package/web/app/immutable/chunks/{DLEm9Cyg.js → BwtGEQS3.js} +1 -1
  69. package/web/app/immutable/chunks/{BE2y8JEQ.js → BzFy3u2D.js} +1 -1
  70. package/web/app/immutable/chunks/{CqesqBNM.js → C0wua3Vt.js} +1 -1
  71. package/web/app/immutable/chunks/{Cmm2Uwq6.js → C14Hgf8a.js} +1 -1
  72. package/web/app/immutable/chunks/{zhSFUcJz.js → C1AEP5wW.js} +1 -1
  73. package/web/app/immutable/chunks/{D1cY0pVs.js → C2Vj5Vs6.js} +1 -1
  74. package/web/app/immutable/chunks/{ClSUFCtq.js → C2YH0P-B.js} +1 -1
  75. package/web/app/immutable/chunks/{DQUvqa9o.js → CA2ANaNj.js} +1 -1
  76. package/web/app/immutable/chunks/{C3SM2b7L.js → CADQyVDS.js} +2 -2
  77. package/web/app/immutable/chunks/{DMjF7NYG.js → CBRZjI7P.js} +2 -2
  78. package/web/app/immutable/chunks/{BDbtK9be.js → CBafvv8h.js} +1 -1
  79. package/web/app/immutable/chunks/{BnRltR11.js → CCSbqNiH.js} +1 -1
  80. package/web/app/immutable/chunks/{DzMdBKPh.js → CCrwZkau.js} +1 -1
  81. package/web/app/immutable/chunks/{Q8rtHwbz.js → CCsCF1Mh.js} +1 -1
  82. package/web/app/immutable/chunks/CFNJHO2G.js +1 -0
  83. package/web/app/immutable/chunks/{CxmJEenA.js → CGzD6XfW.js} +1 -1
  84. package/web/app/immutable/chunks/{3_UV1UgL.js → CH7fgKro.js} +1 -1
  85. package/web/app/immutable/chunks/CK4eAyad.js +1 -0
  86. package/web/app/immutable/chunks/{Cstrfm23.js → CKnpbRTh.js} +4 -4
  87. package/web/app/immutable/chunks/{DCOxMTSf.js → CL3a4Hm1.js} +1 -1
  88. package/web/app/immutable/chunks/{uWDJKH9B.js → CMLBE7U6.js} +1 -1
  89. package/web/app/immutable/chunks/{C7H74phM.js → CPlH-52U.js} +1 -1
  90. package/web/app/immutable/chunks/{XPs8BW44.js → CQAAihrI.js} +1 -1
  91. package/web/app/immutable/chunks/{CnM1-KSC.js → CQHtdg39.js} +1 -1
  92. package/web/app/immutable/chunks/{dx9b_0TP.js → CQ_NwL45.js} +2 -2
  93. package/web/app/immutable/chunks/{DupNtpYi.js → CR2m4w2U.js} +1 -1
  94. package/web/app/immutable/chunks/{CFvGekuw.js → CRNfAyhd.js} +1 -1
  95. package/web/app/immutable/chunks/{CLg2G62j.js → CRY4aELR.js} +3 -3
  96. package/web/app/immutable/chunks/{BsjFeGOg.js → CSBGusi9.js} +1 -1
  97. package/web/app/immutable/chunks/{BgVn7-pK.js → CUMRLgxB.js} +1 -1
  98. package/web/app/immutable/chunks/{DrBi0w5G.js → CUNx-_2d.js} +4 -4
  99. package/web/app/immutable/chunks/{CSFyiYHp.js → CUdMuhJF.js} +1 -1
  100. package/web/app/immutable/chunks/{CF2xUnmW.js → CY-vjmpy.js} +1 -1
  101. package/web/app/immutable/chunks/{C1McR-sz.js → CYKOPxuJ.js} +1 -1
  102. package/web/app/immutable/chunks/{CMqhKAKf.js → C_-WdiR8.js} +1 -1
  103. package/web/app/immutable/chunks/{DZCGZjzG.js → C_E26DWe.js} +1 -1
  104. package/web/app/immutable/chunks/{CxF8L5mw.js → CaHds95Q.js} +1 -1
  105. package/web/app/immutable/chunks/{CJj_lU-4.js → Caqml6gj.js} +1 -1
  106. package/web/app/immutable/chunks/{BXHaIh_f.js → CbRNm5he.js} +1 -1
  107. package/web/app/immutable/chunks/{Zldsekdv.js → CbRsc9i4.js} +1 -1
  108. package/web/app/immutable/chunks/{Bf02lG8Y.js → CblB0zCN.js} +1 -1
  109. package/web/app/immutable/chunks/{BQGSaBlM.js → CbyU6cEf.js} +1 -1
  110. package/web/app/immutable/chunks/{Cdw_CIdg.js → CdOh_Fmv.js} +1 -1
  111. package/web/app/immutable/chunks/{BsE4jMhr.js → CfUtc4-L.js} +1 -1
  112. package/web/app/immutable/chunks/{Bq_CYpxm.js → CgS_FiQI.js} +1 -1
  113. package/web/app/immutable/chunks/{CF1Tu_8c.js → Cgn_eC9-.js} +3 -3
  114. package/web/app/immutable/chunks/{XJqoy2ap.js → CgwFGLCK.js} +1 -1
  115. package/web/app/immutable/chunks/{sG8VksRm.js → Chnr0_jK.js} +1 -1
  116. package/web/app/immutable/chunks/{BR9s3igW.js → CiZzqOpk.js} +1 -1
  117. package/web/app/immutable/chunks/{0jRiL-di.js → CjTGc2Y5.js} +1 -1
  118. package/web/app/immutable/chunks/{Cs_DX3BC.js → Cj_UUgNI.js} +1 -1
  119. package/web/app/immutable/chunks/{Bo900RGs.js → CkrbZXJF.js} +1 -1
  120. package/web/app/immutable/chunks/{E_jRuW-b.js → CmVXj6KK.js} +2 -2
  121. package/web/app/immutable/chunks/{DWjKA8Pm.js → CmW3Zqh6.js} +1 -1
  122. package/web/app/immutable/chunks/{LKW_Bid7.js → CnztNSaN.js} +1 -1
  123. package/web/app/immutable/chunks/{C3YB0zcV.js → Cq4X6ptS.js} +1 -1
  124. package/web/app/immutable/chunks/{8TQkfju3.js → CqVZxU_G.js} +1 -1
  125. package/web/app/immutable/chunks/{CASKMy_V.js → CqwiFk32.js} +1 -1
  126. package/web/app/immutable/chunks/{DdkDv5Sd.js → Cv2YUgTX.js} +1 -1
  127. package/web/app/immutable/chunks/{CeBDdapO.js → CwWm64yZ.js} +1 -1
  128. package/web/app/immutable/chunks/{D3SYIfTl.js → CyWgrZMk.js} +4 -4
  129. package/web/app/immutable/chunks/{p8jwzOYN.js → CylWx-GB.js} +1 -1
  130. package/web/app/immutable/chunks/{BVVyDeyd.js → CzS5ny-g.js} +1 -1
  131. package/web/app/immutable/chunks/{Bs9TCQJX.js → CzW29tkb.js} +1 -1
  132. package/web/app/immutable/chunks/{Cc2FSrQK.js → D-NrCL67.js} +1 -1
  133. package/web/app/immutable/chunks/{BgLPrJ77.js → D0DIS-cT.js} +1 -1
  134. package/web/app/immutable/chunks/{dP7u_sPF.js → D1V2Et17.js} +1 -1
  135. package/web/app/immutable/chunks/{DRLOB6Gw.js → D1bivTve.js} +2 -2
  136. package/web/app/immutable/chunks/{C7RXZVwZ.js → D2dAlclh.js} +3 -3
  137. package/web/app/immutable/chunks/{CC08YY4X.js → D5_auhOU.js} +2 -2
  138. package/web/app/immutable/chunks/{hHeBjODU.js → D69ZLPjW.js} +1 -1
  139. package/web/app/immutable/chunks/{BswUVSRu.js → D6VfSAVQ.js} +1 -1
  140. package/web/app/immutable/chunks/{JKboQXkL.js → D6dNunKo.js} +1 -1
  141. package/web/app/immutable/chunks/{Cu0mADIg.js → D9MwZkzV.js} +1 -1
  142. package/web/app/immutable/chunks/{KykWEhyB.js → DB9n2KBT.js} +1 -1
  143. package/web/app/immutable/chunks/{v2EYTTpI.js → DBdkAKrm.js} +3 -3
  144. package/web/app/immutable/chunks/{6GNWsakm.js → DCW2c0FY.js} +1 -1
  145. package/web/app/immutable/chunks/{CiyIhnuP.js → DC_1j_gh.js} +3 -3
  146. package/web/app/immutable/chunks/{Druyrynh.js → DELYEsRi.js} +1 -1
  147. package/web/app/immutable/chunks/{B_QtiZYt.js → DFBd8tOh.js} +1 -1
  148. package/web/app/immutable/chunks/{Dbpb1w7S.js → DFr6bn5t.js} +3 -3
  149. package/web/app/immutable/chunks/{CgeBiXYG.js → DISyGoja.js} +1 -1
  150. package/web/app/immutable/chunks/{C-dUgTvj.js → DIukqb9l.js} +1 -1
  151. package/web/app/immutable/chunks/{lVHjTAAb.js → DJFAYXyc.js} +1 -1
  152. package/web/app/immutable/chunks/{BR5vKj6f.js → DL1CE4TH.js} +1 -1
  153. package/web/app/immutable/chunks/{D-2bQKif.js → DONrLvvt.js} +1 -1
  154. package/web/app/immutable/chunks/{DpSi4PLY.js → DRy2oEmj.js} +1 -1
  155. package/web/app/immutable/chunks/{RsJMsDHX.js → DSacn4II.js} +1 -1
  156. package/web/app/immutable/chunks/{DcvxsgOZ.js → DUGztmZo.js} +1 -1
  157. package/web/app/immutable/chunks/{Bp0nVWtT.js → DWDPOFkL.js} +1 -1
  158. package/web/app/immutable/chunks/{CMh2xRIF.js → DWEA_zul.js} +1 -1
  159. package/web/app/immutable/chunks/{BgDYQZ_0.js → DZIz7Wk9.js} +1 -1
  160. package/web/app/immutable/chunks/{D1FzC71c.js → DZRLhNnQ.js} +1 -1
  161. package/web/app/immutable/chunks/{D8BdISor.js → D_-ztW_Y.js} +1 -1
  162. package/web/app/immutable/chunks/{D9d8HfDB.js → D_hG-oZK.js} +1 -1
  163. package/web/app/immutable/chunks/{C2jA6pM8.js → D_r5h8IL.js} +1 -1
  164. package/web/app/immutable/chunks/{aHO4L7kg.js → Dawt227W.js} +1 -1
  165. package/web/app/immutable/chunks/{Csxq8_TN.js → Db8-C0Zq.js} +1 -1
  166. package/web/app/immutable/chunks/{B3Zt92Gh.js → DbCFTbwM.js} +1 -1
  167. package/web/app/immutable/chunks/{CLZkKjaI.js → DcUCHDGY.js} +1 -1
  168. package/web/app/immutable/chunks/{DcmaumPg.js → DeE0yn_3.js} +1 -1
  169. package/web/app/immutable/chunks/{C9r0mVfa.js → Dekzflbl.js} +1 -1
  170. package/web/app/immutable/chunks/{DqgCp5ae.js → Df-HaYIr.js} +1 -1
  171. package/web/app/immutable/chunks/{B5L5kFMu.js → DgMr61cU.js} +1 -1
  172. package/web/app/immutable/chunks/{S5vPfW1A.js → DkJkWZTE.js} +1 -1
  173. package/web/app/immutable/chunks/{BW6PhteS.js → DksUdusM.js} +1 -1
  174. package/web/app/immutable/chunks/{CtFSFfLz.js → Dp9fBXaC.js} +1 -1
  175. package/web/app/immutable/chunks/{CZTVb5IB.js → DrOwYgbZ.js} +1 -1
  176. package/web/app/immutable/chunks/{CS3R6Yuh.js → Dsn82AW0.js} +1 -1
  177. package/web/app/immutable/chunks/{Deg_SlHr.js → DtHX0_aW.js} +2 -2
  178. package/web/app/immutable/chunks/{3IxT-Mrl.js → DtfuSWPd.js} +1 -1
  179. package/web/app/immutable/chunks/{Ct_Zx4ru.js → Dv0Jc2Nv.js} +1 -1
  180. package/web/app/immutable/chunks/{DumeSIrz.js → DvATy2o1.js} +1 -1
  181. package/web/app/immutable/chunks/{M18r7swD.js → DvrEye74.js} +1 -1
  182. package/web/app/immutable/chunks/{93RUSyHg.js → DwXKCf3Q.js} +1 -1
  183. package/web/app/immutable/chunks/{Cdhrdfve.js → DxyI4IUi.js} +1 -1
  184. package/web/app/immutable/chunks/{DCrqv4Go.js → Ev5lig9W.js} +1 -1
  185. package/web/app/immutable/chunks/{a34jwGLW.js → EzpfJOSe.js} +1 -1
  186. package/web/app/immutable/chunks/{BsKhFZ0Q.js → FtGWFokI.js} +1 -1
  187. package/web/app/immutable/chunks/{4pFiTcXi.js → Hd1u2Z-S.js} +1 -1
  188. package/web/app/immutable/chunks/{k3tEZZCe.js → Iq8JI4_0.js} +1 -1
  189. package/web/app/immutable/chunks/{gcij4Gee.js → MifrdpDQ.js} +1 -1
  190. package/web/app/immutable/chunks/{_UNYBFXm.js → NQru5r2h.js} +1 -1
  191. package/web/app/immutable/chunks/{WHfdsTrE.js → NqK_XT0y.js} +1 -1
  192. package/web/app/immutable/chunks/{D5sw7nR1.js → R1s5ARST.js} +1 -1
  193. package/web/app/immutable/chunks/{DaXgwzm7.js → R2N5eDxY.js} +1 -1
  194. package/web/app/immutable/chunks/{B5ht1e3g.js → TE7UDCh6.js} +1 -1
  195. package/web/app/immutable/chunks/{DmhHEMPi.js → THdp5Vpk.js} +1 -1
  196. package/web/app/immutable/chunks/UGr2VEtG.js +1 -0
  197. package/web/app/immutable/chunks/{BUNNt_Jr.js → UN8KT7fR.js} +1 -1
  198. package/web/app/immutable/chunks/{B9XvejAu.js → UQXXh4U7.js} +1 -1
  199. package/web/app/immutable/chunks/{5NOp7PNZ.js → VJkCr9xp.js} +1 -1
  200. package/web/app/immutable/chunks/VdR0DXlW.js +410 -0
  201. package/web/app/immutable/chunks/{CvC_PTf7.js → WlqVlpOk.js} +1 -1
  202. package/web/app/immutable/chunks/{0NGflniG.js → YV53nLSc.js} +1 -1
  203. package/web/app/immutable/chunks/{TrRXD94r.js → YcqSYZ1W.js} +1 -1
  204. package/web/app/immutable/chunks/{DtnAdLQg.js → ZIOU9Sxd.js} +1 -1
  205. package/web/app/immutable/chunks/{Bn5goMn4.js → _EqQOSVK.js} +1 -1
  206. package/web/app/immutable/chunks/{eln8hjjQ.js → bb5Wjkri.js} +1 -1
  207. package/web/app/immutable/chunks/{DPLuga0X.js → cFozej4U.js} +3 -3
  208. package/web/app/immutable/chunks/{D_MzuSit.js → d1EmVp98.js} +1 -1
  209. package/web/app/immutable/chunks/{BkrPhcBU.js → eCVtubQ8.js} +1 -1
  210. package/web/app/immutable/chunks/{DeVwq4Xj.js → f686-QUd.js} +1 -1
  211. package/web/app/immutable/chunks/{BVUXyHGH.js → fr0BmHL-.js} +1 -1
  212. package/web/app/immutable/chunks/{BUtBz-tz.js → gHT8Z5q-.js} +1 -1
  213. package/web/app/immutable/chunks/{BTYfh5fW.js → gySpGbnA.js} +2 -2
  214. package/web/app/immutable/chunks/i8PKWJT0.js +1 -0
  215. package/web/app/immutable/chunks/{DdkBNH3W.js → ir8Qz45r.js} +1 -1
  216. package/web/app/immutable/chunks/{5E3JQYey.js → jG-4Z8qH.js} +1 -1
  217. package/web/app/immutable/chunks/{DA4getmI.js → qHChsLZZ.js} +1 -1
  218. package/web/app/immutable/chunks/{DOi8NPXE.js → qi41b1Ac.js} +1 -1
  219. package/web/app/immutable/chunks/{CFybzafc.js → qjcf4Gb9.js} +1 -1
  220. package/web/app/immutable/chunks/{dSvJdwG_.js → qvt-0QTi.js} +3 -3
  221. package/web/app/immutable/chunks/{Cu91VTQn.js → rB5UfCey.js} +1 -1
  222. package/web/app/immutable/chunks/{DVy6H5Ng.js → sS3MW5B6.js} +1 -1
  223. package/web/app/immutable/chunks/{Bi5_2qbB.js → t7yAUuZn.js} +2 -2
  224. package/web/app/immutable/chunks/{BEjEPSxp.js → tDUnXf7O.js} +1 -1
  225. package/web/app/immutable/chunks/{CQt5NIo9.js → uCQEgTob.js} +1 -1
  226. package/web/app/immutable/chunks/{CZ_Dk1nz.js → vLtMR-kj.js} +1 -1
  227. package/web/app/immutable/chunks/{iBqqkWL_.js → wEnqV1Ol.js} +1 -1
  228. package/web/app/immutable/chunks/{CNAilJvj.js → wgljT0D3.js} +1 -1
  229. package/web/app/immutable/chunks/{DlqetqWw.js → zye35u-t.js} +1 -1
  230. package/web/app/immutable/entry/{app.AtsW0EhM.js → app.jT7Rd2u4.js} +2 -2
  231. package/web/app/immutable/entry/start.CSuXA93h.js +1 -0
  232. package/web/app/immutable/nodes/{0.CegL6Bfc.js → 0.9lwWQtfB.js} +1 -1
  233. package/web/app/immutable/nodes/{1.B6-BTMS1.js → 1.Ck4yEk2l.js} +1 -1
  234. package/web/app/immutable/nodes/{10.qlZM4NPl.js → 10.C4FEQjC7.js} +16 -16
  235. package/web/app/immutable/nodes/{11.BR5ZtLjn.js → 11.C-vXNNmX.js} +1 -1
  236. package/web/app/immutable/nodes/{13.DYH2a5Wx.js → 13.DhKVmEQi.js} +1 -1
  237. package/web/app/immutable/nodes/{14.B6MrEg8x.js → 14.INZu_e5k.js} +1 -1
  238. package/web/app/immutable/nodes/{15.Bitx8r2v.js → 15.DdKSdQ-h.js} +1 -1
  239. package/web/app/immutable/nodes/{16.CKbY5VRM.js → 16.Ad-t6nft.js} +1 -1
  240. package/web/app/immutable/nodes/{17.DPSU7Eqq.js → 17.pLS5JsPi.js} +1 -1
  241. package/web/app/immutable/nodes/{18.BlD6ustd.js → 18.DIVxEUeB.js} +1 -1
  242. package/web/app/immutable/nodes/{19.BRj21xes.js → 19.BB9LuT5j.js} +2 -2
  243. package/web/app/immutable/nodes/{2.BBHXaN8p.js → 2.Bp80wZmn.js} +4 -4
  244. package/web/app/immutable/nodes/{20.Cj4TGw20.js → 20.BGTcjiLa.js} +1 -1
  245. package/web/app/immutable/nodes/{3.JJmMGjhS.js → 3.DRJnaOSe.js} +1 -1
  246. package/web/app/immutable/nodes/{4.C3VD-4KP.js → 4.p67SnElB.js} +1 -1
  247. package/web/app/immutable/nodes/{5.DIJ6nzqY.js → 5.DRmIJA2c.js} +1 -1
  248. package/web/app/immutable/nodes/{6.DIzZZwt4.js → 6.Bjeibumi.js} +1 -1
  249. package/web/app/immutable/nodes/{7.Xo0EbJUd.js → 7.CjIaxqZ1.js} +1 -1
  250. package/web/app/immutable/nodes/{8.xZANL-qg.js → 8.DAlxovqG.js} +1 -1
  251. package/web/app/immutable/nodes/{9.BVBQgdJj.js → 9.BKQZzsCi.js} +4 -4
  252. package/web/app/version.json +1 -1
  253. package/web/index.html +15 -15
  254. package/web/app/immutable/chunks/BxTyo7yU.js +0 -1
  255. package/web/app/immutable/chunks/C1FbWx7h.js +0 -1
  256. package/web/app/immutable/chunks/C_qOm4aX.js +0 -410
  257. package/web/app/immutable/chunks/CcNIw4Px.js +0 -1
  258. package/web/app/immutable/chunks/CqJQ3ikU.js +0 -1
  259. package/web/app/immutable/chunks/DW3gkA_F.js +0 -1
  260. package/web/app/immutable/entry/start.DHsRk6-P.js +0 -1
@@ -1,2 +1,2 @@
1
- import{t as ht,bo as _,bm as g,bw as bt,b as xt}from"./51_h0jm2.js";import{bs as yt,a7 as kt,ay as Q,W as p,bn as At,aA as h,a5 as q,bS as u,bl as S,bA as W,aD as e,b_ as L,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as It}from"./CJxGDkBm.js";import{i as f}from"./PXCFrn2V.js";import{I as Bt,g as Ct}from"./Bjy4ygfJ.js";import{n as Pt,j as zt}from"./BxwkoIbZ.js";import{f as F}from"./Cdw_CIdg.js";import"./CF1Tu_8c.js";import"./CpPNoOk-.js";import"./DxvSggY5.js";import{F as rt,ce as Rt,cq as St,au as Wt}from"./DSQT151l.js";import{A as Lt}from"./FmBB5PWm.js";import{D as Dt}from"./DdkBNH3W.js";import{J4 as $t,uL as Ht}from"./Zldsekdv.js";import{g as Nt}from"./D0H3cACA.js";var jt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),qt=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Ft=k("<!> ",1),Mt=k('<div class="mb-2 flex gap-1"></div>'),Ot=k('<div class="border-t border-border p-2"><!> <!></div>'),Vt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Jt(U,n){if(new.target)return ht({component:Jt,...U});yt(n,!0);let A=_(n,"patches",7),M=_(n,"label",23,()=>g.ui_patchBlock_label()),O=_(n,"lastApply",7),w=_(n,"linkedAgentId",7),D=_(n,"workspaceId",7),P=_(n,"applying",7,!1),$=_(n,"onApply",7),H=_(n,"onRevert",7),V=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),J=y(()=>O()?.status==="success");function st(t){const o=t.split(`
1
+ import{t as ht,bo as _,bm as g,bw as bt,b as xt}from"./51_h0jm2.js";import{bs as yt,a7 as kt,ay as Q,W as p,bn as At,aA as h,a5 as q,bS as u,bl as S,bA as W,aD as e,b_ as L,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as It}from"./CJxGDkBm.js";import{i as f}from"./PXCFrn2V.js";import{I as Bt,g as Ct}from"./Bjy4ygfJ.js";import{n as Pt,j as zt}from"./BxwkoIbZ.js";import{f as F}from"./CdOh_Fmv.js";import"./Cgn_eC9-.js";import"./CpPNoOk-.js";import"./DxvSggY5.js";import{F as rt,ce as Rt,cq as St,au as Wt}from"./DSQT151l.js";import{A as Lt}from"./FmBB5PWm.js";import{D as Dt}from"./ir8Qz45r.js";import{J4 as $t,uL as Ht}from"./CbRsc9i4.js";import{g as Nt}from"./D0H3cACA.js";var jt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),qt=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Ft=k("<!> ",1),Mt=k('<div class="mb-2 flex gap-1"></div>'),Ot=k('<div class="border-t border-border p-2"><!> <!></div>'),Vt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Jt(U,n){if(new.target)return ht({component:Jt,...U});yt(n,!0);let A=_(n,"patches",7),M=_(n,"label",23,()=>g.ui_patchBlock_label()),O=_(n,"lastApply",7),w=_(n,"linkedAgentId",7),D=_(n,"workspaceId",7),P=_(n,"applying",7,!1),$=_(n,"onApply",7),H=_(n,"onRevert",7),V=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),J=y(()=>O()?.status==="success");function st(t){const o=t.split(`
2
2
  `);let v=0,b=0;for(const I of o)I.startsWith("+")&&!I.startsWith("+++")?v++:I.startsWith("-")&&!I.startsWith("---")&&b++;return{addCount:v,removeCount:b}}let X=y(()=>e(z)?st(e(z).diff):{addCount:0,removeCount:0}),T=y(()=>P()?{label:g.ui_patchBlock_applying_label(),icon:null}:e(J)?{label:g.ui_patchBlock_revert_label(),icon:St}:{label:g.ui_patchBlock_apply_label(),icon:Wt}),nt=y(()=>!!($()||H()));function ot(){et(V,!e(V))}function it(){e(J)?H()?.():$()?.()}var lt={get patches(){return A()},set patches(t){A(t),h()},get label(){return M()},set label(t=g.ui_patchBlock_label()){M(t),h()},get lastApply(){return O()},set lastApply(t){O(t),h()},get linkedAgentId(){return w()},set linkedAgentId(t){w(t),h()},get workspaceId(){return D()},set workspaceId(t){D(t),h()},get applying(){return P()},set applying(t=!1){P(t),h()},get onApply(){return $()},set onApply(t){$(t),h()},get onRevert(){return H()},set onRevert(t){H(t),h()},$set:bt,$on:(t,o)=>xt(n,t,o)},Y=kt(),ct=Q(Y);{var dt=t=>{var o=Vt(),v=q(o),b=q(v);{var I=a=>{{let c=y(()=>g.ui_patchBlock_viewAgent_tooltip());F(a,{variant:"plain",size:"icon-compact",iconOnly:!0,class:"size-4! shrink-0 rounded-sm! transition-opacity hover:opacity-80",onclick:i=>{D()&&$t.dispatch(Ht(D(),{agentId:w(),...Nt(i)}))},get title(){return e(c)},children:(i,m)=>{Lt(i,{get agentId(){return w()},variant:"compact"})},$$slots:{default:!0}})}};f(b,a=>{w()&&a(I)})}var Z=u(b,2);F(Z,{variant:"plain",size:"compact",class:"h-auto! min-w-0 flex-1 shrink items-center justify-start gap-2 px-0! py-0! text-muted-foreground transition-colors hover:text-foreground",truncateLabel:!1,labelClass:"flex min-w-0 flex-1 items-center gap-2",onclick:ot,children:(a,c)=>{var i=qt(),m=Q(i);{var B=l=>{rt(l,{get icon(){return Rt},size:10,class:"text-muted-foreground"})};f(m,l=>{w()||l(B)})}var C=u(m,2),s=S(C,!0),d=u(C,2),r=q(d),R=S(r),N=u(r,2),G=S(N);W(d);var K=u(d,2);{var tt=l=>{var j=jt(),_t=S(j,!0);L(gt=>x(_t,gt),[()=>g.ui_patchBlock_applied_label()]),p(l,j)};f(K,l=>{e(J)&&l(tt)})}L(()=>{x(s,M()),x(R,`+${e(X).addCount??""}`),x(G,`-${e(X).removeCount??""}`)}),p(a,i)},$$slots:{default:!0}});var ut=u(Z,2);{var ft=a=>{F(a,{variant:"ghost-light",size:"sm",class:"type-caption shrink-0",onclick:it,get disabled(){return P()},children:(c,i)=>{var m=Ft(),B=Q(m);{var C=r=>{Bt(r,{size:12})},s=r=>{rt(r,{get icon(){return e(T).icon},size:"xs"})};f(B,r=>{P()?r(C):e(T).icon&&r(s,1)})}var d=u(B);L(()=>x(d,` ${e(T).label??""}`)),p(c,m)},$$slots:{default:!0}})};f(ut,a=>{e(nt)&&a(ft)})}W(v);var vt=u(v,2);{var mt=a=>{var c=Ot(),i=q(c);{var m=s=>{var d=Mt();Ct(d,23,A,(r,R)=>`patch-${R}-${r.filePath}`,(r,R,N)=>{{let G=y(()=>e(N)===e(E)?"default":"ghost-light");F(r,{get variant(){return e(G)},size:"sm",class:"type-caption",onclick:()=>et(E,e(N),!0),children:(K,tt)=>{wt();var l=It();L(j=>x(l,j),[()=>e(R).filePath.split("/").pop()]),p(K,l)},$$slots:{default:!0}})}}),W(d),p(s,d)};f(i,s=>{A().length>1&&s(m)})}var B=u(i,2);{var C=s=>{Dt(s,{get patch(){return e(z).diff},get fileName(){return e(z).filePath},showHeader:!0,showStats:!0,showLineNumbers:!0,maxHeight:"300px",collapsible:!1,class:"overflow-hidden rounded-sm border border-border"})};f(B,s=>{e(z)&&s(C)})}W(c),Pt(3,c,()=>zt,()=>({tier:"moderate"})),p(a,c)};f(vt,a=>{e(V)&&a(mt)})}W(o),p(t,o)},pt=t=>{var o=Et(),v=S(o,!0);L(b=>x(v,b),[()=>g.ui_patchBlock_invalid_error()]),p(t,o)};f(ct,t=>{A()?.length?t(dt):t(pt,-1)})}return p(U,Y),At(lt)}export{Jt as P};
@@ -1 +1 @@
1
- import{t as lt,bo as u,bw as ct,b as dt}from"./51_h0jm2.js";import{bs as vt,ca as ft,aD as t,a5 as H,bS as ut,bA as D,bH as K,b_ as S,W as T,bn as gt,bV as P,c9 as x,aA as g,a7 as mt,ay as ht,bl as pt,bO as bt,aB as F}from"./CJxGDkBm.js";import{i as L}from"./PXCFrn2V.js";import{g as _t}from"./Bjy4ygfJ.js";import{s as kt}from"./DxvSggY5.js";import{f as X,s as c,g as R}from"./CpPNoOk-.js";import{b as wt}from"./NtFyWdpR.js";import{l as j}from"./DqFWZ_g1.js";import{A as xt}from"./D1cY0pVs.js";import{a as Wt}from"./FmBB5PWm.js";function It(W){const{itemCount:a,maxVisible:d,availableWidth:n,surface:s,overlap:b,overflowOverlap:v}=W;if(n<=0)return 0;const _=s-b,m=Math.min(a,Math.max(0,d)),y=i=>i===0?0:s+(i-1)*_;if(a<=m&&y(a)<=n)return a;for(let i=m;i>=0;i-=1){const A=a-i;if(y(i)+(A>0?W.measureOverflowText(A)-(i>0?v:0):0)<=n)return i}return 0}function yt(W,a=n=>requestAnimationFrame(n),d=n=>cancelAnimationFrame(n)){let n,s;return{set(b){if(n=b,s!==void 0)return;let v=!1;const _=a(()=>{v=!0,s=void 0;const m=n;n=void 0,W(m)});v||(s=_)},cancel(){s!==void 0&&(d(s),s=void 0),n=void 0}}}const At=20,Ct=12;let O,J;const Q=new Map;var Tt=F('<span data-agent-avatar-stack-item=""><!></span>'),Ot=F('<span class="agent-avatar-stack-track svelte-1nk9fhe"></span>'),Vt=F('<span class="agent-avatar-stack-overflow svelte-1nk9fhe" data-agent-avatar-overflow=""> </span>'),Mt=F('<span data-agent-avatar-stack="" data-agent-avatar-stack-overlap="later-on-top"><!> <!></span>');function St(W,a){if(new.target)return lt({component:St,...W});vt(a,!0);let d=u(a,"items",7),n=u(a,"maxVisible",7,3),s=u(a,"adaptive",7,!1),b=u(a,"align",7,"end"),v=u(a,"variant",7,"card-stack"),_=u(a,"interactive",7,!1),m=u(a,"overflowId",7),y=u(a,"overflowTestId",7),i=u(a,"itemContent",7),A=u(a,"class",7,""),I=P(void 0),z=P(void 0);const h=x(()=>Wt[v()]),U=x(()=>s()&&t(z)!==void 0?It({itemCount:d().length,maxVisible:n(),availableWidth:t(z),surface:t(h).surface,overlap:t(h).overlap,overflowOverlap:t(h).overlap,measureOverflowText:e=>Math.max(t(h).surface,$(e)+Ct)}):void 0),Y=x(()=>Math.min(d().length,Math.max(0,s()?t(U)??n():n()))),k=x(()=>d().slice(0,t(Y))),E=x(()=>Math.max(0,d().length-t(k).length)),N=x(()=>t(h).surface-t(h).overlap),Z=x(()=>t(k).length===0?0:t(h).surface+(t(k).length-1)*t(N));function $(e){const r=`+${j(e)}`,o=Q.get(r);if(o!==void 0)return o;if(O===void 0&&(O=document.createElement("canvas").getContext("2d")),!O||!t(I))return At;J??=`500 12px ${getComputedStyle(t(I)).fontFamily}`,O.font=J;const l=O.measureText(r).width;return Q.set(r,l),l}ft(()=>{if(!s()||!t(I)||typeof ResizeObserver>"u")return;const e=yt(o=>{K(z,o,!0)}),r=new ResizeObserver(o=>{const l=o[o.length-1];e.set(l.borderBoxSize?.[0]?.inlineSize??l.contentRect.width)});return r.observe(t(I)),()=>{r.disconnect(),e.cancel()}});var tt={get items(){return d()},set items(e){d(e),g()},get maxVisible(){return n()},set maxVisible(e=3){n(e),g()},get adaptive(){return s()},set adaptive(e=!1){s(e),g()},get align(){return b()},set align(e="end"){b(e),g()},get variant(){return v()},set variant(e="card-stack"){v(e),g()},get interactive(){return _()},set interactive(e=!1){_(e),g()},get overflowId(){return m()},set overflowId(e){m(e),g()},get overflowTestId(){return y()},set overflowTestId(e){y(e),g()},get itemContent(){return i()},set itemContent(e){i(e),g()},get class(){return A()},set class(e=""){A(e),g()},$set:ct,$on:(e,r)=>dt(a,e,r)},p=Mt();let q;var B=H(p);{var et=e=>{var r=Ot();let o;_t(r,23,()=>t(k),l=>l.key,(l,w,V)=>{var f=Tt();let G;var nt=H(f);{var st=C=>{var M=mt(),ot=ht(M);kt(ot,i,()=>t(w)),T(C,M)},it=C=>{{let M=x(()=>t(w).state??"idle");xt(C,{get agentId(){return t(w).agentId},get specialist(){return t(w).specialist},get icon(){return t(w).icon},get state(){return t(M)},get variant(){return v()},class:"agent-avatar-stack-surface"})}};L(nt,C=>{i()?C(st):C(it,-1)})}D(f),S(()=>{G=X(f,1,"agent-avatar-stack-item svelte-1nk9fhe",null,G,{"agent-avatar-stack-item--before-overflow":t(E)>0&&t(V)===t(k).length-1}),R(f,`inset-inline-start: ${t(V)*t(N)}px; z-index: ${t(V)+1};`),c(f,"data-agent-avatar-stack-index",t(V)),c(f,"data-agent-avatar-stack-key",t(w).key),c(f,"data-agent-avatar-stack-agent-id",t(w).agentId),c(f,"data-agent-avatar-stack-specialist",t(w).specialist??void 0),c(f,"aria-hidden",_()?void 0:"true")}),T(l,f)}),D(r),S(()=>o=R(r,"",o,{width:`${t(Z)}px`})),T(e,r)};L(B,e=>{t(k).length>0&&e(et)})}var at=ut(B,2);{var rt=e=>{var r=Vt(),o=pt(r);S(l=>{c(r,"id",m()),R(r,`margin-inline-start: ${t(k).length>0?-t(h).overlap:0}px; z-index: ${t(k).length+1};`),c(r,"data-testid",y()),bt(o,`+${l??""}`)},[()=>j(t(E))]),T(e,r)};L(at,e=>{t(E)>0&&e(rt)})}return D(p),wt(p,e=>K(I,e),()=>t(I)),S(()=>{q=X(p,1,`agent-avatar-stack ${A()??""}`,"svelte-1nk9fhe",q,{"agent-avatar-stack--adaptive":s(),"agent-avatar-stack--start":b()==="start"}),c(p,"data-agent-avatar-stack-align",b()),c(p,"data-avatar-variant",v()),c(p,"data-agent-avatar-stack-clear-space",t(h).ring),c(p,"aria-hidden",!_()&&!m()?"true":void 0)}),T(W,p),gt(tt)}export{St as A};
1
+ import{t as lt,bo as u,bw as ct,b as dt}from"./51_h0jm2.js";import{bs as vt,ca as ft,aD as t,a5 as H,bS as ut,bA as D,bH as K,b_ as S,W as T,bn as gt,bV as P,c9 as x,aA as g,a7 as mt,ay as ht,bl as pt,bO as bt,aB as F}from"./CJxGDkBm.js";import{i as L}from"./PXCFrn2V.js";import{g as _t}from"./Bjy4ygfJ.js";import{s as kt}from"./DxvSggY5.js";import{f as X,s as c,g as R}from"./CpPNoOk-.js";import{b as wt}from"./NtFyWdpR.js";import{l as j}from"./DqFWZ_g1.js";import{A as xt}from"./C2Vj5Vs6.js";import{a as Wt}from"./FmBB5PWm.js";function It(W){const{itemCount:a,maxVisible:d,availableWidth:n,surface:s,overlap:b,overflowOverlap:v}=W;if(n<=0)return 0;const _=s-b,m=Math.min(a,Math.max(0,d)),y=i=>i===0?0:s+(i-1)*_;if(a<=m&&y(a)<=n)return a;for(let i=m;i>=0;i-=1){const A=a-i;if(y(i)+(A>0?W.measureOverflowText(A)-(i>0?v:0):0)<=n)return i}return 0}function yt(W,a=n=>requestAnimationFrame(n),d=n=>cancelAnimationFrame(n)){let n,s;return{set(b){if(n=b,s!==void 0)return;let v=!1;const _=a(()=>{v=!0,s=void 0;const m=n;n=void 0,W(m)});v||(s=_)},cancel(){s!==void 0&&(d(s),s=void 0),n=void 0}}}const At=20,Ct=12;let O,J;const Q=new Map;var Tt=F('<span data-agent-avatar-stack-item=""><!></span>'),Ot=F('<span class="agent-avatar-stack-track svelte-1nk9fhe"></span>'),Vt=F('<span class="agent-avatar-stack-overflow svelte-1nk9fhe" data-agent-avatar-overflow=""> </span>'),Mt=F('<span data-agent-avatar-stack="" data-agent-avatar-stack-overlap="later-on-top"><!> <!></span>');function St(W,a){if(new.target)return lt({component:St,...W});vt(a,!0);let d=u(a,"items",7),n=u(a,"maxVisible",7,3),s=u(a,"adaptive",7,!1),b=u(a,"align",7,"end"),v=u(a,"variant",7,"card-stack"),_=u(a,"interactive",7,!1),m=u(a,"overflowId",7),y=u(a,"overflowTestId",7),i=u(a,"itemContent",7),A=u(a,"class",7,""),I=P(void 0),z=P(void 0);const h=x(()=>Wt[v()]),U=x(()=>s()&&t(z)!==void 0?It({itemCount:d().length,maxVisible:n(),availableWidth:t(z),surface:t(h).surface,overlap:t(h).overlap,overflowOverlap:t(h).overlap,measureOverflowText:e=>Math.max(t(h).surface,$(e)+Ct)}):void 0),Y=x(()=>Math.min(d().length,Math.max(0,s()?t(U)??n():n()))),k=x(()=>d().slice(0,t(Y))),E=x(()=>Math.max(0,d().length-t(k).length)),N=x(()=>t(h).surface-t(h).overlap),Z=x(()=>t(k).length===0?0:t(h).surface+(t(k).length-1)*t(N));function $(e){const r=`+${j(e)}`,o=Q.get(r);if(o!==void 0)return o;if(O===void 0&&(O=document.createElement("canvas").getContext("2d")),!O||!t(I))return At;J??=`500 12px ${getComputedStyle(t(I)).fontFamily}`,O.font=J;const l=O.measureText(r).width;return Q.set(r,l),l}ft(()=>{if(!s()||!t(I)||typeof ResizeObserver>"u")return;const e=yt(o=>{K(z,o,!0)}),r=new ResizeObserver(o=>{const l=o[o.length-1];e.set(l.borderBoxSize?.[0]?.inlineSize??l.contentRect.width)});return r.observe(t(I)),()=>{r.disconnect(),e.cancel()}});var tt={get items(){return d()},set items(e){d(e),g()},get maxVisible(){return n()},set maxVisible(e=3){n(e),g()},get adaptive(){return s()},set adaptive(e=!1){s(e),g()},get align(){return b()},set align(e="end"){b(e),g()},get variant(){return v()},set variant(e="card-stack"){v(e),g()},get interactive(){return _()},set interactive(e=!1){_(e),g()},get overflowId(){return m()},set overflowId(e){m(e),g()},get overflowTestId(){return y()},set overflowTestId(e){y(e),g()},get itemContent(){return i()},set itemContent(e){i(e),g()},get class(){return A()},set class(e=""){A(e),g()},$set:ct,$on:(e,r)=>dt(a,e,r)},p=Mt();let q;var B=H(p);{var et=e=>{var r=Ot();let o;_t(r,23,()=>t(k),l=>l.key,(l,w,V)=>{var f=Tt();let G;var nt=H(f);{var st=C=>{var M=mt(),ot=ht(M);kt(ot,i,()=>t(w)),T(C,M)},it=C=>{{let M=x(()=>t(w).state??"idle");xt(C,{get agentId(){return t(w).agentId},get specialist(){return t(w).specialist},get icon(){return t(w).icon},get state(){return t(M)},get variant(){return v()},class:"agent-avatar-stack-surface"})}};L(nt,C=>{i()?C(st):C(it,-1)})}D(f),S(()=>{G=X(f,1,"agent-avatar-stack-item svelte-1nk9fhe",null,G,{"agent-avatar-stack-item--before-overflow":t(E)>0&&t(V)===t(k).length-1}),R(f,`inset-inline-start: ${t(V)*t(N)}px; z-index: ${t(V)+1};`),c(f,"data-agent-avatar-stack-index",t(V)),c(f,"data-agent-avatar-stack-key",t(w).key),c(f,"data-agent-avatar-stack-agent-id",t(w).agentId),c(f,"data-agent-avatar-stack-specialist",t(w).specialist??void 0),c(f,"aria-hidden",_()?void 0:"true")}),T(l,f)}),D(r),S(()=>o=R(r,"",o,{width:`${t(Z)}px`})),T(e,r)};L(B,e=>{t(k).length>0&&e(et)})}var at=ut(B,2);{var rt=e=>{var r=Vt(),o=pt(r);S(l=>{c(r,"id",m()),R(r,`margin-inline-start: ${t(k).length>0?-t(h).overlap:0}px; z-index: ${t(k).length+1};`),c(r,"data-testid",y()),bt(o,`+${l??""}`)},[()=>j(t(E))]),T(e,r)};L(at,e=>{t(E)>0&&e(rt)})}return D(p),wt(p,e=>K(I,e),()=>t(I)),S(()=>{q=X(p,1,`agent-avatar-stack ${A()??""}`,"svelte-1nk9fhe",q,{"agent-avatar-stack--adaptive":s(),"agent-avatar-stack--start":b()==="start"}),c(p,"data-agent-avatar-stack-align",b()),c(p,"data-avatar-variant",v()),c(p,"data-agent-avatar-stack-clear-space",t(h).ring),c(p,"aria-hidden",!_()&&!m()?"true":void 0)}),T(W,p),gt(tt)}export{St as A};
@@ -1 +1 @@
1
- import{d as p}from"./Cs_DX3BC.js";import{A as s,z as l}from"./CuHlAB4d.js";import{selectScriptOutput as o,selectScriptById as f,selectCanReadScriptDefinition as m}from"./B5L5kFMu.js";async function a(i,t,e,r=100){const n=s(o.select(i,t,e)).slice(-r);if(!t||!e)return n;const u=f.select(i,t,e);if(!m.select(i,t,u))return[];try{const c=l(await p.scripts.output(t,e,r));return c.length>0?c.slice(-r):n}catch{return n}}export{a as readScriptContextOutputLines};
1
+ import{d as p}from"./Cj_UUgNI.js";import{A as s,z as l}from"./BR2t5nsF.js";import{selectScriptOutput as o,selectScriptById as f,selectCanReadScriptDefinition as m}from"./DgMr61cU.js";async function a(i,t,e,r=100){const n=s(o.select(i,t,e)).slice(-r);if(!t||!e)return n;const u=f.select(i,t,e);if(!m.select(i,t,u))return[];try{const c=l(await p.scripts.output(t,e,r));return c.length>0?c.slice(-r):n}catch{return n}}export{a as readScriptContextOutputLines};
@@ -1,4 +1,4 @@
1
- import{p as Mt}from"./BXHaIh_f.js";import{aZ as Nt,U as zt,Y as Lt,b0 as Tt,V as Xt,a_ as At,b as u,a6 as Et,W as Yt,q as J,ay as Q,aX as It,B as Bt,r as Ft,X as V}from"./DrBi0w5G.js";import{p as Rt}from"./C0gEyGJV.js";var G=u((o,r)=>{const e=o<=1?o*100:o;if(e<0||e>100)throw new Error(`${r} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${o}`);return e},"toPercent"),X=u((o,r,e)=>({x:G(r,`${e} evolution`),y:G(o,`${e} visibility`)}),"toCoordinates"),K=u(o=>{if(o){if(o==="+<>")return"bidirectional";if(o==="+<")return"backward";if(o==="+>")return"forward"}},"getFlowFromPort"),Ot=u(o=>{if(!o?.startsWith("+"))return{};const e=/^\+'([^']*)'/.exec(o)?.[1];return o.includes("<>")?{flow:"bidirectional",label:e}:o.includes("<")?{flow:"backward",label:e}:o.includes(">")?{flow:"forward",label:e}:{label:e}},"extractFlowFromArrow"),Wt=u((o,r)=>{if(Mt(o,r),o.size&&r.setSize(o.size.width,o.size.height),o.evolution){const e=o.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),h=o.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);r.updateAxes({stages:e,stageBoundaries:h})}if(o.anchors.forEach(e=>{const h=X(e.visibility,e.evolution,`Anchor "${e.name}"`);r.addNode(e.name,e.name,h.x,h.y,"anchor")}),o.components.forEach(e=>{const h=X(e.visibility,e.evolution,`Component "${e.name}"`),a=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,d=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,w=e.decorator?.strategy;r.addNode(e.name,e.name,h.x,h.y,"component",a,d,e.inertia,w)}),o.notes.forEach(e=>{const h=X(e.visibility,e.evolution,`Note "${e.text}"`);r.addNote(e.text,h.x,h.y)}),o.pipelines.forEach(e=>{const h=r.getNode(e.parent);if(!h||typeof h.y!="number")throw new Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);const a=h.y;r.startPipeline(e.parent),e.components.forEach(d=>{const w=`${e.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,R=G(d.evolution,`Pipeline component "${d.name}" evolution`);r.addNode(w,d.name,R,a,"pipeline-component",C,g),r.addPipelineComponent(e.parent,w)})}),o.links.forEach(e=>{const h=!!e.arrow&&(e.arrow.includes("-.->")||e.arrow.includes(".-."));let a=K(e.fromPort)??K(e.toPort);const{flow:d,label:w}=Ot(e.arrow);!a&&d&&(a=d);const C=e.linkLabel,g=w??C;r.addLink(r.resolveNodeId(e.from),r.resolveNodeId(e.to),h,g,a)}),o.evolves.forEach(e=>{const h=r.getNode(e.component);if(h?.y!==void 0){const a=G(e.target,`Evolve target for "${e.component}"`);r.addTrend(e.component,a,h.y)}}),o.annotations.length>0){const e=o.annotations[0],h=X(e.x,e.y,"Annotations box");r.setAnnotationsBox(h.x,h.y)}o.annotation.forEach(e=>{const h=X(e.x,e.y,`Annotation ${e.number}`);r.addAnnotation(e.number,[{x:h.x,y:h.y}],e.text)}),o.accelerators.forEach(e=>{const h=X(e.x,e.y,`Accelerator "${e.name}"`);r.addAccelerator(e.name,h.x,h.y)}),o.deaccelerators.forEach(e=>{const h=X(e.x,e.y,`Deaccelerator "${e.name}"`);r.addDeaccelerator(e.name,h.x,h.y)})},"populateDb"),tt={parser:{yy:void 0},parse:u(async o=>{const r=await Rt("wardley",o);Q.debug(r);const e=tt.parser?.yy;if(!e||typeof e.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Wt(r,e)},"parse")},E,Dt=(E=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(r){const e=this.nodes.get(r.id)??{id:r.id,label:r.label},h={...e,...r,className:r.className??e.className,labelOffsetX:r.labelOffsetX??e.labelOffsetX,labelOffsetY:r.labelOffsetY??e.labelOffsetY};this.nodes.set(r.id,h)}addLink(r){this.links.push(r)}addTrend(r){this.trends.set(r.nodeId,r)}startPipeline(r){this.pipelines.set(r,{nodeId:r,componentIds:[]});const e=this.nodes.get(r);e&&(e.isPipelineParent=!0)}addPipelineComponent(r,e){const h=this.pipelines.get(r);h&&h.componentIds.push(e);const a=this.nodes.get(e);a&&(a.inPipeline=!0)}addAnnotation(r){this.annotations.push(r)}addNote(r){this.notes.push(r)}addAccelerator(r){this.accelerators.push(r)}addDeaccelerator(r){this.deaccelerators.push(r)}setAnnotationsBox(r,e){this.annotationsBox={x:r,y:e}}setAxes(r){this.axes={...this.axes,...r}}setSize(r,e){this.size={width:r,height:e}}getNode(r){return this.nodes.get(r)}resolveNodeId(r){if(this.nodes.has(r))return r;for(const[e,h]of this.nodes)if(h.label===r)return e;return r}build(){const r=[];for(const e of this.nodes.values()){if(typeof e.x!="number"||typeof e.y!="number")throw new Error(`Node "${e.label}" is missing coordinates`);r.push(e)}return{nodes:r,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},u(E,"WardleyBuilder"),E),k=new Dt;function et(){return V()["wardley-beta"]}u(et,"getConfig");function at(o,r,e,h,a,d,w,C,g){k.addNode({id:o,label:r,x:e,y:h,className:a,labelOffsetX:d,labelOffsetY:w,inertia:C,sourceStrategy:g})}u(at,"addNode");function rt(o,r,e=!1,h,a){k.addLink({source:o,target:r,dashed:e,label:h,flow:a})}u(rt,"addLink");function ot(o,r,e){k.addTrend({nodeId:o,targetX:r,targetY:e})}u(ot,"addTrend");function nt(o,r,e){k.addAnnotation({number:o,coordinates:r,text:e})}u(nt,"addAnnotation");function st(o,r,e){k.addNote({text:o,x:r,y:e})}u(st,"addNote");function it(o,r,e){k.addAccelerator({name:o,x:r,y:e})}u(it,"addAccelerator");function dt(o,r,e){k.addDeaccelerator({name:o,x:r,y:e})}u(dt,"addDeaccelerator");function lt(o,r){k.setAnnotationsBox(o,r)}u(lt,"setAnnotationsBox");function ct(o,r){k.setSize(o,r)}u(ct,"setSize");function pt(o){k.startPipeline(o)}u(pt,"startPipeline");function ft(o,r){k.addPipelineComponent(o,r)}u(ft,"addPipelineComponent");function ht(o){k.setAxes(o)}u(ht,"updateAxes");function xt(o){return k.getNode(o)}u(xt,"getNode");function gt(o){return k.resolveNodeId(o)}u(gt,"resolveNodeId");function yt(){return k.build()}u(yt,"getWardleyData");function ut(){k.clear(),Ft()}u(ut,"clear");var Gt={getConfig:et,addNode:at,addLink:rt,addTrend:ot,addAnnotation:nt,addNote:st,addAccelerator:it,addDeaccelerator:dt,setAnnotationsBox:lt,setSize:ct,startPipeline:pt,addPipelineComponent:ft,updateAxes:ht,getNode:xt,resolveNodeId:gt,getWardleyData:yt,clear:ut,setAccTitle:At,getAccTitle:Xt,setDiagramTitle:Tt,getDiagramTitle:Lt,getAccDescription:zt,setAccDescription:Nt},qt=["Genesis","Custom Built","Product","Commodity"],Ht=u(()=>{const{themeVariables:o}=V();return{backgroundColor:o.wardley?.backgroundColor??o.background??"#fff",axisColor:o.wardley?.axisColor??"#000",axisTextColor:o.wardley?.axisTextColor??o.primaryTextColor??"#222",gridColor:o.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:o.wardley?.componentFill??"#fff",componentStroke:o.wardley?.componentStroke??"#000",componentLabelColor:o.wardley?.componentLabelColor??o.primaryTextColor??"#222",linkStroke:o.wardley?.linkStroke??"#000",evolutionStroke:o.wardley?.evolutionStroke??"#dc3545",annotationStroke:o.wardley?.annotationStroke??"#000",annotationTextColor:o.wardley?.annotationTextColor??o.primaryTextColor??"#222",annotationFill:o.wardley?.annotationFill??o.background??"#fff"}},"getTheme"),jt=u(()=>{const o=V()["wardley-beta"];return{width:o?.width??900,height:o?.height??600,padding:o?.padding??48,nodeRadius:o?.nodeRadius??6,nodeLabelOffset:o?.nodeLabelOffset??8,axisFontSize:o?.axisFontSize??12,labelFontSize:o?.labelFontSize??10,showGrid:o?.showGrid??!1,useMaxWidth:o?.useMaxWidth??!0}},"getConfigValues"),Vt=u((o,r,e,h)=>{Q.debug(`Rendering Wardley map
1
+ import{p as Mt}from"./CbRNm5he.js";import{aZ as Nt,U as zt,Y as Lt,b0 as Tt,V as Xt,a_ as At,b as u,a6 as Et,W as Yt,q as J,ay as Q,aX as It,B as Bt,r as Ft,X as V}from"./CUNx-_2d.js";import{p as Rt}from"./C0gEyGJV.js";var G=u((o,r)=>{const e=o<=1?o*100:o;if(e<0||e>100)throw new Error(`${r} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${o}`);return e},"toPercent"),X=u((o,r,e)=>({x:G(r,`${e} evolution`),y:G(o,`${e} visibility`)}),"toCoordinates"),K=u(o=>{if(o){if(o==="+<>")return"bidirectional";if(o==="+<")return"backward";if(o==="+>")return"forward"}},"getFlowFromPort"),Ot=u(o=>{if(!o?.startsWith("+"))return{};const e=/^\+'([^']*)'/.exec(o)?.[1];return o.includes("<>")?{flow:"bidirectional",label:e}:o.includes("<")?{flow:"backward",label:e}:o.includes(">")?{flow:"forward",label:e}:{label:e}},"extractFlowFromArrow"),Wt=u((o,r)=>{if(Mt(o,r),o.size&&r.setSize(o.size.width,o.size.height),o.evolution){const e=o.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),h=o.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);r.updateAxes({stages:e,stageBoundaries:h})}if(o.anchors.forEach(e=>{const h=X(e.visibility,e.evolution,`Anchor "${e.name}"`);r.addNode(e.name,e.name,h.x,h.y,"anchor")}),o.components.forEach(e=>{const h=X(e.visibility,e.evolution,`Component "${e.name}"`),a=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,d=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,w=e.decorator?.strategy;r.addNode(e.name,e.name,h.x,h.y,"component",a,d,e.inertia,w)}),o.notes.forEach(e=>{const h=X(e.visibility,e.evolution,`Note "${e.text}"`);r.addNote(e.text,h.x,h.y)}),o.pipelines.forEach(e=>{const h=r.getNode(e.parent);if(!h||typeof h.y!="number")throw new Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);const a=h.y;r.startPipeline(e.parent),e.components.forEach(d=>{const w=`${e.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,R=G(d.evolution,`Pipeline component "${d.name}" evolution`);r.addNode(w,d.name,R,a,"pipeline-component",C,g),r.addPipelineComponent(e.parent,w)})}),o.links.forEach(e=>{const h=!!e.arrow&&(e.arrow.includes("-.->")||e.arrow.includes(".-."));let a=K(e.fromPort)??K(e.toPort);const{flow:d,label:w}=Ot(e.arrow);!a&&d&&(a=d);const C=e.linkLabel,g=w??C;r.addLink(r.resolveNodeId(e.from),r.resolveNodeId(e.to),h,g,a)}),o.evolves.forEach(e=>{const h=r.getNode(e.component);if(h?.y!==void 0){const a=G(e.target,`Evolve target for "${e.component}"`);r.addTrend(e.component,a,h.y)}}),o.annotations.length>0){const e=o.annotations[0],h=X(e.x,e.y,"Annotations box");r.setAnnotationsBox(h.x,h.y)}o.annotation.forEach(e=>{const h=X(e.x,e.y,`Annotation ${e.number}`);r.addAnnotation(e.number,[{x:h.x,y:h.y}],e.text)}),o.accelerators.forEach(e=>{const h=X(e.x,e.y,`Accelerator "${e.name}"`);r.addAccelerator(e.name,h.x,h.y)}),o.deaccelerators.forEach(e=>{const h=X(e.x,e.y,`Deaccelerator "${e.name}"`);r.addDeaccelerator(e.name,h.x,h.y)})},"populateDb"),tt={parser:{yy:void 0},parse:u(async o=>{const r=await Rt("wardley",o);Q.debug(r);const e=tt.parser?.yy;if(!e||typeof e.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Wt(r,e)},"parse")},E,Dt=(E=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(r){const e=this.nodes.get(r.id)??{id:r.id,label:r.label},h={...e,...r,className:r.className??e.className,labelOffsetX:r.labelOffsetX??e.labelOffsetX,labelOffsetY:r.labelOffsetY??e.labelOffsetY};this.nodes.set(r.id,h)}addLink(r){this.links.push(r)}addTrend(r){this.trends.set(r.nodeId,r)}startPipeline(r){this.pipelines.set(r,{nodeId:r,componentIds:[]});const e=this.nodes.get(r);e&&(e.isPipelineParent=!0)}addPipelineComponent(r,e){const h=this.pipelines.get(r);h&&h.componentIds.push(e);const a=this.nodes.get(e);a&&(a.inPipeline=!0)}addAnnotation(r){this.annotations.push(r)}addNote(r){this.notes.push(r)}addAccelerator(r){this.accelerators.push(r)}addDeaccelerator(r){this.deaccelerators.push(r)}setAnnotationsBox(r,e){this.annotationsBox={x:r,y:e}}setAxes(r){this.axes={...this.axes,...r}}setSize(r,e){this.size={width:r,height:e}}getNode(r){return this.nodes.get(r)}resolveNodeId(r){if(this.nodes.has(r))return r;for(const[e,h]of this.nodes)if(h.label===r)return e;return r}build(){const r=[];for(const e of this.nodes.values()){if(typeof e.x!="number"||typeof e.y!="number")throw new Error(`Node "${e.label}" is missing coordinates`);r.push(e)}return{nodes:r,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},u(E,"WardleyBuilder"),E),k=new Dt;function et(){return V()["wardley-beta"]}u(et,"getConfig");function at(o,r,e,h,a,d,w,C,g){k.addNode({id:o,label:r,x:e,y:h,className:a,labelOffsetX:d,labelOffsetY:w,inertia:C,sourceStrategy:g})}u(at,"addNode");function rt(o,r,e=!1,h,a){k.addLink({source:o,target:r,dashed:e,label:h,flow:a})}u(rt,"addLink");function ot(o,r,e){k.addTrend({nodeId:o,targetX:r,targetY:e})}u(ot,"addTrend");function nt(o,r,e){k.addAnnotation({number:o,coordinates:r,text:e})}u(nt,"addAnnotation");function st(o,r,e){k.addNote({text:o,x:r,y:e})}u(st,"addNote");function it(o,r,e){k.addAccelerator({name:o,x:r,y:e})}u(it,"addAccelerator");function dt(o,r,e){k.addDeaccelerator({name:o,x:r,y:e})}u(dt,"addDeaccelerator");function lt(o,r){k.setAnnotationsBox(o,r)}u(lt,"setAnnotationsBox");function ct(o,r){k.setSize(o,r)}u(ct,"setSize");function pt(o){k.startPipeline(o)}u(pt,"startPipeline");function ft(o,r){k.addPipelineComponent(o,r)}u(ft,"addPipelineComponent");function ht(o){k.setAxes(o)}u(ht,"updateAxes");function xt(o){return k.getNode(o)}u(xt,"getNode");function gt(o){return k.resolveNodeId(o)}u(gt,"resolveNodeId");function yt(){return k.build()}u(yt,"getWardleyData");function ut(){k.clear(),Ft()}u(ut,"clear");var Gt={getConfig:et,addNode:at,addLink:rt,addTrend:ot,addAnnotation:nt,addNote:st,addAccelerator:it,addDeaccelerator:dt,setAnnotationsBox:lt,setSize:ct,startPipeline:pt,addPipelineComponent:ft,updateAxes:ht,getNode:xt,resolveNodeId:gt,getWardleyData:yt,clear:ut,setAccTitle:At,getAccTitle:Xt,setDiagramTitle:Tt,getDiagramTitle:Lt,getAccDescription:zt,setAccDescription:Nt},qt=["Genesis","Custom Built","Product","Commodity"],Ht=u(()=>{const{themeVariables:o}=V();return{backgroundColor:o.wardley?.backgroundColor??o.background??"#fff",axisColor:o.wardley?.axisColor??"#000",axisTextColor:o.wardley?.axisTextColor??o.primaryTextColor??"#222",gridColor:o.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:o.wardley?.componentFill??"#fff",componentStroke:o.wardley?.componentStroke??"#000",componentLabelColor:o.wardley?.componentLabelColor??o.primaryTextColor??"#222",linkStroke:o.wardley?.linkStroke??"#000",evolutionStroke:o.wardley?.evolutionStroke??"#dc3545",annotationStroke:o.wardley?.annotationStroke??"#000",annotationTextColor:o.wardley?.annotationTextColor??o.primaryTextColor??"#222",annotationFill:o.wardley?.annotationFill??o.background??"#fff"}},"getTheme"),jt=u(()=>{const o=V()["wardley-beta"];return{width:o?.width??900,height:o?.height??600,padding:o?.padding??48,nodeRadius:o?.nodeRadius??6,nodeLabelOffset:o?.nodeLabelOffset??8,axisFontSize:o?.axisFontSize??12,labelFontSize:o?.labelFontSize??10,showGrid:o?.showGrid??!1,useMaxWidth:o?.useMaxWidth??!0}},"getConfigValues"),Vt=u((o,r,e,h)=>{Q.debug(`Rendering Wardley map
2
2
  `+o);const a=jt(),d=Ht(),w=a.nodeRadius*1.6,C=h.db,g=C.getWardleyData(),R=C.getDiagramTitle(),S=g.size?.width??a.width,b=g.size?.height??a.height,Y=It(r);Y.selectAll("*").remove(),Bt(Y,b,S,a.useMaxWidth),Y.attr("viewBox",`0 0 ${S} ${b}`);const v=Y.append("g").attr("class","wardley-map"),q=Y.append("defs");q.append("marker").attr("id",`arrow-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.evolutionStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-end-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.linkStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-start-${r}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",d.linkStroke).attr("stroke","none"),v.append("rect").attr("class","wardley-background").attr("width",S).attr("height",b).attr("fill",d.backgroundColor);const I=S-a.padding*2,B=b-a.padding*2;R&&v.append("text").attr("class","wardley-title").attr("x",S/2).attr("y",a.padding/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(R);const z=u(t=>a.padding+t/100*I,"projectX"),L=u(t=>b-a.padding-t/100*B,"projectY"),O=v.append("g").attr("class","wardley-axes");O.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1),O.append("line").attr("x1",a.padding).attr("x2",a.padding).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1);const wt=g.axes.xLabel??"Evolution",mt=g.axes.yLabel??"Visibility";O.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",a.padding+I/2).attr("y",b-a.padding/4).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(wt),O.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",a.padding/3).attr("y",a.padding+B/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${a.padding/3} ${a.padding+B/2})`).text(mt);const F=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:qt;if(F.length>0){const t=v.append("g").attr("class","wardley-stages"),s=g.axes.stageBoundaries,n=[];if(s&&s.length===F.length){let i=0;s.forEach(p=>{n.push({start:i,end:p}),i=p})}else{const i=1/F.length;F.forEach((p,l)=>{n.push({start:l*i,end:(l+1)*i})})}F.forEach((i,p)=>{const l=n[p],f=a.padding+l.start*I,x=a.padding+l.end*I,y=(f+x)/2;p>0&&t.append("line").attr("x1",f).attr("x2",f).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",y).attr("y",b-a.padding/1.5).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize-2).attr("text-anchor","middle").text(i)})}if(a.showGrid){const t=v.append("g").attr("class","wardley-grid");for(let s=1;s<4;s++){const n=s/4,i=a.padding+I*n;t.append("line").attr("x1",i).attr("x2",i).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding-B*n).attr("y2",b-a.padding-B*n).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6")}}const c=new Map;if(g.nodes.forEach(t=>{c.set(t.id,{x:z(t.x),y:L(t.y),node:t})}),g.pipelines.length>0){const t=v.append("g").attr("class","wardley-pipelines"),s=v.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(n=>{if(n.componentIds.length===0)return;const i=n.componentIds.map(x=>({id:x,pos:c.get(x),node:g.nodes.find(y=>y.id===x)})).filter(x=>x.pos&&x.node).sort((x,y)=>x.node.x-y.node.x);for(let x=0;x<i.length-1;x++){const y=i[x],m=i[x+1];s.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",y.pos.x).attr("y1",y.pos.y).attr("x2",m.pos.x).attr("y2",m.pos.y).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let p=1/0,l=-1/0,f=0;if(n.componentIds.forEach(x=>{const y=c.get(x);y&&(p=Math.min(p,y.x),l=Math.max(l,y.x),f=y.y)}),p!==1/0&&l!==-1/0){const y=a.nodeRadius*4,m=f-y/2,P=c.get(n.nodeId);if(P){const N=(p+l)/2;P.x=N,P.y=m-w/6}t.append("rect").attr("class","wardley-pipeline-box").attr("x",p-15).attr("y",m).attr("width",l-p+30).attr("height",y).attr("fill","none").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const _=v.append("g").attr("class","wardley-links"),Z=new Map;g.pipelines.forEach(t=>{Z.set(t.nodeId,new Set(t.componentIds))});const U=g.links.filter(t=>!(!c.has(t.source)||!c.has(t.target)||Z.get(t.target)?.has(t.source)));_.selectAll("line").data(U).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f);return s.x+l/x*p}).attr("y1",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f);return s.y+f/x*p}).attr("x2",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=s.x-n.x,f=s.y-n.y,x=Math.sqrt(l*l+f*f);return n.x+l/x*p}).attr("y2",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=s.x-n.x,f=s.y-n.y,x=Math.sqrt(l*l+f*f);return n.y+f/x*p}).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${r})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${r})`:null),_.selectAll("text").data(U.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.x+n.x)/2,p=n.y-s.y,l=n.x-s.x,f=Math.sqrt(l*l+p*p),x=8,y=p/f;return i+y*x}).attr("y",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.y+n.y)/2,p=n.x-s.x,l=n.y-s.y,f=Math.sqrt(p*p+l*l),x=8,y=-p/f;return i+y*x}).attr("fill",d.axisTextColor).attr("font-size",a.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.x+n.x)/2,p=(s.y+n.y)/2,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f),y=8,m=f/x,P=-l/x,N=i+m*y,W=p+P*y;let A=Math.atan2(f,l)*180/Math.PI;return(A>90||A<-90)&&(A+=180),`rotate(${A} ${N} ${W})`}).text(t=>t.label);const kt=v.append("g").attr("class","wardley-trends"),bt=g.trends.map(t=>{const s=c.get(t.nodeId);if(!s)return null;const n=z(t.targetX),i=L(t.targetY),p=n-s.x,l=i-s.y,f=Math.sqrt(p*p+l*l),x=a.nodeRadius+2,y=f>x?n-p/f*x:n,m=f>x?i-l/f*x:i;return{origin:s,targetX:n,targetY:i,adjustedX2:y,adjustedY2:m}}).filter(t=>t!==null);kt.selectAll("line").data(bt).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",d.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${r})`);const M=v.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));M.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#666").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#ccc").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const T=M.filter(t=>t.sourceStrategy==="market");T.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1);const H=a.nodeRadius*.7,$=a.nodeRadius*1.2;if(T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x).attr("y1",t=>c.get(t.id).y-$).attr("x2",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x).attr("y2",t=>c.get(t.id).y-$).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y-$).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),M.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>c.get(t.id).x-w/2).attr("y",t=>c.get(t.id).y-w/2).attr("width",w).attr("height",w).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{const s=c.get(t.id);let n=t.isPipelineParent?w/2+15:a.nodeRadius+15;return t.sourceStrategy&&(n+=a.nodeRadius+10),s.x+n}).attr("y1",t=>{const s=c.get(t.id),n=t.isPipelineParent?w:a.nodeRadius*2;return s.y-n/2}).attr("x2",t=>{const s=c.get(t.id);let n=t.isPipelineParent?w/2+15:a.nodeRadius+15;return t.sourceStrategy&&(n+=a.nodeRadius+10),s.x+n}).attr("y2",t=>{const s=c.get(t.id),n=t.isPipelineParent?w:a.nodeRadius*2;return s.y+n/2}).attr("stroke",d.componentStroke).attr("stroke-width",6),M.append("text").attr("x",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?s.x+t.labelOffsetX:s.x;let n=a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(n+=10);const i=t.labelOffsetX??n;return s.x+i}).attr("y",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?s.y+t.labelOffsetY:s.y-3;let n=-a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(n-=10);const i=t.labelOffsetY??n;return s.y+i}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?d.evolutionStroke:t.className==="anchor"?"#000":d.componentLabelColor).attr("font-size",a.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){const t=v.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(s=>{const n=s.coordinates.map(i=>({x:z(i.x),y:L(i.y)}));if(n.length>1)for(let i=0;i<n.length-1;i++)t.append("line").attr("class","wardley-annotation-line").attr("x1",n[i].x).attr("y1",n[i].y).attr("x2",n[i+1].x).attr("y2",n[i+1].y).attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");n.forEach(i=>{const p=t.append("g").attr("class","wardley-annotation");p.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",10).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5),p.append("text").attr("x",i.x).attr("y",i.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.number)})}),g.annotationsBox){let s=z(g.annotationsBox.x),n=L(g.annotationsBox.y);const i=10,p=16,l=11,f=t.append("g").attr("class","wardley-annotations-box"),x=[...g.annotations].filter(m=>m.text).sort((m,P)=>m.number-P.number),y=[];if(x.forEach((m,P)=>{const N=f.append("text").attr("x",s+i).attr("y",n+i+(P+1)*p).attr("font-size",l).attr("fill",d.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${m.number}. ${m.text}`);y.push(N)}),y.length>0){let m=0,P=0;y.forEach(j=>{const D=j.node(),Ct=D.getComputedTextLength();m=Math.max(m,Ct);const St=D.getBBox();P=Math.max(P,St.height)});const N=m+i*2+105,W=x.length*p+i*2+P/2,A=a.padding,$t=S-a.padding-N,vt=a.padding,Pt=b-a.padding-W;s=Math.max(A,Math.min(s,$t)),n=Math.max(vt,Math.min(n,Pt)),y.forEach((j,D)=>{j.attr("x",s+i).attr("y",n+i+(D+1)*p)}),f.insert("rect","text").attr("x",s).attr("y",n).attr("width",N).attr("height",W).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){const t=v.append("g").attr("class","wardley-notes");g.notes.forEach(s=>{const n=z(s.x),i=L(s.y);t.append("text").attr("x",n).attr("y",i).attr("text-anchor","start").attr("font-size",11).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.text)})}if(g.accelerators.length>0){const t=v.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(s=>{const n=z(s.x),i=L(s.y),p=60,l=30,f=20,x=`
3
3
  M ${n} ${i-l/2}
4
4
  L ${n+p-f} ${i-l/2}
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BDbtK9be.js","/app/immutable/chunks/SX1khnGy.js","/app/immutable/chunks/CqJQ3ikU.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/51_h0jm2.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/PXCFrn2V.js","/app/immutable/chunks/CpPNoOk-.js","/app/immutable/chunks/DxvSggY5.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/Cdw_CIdg.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/Bjy4ygfJ.js","/app/immutable/chunks/CF1Tu_8c.js","/app/immutable/chunks/BQDGTBxC.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DGmOjLYi.js","/app/immutable/chunks/C9UsZ4re.js","/app/immutable/chunks/DqFWZ_g1.js","/app/immutable/chunks/JKboQXkL.js","/app/immutable/chunks/Zldsekdv.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BEklUrxK.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/DSQT151l.js","/app/immutable/chunks/BxwkoIbZ.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/BVVyDeyd.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/Cs_DX3BC.js","/app/immutable/chunks/DMl4Z5o_.js","/app/immutable/chunks/D-2bQKif.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/oOuL5l8A.js","/app/immutable/chunks/XJqoy2ap.js","/app/immutable/chunks/LKW_Bid7.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/Bi5_2qbB.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CxmJEenA.js"])))=>i.map(i=>d[i]);
2
- import{bm as b,_ as x}from"./51_h0jm2.js";import{i as f,J4 as a,di as P,Hs as S,y$ as N,FE as R,vD as q,qV as W,vb as H,L9 as U}from"./Zldsekdv.js";import{d as y}from"./Cs_DX3BC.js";import{E as V}from"./CF1Tu_8c.js";import{parseIntentLink as D}from"./CDqnAH9U.js";import{m as I}from"./SX1khnGy.js";import"./CJxGDkBm.js";import"./CpPNoOk-.js";import"./DxvSggY5.js";import"./ChTqQfQN.js";import"./JKboQXkL.js";import{x as j,k as E,w as L}from"./DUItrdZb.js";import{dE as B}from"./XJqoy2ap.js";import{p as C,o as $,h as z}from"./Cc2FSrQK.js";const p="assistant-content",J=a.createSelector(t=>{const r=C.select(t),s=$.select(t),e=z.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function K(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function m(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function G(t){a.dispatch(q(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function _(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(W(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:E.select(a.state,s)}))}a.dispatch(H(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await Q(t,r)}catch(s){return I.error(b.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Q(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?D(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!V(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=C.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??J.select(a.state);if(!n)return!0;const o=K(n,r.background);if(await G(n),!m(n,o))return!0;if(i){const u=i[1],g=await y.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),_({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(I.error(b.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await x(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./BDbtK9be.js").then(k=>k.b);return{resolveBrowserLinkForOpen:v}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]),import.meta.url),g=await u(t);return m(n,o)&&_({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const h=e.workspaceId??f;if(e.type==="file"){const u=await y.workspaces.get(h);return m(n,o)?u?(a.dispatch(S(u)),_({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:h,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(I.error(b.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return T(h,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[w,A]=await Promise.all([a.dispatch(N(l,e.resourceId)),Promise.resolve(B.select(a.state,l)??y.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!w||String(w.workspaceId)!==l)return I.error(b.ui_linkHandler_notFound_title(),{description:b.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const F=Object.entries(j.select(a.state)).some(([u,g])=>{const v=k=>k.type==="note"&&k.noteId===String(w.id)&&(k.workspaceId??u)===l;return Object.values(g.panels).some(k=>k.tabs.some(v))||E.select(a.state,u).some(v)}),M=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(w.id)];return!F&&(!r.background||M===void 0)&&a.dispatch(R(l,String(w.id),"editor")),_({type:"note",title:w.title,noteId:String(w.id),workspaceId:l,closable:!0},r,n),!0}async function T(t,r,s,e,i,d){const c=await y.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await y.workspaces.get(t);if(!m(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return I.error(b.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),_({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await x(async()=>{const{openMessage:h}=await import("./BVVyDeyd.js");return{openMessage:h}},__vite__mapDeps([32,33,34,35,4,5,21,22,23,24,3,8,25,15,2,13,14,7,9,16,36,37,38,39,40,27,17,6,12,41,19,42,43,44,45]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,J as selectAssistantPanelLayoutId,de as showAssistantContent};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CBafvv8h.js","/app/immutable/chunks/BAymCgEX.js","/app/immutable/chunks/Bqd7fdCF.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/51_h0jm2.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/PXCFrn2V.js","/app/immutable/chunks/CpPNoOk-.js","/app/immutable/chunks/DxvSggY5.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CdOh_Fmv.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/Bjy4ygfJ.js","/app/immutable/chunks/Cgn_eC9-.js","/app/immutable/chunks/BQDGTBxC.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DGmOjLYi.js","/app/immutable/chunks/C9UsZ4re.js","/app/immutable/chunks/DqFWZ_g1.js","/app/immutable/chunks/D6dNunKo.js","/app/immutable/chunks/CbRsc9i4.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BEklUrxK.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/DSQT151l.js","/app/immutable/chunks/BxwkoIbZ.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/CzS5ny-g.js","/app/immutable/chunks/B5aYN90J.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/Cj_UUgNI.js","/app/immutable/chunks/BBWuirRW.js","/app/immutable/chunks/DONrLvvt.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BSfkjlLx.js","/app/immutable/chunks/CgwFGLCK.js","/app/immutable/chunks/CnztNSaN.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/t7yAUuZn.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CGzD6XfW.js"])))=>i.map(i=>d[i]);
2
+ import{bm as b,_ as x}from"./51_h0jm2.js";import{i as f,J4 as a,di as P,Hs as S,y$ as N,FE as R,vD as q,qV as W,vb as H,L9 as U}from"./CbRsc9i4.js";import{d as y}from"./Cj_UUgNI.js";import{E as V}from"./Cgn_eC9-.js";import{parseIntentLink as D}from"./B-_ROixI.js";import{m as I}from"./BAymCgEX.js";import"./CJxGDkBm.js";import"./CpPNoOk-.js";import"./DxvSggY5.js";import"./ChTqQfQN.js";import"./D6dNunKo.js";import{x as j,k as E,w as L}from"./BRRvOx4M.js";import{dE as B}from"./CgwFGLCK.js";import{p as C,o as $,h as z}from"./D-NrCL67.js";const p="assistant-content",J=a.createSelector(t=>{const r=C.select(t),s=$.select(t),e=z.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function K(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function m(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function G(t){a.dispatch(q(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function _(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(W(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:E.select(a.state,s)}))}a.dispatch(H(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await Q(t,r)}catch(s){return I.error(b.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Q(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?D(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!V(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=C.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??J.select(a.state);if(!n)return!0;const o=K(n,r.background);if(await G(n),!m(n,o))return!0;if(i){const u=i[1],g=await y.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),_({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(I.error(b.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await x(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./CBafvv8h.js").then(k=>k.b);return{resolveBrowserLinkForOpen:v}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]),import.meta.url),g=await u(t);return m(n,o)&&_({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const h=e.workspaceId??f;if(e.type==="file"){const u=await y.workspaces.get(h);return m(n,o)?u?(a.dispatch(S(u)),_({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:h,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(I.error(b.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return T(h,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[w,A]=await Promise.all([a.dispatch(N(l,e.resourceId)),Promise.resolve(B.select(a.state,l)??y.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!w||String(w.workspaceId)!==l)return I.error(b.ui_linkHandler_notFound_title(),{description:b.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const F=Object.entries(j.select(a.state)).some(([u,g])=>{const v=k=>k.type==="note"&&k.noteId===String(w.id)&&(k.workspaceId??u)===l;return Object.values(g.panels).some(k=>k.tabs.some(v))||E.select(a.state,u).some(v)}),M=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(w.id)];return!F&&(!r.background||M===void 0)&&a.dispatch(R(l,String(w.id),"editor")),_({type:"note",title:w.title,noteId:String(w.id),workspaceId:l,closable:!0},r,n),!0}async function T(t,r,s,e,i,d){const c=await y.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await y.workspaces.get(t);if(!m(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return I.error(b.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),_({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await x(async()=>{const{openMessage:h}=await import("./CzS5ny-g.js");return{openMessage:h}},__vite__mapDeps([32,33,34,35,4,5,21,22,23,24,3,8,25,15,2,13,14,7,9,16,36,37,38,39,40,27,17,6,12,41,19,42,43,44,45]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,J as selectAssistantPanelLayoutId,de as showAssistantContent};