@intent-hq/web 2.310.1 → 2.310.3

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 (252) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/{DiagramPresentation.fimBl1wP.css → DiagramPresentation.Bfi3xHm0.css} +1 -1
  3. package/web/app/immutable/chunks/-xK_vQQs.js +1 -0
  4. package/web/app/immutable/chunks/{CeEeQIAV.js → 2rlMb19F.js} +1 -1
  5. package/web/app/immutable/chunks/{Bhcwd2SW.js → 6Z5k9P1U.js} +4 -4
  6. package/web/app/immutable/chunks/7xAw-BT0.js +213 -0
  7. package/web/app/immutable/chunks/{t3bi-ExW.js → B1s3oEqm.js} +2 -2
  8. package/web/app/immutable/chunks/{phowbgF-.js → B2JLNOy6.js} +1 -1
  9. package/web/app/immutable/chunks/B53WwE3a.js +1 -0
  10. package/web/app/immutable/chunks/{R7gFhaG_.js → B7VncZW5.js} +1 -1
  11. package/web/app/immutable/chunks/{EZw3rvya.js → B7s4-XTz.js} +30 -30
  12. package/web/app/immutable/chunks/{DOHtPCK9.js → BDPXN-l5.js} +1 -1
  13. package/web/app/immutable/chunks/{zXW6V5sa.js → BENBNSN7.js} +1 -1
  14. package/web/app/immutable/chunks/{DevHtnbn.js → BFXzH5IE.js} +1 -1
  15. package/web/app/immutable/chunks/BGcL9rs9.js +217 -0
  16. package/web/app/immutable/chunks/BHnD9zfx.js +99 -0
  17. package/web/app/immutable/chunks/{qMHHnffV.js → BI_SwxaN.js} +1 -1
  18. package/web/app/immutable/chunks/{BV9p4X5I.js → BMMFveB2.js} +6 -6
  19. package/web/app/immutable/chunks/BP6OqM9o.js +1 -0
  20. package/web/app/immutable/chunks/BRvgBsbx.js +291 -0
  21. package/web/app/immutable/chunks/{Cuozo7M1.js → BSel_zEu.js} +1 -1
  22. package/web/app/immutable/chunks/{B4dTn6xv.js → BUlPMLws.js} +1 -1
  23. package/web/app/immutable/chunks/{xMirTl3q.js → BYxB_o2p.js} +2 -2
  24. package/web/app/immutable/chunks/{CsYRAdgB.js → B_mbXOka.js} +1 -1
  25. package/web/app/immutable/chunks/BakMVsPT.js +2 -0
  26. package/web/app/immutable/chunks/{DeopB2f-.js → Bd0N6Q84.js} +3 -3
  27. package/web/app/immutable/chunks/{CHH2PtZ7.js → BfPWAh77.js} +1 -1
  28. package/web/app/immutable/chunks/BfZK-g4H.js +2 -0
  29. package/web/app/immutable/chunks/BhWJ-mUa.js +292 -0
  30. package/web/app/immutable/chunks/{CwH3s3Sg.js → Bhw4MKUW.js} +1 -1
  31. package/web/app/immutable/chunks/{CUvX4uDB.js → BmpVZmDT.js} +3 -3
  32. package/web/app/immutable/chunks/{BNg3GOxL.js → Bn-4GS40.js} +2 -2
  33. package/web/app/immutable/chunks/BpXeqZkK.js +12 -0
  34. package/web/app/immutable/chunks/{D-9LH0ah.js → Bpofk5Ge.js} +1 -1
  35. package/web/app/immutable/chunks/{DjEB6QMF.js → BrV7vQ-C.js} +1 -1
  36. package/web/app/immutable/chunks/ByGoYv9M.js +1 -0
  37. package/web/app/immutable/chunks/C-1nTNwc.js +120 -0
  38. package/web/app/immutable/chunks/{CBHPIqXg.js → C3nOF7W6.js} +1 -1
  39. package/web/app/immutable/chunks/{BIxkRFIj.js → C72YfPmr.js} +2 -2
  40. package/web/app/immutable/chunks/{DMGAuSgb.js → C87YV7yB.js} +4 -4
  41. package/web/app/immutable/chunks/{Coy9jSf1.js → CCDTjxXZ.js} +1 -1
  42. package/web/app/immutable/chunks/CEXJj_TX.js +62 -0
  43. package/web/app/immutable/chunks/CHFvnHJS.js +39 -0
  44. package/web/app/immutable/chunks/{CWyh7Yhz.js → CK1qXB1I.js} +1 -1
  45. package/web/app/immutable/chunks/{CCIGQjYf.js → CLEySo6k.js} +1 -1
  46. package/web/app/immutable/chunks/{DXOCO_oS.js → CNxOtEoC.js} +1 -1
  47. package/web/app/immutable/chunks/{7KTbkf4W.js → CPi1vTiT.js} +2 -2
  48. package/web/app/immutable/chunks/{ejL3HmTG.js → CQI-dvtu.js} +3 -3
  49. package/web/app/immutable/chunks/CSiG9Hvp.js +1 -0
  50. package/web/app/immutable/chunks/{C0DDaBnV.js → CTaTQq2B.js} +1 -1
  51. package/web/app/immutable/chunks/{dtB9lR1B.js → CUMlGGeg.js} +1 -1
  52. package/web/app/immutable/chunks/{fULl8IO9.js → CVyfvlNb.js} +7 -7
  53. package/web/app/immutable/chunks/{DUkegami.js → C_tu278J.js} +1 -1
  54. package/web/app/immutable/chunks/CcUMYVEM.js +41 -0
  55. package/web/app/immutable/chunks/Ccfa6x-j.js +24 -0
  56. package/web/app/immutable/chunks/{BmDskjjc.js → Cd_IIsl2.js} +1 -1
  57. package/web/app/immutable/chunks/CeijcUhC.js +38 -0
  58. package/web/app/immutable/chunks/Ci2_N-bK.js +370 -0
  59. package/web/app/immutable/chunks/CiPifYNB.js +1 -0
  60. package/web/app/immutable/chunks/{D8SVxzqF.js → CjcP6chv.js} +1 -1
  61. package/web/app/immutable/chunks/Cl430GWg.js +344 -0
  62. package/web/app/immutable/chunks/ClKsLSpN.js +27 -0
  63. package/web/app/immutable/chunks/ClebXGIM.js +141 -0
  64. package/web/app/immutable/chunks/{DOVnLHFz.js → CnIb6mve.js} +1 -1
  65. package/web/app/immutable/chunks/{qOCErwrn.js → CrdTEIp7.js} +1 -1
  66. package/web/app/immutable/chunks/{CPvhRhlk.js → Cstq9SM5.js} +11 -11
  67. package/web/app/immutable/chunks/CuzanJ4G.js +1 -0
  68. package/web/app/immutable/chunks/{D81gRUjY.js → D-QdqmeZ.js} +1 -1
  69. package/web/app/immutable/chunks/D0gJOzJU.js +40 -0
  70. package/web/app/immutable/chunks/{CoeuT-m3.js → D2ffSQ9J.js} +1 -1
  71. package/web/app/immutable/chunks/D2ojbL4J.js +98 -0
  72. package/web/app/immutable/chunks/{Bfkn2BGM.js → D3lH_sy-.js} +1 -1
  73. package/web/app/immutable/chunks/{C0Yks_oS.js → D5XrjD_m.js} +1 -1
  74. package/web/app/immutable/chunks/{DzvQOT8_.js → D5gGhPeB.js} +1 -1
  75. package/web/app/immutable/chunks/{DLm51UIm.js → D7ePuUtq.js} +1 -1
  76. package/web/app/immutable/chunks/{B9r0JXjW.js → D9RktmhG.js} +1 -1
  77. package/web/app/immutable/chunks/{Si43_nYW.js → D9zTmP-H.js} +3 -3
  78. package/web/app/immutable/chunks/{DQEBW0YT.js → DAhqFWJw.js} +1 -1
  79. package/web/app/immutable/chunks/{B20hJMKp.js → DAmyup4Q.js} +2 -2
  80. package/web/app/immutable/chunks/{B0X6Qy4e.js → DH-0T9oO.js} +1 -1
  81. package/web/app/immutable/chunks/{D-o9b0Cd.js → DHf042m3.js} +2 -2
  82. package/web/app/immutable/chunks/DICP2Iar.js +169 -0
  83. package/web/app/immutable/chunks/{D04E4MVv.js → DJ4er0zy.js} +4 -4
  84. package/web/app/immutable/chunks/{BtHVXttl.js → DLTK7s08.js} +5 -5
  85. package/web/app/immutable/chunks/{DQulsXJ7.js → DM80xiYc.js} +1 -1
  86. package/web/app/immutable/chunks/{BsP5G0Fo.js → DPWD_Z0m.js} +1 -1
  87. package/web/app/immutable/chunks/{t9id1Dgw.js → DPjuFI2m.js} +1 -1
  88. package/web/app/immutable/chunks/{DhdMM_zt.js → DR30pTuY.js} +14 -14
  89. package/web/app/immutable/chunks/{D_9AVJm5.js → DStbB4cJ.js} +1 -1
  90. package/web/app/immutable/chunks/{C8CCN24q.js → DV_gHrZ4.js} +1 -1
  91. package/web/app/immutable/chunks/{CQe4IdgR.js → DWqMBuHP.js} +1 -1
  92. package/web/app/immutable/chunks/DhDem5lD.js +34 -0
  93. package/web/app/immutable/chunks/{DaEQgqyy.js → Dj7a19mR.js} +1 -1
  94. package/web/app/immutable/chunks/{CnmCWFKQ.js → Dn1Hge9W.js} +2 -2
  95. package/web/app/immutable/chunks/{DxlwMmI8.js → DpbPS--w.js} +1 -1
  96. package/web/app/immutable/chunks/{Drg52kVf.js → DqPGIq9m.js} +1 -1
  97. package/web/app/immutable/chunks/Dr9n9KYD.js +8 -0
  98. package/web/app/immutable/chunks/Dx4xDmS-.js +1 -0
  99. package/web/app/immutable/chunks/{D411lQkp.js → DxBZwGJl.js} +1 -1
  100. package/web/app/immutable/chunks/{CEdLQlJ6.js → EF47gh5F.js} +6 -6
  101. package/web/app/immutable/chunks/FTZaXc8b.js +106 -0
  102. package/web/app/immutable/chunks/NHQiGgbv.js +200 -0
  103. package/web/app/immutable/chunks/{BCm8Gasf.js → OEEtadht.js} +1 -1
  104. package/web/app/immutable/chunks/{DCeW9_0X.js → PR2rc_KV.js} +2 -2
  105. package/web/app/immutable/chunks/{_F3xl3RI.js → Q48HTbqK.js} +1 -1
  106. package/web/app/immutable/chunks/{TQIai6Ne.js → Sd4DhpzB.js} +79 -79
  107. package/web/app/immutable/chunks/{C-Mmob1s.js → WaYTk5P-.js} +1 -1
  108. package/web/app/immutable/chunks/{ByGsJxdn.js → X-Frg4xt.js} +1 -1
  109. package/web/app/immutable/chunks/YDWB9C4j.js +36 -0
  110. package/web/app/immutable/chunks/{BUSwtV99.js → YqBgboHy.js} +1 -1
  111. package/web/app/immutable/chunks/{B_D0NLtg.js → _GDZ01fB.js} +1 -1
  112. package/web/app/immutable/chunks/{C7oH1dbI.js → aloh9OcN.js} +1 -1
  113. package/web/app/immutable/chunks/{BEhoKnQT.js → ap51LBWo.js} +1 -1
  114. package/web/app/immutable/chunks/bBO0iA4_.js +7 -0
  115. package/web/app/immutable/chunks/cMysCMc_.js +24 -0
  116. package/web/app/immutable/chunks/dpdLM1Cx.js +140 -0
  117. package/web/app/immutable/chunks/eHLf0w_s.js +1 -0
  118. package/web/app/immutable/chunks/fyjA8lOg.js +4 -0
  119. package/web/app/immutable/chunks/{CQf-fH5v.js → h6Xb9K7f.js} +1 -1
  120. package/web/app/immutable/chunks/{j0ThtFJc.js → iX-41BqF.js} +1 -1
  121. package/web/app/immutable/chunks/ibC6Wlul.js +3 -0
  122. package/web/app/immutable/chunks/jU5_8m_P.js +84 -0
  123. package/web/app/immutable/chunks/{BKGPkCRs.js → kHJUvxPR.js} +1 -1
  124. package/web/app/immutable/chunks/{BBTS8ZOM.js → lG67Zx5D.js} +3 -3
  125. package/web/app/immutable/chunks/{CgAIOmc3.js → lb9Uy5lM.js} +4 -4
  126. package/web/app/immutable/chunks/{DdAxykhC.js → lh2cjQS1.js} +1 -1
  127. package/web/app/immutable/chunks/{r1_PrlQL.js → lqs_HYEw.js} +1 -1
  128. package/web/app/immutable/chunks/{CnszEr0a.js → oEWQ7BWN.js} +1 -1
  129. package/web/app/immutable/chunks/{BGLkcG6I.js → ry72TFIz.js} +2 -2
  130. package/web/app/immutable/chunks/{BV7dztYI.js → ryFwnMjp.js} +1 -1
  131. package/web/app/immutable/chunks/{CsASRGy9.js → uOEty9O6.js} +5 -5
  132. package/web/app/immutable/chunks/wh3Y68il.js +1 -0
  133. package/web/app/immutable/chunks/{DRMT9vvq.js → xPs_63iv.js} +1 -1
  134. package/web/app/immutable/entry/{app.DlF41taB.js → app.np0VAfbg.js} +2 -2
  135. package/web/app/immutable/entry/start.BGCfjmAX.js +1 -0
  136. package/web/app/immutable/nodes/{0.BLjNhnkb.js → 0.DoZAnEaT.js} +1 -1
  137. package/web/app/immutable/nodes/{1.DaghOy3j.js → 1.BfLNDde5.js} +1 -1
  138. package/web/app/immutable/nodes/{10.CbV_flkh.js → 10.WVRhKQHR.js} +1 -1
  139. package/web/app/immutable/nodes/{14.N_oC1pv5.js → 14.BGrxllXE.js} +1 -1
  140. package/web/app/immutable/nodes/{16.Cn0uYbJe.js → 16.CkZkKSWx.js} +2 -2
  141. package/web/app/immutable/nodes/{2.CMERPJYK.js → 2.COM3w17g.js} +8 -8
  142. package/web/app/immutable/nodes/{3.Dk5w9XeG.js → 3.BhRx3b1m.js} +1 -1
  143. package/web/app/immutable/nodes/{4.CvLiKH0B.js → 4.C02hhSi-.js} +1 -1
  144. package/web/app/immutable/nodes/{5.BL5oLCOi.js → 5.Dgt2hWD3.js} +1 -1
  145. package/web/app/immutable/nodes/{6.DiKzgiKt.js → 6.KyP4WP5g.js} +1 -1
  146. package/web/app/immutable/nodes/{7.CM-hNW3A.js → 7.BxnoAMeX.js} +1 -1
  147. package/web/app/immutable/nodes/{8.BThIGSQR.js → 8.CnlHpTsC.js} +2 -2
  148. package/web/app/immutable/nodes/{9.D70tN3NX.js → 9.CJ1_wepy.js} +18 -18
  149. package/web/app/version.json +1 -1
  150. package/web/index.html +9 -9
  151. package/web/app/immutable/chunks/-SL67XKV.js +0 -1
  152. package/web/app/immutable/chunks/351KaJp_.js +0 -24
  153. package/web/app/immutable/chunks/7Iuyw4Ow.js +0 -106
  154. package/web/app/immutable/chunks/9ySBq1wF.js +0 -36
  155. package/web/app/immutable/chunks/B2safKX4.js +0 -1
  156. package/web/app/immutable/chunks/B8QrskMI.js +0 -139
  157. package/web/app/immutable/chunks/BCO4VeSA.js +0 -1
  158. package/web/app/immutable/chunks/BCaDoF8Y.js +0 -1
  159. package/web/app/immutable/chunks/BEdJCn-8.js +0 -1
  160. package/web/app/immutable/chunks/BGBb6fI-.js +0 -120
  161. package/web/app/immutable/chunks/BGQ3htf5.js +0 -1
  162. package/web/app/immutable/chunks/BKLEAopb.js +0 -7
  163. package/web/app/immutable/chunks/BKSgn5w-.js +0 -1
  164. package/web/app/immutable/chunks/BKY64haD.js +0 -12
  165. package/web/app/immutable/chunks/BOXqfDS_.js +0 -40
  166. package/web/app/immutable/chunks/BP_ooGOd.js +0 -24
  167. package/web/app/immutable/chunks/BQApP15C.js +0 -99
  168. package/web/app/immutable/chunks/BS6cE8e9.js +0 -231
  169. package/web/app/immutable/chunks/BTXk2yGf.js +0 -96
  170. package/web/app/immutable/chunks/BVrOGXf1.js +0 -78
  171. package/web/app/immutable/chunks/BZoKWA-r.js +0 -96
  172. package/web/app/immutable/chunks/BbiXTFqz.js +0 -1
  173. package/web/app/immutable/chunks/BgmKjqUX.js +0 -1
  174. package/web/app/immutable/chunks/Bk7xBWHf.js +0 -34
  175. package/web/app/immutable/chunks/BoiNnj2h.js +0 -1
  176. package/web/app/immutable/chunks/BrVvVCxw.js +0 -1
  177. package/web/app/immutable/chunks/ByM2DIOs.js +0 -1
  178. package/web/app/immutable/chunks/ByzYvvQp.js +0 -70
  179. package/web/app/immutable/chunks/Bz0SnIMO.js +0 -1
  180. package/web/app/immutable/chunks/C1IwSyrV.js +0 -99
  181. package/web/app/immutable/chunks/C9gL5x04.js +0 -39
  182. package/web/app/immutable/chunks/C9nyJoiB.js +0 -41
  183. package/web/app/immutable/chunks/CBV2Z_QZ.js +0 -89
  184. package/web/app/immutable/chunks/CDHds8o_.js +0 -3
  185. package/web/app/immutable/chunks/CHIHAnR-.js +0 -1
  186. package/web/app/immutable/chunks/CHj2oCmD.js +0 -39
  187. package/web/app/immutable/chunks/CIXNMjfT.js +0 -206
  188. package/web/app/immutable/chunks/CKFDW9cI.js +0 -24
  189. package/web/app/immutable/chunks/CKQlE_M1.js +0 -88
  190. package/web/app/immutable/chunks/CSBhPNbN.js +0 -206
  191. package/web/app/immutable/chunks/CSLTsum9.js +0 -38
  192. package/web/app/immutable/chunks/CSbiiZpm.js +0 -354
  193. package/web/app/immutable/chunks/CToDhNW4.js +0 -1
  194. package/web/app/immutable/chunks/CYFK9YEX.js +0 -168
  195. package/web/app/immutable/chunks/CcGF51wP.js +0 -1
  196. package/web/app/immutable/chunks/Cd5vVJw4.js +0 -292
  197. package/web/app/immutable/chunks/CgjSMAIJ.js +0 -120
  198. package/web/app/immutable/chunks/Ck7B90Kr.js +0 -38
  199. package/web/app/immutable/chunks/CkAILno9.js +0 -62
  200. package/web/app/immutable/chunks/CkawHIFZ.js +0 -1
  201. package/web/app/immutable/chunks/ClXr1b-t.js +0 -8
  202. package/web/app/immutable/chunks/CmWBRPmR.js +0 -24
  203. package/web/app/immutable/chunks/Cmo-9vFV.js +0 -1
  204. package/web/app/immutable/chunks/CoFCa7Mb.js +0 -231
  205. package/web/app/immutable/chunks/CrcLvVto.js +0 -84
  206. package/web/app/immutable/chunks/Cs_Q6mos.js +0 -1
  207. package/web/app/immutable/chunks/CsnLwu9F.js +0 -2
  208. package/web/app/immutable/chunks/CuYeKLE8.js +0 -8
  209. package/web/app/immutable/chunks/CvOaoHrI.js +0 -1
  210. package/web/app/immutable/chunks/CvYzv8kf.js +0 -1
  211. package/web/app/immutable/chunks/CxRm1vYn.js +0 -342
  212. package/web/app/immutable/chunks/CyfBUrNA.js +0 -1
  213. package/web/app/immutable/chunks/D1QKDDLH.js +0 -1
  214. package/web/app/immutable/chunks/D61DwhDw.js +0 -3
  215. package/web/app/immutable/chunks/DBAJPVI_.js +0 -1
  216. package/web/app/immutable/chunks/DBt8jmEX.js +0 -40
  217. package/web/app/immutable/chunks/DD-T_Om0.js +0 -178
  218. package/web/app/immutable/chunks/DEOiJZFa.js +0 -168
  219. package/web/app/immutable/chunks/DHW4IXFj.js +0 -36
  220. package/web/app/immutable/chunks/DJ0w8Oax.js +0 -129
  221. package/web/app/immutable/chunks/DJ52BT20.js +0 -1
  222. package/web/app/immutable/chunks/DK1048Bw.js +0 -129
  223. package/web/app/immutable/chunks/DZ0nrC9W.js +0 -162
  224. package/web/app/immutable/chunks/DeRneTJF.js +0 -106
  225. package/web/app/immutable/chunks/Df6EnPla.js +0 -4
  226. package/web/app/immutable/chunks/DfMKUxMU.js +0 -30
  227. package/web/app/immutable/chunks/DkH3yb1j.js +0 -34
  228. package/web/app/immutable/chunks/Doxgswr3.js +0 -4
  229. package/web/app/immutable/chunks/Dt53cexP.js +0 -1
  230. package/web/app/immutable/chunks/Dx6eBL0x.js +0 -1
  231. package/web/app/immutable/chunks/HP7Asd0t.js +0 -2
  232. package/web/app/immutable/chunks/HP8lGamR.js +0 -257
  233. package/web/app/immutable/chunks/HzpfURmp.js +0 -84
  234. package/web/app/immutable/chunks/PJfe_iA1.js +0 -1
  235. package/web/app/immutable/chunks/PXMyYXQv.js +0 -1
  236. package/web/app/immutable/chunks/Qi3HrsAm.js +0 -1
  237. package/web/app/immutable/chunks/S1FanOB0.js +0 -162
  238. package/web/app/immutable/chunks/SuMU9B9i.js +0 -1
  239. package/web/app/immutable/chunks/UaGv-ChR.js +0 -257
  240. package/web/app/immutable/chunks/YqyEOqRv.js +0 -178
  241. package/web/app/immutable/chunks/_MGNV7ZN.js +0 -338
  242. package/web/app/immutable/chunks/_lZu5Dth.js +0 -292
  243. package/web/app/immutable/chunks/gzjZWAx8.js +0 -62
  244. package/web/app/immutable/chunks/hqSEunOk.js +0 -15
  245. package/web/app/immutable/chunks/nGCCQCpO.js +0 -1
  246. package/web/app/immutable/chunks/o-kBqlaj.js +0 -7
  247. package/web/app/immutable/chunks/opO2fBQB.js +0 -1
  248. package/web/app/immutable/chunks/pdFamTTi.js +0 -7
  249. package/web/app/immutable/chunks/rEI8JpP3.js +0 -1
  250. package/web/app/immutable/chunks/s5P9UVzf.js +0 -1
  251. package/web/app/immutable/chunks/sIHUXgeh.js +0 -41
  252. package/web/app/immutable/entry/start.CCtO40vu.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/t3bi-ExW.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/7rNOGHzs.js","/app/immutable/chunks/CQ4a5a4v.js","/app/immutable/chunks/DsNWmyox.js","/app/immutable/chunks/DzMmhJrp.js","/app/immutable/chunks/DmsDslNo.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/Bgegixo2.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/CiENRH6A.js","/app/immutable/chunks/DCaHy20k.js","/app/immutable/chunks/CzrrO9Ap.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DZX-XWnb.js","/app/immutable/chunks/DbAK3Zju.js","/app/immutable/chunks/CRwmdgt6.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DSjRkndX.js","/app/immutable/chunks/Ck-Ax5yG.js","/app/immutable/chunks/CFejQM6t.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/CKEqC8_B.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/CB-g50lR.js","/app/immutable/chunks/CPQdU3ZA.js","/app/immutable/chunks/DNen9YXB.js","/app/immutable/chunks/KQTrHxko.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/C_n9DeKj.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/D-cnPaTJ.js","/app/immutable/assets/pending-agent-deletions.UE5obH5A.css","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/chunks/FY5ry3XL.js","/app/immutable/chunks/DFHyIdsA.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/BaQ9zUUl.js","/app/immutable/chunks/lfJ8pseq.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BCaDoF8Y.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/DUkegami.js","/app/immutable/chunks/BkBdyRjM.js","/app/immutable/chunks/D4jXWSLn.js","/app/immutable/chunks/DCeW9_0X.js","/app/immutable/chunks/C0Yks_oS.js","/app/immutable/chunks/BKY64haD.js","/app/immutable/chunks/BV7dztYI.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/B0X6Qy4e.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
