@intent-hq/web 2.308.0 → 2.308.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{Cdw6MInS.js → 20p6UVrJ.js} +1 -1
  3. package/web/app/immutable/chunks/{sFBciGzK.js → 3mA9htoY.js} +1 -1
  4. package/web/app/immutable/chunks/{Dft9saDn.js → 4sdU8HJh.js} +1 -1
  5. package/web/app/immutable/chunks/{Hv37H7OW.js → 5jHx5tgm.js} +1 -1
  6. package/web/app/immutable/chunks/{mxMUw61m.js → 64K2oBlN.js} +1 -1
  7. package/web/app/immutable/chunks/{-B3w7smR.js → 7GaMUkMr.js} +1 -1
  8. package/web/app/immutable/chunks/{fsr4ml-E.js → 7I4Lb20T.js} +1 -1
  9. package/web/app/immutable/chunks/{Dy2IW3UQ.js → 7NZPmxCc.js} +1 -1
  10. package/web/app/immutable/chunks/{C4EO5Kfs.js → 7woFK997.js} +1 -1
  11. package/web/app/immutable/chunks/{CVmTCE7s.js → AcuCqG0h.js} +1 -1
  12. package/web/app/immutable/chunks/{7-4K7v4g.js → Aq8XADnv.js} +1 -1
  13. package/web/app/immutable/chunks/{BvSpaYYO.js → B-Do9RZm.js} +1 -1
  14. package/web/app/immutable/chunks/{DRY7e-Lq.js → B1gh0LOn.js} +1 -1
  15. package/web/app/immutable/chunks/{DtWlovTg.js → B2MkQOVO.js} +1 -1
  16. package/web/app/immutable/chunks/{DCYtlLu-.js → B43S04j_.js} +1 -1
  17. package/web/app/immutable/chunks/{C3Fbg3bo.js → B4kMH02u.js} +1 -1
  18. package/web/app/immutable/chunks/{DqF0c_03.js → B5n1NWyy.js} +1 -1
  19. package/web/app/immutable/chunks/B6MkJHGN.js +1 -0
  20. package/web/app/immutable/chunks/{BgY3ql3v.js → B6Utvg2n.js} +1 -1
  21. package/web/app/immutable/chunks/{DbN_saL_.js → B6qPnBG-.js} +1 -1
  22. package/web/app/immutable/chunks/{Bsg35Oqb.js → B7OQprzS.js} +1 -1
  23. package/web/app/immutable/chunks/{CuDezCQ5.js → B7ZegD4D.js} +2 -2
  24. package/web/app/immutable/chunks/{_ybNzzj4.js → B8923tpn.js} +1 -1
  25. package/web/app/immutable/chunks/{DketxIzW.js → BAzJKeaK.js} +1 -1
  26. package/web/app/immutable/chunks/{Bmp6mo_s.js → BD3-5til.js} +1 -1
  27. package/web/app/immutable/chunks/{BWEOkWg3.js → BDzrcVAC.js} +1 -1
  28. package/web/app/immutable/chunks/{BiFgVe6g.js → BEW3Nx_B.js} +2 -2
  29. package/web/app/immutable/chunks/{7EvfrDU0.js → BIQCpOqH.js} +1 -1
  30. package/web/app/immutable/chunks/{hTYb21U_.js → BJgRJinA.js} +1 -1
  31. package/web/app/immutable/chunks/{DExyo3TI.js → BK1cEBjQ.js} +1 -1
  32. package/web/app/immutable/chunks/{79Zkca1D.js → BKv7jjmi.js} +1 -1
  33. package/web/app/immutable/chunks/{C2Ib9ljU.js → BNIR-Q1X.js} +1 -1
  34. package/web/app/immutable/chunks/{BWLUCU8u.js → BR9v8XzI.js} +1 -1
  35. package/web/app/immutable/chunks/{DMl2hAjr.js → BV6v273A.js} +1 -1
  36. package/web/app/immutable/chunks/{CCL8C58v.js → BW8HfXsd.js} +1 -1
  37. package/web/app/immutable/chunks/{5Ji_nn5U.js → BWaUCvWp.js} +1 -1
  38. package/web/app/immutable/chunks/{CkRxNMzn.js → BXxd1yfG.js} +1 -1
  39. package/web/app/immutable/chunks/{BW4J01Vd.js → BY5rau8Y.js} +1 -1
  40. package/web/app/immutable/chunks/{Dt4s7v4Q.js → BY6gVP5g.js} +2 -2
  41. package/web/app/immutable/chunks/{BNzOwWfC.js → B_xltzgW.js} +1 -1
  42. package/web/app/immutable/chunks/{Co8-Pa6T.js → BaW2Kupg.js} +4 -4
  43. package/web/app/immutable/chunks/{D_LJNo0n.js → BbGSGn0Q.js} +1 -1
  44. package/web/app/immutable/chunks/{BoSllnp_.js → BbUQNpFr.js} +1 -1
  45. package/web/app/immutable/chunks/{CxrPw94A.js → BbzvDmlI.js} +3 -3
  46. package/web/app/immutable/chunks/{CU8cEhkD.js → Bc8khoFa.js} +1 -1
  47. package/web/app/immutable/chunks/{B1yY6GJu.js → BcN0CnII.js} +1 -1
  48. package/web/app/immutable/chunks/{C_QScSD8.js → Beai452N.js} +1 -1
  49. package/web/app/immutable/chunks/{Ces2yzPJ.js → BfZnDuM_.js} +1 -1
  50. package/web/app/immutable/chunks/{CHPRzIEy.js → BhHn9akW.js} +1 -1
  51. package/web/app/immutable/chunks/{CH9XQcSf.js → BhVXJo65.js} +1 -1
  52. package/web/app/immutable/chunks/{BUHhLhgs.js → Bi74ET9W.js} +1 -1
  53. package/web/app/immutable/chunks/{CARz5CCT.js → BqVcdxr-.js} +1 -1
  54. package/web/app/immutable/chunks/{CdV1nqqz.js → Br15jMhJ.js} +1 -1
  55. package/web/app/immutable/chunks/{CRzOnFQP.js → Bs4FWb9N.js} +1 -1
  56. package/web/app/immutable/chunks/{BVOBfKOE.js → BsqCeXyo.js} +1 -1
  57. package/web/app/immutable/chunks/{dih-86Tc.js → Bt1rXtoo.js} +1 -1
  58. package/web/app/immutable/chunks/{CVyBS3oN.js → BtabWTXt.js} +1 -1
  59. package/web/app/immutable/chunks/{gdHduTFA.js → Byuo4e4d.js} +1 -1
  60. package/web/app/immutable/chunks/{DmUYWvMN.js → Bz6PKE7H.js} +1 -1
  61. package/web/app/immutable/chunks/{CWC_Nlup.js → BzL4sJXY.js} +1 -1
  62. package/web/app/immutable/chunks/{9hq3-PO7.js → C0a6I3vg.js} +1 -1
  63. package/web/app/immutable/chunks/{BOCOLX90.js → C44FfRqF.js} +3 -3
  64. package/web/app/immutable/chunks/{DQjYQpqd.js → C4OKLpdN.js} +1 -1
  65. package/web/app/immutable/chunks/{D4DWEC-L.js → C4V8YQCv.js} +1 -1
  66. package/web/app/immutable/chunks/{BqcwAMAI.js → C5EoO5Sg.js} +1 -1
  67. package/web/app/immutable/chunks/{BjPXFOqO.js → C5UReY-E.js} +1 -1
  68. package/web/app/immutable/chunks/{BCX3JQcy.js → C5j9FNqg.js} +1 -1
  69. package/web/app/immutable/chunks/{Dm4s1Q7w.js → C5zpIq2z.js} +1 -1
  70. package/web/app/immutable/chunks/{eArTaZy5.js → C6lu15Tw.js} +1 -1
  71. package/web/app/immutable/chunks/{DWTnVkwi.js → C6z3A8E7.js} +1 -1
  72. package/web/app/immutable/chunks/{BX6K5XDX.js → C8QbdAo3.js} +1 -1
  73. package/web/app/immutable/chunks/{De8QYb8q.js → CDnda6Iq.js} +1 -1
  74. package/web/app/immutable/chunks/{V0vWExlc.js → CG68xo30.js} +1 -1
  75. package/web/app/immutable/chunks/{C_ibd4Ww.js → CGMdgn-W.js} +1 -1
  76. package/web/app/immutable/chunks/{DrsphvSS.js → CGzdYZTI.js} +1 -1
  77. package/web/app/immutable/chunks/{Deu3BA7u.js → CIC39etl.js} +1 -1
  78. package/web/app/immutable/chunks/{Bzvl9BJV.js → CJYxykIm.js} +1 -1
  79. package/web/app/immutable/chunks/{B7Se8Mhp.js → CKIXy6ww.js} +1 -1
  80. package/web/app/immutable/chunks/{Hf5uwTdE.js → CL-rni0w.js} +1 -1
  81. package/web/app/immutable/chunks/{BXeRsIrT.js → CLy6KHFt.js} +6 -6
  82. package/web/app/immutable/chunks/{BeMvIUhX.js → CMNzHnZE.js} +1 -1
  83. package/web/app/immutable/chunks/{BiGwvkYf.js → COErIaxB.js} +1 -1
  84. package/web/app/immutable/chunks/{CyFFAGL5.js → CRHmQRas.js} +1 -1
  85. package/web/app/immutable/chunks/{Ds_Kf9EA.js → CWfnIL3Q.js} +7 -7
  86. package/web/app/immutable/chunks/{BwldUeEG.js → CY2dENCG.js} +1 -1
  87. package/web/app/immutable/chunks/{Xo50RLJp.js → CYbC4Xec.js} +1 -1
  88. package/web/app/immutable/chunks/{Bj1RMWlB.js → CboPiPQY.js} +1 -1
  89. package/web/app/immutable/chunks/{Bjte08dR.js → Cce6TTnZ.js} +1 -1
  90. package/web/app/immutable/chunks/{GF5ZSxte.js → CdwBPvEi.js} +1 -1
  91. package/web/app/immutable/chunks/{DR-Aj_ks.js → Cg2VNX7z.js} +1 -1
  92. package/web/app/immutable/chunks/{BnUIUu9T.js → ChGBRwNt.js} +1 -1
  93. package/web/app/immutable/chunks/{nPJWc816.js → Cm7xDtac.js} +1 -1
  94. package/web/app/immutable/chunks/{Cr9D3b1H.js → CmXHtTkz.js} +1 -1
  95. package/web/app/immutable/chunks/{C8htDeGn.js → CpiHp8Ae.js} +4 -4
  96. package/web/app/immutable/chunks/{Du-d3vcz.js → CrvoX2WJ.js} +1 -1
  97. package/web/app/immutable/chunks/{CUSFlCws.js → Ctl_B37M.js} +1 -1
  98. package/web/app/immutable/chunks/{CUUGGMlu.js → CucuIbmg.js} +1 -1
  99. package/web/app/immutable/chunks/{BP5FX2kf.js → CwFOIVIZ.js} +1 -1
  100. package/web/app/immutable/chunks/{C6ujNqIY.js → CxQfN3-2.js} +1 -1
  101. package/web/app/immutable/chunks/{hQ9zd42d.js → Cxs8qSWC.js} +1 -1
  102. package/web/app/immutable/chunks/{08jl08Lg.js → D-vX4iJv.js} +1 -1
  103. package/web/app/immutable/chunks/{5MwvnnU4.js → D3vkMbH6.js} +2 -2
  104. package/web/app/immutable/chunks/{VKybzKaK.js → D6FhcUuF.js} +1 -1
  105. package/web/app/immutable/chunks/{B2WUxdNu.js → DAKiyYLi.js} +2 -2
  106. package/web/app/immutable/chunks/{DYyzIkMa.js → DBe3iowp.js} +1 -1
  107. package/web/app/immutable/chunks/{BdjTR4R9.js → DCHrAI0P.js} +4 -4
  108. package/web/app/immutable/chunks/{BdrD6-Yk.js → DCTOYXXK.js} +1 -1
  109. package/web/app/immutable/chunks/{B70VJUk6.js → DCn_fwGY.js} +1 -1
  110. package/web/app/immutable/chunks/{UDIxqEeg.js → DCpLg9rk.js} +1 -1
  111. package/web/app/immutable/chunks/{Biu0mZ7b.js → DDVvWGb_.js} +1 -1
  112. package/web/app/immutable/chunks/{jZC5wC-X.js → DFX-g_B2.js} +1 -1
  113. package/web/app/immutable/chunks/{DZ0q4VGI.js → DGCL143k.js} +1 -1
  114. package/web/app/immutable/chunks/{fgutS2Xt.js → DHeLZdAl.js} +1 -1
  115. package/web/app/immutable/chunks/{JyqDnnKU.js → DJhdh1Cj.js} +1 -1
  116. package/web/app/immutable/chunks/{TNF6hsWn.js → DJlDux3f.js} +1 -1
  117. package/web/app/immutable/chunks/{BfVCrToW.js → DLDAnI9z.js} +1 -1
  118. package/web/app/immutable/chunks/{BU52YJZu.js → DMUxnsSi.js} +1 -1
  119. package/web/app/immutable/chunks/{DiTToznV.js → DN0k4-NH.js} +2 -2
  120. package/web/app/immutable/chunks/{q3LKPyTi.js → DNS6iE59.js} +1 -1
  121. package/web/app/immutable/chunks/{C4JGZJVX.js → DQpf1Ksw.js} +1 -1
  122. package/web/app/immutable/chunks/{B8zPoaDq.js → DRm8GvSg.js} +1 -1
  123. package/web/app/immutable/chunks/{6zbeEeHU.js → DWbUmCoQ.js} +1 -1
  124. package/web/app/immutable/chunks/{hRTXnLSp.js → DZcnfrfN.js} +1 -1
  125. package/web/app/immutable/chunks/{BvZ472sk.js → DaR6SlK7.js} +3 -3
  126. package/web/app/immutable/chunks/{OXkvCdQy.js → Dd78YZJ8.js} +2 -2
  127. package/web/app/immutable/chunks/{RBtryOly.js → DeGjTipP.js} +1 -1
  128. package/web/app/immutable/chunks/{CbdsiBFH.js → DeKx3e_L.js} +1 -1
  129. package/web/app/immutable/chunks/{DUNFJ1mG.js → DgBIwWee.js} +1 -1
  130. package/web/app/immutable/chunks/{CZrhAzUT.js → DgHl4bT8.js} +1 -1
  131. package/web/app/immutable/chunks/{Bu8ds4Jl.js → DhIDq5qU.js} +1 -1
  132. package/web/app/immutable/chunks/{DmfJJbWh.js → DhT0fw5L.js} +1 -1
  133. package/web/app/immutable/chunks/{7EVUv7lz.js → Djwcl6Fr.js} +1 -1
  134. package/web/app/immutable/chunks/{0Jt7HvfX.js → Dl8JqE7s.js} +1 -1
  135. package/web/app/immutable/chunks/{fe_eftOD.js → DlZ5F9Lx.js} +1 -1
  136. package/web/app/immutable/chunks/{ByIqwBuP.js → DnamVqCn.js} +1 -1
  137. package/web/app/immutable/chunks/{DcW7h9iU.js → DoMPu14N.js} +1 -1
  138. package/web/app/immutable/chunks/{Cuq5AuKG.js → Dof0iyzF.js} +1 -1
  139. package/web/app/immutable/chunks/{D-L0g5sP.js → Doh3PUYI.js} +1 -1
  140. package/web/app/immutable/chunks/{DPCSzjyj.js → DqgAlN7P.js} +1 -1
  141. package/web/app/immutable/chunks/{DcWh3crB.js → DtDxrQfi.js} +1 -1
  142. package/web/app/immutable/chunks/{P2xe4rfv.js → DtLridJD.js} +1 -1
  143. package/web/app/immutable/chunks/{DvcYKh19.js → DuD6uhYH.js} +1 -1
  144. package/web/app/immutable/chunks/{CQwSYydk.js → DvBs4Hcz.js} +1 -1
  145. package/web/app/immutable/chunks/{fLy_hJlz.js → DvDq_wDk.js} +1 -1
  146. package/web/app/immutable/chunks/{BsBYt8VW.js → DwclCkw1.js} +1 -1
  147. package/web/app/immutable/chunks/{Bsl2-PKT.js → Dx2FEG0z.js} +1 -1
  148. package/web/app/immutable/chunks/{BmhoW_L6.js → DxGyW0lA.js} +1 -1
  149. package/web/app/immutable/chunks/{D49m-ZaH.js → DzsfGvxl.js} +1 -1
  150. package/web/app/immutable/chunks/{B-ahkFCR.js → Fo7QNM30.js} +1 -1
  151. package/web/app/immutable/chunks/{CaHzETsO.js → Glr413kB.js} +1 -1
  152. package/web/app/immutable/chunks/{DtB5d-1F.js → HsvYWQrw.js} +1 -1
  153. package/web/app/immutable/chunks/{BL9-ROzw.js → JWlrX8g6.js} +1 -1
  154. package/web/app/immutable/chunks/{DMFRjZee.js → Jqp5qOVD.js} +1 -1
  155. package/web/app/immutable/chunks/{CLgOAyRn.js → LigVTKZd.js} +1 -1
  156. package/web/app/immutable/chunks/{7Oj1FwH7.js → M5XKIMwb.js} +1 -1
  157. package/web/app/immutable/chunks/{CRTiEGz_.js → NcTzLGaE.js} +6 -6
  158. package/web/app/immutable/chunks/{8xz0mqCS.js → Q7h5F5MY.js} +1 -1
  159. package/web/app/immutable/chunks/{HFgXggBX.js → ST0Pr06L.js} +1 -1
  160. package/web/app/immutable/chunks/{DBG-2jVd.js → SqT0PCrX.js} +1 -1
  161. package/web/app/immutable/chunks/{1Q6G0pvW.js → U1EJdIrS.js} +1 -1
  162. package/web/app/immutable/chunks/{BaCDnbdR.js → U5EkHYlB.js} +1 -1
  163. package/web/app/immutable/chunks/{CKylENIK.js → UuhfJP8e.js} +1 -1
  164. package/web/app/immutable/chunks/{B6SdqA8G.js → VLIUKGSW.js} +1 -1
  165. package/web/app/immutable/chunks/{B_ihHIXk.js → XhVa-cY9.js} +1 -1
  166. package/web/app/immutable/chunks/{B9Zb2I-3.js → XwAA3IRV.js} +1 -1
  167. package/web/app/immutable/chunks/{LNGUAKz-.js → ZSVjaaq5.js} +1 -1
  168. package/web/app/immutable/chunks/{Bdi_ql3M.js → ZW7HN3jk.js} +1 -1
  169. package/web/app/immutable/chunks/{D60UPZv6.js → cK_X_Z2_.js} +1 -1
  170. package/web/app/immutable/chunks/{B4JY7OdG.js → cp14at2-.js} +1 -1
  171. package/web/app/immutable/chunks/{DKI6Z6i9.js → cyTctvu3.js} +1 -1
  172. package/web/app/immutable/chunks/{mXP56bVn.js → f4sPQl0K.js} +1 -1
  173. package/web/app/immutable/chunks/{DhLqxXsb.js → hebNG67g.js} +1 -1
  174. package/web/app/immutable/chunks/{DKUxKAad.js → hf6CuW6w.js} +1 -1
  175. package/web/app/immutable/chunks/{BCShYG5q.js → i-Fs1U2f.js} +1 -1
  176. package/web/app/immutable/chunks/{gZfnsun1.js → jqiCLmEu.js} +6 -6
  177. package/web/app/immutable/chunks/{W_knKG-M.js → lP8JdB64.js} +1 -1
  178. package/web/app/immutable/chunks/{DgTxDo3A.js → qCYtXSkB.js} +1 -1
  179. package/web/app/immutable/chunks/{edWktldY.js → s0uOmxSf.js} +1 -1
  180. package/web/app/immutable/chunks/{DpfRsBSx.js → saR3-JRv.js} +1 -1
  181. package/web/app/immutable/chunks/{CrHWjZvi.js → t-AupbTj.js} +1 -1
  182. package/web/app/immutable/chunks/{CjnNpRDF.js → uD982nf2.js} +1 -1
  183. package/web/app/immutable/chunks/{B2LC9Sos.js → yQERw7Ok.js} +1 -1
  184. package/web/app/immutable/chunks/{BC2yRiH0.js → ybv9yBcQ.js} +1 -1
  185. package/web/app/immutable/entry/{app.5swf8fH6.js → app.DbJk3ZpG.js} +2 -2
  186. package/web/app/immutable/entry/start.DTPxOZG8.js +1 -0
  187. package/web/app/immutable/nodes/{0.rj6WxPiI.js → 0.BJ700vC2.js} +1 -1
  188. package/web/app/immutable/nodes/{1.D2LKdxSK.js → 1.BTyy14rK.js} +1 -1
  189. package/web/app/immutable/nodes/{10.CsOXyM9t.js → 10.V55g30nz.js} +1 -1
  190. package/web/app/immutable/nodes/{14.EKyMha8S.js → 14._G7LK5Dq.js} +1 -1
  191. package/web/app/immutable/nodes/{16.DJIf57hW.js → 16.DvmMFRvS.js} +2 -2
  192. package/web/app/immutable/nodes/{2.lbWc9DH5.js → 2.CxEoe4OH.js} +3 -3
  193. package/web/app/immutable/nodes/{3.in8ZwJzB.js → 3.Cx7GEzkN.js} +1 -1
  194. package/web/app/immutable/nodes/{4.CUsxPHda.js → 4.BScaFjaT.js} +1 -1
  195. package/web/app/immutable/nodes/{5.DvU91sgr.js → 5.B524kS74.js} +1 -1
  196. package/web/app/immutable/nodes/{6.BdAKoKat.js → 6.DazQUzxi.js} +1 -1
  197. package/web/app/immutable/nodes/{7.JNWjRQgm.js → 7.BtN1OPi8.js} +1 -1
  198. package/web/app/immutable/nodes/{8.CzuEJYxY.js → 8.Ak4UD-JY.js} +2 -2
  199. package/web/app/immutable/nodes/{9.Bn4F0-mM.js → 9.BGiVSjZY.js} +1 -1
  200. package/web/app/version.json +1 -1
  201. package/web/index.html +9 -9
  202. package/web/app/immutable/chunks/ppMO_QX7.js +0 -1
  203. package/web/app/immutable/entry/start.B6Q2SB8U.js +0 -1