2
- import{bo as v,t as Ht,bq as _,a_ as O,by as jt,b as Wt,br as Rf,bu as Dt,bs as ia,bt as li,b7 as $i,ba as Lf,bl as Nf,bb as Mf,bm as Of,a$ as Df,b9 as Bf,b8 as Ff,b2 as zf,bf as Hf,bg as jf,bk as Wf,be as Uf,bn as qf,b0 as Vf,b4 as Kf,bi as Gf,bh as Jf,b6 as Yf,b5 as Xf,b3 as Zf,bd as Qf,bc as $f,bj as ep,b1 as tp,_ as rp}from"./7rNOGHzs.js";import{bI as np,bj as ms,aG as ap,bs as Ut,aD as e,a5 as I,bS as m,bA as w,W as d,bn as qt,c9 as f,aA as x,a7 as wt,ay as He,be as ar,b$ as Pt,aC as ba,bl as L,b_ as k,bO as y,aB as S,bo as hs,ca as kt,bH as N,bV as _e,br as qr,bk as bs,c0 as Jn,ai as Aa,cd as os,aw as Cn,a as sp,aj as Rr,c7 as op,c6 as el,c5 as Mn,bf as Ds,bz as Uc}from"./B8o4lNgr.js";import{E as Bs,I as ip,x as lp}from"./DCaHy20k.js";import{c as cp,s as se,a as On,l as An,f as En,d as ur,k as mt,I as ys,h as At,i as Tr,o as dp,j as up,g as fp,n as pp}from"./DmsDslNo.js";import{s as pn}from"./CQ4a5a4v.js";import{c as Zr}from"./CiENRH6A.js";import{H as Bo,t as lr,n as gp,i as tl,u as rl}from"./DzMmhJrp.js";import{b as gr}from"./D2g8BuR1.js";import{h as qc,bt as vp,cI as mp,dB as hp,dm as bp,aw as yp,cs as _p,a1 as xp,cO as wp,dl as is,aB as Ys,c1 as kp,H as Sp,c as Ip,$ as nl,cU as Cp,bR as Ep,L as Ap,di as Pp,V as Tp,ds as Rp,ae as Lp,f as Np,t as Mp}from"./KQTrHxko.js";import{c as Op}from"./D-62MVd3.js";import{n as $n,w as Dp,C as Vc,M as Bp,R as Fp}from"./lfJ8pseq.js";import{f as yt,ap as Ua,ai as zp,am as Fo,bc as Hp}from"./Bgegixo2.js";import{am as jp,aa as al,_ as Wp,ay as Up,ab as qp,i as Vp,aQ as Kp,I as Gp,R as Jp,ar as Yp,af as Xp,$ as Zp,b as sl,as as Qp,s as $p,o as eg,aW as tg,n as rg,aY as zo,A as ol,ae as ng,aX as ag,ao as Kc,T as Gc,a6 as sg,a5 as il,L as ll}from"./EZw3rvya.js";import{c$ as og,F as Tt,bh as Ho,bL as ig,ap as lg,aQ as cg,cL as dg,bl as ci,bB as ug,aG as Jc,aL as di,c_ as Fs,ac as jo,cn as fg,cd as pg,ci as ui,cF as Yc,bs as gg,e as vg,b$ as cl,c9 as mg,cl as hg,cW as Xc,bV as dl,b8 as ho,be as rs,aF as bg,aA as Wo,av as Zc,bc as Qc,bC as yg,B as _g,bv as xg,a7 as $c,ch as wg,am as ed,cN as td,cJ as ul,at as rd,aK as fl,a1 as kg,cv as Sg,cU as Ig,bO as nd,bn as Cg,c5 as pl,ao as ad,az as Eg,aa as Ag,a8 as Pg}from"./CFejQM6t.js";import{c as sd}from"./ChTqQfQN.js";import{h as Tg}from"./D-cnPaTJ.js";import{Hq as Nt,bP as Rg,rg as gl,rS as Lg,Id as Ng,Ij as Mg,g as od,Hc as Og,n4 as id,nk as ld,nj as cd,mZ as Xs,pA as fi,x5 as Dg,u9 as Ts,tu as Uo,ub as Bg,mN as dd,Hv as Fg,so as zg,o8 as ud,qF as pi,lu as vl,a6 as ml,qb as Hg,q7 as jg,qc as Wg,q3 as Ug,q9 as qg,t$ as Vg,zD as fd,zH as pd,nl as hl,bi as qo,FX as Kg,H8 as Gg,nf as Jg,vc as Yg,vd as Xg,vb as bl,AE as Gn,cu as gd,ci as Zg,d7 as Qg,de as $g,zN as ev}from"./CRwmdgt6.js";import{bw as tv,bE as rv,i as nv,w as av,bH as sv,a5 as ov,a7 as iv,a9 as lv}from"./CB-g50lR.js";import{m as cv,l as dv,t as Vo,c8 as uv,K as fv,c7 as pv,c2 as gv,aA as yl,c4 as vv,bE as Ko,aK as mv,r as hv,bo as bv,w as yv}from"./DUkegami.js";import{cd as _v,cf as xv,ce as wv,b0 as kv,a_ as Sv,a$ as Iv,a3 as Cv,ak as Is,aj as Ev,az as _l,aH as Av,ai as Pv,C as Tv,i as Rv,E as Rs,cO as Lv,aV as xl,cT as Nv,af as Mv,a7 as Ov,r as Dv,p as Bv,aE as Fv,cW as zv,cF as Hv,cy as jv,cp as Wv,bO as Uv}from"./TQIai6Ne.js";import{s as qv,j as Vv,i as Kv,I as Va,c as wl}from"./DZX-XWnb.js";import"./DbAK3Zju.js";import{k as vd,f as kl,K as Sl,M as Gv,r as Jv,q as Yv,N as md,J as Go,e as ls,a0 as Il,i as Xv}from"./t3bi-ExW.js";import"./CKEqC8_B.js";import{J as gi,P as Zv,s as Qv,k as $v,G as em,o as tm,l as rm,M as nm,H as am,w as ja,a as sm,K as om,n as im,R as lm}from"./DSjRkndX.js";import{t as cs,n as cm,O as dm,M as um,S as ma}from"./Ck-Ax5yG.js";import{C as Jo}from"./BGspgxWf.js";import{aM as fm,aU as pm,ay as gm,aY as vm,aK as mm,aQ as hm,a6 as Ga,a$ as Cl,aG as bm,aN as ym,aT as vi,aO as mi,V as bo,an as _m,W as xm,aW as wm,aF as km,aP as Sm,aS as Im,b2 as Cm,b0 as Em,av as hd,p as Am,n as Pm,aR as Tm,Z as Rm,z as Lm}from"./DhdMM_zt.js";import{s as Yo}from"./_F3xl3RI.js";import{M as Nm}from"./yI5lBaQ8.js";import{u as hi,w as Mm,v as Zs,I as Om,A as El,e as ds,d as ha,J as Al,c as Dm,f as Bm,g as Pl,i as Fm,b as zm,o as bd,j as Hm,O as jm,x as Wm,k as yd,S as Um,N as qm,q as Tl,p as Vm,n as Rl,z as Km,s as Gm}from"./DeopB2f-.js";import{o as Ll,a as Nl,T as yo,b as Jm}from"./BGLkcG6I.js";import{ag as Ym,a6 as Xm,M as Zm,J as Qm,aj as $m}from"./yAjP_kdp.js";import{D as us}from"./DQEBW0YT.js";import"./BAEcHnha.js";import{C as ea}from"./CeEeQIAV.js";import{M as eh}from"./CxRm1vYn.js";import{g as bi}from"./DsNWmyox.js";import{f as Ml}from"./C0Yks_oS.js";import{c as Ls}from"./BEJX9KVN.js";import{handleIntentLink as th}from"./BNg3GOxL.js";import{s as rh,a as nh,f as ah,d as sh,r as oh,h as ih,w as ns,g as lh,W as ch,H as dh,c as uh,M as _d}from"./Bhcwd2SW.js";import{e as fh,q as ph}from"./CPQdU3ZA.js";import{showAssistantContent as gh}from"./B20hJMKp.js";import{o as zs,c as vh,n as mh}from"./B0X6Qy4e.js";import{p as hh}from"./BmDskjjc.js";import{m as bh}from"./DY0zw3Os.js";import{h as Cs}from"./B2TNVk3c.js";import{i as xd}from"./BkBdyRjM.js";import{g as yh,e as _h,f as xh,h as wh}from"./BvFAWM27.js";import{T as _o}from"./Bvonx6Ga.js";import{i as kh,r as Ol}from"./C-Mmob1s.js";import{a as Sh}from"./BCaDoF8Y.js";import{a as Ih}from"./BJzHxIyr.js";import{p as Ch}from"./CoeuT-m3.js";const Eh="intent:inline-visual-draft";function mI(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((l,c)=>Math.max(l,c.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/B1s3oEqm.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/7rNOGHzs.js","/app/immutable/chunks/CQ4a5a4v.js","/app/immutable/chunks/DsNWmyox.js","/app/immutable/chunks/DzMmhJrp.js","/app/immutable/chunks/DmsDslNo.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/Bgegixo2.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/CiENRH6A.js","/app/immutable/chunks/DCaHy20k.js","/app/immutable/chunks/CzrrO9Ap.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/DZX-XWnb.js","/app/immutable/chunks/DbAK3Zju.js","/app/immutable/chunks/CRwmdgt6.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DSjRkndX.js","/app/immutable/chunks/Ck-Ax5yG.js","/app/immutable/chunks/CFejQM6t.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/CKEqC8_B.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/assets/observe-overflow.CJJmE3_P.css","/app/immutable/chunks/CB-g50lR.js","/app/immutable/chunks/CPQdU3ZA.js","/app/immutable/chunks/DNen9YXB.js","/app/immutable/chunks/KQTrHxko.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/C_n9DeKj.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/D-cnPaTJ.js","/app/immutable/assets/pending-agent-deletions.UE5obH5A.css","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/chunks/FY5ry3XL.js","/app/immutable/chunks/DFHyIdsA.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/BaQ9zUUl.js","/app/immutable/chunks/lfJ8pseq.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/eHLf0w_s.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/C_tu278J.js","/app/immutable/chunks/BkBdyRjM.js","/app/immutable/chunks/D4jXWSLn.js","/app/immutable/chunks/PR2rc_KV.js","/app/immutable/chunks/D5XrjD_m.js","/app/immutable/chunks/BpXeqZkK.js","/app/immutable/chunks/ryFwnMjp.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DH-0T9oO.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
2
+ import{bo as v,t as Ht,bq as _,a_ as O,by as jt,b as Wt,br as Rf,bu as Dt,bs as ia,bt as li,b7 as $i,ba as Lf,bl as Nf,bb as Mf,bm as Of,a$ as Df,b9 as Bf,b8 as Ff,b2 as zf,bf as Hf,bg as jf,bk as Wf,be as Uf,bn as qf,b0 as Vf,b4 as Kf,bi as Gf,bh as Jf,b6 as Yf,b5 as Xf,b3 as Zf,bd as Qf,bc as $f,bj as ep,b1 as tp,_ as rp}from"./7rNOGHzs.js";import{bI as np,bj as ms,aG as ap,bs as Ut,aD as e,a5 as I,bS as m,bA as w,W as d,bn as qt,c9 as f,aA as x,a7 as wt,ay as He,be as ar,b$ as Pt,aC as ba,bl as L,b_ as k,bO as y,aB as S,bo as hs,ca as kt,bH as N,bV as _e,br as qr,bk as bs,c0 as Jn,ai as Aa,cd as os,aw as Cn,a as sp,aj as Rr,c7 as op,c6 as el,c5 as Mn,bf as Ds,bz as Uc}from"./B8o4lNgr.js";import{E as Bs,I as ip,x as lp}from"./DCaHy20k.js";import{c as cp,s as se,a as On,l as An,f as En,d as ur,k as mt,I as ys,h as At,i as Tr,o as dp,j as up,g as fp,n as pp}from"./DmsDslNo.js";import{s as pn}from"./CQ4a5a4v.js";import{c as Zr}from"./CiENRH6A.js";import{H as Bo,t as lr,n as gp,i as tl,u as rl}from"./DzMmhJrp.js";import{b as gr}from"./D2g8BuR1.js";import{h as qc,bt as vp,cI as mp,dB as hp,dm as bp,aw as yp,cs as _p,a1 as xp,cO as wp,dl as is,aB as Ys,c1 as kp,H as Sp,c as Ip,$ as nl,cU as Cp,bR as Ep,L as Ap,di as Pp,V as Tp,ds as Rp,ae as Lp,f as Np,t as Mp}from"./KQTrHxko.js";import{c as Op}from"./D-62MVd3.js";import{n as $n,w as Dp,C as Vc,M as Bp,R as Fp}from"./lfJ8pseq.js";import{f as yt,ap as Ua,ai as zp,am as Fo,bc as Hp}from"./Bgegixo2.js";import{am as jp,aa as al,_ as Wp,ay as Up,ab as qp,i as Vp,aQ as Kp,I as Gp,R as Jp,ar as Yp,af as Xp,$ as Zp,b as sl,as as Qp,s as $p,o as eg,aW as tg,n as rg,aY as zo,A as ol,ae as ng,aX as ag,ao as Kc,T as Gc,a6 as sg,a5 as il,L as ll}from"./B7s4-XTz.js";import{c$ as og,F as Tt,bh as Ho,bL as ig,ap as lg,aQ as cg,cL as dg,bl as ci,bB as ug,aG as Jc,aL as di,c_ as Fs,ac as jo,cn as fg,cd as pg,ci as ui,cF as Yc,bs as gg,e as vg,b$ as cl,c9 as mg,cl as hg,cW as Xc,bV as dl,b8 as ho,be as rs,aF as bg,aA as Wo,av as Zc,bc as Qc,bC as yg,B as _g,bv as xg,a7 as $c,ch as wg,am as ed,cN as td,cJ as ul,at as rd,aK as fl,a1 as kg,cv as Sg,cU as Ig,bO as nd,bn as Cg,c5 as pl,ao as ad,az as Eg,aa as Ag,a8 as Pg}from"./CFejQM6t.js";import{c as sd}from"./ChTqQfQN.js";import{h as Tg}from"./D-cnPaTJ.js";import{Hq as Nt,bP as Rg,rg as gl,rS as Lg,Id as Ng,Ij as Mg,g as od,Hc as Og,n4 as id,nk as ld,nj as cd,mZ as Xs,pA as fi,x5 as Dg,u9 as Ts,tu as Uo,ub as Bg,mN as dd,Hv as Fg,so as zg,o8 as ud,qF as pi,lu as vl,a6 as ml,qb as Hg,q7 as jg,qc as Wg,q3 as Ug,q9 as qg,t$ as Vg,zD as fd,zH as pd,nl as hl,bi as qo,FX as Kg,H8 as Gg,nf as Jg,vc as Yg,vd as Xg,vb as bl,AE as Gn,cu as gd,ci as Zg,d7 as Qg,de as $g,zN as ev}from"./CRwmdgt6.js";import{bw as tv,bE as rv,i as nv,w as av,bH as sv,a5 as ov,a7 as iv,a9 as lv}from"./CB-g50lR.js";import{m as cv,l as dv,t as Vo,c8 as uv,K as fv,c7 as pv,c2 as gv,aA as yl,c4 as vv,bE as Ko,aK as mv,r as hv,bo as bv,w as yv}from"./C_tu278J.js";import{ce as _v,cg as xv,cf as wv,b1 as kv,a$ as Sv,b0 as Iv,a3 as Cv,ak as Is,aj as Ev,aA as _l,aI as Av,ai as Pv,C as Tv,i as Rv,E as Rs,cP as Lv,aW as xl,cU as Nv,af as Mv,a7 as Ov,r as Dv,p as Bv,aF as Fv,cX as zv,cG as Hv,cz as jv,cq as Wv,bP as Uv}from"./Sd4DhpzB.js";import{s as qv,j as Vv,i as Kv,I as Va,c as wl}from"./DZX-XWnb.js";import"./DbAK3Zju.js";import{k as vd,f as kl,K as Sl,M as Gv,r as Jv,q as Yv,N as md,J as Go,e as ls,a0 as Il,i as Xv}from"./B1s3oEqm.js";import"./CKEqC8_B.js";import{J as gi,P as Zv,s as Qv,k as $v,G as em,o as tm,l as rm,M as nm,H as am,w as ja,a as sm,K as om,n as im,R as lm}from"./DSjRkndX.js";import{t as cs,n as cm,O as dm,M as um,S as ma}from"./Ck-Ax5yG.js";import{C as Jo}from"./BGspgxWf.js";import{aM as fm,aU as pm,ay as gm,aY as vm,aK as mm,aQ as hm,a6 as Ga,a$ as Cl,aG as bm,aN as ym,aT as vi,aO as mi,V as bo,an as _m,W as xm,aW as wm,aF as km,aP as Sm,aS as Im,b2 as Cm,b0 as Em,av as hd,p as Am,n as Pm,aR as Tm,Z as Rm,z as Lm}from"./DR30pTuY.js";import{s as Yo}from"./Q48HTbqK.js";import{M as Nm}from"./yI5lBaQ8.js";import{u as hi,w as Mm,v as Zs,I as Om,A as El,e as ds,d as ha,J as Al,c as Dm,f as Bm,g as Pl,i as Fm,b as zm,o as bd,j as Hm,O as jm,x as Wm,k as yd,S as Um,N as qm,q as Tl,p as Vm,n as Rl,z as Km,s as Gm}from"./Bd0N6Q84.js";import{o as Ll,a as Nl,T as yo,b as Jm}from"./ry72TFIz.js";import{ag as Ym,a6 as Xm,M as Zm,J as Qm,aj as $m}from"./yAjP_kdp.js";import{D as us}from"./DAhqFWJw.js";import"./BAEcHnha.js";import{C as ea}from"./2rlMb19F.js";import{M as eh}from"./Cl430GWg.js";import{g as bi}from"./DsNWmyox.js";import{f as Ml}from"./D5XrjD_m.js";import{c as Ls}from"./BEJX9KVN.js";import{handleIntentLink as th}from"./Bn-4GS40.js";import{s as rh,a as nh,f as ah,d as sh,r as oh,h as ih,w as ns,g as lh,W as ch,H as dh,c as uh,M as _d}from"./6Z5k9P1U.js";import{e as fh,q as ph}from"./CPQdU3ZA.js";import{showAssistantContent as gh}from"./DAmyup4Q.js";import{o as zs,c as vh,n as mh}from"./DH-0T9oO.js";import{p as hh}from"./Cd_IIsl2.js";import{m as bh}from"./DY0zw3Os.js";import{h as Cs}from"./B2TNVk3c.js";import{i as xd}from"./BkBdyRjM.js";import{g as yh,e as _h,f as xh,h as wh}from"./BvFAWM27.js";import{T as _o}from"./Bvonx6Ga.js";import{i as kh,r as Ol}from"./WaYTk5P-.js";import{a as Sh}from"./eHLf0w_s.js";import{a as Ih}from"./BJzHxIyr.js";import{p as Ch}from"./D2ffSQ9J.js";const Eh="intent:inline-visual-draft";function mI(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((l,c)=>Math.max(l,c.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
3
3
 
4
4
  `:""}${n}
5
5
 
@@ -260,7 +260,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
260
260
  `,z1=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],No=96,Sc=2e4,H1=480,Pu=512,j1=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function W1(r,t,n,a,s,o){const l=new MessageChannel,c=MessagePort.prototype.postMessage.bind(l.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[l.port2]);const u=(C,z={})=>{window.parent.postMessage({channel:r,type:C,...z},"*")};let i=s?.state??null,p=null,g=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(C){try{if(!o(C))return!1;const z=JSON.parse(JSON.stringify(C));return i=z.state,p=z,g||(g=!0,requestAnimationFrame(()=>{g=!1,p&&u("snapshot",{snapshot:p}),p=null})),!0}catch{return!1}}})});let R=!1,b=-1,h=innerHeight,A=Number.NaN,P=0,F=0;const B=()=>{if(R=!1,!document.body)return;let C=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const z=innerHeight,K=C-z;if(z>h+1&&K>1&&Math.abs(K-A)<=1?P+=1:(z!==h||K<=1)&&(P=0),h=z,A=K,!F&&P>=3){F=Math.max(a,z);const Y="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(Y),u("layout",{message:Y})}F&&(C=Math.min(C,F)),C!==b&&(b=C,u("resize",{height:C}))},M=()=>{R||(R=!0,requestAnimationFrame(B))},D=C=>{if(!C||typeof C.dark!="boolean"||!C.variables)return;const z=document.documentElement;z.classList.toggle("dark",C.dark),z.style.colorScheme=C.dark?"dark":"light";const K=C.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof K=="string"&&K.length<512&&z.style.setProperty("--inline-html-root-font-size",K);for(const Y of Object.keys(t.variables)){if(Y==="--inline-html-root-font-size")continue;const oe=C.variables[Y];typeof oe=="string"&&oe.length<512&&z.style.setProperty(Y,oe)}M()};window.addEventListener("message",C=>{C.source!==window.parent||!C.data||C.data.channel!==r||C.data.type==="theme"&&D(C.data.theme)});const H=C=>{if(C.defaultPrevented||!C.isTrusted||C.ctrlKey||C.metaKey||C.shiftKey||!C.deltaY||Math.abs(C.deltaX)>Math.abs(C.deltaY))return;const z=oe=>{const Se=getComputedStyle(oe);if(oe!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(Se.overflowY)||/^(hidden|clip)$/.test(Se.overflowY))return!1;const ce=oe.scrollHeight-oe.clientHeight;return ce>1&&(C.deltaY<0?oe.scrollTop>1:oe.scrollTop<ce-1)};if(C.composedPath().some(oe=>oe instanceof Element&&z(oe))||document.scrollingElement&&z(document.scrollingElement))return;const K=C.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:C.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,Y=Math.max(-n,Math.min(n,C.deltaY*K));Number.isFinite(Y)&&(C.preventDefault(),c({deltaY:Y}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",H),window.addEventListener("wheel",H,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",C=>{C.message&&u("error",{message:C.message.slice(0,300)})}),window.addEventListener("unhandledrejection",C=>{const z=C.reason;u("error",{message:String(z instanceof Error?z.message:z).slice(0,300)})}),window.addEventListener("click",C=>{const z=C.target instanceof Element?C.target.closest("a, area"):null;if(!z)return;(z.getAttribute("href")??z.getAttribute("xlink:href"))?.startsWith("#")||C.preventDefault()},!0),window.addEventListener("submit",C=>C.preventDefault(),!0),D(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(M).observe(document.body),new MutationObserver(M).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",M),document.addEventListener("load",M,!0),document.fonts.ready.then(M),u("ready"),M()},{once:!0})}function U1(r,t,n,a,s){const o=document.createElement("iframe");o.setAttribute("sandbox","allow-scripts"),o.setAttribute("referrerpolicy","no-referrer"),o.title=n,o.style.cssText="display:block;width:100%;height:100%;border:0;";let l;const c=u=>{const i=u.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",u=>{const i=u.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(u.source===window.parent&&i.type==="theme"){o.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(u.source!==o.contentWindow||u.origin!=="null")){if(i.type==="scroll-port"&&!l&&u.ports.length===1){l=u.ports[0],l.onmessage=c;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&s(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{o.srcdoc=t,document.body.append(o)},{once:!0})}function q1(r,t,n,a,s,o,l,c){const u=document.implementation.createHTMLDocument(""),i=u.createElement("template");i.innerHTML=n,u.body.append(i.content);const p=Y=>{Y.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(oe=>oe.remove()),Y.querySelectorAll("template").forEach(oe=>p(oe.content)),Y.querySelectorAll("a, area").forEach(oe=>{for(const Se of["href","xlink:href"])oe.getAttribute(Se)?.startsWith("#")||oe.removeAttribute(Se);oe.removeAttribute("target"),oe.removeAttribute("ping"),oe.removeAttribute("download")})};p(u);const g=Y=>JSON.stringify(Y).replace(/</g,"\\u003c"),R=u.createElement("meta");R.httpEquiv="Content-Security-Policy",R.content=r.csp;const b=u.createElement("meta");b.setAttribute("charset","utf-8");const h=u.createElement("style"),A=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(c)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
261
261
  font-display: swap; src: url('${c}') format('woff2'); }`:"";h.textContent=`${A}${r.styles}`;const P=u.createElement("script"),F=g([a,s,r.maxScrollDelta,r.lockHeight,t(l)?l:null]);P.textContent=`(${r.bridge})(...${F}, (${r.validate}));`,u.head.prepend(R,b,h,P);const B=`<!doctype html>${u.documentElement.outerHTML}`,M=document.implementation.createHTMLDocument(""),D=M.createElement("meta");D.httpEquiv="Content-Security-Policy",D.content=r.csp.replace("frame-src 'none'","frame-src about:");const H=M.createElement("meta");H.setAttribute("charset","utf-8");const C=M.createElement("style");C.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const z=M.createElement("script"),K=g([a,B,o,r.maxScrollDelta]);return z.textContent=`(${r.shell})(...${K}, (${r.validate}));`,M.head.prepend(D,H,C,z),`<!doctype html>${M.documentElement.outerHTML}`}const V1=()=>({csp:j1,styles:F1,maxScrollDelta:Pu,lockHeight:H1,bridge:W1.toString(),shell:U1.toString(),validate:pi.toString()});function K1(r,t,n,a,s=null,o=""){return q1(V1(),pi,r,t,n,a,s,o)}function Ic(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(z1.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function G1(r,t,n,a,s=null){return K1(r,t,n,a,s,B1)}var J1=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),Y1=S('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),X1=S('<p class="sr-only" role="status"> </p>'),Z1=S('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),Q1=S('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),$1=S('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),e0=S('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),t0=S('<span class="type-caption ml-auto text-muted-foreground" role="status"> </span>'),r0=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),n0=S('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),a0=S('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),s0=S('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),o0=S('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),i0=S('<div class="flex flex-wrap items-center gap-1 px-4 py-2" data-inline-visual-actions=""><!> <!> <!> <!> <!></div> <!> <!>',1),l0=S('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><div class="flex min-w-0 items-center justify-end gap-1 p-1"><!> <!></div> <!> <!> <div class="relative min-w-0"><!> <!></div> <!></div>');function Tu(r,t){if(new.target)return Ht({component:Tu,...r});Ut(t,!0);const n=720;let a=_(t,"source",7),s=_(t,"isStreaming",7,!1),o=_(t,"isComplete",7,!0),l=_(t,"record",7),c=_(t,"storageStatus",7,"ready"),u=_(t,"onRecordChange",7),i=_(t,"onUseConfiguration",7),p=_(t,"onExport",7),g=_(t,"onRetry",7),R=_(t,"storageError",7),b=_(t,"exportStatus",7),h=_(t,"exportPath",7),A=_(t,"exportError",7),P,F=_e(void 0),B=_e(!1),M=_e(!1),D=_e(0),H=_e(""),C=_e(""),z=_e(!1),K=_e(""),Y=_e(qr(No)),oe=_e(n),Se=_e(""),ce=_e(vl()),ne=_e(void 0),ge,Oe=_e(void 0),V=_e(!1);const fe=f(()=>l()??e(ce)),de=f(()=>c()!=="loading"&&(c()!=="error"||!!e(fe).current)),Te=f(()=>!s()&&o()&&!!a().trim()&&e(de)),Ne=f(()=>Math.min(Sc,Math.max(No,e(Y)))),we=f(()=>s()||c()==="loading"?"loading":o()?a().trim()?e(K)?"error":e(z)?"ready":"loading":"empty":"incomplete"),Qe=f(()=>s()||c()==="loading"||e(Te)&&!e(z)&&!e(K));function qe(Q){const Ce={...Q,current:e(ne)??Q.current};N(ce,Ce),u()?.(Ce)}function et(){const Q=e(ne);!Q||e(fe).scenarios.length>=ml||(qe({...e(fe),scenarios:[...e(fe).scenarios,{id:crypto.randomUUID(),name:Wf({number:rl(e(fe).scenarios.length+1)}),snapshot:structuredClone(Q)}]}),N(V,!0))}function $(Q,Ce){const $e=Ce.trim().slice(0,120);$e&&qe({...e(fe),scenarios:e(fe).scenarios.map(tt=>tt.id===Q?{...tt,name:$e}:tt)})}function Z(Q){const Ce=structuredClone(Q);N(ne,Ce),N(Oe,Ce),qe({...e(fe),current:Ce}),N(D,e(D)+1)}function Ve(Q){return typeof Q=="number"?rl(Q):typeof Q=="string"?Q:JSON.stringify(Q)}function J(){!e(F)?.contentWindow||!e(C)||e(F).contentWindow.postMessage({channel:e(C),type:"theme",theme:Ic(P)},"*")}function G(Q){let Ce=P.parentElement;for(;Ce;){const $e=getComputedStyle(Ce),tt=Ce.scrollHeight-Ce.clientHeight;if(/^(auto|scroll|overlay)$/.test($e.overflowY)&&tt>1){if(Q<0?Ce.scrollTop>0:Ce.scrollTop<tt){Ce.dispatchEvent(new WheelEvent("wheel",{deltaY:Q,bubbles:!0})),Ce.scrollTop+=Q;return}if(/^(contain|none)$/.test($e.overscrollBehaviorY))return}Ce=Ce.parentElement}window.scrollBy({top:Q,behavior:"instant"})}kt(()=>{if(!e(B))return;const Q=a(),Ce=e(Te);e(D),Mn(()=>{ge!==Q&&(N(ce,vl()),N(ne,void 0),N(V,!1),N(Oe,void 0),ge=Q),N(z,!1),N(K,""),N(Se,""),N(Y,No,!0),N(C,crypto.randomUUID(),!0),N(H,Ce?G1(Q,e(C),Ic(P),$i(),e(Oe)??e(ne)??e(fe).current):"",!0),N(Oe,void 0)})}),bs(()=>{N(B,!0);const Q=ft=>{if(ft.source!==e(F)?.contentWindow||ft.origin!=="null")return;const Be=ft.data;if(!(!Be||typeof Be!="object"||Be.channel!==e(C)))if(Be.type==="resize"&&typeof Be.height=="number"&&Number.isFinite(Be.height)&&Be.height>=0)N(Y,Math.min(Sc,Math.ceil(Be.height)),!0);else if(Be.type==="ready")N(z,!0),J();else if(Be.type==="error"&&typeof Be.message=="string")N(K,Be.message.slice(0,300),!0);else if(Be.type==="layout"&&typeof Be.message=="string")N(Se,Be.message.slice(0,300),!0);else if(Be.type==="snapshot"&&e(Te)&&pi(Be.snapshot)){const ht=Be.snapshot;N(ne,ht),qe({...e(fe),current:ht})}else Be.type==="wheel"&&e(z)&&e(Te)&&!e(M)&&!e(Qe)&&typeof Be.deltaY=="number"&&Number.isFinite(Be.deltaY)&&Be.deltaY!==0&&Math.abs(Be.deltaY)<=Pu&&G(Be.deltaY)},Ce=()=>{N(oe,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},$e=new MutationObserver(J);$e.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const tt=window.matchMedia("(prefers-color-scheme: dark)");return tt.addEventListener("change",J),window.addEventListener("message",Q),window.addEventListener("resize",Ce),Ce(),()=>{$e.disconnect(),tt.removeEventListener("change",J),window.removeEventListener("message",Q),window.removeEventListener("resize",Ce)}});var q={get source(){return a()},set source(Q){a(Q),x()},get isStreaming(){return s()},set isStreaming(Q=!1){s(Q),x()},get isComplete(){return o()},set isComplete(Q=!0){o(Q),x()},get record(){return l()},set record(Q){l(Q),x()},get storageStatus(){return c()},set storageStatus(Q="ready"){c(Q),x()},get onRecordChange(){return u()},set onRecordChange(Q){u(Q),x()},get onUseConfiguration(){return i()},set onUseConfiguration(Q){i(Q),x()},get onExport(){return p()},set onExport(Q){p(Q),x()},get onRetry(){return g()},set onRetry(Q){g(Q),x()},get storageError(){return R()},set storageError(Q){R(Q),x()},get exportStatus(){return b()},set exportStatus(Q){b(Q),x()},get exportPath(){return h()},set exportPath(Q){h(Q),x()},get exportError(){return A()},set exportError(Q){A(Q),x()},$set:jt,$on:(Q,Ce)=>Wt(t,Q,Ce)},ae=l0(),he=I(ae),ee=I(he);yt(ee,{variant:"ghost",size:"sm",get active(){return e(M)},get"aria-pressed"(){return e(M)},onclick:()=>{N(M,!e(M))},children:(Q,Ce)=>{ar();var $e=Pt();k(tt=>y($e,tt),[()=>e(M)?Lf():Nf()]),d(Q,$e)},$$slots:{default:!0}});var ue=m(ee,2);{let Q=f(()=>!e(Te));yt(ue,{variant:"ghost",size:"sm",get disabled(){return e(Q)},onclick:()=>{N(D,e(D)+1)},children:(Ce,$e)=>{ar();var tt=Pt();k(ft=>y(tt,ft),[()=>Mf()]),d(Ce,tt)},$$slots:{default:!0}})}w(he);var Pe=m(he,2);{var We=Q=>{var Ce=Y1(),$e=He(Ce),tt=I($e),ft=L(tt,!0),Be=m(tt,2);{var ht=vt=>{yt(vt,{variant:"ghost",size:"sm",get onclick(){return g()},children:(Ct,Rt)=>{ar();var Zt=Pt();k(_t=>y(Zt,_t),[()=>Uf()]),d(Ct,Zt)},$$slots:{default:!0}})};O(Be,vt=>{g()&&vt(ht)})}w($e);var lt=m($e,2);{var gt=vt=>{var Ct=J1(),Rt=L(Ct,!0);k(()=>y(Rt,R())),d(vt,Ct)};O(lt,vt=>{R()&&vt(gt)})}k(vt=>y(ft,vt),[()=>Of()]),d(Q,Ce)};O(Pe,Q=>{c()==="error"&&Q(We)})}var at=m(Pe,2);{var me=Q=>{var Ce=X1(),$e=L(Ce,!0);k(tt=>y($e,tt),[()=>s()?Df():Bf()]),d(Q,Ce)},Ee=Q=>{var Ce=Z1(),$e=L(Ce,!0);k(tt=>y($e,tt),[()=>o()?zf():Ff()]),d(Q,Ce)},U=Q=>{var Ce=Q1(),$e=I(Ce),tt=L($e,!0),ft=m($e,2),Be=L(ft,!0);w(Ce),k(ht=>{y(tt,ht),y(Be,e(K))},[()=>Hf()]),d(Q,Ce)};O(at,Q=>{e(Qe)?Q(me):e(Te)?e(K)&&Q(U,2):Q(Ee,1)})}var ye=m(at,2),pe=I(ye);{var T=Q=>{var Ce=$1();let $e,tt;gr(Ce,ft=>N(F,ft),()=>e(F)),k(ft=>{se(Ce,"title",ft),se(Ce,"srcdoc",e(H)),$e=mt(Ce,1,"block w-full border-0 svelte-1kkow1d",null,$e,{"preview-hidden":e(M)||e(Qe)}),se(Ce,"aria-hidden",e(M)||e(Qe)),tt=An(Ce,"",tt,{height:`${e(Ne)}px`})},[()=>$i()]),d(Q,Ce)};O(pe,Q=>{e(Te)&&e(H)&&Q(T)})}var j=m(pe,2);{var xe=Q=>{ea(Q,{get code(){return a()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(oe)}})},Ze=Q=>{var Ce=e0(),$e=I(Ce),tt=I($e);ja(tt,{class:"h-4 w-32 max-w-1/2"});var ft=m(tt,2);ja(ft,{class:"h-3 w-2/3"}),w($e);var Be=m($e,2);ja(Be,{class:"aspect-video max-h-60 w-full rounded-lg"});var ht=m(Be,2),lt=I(ht);ja(lt,{class:"h-3 w-16"});var gt=m(lt,2);ja(gt,{class:"h-2 min-w-0 flex-1"});var vt=m(gt,2);ja(vt,{class:"h-3 w-10"}),w(ht),w(Ce),d(Q,Ce)};O(j,Q=>{e(M)?Q(xe):e(Qe)&&Q(Ze,1)})}w(ye);var Re=m(ye,2);{var je=Q=>{var Ce=i0(),$e=He(Ce),tt=I($e);{var ft=Et=>{{let Jt=f(()=>!e(z)||!!e(K));yt(Et,{size:"sm",get disabled(){return e(Jt)},onclick:()=>e(ne)&&i()(e(ne)),children:(Mt,ve)=>{ar();var te=Pt();k(Ue=>y(te,Ue),[()=>qf()]),d(Mt,te)},$$slots:{default:!0}})}};O(tt,Et=>{i()&&Et(ft)})}var Be=m(tt,2);{let Et=f(()=>!e(z)||!!e(K)||e(fe).scenarios.length>=ml);yt(Be,{variant:"ghost",size:"sm",get disabled(){return e(Et)},onclick:et,children:(Jt,Mt)=>{ar();var ve=Pt();k(te=>y(ve,te),[()=>jf()]),d(Jt,ve)},$$slots:{default:!0}})}var ht=m(Be,2);{var lt=Et=>{yt(Et,{variant:"ghost",size:"sm",get active(){return e(V)},get"aria-expanded"(){return e(V)},onclick:()=>N(V,!e(V)),children:(Jt,Mt)=>{ar();var ve=Pt();k(te=>y(ve,te),[()=>Vf()]),d(Jt,ve)},$$slots:{default:!0}})};O(ht,Et=>{e(fe).scenarios.length&&Et(lt)})}var gt=m(ht,2);{var vt=Et=>{{let Jt=f(()=>!e(z)||b()==="saving");yt(Et,{variant:"ghost",size:"sm",get disabled(){return e(Jt)},onclick:()=>p()({...e(fe),current:e(ne)??null}),children:(Mt,ve)=>{ar();var te=Pt();k(Ue=>y(te,Ue),[()=>Kf()]),d(Mt,te)},$$slots:{default:!0}})}};O(gt,Et=>{p()&&Et(vt)})}var Ct=m(gt,2);{var Rt=Et=>{var Jt=t0(),Mt=L(Jt,!0);k(ve=>y(Mt,ve),[()=>c()==="saving"?Gf():c()==="ready"?Jf():""]),d(Et,Jt)};O(Ct,Et=>{u()&&Et(Rt)})}w($e);var Zt=m($e,2);{var _t=Et=>{var Jt=r0(),Mt=I(Jt),ve=m(Mt);{var te=Ue=>{var nt=Pt();k(()=>y(nt,A())),d(Ue,nt)};O(ve,Ue=>{b()==="error"&&A()&&Ue(te)})}w(Jt),k(Ue=>y(Mt,`${Ue??""} `),[()=>b()==="saving"?Yf():b()==="saved"?Xf({path:h()??""}):Zf()]),d(Et,Jt)};O(Zt,Et=>{b()&&Et(_t)})}var Vt=m(Zt,2);{var er=Et=>{var Jt=o0(),Mt=I(Jt),ve=I(Mt),te=I(ve),Ue=I(te),nt=L(Ue,!0),dt=m(Ue),ze=L(dt,!0),X=m(dt);At(X,17,()=>e(fe).scenarios,le=>le.id,(le,ke)=>{var Ae=n0(),De=I(Ae);{let Ie=f(()=>ep());Va(De,{get value(){return e(ke).name},get"aria-label"(){return e(Ie)},maxlength:120,onblur:Ye=>{Ye.currentTarget.value.trim()||(Ye.currentTarget.value=e(ke).name),$(e(ke).id,Ye.currentTarget.value)},onkeydown:Ye=>{Ye.key==="Enter"&&Ye.currentTarget.blur(),Ye.key==="Escape"&&(Ye.currentTarget.value=e(ke).name,Ye.currentTarget.blur())}})}var Fe=m(De,2),Je=I(Fe);yt(Je,{variant:"ghost",size:"sm",onclick:()=>Z(e(ke).snapshot),children:(Ie,Ye)=>{ar();var Ge=Pt();k(rt=>y(Ge,rt),[()=>Qf()]),d(Ie,Ge)},$$slots:{default:!0}});var Ke=m(Je,2);yt(Ke,{variant:"ghost",size:"sm",onclick:()=>qe({...e(fe),scenarios:e(fe).scenarios.filter(Ie=>Ie.id!==e(ke).id)}),children:(Ie,Ye)=>{ar();var Ge=Pt();k(rt=>y(Ge,rt),[()=>$f()]),d(Ie,Ge)},$$slots:{default:!0}}),w(Fe),w(Ae),d(le,Ae)}),w(te),w(ve);var ie=m(ve);At(ie,20,()=>["inputs","results"],Tr,(le,ke)=>{const Ae=f(()=>ke),De=f(()=>Array.from(new Set([...Object.keys(e(ne)[e(Ae)]),...e(fe).scenarios.flatMap(Ke=>Object.keys(Ke.snapshot[e(Ae)]))])));var Fe=wt(),Je=He(Fe);At(Je,16,()=>e(De),Ke=>Ke,(Ke,Ie)=>{var Ye=s0(),Ge=I(Ye),rt=L(Ge,!0),ot=m(Ge);At(ot,17,()=>[e(ne),...e(fe).scenarios.map(it=>it.snapshot)],Tr,(it,ut)=>{var St=a0(),bt=L(St,!0);k(Lt=>y(bt,Lt),[()=>Object.hasOwn(e(ut)[e(Ae)],Ie)?Ve(e(ut)[e(Ae)][Ie]):"—"]),d(it,St)}),w(Ye),k(()=>y(rt,Ie)),d(Ke,Ye)}),d(le,Fe)}),w(ie),w(Mt),w(Jt),k(le=>{y(nt,e(ne).title),y(ze,le)},[()=>tp()]),d(Et,Jt)};O(Vt,Et=>{e(V)&&e(fe).scenarios.length&&Et(er)})}d(Q,Ce)};O(Re,Q=>{e(ne)&&e(Te)&&Q(je)})}return w(ae),gr(ae,Q=>P=Q,()=>P),k(()=>{se(ae,"data-inline-html-status",e(we)),se(ae,"data-inline-html-layout",e(Se)?"viewport-locked":void 0),se(ae,"aria-busy",e(Qe))}),d(r,ae),qt(q)}var c0=S('<div class="w-full min-w-0"><!></div>');function d0(r,t){if(new.target)return Ht({component:d0,...r});Ut(t,!0);const n=()=>Dt(e(b),"$agent$",s),a=()=>Dt(e(F),"$entry$",s),[s,o]=ia();let l=_(t,"block",7),c=_(t,"role",7),u=_(t,"workspaceId",7),i=_(t,"agentId",7),p=_(t,"messageId",7),g=_(t,"contentBlockKey",7,""),R=_e(void 0);const b=f(()=>Ys(i()??"")),h=f(()=>c()==="assistant"&&u()&&i()&&p()&&l().metadata?.fenceClosed&&!l().metadata?.isStreaming&&n()&&!ud(n())?{workspaceId:u(),agentId:i(),messageId:p(),blockKey:JSON.stringify([g(),l().metadata?.fenceStart??0]),source:l().content}:void 0),A=f(()=>!!(u()&&i()&&p()&&l().metadata?.fenceClosed&&!n())),P=f(()=>e(h)?qg(e(h)):""),F=f(()=>mm(e(P)));kt(()=>{e(h)&&Nt.dispatch(Hg(e(h)))});function B(Y){!u()||!i()||n()?.retiredAt||e(R)?.dispatchEvent(new CustomEvent(Eh,{bubbles:!0,detail:{workspaceId:u(),agentId:i(),snapshot:Y}}))}var M={get block(){return l()},set block(Y){l(Y),x()},get role(){return c()},set role(Y){c(Y),x()},get workspaceId(){return u()},set workspaceId(Y){u(Y),x()},get agentId(){return i()},set agentId(Y){i(Y),x()},get messageId(){return p()},set messageId(Y){p(Y),x()},get contentBlockKey(){return g()},set contentBlockKey(Y=""){g(Y),x()},$set:jt,$on:(Y,oe)=>Wt(t,Y,oe)},D=wt(),H=He(D);{var C=Y=>{var oe=c0(),Se=I(oe);{let ce=f(()=>l().metadata?.isStreaming??!1),ne=f(()=>l().metadata?.fenceClosed??!1),ge=f(()=>a()?.record),Oe=f(()=>e(h)?a()?.status??"loading":e(A)?"loading":"ready"),V=f(()=>a()?.error),fe=f(()=>e(h)?et=>Nt.dispatch(Ug(e(P),et)):void 0),de=f(()=>u()&&i()&&n()&&!n().retiredAt?B:void 0),Te=f(()=>e(h)?()=>Nt.dispatch(Wg(e(P))):void 0),Ne=f(()=>e(h)?et=>Nt.dispatch(jg(e(P),crypto.randomUUID(),et)):void 0),we=f(()=>a()?.export?.status),Qe=f(()=>a()?.export?.path),qe=f(()=>a()?.export?.error);Tu(Se,{get source(){return l().content},get isStreaming(){return e(ce)},get isComplete(){return e(ne)},get record(){return e(ge)},get storageStatus(){return e(Oe)},get storageError(){return e(V)},get onRecordChange(){return e(fe)},get onUseConfiguration(){return e(de)},get onRetry(){return e(Te)},get onExport(){return e(Ne)},get exportStatus(){return e(we)},get exportPath(){return e(Qe)},get exportError(){return e(qe)}})}w(oe),gr(oe,ce=>N(R,ce),()=>e(R)),d(Y,oe)},z=Y=>{ea(Y,{get code(){return l().content},language:"html"})};O(H,Y=>{c()==="assistant"?Y(C):Y(z,-1)})}d(r,D);var K=qt(M);return o(),K}var u0=S('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function f0(r,t){if(new.target)return Ht({component:f0,...r});Ut(t,!0);let n=_(t,"digest",7);var a={get digest(){return n()},set digest(l){n(l),x()},$set:jt,$on:(l,c)=>Wt(t,l,c)},s=u0(),o=L(s,!0);return k(()=>y(o,n())),d(r,s),qt(a)}var p0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),g0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),v0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),m0=S('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),h0=S('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function b0(r,t){if(new.target)return Ht({component:b0,...r});Ut(t,!0);let n=_(t,"scripts",7);var a={get scripts(){return n()},set scripts(b){n(b),x()},$set:jt,$on:(b,h)=>Wt(t,b,h)},s=h0(),o=I(s),l=I(o);Tt(l,{get icon(){return Xc},size:"sm",class:"text-primary-ink/70"});var c=m(l,2),u=L(c,!0);w(o);var i=m(o,2);At(i,21,n,b=>b.name+b.command,(b,h)=>{var A=m0(),P=I(A),F=I(P),B=I(F),M=L(B,!0),D=m(B,2);{var H=Se=>{var ce=p0(),ne=L(ce,!0);k(ge=>y(ne,ge),[()=>v.chat_detectedScripts_service_badge()]),d(Se,ce)},C=Se=>{var ce=g0(),ne=L(ce,!0);k(ge=>y(ne,ge),[()=>v.chat_detectedScripts_command_badge()]),d(Se,ce)};O(D,Se=>{e(h).mode==="service"?Se(H):Se(C,-1)})}var z=m(D,2);{var K=Se=>{var ce=v0(),ne=L(ce,!0);k(()=>y(ne,e(h).category)),d(Se,ce)};O(z,Se=>{e(h).category&&e(h).category!=="other"&&Se(K)})}w(F);var Y=m(F,2),oe=L(Y,!0);w(P),w(A),k(()=>{y(M,e(h).name),y(oe,e(h).command)}),d(b,A)}),w(i);var p=m(i,2),g=I(p),R=L(g,!0);return w(p),w(s),k((b,h)=>{y(u,b),y(R,h)},[()=>v.chat_detectedScripts_title(),()=>n().length===1?v.chat_detectedScripts_count_one({count:lr(n().length)}):v.chat_detectedScripts_count_many({count:lr(n().length)})]),d(r,s),qt(a)}function y0(r,t){if(new.target)return Ht({component:y0,...r});Ut(t,!0);let n=_(t,"diff",7),a=_(t,"filePath",7),s=_(t,"language",7),o=_(t,"onApply",7),l=_(t,"onReject",7);function c(){o()?.(),$n.success(v.chat_diffViewer_applied_toast())}function u(){l()?.(),$n.info(v.chat_diffViewer_rejected_toast())}const i=f(()=>{const g=[];return o()&&g.push({label:v.chat_diffViewer_apply_label(),variant:"success",onClick:c}),l()&&g.push({label:v.chat_diffViewer_reject_label(),variant:"danger",onClick:u}),g});var p={get diff(){return n()},set diff(g){n(g),x()},get filePath(){return a()},set filePath(g){a(g),x()},get language(){return s()},set language(g){s(g),x()},get onApply(){return o()},set onApply(g){o(g),x()},get onReject(){return l()},set onReject(g){l(g),x()},$set:jt,$on:(g,R)=>Wt(t,g,R)};{let g=f(()=>a()||v.chat_diffViewer_suggestedChanges_fallback());us(r,{get patch(){return n()},get fileName(){return e(g)},get language(){return s()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return qt(p)}var _0=ba('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),Cc=ba("<circle></circle>"),x0=ba('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),w0=S('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function Os(r,t){if(new.target)return Ht({component:Os,...r});Ut(t,!0);let n=_(t,"phase",7),a=_(t,"progress",7,0),s=_(t,"size",7,16),o=_(t,"class",7,""),l=f(()=>s()/2),c=f(()=>e(l)),u=f(()=>e(l)),i=f(()=>s()*.12),p=f(()=>e(l)-e(i)/2),g=f(()=>e(l)*.35),R=f(()=>2*Math.PI*e(g)),b=f(()=>Math.max(0,Math.min(1,a()))*e(R));const h={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let A=f(()=>h[n()]||"currentColor");var P={get phase(){return n()},set phase(ce){n(ce),x()},get progress(){return a()},set progress(ce=0){a(ce),x()},get size(){return s()},set size(ce=16){s(ce),x()},get class(){return o()},set class(ce=""){o(ce),x()},$set:jt,$on:(ce,ne)=>Wt(t,ce,ne)},F=w0(),B=I(F),M=I(B),D=m(M);{var H=ce=>{},C=ce=>{var ne=_0();k(()=>{se(ne,"cx",e(c)),se(ne,"cy",e(u)),se(ne,"r",e(g)*.8),se(ne,"stroke",e(A)),se(ne,"stroke-width",e(g)*1.5),se(ne,"stroke-dasharray",`${e(b)??""} ${e(R)??""}`),se(ne,"stroke-dashoffset",e(R)*.25),se(ne,"transform",`rotate(-90 ${e(c)??""} ${e(u)??""})`)}),d(ce,ne)},z=ce=>{var ne=Cc();k(()=>{se(ne,"cx",e(c)),se(ne,"cy",e(u)),se(ne,"r",e(p)*.6),se(ne,"fill",e(A))}),d(ce,ne)},K=ce=>{var ne=Cc();k(()=>{se(ne,"cx",e(c)),se(ne,"cy",e(u)),se(ne,"r",e(p)),se(ne,"fill",e(A))}),d(ce,ne)};O(D,ce=>{n()==="planning"?ce(H):n()==="building"?ce(C,1):n()==="reviewing"?ce(z,2):n()==="shipped"&&ce(K,3)})}w(B);var Y=m(B,2);{var oe=ce=>{},Se=ce=>{var ne=x0();k(()=>se(ne,"width",s()*.5)),d(ce,ne)};O(Y,ce=>{n()==="reviewing"?ce(oe):n()==="shipped"&&ce(Se,1)})}return w(F),k(()=>{se(B,"width",s()),se(B,"height",s()),se(B,"viewBox",`0 0 ${s()??""} ${s()??""}`),mt(B,0,ur(o())),se(M,"cx",e(c)),se(M,"cy",e(u)),se(M,"r",e(p)),se(M,"stroke",e(A)),se(M,"stroke-width",e(i))}),d(r,F),qt(P)}var Ec=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),k0=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),Ac=S('<span class="text-ui text-subtle truncate"> </span>'),Pc=S('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),Tc=S('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),S0=S('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),I0=S('<span class="text-ui text-subtle pl-4"> </span>'),C0=S('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),E0=S('<div class="text-ui text-subtle"> </div>'),A0=S("<!> <!> <!> <!>",1),P0=S('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),T0=S('<div class="rounded-[0.5px]"></div>');function Ru(r,t){if(new.target)return Ht({component:Ru,...r});Ut(t,!0);let n=_(t,"stats",7),a=_(t,"tasks",23,()=>[]),s=_(t,"maxBars",7,20),o=_(t,"barWidth",7,"1px"),l=_(t,"barHeight",7,"16px"),c=_(t,"gap",7,"1px"),u=_(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let p=f(()=>{const{completed:D,inProgress:H,notStarted:C,total:z}=n();if(z===0)return[];const K=[...Array(D).fill("completed"),...Array(H).fill("inProgress"),...Array(Math.max(0,C)).fill("notStarted")];return K.length<=s()?K:K.slice(K.length-s())}),g=f(()=>a().filter(D=>D.status==="complete")),R=f(()=>a().filter(D=>D.status==="in_progress"||D.status==="review_required")),b=f(()=>a().filter(D=>D.status!=="complete"&&D.status!=="in_progress"&&D.status!=="review_required"&&D.status!=="cancelled")),h=f(()=>a().filter(D=>D.status==="cancelled")),A=f(()=>a().length>0);var P={get stats(){return n()},set stats(D){n(D),x()},get tasks(){return a()},set tasks(D=[]){a(D),x()},get maxBars(){return s()},set maxBars(D=20){s(D),x()},get barWidth(){return o()},set barWidth(D="1px"){o(D),x()},get barHeight(){return l()},set barHeight(D="16px"){l(D),x()},get gap(){return c()},set gap(D="1px"){c(D),x()},get class(){return u()},set class(D){u(D),x()},$set:jt,$on:(D,H)=>Wt(t,D,H)},F=wt(),B=He(F);{var M=D=>{Fo(D,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:C=>{var z=P0(),K=I(z),Y=I(K),oe=L(Y,!0),Se=m(Y,2),ce=I(Se);{var ne=Ne=>{var we=Ec(),Qe=I(we);An(Qe,"",{},{"background-color":"#22c55e"});var qe=m(Qe);w(we),k(()=>y(qe,` ${n().completed??""}`)),d(Ne,we)};O(ce,Ne=>{n().completed>0&&Ne(ne)})}var ge=m(ce,2);{var Oe=Ne=>{var we=Ec(),Qe=I(we);An(Qe,"",{},{"background-color":"#4F7BF7"});var qe=m(Qe);w(we),k(()=>y(qe,` ${n().inProgress??""}`)),d(Ne,we)};O(ge,Ne=>{n().inProgress>0&&Ne(Oe)})}var V=m(ge,2);{var fe=Ne=>{var we=k0(),Qe=m(I(we));w(we),k(()=>y(Qe,` ${n().notStarted??""}`)),d(Ne,we)};O(V,Ne=>{n().notStarted>0&&Ne(fe)})}w(Se),w(K);var de=m(K,2);{var Te=Ne=>{var we=A0(),Qe=He(we);At(Qe,17,()=>e(R),Tr,(J,G)=>{var q=Tc(),ae=I(q),he=I(ae);yo(he,{get status(){return e(G).status},size:14}),w(ae);var ee=m(ae,2),ue=I(ee),Pe=L(ue,!0),We=m(ue,2);{var at=me=>{var Ee=Pc(),U=I(Ee);{let T=f(()=>e(G).agentState||"idle");ol(U,{get agentId(){return e(G).agentId},get state(){return e(T)},size:12,get specialist(){return e(G).agentSpecialist}})}var ye=m(U,2);{var pe=T=>{var j=Ac(),xe=L(j,!0);k(()=>y(xe,e(G).agentName)),d(T,j)};O(ye,T=>{e(G).agentName&&T(pe)})}w(Ee),d(me,Ee)};O(We,me=>{e(G).agentId&&me(at)})}w(ee),w(q),k(()=>y(Pe,e(G).title)),d(J,q)});var qe=m(Qe,2);At(qe,17,()=>e(b),Tr,(J,G)=>{var q=Tc(),ae=I(q),he=I(ae);yo(he,{get status(){return e(G).status},size:14}),w(ae);var ee=m(ae,2),ue=I(ee),Pe=L(ue,!0),We=m(ue,2);{var at=me=>{var Ee=Pc(),U=I(Ee);{let T=f(()=>e(G).agentState||"idle");ol(U,{get agentId(){return e(G).agentId},get state(){return e(T)},size:12,get specialist(){return e(G).agentSpecialist}})}var ye=m(U,2);{var pe=T=>{var j=Ac(),xe=L(j,!0);k(()=>y(xe,e(G).agentName)),d(T,j)};O(ye,T=>{e(G).agentName&&T(pe)})}w(Ee),d(me,Ee)};O(We,me=>{e(G).agentId&&me(at)})}w(ee),w(q),k(()=>y(Pe,e(G).title)),d(J,q)});var et=m(qe,2);{var $=J=>{var G=C0(),q=I(G);At(q,17,()=>e(g).slice(0,3),Tr,(ee,ue)=>{var Pe=S0(),We=I(Pe),at=I(We);yo(at,{status:"complete",size:12}),w(We);var me=m(We,2),Ee=L(me,!0);w(Pe),k(()=>y(Ee,e(ue).title)),d(ee,Pe)});var ae=m(q,2);{var he=ee=>{var ue=I0(),Pe=L(ue,!0);k(We=>y(Pe,We),[()=>v.workspace_taskProgressBar_moreCompleted_label({count:lr(e(g).length-3)})]),d(ee,ue)};O(ae,ee=>{e(g).length>3&&ee(he)})}w(G),d(J,G)};O(et,J=>{e(g).length>0&&J($)})}var Z=m(et,2);{var Ve=J=>{var G=E0(),q=L(G,!0);k(ae=>y(q,ae),[()=>v.workspace_taskProgressBar_cancelled_label({count:lr(e(h).length)})]),d(J,G)};O(Z,J=>{e(h).length>0&&J(Ve)})}d(Ne,we)};O(de,Ne=>{e(A)&&Ne(Te)})}w(z),k(Ne=>y(oe,Ne),[()=>v.workspace_taskProgressBar_tasksRatio_label({completed:lr(n().completed),total:lr(n().total)})]),d(C,z)},children:(C,z)=>{{let K=f(()=>En("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",u())),Y=f(()=>`gap: ${c()}`),oe=f(()=>v.workspace_taskProgressBar_tasksRatio_label({completed:lr(n().completed),total:lr(n().total)}));yt(C,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(K)},get style(){return e(Y)},get"aria-label"(){return e(oe)},"data-task-progress-trigger":!0,children:(Se,ce)=>{var ne=wt(),ge=He(ne);At(ge,17,()=>e(p),Tr,(Oe,V)=>{var fe=T0();let de;k(()=>de=An(fe,"",de,{width:o(),height:l(),"background-color":i[e(V)]})),d(Oe,fe)}),d(Se,ne)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};O(B,D=>{n().total>0&&D(M)})}return d(r,F),qt(P)}function Pi(r,t){if(new.target)return Ht({component:Pi,...r});Ut(t,!0);let n=_(t,"items",7),a=_(t,"ariaLabel",7),s=_(t,"open",15,!1),o=_(t,"orientation",7,"vertical"),l=_(t,"selection",7),c=_(t,"class",7,"");const u=f(()=>ag(n(),l(),a()));var i={get items(){return n()},set items(p){n(p),x()},get ariaLabel(){return a()},set ariaLabel(p){a(p),x()},get open(){return s()},set open(p=!1){s(p),x()},get orientation(){return o()},set orientation(p="vertical"){o(p),x()},get selection(){return l()},set selection(p){l(p),x()},get class(){return c()},set class(p=""){c(p),x()},$set:jt,$on:(p,g)=>Wt(t,p,g)};return sm(r,{get actions(){return e(u)},align:"end",get ariaLabel(){return a()},onAction:g=>ng(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,R)=>{let b=()=>(R?.()).props;yt(g,li(b,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return c()},get"aria-label"(){return a()},onclick:h=>{h.stopPropagation(),b().onclick?.(h)},oncontextmenu:h=>{h.preventDefault(),h.stopPropagation()},children:(h,A)=>{om(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),qt(i)}var R0=S('<span class="contents"><!></span>'),L0=S("<!> <!>",1);function Lu(r,t){if(new.target)return Ht({component:Lu,...r});Ut(t,!0);let n=_(t,"workspaceId",7),a=_(t,"slot",7);const s=f(()=>Tg(a()));let o=_e(null);kt(()=>{e(o)&&e(o).workspaceId!==n()&&N(o,null)});function l(h){const A=Kc(h);A&&N(o,{...A,workspaceId:n()},!0)}function c(h){h.preventDefault(),h.stopPropagation();const A=h.currentTarget.getBoundingClientRect();N(o,{x:A.left,y:A.bottom+2,returnFocus:h.currentTarget,workspaceId:n()},!0)}function u(){N(o,null)}var i={get workspaceId(){return n()},set workspaceId(h){n(h),x()},get slot(){return a()},set slot(h){a(h),x()},$set:jt,$on:(h,A)=>Wt(t,h,A)},p=L0(),g=He(p);{let h=f(()=>v.workspace_microKeyBadge_ariaLabel({number:lr(a()+1)})),A=f(()=>v.workspace_microKeyBadge_tooltip({number:lr(a()+1)})),P=f(()=>e(o)!==null);yt(g,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(h)},get title(){return e(A)},onclick:c,oncontextmenu:l,onkeydown:l,"aria-haspopup":"menu",get"aria-expanded"(){return e(P)},children:(F,B)=>{var M=R0(),D=I(M);Bp(D,{get slot(){return a()},get class(){return`transition-colors ${e(s)??""}`}}),w(M),d(F,M)},$$slots:{default:!0}})}var R=m(g,2);{var b=h=>{{let A=f(()=>e(o)?.x??0),P=f(()=>e(o)?.y??0),F=f(()=>e(o)?.returnFocus),B=f(()=>v.workspace_card_assignMicroKey_label()),M=f(()=>ah(n(),u));Gc(h,{get x(){return e(A)},get y(){return e(P)},get returnFocus(){return e(F)},selection:"single",get ariaLabel(){return e(B)},get items(){return e(M)},onClickOutside:u})}};O(R,h=>{e(o)&&h(b)})}return d(r,p),qt(i)}var N0=S('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),M0=S('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),O0=S('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),D0=S('<span data-workspace-card-pr-item=""><!></span>'),B0=S('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),F0=S('<span data-workspace-card-time=""><!></span>'),z0=S('<span aria-hidden="true"><!></span>'),H0=S("<div><!> <!> <!> <!></div>"),j0=S('<div data-workspace-card-hover-surface=""><!></div>'),W0=S('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),U0=S('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),q0=S('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),V0=S('<div class="text-sm font-semibold truncate"> </div>'),Rc=S('<span class="truncate"> </span>'),K0=S('<span class="text-muted-foreground">·</span>'),G0=S('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),J0=S('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),Y0=S('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),X0=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),Z0=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),Q0=S('<div class="flex items-center text-ui"><span> </span></div>'),$0=S('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),ek=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),tk=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),rk=S('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function Nu(r,t){if(new.target)return Ht({component:Nu,...r});Ut(t,!0);const n=()=>Dt(qe,"$prMonitors$",l),a=()=>Dt(et,"$microConnected$",l),s=()=>Dt(Z,"$hidesOwnerActions$",l),o=()=>Dt($,"$workspaceKeySlot$",l),[l,c]=ia();let u=_(t,"workspace",7),i=_(t,"phase",7),p=_(t,"stats",7),g=_(t,"variant",7,"compact"),R=_(t,"showTime",7,!0),b=_(t,"isRunning",7,!1),h=_(t,"isUnread",7,!1),A=_(t,"isWaiting",7),P=_(t,"isPinned",7,!1),F=_(t,"streamingAgentIds",23,()=>[]),B=_(t,"hasSpec",7,!1),M=_(t,"isAgentRunning",7,!1),D=_(t,"agentDigest",7),H=_(t,"trailingLabel",7),C=_(t,"title",7),z=_(t,"repoName",7),K=_(t,"branch",7),Y=_(t,"onClick",7),oe=_(t,"onAction",7),Se=_(t,"onTogglePin",7),ce=_(t,"onMarkAsRead",7),ne=_(t,"onOpenInNewWindow",7),ge=_(t,"onHover",7),Oe=_(t,"highlighted",7,!1),V=_(t,"selected",7,!1),fe=_(t,"highlightId",7),de=_(t,"suppressHover",7,!1),Te=_(t,"isolateHoverReveal",7,!1),Ne=_(t,"class",7),we=_(t,"actions",7);const Qe=os("");kt(()=>{Qe.set(u()?.id??"")});const qe=Cp(Qe),et=bh(),$=sv(Qe),Z=Ep(Qe),Ve=f(()=>oh(u()??{})),J=f(()=>ih(e(Ve)));let G=f(()=>u()?hh.url.pathname===`/workspace/${u().id}`:!1),q=f(()=>u()?`workspace-hover-card-${u().id}`:void 0),ae=_e(!1),he=_e(null),ee=_e(null);kt(()=>{if(!e(ee))return;const re=Cs(e(ee),{id:fe()});return()=>re.destroy()});let ue=_e(null),Pe=_e(null),We=_e(null),at=_e(0),me=_e(0),Ee=f(()=>e(at)+(e(me)>0?e(me)+4:0));function U(){const re=e(ue),pt=e(We);N(at,re?Math.max(0,re.scrollWidth-re.clientWidth):0,!0),N(me,re&&pt&&pt.getClientRects().length>0?Math.max(0,re.getBoundingClientRect().right-pt.getBoundingClientRect().left):0,!0)}kt(()=>{const re=e(ue),pt=e(Pe),Bt=e(We);if(!re||!pt||(U(),typeof ResizeObserver>"u"))return;const hr=new ResizeObserver(U);return hr.observe(re),hr.observe(pt),Bt&&hr.observe(Bt),()=>hr.disconnect()});let ye=null,pe=null,T=!1,j=!1,xe=!1,Ze=!1,Re=!1,je=!1,Q=_e(!1),Ce=!1,$e=null,tt=_e(null),ft=null,Be;function ht(){ye!==null&&(clearTimeout(ye),ye=null)}function lt(){pe!==null&&(clearTimeout(pe),pe=null),ft?.(),ft=null}function gt(){lt(),N(Q,!0),N(ae,!0),!Re&&(Re=!0,ns.notifyOpened())}function vt(){lt(),clearTimeout(Be),N(Q,!1),N(ae,!1),j=!1,Ze=!1,Re&&(Re=!1,ns.notifyClosed())}function Ct(){return T||j||xe||Ze}function Rt(){if(!e(ae)){vt();return}lt(),pe=setTimeout(()=>{pe=null,Ct()||vt()},ch),ft=ns.deferClose(vt)}function Zt(){j=!0,lt()}function _t(){j=!1,!xe&&!Ze&&Rt()}function Vt(){Ze=!0,clearTimeout(Be),lt()}function er(re){const pt=re.relatedTarget instanceof Node?re.relatedTarget:null;if(pt&&ie()?.contains(pt)||(Ze=!1,pt&&e(he)?.contains(pt)))return;if(pt){!T&&!j&&vt();return}const Bt=re.target;clearTimeout(Be),Be=setTimeout(()=>{const hr=document.activeElement,Cr=ie()?.contains(hr)||e(he)?.contains(hr);hr&&hr!==Bt&&Cr||!T&&!j&&vt()},0)}function Et(){$e!==null&&clearTimeout($e),Ce=!0,$e=setTimeout(()=>{Ce=!1,$e=null},0)}function Jt(re){const pt=re.target,Bt=ie();pt instanceof Node&&Bt?.contains(pt)||re.type==="scroll"&&e(he)&&pt instanceof Node&&!pt.contains(e(he))||(re.type==="pointerdown"&&Et(),ht(),vt())}kt(()=>{if(e(Q))return window.addEventListener("pointerdown",Jt,!0),window.addEventListener("scroll",Jt,!0),()=>{window.removeEventListener("pointerdown",Jt,!0),window.removeEventListener("scroll",Jt,!0)}});function Mt(re){if(re.key!=="Escape")return;const pt=re.target;pt instanceof Node&&ie()?.contains(pt)||(re.preventDefault(),re.stopPropagation(),je=xe,ht(),vt())}kt(()=>{if(e(ae))return window.addEventListener("keydown",Mt,!0),()=>window.removeEventListener("keydown",Mt,!0)});const ve=f(()=>u()?Pp.select(Nt.state,u().id):null),te=f(()=>e(ve)?e(ve):u()?.activePullRequest?u().activePullRequest:!u()?.prStatus||u().prNumber==null?null:{id:`legacy-pr-${u().prNumber}`,number:u().prNumber,url:u().prUrl??"",title:v.workspace_hoverCard_pullRequest_label(),status:u().prStatus,createdAt:u().updatedAt,updatedAt:u().updatedAt}),Ue=f(()=>Ap(u())),nt=f(()=>{if(!u()||e(Ue))return[];const re=u(),pt=re.repositoryOwner&&re.repositoryName?`${re.repositoryOwner}/${re.repositoryName}`:void 0;return sg({workspacePRs:re.pullRequests,activePR:e(te),monitors:n(),workspaceRepo:pt,buildPrUrl:(Bt,hr)=>Bv(Bt,re.repositoryOwner,re.repositoryName,hr),getDisplayTitle:Bt=>Bt.title})}),dt=f(()=>e(nt)[0]);function ze(re){const pt=re.resource?.repository.provider==="gitlab"?`${re.repo} !${re.number}`:re.repo?v.workspace_card_prBadge_repoLine_tooltip({repo:re.repo,number:re.number}):v.workspace_card_prBadge_label({number:` #${re.number}`});return[Tp(pt,re),re.title,re.details].filter(Boolean).join(`
262
262
  `)}function X(re){re.key==="Enter"&&Y()?.(re)}function ie(){return e(q)?document.getElementById(e(q)):null}function le(){return Array.from(ie()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function ke(){const re=e(he)?.querySelector("[data-workspace-card-trigger]"),pt=ie();if(!re||!pt)return null;const Bt=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(Cr=>Cr.tabIndex>=0&&!pt.contains(Cr)),hr=Bt.indexOf(re);return hr>=0?Bt[hr+1]:null}function Ae(re){je=!!e(he)?.contains(re),vt(),re.focus({preventScroll:!0})}function De(){const re=e(he)?.querySelector("[data-workspace-card-trigger]");re&&Ae(re)}async function Fe(re){if(re.key==="Escape"&&e(ae)){re.preventDefault(),re.stopPropagation(),vt();return}re.key!=="ArrowDown"||de()||!u()||(re.preventDefault(),re.stopPropagation(),N(Q,!0),N(ae,!0),await Jn(),le()[0]?.focus({preventScroll:!0}))}function Je(re){const pt=le(),Bt=re.key==="Tab"&&re.shiftKey&&re.currentTarget===pt[0],Cr=re.key==="Tab"&&!re.shiftKey&&re.currentTarget===pt.at(-1)?ke():null;re.key!=="Escape"&&!Bt&&!Cr||(re.preventDefault(),re.stopPropagation(),Cr?Ae(Cr):De())}function Ke(){T=!0,lt(),ns.settleDeferredCloses(),U(),ge()?.(),u()&&!de()&&!xe&&(ht(),N(Q,!0),ye=setTimeout(()=>{ye=null,gt()},ns.currentOpenDelay))}function Ie(){T=!1,ht(),!xe&&!Ze&&Rt()}function Ye(){xe=!0,ht(),lt(),!je&&(Ce||u()&&!de()&&(N(Q,!0),N(ae,!0)))}function Ge(re){const pt=re.relatedTarget instanceof Node?re.relatedTarget:null;pt&&e(he)?.contains(pt)||(je=!1,xe=!1,!(pt&&ie()?.contains(pt))&&!T&&!j&&vt())}kt(()=>{de()&&(ht(),lt(),vt())});let rt=_e(null),ot=_e(!1),it;kt(()=>{const re=u()?.id;it!==re&&(it=re,N(ot,!1)),e(rt)&&e(rt).workspaceId!==u()?.id&&St()});function ut(re){if(!u())return;const pt=Kc(re);if(pt){if(N(ot,!1),bt().length===0){N(rt,null);return}N(rt,{...pt,returnFocus:re.target instanceof HTMLElement?re.target.closest("button")??e(he)?.querySelector("button")??null:null,workspaceId:u().id},!0)}}function St(){N(rt,null),N(ot,!1)}kt(()=>{e(ot)&&N(rt,null)}),ms(()=>{ht(),lt(),$e!==null&&(clearTimeout($e),$e=null),vt()});function bt(){if(!u())return[];const re=[];return ne()&&re.push({id:"open-new-window",label:v.workspace_card_openNewWindow_label(),icon:$c,onClick:()=>{ne()?.(),St()}}),re.push(...lh(u().id,{connected:a(),onClose:St})),s()||(e(Ue)||re.push({id:"transfer",label:v.workspace_card_transfer_label(),icon:wg,onClick:()=>{Nt.dispatch(Vg({workspaceId:u().id,workspaceTitle:u().title})),St()}}),re.push({id:"archive",label:v.workspace_card_archive_label(),icon:ed,onClick:()=>{Nt.dispatch(fd(u().id)),St()}}),re.push({id:"delete",label:v.workspace_card_deleteSpace_label(),icon:td,destructive:!0,onClick:()=>{Nt.dispatch(pd(u().id)),St()}})),re}let Lt=f(()=>M()&&D()?D():i()?.subtitle??""),Yt=f(()=>p()&&p().tasks.total>0?p().tasks.completed/p().tasks.total:0),$t=f(()=>!!p()&&(p().tasks.total>0||p().files.changed>0||p().commits.total>0||p().pr.hasOpen||p().pr.hasMerged)),Kt=f(()=>e(Ue)?void 0:K()),Lr=f(()=>!p()||e(Ue)?"":p().pr.hasMerged?v.workspace_card_prMerged_label({number:p().pr.number??""}):p().pr.hasOpen?v.workspace_card_prOpen_label({number:p().pr.number?`#${p().pr.number}`:""}):""),Qr=f(()=>i()?.phase==="planning"?M()?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:B()||(p()?.tasks.total??0)>0?{primary:{label:v.workspace_card_approveStart_label(),action:"approve"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:v.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:v.workspace_card_archive_label(),action:"archive"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}});const gn={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var Dn={get workspace(){return u()},set workspace(re){u(re),x()},get phase(){return i()},set phase(re){i(re),x()},get stats(){return p()},set stats(re){p(re),x()},get variant(){return g()},set variant(re="compact"){g(re),x()},get showTime(){return R()},set showTime(re=!0){R(re),x()},get isRunning(){return b()},set isRunning(re=!1){b(re),x()},get isUnread(){return h()},set isUnread(re=!1){h(re),x()},get isWaiting(){return A()},set isWaiting(re){A(re),x()},get isPinned(){return P()},set isPinned(re=!1){P(re),x()},get streamingAgentIds(){return F()},set streamingAgentIds(re=[]){F(re),x()},get hasSpec(){return B()},set hasSpec(re=!1){B(re),x()},get isAgentRunning(){return M()},set isAgentRunning(re=!1){M(re),x()},get agentDigest(){return D()},set agentDigest(re){D(re),x()},get trailingLabel(){return H()},set trailingLabel(re){H(re),x()},get title(){return C()},set title(re){C(re),x()},get repoName(){return z()},set repoName(re){z(re),x()},get branch(){return K()},set branch(re){K(re),x()},get onClick(){return Y()},set onClick(re){Y(re),x()},get onAction(){return oe()},set onAction(re){oe(re),x()},get onTogglePin(){return Se()},set onTogglePin(re){Se(re),x()},get onMarkAsRead(){return ce()},set onMarkAsRead(re){ce(re),x()},get onOpenInNewWindow(){return ne()},set onOpenInNewWindow(re){ne(re),x()},get onHover(){return ge()},set onHover(re){ge(re),x()},get highlighted(){return Oe()},set highlighted(re=!1){Oe(re),x()},get selected(){return V()},set selected(re=!1){V(re),x()},get highlightId(){return fe()},set highlightId(re){fe(re),x()},get suppressHover(){return de()},set suppressHover(re=!1){de(re),x()},get isolateHoverReveal(){return Te()},set isolateHoverReveal(re=!1){Te(re),x()},get class(){return Ne()},set class(re){Ne(re),x()},get actions(){return we()},set actions(re){we(re),x()},$set:jt,$on:(re,pt)=>Wt(t,re,pt)},cn=wt(),Xn=He(cn);{var Pn=re=>{var pt=W0(),Bt=He(pt);let hr;var Cr=I(Bt);{let Le=f(()=>u().title||v.workspace_links_untitled_label()),st=f(()=>`workspace-status-state-${u().id}${P()?` workspace-pinned-state-${u().id}`:""}${e(ae)?` ${e(q)}`:""}`),Qt=f(()=>e(G)?"page":void 0);yt(Cr,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(Le)},get"aria-describedby"(){return e(st)},get"aria-current"(){return e(Qt)},"data-workspace-card-trigger":!0,onkeydown:Fe,onclick:Ot=>{Ot.stopPropagation(),Y()?.(Ot)}})}var Tn=m(Cr,2),kr=I(Tn);{var Bn=Le=>{var st=N0(),Qt=I(st);{var Ot=tr=>{Lu(tr,{get workspaceId(){return u().id},get slot(){return o()}})};O(Qt,tr=>{o()!==null&&tr(Ot)})}w(st),d(Le,st)};O(kr,Le=>{a()&&Le(Bn)})}var Fn=m(kr,2);Fo(Fn,{get content(){return e(J).tooltip},side:"bottom",sideOffset:4,children:(Le,st)=>{sh(Le,{get status(){return e(Ve)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var Zn=m(Fn,2),zn=L(Zn,!0);w(Tn);var Vr=m(Tn,2),vn=I(Vr),sr=I(vn),Kr=I(sr),ra=L(Kr,!0);gr(Kr,Le=>N(Pe,Le),()=>e(Pe)),w(sr),gr(sr,Le=>N(ue,Le),()=>e(ue));var Sr=m(sr,2);{var Er=Le=>{var st=M0(),Qt=He(st),Ot=I(Qt);Tt(Ot,{get icon(){return ul},size:"xs"}),w(Qt);var tr=m(Qt,2),vr=L(tr,!0);k(dn=>{mt(Qt,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
263
- ${Se()?Oe()?"opacity-0":de()?"":Te()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),se(tr,"id",`workspace-pinned-state-${u().id??""}`),y(vr,dn)},[()=>v.layout_activeCard_pinned_header()]),d(Le,st)};O(Sr,Le=>{P()&&Le(Er)})}w(vn);var $r=m(vn,2);{var ca=Le=>{var st=O0(),Qt=L(st,!0);k(()=>y(Qt,H())),d(Le,st)};O($r,Le=>{H()&&Le(ca)})}var Gr=m($r,2);{var en=Le=>{const st=f(()=>e(dt));var Qt=B0(),Ot=I(Qt);{let tr=f(()=>ze(e(st)));Fo(Ot,{get content(){return e(tr)},side:"bottom",sideOffset:4,children:(vr,dn)=>{var xn=wt(),un=He(xn);{var fr=Nr=>{{let yr=f(()=>ze(e(st)));yt(Nr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(st).foregroundClass??""}`},get"aria-label"(){return e(yr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(st).identity},get"data-pr-status"(){return e(st).status},onclick:Or=>{Or.stopPropagation();const Ar=u().id;rp(async()=>{const{handleLink:an}=await import("./t3bi-ExW.js").then(na=>na.Q);return{handleLink:an}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56]),import.meta.url).then(({handleLink:an})=>an(e(st).url,{workspaceId:Ar,event:Or}))},children:(Or,Ar)=>{Tt(Or,{get icon(){return e(st).statusIcon},size:14})},$$slots:{default:!0}})}},jr=Nr=>{var yr=D0(),Or=I(yr);Tt(Or,{get icon(){return e(st).statusIcon},size:14}),w(yr),k(Ar=>{mt(yr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(st).foregroundClass??""}`,"svelte-1ct56pd"),se(yr,"aria-label",Ar),se(yr,"data-pr-identity",e(st).identity),se(yr,"data-pr-status",e(st).status)},[()=>ze(e(st))]),d(Nr,yr)};O(un,Nr=>{e(st).url?Nr(fr):Nr(jr,-1)})}d(vr,xn)},$$slots:{default:!0}})}w(Qt),k(tr=>se(Qt,"aria-label",tr),[()=>e(st).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),d(Le,Qt)};O(Gr,Le=>{e(dt)&&Le(en)})}var Jr=m(Gr,2);{var da=Le=>{var st=F0(),Qt=I(st);{var Ot=vr=>{{let dn=f(()=>hl(u()));Fp(vr,{get date(){return e(dn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},tr=f(()=>hl(u())>0);O(Qt,vr=>{e(tr)&&vr(Ot)})}w(st),k(()=>mt(st,1,`wc-secondary shrink-0 ${we()||Se()||h()&&ce()?Oe()?"opacity-0":de()?"":Te()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(Le,st)};O(Jr,Le=>{R()&&Le(da)})}w(Vr);var Ta=m(Vr,2);{var Ra=Le=>{var st=H0(),Qt=I(st);{var Ot=fr=>{{let jr=f(()=>P()?"text-primary-ink":"text-muted-foreground"),Nr=f(()=>P()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),yr=f(()=>P()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());yt(fr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
263
+ ${Se()?Oe()?"opacity-0":de()?"":Te()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),se(tr,"id",`workspace-pinned-state-${u().id??""}`),y(vr,dn)},[()=>v.layout_activeCard_pinned_header()]),d(Le,st)};O(Sr,Le=>{P()&&Le(Er)})}w(vn);var $r=m(vn,2);{var ca=Le=>{var st=O0(),Qt=L(st,!0);k(()=>y(Qt,H())),d(Le,st)};O($r,Le=>{H()&&Le(ca)})}var Gr=m($r,2);{var en=Le=>{const st=f(()=>e(dt));var Qt=B0(),Ot=I(Qt);{let tr=f(()=>ze(e(st)));Fo(Ot,{get content(){return e(tr)},side:"bottom",sideOffset:4,children:(vr,dn)=>{var xn=wt(),un=He(xn);{var fr=Nr=>{{let yr=f(()=>ze(e(st)));yt(Nr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(st).foregroundClass??""}`},get"aria-label"(){return e(yr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(st).identity},get"data-pr-status"(){return e(st).status},onclick:Or=>{Or.stopPropagation();const Ar=u().id;rp(async()=>{const{handleLink:an}=await import("./B1s3oEqm.js").then(na=>na.Q);return{handleLink:an}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56]),import.meta.url).then(({handleLink:an})=>an(e(st).url,{workspaceId:Ar,event:Or}))},children:(Or,Ar)=>{Tt(Or,{get icon(){return e(st).statusIcon},size:14})},$$slots:{default:!0}})}},jr=Nr=>{var yr=D0(),Or=I(yr);Tt(Or,{get icon(){return e(st).statusIcon},size:14}),w(yr),k(Ar=>{mt(yr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(st).foregroundClass??""}`,"svelte-1ct56pd"),se(yr,"aria-label",Ar),se(yr,"data-pr-identity",e(st).identity),se(yr,"data-pr-status",e(st).status)},[()=>ze(e(st))]),d(Nr,yr)};O(un,Nr=>{e(st).url?Nr(fr):Nr(jr,-1)})}d(vr,xn)},$$slots:{default:!0}})}w(Qt),k(tr=>se(Qt,"aria-label",tr),[()=>e(st).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),d(Le,Qt)};O(Gr,Le=>{e(dt)&&Le(en)})}var Jr=m(Gr,2);{var da=Le=>{var st=F0(),Qt=I(st);{var Ot=vr=>{{let dn=f(()=>hl(u()));Fp(vr,{get date(){return e(dn)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},tr=f(()=>hl(u())>0);O(Qt,vr=>{e(tr)&&vr(Ot)})}w(st),k(()=>mt(st,1,`wc-secondary shrink-0 ${we()||Se()||h()&&ce()?Oe()?"opacity-0":de()?"":Te()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(Le,st)};O(Jr,Le=>{R()&&Le(da)})}w(Vr);var Ta=m(Vr,2);{var Ra=Le=>{var st=H0(),Qt=I(st);{var Ot=fr=>{{let jr=f(()=>P()?"text-primary-ink":"text-muted-foreground"),Nr=f(()=>P()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),yr=f(()=>P()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());yt(fr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
264
264
  ${e(jr)??""}`},onclick:Or=>{Or.stopPropagation(),Se()?.(Or)},get"aria-label"(){return e(Nr)},get title(){return e(yr)},children:(Or,Ar)=>{var an=z0(),na=I(an);Tt(na,{get icon(){return ul},size:"xs"}),w(an),d(Or,an)},$$slots:{default:!0}})}};O(Qt,fr=>{Se()&&fr(Ot)})}var tr=m(Qt,2);{var vr=fr=>{{let jr=f(()=>v.workspace_card_markAsRead_label()),Nr=f(()=>v.workspace_card_markAsRead_label());yt(fr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:yr=>{yr.stopPropagation(),ce()?.(yr)},get"aria-label"(){return e(jr)},get title(){return e(Nr)},children:(yr,Or)=>{Tt(yr,{get icon(){return rd},size:"xs"})},$$slots:{default:!0}})}};O(tr,fr=>{h()&&ce()&&fr(vr)})}var dn=m(tr,2);pn(dn,()=>we()??Ds);var xn=m(dn,2);{var un=fr=>{{let jr=f(bt),Nr=f(()=>v.workspace_progressCard_actions_ariaLabel());Pi(fr,{get items(){return e(jr)},get ariaLabel(){return e(Nr)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(ot)},set open(yr){N(ot,yr,!0)}})}};O(xn,fr=>{ne()&&fr(un)})}w(st),gr(st,fr=>N(We,fr),()=>e(We)),k(()=>mt(st,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
265
265
  ${Te()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
266
266
  ${Oe()?"opacity-100":de()?"opacity-0":Te()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),d(Le,st)};O(Ta,Le=>{(we()||ne()||Se()||h()&&ce())&&Le(Ra)})}w(Bt),gr(Bt,Le=>N(he,Le),()=>e(he)),On(Bt,(Le,st)=>Cs?.(Le,st),()=>({id:fe()}));var Yr=m(Bt,2);{var tn=Le=>{dh(Le,{get id(){return e(q)},get anchor(){return`--workspace-list-${u().id??""}`},position:"right",get anchorElement(){return e(he)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:Zt,onmouseleave:_t,onfocusin:Vt,onfocusout:er,children:(st,Qt)=>{var Ot=j0(),tr=I(Ot);uh(tr,{get workspace(){return u()},get activeAgentIds(){return F()},onkeydown:Je}),w(Ot),gr(Ot,vr=>N(tt,vr),()=>e(tt)),Cn("pointerenter",Ot,Zt),Cn("pointerleave",Ot,_t),Rr("focusin",Ot,Vt),Rr("focusout",Ot,er),d(st,Ot)},$$slots:{default:!0}})};O(Yr,Le=>{e(ae)&&!de()&&Le(tn)})}var W=m(Yr,2);{var Me=Le=>{const st=f(bt);var Qt=wt(),Ot=He(Qt);{var tr=vr=>{{let dn=f(()=>e(rt)?.x??0),xn=f(()=>e(rt)?.y??0),un=f(()=>e(rt)?.returnFocus),fr=f(()=>v.workspace_progressCard_actions_ariaLabel());Gc(vr,{get x(){return e(dn)},get y(){return e(xn)},get returnFocus(){return e(un)},get ariaLabel(){return e(fr)},get items(){return e(st)},onClickOutside:St})}};O(Ot,vr=>{e(st).length>0&&vr(tr)})}d(Le,Qt)};O(W,Le=>{e(rt)&&Le(Me)})}k((Le,st,Qt)=>{mt(Bt,1,Le,"svelte-1ct56pd"),se(Bt,"data-pinned",P()),se(Bt,"data-highlight-id",fe()),hr=An(Bt,"",hr,{"anchor-name":`--workspace-list-${u().id??""}`}),se(Zn,"id",`workspace-status-state-${u().id??""}`),y(zn,e(J).accessibleName),mt(sr,1,`wc-title type-body min-w-0 truncate font-normal!
@@ -0,0 +1 @@
1
+ import{c as i,bc as l,aL as d,Y as o}from"./Cl430GWg.js";var c=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};c(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),h=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{g as a,m as b,w as c,p as d,c as e,y as f,h as g,f as h};
@@ -1 +1 @@
1
- import{n as i}from"./DCeW9_0X.js";import{o as n}from"./B0X6Qy4e.js";import{g as o,Hq as a,Cw as s,tS as r,tu as f}from"./CRwmdgt6.js";async function m(t,e){if(!(!t||!e)){if(t===o){await i("/"),a.dispatch(s(e)),a.dispatch(r("chief"));return}await n(t)&&a.dispatch(f(t,{agentId:e}))}}export{m as n};
1
+ import{n as i}from"./PR2rc_KV.js";import{o as n}from"./DH-0T9oO.js";import{g as o,Hq as a,Cw as s,tS as r,tu as f}from"./CRwmdgt6.js";async function m(t,e){if(!(!t||!e)){if(t===o){await i("/"),a.dispatch(s(e)),a.dispatch(r("chief"));return}await n(t)&&a.dispatch(f(t,{agentId:e}))}}export{m as n};
@@ -1 +1 @@
1
- import{t as Qt,bq as K,by as Xt,b as Yt,a_ as P,bu as Q,bs as Ie,bo as i}from"./7rNOGHzs.js";import{bs as jt,ay as yt,be as h,b$ as x,b_ as s,bO as o,W as n,bS as l,bl as H,bn as Zt,aA as R,a7 as Se,aD as t,c9 as g,aB as I,bo as we,bV as kt,br as Ge,ca as Ht,bH as M,bk as Le,a5 as E,bA as O}from"./B8o4lNgr.js";import{h as Ae,i as Pe,k as ze,d as De,I as Bt,s as qt}from"./DmsDslNo.js";import{c as Te}from"./CiENRH6A.js";import{f as z}from"./Bgegixo2.js";import"./CKEqC8_B.js";import{e as Fe,L as Mt}from"./DSjRkndX.js";import"./DbAK3Zju.js";import"./CB-g50lR.js";import{k as Ue,G as Ee,J as Oe}from"./t3bi-ExW.js";import{I as Wt}from"./DZX-XWnb.js";import"./CQ4a5a4v.js";import{Hq as W,fk as Kt,z as He,ec as Rt,pY as Be,t3 as qe,Hh as Me,nN as We,hv as Ke}from"./CRwmdgt6.js";import{aV as Vt,aW as Jt,aX as Re,aQ as Ve,aR as Nt,aS as Je,aT as Ne,a$ as Qe}from"./DUkegami.js";var Xe=I('<!> <p class="type-body"> </p>',1);function Ye(it,m){if(new.target)return Qt({component:Ye,...it});jt(m,!0);let D=K(m,"open",15,!1),B=K(m,"static",7,!1),st=K(m,"title",7),_=K(m,"message",7),k=K(m,"buttons",7),b=K(m,"cancelIndex",7,0),X=K(m,"onSelect",7);function V(r){D(!1),X()?.(r)}var vt={get open(){return D()},set open(r=!1){D(r),R()},get static(){return B()},set static(r=!1){B(r),R()},get title(){return st()},set title(r){st(r),R()},get message(){return _()},set message(r){_(r),R()},get buttons(){return k()},set buttons(r){k(r),R()},get cancelIndex(){return b()},set cancelIndex(r=0){b(r),R()},get onSelect(){return X()},set onSelect(r){X(r),R()},$set:Xt,$on:(r,q)=>Yt(m,r,q)};return Ue(it,{get static(){return B()},role:"alertdialog",get title(){return st()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>V(k().length-1),onCancel:()=>V(b()),get open(){return D()},set open(q){D(q)},footer:q=>{var T=Se(),w=yt(T);Ae(w,17,k,Pe,(Y,j,J)=>{{let Z=g(()=>J===b()?"ghost":J===k().length-1?"primary":"outline");z(Y,{get variant(){return t(Z)},onclick:()=>V(J),children:(ct,pt)=>{h();var ut=x();s(()=>o(ut,t(j))),n(ct,ut)},$$slots:{default:!0}})}}),n(q,T)},children:(q,T)=>{var w=Xe(),Y=yt(w);Te(Y,()=>Fe,(Z,ct)=>{ct(Z,{class:"sr-only",children:(pt,ut)=>{h();var _t=x();s(()=>o(_t,_())),n(pt,_t)},$$slots:{default:!0}})});var j=l(Y,2),J=H(j,!0);s(()=>o(J,_())),n(q,w)},$$slots:{footer:!0,default:!0}}),Zt(vt)}var je=I('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Ze=I('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),ta=I('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),ea=I('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),aa=I('<p class="text-xs text-danger" role="alert"> </p>'),na=I('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),ra=I('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),sa=I('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),oa=I('<p class="text-sm text-subtle" role="status"> </p>'),la=I('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),ia=I('<p class="text-sm text-danger" role="alert"> </p>'),ca=I('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function ua(it,m){const D=we();if(new.target)return Qt({component:ua,...it});jt(m,!0);const B=()=>Q(ct,"$storedInstance$",r),st=()=>Q(ee,"$deviceGrantSupported$",r),_=()=>Q(ne,"$instanceSetupSupported$",r),k=()=>Q(pt,"$isAuthenticating$",r),b=()=>Q(ut,"$isCancelling$",r),X=()=>Q(te,"$deviceFlow$",r),V=()=>Q(_t,"$cancelOutcome$",r),vt=()=>Q(ae,"$error$",r),[r,q]=Ie();let T=K(m,"compact",7,!1),w=K(m,"onCancel",7);const Y=`${D}-host`,j=`${D}-host-help`,J=`${D}-host-error`,Z=`${D}-token`,ct=Vt(),pt=Jt(),ut=Re(),_t=Ve(),te=Nt(),ee=Je(),ae=Ne(),ne=Qe();let bt=kt(Ge(Vt.select(W.state))),St=kt(!1),tt=kt(""),ft=kt(!1);const p=g(()=>qe(t(bt))),wt=g(()=>t(ft)||t(p)===B()&&st()===!1),Ct=g(()=>t(p)?We(t(p)):null),re=g(()=>_()&&t(p)!==null&&t(tt).trim().length>0);Ht(()=>{const c=B();t(St)||M(bt,c,!0)}),Ht(()=>{_()||M(tt,"")}),Le(()=>{const c=()=>{const e=W.state;Jt.select(e)&&Nt.select(e)&&W.dispatch(Kt())};return window.addEventListener("focus",c),()=>window.removeEventListener("focus",c)});function Gt(){!_()||!t(p)||t(p)===B()||k()||b()||W.dispatch(Be(t(p)))}function se(){M(St,!0),M(tt,"")}function Lt(){!_()||!t(p)||k()||b()||W.dispatch(Me(t(p)))}function At(){const c=t(tt).trim();!_()||!c||!t(p)||k()||b()||(W.dispatch(Ke(t(p),c)),M(tt,""))}function Pt(){!_()||b()||(k()&&W.dispatch(Rt()),M(ft,!0))}function oe(){M(ft,!1)}function le(){b()||W.dispatch(Rt())}function ie(){t(Ct)&&Oe(t(Ct),{})}function ce(c){c.key==="Enter"&&(c.preventDefault(),Gt(),t(wt)?document.getElementById(Z)?.focus():Lt())}function ue(c){c.key==="Enter"&&(c.preventDefault(),At())}const zt=g(()=>T()?"sm":"xl"),gt=g(()=>T()?"sm":"default");var de={get compact(){return T()},set compact(c=!1){T(c),R()},get onCancel(){return w()},set onCancel(c){w(c),R()},$set:Xt,$on:(c,e)=>Yt(m,c,e)},$t=ca();{const c=e=>{z(e,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return b()},onclick:le,children:(a,u)=>{h();var f=x();s(G=>o(f,G),[()=>b()?i.lib_gitlabConnect_cancelling_label():i.lib_gitlabConnect_cancel_label()]),n(a,f)},$$slots:{default:!0}})};var Dt=E($t);{var ve=e=>{var a=je(),u=H(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_updateRequired_description()]),n(e,a)};P(Dt,e=>{_()||e(ve)})}var Tt=l(Dt,2);{var pe=e=>{var a=Ze(),u=H(a,!0);s(()=>o(u,B())),n(e,a)};P(Tt,e=>{(k()||b())&&e(pe)})}var Ft=l(Tt,2);{var _e=e=>{var a=ta(),u=E(a);{let at=g(()=>i.lib_gitlabConnect_openGitlab_label());Ee(u,{get userCode(){return X().userCode},get verificationUri(){return X().verificationUri},get openLabel(){return t(at)},get compact(){return T()}})}var f=l(u,2),G=E(f);Bt(G,{size:16,class:"shrink-0"});var S=l(G,2),ot=H(S,!0),et=l(S,2);{let at=g(()=>b()||!_());z(et,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(at)},onclick:Pt,children:(It,Et)=>{h();var d=x();s($=>o(d,$),[()=>i.lib_gitlabConnect_useToken_label()]),n(It,d)},$$slots:{default:!0}})}var dt=l(et,2);c(dt),O(f),O(a),s(at=>o(ot,at),[()=>i.lib_gitlabConnect_waitingForAuthorization_label()]),n(e,a)},be=e=>{var a=ea(),u=E(a);Bt(u,{size:16,class:"shrink-0"});var f=l(u,2),G=H(f,!0),S=l(f,2);c(S),O(a),s(ot=>o(G,ot),[()=>i.lib_gitlabConnect_connecting_label()]),n(e,a)},fe=e=>{var a=sa(),u=yt(a),f=E(u);Mt(f,{get for(){return Y},children:(d,$)=>{h();var y=x();s(L=>o(y,L),[()=>i.lib_gitlabConnect_host_label()]),n(d,y)},$$slots:{default:!0}});var G=l(f,2);{let d=g(()=>!_()),$=g(()=>!t(p)||void 0),y=g(()=>t(p)?j:`${j} ${J}`);Wt(G,{get id(){return Y},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(d)},get"aria-invalid"(){return t($)},get"aria-describedby"(){return t(y)},get placeholder(){return He},oninput:se,onchange:Gt,onkeydown:ce,get value(){return t(bt)},set value(L){M(bt,L,!0)}})}var S=l(G,2),ot=H(S,!0),et=l(S,2);{var dt=d=>{var $=aa(),y=H($,!0);s(L=>{qt($,"id",J),o(y,L)},[()=>i.lib_gitlabConnect_invalidInstance_error()]),n(d,$)};P(et,d=>{t(p)||d(dt)})}O(u);var at=l(u,2);{var It=d=>{var $=na(),y=yt($),L=E(y);Mt(L,{get for(){return Z},children:(v,U)=>{h();var lt=x();s(C=>o(lt,C),[()=>i.lib_gitlabConnect_token_label()]),n(v,lt)},$$slots:{default:!0}});var mt=l(L,2);{let v=g(()=>!_());Wt(mt,{get id(){return Z},type:"password",autocomplete:"off",get disabled(){return t(v)},placeholder:"glpat-...",onkeydown:ue,get value(){return t(tt)},set value(U){M(tt,U,!0)}})}var ht=l(mt,2),F=E(ht),nt=l(F);{var xt=v=>{z(v,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:ie,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_createToken_label({host:t(p)})]),n(U,C)},$$slots:{default:!0}})};P(nt,v=>{t(Ct)&&t(p)&&v(xt)})}O(ht),O(y);var A=l(y,2),N=E(A);{let v=g(()=>!t(re));z(N,{variant:"primary",get size(){return t(zt)},type:"button",onclick:At,get disabled(){return t(v)},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_connect_label()]),n(U,C)},$$slots:{default:!0}})}var Ot=l(N,2);{var ke=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",onclick:oe,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_useDevice_label()]),n(U,C)},$$slots:{default:!0}})};P(Ot,v=>{t(ft)&&!(t(p)===B()&&st()===!1)&&v(ke)})}var ye=l(Ot,2);{var Ce=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return w()},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_cancel_label()]),n(U,C)},$$slots:{default:!0}})};P(ye,v=>{w()&&v(Ce)})}O(A),s(v=>o(F,`${v??""} `),[()=>i.lib_gitlabConnect_token_description()]),n(d,$)},Et=d=>{var $=ra(),y=E($);{let F=g(()=>!t(p)||!_());z(y,{variant:"primary",get size(){return t(zt)},type:"button",onclick:Lt,get disabled(){return t(F)},children:(nt,xt)=>{h();var A=x();s(N=>o(A,N),[()=>i.lib_gitlabConnect_connect_label()]),n(nt,A)},$$slots:{default:!0}})}var L=l(y,2);{let F=g(()=>!_());z(L,{variant:"ghost",get size(){return t(gt)},type:"button",get disabled(){return t(F)},onclick:Pt,children:(nt,xt)=>{h();var A=x();s(N=>o(A,N),[()=>i.lib_gitlabConnect_useToken_label()]),n(nt,A)},$$slots:{default:!0}})}var mt=l(L,2);{var ht=F=>{z(F,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return w()},children:(nt,xt)=>{h();var A=x();s(N=>o(A,N),[()=>i.lib_gitlabConnect_cancel_label()]),n(nt,A)},$$slots:{default:!0}})};P(mt,F=>{w()&&F(ht)})}O($),n(d,$)};P(at,d=>{t(wt)?d(It):d(Et,-1)})}s(d=>{qt(S,"id",j),o(ot,d)},[()=>i.lib_gitlabConnect_host_description()]),n(e,a)};P(Ft,e=>{(k()||b())&&X()?e(_e):k()||b()?e(be,1):e(fe,-1)})}var Ut=l(Ft,2);{var ge=e=>{var a=oa(),u=H(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_cancelled_label()]),n(e,a)},$e=e=>{var a=la(),u=E(a),f=H(u,!0),G=l(u,2);z(G,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return b()},onclick:()=>W.dispatch(Kt()),children:(S,ot)=>{h();var et=x();s(dt=>o(et,dt),[()=>i.lib_gitlabConnect_checkStatus_label()]),n(S,et)},$$slots:{default:!0}}),O(a),s(S=>o(f,S),[()=>V()==="already-started"?i.lib_gitlabConnect_alreadyStarted_description():i.lib_gitlabConnect_cancelFailed_description()]),n(e,a)};P(Ut,e=>{V()==="cancelled"?e(ge):(V()==="already-started"||V()==="failed")&&e($e,1)})}var me=l(Ut,2);{var he=e=>{var a=ia(),u=H(a,!0);s(()=>o(u,vt())),n(e,a)};P(me,e=>{vt()&&e(he)})}O($t)}s(()=>ze($t,1,De(T()?"space-y-2":"space-y-4"))),n(it,$t);var xe=Zt(de);return q(),xe}export{ua as G,Ye as M};
1
+ import{t as Qt,bq as K,by as Xt,b as Yt,a_ as P,bu as Q,bs as Ie,bo as i}from"./7rNOGHzs.js";import{bs as jt,ay as yt,be as h,b$ as x,b_ as s,bO as o,W as n,bS as l,bl as H,bn as Zt,aA as R,a7 as Se,aD as t,c9 as g,aB as I,bo as we,bV as kt,br as Ge,ca as Ht,bH as M,bk as Le,a5 as E,bA as O}from"./B8o4lNgr.js";import{h as Ae,i as Pe,k as ze,d as De,I as Bt,s as qt}from"./DmsDslNo.js";import{c as Te}from"./CiENRH6A.js";import{f as z}from"./Bgegixo2.js";import"./CKEqC8_B.js";import{e as Fe,L as Mt}from"./DSjRkndX.js";import"./DbAK3Zju.js";import"./CB-g50lR.js";import{k as Ue,G as Ee,J as Oe}from"./B1s3oEqm.js";import{I as Wt}from"./DZX-XWnb.js";import"./CQ4a5a4v.js";import{Hq as W,fk as Kt,z as He,ec as Rt,pY as Be,t3 as qe,Hh as Me,nN as We,hv as Ke}from"./CRwmdgt6.js";import{aV as Vt,aW as Jt,aX as Re,aQ as Ve,aR as Nt,aS as Je,aT as Ne,a$ as Qe}from"./C_tu278J.js";var Xe=I('<!> <p class="type-body"> </p>',1);function Ye(it,m){if(new.target)return Qt({component:Ye,...it});jt(m,!0);let D=K(m,"open",15,!1),B=K(m,"static",7,!1),st=K(m,"title",7),_=K(m,"message",7),k=K(m,"buttons",7),b=K(m,"cancelIndex",7,0),X=K(m,"onSelect",7);function V(r){D(!1),X()?.(r)}var vt={get open(){return D()},set open(r=!1){D(r),R()},get static(){return B()},set static(r=!1){B(r),R()},get title(){return st()},set title(r){st(r),R()},get message(){return _()},set message(r){_(r),R()},get buttons(){return k()},set buttons(r){k(r),R()},get cancelIndex(){return b()},set cancelIndex(r=0){b(r),R()},get onSelect(){return X()},set onSelect(r){X(r),R()},$set:Xt,$on:(r,q)=>Yt(m,r,q)};return Ue(it,{get static(){return B()},role:"alertdialog",get title(){return st()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>V(k().length-1),onCancel:()=>V(b()),get open(){return D()},set open(q){D(q)},footer:q=>{var T=Se(),w=yt(T);Ae(w,17,k,Pe,(Y,j,J)=>{{let Z=g(()=>J===b()?"ghost":J===k().length-1?"primary":"outline");z(Y,{get variant(){return t(Z)},onclick:()=>V(J),children:(ct,pt)=>{h();var ut=x();s(()=>o(ut,t(j))),n(ct,ut)},$$slots:{default:!0}})}}),n(q,T)},children:(q,T)=>{var w=Xe(),Y=yt(w);Te(Y,()=>Fe,(Z,ct)=>{ct(Z,{class:"sr-only",children:(pt,ut)=>{h();var _t=x();s(()=>o(_t,_())),n(pt,_t)},$$slots:{default:!0}})});var j=l(Y,2),J=H(j,!0);s(()=>o(J,_())),n(q,w)},$$slots:{footer:!0,default:!0}}),Zt(vt)}var je=I('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Ze=I('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),ta=I('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),ea=I('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),aa=I('<p class="text-xs text-danger" role="alert"> </p>'),na=I('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),ra=I('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),sa=I('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),oa=I('<p class="text-sm text-subtle" role="status"> </p>'),la=I('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),ia=I('<p class="text-sm text-danger" role="alert"> </p>'),ca=I('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function ua(it,m){const D=we();if(new.target)return Qt({component:ua,...it});jt(m,!0);const B=()=>Q(ct,"$storedInstance$",r),st=()=>Q(ee,"$deviceGrantSupported$",r),_=()=>Q(ne,"$instanceSetupSupported$",r),k=()=>Q(pt,"$isAuthenticating$",r),b=()=>Q(ut,"$isCancelling$",r),X=()=>Q(te,"$deviceFlow$",r),V=()=>Q(_t,"$cancelOutcome$",r),vt=()=>Q(ae,"$error$",r),[r,q]=Ie();let T=K(m,"compact",7,!1),w=K(m,"onCancel",7);const Y=`${D}-host`,j=`${D}-host-help`,J=`${D}-host-error`,Z=`${D}-token`,ct=Vt(),pt=Jt(),ut=Re(),_t=Ve(),te=Nt(),ee=Je(),ae=Ne(),ne=Qe();let bt=kt(Ge(Vt.select(W.state))),St=kt(!1),tt=kt(""),ft=kt(!1);const p=g(()=>qe(t(bt))),wt=g(()=>t(ft)||t(p)===B()&&st()===!1),Ct=g(()=>t(p)?We(t(p)):null),re=g(()=>_()&&t(p)!==null&&t(tt).trim().length>0);Ht(()=>{const c=B();t(St)||M(bt,c,!0)}),Ht(()=>{_()||M(tt,"")}),Le(()=>{const c=()=>{const e=W.state;Jt.select(e)&&Nt.select(e)&&W.dispatch(Kt())};return window.addEventListener("focus",c),()=>window.removeEventListener("focus",c)});function Gt(){!_()||!t(p)||t(p)===B()||k()||b()||W.dispatch(Be(t(p)))}function se(){M(St,!0),M(tt,"")}function Lt(){!_()||!t(p)||k()||b()||W.dispatch(Me(t(p)))}function At(){const c=t(tt).trim();!_()||!c||!t(p)||k()||b()||(W.dispatch(Ke(t(p),c)),M(tt,""))}function Pt(){!_()||b()||(k()&&W.dispatch(Rt()),M(ft,!0))}function oe(){M(ft,!1)}function le(){b()||W.dispatch(Rt())}function ie(){t(Ct)&&Oe(t(Ct),{})}function ce(c){c.key==="Enter"&&(c.preventDefault(),Gt(),t(wt)?document.getElementById(Z)?.focus():Lt())}function ue(c){c.key==="Enter"&&(c.preventDefault(),At())}const zt=g(()=>T()?"sm":"xl"),gt=g(()=>T()?"sm":"default");var de={get compact(){return T()},set compact(c=!1){T(c),R()},get onCancel(){return w()},set onCancel(c){w(c),R()},$set:Xt,$on:(c,e)=>Yt(m,c,e)},$t=ca();{const c=e=>{z(e,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return b()},onclick:le,children:(a,u)=>{h();var f=x();s(G=>o(f,G),[()=>b()?i.lib_gitlabConnect_cancelling_label():i.lib_gitlabConnect_cancel_label()]),n(a,f)},$$slots:{default:!0}})};var Dt=E($t);{var ve=e=>{var a=je(),u=H(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_updateRequired_description()]),n(e,a)};P(Dt,e=>{_()||e(ve)})}var Tt=l(Dt,2);{var pe=e=>{var a=Ze(),u=H(a,!0);s(()=>o(u,B())),n(e,a)};P(Tt,e=>{(k()||b())&&e(pe)})}var Ft=l(Tt,2);{var _e=e=>{var a=ta(),u=E(a);{let at=g(()=>i.lib_gitlabConnect_openGitlab_label());Ee(u,{get userCode(){return X().userCode},get verificationUri(){return X().verificationUri},get openLabel(){return t(at)},get compact(){return T()}})}var f=l(u,2),G=E(f);Bt(G,{size:16,class:"shrink-0"});var S=l(G,2),ot=H(S,!0),et=l(S,2);{let at=g(()=>b()||!_());z(et,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(at)},onclick:Pt,children:(It,Et)=>{h();var d=x();s($=>o(d,$),[()=>i.lib_gitlabConnect_useToken_label()]),n(It,d)},$$slots:{default:!0}})}var dt=l(et,2);c(dt),O(f),O(a),s(at=>o(ot,at),[()=>i.lib_gitlabConnect_waitingForAuthorization_label()]),n(e,a)},be=e=>{var a=ea(),u=E(a);Bt(u,{size:16,class:"shrink-0"});var f=l(u,2),G=H(f,!0),S=l(f,2);c(S),O(a),s(ot=>o(G,ot),[()=>i.lib_gitlabConnect_connecting_label()]),n(e,a)},fe=e=>{var a=sa(),u=yt(a),f=E(u);Mt(f,{get for(){return Y},children:(d,$)=>{h();var y=x();s(L=>o(y,L),[()=>i.lib_gitlabConnect_host_label()]),n(d,y)},$$slots:{default:!0}});var G=l(f,2);{let d=g(()=>!_()),$=g(()=>!t(p)||void 0),y=g(()=>t(p)?j:`${j} ${J}`);Wt(G,{get id(){return Y},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(d)},get"aria-invalid"(){return t($)},get"aria-describedby"(){return t(y)},get placeholder(){return He},oninput:se,onchange:Gt,onkeydown:ce,get value(){return t(bt)},set value(L){M(bt,L,!0)}})}var S=l(G,2),ot=H(S,!0),et=l(S,2);{var dt=d=>{var $=aa(),y=H($,!0);s(L=>{qt($,"id",J),o(y,L)},[()=>i.lib_gitlabConnect_invalidInstance_error()]),n(d,$)};P(et,d=>{t(p)||d(dt)})}O(u);var at=l(u,2);{var It=d=>{var $=na(),y=yt($),L=E(y);Mt(L,{get for(){return Z},children:(v,U)=>{h();var lt=x();s(C=>o(lt,C),[()=>i.lib_gitlabConnect_token_label()]),n(v,lt)},$$slots:{default:!0}});var mt=l(L,2);{let v=g(()=>!_());Wt(mt,{get id(){return Z},type:"password",autocomplete:"off",get disabled(){return t(v)},placeholder:"glpat-...",onkeydown:ue,get value(){return t(tt)},set value(U){M(tt,U,!0)}})}var ht=l(mt,2),F=E(ht),nt=l(F);{var xt=v=>{z(v,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:ie,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_createToken_label({host:t(p)})]),n(U,C)},$$slots:{default:!0}})};P(nt,v=>{t(Ct)&&t(p)&&v(xt)})}O(ht),O(y);var A=l(y,2),N=E(A);{let v=g(()=>!t(re));z(N,{variant:"primary",get size(){return t(zt)},type:"button",onclick:At,get disabled(){return t(v)},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_connect_label()]),n(U,C)},$$slots:{default:!0}})}var Ot=l(N,2);{var ke=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",onclick:oe,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_useDevice_label()]),n(U,C)},$$slots:{default:!0}})};P(Ot,v=>{t(ft)&&!(t(p)===B()&&st()===!1)&&v(ke)})}var ye=l(Ot,2);{var Ce=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return w()},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_cancel_label()]),n(U,C)},$$slots:{default:!0}})};P(ye,v=>{w()&&v(Ce)})}O(A),s(v=>o(F,`${v??""} `),[()=>i.lib_gitlabConnect_token_description()]),n(d,$)},Et=d=>{var $=ra(),y=E($);{let F=g(()=>!t(p)||!_());z(y,{variant:"primary",get size(){return t(zt)},type:"button",onclick:Lt,get disabled(){return t(F)},children:(nt,xt)=>{h();var A=x();s(N=>o(A,N),[()=>i.lib_gitlabConnect_connect_label()]),n(nt,A)},$$slots:{default:!0}})}var L=l(y,2);{let F=g(()=>!_());z(L,{variant:"ghost",get size(){return t(gt)},type:"button",get disabled(){return t(F)},onclick:Pt,children:(nt,xt)=>{h();var A=x();s(N=>o(A,N),[()=>i.lib_gitlabConnect_useToken_label()]),n(nt,A)},$$slots:{default:!0}})}var mt=l(L,2);{var ht=F=>{z(F,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return w()},children:(nt,xt)=>{h();var A=x();s(N=>o(A,N),[()=>i.lib_gitlabConnect_cancel_label()]),n(nt,A)},$$slots:{default:!0}})};P(mt,F=>{w()&&F(ht)})}O($),n(d,$)};P(at,d=>{t(wt)?d(It):d(Et,-1)})}s(d=>{qt(S,"id",j),o(ot,d)},[()=>i.lib_gitlabConnect_host_description()]),n(e,a)};P(Ft,e=>{(k()||b())&&X()?e(_e):k()||b()?e(be,1):e(fe,-1)})}var Ut=l(Ft,2);{var ge=e=>{var a=oa(),u=H(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_cancelled_label()]),n(e,a)},$e=e=>{var a=la(),u=E(a),f=H(u,!0),G=l(u,2);z(G,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return b()},onclick:()=>W.dispatch(Kt()),children:(S,ot)=>{h();var et=x();s(dt=>o(et,dt),[()=>i.lib_gitlabConnect_checkStatus_label()]),n(S,et)},$$slots:{default:!0}}),O(a),s(S=>o(f,S),[()=>V()==="already-started"?i.lib_gitlabConnect_alreadyStarted_description():i.lib_gitlabConnect_cancelFailed_description()]),n(e,a)};P(Ut,e=>{V()==="cancelled"?e(ge):(V()==="already-started"||V()==="failed")&&e($e,1)})}var me=l(Ut,2);{var he=e=>{var a=ia(),u=H(a,!0);s(()=>o(u,vt())),n(e,a)};P(me,e=>{vt()&&e(he)})}O($t)}s(()=>ze($t,1,De(T()?"space-y-2":"space-y-4"))),n(it,$t);var xe=Zt(de);return q(),xe}export{ua as G,Ye as M};
@@ -1,14 +1,14 @@
1
- import{f as o,bC as te,aO as H,c4 as fe,b4 as ye,b8 as be,bU as me,cd as ke,ax as K,c2 as F,bB as Ee,J as _e,bk as Se,by as ce,as as le}from"./CxRm1vYn.js";import{g as Ne}from"./DOVnLHFz.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],B=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],U=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(B,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:U}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(B,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:U}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
1
+ import{g as fe}from"./CnIb6mve.js";import{c as o,aN as te,a8 as H,bd as ye,ap as be,at as me,b1 as ke,bl as Ee,W as J,bb as F,aM as _e,J as Se,aC as Ne,aJ as ce,Q as le}from"./Cl430GWg.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],M=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,U){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:M}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:M}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],U=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var Y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Y)&&(R.yy[Y]=this.yy[Y]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var Q=b.yylloc;t.push(Q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=U[P]&&U[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in U[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
2
2
  `+b.showPosition()+`
3
- Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(_==re?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(x[0]){case 1:r.push(_),u.push(b.yytext),t.push(b.yylloc),r.push(x[1]),_=null,ie=b.yyleng,c=b.yytext,W=b.yylineno,q=b.yylloc;break;case 2:if(C=this.productions_[x[1]][1],j.$=u[u.length-C],j._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(j._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(j,[c,ie,W,R.yy,x[1],u,t].concat(ge)),typeof Q<"u")return Q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(j.$),t.push(j._$),oe=M[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},Y=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var n=s.length,r=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
3
+ Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(_==re?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:Q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(x[0]){case 1:r.push(_),u.push(b.yytext),t.push(b.yylloc),r.push(x[1]),_=null,ie=b.yyleng,c=b.yytext,W=b.yylineno,Q=b.yylloc;break;case 2:if(C=this.productions_[x[1]][1],j.$=u[u.length-C],j._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(j._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),q=this.performAction.apply(j,[c,ie,W,R.yy,x[1],u,t].concat(ge)),typeof q<"u")return q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(j.$),t.push(j._$),oe=U[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},K=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:o(function(s){var n=s.length,r=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),r.length-1&&(this.yylineno-=r.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
5
5
  `+n+"^"},"showPosition"),test_match:o(function(s,n){var r,a,u;if(this.options.backtrack_lexer&&(u={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(u.yylloc.range=this.yylloc.range.slice(0))),a=s[0].match(/(?:\r\n?|\n).*/g),a&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],r=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),r)return r;if(this._backtrack){for(var t in u)this[t]=u[t];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,n,r,a;this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),t=0;t<u.length;t++)if(r=this._input.match(this.rules[u[t]]),r&&(!n||r[0].length>n[0].length)){if(n=r,a=t,this.options.backtrack_lexer){if(s=this.test_match(r,u[t]),s!==!1)return s;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(s=this.test_match(n,u[a]),s!==!1?s:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var n=this.next();return n||this.lex()},"lex"),begin:o(function(n){this.conditionStack.push(n)},"begin"),popState:o(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:o(function(n){this.begin(n)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(n,r,a,u){switch(a){case 0:return this.pushState("shapeData"),r.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const t=/\n\s*/g;return r.yytext=r.yytext.replace(t,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return n.getLogger().trace("Found comment",r.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:n.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return n.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:n.getLogger().trace("end icon"),this.popState();break;case 16:return n.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return n.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return n.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return n.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:n.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return n.getLogger().trace("description:",r.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),n.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),n.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),n.getLogger().trace("node end ...",r.yytext),"NODE_DEND";case 36:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 41:return n.getLogger().trace("Long description:",r.yytext),21;case 42:return n.getLogger().trace("Long description:",r.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return O})();T.lexer=Y;function V(){this.yy={}}return o(V,"Parser"),V.prototype=T,T.Parser=V,new V})();$.parser=$;var xe=$,v=[],ne=[],ee=0,se={},ve=o(()=>{v=[],ne=[],ee=0,se={}},"clear"),De=o(e=>{if(v.length===0)return null;const h=v[0].level;let p=null;for(let i=v.length-1;i>=0;i--)if(v[i].level===h&&!p&&(p=v[i]),v[i].level<h)throw new Error('Items without section detected, found section ("'+v[i].label+'")');return e===p?.level?null:p},"getSection"),he=o(function(){return ne},"getSections"),Le=o(function(){const e=[],h=[],p=he(),i=H();for(const d of p){const k={id:d.id,label:F(d.label??"",i),labelType:"markdown",isGroup:!0,ticket:d.ticket,shape:"kanbanSection",level:d.level,look:i.look};h.push(k);const m=v.filter(l=>l.parentId===d.id);for(const l of m){const D={id:l.id,parentId:d.id,label:F(l.label??"",i),labelType:"markdown",isGroup:!1,ticket:l?.ticket,priority:l?.priority,assigned:l?.assigned,icon:l?.icon,shape:"kanbanItem",level:l.level,rx:5,ry:5,cssStyles:["text-align: left"]};h.push(D)}}return{nodes:h,edges:e,other:{},config:H()}},"getData"),Oe=o((e,h,p,i,d)=>{const k=H();let m=k.mindmap?.padding??K.mindmap.padding;switch(i){case y.ROUNDED_RECT:case y.RECT:case y.HEXAGON:m*=2}const l={id:F(h,k)||"kbn"+ee++,level:e,label:F(p,k),width:k.mindmap?.maxNodeWidth??K.mindmap.maxNodeWidth,padding:m,isGroup:!1};if(d!==void 0){let I;d.includes(`
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var n=this.next();return n||this.lex()},"lex"),begin:o(function(n){this.conditionStack.push(n)},"begin"),popState:o(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:o(function(n){this.begin(n)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(n,r,a,u){switch(a){case 0:return this.pushState("shapeData"),r.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const t=/\n\s*/g;return r.yytext=r.yytext.replace(t,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return n.getLogger().trace("Found comment",r.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:n.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return n.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:n.getLogger().trace("end icon"),this.popState();break;case 16:return n.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return n.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return n.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return n.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:n.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return n.getLogger().trace("description:",r.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),n.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),n.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),n.getLogger().trace("node end ...",r.yytext),"NODE_DEND";case 36:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";case 41:return n.getLogger().trace("Long description:",r.yytext),21;case 42:return n.getLogger().trace("Long description:",r.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return O})();T.lexer=K;function B(){this.yy={}}return o(B,"Parser"),B.prototype=T,T.Parser=B,new B})();$.parser=$;var xe=$,v=[],ne=[],ee=0,se={},ve=o(()=>{v=[],ne=[],ee=0,se={}},"clear"),De=o(e=>{if(v.length===0)return null;const h=v[0].level;let p=null;for(let i=v.length-1;i>=0;i--)if(v[i].level===h&&!p&&(p=v[i]),v[i].level<h)throw new Error('Items without section detected, found section ("'+v[i].label+'")');return e===p?.level?null:p},"getSection"),he=o(function(){return ne},"getSections"),Le=o(function(){const e=[],h=[],p=he(),i=H();for(const d of p){const k={id:d.id,label:F(d.label??"",i),labelType:"markdown",isGroup:!0,ticket:d.ticket,shape:"kanbanSection",level:d.level,look:i.look};h.push(k);const m=v.filter(l=>l.parentId===d.id);for(const l of m){const D={id:l.id,parentId:d.id,label:F(l.label??"",i),labelType:"markdown",isGroup:!1,ticket:l?.ticket,priority:l?.priority,assigned:l?.assigned,icon:l?.icon,shape:"kanbanItem",level:l.level,rx:5,ry:5,cssStyles:["text-align: left"]};h.push(D)}}return{nodes:h,edges:e,other:{},config:H()}},"getData"),Oe=o((e,h,p,i,d)=>{const k=H();let m=k.mindmap?.padding??J.mindmap.padding;switch(i){case y.ROUNDED_RECT:case y.RECT:case y.HEXAGON:m*=2}const l={id:F(h,k)||"kbn"+ee++,level:e,label:F(p,k),width:k.mindmap?.maxNodeWidth??J.mindmap.maxNodeWidth,padding:m,isGroup:!1};if(d!==void 0){let I;d.includes(`
7
7
  `)?I=d+`
8
8
  `:I=`{
9
9
  `+d+`
10
- }`;const g=Ee(I,{schema:_e});if(g.shape&&(g.shape!==g.shape.toLowerCase()||g.shape.includes("_")))throw new Error(`No such shape: ${g.shape}. Shape names should be lowercase.`);g?.shape&&g.shape==="kanbanItem"&&(l.shape=g?.shape),g?.label&&(l.label=g?.label),g?.icon&&(l.icon=g?.icon.toString()),g?.assigned&&(l.assigned=g?.assigned.toString()),g?.ticket&&(l.ticket=g?.ticket.toString()),g?.priority&&(l.priority=g?.priority)}const D=De(e);D?l.parentId=D.id||"kbn"+ee++:ne.push(l),v.push(l)},"addNode"),y={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Ie=o((e,h)=>{switch(te.debug("In get type",e,h),e){case"[":return y.RECT;case"(":return h===")"?y.ROUNDED_RECT:y.CLOUD;case"((":return y.CIRCLE;case")":return y.CLOUD;case"))":return y.BANG;case"{{":return y.HEXAGON;default:return y.DEFAULT}},"getType"),Ce=o((e,h)=>{se[e]=h},"setElementForId"),we=o(e=>{if(!e)return;const h=H(),p=v[v.length-1];e.icon&&(p.icon=F(e.icon,h)),e.class&&(p.cssClasses=F(e.class,h))},"decorateNode"),Ae=o(e=>{switch(e){case y.DEFAULT:return"no-border";case y.RECT:return"rect";case y.ROUNDED_RECT:return"rounded-rect";case y.CIRCLE:return"circle";case y.CLOUD:return"cloud";case y.BANG:return"bang";case y.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),Te=o(()=>te,"getLogger"),Re=o(e=>se[e],"getElementById"),Pe={clear:ve,addNode:Oe,getSections:he,getData:Le,nodeType:y,getType:Ie,setElementForId:Ce,decorateNode:we,type2Str:Ae,getLogger:Te,getElementById:Re},Be=Pe,Ve=o(async(e,h,p,i)=>{te.debug(`Rendering kanban diagram
11
- `+e);const k=i.db.getData(),m=H();m.htmlLabels=!1;const l=fe(h);for(const f of k.nodes)f.domId=`${h}-${f.id}`;const D=l.append("g");D.attr("class","sections");const I=l.append("g");I.attr("class","items");const g=k.nodes.filter(f=>f.isGroup);let w=0;const E=10,G=[];let N=25;for(const f of g){const A=m?.kanban?.sectionWidth||200;w=w+1,f.x=A*w+(w-1)*E/2,f.width=A,f.y=0,f.height=A*3,f.rx=5,f.ry=5,f.cssClasses=f.cssClasses+" section-"+w;const L=await ye(D,f);N=Math.max(N,L?.labelBBox?.height),G.push(L)}let B=0;for(const f of g){const A=G[B];B=B+1;const L=m?.kanban?.sectionWidth||200,U=-L*3/2+N;let T=U;const Y=k.nodes.filter(s=>s.parentId===f.id);for(const s of Y){if(s.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");s.x=f.x,s.width=L-1.5*E;const r=(await be(I,s,{config:m})).node().getBBox();s.y=T+r.height/2,await me(s),T=s.y+r.height/2+E/2}const V=A.cluster.select("rect"),O=Math.max(T-U+3*E,50)+(N-25);V.attr("height",O)}ke(void 0,l,m.mindmap?.padding??K.kanban.padding,m.mindmap?.useMaxWidth??K.kanban.useMaxWidth)},"draw"),je={draw:Ve},Fe=o(e=>{let h="";for(let i=0;i<e.THEME_COLOR_LIMIT;i++)e["lineColor"+i]=e["lineColor"+i]||e["cScaleInv"+i],Se(e["lineColor"+i])?e["lineColor"+i]=ce(e["lineColor"+i],20):e["lineColor"+i]=le(e["lineColor"+i],20);const p=o((i,d)=>e.darkMode?le(i,d):ce(i,d),"adjuster");for(let i=0;i<e.THEME_COLOR_LIMIT;i++){const d=""+(17-3*i);h+=`
10
+ }`;const g=_e(I,{schema:Se});if(g.shape&&(g.shape!==g.shape.toLowerCase()||g.shape.includes("_")))throw new Error(`No such shape: ${g.shape}. Shape names should be lowercase.`);g?.shape&&g.shape==="kanbanItem"&&(l.shape=g?.shape),g?.label&&(l.label=g?.label),g?.icon&&(l.icon=g?.icon.toString()),g?.assigned&&(l.assigned=g?.assigned.toString()),g?.ticket&&(l.ticket=g?.ticket.toString()),g?.priority&&(l.priority=g?.priority)}const D=De(e);D?l.parentId=D.id||"kbn"+ee++:ne.push(l),v.push(l)},"addNode"),y={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Ie=o((e,h)=>{switch(te.debug("In get type",e,h),e){case"[":return y.RECT;case"(":return h===")"?y.ROUNDED_RECT:y.CLOUD;case"((":return y.CIRCLE;case")":return y.CLOUD;case"))":return y.BANG;case"{{":return y.HEXAGON;default:return y.DEFAULT}},"getType"),Ce=o((e,h)=>{se[e]=h},"setElementForId"),we=o(e=>{if(!e)return;const h=H(),p=v[v.length-1];e.icon&&(p.icon=F(e.icon,h)),e.class&&(p.cssClasses=F(e.class,h))},"decorateNode"),Ae=o(e=>{switch(e){case y.DEFAULT:return"no-border";case y.RECT:return"rect";case y.ROUNDED_RECT:return"rounded-rect";case y.CIRCLE:return"circle";case y.CLOUD:return"cloud";case y.BANG:return"bang";case y.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),Te=o(()=>te,"getLogger"),Re=o(e=>se[e],"getElementById"),Pe={clear:ve,addNode:Oe,getSections:he,getData:Le,nodeType:y,getType:Ie,setElementForId:Ce,decorateNode:we,type2Str:Ae,getLogger:Te,getElementById:Re},Ve=Pe,Be=o(async(e,h,p,i)=>{te.debug(`Rendering kanban diagram
11
+ `+e);const k=i.db.getData(),m=H();m.htmlLabels=!1;const l=ye(h);for(const f of k.nodes)f.domId=`${h}-${f.id}`;const D=l.append("g");D.attr("class","sections");const I=l.append("g");I.attr("class","items");const g=k.nodes.filter(f=>f.isGroup);let w=0;const E=10,G=[];let N=25;for(const f of g){const A=m?.kanban?.sectionWidth||200;w=w+1,f.x=A*w+(w-1)*E/2,f.width=A,f.y=0,f.height=A*3,f.rx=5,f.ry=5,f.cssClasses=f.cssClasses+" section-"+w;const L=await be(D,f);N=Math.max(N,L?.labelBBox?.height),G.push(L)}let V=0;for(const f of g){const A=G[V];V=V+1;const L=m?.kanban?.sectionWidth||200,M=-L*3/2+N;let T=M;const K=k.nodes.filter(s=>s.parentId===f.id);for(const s of K){if(s.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");s.x=f.x,s.width=L-1.5*E;const r=(await me(I,s,{config:m})).node().getBBox();s.y=T+r.height/2,await ke(s),T=s.y+r.height/2+E/2}const B=A.cluster.select("rect"),O=Math.max(T-M+3*E,50)+(N-25);B.attr("height",O)}Ee(void 0,l,m.mindmap?.padding??J.kanban.padding,m.mindmap?.useMaxWidth??J.kanban.useMaxWidth)},"draw"),je={draw:Be},Fe=o(e=>{let h="";for(let i=0;i<e.THEME_COLOR_LIMIT;i++)e["lineColor"+i]=e["lineColor"+i]||e["cScaleInv"+i],Ne(e["lineColor"+i])?e["lineColor"+i]=ce(e["lineColor"+i],20):e["lineColor"+i]=le(e["lineColor"+i],20);const p=o((i,d)=>e.darkMode?le(i,d):ce(i,d),"adjuster");for(let i=0;i<e.THEME_COLOR_LIMIT;i++){const d=""+(17-3*i);h+=`
12
12
  .section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {
13
13
  fill: ${p(e["cScale"+i],10)};
14
14
  stroke: ${p(e["cScale"+i],10)};
@@ -85,5 +85,5 @@ Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Z="Parse error on
85
85
  dominant-baseline: middle;
86
86
  text-align: center;
87
87
  }
88
- ${Ne()}
89
- `,"getStyles"),Ue=Ge,We={db:Be,renderer:je,parser:xe,styles:Ue};export{We as diagram};
88
+ ${fe()}
89
+ `,"getStyles"),Me=Ge,We={db:Ve,renderer:je,parser:xe,styles:Me};export{We as diagram};