@@ -1,3 +1,3 @@
1
- import{p as re}from"./BeMvIUhX.js";import{aP as oe,c9 as se,c6 as de,aK as le,aL as ce,c7 as me,f as o,bC as g,aO as T,c3 as ue,ce as xe,a0 as fe,$ as ge,aN as M,ax as he,c2 as y,cA as P,T as pe}from"./gZfnsun1.js";import{p as be,i as ve}from"./f_earp7w.js";var $="position frame",N="frame positioned",S="position relation",C="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){D(),fe()},"clear");function D(){B={}}o(D,"reset");var Se=he.eventmodeling,ke=o(()=>ge({...Se,...M().eventmodeling}),"getConfig"),B={};function O(){let e=Fe;const{ast:n}=B,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=G(i,n.dataEntities,t);e=v(e,{$kind:$,index:a,frame:i,textProps:r});let d;z(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:S,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:S,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(O,"getState");function I(e){B.ast=e}o(I,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function W(e){const n=e.split(".");if(n.length===2)return n[0]}o(W,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&a<t}).map(i=>Number.parseInt(i)))+1}o(b,"findNextAvailableIndex");function L(e,n){const t=W(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(L,"calculateSwimlaneProps");function _(e){const{themeVariables:n}=M();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(_,"calculateEntityVisualProps");function G(e,n,t){const i=M(),a=y(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let c=`<b>${P(a,t.textMaxWidth,d)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" ","&nbsp;")),e.dataReference){const p=n.find(w=>w.name===e.dataReference?.$refText);p&&(r=p.dataBlockValue,r=r.substring(r.indexOf(`{
1
+ import{p as re}from"./CMNzHnZE.js";import{aP as oe,c9 as se,c6 as de,aK as le,aL as ce,c7 as me,f as o,bC as g,aO as T,c3 as ue,ce as xe,a0 as fe,$ as ge,aN as M,ax as he,c2 as y,cA as P,T as pe}from"./jqiCLmEu.js";import{p as be,i as ve}from"./f_earp7w.js";var $="position frame",N="frame positioned",S="position relation",C="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){D(),fe()},"clear");function D(){B={}}o(D,"reset");var Se=he.eventmodeling,ke=o(()=>ge({...Se,...M().eventmodeling}),"getConfig"),B={};function O(){let e=Fe;const{ast:n}=B,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=G(i,n.dataEntities,t);e=v(e,{$kind:$,index:a,frame:i,textProps:r});let d;z(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:S,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:S,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(O,"getState");function I(e){B.ast=e}o(I,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function W(e){const n=e.split(".");if(n.length===2)return n[0]}o(W,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&a<t}).map(i=>Number.parseInt(i)))+1}o(b,"findNextAvailableIndex");function L(e,n){const t=W(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(L,"calculateSwimlaneProps");function _(e){const{themeVariables:n}=M();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(_,"calculateEntityVisualProps");function G(e,n,t){const i=M(),a=y(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let c=`<b>${P(a,t.textMaxWidth,d)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" ","&nbsp;")),e.dataReference){const p=n.find(w=>w.name===e.dataReference?.$refText);p&&(r=p.dataBlockValue,r=r.substring(r.indexOf(`{
2
2
  `)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=y(r,i),r=P(r,t.textMaxWidth,d),r=r.replaceAll(" ","&nbsp;"),r+="<br/>")}const m=r!==void 0;m&&(c+=`<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`);const x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=pe(c,x),h=m?u.width/3:u.width,f={content:c,width:h,height:u.height};return g.debug(`[${e.name}] ${e.entityIdentifier} text`,f),f}o(G,"calculateTextProps");function V(e,n){const t=n,i=_(t.frame),a={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:N,frame:t.frame,index:t.index,visual:i,dimension:a,textProps:t.textProps}]}o(V,"decidePositionFrame");function X(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o(X,"calculateX");function j(e,n){const t=[...e.map(i=>i.r),n];return Math.max(...t)}o(j,"calculateMaxRight");function A(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o(A,"sortedSwimlanesArray");function Y(e,n){const t=n,i=L(t.frame,e.swimlanes);let a;i.index in e.swimlanes?a=e.swimlanes[i.index]:a={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},c=X(a,d,r),m=c+l.width+s.boxPadding,x=j(Object.values(e.swimlanes),m);a.r=c+l.width,a.maxHeight=Math.max(a.maxHeight,l.height),a.height=Math.max(s.swimlaneMinHeight,a.maxHeight)+2*s.swimlanePadding;const u={x:c,y:s.swimlanePadding+a.y,r:m,dimension:l,leftSibling:!1,swimlane:a,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},h={...e,boxes:[...e.boxes,u],swimlanes:{...e.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:x},f=A(h.swimlanes);f.length>0&&(f[0].y=0);for(let p=1;p<f.length;p++){const w=f[p],R=f[p-1];w.y=R.y+R.height+s.swimlaneGap}return h}o(Y,"evolveFramePositioned");function K(e,n){return e===0&&n.sourceFrames.length===0}o(K,"isFirstFrame");function z(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}o(z,"hasSourceFrame");function k(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o(k,"findBoxByFrame");function q(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){const a=e[i];if(a.swimlane.index!==n)return a}}o(q,"findBoxByLineIndex");function J(e,n){const t=n;if(ve(t.frame)||K(t.index,t.frame))return[];const i=k(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let a;return t.sourceFrame?a=k(e.boxes,t.sourceFrame):a=q(e.boxes,i.swimlane.index,t.index-1),a===void 0?[]:[{$kind:C,frame:t.frame,index:t.index,sourceBox:a,targetBox:i}]}o(J,"decidePositionRelation");function Q(e,n){const t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o(Q,"evolveRelationPositioned");var Me={[$]:V,[S]:J},Be={[N]:Y,[C]:Q};function Z(e,n){const t=Me[n.$kind];if(t==null)return[];const i=t(e,n);return g.debug("decided events",i),i}o(Z,"decide");function ee(e,n){const t=n.reduce((i,a)=>{const r=Be[a.$kind];return r==null?i:r(i,a)},e);return g.debug("evolve events",{state:e,newState:t,events:n}),t}o(ee,"evolve");function v(e,n){const t=Z(e,n);return ee(e,t)}o(v,"dispatch");var F={getConfig:ke,setOptions:we,getOptions:ye,clear:Pe,setAccTitle:me,getAccTitle:ce,getAccDescription:le,setAccDescription:de,setDiagramTitle:se,getDiagramTitle:oe,setAst:I,getDiagramProps:E,getState:O},Ee={parse:o(async e=>{const n=await be("eventmodeling",e);g.debug(n),F.setAst(n),re(n,F)},"parse")},Ae=T(),Re=Ae?.eventmodeling;function te(e,n){return t=>{const i=t.swimlane.y+n.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),a.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o(te,"renderD3Box");function ne(e,n){return e>n}o(ne,"dirUpwards");function ie(e,n,t,i){return a=>{const r=a.sourceBox.swimlane.y+n.swimlanePadding,d=a.targetBox.swimlane.y+n.swimlanePadding,l=ne(r,d),c=a.sourceBox.x+a.sourceBox.dimension.width*2/3,m=a.targetBox.x+a.targetBox.dimension.width/3;let x,u;g.debug(`rendering relation up=${l} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),l?(x=r,u=d+a.targetBox.dimension.height):(x=r+a.sourceBox.dimension.height,u=d);const h=i.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",h).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${c} ${x} L${m} ${u}`)}}o(ie,"renderD3Relation");function ae(e,n,t,i){return a=>{const r=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",a.height).attr("fill",d).attr("stroke",l),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}o(ae,"renderD3Swimlane");var Te=o(function(e,n,t,i){if(g.debug("in eventmodeling renderer",e+`
3
3
  `,"id:",n,t),!Re)throw new Error("EventModeling config not found");const a=i.db,{themeVariables:r,eventmodeling:d}=T(),l=ue(`[id="${n}"]`),c=a.getDiagramProps(),m=a.getState(),x=`em-arrowhead-${n}`,u=r.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ae(l,m.maxR,c,r)),m.boxes.forEach(te(l,c)),m.relations.forEach(ie(l,c,x,r)),l.append("defs").append("marker").attr("id",x).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",u),xe(void 0,l,d?.padding??30,d?.useMaxWidth)},"draw"),$e={draw:Te},Ne=o(e=>"","getStyles"),Ce=Ne,We={parser:Ee,db:F,renderer:$e,styles:Ce};export{We as diagram};
@@ -1,4 +1,4 @@
1
- import{I as le}from"./HFgXggBX.js";import{p as he}from"./BeMvIUhX.js";import{aP as $e,c9 as fe,c6 as ge,aK as ue,aL as ye,c7 as xe,f as h,aN as J,bC as w,c3 as me,aO as q,cx as pe,ce as be,a0 as we,a4 as B,$ as ke,ax as ve,bV as Ce}from"./gZfnsun1.js";import{p as Ee}from"./f_earp7w.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),Pe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),qe=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:Pe,getDirection:We,getHead:qe,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ke(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ue(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ke=h(e=>e.branch,"parseCheckout"),Ue=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,P=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),P.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=q(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
1
+ import{I as le}from"./ST0Pr06L.js";import{p as he}from"./CMNzHnZE.js";import{aP as $e,c9 as fe,c6 as ge,aK as ue,aL as ye,c7 as xe,f as h,aN as J,bC as w,c3 as me,aO as q,cx as pe,ce as be,a0 as we,a4 as B,$ as ke,ax as ve,bV as Ce}from"./jqiCLmEu.js";import{p as Ee}from"./f_earp7w.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function Y(){return Ce({length:7})}h(Y,"getID");function te(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Me=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+Y(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Ie=h(function(e){let r=e.name;const t=e.order;if(r=B.sanitizeText(r,S()),d.records.branches.has(r))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ae(r),w.debug("in createBranch")},"branch"),Oe=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${Y()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),_e=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+Y(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};d.records.head=g,d.records.commits.set(g.id,g),d.records.branches.set(d.records.currBranch,g.id),w.debug(d.records.branches),w.debug("in cherryPick")}},"cherryPick"),ae=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);V(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Ae=h(function(){return d.records.branches},"getBranches"),De=h(function(){return d.records.commits},"getCommits"),ne=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),Pe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),qe=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:De,getCommitsArray:ne,getCurrentBranch:Pe,getDirection:We,getHead:qe,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ke(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ue(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ke=h(e=>e.branch,"parseCheckout"),Ue=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,F=30,P=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),P.clear(),I=0,z=[],y="LR"},"clear"),oe=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ce=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Qe=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),Ze=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),er=h(e=>{const r=ce(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),ar=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=q(),a=j.has(n??""),l=Z.has(n??""),f=Xe.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x+3).attr("cy",t.y+2).attr("r",a?2.5:2.75).attr("fill",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x+3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`),e.append("line").attr("x1",t.x-3).attr("y1",t.y+1).attr("x2",t.x).attr("y2",t.y-5).attr("stroke",f?"#000000":"#fff").attr("class",`commit ${r.id} ${s}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),sr=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),or=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
2
2
  ${s-i/2-L/2},${x+R}
3
3
  ${s-i/2-L/2},${x-R}
4
4
  ${t.posWithOffset-i/2-L},${x-c-R}
@@ -1 +1 @@
1
- import{t as B,bq as d,a_ as T,by as W,bs as j,b as q,bo as z,bu as D}from"./DVcxpZob.js";import{bs as L,cd as O,ca as E,a7 as F,ay as G,W as f,bn as H,aA as h,aD as t,c9 as r,a5 as J,bl as K,bA as M,b_ as N,bO as Q,aB as R}from"./B8o4lNgr.js";import{C as U}from"./mxMUw61m.js";import{dl as V}from"./Rw2sIc23.js";import{i as X}from"./H2jLkRRS.js";var Y=R('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p></div>');function Z(l,o){if(new.target)return B({component:Z,...l});L(o,!0);const c=()=>D(b,"$workspace",u),[u,m]=j();let s=d(o,"tab",7),n=d(o,"workspaceId",7);const g=O(n());E(()=>{g.set(n())});const b=V(g),_=r(()=>c()?.worktreePath||c()?.repositoryPath||""),i=r(()=>s().data?.changes||[]),v=r(()=>s().data?.isAggregate||!1),w=r(()=>s().data?.agentId),k=r(()=>t(i).map(e=>{const a=e.filePath&&X(e.filePath)?e.filePath:`${t(_)}/${e.filePath}`;return{...e,filePath:a}}));var C={get tab(){return s()},set tab(e){s(e),h()},get workspaceId(){return n()},set workspaceId(e){n(e),h()},$set:W,$on:(e,a)=>q(o,e,a)},p=F(),y=G(p);{var P=e=>{U(e,{isLoading:!1,get changes(){return t(k)},get isAggregate(){return t(v)},get agentId(){return t(w)},showStagingControls:!0})},I=e=>{var a=Y(),A=J(a),$=K(A,!0);M(a),N(S=>Q($,S),[()=>z.layout_chatChanges_noChanges_label()]),f(e,a)};T(y,e=>{t(i).length>0?e(P):e(I,-1)})}f(l,p);var x=H(C);return m(),x}export{Z as default};
1
+ import{t as B,bq as d,a_ as T,by as W,bs as j,b as q,bo as z,bu as D}from"./DVcxpZob.js";import{bs as L,cd as O,ca as E,a7 as F,ay as G,W as f,bn as H,aA as h,aD as t,c9 as r,a5 as J,bl as K,bA as M,b_ as N,bO as Q,aB as R}from"./B8o4lNgr.js";import{C as U}from"./64K2oBlN.js";import{dl as V}from"./Rw2sIc23.js";import{i as X}from"./H2jLkRRS.js";var Y=R('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p></div>');function Z(l,o){if(new.target)return B({component:Z,...l});L(o,!0);const c=()=>D(b,"$workspace",u),[u,m]=j();let s=d(o,"tab",7),n=d(o,"workspaceId",7);const g=O(n());E(()=>{g.set(n())});const b=V(g),_=r(()=>c()?.worktreePath||c()?.repositoryPath||""),i=r(()=>s().data?.changes||[]),v=r(()=>s().data?.isAggregate||!1),w=r(()=>s().data?.agentId),k=r(()=>t(i).map(e=>{const a=e.filePath&&X(e.filePath)?e.filePath:`${t(_)}/${e.filePath}`;return{...e,filePath:a}}));var C={get tab(){return s()},set tab(e){s(e),h()},get workspaceId(){return n()},set workspaceId(e){n(e),h()},$set:W,$on:(e,a)=>q(o,e,a)},p=F(),y=G(p);{var P=e=>{U(e,{isLoading:!1,get changes(){return t(k)},get isAggregate(){return t(v)},get agentId(){return t(w)},showStagingControls:!0})},I=e=>{var a=Y(),A=J(a),$=K(A,!0);M(a),N(S=>Q($,S),[()=>z.layout_chatChanges_noChanges_label()]),f(e,a)};T(y,e=>{t(i).length>0?e(P):e(I,-1)})}f(l,p);var x=H(C);return m(),x}export{Z as default};
@@ -1,4 +1,4 @@
1
- import{p as _}from"./CjnNpRDF.js";import{p as E}from"./DR-Aj_ks.js";import{aF as F,K as D,O as G,aI as P,L as z,aG as B,a as c,aE as W,k as V,j as C,M as T,y as j,ad as k,U as H,r as U}from"./Ds_Kf9EA.js";import{g as w}from"./gZfnsun1.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,S={axes:[],curves:[],options:x},m=structuredClone(S),K=j.radar,X=c(()=>C({...K,...T().radar}),"getConfig"),O=c(()=>m.axes,"getAxes"),N=c(()=>m.curves,"getCurves"),Y=c(()=>m.options,"getOptions"),Z=c(a=>{m.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),q=c(a=>{m.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:J(t.entries)}))},"setCurves"),J=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=O();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),Q=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});m.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},m.options.ticks>y&&(k.warn(`Radar diagram ticks (${m.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),m.options.ticks=y)},"setOptions"),tt=c(()=>{V(),m=structuredClone(S)},"clear"),$={getAxes:O,getCurves:N,getOptions:Y,setAxes:Z,setCurves:q,setOptions:Q,getConfig:X,clear:tt,setAccTitle:B,getAccTitle:z,setDiagramTitle:P,getDiagramTitle:G,getAccDescription:D,setAccDescription:F},et=c(a=>{_(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),at={parse:c(async a=>{const t=await E("radar",a);k.debug(t),et(t)},"parse")},rt=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=W(t),u=st(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;nt(u,i,v,n.ticks,n.graticule),ot(u,i,v,o),b(u,i,l,h,g,n.graticule,o),L(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),st=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return U(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),nt=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),ot=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function b(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=A(g,r,s,o),R=f*Math.cos(v),I=f*Math.sin(v);return{x:R,y:I}});i==="circle"?a.append("path").attr("d",M(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}w(b,"drawCurves");c(b,"drawCurves");function A(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}w(A,"relativeRadius");c(A,"relativeRadius");function M(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}w(M,"closedRoundCurve");c(M,"closedRoundCurve");function L(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}w(L,"drawLegend");c(L,"drawLegend");var it={draw:rt},lt=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
1
+ import{p as _}from"./uD982nf2.js";import{p as E}from"./Cg2VNX7z.js";import{aF as F,K as D,O as G,aI as P,L as z,aG as B,a as c,aE as W,k as V,j as C,M as T,y as j,ad as k,U as H,r as U}from"./CWfnIL3Q.js";import{g as w}from"./jqiCLmEu.js";var x={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,S={axes:[],curves:[],options:x},m=structuredClone(S),K=j.radar,X=c(()=>C({...K,...T().radar}),"getConfig"),O=c(()=>m.axes,"getAxes"),N=c(()=>m.curves,"getCurves"),Y=c(()=>m.options,"getOptions"),Z=c(a=>{m.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),q=c(a=>{m.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:J(t.entries)}))},"setCurves"),J=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=O();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),Q=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});m.options={showLegend:t.showLegend?.value??x.showLegend,ticks:t.ticks?.value??x.ticks,max:t.max?.value??x.max,min:t.min?.value??x.min,graticule:t.graticule?.value??x.graticule},m.options.ticks>y&&(k.warn(`Radar diagram ticks (${m.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),m.options.ticks=y)},"setOptions"),tt=c(()=>{V(),m=structuredClone(S)},"clear"),$={getAxes:O,getCurves:N,getOptions:Y,setAxes:Z,setCurves:q,setOptions:Q,getConfig:X,clear:tt,setAccTitle:B,getAccTitle:z,setDiagramTitle:P,getDiagramTitle:G,getAccDescription:D,setAccDescription:F},et=c(a=>{_(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),at={parse:c(async a=>{const t=await E("radar",a);k.debug(t),et(t)},"parse")},rt=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=W(t),u=st(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;nt(u,i,v,n.ticks,n.graticule),ot(u,i,v,o),b(u,i,l,h,g,n.graticule,o),L(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),st=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return U(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),nt=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),ot=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function b(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=A(g,r,s,o),R=f*Math.cos(v),I=f*Math.sin(v);return{x:R,y:I}});i==="circle"?a.append("path").attr("d",M(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}w(b,"drawCurves");c(b,"drawCurves");function A(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}w(A,"relativeRadius");c(A,"relativeRadius");function M(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}w(M,"closedRoundCurve");c(M,"closedRoundCurve");function L(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}w(L,"drawLegend");c(L,"drawLegend");var it={draw:rt},lt=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
2
2
  .radarCurve-${r} {
3
3
  color: ${s};
4
4
  fill: ${s};
@@ -1,4 +1,4 @@
1
- import{p as $}from"./CjnNpRDF.js";import{p as C}from"./DR-Aj_ks.js";import{a as u,j as m,aE as S,r as D,ad as w,aG as P,L as T,aI as E,O as F,K as z,aF as A,M as W,y as _,k as L}from"./Ds_Kf9EA.js";import{g as M}from"./gZfnsun1.js";var N=_.packet,b,v=(b=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=T,this.setDiagramTitle=E,this.getDiagramTitle=F,this.getAccDescription=z,this.setAccDescription=A}getConfig(){const t=m({...N,...W().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){L(),this.packet=[]}},M(b,"PacketDB"),u(b,"PacketDB"),b),I=1e4,O=u((e,t)=>{$(e,t);let r=-1,s=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:i,bits:d,label:c}of e.blocks){if(a!==void 0&&i!==void 0&&i<a)throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${i??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(i??=a+(d??1)-1,d??=i-a+1,r=i,w.debug(`Packet block ${a} - ${r} with label ${c}`);s.length<=l+1&&t.getPacket().length<I;){const[p,o]=Y({start:a,end:i,bits:d,label:c},n,l);if(s.push(p),p.end+1===n*l&&(t.pushWord(s),s=[],n++),!o)break;({start:a,end:i,bits:d,label:c}=o)}}t.pushWord(s)},"populate"),Y=u((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,n=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:u(async e=>{const t=await C("packet",e),r=x.parser?.yy;if(!(r instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),O(t,r)},"parse")},j=u((e,t,r,s)=>{const n=s.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),o=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(o?0:a),k=d*c+2,f=S(t);f.attr("viewBox",`0 0 ${k} ${g}`),D(f,g,k,l.useMaxWidth);for(const[y,B]of p.entries())G(f,B,y,l);f.append("text").text(o).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),G=u((e,t,r,{rowHeight:s,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=e.append("g"),p=r*(s+l)+l;for(const o of t){const h=o.start%i*a+1,g=(o.end-o.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(o.label),!d)continue;const k=o.end===o.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(o.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(o.end)}},"drawWord"),K={draw:j},H={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},R=u(({packet:e}={})=>{const t=m(H,e);return`
1
+ import{p as $}from"./uD982nf2.js";import{p as C}from"./Cg2VNX7z.js";import{a as u,j as m,aE as S,r as D,ad as w,aG as P,L as T,aI as E,O as F,K as z,aF as A,M as W,y as _,k as L}from"./CWfnIL3Q.js";import{g as M}from"./jqiCLmEu.js";var N=_.packet,b,v=(b=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=T,this.setDiagramTitle=E,this.getDiagramTitle=F,this.getAccDescription=z,this.setAccDescription=A}getConfig(){const t=m({...N,...W().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){L(),this.packet=[]}},M(b,"PacketDB"),u(b,"PacketDB"),b),I=1e4,O=u((e,t)=>{$(e,t);let r=-1,s=[],n=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:i,bits:d,label:c}of e.blocks){if(a!==void 0&&i!==void 0&&i<a)throw new Error(`Packet block ${a} - ${i} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${i??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(i??=a+(d??1)-1,d??=i-a+1,r=i,w.debug(`Packet block ${a} - ${r} with label ${c}`);s.length<=l+1&&t.getPacket().length<I;){const[p,o]=Y({start:a,end:i,bits:d,label:c},n,l);if(s.push(p),p.end+1===n*l&&(t.pushWord(s),s=[],n++),!o)break;({start:a,end:i,bits:d,label:c}=o)}}t.pushWord(s)},"populate"),Y=u((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,n=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),x={parser:{yy:void 0},parse:u(async e=>{const t=await C("packet",e),r=x.parser?.yy;if(!(r instanceof v))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");w.debug(t),O(t,r)},"parse")},j=u((e,t,r,s)=>{const n=s.db,l=n.getConfig(),{rowHeight:a,paddingY:i,bitWidth:d,bitsPerRow:c}=l,p=n.getPacket(),o=n.getDiagramTitle(),h=a+i,g=h*(p.length+1)-(o?0:a),k=d*c+2,f=S(t);f.attr("viewBox",`0 0 ${k} ${g}`),D(f,g,k,l.useMaxWidth);for(const[y,B]of p.entries())G(f,B,y,l);f.append("text").text(o).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),G=u((e,t,r,{rowHeight:s,paddingX:n,paddingY:l,bitWidth:a,bitsPerRow:i,showBits:d})=>{const c=e.append("g"),p=r*(s+l)+l;for(const o of t){const h=o.start%i*a+1,g=(o.end-o.start+1)*a-n;if(c.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",h+g/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(o.label),!d)continue;const k=o.end===o.start,f=p-2;c.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(o.start),k||c.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(o.end)}},"drawWord"),K={draw:j},H={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},R=u(({packet:e}={})=>{const t=m(H,e);return`
2
2
  .packetByte {
3
3
  font-size: ${t.byteFontSize};
4
4
  }
@@ -1 +1 @@
1
- import{a as i}from"./Ds_Kf9EA.js";import{g as t}from"./gZfnsun1.js";function o(e,c){e.accDescr&&c.setAccDescription?.(e.accDescr),e.accTitle&&c.setAccTitle?.(e.accTitle),e.title&&c.setDiagramTitle?.(e.title)}t(o,"populateCommonDb");i(o,"populateCommonDb");export{o as p};
1
+ import{a as i}from"./CWfnIL3Q.js";import{g as t}from"./jqiCLmEu.js";function o(e,c){e.accDescr&&c.setAccDescription?.(e.accDescr),e.accTitle&&c.setAccTitle?.(e.accTitle),e.title&&c.setDiagramTitle?.(e.title)}t(o,"populateCommonDb");i(o,"populateCommonDb");export{o as p};
@@ -1,3 +1,3 @@
1
- import{p as oe}from"./CjnNpRDF.js";import{p as se,i as de}from"./DR-Aj_ks.js";import{O as le,aI as ce,aF as me,K as ue,L as xe,aG as fe,a as o,ad as h,N as ne,aL as ge,k as he,j as pe,M as A,y as ve,aD as B,aX as M,f as be}from"./Ds_Kf9EA.js";import{c3 as we,g as d}from"./gZfnsun1.js";var ae="position frame",ie="frame positioned",k="position relation",re="relation positioned",ye=o(function(e){h.debug("options str",e)},"setOptions"),Pe=o(function(){return{}},"getOptions"),Se=o(function(){R(),he()},"clear");function R(){D={}}d(R,"reset");o(R,"reset");var Fe=ve.eventmodeling,Be=o(()=>pe({...Fe,...A().eventmodeling}),"getConfig"),D={};function N(){let e=Me;const{ast:n}=D,t=P();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((a,i)=>{const r=H(a,n.dataEntities,t);e=w(e,{$kind:ae,index:i,frame:a,textProps:r});let l;X(a)?(h.debug("source frame",a.sourceFrames),l=n.frames.filter(c=>a.sourceFrames.some(m=>m.$refText===c.name)),l.forEach(c=>{e=w(e,{$kind:k,index:i,frame:a,sourceFrame:c})})):e=w(e,{$kind:k,index:i,frame:a})}),e={...e,sortedSwimlanesArray:S(e.swimlanes)},e}d(N,"getState");o(N,"getState");function T(e){D.ast=e}d(T,"setAst");o(T,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function P(){return s}d(P,"getDiagramProps");o(P,"getDiagramProps");var Me={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function $(e){const n=e.split(".");if(n.length===2)return n[0]}d($,"extractNamespace");o($,"extractNamespace");function C(e){const n=e.split(".");return n.length===2?n[1]:e}d(C,"extractName");o(C,"extractName");function I(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}d(I,"findSwimlaneByNamespace");o(I,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(a=>{const i=Number.parseInt(a);return i>n&&i<t}).map(a=>Number.parseInt(a)))+1}d(b,"findNextAvailableIndex");o(b,"findNextAvailableIndex");function O(e,n){const t=$(e.entityIdentifier),a=I(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return a?{index:a.index,label:a.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return a?{index:a.index,label:a.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return a?{index:a.index,label:a.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}d(O,"calculateSwimlaneProps");o(O,"calculateSwimlaneProps");function W(e){const{themeVariables:n}=A();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}d(W,"calculateEntityVisualProps");o(W,"calculateEntityVisualProps");function H(e,n,t){const a=A(),i=B(C(e.entityIdentifier)??"",a);let r;const l={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let m=`<b>${M(i,t.textMaxWidth,l)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=B(r,a),r=M(r,t.textMaxWidth,l),r=r.replaceAll(" ","&nbsp;")),e.dataReference){const v=n.find(F=>F.name===e.dataReference?.$refText);v&&(r=v.dataBlockValue,r=r.substring(r.indexOf(`{
1
+ import{p as oe}from"./uD982nf2.js";import{p as se,i as de}from"./Cg2VNX7z.js";import{O as le,aI as ce,aF as me,K as ue,L as xe,aG as fe,a as o,ad as h,N as ne,aL as ge,k as he,j as pe,M as A,y as ve,aD as B,aX as M,f as be}from"./CWfnIL3Q.js";import{c3 as we,g as d}from"./jqiCLmEu.js";var ae="position frame",ie="frame positioned",k="position relation",re="relation positioned",ye=o(function(e){h.debug("options str",e)},"setOptions"),Pe=o(function(){return{}},"getOptions"),Se=o(function(){R(),he()},"clear");function R(){D={}}d(R,"reset");o(R,"reset");var Fe=ve.eventmodeling,Be=o(()=>pe({...Fe,...A().eventmodeling}),"getConfig"),D={};function N(){let e=Me;const{ast:n}=D,t=P();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((a,i)=>{const r=H(a,n.dataEntities,t);e=w(e,{$kind:ae,index:i,frame:a,textProps:r});let l;X(a)?(h.debug("source frame",a.sourceFrames),l=n.frames.filter(c=>a.sourceFrames.some(m=>m.$refText===c.name)),l.forEach(c=>{e=w(e,{$kind:k,index:i,frame:a,sourceFrame:c})})):e=w(e,{$kind:k,index:i,frame:a})}),e={...e,sortedSwimlanesArray:S(e.swimlanes)},e}d(N,"getState");o(N,"getState");function T(e){D.ast=e}d(T,"setAst");o(T,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function P(){return s}d(P,"getDiagramProps");o(P,"getDiagramProps");var Me={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function $(e){const n=e.split(".");if(n.length===2)return n[0]}d($,"extractNamespace");o($,"extractNamespace");function C(e){const n=e.split(".");return n.length===2?n[1]:e}d(C,"extractName");o(C,"extractName");function I(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}d(I,"findSwimlaneByNamespace");o(I,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(a=>{const i=Number.parseInt(a);return i>n&&i<t}).map(a=>Number.parseInt(a)))+1}d(b,"findNextAvailableIndex");o(b,"findNextAvailableIndex");function O(e,n){const t=$(e.entityIdentifier),a=I(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return a?{index:a.index,label:a.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return a?{index:a.index,label:a.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return a?{index:a.index,label:a.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}d(O,"calculateSwimlaneProps");o(O,"calculateSwimlaneProps");function W(e){const{themeVariables:n}=A();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}d(W,"calculateEntityVisualProps");o(W,"calculateEntityVisualProps");function H(e,n,t){const a=A(),i=B(C(e.entityIdentifier)??"",a);let r;const l={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let m=`<b>${M(i,t.textMaxWidth,l)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=B(r,a),r=M(r,t.textMaxWidth,l),r=r.replaceAll(" ","&nbsp;")),e.dataReference){const v=n.find(F=>F.name===e.dataReference?.$refText);v&&(r=v.dataBlockValue,r=r.substring(r.indexOf(`{
2
2
  `)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=B(r,a),r=M(r,t.textMaxWidth,l),r=r.replaceAll(" ","&nbsp;"),r+="<br/>")}const u=r!==void 0;u&&(m+=`<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`);const f={fontSize:l.fontSize,fontWeight:l.fontWeight,fontFamily:l.fontFamily},x=be(m,f),p=u?x.width/3:x.width,g={content:m,width:p,height:x.height};return h.debug(`[${e.name}] ${e.entityIdentifier} text`,g),g}d(H,"calculateTextProps");o(H,"calculateTextProps");function U(e,n){const t=n,a=W(t.frame),i={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:ie,frame:t.frame,index:t.index,visual:a,dimension:i,textProps:t.textProps}]}d(U,"decidePositionFrame");o(U,"decidePositionFrame");function L(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}d(L,"calculateX");o(L,"calculateX");function _(e,n){const t=[...e.map(a=>a.r),n];return Math.max(...t)}d(_,"calculateMaxRight");o(_,"calculateMaxRight");function S(e){return Object.values(e).sort((n,t)=>n.index-t.index)}d(S,"sortedSwimlanesArray");o(S,"sortedSwimlanesArray");function G(e,n){const t=n,a=O(t.frame,e.swimlanes);let i;a.index in e.swimlanes?i=e.swimlanes[a.index]:i={index:a.index,label:a.label,r:0,y:a.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,l=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,c={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},m=L(i,l,r),u=m+c.width+s.boxPadding,f=_(Object.values(e.swimlanes),u);i.r=m+c.width,i.maxHeight=Math.max(i.maxHeight,c.height),i.height=Math.max(s.swimlaneMinHeight,i.maxHeight)+2*s.swimlanePadding;const x={x:m,y:s.swimlanePadding+i.y,r:u,dimension:c,leftSibling:!1,swimlane:i,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},p={...e,boxes:[...e.boxes,x],swimlanes:{...e.swimlanes,[`${i.index}`]:i},previousSwimlaneNumber:a.index,previousFrame:t.frame,maxR:f},g=S(p.swimlanes);g.length>0&&(g[0].y=0);for(let v=1;v<g.length;v++){const F=g[v],te=g[v-1];F.y=te.y+te.height+s.swimlaneGap}return p}d(G,"evolveFramePositioned");o(G,"evolveFramePositioned");function V(e,n){return e===0&&n.sourceFrames.length===0}d(V,"isFirstFrame");o(V,"isFirstFrame");function X(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}d(X,"hasSourceFrame");o(X,"hasSourceFrame");function y(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}d(y,"findBoxByFrame");o(y,"findBoxByFrame");function j(e,n,t){if(!(t<0))for(let a=t;a>=0;a--){const i=e[a];if(i.swimlane.index!==n)return i}}d(j,"findBoxByLineIndex");o(j,"findBoxByLineIndex");function Y(e,n){const t=n;if(de(t.frame)||V(t.index,t.frame))return[];const a=y(e.boxes,t.frame);if(a===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let i;return t.sourceFrame?i=y(e.boxes,t.sourceFrame):i=j(e.boxes,a.swimlane.index,t.index-1),i===void 0?[]:[{$kind:re,frame:t.frame,index:t.index,sourceBox:i,targetBox:a}]}d(Y,"decidePositionRelation");o(Y,"decidePositionRelation");function K(e,n){const t=n,a={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,a]}}d(K,"evolveRelationPositioned");o(K,"evolveRelationPositioned");var ke={[ae]:U,[k]:Y},Ee={[ie]:G,[re]:K};function z(e,n){const t=ke[n.$kind];if(t==null)return[];const a=t(e,n);return h.debug("decided events",a),a}d(z,"decide");o(z,"decide");function q(e,n){const t=n.reduce((a,i)=>{const r=Ee[i.$kind];return r==null?a:r(a,i)},e);return h.debug("evolve events",{state:e,newState:t,events:n}),t}d(q,"evolve");o(q,"evolve");function w(e,n){const t=z(e,n);return q(e,t)}d(w,"dispatch");o(w,"dispatch");var E={getConfig:Be,setOptions:ye,getOptions:Pe,clear:Se,setAccTitle:fe,getAccTitle:xe,getAccDescription:ue,setAccDescription:me,setDiagramTitle:ce,getDiagramTitle:le,setAst:T,getDiagramProps:P,getState:N},Ae={parse:o(async e=>{const n=await se("eventmodeling",e);h.debug(n),E.setAst(n),oe(n,E)},"parse")},Re=ne(),De=Re?.eventmodeling;function J(e,n){return t=>{const a=t.swimlane.y+n.swimlanePadding,i=e.append("g").attr("class","em-box");i.append("rect").attr("x",t.x).attr("y",a).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),i.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",a+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}d(J,"renderD3Box");o(J,"renderD3Box");function Q(e,n){return e>n}d(Q,"dirUpwards");o(Q,"dirUpwards");function Z(e,n,t,a){return i=>{const r=i.sourceBox.swimlane.y+n.swimlanePadding,l=i.targetBox.swimlane.y+n.swimlanePadding,c=Q(r,l),m=i.sourceBox.x+i.sourceBox.dimension.width*2/3,u=i.targetBox.x+i.targetBox.dimension.width/3;let f,x;h.debug(`rendering relation up=${c} for `,{sourceBox:i.sourceBox,targetBox:i.targetBox}),c?(f=r,x=l+i.targetBox.dimension.height):(f=r+i.sourceBox.dimension.height,x=l);const p=a.emRelationStroke??i.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",i.visual.fill).attr("stroke",p).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${m} ${f} L${u} ${x}`)}}d(Z,"renderD3Relation");o(Z,"renderD3Relation");function ee(e,n,t,a){return i=>{const r=e.append("g").attr("class","em-swimlane"),l=a.emSwimlaneBackgroundOdd??"rgb(250,250,250)",c=a.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",i.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",i.height).attr("fill",l).attr("stroke",c),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",i.y+30).text(i.label)}}d(ee,"renderD3Swimlane");o(ee,"renderD3Swimlane");var Ne=o(function(e,n,t,a){if(h.debug("in eventmodeling renderer",e+`
3
3
  `,"id:",n,t),!De)throw new Error("EventModeling config not found");const i=a.db,{themeVariables:r,eventmodeling:l}=ne(),c=we(`[id="${n}"]`),m=i.getDiagramProps(),u=i.getState(),f=`em-arrowhead-${n}`,x=r.emArrowhead??"#000000";u.sortedSwimlanesArray.forEach(ee(c,u.maxR,m,r)),u.boxes.forEach(J(c,m)),u.relations.forEach(Z(c,m,f,r)),c.append("defs").append("marker").attr("id",f).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",x),ge(void 0,c,l?.padding??30,l?.useMaxWidth)},"draw"),Te={draw:Ne},$e=o(e=>"","getStyles"),Ce=$e,Ue={parser:Ae,db:E,renderer:Te,styles:Ce};export{Ue as diagram};
@@ -1,4 +1,4 @@
1
- var il=Object.defineProperty;var ll=(r,t,n)=>t in r?il(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var _n=(r,t,n)=>ll(r,typeof t!="symbol"?t+"":t,n);import{t as bt,bq as m,bo as g,a_ as z,by as wt,b as xt,bs as Dn,bu as lr,bt as dl,br as aa}from"./DVcxpZob.js";import{bs as kt,a5 as D,bA as E,bS as P,bl as oe,ay as we,aD as e,b_ as F,bO as Y,W as f,c9 as a,bn as It,bV as fe,bH as H,aA as p,be as xr,b$ as Vr,aB as A,bj as On,c0 as In,c6 as cl,bo as xa,br as Xr,ca as tr,bf as ir,a7 as Et,am as Pn,ax as Rn,bk as Wa,ai as sa,aj as jr,aw as za,bz as Vo,cb as Xa,c5 as Sa,aC as _r,cd as Js,bv as ul}from"./B8o4lNgr.js";import{k as Ne,s as re,a as un,j as Ya,l as oa,h as Br,d as gt,f as Qt,i as Wn,I as fl,c as ia,p as gl,o as ml,S as pl,C as vl}from"./CRLCgacz.js";import{H as Xt,j as hl,s as Ko,p as qs,y as _l,u as yl,t as Pr,g as Kn,c as ra,E as Is,A as ss,D as Ha,S as bl}from"./WsKP4LPk.js";import{b as fn}from"./D2g8BuR1.js";import{bT as Go,j as Ra,a5 as Ss,ak as Ua,F as wl,at as Na,aM as xl,aP as eo}from"./DMFRjZee.js";import{t as Gn,r as kl,P as Il}from"./Cc_MPyh-.js";import{F as Vt,cF as Ds,at as Zo,aX as Qo,aI as Sl,c5 as Al,a3 as Tl,a5 as ja,aL as Cl,cI as Ml,cH as Pl,a2 as Ja,av as Bs,ai as Rl,br as Nl,aQ as El,aV as Ll,bG as $l,an as Ol,cx as ql,aB as to,be as kn,aN as ro,bY as os,aG as Aa,cR as Dl,c7 as Bl,bl as Fl,b as Wl,ck as zl,af as Hl,b8 as is,cm as la,cA as Ul,c$ as Fs,X as Xo,a as jl}from"./ofkVZzaj.js";import{c1 as Ea,aB as ba,cM as Yo,cO as qn,bS as es,i as Vl,cG as Jo,cL as ts,cK as ei,cI as ti,f as Tn,a9 as Kl,aa as Gl,aw as Zl,r as Ql,J as Xl,V as no,u as ri,dI as Yl,as as Jl,j as ed,t as ls,m as td,N as rd,n as nd,p as ni,q as ai,a5 as ad,R as sd,Q as od,$ as id,k as ld,cP as dd,a3 as cd,C as ud,w as fd,U as ao}from"./Rw2sIc23.js";import{Hp as lt,o8 as gd,so as La,mZ as so,u8 as si,ua as oi,qO as md,x4 as Va,R as pd,tt as ii,mU as li,bi as $a,x5 as vd,pA as hd,s2 as _d,u1 as di,mS as yd,lZ as bd,g as wd,xx as xd,xu as kd,xw as Id}from"./DOX6tqe2.js";import{f as pt,am as Ws,bt as Sd,bx as ds,bL as Ad}from"./C-KminjT.js";import{a1 as Td,x as cs,$ as Cd,O as us,V as Md,Z as Pd,j as Rd,o as da,M as ea,p as Nd,F as Ed,u as Ld,s as $d,L as fs,J as Od,y as qd,K as Dd,Y as ma,Q as Ta,N as oo,m as io,E as Bd,c as gs,B as lo,z as Fd,v as co,H as pa,P as Wd,G as zd,i as Hd,R as Ud,T as jd,A as Vd,g as Kd,b as Gd,D as Zd,f as Qd,e as Xd,a as Yd,C as Jd,h as ec,U as ci,a2 as tc,t as rc,k as nc,d as uo}from"./BvZ472sk.js";import{i as ac,e as sc}from"./Dwoq6qgz.js";import{g as ms}from"./BvFAWM27.js";import{M as ca,C as Ca}from"./Co8-Pa6T.js";import{C as fo}from"./BwldUeEG.js";import"./fe_eftOD.js";import{P as oc}from"./B4JY7OdG.js";import"./C29OqWSw.js";import{c as ui}from"./ChTqQfQN.js";import{s as Cn}from"./Dy0ApYVY.js";import{S as ic}from"./CLgOAyRn.js";import{D as go,M as lc}from"./gZfnsun1.js";import{b as dc,s as Un,c as Ka}from"./q3LKPyTi.js";import{O as Oa,y as ps,E as vs,B as hs,N as cc,m as uc,l as fc,d as Ga,C as mo,f as gc,e as mc,g as pc}from"./B6SdqA8G.js";import{j as fi,g as vc,s as po}from"./vE_6l2bj.js";import{f as hc}from"./BJzHxIyr.js";import{c as an}from"./D8U5PK8P.js";import{A as _c,B as yc,c as bc}from"./DfkSOrqi.js";import{o as _s,n as ys,v as vo,h as wc}from"./BvSpaYYO.js";import"./B14QHMsi.js";import{aL as $n,w as xc}from"./BCKgwkD0.js";import"./BkXhQv7o.js";import{R as As,C as rs,n as kc,e as Ic,d as Sc,f as ho,P as Ac}from"./DTCb8Epd.js";import"./BT9muwwL.js";import{aX as Sr,A as qa,ai as gi,o as mi,e as Tc,I as Cc,R as Mc,aq as Pc,b as Rc,Z as Nc}from"./C8htDeGn.js";import{Z as _o,J as ha,s as pi,k as Ec}from"./DiTToznV.js";import{B as Lc}from"./BmhoW_L6.js";import{r as $c,e as Oc,o as qc}from"./DExyo3TI.js";import{o as vi}from"./OXkvCdQy.js";import{g as zs}from"./BrgZ9aoi.js";import{a as Dc,M as Bc}from"./jqeDAy7c.js";import{c as ua}from"./Bo1m530q.js";import{A as Fc}from"./BW4J01Vd.js";import{f as Wc,d as zc}from"./BgY3ql3v.js";import{I as Hc,t as Uc,B as jc,r as yo,A as Vc,n as Kc}from"./9hq3-PO7.js";import{b as Gc}from"./BccLwsaC.js";import{D as Zc}from"./CtOtN9TD.js";import{S as Qc}from"./E1EpU-HE.js";import{u as Xc,a as Yc,c as bo,S as Jc}from"./D2AmAQEr.js";import{T as Ts}from"./aqB_PH9O.js";import{a as eu}from"./D3cGjGGm.js";import{b as wo}from"./C3hWtekV.js";import{a6 as tu}from"./DRWXI2c9.js";import{c as ru}from"./BXeRsIrT.js";function nu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:n,scriptId:s,runId:i,monitorId:o,workspaceId:d,reason:c}=t;if(typeof n!="string"||typeof s!="string"||!s||typeof i!="string"||!i||typeof o!="string"||!o||typeof d!="string"||!d||c!=="finished"&&c!=="ttl-expired"&&c!=="output-match"&&c!=="line-count")return null;const y=t.trigger;return{scriptName:n,scriptId:s,runId:i,monitorId:o,workspaceId:d,reason:c,...c==="output-match"&&typeof y?.matchedLine=="string"?{matchedLine:y.matchedLine}:{}}}function au(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function su(r,t,n,s=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const i=r.messageMetadata?.fromPrincipalId??r.author?.principalId,o=Hc(r)&&r.author?.principalId!==null&&i===t;return{edit:o,remove:o||t===n||s,sendNow:(o||s)&&!hi(r)}}function fa(r,t){if(t)return r.find(n=>n.editing&&n.editingMessageId?n.editingMessageId===t:n.id===t)}function hi(r){return au(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function xo(r,t=Date.now()){const n=r.messageMetadata,s=n?.fromPrincipalId,i=n&&Object.hasOwn(n,"humanAuthor")&&!(typeof s=="string"&&s.length>0),o=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!o&&!i&&!hi(r)}const Th="pl-3.5! pr-2!";var ou=A("<!> ",1),iu=A('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function _i(r,t){if(new.target)return bt({component:_i,...r});kt(t,!0);let n=m(t,"name",7),s=m(t,"description",7),i=m(t,"content",7),o=m(t,"onUseScript",7),d=fe(!1);function c(){navigator.clipboard.writeText(i()),H(d,!0),setTimeout(()=>{H(d,!1)},2e3)}function y(){o()?.({name:n(),description:s(),content:i()})}var _={get name(){return n()},set name(V){n(V),p()},get description(){return s()},set description(V){s(V),p()},get content(){return i()},set content(V){i(V),p()},get onUseScript(){return o()},set onUseScript(V){o(V),p()},$set:wt,$on:(V,ne)=>xt(t,V,ne)},b=iu(),I=D(b),M=D(I),Q=D(M),w=D(Q);Vt(w,{get icon(){return Ds},size:"sm"}),E(Q);var L=P(Q,2),Z=oe(L,!0);E(M);var j=P(M,2),R=D(j);pt(R,{variant:"ghost-light",size:"sm",onclick:c,class:"h-7 px-2",children:(V,ne)=>{var pe=ou(),be=we(pe);{let qe=a(()=>e(d)?Zo:Qo);Vt(be,{get icon(){return e(qe)},class:"mr-1"})}var ge=P(be);F(qe=>Y(ge,` ${qe??""}`),[()=>e(d)?g.chat_shared_copied_label():g.chat_shared_copy_label()]),f(V,pe)},$$slots:{default:!0}});var N=P(R,2);{var x=V=>{pt(V,{variant:"ghost-light",size:"sm",onclick:y,class:"h-7 px-2",children:(ne,pe)=>{xr();var be=Vr();F(ge=>Y(be,ge),[()=>g.chat_setupScriptCard_useScript_label()]),f(ne,be)},$$slots:{default:!0}})};z(N,V=>{o()&&V(x)})}E(j),E(I);var ee=P(I,2),S=oe(ee,!0),T=P(ee,2),Me=oe(T,!0);return E(b),F(()=>{Y(Z,n()),Y(S,s()),Y(Me,i())}),f(r,b),It(_)}const hr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class lu{constructor(){_n(this,"buffer","");_n(this,"currentToolName",null);_n(this,"currentToolId",null);_n(this,"lastToolId",null);_n(this,"currentToolParams",[]);_n(this,"currentToolResultContent",[]);_n(this,"inToolResult",!1);_n(this,"inCodeBlock",!1);_n(this,"codeBlockLanguage","");_n(this,"codeBlockContent","");_n(this,"characterBuffer","");_n(this,"inCharacterMode",!1);_n(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const i=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const c=this.currentToolResultContent.some(_=>_.startsWith("❌")||_.startsWith("Error:")),y=this.currentToolResultContent.map(_=>_.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
1
+ var il=Object.defineProperty;var ll=(r,t,n)=>t in r?il(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n;var _n=(r,t,n)=>ll(r,typeof t!="symbol"?t+"":t,n);import{t as bt,bq as m,bo as g,a_ as z,by as wt,b as xt,bs as Dn,bu as lr,bt as dl,br as aa}from"./DVcxpZob.js";import{bs as kt,a5 as D,bA as E,bS as P,bl as oe,ay as we,aD as e,b_ as F,bO as Y,W as f,c9 as a,bn as It,bV as fe,bH as H,aA as p,be as xr,b$ as Vr,aB as A,bj as On,c0 as In,c6 as cl,bo as xa,br as Xr,ca as tr,bf as ir,a7 as Et,am as Pn,ax as Rn,bk as Wa,ai as sa,aj as jr,aw as za,bz as Vo,cb as Xa,c5 as Sa,aC as _r,cd as Js,bv as ul}from"./B8o4lNgr.js";import{k as Ne,s as re,a as un,j as Ya,l as oa,h as Br,d as gt,f as Qt,i as Wn,I as fl,c as ia,p as gl,o as ml,S as pl,C as vl}from"./CRLCgacz.js";import{H as Xt,j as hl,s as Ko,p as qs,y as _l,u as yl,t as Pr,g as Kn,c as ra,E as Is,A as ss,D as Ha,S as bl}from"./WsKP4LPk.js";import{b as fn}from"./D2g8BuR1.js";import{bT as Go,j as Ra,a5 as Ss,ak as Ua,F as wl,at as Na,aM as xl,aP as eo}from"./Jqp5qOVD.js";import{t as Gn,r as kl,P as Il}from"./Cc_MPyh-.js";import{F as Vt,cF as Ds,at as Zo,aX as Qo,aI as Sl,c5 as Al,a3 as Tl,a5 as ja,aL as Cl,cI as Ml,cH as Pl,a2 as Ja,av as Bs,ai as Rl,br as Nl,aQ as El,aV as Ll,bG as $l,an as Ol,cx as ql,aB as to,be as kn,aN as ro,bY as os,aG as Aa,cR as Dl,c7 as Bl,bl as Fl,b as Wl,ck as zl,af as Hl,b8 as is,cm as la,cA as Ul,c$ as Fs,X as Xo,a as jl}from"./ofkVZzaj.js";import{c1 as Ea,aB as ba,cM as Yo,cO as qn,bS as es,i as Vl,cG as Jo,cL as ts,cK as ei,cI as ti,f as Tn,a9 as Kl,aa as Gl,aw as Zl,r as Ql,J as Xl,V as no,u as ri,dI as Yl,as as Jl,j as ed,t as ls,m as td,N as rd,n as nd,p as ni,q as ai,a5 as ad,R as sd,Q as od,$ as id,k as ld,cP as dd,a3 as cd,C as ud,w as fd,U as ao}from"./Rw2sIc23.js";import{Hp as lt,o8 as gd,so as La,mZ as so,u8 as si,ua as oi,qO as md,x4 as Va,R as pd,tt as ii,mU as li,bi as $a,x5 as vd,pA as hd,s2 as _d,u1 as di,mS as yd,lZ as bd,g as wd,xx as xd,xu as kd,xw as Id}from"./DOX6tqe2.js";import{f as pt,am as Ws,bt as Sd,bx as ds,bL as Ad}from"./C-KminjT.js";import{a1 as Td,x as cs,$ as Cd,O as us,V as Md,Z as Pd,j as Rd,o as da,M as ea,p as Nd,F as Ed,u as Ld,s as $d,L as fs,J as Od,y as qd,K as Dd,Y as ma,Q as Ta,N as oo,m as io,E as Bd,c as gs,B as lo,z as Fd,v as co,H as pa,P as Wd,G as zd,i as Hd,R as Ud,T as jd,A as Vd,g as Kd,b as Gd,D as Zd,f as Qd,e as Xd,a as Yd,C as Jd,h as ec,U as ci,a2 as tc,t as rc,k as nc,d as uo}from"./DaR6SlK7.js";import{i as ac,e as sc}from"./Dwoq6qgz.js";import{g as ms}from"./BvFAWM27.js";import{M as ca,C as Ca}from"./BaW2Kupg.js";import{C as fo}from"./CY2dENCG.js";import"./DlZ5F9Lx.js";import{P as oc}from"./cp14at2-.js";import"./C29OqWSw.js";import{c as ui}from"./ChTqQfQN.js";import{s as Cn}from"./Dy0ApYVY.js";import{S as ic}from"./LigVTKZd.js";import{D as go,M as lc}from"./jqiCLmEu.js";import{b as dc,s as Un,c as Ka}from"./DNS6iE59.js";import{O as Oa,y as ps,E as vs,B as hs,N as cc,m as uc,l as fc,d as Ga,C as mo,f as gc,e as mc,g as pc}from"./VLIUKGSW.js";import{j as fi,g as vc,s as po}from"./vE_6l2bj.js";import{f as hc}from"./BJzHxIyr.js";import{c as an}from"./D8U5PK8P.js";import{A as _c,B as yc,c as bc}from"./DfkSOrqi.js";import{o as _s,n as ys,v as vo,h as wc}from"./B-Do9RZm.js";import"./B14QHMsi.js";import{aL as $n,w as xc}from"./BCKgwkD0.js";import"./BkXhQv7o.js";import{R as As,C as rs,n as kc,e as Ic,d as Sc,f as ho,P as Ac}from"./DTCb8Epd.js";import"./BT9muwwL.js";import{aX as Sr,A as qa,ai as gi,o as mi,e as Tc,I as Cc,R as Mc,aq as Pc,b as Rc,Z as Nc}from"./CpiHp8Ae.js";import{Z as _o,J as ha,s as pi,k as Ec}from"./DN0k4-NH.js";import{B as Lc}from"./DxGyW0lA.js";import{r as $c,e as Oc,o as qc}from"./BK1cEBjQ.js";import{o as vi}from"./Dd78YZJ8.js";import{g as zs}from"./BrgZ9aoi.js";import{a as Dc,M as Bc}from"./jqeDAy7c.js";import{c as ua}from"./Bo1m530q.js";import{A as Fc}from"./BY5rau8Y.js";import{f as Wc,d as zc}from"./B6Utvg2n.js";import{I as Hc,t as Uc,B as jc,r as yo,A as Vc,n as Kc}from"./C0a6I3vg.js";import{b as Gc}from"./BccLwsaC.js";import{D as Zc}from"./CtOtN9TD.js";import{S as Qc}from"./E1EpU-HE.js";import{u as Xc,a as Yc,c as bo,S as Jc}from"./D2AmAQEr.js";import{T as Ts}from"./aqB_PH9O.js";import{a as eu}from"./D3cGjGGm.js";import{b as wo}from"./C3hWtekV.js";import{a6 as tu}from"./DRWXI2c9.js";import{c as ru}from"./CLy6KHFt.js";function nu(r){if(!r||typeof r!="object")return null;const t=r;if(t.type!=="script_monitor_wake"||t.source!=="system")return null;const{scriptName:n,scriptId:s,runId:i,monitorId:o,workspaceId:d,reason:c}=t;if(typeof n!="string"||typeof s!="string"||!s||typeof i!="string"||!i||typeof o!="string"||!o||typeof d!="string"||!d||c!=="finished"&&c!=="ttl-expired"&&c!=="output-match"&&c!=="line-count")return null;const y=t.trigger;return{scriptName:n,scriptId:s,runId:i,monitorId:o,workspaceId:d,reason:c,...c==="output-match"&&typeof y?.matchedLine=="string"?{matchedLine:y.matchedLine}:{}}}function au(r){return r?.type==="script_monitor_wake"&&!("remoteAgentId"in r)}function su(r,t,n,s=!1){if(!r||!t)return{edit:!1,remove:!1,sendNow:!1};const i=r.messageMetadata?.fromPrincipalId??r.author?.principalId,o=Hc(r)&&r.author?.principalId!==null&&i===t;return{edit:o,remove:o||t===n||s,sendNow:(o||s)&&!hi(r)}}function fa(r,t){if(t)return r.find(n=>n.editing&&n.editingMessageId?n.editingMessageId===t:n.id===t)}function hi(r){return au(r.messageMetadata)&&typeof r.messageMetadata?.monitorId=="string"}function xo(r,t=Date.now()){const n=r.messageMetadata,s=n?.fromPrincipalId,i=n&&Object.hasOwn(n,"humanAuthor")&&!(typeof s=="string"&&s.length>0),o=r.holdKind!==void 0&&Date.parse(r.holdUntil??"")>t;return!r.editing&&!o&&!i&&!hi(r)}const Th="pl-3.5! pr-2!";var ou=A("<!> ",1),iu=A('<div class="flex flex-col gap-2 px-4 py-3 bg-muted/30 border border-border rounded-lg my-4"><div class="flex items-center justify-between gap-2"><div class="flex items-center gap-2"><div class="shrink-0 text-subtle"><!></div> <div class="font-medium text-sm"> </div></div> <div class="flex items-center gap-1"><!> <!></div></div> <div class="text-xs text-subtle"> </div> <pre class="text-xs bg-background/50 rounded p-2 overflow-x-auto max-h-40 overflow-y-auto font-mono"> </pre></div>');function _i(r,t){if(new.target)return bt({component:_i,...r});kt(t,!0);let n=m(t,"name",7),s=m(t,"description",7),i=m(t,"content",7),o=m(t,"onUseScript",7),d=fe(!1);function c(){navigator.clipboard.writeText(i()),H(d,!0),setTimeout(()=>{H(d,!1)},2e3)}function y(){o()?.({name:n(),description:s(),content:i()})}var _={get name(){return n()},set name(V){n(V),p()},get description(){return s()},set description(V){s(V),p()},get content(){return i()},set content(V){i(V),p()},get onUseScript(){return o()},set onUseScript(V){o(V),p()},$set:wt,$on:(V,ne)=>xt(t,V,ne)},b=iu(),I=D(b),M=D(I),Q=D(M),w=D(Q);Vt(w,{get icon(){return Ds},size:"sm"}),E(Q);var L=P(Q,2),Z=oe(L,!0);E(M);var j=P(M,2),R=D(j);pt(R,{variant:"ghost-light",size:"sm",onclick:c,class:"h-7 px-2",children:(V,ne)=>{var pe=ou(),be=we(pe);{let qe=a(()=>e(d)?Zo:Qo);Vt(be,{get icon(){return e(qe)},class:"mr-1"})}var ge=P(be);F(qe=>Y(ge,` ${qe??""}`),[()=>e(d)?g.chat_shared_copied_label():g.chat_shared_copy_label()]),f(V,pe)},$$slots:{default:!0}});var N=P(R,2);{var x=V=>{pt(V,{variant:"ghost-light",size:"sm",onclick:y,class:"h-7 px-2",children:(ne,pe)=>{xr();var be=Vr();F(ge=>Y(be,ge),[()=>g.chat_setupScriptCard_useScript_label()]),f(ne,be)},$$slots:{default:!0}})};z(N,V=>{o()&&V(x)})}E(j),E(I);var ee=P(I,2),S=oe(ee,!0),T=P(ee,2),Me=oe(T,!0);return E(b),F(()=>{Y(Z,n()),Y(S,s()),Y(Me,i())}),f(r,b),It(_)}const hr={toolStart:/(?:\x1B\[\d+m)?🔧\s+(?:Tool call:\s+)?(.+?)(?:\x1B\[0m)?$/,toolDetail:/(?:[└├]─\s+(.+)$|^\s{3,}(.+)$)/,toolResult:/(?:\x1B\[\d+m)?📋\s+Tool result:\s+(.+?)(?:\x1B\[0m)?$/,toolSuccess:/[✓✔✅]\s+(.+)$/,toolError:/[❌✗❎]\s+(.+)$/,sessionInfo:/[Ss]ession:\s*([a-f0-9-]+)/,resumedSession:/📂?\s*Resumed session/i,assistantMarker:/🤖/,systemMarker:/💻/,userMarker:/👤/,thinkingMarker:/🤔\s*Thinking/i,waitingMarker:/^⏳\s+Running/i,indexingProgress:/^Indexing:\s*\[.*\]\s*\d+%/,agentDigest:/<agent_digest>([\s\S]*?)<\/agent_digest>/,setupScript:/<setup_script\s+name="([^"]+)"\s+description="([^"]+)">([\s\S]*?)<\/setup_script>/};class lu{constructor(){_n(this,"buffer","");_n(this,"currentToolName",null);_n(this,"currentToolId",null);_n(this,"lastToolId",null);_n(this,"currentToolParams",[]);_n(this,"currentToolResultContent",[]);_n(this,"inToolResult",!1);_n(this,"inCodeBlock",!1);_n(this,"codeBlockLanguage","");_n(this,"codeBlockContent","");_n(this,"characterBuffer","");_n(this,"inCharacterMode",!1);_n(this,"emittedToolIds",new Set)}parseChunk(t){if(this.isMarkerLine(t.trim())){const i=[];if(this.inToolResult&&this.currentToolResultContent.length>0){const c=this.currentToolResultContent.some(_=>_.startsWith("❌")||_.startsWith("Error:")),y=this.currentToolResultContent.map(_=>_.replace(/^❌\s*/,"").replace(/^Error:\s*/,"")).join(`
2
2
  `);i.push({type:"tool_result",content:y,metadata:{toolId:this.currentToolId,isError:c}}),this.lastToolId=this.currentToolId,this.currentToolId=null,this.inToolResult=!1,this.currentToolResultContent=[]}const o=t.indexOf("🤖"),d=t.substring(o+2);if(this.inCharacterMode=!0,this.characterBuffer="",d&&d.trim()&&d!==`
3
3
  `){const c=d.replace(/^\n/,"");c&&(this.characterBuffer=c)}return i}if(this.inCharacterMode){if(t.trim()===""&&this.characterBuffer==="")return[];if(t.includes(`
4
4
  `)&&this.characterBuffer.length>0){const i=t.substring(0,t.indexOf(`
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CWQDbnjd.js","/app/immutable/chunks/jqeDAy7c.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/chunks/DVcxpZob.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/nodes/0.rj6WxPiI.js","/app/immutable/chunks/Dy0ApYVY.js","/app/immutable/chunks/CtOtN9TD.js","/app/immutable/chunks/B7BvsUWA.js","/app/immutable/chunks/DOX6tqe2.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/Cb2bvBb_.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/CsW8j_Ls.js","/app/immutable/chunks/Dwoq6qgz.js","/app/immutable/chunks/Dt4s7v4Q.js","/app/immutable/assets/0.CA-y7EfZ.css","/app/immutable/nodes/1.D2LKdxSK.js","/app/immutable/chunks/BXeRsIrT.js","/app/immutable/chunks/BaCDnbdR.js","/app/immutable/chunks/ofkVZzaj.js","/app/immutable/chunks/Bo1m530q.js","/app/immutable/chunks/CRLCgacz.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/C-KminjT.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/nodes/2.lbWc9DH5.js","/app/immutable/chunks/DU3HC3bZ.js","/app/immutable/chunks/WsKP4LPk.js","/app/immutable/chunks/Rw2sIc23.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/_ybNzzj4.js","/app/immutable/chunks/Biu0mZ7b.js","/app/immutable/chunks/BgY3ql3v.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/_qnhofRC.js","/app/immutable/chunks/D8dE5NKO.js","/app/immutable/chunks/CRTiEGz_.js","/app/immutable/chunks/BFV2dSHH.js","/app/immutable/chunks/DRWXI2c9.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/DMFRjZee.js","/app/immutable/chunks/D49m-ZaH.js","/app/immutable/chunks/DNqOZtos.js","/app/immutable/chunks/BCKgwkD0.js","/app/immutable/chunks/aGrIQKRU.js","/app/immutable/chunks/BT9muwwL.js","/app/immutable/assets/pending-agent-deletions.UE5obH5A.css","/app/immutable/chunks/BOCOLX90.js","/app/immutable/chunks/DFQVickD.js","/app/immutable/chunks/BvSpaYYO.js","/app/immutable/chunks/DTCb8Epd.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BmW_s-QS.js","/app/immutable/chunks/9hq3-PO7.js","/app/immutable/chunks/CxrPw94A.js","/app/immutable/chunks/BfVCrToW.js","/app/immutable/chunks/B9sFh2YC.js","/app/immutable/chunks/pJjgPm2r.js","/app/immutable/chunks/B2WUxdNu.js","/app/immutable/chunks/B14QHMsi.js","/app/immutable/chunks/BkXhQv7o.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BuQalAFN.js","/app/immutable/chunks/CpW6JN4X.js","/app/immutable/chunks/Bh14RpEF.js","/app/immutable/chunks/DZ0q4VGI.js","/app/immutable/chunks/EovCRMHl.js","/app/immutable/chunks/DrYawC4F.js","/app/immutable/chunks/U1e6ofXm.js","/app/immutable/chunks/BccLwsaC.js","/app/immutable/chunks/-B3w7smR.js","/app/immutable/chunks/BT1wxP1j.js","/app/immutable/chunks/BX07VB4O.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/C29OqWSw.js","/app/immutable/chunks/Bz-WEnIt.js","/app/immutable/chunks/Cyv9WHI_.js","/app/immutable/chunks/DTUQexSy.js","/app/immutable/chunks/PGRNZeTw.js","/app/immutable/chunks/XJ16Nmz8.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/DlodKoXT.js","/app/immutable/chunks/DiTToznV.js","/app/immutable/chunks/BrgZ9aoi.js","/app/immutable/chunks/vE_6l2bj.js","/app/immutable/chunks/DfkSOrqi.js","/app/immutable/chunks/Cc_MPyh-.js","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/FY5ry3XL.js","/app/immutable/chunks/DMaeVMuN.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/D3cGjGGm.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/BUHhLhgs.js","/app/immutable/chunks/hkYCeRvw.js","/app/immutable/chunks/BmhoW_L6.js","/app/immutable/chunks/ByIqwBuP.js","/app/immutable/chunks/KGbEdneS.js","/app/immutable/chunks/C8htDeGn.js","/app/immutable/chunks/CD0-GHau.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/DbN_saL_.js","/app/immutable/chunks/DqFGUV9A.js","/app/immutable/chunks/CBcfSdV0.js","/app/immutable/chunks/SGRcPO-Q.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/fgutS2Xt.js","/app/immutable/chunks/DY0zw3Os.js","/app/immutable/chunks/BdjTR4R9.js","/app/immutable/chunks/D-N7efrx.js","/app/immutable/chunks/D4NQoFI0.js","/app/immutable/assets/CompactWorkspaceInitializer.InGGWMfl.css","/app/immutable/chunks/C3Fbg3bo.js","/app/immutable/chunks/C_kHCmwb.js","/app/immutable/chunks/Co8-Pa6T.js","/app/immutable/assets/accessibility.Cjws-1uy.css","/app/immutable/chunks/d3UTYnAT.js","/app/immutable/chunks/Blu7bS_5.js","/app/immutable/chunks/6QIFK_22.js","/app/immutable/chunks/C3hWtekV.js","/app/immutable/chunks/C8YkhSPO.js","/app/immutable/chunks/Bbw735-F.js","/app/immutable/chunks/BW4J01Vd.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/assets/2.CtMzQVzR.css","/app/immutable/nodes/3.in8ZwJzB.js","/app/immutable/nodes/4.CUsxPHda.js","/app/immutable/nodes/5.DvU91sgr.js","/app/immutable/chunks/CuDezCQ5.js","/app/immutable/chunks/BCxNS6oH.js","/app/immutable/chunks/CoSk1zgY.js","/app/immutable/chunks/Bzvl9BJV.js","/app/immutable/chunks/B6SdqA8G.js","/app/immutable/chunks/q3LKPyTi.js","/app/immutable/chunks/OXkvCdQy.js","/app/immutable/chunks/DMl2hAjr.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/chunks/aqB_PH9O.js","/app/immutable/assets/AgentCard.4uIFUDRc.css","/app/immutable/chunks/B7Se8Mhp.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/assets/ResizablePanel.DedsXg_i.css","/app/immutable/chunks/CNg1Aj8R.js","/app/immutable/chunks/C_QScSD8.js","/app/immutable/chunks/Deu3BA7u.js","/app/immutable/chunks/BvZ472sk.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/fe_eftOD.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/BwldUeEG.js","/app/immutable/chunks/CoZ28bOB.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/gZfnsun1.js","/app/immutable/assets/DiagramPresentation.fimBl1wP.css","/app/immutable/chunks/D8U5PK8P.js","/app/immutable/chunks/BiFgVe6g.js","/app/immutable/chunks/5MwvnnU4.js","/app/immutable/chunks/BIJtNIE9.js","/app/immutable/chunks/CLgOAyRn.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.CWdkjFsY.css","/app/immutable/chunks/BC2yRiH0.js","/app/immutable/chunks/B4JY7OdG.js","/app/immutable/chunks/DExyo3TI.js","/app/immutable/chunks/E1EpU-HE.js","/app/immutable/assets/conversation-turns.Cw6qSz_q.css","/app/immutable/chunks/c4p5dSlc.js","/app/immutable/chunks/DtWlovTg.js","/app/immutable/chunks/BhoR7wbU.js","/app/immutable/chunks/B2-z3LSX.js","/app/immutable/assets/ChatPanel.CbI83JII.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/assets/5.DBgC2kSL.css","/app/immutable/nodes/6.BdAKoKat.js","/app/immutable/assets/6.D6ebrVTb.css","/app/immutable/nodes/7.JNWjRQgm.js","/app/immutable/chunks/8xz0mqCS.js","/app/immutable/nodes/8.CzuEJYxY.js","/app/immutable/chunks/CUSFlCws.js","/app/immutable/chunks/Bsxt04FP.js","/app/immutable/chunks/-xCKOX3D.js","/app/immutable/assets/8._uRcFklA.css","/app/immutable/assets/dock-tokens.CevytPYC.css","/app/immutable/nodes/9.Bn4F0-mM.js","/app/immutable/chunks/DOKYoULh.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/CKylENIK.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/CQMEOQhi.js","/app/immutable/assets/scroll-area.bHHIbcsu.css","/app/immutable/chunks/DE8Uhev7.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/CHsXJI6f.js","/app/immutable/chunks/DSAeoz8n.js","/app/immutable/chunks/mXP56bVn.js","/app/immutable/assets/9.QLJOd4KT.css","/app/immutable/nodes/10.CsOXyM9t.js","/app/immutable/assets/10.BO7QC36g.css","/app/immutable/nodes/11.Da5dXwak.js","/app/immutable/nodes/12.DS0_6MSg.js","/app/immutable/assets/12.CF5xLHXq.css","/app/immutable/nodes/13.DsC_RJI_.js","/app/immutable/chunks/A4_v6nxU.js","/app/immutable/assets/13.BuZANxI8.css","/app/immutable/nodes/14.EKyMha8S.js","/app/immutable/chunks/C-DzgvKm.js","/app/immutable/assets/14.BlmY1boZ.css","/app/immutable/nodes/15.CvrA0zaY.js","/app/immutable/assets/15.COfTIH7u.css","/app/immutable/nodes/16.DJIf57hW.js","/app/immutable/assets/16.Cznk2DRv.css"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CWQDbnjd.js","/app/immutable/chunks/jqeDAy7c.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/chunks/DVcxpZob.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/nodes/0.BJ700vC2.js","/app/immutable/chunks/Dy0ApYVY.js","/app/immutable/chunks/CtOtN9TD.js","/app/immutable/chunks/B7BvsUWA.js","/app/immutable/chunks/DOX6tqe2.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/Cb2bvBb_.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/CsW8j_Ls.js","/app/immutable/chunks/Dwoq6qgz.js","/app/immutable/chunks/BY6gVP5g.js","/app/immutable/assets/0.CA-y7EfZ.css","/app/immutable/nodes/1.BTyy14rK.js","/app/immutable/chunks/CLy6KHFt.js","/app/immutable/chunks/U5EkHYlB.js","/app/immutable/chunks/ofkVZzaj.js","/app/immutable/chunks/Bo1m530q.js","/app/immutable/chunks/CRLCgacz.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/C-KminjT.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/nodes/2.CxEoe4OH.js","/app/immutable/chunks/DU3HC3bZ.js","/app/immutable/chunks/WsKP4LPk.js","/app/immutable/chunks/Rw2sIc23.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/B8923tpn.js","/app/immutable/chunks/DDVvWGb_.js","/app/immutable/chunks/B6Utvg2n.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/_qnhofRC.js","/app/immutable/chunks/D8dE5NKO.js","/app/immutable/chunks/NcTzLGaE.js","/app/immutable/chunks/BFV2dSHH.js","/app/immutable/chunks/DRWXI2c9.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/Jqp5qOVD.js","/app/immutable/chunks/DzsfGvxl.js","/app/immutable/chunks/DNqOZtos.js","/app/immutable/chunks/BCKgwkD0.js","/app/immutable/chunks/aGrIQKRU.js","/app/immutable/chunks/BT9muwwL.js","/app/immutable/assets/pending-agent-deletions.UE5obH5A.css","/app/immutable/chunks/C44FfRqF.js","/app/immutable/chunks/DFQVickD.js","/app/immutable/chunks/B-Do9RZm.js","/app/immutable/chunks/DTCb8Epd.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BmW_s-QS.js","/app/immutable/chunks/C0a6I3vg.js","/app/immutable/chunks/BbzvDmlI.js","/app/immutable/chunks/DLDAnI9z.js","/app/immutable/chunks/B9sFh2YC.js","/app/immutable/chunks/pJjgPm2r.js","/app/immutable/chunks/DAKiyYLi.js","/app/immutable/chunks/B14QHMsi.js","/app/immutable/chunks/BkXhQv7o.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BuQalAFN.js","/app/immutable/chunks/CpW6JN4X.js","/app/immutable/chunks/Bh14RpEF.js","/app/immutable/chunks/DGCL143k.js","/app/immutable/chunks/EovCRMHl.js","/app/immutable/chunks/DrYawC4F.js","/app/immutable/chunks/U1e6ofXm.js","/app/immutable/chunks/BccLwsaC.js","/app/immutable/chunks/7GaMUkMr.js","/app/immutable/chunks/BT1wxP1j.js","/app/immutable/chunks/BX07VB4O.js","/app/immutable/chunks/H2jLkRRS.js","/app/immutable/chunks/C29OqWSw.js","/app/immutable/chunks/Bz-WEnIt.js","/app/immutable/chunks/Cyv9WHI_.js","/app/immutable/chunks/DTUQexSy.js","/app/immutable/chunks/PGRNZeTw.js","/app/immutable/chunks/XJ16Nmz8.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/DlodKoXT.js","/app/immutable/chunks/DN0k4-NH.js","/app/immutable/chunks/BrgZ9aoi.js","/app/immutable/chunks/vE_6l2bj.js","/app/immutable/chunks/DfkSOrqi.js","/app/immutable/chunks/Cc_MPyh-.js","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/FY5ry3XL.js","/app/immutable/chunks/DMaeVMuN.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/D3cGjGGm.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css","/app/immutable/chunks/Bi74ET9W.js","/app/immutable/chunks/hkYCeRvw.js","/app/immutable/chunks/DxGyW0lA.js","/app/immutable/chunks/DnamVqCn.js","/app/immutable/chunks/KGbEdneS.js","/app/immutable/chunks/CpiHp8Ae.js","/app/immutable/chunks/CD0-GHau.js","/app/immutable/assets/AttachmentPreview.BCSCCZGm.css","/app/immutable/chunks/B6qPnBG-.js","/app/immutable/chunks/DqFGUV9A.js","/app/immutable/chunks/CBcfSdV0.js","/app/immutable/chunks/SGRcPO-Q.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/DHeLZdAl.js","/app/immutable/chunks/DY0zw3Os.js","/app/immutable/chunks/DCHrAI0P.js","/app/immutable/chunks/D-N7efrx.js","/app/immutable/chunks/D4NQoFI0.js","/app/immutable/assets/CompactWorkspaceInitializer.InGGWMfl.css","/app/immutable/chunks/B4kMH02u.js","/app/immutable/chunks/C_kHCmwb.js","/app/immutable/chunks/BaW2Kupg.js","/app/immutable/assets/accessibility.Cjws-1uy.css","/app/immutable/chunks/d3UTYnAT.js","/app/immutable/chunks/Blu7bS_5.js","/app/immutable/chunks/6QIFK_22.js","/app/immutable/chunks/C3hWtekV.js","/app/immutable/chunks/C8YkhSPO.js","/app/immutable/chunks/Bbw735-F.js","/app/immutable/chunks/BY5rau8Y.js","/app/immutable/assets/AgentAvatarStack.DOhClFuX.css","/app/immutable/assets/2.CtMzQVzR.css","/app/immutable/nodes/3.Cx7GEzkN.js","/app/immutable/nodes/4.BScaFjaT.js","/app/immutable/nodes/5.B524kS74.js","/app/immutable/chunks/B7ZegD4D.js","/app/immutable/chunks/BCxNS6oH.js","/app/immutable/chunks/CoSk1zgY.js","/app/immutable/chunks/CJYxykIm.js","/app/immutable/chunks/VLIUKGSW.js","/app/immutable/chunks/DNS6iE59.js","/app/immutable/chunks/Dd78YZJ8.js","/app/immutable/chunks/BV6v273A.js","/app/immutable/assets/TaskStatusIcon.sfU2TZ7a.css","/app/immutable/chunks/aqB_PH9O.js","/app/immutable/assets/AgentCard.4uIFUDRc.css","/app/immutable/chunks/CKIXy6ww.js","/app/immutable/assets/WorkspaceSetupCard.DNLkSKZg.css","/app/immutable/assets/ResizablePanel.DedsXg_i.css","/app/immutable/chunks/CNg1Aj8R.js","/app/immutable/chunks/Beai452N.js","/app/immutable/chunks/CIC39etl.js","/app/immutable/chunks/DaR6SlK7.js","/app/immutable/chunks/D-62MVd3.js","/app/immutable/chunks/DlZ5F9Lx.js","/app/immutable/assets/TrackedChangeDiffViewer.CveSjyPc.css","/app/immutable/chunks/CY2dENCG.js","/app/immutable/chunks/CoZ28bOB.js","/app/immutable/assets/syntax-highlighting.CrQGLq0X.css","/app/immutable/assets/CodeBlock.BezhEtUo.css","/app/immutable/chunks/jqiCLmEu.js","/app/immutable/assets/DiagramPresentation.fimBl1wP.css","/app/immutable/chunks/D8U5PK8P.js","/app/immutable/chunks/BEW3Nx_B.js","/app/immutable/chunks/D3vkMbH6.js","/app/immutable/chunks/BIJtNIE9.js","/app/immutable/chunks/LigVTKZd.js","/app/immutable/assets/StreamingDiagramRenderer.BShsSvPz.css","/app/immutable/assets/chat-search.CWdkjFsY.css","/app/immutable/chunks/ybv9yBcQ.js","/app/immutable/chunks/cp14at2-.js","/app/immutable/chunks/BK1cEBjQ.js","/app/immutable/chunks/E1EpU-HE.js","/app/immutable/assets/conversation-turns.Cw6qSz_q.css","/app/immutable/chunks/c4p5dSlc.js","/app/immutable/chunks/B2MkQOVO.js","/app/immutable/chunks/BhoR7wbU.js","/app/immutable/chunks/B2-z3LSX.js","/app/immutable/assets/ChatPanel.CbI83JII.css","/app/immutable/assets/HomeWorkspaceDetail.Dp5EWw2P.css","/app/immutable/assets/5.DBgC2kSL.css","/app/immutable/nodes/6.DazQUzxi.js","/app/immutable/assets/6.D6ebrVTb.css","/app/immutable/nodes/7.BtN1OPi8.js","/app/immutable/chunks/Q7h5F5MY.js","/app/immutable/nodes/8.Ak4UD-JY.js","/app/immutable/chunks/Ctl_B37M.js","/app/immutable/chunks/Bsxt04FP.js","/app/immutable/chunks/-xCKOX3D.js","/app/immutable/assets/8._uRcFklA.css","/app/immutable/assets/dock-tokens.CevytPYC.css","/app/immutable/nodes/9.BGiVSjZY.js","/app/immutable/chunks/DOKYoULh.js","/app/immutable/assets/CodeEditor.Bq04Rj-N.css","/app/immutable/chunks/UuhfJP8e.js","/app/immutable/assets/confirm-script-deletion.CqNa5NIC.css","/app/immutable/chunks/CQMEOQhi.js","/app/immutable/assets/scroll-area.bHHIbcsu.css","/app/immutable/chunks/DE8Uhev7.js","/app/immutable/assets/LineChangesBadge.CJ0J_Z0k.css","/app/immutable/chunks/CHsXJI6f.js","/app/immutable/chunks/DSAeoz8n.js","/app/immutable/chunks/f4sPQl0K.js","/app/immutable/assets/9.QLJOd4KT.css","/app/immutable/nodes/10.V55g30nz.js","/app/immutable/assets/10.BO7QC36g.css","/app/immutable/nodes/11.Da5dXwak.js","/app/immutable/nodes/12.DS0_6MSg.js","/app/immutable/assets/12.CF5xLHXq.css","/app/immutable/nodes/13.DsC_RJI_.js","/app/immutable/chunks/A4_v6nxU.js","/app/immutable/assets/13.BuZANxI8.css","/app/immutable/nodes/14._G7LK5Dq.js","/app/immutable/chunks/C-DzgvKm.js","/app/immutable/assets/14.BlmY1boZ.css","/app/immutable/nodes/15.CvrA0zaY.js","/app/immutable/assets/15.COfTIH7u.css","/app/immutable/nodes/16.DvmMFRvS.js","/app/immutable/assets/16.Cznk2DRv.css"])))=>i.map(i=>d[i]);
2
2
  import{_ as a,bo as X,t as lt,bq as g,a_ as w,by as dt,b as pt,c as gt}from"../chunks/DVcxpZob.js";import{l as k}from"../chunks/BJzHxIyr.js";import{s as ft}from"../chunks/D-N7efrx.js";import{bs as Et,cb as vt,ca as bt,bk as Tt,aD as c,bH as F,c0 as ht,ay as b,bS as It,W as m,bn as At,bV as U,aA as f,a7 as I,c9 as L,a5 as Ot,bA as Rt,aB as Z,b$ as Pt,b_ as Dt,bO as yt}from"../chunks/B8o4lNgr.js";import{c as S}from"../chunks/Bo1m530q.js";import{b as V}from"../chunks/D2g8BuR1.js";const Lt=async()=>{window.location.pathname.startsWith("/sandbox")||await a(()=>import("../chunks/CWQDbnjd.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url)},St=/^[a-zA-Z_$]{1,3}\.call is not a function$/;function Vt(t){return t instanceof Error&&t.name==="TypeError"&&St.test(t.message)&&typeof t.stack=="string"&&t.stack.includes("bits-ui")}const q=500,xt=8,wt=/[a-z][a-z0-9+.-]*:\/\/\S+/gi,kt=/[)\]}>'".,;:]+$/,Nt=/[^/]+\.[cm]?[jt]s(?::\d+){0,2}$/;function Ct(t){const e=kt.exec(t)?.[0]??"",o=t.slice(0,t.length-e.length),n=o.indexOf("://"),i=o.slice(0,n),s=o.slice(n+3).split("#")[0].split("?")[0],u=s.indexOf("/"),l=u===-1?s:s.slice(0,u),d=l.slice(l.lastIndexOf("@")+1),p=u===-1?"":s.slice(u);if(p===""||p==="/")return`${i}://${d}${e}`;const O=Nt.exec(p)?.[0];return`${i}://${d}/${O??"<redacted>"}${e}`}function x(t){const e=t.replace(wt,Ct);return e.length>q?`${e.slice(0,q)}…`:e}function jt(t){return typeof t!="string"||t.length===0?null:t.split(`
3
3
  `).slice(0,xt).map(x).join(`
4
- `)}function Mt(t,e){if(t instanceof Error)return{name:x(String(t.name)),message:x(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const o="message"in t?t.message:void 0;return{name:"object",message:typeof o=="string"?x(o):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:x(String(t)),stack:null,routeId:e}}let K=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("no diff result available"))return{message:""};if(o.includes("isInHiddenArea"))return{message:""};if(o.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("Not found: /index.html")||o.includes("Not found"))return K?(A++,A>=Ft&&(k.warn('Multiple consecutive "Not found" errors detected, router may be corrupted',{url:e.url.toString(),routeId:e.route.id,consecutiveErrors:A}),A=0,typeof window<"u"&&setTimeout(()=>{k.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),k.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(K=!0,A=0,{message:""});A=0}return ft(t)?{message:""}:Vt(t)?{message:""}:(k.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Qt={};var zt=Z('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Bt=Z("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let o=g(e,"stores",7),n=g(e,"page",7),i=g(e,"constructors",7),s=g(e,"components",23,()=>[]),u=g(e,"form",7),l=g(e,"data_0",7,null),d=g(e,"data_1",7,null),p=g(e,"data_2",7,null);vt(()=>o().page.set(n())),bt(()=>{o(),n(),i(),s(),u(),l(),d(),p(),o().page.notify()});let O=U(!1),z=U(!1),B=U(null);Tt(()=>{const r=o().page.subscribe(()=>{c(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=L(()=>i()[2]);var tt={get stores(){return o()},set stores(r){o(r),f()},get page(){return n()},set page(r){n(r),f()},get constructors(){return i()},set constructors(r){i(r),f()},get components(){return s()},set components(r=[]){s(r),f()},get form(){return u()},set form(r){u(r),f()},get data_0(){return l()},set data_0(r=null){l(r),f()},get data_1(){return d()},set data_1(r=null){d(r),f()},get data_2(){return p()},set data_2(r=null){p(r),f()},$set:dt,$on:(r,_)=>pt(e,r,_)},G=Bt(),W=b(G);{var et=r=>{const _=L(()=>i()[0]);var E=I(),R=b(E);S(R,()=>c(_),(v,T)=>{V(T(v,{get data(){return l()},get form(){return u()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=b($);{var nt=h=>{const N=L(()=>i()[1]);var D=I(),C=b(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params},children:(y,$t)=>{var H=I(),ut=b(H);S(ut,()=>c(Y),(_t,ct)=>{V(ct(_t,{get data(){return p()},get form(){return u()},get params(){return n().params}}),mt=>s()[2]=mt,()=>s()?.[2])}),m(y,H)},$$slots:{default:!0}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)},it=h=>{const N=L(()=>i()[1]);var D=I(),C=b(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)};w(st,h=>{i()[2]?h(nt):h(it,-1)})}m(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)},rt=r=>{const _=L(()=>i()[0]);var E=I(),R=b(E);S(R,()=>c(_),(v,T)=>{V(T(v,{get data(){return l()},get form(){return u()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)};w(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var _=zt(),E=Ot(_);{var R=v=>{var T=Pt();Dt(()=>yt(T,c(B))),m(v,T)};w(E,v=>{c(z)&&v(R)})}Rt(_),m(r,_)};w(ot,r=>{c(O)&&r(at)})}return m(t,G),At(tt)}const Yt=gt(J),te=[()=>a(()=>import("../nodes/0.rj6WxPiI.js"),__vite__mapDeps([6,4,5,7,8,3,9,10,11,12,13,2,14,15,16,17,18,19]),import.meta.url),()=>a(()=>import("../nodes/1.D2LKdxSK.js"),__vite__mapDeps([20,4,5,21,22,23,24,7,25,3,26,27,28,8,1,2,29]),import.meta.url),()=>a(()=>import("../nodes/2.lbWc9DH5.js"),__vite__mapDeps([30,4,5,7,31,10,11,12,13,2,3,8,23,24,25,26,32,33,34,27,28,1,29,17,21,35,18,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,16,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,15,107,108,109,110,111,112,113,114,115,116,117,118,119,22,120,121,122,123,124,125,126,127,128,129,9,130,131,132]),import.meta.url),()=>a(()=>import("../nodes/3.in8ZwJzB.js"),__vite__mapDeps([133,4,5,32,25,3,26,7,21,22,23,24,27,28,8,1,2,29,37,38,36,39,33,10,11,12,13,34,17,40,18,35]),import.meta.url),()=>a(()=>import("../nodes/4.CUsxPHda.js"),__vite__mapDeps([134,4,5,7,9,8,3,42,10,11,12,13,2,33,23,24,25,26,34,27,28,1,29,17,32,43,38,44,45,40,46,47,48,18,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,35,39,71,72,73,74,75,76,77,78,41,79,16,80,81,82,83,37,21,36,84,85,86,87,88]),import.meta.url),()=>a(()=>import("../nodes/5.DvU91sgr.js"),__vite__mapDeps([135,4,5,58,136,27,7,25,3,26,28,24,8,1,2,29,23,31,10,11,12,13,32,94,92,67,57,68,69,95,93,91,49,50,40,33,34,17,45,51,52,96,97,98,48,43,38,56,59,90,77,99,47,18,37,21,36,39,35,100,106,46,44,15,107,89,108,55,64,81,137,72,138,139,140,141,142,143,144,74,145,121,146,147,118,148,149,65,122,62,63,123,115,71,150,151,152,127,153,154,155,156,82,157,158,159,160,161,162,163,164,165,22,166,167,168,169,61,170,171,103,172,130,131,173,174,175,176,177,178,114,76,109,70,179,180,125,120,181]),import.meta.url),()=>a(()=>import("../nodes/6.BdAKoKat.js"),__vite__mapDeps([182,4,5,25,3,26,28,33,2,10,11,12,13,7,8,23,24,34,27,1,29,17,32,38,22,21,44,45,43,40,153,154,56,51,57,58,59,106,46,47,48,18,49,50,52,93,94,92,67,68,69,95,91,96,97,98,77,90,99,37,36,39,35,100,15,107,89,108,62,63,141,137,140,142,143,144,64,74,145,121,146,155,127,156,82,157,158,159,160,161,122,123,162,163,164,165,65,115,71,166,167,168,169,171,78,41,183]),import.meta.url),()=>a(()=>import("../nodes/7.JNWjRQgm.js"),__vite__mapDeps([184,4,5,58,96,185,18,12,35,11,10,13,2,3,7,8,56,25,26,27,28,24,1,29,32,51,57,23,59,97,150]),import.meta.url),()=>a(()=>import("../nodes/8.CzuEJYxY.js"),__vite__mapDeps([186,4,5,8,3,25,26,24,28,27,7,1,2,29,67,94,92,32,23,57,68,69,95,93,91,10,11,12,13,49,50,40,33,34,17,45,51,52,58,96,97,98,126,102,60,90,77,56,59,99,38,47,48,43,18,37,21,36,39,35,100,22,54,187,66,44,63,188,145,143,166,120,147,118,81,103,73,70,185,176,177,107,79,85,189,71,111,190,191]),import.meta.url),()=>a(()=>import("../nodes/9.Bn4F0-mM.js"),__vite__mapDeps([192,4,5,136,27,7,25,3,26,28,24,8,1,2,29,23,31,10,11,12,13,32,94,92,67,57,68,69,95,93,91,49,50,40,33,34,17,45,51,52,58,96,97,98,48,43,38,56,59,90,77,99,47,18,37,21,36,39,35,100,106,46,44,15,107,89,108,55,64,81,137,72,138,139,140,141,142,143,144,74,145,121,146,147,118,148,149,22,116,117,53,54,112,84,85,86,87,88,113,76,119,175,41,127,124,65,73,193,129,194,195,188,75,196,105,187,103,79,197,198,80,199,200,201,172,202,203,109,177,125,204]),import.meta.url),()=>a(()=>import("../nodes/10.CsOXyM9t.js"),__vite__mapDeps([205,4,5,36,21,25,3,26,24,10,11,12,13,2,7,8,23,28,124,92,32,67,27,1,29,99,56,51,57,58,59,89,77,173,125,91,197,198,80,33,34,17,193,129,87,88,86,48,43,38,39,194,82,201,81,206]),import.meta.url),()=>a(()=>import("../nodes/11.Da5dXwak.js"),__vite__mapDeps([207,4,5,58,96,23,24,7,25,3,26]),import.meta.url),()=>a(()=>import("../nodes/12.DS0_6MSg.js"),__vite__mapDeps([208,4,5,8,3,27,7,25,26,28,24,1,2,29,23,97,150,209]),import.meta.url),()=>a(()=>import("../nodes/13.DsC_RJI_.js"),__vite__mapDeps([210,4,5,25,3,26,7,27,28,24,8,1,2,29,97,150,211,11,110,127,92,32,67,94,23,57,68,69,95,107,58,96,212]),import.meta.url),()=>a(()=>import("../nodes/14.EKyMha8S.js"),__vite__mapDeps([213,4,5,49,10,11,12,13,2,3,7,8,50,40,33,23,24,25,26,34,27,28,1,29,17,32,45,51,52,97,150,42,43,38,44,46,47,48,18,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,35,39,71,72,73,74,75,76,77,78,41,79,16,80,81,82,83,37,21,36,84,85,86,87,88,161,90,91,92,93,94,95,96,98,99,100,106,15,107,89,108,122,123,162,101,111,170,153,154,141,137,140,142,143,144,145,121,146,155,127,156,157,158,159,160,163,164,165,22,115,166,167,168,169,171,103,172,130,131,173,174,211,214,215,191]),import.meta.url),()=>a(()=>import("../nodes/15.CvrA0zaY.js"),__vite__mapDeps([216,4,5,25,3,26,7,27,28,24,8,1,2,29,97,150,32,13,127,214,48,43,38,217]),import.meta.url),()=>a(()=>import("../nodes/16.DJIf57hW.js"),__vite__mapDeps([218,4,5,48,8,3,43,38,23,24,7,25,26,27,28,1,2,29,10,11,12,13,32,121,64,33,34,17,49,50,40,45,51,52,115,71,83,93,94,92,67,57,68,69,95,91,58,96,97,98,102,60,79,37,21,36,39,18,35,219]),import.meta.url)],ee=[],re={"/(app)":[5,[2],[3]],"/(app)/agent/[id]":[6,[2],[3]],"/(app)/desktop-control-agent":[7,[2],[3]],"/desktop-overlay":[12],"/dev-console":[13],"/dock-annotation":[15],"/dock":[14],"/hud":[16,[4]],"/(app)/settings":[8,[2],[3]],"/(app)/workspace/creating":[11,[2],[3]],"/(app)/workspace/[id]":[9,[2],[3]],"/(app)/workspace/[id]/files":[10,[2],[3]]},Q={handleError:Ut||(({error:t})=>{console.error(t)}),init:Lt,reroute:(()=>{}),transport:{}},Gt=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.decode])),oe=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.encode])),ae=!1,se=(t,e)=>Gt[t](e),ne=()=>a(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{se as decode,Gt as decoders,re as dictionary,oe as encoders,ne as get_error_template,ae as hash,Q as hooks,Qt as matchers,te as nodes,Yt as root,ee as server_loads};
4
+ `)}function Mt(t,e){if(t instanceof Error)return{name:x(String(t.name)),message:x(String(t.message)),stack:jt(t.stack),routeId:e};if(t&&typeof t=="object"){const o="message"in t?t.message:void 0;return{name:"object",message:typeof o=="string"?x(o):"[non-Error object]",stack:null,routeId:e}}return{name:typeof t,message:x(String(t)),stack:null,routeId:e}}let K=!1,A=0;const Ft=2,Ut=({error:t,event:e})=>{if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("no diff result available"))return{message:""};if(o.includes("isInHiddenArea"))return{message:""};if(o.includes("TextModel got disposed"))return{message:""}}if(t&&typeof t=="object"&&"message"in t){const o=String(t.message);if(o.includes("Not found: /index.html")||o.includes("Not found"))return K?(A++,A>=Ft&&(k.warn('Multiple consecutive "Not found" errors detected, router may be corrupted',{url:e.url.toString(),routeId:e.route.id,consecutiveErrors:A}),A=0,typeof window<"u"&&setTimeout(()=>{k.info("Triggering full page reload to recover from router corruption"),window.location.reload()},100)),k.error("Client navigation error:",{error:t,url:e.url.toString(),routeId:e.route.id}),{message:X.hooks_client_pageNotFound_message()}):(K=!0,A=0,{message:""});A=0}return ft(t)?{message:""}:Vt(t)?{message:""}:(k.error("Client error:",Mt(t,e.route.id)),{message:X.hooks_client_unexpected_error()})},Qt={};var zt=Z('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),Bt=Z("<!> <!>",1);function J(t,e){if(new.target)return lt({component:J,...t});Et(e,!0);let o=g(e,"stores",7),n=g(e,"page",7),i=g(e,"constructors",7),s=g(e,"components",23,()=>[]),u=g(e,"form",7),l=g(e,"data_0",7,null),d=g(e,"data_1",7,null),p=g(e,"data_2",7,null);vt(()=>o().page.set(n())),bt(()=>{o(),n(),i(),s(),u(),l(),d(),p(),o().page.notify()});let O=U(!1),z=U(!1),B=U(null);Tt(()=>{const r=o().page.subscribe(()=>{c(O)&&(F(z,!0),ht().then(()=>{F(B,document.title||"untitled page",!0)}))});return F(O,!0),r});const Y=L(()=>i()[2]);var tt={get stores(){return o()},set stores(r){o(r),f()},get page(){return n()},set page(r){n(r),f()},get constructors(){return i()},set constructors(r){i(r),f()},get components(){return s()},set components(r=[]){s(r),f()},get form(){return u()},set form(r){u(r),f()},get data_0(){return l()},set data_0(r=null){l(r),f()},get data_1(){return d()},set data_1(r=null){d(r),f()},get data_2(){return p()},set data_2(r=null){p(r),f()},$set:dt,$on:(r,_)=>pt(e,r,_)},G=Bt(),W=b(G);{var et=r=>{const _=L(()=>i()[0]);var E=I(),R=b(E);S(R,()=>c(_),(v,T)=>{V(T(v,{get data(){return l()},get form(){return u()},get params(){return n().params},children:(P,Wt)=>{var $=I(),st=b($);{var nt=h=>{const N=L(()=>i()[1]);var D=I(),C=b(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params},children:(y,$t)=>{var H=I(),ut=b(H);S(ut,()=>c(Y),(_t,ct)=>{V(ct(_t,{get data(){return p()},get form(){return u()},get params(){return n().params}}),mt=>s()[2]=mt,()=>s()?.[2])}),m(y,H)},$$slots:{default:!0}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)},it=h=>{const N=L(()=>i()[1]);var D=I(),C=b(D);S(C,()=>c(N),(j,M)=>{V(M(j,{get data(){return d()},get form(){return u()},get params(){return n().params}}),y=>s()[1]=y,()=>s()?.[1])}),m(h,D)};w(st,h=>{i()[2]?h(nt):h(it,-1)})}m(P,$)},$$slots:{default:!0}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)},rt=r=>{const _=L(()=>i()[0]);var E=I(),R=b(E);S(R,()=>c(_),(v,T)=>{V(T(v,{get data(){return l()},get form(){return u()},get params(){return n().params}}),P=>s()[0]=P,()=>s()?.[0])}),m(r,E)};w(W,r=>{i()[1]?r(et):r(rt,-1)})}var ot=It(W,2);{var at=r=>{var _=zt(),E=Ot(_);{var R=v=>{var T=Pt();Dt(()=>yt(T,c(B))),m(v,T)};w(E,v=>{c(z)&&v(R)})}Rt(_),m(r,_)};w(ot,r=>{c(O)&&r(at)})}return m(t,G),At(tt)}const Yt=gt(J),te=[()=>a(()=>import("../nodes/0.BJ700vC2.js"),__vite__mapDeps([6,4,5,7,8,3,9,10,11,12,13,2,14,15,16,17,18,19]),import.meta.url),()=>a(()=>import("../nodes/1.BTyy14rK.js"),__vite__mapDeps([20,4,5,21,22,23,24,7,25,3,26,27,28,8,1,2,29]),import.meta.url),()=>a(()=>import("../nodes/2.CxEoe4OH.js"),__vite__mapDeps([30,4,5,7,31,10,11,12,13,2,3,8,23,24,25,26,32,33,34,27,28,1,29,17,21,35,18,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,16,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,15,107,108,109,110,111,112,113,114,115,116,117,118,119,22,120,121,122,123,124,125,126,127,128,129,9,130,131,132]),import.meta.url),()=>a(()=>import("../nodes/3.Cx7GEzkN.js"),__vite__mapDeps([133,4,5,32,25,3,26,7,21,22,23,24,27,28,8,1,2,29,37,38,36,39,33,10,11,12,13,34,17,40,18,35]),import.meta.url),()=>a(()=>import("../nodes/4.BScaFjaT.js"),__vite__mapDeps([134,4,5,7,9,8,3,42,10,11,12,13,2,33,23,24,25,26,34,27,28,1,29,17,32,43,38,44,45,40,46,47,48,18,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,35,39,71,72,73,74,75,76,77,78,41,79,16,80,81,82,83,37,21,36,84,85,86,87,88]),import.meta.url),()=>a(()=>import("../nodes/5.B524kS74.js"),__vite__mapDeps([135,4,5,58,136,27,7,25,3,26,28,24,8,1,2,29,23,31,10,11,12,13,32,94,92,67,57,68,69,95,93,91,49,50,40,33,34,17,45,51,52,96,97,98,48,43,38,56,59,90,77,99,47,18,37,21,36,39,35,100,106,46,44,15,107,89,108,55,64,81,137,72,138,139,140,141,142,143,144,74,145,121,146,147,118,148,149,65,122,62,63,123,115,71,150,151,152,127,153,154,155,156,82,157,158,159,160,161,162,163,164,165,22,166,167,168,169,61,170,171,103,172,130,131,173,174,175,176,177,178,114,76,109,70,179,180,125,120,181]),import.meta.url),()=>a(()=>import("../nodes/6.DazQUzxi.js"),__vite__mapDeps([182,4,5,25,3,26,28,33,2,10,11,12,13,7,8,23,24,34,27,1,29,17,32,38,22,21,44,45,43,40,153,154,56,51,57,58,59,106,46,47,48,18,49,50,52,93,94,92,67,68,69,95,91,96,97,98,77,90,99,37,36,39,35,100,15,107,89,108,62,63,141,137,140,142,143,144,64,74,145,121,146,155,127,156,82,157,158,159,160,161,122,123,162,163,164,165,65,115,71,166,167,168,169,171,78,41,183]),import.meta.url),()=>a(()=>import("../nodes/7.BtN1OPi8.js"),__vite__mapDeps([184,4,5,58,96,185,18,12,35,11,10,13,2,3,7,8,56,25,26,27,28,24,1,29,32,51,57,23,59,97,150]),import.meta.url),()=>a(()=>import("../nodes/8.Ak4UD-JY.js"),__vite__mapDeps([186,4,5,8,3,25,26,24,28,27,7,1,2,29,67,94,92,32,23,57,68,69,95,93,91,10,11,12,13,49,50,40,33,34,17,45,51,52,58,96,97,98,126,102,60,90,77,56,59,99,38,47,48,43,18,37,21,36,39,35,100,22,54,187,66,44,63,188,145,143,166,120,147,118,81,103,73,70,185,176,177,107,79,85,189,71,111,190,191]),import.meta.url),()=>a(()=>import("../nodes/9.BGiVSjZY.js"),__vite__mapDeps([192,4,5,136,27,7,25,3,26,28,24,8,1,2,29,23,31,10,11,12,13,32,94,92,67,57,68,69,95,93,91,49,50,40,33,34,17,45,51,52,58,96,97,98,48,43,38,56,59,90,77,99,47,18,37,21,36,39,35,100,106,46,44,15,107,89,108,55,64,81,137,72,138,139,140,141,142,143,144,74,145,121,146,147,118,148,149,22,116,117,53,54,112,84,85,86,87,88,113,76,119,175,41,127,124,65,73,193,129,194,195,188,75,196,105,187,103,79,197,198,80,199,200,201,172,202,203,109,177,125,204]),import.meta.url),()=>a(()=>import("../nodes/10.V55g30nz.js"),__vite__mapDeps([205,4,5,36,21,25,3,26,24,10,11,12,13,2,7,8,23,28,124,92,32,67,27,1,29,99,56,51,57,58,59,89,77,173,125,91,197,198,80,33,34,17,193,129,87,88,86,48,43,38,39,194,82,201,81,206]),import.meta.url),()=>a(()=>import("../nodes/11.Da5dXwak.js"),__vite__mapDeps([207,4,5,58,96,23,24,7,25,3,26]),import.meta.url),()=>a(()=>import("../nodes/12.DS0_6MSg.js"),__vite__mapDeps([208,4,5,8,3,27,7,25,26,28,24,1,2,29,23,97,150,209]),import.meta.url),()=>a(()=>import("../nodes/13.DsC_RJI_.js"),__vite__mapDeps([210,4,5,25,3,26,7,27,28,24,8,1,2,29,97,150,211,11,110,127,92,32,67,94,23,57,68,69,95,107,58,96,212]),import.meta.url),()=>a(()=>import("../nodes/14._G7LK5Dq.js"),__vite__mapDeps([213,4,5,49,10,11,12,13,2,3,7,8,50,40,33,23,24,25,26,34,27,28,1,29,17,32,45,51,52,97,150,42,43,38,44,46,47,48,18,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,35,39,71,72,73,74,75,76,77,78,41,79,16,80,81,82,83,37,21,36,84,85,86,87,88,161,90,91,92,93,94,95,96,98,99,100,106,15,107,89,108,122,123,162,101,111,170,153,154,141,137,140,142,143,144,145,121,146,155,127,156,157,158,159,160,163,164,165,22,115,166,167,168,169,171,103,172,130,131,173,174,211,214,215,191]),import.meta.url),()=>a(()=>import("../nodes/15.CvrA0zaY.js"),__vite__mapDeps([216,4,5,25,3,26,7,27,28,24,8,1,2,29,97,150,32,13,127,214,48,43,38,217]),import.meta.url),()=>a(()=>import("../nodes/16.DvmMFRvS.js"),__vite__mapDeps([218,4,5,48,8,3,43,38,23,24,7,25,26,27,28,1,2,29,10,11,12,13,32,121,64,33,34,17,49,50,40,45,51,52,115,71,83,93,94,92,67,57,68,69,95,91,58,96,97,98,102,60,79,37,21,36,39,18,35,219]),import.meta.url)],ee=[],re={"/(app)":[5,[2],[3]],"/(app)/agent/[id]":[6,[2],[3]],"/(app)/desktop-control-agent":[7,[2],[3]],"/desktop-overlay":[12],"/dev-console":[13],"/dock-annotation":[15],"/dock":[14],"/hud":[16,[4]],"/(app)/settings":[8,[2],[3]],"/(app)/workspace/creating":[11,[2],[3]],"/(app)/workspace/[id]":[9,[2],[3]],"/(app)/workspace/[id]/files":[10,[2],[3]]},Q={handleError:Ut||(({error:t})=>{console.error(t)}),init:Lt,reroute:(()=>{}),transport:{}},Gt=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.decode])),oe=Object.fromEntries(Object.entries(Q.transport).map(([t,e])=>[t,e.encode])),ae=!1,se=(t,e)=>Gt[t](e),ne=()=>a(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(t=>t.default);export{se as decode,Gt as decoders,re as dictionary,oe as encoders,ne as get_error_template,ae as hash,Q as hooks,Qt as matchers,te as nodes,Yt as root,ee as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,s as r}from"../chunks/CLy6KHFt.js";export{o as load_css,r as start};
@@ -1 +1 @@
1
- import{t as L,bq as O,by as I,bu as Z,bs as ee,b as N,a_ as te,bt as ne,br as oe}from"../chunks/DVcxpZob.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as W,W as y,bn as T,aA as $}from"../chunks/B8o4lNgr.js";import{s as D}from"../chunks/Dy0ApYVY.js";import{x as ie,I as C,D as ae}from"../chunks/CtOtN9TD.js";import{w as ce}from"../chunks/B7BvsUWA.js";import{Hp as ue}from"../chunks/DOX6tqe2.js";import{initAppStore as de}from"../chunks/Cb2bvBb_.js";import{F as le,D as fe}from"../chunks/Dwoq6qgz.js";import{i as me}from"../chunks/Dt4s7v4Q.js";const pe=!1,we=!1,ve=!0,Me=Object.freeze(Object.defineProperty({__proto__:null,csr:ve,prerender:we,ssr:pe},Symbol.toStringTag,{value:"Module"}));function ge(e,t,r){const f=de(e);let p=t.startSagas(e),s=!1;const l=()=>{if(!s){s=!0;try{for(const m of p)m()}finally{f.dispose(),r?.rootStoreStop===l&&(r.rootStoreStop=void 0,r.rootStoreReplaceSagas=void 0)}}};return l}const V=3,j=4,be=100;let A=null;function S(e){const t=Date.now();A!==null&&A.direction===e&&t-A.at<be||(A={direction:e,at:t},e==="back"?history.back():history.forward())}function he(){return document.querySelector("webview:hover")!==null}function ye(e){e!=="back"&&e!=="forward"||he()||S(e)}function Y(e){return e.target instanceof Element&&e.target.closest("webview")!==null}function U(e){Y(e)||(e.button===V?(e.preventDefault(),S("back")):e.button===j&&(e.preventDefault(),S("forward")))}function F(e){Y(e)||(e.button===V||e.button===j)&&e.preventDefault()}function Ae(e=window){return e.addEventListener("mouseup",U,{capture:!0}),e.addEventListener("mousedown",F,{capture:!0}),()=>{e.removeEventListener("mouseup",U,{capture:!0}),e.removeEventListener("mousedown",F,{capture:!0})}}function Ee(e){const t=new Set,r="data-window-animation-paused",f=()=>e.hasAttribute("data-window-blurred");function p(i){const n=new Set;for(const o of i){if(!(o instanceof CSSAnimation)||o.playState!=="running"&&o.playState!=="paused"||o.effect?.getTiming().iterations!==1/0)continue;const d=o.effect?.target;d instanceof Element&&n.add(d)}for(const o of n)t.has(o)||(t.add(o),o.setAttribute(r,""))}function s(){for(const i of t)i.removeAttribute(r);t.clear()}function l(i){for(const n of i)!t.has(n)||e.contains(n)&&n.getAnimations({subtree:!0}).some(d=>d instanceof CSSAnimation&&d.effect?.target===n&&d.effect?.getTiming().iterations===1/0)||(t.delete(n),n.removeAttribute(r))}const m=new MutationObserver(i=>{if(!f())return;const n=new Set,o=new Set;for(const a of i){if(a.type==="childList")for(const c of a.addedNodes)c instanceof Element&&n.add(c);else if(a.target instanceof Element&&a.attributeName!==r&&a.attributeName!=="data-window-blurred")n.add(a.target);else continue;if(a.target instanceof Element)for(const c of t)(a.target.contains(c)||!e.contains(c))&&o.add(c)}l(o);const d=[];for(const a of n){if(!e.contains(a))continue;let c=a.parentElement;for(;c&&!n.has(c);)c=c.parentElement;c||d.push(...a.getAnimations({subtree:!0}))}p(d)});function v(){m.disconnect(),f()?(m.observe(e,{childList:!0,attributes:!0,subtree:!0}),p(e.getAnimations({subtree:!0}))):s()}function u(i){!f()||!(i.target instanceof Element)||(l([i.target]),p(i.target.getAnimations({subtree:!0})))}function w(i){!f()||!(i.target instanceof Element)||l([i.target])}const g=new MutationObserver(v);return g.observe(e,{attributes:!0,attributeFilter:["data-window-blurred"]}),e.addEventListener("animationstart",u,!0),e.addEventListener("animationcancel",w,!0),v(),{destroy(){g.disconnect(),m.disconnect(),e.removeEventListener("animationstart",u,!0),e.removeEventListener("animationcancel",w,!0),s()}}}function q(e,t){if(new.target)return L({component:q,...e});P(t,!0);const r=()=>Z(m,"$resolvedLocale$",f),[f,p]=ee();let s=O(t,"children",7);const l=ge(ue,{startSagas:()=>[]},void 0);re(l);const m=le(),v=fe();se(()=>{const n=!me()&&window.location.pathname!=="/dock";let o=document.hasFocus(),d=!1;const a=()=>{document.documentElement.toggleAttribute("data-window-blurred",n&&d&&!o)},c=_=>{o=_,a()},R=()=>c(!1),H=()=>c(!0),z=v.subscribe(_=>{d=_,a()}),M=window.electronAPI,k=ie();let E;a(),n&&(k?E=M?.on?.("window:focus",c):(window.addEventListener("blur",R),window.addEventListener("focus",H)));const J=Ee(document.documentElement),Q=ce(document.getElementById("splash"));document.getElementById("app-drag-region")?.remove();const X=Ae(window),B=window.electronAPI?.on?.(C.APP.HISTORY_NAVIGATE,ye);return()=>{z(),J.destroy(),E?M.offById("window:focus",E):n&&!k&&(window.removeEventListener("blur",R),window.removeEventListener("focus",H)),document.documentElement.removeAttribute("data-window-blurred"),Q(),X(),B&&window.electronAPI.offById(C.APP.HISTORY_NAVIGATE,B)}});var u={get children(){return s()},set children(n){s(n),$()},$set:I,$on:(n,o)=>N(t,n,o)},w=b(),g=h(w);ae(g,r,n=>{var o=b(),d=h(o);D(d,()=>s()??W),y(n,o)}),y(e,w);var i=T(u);return p(),i}const x="/dev-console";function _e(e){return e===x||e.startsWith(x+"/")}const G="/desktop-overlay";function Se(e){return e===G||e.startsWith(`${G}/`)}function K(e,t){if(new.target)return L({component:K,...e});P(t,!0);let r=O(t,"children",7);const f=typeof window<"u"&&(_e(window.location.pathname)||Se(window.location.pathname));var p={get children(){return r()},set children(u){r(u),$()},$set:I,$on:(u,w)=>N(t,u,w)},s=b(),l=h(s);{var m=u=>{var w=b(),g=h(w);D(g,()=>r()??W),y(u,w)},v=u=>{q(u,{get children(){return r()}})};te(l,u=>{f?u(m):u(v,-1)})}return y(e,s),T(p)}var Le=new Set(["$$slots","$$events","$$legacy","children"]);function Oe(e,t){if(new.target)return L({component:Oe,...e});P(t,!0);let r=O(t,"children",7),f=oe(t,Le);var p={get children(){return r()},set children(s){r(s),$()},$set:I,$on:(s,l)=>N(t,s,l)};return K(e,ne(()=>f,{children:(s,l)=>{var m=b(),v=h(m);D(v,()=>r()??W),y(s,m)},$$slots:{default:!0}})),T(p)}export{Oe as component,Me as universal};
1
+ import{t as L,bq as O,by as I,bu as Z,bs as ee,b as N,a_ as te,bt as ne,br as oe}from"../chunks/DVcxpZob.js";import{bs as P,bj as re,bk as se,a7 as b,ay as h,bf as W,W as y,bn as T,aA as $}from"../chunks/B8o4lNgr.js";import{s as D}from"../chunks/Dy0ApYVY.js";import{x as ie,I as C,D as ae}from"../chunks/CtOtN9TD.js";import{w as ce}from"../chunks/B7BvsUWA.js";import{Hp as ue}from"../chunks/DOX6tqe2.js";import{initAppStore as de}from"../chunks/Cb2bvBb_.js";import{F as le,D as fe}from"../chunks/Dwoq6qgz.js";import{i as me}from"../chunks/BY6gVP5g.js";const pe=!1,we=!1,ve=!0,Me=Object.freeze(Object.defineProperty({__proto__:null,csr:ve,prerender:we,ssr:pe},Symbol.toStringTag,{value:"Module"}));function ge(e,t,r){const f=de(e);let p=t.startSagas(e),s=!1;const l=()=>{if(!s){s=!0;try{for(const m of p)m()}finally{f.dispose(),r?.rootStoreStop===l&&(r.rootStoreStop=void 0,r.rootStoreReplaceSagas=void 0)}}};return l}const V=3,j=4,be=100;let A=null;function S(e){const t=Date.now();A!==null&&A.direction===e&&t-A.at<be||(A={direction:e,at:t},e==="back"?history.back():history.forward())}function he(){return document.querySelector("webview:hover")!==null}function ye(e){e!=="back"&&e!=="forward"||he()||S(e)}function Y(e){return e.target instanceof Element&&e.target.closest("webview")!==null}function U(e){Y(e)||(e.button===V?(e.preventDefault(),S("back")):e.button===j&&(e.preventDefault(),S("forward")))}function F(e){Y(e)||(e.button===V||e.button===j)&&e.preventDefault()}function Ae(e=window){return e.addEventListener("mouseup",U,{capture:!0}),e.addEventListener("mousedown",F,{capture:!0}),()=>{e.removeEventListener("mouseup",U,{capture:!0}),e.removeEventListener("mousedown",F,{capture:!0})}}function Ee(e){const t=new Set,r="data-window-animation-paused",f=()=>e.hasAttribute("data-window-blurred");function p(i){const n=new Set;for(const o of i){if(!(o instanceof CSSAnimation)||o.playState!=="running"&&o.playState!=="paused"||o.effect?.getTiming().iterations!==1/0)continue;const d=o.effect?.target;d instanceof Element&&n.add(d)}for(const o of n)t.has(o)||(t.add(o),o.setAttribute(r,""))}function s(){for(const i of t)i.removeAttribute(r);t.clear()}function l(i){for(const n of i)!t.has(n)||e.contains(n)&&n.getAnimations({subtree:!0}).some(d=>d instanceof CSSAnimation&&d.effect?.target===n&&d.effect?.getTiming().iterations===1/0)||(t.delete(n),n.removeAttribute(r))}const m=new MutationObserver(i=>{if(!f())return;const n=new Set,o=new Set;for(const a of i){if(a.type==="childList")for(const c of a.addedNodes)c instanceof Element&&n.add(c);else if(a.target instanceof Element&&a.attributeName!==r&&a.attributeName!=="data-window-blurred")n.add(a.target);else continue;if(a.target instanceof Element)for(const c of t)(a.target.contains(c)||!e.contains(c))&&o.add(c)}l(o);const d=[];for(const a of n){if(!e.contains(a))continue;let c=a.parentElement;for(;c&&!n.has(c);)c=c.parentElement;c||d.push(...a.getAnimations({subtree:!0}))}p(d)});function v(){m.disconnect(),f()?(m.observe(e,{childList:!0,attributes:!0,subtree:!0}),p(e.getAnimations({subtree:!0}))):s()}function u(i){!f()||!(i.target instanceof Element)||(l([i.target]),p(i.target.getAnimations({subtree:!0})))}function w(i){!f()||!(i.target instanceof Element)||l([i.target])}const g=new MutationObserver(v);return g.observe(e,{attributes:!0,attributeFilter:["data-window-blurred"]}),e.addEventListener("animationstart",u,!0),e.addEventListener("animationcancel",w,!0),v(),{destroy(){g.disconnect(),m.disconnect(),e.removeEventListener("animationstart",u,!0),e.removeEventListener("animationcancel",w,!0),s()}}}function q(e,t){if(new.target)return L({component:q,...e});P(t,!0);const r=()=>Z(m,"$resolvedLocale$",f),[f,p]=ee();let s=O(t,"children",7);const l=ge(ue,{startSagas:()=>[]},void 0);re(l);const m=le(),v=fe();se(()=>{const n=!me()&&window.location.pathname!=="/dock";let o=document.hasFocus(),d=!1;const a=()=>{document.documentElement.toggleAttribute("data-window-blurred",n&&d&&!o)},c=_=>{o=_,a()},R=()=>c(!1),H=()=>c(!0),z=v.subscribe(_=>{d=_,a()}),M=window.electronAPI,k=ie();let E;a(),n&&(k?E=M?.on?.("window:focus",c):(window.addEventListener("blur",R),window.addEventListener("focus",H)));const J=Ee(document.documentElement),Q=ce(document.getElementById("splash"));document.getElementById("app-drag-region")?.remove();const X=Ae(window),B=window.electronAPI?.on?.(C.APP.HISTORY_NAVIGATE,ye);return()=>{z(),J.destroy(),E?M.offById("window:focus",E):n&&!k&&(window.removeEventListener("blur",R),window.removeEventListener("focus",H)),document.documentElement.removeAttribute("data-window-blurred"),Q(),X(),B&&window.electronAPI.offById(C.APP.HISTORY_NAVIGATE,B)}});var u={get children(){return s()},set children(n){s(n),$()},$set:I,$on:(n,o)=>N(t,n,o)},w=b(),g=h(w);ae(g,r,n=>{var o=b(),d=h(o);D(d,()=>s()??W),y(n,o)}),y(e,w);var i=T(u);return p(),i}const x="/dev-console";function _e(e){return e===x||e.startsWith(x+"/")}const G="/desktop-overlay";function Se(e){return e===G||e.startsWith(`${G}/`)}function K(e,t){if(new.target)return L({component:K,...e});P(t,!0);let r=O(t,"children",7);const f=typeof window<"u"&&(_e(window.location.pathname)||Se(window.location.pathname));var p={get children(){return r()},set children(u){r(u),$()},$set:I,$on:(u,w)=>N(t,u,w)},s=b(),l=h(s);{var m=u=>{var w=b(),g=h(w);D(g,()=>r()??W),y(u,w)},v=u=>{q(u,{get children(){return r()}})};te(l,u=>{f?u(m):u(v,-1)})}return y(e,s),T(p)}var Le=new Set(["$$slots","$$events","$$legacy","children"]);function Oe(e,t){if(new.target)return L({component:Oe,...e});P(t,!0);let r=O(t,"children",7),f=oe(t,Le);var p={get children(){return r()},set children(s){r(s),$()},$set:I,$on:(s,l)=>N(t,s,l)};return K(e,ne(()=>f,{children:(s,l)=>{var m=b(),v=h(m);D(v,()=>r()??W),y(s,m)},$$slots:{default:!0}})),T(p)}export{Oe as component,Me as universal};
@@ -1 +1 @@
1
- import{t as W,a_ as P,by as A,b as D,bo as p,bt as R,br as U}from"../chunks/DVcxpZob.js";import{bs as E,ca as V,aD as e,a7 as X,ay as Y,W as _,bn as N,c9 as h,a5 as a,bA as s,bS as f,bl as $,be as Z,b$ as ee,b_ as k,bO as m,aB as T}from"../chunks/B8o4lNgr.js";import{g as re}from"../chunks/BXeRsIrT.js";import{p as b}from"../chunks/BaCDnbdR.js";import{F as te,cO as ae}from"../chunks/ofkVZzaj.js";import{f as se}from"../chunks/C-KminjT.js";var oe=T('<p class="text-sm text-subtle"> </p>'),le=T('<div class="min-h-screen flex items-center justify-center p-6 bg-background"><div class="w-full max-w-md" role="alert" aria-live="assertive"><div class="bg-card border border-border rounded-xl shadow-lg p-8 space-y-6 text-center"><div class="flex justify-center"><div class="w-14 h-14 rounded-full bg-warning/10 flex items-center justify-center opacity-50"><!></div></div> <div class="space-y-3"><h2 class="text-2xl font-semibold text-foreground"> </h2> <!> <p class="text-base text-subtle leading-relaxed break-words"> </p></div> <div class="flex items-center justify-center gap-3 flex-wrap"><!></div></div></div></div>');function q(l,o){if(new.target)return W({component:q,...l});E(o,!0);let c=h(()=>b.error),r=h(()=>b.status),v=h(()=>e(r)===404&&b.url.pathname!=="/");V(()=>{e(v)?(console.warn("[+error.svelte:root] 404, redirecting to /",{url:b.url.href,status:e(r)}),re("/",{replaceState:!0})):console.error("[+error.svelte:root]",{status:e(r),error:e(c)})});var g={$set:A,$on:(i,n)=>D(o,i,n)},j=X(),G=Y(j);{var H=i=>{var n=le(),F=a(n),S=a(F),x=a(S),z=a(x),I=a(z);te(I,{get icon(){return ae},size:"lg",class:"text-warning"}),s(z),s(x);var w=f(x,2),B=a(w),J=$(B,!0),C=f(B,2);{var K=t=>{var d=oe(),u=$(d,!0);k(y=>m(u,y),[()=>p.error_page_status_label({status:e(r)})]),_(t,d)};P(C,t=>{e(r)&&e(r)!==500&&t(K)})}var L=f(C,2),M=$(L,!0);s(w);var O=f(w,2),Q=a(O);se(Q,{variant:"outline",size:"default",onclick:()=>window.location.reload(),children:(t,d)=>{Z();var u=ee();k(y=>m(u,y),[()=>p.error_page_reload_button()]),_(t,u)},$$slots:{default:!0}}),s(O),s(S),s(F),s(n),k((t,d)=>{m(J,t),m(M,d)},[()=>p.error_page_title(),()=>e(c)?.message||p.error_page_unexpected_fallback()]),_(i,n)};P(G,i=>{e(v)||i(H)})}return _(l,j),N(g)}var ie=new Set(["$$slots","$$events","$$legacy"]);function ne(l,o){if(new.target)return W({component:ne,...l});E(o,!0);let c=U(o,ie);var r={$set:A,$on:(v,g)=>D(o,v,g)};return q(l,R(()=>c)),N(r)}export{ne as component};
1
+ import{t as W,a_ as P,by as A,b as D,bo as p,bt as R,br as U}from"../chunks/DVcxpZob.js";import{bs as E,ca as V,aD as e,a7 as X,ay as Y,W as _,bn as N,c9 as h,a5 as a,bA as s,bS as f,bl as $,be as Z,b$ as ee,b_ as k,bO as m,aB as T}from"../chunks/B8o4lNgr.js";import{g as re}from"../chunks/CLy6KHFt.js";import{p as b}from"../chunks/U5EkHYlB.js";import{F as te,cO as ae}from"../chunks/ofkVZzaj.js";import{f as se}from"../chunks/C-KminjT.js";var oe=T('<p class="text-sm text-subtle"> </p>'),le=T('<div class="min-h-screen flex items-center justify-center p-6 bg-background"><div class="w-full max-w-md" role="alert" aria-live="assertive"><div class="bg-card border border-border rounded-xl shadow-lg p-8 space-y-6 text-center"><div class="flex justify-center"><div class="w-14 h-14 rounded-full bg-warning/10 flex items-center justify-center opacity-50"><!></div></div> <div class="space-y-3"><h2 class="text-2xl font-semibold text-foreground"> </h2> <!> <p class="text-base text-subtle leading-relaxed break-words"> </p></div> <div class="flex items-center justify-center gap-3 flex-wrap"><!></div></div></div></div>');function q(l,o){if(new.target)return W({component:q,...l});E(o,!0);let c=h(()=>b.error),r=h(()=>b.status),v=h(()=>e(r)===404&&b.url.pathname!=="/");V(()=>{e(v)?(console.warn("[+error.svelte:root] 404, redirecting to /",{url:b.url.href,status:e(r)}),re("/",{replaceState:!0})):console.error("[+error.svelte:root]",{status:e(r),error:e(c)})});var g={$set:A,$on:(i,n)=>D(o,i,n)},j=X(),G=Y(j);{var H=i=>{var n=le(),F=a(n),S=a(F),x=a(S),z=a(x),I=a(z);te(I,{get icon(){return ae},size:"lg",class:"text-warning"}),s(z),s(x);var w=f(x,2),B=a(w),J=$(B,!0),C=f(B,2);{var K=t=>{var d=oe(),u=$(d,!0);k(y=>m(u,y),[()=>p.error_page_status_label({status:e(r)})]),_(t,d)};P(C,t=>{e(r)&&e(r)!==500&&t(K)})}var L=f(C,2),M=$(L,!0);s(w);var O=f(w,2),Q=a(O);se(Q,{variant:"outline",size:"default",onclick:()=>window.location.reload(),children:(t,d)=>{Z();var u=ee();k(y=>m(u,y),[()=>p.error_page_reload_button()]),_(t,u)},$$slots:{default:!0}}),s(O),s(S),s(F),s(n),k((t,d)=>{m(J,t),m(M,d)},[()=>p.error_page_title(),()=>e(c)?.message||p.error_page_unexpected_fallback()]),_(i,n)};P(G,i=>{e(v)||i(H)})}return _(l,j),N(g)}var ie=new Set(["$$slots","$$events","$$legacy"]);function ne(l,o){if(new.target)return W({component:ne,...l});E(o,!0);let c=U(o,ie);var r={$set:A,$on:(v,g)=>D(o,v,g)};return q(l,R(()=>c)),N(r)}export{ne as component};